@laerdal/life-react-components 6.0.0-dev.8.full → 6.0.1

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 (329) hide show
  1. package/README.md +1 -1
  2. package/dist/Accordion/__tests__/AccordionMenu.test.tsx +42 -0
  3. package/dist/Accordion/__tests__/ContentAccordion.test.tsx +150 -0
  4. package/dist/AuthPage/__tests__/AuthPage.test.tsx +27 -0
  5. package/dist/Banners/__tests__/Banner.test.tsx +47 -0
  6. package/dist/Banners/__tests__/OverviewBanner.test.tsx +20 -0
  7. package/dist/Breadcrumb/__tests__/Breadcrumb.test.tsx +78 -0
  8. package/dist/Button/DualFunctionButton.cjs +4 -4
  9. package/dist/Button/DualFunctionButton.cjs.map +1 -1
  10. package/dist/Button/DualFunctionButton.d.ts +2 -2
  11. package/dist/Button/DualFunctionButton.js +4 -4
  12. package/dist/Button/DualFunctionButton.js.map +1 -1
  13. package/dist/Button/{Button.cjs → TextButton.cjs} +179 -92
  14. package/dist/Button/TextButton.cjs.map +1 -0
  15. package/dist/Button/TextButton.d.ts +70 -0
  16. package/dist/Button/{Button.js → TextButton.js} +178 -91
  17. package/dist/Button/TextButton.js.map +1 -0
  18. package/dist/Button/__tests__/BackButton.test.tsx +32 -0
  19. package/dist/Button/__tests__/Button.test.tsx +45 -0
  20. package/dist/Button/__tests__/DualButton.test.tsx +119 -0
  21. package/dist/Button/__tests__/TextButton.test.tsx +45 -0
  22. package/dist/Button/index.cjs +11 -11
  23. package/dist/Button/index.cjs.map +1 -1
  24. package/dist/Button/index.d.ts +2 -2
  25. package/dist/Button/index.js +2 -2
  26. package/dist/Button/index.js.map +1 -1
  27. package/dist/Card/HorizontalCard/__tests__/HorizontalCard.test.tsx +71 -0
  28. package/dist/Card/VerticalCard/{Card.cjs → VerticalCard.cjs} +62 -26
  29. package/dist/Card/VerticalCard/VerticalCard.cjs.map +1 -0
  30. package/dist/Card/VerticalCard/VerticalCard.d.ts +25 -0
  31. package/dist/Card/VerticalCard/{Card.js → VerticalCard.js} +62 -26
  32. package/dist/Card/VerticalCard/VerticalCard.js.map +1 -0
  33. package/dist/Card/VerticalCard/{CardBottomSection.cjs → VerticalCardBottomSection.cjs} +45 -27
  34. package/dist/Card/VerticalCard/VerticalCardBottomSection.cjs.map +1 -0
  35. package/dist/Card/VerticalCard/VerticalCardBottomSection.d.ts +53 -0
  36. package/dist/Card/VerticalCard/{CardBottomSection.js → VerticalCardBottomSection.js} +45 -27
  37. package/dist/Card/VerticalCard/VerticalCardBottomSection.js.map +1 -0
  38. package/dist/Card/VerticalCard/{CardMiddleSection.cjs → VerticalCardMiddleSection.cjs} +46 -23
  39. package/dist/Card/VerticalCard/VerticalCardMiddleSection.cjs.map +1 -0
  40. package/dist/Card/VerticalCard/VerticalCardMiddleSection.d.ts +42 -0
  41. package/dist/Card/VerticalCard/{CardMiddleSection.js → VerticalCardMiddleSection.js} +45 -23
  42. package/dist/Card/VerticalCard/VerticalCardMiddleSection.js.map +1 -0
  43. package/dist/Card/VerticalCard/{CardTopSection.cjs → VerticalCardTopSection.cjs} +18 -16
  44. package/dist/Card/VerticalCard/VerticalCardTopSection.cjs.map +1 -0
  45. package/dist/Card/VerticalCard/{CardTopSection.d.ts → VerticalCardTopSection.d.ts} +8 -8
  46. package/dist/Card/VerticalCard/{CardTopSection.js → VerticalCardTopSection.js} +17 -15
  47. package/dist/Card/VerticalCard/VerticalCardTopSection.js.map +1 -0
  48. package/dist/Card/VerticalCard/__tests__/VerticalCard.test.tsx +124 -0
  49. package/dist/Card/VerticalCard/index.cjs +25 -25
  50. package/dist/Card/VerticalCard/index.cjs.map +1 -1
  51. package/dist/Card/VerticalCard/index.d.ts +7 -7
  52. package/dist/Card/VerticalCard/index.js +7 -7
  53. package/dist/Card/VerticalCard/index.js.map +1 -1
  54. package/dist/Chips/ActionChip.cjs +6 -0
  55. package/dist/Chips/ActionChip.cjs.map +1 -1
  56. package/dist/Chips/ActionChip.js +6 -0
  57. package/dist/Chips/ActionChip.js.map +1 -1
  58. package/dist/Chips/ChipStyles.cjs +210 -31
  59. package/dist/Chips/ChipStyles.cjs.map +1 -1
  60. package/dist/Chips/ChipStyles.js +210 -31
  61. package/dist/Chips/ChipStyles.js.map +1 -1
  62. package/dist/Chips/ChoiceChips.cjs +1 -1
  63. package/dist/Chips/ChoiceChips.cjs.map +1 -1
  64. package/dist/Chips/ChoiceChips.js +1 -1
  65. package/dist/Chips/ChoiceChips.js.map +1 -1
  66. package/dist/Chips/FilterChip.cjs +8 -1
  67. package/dist/Chips/FilterChip.cjs.map +1 -1
  68. package/dist/Chips/FilterChip.js +8 -1
  69. package/dist/Chips/FilterChip.js.map +1 -1
  70. package/dist/Chips/InputChip.cjs +14 -0
  71. package/dist/Chips/InputChip.cjs.map +1 -1
  72. package/dist/Chips/InputChip.js +14 -0
  73. package/dist/Chips/InputChip.js.map +1 -1
  74. package/dist/Chips/__tests__/ActionChip.test.tsx +94 -0
  75. package/dist/Chips/__tests__/ChoiceChips.test.tsx +79 -0
  76. package/dist/Chips/__tests__/FilterChip.test.tsx +95 -0
  77. package/dist/Chips/__tests__/InputChip.test.tsx +155 -0
  78. package/dist/ChipsInput/ChipInputField.cjs +8 -2
  79. package/dist/ChipsInput/ChipInputField.cjs.map +1 -1
  80. package/dist/ChipsInput/ChipInputField.js +8 -2
  81. package/dist/ChipsInput/ChipInputField.js.map +1 -1
  82. package/dist/ChipsInput/__tests__/ChipDropdownInput.test.tsx +100 -0
  83. package/dist/ChipsInput/__tests__/ChipInputFields.test.tsx +155 -0
  84. package/dist/Dropdown/DropdownContent.cjs +2 -2
  85. package/dist/Dropdown/DropdownContent.cjs.map +1 -1
  86. package/dist/Dropdown/DropdownContent.js +2 -2
  87. package/dist/Dropdown/DropdownContent.js.map +1 -1
  88. package/dist/Dropdown/__tests__/DropdownFilter.test.tsx +39 -0
  89. package/dist/Footer/Components/FooterNewsletterAndSocialSection.cjs +0 -1
  90. package/dist/Footer/Components/FooterNewsletterAndSocialSection.cjs.map +1 -1
  91. package/dist/Footer/Components/FooterNewsletterAndSocialSection.js +0 -1
  92. package/dist/Footer/Components/FooterNewsletterAndSocialSection.js.map +1 -1
  93. package/dist/Footer/Components/FooterTop.cjs +3 -0
  94. package/dist/Footer/Components/FooterTop.cjs.map +1 -1
  95. package/dist/Footer/Components/FooterTop.js +3 -0
  96. package/dist/Footer/Components/FooterTop.js.map +1 -1
  97. package/dist/Footer/__tests__/Footer.test.tsx +182 -0
  98. package/dist/GlobalNavigationBar/Logo.cjs +2 -1
  99. package/dist/GlobalNavigationBar/Logo.cjs.map +1 -1
  100. package/dist/GlobalNavigationBar/Logo.js +2 -1
  101. package/dist/GlobalNavigationBar/Logo.js.map +1 -1
  102. package/dist/GlobalNavigationBar/__tests__/Logo.test.tsx +39 -0
  103. package/dist/GlobalNavigationBar/desktop/MainMenu.cjs +10 -1
  104. package/dist/GlobalNavigationBar/desktop/MainMenu.cjs.map +1 -1
  105. package/dist/GlobalNavigationBar/desktop/MainMenu.js +10 -1
  106. package/dist/GlobalNavigationBar/desktop/MainMenu.js.map +1 -1
  107. package/dist/GlobalNavigationBar/desktop/RightSideNav.cjs +5 -4
  108. package/dist/GlobalNavigationBar/desktop/RightSideNav.cjs.map +1 -1
  109. package/dist/GlobalNavigationBar/desktop/RightSideNav.js +6 -5
  110. package/dist/GlobalNavigationBar/desktop/RightSideNav.js.map +1 -1
  111. package/dist/GlobalNavigationBar/desktop/UserMenu.cjs +1 -1
  112. package/dist/GlobalNavigationBar/desktop/UserMenu.cjs.map +1 -1
  113. package/dist/GlobalNavigationBar/desktop/UserMenu.js +2 -2
  114. package/dist/GlobalNavigationBar/desktop/UserMenu.js.map +1 -1
  115. package/dist/GlobalNavigationBar/desktop/__tests__/DesktopActions.test.tsx +108 -0
  116. package/dist/GlobalNavigationBar/desktop/__tests__/ExtendedMainMenu.test.tsx +28 -0
  117. package/dist/GlobalNavigationBar/desktop/__tests__/MainMenu.test.tsx +55 -0
  118. package/dist/GlobalNavigationBar/desktop/__tests__/RightSideNav.test.tsx +45 -0
  119. package/dist/GlobalNavigationBar/desktop/__tests__/UserMenu.test.tsx +125 -0
  120. package/dist/GlobalNavigationBar/mobile/CommonStyles.cjs.map +1 -1
  121. package/dist/GlobalNavigationBar/mobile/CommonStyles.js.map +1 -1
  122. package/dist/GlobalNavigationBar/mobile/MobileActionContainer.cjs +1 -1
  123. package/dist/GlobalNavigationBar/mobile/MobileActionContainer.cjs.map +1 -1
  124. package/dist/GlobalNavigationBar/mobile/MobileActionContainer.js +2 -2
  125. package/dist/GlobalNavigationBar/mobile/MobileActionContainer.js.map +1 -1
  126. package/dist/GlobalNavigationBar/mobile/__tests__/MobileMenu.test.tsx +317 -0
  127. package/dist/GlobalNavigationBar/mobile/__tests__/MobileMenuContent.test.tsx +294 -0
  128. package/dist/GlobalNavigationBar/mobile/__tests__/MobileMenuHeader.test.tsx +195 -0
  129. package/dist/GlobalNavigationBar/types.cjs.map +1 -1
  130. package/dist/GlobalNavigationBar/types.d.ts +2 -2
  131. package/dist/GlobalNavigationBar/types.js.map +1 -1
  132. package/dist/HyperLink/HyperLink.cjs +18 -2
  133. package/dist/HyperLink/HyperLink.cjs.map +1 -1
  134. package/dist/HyperLink/HyperLink.d.ts +2 -0
  135. package/dist/HyperLink/HyperLink.js +18 -2
  136. package/dist/HyperLink/HyperLink.js.map +1 -1
  137. package/dist/HyperLink/styling.cjs +4 -0
  138. package/dist/HyperLink/styling.cjs.map +1 -1
  139. package/dist/HyperLink/styling.js +4 -0
  140. package/dist/HyperLink/styling.js.map +1 -1
  141. package/dist/InputFields/DatepickerField.cjs +21 -5
  142. package/dist/InputFields/DatepickerField.cjs.map +1 -1
  143. package/dist/InputFields/DatepickerField.d.ts +1 -1
  144. package/dist/InputFields/DatepickerField.js +21 -5
  145. package/dist/InputFields/DatepickerField.js.map +1 -1
  146. package/dist/InputFields/NumberField.cjs +4 -0
  147. package/dist/InputFields/NumberField.cjs.map +1 -1
  148. package/dist/InputFields/NumberField.js +4 -0
  149. package/dist/InputFields/NumberField.js.map +1 -1
  150. package/dist/InputFields/RadioButton.cjs +2 -2
  151. package/dist/InputFields/RadioButton.cjs.map +1 -1
  152. package/dist/InputFields/RadioButton.d.ts +4 -4
  153. package/dist/InputFields/RadioButton.js +2 -2
  154. package/dist/InputFields/RadioButton.js.map +1 -1
  155. package/dist/InputFields/TextField.cjs +2 -5
  156. package/dist/InputFields/TextField.cjs.map +1 -1
  157. package/dist/InputFields/TextField.d.ts +0 -8
  158. package/dist/InputFields/TextField.js +2 -5
  159. package/dist/InputFields/TextField.js.map +1 -1
  160. package/dist/InputFields/__tests__/NumberField.test.tsx +67 -0
  161. package/dist/InputFields/__tests__/NumberInput.test.tsx +68 -0
  162. package/dist/InputFields/__tests__/QuickSearch.test.tsx +42 -0
  163. package/dist/InputFields/components/SearchBarInput.cjs +5 -0
  164. package/dist/InputFields/components/SearchBarInput.cjs.map +1 -1
  165. package/dist/InputFields/components/SearchBarInput.js +5 -0
  166. package/dist/InputFields/components/SearchBarInput.js.map +1 -1
  167. package/dist/InputFields/styling.cjs +1 -4
  168. package/dist/InputFields/styling.cjs.map +1 -1
  169. package/dist/InputFields/styling.d.ts +0 -1
  170. package/dist/InputFields/styling.js +1 -4
  171. package/dist/InputFields/styling.js.map +1 -1
  172. package/dist/LinearProgress/__tests__/LinearProgress.test.tsx +25 -0
  173. package/dist/List/__tests__/ListRow.test.tsx +18 -0
  174. package/dist/LoadingPage/__tests__/GlobalLoadingPage.test.tsx +23 -0
  175. package/dist/MiniProductCard/MiniProductCard.cjs +15 -1
  176. package/dist/MiniProductCard/MiniProductCard.cjs.map +1 -1
  177. package/dist/MiniProductCard/MiniProductCard.d.ts +1 -0
  178. package/dist/MiniProductCard/MiniProductCard.js +15 -1
  179. package/dist/MiniProductCard/MiniProductCard.js.map +1 -1
  180. package/dist/Modals/ModalContainer.cjs +102 -83
  181. package/dist/Modals/ModalContainer.cjs.map +1 -1
  182. package/dist/Modals/ModalContainer.d.ts +20 -1
  183. package/dist/Modals/ModalContainer.js +103 -84
  184. package/dist/Modals/ModalContainer.js.map +1 -1
  185. package/dist/Modals/ModalContent.cjs +7 -3
  186. package/dist/Modals/ModalContent.cjs.map +1 -1
  187. package/dist/Modals/ModalContent.js +8 -4
  188. package/dist/Modals/ModalContent.js.map +1 -1
  189. package/dist/Modals/ModalDialog.cjs +2 -2
  190. package/dist/Modals/ModalDialog.cjs.map +1 -1
  191. package/dist/Modals/ModalDialog.js +3 -3
  192. package/dist/Modals/ModalDialog.js.map +1 -1
  193. package/dist/Modals/ModalStyles.cjs +12 -0
  194. package/dist/Modals/ModalStyles.cjs.map +1 -1
  195. package/dist/Modals/ModalStyles.js +12 -0
  196. package/dist/Modals/ModalStyles.js.map +1 -1
  197. package/dist/Modals/ModalTypes.cjs.map +1 -1
  198. package/dist/Modals/ModalTypes.d.ts +3 -3
  199. package/dist/Modals/ModalTypes.js.map +1 -1
  200. package/dist/Modals/__tests__/Modal.test.tsx +169 -0
  201. package/dist/Modals/__tests__/ModalContainer.test.tsx +77 -0
  202. package/dist/Modals/__tests__/ModalContent.test.tsx +126 -0
  203. package/dist/NavItem/NavItem.cjs +7 -1
  204. package/dist/NavItem/NavItem.cjs.map +1 -1
  205. package/dist/NavItem/NavItem.js +7 -1
  206. package/dist/NavItem/NavItem.js.map +1 -1
  207. package/dist/NavItem/__tests__/NavItem.test.ts +6 -0
  208. package/dist/Navigation/NavigationProvider.cjs.map +1 -1
  209. package/dist/Navigation/NavigationProvider.d.ts +3 -0
  210. package/dist/Navigation/NavigationProvider.js.map +1 -1
  211. package/dist/NotificationDot/__tests__/NotificationDot.test.tsx +33 -0
  212. package/dist/Paginator/Paginator.cjs +18 -14
  213. package/dist/Paginator/Paginator.cjs.map +1 -1
  214. package/dist/Paginator/Paginator.d.ts +1 -5
  215. package/dist/Paginator/Paginator.js +18 -14
  216. package/dist/Paginator/Paginator.js.map +1 -1
  217. package/dist/Paginator/__tests__/Paginator.test.tsx +33 -0
  218. package/dist/Popover/Popover.cjs +1 -1
  219. package/dist/Popover/Popover.cjs.map +1 -1
  220. package/dist/Popover/Popover.js +2 -2
  221. package/dist/Popover/Popover.js.map +1 -1
  222. package/dist/Popover/__tests__/Popover.test.tsx +64 -0
  223. package/dist/ProfileButton/__tests__/ProfileButton.test.tsx +31 -0
  224. package/dist/QuizButton/__tests__/QuizButton.test.tsx +53 -0
  225. package/dist/SegmentControl/__tests__/SegmentControl.test.tsx +145 -0
  226. package/dist/SideMenu/SideMenuFooter.cjs +1 -1
  227. package/dist/SideMenu/SideMenuFooter.cjs.map +1 -1
  228. package/dist/SideMenu/SideMenuFooter.js +2 -2
  229. package/dist/SideMenu/SideMenuFooter.js.map +1 -1
  230. package/dist/SideMenu/__tests__/SideMenu.test.tsx +99 -0
  231. package/dist/SideMenu/types.cjs.map +1 -1
  232. package/dist/SideMenu/types.d.ts +2 -2
  233. package/dist/SideMenu/types.js.map +1 -1
  234. package/dist/Switcher/__tests__/SwitcherMenuItem.tsx +14 -0
  235. package/dist/Table/TableBody.cjs +1 -1
  236. package/dist/Table/TableBody.cjs.map +1 -1
  237. package/dist/Table/TableBody.js +2 -2
  238. package/dist/Table/TableBody.js.map +1 -1
  239. package/dist/Table/TableStyles.cjs +4 -1
  240. package/dist/Table/TableStyles.cjs.map +1 -1
  241. package/dist/Table/TableStyles.js +4 -1
  242. package/dist/Table/TableStyles.js.map +1 -1
  243. package/dist/Table/TableTypes.cjs.map +1 -1
  244. package/dist/Table/TableTypes.d.ts +2 -2
  245. package/dist/Table/TableTypes.js.map +1 -1
  246. package/dist/Table/__tests__/Table.test.tsx +499 -0
  247. package/dist/Tabs/VerticalTabs.cjs +1 -0
  248. package/dist/Tabs/VerticalTabs.cjs.map +1 -1
  249. package/dist/Tabs/VerticalTabs.js +1 -0
  250. package/dist/Tabs/VerticalTabs.js.map +1 -1
  251. package/dist/Tabs/__tests__/HorizontalTabs.test.tsx +95 -0
  252. package/dist/Tabs/__tests__/TabLink.test.tsx +40 -0
  253. package/dist/Tabs/__tests__/Tablist.test.tsx +37 -0
  254. package/dist/Tag/Tag.cjs +48 -12
  255. package/dist/Tag/Tag.cjs.map +1 -1
  256. package/dist/Tag/Tag.js +48 -12
  257. package/dist/Tag/Tag.js.map +1 -1
  258. package/dist/Tag/__tests__/Tag.test.tsx +86 -0
  259. package/dist/Tile/TileCommonItems.cjs +1 -1
  260. package/dist/Tile/TileCommonItems.cjs.map +1 -1
  261. package/dist/Tile/TileCommonItems.js +2 -2
  262. package/dist/Tile/TileCommonItems.js.map +1 -1
  263. package/dist/Tile/TileTypes.cjs.map +1 -1
  264. package/dist/Tile/TileTypes.d.ts +2 -2
  265. package/dist/Tile/TileTypes.js.map +1 -1
  266. package/dist/Toasters/Toast.cjs +1 -2
  267. package/dist/Toasters/Toast.cjs.map +1 -1
  268. package/dist/Toasters/Toast.js +2 -3
  269. package/dist/Toasters/Toast.js.map +1 -1
  270. package/dist/Toasters/__tests__/Toast.test.tsx +74 -0
  271. package/dist/Toggles/TogglerStyles.cjs +171 -15
  272. package/dist/Toggles/TogglerStyles.cjs.map +1 -1
  273. package/dist/Toggles/TogglerStyles.js +171 -15
  274. package/dist/Toggles/TogglerStyles.js.map +1 -1
  275. package/dist/Toggles/__tests__/ToggleButton.test.tsx +53 -0
  276. package/dist/Toggles/__tests__/ToggleSwitch.test.tsx +87 -0
  277. package/dist/Tooltips/__tests__/TooltipWrapper.test.tsx +16 -0
  278. package/dist/common/NavigationHelper.cjs +0 -28
  279. package/dist/common/NavigationHelper.cjs.map +1 -1
  280. package/dist/common/NavigationHelper.d.ts +0 -4
  281. package/dist/common/NavigationHelper.js +1 -22
  282. package/dist/common/NavigationHelper.js.map +1 -1
  283. package/dist/styles/colors.cjs +6 -0
  284. package/dist/styles/colors.cjs.map +1 -1
  285. package/dist/styles/colors.d.ts +6 -0
  286. package/dist/styles/colors.js +6 -0
  287. package/dist/styles/colors.js.map +1 -1
  288. package/dist/styles/design-tokens/dark/tokens.css +481 -0
  289. package/dist/styles/design-tokens/light/tokens.css +481 -0
  290. package/dist/styles/design-tokens/rqi_dark/tokens.css +481 -0
  291. package/dist/styles/design-tokens/rqi_light/tokens.css +481 -0
  292. package/dist/styles/global.cjs +4 -4
  293. package/dist/styles/global.cjs.map +1 -1
  294. package/dist/styles/global.js +4 -4
  295. package/dist/styles/global.js.map +1 -1
  296. package/dist/styles/react-datepicker.css +766 -0
  297. package/dist/styles/typography.cjs +4 -1
  298. package/dist/styles/typography.cjs.map +1 -1
  299. package/dist/styles/typography.js +4 -1
  300. package/dist/styles/typography.js.map +1 -1
  301. package/dist/test-utils.cjs +7 -1
  302. package/dist/test-utils.cjs.map +1 -1
  303. package/dist/test-utils.js +7 -1
  304. package/dist/test-utils.js.map +1 -1
  305. package/package.json +11 -6
  306. package/dist/Button/Button.cjs.map +0 -1
  307. package/dist/Button/Button.d.ts +0 -70
  308. package/dist/Button/Button.js.map +0 -1
  309. package/dist/Card/VerticalCard/Card.cjs.map +0 -1
  310. package/dist/Card/VerticalCard/Card.d.ts +0 -24
  311. package/dist/Card/VerticalCard/Card.js.map +0 -1
  312. package/dist/Card/VerticalCard/CardBottomSection.cjs.map +0 -1
  313. package/dist/Card/VerticalCard/CardBottomSection.d.ts +0 -49
  314. package/dist/Card/VerticalCard/CardBottomSection.js.map +0 -1
  315. package/dist/Card/VerticalCard/CardMiddleSection.cjs.map +0 -1
  316. package/dist/Card/VerticalCard/CardMiddleSection.d.ts +0 -37
  317. package/dist/Card/VerticalCard/CardMiddleSection.js.map +0 -1
  318. package/dist/Card/VerticalCard/CardTopSection.cjs.map +0 -1
  319. package/dist/Card/VerticalCard/CardTopSection.js.map +0 -1
  320. package/dist/GlobalNavigationBar/__tests__/GlobalNavigationBar.tests.d.ts +0 -1
  321. package/dist/GlobalNavigationBar/__tests__/Logo.tests.d.ts +0 -1
  322. package/dist/List/__tests__/ListRow.tests.d.ts +0 -1
  323. package/dist/Tabs/__tests__/TabLink.tests.d.ts +0 -1
  324. package/dist/Tabs/__tests__/Tablist.tests.d.ts +0 -2
  325. package/dist/common/Link.cjs +0 -45
  326. package/dist/common/Link.cjs.map +0 -1
  327. package/dist/common/Link.d.ts +0 -9
  328. package/dist/common/Link.js +0 -37
  329. package/dist/common/Link.js.map +0 -1
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.default = exports.CardBottomSectionProgressStyles = exports.CardBottomSectionNotesStyles = exports.CardBottomSectionNoteRightStyles = exports.CardBottomSectionNoteLeftStyles = exports.CardBottomSectionDivider = exports.CardBottomSectionContainer = exports.CardBottomSectionButtonRowContainerStyles = exports.CardBottomSectionAuthorStyles = void 0;
7
+ exports.default = exports.VerticalCardBottomSectionProgressStyles = exports.VerticalCardBottomSectionNotesStyles = exports.VerticalCardBottomSectionNoteRightStyles = exports.VerticalCardBottomSectionNoteLeftStyles = exports.VerticalCardBottomSectionDivider = exports.VerticalCardBottomSectionContainer = exports.VerticalCardBottomSectionButtonRowContainerStyles = exports.VerticalCardBottomSectionAuthorStyles = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
@@ -13,15 +13,15 @@ var _styledComponents = _interopRequireWildcard(require("styled-components"));
13
13
  var _index = require("../../index");
14
14
  var _Button = require("../../Button");
15
15
  var _jsxRuntime = require("react/jsx-runtime");
16
- const _excluded = ["buttonText"];
16
+ const _excluded = ["buttonText", "onClick"];
17
17
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
18
18
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
19
19
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
20
20
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
21
- const CardBottomSectionProgressStyles = exports.CardBottomSectionProgressStyles = _styledComponents.default.div`
21
+ const VerticalCardBottomSectionProgressStyles = exports.VerticalCardBottomSectionProgressStyles = _styledComponents.default.div`
22
22
  padding: 8px 0;
23
23
  `;
24
- const CardBottomSectionNotesStyles = exports.CardBottomSectionNotesStyles = _styledComponents.default.div`
24
+ const VerticalCardBottomSectionNotesStyles = exports.VerticalCardBottomSectionNotesStyles = _styledComponents.default.div`
25
25
  height: 48px;
26
26
  position: relative;
27
27
  color: ${props => _index.COLORS.generateToken({
@@ -32,7 +32,7 @@ const CardBottomSectionNotesStyles = exports.CardBottomSectionNotesStyles = _sty
32
32
  flex-direction: row;
33
33
  align-items: center;
34
34
  `;
35
- const CardBottomSectionAuthorStyles = exports.CardBottomSectionAuthorStyles = _styledComponents.default.div`
35
+ const VerticalCardBottomSectionAuthorStyles = exports.VerticalCardBottomSectionAuthorStyles = _styledComponents.default.div`
36
36
  display: flex;
37
37
  flex-direction: row;
38
38
  align-items: center;
@@ -59,7 +59,7 @@ const CardBottomSectionAuthorStyles = exports.CardBottomSectionAuthorStyles = _s
59
59
 
60
60
  ` : ''}
61
61
  `;
62
- const CardBottomSectionDivider = exports.CardBottomSectionDivider = _styledComponents.default.div`
62
+ const VerticalCardBottomSectionDivider = exports.VerticalCardBottomSectionDivider = _styledComponents.default.div`
63
63
  border-top: 1px;
64
64
  border-top-color: ${props => _index.COLORS.generateToken({
65
65
  componentType: 'border',
@@ -68,7 +68,7 @@ const CardBottomSectionDivider = exports.CardBottomSectionDivider = _styledCompo
68
68
  border-top-style: solid;
69
69
  width: 100%;
70
70
  `;
71
- const CardBottomSectionNoteLeftStyles = exports.CardBottomSectionNoteLeftStyles = _styledComponents.default.div`
71
+ const VerticalCardBottomSectionNoteLeftStyles = exports.VerticalCardBottomSectionNoteLeftStyles = _styledComponents.default.div`
72
72
  position: absolute;
73
73
  left: 0px;
74
74
  display: flex;
@@ -81,7 +81,7 @@ const CardBottomSectionNoteLeftStyles = exports.CardBottomSectionNoteLeftStyles
81
81
  flex-shrink: 0;
82
82
  }
83
83
  `;
84
- const CardBottomSectionNoteRightStyles = exports.CardBottomSectionNoteRightStyles = _styledComponents.default.div`
84
+ const VerticalCardBottomSectionNoteRightStyles = exports.VerticalCardBottomSectionNoteRightStyles = _styledComponents.default.div`
85
85
  position: absolute;
86
86
  right: 0px;
87
87
  display: flex;
@@ -94,7 +94,7 @@ const CardBottomSectionNoteRightStyles = exports.CardBottomSectionNoteRightStyle
94
94
  flex-shrink: 0;
95
95
  }
96
96
  `;
97
- const CardBottomSectionButtonRowContainerStyles = exports.CardBottomSectionButtonRowContainerStyles = _styledComponents.default.div`
97
+ const VerticalCardBottomSectionButtonRowContainerStyles = exports.VerticalCardBottomSectionButtonRowContainerStyles = _styledComponents.default.div`
98
98
  display: flex;
99
99
  flex-direction: row;
100
100
  justify-content: flex-end;
@@ -110,10 +110,18 @@ const CardBottomSectionButtonRowContainerStyles = exports.CardBottomSectionButto
110
110
  margin: 8px 0px 0px 0px;
111
111
  }
112
112
 
113
+ .card-bottom-section-action-button {
114
+ z-index: 2000;
115
+ }
116
+
113
117
  button:not(:last-child) {
114
118
  margin: 8px 0px 0px 0px;
115
119
  }
116
120
 
121
+ .card-bottom-section-action-button {
122
+ z-index: 2000;
123
+ }
124
+
117
125
  svg {
118
126
  color: ${props => _index.COLORS.generateToken({
119
127
  componentType: 'icon',
@@ -121,7 +129,7 @@ const CardBottomSectionButtonRowContainerStyles = exports.CardBottomSectionButto
121
129
  }, props.theme)};
122
130
  }
123
131
  `;
124
- const CardBottomSectionContainer = exports.CardBottomSectionContainer = _styledComponents.default.div`
132
+ const VerticalCardBottomSectionContainer = exports.VerticalCardBottomSectionContainer = _styledComponents.default.div`
125
133
  padding: 0px 16px 8px 16px;
126
134
  width: calc(100% - 32px);
127
135
  `;
@@ -134,7 +142,7 @@ const RightItemContainer = _styledComponents.default.div`
134
142
  justify-content: flex-end;
135
143
  color: ${props => _index.COLORS.getColor('neutral_600', props.theme)};
136
144
  `;
137
- const CardBottomSection = /*#__PURE__*/React.forwardRef((_ref, ref) => {
145
+ const VerticalCardBottomSection = /*#__PURE__*/React.forwardRef((_ref, ref) => {
138
146
  let {
139
147
  progressLevel,
140
148
  progressMax,
@@ -153,26 +161,33 @@ const CardBottomSection = /*#__PURE__*/React.forwardRef((_ref, ref) => {
153
161
  const theme = (0, _styledComponents.useTheme)();
154
162
  const length = actions?.length || 0;
155
163
  React.useEffect(() => {
156
- setElRefs(Array(length || 0).fill(null).map(() => /*#__PURE__*/React.createRef()));
157
- }, [length]);
164
+ setElRefs(Array((length || 0) + (leftButton ? 1 : 0)).fill(null).map(() => /*#__PURE__*/React.createRef()));
165
+ }, [length, leftButton]);
158
166
  React.useImperativeHandle(ref, () => elRefs, [elRefs]);
159
167
  const haveAtLeastSomething = progressLevel != undefined || noteLeft || noteLeftIcon || noteRight || noteRightIcon || authorName || leftButton;
160
168
  const renderLeftButton = () => {
161
169
  if (leftButton) {
162
170
  const {
163
- buttonText
171
+ buttonText,
172
+ onClick
164
173
  } = leftButton,
165
174
  rest = (0, _objectWithoutProperties2.default)(leftButton, _excluded);
166
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.Button, _objectSpread(_objectSpread({
175
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.TextButton, _objectSpread(_objectSpread({
176
+ className: "card-bottom-section-action-button",
177
+ ref: elRefs[0],
167
178
  size: leftButton.size && [_index.Size.XSmall, _index.Size.XSmall, _index.Size.XXSmall].includes(leftButton.size) ? _index.Size.Small : leftButton.size == _index.Size.Large ? _index.Size.Large : _index.Size.Medium
168
179
  }, rest), {}, {
180
+ onClick: e => {
181
+ e.stopPropagation();
182
+ onClick && onClick(e);
183
+ },
169
184
  children: buttonText
170
185
  }));
171
186
  }
172
187
  };
173
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(CardBottomSectionContainer, {
188
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(VerticalCardBottomSectionContainer, {
174
189
  "data-testid": 'card-bottomSection',
175
- children: [haveAtLeastSomething && /*#__PURE__*/(0, _jsxRuntime.jsx)(CardBottomSectionDivider, {}), progressLevel != undefined && /*#__PURE__*/(0, _jsxRuntime.jsx)(CardBottomSectionProgressStyles, {
190
+ children: [haveAtLeastSomething && /*#__PURE__*/(0, _jsxRuntime.jsx)(VerticalCardBottomSectionDivider, {}), progressLevel != undefined && /*#__PURE__*/(0, _jsxRuntime.jsx)(VerticalCardBottomSectionProgressStyles, {
176
191
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.LinearProgress, {
177
192
  size: _index.Size.Small,
178
193
  type: progressType,
@@ -180,8 +195,8 @@ const CardBottomSection = /*#__PURE__*/React.forwardRef((_ref, ref) => {
180
195
  value: progressLevel,
181
196
  max: progressMax ?? progressLevel
182
197
  })
183
- }), (noteLeft || noteLeftIcon || noteRight || noteRightIcon) && /*#__PURE__*/(0, _jsxRuntime.jsxs)(CardBottomSectionNotesStyles, {
184
- children: [(noteLeft || noteLeftIcon) && /*#__PURE__*/(0, _jsxRuntime.jsxs)(CardBottomSectionNoteLeftStyles, {
198
+ }), (noteLeft || noteLeftIcon || noteRight || noteRightIcon) && /*#__PURE__*/(0, _jsxRuntime.jsxs)(VerticalCardBottomSectionNotesStyles, {
199
+ children: [(noteLeft || noteLeftIcon) && /*#__PURE__*/(0, _jsxRuntime.jsxs)(VerticalCardBottomSectionNoteLeftStyles, {
185
200
  children: [noteLeftIcon, /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ComponentXXS, {
186
201
  color: _index.COLORS.generateToken({
187
202
  componentType: 'icon',
@@ -190,7 +205,7 @@ const CardBottomSection = /*#__PURE__*/React.forwardRef((_ref, ref) => {
190
205
  textStyle: _index.ComponentTextStyle.Bold,
191
206
  children: noteLeft
192
207
  })]
193
- }), (noteRight || noteRightIcon) && /*#__PURE__*/(0, _jsxRuntime.jsxs)(CardBottomSectionNoteRightStyles, {
208
+ }), (noteRight || noteRightIcon) && /*#__PURE__*/(0, _jsxRuntime.jsxs)(VerticalCardBottomSectionNoteRightStyles, {
194
209
  children: [noteRightIcon, /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ComponentXXS, {
195
210
  color: _index.COLORS.generateToken({
196
211
  componentType: 'icon',
@@ -200,20 +215,22 @@ const CardBottomSection = /*#__PURE__*/React.forwardRef((_ref, ref) => {
200
215
  children: noteRight
201
216
  })]
202
217
  })]
203
- }), (authorName || logo) && /*#__PURE__*/(0, _jsxRuntime.jsxs)(CardBottomSectionAuthorStyles, {
218
+ }), (authorName || logo) && /*#__PURE__*/(0, _jsxRuntime.jsxs)(VerticalCardBottomSectionAuthorStyles, {
204
219
  $disabled: disabled,
205
220
  "data-testid": 'card-bottomSection-author',
206
221
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ComponentXXS, {
207
222
  children: authorName
208
223
  }), logo]
209
- }), (actions || leftButton) && /*#__PURE__*/(0, _jsxRuntime.jsxs)(CardBottomSectionButtonRowContainerStyles, {
224
+ }), (actions || leftButton) && /*#__PURE__*/(0, _jsxRuntime.jsxs)(VerticalCardBottomSectionButtonRowContainerStyles, {
210
225
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(LeftItemContainer, {
211
226
  children: leftButton && renderLeftButton()
212
227
  }), actions && /*#__PURE__*/(0, _jsxRuntime.jsx)(RightItemContainer, {
213
228
  children: actions.map((x, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.IconButton, {
214
- ref: elRefs[index],
229
+ ref: elRefs[index + (leftButton ? 1 : 0)],
230
+ className: "card-bottom-section-action-button",
231
+ "z-index": 2000,
215
232
  disabled: disabled,
216
- variant: "secondary",
233
+ variant: x.variant ?? "secondary",
217
234
  shape: "circular",
218
235
  action: e => {
219
236
  x.onClick();
@@ -224,7 +241,7 @@ const CardBottomSection = /*#__PURE__*/React.forwardRef((_ref, ref) => {
224
241
  })]
225
242
  });
226
243
  });
227
- CardBottomSection.propTypes = {
244
+ VerticalCardBottomSection.propTypes = {
228
245
  progressLevel: _propTypes.default.number,
229
246
  progressMax: _propTypes.default.number,
230
247
  noteLeft: _propTypes.default.string,
@@ -233,11 +250,12 @@ CardBottomSection.propTypes = {
233
250
  noteRightIcon: _propTypes.default.node,
234
251
  authorName: _propTypes.default.string,
235
252
  actions: _propTypes.default.arrayOf(_propTypes.default.shape({
253
+ variant: _propTypes.default.oneOf(['primary', 'secondary']),
236
254
  icon: _propTypes.default.node.isRequired,
237
255
  onClick: _propTypes.default.func.isRequired
238
256
  })),
239
257
  logo: _propTypes.default.node,
240
258
  disabled: _propTypes.default.bool
241
259
  };
242
- var _default = exports.default = CardBottomSection;
243
- //# sourceMappingURL=CardBottomSection.cjs.map
260
+ var _default = exports.default = VerticalCardBottomSection;
261
+ //# sourceMappingURL=VerticalCardBottomSection.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VerticalCardBottomSection.cjs","names":["React","_interopRequireWildcard","require","_styledComponents","_index","_Button","_jsxRuntime","_excluded","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ownKeys","keys","getOwnPropertySymbols","o","filter","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","VerticalCardBottomSectionProgressStyles","exports","styled","div","VerticalCardBottomSectionNotesStyles","props","COLORS","generateToken","componentType","defaultVariant","theme","VerticalCardBottomSectionAuthorStyles","$disabled","state","VerticalCardBottomSectionDivider","VerticalCardBottomSectionNoteLeftStyles","VerticalCardBottomSectionNoteRightStyles","VerticalCardBottomSectionButtonRowContainerStyles","VerticalCardBottomSectionContainer","LeftItemContainer","RightItemContainer","getColor","VerticalCardBottomSection","forwardRef","_ref","ref","progressLevel","progressMax","progressType","LinearProgressType","Line","noteLeft","noteLeftIcon","noteRight","noteRightIcon","leftButton","authorName","logo","actions","disabled","elRefs","setElRefs","useState","useTheme","useEffect","Array","fill","map","createRef","useImperativeHandle","haveAtLeastSomething","undefined","renderLeftButton","buttonText","onClick","rest","_objectWithoutProperties2","jsx","TextButton","className","size","Size","XSmall","XXSmall","includes","Small","Large","Medium","stopPropagation","children","jsxs","LinearProgress","type","variant","LinearProgressVariant","Normal","value","max","ComponentXXS","color","textStyle","ComponentTextStyle","Bold","x","index","IconButton","shape","action","icon","propTypes","_propTypes","number","string","node","arrayOf","oneOf","isRequired","func","bool","_default"],"sources":["../../../src/Card/VerticalCard/VerticalCardBottomSection.tsx"],"sourcesContent":["import * as React from 'react';\r\nimport styled, { useTheme } from 'styled-components';\r\nimport {\r\n COLORS,\r\n ComponentTextStyle,\r\n ComponentXXS,\r\n LinearProgress,\r\n LinearProgressType,\r\n LinearProgressVariant,\r\n Size,\r\n} from '../../index';\r\nimport { TextButton, TextButtonProps, IconButton } from '../../Button';\r\n\r\nexport interface VerticalCardActionItem {\r\n /** Optional. Variant of the action button, defaults to 'secondary'. */\r\n variant?: 'primary' | 'secondary';\r\n /** Icon to be used in the icon button. */\r\n icon: React.ReactNode;\r\n /** Click handler for the action button. */\r\n onClick: () => void;\r\n}\r\n\r\nexport type VerticalCardStandardButton = Pick<TextButtonProps, 'width' | 'variant' | 'loading' | 'icon' | 'onClick' | 'disabled'> & {\r\n buttonText: string;\r\n size?: Size.Small | Size.Medium | Size.Large;\r\n}\r\n\r\nexport interface VerticalCardBottomSectionProps {\r\n /** Optional. Current progress level shown in the progress bar. */\r\n progressLevel?: number;\r\n /** Optional. Maximum level of progress in the progress bar. */\r\n progressMax?: number;\r\n /** Optional. Type of the progress bar. */\r\n progressType?: LinearProgressType;\r\n\r\n /** Optional. Note text shown on the left side of the section. */\r\n noteLeft?: string;\r\n /** Optional. Note icon shown on the left side of the section. */\r\n noteLeftIcon?: React.ReactNode;\r\n /** Optional. Note text shown on the right side of the section. */\r\n noteRight?: string;\r\n /** Optional. Note icon shown on the right side of the section. */\r\n noteRightIcon?: React.ReactNode;\r\n\r\n /** Optional. Note icon/Hyperlink/button shown on the left side of the section. */\r\n leftButton?: VerticalCardStandardButton;\r\n\r\n /** Author name shown at the bottom-left part of the section. */\r\n authorName?: string;\r\n /** Array of actions shown on the bottom-right corner of the section. */\r\n actions?: VerticalCardActionItem[];\r\n /** Logo shown on the right side of the section, in front of AuthorName. */\r\n logo?: React.ReactNode;\r\n /** This property is set by Card component itself and is based on 'disabled' flag of CardProps. */\r\n disabled?: boolean;\r\n}\r\n\r\nexport const VerticalCardBottomSectionProgressStyles = styled.div`\r\n padding: 8px 0;\r\n`;\r\n\r\nexport const VerticalCardBottomSectionNotesStyles = styled.div`\r\n height: 48px;\r\n position: relative;\r\n color: ${props => COLORS.generateToken({ componentType:'text', defaultVariant:'subtle' }, props.theme)};\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n`;\r\n\r\nexport const VerticalCardBottomSectionAuthorStyles = styled.div<{ $disabled?: boolean }>`\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n height: 48px;\r\n\r\n div:first-child {\r\n flex-grow: 2;\r\n }\r\n\r\n svg, img {\r\n width: 80px;\r\n flex-grow: 0;\r\n flex-shrink: 0;\r\n }\r\n\r\n ${props => props.$disabled ? `\r\n color: ${COLORS.generateToken({ componentType: 'text', state: 'disabled' }, props.theme)};\r\n svg, img {\r\n filter: grayscale(100%);\r\n }\r\n \r\n ` : ''}\r\n`;\r\n\r\nexport const VerticalCardBottomSectionDivider = styled.div`\r\n border-top: 1px;\r\n border-top-color: ${props => COLORS.generateToken({componentType:'border', defaultVariant:'subtle'}, props.theme)};\r\n border-top-style: solid;\r\n width: 100%;\r\n`;\r\n\r\nexport const VerticalCardBottomSectionNoteLeftStyles = styled.div`\r\n position: absolute;\r\n left: 0px;\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n\r\n svg {\r\n margin-right: 4px;\r\n flex-grow: 0;\r\n flex-shrink: 0;\r\n }\r\n`;\r\n\r\nexport const VerticalCardBottomSectionNoteRightStyles = styled.div`\r\n position: absolute;\r\n right: 0px;\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n\r\n svg {\r\n margin-right: 4px;\r\n flex-grow: 0;\r\n flex-shrink: 0;\r\n }\r\n`;\r\n\r\nexport const VerticalCardBottomSectionButtonRowContainerStyles = styled.div`\r\n display: flex;\r\n flex-direction: row;\r\n justify-content: flex-end;\r\n align-items: center;\r\n border-top: 1px;\r\n border-top-color: ${props => COLORS.generateToken({componentType:'border', defaultVariant:'subtle'}, props.theme)};\r\n border-top-style: solid;\r\n\r\n button:last-child {\r\n margin: 8px 0px 0px 0px;\r\n }\r\n\r\n .card-bottom-section-action-button {\r\n z-index: 2000;\r\n }\r\n\r\n button:not(:last-child) {\r\n margin: 8px 0px 0px 0px;\r\n }\r\n\r\n .card-bottom-section-action-button {\r\n z-index: 2000;\r\n }\r\n\r\n svg {\r\n color: ${props => COLORS.generateToken({componentType:'icon', defaultVariant:'subtle' }, props.theme)};\r\n }\r\n`;\r\n\r\nexport const VerticalCardBottomSectionContainer = styled.div`\r\n padding: 0px 16px 8px 16px;\r\n width: calc(100% - 32px);\r\n`;\r\n\r\nconst LeftItemContainer = styled.div`\r\n flex: 1\r\n`;\r\n\r\nconst RightItemContainer = styled.div`\r\n display: flex;\r\n flex-direction: row;\r\n justify-content: flex-end;\r\n color: ${props => COLORS.getColor('neutral_600', props.theme)};\r\n`;\r\n\r\nconst VerticalCardBottomSection = React.forwardRef(({\r\n progressLevel,\r\n progressMax,\r\n progressType = LinearProgressType.Line,\r\n noteLeft,\r\n noteLeftIcon,\r\n noteRight,\r\n noteRightIcon,\r\n leftButton,\r\n authorName,\r\n logo,\r\n actions,\r\n disabled\r\n}: VerticalCardBottomSectionProps,\r\n ref: React.Ref<React.RefObject<HTMLButtonElement | null>[]>) => {\r\n\r\n const [elRefs, setElRefs] = React.useState<React.RefObject<HTMLButtonElement | null>[]>([]);\r\n const theme = useTheme();\r\n const length = actions?.length || 0;\r\n\r\n React.useEffect(() => {\r\n setElRefs(Array((length || 0) + (leftButton ? 1 : 0)).fill(null).map(() => React.createRef<HTMLButtonElement>()));\r\n }, [length, leftButton]);\r\n\r\n React.useImperativeHandle(ref, () => elRefs, [elRefs]);\r\n\r\n const haveAtLeastSomething = progressLevel != undefined || noteLeft || noteLeftIcon || noteRight || noteRightIcon || authorName || leftButton;\r\n\r\n const renderLeftButton = () => {\r\n if (leftButton){\r\n const {buttonText, onClick, ...rest} = leftButton;\r\n return (<TextButton className=\"card-bottom-section-action-button\"\r\n ref={elRefs[0]}\r\n size={ leftButton.size && [Size.XSmall, Size.XSmall, Size.XXSmall].includes(leftButton.size) ? Size.Small: \r\n leftButton.size == Size.Large ? Size.Large : Size.Medium}\r\n {...rest}\r\n onClick={(e) => {\r\n e.stopPropagation();\r\n onClick && onClick(e);\r\n }}>\r\n {buttonText}\r\n </TextButton>)\r\n }\r\n}\r\n\r\n return (\r\n <VerticalCardBottomSectionContainer data-testid={'card-bottomSection'}>\r\n {haveAtLeastSomething && <VerticalCardBottomSectionDivider/>}\r\n {progressLevel != undefined && <VerticalCardBottomSectionProgressStyles>\r\n <LinearProgress size={Size.Small}\r\n type={progressType}\r\n variant={LinearProgressVariant.Normal}\r\n value={progressLevel}\r\n max={progressMax ?? progressLevel}/>\r\n </VerticalCardBottomSectionProgressStyles>}\r\n\r\n {(noteLeft || noteLeftIcon || noteRight || noteRightIcon) && <VerticalCardBottomSectionNotesStyles>\r\n {(noteLeft || noteLeftIcon) && (\r\n <VerticalCardBottomSectionNoteLeftStyles>\r\n {noteLeftIcon}\r\n <ComponentXXS color={COLORS.generateToken({componentType:'icon', defaultVariant:'subtle'}, theme)} textStyle={ComponentTextStyle.Bold}>{noteLeft}</ComponentXXS>\r\n </VerticalCardBottomSectionNoteLeftStyles>\r\n )}\r\n {(noteRight || noteRightIcon) && (\r\n <VerticalCardBottomSectionNoteRightStyles>\r\n {noteRightIcon}\r\n <ComponentXXS color={COLORS.generateToken({componentType:'icon', defaultVariant:'subtle'}, theme)} textStyle={ComponentTextStyle.Bold}>{noteRight}</ComponentXXS>\r\n </VerticalCardBottomSectionNoteRightStyles>\r\n )}\r\n </VerticalCardBottomSectionNotesStyles>}\r\n\r\n {(authorName || logo) && <VerticalCardBottomSectionAuthorStyles $disabled={disabled} data-testid={'card-bottomSection-author'}>\r\n <ComponentXXS>{authorName}</ComponentXXS>\r\n {logo}\r\n </VerticalCardBottomSectionAuthorStyles>}\r\n\r\n {(actions || leftButton) && <VerticalCardBottomSectionButtonRowContainerStyles>\r\n <LeftItemContainer>\r\n {leftButton && renderLeftButton()}\r\n </LeftItemContainer>\r\n\r\n { actions && <RightItemContainer>{actions.map((x, index) => (\r\n <IconButton ref={elRefs[index + (leftButton ? 1 : 0)]}\r\n className=\"card-bottom-section-action-button\"\r\n key={index}\r\n z-index={2000}\r\n disabled={disabled}\r\n variant={x.variant ?? \"secondary\"}\r\n shape=\"circular\"\r\n action={(e) => {\r\n x.onClick();\r\n }}>\r\n {x.icon}\r\n </IconButton>\r\n ))}\r\n </RightItemContainer>\r\n }\r\n </VerticalCardBottomSectionButtonRowContainerStyles>}\r\n </VerticalCardBottomSectionContainer>\r\n );\r\n});\r\n\r\nexport default VerticalCardBottomSection;\r\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAF,uBAAA,CAAAC,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AASA,IAAAG,OAAA,GAAAH,OAAA;AAAuE,IAAAI,WAAA,GAAAJ,OAAA;AAAA,MAAAK,SAAA;AAAA,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAR,wBAAAQ,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,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AI,EAAAE,UAAA,CAAAvH,OAAA,CAAA0H,IAAA,CAAAG,UAAA;IAEJ1C,OAAO,EAAAoC,UAAA,CAAAvH,OAAA,CAAA8H,IAAA,CAAAD;EAAA;EAiCP3D,IAAI,EAAAqD,UAAA,CAAAvH,OAAA,CAAA0H,IAAA;EAEJtD,QAAQ,EAAAmD,UAAA,CAAAvH,OAAA,CAAA+H;AAAA;AAAA,IAAAC,QAAA,GAAAlG,OAAA,CAAA9B,OAAA,GAgOKmD,yBAAyB","ignoreList":[]}
@@ -0,0 +1,53 @@
1
+ import * as React from 'react';
2
+ import { LinearProgressType, Size } from '../../index';
3
+ import { TextButtonProps } from '../../Button';
4
+ export interface VerticalCardActionItem {
5
+ /** Optional. Variant of the action button, defaults to 'secondary'. */
6
+ variant?: 'primary' | 'secondary';
7
+ /** Icon to be used in the icon button. */
8
+ icon: React.ReactNode;
9
+ /** Click handler for the action button. */
10
+ onClick: () => void;
11
+ }
12
+ export type VerticalCardStandardButton = Pick<TextButtonProps, 'width' | 'variant' | 'loading' | 'icon' | 'onClick' | 'disabled'> & {
13
+ buttonText: string;
14
+ size?: Size.Small | Size.Medium | Size.Large;
15
+ };
16
+ export interface VerticalCardBottomSectionProps {
17
+ /** Optional. Current progress level shown in the progress bar. */
18
+ progressLevel?: number;
19
+ /** Optional. Maximum level of progress in the progress bar. */
20
+ progressMax?: number;
21
+ /** Optional. Type of the progress bar. */
22
+ progressType?: LinearProgressType;
23
+ /** Optional. Note text shown on the left side of the section. */
24
+ noteLeft?: string;
25
+ /** Optional. Note icon shown on the left side of the section. */
26
+ noteLeftIcon?: React.ReactNode;
27
+ /** Optional. Note text shown on the right side of the section. */
28
+ noteRight?: string;
29
+ /** Optional. Note icon shown on the right side of the section. */
30
+ noteRightIcon?: React.ReactNode;
31
+ /** Optional. Note icon/Hyperlink/button shown on the left side of the section. */
32
+ leftButton?: VerticalCardStandardButton;
33
+ /** Author name shown at the bottom-left part of the section. */
34
+ authorName?: string;
35
+ /** Array of actions shown on the bottom-right corner of the section. */
36
+ actions?: VerticalCardActionItem[];
37
+ /** Logo shown on the right side of the section, in front of AuthorName. */
38
+ logo?: React.ReactNode;
39
+ /** This property is set by Card component itself and is based on 'disabled' flag of CardProps. */
40
+ disabled?: boolean;
41
+ }
42
+ export declare const VerticalCardBottomSectionProgressStyles: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
43
+ export declare const VerticalCardBottomSectionNotesStyles: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
44
+ export declare const VerticalCardBottomSectionAuthorStyles: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
45
+ $disabled?: boolean;
46
+ }>> & string;
47
+ export declare const VerticalCardBottomSectionDivider: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
48
+ export declare const VerticalCardBottomSectionNoteLeftStyles: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
49
+ export declare const VerticalCardBottomSectionNoteRightStyles: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
50
+ export declare const VerticalCardBottomSectionButtonRowContainerStyles: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
51
+ export declare const VerticalCardBottomSectionContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
52
+ declare const VerticalCardBottomSection: React.ForwardRefExoticComponent<VerticalCardBottomSectionProps & React.RefAttributes<React.RefObject<HTMLButtonElement | null>[]>>;
53
+ export default VerticalCardBottomSection;
@@ -1,18 +1,18 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
3
  import _pt from "prop-types";
4
- const _excluded = ["buttonText"];
4
+ const _excluded = ["buttonText", "onClick"];
5
5
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6
6
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
7
  import * as React from 'react';
8
8
  import styled, { useTheme } from 'styled-components';
9
9
  import { COLORS, ComponentTextStyle, ComponentXXS, LinearProgress, LinearProgressType, LinearProgressVariant, Size } from '../../index';
10
- import { Button, IconButton } from '../../Button';
10
+ import { TextButton, IconButton } from '../../Button';
11
11
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
- export const CardBottomSectionProgressStyles = styled.div`
12
+ export const VerticalCardBottomSectionProgressStyles = styled.div`
13
13
  padding: 8px 0;
14
14
  `;
15
- export const CardBottomSectionNotesStyles = styled.div`
15
+ export const VerticalCardBottomSectionNotesStyles = styled.div`
16
16
  height: 48px;
17
17
  position: relative;
18
18
  color: ${props => COLORS.generateToken({
@@ -23,7 +23,7 @@ export const CardBottomSectionNotesStyles = styled.div`
23
23
  flex-direction: row;
24
24
  align-items: center;
25
25
  `;
26
- export const CardBottomSectionAuthorStyles = styled.div`
26
+ export const VerticalCardBottomSectionAuthorStyles = styled.div`
27
27
  display: flex;
28
28
  flex-direction: row;
29
29
  align-items: center;
@@ -50,7 +50,7 @@ export const CardBottomSectionAuthorStyles = styled.div`
50
50
 
51
51
  ` : ''}
52
52
  `;
53
- export const CardBottomSectionDivider = styled.div`
53
+ export const VerticalCardBottomSectionDivider = styled.div`
54
54
  border-top: 1px;
55
55
  border-top-color: ${props => COLORS.generateToken({
56
56
  componentType: 'border',
@@ -59,7 +59,7 @@ export const CardBottomSectionDivider = styled.div`
59
59
  border-top-style: solid;
60
60
  width: 100%;
61
61
  `;
62
- export const CardBottomSectionNoteLeftStyles = styled.div`
62
+ export const VerticalCardBottomSectionNoteLeftStyles = styled.div`
63
63
  position: absolute;
64
64
  left: 0px;
65
65
  display: flex;
@@ -72,7 +72,7 @@ export const CardBottomSectionNoteLeftStyles = styled.div`
72
72
  flex-shrink: 0;
73
73
  }
74
74
  `;
75
- export const CardBottomSectionNoteRightStyles = styled.div`
75
+ export const VerticalCardBottomSectionNoteRightStyles = styled.div`
76
76
  position: absolute;
77
77
  right: 0px;
78
78
  display: flex;
@@ -85,7 +85,7 @@ export const CardBottomSectionNoteRightStyles = styled.div`
85
85
  flex-shrink: 0;
86
86
  }
87
87
  `;
88
- export const CardBottomSectionButtonRowContainerStyles = styled.div`
88
+ export const VerticalCardBottomSectionButtonRowContainerStyles = styled.div`
89
89
  display: flex;
90
90
  flex-direction: row;
91
91
  justify-content: flex-end;
@@ -101,10 +101,18 @@ export const CardBottomSectionButtonRowContainerStyles = styled.div`
101
101
  margin: 8px 0px 0px 0px;
102
102
  }
103
103
 
104
+ .card-bottom-section-action-button {
105
+ z-index: 2000;
106
+ }
107
+
104
108
  button:not(:last-child) {
105
109
  margin: 8px 0px 0px 0px;
106
110
  }
107
111
 
112
+ .card-bottom-section-action-button {
113
+ z-index: 2000;
114
+ }
115
+
108
116
  svg {
109
117
  color: ${props => COLORS.generateToken({
110
118
  componentType: 'icon',
@@ -112,7 +120,7 @@ export const CardBottomSectionButtonRowContainerStyles = styled.div`
112
120
  }, props.theme)};
113
121
  }
114
122
  `;
115
- export const CardBottomSectionContainer = styled.div`
123
+ export const VerticalCardBottomSectionContainer = styled.div`
116
124
  padding: 0px 16px 8px 16px;
117
125
  width: calc(100% - 32px);
118
126
  `;
@@ -125,7 +133,7 @@ const RightItemContainer = styled.div`
125
133
  justify-content: flex-end;
126
134
  color: ${props => COLORS.getColor('neutral_600', props.theme)};
127
135
  `;
128
- const CardBottomSection = /*#__PURE__*/React.forwardRef((_ref, ref) => {
136
+ const VerticalCardBottomSection = /*#__PURE__*/React.forwardRef((_ref, ref) => {
129
137
  let {
130
138
  progressLevel,
131
139
  progressMax,
@@ -144,26 +152,33 @@ const CardBottomSection = /*#__PURE__*/React.forwardRef((_ref, ref) => {
144
152
  const theme = useTheme();
145
153
  const length = actions?.length || 0;
146
154
  React.useEffect(() => {
147
- setElRefs(Array(length || 0).fill(null).map(() => /*#__PURE__*/React.createRef()));
148
- }, [length]);
155
+ setElRefs(Array((length || 0) + (leftButton ? 1 : 0)).fill(null).map(() => /*#__PURE__*/React.createRef()));
156
+ }, [length, leftButton]);
149
157
  React.useImperativeHandle(ref, () => elRefs, [elRefs]);
150
158
  const haveAtLeastSomething = progressLevel != undefined || noteLeft || noteLeftIcon || noteRight || noteRightIcon || authorName || leftButton;
151
159
  const renderLeftButton = () => {
152
160
  if (leftButton) {
153
161
  const {
154
- buttonText
162
+ buttonText,
163
+ onClick
155
164
  } = leftButton,
156
165
  rest = _objectWithoutProperties(leftButton, _excluded);
157
- return /*#__PURE__*/_jsx(Button, _objectSpread(_objectSpread({
166
+ return /*#__PURE__*/_jsx(TextButton, _objectSpread(_objectSpread({
167
+ className: "card-bottom-section-action-button",
168
+ ref: elRefs[0],
158
169
  size: leftButton.size && [Size.XSmall, Size.XSmall, Size.XXSmall].includes(leftButton.size) ? Size.Small : leftButton.size == Size.Large ? Size.Large : Size.Medium
159
170
  }, rest), {}, {
171
+ onClick: e => {
172
+ e.stopPropagation();
173
+ onClick && onClick(e);
174
+ },
160
175
  children: buttonText
161
176
  }));
162
177
  }
163
178
  };
164
- return /*#__PURE__*/_jsxs(CardBottomSectionContainer, {
179
+ return /*#__PURE__*/_jsxs(VerticalCardBottomSectionContainer, {
165
180
  "data-testid": 'card-bottomSection',
166
- children: [haveAtLeastSomething && /*#__PURE__*/_jsx(CardBottomSectionDivider, {}), progressLevel != undefined && /*#__PURE__*/_jsx(CardBottomSectionProgressStyles, {
181
+ children: [haveAtLeastSomething && /*#__PURE__*/_jsx(VerticalCardBottomSectionDivider, {}), progressLevel != undefined && /*#__PURE__*/_jsx(VerticalCardBottomSectionProgressStyles, {
167
182
  children: /*#__PURE__*/_jsx(LinearProgress, {
168
183
  size: Size.Small,
169
184
  type: progressType,
@@ -171,8 +186,8 @@ const CardBottomSection = /*#__PURE__*/React.forwardRef((_ref, ref) => {
171
186
  value: progressLevel,
172
187
  max: progressMax ?? progressLevel
173
188
  })
174
- }), (noteLeft || noteLeftIcon || noteRight || noteRightIcon) && /*#__PURE__*/_jsxs(CardBottomSectionNotesStyles, {
175
- children: [(noteLeft || noteLeftIcon) && /*#__PURE__*/_jsxs(CardBottomSectionNoteLeftStyles, {
189
+ }), (noteLeft || noteLeftIcon || noteRight || noteRightIcon) && /*#__PURE__*/_jsxs(VerticalCardBottomSectionNotesStyles, {
190
+ children: [(noteLeft || noteLeftIcon) && /*#__PURE__*/_jsxs(VerticalCardBottomSectionNoteLeftStyles, {
176
191
  children: [noteLeftIcon, /*#__PURE__*/_jsx(ComponentXXS, {
177
192
  color: COLORS.generateToken({
178
193
  componentType: 'icon',
@@ -181,7 +196,7 @@ const CardBottomSection = /*#__PURE__*/React.forwardRef((_ref, ref) => {
181
196
  textStyle: ComponentTextStyle.Bold,
182
197
  children: noteLeft
183
198
  })]
184
- }), (noteRight || noteRightIcon) && /*#__PURE__*/_jsxs(CardBottomSectionNoteRightStyles, {
199
+ }), (noteRight || noteRightIcon) && /*#__PURE__*/_jsxs(VerticalCardBottomSectionNoteRightStyles, {
185
200
  children: [noteRightIcon, /*#__PURE__*/_jsx(ComponentXXS, {
186
201
  color: COLORS.generateToken({
187
202
  componentType: 'icon',
@@ -191,20 +206,22 @@ const CardBottomSection = /*#__PURE__*/React.forwardRef((_ref, ref) => {
191
206
  children: noteRight
192
207
  })]
193
208
  })]
194
- }), (authorName || logo) && /*#__PURE__*/_jsxs(CardBottomSectionAuthorStyles, {
209
+ }), (authorName || logo) && /*#__PURE__*/_jsxs(VerticalCardBottomSectionAuthorStyles, {
195
210
  $disabled: disabled,
196
211
  "data-testid": 'card-bottomSection-author',
197
212
  children: [/*#__PURE__*/_jsx(ComponentXXS, {
198
213
  children: authorName
199
214
  }), logo]
200
- }), (actions || leftButton) && /*#__PURE__*/_jsxs(CardBottomSectionButtonRowContainerStyles, {
215
+ }), (actions || leftButton) && /*#__PURE__*/_jsxs(VerticalCardBottomSectionButtonRowContainerStyles, {
201
216
  children: [/*#__PURE__*/_jsx(LeftItemContainer, {
202
217
  children: leftButton && renderLeftButton()
203
218
  }), actions && /*#__PURE__*/_jsx(RightItemContainer, {
204
219
  children: actions.map((x, index) => /*#__PURE__*/_jsx(IconButton, {
205
- ref: elRefs[index],
220
+ ref: elRefs[index + (leftButton ? 1 : 0)],
221
+ className: "card-bottom-section-action-button",
222
+ "z-index": 2000,
206
223
  disabled: disabled,
207
- variant: "secondary",
224
+ variant: x.variant ?? "secondary",
208
225
  shape: "circular",
209
226
  action: e => {
210
227
  x.onClick();
@@ -215,7 +232,7 @@ const CardBottomSection = /*#__PURE__*/React.forwardRef((_ref, ref) => {
215
232
  })]
216
233
  });
217
234
  });
218
- CardBottomSection.propTypes = {
235
+ VerticalCardBottomSection.propTypes = {
219
236
  progressLevel: _pt.number,
220
237
  progressMax: _pt.number,
221
238
  noteLeft: _pt.string,
@@ -224,11 +241,12 @@ CardBottomSection.propTypes = {
224
241
  noteRightIcon: _pt.node,
225
242
  authorName: _pt.string,
226
243
  actions: _pt.arrayOf(_pt.shape({
244
+ variant: _pt.oneOf(['primary', 'secondary']),
227
245
  icon: _pt.node.isRequired,
228
246
  onClick: _pt.func.isRequired
229
247
  })),
230
248
  logo: _pt.node,
231
249
  disabled: _pt.bool
232
250
  };
233
- export default CardBottomSection;
234
- //# sourceMappingURL=CardBottomSection.js.map
251
+ export default VerticalCardBottomSection;
252
+ //# sourceMappingURL=VerticalCardBottomSection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VerticalCardBottomSection.js","names":["React","styled","useTheme","COLORS","ComponentTextStyle","ComponentXXS","LinearProgress","LinearProgressType","LinearProgressVariant","Size","TextButton","IconButton","jsx","_jsx","jsxs","_jsxs","VerticalCardBottomSectionProgressStyles","div","VerticalCardBottomSectionNotesStyles","props","generateToken","componentType","defaultVariant","theme","VerticalCardBottomSectionAuthorStyles","$disabled","state","VerticalCardBottomSectionDivider","VerticalCardBottomSectionNoteLeftStyles","VerticalCardBottomSectionNoteRightStyles","VerticalCardBottomSectionButtonRowContainerStyles","VerticalCardBottomSectionContainer","LeftItemContainer","RightItemContainer","getColor","VerticalCardBottomSection","forwardRef","_ref","ref","progressLevel","progressMax","progressType","Line","noteLeft","noteLeftIcon","noteRight","noteRightIcon","leftButton","authorName","logo","actions","disabled","elRefs","setElRefs","useState","length","useEffect","Array","fill","map","createRef","useImperativeHandle","haveAtLeastSomething","undefined","renderLeftButton","buttonText","onClick","rest","_objectWithoutProperties","_excluded","_objectSpread","className","size","XSmall","XXSmall","includes","Small","Large","Medium","e","stopPropagation","children","type","variant","Normal","value","max","color","textStyle","Bold","x","index","shape","action","icon","propTypes","_pt","number","string","node","arrayOf","oneOf","isRequired","func","bool"],"sources":["../../../src/Card/VerticalCard/VerticalCardBottomSection.tsx"],"sourcesContent":["import * as React from 'react';\r\nimport styled, { useTheme } from 'styled-components';\r\nimport {\r\n COLORS,\r\n ComponentTextStyle,\r\n ComponentXXS,\r\n LinearProgress,\r\n LinearProgressType,\r\n LinearProgressVariant,\r\n Size,\r\n} from '../../index';\r\nimport { TextButton, TextButtonProps, IconButton } from '../../Button';\r\n\r\nexport interface VerticalCardActionItem {\r\n /** Optional. Variant of the action button, defaults to 'secondary'. */\r\n variant?: 'primary' | 'secondary';\r\n /** Icon to be used in the icon button. */\r\n icon: React.ReactNode;\r\n /** Click handler for the action button. */\r\n onClick: () => void;\r\n}\r\n\r\nexport type VerticalCardStandardButton = Pick<TextButtonProps, 'width' | 'variant' | 'loading' | 'icon' | 'onClick' | 'disabled'> & {\r\n buttonText: string;\r\n size?: Size.Small | Size.Medium | Size.Large;\r\n}\r\n\r\nexport interface VerticalCardBottomSectionProps {\r\n /** Optional. Current progress level shown in the progress bar. */\r\n progressLevel?: number;\r\n /** Optional. Maximum level of progress in the progress bar. */\r\n progressMax?: number;\r\n /** Optional. Type of the progress bar. */\r\n progressType?: LinearProgressType;\r\n\r\n /** Optional. Note text shown on the left side of the section. */\r\n noteLeft?: string;\r\n /** Optional. Note icon shown on the left side of the section. */\r\n noteLeftIcon?: React.ReactNode;\r\n /** Optional. Note text shown on the right side of the section. */\r\n noteRight?: string;\r\n /** Optional. Note icon shown on the right side of the section. */\r\n noteRightIcon?: React.ReactNode;\r\n\r\n /** Optional. Note icon/Hyperlink/button shown on the left side of the section. */\r\n leftButton?: VerticalCardStandardButton;\r\n\r\n /** Author name shown at the bottom-left part of the section. */\r\n authorName?: string;\r\n /** Array of actions shown on the bottom-right corner of the section. */\r\n actions?: VerticalCardActionItem[];\r\n /** Logo shown on the right side of the section, in front of AuthorName. */\r\n logo?: React.ReactNode;\r\n /** This property is set by Card component itself and is based on 'disabled' flag of CardProps. */\r\n disabled?: boolean;\r\n}\r\n\r\nexport const VerticalCardBottomSectionProgressStyles = styled.div`\r\n padding: 8px 0;\r\n`;\r\n\r\nexport const VerticalCardBottomSectionNotesStyles = styled.div`\r\n height: 48px;\r\n position: relative;\r\n color: ${props => COLORS.generateToken({ componentType:'text', defaultVariant:'subtle' }, props.theme)};\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n`;\r\n\r\nexport const VerticalCardBottomSectionAuthorStyles = styled.div<{ $disabled?: boolean }>`\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n height: 48px;\r\n\r\n div:first-child {\r\n flex-grow: 2;\r\n }\r\n\r\n svg, img {\r\n width: 80px;\r\n flex-grow: 0;\r\n flex-shrink: 0;\r\n }\r\n\r\n ${props => props.$disabled ? `\r\n color: ${COLORS.generateToken({ componentType: 'text', state: 'disabled' }, props.theme)};\r\n svg, img {\r\n filter: grayscale(100%);\r\n }\r\n \r\n ` : ''}\r\n`;\r\n\r\nexport const VerticalCardBottomSectionDivider = styled.div`\r\n border-top: 1px;\r\n border-top-color: ${props => COLORS.generateToken({componentType:'border', defaultVariant:'subtle'}, props.theme)};\r\n border-top-style: solid;\r\n width: 100%;\r\n`;\r\n\r\nexport const VerticalCardBottomSectionNoteLeftStyles = styled.div`\r\n position: absolute;\r\n left: 0px;\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n\r\n svg {\r\n margin-right: 4px;\r\n flex-grow: 0;\r\n flex-shrink: 0;\r\n }\r\n`;\r\n\r\nexport const VerticalCardBottomSectionNoteRightStyles = styled.div`\r\n position: absolute;\r\n right: 0px;\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n\r\n svg {\r\n margin-right: 4px;\r\n flex-grow: 0;\r\n flex-shrink: 0;\r\n }\r\n`;\r\n\r\nexport const VerticalCardBottomSectionButtonRowContainerStyles = styled.div`\r\n display: flex;\r\n flex-direction: row;\r\n justify-content: flex-end;\r\n align-items: center;\r\n border-top: 1px;\r\n border-top-color: ${props => COLORS.generateToken({componentType:'border', defaultVariant:'subtle'}, props.theme)};\r\n border-top-style: solid;\r\n\r\n button:last-child {\r\n margin: 8px 0px 0px 0px;\r\n }\r\n\r\n .card-bottom-section-action-button {\r\n z-index: 2000;\r\n }\r\n\r\n button:not(:last-child) {\r\n margin: 8px 0px 0px 0px;\r\n }\r\n\r\n .card-bottom-section-action-button {\r\n z-index: 2000;\r\n }\r\n\r\n svg {\r\n color: ${props => COLORS.generateToken({componentType:'icon', defaultVariant:'subtle' }, props.theme)};\r\n }\r\n`;\r\n\r\nexport const VerticalCardBottomSectionContainer = styled.div`\r\n padding: 0px 16px 8px 16px;\r\n width: calc(100% - 32px);\r\n`;\r\n\r\nconst LeftItemContainer = styled.div`\r\n flex: 1\r\n`;\r\n\r\nconst RightItemContainer = styled.div`\r\n display: flex;\r\n flex-direction: row;\r\n justify-content: flex-end;\r\n color: ${props => COLORS.getColor('neutral_600', props.theme)};\r\n`;\r\n\r\nconst VerticalCardBottomSection = React.forwardRef(({\r\n progressLevel,\r\n progressMax,\r\n progressType = LinearProgressType.Line,\r\n noteLeft,\r\n noteLeftIcon,\r\n noteRight,\r\n noteRightIcon,\r\n leftButton,\r\n authorName,\r\n logo,\r\n actions,\r\n disabled\r\n}: VerticalCardBottomSectionProps,\r\n ref: React.Ref<React.RefObject<HTMLButtonElement | null>[]>) => {\r\n\r\n const [elRefs, setElRefs] = React.useState<React.RefObject<HTMLButtonElement | null>[]>([]);\r\n const theme = useTheme();\r\n const length = actions?.length || 0;\r\n\r\n React.useEffect(() => {\r\n setElRefs(Array((length || 0) + (leftButton ? 1 : 0)).fill(null).map(() => React.createRef<HTMLButtonElement>()));\r\n }, [length, leftButton]);\r\n\r\n React.useImperativeHandle(ref, () => elRefs, [elRefs]);\r\n\r\n const haveAtLeastSomething = progressLevel != undefined || noteLeft || noteLeftIcon || noteRight || noteRightIcon || authorName || leftButton;\r\n\r\n const renderLeftButton = () => {\r\n if (leftButton){\r\n const {buttonText, onClick, ...rest} = leftButton;\r\n return (<TextButton className=\"card-bottom-section-action-button\"\r\n ref={elRefs[0]}\r\n size={ leftButton.size && [Size.XSmall, Size.XSmall, Size.XXSmall].includes(leftButton.size) ? Size.Small: \r\n leftButton.size == Size.Large ? Size.Large : Size.Medium}\r\n {...rest}\r\n onClick={(e) => {\r\n e.stopPropagation();\r\n onClick && onClick(e);\r\n }}>\r\n {buttonText}\r\n </TextButton>)\r\n }\r\n}\r\n\r\n return (\r\n <VerticalCardBottomSectionContainer data-testid={'card-bottomSection'}>\r\n {haveAtLeastSomething && <VerticalCardBottomSectionDivider/>}\r\n {progressLevel != undefined && <VerticalCardBottomSectionProgressStyles>\r\n <LinearProgress size={Size.Small}\r\n type={progressType}\r\n variant={LinearProgressVariant.Normal}\r\n value={progressLevel}\r\n max={progressMax ?? progressLevel}/>\r\n </VerticalCardBottomSectionProgressStyles>}\r\n\r\n {(noteLeft || noteLeftIcon || noteRight || noteRightIcon) && <VerticalCardBottomSectionNotesStyles>\r\n {(noteLeft || noteLeftIcon) && (\r\n <VerticalCardBottomSectionNoteLeftStyles>\r\n {noteLeftIcon}\r\n <ComponentXXS color={COLORS.generateToken({componentType:'icon', defaultVariant:'subtle'}, theme)} textStyle={ComponentTextStyle.Bold}>{noteLeft}</ComponentXXS>\r\n </VerticalCardBottomSectionNoteLeftStyles>\r\n )}\r\n {(noteRight || noteRightIcon) && (\r\n <VerticalCardBottomSectionNoteRightStyles>\r\n {noteRightIcon}\r\n <ComponentXXS color={COLORS.generateToken({componentType:'icon', defaultVariant:'subtle'}, theme)} textStyle={ComponentTextStyle.Bold}>{noteRight}</ComponentXXS>\r\n </VerticalCardBottomSectionNoteRightStyles>\r\n )}\r\n </VerticalCardBottomSectionNotesStyles>}\r\n\r\n {(authorName || logo) && <VerticalCardBottomSectionAuthorStyles $disabled={disabled} data-testid={'card-bottomSection-author'}>\r\n <ComponentXXS>{authorName}</ComponentXXS>\r\n {logo}\r\n </VerticalCardBottomSectionAuthorStyles>}\r\n\r\n {(actions || leftButton) && <VerticalCardBottomSectionButtonRowContainerStyles>\r\n <LeftItemContainer>\r\n {leftButton && renderLeftButton()}\r\n </LeftItemContainer>\r\n\r\n { actions && <RightItemContainer>{actions.map((x, index) => (\r\n <IconButton ref={elRefs[index + (leftButton ? 1 : 0)]}\r\n className=\"card-bottom-section-action-button\"\r\n key={index}\r\n z-index={2000}\r\n disabled={disabled}\r\n variant={x.variant ?? \"secondary\"}\r\n shape=\"circular\"\r\n action={(e) => {\r\n x.onClick();\r\n }}>\r\n {x.icon}\r\n </IconButton>\r\n ))}\r\n </RightItemContainer>\r\n }\r\n </VerticalCardBottomSectionButtonRowContainerStyles>}\r\n </VerticalCardBottomSectionContainer>\r\n );\r\n});\r\n\r\nexport default VerticalCardBottomSection;\r\n"],"mappings":";;;;;;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,MAAM,IAAIC,QAAQ,QAAQ,mBAAmB;AACpD,SACEC,MAAM,EACNC,kBAAkB,EAClBC,YAAY,EACZC,cAAc,EACdC,kBAAkB,EAClBC,qBAAqB,EACrBC,IAAI,QACC,aAAa;AACpB,SAASC,UAAU,EAAmBC,UAAU,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AA8CvE,OAAO,MAAMC,uCAAuC,GAAGf,MAAM,CAACgB,GAAG;AACjE;AACA,CAAC;AAED,OAAO,MAAMC,oCAAoC,GAAGjB,MAAM,CAACgB,GAAG;AAC9D;AACA;AACA,WAAWE,KAAK,IAAIhB,MAAM,CAACiB,aAAa,CAAC;EAAEC,aAAa,EAAC,MAAM;EAAEC,cAAc,EAAC;AAAS,CAAC,EAAEH,KAAK,CAACI,KAAK,CAAC;AACxG;AACA;AACA;AACA,CAAC;AAED,OAAO,MAAMC,qCAAqC,GAAGvB,MAAM,CAACgB,GAA4B;AACxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAIE,KAAK,IAAI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