@laerdal/life-react-components 3.5.1-dev.11 → 3.5.1-dev.13

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 (872) hide show
  1. package/dist/Accordion/AccordionMenu.d.ts +15 -0
  2. package/dist/Accordion/ContentAccordion.d.ts +14 -0
  3. package/dist/AuthPage/AuthPage.d.ts +2 -2
  4. package/dist/Banners/Banner.d.ts +24 -3
  5. package/dist/Banners/OverviewBanner.d.ts +1 -1
  6. package/dist/Breadcrumb/Breadcrumb.d.ts +8 -1
  7. package/dist/Breadcrumb/BreadcrumbItem.d.ts +2 -0
  8. package/dist/Button/BackButton.d.ts +7 -0
  9. package/dist/Button/Button.d.ts +29 -10
  10. package/dist/Button/DualFunctionButton.d.ts +10 -0
  11. package/dist/Button/Iconbutton.d.ts +17 -11
  12. package/dist/Card/HorizontalCard/types.d.ts +13 -3
  13. package/dist/Card/VerticalCard/Card.d.ts +8 -1
  14. package/dist/Card/VerticalCard/CardBottomSection.d.ts +11 -0
  15. package/dist/Card/VerticalCard/CardMiddleSection.d.ts +8 -0
  16. package/dist/Card/VerticalCard/CardTopSection.d.ts +11 -0
  17. package/dist/Chips/ChipTypes.d.ts +35 -1
  18. package/dist/ChipsInput/ChipDropdownInput.d.ts +9 -1
  19. package/dist/ChipsInput/index.d.ts +1 -0
  20. package/dist/Dropdown/BasicDropdown.d.ts +76 -0
  21. package/dist/Dropdown/CommonStyling.d.ts +0 -1
  22. package/dist/Dropdown/DropdownButtonTypes.d.ts +28 -1
  23. package/dist/Dropdown/DropdownContent.d.ts +10 -1
  24. package/dist/Dropdown/DropdownFilter.d.ts +18 -1
  25. package/dist/Footer/Components/FooterBottomLinks.d.ts +2 -2
  26. package/dist/Footer/Components/FooterDropdownLinks.d.ts +2 -2
  27. package/dist/Footer/Components/FooterNavSection.d.ts +2 -2
  28. package/dist/Footer/Components/FooterNewsletterAndSocialSection.d.ts +2 -2
  29. package/dist/Footer/Components/FooterTop.d.ts +2 -2
  30. package/dist/Footer/Footer.d.ts +2 -2
  31. package/dist/Footer/SiteFooter.d.ts +1 -1
  32. package/dist/GlobalNavigationBar/__tests__/GlobalNavigationBar.tests.js +299 -0
  33. package/dist/GlobalNavigationBar/__tests__/Logo.tests.js +26 -0
  34. package/dist/GlobalNavigationBar/desktop/ExtendedMainMenu.d.ts +2 -2
  35. package/dist/GlobalNavigationBar/desktop/UserMenu.d.ts +2 -2
  36. package/dist/GlobalNavigationBar/mobile/MobileMenu.d.ts +2 -2
  37. package/dist/GlobalNavigationBar/types.d.ts +5 -1
  38. package/dist/HyperLink/HyperLink.d.ts +7 -0
  39. package/dist/Image/ImageWithFallbacks.d.ts +1 -1
  40. package/dist/InputFields/DatepickerField.d.ts +39 -1
  41. package/dist/InputFields/DatepickerFieldHeader.d.ts +5 -2
  42. package/dist/InputFields/NumberField.d.ts +46 -17
  43. package/dist/InputFields/PasswordField.d.ts +73 -1
  44. package/dist/InputFields/QuickSearch.d.ts +12 -0
  45. package/dist/InputFields/RadioButton.d.ts +26 -2
  46. package/dist/InputFields/RichTextField.d.ts +57 -0
  47. package/dist/InputFields/SearchBar.d.ts +64 -0
  48. package/dist/InputFields/TextField.d.ts +113 -1
  49. package/dist/InputFields/types.d.ts +39 -1
  50. package/dist/LinearProgress/LinearProgress.d.ts +6 -0
  51. package/dist/List/ListRow.d.ts +17 -4
  52. package/dist/List/__tests__/ListRow.tests.js +51 -0
  53. package/dist/LoadingIndicator/LoadingIndicator.d.ts +6 -3
  54. package/dist/LoadingPage/GlobalLoadingPage.d.ts +1 -1
  55. package/dist/MenuItem/MenuItem.d.ts +7 -1
  56. package/dist/MiniProductCard/MiniProductCard.d.ts +2 -2
  57. package/dist/Modals/Modal.d.ts +4 -4
  58. package/dist/Modals/ModalContainer.d.ts +1 -1
  59. package/dist/Modals/ModalContent.d.ts +1 -1
  60. package/dist/Modals/ModalDialog.d.ts +14 -4
  61. package/dist/NavItem/NavItem.d.ts +1 -1
  62. package/dist/NavItem/NestedNavItem.d.ts +20 -2
  63. package/dist/NotificationDot/NotificationDot.d.ts +10 -0
  64. package/dist/Paginator/Paginator.d.ts +18 -4
  65. package/dist/Panel/Panel.d.ts +24 -6
  66. package/dist/Popover/Popover.d.ts +80 -12
  67. package/dist/ProfileButton/ProfileButton.d.ts +31 -3
  68. package/dist/QuizButton/QuizButton.d.ts +25 -1
  69. package/dist/SegmentControl/SegmentControl.d.ts +25 -2
  70. package/dist/SegmentControl/index.d.ts +2 -2
  71. package/dist/SideMenu/SideMenuBody.d.ts +2 -2
  72. package/dist/SideMenu/SideMenuFooter.d.ts +2 -2
  73. package/dist/SideMenu/SideMenuHeader.d.ts +2 -2
  74. package/dist/Switcher/MobileSwitcherMenu.d.ts +1 -1
  75. package/dist/Switcher/SwitcherMenuItem.d.ts +2 -2
  76. package/dist/Switcher/__tests__/SwitcherMenuItem.js +53 -0
  77. package/dist/Table/TableTypes.d.ts +130 -0
  78. package/dist/Tabs/HorizontalTabs.d.ts +14 -3
  79. package/dist/Tabs/TabLink.d.ts +1 -1
  80. package/dist/Tabs/VerticalTabs.d.ts +30 -2
  81. package/dist/Tabs/__tests__/TabLink.tests.js +83 -0
  82. package/dist/Tabs/__tests__/Tablist.tests.js +78 -0
  83. package/dist/Tabs/index.d.ts +1 -1
  84. package/dist/Tag/Tag.d.ts +3 -0
  85. package/dist/Tile/TileCommonItems.d.ts +2 -2
  86. package/dist/Toasters/Toast.d.ts +9 -1
  87. package/dist/Toggles/ToggleButton.d.ts +5 -0
  88. package/dist/Toggles/TogglerTypes.d.ts +7 -0
  89. package/dist/Tooltips/TooltipOverflow.d.ts +1 -1
  90. package/dist/Tooltips/TooltipStyles.d.ts +2 -1
  91. package/dist/Tooltips/TooltipTypes.d.ts +10 -0
  92. package/dist/Tooltips/TooltipWrapper.d.ts +2 -2
  93. package/dist/index.d.ts +1 -1
  94. package/dist/src/Accordion/AccordionItem.js +47 -0
  95. package/dist/src/Accordion/AccordionMenu.js +66 -0
  96. package/dist/src/Accordion/ContentAccordion.js +107 -0
  97. package/dist/src/Accordion/index.js +7 -0
  98. package/dist/src/Accordion/styles.js +12 -0
  99. package/dist/src/AuthPage/AuthPage.d.ts +1 -1
  100. package/dist/src/AuthPage/AuthPage.js +29 -0
  101. package/dist/src/AuthPage/ScreenSetsContainer.js +9 -0
  102. package/dist/src/AuthPage/index.js +4 -0
  103. package/dist/src/Banners/Banner.d.ts +2 -2
  104. package/dist/src/Banners/Banner.js +112 -0
  105. package/dist/src/Banners/OverviewBanner.d.ts +1 -1
  106. package/dist/src/Banners/OverviewBanner.js +39 -0
  107. package/dist/src/Banners/index.js +4 -0
  108. package/dist/src/Banners/styles.js +55 -0
  109. package/dist/src/Breadcrumb/Breadcrumb.d.ts +1 -1
  110. package/dist/src/Breadcrumb/Breadcrumb.js +67 -0
  111. package/dist/src/Breadcrumb/BreadcrumbItem.js +1 -0
  112. package/dist/src/Breadcrumb/index.js +4 -0
  113. package/dist/src/Breadcrumb/styles.js +24 -0
  114. package/dist/src/Button/BackButton.js +45 -0
  115. package/dist/src/Button/Button.js +87 -0
  116. package/dist/src/Button/DualFunctionButton.js +71 -0
  117. package/dist/src/Button/Iconbutton.js +70 -0
  118. package/dist/src/Button/index.js +8 -0
  119. package/dist/src/Card/HorizontalCard/HorizontalCard.js +55 -0
  120. package/dist/src/Card/HorizontalCard/HorizontalCardActions.d.ts +1 -1
  121. package/dist/src/Card/HorizontalCard/HorizontalCardActions.js +39 -0
  122. package/dist/src/Card/HorizontalCard/HorizontalCardBody.d.ts +1 -1
  123. package/dist/src/Card/HorizontalCard/HorizontalCardBody.js +23 -0
  124. package/dist/src/Card/HorizontalCard/HorizontalCardThumbnail.d.ts +1 -1
  125. package/dist/src/Card/HorizontalCard/HorizontalCardThumbnail.js +21 -0
  126. package/dist/src/Card/HorizontalCard/index.js +4 -0
  127. package/dist/src/Card/HorizontalCard/types.d.ts +5 -5
  128. package/dist/src/Card/HorizontalCard/types.js +1 -0
  129. package/dist/src/Card/VerticalCard/Card.js +61 -0
  130. package/dist/src/Card/VerticalCard/CardBottomSection.js +45 -0
  131. package/dist/src/Card/VerticalCard/CardMiddleSection.js +32 -0
  132. package/dist/src/Card/VerticalCard/CardTopSection.js +33 -0
  133. package/dist/src/Card/VerticalCard/index.js +7 -0
  134. package/dist/src/Card/index.js +2 -0
  135. package/dist/src/Chips/ActionChip.js +45 -0
  136. package/dist/src/Chips/ChipStyles.js +16 -0
  137. package/dist/src/Chips/ChipTypes.d.ts +1 -1
  138. package/dist/src/Chips/ChipTypes.js +1 -0
  139. package/dist/src/Chips/ChoiceChips.js +70 -0
  140. package/dist/src/Chips/FilterChip.js +49 -0
  141. package/dist/src/Chips/InputChip.js +71 -0
  142. package/dist/src/Chips/index.js +6 -0
  143. package/dist/src/ChipsInput/ChipDropdownInput.js +230 -0
  144. package/dist/src/ChipsInput/ChipInput.js +99 -0
  145. package/dist/src/ChipsInput/ChipInputField.js +114 -0
  146. package/dist/src/ChipsInput/ChipInputTypes.js +1 -0
  147. package/dist/src/ChipsInput/index.js +2 -0
  148. package/dist/src/Dropdown/BasicDropdown.d.ts +3 -3
  149. package/dist/src/Dropdown/BasicDropdown.js +153 -0
  150. package/dist/src/Dropdown/CommonStyling.js +24 -0
  151. package/dist/src/Dropdown/DropdownButton.js +107 -0
  152. package/dist/src/Dropdown/DropdownButtonTypes.d.ts +3 -3
  153. package/dist/src/Dropdown/DropdownButtonTypes.js +1 -0
  154. package/dist/src/Dropdown/DropdownContent.js +339 -0
  155. package/dist/src/Dropdown/DropdownFilter.js +161 -0
  156. package/dist/src/Dropdown/index.js +8 -0
  157. package/dist/src/Footer/Components/FooterBottomLinks.js +20 -0
  158. package/dist/src/Footer/Components/FooterDropdownLinks.js +25 -0
  159. package/dist/src/Footer/Components/FooterNavSection.js +32 -0
  160. package/dist/src/Footer/Components/FooterNewsletterAndSocialSection.js +42 -0
  161. package/dist/src/Footer/Components/FooterTop.js +34 -0
  162. package/dist/src/Footer/Footer.js +17 -0
  163. package/dist/src/Footer/SiteFooter.js +57 -0
  164. package/dist/src/Footer/index.js +2 -0
  165. package/dist/src/GlobalNavigationBar/GlobalNavigationBar.d.ts +1 -1
  166. package/dist/src/GlobalNavigationBar/GlobalNavigationBar.js +93 -0
  167. package/dist/src/GlobalNavigationBar/Logo.d.ts +1 -1
  168. package/dist/src/GlobalNavigationBar/Logo.js +33 -0
  169. package/dist/src/GlobalNavigationBar/__tests__/GlobalNavigationBar.tests.js +299 -0
  170. package/dist/src/GlobalNavigationBar/__tests__/Logo.tests.js +26 -0
  171. package/dist/src/GlobalNavigationBar/desktop/DesktopActions.js +88 -0
  172. package/dist/src/GlobalNavigationBar/desktop/ExtendedMainMenu.d.ts +1 -1
  173. package/dist/src/GlobalNavigationBar/desktop/ExtendedMainMenu.js +42 -0
  174. package/dist/src/GlobalNavigationBar/desktop/MainMenu.d.ts +1 -1
  175. package/dist/src/GlobalNavigationBar/desktop/MainMenu.js +175 -0
  176. package/dist/src/GlobalNavigationBar/desktop/RightSideNav.d.ts +1 -1
  177. package/dist/src/GlobalNavigationBar/desktop/RightSideNav.js +46 -0
  178. package/dist/src/GlobalNavigationBar/desktop/SubMenu.d.ts +1 -1
  179. package/dist/src/GlobalNavigationBar/desktop/SubMenu.js +131 -0
  180. package/dist/src/GlobalNavigationBar/desktop/UserMenu.js +90 -0
  181. package/dist/src/GlobalNavigationBar/index.js +3 -0
  182. package/dist/src/GlobalNavigationBar/mobile/CommonStyles.js +28 -0
  183. package/dist/src/GlobalNavigationBar/mobile/MobileActionContainer.js +18 -0
  184. package/dist/src/GlobalNavigationBar/mobile/MobileMenu.d.ts +1 -1
  185. package/dist/src/GlobalNavigationBar/mobile/MobileMenu.js +94 -0
  186. package/dist/src/GlobalNavigationBar/mobile/MobileMenuContent.js +89 -0
  187. package/dist/src/GlobalNavigationBar/mobile/MobileMenuHeader.js +108 -0
  188. package/dist/src/GlobalNavigationBar/types.d.ts +8 -8
  189. package/dist/src/GlobalNavigationBar/types.js +1 -0
  190. package/dist/src/GlobalNavigationBar/utils.js +7 -0
  191. package/dist/src/HyperLink/HyperLink.js +36 -0
  192. package/dist/src/HyperLink/index.js +3 -0
  193. package/dist/src/HyperLink/styling.js +9 -0
  194. package/dist/src/Image/ImageWithFallbacks.d.ts +1 -1
  195. package/dist/src/Image/ImageWithFallbacks.js +87 -0
  196. package/dist/src/Image/index.js +2 -0
  197. package/dist/src/InputFields/Checkbox.js +65 -0
  198. package/dist/src/InputFields/DatepickerField.d.ts +1 -1
  199. package/dist/src/InputFields/DatepickerField.js +237 -0
  200. package/dist/src/InputFields/DatepickerFieldHeader.js +45 -0
  201. package/dist/src/InputFields/Label.d.ts +1 -1
  202. package/dist/src/InputFields/Label.js +83 -0
  203. package/dist/src/InputFields/NumberField.js +194 -0
  204. package/dist/src/InputFields/PasswordField.d.ts +1 -1
  205. package/dist/src/InputFields/PasswordField.js +60 -0
  206. package/dist/src/InputFields/QuickSearch.d.ts +1 -1
  207. package/dist/src/InputFields/QuickSearch.js +92 -0
  208. package/dist/src/InputFields/RadioButton.d.ts +1 -1
  209. package/dist/src/InputFields/RadioButton.js +54 -0
  210. package/dist/src/InputFields/ResponsiveComponentWrapper.d.ts +1 -1
  211. package/dist/src/InputFields/ResponsiveComponentWrapper.js +24 -0
  212. package/dist/src/InputFields/RichTextField.js +83 -0
  213. package/dist/src/InputFields/SearchBar.d.ts +1 -1
  214. package/dist/src/InputFields/SearchBar.js +63 -0
  215. package/dist/src/InputFields/TextField.d.ts +1 -1
  216. package/dist/src/InputFields/TextField.js +51 -0
  217. package/dist/src/InputFields/Textarea.js +65 -0
  218. package/dist/src/InputFields/components/SearchBarInput.d.ts +1 -1
  219. package/dist/src/InputFields/components/SearchBarInput.js +26 -0
  220. package/dist/src/InputFields/components/SearchField.js +44 -0
  221. package/dist/src/InputFields/index.js +13 -0
  222. package/dist/src/InputFields/styling.js +33 -0
  223. package/dist/src/InputFields/types.d.ts +2 -2
  224. package/dist/src/InputFields/types.js +2 -0
  225. package/dist/src/Layouts/index.js +25 -0
  226. package/dist/src/LinearProgress/LinearProgress.js +78 -0
  227. package/dist/src/LinearProgress/index.js +3 -0
  228. package/dist/src/List/ListRow.js +83 -0
  229. package/dist/src/List/__tests__/ListRow.tests.js +51 -0
  230. package/dist/src/List/index.js +2 -0
  231. package/dist/src/LoadingIndicator/LoadingIndicator.d.ts +1 -1
  232. package/dist/src/LoadingIndicator/LoadingIndicator.js +26 -0
  233. package/dist/src/LoadingIndicator/index.js +1 -0
  234. package/dist/src/LoadingPage/GlobalLoadingPage.js +26 -0
  235. package/dist/src/LoadingPage/index.js +1 -0
  236. package/dist/src/MenuItem/MenuItem.d.ts +1 -1
  237. package/dist/src/MenuItem/MenuItem.js +60 -0
  238. package/dist/src/MenuItem/index.js +1 -0
  239. package/dist/src/MiniProductCard/MiniProductCard.d.ts +1 -1
  240. package/dist/src/MiniProductCard/MiniProductCard.js +30 -0
  241. package/dist/src/MiniProductCard/index.js +1 -0
  242. package/dist/src/Modals/Modal.d.ts +1 -1
  243. package/dist/src/Modals/Modal.js +38 -0
  244. package/dist/src/Modals/ModalContainer.d.ts +2 -2
  245. package/dist/src/Modals/ModalContainer.js +130 -0
  246. package/dist/src/Modals/ModalContent.js +159 -0
  247. package/dist/src/Modals/ModalDialog.js +166 -0
  248. package/dist/src/Modals/ModalNote.js +27 -0
  249. package/dist/src/Modals/ModalStyles.js +55 -0
  250. package/dist/src/Modals/ModalTypes.d.ts +2 -2
  251. package/dist/src/Modals/ModalTypes.js +1 -0
  252. package/dist/src/Modals/index.js +6 -0
  253. package/dist/src/NavItem/NavItem.d.ts +1 -1
  254. package/dist/src/NavItem/NavItem.js +26 -0
  255. package/dist/src/NavItem/NestedNavItem.js +18 -0
  256. package/dist/src/NavItem/index.js +1 -0
  257. package/dist/src/NotificationDot/NotificationDot.js +17 -0
  258. package/dist/src/NotificationDot/index.js +1 -0
  259. package/dist/src/Paginator/Paginator.js +77 -0
  260. package/dist/src/Paginator/index.js +2 -0
  261. package/dist/src/Panel/Panel.d.ts +1 -1
  262. package/dist/src/Panel/Panel.js +82 -0
  263. package/dist/src/Panel/index.js +1 -0
  264. package/dist/src/Popover/Popover.js +101 -0
  265. package/dist/src/Popover/index.js +1 -0
  266. package/dist/src/ProfileButton/ProfileButton.d.ts +2 -2
  267. package/dist/src/ProfileButton/ProfileButton.js +52 -0
  268. package/dist/src/ProfileButton/index.js +1 -0
  269. package/dist/src/QuizButton/QuizButton.d.ts +1 -1
  270. package/dist/src/QuizButton/QuizButton.js +53 -0
  271. package/dist/src/QuizButton/index.js +1 -0
  272. package/dist/src/SegmentControl/SegmentControl.js +57 -0
  273. package/dist/src/SegmentControl/index.js +2 -0
  274. package/dist/src/Services/functions.js +11 -0
  275. package/dist/src/SideMenu/SideMenu.js +43 -0
  276. package/dist/src/SideMenu/SideMenuBody.js +24 -0
  277. package/dist/src/SideMenu/SideMenuFooter.js +43 -0
  278. package/dist/src/SideMenu/SideMenuHeader.js +46 -0
  279. package/dist/src/SideMenu/index.js +2 -0
  280. package/dist/src/SideMenu/types.d.ts +3 -3
  281. package/dist/src/SideMenu/types.js +1 -0
  282. package/dist/src/SkipToContent/SkipToContent.d.ts +1 -1
  283. package/dist/src/SkipToContent/SkipToContent.js +17 -0
  284. package/dist/src/SkipToContent/index.js +1 -0
  285. package/dist/src/Switcher/MobileCustomMenuContent.js +26 -0
  286. package/dist/src/Switcher/MobileSwitcherMenu.js +21 -0
  287. package/dist/src/Switcher/SwitcherMenuItem.js +18 -0
  288. package/dist/src/Switcher/__tests__/SwitcherMenuItem.js +53 -0
  289. package/dist/src/Switcher/index.js +3 -0
  290. package/dist/src/Table/Table.js +292 -0
  291. package/dist/src/Table/TableBody.js +116 -0
  292. package/dist/src/Table/TableFooter.js +41 -0
  293. package/dist/src/Table/TableHeaders.js +26 -0
  294. package/dist/src/Table/TableStyles.js +46 -0
  295. package/dist/src/Table/TableTypes.d.ts +4 -4
  296. package/dist/src/Table/TableTypes.js +2 -0
  297. package/dist/src/Table/index.js +3 -0
  298. package/dist/src/Tabs/HorizontalTabs.js +122 -0
  299. package/dist/src/Tabs/TabLink.js +76 -0
  300. package/dist/src/Tabs/Tabs.d.ts +1 -1
  301. package/dist/src/Tabs/Tabs.js +62 -0
  302. package/dist/src/Tabs/VerticalTabs.js +13 -0
  303. package/dist/src/Tabs/__tests__/TabLink.tests.js +83 -0
  304. package/dist/src/Tabs/__tests__/Tablist.tests.js +78 -0
  305. package/dist/src/Tabs/index.js +3 -0
  306. package/dist/src/Tag/Tag.d.ts +2 -2
  307. package/dist/src/Tag/Tag.js +41 -0
  308. package/dist/src/Tag/index.js +1 -0
  309. package/dist/src/Tile/Tile.js +43 -0
  310. package/dist/src/Tile/TileBody.js +15 -0
  311. package/dist/src/Tile/TileCommonItems.js +75 -0
  312. package/dist/src/Tile/TileFooter.js +19 -0
  313. package/dist/src/Tile/TileHeader.js +57 -0
  314. package/dist/src/Tile/TileTypes.d.ts +8 -8
  315. package/dist/src/Tile/TileTypes.js +1 -0
  316. package/dist/src/Tile/index.js +3 -0
  317. package/dist/src/Toasters/Toast.d.ts +2 -2
  318. package/dist/src/Toasters/Toast.js +166 -0
  319. package/dist/src/Toasters/ToastContext.d.ts +2 -2
  320. package/dist/src/Toasters/ToastContext.js +69 -0
  321. package/dist/src/Toasters/index.js +4 -0
  322. package/dist/src/Toggles/ToggleButton.js +48 -0
  323. package/dist/src/Toggles/ToggleSwitch.js +65 -0
  324. package/dist/src/Toggles/TogglerStyles.js +17 -0
  325. package/dist/src/Toggles/TogglerTypes.js +1 -0
  326. package/dist/src/Toggles/index.js +3 -0
  327. package/dist/src/Tooltips/TooltipOverflow.js +71 -0
  328. package/dist/src/Tooltips/TooltipStyles.d.ts +1 -1
  329. package/dist/src/Tooltips/TooltipStyles.js +41 -0
  330. package/dist/src/Tooltips/TooltipTypes.js +1 -0
  331. package/dist/src/Tooltips/TooltipWrapper.js +65 -0
  332. package/dist/src/Tooltips/index.js +3 -0
  333. package/dist/src/assets/index.d.ts +1 -1
  334. package/dist/src/assets/index.js +41 -0
  335. package/dist/src/common/ActionWithin.js +25 -0
  336. package/dist/src/common/ClickOutside.js +20 -0
  337. package/dist/src/common/EventHandlers.js +8 -0
  338. package/dist/src/common/FocusOutside.js +20 -0
  339. package/dist/src/common/FocusVisible.d.ts +1 -1
  340. package/dist/src/common/FocusVisible.js +75 -0
  341. package/dist/src/common/InputStyling.js +8 -0
  342. package/dist/src/common/NavigationHelper.js +18 -0
  343. package/dist/src/common/ScrollableContainer.js +22 -0
  344. package/dist/src/common/StackState.js +10 -0
  345. package/dist/src/common/index.js +6 -0
  346. package/dist/src/icons/contenticons/Adaptive.js +31 -0
  347. package/dist/src/icons/contenticons/Add.js +31 -0
  348. package/dist/src/icons/contenticons/Adult.js +31 -0
  349. package/dist/src/icons/contenticons/AedNoShockAdvised.js +31 -0
  350. package/dist/src/icons/contenticons/AedPads.js +31 -0
  351. package/dist/src/icons/contenticons/AedPadsCorrect.js +31 -0
  352. package/dist/src/icons/contenticons/AedPadsError.js +31 -0
  353. package/dist/src/icons/contenticons/AedShockAdvised.js +31 -0
  354. package/dist/src/icons/contenticons/Ambulance.js +31 -0
  355. package/dist/src/icons/contenticons/Assignments.js +31 -0
  356. package/dist/src/icons/contenticons/Attention.js +31 -0
  357. package/dist/src/icons/contenticons/AutomaticMode.js +31 -0
  358. package/dist/src/icons/contenticons/AwardWinningPerson.js +31 -0
  359. package/dist/src/icons/contenticons/Biohazard.js +31 -0
  360. package/dist/src/icons/contenticons/Bleeding.js +31 -0
  361. package/dist/src/icons/contenticons/Book.js +31 -0
  362. package/dist/src/icons/contenticons/Buildings.js +31 -0
  363. package/dist/src/icons/contenticons/CPRCall.js +31 -0
  364. package/dist/src/icons/contenticons/CPRCycles.js +31 -0
  365. package/dist/src/icons/contenticons/CPRTraining.js +31 -0
  366. package/dist/src/icons/contenticons/Calendar.js +31 -0
  367. package/dist/src/icons/contenticons/Call.js +31 -0
  368. package/dist/src/icons/contenticons/Certificate.js +31 -0
  369. package/dist/src/icons/contenticons/ChestCompressionFraction.js +31 -0
  370. package/dist/src/icons/contenticons/Child.js +31 -0
  371. package/dist/src/icons/contenticons/Cleaning.js +31 -0
  372. package/dist/src/icons/contenticons/ClinicalFindings.js +31 -0
  373. package/dist/src/icons/contenticons/Cloud.js +31 -0
  374. package/dist/src/icons/contenticons/CloudAttension.js +31 -0
  375. package/dist/src/icons/contenticons/CloudChecked.js +31 -0
  376. package/dist/src/icons/contenticons/CloudDownload.js +31 -0
  377. package/dist/src/icons/contenticons/CloudLocked.js +31 -0
  378. package/dist/src/icons/contenticons/CloudNoConnection.js +31 -0
  379. package/dist/src/icons/contenticons/CloudSyncing.js +31 -0
  380. package/dist/src/icons/contenticons/CloudUpload.js +31 -0
  381. package/dist/src/icons/contenticons/Code.js +31 -0
  382. package/dist/src/icons/contenticons/CoffeeBreak.js +31 -0
  383. package/dist/src/icons/contenticons/Contact.js +31 -0
  384. package/dist/src/icons/contenticons/ContactInfo.js +31 -0
  385. package/dist/src/icons/contenticons/Cookie.js +31 -0
  386. package/dist/src/icons/contenticons/CountAloud.js +31 -0
  387. package/dist/src/icons/contenticons/Dashboard.js +31 -0
  388. package/dist/src/icons/contenticons/Data.js +31 -0
  389. package/dist/src/icons/contenticons/DecisionFlow.js +31 -0
  390. package/dist/src/icons/contenticons/Defribilator.js +31 -0
  391. package/dist/src/icons/contenticons/DefribilatorMonitor.js +31 -0
  392. package/dist/src/icons/contenticons/Depth.js +31 -0
  393. package/dist/src/icons/contenticons/Desktop.js +31 -0
  394. package/dist/src/icons/contenticons/DeviceChecked.js +31 -0
  395. package/dist/src/icons/contenticons/Dispatcher.js +31 -0
  396. package/dist/src/icons/contenticons/Doctor.js +31 -0
  397. package/dist/src/icons/contenticons/DocumentChecked.js +31 -0
  398. package/dist/src/icons/contenticons/Download.js +31 -0
  399. package/dist/src/icons/contenticons/ELearning.js +31 -0
  400. package/dist/src/icons/contenticons/EMSRescuer.js +31 -0
  401. package/dist/src/icons/contenticons/ESimulation.js +31 -0
  402. package/dist/src/icons/contenticons/Edit.js +31 -0
  403. package/dist/src/icons/contenticons/Educator.js +31 -0
  404. package/dist/src/icons/contenticons/Elderly.js +31 -0
  405. package/dist/src/icons/contenticons/Embryo.js +31 -0
  406. package/dist/src/icons/contenticons/EventLog.js +31 -0
  407. package/dist/src/icons/contenticons/Faq.js +31 -0
  408. package/dist/src/icons/contenticons/Female.js +31 -0
  409. package/dist/src/icons/contenticons/FirstAid.js +31 -0
  410. package/dist/src/icons/contenticons/Geriatric.js +31 -0
  411. package/dist/src/icons/contenticons/GiftCard.js +31 -0
  412. package/dist/src/icons/contenticons/Goals.js +31 -0
  413. package/dist/src/icons/contenticons/Grid.js +31 -0
  414. package/dist/src/icons/contenticons/GuidedTour.js +31 -0
  415. package/dist/src/icons/contenticons/HandPlacement.js +31 -0
  416. package/dist/src/icons/contenticons/HandPlacementCorrect.js +31 -0
  417. package/dist/src/icons/contenticons/HandPlacementIncorrect.js +31 -0
  418. package/dist/src/icons/contenticons/HeadTilt.js +31 -0
  419. package/dist/src/icons/contenticons/Heart.js +31 -0
  420. package/dist/src/icons/contenticons/HeartPulse.js +31 -0
  421. package/dist/src/icons/contenticons/HeartShock.js +31 -0
  422. package/dist/src/icons/contenticons/Help.js +31 -0
  423. package/dist/src/icons/contenticons/Hierarchy.js +31 -0
  424. package/dist/src/icons/contenticons/Hospital.js +31 -0
  425. package/dist/src/icons/contenticons/Hospitalized.js +31 -0
  426. package/dist/src/icons/contenticons/House.js +31 -0
  427. package/dist/src/icons/contenticons/Infant.js +31 -0
  428. package/dist/src/icons/contenticons/Information.js +31 -0
  429. package/dist/src/icons/contenticons/Injustice.js +31 -0
  430. package/dist/src/icons/contenticons/Institute.js +31 -0
  431. package/dist/src/icons/contenticons/Justice.js +31 -0
  432. package/dist/src/icons/contenticons/Laptop.js +31 -0
  433. package/dist/src/icons/contenticons/Leaflet.js +31 -0
  434. package/dist/src/icons/contenticons/Learner.js +31 -0
  435. package/dist/src/icons/contenticons/Levels.js +31 -0
  436. package/dist/src/icons/contenticons/LevelsDecreasing.js +31 -0
  437. package/dist/src/icons/contenticons/LevelsIncreasing.js +31 -0
  438. package/dist/src/icons/contenticons/LevelsStarred.js +31 -0
  439. package/dist/src/icons/contenticons/Maintenance.js +31 -0
  440. package/dist/src/icons/contenticons/Male.js +31 -0
  441. package/dist/src/icons/contenticons/Manikin.js +31 -0
  442. package/dist/src/icons/contenticons/ManikinCorrect.js +31 -0
  443. package/dist/src/icons/contenticons/ManikinError.js +31 -0
  444. package/dist/src/icons/contenticons/ManualMode.js +31 -0
  445. package/dist/src/icons/contenticons/MapPoint.js +31 -0
  446. package/dist/src/icons/contenticons/MaskLeak.js +31 -0
  447. package/dist/src/icons/contenticons/MedicalHistory.js +31 -0
  448. package/dist/src/icons/contenticons/MedicalRecord.js +31 -0
  449. package/dist/src/icons/contenticons/Medication.js +31 -0
  450. package/dist/src/icons/contenticons/Metronome.js +31 -0
  451. package/dist/src/icons/contenticons/MoodHappy.js +31 -0
  452. package/dist/src/icons/contenticons/MoodIndifferent.js +31 -0
  453. package/dist/src/icons/contenticons/MoodSad.js +31 -0
  454. package/dist/src/icons/contenticons/MoodVeryHappy.js +31 -0
  455. package/dist/src/icons/contenticons/MoodVerySad.js +31 -0
  456. package/dist/src/icons/contenticons/Newborn.js +31 -0
  457. package/dist/src/icons/contenticons/NoInterruption.js +31 -0
  458. package/dist/src/icons/contenticons/Note.js +31 -0
  459. package/dist/src/icons/contenticons/Pain.js +31 -0
  460. package/dist/src/icons/contenticons/Patient.js +31 -0
  461. package/dist/src/icons/contenticons/PatientAssignment.js +31 -0
  462. package/dist/src/icons/contenticons/PatientMonitor.js +31 -0
  463. package/dist/src/icons/contenticons/PatientStretcher.js +31 -0
  464. package/dist/src/icons/contenticons/PatientTransfer.js +31 -0
  465. package/dist/src/icons/contenticons/PatientTreatment.js +31 -0
  466. package/dist/src/icons/contenticons/Person.js +31 -0
  467. package/dist/src/icons/contenticons/PhysiologicalModel.js +31 -0
  468. package/dist/src/icons/contenticons/PieChart.js +31 -0
  469. package/dist/src/icons/contenticons/Pill.js +31 -0
  470. package/dist/src/icons/contenticons/Pregnant.js +31 -0
  471. package/dist/src/icons/contenticons/Print.js +31 -0
  472. package/dist/src/icons/contenticons/ProvidersOrders.js +31 -0
  473. package/dist/src/icons/contenticons/Pulse.js +31 -0
  474. package/dist/src/icons/contenticons/RQICart.js +31 -0
  475. package/dist/src/icons/contenticons/Rate.js +31 -0
  476. package/dist/src/icons/contenticons/RateTooFast.js +31 -0
  477. package/dist/src/icons/contenticons/RateTooSlow.js +31 -0
  478. package/dist/src/icons/contenticons/Recoil.js +31 -0
  479. package/dist/src/icons/contenticons/Ruler.js +31 -0
  480. package/dist/src/icons/contenticons/Screens.js +31 -0
  481. package/dist/src/icons/contenticons/Search.js +31 -0
  482. package/dist/src/icons/contenticons/Sepsis.js +31 -0
  483. package/dist/src/icons/contenticons/Settings.js +31 -0
  484. package/dist/src/icons/contenticons/Shock.js +31 -0
  485. package/dist/src/icons/contenticons/ShockAdvised.js +31 -0
  486. package/dist/src/icons/contenticons/ShockAutomated.js +31 -0
  487. package/dist/src/icons/contenticons/ShockNotAdvised.js +31 -0
  488. package/dist/src/icons/contenticons/Sleep.js +31 -0
  489. package/dist/src/icons/contenticons/Smartphone.js +31 -0
  490. package/dist/src/icons/contenticons/Speech.js +31 -0
  491. package/dist/src/icons/contenticons/SpeechBubble.js +31 -0
  492. package/dist/src/icons/contenticons/SpeechBubbles.js +31 -0
  493. package/dist/src/icons/contenticons/Star.js +31 -0
  494. package/dist/src/icons/contenticons/Stethoscope.js +31 -0
  495. package/dist/src/icons/contenticons/Stock.js +31 -0
  496. package/dist/src/icons/contenticons/Stopwatch.js +31 -0
  497. package/dist/src/icons/contenticons/Suitcase.js +31 -0
  498. package/dist/src/icons/contenticons/SwitchCamera.js +31 -0
  499. package/dist/src/icons/contenticons/SwitchRoles.js +31 -0
  500. package/dist/src/icons/contenticons/Tablet.js +31 -0
  501. package/dist/src/icons/contenticons/Talking.js +31 -0
  502. package/dist/src/icons/contenticons/TargetGroup.js +31 -0
  503. package/dist/src/icons/contenticons/TaskTrainer.js +31 -0
  504. package/dist/src/icons/contenticons/TeamLead.js +31 -0
  505. package/dist/src/icons/contenticons/TeamWork.js +31 -0
  506. package/dist/src/icons/contenticons/Terms.js +31 -0
  507. package/dist/src/icons/contenticons/TimelineReview.js +31 -0
  508. package/dist/src/icons/contenticons/Translation.js +31 -0
  509. package/dist/src/icons/contenticons/Trophy.js +31 -0
  510. package/dist/src/icons/contenticons/Trophy1st.js +31 -0
  511. package/dist/src/icons/contenticons/Trophy2nd.js +31 -0
  512. package/dist/src/icons/contenticons/Trophy3rd.js +31 -0
  513. package/dist/src/icons/contenticons/TrophyStar.js +31 -0
  514. package/dist/src/icons/contenticons/Truck.js +31 -0
  515. package/dist/src/icons/contenticons/TwoRescuerCPR.js +31 -0
  516. package/dist/src/icons/contenticons/USB.js +31 -0
  517. package/dist/src/icons/contenticons/Ultrasound.js +31 -0
  518. package/dist/src/icons/contenticons/VentilationLungs.js +31 -0
  519. package/dist/src/icons/contenticons/VentilationPressure.js +31 -0
  520. package/dist/src/icons/contenticons/VentilationVolume.js +31 -0
  521. package/dist/src/icons/contenticons/Video.js +31 -0
  522. package/dist/src/icons/contenticons/VideoRecording.js +31 -0
  523. package/dist/src/icons/contenticons/Visibility.js +31 -0
  524. package/dist/src/icons/contenticons/VitalSigns.js +31 -0
  525. package/dist/src/icons/contenticons/index.js +179 -0
  526. package/dist/src/icons/index.d.ts +1 -1
  527. package/dist/src/icons/index.js +45 -0
  528. package/dist/src/icons/systemicons/Accessibility.js +31 -0
  529. package/dist/src/icons/systemicons/Add.js +31 -0
  530. package/dist/src/icons/systemicons/AddUser.js +31 -0
  531. package/dist/src/icons/systemicons/Adult.js +31 -0
  532. package/dist/src/icons/systemicons/AedPads.js +31 -0
  533. package/dist/src/icons/systemicons/AedPadsCorrect.js +31 -0
  534. package/dist/src/icons/systemicons/AedPadsError.js +31 -0
  535. package/dist/src/icons/systemicons/Archive.js +31 -0
  536. package/dist/src/icons/systemicons/ArrowCollapse.js +31 -0
  537. package/dist/src/icons/systemicons/ArrowDropDown.js +31 -0
  538. package/dist/src/icons/systemicons/ArrowDropLeft.js +31 -0
  539. package/dist/src/icons/systemicons/ArrowDropRight.js +31 -0
  540. package/dist/src/icons/systemicons/ArrowDropUp.js +31 -0
  541. package/dist/src/icons/systemicons/ArrowExpand.js +31 -0
  542. package/dist/src/icons/systemicons/ArrowLineDown.js +31 -0
  543. package/dist/src/icons/systemicons/ArrowLineLeft.js +31 -0
  544. package/dist/src/icons/systemicons/ArrowLineRight.js +31 -0
  545. package/dist/src/icons/systemicons/ArrowLineUp.js +31 -0
  546. package/dist/src/icons/systemicons/ArrowStopLeft.js +31 -0
  547. package/dist/src/icons/systemicons/ArrowStopRight.js +31 -0
  548. package/dist/src/icons/systemicons/Assignments.js +31 -0
  549. package/dist/src/icons/systemicons/Asterisk.js +31 -0
  550. package/dist/src/icons/systemicons/Attachment.js +31 -0
  551. package/dist/src/icons/systemicons/Attention.js +31 -0
  552. package/dist/src/icons/systemicons/AudioDescriptionOn.js +31 -0
  553. package/dist/src/icons/systemicons/BackwardsFiveSec.js +31 -0
  554. package/dist/src/icons/systemicons/Battery0.js +31 -0
  555. package/dist/src/icons/systemicons/Battery1.js +31 -0
  556. package/dist/src/icons/systemicons/Battery2.js +31 -0
  557. package/dist/src/icons/systemicons/Battery3.js +31 -0
  558. package/dist/src/icons/systemicons/Battery4.js +31 -0
  559. package/dist/src/icons/systemicons/Battery5.js +31 -0
  560. package/dist/src/icons/systemicons/Battery6.js +31 -0
  561. package/dist/src/icons/systemicons/BatteryFull.js +31 -0
  562. package/dist/src/icons/systemicons/Bluetooth.js +31 -0
  563. package/dist/src/icons/systemicons/Book.js +31 -0
  564. package/dist/src/icons/systemicons/BookmarkAdd.js +31 -0
  565. package/dist/src/icons/systemicons/BookmarkCollection.js +31 -0
  566. package/dist/src/icons/systemicons/BookmarkOff.js +31 -0
  567. package/dist/src/icons/systemicons/BookmarkOn.js +31 -0
  568. package/dist/src/icons/systemicons/Bullet.js +31 -0
  569. package/dist/src/icons/systemicons/Calendar.js +31 -0
  570. package/dist/src/icons/systemicons/CheckMark.js +31 -0
  571. package/dist/src/icons/systemicons/CheckboxOff.js +31 -0
  572. package/dist/src/icons/systemicons/CheckboxOn.js +31 -0
  573. package/dist/src/icons/systemicons/CheckboxSemi.js +31 -0
  574. package/dist/src/icons/systemicons/ChevronDown.js +31 -0
  575. package/dist/src/icons/systemicons/ChevronLeft.js +31 -0
  576. package/dist/src/icons/systemicons/ChevronRight.js +31 -0
  577. package/dist/src/icons/systemicons/ChevronUp.js +31 -0
  578. package/dist/src/icons/systemicons/Child.js +31 -0
  579. package/dist/src/icons/systemicons/Clear.js +31 -0
  580. package/dist/src/icons/systemicons/Close.js +31 -0
  581. package/dist/src/icons/systemicons/ClosedCaptionOn.js +31 -0
  582. package/dist/src/icons/systemicons/Cloud.js +31 -0
  583. package/dist/src/icons/systemicons/CloudAttention.js +31 -0
  584. package/dist/src/icons/systemicons/CloudCheck.js +31 -0
  585. package/dist/src/icons/systemicons/CloudDownload.js +31 -0
  586. package/dist/src/icons/systemicons/CloudLocked.js +31 -0
  587. package/dist/src/icons/systemicons/CloudNoConnection.js +31 -0
  588. package/dist/src/icons/systemicons/CloudSyncing.js +31 -0
  589. package/dist/src/icons/systemicons/CloudUpload.js +31 -0
  590. package/dist/src/icons/systemicons/CoffeeBreak.js +31 -0
  591. package/dist/src/icons/systemicons/Copy.js +31 -0
  592. package/dist/src/icons/systemicons/Dashboard.js +31 -0
  593. package/dist/src/icons/systemicons/DecisionFlow.js +31 -0
  594. package/dist/src/icons/systemicons/Delete.js +31 -0
  595. package/dist/src/icons/systemicons/Document.js +31 -0
  596. package/dist/src/icons/systemicons/Download.js +31 -0
  597. package/dist/src/icons/systemicons/DragHandle.js +31 -0
  598. package/dist/src/icons/systemicons/DragIndicator.js +31 -0
  599. package/dist/src/icons/systemicons/Edit.js +31 -0
  600. package/dist/src/icons/systemicons/Educator.js +31 -0
  601. package/dist/src/icons/systemicons/Equals.js +31 -0
  602. package/dist/src/icons/systemicons/EventLog.js +31 -0
  603. package/dist/src/icons/systemicons/Export.js +31 -0
  604. package/dist/src/icons/systemicons/ExportCVS.js +31 -0
  605. package/dist/src/icons/systemicons/ExportDoc.js +31 -0
  606. package/dist/src/icons/systemicons/ExportEXL.js +31 -0
  607. package/dist/src/icons/systemicons/ExportJpg.js +31 -0
  608. package/dist/src/icons/systemicons/ExportPDF.js +31 -0
  609. package/dist/src/icons/systemicons/ExportPNG.js +31 -0
  610. package/dist/src/icons/systemicons/ExtendTextArea.js +31 -0
  611. package/dist/src/icons/systemicons/Facebook.js +31 -0
  612. package/dist/src/icons/systemicons/Filter.js +31 -0
  613. package/dist/src/icons/systemicons/Flickr.js +31 -0
  614. package/dist/src/icons/systemicons/Forward.js +31 -0
  615. package/dist/src/icons/systemicons/ForwardFiveSec.js +31 -0
  616. package/dist/src/icons/systemicons/ForwardSlash.js +31 -0
  617. package/dist/src/icons/systemicons/Fullscreen.js +31 -0
  618. package/dist/src/icons/systemicons/FullscreenExit.js +31 -0
  619. package/dist/src/icons/systemicons/GearSettings.js +31 -0
  620. package/dist/src/icons/systemicons/GridView.js +31 -0
  621. package/dist/src/icons/systemicons/Group.js +31 -0
  622. package/dist/src/icons/systemicons/GuidedTour.js +31 -0
  623. package/dist/src/icons/systemicons/HeartShock.js +31 -0
  624. package/dist/src/icons/systemicons/Help.js +31 -0
  625. package/dist/src/icons/systemicons/Hierarchy.js +31 -0
  626. package/dist/src/icons/systemicons/History.js +31 -0
  627. package/dist/src/icons/systemicons/Home.js +31 -0
  628. package/dist/src/icons/systemicons/Image.js +31 -0
  629. package/dist/src/icons/systemicons/Infant.js +31 -0
  630. package/dist/src/icons/systemicons/Information.js +31 -0
  631. package/dist/src/icons/systemicons/Institute.js +31 -0
  632. package/dist/src/icons/systemicons/Keyboard.js +31 -0
  633. package/dist/src/icons/systemicons/Language.js +31 -0
  634. package/dist/src/icons/systemicons/Learner.js +31 -0
  635. package/dist/src/icons/systemicons/Legend.js +31 -0
  636. package/dist/src/icons/systemicons/Legend1Circle.js +31 -0
  637. package/dist/src/icons/systemicons/Legend2Triangle.js +31 -0
  638. package/dist/src/icons/systemicons/Legend3Star.js +31 -0
  639. package/dist/src/icons/systemicons/Legend4Square.js +31 -0
  640. package/dist/src/icons/systemicons/Legend5Diamond.js +31 -0
  641. package/dist/src/icons/systemicons/Legend6Nabla.js +31 -0
  642. package/dist/src/icons/systemicons/Legend7Pentagon.js +31 -0
  643. package/dist/src/icons/systemicons/Legend8Rectangle.js +31 -0
  644. package/dist/src/icons/systemicons/LegendStrokeDashed.js +31 -0
  645. package/dist/src/icons/systemicons/LegendStrokeSolid.js +31 -0
  646. package/dist/src/icons/systemicons/LikeOff.js +31 -0
  647. package/dist/src/icons/systemicons/LikeOn.js +31 -0
  648. package/dist/src/icons/systemicons/Link.js +31 -0
  649. package/dist/src/icons/systemicons/LinkedIn.js +31 -0
  650. package/dist/src/icons/systemicons/ListView.js +31 -0
  651. package/dist/src/icons/systemicons/LoadingMedium.js +8 -0
  652. package/dist/src/icons/systemicons/LoadingSmall.js +8 -0
  653. package/dist/src/icons/systemicons/LockedOff.js +31 -0
  654. package/dist/src/icons/systemicons/LockedOn.js +31 -0
  655. package/dist/src/icons/systemicons/Login.js +31 -0
  656. package/dist/src/icons/systemicons/Logout.js +31 -0
  657. package/dist/src/icons/systemicons/Loop.js +31 -0
  658. package/dist/src/icons/systemicons/Mail.js +31 -0
  659. package/dist/src/icons/systemicons/Manikin.js +31 -0
  660. package/dist/src/icons/systemicons/MapPoint.js +31 -0
  661. package/dist/src/icons/systemicons/Menu.js +31 -0
  662. package/dist/src/icons/systemicons/Metronome.js +31 -0
  663. package/dist/src/icons/systemicons/Microphone.js +31 -0
  664. package/dist/src/icons/systemicons/Minus.js +31 -0
  665. package/dist/src/icons/systemicons/MoreHorizontal.js +31 -0
  666. package/dist/src/icons/systemicons/MoreVertical.js +31 -0
  667. package/dist/src/icons/systemicons/Notification.js +31 -0
  668. package/dist/src/icons/systemicons/NotificationNew.js +31 -0
  669. package/dist/src/icons/systemicons/OpenFolder.js +31 -0
  670. package/dist/src/icons/systemicons/OpenNewWindow.js +31 -0
  671. package/dist/src/icons/systemicons/OverView.js +31 -0
  672. package/dist/src/icons/systemicons/Pause.js +31 -0
  673. package/dist/src/icons/systemicons/PieChart.js +31 -0
  674. package/dist/src/icons/systemicons/Pin.js +31 -0
  675. package/dist/src/icons/systemicons/Play.js +31 -0
  676. package/dist/src/icons/systemicons/PlayList.js +31 -0
  677. package/dist/src/icons/systemicons/PlayOutline.js +31 -0
  678. package/dist/src/icons/systemicons/PlaybackSpeed.js +31 -0
  679. package/dist/src/icons/systemicons/Plus.js +31 -0
  680. package/dist/src/icons/systemicons/PointDown.js +31 -0
  681. package/dist/src/icons/systemicons/PointLeft.js +31 -0
  682. package/dist/src/icons/systemicons/PointRight.js +31 -0
  683. package/dist/src/icons/systemicons/PointUp.js +31 -0
  684. package/dist/src/icons/systemicons/Print.js +31 -0
  685. package/dist/src/icons/systemicons/RadioButtonOff.js +31 -0
  686. package/dist/src/icons/systemicons/RadioButtonOn.js +31 -0
  687. package/dist/src/icons/systemicons/Record.js +31 -0
  688. package/dist/src/icons/systemicons/Refresh.js +31 -0
  689. package/dist/src/icons/systemicons/Replay.js +31 -0
  690. package/dist/src/icons/systemicons/Rewind.js +31 -0
  691. package/dist/src/icons/systemicons/SUN.js +31 -0
  692. package/dist/src/icons/systemicons/Save.js +31 -0
  693. package/dist/src/icons/systemicons/Search.js +31 -0
  694. package/dist/src/icons/systemicons/SendTo.js +31 -0
  695. package/dist/src/icons/systemicons/Share.js +31 -0
  696. package/dist/src/icons/systemicons/Shock.js +31 -0
  697. package/dist/src/icons/systemicons/ShockAdvised.js +31 -0
  698. package/dist/src/icons/systemicons/ShockAutomated.js +31 -0
  699. package/dist/src/icons/systemicons/ShockNotAdvised.js +31 -0
  700. package/dist/src/icons/systemicons/ShoppingCart.js +31 -0
  701. package/dist/src/icons/systemicons/SkipForward.js +31 -0
  702. package/dist/src/icons/systemicons/Sort.js +31 -0
  703. package/dist/src/icons/systemicons/SpeechBuble.js +31 -0
  704. package/dist/src/icons/systemicons/StarFilled.js +31 -0
  705. package/dist/src/icons/systemicons/StarOutlined.js +31 -0
  706. package/dist/src/icons/systemicons/Stop.js +31 -0
  707. package/dist/src/icons/systemicons/Support.js +31 -0
  708. package/dist/src/icons/systemicons/SwitchApp.js +31 -0
  709. package/dist/src/icons/systemicons/Team.js +31 -0
  710. package/dist/src/icons/systemicons/TechnicalWarning.js +31 -0
  711. package/dist/src/icons/systemicons/ThumbsDown.js +31 -0
  712. package/dist/src/icons/systemicons/ThumbsUp.js +31 -0
  713. package/dist/src/icons/systemicons/Time.js +31 -0
  714. package/dist/src/icons/systemicons/TimeLimited.js +31 -0
  715. package/dist/src/icons/systemicons/Timeline.js +31 -0
  716. package/dist/src/icons/systemicons/Tip.js +31 -0
  717. package/dist/src/icons/systemicons/Transcript.js +31 -0
  718. package/dist/src/icons/systemicons/Translation.js +31 -0
  719. package/dist/src/icons/systemicons/Twitter.js +31 -0
  720. package/dist/src/icons/systemicons/Upload.js +31 -0
  721. package/dist/src/icons/systemicons/Usb.js +31 -0
  722. package/dist/src/icons/systemicons/User.js +31 -0
  723. package/dist/src/icons/systemicons/Video.js +31 -0
  724. package/dist/src/icons/systemicons/VisibleOff.js +31 -0
  725. package/dist/src/icons/systemicons/VisibleOn.js +31 -0
  726. package/dist/src/icons/systemicons/VolumeDown.js +31 -0
  727. package/dist/src/icons/systemicons/VolumeOff.js +31 -0
  728. package/dist/src/icons/systemicons/VolumeUp.js +31 -0
  729. package/dist/src/icons/systemicons/Youtube.js +31 -0
  730. package/dist/src/icons/systemicons/Zoom.js +31 -0
  731. package/dist/src/icons/systemicons/ZoomOut.js +31 -0
  732. package/dist/src/icons/systemicons/index.js +204 -0
  733. package/dist/src/index.js +45 -0
  734. package/dist/src/styles/breakpoints.js +6 -0
  735. package/dist/src/styles/colors.d.ts +0 -1
  736. package/dist/src/styles/colors.js +89 -0
  737. package/dist/src/styles/focus-styles.js +9 -0
  738. package/dist/src/styles/global.js +13 -0
  739. package/dist/src/styles/index.d.ts +2 -1
  740. package/dist/src/styles/index.js +20 -0
  741. package/dist/src/styles/overwritecolors.d.ts +2 -0
  742. package/dist/src/styles/overwritecolors.js +12 -0
  743. package/dist/src/styles/shadowstyles.js +7 -0
  744. package/dist/src/styles/typography.d.ts +1 -1
  745. package/dist/src/styles/typography.js +130 -0
  746. package/dist/src/styles/z-indexes.js +16 -0
  747. package/dist/src/types.js +51 -0
  748. package/dist/src/utils/utils.js +3 -0
  749. package/dist/stories/Accordion/AccordionMenu.stories.d.ts +1 -1
  750. package/dist/stories/Accordion/AccordionMenu.stories.js +153 -0
  751. package/dist/stories/Accordion/ContentAccordion.stories.d.ts +1 -1
  752. package/dist/stories/Accordion/ContentAccordion.stories.js +234 -0
  753. package/dist/stories/AuthPage.stories.js +88 -0
  754. package/dist/stories/Banner.stories.d.ts +1 -1
  755. package/dist/stories/Banner.stories.js +107 -0
  756. package/dist/stories/Breadcrumb.stories.d.ts +1 -1
  757. package/dist/stories/Breadcrumb.stories.js +151 -0
  758. package/dist/stories/Button/BackButton.stories.d.ts +1 -1
  759. package/dist/stories/Button/BackButton.stories.js +32 -0
  760. package/dist/stories/Button/Button.stories.d.ts +1 -1
  761. package/dist/stories/Button/Button.stories.js +499 -0
  762. package/dist/stories/Button/DualFunctionButton.stories.d.ts +1 -1
  763. package/dist/stories/Button/DualFunctionButton.stories.js +374 -0
  764. package/dist/stories/Button/IconButton.stories.d.ts +1 -1
  765. package/dist/stories/Button/IconButton.stories.js +81 -0
  766. package/dist/stories/Card/Card.stories.d.ts +1 -1
  767. package/dist/stories/Card/Card.stories.js +710 -0
  768. package/dist/stories/Card/HorizontalCard.stories.d.ts +1 -1
  769. package/dist/stories/Card/HorizontalCard.stories.js +116 -0
  770. package/dist/stories/Chip/ActionChip.stories.d.ts +1 -1
  771. package/dist/stories/Chip/ActionChip.stories.js +69 -0
  772. package/dist/stories/Chip/ChoiceChip.stories.d.ts +1 -1
  773. package/dist/stories/Chip/ChoiceChip.stories.js +43 -0
  774. package/dist/stories/Chip/FilterChip.stories.d.ts +1 -1
  775. package/dist/stories/Chip/FilterChip.stories.js +68 -0
  776. package/dist/stories/Chip/InputChip.stories.d.ts +1 -1
  777. package/dist/stories/Chip/InputChip.stories.js +94 -0
  778. package/dist/stories/Dropdown/BasicDropdown.stories.d.ts +1 -1
  779. package/dist/stories/Dropdown/BasicDropdown.stories.js +122 -0
  780. package/dist/stories/Dropdown/ButtonDropdown.stories.d.ts +1 -1
  781. package/dist/stories/Dropdown/ButtonDropdown.stories.js +165 -0
  782. package/dist/stories/Dropdown/DropdownFilter.stories.d.ts +1 -1
  783. package/dist/stories/Dropdown/DropdownFilter.stories.js +81 -0
  784. package/dist/stories/Footer.stories.js +95 -0
  785. package/dist/stories/GlobalLoadingPage.stories.js +10 -0
  786. package/dist/stories/GlobalNavigationBar.stories.js +477 -0
  787. package/dist/stories/HorizontalTabs.stories.d.ts +1 -1
  788. package/dist/stories/HorizontalTabs.stories.js +161 -0
  789. package/dist/stories/Icon.stories.js +86 -0
  790. package/dist/stories/InputFields/CheckboxDemo.stories.d.ts +1 -1
  791. package/dist/stories/InputFields/CheckboxDemo.stories.js +63 -0
  792. package/dist/stories/InputFields/ChipInputField.stories.d.ts +1 -1
  793. package/dist/stories/InputFields/ChipInputField.stories.js +195 -0
  794. package/dist/stories/InputFields/DatepickerDemo.stories.d.ts +1 -1
  795. package/dist/stories/InputFields/DatepickerDemo.stories.js +54 -0
  796. package/dist/stories/InputFields/FormDemo.stories.js +47 -0
  797. package/dist/stories/InputFields/NumberFieldDemo.stories.d.ts +1 -1
  798. package/dist/stories/InputFields/NumberFieldDemo.stories.js +147 -0
  799. package/dist/stories/InputFields/PasswordDemo.stories.d.ts +1 -1
  800. package/dist/stories/InputFields/PasswordDemo.stories.js +52 -0
  801. package/dist/stories/InputFields/QuickSearchDemo.stories.d.ts +1 -1
  802. package/dist/stories/InputFields/QuickSearchDemo.stories.js +78 -0
  803. package/dist/stories/InputFields/RadioButtonDemo.stories.d.ts +1 -1
  804. package/dist/stories/InputFields/RadioButtonDemo.stories.js +52 -0
  805. package/dist/stories/InputFields/RichTextFieldDemo.stories.d.ts +1 -1
  806. package/dist/stories/InputFields/RichTextFieldDemo.stories.js +74 -0
  807. package/dist/stories/InputFields/SearchBarDemo.stories.d.ts +1 -1
  808. package/dist/stories/InputFields/SearchBarDemo.stories.js +108 -0
  809. package/dist/stories/InputFields/TextFieldDemo.stories.d.ts +1 -1
  810. package/dist/stories/InputFields/TextFieldDemo.stories.js +113 -0
  811. package/dist/stories/InputFields/TextareaDemo.stories.d.ts +1 -1
  812. package/dist/stories/InputFields/TextareaDemo.stories.js +80 -0
  813. package/dist/stories/Layout.stories.js +15 -0
  814. package/dist/stories/LinearProgress.stories.d.ts +1 -1
  815. package/dist/stories/LinearProgress.stories.js +69 -0
  816. package/dist/stories/List.stories.d.ts +1 -1
  817. package/dist/stories/List.stories.js +290 -0
  818. package/dist/stories/LoadingIndicator.stories.d.ts +1 -1
  819. package/dist/stories/LoadingIndicator.stories.js +24 -0
  820. package/dist/stories/MenuItem.stories.d.ts +1 -1
  821. package/dist/stories/MenuItem.stories.js +101 -0
  822. package/dist/stories/ModalContent.stories.js +468 -0
  823. package/dist/stories/ModalDialog.stories.js +862 -0
  824. package/dist/stories/NavItem.stories.d.ts +1 -1
  825. package/dist/stories/NavItem.stories.js +18 -0
  826. package/dist/stories/Notification.stories.d.ts +1 -1
  827. package/dist/stories/Notification.stories.js +30 -0
  828. package/dist/stories/Paginator.stories.d.ts +1 -1
  829. package/dist/stories/Paginator.stories.js +27 -0
  830. package/dist/stories/Popover.stories.js +836 -0
  831. package/dist/stories/ProfileButton.stories.d.ts +1 -1
  832. package/dist/stories/ProfileButton.stories.js +56 -0
  833. package/dist/stories/QuizButton.stories.d.ts +1 -1
  834. package/dist/stories/QuizButton.stories.js +128 -0
  835. package/dist/stories/Scrollbar.stories.js +70 -0
  836. package/dist/stories/SegmentControl.stories.d.ts +1 -1
  837. package/dist/stories/SegmentControl.stories.js +89 -0
  838. package/dist/stories/ShadowStyles.stories.js +24 -0
  839. package/dist/stories/SideMenu.stories.js +149 -0
  840. package/dist/stories/Switcher.stories.js +17 -0
  841. package/dist/stories/Tables.stories.js +436 -0
  842. package/dist/stories/Tabs.stories.js +92 -0
  843. package/dist/stories/Tag.stories.d.ts +1 -1
  844. package/dist/stories/Tag.stories.js +52 -0
  845. package/dist/stories/Tile.stories.d.ts +1 -1
  846. package/dist/stories/Tile.stories.js +1618 -0
  847. package/dist/stories/Toast.stories.d.ts +1 -1
  848. package/dist/stories/Toast.stories.js +294 -0
  849. package/dist/stories/ToggleButton.stories.d.ts +1 -1
  850. package/dist/stories/ToggleButton.stories.js +74 -0
  851. package/dist/stories/ToggleSwitch.stories.d.ts +1 -1
  852. package/dist/stories/ToggleSwitch.stories.js +94 -0
  853. package/dist/stories/Tooltip.stories.d.ts +1 -1
  854. package/dist/stories/Tooltip.stories.js +88 -0
  855. package/dist/stories/Typography.stories.js +130 -0
  856. package/dist/stories/color.stories.js +272 -0
  857. package/dist/styles/colors.cjs +1 -11
  858. package/dist/styles/colors.cjs.map +1 -1
  859. package/dist/styles/colors.js +0 -9
  860. package/dist/styles/colors.js.map +1 -1
  861. package/dist/styles/global.d.ts +1 -1
  862. package/dist/styles/index.cjs +3 -5
  863. package/dist/styles/index.cjs.map +1 -1
  864. package/dist/styles/index.d.ts +2 -1
  865. package/dist/styles/index.js +2 -1
  866. package/dist/styles/index.js.map +1 -1
  867. package/dist/styles/overwritecolors.cjs +20 -0
  868. package/dist/styles/overwritecolors.cjs.map +1 -0
  869. package/dist/styles/overwritecolors.d.ts +3 -0
  870. package/dist/styles/overwritecolors.js +12 -0
  871. package/dist/styles/overwritecolors.js.map +1 -0
  872. package/package.json +1 -1
@@ -0,0 +1,71 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ var __assign = (this && this.__assign) || function () {
6
+ __assign = Object.assign || function(t) {
7
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
8
+ s = arguments[i];
9
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
10
+ t[p] = s[p];
11
+ }
12
+ return t;
13
+ };
14
+ return __assign.apply(this, arguments);
15
+ };
16
+ var __rest = (this && this.__rest) || function (s, e) {
17
+ var t = {};
18
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
19
+ t[p] = s[p];
20
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
21
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
22
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
23
+ t[p[i]] = s[p[i]];
24
+ }
25
+ return t;
26
+ };
27
+ import * as React from 'react';
28
+ import Button, { ButtonContentContainer } from './Button';
29
+ import { SystemIcons } from '../icons';
30
+ import { DropdownContainer } from '../Dropdown/CommonStyling';
31
+ import { nanoid } from 'nanoid';
32
+ import { Size } from '../types';
33
+ import DropdownContent from '../Dropdown/DropdownContent';
34
+ import styled from 'styled-components';
35
+ import { useClickOutsideRef, useFocusOutsideRef } from '../common';
36
+ var DualButtonsContainer = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n\n button:first-child {\n margin-right: 2px;\n }\n\n ", " {\n min-width: unset;\n gap: 0px;\n padding: ", ";\n }\n\n .extraMargin {\n margin-bottom: 4px;\n }\n"], ["\n display: flex;\n align-items: center;\n\n button:first-child {\n margin-right: 2px;\n }\n\n ", " {\n min-width: unset;\n gap: 0px;\n padding: ", ";\n }\n\n .extraMargin {\n margin-bottom: 4px;\n }\n"])), ButtonContentContainer, function (props) { return (props.size == Size.Large ? '4px 18px' : props.size == Size.Medium ? '4px 14px' : '4px 10px'); });
37
+ var DualFunctionButton = function (_a) {
38
+ var _b = _a.children, children = _b === void 0 ? 'Primary Button' : _b, _c = _a.variant, variant = _c === void 0 ? 'primary' : _c, _d = _a.type, type = _d === void 0 ? 'button' : _d, _e = _a.size, size = _e === void 0 ? Size.Medium : _e, _f = _a.width, width = _f === void 0 ? 'auto' : _f, testId = _a.testId, disabled = _a.disabled, id = _a.id, dropdownMenuValues = _a.dropdownMenuValues, setDropdownMenuValues = _a.setDropdownMenuValues, dropdownCustomizationProps = _a.dropdownCustomizationProps, props = __rest(_a, ["children", "variant", "type", "size", "width", "testId", "disabled", "id", "dropdownMenuValues", "setDropdownMenuValues", "dropdownCustomizationProps"]);
39
+ // Let's filter out properties that we don't need to render.
40
+ var loading = props.loading, icon = props.icon, onClick = props.onClick, renderProps = __rest(props, ["loading", "icon", "onClick"]);
41
+ var _g = React.useState(false), isOpen = _g[0], setIsOpen = _g[1];
42
+ var _h = React.useState(), activeDescendant = _h[0], setActiveDescendant = _h[1];
43
+ var _j = React.useState(null), focused = _j[0], setFocused = _j[1];
44
+ var _k = React.useState(false), keyboardNavigated = _k[0], setKeyboardNavigated = _k[1];
45
+ var dropdownContainerRef = React.useRef(null);
46
+ var _l = React.useState([]), selectedValues = _l[0], setSelectedValues = _l[1];
47
+ var dropdownContentRef = React.useRef(null);
48
+ var dropdownButtonRef = useClickOutsideRef(function () { return setIsOpen(false); }, [dropdownContainerRef], useFocusOutsideRef(function () { return setIsOpen(false); }, [dropdownContentRef]));
49
+ var dropdownContentId = id ? id + '_dropdownContent' : nanoid();
50
+ React.useEffect(function () {
51
+ !isOpen && setKeyboardNavigated(false);
52
+ }, [isOpen]);
53
+ return (React.createElement(DualButtonsContainer, { ref: dropdownContainerRef, size: size },
54
+ React.createElement(DropdownContainer, { isButton: true, readOnly: false, disabled: false, margin: "" },
55
+ React.createElement(Button, __assign({}, renderProps, { testId: testId, onClick: onClick, disabled: disabled, type: type, loading: loading, icon: icon, size: size, width: width, variant: variant, flatEdge: "right" }), children),
56
+ React.createElement(DropdownContent, { containerRef: dropdownContainerRef, customizationProps: dropdownCustomizationProps, filter: "", ref: dropdownContentRef, selectedValues: dropdownCustomizationProps.itemsType == 'normal' ? [] : dropdownMenuValues !== null && dropdownMenuValues !== void 0 ? dropdownMenuValues : selectedValues, setSelectedValues: setDropdownMenuValues ? setDropdownMenuValues : setSelectedValues, isButton: true, setIsOpen: setIsOpen, focused: focused, onActiveDescendantChanged: function (e) { return setActiveDescendant(e); }, setFocused: setFocused, size: size, outline: keyboardNavigated, isOpen: isOpen, id: dropdownContentId, messageOnNoResults: "", alignLeft: true, ariaRolesType: "menu" })),
57
+ React.createElement(Button, __assign({ variant: variant }, renderProps, { onKeyPress: function (e) {
58
+ if (isOpen)
59
+ return;
60
+ if (e.key === 'Enter' || e.key === ' ') {
61
+ setFocused(0);
62
+ setKeyboardNavigated(true);
63
+ }
64
+ }, className: "extraMargin", testId: 'options_toggleBtn', ref: dropdownButtonRef, "aria-activedescendant": activeDescendant, role: "button", "aria-controls": dropdownContentId, disabled: disabled, type: type, size: size, onClick: function (e) {
65
+ e.stopPropagation();
66
+ setIsOpen(!isOpen);
67
+ }, icon: isOpen ? React.createElement(SystemIcons.ArrowDropUp, { "aria-hidden": "true", size: "16px" })
68
+ : React.createElement(SystemIcons.ArrowDropDown, { "aria-hidden": "true", size: "16px" }), flatEdge: "left" }))));
69
+ };
70
+ export default DualFunctionButton;
71
+ var templateObject_1;
@@ -0,0 +1,70 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ var __assign = (this && this.__assign) || function () {
6
+ __assign = Object.assign || function(t) {
7
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
8
+ s = arguments[i];
9
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
10
+ t[p] = s[p];
11
+ }
12
+ return t;
13
+ };
14
+ return __assign.apply(this, arguments);
15
+ };
16
+ var __rest = (this && this.__rest) || function (s, e) {
17
+ var t = {};
18
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
19
+ t[p] = s[p];
20
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
21
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
22
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
23
+ t[p[i]] = s[p[i]];
24
+ }
25
+ return t;
26
+ };
27
+ import React from 'react';
28
+ import styled from 'styled-components';
29
+ import { COLORS, focusStyles, invertedFocusStyles } from '../styles';
30
+ import { defaultOnMouseDownHandler } from '../common';
31
+ import TooltipWrapper from "../Tooltips/TooltipWrapper";
32
+ var getBorderRadius = function (props) { return (props.borderRadius ? "".concat(props.borderRadius, "px") : '4px'); };
33
+ var getBorderRadiusStyle = function (props) {
34
+ var radius = getBorderRadius(props);
35
+ switch (props.flatEdge) {
36
+ case 'left':
37
+ return "0px ".concat(radius, " ").concat(radius, " 0px");
38
+ case 'right':
39
+ return "".concat(radius, " 0px 0px ").concat(radius);
40
+ case 'none':
41
+ default:
42
+ return "".concat(radius);
43
+ }
44
+ };
45
+ export var IconButtonContentStyles = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject([""], [""])));
46
+ export var IconButtonStyled = styled.button(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border-width: 0;\n cursor: pointer;\n height: 48px;\n width: 48px;\n background: transparent;\n position: relative;\n display: block;\n\n border-radius: ", ";\n ", " {\n height: 36px;\n width: 36px;\n border-radius: ", ";\n display: flex;\n justify-content: center;\n align-items: center;\n svg {\n height: ", ";\n width: ", ";\n padding: 0;\n }\n }\n &:only-child {\n margin: 0;\n }\n &:disabled {\n cursor: not-allowed;\n }\n\n &:focus {\n ", "\n }\n"], ["\n border-width: 0;\n cursor: pointer;\n height: 48px;\n width: 48px;\n background: transparent;\n position: relative;\n display: block;\n\n border-radius: ", ";\n ", " {\n height: 36px;\n width: 36px;\n border-radius: ", ";\n display: flex;\n justify-content: center;\n align-items: center;\n svg {\n height: ", ";\n width: ", ";\n padding: 0;\n }\n }\n &:only-child {\n margin: 0;\n }\n &:disabled {\n cursor: not-allowed;\n }\n\n &:focus {\n ", "\n }\n"])), function (props) { return (props.borderRadius ? "".concat(props.borderRadius, "px") : '4px'); }, IconButtonContentStyles, getBorderRadiusStyle, function (props) { return (props.unsetIconSize ? 'unset' : '24px'); }, function (props) { return (props.unsetIconSize ? 'unset' : '24px'); }, function (props) { return (props.invertFocus ? invertedFocusStyles : focusStyles); });
47
+ export var IconButtonStyledPrimary = styled(IconButtonStyled)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", " {\n background-color: ", ";\n\n svg {\n fill: ", ";\n path {\n fill: ", ";\n }\n }\n }\n &:hover:not(:disabled),\n &.hover-state {\n ", " {\n background-color: ", ";\n }\n ", " svg path,\n ", " svg {\n fill: ", ";\n }\n }\n &:active:not(:disabled),\n &.active-state {\n ", " {\n background: ", ";\n }\n ", " svg path,\n ", " svg {\n fill: ", ";\n }\n }\n &:disabled {\n ", " {\n background-color: ", ";\n }\n svg {\n path {\n fill: ", ";\n }\n fill: ", ";\n }\n }\n"], ["\n ", " {\n background-color: ", ";\n\n svg {\n fill: ", ";\n path {\n fill: ", ";\n }\n }\n }\n &:hover:not(:disabled),\n &.hover-state {\n ", " {\n background-color: ", ";\n }\n ", " svg path,\n ", " svg {\n fill: ", ";\n }\n }\n &:active:not(:disabled),\n &.active-state {\n ", " {\n background: ", ";\n }\n ", " svg path,\n ", " svg {\n fill: ", ";\n }\n }\n &:disabled {\n ", " {\n background-color: ", ";\n }\n svg {\n path {\n fill: ", ";\n }\n fill: ", ";\n }\n }\n"])), IconButtonContentStyles, function (props) { return (props.useTransparentBackground ? 'transparent' : COLORS.primary_500); }, function (props) { return props.iconColor || COLORS.white; }, function (props) { return props.iconColor || COLORS.white; }, IconButtonContentStyles, COLORS.primary_700, IconButtonContentStyles, IconButtonContentStyles, COLORS.white, IconButtonContentStyles, COLORS.primary_800, IconButtonContentStyles, IconButtonContentStyles, COLORS.white, IconButtonContentStyles, COLORS.neutral_200, COLORS.white, COLORS.white);
48
+ export var IconButtonStyledSecondary = styled(IconButtonStyled)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n ", " {\n background-color: ", ";\n\n svg {\n fill: ", ";\n path {\n fill: ", ";\n }\n }\n }\n\n\n &:hover:not(:disabled) {\n ", " {\n background-color: ", ";\n }\n ", " svg path,\n ", " svg {\n fill: ", ";\n }\n }\n &:active:not(:disabled),\n &.active-state {\n ", " {\n background: ", ";\n }\n ", " svg path,\n ", " svg {\n fill: ", ";\n }\n }\n\n &:disabled {\n ", " {\n background-color: ", ";\n }\n svg {\n path {\n fill: ", ";\n }\n fill: ", ";\n }\n }\n"], ["\n ", " {\n background-color: ", ";\n\n svg {\n fill: ", ";\n path {\n fill: ", ";\n }\n }\n }\n\n\n &:hover:not(:disabled) {\n ", " {\n background-color: ", ";\n }\n ", " svg path,\n ", " svg {\n fill: ", ";\n }\n }\n &:active:not(:disabled),\n &.active-state {\n ", " {\n background: ", ";\n }\n ", " svg path,\n ", " svg {\n fill: ", ";\n }\n }\n\n &:disabled {\n ", " {\n background-color: ", ";\n }\n svg {\n path {\n fill: ", ";\n }\n fill: ", ";\n }\n }\n"])), IconButtonContentStyles, function (props) { return (props.useTransparentBackground ? 'transparent' : COLORS.white); }, function (props) { return props.iconColor || COLORS.neutral_600; }, function (props) { return props.iconColor || COLORS.neutral_600; }, IconButtonContentStyles, COLORS.primary_20, IconButtonContentStyles, IconButtonContentStyles, COLORS.primary_700, IconButtonContentStyles, COLORS.primary_100, IconButtonContentStyles, IconButtonContentStyles, COLORS.primary_800, IconButtonContentStyles, function (props) { return (props.useTransparentBackground ? 'transparent' : COLORS.white); }, COLORS.neutral_300, COLORS.neutral_300);
49
+ export var IconButton = React.forwardRef(function (_a, ref) {
50
+ var id = _a.id, variant = _a.variant, shape = _a.shape, action = _a.action, children = _a.children, useTransparentBackground = _a.useTransparentBackground, disabled = _a.disabled, iconColor = _a.iconColor, unsetIconSize = _a.unsetIconSize, tabIndex = _a.tabIndex, flatEdge = _a.flatEdge, borderRadius = _a.borderRadius, type = _a.type, hidden = _a.hidden, invertFocus = _a.invertFocus, dataTestId = _a.dataTestId, focusOnClick = _a.focusOnClick, tooltip = _a.tooltip, rest = __rest(_a, ["id", "variant", "shape", "action", "children", "useTransparentBackground", "disabled", "iconColor", "unsetIconSize", "tabIndex", "flatEdge", "borderRadius", "type", "hidden", "invertFocus", "dataTestId", "focusOnClick", "tooltip"]);
51
+ var render = function () {
52
+ // Let's render button
53
+ var ButtonVariant = IconButtonStyledPrimary;
54
+ switch (variant) {
55
+ case 'secondary':
56
+ ButtonVariant = IconButtonStyledSecondary;
57
+ break;
58
+ }
59
+ return React.createElement(ButtonVariant, __assign({ id: id, type: type !== null && type !== void 0 ? type : 'button', "data-testid": dataTestId, flatEdge: flatEdge, ref: ref, onClick: function (event) {
60
+ event.stopPropagation();
61
+ action(event);
62
+ }, disabled: disabled, useTransparentBackground: useTransparentBackground, iconColor: iconColor, unsetIconSize: unsetIconSize, tabIndex: tabIndex, borderRadius: borderRadius || shape === 'circular' ? 18 : 0, onMouseDown: !focusOnClick ? defaultOnMouseDownHandler : undefined, hidden: hidden, invertFocus: invertFocus }, rest),
63
+ React.createElement(IconButtonContentStyles, null, children));
64
+ };
65
+ return !tooltip
66
+ ? render()
67
+ : (React.createElement(TooltipWrapper, __assign({}, tooltip), render()));
68
+ });
69
+ export default IconButton;
70
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
@@ -0,0 +1,8 @@
1
+ export { default as IconButton } from './Iconbutton';
2
+ export * from './Iconbutton';
3
+ export { default as Button } from './Button';
4
+ export * from './Button';
5
+ export { default as BackButton } from './BackButton';
6
+ export * from './BackButton';
7
+ export { default as DualFunctionButton } from './DualFunctionButton';
8
+ export * from './DualFunctionButton';
@@ -0,0 +1,55 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ var __assign = (this && this.__assign) || function () {
6
+ __assign = Object.assign || function(t) {
7
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
8
+ s = arguments[i];
9
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
10
+ t[p] = s[p];
11
+ }
12
+ return t;
13
+ };
14
+ return __assign.apply(this, arguments);
15
+ };
16
+ var __rest = (this && this.__rest) || function (s, e) {
17
+ var t = {};
18
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
19
+ t[p] = s[p];
20
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
21
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
22
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
23
+ t[p[i]] = s[p[i]];
24
+ }
25
+ return t;
26
+ };
27
+ import React from 'react';
28
+ import styled from 'styled-components';
29
+ import { BOXSHADOWS, COLORS, focusStyles } from '../../styles';
30
+ import { HorizontalCardThumbnail } from './HorizontalCardThumbnail';
31
+ import { HorizontalCardBody } from './HorizontalCardBody';
32
+ import { HorizontalCardActions } from './HorizontalCardActions';
33
+ import { defaultOnMouseDownHandler, useActionWithin } from '../../common';
34
+ export var HorizontalCardContentContainer = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n display: flex;\n flex: 1;\n flex-direction: row;\n align-items: center;\n background-color: ", ";\n border-radius: 8px;\n"], ["\n position: relative;\n display: flex;\n flex: 1;\n flex-direction: row;\n align-items: center;\n background-color: ", ";\n border-radius: 8px;\n"])), COLORS.white);
35
+ export var HorizontalCardContainer = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex: 1;\n\n &.outline {\n ", " {\n box-shadow: inset 0 0 0 1px ", ";\n }\n }\n\n &.elevated {\n ", " {\n box-shadow: ", ";\n }\n }\n\n &.clickable {\n cursor: pointer;\n\n &:hover:not(.action-within):not(.disabled) {\n &.outline {\n ", " {\n background-color: ", ";\n }\n }\n\n &.elevated {\n ", " {\n box-shadow: ", ";\n }\n }\n }\n\n &:active:not(.action-within):not(.disabled) {\n &.outline {\n ", " {\n background-color: ", ";\n }\n }\n\n &.elevated {\n ", " {\n box-shadow: ", ";\n }\n }\n }\n\n &:focus {\n ", "\n }\n }\n\n &.disabled {\n cursor: not-allowed;\n\n &.elevated {\n ", " {\n box-shadow: ", ";\n }\n }\n\n &.outline {\n ", " {\n box-shadow: inset 0 0 0 1px ", ";\n }\n }\n }\n"], ["\n display: flex;\n flex: 1;\n\n &.outline {\n ", " {\n box-shadow: inset 0 0 0 1px ", ";\n }\n }\n\n &.elevated {\n ", " {\n box-shadow: ", ";\n }\n }\n\n &.clickable {\n cursor: pointer;\n\n &:hover:not(.action-within):not(.disabled) {\n &.outline {\n ", " {\n background-color: ", ";\n }\n }\n\n &.elevated {\n ", " {\n box-shadow: ", ";\n }\n }\n }\n\n &:active:not(.action-within):not(.disabled) {\n &.outline {\n ", " {\n background-color: ", ";\n }\n }\n\n &.elevated {\n ", " {\n box-shadow: ", ";\n }\n }\n }\n\n &:focus {\n ", "\n }\n }\n\n &.disabled {\n cursor: not-allowed;\n\n &.elevated {\n ", " {\n box-shadow: ", ";\n }\n }\n\n &.outline {\n ", " {\n box-shadow: inset 0 0 0 1px ", ";\n }\n }\n }\n"])), HorizontalCardContentContainer, COLORS.neutral_200, HorizontalCardContentContainer, BOXSHADOWS.BOXSHADOW_L1, HorizontalCardContentContainer, COLORS.primary_20, HorizontalCardContentContainer, BOXSHADOWS.BOXSHADOW_L3, HorizontalCardContentContainer, COLORS.primary_100, HorizontalCardContentContainer, BOXSHADOWS.BOXSHADOW_L2, focusStyles, HorizontalCardContentContainer, BOXSHADOWS.BOXSHADOW_L1, HorizontalCardContentContainer, COLORS.neutral_100);
36
+ export var HorizontalCard = function (_a) {
37
+ var title = _a.title, description = _a.description, tags = _a.tags, progress = _a.progress, icon = _a.icon, _b = _a.variant, variant = _b === void 0 ? 'outline' : _b, image = _a.image, action = _a.action, actions = _a.actions, disabled = _a.disabled, className = _a.className, dataTestId = _a.dataTestId, rest = __rest(_a, ["title", "description", "tags", "progress", "icon", "variant", "image", "action", "actions", "disabled", "className", "dataTestId"]);
38
+ var _c = React.useState([]), actionsRefs = _c[0], setActionsRefs = _c[1];
39
+ var containerRef = React.useRef(null);
40
+ useActionWithin(containerRef, actionsRefs);
41
+ var cls = "".concat(variant, " ").concat(action ? 'clickable' : '', " ").concat(disabled ? 'disabled' : '', " ").concat(className || '');
42
+ var handleClick = function () {
43
+ !disabled && action && action();
44
+ };
45
+ var handleButtonPress = function (e) {
46
+ e.key === 'Enter' && handleClick();
47
+ };
48
+ return (React.createElement(HorizontalCardContainer, { ref: containerRef, tabIndex: action && !disabled ? 0 : -1, className: cls, onKeyDown: handleButtonPress, onClick: handleClick, onMouseDown: defaultOnMouseDownHandler },
49
+ React.createElement(HorizontalCardContentContainer, __assign({ onMouseDown: defaultOnMouseDownHandler, "data-testid": dataTestId }, rest),
50
+ React.createElement(HorizontalCardThumbnail, { image: image, icon: icon }),
51
+ React.createElement(HorizontalCardBody, { title: title, description: description, tags: tags, progress: progress }),
52
+ React.createElement(HorizontalCardActions, { ref: function (instance) { return setActionsRefs(instance !== null && instance !== void 0 ? instance : []); }, actions: actions, disabled: disabled }))));
53
+ };
54
+ export default HorizontalCard;
55
+ var templateObject_1, templateObject_2;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { HorizontalCardProps } from './types';
3
- type Props = Pick<HorizontalCardProps, 'actions' | 'disabled'>;
3
+ declare type Props = Pick<HorizontalCardProps, 'actions' | 'disabled'>;
4
4
  export declare const HorizontalCardActions: React.ForwardRefExoticComponent<Props & React.RefAttributes<React.RefObject<HTMLButtonElement>[]>>;
5
5
  export {};
@@ -0,0 +1,39 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ import React from 'react';
6
+ import { IconButton } from '../../Button';
7
+ import { ToggleButton } from '../../Toggles';
8
+ import { DropdownButton } from '../../Dropdown';
9
+ import styled from 'styled-components';
10
+ var Container = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
11
+ export var HorizontalCardActions = React.forwardRef(function (_a, ref) {
12
+ var actions = _a.actions, disabled = _a.disabled;
13
+ var _b = React.useState([]), elRefs = _b[0], setElRefs = _b[1];
14
+ var length = (actions === null || actions === void 0 ? void 0 : actions.length) || 0;
15
+ React.useEffect(function () {
16
+ setElRefs(Array(length || 0).fill(null).map(function () { return React.createRef(); }));
17
+ }, [length]);
18
+ React.useImperativeHandle(ref, function () { return elRefs; }, [elRefs]);
19
+ var renderAction = function (item, index) {
20
+ var _a, _b, _c;
21
+ switch (item.componentType) {
22
+ case 'custom': {
23
+ return item.content;
24
+ }
25
+ case 'icon': {
26
+ return React.createElement(IconButton, { ref: elRefs[index], key: index, variant: 'secondary', useTransparentBackground: true, shape: 'circular', action: item.action, tooltip: item.tooltip, disabled: (_a = item.disabled) !== null && _a !== void 0 ? _a : disabled }, item.icon);
27
+ }
28
+ case 'toggle': {
29
+ return React.createElement(ToggleButton, { ref: elRefs[index], key: index, active: item.active, onChange: item.onChange, defaultState: item.defaultState, activeState: item.activeState, disabled: (_b = item.disabled) !== null && _b !== void 0 ? _b : disabled });
30
+ }
31
+ case 'dropdown': {
32
+ return React.createElement(DropdownButton, { ref: elRefs[index], key: index, type: 'icon', items: item.items, itemsType: item.itemsType, onClick: item.onClick, icon: item.icon, action: item.action, actionIcon: item.actionIcon, actionLabel: item.actionLabel, actionVariant: item.actionVariant, actionLoading: item.actionLoading, multiSelect: item.multiSelect, scrollable: item.scrollable, pinTopItem: item.pinTopItem, maxHeight: item.maxHeight, disabled: (_c = item.disabled) !== null && _c !== void 0 ? _c : disabled });
33
+ }
34
+ }
35
+ };
36
+ return (React.createElement(React.Fragment, null, (actions === null || actions === void 0 ? void 0 : actions.length) &&
37
+ React.createElement(Container, null, actions === null || actions === void 0 ? void 0 : actions.map(function (item, index) { return renderAction(item, index); }))));
38
+ });
39
+ var templateObject_1;
@@ -4,6 +4,6 @@ export declare const HorizontalCardBodyContainer: import("styled-components").St
4
4
  export declare const HorizontalCardBodyTitle: import("styled-components").StyledComponent<"div", any, {}, never>;
5
5
  export declare const HorizontalCardBodyDescription: import("styled-components").StyledComponent<"div", any, {}, never>;
6
6
  export declare const HorizontalCardBodyTagsContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
7
- type Props = Pick<HorizontalCardProps, 'title' | 'description' | 'progress' | 'tags'>;
7
+ declare type Props = Pick<HorizontalCardProps, 'title' | 'description' | 'progress' | 'tags'>;
8
8
  export declare const HorizontalCardBody: React.FunctionComponent<Props>;
9
9
  export {};
@@ -0,0 +1,23 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ import React from 'react';
6
+ import styled from 'styled-components';
7
+ import { COLORS, ComponentMStyling, ComponentTextStyle, ComponentXSStyling } from '../../styles';
8
+ import { LinearProgress } from '../../LinearProgress';
9
+ import { Tag } from '../../Tag';
10
+ export var HorizontalCardBodyContainer = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: 8px;\n padding: 16px;\n"], ["\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: 8px;\n padding: 16px;\n"])));
11
+ export var HorizontalCardBodyTitle = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n .disabled & {\n color: ", ";\n }\n"], ["\n ", "\n .disabled & {\n color: ", ";\n }\n"])), ComponentMStyling(ComponentTextStyle.Bold, COLORS.black), COLORS.neutral_500);
12
+ export var HorizontalCardBodyDescription = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), ComponentXSStyling(ComponentTextStyle.Regular, COLORS.neutral_600));
13
+ export var HorizontalCardBodyTagsContainer = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n padding: 4px 0;\n gap: 4px;\n"], ["\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n padding: 4px 0;\n gap: 4px;\n"])));
14
+ export var HorizontalCardBody = function (_a) {
15
+ var title = _a.title, description = _a.description, progress = _a.progress, tags = _a.tags;
16
+ return (React.createElement(HorizontalCardBodyContainer, null,
17
+ React.createElement(HorizontalCardBodyTitle, null, title),
18
+ description && React.createElement(HorizontalCardBodyDescription, null, description),
19
+ tags &&
20
+ React.createElement(HorizontalCardBodyTagsContainer, null, tags.map(function (tag, index) { return (React.createElement(Tag, { key: index, label: tag.label, variant: tag.variant, icon: tag.icon })); })),
21
+ progress && React.createElement(LinearProgress, { value: progress.value, max: progress.max })));
22
+ };
23
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
@@ -2,6 +2,6 @@ import React from 'react';
2
2
  import { HorizontalCardProps } from './types';
3
3
  export declare const HorizontalCardIconContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
4
4
  export declare const HorizontalCardImageContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
5
- type Props = Pick<HorizontalCardProps, 'image' | 'icon'>;
5
+ declare type Props = Pick<HorizontalCardProps, 'image' | 'icon'>;
6
6
  export declare const HorizontalCardThumbnail: React.FunctionComponent<Props>;
7
7
  export {};
@@ -0,0 +1,21 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ import React from 'react';
6
+ import styled from 'styled-components';
7
+ import { COLORS } from '../../styles';
8
+ import { ImageWithFallbacks } from "../../Image";
9
+ export var HorizontalCardIconContainer = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n justify-content: flex-end;\n align-items: center;\n width: 64px;\n height: 80px;\n\n color: ", ";\n\n .disabled & {\n color: ", ";\n }\n"], ["\n display: flex;\n justify-content: flex-end;\n align-items: center;\n width: 64px;\n height: 80px;\n\n color: ", ";\n\n .disabled & {\n color: ", ";\n }\n"])), COLORS.black, COLORS.neutral_500);
10
+ export var HorizontalCardImageContainer = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 100%;\n overflow: hidden;\n border-bottom-left-radius: 8px;\n border-top-left-radius: 8px;\n width: 120px;\n\n img {\n mix-blend-mode: multiply;\n object-fit: cover;\n width: 100%;\n height: 100%;\n\n }\n\n .disabled & {\n img {\n filter: grayscale(100%);\n }\n }\n\n"], ["\n height: 100%;\n overflow: hidden;\n border-bottom-left-radius: 8px;\n border-top-left-radius: 8px;\n width: 120px;\n\n img {\n mix-blend-mode: multiply;\n object-fit: cover;\n width: 100%;\n height: 100%;\n\n }\n\n .disabled & {\n img {\n filter: grayscale(100%);\n }\n }\n\n"])));
11
+ export var HorizontalCardThumbnail = function (_a) {
12
+ var _b, _c;
13
+ var image = _a.image, icon = _a.icon;
14
+ return (React.createElement(React.Fragment, null,
15
+ icon &&
16
+ React.createElement(HorizontalCardIconContainer, null, React.cloneElement(icon, { width: 48, height: 48 })),
17
+ image &&
18
+ React.createElement(HorizontalCardImageContainer, null,
19
+ React.createElement(ImageWithFallbacks, { fallbacks: (_b = image.fallbackSrc) !== null && _b !== void 0 ? _b : '', src: image.src, alt: image.alt, loader: (_c = image.loader) !== null && _c !== void 0 ? _c : false, width: image.width, height: image.height }))));
20
+ };
21
+ var templateObject_1, templateObject_2;
@@ -0,0 +1,4 @@
1
+ export * from './types';
2
+ export * from './HorizontalCard';
3
+ export * from './HorizontalCardBody';
4
+ export * from './HorizontalCardThumbnail';
@@ -5,20 +5,20 @@ import { DropdownButtonProps } from '../../Dropdown/DropdownButtonTypes';
5
5
  import { TagVariants } from '../../Tag';
6
6
  import { LinearProgressProps } from '../../LinearProgress/LinearProgress';
7
7
  import { Testable } from '../../types';
8
- export type HorizontalCardIconButton = Pick<IconButtonProps, 'action' | 'disabled' | 'tooltip'> & {
8
+ export declare type HorizontalCardIconButton = Pick<IconButtonProps, 'action' | 'disabled' | 'tooltip'> & {
9
9
  componentType: 'icon';
10
10
  icon: React.ReactNode;
11
11
  };
12
- export type HorizontalCardToggleButton = Pick<ToggleButtonProps, 'active' | 'onChange' | 'disabled' | 'defaultState' | 'activeState'> & {
12
+ export declare type HorizontalCardToggleButton = Pick<ToggleButtonProps, 'active' | 'onChange' | 'disabled' | 'defaultState' | 'activeState'> & {
13
13
  componentType: 'toggle';
14
14
  };
15
15
  export interface CustomContentProps extends Testable {
16
16
  content: ReactNode;
17
17
  }
18
- export type HorizontalCardCustomContent = CustomContentProps & {
18
+ export declare type HorizontalCardCustomContent = CustomContentProps & {
19
19
  componentType: 'custom';
20
20
  };
21
- export type HorizontalCardDropdownButton = Pick<DropdownButtonProps, 'items' | 'onClick' | 'disabled' | 'itemsType' | 'action' | 'actionIcon' | 'actionLabel' | 'actionLoading' | 'actionVariant' | 'multiSelect' | 'scrollable' | 'pinTopItem' | 'maxHeight'> & {
21
+ export declare type HorizontalCardDropdownButton = Pick<DropdownButtonProps, 'items' | 'onClick' | 'disabled' | 'itemsType' | 'action' | 'actionIcon' | 'actionLabel' | 'actionLoading' | 'actionVariant' | 'multiSelect' | 'scrollable' | 'pinTopItem' | 'maxHeight'> & {
22
22
  componentType: 'dropdown';
23
23
  icon: React.ReactNode;
24
24
  };
@@ -27,7 +27,7 @@ export interface HorizontalCardTag {
27
27
  icon?: React.ReactNode;
28
28
  variant?: TagVariants;
29
29
  }
30
- export type HorizontalCardLinearProgression = Pick<LinearProgressProps, 'max' | 'value'>;
30
+ export declare type HorizontalCardLinearProgression = Pick<LinearProgressProps, 'max' | 'value'>;
31
31
  export interface HorizontalCardProps extends Testable, Omit<React.HTMLAttributes<HTMLDivElement>, 'title' | 'description' | 'tabIndex' | 'onClick' | 'onKeyDown' | 'onMouseDown'> {
32
32
  /** 'Outline' or 'Elevated' style of container. */
33
33
  variant?: 'outline' | 'elevated';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,61 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ var __assign = (this && this.__assign) || function () {
6
+ __assign = Object.assign || function(t) {
7
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
8
+ s = arguments[i];
9
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
10
+ t[p] = s[p];
11
+ }
12
+ return t;
13
+ };
14
+ return __assign.apply(this, arguments);
15
+ };
16
+ var __rest = (this && this.__rest) || function (s, e) {
17
+ var t = {};
18
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
19
+ t[p] = s[p];
20
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
21
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
22
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
23
+ t[p[i]] = s[p[i]];
24
+ }
25
+ return t;
26
+ };
27
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
28
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
29
+ if (ar || !(i in from)) {
30
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
31
+ ar[i] = from[i];
32
+ }
33
+ }
34
+ return to.concat(ar || Array.prototype.slice.call(from));
35
+ };
36
+ import * as React from 'react';
37
+ import styled from 'styled-components';
38
+ import CardTopSection from './CardTopSection';
39
+ import CardMiddleSection from './CardMiddleSection';
40
+ import CardBottomSection from './CardBottomSection';
41
+ import { BOXSHADOWS, COLORS, defaultOnMouseDownHandler, focusStyles, useActionWithin } from '../../index';
42
+ export var CardTopLevelContainerStyles = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n min-width: 240px;\n overflow: hidden;\n\n border-radius: 8px;\n\n background-clip: padding-box;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n\n .elevated & {\n box-shadow: ", ";\n }\n\n .outline & {\n border: 1px solid ", ";\n }\n"], ["\n background-color: ", ";\n min-width: 240px;\n overflow: hidden;\n\n border-radius: 8px;\n\n background-clip: padding-box;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n\n .elevated & {\n box-shadow: ", ";\n }\n\n .outline & {\n border: 1px solid ", ";\n }\n"])), COLORS.white, BOXSHADOWS.BOXSHADOW_L1, COLORS.neutral_200);
43
+ export var CardContainerStyles = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n &.interactive:focus {\n ", "\n }\n\n &.interactive:not(.disabled) {\n cursor: pointer;\n\n &.outline:not(.action-within) {\n ", " {\n &:hover {\n background-color: ", ";\n }\n\n &:active, &.active-state {\n background-color: ", ";\n }\n }\n }\n\n &.elevated:not(.action-within) {\n ", " {\n &:hover {\n box-shadow: ", ";\n }\n\n &:active, &.active-state {\n box-shadow: ", ";\n }\n }\n }\n }\n\n &.disabled {\n cursor: not-allowed;\n ", "{\n border: 1px solid ", ";\n }\n }\n"], ["\n &.interactive:focus {\n ", "\n }\n\n &.interactive:not(.disabled) {\n cursor: pointer;\n\n &.outline:not(.action-within) {\n ", " {\n &:hover {\n background-color: ", ";\n }\n\n &:active, &.active-state {\n background-color: ", ";\n }\n }\n }\n\n &.elevated:not(.action-within) {\n ", " {\n &:hover {\n box-shadow: ", ";\n }\n\n &:active, &.active-state {\n box-shadow: ", ";\n }\n }\n }\n }\n\n &.disabled {\n cursor: not-allowed;\n ", "{\n border: 1px solid ", ";\n }\n }\n"])), focusStyles, CardTopLevelContainerStyles, COLORS.primary_20, COLORS.primary_100, CardTopLevelContainerStyles, BOXSHADOWS.BOXSHADOW_L3, BOXSHADOWS.BOXSHADOW_L2, CardTopLevelContainerStyles, COLORS.neutral_100);
44
+ var Card = function (_a) {
45
+ var onCardClicked = _a.onCardClicked, topSectionProps = _a.topSectionProps, middleSectionProps = _a.middleSectionProps, bottomSectionProps = _a.bottomSectionProps, disabled = _a.disabled, _b = _a.variant, variant = _b === void 0 ? 'elevated' : _b, className = _a.className, _c = _a.maxWidth, maxWidth = _c === void 0 ? 560 : _c, rest = __rest(_a, ["onCardClicked", "topSectionProps", "middleSectionProps", "bottomSectionProps", "disabled", "variant", "className", "maxWidth"]);
46
+ var _d = React.useState([]), actionsRefs = _d[0], setActionsRefs = _d[1];
47
+ var checkBoxRef = React.useRef(null);
48
+ var containerRef = React.useRef(null);
49
+ useActionWithin(containerRef, __spreadArray(__spreadArray([], actionsRefs, true), [checkBoxRef], false));
50
+ var cls = "".concat(!!onCardClicked ? 'interactive' : '', " ").concat(disabled ? 'disabled' : '', " ").concat(variant, " ").concat(className || '');
51
+ return (React.createElement(CardContainerStyles, __assign({ ref: containerRef, className: cls, tabIndex: !!onCardClicked && !disabled ? 0 : -1, onMouseDown: defaultOnMouseDownHandler, onKeyDown: function (a) { return a.key === 'Enter' && !disabled && onCardClicked && onCardClicked(); }, onClick: function (e) { return !disabled && onCardClicked && onCardClicked(); }, "data-testid": 'card-wrapper' }, rest),
52
+ React.createElement(CardTopLevelContainerStyles, { style: { maxWidth: maxWidth } },
53
+ topSectionProps &&
54
+ React.createElement(CardTopSection, __assign({ ref: checkBoxRef }, topSectionProps, { disabled: disabled })),
55
+ middleSectionProps &&
56
+ React.createElement(CardMiddleSection, __assign({}, middleSectionProps, { disabled: disabled })),
57
+ bottomSectionProps &&
58
+ React.createElement(CardBottomSection, __assign({ ref: function (instance) { return setActionsRefs(instance !== null && instance !== void 0 ? instance : []); } }, bottomSectionProps, { disabled: disabled })))));
59
+ };
60
+ export default Card;
61
+ var templateObject_1, templateObject_2;
@@ -0,0 +1,45 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ import * as React from 'react';
6
+ import styled from 'styled-components';
7
+ import { COLORS, ComponentTextStyle, ComponentXXS, LinearProgress, LinearProgressType, LinearProgressVariant, Size } from '../../index';
8
+ import { IconButton } from '../../Button';
9
+ export var CardBottomSectionProgressStyles = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 8px 0;\n"], ["\n padding: 8px 0;\n"])));
10
+ export var CardBottomSectionNotesStyles = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 48px;\n position: relative;\n color: ", ";\n display: flex;\n flex-direction: row;\n align-items: center;\n"], ["\n height: 48px;\n position: relative;\n color: ", ";\n display: flex;\n flex-direction: row;\n align-items: center;\n"])), COLORS.neutral_500);
11
+ export var CardBottomSectionAuthorStyles = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n align-items: center;\n height: 48px;\n\n div:first-child {\n flex-grow: 2;\n }\n\n svg, img {\n width: 80px;\n flex-grow: 0;\n flex-shrink: 0;\n }\n\n ", "\n"], ["\n display: flex;\n flex-direction: row;\n align-items: center;\n height: 48px;\n\n div:first-child {\n flex-grow: 2;\n }\n\n svg, img {\n width: 80px;\n flex-grow: 0;\n flex-shrink: 0;\n }\n\n ", "\n"])), function (props) { return props.disabled ? "\n color: ".concat(COLORS.neutral_300, ";\n svg, img {\n filter: grayscale(100%);\n }\n \n ") : ''; });
12
+ export var CardBottomSectionDivider = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border-top: 1px;\n border-top-color: ", ";\n border-top-style: solid;\n width: 100%;\n"], ["\n border-top: 1px;\n border-top-color: ", ";\n border-top-style: solid;\n width: 100%;\n"])), COLORS.neutral_100);
13
+ export var CardBottomSectionNoteLeftStyles = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n position: absolute;\n left: 0px;\n display: flex;\n flex-direction: row;\n align-items: center;\n\n svg {\n margin-right: 4px;\n flex-grow: 0;\n flex-shrink: 0;\n }\n"], ["\n position: absolute;\n left: 0px;\n display: flex;\n flex-direction: row;\n align-items: center;\n\n svg {\n margin-right: 4px;\n flex-grow: 0;\n flex-shrink: 0;\n }\n"])));
14
+ export var CardBottomSectionNoteRightStyles = styled.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n position: absolute;\n right: 0px;\n display: flex;\n flex-direction: row;\n align-items: center;\n\n svg {\n margin-right: 4px;\n flex-grow: 0;\n flex-shrink: 0;\n }\n"], ["\n position: absolute;\n right: 0px;\n display: flex;\n flex-direction: row;\n align-items: center;\n\n svg {\n margin-right: 4px;\n flex-grow: 0;\n flex-shrink: 0;\n }\n"])));
15
+ export var CardBottomSectionButtonRowContainerStyles = styled.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n align-items: center;\n border-top: 1px;\n border-top-color: ", ";\n border-top-style: solid;\n\n button:last-child {\n margin: 8px 0px 0px 0px;\n }\n\n button:not(:last-child) {\n margin: 8px 0px 0px 0px;\n }\n\n svg {\n color: ", ";\n }\n"], ["\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n align-items: center;\n border-top: 1px;\n border-top-color: ", ";\n border-top-style: solid;\n\n button:last-child {\n margin: 8px 0px 0px 0px;\n }\n\n button:not(:last-child) {\n margin: 8px 0px 0px 0px;\n }\n\n svg {\n color: ", ";\n }\n"])), COLORS.neutral_100, COLORS.neutral_600);
16
+ export var CardBottomSectionContainer = styled.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n padding: 0px 16px 8px 16px;\n width: calc(100% - 32px);\n"], ["\n padding: 0px 16px 8px 16px;\n width: calc(100% - 32px);\n"])));
17
+ var CardBottomSection = React.forwardRef(function (_a, ref) {
18
+ var progressLevel = _a.progressLevel, progressMax = _a.progressMax, _b = _a.progressType, progressType = _b === void 0 ? LinearProgressType.Line : _b, noteLeft = _a.noteLeft, noteLeftIcon = _a.noteLeftIcon, noteRight = _a.noteRight, noteRightIcon = _a.noteRightIcon, authorName = _a.authorName, logo = _a.logo, actions = _a.actions, disabled = _a.disabled;
19
+ var _c = React.useState([]), elRefs = _c[0], setElRefs = _c[1];
20
+ var length = (actions === null || actions === void 0 ? void 0 : actions.length) || 0;
21
+ React.useEffect(function () {
22
+ setElRefs(Array(length || 0).fill(null).map(function () { return React.createRef(); }));
23
+ }, [length]);
24
+ React.useImperativeHandle(ref, function () { return elRefs; }, [elRefs]);
25
+ var haveAtLeastSomething = progressLevel != undefined || noteLeft || noteLeftIcon || noteRight || noteRightIcon || authorName;
26
+ return (React.createElement(CardBottomSectionContainer, { "data-testid": 'card-bottomSection' },
27
+ haveAtLeastSomething && React.createElement(CardBottomSectionDivider, null),
28
+ progressLevel != undefined && React.createElement(CardBottomSectionProgressStyles, null,
29
+ React.createElement(LinearProgress, { size: Size.Small, type: progressType, variant: LinearProgressVariant.Normal, value: progressLevel, max: progressMax !== null && progressMax !== void 0 ? progressMax : progressLevel })),
30
+ (noteLeft || noteLeftIcon || noteRight || noteRightIcon) && React.createElement(CardBottomSectionNotesStyles, null,
31
+ (noteLeft || noteLeftIcon) && (React.createElement(CardBottomSectionNoteLeftStyles, null,
32
+ noteLeftIcon,
33
+ React.createElement(ComponentXXS, { color: COLORS.neutral_500, textStyle: ComponentTextStyle.Bold }, noteLeft))),
34
+ (noteRight || noteRightIcon) && (React.createElement(CardBottomSectionNoteRightStyles, null,
35
+ noteRightIcon,
36
+ React.createElement(ComponentXXS, { color: COLORS.neutral_500, textStyle: ComponentTextStyle.Bold }, noteRight)))),
37
+ (authorName || logo) && React.createElement(CardBottomSectionAuthorStyles, { disabled: disabled, "data-testid": 'card-bottomSection-author' },
38
+ React.createElement(ComponentXXS, null, authorName),
39
+ logo),
40
+ actions && React.createElement(CardBottomSectionButtonRowContainerStyles, null, actions.map(function (x, index) { return (React.createElement(IconButton, { ref: elRefs[index], key: index, disabled: disabled, variant: "secondary", shape: "circular", action: function (e) {
41
+ x.onClick();
42
+ } }, x.icon)); }))));
43
+ });
44
+ export default CardBottomSection;
45
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
@@ -0,0 +1,32 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ import * as React from 'react';
6
+ import styled from 'styled-components';
7
+ import { COLORS, ComponentS, ComponentTextStyle, ComponentXL, Tag } from '../../index';
8
+ export var CardMiddleSectionContainer = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-grow: 1;\n width: calc(100% - 32px);\n position: relative;\n flex-direction: column;\n padding: 16px;\n gap: 8px;\n\n .descriptionBlock {\n padding: 2px 0;\n }\n\n .titleBlock {\n padding: 2px 0;\n }\n"], ["\n display: flex;\n flex-grow: 1;\n width: calc(100% - 32px);\n position: relative;\n flex-direction: column;\n padding: 16px;\n gap: 8px;\n\n .descriptionBlock {\n padding: 2px 0;\n }\n\n .titleBlock {\n padding: 2px 0;\n }\n"])));
9
+ export var CardMiddleSectionColorBandStyles = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: absolute;\n width: 100%;\n top: 0px;\n left: 0px;\n height: 8px;\n background-color: ", ";\n"], ["\n position: absolute;\n width: 100%;\n top: 0px;\n left: 0px;\n height: 8px;\n background-color: ", ";\n"])), function (props) { return props.$color; });
10
+ export var CardMiddleSectionTagsStyles = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n padding: 4px 0;\n gap: 4px;\n flex-wrap: wrap;\n"], ["\n display: flex;\n flex-direction: row;\n padding: 4px 0;\n gap: 4px;\n flex-wrap: wrap;\n"])));
11
+ export var CardMiddleSectionCategoryStyles = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: none;\n gap: 6px;\n\n svg {\n color: ", ";\n flex-grow: 0;\n flex-shrink: 0;\n }\n"], ["\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: none;\n gap: 6px;\n\n svg {\n color: ", ";\n flex-grow: 0;\n flex-shrink: 0;\n }\n"])), COLORS.neutral_500);
12
+ var CardMiddleSection = function (_a) {
13
+ var colorBandColor = _a.colorBandColor, categoryIcon = _a.categoryIcon, categoryLabel = _a.categoryLabel, title = _a.title, description = _a.description, tags = _a.tags, row2Tags = _a.row2Tags, disabled = _a.disabled;
14
+ return (React.createElement(CardMiddleSectionContainer, { "data-testid": 'card-middleSection' },
15
+ colorBandColor && React.createElement(CardMiddleSectionColorBandStyles, { "$color": colorBandColor }),
16
+ (categoryIcon || categoryLabel) &&
17
+ React.createElement(CardMiddleSectionCategoryStyles, { extraTopMargin: Boolean(colorBandColor), bottomMargin: Boolean(categoryIcon || categoryLabel) },
18
+ categoryIcon,
19
+ React.createElement(ComponentS, { textStyle: ComponentTextStyle.Bold, color: COLORS.neutral_500 }, categoryLabel)),
20
+ React.createElement(ComponentXL, { className: "titleBlock", textStyle: ComponentTextStyle.Bold, color: disabled ? COLORS.neutral_500 : COLORS.black }, title),
21
+ description && (React.createElement(ComponentS, { className: "descriptionBlock", color: COLORS.neutral_600 }, description)),
22
+ tags && (React.createElement(CardMiddleSectionTagsStyles, null, tags.map(function (x, index) {
23
+ var _a;
24
+ return (React.createElement(Tag, { key: "".concat(x.label, "_").concat(index), label: x.label, variant: (_a = x.variant) !== null && _a !== void 0 ? _a : 'neutral', icon: x.icon }));
25
+ }))),
26
+ row2Tags && (React.createElement(CardMiddleSectionTagsStyles, null, row2Tags.map(function (x, index) {
27
+ var _a;
28
+ return (React.createElement(Tag, { key: "".concat(x.label, "_").concat(index), label: x.label, variant: (_a = x.variant) !== null && _a !== void 0 ? _a : 'neutral', icon: x.icon }));
29
+ })))));
30
+ };
31
+ export default CardMiddleSection;
32
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
@@ -0,0 +1,33 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ import * as React from 'react';
6
+ import styled from 'styled-components';
7
+ import { ComponentS, ComponentTextStyle } from '../../styles/typography';
8
+ import Checkbox from '../../InputFields/Checkbox';
9
+ import { Tag } from '../../Tag';
10
+ import { COLORS } from '../../index';
11
+ import { ImageWithFallbacks } from "../../Image";
12
+ export var CardTopSectionImageContainer = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-top-right-radius: 8px;\n border-top-left-radius: 8px;\n height: 100%;\n width: 100%;\n img{\n object-fit: cover;\n width: 100%;\n height: 100%;\n border-top-right-radius: 8px;\n border-top-left-radius: 8px;\n }\n"], ["\n border-top-right-radius: 8px;\n border-top-left-radius: 8px;\n height: 100%;\n width: 100%;\n img{\n object-fit: cover;\n width: 100%;\n height: 100%;\n border-top-right-radius: 8px;\n border-top-left-radius: 8px;\n }\n"])));
13
+ export var CardTopSectionTagContainer = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: absolute;\n\n top: 16px;\n left: 16px;\n width: calc(100% - 32px);\n"], ["\n position: absolute;\n\n top: 16px;\n left: 16px;\n width: calc(100% - 32px);\n"])));
14
+ export var CardTopSectionContainer = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: relative;\n width: 100%;\n overflow: visible;\n\n ", "\n"], ["\n position: relative;\n width: 100%;\n overflow: visible;\n\n ", "\n"])), function (props) { return props.disabled ? "\n img, svg {\n filter: grayscale(100%);\n }" : ''; });
15
+ export var CardTopSectionRibbonContainer = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n min-height: calc(40px - 16px);\n background-color: ", ";\n width: calc(100% - 32px);\n position: absolute;\n bottom: 0px;\n left: 0px;\n padding: 8px 16px 8px 16px;\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 8px;\n\n svg {\n color: ", ";\n width: 24px;\n height: 24px;\n flex-grow: 0;\n flex-shrink: 0;\n }\n"], ["\n min-height: calc(40px - 16px);\n background-color: ", ";\n width: calc(100% - 32px);\n position: absolute;\n bottom: 0px;\n left: 0px;\n padding: 8px 16px 8px 16px;\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 8px;\n\n svg {\n color: ", ";\n width: 24px;\n height: 24px;\n flex-grow: 0;\n flex-shrink: 0;\n }\n"])), function (props) { return props.$backgroundColor; }, function (props) { return props.$color; });
16
+ export var CardTopSectionCheckboxContainer = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n position: absolute;\n top: 0;\n right: 0;\n z-index: 1;\n\n .checkbox-icon {\n background-color: ", ";\n }\n"], ["\n position: absolute;\n top: 0;\n right: 0;\n z-index: 1;\n\n .checkbox-icon {\n background-color: ", ";\n }\n"])), COLORS.white);
17
+ var CardTopSection = React.forwardRef(function (_a, ref) {
18
+ var _b, _c, _d;
19
+ var selected = _a.selected, setSelected = _a.setSelected, image = _a.image, tagLabel = _a.tagLabel, tagIcon = _a.tagIcon, _e = _a.tagVariant, tagVariant = _e === void 0 ? 'positive' : _e, highlightRibbonIcon = _a.highlightRibbonIcon, highlightRibbonText = _a.highlightRibbonText, highlightRibbonContentColor = _a.highlightRibbonContentColor, highlightRibbonBgColor = _a.highlightRibbonBgColor, disabled = _a.disabled;
20
+ return (React.createElement(CardTopSectionContainer, { disabled: disabled, "data-testid": 'card-topSection', style: { height: (_b = image === null || image === void 0 ? void 0 : image.height) !== null && _b !== void 0 ? _b : 200 } },
21
+ image &&
22
+ React.createElement(CardTopSectionImageContainer, null,
23
+ React.createElement(ImageWithFallbacks, { fallbacks: (_c = image.fallbackSrc) !== null && _c !== void 0 ? _c : '', src: image.src, alt: image.alt, loader: (_d = image.loader) !== null && _d !== void 0 ? _d : false, width: image.width, height: image.height })),
24
+ (!!selected || !!setSelected) && (React.createElement(CardTopSectionCheckboxContainer, { "data-testid": 'card-topSection-checkbox' },
25
+ React.createElement(Checkbox, { ref: ref, disabled: disabled, select: function (selected) { return setSelected && setSelected(selected); }, selected: selected || false }))),
26
+ (tagLabel || tagIcon) && (React.createElement(CardTopSectionTagContainer, null,
27
+ React.createElement(Tag, { label: tagLabel, variant: tagVariant, icon: tagIcon }))),
28
+ (highlightRibbonIcon || highlightRibbonText) && (React.createElement(CardTopSectionRibbonContainer, { "data-testid": 'card-topSection-ribbon', "$color": highlightRibbonContentColor !== null && highlightRibbonContentColor !== void 0 ? highlightRibbonContentColor : '', "$backgroundColor": disabled ? COLORS.neutral_300 : highlightRibbonBgColor !== null && highlightRibbonBgColor !== void 0 ? highlightRibbonBgColor : '' },
29
+ highlightRibbonIcon,
30
+ highlightRibbonText && (React.createElement(ComponentS, { color: highlightRibbonContentColor !== null && highlightRibbonContentColor !== void 0 ? highlightRibbonContentColor : '', textStyle: ComponentTextStyle.Regular }, highlightRibbonText))))));
31
+ });
32
+ export default CardTopSection;
33
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
@@ -0,0 +1,7 @@
1
+ export { default as Card } from './Card';
2
+ export { default as CardBottomSection } from './CardBottomSection';
3
+ export * from './CardBottomSection';
4
+ export { default as CardMiddleSection } from './CardMiddleSection';
5
+ export * from './CardMiddleSection';
6
+ export { default as CardTopSection } from './CardTopSection';
7
+ export * from './CardTopSection';
@@ -0,0 +1,2 @@
1
+ export * from './VerticalCard';
2
+ export * from './HorizontalCard';