@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,2 +1,99 @@
1
- import { t as ThinkingMedium_default } from "../../ThinkingMedium.js";
2
- export { ThinkingMedium_default as default };
1
+ import { t as ViewBoxSize } from "../../utils4.js";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ //#region src/components/Illustrations/ThinkingMedium.tsx
4
+ var ThinkingMedium = ({ color, svgProperties, title }) => {
5
+ const palette = (() => {
6
+ switch (color) {
7
+ case "blueberry": return {
8
+ lines: "#000",
9
+ shapes1: "#188097",
10
+ shapes2: "#AFDAE3"
11
+ };
12
+ case "cherry": return {
13
+ lines: "#000",
14
+ shapes1: "#A31F0E",
15
+ shapes2: "#F05A3B"
16
+ };
17
+ default: return {
18
+ lines: "#1D1C1A",
19
+ shapes1: "#989693",
20
+ shapes2: "#D6D3D2"
21
+ };
22
+ }
23
+ })();
24
+ return /* @__PURE__ */ jsxs("svg", {
25
+ ...svgProperties,
26
+ viewBox: ViewBoxSize.Medium,
27
+ children: [
28
+ title,
29
+ /* @__PURE__ */ jsx("path", {
30
+ d: "m301.601 134.422-11.125 19.26-11.115-19.26h22.24Z",
31
+ fill: palette.lines
32
+ }),
33
+ /* @__PURE__ */ jsx("path", {
34
+ d: "M215.7 117.402c6.645 0 12.033-5.387 12.033-12.033s-5.388-12.033-12.033-12.033c-6.646 0-12.033 5.387-12.033 12.033s5.387 12.033 12.033 12.033Z",
35
+ fill: palette.shapes2
36
+ }),
37
+ /* @__PURE__ */ jsx("path", {
38
+ d: "M352.636 188.933a543.85 543.85 0 0 1-15.73 3.395 116.773 116.773 0 0 0-4.179-9.625c-2.107-4.28-6.387-8.313-9.121-10.633l21.21-6.968 7.809 23.82.011.011ZM138.19 133.719l-15.753-14.487c-1.659-1.524-5.11-.448-7.72 2.386-2.611 2.835-3.373 6.375-1.726 7.899l15.753 14.487c1.659 1.524 5.11.448 7.72-2.386 2.611-2.835 3.373-6.376 1.726-7.899Z",
39
+ fill: palette.lines
40
+ }),
41
+ /* @__PURE__ */ jsx("path", {
42
+ d: "M120.712 127.141c2.608-2.839 3.38-6.372 1.726-7.892-1.655-1.519-5.109-.449-7.717 2.391-2.607 2.839-3.38 6.373-1.725 7.892 1.654 1.519 5.109.449 7.716-2.391Zm170.674-32.739-1.429 27.457 13.427.699 1.429-27.457-13.427-.7Zm45.811 97.869a586.22 586.22 0 0 1-11.417 2.196c-26.576 4.84-50.587 7.271-71.931 8.089 1.132-22.531 19.764-40.447 42.576-40.447 19.204 0 35.439 12.706 40.772 30.162Z",
43
+ fill: palette.shapes1
44
+ }),
45
+ /* @__PURE__ */ jsx("path", {
46
+ d: "m362.978 139.172 2.957 11.047-11.047-2.969 8.09-8.078Z",
47
+ fill: palette.shapes2
48
+ }),
49
+ /* @__PURE__ */ jsx("path", {
50
+ d: "M299.965 451.799c-.918 0-1.669-.74-1.68-1.658l-.874-66.329a1.679 1.679 0 0 1 1.658-1.703h.022c.919 0 1.67.74 1.681 1.659l.874 66.328a1.678 1.678 0 0 1-1.658 1.703h-.023Zm-91.784-142.302c-1.288 0-2.621-.269-4.022-.84-7.563-3.149-18.767-21.871-24.66-50.352-.964-4.672-.605-12.358 3.607-18.632 2.869-4.291 7.093-7.07 12.191-8.022 13.87-2.611 20.75 7.036 21.041 7.45a1.68 1.68 0 0 1-2.756 1.927c-.258-.358-6.006-8.268-17.658-6.072-4.258.807-7.63 3.025-10.017 6.588-3.394 5.075-4.011 11.731-3.103 16.089 4.807 23.215 14.969 44.716 22.666 47.92 3.26 1.367 7.607 1.21 15.036-10.252a1.68 1.68 0 0 1 2.319-.493c.784.504.997 1.546.493 2.331-4.078 6.285-8.974 12.369-15.126 12.369l-.011-.011Z",
51
+ fill: palette.lines
52
+ }),
53
+ /* @__PURE__ */ jsx("path", {
54
+ d: "M215.699 255.82c-.47 0-.941-.191-1.266-.583-.078-.09-7.977-9.087-15.17-9.087h-.056c-2.353.012-4.336 1.02-6.062 3.059a1.683 1.683 0 0 1-2.364.202 1.683 1.683 0 0 1-.201-2.364c2.364-2.801 5.266-4.235 8.616-4.258 8.784-.045 17.422 9.826 17.792 10.252a1.684 1.684 0 0 1-.168 2.375 1.64 1.64 0 0 1-1.098.415l-.023-.011Zm-7.697 36.301c-.28 0-.56-.067-.818-.213a1.686 1.686 0 0 1-.65-2.285c5.569-9.938.807-13.871-3.787-17.68-2.521-2.084-4.907-4.056-4.661-6.902.225-2.667 2.712-5.176 8.325-8.403a1.681 1.681 0 1 1 1.681 2.913c-5.636 3.238-6.588 5.008-6.656 5.781-.089 1.098 1.625 2.521 3.451 4.034 4.583 3.787 11.518 9.523 4.583 21.915a1.673 1.673 0 0 1-1.468.863v-.023Zm-62.989-99.709c-.717 0-1.389-.47-1.614-1.198a10.523 10.523 0 0 1-.28-1.166c-.874-5.131 2.588-10.005 7.72-10.879a9.398 9.398 0 0 1 7.742 2.151 1.686 1.686 0 0 1-2.196 2.555 6.06 6.06 0 0 0-4.986-1.389c-3.305.56-5.535 3.708-4.963 7.002.045.258.101.516.179.751a1.683 1.683 0 0 1-1.12 2.095 1.8 1.8 0 0 1-.493.067l.011.011Zm128.276-75.598c-4.583 0-8.314-3.731-8.314-8.313 0-4.583 3.731-8.313 8.314-8.313 4.582 0 8.313 3.73 8.313 8.313 0 4.582-3.731 8.313-8.313 8.313Zm0-13.276a4.954 4.954 0 0 0-4.953 4.952 4.954 4.954 0 0 0 4.953 4.952 4.954 4.954 0 0 0 4.952-4.952 4.954 4.954 0 0 0-4.952-4.952Zm-19.496 100.226h-.1a1.682 1.682 0 0 1-1.58-1.782c1.389-23.293 20.783-41.544 44.155-41.544 19.473 0 36.447 12.481 42.24 31.057a1.677 1.677 0 0 1-1.109 2.107 1.677 1.677 0 0 1-2.107-1.109c-5.344-17.165-21.03-28.694-39.024-28.694-21.59 0-39.506 16.862-40.794 38.385a1.682 1.682 0 0 1-1.681 1.58Zm-12.089-111.67a1.4 1.4 0 0 1-.37-.045l-11.551-2.565a1.66 1.66 0 0 1-1.221-1.098 1.655 1.655 0 0 1 .302-1.614l8.134-9.803-13.019-2.095a1.678 1.678 0 0 1-.918-2.846l10.531-10.532a1.671 1.671 0 0 1 2.376 0c.649.66.661 1.725 0 2.375l-8.202 8.202 12.672 2.039c.594.09 1.098.504 1.311 1.064.213.56.101 1.199-.28 1.67l-8.258 9.949 8.874 1.972a1.68 1.68 0 0 1 1.277 2.005 1.683 1.683 0 0 1-1.635 1.311l-.023.011Zm-68.042 68.289a1.663 1.663 0 0 1-1.524-.975c-1.311-2.868-1.994-5.355-2.241-7.484-4.157-.84-8.257-3.63-10.162-9.658-.784-2.498-1.087-4.952-.93-7.283a14.842 14.842 0 0 1-2.812-1.613c-2.812-2.028-4.448-4.717-4.863-8-1.109-8.75 7.025-18.666 7.373-19.092a1.685 1.685 0 0 1 2.364-.224c.717.594.818 1.647.224 2.364-.079.09-7.563 9.221-6.622 16.526.303 2.353 1.445 4.213 3.496 5.692.493.359.974.65 1.445.896a15.674 15.674 0 0 1 5.076-7.764c3.417-2.846 7.63-3.877 10.218-2.498 1.232.649 1.938 1.927 1.927 3.484-.034 3.44-3.294 7.776-7.417 9.86-2.308 1.165-4.728 1.591-7.104 1.277-.022 1.591.213 3.372.841 5.355 1.333 4.247 4.022 6.409 6.901 7.216.348-3.384 1.815-5.479 2.757-6.487 2.33-2.51 5.859-3.563 8.582-2.555 1.893.695 3.07 2.319 3.148 4.325.146 3.832-3.675 7.305-9.086 8.235a13.47 13.47 0 0 1-1.916.202c.291 1.792.919 3.742 1.86 5.815.392.84.022 1.837-.829 2.229a1.739 1.739 0 0 1-.695.157h-.011Zm5.322-17.983c-1.199 0-2.723.561-3.922 1.86-1.098 1.177-1.725 2.734-1.893 4.572a13.605 13.605 0 0 0 1.501-.157c3.552-.616 6.375-2.768 6.297-4.796-.011-.414-.135-.997-.953-1.299a2.92 2.92 0 0 0-1.03-.168v-.012Zm-16.403-9.837c2.039.258 3.787-.28 5.109-.941 3.428-1.737 5.557-5.187 5.58-6.902 0-.157-.012-.425-.135-.493-1.165-.616-3.977.023-6.498 2.118-1.166.975-3.137 3.003-4.045 6.218h-.011Zm105.431-42.398a1.69 1.69 0 0 1-1.188-.493 1.67 1.67 0 0 1 0-2.376l7.574-7.574a1.67 1.67 0 0 1 2.375 0c.65.661.661 1.726 0 2.376l-7.574 7.574a1.69 1.69 0 0 1-1.187.493Zm-2.017-12.601a1.69 1.69 0 0 1-1.188-.493 1.67 1.67 0 0 1 0-2.375l7.294-7.294a1.67 1.67 0 0 1 2.375 0c.65.661.662 1.725 0 2.375l-7.293 7.294a1.69 1.69 0 0 1-1.188.493Zm88.165 42.094c-1.423 0-2.879-.213-4.336-.65-2.42-.729-4.526-2.23-6.263-4.146a17.099 17.099 0 0 1-7.328 1.95c-9.052.257-13.075-7.115-13.96-11.07a1.68 1.68 0 0 1 1.277-2.005 1.68 1.68 0 0 1 2.006 1.266c.09.369 2.106 8.739 10.577 8.447a13.455 13.455 0 0 0 5.389-1.31c-1.67-2.667-2.745-5.726-3.137-8.549-.493-3.597.235-6.196 2.061-7.35 1.065-.661 2.902-1.087 5.658.717 3.843 2.532 5.434 6.196 4.336 10.073-.638 2.252-2.084 4.302-4.044 5.938 1.266 1.311 2.745 2.319 4.392 2.812 4.773 1.434 8.257-.37 10.33-2.14 3.316-2.812 4.65-6.689 4.47-8.067a1.678 1.678 0 0 1 1.446-1.882c.918-.135 1.759.526 1.882 1.445.358 2.711-1.692 7.72-5.625 11.058-2.677 2.275-5.826 3.451-9.131 3.451v.012Zm-11.686-20.627a.539.539 0 0 0-.235.045c-.381.235-.863 1.557-.516 4.044.325 2.342 1.233 4.93 2.622 7.171 1.446-1.255 2.454-2.734 2.868-4.179.684-2.432-.336-4.627-2.946-6.353-.885-.582-1.457-.74-1.77-.74l-.023.012Zm-221.762 28.11c2.608-2.839 3.38-6.372 1.726-7.892-1.655-1.519-5.109-.449-7.717 2.391-2.607 2.839-3.38 6.373-1.725 7.892 1.654 1.519 5.109.449 7.716-2.391Z",
55
+ fill: palette.lines
56
+ }),
57
+ /* @__PURE__ */ jsx("path", {
58
+ d: "M114.963 131.871c-1.187 0-2.263-.358-3.092-1.12-1.244-1.143-1.692-2.98-1.244-5.053.392-1.782 1.401-3.63 2.868-5.221 3.283-3.574 7.72-4.672 10.095-2.488 2.376 2.185 1.67 6.689-1.613 10.275-2.14 2.33-4.773 3.607-7.003 3.607h-.011Zm1.009-9.12c-1.042 1.143-1.793 2.476-2.051 3.664-.19.863-.101 1.546.235 1.86.706.638 3.194.056 5.345-2.286s2.521-4.874 1.826-5.523c-.706-.639-3.193-.056-5.344 2.285h-.011Z",
59
+ fill: palette.lines
60
+ }),
61
+ /* @__PURE__ */ jsx("path", {
62
+ d: "M130.705 146.358c-1.187 0-2.263-.358-3.092-1.12l-15.753-14.487a1.682 1.682 0 0 1 2.274-2.476l15.753 14.487c.695.638 3.194.056 5.345-2.286 2.151-2.341 2.521-4.874 1.826-5.523l-15.753-14.487a1.681 1.681 0 1 1 2.274-2.476l15.753 14.486c2.376 2.185 1.659 6.689-1.624 10.263-2.14 2.331-4.773 3.608-7.003 3.608v.011Zm133.318 13.154a17.92 17.92 0 0 1-3.149-.28c-6.308-1.12-10.677-5.188-9.949-9.255.381-2.106 2.005-3.787 4.594-4.739 2.274-.84 5.097-1.02 7.943-.504 6.308 1.12 10.678 5.187 9.95 9.254-.381 2.107-2.006 3.787-4.594 4.74-1.423.526-3.07.784-4.795.784Zm-3.698-11.697c-1.333 0-2.599.19-3.652.583-1.401.515-2.286 1.299-2.443 2.173-.336 1.86 2.689 4.549 7.227 5.356 2.241.403 4.504.269 6.196-.348 1.4-.515 2.285-1.299 2.442-2.173.336-1.86-2.689-4.549-7.226-5.356a14.23 14.23 0 0 0-2.555-.224l.011-.011Z",
63
+ fill: palette.lines
64
+ }),
65
+ /* @__PURE__ */ jsx("path", {
66
+ d: "M250.678 162.53c-.1 0-.201 0-.302-.022a1.677 1.677 0 0 1-1.356-1.95l1.905-10.599a1.684 1.684 0 0 1 1.949-1.356 1.677 1.677 0 0 1 1.356 1.95l-1.905 10.599a1.676 1.676 0 0 1-1.647 1.389v-.011Zm17.771 11.269c-.101 0-.202 0-.303-.022a1.677 1.677 0 0 1-1.356-1.95l3.306-18.431a1.684 1.684 0 0 1 1.949-1.355 1.676 1.676 0 0 1 1.356 1.949l-3.305 18.431a1.678 1.678 0 0 1-1.647 1.389v-.011Zm-27.327-32.967a1.67 1.67 0 0 1-1.546-1.031l-5.233-12.391a1.661 1.661 0 0 1 0-1.289c.168-.414.493-.739.908-.918l25.332-10.689a1.68 1.68 0 0 1 2.196.896l5.233 12.392c.179.414.179.874 0 1.288-.168.415-.493.74-.908.919l-25.332 10.689a1.7 1.7 0 0 1-.65.134Zm-3.025-13.176 3.921 9.288 22.24-9.377-3.921-9.289-22.24 9.378Zm-6.891 29.578c-.426 0-.841-.157-1.165-.47l-12.291-11.899-6.297 6.498a1.67 1.67 0 0 1-2.375.034 1.67 1.67 0 0 1-.034-2.375l7.462-7.709a1.68 1.68 0 0 1 2.375-.033l13.501 13.075a1.67 1.67 0 0 1 .034 2.375 1.7 1.7 0 0 1-1.21.516v-.012Zm-46.945 21.455c-.426 0-.841-.157-1.166-.47a1.672 1.672 0 0 1-.033-2.376l14.857-15.338a1.67 1.67 0 0 1 2.375-.034c.672.65.683 1.715.033 2.376l-14.856 15.338a1.699 1.699 0 0 1-1.21.515v-.011Zm147.67-14.599c-.291 0-.582-.078-.84-.224l-20.672-11.932a1.683 1.683 0 0 1-.616-2.297l11.932-20.672a1.706 1.706 0 0 1 1.02-.784 1.701 1.701 0 0 1 1.277.168l20.672 11.932a1.683 1.683 0 0 1 .616 2.297l-11.932 20.672a1.703 1.703 0 0 1-1.02.784 1.925 1.925 0 0 1-.437.056Zm-18.375-14.229 17.759 10.252 10.252-17.759-17.759-10.252-10.252 17.759Zm-152.465 15.736h-.056l-15.653-.47a1.708 1.708 0 0 1-1.434-.886 1.696 1.696 0 0 1 .045-1.68l8.235-13.322c.314-.515.885-.851 1.479-.795a1.703 1.703 0 0 1 1.434.885l7.417 13.792a1.7 1.7 0 0 1-.044 1.681 1.689 1.689 0 0 1-1.435.795h.012Zm-12.695-3.742 9.838.291-4.661-8.661-5.177 8.37Zm142.08-6.875a1.69 1.69 0 0 1-1.457-.84l-11.114-19.26a1.666 1.666 0 0 1 0-1.68 1.687 1.687 0 0 1 1.456-.841h22.24a1.69 1.69 0 0 1 1.457.841 1.67 1.67 0 0 1 0 1.68l-11.115 19.26c-.302.516-.851.84-1.456.84h-.011Zm-8.213-19.259 8.213 14.218 8.212-14.218h-16.425Z",
67
+ fill: palette.lines
68
+ }),
69
+ /* @__PURE__ */ jsx("path", {
70
+ d: "m198.109 134.477 18.476 24.761-30.689 3.619 12.213-28.38Z",
71
+ fill: palette.lines
72
+ }),
73
+ /* @__PURE__ */ jsx("path", {
74
+ d: "M185.897 164.536a1.671 1.671 0 0 1-1.345-.672 1.69 1.69 0 0 1-.202-1.669l12.202-28.391c.235-.549.75-.93 1.344-1.009a1.654 1.654 0 0 1 1.546.661l18.487 24.761a1.69 1.69 0 0 1 .202 1.67c-.235.549-.751.93-1.345 1.008l-30.688 3.63c-.067 0-.134.011-.201.011Zm12.593-26.733-9.904 23.036 24.906-2.947-15.002-20.1v.011Zm117.554 116.906c-4.941 0-10.655-1.065-17.165-3.855a1.69 1.69 0 0 1-.885-2.207 1.688 1.688 0 0 1 2.207-.885c24.447 10.498 36.077-5.019 36.559-5.692a1.685 1.685 0 0 1 2.342-.381c.75.538.918 1.591.381 2.342-.101.146-7.899 10.678-23.451 10.678h.012Z",
75
+ fill: palette.lines
76
+ }),
77
+ /* @__PURE__ */ jsx("path", {
78
+ d: "M198.277 198.441c0 .896-.056 1.77-.145 2.633-20.089-1.972-35.854-5.143-47.047-8.022 2.443-10.611 11.944-18.521 23.283-18.521 13.198 0 23.909 10.7 23.909 23.91Z",
79
+ fill: palette.shapes2
80
+ }),
81
+ /* @__PURE__ */ jsx("path", {
82
+ d: "M253.961 168.822a15.8 15.8 0 0 1-2.073 7.865l-14.43-8.335-8.101 14.027c-4.482-2.846-7.462-7.854-7.462-13.557 0-8.862 7.171-16.033 16.033-16.033 8.863 0 16.033 7.171 16.033 16.033Z",
83
+ fill: palette.shapes1
84
+ }),
85
+ /* @__PURE__ */ jsx("path", {
86
+ d: "M154.043 449.909a1.76 1.76 0 0 1-.784-.19 1.68 1.68 0 0 1-.695-2.275c2.824-5.344 5.468-10.162 8.034-14.834 21.164-38.576 29.926-54.541 3.428-121.71-15.551-39.416-21.243-70.149-23.282-88.994-1.972-18.162-1.053-28.885-.773-31.417a2.363 2.363 0 0 1 0-.571c.123-.852.963-1.457 1.792-1.446.359.012.695.146.975.359.706.246 3.025.964 10.577 2.902 13.602 3.496 28.738 6.072 44.984 7.663 17.681 1.726 36.347 2.23 55.483 1.468 23.025-.885 47.147-3.596 71.695-8.056a464.258 464.258 0 0 0 11.384-2.196 553.362 553.362 0 0 0 15.394-3.327 565.684 565.684 0 0 0 7.249-1.714c.46-.112.941-.023 1.334.246.392.269.649.684.717 1.154.045.336 1.098 8.302-3.608 29.187l42.912 86.148c.224.46.235.986.022 1.457a1.697 1.697 0 0 1-1.12.93l-30.812 7.663c-.056 37.702-2.677 71.404-30.733 73.107-9.893.605-33.052 2.006-55.437-4.033-27.473-7.406-44.772-23.428-51.427-47.618a1.674 1.674 0 0 1 1.176-2.061 1.675 1.675 0 0 1 2.062 1.176c6.319 22.957 22.822 38.184 49.062 45.265 21.86 5.893 44.638 4.515 54.363 3.921 25.467-1.546 27.584-34.497 27.584-71.056a1.69 1.69 0 0 1 1.278-1.636l30.049-7.473-42.251-84.815a1.682 1.682 0 0 1-.134-1.121c3.417-15.002 3.809-23.282 3.776-26.688-1.782.426-3.552.84-5.311 1.244a595.78 595.78 0 0 1-15.473 3.35c-3.72.762-7.574 1.501-11.451 2.207-24.705 4.493-48.984 7.227-72.165 8.112-19.283.75-38.106.257-55.942-1.491-16.415-1.602-31.719-4.212-45.5-7.753-4.269-1.098-7.395-1.938-9.311-2.498-.706 9.624-1.838 51.718 23.977 117.172 27.069 68.637 17.456 86.16-3.619 124.557-2.555 4.661-5.199 9.467-8.011 14.789a1.683 1.683 0 0 1-1.49.896h.022Z",
87
+ fill: palette.lines
88
+ }),
89
+ /* @__PURE__ */ jsx("path", {
90
+ d: "M217.985 203.765a1.683 1.683 0 0 1-1.456-2.521l19.517-33.826a1.71 1.71 0 0 1 1.02-.784 1.701 1.701 0 0 1 1.277.168l22.756 13.143a1.681 1.681 0 0 1 .616 2.296 1.673 1.673 0 0 1-2.297.617l-21.299-12.302-18.677 32.368a1.683 1.683 0 0 1-1.457.841Z",
91
+ fill: palette.lines
92
+ })
93
+ ]
94
+ });
95
+ };
96
+ //#endregion
97
+ export { ThinkingMedium as default };
98
+
99
+ //# sourceMappingURL=ThinkingMedium.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThinkingMedium.js","names":[],"sources":["../../../src/components/Illustrations/ThinkingMedium.tsx"],"sourcesContent":["import type React from 'react';\n\nimport type { Palette } from './Thinking';\n\nimport { type BaseSvgIllustrationProps, ViewBoxSize } from '../Illustration';\n\nconst ThinkingMedium: React.FC<BaseSvgIllustrationProps> = ({ color, svgProperties, title }) => {\n const palette = ((): Palette => {\n switch (color) {\n case 'blueberry':\n return {\n lines: '#000',\n shapes1: '#188097',\n shapes2: '#AFDAE3',\n };\n case 'cherry':\n return {\n lines: '#000',\n shapes1: '#A31F0E',\n shapes2: '#F05A3B',\n };\n default:\n return {\n lines: '#1D1C1A',\n shapes1: '#989693',\n shapes2: '#D6D3D2',\n };\n }\n })();\n\n return (\n <svg {...svgProperties} viewBox={ViewBoxSize.Medium}>\n {title}\n <path d=\"m301.601 134.422-11.125 19.26-11.115-19.26h22.24Z\" fill={palette.lines} />\n <path\n d=\"M215.7 117.402c6.645 0 12.033-5.387 12.033-12.033s-5.388-12.033-12.033-12.033c-6.646 0-12.033 5.387-12.033 12.033s5.387 12.033 12.033 12.033Z\"\n fill={palette.shapes2}\n />\n <path\n d=\"M352.636 188.933a543.85 543.85 0 0 1-15.73 3.395 116.773 116.773 0 0 0-4.179-9.625c-2.107-4.28-6.387-8.313-9.121-10.633l21.21-6.968 7.809 23.82.011.011ZM138.19 133.719l-15.753-14.487c-1.659-1.524-5.11-.448-7.72 2.386-2.611 2.835-3.373 6.375-1.726 7.899l15.753 14.487c1.659 1.524 5.11.448 7.72-2.386 2.611-2.835 3.373-6.376 1.726-7.899Z\"\n fill={palette.lines}\n />\n <path\n d=\"M120.712 127.141c2.608-2.839 3.38-6.372 1.726-7.892-1.655-1.519-5.109-.449-7.717 2.391-2.607 2.839-3.38 6.373-1.725 7.892 1.654 1.519 5.109.449 7.716-2.391Zm170.674-32.739-1.429 27.457 13.427.699 1.429-27.457-13.427-.7Zm45.811 97.869a586.22 586.22 0 0 1-11.417 2.196c-26.576 4.84-50.587 7.271-71.931 8.089 1.132-22.531 19.764-40.447 42.576-40.447 19.204 0 35.439 12.706 40.772 30.162Z\"\n fill={palette.shapes1}\n />\n <path d=\"m362.978 139.172 2.957 11.047-11.047-2.969 8.09-8.078Z\" fill={palette.shapes2} />\n <path\n d=\"M299.965 451.799c-.918 0-1.669-.74-1.68-1.658l-.874-66.329a1.679 1.679 0 0 1 1.658-1.703h.022c.919 0 1.67.74 1.681 1.659l.874 66.328a1.678 1.678 0 0 1-1.658 1.703h-.023Zm-91.784-142.302c-1.288 0-2.621-.269-4.022-.84-7.563-3.149-18.767-21.871-24.66-50.352-.964-4.672-.605-12.358 3.607-18.632 2.869-4.291 7.093-7.07 12.191-8.022 13.87-2.611 20.75 7.036 21.041 7.45a1.68 1.68 0 0 1-2.756 1.927c-.258-.358-6.006-8.268-17.658-6.072-4.258.807-7.63 3.025-10.017 6.588-3.394 5.075-4.011 11.731-3.103 16.089 4.807 23.215 14.969 44.716 22.666 47.92 3.26 1.367 7.607 1.21 15.036-10.252a1.68 1.68 0 0 1 2.319-.493c.784.504.997 1.546.493 2.331-4.078 6.285-8.974 12.369-15.126 12.369l-.011-.011Z\"\n fill={palette.lines}\n />\n <path\n d=\"M215.699 255.82c-.47 0-.941-.191-1.266-.583-.078-.09-7.977-9.087-15.17-9.087h-.056c-2.353.012-4.336 1.02-6.062 3.059a1.683 1.683 0 0 1-2.364.202 1.683 1.683 0 0 1-.201-2.364c2.364-2.801 5.266-4.235 8.616-4.258 8.784-.045 17.422 9.826 17.792 10.252a1.684 1.684 0 0 1-.168 2.375 1.64 1.64 0 0 1-1.098.415l-.023-.011Zm-7.697 36.301c-.28 0-.56-.067-.818-.213a1.686 1.686 0 0 1-.65-2.285c5.569-9.938.807-13.871-3.787-17.68-2.521-2.084-4.907-4.056-4.661-6.902.225-2.667 2.712-5.176 8.325-8.403a1.681 1.681 0 1 1 1.681 2.913c-5.636 3.238-6.588 5.008-6.656 5.781-.089 1.098 1.625 2.521 3.451 4.034 4.583 3.787 11.518 9.523 4.583 21.915a1.673 1.673 0 0 1-1.468.863v-.023Zm-62.989-99.709c-.717 0-1.389-.47-1.614-1.198a10.523 10.523 0 0 1-.28-1.166c-.874-5.131 2.588-10.005 7.72-10.879a9.398 9.398 0 0 1 7.742 2.151 1.686 1.686 0 0 1-2.196 2.555 6.06 6.06 0 0 0-4.986-1.389c-3.305.56-5.535 3.708-4.963 7.002.045.258.101.516.179.751a1.683 1.683 0 0 1-1.12 2.095 1.8 1.8 0 0 1-.493.067l.011.011Zm128.276-75.598c-4.583 0-8.314-3.731-8.314-8.313 0-4.583 3.731-8.313 8.314-8.313 4.582 0 8.313 3.73 8.313 8.313 0 4.582-3.731 8.313-8.313 8.313Zm0-13.276a4.954 4.954 0 0 0-4.953 4.952 4.954 4.954 0 0 0 4.953 4.952 4.954 4.954 0 0 0 4.952-4.952 4.954 4.954 0 0 0-4.952-4.952Zm-19.496 100.226h-.1a1.682 1.682 0 0 1-1.58-1.782c1.389-23.293 20.783-41.544 44.155-41.544 19.473 0 36.447 12.481 42.24 31.057a1.677 1.677 0 0 1-1.109 2.107 1.677 1.677 0 0 1-2.107-1.109c-5.344-17.165-21.03-28.694-39.024-28.694-21.59 0-39.506 16.862-40.794 38.385a1.682 1.682 0 0 1-1.681 1.58Zm-12.089-111.67a1.4 1.4 0 0 1-.37-.045l-11.551-2.565a1.66 1.66 0 0 1-1.221-1.098 1.655 1.655 0 0 1 .302-1.614l8.134-9.803-13.019-2.095a1.678 1.678 0 0 1-.918-2.846l10.531-10.532a1.671 1.671 0 0 1 2.376 0c.649.66.661 1.725 0 2.375l-8.202 8.202 12.672 2.039c.594.09 1.098.504 1.311 1.064.213.56.101 1.199-.28 1.67l-8.258 9.949 8.874 1.972a1.68 1.68 0 0 1 1.277 2.005 1.683 1.683 0 0 1-1.635 1.311l-.023.011Zm-68.042 68.289a1.663 1.663 0 0 1-1.524-.975c-1.311-2.868-1.994-5.355-2.241-7.484-4.157-.84-8.257-3.63-10.162-9.658-.784-2.498-1.087-4.952-.93-7.283a14.842 14.842 0 0 1-2.812-1.613c-2.812-2.028-4.448-4.717-4.863-8-1.109-8.75 7.025-18.666 7.373-19.092a1.685 1.685 0 0 1 2.364-.224c.717.594.818 1.647.224 2.364-.079.09-7.563 9.221-6.622 16.526.303 2.353 1.445 4.213 3.496 5.692.493.359.974.65 1.445.896a15.674 15.674 0 0 1 5.076-7.764c3.417-2.846 7.63-3.877 10.218-2.498 1.232.649 1.938 1.927 1.927 3.484-.034 3.44-3.294 7.776-7.417 9.86-2.308 1.165-4.728 1.591-7.104 1.277-.022 1.591.213 3.372.841 5.355 1.333 4.247 4.022 6.409 6.901 7.216.348-3.384 1.815-5.479 2.757-6.487 2.33-2.51 5.859-3.563 8.582-2.555 1.893.695 3.07 2.319 3.148 4.325.146 3.832-3.675 7.305-9.086 8.235a13.47 13.47 0 0 1-1.916.202c.291 1.792.919 3.742 1.86 5.815.392.84.022 1.837-.829 2.229a1.739 1.739 0 0 1-.695.157h-.011Zm5.322-17.983c-1.199 0-2.723.561-3.922 1.86-1.098 1.177-1.725 2.734-1.893 4.572a13.605 13.605 0 0 0 1.501-.157c3.552-.616 6.375-2.768 6.297-4.796-.011-.414-.135-.997-.953-1.299a2.92 2.92 0 0 0-1.03-.168v-.012Zm-16.403-9.837c2.039.258 3.787-.28 5.109-.941 3.428-1.737 5.557-5.187 5.58-6.902 0-.157-.012-.425-.135-.493-1.165-.616-3.977.023-6.498 2.118-1.166.975-3.137 3.003-4.045 6.218h-.011Zm105.431-42.398a1.69 1.69 0 0 1-1.188-.493 1.67 1.67 0 0 1 0-2.376l7.574-7.574a1.67 1.67 0 0 1 2.375 0c.65.661.661 1.726 0 2.376l-7.574 7.574a1.69 1.69 0 0 1-1.187.493Zm-2.017-12.601a1.69 1.69 0 0 1-1.188-.493 1.67 1.67 0 0 1 0-2.375l7.294-7.294a1.67 1.67 0 0 1 2.375 0c.65.661.662 1.725 0 2.375l-7.293 7.294a1.69 1.69 0 0 1-1.188.493Zm88.165 42.094c-1.423 0-2.879-.213-4.336-.65-2.42-.729-4.526-2.23-6.263-4.146a17.099 17.099 0 0 1-7.328 1.95c-9.052.257-13.075-7.115-13.96-11.07a1.68 1.68 0 0 1 1.277-2.005 1.68 1.68 0 0 1 2.006 1.266c.09.369 2.106 8.739 10.577 8.447a13.455 13.455 0 0 0 5.389-1.31c-1.67-2.667-2.745-5.726-3.137-8.549-.493-3.597.235-6.196 2.061-7.35 1.065-.661 2.902-1.087 5.658.717 3.843 2.532 5.434 6.196 4.336 10.073-.638 2.252-2.084 4.302-4.044 5.938 1.266 1.311 2.745 2.319 4.392 2.812 4.773 1.434 8.257-.37 10.33-2.14 3.316-2.812 4.65-6.689 4.47-8.067a1.678 1.678 0 0 1 1.446-1.882c.918-.135 1.759.526 1.882 1.445.358 2.711-1.692 7.72-5.625 11.058-2.677 2.275-5.826 3.451-9.131 3.451v.012Zm-11.686-20.627a.539.539 0 0 0-.235.045c-.381.235-.863 1.557-.516 4.044.325 2.342 1.233 4.93 2.622 7.171 1.446-1.255 2.454-2.734 2.868-4.179.684-2.432-.336-4.627-2.946-6.353-.885-.582-1.457-.74-1.77-.74l-.023.012Zm-221.762 28.11c2.608-2.839 3.38-6.372 1.726-7.892-1.655-1.519-5.109-.449-7.717 2.391-2.607 2.839-3.38 6.373-1.725 7.892 1.654 1.519 5.109.449 7.716-2.391Z\"\n fill={palette.lines}\n />\n <path\n d=\"M114.963 131.871c-1.187 0-2.263-.358-3.092-1.12-1.244-1.143-1.692-2.98-1.244-5.053.392-1.782 1.401-3.63 2.868-5.221 3.283-3.574 7.72-4.672 10.095-2.488 2.376 2.185 1.67 6.689-1.613 10.275-2.14 2.33-4.773 3.607-7.003 3.607h-.011Zm1.009-9.12c-1.042 1.143-1.793 2.476-2.051 3.664-.19.863-.101 1.546.235 1.86.706.638 3.194.056 5.345-2.286s2.521-4.874 1.826-5.523c-.706-.639-3.193-.056-5.344 2.285h-.011Z\"\n fill={palette.lines}\n />\n <path\n d=\"M130.705 146.358c-1.187 0-2.263-.358-3.092-1.12l-15.753-14.487a1.682 1.682 0 0 1 2.274-2.476l15.753 14.487c.695.638 3.194.056 5.345-2.286 2.151-2.341 2.521-4.874 1.826-5.523l-15.753-14.487a1.681 1.681 0 1 1 2.274-2.476l15.753 14.486c2.376 2.185 1.659 6.689-1.624 10.263-2.14 2.331-4.773 3.608-7.003 3.608v.011Zm133.318 13.154a17.92 17.92 0 0 1-3.149-.28c-6.308-1.12-10.677-5.188-9.949-9.255.381-2.106 2.005-3.787 4.594-4.739 2.274-.84 5.097-1.02 7.943-.504 6.308 1.12 10.678 5.187 9.95 9.254-.381 2.107-2.006 3.787-4.594 4.74-1.423.526-3.07.784-4.795.784Zm-3.698-11.697c-1.333 0-2.599.19-3.652.583-1.401.515-2.286 1.299-2.443 2.173-.336 1.86 2.689 4.549 7.227 5.356 2.241.403 4.504.269 6.196-.348 1.4-.515 2.285-1.299 2.442-2.173.336-1.86-2.689-4.549-7.226-5.356a14.23 14.23 0 0 0-2.555-.224l.011-.011Z\"\n fill={palette.lines}\n />\n <path\n d=\"M250.678 162.53c-.1 0-.201 0-.302-.022a1.677 1.677 0 0 1-1.356-1.95l1.905-10.599a1.684 1.684 0 0 1 1.949-1.356 1.677 1.677 0 0 1 1.356 1.95l-1.905 10.599a1.676 1.676 0 0 1-1.647 1.389v-.011Zm17.771 11.269c-.101 0-.202 0-.303-.022a1.677 1.677 0 0 1-1.356-1.95l3.306-18.431a1.684 1.684 0 0 1 1.949-1.355 1.676 1.676 0 0 1 1.356 1.949l-3.305 18.431a1.678 1.678 0 0 1-1.647 1.389v-.011Zm-27.327-32.967a1.67 1.67 0 0 1-1.546-1.031l-5.233-12.391a1.661 1.661 0 0 1 0-1.289c.168-.414.493-.739.908-.918l25.332-10.689a1.68 1.68 0 0 1 2.196.896l5.233 12.392c.179.414.179.874 0 1.288-.168.415-.493.74-.908.919l-25.332 10.689a1.7 1.7 0 0 1-.65.134Zm-3.025-13.176 3.921 9.288 22.24-9.377-3.921-9.289-22.24 9.378Zm-6.891 29.578c-.426 0-.841-.157-1.165-.47l-12.291-11.899-6.297 6.498a1.67 1.67 0 0 1-2.375.034 1.67 1.67 0 0 1-.034-2.375l7.462-7.709a1.68 1.68 0 0 1 2.375-.033l13.501 13.075a1.67 1.67 0 0 1 .034 2.375 1.7 1.7 0 0 1-1.21.516v-.012Zm-46.945 21.455c-.426 0-.841-.157-1.166-.47a1.672 1.672 0 0 1-.033-2.376l14.857-15.338a1.67 1.67 0 0 1 2.375-.034c.672.65.683 1.715.033 2.376l-14.856 15.338a1.699 1.699 0 0 1-1.21.515v-.011Zm147.67-14.599c-.291 0-.582-.078-.84-.224l-20.672-11.932a1.683 1.683 0 0 1-.616-2.297l11.932-20.672a1.706 1.706 0 0 1 1.02-.784 1.701 1.701 0 0 1 1.277.168l20.672 11.932a1.683 1.683 0 0 1 .616 2.297l-11.932 20.672a1.703 1.703 0 0 1-1.02.784 1.925 1.925 0 0 1-.437.056Zm-18.375-14.229 17.759 10.252 10.252-17.759-17.759-10.252-10.252 17.759Zm-152.465 15.736h-.056l-15.653-.47a1.708 1.708 0 0 1-1.434-.886 1.696 1.696 0 0 1 .045-1.68l8.235-13.322c.314-.515.885-.851 1.479-.795a1.703 1.703 0 0 1 1.434.885l7.417 13.792a1.7 1.7 0 0 1-.044 1.681 1.689 1.689 0 0 1-1.435.795h.012Zm-12.695-3.742 9.838.291-4.661-8.661-5.177 8.37Zm142.08-6.875a1.69 1.69 0 0 1-1.457-.84l-11.114-19.26a1.666 1.666 0 0 1 0-1.68 1.687 1.687 0 0 1 1.456-.841h22.24a1.69 1.69 0 0 1 1.457.841 1.67 1.67 0 0 1 0 1.68l-11.115 19.26c-.302.516-.851.84-1.456.84h-.011Zm-8.213-19.259 8.213 14.218 8.212-14.218h-16.425Z\"\n fill={palette.lines}\n />\n <path d=\"m198.109 134.477 18.476 24.761-30.689 3.619 12.213-28.38Z\" fill={palette.lines} />\n <path\n d=\"M185.897 164.536a1.671 1.671 0 0 1-1.345-.672 1.69 1.69 0 0 1-.202-1.669l12.202-28.391c.235-.549.75-.93 1.344-1.009a1.654 1.654 0 0 1 1.546.661l18.487 24.761a1.69 1.69 0 0 1 .202 1.67c-.235.549-.751.93-1.345 1.008l-30.688 3.63c-.067 0-.134.011-.201.011Zm12.593-26.733-9.904 23.036 24.906-2.947-15.002-20.1v.011Zm117.554 116.906c-4.941 0-10.655-1.065-17.165-3.855a1.69 1.69 0 0 1-.885-2.207 1.688 1.688 0 0 1 2.207-.885c24.447 10.498 36.077-5.019 36.559-5.692a1.685 1.685 0 0 1 2.342-.381c.75.538.918 1.591.381 2.342-.101.146-7.899 10.678-23.451 10.678h.012Z\"\n fill={palette.lines}\n />\n <path\n d=\"M198.277 198.441c0 .896-.056 1.77-.145 2.633-20.089-1.972-35.854-5.143-47.047-8.022 2.443-10.611 11.944-18.521 23.283-18.521 13.198 0 23.909 10.7 23.909 23.91Z\"\n fill={palette.shapes2}\n />\n <path\n d=\"M253.961 168.822a15.8 15.8 0 0 1-2.073 7.865l-14.43-8.335-8.101 14.027c-4.482-2.846-7.462-7.854-7.462-13.557 0-8.862 7.171-16.033 16.033-16.033 8.863 0 16.033 7.171 16.033 16.033Z\"\n fill={palette.shapes1}\n />\n <path\n d=\"M154.043 449.909a1.76 1.76 0 0 1-.784-.19 1.68 1.68 0 0 1-.695-2.275c2.824-5.344 5.468-10.162 8.034-14.834 21.164-38.576 29.926-54.541 3.428-121.71-15.551-39.416-21.243-70.149-23.282-88.994-1.972-18.162-1.053-28.885-.773-31.417a2.363 2.363 0 0 1 0-.571c.123-.852.963-1.457 1.792-1.446.359.012.695.146.975.359.706.246 3.025.964 10.577 2.902 13.602 3.496 28.738 6.072 44.984 7.663 17.681 1.726 36.347 2.23 55.483 1.468 23.025-.885 47.147-3.596 71.695-8.056a464.258 464.258 0 0 0 11.384-2.196 553.362 553.362 0 0 0 15.394-3.327 565.684 565.684 0 0 0 7.249-1.714c.46-.112.941-.023 1.334.246.392.269.649.684.717 1.154.045.336 1.098 8.302-3.608 29.187l42.912 86.148c.224.46.235.986.022 1.457a1.697 1.697 0 0 1-1.12.93l-30.812 7.663c-.056 37.702-2.677 71.404-30.733 73.107-9.893.605-33.052 2.006-55.437-4.033-27.473-7.406-44.772-23.428-51.427-47.618a1.674 1.674 0 0 1 1.176-2.061 1.675 1.675 0 0 1 2.062 1.176c6.319 22.957 22.822 38.184 49.062 45.265 21.86 5.893 44.638 4.515 54.363 3.921 25.467-1.546 27.584-34.497 27.584-71.056a1.69 1.69 0 0 1 1.278-1.636l30.049-7.473-42.251-84.815a1.682 1.682 0 0 1-.134-1.121c3.417-15.002 3.809-23.282 3.776-26.688-1.782.426-3.552.84-5.311 1.244a595.78 595.78 0 0 1-15.473 3.35c-3.72.762-7.574 1.501-11.451 2.207-24.705 4.493-48.984 7.227-72.165 8.112-19.283.75-38.106.257-55.942-1.491-16.415-1.602-31.719-4.212-45.5-7.753-4.269-1.098-7.395-1.938-9.311-2.498-.706 9.624-1.838 51.718 23.977 117.172 27.069 68.637 17.456 86.16-3.619 124.557-2.555 4.661-5.199 9.467-8.011 14.789a1.683 1.683 0 0 1-1.49.896h.022Z\"\n fill={palette.lines}\n />\n <path\n d=\"M217.985 203.765a1.683 1.683 0 0 1-1.456-2.521l19.517-33.826a1.71 1.71 0 0 1 1.02-.784 1.701 1.701 0 0 1 1.277.168l22.756 13.143a1.681 1.681 0 0 1 .616 2.296 1.673 1.673 0 0 1-2.297.617l-21.299-12.302-18.677 32.368a1.683 1.683 0 0 1-1.457.841Z\"\n fill={palette.lines}\n />\n </svg>\n );\n};\n\nexport default ThinkingMedium;\n"],"mappings":";;;AAMA,IAAM,kBAAsD,EAAE,OAAO,eAAe,YAAY;CAC9F,MAAM,iBAA0B;EAC9B,QAAQ,OAAR;GACE,KAAK,aACH,OAAO;IACL,OAAO;IACP,SAAS;IACT,SAAS;IACV;GACH,KAAK,UACH,OAAO;IACL,OAAO;IACP,SAAS;IACT,SAAS;IACV;GACH,SACE,OAAO;IACL,OAAO;IACP,SAAS;IACT,SAAS;IACV;;KAEH;CAEJ,OACE,qBAAC,OAAD;EAAK,GAAI;EAAe,SAAS,YAAY;YAA7C;GACG;GACD,oBAAC,QAAD;IAAM,GAAE;IAAoD,MAAM,QAAQ;IAAS,CAAA;GACnF,oBAAC,QAAD;IACE,GAAE;IACF,MAAM,QAAQ;IACd,CAAA;GACF,oBAAC,QAAD;IACE,GAAE;IACF,MAAM,QAAQ;IACd,CAAA;GACF,oBAAC,QAAD;IACE,GAAE;IACF,MAAM,QAAQ;IACd,CAAA;GACF,oBAAC,QAAD;IAAM,GAAE;IAAyD,MAAM,QAAQ;IAAW,CAAA;GAC1F,oBAAC,QAAD;IACE,GAAE;IACF,MAAM,QAAQ;IACd,CAAA;GACF,oBAAC,QAAD;IACE,GAAE;IACF,MAAM,QAAQ;IACd,CAAA;GACF,oBAAC,QAAD;IACE,GAAE;IACF,MAAM,QAAQ;IACd,CAAA;GACF,oBAAC,QAAD;IACE,GAAE;IACF,MAAM,QAAQ;IACd,CAAA;GACF,oBAAC,QAAD;IACE,GAAE;IACF,MAAM,QAAQ;IACd,CAAA;GACF,oBAAC,QAAD;IAAM,GAAE;IAA4D,MAAM,QAAQ;IAAS,CAAA;GAC3F,oBAAC,QAAD;IACE,GAAE;IACF,MAAM,QAAQ;IACd,CAAA;GACF,oBAAC,QAAD;IACE,GAAE;IACF,MAAM,QAAQ;IACd,CAAA;GACF,oBAAC,QAAD;IACE,GAAE;IACF,MAAM,QAAQ;IACd,CAAA;GACF,oBAAC,QAAD;IACE,GAAE;IACF,MAAM,QAAQ;IACd,CAAA;GACF,oBAAC,QAAD;IACE,GAAE;IACF,MAAM,QAAQ;IACd,CAAA;GACE"}
@@ -1,3 +1,7 @@
1
- import { n as InputTypes } from "../../Input.js";
2
- import { t as Input_default } from "../../Input2.js";
1
+ import { n as InputTypes, t as Input } from "../../Input.js";
2
+ //#region src/components/Input/index.ts
3
+ var Input_default = Input;
4
+ //#endregion
3
5
  export { InputTypes, Input_default as default };
6
+
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../src/components/Input/index.ts"],"sourcesContent":["import Input from './Input';\nexport { InputTypes } from './constants';\nexport * from './Input';\nexport default Input;\n"],"mappings":";;AAGA,IAAA,gBAAe"}
@@ -1,3 +1,7 @@
1
- import { a as Sublabel, n as renderLabel, r as renderLabelAsParent, t as getLabelText } from "../../utils2.js";
2
- import { t as Label_default } from "../../Label.js";
1
+ import { a as Sublabel, i as Label, n as renderLabel, r as renderLabelAsParent, t as getLabelText } from "../../utils2.js";
2
+ //#region src/components/Label/index.ts
3
+ var Label_default = Label;
4
+ //#endregion
3
5
  export { Sublabel, Label_default as default, getLabelText, renderLabel, renderLabelAsParent };
6
+
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../src/components/Label/index.ts"],"sourcesContent":["import Label from './Label';\nexport { Sublabel } from './SubLabel';\nexport * from './Label';\nexport * from './utils';\nexport default Label;\n"],"mappings":";;AAIA,IAAA,gBAAe"}
@@ -1,14 +1,17 @@
1
1
  import { t as uuid } from "../../uuid.js";
2
- import { c as ZIndex, n as AnalyticsId } from "../../constants2.js";
2
+ import { AnalyticsId, ZIndex } from "../../constants.js";
3
3
  import classNames from "classnames";
4
4
  import { useCallback, useRef, useState } from "react";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  import loaderStyles from "./styles.module.scss";
7
- let Overlay = /* @__PURE__ */ function(Overlay$1) {
8
- Overlay$1["screen"] = "screen";
9
- Overlay$1["parent"] = "parent";
10
- return Overlay$1;
7
+ //#region src/components/Loader/constants.ts
8
+ var Overlay = /* @__PURE__ */ function(Overlay) {
9
+ Overlay["screen"] = "screen";
10
+ Overlay["parent"] = "parent";
11
+ return Overlay;
11
12
  }({});
13
+ //#endregion
14
+ //#region src/components/Loader/Loader.tsx
12
15
  var Loader = (props) => {
13
16
  const { overlay, size = "small", className = "", labelId = uuid(), testId, center, inline, ariaLabelledById, ariaLabel = "Laster inn" } = props;
14
17
  const color = props.overlay ? "white" : props.color || "neutral";
@@ -81,7 +84,10 @@ var Loader = (props) => {
81
84
  })
82
85
  });
83
86
  };
87
+ //#endregion
88
+ //#region src/components/Loader/index.ts
84
89
  var Loader_default = Loader;
90
+ //#endregion
85
91
  export { Overlay, Loader_default as default };
86
92
 
87
93
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["Loader: React.FC<LoaderProps>"],"sources":["../../../src/components/Loader/constants.ts","../../../src/components/Loader/Loader.tsx","../../../src/components/Loader/index.ts"],"sourcesContent":["export enum Overlay {\n screen = 'screen',\n parent = 'parent',\n}\n","import { useCallback, useRef, useState } from 'react';\n\nimport classNames from 'classnames';\n\nimport type { PaletteNames } from '../../theme/palette';\n\nimport { Overlay } from './constants';\nimport { AnalyticsId, ZIndex } from '../../constants';\nimport { uuid } from '../../utils/uuid';\n\nimport loaderStyles from './styles.module.scss';\n\nexport type LoaderColors = PaletteNames;\nexport type LoaderSizes = 'tiny' | 'small' | 'medium' | 'large';\n\nexport interface LoaderProps {\n /** Sets the color of the loader. If overlay is used, the color will always be white. */\n color?: LoaderColors;\n /**\tAdds custom classes to the element. */\n className?: string;\n /** Changes the size of the loader. */\n size?: LoaderSizes;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** id of the label */\n labelId?: string;\n /** Centers the loader in a container */\n center?: boolean;\n /** Inline the loader so it can be used in a span or paragraph */\n inline?: boolean;\n /** Loader is displayed with grey background covering the entire screen */\n overlay?: keyof typeof Overlay;\n /** Individual id for loading icon (aria-labelledby). */\n ariaLabelledById?: string;\n /** String that labels the current loading element */\n ariaLabel?: string;\n}\n\nconst Loader: React.FC<LoaderProps> = props => {\n const {\n overlay,\n size = 'small',\n className = '',\n labelId = uuid(),\n testId,\n center,\n inline,\n ariaLabelledById,\n ariaLabel = 'Laster inn',\n } = props;\n const color = props.overlay ? 'white' : props.color || 'neutral';\n\n const showLoader = (): boolean => {\n if (overlay === Overlay.parent || inline) {\n return false;\n }\n\n return true;\n };\n\n const [display, setDisplay] = useState(showLoader());\n const hasInitializedRef = useRef(false);\n\n const isSmall = size === 'small';\n const isMedium = size === 'medium';\n const isLarge = size === 'large';\n\n const loaderWrapperClasses = classNames({\n [loaderStyles['loader-wrapper--center']]: center,\n [loaderStyles['loader-wrapper--overlay']]: overlay,\n [loaderStyles['loader-wrapper--overlay-screen']]: overlay === Overlay.screen,\n [loaderStyles['loader-wrapper--overlay-parent']]: overlay === Overlay.parent && display,\n [loaderStyles['loader-wrapper--inline']]: inline && display,\n });\n const loaderClasses = classNames(\n loaderStyles.loader,\n {\n [loaderStyles['loader--small']]: isSmall,\n [loaderStyles['loader--medium']]: isMedium,\n [loaderStyles['loader--large']]: isLarge,\n },\n className\n );\n const loaderDotClasses = classNames(loaderStyles.loader__dot, {\n [loaderStyles['loader__dot--small']]: isSmall,\n [loaderStyles['loader__dot--medium']]: isMedium,\n [loaderStyles['loader__dot--large']]: isLarge,\n [loaderStyles['loader__dot--banana']]: color === 'banana',\n [loaderStyles['loader__dot--cherry']]: color === 'cherry',\n [loaderStyles['loader__dot--kiwi']]: color === 'kiwi',\n [loaderStyles['loader__dot--neutral']]: color === 'neutral',\n [loaderStyles['loader__dot--plum']]: color === 'plum',\n [loaderStyles['loader__dot--black']]: color === 'black',\n [loaderStyles['loader__dot--white']]: color === 'white',\n });\n\n const wrapperRef = useCallback(\n (node: HTMLDivElement | null) => {\n if (node && !hasInitializedRef.current) {\n hasInitializedRef.current = true;\n if (overlay === Overlay.parent && node.parentElement?.style) {\n node.parentElement.style.position = 'relative';\n setDisplay(true);\n }\n if (inline && node.parentElement?.style) {\n node.parentElement.style.display = 'flex';\n setDisplay(true);\n }\n }\n },\n [overlay, inline]\n );\n\n return (\n <div className={loaderWrapperClasses} ref={wrapperRef} style={overlay === Overlay.screen ? { zIndex: ZIndex.OverlayScreen } : {}}>\n {display && (\n <div\n data-testid={testId}\n data-analyticsid={AnalyticsId.Loader}\n role=\"progressbar\"\n aria-labelledby={ariaLabelledById || labelId}\n className={loaderClasses}\n >\n <div className={loaderDotClasses} />\n <div className={loaderDotClasses} />\n <div className={loaderDotClasses} />\n <div className={loaderDotClasses} />\n {!ariaLabelledById && (\n <span id={labelId} className={loaderStyles['loader__hidden-text']}>\n {ariaLabel}\n </span>\n )}\n </div>\n )}\n </div>\n );\n};\n\nexport default Loader;\n","import Loader from './Loader';\nexport { Overlay } from './constants';\nexport * from './Loader';\nexport default Loader;\n"],"mappings":";;;;;;AAAA,IAAY,UAAA,yBAAA,WAAL;AACL,WAAA,YAAA;AACA,WAAA,YAAA;;;ACoCF,IAAMA,UAAgC,UAAS;CAC7C,MAAM,EACJ,SACA,OAAO,SACP,YAAY,IACZ,UAAU,MAAM,EAChB,QACA,QACA,QAC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S,OAAO,CAClB;EAGwD,OAAO,YAAY,QAAQ,SAAS,EAAE,QAAQ,OAAO,eAAe,GAAG,EAAE;YAC7H,WACC,qBAAC,OAAA;GACC,eAAa;GACb,oBAAkB,YAAY;GAC9B,MAAK;GACL,mBAAiB,oBAAoB;GACrC,WAAW;;IAEX,oBAAC,OAAA,EAAI,WAAW,kBAAA,CAAoB;IACpC,oBAAC,OAAA,EAAI,WAAW,kBAAA,CAAoB;IACpC,oBAAC,OAAA,EAAI,WAAW,kBAAA,CAAoB;IACpC,oBAAC,OAAA,EAAI,WAAW,kBAAA,CAAoB;IACnC,CAAC,oBACA,oBAAC,QAAA;KAAK,IAAI;KAAS,WAAW,aAAa;eACxC;MACI;;IAEL;GAEJ;;ACnIV,IAAA,iBDuIe"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../src/components/Loader/constants.ts","../../../src/components/Loader/Loader.tsx","../../../src/components/Loader/index.ts"],"sourcesContent":["export enum Overlay {\n screen = 'screen',\n parent = 'parent',\n}\n","import { useCallback, useRef, useState } from 'react';\n\nimport classNames from 'classnames';\n\nimport type { PaletteNames } from '../../theme/palette';\n\nimport { Overlay } from './constants';\nimport { AnalyticsId, ZIndex } from '../../constants';\nimport { uuid } from '../../utils/uuid';\n\nimport loaderStyles from './styles.module.scss';\n\nexport type LoaderColors = PaletteNames;\nexport type LoaderSizes = 'tiny' | 'small' | 'medium' | 'large';\n\nexport interface LoaderProps {\n /** Sets the color of the loader. If overlay is used, the color will always be white. */\n color?: LoaderColors;\n /**\tAdds custom classes to the element. */\n className?: string;\n /** Changes the size of the loader. */\n size?: LoaderSizes;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** id of the label */\n labelId?: string;\n /** Centers the loader in a container */\n center?: boolean;\n /** Inline the loader so it can be used in a span or paragraph */\n inline?: boolean;\n /** Loader is displayed with grey background covering the entire screen */\n overlay?: keyof typeof Overlay;\n /** Individual id for loading icon (aria-labelledby). */\n ariaLabelledById?: string;\n /** String that labels the current loading element */\n ariaLabel?: string;\n}\n\nconst Loader: React.FC<LoaderProps> = props => {\n const {\n overlay,\n size = 'small',\n className = '',\n labelId = uuid(),\n testId,\n center,\n inline,\n ariaLabelledById,\n ariaLabel = 'Laster inn',\n } = props;\n const color = props.overlay ? 'white' : props.color || 'neutral';\n\n const showLoader = (): boolean => {\n if (overlay === Overlay.parent || inline) {\n return false;\n }\n\n return true;\n };\n\n const [display, setDisplay] = useState(showLoader());\n const hasInitializedRef = useRef(false);\n\n const isSmall = size === 'small';\n const isMedium = size === 'medium';\n const isLarge = size === 'large';\n\n const loaderWrapperClasses = classNames({\n [loaderStyles['loader-wrapper--center']]: center,\n [loaderStyles['loader-wrapper--overlay']]: overlay,\n [loaderStyles['loader-wrapper--overlay-screen']]: overlay === Overlay.screen,\n [loaderStyles['loader-wrapper--overlay-parent']]: overlay === Overlay.parent && display,\n [loaderStyles['loader-wrapper--inline']]: inline && display,\n });\n const loaderClasses = classNames(\n loaderStyles.loader,\n {\n [loaderStyles['loader--small']]: isSmall,\n [loaderStyles['loader--medium']]: isMedium,\n [loaderStyles['loader--large']]: isLarge,\n },\n className\n );\n const loaderDotClasses = classNames(loaderStyles.loader__dot, {\n [loaderStyles['loader__dot--small']]: isSmall,\n [loaderStyles['loader__dot--medium']]: isMedium,\n [loaderStyles['loader__dot--large']]: isLarge,\n [loaderStyles['loader__dot--banana']]: color === 'banana',\n [loaderStyles['loader__dot--cherry']]: color === 'cherry',\n [loaderStyles['loader__dot--kiwi']]: color === 'kiwi',\n [loaderStyles['loader__dot--neutral']]: color === 'neutral',\n [loaderStyles['loader__dot--plum']]: color === 'plum',\n [loaderStyles['loader__dot--black']]: color === 'black',\n [loaderStyles['loader__dot--white']]: color === 'white',\n });\n\n const wrapperRef = useCallback(\n (node: HTMLDivElement | null) => {\n if (node && !hasInitializedRef.current) {\n hasInitializedRef.current = true;\n if (overlay === Overlay.parent && node.parentElement?.style) {\n node.parentElement.style.position = 'relative';\n setDisplay(true);\n }\n if (inline && node.parentElement?.style) {\n node.parentElement.style.display = 'flex';\n setDisplay(true);\n }\n }\n },\n [overlay, inline]\n );\n\n return (\n <div className={loaderWrapperClasses} ref={wrapperRef} style={overlay === Overlay.screen ? { zIndex: ZIndex.OverlayScreen } : {}}>\n {display && (\n <div\n data-testid={testId}\n data-analyticsid={AnalyticsId.Loader}\n role=\"progressbar\"\n aria-labelledby={ariaLabelledById || labelId}\n className={loaderClasses}\n >\n <div className={loaderDotClasses} />\n <div className={loaderDotClasses} />\n <div className={loaderDotClasses} />\n <div className={loaderDotClasses} />\n {!ariaLabelledById && (\n <span id={labelId} className={loaderStyles['loader__hidden-text']}>\n {ariaLabel}\n </span>\n )}\n </div>\n )}\n </div>\n );\n};\n\nexport default Loader;\n","import Loader from './Loader';\nexport { Overlay } from './constants';\nexport * from './Loader';\nexport default Loader;\n"],"mappings":";;;;;;;AAAA,IAAY,UAAL,yBAAA,SAAA;CACL,QAAA,YAAS;CACT,QAAA,YAAS;;KACV;;;ACmCD,IAAM,UAAgC,UAAS;CAC7C,MAAM,EACJ,SACA,OAAO,SACP,YAAY,IACZ,UAAU,MAAM,EAChB,QACA,QACA,QACA,kBACA,YAAY,iBACV;CACJ,MAAM,QAAQ,MAAM,UAAU,UAAU,MAAM,SAAS;CAEvD,MAAM,mBAA4B;EAChC,IAAI,YAAY,QAAQ,UAAU,QAChC,OAAO;EAGT,OAAO;;CAGT,MAAM,CAAC,SAAS,cAAc,SAAS,YAAY,CAAC;CACpD,MAAM,oBAAoB,OAAO,MAAM;CAEvC,MAAM,UAAU,SAAS;CACzB,MAAM,WAAW,SAAS;CAC1B,MAAM,UAAU,SAAS;CAEzB,MAAM,uBAAuB,WAAW;GACrC,aAAa,4BAA4B;GACzC,aAAa,6BAA6B;GAC1C,aAAa,oCAAoC,YAAY,QAAQ;GACrE,aAAa,oCAAoC,YAAY,QAAQ,UAAU;GAC/E,aAAa,4BAA4B,UAAU;EACrD,CAAC;CACF,MAAM,gBAAgB,WACpB,aAAa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1
- import { n as AnalyticsId } from "../../constants2.js";
2
- import { t as getColor } from "../../color.js";
1
+ import { AnalyticsId } from "../../constants.js";
2
+ import { getColor } from "../../theme/currys/color.js";
3
3
  import { useId } from "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
+ //#region src/components/Logo/Logo.tsx
5
6
  var Logo = ({ size = 300, color = "black", byline = false, className, testId }) => {
6
7
  const titleId = useId();
7
8
  if (byline) return /* @__PURE__ */ jsxs("svg", {
@@ -39,7 +40,10 @@ var Logo = ({ size = 300, color = "black", byline = false, className, testId })
39
40
  })]
40
41
  });
41
42
  };
43
+ //#endregion
44
+ //#region src/components/Logo/index.ts
42
45
  var Logo_default = Logo;
46
+ //#endregion
43
47
  export { Logo_default as default };
44
48
 
45
49
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["Logo: React.FC<LogoProps>"],"sources":["../../../src/components/Logo/Logo.tsx","../../../src/components/Logo/index.ts"],"sourcesContent":["import { useId } from 'react';\n\nimport { AnalyticsId } from '../../constants';\nimport { getColor } from '../../theme/currys/color';\n\ntype LogoColor = 'black' | 'white';\n\nexport interface LogoProps {\n /** Changes the size of the logo. */\n size?: number;\n /** Adds custom classes to the element. */\n className?: string;\n /**\tChanges the color of the logo. */\n color?: LogoColor;\n /** Changes to the byline variant of the logo. */\n byline?: boolean;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nconst Logo: React.FC<LogoProps> = ({ size = 300, color = 'black', byline = false, className, testId }) => {\n const titleId = useId();\n\n if (byline) {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width={size}\n role={'img'}\n aria-labelledby={titleId}\n viewBox=\"0 0 87 12\"\n className={className}\n data-testid={testId}\n data-analyticsid={AnalyticsId.Logo}\n >\n <title id={titleId}>{'Helsenorge'}</title>\n <g fill={getColor(color)}>\n <path d=\"M5 .8v2.8H2.6V.8H1V8h1.6V5.1H5V8h1.6V.8zM20.9 6.6V.8h-1.6V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.7.9.5.9.9V3h1.7v-.1c0-1.3-1.1-2.2-2.6-2.2-1.6 0-2.6.8-2.6 2.1 0 1.5 1.3 1.9 2.4 2.3.7.2 1.4.4 1.4.9s-.3.8-1.1.8c-.7 0-1.1-.4-1.1-1v-.1h-1.7v.1c0 1.5 1.1 2.4 2.8 2.4 1.7 0 2.7-.8 2.7-2.2-.1-1.5-1.4-2-2.4-2.3z\" />\n </g>\n </svg>\n );\n }\n\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width={size}\n role={'img'}\n aria-labelledby={titleId}\n viewBox=\"0 0 502 220\"\n className={className}\n data-testid={testId}\n data-analyticsid={AnalyticsId.Logo}\n >\n <title id={titleId}>{'Helsenorge'}</title>\n <g fill={getColor(color)}>\n <path d=\"M39.8 2.5v26.9H17V2.5H1v69.9h16V43.6h22.8v28.8h16.1V2.5zM250.3 58.6V2.5h-16v69.9h43.5V58.6zM142.9 122.5c-16.1 0-27.4 13.6-27.4 33.1s11.2 33.1 27.4 33.1 27.4-13.6 27.4-33.1-11.3-33.1-27.4-33.1zm19 33.1c0 11.9-5 25.9-19 25.9s-19-13.9-19-25.9c0-11.9 5-25.9 19-25.9s19 14 19 25.9zM501 40c0-19.1-11.1-32.4-27-32.4-16.4 0-27.4 13.3-27.4 33.1 0 19.5 11.5 33.1 28 33.1 12.2 0 21.4-6 24.7-16.2l.5-1.6h-8.3l-.3.7c-2.8 6.2-8.8 9.8-16.6 9.8-12.9 0-18.5-11.5-19.5-22.7H501V40zm-8.3-3.2h-37.6c1-10.8 6.5-21.9 18.9-21.9 13.2 0 18.3 12.6 18.7 21.9zM30.4 122.4c-10.8 0-16.6 6.7-19.5 11.8v-9.9H3.3v62.6h8.1v-31.4c0-8.4 4.4-25.7 18.1-25.7 14 0 15.9 12 15.9 25v32.1h8.1v-32.1c.1-16.1-2.7-32.4-23.1-32.4zM134.3 59V43H157V30h-22.7V15.9H165V2.5h-46.4v69.9h47.3V59zM466.7 173.4v-16h22.7v-13h-22.7v-14.1h30.7v-13.4H451v69.9h47.3v-13.4zM246.7 140.5v-16.3h-7.6v62.6h8.1v-37.6l27.3-19.6v-9zM393.5 120.6l-14.7 10.5c-4.4-5.6-11.2-8.7-18.8-8.7-13.6 0-23.6 9.8-23.6 23.3 0 10.6 6.2 19.1 16 22.2l-16 17.5c-4 4.6-5.7 8.3-5.7 12.7 0 12.6 11.1 20.7 28.2 20.7 16.9 0 28.3-8.3 28.3-20.7 0-12.5-11.1-20.6-28.3-20.6-1.7 0-3.9.2-5.6.5l8-9c12.9-.7 22.2-10.4 22.2-23.3 0-2.8-.4-5.5-1.2-7.8 0-.1-.1-.2-.1-.3l11.2-8.1v-8.9zm-34.4 64.2c12.1 0 20 5.2 20 13.4s-7.8 13.5-20 13.5c-12.1 0-19.9-5.3-19.9-13.5 0-7.8 8.3-13.4 19.9-13.4zm.9-23c-8.8 0-15.2-6.8-15.2-16 0-9.3 6.4-16 15.2-16s15.2 6.7 15.2 16c0 9.2-6.4 16-15.2 16zM366.7 30.3c-6.6-2.3-13.5-4.7-13.5-9.2 0-4.8 4.2-7 9.3-7 5.4 0 9 4.5 9 8.5v.8h16.2v-.6c0-13-10.2-21.7-25.4-21.7-15.3 0-24.9 7.8-24.9 20.4 0 14.7 13.1 18.4 22.9 21.9 6.5 2.4 13.6 4.3 13.6 8.7 0 4.6-3.4 8-10.6 8-6.5 0-10.9-3.8-10.9-9.4v-.8h-16.7v.8c0 14.5 10.3 23.1 27.5 23.1 16.5 0 26-7.6 26-21.5 0-14.4-12.5-18.5-22.5-22z\" />\n </g>\n </svg>\n );\n};\n\nexport default Logo;\n","import Logo from './Logo';\nexport * from './Logo';\nexport default Logo;\n"],"mappings":";;;;AAoBA,IAAMA,QAA6B,EAAE,OAAO,KAAK,QAAQ,SAAS,SAAS,OAAO,WAAW,aAAa;CACxG,MAAM,UAAU,OAAO;AAEvB,KAAI,OACF,QACE,qBAAC,OAAA;EACC,OAAM;EACN,OAAO;EACP,MAAM;EACN,mBAAiB;EACjB,SAAQ;EACG;EACX,eAAa;EACb,oBAAkB,YAAY;aAE9B,oBAAC,SAAA;GAAM,IAAI;aAAU;IAAqB,EAC1C,oBAAC,KAAA;GAAE,MAAM,SAAS,MAAM;aACtB,oBAAC,QAAA,EAAK,GAAE,yxCAAA,CAA0xC;IAChyC,CAAA;GACA;AAIV,QACE,qBAAC,OAAA;EACC,OAAM;EACN,OAAO;EACP,MAAM;EACN,mBAAiB;EACjB,SAAQ;EACG;EACX,eAAa;EACb,oBAAkB,YAAY;aAE9B,oBAAC,SAAA;GAAM,IAAI;aAAU;IAAqB,EAC1C,oBAAC,KAAA;GAAE,MAAM,SAAS,MAAM;aACtB,oBAAC,QAAA,EAAK,GAAE,iqDAAA,CAAkqD;IACxqD,CAAA;GACA;;ACxDV,IAAA,eD4De"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../src/components/Logo/Logo.tsx","../../../src/components/Logo/index.ts"],"sourcesContent":["import { useId } from 'react';\n\nimport { AnalyticsId } from '../../constants';\nimport { getColor } from '../../theme/currys/color';\n\ntype LogoColor = 'black' | 'white';\n\nexport interface LogoProps {\n /** Changes the size of the logo. */\n size?: number;\n /** Adds custom classes to the element. */\n className?: string;\n /**\tChanges the color of the logo. */\n color?: LogoColor;\n /** Changes to the byline variant of the logo. */\n byline?: boolean;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nconst Logo: React.FC<LogoProps> = ({ size = 300, color = 'black', byline = false, className, testId }) => {\n const titleId = useId();\n\n if (byline) {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width={size}\n role={'img'}\n aria-labelledby={titleId}\n viewBox=\"0 0 87 12\"\n className={className}\n data-testid={testId}\n data-analyticsid={AnalyticsId.Logo}\n >\n <title id={titleId}>{'Helsenorge'}</title>\n <g fill={getColor(color)}>\n <path d=\"M5 .8v2.8H2.6V.8H1V8h1.6V5.1H5V8h1.6V.8zM20.9 6.6V.8h-1.6V8h4.5V6.6zM57.9 1.4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.1c0-1.3-1.1-2.2-2.6-2.2-1.6 0-2.6.8-2.6 2.1 0 1.5 1.3 1.9 2.4 2.3.7.2 1.4.4 1.4.9s-.3.8-1.1.8c-.7 0-1.1-.4-1.1-1v-.1h-1.7v.1c0 1.5 1.1 2.4 2.8 2.4 1.7 0 2.7-.8 2.7-2.2-.1-1.5-1.4-2-2.4-2.3z\" />\n </g>\n </svg>\n );\n }\n\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width={size}\n role={'img'}\n aria-labelledby={titleId}\n viewBox=\"0 0 502 220\"\n className={className}\n data-testid={testId}\n data-analyticsid={AnalyticsId.Logo}\n >\n <title id={titleId}>{'Helsenorge'}</title>\n <g fill={getColor(color)}>\n <path d=\"M39.8 2.5v26.9H17V2.5H1v69.9h16V43.6h22.8v28.8h16.1V2.5zM250.3 58.6V2.5h-16v69.9h43.5V58.6zM142.9 122.5c-16.1 0-27.4 13.6-27.4 33.1s11.2 33.1 27.4 33.1 27.4-13.6 27.4-33.1-11.3-33.1-27.4-33.1zm19 33.1c0 11.9-5 25.9-19 25.9s-19-13.9-19-25.9c0-11.9 5-25.9 19-25.9s19 14 19 25.9zM501 40c0-19.1-11.1-32.4-27-32.4-16.4 0-27.4 13.3-27.4 33.1 0 19.5 11.5 33.1 28 33.1 12.2 0 21.4-6 24.7-16.2l.5-1.6h-8.3l-.3.7c-2.8 6.2-8.8 9.8-16.6 9.8-12.9 0-18.5-11.5-19.5-22.7H501V40zm-8.3-3.2h-37.6c1-10.8 6.5-21.9 18.9-21.9 13.2 0 18.3 12.6 18.7 21.9zM30.4 122.4c-10.8 0-16.6 6.7-19.5 11.8v-9.9H3.3v62.6h8.1v-31.4c0-8.4 4.4-25.7 18.1-25.7 14 0 15.9 12 15.9 25v32.1h8.1v-32.1c.1-16.1-2.7-32.4-23.1-32.4zM134.3 59V43H157V30h-22.7V15.9H165V2.5h-46.4v69.9h47.3V59zM466.7 173.4v-16h22.7v-13h-22.7v-14.1h30.7v-13.4H451v69.9h47.3v-13.4zM246.7 140.5v-16.3h-7.6v62.6h8.1v-37.6l27.3-19.6v-9zM393.5 120.6l-14.7 10.5c-4.4-5.6-11.2-8.7-18.8-8.7-13.6 0-23.6 9.8-23.6 23.3 0 10.6 6.2 19.1 16 22.2l-16 17.5c-4 4.6-5.7 8.3-5.7 12.7 0 12.6 11.1 20.7 28.2 20.7 16.9 0 28.3-8.3 28.3-20.7 0-12.5-11.1-20.6-28.3-20.6-1.7 0-3.9.2-5.6.5l8-9c12.9-.7 22.2-10.4 22.2-23.3 0-2.8-.4-5.5-1.2-7.8 0-.1-.1-.2-.1-.3l11.2-8.1v-8.9zm-34.4 64.2c12.1 0 20 5.2 20 13.4s-7.8 13.5-20 13.5c-12.1 0-19.9-5.3-19.9-13.5 0-7.8 8.3-13.4 19.9-13.4zm.9-23c-8.8 0-15.2-6.8-15.2-16 0-9.3 6.4-16 15.2-16s15.2 6.7 15.2 16c0 9.2-6.4 16-15.2 16zM366.7 30.3c-6.6-2.3-13.5-4.7-13.5-9.2 0-4.8 4.2-7 9.3-7 5.4 0 9 4.5 9 8.5v.8h16.2v-.6c0-13-10.2-21.7-25.4-21.7-15.3 0-24.9 7.8-24.9 20.4 0 14.7 13.1 18.4 22.9 21.9 6.5 2.4 13.6 4.3 13.6 8.7 0 4.6-3.4 8-10.6 8-6.5 0-10.9-3.8-10.9-9.4v-.8h-16.7v.8c0 14.5 10.3 23.1 27.5 23.1 16.5 0 26-7.6 26-21.5 0-14.4-12.5-18.5-22.5-22z\" />\n </g>\n </svg>\n );\n};\n\nexport default Logo;\n","import Logo from './Logo';\nexport * from './Logo';\nexport default Logo;\n"],"mappings":";;;;;AAoBA,IAAM,QAA6B,EAAE,OAAO,KAAK,QAAQ,SAAS,SAAS,OAAO,WAAW,aAAa;CACxG,MAAM,UAAU,OAAO;CAEvB,IAAI,QACF,OACE,qBAAC,OAAD;EACE,OAAM;EACN,OAAO;EACP,MAAM;EACN,mBAAiB;EACjB,SAAQ;EACG;EACX,eAAa;EACb,oBAAkB,YAAY;YARhC,CAUE,oBAAC,SAAD;GAAO,IAAI;aAAU;GAAqB,CAAA,EAC1C,oBAAC,KAAD;GAAG,MAAM,SAAS,MAAM;aACtB,oBAAC,QAAD,EAAM,GAAE,yxCAA0xC,CAAA;GAChyC,CAAA,CACA;;CAIV,OACE,qBAAC,OAAD;EACE,OAAM;EACN,OAAO;EACP,MAAM;EACN,mBAAiB;EACjB,SAAQ;EACG;EACX,eAAa;EACb,oBAAkB,YAAY;YARhC,CAUE,oBAAC,SAAD;GAAO,IAAI;aAAU;GAAqB,CAAA,EAC1C,oBAAC,KAAD;GAAG,MAAM,SAAS,MAAM;aACtB,oBAAC,QAAD,EAAM,GAAE,iqDAAkqD,CAAA;GACxqD,CAAA,CACA;;;;;ACxDV,IAAA,eAAe"}
@@ -1,50 +1,53 @@
1
1
  import { t as uuid } from "../../uuid.js";
2
- import { a as IconSize, c as ZIndex, n as AnalyticsId } from "../../constants2.js";
3
- import { t as palette } from "../../palette.js";
2
+ import { AnalyticsId, IconSize, ZIndex } from "../../constants.js";
3
+ import { palette } from "../../theme/palette.js";
4
4
  import { t as Icon_default } from "../../Icon.js";
5
- import { t as isComponent } from "../../component.js";
5
+ import { isComponent } from "../../utils/component.js";
6
6
  import { t as Button_default } from "../../Button.js";
7
- import { n as getAriaLabelAttributes } from "../../accessibility.js";
8
- import { n as useFocusTrap_default } from "../../useFocusTrap.js";
9
- import { t as useIsVisible } from "../../useIsVisible.js";
7
+ import { getAriaLabelAttributes } from "../../utils/accessibility.js";
8
+ import useFocusTrap from "../../hooks/useFocusTrap.js";
9
+ import { useIsVisible } from "../../hooks/useIsVisible.js";
10
10
  import { t as Close_default } from "../../Close.js";
11
- import { t as useReturnFocusOnUnmount } from "../../useReturnFocusOnUnmount.js";
12
- import { n as enableBodyScroll, t as disableBodyScroll } from "../../scroll.js";
13
- import { n as Title_default } from "../../Title.js";
14
- import { t as AlertSignFill_default } from "../../AlertSignFill.js";
15
- import { t as AlertSignStroke_default } from "../../AlertSignStroke.js";
16
- import { t as CheckOutline_default } from "../../CheckOutline.js";
17
- import { t as Portal } from "../../Portal.js";
11
+ import { useReturnFocusOnUnmount } from "../../hooks/useReturnFocusOnUnmount.js";
12
+ import { disableBodyScroll, enableBodyScroll } from "../../utils/scroll.js";
13
+ import { t as Title } from "../../Title.js";
14
+ import AlertSignFill from "../Icons/AlertSignFill.js";
15
+ import AlertSignStroke from "../Icons/AlertSignStroke.js";
16
+ import CheckOutline from "../Icons/CheckOutline.js";
17
+ import Portal from "../Portal/index.js";
18
18
  import classNames from "classnames";
19
19
  import React, { useEffect } from "react";
20
20
  import { jsx, jsxs } from "react/jsx-runtime";
21
21
  import styles from "./styles.module.scss";
22
- let ModalVariants = /* @__PURE__ */ function(ModalVariants$1) {
23
- ModalVariants$1["normal"] = "normal";
24
- ModalVariants$1["warning"] = "warning";
25
- ModalVariants$1["error"] = "error";
26
- ModalVariants$1["success"] = "success";
27
- return ModalVariants$1;
22
+ //#region src/components/Modal/constants.ts
23
+ var ModalVariants = /* @__PURE__ */ function(ModalVariants) {
24
+ ModalVariants["normal"] = "normal";
25
+ ModalVariants["warning"] = "warning";
26
+ ModalVariants["error"] = "error";
27
+ ModalVariants["success"] = "success";
28
+ return ModalVariants;
28
29
  }({});
29
- let ModalSize = /* @__PURE__ */ function(ModalSize$1) {
30
- ModalSize$1["large"] = "large";
31
- ModalSize$1["medium"] = "medium";
32
- return ModalSize$1;
30
+ var ModalSize = /* @__PURE__ */ function(ModalSize) {
31
+ ModalSize["large"] = "large";
32
+ ModalSize["medium"] = "medium";
33
+ return ModalSize;
33
34
  }({});
35
+ //#endregion
36
+ //#region src/components/Modal/Modal.tsx
34
37
  var getVariantIcon = (variant) => {
35
38
  if (variant === ModalVariants.error) return /* @__PURE__ */ jsx(Icon_default, {
36
39
  size: IconSize.Small,
37
- svgIcon: AlertSignFill_default,
40
+ svgIcon: AlertSignFill,
38
41
  color: palette.cherry500
39
42
  });
40
43
  else if (variant === ModalVariants.warning) return /* @__PURE__ */ jsx(Icon_default, {
41
44
  size: IconSize.Small,
42
- svgIcon: AlertSignStroke_default,
45
+ svgIcon: AlertSignStroke,
43
46
  color: palette.black
44
47
  });
45
48
  else if (variant === ModalVariants.success) return /* @__PURE__ */ jsx(Icon_default, {
46
49
  size: IconSize.Small,
47
- svgIcon: CheckOutline_default,
50
+ svgIcon: CheckOutline,
48
51
  color: palette.kiwi900
49
52
  });
50
53
  return null;
@@ -66,7 +69,7 @@ var Modal = (props) => {
66
69
  const topContent = React.useRef(null);
67
70
  const modalContentRef = React.useRef(null);
68
71
  const dialogRef = React.useRef(null);
69
- useFocusTrap_default(dialogRef, true);
72
+ useFocusTrap(dialogRef, true);
70
73
  const topContentVisible = useIsVisible(topContent);
71
74
  const bottomContent = React.useRef(null);
72
75
  const bottomContentVisible = useIsVisible(bottomContent);
@@ -156,7 +159,7 @@ var Modal = (props) => {
156
159
  className: styles.modal__contentWrapper__title,
157
160
  children: [
158
161
  getIcon(variant, props.icon),
159
- /* @__PURE__ */ jsx(Title_default, {
162
+ /* @__PURE__ */ jsx(Title, {
160
163
  id: ariaLabelAttributes?.["aria-labelledby"],
161
164
  htmlMarkup: "h3",
162
165
  appearance: "title3",
@@ -212,7 +215,10 @@ var Modal = (props) => {
212
215
  }
213
216
  return Component;
214
217
  };
218
+ //#endregion
219
+ //#region src/components/Modal/index.ts
215
220
  var Modal_default = Modal;
221
+ //#endregion
216
222
  export { ModalSize, ModalVariants, Modal_default as default };
217
223
 
218
224
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["Modal: React.FC<ModalProps>"],"sources":["../../../src/components/Modal/constants.ts","../../../src/components/Modal/Modal.tsx","../../../src/components/Modal/index.ts"],"sourcesContent":["export enum ModalVariants {\n normal = 'normal',\n warning = 'warning',\n error = 'error',\n success = 'success',\n}\n\nexport enum ModalSize {\n large = 'large',\n medium = 'medium',\n}\n","import React, { useEffect } from 'react';\n\nimport cn from 'classnames';\n\nimport type { IconProps } from '../Icon';\n\nimport { ModalSize, ModalVariants } from './constants';\nimport { AnalyticsId, ZIndex } from '../../constants';\nimport useFocusTrap from '../../hooks/useFocusTrap';\nimport { useIsVisible } from '../../hooks/useIsVisible';\nimport { useReturnFocusOnUnmount } from '../../hooks/useReturnFocusOnUnmount';\nimport { palette } from '../../theme/palette';\nimport { getAriaLabelAttributes } from '../../utils/accessibility';\nimport { isComponent } from '../../utils/component';\nimport { disableBodyScroll, enableBodyScroll } from '../../utils/scroll';\nimport { uuid } from '../../utils/uuid';\nimport Button from '../Button';\nimport Close from '../Close';\nimport Icon, { IconSize } from '../Icon';\nimport AlertSignFill from '../Icons/AlertSignFill';\nimport AlertSignStroke from '../Icons/AlertSignStroke';\nimport CheckOutline from '../Icons/CheckOutline';\nimport Portal from '../Portal';\nimport Title from '../Title/Title';\n\nimport styles from './styles.module.scss';\n\nexport interface ModalProps {\n /** Title of the modal */\n title: string;\n /** id of the modal title */\n titleId?: string;\n /** Description of the modal. Will not render if the modal has children. */\n description?: string;\n /** Optional footer content that can be rendered instead of default CTA(s) */\n footerContent?: React.ReactNode;\n /** Changes the visual representation of the modal */\n variant?: keyof typeof ModalVariants;\n /** Change width of the modal (default: large) */\n size?: keyof typeof ModalSize;\n /** Icon displayed in title */\n icon?: React.ReactElement;\n /** Hides the close button */\n noCloseButton?: boolean;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Primary button text */\n primaryButtonText?: string;\n /** Secondary button text */\n secondaryButtonText?: string;\n /** Sets the aria-label of the modal */\n ariaLabel?: string;\n /** Sets the aria-labelledby of the modal */\n ariaLabelledBy?: string;\n /** Close button aria-label */\n ariaLabelCloseBtn?: string;\n /** Alternative component to modal */\n children?: React.ReactNode;\n /** Component shown after title */\n afterTitleChildren?: React.ReactNode;\n /** Adds custom classes to the element. */\n className?: string;\n /** Customize the z-index of the modal */\n zIndex?: number;\n /** Function is called when user clicks primary button */\n onSuccess?: () => void;\n /** Function is called when user clicks secondary button, clicks escape or outside the modal */\n onClose?: () => void;\n /** When enabled the component will be rendered in the bottom of document.body */\n printable?: boolean;\n /** If disabled, clicking escape or outside the modal will not close it */\n disableCloseEvents?: boolean;\n /** Aria role used for the Modal. Default is dialog */\n role?: 'dialog' | 'alertdialog';\n}\n\nconst getVariantIcon = (variant?: ModalProps['variant']): React.JSX.Element | null => {\n if (variant === ModalVariants.error) {\n return <Icon size={IconSize.Small} svgIcon={AlertSignFill} color={palette.cherry500} />;\n } else if (variant === ModalVariants.warning) {\n return <Icon size={IconSize.Small} svgIcon={AlertSignStroke} color={palette.black} />;\n } else if (variant === ModalVariants.success) {\n return <Icon size={IconSize.Small} svgIcon={CheckOutline} color={palette.kiwi900} />;\n }\n return null;\n};\n\nconst getIcon = (variant?: ModalProps['variant'], icon?: ModalProps['icon']): React.JSX.Element | null => {\n const variantIcon = getVariantIcon(variant);\n if (variantIcon) {\n return <div className={styles.modal__iconWrapper}>{variantIcon}</div>;\n }\n if (icon) {\n return (\n <div className={styles.modal__iconWrapper}>\n {isComponent<IconProps>(icon, Icon) &&\n React.cloneElement(icon, {\n size: IconSize.Small,\n })}\n </div>\n );\n }\n return null;\n};\n\nconst Modal: React.FC<ModalProps> = props => {\n const {\n footerContent,\n variant = ModalVariants.normal,\n primaryButtonText = 'OK',\n titleId = uuid(),\n className = '',\n size = ModalSize.large,\n zIndex = ZIndex.OverlayScreen,\n role = 'dialog',\n } = props;\n\n const topContent = React.useRef<HTMLDivElement>(null);\n const modalContentRef = React.useRef<HTMLDivElement>(null);\n const dialogRef = React.useRef<HTMLDivElement>(null);\n useFocusTrap(dialogRef, true);\n const topContentVisible = useIsVisible(topContent);\n const bottomContent = React.useRef<HTMLDivElement>(null);\n const bottomContentVisible = useIsVisible(bottomContent);\n const contentIsScrollable = modalContentRef.current && modalContentRef.current.scrollHeight > modalContentRef.current.clientHeight;\n useReturnFocusOnUnmount(dialogRef);\n\n function handleKeyboardEvent(e: KeyboardEvent): void {\n if (e.key === 'Escape' && props.onClose) {\n e.stopPropagation();\n props.onClose();\n }\n }\n\n function handleClickEvent(event: MouseEvent): void {\n if (event.target && overlayRef.current === event.target && props.onClose) {\n event.stopPropagation();\n props.onClose();\n }\n }\n\n const overlayRef = React.useRef<HTMLDivElement>(null);\n\n const showActions = (props.secondaryButtonText && props.secondaryButtonText?.length > 0) || props.onSuccess || footerContent;\n\n const ariaLabelAttributes = getAriaLabelAttributes({ label: props.ariaLabel, id: props.ariaLabelledBy, fallbackId: titleId });\n\n useEffect(() => {\n const overlayElement = overlayRef.current;\n disableBodyScroll();\n if (!props.disableCloseEvents && overlayElement) {\n overlayElement.addEventListener('keydown', handleKeyboardEvent);\n overlayElement.addEventListener('click', handleClickEvent);\n }\n return (): void => {\n enableBodyScroll();\n if (!props.disableCloseEvents && overlayElement) {\n overlayElement.removeEventListener('keydown', handleKeyboardEvent);\n overlayElement.removeEventListener('click', handleClickEvent);\n }\n };\n }, [props.disableCloseEvents]);\n\n useEffect(() => {\n dialogRef.current?.focus();\n }, []);\n\n const dialogClasses = cn(\n className,\n styles.modal,\n variant && styles[`modal--${variant}`],\n size && styles[`modal--${size}`],\n contentIsScrollable && !showActions && styles['modal--no-actions']\n );\n\n const titleClasses = cn({\n [styles['modal__title--error']]: variant === ModalVariants.error,\n [styles['modal__title--success']]: variant === ModalVariants.success,\n });\n\n const Component = (\n <div data-testid=\"dialog-container\">\n <div\n ref={overlayRef}\n className={styles['modal-overlay']}\n data-testid={props.testId}\n data-analyticsid={AnalyticsId.Modal}\n style={{ zIndex }}\n >\n <div className={styles.align}>\n <div className={dialogClasses} role={role} aria-modal=\"true\" tabIndex={-1} {...ariaLabelAttributes} ref={dialogRef}>\n <div\n className={cn(styles['modal__shadow'], styles['modal__shadow--top'], {\n [styles['modal__shadow--show']]: !topContentVisible && contentIsScrollable,\n })}\n />\n <div\n className={cn(styles.modal__contentWrapper)}\n tabIndex={contentIsScrollable ? 0 : undefined}\n role={contentIsScrollable ? 'region' : undefined}\n {...(contentIsScrollable ? ariaLabelAttributes : {})}\n ref={modalContentRef}\n >\n {!props.noCloseButton && (\n <div className={styles.modal__closeWrapper}>\n <div className={cn(styles.modal__closeWrapper__close)}>\n <Close onClick={props.onClose} ariaLabel={props.ariaLabelCloseBtn} />\n </div>\n </div>\n )}\n <div className={cn(size && styles[`modal__contentWrapper__scroll--${size}`])}>\n <div ref={topContent} />\n <div className={styles.modal__contentWrapper__title}>\n {getIcon(variant, props.icon)}\n <Title id={ariaLabelAttributes?.['aria-labelledby']} htmlMarkup=\"h3\" appearance=\"title3\" className={titleClasses}>\n {props.title}\n </Title>\n {props.afterTitleChildren && <div className={styles['modal__afterTitleChildren']}>{props.afterTitleChildren}</div>}\n </div>\n {props.children && <div>{props.children}</div>}\n {!props.children && <p className={styles.modal__description}>{props.description}</p>}\n <div ref={bottomContent} />\n </div>\n </div>\n <div\n className={cn(styles['modal__shadow'], styles['modal__shadow--bottom'], {\n [styles['modal__shadow--show']]: !bottomContentVisible && contentIsScrollable,\n })}\n />\n {showActions && (\n <div className={cn(styles['modal__call-to-action'], size && styles[`modal__call-to-action--${size}`])}>\n {props.onSuccess && primaryButtonText && <Button onClick={props.onSuccess}>{primaryButtonText}</Button>}\n {props.secondaryButtonText && props.secondaryButtonText?.length > 0 && (\n <Button variant=\"borderless\" onClick={props.onClose}>\n {props.secondaryButtonText}\n </Button>\n )}\n {footerContent}\n </div>\n )}\n </div>\n </div>\n </div>\n </div>\n );\n\n if (props.printable) {\n const printModal = 'print-modal';\n return (\n <Portal className={printModal} testId=\"print-modal\">\n <style media=\"print\">{`body > *:not(.${printModal}) {display: none;}`}</style>\n {Component}\n </Portal>\n );\n }\n\n return Component;\n};\n\nexport default Modal;\n","import Modal from './Modal';\nexport { ModalVariants, ModalSize } from './constants';\nexport * from './Modal';\nexport default Modal;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAY,gBAAA,yBAAA,iBAAL;AACL,iBAAA,YAAA;AACA,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AO,0BAA0B,GACrE,OAAO,yBAAyB,CAAC,wBAAwB,qBAC3D,CAAC,EAAA,CACF;MACD,eACC,qBAAC,OAAA;OAAI,WAAW,WAAG,OAAO,0BAA0B,QAAQ,OAAO,0BAA0B,QAAQ;;QAClG,MAAM,aAAa,qBAAqB,oBAAC,gBAAA;SAAO,SAAS,MAAM;mBAAY;UAA2B;QACtG,MAAM,uBAAuB,MAAM,qBAAqB,SAAS,KAChE,oBAAC,gBAAA;SAAO,SAAQ;SAAa,SAAS,MAAM;mBACzC,MAAM;UACA;QAEV;;QACG;;MAEJ;KACF;IACF;GACF;AAGR,KAAI,MAAM,WAAW;EACnB,MAAM,aAAa;AACnB,SACE,qBAAC,QAAA;GAAO,WAAW;GAAY,QAAO;cACpC,oBAAC,SAAA;IAAM,OAAM;cAAS,iBAAiB,WAAW;KAA4B,EAC7E,UAAA;IACM;;AAIb,QAAO;;AC7PT,IAAA,gBDgQe"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../src/components/Modal/constants.ts","../../../src/components/Modal/Modal.tsx","../../../src/components/Modal/index.ts"],"sourcesContent":["export enum ModalVariants {\n normal = 'normal',\n warning = 'warning',\n error = 'error',\n success = 'success',\n}\n\nexport enum ModalSize {\n large = 'large',\n medium = 'medium',\n}\n","import React, { useEffect } from 'react';\n\nimport cn from 'classnames';\n\nimport type { IconProps } from '../Icon';\n\nimport { ModalSize, ModalVariants } from './constants';\nimport { AnalyticsId, ZIndex } from '../../constants';\nimport useFocusTrap from '../../hooks/useFocusTrap';\nimport { useIsVisible } from '../../hooks/useIsVisible';\nimport { useReturnFocusOnUnmount } from '../../hooks/useReturnFocusOnUnmount';\nimport { palette } from '../../theme/palette';\nimport { getAriaLabelAttributes } from '../../utils/accessibility';\nimport { isComponent } from '../../utils/component';\nimport { disableBodyScroll, enableBodyScroll } from '../../utils/scroll';\nimport { uuid } from '../../utils/uuid';\nimport Button from '../Button';\nimport Close from '../Close';\nimport Icon, { IconSize } from '../Icon';\nimport AlertSignFill from '../Icons/AlertSignFill';\nimport AlertSignStroke from '../Icons/AlertSignStroke';\nimport CheckOutline from '../Icons/CheckOutline';\nimport Portal from '../Portal';\nimport Title from '../Title/Title';\n\nimport styles from './styles.module.scss';\n\nexport interface ModalProps {\n /** Title of the modal */\n title: string;\n /** id of the modal title */\n titleId?: string;\n /** Description of the modal. Will not render if the modal has children. */\n description?: string;\n /** Optional footer content that can be rendered instead of default CTA(s) */\n footerContent?: React.ReactNode;\n /** Changes the visual representation of the modal */\n variant?: keyof typeof ModalVariants;\n /** Change width of the modal (default: large) */\n size?: keyof typeof ModalSize;\n /** Icon displayed in title */\n icon?: React.ReactElement;\n /** Hides the close button */\n noCloseButton?: boolean;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Primary button text */\n primaryButtonText?: string;\n /** Secondary button text */\n secondaryButtonText?: string;\n /** Sets the aria-label of the modal */\n ariaLabel?: string;\n /** Sets the aria-labelledby of the modal */\n ariaLabelledBy?: string;\n /** Close button aria-label */\n ariaLabelCloseBtn?: string;\n /** Alternative component to modal */\n children?: React.ReactNode;\n /** Component shown after title */\n afterTitleChildren?: React.ReactNode;\n /** Adds custom classes to the element. */\n className?: string;\n /** Customize the z-index of the modal */\n zIndex?: number;\n /** Function is called when user clicks primary button */\n onSuccess?: () => void;\n /** Function is called when user clicks secondary button, clicks escape or outside the modal */\n onClose?: () => void;\n /** When enabled the component will be rendered in the bottom of document.body */\n printable?: boolean;\n /** If disabled, clicking escape or outside the modal will not close it */\n disableCloseEvents?: boolean;\n /** Aria role used for the Modal. Default is dialog */\n role?: 'dialog' | 'alertdialog';\n}\n\nconst getVariantIcon = (variant?: ModalProps['variant']): React.JSX.Element | null => {\n if (variant === ModalVariants.error) {\n return <Icon size={IconSize.Small} svgIcon={AlertSignFill} color={palette.cherry500} />;\n } else if (variant === ModalVariants.warning) {\n return <Icon size={IconSize.Small} svgIcon={AlertSignStroke} color={palette.black} />;\n } else if (variant === ModalVariants.success) {\n return <Icon size={IconSize.Small} svgIcon={CheckOutline} color={palette.kiwi900} />;\n }\n return null;\n};\n\nconst getIcon = (variant?: ModalProps['variant'], icon?: ModalProps['icon']): React.JSX.Element | null => {\n const variantIcon = getVariantIcon(variant);\n if (variantIcon) {\n return <div className={styles.modal__iconWrapper}>{variantIcon}</div>;\n }\n if (icon) {\n return (\n <div className={styles.modal__iconWrapper}>\n {isComponent<IconProps>(icon, Icon) &&\n React.cloneElement(icon, {\n size: IconSize.Small,\n })}\n </div>\n );\n }\n return null;\n};\n\nconst Modal: React.FC<ModalProps> = props => {\n const {\n footerContent,\n variant = ModalVariants.normal,\n primaryButtonText = 'OK',\n titleId = uuid(),\n className = '',\n size = ModalSize.large,\n zIndex = ZIndex.OverlayScreen,\n role = 'dialog',\n } = props;\n\n const topContent = React.useRef<HTMLDivElement>(null);\n const modalContentRef = React.useRef<HTMLDivElement>(null);\n const dialogRef = React.useRef<HTMLDivElement>(null);\n useFocusTrap(dialogRef, true);\n const topContentVisible = useIsVisible(topContent);\n const bottomContent = React.useRef<HTMLDivElement>(null);\n const bottomContentVisible = useIsVisible(bottomContent);\n const contentIsScrollable = modalContentRef.current && modalContentRef.current.scrollHeight > modalContentRef.current.clientHeight;\n useReturnFocusOnUnmount(dialogRef);\n\n function handleKeyboardEvent(e: KeyboardEvent): void {\n if (e.key === 'Escape' && props.onClose) {\n e.stopPropagation();\n props.onClose();\n }\n }\n\n function handleClickEvent(event: MouseEvent): void {\n if (event.target && overlayRef.current === event.target && props.onClose) {\n event.stopPropagation();\n props.onClose();\n }\n }\n\n const overlayRef = React.useRef<HTMLDivElement>(null);\n\n const showActions = (props.secondaryButtonText && props.secondaryButtonText?.length > 0) || props.onSuccess || footerContent;\n\n const ariaLabelAttributes = getAriaLabelAttributes({ label: props.ariaLabel, id: props.ariaLabelledBy, fallbackId: titleId });\n\n useEffect(() => {\n const overlayElement = overlayRef.current;\n disableBodyScroll();\n if (!props.disableCloseEvents && overlayElement) {\n overlayElement.addEventListener('keydown', handleKeyboardEvent);\n overlayElement.addEventListener('click', handleClickEvent);\n }\n return (): void => {\n enableBodyScroll();\n if (!props.disableCloseEvents && overlayElement) {\n overlayElement.removeEventListener('keydown', handleKeyboardEvent);\n overlayElement.removeEventListener('click', handleClickEvent);\n }\n };\n }, [props.disableCloseEvents]);\n\n useEffect(() => {\n dialogRef.current?.focus();\n }, []);\n\n const dialogClasses = cn(\n className,\n styles.modal,\n variant && styles[`modal--${variant}`],\n size && styles[`modal--${size}`],\n contentIsScrollable && !showActions && styles['modal--no-actions']\n );\n\n const titleClasses = cn({\n [styles['modal__title--error']]: variant === ModalVariants.error,\n [styles['modal__title--success']]: variant === ModalVariants.success,\n });\n\n const Component = (\n <div data-testid=\"dialog-container\">\n <div\n ref={overlayRef}\n className={styles['modal-overlay']}\n data-testid={props.testId}\n data-analyticsid={AnalyticsId.Modal}\n style={{ zIndex }}\n >\n <div className={styles.align}>\n <div className={dialogClasses} role={role} aria-modal=\"true\" tabIndex={-1} {...ariaLabelAttributes} ref={dialogRef}>\n <div\n className={cn(styles['modal__shadow'], styles['modal__shadow--top'], {\n [styles['modal__shadow--show']]: !topContentVisible && contentIsScrollable,\n })}\n />\n <div\n className={cn(styles.modal__contentWrapper)}\n tabIndex={contentIsScrollable ? 0 : undefined}\n role={contentIsScrollable ? 'region' : undefined}\n {...(contentIsScrollable ? ariaLabelAttributes : {})}\n ref={modalContentRef}\n >\n {!props.noCloseButton && (\n <div className={styles.modal__closeWrapper}>\n <div className={cn(styles.modal__closeWrapper__close)}>\n <Close onClick={props.onClose} ariaLabel={props.ariaLabelCloseBtn} />\n </div>\n </div>\n )}\n <div className={cn(size && styles[`modal__contentWrapper__scroll--${size}`])}>\n <div ref={topContent} />\n <div className={styles.modal__contentWrapper__title}>\n {getIcon(variant, props.icon)}\n <Title id={ariaLabelAttributes?.['aria-labelledby']} htmlMarkup=\"h3\" appearance=\"title3\" className={titleClasses}>\n {props.title}\n </Title>\n {props.afterTitleChildren && <div className={styles['modal__afterTitleChildren']}>{props.afterTitleChildren}</div>}\n </div>\n {props.children && <div>{props.children}</div>}\n {!props.children && <p className={styles.modal__description}>{props.description}</p>}\n <div ref={bottomContent} />\n </div>\n </div>\n <div\n className={cn(styles['modal__shadow'], styles['modal__shadow--bottom'], {\n [styles['modal__shadow--show']]: !bottomContentVisible && contentIsScrollable,\n })}\n />\n {showActions && (\n <div className={cn(styles['modal__call-to-action'], size && styles[`modal__call-to-action--${size}`])}>\n {props.onSuccess && primaryButtonText && <Button onClick={props.onSuccess}>{primaryButtonText}</Button>}\n {props.secondaryButtonText && props.secondaryButtonText?.length > 0 && (\n <Button variant=\"borderless\" onClick={props.onClose}>\n {props.secondaryButtonText}\n </Button>\n )}\n {footerContent}\n </div>\n )}\n </div>\n </div>\n </div>\n </div>\n );\n\n if (props.printable) {\n const printModal = 'print-modal';\n return (\n <Portal className={printModal} testId=\"print-modal\">\n <style media=\"print\">{`body > *:not(.${printModal}) {display: none;}`}</style>\n {Component}\n </Portal>\n );\n }\n\n return Component;\n};\n\nexport default Modal;\n","import Modal from './Modal';\nexport { ModalVariants, ModalSize } from './constants';\nexport * from './Modal';\nexport default Modal;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,IAAY,gBAAL,yBAAA,eAAA;CACL,cAAA,YAAS;CACT,cAAA,aAAU;CACV,cAAA,WAAQ;CACR,cAAA,aAAU;;KACX;AAED,IAAY,YAAL,yBAAA,WAAA;CACL,UAAA,WAAQ;CACR,UAAA,YAAS;;KACV;;;ACkED,IAAM,kBAAkB,YAA8D;CACpF,IAAI,YAAY,cAAc,OAC5B,OAAO,oBAAC,cAAD;EAAM,MAAM,SAAS;EAAO,SAAS;EAAe,OAAO,QAAQ;EAAa,CAAA;MAClF,IAAI,YAAY,cAAc,SACnC,OAAO,oBAAC,cAAD;EAAM,MAAM,SAAS;EAAO,SAAS;EAAiB,OAAO,QAAQ;EAAS,CAAA;MAChF,IAAI,YAAY,cAAc,SACnC,OAAO,oBAAC,cAAD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BACzC,MAAM;SACA,CAAA;QAEV;QACG;;MAEJ;;IACF,CAAA;GACF,CAAA;EACF,CAAA;CAGR,IAAI,MAAM,WAAW;EACnB,MAAM,aAAa;EACnB,OACE,qBAAC,QAAD;GAAQ,WAAW;GAAY,QAAO;aAAtC,CACE,oBAAC,SAAD;IAAO,OAAM;cAAS,iBAAiB,WAAW;IAA4B,CAAA,EAC7E,UACM;;;CAIb,OAAO;;;;AC7PT,IAAA,gBAAe"}
@@ -1,14 +1,15 @@
1
- import { a as IconSize, n as AnalyticsId } from "../../constants2.js";
2
- import { t as NotificationBadge_default } from "../../NotificationBadge.js";
3
- import { t as useIsMobileBreakpoint } from "../../useIsMobileBreakpoint.js";
4
- import { t as useIdWithFallback } from "../../useIdWithFallback.js";
5
- import { n as getAriaLabelAttributes } from "../../accessibility.js";
1
+ import { AnalyticsId, IconSize } from "../../constants.js";
2
+ import { t as NotificationBadge } from "../../NotificationBadge.js";
3
+ import { useIsMobileBreakpoint } from "../../hooks/useIsMobileBreakpoint.js";
4
+ import { useIdWithFallback } from "../../hooks/useIdWithFallback.js";
5
+ import { getAriaLabelAttributes } from "../../utils/accessibility.js";
6
6
  import { t as Close_default } from "../../Close.js";
7
7
  import { t as Expander_default } from "../../Expander.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 styles from "./styles.module.scss";
12
+ //#region src/components/NotificationPanel/NotificationPanel.tsx
12
13
  var FluidWrapper = ({ fluid, children }) => {
13
14
  if (fluid) return /* @__PURE__ */ jsx("div", {
14
15
  className: classNames(styles["fluid-wrapper"]),
@@ -79,7 +80,7 @@ var NotificationPanel = (props) => {
79
80
  className: notificationPanelClasses,
80
81
  ...ariaLabelAttributes,
81
82
  children: [
82
- /* @__PURE__ */ jsx(NotificationBadge_default, {
83
+ /* @__PURE__ */ jsx(NotificationBadge, {
83
84
  variant,
84
85
  size: compactVariant || isMobile ? IconSize.XSmall : IconSize.Small,
85
86
  className: styles["notification-panel__icon"]
@@ -97,7 +98,10 @@ var NotificationPanel = (props) => {
97
98
  })
98
99
  });
99
100
  };
101
+ //#endregion
102
+ //#region src/components/NotificationPanel/index.ts
100
103
  var NotificationPanel_default = NotificationPanel;
104
+ //#endregion
101
105
  export { NotificationPanel_default as default };
102
106
 
103
107
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["FluidWrapper: React.FC<WrapFluidProps>","NotificationPanel: React.FC<NotificationPanelProps>"],"sources":["../../../src/components/NotificationPanel/NotificationPanel.tsx","../../../src/components/NotificationPanel/index.ts"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { AnalyticsId, IconSize } from '../../constants';\nimport { useIdWithFallback } from '../../hooks/useIdWithFallback';\nimport { useIsMobileBreakpoint } from '../../hooks/useIsMobileBreakpoint';\nimport { getAriaLabelAttributes } from '../../utils/accessibility';\nimport NotificationBadge from '../Badge/NotificationBadge';\nimport Close from '../Close';\nimport Expander from '../Expander';\n\nimport styles from './styles.module.scss';\n\nexport type NotificationPanelVariants = 'info' | 'warn' | 'error' | 'success';\nexport type NotificationCompactVariants = 'basic' | 'outline';\nexport type NotificationPanelSizes = 'small' | 'medium' | 'large';\nexport type LabelTags = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'span';\n\nexport interface NotificationPanelProps {\n /** Adds custom classes to the element. */\n className?: string;\n /** Adds inner child elements. */\n children?: React.ReactNode;\n /** Adds inner expander elements. */\n expanderChildren?: React.ReactNode;\n /** Text for expanderButton. */\n expanderButtonText?: string;\n /** Text for expanderButton when closed. */\n expanderButtonClosedText?: string;\n /** Makes expander be open from start. */\n expanderOpenFromStart?: boolean;\n /** Changes the visual representation of the notification panel. */\n variant?: NotificationPanelVariants;\n /** Makes the panel more compact. Available in basic and outline. */\n compactVariant?: NotificationCompactVariants;\n /** Sets a fixed size for the content container. */\n size?: NotificationPanelSizes;\n /** Used in combination with dismissiable property to close the notification panel. */\n onClick?: (e?: React.MouseEvent<HTMLElement, MouseEvent>) => void;\n /** Toggles the close button in the top right corner. */\n dismissable?: boolean;\n /** Enables a fluid outer container that spans the entire width of parent. */\n fluid?: boolean;\n /** Sets a label for the notification panel. */\n label?: string;\n /** Changes the underlying element of the label. */\n labelHtmlMarkup?: LabelTags;\n /** Close button aria-label */\n ariaLabelCloseBtn?: string;\n /** Custom id for the label */\n labelId?: string;\n /** Custom role for the panel. Default is no role. If variant is alert or crisis, the aria role will be set to \"alert\" unless the role-prop is also set. */\n role?: 'region' | 'alert' | 'status' | 'none';\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Ref passed to the component */\n ref?: React.Ref<HTMLDivElement | null>;\n}\n\ntype WrapFluidProps = Pick<NotificationPanelProps, 'fluid'> & {\n children: React.ReactElement;\n};\n\nconst FluidWrapper: React.FC<WrapFluidProps> = ({ fluid, children }) => {\n if (fluid) {\n const fluidClasses = classNames(styles['fluid-wrapper']);\n\n return <div className={fluidClasses}>{children}</div>;\n }\n return children;\n};\n\nconst NotificationPanel: React.FC<NotificationPanelProps> = props => {\n const {\n children,\n variant = 'info',\n dismissable = false,\n onClick,\n expanderChildren,\n expanderButtonText,\n expanderButtonClosedText,\n expanderOpenFromStart = false,\n compactVariant,\n label,\n labelId: labelIdProp,\n labelHtmlMarkup = 'h1',\n fluid = false,\n size,\n className,\n role,\n testId,\n ref,\n } = props;\n const labelId = useIdWithFallback(labelIdProp);\n const [expanderOpen, setExpanderOpen] = React.useState(expanderOpenFromStart);\n const isMobile = useIsMobileBreakpoint();\n\n const renderContent = (): React.ReactNode => {\n const outlineVariant = compactVariant === 'outline';\n const contentClasses = classNames(styles['notification-panel__content']);\n const labelClasses = classNames(styles['notification-panel__label'], {\n [styles['notification-panel__label--no-content']]: !children && !expanderChildren,\n [styles['notification-panel__label--compact']]: !!compactVariant,\n [styles['notification-panel__label--outline']]: outlineVariant,\n });\n const childrenClasses = classNames(styles['notification-panel__children'], {\n [styles['notification-panel__children--with-label']]: label,\n [styles['notification-panel__children--expander-no-label']]: expanderChildren && !label,\n [styles['notification-panel__children--outline']]: outlineVariant,\n });\n const CustomTag = labelHtmlMarkup;\n\n return (\n <div className={contentClasses} id={!label ? labelId : undefined}>\n {label && (\n <CustomTag className={labelClasses} id={labelId}>\n {label}\n </CustomTag>\n )}\n {children && <div className={childrenClasses}>{children}</div>}\n {expanderChildren && expanderButtonText && expanderButtonClosedText && !compactVariant && (\n <Expander\n title={expanderOpen ? expanderButtonText : expanderButtonClosedText}\n onExpand={setExpanderOpen}\n expanded={expanderOpen}\n testId=\"expand\"\n >\n {expanderChildren}\n </Expander>\n )}\n </div>\n );\n };\n\n const notificationPanelClasses = classNames(\n styles['notification-panel'],\n styles[`notification-panel--${variant}`],\n size && styles[`notification-panel--${size}`],\n {\n [styles['notification-panel--compact']]: !!compactVariant,\n [styles['notification-panel--compact--basic']]: compactVariant === 'basic',\n [styles['notification-panel--compact--outline']]: compactVariant === 'outline',\n [styles['notification-panel--with-content']]: expanderChildren || (label && children),\n [styles['notification-panel--dismissable']]: dismissable,\n },\n className\n );\n\n const ariaRole = role || (variant === 'error' && 'alert') || undefined;\n const ariaLabelAttributes = ariaRole && ariaRole !== 'none' ? getAriaLabelAttributes({ label, id: labelId }) : undefined;\n\n return (\n <FluidWrapper fluid={fluid}>\n <div\n ref={ref}\n role={ariaRole}\n data-testid={testId}\n data-analyticsid={AnalyticsId.NotificationPanel}\n className={notificationPanelClasses}\n {...ariaLabelAttributes}\n >\n <NotificationBadge\n variant={variant}\n size={compactVariant || isMobile ? IconSize.XSmall : IconSize.Small}\n className={styles['notification-panel__icon']}\n />\n {dismissable && (\n <span className={styles['notification-panel__close']}>\n <Close ariaLabel={props.ariaLabelCloseBtn} onClick={onClick} color=\"black\" />\n </span>\n )}\n {renderContent()}\n </div>\n </FluidWrapper>\n );\n};\n\nexport default NotificationPanel;\n","import NotificationPanel from './NotificationPanel';\nexport * from './NotificationPanel';\nexport default NotificationPanel;\n"],"mappings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O,iCAAiC,CAAC,CAAC;GAC1C,OAAO,wCAAwC,mBAAmB;GAClE,OAAO,0CAA0C,mBAAmB;GACpE,OAAO,sCAAsC,oBAAqB,SAAS;GAC3E,OAAO,qCAAqC;EAC9C,EACD,UACD;CAED,MAAM,WAAW,QAAS,YAAY,WAAW,WAAY,KAAA;CAC7D,MAAM,sBAAsB,YAAY,aAAa,SAAS,uBAAuB;EAAE;EAAO,IAAI;EAAS,CAAC,GAAG,KAAA;AAE/G,QACE,oBAAC,cAAA;EAAoB;YACnB,qBAAC,OAAA;GACM;GACL,MAAM;GACN,eAAa;GACb,oBAAkB,YAAY;GAC9B,WAAW;GACX,GAAI;;IAEJ,oBAAC,2BAAA;KACU;KACT,MAAM,kBAAkB,WAAW,SAAS,SAAS,SAAS;KAC9D,WAAW,OAAO;MAClB;IACD,eACC,oBAAC,QAAA;KAAK,WAAW,OAAO;eACtB,oBAAC,eAAA;MAAM,WAAW,MAAM;MAA4B;MAAS,OAAM;OAAU;MACxE;IAER,eAAe;;IACZ;GACO;;AC5KnB,IAAA,4BDgLe"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../src/components/NotificationPanel/NotificationPanel.tsx","../../../src/components/NotificationPanel/index.ts"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { AnalyticsId, IconSize } from '../../constants';\nimport { useIdWithFallback } from '../../hooks/useIdWithFallback';\nimport { useIsMobileBreakpoint } from '../../hooks/useIsMobileBreakpoint';\nimport { getAriaLabelAttributes } from '../../utils/accessibility';\nimport NotificationBadge from '../Badge/NotificationBadge';\nimport Close from '../Close';\nimport Expander from '../Expander';\n\nimport styles from './styles.module.scss';\n\nexport type NotificationPanelVariants = 'info' | 'warn' | 'error' | 'success';\nexport type NotificationCompactVariants = 'basic' | 'outline';\nexport type NotificationPanelSizes = 'small' | 'medium' | 'large';\nexport type LabelTags = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'span';\n\nexport interface NotificationPanelProps {\n /** Adds custom classes to the element. */\n className?: string;\n /** Adds inner child elements. */\n children?: React.ReactNode;\n /** Adds inner expander elements. */\n expanderChildren?: React.ReactNode;\n /** Text for expanderButton. */\n expanderButtonText?: string;\n /** Text for expanderButton when closed. */\n expanderButtonClosedText?: string;\n /** Makes expander be open from start. */\n expanderOpenFromStart?: boolean;\n /** Changes the visual representation of the notification panel. */\n variant?: NotificationPanelVariants;\n /** Makes the panel more compact. Available in basic and outline. */\n compactVariant?: NotificationCompactVariants;\n /** Sets a fixed size for the content container. */\n size?: NotificationPanelSizes;\n /** Used in combination with dismissiable property to close the notification panel. */\n onClick?: (e?: React.MouseEvent<HTMLElement, MouseEvent>) => void;\n /** Toggles the close button in the top right corner. */\n dismissable?: boolean;\n /** Enables a fluid outer container that spans the entire width of parent. */\n fluid?: boolean;\n /** Sets a label for the notification panel. */\n label?: string;\n /** Changes the underlying element of the label. */\n labelHtmlMarkup?: LabelTags;\n /** Close button aria-label */\n ariaLabelCloseBtn?: string;\n /** Custom id for the label */\n labelId?: string;\n /** Custom role for the panel. Default is no role. If variant is alert or crisis, the aria role will be set to \"alert\" unless the role-prop is also set. */\n role?: 'region' | 'alert' | 'status' | 'none';\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Ref passed to the component */\n ref?: React.Ref<HTMLDivElement | null>;\n}\n\ntype WrapFluidProps = Pick<NotificationPanelProps, 'fluid'> & {\n children: React.ReactElement;\n};\n\nconst FluidWrapper: React.FC<WrapFluidProps> = ({ fluid, children }) => {\n if (fluid) {\n const fluidClasses = classNames(styles['fluid-wrapper']);\n\n return <div className={fluidClasses}>{children}</div>;\n }\n return children;\n};\n\nconst NotificationPanel: React.FC<NotificationPanelProps> = props => {\n const {\n children,\n variant = 'info',\n dismissable = false,\n onClick,\n expanderChildren,\n expanderButtonText,\n expanderButtonClosedText,\n expanderOpenFromStart = false,\n compactVariant,\n label,\n labelId: labelIdProp,\n labelHtmlMarkup = 'h1',\n fluid = false,\n size,\n className,\n role,\n testId,\n ref,\n } = props;\n const labelId = useIdWithFallback(labelIdProp);\n const [expanderOpen, setExpanderOpen] = React.useState(expanderOpenFromStart);\n const isMobile = useIsMobileBreakpoint();\n\n const renderContent = (): React.ReactNode => {\n const outlineVariant = compactVariant === 'outline';\n const contentClasses = classNames(styles['notification-panel__content']);\n const labelClasses = classNames(styles['notification-panel__label'], {\n [styles['notification-panel__label--no-content']]: !children && !expanderChildren,\n [styles['notification-panel__label--compact']]: !!compactVariant,\n [styles['notification-panel__label--outline']]: outlineVariant,\n });\n const childrenClasses = classNames(styles['notification-panel__children'], {\n [styles['notification-panel__children--with-label']]: label,\n [styles['notification-panel__children--expander-no-label']]: expanderChildren && !label,\n [styles['notification-panel__children--outline']]: outlineVariant,\n });\n const CustomTag = labelHtmlMarkup;\n\n return (\n <div className={contentClasses} id={!label ? labelId : undefined}>\n {label && (\n <CustomTag className={labelClasses} id={labelId}>\n {label}\n </CustomTag>\n )}\n {children && <div className={childrenClasses}>{children}</div>}\n {expanderChildren && expanderButtonText && expanderButtonClosedText && !compactVariant && (\n <Expander\n title={expanderOpen ? expanderButtonText : expanderButtonClosedText}\n onExpand={setExpanderOpen}\n expanded={expanderOpen}\n testId=\"expand\"\n >\n {expanderChildren}\n </Expander>\n )}\n </div>\n );\n };\n\n const notificationPanelClasses = classNames(\n styles['notification-panel'],\n styles[`notification-panel--${variant}`],\n size && styles[`notification-panel--${size}`],\n {\n [styles['notification-panel--compact']]: !!compactVariant,\n [styles['notification-panel--compact--basic']]: compactVariant === 'basic',\n [styles['notification-panel--compact--outline']]: compactVariant === 'outline',\n [styles['notification-panel--with-content']]: expanderChildren || (label && children),\n [styles['notification-panel--dismissable']]: dismissable,\n },\n className\n );\n\n const ariaRole = role || (variant === 'error' && 'alert') || undefined;\n const ariaLabelAttributes = ariaRole && ariaRole !== 'none' ? getAriaLabelAttributes({ label, id: labelId }) : undefined;\n\n return (\n <FluidWrapper fluid={fluid}>\n <div\n ref={ref}\n role={ariaRole}\n data-testid={testId}\n data-analyticsid={AnalyticsId.NotificationPanel}\n className={notificationPanelClasses}\n {...ariaLabelAttributes}\n >\n <NotificationBadge\n variant={variant}\n size={compactVariant || isMobile ? IconSize.XSmall : IconSize.Small}\n className={styles['notification-panel__icon']}\n />\n {dismissable && (\n <span className={styles['notification-panel__close']}>\n <Close ariaLabel={props.ariaLabelCloseBtn} onClick={onClick} color=\"black\" />\n </span>\n )}\n {renderContent()}\n </div>\n </FluidWrapper>\n );\n};\n\nexport default NotificationPanel;\n","import NotificationPanel from './NotificationPanel';\nexport * from './NotificationPanel';\nexport default NotificationPanel;\n"],"mappings":";;;;;;;;;;;;AAgEA,IAAM,gBAA0C,EAAE,OAAO,eAAe;CACtE,IAAI,OAGF,OAAO,oBAAC,OAAD;EAAK,WAFS,WAAW,OAAO,iBAEhB;EAAe;EAAe,CAAA;CAEvD,OAAO;;AAGT,IAAM,qBAAsD,UAAS;CACnE,MAAM,EACJ,UACA,UAAU,QACV,cAAc,OACd,SACA,kBACA,oBACA,0BACA,wBAAwB,OACxB,gBACA,OACA,SAAS,aACT,kBAAkB,MAClB,QAAQ,OACR,MACA,WACA,MACA,QACA,QACE;CACJ,MAAM,UAAU,kBAAkB,YAAY;CAC9C,MAAM,CAAC,cAAc,mBAAmB,MAAM,SAAS,sBAAsB;CAC7E,MAAM,WAAW,uBAAuB;CAExC,MAAM,sBAAuC;EAC3C,MAAM,iBAAiB,mBAAmB;EAC1C,MAAM,iBAAiB,WAAW,OAAO,+BAA+B;EACxE,MAAM,eAAe,WAAW,OAAO,8BAA8B;IAClE,OAAO,2CAA2C,CAAC,YAAY,CAAC;IAChE,OAAO,wCAAwC,CAAC,CAAC;IACjD,OAAO,wCAAwC;GACjD,CAAC;EACF,MAAM,kBAAkB,WAAW,OAAO,iCAAiC;IACxE,OAAO,8CAA8C;IACrD,OAAO,qDAAqD,oBAAoB,CAAC;IACjF,OAAO,2CAA2C;GACpD,CAAC;EAGF,OACE,qBAAC,OAAD;GAAK,WAAW;GAAgB,I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