@akad/design-system 4.0.1 → 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 +5373 -5004
  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 -15
  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 -473
  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,9 +0,0 @@
1
- export interface DsSplitLayoutProps {
2
- leftContent: React.ReactNode;
3
- rightContent: React.ReactNode;
4
- leftBackgroundColor?: string;
5
- rightBackgroundColor?: string;
6
- reverseOnMobile?: boolean;
7
- }
8
- declare const DsSplitLayout: React.FC<DsSplitLayoutProps>;
9
- export default DsSplitLayout;
@@ -1,5 +0,0 @@
1
- import { default as DsSplitLayout, DsSplitLayoutProps } from './SplitLayout';
2
-
3
- export { DsSplitLayout };
4
- export type { DsSplitLayoutProps };
5
- export default DsSplitLayout;
@@ -1,30 +0,0 @@
1
- /**
2
- * Mapper for color props. Necessary to don't break the old behavior.
3
- * It is used on DsCard and DsIcon components.
4
- * @example
5
- * ColorPropsMapper['primary-darker'] => 'primary--darker'
6
- */
7
- export declare enum ColorPropsMapper {
8
- 'primary-darker' = "primary--darker",
9
- 'primary-dark' = "primary--dark",
10
- 'primary-light' = "primary--light",
11
- 'primary-lighter' = "primary--lighter",
12
- 'primary-lightest' = "primary--lightest",
13
- 'secondary-darker' = "secondary--darker",
14
- 'secondary-dark' = "secondary--dark",
15
- 'secondary-light' = "secondary--light",
16
- 'secondary-lighter' = "secondary--lighter",
17
- 'secondary-lightest' = "secondary--lightest",
18
- 'success-dark' = "success--dark",
19
- 'success-light' = "success--light",
20
- 'success-lighter' = "success--lighter",
21
- 'warning-dark' = "warning--dark",
22
- 'warning-light' = "warning--light",
23
- 'warning-lighter' = "warning--lighter",
24
- 'danger-dark' = "danger--dark",
25
- 'danger-light' = "danger--light",
26
- 'danger-lighter' = "danger--lighter",
27
- 'info-dark' = "info--dark",
28
- 'info-light' = "info--light",
29
- 'info-lighter' = "info--lighter"
30
- }
@@ -1,13 +0,0 @@
1
- .ds-caption {
2
- $self: &;
3
-
4
- display: inline;
5
- font-family: var(--font__family--base);
6
- font-size: $font__size--xs;
7
- line-height: 150%;
8
-
9
- b,
10
- strong {
11
- font-weight: $font__weight--bold;
12
- }
13
- }
@@ -1,101 +0,0 @@
1
- $chip__font--family: var(--font__family--base) !default;
2
- $chip__font--weight: $font__weight--semibold !default;
3
- $chip__font--size: $font__size--xs !default;
4
- $chip__font--style: normal !default;
5
- $chip__line-height: 1.25 !default;
6
- $chip__letter-spacing: 0 !default;
7
- $chip__padding--y: $spacing__inset--quark !default; // 4px
8
- $chip__padding--x: $spacing__inset--quark + $spacing__inset--nano !default; // 4px + 8px = 12px
9
- $chip__min-height: $spacing__inset--sm !default; // 24px
10
- $chip__border-radius: $border__radius--xs !default;
11
- $chip__border-width: $border__width--hairline !default;
12
- $chip__icon--gap: 6px !default;
13
- $chip__colors: primary, secondary, success, danger, warning, info, neutral;
14
- $chip__solid: (
15
- 'bg__primary': var(--color__primary),
16
- 'text__primary': var(--color__neutral--00),
17
- 'bg__secondary': var(--color__secondary),
18
- 'text__secondary': var(--color__neutral--00),
19
- 'bg__success': var(--color__success),
20
- 'text__success': var(--color__neutral--00),
21
- 'bg__danger': var(--color__danger),
22
- 'text__danger': var(--color__neutral--00),
23
- 'bg__warning': var(--color__warning),
24
- 'text__warning': var(--color__neutral--90),
25
- 'bg__info': var(--color__info),
26
- 'text__info': var(--color__neutral--00),
27
- 'bg__neutral': var(--color__neutral--80),
28
- 'text__neutral': var(--color__neutral--00),
29
- ) !default;
30
- $chip__light: (
31
- 'bg__primary': var(--color__primary--lighter),
32
- 'text__primary': var(--color__primary--dark),
33
- 'bg__secondary': var(--color__secondary--lighter),
34
- 'text__secondary': var(--color__secondary--dark),
35
- 'bg__success': var(--color__success--lighter),
36
- 'text__success': var(--color__success--dark),
37
- 'bg__danger': var(--color__danger--lighter),
38
- 'text__danger': var(--color__danger--dark),
39
- 'bg__warning': var(--color__warning--lighter),
40
- 'text__warning': var(--color__warning--dark),
41
- 'bg__info': var(--color__info--lighter),
42
- 'text__info': var(--color__info--dark),
43
- 'bg__neutral': var(--color__neutral--20),
44
- 'text__neutral': var(--color__neutral--80),
45
- ) !default;
46
-
47
- .ds-chip {
48
- --chip__border-radius: #{$chip__border-radius};
49
- --chip__border-width: #{$chip__border-width};
50
- --chip__min-height: #{$chip__min-height};
51
- --chip__padding: #{$chip__padding--y} #{$chip__padding--x};
52
- --chip__icon-gap: #{$chip__icon--gap};
53
-
54
- align-items: center;
55
- border: none;
56
- border-radius: var(--chip__border-radius);
57
- box-sizing: border-box;
58
- display: inline-flex;
59
- font-family: $chip__font--family;
60
- font-size: $chip__font--size;
61
- font-style: $chip__font--style;
62
- font-weight: $chip__font--weight;
63
- gap: var(--chip__icon-gap);
64
- justify-content: center;
65
- letter-spacing: $chip__letter-spacing;
66
- line-height: $chip__line-height;
67
- margin: 0;
68
- max-width: 100%;
69
- min-height: var(--chip__min-height);
70
- padding: var(--chip__padding);
71
- text-align: center;
72
- vertical-align: middle;
73
- white-space: nowrap;
74
-
75
- &__label {
76
- overflow: hidden;
77
- text-overflow: ellipsis;
78
- }
79
-
80
- &__icon {
81
- align-items: center;
82
- display: inline-flex;
83
- flex-shrink: 0;
84
- justify-content: center;
85
- line-height: 1;
86
- }
87
-
88
- @each $color in $chip__colors {
89
- &__#{$color} {
90
- &--solid {
91
- background-color: get-token($chip__solid, 'bg__' + $color);
92
- color: get-token($chip__solid, 'text__' + $color);
93
- }
94
-
95
- &--light {
96
- background-color: get-token($chip__light, 'bg__' + $color);
97
- color: get-token($chip__light, 'text__' + $color);
98
- }
99
- }
100
- }
101
- }
@@ -1,70 +0,0 @@
1
- // Heading component - h1-h6 HTML tags + .ds-heading classes
2
- h1,
3
- .ds-heading,
4
- .ds-heading--1 {
5
- font-family: var(--font__family--highlight);
6
- font-size: $font__size--huge;
7
- font-weight: $font__weight--bold;
8
- line-height: 125%;
9
-
10
- @include mobile {
11
- font-size: $font__size--xxxl;
12
- }
13
- }
14
-
15
- h2,
16
- .ds-heading--2 {
17
- font-family: var(--font__family--highlight);
18
- font-size: $font__size--xxxl;
19
- line-height: 125%;
20
-
21
- @include mobile {
22
- font-size: $font__size--xxl;
23
- }
24
- }
25
-
26
- h3,
27
- .ds-heading--3 {
28
- font-family: var(--font__family--highlight);
29
- font-size: $font__size--xxl;
30
- line-height: 125%;
31
-
32
- @include mobile {
33
- font-size: $font__size--xl;
34
- }
35
- }
36
-
37
- h4,
38
- .ds-heading--4 {
39
- font-family: var(--font__family--highlight);
40
- font-size: $font__size--xl;
41
- line-height: 150%;
42
-
43
- @include mobile {
44
- font-size: $font__size--lg;
45
- }
46
- }
47
-
48
- h5,
49
- .ds-heading--5 {
50
- font-family: var(--font__family--highlight);
51
- font-size: $font__size--lg;
52
- font-weight: $font__weight--semibold;
53
- line-height: 150%;
54
-
55
- @include mobile {
56
- font-size: $font__size--md;
57
- }
58
- }
59
-
60
- h6,
61
- .ds-heading--6 {
62
- font-family: var(--font__family--highlight);
63
- font-size: $font__size--md;
64
- font-weight: $font__weight--medium;
65
- line-height: 150%;
66
-
67
- @include mobile {
68
- font-size: $font__size--sm;
69
- }
70
- }
@@ -1,78 +0,0 @@
1
- .ds-option {
2
- $self: &;
3
-
4
- // CSS vars (light mode default)
5
- --option__fill: var(--color__neutral--80);
6
- --option__fill--disabled: var(--color__neutral--50);
7
- --option__background: var(--color__neutral--00);
8
-
9
- align-items: center;
10
- display: flex;
11
- font-family: var(--font__family--base);
12
- justify-content: flex-start;
13
-
14
- &__text-container {
15
- display: flex;
16
- flex-direction: column;
17
- gap: $spacing--quark;
18
- margin-left: $spacing--nano;
19
- user-select: none;
20
- }
21
-
22
- &__label {
23
- align-items: center;
24
- cursor: pointer;
25
- display: flex;
26
- font-size: $font__size--sm;
27
- font-weight: $font__weight--bold;
28
- gap: $spacing--quark;
29
- }
30
-
31
- &__detail {
32
- cursor: pointer;
33
- font-size: $font__size--xs;
34
- font-weight: $font__weight--regular;
35
- }
36
-
37
- &__text-container--disabled {
38
- color: var(--option__fill--disabled);
39
- cursor: not-allowed;
40
- }
41
-
42
- .ds-option__icon.ds-icon {
43
- color: var(--option__fill);
44
- }
45
-
46
- &--disabled {
47
- color: var(--option__fill--disabled);
48
- cursor: not-allowed;
49
-
50
- .ds-option__icon.ds-icon {
51
- color: var(--option__fill--disabled);
52
- }
53
- }
54
-
55
- input {
56
- /* The native appearance is hidden */
57
- appearance: none;
58
- opacity: 0;
59
-
60
- // necessary to make input clickable
61
-
62
- padding: $spacing--xxs;
63
- position: absolute;
64
-
65
- &:focus {
66
- & + i.ds-icon {
67
- box-shadow: inset 0 0 0 $border__width--thin var(--option__fill);
68
- }
69
- }
70
- }
71
- }
72
-
73
- // Dark mode
74
- [data-theme='dark'] .ds-option {
75
- --option__fill: var(--color__neutral--20);
76
- --option__fill--disabled: var(--color__neutral--60);
77
- --option__background: var(--color__neutral--90);
78
- }
@@ -1,44 +0,0 @@
1
- // Paragraph component - p HTML tag + .ds-paragraph classes
2
- p,
3
- .ds-paragraph {
4
- font-family: var(--font__family--base);
5
- font-size: $font__size--sm;
6
- line-height: 150%;
7
- margin: 0;
8
-
9
- @include mobile {
10
- font-size: $font__size--xs;
11
- }
12
-
13
- b,
14
- strong {
15
- font-weight: $font__weight--bold;
16
- }
17
-
18
- a {
19
- color: var(--color__info);
20
- display: inline;
21
- text-decoration: none;
22
-
23
- &:visited {
24
- color: var(--color__info--dark);
25
- }
26
-
27
- &:hover {
28
- color: var(--color__info--light);
29
- text-decoration: underline;
30
- }
31
- }
32
-
33
- &--large {
34
- font-size: $font__size--md;
35
-
36
- @include mobile {
37
- font-size: $font__size--sm;
38
- }
39
- }
40
-
41
- &--small {
42
- font-size: $font__size--xs;
43
- }
44
- }
@@ -1,16 +0,0 @@
1
- .ds-progress {
2
- width: 100%;
3
-
4
- &__container {
5
- background-color: var(--color__neutral--30);
6
- border-radius: $border__radius--pill;
7
- width: 100%;
8
- }
9
-
10
- &__progress {
11
- border-radius: $border__radius--pill;
12
- padding: $spacing__inset--quark 0;
13
- transition: 0.2s ease all;
14
- width: 100%;
15
- }
16
- }
@@ -1,117 +0,0 @@
1
- $radio-card__padding: $spacing__inset--quark + $spacing__inset--nano !default;
2
- $radio-card__gap: $spacing__inset--quark + $spacing__inset--nano !default;
3
- $radio-card__min-height: $spacing--lg !default;
4
- $radio-card__text-gap: $spacing--quark !default;
5
- $radio-card__border-radius: $border__radius--xs !default;
6
- $radio-card__border-width: $border__width--hairline !default;
7
- $radio-card__outline-width: $border__width--thin !default;
8
-
9
- // Tipografia
10
- $radio-card__font--family: var(--font__family--base) !default;
11
- $radio-card__font--size: $font__size--xs !default;
12
- $radio-card__font--weight: $font__weight--semibold !default;
13
- $radio-card__line-height: 1.5 !default;
14
-
15
- // Cores (light)
16
- $radio-card__bg: var(--color__neutral--00) !default;
17
- $radio-card__border: var(--color__neutral--30) !default;
18
- $radio-card__bg--checked: var(--color__neutral--05) !default;
19
- $radio-card__border--checked: var(--color__neutral--80) !default;
20
- $radio-card__text: var(--color__neutral--80) !default;
21
-
22
- // Cores (dark)
23
- $radio-card__bg--dark: var(--color__neutral--90) !default;
24
- $radio-card__border--dark: var(--color__neutral--60) !default;
25
- $radio-card__text--dark: var(--color__neutral--10) !default;
26
- $radio-card__bg--checked-dark: var(--color__neutral--80) !default;
27
- $radio-card__border--checked-dark: var(--color__neutral--30) !default;
28
- $radio-card__disabled-opacity: 0.55 !default;
29
-
30
- @mixin radio-card-wrapper {
31
- align-items: center;
32
- background-color: #{$radio-card__bg};
33
- border: $radio-card__border-width solid #{$radio-card__border};
34
- border-radius: $radio-card__border-radius;
35
- box-sizing: border-box;
36
- cursor: pointer;
37
- display: inline-flex;
38
- font-family: $radio-card__font--family;
39
- -webkit-font-smoothing: antialiased;
40
- -moz-osx-font-smoothing: grayscale;
41
- gap: $radio-card__gap;
42
- min-height: $radio-card__min-height;
43
- padding: $radio-card__padding;
44
- position: relative;
45
- width: fit-content;
46
- }
47
-
48
- @mixin radio-card-wrapper-checked {
49
- background-color: #{$radio-card__bg--checked};
50
- border-color: #{$radio-card__border--checked};
51
- }
52
-
53
- @mixin radio-card-wrapper-focus-visible {
54
- outline: $radio-card__outline-width solid #{$radio-card__border--checked};
55
- outline-offset: $radio-card__outline-width;
56
- }
57
-
58
- @mixin radio-card-wrapper-disabled {
59
- cursor: not-allowed;
60
- opacity: $radio-card__disabled-opacity;
61
- pointer-events: none;
62
- }
63
-
64
- @mixin radio-card-input-hidden {
65
- cursor: pointer;
66
- inset: 0;
67
- margin: 0;
68
- opacity: 0;
69
- position: absolute;
70
- z-index: 1;
71
-
72
- &:disabled {
73
- cursor: not-allowed;
74
- }
75
- }
76
-
77
- @mixin radio-card-text-block {
78
- display: flex;
79
- flex: 1;
80
- flex-direction: column;
81
- gap: $radio-card__text-gap;
82
- justify-content: center;
83
- min-width: 0;
84
- pointer-events: none;
85
- z-index: 0;
86
- }
87
-
88
- @mixin radio-card-text-style {
89
- color: #{$radio-card__text};
90
- font-family: inherit;
91
- font-size: $radio-card__font--size;
92
- font-style: normal;
93
- font-weight: $radio-card__font--weight;
94
- letter-spacing: 0;
95
- line-height: $radio-card__line-height;
96
- vertical-align: middle;
97
- }
98
-
99
- @mixin radio-card-dark-mode {
100
- background-color: #{$radio-card__bg--dark};
101
- border-color: #{$radio-card__border--dark};
102
- color: #{$radio-card__text--dark};
103
-
104
- .ds-radio__label,
105
- .ds-radio__description {
106
- color: #{$radio-card__text--dark};
107
- }
108
- }
109
-
110
- @mixin radio-card-dark-mode-checked {
111
- background-color: #{$radio-card__bg--checked-dark};
112
- border-color: #{$radio-card__border--checked-dark};
113
- }
114
-
115
- @mixin radio-card-dark-mode-focus-visible {
116
- outline-color: #{$radio-card__border--checked-dark};
117
- }
@@ -1,143 +0,0 @@
1
- // === SEGMENT CONTROL TOKENS ===
2
- $segment-control__padding: $spacing__inset--quark !default;
3
- $segment-control__gap: $spacing--quark !default; // 4px
4
- $segment-control__border-radius: $border__radius--sm !default;
5
- $segment-control__item-radius: $border__radius--xs !default;
6
- $segment-control__padding-y--sm: $spacing__inset--quark !default;
7
- $segment-control__padding-x--sm: $spacing__inset--xs !default;
8
- $segment-control__padding-y--md: $spacing__inset--nano !default;
9
- $segment-control__padding-x--md: $spacing__inset--sm !default;
10
- $segment-control__transition: 150ms ease-in-out !default;
11
-
12
- // === SEGMENT CONTROL COMPONENT ===
13
- .ds-segment-control {
14
- --segment-control__background-track: var(--color__neutral--20);
15
- --segment-control__background-item: transparent;
16
- --segment-control__background-item--hover: var(--color__neutral--30);
17
- --segment-control__background-item--active: var(--color__neutral--00);
18
- --segment-control__color-item: var(--color__neutral--90);
19
- --segment-control__color-item--hover: var(--color__neutral--90);
20
- --segment-control__color-item--active: var(--color__primary);
21
- --segment-control__color-item--disabled: var(--color__neutral--50);
22
- --segment-control__shadow-item--active: #{$shadow__level--1};
23
-
24
- background-color: var(--segment-control__background-track);
25
- border-radius: $segment-control__border-radius;
26
- box-sizing: border-box;
27
- display: inline-flex;
28
- flex: 0 0 auto;
29
- font-family: var(--font__family--highlight);
30
- gap: $segment-control__gap;
31
- max-width: 100%;
32
- overflow: hidden;
33
- padding: $segment-control__padding;
34
- width: fit-content;
35
-
36
- &--full-width {
37
- display: flex;
38
- flex: 1 0 100%;
39
- width: 100%;
40
- }
41
-
42
- .ds-segment-control__item {
43
- align-items: center;
44
- appearance: none;
45
- background-color: var(--segment-control__background-item);
46
- border: 0;
47
- border-radius: $segment-control__item-radius;
48
- box-sizing: border-box;
49
- color: var(--segment-control__color-item);
50
- cursor: pointer;
51
- display: inline-flex;
52
- flex: 0 0 auto;
53
- font-family: inherit;
54
- font-size: $font__size--xs;
55
- font-weight: $font__weight--medium;
56
- justify-content: center;
57
- letter-spacing: 0;
58
- line-height: 1.4;
59
- margin: 0;
60
- position: relative;
61
- text-align: center;
62
- transition:
63
- background-color $segment-control__transition,
64
- color $segment-control__transition,
65
- box-shadow $segment-control__transition;
66
- user-select: none;
67
- white-space: nowrap;
68
- width: auto;
69
- z-index: 0;
70
-
71
- &:hover:not(
72
- .ds-segment-control__item--active,
73
- .ds-segment-control__item--disabled
74
- ) {
75
- background-color: var(--segment-control__background-item--hover);
76
- color: var(--segment-control__color-item--hover);
77
- z-index: 1;
78
- }
79
-
80
- &--active {
81
- background-color: var(--segment-control__background-item--active);
82
- box-shadow: var(--segment-control__shadow-item--active);
83
- color: var(--segment-control__color-item--active);
84
- z-index: 2;
85
- }
86
-
87
- &:has(.ds-segment-control__item-input:focus-visible) {
88
- outline: $border__width--thin solid var(--color__primary);
89
- outline-offset: $border__width--thin;
90
- z-index: 3;
91
- }
92
-
93
- &--disabled {
94
- color: var(--segment-control__color-item--disabled);
95
- cursor: not-allowed;
96
- }
97
- }
98
-
99
- .ds-segment-control__item-input {
100
- appearance: none;
101
- inset: 0;
102
- margin: 0;
103
- opacity: 0;
104
- position: absolute;
105
-
106
- &:disabled {
107
- cursor: not-allowed;
108
- }
109
- }
110
-
111
- // Sizes
112
- &--size-sm {
113
- min-height: $spacing--xs;
114
-
115
- .ds-segment-control__item {
116
- padding: $segment-control__padding-y--sm $segment-control__padding-x--sm;
117
- }
118
- }
119
-
120
- &--size-md {
121
- min-height: $spacing--sm;
122
-
123
- .ds-segment-control__item {
124
- padding: $segment-control__padding-y--md $segment-control__padding-x--md;
125
- }
126
- }
127
-
128
- &--full-width .ds-segment-control__item {
129
- flex: 1 1 0;
130
- width: auto;
131
- }
132
- }
133
-
134
- // Dark mode
135
- [data-theme='dark'] .ds-segment-control {
136
- --segment-control__background-track: var(--color__neutral--80);
137
- --segment-control__background-item--hover: var(--color__neutral--70);
138
- --segment-control__background-item--active: var(--color__primary);
139
- --segment-control__color-item: var(--color__neutral--10);
140
- --segment-control__color-item--hover: var(--color__neutral--00);
141
- --segment-control__color-item--active: var(--color__neutral--00);
142
- --segment-control__color-item--disabled: var(--color__neutral--50);
143
- }
@@ -1,21 +0,0 @@
1
- // Subtitle component
2
- .ds-subtitle {
3
- font-family: var(--font__family--base);
4
- line-height: 150%;
5
-
6
- &--large {
7
- font-size: $font__size--lg;
8
-
9
- @include mobile {
10
- font-size: $font__size--sm;
11
- }
12
- }
13
-
14
- &--small {
15
- font-size: $font__size--md;
16
-
17
- @include mobile {
18
- font-size: $font__size--xs;
19
- }
20
- }
21
- }
@@ -1,45 +0,0 @@
1
- .ds-flex-layout {
2
- &--gap-nano {
3
- gap: $spacing--nano;
4
- }
5
-
6
- &--gap-quark {
7
- gap: $spacing--quark;
8
- }
9
-
10
- &--gap-xxxs {
11
- gap: $spacing--xxxs;
12
- }
13
-
14
- &--gap-xxs {
15
- gap: $spacing--xxs;
16
- }
17
-
18
- &--gap-xs {
19
- gap: $spacing--xs;
20
- }
21
-
22
- &--gap-sm {
23
- gap: $spacing--sm;
24
- }
25
-
26
- &--gap-md {
27
- gap: $spacing--md;
28
- }
29
-
30
- &--gap-lg {
31
- gap: $spacing--lg;
32
- }
33
-
34
- &--gap-xl {
35
- gap: $spacing--xl;
36
- }
37
-
38
- &--gap-xxl {
39
- gap: $spacing--xxl;
40
- }
41
-
42
- &--gap-xxxl {
43
- gap: $spacing--xxxl;
44
- }
45
- }