@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
@@ -0,0 +1,17 @@
1
+ import { Meta } from '@storybook/react';
2
+ import { DsIconButtonProps } from './IconButton';
3
+
4
+ declare const componentProps: Meta;
5
+ export default componentProps;
6
+ export declare const Default: {
7
+ render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsIconButtonProps>;
8
+ args: {
9
+ icon: string;
10
+ 'aria-label': string;
11
+ onClick: import('@storybook/addon-actions').HandlerFunction;
12
+ };
13
+ };
14
+ /** Variantes x tamanhos x cores, com a coluna Disabled. */
15
+ export declare const Matrix: {
16
+ render: () => import("react/jsx-runtime").JSX.Element;
17
+ };
@@ -0,0 +1,4 @@
1
+ export * from './IconButton';
2
+ export * from './IconButton.config';
3
+ export { default as DsIconButton } from './IconButton';
4
+ export { default as iconButtonConfig } from './IconButton.config';
@@ -6,14 +6,13 @@ export declare enum InputType {
6
6
  Number = "number"
7
7
  }
8
8
  export declare enum InputSize {
9
- Small = "small",
10
- Medium = "medium",
11
- Large = "large"
9
+ Small = "sm",
10
+ Medium = "md",
11
+ Large = "lg"
12
12
  }
13
13
  export declare enum InputStatus {
14
14
  Default = "",
15
- Error = "error",
16
- Success = "success"
15
+ Error = "error"
17
16
  }
18
17
  export declare enum InputTooltipPlacement {
19
18
  Center = "center",
@@ -30,28 +29,19 @@ export interface InputNameProps {
30
29
  type: StringConstructor;
31
30
  required: boolean;
32
31
  }
33
- export interface InputTestIdProps {
34
- type: StringConstructor;
35
- default: string;
36
- }
37
32
  export interface InputTypeProps {
38
33
  type: StringConstructor;
39
34
  default: InputType;
40
35
  options: InputType[];
41
36
  }
42
- export interface InputAnimatedProps {
37
+ export interface InputDisabledProps {
43
38
  type: BooleanConstructor;
44
39
  default: boolean;
45
40
  }
46
- export interface InputDisabledProps {
41
+ export interface InputAutoFocusProps {
47
42
  type: BooleanConstructor;
48
43
  default: boolean;
49
44
  }
50
- export interface InputSizeProps {
51
- type: StringConstructor;
52
- default: InputSize;
53
- options: InputSize[];
54
- }
55
45
  export interface InputLabelProps {
56
46
  type: StringConstructor;
57
47
  default: string;
@@ -64,6 +54,10 @@ export interface InputValueProps {
64
54
  type: StringConstructor;
65
55
  default: string;
66
56
  }
57
+ export interface InputMaxLengthProps {
58
+ type: NumberConstructor;
59
+ default: number | undefined;
60
+ }
67
61
  export interface InputMinProps {
68
62
  type: StringConstructor;
69
63
  default: string;
@@ -72,6 +66,11 @@ export interface InputMaxProps {
72
66
  type: StringConstructor;
73
67
  default: string;
74
68
  }
69
+ export interface InputSizeProps {
70
+ type: StringConstructor;
71
+ default: InputSize;
72
+ options: InputSize[];
73
+ }
75
74
  export interface InputStatusProps {
76
75
  type: StringConstructor;
77
76
  default: InputStatus;
@@ -81,18 +80,18 @@ export interface InputFeedbackProps {
81
80
  type: StringConstructor;
82
81
  default: string;
83
82
  }
84
- export interface InputHasFeedbackProps {
85
- type: BooleanConstructor;
86
- default: boolean;
87
- }
88
- export interface InputNoMarginProps {
89
- type: BooleanConstructor;
90
- default: boolean;
83
+ export interface InputSupportingTextProps {
84
+ type: StringConstructor;
85
+ default: string;
91
86
  }
92
87
  export interface InputIconProps {
93
88
  type: StringConstructor;
94
89
  default: string;
95
90
  }
91
+ export interface InputMaskProps {
92
+ type: StringConstructor;
93
+ default: string;
94
+ }
96
95
  export interface InputTooltipProps {
97
96
  type: StringConstructor;
98
97
  default: string;
@@ -107,39 +106,30 @@ export interface InputTooltipPositionProps {
107
106
  default: InputTooltipPosition;
108
107
  options: InputTooltipPosition[];
109
108
  }
110
- export interface InputMaskProps {
111
- type: StringConstructor;
112
- default: string;
113
- }
114
- export interface InputOnChangeHandlerProps {
115
- type: FunctionConstructor;
116
- default: (event: React.ChangeEvent<HTMLInputElement>) => void;
117
- }
118
109
  export interface InputConfig {
119
110
  name: string;
120
111
  class: string;
121
112
  props: {
122
113
  name: InputNameProps;
123
- testId: InputTestIdProps;
124
114
  type: InputTypeProps;
125
- animated: InputAnimatedProps;
126
115
  disabled: InputDisabledProps;
127
- size: InputSizeProps;
116
+ autoFocus: InputAutoFocusProps;
128
117
  label: InputLabelProps;
129
118
  placeholder: InputPlaceholderProps;
130
119
  value: InputValueProps;
131
120
  min: InputMinProps;
132
121
  max: InputMaxProps;
122
+ size: InputSizeProps;
133
123
  status: InputStatusProps;
134
124
  feedback: InputFeedbackProps;
135
- hasFeedback: InputHasFeedbackProps;
136
- noMargin: InputNoMarginProps;
137
- icon: InputIconProps;
125
+ supportingText: InputSupportingTextProps;
126
+ leadingIcon: InputIconProps;
127
+ trailingIcon: InputIconProps;
128
+ maxLength: InputMaxLengthProps;
129
+ mask: InputMaskProps;
138
130
  tooltip: InputTooltipProps;
139
131
  tooltipPlacement: InputTooltipPlacementProps;
140
132
  tooltipPosition: InputTooltipPositionProps;
141
- mask: InputMaskProps;
142
- onChangeHandler: InputOnChangeHandlerProps;
143
133
  };
144
134
  }
145
135
  declare const inputConfig: InputConfig;
@@ -1,31 +1,50 @@
1
1
  import { default as React } from 'react';
2
+ import { InputSize, InputStatus, InputTooltipPlacement, InputTooltipPosition, InputType } from './Input.config';
2
3
 
3
- export interface DsInputProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ export interface DsInputProps {
5
+ id?: string;
4
6
  name?: string;
5
7
  testId?: string;
6
- type?: string;
7
- animated?: boolean;
8
- size?: string;
8
+ className?: string;
9
+ type?: `${InputType}`;
9
10
  label?: string;
10
11
  placeholder?: string;
11
12
  value?: string;
13
+ /** Valor inicial do campo (sem máscara, se houver `mask`); lido só na montagem. */
14
+ defaultValue?: string;
12
15
  min?: string;
13
16
  max?: string;
14
- tooltip?: string;
15
- tooltipPosition?: string;
16
- tooltipPlacement?: string;
17
- icon?: string;
18
- status?: string;
17
+ maxLength?: number;
18
+ size?: `${InputSize}`;
19
+ leadingIcon?: string;
20
+ trailingIcon?: string;
21
+ status?: `${InputStatus}`;
22
+ /** Mensagem de validação (vem do register); só aparece com erro ou aviso. */
19
23
  feedback?: string;
20
- hasFeedback?: boolean;
21
- noMargin?: boolean;
24
+ /** Texto de apoio fixo abaixo do campo. */
25
+ supportingText?: string;
22
26
  disabled?: boolean;
27
+ readOnly?: boolean;
28
+ required?: boolean;
23
29
  autoFocus?: boolean;
30
+ autoComplete?: string;
31
+ inputMode?: React.HTMLAttributes<HTMLInputElement>['inputMode'];
24
32
  mask?: string | object;
25
- onChangeHandler?: (event: React.ChangeEvent<HTMLInputElement>) => void;
26
- onBlurHandler?: (event: React.FocusEvent<HTMLInputElement>) => void;
27
- onKeyDownHandler?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
28
- onFocusHandler?: (event: React.FocusEvent<HTMLInputElement>) => void;
33
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
34
+ onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
35
+ onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
36
+ onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
37
+ tooltip?: string;
38
+ tooltipPlacement?: `${InputTooltipPlacement}`;
39
+ tooltipPosition?: `${InputTooltipPosition}`;
40
+ 'aria-describedby'?: string;
41
+ 'aria-label'?: string;
42
+ 'aria-labelledby'?: string;
43
+ role?: React.AriaRole;
44
+ 'aria-activedescendant'?: string;
45
+ 'aria-autocomplete'?: 'none' | 'inline' | 'list' | 'both';
46
+ 'aria-controls'?: string;
47
+ 'aria-expanded'?: boolean;
29
48
  }
30
49
  declare const DsInput: React.ForwardRefExoticComponent<DsInputProps & React.RefAttributes<HTMLInputElement>>;
31
50
  export default DsInput;
@@ -8,16 +8,43 @@ export declare const Default: {
8
8
  args: {
9
9
  name: string;
10
10
  label: string;
11
+ tooltip: string;
12
+ tooltipPlacement: import('.').InputTooltipPlacement;
13
+ tooltipPosition: import('.').InputTooltipPosition;
11
14
  placeholder: string;
12
15
  value: string;
13
16
  min: string;
14
17
  max: string;
15
18
  type: import('.').InputType;
19
+ size: import('.').InputSize;
16
20
  disabled: boolean;
17
- tooltip: string;
21
+ leadingIcon: string;
22
+ trailingIcon: string;
18
23
  status: import('.').InputStatus;
19
24
  feedback: string;
20
- hasFeedback: boolean;
21
- noMargin: boolean;
25
+ supportingText: string;
22
26
  };
23
27
  };
28
+ /**
29
+ * Tamanhos SM 40, MD 48 (padrão) e LG 56, ao lado do DsSelect e do
30
+ * DsCombobox do mesmo tamanho (os três alinham pela altura do campo).
31
+ */
32
+ export declare const Sizes: {
33
+ render: () => import("react/jsx-runtime").JSX.Element;
34
+ };
35
+ /**
36
+ * Rótulo maior que o campo: sem `placeholder`, o rótulo quebra em linhas dentro do
37
+ * campo (em repouso) ou sobre a borda (com foco, valor ou erro), em vez de passar
38
+ * da borda direita. A largura de 400px é a do campo.
39
+ */
40
+ export declare const LongLabel: {
41
+ render: () => import("react/jsx-runtime").JSX.Element;
42
+ };
43
+ /**
44
+ * Estado x texto x ícone leading x ícone trailing. Hovered e Focused aparecem
45
+ * ao interagir (passe o mouse e use Tab); as linhas mostram Enabled, Error e
46
+ * Disabled.
47
+ */
48
+ export declare const Matrix: {
49
+ render: () => import("react/jsx-runtime").JSX.Element;
50
+ };
@@ -1,38 +1,27 @@
1
+ export declare enum LoadingType {
2
+ Dots = "dots",
3
+ Spinner = "spinner"
4
+ }
1
5
  export declare enum LoadingSize {
2
6
  Small = "small",
3
7
  Medium = "medium",
4
8
  Large = "large"
5
9
  }
6
- export declare enum LoadingBackgroundColor {
7
- None = "",
8
- Neutral20 = "neutral-20",
9
- Neutral10 = "neutral-10",
10
- Neutral05 = "neutral-05",
11
- Neutral00 = "neutral-00"
10
+ export interface LoadingTypeProps {
11
+ type: StringConstructor;
12
+ default: LoadingType;
13
+ options: LoadingType[];
12
14
  }
13
15
  export interface LoadingSizeProps {
14
16
  type: StringConstructor;
15
17
  default: LoadingSize;
16
18
  options: LoadingSize[];
17
19
  }
18
- export interface LoadingOpacityProps {
19
- type: BooleanConstructor;
20
- default: boolean;
21
- }
22
- export interface LoadingFullscreenProps {
20
+ export interface LoadingBooleanProps {
23
21
  type: BooleanConstructor;
24
22
  default: boolean;
25
23
  }
26
- export interface LoadingBackgroundColorProps {
27
- type: StringConstructor;
28
- default: LoadingBackgroundColor;
29
- options: LoadingBackgroundColor[];
30
- }
31
- export interface LoadingIdProps {
32
- type: StringConstructor;
33
- default: string;
34
- }
35
- export interface LoadingTestIdProps {
24
+ export interface LoadingTextProps {
36
25
  type: StringConstructor;
37
26
  default: string;
38
27
  }
@@ -40,12 +29,15 @@ export interface LoadingConfig {
40
29
  name: string;
41
30
  class: string;
42
31
  props: {
43
- id: LoadingIdProps;
44
- testId: LoadingTestIdProps;
32
+ type: LoadingTypeProps;
45
33
  size: LoadingSizeProps;
46
- opacity: LoadingOpacityProps;
47
- fullscreen: LoadingFullscreenProps;
48
- backgroundColor: LoadingBackgroundColorProps;
34
+ complete: LoadingBooleanProps;
35
+ label: LoadingTextProps;
36
+ completeLabel: LoadingTextProps;
37
+ inline: LoadingBooleanProps;
38
+ fullscreen: LoadingBooleanProps;
39
+ opacity: LoadingBooleanProps;
40
+ testId: LoadingTextProps;
49
41
  };
50
42
  }
51
43
  declare const loadingConfig: LoadingConfig;
@@ -1,24 +1,22 @@
1
- import { default as PropTypes } from 'prop-types';
1
+ import { LoadingSize, LoadingType } from './Loading.config';
2
2
 
3
3
  export interface DsLoadingProps {
4
+ type?: `${LoadingType}`;
5
+ size?: `${LoadingSize}`;
6
+ complete?: boolean;
7
+ label?: string;
8
+ completeLabel?: string;
9
+ inline?: boolean;
10
+ fullscreen?: boolean;
11
+ opacity?: boolean;
4
12
  id?: string;
5
- testId?: string;
6
13
  className?: string;
7
- size?: string;
8
- opacity?: boolean;
9
- fullscreen?: boolean;
10
- backgroundColor?: string;
14
+ testId?: string;
15
+ 'aria-label'?: string;
16
+ 'aria-live'?: 'off' | 'polite' | 'assertive';
11
17
  }
12
18
  declare const DsLoading: {
13
- ({ id, testId, className, size, opacity, fullscreen, backgroundColor, }: DsLoadingProps): import("react/jsx-runtime").JSX.Element;
14
- propTypes: {
15
- id: PropTypes.Requireable<string>;
16
- testId: PropTypes.Requireable<string>;
17
- size: PropTypes.Requireable<import('./Loading.config').LoadingSize>;
18
- opacity: PropTypes.Requireable<boolean>;
19
- fullscreen: PropTypes.Requireable<boolean>;
20
- backgroundColor: PropTypes.Requireable<string>;
21
- };
19
+ ({ type, size, complete, label, completeLabel, inline, fullscreen, opacity, id, className, testId, "aria-label": ariaLabel, "aria-live": ariaLive, }: DsLoadingProps): import("react/jsx-runtime").JSX.Element;
22
20
  displayName: string;
23
21
  };
24
22
  export default DsLoading;
@@ -6,6 +6,27 @@ export default ComponentProps;
6
6
  export declare const Default: {
7
7
  render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsLoadingProps>;
8
8
  args: {
9
- size: string;
9
+ inline: boolean;
10
10
  };
11
11
  };
12
+ export declare const Spinner: {
13
+ render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsLoadingProps>;
14
+ args: {
15
+ inline: boolean;
16
+ type: string;
17
+ };
18
+ };
19
+ export declare const SpinnerComplete: {
20
+ render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsLoadingProps>;
21
+ args: {
22
+ inline: boolean;
23
+ type: string;
24
+ complete: boolean;
25
+ };
26
+ };
27
+ export declare const Matrix: {
28
+ render: () => import("react/jsx-runtime").JSX.Element;
29
+ };
30
+ export declare const Overlay: {
31
+ render: () => import("react/jsx-runtime").JSX.Element;
32
+ };
@@ -1,19 +1,17 @@
1
- export declare enum RadioVariant {
2
- Default = "default",
3
- Card = "card"
1
+ export declare enum RadioStatus {
2
+ Default = "",
3
+ Error = "error",
4
+ Warning = "warning",
5
+ Skeleton = "skeleton"
4
6
  }
5
7
  export interface RadioConfig {
6
8
  name: string;
7
9
  class: string;
8
10
  props: {
9
- variant: {
11
+ status: {
10
12
  type: StringConstructor;
11
- default: RadioVariant;
12
- options: RadioVariant[];
13
- };
14
- fullWidth: {
15
- type: BooleanConstructor;
16
- default: boolean;
13
+ default: RadioStatus;
14
+ options: RadioStatus[];
17
15
  };
18
16
  };
19
17
  }
@@ -1,18 +1,30 @@
1
1
  import { default as React } from 'react';
2
- import { RadioVariant } from './Radio.config';
2
+ import { RadioStatus } from './Radio.config';
3
3
 
4
- export interface DsRadioProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type' | 'children' | 'className' | 'size'> {
5
- variant?: RadioVariant;
6
- fullWidth?: boolean;
4
+ export interface DsRadioProps {
5
+ id?: string;
6
+ name?: string;
7
+ value?: string | number;
8
+ checked?: boolean;
9
+ defaultChecked?: boolean;
10
+ required?: boolean;
11
+ disabled?: boolean;
7
12
  label?: React.ReactNode;
8
13
  description?: React.ReactNode;
14
+ tooltip?: string;
15
+ status?: `${RadioStatus}`;
16
+ /** Mensagem de validação (vem do register); só aparece com erro ou aviso. */
17
+ feedback?: React.ReactNode;
18
+ /** Texto de apoio fixo abaixo do campo. */
19
+ supportingText?: React.ReactNode;
9
20
  className?: string;
10
21
  testId?: string;
11
- status?: string;
12
- feedback?: React.ReactNode;
13
- onChangeHandler?: (event: React.ChangeEvent<HTMLInputElement>) => void;
14
- onBlurHandler?: (event: React.FocusEvent<HTMLInputElement>) => void;
15
- onFocusHandler?: (event: React.FocusEvent<HTMLInputElement>) => void;
22
+ onChange?: React.ChangeEventHandler<HTMLInputElement>;
23
+ onBlur?: React.FocusEventHandler<HTMLInputElement>;
24
+ onFocus?: React.FocusEventHandler<HTMLInputElement>;
25
+ 'aria-describedby'?: string;
26
+ 'aria-label'?: string;
27
+ 'aria-labelledby'?: string;
16
28
  }
17
29
  declare const DsRadio: React.ForwardRefExoticComponent<DsRadioProps & React.RefAttributes<HTMLInputElement>>;
18
30
  export default DsRadio;
@@ -1,49 +1,16 @@
1
- import { Meta } from '@storybook/react';
1
+ import { Meta, StoryObj } from '@storybook/react';
2
2
  import { DsRadioProps } from './Radio';
3
- import { RadioVariant } from './Radio.config';
4
3
 
5
4
  declare const meta: Meta<DsRadioProps>;
6
5
  export default meta;
7
- export declare const Default: {
8
- render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsRadioProps>;
9
- args: {
10
- label: string;
11
- name: string;
12
- value: string;
13
- };
14
- };
15
- export declare const WithDescription: {
16
- render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsRadioProps>;
17
- args: {
18
- label: string;
19
- description: string;
20
- name: string;
21
- value: string;
22
- };
23
- };
24
- export declare const Disabled: {
25
- render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsRadioProps>;
26
- args: {
27
- label: string;
28
- description: string;
29
- disabled: boolean;
30
- name: string;
31
- value: string;
32
- };
33
- };
34
- export declare const Card: {
35
- render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsRadioProps>;
36
- args: {
37
- variant: RadioVariant;
38
- label: string;
39
- description: string;
40
- name: string;
41
- value: string;
42
- };
43
- };
44
- export declare const CardGroupVertical: {
45
- render: () => import("react/jsx-runtime").JSX.Element;
46
- };
47
- export declare const CardGroupHorizontal: {
6
+ type Story = StoryObj<DsRadioProps>;
7
+ export declare const Default: Story;
8
+ export declare const ComDescricao: Story;
9
+ export declare const ComTooltip: Story;
10
+ export declare const Disabled: Story;
11
+ export declare const Erro: Story;
12
+ export declare const Warning: Story;
13
+ export declare const Skeleton: Story;
14
+ export declare const Matrix: {
48
15
  render: () => import("react/jsx-runtime").JSX.Element;
49
16
  };
@@ -1,4 +1,4 @@
1
1
  export * from './Radio';
2
2
  export * from './Radio.config';
3
- export { default as radioConfig } from './Radio.config';
4
3
  export { default as DsRadio } from './Radio';
4
+ export { default as radioConfig } from './Radio.config';
@@ -5,8 +5,7 @@ export declare enum SelectSize {
5
5
  }
6
6
  export declare enum SelectStatus {
7
7
  Default = "",
8
- Error = "error",
9
- Success = "success"
8
+ Error = "error"
10
9
  }
11
10
  export declare enum SelectTooltipPlacement {
12
11
  Center = "center",
@@ -27,15 +26,11 @@ export interface SelectClassNameProps {
27
26
  type: StringConstructor;
28
27
  default: string;
29
28
  }
30
- export interface SelectAnimatedProps {
31
- type: BooleanConstructor;
32
- default: boolean;
33
- }
34
29
  export interface SelectDisabledProps {
35
30
  type: BooleanConstructor;
36
31
  default: boolean;
37
32
  }
38
- export interface SelectMultipleProps {
33
+ export interface SelectAutoFocusProps {
39
34
  type: BooleanConstructor;
40
35
  default: boolean;
41
36
  }
@@ -43,10 +38,6 @@ export interface SelectNameProps {
43
38
  type: StringConstructor;
44
39
  default: string;
45
40
  }
46
- export interface SelectTestIdProps {
47
- type: StringConstructor;
48
- default: string;
49
- }
50
41
  export interface SelectPlaceholderProps {
51
42
  type: StringConstructor;
52
43
  }
@@ -85,7 +76,12 @@ export interface SelectFeedbackProps {
85
76
  type: StringConstructor;
86
77
  default: string;
87
78
  }
79
+ export interface SelectSupportingTextProps {
80
+ type: StringConstructor;
81
+ default: string;
82
+ }
88
83
  interface SelectOption {
84
+ disabled?: boolean;
89
85
  label?: string;
90
86
  value?: string | number | readonly string[];
91
87
  }
@@ -100,12 +96,10 @@ export interface SelectConfig {
100
96
  props: {
101
97
  label: SelectLabelProps;
102
98
  className: SelectClassNameProps;
103
- animated: SelectAnimatedProps;
104
99
  disabled: SelectDisabledProps;
105
- multiple: SelectMultipleProps;
100
+ autoFocus: SelectAutoFocusProps;
106
101
  name: SelectNameProps;
107
102
  options: SelectOptions;
108
- testId: SelectTestIdProps;
109
103
  placeholder: SelectPlaceholderProps;
110
104
  onChange: SelectOnChangeProps;
111
105
  value: SelectValueProps;
@@ -115,6 +109,7 @@ export interface SelectConfig {
115
109
  tooltipPlacement: SelectTooltipPlacementProps;
116
110
  tooltipPosition: SelectTooltipPositionProps;
117
111
  feedback: SelectFeedbackProps;
112
+ supportingText: SelectSupportingTextProps;
118
113
  };
119
114
  }
120
115
  declare const selectConfig: SelectConfig;
@@ -1,25 +1,35 @@
1
1
  import { default as React } from 'react';
2
- import { SelectOptions } from './Select.config';
2
+ import { SelectOptions, SelectSize, SelectStatus, SelectTooltipPlacement, SelectTooltipPosition } from './Select.config';
3
3
 
4
4
  export interface DsSelectProps {
5
5
  label: string;
6
+ id?: string;
6
7
  className?: string;
7
8
  disabled?: boolean;
8
- animated?: boolean;
9
- multiple?: boolean;
9
+ required?: boolean;
10
+ autoFocus?: boolean;
10
11
  name?: string;
11
12
  testId?: string;
12
13
  options: SelectOptions;
13
14
  value?: string | number;
15
+ /** Valor inicial do campo; lido só na montagem. */
16
+ defaultValue?: string | number;
14
17
  placeholder?: string;
15
- onChange?: (e: React.ChangeEvent<HTMLSelectElement>, value: string | number) => void;
16
- onChangeHandler?: (e: React.ChangeEvent<HTMLSelectElement>, value: string | number) => void;
17
- size?: string;
18
- status?: string;
18
+ onChange?(e: React.ChangeEvent<HTMLSelectElement>, value: string | number): void;
19
+ onBlur?: React.FocusEventHandler<HTMLSelectElement>;
20
+ onFocus?: React.FocusEventHandler<HTMLSelectElement>;
21
+ size?: `${SelectSize}`;
22
+ status?: `${SelectStatus}`;
19
23
  tooltip?: string;
20
- tooltipPosition?: string;
21
- tooltipPlacement?: string;
24
+ tooltipPosition?: `${SelectTooltipPosition}`;
25
+ tooltipPlacement?: `${SelectTooltipPlacement}`;
26
+ /** Mensagem de validação (vem do register); só aparece com erro ou aviso. */
22
27
  feedback?: string;
28
+ /** Texto de apoio fixo abaixo do campo. */
29
+ supportingText?: string;
30
+ 'aria-describedby'?: string;
31
+ 'aria-label'?: string;
32
+ 'aria-labelledby'?: string;
23
33
  }
24
- declare const DsSelect: React.ForwardRefExoticComponent<DsSelectProps & React.RefAttributes<HTMLInputElement>>;
34
+ declare const DsSelect: React.ForwardRefExoticComponent<DsSelectProps & React.RefAttributes<HTMLSelectElement>>;
25
35
  export default DsSelect;