@spaced-out/ui-design-system 0.5.10 → 0.5.12-beta.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 (352) hide show
  1. package/.storybook/public/component-parent-levels.json +77 -77
  2. package/CHANGELOG.md +22 -0
  3. package/lib/components/Accordion/Accordion.d.ts +1 -0
  4. package/lib/components/Accordion/Accordion.d.ts.map +1 -1
  5. package/lib/components/Accordion/Accordion.js +29 -4
  6. package/lib/components/Accordion/AccordionGroup.d.ts +2 -1
  7. package/lib/components/Accordion/AccordionGroup.d.ts.map +1 -1
  8. package/lib/components/Accordion/AccordionGroup.js +13 -2
  9. package/lib/components/Avatar/Avatar.d.ts +3 -1
  10. package/lib/components/Avatar/Avatar.d.ts.map +1 -1
  11. package/lib/components/Avatar/Avatar.js +58 -11
  12. package/lib/components/AvatarGroup/AvatarGroup.d.ts +1 -0
  13. package/lib/components/AvatarGroup/AvatarGroup.d.ts.map +1 -1
  14. package/lib/components/AvatarGroup/AvatarGroup.js +27 -3
  15. package/lib/components/Badge/Badge.d.ts +1 -0
  16. package/lib/components/Badge/Badge.d.ts.map +1 -1
  17. package/lib/components/Badge/Badge.js +22 -5
  18. package/lib/components/BadgedIcon/BadgedIcon.d.ts +2 -1
  19. package/lib/components/BadgedIcon/BadgedIcon.d.ts.map +1 -1
  20. package/lib/components/BadgedIcon/BadgedIcon.js +20 -4
  21. package/lib/components/Banner/Banner.d.ts +1 -0
  22. package/lib/components/Banner/Banner.d.ts.map +1 -1
  23. package/lib/components/Banner/Banner.js +2 -0
  24. package/lib/components/Breadcrumbs/BreadcrumbLink/BreadcrumbLink.d.ts +1 -0
  25. package/lib/components/Breadcrumbs/BreadcrumbLink/BreadcrumbLink.d.ts.map +1 -1
  26. package/lib/components/Breadcrumbs/BreadcrumbLink/BreadcrumbLink.js +6 -1
  27. package/lib/components/Breadcrumbs/Breadcrumbs.d.ts +1 -0
  28. package/lib/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  29. package/lib/components/Breadcrumbs/Breadcrumbs.js +31 -11
  30. package/lib/components/Button/Button.d.ts +1 -0
  31. package/lib/components/Button/Button.d.ts.map +1 -1
  32. package/lib/components/Button/Button.js +50 -6
  33. package/lib/components/ButtonDropdown/ButtonDropdown.d.ts +1 -0
  34. package/lib/components/ButtonDropdown/ButtonDropdown.d.ts.map +1 -1
  35. package/lib/components/ButtonDropdown/ButtonDropdown.js +22 -1
  36. package/lib/components/ButtonDropdown/SimpleButtonDropdown.d.ts +1 -0
  37. package/lib/components/ButtonDropdown/SimpleButtonDropdown.d.ts.map +1 -1
  38. package/lib/components/ButtonDropdown/SimpleButtonDropdown.js +2 -0
  39. package/lib/components/ButtonTabs/ButtonTab/ButtonTab.d.ts +1 -0
  40. package/lib/components/ButtonTabs/ButtonTab/ButtonTab.d.ts.map +1 -1
  41. package/lib/components/ButtonTabs/ButtonTab/ButtonTab.js +2 -0
  42. package/lib/components/ButtonTabs/ButtonTabDropdown.d.ts +2 -1
  43. package/lib/components/ButtonTabs/ButtonTabDropdown.d.ts.map +1 -1
  44. package/lib/components/ButtonTabs/ButtonTabDropdown.js +19 -2
  45. package/lib/components/ButtonTabs/ButtonTabs.d.ts +1 -0
  46. package/lib/components/ButtonTabs/ButtonTabs.d.ts.map +1 -1
  47. package/lib/components/ButtonTabs/ButtonTabs.js +19 -4
  48. package/lib/components/Card/Card.d.ts +7 -5
  49. package/lib/components/Card/Card.d.ts.map +1 -1
  50. package/lib/components/Card/Card.js +33 -1
  51. package/lib/components/Charts/ChartWrapper/ChartWrapper.d.ts +1 -0
  52. package/lib/components/Charts/ChartWrapper/ChartWrapper.d.ts.map +1 -1
  53. package/lib/components/Charts/ChartWrapper/ChartWrapper.js +37 -5
  54. package/lib/components/Charts/ColumnChart/ColumnChart.d.ts +2 -1
  55. package/lib/components/Charts/ColumnChart/ColumnChart.d.ts.map +1 -1
  56. package/lib/components/Charts/ColumnChart/ColumnChart.js +2 -0
  57. package/lib/components/Charts/DonutChart/DonutChart.d.ts +2 -1
  58. package/lib/components/Charts/DonutChart/DonutChart.d.ts.map +1 -1
  59. package/lib/components/Charts/DonutChart/DonutChart.js +2 -0
  60. package/lib/components/Charts/FunnelChart/FunnelChart.d.ts +2 -1
  61. package/lib/components/Charts/FunnelChart/FunnelChart.d.ts.map +1 -1
  62. package/lib/components/Charts/FunnelChart/FunnelChart.js +2 -0
  63. package/lib/components/Charts/LineChart/LineChart.d.ts +2 -1
  64. package/lib/components/Charts/LineChart/LineChart.d.ts.map +1 -1
  65. package/lib/components/Charts/LineChart/LineChart.js +2 -0
  66. package/lib/components/Charts/SankeyChart/SankeyChart.d.ts +2 -1
  67. package/lib/components/Charts/SankeyChart/SankeyChart.d.ts.map +1 -1
  68. package/lib/components/Charts/SankeyChart/SankeyChart.js +2 -0
  69. package/lib/components/Charts/SpiderChart/SpiderChart.d.ts +2 -1
  70. package/lib/components/Charts/SpiderChart/SpiderChart.d.ts.map +1 -1
  71. package/lib/components/Charts/SpiderChart/SpiderChart.js +2 -0
  72. package/lib/components/Charts/StackedBarChart/StackedBarChart.d.ts +2 -1
  73. package/lib/components/Charts/StackedBarChart/StackedBarChart.d.ts.map +1 -1
  74. package/lib/components/Charts/StackedBarChart/StackedBarChart.js +2 -0
  75. package/lib/components/ChatBubble/ChatBubble.d.ts +13 -6
  76. package/lib/components/ChatBubble/ChatBubble.d.ts.map +1 -1
  77. package/lib/components/ChatBubble/ChatBubble.js +57 -14
  78. package/lib/components/Checkbox/Checkbox.d.ts +1 -0
  79. package/lib/components/Checkbox/Checkbox.d.ts.map +1 -1
  80. package/lib/components/Checkbox/Checkbox.js +34 -5
  81. package/lib/components/Checkbox/CheckboxGroup.d.ts +1 -0
  82. package/lib/components/Checkbox/CheckboxGroup.d.ts.map +1 -1
  83. package/lib/components/Checkbox/CheckboxGroup.js +21 -2
  84. package/lib/components/Chip/Chip.d.ts +1 -0
  85. package/lib/components/Chip/Chip.d.ts.map +1 -1
  86. package/lib/components/Chip/Chip.js +24 -3
  87. package/lib/components/CircularLoader/CircularLoader.d.ts +1 -0
  88. package/lib/components/CircularLoader/CircularLoader.d.ts.map +1 -1
  89. package/lib/components/CircularLoader/CircularLoader.js +7 -1
  90. package/lib/components/CollapsibleCard/CollapsibleCard.d.ts +5 -2
  91. package/lib/components/CollapsibleCard/CollapsibleCard.d.ts.map +1 -1
  92. package/lib/components/CollapsibleCard/CollapsibleCard.js +46 -7
  93. package/lib/components/Combobox/Combobox.d.ts +1 -0
  94. package/lib/components/Combobox/Combobox.d.ts.map +1 -1
  95. package/lib/components/Combobox/Combobox.js +45 -3
  96. package/lib/components/DateRangePicker/Calendar.d.ts +2 -1
  97. package/lib/components/DateRangePicker/Calendar.d.ts.map +1 -1
  98. package/lib/components/DateRangePicker/Calendar.js +24 -2
  99. package/lib/components/DateRangePicker/DateRangePicker.d.ts +1 -0
  100. package/lib/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
  101. package/lib/components/DateRangePicker/DateRangePicker.js +4 -2
  102. package/lib/components/DateRangePicker/DateRangeWrapper.d.ts +1 -0
  103. package/lib/components/DateRangePicker/DateRangeWrapper.d.ts.map +1 -1
  104. package/lib/components/DateRangePicker/DateRangeWrapper.js +104 -14
  105. package/lib/components/DateRangePicker/Day.d.ts +2 -1
  106. package/lib/components/DateRangePicker/Day.d.ts.map +1 -1
  107. package/lib/components/DateRangePicker/Day.js +11 -1
  108. package/lib/components/Dialog/Dialog.d.ts +10 -5
  109. package/lib/components/Dialog/Dialog.d.ts.map +1 -1
  110. package/lib/components/Dialog/Dialog.js +76 -11
  111. package/lib/components/Dropdown/Dropdown.d.ts +1 -0
  112. package/lib/components/Dropdown/Dropdown.d.ts.map +1 -1
  113. package/lib/components/Dropdown/Dropdown.js +19 -2
  114. package/lib/components/Dropdown/SimpleDropdown.d.ts +1 -0
  115. package/lib/components/Dropdown/SimpleDropdown.d.ts.map +1 -1
  116. package/lib/components/Dropdown/SimpleDropdown.js +2 -0
  117. package/lib/components/EmptyState/EmptyState.d.ts +1 -0
  118. package/lib/components/EmptyState/EmptyState.d.ts.map +1 -1
  119. package/lib/components/EmptyState/EmptyState.js +26 -1
  120. package/lib/components/ErrorMessage/ErrorMessage.d.ts +1 -0
  121. package/lib/components/ErrorMessage/ErrorMessage.d.ts.map +1 -1
  122. package/lib/components/ErrorMessage/ErrorMessage.js +30 -1
  123. package/lib/components/FileUpload/FileBlock/FileBlock.d.ts +1 -0
  124. package/lib/components/FileUpload/FileBlock/FileBlock.d.ts.map +1 -1
  125. package/lib/components/FileUpload/FileBlock/FileBlock.js +58 -10
  126. package/lib/components/FileUpload/FileUpload.d.ts +1 -0
  127. package/lib/components/FileUpload/FileUpload.d.ts.map +1 -1
  128. package/lib/components/FileUpload/FileUpload.js +30 -4
  129. package/lib/components/FilterButtonOverlay/FilterButtonOverlay.d.ts +1 -0
  130. package/lib/components/FilterButtonOverlay/FilterButtonOverlay.d.ts.map +1 -1
  131. package/lib/components/FilterButtonOverlay/FilterButtonOverlay.js +18 -1
  132. package/lib/components/FocusManager/FocusManager.d.ts +1 -0
  133. package/lib/components/FocusManager/FocusManager.d.ts.map +1 -1
  134. package/lib/components/FocusManager/FocusManager.js +6 -1
  135. package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.d.ts +2 -0
  136. package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.d.ts.map +1 -1
  137. package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.js +11 -1
  138. package/lib/components/FormTitleWrapper/FormTitleWrapper.d.ts +1 -0
  139. package/lib/components/FormTitleWrapper/FormTitleWrapper.d.ts.map +1 -1
  140. package/lib/components/FormTitleWrapper/FormTitleWrapper.js +24 -3
  141. package/lib/components/Grid/Grid.d.ts +4 -2
  142. package/lib/components/Grid/Grid.d.ts.map +1 -1
  143. package/lib/components/Grid/Grid.js +13 -3
  144. package/lib/components/Icon/ClickableIcon.d.ts +2 -0
  145. package/lib/components/Icon/ClickableIcon.d.ts.map +1 -1
  146. package/lib/components/Icon/ClickableIcon.js +13 -1
  147. package/lib/components/Icon/Icon.d.ts +1 -0
  148. package/lib/components/Icon/Icon.d.ts.map +1 -1
  149. package/lib/components/Icon/Icon.docs.d.ts +11 -0
  150. package/lib/components/Icon/Icon.docs.d.ts.map +1 -1
  151. package/lib/components/Icon/Icon.docs.js +11 -0
  152. package/lib/components/Icon/Icon.js +7 -1
  153. package/lib/components/Icon/SemanticIcon.d.ts +2 -1
  154. package/lib/components/Icon/SemanticIcon.d.ts.map +1 -1
  155. package/lib/components/Icon/SemanticIcon.js +11 -1
  156. package/lib/components/InContextAlert/InContextAlert.d.ts +3 -1
  157. package/lib/components/InContextAlert/InContextAlert.d.ts.map +1 -1
  158. package/lib/components/InContextAlert/InContextAlert.js +58 -10
  159. package/lib/components/InContextAlertWithMultipleActions/InContextAlertWithMultipleActions.d.ts +1 -0
  160. package/lib/components/InContextAlertWithMultipleActions/InContextAlertWithMultipleActions.d.ts.map +1 -1
  161. package/lib/components/InContextAlertWithMultipleActions/InContextAlertWithMultipleActions.js +30 -3
  162. package/lib/components/InfinitePagination/InfinitePagination.d.ts +1 -0
  163. package/lib/components/InfinitePagination/InfinitePagination.d.ts.map +1 -1
  164. package/lib/components/InfinitePagination/InfinitePagination.js +20 -3
  165. package/lib/components/InlineDropdown/InlineDropdown.d.ts +1 -0
  166. package/lib/components/InlineDropdown/InlineDropdown.d.ts.map +1 -1
  167. package/lib/components/InlineDropdown/InlineDropdown.js +27 -2
  168. package/lib/components/InlineDropdown/SimpleInlineDropdown.d.ts +2 -1
  169. package/lib/components/InlineDropdown/SimpleInlineDropdown.d.ts.map +1 -1
  170. package/lib/components/InlineDropdown/SimpleInlineDropdown.js +2 -0
  171. package/lib/components/Input/Input.d.ts +1 -0
  172. package/lib/components/Input/Input.d.ts.map +1 -1
  173. package/lib/components/Input/Input.js +64 -0
  174. package/lib/components/KPIBox/KPIBox.d.ts +1 -0
  175. package/lib/components/KPIBox/KPIBox.d.ts.map +1 -1
  176. package/lib/components/KPIBox/KPIBox.js +27 -2
  177. package/lib/components/LinearLoader/LinearLoader.d.ts +1 -0
  178. package/lib/components/LinearLoader/LinearLoader.d.ts.map +1 -1
  179. package/lib/components/LinearLoader/LinearLoader.js +7 -1
  180. package/lib/components/Link/Link.d.ts +1 -0
  181. package/lib/components/Link/Link.d.ts.map +1 -1
  182. package/lib/components/Link/Link.js +24 -2
  183. package/lib/components/Menu/Menu.d.ts +2 -0
  184. package/lib/components/Menu/Menu.d.ts.map +1 -1
  185. package/lib/components/Menu/Menu.js +64 -7
  186. package/lib/components/Menu/MenuOptionButton.d.ts +1 -0
  187. package/lib/components/Menu/MenuOptionButton.d.ts.map +1 -1
  188. package/lib/components/Menu/MenuOptionButton.js +84 -8
  189. package/lib/components/Modal/Modal.d.ts +9 -5
  190. package/lib/components/Modal/Modal.d.ts.map +1 -1
  191. package/lib/components/Modal/Modal.js +48 -5
  192. package/lib/components/Notification/Notification.d.ts +1 -0
  193. package/lib/components/Notification/Notification.d.ts.map +1 -1
  194. package/lib/components/Notification/Notification.js +24 -4
  195. package/lib/components/OptionButton/OptionButton.d.ts +1 -0
  196. package/lib/components/OptionButton/OptionButton.d.ts.map +1 -1
  197. package/lib/components/OptionButton/OptionButton.js +20 -2
  198. package/lib/components/OptionButton/SimpleOptionButton.d.ts +2 -1
  199. package/lib/components/OptionButton/SimpleOptionButton.d.ts.map +1 -1
  200. package/lib/components/OptionButton/SimpleOptionButton.js +2 -0
  201. package/lib/components/PageTitle/PageTitle.d.ts +7 -3
  202. package/lib/components/PageTitle/PageTitle.d.ts.map +1 -1
  203. package/lib/components/PageTitle/PageTitle.js +41 -4
  204. package/lib/components/Pagination/Pagination.d.ts +2 -0
  205. package/lib/components/Pagination/Pagination.d.ts.map +1 -1
  206. package/lib/components/Pagination/Pagination.js +33 -3
  207. package/lib/components/Pagination/PaginationItem.d.ts.map +1 -1
  208. package/lib/components/Pagination/PaginationItem.js +31 -5
  209. package/lib/components/Panel/Panel.d.ts +7 -3
  210. package/lib/components/Panel/Panel.d.ts.map +1 -1
  211. package/lib/components/Panel/Panel.js +34 -4
  212. package/lib/components/ProgressDonut/ProgressDonut.d.ts +1 -0
  213. package/lib/components/ProgressDonut/ProgressDonut.d.ts.map +1 -1
  214. package/lib/components/ProgressDonut/ProgressDonut.js +11 -2
  215. package/lib/components/PromptChip/PromptChip.d.ts +3 -0
  216. package/lib/components/PromptChip/PromptChip.d.ts.map +1 -1
  217. package/lib/components/PromptChip/PromptChip.js +44 -7
  218. package/lib/components/PromptInput/PromptInput.d.ts +1 -0
  219. package/lib/components/PromptInput/PromptInput.d.ts.map +1 -1
  220. package/lib/components/PromptInput/PromptInput.js +24 -3
  221. package/lib/components/RadioButton/RadioButton.d.ts +1 -0
  222. package/lib/components/RadioButton/RadioButton.d.ts.map +1 -1
  223. package/lib/components/RadioButton/RadioButton.js +14 -0
  224. package/lib/components/RadioButton/RadioGroup.d.ts +1 -0
  225. package/lib/components/RadioButton/RadioGroup.d.ts.map +1 -1
  226. package/lib/components/RadioButton/RadioGroup.js +17 -2
  227. package/lib/components/RadioTile/RadioTile.d.ts +1 -0
  228. package/lib/components/RadioTile/RadioTile.d.ts.map +1 -1
  229. package/lib/components/RadioTile/RadioTile.js +31 -6
  230. package/lib/components/RangeSlider/RangeSlider.d.ts +1 -0
  231. package/lib/components/RangeSlider/RangeSlider.d.ts.map +1 -1
  232. package/lib/components/RangeSlider/RangeSlider.js +33 -4
  233. package/lib/components/Rating/Rating.d.ts +1 -0
  234. package/lib/components/Rating/Rating.d.ts.map +1 -1
  235. package/lib/components/Rating/Rating.js +22 -3
  236. package/lib/components/ScoreBar/ScoreBar.d.ts +1 -0
  237. package/lib/components/ScoreBar/ScoreBar.d.ts.map +1 -1
  238. package/lib/components/ScoreBar/ScoreBar.js +16 -2
  239. package/lib/components/SearchInput/SearchInput.d.ts +1 -0
  240. package/lib/components/SearchInput/SearchInput.d.ts.map +1 -1
  241. package/lib/components/SearchInput/SearchInput.js +20 -2
  242. package/lib/components/Separator/Separator.d.ts +1 -0
  243. package/lib/components/Separator/Separator.d.ts.map +1 -1
  244. package/lib/components/Separator/Separator.js +7 -2
  245. package/lib/components/Shimmer/Shimmer.d.ts +5 -2
  246. package/lib/components/Shimmer/Shimmer.d.ts.map +1 -1
  247. package/lib/components/Shimmer/Shimmer.js +39 -8
  248. package/lib/components/SideMenuLink/SideMenuLink.d.ts +1 -0
  249. package/lib/components/SideMenuLink/SideMenuLink.d.ts.map +1 -1
  250. package/lib/components/SideMenuLink/SideMenuLink.js +33 -3
  251. package/lib/components/StatusIndicator/StatusIndicator.d.ts +1 -0
  252. package/lib/components/StatusIndicator/StatusIndicator.d.ts.map +1 -1
  253. package/lib/components/StatusIndicator/StatusIndicator.js +6 -1
  254. package/lib/components/Stepper/Step/Step.d.ts +1 -0
  255. package/lib/components/Stepper/Step/Step.d.ts.map +1 -1
  256. package/lib/components/Stepper/Step/Step.js +30 -4
  257. package/lib/components/Stepper/Step/StepContent.d.ts +2 -1
  258. package/lib/components/Stepper/Step/StepContent.d.ts.map +1 -1
  259. package/lib/components/Stepper/Step/StepContent.js +7 -1
  260. package/lib/components/Stepper/Step/StepLabel.d.ts +2 -1
  261. package/lib/components/Stepper/Step/StepLabel.d.ts.map +1 -1
  262. package/lib/components/Stepper/Step/StepLabel.js +7 -1
  263. package/lib/components/Stepper/Stepper.d.ts +1 -0
  264. package/lib/components/Stepper/Stepper.d.ts.map +1 -1
  265. package/lib/components/Stepper/Stepper.js +13 -2
  266. package/lib/components/StickyBar/StickyBar.d.ts +4 -2
  267. package/lib/components/StickyBar/StickyBar.d.ts.map +1 -1
  268. package/lib/components/StickyBar/StickyBar.js +16 -1
  269. package/lib/components/SubMenu/SubMenu.d.ts +1 -0
  270. package/lib/components/SubMenu/SubMenu.d.ts.map +1 -1
  271. package/lib/components/SubMenu/SubMenu.js +21 -3
  272. package/lib/components/Table/Cell.d.ts +13 -7
  273. package/lib/components/Table/Cell.d.ts.map +1 -1
  274. package/lib/components/Table/Cell.js +40 -9
  275. package/lib/components/Table/DefaultRow.d.ts +5 -2
  276. package/lib/components/Table/DefaultRow.d.ts.map +1 -1
  277. package/lib/components/Table/DefaultRow.js +38 -6
  278. package/lib/components/Table/DefaultTableHeader.d.ts +2 -0
  279. package/lib/components/Table/DefaultTableHeader.d.ts.map +1 -1
  280. package/lib/components/Table/DefaultTableHeader.js +17 -2
  281. package/lib/components/Table/StaticTable.d.ts.map +1 -1
  282. package/lib/components/Table/StaticTable.js +45 -11
  283. package/lib/components/Table/Table.d.ts +1 -0
  284. package/lib/components/Table/Table.d.ts.map +1 -1
  285. package/lib/components/Table/Table.docs.d.ts +11 -0
  286. package/lib/components/Table/Table.docs.d.ts.map +1 -1
  287. package/lib/components/Table/Table.docs.js +11 -0
  288. package/lib/components/Table/Table.js +6 -3
  289. package/lib/components/Table/TableActionBar.d.ts +8 -3
  290. package/lib/components/Table/TableActionBar.d.ts.map +1 -1
  291. package/lib/components/Table/TableActionBar.js +16 -3
  292. package/lib/components/Table/TableBottomBar.d.ts +2 -1
  293. package/lib/components/Table/TableBottomBar.d.ts.map +1 -1
  294. package/lib/components/Table/TableBottomBar.js +6 -1
  295. package/lib/components/Table/TableTopBar.d.ts +2 -1
  296. package/lib/components/Table/TableTopBar.d.ts.map +1 -1
  297. package/lib/components/Table/TableTopBar.js +6 -1
  298. package/lib/components/Tabs/Tab/Tab.d.ts +1 -0
  299. package/lib/components/Tabs/Tab/Tab.d.ts.map +1 -1
  300. package/lib/components/Tabs/Tab/Tab.js +9 -1
  301. package/lib/components/Tabs/TabList/TabDropdown.d.ts +2 -1
  302. package/lib/components/Tabs/TabList/TabDropdown.d.ts.map +1 -1
  303. package/lib/components/Tabs/TabList/TabDropdown.js +21 -4
  304. package/lib/components/Tabs/TabList/TabList.d.ts +1 -0
  305. package/lib/components/Tabs/TabList/TabList.d.ts.map +1 -1
  306. package/lib/components/Tabs/TabList/TabList.js +20 -5
  307. package/lib/components/Text/Text.d.ts +2 -0
  308. package/lib/components/Text/Text.d.ts.map +1 -1
  309. package/lib/components/Text/Text.js +189 -27
  310. package/lib/components/TextTile/TextTile.d.ts +1 -0
  311. package/lib/components/TextTile/TextTile.d.ts.map +1 -1
  312. package/lib/components/TextTile/TextTile.js +24 -3
  313. package/lib/components/Textarea/Textarea.d.ts +1 -0
  314. package/lib/components/Textarea/Textarea.d.ts.map +1 -1
  315. package/lib/components/Textarea/Textarea.js +38 -0
  316. package/lib/components/Timeline/Timeline.d.ts +1 -0
  317. package/lib/components/Timeline/Timeline.d.ts.map +1 -1
  318. package/lib/components/Timeline/Timeline.js +14 -4
  319. package/lib/components/Timeline/TimelineItem/TimelineItem.d.ts +1 -0
  320. package/lib/components/Timeline/TimelineItem/TimelineItem.d.ts.map +1 -1
  321. package/lib/components/Timeline/TimelineItem/TimelineItem.js +44 -3
  322. package/lib/components/Toast/Toast.d.ts +6 -2
  323. package/lib/components/Toast/Toast.d.ts.map +1 -1
  324. package/lib/components/Toast/Toast.js +81 -14
  325. package/lib/components/Toggle/Toggle.d.ts +1 -0
  326. package/lib/components/Toggle/Toggle.d.ts.map +1 -1
  327. package/lib/components/Toggle/Toggle.js +18 -0
  328. package/lib/components/TokenListInput/TokenListInput.d.ts +1 -0
  329. package/lib/components/TokenListInput/TokenListInput.d.ts.map +1 -1
  330. package/lib/components/TokenListInput/TokenListInput.js +56 -7
  331. package/lib/components/TokenListInput/TokenValueChips.d.ts +2 -0
  332. package/lib/components/TokenListInput/TokenValueChips.d.ts.map +1 -1
  333. package/lib/components/TokenListInput/TokenValueChips.js +12 -3
  334. package/lib/components/Tooltip/Tooltip.d.ts +2 -1
  335. package/lib/components/Tooltip/Tooltip.d.ts.map +1 -1
  336. package/lib/components/Tooltip/Tooltip.js +23 -1
  337. package/lib/components/Truncate/Truncate.d.ts +1 -0
  338. package/lib/components/Truncate/Truncate.d.ts.map +1 -1
  339. package/lib/components/Truncate/Truncate.js +12 -3
  340. package/lib/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.d.ts +2 -1
  341. package/lib/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.d.ts.map +1 -1
  342. package/lib/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.js +15 -1
  343. package/lib/components/Typeahead/SimpleTypeahead.d.ts +1 -0
  344. package/lib/components/Typeahead/SimpleTypeahead.d.ts.map +1 -1
  345. package/lib/components/Typeahead/SimpleTypeahead.js +3 -1
  346. package/lib/components/Typeahead/Typeahead.d.ts +1 -0
  347. package/lib/components/Typeahead/Typeahead.d.ts.map +1 -1
  348. package/lib/components/Typeahead/Typeahead.js +19 -2
  349. package/lib/components/WeekdayPicker/WeekdayPicker.d.ts +1 -0
  350. package/lib/components/WeekdayPicker/WeekdayPicker.d.ts.map +1 -1
  351. package/lib/components/WeekdayPicker/WeekdayPicker.js +16 -4
  352. package/package.json +1 -1
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.CloseIcon = exports.ClickableIcon = void 0;
7
7
  var React = _interopRequireWildcard(require("react"));
8
8
  var _classify = _interopRequireDefault(require("../../utils/classify"));
9
+ var _qa = require("../../utils/qa");
9
10
  var _Button = require("../Button");
10
11
  var _ = require("./");
11
12
  var _Text = require("../Text");
@@ -18,6 +19,7 @@ const ClickableIcon = exports.ClickableIcon = /*#__PURE__*/React.forwardRef((_re
18
19
  size = 'medium',
19
20
  ariaLabel,
20
21
  onClick,
22
+ testId,
21
23
  // Deprecated for Clickable Icon
22
24
  className,
23
25
  classNames,
@@ -43,11 +45,19 @@ const ClickableIcon = exports.ClickableIcon = /*#__PURE__*/React.forwardRef((_re
43
45
  [_ClickableIconModule.default.large]: size === 'large'
44
46
  }, classNames?.button),
45
47
  ref: ref,
48
+ testId: (0, _qa.generateTestId)({
49
+ base: testId,
50
+ slot: 'button'
51
+ }),
46
52
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Icon, {
47
53
  ...props,
48
54
  size: size,
49
55
  color: disabled ? _Text.TEXT_COLORS.disabled : props.color,
50
- className: classNames?.icon || className
56
+ className: classNames?.icon || className,
57
+ testId: (0, _qa.generateTestId)({
58
+ base: testId,
59
+ slot: 'icon'
60
+ })
51
61
  })
52
62
  });
53
63
  });
@@ -56,6 +66,7 @@ const CloseIcon = exports.CloseIcon = /*#__PURE__*/React.forwardRef((_ref2, ref)
56
66
  size = 'medium',
57
67
  type = 'regular',
58
68
  color = _Text.TEXT_COLORS.primary,
69
+ testId,
59
70
  ...props
60
71
  } = _ref2;
61
72
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(ClickableIcon, {
@@ -63,6 +74,7 @@ const CloseIcon = exports.CloseIcon = /*#__PURE__*/React.forwardRef((_ref2, ref)
63
74
  size: size,
64
75
  type: type,
65
76
  color: color,
77
+ testId: testId,
66
78
  ...props,
67
79
  ref: ref
68
80
  });
@@ -26,6 +26,7 @@ export interface IconProps {
26
26
  style?: {
27
27
  [key: string]: string;
28
28
  };
29
+ testId?: string;
29
30
  }
30
31
  export declare const Icon: Flow.AbstractComponent<IconProps, HTMLDivElement>;
31
32
  //# sourceMappingURL=Icon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAOrD,eAAO,MAAM,SAAS;;;;;EAKpB,CAAC;AAEH,eAAO,MAAM,SAAS;;;;EAIpB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,SAAS,CAAC;AAC9C,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,SAAS,CAAC;AAE9C,MAAM,WAAW,SAAS;IACxB,IAAI,CA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AC,EAAE,OAAO,CAAC;IACtB,KAAK,CAAC,EAAE;QACN,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KACvB,CAAC;IACF,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,IAAI,EAAE,IAAI,CAAC,iBAAiB,CAAC,SAAS,EAAE,cAAc,CAuChE,CAAC"}
@@ -118,6 +118,17 @@ export declare const ICON_DOCS: {
118
118
  };
119
119
  };
120
120
  };
121
+ readonly testId: {
122
+ readonly description: "Test ID for the component";
123
+ readonly control: {
124
+ readonly type: "text";
125
+ };
126
+ readonly table: {
127
+ readonly type: {
128
+ readonly summary: "string";
129
+ };
130
+ };
131
+ };
121
132
  };
122
133
  readonly parameters: {
123
134
  readonly docs: {
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.docs.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.docs.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6GZ,CAAC"}
1
+ {"version":3,"file":"Icon.docs.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.docs.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsHZ,CAAC"}
@@ -127,6 +127,17 @@ const ICON_DOCS = exports.ICON_DOCS = {
127
127
  summary: 'string'
128
128
  }
129
129
  }
130
+ },
131
+ testId: {
132
+ description: 'Test ID for the component',
133
+ control: {
134
+ type: 'text'
135
+ },
136
+ table: {
137
+ type: {
138
+ summary: 'string'
139
+ }
140
+ }
130
141
  }
131
142
  },
132
143
  parameters: {
@@ -7,6 +7,7 @@ exports.Icon = exports.ICON_TYPE = exports.ICON_SIZE = void 0;
7
7
  var React = _interopRequireWildcard(require("react"));
8
8
  var _typography = require("../../types/typography");
9
9
  var _classify = _interopRequireDefault(require("../../utils/classify"));
10
+ var _qa = require("../../utils/qa");
10
11
  var _typographyModule = _interopRequireDefault(require("../../styles/typography.module.css"));
11
12
  var _jsxRuntime = require("react/jsx-runtime");
12
13
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -31,10 +32,15 @@ const Icon = exports.Icon = /*#__PURE__*/React.forwardRef((_ref, forwardRef) =>
31
32
  className,
32
33
  style,
33
34
  onClick,
34
- swapOpacity
35
+ swapOpacity,
36
+ testId = 'icon'
35
37
  } = _ref;
36
38
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
37
39
  children: !!name && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
40
+ "data-testid": (0, _qa.generateTestId)({
41
+ base: testId,
42
+ slot: 'icon'
43
+ }),
38
44
  className: (0, _classify.default)(_typographyModule.default.centerAlignFlex, _typographyModule.default[`${size}Icon`], _typographyModule.default[color], className),
39
45
  onClick: onClick,
40
46
  ref: forwardRef,
@@ -9,7 +9,8 @@ export interface SemanticIconProps extends Omit<IconProps, 'classNames' | 'seman
9
9
  classNames?: ClassNames;
10
10
  semantic?: AlertSemanticType;
11
11
  disabled?: boolean;
12
+ testId?: string;
12
13
  }
13
- export declare const SemanticIcon: ({ semantic, classNames, size, ...iconProps }: SemanticIconProps) => React.JSX.Element;
14
+ export declare const SemanticIcon: ({ semantic, classNames, size, testId, ...iconProps }: SemanticIconProps) => React.JSX.Element;
14
15
  export {};
15
16
  //# sourceMappingURL=SemanticIcon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SemanticIcon.d.ts","sourceRoot":"","sources":["../../../src/components/Icon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MAAM,YAAY,GAAI,sDAM1B,iBAAiB,sBAyBnB,CAAC"}
@@ -7,6 +7,7 @@ exports.SemanticIcon = void 0;
7
7
  var React = _interopRequireWildcard(require("react"));
8
8
  var _typography = require("../../types/typography");
9
9
  var _classify = _interopRequireDefault(require("../../utils/classify"));
10
+ var _qa = require("../../utils/qa");
10
11
  var _Icon = require("./Icon");
11
12
  var _SemanticIconModule = _interopRequireDefault(require("./SemanticIcon.module.css"));
12
13
  var _jsxRuntime = require("react/jsx-runtime");
@@ -17,10 +18,15 @@ const SemanticIcon = _ref => {
17
18
  semantic = 'neutral',
18
19
  classNames,
19
20
  size = 'medium',
21
+ testId,
20
22
  ...iconProps
21
23
  } = _ref;
22
24
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
23
25
  children: !!iconProps.name && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
26
+ "data-testid": (0, _qa.generateTestId)({
27
+ base: testId,
28
+ slot: 'wrapper'
29
+ }),
24
30
  className: (0, _classify.default)(_SemanticIconModule.default.iconContainer, _SemanticIconModule.default[semantic], _SemanticIconModule.default[size], classNames?.wrapper, {
25
31
  [_SemanticIconModule.default.disabled]: iconProps.disabled
26
32
  }),
@@ -28,7 +34,11 @@ const SemanticIcon = _ref => {
28
34
  ...iconProps,
29
35
  className: (0, _classify.default)(iconProps.className, classNames?.icon),
30
36
  color: iconProps.disabled ? 'disabled' : _typography.TEXT_COLORS[semantic],
31
- size: size === 'large' ? 'medium' : size
37
+ size: size === 'large' ? 'medium' : size,
38
+ testId: (0, _qa.generateTestId)({
39
+ base: testId,
40
+ slot: 'icon'
41
+ })
32
42
  })
33
43
  })
34
44
  });
@@ -12,6 +12,7 @@ type ClassNames = Readonly<{
12
12
  }>;
13
13
  type InContextAlertBaseProps = {
14
14
  classNames?: ClassNames;
15
+ testId?: string;
15
16
  } & ({
16
17
  dismissable?: true;
17
18
  onCloseClick?: (e: React.SyntheticEvent<HTMLElement>) => unknown;
@@ -31,11 +32,12 @@ export interface InContextAlertProps extends Omit<InContextAlertBaseProps, 'sema
31
32
  leftIconName?: string;
32
33
  leftIconType?: IconType;
33
34
  }
34
- export declare const AlertIcon: ({ semantic, leftIconName, leftIconType, iconClassName, }: {
35
+ export declare const AlertIcon: ({ semantic, leftIconName, leftIconType, iconClassName, testId, }: {
35
36
  semantic: AlertSemanticType;
36
37
  leftIconName: string;
37
38
  leftIconType?: IconType;
38
39
  iconClassName?: string;
40
+ testId?: string;
39
41
  }) => React.JSX.Element;
40
42
  export declare const InContextAlert: Flow.AbstractComponent<InContextAlertProps, HTMLDivElement>;
41
43
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"InContextAlert.d.ts","sourceRoot":"","sources":["../../../src/components/InContextAlert/InContextAlert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,kBAAkB,CAAC;AAExD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAIrD,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AASlD,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC,CAAC;AAEH,KAAK,uBAAuB,GAAG;IAC7B,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB,GAAG,CACA;IACE,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,YAAY,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,KAAK,OAAO,CAAC;IACjE,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AAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,sBAyEA,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,IAAI,CAAC,iBAAiB,CACjD,mBAAmB,EACnB,cAAc,CAmHf,CAAC"}
@@ -8,6 +8,7 @@ var React = _interopRequireWildcard(require("react"));
8
8
  var _common = require("../../types/common");
9
9
  var _typography = require("../../types/typography");
10
10
  var _classify = require("../../utils/classify");
11
+ var _qa = require("../../utils/qa");
11
12
  var _Icon = require("../Icon");
12
13
  var _Link = require("../Link");
13
14
  var _Text = require("../Text");
@@ -21,7 +22,8 @@ const AlertIcon = _ref => {
21
22
  semantic,
22
23
  leftIconName,
23
24
  leftIconType,
24
- iconClassName
25
+ iconClassName,
26
+ testId
25
27
  } = _ref;
26
28
  switch (semantic) {
27
29
  case _common.ALERT_SEMANTIC.neutral:
@@ -30,7 +32,11 @@ const AlertIcon = _ref => {
30
32
  name: leftIconName ? leftIconName : 'face-smile',
31
33
  size: "small",
32
34
  type: leftIconType,
33
- className: iconClassName
35
+ className: iconClassName,
36
+ testId: (0, _qa.generateTestId)({
37
+ base: testId,
38
+ slot: 'icon'
39
+ })
34
40
  });
35
41
  case _common.ALERT_SEMANTIC.success:
36
42
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
@@ -38,7 +44,11 @@ const AlertIcon = _ref => {
38
44
  size: "small",
39
45
  color: _typography.TEXT_COLORS.success,
40
46
  type: leftIconType,
41
- className: iconClassName
47
+ className: iconClassName,
48
+ testId: (0, _qa.generateTestId)({
49
+ base: testId,
50
+ slot: 'icon'
51
+ })
42
52
  });
43
53
  case _common.ALERT_SEMANTIC.information:
44
54
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
@@ -46,7 +56,11 @@ const AlertIcon = _ref => {
46
56
  size: "small",
47
57
  color: _typography.TEXT_COLORS.information,
48
58
  type: leftIconType,
49
- className: iconClassName
59
+ className: iconClassName,
60
+ testId: (0, _qa.generateTestId)({
61
+ base: testId,
62
+ slot: 'icon'
63
+ })
50
64
  });
51
65
  case _common.ALERT_SEMANTIC.warning:
52
66
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
@@ -54,7 +68,11 @@ const AlertIcon = _ref => {
54
68
  size: "small",
55
69
  color: _typography.TEXT_COLORS.warning,
56
70
  type: leftIconType,
57
- className: iconClassName
71
+ className: iconClassName,
72
+ testId: (0, _qa.generateTestId)({
73
+ base: testId,
74
+ slot: 'icon'
75
+ })
58
76
  });
59
77
  case _common.ALERT_SEMANTIC.danger:
60
78
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
@@ -62,7 +80,11 @@ const AlertIcon = _ref => {
62
80
  size: "small",
63
81
  color: _typography.TEXT_COLORS.danger,
64
82
  type: leftIconType,
65
- className: iconClassName
83
+ className: iconClassName,
84
+ testId: (0, _qa.generateTestId)({
85
+ base: testId,
86
+ slot: 'icon'
87
+ })
66
88
  });
67
89
  default:
68
90
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
@@ -70,7 +92,11 @@ const AlertIcon = _ref => {
70
92
  name: leftIconName ? leftIconName : 'face-smile',
71
93
  size: "small",
72
94
  type: leftIconType,
73
- className: iconClassName
95
+ className: iconClassName,
96
+ testId: (0, _qa.generateTestId)({
97
+ base: testId,
98
+ slot: 'icon'
99
+ })
74
100
  });
75
101
  }
76
102
  };
@@ -85,7 +111,8 @@ const InContextAlert = exports.InContextAlert = /*#__PURE__*/React.forwardRef((p
85
111
  actionText = '',
86
112
  actionTextColor = _typography.TEXT_COLORS.primary,
87
113
  onAction,
88
- leftIconType
114
+ leftIconType,
115
+ testId
89
116
  } = props;
90
117
 
91
118
  // Type narrowing to safely access properties only when they exist
@@ -108,23 +135,40 @@ const InContextAlert = exports.InContextAlert = /*#__PURE__*/React.forwardRef((p
108
135
  [_InContextAlertModule.default.danger]: semantic === _common.ALERT_SEMANTIC.danger
109
136
  }, classNames?.wrapper),
110
137
  ref: ref,
138
+ "data-testid": (0, _qa.generateTestId)({
139
+ base: testId,
140
+ slot: 'wrapper'
141
+ }),
111
142
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(AlertIcon, {
112
143
  semantic: semantic,
113
144
  leftIconName: leftIconName,
114
145
  leftIconType: leftIconType,
115
- iconClassName: classNames?.icon
146
+ iconClassName: classNames?.icon,
147
+ testId: testId
116
148
  }), React.Children.count(children) > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.SubTitleExtraSmall, {
117
149
  className: (0, _classify.classify)(classNames?.alertText),
118
150
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Truncate.Truncate, {
119
151
  line: 2,
120
152
  wordBreak: "initial",
153
+ testId: (0, _qa.generateTestId)({
154
+ base: testId,
155
+ slot: 'text'
156
+ }),
121
157
  children: children
122
158
  })
123
159
  }), !!(actionText || dismissable) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
124
160
  className: (0, _classify.classify)(_InContextAlertModule.default.actionContainer, classNames?.actionContainer),
161
+ "data-testid": (0, _qa.generateTestId)({
162
+ base: testId,
163
+ slot: 'actions'
164
+ }),
125
165
  children: [!!actionText && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Link.Link, {
126
166
  onClick: onAction,
127
167
  color: actionTextColor,
168
+ testId: (0, _qa.generateTestId)({
169
+ base: testId,
170
+ slot: 'action-link'
171
+ }),
128
172
  children: actionText
129
173
  }), !!dismissable && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.ClickableIcon, {
130
174
  color: _typography.TEXT_COLORS.primary,
@@ -133,7 +177,11 @@ const InContextAlert = exports.InContextAlert = /*#__PURE__*/React.forwardRef((p
133
177
  size: "small",
134
178
  type: "regular",
135
179
  onClick: closeClickHandler,
136
- className: _InContextAlertModule.default.closeIcon
180
+ className: _InContextAlertModule.default.closeIcon,
181
+ testId: (0, _qa.generateTestId)({
182
+ base: testId,
183
+ slot: 'close-button'
184
+ })
137
185
  })]
138
186
  })]
139
187
  })
@@ -7,6 +7,7 @@ export interface InContextAlertWithMultipleActionsProps extends Omit<InContextAl
7
7
  secondaryActionText?: string;
8
8
  onSecondaryAction?: React.MouseEventHandler<HTMLAnchorElement>;
9
9
  secondaryActionTextColor?: ColorTypes;
10
+ testId?: string;
10
11
  }
11
12
  export declare const InContextAlertWithMultipleActions: Flow.AbstractComponent<InContextAlertWithMultipleActionsProps, HTMLDivElement>;
12
13
  //# sourceMappingURL=InContextAlertWithMultipleActions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InContextAlertWithMultipleActions.d.ts","sourceRoot":"","sources":["../../../src/components/InContextAlertWithMultipleActions/InContextAlertWithMultipleActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAGrD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAKrD,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,+BAA+B,CAAC;AAQvE,MAAM,WAAW,sCACf,SAAQ,IAAI,CACV,mBAAmB,EACjB,QAAQ,GACR,qBAAqB,GACrB,mBAAmB,GACnB,0BAA0B,CAC7B;IACD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,iBAAiB,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAC/D,wBAAwB,CAAC,EAAE,UAAU,CAAC;CACvC;AAED,eAAO,MAAM,iCAAiC,EAAE,IAAI,CAAC,iBAAiB,CACpE,sCAAsC,EACtC,cAAc,CAiHf,CAAC"}
1
+ {"version":3,"file":"InContextAlertWithMultipleActions.d.ts","sourceRoot":"","sources":["../../../src/components/InContextAlertWithMultipleActions/InContextAlertWithMultipleActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAGrD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAMrD,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,+BAA+B,CAAC;AAQvE,MAAM,WAAW,sCACf,SAAQ,IAAI,CACV,mBAAmB,EACjB,QAAQ,GACR,qBAAqB,GACrB,mBAAmB,GACnB,0BAA0B,CAC7B;IACD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,iBAAiB,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAC/D,wBAAwB,CAAC,EAAE,UAAU,CAAC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,iCAAiC,EAAE,IAAI,CAAC,iBAAiB,CACpE,sCAAsC,EACtC,cAAc,CAkIf,CAAC"}
@@ -8,6 +8,7 @@ var React = _interopRequireWildcard(require("react"));
8
8
  var _common = require("../../types/common");
9
9
  var _typography = require("../../types/typography");
10
10
  var _classify = require("../../utils/classify");
11
+ var _qa = require("../../utils/qa");
11
12
  var _Icon = require("../Icon");
12
13
  var _InContextAlert = require("../InContextAlert");
13
14
  var _Link = require("../Link");
@@ -30,7 +31,8 @@ const InContextAlertWithMultipleActions = exports.InContextAlertWithMultipleActi
30
31
  secondaryActionText = '',
31
32
  onSecondaryAction,
32
33
  secondaryActionTextColor = _typography.TEXT_COLORS.primary,
33
- leftIconType
34
+ leftIconType,
35
+ testId
34
36
  } = props;
35
37
  // Type narrowing to safely access selfDismiss only when dismissable is true
36
38
  const selfDismiss = dismissable === true && 'selfDismiss' in props ? props.selfDismiss : false;
@@ -52,25 +54,46 @@ const InContextAlertWithMultipleActions = exports.InContextAlertWithMultipleActi
52
54
  [_InContextAlertWithMultipleActionsModule.default.danger]: semantic === _common.ALERT_SEMANTIC.danger
53
55
  }, classNames?.wrapper),
54
56
  ref: ref,
57
+ "data-testid": (0, _qa.generateTestId)({
58
+ base: testId,
59
+ slot: 'wrapper'
60
+ }),
55
61
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_InContextAlert.AlertIcon, {
56
62
  semantic: semantic,
57
63
  leftIconName: leftIconName,
58
64
  leftIconType: leftIconType,
59
- iconClassName: classNames?.icon
65
+ iconClassName: classNames?.icon,
66
+ testId: testId
60
67
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
61
68
  className: (0, _classify.classify)(_InContextAlertWithMultipleActionsModule.default.contentContainer, inline ? _InContextAlertWithMultipleActionsModule.default.contentContainerRow : _InContextAlertWithMultipleActionsModule.default.contentContainerColumn, classNames?.contentContainer),
69
+ "data-testid": (0, _qa.generateTestId)({
70
+ base: testId,
71
+ slot: 'content'
72
+ }),
62
73
  children: [React.Children.count(children) > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.SubTitleExtraSmall, {
63
74
  className: (0, _classify.classify)(classNames?.alertText),
64
75
  children: children
65
76
  }), !!(actionText || secondaryActionText) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
66
77
  className: (0, _classify.classify)(_InContextAlertWithMultipleActionsModule.default.actionContainer, classNames?.actionContainer),
78
+ "data-testid": (0, _qa.generateTestId)({
79
+ base: testId,
80
+ slot: 'actions'
81
+ }),
67
82
  children: [!!actionText && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Link.Link, {
68
83
  onClick: onAction,
69
84
  color: actionTextColor,
85
+ testId: (0, _qa.generateTestId)({
86
+ base: testId,
87
+ slot: 'primary-action'
88
+ }),
70
89
  children: actionText
71
90
  }), !!secondaryActionText && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Link.Link, {
72
91
  onClick: onSecondaryAction,
73
92
  color: secondaryActionTextColor,
93
+ testId: (0, _qa.generateTestId)({
94
+ base: testId,
95
+ slot: 'secondary-action'
96
+ }),
74
97
  children: secondaryActionText
75
98
  })]
76
99
  })]
@@ -82,7 +105,11 @@ const InContextAlertWithMultipleActions = exports.InContextAlertWithMultipleActi
82
105
  size: "small",
83
106
  type: "regular",
84
107
  onClick: closeClickHandler,
85
- className: _InContextAlertWithMultipleActionsModule.default.closeIcon
108
+ className: _InContextAlertWithMultipleActionsModule.default.closeIcon,
109
+ testId: (0, _qa.generateTestId)({
110
+ base: testId,
111
+ slot: 'close-button'
112
+ })
86
113
  })
87
114
  })]
88
115
  })
@@ -13,6 +13,7 @@ export type InfinitePaginationProps = {
13
13
  getItemKey?: (item: GenericObject, index: number) => string | number;
14
14
  hasNextPage: boolean;
15
15
  loadMoreItems: () => Promise<void>;
16
+ testId?: string;
16
17
  } & ({
17
18
  itemSize: (index: number) => number;
18
19
  isVariableSizeList: true;
@@ -1 +1 @@
1
- {"version":3,"file":"InfinitePagination.d.ts","sourceRoot":"","sources":["../../../src/components/InfinitePagination/InfinitePagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAQrD,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,sBAAsB,CAAC;AAKxD,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAIH,MAAM,MAAM,uBAAuB,GAAG;IACpC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,UAAU,EAAE,CAAC,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;IACpE,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,MAAM,CAAC;IACrE,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACpC,GAAG,CACA;IACE,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACpC,kBAAkB,EAAE,IAAI,CAAC;CAC1B,GACD;IACE,QAAQ,EAAE,MAAM,CAAC;IACjB,kBAAkB,CAAC,EAAE,KAAK,CAAC;CAC5B,CACJ,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,IAAI,CAAC,iBAAiB,CACrD,uBAAuB,EACvB,cAAc,CA4Ff,CAAC"}
1
+ {"version":3,"file":"InfinitePagination.d.ts","sourceRoot":"","sources":["../../../src/components/InfinitePagination/InfinitePagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AASrD,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,sBAAsB,CAAC;AAKxD,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAIH,MAAM,MAAM,uBAAuB,GAAG;IACpC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,UAAU,EAAE,CAAC,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;IACpE,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,MAAM,CAAC;IACrE,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,CACA;IACE,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACpC,kBAAkB,EAAE,IAAI,CAAC;CAC1B,GACD;IACE,QAAQ,EAAE,MAAM,CAAC;IACjB,kBAAkB,CAAC,EAAE,KAAK,CAAC;CAC5B,CACJ,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,IAAI,CAAC,iBAAiB,CACrD,uBAAuB,EACvB,cAAc,CAwGf,CAAC"}
@@ -9,6 +9,7 @@ var _reactWindow = require("react-window");
9
9
  var _hooks = require("../../hooks");
10
10
  var _space = require("../../styles/variables/_space");
11
11
  var _classify = _interopRequireDefault(require("../../utils/classify"));
12
+ var _qa = require("../../utils/qa");
12
13
  var _CircularLoader = require("../CircularLoader");
13
14
  var _InfinitePaginationModule = _interopRequireDefault(require("./InfinitePagination.module.css"));
14
15
  var _jsxRuntime = require("react/jsx-runtime");
@@ -26,7 +27,8 @@ const InfinitePagination = exports.InfinitePagination = /*#__PURE__*/React.forwa
26
27
  classNames,
27
28
  hasNextPage,
28
29
  loadMoreItems,
29
- isVariableSizeList
30
+ isVariableSizeList,
31
+ testId
30
32
  } = props;
31
33
  const listRef = React.useRef(null);
32
34
  const itemsLength = items.length;
@@ -55,19 +57,34 @@ const InfinitePagination = exports.InfinitePagination = /*#__PURE__*/React.forwa
55
57
  return index === itemsLength ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
56
58
  style: style,
57
59
  className: _InfinitePaginationModule.default.loader,
60
+ "data-testid": (0, _qa.generateTestId)({
61
+ base: testId,
62
+ slot: 'loader'
63
+ }),
58
64
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CircularLoader.CircularLoader, {
59
- size: "large"
65
+ size: "large",
66
+ testId: (0, _qa.generateTestId)({
67
+ base: testId,
68
+ slot: 'loader-icon'
69
+ })
60
70
  })
61
71
  }) : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
62
72
  style: style,
63
73
  className: _InfinitePaginationModule.default.listRow,
74
+ "data-testid": (0, _qa.generateTestId)({
75
+ base: testId,
76
+ slot: `item-${index}`
77
+ }),
64
78
  children: renderItem(items[index], index)
65
79
  });
66
80
  };
67
81
  const itemKey = React.useCallback(index => index === itemsLength ? 'loading-indicator' : getItemKey ? getItemKey(items[index], index) : index, [items, getItemKey]);
68
82
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
69
83
  ref: containerRef,
70
- "data-testid": "InfinitePagination",
84
+ "data-testid": (0, _qa.generateTestId)({
85
+ base: testId,
86
+ slot: 'root'
87
+ }),
71
88
  className: (0, _classify.default)(_InfinitePaginationModule.default.wrapper, classNames?.wrapper),
72
89
  children: isVariableSizeList ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactWindow.VariableSizeList, {
73
90
  ref: listRef,
@@ -19,6 +19,7 @@ export interface InlineDropdownProps extends Omit<UnstyledButtonProps, 'classNam
19
19
  size?: 'medium' | 'small' | 'extraSmall';
20
20
  elevation?: ElevationType;
21
21
  clickAwayRef?: React.RefObject<ClickAwayRefType | null>;
22
+ testId?: string;
22
23
  }
23
24
  export declare const InlineDropdown: Flow.AbstractComponent<InlineDropdownProps, HTMLDivElement>;
24
25
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"InlineDropdown.d.ts","sourceRoot":"","sources":["../../../src/components/InlineDropdown/InlineDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAKrD,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AAI3D,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AAE/D,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,+BAA+B,CAAC;AAE9D,OAAO,KAAK,EAAC,UAAU,EAAE,SAAS,EAAC,MAAM,qBAAqB,CAAC;AAE/D,OAAO,KAAK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../../utils/classify");
12
12
  var _clickAway = require("../../utils/click-away");
13
13
  var _mergeRefs = require("../../utils/merge-refs");
14
+ var _qa = require("../../utils/qa");
14
15
  var _Button = require("../Button");
15
16
  var _Icon = require("../Icon");
16
17
  var _Menu = require("../Menu");
@@ -33,6 +34,7 @@ const InlineDropdown = exports.InlineDropdown = /*#__PURE__*/React.forwardRef((_
33
34
  children,
34
35
  clickAwayRef,
35
36
  elevation = 'modal',
37
+ testId,
36
38
  ...restButtonProps
37
39
  } = _ref;
38
40
  const {
@@ -68,7 +70,10 @@ const InlineDropdown = exports.InlineDropdown = /*#__PURE__*/React.forwardRef((_
68
70
  triggerRef
69
71
  } = _ref2;
70
72
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
71
- "data-testid": "InlineDropdown",
73
+ "data-testid": (0, _qa.generateTestId)({
74
+ base: testId,
75
+ slot: 'root'
76
+ }),
72
77
  className: (0, _classify.classify)(_InlineDropdownModule.default.inlineDropdownContainer, classNames?.dropdownContainer),
73
78
  ref: ref,
74
79
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_Button.UnstyledButton, {
@@ -82,7 +87,15 @@ const InlineDropdown = exports.InlineDropdown = /*#__PURE__*/React.forwardRef((_
82
87
  className: (0, _classify.classify)(_InlineDropdownModule.default.inlineButton, {
83
88
  [_InlineDropdownModule.default.disabled]: disabled
84
89
  }, _InlineDropdownModule.default[size], classNames?.buttonWrapper),
90
+ testId: (0, _qa.generateTestId)({
91
+ base: testId,
92
+ slot: 'button'
93
+ }),
85
94
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Truncate.Truncate, {
95
+ testId: (0, _qa.generateTestId)({
96
+ base: testId,
97
+ slot: 'text'
98
+ }),
86
99
  children: children
87
100
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
88
101
  name: isOpen ? 'caret-up' : 'caret-down',
@@ -90,6 +103,10 @@ const InlineDropdown = exports.InlineDropdown = /*#__PURE__*/React.forwardRef((_
90
103
  type: "solid",
91
104
  className: (0, _classify.classify)({
92
105
  [_InlineDropdownModule.default.disabled]: disabled
106
+ }),
107
+ testId: (0, _qa.generateTestId)({
108
+ base: testId,
109
+ slot: 'icon'
93
110
  })
94
111
  })]
95
112
  }), isOpen && menu && /*#__PURE__*/(0, _jsxRuntime.jsx)(_react2.FloatingPortal, {
@@ -100,6 +117,10 @@ const InlineDropdown = exports.InlineDropdown = /*#__PURE__*/React.forwardRef((_
100
117
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
101
118
  className: _InlineDropdownModule.default.menuWrapper,
102
119
  ref: (0, _mergeRefs.mergeRefs)([refs.setFloating, boundaryRef]),
120
+ "data-testid": (0, _qa.generateTestId)({
121
+ base: testId,
122
+ slot: 'menu-wrapper'
123
+ }),
103
124
  style: {
104
125
  display: 'flex',
105
126
  position: strategy,
@@ -126,7 +147,11 @@ const InlineDropdown = exports.InlineDropdown = /*#__PURE__*/React.forwardRef((_
126
147
  }
127
148
  },
128
149
  size: menu.size || 'medium',
129
- onTabOut: clickAway
150
+ onTabOut: clickAway,
151
+ testId: (0, _qa.generateTestId)({
152
+ base: testId,
153
+ slot: 'menu'
154
+ })
130
155
  })
131
156
  })
132
157
  })