@ptsecurity/mosaic 13.2.0 → 13.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (371) hide show
  1. package/_theming.scss +143 -44
  2. package/_visual.scss +340 -213
  3. package/button/button.component.d.ts +1 -1
  4. package/core/option/option.d.ts +1 -0
  5. package/core/validation/validation.d.ts +3 -3
  6. package/design-tokens/legacy-2017/tokens.d.ts +82 -36
  7. package/design-tokens/pt-2022/tokens.d.ts +78 -32
  8. package/esm2020/autocomplete/autocomplete-origin.directive.mjs +3 -3
  9. package/esm2020/autocomplete/autocomplete-trigger.directive.mjs +3 -3
  10. package/esm2020/autocomplete/autocomplete.component.mjs +3 -3
  11. package/esm2020/autocomplete/autocomplete.module.mjs +4 -4
  12. package/esm2020/button/button.component.mjs +29 -21
  13. package/esm2020/button/button.module.mjs +4 -4
  14. package/esm2020/button-toggle/button-toggle.component.mjs +6 -6
  15. package/esm2020/button-toggle/button-toggle.module.mjs +4 -4
  16. package/esm2020/card/card.component.mjs +3 -3
  17. package/esm2020/card/card.module.mjs +4 -4
  18. package/esm2020/checkbox/checkbox-module.mjs +4 -4
  19. package/esm2020/checkbox/checkbox-required-validator.mjs +3 -3
  20. package/esm2020/checkbox/checkbox.mjs +3 -3
  21. package/esm2020/core/common-behaviors/common-module.mjs +4 -4
  22. package/esm2020/core/error/error-options.mjs +6 -6
  23. package/esm2020/core/formatters/date/formatter.mjs +3 -3
  24. package/esm2020/core/formatters/index.mjs +4 -4
  25. package/esm2020/core/formatters/number/formatter.mjs +4 -4
  26. package/esm2020/core/forms/forms-module.mjs +4 -4
  27. package/esm2020/core/forms/forms.directive.mjs +6 -6
  28. package/esm2020/core/highlight/highlight.pipe.mjs +3 -3
  29. package/esm2020/core/highlight/index.mjs +4 -4
  30. package/esm2020/core/line/line.mjs +7 -7
  31. package/esm2020/core/option/action.mjs +3 -3
  32. package/esm2020/core/option/optgroup.mjs +3 -3
  33. package/esm2020/core/option/option-module.mjs +4 -4
  34. package/esm2020/core/option/option.mjs +10 -7
  35. package/esm2020/core/pop-up/pop-up-trigger.mjs +3 -3
  36. package/esm2020/core/pop-up/pop-up.mjs +3 -3
  37. package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +3 -3
  38. package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.module.mjs +4 -4
  39. package/esm2020/core/services/measure-scrollbar.service.mjs +3 -3
  40. package/esm2020/core/validation/validation.mjs +10 -5
  41. package/esm2020/datepicker/calendar-body.component.mjs +3 -3
  42. package/esm2020/datepicker/calendar.component.mjs +6 -6
  43. package/esm2020/datepicker/datepicker-input.directive.mjs +3 -3
  44. package/esm2020/datepicker/datepicker-intl.mjs +3 -3
  45. package/esm2020/datepicker/datepicker-module.mjs +4 -4
  46. package/esm2020/datepicker/datepicker-toggle.component.mjs +6 -6
  47. package/esm2020/datepicker/datepicker.component.mjs +6 -6
  48. package/esm2020/datepicker/month-view.component.mjs +3 -3
  49. package/esm2020/datepicker/multi-year-view.component.mjs +3 -3
  50. package/esm2020/datepicker/year-view.component.mjs +3 -3
  51. package/esm2020/design-tokens/legacy-2017/tokens.mjs +83 -37
  52. package/esm2020/design-tokens/pt-2022/tokens.mjs +79 -33
  53. package/esm2020/divider/divider.component.mjs +3 -3
  54. package/esm2020/divider/divider.module.mjs +4 -4
  55. package/esm2020/dl/dl.component.mjs +9 -9
  56. package/esm2020/dl/dl.module.mjs +4 -4
  57. package/esm2020/dropdown/dropdown-content.directive.mjs +3 -3
  58. package/esm2020/dropdown/dropdown-item.component.mjs +5 -5
  59. package/esm2020/dropdown/dropdown-trigger.directive.mjs +3 -3
  60. package/esm2020/dropdown/dropdown.component.mjs +6 -6
  61. package/esm2020/dropdown/dropdown.module.mjs +4 -4
  62. package/esm2020/form-field/cleaner.mjs +3 -3
  63. package/esm2020/form-field/form-field.mjs +7 -7
  64. package/esm2020/form-field/form-field.module.mjs +4 -4
  65. package/esm2020/form-field/hint.mjs +3 -3
  66. package/esm2020/form-field/password-hint.mjs +34 -15
  67. package/esm2020/form-field/prefix.mjs +3 -3
  68. package/esm2020/form-field/stepper.mjs +3 -3
  69. package/esm2020/form-field/suffix.mjs +3 -3
  70. package/esm2020/icon/icon.component.mjs +6 -6
  71. package/esm2020/icon/icon.module.mjs +4 -4
  72. package/esm2020/input/input-number-validators.mjs +6 -6
  73. package/esm2020/input/input-number.mjs +3 -3
  74. package/esm2020/input/input-password.mjs +12 -11
  75. package/esm2020/input/input.mjs +12 -11
  76. package/esm2020/input/input.module.mjs +4 -4
  77. package/esm2020/link/link.component.mjs +3 -3
  78. package/esm2020/link/link.module.mjs +4 -4
  79. package/esm2020/list/list-selection.component.mjs +11 -11
  80. package/esm2020/list/list.component.mjs +7 -7
  81. package/esm2020/list/list.module.mjs +4 -4
  82. package/esm2020/modal/css-unit.pipe.mjs +3 -3
  83. package/esm2020/modal/modal-control.service.mjs +3 -3
  84. package/esm2020/modal/modal.component.mjs +4 -4
  85. package/esm2020/modal/modal.directive.mjs +12 -12
  86. package/esm2020/modal/modal.module.mjs +4 -4
  87. package/esm2020/modal/modal.service.mjs +3 -3
  88. package/esm2020/navbar/navbar-item.component.mjs +80 -79
  89. package/esm2020/navbar/navbar.component.mjs +10 -10
  90. package/esm2020/navbar/navbar.module.mjs +4 -4
  91. package/esm2020/navbar/vertical-navbar.component.mjs +6 -6
  92. package/esm2020/popover/popover-confirm.component.mjs +8 -8
  93. package/esm2020/popover/popover.component.mjs +8 -8
  94. package/esm2020/popover/popover.module.mjs +4 -4
  95. package/esm2020/progress-bar/progress-bar.component.mjs +3 -3
  96. package/esm2020/progress-bar/progress-bar.module.mjs +4 -4
  97. package/esm2020/progress-spinner/progress-spinner.component.mjs +3 -3
  98. package/esm2020/progress-spinner/progress-spinner.module.mjs +4 -4
  99. package/esm2020/radio/radio.component.mjs +6 -6
  100. package/esm2020/radio/radio.module.mjs +4 -4
  101. package/esm2020/select/public-api.mjs +2 -1
  102. package/esm2020/select/select-option.directive.mjs +65 -0
  103. package/esm2020/select/select.component.mjs +16 -16
  104. package/esm2020/select/select.module.mjs +19 -10
  105. package/esm2020/sidebar/sidebar.component.mjs +9 -9
  106. package/esm2020/sidebar/sidebar.module.mjs +4 -4
  107. package/esm2020/sidepanel/sidepanel-container.component.mjs +5 -5
  108. package/esm2020/sidepanel/sidepanel-directives.mjs +15 -15
  109. package/esm2020/sidepanel/sidepanel.module.mjs +4 -4
  110. package/esm2020/sidepanel/sidepanel.service.mjs +3 -3
  111. package/esm2020/splitter/splitter.component.mjs +12 -12
  112. package/esm2020/splitter/splitter.module.mjs +4 -4
  113. package/esm2020/table/table.component.mjs +3 -3
  114. package/esm2020/table/table.module.mjs +4 -4
  115. package/esm2020/tabs/paginated-tab-header.mjs +3 -3
  116. package/esm2020/tabs/tab-body.component.mjs +6 -6
  117. package/esm2020/tabs/tab-content.directive.mjs +3 -3
  118. package/esm2020/tabs/tab-group.component.mjs +19 -19
  119. package/esm2020/tabs/tab-header.component.mjs +3 -3
  120. package/esm2020/tabs/tab-label-wrapper.directive.mjs +3 -3
  121. package/esm2020/tabs/tab-label.directive.mjs +3 -3
  122. package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +6 -6
  123. package/esm2020/tabs/tab.component.mjs +3 -3
  124. package/esm2020/tabs/tabs.module.mjs +4 -4
  125. package/esm2020/tags/tag-input.mjs +3 -3
  126. package/esm2020/tags/tag-list.component.mjs +6 -6
  127. package/esm2020/tags/tag.component.mjs +60 -60
  128. package/esm2020/tags/tag.module.mjs +4 -4
  129. package/esm2020/textarea/textarea.component.mjs +9 -8
  130. package/esm2020/textarea/textarea.module.mjs +4 -4
  131. package/esm2020/timepicker/timepicker.directive.mjs +3 -3
  132. package/esm2020/timepicker/timepicker.module.mjs +4 -4
  133. package/esm2020/toggle/toggle.component.mjs +3 -3
  134. package/esm2020/toggle/toggle.module.mjs +4 -4
  135. package/esm2020/tooltip/tooltip.component.mjs +14 -13
  136. package/esm2020/tooltip/tooltip.module.mjs +4 -4
  137. package/esm2020/tree/node.mjs +3 -3
  138. package/esm2020/tree/outlet.mjs +3 -3
  139. package/esm2020/tree/padding.directive.mjs +12 -9
  140. package/esm2020/tree/toggle.mjs +10 -10
  141. package/esm2020/tree/tree-base.mjs +6 -6
  142. package/esm2020/tree/tree-option.component.mjs +9 -9
  143. package/esm2020/tree/tree-selection.component.mjs +8 -6
  144. package/esm2020/tree/tree.mjs +3 -3
  145. package/esm2020/tree/tree.module.mjs +4 -4
  146. package/esm2020/tree-select/tree-select.component.mjs +14 -14
  147. package/esm2020/tree-select/tree-select.module.mjs +4 -4
  148. package/fesm2015/ptsecurity-mosaic-autocomplete.mjs +13 -13
  149. package/fesm2015/ptsecurity-mosaic-button-toggle.mjs +10 -10
  150. package/fesm2015/ptsecurity-mosaic-button.mjs +32 -24
  151. package/fesm2015/ptsecurity-mosaic-button.mjs.map +1 -1
  152. package/fesm2015/ptsecurity-mosaic-card.mjs +7 -7
  153. package/fesm2015/ptsecurity-mosaic-checkbox.mjs +10 -10
  154. package/fesm2015/ptsecurity-mosaic-core.mjs +89 -81
  155. package/fesm2015/ptsecurity-mosaic-core.mjs.map +1 -1
  156. package/fesm2015/ptsecurity-mosaic-datepicker.mjs +40 -40
  157. package/fesm2015/ptsecurity-mosaic-design-tokens.mjs +218 -80
  158. package/fesm2015/ptsecurity-mosaic-design-tokens.mjs.map +1 -1
  159. package/fesm2015/ptsecurity-mosaic-divider.mjs +7 -7
  160. package/fesm2015/ptsecurity-mosaic-dl.mjs +13 -13
  161. package/fesm2015/ptsecurity-mosaic-dropdown.mjs +19 -19
  162. package/fesm2015/ptsecurity-mosaic-dropdown.mjs.map +1 -1
  163. package/fesm2015/ptsecurity-mosaic-form-field.mjs +60 -38
  164. package/fesm2015/ptsecurity-mosaic-form-field.mjs.map +1 -1
  165. package/fesm2015/ptsecurity-mosaic-icon.mjs +10 -10
  166. package/fesm2015/ptsecurity-mosaic-input.mjs +33 -31
  167. package/fesm2015/ptsecurity-mosaic-input.mjs.map +1 -1
  168. package/fesm2015/ptsecurity-mosaic-link.mjs +7 -7
  169. package/fesm2015/ptsecurity-mosaic-list.mjs +21 -21
  170. package/fesm2015/ptsecurity-mosaic-list.mjs.map +1 -1
  171. package/fesm2015/ptsecurity-mosaic-modal.mjs +29 -29
  172. package/fesm2015/ptsecurity-mosaic-modal.mjs.map +1 -1
  173. package/fesm2015/ptsecurity-mosaic-navbar.mjs +97 -96
  174. package/fesm2015/ptsecurity-mosaic-navbar.mjs.map +1 -1
  175. package/fesm2015/ptsecurity-mosaic-popover.mjs +18 -18
  176. package/fesm2015/ptsecurity-mosaic-popover.mjs.map +1 -1
  177. package/fesm2015/ptsecurity-mosaic-progress-bar.mjs +7 -7
  178. package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs +7 -7
  179. package/fesm2015/ptsecurity-mosaic-radio.mjs +10 -10
  180. package/fesm2015/ptsecurity-mosaic-select.mjs +99 -33
  181. package/fesm2015/ptsecurity-mosaic-select.mjs.map +1 -1
  182. package/fesm2015/ptsecurity-mosaic-sidebar.mjs +13 -13
  183. package/fesm2015/ptsecurity-mosaic-sidepanel.mjs +26 -26
  184. package/fesm2015/ptsecurity-mosaic-sidepanel.mjs.map +1 -1
  185. package/fesm2015/ptsecurity-mosaic-splitter.mjs +16 -16
  186. package/fesm2015/ptsecurity-mosaic-table.mjs +7 -7
  187. package/fesm2015/ptsecurity-mosaic-tabs.mjs +53 -53
  188. package/fesm2015/ptsecurity-mosaic-tabs.mjs.map +1 -1
  189. package/fesm2015/ptsecurity-mosaic-tags.mjs +74 -74
  190. package/fesm2015/ptsecurity-mosaic-tags.mjs.map +1 -1
  191. package/fesm2015/ptsecurity-mosaic-textarea.mjs +11 -10
  192. package/fesm2015/ptsecurity-mosaic-textarea.mjs.map +1 -1
  193. package/fesm2015/ptsecurity-mosaic-timepicker.mjs +7 -7
  194. package/fesm2015/ptsecurity-mosaic-toggle.mjs +7 -7
  195. package/fesm2015/ptsecurity-mosaic-tooltip.mjs +17 -16
  196. package/fesm2015/ptsecurity-mosaic-tooltip.mjs.map +1 -1
  197. package/fesm2015/ptsecurity-mosaic-tree-select.mjs +17 -17
  198. package/fesm2015/ptsecurity-mosaic-tree-select.mjs.map +1 -1
  199. package/fesm2015/ptsecurity-mosaic-tree.mjs +158 -155
  200. package/fesm2015/ptsecurity-mosaic-tree.mjs.map +1 -1
  201. package/fesm2020/ptsecurity-mosaic-autocomplete.mjs +13 -13
  202. package/fesm2020/ptsecurity-mosaic-button-toggle.mjs +10 -10
  203. package/fesm2020/ptsecurity-mosaic-button.mjs +32 -24
  204. package/fesm2020/ptsecurity-mosaic-button.mjs.map +1 -1
  205. package/fesm2020/ptsecurity-mosaic-card.mjs +7 -7
  206. package/fesm2020/ptsecurity-mosaic-checkbox.mjs +10 -10
  207. package/fesm2020/ptsecurity-mosaic-core.mjs +89 -81
  208. package/fesm2020/ptsecurity-mosaic-core.mjs.map +1 -1
  209. package/fesm2020/ptsecurity-mosaic-datepicker.mjs +40 -40
  210. package/fesm2020/ptsecurity-mosaic-design-tokens.mjs +218 -80
  211. package/fesm2020/ptsecurity-mosaic-design-tokens.mjs.map +1 -1
  212. package/fesm2020/ptsecurity-mosaic-divider.mjs +7 -7
  213. package/fesm2020/ptsecurity-mosaic-dl.mjs +13 -13
  214. package/fesm2020/ptsecurity-mosaic-dropdown.mjs +19 -19
  215. package/fesm2020/ptsecurity-mosaic-dropdown.mjs.map +1 -1
  216. package/fesm2020/ptsecurity-mosaic-form-field.mjs +57 -38
  217. package/fesm2020/ptsecurity-mosaic-form-field.mjs.map +1 -1
  218. package/fesm2020/ptsecurity-mosaic-icon.mjs +10 -10
  219. package/fesm2020/ptsecurity-mosaic-input.mjs +33 -31
  220. package/fesm2020/ptsecurity-mosaic-input.mjs.map +1 -1
  221. package/fesm2020/ptsecurity-mosaic-link.mjs +7 -7
  222. package/fesm2020/ptsecurity-mosaic-list.mjs +21 -21
  223. package/fesm2020/ptsecurity-mosaic-list.mjs.map +1 -1
  224. package/fesm2020/ptsecurity-mosaic-modal.mjs +29 -29
  225. package/fesm2020/ptsecurity-mosaic-modal.mjs.map +1 -1
  226. package/fesm2020/ptsecurity-mosaic-navbar.mjs +97 -96
  227. package/fesm2020/ptsecurity-mosaic-navbar.mjs.map +1 -1
  228. package/fesm2020/ptsecurity-mosaic-popover.mjs +18 -18
  229. package/fesm2020/ptsecurity-mosaic-popover.mjs.map +1 -1
  230. package/fesm2020/ptsecurity-mosaic-progress-bar.mjs +7 -7
  231. package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs +7 -7
  232. package/fesm2020/ptsecurity-mosaic-radio.mjs +10 -10
  233. package/fesm2020/ptsecurity-mosaic-select.mjs +96 -32
  234. package/fesm2020/ptsecurity-mosaic-select.mjs.map +1 -1
  235. package/fesm2020/ptsecurity-mosaic-sidebar.mjs +13 -13
  236. package/fesm2020/ptsecurity-mosaic-sidepanel.mjs +26 -26
  237. package/fesm2020/ptsecurity-mosaic-sidepanel.mjs.map +1 -1
  238. package/fesm2020/ptsecurity-mosaic-splitter.mjs +16 -16
  239. package/fesm2020/ptsecurity-mosaic-table.mjs +7 -7
  240. package/fesm2020/ptsecurity-mosaic-tabs.mjs +53 -53
  241. package/fesm2020/ptsecurity-mosaic-tabs.mjs.map +1 -1
  242. package/fesm2020/ptsecurity-mosaic-tags.mjs +72 -72
  243. package/fesm2020/ptsecurity-mosaic-tags.mjs.map +1 -1
  244. package/fesm2020/ptsecurity-mosaic-textarea.mjs +11 -10
  245. package/fesm2020/ptsecurity-mosaic-textarea.mjs.map +1 -1
  246. package/fesm2020/ptsecurity-mosaic-timepicker.mjs +7 -7
  247. package/fesm2020/ptsecurity-mosaic-toggle.mjs +7 -7
  248. package/fesm2020/ptsecurity-mosaic-tooltip.mjs +17 -16
  249. package/fesm2020/ptsecurity-mosaic-tooltip.mjs.map +1 -1
  250. package/fesm2020/ptsecurity-mosaic-tree-select.mjs +17 -17
  251. package/fesm2020/ptsecurity-mosaic-tree-select.mjs.map +1 -1
  252. package/fesm2020/ptsecurity-mosaic-tree.mjs +155 -152
  253. package/fesm2020/ptsecurity-mosaic-tree.mjs.map +1 -1
  254. package/form-field/password-hint.d.ts +3 -1
  255. package/input/input-password.d.ts +4 -3
  256. package/input/input.d.ts +4 -3
  257. package/list/list-selection.component.d.ts +1 -1
  258. package/navbar/navbar-item.component.d.ts +18 -18
  259. package/package.json +4 -4
  260. package/prebuilt-themes/dark-theme.css +1 -1
  261. package/prebuilt-themes/default-theme.css +1 -1
  262. package/prebuilt-visual/default-visual.css +1 -1
  263. package/select/public-api.d.ts +1 -0
  264. package/select/select-option.directive.d.ts +20 -0
  265. package/select/select.module.d.ts +9 -7
  266. package/tags/tag.component.d.ts +20 -20
  267. package/textarea/textarea.component.d.ts +4 -3
  268. package/toggle/README.md +0 -0
  269. package/tree/padding.directive.d.ts +7 -5
  270. package/tree/tree-option.component.d.ts +2 -2
  271. package/design-tokens/legacy-2017/tokens/components/alert.json5 +0 -83
  272. package/design-tokens/legacy-2017/tokens/components/autocomplete.json5 +0 -11
  273. package/design-tokens/legacy-2017/tokens/components/badge.json5 +0 -174
  274. package/design-tokens/legacy-2017/tokens/components/button-toggle.json5 +0 -10
  275. package/design-tokens/legacy-2017/tokens/components/button.json5 +0 -143
  276. package/design-tokens/legacy-2017/tokens/components/card.json5 +0 -51
  277. package/design-tokens/legacy-2017/tokens/components/checkbox.json5 +0 -39
  278. package/design-tokens/legacy-2017/tokens/components/datepicker.json5 +0 -64
  279. package/design-tokens/legacy-2017/tokens/components/divider.json5 +0 -8
  280. package/design-tokens/legacy-2017/tokens/components/dl.json5 +0 -38
  281. package/design-tokens/legacy-2017/tokens/components/dropdown.json5 +0 -47
  282. package/design-tokens/legacy-2017/tokens/components/form-field.json5 +0 -91
  283. package/design-tokens/legacy-2017/tokens/components/forms.json5 +0 -52
  284. package/design-tokens/legacy-2017/tokens/components/input.json5 +0 -13
  285. package/design-tokens/legacy-2017/tokens/components/link.json5 +0 -56
  286. package/design-tokens/legacy-2017/tokens/components/list.json5 +0 -15
  287. package/design-tokens/legacy-2017/tokens/components/modal.json5 +0 -79
  288. package/design-tokens/legacy-2017/tokens/components/navbar.json5 +0 -69
  289. package/design-tokens/legacy-2017/tokens/components/optgroup.json5 +0 -10
  290. package/design-tokens/legacy-2017/tokens/components/option.json5 +0 -12
  291. package/design-tokens/legacy-2017/tokens/components/popover.json5 +0 -68
  292. package/design-tokens/legacy-2017/tokens/components/popup.json5 +0 -18
  293. package/design-tokens/legacy-2017/tokens/components/progress-bar.json5 +0 -13
  294. package/design-tokens/legacy-2017/tokens/components/progress-spinner.json5 +0 -7
  295. package/design-tokens/legacy-2017/tokens/components/radio.json5 +0 -44
  296. package/design-tokens/legacy-2017/tokens/components/select.json5 +0 -25
  297. package/design-tokens/legacy-2017/tokens/components/sidepanel.json5 +0 -30
  298. package/design-tokens/legacy-2017/tokens/components/table.json5 +0 -15
  299. package/design-tokens/legacy-2017/tokens/components/tabs.json5 +0 -101
  300. package/design-tokens/legacy-2017/tokens/components/tags.json5 +0 -132
  301. package/design-tokens/legacy-2017/tokens/components/textarea.json5 +0 -12
  302. package/design-tokens/legacy-2017/tokens/components/timepicker.json5 +0 -7
  303. package/design-tokens/legacy-2017/tokens/components/toggle.json5 +0 -79
  304. package/design-tokens/legacy-2017/tokens/components/tooltip.json5 +0 -83
  305. package/design-tokens/legacy-2017/tokens/components/tree.json5 +0 -12
  306. package/design-tokens/legacy-2017/tokens/properties/aliases.json5 +0 -3
  307. package/design-tokens/legacy-2017/tokens/properties/colors.json5 +0 -114
  308. package/design-tokens/legacy-2017/tokens/properties/font.json5 +0 -12
  309. package/design-tokens/legacy-2017/tokens/properties/globals.json5 +0 -49
  310. package/design-tokens/legacy-2017/tokens/properties/padding.json5 +0 -3
  311. package/design-tokens/legacy-2017/tokens/properties/palette.json5 +0 -163
  312. package/design-tokens/legacy-2017/tokens/properties/typography.json5 +0 -140
  313. package/design-tokens/pt-2022/tokens/components/alert.json5 +0 -83
  314. package/design-tokens/pt-2022/tokens/components/autocomplete.json5 +0 -11
  315. package/design-tokens/pt-2022/tokens/components/badge.json5 +0 -174
  316. package/design-tokens/pt-2022/tokens/components/button-toggle.json5 +0 -10
  317. package/design-tokens/pt-2022/tokens/components/button.json5 +0 -143
  318. package/design-tokens/pt-2022/tokens/components/card.json5 +0 -51
  319. package/design-tokens/pt-2022/tokens/components/checkbox.json5 +0 -39
  320. package/design-tokens/pt-2022/tokens/components/datepicker.json5 +0 -64
  321. package/design-tokens/pt-2022/tokens/components/divider.json5 +0 -8
  322. package/design-tokens/pt-2022/tokens/components/dl.json5 +0 -38
  323. package/design-tokens/pt-2022/tokens/components/dropdown.json5 +0 -47
  324. package/design-tokens/pt-2022/tokens/components/form-field.json5 +0 -91
  325. package/design-tokens/pt-2022/tokens/components/forms.json5 +0 -52
  326. package/design-tokens/pt-2022/tokens/components/input.json5 +0 -13
  327. package/design-tokens/pt-2022/tokens/components/link.json5 +0 -56
  328. package/design-tokens/pt-2022/tokens/components/list.json5 +0 -15
  329. package/design-tokens/pt-2022/tokens/components/modal.json5 +0 -79
  330. package/design-tokens/pt-2022/tokens/components/navbar.json5 +0 -69
  331. package/design-tokens/pt-2022/tokens/components/optgroup.json5 +0 -10
  332. package/design-tokens/pt-2022/tokens/components/option.json5 +0 -12
  333. package/design-tokens/pt-2022/tokens/components/popover.json5 +0 -68
  334. package/design-tokens/pt-2022/tokens/components/popup.json5 +0 -18
  335. package/design-tokens/pt-2022/tokens/components/progress-bar.json5 +0 -13
  336. package/design-tokens/pt-2022/tokens/components/progress-spinner.json5 +0 -7
  337. package/design-tokens/pt-2022/tokens/components/radio.json5 +0 -44
  338. package/design-tokens/pt-2022/tokens/components/select.json5 +0 -25
  339. package/design-tokens/pt-2022/tokens/components/sidepanel.json5 +0 -30
  340. package/design-tokens/pt-2022/tokens/components/table.json5 +0 -15
  341. package/design-tokens/pt-2022/tokens/components/tabs.json5 +0 -101
  342. package/design-tokens/pt-2022/tokens/components/tags.json5 +0 -132
  343. package/design-tokens/pt-2022/tokens/components/textarea.json5 +0 -12
  344. package/design-tokens/pt-2022/tokens/components/timepicker.json5 +0 -7
  345. package/design-tokens/pt-2022/tokens/components/toggle.json5 +0 -79
  346. package/design-tokens/pt-2022/tokens/components/tooltip.json5 +0 -83
  347. package/design-tokens/pt-2022/tokens/components/tree.json5 +0 -12
  348. package/design-tokens/pt-2022/tokens/properties/aliases.json5 +0 -3
  349. package/design-tokens/pt-2022/tokens/properties/colors.json5 +0 -116
  350. package/design-tokens/pt-2022/tokens/properties/font.json5 +0 -15
  351. package/design-tokens/pt-2022/tokens/properties/globals.json5 +0 -49
  352. package/design-tokens/pt-2022/tokens/properties/padding.json5 +0 -3
  353. package/design-tokens/pt-2022/tokens/properties/palette.json5 +0 -226
  354. package/design-tokens/pt-2022/tokens/properties/typography.json5 +0 -140
  355. package/design-tokens/style-dictionary/build.js +0 -62
  356. package/design-tokens/style-dictionary/configs/css.js +0 -13
  357. package/design-tokens/style-dictionary/configs/index.js +0 -48
  358. package/design-tokens/style-dictionary/configs/js.js +0 -9
  359. package/design-tokens/style-dictionary/configs/scss.js +0 -23
  360. package/design-tokens/style-dictionary/filters/color.js +0 -7
  361. package/design-tokens/style-dictionary/filters/palette.js +0 -7
  362. package/design-tokens/style-dictionary/filters/size.js +0 -7
  363. package/design-tokens/style-dictionary/filters/typography.js +0 -7
  364. package/design-tokens/style-dictionary/formats/palette.js +0 -25
  365. package/design-tokens/style-dictionary/formats/typography.js +0 -52
  366. package/design-tokens/style-dictionary/transformGroups/css.js +0 -13
  367. package/design-tokens/style-dictionary/transformGroups/scss.js +0 -12
  368. package/design-tokens/style-dictionary/transforms/attribute/palette.js +0 -9
  369. package/design-tokens/style-dictionary/transforms/attribute/prefix.js +0 -11
  370. package/design-tokens/style-dictionary/transforms/attribute/size.js +0 -8
  371. package/design-tokens/style-dictionary/transforms/attribute/typography.js +0 -9
@@ -1,140 +0,0 @@
1
- {
2
- "typography": {
3
- "display-1": {
4
- "font-size": { value: '56px' },
5
- "line-height": { value: '76px' },
6
- "letter-spacing": { value: 'normal' },
7
- "font-weight": { value: 'normal' },
8
- "font-family": { value: '{font.family.accent.value}' },
9
- "text-transform": { value: 'null' }
10
- },
11
- "display-2": {
12
- "font-size": { value: '45px' },
13
- "line-height": { value: '56px' },
14
- "letter-spacing": { value: 'normal' },
15
- "font-weight": { value: 'normal' },
16
- "font-family": { value: '{font.family.accent.value}' },
17
- "text-transform": { value: 'null' }
18
- },
19
- "display-3": {
20
- "font-size": { value: '34px' },
21
- "line-height": { value: '44px' },
22
- "letter-spacing": { value: 'normal' },
23
- "font-weight": { value: 'normal' },
24
- "font-family": { value: '{font.family.accent.value}' },
25
- "text-transform": { value: 'null' }
26
- },
27
- "headline": {
28
- "font-size": { value: '24px' },
29
- "line-height": { value: '32px' },
30
- "letter-spacing": { value: 'normal' },
31
- "font-weight": { value: 'normal' },
32
- "font-family": { value: '{font.family.accent.value}' },
33
- "text-transform": { value: 'null' }
34
- },
35
- "title": {
36
- "font-size": { value: '20px' },
37
- "line-height": { value: '28px' },
38
- "letter-spacing": { value: 'normal' },
39
- "font-weight": { value: '600' },
40
- "font-family": { value: '{font.family.accent.value}' },
41
- "text-transform": { value: 'null' }
42
- },
43
- "subheading": {
44
- "font-size": { value: '15px' },
45
- "line-height": { value: '20px' },
46
- "letter-spacing": { value: '-0.009em' },
47
- "font-weight": { value: '600' },
48
- "font-family": { value: '{font.family.base.value}' },
49
- "text-transform": { value: 'null' }
50
- },
51
- "body": {
52
- "font-size": { value: '15px' },
53
- "line-height": { value: '20px' },
54
- "letter-spacing": { value: '-0.009em' },
55
- "font-weight": { value: 'normal' },
56
- "font-family": { value: '{font.family.base.value}' },
57
- "text-transform": { value: 'null' }
58
- },
59
- "body-strong": {
60
- "font-size": { value: '15px' },
61
- "line-height": { value: '20px' },
62
- "letter-spacing": { value: '-0.009em' },
63
- "font-weight": { value: '500' },
64
- "font-family": { value: '{font.family.base.value}' },
65
- "text-transform": { value: 'null' }
66
- },
67
- "body-caps": {
68
- "font-size": { value: '15px' },
69
- "line-height": { value: '20px' },
70
- "letter-spacing": { value: '1.7px' },
71
- "font-weight": { value: 'normal' },
72
- "font-family": { value: '{font.family.base.value}' },
73
- "text-transform": { value: 'uppercase' }
74
- },
75
- "body-mono": {
76
- "font-size": { value: '15px' },
77
- "line-height": { value: '20px' },
78
- "letter-spacing": { value: 'normal' },
79
- "font-weight": { value: 'normal' },
80
- "font-family": { value: '{font.family.monospace.value}' },
81
- "text-transform": { value: 'null' }
82
- },
83
- "caption": {
84
- "font-size": { value: '13px' },
85
- "line-height": { value: '16px' },
86
- "letter-spacing": { value: '-0.0025em' },
87
- "font-weight": { value: 'normal' },
88
- "font-family": { value: '{font.family.base.value}' },
89
- "text-transform": { value: 'null' }
90
- },
91
- "caption-caps": {
92
- "font-size": { value: '13px' },
93
- "line-height": { value: '16px' },
94
- "letter-spacing": { value: '1.5px' },
95
- "font-weight": { value: 'normal' },
96
- "font-family": { value: '{font.family.base.value}' },
97
- "text-transform": { value: 'uppercase' }
98
- },
99
- "caption-mono": {
100
- "font-size": { value: '13px' },
101
- "line-height": { value: '16px' },
102
- "letter-spacing": { value: 'normal' },
103
- "font-weight": { value: 'normal' },
104
- "font-family": { value: '{font.family.monospace.value}' },
105
- "text-transform": { value: 'null' }
106
- },
107
- "small-text": {
108
- "font-size": { value: '13px' },
109
- "line-height": { value: '16px' },
110
- "letter-spacing": { value: '-0.0025em' },
111
- "font-weight": { value: 'normal' },
112
- "font-family": { value: '{font.family.base.value}' },
113
- "text-transform": { value: 'null' }
114
- },
115
- "extra-small-text": {
116
- "font-size": { value: '11px' },
117
- "line-height": { value: '16px' },
118
- "letter-spacing": { value: '0.005em' },
119
- "font-weight": { value: 'normal' },
120
- "font-family": { value: '{font.family.base.value}' },
121
- "text-transform": { value: 'null' }
122
- },
123
- "extra-small-text-caps": {
124
- "font-size": { value: '11px' },
125
- "line-height": { value: '16px' },
126
- "letter-spacing": { value: '1px' },
127
- "font-weight": { value: 'normal' },
128
- "font-family": { value: '{font.family.base.value}' },
129
- "text-transform": { value: 'uppercase' }
130
- },
131
- "extra-small-text-mono": {
132
- "font-size": { value: '11px' },
133
- "line-height": { value: '16px' },
134
- "letter-spacing": { value: '0px' },
135
- "font-weight": { value: 'normal' },
136
- "font-family": { value: '{font.family.monospace.value}' },
137
- "text-transform": { value: 'null' }
138
- }
139
- }
140
- }
@@ -1,62 +0,0 @@
1
- const StyleDictionary = require('style-dictionary');
2
- const getPlatformConfig = require('./configs');
3
-
4
- // ==== Include custom transforms ====
5
- require('./transforms/attribute/typography')(StyleDictionary);
6
- require('./transforms/attribute/palette')(StyleDictionary);
7
- require('./transforms/attribute/prefix')(StyleDictionary);
8
- require('./transforms/attribute/size')(StyleDictionary);
9
-
10
- // ==== Include custom filters ====
11
- require('./filters/palette')(StyleDictionary);
12
- require('./filters/color')(StyleDictionary);
13
- require('./filters/size')(StyleDictionary);
14
- require('./filters/typography')(StyleDictionary);
15
-
16
- // ==== Include custom transform groups ====
17
- require('./transformGroups/scss')(StyleDictionary);
18
- require('./transformGroups/css')(StyleDictionary);
19
-
20
- // ==== Include custom formats ====
21
- require('./formats/typography')(StyleDictionary);
22
- require('./formats/palette')(StyleDictionary);
23
-
24
- // ==== Run build ====
25
- console.log('Build started...');
26
- console.log('==============================================');
27
-
28
- module.exports = (themeConfig) => {
29
- StyleDictionary.registerFileHeader({
30
- name: 'customHeader',
31
- fileHeader: () => {
32
- return [`Do not edit directly`];
33
- }
34
- });
35
- console.log('themeConfig: ', themeConfig);
36
-
37
- if (!themeConfig || themeConfig.length === 0) {
38
- console.error('Build Failed. Please set ThemeConfig, for example: ', {
39
- name: 'default-theme',
40
- buildPath: [
41
- `packages/mosaic/design-tokens/tokens/properties/**/*.json5`,
42
- `packages/mosaic/design-tokens/tokens/components/**/*.json5`
43
- ],
44
- outputPath: 'packages/mosaic/design-tokens/'
45
- }
46
- )
47
- process.exit(0);
48
- }
49
-
50
- themeConfig.map((platform) => {
51
- // APPLY THE CONFIGURATION
52
- // Very important: the registration of custom transforms
53
- // needs to be done _before_ applying the configuration
54
- const StyleDictionaryExtended = StyleDictionary.extend(getPlatformConfig(platform));
55
-
56
- // FINALLY, BUILD ALL THE PLATFORMS
57
- StyleDictionaryExtended.buildAllPlatforms();
58
- });
59
-
60
- console.log('\n==============================================');
61
- console.log('\nBuild completed!');
62
- }
@@ -1,13 +0,0 @@
1
- module.exports = {
2
- css: {
3
- transformGroup: 'mc/css',
4
- files: [
5
- {
6
- destination: 'css-tokens.css',
7
- format: 'css/variables',
8
- filter: 'size',
9
- prefix: 'mc'
10
- }
11
- ]
12
- }
13
- };
@@ -1,48 +0,0 @@
1
- const merge = require('lodash/merge');
2
-
3
- const scssConfig = require('./scss');
4
- const jsConfig = require('./js');
5
- const cssConfig = require('./css');
6
-
7
- const filterObj = {
8
- options: {
9
- showFileHeader: true,
10
- fileHeader: 'customHeader'
11
- }
12
- };
13
-
14
- function filterOptions(platforms) {
15
- const platformObj = {};
16
-
17
- platforms.map(p => Object.assign(platformObj, p));
18
-
19
- Object.keys(platformObj).forEach((p) => {
20
- platformObj[p].files.map(f => merge(f, filterObj));
21
- });
22
-
23
- return platformObj;
24
- }
25
-
26
- function getSources(theme) {
27
-
28
- return theme.buildPath;
29
- }
30
-
31
- function getConfigs(theme) {
32
-
33
- scssConfig.scss.buildPath = theme.outputPath;
34
- jsConfig.js.buildPath = theme.outputPath;
35
- cssConfig.css.buildPath = theme.outputPath;
36
-
37
- return filterOptions([scssConfig, jsConfig, cssConfig]);
38
- }
39
-
40
- module.exports = (theme) => {
41
-
42
- return {
43
- source: [
44
- ...getSources(theme)
45
- ],
46
- platforms: getConfigs(theme)
47
- };
48
- };
@@ -1,9 +0,0 @@
1
- module.exports = {
2
- js: {
3
- transformGroup: 'js',
4
- files: [{
5
- destination: 'tokens.ts',
6
- format: 'javascript/es6'
7
- }]
8
- }
9
- };
@@ -1,23 +0,0 @@
1
- module.exports = {
2
- scss: {
3
- transformGroup: 'mc/scss',
4
- files: [
5
- {
6
- destination: '_variables.scss',
7
- format: 'scss/variables',
8
- filter: 'color'
9
- },
10
- {
11
- destination: '_palette.scss',
12
- format: 'mc-scss/palette',
13
- filter: 'palette'
14
- },
15
- {
16
- destination: '_typography.scss',
17
- format: 'mc-scss/typography',
18
- mapName: 'mosaic',
19
- filter: 'typography'
20
- }
21
- ]
22
- }
23
- };
@@ -1,7 +0,0 @@
1
- module.exports = (StyleDictionary) => {
2
-
3
- StyleDictionary.registerFilter({
4
- name: 'color',
5
- matcher: (prop) => !prop.attributes.palette && !prop.attributes.typography
6
- })
7
- }
@@ -1,7 +0,0 @@
1
- module.exports = (StyleDictionary) => {
2
-
3
- StyleDictionary.registerFilter({
4
- name: 'palette',
5
- matcher: (prop) => prop.attributes.palette
6
- })
7
- }
@@ -1,7 +0,0 @@
1
- module.exports = (StyleDictionary) => {
2
-
3
- StyleDictionary.registerFilter({
4
- name: 'size',
5
- matcher: (prop) => prop.attributes.size
6
- })
7
- }
@@ -1,7 +0,0 @@
1
- module.exports = (StyleDictionary) => {
2
-
3
- StyleDictionary.registerFilter({
4
- name: 'typography',
5
- matcher: (prop) => prop.attributes.typography
6
- })
7
- }
@@ -1,25 +0,0 @@
1
-
2
- module.exports = (StyleDictionary) => {
3
- StyleDictionary.registerFormat({
4
- name: 'mc-scss/palette',
5
- formatter: function (dictionary) {
6
- return dictionary.allProperties
7
- .map((prop) => `\$${prop.name}: ${getMapFromObj(prop.value)};\n`)
8
- .join('\n');
9
- }
10
- })
11
- };
12
-
13
- function getMapFromObj(object) {
14
- const result = Object.keys(object)
15
- .map((key) => {
16
- if (key === 'contrast') {
17
- return `${key}: ${getMapFromObj(object[key])}`
18
- }
19
-
20
- return `${key}: ${object[key].value},\n`
21
- })
22
- .join('');
23
-
24
- return `(\n${result}\n)`
25
- }
@@ -1,52 +0,0 @@
1
- module.exports = (StyleDictionary) => {
2
-
3
- StyleDictionary.registerFormat({
4
- name: 'mc-scss/typography',
5
- formatter: function(dictionary) {
6
- let string;
7
-
8
- string = dictionary.allProperties
9
- .map((prop) => {
10
- let output = '';
11
-
12
- const value = prop.attributes.category === 'asset' ? `"${ prop.value }"` : prop.value;
13
-
14
- output += `$${ prop.name }: ${ value };`
15
-
16
- if (prop.comment) {
17
- output += ` // ${ prop.comment }`;
18
- }
19
-
20
- output += '\n';
21
-
22
- return output;
23
- })
24
- .join('');
25
-
26
- string += `\n$${this.mapName || 'tokens' }: ${processJsonNode(dictionary.properties, 0)};\n`;
27
-
28
- return string;
29
- }
30
- })
31
- };
32
-
33
-
34
- function processJsonNode(obj, depth) {
35
- let output = '';
36
-
37
- if (obj.hasOwnProperty('value')) {
38
- output += `$${obj.name}`;
39
- } else {
40
- output += '(\n'
41
- output += Object.keys(obj).map((newKey) => {
42
- const newProp = obj[newKey];
43
- const indent = ' '.repeat(depth+1);
44
-
45
- return `${indent}'${newKey}': ${processJsonNode(newProp, depth + 1)}`;
46
- }).join(',\n');
47
-
48
- output += '\n' + ' '.repeat(depth) + ')';
49
- }
50
-
51
- return output;
52
- }
@@ -1,13 +0,0 @@
1
- module.exports = (StyleDictionary) => {
2
-
3
- StyleDictionary.registerTransformGroup({
4
- name: 'mc/css',
5
- transforms: [
6
- 'attribute/cti',
7
- 'mc-attribute/size',
8
- 'name/cti/kebab',
9
- 'color/css',
10
- 'mc/prefix'
11
- ]
12
- });
13
- };
@@ -1,12 +0,0 @@
1
- module.exports = (StyleDictionary) => {
2
-
3
- StyleDictionary.registerTransformGroup({
4
- name: 'mc/scss',
5
- transforms: [
6
- 'attribute/cti',
7
- 'mc-attribute/palette',
8
- 'mc-attribute/typography',
9
- 'name/cti/kebab'
10
- ]
11
- });
12
- }
@@ -1,9 +0,0 @@
1
- module.exports = (StyleDictionary) => {
2
-
3
- StyleDictionary.registerTransform({
4
- name: 'mc-attribute/palette',
5
- type: 'attribute',
6
- matcher: (prop) => prop.name === 'palette',
7
- transformer: (prop) => ({ palette: true })
8
- });
9
- };
@@ -1,11 +0,0 @@
1
- module.exports = (StyleDictionary) => {
2
- StyleDictionary.registerTransform({
3
- name: 'mc/prefix',
4
- type: 'attribute',
5
- transformer: (prop, options) => {
6
- const prefix = options.files[0].prefix ? `${options.files[0].prefix}-` : '';
7
-
8
- prop.name = `${prefix}${prop.name}`;
9
- }
10
- });
11
- };
@@ -1,8 +0,0 @@
1
- module.exports = (StyleDictionary) => {
2
- StyleDictionary.registerTransform({
3
- name: 'mc-attribute/size',
4
- type: 'attribute',
5
- matcher: (prop) => prop.attributes.type === 'size',
6
- transformer: (prop) => ({size: true})
7
- });
8
- }
@@ -1,9 +0,0 @@
1
- module.exports = (StyleDictionary) => {
2
-
3
- StyleDictionary.registerTransform({
4
- name: 'mc-attribute/typography',
5
- type: 'attribute',
6
- matcher: (prop) => prop.attributes.category === 'typography',
7
- transformer: (prop) => ({typography: true})
8
- });
9
- };