@helsenorge/designsystem-react 8.5.0 → 8.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1089) hide show
  1. package/AnchorLink.js +60 -0
  2. package/AnchorLink.js.map +1 -0
  3. package/Avatar.js +34 -0
  4. package/Avatar.js.map +1 -0
  5. package/Badge.js +31 -0
  6. package/Badge.js.map +1 -0
  7. package/Button.js +130 -0
  8. package/Button.js.map +1 -0
  9. package/CHANGELOG.md +28 -3
  10. package/Checkbox.js +113 -0
  11. package/Checkbox.js.map +1 -0
  12. package/Close.js +31 -0
  13. package/Close.js.map +1 -0
  14. package/ErrorBoundary.js +35 -0
  15. package/ErrorBoundary.js.map +1 -0
  16. package/ErrorWrapper.js +14 -0
  17. package/ErrorWrapper.js.map +1 -0
  18. package/Expander.js +108 -0
  19. package/Expander.js.map +1 -0
  20. package/FormGroup.js +113 -0
  21. package/FormGroup.js.map +1 -0
  22. package/FormLayout.js +38 -0
  23. package/FormLayout.js.map +1 -0
  24. package/HelpBubble.js +68 -0
  25. package/HelpBubble.js.map +1 -0
  26. package/HighlightPanel.js +71 -0
  27. package/HighlightPanel.js.map +1 -0
  28. package/HorizontalScroll.js +49 -0
  29. package/HorizontalScroll.js.map +1 -0
  30. package/Icon.js +62 -0
  31. package/Icon.js.map +1 -0
  32. package/Illustration.js +41 -0
  33. package/Illustration.js.map +1 -0
  34. package/Input.js +140 -0
  35. package/Input.js.map +1 -0
  36. package/Label.js +108 -0
  37. package/Label.js.map +1 -0
  38. package/LazyIcon.js +30 -0
  39. package/LazyIcon.js.map +1 -0
  40. package/LazyIllustration.js +34 -0
  41. package/LazyIllustration.js.map +1 -0
  42. package/LinkList.js +63 -0
  43. package/LinkList.js.map +1 -0
  44. package/List.js +13 -0
  45. package/List.js.map +1 -0
  46. package/ListHeader.js +94 -0
  47. package/ListHeader.js.map +1 -0
  48. package/ListHeaderText.js +35 -0
  49. package/ListHeaderText.js.map +1 -0
  50. package/MaxCharacters.js +15 -0
  51. package/MaxCharacters.js.map +1 -0
  52. package/NotificationBadge.js +68 -0
  53. package/NotificationBadge.js.map +1 -0
  54. package/Panel.js +255 -0
  55. package/Panel.js.map +1 -0
  56. package/PopOver.js +85 -0
  57. package/PopOver.js.map +1 -0
  58. package/RadioButton.js +104 -0
  59. package/RadioButton.js.map +1 -0
  60. package/Select.js +76 -0
  61. package/Select.js.map +1 -0
  62. package/{components/Spacer/Spacer.js → Spacer.js} +10 -9
  63. package/Spacer.js.map +1 -0
  64. package/StatusDot.js +33 -0
  65. package/StatusDot.js.map +1 -0
  66. package/StepButtons.js +28 -0
  67. package/StepButtons.js.map +1 -0
  68. package/TabList.js +68 -0
  69. package/TabList.js.map +1 -0
  70. package/TabPanel.js +18 -0
  71. package/TabPanel.js.map +1 -0
  72. package/Table.js +98 -0
  73. package/Table.js.map +1 -0
  74. package/TableBody.js +13 -0
  75. package/TableBody.js.map +1 -0
  76. package/{components/Table/TableCell/TableCell.js → TableCell.js} +12 -13
  77. package/TableCell.js.map +1 -0
  78. package/TableExpandedRow.js +37 -0
  79. package/TableExpandedRow.js.map +1 -0
  80. package/TableExpanderCell.js +34 -0
  81. package/TableExpanderCell.js.map +1 -0
  82. package/TableHead.js +24 -0
  83. package/TableHead.js.map +1 -0
  84. package/TableHeadCell.js +44 -0
  85. package/TableHeadCell.js.map +1 -0
  86. package/TableRow.js +62 -0
  87. package/TableRow.js.map +1 -0
  88. package/Textarea.js +110 -0
  89. package/Textarea.js.map +1 -0
  90. package/Title.js +25 -0
  91. package/Title.js.map +1 -0
  92. package/TooltipWord.js +28 -0
  93. package/TooltipWord.js.map +1 -0
  94. package/Trigger.js +73 -0
  95. package/Trigger.js.map +1 -0
  96. package/__mocks__/uuid.js +1 -1
  97. package/components/AnchorLink/index.js +1 -1
  98. package/components/Avatar/index.js +3 -3
  99. package/components/Badge/index.js +1 -1
  100. package/components/Button/index.js +1 -1
  101. package/components/Checkbox/index.js +3 -3
  102. package/components/Chip/index.js +30 -6
  103. package/components/Chip/index.js.map +1 -1
  104. package/components/Close/index.js +2 -2
  105. package/components/DictionaryTrigger/index.js +25 -2
  106. package/components/DictionaryTrigger/index.js.map +1 -1
  107. package/components/Dropdown/index.js +124 -4
  108. package/components/Dropdown/index.js.map +1 -1
  109. package/components/Duolist/index.js +70 -5
  110. package/components/Duolist/index.js.map +1 -1
  111. package/components/EmptyState/index.js +159 -2
  112. package/components/EmptyState/index.js.map +1 -1
  113. package/components/ErrorWrapper/index.js +3 -3
  114. package/components/Expander/index.js +4 -4
  115. package/components/ExpanderHierarchy/index.js +102 -2
  116. package/components/ExpanderHierarchy/index.js.map +1 -1
  117. package/components/ExpanderList/index.js +139 -3
  118. package/components/ExpanderList/index.js.map +1 -1
  119. package/components/EyebrowHeader/index.js +9 -2
  120. package/components/EyebrowHeader/index.js.map +1 -1
  121. package/components/FormGroup/index.js +1 -1
  122. package/components/FormLayout/index.js +5 -5
  123. package/components/HelpBubble/index.js +4 -4
  124. package/components/HelpPanel/index.js +21 -2
  125. package/components/HelpPanel/index.js.map +1 -1
  126. package/components/HelpQuestion/index.js +31 -2
  127. package/components/HelpQuestion/index.js.map +1 -1
  128. package/components/HighlightPanel/index.js +4 -4
  129. package/components/HorizontalScroll/index.js +1 -1
  130. package/components/Icon/index.js +5 -5
  131. package/components/Icons/ActiveMonitoring.js +4 -4
  132. package/components/Icons/ActiveMonitoring.js.map +1 -1
  133. package/components/Icons/AcupunctureBack.js +6 -6
  134. package/components/Icons/AcupunctureBack.js.map +1 -1
  135. package/components/Icons/AlarmClock.js +15 -5
  136. package/components/Icons/AlarmClock.js.map +1 -1
  137. package/components/Icons/AlertSignFill.js +4 -4
  138. package/components/Icons/AlertSignFill.js.map +1 -1
  139. package/components/Icons/AlertSignStroke.js +4 -4
  140. package/components/Icons/AlertSignStroke.js.map +1 -1
  141. package/components/Icons/Amputation.js +3 -3
  142. package/components/Icons/Amputation.js.map +1 -1
  143. package/components/Icons/Anxiety.js +3 -3
  144. package/components/Icons/Anxiety.js.map +1 -1
  145. package/components/Icons/Apple.js +3 -3
  146. package/components/Icons/Apple.js.map +1 -1
  147. package/components/Icons/Archive.js +7 -7
  148. package/components/Icons/Archive.js.map +1 -1
  149. package/components/Icons/ArmFlexing.js +3 -3
  150. package/components/Icons/ArmFlexing.js.map +1 -1
  151. package/components/Icons/ArrowDown.js +7 -7
  152. package/components/Icons/ArrowDown.js.map +1 -1
  153. package/components/Icons/ArrowLeft.js +3 -3
  154. package/components/Icons/ArrowLeft.js.map +1 -1
  155. package/components/Icons/ArrowRight.js +3 -3
  156. package/components/Icons/ArrowRight.js.map +1 -1
  157. package/components/Icons/ArrowUp.js +7 -7
  158. package/components/Icons/ArrowUp.js.map +1 -1
  159. package/components/Icons/ArrowUpRight.js +4 -4
  160. package/components/Icons/ArrowUpRight.js.map +1 -1
  161. package/components/Icons/Attachment.js +4 -4
  162. package/components/Icons/Attachment.js.map +1 -1
  163. package/components/Icons/Atv.js +3 -3
  164. package/components/Icons/Atv.js.map +1 -1
  165. package/components/Icons/Avatar.js +4 -4
  166. package/components/Icons/Avatar.js.map +1 -1
  167. package/components/Icons/AwakePersonOnPillow.js +2 -2
  168. package/components/Icons/AwakePersonOnPillow.js.map +1 -1
  169. package/components/Icons/Baby.js +3 -3
  170. package/components/Icons/Baby.js.map +1 -1
  171. package/components/Icons/BandAid.js +3 -3
  172. package/components/Icons/BandAid.js.map +1 -1
  173. package/components/Icons/BeerAndPills.js +3 -3
  174. package/components/Icons/BeerAndPills.js.map +1 -1
  175. package/components/Icons/Bell.js +3 -3
  176. package/components/Icons/Bell.js.map +1 -1
  177. package/components/Icons/Bike.js +3 -3
  178. package/components/Icons/Bike.js.map +1 -1
  179. package/components/Icons/BirthControl.js +4 -4
  180. package/components/Icons/BirthControl.js.map +1 -1
  181. package/components/Icons/BirthdayCake.js +2 -2
  182. package/components/Icons/BirthdayCake.js.map +1 -1
  183. package/components/Icons/Boat.js +3 -3
  184. package/components/Icons/Boat.js.map +1 -1
  185. package/components/Icons/Body.js +4 -4
  186. package/components/Icons/Body.js.map +1 -1
  187. package/components/Icons/Braille.js +4 -4
  188. package/components/Icons/Braille.js.map +1 -1
  189. package/components/Icons/Brain.js +3 -3
  190. package/components/Icons/Brain.js.map +1 -1
  191. package/components/Icons/BreastReconstruction.js +4 -4
  192. package/components/Icons/BreastReconstruction.js.map +1 -1
  193. package/components/Icons/BreastRemoval.js +4 -4
  194. package/components/Icons/BreastRemoval.js.map +1 -1
  195. package/components/Icons/Breasts.js +2 -2
  196. package/components/Icons/Breasts.js.map +1 -1
  197. package/components/Icons/BrokenHeart.js +3 -3
  198. package/components/Icons/BrokenHeart.js.map +1 -1
  199. package/components/Icons/BrokenPuzzle.js +3 -3
  200. package/components/Icons/BrokenPuzzle.js.map +1 -1
  201. package/components/Icons/Bus.js +13 -6
  202. package/components/Icons/Bus.js.map +1 -1
  203. package/components/Icons/Calendar.js +6 -6
  204. package/components/Icons/Calendar.js.map +1 -1
  205. package/components/Icons/CalendarChange.js +7 -7
  206. package/components/Icons/CalendarChange.js.map +1 -1
  207. package/components/Icons/CalendarCheck.js +7 -7
  208. package/components/Icons/CalendarCheck.js.map +1 -1
  209. package/components/Icons/CalendarEvent.js +3 -3
  210. package/components/Icons/CalendarEvent.js.map +1 -1
  211. package/components/Icons/CalendarSave.js +4 -4
  212. package/components/Icons/CalendarSave.js.map +1 -1
  213. package/components/Icons/Cancer.js +17 -3
  214. package/components/Icons/Cancer.js.map +1 -1
  215. package/components/Icons/Candle.js +5 -5
  216. package/components/Icons/Candle.js.map +1 -1
  217. package/components/Icons/Car.js +2 -2
  218. package/components/Icons/Car.js.map +1 -1
  219. package/components/Icons/Carton.js +19 -14
  220. package/components/Icons/Carton.js.map +1 -1
  221. package/components/Icons/Change.js +14 -8
  222. package/components/Icons/Change.js.map +1 -1
  223. package/components/Icons/Check.js +4 -4
  224. package/components/Icons/Check.js.map +1 -1
  225. package/components/Icons/CheckFill.js +7 -7
  226. package/components/Icons/CheckFill.js.map +1 -1
  227. package/components/Icons/CheckOutline.js +4 -4
  228. package/components/Icons/CheckOutline.js.map +1 -1
  229. package/components/Icons/Chest.js +2 -2
  230. package/components/Icons/Chest.js.map +1 -1
  231. package/components/Icons/ChevronDown.js +3 -3
  232. package/components/Icons/ChevronDown.js.map +1 -1
  233. package/components/Icons/ChevronLeft.js +3 -3
  234. package/components/Icons/ChevronLeft.js.map +1 -1
  235. package/components/Icons/ChevronRight.js +3 -3
  236. package/components/Icons/ChevronRight.js.map +1 -1
  237. package/components/Icons/ChevronUp.js +3 -3
  238. package/components/Icons/ChevronUp.js.map +1 -1
  239. package/components/Icons/ChevronsDown.js +6 -6
  240. package/components/Icons/ChevronsDown.js.map +1 -1
  241. package/components/Icons/ChevronsUp.js +7 -7
  242. package/components/Icons/ChevronsUp.js.map +1 -1
  243. package/components/Icons/ChildPlaying.js +9 -3
  244. package/components/Icons/ChildPlaying.js.map +1 -1
  245. package/components/Icons/Cigarette.js +3 -3
  246. package/components/Icons/Cigarette.js.map +1 -1
  247. package/components/Icons/Coins.js +4 -4
  248. package/components/Icons/Coins.js.map +1 -1
  249. package/components/Icons/Contacts.js +4 -4
  250. package/components/Icons/Contacts.js.map +1 -1
  251. package/components/Icons/Copy.js +15 -4
  252. package/components/Icons/Copy.js.map +1 -1
  253. package/components/Icons/CoronaCertificate.js +3 -3
  254. package/components/Icons/CoronaCertificate.js.map +1 -1
  255. package/components/Icons/Coronavirus.js +3 -3
  256. package/components/Icons/Coronavirus.js.map +1 -1
  257. package/components/Icons/Cough.js +3 -3
  258. package/components/Icons/Cough.js.map +1 -1
  259. package/components/Icons/CreditCard.js +33 -10
  260. package/components/Icons/CreditCard.js.map +1 -1
  261. package/components/Icons/CriticalHealthInfo.js +3 -3
  262. package/components/Icons/CriticalHealthInfo.js.map +1 -1
  263. package/components/Icons/Cross.js +3 -3
  264. package/components/Icons/Cross.js.map +1 -1
  265. package/components/Icons/DataExchange.js +4 -4
  266. package/components/Icons/DataExchange.js.map +1 -1
  267. package/components/Icons/DataReceived.js +4 -4
  268. package/components/Icons/DataReceived.js.map +1 -1
  269. package/components/Icons/DataSent.js +4 -4
  270. package/components/Icons/DataSent.js.map +1 -1
  271. package/components/Icons/Depression.js +3 -3
  272. package/components/Icons/Depression.js.map +1 -1
  273. package/components/Icons/DigestiveSystem.js +9 -3
  274. package/components/Icons/DigestiveSystem.js.map +1 -1
  275. package/components/Icons/Dizzy.js +3 -3
  276. package/components/Icons/Dizzy.js.map +1 -1
  277. package/components/Icons/Documents.js +3 -3
  278. package/components/Icons/Documents.js.map +1 -1
  279. package/components/Icons/Dog.js +3 -3
  280. package/components/Icons/Dog.js.map +1 -1
  281. package/components/Icons/DonorCard.js +3 -3
  282. package/components/Icons/DonorCard.js.map +1 -1
  283. package/components/Icons/Download.js +7 -7
  284. package/components/Icons/Download.js.map +1 -1
  285. package/components/Icons/Draft.js +3 -3
  286. package/components/Icons/Draft.js.map +1 -1
  287. package/components/Icons/EChat.js +4 -4
  288. package/components/Icons/EChat.js.map +1 -1
  289. package/components/Icons/Ear.js +10 -7
  290. package/components/Icons/Ear.js.map +1 -1
  291. package/components/Icons/EarDeaf.js +4 -4
  292. package/components/Icons/EarDeaf.js.map +1 -1
  293. package/components/Icons/EarHearingAid.js +7 -7
  294. package/components/Icons/EarHearingAid.js.map +1 -1
  295. package/components/Icons/EarNoseThroat.js +11 -3
  296. package/components/Icons/EarNoseThroat.js.map +1 -1
  297. package/components/Icons/EarVolume.js +13 -8
  298. package/components/Icons/EarVolume.js.map +1 -1
  299. package/components/Icons/ElderlyPerson.js +2 -2
  300. package/components/Icons/ElderlyPerson.js.map +1 -1
  301. package/components/Icons/Embolization.js +4 -4
  302. package/components/Icons/Embolization.js.map +1 -1
  303. package/components/Icons/EmergencyCall.js +5 -5
  304. package/components/Icons/EmergencyCall.js.map +1 -1
  305. package/components/Icons/EmoticonAnnoyed.js +12 -8
  306. package/components/Icons/EmoticonAnnoyed.js.map +1 -1
  307. package/components/Icons/EmoticonDelighted.js +10 -7
  308. package/components/Icons/EmoticonDelighted.js.map +1 -1
  309. package/components/Icons/EmoticonDisappointed.js +10 -7
  310. package/components/Icons/EmoticonDisappointed.js.map +1 -1
  311. package/components/Icons/EmoticonHappy.js +10 -7
  312. package/components/Icons/EmoticonHappy.js.map +1 -1
  313. package/components/Icons/EmoticonMeh.js +10 -7
  314. package/components/Icons/EmoticonMeh.js.map +1 -1
  315. package/components/Icons/EnterFullScreen.js +13 -4
  316. package/components/Icons/EnterFullScreen.js.map +1 -1
  317. package/components/Icons/Envelope.js +4 -4
  318. package/components/Icons/Envelope.js.map +1 -1
  319. package/components/Icons/Epilepsy.js +3 -3
  320. package/components/Icons/Epilepsy.js.map +1 -1
  321. package/components/Icons/Eraser.js +10 -4
  322. package/components/Icons/Eraser.js.map +1 -1
  323. package/components/Icons/ErrorSignFill.js +4 -4
  324. package/components/Icons/ErrorSignFill.js.map +1 -1
  325. package/components/Icons/ErrorSignStroke.js +4 -4
  326. package/components/Icons/ErrorSignStroke.js.map +1 -1
  327. package/components/Icons/EuropeanHealthCard.js +6 -3
  328. package/components/Icons/EuropeanHealthCard.js.map +1 -1
  329. package/components/Icons/ExitFullScreen.js +13 -4
  330. package/components/Icons/ExitFullScreen.js.map +1 -1
  331. package/components/Icons/Eye.js +12 -4
  332. package/components/Icons/Eye.js.map +1 -1
  333. package/components/Icons/Facebook.js +3 -3
  334. package/components/Icons/Facebook.js.map +1 -1
  335. package/components/Icons/FallingLeaf.js +14 -9
  336. package/components/Icons/FallingLeaf.js.map +1 -1
  337. package/components/Icons/Female.js +3 -3
  338. package/components/Icons/Female.js.map +1 -1
  339. package/components/Icons/FemaleDoctor.js +2 -2
  340. package/components/Icons/FemaleDoctor.js.map +1 -1
  341. package/components/Icons/Ferry.js +3 -3
  342. package/components/Icons/Ferry.js.map +1 -1
  343. package/components/Icons/File.js +6 -6
  344. package/components/Icons/File.js.map +1 -1
  345. package/components/Icons/Filter.js +5 -5
  346. package/components/Icons/Filter.js.map +1 -1
  347. package/components/Icons/FingerBleed.js +3 -3
  348. package/components/Icons/FingerBleed.js.map +1 -1
  349. package/components/Icons/FirstAidKit.js +3 -3
  350. package/components/Icons/FirstAidKit.js.map +1 -1
  351. package/components/Icons/Fish.js +21 -14
  352. package/components/Icons/Fish.js.map +1 -1
  353. package/components/Icons/FloppyDisk.js +4 -4
  354. package/components/Icons/FloppyDisk.js.map +1 -1
  355. package/components/Icons/Football.js +3 -3
  356. package/components/Icons/Football.js.map +1 -1
  357. package/components/Icons/Form.js +4 -4
  358. package/components/Icons/Form.js.map +1 -1
  359. package/components/Icons/Forward.js +10 -4
  360. package/components/Icons/Forward.js.map +1 -1
  361. package/components/Icons/Gallery.js +7 -7
  362. package/components/Icons/Gallery.js.map +1 -1
  363. package/components/Icons/Garden.js +3 -3
  364. package/components/Icons/Garden.js.map +1 -1
  365. package/components/Icons/GasCan.js +3 -3
  366. package/components/Icons/GasCan.js.map +1 -1
  367. package/components/Icons/GenderIdentity.js +4 -4
  368. package/components/Icons/GenderIdentity.js.map +1 -1
  369. package/components/Icons/GlassWater.js +3 -3
  370. package/components/Icons/GlassWater.js.map +1 -1
  371. package/components/Icons/Glasses.js +4 -4
  372. package/components/Icons/Glasses.js.map +1 -1
  373. package/components/Icons/Globe.js +4 -4
  374. package/components/Icons/Globe.js.map +1 -1
  375. package/components/Icons/Grain.js +3 -3
  376. package/components/Icons/Grain.js.map +1 -1
  377. package/components/Icons/Graph.js +12 -9
  378. package/components/Icons/Graph.js.map +1 -1
  379. package/components/Icons/Group.js +8 -8
  380. package/components/Icons/Group.js.map +1 -1
  381. package/components/Icons/GroupTwins.js +35 -21
  382. package/components/Icons/GroupTwins.js.map +1 -1
  383. package/components/Icons/HTMLFile.js +10 -7
  384. package/components/Icons/HTMLFile.js.map +1 -1
  385. package/components/Icons/HandWaving.js +3 -3
  386. package/components/Icons/HandWaving.js.map +1 -1
  387. package/components/Icons/HandWithDisease.js +3 -3
  388. package/components/Icons/HandWithDisease.js.map +1 -1
  389. package/components/Icons/HandsAndHeart.js +5 -5
  390. package/components/Icons/HandsAndHeart.js.map +1 -1
  391. package/components/Icons/HealthClinic.js +4 -4
  392. package/components/Icons/HealthClinic.js.map +1 -1
  393. package/components/Icons/HealthWarning.js +4 -4
  394. package/components/Icons/HealthWarning.js.map +1 -1
  395. package/components/Icons/HealthcarePerson.js +27 -14
  396. package/components/Icons/HealthcarePerson.js.map +1 -1
  397. package/components/Icons/HealthcarePersonell.js +36 -18
  398. package/components/Icons/HealthcarePersonell.js.map +1 -1
  399. package/components/Icons/HearingProtection.js +12 -9
  400. package/components/Icons/HearingProtection.js.map +1 -1
  401. package/components/Icons/Heart.js +4 -4
  402. package/components/Icons/Heart.js.map +1 -1
  403. package/components/Icons/HeartHands.js +29 -22
  404. package/components/Icons/HeartHands.js.map +1 -1
  405. package/components/Icons/HelpSign.js +4 -4
  406. package/components/Icons/HelpSign.js.map +1 -1
  407. package/components/Icons/HelpingHand.js +3 -3
  408. package/components/Icons/HelpingHand.js.map +1 -1
  409. package/components/Icons/Hemodialysis.js +3 -3
  410. package/components/Icons/Hemodialysis.js.map +1 -1
  411. package/components/Icons/Hiker.js +2 -2
  412. package/components/Icons/Hiker.js.map +1 -1
  413. package/components/Icons/Hipprosthesis.js +4 -4
  414. package/components/Icons/Hipprosthesis.js.map +1 -1
  415. package/components/Icons/History.js +4 -4
  416. package/components/Icons/History.js.map +1 -1
  417. package/components/Icons/HivAndAids.js +3 -3
  418. package/components/Icons/HivAndAids.js.map +1 -1
  419. package/components/Icons/Home.js +7 -7
  420. package/components/Icons/Home.js.map +1 -1
  421. package/components/Icons/Hormone.js +3 -3
  422. package/components/Icons/Hormone.js.map +1 -1
  423. package/components/Icons/Hospital.js +7 -7
  424. package/components/Icons/Hospital.js.map +1 -1
  425. package/components/Icons/Hourglass.js +7 -7
  426. package/components/Icons/Hourglass.js.map +1 -1
  427. package/components/Icons/ImgFile.js +4 -4
  428. package/components/Icons/ImgFile.js.map +1 -1
  429. package/components/Icons/Inbox.js +6 -3
  430. package/components/Icons/Inbox.js.map +1 -1
  431. package/components/Icons/InfoSignFill.js +4 -4
  432. package/components/Icons/InfoSignFill.js.map +1 -1
  433. package/components/Icons/InfoSignStroke.js +4 -4
  434. package/components/Icons/InfoSignStroke.js.map +1 -1
  435. package/components/Icons/Instagram.js +9 -2
  436. package/components/Icons/Instagram.js.map +1 -1
  437. package/components/Icons/Intravenous.js +4 -4
  438. package/components/Icons/Intravenous.js.map +1 -1
  439. package/components/Icons/JointPain.js +3 -3
  440. package/components/Icons/JointPain.js.map +1 -1
  441. package/components/Icons/Journal.js +4 -4
  442. package/components/Icons/Journal.js.map +1 -1
  443. package/components/Icons/JpgFile.js +4 -4
  444. package/components/Icons/JpgFile.js.map +1 -1
  445. package/components/Icons/Kidney.js +3 -3
  446. package/components/Icons/Kidney.js.map +1 -1
  447. package/components/Icons/KitchenScale.js +4 -4
  448. package/components/Icons/KitchenScale.js.map +1 -1
  449. package/components/Icons/Kjernejournal.js +3 -3
  450. package/components/Icons/Kjernejournal.js.map +1 -1
  451. package/components/Icons/Laboratory.js +4 -4
  452. package/components/Icons/Laboratory.js.map +1 -1
  453. package/components/Icons/LaptopBlog.js +3 -3
  454. package/components/Icons/LaptopBlog.js.map +1 -1
  455. package/components/Icons/LawBook.js +6 -3
  456. package/components/Icons/LawBook.js.map +1 -1
  457. package/components/Icons/LegalDocument.js +13 -10
  458. package/components/Icons/LegalDocument.js.map +1 -1
  459. package/components/Icons/LightBulb.js +2 -2
  460. package/components/Icons/LightBulb.js.map +1 -1
  461. package/components/Icons/List.js +7 -7
  462. package/components/Icons/List.js.map +1 -1
  463. package/components/Icons/Location.js +6 -3
  464. package/components/Icons/Location.js.map +1 -1
  465. package/components/Icons/Lock.js +4 -4
  466. package/components/Icons/Lock.js.map +1 -1
  467. package/components/Icons/Login.js +20 -11
  468. package/components/Icons/Login.js.map +1 -1
  469. package/components/Icons/Logout.js +20 -11
  470. package/components/Icons/Logout.js.map +1 -1
  471. package/components/Icons/Lungs.js +3 -3
  472. package/components/Icons/Lungs.js.map +1 -1
  473. package/components/Icons/Makeup.js +2 -2
  474. package/components/Icons/Makeup.js.map +1 -1
  475. package/components/Icons/MaleDoctor.js +2 -2
  476. package/components/Icons/MaleDoctor.js.map +1 -1
  477. package/components/Icons/MaleDoctorAndPerson.js +11 -3
  478. package/components/Icons/MaleDoctorAndPerson.js.map +1 -1
  479. package/components/Icons/MaleGenitalia.js +2 -2
  480. package/components/Icons/MaleGenitalia.js.map +1 -1
  481. package/components/Icons/Medicine.js +6 -6
  482. package/components/Icons/Medicine.js.map +1 -1
  483. package/components/Icons/MedicineWarning.js +4 -4
  484. package/components/Icons/MedicineWarning.js.map +1 -1
  485. package/components/Icons/MentalHealthAdult.js +9 -3
  486. package/components/Icons/MentalHealthAdult.js.map +1 -1
  487. package/components/Icons/MentalHealthChild.js +9 -3
  488. package/components/Icons/MentalHealthChild.js.map +1 -1
  489. package/components/Icons/Menu.js +4 -4
  490. package/components/Icons/Menu.js.map +1 -1
  491. package/components/Icons/Microscope.js +4 -4
  492. package/components/Icons/Microscope.js.map +1 -1
  493. package/components/Icons/Minus.js +3 -3
  494. package/components/Icons/Minus.js.map +1 -1
  495. package/components/Icons/Mirror.js +3 -3
  496. package/components/Icons/Mirror.js.map +1 -1
  497. package/components/Icons/MobilePhone.js +4 -4
  498. package/components/Icons/MobilePhone.js.map +1 -1
  499. package/components/Icons/MotherHoldingBaby.js +2 -2
  500. package/components/Icons/MotherHoldingBaby.js.map +1 -1
  501. package/components/Icons/MuscleBack.js +11 -3
  502. package/components/Icons/MuscleBack.js.map +1 -1
  503. package/components/Icons/MuscleLeg.js +9 -3
  504. package/components/Icons/MuscleLeg.js.map +1 -1
  505. package/components/Icons/Mushroom.js +3 -3
  506. package/components/Icons/Mushroom.js.map +1 -1
  507. package/components/Icons/Music.js +3 -3
  508. package/components/Icons/Music.js.map +1 -1
  509. package/components/Icons/MusselsAndSalt.js +2 -2
  510. package/components/Icons/MusselsAndSalt.js.map +1 -1
  511. package/components/Icons/NoAccess.js +20 -17
  512. package/components/Icons/NoAccess.js.map +1 -1
  513. package/components/Icons/NoEye.js +9 -9
  514. package/components/Icons/NoEye.js.map +1 -1
  515. package/components/Icons/NoFilter.js +10 -4
  516. package/components/Icons/NoFilter.js.map +1 -1
  517. package/components/Icons/Notepad.js +2 -2
  518. package/components/Icons/Notepad.js.map +1 -1
  519. package/components/Icons/Osteotomy.js +4 -4
  520. package/components/Icons/Osteotomy.js.map +1 -1
  521. package/components/Icons/PaintRoller.js +3 -3
  522. package/components/Icons/PaintRoller.js.map +1 -1
  523. package/components/Icons/PaperPlane.js +4 -4
  524. package/components/Icons/PaperPlane.js.map +1 -1
  525. package/components/Icons/PatientAndPerson.js +2 -2
  526. package/components/Icons/PatientAndPerson.js.map +1 -1
  527. package/components/Icons/Pause.js +4 -4
  528. package/components/Icons/Pause.js.map +1 -1
  529. package/components/Icons/PdfFile.js +4 -4
  530. package/components/Icons/PdfFile.js.map +1 -1
  531. package/components/Icons/Pencil.js +4 -4
  532. package/components/Icons/Pencil.js.map +1 -1
  533. package/components/Icons/PeopleTalking.js +3 -3
  534. package/components/Icons/PeopleTalking.js.map +1 -1
  535. package/components/Icons/Peritonealdialysis.js +4 -4
  536. package/components/Icons/Peritonealdialysis.js.map +1 -1
  537. package/components/Icons/Person.js +2 -2
  538. package/components/Icons/Person.js.map +1 -1
  539. package/components/Icons/PersonAndPatient.js +2 -2
  540. package/components/Icons/PersonAndPatient.js.map +1 -1
  541. package/components/Icons/PersonCancel.js +28 -19
  542. package/components/Icons/PersonCancel.js.map +1 -1
  543. package/components/Icons/PersonInXRayMachine.js +4 -4
  544. package/components/Icons/PersonInXRayMachine.js.map +1 -1
  545. package/components/Icons/PersonOverweight.js +3 -3
  546. package/components/Icons/PersonOverweight.js.map +1 -1
  547. package/components/Icons/PersonRelaxing.js +9 -3
  548. package/components/Icons/PersonRelaxing.js.map +1 -1
  549. package/components/Icons/PersonWithBrain.js +6 -3
  550. package/components/Icons/PersonWithBrain.js.map +1 -1
  551. package/components/Icons/PersonWithBrokenArm.js +3 -3
  552. package/components/Icons/PersonWithBrokenArm.js.map +1 -1
  553. package/components/Icons/PersonWithCrutches.js +3 -3
  554. package/components/Icons/PersonWithCrutches.js.map +1 -1
  555. package/components/Icons/PersonWithJaw.js +9 -3
  556. package/components/Icons/PersonWithJaw.js.map +1 -1
  557. package/components/Icons/PersonWithMagnifyingGlass.js +8 -2
  558. package/components/Icons/PersonWithMagnifyingGlass.js.map +1 -1
  559. package/components/Icons/PersonWithSenses.js +15 -3
  560. package/components/Icons/PersonWithSenses.js.map +1 -1
  561. package/components/Icons/PersonWorking.js +9 -3
  562. package/components/Icons/PersonWorking.js.map +1 -1
  563. package/components/Icons/PersonalPlan.js +14 -11
  564. package/components/Icons/PersonalPlan.js.map +1 -1
  565. package/components/Icons/PizzaSlice.js +8 -2
  566. package/components/Icons/PizzaSlice.js.map +1 -1
  567. package/components/Icons/Plane.js +3 -3
  568. package/components/Icons/Plane.js.map +1 -1
  569. package/components/Icons/Plant.js +3 -3
  570. package/components/Icons/Plant.js.map +1 -1
  571. package/components/Icons/PlateKnifeFork.js +17 -14
  572. package/components/Icons/PlateKnifeFork.js.map +1 -1
  573. package/components/Icons/Play.js +4 -4
  574. package/components/Icons/Play.js.map +1 -1
  575. package/components/Icons/PlusLarge.js +4 -4
  576. package/components/Icons/PlusLarge.js.map +1 -1
  577. package/components/Icons/PlusSmall.js +4 -4
  578. package/components/Icons/PlusSmall.js.map +1 -1
  579. package/components/Icons/PngFile.js +4 -4
  580. package/components/Icons/PngFile.js.map +1 -1
  581. package/components/Icons/Podcast.js +4 -4
  582. package/components/Icons/Podcast.js.map +1 -1
  583. package/components/Icons/PoisonInformation.js +9 -3
  584. package/components/Icons/PoisonInformation.js.map +1 -1
  585. package/components/Icons/Pregnant.js +2 -2
  586. package/components/Icons/Pregnant.js.map +1 -1
  587. package/components/Icons/Printer.js +7 -7
  588. package/components/Icons/Printer.js.map +1 -1
  589. package/components/Icons/Psychosis.js +2 -2
  590. package/components/Icons/Psychosis.js.map +1 -1
  591. package/components/Icons/Publication.js +4 -4
  592. package/components/Icons/Publication.js.map +1 -1
  593. package/components/Icons/Puzzle.js +5 -2
  594. package/components/Icons/Puzzle.js.map +1 -1
  595. package/components/Icons/QrCode.js +7 -7
  596. package/components/Icons/QrCode.js.map +1 -1
  597. package/components/Icons/Quarrel.js +4 -4
  598. package/components/Icons/Quarrel.js.map +1 -1
  599. package/components/Icons/RadioTherapy.js +4 -4
  600. package/components/Icons/RadioTherapy.js.map +1 -1
  601. package/components/Icons/RadioactiveTreatment.js +4 -4
  602. package/components/Icons/RadioactiveTreatment.js.map +1 -1
  603. package/components/Icons/Radioiodine.js +4 -4
  604. package/components/Icons/Radioiodine.js.map +1 -1
  605. package/components/Icons/Receipt.js +2 -2
  606. package/components/Icons/Receipt.js.map +1 -1
  607. package/components/Icons/Receptionist.js +4 -4
  608. package/components/Icons/Receptionist.js.map +1 -1
  609. package/components/Icons/Recovery.js +4 -4
  610. package/components/Icons/Recovery.js.map +1 -1
  611. package/components/Icons/Referral.js +4 -4
  612. package/components/Icons/Referral.js.map +1 -1
  613. package/components/Icons/Refresh.js +4 -4
  614. package/components/Icons/Refresh.js.map +1 -1
  615. package/components/Icons/Refund.js +3 -3
  616. package/components/Icons/Refund.js.map +1 -1
  617. package/components/Icons/Reminder.js +14 -9
  618. package/components/Icons/Reminder.js.map +1 -1
  619. package/components/Icons/Reply.js +10 -4
  620. package/components/Icons/Reply.js.map +1 -1
  621. package/components/Icons/Rocket.js +3 -3
  622. package/components/Icons/Rocket.js.map +1 -1
  623. package/components/Icons/RtfFile.js +4 -4
  624. package/components/Icons/RtfFile.js.map +1 -1
  625. package/components/Icons/STDs.js +4 -4
  626. package/components/Icons/STDs.js.map +1 -1
  627. package/components/Icons/Save.js +12 -4
  628. package/components/Icons/Save.js.map +1 -1
  629. package/components/Icons/Scale.js +3 -3
  630. package/components/Icons/Scale.js.map +1 -1
  631. package/components/Icons/ScreenReader.js +18 -11
  632. package/components/Icons/ScreenReader.js.map +1 -1
  633. package/components/Icons/Search.js +4 -4
  634. package/components/Icons/Search.js.map +1 -1
  635. package/components/Icons/SectionSign.js +6 -6
  636. package/components/Icons/SectionSign.js.map +1 -1
  637. package/components/Icons/Settings.js +7 -7
  638. package/components/Icons/Settings.js.map +1 -1
  639. package/components/Icons/Sexualorientation.js +4 -4
  640. package/components/Icons/Sexualorientation.js.map +1 -1
  641. package/components/Icons/ShakingHand.js +3 -3
  642. package/components/Icons/ShakingHand.js.map +1 -1
  643. package/components/Icons/Share.js +10 -4
  644. package/components/Icons/Share.js.map +1 -1
  645. package/components/Icons/Shield.js +4 -4
  646. package/components/Icons/Shield.js.map +1 -1
  647. package/components/Icons/ShuntOperation.js +3 -3
  648. package/components/Icons/ShuntOperation.js.map +1 -1
  649. package/components/Icons/Skeleton.js +2 -2
  650. package/components/Icons/Skeleton.js.map +1 -1
  651. package/components/Icons/Skin.js +3 -3
  652. package/components/Icons/Skin.js.map +1 -1
  653. package/components/Icons/Snake.js +3 -3
  654. package/components/Icons/Snake.js.map +1 -1
  655. package/components/Icons/Snapchat.js +6 -3
  656. package/components/Icons/Snapchat.js.map +1 -1
  657. package/components/Icons/SortDown.js +19 -7
  658. package/components/Icons/SortDown.js.map +1 -1
  659. package/components/Icons/SortUp.js +19 -7
  660. package/components/Icons/SortUp.js.map +1 -1
  661. package/components/Icons/SpeechBubble.js +6 -6
  662. package/components/Icons/SpeechBubble.js.map +1 -1
  663. package/components/Icons/Spray.js +2 -2
  664. package/components/Icons/Spray.js.map +1 -1
  665. package/components/Icons/Stopwatch.js +7 -7
  666. package/components/Icons/Stopwatch.js.map +1 -1
  667. package/components/Icons/Sun.js +14 -9
  668. package/components/Icons/Sun.js.map +1 -1
  669. package/components/Icons/SupportingPerson.js +25 -22
  670. package/components/Icons/SupportingPerson.js.map +1 -1
  671. package/components/Icons/Surgery.js +3 -3
  672. package/components/Icons/Surgery.js.map +1 -1
  673. package/components/Icons/Sweets.js +19 -14
  674. package/components/Icons/Sweets.js.map +1 -1
  675. package/components/Icons/Syringe.js +6 -6
  676. package/components/Icons/Syringe.js.map +1 -1
  677. package/components/Icons/Taxi.js +2 -2
  678. package/components/Icons/Taxi.js.map +1 -1
  679. package/components/Icons/TeddyBear.js +3 -3
  680. package/components/Icons/TeddyBear.js.map +1 -1
  681. package/components/Icons/Teenagers.js +4 -4
  682. package/components/Icons/Teenagers.js.map +1 -1
  683. package/components/Icons/ThinkingAboutBaby.js +3 -3
  684. package/components/Icons/ThinkingAboutBaby.js.map +1 -1
  685. package/components/Icons/Ticket.js +3 -3
  686. package/components/Icons/Ticket.js.map +1 -1
  687. package/components/Icons/TimePassing.js +7 -7
  688. package/components/Icons/TimePassing.js.map +1 -1
  689. package/components/Icons/Tombstone.js +12 -9
  690. package/components/Icons/Tombstone.js.map +1 -1
  691. package/components/Icons/Toolbox.js +36 -30
  692. package/components/Icons/Toolbox.js.map +1 -1
  693. package/components/Icons/Tooth.js +3 -3
  694. package/components/Icons/Tooth.js.map +1 -1
  695. package/components/Icons/TotalKneeProsthesis.js +4 -4
  696. package/components/Icons/TotalKneeProsthesis.js.map +1 -1
  697. package/components/Icons/Train.js +3 -3
  698. package/components/Icons/Train.js.map +1 -1
  699. package/components/Icons/Transplantation.js +3 -3
  700. package/components/Icons/Transplantation.js.map +1 -1
  701. package/components/Icons/TrashCan.js +7 -7
  702. package/components/Icons/TrashCan.js.map +1 -1
  703. package/components/Icons/TravelRoute.js +21 -16
  704. package/components/Icons/TravelRoute.js.map +1 -1
  705. package/components/Icons/TriangleX.js +32 -35
  706. package/components/Icons/TriangleX.js.map +1 -1
  707. package/components/Icons/Twitter.js +3 -3
  708. package/components/Icons/Twitter.js.map +1 -1
  709. package/components/Icons/Undo.js +8 -8
  710. package/components/Icons/Undo.js.map +1 -1
  711. package/components/Icons/UniProsthesis.js +3 -3
  712. package/components/Icons/UniProsthesis.js.map +1 -1
  713. package/components/Icons/Upload.js +10 -4
  714. package/components/Icons/Upload.js.map +1 -1
  715. package/components/Icons/UserOrganization.js +2 -2
  716. package/components/Icons/UserOrganization.js.map +1 -1
  717. package/components/Icons/Vaccine.js +7 -7
  718. package/components/Icons/Vaccine.js.map +1 -1
  719. package/components/Icons/VerticalDots.js +4 -4
  720. package/components/Icons/VerticalDots.js.map +1 -1
  721. package/components/Icons/VideoCamera.js +7 -7
  722. package/components/Icons/VideoCamera.js.map +1 -1
  723. package/components/Icons/VideoChat.js +4 -4
  724. package/components/Icons/VideoChat.js.map +1 -1
  725. package/components/Icons/Wallet.js +4 -4
  726. package/components/Icons/Wallet.js.map +1 -1
  727. package/components/Icons/Watch.js +6 -6
  728. package/components/Icons/Watch.js.map +1 -1
  729. package/components/Icons/Website.js +4 -4
  730. package/components/Icons/Website.js.map +1 -1
  731. package/components/Icons/Wheelchair.js +4 -4
  732. package/components/Icons/Wheelchair.js.map +1 -1
  733. package/components/Icons/WheelchairActive.js +3 -3
  734. package/components/Icons/WheelchairActive.js.map +1 -1
  735. package/components/Icons/Window.js +3 -3
  736. package/components/Icons/Window.js.map +1 -1
  737. package/components/Icons/WordDocument.js +3 -3
  738. package/components/Icons/WordDocument.js.map +1 -1
  739. package/components/Icons/WorkSuitcase.js +2 -2
  740. package/components/Icons/WorkSuitcase.js.map +1 -1
  741. package/components/Icons/X.js +4 -4
  742. package/components/Icons/X.js.map +1 -1
  743. package/components/Icons/XOutline.js +3 -3
  744. package/components/Icons/XOutline.js.map +1 -1
  745. package/components/Icons/XmlFile.js +4 -4
  746. package/components/Icons/XmlFile.js.map +1 -1
  747. package/components/Icons/YouTube.js +3 -3
  748. package/components/Icons/YouTube.js.map +1 -1
  749. package/components/Icons/Zoom.js +6 -6
  750. package/components/Icons/Zoom.js.map +1 -1
  751. package/components/Illustration/index.js +3 -3
  752. package/components/Illustrations/Doctor.js +8 -8
  753. package/components/Illustrations/Doctor.js.map +1 -1
  754. package/components/Illustrations/DoctorMedium.js +49 -41
  755. package/components/Illustrations/DoctorMedium.js.map +1 -1
  756. package/components/Illustrations/DoctorSmall.js +48 -38
  757. package/components/Illustrations/DoctorSmall.js.map +1 -1
  758. package/components/Illustrations/FacialRecognitionFingerprint.js +6 -6
  759. package/components/Illustrations/FacialRecognitionFingerprint.js.map +1 -1
  760. package/components/Illustrations/FacialRecognitionFingerprintMedium.js +297 -253
  761. package/components/Illustrations/FacialRecognitionFingerprintMedium.js.map +1 -1
  762. package/components/Illustrations/HealthcarePersonnel.js +7 -7
  763. package/components/Illustrations/HealthcarePersonnel.js.map +1 -1
  764. package/components/Illustrations/HealthcarePersonnelMedium.js +202 -171
  765. package/components/Illustrations/HealthcarePersonnelMedium.js.map +1 -1
  766. package/components/Illustrations/HealthcarePersonnelSmall.js +190 -165
  767. package/components/Illustrations/HealthcarePersonnelSmall.js.map +1 -1
  768. package/components/Input/index.js +3 -3
  769. package/components/Label/index.js +7 -8
  770. package/components/Label/index.js.map +1 -1
  771. package/components/LazyIcon/index.js +2 -2
  772. package/components/LazyIllustration/index.js +5 -5
  773. package/components/LinkList/index.js +3 -3
  774. package/components/List/index.js +2 -2
  775. package/components/ListHeader/ListHeaderText/index.js +1 -1
  776. package/components/ListHeader/index.js +5 -5
  777. package/components/Loader/index.js +67 -4
  778. package/components/Loader/index.js.map +1 -1
  779. package/components/Logo/index.js +41 -2
  780. package/components/Logo/index.js.map +1 -1
  781. package/components/Modal/index.js +162 -5
  782. package/components/Modal/index.js.map +1 -1
  783. package/components/NotificationPanel/index.js +98 -2
  784. package/components/NotificationPanel/index.js.map +1 -1
  785. package/components/Panel/index.js +4 -4
  786. package/components/PanelList/index.js +15 -2
  787. package/components/PanelList/index.js.map +1 -1
  788. package/components/PopMenu/index.js +92 -6
  789. package/components/PopMenu/index.js.map +1 -1
  790. package/components/PopOver/index.js +4 -4
  791. package/components/Portal/index.js +3 -3
  792. package/components/Progressbar/index.js +92 -6
  793. package/components/Progressbar/index.js.map +1 -1
  794. package/components/Progressbar/styles.module.scss +5 -0
  795. package/components/Progressbar/styles.module.scss.d.ts +1 -0
  796. package/components/PromoPanel/index.js +57 -2
  797. package/components/PromoPanel/index.js.map +1 -1
  798. package/components/RadioButton/index.js +5 -5
  799. package/components/Select/index.js +1 -1
  800. package/components/ServiceMessage/index.js +110 -2
  801. package/components/ServiceMessage/index.js.map +1 -1
  802. package/components/SharingStatus/index.js +16 -2
  803. package/components/SharingStatus/index.js.map +1 -1
  804. package/components/Slider/index.js +189 -3
  805. package/components/Slider/index.js.map +1 -1
  806. package/components/Spacer/index.js +2 -2
  807. package/components/StatusDot/index.js +4 -4
  808. package/components/Step/index.js +31 -2
  809. package/components/Step/index.js.map +1 -1
  810. package/components/StepButtons/index.js +1 -1
  811. package/components/Stepper/index.js +49 -2
  812. package/components/Stepper/index.js.map +1 -1
  813. package/components/Table/TableBody/index.js +3 -3
  814. package/components/Table/TableCell/index.js +5 -5
  815. package/components/Table/TableExpandedRow/index.js +1 -1
  816. package/components/Table/TableExpanderCell/index.js +3 -3
  817. package/components/Table/TableHead/index.js +4 -4
  818. package/components/Table/TableHeadCell/index.js +3 -3
  819. package/components/Table/TableRow/index.js +3 -3
  820. package/components/Table/index.js +22 -22
  821. package/components/Tabs/TabList/index.js +2 -2
  822. package/components/Tabs/TabPanel/index.js +1 -1
  823. package/components/Tabs/index.js +94 -2
  824. package/components/Tabs/index.js.map +1 -1
  825. package/components/Tag/index.js +22 -5
  826. package/components/Tag/index.js.map +1 -1
  827. package/components/TagList/index.js +6 -2
  828. package/components/TagList/index.js.map +1 -1
  829. package/components/Textarea/index.js +1 -1
  830. package/components/Tile/index.js +70 -3
  831. package/components/Tile/index.js.map +1 -1
  832. package/components/Title/index.js +5 -5
  833. package/components/Toggle/index.js +2653 -5
  834. package/components/Toggle/index.js.map +1 -1
  835. package/components/Tooltip/TooltipWord/index.js +1 -1
  836. package/components/Tooltip/index.js +54 -5
  837. package/components/Tooltip/index.js.map +1 -1
  838. package/components/Trigger/index.js +2 -2
  839. package/components/Validation/index.js +47 -3
  840. package/components/Validation/index.js.map +1 -1
  841. package/{components → docs}/ButtonWithModal/ButtonWithModal.d.ts +1 -1
  842. package/{components → docs}/HelpBubbleExample/HelpBubbleExample.d.ts +1 -1
  843. package/{components → docs}/TooltipExample/TooltipExample.d.ts +1 -1
  844. package/hoc/withBreakpoint/withBreakpoint.js +9 -8
  845. package/hoc/withBreakpoint/withBreakpoint.js.map +1 -1
  846. package/hooks/useIcons.js +9 -9
  847. package/hooks/useUuid.js +3 -3
  848. package/index.js +3 -3
  849. package/package.json +1 -1
  850. package/utils/component.js +2 -2
  851. package/utils/uuid.js +4 -7
  852. package/utils/uuid.js.map +1 -1
  853. package/{components/Illustration/utils.js → utils.js} +1 -1
  854. package/utils.js.map +1 -0
  855. package/uuid.js +14 -0
  856. package/uuid.js.map +1 -0
  857. package/_virtual/_cloneBuffer.js +0 -5
  858. package/_virtual/_cloneBuffer.js.map +0 -1
  859. package/_virtual/_commonjs-dynamic-modules.js +0 -7
  860. package/_virtual/_commonjs-dynamic-modules.js.map +0 -1
  861. package/_virtual/_commonjsHelpers.js +0 -9
  862. package/_virtual/_commonjsHelpers.js.map +0 -1
  863. package/_virtual/_nodeUtil.js +0 -5
  864. package/_virtual/_nodeUtil.js.map +0 -1
  865. package/_virtual/dynamic-import-helper.js +0 -17
  866. package/_virtual/dynamic-import-helper.js.map +0 -1
  867. package/_virtual/isBuffer.js +0 -5
  868. package/_virtual/isBuffer.js.map +0 -1
  869. package/_virtual/memoizerific.js +0 -5
  870. package/_virtual/memoizerific.js.map +0 -1
  871. package/components/AnchorLink/AnchorLink.js +0 -53
  872. package/components/AnchorLink/AnchorLink.js.map +0 -1
  873. package/components/Avatar/Avatar.js +0 -33
  874. package/components/Avatar/Avatar.js.map +0 -1
  875. package/components/Badge/Badge.js +0 -30
  876. package/components/Badge/Badge.js.map +0 -1
  877. package/components/Badge/NotificationBadge.js +0 -68
  878. package/components/Badge/NotificationBadge.js.map +0 -1
  879. package/components/Button/Button.js +0 -118
  880. package/components/Button/Button.js.map +0 -1
  881. package/components/ButtonWithModal/ButtonWithModal.js +0 -11
  882. package/components/ButtonWithModal/ButtonWithModal.js.map +0 -1
  883. package/components/ButtonWithModal/index.js +0 -5
  884. package/components/ButtonWithModal/index.js.map +0 -1
  885. package/components/Checkbox/Checkbox.js +0 -110
  886. package/components/Checkbox/Checkbox.js.map +0 -1
  887. package/components/Chip/Chip.js +0 -30
  888. package/components/Chip/Chip.js.map +0 -1
  889. package/components/Close/Close.js +0 -30
  890. package/components/Close/Close.js.map +0 -1
  891. package/components/DictionaryTrigger/DictionaryTrigger.js +0 -27
  892. package/components/DictionaryTrigger/DictionaryTrigger.js.map +0 -1
  893. package/components/Dropdown/Dropdown.js +0 -117
  894. package/components/Dropdown/Dropdown.js.map +0 -1
  895. package/components/Duolist/Duolist.js +0 -63
  896. package/components/Duolist/Duolist.js.map +0 -1
  897. package/components/EmptyState/EmptyState.js +0 -10
  898. package/components/EmptyState/EmptyState.js.map +0 -1
  899. package/components/EmptyState/NobodyHome.js +0 -155
  900. package/components/EmptyState/NobodyHome.js.map +0 -1
  901. package/components/ErrorWrapper/ErrorWrapper.js +0 -12
  902. package/components/ErrorWrapper/ErrorWrapper.js.map +0 -1
  903. package/components/Expander/Expander.js +0 -101
  904. package/components/Expander/Expander.js.map +0 -1
  905. package/components/ExpanderHierarchy/Expander.js +0 -31
  906. package/components/ExpanderHierarchy/Expander.js.map +0 -1
  907. package/components/ExpanderHierarchy/ExpanderButton.js +0 -46
  908. package/components/ExpanderHierarchy/ExpanderButton.js.map +0 -1
  909. package/components/ExpanderHierarchy/ExpanderHierarchy.js +0 -28
  910. package/components/ExpanderHierarchy/ExpanderHierarchy.js.map +0 -1
  911. package/components/ExpanderHierarchy/utils.js +0 -20
  912. package/components/ExpanderHierarchy/utils.js.map +0 -1
  913. package/components/ExpanderList/ExpanderList.js +0 -139
  914. package/components/ExpanderList/ExpanderList.js.map +0 -1
  915. package/components/EyebrowHeader/EyebrowHeader.js +0 -12
  916. package/components/EyebrowHeader/EyebrowHeader.js.map +0 -1
  917. package/components/FormExample/FormExample.js +0 -161
  918. package/components/FormExample/FormExample.js.map +0 -1
  919. package/components/FormExample/index.js +0 -8
  920. package/components/FormExample/index.js.map +0 -1
  921. package/components/FormExample/styles.module.scss +0 -33
  922. package/components/FormExample/styles.module.scss.d.ts +0 -12
  923. package/components/FormGroup/FormGroup.js +0 -101
  924. package/components/FormGroup/FormGroup.js.map +0 -1
  925. package/components/FormLayout/FormLayout.js +0 -38
  926. package/components/FormLayout/FormLayout.js.map +0 -1
  927. package/components/GridExample/GridExample.js +0 -8
  928. package/components/GridExample/GridExample.js.map +0 -1
  929. package/components/GridExample/index.js +0 -6
  930. package/components/GridExample/index.js.map +0 -1
  931. package/components/HelpBubble/HelpBubble.js +0 -61
  932. package/components/HelpBubble/HelpBubble.js.map +0 -1
  933. package/components/HelpBubbleExample/HelpBubbleExample.js +0 -20
  934. package/components/HelpBubbleExample/HelpBubbleExample.js.map +0 -1
  935. package/components/HelpBubbleExample/index.js +0 -5
  936. package/components/HelpBubbleExample/index.js.map +0 -1
  937. package/components/HelpPanel/HelpPanel.js +0 -24
  938. package/components/HelpPanel/HelpPanel.js.map +0 -1
  939. package/components/HelpQuestion/HelpQuestion.js +0 -31
  940. package/components/HelpQuestion/HelpQuestion.js.map +0 -1
  941. package/components/HighlightPanel/HighlightPanel.js +0 -61
  942. package/components/HighlightPanel/HighlightPanel.js.map +0 -1
  943. package/components/HorizontalScroll/HorizontalScroll.js +0 -47
  944. package/components/HorizontalScroll/HorizontalScroll.js.map +0 -1
  945. package/components/Icon/Icon.js +0 -60
  946. package/components/Icon/Icon.js.map +0 -1
  947. package/components/Illustration/Illustration.js +0 -41
  948. package/components/Illustration/Illustration.js.map +0 -1
  949. package/components/Illustration/utils.js.map +0 -1
  950. package/components/Input/Input.js +0 -129
  951. package/components/Input/Input.js.map +0 -1
  952. package/components/Label/Label.js +0 -79
  953. package/components/Label/Label.js.map +0 -1
  954. package/components/Label/SubLabel.js +0 -19
  955. package/components/Label/SubLabel.js.map +0 -1
  956. package/components/LazyIcon/ErrorBoundary.js +0 -21
  957. package/components/LazyIcon/ErrorBoundary.js.map +0 -1
  958. package/components/LazyIcon/LazyIcon.js +0 -31
  959. package/components/LazyIcon/LazyIcon.js.map +0 -1
  960. package/components/LazyIllustration/LazyIllustration.js +0 -35
  961. package/components/LazyIllustration/LazyIllustration.js.map +0 -1
  962. package/components/LinkList/LinkList.js +0 -60
  963. package/components/LinkList/LinkList.js.map +0 -1
  964. package/components/List/List.js +0 -13
  965. package/components/List/List.js.map +0 -1
  966. package/components/ListHeader/ListHeader.js +0 -84
  967. package/components/ListHeader/ListHeader.js.map +0 -1
  968. package/components/ListHeader/ListHeaderText/ListHeaderText.js +0 -30
  969. package/components/ListHeader/ListHeaderText/ListHeaderText.js.map +0 -1
  970. package/components/Loader/Loader.js +0 -67
  971. package/components/Loader/Loader.js.map +0 -1
  972. package/components/Logo/Logo.js +0 -40
  973. package/components/Logo/Logo.js.map +0 -1
  974. package/components/MaxCharacters/MaxCharacters.js +0 -15
  975. package/components/MaxCharacters/MaxCharacters.js.map +0 -1
  976. package/components/Modal/Modal.js +0 -145
  977. package/components/Modal/Modal.js.map +0 -1
  978. package/components/NotificationPanel/NotificationPanel.js +0 -94
  979. package/components/NotificationPanel/NotificationPanel.js.map +0 -1
  980. package/components/Panel/Panel.js +0 -191
  981. package/components/Panel/Panel.js.map +0 -1
  982. package/components/PanelList/PanelList.js +0 -17
  983. package/components/PanelList/PanelList.js.map +0 -1
  984. package/components/PopMenu/PopMenu.js +0 -89
  985. package/components/PopMenu/PopMenu.js.map +0 -1
  986. package/components/PopOver/PopOver.js +0 -56
  987. package/components/PopOver/PopOver.js.map +0 -1
  988. package/components/PopOver/utils.js +0 -33
  989. package/components/PopOver/utils.js.map +0 -1
  990. package/components/Progressbar/Progressbar.js +0 -89
  991. package/components/Progressbar/Progressbar.js.map +0 -1
  992. package/components/PromoPanel/PromoPanel.js +0 -52
  993. package/components/PromoPanel/PromoPanel.js.map +0 -1
  994. package/components/RadioButton/RadioButton.js +0 -104
  995. package/components/RadioButton/RadioButton.js.map +0 -1
  996. package/components/Select/Select.js +0 -70
  997. package/components/Select/Select.js.map +0 -1
  998. package/components/ServiceMessage/ServiceMessage.js +0 -92
  999. package/components/ServiceMessage/ServiceMessage.js.map +0 -1
  1000. package/components/SharingStatus/SharingStatus.js +0 -16
  1001. package/components/SharingStatus/SharingStatus.js.map +0 -1
  1002. package/components/Slider/Slider.js +0 -178
  1003. package/components/Slider/Slider.js.map +0 -1
  1004. package/components/Spacer/Spacer.js.map +0 -1
  1005. package/components/StatusDot/StatusDot.js +0 -29
  1006. package/components/StatusDot/StatusDot.js.map +0 -1
  1007. package/components/Step/Step.js +0 -30
  1008. package/components/Step/Step.js.map +0 -1
  1009. package/components/StepButtons/StepButtons.js +0 -21
  1010. package/components/StepButtons/StepButtons.js.map +0 -1
  1011. package/components/Stepper/Dot.js +0 -16
  1012. package/components/Stepper/Dot.js.map +0 -1
  1013. package/components/Stepper/DotList.js +0 -7
  1014. package/components/Stepper/DotList.js.map +0 -1
  1015. package/components/Stepper/Stepper.js +0 -35
  1016. package/components/Stepper/Stepper.js.map +0 -1
  1017. package/components/Stepper/utils.js +0 -16
  1018. package/components/Stepper/utils.js.map +0 -1
  1019. package/components/Table/Table.js +0 -76
  1020. package/components/Table/Table.js.map +0 -1
  1021. package/components/Table/TableBody/TableBody.js +0 -13
  1022. package/components/Table/TableBody/TableBody.js.map +0 -1
  1023. package/components/Table/TableCell/TableCell.js.map +0 -1
  1024. package/components/Table/TableExpandedRow/TableExpandedRow.js +0 -31
  1025. package/components/Table/TableExpandedRow/TableExpandedRow.js.map +0 -1
  1026. package/components/Table/TableExpanderCell/TableExpanderCell.js +0 -35
  1027. package/components/Table/TableExpanderCell/TableExpanderCell.js.map +0 -1
  1028. package/components/Table/TableExpanderCell/TableExpanderCellMobile.js +0 -25
  1029. package/components/Table/TableExpanderCell/TableExpanderCellMobile.js.map +0 -1
  1030. package/components/Table/TableHead/TableHead.js +0 -24
  1031. package/components/Table/TableHead/TableHead.js.map +0 -1
  1032. package/components/Table/TableHeadCell/TableHeadCell.js +0 -42
  1033. package/components/Table/TableHeadCell/TableHeadCell.js.map +0 -1
  1034. package/components/Table/TableRow/TableRow.js +0 -40
  1035. package/components/Table/TableRow/TableRow.js.map +0 -1
  1036. package/components/Table/utils.js +0 -32
  1037. package/components/Table/utils.js.map +0 -1
  1038. package/components/Tabs/Tab.js +0 -6
  1039. package/components/Tabs/Tab.js.map +0 -1
  1040. package/components/Tabs/TabList/TabItem.js +0 -45
  1041. package/components/Tabs/TabList/TabItem.js.map +0 -1
  1042. package/components/Tabs/TabList/TabList.js +0 -28
  1043. package/components/Tabs/TabList/TabList.js.map +0 -1
  1044. package/components/Tabs/TabPanel/TabPanel.js +0 -17
  1045. package/components/Tabs/TabPanel/TabPanel.js.map +0 -1
  1046. package/components/Tabs/Tabs.js +0 -92
  1047. package/components/Tabs/Tabs.js.map +0 -1
  1048. package/components/Tag/Tag.js +0 -22
  1049. package/components/Tag/Tag.js.map +0 -1
  1050. package/components/TagList/TagList.js +0 -8
  1051. package/components/TagList/TagList.js.map +0 -1
  1052. package/components/Textarea/Textarea.js +0 -105
  1053. package/components/Textarea/Textarea.js.map +0 -1
  1054. package/components/Tile/Tile.js +0 -67
  1055. package/components/Tile/Tile.js.map +0 -1
  1056. package/components/Title/Title.js +0 -25
  1057. package/components/Title/Title.js.map +0 -1
  1058. package/components/Toggle/Toggle.js +0 -92
  1059. package/components/Toggle/Toggle.js.map +0 -1
  1060. package/components/Tooltip/Tooltip.js +0 -55
  1061. package/components/Tooltip/Tooltip.js.map +0 -1
  1062. package/components/Tooltip/TooltipWord/TooltipWord.js +0 -27
  1063. package/components/Tooltip/TooltipWord/TooltipWord.js.map +0 -1
  1064. package/components/TooltipExample/TooltipExample.js +0 -8
  1065. package/components/TooltipExample/TooltipExample.js.map +0 -1
  1066. package/components/TooltipExample/index.js +0 -5
  1067. package/components/TooltipExample/index.js.map +0 -1
  1068. package/components/Trigger/HelpSign.js +0 -7
  1069. package/components/Trigger/HelpSign.js.map +0 -1
  1070. package/components/Trigger/Trigger.js +0 -73
  1071. package/components/Trigger/Trigger.js.map +0 -1
  1072. package/components/Validation/ErrorList.js +0 -8
  1073. package/components/Validation/ErrorList.js.map +0 -1
  1074. package/components/Validation/ErrorListItem.js +0 -12
  1075. package/components/Validation/ErrorListItem.js.map +0 -1
  1076. package/components/Validation/Validation.js +0 -18
  1077. package/components/Validation/Validation.js.map +0 -1
  1078. package/components/Validation/ValidationSummary.js +0 -25
  1079. package/components/Validation/ValidationSummary.js.map +0 -1
  1080. package/docs/index.d.ts +0 -8
  1081. package/docs/index.js +0 -14
  1082. package/docs/index.js.map +0 -1
  1083. /package/{components → docs}/ButtonWithModal/index.d.ts +0 -0
  1084. /package/{components → docs}/FormExample/FormExample.d.ts +0 -0
  1085. /package/{components → docs}/FormExample/index.d.ts +0 -0
  1086. /package/{components → docs}/GridExample/GridExample.d.ts +0 -0
  1087. /package/{components → docs}/GridExample/index.d.ts +0 -0
  1088. /package/{components → docs}/HelpBubbleExample/index.d.ts +0 -0
  1089. /package/{components → docs}/TooltipExample/index.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- import r from "./TooltipWord.js";
1
+ import { T as r } from "../../../TooltipWord.js";
2
2
  export {
3
3
  r as default
4
4
  };
@@ -1,8 +1,57 @@
1
- import { Tooltip as r } from "./Tooltip.js";
2
- import { TooltipOpenProvider as e } from "./Tooltip.js";
1
+ import { jsxs as m, Fragment as w, jsx as c } from "react/jsx-runtime";
2
+ import O, { useRef as y, useContext as C, useEffect as u, useState as D } from "react";
3
+ import { T as b } from "../../TooltipWord.js";
4
+ import { useDelayedState as B } from "../../hooks/useDelayedState.js";
5
+ import { useUuid as E } from "../../hooks/useUuid.js";
6
+ import { H as v } from "../../HelpBubble.js";
7
+ const x = 200, g = ({ children: p, description: s, testId: i }) => {
8
+ const t = E(), a = y(null), { currentTooltip: n, setCurrentTooltip: r } = C(h), [{ showTooltip: l, keepOpen: T }, k, o] = B(
9
+ { showTooltip: !1, keepOpen: !1 },
10
+ x
11
+ );
12
+ u(() => {
13
+ r && r(l ? t : void 0);
14
+ }, [l]), u(() => {
15
+ n !== t && typeof n < "u" && o((e) => ({ showTooltip: !1, keepOpen: e.keepOpen }));
16
+ }, [n]);
17
+ const d = () => {
18
+ l || o({ showTooltip: !1, keepOpen: !1 });
19
+ };
20
+ return u(() => (document.addEventListener("mouseup", d), () => {
21
+ document.removeEventListener("mouseup", d);
22
+ }), []), /* @__PURE__ */ m(w, { children: [
23
+ /* @__PURE__ */ c(
24
+ b,
25
+ {
26
+ ref: a,
27
+ onClick: () => {
28
+ o((e) => ({ showTooltip: !e.showTooltip, keepOpen: !e.keepOpen }));
29
+ },
30
+ onFocus: () => {
31
+ n || k((e) => ({ showTooltip: !0, keepOpen: e.keepOpen }));
32
+ },
33
+ onBlur: () => {
34
+ o((e) => ({ showTooltip: !1, keepOpen: e.keepOpen }));
35
+ },
36
+ onKeyDown: (e) => {
37
+ e.key === "Enter" && o((f) => ({ showTooltip: !f.showTooltip, keepOpen: !f.keepOpen })), e.key === "Escape" && o({ showTooltip: !1, keepOpen: !1 });
38
+ },
39
+ ariaDescribedById: t,
40
+ testId: i,
41
+ children: p
42
+ }
43
+ ),
44
+ /* @__PURE__ */ c(v, { helpBubbleId: t, controllerRef: a, role: "tooltip", showBubble: l || T, children: s })
45
+ ] });
46
+ }, h = O.createContext({
47
+ currentTooltip: void 0
48
+ }), A = ({ children: p }) => {
49
+ const [s, i] = D();
50
+ return /* @__PURE__ */ c(h.Provider, { value: { currentTooltip: s, setCurrentTooltip: i }, children: p });
51
+ };
3
52
  export {
4
- r as Tooltip,
5
- e as TooltipOpenProvider,
6
- r as default
53
+ g as Tooltip,
54
+ A as TooltipOpenProvider,
55
+ g as default
7
56
  };
8
57
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/Tooltip/Tooltip.tsx"],"sourcesContent":["import React, { useContext, useState, useEffect, useRef } from 'react';\n\nimport TooltipWord from './TooltipWord';\nimport { useDelayedState } from '../../hooks/useDelayedState';\nimport { useUuid } from '../../hooks/useUuid';\nimport HelpBubble from '../HelpBubble';\n\nconst HOVER_DELAY_MS = 200;\n\nexport interface TooltipProps {\n /** Ordet som skal ha en tilhørende tooltip */\n children: string;\n /** Teksten som skal vises i tooltip */\n description: React.ReactNode;\n /** Valgfri test-id */\n testId?: string;\n}\n\nexport const Tooltip: React.FC<TooltipProps> = ({ children, description, testId }) => {\n const helpBubbleId = useUuid();\n const wordRef = useRef<HTMLButtonElement>(null);\n const { currentTooltip, setCurrentTooltip } = useContext(TooltipOpenContext);\n const [{ showTooltip, keepOpen }, setShowTooltipDelayed, setShowTooltip] = useDelayedState(\n { showTooltip: false, keepOpen: false },\n HOVER_DELAY_MS\n );\n\n useEffect(() => {\n if (!setCurrentTooltip) {\n return;\n }\n if (showTooltip) {\n setCurrentTooltip(helpBubbleId);\n } else {\n setCurrentTooltip(undefined);\n }\n }, [showTooltip]);\n\n useEffect(() => {\n if (currentTooltip !== helpBubbleId && typeof currentTooltip !== 'undefined') {\n setShowTooltip(prevState => ({ showTooltip: false, keepOpen: prevState.keepOpen }));\n }\n }, [currentTooltip]);\n\n const handleDocumentClick = (): void => {\n if (!showTooltip) {\n setShowTooltip({ showTooltip: false, keepOpen: false });\n }\n };\n\n useEffect(() => {\n document.addEventListener('mouseup', handleDocumentClick);\n return (): void => {\n document.removeEventListener('mouseup', handleDocumentClick);\n };\n }, []);\n\n const handleTooltipClick = (): void => {\n setShowTooltip(prevState => ({ showTooltip: !prevState.showTooltip, keepOpen: !prevState.keepOpen }));\n };\n\n const handleFocus = (): void => {\n if (!currentTooltip) {\n setShowTooltipDelayed(prevState => ({ showTooltip: true, keepOpen: prevState.keepOpen }));\n }\n };\n\n const handleBlur = (): void => {\n setShowTooltip(prevState => ({ showTooltip: false, keepOpen: prevState.keepOpen }));\n };\n\n const handleKeyDown = (e: React.KeyboardEvent<HTMLSpanElement>): void => {\n if (e.key === 'Enter') {\n setShowTooltip(prevState => ({ showTooltip: !prevState.showTooltip, keepOpen: !prevState.keepOpen }));\n }\n if (e.key === 'Escape') {\n setShowTooltip({ showTooltip: false, keepOpen: false });\n }\n };\n\n return (\n <>\n <TooltipWord\n ref={wordRef}\n onClick={handleTooltipClick}\n onFocus={handleFocus}\n onBlur={handleBlur}\n onKeyDown={handleKeyDown}\n ariaDescribedById={helpBubbleId}\n testId={testId}\n >\n {children}\n </TooltipWord>\n <HelpBubble helpBubbleId={helpBubbleId} controllerRef={wordRef} role=\"tooltip\" showBubble={showTooltip || keepOpen}>\n {description}\n </HelpBubble>\n </>\n );\n};\n\nexport type TooltipContext = {\n currentTooltip?: string;\n setCurrentTooltip?: (id?: string) => void;\n};\n\nconst TooltipOpenContext = React.createContext<TooltipContext>({\n currentTooltip: undefined,\n});\n\ninterface TooltipOpenProviderProps {\n children?: React.ReactNode;\n}\n\nexport const TooltipOpenProvider: React.FC<TooltipOpenProviderProps> = ({ children }) => {\n const [currentTooltip, setCurrentTooltip] = useState<string>();\n\n return <TooltipOpenContext.Provider value={{ currentTooltip, setCurrentTooltip }}>{children}</TooltipOpenContext.Provider>;\n};\n\nexport default Tooltip;\n"],"names":["HOVER_DELAY_MS","Tooltip","children","description","testId","helpBubbleId","useUuid","wordRef","useRef","currentTooltip","setCurrentTooltip","useContext","TooltipOpenContext","showTooltip","keepOpen","setShowTooltipDelayed","setShowTooltip","useDelayedState","useEffect","prevState","handleDocumentClick","jsxs","Fragment","jsx","TooltipWord","HelpBubble","React","TooltipOpenProvider","useState"],"mappings":";;;;;;AAOA,MAAMA,IAAiB,KAWVC,IAAkC,CAAC,EAAE,UAAAC,GAAU,aAAAC,GAAa,QAAAC,QAAa;AACpF,QAAMC,IAAeC,KACfC,IAAUC,EAA0B,IAAI,GACxC,EAAE,gBAAAC,GAAgB,mBAAAC,EAAkB,IAAIC,EAAWC,CAAkB,GACrE,CAAC,EAAE,aAAAC,GAAa,UAAAC,EAAY,GAAAC,GAAuBC,CAAc,IAAIC;AAAA,IACzE,EAAE,aAAa,IAAO,UAAU,GAAM;AAAA,IACtCjB;AAAA,EAAA;AAGF,EAAAkB,EAAU,MAAM;AACd,IAAKR,KAIHA,EADEG,IACgBR,IAEA,MAFY;AAAA,EAGhC,GACC,CAACQ,CAAW,CAAC,GAEhBK,EAAU,MAAM;AACd,IAAIT,MAAmBJ,KAAgB,OAAOI,IAAmB,OAC/DO,EAAe,QAAc,EAAE,aAAa,IAAO,UAAUG,EAAU,SAAW,EAAA;AAAA,EACpF,GACC,CAACV,CAAc,CAAC;AAEnB,QAAMW,IAAsB,MAAY;AACtC,IAAKP,KACHG,EAAe,EAAE,aAAa,IAAO,UAAU,GAAO,CAAA;AAAA,EACxD;AAGF,SAAAE,EAAU,OACC,SAAA,iBAAiB,WAAWE,CAAmB,GACjD,MAAY;AACR,aAAA,oBAAoB,WAAWA,CAAmB;AAAA,EAAA,IAE5D,CAAE,CAAA,GA2BD,gBAAAC,EAAAC,GAAA,EAAA,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,KAAKjB;AAAA,QACL,SA3BqB,MAAY;AACtB,UAAAS,EAAA,CAAAG,OAAc,EAAE,aAAa,CAACA,EAAU,aAAa,UAAU,CAACA,EAAU,SAAA,EAAW;AAAA,QAAA;AAAA,QA2BhG,SAxBc,MAAY;AAC9B,UAAKV,KACHM,EAAsB,QAAc,EAAE,aAAa,IAAM,UAAUI,EAAU,SAAW,EAAA;AAAA,QAC1F;AAAA,QAsBI,QAnBa,MAAY;AAC7B,UAAAH,EAAe,QAAc,EAAE,aAAa,IAAO,UAAUG,EAAU,SAAW,EAAA;AAAA,QAAA;AAAA,QAmB9E,WAhBgB,CAAC,MAAkD;AACnE,UAAA,EAAE,QAAQ,WACGH,EAAA,CAAAG,OAAc,EAAE,aAAa,CAACA,EAAU,aAAa,UAAU,CAACA,EAAU,SAAA,EAAW,GAElG,EAAE,QAAQ,YACZH,EAAe,EAAE,aAAa,IAAO,UAAU,GAAO,CAAA;AAAA,QACxD;AAAA,QAWI,mBAAmBX;AAAA,QACnB,QAAAD;AAAA,QAEC,UAAAF;AAAA,MAAA;AAAA,IACH;AAAA,IACA,gBAAAqB,EAACE,GAAW,EAAA,cAAApB,GAA4B,eAAeE,GAAS,MAAK,WAAU,YAAYM,KAAeC,GACvG,UACHX,EAAA,CAAA;AAAA,EACF,EAAA,CAAA;AAEJ,GAOMS,IAAqBc,EAAM,cAA8B;AAAA,EAC7D,gBAAgB;AAClB,CAAC,GAMYC,IAA0D,CAAC,EAAE,UAAAzB,QAAe;AACvF,QAAM,CAACO,GAAgBC,CAAiB,IAAIkB,EAAiB;AAEtD,SAAA,gBAAAL,EAACX,EAAmB,UAAnB,EAA4B,OAAO,EAAE,gBAAAH,GAAgB,mBAAAC,EAAkB,GAAI,UAAAR,EAAS,CAAA;AAC9F;"}
@@ -1,5 +1,5 @@
1
- import e from "./Trigger.js";
1
+ import { T as a } from "../../Trigger.js";
2
2
  export {
3
- e as default
3
+ a as default
4
4
  };
5
5
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,50 @@
1
- import { Validation as o } from "./Validation.js";
1
+ import { jsx as e, Fragment as m, jsxs as l } from "react/jsx-runtime";
2
+ import o from "react";
3
+ import c from "classnames";
4
+ import { A as f } from "../../AnchorLink.js";
5
+ import { L as d } from "../../List.js";
6
+ import { useUuid as u } from "../../hooks/useUuid.js";
7
+ import { T as h } from "../../Title.js";
8
+ import n from "./styles.module.scss";
9
+ import { AnalyticsId as y } from "../../constants.js";
10
+ import { isComponent as T } from "../../utils/component.js";
11
+ import { F as g } from "../../FormGroup.js";
12
+ const C = (r) => {
13
+ const t = (a, i) => {
14
+ a == null || a.preventDefault(), i != null && i.focus && (i == null || i.focus());
15
+ };
16
+ return r.error.ref ? /* @__PURE__ */ e(f, { href: `#${r.name}`, onClick: (a) => t(a, r.error.ref), children: r.error.message }) : /* @__PURE__ */ e(m, { children: r.error.message });
17
+ }, v = (r) => /* @__PURE__ */ e(d, { children: Object.entries(r.errors).map(([t, a]) => /* @__PURE__ */ e(d.Item, { children: /* @__PURE__ */ e(C, { name: t, error: a }) }, t)) }), N = (r) => {
18
+ const { errorTitleHtmlMarkup: t = "h2" } = r, a = u(), i = !!r.errors && Object.entries(r.errors).length > 0, s = c(n.validation__summary, i && n["validation__summary--visible"]);
19
+ return /* @__PURE__ */ l(
20
+ "div",
21
+ {
22
+ role: "alert",
23
+ "aria-live": "polite",
24
+ "aria-relevant": "all",
25
+ "aria-labelledby": i && r.errorTitle ? a : void 0,
26
+ className: s,
27
+ children: [
28
+ i && /* @__PURE__ */ l(m, { children: [
29
+ r.errorTitle && /* @__PURE__ */ e(h, { appearance: "title4", id: a, htmlMarkup: t, margin: { marginTop: 0, marginBottom: 1 }, children: r.errorTitle }),
30
+ /* @__PURE__ */ e(v, { errors: r.errors })
31
+ ] }),
32
+ r.children
33
+ ]
34
+ }
35
+ );
36
+ }, _ = o.forwardRef((r, t) => {
37
+ const a = (i) => T(i, g) ? o.cloneElement(i, {
38
+ errorWrapperClassName: n["validation__error-wrapper"]
39
+ }) : o.isValidElement(i) && i.type === o.Fragment ? o.Children.map(i.props.children, (s) => a(s)) : i;
40
+ return /* @__PURE__ */ l(m, { children: [
41
+ /* @__PURE__ */ e("div", { "data-testid": r.testId, "data-analyticsid": y.Validation, className: r.className, ref: t, children: o.Children.map(r.children, (i) => a(i)) }),
42
+ /* @__PURE__ */ e(N, { errorTitle: r.errorTitle, errors: r.errors })
43
+ ] });
44
+ });
45
+ _.displayName = "Validation";
2
46
  export {
3
- o as Validation,
4
- o as default
47
+ _ as Validation,
48
+ _ as default
5
49
  };
6
50
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/Validation/ErrorListItem.tsx","../../../src/components/Validation/ErrorList.tsx","../../../src/components/Validation/ValidationSummary.tsx","../../../src/components/Validation/Validation.tsx"],"sourcesContent":["import React from 'react';\n\nimport { ErrorDetails, FocusableElement } from './types';\nimport AnchorLink, { AnchorLinkOnClickEvent } from '../AnchorLink';\n\ninterface ErrorElementProps {\n name: string;\n error: ErrorDetails;\n}\n\nconst ErrorListItem: React.FC<ErrorElementProps> = props => {\n const handleClick = (event?: AnchorLinkOnClickEvent, element?: FocusableElement): void => {\n event?.preventDefault();\n element?.focus && element?.focus();\n };\n\n if (props.error.ref) {\n return (\n <AnchorLink href={`#${props.name}`} onClick={(e): void => handleClick(e, props.error.ref)}>\n {props.error.message}\n </AnchorLink>\n );\n }\n\n return <>{props.error.message}</>;\n};\n\nexport default ErrorListItem;\n","import React from 'react';\n\nimport ErrorListItem from './ErrorListItem';\nimport { ValidationErrors } from './types';\nimport List from '../List';\n\ninterface ErrorListProps {\n errors: ValidationErrors;\n}\n\nconst ErrorList: React.FC<ErrorListProps> = props => (\n <List>\n {Object.entries(props.errors).map(([name, error]) => (\n <List.Item key={name}>\n <ErrorListItem name={name} error={error} />\n </List.Item>\n ))}\n </List>\n);\n\nexport default ErrorList;\n","import React from 'react';\n\nimport classNames from 'classnames';\n\nimport ErrorList from './ErrorList';\nimport { ValidationErrors } from './types';\nimport { useUuid } from '../../hooks/useUuid';\nimport Title, { TitleTags } from '../Title';\n\nimport styles from './styles.module.scss';\n\ninterface ValidationSummaryProps {\n /** Error summary title */\n errorTitle?: string;\n /** Error list */\n errors?: ValidationErrors;\n /** Markup props for error summary title. Default: h2 */\n errorTitleHtmlMarkup?: TitleTags;\n /** Will be shown last */\n children?: React.ReactNode;\n}\n\nconst ValidationSummary: React.FC<ValidationSummaryProps> = props => {\n const { errorTitleHtmlMarkup = 'h2' } = props;\n const titleId = useUuid();\n\n const hasErrors = !!props.errors && Object.entries(props.errors).length > 0;\n\n const summaryClasses = classNames(styles['validation__summary'], hasErrors && styles['validation__summary--visible']);\n\n return (\n <div\n role={'alert'}\n aria-live={'polite'}\n aria-relevant={'all'}\n aria-labelledby={hasErrors && props.errorTitle ? titleId : undefined}\n className={summaryClasses}\n >\n {hasErrors && (\n <>\n {props.errorTitle && (\n <Title appearance=\"title4\" id={titleId} htmlMarkup={errorTitleHtmlMarkup} margin={{ marginTop: 0, marginBottom: 1 }}>\n {props.errorTitle}\n </Title>\n )}\n <ErrorList errors={props.errors!} />\n </>\n )}\n {props.children}\n </div>\n );\n};\n\nexport default ValidationSummary;\n","import React from 'react';\n\nimport { ValidationErrors } from './types';\nimport ValidationSummary from './ValidationSummary';\nimport { AnalyticsId, FormSize } from '../../constants';\nimport { isComponent } from '../../utils/component';\nimport FormGroup, { FormGroupProps } from '../FormGroup/FormGroup';\n\nimport styles from './styles.module.scss';\n\ninterface ValidationProps {\n /** Error summary title */\n errorTitle?: string;\n /** Validation errors. If errors include references to HTML elements, the errors will be rendered as links with an onClick handler to focus the element. */\n errors?: ValidationErrors;\n /** Items in the Validation compontent */\n children?: React.ReactNode;\n /** Adds custom classes to the element. */\n className?: string;\n /** Changes the visuals of the formgroup */\n size?: keyof typeof FormSize;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nexport const Validation = React.forwardRef((props: ValidationProps, ref: React.ForwardedRef<HTMLDivElement>) => {\n const renderChild = (child: React.ReactNode): React.ReactNode => {\n if (isComponent<FormGroupProps>(child, FormGroup)) {\n return React.cloneElement(child, {\n errorWrapperClassName: styles['validation__error-wrapper'],\n });\n }\n if (React.isValidElement(child) && child.type === React.Fragment) {\n return React.Children.map(child.props.children, (child: React.ReactNode) => {\n return renderChild(child);\n });\n }\n\n return child;\n };\n\n return (\n <>\n <div data-testid={props.testId} data-analyticsid={AnalyticsId.Validation} className={props.className} ref={ref}>\n {React.Children.map(props.children, (child: React.ReactNode) => renderChild(child))}\n </div>\n <ValidationSummary errorTitle={props.errorTitle} errors={props.errors} />\n </>\n );\n});\n\nValidation.displayName = 'Validation';\n\nexport default Validation;\n"],"names":["ErrorListItem","props","handleClick","event","element","AnchorLink","e","jsx","Fragment","ErrorList","List","name","error","ValidationSummary","errorTitleHtmlMarkup","titleId","useUuid","hasErrors","summaryClasses","classNames","styles","jsxs","Title","Validation","React","ref","renderChild","child","isComponent","FormGroup","AnalyticsId"],"mappings":";;;;;;;;;;;AAUA,MAAMA,IAA6C,CAASC,MAAA;AACpD,QAAAC,IAAc,CAACC,GAAgCC,MAAqC;AACxF,IAAAD,KAAA,QAAAA,EAAO,kBACEC,KAAA,QAAAA,EAAA,UAASA,KAAA,QAAAA,EAAS;AAAA,EAAM;AAG/B,SAAAH,EAAM,MAAM,wBAEXI,GAAW,EAAA,MAAM,IAAIJ,EAAM,IAAI,IAAI,SAAS,CAACK,MAAYJ,EAAYI,GAAGL,EAAM,MAAM,GAAG,GACrF,UAAAA,EAAM,MAAM,QACf,CAAA,IAIG,gBAAAM,EAAAC,GAAA,EAAG,UAAMP,EAAA,MAAM,QAAQ,CAAA;AAChC,GCfMQ,IAAsC,CAC1CR,MAAA,gBAAAM,EAACG,GACE,EAAA,UAAA,OAAO,QAAQT,EAAM,MAAM,EAAE,IAAI,CAAC,CAACU,GAAMC,CAAK,MAC7C,gBAAAL,EAACG,EAAK,MAAL,EACC,UAAA,gBAAAH,EAACP,GAAc,EAAA,MAAAW,GAAY,OAAAC,EAAc,CAAA,EAAA,GAD3BD,CAEhB,CACD,EACH,CAAA,GCKIE,IAAsD,CAASZ,MAAA;AAC7D,QAAA,EAAE,sBAAAa,IAAuB,KAAS,IAAAb,GAClCc,IAAUC,KAEVC,IAAY,CAAC,CAAChB,EAAM,UAAU,OAAO,QAAQA,EAAM,MAAM,EAAE,SAAS,GAEpEiB,IAAiBC,EAAWC,EAAO,qBAAwBH,KAAaG,EAAO,8BAA8B,CAAC;AAGlH,SAAA,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAM;AAAA,MACN,aAAW;AAAA,MACX,iBAAe;AAAA,MACf,mBAAiBJ,KAAahB,EAAM,aAAac,IAAU;AAAA,MAC3D,WAAWG;AAAA,MAEV,UAAA;AAAA,QAAAD,KAEI,gBAAAI,EAAAb,GAAA,EAAA,UAAA;AAAA,UAAAP,EAAM,cACJ,gBAAAM,EAAAe,GAAA,EAAM,YAAW,UAAS,IAAIP,GAAS,YAAYD,GAAsB,QAAQ,EAAE,WAAW,GAAG,cAAc,EAAE,GAC/G,YAAM,YACT;AAAA,UAED,gBAAAP,EAAAE,GAAA,EAAU,QAAQR,EAAM,OAAS,CAAA;AAAA,QAAA,GACpC;AAAA,QAEDA,EAAM;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGb,GC1BasB,IAAaC,EAAM,WAAW,CAACvB,GAAwBwB,MAA4C;AACxG,QAAAC,IAAc,CAACC,MACfC,EAA4BD,GAAOE,CAAS,IACvCL,EAAM,aAAaG,GAAO;AAAA,IAC/B,uBAAuBP,EAAO,2BAA2B;AAAA,EAAA,CAC1D,IAECI,EAAM,eAAeG,CAAK,KAAKA,EAAM,SAASH,EAAM,WAC/CA,EAAM,SAAS,IAAIG,EAAM,MAAM,UAAU,CAACA,MACxCD,EAAYC,CAAK,CACzB,IAGIA;AAGT,SAEI,gBAAAN,EAAAb,GAAA,EAAA,UAAA;AAAA,IAAC,gBAAAD,EAAA,OAAA,EAAI,eAAaN,EAAM,QAAQ,oBAAkB6B,EAAY,YAAY,WAAW7B,EAAM,WAAW,KAAAwB,GACnG,UAAMD,EAAA,SAAS,IAAIvB,EAAM,UAAU,CAAC0B,MAA2BD,EAAYC,CAAK,CAAC,EACpF,CAAA;AAAA,sBACCd,GAAkB,EAAA,YAAYZ,EAAM,YAAY,QAAQA,EAAM,QAAQ;AAAA,EACzE,EAAA,CAAA;AAEJ,CAAC;AAEDsB,EAAW,cAAc;"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ModalProps } from '../Modal/Modal';
2
+ import { ModalProps } from '../../components/Modal';
3
3
  interface ModalWithButtonProps extends ModalProps {
4
4
  /** Text of the button */
5
5
  buttonText: string;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { HelpBubbleProps } from '../HelpBubble/HelpBubble';
2
+ import { HelpBubbleProps } from '../../components/HelpBubble';
3
3
  declare const HelpBubbleExample: React.FC<HelpBubbleProps>;
4
4
  export default HelpBubbleExample;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { TooltipProps } from '../Tooltip';
2
+ import { TooltipProps } from '../../components/Tooltip';
3
3
  declare const TooltipExample: React.FC<TooltipProps>;
4
4
  export default TooltipExample;
@@ -1,13 +1,14 @@
1
- import t from "react";
2
- import { useBreakpoint as n } from "../../hooks/useBreakpoint.js";
3
- function p(e) {
4
- return t.forwardRef((r, o) => {
5
- const a = n();
6
- return /* @__PURE__ */ t.createElement(e, { ref: o, ...r, breakpoint: a });
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import n from "react";
3
+ import { useBreakpoint as a } from "../../hooks/useBreakpoint.js";
4
+ function u(r) {
5
+ return n.forwardRef((t, o) => {
6
+ const e = a();
7
+ return /* @__PURE__ */ i(r, { ref: o, ...t, breakpoint: e });
7
8
  });
8
9
  }
9
10
  export {
10
- p as default,
11
- p as withBreakpoint
11
+ u as default,
12
+ u as withBreakpoint
12
13
  };
13
14
  //# sourceMappingURL=withBreakpoint.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"withBreakpoint.js","sources":["../../../src/hoc/withBreakpoint/withBreakpoint.tsx"],"sourcesContent":["import React from 'react';\n\nimport { Breakpoint, useBreakpoint } from '../../hooks/useBreakpoint';\n\nexport interface BreakpointProps {\n breakpoint: Breakpoint;\n}\n\n// Hentet fra https://github.com/DefinitelyTyped/DefinitelyTyped/issues/35834#issuecomment-497605842\nexport function withBreakpoint<P extends BreakpointProps, C extends React.ComponentClass<P>>(\n Component: C & React.ComponentType<P>\n): React.ForwardRefExoticComponent<Omit<React.ComponentPropsWithoutRef<C> & { ref?: React.Ref<InstanceType<C>> }, keyof BreakpointProps>>;\n\nexport function withBreakpoint<P extends BreakpointProps & { ref?: React.Ref<unknown> }>(\n Component: React.ForwardRefExoticComponent<P>\n): React.ForwardRefExoticComponent<Omit<P, keyof BreakpointProps>>;\n\nexport function withBreakpoint<P extends BreakpointProps>(\n Component: React.FunctionComponent<P>\n): React.ForwardRefExoticComponent<Omit<P, keyof BreakpointProps>>;\n\nexport function withBreakpoint<P extends BreakpointProps>(Component: React.ComponentType<P>) {\n return React.forwardRef((props, ref) => {\n const breakpoint = useBreakpoint();\n return <Component ref={ref} {...(props as P)} breakpoint={breakpoint} />;\n });\n}\n\nexport default withBreakpoint;\n"],"names":["withBreakpoint","Component","React","props","ref","breakpoint","useBreakpoint"],"mappings":";;AAqBO,SAASA,EAA0CC,GAAmC;AAC3F,SAAOC,EAAM,WAAW,CAACC,GAAOC,MAAQ;AACtC,UAAMC,IAAaC;AACnB,WAAQJ,gBAAAA,EAAA,cAAAD,GAAA,EAAU,KAAAG,GAAW,GAAID,GAAa,YAAAE,EAAwB,CAAA;AAAA,EAAA,CACvE;AACH;"}
1
+ {"version":3,"file":"withBreakpoint.js","sources":["../../../src/hoc/withBreakpoint/withBreakpoint.tsx"],"sourcesContent":["import React from 'react';\n\nimport { Breakpoint, useBreakpoint } from '../../hooks/useBreakpoint';\n\nexport interface BreakpointProps {\n breakpoint: Breakpoint;\n}\n\n// Hentet fra https://github.com/DefinitelyTyped/DefinitelyTyped/issues/35834#issuecomment-497605842\nexport function withBreakpoint<P extends BreakpointProps, C extends React.ComponentClass<P>>(\n Component: C & React.ComponentType<P>\n): React.ForwardRefExoticComponent<Omit<React.ComponentPropsWithoutRef<C> & { ref?: React.Ref<InstanceType<C>> }, keyof BreakpointProps>>;\n\nexport function withBreakpoint<P extends BreakpointProps & { ref?: React.Ref<unknown> }>(\n Component: React.ForwardRefExoticComponent<P>\n): React.ForwardRefExoticComponent<Omit<P, keyof BreakpointProps>>;\n\nexport function withBreakpoint<P extends BreakpointProps>(\n Component: React.FunctionComponent<P>\n): React.ForwardRefExoticComponent<Omit<P, keyof BreakpointProps>>;\n\nexport function withBreakpoint<P extends BreakpointProps>(Component: React.ComponentType<P>) {\n return React.forwardRef((props, ref) => {\n const breakpoint = useBreakpoint();\n return <Component ref={ref} {...(props as P)} breakpoint={breakpoint} />;\n });\n}\n\nexport default withBreakpoint;\n"],"names":["withBreakpoint","Component","React","props","ref","breakpoint","useBreakpoint","jsx"],"mappings":";;;AAqBO,SAASA,EAA0CC,GAAmC;AAC3F,SAAOC,EAAM,WAAW,CAACC,GAAOC,MAAQ;AACtC,UAAMC,IAAaC;AACnB,WAAQ,gBAAAC,EAAAN,GAAA,EAAU,KAAAG,GAAW,GAAID,GAAa,YAAAE,EAAwB,CAAA;AAAA,EAAA,CACvE;AACH;"}
package/hooks/useIcons.js CHANGED
@@ -1,16 +1,16 @@
1
- import { Icon as i } from "../components/Icon/Icon.js";
2
- import { LazyIcon as e } from "../components/LazyIcon/LazyIcon.js";
1
+ import { I as i } from "../Icon.js";
2
+ import { L as e } from "../LazyIcon.js";
3
3
  import { isComponent as o } from "../utils/component.js";
4
- const c = (t) => {
5
- let s = null, f = null;
4
+ const a = (t) => {
5
+ let l = null, f = null;
6
6
  const n = t[0];
7
- (o(n, i) || o(n, e)) && (s = n, t.shift());
8
- const l = t[t.length - 1];
9
- (o(l, i) || o(l, e)) && (f = l, t.pop());
7
+ (o(n, i) || o(n, e)) && (l = n, t.shift());
8
+ const s = t[t.length - 1];
9
+ (o(s, i) || o(s, e)) && (f = s, t.pop());
10
10
  const r = t.filter((m) => m);
11
- return [s, f, r.length > 0 ? r : null];
11
+ return [l, f, r.length > 0 ? r : null];
12
12
  };
13
13
  export {
14
- c as useIcons
14
+ a as useIcons
15
15
  };
16
16
  //# sourceMappingURL=useIcons.js.map
package/hooks/useUuid.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { useState as r } from "react";
2
- import { uuid as u } from "../utils/uuid.js";
3
- const m = (t) => {
2
+ import { u } from "../uuid.js";
3
+ const s = (t) => {
4
4
  const [o] = r(t || u());
5
5
  return o;
6
6
  };
7
7
  export {
8
- m as useUuid
8
+ s as useUuid
9
9
  };
10
10
  //# sourceMappingURL=useUuid.js.map
package/index.js CHANGED
@@ -3,7 +3,7 @@ import { Breakpoint as s, useBreakpoint as u } from "./hooks/useBreakpoint.js";
3
3
  import { useFocusToggle as p } from "./hooks/useFocusToggle.js";
4
4
  import { useFocusTrap as f } from "./hooks/useFocusTrap.js";
5
5
  import { useHover as n } from "./hooks/useHover.js";
6
- import { useIntersectionObserver as v } from "./hooks/useIntersectionObserver.js";
6
+ import { useIntersectionObserver as d } from "./hooks/useIntersectionObserver.js";
7
7
  import { useIsVisible as E } from "./hooks/useIsVisible.js";
8
8
  import { useLayoutEvent as c } from "./hooks/useLayoutEvent.js";
9
9
  import { usePrevious as A } from "./hooks/usePrevious.js";
@@ -15,7 +15,7 @@ import { useKeyboardEvent as H } from "./hooks/useKeyboardEvent.js";
15
15
  import { useOutsideEvent as O } from "./hooks/useOutsideEvent.js";
16
16
  import { useUuid as B } from "./hooks/useUuid.js";
17
17
  import { isMobileUA as M } from "./utils/mobile.js";
18
- import { uuid as U } from "./utils/uuid.js";
18
+ import { u as U } from "./uuid.js";
19
19
  import { AVERAGE_CHARACTER_WIDTH_PX as h, AnalyticsId as D, FormMode as G, FormSize as L, IconSize as W, KeyboardEventKey as X, ZIndex as Z } from "./constants.js";
20
20
  export {
21
21
  h as AVERAGE_CHARACTER_WIDTH_PX,
@@ -32,7 +32,7 @@ export {
32
32
  p as useFocusToggle,
33
33
  f as useFocusTrap,
34
34
  n as useHover,
35
- v as useIntersectionObserver,
35
+ d as useIntersectionObserver,
36
36
  E as useIsVisible,
37
37
  H as useKeyboardEvent,
38
38
  c as useLayoutEvent,
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "url": "git+https://github.com/helsenorge/designsystem.git"
8
8
  },
9
9
  "homepage": "https://helsenorge.design",
10
- "version": "8.5.0",
10
+ "version": "8.5.1",
11
11
  "author": "Helsenorge",
12
12
  "license": "MIT",
13
13
  "dependencies": {
@@ -1,7 +1,7 @@
1
1
  import i from "react";
2
- const n = (t, o) => i.isValidElement(t) && t.type === o, s = (t) => i.isValidElement(t);
2
+ const e = (t, o) => i.isValidElement(t) && t.type === o, s = (t) => i.isValidElement(t);
3
3
  export {
4
- n as isComponent,
4
+ e as isComponent,
5
5
  s as isComponentWithChildren
6
6
  };
7
7
  //# sourceMappingURL=component.js.map
package/utils/uuid.js CHANGED
@@ -1,10 +1,7 @@
1
- import { isTest as r } from "./environment.js";
2
- const o = () => r() ? "test" : "bxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx".replace(/[x]/g, function(t) {
3
- const x = Math.random() * 16 | 0;
4
- return (t == "x" ? x : x & 3 | 8).toString(16);
5
- });
1
+ import "./environment.js";
2
+ import { u as r, u as t } from "../uuid.js";
6
3
  export {
7
- o as default,
8
- o as uuid
4
+ r as default,
5
+ t as uuid
9
6
  };
10
7
  //# sourceMappingURL=uuid.js.map
package/utils/uuid.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"uuid.js","sources":["../../src/utils/uuid.ts"],"sourcesContent":["import { isTest } from './environment';\n\nexport const uuid = (): string => {\n if (isTest()) {\n return 'test';\n }\n return 'bxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'.replace(/[x]/g, function (c) {\n const r = (Math.random() * 16) | 0,\n v = c == 'x' ? r : (r & 0x3) | 0x8;\n return v.toString(16);\n });\n};\n\nexport default uuid;\n"],"names":["uuid","isTest","c","r"],"mappings":";AAEO,MAAMA,IAAO,MACdC,MACK,SAEF,uCAAuC,QAAQ,QAAQ,SAAUC,GAAG;AACnE,QAAAC,IAAK,KAAK,OAAW,IAAA,KAAM;AAE1B,UADDD,KAAK,MAAMC,IAAKA,IAAI,IAAO,GACxB,SAAS,EAAE;AAAA,CACrB;"}
1
+ {"version":3,"file":"uuid.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -1,5 +1,5 @@
1
1
  const f = ({ size: n, large: o, medium: t, small: r }) => o && (n >= 512 || !t && !r) ? o : t && (n >= 201 || !r) ? t : r;
2
2
  export {
3
- f as getIllustration
3
+ f as g
4
4
  };
5
5
  //# sourceMappingURL=utils.js.map
package/utils.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sources":["../src/components/Illustration/utils.ts"],"sourcesContent":["interface IllustrationConfig<T> {\n size: number;\n large?: T;\n medium?: T;\n small?: T;\n}\n\nexport const getIllustration = <T>({ size, large, medium, small }: IllustrationConfig<T>): T => {\n if (large && (size >= 512 || (!medium && !small))) {\n return large;\n }\n\n if (medium && (size >= 201 || !small)) {\n return medium;\n }\n\n return small as T;\n};\n"],"names":["getIllustration","size","large","medium","small"],"mappings":"AAOO,MAAMA,IAAkB,CAAI,EAAE,MAAAC,GAAM,OAAAC,GAAO,QAAAC,GAAQ,OAAAC,QACpDF,MAAUD,KAAQ,OAAQ,CAACE,KAAU,CAACC,KACjCF,IAGLC,MAAWF,KAAQ,OAAO,CAACG,KACtBD,IAGFC;"}
package/uuid.js ADDED
@@ -0,0 +1,14 @@
1
+ import { isTest as r } from "./utils/environment.js";
2
+ const t = () => r() ? "test" : "bxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx".replace(/[x]/g, function(e) {
3
+ const x = Math.random() * 16 | 0;
4
+ return (e == "x" ? x : x & 3 | 8).toString(16);
5
+ }), u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6
+ __proto__: null,
7
+ default: t,
8
+ uuid: t
9
+ }, Symbol.toStringTag, { value: "Module" }));
10
+ export {
11
+ u as a,
12
+ t as u
13
+ };
14
+ //# sourceMappingURL=uuid.js.map
package/uuid.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uuid.js","sources":["../src/utils/uuid.ts"],"sourcesContent":["import { isTest } from './environment';\n\nexport const uuid = (): string => {\n if (isTest()) {\n return 'test';\n }\n return 'bxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'.replace(/[x]/g, function (c) {\n const r = (Math.random() * 16) | 0,\n v = c == 'x' ? r : (r & 0x3) | 0x8;\n return v.toString(16);\n });\n};\n\nexport default uuid;\n"],"names":["uuid","isTest","c","r"],"mappings":";AAEO,MAAMA,IAAO,MACdC,MACK,SAEF,uCAAuC,QAAQ,QAAQ,SAAUC,GAAG;AACnE,QAAAC,IAAK,KAAK,OAAW,IAAA,KAAM;AAE1B,UADDD,KAAK,MAAMC,IAAKA,IAAI,IAAO,GACxB,SAAS,EAAE;AAAA,CACrB;;;;;"}
@@ -1,5 +0,0 @@
1
- var e = { exports: {} };
2
- export {
3
- e as __module
4
- };
5
- //# sourceMappingURL=_cloneBuffer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_cloneBuffer.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,7 +0,0 @@
1
- function r(o) {
2
- throw new Error('Could not dynamically require "' + o + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
3
- }
4
- export {
5
- r as commonjsRequire
6
- };
7
- //# sourceMappingURL=_commonjs-dynamic-modules.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_commonjs-dynamic-modules.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
@@ -1,9 +0,0 @@
1
- var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
- function l(e) {
3
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4
- }
5
- export {
6
- o as commonjsGlobal,
7
- l as getDefaultExportFromCjs
8
- };
9
- //# sourceMappingURL=_commonjsHelpers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_commonjsHelpers.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,5 +0,0 @@
1
- var e = { exports: {} };
2
- export {
3
- e as __module
4
- };
5
- //# sourceMappingURL=_nodeUtil.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_nodeUtil.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,17 +0,0 @@
1
- const l = (r, n, t) => {
2
- const e = r[n];
3
- return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((i, o) => {
4
- (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
5
- o.bind(
6
- null,
7
- new Error(
8
- "Unknown variable dynamic import: " + n + (n.split("/").length !== t ? ". Note that variables only represent file names one level deep." : "")
9
- )
10
- )
11
- );
12
- });
13
- };
14
- export {
15
- l as default
16
- };
17
- //# sourceMappingURL=dynamic-import-helper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dynamic-import-helper.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
@@ -1,5 +0,0 @@
1
- var e = { exports: {} };
2
- export {
3
- e as __module
4
- };
5
- //# sourceMappingURL=isBuffer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isBuffer.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,5 +0,0 @@
1
- var e = { exports: {} };
2
- export {
3
- e as __module
4
- };
5
- //# sourceMappingURL=memoizerific.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"memoizerific.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,53 +0,0 @@
1
- import e from "react";
2
- import v from "classnames";
3
- import { AnalyticsId as y, IconSize as E } from "../../constants.js";
4
- import { useHover as N } from "../../hooks/useHover.js";
5
- import { getColor as m } from "../../theme/currys/color.js";
6
- import { Icon as _ } from "../Icon/Icon.js";
7
- import A from "../Icons/ArrowUpRight.js";
8
- import r from "../AnchorLink/styles.module.scss";
9
- const F = e.forwardRef((i, f) => {
10
- const { id: p, href: d, children: h, className: u, target: o = "_self", htmlMarkup: t = "a", onClick: k, testId: b } = i, n = o === "_blank", { hoverRef: a, isHovered: g } = N(
11
- f
12
- ), l = v(r.anchorlink, u), c = {
13
- id: p,
14
- "data-testid": b,
15
- "data-analyticsid": y.AnchorLink,
16
- onClick: k
17
- }, s = () => /* @__PURE__ */ e.createElement(e.Fragment, null, h, n && /* @__PURE__ */ e.createElement(
18
- _,
19
- {
20
- className: r.anchorlink__icon,
21
- svgIcon: A,
22
- color: m("blueberry", 600),
23
- hoverColor: m("blueberry", 700),
24
- size: E.XSmall,
25
- isHovered: g
26
- }
27
- ));
28
- return /* @__PURE__ */ e.createElement(e.Fragment, null, t === "a" && /* @__PURE__ */ e.createElement(
29
- "a",
30
- {
31
- href: d,
32
- target: o,
33
- className: l,
34
- rel: n ? "noopener noreferrer" : void 0,
35
- ref: a,
36
- ...c
37
- },
38
- s()
39
- ), t === "button" && /* @__PURE__ */ e.createElement(
40
- "button",
41
- {
42
- type: "button",
43
- className: r["anchorlink-wrapper"],
44
- ref: a,
45
- ...c
46
- },
47
- /* @__PURE__ */ e.createElement("span", { className: l }, s())
48
- ));
49
- });
50
- export {
51
- F as default
52
- };
53
- //# sourceMappingURL=AnchorLink.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AnchorLink.js","sources":["../../../src/components/AnchorLink/AnchorLink.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { AnalyticsId } from '../../constants';\nimport { useHover } from '../../hooks/useHover';\nimport { getColor } from '../../theme/currys';\nimport Icon, { IconSize } from '../Icon';\nimport ArrowUpRight from '../Icons/ArrowUpRight';\n\nimport AnchorLinkStyles from './styles.module.scss';\n\nexport type AnchorLinkTargets = '_self' | '_blank' | '_parent';\n\nexport type AnchorLinkTags = 'a' | 'button';\n\nexport type AnchorLinkOnClickEvent =\n | React.MouseEvent<HTMLElement, MouseEvent>\n | React.FormEvent<{}>\n | React.KeyboardEvent<HTMLUListElement>\n | null;\n\nexport interface AnchorLinkProps {\n /** Sets the content of the <a> tag */\n children: React.ReactNode;\n /** URL to link to */\n href?: string;\n /** Gives a unique id to the anchor-link :) */\n id?: string;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the target type of the <a> tag. _blank adds an arrow icon at the end of the link */\n target?: AnchorLinkTargets;\n /** HTML markup for anchor link. Default: a */\n htmlMarkup?: AnchorLinkTags;\n /** Function that is called when clicked */\n onClick?: (e?: AnchorLinkOnClickEvent) => void;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nconst AnchorLink = React.forwardRef<HTMLAnchorElement | HTMLButtonElement, AnchorLinkProps>((props, ref) => {\n const { id, href, children, className, target = '_self', htmlMarkup = 'a', onClick, testId } = props;\n const external = target === '_blank';\n const { hoverRef, isHovered } = useHover<HTMLButtonElement | HTMLAnchorElement>(\n ref as React.RefObject<HTMLButtonElement | HTMLAnchorElement>\n );\n const anchorClasses = classNames(AnchorLinkStyles.anchorlink, className);\n\n const commonProps = {\n id,\n ['data-testid']: testId,\n ['data-analyticsid']: AnalyticsId.AnchorLink,\n onClick,\n };\n\n const renderContent = () => (\n <>\n {children}\n {external && (\n <Icon\n className={AnchorLinkStyles.anchorlink__icon}\n svgIcon={ArrowUpRight}\n color={getColor('blueberry', 600)}\n hoverColor={getColor('blueberry', 700)}\n size={IconSize.XSmall}\n isHovered={isHovered}\n />\n )}\n </>\n );\n\n return (\n <>\n {htmlMarkup === 'a' && (\n <a\n href={href}\n target={target}\n className={anchorClasses}\n rel={external ? 'noopener noreferrer' : undefined}\n ref={hoverRef as React.RefObject<HTMLAnchorElement>}\n {...commonProps}\n >\n {renderContent()}\n </a>\n )}\n {htmlMarkup === 'button' && (\n <button\n type=\"button\"\n className={AnchorLinkStyles['anchorlink-wrapper']}\n ref={hoverRef as React.RefObject<HTMLButtonElement>}\n {...commonProps}\n >\n <span className={anchorClasses}>{renderContent()}</span>\n </button>\n )}\n </>\n );\n});\n\nexport default AnchorLink;\n"],"names":["AnchorLink","React","props","ref","id","href","children","className","target","htmlMarkup","onClick","testId","external","hoverRef","isHovered","useHover","anchorClasses","classNames","AnchorLinkStyles","commonProps","AnalyticsId","renderContent","Icon","ArrowUpRight","getColor","IconSize"],"mappings":";;;;;;;;AAyCA,MAAMA,IAAaC,EAAM,WAAmE,CAACC,GAAOC,MAAQ;AACpG,QAAA,EAAE,IAAAC,GAAI,MAAAC,GAAM,UAAAC,GAAU,WAAAC,GAAW,QAAAC,IAAS,SAAS,YAAAC,IAAa,KAAK,SAAAC,GAAS,QAAAC,EAAA,IAAWT,GACzFU,IAAWJ,MAAW,UACtB,EAAE,UAAAK,GAAU,WAAAC,EAAA,IAAcC;AAAA,IAC9BZ;AAAA,EAAA,GAEIa,IAAgBC,EAAWC,EAAiB,YAAYX,CAAS,GAEjEY,IAAc;AAAA,IAClB,IAAAf;AAAA,IACC,eAAgBO;AAAA,IAChB,oBAAqBS,EAAY;AAAA,IAClC,SAAAV;AAAA,EAAA,GAGIW,IAAgB,MAEjBpB,gBAAAA,EAAA,cAAAA,EAAA,UAAA,MAAAK,GACAM,KACCX,gBAAAA,EAAA;AAAA,IAACqB;AAAA,IAAA;AAAA,MACC,WAAWJ,EAAiB;AAAA,MAC5B,SAASK;AAAA,MACT,OAAOC,EAAS,aAAa,GAAG;AAAA,MAChC,YAAYA,EAAS,aAAa,GAAG;AAAA,MACrC,MAAMC,EAAS;AAAA,MACf,WAAAX;AAAA,IAAA;AAAA,EAAA,CAGN;AAIA,SAAAb,gBAAAA,EAAA,cAAAA,EAAA,UAAA,MACGQ,MAAe,OACdR,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAAI;AAAA,MACA,QAAAG;AAAA,MACA,WAAWQ;AAAA,MACX,KAAKJ,IAAW,wBAAwB;AAAA,MACxC,KAAKC;AAAA,MACJ,GAAGM;AAAA,IAAA;AAAA,IAEHE,EAAc;AAAA,EAAA,GAGlBZ,MAAe,YACdR,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,WAAWiB,EAAiB,oBAAoB;AAAA,MAChD,KAAKL;AAAA,MACJ,GAAGM;AAAA,IAAA;AAAA,IAEHlB,gBAAAA,EAAA,cAAA,QAAA,EAAK,WAAWe,EAAA,GAAgBK,GAAgB;AAAA,EAAA,CAGvD;AAEJ,CAAC;"}
@@ -1,33 +0,0 @@
1
- import e from "react";
2
- import p from "classnames";
3
- import { AnalyticsId as v, IconSize as u } from "../../constants.js";
4
- import { palette as o } from "../../theme/palette.js";
5
- import { Icon as b } from "../Icon/Icon.js";
6
- import x from "../Icons/Check.js";
7
- import a from "../Avatar/styles.module.scss";
8
- var I = /* @__PURE__ */ ((t) => (t.xsmall = "xsmall", t.small = "small", t))(I || {});
9
- const w = e.forwardRef(function(c, n) {
10
- const { children: r, className: i = "", selected: l = !1, variant: s = "normal", size: m = "small", testId: d } = c, f = r.charAt(0).toLocaleUpperCase() + r.substring(1, 2);
11
- return /* @__PURE__ */ e.createElement(
12
- "span",
13
- {
14
- className: p(
15
- a.avatar,
16
- l && a["avatar--selected"],
17
- s === "black" && a["avatar--black"],
18
- m === "xsmall" && a["avatar--xsmall"],
19
- m === "small" && a["avatar--small"],
20
- i
21
- ),
22
- ref: n,
23
- "data-testid": d,
24
- "data-analyticsid": v.Avatar
25
- },
26
- l ? /* @__PURE__ */ e.createElement(b, { svgIcon: x, size: u.Small, color: s === "black" ? o.neutral900 : o.blueberry600 }) : f
27
- );
28
- });
29
- export {
30
- I as AvatarSize,
31
- w as default
32
- };
33
- //# sourceMappingURL=Avatar.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Avatar.js","sources":["../../../src/components/Avatar/Avatar.tsx"],"sourcesContent":["import React from 'react';\n\nimport cn from 'classnames';\n\nimport { AnalyticsId } from '../../constants';\nimport { palette } from '../../theme/palette';\nimport Icon, { IconSize } from '../Icon';\nimport Check from '../Icons/Check';\n\nimport styles from './styles.module.scss';\n\nexport enum AvatarSize {\n xsmall = 'xsmall',\n small = 'small',\n}\n\nexport interface AvatarProps {\n /** Name to display in the avatar. Will be truncated to the first two characters. */\n children: string;\n /** Displays a check icon to indicated the selected state. */\n selected?: boolean;\n /** background and color will be determined on variant. */\n variant?: 'normal' | 'black';\n /** Avatar size. Default: small */\n size?: keyof typeof AvatarSize;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\nexport type AvatarType = React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLElement>>;\nconst Avatar: AvatarType = React.forwardRef(function AvatarForwardedRef(props: AvatarProps, ref: React.ForwardedRef<HTMLElement>) {\n const { children, className = '', selected = false, variant = 'normal', size = AvatarSize.small, testId } = props;\n const truncatedName = children.charAt(0).toLocaleUpperCase() + children.substring(1, 2);\n return (\n <span\n className={cn(\n styles.avatar,\n selected && styles['avatar--selected'],\n variant === 'black' && styles['avatar--black'],\n size === AvatarSize.xsmall && styles['avatar--xsmall'],\n size === AvatarSize.small && styles['avatar--small'],\n className\n )}\n ref={ref}\n data-testid={testId}\n data-analyticsid={AnalyticsId.Avatar}\n >\n {selected ? (\n <Icon svgIcon={Check} size={IconSize.Small} color={variant === 'black' ? palette.neutral900 : palette.blueberry600} />\n ) : (\n truncatedName\n )}\n </span>\n );\n});\n\nexport default Avatar;\n"],"names":["AvatarSize","Avatar","React","props","ref","children","className","selected","variant","size","testId","truncatedName","cn","styles","AnalyticsId","Icon","Check","IconSize","palette"],"mappings":";;;;;;;AAWY,IAAAA,sBAAAA,OACVA,EAAA,SAAS,UACTA,EAAA,QAAQ,SAFEA,IAAAA,KAAA,CAAA,CAAA;AAoBZ,MAAMC,IAAqBC,EAAM,WAAW,SAA4BC,GAAoBC,GAAsC;AAC1H,QAAA,EAAE,UAAAC,GAAU,WAAAC,IAAY,IAAI,UAAAC,IAAW,IAAO,SAAAC,IAAU,UAAU,MAAAC,IAAO,SAAkB,QAAAC,EAAA,IAAWP,GACtGQ,IAAgBN,EAAS,OAAO,CAAC,EAAE,kBAAsB,IAAAA,EAAS,UAAU,GAAG,CAAC;AAEpF,SAAAH,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWU;AAAAA,QACTC,EAAO;AAAA,QACPN,KAAYM,EAAO,kBAAkB;AAAA,QACrCL,MAAY,WAAWK,EAAO,eAAe;AAAA,QAC7CJ,MAAS,YAAqBI,EAAO,gBAAgB;AAAA,QACrDJ,MAAS,WAAoBI,EAAO,eAAe;AAAA,QACnDP;AAAA,MACF;AAAA,MACA,KAAAF;AAAA,MACA,eAAaM;AAAA,MACb,oBAAkBI,EAAY;AAAA,IAAA;AAAA,IAE7BP,IACCL,gBAAAA,EAAA,cAACa,GAAK,EAAA,SAASC,GAAO,MAAMC,EAAS,OAAO,OAAOT,MAAY,UAAUU,EAAQ,aAAaA,EAAQ,aAAc,CAAA,IAEpHP;AAAA,EAAA;AAIR,CAAC;"}
@@ -1,30 +0,0 @@
1
- import t from "react";
2
- import m from "classnames";
3
- import b from "./NotificationBadge.js";
4
- import { IconSize as g, AnalyticsId as d } from "../../constants.js";
5
- import e from "../Badge/styles.module.scss";
6
- const I = t.forwardRef(function(n, s) {
7
- const { children: c, className: r = "", color: a = "blueberry", testId: i, type: l = "string", notificationVariant: o = "info" } = n, f = m(
8
- e.badge,
9
- {
10
- [e["badge--blueberry"]]: a === "blueberry",
11
- [e["badge--cherry"]]: a === "cherry",
12
- [e["badge--neutral"]]: a === "neutral"
13
- },
14
- r
15
- );
16
- return l === "notification" && o !== void 0 ? /* @__PURE__ */ t.createElement(
17
- b,
18
- {
19
- variant: o,
20
- size: g.XSmall,
21
- className: r,
22
- testId: i,
23
- "data-analyticsid": d.Badge
24
- }
25
- ) : /* @__PURE__ */ t.createElement("span", { className: f, ref: s, "data-testid": i, "data-analyticsid": d.Badge }, c);
26
- });
27
- export {
28
- I as default
29
- };
30
- //# sourceMappingURL=Badge.js.map