@helsenorge/designsystem-react 14.7.3 → 15.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1330) hide show
  1. package/lib/AnchorLink.js +11 -7
  2. package/lib/AnchorLink.js.map +1 -1
  3. package/lib/AsChildSlot.js +8 -4
  4. package/lib/AsChildSlot.js.map +1 -1
  5. package/lib/Avatar.js +16 -10
  6. package/lib/Avatar.js.map +1 -1
  7. package/lib/Badge.js +9 -5
  8. package/lib/Badge.js.map +1 -1
  9. package/lib/Button.js +14 -10
  10. package/lib/Button.js.map +1 -1
  11. package/lib/CHANGELOG.md +26 -10
  12. package/lib/Checkbox.js +12 -11
  13. package/lib/Checkbox.js.map +1 -1
  14. package/lib/Chip.js +17 -10
  15. package/lib/Chip.js.map +1 -1
  16. package/lib/Close.js +12 -8
  17. package/lib/Close.js.map +1 -1
  18. package/lib/DictionaryTrigger.js +7 -3
  19. package/lib/DictionaryTrigger.js.map +1 -1
  20. package/lib/Drawer.js +26 -19
  21. package/lib/Drawer.js.map +1 -1
  22. package/lib/DrawerNavigation.js +9 -4
  23. package/lib/DrawerNavigation.js.map +1 -1
  24. package/lib/Duolist.js +10 -6
  25. package/lib/Duolist.js.map +1 -1
  26. package/lib/ElementHeader.js +15 -12
  27. package/lib/ElementHeader.js.map +1 -1
  28. package/lib/ElementHeaderText.js +7 -5
  29. package/lib/ElementHeaderText.js.map +1 -1
  30. package/lib/{_rolldown_dynamic_import_helper.js → ErrorBoundary.js} +14 -11
  31. package/lib/ErrorBoundary.js.map +1 -0
  32. package/lib/ErrorWrapper.js +7 -3
  33. package/lib/ErrorWrapper.js.map +1 -1
  34. package/lib/Expander.js +20 -14
  35. package/lib/Expander.js.map +1 -1
  36. package/lib/FilterButton.js +11 -7
  37. package/lib/FilterButton.js.map +1 -1
  38. package/lib/FilterButtonAndChipsWrapper.js +6 -2
  39. package/lib/FilterButtonAndChipsWrapper.js.map +1 -1
  40. package/lib/FilterDrawer.js +20 -9
  41. package/lib/FilterDrawer.js.map +1 -1
  42. package/lib/FilterLinkList.js +9 -8
  43. package/lib/FilterLinkList.js.map +1 -1
  44. package/lib/FilterOverviewLinkList.js +9 -5
  45. package/lib/FilterOverviewLinkList.js.map +1 -1
  46. package/lib/FilterOverviewSearch.js +8 -4
  47. package/lib/FilterOverviewSearch.js.map +1 -1
  48. package/lib/FilterResultCountAndSortWrapper.js +6 -2
  49. package/lib/FilterResultCountAndSortWrapper.js.map +1 -1
  50. package/lib/FilterSearch.js +12 -11
  51. package/lib/FilterSearch.js.map +1 -1
  52. package/lib/FilterSort.js +9 -5
  53. package/lib/FilterSort.js.map +1 -1
  54. package/lib/FilterStateWrapper.js +6 -2
  55. package/lib/FilterStateWrapper.js.map +1 -1
  56. package/lib/FormFieldTag.js +12 -5
  57. package/lib/FormFieldTag.js.map +1 -1
  58. package/lib/FormGroup.js +14 -13
  59. package/lib/FormGroup.js.map +1 -1
  60. package/lib/FormLayout.js +17 -11
  61. package/lib/FormLayout.js.map +1 -1
  62. package/lib/HN.Designsystem.Dropdown.nb-NO.js +1 -0
  63. package/lib/HelpDetails.js +3 -2
  64. package/lib/HelpDetails.js.map +1 -1
  65. package/lib/HelpTriggerIcon.js +15 -10
  66. package/lib/HelpTriggerIcon.js.map +1 -1
  67. package/lib/HelpTriggerStandalone.js +11 -7
  68. package/lib/HelpTriggerStandalone.js.map +1 -1
  69. package/lib/HighlightPanel.js +9 -5
  70. package/lib/HighlightPanel.js.map +1 -1
  71. package/lib/Highlighter.js +10 -6
  72. package/lib/Highlighter.js.map +1 -1
  73. package/lib/HorizontalScroll.js +10 -6
  74. package/lib/HorizontalScroll.js.map +1 -1
  75. package/lib/Icon.js +6 -2
  76. package/lib/Icon.js.map +1 -1
  77. package/lib/Illustration.js +8 -4
  78. package/lib/Illustration.js.map +1 -1
  79. package/lib/InfoTeaser.js +13 -6
  80. package/lib/InfoTeaser.js.map +1 -1
  81. package/lib/Input.js +30 -25
  82. package/lib/Input.js.map +1 -1
  83. package/lib/LazyIcon.js +16 -10
  84. package/lib/LazyIcon.js.map +1 -1
  85. package/lib/LazyIllustration.js +16 -12
  86. package/lib/LazyIllustration.js.map +1 -1
  87. package/lib/LinkList.js +19 -12
  88. package/lib/LinkList.js.map +1 -1
  89. package/lib/List.js +7 -3
  90. package/lib/List.js.map +1 -1
  91. package/lib/ListEditMode.js +14 -9
  92. package/lib/ListEditMode.js.map +1 -1
  93. package/lib/MaxCharacters.js +5 -5
  94. package/lib/MaxCharacters.js.map +1 -1
  95. package/lib/NotificationBadge.js +12 -11
  96. package/lib/NotificationBadge.js.map +1 -1
  97. package/lib/PanelTitle.js +7 -3
  98. package/lib/PanelTitle.js.map +1 -1
  99. package/lib/PopOver.js +15 -9
  100. package/lib/PopOver.js.map +1 -1
  101. package/lib/Select.js +13 -9
  102. package/lib/Select.js.map +1 -1
  103. package/lib/SingleSelectItem.js +8 -5
  104. package/lib/SingleSelectItem.js.map +1 -1
  105. package/lib/Slider.js +30 -26
  106. package/lib/Slider.js.map +1 -1
  107. package/lib/Spacer.js +7 -3
  108. package/lib/Spacer.js.map +1 -1
  109. package/lib/StatusDot.js +36 -30
  110. package/lib/StatusDot.js.map +1 -1
  111. package/lib/StatusDotList.js +7 -3
  112. package/lib/StatusDotList.js.map +1 -1
  113. package/lib/StepButtons.js +8 -4
  114. package/lib/StepButtons.js.map +1 -1
  115. package/lib/TabList.js +29 -22
  116. package/lib/TabList.js.map +1 -1
  117. package/lib/TabPanel.js +6 -2
  118. package/lib/TabPanel.js.map +1 -1
  119. package/lib/TableBody.js +10 -6
  120. package/lib/TableBody.js.map +1 -1
  121. package/lib/TableCell.js +10 -6
  122. package/lib/TableCell.js.map +1 -1
  123. package/lib/TableExpandedRow.js +14 -10
  124. package/lib/TableExpandedRow.js.map +1 -1
  125. package/lib/TableExpanderCell.js +13 -11
  126. package/lib/TableExpanderCell.js.map +1 -1
  127. package/lib/TableHead.js +14 -10
  128. package/lib/TableHead.js.map +1 -1
  129. package/lib/TableHeadCell.js +17 -13
  130. package/lib/TableHeadCell.js.map +1 -1
  131. package/lib/TableRow.js +19 -14
  132. package/lib/TableRow.js.map +1 -1
  133. package/lib/Textarea.js +18 -11
  134. package/lib/Textarea.js.map +1 -1
  135. package/lib/Title.js +8 -5
  136. package/lib/Title.js.map +1 -1
  137. package/lib/Toast.js +7 -6
  138. package/lib/Toast.js.map +1 -1
  139. package/lib/__mocks__/IntersectionObserver.js +3 -2
  140. package/lib/__mocks__/IntersectionObserver.js.map +1 -1
  141. package/lib/__mocks__/MutationObserver.js +3 -2
  142. package/lib/__mocks__/MutationObserver.js.map +1 -1
  143. package/lib/__mocks__/ResizeObserver.js +3 -2
  144. package/lib/__mocks__/ResizeObserver.js.map +1 -1
  145. package/lib/__mocks__/matchMedia.js +3 -1
  146. package/lib/__mocks__/matchMedia.js.map +1 -1
  147. package/lib/__mocks__/useLayoutEvent.js +2 -0
  148. package/lib/__mocks__/useLayoutEvent.js.map +1 -1
  149. package/lib/__mocks__/useOutsideEvent.js +2 -0
  150. package/lib/__mocks__/useOutsideEvent.js.map +1 -1
  151. package/lib/__mocks__/usePseudoClasses.js +2 -0
  152. package/lib/__mocks__/usePseudoClasses.js.map +1 -1
  153. package/lib/__mocks__/useSize.js +2 -0
  154. package/lib/__mocks__/useSize.js.map +1 -1
  155. package/lib/__mocks__/uuid.js +6 -1
  156. package/lib/__mocks__/uuid.js.map +1 -1
  157. package/lib/components/ArticleTeaser/index.js +10 -3
  158. package/lib/components/ArticleTeaser/index.js.map +1 -1
  159. package/lib/components/Checkbox/index.js +5 -1
  160. package/lib/components/Checkbox/index.js.map +1 -0
  161. package/lib/components/Chip/Chip.d.ts +0 -2
  162. package/lib/components/Dropdown/SingleSelect/index.js +4 -2
  163. package/lib/components/Dropdown/SingleSelect/index.js.map +1 -1
  164. package/lib/components/Dropdown/index.js +27 -19
  165. package/lib/components/Dropdown/index.js.map +1 -1
  166. package/lib/components/DropdownOld/index.js +25 -17
  167. package/lib/components/DropdownOld/index.js.map +1 -1
  168. package/lib/components/ElementHeader/index.js +4 -2
  169. package/lib/components/ElementHeader/index.js.map +1 -1
  170. package/lib/components/EmptyState/index.js +23 -17
  171. package/lib/components/EmptyState/index.js.map +1 -1
  172. package/lib/components/ExpanderHierarchy/index.js +23 -16
  173. package/lib/components/ExpanderHierarchy/index.js.map +1 -1
  174. package/lib/components/ExpanderList/index.js +13 -9
  175. package/lib/components/ExpanderList/index.js.map +1 -1
  176. package/lib/components/EyebrowHeader/index.js +6 -2
  177. package/lib/components/EyebrowHeader/index.js.map +1 -1
  178. package/lib/components/FavoriteButton/index.js +20 -11
  179. package/lib/components/FavoriteButton/index.js.map +1 -1
  180. package/lib/components/Filter/DrawerNavigation/index.js +6 -2
  181. package/lib/components/Filter/DrawerNavigation/index.js.map +1 -0
  182. package/lib/components/Filter/FilterLinkList/index.js +6 -2
  183. package/lib/components/Filter/FilterLinkList/index.js.map +1 -0
  184. package/lib/components/Filter/FilterSearch/index.js +6 -1
  185. package/lib/components/Filter/FilterSearch/index.js.map +1 -0
  186. package/lib/components/Filter/index.js +50 -12
  187. package/lib/components/Filter/index.js.map +1 -1
  188. package/lib/components/FormGroup/index.js +4 -2
  189. package/lib/components/FormGroup/index.js.map +1 -1
  190. package/lib/components/HelpBubble/index.js +11 -4
  191. package/lib/components/HelpBubble/index.js.map +1 -1
  192. package/lib/components/HelpDrawer/index.js +10 -3
  193. package/lib/components/HelpDrawer/index.js.map +1 -1
  194. package/lib/components/HelpExpanderInline/index.js +8 -4
  195. package/lib/components/HelpExpanderInline/index.js.map +1 -1
  196. package/lib/components/HelpExpanderStandalone/index.js +14 -10
  197. package/lib/components/HelpExpanderStandalone/index.js.map +1 -1
  198. package/lib/components/HelpPanel/index.js +6 -2
  199. package/lib/components/HelpPanel/index.js.map +1 -1
  200. package/lib/components/HelpTeaser/index.js +6 -2
  201. package/lib/components/HelpTeaser/index.js.map +1 -1
  202. package/lib/components/HelpTooltip/index.js +6 -2
  203. package/lib/components/HelpTooltip/index.js.map +1 -1
  204. package/lib/components/HelpTriggerInline/index.js +8 -4
  205. package/lib/components/HelpTriggerInline/index.js.map +1 -1
  206. package/lib/components/Icon/index.js +1 -1
  207. package/lib/components/Icons/ActiveMonitoring.js +3 -2
  208. package/lib/components/Icons/ActiveMonitoring.js.map +1 -1
  209. package/lib/components/Icons/AcupunctureBack.js +4 -3
  210. package/lib/components/Icons/AcupunctureBack.js.map +1 -1
  211. package/lib/components/Icons/AdditionalIconInformation.js +2 -0
  212. package/lib/components/Icons/AdditionalIconInformation.js.map +1 -1
  213. package/lib/components/Icons/AlarmClock.js +3 -2
  214. package/lib/components/Icons/AlarmClock.js.map +1 -1
  215. package/lib/components/Icons/AlertSignFill.js +17 -2
  216. package/lib/components/Icons/AlertSignFill.js.map +1 -0
  217. package/lib/components/Icons/AlertSignStroke.js +17 -2
  218. package/lib/components/Icons/AlertSignStroke.js.map +1 -0
  219. package/lib/components/Icons/Amputation.js +3 -2
  220. package/lib/components/Icons/Amputation.js.map +1 -1
  221. package/lib/components/Icons/Anxiety.js +3 -2
  222. package/lib/components/Icons/Anxiety.js.map +1 -1
  223. package/lib/components/Icons/Apple.js +3 -2
  224. package/lib/components/Icons/Apple.js.map +1 -1
  225. package/lib/components/Icons/Archive.js +3 -2
  226. package/lib/components/Icons/Archive.js.map +1 -1
  227. package/lib/components/Icons/ArmFlexing.js +3 -2
  228. package/lib/components/Icons/ArmFlexing.js.map +1 -1
  229. package/lib/components/Icons/ArrowDown.js +29 -2
  230. package/lib/components/Icons/ArrowDown.js.map +1 -0
  231. package/lib/components/Icons/ArrowLeft.js +3 -2
  232. package/lib/components/Icons/ArrowLeft.js.map +1 -1
  233. package/lib/components/Icons/ArrowRight.js +17 -2
  234. package/lib/components/Icons/ArrowRight.js.map +1 -0
  235. package/lib/components/Icons/ArrowUp.js +29 -2
  236. package/lib/components/Icons/ArrowUp.js.map +1 -0
  237. package/lib/components/Icons/ArrowUpRight.js +17 -2
  238. package/lib/components/Icons/ArrowUpRight.js.map +1 -0
  239. package/lib/components/Icons/Attachment.js +3 -2
  240. package/lib/components/Icons/Attachment.js.map +1 -1
  241. package/lib/components/Icons/Atv.js +3 -2
  242. package/lib/components/Icons/Atv.js.map +1 -1
  243. package/lib/components/Icons/Avatar.js +3 -2
  244. package/lib/components/Icons/Avatar.js.map +1 -1
  245. package/lib/components/Icons/AwakePersonOnPillow.js +3 -2
  246. package/lib/components/Icons/AwakePersonOnPillow.js.map +1 -1
  247. package/lib/components/Icons/Baby.js +3 -2
  248. package/lib/components/Icons/Baby.js.map +1 -1
  249. package/lib/components/Icons/BandAid.js +3 -2
  250. package/lib/components/Icons/BandAid.js.map +1 -1
  251. package/lib/components/Icons/BeerAndPills.js +3 -2
  252. package/lib/components/Icons/BeerAndPills.js.map +1 -1
  253. package/lib/components/Icons/Bell.js +3 -2
  254. package/lib/components/Icons/Bell.js.map +1 -1
  255. package/lib/components/Icons/Bike.js +3 -2
  256. package/lib/components/Icons/Bike.js.map +1 -1
  257. package/lib/components/Icons/BirthControl.js +3 -2
  258. package/lib/components/Icons/BirthControl.js.map +1 -1
  259. package/lib/components/Icons/BirthdayCake.js +3 -2
  260. package/lib/components/Icons/BirthdayCake.js.map +1 -1
  261. package/lib/components/Icons/Boat.js +3 -2
  262. package/lib/components/Icons/Boat.js.map +1 -1
  263. package/lib/components/Icons/Body.js +3 -2
  264. package/lib/components/Icons/Body.js.map +1 -1
  265. package/lib/components/Icons/Braille.js +3 -2
  266. package/lib/components/Icons/Braille.js.map +1 -1
  267. package/lib/components/Icons/Brain.js +3 -2
  268. package/lib/components/Icons/Brain.js.map +1 -1
  269. package/lib/components/Icons/BreastReconstruction.js +3 -2
  270. package/lib/components/Icons/BreastReconstruction.js.map +1 -1
  271. package/lib/components/Icons/BreastRemoval.js +3 -2
  272. package/lib/components/Icons/BreastRemoval.js.map +1 -1
  273. package/lib/components/Icons/Breasts.js +3 -2
  274. package/lib/components/Icons/Breasts.js.map +1 -1
  275. package/lib/components/Icons/BrokenHeart.js +3 -2
  276. package/lib/components/Icons/BrokenHeart.js.map +1 -1
  277. package/lib/components/Icons/BrokenPuzzle.js +3 -2
  278. package/lib/components/Icons/BrokenPuzzle.js.map +1 -1
  279. package/lib/components/Icons/Bus.js +3 -2
  280. package/lib/components/Icons/Bus.js.map +1 -1
  281. package/lib/components/Icons/Calendar.js +3 -2
  282. package/lib/components/Icons/Calendar.js.map +1 -1
  283. package/lib/components/Icons/CalendarChange.js +3 -2
  284. package/lib/components/Icons/CalendarChange.js.map +1 -1
  285. package/lib/components/Icons/CalendarCheck.js +3 -2
  286. package/lib/components/Icons/CalendarCheck.js.map +1 -1
  287. package/lib/components/Icons/CalendarEvent.js +3 -2
  288. package/lib/components/Icons/CalendarEvent.js.map +1 -1
  289. package/lib/components/Icons/CalendarSave.js +3 -2
  290. package/lib/components/Icons/CalendarSave.js.map +1 -1
  291. package/lib/components/Icons/Cancer.js +3 -2
  292. package/lib/components/Icons/Cancer.js.map +1 -1
  293. package/lib/components/Icons/Candle.js +3 -2
  294. package/lib/components/Icons/Candle.js.map +1 -1
  295. package/lib/components/Icons/Car.js +3 -2
  296. package/lib/components/Icons/Car.js.map +1 -1
  297. package/lib/components/Icons/Carton.js +3 -2
  298. package/lib/components/Icons/Carton.js.map +1 -1
  299. package/lib/components/Icons/Change.js +3 -2
  300. package/lib/components/Icons/Change.js.map +1 -1
  301. package/lib/components/Icons/Check.js +17 -2
  302. package/lib/components/Icons/Check.js.map +1 -0
  303. package/lib/components/Icons/CheckFill.js +29 -2
  304. package/lib/components/Icons/CheckFill.js.map +1 -0
  305. package/lib/components/Icons/CheckOutline.js +15 -2
  306. package/lib/components/Icons/CheckOutline.js.map +1 -0
  307. package/lib/components/Icons/Chest.js +3 -2
  308. package/lib/components/Icons/Chest.js.map +1 -1
  309. package/lib/components/Icons/ChevronDown.js +17 -2
  310. package/lib/components/Icons/ChevronDown.js.map +1 -0
  311. package/lib/components/Icons/ChevronLeft.js +17 -2
  312. package/lib/components/Icons/ChevronLeft.js.map +1 -0
  313. package/lib/components/Icons/ChevronRight.js +17 -2
  314. package/lib/components/Icons/ChevronRight.js.map +1 -0
  315. package/lib/components/Icons/ChevronUp.js +17 -2
  316. package/lib/components/Icons/ChevronUp.js.map +1 -0
  317. package/lib/components/Icons/ChevronsDown.js +3 -2
  318. package/lib/components/Icons/ChevronsDown.js.map +1 -1
  319. package/lib/components/Icons/ChevronsUp.js +3 -2
  320. package/lib/components/Icons/ChevronsUp.js.map +1 -1
  321. package/lib/components/Icons/ChildPlaying.js +3 -2
  322. package/lib/components/Icons/ChildPlaying.js.map +1 -1
  323. package/lib/components/Icons/Cigarette.js +3 -2
  324. package/lib/components/Icons/Cigarette.js.map +1 -1
  325. package/lib/components/Icons/Coins.js +3 -2
  326. package/lib/components/Icons/Coins.js.map +1 -1
  327. package/lib/components/Icons/Contacts.js +3 -2
  328. package/lib/components/Icons/Contacts.js.map +1 -1
  329. package/lib/components/Icons/Copy.js +3 -2
  330. package/lib/components/Icons/Copy.js.map +1 -1
  331. package/lib/components/Icons/CoronaCertificate.js +3 -2
  332. package/lib/components/Icons/CoronaCertificate.js.map +1 -1
  333. package/lib/components/Icons/Coronavirus.js +3 -2
  334. package/lib/components/Icons/Coronavirus.js.map +1 -1
  335. package/lib/components/Icons/Cough.js +3 -2
  336. package/lib/components/Icons/Cough.js.map +1 -1
  337. package/lib/components/Icons/CreditCard.js +3 -2
  338. package/lib/components/Icons/CreditCard.js.map +1 -1
  339. package/lib/components/Icons/CriticalHealthInfo.js +3 -2
  340. package/lib/components/Icons/CriticalHealthInfo.js.map +1 -1
  341. package/lib/components/Icons/Cross.js +3 -2
  342. package/lib/components/Icons/Cross.js.map +1 -1
  343. package/lib/components/Icons/DataExchange.js +3 -2
  344. package/lib/components/Icons/DataExchange.js.map +1 -1
  345. package/lib/components/Icons/DataReceived.js +3 -2
  346. package/lib/components/Icons/DataReceived.js.map +1 -1
  347. package/lib/components/Icons/DataSent.js +3 -2
  348. package/lib/components/Icons/DataSent.js.map +1 -1
  349. package/lib/components/Icons/Depression.js +3 -2
  350. package/lib/components/Icons/Depression.js.map +1 -1
  351. package/lib/components/Icons/DigestiveSystem.js +3 -2
  352. package/lib/components/Icons/DigestiveSystem.js.map +1 -1
  353. package/lib/components/Icons/Dizzy.js +3 -2
  354. package/lib/components/Icons/Dizzy.js.map +1 -1
  355. package/lib/components/Icons/Documents.js +3 -2
  356. package/lib/components/Icons/Documents.js.map +1 -1
  357. package/lib/components/Icons/Dog.js +3 -2
  358. package/lib/components/Icons/Dog.js.map +1 -1
  359. package/lib/components/Icons/DonorCard.js +3 -2
  360. package/lib/components/Icons/DonorCard.js.map +1 -1
  361. package/lib/components/Icons/DotAttachment.js +3 -2
  362. package/lib/components/Icons/DotAttachment.js.map +1 -1
  363. package/lib/components/Icons/DotCheckmark.js +3 -2
  364. package/lib/components/Icons/DotCheckmark.js.map +1 -1
  365. package/lib/components/Icons/DotCircleArrows.js +3 -2
  366. package/lib/components/Icons/DotCircleArrows.js.map +1 -1
  367. package/lib/components/Icons/DotDot.js +3 -2
  368. package/lib/components/Icons/DotDot.js.map +1 -1
  369. package/lib/components/Icons/DotExclamationMark.js +3 -2
  370. package/lib/components/Icons/DotExclamationMark.js.map +1 -1
  371. package/lib/components/Icons/DotFill.js +3 -2
  372. package/lib/components/Icons/DotFill.js.map +1 -1
  373. package/lib/components/Icons/DotGroup.js +3 -2
  374. package/lib/components/Icons/DotGroup.js.map +1 -1
  375. package/lib/components/Icons/DotHalfDisc.js +3 -2
  376. package/lib/components/Icons/DotHalfDisc.js.map +1 -1
  377. package/lib/components/Icons/DotInfo.js +3 -2
  378. package/lib/components/Icons/DotInfo.js.map +1 -1
  379. package/lib/components/Icons/DotLogin.js +3 -2
  380. package/lib/components/Icons/DotLogin.js.map +1 -1
  381. package/lib/components/Icons/DotLookingGlass.js +3 -2
  382. package/lib/components/Icons/DotLookingGlass.js.map +1 -1
  383. package/lib/components/Icons/DotNoAccess.js +3 -2
  384. package/lib/components/Icons/DotNoAccess.js.map +1 -1
  385. package/lib/components/Icons/DotNoEye.js +3 -2
  386. package/lib/components/Icons/DotNoEye.js.map +1 -1
  387. package/lib/components/Icons/DotOutline.js +3 -2
  388. package/lib/components/Icons/DotOutline.js.map +1 -1
  389. package/lib/components/Icons/DotPencil.js +3 -2
  390. package/lib/components/Icons/DotPencil.js.map +1 -1
  391. package/lib/components/Icons/DotQuestionMark.js +3 -2
  392. package/lib/components/Icons/DotQuestionMark.js.map +1 -1
  393. package/lib/components/Icons/DotTriangle.js +3 -2
  394. package/lib/components/Icons/DotTriangle.js.map +1 -1
  395. package/lib/components/Icons/DotX.js +3 -2
  396. package/lib/components/Icons/DotX.js.map +1 -1
  397. package/lib/components/Icons/Download.js +3 -2
  398. package/lib/components/Icons/Download.js.map +1 -1
  399. package/lib/components/Icons/Draft.js +3 -2
  400. package/lib/components/Icons/Draft.js.map +1 -1
  401. package/lib/components/Icons/Drag.js +3 -2
  402. package/lib/components/Icons/Drag.js.map +1 -1
  403. package/lib/components/Icons/EChat.js +3 -2
  404. package/lib/components/Icons/EChat.js.map +1 -1
  405. package/lib/components/Icons/Ear.js +3 -2
  406. package/lib/components/Icons/Ear.js.map +1 -1
  407. package/lib/components/Icons/EarDeaf.js +3 -2
  408. package/lib/components/Icons/EarDeaf.js.map +1 -1
  409. package/lib/components/Icons/EarHearingAid.js +3 -2
  410. package/lib/components/Icons/EarHearingAid.js.map +1 -1
  411. package/lib/components/Icons/EarNoseThroat.js +3 -2
  412. package/lib/components/Icons/EarNoseThroat.js.map +1 -1
  413. package/lib/components/Icons/EarVolume.js +3 -2
  414. package/lib/components/Icons/EarVolume.js.map +1 -1
  415. package/lib/components/Icons/Edit.js +3 -2
  416. package/lib/components/Icons/Edit.js.map +1 -1
  417. package/lib/components/Icons/ElderlyPerson.js +3 -2
  418. package/lib/components/Icons/ElderlyPerson.js.map +1 -1
  419. package/lib/components/Icons/Embolization.js +3 -2
  420. package/lib/components/Icons/Embolization.js.map +1 -1
  421. package/lib/components/Icons/EmergencyCall.js +3 -2
  422. package/lib/components/Icons/EmergencyCall.js.map +1 -1
  423. package/lib/components/Icons/EmoticonAnnoyed.js +3 -2
  424. package/lib/components/Icons/EmoticonAnnoyed.js.map +1 -1
  425. package/lib/components/Icons/EmoticonDelighted.js +3 -2
  426. package/lib/components/Icons/EmoticonDelighted.js.map +1 -1
  427. package/lib/components/Icons/EmoticonDisappointed.js +3 -2
  428. package/lib/components/Icons/EmoticonDisappointed.js.map +1 -1
  429. package/lib/components/Icons/EmoticonHappy.js +3 -2
  430. package/lib/components/Icons/EmoticonHappy.js.map +1 -1
  431. package/lib/components/Icons/EmoticonMeh.js +3 -2
  432. package/lib/components/Icons/EmoticonMeh.js.map +1 -1
  433. package/lib/components/Icons/EmptyBox.js +17 -2
  434. package/lib/components/Icons/EmptyBox.js.map +1 -0
  435. package/lib/components/Icons/EnterFullScreen.js +3 -2
  436. package/lib/components/Icons/EnterFullScreen.js.map +1 -1
  437. package/lib/components/Icons/Envelope.js +3 -2
  438. package/lib/components/Icons/Envelope.js.map +1 -1
  439. package/lib/components/Icons/Epilepsy.js +3 -2
  440. package/lib/components/Icons/Epilepsy.js.map +1 -1
  441. package/lib/components/Icons/Eraser.js +3 -2
  442. package/lib/components/Icons/Eraser.js.map +1 -1
  443. package/lib/components/Icons/ErrorSignFill.js +17 -2
  444. package/lib/components/Icons/ErrorSignFill.js.map +1 -0
  445. package/lib/components/Icons/ErrorSignStroke.js +3 -2
  446. package/lib/components/Icons/ErrorSignStroke.js.map +1 -1
  447. package/lib/components/Icons/EuropeanHealthCard.js +3 -2
  448. package/lib/components/Icons/EuropeanHealthCard.js.map +1 -1
  449. package/lib/components/Icons/ExitFullScreen.js +3 -2
  450. package/lib/components/Icons/ExitFullScreen.js.map +1 -1
  451. package/lib/components/Icons/Eye.js +3 -2
  452. package/lib/components/Icons/Eye.js.map +1 -1
  453. package/lib/components/Icons/Facebook.js +3 -2
  454. package/lib/components/Icons/Facebook.js.map +1 -1
  455. package/lib/components/Icons/FallingLeaf.js +3 -2
  456. package/lib/components/Icons/FallingLeaf.js.map +1 -1
  457. package/lib/components/Icons/Feedback.js +3 -2
  458. package/lib/components/Icons/Feedback.js.map +1 -1
  459. package/lib/components/Icons/Female.js +3 -2
  460. package/lib/components/Icons/Female.js.map +1 -1
  461. package/lib/components/Icons/FemaleDoctor.js +3 -2
  462. package/lib/components/Icons/FemaleDoctor.js.map +1 -1
  463. package/lib/components/Icons/Ferry.js +3 -2
  464. package/lib/components/Icons/Ferry.js.map +1 -1
  465. package/lib/components/Icons/File.js +3 -2
  466. package/lib/components/Icons/File.js.map +1 -1
  467. package/lib/components/Icons/Filter.js +45 -2
  468. package/lib/components/Icons/Filter.js.map +1 -0
  469. package/lib/components/Icons/FingerBleed.js +3 -2
  470. package/lib/components/Icons/FingerBleed.js.map +1 -1
  471. package/lib/components/Icons/FirstAidKit.js +3 -2
  472. package/lib/components/Icons/FirstAidKit.js.map +1 -1
  473. package/lib/components/Icons/Fish.js +3 -2
  474. package/lib/components/Icons/Fish.js.map +1 -1
  475. package/lib/components/Icons/FloppyDisk.js +3 -2
  476. package/lib/components/Icons/FloppyDisk.js.map +1 -1
  477. package/lib/components/Icons/Football.js +3 -2
  478. package/lib/components/Icons/Football.js.map +1 -1
  479. package/lib/components/Icons/Form.js +3 -2
  480. package/lib/components/Icons/Form.js.map +1 -1
  481. package/lib/components/Icons/Forward.js +17 -2
  482. package/lib/components/Icons/Forward.js.map +1 -0
  483. package/lib/components/Icons/Gallery.js +3 -2
  484. package/lib/components/Icons/Gallery.js.map +1 -1
  485. package/lib/components/Icons/Garden.js +3 -2
  486. package/lib/components/Icons/Garden.js.map +1 -1
  487. package/lib/components/Icons/GasCan.js +3 -2
  488. package/lib/components/Icons/GasCan.js.map +1 -1
  489. package/lib/components/Icons/GenderIdentity.js +3 -2
  490. package/lib/components/Icons/GenderIdentity.js.map +1 -1
  491. package/lib/components/Icons/GlassWater.js +3 -2
  492. package/lib/components/Icons/GlassWater.js.map +1 -1
  493. package/lib/components/Icons/Glasses.js +3 -2
  494. package/lib/components/Icons/Glasses.js.map +1 -1
  495. package/lib/components/Icons/Globe.js +3 -2
  496. package/lib/components/Icons/Globe.js.map +1 -1
  497. package/lib/components/Icons/Grain.js +3 -2
  498. package/lib/components/Icons/Grain.js.map +1 -1
  499. package/lib/components/Icons/Graph.js +3 -2
  500. package/lib/components/Icons/Graph.js.map +1 -1
  501. package/lib/components/Icons/Group.js +3 -2
  502. package/lib/components/Icons/Group.js.map +1 -1
  503. package/lib/components/Icons/GroupTwins.js +3 -2
  504. package/lib/components/Icons/GroupTwins.js.map +1 -1
  505. package/lib/components/Icons/HTMLFile.js +3 -2
  506. package/lib/components/Icons/HTMLFile.js.map +1 -1
  507. package/lib/components/Icons/HandWaving.js +9 -2
  508. package/lib/components/Icons/HandWaving.js.map +1 -0
  509. package/lib/components/Icons/HandWithDisease.js +3 -2
  510. package/lib/components/Icons/HandWithDisease.js.map +1 -1
  511. package/lib/components/Icons/HandsAndHeart.js +3 -2
  512. package/lib/components/Icons/HandsAndHeart.js.map +1 -1
  513. package/lib/components/Icons/HealthClinic.js +3 -2
  514. package/lib/components/Icons/HealthClinic.js.map +1 -1
  515. package/lib/components/Icons/HealthMeasurements.js +3 -2
  516. package/lib/components/Icons/HealthMeasurements.js.map +1 -1
  517. package/lib/components/Icons/HealthWarning.js +3 -2
  518. package/lib/components/Icons/HealthWarning.js.map +1 -1
  519. package/lib/components/Icons/HealthcarePerson.js +3 -2
  520. package/lib/components/Icons/HealthcarePerson.js.map +1 -1
  521. package/lib/components/Icons/HealthcarePersonell.js +3 -2
  522. package/lib/components/Icons/HealthcarePersonell.js.map +1 -1
  523. package/lib/components/Icons/HearingProtection.js +3 -2
  524. package/lib/components/Icons/HearingProtection.js.map +1 -1
  525. package/lib/components/Icons/Heart.js +3 -2
  526. package/lib/components/Icons/Heart.js.map +1 -1
  527. package/lib/components/Icons/HeartHands.js +3 -2
  528. package/lib/components/Icons/HeartHands.js.map +1 -1
  529. package/lib/components/Icons/HelpSign.js +3 -2
  530. package/lib/components/Icons/HelpSign.js.map +1 -1
  531. package/lib/components/Icons/HelpingHand.js +3 -2
  532. package/lib/components/Icons/HelpingHand.js.map +1 -1
  533. package/lib/components/Icons/Hemodialysis.js +3 -2
  534. package/lib/components/Icons/Hemodialysis.js.map +1 -1
  535. package/lib/components/Icons/Hiker.js +3 -2
  536. package/lib/components/Icons/Hiker.js.map +1 -1
  537. package/lib/components/Icons/Hipprosthesis.js +3 -2
  538. package/lib/components/Icons/Hipprosthesis.js.map +1 -1
  539. package/lib/components/Icons/History.js +3 -2
  540. package/lib/components/Icons/History.js.map +1 -1
  541. package/lib/components/Icons/HivAndAids.js +3 -2
  542. package/lib/components/Icons/HivAndAids.js.map +1 -1
  543. package/lib/components/Icons/Home.js +3 -2
  544. package/lib/components/Icons/Home.js.map +1 -1
  545. package/lib/components/Icons/HomeFill.js +3 -2
  546. package/lib/components/Icons/HomeFill.js.map +1 -1
  547. package/lib/components/Icons/Hormone.js +3 -2
  548. package/lib/components/Icons/Hormone.js.map +1 -1
  549. package/lib/components/Icons/Hospital.js +3 -2
  550. package/lib/components/Icons/Hospital.js.map +1 -1
  551. package/lib/components/Icons/Hourglass.js +3 -2
  552. package/lib/components/Icons/Hourglass.js.map +1 -1
  553. package/lib/components/Icons/IconNames.js +4 -1
  554. package/lib/components/Icons/IconNames.js.map +1 -1
  555. package/lib/components/Icons/ImgFile.js +3 -2
  556. package/lib/components/Icons/ImgFile.js.map +1 -1
  557. package/lib/components/Icons/Inbox.js +3 -2
  558. package/lib/components/Icons/Inbox.js.map +1 -1
  559. package/lib/components/Icons/InfoSignFill.js +17 -2
  560. package/lib/components/Icons/InfoSignFill.js.map +1 -0
  561. package/lib/components/Icons/InfoSignStroke.js +3 -2
  562. package/lib/components/Icons/InfoSignStroke.js.map +1 -1
  563. package/lib/components/Icons/Instagram.js +3 -2
  564. package/lib/components/Icons/Instagram.js.map +1 -1
  565. package/lib/components/Icons/Intravenous.js +3 -2
  566. package/lib/components/Icons/Intravenous.js.map +1 -1
  567. package/lib/components/Icons/JointPain.js +3 -2
  568. package/lib/components/Icons/JointPain.js.map +1 -1
  569. package/lib/components/Icons/Journal.js +3 -2
  570. package/lib/components/Icons/Journal.js.map +1 -1
  571. package/lib/components/Icons/JpgFile.js +3 -2
  572. package/lib/components/Icons/JpgFile.js.map +1 -1
  573. package/lib/components/Icons/Kidney.js +3 -2
  574. package/lib/components/Icons/Kidney.js.map +1 -1
  575. package/lib/components/Icons/KitchenScale.js +3 -2
  576. package/lib/components/Icons/KitchenScale.js.map +1 -1
  577. package/lib/components/Icons/Kjernejournal.js +3 -2
  578. package/lib/components/Icons/Kjernejournal.js.map +1 -1
  579. package/lib/components/Icons/Laboratory.js +3 -2
  580. package/lib/components/Icons/Laboratory.js.map +1 -1
  581. package/lib/components/Icons/LaptopBlog.js +3 -2
  582. package/lib/components/Icons/LaptopBlog.js.map +1 -1
  583. package/lib/components/Icons/LawBook.js +3 -2
  584. package/lib/components/Icons/LawBook.js.map +1 -1
  585. package/lib/components/Icons/LegalDocument.js +3 -2
  586. package/lib/components/Icons/LegalDocument.js.map +1 -1
  587. package/lib/components/Icons/LightBulb.js +3 -2
  588. package/lib/components/Icons/LightBulb.js.map +1 -1
  589. package/lib/components/Icons/List.js +3 -2
  590. package/lib/components/Icons/List.js.map +1 -1
  591. package/lib/components/Icons/Location.js +3 -2
  592. package/lib/components/Icons/Location.js.map +1 -1
  593. package/lib/components/Icons/LocationFill.js +3 -2
  594. package/lib/components/Icons/LocationFill.js.map +1 -1
  595. package/lib/components/Icons/Lock.js +3 -2
  596. package/lib/components/Icons/Lock.js.map +1 -1
  597. package/lib/components/Icons/Login.js +3 -2
  598. package/lib/components/Icons/Login.js.map +1 -1
  599. package/lib/components/Icons/Logout.js +3 -2
  600. package/lib/components/Icons/Logout.js.map +1 -1
  601. package/lib/components/Icons/Lungs.js +3 -2
  602. package/lib/components/Icons/Lungs.js.map +1 -1
  603. package/lib/components/Icons/Makeup.js +3 -2
  604. package/lib/components/Icons/Makeup.js.map +1 -1
  605. package/lib/components/Icons/MaleDoctor.js +3 -2
  606. package/lib/components/Icons/MaleDoctor.js.map +1 -1
  607. package/lib/components/Icons/MaleDoctorAndPerson.js +3 -2
  608. package/lib/components/Icons/MaleDoctorAndPerson.js.map +1 -1
  609. package/lib/components/Icons/MaleDoctorCompact.js +3 -2
  610. package/lib/components/Icons/MaleDoctorCompact.js.map +1 -1
  611. package/lib/components/Icons/MaleDoctorCompactFill.js +3 -2
  612. package/lib/components/Icons/MaleDoctorCompactFill.js.map +1 -1
  613. package/lib/components/Icons/MaleGenitalia.js +3 -2
  614. package/lib/components/Icons/MaleGenitalia.js.map +1 -1
  615. package/lib/components/Icons/MeasuringTape.js +3 -2
  616. package/lib/components/Icons/MeasuringTape.js.map +1 -1
  617. package/lib/components/Icons/Medicine.js +3 -2
  618. package/lib/components/Icons/Medicine.js.map +1 -1
  619. package/lib/components/Icons/MedicineWarning.js +3 -2
  620. package/lib/components/Icons/MedicineWarning.js.map +1 -1
  621. package/lib/components/Icons/MentalHealthAdult.js +3 -2
  622. package/lib/components/Icons/MentalHealthAdult.js.map +1 -1
  623. package/lib/components/Icons/MentalHealthChild.js +3 -2
  624. package/lib/components/Icons/MentalHealthChild.js.map +1 -1
  625. package/lib/components/Icons/Menu.js +3 -2
  626. package/lib/components/Icons/Menu.js.map +1 -1
  627. package/lib/components/Icons/Microscope.js +3 -2
  628. package/lib/components/Icons/Microscope.js.map +1 -1
  629. package/lib/components/Icons/Minus.js +3 -2
  630. package/lib/components/Icons/Minus.js.map +1 -1
  631. package/lib/components/Icons/Mirror.js +3 -2
  632. package/lib/components/Icons/Mirror.js.map +1 -1
  633. package/lib/components/Icons/MobilePhone.js +3 -2
  634. package/lib/components/Icons/MobilePhone.js.map +1 -1
  635. package/lib/components/Icons/MotherHoldingBaby.js +3 -2
  636. package/lib/components/Icons/MotherHoldingBaby.js.map +1 -1
  637. package/lib/components/Icons/MuscleBack.js +3 -2
  638. package/lib/components/Icons/MuscleBack.js.map +1 -1
  639. package/lib/components/Icons/MuscleLeg.js +3 -2
  640. package/lib/components/Icons/MuscleLeg.js.map +1 -1
  641. package/lib/components/Icons/Mushroom.js +3 -2
  642. package/lib/components/Icons/Mushroom.js.map +1 -1
  643. package/lib/components/Icons/Music.js +3 -2
  644. package/lib/components/Icons/Music.js.map +1 -1
  645. package/lib/components/Icons/MusselsAndSalt.js +3 -2
  646. package/lib/components/Icons/MusselsAndSalt.js.map +1 -1
  647. package/lib/components/Icons/NoAccess.js +3 -2
  648. package/lib/components/Icons/NoAccess.js.map +1 -1
  649. package/lib/components/Icons/NoEye.js +3 -2
  650. package/lib/components/Icons/NoEye.js.map +1 -1
  651. package/lib/components/Icons/NoFilter.js +3 -2
  652. package/lib/components/Icons/NoFilter.js.map +1 -1
  653. package/lib/components/Icons/Notepad.js +3 -2
  654. package/lib/components/Icons/Notepad.js.map +1 -1
  655. package/lib/components/Icons/Osteotomy.js +3 -2
  656. package/lib/components/Icons/Osteotomy.js.map +1 -1
  657. package/lib/components/Icons/PaintRoller.js +3 -2
  658. package/lib/components/Icons/PaintRoller.js.map +1 -1
  659. package/lib/components/Icons/PaperPlane.js +3 -2
  660. package/lib/components/Icons/PaperPlane.js.map +1 -1
  661. package/lib/components/Icons/PatientAndPerson.js +3 -2
  662. package/lib/components/Icons/PatientAndPerson.js.map +1 -1
  663. package/lib/components/Icons/Pause.js +3 -2
  664. package/lib/components/Icons/Pause.js.map +1 -1
  665. package/lib/components/Icons/PdfFile.js +3 -2
  666. package/lib/components/Icons/PdfFile.js.map +1 -1
  667. package/lib/components/Icons/Pencil.js +3 -2
  668. package/lib/components/Icons/Pencil.js.map +1 -1
  669. package/lib/components/Icons/PeopleTalking.js +3 -2
  670. package/lib/components/Icons/PeopleTalking.js.map +1 -1
  671. package/lib/components/Icons/Peritonealdialysis.js +3 -2
  672. package/lib/components/Icons/Peritonealdialysis.js.map +1 -1
  673. package/lib/components/Icons/Person.js +3 -2
  674. package/lib/components/Icons/Person.js.map +1 -1
  675. package/lib/components/Icons/PersonAndPatient.js +3 -2
  676. package/lib/components/Icons/PersonAndPatient.js.map +1 -1
  677. package/lib/components/Icons/PersonCancel.js +3 -2
  678. package/lib/components/Icons/PersonCancel.js.map +1 -1
  679. package/lib/components/Icons/PersonInXRayMachine.js +3 -2
  680. package/lib/components/Icons/PersonInXRayMachine.js.map +1 -1
  681. package/lib/components/Icons/PersonOverweight.js +3 -2
  682. package/lib/components/Icons/PersonOverweight.js.map +1 -1
  683. package/lib/components/Icons/PersonRelaxing.js +3 -2
  684. package/lib/components/Icons/PersonRelaxing.js.map +1 -1
  685. package/lib/components/Icons/PersonWithBrain.js +3 -2
  686. package/lib/components/Icons/PersonWithBrain.js.map +1 -1
  687. package/lib/components/Icons/PersonWithBrokenArm.js +3 -2
  688. package/lib/components/Icons/PersonWithBrokenArm.js.map +1 -1
  689. package/lib/components/Icons/PersonWithCrutches.js +3 -2
  690. package/lib/components/Icons/PersonWithCrutches.js.map +1 -1
  691. package/lib/components/Icons/PersonWithJaw.js +3 -2
  692. package/lib/components/Icons/PersonWithJaw.js.map +1 -1
  693. package/lib/components/Icons/PersonWithMagnifyingGlass.js +3 -2
  694. package/lib/components/Icons/PersonWithMagnifyingGlass.js.map +1 -1
  695. package/lib/components/Icons/PersonWithSenses.js +3 -2
  696. package/lib/components/Icons/PersonWithSenses.js.map +1 -1
  697. package/lib/components/Icons/PersonWorking.js +3 -2
  698. package/lib/components/Icons/PersonWorking.js.map +1 -1
  699. package/lib/components/Icons/PersonalPlan.js +3 -2
  700. package/lib/components/Icons/PersonalPlan.js.map +1 -1
  701. package/lib/components/Icons/PizzaSlice.js +3 -2
  702. package/lib/components/Icons/PizzaSlice.js.map +1 -1
  703. package/lib/components/Icons/Plane.js +3 -2
  704. package/lib/components/Icons/Plane.js.map +1 -1
  705. package/lib/components/Icons/Plant.js +3 -2
  706. package/lib/components/Icons/Plant.js.map +1 -1
  707. package/lib/components/Icons/PlateKnifeFork.js +3 -2
  708. package/lib/components/Icons/PlateKnifeFork.js.map +1 -1
  709. package/lib/components/Icons/Play.js +3 -2
  710. package/lib/components/Icons/Play.js.map +1 -1
  711. package/lib/components/Icons/PlusLarge.js +3 -2
  712. package/lib/components/Icons/PlusLarge.js.map +1 -1
  713. package/lib/components/Icons/PlusSmall.js +17 -2
  714. package/lib/components/Icons/PlusSmall.js.map +1 -0
  715. package/lib/components/Icons/PngFile.js +3 -2
  716. package/lib/components/Icons/PngFile.js.map +1 -1
  717. package/lib/components/Icons/Podcast.js +3 -2
  718. package/lib/components/Icons/Podcast.js.map +1 -1
  719. package/lib/components/Icons/PoisonInformation.js +3 -2
  720. package/lib/components/Icons/PoisonInformation.js.map +1 -1
  721. package/lib/components/Icons/Pregnant.js +3 -2
  722. package/lib/components/Icons/Pregnant.js.map +1 -1
  723. package/lib/components/Icons/Printer.js +3 -2
  724. package/lib/components/Icons/Printer.js.map +1 -1
  725. package/lib/components/Icons/Psychosis.js +3 -2
  726. package/lib/components/Icons/Psychosis.js.map +1 -1
  727. package/lib/components/Icons/Publication.js +3 -2
  728. package/lib/components/Icons/Publication.js.map +1 -1
  729. package/lib/components/Icons/Puzzle.js +3 -2
  730. package/lib/components/Icons/Puzzle.js.map +1 -1
  731. package/lib/components/Icons/QrCode.js +3 -2
  732. package/lib/components/Icons/QrCode.js.map +1 -1
  733. package/lib/components/Icons/Quarrel.js +3 -2
  734. package/lib/components/Icons/Quarrel.js.map +1 -1
  735. package/lib/components/Icons/RadioTherapy.js +3 -2
  736. package/lib/components/Icons/RadioTherapy.js.map +1 -1
  737. package/lib/components/Icons/RadioactiveTreatment.js +3 -2
  738. package/lib/components/Icons/RadioactiveTreatment.js.map +1 -1
  739. package/lib/components/Icons/Radioiodine.js +3 -2
  740. package/lib/components/Icons/Radioiodine.js.map +1 -1
  741. package/lib/components/Icons/Receipt.js +3 -2
  742. package/lib/components/Icons/Receipt.js.map +1 -1
  743. package/lib/components/Icons/Receptionist.js +3 -2
  744. package/lib/components/Icons/Receptionist.js.map +1 -1
  745. package/lib/components/Icons/Recovery.js +3 -2
  746. package/lib/components/Icons/Recovery.js.map +1 -1
  747. package/lib/components/Icons/Referral.js +3 -2
  748. package/lib/components/Icons/Referral.js.map +1 -1
  749. package/lib/components/Icons/Refresh.js +3 -2
  750. package/lib/components/Icons/Refresh.js.map +1 -1
  751. package/lib/components/Icons/Refund.js +3 -2
  752. package/lib/components/Icons/Refund.js.map +1 -1
  753. package/lib/components/Icons/Reminder.js +3 -2
  754. package/lib/components/Icons/Reminder.js.map +1 -1
  755. package/lib/components/Icons/Reply.js +3 -2
  756. package/lib/components/Icons/Reply.js.map +1 -1
  757. package/lib/components/Icons/Rocket.js +3 -2
  758. package/lib/components/Icons/Rocket.js.map +1 -1
  759. package/lib/components/Icons/RtfFile.js +3 -2
  760. package/lib/components/Icons/RtfFile.js.map +1 -1
  761. package/lib/components/Icons/STDs.js +3 -2
  762. package/lib/components/Icons/STDs.js.map +1 -1
  763. package/lib/components/Icons/Save.js +3 -2
  764. package/lib/components/Icons/Save.js.map +1 -1
  765. package/lib/components/Icons/Scale.js +3 -2
  766. package/lib/components/Icons/Scale.js.map +1 -1
  767. package/lib/components/Icons/ScreenReader.js +3 -2
  768. package/lib/components/Icons/ScreenReader.js.map +1 -1
  769. package/lib/components/Icons/Search.js +27 -2
  770. package/lib/components/Icons/Search.js.map +1 -0
  771. package/lib/components/Icons/SectionSign.js +3 -2
  772. package/lib/components/Icons/SectionSign.js.map +1 -1
  773. package/lib/components/Icons/Settings.js +3 -2
  774. package/lib/components/Icons/Settings.js.map +1 -1
  775. package/lib/components/Icons/SettingsFill.js +3 -2
  776. package/lib/components/Icons/SettingsFill.js.map +1 -1
  777. package/lib/components/Icons/Sexualorientation.js +3 -2
  778. package/lib/components/Icons/Sexualorientation.js.map +1 -1
  779. package/lib/components/Icons/ShakingHand.js +3 -2
  780. package/lib/components/Icons/ShakingHand.js.map +1 -1
  781. package/lib/components/Icons/Share.js +3 -2
  782. package/lib/components/Icons/Share.js.map +1 -1
  783. package/lib/components/Icons/SharedHealthData.js +3 -2
  784. package/lib/components/Icons/SharedHealthData.js.map +1 -1
  785. package/lib/components/Icons/SharedHealthMeasurements.js +3 -2
  786. package/lib/components/Icons/SharedHealthMeasurements.js.map +1 -1
  787. package/lib/components/Icons/Shield.js +3 -2
  788. package/lib/components/Icons/Shield.js.map +1 -1
  789. package/lib/components/Icons/ShuntOperation.js +3 -2
  790. package/lib/components/Icons/ShuntOperation.js.map +1 -1
  791. package/lib/components/Icons/Skeleton.js +3 -2
  792. package/lib/components/Icons/Skeleton.js.map +1 -1
  793. package/lib/components/Icons/Skin.js +3 -2
  794. package/lib/components/Icons/Skin.js.map +1 -1
  795. package/lib/components/Icons/Snake.js +3 -2
  796. package/lib/components/Icons/Snake.js.map +1 -1
  797. package/lib/components/Icons/Snapchat.js +3 -2
  798. package/lib/components/Icons/Snapchat.js.map +1 -1
  799. package/lib/components/Icons/Sort.js +3 -2
  800. package/lib/components/Icons/Sort.js.map +1 -1
  801. package/lib/components/Icons/SortDown.js +3 -2
  802. package/lib/components/Icons/SortDown.js.map +1 -1
  803. package/lib/components/Icons/SortUp.js +3 -2
  804. package/lib/components/Icons/SortUp.js.map +1 -1
  805. package/lib/components/Icons/SpeechBubble.js +3 -2
  806. package/lib/components/Icons/SpeechBubble.js.map +1 -1
  807. package/lib/components/Icons/Spray.js +3 -2
  808. package/lib/components/Icons/Spray.js.map +1 -1
  809. package/lib/components/Icons/StarFill.js +3 -2
  810. package/lib/components/Icons/StarFill.js.map +1 -1
  811. package/lib/components/Icons/StarStroke.js +3 -2
  812. package/lib/components/Icons/StarStroke.js.map +1 -1
  813. package/lib/components/Icons/StickyNote.js +3 -2
  814. package/lib/components/Icons/StickyNote.js.map +1 -1
  815. package/lib/components/Icons/StickyNotes.js +3 -2
  816. package/lib/components/Icons/StickyNotes.js.map +1 -1
  817. package/lib/components/Icons/Stopwatch.js +3 -2
  818. package/lib/components/Icons/Stopwatch.js.map +1 -1
  819. package/lib/components/Icons/Sun.js +3 -2
  820. package/lib/components/Icons/Sun.js.map +1 -1
  821. package/lib/components/Icons/SupportingPerson.js +3 -2
  822. package/lib/components/Icons/SupportingPerson.js.map +1 -1
  823. package/lib/components/Icons/Surgery.js +3 -2
  824. package/lib/components/Icons/Surgery.js.map +1 -1
  825. package/lib/components/Icons/Sweets.js +3 -2
  826. package/lib/components/Icons/Sweets.js.map +1 -1
  827. package/lib/components/Icons/Syringe.js +4 -3
  828. package/lib/components/Icons/Syringe.js.map +1 -1
  829. package/lib/components/Icons/Taxi.js +3 -2
  830. package/lib/components/Icons/Taxi.js.map +1 -1
  831. package/lib/components/Icons/TeddyBear.js +3 -2
  832. package/lib/components/Icons/TeddyBear.js.map +1 -1
  833. package/lib/components/Icons/Teenagers.js +3 -2
  834. package/lib/components/Icons/Teenagers.js.map +1 -1
  835. package/lib/components/Icons/ThinkingAboutBaby.js +3 -2
  836. package/lib/components/Icons/ThinkingAboutBaby.js.map +1 -1
  837. package/lib/components/Icons/Ticket.js +3 -2
  838. package/lib/components/Icons/Ticket.js.map +1 -1
  839. package/lib/components/Icons/TimePassing.js +3 -2
  840. package/lib/components/Icons/TimePassing.js.map +1 -1
  841. package/lib/components/Icons/Toddler.js +3 -2
  842. package/lib/components/Icons/Toddler.js.map +1 -1
  843. package/lib/components/Icons/Tombstone.js +3 -2
  844. package/lib/components/Icons/Tombstone.js.map +1 -1
  845. package/lib/components/Icons/Toolbox.js +3 -2
  846. package/lib/components/Icons/Toolbox.js.map +1 -1
  847. package/lib/components/Icons/Tooth.js +3 -2
  848. package/lib/components/Icons/Tooth.js.map +1 -1
  849. package/lib/components/Icons/TotalKneeProsthesis.js +3 -2
  850. package/lib/components/Icons/TotalKneeProsthesis.js.map +1 -1
  851. package/lib/components/Icons/Train.js +3 -2
  852. package/lib/components/Icons/Train.js.map +1 -1
  853. package/lib/components/Icons/Transplantation.js +3 -2
  854. package/lib/components/Icons/Transplantation.js.map +1 -1
  855. package/lib/components/Icons/TrashCan.js +3 -2
  856. package/lib/components/Icons/TrashCan.js.map +1 -1
  857. package/lib/components/Icons/TravelRoute.js +3 -2
  858. package/lib/components/Icons/TravelRoute.js.map +1 -1
  859. package/lib/components/Icons/TreatmentAids.js +3 -2
  860. package/lib/components/Icons/TreatmentAids.js.map +1 -1
  861. package/lib/components/Icons/TriangleX.js +33 -2
  862. package/lib/components/Icons/TriangleX.js.map +1 -0
  863. package/lib/components/Icons/Twitter.js +3 -2
  864. package/lib/components/Icons/Twitter.js.map +1 -1
  865. package/lib/components/Icons/Undo.js +3 -2
  866. package/lib/components/Icons/Undo.js.map +1 -1
  867. package/lib/components/Icons/UniProsthesis.js +3 -2
  868. package/lib/components/Icons/UniProsthesis.js.map +1 -1
  869. package/lib/components/Icons/Upload.js +3 -2
  870. package/lib/components/Icons/Upload.js.map +1 -1
  871. package/lib/components/Icons/UserOrganization.js +3 -2
  872. package/lib/components/Icons/UserOrganization.js.map +1 -1
  873. package/lib/components/Icons/Vaccine.js +3 -2
  874. package/lib/components/Icons/Vaccine.js.map +1 -1
  875. package/lib/components/Icons/VerticalDots.js +17 -2
  876. package/lib/components/Icons/VerticalDots.js.map +1 -0
  877. package/lib/components/Icons/VideoCamera.js +3 -2
  878. package/lib/components/Icons/VideoCamera.js.map +1 -1
  879. package/lib/components/Icons/VideoChat.js +3 -2
  880. package/lib/components/Icons/VideoChat.js.map +1 -1
  881. package/lib/components/Icons/Wallet.js +3 -2
  882. package/lib/components/Icons/Wallet.js.map +1 -1
  883. package/lib/components/Icons/Watch.js +3 -2
  884. package/lib/components/Icons/Watch.js.map +1 -1
  885. package/lib/components/Icons/Website.js +3 -2
  886. package/lib/components/Icons/Website.js.map +1 -1
  887. package/lib/components/Icons/Wheelchair.js +3 -2
  888. package/lib/components/Icons/Wheelchair.js.map +1 -1
  889. package/lib/components/Icons/WheelchairActive.js +3 -2
  890. package/lib/components/Icons/WheelchairActive.js.map +1 -1
  891. package/lib/components/Icons/Window.js +3 -2
  892. package/lib/components/Icons/Window.js.map +1 -1
  893. package/lib/components/Icons/WordDocument.js +3 -2
  894. package/lib/components/Icons/WordDocument.js.map +1 -1
  895. package/lib/components/Icons/WorkSuitcase.js +3 -2
  896. package/lib/components/Icons/WorkSuitcase.js.map +1 -1
  897. package/lib/components/Icons/X.js +19 -2
  898. package/lib/components/Icons/X.js.map +1 -0
  899. package/lib/components/Icons/XOutline.js +3 -2
  900. package/lib/components/Icons/XOutline.js.map +1 -1
  901. package/lib/components/Icons/XmlFile.js +3 -2
  902. package/lib/components/Icons/XmlFile.js.map +1 -1
  903. package/lib/components/Icons/YouTube.js +3 -2
  904. package/lib/components/Icons/YouTube.js.map +1 -1
  905. package/lib/components/Icons/Zoom.js +3 -2
  906. package/lib/components/Icons/Zoom.js.map +1 -1
  907. package/lib/components/Icons/ZoomInLeft.js +3 -2
  908. package/lib/components/Icons/ZoomInLeft.js.map +1 -1
  909. package/lib/components/Icons/ZoomOutLeft.js +3 -2
  910. package/lib/components/Icons/ZoomOutLeft.js.map +1 -1
  911. package/lib/components/Illustrations/BabyMobile.js +5 -4
  912. package/lib/components/Illustrations/BabyMobile.js.map +1 -1
  913. package/lib/components/Illustrations/BabyMobileMedium.js +264 -2
  914. package/lib/components/Illustrations/BabyMobileMedium.js.map +1 -0
  915. package/lib/components/Illustrations/Child.js +5 -4
  916. package/lib/components/Illustrations/Child.js.map +1 -1
  917. package/lib/components/Illustrations/ChildMedium.js +127 -2
  918. package/lib/components/Illustrations/ChildMedium.js.map +1 -0
  919. package/lib/components/Illustrations/Doctor.js +7 -6
  920. package/lib/components/Illustrations/Doctor.js.map +1 -1
  921. package/lib/components/Illustrations/DoctorMedium.js +55 -2
  922. package/lib/components/Illustrations/DoctorMedium.js.map +1 -0
  923. package/lib/components/Illustrations/DoctorSmall.js +53 -2
  924. package/lib/components/Illustrations/DoctorSmall.js.map +1 -0
  925. package/lib/components/Illustrations/FacialRecognitionFingerprint.js +5 -4
  926. package/lib/components/Illustrations/FacialRecognitionFingerprint.js.map +1 -1
  927. package/lib/components/Illustrations/FacialRecognitionFingerprintMedium.js +200 -2
  928. package/lib/components/Illustrations/FacialRecognitionFingerprintMedium.js.map +1 -0
  929. package/lib/components/Illustrations/GiveBabyFood.js +5 -4
  930. package/lib/components/Illustrations/GiveBabyFood.js.map +1 -1
  931. package/lib/components/Illustrations/GiveBabyFoodMedium.js +241 -2
  932. package/lib/components/Illustrations/GiveBabyFoodMedium.js.map +1 -0
  933. package/lib/components/Illustrations/HealthcarePersonnel.js +7 -6
  934. package/lib/components/Illustrations/HealthcarePersonnel.js.map +1 -1
  935. package/lib/components/Illustrations/HealthcarePersonnelMedium.js +149 -2
  936. package/lib/components/Illustrations/HealthcarePersonnelMedium.js.map +1 -0
  937. package/lib/components/Illustrations/HealthcarePersonnelSmall.js +150 -2
  938. package/lib/components/Illustrations/HealthcarePersonnelSmall.js.map +1 -0
  939. package/lib/components/Illustrations/IllustrationNames.js +37 -1
  940. package/lib/components/Illustrations/IllustrationNames.js.map +1 -0
  941. package/lib/components/Illustrations/ReadLetters.js +5 -4
  942. package/lib/components/Illustrations/ReadLetters.js.map +1 -1
  943. package/lib/components/Illustrations/ReadLettersMedium.js +79 -2
  944. package/lib/components/Illustrations/ReadLettersMedium.js.map +1 -0
  945. package/lib/components/Illustrations/Stork.js +5 -4
  946. package/lib/components/Illustrations/Stork.js.map +1 -1
  947. package/lib/components/Illustrations/StorkMedium.js +97 -2
  948. package/lib/components/Illustrations/StorkMedium.js.map +1 -0
  949. package/lib/components/Illustrations/Stroller.js +5 -4
  950. package/lib/components/Illustrations/Stroller.js.map +1 -1
  951. package/lib/components/Illustrations/StrollerMedium.js +220 -2
  952. package/lib/components/Illustrations/StrollerMedium.js.map +1 -0
  953. package/lib/components/Illustrations/Support2.js +5 -4
  954. package/lib/components/Illustrations/Support2.js.map +1 -1
  955. package/lib/components/Illustrations/Support2Medium.js +159 -2
  956. package/lib/components/Illustrations/Support2Medium.js.map +1 -0
  957. package/lib/components/Illustrations/Thinking.js +5 -4
  958. package/lib/components/Illustrations/Thinking.js.map +1 -1
  959. package/lib/components/Illustrations/ThinkingMedium.js +99 -2
  960. package/lib/components/Illustrations/ThinkingMedium.js.map +1 -0
  961. package/lib/components/Input/index.js +6 -2
  962. package/lib/components/Input/index.js.map +1 -0
  963. package/lib/components/Label/index.js +6 -2
  964. package/lib/components/Label/index.js.map +1 -0
  965. package/lib/components/Loader/index.js +11 -5
  966. package/lib/components/Loader/index.js.map +1 -1
  967. package/lib/components/Logo/index.js +6 -2
  968. package/lib/components/Logo/index.js.map +1 -1
  969. package/lib/components/Modal/index.js +34 -28
  970. package/lib/components/Modal/index.js.map +1 -1
  971. package/lib/components/NotificationPanel/index.js +10 -6
  972. package/lib/components/NotificationPanel/index.js.map +1 -1
  973. package/lib/components/Panel/index.js +22 -15
  974. package/lib/components/Panel/index.js.map +1 -1
  975. package/lib/components/PanelList/index.js +5 -1
  976. package/lib/components/PanelList/index.js.map +1 -1
  977. package/lib/components/PopMenu/index.js +26 -20
  978. package/lib/components/PopMenu/index.js.map +1 -1
  979. package/lib/components/Portal/index.js +27 -1
  980. package/lib/components/Portal/index.js.map +1 -0
  981. package/lib/components/Progressbar/index.js +21 -15
  982. package/lib/components/Progressbar/index.js.map +1 -1
  983. package/lib/components/PromoPanel/index.js +12 -8
  984. package/lib/components/PromoPanel/index.js.map +1 -1
  985. package/lib/components/RadioButton/index.js +5 -1
  986. package/lib/{RadioButton.js.map → components/RadioButton/index.js.map} +1 -1
  987. package/lib/components/ServiceMessage/index.js +19 -15
  988. package/lib/components/ServiceMessage/index.js.map +1 -1
  989. package/lib/components/SharingStatus/index.js +6 -2
  990. package/lib/components/SharingStatus/index.js.map +1 -1
  991. package/lib/components/Step/index.js +5 -1
  992. package/lib/components/Step/index.js.map +1 -1
  993. package/lib/components/Stepper/index.js +84 -18
  994. package/lib/components/Stepper/index.js.map +1 -1
  995. package/lib/components/StickyNote/index.js +17 -11
  996. package/lib/components/StickyNote/index.js.map +1 -1
  997. package/lib/components/Table/index.js +13 -9
  998. package/lib/components/Table/index.js.map +1 -1
  999. package/lib/components/Tabs/index.js +13 -6
  1000. package/lib/components/Tabs/index.js.map +1 -1
  1001. package/lib/components/Tag/Tag.d.ts +1 -11
  1002. package/lib/components/Tag/constants.d.ts +2 -6
  1003. package/lib/components/Tag/index.d.ts +1 -1
  1004. package/lib/components/Tag/index.js +19 -34
  1005. package/lib/components/Tag/index.js.map +1 -1
  1006. package/lib/components/Tag/styles.module.scss +19 -52
  1007. package/lib/components/Tag/styles.module.scss.d.ts +3 -11
  1008. package/lib/components/TagList/index.js +5 -1
  1009. package/lib/components/TagList/index.js.map +1 -1
  1010. package/lib/components/Tile/index.js +10 -6
  1011. package/lib/components/Tile/index.js.map +1 -1
  1012. package/lib/components/Title/index.js +6 -2
  1013. package/lib/components/Title/index.js.map +1 -0
  1014. package/lib/components/Toast/index.js +4 -2
  1015. package/lib/components/Toast/index.js.map +1 -1
  1016. package/lib/components/ToastList/index.js +7 -3
  1017. package/lib/components/ToastList/index.js.map +1 -1
  1018. package/lib/components/Toggle/index.js +17 -11
  1019. package/lib/components/Toggle/index.js.map +1 -1
  1020. package/lib/components/Validation/index.js +24 -17
  1021. package/lib/components/Validation/index.js.map +1 -1
  1022. package/lib/constants.js +125 -1
  1023. package/lib/constants.js.map +1 -0
  1024. package/lib/constants2.js +45 -117
  1025. package/lib/constants2.js.map +1 -1
  1026. package/lib/floating-ui.react.js +475 -185
  1027. package/lib/floating-ui.react.js.map +1 -1
  1028. package/lib/getFilterChips.js +6 -2
  1029. package/lib/getFilterChips.js.map +1 -1
  1030. package/lib/global.d.ts +1 -0
  1031. package/lib/hoc/withBreakpoint/index.js +4 -2
  1032. package/lib/hoc/withBreakpoint/index.js.map +1 -1
  1033. package/lib/hoc/withBreakpoint/withBreakpoint.js +17 -2
  1034. package/lib/hoc/withBreakpoint/withBreakpoint.js.map +1 -0
  1035. package/lib/hooks/useBreakpoint.js +42 -1
  1036. package/lib/hooks/useBreakpoint.js.map +1 -0
  1037. package/lib/hooks/useElementList.js +46 -1
  1038. package/lib/hooks/useElementList.js.map +1 -0
  1039. package/lib/hooks/useEventListenerState.js +3 -1
  1040. package/lib/hooks/useEventListenerState.js.map +1 -1
  1041. package/lib/hooks/useExpand.js +19 -1
  1042. package/lib/hooks/useExpand.js.map +1 -0
  1043. package/lib/hooks/useFocusToggle.js +34 -1
  1044. package/lib/hooks/useFocusToggle.js.map +1 -0
  1045. package/lib/hooks/useFocusTrap.js +40 -2
  1046. package/lib/hooks/useFocusTrap.js.map +1 -0
  1047. package/lib/hooks/useFocusableElements.js +33 -1
  1048. package/lib/hooks/useFocusableElements.js.map +1 -0
  1049. package/lib/hooks/useIcons.js +27 -1
  1050. package/lib/hooks/useIcons.js.map +1 -0
  1051. package/lib/hooks/useIdWithFallback.js +14 -1
  1052. package/lib/hooks/useIdWithFallback.js.map +1 -0
  1053. package/lib/hooks/useIntersectionObserver.js +23 -1
  1054. package/lib/hooks/useIntersectionObserver.js.map +1 -0
  1055. package/lib/hooks/useInterval.js +10 -1
  1056. package/lib/hooks/useInterval.js.map +1 -1
  1057. package/lib/hooks/useIsMobileBreakpoint.js +9 -1
  1058. package/lib/hooks/useIsMobileBreakpoint.js.map +1 -0
  1059. package/lib/hooks/useIsServerSide.js +16 -1
  1060. package/lib/hooks/useIsServerSide.js.map +1 -0
  1061. package/lib/hooks/useIsVisible.js +26 -1
  1062. package/lib/hooks/useIsVisible.js.map +1 -0
  1063. package/lib/hooks/useKeyboardEvent.js +30 -1
  1064. package/lib/hooks/useKeyboardEvent.js.map +1 -0
  1065. package/lib/hooks/useLanguage.js +16 -1
  1066. package/lib/hooks/useLanguage.js.map +1 -0
  1067. package/lib/hooks/useLayoutEvent.js +29 -1
  1068. package/lib/hooks/useLayoutEvent.js.map +1 -0
  1069. package/lib/hooks/useOutsideEvent.js +27 -1
  1070. package/lib/hooks/useOutsideEvent.js.map +1 -0
  1071. package/lib/hooks/usePrevious.js +17 -1
  1072. package/lib/hooks/usePrevious.js.map +1 -0
  1073. package/lib/hooks/usePseudoClasses.js +52 -1
  1074. package/lib/hooks/usePseudoClasses.js.map +1 -0
  1075. package/lib/hooks/useResizeObserver.js +30 -1
  1076. package/lib/hooks/useResizeObserver.js.map +1 -0
  1077. package/lib/hooks/useReturnFocusOnUnmount.js +21 -1
  1078. package/lib/hooks/useReturnFocusOnUnmount.js.map +1 -0
  1079. package/lib/hooks/useRovingFocus.js +45 -1
  1080. package/lib/hooks/useRovingFocus.js.map +1 -0
  1081. package/lib/hooks/useSize.js +31 -1
  1082. package/lib/hooks/useSize.js.map +1 -0
  1083. package/lib/hooks/useToggle.js +32 -1
  1084. package/lib/hooks/useToggle.js.map +1 -0
  1085. package/lib/hooks/usestopPropagation.js +17 -1
  1086. package/lib/hooks/usestopPropagation.js.map +1 -0
  1087. package/lib/index.js +18 -18
  1088. package/lib/resourceHelper.js +5 -2
  1089. package/lib/resourceHelper.js.map +1 -1
  1090. package/lib/theme/currys/color.js +11 -1
  1091. package/lib/theme/currys/color.js.map +1 -0
  1092. package/lib/theme/currys/index.js +2 -2
  1093. package/lib/theme/currys/spacing.js +26 -1
  1094. package/lib/theme/currys/spacing.js.map +1 -0
  1095. package/lib/theme/grid.js +25 -1
  1096. package/lib/theme/grid.js.map +1 -0
  1097. package/lib/theme/index.js +14 -1
  1098. package/lib/theme/index.js.map +1 -0
  1099. package/lib/theme/palette.js +86 -1
  1100. package/lib/theme/palette.js.map +1 -0
  1101. package/lib/theme/spacers.js +21 -1
  1102. package/lib/theme/spacers.js.map +1 -0
  1103. package/lib/utils/accessibility.js +24 -1
  1104. package/lib/utils/accessibility.js.map +1 -0
  1105. package/lib/utils/component.js +11 -1
  1106. package/lib/utils/component.js.map +1 -0
  1107. package/lib/utils/debounce.js +22 -1
  1108. package/lib/utils/debounce.js.map +1 -0
  1109. package/lib/utils/deepContains.js +22 -1
  1110. package/lib/utils/deepContains.js.map +1 -0
  1111. package/lib/utils/device.js +7 -1
  1112. package/lib/utils/device.js.map +1 -0
  1113. package/lib/utils/environment.js +6 -1
  1114. package/lib/utils/environment.js.map +1 -0
  1115. package/lib/utils/focus.js +17 -1
  1116. package/lib/utils/focus.js.map +1 -0
  1117. package/lib/utils/language.js +4 -3
  1118. package/lib/utils/language.js.map +1 -1
  1119. package/lib/utils/loremtext.js +6 -5
  1120. package/lib/utils/loremtext.js.map +1 -1
  1121. package/lib/utils/mobile.js +18 -1
  1122. package/lib/utils/mobile.js.map +1 -0
  1123. package/lib/utils/refs.js +26 -1
  1124. package/lib/utils/refs.js.map +1 -0
  1125. package/lib/utils/resource.js +10 -1
  1126. package/lib/utils/resource.js.map +1 -0
  1127. package/lib/utils/scroll.js +10 -1
  1128. package/lib/utils/scroll.js.map +1 -0
  1129. package/lib/utils/uuid.js +2 -2
  1130. package/lib/utils/viewport.js +8 -1
  1131. package/lib/utils/viewport.js.map +1 -0
  1132. package/lib/utils.js +4 -2
  1133. package/lib/utils.js.map +1 -1
  1134. package/lib/utils2.js +18 -13
  1135. package/lib/utils2.js.map +1 -1
  1136. package/lib/utils3.js +12 -9
  1137. package/lib/utils3.js.map +1 -1
  1138. package/lib/utils4.js +7 -5
  1139. package/lib/utils4.js.map +1 -1
  1140. package/lib/utils5.js +26 -22
  1141. package/lib/utils5.js.map +1 -1
  1142. package/lib/utils6.js +65 -10
  1143. package/lib/utils6.js.map +1 -1
  1144. package/lib/uuid.js +12 -9
  1145. package/lib/uuid.js.map +1 -1
  1146. package/package.json +26 -38
  1147. package/lib/AlertSignFill.js +0 -16
  1148. package/lib/AlertSignFill.js.map +0 -1
  1149. package/lib/AlertSignStroke.js +0 -16
  1150. package/lib/AlertSignStroke.js.map +0 -1
  1151. package/lib/ArrowDown.js +0 -28
  1152. package/lib/ArrowDown.js.map +0 -1
  1153. package/lib/ArrowRight.js +0 -16
  1154. package/lib/ArrowRight.js.map +0 -1
  1155. package/lib/ArrowUp.js +0 -28
  1156. package/lib/ArrowUp.js.map +0 -1
  1157. package/lib/ArrowUpRight.js +0 -16
  1158. package/lib/ArrowUpRight.js.map +0 -1
  1159. package/lib/BabyMobileMedium.js +0 -263
  1160. package/lib/BabyMobileMedium.js.map +0 -1
  1161. package/lib/Check.js +0 -16
  1162. package/lib/Check.js.map +0 -1
  1163. package/lib/CheckFill.js +0 -28
  1164. package/lib/CheckFill.js.map +0 -1
  1165. package/lib/CheckOutline.js +0 -14
  1166. package/lib/CheckOutline.js.map +0 -1
  1167. package/lib/Checkbox2.js +0 -5
  1168. package/lib/Checkbox2.js.map +0 -1
  1169. package/lib/ChevronDown.js +0 -16
  1170. package/lib/ChevronDown.js.map +0 -1
  1171. package/lib/ChevronLeft.js +0 -16
  1172. package/lib/ChevronLeft.js.map +0 -1
  1173. package/lib/ChevronRight.js +0 -16
  1174. package/lib/ChevronRight.js.map +0 -1
  1175. package/lib/ChevronUp.js +0 -16
  1176. package/lib/ChevronUp.js.map +0 -1
  1177. package/lib/ChildMedium.js +0 -126
  1178. package/lib/ChildMedium.js.map +0 -1
  1179. package/lib/DoctorMedium.js +0 -54
  1180. package/lib/DoctorMedium.js.map +0 -1
  1181. package/lib/DoctorSmall.js +0 -52
  1182. package/lib/DoctorSmall.js.map +0 -1
  1183. package/lib/DrawerNavigation2.js +0 -5
  1184. package/lib/DrawerNavigation2.js.map +0 -1
  1185. package/lib/EmptyBox.js +0 -16
  1186. package/lib/EmptyBox.js.map +0 -1
  1187. package/lib/ErrorSignFill.js +0 -16
  1188. package/lib/ErrorSignFill.js.map +0 -1
  1189. package/lib/FacialRecognitionFingerprintMedium.js +0 -199
  1190. package/lib/FacialRecognitionFingerprintMedium.js.map +0 -1
  1191. package/lib/Filter.js +0 -44
  1192. package/lib/Filter.js.map +0 -1
  1193. package/lib/FilterLinkList2.js +0 -5
  1194. package/lib/FilterLinkList2.js.map +0 -1
  1195. package/lib/FilterSearch2.js +0 -5
  1196. package/lib/FilterSearch2.js.map +0 -1
  1197. package/lib/Forward.js +0 -16
  1198. package/lib/Forward.js.map +0 -1
  1199. package/lib/GiveBabyFoodMedium.js +0 -240
  1200. package/lib/GiveBabyFoodMedium.js.map +0 -1
  1201. package/lib/HandWaving.js +0 -8
  1202. package/lib/HandWaving.js.map +0 -1
  1203. package/lib/HealthcarePersonnelMedium.js +0 -148
  1204. package/lib/HealthcarePersonnelMedium.js.map +0 -1
  1205. package/lib/HealthcarePersonnelSmall.js +0 -149
  1206. package/lib/HealthcarePersonnelSmall.js.map +0 -1
  1207. package/lib/IllustrationNames.js +0 -35
  1208. package/lib/IllustrationNames.js.map +0 -1
  1209. package/lib/InfoSignFill.js +0 -16
  1210. package/lib/InfoSignFill.js.map +0 -1
  1211. package/lib/Input2.js +0 -5
  1212. package/lib/Input2.js.map +0 -1
  1213. package/lib/Label.js +0 -5
  1214. package/lib/Label.js.map +0 -1
  1215. package/lib/PlusSmall.js +0 -16
  1216. package/lib/PlusSmall.js.map +0 -1
  1217. package/lib/Portal.js +0 -26
  1218. package/lib/Portal.js.map +0 -1
  1219. package/lib/RadioButton.js +0 -5
  1220. package/lib/ReadLettersMedium.js +0 -78
  1221. package/lib/ReadLettersMedium.js.map +0 -1
  1222. package/lib/Search.js +0 -26
  1223. package/lib/Search.js.map +0 -1
  1224. package/lib/StorkMedium.js +0 -96
  1225. package/lib/StorkMedium.js.map +0 -1
  1226. package/lib/StrollerMedium.js +0 -219
  1227. package/lib/StrollerMedium.js.map +0 -1
  1228. package/lib/Support2Medium.js +0 -158
  1229. package/lib/Support2Medium.js.map +0 -1
  1230. package/lib/ThinkingMedium.js +0 -98
  1231. package/lib/ThinkingMedium.js.map +0 -1
  1232. package/lib/Title2.js +0 -5
  1233. package/lib/Title2.js.map +0 -1
  1234. package/lib/TriangleX.js +0 -32
  1235. package/lib/TriangleX.js.map +0 -1
  1236. package/lib/VerticalDots.js +0 -16
  1237. package/lib/VerticalDots.js.map +0 -1
  1238. package/lib/X.js +0 -18
  1239. package/lib/X.js.map +0 -1
  1240. package/lib/_rolldown_dynamic_import_helper.js.map +0 -1
  1241. package/lib/accessibility.js +0 -17
  1242. package/lib/accessibility.js.map +0 -1
  1243. package/lib/color.js +0 -10
  1244. package/lib/color.js.map +0 -1
  1245. package/lib/component.js +0 -10
  1246. package/lib/component.js.map +0 -1
  1247. package/lib/constants3.js +0 -46
  1248. package/lib/constants3.js.map +0 -1
  1249. package/lib/currys.js +0 -0
  1250. package/lib/debounce.js +0 -16
  1251. package/lib/debounce.js.map +0 -1
  1252. package/lib/deepContains.js +0 -13
  1253. package/lib/deepContains.js.map +0 -1
  1254. package/lib/device.js +0 -6
  1255. package/lib/device.js.map +0 -1
  1256. package/lib/environment.js +0 -5
  1257. package/lib/environment.js.map +0 -1
  1258. package/lib/focus.js +0 -11
  1259. package/lib/focus.js.map +0 -1
  1260. package/lib/grid.js +0 -24
  1261. package/lib/grid.js.map +0 -1
  1262. package/lib/mobile.js +0 -14
  1263. package/lib/mobile.js.map +0 -1
  1264. package/lib/palette.js +0 -85
  1265. package/lib/palette.js.map +0 -1
  1266. package/lib/refs.js +0 -14
  1267. package/lib/refs.js.map +0 -1
  1268. package/lib/resource.js +0 -4
  1269. package/lib/resource.js.map +0 -1
  1270. package/lib/scroll.js +0 -9
  1271. package/lib/scroll.js.map +0 -1
  1272. package/lib/spacers.js +0 -20
  1273. package/lib/spacers.js.map +0 -1
  1274. package/lib/spacing.js +0 -25
  1275. package/lib/spacing.js.map +0 -1
  1276. package/lib/src.js +0 -0
  1277. package/lib/theme.js +0 -13
  1278. package/lib/theme.js.map +0 -1
  1279. package/lib/useBreakpoint.js +0 -38
  1280. package/lib/useBreakpoint.js.map +0 -1
  1281. package/lib/useElementList.js +0 -38
  1282. package/lib/useElementList.js.map +0 -1
  1283. package/lib/useExpand.js +0 -18
  1284. package/lib/useExpand.js.map +0 -1
  1285. package/lib/useFocusToggle.js +0 -26
  1286. package/lib/useFocusToggle.js.map +0 -1
  1287. package/lib/useFocusTrap.js +0 -34
  1288. package/lib/useFocusTrap.js.map +0 -1
  1289. package/lib/useFocusableElements.js +0 -26
  1290. package/lib/useFocusableElements.js.map +0 -1
  1291. package/lib/useIcons.js +0 -26
  1292. package/lib/useIcons.js.map +0 -1
  1293. package/lib/useIdWithFallback.js +0 -8
  1294. package/lib/useIdWithFallback.js.map +0 -1
  1295. package/lib/useIntersectionObserver.js +0 -14
  1296. package/lib/useIntersectionObserver.js.map +0 -1
  1297. package/lib/useIsMobileBreakpoint.js +0 -8
  1298. package/lib/useIsMobileBreakpoint.js.map +0 -1
  1299. package/lib/useIsServerSide.js +0 -10
  1300. package/lib/useIsServerSide.js.map +0 -1
  1301. package/lib/useIsVisible.js +0 -16
  1302. package/lib/useIsVisible.js.map +0 -1
  1303. package/lib/useKeyboardEvent.js +0 -22
  1304. package/lib/useKeyboardEvent.js.map +0 -1
  1305. package/lib/useLanguage.js +0 -10
  1306. package/lib/useLanguage.js.map +0 -1
  1307. package/lib/useLayoutEvent.js +0 -21
  1308. package/lib/useLayoutEvent.js.map +0 -1
  1309. package/lib/useOutsideEvent.js +0 -20
  1310. package/lib/useOutsideEvent.js.map +0 -1
  1311. package/lib/usePrevious.js +0 -11
  1312. package/lib/usePrevious.js.map +0 -1
  1313. package/lib/usePseudoClasses.js +0 -46
  1314. package/lib/usePseudoClasses.js.map +0 -1
  1315. package/lib/useResizeObserver.js +0 -23
  1316. package/lib/useResizeObserver.js.map +0 -1
  1317. package/lib/useReturnFocusOnUnmount.js +0 -16
  1318. package/lib/useReturnFocusOnUnmount.js.map +0 -1
  1319. package/lib/useRovingFocus.js +0 -44
  1320. package/lib/useRovingFocus.js.map +0 -1
  1321. package/lib/useSize.js +0 -23
  1322. package/lib/useSize.js.map +0 -1
  1323. package/lib/useToggle.js +0 -24
  1324. package/lib/useToggle.js.map +0 -1
  1325. package/lib/usestopPropagation.js +0 -11
  1326. package/lib/usestopPropagation.js.map +0 -1
  1327. package/lib/viewport.js +0 -7
  1328. package/lib/viewport.js.map +0 -1
  1329. package/lib/withBreakpoint.js +0 -16
  1330. package/lib/withBreakpoint.js.map +0 -1
@@ -1,10 +1,10 @@
1
- import { n as AnalyticsId } from "../../constants2.js";
2
- import { n as useBreakpoint } from "../../useBreakpoint.js";
3
- import { n as getAriaLabelAttributes } from "../../accessibility.js";
4
- import { t as useIsVisible } from "../../useIsVisible.js";
5
- import { t as useLayoutEvent } from "../../useLayoutEvent.js";
1
+ import { AnalyticsId } from "../../constants.js";
2
+ import { useBreakpoint } from "../../hooks/useBreakpoint.js";
3
+ import { getAriaLabelAttributes } from "../../utils/accessibility.js";
4
+ import { useIsVisible } from "../../hooks/useIsVisible.js";
5
+ import { useLayoutEvent } from "../../hooks/useLayoutEvent.js";
6
6
  import { t as HorizontalScroll_default } from "../../HorizontalScroll.js";
7
- import { a as TextAlign, i as SortDirection, n as ModeType, o as defaultConfig, r as ResponsiveTableVariant, s as simpleConfig, t as HeaderCategory } from "../../constants3.js";
7
+ import { a as TextAlign, i as SortDirection, n as ModeType, o as defaultConfig, r as ResponsiveTableVariant, s as simpleConfig, t as HeaderCategory } from "../../constants2.js";
8
8
  import { a as omitProps, i as mapChildrenWithMode, n as getCenteredOverflowTableStyle, r as getCurrentConfig, t as getBreakpointClass } from "../../utils6.js";
9
9
  import { n as TableBody } from "../../TableBody.js";
10
10
  import { n as TableCell } from "../../TableCell.js";
@@ -16,8 +16,9 @@ import { n as TableRow } from "../../TableRow.js";
16
16
  import classNames from "classnames";
17
17
  import { useEffect, useRef, useState } from "react";
18
18
  import { jsx } from "react/jsx-runtime";
19
- import styles from "./styles.module.scss";
20
- const Table = ({ id, testId, className, children, breakpointConfig = defaultConfig, mode = ModeType.normal, scrollAriaLabel, scrollAriaLabelledById, ...rest }) => {
19
+ import tableStyles from "./styles.module.scss";
20
+ //#region src/components/Table/Table.tsx
21
+ var Table = ({ id, testId, className, children, breakpointConfig = defaultConfig, mode = ModeType.normal, scrollAriaLabel, scrollAriaLabelledById, ...rest }) => {
21
22
  const [currentConfig, setCurrentConfig] = useState();
22
23
  const [tableWidth, setTableWidth] = useState(0);
23
24
  const [parentWidth, setParentWidth] = useState(0);
@@ -43,7 +44,7 @@ const Table = ({ id, testId, className, children, breakpointConfig = defaultConf
43
44
  }, [tableWidth, tableIsVisible]);
44
45
  const tableStyle = currentConfig?.variant === ResponsiveTableVariant.centeredoverflow ? getCenteredOverflowTableStyle(parentWidth, tableWidth) : void 0;
45
46
  const breakpointClass = getBreakpointClass(currentConfig);
46
- const tableClass = classNames(styles.table, breakpointClass, className);
47
+ const tableClass = classNames(tableStyles.table, breakpointClass, className);
47
48
  const domRest = omitProps(rest, [
48
49
  "breakpoint",
49
50
  "variant",
@@ -72,7 +73,10 @@ const Table = ({ id, testId, className, children, breakpointConfig = defaultConf
72
73
  });
73
74
  return table;
74
75
  };
76
+ //#endregion
77
+ //#region src/components/Table/index.ts
75
78
  var Table_default = Table;
79
+ //#endregion
76
80
  export { HeaderCategory, ModeType, ResponsiveTableVariant, SortDirection, Table, TableBody, TableCell, TableExpandedRow, TableExpanderCell, TableHead, TableHeadCell, TableRow, TextAlign, Table_default as default, defaultConfig, getBreakpointClass, getCenteredOverflowTableStyle, getCurrentConfig, mapChildrenWithMode, omitProps, simpleConfig };
77
81
 
78
82
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["Table: React.FC<Props>"],"sources":["../../../src/components/Table/Table.tsx","../../../src/components/Table/index.ts"],"sourcesContent":["import { useEffect, useRef, useState } from 'react';\n\nimport classNames from 'classnames';\n\nimport type { Breakpoint } from '../../hooks/useBreakpoint';\n\nimport { defaultConfig, ModeType, ResponsiveTableVariant } from './constants';\nimport { getCurrentConfig, getBreakpointClass, getCenteredOverflowTableStyle, mapChildrenWithMode, omitProps } from './utils';\nimport { AnalyticsId } from '../../constants';\nimport { useBreakpoint } from '../../hooks/useBreakpoint';\nimport { useIsVisible } from '../../hooks/useIsVisible';\nimport { useLayoutEvent } from '../../hooks/useLayoutEvent';\nimport { getAriaLabelAttributes } from '../../utils/accessibility';\nimport HorizontalScroll from '../HorizontalScroll';\n\nimport styles from './styles.module.scss';\n\nexport interface BreakpointConfig {\n /** Breakpoint at which responsive behaviour will be applied. The table component uses a \"desktop first\" approach. */\n breakpoint: keyof typeof Breakpoint;\n /** Desired behaviour on this breakpoint and all smaller screens. */\n variant: keyof typeof ResponsiveTableVariant;\n /** If variant is horizontallscroll, use a fallback instead of device is not a touch device. */\n fallbackVariant?: keyof typeof ResponsiveTableVariant;\n}\n\nexport interface Props extends Omit<React.ComponentPropsWithoutRef<'table'>, 'style'> {\n /** Unique ID */\n id?: string;\n /** Id used for testing */\n testId?: string;\n /** Customize how the table behaves on various screen widths */\n breakpointConfig?: BreakpointConfig | BreakpointConfig[];\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the content of the table. Use TableHead and TableBody */\n children: React.ReactNode;\n /** For display with less space. Discouraged to use together with interactive elements. */\n mode?: ModeType;\n /** Sets aria-label of the horizontal scroll container. scrollAriaLabel or scrollAriaLabelledById MUST be set if horizontal scrolling is enabled! */\n scrollAriaLabel?: string;\n /** Sets aria-labelledby of the horizontal scroll container. scrollAriaLabel or scrollAriaLabelledById MUST be set if horizontal scrolling is enabled! */\n scrollAriaLabelledById?: string;\n}\n\nexport const Table: React.FC<Props> = ({\n id,\n testId,\n className,\n children,\n breakpointConfig = defaultConfig,\n mode = ModeType.normal,\n scrollAriaLabel,\n scrollAriaLabelledById,\n ...rest\n}) => {\n const [currentConfig, setCurrentConfig] = useState<BreakpointConfig>();\n const [tableWidth, setTableWidth] = useState<number>(0);\n const [parentWidth, setParentWidth] = useState<number>(0);\n const [windowWidth, setWindowWidth] = useState(window.innerWidth);\n const tableRef = useRef<HTMLTableElement>(null);\n const tableIsVisible = useIsVisible(tableRef, 0);\n const breakpoint = useBreakpoint();\n\n useEffect(() => {\n setCurrentConfig(getCurrentConfig(breakpointConfig, breakpoint, tableWidth, windowWidth));\n }, [breakpointConfig, breakpoint, tableWidth, windowWidth]);\n\n useEffect(() => {\n if (\n currentConfig?.variant === ResponsiveTableVariant.centeredoverflow ||\n currentConfig?.variant === ResponsiveTableVariant.horizontalscroll\n ) {\n setTableWidth(tableRef.current?.getBoundingClientRect().width ?? 0);\n }\n if (currentConfig?.variant === ResponsiveTableVariant.centeredoverflow) {\n setParentWidth(tableRef.current?.parentElement?.getBoundingClientRect().width ?? 0);\n }\n }, [currentConfig, breakpoint]);\n\n useLayoutEvent(() => setWindowWidth(window.innerWidth), ['resize'], 100);\n\n useEffect(() => {\n if (tableWidth === 0 && tableIsVisible) {\n setTableWidth(tableRef.current?.getBoundingClientRect().width ?? 0);\n }\n }, [tableWidth, tableIsVisible]);\n\n const tableStyle =\n currentConfig?.variant === ResponsiveTableVariant.centeredoverflow ? getCenteredOverflowTableStyle(parentWidth, tableWidth) : undefined;\n\n const breakpointClass = getBreakpointClass(currentConfig);\n const tableClass = classNames(styles.table, breakpointClass, className);\n const domRest = omitProps(rest as Record<string, unknown>, ['breakpoint', 'variant', 'fallbackVariant', 'headerCategory']);\n\n const table = (\n <table\n className={tableClass}\n id={id}\n data-testid={testId}\n data-analyticsid={AnalyticsId.Table}\n ref={tableRef}\n style={tableStyle}\n {...(domRest as React.ComponentPropsWithoutRef<'table'>)}\n >\n {mapChildrenWithMode(children, mode)}\n </table>\n );\n\n const ariaLabelAttributes = getAriaLabelAttributes({ label: scrollAriaLabel, id: scrollAriaLabelledById });\n\n if (currentConfig?.variant === ResponsiveTableVariant.horizontalscroll) {\n return (\n <HorizontalScroll childWidth={tableWidth} testId=\"horizontal-scroll\" {...ariaLabelAttributes}>\n {table}\n </HorizontalScroll>\n );\n }\n\n return table;\n};\n\nexport default Table;\n","import { Table } from './Table';\n\nexport { TableBody } from './TableBody';\nexport { TableCell } from './TableCell';\nexport { TableExpandedRow } from './TableExpandedRow';\nexport { TableExpanderCell } from './TableExpanderCell';\nexport { TableHead } from './TableHead';\nexport { TableHeadCell } from './TableHeadCell';\nexport { TableRow } from './TableRow';\nexport { SortDirection, HeaderCategory, TextAlign, ResponsiveTableVariant, ModeType, defaultConfig, simpleConfig } from './constants';\n\nexport * from './Table';\nexport * from './utils';\n\nexport default Table;\n"],"mappings":";;;;;;;;;;;;;;;;;;;AA6CA,MAAaA,SAA0B,EACrC,IACA,QACA,WACA,UACA,mBAAmB,eACnB,OAAO,SAAS,QAChB,iBACA,wBACA,GAAG,WACC;CACJ,MAAM,CAAC,eAAe,oBAAoB,UAA4B;CACtE,MAAM,CAAC,YAAY,iBAAiB,SAAiB,EAAE;CACvD,MAAM,CAAC,aAAa,kBAAkB,SAAiB,EAAE;CACzD,MAAM,CAAC,aAAa,kBAAkB,SAAS,OAAO,WAAW;CACjE,MAAM,WAAW,OAAyB,KAAK;CAC/C,MAAM,iBAAiB,aAAa,UAAU,EAAE;CAChD,MAAM,aAAa,eAAe;AAElC,iBAAgB;AACd,mBAAiB,iBAAiB,kBAAkB,YAAY,YAAY,YAAY,CAAC;IACxF;EAAC;EAAkB;EAAY;EAAY;EAAY,CAAC;AAE3D,iBAAgB;AACd,MACE,eAAe,YAAY,uBAAuB,oBAClD,eAAe,YAAY,uBAAuB,iBAElD,eAAc,SAAS,SAAS,uBAAuB,CAAC,SAAS,EAAE;AAErE,MAAI,eAAe,YAAY,uBAAuB,iBACpD,gBAAe,SAAS,SAAS,eAAe,uBAAuB,CAAC,SAAS,EAAE;IAEpF,CAAC,eAAe,WAAW,CAAC;AAE/B,sBAAqB,eAAe,OAAO,WAAW,EAAE,CAAC,SAAS,EAAE,IAAI;AAExE,iBAAgB;AACd,MAAI,eAAe,KAAK,eACtB,eAAc,SAAS,SAAS,uBAAuB,CAAC,SAAS,EAAE;IAEpE,CAAC,YAAY,eAAe,CAAC;CAEhC,MAAM,aACJ,eAAe,YAAY,uBAAuB,mBAAmB,8BAA8B,aAAa,WAAW,GAAG,KAAA;CAEhI,MAAM,kBAAkB,mBAAmB,cAAc;CACzD,MAAM,aAAa,WAAW,OAAO,OAAO,iBAAiB,UAAU;CACvE,MAAM,UAAU,UAAU,MAAiC;EAAC;EAAc;EAAW;EAAmB;EAAiB,CAAC;CAE1H,MAAM,QACJ,oBAAC,SAAA;EACC,WAAW;EACP;EACJ,eAAa;EACb,oBAAkB,YAAY;EAC9B,KAAK;EACL,OAAO;EACP,GAAK;YAEJ,oBAAoB,UAAU,KAAK;GAC9B;CAGV,MAAM,sBAAsB,uBAAuB;EAAE,OAAO;EAAiB,IAAI;EAAwB,CAAC;AAE1G,KAAI,eAAe,YAAY,uBAAuB,iBACpD,QACE,oBAAC,0BAAA;EAAiB,YAAY;EAAY,QAAO;EAAoB,GAAI;YACtE;GACgB;AAIvB,QAAO;;ACzGT,IAAA,gBAAe"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../src/components/Table/Table.tsx","../../../src/components/Table/index.ts"],"sourcesContent":["import { useEffect, useRef, useState } from 'react';\n\nimport classNames from 'classnames';\n\nimport type { Breakpoint } from '../../hooks/useBreakpoint';\n\nimport { defaultConfig, ModeType, ResponsiveTableVariant } from './constants';\nimport { getCurrentConfig, getBreakpointClass, getCenteredOverflowTableStyle, mapChildrenWithMode, omitProps } from './utils';\nimport { AnalyticsId } from '../../constants';\nimport { useBreakpoint } from '../../hooks/useBreakpoint';\nimport { useIsVisible } from '../../hooks/useIsVisible';\nimport { useLayoutEvent } from '../../hooks/useLayoutEvent';\nimport { getAriaLabelAttributes } from '../../utils/accessibility';\nimport HorizontalScroll from '../HorizontalScroll';\n\nimport styles from './styles.module.scss';\n\nexport interface BreakpointConfig {\n /** Breakpoint at which responsive behaviour will be applied. The table component uses a \"desktop first\" approach. */\n breakpoint: keyof typeof Breakpoint;\n /** Desired behaviour on this breakpoint and all smaller screens. */\n variant: keyof typeof ResponsiveTableVariant;\n /** If variant is horizontallscroll, use a fallback instead of device is not a touch device. */\n fallbackVariant?: keyof typeof ResponsiveTableVariant;\n}\n\nexport interface Props extends Omit<React.ComponentPropsWithoutRef<'table'>, 'style'> {\n /** Unique ID */\n id?: string;\n /** Id used for testing */\n testId?: string;\n /** Customize how the table behaves on various screen widths */\n breakpointConfig?: BreakpointConfig | BreakpointConfig[];\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the content of the table. Use TableHead and TableBody */\n children: React.ReactNode;\n /** For display with less space. Discouraged to use together with interactive elements. */\n mode?: ModeType;\n /** Sets aria-label of the horizontal scroll container. scrollAriaLabel or scrollAriaLabelledById MUST be set if horizontal scrolling is enabled! */\n scrollAriaLabel?: string;\n /** Sets aria-labelledby of the horizontal scroll container. scrollAriaLabel or scrollAriaLabelledById MUST be set if horizontal scrolling is enabled! */\n scrollAriaLabelledById?: string;\n}\n\nexport const Table: React.FC<Props> = ({\n id,\n testId,\n className,\n children,\n breakpointConfig = defaultConfig,\n mode = ModeType.normal,\n scrollAriaLabel,\n scrollAriaLabelledById,\n ...rest\n}) => {\n const [currentConfig, setCurrentConfig] = useState<BreakpointConfig>();\n const [tableWidth, setTableWidth] = useState<number>(0);\n const [parentWidth, setParentWidth] = useState<number>(0);\n const [windowWidth, setWindowWidth] = useState(window.innerWidth);\n const tableRef = useRef<HTMLTableElement>(null);\n const tableIsVisible = useIsVisible(tableRef, 0);\n const breakpoint = useBreakpoint();\n\n useEffect(() => {\n setCurrentConfig(getCurrentConfig(breakpointConfig, breakpoint, tableWidth, windowWidth));\n }, [breakpointConfig, breakpoint, tableWidth, windowWidth]);\n\n useEffect(() => {\n if (\n currentConfig?.variant === ResponsiveTableVariant.centeredoverflow ||\n currentConfig?.variant === ResponsiveTableVariant.horizontalscroll\n ) {\n setTableWidth(tableRef.current?.getBoundingClientRect().width ?? 0);\n }\n if (currentConfig?.variant === ResponsiveTableVariant.centeredoverflow) {\n setParentWidth(tableRef.current?.parentElement?.getBoundingClientRect().width ?? 0);\n }\n }, [currentConfig, breakpoint]);\n\n useLayoutEvent(() => setWindowWidth(window.innerWidth), ['resize'], 100);\n\n useEffect(() => {\n if (tableWidth === 0 && tableIsVisible) {\n setTableWidth(tableRef.current?.getBoundingClientRect().width ?? 0);\n }\n }, [tableWidth, tableIsVisible]);\n\n const tableStyle =\n currentConfig?.variant === ResponsiveTableVariant.centeredoverflow ? getCenteredOverflowTableStyle(parentWidth, tableWidth) : undefined;\n\n const breakpointClass = getBreakpointClass(currentConfig);\n const tableClass = classNames(styles.table, breakpointClass, className);\n const domRest = omitProps(rest as Record<string, unknown>, ['breakpoint', 'variant', 'fallbackVariant', 'headerCategory']);\n\n const table = (\n <table\n className={tableClass}\n id={id}\n data-testid={testId}\n data-analyticsid={AnalyticsId.Table}\n ref={tableRef}\n style={tableStyle}\n {...(domRest as React.ComponentPropsWithoutRef<'table'>)}\n >\n {mapChildrenWithMode(children, mode)}\n </table>\n );\n\n const ariaLabelAttributes = getAriaLabelAttributes({ label: scrollAriaLabel, id: scrollAriaLabelledById });\n\n if (currentConfig?.variant === ResponsiveTableVariant.horizontalscroll) {\n return (\n <HorizontalScroll childWidth={tableWidth} testId=\"horizontal-scroll\" {...ariaLabelAttributes}>\n {table}\n </HorizontalScroll>\n );\n }\n\n return table;\n};\n\nexport default Table;\n","import { Table } from './Table';\n\nexport { TableBody } from './TableBody';\nexport { TableCell } from './TableCell';\nexport { TableExpandedRow } from './TableExpandedRow';\nexport { TableExpanderCell } from './TableExpanderCell';\nexport { TableHead } from './TableHead';\nexport { TableHeadCell } from './TableHeadCell';\nexport { TableRow } from './TableRow';\nexport { SortDirection, HeaderCategory, TextAlign, ResponsiveTableVariant, ModeType, defaultConfig, simpleConfig } from './constants';\n\nexport * from './Table';\nexport * from './utils';\n\nexport default Table;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AA6CA,IAAa,SAA0B,EACrC,IACA,QACA,WACA,UACA,mBAAmB,eACnB,OAAO,SAAS,QAChB,iBACA,wBACA,GAAG,WACC;CACJ,MAAM,CAAC,eAAe,oBAAoB,UAA4B;CACtE,MAAM,CAAC,YAAY,iBAAiB,SAAiB,EAAE;CACvD,MAAM,CAAC,aAAa,kBAAkB,SAAiB,EAAE;CACzD,MAAM,CAAC,aAAa,kBAAkB,SAAS,OAAO,WAAW;CACjE,MAAM,WAAW,OAAyB,KAAK;CAC/C,MAAM,iBAAiB,aAAa,UAAU,EAAE;CAChD,MAAM,aAAa,eAAe;CAElC,gBAAgB;EACd,iBAAiB,iBAAiB,kBAAkB,YAAY,YAAY,YAAY,CAAC;IACxF;EAAC;EAAkB;EAAY;EAAY;EAAY,CAAC;CAE3D,gBAAgB;EACd,IACE,eAAe,YAAY,uBAAuB,oBAClD,eAAe,YAAY,uBAAuB,kBAElD,cAAc,SAAS,SAAS,uBAAuB,CAAC,SAAS,EAAE;EAErE,IAAI,eAAe,YAAY,uBAAuB,kBACpD,eAAe,SAAS,SAAS,eAAe,uBAAuB,CAAC,SAAS,EAAE;IAEpF,CAAC,eAAe,WAAW,CAAC;CAE/B,qBAAqB,eAAe,OAAO,WAAW,EAAE,CAAC,SAAS,EAAE,IAAI;CAExE,gBAAgB;EACd,IAAI,eAAe,KAAK,gBACtB,cAAc,SAAS,SAAS,uBAAuB,CAAC,SAAS,EAAE;IAEpE,CAAC,YAAY,eAAe,CAAC;CAEhC,MAAM,aACJ,eAAe,YAAY,uBAAuB,mBAAmB,8BAA8B,aAAa,WAAW,GAAG,KAAA;CAEhI,MAAM,kBAAkB,mBAAmB,cAAc;CACzD,MAAM,aAAa,WAAW,YAAO,OAAO,iBAAiB,UAAU;CACvE,MAAM,UAAU,UAAU,MAAiC;EAAC;EAAc;EAAW;EAAmB;EAAiB,CAAC;CAE1H,MAAM,QACJ,oBAAC,SAAD;EACE,WAAW;EACP;EACJ,eAAa;EACb,oBAAkB,YAAY;EAC9B,KAAK;EACL,OAAO;EACP,GAAK;YAEJ,oBAAoB,UAAU,KAAK;EAC9B,CAAA;CAGV,MAAM,sBAAsB,uBAAuB;EAAE,OAAO;EAAiB,IAAI;EAAwB,CAAC;CAE1G,IAAI,eAAe,YAAY,uBAAuB,kBACpD,OACE,oBAAC,0BAAD;EAAkB,YAAY;EAAY,QAAO;EAAoB,GAAI;YACtE;EACgB,CAAA;CAIvB,OAAO;;;;ACzGT,IAAA,gBAAe"}
@@ -1,6 +1,6 @@
1
- import { s as LanguageLocales } from "../../constants2.js";
2
- import { n as useLanguage } from "../../useLanguage.js";
3
- import { n as Tab_default, t as TabList_default } from "../../TabList.js";
1
+ import { LanguageLocales } from "../../constants.js";
2
+ import { useLanguage } from "../../hooks/useLanguage.js";
3
+ import { n as Tab, t as TabList_default } from "../../TabList.js";
4
4
  import { t as TabPanel_default } from "../../TabPanel.js";
5
5
  import classNames from "classnames";
6
6
  import React, { useRef, useState } from "react";
@@ -15,14 +15,18 @@ var HN_Designsystem_Tabs_nb_NO_default = {
15
15
  ariaLabelRightButton: "Scroll til høyre",
16
16
  ariaLabelLeftButton: "Scroll til venstre"
17
17
  };
18
- const getResources = (language) => {
18
+ //#endregion
19
+ //#region src/components/Tabs/resourceHelper.ts
20
+ var getResources = (language) => {
19
21
  switch (language) {
20
22
  case LanguageLocales.ENGLISH: return HN_Designsystem_Tabs_en_GB_default;
21
23
  case LanguageLocales.NORWEGIAN:
22
24
  default: return HN_Designsystem_Tabs_nb_NO_default;
23
25
  }
24
26
  };
25
- const TabsRoot = ({ activeTab, children, className, color = "white", containerBreakout = true, onColor = "onwhite", sticky = true, testId, resources, zIndex }) => {
27
+ //#endregion
28
+ //#region src/components/Tabs/Tabs.tsx
29
+ var TabsRoot = ({ activeTab, children, className, color = "white", containerBreakout = true, onColor = "onwhite", sticky = true, testId, resources, zIndex }) => {
26
30
  const isControlled = activeTab !== void 0;
27
31
  const [uncontrolledValue, setUncontrolledValue] = useState(0);
28
32
  const tabsRef = useRef(null);
@@ -70,9 +74,12 @@ const TabsRoot = ({ activeTab, children, className, color = "white", containerBr
70
74
  var Tabs = TabsRoot;
71
75
  TabsRoot.displayName = "Tabs";
72
76
  Tabs.displayName = "Tabs";
73
- Tabs.Tab = Tab_default;
77
+ Tabs.Tab = Tab;
74
78
  Tabs.Tab.displayName = "Tabs.Tab";
79
+ //#endregion
80
+ //#region src/components/Tabs/index.ts
75
81
  var Tabs_default = Tabs;
82
+ //#endregion
76
83
  export { TabsRoot, Tabs_default as default };
77
84
 
78
85
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["TabsRoot: React.FC<TabsProps>","mergedResources: HNDesignsystemTabs","onColorUsed: TabsOnColor"],"sources":["../../../src/resources/HN.Designsystem.Tabs.en-GB.json","../../../src/resources/HN.Designsystem.Tabs.nb-NO.json","../../../src/components/Tabs/resourceHelper.ts","../../../src/components/Tabs/Tabs.tsx","../../../src/components/Tabs/index.ts"],"sourcesContent":["{\n \"ariaLabelRightButton\": \"Scroll right\",\n \"ariaLabelLeftButton\": \"Scroll left\"\n}\n","{\n \"ariaLabelRightButton\": \"Scroll til høyre\",\n \"ariaLabelLeftButton\": \"Scroll til venstre\"\n}\n","import type { HNDesignsystemTabs } from '../../resources/Resources';\n\nimport { LanguageLocales } from '../../constants';\nimport enGB from '../../resources/HN.Designsystem.Tabs.en-GB.json';\nimport nbNO from '../../resources/HN.Designsystem.Tabs.nb-NO.json';\n\nexport const getResources = (language: LanguageLocales): HNDesignsystemTabs => {\n switch (language) {\n case LanguageLocales.ENGLISH:\n return enGB;\n case LanguageLocales.NORWEGIAN:\n default:\n return nbNO;\n }\n};\n","import React, { useState, useRef } from 'react';\n\nimport classNames from 'classnames';\n\nimport type { HNDesignsystemTabs } from '../../resources/Resources';\nimport type { PaletteNames } from '../../theme/palette';\n\nimport { getResources } from './resourceHelper';\nimport Tab from './Tab';\nimport TabList from './TabList';\nimport TabPanel from './TabPanel';\nimport { LanguageLocales } from '../../constants';\nimport { useLanguage } from '../../hooks/useLanguage';\nimport designsystemlayout from '../../scss/layout.module.scss';\n\nimport styles from './styles.module.scss';\n\nexport type { TabProps } from './Tab';\nexport type TabsColors = Extract<PaletteNames, 'blueberry' | 'neutral' | 'white'>;\nexport type TabsOnColor = 'onblueberry' | 'onneutral' | 'onwhite';\n\nexport interface TabsProps {\n children?: React.ReactNode;\n /** Controlled state for Tabs component */\n activeTab?: number;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the color of the tabs. Default: white */\n color?: TabsColors;\n /** Sets wether the component should use the container-breakout class. Default: true */\n containerBreakout?: boolean;\n /** Sets the background color of the tabs. Can only be used when the color is set to white. Default: onwhite */\n onColor?: TabsOnColor;\n /** Whether the tab list should be sticky */\n sticky?: boolean;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Resources for component */\n resources?: Partial<HNDesignsystemTabs>;\n /** Overrides the default z-index of the tabs header */\n zIndex?: number;\n}\n\nexport const TabsRoot: React.FC<TabsProps> = ({\n activeTab,\n children,\n className,\n color = 'white',\n containerBreakout = true,\n onColor = 'onwhite',\n sticky = true,\n testId,\n resources,\n zIndex,\n}) => {\n const isControlled = activeTab !== undefined;\n const [uncontrolledValue, setUncontrolledValue] = useState(0);\n const tabsRef = useRef<HTMLDivElement>(null);\n const tabPanelRef = useRef<HTMLDivElement>(null);\n const tabListRef = useRef<HTMLDivElement>(null);\n const { language } = useLanguage<LanguageLocales>(LanguageLocales.NORWEGIAN);\n const defaultResources = getResources(language);\n\n const mergedResources: HNDesignsystemTabs = {\n ...defaultResources,\n ...resources,\n };\n\n let onColorUsed: TabsOnColor = 'onwhite';\n if (color === 'white') {\n onColorUsed = onColor;\n }\n\n const onValueChange = (newValue: number): void => {\n if (!isControlled) {\n setUncontrolledValue(newValue);\n }\n };\n\n const activeTabIndex = isControlled ? activeTab : uncontrolledValue;\n\n return (\n <div className={classNames(className, containerBreakout && designsystemlayout['container-breakout'])} data-testid={testId}>\n <div\n ref={tabListRef}\n className={classNames(styles['tab-list-wrapper'], {\n [styles['tab-list-wrapper--sticky']]: sticky,\n })}\n style={{\n zIndex: zIndex,\n }}\n >\n <TabList\n onTabListClick={(index: number) => onValueChange(index)}\n selectedTab={activeTabIndex}\n color={color}\n onColor={onColorUsed}\n ariaLabelLeftButton={mergedResources.ariaLabelLeftButton}\n ariaLabelRightButton={mergedResources.ariaLabelRightButton}\n >\n {children}\n </TabList>\n <div className={classNames(styles['panel-wrapper'], styles[`panel-wrapper--${color}`])}></div>\n </div>\n <div ref={tabsRef} style={{ marginTop: '-50px' }}>\n <TabPanel ref={tabPanelRef} color={color} isFirst={activeTabIndex == 0}>\n {React.Children.toArray(children)[activeTabIndex]}\n </TabPanel>\n </div>\n </div>\n );\n};\n\ntype TabsComponent = typeof TabsRoot & {\n Tab: typeof Tab;\n};\nconst Tabs = TabsRoot as TabsComponent;\nTabsRoot.displayName = 'Tabs';\nTabs.displayName = 'Tabs';\nTabs.Tab = Tab;\nTabs.Tab.displayName = 'Tabs.Tab';\n\nexport default Tabs;\n","import Tabs from './Tabs';\nexport * from './Tabs';\nexport default Tabs;\n"],"mappings":";;;;;;;;;;;;;;;;;AEMA,MAAa,gBAAgB,aAAkD;AAC7E,SAAQ,UAAR;EACE,KAAK,gBAAgB,QACnB,QAAO;EACT,KAAK,gBAAgB;EACrB,QACE,QAAO;;;AC+Bb,MAAaA,YAAiC,EAC5C,WACA,UACA,WACA,QAAQ,SACR,oBAAoB,MACpB,UAAU,WACV,SAAS,MACT,QACA,WACA,aACI;CACJ,MAAM,eAAe,cAAc,KAAA;CACnC,MAAM,CAAC,mBAAmB,wBAAwB,SAAS,EAAE;CAC7D,MAAM,UAAU,OAAuB,KAAK;CAC5C,MAAM,cAAc,OAAuB,KAAK;CAChD,MAAM,aAAa,OAAuB,KAAK;CAC/C,MAAM,EAAE,aAAa,YAA6B,gBAAgB,UAAU;CAG5E,MAAMC,kBAAsC;EAC1C,GAHuB,aAAa,SAAS;EAI7C,GAAG;EACJ;CAED,IAAIC,cAA2B;AAC/B,KAAI,UAAU,QACZ,eAAc;CAGhB,MAAM,iBAAiB,aAA2B;AAChD,MAAI,CAAC,aACH,sBAAqB,SAAS;;CAIlC,MAAM,iBAAiB,eAAe,YAAY;AAElD,QACE,qBAAC,OAAA;EAAI,WAAW,WAAW,WAAW,qBAAqB,mBAAmB,sBAAsB;EAAE,eAAa;aACjH,qBAAC,OAAA;GACC,KAAK;GACL,WAAW,WAAW,OAAO,qBAAqB,GAC/C,OAAO,8BAA8B,QACvC,CAAC;GACF,OAAO,EACG,QACT;cAED,oBAAC,iBAAA;IACC,iBAAiB,UAAkB,cAAc,MAAM;IACvD,aAAa;IACN;IACP,SAAS;IACT,qBAAqB,gBAAgB;IACrC,sBAAsB,gBAAgB;IAErC;KACO,EACV,oBAAC,OAAA,EAAI,WAAW,WAAW,OAAO,kBAAkB,OAAO,kBAAkB,SAAS,EAAA,CAAQ,CAAA;IAC1F,EACN,oBAAC,OAAA;GAAI,KAAK;GAAS,OAAO,EAAE,WAAW,SAAS;aAC9C,oBAAC,kBAAA;IAAS,KAAK;IAAoB;IAAO,SAAS,kBAAkB;cAClE,MAAM,SAAS,QAAQ,SAAS,CAAC;KACzB;IACP,CAAA;GACF;;AAOV,IAAM,OAAO;AACb,SAAS,cAAc;AACvB,KAAK,cAAc;AACnB,KAAK,MAAM;AACX,KAAK,IAAI,cAAc;ACtHvB,IAAA,eDwHe"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../src/resources/HN.Designsystem.Tabs.en-GB.json","../../../src/resources/HN.Designsystem.Tabs.nb-NO.json","../../../src/components/Tabs/resourceHelper.ts","../../../src/components/Tabs/Tabs.tsx","../../../src/components/Tabs/index.ts"],"sourcesContent":["{\n \"ariaLabelRightButton\": \"Scroll right\",\n \"ariaLabelLeftButton\": \"Scroll left\"\n}\n","{\n \"ariaLabelRightButton\": \"Scroll til høyre\",\n \"ariaLabelLeftButton\": \"Scroll til venstre\"\n}\n","import type { HNDesignsystemTabs } from '../../resources/Resources';\n\nimport { LanguageLocales } from '../../constants';\nimport enGB from '../../resources/HN.Designsystem.Tabs.en-GB.json';\nimport nbNO from '../../resources/HN.Designsystem.Tabs.nb-NO.json';\n\nexport const getResources = (language: LanguageLocales): HNDesignsystemTabs => {\n switch (language) {\n case LanguageLocales.ENGLISH:\n return enGB;\n case LanguageLocales.NORWEGIAN:\n default:\n return nbNO;\n }\n};\n","import React, { useState, useRef } from 'react';\n\nimport classNames from 'classnames';\n\nimport type { HNDesignsystemTabs } from '../../resources/Resources';\nimport type { PaletteNames } from '../../theme/palette';\n\nimport { getResources } from './resourceHelper';\nimport Tab from './Tab';\nimport TabList from './TabList';\nimport TabPanel from './TabPanel';\nimport { LanguageLocales } from '../../constants';\nimport { useLanguage } from '../../hooks/useLanguage';\nimport designsystemlayout from '../../scss/layout.module.scss';\n\nimport styles from './styles.module.scss';\n\nexport type { TabProps } from './Tab';\nexport type TabsColors = Extract<PaletteNames, 'blueberry' | 'neutral' | 'white'>;\nexport type TabsOnColor = 'onblueberry' | 'onneutral' | 'onwhite';\n\nexport interface TabsProps {\n children?: React.ReactNode;\n /** Controlled state for Tabs component */\n activeTab?: number;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the color of the tabs. Default: white */\n color?: TabsColors;\n /** Sets wether the component should use the container-breakout class. Default: true */\n containerBreakout?: boolean;\n /** Sets the background color of the tabs. Can only be used when the color is set to white. Default: onwhite */\n onColor?: TabsOnColor;\n /** Whether the tab list should be sticky */\n sticky?: boolean;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Resources for component */\n resources?: Partial<HNDesignsystemTabs>;\n /** Overrides the default z-index of the tabs header */\n zIndex?: number;\n}\n\nexport const TabsRoot: React.FC<TabsProps> = ({\n activeTab,\n children,\n className,\n color = 'white',\n containerBreakout = true,\n onColor = 'onwhite',\n sticky = true,\n testId,\n resources,\n zIndex,\n}) => {\n const isControlled = activeTab !== undefined;\n const [uncontrolledValue, setUncontrolledValue] = useState(0);\n const tabsRef = useRef<HTMLDivElement>(null);\n const tabPanelRef = useRef<HTMLDivElement>(null);\n const tabListRef = useRef<HTMLDivElement>(null);\n const { language } = useLanguage<LanguageLocales>(LanguageLocales.NORWEGIAN);\n const defaultResources = getResources(language);\n\n const mergedResources: HNDesignsystemTabs = {\n ...defaultResources,\n ...resources,\n };\n\n let onColorUsed: TabsOnColor = 'onwhite';\n if (color === 'white') {\n onColorUsed = onColor;\n }\n\n const onValueChange = (newValue: number): void => {\n if (!isControlled) {\n setUncontrolledValue(newValue);\n }\n };\n\n const activeTabIndex = isControlled ? activeTab : uncontrolledValue;\n\n return (\n <div className={classNames(className, containerBreakout && designsystemlayout['container-breakout'])} data-testid={testId}>\n <div\n ref={tabListRef}\n className={classNames(styles['tab-list-wrapper'], {\n [styles['tab-list-wrapper--sticky']]: sticky,\n })}\n style={{\n zIndex: zIndex,\n }}\n >\n <TabList\n onTabListClick={(index: number) => onValueChange(index)}\n selectedTab={activeTabIndex}\n color={color}\n onColor={onColorUsed}\n ariaLabelLeftButton={mergedResources.ariaLabelLeftButton}\n ariaLabelRightButton={mergedResources.ariaLabelRightButton}\n >\n {children}\n </TabList>\n <div className={classNames(styles['panel-wrapper'], styles[`panel-wrapper--${color}`])}></div>\n </div>\n <div ref={tabsRef} style={{ marginTop: '-50px' }}>\n <TabPanel ref={tabPanelRef} color={color} isFirst={activeTabIndex == 0}>\n {React.Children.toArray(children)[activeTabIndex]}\n </TabPanel>\n </div>\n </div>\n );\n};\n\ntype TabsComponent = typeof TabsRoot & {\n Tab: typeof Tab;\n};\nconst Tabs = TabsRoot as TabsComponent;\nTabsRoot.displayName = 'Tabs';\nTabs.displayName = 'Tabs';\nTabs.Tab = Tab;\nTabs.Tab.displayName = 'Tabs.Tab';\n\nexport default Tabs;\n","import Tabs from './Tabs';\nexport * from './Tabs';\nexport default Tabs;\n"],"mappings":";;;;;;;;;;;;;;;;;;;AEMA,IAAa,gBAAgB,aAAkD;CAC7E,QAAQ,UAAR;EACE,KAAK,gBAAgB,SACnB,OAAO;EACT,KAAK,gBAAgB;EACrB,SACE,OAAO;;;;;AC+Bb,IAAa,YAAiC,EAC5C,WACA,UACA,WACA,QAAQ,SACR,oBAAoB,MACpB,UAAU,WACV,SAAS,MACT,QACA,WACA,aACI;CACJ,MAAM,eAAe,cAAc,KAAA;CACnC,MAAM,CAAC,mBAAmB,wBAAwB,SAAS,EAAE;CAC7D,MAAM,UAAU,OAAuB,KAAK;CAC5C,MAAM,cAAc,OAAuB,KAAK;CAChD,MAAM,aAAa,OAAuB,KAAK;CAC/C,MAAM,EAAE,aAAa,YAA6B,gBAAgB,UAAU;CAG5E,MAAM,kBAAsC;EAC1C,GAHuB,aAAa,SAGjC;EACH,GAAG;EACJ;CAED,IAAI,cAA2B;CAC/B,IAAI,UAAU,SACZ,cAAc;CAGhB,MAAM,iBAAiB,aAA2B;EAChD,IAAI,CAAC,cACH,qBAAqB,SAAS;;CAIlC,MAAM,iBAAiB,eAAe,YAAY;CAElD,OACE,qBAAC,OAAD;EAAK,WAAW,WAAW,WAAW,qBAAqB,mBAAmB,sBAAsB;EAAE,eAAa;YAAnH,CACE,qBAAC,OAAD;GACE,KAAK;GACL,WAAW,WAAW,OAAO,qBAAqB,GAC/C,OAAO,8BAA8B,QACvC,CAAC;GACF,OAAO,EACG,QACT;aAPH,CASE,oBAAC,iBAAD;IACE,iBAAiB,UAAkB,cAAc,MAAM;IACvD,aAAa;IACN;IACP,SAAS;IACT,qBAAqB,gBAAgB;IACrC,sBAAsB,gBAAgB;IAErC;IACO,CAAA,EACV,oBAAC,OAAD,EAAK,WAAW,WAAW,OAAO,kBAAkB,OAAO,kBAAkB,SAAS,EAAQ,CAAA,CAC1F;MACN,oBAAC,OAAD;GAAK,KAAK;GAAS,OAAO,EAAE,WAAW,SAAS;aAC9C,oBAAC,kBAAD;IAAU,KAAK;IAAoB;IAAO,SAAS,kBAAkB;cAClE,MAAM,SAAS,QAAQ,SAAS,CAAC;IACzB,CAAA;GACP,CAAA,CACF;;;AAOV,IAAM,OAAO;AACb,SAAS,cAAc;AACvB,KAAK,cAAc;AACnB,KAAK,MAAM;AACX,KAAK,IAAI,cAAc;;;ACtHvB,IAAA,eAAe"}
@@ -1,17 +1,7 @@
1
- import { PaletteNames } from '../../theme/palette';
2
- import { SvgIcon } from '../Icon';
3
- import { IconName } from '../Icons/IconNames';
4
- import { TagSize, TagVariant } from './constants';
5
- export type TagColors = Extract<PaletteNames, 'blueberry' | 'neutral' | 'cherry' | 'banana' | 'kiwi' | 'plum'>;
1
+ import { TagVariant } from './constants';
6
2
  export interface TagProps {
7
3
  /** Sets the text of the tag */
8
4
  children: string;
9
- /** Sets the size of the tag. Default: medium */
10
- size?: keyof typeof TagSize;
11
- /** Sets the background of the tag. Default: blueberry */
12
- color?: TagColors;
13
- /** Adds an icon to the tag. */
14
- svgIcon?: SvgIcon | IconName;
15
5
  variant?: keyof typeof TagVariant;
16
6
  /** Sets the data-testid attribute on the expander button. */
17
7
  testId?: string;
@@ -1,9 +1,5 @@
1
- export declare enum TagSize {
2
- medium = "medium",
3
- large = "large"
4
- }
5
1
  export declare enum TagVariant {
6
2
  normal = "normal",
7
- oncolor = "oncolor",
8
- emphasised = "emphasised"
3
+ accent1 = "accent1",
4
+ accent2 = "accent2"
9
5
  }
@@ -1,4 +1,4 @@
1
1
  import { default as Tag } from './Tag';
2
- export { TagSize, TagVariant } from './constants';
2
+ export { TagVariant } from './constants';
3
3
  export * from './Tag';
4
4
  export default Tag;
@@ -1,44 +1,29 @@
1
- import { a as IconSize, n as AnalyticsId } from "../../constants2.js";
2
- import { t as palette } from "../../palette.js";
3
- import { t as Icon_default } from "../../Icon.js";
4
- import { t as LazyIcon_default } from "../../LazyIcon.js";
1
+ import { AnalyticsId } from "../../constants.js";
5
2
  import classNames from "classnames";
6
- import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { jsx } from "react/jsx-runtime";
7
4
  import styles from "./styles.module.scss";
8
- let TagSize = /* @__PURE__ */ function(TagSize$1) {
9
- TagSize$1["medium"] = "medium";
10
- TagSize$1["large"] = "large";
11
- return TagSize$1;
12
- }({});
13
- let TagVariant = /* @__PURE__ */ function(TagVariant$1) {
14
- TagVariant$1["normal"] = "normal";
15
- TagVariant$1["oncolor"] = "oncolor";
16
- TagVariant$1["emphasised"] = "emphasised";
17
- return TagVariant$1;
18
- }({});
5
+ //#region src/components/Tag/Tag.tsx
19
6
  var Tag = (props) => {
20
- const { children, size = TagSize.medium, color = "blueberry", svgIcon, variant = "normal", testId } = props;
21
- return /* @__PURE__ */ jsxs("span", {
22
- className: classNames(styles.tag, styles[`tag--${size}`], styles[`tag--${color}`], {
23
- [styles["tag--has-icon"]]: svgIcon,
24
- [styles["tag--emphasised"]]: variant == TagVariant.emphasised
25
- }),
7
+ const { children, variant = "normal", testId } = props;
8
+ return /* @__PURE__ */ jsx("span", {
9
+ className: classNames(styles.tag, styles[`tag--${variant}`]),
26
10
  "data-testid": testId,
27
11
  "data-analyticsid": AnalyticsId.Tag,
28
- children: [svgIcon && (typeof svgIcon === "string" ? /* @__PURE__ */ jsx(LazyIcon_default, {
29
- iconName: svgIcon,
30
- size: IconSize.XXSmall,
31
- color: palette[`${color}800`],
32
- className: styles.tag__icon
33
- }) : /* @__PURE__ */ jsx(Icon_default, {
34
- svgIcon,
35
- size: IconSize.XXSmall,
36
- color: palette[`${color}800`],
37
- className: styles.tag__icon
38
- })), children]
12
+ children
39
13
  });
40
14
  };
15
+ //#endregion
16
+ //#region src/components/Tag/constants.ts
17
+ var TagVariant = /* @__PURE__ */ function(TagVariant) {
18
+ TagVariant["normal"] = "normal";
19
+ TagVariant["accent1"] = "accent1";
20
+ TagVariant["accent2"] = "accent2";
21
+ return TagVariant;
22
+ }({});
23
+ //#endregion
24
+ //#region src/components/Tag/index.ts
41
25
  var Tag_default = Tag;
42
- export { TagSize, TagVariant, Tag_default as default };
26
+ //#endregion
27
+ export { TagVariant, Tag_default as default };
43
28
 
44
29
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["Tag: React.FC<TagProps>"],"sources":["../../../src/components/Tag/constants.ts","../../../src/components/Tag/Tag.tsx","../../../src/components/Tag/index.ts"],"sourcesContent":["export enum TagSize {\n medium = 'medium',\n large = 'large',\n}\n\nexport enum TagVariant {\n normal = 'normal',\n oncolor = 'oncolor',\n emphasised = 'emphasised',\n}\n","import cn from 'classnames';\n\nimport type { PaletteNames } from '../../theme/palette';\nimport type { SvgIcon } from '../Icon';\nimport type { IconName } from '../Icons/IconNames';\n\nimport { TagSize, TagVariant } from './constants';\nimport { AnalyticsId } from '../../constants';\nimport { palette } from '../../theme/palette';\nimport Icon, { IconSize } from '../Icon';\nimport LazyIcon from '../LazyIcon';\n\nimport styles from './styles.module.scss';\n\nexport type TagColors = Extract<PaletteNames, 'blueberry' | 'neutral' | 'cherry' | 'banana' | 'kiwi' | 'plum'>;\n\nexport interface TagProps {\n /** Sets the text of the tag */\n children: string;\n /** Sets the size of the tag. Default: medium */\n size?: keyof typeof TagSize;\n /** Sets the background of the tag. Default: blueberry */\n color?: TagColors;\n /** Adds an icon to the tag. */\n svgIcon?: SvgIcon | IconName;\n /* Changes the appearance of the tag. Default: normal */\n variant?: keyof typeof TagVariant;\n /** Sets the data-testid attribute on the expander button. */\n testId?: string;\n}\n\nconst Tag: React.FC<TagProps> = props => {\n const { children, size = TagSize.medium, color = 'blueberry', svgIcon, variant = 'normal', testId } = props;\n\n const tagClasses = cn(styles.tag, styles[`tag--${size}`], styles[`tag--${color}`], {\n [styles['tag--has-icon']]: svgIcon,\n [styles['tag--emphasised']]: variant == TagVariant.emphasised,\n });\n\n return (\n <span className={tagClasses} data-testid={testId} data-analyticsid={AnalyticsId.Tag}>\n {svgIcon &&\n (typeof svgIcon === 'string' ? (\n <LazyIcon iconName={svgIcon} size={IconSize.XXSmall} color={palette[`${color}800`]} className={styles.tag__icon} />\n ) : (\n <Icon svgIcon={svgIcon} size={IconSize.XXSmall} color={palette[`${color}800`]} className={styles.tag__icon} />\n ))}\n {children}\n </span>\n );\n};\n\nexport default Tag;\n","import Tag from './Tag';\nexport { TagSize, TagVariant } from './constants';\nexport * from './Tag';\nexport default Tag;\n"],"mappings":";;;;;;;AAAA,IAAY,UAAA,yBAAA,WAAL;AACL,WAAA,YAAA;AACA,WAAA,WAAA;;;AAGF,IAAY,aAAA,yBAAA,cAAL;AACL,cAAA,YAAA;AACA,cAAA,aAAA;AACA,cAAA,gBAAA;;;ACuBF,IAAMA,OAA0B,UAAS;CACvC,MAAM,EAAE,UAAU,OAAO,QAAQ,QAAQ,QAAQ,aAAa,SAAS,UAAU,UAAU,WAAW;AAOtG,QACE,qBAAC,QAAA;EAAK,WANW,WAAG,OAAO,KAAK,OAAO,QAAQ,SAAS,OAAO,QAAQ,UAAU;IAChF,OAAO,mBAAmB;IAC1B,OAAO,qBAAqB,WAAW,WAAW;GACpD,CAAC;EAG6B,eAAa;EAAQ,oBAAkB,YAAY;aAC7E,YACE,OAAO,YAAY,WAClB,oBAAC,kBAAA;GAAS,UAAU;GAAS,MAAM,SAAS;GAAS,OAAO,QAAQ,GAAG,MAAM;GAAO,WAAW,OAAO;IAAa,GAEnH,oBAAC,cAAA;GAAc;GAAS,MAAM,SAAS;GAAS,OAAO,QAAQ,GAAG,MAAM;GAAO,WAAW,OAAO;IAAa,GAEjH,SAAA;GACI;;AC7CX,IAAA,cDiDe"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../src/components/Tag/Tag.tsx","../../../src/components/Tag/constants.ts","../../../src/components/Tag/index.ts"],"sourcesContent":["import cn from 'classnames';\n\nimport type { TagVariant } from './constants';\n\nimport { AnalyticsId } from '../../constants';\n\nimport styles from './styles.module.scss';\n\nexport interface TagProps {\n /** Sets the text of the tag */\n children: string;\n /* Changes the appearance of the tag. Default: normal */\n variant?: keyof typeof TagVariant;\n /** Sets the data-testid attribute on the expander button. */\n testId?: string;\n}\n\nconst Tag: React.FC<TagProps> = props => {\n const { children, variant = 'normal', testId } = props;\n\n const tagClasses = cn(styles.tag, styles[`tag--${variant}`]);\n\n return (\n <span className={tagClasses} data-testid={testId} data-analyticsid={AnalyticsId.Tag}>\n {children}\n </span>\n );\n};\n\nexport default Tag;\n","export enum TagVariant {\n normal = 'normal',\n accent1 = 'accent1',\n accent2 = 'accent2',\n}\n","import Tag from './Tag';\nexport { TagVariant } from './constants';\nexport * from './Tag';\nexport default Tag;\n"],"mappings":";;;;;AAiBA,IAAM,OAA0B,UAAS;CACvC,MAAM,EAAE,UAAU,UAAU,UAAU,WAAW;CAIjD,OACE,oBAAC,QAAD;EAAM,WAHW,WAAG,OAAO,KAAK,OAAO,QAAQ,WAG9B;EAAY,eAAa;EAAQ,oBAAkB,YAAY;EAC7E;EACI,CAAA;;;;ACzBX,IAAY,aAAL,yBAAA,YAAA;CACL,WAAA,YAAS;CACT,WAAA,aAAU;CACV,WAAA,aAAU;;KACX;;;ACDD,IAAA,cAAe"}
@@ -1,72 +1,39 @@
1
1
  @use 'sass:map';
2
- @use '../../scss/spacers' as spacers;
3
- @use '../../scss/palette' as palette;
4
2
  @use '../../scss/breakpoints' as breakpoints;
3
+ @import '../../scss/supernova/styles/spacers.css';
5
4
 
6
5
  .tag {
7
6
  $tag: &;
8
7
 
9
8
  display: inline-flex;
10
- justify-content: space-between;
9
+ box-sizing: border-box;
11
10
  align-items: center;
12
11
  text-transform: uppercase;
13
- border-width: 1px;
14
- border-style: solid;
15
- background-color: transparent;
16
-
17
- // komponenten bruker ekstra liten font-size og line-height
12
+ border: 1px solid transparent;
13
+ height: 1.25rem;
18
14
  font-size: 0.875rem;
19
- line-height: 1.125rem;
15
+ line-height: 1.25rem;
20
16
  font-weight: 600;
21
17
  border-radius: 4px;
18
+ padding: 0 var(--core-space-2xs);
19
+ padding-top: 0.1875rem;
22
20
 
23
- $colors: 'blueberry', 'neutral', 'cherry', 'banana', 'kiwi', 'plum';
24
-
25
- @each $color in $colors {
26
- &--#{$color},
27
- // Sørg for at fargene overstyrer dersom tag har type=button
28
- &--#{$color}[type='button'] {
29
- // banana og kiwi har unntak fra hovedregelen
30
- @if $color == 'banana' {
31
- color: map.get(palette.$palette-map, #{$color}800);
32
- border-color: map.get(palette.$palette-map, #{$color}700);
33
- } @else if $color == 'kiwi' {
34
- color: map.get(palette.$palette-map, #{$color}900);
35
- border-color: map.get(palette.$palette-map, #{$color}700);
36
- } @else {
37
- color: map.get(palette.$palette-map, #{$color}800);
38
- border-color: map.get(palette.$palette-map, #{$color}800);
39
- }
40
-
41
- &#{$tag}--emphasised {
42
- background-color: map.get(palette.$palette-map, #{$color}50);
43
- }
44
- }
21
+ @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
22
+ height: 1.5rem;
45
23
  }
46
24
 
47
- &--medium {
48
- padding: 0 spacers.getSpacer(2xs);
49
- min-height: 1.625rem;
50
-
51
- &#{$tag}--has-icon {
52
- padding: 0 spacers.getSpacer(2xs) 0 0.375rem;
53
- }
54
-
55
- #{$tag}__icon {
56
- margin-right: spacers.getSpacer(4xs);
57
- }
25
+ &--normal {
26
+ color: var(--core-color-neutral-800);
27
+ border-color: var(--core-color-neutral-600);
58
28
  }
59
29
 
60
- &--large {
61
- padding: 0 spacers.getSpacer(xs);
62
- min-height: 1.875rem;
63
-
64
- &#{$tag}--has-icon {
65
- padding: spacers.getSpacer(4xs) spacers.getSpacer(xs) spacers.getSpacer(4xs) 0.375rem;
66
- }
30
+ &--accent1 {
31
+ color: var(--core-color-kiwi-900);
32
+ border-color: var(--core-color-kiwi-700);
33
+ }
67
34
 
68
- #{$tag}__icon {
69
- margin-right: spacers.getSpacer(4xs);
70
- }
35
+ &--accent2 {
36
+ color: var(--core-color-banana-800);
37
+ border-color: var(--core-color-banana-700);
71
38
  }
72
39
  }
@@ -1,16 +1,8 @@
1
1
  export type Styles = {
2
2
  tag: string;
3
- tag__icon: string;
4
- 'tag--banana': string;
5
- 'tag--blueberry': string;
6
- 'tag--cherry': string;
7
- 'tag--emphasised': string;
8
- 'tag--has-icon': string;
9
- 'tag--kiwi': string;
10
- 'tag--large': string;
11
- 'tag--medium': string;
12
- 'tag--neutral': string;
13
- 'tag--plum': string;
3
+ 'tag--accent1': string;
4
+ 'tag--accent2': string;
5
+ 'tag--normal': string;
14
6
  };
15
7
 
16
8
  export type ClassNames = keyof Styles;
@@ -1,7 +1,8 @@
1
- import { n as AnalyticsId } from "../../constants2.js";
1
+ import { AnalyticsId } from "../../constants.js";
2
2
  import React from "react";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  import styles from "./styles.module.scss";
5
+ //#region src/components/TagList/TagList.tsx
5
6
  var TagList = ({ children, testId }) => {
6
7
  return /* @__PURE__ */ jsx("ul", {
7
8
  className: styles["tag-list"],
@@ -13,7 +14,10 @@ var TagList = ({ children, testId }) => {
13
14
  }))
14
15
  });
15
16
  };
17
+ //#endregion
18
+ //#region src/components/TagList/index.ts
16
19
  var TagList_default = TagList;
20
+ //#endregion
17
21
  export { TagList_default as default };
18
22
 
19
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["TagList: React.FC<TagListPropsProps>"],"sources":["../../../src/components/TagList/TagList.tsx","../../../src/components/TagList/index.ts"],"sourcesContent":["import React from 'react';\n\nimport { AnalyticsId } from '../../constants';\n\nimport styles from './styles.module.scss';\n\nexport interface TagListPropsProps {\n children?: React.ReactNode;\n /** Sets the data-testid attribute on the expander button. */\n testId?: string;\n}\n\nconst TagList: React.FC<TagListPropsProps> = ({ children, testId }) => {\n return (\n <ul className={styles['tag-list']} data-testid={testId} data-analyticsid={AnalyticsId.TagList}>\n {React.Children.map(children, child => (\n <li className={styles['tag-list__item']}>{child}</li>\n ))}\n </ul>\n );\n};\n\nexport default TagList;\n","import TagList from './TagList';\nexport * from './TagList';\nexport default TagList;\n"],"mappings":";;;;AAYA,IAAMA,WAAwC,EAAE,UAAU,aAAa;AACrE,QACE,oBAAC,MAAA;EAAG,WAAW,OAAO;EAAa,eAAa;EAAQ,oBAAkB,YAAY;YACnF,MAAM,SAAS,IAAI,WAAU,UAC5B,oBAAC,MAAA;GAAG,WAAW,OAAO;aAAoB;IAAW,CACrD;GACC;;AChBT,IAAA,kBDoBe"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../src/components/TagList/TagList.tsx","../../../src/components/TagList/index.ts"],"sourcesContent":["import React from 'react';\n\nimport { AnalyticsId } from '../../constants';\n\nimport styles from './styles.module.scss';\n\nexport interface TagListPropsProps {\n children?: React.ReactNode;\n /** Sets the data-testid attribute on the expander button. */\n testId?: string;\n}\n\nconst TagList: React.FC<TagListPropsProps> = ({ children, testId }) => {\n return (\n <ul className={styles['tag-list']} data-testid={testId} data-analyticsid={AnalyticsId.TagList}>\n {React.Children.map(children, child => (\n <li className={styles['tag-list__item']}>{child}</li>\n ))}\n </ul>\n );\n};\n\nexport default TagList;\n","import TagList from './TagList';\nexport * from './TagList';\nexport default TagList;\n"],"mappings":";;;;;AAYA,IAAM,WAAwC,EAAE,UAAU,aAAa;CACrE,OACE,oBAAC,MAAD;EAAI,WAAW,OAAO;EAAa,eAAa;EAAQ,oBAAkB,YAAY;YACnF,MAAM,SAAS,IAAI,WAAU,UAC5B,oBAAC,MAAD;GAAI,WAAW,OAAO;aAAoB;GAAW,CAAA,CACrD;EACC,CAAA;;;;AChBT,IAAA,kBAAe"}
@@ -1,14 +1,15 @@
1
- import { a as IconSize, n as AnalyticsId } from "../../constants2.js";
2
- import { t as usePseudoClasses } from "../../usePseudoClasses.js";
3
- import { n as mergeRefs } from "../../refs.js";
1
+ import { AnalyticsId, IconSize } from "../../constants.js";
2
+ import { usePseudoClasses } from "../../hooks/usePseudoClasses.js";
3
+ import { mergeRefs } from "../../utils/refs.js";
4
4
  import { t as Icon_default } from "../../Icon.js";
5
5
  import { t as LazyIcon_default } from "../../LazyIcon.js";
6
- import { t as isComponent } from "../../component.js";
7
- import { n as useBreakpoint, t as Breakpoint } from "../../useBreakpoint.js";
6
+ import { isComponent } from "../../utils/component.js";
7
+ import { Breakpoint, useBreakpoint } from "../../hooks/useBreakpoint.js";
8
8
  import classNames from "classnames";
9
9
  import React from "react";
10
10
  import { jsx, jsxs } from "react/jsx-runtime";
11
11
  import tileStyles from "./styles.module.scss";
12
+ //#region src/components/Tile/Tile.tsx
12
13
  var Title = (props) => {
13
14
  const { compact, children, className, htmlMarkup = "span", highlighted, ref } = props;
14
15
  return /* @__PURE__ */ jsx(htmlMarkup, {
@@ -21,7 +22,7 @@ var Title = (props) => {
21
22
  });
22
23
  };
23
24
  Title.displayName = "Title";
24
- const Tile = (props) => {
25
+ var Tile = (props) => {
25
26
  const { children, icon, title, className = "", description, fixed = false, highlighted = false, testId, target, rel, variant = "normal", href, onClick, ref } = props;
26
27
  const { refObject, isHovered } = usePseudoClasses();
27
28
  const mobile = useBreakpoint() < Breakpoint.md;
@@ -66,7 +67,10 @@ const Tile = (props) => {
66
67
  };
67
68
  Tile.displayName = "Tile";
68
69
  Tile.Title = Title;
70
+ //#endregion
71
+ //#region src/components/Tile/index.ts
69
72
  var Tile_default = Tile;
73
+ //#endregion
70
74
  export { Tile, Tile_default as default };
71
75
 
72
76
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["Title: React.FC<TileTitleProps>","Tile: TileCompound"],"sources":["../../../src/components/Tile/Tile.tsx","../../../src/components/Tile/index.ts"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport type { LazyIconProps } from '../LazyIcon';\nimport type { TitleTags } from './../Title/Title';\n\nimport { AnalyticsId } from '../../constants';\nimport { useBreakpoint, Breakpoint } from '../../hooks/useBreakpoint';\nimport { usePseudoClasses } from '../../hooks/usePseudoClasses';\nimport { isComponent } from '../../utils/component';\nimport { mergeRefs } from '../../utils/refs';\nimport Icon, { IconSize, type BaseIconProps, type IconProps } from '../Icon';\nimport LazyIcon from '../LazyIcon';\n\nimport tileStyles from './styles.module.scss';\n\nexport type TileVariants = 'normal' | 'compact';\n\ninterface TileProps extends Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href' | 'target' | 'onClick' | 'rel'> {\n children?: React.ReactNode;\n /** Adds custom classes to the element. */\n className?: string;\n /**\tSets the icon to be displayed inside the tile. */\n icon: React.ReactElement;\n /**\tSets the title to be displayed inside the tile. */\n title: React.ReactElement;\n /** Toggles the highlighted style of the tile. */\n highlighted?: boolean;\n /** Sets the description to be displayed inside the tile. */\n description?: string;\n /** Sets a fixed max and min width for the tile. */\n fixed?: boolean;\n /** Sets the visual variant of the component */\n variant?: TileVariants;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Ref passed to the component */\n ref?: React.Ref<HTMLAnchorElement | null>;\n}\n\ninterface TileTitleProps {\n children: React.ReactNode;\n className?: string;\n htmlMarkup?: TitleTags;\n highlighted?: boolean;\n compact?: boolean;\n /** Ref passed to the title element */\n ref?: React.Ref<HTMLHeadingElement | null>;\n}\n\nexport interface TileCompound extends React.FC<TileProps> {\n Title: React.FC<TileTitleProps>;\n}\n\nconst Title: React.FC<TileTitleProps> = props => {\n const { compact, children, className, htmlMarkup = 'span', highlighted, ref } = props;\n const titleClasses = classNames(\n tileStyles['tile__title'],\n {\n [tileStyles['tile__title--highlighted']]: highlighted,\n [tileStyles['tile__title--compact']]: compact,\n },\n className\n );\n const CustomTag = htmlMarkup;\n\n return (\n <CustomTag className={titleClasses} ref={ref}>\n {children}\n </CustomTag>\n );\n};\n\nTitle.displayName = 'Title';\n\nexport const Tile: TileCompound = props => {\n const {\n children,\n icon,\n title,\n className = '',\n description,\n fixed = false,\n highlighted = false,\n testId,\n target,\n rel,\n variant = 'normal',\n href,\n onClick,\n ref,\n } = props;\n const { refObject, isHovered } = usePseudoClasses<HTMLAnchorElement>();\n const breakpoint = useBreakpoint();\n const mobile = breakpoint < Breakpoint.md;\n const compact = variant === 'compact';\n const tileClasses = classNames(\n tileStyles.tile,\n {\n [tileStyles['tile--fixed']]: fixed,\n [tileStyles['tile--compact']]: compact,\n [tileStyles['tile--highlighted']]: highlighted,\n },\n className\n );\n const tileTitleWrapperClasses = classNames(tileStyles['title-wrapper'], {\n [tileStyles['title-wrapper--compact']]: compact,\n });\n\n return (\n <a\n ref={mergeRefs([ref, refObject])}\n href={href}\n target={target}\n rel={target === '_blank' ? 'noopener noreferrer' : rel}\n className={tileClasses}\n data-testid={testId}\n data-analyticsid={AnalyticsId.Tile}\n onClick={onClick}\n >\n <div className={tileTitleWrapperClasses}>\n {(isComponent<IconProps>(icon, Icon) || isComponent<LazyIconProps>(icon, LazyIcon)) &&\n React.cloneElement(icon as React.ReactElement<BaseIconProps>, {\n size: mobile ? IconSize.Small : IconSize.Medium,\n isHovered,\n color: highlighted ? 'white' : 'black',\n })}\n {isComponent<TileTitleProps>(title, Tile.Title) && React.cloneElement(title, { highlighted: highlighted, compact: compact })}\n </div>\n {!compact && !mobile && <p className={tileStyles.tile__description}>{description}</p>}\n {children && <div className={tileStyles.tile__children}>{children}</div>}\n </a>\n );\n};\n\nTile.displayName = 'Tile';\nTile.Title = Title;\n\nexport default Tile;\n","import Tile from './Tile';\nexport * from './Tile';\nexport default Tile;\n"],"mappings":";;;;;;;;;;;AAuDA,IAAMA,SAAkC,UAAS;CAC/C,MAAM,EAAE,SAAS,UAAU,WAAW,aAAa,QAAQ,aAAa,QAAQ;AAWhF,QACE,oBAHgB,YAGf;EAAU,WAXQ,WACnB,WAAW,gBACX;IACG,WAAW,8BAA8B;IACzC,WAAW,0BAA0B;GACvC,EACD,UACD;EAI0C;EACtC;GACS;;AAIhB,MAAM,cAAc;AAEpB,MAAaC,QAAqB,UAAS;CACzC,MAAM,EACJ,UACA,MACA,OACA,YAAY,IACZ,aACA,QAAQ,OACR,cAAc,OACd,QACA,QACA,KACA,UAAU,UACV,MACA,SACA,QACE;CACJ,MAAM,EAAE,WAAW,cAAc,kBAAqC;CAEtE,MAAM,SADa,eAAe,GACN,WAAW;CACvC,MAAM,UAAU,YAAY;CAC5B,MAAM,cAAc,WAClB,WAAW,MACX;GACG,WAAW,iBAAiB;GAC5B,WAAW,mBAAmB;GAC9B,WAAW,uBAAuB;EACpC,EACD,UACD;CACD,MAAM,0BAA0B,WAAW,WAAW,kBAAkB,GACrE,WAAW,4BAA4B,SACzC,CAAC;AAEF,QACE,qBAAC,KAAA;EACC,KAAK,UAAU,CAAC,KAAK,UAAU,CAAC;EAC1B;EACE;EACR,KAAK,WAAW,WAAW,wBAAwB;EACnD,WAAW;EACX,eAAa;EACb,oBAAkB,YAAY;EACrB;;GAET,qBAAC,OAAA;IAAI,WAAW;gBACZ,YAAuB,MAAM,aAAK,IAAI,YAA2B,MAAM,iBAAS,KAChF,MAAM,aAAa,MAA2C;KAC5D,MAAM,SAAS,SAAS,QAAQ,SAAS;KACzC;KACA,OAAO,cAAc,UAAU;KAChC,CAAC,EACH,YAA4B,OAAO,KAAK,MAAM,IAAI,MAAM,aAAa,OAAO;KAAe;KAAsB;KAAS,CAAC,CAAA;KACxH;GACL,CAAC,WAAW,CAAC,UAAU,oBAAC,KAAA;IAAE,WAAW,WAAW;cAAoB;KAAgB;GACpF,YAAY,oBAAC,OAAA;IAAI,WAAW,WAAW;IAAiB;KAAe;;GACtE;;AAIR,KAAK,cAAc;AACnB,KAAK,QAAQ;ACvIb,IAAA,eDyIe"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../src/components/Tile/Tile.tsx","../../../src/components/Tile/index.ts"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport type { LazyIconProps } from '../LazyIcon';\nimport type { TitleTags } from './../Title/Title';\n\nimport { AnalyticsId } from '../../constants';\nimport { useBreakpoint, Breakpoint } from '../../hooks/useBreakpoint';\nimport { usePseudoClasses } from '../../hooks/usePseudoClasses';\nimport { isComponent } from '../../utils/component';\nimport { mergeRefs } from '../../utils/refs';\nimport Icon, { IconSize, type BaseIconProps, type IconProps } from '../Icon';\nimport LazyIcon from '../LazyIcon';\n\nimport tileStyles from './styles.module.scss';\n\nexport type TileVariants = 'normal' | 'compact';\n\ninterface TileProps extends Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href' | 'target' | 'onClick' | 'rel'> {\n children?: React.ReactNode;\n /** Adds custom classes to the element. */\n className?: string;\n /**\tSets the icon to be displayed inside the tile. */\n icon: React.ReactElement;\n /**\tSets the title to be displayed inside the tile. */\n title: React.ReactElement;\n /** Toggles the highlighted style of the tile. */\n highlighted?: boolean;\n /** Sets the description to be displayed inside the tile. */\n description?: string;\n /** Sets a fixed max and min width for the tile. */\n fixed?: boolean;\n /** Sets the visual variant of the component */\n variant?: TileVariants;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Ref passed to the component */\n ref?: React.Ref<HTMLAnchorElement | null>;\n}\n\ninterface TileTitleProps {\n children: React.ReactNode;\n className?: string;\n htmlMarkup?: TitleTags;\n highlighted?: boolean;\n compact?: boolean;\n /** Ref passed to the title element */\n ref?: React.Ref<HTMLHeadingElement | null>;\n}\n\nexport interface TileCompound extends React.FC<TileProps> {\n Title: React.FC<TileTitleProps>;\n}\n\nconst Title: React.FC<TileTitleProps> = props => {\n const { compact, children, className, htmlMarkup = 'span', highlighted, ref } = props;\n const titleClasses = classNames(\n tileStyles['tile__title'],\n {\n [tileStyles['tile__title--highlighted']]: highlighted,\n [tileStyles['tile__title--compact']]: compact,\n },\n className\n );\n const CustomTag = htmlMarkup;\n\n return (\n <CustomTag className={titleClasses} ref={ref}>\n {children}\n </CustomTag>\n );\n};\n\nTitle.displayName = 'Title';\n\nexport const Tile: TileCompound = props => {\n const {\n children,\n icon,\n title,\n className = '',\n description,\n fixed = false,\n highlighted = false,\n testId,\n target,\n rel,\n variant = 'normal',\n href,\n onClick,\n ref,\n } = props;\n const { refObject, isHovered } = usePseudoClasses<HTMLAnchorElement>();\n const breakpoint = useBreakpoint();\n const mobile = breakpoint < Breakpoint.md;\n const compact = variant === 'compact';\n const tileClasses = classNames(\n tileStyles.tile,\n {\n [tileStyles['tile--fixed']]: fixed,\n [tileStyles['tile--compact']]: compact,\n [tileStyles['tile--highlighted']]: highlighted,\n },\n className\n );\n const tileTitleWrapperClasses = classNames(tileStyles['title-wrapper'], {\n [tileStyles['title-wrapper--compact']]: compact,\n });\n\n return (\n <a\n ref={mergeRefs([ref, refObject])}\n href={href}\n target={target}\n rel={target === '_blank' ? 'noopener noreferrer' : rel}\n className={tileClasses}\n data-testid={testId}\n data-analyticsid={AnalyticsId.Tile}\n onClick={onClick}\n >\n <div className={tileTitleWrapperClasses}>\n {(isComponent<IconProps>(icon, Icon) || isComponent<LazyIconProps>(icon, LazyIcon)) &&\n React.cloneElement(icon as React.ReactElement<BaseIconProps>, {\n size: mobile ? IconSize.Small : IconSize.Medium,\n isHovered,\n color: highlighted ? 'white' : 'black',\n })}\n {isComponent<TileTitleProps>(title, Tile.Title) && React.cloneElement(title, { highlighted: highlighted, compact: compact })}\n </div>\n {!compact && !mobile && <p className={tileStyles.tile__description}>{description}</p>}\n {children && <div className={tileStyles.tile__children}>{children}</div>}\n </a>\n );\n};\n\nTile.displayName = 'Tile';\nTile.Title = Title;\n\nexport default Tile;\n","import Tile from './Tile';\nexport * from './Tile';\nexport default Tile;\n"],"mappings":";;;;;;;;;;;;AAuDA,IAAM,SAAkC,UAAS;CAC/C,MAAM,EAAE,SAAS,UAAU,WAAW,aAAa,QAAQ,aAAa,QAAQ;CAWhF,OACE,oBAAC,YAAD;EAAW,WAXQ,WACnB,WAAW,gBACX;IACG,WAAW,8BAA8B;IACzC,WAAW,0BAA0B;GACvC,EACD,UAKsB;EAAmB;EACtC;EACS,CAAA;;AAIhB,MAAM,cAAc;AAEpB,IAAa,QAAqB,UAAS;CACzC,MAAM,EACJ,UACA,MACA,OACA,YAAY,IACZ,aACA,QAAQ,OACR,cAAc,OACd,QACA,QACA,KACA,UAAU,UACV,MACA,SACA,QACE;CACJ,MAAM,EAAE,WAAW,cAAc,kBAAqC;CAEtE,MAAM,SADa,eACJ,GAAa,WAAW;CACvC,MAAM,UAAU,YAAY;CAC5B,MAAM,cAAc,WAClB,WAAW,MACX;GACG,WAAW,iBAAiB;GAC5B,WAAW,mBAAmB;GAC9B,WAAW,uBAAuB;EACpC,EACD,UACD;CACD,MAAM,0BAA0B,WAAW,WAAW,kBAAkB,GACrE,WAAW,4BAA4B,SACzC,CAAC;CAEF,OACE,qBAAC,KAAD;EACE,KAAK,UAAU,CAAC,KAAK,UAAU,CAAC;EAC1B;EACE;EACR,KAAK,WAAW,WAAW,wBAAwB;EACnD,WAAW;EACX,eAAa;EACb,oBAAkB,YAAY;EACrB;YARX;GAUE,qBAAC,OAAD;IAAK,WAAW;cAAhB,EACI,YAAuB,MAAM,aAAK,IAAI,YAA2B,MAAM,iBAAS,KAChF,MAAM,aAAa,MAA2C;KAC5D,MAAM,SAAS,SAAS,QAAQ,SAAS;KACzC;KACA,OAAO,cAAc,UAAU;KAChC,CAAC,EACH,YAA4B,OAAO,KAAK,MAAM,IAAI,MAAM,aAAa,OAAO;KAAe;KAAsB;KAAS,CAAC,CACxH;;GACL,CAAC,WAAW,CAAC,UAAU,oBAAC,KAAD;IAAG,WAAW,WAAW;cAAoB;IAAgB,CAAA;GACpF,YAAY,oBAAC,OAAD;IAAK,WAAW,WAAW;IAAiB;IAAe,CAAA;GACtE;;;AAIR,KAAK,cAAc;AACnB,KAAK,QAAQ;;;ACvIb,IAAA,eAAe"}
@@ -1,3 +1,7 @@
1
- import { r as instanceOfTitleMargin, t as Title } from "../../Title.js";
2
- import { t as Title_default } from "../../Title2.js";
1
+ import { n as instanceOfTitleMargin, t as Title } from "../../Title.js";
2
+ //#region src/components/Title/index.ts
3
+ var Title_default = Title;
4
+ //#endregion
3
5
  export { Title, Title_default as default, instanceOfTitleMargin };
6
+
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../src/components/Title/index.ts"],"sourcesContent":["import Title from './Title';\nexport { instanceOfTitleMargin } from './utils';\nexport * from './Title';\nexport default Title;\n"],"mappings":";;AAGA,IAAA,gBAAe"}
@@ -1,5 +1,7 @@
1
- import { t as Toast_default$1 } from "../../Toast.js";
2
- var Toast_default = Toast_default$1;
1
+ import { t as Toast } from "../../Toast.js";
2
+ //#region src/components/Toast/index.ts
3
+ var Toast_default = Toast;
4
+ //#endregion
3
5
  export { Toast_default as default };
4
6
 
5
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../src/components/Toast/index.ts"],"sourcesContent":["import Toast from './Toast';\nexport * from './Toast';\nexport default Toast;\n"],"mappings":";AAEA,IAAA,gBAAe"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../src/components/Toast/index.ts"],"sourcesContent":["import Toast from './Toast';\nexport * from './Toast';\nexport default Toast;\n"],"mappings":";;AAEA,IAAA,gBAAe"}
@@ -1,9 +1,10 @@
1
- import { n as mergeRefs } from "../../refs.js";
2
- import { t as Toast_default } from "../../Toast.js";
1
+ import { mergeRefs } from "../../utils/refs.js";
2
+ import { t as Toast } from "../../Toast.js";
3
3
  import React from "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  import { AnimatePresence, motion } from "motion/react";
6
6
  import styles from "./styles.module.scss";
7
+ //#region src/components/ToastList/ToastList.tsx
7
8
  var DURATION = 8e3;
8
9
  var ToastList = (props) => {
9
10
  const { testId, toasts = [], ref } = props;
@@ -80,7 +81,7 @@ var ToastList = (props) => {
80
81
  duration: .4,
81
82
  bounce: .1
82
83
  } },
83
- children: /* @__PURE__ */ jsx(Toast_default, {
84
+ children: /* @__PURE__ */ jsx(Toast, {
84
85
  testId: `${testId}-${toast.id}`,
85
86
  title: toast.title,
86
87
  message: toast.message,
@@ -91,7 +92,10 @@ var ToastList = (props) => {
91
92
  });
92
93
  };
93
94
  ToastList.displayName = "ToastList";
95
+ //#endregion
96
+ //#region src/components/ToastList/index.ts
94
97
  var ToastList_default = ToastList;
98
+ //#endregion
95
99
  export { ToastList_default as default };
96
100
 
97
101
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["ToastList: React.FC<ToastListProps>"],"sources":["../../../src/components/ToastList/ToastList.tsx","../../../src/components/ToastList/index.ts"],"sourcesContent":["import React from 'react';\n\nimport { AnimatePresence, motion } from 'motion/react';\n\nimport { mergeRefs } from '../../utils/refs';\nimport Toast from '../Toast/Toast';\n\nimport styles from './styles.module.scss';\n\nexport interface ToastData {\n id: string;\n title: string;\n message?: string;\n}\n\nexport interface ToastListProps {\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Array of toast data to display */\n toasts?: ToastData[];\n /** Ref passed to the component */\n ref?: React.Ref<HTMLElement | null>;\n}\n\nconst DURATION = 8000;\n\nconst ToastList: React.FC<ToastListProps> = props => {\n const { testId, toasts = [], ref } = props;\n const internalRef = React.useRef<HTMLElement | null>(null);\n const [visibleToasts, setVisibleToasts] = React.useState<ToastData[]>([]);\n const [removedToastIds, setRemovedToastIds] = React.useState<Set<string>>(new Set());\n const timeoutRefs = React.useRef<Map<string, NodeJS.Timeout>>(new Map());\n\n React.useEffect(() => {\n const newToasts = toasts.filter(toast => !visibleToasts.some(vt => vt.id === toast.id) && !removedToastIds.has(toast.id));\n if (newToasts.length > 0) {\n setVisibleToasts(prev => [...prev, ...newToasts]);\n }\n }, [toasts, visibleToasts, removedToastIds]);\n\n // Handles removal of a toast\n const handleRemoveToast = React.useCallback((id: string): void => {\n setVisibleToasts(prev => prev.filter(t => t.id !== id));\n // Add to removed IDs to prevent re-appearance\n setRemovedToastIds(prev => new Set([...prev, id]));\n\n // Clear timeout if exists\n const timeout = timeoutRefs.current.get(id);\n if (timeout) {\n clearTimeout(timeout);\n timeoutRefs.current.delete(id);\n }\n }, []);\n\n // Handle auto-removal of toasts after duration\n React.useEffect(() => {\n const timeouts = timeoutRefs.current;\n\n // Set up timeouts for new visible toasts that don't have timeout yet\n visibleToasts.forEach(toast => {\n if (!timeouts.has(toast.id)) {\n const timeout = setTimeout(() => {\n handleRemoveToast(toast.id);\n }, DURATION);\n\n timeouts.set(toast.id, timeout);\n }\n });\n }, [visibleToasts, handleRemoveToast]);\n\n // Cleanup timeouts for removed toasts\n React.useEffect(() => {\n const timeouts = timeoutRefs.current;\n const currentToastIds = new Set(visibleToasts.map(t => t.id));\n\n timeouts.forEach((timeout, id) => {\n if (!currentToastIds.has(id)) {\n clearTimeout(timeout);\n timeouts.delete(id);\n }\n });\n }, [visibleToasts]);\n\n // Cleanup all timeouts on unmount\n React.useEffect(() => {\n return (): void => {\n timeoutRefs.current.forEach(timeout => clearTimeout(timeout));\n timeoutRefs.current.clear();\n };\n }, []);\n\n const setRefs = mergeRefs([internalRef, ref]);\n\n return (\n <section ref={setRefs} className={styles['toast-list']} data-testid={testId}>\n <AnimatePresence mode=\"popLayout\">\n {visibleToasts.map(toast => (\n <motion.div\n key={toast.id}\n layout\n initial={{ opacity: 0, y: 50 }}\n animate={{ opacity: 1, y: 0 }}\n exit={{ opacity: 0, y: -20 }}\n transition={{\n layout: { type: 'spring', duration: 0.4, bounce: 0.1 },\n }}\n >\n <Toast\n testId={`${testId}-${toast.id}`}\n title={toast.title}\n message={toast.message}\n onClose={() => handleRemoveToast(toast.id)}\n />\n </motion.div>\n ))}\n </AnimatePresence>\n </section>\n );\n};\n\nToastList.displayName = 'ToastList';\n\nexport default ToastList;\n","import ToastList from './ToastList';\nexport * from './ToastList';\nexport default ToastList;\n"],"mappings":";;;;;;AAwBA,IAAM,WAAW;AAEjB,IAAMA,aAAsC,UAAS;CACnD,MAAM,EAAE,QAAQ,SAAS,EAAE,EAAE,QAAQ;CACrC,MAAM,cAAc,MAAM,OAA2B,KAAK;CAC1D,MAAM,CAAC,eAAe,oBAAoB,MAAM,SAAsB,EAAE,CAAC;CACzE,MAAM,CAAC,iBAAiB,sBAAsB,MAAM,yBAAsB,IAAI,KAAK,CAAC;CACpF,MAAM,cAAc,MAAM,uBAAoC,IAAI,KAAK,CAAC;AAExE,OAAM,gBAAgB;EACpB,MAAM,YAAY,OAAO,QAAO,UAAS,CAAC,cAAc,MAAK,OAAM,GAAG,OAAO,MAAM,GAAG,IAAI,CAAC,gBAAgB,IAAI,MAAM,GAAG,CAAC;AACzH,MAAI,UAAU,SAAS,EACrB,mBAAiB,SAAQ,CAAC,GAAG,MAAM,GAAG,UAAU,CAAC;IAElD;EAAC;EAAQ;EAAe;EAAgB,CAAC;CAG5C,MAAM,oBAAoB,MAAM,aAAa,OAAqB;AAChE,oBAAiB,SAAQ,KAAK,QAAO,MAAK,EAAE,OAAO,GAAG,CAAC;AAEvD,sBAAmB,SAAQ,IAAI,IAAI,CAAC,GAAG,MAAM,GAAG,CAAC,CAAC;EAGlD,MAAM,UAAU,YAAY,QAAQ,IAAI,GAAG;AAC3C,MAAI,SAAS;AACX,gBAAa,QAAQ;AACrB,eAAY,QAAQ,OAAO,GAAG;;IAE/B,EAAE,CAAC;AAGN,OAAM,gBAAgB;EACpB,MAAM,WAAW,YAAY;AAG7B,gBAAc,SAAQ,UAAS;AAC7B,OAAI,CAAC,SAAS,IAAI,MAAM,GAAG,EAAE;IAC3B,MAAM,UAAU,iBAAiB;AAC/B,uBAAkB,MAAM,GAAG;OAC1B,SAAS;AAEZ,aAAS,IAAI,MAAM,IAAI,QAAQ;;IAEjC;IACD,CAAC,eAAe,kBAAkB,CAAC;AAGtC,OAAM,gBAAgB;EACpB,MAAM,WAAW,YAAY;EAC7B,MAAM,kBAAkB,IAAI,IAAI,cAAc,KAAI,MAAK,EAAE,GAAG,CAAC;AAE7D,WAAS,SAAS,SAAS,OAAO;AAChC,OAAI,CAAC,gBAAgB,IAAI,GAAG,EAAE;AAC5B,iBAAa,QAAQ;AACrB,aAAS,OAAO,GAAG;;IAErB;IACD,CAAC,cAAc,CAAC;AAGnB,OAAM,gBAAgB;AACpB,eAAmB;AACjB,eAAY,QAAQ,SAAQ,YAAW,aAAa,QAAQ,CAAC;AAC7D,eAAY,QAAQ,OAAO;;IAE5B,EAAE,CAAC;AAIN,QACE,oBAAC,WAAA;EAAQ,KAHK,UAAU,CAAC,aAAa,IAAI,CAAC;EAGpB,WAAW,OAAO;EAAe,eAAa;YACnE,oBAAC,iBAAA;GAAgB,MAAK;aACnB,cAAc,KAAI,UACjB,oBAAC,OAAO,KAAA;IAEN,QAAA;IACA,SAAS;KAAE,SAAS;KAAG,GAAG;KAAI;IAC9B,SAAS;KAAE,SAAS;KAAG,GAAG;KAAG;IAC7B,MAAM;KAAE,SAAS;KAAG,GAAG;KAAK;IAC5B,YAAY,EACV,QAAQ;KAAE,MAAM;KAAU,UAAU;KAAK,QAAQ;KAAK,EACvD;cAED,oBAAC,eAAA;KACC,QAAQ,GAAG,OAAO,GAAG,MAAM;KAC3B,OAAO,MAAM;KACb,SAAS,MAAM;KACf,eAAe,kBAAkB,MAAM,GAAG;MAC1C;MAdG,MAAM,GAeA,CACb;IACc;GACV;;AAId,UAAU,cAAc;ACtHxB,IAAA,oBDwHe"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../src/components/ToastList/ToastList.tsx","../../../src/components/ToastList/index.ts"],"sourcesContent":["import React from 'react';\n\nimport { AnimatePresence, motion } from 'motion/react';\n\nimport { mergeRefs } from '../../utils/refs';\nimport Toast from '../Toast/Toast';\n\nimport styles from './styles.module.scss';\n\nexport interface ToastData {\n id: string;\n title: string;\n message?: string;\n}\n\nexport interface ToastListProps {\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Array of toast data to display */\n toasts?: ToastData[];\n /** Ref passed to the component */\n ref?: React.Ref<HTMLElement | null>;\n}\n\nconst DURATION = 8000;\n\nconst ToastList: React.FC<ToastListProps> = props => {\n const { testId, toasts = [], ref } = props;\n const internalRef = React.useRef<HTMLElement | null>(null);\n const [visibleToasts, setVisibleToasts] = React.useState<ToastData[]>([]);\n const [removedToastIds, setRemovedToastIds] = React.useState<Set<string>>(new Set());\n const timeoutRefs = React.useRef<Map<string, NodeJS.Timeout>>(new Map());\n\n React.useEffect(() => {\n const newToasts = toasts.filter(toast => !visibleToasts.some(vt => vt.id === toast.id) && !removedToastIds.has(toast.id));\n if (newToasts.length > 0) {\n setVisibleToasts(prev => [...prev, ...newToasts]);\n }\n }, [toasts, visibleToasts, removedToastIds]);\n\n // Handles removal of a toast\n const handleRemoveToast = React.useCallback((id: string): void => {\n setVisibleToasts(prev => prev.filter(t => t.id !== id));\n // Add to removed IDs to prevent re-appearance\n setRemovedToastIds(prev => new Set([...prev, id]));\n\n // Clear timeout if exists\n const timeout = timeoutRefs.current.get(id);\n if (timeout) {\n clearTimeout(timeout);\n timeoutRefs.current.delete(id);\n }\n }, []);\n\n // Handle auto-removal of toasts after duration\n React.useEffect(() => {\n const timeouts = timeoutRefs.current;\n\n // Set up timeouts for new visible toasts that don't have timeout yet\n visibleToasts.forEach(toast => {\n if (!timeouts.has(toast.id)) {\n const timeout = setTimeout(() => {\n handleRemoveToast(toast.id);\n }, DURATION);\n\n timeouts.set(toast.id, timeout);\n }\n });\n }, [visibleToasts, handleRemoveToast]);\n\n // Cleanup timeouts for removed toasts\n React.useEffect(() => {\n const timeouts = timeoutRefs.current;\n const currentToastIds = new Set(visibleToasts.map(t => t.id));\n\n timeouts.forEach((timeout, id) => {\n if (!currentToastIds.has(id)) {\n clearTimeout(timeout);\n timeouts.delete(id);\n }\n });\n }, [visibleToasts]);\n\n // Cleanup all timeouts on unmount\n React.useEffect(() => {\n return (): void => {\n timeoutRefs.current.forEach(timeout => clearTimeout(timeout));\n timeoutRefs.current.clear();\n };\n }, []);\n\n const setRefs = mergeRefs([internalRef, ref]);\n\n return (\n <section ref={setRefs} className={styles['toast-list']} data-testid={testId}>\n <AnimatePresence mode=\"popLayout\">\n {visibleToasts.map(toast => (\n <motion.div\n key={toast.id}\n layout\n initial={{ opacity: 0, y: 50 }}\n animate={{ opacity: 1, y: 0 }}\n exit={{ opacity: 0, y: -20 }}\n transition={{\n layout: { type: 'spring', duration: 0.4, bounce: 0.1 },\n }}\n >\n <Toast\n testId={`${testId}-${toast.id}`}\n title={toast.title}\n message={toast.message}\n onClose={() => handleRemoveToast(toast.id)}\n />\n </motion.div>\n ))}\n </AnimatePresence>\n </section>\n );\n};\n\nToastList.displayName = 'ToastList';\n\nexport default ToastList;\n","import ToastList from './ToastList';\nexport * from './ToastList';\nexport default ToastList;\n"],"mappings":";;;;;;;AAwBA,IAAM,WAAW;AAEjB,IAAM,aAAsC,UAAS;CACnD,MAAM,EAAE,QAAQ,SAAS,EAAE,EAAE,QAAQ;CACrC,MAAM,cAAc,MAAM,OAA2B,KAAK;CAC1D,MAAM,CAAC,eAAe,oBAAoB,MAAM,SAAsB,EAAE,CAAC;CACzE,MAAM,CAAC,iBAAiB,sBAAsB,MAAM,yBAAsB,IAAI,KAAK,CAAC;CACpF,MAAM,cAAc,MAAM,uBAAoC,IAAI,KAAK,CAAC;CAExE,MAAM,gBAAgB;EACpB,MAAM,YAAY,OAAO,QAAO,UAAS,CAAC,cAAc,MAAK,OAAM,GAAG,OAAO,MAAM,GAAG,IAAI,CAAC,gBAAgB,IAAI,MAAM,GAAG,CAAC;EACzH,IAAI,UAAU,SAAS,GACrB,kBAAiB,SAAQ,CAAC,GAAG,MAAM,GAAG,UAAU,CAAC;IAElD;EAAC;EAAQ;EAAe;EAAgB,CAAC;CAG5C,MAAM,oBAAoB,MAAM,aAAa,OAAqB;EAChE,kBAAiB,SAAQ,KAAK,QAAO,MAAK,EAAE,OAAO,GAAG,CAAC;EAEvD,oBAAmB,SAAQ,IAAI,IAAI,CAAC,GAAG,MAAM,GAAG,CAAC,CAAC;EAGlD,MAAM,UAAU,YAAY,QAAQ,IAAI,GAAG;EAC3C,IAAI,SAAS;GACX,aAAa,QAAQ;GACrB,YAAY,QAAQ,OAAO,GAAG;;IAE/B,EAAE,CAAC;CAGN,MAAM,gBAAgB;EACpB,MAAM,WAAW,YAAY;EAG7B,cAAc,SAAQ,UAAS;GAC7B,IAAI,CAAC,SAAS,IAAI,MAAM,GAAG,EAAE;IAC3B,MAAM,UAAU,iBAAiB;KAC/B,kBAAkB,MAAM,GAAG;OAC1B,SAAS;IAEZ,SAAS,IAAI,MAAM,IAAI,QAAQ;;IAEjC;IACD,CAAC,eAAe,kBAAkB,CAAC;CAGtC,MAAM,gBAAgB;EACpB,MAAM,WAAW,YAAY;EAC7B,MAAM,kBAAkB,IAAI,IAAI,cAAc,KAAI,MAAK,EAAE,GAAG,CAAC;EAE7D,SAAS,SAAS,SAAS,OAAO;GAChC,IAAI,CAAC,gBAAgB,IAAI,GAAG,EAAE;IAC5B,aAAa,QAAQ;IACrB,SAAS,OAAO,GAAG;;IAErB;IACD,CAAC,cAAc,CAAC;CAGnB,MAAM,gBAAgB;EACpB,aAAmB;GACjB,YAAY,QAAQ,SAAQ,YAAW,aAAa,QAAQ,CAAC;GAC7D,YAAY,QAAQ,OAAO;;IAE5B,EAAE,CAAC;CAIN,OACE,oBAAC,WAAD;EAAS,KAHK,UAAU,CAAC,aAAa,IAAI,CAG5B;EAAS,WAAW,OAAO;EAAe,eAAa;YACnE,oBAAC,iBAAD;GAAiB,MAAK;aACnB,cAAc,KAAI,UACjB,oBAAC,OAAO,KAAR;IAEE,QAAA;IACA,SAAS;KAAE,SAAS;KAAG,GAAG;KAAI;IAC9B,SAAS;KAAE,SAAS;KAAG,GAAG;KAAG;IAC7B,MAAM;KAAE,SAAS;KAAG,GAAG;KAAK;IAC5B,YAAY,EACV,QAAQ;KAAE,MAAM;KAAU,UAAU;KAAK,QAAQ;KAAK,EACvD;cAED,oBAAC,OAAD;KACE,QAAQ,GAAG,OAAO,GAAG,MAAM;KAC3B,OAAO,MAAM;KACb,SAAS,MAAM;KACf,eAAe,kBAAkB,MAAM,GAAG;KAC1C,CAAA;IACS,EAfN,MAAM,GAeA,CACb;GACc,CAAA;EACV,CAAA;;AAId,UAAU,cAAc;;;ACtHxB,IAAA,oBAAe"}