@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
@@ -1,16 +1,18 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
- exports.default = exports.CardMiddleSectionTagsStyles = exports.CardMiddleSectionContainer = exports.CardMiddleSectionColorBandStyles = exports.CardMiddleSectionCategoryStyles = void 0;
7
+ exports.default = exports.VerticalCardMiddleSectionTitle = exports.VerticalCardMiddleSectionTagsStyles = exports.VerticalCardMiddleSectionContainer = exports.VerticalCardMiddleSectionColorBandStyles = exports.VerticalCardMiddleSectionCategoryStyles = void 0;
8
+ var _propTypes = _interopRequireDefault(require("prop-types"));
7
9
  var React = _interopRequireWildcard(require("react"));
8
10
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
11
  var _index = require("../../index");
10
12
  var _jsxRuntime = require("react/jsx-runtime");
11
13
  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); }
12
14
  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; }
13
- const CardMiddleSectionContainer = exports.CardMiddleSectionContainer = _styledComponents.default.div`
15
+ const VerticalCardMiddleSectionContainer = exports.VerticalCardMiddleSectionContainer = _styledComponents.default.div`
14
16
  display: flex;
15
17
  flex-grow: 1;
16
18
  width: calc(100% - 32px);
@@ -27,7 +29,7 @@ const CardMiddleSectionContainer = exports.CardMiddleSectionContainer = _styledC
27
29
  padding: 2px 0;
28
30
  }
29
31
  `;
30
- const CardMiddleSectionColorBandStyles = exports.CardMiddleSectionColorBandStyles = _styledComponents.default.div`
32
+ const VerticalCardMiddleSectionColorBandStyles = exports.VerticalCardMiddleSectionColorBandStyles = _styledComponents.default.div`
31
33
  position: absolute;
32
34
  width: 100%;
33
35
  top: 0px;
@@ -35,14 +37,14 @@ const CardMiddleSectionColorBandStyles = exports.CardMiddleSectionColorBandStyle
35
37
  height: 8px;
36
38
  background-color: ${props => props.$color};
37
39
  `;
38
- const CardMiddleSectionTagsStyles = exports.CardMiddleSectionTagsStyles = _styledComponents.default.div`
40
+ const VerticalCardMiddleSectionTagsStyles = exports.VerticalCardMiddleSectionTagsStyles = _styledComponents.default.div`
39
41
  display: flex;
40
42
  flex-direction: row;
41
43
  padding: 4px 0;
42
44
  gap: 4px;
43
45
  flex-wrap: wrap;
44
46
  `;
45
- const CardMiddleSectionCategoryStyles = exports.CardMiddleSectionCategoryStyles = _styledComponents.default.div`
47
+ const VerticalCardMiddleSectionCategoryStyles = exports.VerticalCardMiddleSectionCategoryStyles = _styledComponents.default.div`
46
48
  display: flex;
47
49
  flex-direction: row;
48
50
  align-items: center;
@@ -58,7 +60,16 @@ const CardMiddleSectionCategoryStyles = exports.CardMiddleSectionCategoryStyles
58
60
  flex-shrink: 0;
59
61
  }
60
62
  `;
61
- const CardMiddleSection = _ref => {
63
+ const VerticalCardMiddleSectionTitle = exports.VerticalCardMiddleSectionTitle = _styledComponents.default.h3`
64
+ ${props => (0, _index.ComponentXLStyling)(_index.ComponentTextStyle.Bold, props.$disabled ? _index.COLORS.generateToken({
65
+ componentType: 'text',
66
+ defaultVariant: 'subtle'
67
+ }, props.theme) : _index.COLORS.generateToken({
68
+ componentType: 'text',
69
+ defaultVariant: 'default'
70
+ }, props.theme))}
71
+ `;
72
+ const VerticalCardMiddleSection = _ref => {
62
73
  let {
63
74
  colorBandColor,
64
75
  categoryIcon,
@@ -67,14 +78,15 @@ const CardMiddleSection = _ref => {
67
78
  description,
68
79
  tags,
69
80
  row2Tags,
70
- disabled
81
+ disabled,
82
+ componentId
71
83
  } = _ref;
72
84
  const theme = (0, _styledComponents.useTheme)();
73
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(CardMiddleSectionContainer, {
85
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(VerticalCardMiddleSectionContainer, {
74
86
  "data-testid": 'card-middleSection',
75
- children: [colorBandColor && /*#__PURE__*/(0, _jsxRuntime.jsx)(CardMiddleSectionColorBandStyles, {
87
+ children: [colorBandColor && /*#__PURE__*/(0, _jsxRuntime.jsx)(VerticalCardMiddleSectionColorBandStyles, {
76
88
  $color: colorBandColor
77
- }), (categoryIcon || categoryLabel) && /*#__PURE__*/(0, _jsxRuntime.jsxs)(CardMiddleSectionCategoryStyles, {
89
+ }), (categoryIcon || categoryLabel) && /*#__PURE__*/(0, _jsxRuntime.jsxs)(VerticalCardMiddleSectionCategoryStyles, {
78
90
  $extraTopMargin: Boolean(colorBandColor),
79
91
  $bottomMargin: Boolean(categoryIcon || categoryLabel),
80
92
  children: [categoryIcon, /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ComponentS, {
@@ -85,16 +97,10 @@ const CardMiddleSection = _ref => {
85
97
  }, theme),
86
98
  children: categoryLabel
87
99
  })]
88
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ComponentXL, {
100
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(VerticalCardMiddleSectionTitle, {
101
+ id: `${componentId}-title`,
89
102
  className: "titleBlock",
90
- textStyle: _index.ComponentTextStyle.Bold,
91
- color: disabled ? _index.COLORS.generateToken({
92
- componentType: 'text',
93
- defaultVariant: 'subtle'
94
- }, theme) : _index.COLORS.generateToken({
95
- componentType: 'text',
96
- defaultVariant: 'default'
97
- }, theme),
103
+ $disabled: disabled,
98
104
  children: title
99
105
  }), description && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ComponentS, {
100
106
  className: "descriptionBlock",
@@ -103,13 +109,13 @@ const CardMiddleSection = _ref => {
103
109
  defaultVariant: 'subtle'
104
110
  }, theme),
105
111
  children: description
106
- }), tags && /*#__PURE__*/(0, _jsxRuntime.jsx)(CardMiddleSectionTagsStyles, {
112
+ }), tags && /*#__PURE__*/(0, _jsxRuntime.jsx)(VerticalCardMiddleSectionTagsStyles, {
107
113
  children: tags.map((x, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Tag, {
108
114
  label: x.label,
109
115
  variant: x.variant ?? 'neutral',
110
116
  icon: x.icon
111
117
  }, `${x.label}_${index}`))
112
- }), row2Tags && /*#__PURE__*/(0, _jsxRuntime.jsx)(CardMiddleSectionTagsStyles, {
118
+ }), row2Tags && /*#__PURE__*/(0, _jsxRuntime.jsx)(VerticalCardMiddleSectionTagsStyles, {
113
119
  children: row2Tags.map((x, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Tag, {
114
120
  label: x.label,
115
121
  variant: x.variant ?? 'neutral',
@@ -118,5 +124,22 @@ const CardMiddleSection = _ref => {
118
124
  })]
119
125
  });
120
126
  };
121
- var _default = exports.default = CardMiddleSection;
122
- //# sourceMappingURL=CardMiddleSection.cjs.map
127
+ VerticalCardMiddleSection.propTypes = {
128
+ colorBandColor: _propTypes.default.string,
129
+ categoryIcon: _propTypes.default.node,
130
+ categoryLabel: _propTypes.default.string,
131
+ title: _propTypes.default.string.isRequired,
132
+ description: _propTypes.default.string,
133
+ tags: _propTypes.default.arrayOf(_propTypes.default.shape({
134
+ label: _propTypes.default.string.isRequired,
135
+ icon: _propTypes.default.node
136
+ })),
137
+ row2Tags: _propTypes.default.arrayOf(_propTypes.default.shape({
138
+ label: _propTypes.default.string.isRequired,
139
+ icon: _propTypes.default.node
140
+ })),
141
+ disabled: _propTypes.default.bool,
142
+ componentId: _propTypes.default.string
143
+ };
144
+ var _default = exports.default = VerticalCardMiddleSection;
145
+ //# sourceMappingURL=VerticalCardMiddleSection.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VerticalCardMiddleSection.cjs","names":["React","_interopRequireWildcard","require","_styledComponents","_index","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","VerticalCardMiddleSectionContainer","exports","styled","div","VerticalCardMiddleSectionColorBandStyles","props","$color","VerticalCardMiddleSectionTagsStyles","VerticalCardMiddleSectionCategoryStyles","COLORS","generateToken","componentType","defaultVariant","theme","VerticalCardMiddleSectionTitle","h3","ComponentXLStyling","ComponentTextStyle","Bold","$disabled","VerticalCardMiddleSection","_ref","colorBandColor","categoryIcon","categoryLabel","title","description","tags","row2Tags","disabled","componentId","useTheme","jsxs","children","jsx","$extraTopMargin","Boolean","$bottomMargin","ComponentS","textStyle","color","id","className","map","x","index","Tag","label","variant","icon","propTypes","_propTypes","string","node","isRequired","arrayOf","shape","bool","_default"],"sources":["../../../src/Card/VerticalCard/VerticalCardMiddleSection.tsx"],"sourcesContent":["import * as React from 'react';\r\nimport styled, { useTheme } from 'styled-components';\r\nimport { COLORS, ComponentS, ComponentTextStyle, ComponentXL, ComponentXLStyling, Tag, TagVariants } from '../../index';\r\nimport { ReactNode } from 'react';\r\n\r\nexport interface VerticalCardMiddleSectionProps {\r\n /** Color of the band to be shown on the top of middle section. */\r\n colorBandColor?: string;\r\n /** Icon to be shown on the left side of the categoryLabel. */\r\n categoryIcon?: React.ReactNode;\r\n /** Label to be shown at the top part of the middle section. */\r\n categoryLabel?: string;\r\n /** Main title of the Card component. */\r\n title: string;\r\n /** Description of the Card. */\r\n description?: string;\r\n /** Tags to be shown under the description. */\r\n tags?: VerticalCardTag[];\r\n /** Second row of tags if needed. */\r\n row2Tags?: VerticalCardTag[];\r\n /** This property is set by Card component itself and is based on 'disabled' flag of CardProps. */\r\n disabled?: boolean;\r\n /** Top level Id of Card component */\r\n componentId?: string;\r\n}\r\n\r\nexport interface VerticalCardTag {\r\n label: string;\r\n variant?: TagVariants;\r\n icon?: ReactNode\r\n}\r\n\r\nexport const VerticalCardMiddleSectionContainer = styled.div`\r\n display: flex;\r\n flex-grow: 1;\r\n width: calc(100% - 32px);\r\n position: relative;\r\n flex-direction: column;\r\n padding: 16px;\r\n gap: 8px;\r\n\r\n .descriptionBlock {\r\n padding: 2px 0;\r\n }\r\n\r\n .titleBlock {\r\n padding: 2px 0;\r\n }\r\n`;\r\n\r\nexport const VerticalCardMiddleSectionColorBandStyles = styled.div<{ $color: string }>`\r\n position: absolute;\r\n width: 100%;\r\n top: 0px;\r\n left: 0px;\r\n height: 8px;\r\n background-color: ${(props) => props.$color};\r\n`;\r\n\r\nexport const VerticalCardMiddleSectionTagsStyles = styled.div`\r\n display: flex;\r\n flex-direction: row;\r\n padding: 4px 0;\r\n gap: 4px;\r\n flex-wrap: wrap;\r\n`;\r\n\r\nexport const VerticalCardMiddleSectionCategoryStyles = styled.div<{ $extraTopMargin: boolean; $bottomMargin: boolean }>`\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n padding: none;\r\n gap: 6px;\r\n\r\n svg {\r\n color: ${props => COLORS.generateToken({ componentType: 'text', defaultVariant: 'subtle' }, props.theme)};\r\n flex-grow: 0;\r\n flex-shrink: 0;\r\n }\r\n`;\r\n\r\nexport const VerticalCardMiddleSectionTitle = styled.h3<{ $disabled?: boolean }>`\r\n ${props => ComponentXLStyling(ComponentTextStyle.Bold, props.$disabled \r\n ? COLORS.generateToken({componentType:'text',defaultVariant:'subtle'}, props.theme)\r\n : COLORS.generateToken({componentType:'text',defaultVariant:'default'}, props.theme)\r\n )}\r\n`;\r\n\r\nconst VerticalCardMiddleSection: React.FunctionComponent<VerticalCardMiddleSectionProps> = ({\r\n colorBandColor,\r\n categoryIcon,\r\n categoryLabel,\r\n title,\r\n description,\r\n tags,\r\n row2Tags,\r\n disabled,\r\n componentId\r\n}: VerticalCardMiddleSectionProps) => {\r\n const theme = useTheme();\r\n \r\n return (\r\n <VerticalCardMiddleSectionContainer data-testid={'card-middleSection'} >\r\n {colorBandColor && <VerticalCardMiddleSectionColorBandStyles $color={colorBandColor} />}\r\n {\r\n (categoryIcon || categoryLabel) &&\r\n <VerticalCardMiddleSectionCategoryStyles $extraTopMargin={Boolean(colorBandColor)} $bottomMargin={Boolean(categoryIcon || categoryLabel)}>\r\n {categoryIcon}\r\n <ComponentS textStyle={ComponentTextStyle.Bold} color={COLORS.generateToken({componentType:'text',defaultVariant:'subtle'}, theme)}>\r\n {categoryLabel}\r\n </ComponentS>\r\n </VerticalCardMiddleSectionCategoryStyles>\r\n }\r\n <VerticalCardMiddleSectionTitle \r\n id={`${componentId}-title`} \r\n className=\"titleBlock\"\r\n $disabled={disabled}>\r\n {title}\r\n </VerticalCardMiddleSectionTitle>\r\n {description && (\r\n <ComponentS className=\"descriptionBlock\" color={COLORS.generateToken({componentType:'text',defaultVariant:'subtle'}, theme)}>\r\n {description}\r\n </ComponentS>\r\n )}\r\n {tags && (\r\n <VerticalCardMiddleSectionTagsStyles>\r\n {tags.map((x, index) => (\r\n <Tag key={`${x.label}_${index}`} label={x.label} variant={x.variant ?? 'neutral'} icon={x.icon} />\r\n ))}\r\n </VerticalCardMiddleSectionTagsStyles>\r\n )}\r\n {row2Tags && (\r\n <VerticalCardMiddleSectionTagsStyles>\r\n {row2Tags.map((x, index) => (\r\n <Tag key={`${x.label}_${index}`} label={x.label} variant={x.variant ?? 'neutral'} icon={x.icon} />\r\n ))}\r\n </VerticalCardMiddleSectionTagsStyles>\r\n )}\r\n </VerticalCardMiddleSectionContainer>\r\n );\r\n};\r\n\r\nexport default VerticalCardMiddleSection;\r\n"],"mappings":";;;;;;;;AAAA,IAAAA,KA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UAAA,CAAAjE,OAAA,CAAAqE,OAAA,CAAAJ,UAAA,CAAAjE,OAAA,CAAAsE,KAAA;IAUJT,KAAK,EAAAI,UAAA,CAAAjE,OAAA,CAAAkE,MAAA,CAAAE,UAAA;IAELL,IAAI,EAAAE,UAAA,CAAAjE,OAAA,CAAAmE;EAAA;EAVJzB,QAAQ,EAAAuB,UAAA,CAAAjE,OAAA,CAAAqE,OAAA,CAAAJ,UAAA,CAAAjE,OAAA,CAAAsE,KAAA;IAQRT,KAAK,EAAAI,UAAA,CAAAjE,OAAA,CAAAkE,MAAA,CAAAE,UAAA;IAELL,IAAI,EAAAE,UAAA,CAAAjE,OAAA,CAAAmE;EAAA;EARJxB,QAAQ,EAAAsB,UAAA,CAAAjE,OAAA,CAAAuE,IAAA;EAER3B,WAAW,EAAAqB,UAAA,CAAAjE,OAAA,CAAAkE;AAAA;AAAA,IAAAM,QAAA,GAAAzD,OAAA,CAAAf,OAAA,GAuHEkC,yBAAyB","ignoreList":[]}
@@ -0,0 +1,42 @@
1
+ import * as React from 'react';
2
+ import { TagVariants } from '../../index';
3
+ import { ReactNode } from 'react';
4
+ export interface VerticalCardMiddleSectionProps {
5
+ /** Color of the band to be shown on the top of middle section. */
6
+ colorBandColor?: string;
7
+ /** Icon to be shown on the left side of the categoryLabel. */
8
+ categoryIcon?: React.ReactNode;
9
+ /** Label to be shown at the top part of the middle section. */
10
+ categoryLabel?: string;
11
+ /** Main title of the Card component. */
12
+ title: string;
13
+ /** Description of the Card. */
14
+ description?: string;
15
+ /** Tags to be shown under the description. */
16
+ tags?: VerticalCardTag[];
17
+ /** Second row of tags if needed. */
18
+ row2Tags?: VerticalCardTag[];
19
+ /** This property is set by Card component itself and is based on 'disabled' flag of CardProps. */
20
+ disabled?: boolean;
21
+ /** Top level Id of Card component */
22
+ componentId?: string;
23
+ }
24
+ export interface VerticalCardTag {
25
+ label: string;
26
+ variant?: TagVariants;
27
+ icon?: ReactNode;
28
+ }
29
+ export declare const VerticalCardMiddleSectionContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
30
+ export declare const VerticalCardMiddleSectionColorBandStyles: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
31
+ $color: string;
32
+ }>> & string;
33
+ export declare const VerticalCardMiddleSectionTagsStyles: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
34
+ export declare const VerticalCardMiddleSectionCategoryStyles: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
35
+ $extraTopMargin: boolean;
36
+ $bottomMargin: boolean;
37
+ }>> & string;
38
+ export declare const VerticalCardMiddleSectionTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {
39
+ $disabled?: boolean;
40
+ }>> & string;
41
+ declare const VerticalCardMiddleSection: React.FunctionComponent<VerticalCardMiddleSectionProps>;
42
+ export default VerticalCardMiddleSection;
@@ -1,8 +1,9 @@
1
+ import _pt from "prop-types";
1
2
  import * as React from 'react';
2
3
  import styled, { useTheme } from 'styled-components';
3
- import { COLORS, ComponentS, ComponentTextStyle, ComponentXL, Tag } from '../../index';
4
+ import { COLORS, ComponentS, ComponentTextStyle, ComponentXLStyling, Tag } from '../../index';
4
5
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
- export const CardMiddleSectionContainer = styled.div`
6
+ export const VerticalCardMiddleSectionContainer = styled.div`
6
7
  display: flex;
7
8
  flex-grow: 1;
8
9
  width: calc(100% - 32px);
@@ -19,7 +20,7 @@ export const CardMiddleSectionContainer = styled.div`
19
20
  padding: 2px 0;
20
21
  }
21
22
  `;
22
- export const CardMiddleSectionColorBandStyles = styled.div`
23
+ export const VerticalCardMiddleSectionColorBandStyles = styled.div`
23
24
  position: absolute;
24
25
  width: 100%;
25
26
  top: 0px;
@@ -27,14 +28,14 @@ export const CardMiddleSectionColorBandStyles = styled.div`
27
28
  height: 8px;
28
29
  background-color: ${props => props.$color};
29
30
  `;
30
- export const CardMiddleSectionTagsStyles = styled.div`
31
+ export const VerticalCardMiddleSectionTagsStyles = styled.div`
31
32
  display: flex;
32
33
  flex-direction: row;
33
34
  padding: 4px 0;
34
35
  gap: 4px;
35
36
  flex-wrap: wrap;
36
37
  `;
37
- export const CardMiddleSectionCategoryStyles = styled.div`
38
+ export const VerticalCardMiddleSectionCategoryStyles = styled.div`
38
39
  display: flex;
39
40
  flex-direction: row;
40
41
  align-items: center;
@@ -50,7 +51,16 @@ export const CardMiddleSectionCategoryStyles = styled.div`
50
51
  flex-shrink: 0;
51
52
  }
52
53
  `;
53
- const CardMiddleSection = _ref => {
54
+ export const VerticalCardMiddleSectionTitle = styled.h3`
55
+ ${props => ComponentXLStyling(ComponentTextStyle.Bold, props.$disabled ? COLORS.generateToken({
56
+ componentType: 'text',
57
+ defaultVariant: 'subtle'
58
+ }, props.theme) : COLORS.generateToken({
59
+ componentType: 'text',
60
+ defaultVariant: 'default'
61
+ }, props.theme))}
62
+ `;
63
+ const VerticalCardMiddleSection = _ref => {
54
64
  let {
55
65
  colorBandColor,
56
66
  categoryIcon,
@@ -59,14 +69,15 @@ const CardMiddleSection = _ref => {
59
69
  description,
60
70
  tags,
61
71
  row2Tags,
62
- disabled
72
+ disabled,
73
+ componentId
63
74
  } = _ref;
64
75
  const theme = useTheme();
65
- return /*#__PURE__*/_jsxs(CardMiddleSectionContainer, {
76
+ return /*#__PURE__*/_jsxs(VerticalCardMiddleSectionContainer, {
66
77
  "data-testid": 'card-middleSection',
67
- children: [colorBandColor && /*#__PURE__*/_jsx(CardMiddleSectionColorBandStyles, {
78
+ children: [colorBandColor && /*#__PURE__*/_jsx(VerticalCardMiddleSectionColorBandStyles, {
68
79
  $color: colorBandColor
69
- }), (categoryIcon || categoryLabel) && /*#__PURE__*/_jsxs(CardMiddleSectionCategoryStyles, {
80
+ }), (categoryIcon || categoryLabel) && /*#__PURE__*/_jsxs(VerticalCardMiddleSectionCategoryStyles, {
70
81
  $extraTopMargin: Boolean(colorBandColor),
71
82
  $bottomMargin: Boolean(categoryIcon || categoryLabel),
72
83
  children: [categoryIcon, /*#__PURE__*/_jsx(ComponentS, {
@@ -77,16 +88,10 @@ const CardMiddleSection = _ref => {
77
88
  }, theme),
78
89
  children: categoryLabel
79
90
  })]
80
- }), /*#__PURE__*/_jsx(ComponentXL, {
91
+ }), /*#__PURE__*/_jsx(VerticalCardMiddleSectionTitle, {
92
+ id: `${componentId}-title`,
81
93
  className: "titleBlock",
82
- textStyle: ComponentTextStyle.Bold,
83
- color: disabled ? COLORS.generateToken({
84
- componentType: 'text',
85
- defaultVariant: 'subtle'
86
- }, theme) : COLORS.generateToken({
87
- componentType: 'text',
88
- defaultVariant: 'default'
89
- }, theme),
94
+ $disabled: disabled,
90
95
  children: title
91
96
  }), description && /*#__PURE__*/_jsx(ComponentS, {
92
97
  className: "descriptionBlock",
@@ -95,13 +100,13 @@ const CardMiddleSection = _ref => {
95
100
  defaultVariant: 'subtle'
96
101
  }, theme),
97
102
  children: description
98
- }), tags && /*#__PURE__*/_jsx(CardMiddleSectionTagsStyles, {
103
+ }), tags && /*#__PURE__*/_jsx(VerticalCardMiddleSectionTagsStyles, {
99
104
  children: tags.map((x, index) => /*#__PURE__*/_jsx(Tag, {
100
105
  label: x.label,
101
106
  variant: x.variant ?? 'neutral',
102
107
  icon: x.icon
103
108
  }, `${x.label}_${index}`))
104
- }), row2Tags && /*#__PURE__*/_jsx(CardMiddleSectionTagsStyles, {
109
+ }), row2Tags && /*#__PURE__*/_jsx(VerticalCardMiddleSectionTagsStyles, {
105
110
  children: row2Tags.map((x, index) => /*#__PURE__*/_jsx(Tag, {
106
111
  label: x.label,
107
112
  variant: x.variant ?? 'neutral',
@@ -110,5 +115,22 @@ const CardMiddleSection = _ref => {
110
115
  })]
111
116
  });
112
117
  };
113
- export default CardMiddleSection;
114
- //# sourceMappingURL=CardMiddleSection.js.map
118
+ VerticalCardMiddleSection.propTypes = {
119
+ colorBandColor: _pt.string,
120
+ categoryIcon: _pt.node,
121
+ categoryLabel: _pt.string,
122
+ title: _pt.string.isRequired,
123
+ description: _pt.string,
124
+ tags: _pt.arrayOf(_pt.shape({
125
+ label: _pt.string.isRequired,
126
+ icon: _pt.node
127
+ })),
128
+ row2Tags: _pt.arrayOf(_pt.shape({
129
+ label: _pt.string.isRequired,
130
+ icon: _pt.node
131
+ })),
132
+ disabled: _pt.bool,
133
+ componentId: _pt.string
134
+ };
135
+ export default VerticalCardMiddleSection;
136
+ //# sourceMappingURL=VerticalCardMiddleSection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VerticalCardMiddleSection.js","names":["React","styled","useTheme","COLORS","ComponentS","ComponentTextStyle","ComponentXLStyling","Tag","jsx","_jsx","jsxs","_jsxs","VerticalCardMiddleSectionContainer","div","VerticalCardMiddleSectionColorBandStyles","props","$color","VerticalCardMiddleSectionTagsStyles","VerticalCardMiddleSectionCategoryStyles","generateToken","componentType","defaultVariant","theme","VerticalCardMiddleSectionTitle","h3","Bold","$disabled","VerticalCardMiddleSection","_ref","colorBandColor","categoryIcon","categoryLabel","title","description","tags","row2Tags","disabled","componentId","children","$extraTopMargin","Boolean","$bottomMargin","textStyle","color","id","className","map","x","index","label","variant","icon","propTypes","_pt","string","node","isRequired","arrayOf","shape","bool"],"sources":["../../../src/Card/VerticalCard/VerticalCardMiddleSection.tsx"],"sourcesContent":["import * as React from 'react';\r\nimport styled, { useTheme } from 'styled-components';\r\nimport { COLORS, ComponentS, ComponentTextStyle, ComponentXL, ComponentXLStyling, Tag, TagVariants } from '../../index';\r\nimport { ReactNode } from 'react';\r\n\r\nexport interface VerticalCardMiddleSectionProps {\r\n /** Color of the band to be shown on the top of middle section. */\r\n colorBandColor?: string;\r\n /** Icon to be shown on the left side of the categoryLabel. */\r\n categoryIcon?: React.ReactNode;\r\n /** Label to be shown at the top part of the middle section. */\r\n categoryLabel?: string;\r\n /** Main title of the Card component. */\r\n title: string;\r\n /** Description of the Card. */\r\n description?: string;\r\n /** Tags to be shown under the description. */\r\n tags?: VerticalCardTag[];\r\n /** Second row of tags if needed. */\r\n row2Tags?: VerticalCardTag[];\r\n /** This property is set by Card component itself and is based on 'disabled' flag of CardProps. */\r\n disabled?: boolean;\r\n /** Top level Id of Card component */\r\n componentId?: string;\r\n}\r\n\r\nexport interface VerticalCardTag {\r\n label: string;\r\n variant?: TagVariants;\r\n icon?: ReactNode\r\n}\r\n\r\nexport const VerticalCardMiddleSectionContainer = styled.div`\r\n display: flex;\r\n flex-grow: 1;\r\n width: calc(100% - 32px);\r\n position: relative;\r\n flex-direction: column;\r\n padding: 16px;\r\n gap: 8px;\r\n\r\n .descriptionBlock {\r\n padding: 2px 0;\r\n }\r\n\r\n .titleBlock {\r\n padding: 2px 0;\r\n }\r\n`;\r\n\r\nexport const VerticalCardMiddleSectionColorBandStyles = styled.div<{ $color: string }>`\r\n position: absolute;\r\n width: 100%;\r\n top: 0px;\r\n left: 0px;\r\n height: 8px;\r\n background-color: ${(props) => props.$color};\r\n`;\r\n\r\nexport const VerticalCardMiddleSectionTagsStyles = styled.div`\r\n display: flex;\r\n flex-direction: row;\r\n padding: 4px 0;\r\n gap: 4px;\r\n flex-wrap: wrap;\r\n`;\r\n\r\nexport const VerticalCardMiddleSectionCategoryStyles = styled.div<{ $extraTopMargin: boolean; $bottomMargin: boolean }>`\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n padding: none;\r\n gap: 6px;\r\n\r\n svg {\r\n color: ${props => COLORS.generateToken({ componentType: 'text', defaultVariant: 'subtle' }, props.theme)};\r\n flex-grow: 0;\r\n flex-shrink: 0;\r\n }\r\n`;\r\n\r\nexport const VerticalCardMiddleSectionTitle = styled.h3<{ $disabled?: boolean }>`\r\n ${props => ComponentXLStyling(ComponentTextStyle.Bold, props.$disabled \r\n ? COLORS.generateToken({componentType:'text',defaultVariant:'subtle'}, props.theme)\r\n : COLORS.generateToken({componentType:'text',defaultVariant:'default'}, props.theme)\r\n )}\r\n`;\r\n\r\nconst VerticalCardMiddleSection: React.FunctionComponent<VerticalCardMiddleSectionProps> = ({\r\n colorBandColor,\r\n categoryIcon,\r\n categoryLabel,\r\n title,\r\n description,\r\n tags,\r\n row2Tags,\r\n disabled,\r\n componentId\r\n}: VerticalCardMiddleSectionProps) => {\r\n const theme = useTheme();\r\n \r\n return (\r\n <VerticalCardMiddleSectionContainer data-testid={'card-middleSection'} >\r\n {colorBandColor && <VerticalCardMiddleSectionColorBandStyles $color={colorBandColor} />}\r\n {\r\n (categoryIcon || categoryLabel) &&\r\n <VerticalCardMiddleSectionCategoryStyles $extraTopMargin={Boolean(colorBandColor)} $bottomMargin={Boolean(categoryIcon || categoryLabel)}>\r\n {categoryIcon}\r\n <ComponentS textStyle={ComponentTextStyle.Bold} color={COLORS.generateToken({componentType:'text',defaultVariant:'subtle'}, theme)}>\r\n {categoryLabel}\r\n </ComponentS>\r\n </VerticalCardMiddleSectionCategoryStyles>\r\n }\r\n <VerticalCardMiddleSectionTitle \r\n id={`${componentId}-title`} \r\n className=\"titleBlock\"\r\n $disabled={disabled}>\r\n {title}\r\n </VerticalCardMiddleSectionTitle>\r\n {description && (\r\n <ComponentS className=\"descriptionBlock\" color={COLORS.generateToken({componentType:'text',defaultVariant:'subtle'}, theme)}>\r\n {description}\r\n </ComponentS>\r\n )}\r\n {tags && (\r\n <VerticalCardMiddleSectionTagsStyles>\r\n {tags.map((x, index) => (\r\n <Tag key={`${x.label}_${index}`} label={x.label} variant={x.variant ?? 'neutral'} icon={x.icon} />\r\n ))}\r\n </VerticalCardMiddleSectionTagsStyles>\r\n )}\r\n {row2Tags && (\r\n <VerticalCardMiddleSectionTagsStyles>\r\n {row2Tags.map((x, index) => (\r\n <Tag key={`${x.label}_${index}`} label={x.label} variant={x.variant ?? 'neutral'} icon={x.icon} />\r\n ))}\r\n </VerticalCardMiddleSectionTagsStyles>\r\n )}\r\n </VerticalCardMiddleSectionContainer>\r\n );\r\n};\r\n\r\nexport default VerticalCardMiddleSection;\r\n"],"mappings":";AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,MAAM,IAAIC,QAAQ,QAAQ,mBAAmB;AACpD,SAASC,MAAM,EAAEC,UAAU,EAAEC,kBAAkB,EAAeC,kBAAkB,EAAEC,GAAG,QAAqB,aAAa;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AA8BxH,OAAO,MAAMC,kCAAkC,GAAGX,MAAM,CAACY,GAAG;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AAED,OAAO,MAAMC,wCAAwC,GAAGb,MAAM,CAACY,GAAuB;AACtF;AACA;AACA;AACA;AACA;AACA,sBAAuBE,KAAK,IAAKA,KAAK,CAACC,MAAM;AAC7C,CAAC;AAED,OAAO,MAAMC,mCAAmC,GAAGhB,MAAM,CAACY,GAAG;AAC7D;AACA;AACA;AACA;AACA;AACA,CAAC;AAED,OAAO,MAAMK,uCAAuC,GAAGjB,MAAM,CAACY,GAAyD;AACvH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAaE,KAAK,IAAIZ,MAAM,CAACgB,aAAa,CAAC;EAAEC,aAAa,EAAE,MAAM;EAAEC,cAAc,EAAE;AAAS,CAAC,EAAEN,KAAK,CAACO,KAAK,CAAC;AAC5G;AACA;AACA;AACA,CAAC;AAED,OAAO,MAAMC,8BAA8B,GAAGtB,MAAM,CAACuB,EAA2B;AAChF,IAAIT,KA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,UAAA;EAELvB,WAAW,EAAAoB,GAAA,CAAAC,MAAA;EAEXpB,IAAI,EAAAmB,GAAA,CAAAI,OAAA,CAAAJ,GAAA,CAAAK,KAAA;IAUJT,KAAK,EAAAI,GAAA,CAAAC,MAAA,CAAAE,UAAA;IAELL,IAAI,EAAAE,GAAA,CAAAE;EAAA;EAVJpB,QAAQ,EAAAkB,GAAA,CAAAI,OAAA,CAAAJ,GAAA,CAAAK,KAAA;IAQRT,KAAK,EAAAI,GAAA,CAAAC,MAAA,CAAAE,UAAA;IAELL,IAAI,EAAAE,GAAA,CAAAE;EAAA;EARJnB,QAAQ,EAAAiB,GAAA,CAAAM,IAAA;EAERtB,WAAW,EAAAgB,GAAA,CAAAC;AAAA;AAuHb,eAAe3B,yBAAyB","ignoreList":[]}
@@ -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.CardTopSectionTagContainer = exports.CardTopSectionRibbonContainer = exports.CardTopSectionImageContainer = exports.CardTopSectionContainer = exports.CardTopSectionCheckboxContainer = void 0;
7
+ exports.default = exports.VerticalCardTopSectionTagContainer = exports.VerticalCardTopSectionRibbonContainer = exports.VerticalCardTopSectionImageContainer = exports.VerticalCardTopSectionContainer = exports.VerticalCardTopSectionCheckboxContainer = void 0;
8
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
9
9
  var React = _interopRequireWildcard(require("react"));
10
10
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
@@ -16,7 +16,7 @@ var _Image = require("../../Image");
16
16
  var _jsxRuntime = require("react/jsx-runtime");
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
- const CardTopSectionImageContainer = exports.CardTopSectionImageContainer = _styledComponents.default.div`
19
+ const VerticalCardTopSectionImageContainer = exports.VerticalCardTopSectionImageContainer = _styledComponents.default.div`
20
20
  border-top-right-radius: 8px;
21
21
  border-top-left-radius: 8px;
22
22
  height: 100%;
@@ -29,14 +29,14 @@ const CardTopSectionImageContainer = exports.CardTopSectionImageContainer = _sty
29
29
  border-top-left-radius: 8px;
30
30
  }
31
31
  `;
32
- const CardTopSectionTagContainer = exports.CardTopSectionTagContainer = _styledComponents.default.div`
32
+ const VerticalCardTopSectionTagContainer = exports.VerticalCardTopSectionTagContainer = _styledComponents.default.div`
33
33
  position: absolute;
34
34
 
35
35
  top: 16px;
36
36
  left: 16px;
37
37
  width: calc(100% - 32px);
38
38
  `;
39
- const CardTopSectionContainer = exports.CardTopSectionContainer = _styledComponents.default.div`
39
+ const VerticalCardTopSectionContainer = exports.VerticalCardTopSectionContainer = _styledComponents.default.div`
40
40
  position: relative;
41
41
  width: 100%;
42
42
  overflow: visible;
@@ -46,7 +46,7 @@ const CardTopSectionContainer = exports.CardTopSectionContainer = _styledCompone
46
46
  filter: grayscale(100%);
47
47
  }` : ''}
48
48
  `;
49
- const CardTopSectionRibbonContainer = exports.CardTopSectionRibbonContainer = _styledComponents.default.div`
49
+ const VerticalCardTopSectionRibbonContainer = exports.VerticalCardTopSectionRibbonContainer = _styledComponents.default.div`
50
50
  min-height: calc(40px - 16px);
51
51
  background-color: ${props => props.$backgroundColor};
52
52
  width: calc(100% - 32px);
@@ -67,7 +67,7 @@ const CardTopSectionRibbonContainer = exports.CardTopSectionRibbonContainer = _s
67
67
  flex-shrink: 0;
68
68
  }
69
69
  `;
70
- const CardTopSectionCheckboxContainer = exports.CardTopSectionCheckboxContainer = _styledComponents.default.div`
70
+ const VerticalCardTopSectionCheckboxContainer = exports.VerticalCardTopSectionCheckboxContainer = _styledComponents.default.div`
71
71
  position: absolute;
72
72
  top: 0;
73
73
  right: 0;
@@ -77,7 +77,7 @@ const CardTopSectionCheckboxContainer = exports.CardTopSectionCheckboxContainer
77
77
  background-color: ${props => _index.COLORS.getColor('white', props.theme)};
78
78
  }
79
79
  `;
80
- const CardTopSection = /*#__PURE__*/React.forwardRef((_ref, ref) => {
80
+ const VerticalCardTopSection = /*#__PURE__*/React.forwardRef((_ref, ref) => {
81
81
  let {
82
82
  selected,
83
83
  setSelected,
@@ -92,22 +92,24 @@ const CardTopSection = /*#__PURE__*/React.forwardRef((_ref, ref) => {
92
92
  disabled
93
93
  } = _ref;
94
94
  const theme = (0, _styledComponents.useTheme)();
95
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(CardTopSectionContainer, {
95
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(VerticalCardTopSectionContainer, {
96
96
  disabled: disabled,
97
97
  "data-testid": 'card-topSection',
98
98
  style: {
99
99
  height: image?.height ?? 200
100
100
  },
101
- children: [image && /*#__PURE__*/(0, _jsxRuntime.jsx)(CardTopSectionImageContainer, {
101
+ children: [image && /*#__PURE__*/(0, _jsxRuntime.jsx)(VerticalCardTopSectionImageContainer, {
102
+ role: "none",
103
+ "aria-hidden": "true",
102
104
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Image.ImageWithFallbacks, {
103
105
  fallbacks: image.fallbackSrc ?? '',
104
106
  src: image.src,
105
- alt: image.alt,
107
+ alt: "",
106
108
  loader: image.loader ?? false,
107
109
  width: image.width,
108
110
  height: image.height
109
111
  })
110
- }), (!!selected || !!setSelected) && /*#__PURE__*/(0, _jsxRuntime.jsx)(CardTopSectionCheckboxContainer, {
112
+ }), (!!selected || !!setSelected) && /*#__PURE__*/(0, _jsxRuntime.jsx)(VerticalCardTopSectionCheckboxContainer, {
111
113
  "data-testid": 'card-topSection-checkbox',
112
114
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Checkbox.default, {
113
115
  ref: ref,
@@ -115,13 +117,13 @@ const CardTopSection = /*#__PURE__*/React.forwardRef((_ref, ref) => {
115
117
  select: selected => setSelected && setSelected(selected),
116
118
  selected: selected || false
117
119
  })
118
- }), (tagLabel || tagIcon) && /*#__PURE__*/(0, _jsxRuntime.jsx)(CardTopSectionTagContainer, {
120
+ }), (tagLabel || tagIcon) && /*#__PURE__*/(0, _jsxRuntime.jsx)(VerticalCardTopSectionTagContainer, {
119
121
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tag.Tag, {
120
122
  label: tagLabel,
121
123
  variant: tagVariant,
122
124
  icon: tagIcon
123
125
  })
124
- }), (highlightRibbonIcon || highlightRibbonText) && /*#__PURE__*/(0, _jsxRuntime.jsxs)(CardTopSectionRibbonContainer, {
126
+ }), (highlightRibbonIcon || highlightRibbonText) && /*#__PURE__*/(0, _jsxRuntime.jsxs)(VerticalCardTopSectionRibbonContainer, {
125
127
  "data-testid": 'card-topSection-ribbon',
126
128
  $color: highlightRibbonContentColor ?? '',
127
129
  $backgroundColor: disabled ? _index.COLORS.generateToken({
@@ -140,7 +142,7 @@ const CardTopSection = /*#__PURE__*/React.forwardRef((_ref, ref) => {
140
142
  })]
141
143
  });
142
144
  });
143
- CardTopSection.propTypes = {
145
+ VerticalCardTopSection.propTypes = {
144
146
  selected: _propTypes.default.bool,
145
147
  setSelected: _propTypes.default.func,
146
148
  tagLabel: _propTypes.default.string,
@@ -159,5 +161,5 @@ CardTopSection.propTypes = {
159
161
  }),
160
162
  disabled: _propTypes.default.bool
161
163
  };
162
- var _default = exports.default = CardTopSection;
163
- //# sourceMappingURL=CardTopSection.cjs.map
164
+ var _default = exports.default = VerticalCardTopSection;
165
+ //# sourceMappingURL=VerticalCardTopSection.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VerticalCardTopSection.cjs","names":["React","_interopRequireWildcard","require","_styledComponents","_typography","_Checkbox","_interopRequireDefault","_Tag","_index","_Image","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","VerticalCardTopSectionImageContainer","exports","styled","div","VerticalCardTopSectionTagContainer","VerticalCardTopSectionContainer","props","disabled","VerticalCardTopSectionRibbonContainer","$backgroundColor","$color","VerticalCardTopSectionCheckboxContainer","COLORS","getColor","theme","VerticalCardTopSection","forwardRef","_ref","ref","selected","setSelected","image","tagLabel","tagIcon","tagVariant","highlightRibbonIcon","highlightRibbonText","highlightRibbonContentColor","highlightRibbonBgColor","useTheme","jsxs","style","height","children","jsx","role","ImageWithFallbacks","fallbacks","fallbackSrc","src","alt","loader","width","select","Tag","label","variant","icon","generateToken","componentType","state","ComponentS","color","isOnFill","textStyle","ComponentTextStyle","Regular","propTypes","_propTypes","bool","func","string","node","shape","isRequired","_default"],"sources":["../../../src/Card/VerticalCard/VerticalCardTopSection.tsx"],"sourcesContent":["import * as React from 'react';\r\nimport styled, { useTheme } from 'styled-components';\r\nimport {ComponentS, ComponentTextStyle} from '../../styles/typography';\r\nimport Checkbox from '../../InputFields/Checkbox';\r\nimport {Tag, TagVariants} from '../../Tag';\r\n\r\nimport {COLORS} from '../../index';\r\nimport {ImageWithFallbacks} from \"../../Image\";\r\n\r\nexport interface VerticalCardTopSectionProps {\r\n /** Sets initial state of select Checkbox. */\r\n selected?: boolean;\r\n /** If this action is provided, then Checkbox will be shown on the top-right corner of the Card. */\r\n setSelected?: (arg0: boolean) => void;\r\n /** Label shown in the tag in the top-left corner of the Card. */\r\n tagLabel?: string;\r\n /** Icon shown in the tag in the top-left corner of the Card. */\r\n tagIcon?: React.ReactNode;\r\n /** Tag variant shown in the tag in the top-left corner of the Card. */\r\n tagVariant?: TagVariants;\r\n /** Text shown in the Ribbon, under the Image. */\r\n highlightRibbonText?: string;\r\n /** Icon shown in the Ribbon, under the Image. */\r\n highlightRibbonIcon?: React.ReactNode;\r\n /** Content color (text and image) of the Ribbon, under the Image. */\r\n highlightRibbonContentColor?: string;\r\n /** Background color of the Ribbon, shown under the Image. */\r\n highlightRibbonBgColor?: string;\r\n /** Details of the Image shown in the section. */\r\n image?: { src: string; fallbackSrc?: string; alt: string, height?: string; width?: string; loader?: boolean };\r\n /** This property is automatically set in the Card itself and is based on 'disabled' flag of CardProps. */\r\n disabled?: boolean;\r\n}\r\n\r\nexport const VerticalCardTopSectionImageContainer = styled.div`\r\n border-top-right-radius: 8px;\r\n border-top-left-radius: 8px;\r\n height: 100%;\r\n width: 100%;\r\n img{\r\n object-fit: cover;\r\n width: 100%;\r\n height: 100%;\r\n border-top-right-radius: 8px;\r\n border-top-left-radius: 8px;\r\n }\r\n`;\r\n\r\nexport const VerticalCardTopSectionTagContainer = styled.div`\r\n position: absolute;\r\n\r\n top: 16px;\r\n left: 16px;\r\n width: calc(100% - 32px);\r\n`;\r\n\r\nexport const VerticalCardTopSectionContainer = styled.div<{ disabled?: boolean }>`\r\n position: relative;\r\n width: 100%;\r\n overflow: visible;\r\n\r\n ${props => props.disabled ? `\r\n img, svg {\r\n filter: grayscale(100%);\r\n }` : ''}\r\n`;\r\n\r\nexport const VerticalCardTopSectionRibbonContainer = styled.div<{ $color: string; $backgroundColor: string }>`\r\n min-height: calc(40px - 16px);\r\n background-color: ${props => props.$backgroundColor};\r\n width: calc(100% - 32px);\r\n position: absolute;\r\n bottom: 0px;\r\n left: 0px;\r\n padding: 8px 16px 8px 16px;\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n gap: 8px;\r\n\r\n svg {\r\n color: ${props => props.$color};\r\n width: 24px;\r\n height: 24px;\r\n flex-grow: 0;\r\n flex-shrink: 0;\r\n }\r\n`;\r\n\r\nexport const VerticalCardTopSectionCheckboxContainer = styled.div`\r\n position: absolute;\r\n top: 0;\r\n right: 0;\r\n z-index: 1;\r\n\r\n .checkbox-icon {\r\n background-color: ${props => COLORS.getColor('white', props.theme)};\r\n }\r\n`;\r\n\r\nconst VerticalCardTopSection = React.forwardRef(({\r\n selected,\r\n setSelected,\r\n image,\r\n tagLabel,\r\n tagIcon,\r\n tagVariant = 'positive',\r\n highlightRibbonIcon,\r\n highlightRibbonText,\r\n highlightRibbonContentColor,\r\n highlightRibbonBgColor,\r\n disabled\r\n }: VerticalCardTopSectionProps, ref: React.Ref<HTMLDivElement>) => {\r\n\r\n const theme = useTheme();\r\n return (\r\n <VerticalCardTopSectionContainer disabled={disabled} data-testid={'card-topSection'} style={{height: image?.height ?? 200}}>\r\n {\r\n image &&\r\n <VerticalCardTopSectionImageContainer role=\"none\" aria-hidden=\"true\">\r\n <ImageWithFallbacks fallbacks={image.fallbackSrc ?? ''} src={image.src} alt=\"\" loader={image.loader ?? false} width={image.width} height={image.height}/>\r\n </VerticalCardTopSectionImageContainer>\r\n }\r\n {(!!selected || !!setSelected) && (\r\n <VerticalCardTopSectionCheckboxContainer data-testid={'card-topSection-checkbox'}>\r\n <Checkbox ref={ref}\r\n disabled={disabled}\r\n select={(selected: boolean) => setSelected && setSelected(selected)}\r\n selected={selected || false}/>\r\n </VerticalCardTopSectionCheckboxContainer>\r\n )}\r\n {(tagLabel || tagIcon) && (\r\n <VerticalCardTopSectionTagContainer>\r\n <Tag label={tagLabel} variant={tagVariant} icon={tagIcon}/>\r\n </VerticalCardTopSectionTagContainer>\r\n )}\r\n {(highlightRibbonIcon || highlightRibbonText) && (\r\n <VerticalCardTopSectionRibbonContainer data-testid={'card-topSection-ribbon'} $color={highlightRibbonContentColor ?? ''}\r\n $backgroundColor={disabled ? COLORS.generateToken({componentType:'bg-fill', state:'disabled'}, theme) : highlightRibbonBgColor ?? ''}>\r\n {highlightRibbonIcon}\r\n {highlightRibbonText && (\r\n <ComponentS color={disabled ? COLORS.generateToken({componentType:'text', isOnFill: true, state:'disabled'}, theme) : highlightRibbonContentColor ?? ''} textStyle={ComponentTextStyle.Regular}>\r\n {highlightRibbonText}\r\n </ComponentS>\r\n )}\r\n </VerticalCardTopSectionRibbonContainer>\r\n )}\r\n </VerticalCardTopSectionContainer>\r\n );\r\n});\r\n\r\nexport default VerticalCardTopSection;\r\n"],"mappings":";;;;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAF,uBAAA,CAAAC,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,IAAA,GAAAL,OAAA;AAEA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AAA+C,IAAAQ,WAAA,GAAAR,OAAA;AAAA,SAAAS,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,SAAAX,wBAAAW,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,GAAA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C;AAEtC,CAAC,CAAC;AAACX,sBAAA,CAAA0C,SAAA;EA1IDtC,QAAQ,EAAAuC,UAAA,CAAAxE,OAAA,CAAAyE,IAAA;EAERvC,WAAW,EAAAsC,UAAA,CAAAxE,OAAA,CAAA0E,IAAA;EAEXtC,QAAQ,EAAAoC,UAAA,CAAAxE,OAAA,CAAA2E,MAAA;EAERtC,OAAO,EAAAmC,UAAA,CAAAxE,OAAA,CAAA4E,IAAA;EAIPpC,mBAAmB,EAAAgC,UAAA,CAAAxE,OAAA,CAAA2E,MAAA;EAEnBpC,mBAAmB,EAAAiC,UAAA,CAAAxE,OAAA,CAAA4E,IAAA;EAEnBnC,2BAA2B,EAAA+B,UAAA,CAAAxE,OAAA,CAAA2E,MAAA;EAE3BjC,sBAAsB,EAAA8B,UAAA,CAAAxE,OAAA,CAAA2E,MAAA;EAEtBxC,KAAK,EAAAqC,UAAA,CAAAxE,OAAA,CAAA6E,KAAA;IAAKxB,GAAG,EAAAmB,UAAA,CAAAxE,OAAA,CAAA2E,MAAA,CAAAG,UAAA;IAAU1B,WAAW,EAAAoB,UAAA,CAAAxE,OAAA,CAAA2E,MAAA;IAAWrB,GAAG,EAAAkB,UAAA,CAAAxE,OAAA,CAAA2E,MAAA,CAAAG,UAAA;IAAUhC,MAAM,EAAA0B,UAAA,CAAAxE,OAAA,CAAA2E,MAAA;IAAWnB,KAAK,EAAAgB,UAAA,CAAAxE,OAAA,CAAA2E,MAAA;IAAWpB,MAAM,EAAAiB,UAAA,CAAAxE,OAAA,CAAAyE;EAAA;EAEjGpD,QAAQ,EAAAmD,UAAA,CAAAxE,OAAA,CAAAyE;AAAA;AAAA,IAAAM,QAAA,GAAAhE,OAAA,CAAAf,OAAA,GAwHK6B,sBAAsB","ignoreList":[]}
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { TagVariants } from '../../Tag';
3
- export interface CardTopSectionProps {
3
+ export interface VerticalCardTopSectionProps {
4
4
  /** Sets initial state of select Checkbox. */
5
5
  selected?: boolean;
6
6
  /** If this action is provided, then Checkbox will be shown on the top-right corner of the Card. */
@@ -31,15 +31,15 @@ export interface CardTopSectionProps {
31
31
  /** This property is automatically set in the Card itself and is based on 'disabled' flag of CardProps. */
32
32
  disabled?: boolean;
33
33
  }
34
- export declare const CardTopSectionImageContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
35
- export declare const CardTopSectionTagContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
36
- export declare const CardTopSectionContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
34
+ export declare const VerticalCardTopSectionImageContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
35
+ export declare const VerticalCardTopSectionTagContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
36
+ export declare const VerticalCardTopSectionContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
37
37
  disabled?: boolean;
38
38
  }>> & string;
39
- export declare const CardTopSectionRibbonContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
39
+ export declare const VerticalCardTopSectionRibbonContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
40
40
  $color: string;
41
41
  $backgroundColor: string;
42
42
  }>> & string;
43
- export declare const CardTopSectionCheckboxContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
44
- declare const CardTopSection: React.ForwardRefExoticComponent<CardTopSectionProps & React.RefAttributes<HTMLDivElement>>;
45
- export default CardTopSection;
43
+ export declare const VerticalCardTopSectionCheckboxContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
44
+ declare const VerticalCardTopSection: React.ForwardRefExoticComponent<VerticalCardTopSectionProps & React.RefAttributes<HTMLDivElement>>;
45
+ export default VerticalCardTopSection;