@ptsecurity/mosaic 14.7.2 → 15.0.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 (712) hide show
  1. package/_index.scss +3 -0
  2. package/_theming.scss +1559 -1685
  3. package/_visual.scss +84 -64
  4. package/autocomplete/_autocomplete-theme.scss +21 -0
  5. package/autocomplete/autocomplete-origin.directive.d.ts +1 -1
  6. package/autocomplete/autocomplete-trigger.directive.d.ts +1 -1
  7. package/autocomplete/autocomplete.component.d.ts +1 -1
  8. package/autocomplete/autocomplete.scss +63 -0
  9. package/button/_button-base.scss +63 -0
  10. package/button/_button-theme.scss +154 -0
  11. package/button/button.component.d.ts +2 -2
  12. package/button/button.scss +45 -0
  13. package/button-toggle/button-toggle.component.d.ts +2 -2
  14. package/button-toggle/button-toggle.scss +135 -0
  15. package/card/_card-theme.scss +61 -0
  16. package/card/card.component.d.ts +1 -1
  17. package/card/card.component.scss +40 -0
  18. package/checkbox/_checkbox-theme.scss +103 -0
  19. package/checkbox/checkbox-required-validator.d.ts +1 -1
  20. package/checkbox/checkbox.d.ts +1 -1
  21. package/checkbox/checkbox.scss +144 -0
  22. package/code-block/_code-block-theme.scss +329 -0
  23. package/code-block/actionbar.component.d.ts +1 -1
  24. package/code-block/actionbar.component.scss +27 -0
  25. package/code-block/code-block.component.d.ts +1 -1
  26. package/code-block/code-block.scss +128 -0
  27. package/core/_index.scss +1 -0
  28. package/core/common-behaviors/color.d.ts +2 -2
  29. package/core/datetime/date-adapter.d.ts +12 -0
  30. package/core/datetime/date-formats.d.ts +4 -0
  31. package/core/datetime/index.d.ts +2 -0
  32. package/core/formatters/date/formatter.d.ts +4 -265
  33. package/core/formatters/date/formatter.pipe.d.ts +3 -2
  34. package/core/forms/_forms-theme.scss +32 -0
  35. package/core/forms/_forms.scss +109 -0
  36. package/core/forms/forms.directive.d.ts +2 -2
  37. package/core/highlight/_highlight-theme.scss +10 -0
  38. package/core/line/line.d.ts +1 -1
  39. package/core/option/_optgroup-theme.scss +26 -0
  40. package/core/option/_option-action-theme.scss +41 -0
  41. package/core/option/_option-theme.scss +46 -0
  42. package/core/option/action.d.ts +1 -1
  43. package/core/option/action.scss +28 -0
  44. package/core/option/optgroup.d.ts +1 -1
  45. package/core/option/optgroup.scss +16 -0
  46. package/core/option/option.d.ts +1 -1
  47. package/core/option/option.scss +62 -0
  48. package/core/pop-up/_pop-up.scss +129 -0
  49. package/core/pop-up/pop-up-trigger.d.ts +1 -1
  50. package/core/pop-up/pop-up.d.ts +1 -1
  51. package/core/public-api.d.ts +11 -10
  52. package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +48 -0
  53. package/core/selection/pseudo-checkbox/pseudo-checkbox.d.ts +1 -1
  54. package/core/selection/pseudo-checkbox/pseudo-checkbox.scss +57 -0
  55. package/core/styles/_core.scss +11 -0
  56. package/core/styles/_mosaic-theme.scss +147 -0
  57. package/core/styles/_tokens.scss +6 -0
  58. package/core/styles/_variables.scss +9 -0
  59. package/core/styles/common/_animation.scss +35 -0
  60. package/core/styles/common/_button.scss +10 -0
  61. package/core/styles/common/_clearfix.scss +13 -0
  62. package/core/styles/common/_groups.scss +116 -0
  63. package/core/styles/common/_index.scss +13 -0
  64. package/core/styles/common/_input.scss +28 -0
  65. package/core/styles/common/_layout.scss +8 -0
  66. package/core/styles/common/_list.scss +46 -0
  67. package/core/styles/common/_overlay.scss +173 -0
  68. package/core/styles/common/_popup.scss +11 -0
  69. package/core/styles/common/_rtl.scss +33 -0
  70. package/core/styles/common/_size.scss +8 -0
  71. package/core/styles/common/_vendor-prefixes.scss +24 -0
  72. package/core/styles/common/_visually-hidden.scss +36 -0
  73. package/core/styles/functions/_index.scss +3 -0
  74. package/core/styles/functions/_number.scss +65 -0
  75. package/core/styles/functions/_string.scss +19 -0
  76. package/core/styles/functions/_timing.scss +30 -0
  77. package/core/styles/theming/_alerts.scss +166 -0
  78. package/core/styles/theming/_badges.scss +142 -0
  79. package/core/styles/theming/_components-theming.scss +721 -0
  80. package/core/styles/theming/_index.scss +2 -0
  81. package/core/styles/theming/_scrollbars.scss +133 -0
  82. package/core/styles/theming/_theming.scss +155 -0
  83. package/core/styles/typography/_index.scss +2 -0
  84. package/core/styles/typography/_typography-utils.scss +78 -0
  85. package/core/styles/typography/_typography.scss +180 -0
  86. package/core/styles/visual/_body.scss +35 -0
  87. package/core/styles/visual/_index.scss +3 -0
  88. package/core/styles/visual/_layout-media.scss +7 -0
  89. package/core/styles/visual/_layout.scss +527 -0
  90. package/datepicker/_datepicker-theme.scss +103 -0
  91. package/datepicker/calendar-body.component.d.ts +1 -1
  92. package/datepicker/calendar-body.scss +61 -0
  93. package/datepicker/calendar-header.component.d.ts +2 -2
  94. package/datepicker/calendar-header.scss +69 -0
  95. package/datepicker/calendar.component.d.ts +2 -2
  96. package/datepicker/calendar.scss +68 -0
  97. package/datepicker/datepicker-content.scss +32 -0
  98. package/datepicker/datepicker-input.directive.d.ts +2 -2
  99. package/datepicker/datepicker-input.scss +15 -0
  100. package/datepicker/datepicker-toggle.component.d.ts +2 -2
  101. package/datepicker/datepicker-toggle.scss +41 -0
  102. package/datepicker/datepicker.component.d.ts +3 -3
  103. package/datepicker/month-view.component.d.ts +2 -2
  104. package/divider/_divider-theme.scss +13 -0
  105. package/divider/divider.component.d.ts +1 -1
  106. package/divider/divider.scss +47 -0
  107. package/dl/_dl-theme.scss +44 -0
  108. package/dl/dl.component.d.ts +3 -3
  109. package/dl/dl.scss +66 -0
  110. package/dropdown/_dropdown-theme.scss +87 -0
  111. package/dropdown/dropdown-content.directive.d.ts +1 -1
  112. package/dropdown/dropdown-item.component.d.ts +1 -1
  113. package/dropdown/dropdown-item.scss +82 -0
  114. package/dropdown/dropdown-trigger.directive.d.ts +1 -1
  115. package/dropdown/dropdown.component.d.ts +1 -1
  116. package/dropdown/dropdown.scss +79 -0
  117. package/esm2020/autocomplete/autocomplete-origin.directive.mjs +4 -4
  118. package/esm2020/autocomplete/autocomplete-trigger.directive.mjs +4 -4
  119. package/esm2020/autocomplete/autocomplete.component.mjs +6 -6
  120. package/esm2020/autocomplete/autocomplete.module.mjs +5 -5
  121. package/esm2020/button/button.component.mjs +8 -8
  122. package/esm2020/button/button.module.mjs +5 -5
  123. package/esm2020/button-toggle/button-toggle.component.mjs +9 -9
  124. package/esm2020/button-toggle/button-toggle.module.mjs +5 -5
  125. package/esm2020/card/card.component.mjs +5 -5
  126. package/esm2020/card/card.module.mjs +5 -5
  127. package/esm2020/checkbox/checkbox-module.mjs +5 -5
  128. package/esm2020/checkbox/checkbox-required-validator.mjs +4 -4
  129. package/esm2020/checkbox/checkbox.mjs +5 -5
  130. package/esm2020/code-block/actionbar.component.mjs +4 -4
  131. package/esm2020/code-block/code-block.component.mjs +5 -5
  132. package/esm2020/code-block/code-block.module.mjs +5 -5
  133. package/esm2020/core/common-behaviors/color.mjs +3 -3
  134. package/esm2020/core/common-behaviors/common-module.mjs +5 -5
  135. package/esm2020/core/datetime/date-adapter.mjs +15 -0
  136. package/esm2020/core/datetime/date-formats.mjs +3 -0
  137. package/esm2020/core/datetime/index.mjs +3 -0
  138. package/esm2020/core/error/error-options.mjs +7 -7
  139. package/esm2020/core/formatters/date/formatter.mjs +10 -434
  140. package/esm2020/core/formatters/date/formatter.pipe.mjs +42 -42
  141. package/esm2020/core/formatters/index.mjs +5 -5
  142. package/esm2020/core/formatters/number/formatter.mjs +5 -5
  143. package/esm2020/core/forms/forms-module.mjs +5 -5
  144. package/esm2020/core/forms/forms.directive.mjs +7 -7
  145. package/esm2020/core/highlight/highlight.pipe.mjs +4 -4
  146. package/esm2020/core/highlight/index.mjs +5 -5
  147. package/esm2020/core/line/line.mjs +8 -8
  148. package/esm2020/core/option/action.mjs +6 -6
  149. package/esm2020/core/option/optgroup.mjs +5 -5
  150. package/esm2020/core/option/option-module.mjs +5 -5
  151. package/esm2020/core/option/option.mjs +5 -5
  152. package/esm2020/core/pop-up/pop-up-trigger.mjs +4 -4
  153. package/esm2020/core/pop-up/pop-up.mjs +4 -4
  154. package/esm2020/core/public-api.mjs +12 -11
  155. package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +5 -5
  156. package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.module.mjs +5 -5
  157. package/esm2020/core/services/measure-scrollbar.service.mjs +4 -4
  158. package/esm2020/core/version.mjs +2 -2
  159. package/esm2020/datepicker/calendar-body.component.mjs +5 -5
  160. package/esm2020/datepicker/calendar-header.component.mjs +8 -9
  161. package/esm2020/datepicker/calendar.component.mjs +7 -7
  162. package/esm2020/datepicker/datepicker-input.directive.mjs +6 -7
  163. package/esm2020/datepicker/datepicker-intl.mjs +4 -4
  164. package/esm2020/datepicker/datepicker-module.mjs +5 -5
  165. package/esm2020/datepicker/datepicker-toggle.component.mjs +8 -8
  166. package/esm2020/datepicker/datepicker.component.mjs +10 -10
  167. package/esm2020/datepicker/month-view.component.mjs +6 -6
  168. package/esm2020/divider/divider.component.mjs +5 -5
  169. package/esm2020/divider/divider.module.mjs +5 -5
  170. package/esm2020/dl/dl.component.mjs +11 -11
  171. package/esm2020/dl/dl.module.mjs +5 -5
  172. package/esm2020/dropdown/dropdown-content.directive.mjs +4 -4
  173. package/esm2020/dropdown/dropdown-item.component.mjs +5 -5
  174. package/esm2020/dropdown/dropdown-trigger.directive.mjs +4 -4
  175. package/esm2020/dropdown/dropdown.component.mjs +6 -6
  176. package/esm2020/dropdown/dropdown.module.mjs +5 -5
  177. package/esm2020/form-field/cleaner.mjs +5 -5
  178. package/esm2020/form-field/form-field.mjs +11 -11
  179. package/esm2020/form-field/form-field.module.mjs +5 -5
  180. package/esm2020/form-field/hint.mjs +4 -4
  181. package/esm2020/form-field/password-hint.mjs +4 -4
  182. package/esm2020/form-field/prefix.mjs +4 -4
  183. package/esm2020/form-field/stepper.mjs +8 -8
  184. package/esm2020/form-field/suffix.mjs +4 -4
  185. package/esm2020/form-field/validate.directive.mjs +4 -4
  186. package/esm2020/icon/icon.component.mjs +7 -7
  187. package/esm2020/icon/icon.module.mjs +5 -5
  188. package/esm2020/input/input-number-validators.mjs +7 -7
  189. package/esm2020/input/input-number.mjs +4 -4
  190. package/esm2020/input/input-password.mjs +7 -7
  191. package/esm2020/input/input.mjs +7 -7
  192. package/esm2020/input/input.module.mjs +5 -5
  193. package/esm2020/link/link.component.mjs +4 -4
  194. package/esm2020/link/link.module.mjs +5 -5
  195. package/esm2020/list/list-selection.component.mjs +9 -9
  196. package/esm2020/list/list.component.mjs +8 -8
  197. package/esm2020/list/list.module.mjs +5 -5
  198. package/esm2020/loader-overlay/loader-overlay.component.mjs +14 -14
  199. package/esm2020/loader-overlay/loader-overlay.module.mjs +5 -5
  200. package/esm2020/markdown/markdown.component.mjs +6 -6
  201. package/esm2020/markdown/markdown.module.mjs +5 -5
  202. package/esm2020/markdown/markdown.service.mjs +4 -4
  203. package/esm2020/modal/css-unit.pipe.mjs +4 -4
  204. package/esm2020/modal/modal-control.service.mjs +4 -4
  205. package/esm2020/modal/modal.component.mjs +5 -5
  206. package/esm2020/modal/modal.directive.mjs +13 -13
  207. package/esm2020/modal/modal.module.mjs +5 -5
  208. package/esm2020/modal/modal.service.mjs +4 -4
  209. package/esm2020/navbar/navbar-item.component.mjs +31 -31
  210. package/esm2020/navbar/navbar.component.mjs +11 -11
  211. package/esm2020/navbar/navbar.module.mjs +5 -5
  212. package/esm2020/navbar/vertical-navbar.animation.mjs +2 -2
  213. package/esm2020/navbar/vertical-navbar.component.mjs +6 -6
  214. package/esm2020/popover/popover-confirm.component.mjs +8 -8
  215. package/esm2020/popover/popover.component.mjs +8 -8
  216. package/esm2020/popover/popover.module.mjs +5 -5
  217. package/esm2020/progress-bar/progress-bar.component.mjs +5 -5
  218. package/esm2020/progress-bar/progress-bar.module.mjs +5 -5
  219. package/esm2020/progress-spinner/progress-spinner.component.mjs +6 -6
  220. package/esm2020/progress-spinner/progress-spinner.module.mjs +5 -5
  221. package/esm2020/radio/radio.component.mjs +8 -8
  222. package/esm2020/radio/radio.module.mjs +5 -5
  223. package/esm2020/select/select-option.directive.mjs +4 -4
  224. package/esm2020/select/select.component.mjs +18 -18
  225. package/esm2020/select/select.module.mjs +5 -5
  226. package/esm2020/sidebar/sidebar.component.mjs +10 -10
  227. package/esm2020/sidebar/sidebar.module.mjs +5 -5
  228. package/esm2020/sidepanel/sidepanel-container.component.mjs +5 -5
  229. package/esm2020/sidepanel/sidepanel-directives.mjs +18 -18
  230. package/esm2020/sidepanel/sidepanel.module.mjs +5 -5
  231. package/esm2020/sidepanel/sidepanel.service.mjs +4 -4
  232. package/esm2020/splitter/splitter.component.mjs +13 -13
  233. package/esm2020/splitter/splitter.module.mjs +5 -5
  234. package/esm2020/table/table.component.mjs +5 -5
  235. package/esm2020/table/table.module.mjs +5 -5
  236. package/esm2020/tabs/paginated-tab-header.mjs +4 -4
  237. package/esm2020/tabs/tab-body.component.mjs +7 -7
  238. package/esm2020/tabs/tab-content.directive.mjs +4 -4
  239. package/esm2020/tabs/tab-group.component.mjs +20 -20
  240. package/esm2020/tabs/tab-header.component.mjs +5 -5
  241. package/esm2020/tabs/tab-label-wrapper.directive.mjs +4 -4
  242. package/esm2020/tabs/tab-label.directive.mjs +4 -4
  243. package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +8 -8
  244. package/esm2020/tabs/tab.component.mjs +4 -4
  245. package/esm2020/tabs/tabs.module.mjs +5 -5
  246. package/esm2020/tags/tag-input.mjs +4 -4
  247. package/esm2020/tags/tag-list.component.mjs +5 -5
  248. package/esm2020/tags/tag.component.mjs +14 -14
  249. package/esm2020/tags/tag.module.mjs +5 -5
  250. package/esm2020/textarea/textarea.component.mjs +4 -4
  251. package/esm2020/textarea/textarea.module.mjs +5 -5
  252. package/esm2020/timepicker/timepicker.directive.mjs +6 -7
  253. package/esm2020/timepicker/timepicker.module.mjs +5 -5
  254. package/esm2020/timezone/cities-by-filter.pipe.mjs +4 -4
  255. package/esm2020/timezone/timezone-option.component.mjs +6 -6
  256. package/esm2020/timezone/timezone-option.directive.mjs +4 -4
  257. package/esm2020/timezone/timezone-select.component.mjs +9 -9
  258. package/esm2020/timezone/timezone.module.mjs +5 -5
  259. package/esm2020/timezone/utc-offset.pipe.mjs +4 -4
  260. package/esm2020/toast/toast-container.component.mjs +5 -5
  261. package/esm2020/toast/toast.component.mjs +5 -5
  262. package/esm2020/toast/toast.module.mjs +5 -5
  263. package/esm2020/toast/toast.service.mjs +4 -4
  264. package/esm2020/toggle/toggle.component.mjs +6 -6
  265. package/esm2020/toggle/toggle.module.mjs +5 -5
  266. package/esm2020/tooltip/tooltip.component.mjs +14 -14
  267. package/esm2020/tooltip/tooltip.module.mjs +5 -5
  268. package/esm2020/tree/node.mjs +4 -4
  269. package/esm2020/tree/outlet.mjs +4 -4
  270. package/esm2020/tree/padding.directive.mjs +5 -5
  271. package/esm2020/tree/toggle.mjs +11 -11
  272. package/esm2020/tree/tree-base.mjs +7 -7
  273. package/esm2020/tree/tree-option.component.mjs +6 -6
  274. package/esm2020/tree/tree-selection.component.mjs +4 -4
  275. package/esm2020/tree/tree.mjs +4 -4
  276. package/esm2020/tree/tree.module.mjs +5 -5
  277. package/esm2020/tree-select/tree-select.component.mjs +12 -12
  278. package/esm2020/tree-select/tree-select.module.mjs +5 -5
  279. package/fesm2015/ptsecurity-mosaic-autocomplete.mjs +15 -15
  280. package/fesm2015/ptsecurity-mosaic-autocomplete.mjs.map +1 -1
  281. package/fesm2015/ptsecurity-mosaic-button-toggle.mjs +12 -12
  282. package/fesm2015/ptsecurity-mosaic-button-toggle.mjs.map +1 -1
  283. package/fesm2015/ptsecurity-mosaic-button.mjs +11 -11
  284. package/fesm2015/ptsecurity-mosaic-button.mjs.map +1 -1
  285. package/fesm2015/ptsecurity-mosaic-card.mjs +8 -8
  286. package/fesm2015/ptsecurity-mosaic-card.mjs.map +1 -1
  287. package/fesm2015/ptsecurity-mosaic-checkbox.mjs +11 -11
  288. package/fesm2015/ptsecurity-mosaic-checkbox.mjs.map +1 -1
  289. package/fesm2015/ptsecurity-mosaic-code-block.mjs +11 -11
  290. package/fesm2015/ptsecurity-mosaic-code-block.mjs.map +1 -1
  291. package/fesm2015/ptsecurity-mosaic-core.mjs +789 -1877
  292. package/fesm2015/ptsecurity-mosaic-core.mjs.map +1 -1
  293. package/fesm2015/ptsecurity-mosaic-datepicker.mjs +42 -44
  294. package/fesm2015/ptsecurity-mosaic-datepicker.mjs.map +1 -1
  295. package/fesm2015/ptsecurity-mosaic-divider.mjs +8 -8
  296. package/fesm2015/ptsecurity-mosaic-divider.mjs.map +1 -1
  297. package/fesm2015/ptsecurity-mosaic-dl.mjs +14 -14
  298. package/fesm2015/ptsecurity-mosaic-dl.mjs.map +1 -1
  299. package/fesm2015/ptsecurity-mosaic-dropdown.mjs +19 -19
  300. package/fesm2015/ptsecurity-mosaic-dropdown.mjs.map +1 -1
  301. package/fesm2015/ptsecurity-mosaic-form-field.mjs +40 -40
  302. package/fesm2015/ptsecurity-mosaic-form-field.mjs.map +1 -1
  303. package/fesm2015/ptsecurity-mosaic-icon.mjs +10 -10
  304. package/fesm2015/ptsecurity-mosaic-icon.mjs.map +1 -1
  305. package/fesm2015/ptsecurity-mosaic-input.mjs +25 -25
  306. package/fesm2015/ptsecurity-mosaic-input.mjs.map +1 -1
  307. package/fesm2015/ptsecurity-mosaic-link.mjs +7 -7
  308. package/fesm2015/ptsecurity-mosaic-link.mjs.map +1 -1
  309. package/fesm2015/ptsecurity-mosaic-list.mjs +19 -19
  310. package/fesm2015/ptsecurity-mosaic-list.mjs.map +1 -1
  311. package/fesm2015/ptsecurity-mosaic-loader-overlay.mjs +17 -17
  312. package/fesm2015/ptsecurity-mosaic-loader-overlay.mjs.map +1 -1
  313. package/fesm2015/ptsecurity-mosaic-markdown.mjs +12 -12
  314. package/fesm2015/ptsecurity-mosaic-markdown.mjs.map +1 -1
  315. package/fesm2015/ptsecurity-mosaic-modal.mjs +29 -29
  316. package/fesm2015/ptsecurity-mosaic-modal.mjs.map +1 -1
  317. package/fesm2015/ptsecurity-mosaic-navbar.mjs +50 -50
  318. package/fesm2015/ptsecurity-mosaic-navbar.mjs.map +1 -1
  319. package/fesm2015/ptsecurity-mosaic-popover.mjs +18 -18
  320. package/fesm2015/ptsecurity-mosaic-popover.mjs.map +1 -1
  321. package/fesm2015/ptsecurity-mosaic-progress-bar.mjs +8 -8
  322. package/fesm2015/ptsecurity-mosaic-progress-bar.mjs.map +1 -1
  323. package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs +9 -9
  324. package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs.map +1 -1
  325. package/fesm2015/ptsecurity-mosaic-radio.mjs +11 -11
  326. package/fesm2015/ptsecurity-mosaic-radio.mjs.map +1 -1
  327. package/fesm2015/ptsecurity-mosaic-select.mjs +24 -24
  328. package/fesm2015/ptsecurity-mosaic-select.mjs.map +1 -1
  329. package/fesm2015/ptsecurity-mosaic-sidebar.mjs +13 -13
  330. package/fesm2015/ptsecurity-mosaic-sidebar.mjs.map +1 -1
  331. package/fesm2015/ptsecurity-mosaic-sidepanel.mjs +28 -28
  332. package/fesm2015/ptsecurity-mosaic-sidepanel.mjs.map +1 -1
  333. package/fesm2015/ptsecurity-mosaic-splitter.mjs +16 -16
  334. package/fesm2015/ptsecurity-mosaic-splitter.mjs.map +1 -1
  335. package/fesm2015/ptsecurity-mosaic-table.mjs +8 -8
  336. package/fesm2015/ptsecurity-mosaic-table.mjs.map +1 -1
  337. package/fesm2015/ptsecurity-mosaic-tabs.mjs +55 -55
  338. package/fesm2015/ptsecurity-mosaic-tabs.mjs.map +1 -1
  339. package/fesm2015/ptsecurity-mosaic-tags.mjs +24 -24
  340. package/fesm2015/ptsecurity-mosaic-tags.mjs.map +1 -1
  341. package/fesm2015/ptsecurity-mosaic-textarea.mjs +7 -7
  342. package/fesm2015/ptsecurity-mosaic-textarea.mjs.map +1 -1
  343. package/fesm2015/ptsecurity-mosaic-timepicker.mjs +8 -8
  344. package/fesm2015/ptsecurity-mosaic-timepicker.mjs.map +1 -1
  345. package/fesm2015/ptsecurity-mosaic-timezone.mjs +26 -26
  346. package/fesm2015/ptsecurity-mosaic-timezone.mjs.map +1 -1
  347. package/fesm2015/ptsecurity-mosaic-toast.mjs +15 -15
  348. package/fesm2015/ptsecurity-mosaic-toast.mjs.map +1 -1
  349. package/fesm2015/ptsecurity-mosaic-toggle.mjs +9 -9
  350. package/fesm2015/ptsecurity-mosaic-toggle.mjs.map +1 -1
  351. package/fesm2015/ptsecurity-mosaic-tooltip.mjs +17 -17
  352. package/fesm2015/ptsecurity-mosaic-tooltip.mjs.map +1 -1
  353. package/fesm2015/ptsecurity-mosaic-tree-select.mjs +15 -15
  354. package/fesm2015/ptsecurity-mosaic-tree-select.mjs.map +1 -1
  355. package/fesm2015/ptsecurity-mosaic-tree.mjs +41 -41
  356. package/fesm2015/ptsecurity-mosaic-tree.mjs.map +1 -1
  357. package/fesm2020/ptsecurity-mosaic-autocomplete.mjs +15 -15
  358. package/fesm2020/ptsecurity-mosaic-autocomplete.mjs.map +1 -1
  359. package/fesm2020/ptsecurity-mosaic-button-toggle.mjs +12 -12
  360. package/fesm2020/ptsecurity-mosaic-button-toggle.mjs.map +1 -1
  361. package/fesm2020/ptsecurity-mosaic-button.mjs +11 -11
  362. package/fesm2020/ptsecurity-mosaic-button.mjs.map +1 -1
  363. package/fesm2020/ptsecurity-mosaic-card.mjs +8 -8
  364. package/fesm2020/ptsecurity-mosaic-card.mjs.map +1 -1
  365. package/fesm2020/ptsecurity-mosaic-checkbox.mjs +11 -11
  366. package/fesm2020/ptsecurity-mosaic-checkbox.mjs.map +1 -1
  367. package/fesm2020/ptsecurity-mosaic-code-block.mjs +11 -11
  368. package/fesm2020/ptsecurity-mosaic-code-block.mjs.map +1 -1
  369. package/fesm2020/ptsecurity-mosaic-core.mjs +785 -1900
  370. package/fesm2020/ptsecurity-mosaic-core.mjs.map +1 -1
  371. package/fesm2020/ptsecurity-mosaic-datepicker.mjs +42 -44
  372. package/fesm2020/ptsecurity-mosaic-datepicker.mjs.map +1 -1
  373. package/fesm2020/ptsecurity-mosaic-divider.mjs +8 -8
  374. package/fesm2020/ptsecurity-mosaic-divider.mjs.map +1 -1
  375. package/fesm2020/ptsecurity-mosaic-dl.mjs +14 -14
  376. package/fesm2020/ptsecurity-mosaic-dl.mjs.map +1 -1
  377. package/fesm2020/ptsecurity-mosaic-dropdown.mjs +19 -19
  378. package/fesm2020/ptsecurity-mosaic-dropdown.mjs.map +1 -1
  379. package/fesm2020/ptsecurity-mosaic-form-field.mjs +40 -40
  380. package/fesm2020/ptsecurity-mosaic-form-field.mjs.map +1 -1
  381. package/fesm2020/ptsecurity-mosaic-icon.mjs +10 -10
  382. package/fesm2020/ptsecurity-mosaic-icon.mjs.map +1 -1
  383. package/fesm2020/ptsecurity-mosaic-input.mjs +25 -25
  384. package/fesm2020/ptsecurity-mosaic-input.mjs.map +1 -1
  385. package/fesm2020/ptsecurity-mosaic-link.mjs +7 -7
  386. package/fesm2020/ptsecurity-mosaic-link.mjs.map +1 -1
  387. package/fesm2020/ptsecurity-mosaic-list.mjs +19 -19
  388. package/fesm2020/ptsecurity-mosaic-list.mjs.map +1 -1
  389. package/fesm2020/ptsecurity-mosaic-loader-overlay.mjs +17 -17
  390. package/fesm2020/ptsecurity-mosaic-loader-overlay.mjs.map +1 -1
  391. package/fesm2020/ptsecurity-mosaic-markdown.mjs +12 -12
  392. package/fesm2020/ptsecurity-mosaic-markdown.mjs.map +1 -1
  393. package/fesm2020/ptsecurity-mosaic-modal.mjs +29 -29
  394. package/fesm2020/ptsecurity-mosaic-modal.mjs.map +1 -1
  395. package/fesm2020/ptsecurity-mosaic-navbar.mjs +50 -50
  396. package/fesm2020/ptsecurity-mosaic-navbar.mjs.map +1 -1
  397. package/fesm2020/ptsecurity-mosaic-popover.mjs +18 -18
  398. package/fesm2020/ptsecurity-mosaic-popover.mjs.map +1 -1
  399. package/fesm2020/ptsecurity-mosaic-progress-bar.mjs +8 -8
  400. package/fesm2020/ptsecurity-mosaic-progress-bar.mjs.map +1 -1
  401. package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs +9 -9
  402. package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs.map +1 -1
  403. package/fesm2020/ptsecurity-mosaic-radio.mjs +11 -11
  404. package/fesm2020/ptsecurity-mosaic-radio.mjs.map +1 -1
  405. package/fesm2020/ptsecurity-mosaic-select.mjs +24 -24
  406. package/fesm2020/ptsecurity-mosaic-select.mjs.map +1 -1
  407. package/fesm2020/ptsecurity-mosaic-sidebar.mjs +13 -13
  408. package/fesm2020/ptsecurity-mosaic-sidebar.mjs.map +1 -1
  409. package/fesm2020/ptsecurity-mosaic-sidepanel.mjs +28 -28
  410. package/fesm2020/ptsecurity-mosaic-sidepanel.mjs.map +1 -1
  411. package/fesm2020/ptsecurity-mosaic-splitter.mjs +16 -16
  412. package/fesm2020/ptsecurity-mosaic-splitter.mjs.map +1 -1
  413. package/fesm2020/ptsecurity-mosaic-table.mjs +8 -8
  414. package/fesm2020/ptsecurity-mosaic-table.mjs.map +1 -1
  415. package/fesm2020/ptsecurity-mosaic-tabs.mjs +55 -55
  416. package/fesm2020/ptsecurity-mosaic-tabs.mjs.map +1 -1
  417. package/fesm2020/ptsecurity-mosaic-tags.mjs +24 -24
  418. package/fesm2020/ptsecurity-mosaic-tags.mjs.map +1 -1
  419. package/fesm2020/ptsecurity-mosaic-textarea.mjs +7 -7
  420. package/fesm2020/ptsecurity-mosaic-textarea.mjs.map +1 -1
  421. package/fesm2020/ptsecurity-mosaic-timepicker.mjs +8 -8
  422. package/fesm2020/ptsecurity-mosaic-timepicker.mjs.map +1 -1
  423. package/fesm2020/ptsecurity-mosaic-timezone.mjs +26 -26
  424. package/fesm2020/ptsecurity-mosaic-timezone.mjs.map +1 -1
  425. package/fesm2020/ptsecurity-mosaic-toast.mjs +15 -15
  426. package/fesm2020/ptsecurity-mosaic-toast.mjs.map +1 -1
  427. package/fesm2020/ptsecurity-mosaic-toggle.mjs +9 -9
  428. package/fesm2020/ptsecurity-mosaic-toggle.mjs.map +1 -1
  429. package/fesm2020/ptsecurity-mosaic-tooltip.mjs +17 -17
  430. package/fesm2020/ptsecurity-mosaic-tooltip.mjs.map +1 -1
  431. package/fesm2020/ptsecurity-mosaic-tree-select.mjs +15 -15
  432. package/fesm2020/ptsecurity-mosaic-tree-select.mjs.map +1 -1
  433. package/fesm2020/ptsecurity-mosaic-tree.mjs +41 -41
  434. package/fesm2020/ptsecurity-mosaic-tree.mjs.map +1 -1
  435. package/form-field/_form-field-theme.scss +133 -0
  436. package/form-field/cleaner.d.ts +1 -1
  437. package/form-field/form-field.d.ts +3 -3
  438. package/form-field/form-field.scss +163 -0
  439. package/form-field/hint.d.ts +1 -1
  440. package/form-field/password-hint.d.ts +1 -1
  441. package/form-field/prefix.d.ts +1 -1
  442. package/form-field/stepper.d.ts +1 -1
  443. package/form-field/suffix.d.ts +1 -1
  444. package/form-field/validate.directive.d.ts +1 -1
  445. package/icon/_icon-theme.scss +152 -0
  446. package/icon/icon.component.d.ts +2 -2
  447. package/icon/icon.scss +30 -0
  448. package/input/_input-base.scss +21 -0
  449. package/input/_input-theme.scss +58 -0
  450. package/input/input-number-validators.d.ts +2 -2
  451. package/input/input-number.d.ts +1 -1
  452. package/input/input-password.d.ts +2 -2
  453. package/input/input.d.ts +2 -2
  454. package/input/input.scss +62 -0
  455. package/link/_link-theme.scss +172 -0
  456. package/link/link.component.d.ts +1 -1
  457. package/list/_list-base.scss +50 -0
  458. package/list/_list-theme.scss +49 -0
  459. package/list/list-selection.component.d.ts +2 -2
  460. package/list/list.component.d.ts +2 -2
  461. package/list/list.scss +52 -0
  462. package/loader-overlay/_loader-overlay-theme.scss +36 -0
  463. package/loader-overlay/loader-overlay.component.d.ts +4 -4
  464. package/loader-overlay/loader-overlay.scss +64 -0
  465. package/markdown/_markdown-theme.scss +142 -0
  466. package/markdown/markdown.component.d.ts +1 -1
  467. package/markdown/markdown.scss +240 -0
  468. package/modal/_modal-animation.scss +114 -0
  469. package/modal/_modal-confirm.scss +53 -0
  470. package/modal/_modal-theme.scss +90 -0
  471. package/modal/modal.component.d.ts +1 -1
  472. package/modal/modal.directive.d.ts +4 -4
  473. package/modal/modal.scss +143 -0
  474. package/navbar/_navbar-theme.scss +125 -0
  475. package/navbar/navbar-brand.scss +70 -0
  476. package/navbar/navbar-divider.scss +18 -0
  477. package/navbar/navbar-item.component.d.ts +10 -10
  478. package/navbar/navbar-item.scss +159 -0
  479. package/navbar/navbar.component.d.ts +3 -3
  480. package/navbar/navbar.scss +20 -0
  481. package/navbar/vertical-navbar.component.d.ts +1 -1
  482. package/navbar/vertical-navbar.scss +46 -0
  483. package/package.json +28 -27
  484. package/popover/_popover-theme.scss +113 -0
  485. package/popover/popover-confirm.component.d.ts +2 -2
  486. package/popover/popover.component.d.ts +2 -2
  487. package/popover/popover.scss +114 -0
  488. package/prebuilt-themes/dark-theme.css +1 -1
  489. package/prebuilt-themes/default-theme.css +1 -1
  490. package/prebuilt-visual/default-visual.css +1 -1
  491. package/progress-bar/_progress-bar-theme.scss +28 -0
  492. package/progress-bar/progress-bar.component.d.ts +1 -1
  493. package/progress-bar/progress-bar.scss +42 -0
  494. package/progress-spinner/_progress-spinner-theme.scss +24 -0
  495. package/progress-spinner/progress-spinner.component.d.ts +1 -1
  496. package/progress-spinner/progress-spinner.scss +70 -0
  497. package/radio/_radio-theme.scss +99 -0
  498. package/radio/radio.component.d.ts +2 -2
  499. package/radio/radio.scss +110 -0
  500. package/select/_select-theme.scss +57 -0
  501. package/select/select-option.directive.d.ts +1 -1
  502. package/select/select.component.d.ts +5 -5
  503. package/select/select.scss +197 -0
  504. package/sidebar/sidebar.component.d.ts +3 -3
  505. package/sidebar/sidebar.scss +12 -0
  506. package/sidepanel/_sidepanel-theme.scss +69 -0
  507. package/sidepanel/sidepanel-container.component.d.ts +1 -1
  508. package/sidepanel/sidepanel-directives.d.ts +5 -5
  509. package/sidepanel/sidepanel.scss +190 -0
  510. package/splitter/_splitter-theme.scss +31 -0
  511. package/splitter/splitter.component.d.ts +4 -4
  512. package/splitter/splitter.scss +48 -0
  513. package/table/_table-theme.scss +67 -0
  514. package/table/table.component.d.ts +1 -1
  515. package/table/table.scss +76 -0
  516. package/tabs/_tabs-common.scss +197 -0
  517. package/tabs/_tabs-theme.scss +241 -0
  518. package/tabs/paginated-tab-header.d.ts +1 -1
  519. package/tabs/tab-body.component.d.ts +2 -2
  520. package/tabs/tab-body.scss +8 -0
  521. package/tabs/tab-content.directive.d.ts +1 -1
  522. package/tabs/tab-group.component.d.ts +6 -6
  523. package/tabs/tab-group.scss +63 -0
  524. package/tabs/tab-header.component.d.ts +1 -1
  525. package/tabs/tab-header.scss +106 -0
  526. package/tabs/tab-label-wrapper.directive.d.ts +1 -1
  527. package/tabs/tab-label.directive.d.ts +1 -1
  528. package/tabs/tab-nav-bar/tab-nav-bar.d.ts +2 -2
  529. package/tabs/tab-nav-bar/tab-nav-bar.scss +54 -0
  530. package/tabs/tab.component.d.ts +1 -1
  531. package/tags/_tag-theme.scss +122 -0
  532. package/tags/tag-input.d.ts +1 -1
  533. package/tags/tag-list.component.d.ts +1 -1
  534. package/tags/tag-list.scss +52 -0
  535. package/tags/tag.component.d.ts +4 -4
  536. package/tags/tag.scss +115 -0
  537. package/textarea/_textarea-base.scss +22 -0
  538. package/textarea/_textarea-theme.scss +40 -0
  539. package/textarea/textarea.component.d.ts +1 -1
  540. package/textarea/textarea.scss +32 -0
  541. package/timepicker/timepicker.directive.d.ts +2 -2
  542. package/timepicker/timepicker.scss +18 -0
  543. package/timezone/_timezone-option-theme.scss +36 -0
  544. package/timezone/timezone-option.component.d.ts +1 -1
  545. package/timezone/timezone-option.component.scss +35 -0
  546. package/timezone/timezone-option.directive.d.ts +1 -1
  547. package/timezone/timezone-select.component.d.ts +2 -2
  548. package/toast/_toast-theme.scss +64 -0
  549. package/toast/toast-container.component.d.ts +1 -1
  550. package/toast/toast-container.component.scss +23 -0
  551. package/toast/toast.component.d.ts +1 -1
  552. package/toast/toast.component.scss +76 -0
  553. package/toggle/_toggle-theme.scss +82 -0
  554. package/toggle/toggle.component.d.ts +1 -1
  555. package/toggle/toggle.scss +124 -0
  556. package/tooltip/_tooltip-theme.scss +104 -0
  557. package/tooltip/tooltip.component.d.ts +4 -4
  558. package/tooltip/tooltip.scss +75 -0
  559. package/tree/_tree-theme.scss +70 -0
  560. package/tree/node.d.ts +1 -1
  561. package/tree/outlet.d.ts +1 -1
  562. package/tree/padding.directive.d.ts +1 -1
  563. package/tree/toggle.d.ts +3 -3
  564. package/tree/toggle.scss +35 -0
  565. package/tree/tree-base.d.ts +2 -2
  566. package/tree/tree-option.component.d.ts +1 -1
  567. package/tree/tree-option.scss +67 -0
  568. package/tree/tree-selection.component.d.ts +1 -1
  569. package/tree/tree-selection.scss +3 -0
  570. package/tree/tree.d.ts +1 -1
  571. package/tree/tree.scss +3 -0
  572. package/tree-select/_tree-select-theme.scss +44 -0
  573. package/tree-select/tree-select.component.d.ts +3 -3
  574. package/tree-select/tree-select.scss +212 -0
  575. package/core/formatters/date/templates/en-US.d.ts +0 -2
  576. package/core/formatters/date/templates/ru-RU.d.ts +0 -2
  577. package/design-tokens/index.d.ts +0 -1
  578. package/design-tokens/legacy-2017/tokens/components/alert.json5 +0 -83
  579. package/design-tokens/legacy-2017/tokens/components/autocomplete.json5 +0 -11
  580. package/design-tokens/legacy-2017/tokens/components/badge.json5 +0 -174
  581. package/design-tokens/legacy-2017/tokens/components/button-toggle.json5 +0 -11
  582. package/design-tokens/legacy-2017/tokens/components/button.json5 +0 -142
  583. package/design-tokens/legacy-2017/tokens/components/card.json5 +0 -51
  584. package/design-tokens/legacy-2017/tokens/components/checkbox.json5 +0 -106
  585. package/design-tokens/legacy-2017/tokens/components/code-block.json5 +0 -704
  586. package/design-tokens/legacy-2017/tokens/components/datepicker.json5 +0 -73
  587. package/design-tokens/legacy-2017/tokens/components/divider.json5 +0 -14
  588. package/design-tokens/legacy-2017/tokens/components/dl.json5 +0 -38
  589. package/design-tokens/legacy-2017/tokens/components/dropdown.json5 +0 -48
  590. package/design-tokens/legacy-2017/tokens/components/form-field.json5 +0 -92
  591. package/design-tokens/legacy-2017/tokens/components/forms.json5 +0 -48
  592. package/design-tokens/legacy-2017/tokens/components/icon.json5 +0 -104
  593. package/design-tokens/legacy-2017/tokens/components/input.json5 +0 -12
  594. package/design-tokens/legacy-2017/tokens/components/link.json5 +0 -50
  595. package/design-tokens/legacy-2017/tokens/components/list.json5 +0 -13
  596. package/design-tokens/legacy-2017/tokens/components/loader-overlay.json5 +0 -23
  597. package/design-tokens/legacy-2017/tokens/components/markdown.json5 +0 -294
  598. package/design-tokens/legacy-2017/tokens/components/modal.json5 +0 -81
  599. package/design-tokens/legacy-2017/tokens/components/navbar.json5 +0 -70
  600. package/design-tokens/legacy-2017/tokens/components/optgroup.json5 +0 -10
  601. package/design-tokens/legacy-2017/tokens/components/option.json5 +0 -12
  602. package/design-tokens/legacy-2017/tokens/components/popover.json5 +0 -69
  603. package/design-tokens/legacy-2017/tokens/components/popup.json5 +0 -16
  604. package/design-tokens/legacy-2017/tokens/components/progress-bar.json5 +0 -13
  605. package/design-tokens/legacy-2017/tokens/components/progress-spinner.json5 +0 -16
  606. package/design-tokens/legacy-2017/tokens/components/radio.json5 +0 -47
  607. package/design-tokens/legacy-2017/tokens/components/scrollbars.json5 +0 -52
  608. package/design-tokens/legacy-2017/tokens/components/select.json5 +0 -24
  609. package/design-tokens/legacy-2017/tokens/components/sidepanel.json5 +0 -44
  610. package/design-tokens/legacy-2017/tokens/components/table.json5 +0 -15
  611. package/design-tokens/legacy-2017/tokens/components/tabs.json5 +0 -101
  612. package/design-tokens/legacy-2017/tokens/components/tags.json5 +0 -134
  613. package/design-tokens/legacy-2017/tokens/components/textarea.json5 +0 -12
  614. package/design-tokens/legacy-2017/tokens/components/timepicker.json5 +0 -7
  615. package/design-tokens/legacy-2017/tokens/components/timezone.json5 +0 -23
  616. package/design-tokens/legacy-2017/tokens/components/toast.json5 +0 -54
  617. package/design-tokens/legacy-2017/tokens/components/toggle.json5 +0 -79
  618. package/design-tokens/legacy-2017/tokens/components/tooltip.json5 +0 -83
  619. package/design-tokens/legacy-2017/tokens/components/tree.json5 +0 -15
  620. package/design-tokens/legacy-2017/tokens/properties/aliases.json5 +0 -3
  621. package/design-tokens/legacy-2017/tokens/properties/colors.json5 +0 -119
  622. package/design-tokens/legacy-2017/tokens/properties/font.json5 +0 -12
  623. package/design-tokens/legacy-2017/tokens/properties/globals.json5 +0 -49
  624. package/design-tokens/legacy-2017/tokens/properties/md-typography.json5 +0 -103
  625. package/design-tokens/legacy-2017/tokens/properties/padding.json5 +0 -3
  626. package/design-tokens/legacy-2017/tokens/properties/palette.json5 +0 -163
  627. package/design-tokens/legacy-2017/tokens/properties/typography.json5 +0 -184
  628. package/design-tokens/legacy-2017/tokens.d.ts +0 -8520
  629. package/design-tokens/pt-2022/tokens/components/alert.json5 +0 -83
  630. package/design-tokens/pt-2022/tokens/components/autocomplete.json5 +0 -11
  631. package/design-tokens/pt-2022/tokens/components/badge.json5 +0 -174
  632. package/design-tokens/pt-2022/tokens/components/button-toggle.json5 +0 -11
  633. package/design-tokens/pt-2022/tokens/components/button.json5 +0 -142
  634. package/design-tokens/pt-2022/tokens/components/card.json5 +0 -51
  635. package/design-tokens/pt-2022/tokens/components/checkbox.json5 +0 -106
  636. package/design-tokens/pt-2022/tokens/components/code-block.json5 +0 -697
  637. package/design-tokens/pt-2022/tokens/components/datepicker.json5 +0 -73
  638. package/design-tokens/pt-2022/tokens/components/divider.json5 +0 -14
  639. package/design-tokens/pt-2022/tokens/components/dl.json5 +0 -38
  640. package/design-tokens/pt-2022/tokens/components/dropdown.json5 +0 -48
  641. package/design-tokens/pt-2022/tokens/components/form-field.json5 +0 -92
  642. package/design-tokens/pt-2022/tokens/components/forms.json5 +0 -48
  643. package/design-tokens/pt-2022/tokens/components/icon.json5 +0 -104
  644. package/design-tokens/pt-2022/tokens/components/input.json5 +0 -12
  645. package/design-tokens/pt-2022/tokens/components/link.json5 +0 -50
  646. package/design-tokens/pt-2022/tokens/components/list.json5 +0 -13
  647. package/design-tokens/pt-2022/tokens/components/loader-overlay.json5 +0 -23
  648. package/design-tokens/pt-2022/tokens/components/markdown.json5 +0 -294
  649. package/design-tokens/pt-2022/tokens/components/modal.json5 +0 -81
  650. package/design-tokens/pt-2022/tokens/components/navbar.json5 +0 -70
  651. package/design-tokens/pt-2022/tokens/components/optgroup.json5 +0 -10
  652. package/design-tokens/pt-2022/tokens/components/option.json5 +0 -12
  653. package/design-tokens/pt-2022/tokens/components/popover.json5 +0 -69
  654. package/design-tokens/pt-2022/tokens/components/popup.json5 +0 -16
  655. package/design-tokens/pt-2022/tokens/components/progress-bar.json5 +0 -13
  656. package/design-tokens/pt-2022/tokens/components/progress-spinner.json5 +0 -16
  657. package/design-tokens/pt-2022/tokens/components/radio.json5 +0 -48
  658. package/design-tokens/pt-2022/tokens/components/scrollbars.json5 +0 -52
  659. package/design-tokens/pt-2022/tokens/components/select.json5 +0 -24
  660. package/design-tokens/pt-2022/tokens/components/sidepanel.json5 +0 -43
  661. package/design-tokens/pt-2022/tokens/components/table.json5 +0 -15
  662. package/design-tokens/pt-2022/tokens/components/tabs.json5 +0 -101
  663. package/design-tokens/pt-2022/tokens/components/tags.json5 +0 -137
  664. package/design-tokens/pt-2022/tokens/components/textarea.json5 +0 -12
  665. package/design-tokens/pt-2022/tokens/components/timepicker.json5 +0 -7
  666. package/design-tokens/pt-2022/tokens/components/timezone.json5 +0 -23
  667. package/design-tokens/pt-2022/tokens/components/toast.json5 +0 -54
  668. package/design-tokens/pt-2022/tokens/components/toggle.json5 +0 -79
  669. package/design-tokens/pt-2022/tokens/components/tooltip.json5 +0 -83
  670. package/design-tokens/pt-2022/tokens/components/tree.json5 +0 -15
  671. package/design-tokens/pt-2022/tokens/properties/aliases.json5 +0 -3
  672. package/design-tokens/pt-2022/tokens/properties/colors.json5 +0 -122
  673. package/design-tokens/pt-2022/tokens/properties/font.json5 +0 -15
  674. package/design-tokens/pt-2022/tokens/properties/globals.json5 +0 -49
  675. package/design-tokens/pt-2022/tokens/properties/md-typography.json5 +0 -103
  676. package/design-tokens/pt-2022/tokens/properties/padding.json5 +0 -3
  677. package/design-tokens/pt-2022/tokens/properties/palette.json5 +0 -233
  678. package/design-tokens/pt-2022/tokens/properties/typography.json5 +0 -184
  679. package/design-tokens/pt-2022/tokens.d.ts +0 -9851
  680. package/design-tokens/public-api.d.ts +0 -3
  681. package/design-tokens/style-dictionary/build.js +0 -65
  682. package/design-tokens/style-dictionary/configs/css.js +0 -13
  683. package/design-tokens/style-dictionary/configs/index.js +0 -44
  684. package/design-tokens/style-dictionary/configs/js.js +0 -9
  685. package/design-tokens/style-dictionary/configs/scss.js +0 -29
  686. package/design-tokens/style-dictionary/filters/color.js +0 -9
  687. package/design-tokens/style-dictionary/filters/md-typography.js +0 -7
  688. package/design-tokens/style-dictionary/filters/palette.js +0 -7
  689. package/design-tokens/style-dictionary/filters/size.js +0 -7
  690. package/design-tokens/style-dictionary/filters/typography.js +0 -7
  691. package/design-tokens/style-dictionary/formats/palette.js +0 -25
  692. package/design-tokens/style-dictionary/formats/typography.js +0 -52
  693. package/design-tokens/style-dictionary/transformGroups/css.js +0 -13
  694. package/design-tokens/style-dictionary/transformGroups/scss.js +0 -13
  695. package/design-tokens/style-dictionary/transformGroups/ts.js +0 -11
  696. package/design-tokens/style-dictionary/transforms/attribute/md-typography.js +0 -9
  697. package/design-tokens/style-dictionary/transforms/attribute/palette.js +0 -9
  698. package/design-tokens/style-dictionary/transforms/attribute/prefix.js +0 -11
  699. package/design-tokens/style-dictionary/transforms/attribute/size.js +0 -8
  700. package/design-tokens/style-dictionary/transforms/attribute/typography.js +0 -9
  701. package/esm2020/core/formatters/date/templates/en-US.mjs +0 -336
  702. package/esm2020/core/formatters/date/templates/ru-RU.mjs +0 -372
  703. package/esm2020/design-tokens/index.mjs +0 -2
  704. package/esm2020/design-tokens/legacy-2017/tokens.mjs +0 -1814
  705. package/esm2020/design-tokens/pt-2022/tokens.mjs +0 -1883
  706. package/esm2020/design-tokens/ptsecurity-mosaic-design-tokens.mjs +0 -5
  707. package/esm2020/design-tokens/public-api.mjs +0 -4
  708. package/fesm2015/ptsecurity-mosaic-design-tokens.mjs +0 -5517
  709. package/fesm2015/ptsecurity-mosaic-design-tokens.mjs.map +0 -1
  710. package/fesm2020/ptsecurity-mosaic-design-tokens.mjs +0 -5517
  711. package/fesm2020/ptsecurity-mosaic-design-tokens.mjs.map +0 -1
  712. package/schematics/README.md +0 -35
package/_theming.scss CHANGED
@@ -1,261 +1,46 @@
1
- // Import all the theming
2
- // We want overlays to always appear over user content, so set a baseline
3
- // very high z-index for the overlay container, which is where we create the new
4
- // stacking context for all overlays.
5
- $overlay-container-z-index: 1000 !default;
6
- $overlay-z-index: 1000 !default;
7
- $overlay-backdrop-z-index: 1000 !default;
8
-
9
- // Background color for all of the backdrops
10
- $overlay-backdrop-color: rgba(0, 0, 0, 0.32) !default;
11
-
12
- // Default backdrop animation is based on the Material Design swift-ease-out.
13
- $backdrop-animation-duration: 400ms !default;
14
- $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
15
-
16
- /// Emits structural styles required for cdk/overlay to function.
17
- @mixin overlay() {
18
- .cdk-overlay-container, .cdk-global-overlay-wrapper {
19
- // Disable events from being captured on the overlay container.
20
- pointer-events: none;
21
-
22
- // The container should be the size of the viewport.
23
- top: 0;
24
- left: 0;
25
- height: 100%;
26
- width: 100%;
27
- }
28
-
29
- // The overlay-container is an invisible element which contains all individual overlays.
30
- .cdk-overlay-container {
31
- position: fixed;
32
- z-index: $overlay-container-z-index;
33
-
34
- &:empty {
35
- // Hide the element when it doesn't have any child nodes. This doesn't
36
- // include overlays that have been detached, rather than disposed.
37
- display: none;
38
- }
39
- }
40
-
41
- // We use an extra wrapper element in order to use make the overlay itself a flex item.
42
- // This makes centering the overlay easy without running into the subpixel rendering
43
- // problems tied to using `transform` and without interfering with the other position
44
- // strategies.
45
- .cdk-global-overlay-wrapper {
46
- display: flex;
47
- position: absolute;
48
- z-index: $overlay-z-index;
49
- }
50
-
51
- // A single overlay pane.
52
- .cdk-overlay-pane {
53
- // Note: it's important for this one to start off `absolute`,
54
- // in order for us to be able to measure it correctly.
55
- position: absolute;
56
- pointer-events: auto;
57
- box-sizing: border-box;
58
- z-index: $overlay-z-index;
59
-
60
- // For connected-position overlays, we set `display: flex` in
61
- // order to force `max-width` and `max-height` to take effect.
62
- display: flex;
63
- max-width: 100%;
64
- max-height: 100%;
65
- }
1
+ // @deprecated Use `...`.
2
+ // Will be deleted in 16.0.x.
66
3
 
67
- .cdk-overlay-backdrop {
68
- // TODO(jelbourn): reuse sidenav fullscreen mixin.
69
- position: absolute;
70
- top: 0;
71
- bottom: 0;
72
- left: 0;
73
- right: 0;
74
-
75
- z-index: $overlay-backdrop-z-index;
76
- pointer-events: auto;
77
- -webkit-tap-highlight-color: transparent;
78
- transition: opacity $backdrop-animation-duration $backdrop-animation-timing-function;
79
- opacity: 0;
80
-
81
- &.cdk-overlay-backdrop-showing {
82
- opacity: 1;
83
-
84
- // Note that we can't import and use the `high-contrast` mixin from `_a11y.scss`, because
85
- // this file will be copied to the top-level `cdk` package when putting together the files
86
- // for npm. Any relative import paths we use here will become invalid once the file is copied.
87
- .cdk-high-contrast-active & {
88
- // In high contrast mode the rgba background will become solid
89
- // so we need to fall back to making it opaque using `opacity`.
90
- opacity: 0.6;
91
- }
92
- }
93
- }
94
-
95
- .cdk-overlay-dark-backdrop {
96
- background: $overlay-backdrop-color;
97
- }
98
-
99
- .cdk-overlay-transparent-backdrop {
100
- // Define a transition on the visibility so that the `transitionend` event can fire immediately.
101
- transition: visibility 1ms linear, opacity 1ms linear;
102
- visibility: hidden;
103
- opacity: 1;
104
-
105
- // Note: as of Firefox 57, having the backdrop be `background: none` will prevent it from
106
- // capturing the user's mouse scroll events. Since we also can't use something like
107
- // `rgba(0, 0, 0, 0)`, we work around the inconsistency by not setting the background at
108
- // all and using `opacity` to make the element transparent.
109
- &.cdk-overlay-backdrop-showing {
110
- opacity: 0;
111
- visibility: visible;
112
- }
113
- }
114
-
115
- .cdk-overlay-backdrop-noop-animation {
116
- transition: none;
117
- }
118
-
119
- // Overlay parent element used with the connected position strategy. Used to constrain the
120
- // overlay element's size to fit within the viewport.
121
- .cdk-overlay-connected-position-bounding-box {
122
- position: absolute;
123
- z-index: $overlay-z-index;
124
-
125
- // We use `display: flex` on this element exclusively for centering connected overlays.
126
- // When *not* centering, a top/left/bottom/right will be set which overrides the normal
127
- // flex layout.
128
- display: flex;
129
-
130
- // We use the `column` direction here to avoid some flexbox issues in Edge
131
- // when using the "grow after open" options.
132
- flex-direction: column;
133
-
134
- // Add some dimensions so the element has an `innerText` which some people depend on in tests.
135
- min-width: 1px;
136
- min-height: 1px;
137
- }
4
+ // This file is needed to create a bundle in a package
138
5
 
139
- // Used when disabling global scrolling.
140
- .cdk-global-scrollblock {
141
- position: fixed;
142
-
143
- // Necessary for the content not to lose its width. Note that we're using 100%, instead of
144
- // 100vw, because 100vw includes the width plus the scrollbar, whereas 100% is the width
145
- // that the element had before we made it `fixed`.
146
- width: 100%;
147
-
148
- // Note: this will always add a scrollbar to whatever element it is on, which can
149
- // potentially result in double scrollbars. It shouldn't be an issue, because we won't
150
- // block scrolling on a page that doesn't have a scrollbar in the first place.
151
- overflow-y: scroll;
152
- }
153
- }
154
6
 
155
7
  /// Emits a CSS class, `.cdk-visually-hidden`. This class can be applied to an element
156
8
  /// to make that element visually hidden while remaining available to assistive technology.
157
9
  @mixin a11y-visually-hidden() {
158
- .cdk-visually-hidden {
159
- border: 0;
160
- clip: rect(0 0 0 0);
161
- height: 1px;
162
- margin: -1px;
163
- overflow: hidden;
164
- padding: 0;
165
- position: absolute;
166
- width: 1px;
167
-
168
- // This works around a Chrome bug that can cause the tab to crash when large amounts of
169
- // non-English text get wrapped: https://bugs.chromium.org/p/chromium/issues/detail?id=1201444
170
- white-space: nowrap;
171
-
172
- // Avoid browsers rendering the focus ring in some cases.
173
- outline: 0;
174
-
175
- // Avoid some cases where the browser will still render the native controls (see #9049).
176
- -webkit-appearance: none;
177
- -moz-appearance: none;
178
-
179
- // We need at least one of top/bottom/left/right in order to prevent cases where the
180
- // absolute-positioned element is pushed down and can affect scrolling (see #24597).
181
- // `left` was chosen here, because it's the least likely to break overrides where the
182
- // element might have been positioned (e.g. `mat-checkbox`).
183
- left: 0;
184
-
185
- [dir='rtl'] & {
186
- left: auto;
187
- right: 0;
188
- }
189
- }
190
- }
191
-
192
- /// @deprecated Use `a11y-visually-hidden`.
193
- @mixin a11y() {
194
- @include a11y-visually-hidden;
195
- }
196
-
197
- /// Emits the mixin's content nested under `$selector-context` if `$selector-context`
198
- /// is non-empty.
199
- /// @param {String} selector-context The selector under which to nest the mixin's content.
200
- @mixin _optionally-nest-content($selector-context) {
201
- @if ($selector-context == '') {
202
- @content;
203
- }
204
- @else {
205
- #{$selector-context} {
206
- @content;
207
- }
208
- }
209
- }
10
+ .cdk-visually-hidden {
11
+ border: 0;
12
+ clip: rect(0 0 0 0);
13
+ height: 1px;
14
+ margin: -1px;
15
+ overflow: hidden;
16
+ padding: 0;
17
+ position: absolute;
18
+ width: 1px;
210
19
 
211
- /// Applies styles for users in high contrast mode. Note that this only applies
212
- /// to Microsoft browsers. Chrome can be included by checking for the `html[hc]`
213
- /// attribute, however Chrome handles high contrast differently.
214
- ///
215
- /// @param {String} target Type of high contrast setting to target. Defaults to `active`, can be
216
- /// `white-on-black` or `black-on-white`.
217
- /// @param {String} encapsulation Whether to emit styles for view encapsulation. Values are:
218
- /// * `on` - works for `Emulated`, `Native`, and `ShadowDom`
219
- /// * `off` - works for `None`
220
- /// * `any` - works for all encapsulation modes by emitting the CSS twice (default).
221
- @mixin high-contrast($target: active, $encapsulation: 'any') {
222
- @if ($target != 'active' and $target != 'black-on-white' and $target != 'white-on-black') {
223
- @error 'Unknown cdk-high-contrast value "#{$target}" provided. ' +
224
- 'Allowed values are "active", "black-on-white", and "white-on-black"';
225
- }
20
+ // This works around a Chrome bug that can cause the tab to crash when large amounts of
21
+ // non-English text get wrapped: https://bugs.chromium.org/p/chromium/issues/detail?id=1201444
22
+ white-space: nowrap;
226
23
 
227
- @if ($encapsulation != 'on' and $encapsulation != 'off' and $encapsulation != 'any') {
228
- @error 'Unknown cdk-high-contrast encapsulation "#{$encapsulation}" provided. ' +
229
- 'Allowed values are "on", "off", and "any"';
230
- }
24
+ // Avoid browsers rendering the focus ring in some cases.
25
+ outline: 0;
231
26
 
232
- // If the selector context has multiple parts, such as `.section, .region`, just doing
233
- // `.cdk-high-contrast-xxx #{&}` will only apply the parent selector to the first part of the
234
- // context. We address this by nesting the selector context under .cdk-high-contrast.
235
- @at-root {
236
- $selector-context: #{&};
27
+ // Avoid some cases where the browser will still render the native controls (see #9049).
28
+ -webkit-appearance: none;
29
+ -moz-appearance: none;
237
30
 
238
- @if ($encapsulation != 'on') {
239
- // Note that if this selector is updated, the same change has to be made inside
240
- // `_overlay.scss` which can't depend on this mixin due to some infrastructure limitations.
241
- .cdk-high-contrast-#{$target} {
242
- @include _optionally-nest-content($selector-context) {
243
- @content;
244
- }
245
- }
246
- }
31
+ // We need at least one of top/bottom/left/right in order to prevent cases where the
32
+ // absolute-positioned element is pushed down and can affect scrolling (see #24597).
33
+ // `left` was chosen here, because it's the least likely to break overrides where the
34
+ // element might have been positioned (e.g. `mat-checkbox`).
35
+ left: 0;
247
36
 
248
- @if ($encapsulation != 'off') {
249
- .cdk-high-contrast-#{$target} :host {
250
- @include _optionally-nest-content($selector-context) {
251
- @content;
37
+ [dir='rtl'] & {
38
+ left: auto;
39
+ right: 0;
252
40
  }
253
- }
254
41
  }
255
- }
256
42
  }
257
43
 
258
-
259
44
  @keyframes mc-progress {
260
45
  from {
261
46
  background-position: 0 0;
@@ -345,7 +130,7 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
345
130
  // Do not edit directly
346
131
 
347
132
  $light-color-scheme-primary-default: #0374eb;
348
- $light-color-scheme-second-default: #6d7a86;
133
+ $light-color-scheme-secondary-default: #6d7a86;
349
134
  $light-color-scheme-error-default: #db3c55;
350
135
  $light-color-scheme-info-default: #0374eb;
351
136
  $light-color-scheme-success-default: #028b49;
@@ -371,7 +156,7 @@ $light-color-scheme-states-selected-color: #e7f1ff;
371
156
  $light-color-scheme-states-pressed-shadow: inset 0 1px 2px 0 rgba(black, 0.2);
372
157
  $light-color-scheme-states-disabled-opacity: 0.3;
373
158
  $dark-color-scheme-primary-default: #0059b8;
374
- $dark-color-scheme-second-default: #515e69;
159
+ $dark-color-scheme-secondary-default: #515e69;
375
160
  $dark-color-scheme-error-default: #b9023a;
376
161
  $dark-color-scheme-info-default: #0c6579;
377
162
  $dark-color-scheme-success-default: #016b37;
@@ -683,9 +468,9 @@ $badge-light-color-scheme-solid-transparent-color: #19252f;
683
468
  $badge-light-color-scheme-solid-light-background: #d7dee4;
684
469
  $badge-light-color-scheme-solid-light-border: #d7dee4;
685
470
  $badge-light-color-scheme-solid-light-color: #19252f;
686
- $badge-light-color-scheme-solid-second-background: #7f8c98;
687
- $badge-light-color-scheme-solid-second-border: #7f8c98;
688
- $badge-light-color-scheme-solid-second-color: white;
471
+ $badge-light-color-scheme-solid-secondary-background: #7f8c98;
472
+ $badge-light-color-scheme-solid-secondary-border: #7f8c98;
473
+ $badge-light-color-scheme-solid-secondary-color: white;
689
474
  $badge-light-color-scheme-pastel-primary-background: #eff6ff;
690
475
  $badge-light-color-scheme-pastel-primary-border: #a2c7fe;
691
476
  $badge-light-color-scheme-pastel-primary-color: #4187ff;
@@ -737,9 +522,9 @@ $badge-dark-color-scheme-solid-transparent-color: white;
737
522
  $badge-dark-color-scheme-solid-light-background: #7f8c98;
738
523
  $badge-dark-color-scheme-solid-light-border: #7f8c98;
739
524
  $badge-dark-color-scheme-solid-light-color: white;
740
- $badge-dark-color-scheme-solid-second-background: #515e69;
741
- $badge-dark-color-scheme-solid-second-border: #515e69;
742
- $badge-dark-color-scheme-solid-second-color: white;
525
+ $badge-dark-color-scheme-solid-secondary-background: #515e69;
526
+ $badge-dark-color-scheme-solid-secondary-border: #515e69;
527
+ $badge-dark-color-scheme-solid-secondary-color: white;
743
528
  $badge-size-default-height: 24px;
744
529
  $badge-size-default-min-width: 10px;
745
530
  $badge-size-default-padding: 0 8px;
@@ -772,12 +557,12 @@ $button-light-color-scheme-primary-transparent-states-hover-color: #0059b8;
772
557
  $button-light-color-scheme-primary-transparent-states-hover-icon: #0374eb;
773
558
  $button-light-color-scheme-primary-transparent-states-active-color: #014b9d;
774
559
  $button-light-color-scheme-primary-transparent-states-active-icon: #014b9d;
775
- $button-light-color-scheme-second-border: #d7dee4;
776
- $button-light-color-scheme-second-background: #d7dee4;
777
- $button-light-color-scheme-second-color: #19252f;
778
- $button-light-color-scheme-second-icon: #8c99a5;
779
- $button-light-color-scheme-second-states-active-border: #bdc7d1;
780
- $button-light-color-scheme-second-states-active-background: #bdc7d1;
560
+ $button-light-color-scheme-secondary-border: #d7dee4;
561
+ $button-light-color-scheme-secondary-background: #d7dee4;
562
+ $button-light-color-scheme-secondary-color: #19252f;
563
+ $button-light-color-scheme-secondary-icon: #8c99a5;
564
+ $button-light-color-scheme-secondary-states-active-border: #bdc7d1;
565
+ $button-light-color-scheme-secondary-states-active-background: #bdc7d1;
781
566
  $button-light-color-scheme-error-border: #d7dee4;
782
567
  $button-light-color-scheme-error-background: #d7dee4;
783
568
  $button-light-color-scheme-error-color: #ea5868;
@@ -797,12 +582,12 @@ $button-dark-color-scheme-primary-transparent-states-hover-color: #014b9d;
797
582
  $button-dark-color-scheme-primary-transparent-states-hover-icon: #0374eb;
798
583
  $button-dark-color-scheme-primary-transparent-states-active-color: #023c7f;
799
584
  $button-dark-color-scheme-primary-transparent-states-active-icon: #a2c7fe;
800
- $button-dark-color-scheme-second-border: #515e69;
801
- $button-dark-color-scheme-second-background: #515e69;
802
- $button-dark-color-scheme-second-color: #f2f5f9;
803
- $button-dark-color-scheme-second-icon: #8c99a5;
804
- $button-dark-color-scheme-second-states-active-border: #333f4a;
805
- $button-dark-color-scheme-second-states-active-background: #333f4a;
585
+ $button-dark-color-scheme-secondary-border: #515e69;
586
+ $button-dark-color-scheme-secondary-background: #515e69;
587
+ $button-dark-color-scheme-secondary-color: #f2f5f9;
588
+ $button-dark-color-scheme-secondary-icon: #8c99a5;
589
+ $button-dark-color-scheme-secondary-states-active-border: #333f4a;
590
+ $button-dark-color-scheme-secondary-states-active-background: #333f4a;
806
591
  $button-dark-color-scheme-error-border: #515e69;
807
592
  $button-dark-color-scheme-error-background: #515e69;
808
593
  $button-dark-color-scheme-error-color: #ea5868;
@@ -1801,15 +1586,15 @@ $tags-light-color-scheme-primary-states-focused: #0374eb;
1801
1586
  $tags-light-color-scheme-primary-states-disabled-text: mix(#0374eb, transparent, 50%);
1802
1587
  $tags-light-color-scheme-primary-states-disabled-background: mix(#0374eb, transparent, 10%);
1803
1588
  $tags-light-color-scheme-primary-states-disabled-border: transparent;
1804
- $tags-light-color-scheme-second-background: #d7dee4;
1805
- $tags-light-color-scheme-second-border: transparent;
1806
- $tags-light-color-scheme-second-text: #19252f;
1807
- $tags-light-color-scheme-second-icon: #8c99a5;
1808
- $tags-light-color-scheme-second-states-hover-icon: #6d7a86;
1809
- $tags-light-color-scheme-second-states-focused: #0374eb;
1810
- $tags-light-color-scheme-second-states-disabled-text: mix(#8c99a5, transparent, 50%);
1811
- $tags-light-color-scheme-second-states-disabled-background: mix(#8c99a5, transparent, 10%);
1812
- $tags-light-color-scheme-second-states-disabled-border: transparent;
1589
+ $tags-light-color-scheme-secondary-background: #d7dee4;
1590
+ $tags-light-color-scheme-secondary-border: transparent;
1591
+ $tags-light-color-scheme-secondary-text: #19252f;
1592
+ $tags-light-color-scheme-secondary-icon: #8c99a5;
1593
+ $tags-light-color-scheme-secondary-states-hover-icon: #6d7a86;
1594
+ $tags-light-color-scheme-secondary-states-focused: #0374eb;
1595
+ $tags-light-color-scheme-secondary-states-disabled-text: mix(#8c99a5, transparent, 50%);
1596
+ $tags-light-color-scheme-secondary-states-disabled-background: mix(#8c99a5, transparent, 10%);
1597
+ $tags-light-color-scheme-secondary-states-disabled-border: transparent;
1813
1598
  $tags-light-color-scheme-error-background: #ffeaea;
1814
1599
  $tags-light-color-scheme-error-border: transparent;
1815
1600
  $tags-light-color-scheme-error-text: #db3c55;
@@ -1828,15 +1613,15 @@ $tags-dark-color-scheme-primary-states-focused: #4187ff;
1828
1613
  $tags-dark-color-scheme-primary-states-disabled-text: mix(#5697ff, transparent, 50%);
1829
1614
  $tags-dark-color-scheme-primary-states-disabled-background: mix(#5697ff, transparent, 10%);
1830
1615
  $tags-dark-color-scheme-primary-states-disabled-border: transparent;
1831
- $tags-dark-color-scheme-second-background: #333f4a;
1832
- $tags-dark-color-scheme-second-border: transparent;
1833
- $tags-dark-color-scheme-second-text: #bdc7d1;
1834
- $tags-dark-color-scheme-second-icon: #8c99a5;
1835
- $tags-dark-color-scheme-second-states-hover-icon: #6d7a86;
1836
- $tags-dark-color-scheme-second-states-focused: #4187ff;
1837
- $tags-dark-color-scheme-second-states-disabled-text: mix(#7f8c98, transparent, 50%);
1838
- $tags-dark-color-scheme-second-states-disabled-background: mix(#7f8c98, transparent, 10%);
1839
- $tags-dark-color-scheme-second-states-disabled-border: transparent;
1616
+ $tags-dark-color-scheme-secondary-background: #333f4a;
1617
+ $tags-dark-color-scheme-secondary-border: transparent;
1618
+ $tags-dark-color-scheme-secondary-text: #bdc7d1;
1619
+ $tags-dark-color-scheme-secondary-icon: #8c99a5;
1620
+ $tags-dark-color-scheme-secondary-states-hover-icon: #6d7a86;
1621
+ $tags-dark-color-scheme-secondary-states-focused: #4187ff;
1622
+ $tags-dark-color-scheme-secondary-states-disabled-text: mix(#7f8c98, transparent, 50%);
1623
+ $tags-dark-color-scheme-secondary-states-disabled-background: mix(#7f8c98, transparent, 10%);
1624
+ $tags-dark-color-scheme-secondary-states-disabled-border: transparent;
1840
1625
  $tags-dark-color-scheme-error-background: #800025;
1841
1626
  $tags-dark-color-scheme-error-border: transparent;
1842
1627
  $tags-dark-color-scheme-error-text: #fcb2b4;
@@ -2021,7 +1806,7 @@ A200: white,
2021
1806
  )
2022
1807
  );
2023
1808
 
2024
- $light-color-scheme-second-palette: (
1809
+ $light-color-scheme-secondary-palette: (
2025
1810
  40: #f2f5f9,
2026
1811
  60: #ebeef2,
2027
1812
  100: #d7dee4,
@@ -2219,7 +2004,7 @@ A200: white,
2219
2004
  )
2220
2005
  );
2221
2006
 
2222
- $dark-color-scheme-second-palette: (
2007
+ $dark-color-scheme-secondary-palette: (
2223
2008
  40: #f2f5f9,
2224
2009
  60: #ebeef2,
2225
2010
  100: #d7dee4,
@@ -2690,6 +2475,13 @@ $typography-body-mono-font-weight: normal;
2690
2475
  $typography-body-mono-font-family: 'Roboto Mono', 'Consolas', 'Menlo', 'Monaco', monospace;
2691
2476
  $typography-body-mono-text-transform: null;
2692
2477
  $typography-body-mono-font-feature-settings: initial;
2478
+ $typography-body-mono-strong-font-size: 15px;
2479
+ $typography-body-mono-strong-line-height: 20px;
2480
+ $typography-body-mono-strong-letter-spacing: normal;
2481
+ $typography-body-mono-strong-font-weight: 500;
2482
+ $typography-body-mono-strong-font-family: 'Roboto Mono', 'Consolas', 'Menlo', 'Monaco', monospace;
2483
+ $typography-body-mono-strong-text-transform: null;
2484
+ $typography-body-mono-strong-font-feature-settings: initial;
2693
2485
  $typography-caption-font-size: 13px;
2694
2486
  $typography-caption-line-height: 16px;
2695
2487
  $typography-caption-letter-spacing: -0.0025em;
@@ -2725,6 +2517,13 @@ $typography-caption-mono-font-weight: normal;
2725
2517
  $typography-caption-mono-font-family: 'Roboto Mono', 'Consolas', 'Menlo', 'Monaco', monospace;
2726
2518
  $typography-caption-mono-text-transform: null;
2727
2519
  $typography-caption-mono-font-feature-settings: initial;
2520
+ $typography-caption-mono-strong-font-size: 13px;
2521
+ $typography-caption-mono-strong-line-height: 16px;
2522
+ $typography-caption-mono-strong-letter-spacing: normal;
2523
+ $typography-caption-mono-strong-font-weight: 500;
2524
+ $typography-caption-mono-strong-font-family: 'Roboto Mono', 'Consolas', 'Menlo', 'Monaco', monospace;
2525
+ $typography-caption-mono-strong-text-transform: null;
2526
+ $typography-caption-mono-strong-font-feature-settings: initial;
2728
2527
  $typography-small-text-font-size: 13px;
2729
2528
  $typography-small-text-line-height: 16px;
2730
2529
  $typography-small-text-letter-spacing: -0.0025em;
@@ -2855,6 +2654,15 @@ $mosaic: (
2855
2654
  'text-transform': $typography-body-mono-text-transform,
2856
2655
  'font-feature-settings': $typography-body-mono-font-feature-settings
2857
2656
  ),
2657
+ 'body-mono-strong': (
2658
+ 'font-size': $typography-body-mono-strong-font-size,
2659
+ 'line-height': $typography-body-mono-strong-line-height,
2660
+ 'letter-spacing': $typography-body-mono-strong-letter-spacing,
2661
+ 'font-weight': $typography-body-mono-strong-font-weight,
2662
+ 'font-family': $typography-body-mono-strong-font-family,
2663
+ 'text-transform': $typography-body-mono-strong-text-transform,
2664
+ 'font-feature-settings': $typography-body-mono-strong-font-feature-settings
2665
+ ),
2858
2666
  'caption': (
2859
2667
  'font-size': $typography-caption-font-size,
2860
2668
  'line-height': $typography-caption-line-height,
@@ -2900,6 +2708,15 @@ $mosaic: (
2900
2708
  'text-transform': $typography-caption-mono-text-transform,
2901
2709
  'font-feature-settings': $typography-caption-mono-font-feature-settings
2902
2710
  ),
2711
+ 'caption-mono-strong': (
2712
+ 'font-size': $typography-caption-mono-strong-font-size,
2713
+ 'line-height': $typography-caption-mono-strong-line-height,
2714
+ 'letter-spacing': $typography-caption-mono-strong-letter-spacing,
2715
+ 'font-weight': $typography-caption-mono-strong-font-weight,
2716
+ 'font-family': $typography-caption-mono-strong-font-family,
2717
+ 'text-transform': $typography-caption-mono-strong-text-transform,
2718
+ 'font-feature-settings': $typography-caption-mono-strong-font-feature-settings
2719
+ ),
2903
2720
  'small-text': (
2904
2721
  'font-size': $typography-small-text-font-size,
2905
2722
  'line-height': $typography-small-text-line-height,
@@ -3318,58 +3135,180 @@ $md-typography: (
3318
3135
  @include mc-no-select;
3319
3136
  }
3320
3137
 
3321
- .cdk-overlay-container {
3322
- pointer-events: none;
3323
- top: 0;
3324
- left: 0;
3325
- height: 100%;
3326
- width: 100%;
3327
- position: fixed;
3328
- z-index: 1000;
3329
- box-sizing: border-box;
3330
- margin: 0;
3331
- padding: 0;
3332
- }
3138
+ // We want overlays to always appear over user content, so set a baseline
3139
+ // very high z-index for the overlay container, which is where we create the new
3140
+ // stacking context for all overlays.
3141
+ $overlay-container-z-index: 1000 !default;
3142
+ $overlay-z-index: 1000 !default;
3143
+ $overlay-backdrop-z-index: 1000 !default;
3333
3144
 
3334
- .cdk-overlay-backdrop {
3335
- top: 0;
3336
- bottom: 0;
3337
- left: 0;
3338
- right: 0;
3339
- -webkit-tap-highlight-color: transparent;
3340
- transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
3341
- opacity: 0;
3342
- position: absolute;
3343
- pointer-events: auto;
3344
- z-index: 1000;
3345
- box-sizing: border-box;
3346
- margin: 0;
3347
- padding: 0;
3348
- }
3145
+ // Background color for all of the backdrops
3146
+ $overlay-backdrop-color: rgba(0, 0, 0, 0.32) !default;
3349
3147
 
3350
- .cdk-overlay-pane {
3351
- box-sizing: border-box;
3352
- position: absolute;
3353
- pointer-events: auto;
3354
- margin: 0;
3355
- padding: 0;
3356
- z-index: 1000;
3357
- max-width: 100%;
3358
- max-height: 100%;
3359
- }
3148
+ // Default backdrop animation is based on the Material Design swift-ease-out.
3149
+ $backdrop-animation-duration: 400ms !default;
3150
+ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
3360
3151
 
3361
- .cdk-overlay-connected-position-bounding-box {
3362
- box-sizing: border-box;
3363
- position: absolute;
3364
- z-index: 1000;
3365
- display: flex;
3366
- flex-direction: column;
3367
- margin: 0;
3368
- padding: 0;
3369
- min-width: 1px;
3370
- min-height: 1px;
3152
+ /// Emits structural styles required for cdk/overlay to function.
3153
+ @mixin overlay() {
3154
+ .cdk-overlay-container,
3155
+ .cdk-global-overlay-wrapper {
3156
+ // Disable events from being captured on the overlay container.
3157
+ pointer-events: none;
3158
+
3159
+ // The container should be the size of the viewport.
3160
+ top: 0;
3161
+ left: 0;
3162
+ height: 100%;
3163
+ width: 100%;
3164
+ }
3165
+
3166
+ // The overlay-container is an invisible element which contains all individual overlays.
3167
+ .cdk-overlay-container {
3168
+ position: fixed;
3169
+ z-index: $overlay-container-z-index;
3170
+
3171
+ // todo перепроверить
3172
+ box-sizing: border-box;
3173
+ margin: 0;
3174
+ padding: 0;
3175
+
3176
+ &:empty {
3177
+ // Hide the element when it doesn't have any child nodes. This doesn't
3178
+ // include overlays that have been detached, rather than disposed.
3179
+ display: none;
3180
+ }
3181
+ }
3182
+
3183
+ // We use an extra wrapper element in order to use make the overlay itself a flex item.
3184
+ // This makes centering the overlay easy without running into the subpixel rendering
3185
+ // problems tied to using `transform` and without interfering with the other position
3186
+ // strategies.
3187
+ .cdk-global-overlay-wrapper {
3188
+ display: flex;
3189
+ position: absolute;
3190
+ z-index: $overlay-z-index;
3191
+ }
3192
+
3193
+ // A single overlay pane.
3194
+ .cdk-overlay-pane {
3195
+ // Note: it's important for this one to start off `absolute`,
3196
+ // in order for us to be able to measure it correctly.
3197
+ position: absolute;
3198
+ pointer-events: auto;
3199
+ box-sizing: border-box;
3200
+ z-index: $overlay-z-index;
3201
+
3202
+ // For connected-position overlays, we set `display: flex` in
3203
+ // order to force `max-width` and `max-height` to take effect.
3204
+ display: flex;
3205
+ max-width: 100%;
3206
+ max-height: 100%;
3207
+
3208
+ // todo перепроверить
3209
+ margin: 0;
3210
+ padding: 0;
3211
+ }
3212
+
3213
+ .cdk-overlay-backdrop {
3214
+ // TODO(jelbourn): reuse sidenav fullscreen mixin.
3215
+ position: absolute;
3216
+ top: 0;
3217
+ bottom: 0;
3218
+ left: 0;
3219
+ right: 0;
3220
+
3221
+ z-index: $overlay-backdrop-z-index;
3222
+ pointer-events: auto;
3223
+ -webkit-tap-highlight-color: transparent;
3224
+ transition: opacity $backdrop-animation-duration $backdrop-animation-timing-function;
3225
+ opacity: 0;
3226
+
3227
+ // todo перепроверить
3228
+ box-sizing: border-box;
3229
+ margin: 0;
3230
+ padding: 0;
3231
+
3232
+ &.cdk-overlay-backdrop-showing {
3233
+ opacity: 1;
3234
+
3235
+ // Note that we can't import and use the `high-contrast` mixin from `_a11y.scss`, because
3236
+ // this file will be copied to the top-level `cdk` package when putting together the files
3237
+ // for npm. Any relative import paths we use here will become invalid once the file is copied.
3238
+ .cdk-high-contrast-active & {
3239
+ // In high contrast mode the rgba background will become solid
3240
+ // so we need to fall back to making it opaque using `opacity`.
3241
+ opacity: 0.6;
3242
+ }
3243
+ }
3244
+ }
3245
+
3246
+ .cdk-overlay-dark-backdrop {
3247
+ background: $overlay-backdrop-color;
3248
+ }
3249
+
3250
+ .cdk-overlay-transparent-backdrop {
3251
+ // Define a transition on the visibility so that the `transitionend` event can fire immediately.
3252
+ transition: visibility 1ms linear, opacity 1ms linear;
3253
+ visibility: hidden;
3254
+ opacity: 1;
3255
+
3256
+ // Note: as of Firefox 57, having the backdrop be `background: none` will prevent it from
3257
+ // capturing the user's mouse scroll events. Since we also can't use something like
3258
+ // `rgba(0, 0, 0, 0)`, we work around the inconsistency by not setting the background at
3259
+ // all and using `opacity` to make the element transparent.
3260
+ &.cdk-overlay-backdrop-showing {
3261
+ opacity: 0;
3262
+ visibility: visible;
3263
+ }
3264
+ }
3265
+
3266
+ .cdk-overlay-backdrop-noop-animation {
3267
+ transition: none;
3268
+ }
3269
+
3270
+ // Overlay parent element used with the connected position strategy. Used to constrain the
3271
+ // overlay element's size to fit within the viewport.
3272
+ .cdk-overlay-connected-position-bounding-box {
3273
+ position: absolute;
3274
+ z-index: $overlay-z-index;
3275
+
3276
+ // We use `display: flex` on this element exclusively for centering connected overlays.
3277
+ // When *not* centering, a top/left/bottom/right will be set which overrides the normal
3278
+ // flex layout.
3279
+ display: flex;
3280
+
3281
+ // We use the `column` direction here to avoid some flexbox issues in Edge
3282
+ // when using the "grow after open" options.
3283
+ flex-direction: column;
3284
+
3285
+ // Add some dimensions so the element has an `innerText` which some people depend on in tests.
3286
+ min-width: 1px;
3287
+ min-height: 1px;
3288
+
3289
+ // todo перепроверить
3290
+ box-sizing: border-box;
3291
+ margin: 0;
3292
+ padding: 0;
3293
+ }
3294
+
3295
+ // Used when disabling global scrolling.
3296
+ .cdk-global-scrollblock {
3297
+ position: fixed;
3298
+
3299
+ // Necessary for the content not to lose its width. Note that we're using 100%, instead of
3300
+ // 100vw, because 100vw includes the width plus the scrollbar, whereas 100% is the width
3301
+ // that the element had before we made it `fixed`.
3302
+ width: 100%;
3303
+
3304
+ // Note: this will always add a scrollbar to whatever element it is on, which can
3305
+ // potentially result in double scrollbars. It shouldn't be an issue, because we won't
3306
+ // block scrolling on a page that doesn't have a scrollbar in the first place.
3307
+ overflow-y: scroll;
3308
+ }
3371
3309
  }
3372
3310
 
3311
+
3373
3312
  @mixin popup-params($theme) {
3374
3313
  $popup: map-get(map-get($theme, components), popup);
3375
3314
 
@@ -3433,10 +3372,6 @@ $md-typography: (
3433
3372
 
3434
3373
 
3435
3374
 
3436
-
3437
-
3438
-
3439
-
3440
3375
  @function mc-light-theme-components($theme) {
3441
3376
  $alert: (
3442
3377
  error: (
@@ -3481,9 +3416,9 @@ $md-typography: (
3481
3416
  border: $badge-light-color-scheme-solid-primary-border
3482
3417
  ),
3483
3418
  second_solid: (
3484
- color: $badge-light-color-scheme-solid-second-color,
3485
- background: $badge-light-color-scheme-solid-second-background,
3486
- border: $badge-light-color-scheme-solid-second-border
3419
+ color: $badge-light-color-scheme-solid-secondary-color,
3420
+ background: $badge-light-color-scheme-solid-secondary-background,
3421
+ border: $badge-light-color-scheme-solid-secondary-border
3487
3422
  ),
3488
3423
  light_solid: (
3489
3424
  color: $badge-light-color-scheme-solid-light-color,
@@ -3566,14 +3501,14 @@ $md-typography: (
3566
3501
  active_icon: $button-light-color-scheme-primary-transparent-states-active-icon
3567
3502
  ),
3568
3503
 
3569
- second: (
3570
- color: $button-light-color-scheme-second-color,
3571
- border: $button-light-color-scheme-second-border,
3572
- background: $button-light-color-scheme-second-background,
3573
- icon: $button-light-color-scheme-second-icon,
3504
+ secondary: (
3505
+ color: $button-light-color-scheme-secondary-color,
3506
+ border: $button-light-color-scheme-secondary-border,
3507
+ background: $button-light-color-scheme-secondary-background,
3508
+ icon: $button-light-color-scheme-secondary-icon,
3574
3509
 
3575
- active_border: $button-light-color-scheme-second-states-active-border,
3576
- active_background: $button-light-color-scheme-second-states-active-background
3510
+ active_border: $button-light-color-scheme-secondary-states-active-border,
3511
+ active_background: $button-light-color-scheme-secondary-states-active-background
3577
3512
  ),
3578
3513
 
3579
3514
  error: (
@@ -4017,16 +3952,16 @@ $md-typography: (
4017
3952
  focused: $tags-light-color-scheme-primary-states-focused,
4018
3953
  disabled: $tags-light-color-scheme-primary-states-disabled-text
4019
3954
  ),
4020
- second: (
4021
- border: $tags-light-color-scheme-second-border,
4022
- text: $tags-light-color-scheme-second-text,
4023
- background: $tags-light-color-scheme-second-background,
4024
- background_disabled: $tags-light-color-scheme-second-states-disabled-background,
4025
- border_disabled: $tags-light-color-scheme-second-states-disabled-border,
4026
- icon: $tags-light-color-scheme-second-icon,
4027
- icon_hovered: $tags-light-color-scheme-second-states-hover-icon,
4028
- focused: $tags-light-color-scheme-second-states-focused,
4029
- disabled: $tags-light-color-scheme-second-states-disabled-text
3955
+ secondary: (
3956
+ border: $tags-light-color-scheme-secondary-border,
3957
+ text: $tags-light-color-scheme-secondary-text,
3958
+ background: $tags-light-color-scheme-secondary-background,
3959
+ background_disabled: $tags-light-color-scheme-secondary-states-disabled-background,
3960
+ border_disabled: $tags-light-color-scheme-secondary-states-disabled-border,
3961
+ icon: $tags-light-color-scheme-secondary-icon,
3962
+ icon_hovered: $tags-light-color-scheme-secondary-states-hover-icon,
3963
+ focused: $tags-light-color-scheme-secondary-states-focused,
3964
+ disabled: $tags-light-color-scheme-secondary-states-disabled-text
4030
3965
  ),
4031
3966
  error: (
4032
3967
  border: $tags-light-color-scheme-error-border,
@@ -4196,9 +4131,9 @@ $md-typography: (
4196
4131
  border: $badge-dark-color-scheme-solid-primary-border
4197
4132
  ),
4198
4133
  second_solid: (
4199
- color: $badge-dark-color-scheme-solid-second-color,
4200
- background: $badge-dark-color-scheme-solid-second-background,
4201
- border: $badge-dark-color-scheme-solid-second-border
4134
+ color: $badge-dark-color-scheme-solid-secondary-color,
4135
+ background: $badge-dark-color-scheme-solid-secondary-background,
4136
+ border: $badge-dark-color-scheme-solid-secondary-border
4202
4137
  ),
4203
4138
  light_solid: (
4204
4139
  color: $badge-dark-color-scheme-solid-light-color,
@@ -4281,14 +4216,14 @@ $md-typography: (
4281
4216
  active_icon: $button-dark-color-scheme-primary-transparent-states-active-icon
4282
4217
  ),
4283
4218
 
4284
- second: (
4285
- color: $button-dark-color-scheme-second-color,
4286
- border: $button-dark-color-scheme-second-border,
4287
- background: $button-dark-color-scheme-second-background,
4288
- icon: $button-dark-color-scheme-second-icon,
4219
+ secondary: (
4220
+ color: $button-dark-color-scheme-secondary-color,
4221
+ border: $button-dark-color-scheme-secondary-border,
4222
+ background: $button-dark-color-scheme-secondary-background,
4223
+ icon: $button-dark-color-scheme-secondary-icon,
4289
4224
 
4290
- active_border: $button-dark-color-scheme-second-states-active-border,
4291
- active_background: $button-dark-color-scheme-second-states-active-background
4225
+ active_border: $button-dark-color-scheme-secondary-states-active-border,
4226
+ active_background: $button-dark-color-scheme-secondary-states-active-background
4292
4227
  ),
4293
4228
 
4294
4229
  error: (
@@ -4730,16 +4665,16 @@ $md-typography: (
4730
4665
  focused: $tags-dark-color-scheme-primary-states-focused,
4731
4666
  disabled: $tags-dark-color-scheme-primary-states-disabled-text
4732
4667
  ),
4733
- second: (
4734
- border: $tags-dark-color-scheme-second-border,
4735
- text: $tags-dark-color-scheme-second-text,
4736
- background: $tags-dark-color-scheme-second-background,
4737
- background_disabled: $tags-dark-color-scheme-second-states-disabled-background,
4738
- border_disabled: $tags-dark-color-scheme-second-states-disabled-border,
4739
- icon: $tags-dark-color-scheme-second-icon,
4740
- icon_hovered: $tags-dark-color-scheme-second-states-hover-icon,
4741
- focused: $tags-dark-color-scheme-second-states-focused,
4742
- disabled: $tags-dark-color-scheme-second-states-disabled-text
4668
+ secondary: (
4669
+ border: $tags-dark-color-scheme-secondary-border,
4670
+ text: $tags-dark-color-scheme-secondary-text,
4671
+ background: $tags-dark-color-scheme-secondary-background,
4672
+ background_disabled: $tags-dark-color-scheme-secondary-states-disabled-background,
4673
+ border_disabled: $tags-dark-color-scheme-secondary-states-disabled-border,
4674
+ icon: $tags-dark-color-scheme-secondary-icon,
4675
+ icon_hovered: $tags-dark-color-scheme-secondary-states-hover-icon,
4676
+ focused: $tags-dark-color-scheme-secondary-states-focused,
4677
+ disabled: $tags-dark-color-scheme-secondary-states-disabled-text
4743
4678
  ),
4744
4679
  error: (
4745
4680
  border: $tags-dark-color-scheme-error-border,
@@ -4909,9 +4844,9 @@ $md-typography: (
4909
4844
  border: map-get($tokens, 'badge-#{$scheme}-solid-primary-border')
4910
4845
  ),
4911
4846
  second_solid: (
4912
- color: map-get($tokens, 'badge-#{$scheme}-solid-second-color'),
4913
- background: map-get($tokens, 'badge-#{$scheme}-solid-second-background'),
4914
- border: map-get($tokens, 'badge-#{$scheme}-solid-second-border')
4847
+ color: map-get($tokens, 'badge-#{$scheme}-solid-secondary-color'),
4848
+ background: map-get($tokens, 'badge-#{$scheme}-solid-secondary-background'),
4849
+ border: map-get($tokens, 'badge-#{$scheme}-solid-secondary-border')
4915
4850
  ),
4916
4851
  light_solid: (
4917
4852
  color: map-get($tokens, 'badge-#{$scheme}-solid-light-color'),
@@ -4994,14 +4929,14 @@ $md-typography: (
4994
4929
  active_icon: map-get($tokens, 'button-#{$scheme}-primary-transparent-states-active-icon')
4995
4930
  ),
4996
4931
 
4997
- second: (
4998
- color: map-get($tokens, 'button-#{$scheme}-second-color'),
4999
- border: map-get($tokens, 'button-#{$scheme}-second-border'),
5000
- background: map-get($tokens, 'button-#{$scheme}-second-background'),
5001
- icon: map-get($tokens, 'button-#{$scheme}-second-icon'),
4932
+ secondary: (
4933
+ color: map-get($tokens, 'button-#{$scheme}-secondary-color'),
4934
+ border: map-get($tokens, 'button-#{$scheme}-secondary-border'),
4935
+ background: map-get($tokens, 'button-#{$scheme}-secondary-background'),
4936
+ icon: map-get($tokens, 'button-#{$scheme}-secondary-icon'),
5002
4937
 
5003
- active_border: map-get($tokens, 'button-#{$scheme}-second-states-active-border'),
5004
- active_background: map-get($tokens, 'button-#{$scheme}-second-states-active-background')
4938
+ active_border: map-get($tokens, 'button-#{$scheme}-secondary-states-active-border'),
4939
+ active_background: map-get($tokens, 'button-#{$scheme}-secondary-states-active-background')
5005
4940
  ),
5006
4941
 
5007
4942
  error: (
@@ -5452,16 +5387,16 @@ $md-typography: (
5452
5387
  focused: map-get($tokens, 'tags-#{$scheme}-primary-states-focused'),
5453
5388
  disabled: map-get($tokens, 'tags-#{$scheme}-primary-states-disabled-text')
5454
5389
  ),
5455
- second: (
5456
- border: map-get($tokens, 'tags-#{$scheme}-second-border'),
5457
- text: map-get($tokens, 'tags-#{$scheme}-second-text'),
5458
- background: map-get($tokens, 'tags-#{$scheme}-second-background'),
5459
- background_disabled: map-get($tokens, 'tags-#{$scheme}-second-states-disabled-background'),
5460
- border_disabled: map-get($tokens, 'tags-#{$scheme}-second-states-disabled-border'),
5461
- icon: map-get($tokens, 'tags-#{$scheme}-second-icon'),
5462
- icon_hovered: map-get($tokens, 'tags-#{$scheme}-second-states-hover-icon'),
5463
- focused: map-get($tokens, 'tags-#{$scheme}-second-states-focused'),
5464
- disabled: map-get($tokens, 'tags-#{$scheme}-second-states-disabled-text')
5390
+ secondary: (
5391
+ border: map-get($tokens, 'tags-#{$scheme}-secondary-border'),
5392
+ text: map-get($tokens, 'tags-#{$scheme}-secondary-text'),
5393
+ background: map-get($tokens, 'tags-#{$scheme}-secondary-background'),
5394
+ background_disabled: map-get($tokens, 'tags-#{$scheme}-secondary-states-disabled-background'),
5395
+ border_disabled: map-get($tokens, 'tags-#{$scheme}-secondary-states-disabled-border'),
5396
+ icon: map-get($tokens, 'tags-#{$scheme}-secondary-icon'),
5397
+ icon_hovered: map-get($tokens, 'tags-#{$scheme}-secondary-states-hover-icon'),
5398
+ focused: map-get($tokens, 'tags-#{$scheme}-secondary-states-focused'),
5399
+ disabled: map-get($tokens, 'tags-#{$scheme}-secondary-states-disabled-text')
5465
5400
  ),
5466
5401
  error: (
5467
5402
  border: map-get($tokens, 'tags-#{$scheme}-error-border'),
@@ -5654,7 +5589,7 @@ $md-typography: (
5654
5589
 
5655
5590
 
5656
5591
  $light-primary: mc-palette($light-color-scheme-primary-palette, $light-color-scheme-primary-default);
5657
- $light-second: mc-palette($light-color-scheme-second-palette, $light-color-scheme-second-default);
5592
+ $light-secondary: mc-palette($light-color-scheme-secondary-palette, $light-color-scheme-secondary-default);
5658
5593
  $light-error: mc-palette($light-color-scheme-error-palette, $light-color-scheme-error-default);
5659
5594
 
5660
5595
  $light-info: mc-palette($light-color-scheme-info-palette, $light-color-scheme-info-default);
@@ -5663,7 +5598,7 @@ $light-warning: mc-palette($light-color-scheme-warning-palette, $light-color-sch
5663
5598
 
5664
5599
  @function mc-light-theme_import(
5665
5600
  $primary: $light-primary,
5666
- $second: $light-second,
5601
+ $secondary: $light-secondary,
5667
5602
  $error: $light-error,
5668
5603
  $info: $light-info,
5669
5604
  $success: $light-success,
@@ -5703,7 +5638,7 @@ $light-warning: mc-palette($light-color-scheme-warning-palette, $light-color-sch
5703
5638
  is-dark: false,
5704
5639
 
5705
5640
  primary: $primary,
5706
- second: $second,
5641
+ secondary: $secondary,
5707
5642
  error: $error,
5708
5643
 
5709
5644
  foreground: $foreground,
@@ -5720,7 +5655,7 @@ $light-warning: mc-palette($light-color-scheme-warning-palette, $light-color-sch
5720
5655
  }
5721
5656
 
5722
5657
  $dark-primary: mc-palette($dark-color-scheme-primary-palette, $dark-color-scheme-primary-default);
5723
- $dark-second: mc-palette($dark-color-scheme-second-palette, $dark-color-scheme-second-default);
5658
+ $dark-secondary: mc-palette($dark-color-scheme-secondary-palette, $dark-color-scheme-secondary-default);
5724
5659
  $dark-error: mc-palette($dark-color-scheme-error-palette, $dark-color-scheme-error-default);
5725
5660
 
5726
5661
  $dark-info: mc-palette($dark-color-scheme-info-palette, $dark-color-scheme-info-default);
@@ -5729,7 +5664,7 @@ $dark-warning: mc-palette($dark-color-scheme-warning-palette, $dark-color-scheme
5729
5664
 
5730
5665
  @function mc-dark-theme_import(
5731
5666
  $primary: $dark-primary,
5732
- $second: $dark-second,
5667
+ $secondary: $dark-secondary,
5733
5668
  $error: $dark-error,
5734
5669
  $info: $dark-info,
5735
5670
  $success: $dark-success,
@@ -5769,7 +5704,7 @@ $dark-warning: mc-palette($dark-color-scheme-warning-palette, $dark-color-scheme
5769
5704
  is-dark: true,
5770
5705
 
5771
5706
  primary: $primary,
5772
- second: $second,
5707
+ secondary: $secondary,
5773
5708
  error: $error,
5774
5709
 
5775
5710
  foreground: $foreground,
@@ -5838,7 +5773,7 @@ $dark-warning: mc-palette($dark-color-scheme-warning-palette, $dark-color-scheme
5838
5773
  foreground: _theme_foreground($tokens, $scheme),
5839
5774
 
5840
5775
  primary: _theme_palette($tokens, $scheme, primary),
5841
- second: _theme_palette($tokens, $scheme, second),
5776
+ secondary: _theme_palette($tokens, $scheme, secondary),
5842
5777
  error: _theme_palette($tokens, $scheme, error),
5843
5778
 
5844
5779
  warning: _theme_palette($tokens, $scheme, warning),
@@ -5861,7 +5796,7 @@ $dark-warning: mc-palette($dark-color-scheme-warning-palette, $dark-color-scheme
5861
5796
  foreground: _theme_foreground($tokens, $scheme),
5862
5797
 
5863
5798
  primary: _theme_palette($tokens, $scheme, primary),
5864
- second: _theme_palette($tokens, $scheme, second),
5799
+ secondary: _theme_palette($tokens, $scheme, secondary),
5865
5800
  error: _theme_palette($tokens, $scheme, error),
5866
5801
 
5867
5802
  warning: _theme_palette($tokens, $scheme, warning),
@@ -5875,6 +5810,7 @@ $dark-warning: mc-palette($dark-color-scheme-warning-palette, $dark-color-scheme
5875
5810
  }
5876
5811
 
5877
5812
 
5813
+
5878
5814
  @function mc-typography-level(
5879
5815
  $font-size,
5880
5816
  $line-height: $font-size,
@@ -5993,6 +5929,36 @@ $dark-warning: mc-palette($dark-color-scheme-warning-palette, $dark-color-scheme
5993
5929
  @return map-merge($config, (font-family: $font-family));
5994
5930
  }
5995
5931
 
5932
+ @function mc-markdown-typography-config() {
5933
+ $font-family: $font-family-base;
5934
+ $md-typography: map-get($md-typography, md-typography);
5935
+
5936
+ $config: (
5937
+ md-h1: map-get($md-typography, md-h1),
5938
+ md-h2: map-get($md-typography, md-h2),
5939
+ md-h3: map-get($md-typography, md-h3),
5940
+ md-h4: map-get($md-typography, md-h4),
5941
+ md-h5: map-get($md-typography, md-h5),
5942
+ md-h6: map-get($md-typography, md-h6),
5943
+
5944
+ md-body: map-get($md-typography, md-body),
5945
+ md-body-mono: map-get($md-typography, md-body-mono),
5946
+ md-caption: map-get($md-typography, md-caption),
5947
+ md-table-cell: map-get($md-typography, md-table-cell),
5948
+ md-table-header: map-get($md-typography, md-table-header),
5949
+ );
5950
+
5951
+ @each $key, $level in $config {
5952
+ @if map-get($level, font-family) == null {
5953
+ $new-level: map-merge($level, (font-family: $font-family));
5954
+ $config: map-merge($config, ($key: $new-level));
5955
+ }
5956
+ }
5957
+
5958
+ // Add the base font family to the config.
5959
+ @return map-merge($config, (font-family: $font-family));
5960
+ }
5961
+
5996
5962
 
5997
5963
  @mixin mc-base-typography($config) {
5998
5964
  .mc-display-1 {
@@ -6068,168 +6034,36 @@ $dark-warning: mc-palette($dark-color-scheme-warning-palette, $dark-color-scheme
6068
6034
  }
6069
6035
  }
6070
6036
 
6037
+ @mixin mc-markdown-base-typography($config) {
6038
+ // h1, h2, h3, h4, h5, h6
6039
+ @for $i from 1 through 6 {
6040
+ .md-h#{$i} {
6041
+ @include mc-typography-level-to-styles($config, md-h#{$i});
6042
+ }
6043
+ }
6071
6044
 
6045
+ .md-body {
6046
+ @include mc-typography-level-to-styles($config, md-body);
6047
+ }
6072
6048
 
6049
+ .md-body-mono {
6050
+ @include mc-typography-level-to-styles($config, md-body-mono);
6051
+ }
6073
6052
 
6053
+ .md-caption{
6054
+ @include mc-typography-level-to-styles($config, md-caption);
6055
+ }
6074
6056
 
6057
+ .md-table-cell{
6058
+ @include mc-typography-level-to-styles($config, md-table-cell);
6059
+ }
6075
6060
 
6076
- .mc-alert {
6077
- display: flex;
6078
- align-items: baseline;
6061
+ .md-table-header{
6062
+ @include mc-typography-level-to-styles($config, md-table-header);
6063
+ }
6064
+ }
6079
6065
 
6080
- vertical-align: top;
6081
- text-align: left;
6082
6066
 
6083
- border: var(--mc-alert-size-border-width, $alert-size-border-width) solid transparent;
6084
- border-radius: var(--mc-alert-size-border-radius, $alert-size-border-radius);
6085
-
6086
- .mc-link {
6087
- padding-left: 0;
6088
- }
6089
-
6090
- .mc-alert__icon {
6091
- margin-right: var(--mc-alert-size-icon-margin, $alert-size-icon-margin);
6092
- }
6093
-
6094
- padding: {
6095
- right: calc(
6096
- var(--mc-alert-size-horizontal-padding, #{$alert-size-horizontal-padding}) -
6097
- var(--mc-alert-size-border-width, #{$alert-size-border-width})
6098
- );
6099
- left: calc(
6100
- var(--mc-alert-size-horizontal-padding, #{$alert-size-horizontal-padding}) -
6101
- var(--mc-alert-size-border-width, #{$alert-size-border-width})
6102
- );
6103
- };
6104
-
6105
- &:not(.mc-alert_small) {
6106
- padding: {
6107
- top: var(--mc-alert-size-vertical-padding, $alert-size-vertical-padding);
6108
- bottom: var(--mc-alert-size-vertical-padding, $alert-size-vertical-padding);
6109
- };
6110
- }
6111
-
6112
- &.mc-alert_small {
6113
- padding: {
6114
- top: var(--mc-alert-size-small-vertical-padding, $alert-size-small-vertical-padding);
6115
- bottom: var(--mc-alert-size-small-vertical-padding, $alert-size-small-vertical-padding);
6116
- };
6117
- }
6118
-
6119
- &.mc-alert_dismissible {
6120
- padding-right: calc(
6121
- var(--mc-alert-size-right-padding-dismissible, #{$alert-size-close-button-width}) +
6122
- var(--mc-alert-size-horizontal-padding, #{$alert-size-horizontal-padding})
6123
- );
6124
- }
6125
- }
6126
-
6127
- .mc-alert_dismissible {
6128
- position: relative;
6129
-
6130
- .mc-alert__close {
6131
- position: absolute;
6132
-
6133
- z-index: 10;
6134
- right: 15px;
6135
-
6136
- border: 1px solid transparent;
6137
- outline: 0;
6138
-
6139
- background: transparent;
6140
-
6141
- padding: 0;
6142
-
6143
- cursor: pointer;
6144
- text-align: center;
6145
-
6146
- height: auto;
6147
- min-height: auto;
6148
- }
6149
-
6150
- &.mc-alert_small {
6151
- .mc-alert__close {
6152
- top: 10px;
6153
- }
6154
- }
6155
-
6156
- &:not(.mc-alert_small) {
6157
- .mc-alert__close {
6158
- top: 14px;
6159
- }
6160
- }
6161
- }
6162
-
6163
- @mixin alert-theme($alert) {
6164
- background-color: map-get($alert, background);
6165
- border-color: map-get($alert, border);
6166
-
6167
- .mc-icon.mc-alert__icon {
6168
- color: map-get($alert, icon);
6169
- }
6170
- }
6171
-
6172
- @mixin mc-alert-theme($theme) {
6173
- $foreground: map-get($theme, foreground);
6174
-
6175
- $alert: map-get(map-get($theme, components), alert);
6176
-
6177
- $is-dark: map-get($theme, is-dark);
6178
-
6179
- .mc-alert__close:focus {
6180
- outline: none;
6181
- }
6182
-
6183
- .mc-alert {
6184
- color: map-get($foreground, text);
6185
- }
6186
-
6187
- .mc-alert_error {
6188
- @include alert-theme(map-get($alert, error));
6189
- }
6190
-
6191
- .mc-alert_warning {
6192
- @include alert-theme(map-get($alert, warning));
6193
- }
6194
-
6195
- .mc-alert_success {
6196
- @include alert-theme(map-get($alert, success));
6197
- }
6198
-
6199
- .mc-alert_info {
6200
- @include alert-theme(map-get($alert, info));
6201
- }
6202
-
6203
- .mc-alert:not(.mc-alert_error):not(.mc-alert_warning):not(.mc-alert_success):not(.mc-alert_info) {
6204
- @include alert-theme(map-get($alert, default));
6205
- }
6206
- }
6207
-
6208
- @mixin mc-alert-typography($config) {
6209
- .mc-alert:not(.mc-alert_small) {
6210
- @include mc-typography-level-to-styles($config, $alert-font-default-body);
6211
-
6212
- header {
6213
- @include mc-typography-level-to-styles($config, $alert-font-default-header);
6214
- }
6215
- }
6216
-
6217
- .mc-alert.mc-alert_small {
6218
- @include mc-typography-level-to-styles($config, $alert-font-small-body);
6219
-
6220
- header {
6221
- @include mc-typography-level-to-styles($config, $alert-font-small-header);
6222
- }
6223
-
6224
- .mc-link__text {
6225
- @include mc-typography-level-to-styles($config, $alert-font-small-body);
6226
- }
6227
- }
6228
-
6229
- .mc-icon {
6230
- letter-spacing: unset;
6231
- }
6232
- }
6233
6067
 
6234
6068
 
6235
6069
 
@@ -6373,90 +6207,348 @@ $dark-warning: mc-palette($dark-color-scheme-warning-palette, $dark-color-scheme
6373
6207
 
6374
6208
 
6375
6209
 
6376
- @mixin mc-forms-theme($theme) {
6377
- $foreground: map-get($theme, foreground);
6210
+ .mc-alert {
6211
+ display: flex;
6212
+ align-items: baseline;
6378
6213
 
6379
- $forms: map-get(map-get($theme, components), forms);
6214
+ vertical-align: top;
6215
+ text-align: left;
6380
6216
 
6381
- .mc-form__label {
6382
- color: map-get($forms, label);
6217
+ border: var(--mc-alert-size-border-width, $alert-size-border-width) solid transparent;
6218
+ border-radius: var(--mc-alert-size-border-radius, $alert-size-border-radius);
6219
+
6220
+ .mc-link {
6221
+ padding-left: 0;
6383
6222
  }
6384
6223
 
6385
- .mc-form__legend {
6386
- color: map-get($forms, legend);
6224
+ .mc-alert__icon {
6225
+ margin-right: var(--mc-alert-size-icon-margin, $alert-size-icon-margin);
6387
6226
  }
6388
- }
6389
6227
 
6390
- @mixin mc-forms-typography($config) {
6391
- .mc-form__label {
6392
- @include mc-typography-level-to-styles($config, $forms-font-default-label);
6228
+ padding: {
6229
+ right: calc(
6230
+ var(--mc-alert-size-horizontal-padding, #{$alert-size-horizontal-padding}) -
6231
+ var(--mc-alert-size-border-width, #{$alert-size-border-width})
6232
+ );
6233
+ left: calc(
6234
+ var(--mc-alert-size-horizontal-padding, #{$alert-size-horizontal-padding}) -
6235
+ var(--mc-alert-size-border-width, #{$alert-size-border-width})
6236
+ );
6237
+ };
6238
+
6239
+ &:not(.mc-alert_small) {
6240
+ padding: {
6241
+ top: var(--mc-alert-size-vertical-padding, $alert-size-vertical-padding);
6242
+ bottom: var(--mc-alert-size-vertical-padding, $alert-size-vertical-padding);
6243
+ };
6393
6244
  }
6394
6245
 
6395
- .mc-form__legend {
6396
- @include mc-typography-level-to-styles($config, $forms-font-default-legend);
6246
+ &.mc-alert_small {
6247
+ padding: {
6248
+ top: var(--mc-alert-size-small-vertical-padding, $alert-size-small-vertical-padding);
6249
+ bottom: var(--mc-alert-size-small-vertical-padding, $alert-size-small-vertical-padding);
6250
+ };
6397
6251
  }
6398
- }
6399
6252
 
6253
+ &.mc-alert_dismissible {
6254
+ padding-right: calc(
6255
+ var(--mc-alert-size-right-padding-dismissible, #{$alert-size-close-button-width}) +
6256
+ var(--mc-alert-size-horizontal-padding, #{$alert-size-horizontal-padding})
6257
+ );
6258
+ }
6259
+ }
6400
6260
 
6261
+ .mc-alert_dismissible {
6262
+ position: relative;
6401
6263
 
6264
+ .mc-alert__close {
6265
+ position: absolute;
6402
6266
 
6267
+ z-index: 10;
6268
+ right: 15px;
6403
6269
 
6404
- @mixin mc-option-theme($theme) {
6405
- $foreground: map-get($theme, foreground);
6406
- $background: map-get($theme, background);
6270
+ border: 1px solid transparent;
6271
+ outline: 0;
6407
6272
 
6408
- $primary: map-get($theme, primary);
6273
+ background: transparent;
6409
6274
 
6410
- .mc-option {
6411
- color: map-get($foreground, text);
6275
+ padding: 0;
6412
6276
 
6413
- &:hover:not(.mc-disabled) {
6414
- .mc-option-overlay {
6415
- background: map-get($background, overlay-hover);
6416
- }
6417
- }
6277
+ cursor: pointer;
6278
+ text-align: center;
6418
6279
 
6419
- &.mc-active {
6420
- border-color: map-get(map-get($theme, states), focused-color);
6421
- }
6280
+ height: auto;
6281
+ min-height: auto;
6282
+ }
6422
6283
 
6423
- &.mc-selected {
6424
- background: map-get(map-get($theme, states), selected-color);
6284
+ &.mc-alert_small {
6285
+ .mc-alert__close {
6286
+ top: 10px;
6425
6287
  }
6288
+ }
6426
6289
 
6427
- &.mc-disabled {
6428
- background: transparent;
6429
-
6430
- color: map-get($foreground, text-disabled);
6290
+ &:not(.mc-alert_small) {
6291
+ .mc-alert__close {
6292
+ top: 14px;
6431
6293
  }
6432
6294
  }
6433
6295
  }
6434
6296
 
6435
- @mixin mc-option-typography($config) {
6436
- .mc-option {
6437
- @include mc-typography-level-to-styles($config, $option-font-default);
6297
+ @mixin alert-theme($alert) {
6298
+ background-color: map-get($alert, background);
6299
+ border-color: map-get($alert, border);
6300
+
6301
+ .mc-icon.mc-alert__icon {
6302
+ color: map-get($alert, icon);
6438
6303
  }
6439
6304
  }
6440
6305
 
6306
+ @mixin mc-alert-theme($theme) {
6307
+ $foreground: map-get($theme, foreground);
6441
6308
 
6309
+ $alert: map-get(map-get($theme, components), alert);
6442
6310
 
6311
+ $is-dark: map-get($theme, is-dark);
6443
6312
 
6313
+ .mc-alert__close:focus {
6314
+ outline: none;
6315
+ }
6444
6316
 
6445
- @mixin mc-optgroup-theme($theme) {
6446
- $foreground: map-get($theme, foreground);
6447
-
6448
- .mc-optgroup-label {
6317
+ .mc-alert {
6449
6318
  color: map-get($foreground, text);
6450
6319
  }
6451
6320
 
6452
- .mc-disabled .mc-optgroup-label {
6453
- color: map-get($foreground, text-disabled);
6454
- }
6321
+ .mc-alert_error {
6322
+ @include alert-theme(map-get($alert, error));
6323
+ }
6324
+
6325
+ .mc-alert_warning {
6326
+ @include alert-theme(map-get($alert, warning));
6327
+ }
6328
+
6329
+ .mc-alert_success {
6330
+ @include alert-theme(map-get($alert, success));
6331
+ }
6332
+
6333
+ .mc-alert_info {
6334
+ @include alert-theme(map-get($alert, info));
6335
+ }
6336
+
6337
+ .mc-alert:not(.mc-alert_error):not(.mc-alert_warning):not(.mc-alert_success):not(.mc-alert_info) {
6338
+ @include alert-theme(map-get($alert, default));
6339
+ }
6455
6340
  }
6456
6341
 
6457
- @mixin mc-optgroup-typography($config) {
6458
- .mc-optgroup-label {
6459
- @include mc-typography-level-to-styles($config, $optgroup-font-default);
6342
+ @mixin mc-alert-typography($config) {
6343
+ .mc-alert:not(.mc-alert_small) {
6344
+ @include mc-typography-level-to-styles($config, $alert-font-default-body);
6345
+
6346
+ header {
6347
+ @include mc-typography-level-to-styles($config, $alert-font-default-header);
6348
+ }
6349
+ }
6350
+
6351
+ .mc-alert.mc-alert_small {
6352
+ @include mc-typography-level-to-styles($config, $alert-font-small-body);
6353
+
6354
+ header {
6355
+ @include mc-typography-level-to-styles($config, $alert-font-small-header);
6356
+ }
6357
+
6358
+ .mc-link__text {
6359
+ @include mc-typography-level-to-styles($config, $alert-font-small-body);
6360
+ }
6361
+ }
6362
+
6363
+ .mc-icon {
6364
+ letter-spacing: unset;
6365
+ }
6366
+ }
6367
+
6368
+
6369
+
6370
+ /// Replace `$search` with `$replace` in `$string`
6371
+ /// @author Kitty Giraudel
6372
+ /// @param {String} $string - Initial string
6373
+ /// @param {String} $search - Substring to replace
6374
+ /// @param {String} $replace ('') - New value
6375
+ /// @return {String} - Updated string
6376
+ @function str-replace($string, $search, $replace: '') {
6377
+ $index: str-index($string, $search);
6378
+
6379
+ @if $index {
6380
+ @return str-slice($string, 1, $index - 1) + $replace +
6381
+ str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
6382
+ }
6383
+
6384
+ @return $string;
6385
+ }
6386
+
6387
+
6388
+ .mc-scrollbar {
6389
+ //firefox
6390
+ scrollbar-width: auto;
6391
+
6392
+ // webkit
6393
+ &::-webkit-scrollbar,
6394
+ ::-webkit-scrollbar {
6395
+ width: var(--mc-scrollbar-size-track-width, $scrollbar-size-track-width);
6396
+ }
6397
+
6398
+ &::-webkit-scrollbar-thumb,
6399
+ ::-webkit-scrollbar-thumb {
6400
+ width: var(--mc-scrollbar-size-thumb-width, $scrollbar-size-thumb-width);
6401
+ border-width: var(--mc-scrollbar-size-thumb-inset-border-width, $scrollbar-size-thumb-border-width);
6402
+ border-radius: var(--mc-scrollbar-size-thumb-inset-border-radius, $scrollbar-size-thumb-border-radius);
6403
+ }
6404
+
6405
+ &::-webkit-scrollbar-button,
6406
+ ::-webkit-scrollbar-button {
6407
+ display: none;
6408
+
6409
+ height: var(--mc-scrollbar-size-arrow-icon-height, $scrollbar-size-arrow-icon-height);
6410
+ width: var(--mc-scrollbar-size-arrow-icon-width, $scrollbar-size-arrow-icon-width);
6411
+ }
6412
+ }
6413
+
6414
+ @mixin mc-scrollbar-theme($theme) {
6415
+ $scrollbar: map-get(map-get($theme, components), scrollbar);
6416
+ $thumb: map-get($scrollbar, thumb);
6417
+ $arrow: map-get($scrollbar, arrow);
6418
+
6419
+ .mc-scrollbar {
6420
+
6421
+ // firefox
6422
+ scrollbar-color: map-get($thumb, normal) map-get($scrollbar, track);
6423
+
6424
+ // webkit
6425
+ &::-webkit-scrollbar,
6426
+ ::-webkit-scrollbar {
6427
+ background-color: map-get($scrollbar, track);
6428
+ }
6429
+
6430
+ &::-webkit-scrollbar-corner,
6431
+ ::-webkit-scrollbar-corner {
6432
+ background-color: map-get($scrollbar, corner-background);
6433
+ }
6434
+
6435
+
6436
+ &::-webkit-scrollbar-thumb,
6437
+ ::-webkit-scrollbar-thumb {
6438
+ background-color: map-get($thumb, normal);
6439
+
6440
+ border-color: map-get($scrollbar, track);
6441
+ border-style: solid;
6442
+
6443
+ &:hover {
6444
+ background-color: map-get($thumb, hover);
6445
+ }
6446
+
6447
+ &:disabled {
6448
+ background-color: map-get($thumb, disabled);
6449
+ }
6450
+
6451
+ &:active {
6452
+ background-color: map-get($thumb, active);
6453
+ }
6454
+ }
6455
+
6456
+ /* stylelint-disable */
6457
+ &::-webkit-scrollbar-button,
6458
+ ::-webkit-scrollbar-button {
6459
+ background-color: map-get($arrow, background);
6460
+ background-size: 10px 10px;
6461
+ background-repeat: no-repeat;
6462
+ background-position: center center;
6463
+
6464
+ &:single-button {
6465
+ &:horizontal:decrement {
6466
+ @include arrow-image(right, map-get($arrow, normal));
6467
+ }
6468
+
6469
+ &:horizontal:increment {
6470
+ @include arrow-image(left, map-get($arrow, normal));
6471
+ }
6472
+
6473
+ &:vertical:decrement {
6474
+ @include arrow-image(up, map-get($arrow, normal));
6475
+ }
6476
+
6477
+ &:vertical:increment {
6478
+ @include arrow-image(down, map-get($arrow, normal));
6479
+ }
6480
+ }
6481
+
6482
+ // disable double-button
6483
+ &:vertical:start:increment,
6484
+ &:vertical:end:decrement,
6485
+ &:horizontal:end:increment,
6486
+ &:horizontal:end:decrement {
6487
+ display: none;
6488
+ }
6489
+ }
6490
+ /* stylelint-enable */
6491
+ }
6492
+ }
6493
+
6494
+ @mixin arrow-image($direction, $color) {
6495
+ $color: str-replace('#{$color}', '#', '%23');
6496
+
6497
+ @if $direction == up {
6498
+ background-image: url('data:image/svg+xml;utf8,<svg width="8" height="4" viewBox="0 0 8 4" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 4L4 0L8 4H0Z" fill="#{$color}"/></svg>');
6499
+ } @else if $direction == left {
6500
+ background-image: url('data:image/svg+xml;utf8,<svg width="4" height="8" viewBox="0 0 4 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.354973 0.111252L3.64503 3.40028C3.84808 3.60327 3.84107 3.91407 3.64503 4.11011L0.354973 7.40017C0.15192 7.60322 0 7.53112 0 7.25478V0.256747C0 -0.0128497 0.158927 -0.0847332 0.354973 0.111252Z" fill="#{$color}"/></svg>');
6501
+ } @else if $direction == down {
6502
+ background-image: url('data:image/svg+xml;utf8,<svg width="8" height="4" viewBox="0 0 8 4" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 0L4 4L8 0H0Z" fill="#{$color}"/></svg>');
6503
+ } @else if $direction == right {
6504
+ background-image: url('data:image/svg+xml;utf8,<svg width="5" height="8" viewBox="0 0 5 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.64975 0.111682C3.8458 -0.0845414 4.00472 -0.0128511 4.00472 0.256746V7.25478C4.00472 7.53112 3.8528 7.6034 3.64975 7.4006L0.359696 4.11454C0.163649 3.91873 0.156643 3.60794 0.359696 3.40471L3.64975 0.111682Z" fill="#{$color}"/></svg>');
6505
+ }
6506
+ }
6507
+
6508
+
6509
+ @mixin mc-pseudo-checkbox-color($states) {
6510
+ border-color: map-get($states, border);
6511
+
6512
+ & .mc-checkbox-checkmark,
6513
+ & .mc-checkbox-mixedmark {
6514
+ color: map-get($states, color);
6515
+ }
6516
+
6517
+ &.mc-checked,
6518
+ &.mc-indeterminate {
6519
+ border-color: map-get($states, checked, border);
6520
+
6521
+ background: map-get($states, checked, background);
6522
+ }
6523
+ }
6524
+
6525
+ @mixin mc-pseudo-checkbox-theme($theme) {
6526
+ $foreground: map-get($theme, foreground);
6527
+ $background: map-get($theme, background);
6528
+
6529
+ $checkbox: map-get(map-get($theme, components), checkbox);
6530
+
6531
+ .mc-pseudo-checkbox {
6532
+ &.mc-primary {
6533
+ @include mc-pseudo-checkbox-color(map-get($checkbox, default));
6534
+ }
6535
+
6536
+ &.mc-error {
6537
+ @include mc-pseudo-checkbox-color(map-get($checkbox, error));
6538
+ }
6539
+
6540
+ &.mc-disabled,
6541
+ &.mc-primary.mc-disabled,
6542
+ &.mc-error.mc-disabled {
6543
+ border-color: map-get($foreground, border);
6544
+
6545
+ background-color: map-get($background, background-disabled);
6546
+
6547
+ & .mc-checkbox-checkmark,
6548
+ & .mc-checkbox-mixedmark {
6549
+ color: map-get($foreground, text-disabled);
6550
+ }
6551
+ }
6460
6552
  }
6461
6553
  }
6462
6554
 
@@ -6563,8 +6655,8 @@ $dark-warning: mc-palette($dark-color-scheme-warning-palette, $dark-color-scheme
6563
6655
  }
6564
6656
  }
6565
6657
 
6566
- &.mc-second {
6567
- @include mc-button-color(map-get($button, second));
6658
+ &.mc-secondary {
6659
+ @include mc-button-color(map-get($button, secondary));
6568
6660
 
6569
6661
  &.mc-button_transparent {
6570
6662
  @include mc-button_transparent($theme);
@@ -6591,7 +6683,7 @@ $dark-warning: mc-palette($dark-color-scheme-warning-palette, $dark-color-scheme
6591
6683
  }
6592
6684
 
6593
6685
  &.mc-primary,
6594
- &.mc-second,
6686
+ &.mc-secondary,
6595
6687
  &.mc-error {
6596
6688
  &.cdk-keyboard-focused {
6597
6689
  border-color: map-get(map-get($theme, states), focused-color);
@@ -6630,22 +6722,81 @@ $dark-warning: mc-palette($dark-color-scheme-warning-palette, $dark-color-scheme
6630
6722
  }
6631
6723
 
6632
6724
 
6725
+ @mixin card-type($card) {
6726
+ box-shadow:
6727
+ inset -1px 0 0 0 map-get($card, shadow),
6728
+ inset 0 1px 0 0 map-get($card, shadow),
6729
+ inset 0 -1px 0 0 map-get($card, shadow);
6633
6730
 
6731
+ background-color: map-get($card, background);
6634
6732
 
6733
+ border-left-color: map-get($card, vertical-line);
6734
+ }
6635
6735
 
6736
+ @mixin mc-card-theme($theme) {
6737
+ $foreground: map-get($theme, foreground);
6738
+ $background: map-get($theme, background);
6636
6739
 
6637
- /* stylelint-disable no-descending-specificity */
6638
- @mixin mc-checkbox-color($states) {
6639
- & .mc-checkbox-frame {
6640
- background-color: map-get($states, background);
6740
+ $card: map-get(map-get($theme, components), card);
6741
+ $popup: map-get(map-get($theme, components), popup);
6641
6742
 
6642
- border-color: map-get($states, border);
6743
+ $is-dark: map-get($theme, is-dark);
6643
6744
 
6644
- & .mc-checkbox-checkmark,
6645
- & .mc-checkbox-mixedmark {
6646
- color: map-get($states, color);
6647
- }
6648
- }
6745
+ .mc-card {
6746
+ color: map-get($foreground, text);
6747
+
6748
+ &.mc-card_error {
6749
+ @include card-type(map-get($card, error));
6750
+ }
6751
+
6752
+ &.mc-card_warning {
6753
+ @include card-type(map-get($card, warning));
6754
+ }
6755
+
6756
+ &.mc-card_success {
6757
+ @include card-type(map-get($card, success));
6758
+ }
6759
+
6760
+ &.mc-card_info {
6761
+ @include card-type(map-get($card, info));
6762
+ }
6763
+
6764
+ &.mc-card_white {
6765
+ background-color: map-get($popup, background);
6766
+ }
6767
+
6768
+ &.mc-selected {
6769
+ background-color: map-get(map-get($theme, states), selected-color);
6770
+ }
6771
+
6772
+ &:not(.mc-card_readonly):hover {
6773
+ .mc-card__overlay {
6774
+ background: map-get($background, overlay-hover);
6775
+ }
6776
+ }
6777
+
6778
+ &.cdk-keyboard-focused {
6779
+ box-shadow: 0 0 0 2px map-get(map-get($theme, states), focused-color);
6780
+ }
6781
+ }
6782
+ }
6783
+
6784
+
6785
+
6786
+
6787
+
6788
+ /* stylelint-disable no-descending-specificity */
6789
+ @mixin mc-checkbox-color($states) {
6790
+ & .mc-checkbox-frame {
6791
+ background-color: map-get($states, background);
6792
+
6793
+ border-color: map-get($states, border);
6794
+
6795
+ & .mc-checkbox-checkmark,
6796
+ & .mc-checkbox-mixedmark {
6797
+ color: map-get($states, color);
6798
+ }
6799
+ }
6649
6800
 
6650
6801
  &.mc-checked,
6651
6802
  &.mc-indeterminate {
@@ -7072,12 +7223,12 @@ $mc-datepicker-today-fade-amount: 0.2;
7072
7223
  $background: map-get($theme, background);
7073
7224
 
7074
7225
  $primary: map-get($theme, primary);
7075
- $second: map-get($theme, second);
7226
+ $secondary: map-get($theme, secondary);
7076
7227
 
7077
7228
  $datepicker: map-get(map-get($theme, components), datepicker);
7078
7229
 
7079
7230
  .mc-calendar__table-header {
7080
- color: mc-color($second, 400);
7231
+ color: mc-color($secondary, 400);
7081
7232
  }
7082
7233
 
7083
7234
  .mc-datepicker-toggle__button.mc-icon-button {
@@ -7114,7 +7265,7 @@ $mc-datepicker-today-fade-amount: 0.2;
7114
7265
 
7115
7266
  .mc-calendar__body-cell:not(.mc-calendar__body_disabled):hover {
7116
7267
  & > .mc-calendar__body-cell-content:not(.mc-selected) {
7117
- background-color: mc-color($second, A60);
7268
+ background-color: mc-color($secondary, A60);
7118
7269
  }
7119
7270
  }
7120
7271
 
@@ -7157,41 +7308,15 @@ $mc-datepicker-today-fade-amount: 0.2;
7157
7308
  }
7158
7309
  }
7159
7310
 
7311
+ @mixin mc-divider-theme($theme) {
7312
+ $divider: map-get(map-get($theme, components), divider);
7160
7313
 
7161
-
7162
-
7163
-
7164
- @mixin mc-dl-theme($theme) {
7165
- $dl: map-get(map-get($theme, components), dl);
7166
-
7167
- .mc-dt {
7168
- color: map-get($dl, dt);
7169
- }
7170
-
7171
- .mc-dd {
7172
- color: map-get($dl, dd);
7173
- }
7174
- }
7175
-
7176
- @mixin mc-dl-typography($config) {
7177
- .mc-dl {
7178
- & .mc-dt {
7179
- @include mc-typography-level-to-styles($config, $description-list-font-horizontal-dt);
7180
- }
7181
-
7182
- & .mc-dd {
7183
- @include mc-typography-level-to-styles($config, $description-list-font-horizontal-dd);
7184
- }
7314
+ .mc-divider_horizontal {
7315
+ border-top-color: map-get($divider, color);
7185
7316
  }
7186
7317
 
7187
- .mc-dl.mc-dl_vertical {
7188
- & .mc-dt {
7189
- @include mc-typography-level-to-styles($config, $description-list-font-vertical-dt);
7190
- }
7191
-
7192
- & .mc-dd {
7193
- @include mc-typography-level-to-styles($config, $description-list-font-vertical-dd);
7194
- }
7318
+ .mc-divider_vertical {
7319
+ border-right-color: map-get($divider, color);
7195
7320
  }
7196
7321
  }
7197
7322
 
@@ -7202,11 +7327,10 @@ $mc-datepicker-today-fade-amount: 0.2;
7202
7327
 
7203
7328
 
7204
7329
 
7205
-
7206
7330
  @mixin mc-dropdown-theme($theme) {
7207
7331
  $foreground: map-get($theme, foreground);
7208
7332
  $background: map-get($theme, background);
7209
- $second: map-get($theme, second);
7333
+ $secondary: map-get($theme, secondary);
7210
7334
 
7211
7335
  .mc-dropdown__panel {
7212
7336
  @include popup-params($theme);
@@ -7255,7 +7379,7 @@ $mc-datepicker-today-fade-amount: 0.2;
7255
7379
 
7256
7380
  .mc-dropdown-trigger.mc-pressed {
7257
7381
  & .mc-button-overlay {
7258
- background: mc-color($second, A100);
7382
+ background: mc-color($secondary, A100);
7259
7383
  }
7260
7384
  }
7261
7385
  }
@@ -7290,7 +7414,7 @@ $mc-datepicker-today-fade-amount: 0.2;
7290
7414
  $background: map-get($theme, background);
7291
7415
 
7292
7416
  $primary: map-get($theme, primary);
7293
- $second: map-get($theme, second);
7417
+ $secondary: map-get($theme, secondary);
7294
7418
  $error: map-get($theme, error);
7295
7419
 
7296
7420
  $form-field: map-get(map-get($theme, components), form-field);
@@ -7358,8 +7482,8 @@ $mc-datepicker-today-fade-amount: 0.2;
7358
7482
  color: mc-color($primary);
7359
7483
  }
7360
7484
 
7361
- &.mc-second {
7362
- color: mc-color($second);
7485
+ &.mc-secondary {
7486
+ color: mc-color($secondary);
7363
7487
  }
7364
7488
 
7365
7489
  &.mc-error {
@@ -7411,6 +7535,157 @@ $mc-datepicker-today-fade-amount: 0.2;
7411
7535
 
7412
7536
 
7413
7537
 
7538
+ @mixin mc-icon-theme($theme) {
7539
+ $foreground: map-get($theme, foreground);
7540
+
7541
+ $icon: map-get(map-get($theme, components), icon);
7542
+
7543
+ $primary: map-get($icon, primary);
7544
+ $secondary: map-get($icon, secondary);
7545
+ $error: map-get($icon, error);
7546
+ $success: map-get($icon, success);
7547
+ $warning: map-get($icon, warning);
7548
+ $info: map-get($icon, info);
7549
+
7550
+ // Дефолтные серые иконки default-icon: лупа в поле, иконки дропдаунов v, все иконки вне полей.
7551
+ .mc-icon {
7552
+ color: mc-color($foreground, icon);
7553
+
7554
+ &.mc-primary {
7555
+ color: map-get($primary, default);
7556
+ }
7557
+
7558
+ &.mc-secondary {
7559
+ color: map-get($secondary, default);
7560
+ }
7561
+
7562
+ &.mc-error {
7563
+ color: map-get($error, default);
7564
+ }
7565
+
7566
+
7567
+ &.mc-info {
7568
+ color: map-get($info, default);
7569
+ }
7570
+
7571
+ &.mc-warning {
7572
+ color: map-get($warning, default);
7573
+ }
7574
+
7575
+ &.mc-success {
7576
+ color: map-get($success, default);
7577
+ }
7578
+
7579
+ &[disabled],
7580
+ &.mc-disabled {
7581
+ cursor: default;
7582
+ }
7583
+ }
7584
+
7585
+ // Облегченные серые иконки less-contrast-icon нужны тогда, когда действие, которое они делают не дефолтное и
7586
+ // не самое важное. Не используются вне инпутов или селектов.
7587
+ .mc-icon.mc-icon_light {
7588
+ &.mc-primary {
7589
+ &:active,
7590
+ &.mc-active {
7591
+ color: map-get($primary, state-active);
7592
+ }
7593
+
7594
+ &:not([disabled], .mc-disabled):hover {
7595
+ color: map-get($primary, state-hover);
7596
+ }
7597
+
7598
+ &[disabled],
7599
+ &.mc-disabled {
7600
+ color: map-get($primary, state-disabled);
7601
+ }
7602
+ }
7603
+
7604
+ &.mc-secondary {
7605
+ &:active,
7606
+ &.mc-active {
7607
+ color: map-get($secondary, state-active);
7608
+ }
7609
+
7610
+ &:not([disabled], .mc-disabled):hover {
7611
+ color: map-get($secondary, state-hover);
7612
+ }
7613
+
7614
+ &[disabled],
7615
+ &.mc-disabled {
7616
+ color: map-get($secondary, state-disabled);
7617
+ }
7618
+ }
7619
+
7620
+ &.mc-error {
7621
+ &:active,
7622
+ &.mc-active {
7623
+ color: map-get($error, state-active);
7624
+ }
7625
+
7626
+ &:not([disabled], .mc-disabled):hover {
7627
+ color: map-get($error, state-hover);
7628
+ }
7629
+
7630
+ &[disabled],
7631
+ &.mc-disabled {
7632
+ color: map-get($error, state-disabled);
7633
+ }
7634
+ }
7635
+
7636
+ &.mc-info {
7637
+ &:active,
7638
+ &.mc-active {
7639
+ color: map-get($info, state-active);
7640
+ }
7641
+
7642
+ &:not([disabled], .mc-disabled):hover {
7643
+ color: map-get($info, state-hover);
7644
+ }
7645
+
7646
+ &[disabled],
7647
+ &.mc-disabled {
7648
+ color: map-get($info, state-disabled);
7649
+ }
7650
+ }
7651
+
7652
+ &.mc-warning {
7653
+ &:active,
7654
+ &.mc-active {
7655
+ color: map-get($warning, state-active);
7656
+ }
7657
+
7658
+ &:not([disabled], .mc-disabled):hover {
7659
+ color: map-get($warning, state-hover);
7660
+ }
7661
+
7662
+ &[disabled],
7663
+ &.mc-disabled {
7664
+ color: map-get($warning, state-disabled);
7665
+ }
7666
+ }
7667
+
7668
+ &.mc-success {
7669
+ &:active,
7670
+ &.mc-active {
7671
+ color: map-get($success, state-active);
7672
+ }
7673
+
7674
+ &:not([disabled], .mc-disabled):hover {
7675
+ color: map-get($success, state-hover);
7676
+ }
7677
+
7678
+ &[disabled],
7679
+ &.mc-disabled {
7680
+ color: map-get($success, state-disabled);
7681
+ }
7682
+ }
7683
+ }
7684
+ }
7685
+
7686
+
7687
+
7688
+
7414
7689
 
7415
7690
  @mixin mc-input-theme($theme) {
7416
7691
  $foreground: map-get($theme, foreground);
@@ -7707,134 +7982,9 @@ $mc-datepicker-today-fade-amount: 0.2;
7707
7982
 
7708
7983
 
7709
7984
 
7710
- @function mc-markdown-typography-config() {
7711
- $font-family: $font-family-base;
7712
- $md-typography: map-get($md-typography, md-typography);
7713
-
7714
- $config: (
7715
- md-h1: map-get($md-typography, md-h1),
7716
- md-h2: map-get($md-typography, md-h2),
7717
- md-h3: map-get($md-typography, md-h3),
7718
- md-h4: map-get($md-typography, md-h4),
7719
- md-h5: map-get($md-typography, md-h5),
7720
- md-h6: map-get($md-typography, md-h6),
7721
-
7722
- md-body: map-get($md-typography, md-body),
7723
- md-body-mono: map-get($md-typography, md-body-mono),
7724
- md-caption: map-get($md-typography, md-caption),
7725
- md-table-cell: map-get($md-typography, md-table-cell),
7726
- md-table-header: map-get($md-typography, md-table-header),
7727
- );
7728
-
7729
- @each $key, $level in $config {
7730
- @if map-get($level, font-family) == null {
7731
- $new-level: map-merge($level, (font-family: $font-family));
7732
- $config: map-merge($config, ($key: $new-level));
7733
- }
7734
- }
7735
-
7736
- // Add the base font family to the config.
7737
- @return map-merge($config, (font-family: $font-family));
7738
- }
7739
-
7740
- @mixin mc-markdown-typography($config) {
7741
- .mc-markdown {
7742
- .mc-markdown__h1 {
7743
- @include mc-typography-level-to-styles($config, $markdown-h1-font-default);
7744
- }
7745
-
7746
- .mc-markdown__h2 {
7747
- @include mc-typography-level-to-styles($config, $markdown-h2-font-default);
7748
- }
7749
-
7750
- .mc-markdown__h3 {
7751
- @include mc-typography-level-to-styles($config, $markdown-h3-font-default);
7752
- }
7753
-
7754
- .mc-markdown__h4 {
7755
- @include mc-typography-level-to-styles($config, $markdown-h4-font-default);
7756
- }
7757
-
7758
- .mc-markdown__h5 {
7759
- @include mc-typography-level-to-styles($config, $markdown-h5-font-default);
7760
- }
7761
-
7762
- .mc-markdown__h6 {
7763
- @include mc-typography-level-to-styles($config, $markdown-h6-font-default);
7764
- }
7765
-
7766
- .mc-markdown__p {
7767
- @include mc-typography-level-to-styles($config, $markdown-p-font-default);
7768
- }
7769
-
7770
- .mc-markdown__ul,
7771
- .mc-markdown__ol {
7772
- @include mc-typography-level-to-styles($config, $markdown-list-font-default);
7773
- }
7774
-
7775
- .mc-markdown__blockquote > .mc-markdown__p {
7776
- @include mc-typography-level-to-styles($config, $markdown-blockquote-font-default);
7777
- }
7778
-
7779
- .mc-markdown__code {
7780
- @include mc-typography-level-to-styles($config, $markdown-code-font-default);
7781
- }
7782
-
7783
- .mc-markdown__a {
7784
- @include mc-typography-level-to-styles($config, $markdown-link-font-default);
7785
- }
7786
-
7787
- .mc-markdown__img + em {
7788
- @include mc-typography-level-to-styles($config, $markdown-image-font-caption);
7789
- }
7790
-
7791
- .mc-markdown__table > .mc-markdown__thead {
7792
- @include mc-typography-level-to-styles($config, $markdown-table-font-header);
7793
- }
7794
-
7795
- .mc-markdown__table > .mc-markdown__tbody {
7796
- @include mc-typography-level-to-styles($config, $markdown-table-font-body);
7797
- }
7798
- }
7799
- }
7800
-
7801
- @mixin mc-markdown-base-typography($config) {
7802
-
7803
- // h1,h2,h3,h4,h5,h6
7804
- @for $i from 1 through 6 {
7805
- .md-h#{$i} {
7806
- @include mc-typography-level-to-styles($config, md-h#{$i});
7807
- }
7808
- }
7809
-
7810
- .md-body {
7811
- @include mc-typography-level-to-styles($config, md-body);
7812
- }
7813
-
7814
- .md-body-mono {
7815
- @include mc-typography-level-to-styles($config, md-body-mono);
7816
- }
7817
-
7818
- .md-caption{
7819
- @include mc-typography-level-to-styles($config, md-caption);
7820
- }
7821
-
7822
- .md-table-cell{
7823
- @include mc-typography-level-to-styles($config, md-table-cell);
7824
- }
7825
-
7826
- .md-table-header{
7827
- @include mc-typography-level-to-styles($config, md-table-header);
7828
- }
7829
- }
7830
-
7831
-
7832
-
7833
-
7834
-
7835
- @mixin mc-modal-theme($theme) {
7836
- $foreground: map-get($theme, foreground);
7837
- $background: map-get($theme, background);
7985
+ @mixin mc-modal-theme($theme) {
7986
+ $foreground: map-get($theme, foreground);
7987
+ $background: map-get($theme, background);
7838
7988
 
7839
7989
  $modal: map-get(map-get($theme, components), modal);
7840
7990
  $popup: map-get(map-get($theme, components), popup);
@@ -7917,108 +8067,263 @@ $mc-datepicker-today-fade-amount: 0.2;
7917
8067
 
7918
8068
 
7919
8069
 
7920
- @mixin mc-navbar-theme($theme) {
7921
- $background: map-get($theme, background);
7922
- $primary: map-get($theme, primary);
7923
8070
 
7924
- $navbar: map-get(map-get($theme, components), navbar);
7925
- $navbar-item: map-get(map-get($theme, components), navbar-item);
7926
8071
 
7927
- .mc-navbar,
7928
- .mc-vertical-navbar .mc-vertical-navbar__container {
7929
- background-color: map-get($navbar, background);
7930
- }
8072
+ @mixin mc-markdown-theme($theme) {
8073
+ $foreground: map-get($theme, foreground);
8074
+ $background: map-get($theme, background);
7931
8075
 
7932
- .mc-navbar-brand.mc-hovered:not(.mc-collapsed) {
7933
- background-color: map-get($navbar-item, state-hover);
7934
- }
8076
+ $markdown: map-get(map-get($theme, components), markdown);
7935
8077
 
7936
- .mc-navbar-brand.mc-vertical.mc-collapsed {
7937
- & .mc-navbar-logo:hover {
7938
- background-color: map-get($navbar-item, state-hover);
7939
- }
7940
- }
8078
+ .mc-markdown {
8079
+ color: map-get($foreground, text);
8080
+ background: map-get($background, background);;
7941
8081
 
7942
- .mc-navbar-title {
7943
- color: map-get($navbar-item, color);
7944
- }
8082
+ // h1, h2, h3, h4, h5, h6
8083
+ @for $i from 1 through 6 {
8084
+ .mc-markdown__h#{$i} {
8085
+ color: map-get($markdown, h#{$i}-color);
8086
+ }
8087
+ }
7945
8088
 
7946
- .mc-navbar-item,
7947
- .mc-navbar-brand,
7948
- .mc-navbar-toggle {
7949
- color: map-get($navbar-item, color);
8089
+ .mc-markdown__p {
8090
+ color: map-get($markdown, p-color);
8091
+ }
7950
8092
 
7951
- & > .mc-icon {
7952
- color: map-get($navbar-item, icon-color);
8093
+ .mc-markdown__ul,
8094
+ .mc-markdown__ol {
8095
+ color: map-get($markdown, list-color);
7953
8096
  }
7954
8097
 
7955
- & .mc-navbar-item__arrow-icon {
7956
- color: map-get($navbar-item, color);
8098
+ .mc-markdown__blockquote {
8099
+ color: map-get($markdown, blockquote-text);
8100
+ background: map-get($markdown, blockquote-background);
8101
+ border-color: map-get($markdown, blockquote-border);
8102
+ border-left-color: map-get($markdown, blockquote-line);
7957
8103
  }
7958
8104
 
7959
- &.mc-active {
7960
- background: map-get($navbar-item, state-selected);
8105
+ .mc-markdown__pre,
8106
+ .mc-markdown__p > .mc-markdown__code {
8107
+ color: map-get($markdown, code-text);
8108
+ background-color: map-get($markdown, code-background);
8109
+ border-color: map-get($markdown, code-border);
7961
8110
  }
7962
8111
 
7963
- &:hover:not(.mc-navbar-item_button) {
7964
- cursor: pointer;
8112
+ .mc-markdown__a {
8113
+ color: map-get($markdown, link-text);
8114
+ border-bottom-color: map-get($markdown, link-border-bottom);
7965
8115
 
7966
- & .mc-navbar-item__overlay {
7967
- background-color: map-get($navbar-item, state-hover);
8116
+ &:visited {
8117
+ color: map-get($markdown, link-state-visited-text);
8118
+ border-bottom-color: map-get($markdown, link-state-visited-border-bottom);
7968
8119
  }
7969
- }
7970
8120
 
7971
- &:active:not(.mc-navbar-item_button) {
7972
- & .mc-navbar-item__overlay {
7973
- background: map-get($navbar-item, state-active);
8121
+ &:hover {
8122
+ color: map-get($markdown, link-state-hover-text);
8123
+ transition: color 0ms;
8124
+ border-bottom-color: map-get($markdown, link-state-hover-border-bottom);
7974
8125
  }
7975
- }
7976
8126
 
7977
- &[disabled] {
7978
- pointer-events: none;
7979
- cursor: default;
8127
+ &:active {
8128
+ color: map-get($markdown, link-state-active-text);
8129
+ }
7980
8130
 
7981
- .mc-navbar-item__title,
7982
- .mc-icon {
7983
- opacity: map-get($navbar-item, state-disabled-opacity);
8131
+ &:focus {
8132
+ outline:
8133
+ map-get($markdown, link-state-focused-outline)
8134
+ solid
8135
+ $markdown-link-size-state-focused-outline-width;
8136
+
8137
+ outline-offset: $markdown-link-size-state-focused-outline-offset;
7984
8138
  }
7985
8139
  }
7986
- }
7987
8140
 
7988
- .mc-navbar-focusable-item {
7989
- outline: none;
8141
+ .mc-markdown__img + em {
8142
+ color: map-get($markdown, image-caption-text);
8143
+ }
7990
8144
 
7991
- /* stylelint-disable no-descending-specificity */
7992
- &.cdk-keyboard-focused .mc-navbar-item__overlay {
7993
- box-shadow:
7994
- inset 0 0 0 2px map-get(map-get($theme, states), focused-color),
7995
- inset 0 0 0 3px map-get($background, background);
8145
+ .mc-markdown__hr {
8146
+ border-bottom-color: map-get($markdown, hr-color);
7996
8147
  }
7997
- /* stylelint-enable no-descending-specificity */
7998
- }
7999
8148
 
8000
- .mc-navbar-divider {
8001
- background-color: map-get($navbar, divider-background);
8002
- }
8003
- }
8149
+ .mc-markdown__table > .mc-markdown__thead {
8150
+ color: map-get($markdown, table-header);
8151
+ border-bottom-color: map-get($markdown, table-border);
8152
+ }
8004
8153
 
8005
- button {
8006
- &.mc-navbar-item,
8007
- &.mc-navbar-brand,
8008
- &.mc-navbar-toggle {
8009
- background: transparent;
8010
- border: none;
8154
+ .mc-markdown__table > .mc-markdown__tbody {
8155
+ color: map-get($markdown, table-body);
8156
+ }
8011
8157
  }
8012
8158
  }
8013
8159
 
8014
- @mixin mc-navbar-typography($config) {
8015
- .mc-navbar-title {
8016
- @include mc-typography-level-to-styles($config, $navbar-font-title);
8017
- }
8018
-
8019
- .mc-navbar-subtitle {
8020
- @include mc-typography-level-to-styles($config, extra-small-text);
8021
- }
8160
+ @mixin mc-markdown-typography($config) {
8161
+ .mc-markdown {
8162
+ .mc-markdown__h1 {
8163
+ @include mc-typography-level-to-styles($config, $markdown-h1-font-default);
8164
+ }
8165
+
8166
+ .mc-markdown__h2 {
8167
+ @include mc-typography-level-to-styles($config, $markdown-h2-font-default);
8168
+ }
8169
+
8170
+ .mc-markdown__h3 {
8171
+ @include mc-typography-level-to-styles($config, $markdown-h3-font-default);
8172
+ }
8173
+
8174
+ .mc-markdown__h4 {
8175
+ @include mc-typography-level-to-styles($config, $markdown-h4-font-default);
8176
+ }
8177
+
8178
+ .mc-markdown__h5 {
8179
+ @include mc-typography-level-to-styles($config, $markdown-h5-font-default);
8180
+ }
8181
+
8182
+ .mc-markdown__h6 {
8183
+ @include mc-typography-level-to-styles($config, $markdown-h6-font-default);
8184
+ }
8185
+
8186
+ .mc-markdown__p {
8187
+ @include mc-typography-level-to-styles($config, $markdown-p-font-default);
8188
+ }
8189
+
8190
+ .mc-markdown__ul,
8191
+ .mc-markdown__ol {
8192
+ @include mc-typography-level-to-styles($config, $markdown-list-font-default);
8193
+ }
8194
+
8195
+ .mc-markdown__blockquote > .mc-markdown__p {
8196
+ @include mc-typography-level-to-styles($config, $markdown-blockquote-font-default);
8197
+ }
8198
+
8199
+ .mc-markdown__code {
8200
+ @include mc-typography-level-to-styles($config, $markdown-code-font-default);
8201
+ }
8202
+
8203
+ .mc-markdown__a {
8204
+ @include mc-typography-level-to-styles($config, $markdown-link-font-default);
8205
+ }
8206
+
8207
+ .mc-markdown__img + em {
8208
+ @include mc-typography-level-to-styles($config, $markdown-image-font-caption);
8209
+ }
8210
+
8211
+ .mc-markdown__table > .mc-markdown__thead {
8212
+ @include mc-typography-level-to-styles($config, $markdown-table-font-header);
8213
+ }
8214
+
8215
+ .mc-markdown__table > .mc-markdown__tbody {
8216
+ @include mc-typography-level-to-styles($config, $markdown-table-font-body);
8217
+ }
8218
+ }
8219
+ }
8220
+
8221
+
8222
+
8223
+
8224
+
8225
+ @mixin mc-navbar-theme($theme) {
8226
+ $background: map-get($theme, background);
8227
+ $primary: map-get($theme, primary);
8228
+
8229
+ $navbar: map-get(map-get($theme, components), navbar);
8230
+ $navbar-item: map-get(map-get($theme, components), navbar-item);
8231
+
8232
+ .mc-navbar,
8233
+ .mc-vertical-navbar .mc-vertical-navbar__container {
8234
+ background-color: map-get($navbar, background);
8235
+ }
8236
+
8237
+ .mc-navbar-brand.mc-hovered:not(.mc-collapsed) {
8238
+ background-color: map-get($navbar-item, state-hover);
8239
+ }
8240
+
8241
+ .mc-navbar-brand.mc-vertical.mc-collapsed {
8242
+ & .mc-navbar-logo:hover {
8243
+ background-color: map-get($navbar-item, state-hover);
8244
+ }
8245
+ }
8246
+
8247
+ .mc-navbar-title {
8248
+ color: map-get($navbar-item, color);
8249
+ }
8250
+
8251
+ .mc-navbar-item,
8252
+ .mc-navbar-brand,
8253
+ .mc-navbar-toggle {
8254
+ color: map-get($navbar-item, color);
8255
+
8256
+ & > .mc-icon {
8257
+ color: map-get($navbar-item, icon-color);
8258
+ }
8259
+
8260
+ & .mc-navbar-item__arrow-icon {
8261
+ color: map-get($navbar-item, color);
8262
+ }
8263
+
8264
+ &.mc-active {
8265
+ background: map-get($navbar-item, state-selected);
8266
+ }
8267
+
8268
+ &:hover:not(.mc-navbar-item_button) {
8269
+ cursor: pointer;
8270
+
8271
+ & .mc-navbar-item__overlay {
8272
+ background-color: map-get($navbar-item, state-hover);
8273
+ }
8274
+ }
8275
+
8276
+ &:active:not(.mc-navbar-item_button) {
8277
+ & .mc-navbar-item__overlay {
8278
+ background: map-get($navbar-item, state-active);
8279
+ }
8280
+ }
8281
+
8282
+ &[disabled] {
8283
+ pointer-events: none;
8284
+ cursor: default;
8285
+
8286
+ .mc-navbar-item__title,
8287
+ .mc-icon {
8288
+ opacity: map-get($navbar-item, state-disabled-opacity);
8289
+ }
8290
+ }
8291
+ }
8292
+
8293
+ .mc-navbar-focusable-item {
8294
+ outline: none;
8295
+
8296
+ /* stylelint-disable no-descending-specificity */
8297
+ &.cdk-keyboard-focused .mc-navbar-item__overlay {
8298
+ box-shadow:
8299
+ inset 0 0 0 2px map-get(map-get($theme, states), focused-color),
8300
+ inset 0 0 0 3px map-get($background, background);
8301
+ }
8302
+ /* stylelint-enable no-descending-specificity */
8303
+ }
8304
+
8305
+ .mc-navbar-divider {
8306
+ background-color: map-get($navbar, divider-background);
8307
+ }
8308
+ }
8309
+
8310
+ button {
8311
+ &.mc-navbar-item,
8312
+ &.mc-navbar-brand,
8313
+ &.mc-navbar-toggle {
8314
+ background: transparent;
8315
+ border: none;
8316
+ }
8317
+ }
8318
+
8319
+ @mixin mc-navbar-typography($config) {
8320
+ .mc-navbar-title {
8321
+ @include mc-typography-level-to-styles($config, $navbar-font-title);
8322
+ }
8323
+
8324
+ .mc-navbar-subtitle {
8325
+ @include mc-typography-level-to-styles($config, extra-small-text);
8326
+ }
8022
8327
 
8023
8328
  .mc-navbar-brand {
8024
8329
  .mc-navbar-title {
@@ -8144,6 +8449,56 @@ button {
8144
8449
 
8145
8450
 
8146
8451
 
8452
+ @mixin mc-progress-bar-theme($theme) {
8453
+ $primary: map-get($theme, primary);
8454
+ $secondary: map-get($theme, secondary);
8455
+ $error: map-get($theme, error);
8456
+
8457
+ $progress-bar: map-get(map-get($theme, components), progress-bar);
8458
+
8459
+ .mc-progress-bar {
8460
+ background-color: map-get($progress-bar, background);
8461
+
8462
+ &.mc-primary .mc-progress-bar__line {
8463
+ background-color: mc-color($primary);
8464
+ }
8465
+
8466
+ &.mc-secondary .mc-progress-bar__line {
8467
+ background-color: mc-color($secondary);
8468
+ }
8469
+
8470
+ &.mc-error .mc-progress-bar__line {
8471
+ background-color: mc-color($error);
8472
+ }
8473
+ }
8474
+ }
8475
+
8476
+
8477
+
8478
+
8479
+ @mixin mc-progress-spinner-theme($theme) {
8480
+ $primary: map-get($theme, primary);
8481
+ $secondary: map-get($theme, secondary);
8482
+ $error: map-get($theme, error);
8483
+
8484
+ .mc-progress-spinner {
8485
+ &.mc-primary .mc-progress-spinner__circle {
8486
+ stroke: mc-color($primary);
8487
+ }
8488
+
8489
+ &.mc-secondary .mc-progress-spinner__circle {
8490
+ stroke: mc-color($secondary);
8491
+ }
8492
+
8493
+ &.mc-error .mc-progress-spinner__circle {
8494
+ stroke: mc-color($error);
8495
+ }
8496
+ }
8497
+ }
8498
+
8499
+
8500
+
8501
+
8147
8502
 
8148
8503
  @mixin mc-radio-theme($theme) {
8149
8504
  $foreground: map-get($theme, foreground);
@@ -8352,6 +8707,33 @@ button {
8352
8707
  }
8353
8708
  }
8354
8709
 
8710
+ @mixin mc-splitter-theme($theme) {
8711
+ $background: map-get($theme, background);
8712
+
8713
+ .mc-gutter {
8714
+ cursor: col-resize;
8715
+
8716
+ &:hover,
8717
+ &.mc-gutter_dragged {
8718
+ background-color: map-get($background, background-disabled);
8719
+ }
8720
+
8721
+ &.mc-gutter_vertical {
8722
+ cursor: row-resize;
8723
+ }
8724
+
8725
+ &[disabled] {
8726
+ background-color: mc-color($background, overlay-disabled);
8727
+
8728
+ cursor: default;
8729
+ }
8730
+ }
8731
+
8732
+ .mc-gutter-ghost {
8733
+ background: mc-color($background, overlay-disabled);
8734
+ }
8735
+ }
8736
+
8355
8737
 
8356
8738
 
8357
8739
 
@@ -8592,109 +8974,20 @@ button {
8592
8974
 
8593
8975
 
8594
8976
 
8595
- @mixin mc-timezone-option-theme($theme) {
8596
- $timezone: map-get(map-get($theme, components), timezone);
8597
8977
 
8598
- .mc-timezone-option__offset,
8599
- .mc-timezone-option__city {
8600
- color: map-get($timezone, text);
8601
- }
8602
8978
 
8603
- .mc-timezone-option__cities {
8604
- color: map-get($timezone, caption);
8979
+ @mixin mc-tag-color($params) {
8980
+ background: map-get($params, background);
8981
+ border-color: map-get($params, border);
8982
+
8983
+ & .mc-tag__text {
8984
+ color: map-get($params, text);
8605
8985
  }
8606
- }
8607
8986
 
8608
- @mixin mc-timezone-option-typography($config) {
8609
- .mc-timezone-option__offset {
8610
- @include mc-typography-level-to-styles($config, $timezone-option-font-offset-text);
8611
- }
8612
-
8613
- .mc-timezone-option__city {
8614
- @include mc-typography-level-to-styles($config, $timezone-option-font-text);
8615
- }
8616
-
8617
- .mc-timezone-option__cities {
8618
- @include mc-typography-level-to-styles($config, $timezone-option-font-caption);
8619
- }
8620
- }
8621
-
8622
-
8623
-
8624
-
8625
-
8626
- @mixin mc-toast-theme($theme) {
8627
- $foreground: map-get($theme, foreground);
8628
-
8629
- $toast: map-get(map-get($theme, components), toast);
8630
-
8631
- .mc-toast {
8632
- &.mc-toast_info .mc-toast__icon {
8633
- color: map-get($toast, icon_info);
8634
- }
8635
-
8636
- &.mc-toast_success .mc-toast__icon {
8637
- color: map-get($toast, icon_success);
8638
- }
8639
-
8640
- &.mc-toast_warning .mc-toast__icon {
8641
- color: map-get($toast, icon_warning);
8642
- }
8643
-
8644
- &.mc-toast_error .mc-toast__icon {
8645
- color: map-get($toast, icon_error);
8646
- }
8647
- }
8648
-
8649
- .mc-toast__wrapper {
8650
- border-color: map-get($toast, border);
8651
-
8652
- background: map-get($toast, background);
8653
-
8654
- box-shadow: map-get($toast, shadow);
8655
- }
8656
-
8657
- .mc-toast__title {
8658
- color: map-get($toast, text);
8659
- }
8660
-
8661
- .mc-toast__caption {
8662
- color: map-get($toast, text-caption);
8663
- }
8664
- }
8665
-
8666
- @mixin mc-toast-typography($config) {
8667
- .mc-toast {
8668
- @include mc-typography-level-to-styles($config, body);
8669
- }
8670
-
8671
- .mc-toast__title {
8672
- @include mc-typography-level-to-styles($config, $toast-font-title);
8673
- }
8674
-
8675
- .mc-toast__caption {
8676
- @include mc-typography-level-to-styles($config, $toast-font-caption);
8677
- }
8678
- }
8679
-
8680
-
8681
-
8682
-
8683
-
8684
-
8685
-
8686
- @mixin mc-tag-color($params) {
8687
- background: map-get($params, background);
8688
- border-color: map-get($params, border);
8689
-
8690
- & .mc-tag__text {
8691
- color: map-get($params, text);
8692
- }
8693
-
8694
- &.mc-active,
8695
- &.mc-focused {
8696
- border-color: map-get($params, focused);
8697
- box-shadow: 0 0 0 1px map-get($params, focused);
8987
+ &.mc-active,
8988
+ &.mc-focused {
8989
+ border-color: map-get($params, focused);
8990
+ box-shadow: 0 0 0 1px map-get($params, focused);
8698
8991
  }
8699
8992
 
8700
8993
  &:not(.mc-disabled) .mc-icon {
@@ -8724,10 +9017,6 @@ button {
8724
9017
  $foreground: map-get($theme, foreground);
8725
9018
  $background: map-get($theme, background);
8726
9019
 
8727
- $primary: map-get($theme, primary);
8728
- $second: map-get($theme, second);
8729
- $error: map-get($theme, error);
8730
-
8731
9020
  $tags: map-get(map-get($theme, components), tags);
8732
9021
 
8733
9022
  .mc-tag {
@@ -8735,8 +9024,8 @@ button {
8735
9024
  @include mc-tag-color(map-get($tags, primary));
8736
9025
  }
8737
9026
 
8738
- &.mc-second {
8739
- @include mc-tag-color(map-get($tags, second));
9027
+ &.mc-secondary {
9028
+ @include mc-tag-color(map-get($tags, secondary));
8740
9029
  }
8741
9030
 
8742
9031
  &.mc-error {
@@ -8839,6 +9128,95 @@ button {
8839
9128
 
8840
9129
 
8841
9130
 
9131
+ @mixin mc-timezone-option-theme($theme) {
9132
+ $timezone: map-get(map-get($theme, components), timezone);
9133
+
9134
+ .mc-timezone-option__offset,
9135
+ .mc-timezone-option__city {
9136
+ color: map-get($timezone, text);
9137
+ }
9138
+
9139
+ .mc-timezone-option__cities {
9140
+ color: map-get($timezone, caption);
9141
+ }
9142
+ }
9143
+
9144
+ @mixin mc-timezone-option-typography($config) {
9145
+ .mc-timezone-option__offset {
9146
+ @include mc-typography-level-to-styles($config, $timezone-option-font-offset-text);
9147
+ }
9148
+
9149
+ .mc-timezone-option__city {
9150
+ @include mc-typography-level-to-styles($config, $timezone-option-font-text);
9151
+ }
9152
+
9153
+ .mc-timezone-option__cities {
9154
+ @include mc-typography-level-to-styles($config, $timezone-option-font-caption);
9155
+ }
9156
+ }
9157
+
9158
+
9159
+
9160
+
9161
+
9162
+ @mixin mc-toast-theme($theme) {
9163
+ $foreground: map-get($theme, foreground);
9164
+
9165
+ $toast: map-get(map-get($theme, components), toast);
9166
+
9167
+ .mc-toast {
9168
+ &.mc-toast_info .mc-toast__icon {
9169
+ color: map-get($toast, icon_info);
9170
+ }
9171
+
9172
+ &.mc-toast_success .mc-toast__icon {
9173
+ color: map-get($toast, icon_success);
9174
+ }
9175
+
9176
+ &.mc-toast_warning .mc-toast__icon {
9177
+ color: map-get($toast, icon_warning);
9178
+ }
9179
+
9180
+ &.mc-toast_error .mc-toast__icon {
9181
+ color: map-get($toast, icon_error);
9182
+ }
9183
+ }
9184
+
9185
+ .mc-toast__wrapper {
9186
+ border-color: map-get($toast, border);
9187
+
9188
+ background: map-get($toast, background);
9189
+
9190
+ box-shadow: map-get($toast, shadow);
9191
+ }
9192
+
9193
+ .mc-toast__title {
9194
+ color: map-get($toast, text);
9195
+ }
9196
+
9197
+ .mc-toast__caption {
9198
+ color: map-get($toast, text-caption);
9199
+ }
9200
+ }
9201
+
9202
+ @mixin mc-toast-typography($config) {
9203
+ .mc-toast {
9204
+ @include mc-typography-level-to-styles($config, body);
9205
+ }
9206
+
9207
+ .mc-toast__title {
9208
+ @include mc-typography-level-to-styles($config, $toast-font-title);
9209
+ }
9210
+
9211
+ .mc-toast__caption {
9212
+ @include mc-typography-level-to-styles($config, $toast-font-caption);
9213
+ }
9214
+ }
9215
+
9216
+
9217
+
9218
+
9219
+
8842
9220
 
8843
9221
 
8844
9222
  @mixin mc-toggle-theme($theme) {
@@ -9190,7 +9568,7 @@ button {
9190
9568
  $foreground: map-get($theme, foreground);
9191
9569
  $background: map-get($theme, background);
9192
9570
 
9193
- $second: map-get($theme, second);
9571
+ $secondary: map-get($theme, secondary);
9194
9572
 
9195
9573
  $is-dark: map-get($theme, is-dark);
9196
9574
 
@@ -9202,707 +9580,108 @@ button {
9202
9580
  color: map-get($foreground, text);
9203
9581
 
9204
9582
  &:hover {
9205
- background-color: map-get($background, overlay-hover);
9206
- }
9207
-
9208
- &.mc-focused {
9209
- border-color: map-get(map-get($theme, states), focused-color);
9210
-
9211
- & .mc-tree-node-toggle:not([disabled]) .mc-icon {
9212
- color: mc-color($second, if($is-dark, 300, 700));
9213
- }
9214
- }
9215
-
9216
- &.mc-selected {
9217
- background: map-get(map-get($theme, states), selected-color);
9218
- }
9219
-
9220
- &[disabled] {
9221
- background-color: transparent;
9222
-
9223
- color: map-get($foreground, text-disabled);
9224
- }
9225
- }
9226
-
9227
- /* stylelint-disable no-descending-specificity */
9228
- .mc-tree-node-toggle {
9229
- & .mc-icon {
9230
- color: mc-color($second, 400);
9231
- }
9232
-
9233
- &:hover .mc-icon {
9234
- color: mc-color($second, if($is-dark, 300, 700));
9235
- }
9236
-
9237
- &[disabled] .mc-icon {
9238
- color: mc-color($second, if($is-dark, 700, 300));
9239
- }
9240
- }
9241
- /* stylelint-enable no-descending-specificity */
9242
- }
9243
-
9244
- @mixin mc-tree-typography($config) {
9245
- .mc-tree-option {
9246
- @include mc-typography-level-to-styles($config, $tree-font-node);
9247
- }
9248
- }
9249
-
9250
-
9251
-
9252
-
9253
-
9254
- @mixin mc-table-theme($theme) {
9255
- $foreground: map-get($theme, foreground);
9256
- $background: map-get($theme, background);
9257
-
9258
- .mc-table {
9259
- & > thead {
9260
- color: map-get($foreground, text-less-contrast);
9261
-
9262
- & > tr > th {
9263
- border-color: map-get($foreground, divider);
9264
- }
9265
- }
9266
-
9267
- & > tbody {
9268
- & > tr {
9269
- &:hover {
9270
- background-color: map-get($background, overlay-hover);
9271
- }
9272
-
9273
- & > th,
9274
- & > td {
9275
- color: map-get($foreground, text);
9276
- }
9277
- }
9278
- }
9279
-
9280
- &.mc-table_bordered {
9281
- & > tbody > tr {
9282
- & th,
9283
- & td {
9284
- border-color: map-get($foreground, divider);
9285
- }
9286
- }
9287
- }
9288
- }
9289
- }
9290
-
9291
- @mixin mc-table-typography($config) {
9292
- .mc-table {
9293
- & > thead {
9294
- & > tr > th {
9295
- font-weight: normal;
9296
- }
9297
-
9298
- @include mc-typography-level-to-styles($config, $table-font-header);
9299
- }
9300
-
9301
- & > tbody {
9302
- & > tr > th {
9303
- font-weight: normal;
9304
- }
9305
-
9306
- @include mc-typography-level-to-styles($config, $table-font-body);
9307
- }
9308
- }
9309
- }
9310
-
9311
-
9312
-
9313
-
9314
-
9315
-
9316
- @mixin mosaic-typography($config: null) {
9317
- @if $config == null {
9318
- $config: mc-typography-config();
9319
- }
9320
-
9321
- @include mc-base-typography($config);
9322
-
9323
- @include mc-alert-typography($config);
9324
- @include mc-badge-typography($config);
9325
- @include mc-button-typography($config);
9326
- @include mc-checkbox-typography($config);
9327
- @include mc-code-block-typography($config);
9328
- @include mc-datepicker-typography($config);
9329
- @include mc-dropdown-typography($config);
9330
- @include mc-dl-typography($config);
9331
- @include mc-form-field-typography($config);
9332
- @include mc-forms-typography($config);
9333
- @include mc-input-typography($config);
9334
- @include mc-link-typography($config);
9335
- @include mc-list-typography($config);
9336
- @include mc-loader-overlay-typography($config);
9337
- @include mc-modal-typography($config);
9338
- @include mc-navbar-typography($config);
9339
- @include mc-option-typography($config);
9340
- @include mc-optgroup-typography($config);
9341
- @include mc-popover-typography($config);
9342
- @include mc-radio-typography($config);
9343
- @include mc-select-typography($config);
9344
- @include mc-sidepanel-typography($config);
9345
- @include mc-tabs-typography($config);
9346
- @include mc-tag-typography($config);
9347
- @include mc-textarea-typography($config);
9348
- @include mc-timezone-option-typography($config);
9349
- @include mc-toast-typography($config);
9350
- @include mc-toggle-typography($config);
9351
- @include mc-tooltip-typography($config);
9352
- @include mc-tree-select-typography($config);
9353
- @include mc-tree-typography($config);
9354
- @include mc-table-typography($config);
9355
-
9356
- $md-config: mc-markdown-typography-config();
9357
- @include mc-markdown-base-typography($md-config);
9358
- @include mc-markdown-typography($md-config);
9359
- }
9360
-
9361
-
9362
-
9363
-
9364
-
9365
-
9366
- /// Replace `$search` with `$replace` in `$string`
9367
- /// @author Kitty Giraudel
9368
- /// @param {String} $string - Initial string
9369
- /// @param {String} $search - Substring to replace
9370
- /// @param {String} $replace ('') - New value
9371
- /// @return {String} - Updated string
9372
- @function str-replace($string, $search, $replace: '') {
9373
- $index: str-index($string, $search);
9374
-
9375
- @if $index {
9376
- @return str-slice($string, 1, $index - 1) + $replace +
9377
- str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
9378
- }
9379
-
9380
- @return $string;
9381
- }
9382
-
9383
-
9384
- .mc-scrollbar {
9385
- //firefox
9386
- scrollbar-width: auto;
9387
-
9388
- // webkit
9389
- &::-webkit-scrollbar,
9390
- ::-webkit-scrollbar {
9391
- width: var(--mc-scrollbar-size-track-width, $scrollbar-size-track-width);
9392
- }
9393
-
9394
- &::-webkit-scrollbar-thumb,
9395
- ::-webkit-scrollbar-thumb {
9396
- width: var(--mc-scrollbar-size-thumb-width, $scrollbar-size-thumb-width);
9397
- border-width: var(--mc-scrollbar-size-thumb-inset-border-width, $scrollbar-size-thumb-border-width);
9398
- border-radius: var(--mc-scrollbar-size-thumb-inset-border-radius, $scrollbar-size-thumb-border-radius);
9399
- }
9400
-
9401
- &::-webkit-scrollbar-button,
9402
- ::-webkit-scrollbar-button {
9403
- display: none;
9404
-
9405
- height: var(--mc-scrollbar-size-arrow-icon-height, $scrollbar-size-arrow-icon-height);
9406
- width: var(--mc-scrollbar-size-arrow-icon-width, $scrollbar-size-arrow-icon-width);
9407
- }
9408
- }
9409
-
9410
- @mixin mc-scrollbar-theme($theme) {
9411
- $scrollbar: map-get(map-get($theme, components), scrollbar);
9412
- $thumb: map-get($scrollbar, thumb);
9413
- $arrow: map-get($scrollbar, arrow);
9414
-
9415
- .mc-scrollbar {
9416
-
9417
- // firefox
9418
- scrollbar-color: map-get($thumb, normal) map-get($scrollbar, track);
9419
-
9420
- // webkit
9421
- &::-webkit-scrollbar,
9422
- ::-webkit-scrollbar {
9423
- background-color: map-get($scrollbar, track);
9424
- }
9425
-
9426
- &::-webkit-scrollbar-corner,
9427
- ::-webkit-scrollbar-corner {
9428
- background-color: map-get($scrollbar, corner-background);
9429
- }
9430
-
9431
-
9432
- &::-webkit-scrollbar-thumb,
9433
- ::-webkit-scrollbar-thumb {
9434
- background-color: map-get($thumb, normal);
9435
-
9436
- border-color: map-get($scrollbar, track);
9437
- border-style: solid;
9438
-
9439
- &:hover {
9440
- background-color: map-get($thumb, hover);
9441
- }
9442
-
9443
- &:disabled {
9444
- background-color: map-get($thumb, disabled);
9445
- }
9446
-
9447
- &:active {
9448
- background-color: map-get($thumb, active);
9449
- }
9450
- }
9451
-
9452
- /* stylelint-disable */
9453
- &::-webkit-scrollbar-button,
9454
- ::-webkit-scrollbar-button {
9455
- background-color: map-get($arrow, background);
9456
- background-size: 10px 10px;
9457
- background-repeat: no-repeat;
9458
- background-position: center center;
9459
-
9460
- &:single-button {
9461
- &:horizontal:decrement {
9462
- @include arrow-image(right, map-get($arrow, normal));
9463
- }
9464
-
9465
- &:horizontal:increment {
9466
- @include arrow-image(left, map-get($arrow, normal));
9467
- }
9468
-
9469
- &:vertical:decrement {
9470
- @include arrow-image(up, map-get($arrow, normal));
9471
- }
9472
-
9473
- &:vertical:increment {
9474
- @include arrow-image(down, map-get($arrow, normal));
9475
- }
9476
- }
9477
-
9478
- // disable double-button
9479
- &:vertical:start:increment,
9480
- &:vertical:end:decrement,
9481
- &:horizontal:end:increment,
9482
- &:horizontal:end:decrement {
9483
- display: none;
9484
- }
9485
- }
9486
- /* stylelint-enable */
9487
- }
9488
- }
9489
-
9490
- @mixin arrow-image($direction, $color) {
9491
- $color: str-replace('#{$color}', '#', '%23');
9492
-
9493
- @if $direction == up {
9494
- background-image: url('data:image/svg+xml;utf8,<svg width="8" height="4" viewBox="0 0 8 4" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 4L4 0L8 4H0Z" fill="#{$color}"/></svg>');
9495
- } @else if $direction == left {
9496
- background-image: url('data:image/svg+xml;utf8,<svg width="4" height="8" viewBox="0 0 4 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.354973 0.111252L3.64503 3.40028C3.84808 3.60327 3.84107 3.91407 3.64503 4.11011L0.354973 7.40017C0.15192 7.60322 0 7.53112 0 7.25478V0.256747C0 -0.0128497 0.158927 -0.0847332 0.354973 0.111252Z" fill="#{$color}"/></svg>');
9497
- } @else if $direction == down {
9498
- background-image: url('data:image/svg+xml;utf8,<svg width="8" height="4" viewBox="0 0 8 4" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 0L4 4L8 0H0Z" fill="#{$color}"/></svg>');
9499
- } @else if $direction == right {
9500
- background-image: url('data:image/svg+xml;utf8,<svg width="5" height="8" viewBox="0 0 5 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.64975 0.111682C3.8458 -0.0845414 4.00472 -0.0128511 4.00472 0.256746V7.25478C4.00472 7.53112 3.8528 7.6034 3.64975 7.4006L0.359696 4.11454C0.163649 3.91873 0.156643 3.60794 0.359696 3.40471L3.64975 0.111682Z" fill="#{$color}"/></svg>');
9501
- }
9502
- }
9503
-
9504
-
9505
- @mixin mc-pseudo-checkbox-color($states) {
9506
- border-color: map-get($states, border);
9507
-
9508
- & .mc-checkbox-checkmark,
9509
- & .mc-checkbox-mixedmark {
9510
- color: map-get($states, color);
9511
- }
9512
-
9513
- &.mc-checked,
9514
- &.mc-indeterminate {
9515
- border-color: map-get($states, checked, border);
9516
-
9517
- background: map-get($states, checked, background);
9518
- }
9519
- }
9520
-
9521
- @mixin mc-pseudo-checkbox-theme($theme) {
9522
- $foreground: map-get($theme, foreground);
9523
- $background: map-get($theme, background);
9524
-
9525
- $checkbox: map-get(map-get($theme, components), checkbox);
9526
-
9527
- .mc-pseudo-checkbox {
9528
- &.mc-primary {
9529
- @include mc-pseudo-checkbox-color(map-get($checkbox, default));
9530
- }
9531
-
9532
- &.mc-error {
9533
- @include mc-pseudo-checkbox-color(map-get($checkbox, error));
9534
- }
9535
-
9536
- &.mc-disabled,
9537
- &.mc-primary.mc-disabled,
9538
- &.mc-error.mc-disabled {
9539
- border-color: map-get($foreground, border);
9540
-
9541
- background-color: map-get($background, background-disabled);
9542
-
9543
- & .mc-checkbox-checkmark,
9544
- & .mc-checkbox-mixedmark {
9545
- color: map-get($foreground, text-disabled);
9546
- }
9547
- }
9548
- }
9549
- }
9550
-
9551
-
9552
-
9553
- @mixin card-type($card) {
9554
- box-shadow:
9555
- inset -1px 0 0 0 map-get($card, shadow),
9556
- inset 0 1px 0 0 map-get($card, shadow),
9557
- inset 0 -1px 0 0 map-get($card, shadow);
9558
-
9559
- background-color: map-get($card, background);
9560
-
9561
- border-left-color: map-get($card, vertical-line);
9562
- }
9563
-
9564
- @mixin mc-card-theme($theme) {
9565
- $foreground: map-get($theme, foreground);
9566
- $background: map-get($theme, background);
9567
-
9568
- $card: map-get(map-get($theme, components), card);
9569
- $popup: map-get(map-get($theme, components), popup);
9570
-
9571
- $is-dark: map-get($theme, is-dark);
9572
-
9573
- .mc-card {
9574
- color: map-get($foreground, text);
9575
-
9576
- &.mc-card_error {
9577
- @include card-type(map-get($card, error));
9578
- }
9579
-
9580
- &.mc-card_warning {
9581
- @include card-type(map-get($card, warning));
9582
- }
9583
-
9584
- &.mc-card_success {
9585
- @include card-type(map-get($card, success));
9586
- }
9587
-
9588
- &.mc-card_info {
9589
- @include card-type(map-get($card, info));
9590
- }
9591
-
9592
- &.mc-card_white {
9593
- background-color: map-get($popup, background);
9594
- }
9595
-
9596
- &.mc-selected {
9597
- background-color: map-get(map-get($theme, states), selected-color);
9598
- }
9599
-
9600
- &:not(.mc-card_readonly):hover {
9601
- .mc-card__overlay {
9602
- background: map-get($background, overlay-hover);
9603
- }
9604
- }
9605
-
9606
- &.cdk-keyboard-focused {
9607
- box-shadow: 0 0 0 2px map-get(map-get($theme, states), focused-color);
9608
- }
9609
- }
9610
- }
9611
-
9612
-
9613
-
9614
-
9615
- @mixin mc-divider-theme($theme) {
9616
- $divider: map-get(map-get($theme, components), divider);
9617
-
9618
- .mc-divider_horizontal {
9619
- border-top-color: map-get($divider, color);
9620
- }
9621
-
9622
- .mc-divider_vertical {
9623
- border-right-color: map-get($divider, color);
9624
- }
9625
- }
9626
-
9627
-
9628
-
9629
-
9630
-
9631
-
9632
- @mixin mc-icon-theme($theme) {
9633
- $foreground: map-get($theme, foreground);
9634
- $second: map-get($theme, second);
9635
-
9636
- $icon: map-get(map-get($theme, components), icon);
9637
-
9638
- $primary: map-get($icon, primary);
9639
- $secondary: map-get($icon, secondary);
9640
- $error: map-get($icon, error);
9641
- $success: map-get($icon, success);
9642
- $warning: map-get($icon, warning);
9643
- $info: map-get($icon, info);
9644
-
9645
- // Дефолтные серые иконки default-icon: лупа в поле, иконки дропдаунов v, все иконки вне полей.
9646
- .mc-icon {
9647
- color: mc-color($foreground, icon);
9648
-
9649
- &.mc-primary {
9650
- color: map-get($primary, default);
9651
- }
9652
-
9653
- &.mc-second {
9654
- color: map-get($secondary, default);
9655
- }
9656
-
9657
- &.mc-error {
9658
- color: map-get($error, default);
9659
- }
9660
-
9661
-
9662
- &.mc-info {
9663
- color: map-get($info, default);
9664
- }
9665
-
9666
- &.mc-warning {
9667
- color: map-get($warning, default);
9668
- }
9669
-
9670
- &.mc-success {
9671
- color: map-get($success, default);
9672
- }
9673
-
9674
- &[disabled],
9675
- &.mc-disabled {
9676
- cursor: default;
9677
- }
9678
- }
9679
-
9680
- // Облегченные серые иконки less-contrast-icon нужны тогда, когда действие, которое они делают не дефолтное и
9681
- // не самое важное. Не используются вне инпутов или селектов.
9682
- .mc-icon.mc-icon_light {
9683
- &.mc-primary {
9684
- &:active,
9685
- &.mc-active {
9686
- color: map-get($primary, state-active);
9687
- }
9688
-
9689
- &:not([disabled], .mc-disabled):hover {
9690
- color: map-get($primary, state-hover);
9691
- }
9692
-
9693
- &[disabled],
9694
- &.mc-disabled {
9695
- color: map-get($primary, state-disabled);
9696
- }
9697
- }
9698
-
9699
- &.mc-second {
9700
- &:active,
9701
- &.mc-active {
9702
- color: map-get($secondary, state-active);
9703
- }
9704
-
9705
- &:not([disabled], .mc-disabled):hover {
9706
- color: map-get($secondary, state-hover);
9707
- }
9708
-
9709
- &[disabled],
9710
- &.mc-disabled {
9711
- color: map-get($secondary, state-disabled);
9712
- }
9713
- }
9714
-
9715
- &.mc-error {
9716
- &:active,
9717
- &.mc-active {
9718
- color: map-get($error, state-active);
9719
- }
9720
-
9721
- &:not([disabled], .mc-disabled):hover {
9722
- color: map-get($error, state-hover);
9723
- }
9724
-
9725
- &[disabled],
9726
- &.mc-disabled {
9727
- color: map-get($error, state-disabled);
9728
- }
9729
- }
9730
-
9731
- &.mc-info {
9732
- &:active,
9733
- &.mc-active {
9734
- color: map-get($info, state-active);
9735
- }
9736
-
9737
- &:not([disabled], .mc-disabled):hover {
9738
- color: map-get($info, state-hover);
9739
- }
9740
-
9741
- &[disabled],
9742
- &.mc-disabled {
9743
- color: map-get($info, state-disabled);
9744
- }
9745
- }
9746
-
9747
- &.mc-warning {
9748
- &:active,
9749
- &.mc-active {
9750
- color: map-get($warning, state-active);
9751
- }
9752
-
9753
- &:not([disabled], .mc-disabled):hover {
9754
- color: map-get($warning, state-hover);
9755
- }
9756
-
9757
- &[disabled],
9758
- &.mc-disabled {
9759
- color: map-get($warning, state-disabled);
9760
- }
9761
- }
9762
-
9763
- &.mc-success {
9764
- &:active,
9765
- &.mc-active {
9766
- color: map-get($success, state-active);
9767
- }
9768
-
9769
- &:not([disabled], .mc-disabled):hover {
9770
- color: map-get($success, state-hover);
9771
- }
9772
-
9773
- &[disabled],
9774
- &.mc-disabled {
9775
- color: map-get($success, state-disabled);
9776
- }
9777
- }
9778
- }
9779
- }
9780
-
9781
-
9782
-
9783
-
9784
-
9785
-
9786
-
9787
-
9788
-
9789
-
9790
-
9791
-
9792
-
9793
- @mixin mc-markdown-theme($theme) {
9794
- $foreground: map-get($theme, foreground);
9795
- $background: map-get($theme, background);
9796
-
9797
- $markdown: map-get(map-get($theme, components), markdown);
9798
-
9799
- .mc-markdown {
9800
- color: map-get($foreground, text);
9801
- background: map-get($background, background);;
9802
-
9803
- // h1, h2, h3, h4, h5, h6
9804
- @for $i from 1 through 6 {
9805
- .mc-markdown__h#{$i} {
9806
- color: map-get($markdown, h#{$i}-color);
9807
- }
9808
- }
9809
-
9810
- .mc-markdown__p {
9811
- color: map-get($markdown, p-color);
9812
- }
9813
-
9814
- .mc-markdown__ul,
9815
- .mc-markdown__ol {
9816
- color: map-get($markdown, list-color);
9817
- }
9818
-
9819
- .mc-markdown__blockquote {
9820
- color: map-get($markdown, blockquote-text);
9821
- background: map-get($markdown, blockquote-background);
9822
- border-color: map-get($markdown, blockquote-border);
9823
- border-left-color: map-get($markdown, blockquote-line);
9824
- }
9825
-
9826
- .mc-markdown__pre,
9827
- .mc-markdown__p > .mc-markdown__code {
9828
- color: map-get($markdown, code-text);
9829
- background-color: map-get($markdown, code-background);
9830
- border-color: map-get($markdown, code-border);
9831
- }
9832
-
9833
- .mc-markdown__a {
9834
- color: map-get($markdown, link-text);
9835
- border-bottom-color: map-get($markdown, link-border-bottom);
9836
-
9837
- &:visited {
9838
- color: map-get($markdown, link-state-visited-text);
9839
- border-bottom-color: map-get($markdown, link-state-visited-border-bottom);
9840
- }
9841
-
9842
- &:hover {
9843
- color: map-get($markdown, link-state-hover-text);
9844
- transition: color 0ms;
9845
- border-bottom-color: map-get($markdown, link-state-hover-border-bottom);
9846
- }
9847
-
9848
- &:active {
9849
- color: map-get($markdown, link-state-active-text);
9850
- }
9851
-
9852
- &:focus {
9853
- outline:
9854
- map-get($markdown, link-state-focused-outline)
9855
- solid
9856
- $markdown-link-size-state-focused-outline-width;
9583
+ background-color: map-get($background, overlay-hover);
9584
+ }
9857
9585
 
9858
- outline-offset: $markdown-link-size-state-focused-outline-offset;
9586
+ &.mc-focused {
9587
+ border-color: map-get(map-get($theme, states), focused-color);
9588
+
9589
+ & .mc-tree-node-toggle:not([disabled]) .mc-icon {
9590
+ color: mc-color($secondary, if($is-dark, 300, 700));
9859
9591
  }
9860
9592
  }
9861
9593
 
9862
- .mc-markdown__img + em {
9863
- color: map-get($markdown, image-caption-text);
9594
+ &.mc-selected {
9595
+ background: map-get(map-get($theme, states), selected-color);
9864
9596
  }
9865
9597
 
9866
- .mc-markdown__hr {
9867
- border-bottom-color: map-get($markdown, hr-color);
9598
+ &[disabled] {
9599
+ background-color: transparent;
9600
+
9601
+ color: map-get($foreground, text-disabled);
9868
9602
  }
9603
+ }
9869
9604
 
9870
- .mc-markdown__table > .mc-markdown__thead {
9871
- color: map-get($markdown, table-header);
9872
- border-bottom-color: map-get($markdown, table-border);
9605
+ /* stylelint-disable no-descending-specificity */
9606
+ .mc-tree-node-toggle {
9607
+ & .mc-icon {
9608
+ color: mc-color($secondary, 400);
9873
9609
  }
9874
9610
 
9875
- .mc-markdown__table > .mc-markdown__tbody {
9876
- color: map-get($markdown, table-body);
9611
+ &:hover .mc-icon {
9612
+ color: mc-color($secondary, if($is-dark, 300, 700));
9613
+ }
9614
+
9615
+ &[disabled] .mc-icon {
9616
+ color: mc-color($secondary, if($is-dark, 700, 300));
9877
9617
  }
9878
9618
  }
9619
+ /* stylelint-enable no-descending-specificity */
9620
+ }
9621
+
9622
+ @mixin mc-tree-typography($config) {
9623
+ .mc-tree-option {
9624
+ @include mc-typography-level-to-styles($config, $tree-font-node);
9625
+ }
9879
9626
  }
9880
9627
 
9881
9628
 
9882
9629
 
9883
9630
 
9884
9631
 
9632
+ @mixin mc-table-theme($theme) {
9633
+ $foreground: map-get($theme, foreground);
9634
+ $background: map-get($theme, background);
9885
9635
 
9886
- @mixin mc-progress-bar-theme($theme) {
9887
- $primary: map-get($theme, primary);
9888
- $second: map-get($theme, second);
9889
- $error: map-get($theme, error);
9636
+ .mc-table {
9637
+ & > thead {
9638
+ color: map-get($foreground, text-less-contrast);
9890
9639
 
9891
- $progress-bar: map-get(map-get($theme, components), progress-bar);
9640
+ & > tr > th {
9641
+ border-color: map-get($foreground, divider);
9642
+ }
9643
+ }
9892
9644
 
9893
- .mc-progress-bar {
9894
- background-color: map-get($progress-bar, background);
9645
+ & > tbody {
9646
+ & > tr {
9647
+ &:hover {
9648
+ background-color: map-get($background, overlay-hover);
9649
+ }
9895
9650
 
9896
- &.mc-primary .mc-progress-bar__line {
9897
- background-color: mc-color($primary);
9651
+ & > th,
9652
+ & > td {
9653
+ color: map-get($foreground, text);
9654
+ }
9655
+ }
9898
9656
  }
9899
9657
 
9900
- &.mc-second .mc-progress-bar__line {
9901
- background-color: mc-color($second);
9658
+ &.mc-table_bordered {
9659
+ & > tbody > tr {
9660
+ & th,
9661
+ & td {
9662
+ border-color: map-get($foreground, divider);
9663
+ }
9664
+ }
9902
9665
  }
9666
+ }
9667
+ }
9903
9668
 
9904
- &.mc-error .mc-progress-bar__line {
9905
- background-color: mc-color($error);
9669
+ @mixin mc-table-typography($config) {
9670
+ .mc-table {
9671
+ & > thead {
9672
+ & > tr > th {
9673
+ font-weight: normal;
9674
+ }
9675
+
9676
+ @include mc-typography-level-to-styles($config, $table-font-header);
9677
+ }
9678
+
9679
+ & > tbody {
9680
+ & > tr > th {
9681
+ font-weight: normal;
9682
+ }
9683
+
9684
+ @include mc-typography-level-to-styles($config, $table-font-body);
9906
9685
  }
9907
9686
  }
9908
9687
  }
@@ -9910,53 +9689,70 @@ button {
9910
9689
 
9911
9690
 
9912
9691
 
9913
- @mixin mc-progress-spinner-theme($theme) {
9914
- $primary: map-get($theme, primary);
9915
- $second: map-get($theme, second);
9916
- $error: map-get($theme, error);
9917
9692
 
9918
- .mc-progress-spinner {
9919
- &.mc-primary .mc-progress-spinner__circle {
9920
- stroke: mc-color($primary);
9921
- }
9922
9693
 
9923
- &.mc-second .mc-progress-spinner__circle {
9924
- stroke: mc-color($second);
9925
- }
9694
+ @mixin mc-forms-theme($theme) {
9695
+ $foreground: map-get($theme, foreground);
9926
9696
 
9927
- &.mc-error .mc-progress-spinner__circle {
9928
- stroke: mc-color($error);
9929
- }
9697
+ $forms: map-get(map-get($theme, components), forms);
9698
+
9699
+ .mc-form__label {
9700
+ color: map-get($forms, label);
9701
+ }
9702
+
9703
+ .mc-form__legend {
9704
+ color: map-get($forms, legend);
9705
+ }
9706
+ }
9707
+
9708
+ @mixin mc-forms-typography($config) {
9709
+ .mc-form__label {
9710
+ @include mc-typography-level-to-styles($config, $forms-font-default-label);
9711
+ }
9712
+
9713
+ .mc-form__legend {
9714
+ @include mc-typography-level-to-styles($config, $forms-font-default-legend);
9930
9715
  }
9931
9716
  }
9932
9717
 
9933
9718
 
9934
9719
 
9935
9720
 
9936
- @mixin mc-splitter-theme($theme) {
9721
+
9722
+ @mixin mc-option-theme($theme) {
9723
+ $foreground: map-get($theme, foreground);
9937
9724
  $background: map-get($theme, background);
9938
9725
 
9939
- .mc-gutter {
9940
- cursor: col-resize;
9726
+ $primary: map-get($theme, primary);
9941
9727
 
9942
- &:hover,
9943
- &.mc-gutter_dragged {
9944
- background-color: map-get($background, background-disabled);
9728
+ .mc-option {
9729
+ color: map-get($foreground, text);
9730
+
9731
+ &:hover:not(.mc-disabled) {
9732
+ .mc-option-overlay {
9733
+ background: map-get($background, overlay-hover);
9734
+ }
9945
9735
  }
9946
9736
 
9947
- &.mc-gutter_vertical {
9948
- cursor: row-resize;
9737
+ &.mc-active {
9738
+ border-color: map-get(map-get($theme, states), focused-color);
9949
9739
  }
9950
9740
 
9951
- &[disabled] {
9952
- background-color: mc-color($background, overlay-disabled);
9741
+ &.mc-selected {
9742
+ background: map-get(map-get($theme, states), selected-color);
9743
+ }
9953
9744
 
9954
- cursor: default;
9745
+ &.mc-disabled {
9746
+ background: transparent;
9747
+
9748
+ color: map-get($foreground, text-disabled);
9955
9749
  }
9956
9750
  }
9751
+ }
9957
9752
 
9958
- .mc-gutter-ghost {
9959
- background: mc-color($background, overlay-disabled);
9753
+ @mixin mc-option-typography($config) {
9754
+ .mc-option {
9755
+ @include mc-typography-level-to-styles($config, $option-font-default);
9960
9756
  }
9961
9757
  }
9962
9758
 
@@ -9964,14 +9760,23 @@ button {
9964
9760
 
9965
9761
 
9966
9762
 
9763
+ @mixin mc-optgroup-theme($theme) {
9764
+ $foreground: map-get($theme, foreground);
9967
9765
 
9766
+ .mc-optgroup-label {
9767
+ color: map-get($foreground, text);
9768
+ }
9968
9769
 
9770
+ .mc-disabled .mc-optgroup-label {
9771
+ color: map-get($foreground, text-disabled);
9772
+ }
9773
+ }
9969
9774
 
9970
-
9971
-
9972
-
9973
-
9974
-
9775
+ @mixin mc-optgroup-typography($config) {
9776
+ .mc-optgroup-label {
9777
+ @include mc-typography-level-to-styles($config, $optgroup-font-default);
9778
+ }
9779
+ }
9975
9780
 
9976
9781
 
9977
9782
 
@@ -9981,7 +9786,7 @@ button {
9981
9786
  $foreground: map-get($theme, foreground);
9982
9787
  $background: map-get($theme, background);
9983
9788
 
9984
- $second: map-get($theme, second);
9789
+ $secondary: map-get($theme, secondary);
9985
9790
 
9986
9791
  $is-dark: map-get($theme, is-dark);
9987
9792
 
@@ -9993,19 +9798,19 @@ button {
9993
9798
  &:active,
9994
9799
  &.mc-pressed {
9995
9800
  & .mc-icon {
9996
- color: mc-color($second, if($is-dark, 300, 700));
9801
+ color: mc-color($secondary, if($is-dark, 300, 700));
9997
9802
  }
9998
9803
 
9999
- background-color: mc-color($second, A100);
9804
+ background-color: mc-color($secondary, A100);
10000
9805
  }
10001
9806
 
10002
9807
  &:hover .mc-icon {
10003
- color: mc-color($second, if($is-dark, 300, 700));
9808
+ color: mc-color($secondary, if($is-dark, 300, 700));
10004
9809
  }
10005
9810
 
10006
9811
  &[disabled] {
10007
9812
  & .mc-icon {
10008
- color: mc-color($second, if($is-dark, 700, 300));
9813
+ color: mc-color($secondary, if($is-dark, 700, 300));
10009
9814
  }
10010
9815
 
10011
9816
  background-color: transparent;
@@ -10027,16 +9832,38 @@ button {
10027
9832
 
10028
9833
 
10029
9834
 
10030
- @mixin mc-panel-theme($theme) {
10031
- $background: map-get($theme, background);
10032
9835
 
10033
- $second: map-get($theme, second);
9836
+ @mixin mc-dl-theme($theme) {
9837
+ $dl: map-get(map-get($theme, components), dl);
10034
9838
 
10035
- $is-dark: map-get($theme, is-dark);
9839
+ .mc-dt {
9840
+ color: map-get($dl, dt);
9841
+ }
10036
9842
 
10037
- .mc-panel {
10038
- background-color: map-get($background, background);
10039
- border: 1px solid mc-color($second, if($is-dark, 700, 60));
9843
+ .mc-dd {
9844
+ color: map-get($dl, dd);
9845
+ }
9846
+ }
9847
+
9848
+ @mixin mc-dl-typography($config) {
9849
+ .mc-dl {
9850
+ & .mc-dt {
9851
+ @include mc-typography-level-to-styles($config, $description-list-font-horizontal-dt);
9852
+ }
9853
+
9854
+ & .mc-dd {
9855
+ @include mc-typography-level-to-styles($config, $description-list-font-horizontal-dd);
9856
+ }
9857
+ }
9858
+
9859
+ .mc-dl.mc-dl_vertical {
9860
+ & .mc-dt {
9861
+ @include mc-typography-level-to-styles($config, $description-list-font-vertical-dt);
9862
+ }
9863
+
9864
+ & .mc-dd {
9865
+ @include mc-typography-level-to-styles($config, $description-list-font-vertical-dd);
9866
+ }
10040
9867
  }
10041
9868
  }
10042
9869
 
@@ -10071,7 +9898,6 @@ button {
10071
9898
  @include mc-option-theme($theme);
10072
9899
  @include mc-optgroup-theme($theme);
10073
9900
  @include mc-option-action-theme($theme);
10074
- @include mc-panel-theme($theme);
10075
9901
  @include mc-popover-theme($theme);
10076
9902
  @include mc-progress-bar-theme($theme);
10077
9903
  @include mc-progress-spinner-theme($theme);
@@ -10091,5 +9917,53 @@ button {
10091
9917
  @include mc-tree-select-theme($theme);
10092
9918
  @include mc-tree-theme($theme);
10093
9919
  @include mc-table-theme($theme);
9920
+ }
9921
+
9922
+ @mixin mosaic-typography($config: null, $md-config: null) {
9923
+ @if $config == null {
9924
+ $config: mc-typography-config();
9925
+ }
9926
+
9927
+ @if $md-config == null {
9928
+ $md-config: mc-markdown-typography-config();
9929
+ }
9930
+
9931
+ @include mc-base-typography($config);
9932
+ @include mc-markdown-base-typography($md-config);
9933
+
9934
+ @include mc-alert-typography($config);
9935
+ @include mc-badge-typography($config);
9936
+ @include mc-button-typography($config);
9937
+ @include mc-checkbox-typography($config);
9938
+ @include mc-code-block-typography($config);
9939
+ @include mc-datepicker-typography($config);
9940
+ @include mc-dropdown-typography($config);
9941
+ @include mc-dl-typography($config);
9942
+ @include mc-form-field-typography($config);
9943
+ @include mc-forms-typography($config);
9944
+ @include mc-input-typography($config);
9945
+ @include mc-link-typography($config);
9946
+ @include mc-list-typography($config);
9947
+ @include mc-loader-overlay-typography($config);
9948
+ @include mc-modal-typography($config);
9949
+ @include mc-navbar-typography($config);
9950
+ @include mc-option-typography($config);
9951
+ @include mc-optgroup-typography($config);
9952
+ @include mc-popover-typography($config);
9953
+ @include mc-radio-typography($config);
9954
+ @include mc-select-typography($config);
9955
+ @include mc-sidepanel-typography($config);
9956
+ @include mc-tabs-typography($config);
9957
+ @include mc-tag-typography($config);
9958
+ @include mc-textarea-typography($config);
9959
+ @include mc-timezone-option-typography($config);
9960
+ @include mc-toast-typography($config);
9961
+ @include mc-toggle-typography($config);
9962
+ @include mc-tooltip-typography($config);
9963
+ @include mc-tree-select-typography($config);
9964
+ @include mc-tree-typography($config);
9965
+ @include mc-table-typography($config);
10094
9966
 
9967
+ @include mc-markdown-typography($md-config);
10095
9968
  }
9969
+