@akad/design-system 4.0.2 → 5.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 (362) hide show
  1. package/css/core.css +1 -1
  2. package/css/theme-aon.css +1 -1
  3. package/css/theme-bees.css +1 -1
  4. package/css/theme-bmc.css +1 -1
  5. package/css/theme-default.css +1 -1
  6. package/css/theme-linker.css +1 -1
  7. package/css/theme-oggi.css +1 -1
  8. package/css/theme-streetgo.css +1 -1
  9. package/package.json +13 -4
  10. package/react/react-lib.js +5376 -5010
  11. package/react/react-lib.umd.cjs +5 -5
  12. package/react/src/components/atoms/Badge/Badge.config.d.ts +37 -0
  13. package/react/src/components/atoms/Badge/Badge.d.ts +22 -0
  14. package/react/src/components/atoms/Badge/Badge.stories.d.ts +64 -0
  15. package/react/src/components/atoms/Badge/index.d.ts +4 -0
  16. package/react/src/components/atoms/Button/Button.config.d.ts +11 -34
  17. package/react/src/components/atoms/Button/Button.d.ts +34 -61
  18. package/react/src/components/atoms/Button/Button.stories.d.ts +11 -1
  19. package/react/src/components/atoms/Button/Button.tracking.d.ts +22 -0
  20. package/react/src/components/atoms/Card/Card.config.d.ts +41 -87
  21. package/react/src/components/atoms/Card/Card.d.ts +16 -18
  22. package/react/src/components/atoms/Card/Card.stories.d.ts +13 -47
  23. package/react/src/components/atoms/Checkbox/Checkbox.config.d.ts +19 -25
  24. package/react/src/components/atoms/Checkbox/Checkbox.d.ts +28 -2
  25. package/react/src/components/atoms/Checkbox/Checkbox.stories.d.ts +43 -3
  26. package/react/src/components/atoms/FeedbackMessage/FeedbackMessage.config.d.ts +25 -0
  27. package/react/src/components/atoms/FeedbackMessage/FeedbackMessage.d.ts +25 -0
  28. package/react/src/components/atoms/FeedbackMessage/FeedbackMessage.stories.d.ts +39 -0
  29. package/react/src/components/atoms/FeedbackMessage/index.d.ts +4 -0
  30. package/react/src/components/atoms/HorizontalRule/HorizontalRule.config.d.ts +13 -13
  31. package/react/src/components/atoms/HorizontalRule/HorizontalRule.d.ts +8 -11
  32. package/react/src/components/atoms/HorizontalRule/HorizontalRule.stories.d.ts +2 -2
  33. package/react/src/components/atoms/HorizontalRule/index.d.ts +1 -1
  34. package/react/src/components/atoms/Icon/Icon.config.d.ts +37 -103
  35. package/react/src/components/atoms/Icon/Icon.d.ts +8 -25
  36. package/react/src/components/atoms/Icon/Icon.stories.d.ts +10 -4
  37. package/react/src/components/atoms/IconButton/IconButton.config.d.ts +46 -0
  38. package/react/src/components/atoms/IconButton/IconButton.d.ts +33 -0
  39. package/react/src/components/atoms/IconButton/IconButton.stories.d.ts +17 -0
  40. package/react/src/components/atoms/IconButton/index.d.ts +4 -0
  41. package/react/src/components/atoms/Input/Input.config.d.ts +29 -39
  42. package/react/src/components/atoms/Input/Input.d.ts +34 -15
  43. package/react/src/components/atoms/Input/Input.stories.d.ts +30 -3
  44. package/react/src/components/atoms/Loading/Loading.config.d.ts +18 -26
  45. package/react/src/components/atoms/Loading/Loading.d.ts +13 -15
  46. package/react/src/components/atoms/Loading/Loading.stories.d.ts +22 -1
  47. package/react/src/components/atoms/Radio/Radio.config.d.ts +8 -10
  48. package/react/src/components/atoms/Radio/Radio.d.ts +21 -9
  49. package/react/src/components/atoms/Radio/Radio.stories.d.ts +10 -43
  50. package/react/src/components/atoms/Radio/index.d.ts +1 -1
  51. package/react/src/components/atoms/Select/Select.config.d.ts +9 -14
  52. package/react/src/components/atoms/Select/Select.d.ts +20 -10
  53. package/react/src/components/atoms/Select/Select.stories.d.ts +0 -2
  54. package/react/src/components/atoms/TextArea/TextArea.config.d.ts +30 -43
  55. package/react/src/components/atoms/TextArea/TextArea.d.ts +23 -14
  56. package/react/src/components/atoms/TextArea/TextArea.stories.d.ts +13 -7
  57. package/react/src/components/atoms/Tooltip/Tooltip.config.d.ts +20 -19
  58. package/react/src/components/atoms/Tooltip/Tooltip.d.ts +9 -11
  59. package/react/src/components/atoms/Tooltip/Tooltip.stories.d.ts +14 -37
  60. package/react/src/components/bosons/Container/Container.config.d.ts +8 -0
  61. package/react/src/components/bosons/Container/Container.d.ts +3 -9
  62. package/react/src/components/bosons/Spacer/Spacer.config.d.ts +8 -8
  63. package/react/src/components/bosons/Spacer/Spacer.d.ts +3 -7
  64. package/react/src/components/bosons/Wrapper/Wrapper.config.d.ts +11 -3
  65. package/react/src/components/bosons/Wrapper/Wrapper.d.ts +3 -1
  66. package/react/src/components/index.d.ts +13 -16
  67. package/react/src/components/molecules/Accordion/Accordion.config.d.ts +6 -0
  68. package/react/src/components/molecules/Accordion/Accordion.d.ts +4 -7
  69. package/react/src/components/molecules/Accordion/Accordion.stories.d.ts +10 -2
  70. package/react/src/components/molecules/Accordion/index.d.ts +0 -4
  71. package/react/src/components/molecules/ActiveTags/ActiveTags.config.d.ts +15 -8
  72. package/react/src/components/molecules/ActiveTags/ActiveTags.d.ts +13 -10
  73. package/react/src/components/molecules/ActiveTags/ActiveTags.stories.d.ts +39 -5
  74. package/react/src/components/molecules/Alert/Alert.config.d.ts +54 -0
  75. package/react/src/components/molecules/Alert/Alert.d.ts +34 -0
  76. package/react/src/components/molecules/Alert/Alert.stories.d.ts +217 -0
  77. package/react/src/components/molecules/Alert/index.d.ts +4 -0
  78. package/react/src/components/molecules/Carousel/Carousel.config.d.ts +9 -1
  79. package/react/src/components/molecules/Carousel/Carousel.d.ts +5 -14
  80. package/react/src/components/molecules/Carousel/Carousel.stories.d.ts +31 -0
  81. package/react/src/components/molecules/CheckboxCardGroup/CheckboxCardForm.stories.d.ts +21 -0
  82. package/react/src/components/molecules/{CheckboxCard → CheckboxCardGroup}/CheckboxCardGroup.config.d.ts +25 -18
  83. package/react/src/components/molecules/CheckboxCardGroup/CheckboxCardGroup.d.ts +33 -0
  84. package/react/src/components/molecules/{CheckboxCard → CheckboxCardGroup}/CheckboxCardGroup.stories.d.ts +28 -16
  85. package/react/src/components/molecules/{CheckboxCard → CheckboxCardGroup}/index.d.ts +0 -4
  86. package/react/src/components/molecules/CheckboxGroup/CheckboxGroup.config.d.ts +27 -0
  87. package/react/src/components/molecules/CheckboxGroup/CheckboxGroup.d.ts +37 -0
  88. package/react/src/components/molecules/CheckboxGroup/CheckboxGroup.stories.d.ts +23 -0
  89. package/react/src/components/molecules/CheckboxGroup/index.d.ts +4 -0
  90. package/react/src/components/molecules/Combobox/Combobox.config.d.ts +88 -0
  91. package/react/src/components/molecules/Combobox/Combobox.d.ts +48 -0
  92. package/react/src/components/molecules/Combobox/Combobox.stories.d.ts +61 -0
  93. package/react/src/components/molecules/Combobox/index.d.ts +4 -0
  94. package/react/src/components/molecules/Indicator/Indicator.config.d.ts +4 -4
  95. package/react/src/components/molecules/Indicator/Indicator.d.ts +5 -1
  96. package/react/src/components/molecules/InlineEditable/InlineEditable.config.d.ts +24 -53
  97. package/react/src/components/molecules/InlineEditable/InlineEditable.d.ts +5 -11
  98. package/react/src/components/molecules/InlineEditable/InlineEditable.stories.d.ts +17 -3
  99. package/react/src/components/molecules/InlineEditable/index.d.ts +2 -2
  100. package/react/src/components/molecules/PasswordConfirmation/PasswordConfirmation.config.d.ts +23 -2
  101. package/react/src/components/molecules/PasswordConfirmation/PasswordConfirmation.d.ts +19 -13
  102. package/react/src/components/molecules/PasswordConfirmation/PasswordConfirmation.stories.d.ts +18 -1
  103. package/react/src/components/molecules/ProgressBar/ProgressBar.config.d.ts +45 -0
  104. package/react/src/components/molecules/ProgressBar/ProgressBar.d.ts +23 -0
  105. package/react/src/components/molecules/ProgressBar/ProgressBar.stories.d.ts +33 -0
  106. package/react/src/components/molecules/ProgressBar/index.d.ts +4 -0
  107. package/react/src/components/molecules/RadioCardGroup/RadioCardGroup.config.d.ts +26 -0
  108. package/react/src/components/molecules/RadioCardGroup/RadioCardGroup.d.ts +40 -0
  109. package/react/src/components/molecules/RadioCardGroup/RadioCardGroup.stories.d.ts +20 -0
  110. package/react/src/components/molecules/RadioCardGroup/index.d.ts +4 -0
  111. package/react/src/components/molecules/RadioGroup/RadioGroup.config.d.ts +27 -0
  112. package/react/src/components/molecules/RadioGroup/RadioGroup.d.ts +38 -0
  113. package/react/src/components/molecules/RadioGroup/RadioGroup.stories.d.ts +19 -0
  114. package/react/src/components/molecules/RadioGroup/index.d.ts +4 -0
  115. package/react/src/components/{atoms → molecules}/SegmentControl/SegmentControl.config.d.ts +18 -9
  116. package/react/src/components/molecules/SegmentControl/SegmentControl.d.ts +28 -0
  117. package/react/src/components/molecules/SegmentControl/SegmentControl.stories.d.ts +137 -0
  118. package/react/src/components/molecules/Stepper/Stepper.config.d.ts +39 -4
  119. package/react/src/components/molecules/Stepper/Stepper.d.ts +17 -8
  120. package/react/src/components/molecules/Stepper/Stepper.stories.d.ts +37 -13
  121. package/react/src/components/molecules/Table/Table.config.d.ts +6 -15
  122. package/react/src/components/molecules/Table/Table.d.ts +13 -2
  123. package/react/src/components/molecules/Table/Table.stories.d.ts +1 -1
  124. package/react/src/components/molecules/Tabs/Tabs.config.d.ts +21 -25
  125. package/react/src/components/molecules/Tabs/Tabs.d.ts +6 -9
  126. package/react/src/components/molecules/Tabs/Tabs.stories.d.ts +51 -24
  127. package/react/src/components/molecules/Tabs/index.d.ts +0 -1
  128. package/react/src/components/organisms/Modal/Modal.config.d.ts +21 -0
  129. package/react/src/components/organisms/Modal/Modal.d.ts +25 -0
  130. package/react/src/components/organisms/Modal/Modal.stories.d.ts +74 -0
  131. package/react/src/components/organisms/NotificationList/NotificationList.d.ts +6 -11
  132. package/react/src/components/propLeakage.test.d.ts +1 -0
  133. package/react/src/components/{molecules → providers}/ThemeProvider/ThemeProvider.config.d.ts +11 -6
  134. package/react/src/components/providers/ThemeProvider/ThemeProvider.d.ts +12 -0
  135. package/react/src/components/providers/ThemeProvider/ThemeProvider.stories.d.ts +17 -0
  136. package/react/src/components/providers/ThemeProvider/ThemeProvider.test.d.ts +1 -0
  137. package/react/src/components/providers/ThemeProvider/index.d.ts +4 -0
  138. package/react/src/components/templates/TwoColumns/TwoColumns.d.ts +6 -13
  139. package/react/src/components/{atoms/Caption/Caption.stories.d.ts → templates/TwoColumns/TwoColumns.stories.d.ts} +2 -3
  140. package/react/src/enum/layoutTag.d.ts +10 -0
  141. package/react/src/helpers/feedbackMessage.d.ts +22 -0
  142. package/react/src/helpers/feedbackMessage.test.d.ts +1 -0
  143. package/react/src/helpers/testId.d.ts +7 -0
  144. package/react/src/helpers/testId.test.d.ts +1 -0
  145. package/react/src/helpers/useInternalValue.d.ts +23 -0
  146. package/react/src/helpers/useInternalValue.test.d.ts +1 -0
  147. package/scss/core/README.md +56 -0
  148. package/scss/core/base/typography.scss +3 -4
  149. package/scss/core/components/atoms/badge.scss +116 -0
  150. package/scss/core/components/atoms/button.scss +94 -797
  151. package/scss/core/components/atoms/card.scss +74 -126
  152. package/scss/core/components/atoms/checkbox.scss +110 -47
  153. package/scss/core/components/atoms/feedback-message.scss +38 -0
  154. package/scss/core/components/atoms/horizontal-rule.scss +4 -5
  155. package/scss/core/components/atoms/icon-button.scss +18 -0
  156. package/scss/core/components/atoms/icon.scss +53 -38
  157. package/scss/core/components/atoms/input.scss +248 -259
  158. package/scss/core/components/atoms/loading.scss +133 -77
  159. package/scss/core/components/atoms/radio.scss +84 -100
  160. package/scss/core/components/atoms/select.scss +151 -176
  161. package/scss/core/components/atoms/textarea.scss +154 -281
  162. package/scss/core/components/atoms/tooltip.scss +129 -149
  163. package/scss/core/components/bosons/caption.scss +10 -0
  164. package/scss/core/components/bosons/container.scss +5 -1
  165. package/scss/core/components/bosons/flex.scss +121 -0
  166. package/scss/core/components/bosons/grid.scss +39 -43
  167. package/scss/core/components/bosons/heading.scss +29 -0
  168. package/scss/core/components/bosons/label.scss +21 -0
  169. package/scss/core/components/bosons/paragraph.scss +62 -0
  170. package/scss/core/components/bosons/spacer.scss +6 -34
  171. package/scss/core/components/bosons/subtitle.scss +9 -0
  172. package/scss/core/components/bosons/wrapper.scss +10 -2
  173. package/scss/core/components/index.scss +19 -17
  174. package/scss/core/components/molecules/accordion.scss +42 -48
  175. package/scss/core/components/molecules/active-tags.scss +102 -28
  176. package/scss/core/components/molecules/alert.scss +145 -0
  177. package/scss/core/components/molecules/carousel.scss +4 -4
  178. package/scss/core/components/molecules/checkbox-card-group.scss +280 -0
  179. package/scss/core/components/molecules/checkbox-group.scss +39 -0
  180. package/scss/core/components/molecules/combobox.scss +158 -0
  181. package/scss/core/components/molecules/indicator.scss +4 -6
  182. package/scss/core/components/molecules/inline-editable.scss +6 -8
  183. package/scss/core/components/molecules/password-confirmation.scss +11 -7
  184. package/scss/core/components/molecules/progress-bar.scss +85 -0
  185. package/scss/core/components/molecules/radio-card-group.scss +228 -0
  186. package/scss/core/components/molecules/radio-group.scss +45 -0
  187. package/scss/core/components/molecules/segment-control.scss +150 -0
  188. package/scss/core/components/molecules/stepper.scss +130 -57
  189. package/scss/core/components/molecules/table.scss +19 -18
  190. package/scss/core/components/molecules/tabs.scss +37 -215
  191. package/scss/core/components/organisms/modal.scss +68 -0
  192. package/scss/core/components/organisms/notification-list.scss +17 -17
  193. package/scss/core/components/templates/two-columns.scss +6 -6
  194. package/scss/core/functions/breakpoints.scss +4 -11
  195. package/scss/core/functions/index.scss +0 -3
  196. package/scss/core/functions/primitive.scss +68 -0
  197. package/scss/core/helpers/colors.scss +56 -187
  198. package/scss/core/helpers/display.scss +0 -148
  199. package/scss/core/helpers/index.scss +0 -1
  200. package/scss/core/helpers/order.scss +6 -4
  201. package/scss/core/index.scss +1 -1
  202. package/scss/core/mixins/breakpoints.scss +9 -47
  203. package/scss/core/mixins/choice.scss +88 -0
  204. package/scss/core/mixins/colors.scss +40 -0
  205. package/scss/core/mixins/index.scss +3 -2
  206. package/scss/core/mixins/typography.scss +22 -0
  207. package/scss/core/{tokens → primitives}/borders.scss +13 -14
  208. package/scss/core/primitives/breakpoints.scss +14 -0
  209. package/scss/core/primitives/colors.scss +174 -0
  210. package/scss/core/primitives/font.scss +34 -0
  211. package/scss/core/primitives/index.scss +8 -0
  212. package/scss/core/primitives/opacity.scss +40 -0
  213. package/scss/core/primitives/shadows.scss +36 -0
  214. package/scss/core/primitives/sizes.scss +28 -0
  215. package/scss/core/primitives/spacings.scss +28 -0
  216. package/scss/core/tokens/breakpoints.scss +12 -19
  217. package/scss/core/tokens/colors.scss +109 -0
  218. package/scss/core/tokens/font.scss +27 -0
  219. package/scss/core/tokens/index.scss +6 -6
  220. package/scss/core/tokens/sizes.scss +33 -0
  221. package/scss/core/tokens/spacings.scss +31 -39
  222. package/scss/core/tokens/typography.scss +144 -19
  223. package/scss/index.scss +7 -0
  224. package/scss/themes/aon/index.scss +76 -41
  225. package/scss/themes/aon/primitives.scss +35 -0
  226. package/scss/themes/bees/index.scss +52 -34
  227. package/scss/themes/bees/primitives.scss +19 -0
  228. package/scss/themes/bmc/index.scss +77 -42
  229. package/scss/themes/bmc/primitives.scss +33 -0
  230. package/scss/themes/default/index.scss +15 -59
  231. package/scss/themes/linker/index.scss +36 -17
  232. package/scss/themes/linker/primitives.scss +14 -0
  233. package/scss/themes/oggi/index.scss +77 -42
  234. package/scss/themes/oggi/primitives.scss +35 -0
  235. package/scss/themes/streetgo/index.scss +77 -42
  236. package/scss/themes/streetgo/primitives.scss +34 -0
  237. package/react/src/components/atoms/Caption/Caption.config.d.ts +0 -6
  238. package/react/src/components/atoms/Caption/Caption.d.ts +0 -18
  239. package/react/src/components/atoms/Caption/index.d.ts +0 -4
  240. package/react/src/components/atoms/Chip/Chip.config.d.ts +0 -43
  241. package/react/src/components/atoms/Chip/Chip.d.ts +0 -15
  242. package/react/src/components/atoms/Chip/Chip.stories.d.ts +0 -33
  243. package/react/src/components/atoms/Chip/index.d.ts +0 -4
  244. package/react/src/components/atoms/Heading/Heading.config.d.ts +0 -22
  245. package/react/src/components/atoms/Heading/Heading.d.ts +0 -19
  246. package/react/src/components/atoms/Heading/Heading.stories.d.ts +0 -48
  247. package/react/src/components/atoms/Heading/index.d.ts +0 -4
  248. package/react/src/components/atoms/Option/Option.config.d.ts +0 -53
  249. package/react/src/components/atoms/Option/Option.d.ts +0 -30
  250. package/react/src/components/atoms/Option/Option.stories.d.ts +0 -12
  251. package/react/src/components/atoms/Option/index.d.ts +0 -4
  252. package/react/src/components/atoms/Paragraph/Paragraph.config.d.ts +0 -19
  253. package/react/src/components/atoms/Paragraph/Paragraph.d.ts +0 -19
  254. package/react/src/components/atoms/Paragraph/Paragraph.stories.d.ts +0 -21
  255. package/react/src/components/atoms/Paragraph/index.d.ts +0 -4
  256. package/react/src/components/atoms/Progress/Progress.config.d.ts +0 -62
  257. package/react/src/components/atoms/Progress/Progress.d.ts +0 -16
  258. package/react/src/components/atoms/Progress/Progress.stories.d.ts +0 -17
  259. package/react/src/components/atoms/Progress/index.d.ts +0 -4
  260. package/react/src/components/atoms/SegmentControl/SegmentControl.d.ts +0 -18
  261. package/react/src/components/atoms/SegmentControl/SegmentControl.stories.d.ts +0 -73
  262. package/react/src/components/atoms/Subtitle/Subtitle.config.d.ts +0 -18
  263. package/react/src/components/atoms/Subtitle/Subtitle.d.ts +0 -13
  264. package/react/src/components/atoms/Subtitle/Subtitle.stories.d.ts +0 -23
  265. package/react/src/components/atoms/Subtitle/index.d.ts +0 -4
  266. package/react/src/components/bosons/FlexLayout/FlexElement.config.d.ts +0 -20
  267. package/react/src/components/bosons/FlexLayout/FlexElement.d.ts +0 -27
  268. package/react/src/components/bosons/FlexLayout/FlexLayout.config.d.ts +0 -95
  269. package/react/src/components/bosons/FlexLayout/FlexLayout.d.ts +0 -28
  270. package/react/src/components/bosons/FlexLayout/FlexLayout.stories.d.ts +0 -20
  271. package/react/src/components/bosons/FlexLayout/index.d.ts +0 -8
  272. package/react/src/components/bosons/GridLayout/GridElement.config.d.ts +0 -17
  273. package/react/src/components/bosons/GridLayout/GridElement.d.ts +0 -14
  274. package/react/src/components/bosons/GridLayout/GridElement.test.d.ts +0 -1
  275. package/react/src/components/bosons/GridLayout/GridLayout.config.d.ts +0 -80
  276. package/react/src/components/bosons/GridLayout/GridLayout.d.ts +0 -29
  277. package/react/src/components/bosons/GridLayout/GridLayout.stories.d.ts +0 -12
  278. package/react/src/components/bosons/GridLayout/index.d.ts +0 -8
  279. package/react/src/components/molecules/Accordion/AccordionItem.config.d.ts +0 -28
  280. package/react/src/components/molecules/Accordion/AccordionItem.d.ts +0 -20
  281. package/react/src/components/molecules/CheckboxCard/CheckboxCard.config.d.ts +0 -70
  282. package/react/src/components/molecules/CheckboxCard/CheckboxCard.d.ts +0 -21
  283. package/react/src/components/molecules/CheckboxCard/CheckboxCard.stories.d.ts +0 -135
  284. package/react/src/components/molecules/CheckboxCard/CheckboxCardForm.stories.d.ts +0 -36
  285. package/react/src/components/molecules/CheckboxCard/CheckboxCardGroup.d.ts +0 -34
  286. package/react/src/components/molecules/EditableSelect/EditableSelect.config.d.ts +0 -114
  287. package/react/src/components/molecules/EditableSelect/EditableSelect.d.ts +0 -134
  288. package/react/src/components/molecules/EditableSelect/EditableSelect.stories.d.ts +0 -24
  289. package/react/src/components/molecules/EditableSelect/EditableSelect.utils.d.ts +0 -15
  290. package/react/src/components/molecules/EditableSelect/index.d.ts +0 -4
  291. package/react/src/components/molecules/Modal/Modal.config.d.ts +0 -44
  292. package/react/src/components/molecules/Modal/Modal.d.ts +0 -31
  293. package/react/src/components/molecules/Modal/Modal.stories.d.ts +0 -45
  294. package/react/src/components/molecules/Notification/Notification.config.d.ts +0 -64
  295. package/react/src/components/molecules/Notification/Notification.d.ts +0 -22
  296. package/react/src/components/molecules/Notification/Notification.stories.d.ts +0 -95
  297. package/react/src/components/molecules/Notification/index.d.ts +0 -4
  298. package/react/src/components/molecules/Table/TableRow.d.ts +0 -7
  299. package/react/src/components/molecules/Tabs/Tab.d.ts +0 -5
  300. package/react/src/components/molecules/Tabs/types.d.ts +0 -23
  301. package/react/src/components/molecules/ThemeProvider/ThemeProvider.d.ts +0 -17
  302. package/react/src/components/molecules/ThemeProvider/index.d.ts +0 -4
  303. package/react/src/components/templates/SplitLayout/SplitLayout.config.d.ts +0 -7
  304. package/react/src/components/templates/SplitLayout/SplitLayout.d.ts +0 -9
  305. package/react/src/components/templates/SplitLayout/index.d.ts +0 -5
  306. package/react/src/enum/colorProps.d.ts +0 -30
  307. package/scss/core/components/atoms/caption.scss +0 -13
  308. package/scss/core/components/atoms/chip.scss +0 -101
  309. package/scss/core/components/atoms/heading.scss +0 -70
  310. package/scss/core/components/atoms/option.scss +0 -78
  311. package/scss/core/components/atoms/paragraph.scss +0 -44
  312. package/scss/core/components/atoms/progress.scss +0 -16
  313. package/scss/core/components/atoms/radio-card.scss +0 -117
  314. package/scss/core/components/atoms/segment-control.scss +0 -143
  315. package/scss/core/components/atoms/subtitle.scss +0 -21
  316. package/scss/core/components/bosons/flex-layout.scss +0 -45
  317. package/scss/core/components/bosons/grid-layout.scss +0 -76
  318. package/scss/core/components/molecules/checkbox-card.scss +0 -480
  319. package/scss/core/components/molecules/editable-select.scss +0 -145
  320. package/scss/core/components/molecules/modal.scss +0 -70
  321. package/scss/core/components/molecules/notification.scss +0 -109
  322. package/scss/core/components/templates/split-layout.scss +0 -51
  323. package/scss/core/functions/fonts.scss +0 -17
  324. package/scss/core/functions/spacings.scss +0 -8
  325. package/scss/core/functions/tokens.scss +0 -14
  326. package/scss/core/helpers/elevation.scss +0 -16
  327. package/scss/core/tokens/icons.scss +0 -2
  328. package/scss/core/tokens/opacity.scss +0 -6
  329. package/scss/core/tokens/shadows.scss +0 -15
  330. package/scss/themes/aon/colors.scss +0 -83
  331. package/scss/themes/bees/colors.scss +0 -32
  332. package/scss/themes/bmc/colors.scss +0 -81
  333. package/scss/themes/default/colors.scss +0 -109
  334. package/scss/themes/linker/colors.scss +0 -35
  335. package/scss/themes/oggi/colors.scss +0 -81
  336. package/scss/themes/streetgo/colors.scss +0 -81
  337. /package/react/src/components/atoms/{Caption/Caption.test.d.ts → Badge/Badge.test.d.ts} +0 -0
  338. /package/react/src/components/atoms/{Chip/Chip.test.d.ts → FeedbackMessage/FeedbackMessage.test.d.ts} +0 -0
  339. /package/react/src/components/atoms/{Heading/Heading.test.d.ts → IconButton/IconButton.test.d.ts} +0 -0
  340. /package/react/src/components/atoms/Input/{mask.d.ts → Input.mask.d.ts} +0 -0
  341. /package/react/src/components/{atoms/Option/Option.test.d.ts → classesNoCss.test.d.ts} +0 -0
  342. /package/react/src/components/{atoms/Paragraph/Paragraph.test.d.ts → commonProps.test.d.ts} +0 -0
  343. /package/react/src/components/{atoms/Progress/Progress.test.d.ts → feedbackMessage.test.d.ts} +0 -0
  344. /package/react/src/components/{atoms/SegmentControl/index.test.d.ts → index.test.d.ts} +0 -0
  345. /package/react/src/components/{atoms/SegmentControl/SegmentControl.test.d.ts → messageRegion.test.d.ts} +0 -0
  346. /package/react/src/components/{atoms/Subtitle/Subtitle.test.d.ts → molecules/Alert/Alert.test.d.ts} +0 -0
  347. /package/react/src/components/molecules/{CheckboxCard → CheckboxCardGroup}/CheckboxCardGroup.test.d.ts +0 -0
  348. /package/react/src/components/{bosons/FlexLayout/FlexLayout.test.d.ts → molecules/CheckboxCardGroup/index.test.d.ts} +0 -0
  349. /package/react/src/components/{bosons/GridLayout/GridLayout.test.d.ts → molecules/CheckboxGroup/CheckboxGroup.test.d.ts} +0 -0
  350. /package/react/src/components/molecules/{CheckboxCard/CheckboxCard.test.d.ts → Combobox/Combobox.a11y.test.d.ts} +0 -0
  351. /package/react/src/components/molecules/{EditableSelect/EditableSelect.test.d.ts → Combobox/Combobox.test.d.ts} +0 -0
  352. /package/react/src/components/molecules/{EditableSelect/EditableSelect.utils.test.d.ts → PasswordConfirmation/PasswordConfirmation.test.d.ts} +0 -0
  353. /package/react/src/components/molecules/{Notification/Notification.test.d.ts → ProgressBar/ProgressBar.test.d.ts} +0 -0
  354. /package/react/src/components/molecules/{PasswordConfirmation/PasswordConfirmartion.test.d.ts → RadioCardGroup/RadioCardGroup.test.d.ts} +0 -0
  355. /package/react/src/components/molecules/{Tabs/Tab.test.d.ts → RadioGroup/RadioGroup.test.d.ts} +0 -0
  356. /package/react/src/components/molecules/{ThemeProvider/ThemeProvider.test.d.ts → SegmentControl/SegmentControl.test.d.ts} +0 -0
  357. /package/react/src/components/{atoms → molecules}/SegmentControl/index.d.ts +0 -0
  358. /package/react/src/components/{templates/SplitLayout/SplitLayout.test.d.ts → molecules/SegmentControl/index.test.d.ts} +0 -0
  359. /package/react/src/components/molecules/Table/{dataTable.mock.d.ts → Table.mock.d.ts} +0 -0
  360. /package/react/src/components/{molecules → organisms}/Modal/Modal.test.d.ts +0 -0
  361. /package/react/src/components/{molecules → organisms}/Modal/index.d.ts +0 -0
  362. /package/scss/core/components/{molecules → providers}/theme-provider.scss +0 -0
@@ -1,194 +1,63 @@
1
1
  // Color utilities (uses CSS vars - dynamic theming)
2
-
3
- // Color shades (variant keys for generating utilities)
4
- $brand-color-shades: (
5
- 'darker',
6
- 'dark',
7
- 'default',
8
- 'light',
9
- 'lighter',
10
- 'lightest'
11
- ); // 6 shades for primary/secondary
12
- $semantic-color-shades: (
13
- 'dark',
2
+ @use 'sass:list';
3
+ @use 'sass:map';
4
+
5
+ $bg-groups: (
6
+ 'surface',
7
+ 'border',
8
+ 'primary',
9
+ 'secondary',
10
+ 'success',
11
+ 'destructive',
12
+ 'warning',
13
+ 'info',
14
+ 'chart'
15
+ );
16
+ $on-emphasis-tokens: ('default', 'pressed', 'hover-solid');
17
+ $warning-on-emphasis-tokens: ('emphasis');
18
+ $border-bg-tokens: (
14
19
  'default',
15
- 'light',
16
- 'lighter'
17
- ); // 4 shades for success/warning/danger/info
18
- $neutral-scale: (
19
- '00',
20
- '05',
21
- '10',
22
- '20',
23
- '30',
24
- '40',
25
- '50',
26
- '60',
27
- '70',
28
- '80',
29
- '90',
30
- '100'
31
- ); // 12-point neutral scale
32
-
33
- // Generate primary utilities
34
- @each $variant in $brand-color-shades {
35
- .color__primary--#{$variant} {
36
- // Use base variable for 'default', suffixed variable for others
37
- @if $variant == 'default' {
38
- color: var(--color__primary);
39
- } @else {
40
- color: var(--color__primary--#{$variant});
41
- }
42
- }
43
- .bg-color__primary--#{$variant} {
44
- @if $variant == 'default' {
45
- background-color: var(--color__primary);
46
- } @else {
47
- background-color: var(--color__primary--#{$variant});
48
- }
49
-
50
- // Automatic contrast color (maintains old-default behavior)
51
- @if index(('darker', 'dark', 'default'), $variant) {
52
- color: var(--color__neutral--10); // Light text on dark bg
53
- } @else {
54
- color: var(--color__neutral--90); // Dark text on light bg
55
- }
56
- }
57
- }
58
-
59
- // Aliases without --default for backward compatibility
60
- .color__primary {
61
- color: var(--color__primary);
62
- }
63
-
64
- .bg-color__primary {
65
- background-color: var(--color__primary);
66
- color: var(--color__neutral--10); // Automatic contrast color
67
- }
68
-
69
- // Generate secondary utilities
70
- @each $variant in $brand-color-shades {
71
- .color__secondary--#{$variant} {
72
- // Use base variable for 'default', suffixed variable for others
73
- @if $variant == 'default' {
74
- color: var(--color__secondary);
75
- } @else {
76
- color: var(--color__secondary--#{$variant});
77
- }
78
- }
79
- .bg-color__secondary--#{$variant} {
80
- @if $variant == 'default' {
81
- background-color: var(--color__secondary);
82
- } @else {
83
- background-color: var(--color__secondary--#{$variant});
84
- }
85
-
86
- // Automatic contrast color (maintains old-default behavior)
87
- @if index(('darker', 'dark', 'default'), $variant) {
88
- color: var(--color__neutral--10); // Light text on dark bg
89
- } @else {
90
- color: var(--color__neutral--90); // Dark text on light bg
91
- }
92
- }
93
- }
94
-
95
- // Aliases without --default
96
- .color__secondary {
97
- color: var(--color__secondary);
98
- }
99
-
100
- .bg-color__secondary {
101
- background-color: var(--color__secondary);
102
- color: var(--color__neutral--10); // Automatic contrast color
103
- }
104
-
105
- // Generate neutral utilities
106
- @each $variant in $neutral-scale {
107
- .color__neutral--#{$variant} {
108
- color: var(--color__neutral--#{$variant});
109
- }
110
- .bg-color__neutral--#{$variant} {
111
- background-color: var(--color__neutral--#{$variant});
112
-
113
- // Automatic contrast color (maintains old-default behavior)
114
- @if index(('90', '80', '60'), $variant) {
115
- color: var(--color__neutral--10); // Light text on dark bg
116
- } @else if index(('40', '20', '10', '05', '00'), $variant) {
117
- color: var(--color__neutral--90); // Dark text on light bg
118
- } @else {
119
- color: var(--color__neutral--80); // Medium gray - dark text
120
- }
121
- }
122
-
123
- // Aliases with single hyphen (React uses 'neutral-90' not 'neutral--90')
124
- .color__neutral-#{$variant} {
125
- color: var(--color__neutral--#{$variant});
126
- }
127
- .bg-color__neutral-#{$variant} {
128
- background-color: var(--color__neutral--#{$variant});
129
-
130
- // Automatic contrast color (same logic as double-hyphen version)
131
- @if index(('90', '80', '60'), $variant) {
132
- color: var(--color__neutral--10); // Light text on dark bg
133
- } @else if index(('40', '20', '10', '05', '00'), $variant) {
134
- color: var(--color__neutral--90); // Dark text on light bg
135
- } @else {
136
- color: var(--color__neutral--80); // Medium gray - dark text
137
- }
138
- }
139
- }
140
-
141
- // Generate success, warning, danger, info utilities
142
- @each $semantic in ('success', 'warning', 'danger', 'info') {
143
- @each $variant in $semantic-color-shades {
144
- .color__#{$semantic}--#{$variant} {
145
- // Use base variable for 'default', suffixed variable for others
146
- @if $variant == 'default' {
147
- color: var(--color__#{$semantic});
148
- } @else {
149
- color: var(--color__#{$semantic}--#{$variant});
150
- }
151
- }
152
- .bg-color__#{$semantic}--#{$variant} {
153
- @if $variant == 'default' {
154
- background-color: var(--color__#{$semantic});
155
- } @else {
156
- background-color: var(--color__#{$semantic}--#{$variant});
157
- }
158
-
159
- // Automatic contrast color (maintains old-default behavior)
160
- @if $semantic == 'success' or $semantic == 'danger' or $semantic == 'info'
161
- {
162
- @if index(('dark', 'default'), $variant) {
163
- color: var(--color__neutral--10); // Light text on dark bg
164
- } @else {
165
- color: var(--color__neutral--90); // Dark text on light bg
166
- }
167
- } @else if $semantic == 'warning' {
168
- // Warning colors are lighter, use dark text for most
169
- @if $variant == 'dark' {
170
- color: var(--color__neutral--90); // Dark text
171
- } @else {
172
- color: var(--color__neutral--90); // Dark text on warning colors
20
+ 'muted',
21
+ 'disabled',
22
+ 'subtle',
23
+ 'strong',
24
+ 'darker'
25
+ );
26
+ $border-dark-tokens: ('subtle', 'strong', 'darker');
27
+
28
+ @each $token in map.keys(map.get($colors__semantic, 'foreground')) {
29
+ .color__foreground--#{$token} {
30
+ color: var(--color__foreground--#{$token});
31
+ }
32
+ }
33
+
34
+ @each $group in $bg-groups {
35
+ @each $token in map.keys(map.get($colors__semantic, $group)) {
36
+ $text: null;
37
+
38
+ @if $group == 'border' and not list.index($border-bg-tokens, $token) {
39
+ // sem helper de fundo (border--primary etc.)
40
+ } @else if $group == 'border' {
41
+ $text: if(list.index($border-dark-tokens, $token), 'inverse', 'default');
42
+ } @else if $group == 'surface' {
43
+ $text: if($token == 'inverse', 'inverse', 'default');
44
+ } @else if $group != 'chart' {
45
+ $solid-tokens: if(
46
+ $group == 'warning',
47
+ $warning-on-emphasis-tokens,
48
+ $on-emphasis-tokens
49
+ );
50
+ $text: if(list.index($solid-tokens, $token), 'on-emphasis', 'default');
51
+ }
52
+
53
+ @if not($group == 'border' and not list.index($border-bg-tokens, $token)) {
54
+ .bg-color__#{$group}--#{$token} {
55
+ background-color: var(--color__#{$group}--#{$token});
56
+
57
+ @if $text {
58
+ color: var(--color__foreground--#{$text});
173
59
  }
174
60
  }
175
61
  }
176
62
  }
177
-
178
- // Aliases without --default
179
- .color__#{$semantic} {
180
- color: var(--color__#{$semantic});
181
- }
182
- .bg-color__#{$semantic} {
183
- background-color: var(--color__#{$semantic});
184
-
185
- // Automatic contrast color for base semantic colors
186
- @if $semantic == 'success' or $semantic == 'danger' or $semantic == 'info' {
187
- color: var(--color__neutral--10); // Light text (these are typically dark)
188
- } @else if $semantic == 'warning' {
189
- color: var(
190
- --color__neutral--90
191
- ); // Dark text (warning is typically light)
192
- }
193
- }
194
63
  }
@@ -3,80 +3,6 @@
3
3
  display: block;
4
4
  }
5
5
 
6
- &-flex {
7
- display: flex;
8
-
9
- &__direction {
10
- &--column {
11
- flex-direction: column;
12
- }
13
-
14
- &--column-reverse {
15
- flex-direction: column-reverse;
16
- }
17
-
18
- &--row {
19
- flex-direction: row;
20
- }
21
-
22
- &--row-reverse {
23
- flex-direction: row-reverse;
24
- }
25
- }
26
-
27
- &__gap {
28
- @each $space, $value in $spacing {
29
- &--#{$space} {
30
- gap: #{$value};
31
- }
32
- }
33
- }
34
-
35
- &__align {
36
- &--start {
37
- align-items: flex-start;
38
- }
39
-
40
- &--center {
41
- align-items: center;
42
- }
43
-
44
- &--end {
45
- align-items: flex-end;
46
- }
47
-
48
- &--stretch {
49
- align-items: stretch;
50
- }
51
- }
52
-
53
- &__justify {
54
- &--start {
55
- justify-content: flex-start;
56
- }
57
-
58
- &--center {
59
- justify-content: center;
60
- }
61
-
62
- &--end {
63
- justify-content: flex-end;
64
- }
65
-
66
- &--beetwen {
67
- justify-content: space-between;
68
- }
69
-
70
- &--around {
71
- justify-content: space-around;
72
- }
73
-
74
- &--evenly {
75
- justify-content: space-evenly;
76
- }
77
- }
78
- }
79
-
80
6
  &-inline-block {
81
7
  display: inline-block;
82
8
  }
@@ -92,80 +18,6 @@
92
18
  display: block;
93
19
  }
94
20
 
95
- &-flex {
96
- display: flex;
97
-
98
- &__direction {
99
- &--column {
100
- flex-direction: column;
101
- }
102
-
103
- &--column-reverse {
104
- flex-direction: column-reverse;
105
- }
106
-
107
- &--row {
108
- flex-direction: row;
109
- }
110
-
111
- &--row-reverse {
112
- flex-direction: row-reverse;
113
- }
114
- }
115
-
116
- &__gap {
117
- @each $space, $value in $spacing {
118
- &--#{$space} {
119
- gap: #{$value};
120
- }
121
- }
122
- }
123
-
124
- &__align {
125
- &--start {
126
- align-items: flex-start;
127
- }
128
-
129
- &--center {
130
- align-items: center;
131
- }
132
-
133
- &--end {
134
- align-items: flex-end;
135
- }
136
-
137
- &--stretch {
138
- align-items: stretch;
139
- }
140
- }
141
-
142
- &__justify {
143
- &--start {
144
- justify-content: flex-start;
145
- }
146
-
147
- &--center {
148
- justify-content: center;
149
- }
150
-
151
- &--end {
152
- justify-content: flex-end;
153
- }
154
-
155
- &--beetwen {
156
- justify-content: space-between;
157
- }
158
-
159
- &--around {
160
- justify-content: space-around;
161
- }
162
-
163
- &--evenly {
164
- justify-content: space-evenly;
165
- }
166
- }
167
- }
168
-
169
21
  &-inline-block {
170
22
  display: inline-block;
171
23
  }
@@ -2,4 +2,3 @@
2
2
  @import 'colors';
3
3
  @import 'display';
4
4
  @import 'order';
5
- @import 'elevation';
@@ -1,3 +1,5 @@
1
+ @use 'sass:map';
2
+
1
3
  $columns: 12 !default;
2
4
 
3
5
  @for $i from 1 through $columns {
@@ -6,11 +8,11 @@ $columns: 12 !default;
6
8
  }
7
9
  }
8
10
 
9
- @each $breakpoint in map-keys($grid-breakpoints) {
10
- $min: device-min($breakpoint, $grid-breakpoints);
11
- $label: if($min, $breakpoint + '-', '');
11
+ @each $name in map.keys($breakpoint) {
12
+ $min: device-min($name);
13
+ $label: if($min, $name + '-', '');
12
14
 
13
- @include device-up($breakpoint, $grid-breakpoints) {
15
+ @include device-up($name) {
14
16
  @for $i from 1 through $columns {
15
17
  .order--#{$label}#{$i} {
16
18
  order: #{$i};
@@ -1,7 +1,7 @@
1
1
  // ===== CORE STYLES (independente de tema) =====
2
2
  // Entry point for core.css build
3
3
 
4
- // 1. Tokens estruturais (compilados - performance)
4
+ @import 'primitives';
5
5
  @import 'tokens';
6
6
 
7
7
  // 2. Functions & Mixins estruturais
@@ -3,28 +3,30 @@
3
3
  *
4
4
  * Usage:
5
5
  * .class {
6
- * @include small {
6
+ * @include mobile {
7
7
  * padding: 0 20px;
8
8
  * }
9
- * @include mobile {
9
+ * @include device-up('md') {
10
10
  * padding: 0 60px;
11
11
  * }
12
12
  * }
13
13
  */
14
14
 
15
15
  @use 'sass:map';
16
+ @use '../functions' as fn;
17
+ @use '../tokens/breakpoints' as tokens;
16
18
 
17
19
  // mobile devices
18
20
  @mixin mobile {
19
- @media (max-width: map.get($breakpoint, 'mobile')) {
21
+ @media (max-width: map.get(tokens.$breakpoint, 'mobile')) {
20
22
  @content;
21
23
  }
22
24
  }
23
25
 
24
26
  // Device breakpoint up. If the breakpoint is the smallest it will
25
27
  // return without media query.
26
- @mixin device-up($name, $breakpoints: $grid-breakpoints) {
27
- $min: device-min($name, $breakpoints);
28
+ @mixin device-up($name, $breakpoints: tokens.$breakpoint) {
29
+ $min: fn.device-min($name, $breakpoints);
28
30
 
29
31
  @if $min {
30
32
  @media (min-width: $min) {
@@ -37,8 +39,8 @@
37
39
 
38
40
  // Device breakpoint down.
39
41
  // If the breakpoint is the largest it will return without media query.
40
- @mixin device-down($name, $breakpoints: $grid-breakpoints) {
41
- $max: device-max($name, $breakpoints);
42
+ @mixin device-down($name, $breakpoints: tokens.$breakpoint) {
43
+ $max: fn.device-max($name, $breakpoints);
42
44
 
43
45
  @if $max {
44
46
  @media (max-width: $max) {
@@ -48,43 +50,3 @@
48
50
  @content;
49
51
  }
50
52
  }
51
-
52
- // Device breakpoint between
53
- @mixin device-between($lower, $upper, $breakpoints: $grid-breakpoints) {
54
- $min: device-min($lower, $breakpoints);
55
- $max: device-max($upper, $breakpoints);
56
-
57
- @if $min != null and $max != null {
58
- @media (min-width: $min) and (max-width: $max) {
59
- @content;
60
- }
61
- } @else if $max == null {
62
- @include device-up($lower, $breakpoints) {
63
- @content;
64
- }
65
- } @else if $min == null {
66
- @include device-down($upper, $breakpoints) {
67
- @content;
68
- }
69
- }
70
- }
71
-
72
- // Device breakpoint only
73
- @mixin device-only($name, $breakpoints: $grid-breakpoints) {
74
- $min: device-min($name, $breakpoints);
75
- $max: device-max($name, $breakpoints);
76
-
77
- @if $min != null and $max != null {
78
- @media (min-width: $min) and (max-width: $max) {
79
- @content;
80
- }
81
- } @else if $max == null {
82
- @include device-up($name, $breakpoints) {
83
- @content;
84
- }
85
- } @else if $min == null {
86
- @include device-down($name, $breakpoints) {
87
- @content;
88
- }
89
- }
90
- }
@@ -0,0 +1,88 @@
1
+ @mixin choice-input-overlay {
2
+ appearance: none;
3
+ cursor: inherit;
4
+ height: 100%;
5
+ inset: 0;
6
+ margin: 0;
7
+ opacity: 0;
8
+ position: absolute;
9
+ width: 100%;
10
+ }
11
+
12
+ @mixin choice-info-trigger {
13
+ align-items: center;
14
+ appearance: none;
15
+ background: none;
16
+ border: 0;
17
+ border-radius: $border__radius--pill;
18
+ color: inherit;
19
+ display: flex;
20
+ flex-shrink: 0;
21
+ height: $spacing--x5;
22
+ justify-content: center;
23
+ margin: 0;
24
+ padding: 0;
25
+ width: $spacing--x5;
26
+
27
+ &:focus-visible {
28
+ outline: $border__width--sm solid var(--color__focus--ring);
29
+ outline-offset: 0;
30
+ }
31
+ }
32
+
33
+ @mixin feedback-message-reserve {
34
+ min-height: $size__font--sm * 1.5;
35
+ }
36
+
37
+ @mixin choice-feedback-message(
38
+ $prefix,
39
+ $neutral: 'default',
40
+ $neutral-disabled: 'disabled',
41
+ $error: 'destructive'
42
+ ) {
43
+ & {
44
+ --#{$prefix}__message: var(--color__foreground--#{$neutral});
45
+ --#{$prefix}__message-icon: var(--#{$prefix}__message);
46
+ }
47
+
48
+ &__message {
49
+ @include feedback-message-reserve;
50
+
51
+ align-items: center;
52
+ display: flex;
53
+ gap: $spacing__offset--sm;
54
+ }
55
+
56
+ &__message-icon {
57
+ color: var(--#{$prefix}__message-icon);
58
+ display: inline-flex;
59
+ flex-shrink: 0;
60
+
61
+ .ds-icon {
62
+ color: inherit;
63
+ line-height: 1;
64
+ }
65
+ }
66
+
67
+ &__message-text {
68
+ @include typography('caption');
69
+
70
+ color: var(--#{$prefix}__message);
71
+ line-height: 1.5;
72
+ }
73
+
74
+ &--error {
75
+ --#{$prefix}__message: var(--color__foreground--#{$error});
76
+ --#{$prefix}__message-icon: var(--color__foreground--destructive);
77
+ }
78
+
79
+ &--warning {
80
+ --#{$prefix}__message: var(--color__foreground--warning-strong);
81
+ --#{$prefix}__message-icon: var(--color__foreground--warning);
82
+ }
83
+
84
+ &--disabled {
85
+ --#{$prefix}__message: var(--color__foreground--#{$neutral-disabled});
86
+ --#{$prefix}__message-icon: var(--color__foreground--#{$neutral-disabled});
87
+ }
88
+ }
@@ -0,0 +1,40 @@
1
+ @use 'sass:meta';
2
+ @use 'sass:map';
3
+
4
+ @mixin semantic-colors {
5
+ @each $group, $group-tokens in $colors__semantic {
6
+ @each $token, $primitive in $group-tokens {
7
+ @if meta.type-of($primitive) == 'map' {
8
+ --color__#{$group}--#{$token}: #{rgba(
9
+ color-hex(map.get($primitive, 'color')),
10
+ map.get($primitive, 'opacity')
11
+ )};
12
+ } @else {
13
+ --color__#{$group}--#{$token}: var(--color__#{$primitive});
14
+ }
15
+ }
16
+ }
17
+ }
18
+
19
+ @mixin brand-colors($brand, $palette, $tokens) {
20
+ @each $name, $value in $palette {
21
+ --color__#{$brand}-#{$name}: #{$value};
22
+ }
23
+
24
+ @each $group, $group-tokens in $tokens {
25
+ @each $token, $name in $group-tokens {
26
+ @if not
27
+ map.has-key($colors__semantic, $group) or not
28
+ map.has-key(map.get($colors__semantic, $group), $token)
29
+ {
30
+ @error 'Marca #{$brand}: o token #{$group}--#{$token} não existe em core/tokens/colors.';
31
+ }
32
+
33
+ @if not map.has-key($palette, $name) {
34
+ @error 'Marca #{$brand}: a cor #{$name} (token #{$group}--#{$token}) não existe na paleta da marca.';
35
+ }
36
+
37
+ --color__#{$group}--#{$token}: var(--color__#{$brand}-#{$name});
38
+ }
39
+ }
40
+ }
@@ -1,5 +1,6 @@
1
1
  // Structural mixins only (no theme dependency)
2
2
  @import 'breakpoints';
3
+ @import 'colors';
3
4
  @import 'grid';
4
-
5
- // NOTE: colors.scss and fonts.scss NOT copied (antipadrão - will be eliminated)
5
+ @import 'typography';
6
+ @import 'choice';
@@ -0,0 +1,22 @@
1
+ @use 'sass:map';
2
+ @use 'breakpoints' as bp;
3
+ @use '../tokens/typography' as tokens;
4
+
5
+ @mixin typography($role) {
6
+ $props: map.get(tokens.$typography, $role);
7
+ $families: (
8
+ 'highlight': var(--font__family--highlight),
9
+ 'base': var(--font__family--base),
10
+ );
11
+
12
+ font-family: map.get($families, map.get($props, 'font-family'));
13
+ font-size: map.get($props, 'font-size');
14
+ font-weight: map.get($props, 'font-weight');
15
+ line-height: map.get($props, 'line-height');
16
+
17
+ @if map.has-key($props, 'font-size-mobile') {
18
+ @include bp.mobile {
19
+ font-size: map.get($props, 'font-size-mobile');
20
+ }
21
+ }
22
+ }