@helsenorge/designsystem-react 6.5.0 → 7.0.0-beta.2

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 (1565) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/__mocks__/IntersectionObserver.d.ts +0 -1
  3. package/__mocks__/MutationObserver.d.ts +0 -1
  4. package/__mocks__/ResizeObserver.d.ts +0 -1
  5. package/__mocks__/matchMedia.d.ts +1 -3
  6. package/__mocks__/matchMedia.js +6 -5
  7. package/__mocks__/matchMedia.js.map +1 -1
  8. package/__mocks__/useHover.d.ts +0 -1
  9. package/__mocks__/useHover.js +3 -2
  10. package/__mocks__/useHover.js.map +1 -1
  11. package/__mocks__/useLayoutEvent.d.ts +0 -1
  12. package/__mocks__/useLayoutEvent.js +3 -2
  13. package/__mocks__/useLayoutEvent.js.map +1 -1
  14. package/__mocks__/useOutsideEvent.d.ts +0 -1
  15. package/__mocks__/useOutsideEvent.js +3 -2
  16. package/__mocks__/useOutsideEvent.js.map +1 -1
  17. package/__mocks__/useSize.d.ts +0 -1
  18. package/__mocks__/useSize.js +10 -2
  19. package/__mocks__/useSize.js.map +1 -1
  20. package/__mocks__/uuid.d.ts +0 -1
  21. package/__mocks__/uuid.js +4 -3
  22. package/__mocks__/uuid.js.map +1 -1
  23. package/components/AnchorLink/AnchorLink.d.ts +1 -2
  24. package/components/AnchorLink/AnchorLink.js.map +1 -1
  25. package/components/AnchorLink/AnchorLink.stories.d.ts +30 -0
  26. package/components/AnchorLink/index.d.ts +0 -1
  27. package/components/Avatar/Avatar.d.ts +0 -1
  28. package/components/Avatar/Avatar.stories.d.ts +34 -0
  29. package/components/Avatar/index.d.ts +0 -1
  30. package/components/Badge/Badge.d.ts +0 -1
  31. package/components/Badge/Badge.js +5 -6
  32. package/components/Badge/Badge.js.map +1 -1
  33. package/components/Badge/Badge.stories.d.ts +28 -0
  34. package/components/Badge/index.d.ts +0 -1
  35. package/components/Button/Button.d.ts +0 -1
  36. package/components/Button/Button.stories.d.ts +54 -0
  37. package/components/Button/index.d.ts +0 -1
  38. package/components/Button/styles.module.scss +2 -1
  39. package/components/ButtonWithModal/ButtonWithModal.d.ts +1 -2
  40. package/components/ButtonWithModal/ButtonWithModal.js +8 -8
  41. package/components/ButtonWithModal/ButtonWithModal.js.map +1 -1
  42. package/components/ButtonWithModal/index.d.ts +0 -1
  43. package/components/Checkbox/Checkbox.d.ts +0 -1
  44. package/components/Checkbox/Checkbox.js +18 -19
  45. package/components/Checkbox/Checkbox.js.map +1 -1
  46. package/components/Checkbox/Checkbox.stories.d.ts +53 -0
  47. package/components/Checkbox/index.d.ts +0 -1
  48. package/components/Close/Close.d.ts +0 -1
  49. package/components/Close/Close.stories.d.ts +28 -0
  50. package/components/Close/index.d.ts +0 -1
  51. package/components/DictionaryTrigger/DictionaryTrigger.d.ts +1 -2
  52. package/components/DictionaryTrigger/DictionaryTrigger.js.map +1 -1
  53. package/components/DictionaryTrigger/DictionaryTrigger.stories.d.ts +29 -0
  54. package/components/DictionaryTrigger/index.d.ts +0 -1
  55. package/components/Dropdown/Dropdown.d.ts +0 -1
  56. package/components/Dropdown/Dropdown.stories.d.ts +62 -0
  57. package/components/Dropdown/index.d.ts +0 -1
  58. package/components/Duolist/Duolist.d.ts +3 -4
  59. package/components/Duolist/Duolist.js +10 -11
  60. package/components/Duolist/Duolist.js.map +1 -1
  61. package/components/Duolist/Duolist.stories.d.ts +31 -0
  62. package/components/Duolist/index.d.ts +0 -1
  63. package/components/EmptyState/EmptyState.d.ts +1 -2
  64. package/components/EmptyState/EmptyState.js.map +1 -1
  65. package/components/EmptyState/EmptyState.stories.d.ts +25 -0
  66. package/components/EmptyState/NobodyHome.d.ts +0 -1
  67. package/components/EmptyState/index.d.ts +0 -1
  68. package/components/ErrorWrapper/ErrorWrapper.d.ts +0 -1
  69. package/components/ErrorWrapper/index.d.ts +0 -1
  70. package/components/Expander/Expander.d.ts +1 -2
  71. package/components/Expander/Expander.js +21 -21
  72. package/components/Expander/Expander.js.map +1 -1
  73. package/components/Expander/Expander.stories.d.ts +59 -0
  74. package/components/Expander/index.d.ts +0 -1
  75. package/components/Expander/styles.module.scss +10 -3
  76. package/components/ExpanderHierarchy/Expander.d.ts +0 -1
  77. package/components/ExpanderHierarchy/Expander.js +5 -5
  78. package/components/ExpanderHierarchy/Expander.js.map +1 -1
  79. package/components/ExpanderHierarchy/ExpanderButton.d.ts +0 -1
  80. package/components/ExpanderHierarchy/ExpanderButton.js +3 -3
  81. package/components/ExpanderHierarchy/ExpanderButton.js.map +1 -1
  82. package/components/ExpanderHierarchy/ExpanderHierarchy.d.ts +0 -1
  83. package/components/ExpanderHierarchy/ExpanderHierarchy.js +3 -3
  84. package/components/ExpanderHierarchy/ExpanderHierarchy.js.map +1 -1
  85. package/components/ExpanderHierarchy/ExpanderHierarchy.stories.d.ts +42 -0
  86. package/components/ExpanderHierarchy/index.d.ts +0 -1
  87. package/components/ExpanderHierarchy/utils.d.ts +0 -1
  88. package/components/ExpanderList/ExpanderList.d.ts +0 -1
  89. package/components/ExpanderList/ExpanderList.js +84 -81
  90. package/components/ExpanderList/ExpanderList.js.map +1 -1
  91. package/components/ExpanderList/ExpanderList.stories.d.ts +57 -0
  92. package/components/ExpanderList/index.d.ts +0 -1
  93. package/components/FormExample/FormExample.d.ts +1 -2
  94. package/components/FormExample/FormExample.js +50 -58
  95. package/components/FormExample/FormExample.js.map +1 -1
  96. package/components/FormExample/index.d.ts +0 -1
  97. package/components/FormGroup/FormGroup.d.ts +0 -1
  98. package/components/FormGroup/FormGroup.js +62 -71
  99. package/components/FormGroup/FormGroup.js.map +1 -1
  100. package/components/FormGroup/FormGroup.stories.d.ts +48 -0
  101. package/components/FormGroup/index.d.ts +0 -1
  102. package/components/FormLayout/FormLayout.d.ts +0 -1
  103. package/components/FormLayout/FormLayout.stories.d.ts +31 -0
  104. package/components/FormLayout/index.d.ts +0 -1
  105. package/components/GridExample/GridExample.d.ts +0 -1
  106. package/components/GridExample/index.d.ts +0 -1
  107. package/components/HelpBubble/HelpBubble.d.ts +0 -1
  108. package/components/HelpBubble/HelpBubble.stories.d.ts +41 -0
  109. package/components/HelpBubble/index.d.ts +0 -1
  110. package/components/HelpBubbleExample/HelpBubbleExample.d.ts +0 -1
  111. package/components/HelpBubbleExample/index.d.ts +0 -1
  112. package/components/HelpPanel/HelpPanel.d.ts +1 -2
  113. package/components/HelpPanel/HelpPanel.js.map +1 -1
  114. package/components/HelpPanel/HelpPanel.stories.d.ts +30 -0
  115. package/components/HelpPanel/index.d.ts +0 -1
  116. package/components/HelpQuestion/HelpQuestion.d.ts +1 -2
  117. package/components/HelpQuestion/HelpQuestion.js.map +1 -1
  118. package/components/HelpQuestion/HelpQuestion.stories.d.ts +28 -0
  119. package/components/HelpQuestion/index.d.ts +0 -1
  120. package/components/HighlightBox/HighlightBox.d.ts +2 -3
  121. package/components/HighlightBox/HighlightBox.js +14 -15
  122. package/components/HighlightBox/HighlightBox.js.map +1 -1
  123. package/components/HighlightBox/HighlightBox.stories.d.ts +41 -0
  124. package/components/HighlightBox/index.d.ts +0 -1
  125. package/components/HorizontalScroll/HorizontalScroll.d.ts +0 -1
  126. package/components/HorizontalScroll/index.d.ts +0 -1
  127. package/components/HorizontalScroll/styles.module.scss +4 -1
  128. package/components/Icon/Icon.d.ts +0 -1
  129. package/components/Icon/Icon.stories.d.ts +34 -0
  130. package/components/Icon/index.d.ts +0 -1
  131. package/components/Icons/ActiveMonitoring.d.ts +0 -1
  132. package/components/Icons/ActiveMonitoring.js +1 -1
  133. package/components/Icons/ActiveMonitoring.js.map +1 -1
  134. package/components/Icons/AcupunctureBack.d.ts +0 -1
  135. package/components/Icons/AcupunctureBack.js +2 -2
  136. package/components/Icons/AcupunctureBack.js.map +1 -1
  137. package/components/Icons/AdditionalIconInformation.d.ts +0 -1
  138. package/components/Icons/AlarmClock.d.ts +0 -1
  139. package/components/Icons/AlertSignFill.d.ts +0 -1
  140. package/components/Icons/AlertSignStroke.d.ts +0 -1
  141. package/components/Icons/Amputation.d.ts +0 -1
  142. package/components/Icons/Amputation.js +2 -2
  143. package/components/Icons/Amputation.js.map +1 -1
  144. package/components/Icons/Anxiety.d.ts +0 -1
  145. package/components/Icons/Anxiety.js +1 -1
  146. package/components/Icons/Anxiety.js.map +1 -1
  147. package/components/Icons/Apple.d.ts +0 -1
  148. package/components/Icons/Apple.js +2 -2
  149. package/components/Icons/Apple.js.map +1 -1
  150. package/components/Icons/Archive.d.ts +0 -1
  151. package/components/Icons/ArmFlexing.d.ts +0 -1
  152. package/components/Icons/ArmFlexing.js +2 -2
  153. package/components/Icons/ArmFlexing.js.map +1 -1
  154. package/components/Icons/ArrowDown.d.ts +0 -1
  155. package/components/Icons/ArrowLeft.d.ts +0 -1
  156. package/components/Icons/ArrowRight.d.ts +0 -1
  157. package/components/Icons/ArrowUp.d.ts +0 -1
  158. package/components/Icons/ArrowUpRight.d.ts +0 -1
  159. package/components/Icons/Attachment.d.ts +0 -1
  160. package/components/Icons/Atv.d.ts +0 -1
  161. package/components/Icons/Atv.js +1 -1
  162. package/components/Icons/Atv.js.map +1 -1
  163. package/components/Icons/Avatar.d.ts +0 -1
  164. package/components/Icons/AwakePersonOnPillow.d.ts +0 -1
  165. package/components/Icons/AwakePersonOnPillow.js +2 -2
  166. package/components/Icons/AwakePersonOnPillow.js.map +1 -1
  167. package/components/Icons/Baby.d.ts +0 -1
  168. package/components/Icons/Baby.js +2 -2
  169. package/components/Icons/Baby.js.map +1 -1
  170. package/components/Icons/BandAid.d.ts +0 -1
  171. package/components/Icons/BandAid.js +2 -2
  172. package/components/Icons/BandAid.js.map +1 -1
  173. package/components/Icons/BeerAndPills.d.ts +0 -1
  174. package/components/Icons/BeerAndPills.js +2 -2
  175. package/components/Icons/BeerAndPills.js.map +1 -1
  176. package/components/Icons/Bell.d.ts +0 -1
  177. package/components/Icons/Bell.js +2 -2
  178. package/components/Icons/Bell.js.map +1 -1
  179. package/components/Icons/Bike.d.ts +0 -1
  180. package/components/Icons/Bike.js +2 -2
  181. package/components/Icons/Bike.js.map +1 -1
  182. package/components/Icons/BirthControl.d.ts +0 -1
  183. package/components/Icons/BirthdayCake.d.ts +0 -1
  184. package/components/Icons/BirthdayCake.js +2 -2
  185. package/components/Icons/BirthdayCake.js.map +1 -1
  186. package/components/Icons/Boat.d.ts +0 -1
  187. package/components/Icons/Boat.js +2 -2
  188. package/components/Icons/Boat.js.map +1 -1
  189. package/components/Icons/Body.d.ts +0 -1
  190. package/components/Icons/Braille.d.ts +0 -1
  191. package/components/Icons/Brain.d.ts +0 -1
  192. package/components/Icons/Brain.js +1 -1
  193. package/components/Icons/Brain.js.map +1 -1
  194. package/components/Icons/BreastReconstruction.d.ts +0 -1
  195. package/components/Icons/BreastReconstruction.js +2 -2
  196. package/components/Icons/BreastReconstruction.js.map +1 -1
  197. package/components/Icons/BreastRemoval.d.ts +0 -1
  198. package/components/Icons/BreastRemoval.js +2 -2
  199. package/components/Icons/BreastRemoval.js.map +1 -1
  200. package/components/Icons/Breasts.d.ts +0 -1
  201. package/components/Icons/Breasts.js +1 -1
  202. package/components/Icons/Breasts.js.map +1 -1
  203. package/components/Icons/BrokenHeart.d.ts +0 -1
  204. package/components/Icons/BrokenHeart.js +2 -2
  205. package/components/Icons/BrokenHeart.js.map +1 -1
  206. package/components/Icons/BrokenPuzzle.d.ts +0 -1
  207. package/components/Icons/BrokenPuzzle.js +2 -2
  208. package/components/Icons/BrokenPuzzle.js.map +1 -1
  209. package/components/Icons/Bus.d.ts +0 -1
  210. package/components/Icons/Calendar.d.ts +0 -1
  211. package/components/Icons/CalendarChange.d.ts +0 -1
  212. package/components/Icons/CalendarCheck.d.ts +0 -1
  213. package/components/Icons/CalendarEvent.d.ts +0 -1
  214. package/components/Icons/CalendarEvent.js +2 -2
  215. package/components/Icons/CalendarEvent.js.map +1 -1
  216. package/components/Icons/CalendarSave.d.ts +0 -1
  217. package/components/Icons/Cancer.d.ts +0 -1
  218. package/components/Icons/Cancer.js +2 -2
  219. package/components/Icons/Cancer.js.map +1 -1
  220. package/components/Icons/Candle.d.ts +0 -1
  221. package/components/Icons/Car.d.ts +0 -1
  222. package/components/Icons/Car.js +2 -2
  223. package/components/Icons/Car.js.map +1 -1
  224. package/components/Icons/Change.d.ts +0 -1
  225. package/components/Icons/Check.d.ts +0 -1
  226. package/components/Icons/CheckFill.d.ts +0 -1
  227. package/components/Icons/CheckOutline.d.ts +0 -1
  228. package/components/Icons/CheckOutline.js +2 -2
  229. package/components/Icons/CheckOutline.js.map +1 -1
  230. package/components/Icons/Chest.d.ts +0 -1
  231. package/components/Icons/Chest.js +2 -2
  232. package/components/Icons/Chest.js.map +1 -1
  233. package/components/Icons/ChevronDown.d.ts +0 -1
  234. package/components/Icons/ChevronLeft.d.ts +0 -1
  235. package/components/Icons/ChevronRight.d.ts +0 -1
  236. package/components/Icons/ChevronUp.d.ts +0 -1
  237. package/components/Icons/ChevronsDown.d.ts +0 -1
  238. package/components/Icons/ChevronsUp.d.ts +0 -1
  239. package/components/Icons/ChildPlaying.d.ts +0 -1
  240. package/components/Icons/ChildPlaying.js +2 -2
  241. package/components/Icons/ChildPlaying.js.map +1 -1
  242. package/components/Icons/Cigarette.d.ts +0 -1
  243. package/components/Icons/Cigarette.js +2 -2
  244. package/components/Icons/Cigarette.js.map +1 -1
  245. package/components/Icons/Coins.d.ts +0 -1
  246. package/components/Icons/Coins.js +2 -2
  247. package/components/Icons/Coins.js.map +1 -1
  248. package/components/Icons/Contacts.d.ts +0 -1
  249. package/components/Icons/Copy.d.ts +0 -1
  250. package/components/Icons/CoronaCertificate.d.ts +0 -1
  251. package/components/Icons/CoronaCertificate.js +2 -2
  252. package/components/Icons/CoronaCertificate.js.map +1 -1
  253. package/components/Icons/Coronavirus.d.ts +0 -1
  254. package/components/Icons/Coronavirus.js +2 -2
  255. package/components/Icons/Coronavirus.js.map +1 -1
  256. package/components/Icons/Cough.d.ts +0 -1
  257. package/components/Icons/Cough.js +2 -2
  258. package/components/Icons/Cough.js.map +1 -1
  259. package/components/Icons/CriticalHealthInfo.d.ts +0 -1
  260. package/components/Icons/CriticalHealthInfo.js +2 -2
  261. package/components/Icons/CriticalHealthInfo.js.map +1 -1
  262. package/components/Icons/Cross.d.ts +0 -1
  263. package/components/Icons/Cross.js +2 -2
  264. package/components/Icons/Cross.js.map +1 -1
  265. package/components/Icons/DataExchange.d.ts +0 -1
  266. package/components/Icons/DataReceived.d.ts +0 -1
  267. package/components/Icons/DataSent.d.ts +0 -1
  268. package/components/Icons/Depression.d.ts +0 -1
  269. package/components/Icons/Depression.js +2 -2
  270. package/components/Icons/Depression.js.map +1 -1
  271. package/components/Icons/DigestiveSystem.d.ts +0 -1
  272. package/components/Icons/DigestiveSystem.js +2 -2
  273. package/components/Icons/DigestiveSystem.js.map +1 -1
  274. package/components/Icons/Dizzy.d.ts +0 -1
  275. package/components/Icons/Dizzy.js +2 -2
  276. package/components/Icons/Dizzy.js.map +1 -1
  277. package/components/Icons/Documents.d.ts +0 -1
  278. package/components/Icons/Documents.js +2 -2
  279. package/components/Icons/Documents.js.map +1 -1
  280. package/components/Icons/Dog.d.ts +0 -1
  281. package/components/Icons/Dog.js +2 -2
  282. package/components/Icons/Dog.js.map +1 -1
  283. package/components/Icons/DonorCard.d.ts +0 -1
  284. package/components/Icons/DonorCard.js +2 -2
  285. package/components/Icons/DonorCard.js.map +1 -1
  286. package/components/Icons/Download.d.ts +0 -1
  287. package/components/Icons/Draft.d.ts +0 -1
  288. package/components/Icons/Draft.js +2 -2
  289. package/components/Icons/Draft.js.map +1 -1
  290. package/components/Icons/EChat.d.ts +0 -1
  291. package/components/Icons/Ear.d.ts +0 -1
  292. package/components/Icons/EarDeaf.d.ts +0 -1
  293. package/components/Icons/EarHearingAid.d.ts +0 -1
  294. package/components/Icons/EarNoseThroat.d.ts +0 -1
  295. package/components/Icons/EarNoseThroat.js +2 -2
  296. package/components/Icons/EarNoseThroat.js.map +1 -1
  297. package/components/Icons/EarVolume.d.ts +0 -1
  298. package/components/Icons/ElderlyPerson.d.ts +0 -1
  299. package/components/Icons/ElderlyPerson.js +2 -2
  300. package/components/Icons/ElderlyPerson.js.map +1 -1
  301. package/components/Icons/Embolization.d.ts +0 -1
  302. package/components/Icons/Embolization.js +2 -2
  303. package/components/Icons/Embolization.js.map +1 -1
  304. package/components/Icons/EmergencyCall.d.ts +0 -1
  305. package/components/Icons/EmoticonAnnoyed.d.ts +0 -1
  306. package/components/Icons/EmoticonDelighted.d.ts +0 -1
  307. package/components/Icons/EmoticonDisappointed.d.ts +0 -1
  308. package/components/Icons/EmoticonHappy.d.ts +0 -1
  309. package/components/Icons/EmoticonMeh.d.ts +0 -1
  310. package/components/Icons/EnterFullScreen.d.ts +0 -1
  311. package/components/Icons/Envelope.d.ts +0 -1
  312. package/components/Icons/Epilepsy.d.ts +0 -1
  313. package/components/Icons/Epilepsy.js +2 -2
  314. package/components/Icons/Epilepsy.js.map +1 -1
  315. package/components/Icons/Eraser.d.ts +0 -1
  316. package/components/Icons/ErrorSignFill.d.ts +0 -1
  317. package/components/Icons/ErrorSignStroke.d.ts +0 -1
  318. package/components/Icons/EuropeanHealthCard.d.ts +0 -1
  319. package/components/Icons/EuropeanHealthCard.js +2 -2
  320. package/components/Icons/EuropeanHealthCard.js.map +1 -1
  321. package/components/Icons/ExitFullScreen.d.ts +0 -1
  322. package/components/Icons/Eye.d.ts +0 -1
  323. package/components/Icons/Facebook.d.ts +0 -1
  324. package/components/Icons/Facebook.js +2 -2
  325. package/components/Icons/Facebook.js.map +1 -1
  326. package/components/Icons/FallingLeaf.d.ts +0 -1
  327. package/components/Icons/Female.d.ts +0 -1
  328. package/components/Icons/Female.js +2 -2
  329. package/components/Icons/Female.js.map +1 -1
  330. package/components/Icons/FemaleDoctor.d.ts +0 -1
  331. package/components/Icons/FemaleDoctor.js +2 -2
  332. package/components/Icons/FemaleDoctor.js.map +1 -1
  333. package/components/Icons/Ferry.d.ts +0 -1
  334. package/components/Icons/Ferry.js +2 -2
  335. package/components/Icons/Ferry.js.map +1 -1
  336. package/components/Icons/File.d.ts +0 -1
  337. package/components/Icons/Filter.d.ts +0 -1
  338. package/components/Icons/FingerBleed.d.ts +0 -1
  339. package/components/Icons/FingerBleed.js +2 -2
  340. package/components/Icons/FingerBleed.js.map +1 -1
  341. package/components/Icons/FirstAidKit.d.ts +0 -1
  342. package/components/Icons/FirstAidKit.js +2 -2
  343. package/components/Icons/FirstAidKit.js.map +1 -1
  344. package/components/Icons/FloppyDisk.d.ts +0 -1
  345. package/components/Icons/Football.d.ts +0 -1
  346. package/components/Icons/Football.js +2 -2
  347. package/components/Icons/Football.js.map +1 -1
  348. package/components/Icons/Form.d.ts +0 -1
  349. package/components/Icons/Forward.d.ts +0 -1
  350. package/components/Icons/Gallery.d.ts +0 -1
  351. package/components/Icons/Garden.d.ts +0 -1
  352. package/components/Icons/Garden.js +2 -2
  353. package/components/Icons/Garden.js.map +1 -1
  354. package/components/Icons/GasCan.d.ts +0 -1
  355. package/components/Icons/GasCan.js +2 -2
  356. package/components/Icons/GasCan.js.map +1 -1
  357. package/components/Icons/GenderIdentity.d.ts +0 -1
  358. package/components/Icons/Glasses.d.ts +0 -1
  359. package/components/Icons/Globe.d.ts +0 -1
  360. package/components/Icons/Graph.d.ts +0 -1
  361. package/components/Icons/Group.d.ts +0 -1
  362. package/components/Icons/GroupTwins.d.ts +0 -1
  363. package/components/Icons/HTMLFile.d.ts +0 -1
  364. package/components/Icons/HandWaving.d.ts +0 -1
  365. package/components/Icons/HandWaving.js +2 -2
  366. package/components/Icons/HandWaving.js.map +1 -1
  367. package/components/Icons/HandWithDisease.d.ts +0 -1
  368. package/components/Icons/HandWithDisease.js +2 -2
  369. package/components/Icons/HandWithDisease.js.map +1 -1
  370. package/components/Icons/HandsAndHeart.d.ts +0 -1
  371. package/components/Icons/HealthClinic.d.ts +0 -1
  372. package/components/Icons/HealthClinic.js +2 -2
  373. package/components/Icons/HealthClinic.js.map +1 -1
  374. package/components/Icons/HealthWarning.d.ts +0 -1
  375. package/components/Icons/HealthWarning.js +2 -2
  376. package/components/Icons/HealthWarning.js.map +1 -1
  377. package/components/Icons/HealthcarePerson.d.ts +0 -1
  378. package/components/Icons/HealthcarePersonell.d.ts +0 -1
  379. package/components/Icons/HearingProtection.d.ts +0 -1
  380. package/components/Icons/Heart.d.ts +0 -1
  381. package/components/Icons/HeartHands.d.ts +0 -1
  382. package/components/Icons/HelpSign.d.ts +0 -1
  383. package/components/Icons/HelpingHand.d.ts +0 -1
  384. package/components/Icons/HelpingHand.js +2 -2
  385. package/components/Icons/HelpingHand.js.map +1 -1
  386. package/components/Icons/Hemodialysis.d.ts +0 -1
  387. package/components/Icons/Hemodialysis.js +2 -2
  388. package/components/Icons/Hemodialysis.js.map +1 -1
  389. package/components/Icons/Hiker.d.ts +0 -1
  390. package/components/Icons/Hiker.js +2 -2
  391. package/components/Icons/Hiker.js.map +1 -1
  392. package/components/Icons/Hipprosthesis.d.ts +0 -1
  393. package/components/Icons/Hipprosthesis.js +2 -2
  394. package/components/Icons/Hipprosthesis.js.map +1 -1
  395. package/components/Icons/History.d.ts +0 -1
  396. package/components/Icons/HivAndAids.d.ts +0 -1
  397. package/components/Icons/HivAndAids.js +2 -2
  398. package/components/Icons/HivAndAids.js.map +1 -1
  399. package/components/Icons/Home.d.ts +0 -1
  400. package/components/Icons/Hormone.d.ts +0 -1
  401. package/components/Icons/Hormone.js +2 -2
  402. package/components/Icons/Hormone.js.map +1 -1
  403. package/components/Icons/Hospital.d.ts +0 -1
  404. package/components/Icons/Hourglass.d.ts +0 -1
  405. package/components/Icons/IconNames.d.ts +0 -1
  406. package/components/Icons/ImgFile.d.ts +0 -1
  407. package/components/Icons/ImgFile.js +1 -1
  408. package/components/Icons/ImgFile.js.map +1 -1
  409. package/components/Icons/Inbox.d.ts +0 -1
  410. package/components/Icons/Inbox.js +2 -2
  411. package/components/Icons/Inbox.js.map +1 -1
  412. package/components/Icons/InfoSignFill.d.ts +0 -1
  413. package/components/Icons/InfoSignStroke.d.ts +0 -1
  414. package/components/Icons/Instagram.d.ts +0 -1
  415. package/components/Icons/Instagram.js +2 -2
  416. package/components/Icons/Instagram.js.map +1 -1
  417. package/components/Icons/Intravenous.d.ts +0 -1
  418. package/components/Icons/Intravenous.js +2 -2
  419. package/components/Icons/Intravenous.js.map +1 -1
  420. package/components/Icons/JointPain.d.ts +0 -1
  421. package/components/Icons/JointPain.js +2 -2
  422. package/components/Icons/JointPain.js.map +1 -1
  423. package/components/Icons/Journal.d.ts +0 -1
  424. package/components/Icons/JpgFile.d.ts +0 -1
  425. package/components/Icons/JpgFile.js +2 -2
  426. package/components/Icons/JpgFile.js.map +1 -1
  427. package/components/Icons/Kidney.d.ts +0 -1
  428. package/components/Icons/Kidney.js +2 -2
  429. package/components/Icons/Kidney.js.map +1 -1
  430. package/components/Icons/KitchenScale.d.ts +0 -1
  431. package/components/Icons/KitchenScale.js +4 -4
  432. package/components/Icons/KitchenScale.js.map +1 -1
  433. package/components/Icons/Kjernejournal.d.ts +0 -1
  434. package/components/Icons/Kjernejournal.js +2 -2
  435. package/components/Icons/Kjernejournal.js.map +1 -1
  436. package/components/Icons/Laboratory.d.ts +0 -1
  437. package/components/Icons/Laboratory.js +2 -2
  438. package/components/Icons/Laboratory.js.map +1 -1
  439. package/components/Icons/LaptopBlog.d.ts +0 -1
  440. package/components/Icons/LaptopBlog.js +1 -1
  441. package/components/Icons/LaptopBlog.js.map +1 -1
  442. package/components/Icons/LawBook.d.ts +0 -1
  443. package/components/Icons/LawBook.js +2 -2
  444. package/components/Icons/LawBook.js.map +1 -1
  445. package/components/Icons/LegalDocument.d.ts +0 -1
  446. package/components/Icons/LightBulb.d.ts +0 -1
  447. package/components/Icons/LightBulb.js +2 -2
  448. package/components/Icons/LightBulb.js.map +1 -1
  449. package/components/Icons/List.d.ts +0 -1
  450. package/components/Icons/Location.d.ts +0 -1
  451. package/components/Icons/Lock.d.ts +0 -1
  452. package/components/Icons/Login.d.ts +0 -1
  453. package/components/Icons/Logout.d.ts +0 -1
  454. package/components/Icons/Lungs.d.ts +0 -1
  455. package/components/Icons/Lungs.js +2 -2
  456. package/components/Icons/Lungs.js.map +1 -1
  457. package/components/Icons/Makeup.d.ts +0 -1
  458. package/components/Icons/Makeup.js +2 -2
  459. package/components/Icons/Makeup.js.map +1 -1
  460. package/components/Icons/MaleDoctor.d.ts +0 -1
  461. package/components/Icons/MaleDoctor.js +2 -2
  462. package/components/Icons/MaleDoctor.js.map +1 -1
  463. package/components/Icons/MaleDoctorAndPerson.d.ts +0 -1
  464. package/components/Icons/MaleDoctorAndPerson.js +2 -2
  465. package/components/Icons/MaleDoctorAndPerson.js.map +1 -1
  466. package/components/Icons/MaleGenitalia.d.ts +0 -1
  467. package/components/Icons/MaleGenitalia.js +2 -2
  468. package/components/Icons/MaleGenitalia.js.map +1 -1
  469. package/components/Icons/Medicine.d.ts +0 -1
  470. package/components/Icons/MedicineWarning.d.ts +0 -1
  471. package/components/Icons/MedicineWarning.js +2 -2
  472. package/components/Icons/MedicineWarning.js.map +1 -1
  473. package/components/Icons/MentalHealthAdult.d.ts +0 -1
  474. package/components/Icons/MentalHealthAdult.js +2 -2
  475. package/components/Icons/MentalHealthAdult.js.map +1 -1
  476. package/components/Icons/MentalHealthChild.d.ts +0 -1
  477. package/components/Icons/MentalHealthChild.js +2 -2
  478. package/components/Icons/MentalHealthChild.js.map +1 -1
  479. package/components/Icons/Menu.d.ts +0 -1
  480. package/components/Icons/Microscope.d.ts +0 -1
  481. package/components/Icons/Microscope.js +2 -2
  482. package/components/Icons/Microscope.js.map +1 -1
  483. package/components/Icons/Minus.d.ts +0 -1
  484. package/components/Icons/Mirror.d.ts +0 -1
  485. package/components/Icons/Mirror.js +2 -2
  486. package/components/Icons/Mirror.js.map +1 -1
  487. package/components/Icons/MobilePhone.d.ts +0 -1
  488. package/components/Icons/MotherHoldingBaby.d.ts +0 -1
  489. package/components/Icons/MotherHoldingBaby.js +2 -2
  490. package/components/Icons/MotherHoldingBaby.js.map +1 -1
  491. package/components/Icons/MuscleBack.d.ts +0 -1
  492. package/components/Icons/MuscleBack.js +2 -2
  493. package/components/Icons/MuscleBack.js.map +1 -1
  494. package/components/Icons/MuscleLeg.d.ts +0 -1
  495. package/components/Icons/MuscleLeg.js +2 -2
  496. package/components/Icons/MuscleLeg.js.map +1 -1
  497. package/components/Icons/Mushroom.d.ts +0 -1
  498. package/components/Icons/Mushroom.js +2 -2
  499. package/components/Icons/Mushroom.js.map +1 -1
  500. package/components/Icons/Music.d.ts +0 -1
  501. package/components/Icons/Music.js +2 -2
  502. package/components/Icons/Music.js.map +1 -1
  503. package/components/Icons/MusselsAndSalt.d.ts +0 -1
  504. package/components/Icons/MusselsAndSalt.js +2 -2
  505. package/components/Icons/MusselsAndSalt.js.map +1 -1
  506. package/components/Icons/NoAccess.d.ts +0 -1
  507. package/components/Icons/NoEye.d.ts +0 -1
  508. package/components/Icons/NoFilter.d.ts +0 -1
  509. package/components/Icons/Notepad.d.ts +0 -1
  510. package/components/Icons/Notepad.js +2 -2
  511. package/components/Icons/Notepad.js.map +1 -1
  512. package/components/Icons/Osteotomy.d.ts +0 -1
  513. package/components/Icons/Osteotomy.js +2 -2
  514. package/components/Icons/Osteotomy.js.map +1 -1
  515. package/components/Icons/PaintRoller.d.ts +0 -1
  516. package/components/Icons/PaintRoller.js +2 -2
  517. package/components/Icons/PaintRoller.js.map +1 -1
  518. package/components/Icons/PaperPlane.d.ts +0 -1
  519. package/components/Icons/PatientAndPerson.d.ts +0 -1
  520. package/components/Icons/PatientAndPerson.js +2 -2
  521. package/components/Icons/PatientAndPerson.js.map +1 -1
  522. package/components/Icons/Pause.d.ts +0 -1
  523. package/components/Icons/PdfFile.d.ts +0 -1
  524. package/components/Icons/PdfFile.js +1 -1
  525. package/components/Icons/PdfFile.js.map +1 -1
  526. package/components/Icons/Pencil.d.ts +0 -1
  527. package/components/Icons/PeopleTalking.d.ts +0 -1
  528. package/components/Icons/PeopleTalking.js +2 -2
  529. package/components/Icons/PeopleTalking.js.map +1 -1
  530. package/components/Icons/Peritonealdialysis.d.ts +0 -1
  531. package/components/Icons/Peritonealdialysis.js +2 -2
  532. package/components/Icons/Peritonealdialysis.js.map +1 -1
  533. package/components/Icons/Person.d.ts +0 -1
  534. package/components/Icons/Person.js +2 -2
  535. package/components/Icons/Person.js.map +1 -1
  536. package/components/Icons/PersonAndPatient.d.ts +0 -1
  537. package/components/Icons/PersonAndPatient.js +2 -2
  538. package/components/Icons/PersonAndPatient.js.map +1 -1
  539. package/components/Icons/PersonCancel.d.ts +0 -1
  540. package/components/Icons/PersonInXRayMachine.d.ts +0 -1
  541. package/components/Icons/PersonInXRayMachine.js +2 -2
  542. package/components/Icons/PersonInXRayMachine.js.map +1 -1
  543. package/components/Icons/PersonOverweight.d.ts +0 -1
  544. package/components/Icons/PersonOverweight.js +2 -2
  545. package/components/Icons/PersonOverweight.js.map +1 -1
  546. package/components/Icons/PersonRelaxing.d.ts +0 -1
  547. package/components/Icons/PersonRelaxing.js +2 -2
  548. package/components/Icons/PersonRelaxing.js.map +1 -1
  549. package/components/Icons/PersonWithBrain.d.ts +0 -1
  550. package/components/Icons/PersonWithBrain.js +2 -2
  551. package/components/Icons/PersonWithBrain.js.map +1 -1
  552. package/components/Icons/PersonWithBrokenArm.d.ts +0 -1
  553. package/components/Icons/PersonWithBrokenArm.js +2 -2
  554. package/components/Icons/PersonWithBrokenArm.js.map +1 -1
  555. package/components/Icons/PersonWithCrutches.d.ts +0 -1
  556. package/components/Icons/PersonWithCrutches.js +2 -2
  557. package/components/Icons/PersonWithCrutches.js.map +1 -1
  558. package/components/Icons/PersonWithJaw.d.ts +0 -1
  559. package/components/Icons/PersonWithJaw.js +2 -2
  560. package/components/Icons/PersonWithJaw.js.map +1 -1
  561. package/components/Icons/PersonWithMagnifyingGlass.d.ts +0 -1
  562. package/components/Icons/PersonWithMagnifyingGlass.js +2 -2
  563. package/components/Icons/PersonWithMagnifyingGlass.js.map +1 -1
  564. package/components/Icons/PersonWithSenses.d.ts +0 -1
  565. package/components/Icons/PersonWithSenses.js +2 -2
  566. package/components/Icons/PersonWithSenses.js.map +1 -1
  567. package/components/Icons/PersonWorking.d.ts +0 -1
  568. package/components/Icons/PersonWorking.js +2 -2
  569. package/components/Icons/PersonWorking.js.map +1 -1
  570. package/components/Icons/PersonalPlan.d.ts +0 -1
  571. package/components/Icons/PizzaSlice.d.ts +0 -1
  572. package/components/Icons/PizzaSlice.js +2 -2
  573. package/components/Icons/PizzaSlice.js.map +1 -1
  574. package/components/Icons/Plane.d.ts +0 -1
  575. package/components/Icons/Plane.js +2 -2
  576. package/components/Icons/Plane.js.map +1 -1
  577. package/components/Icons/Plant.d.ts +0 -1
  578. package/components/Icons/Plant.js +2 -2
  579. package/components/Icons/Plant.js.map +1 -1
  580. package/components/Icons/Play.d.ts +0 -1
  581. package/components/Icons/PlusLarge.d.ts +0 -1
  582. package/components/Icons/PlusSmall.d.ts +0 -1
  583. package/components/Icons/PngFile.d.ts +0 -1
  584. package/components/Icons/PngFile.js +2 -2
  585. package/components/Icons/PngFile.js.map +1 -1
  586. package/components/Icons/Podcast.d.ts +0 -1
  587. package/components/Icons/PoisonInformation.d.ts +0 -1
  588. package/components/Icons/PoisonInformation.js +2 -2
  589. package/components/Icons/PoisonInformation.js.map +1 -1
  590. package/components/Icons/Pregnant.d.ts +0 -1
  591. package/components/Icons/Pregnant.js +2 -2
  592. package/components/Icons/Pregnant.js.map +1 -1
  593. package/components/Icons/Printer.d.ts +0 -1
  594. package/components/Icons/Psychosis.d.ts +0 -1
  595. package/components/Icons/Psychosis.js +2 -2
  596. package/components/Icons/Psychosis.js.map +1 -1
  597. package/components/Icons/Publication.d.ts +0 -1
  598. package/components/Icons/Publication.js +1 -1
  599. package/components/Icons/Publication.js.map +1 -1
  600. package/components/Icons/Puzzle.d.ts +0 -1
  601. package/components/Icons/Puzzle.js +2 -2
  602. package/components/Icons/Puzzle.js.map +1 -1
  603. package/components/Icons/QrCode.d.ts +0 -1
  604. package/components/Icons/Quarrel.d.ts +0 -1
  605. package/components/Icons/RadioTherapy.d.ts +0 -1
  606. package/components/Icons/RadioTherapy.js +2 -2
  607. package/components/Icons/RadioTherapy.js.map +1 -1
  608. package/components/Icons/RadioactiveTreatment.d.ts +0 -1
  609. package/components/Icons/RadioactiveTreatment.js +2 -2
  610. package/components/Icons/RadioactiveTreatment.js.map +1 -1
  611. package/components/Icons/Radioiodine.d.ts +0 -1
  612. package/components/Icons/Radioiodine.js +2 -2
  613. package/components/Icons/Radioiodine.js.map +1 -1
  614. package/components/Icons/Receipt.d.ts +0 -1
  615. package/components/Icons/Receipt.js +2 -2
  616. package/components/Icons/Receipt.js.map +1 -1
  617. package/components/Icons/Receptionist.d.ts +0 -1
  618. package/components/Icons/Recovery.d.ts +0 -1
  619. package/components/Icons/Recovery.js +2 -2
  620. package/components/Icons/Recovery.js.map +1 -1
  621. package/components/Icons/Referral.d.ts +0 -1
  622. package/components/Icons/Refresh.d.ts +0 -1
  623. package/components/Icons/Refund.d.ts +0 -1
  624. package/components/Icons/Refund.js +2 -2
  625. package/components/Icons/Refund.js.map +1 -1
  626. package/components/Icons/Reply.d.ts +0 -1
  627. package/components/Icons/Rocket.d.ts +0 -1
  628. package/components/Icons/Rocket.js +2 -2
  629. package/components/Icons/Rocket.js.map +1 -1
  630. package/components/Icons/RtfFile.d.ts +0 -1
  631. package/components/Icons/RtfFile.js +2 -2
  632. package/components/Icons/RtfFile.js.map +1 -1
  633. package/components/Icons/STDs.d.ts +0 -1
  634. package/components/Icons/Save.d.ts +0 -1
  635. package/components/Icons/Scale.d.ts +0 -1
  636. package/components/Icons/Scale.js +2 -2
  637. package/components/Icons/Scale.js.map +1 -1
  638. package/components/Icons/ScreenReader.d.ts +0 -1
  639. package/components/Icons/Search.d.ts +0 -1
  640. package/components/Icons/SectionSign.d.ts +0 -1
  641. package/components/Icons/Settings.d.ts +0 -1
  642. package/components/Icons/Sexualorientation.d.ts +0 -1
  643. package/components/Icons/ShakingHand.d.ts +0 -1
  644. package/components/Icons/ShakingHand.js +2 -2
  645. package/components/Icons/ShakingHand.js.map +1 -1
  646. package/components/Icons/Share.d.ts +0 -1
  647. package/components/Icons/Shield.d.ts +0 -1
  648. package/components/Icons/Shield.js +4 -4
  649. package/components/Icons/Shield.js.map +1 -1
  650. package/components/Icons/ShuntOperation.d.ts +0 -1
  651. package/components/Icons/ShuntOperation.js +2 -2
  652. package/components/Icons/ShuntOperation.js.map +1 -1
  653. package/components/Icons/Skeleton.d.ts +0 -1
  654. package/components/Icons/Skeleton.js +2 -2
  655. package/components/Icons/Skeleton.js.map +1 -1
  656. package/components/Icons/Skin.d.ts +0 -1
  657. package/components/Icons/Skin.js +2 -2
  658. package/components/Icons/Skin.js.map +1 -1
  659. package/components/Icons/Snake.d.ts +0 -1
  660. package/components/Icons/Snake.js +2 -2
  661. package/components/Icons/Snake.js.map +1 -1
  662. package/components/Icons/Snapchat.d.ts +0 -1
  663. package/components/Icons/Snapchat.js +2 -2
  664. package/components/Icons/Snapchat.js.map +1 -1
  665. package/components/Icons/SortDown.d.ts +0 -1
  666. package/components/Icons/SortUp.d.ts +0 -1
  667. package/components/Icons/SpeechBubble.d.ts +0 -1
  668. package/components/Icons/Spray.d.ts +0 -1
  669. package/components/Icons/Spray.js +2 -2
  670. package/components/Icons/Spray.js.map +1 -1
  671. package/components/Icons/Stopwatch.d.ts +0 -1
  672. package/components/Icons/Sun.d.ts +0 -1
  673. package/components/Icons/SupportingPerson.d.ts +0 -1
  674. package/components/Icons/Surgery.d.ts +0 -1
  675. package/components/Icons/Surgery.js +2 -2
  676. package/components/Icons/Surgery.js.map +1 -1
  677. package/components/Icons/Syringe.d.ts +0 -1
  678. package/components/Icons/Syringe.js +3 -3
  679. package/components/Icons/Syringe.js.map +1 -1
  680. package/components/Icons/Taxi.d.ts +0 -1
  681. package/components/Icons/Taxi.js +2 -2
  682. package/components/Icons/Taxi.js.map +1 -1
  683. package/components/Icons/TeddyBear.d.ts +0 -1
  684. package/components/Icons/TeddyBear.js +2 -2
  685. package/components/Icons/TeddyBear.js.map +1 -1
  686. package/components/Icons/Teenagers.d.ts +0 -1
  687. package/components/Icons/Teenagers.js +2 -2
  688. package/components/Icons/Teenagers.js.map +1 -1
  689. package/components/Icons/ThinkingAboutBaby.d.ts +0 -1
  690. package/components/Icons/ThinkingAboutBaby.js +2 -2
  691. package/components/Icons/ThinkingAboutBaby.js.map +1 -1
  692. package/components/Icons/Ticket.d.ts +0 -1
  693. package/components/Icons/Ticket.js +2 -2
  694. package/components/Icons/Ticket.js.map +1 -1
  695. package/components/Icons/TimePassing.d.ts +0 -1
  696. package/components/Icons/Tombstone.d.ts +0 -1
  697. package/components/Icons/Toolbox.d.ts +0 -1
  698. package/components/Icons/Tooth.d.ts +0 -1
  699. package/components/Icons/Tooth.js +2 -2
  700. package/components/Icons/Tooth.js.map +1 -1
  701. package/components/Icons/TotalKneeProsthesis.d.ts +0 -1
  702. package/components/Icons/TotalKneeProsthesis.js +2 -2
  703. package/components/Icons/TotalKneeProsthesis.js.map +1 -1
  704. package/components/Icons/Train.d.ts +0 -1
  705. package/components/Icons/Train.js +2 -2
  706. package/components/Icons/Train.js.map +1 -1
  707. package/components/Icons/Transplantation.d.ts +0 -1
  708. package/components/Icons/Transplantation.js +2 -2
  709. package/components/Icons/Transplantation.js.map +1 -1
  710. package/components/Icons/TrashCan.d.ts +0 -1
  711. package/components/Icons/TravelRoute.d.ts +0 -1
  712. package/components/Icons/TravelRoute.js +2 -2
  713. package/components/Icons/TravelRoute.js.map +1 -1
  714. package/components/Icons/TriangleX.d.ts +0 -1
  715. package/components/Icons/Twitter.d.ts +0 -1
  716. package/components/Icons/Twitter.js +2 -2
  717. package/components/Icons/Twitter.js.map +1 -1
  718. package/components/Icons/Undo.d.ts +0 -1
  719. package/components/Icons/UniProsthesis.d.ts +0 -1
  720. package/components/Icons/UniProsthesis.js +1 -1
  721. package/components/Icons/UniProsthesis.js.map +1 -1
  722. package/components/Icons/Upload.d.ts +0 -1
  723. package/components/Icons/UserOrganization.d.ts +0 -1
  724. package/components/Icons/UserOrganization.js +2 -2
  725. package/components/Icons/UserOrganization.js.map +1 -1
  726. package/components/Icons/Vaccine.d.ts +0 -1
  727. package/components/Icons/VerticalDots.d.ts +0 -1
  728. package/components/Icons/VideoCamera.d.ts +0 -1
  729. package/components/Icons/VideoChat.d.ts +0 -1
  730. package/components/Icons/Wallet.d.ts +0 -1
  731. package/components/Icons/Watch.d.ts +0 -1
  732. package/components/Icons/Website.d.ts +0 -1
  733. package/components/Icons/Website.js +2 -2
  734. package/components/Icons/Website.js.map +1 -1
  735. package/components/Icons/Wheelchair.d.ts +0 -1
  736. package/components/Icons/Wheelchair.js +2 -2
  737. package/components/Icons/Wheelchair.js.map +1 -1
  738. package/components/Icons/WheelchairActive.d.ts +0 -1
  739. package/components/Icons/WheelchairActive.js +2 -2
  740. package/components/Icons/WheelchairActive.js.map +1 -1
  741. package/components/Icons/Window.d.ts +0 -1
  742. package/components/Icons/Window.js +2 -2
  743. package/components/Icons/Window.js.map +1 -1
  744. package/components/Icons/WordDocument.d.ts +0 -1
  745. package/components/Icons/WordDocument.js +2 -2
  746. package/components/Icons/WordDocument.js.map +1 -1
  747. package/components/Icons/WorkSuitcase.d.ts +0 -1
  748. package/components/Icons/WorkSuitcase.js +2 -2
  749. package/components/Icons/WorkSuitcase.js.map +1 -1
  750. package/components/Icons/X.d.ts +0 -1
  751. package/components/Icons/XOutline.d.ts +0 -1
  752. package/components/Icons/XOutline.js +2 -2
  753. package/components/Icons/XOutline.js.map +1 -1
  754. package/components/Icons/XmlFile.d.ts +0 -1
  755. package/components/Icons/XmlFile.js +2 -2
  756. package/components/Icons/XmlFile.js.map +1 -1
  757. package/components/Icons/YouTube.d.ts +0 -1
  758. package/components/Icons/YouTube.js +2 -2
  759. package/components/Icons/YouTube.js.map +1 -1
  760. package/components/Icons/Zoom.d.ts +0 -1
  761. package/components/Illustration/Illustration.d.ts +0 -1
  762. package/components/Illustration/Illustration.stories.d.ts +33 -0
  763. package/components/Illustration/Illustrations.stories.d.ts +40 -0
  764. package/components/Illustration/index.d.ts +0 -1
  765. package/components/Illustration/utils.d.ts +0 -1
  766. package/components/Illustrations/Doctor.d.ts +0 -1
  767. package/components/Illustrations/DoctorMedium.d.ts +0 -1
  768. package/components/Illustrations/DoctorSmall.d.ts +0 -1
  769. package/components/Illustrations/HealthcarePersonnel.d.ts +0 -1
  770. package/components/Illustrations/HealthcarePersonnelMedium.d.ts +0 -1
  771. package/components/Illustrations/HealthcarePersonnelSmall.d.ts +0 -1
  772. package/components/Illustrations/IllustrationNames.d.ts +0 -1
  773. package/components/Input/Input.d.ts +0 -1
  774. package/components/Input/Input.js +30 -30
  775. package/components/Input/Input.js.map +1 -1
  776. package/components/Input/Input.stories.d.ts +93 -0
  777. package/components/Input/index.d.ts +0 -1
  778. package/components/Label/Label.d.ts +3 -4
  779. package/components/Label/Label.js +56 -61
  780. package/components/Label/Label.js.map +1 -1
  781. package/components/Label/Label.stories.d.ts +24 -0
  782. package/components/Label/SubLabel.d.ts +0 -1
  783. package/components/Label/index.d.ts +0 -1
  784. package/components/LazyIcon/ErrorBoundary.d.ts +0 -1
  785. package/components/LazyIcon/LazyIcon.d.ts +0 -1
  786. package/components/LazyIcon/LazyIcon.js.map +1 -1
  787. package/components/LazyIcon/LazyIcon.stories.d.ts +24 -0
  788. package/components/LazyIcon/index.d.ts +0 -1
  789. package/components/LazyIcon/utils.d.ts +0 -1
  790. package/components/LazyIllustration/LazyIllustration.d.ts +0 -1
  791. package/components/LazyIllustration/LazyIllustration.js.map +1 -1
  792. package/components/LazyIllustration/LazyIllustration.stories.d.ts +37 -0
  793. package/components/LazyIllustration/index.d.ts +0 -1
  794. package/components/LinkList/LinkList.d.ts +0 -1
  795. package/components/LinkList/LinkList.js +19 -19
  796. package/components/LinkList/LinkList.js.map +1 -1
  797. package/components/LinkList/LinkList.stories.d.ts +46 -0
  798. package/components/LinkList/index.d.ts +0 -1
  799. package/components/List/List.d.ts +0 -1
  800. package/components/List/List.stories.d.ts +35 -0
  801. package/components/List/index.d.ts +0 -1
  802. package/components/ListHeader/ListHeader.d.ts +1 -2
  803. package/components/ListHeader/ListHeader.js +67 -60
  804. package/components/ListHeader/ListHeader.js.map +1 -1
  805. package/components/ListHeader/ListHeaderText/ListHeaderText.d.ts +1 -2
  806. package/components/ListHeader/ListHeaderText/ListHeaderText.js +8 -8
  807. package/components/ListHeader/ListHeaderText/ListHeaderText.js.map +1 -1
  808. package/components/ListHeader/ListHeaderText/index.d.ts +0 -1
  809. package/components/ListHeader/index.d.ts +0 -1
  810. package/components/Loader/Loader.d.ts +1 -2
  811. package/components/Loader/Loader.js +35 -35
  812. package/components/Loader/Loader.js.map +1 -1
  813. package/components/Loader/Loader.stories.d.ts +30 -0
  814. package/components/Loader/index.d.ts +0 -1
  815. package/components/Logo/Logo.d.ts +1 -2
  816. package/components/Logo/Logo.js.map +1 -1
  817. package/components/Logo/Logo.stories.d.ts +36 -0
  818. package/components/Logo/index.d.ts +0 -1
  819. package/components/MaxCharacters/MaxCharacters.d.ts +0 -1
  820. package/components/Modal/Modal.d.ts +0 -1
  821. package/components/Modal/Modal.js +16 -16
  822. package/components/Modal/Modal.js.map +1 -1
  823. package/components/Modal/Modal.stories.d.ts +72 -0
  824. package/components/Modal/index.d.ts +0 -1
  825. package/components/NotificationPanel/DetailButton/DetailButton.d.ts +0 -1
  826. package/components/NotificationPanel/NotificationPanel.d.ts +0 -1
  827. package/components/NotificationPanel/NotificationPanel.js +54 -55
  828. package/components/NotificationPanel/NotificationPanel.js.map +1 -1
  829. package/components/NotificationPanel/NotificationPanel.stories.d.ts +53 -0
  830. package/components/NotificationPanel/index.d.ts +0 -1
  831. package/components/Panel/Panel.d.ts +0 -1
  832. package/components/Panel/Panel.js +31 -31
  833. package/components/Panel/Panel.js.map +1 -1
  834. package/components/Panel/Panel.stories.d.ts +88 -0
  835. package/components/Panel/index.d.ts +0 -1
  836. package/components/PanelList/PanelList.d.ts +1 -2
  837. package/components/PanelList/PanelList.js +10 -10
  838. package/components/PanelList/PanelList.js.map +1 -1
  839. package/components/PanelList/PanelList.stories.d.ts +26 -0
  840. package/components/PanelList/index.d.ts +0 -1
  841. package/components/PopMenu/PopMenu.d.ts +0 -1
  842. package/components/PopMenu/PopMenu.stories.d.ts +28 -0
  843. package/components/PopMenu/index.d.ts +0 -1
  844. package/components/PopOver/PopOver.d.ts +0 -1
  845. package/components/PopOver/PopOver.stories.d.ts +33 -0
  846. package/components/PopOver/index.d.ts +0 -1
  847. package/components/PopOver/utils.d.ts +0 -1
  848. package/components/Portal/index.d.ts +0 -1
  849. package/components/PromoPanel/PromoPanel.d.ts +1 -2
  850. package/components/PromoPanel/PromoPanel.js +1 -1
  851. package/components/PromoPanel/PromoPanel.js.map +1 -1
  852. package/components/PromoPanel/PromoPanel.stories.d.ts +43 -0
  853. package/components/PromoPanel/index.d.ts +0 -1
  854. package/components/PromoPanel/styles.module.scss +3 -1
  855. package/components/RadioButton/RadioButton.d.ts +0 -1
  856. package/components/RadioButton/RadioButton.js +21 -22
  857. package/components/RadioButton/RadioButton.js.map +1 -1
  858. package/components/RadioButton/RadioButton.stories.d.ts +56 -0
  859. package/components/RadioButton/index.d.ts +0 -1
  860. package/components/Select/Select.d.ts +0 -3
  861. package/components/Select/Select.js +28 -32
  862. package/components/Select/Select.js.map +1 -1
  863. package/components/Select/Select.stories.d.ts +37 -0
  864. package/components/Select/index.d.ts +0 -1
  865. package/components/ServiceMessage/ServiceMessage.d.ts +0 -1
  866. package/components/ServiceMessage/ServiceMessage.js +26 -31
  867. package/components/ServiceMessage/ServiceMessage.js.map +1 -1
  868. package/components/ServiceMessage/ServiceMessage.stories.d.ts +70 -0
  869. package/components/ServiceMessage/index.d.ts +0 -1
  870. package/components/SharingStatus/SharingStatus.d.ts +0 -1
  871. package/components/SharingStatus/SharingStatus.stories.d.ts +30 -0
  872. package/components/SharingStatus/index.d.ts +0 -1
  873. package/components/Slider/Slider.d.ts +1 -2
  874. package/components/Slider/Slider.js.map +1 -1
  875. package/components/Slider/Slider.stories.d.ts +51 -0
  876. package/components/Slider/index.d.ts +0 -1
  877. package/components/Spacer/Spacer.d.ts +1 -2
  878. package/components/Spacer/Spacer.js.map +1 -1
  879. package/components/Spacer/Spacer.stories.d.ts +16 -0
  880. package/components/Spacer/index.d.ts +0 -1
  881. package/components/StatusDot/StatusDot.d.ts +0 -1
  882. package/components/StatusDot/StatusDot.js +8 -9
  883. package/components/StatusDot/StatusDot.js.map +1 -1
  884. package/components/StatusDot/StatusDot.stories.d.ts +30 -0
  885. package/components/StatusDot/index.d.ts +0 -1
  886. package/components/Step/Step.d.ts +0 -1
  887. package/components/Step/Step.js.map +1 -1
  888. package/components/Step/Step.stories.d.ts +31 -0
  889. package/components/Step/index.d.ts +0 -1
  890. package/components/StepButtons/StepButtons.d.ts +0 -1
  891. package/components/StepButtons/StepButtons.js +8 -8
  892. package/components/StepButtons/StepButtons.js.map +1 -1
  893. package/components/StepButtons/StepButtons.stories.d.ts +18 -0
  894. package/components/StepButtons/index.d.ts +0 -1
  895. package/components/Stepper/Dot.d.ts +0 -1
  896. package/components/Stepper/DotList.d.ts +0 -1
  897. package/components/Stepper/Stepper.d.ts +0 -1
  898. package/components/Stepper/Stepper.js +2 -2
  899. package/components/Stepper/Stepper.stories.d.ts +37 -0
  900. package/components/Stepper/index.d.ts +0 -1
  901. package/components/Stepper/utils.d.ts +0 -1
  902. package/components/Table/Table.d.ts +0 -1
  903. package/components/Table/Table.stories.d.ts +89 -0
  904. package/components/Table/TableBody/TableBody.d.ts +0 -1
  905. package/components/Table/TableBody/index.d.ts +0 -1
  906. package/components/Table/TableCell/TableCell.d.ts +0 -1
  907. package/components/Table/TableCell/index.d.ts +0 -1
  908. package/components/Table/TableExpandedRow/TableExpandedRow.d.ts +0 -1
  909. package/components/Table/TableExpandedRow/TableExpandedRow.js +11 -13
  910. package/components/Table/TableExpandedRow/TableExpandedRow.js.map +1 -1
  911. package/components/Table/TableExpandedRow/index.d.ts +0 -1
  912. package/components/Table/TableExpanderCell/TableExpanderCell.d.ts +0 -1
  913. package/components/Table/TableExpanderCell/TableExpanderCellMobile.d.ts +0 -1
  914. package/components/Table/TableExpanderCell/index.d.ts +0 -1
  915. package/components/Table/TableHead/TableHead.d.ts +0 -1
  916. package/components/Table/TableHead/index.d.ts +0 -1
  917. package/components/Table/TableHeadCell/TableHeadCell.d.ts +0 -1
  918. package/components/Table/TableHeadCell/index.d.ts +0 -1
  919. package/components/Table/TableRow/TableRow.d.ts +0 -1
  920. package/components/Table/TableRow/TableRow.js +24 -25
  921. package/components/Table/TableRow/TableRow.js.map +1 -1
  922. package/components/Table/TableRow/index.d.ts +0 -1
  923. package/components/Table/index.d.ts +0 -1
  924. package/components/Table/utils.d.ts +0 -1
  925. package/components/Table/utils.js +11 -16
  926. package/components/Table/utils.js.map +1 -1
  927. package/components/Tag/Tag.d.ts +1 -2
  928. package/components/Tag/Tag.js +11 -11
  929. package/components/Tag/Tag.js.map +1 -1
  930. package/components/Tag/Tag.stories.d.ts +47 -0
  931. package/components/Tag/index.d.ts +0 -1
  932. package/components/TagList/TagList.d.ts +1 -2
  933. package/components/TagList/TagList.js.map +1 -1
  934. package/components/TagList/TagList.stories.d.ts +16 -0
  935. package/components/TagList/index.d.ts +0 -1
  936. package/components/Textarea/Textarea.d.ts +1 -2
  937. package/components/Textarea/Textarea.js +47 -50
  938. package/components/Textarea/Textarea.js.map +1 -1
  939. package/components/Textarea/Textarea.stories.d.ts +93 -0
  940. package/components/Textarea/index.d.ts +0 -1
  941. package/components/Tile/Tile.d.ts +0 -1
  942. package/components/Tile/Tile.stories.d.ts +39 -0
  943. package/components/Tile/index.d.ts +0 -1
  944. package/components/Title/Title.d.ts +0 -1
  945. package/components/Title/Title.stories.d.ts +39 -0
  946. package/components/Title/index.d.ts +0 -1
  947. package/components/Tooltip/Tooltip.d.ts +0 -1
  948. package/components/Tooltip/Tooltip.stories.d.ts +29 -0
  949. package/components/Tooltip/TooltipWord/TooltipWord.d.ts +0 -1
  950. package/components/Tooltip/TooltipWord/index.d.ts +0 -1
  951. package/components/Tooltip/index.d.ts +0 -1
  952. package/components/TooltipExample/TooltipExample.d.ts +0 -1
  953. package/components/TooltipExample/index.d.ts +0 -1
  954. package/components/Trigger/HelpSign.d.ts +0 -1
  955. package/components/Trigger/InfoSignStroke.d.ts +0 -1
  956. package/components/Trigger/Trigger.d.ts +0 -1
  957. package/components/Trigger/Trigger.js +6 -6
  958. package/components/Trigger/Trigger.js.map +1 -1
  959. package/components/Trigger/Trigger.stories.d.ts +51 -0
  960. package/components/Trigger/index.d.ts +0 -1
  961. package/components/Validation/Validation.d.ts +0 -1
  962. package/components/Validation/Validation.js +9 -9
  963. package/components/Validation/Validation.js.map +1 -1
  964. package/components/Validation/Validation.stories.d.ts +36 -0
  965. package/components/Validation/index.d.ts +0 -1
  966. package/constants.d.ts +0 -1
  967. package/hoc/withBreakpoint/index.d.ts +0 -1
  968. package/hoc/withBreakpoint/withBreakpoint.d.ts +0 -1
  969. package/hoc/withBreakpoint/withBreakpoint.stories.d.ts +17 -0
  970. package/hooks/useBreakpoint.d.ts +0 -1
  971. package/hooks/useBreakpoint.stories.d.ts +16 -0
  972. package/hooks/useDelayedState.d.ts +0 -1
  973. package/hooks/useDelayedState.stories.d.ts +27 -0
  974. package/hooks/useElementList.d.ts +0 -1
  975. package/hooks/useElementList.stories.d.ts +16 -0
  976. package/hooks/useEventListenerState.d.ts +1 -2
  977. package/hooks/useExpand.d.ts +0 -1
  978. package/hooks/useFocusToggle.d.ts +0 -1
  979. package/hooks/useFocusToggle.stories.d.ts +16 -0
  980. package/hooks/useFocusTrap.d.ts +0 -1
  981. package/hooks/useFocusTrap.stories.d.ts +16 -0
  982. package/hooks/useFocusableElements.d.ts +0 -1
  983. package/hooks/useFocusableElements.stories.d.ts +16 -0
  984. package/hooks/useHover.d.ts +1 -2
  985. package/hooks/useHover.stories.d.ts +16 -0
  986. package/hooks/useIcons.d.ts +0 -1
  987. package/hooks/useIntersectionObserver.d.ts +0 -1
  988. package/hooks/useIntersectionObserver.stories.d.ts +16 -0
  989. package/hooks/useInterval.d.ts +0 -1
  990. package/hooks/useInterval.stories.d.ts +16 -0
  991. package/hooks/useIsVisible.d.ts +0 -1
  992. package/hooks/useIsVisible.stories.d.ts +27 -0
  993. package/hooks/useKeyboardEvent.d.ts +0 -1
  994. package/hooks/useKeyboardEvent.stories.d.ts +16 -0
  995. package/hooks/useLayoutEvent.d.ts +0 -1
  996. package/hooks/useLayoutEvent.stories.d.ts +16 -0
  997. package/hooks/useOutsideEvent.d.ts +0 -1
  998. package/hooks/useOutsideEvent.stories.d.ts +16 -0
  999. package/hooks/usePrevious.d.ts +0 -1
  1000. package/hooks/usePseudoClasses.d.ts +1 -2
  1001. package/hooks/usePseudoClasses.stories.d.ts +16 -0
  1002. package/hooks/useResizeObserver.d.ts +0 -1
  1003. package/hooks/useResizeObserver.stories.d.ts +16 -0
  1004. package/hooks/useSize.d.ts +0 -1
  1005. package/hooks/useSize.stories.d.ts +16 -0
  1006. package/hooks/useSticky.d.ts +0 -1
  1007. package/hooks/useSticky.stories.d.ts +16 -0
  1008. package/hooks/useToggle.d.ts +0 -1
  1009. package/hooks/useUuid.d.ts +0 -1
  1010. package/hooks/useUuid.stories.d.ts +16 -0
  1011. package/index.d.ts +0 -1
  1012. package/package.json +3 -3
  1013. package/scss/_fonts.scss +43 -13
  1014. package/theme/currys/color.d.ts +1 -2
  1015. package/theme/currys/color.js +3 -3
  1016. package/theme/currys/color.js.map +1 -1
  1017. package/theme/currys/index.d.ts +0 -1
  1018. package/theme/currys/spacing.d.ts +0 -1
  1019. package/theme/grid.d.ts +0 -1
  1020. package/theme/index.d.ts +0 -1
  1021. package/theme/palette.d.ts +0 -1
  1022. package/theme/spacers.d.ts +0 -1
  1023. package/utils/accessibility.d.ts +0 -1
  1024. package/utils/component.d.ts +0 -1
  1025. package/utils/debounce.d.ts +0 -1
  1026. package/utils/device.d.ts +0 -1
  1027. package/utils/environment.d.ts +0 -1
  1028. package/utils/focus.d.ts +0 -1
  1029. package/utils/loremtext.d.ts +0 -1
  1030. package/utils/mobile.d.ts +0 -1
  1031. package/utils/refs.d.ts +2 -3
  1032. package/utils/tests/accessibility.test.d.ts +1 -0
  1033. package/utils/tests/setup-test.d.ts +7 -0
  1034. package/utils/tests/uuid.test.d.ts +1 -0
  1035. package/utils/tests/viewport.test.d.ts +1 -0
  1036. package/utils/uuid.d.ts +0 -1
  1037. package/utils/viewport.d.ts +0 -1
  1038. package/__mocks__/IntersectionObserver.d.ts.map +0 -1
  1039. package/__mocks__/MutationObserver.d.ts.map +0 -1
  1040. package/__mocks__/ResizeObserver.d.ts.map +0 -1
  1041. package/__mocks__/matchMedia.d.ts.map +0 -1
  1042. package/__mocks__/useHover.d.ts.map +0 -1
  1043. package/__mocks__/useLayoutEvent.d.ts.map +0 -1
  1044. package/__mocks__/useOutsideEvent.d.ts.map +0 -1
  1045. package/__mocks__/useSize.d.ts.map +0 -1
  1046. package/__mocks__/uuid.d.ts.map +0 -1
  1047. package/components/AnchorLink/AnchorLink.d.ts.map +0 -1
  1048. package/components/AnchorLink/index.d.ts.map +0 -1
  1049. package/components/Avatar/Avatar.d.ts.map +0 -1
  1050. package/components/Avatar/index.d.ts.map +0 -1
  1051. package/components/Badge/Badge.d.ts.map +0 -1
  1052. package/components/Badge/index.d.ts.map +0 -1
  1053. package/components/Button/Button.d.ts.map +0 -1
  1054. package/components/Button/index.d.ts.map +0 -1
  1055. package/components/ButtonWithModal/ButtonWithModal.d.ts.map +0 -1
  1056. package/components/ButtonWithModal/index.d.ts.map +0 -1
  1057. package/components/Checkbox/Checkbox.d.ts.map +0 -1
  1058. package/components/Checkbox/index.d.ts.map +0 -1
  1059. package/components/Close/Close.d.ts.map +0 -1
  1060. package/components/Close/index.d.ts.map +0 -1
  1061. package/components/DictionaryTrigger/DictionaryTrigger.d.ts.map +0 -1
  1062. package/components/DictionaryTrigger/index.d.ts.map +0 -1
  1063. package/components/Dropdown/Dropdown.d.ts.map +0 -1
  1064. package/components/Dropdown/index.d.ts.map +0 -1
  1065. package/components/Duolist/Duolist.d.ts.map +0 -1
  1066. package/components/Duolist/index.d.ts.map +0 -1
  1067. package/components/EmptyState/EmptyState.d.ts.map +0 -1
  1068. package/components/EmptyState/NobodyHome.d.ts.map +0 -1
  1069. package/components/EmptyState/index.d.ts.map +0 -1
  1070. package/components/ErrorWrapper/ErrorWrapper.d.ts.map +0 -1
  1071. package/components/ErrorWrapper/index.d.ts.map +0 -1
  1072. package/components/Expander/Expander.d.ts.map +0 -1
  1073. package/components/Expander/index.d.ts.map +0 -1
  1074. package/components/ExpanderHierarchy/Expander.d.ts.map +0 -1
  1075. package/components/ExpanderHierarchy/ExpanderButton.d.ts.map +0 -1
  1076. package/components/ExpanderHierarchy/ExpanderHierarchy.d.ts.map +0 -1
  1077. package/components/ExpanderHierarchy/index.d.ts.map +0 -1
  1078. package/components/ExpanderHierarchy/utils.d.ts.map +0 -1
  1079. package/components/ExpanderList/ExpanderList.d.ts.map +0 -1
  1080. package/components/ExpanderList/index.d.ts.map +0 -1
  1081. package/components/FormExample/FormExample.d.ts.map +0 -1
  1082. package/components/FormExample/index.d.ts.map +0 -1
  1083. package/components/FormGroup/FormGroup.d.ts.map +0 -1
  1084. package/components/FormGroup/index.d.ts.map +0 -1
  1085. package/components/FormLayout/FormLayout.d.ts.map +0 -1
  1086. package/components/FormLayout/index.d.ts.map +0 -1
  1087. package/components/GridExample/GridExample.d.ts.map +0 -1
  1088. package/components/GridExample/index.d.ts.map +0 -1
  1089. package/components/HelpBubble/HelpBubble.d.ts.map +0 -1
  1090. package/components/HelpBubble/index.d.ts.map +0 -1
  1091. package/components/HelpBubbleExample/HelpBubbleExample.d.ts.map +0 -1
  1092. package/components/HelpBubbleExample/index.d.ts.map +0 -1
  1093. package/components/HelpPanel/HelpPanel.d.ts.map +0 -1
  1094. package/components/HelpPanel/index.d.ts.map +0 -1
  1095. package/components/HelpQuestion/HelpQuestion.d.ts.map +0 -1
  1096. package/components/HelpQuestion/index.d.ts.map +0 -1
  1097. package/components/HighlightBox/HighlightBox.d.ts.map +0 -1
  1098. package/components/HighlightBox/index.d.ts.map +0 -1
  1099. package/components/HorizontalScroll/HorizontalScroll.d.ts.map +0 -1
  1100. package/components/HorizontalScroll/index.d.ts.map +0 -1
  1101. package/components/Icon/Icon.d.ts.map +0 -1
  1102. package/components/Icon/index.d.ts.map +0 -1
  1103. package/components/Icons/ActiveMonitoring.d.ts.map +0 -1
  1104. package/components/Icons/AcupunctureBack.d.ts.map +0 -1
  1105. package/components/Icons/AdditionalIconInformation.d.ts.map +0 -1
  1106. package/components/Icons/AlarmClock.d.ts.map +0 -1
  1107. package/components/Icons/AlertSignFill.d.ts.map +0 -1
  1108. package/components/Icons/AlertSignStroke.d.ts.map +0 -1
  1109. package/components/Icons/Amputation.d.ts.map +0 -1
  1110. package/components/Icons/Anxiety.d.ts.map +0 -1
  1111. package/components/Icons/Apple.d.ts.map +0 -1
  1112. package/components/Icons/Archive.d.ts.map +0 -1
  1113. package/components/Icons/ArmFlexing.d.ts.map +0 -1
  1114. package/components/Icons/ArrowDown.d.ts.map +0 -1
  1115. package/components/Icons/ArrowLeft.d.ts.map +0 -1
  1116. package/components/Icons/ArrowRight.d.ts.map +0 -1
  1117. package/components/Icons/ArrowUp.d.ts.map +0 -1
  1118. package/components/Icons/ArrowUpRight.d.ts.map +0 -1
  1119. package/components/Icons/Attachment.d.ts.map +0 -1
  1120. package/components/Icons/Atv.d.ts.map +0 -1
  1121. package/components/Icons/Avatar.d.ts.map +0 -1
  1122. package/components/Icons/AwakePersonOnPillow.d.ts.map +0 -1
  1123. package/components/Icons/Baby.d.ts.map +0 -1
  1124. package/components/Icons/BandAid.d.ts.map +0 -1
  1125. package/components/Icons/BeerAndPills.d.ts.map +0 -1
  1126. package/components/Icons/Bell.d.ts.map +0 -1
  1127. package/components/Icons/Bike.d.ts.map +0 -1
  1128. package/components/Icons/BirthControl.d.ts.map +0 -1
  1129. package/components/Icons/BirthdayCake.d.ts.map +0 -1
  1130. package/components/Icons/Boat.d.ts.map +0 -1
  1131. package/components/Icons/Body.d.ts.map +0 -1
  1132. package/components/Icons/Braille.d.ts.map +0 -1
  1133. package/components/Icons/Brain.d.ts.map +0 -1
  1134. package/components/Icons/BreastReconstruction.d.ts.map +0 -1
  1135. package/components/Icons/BreastRemoval.d.ts.map +0 -1
  1136. package/components/Icons/Breasts.d.ts.map +0 -1
  1137. package/components/Icons/BrokenHeart.d.ts.map +0 -1
  1138. package/components/Icons/BrokenPuzzle.d.ts.map +0 -1
  1139. package/components/Icons/Bus.d.ts.map +0 -1
  1140. package/components/Icons/Calendar.d.ts.map +0 -1
  1141. package/components/Icons/CalendarChange.d.ts.map +0 -1
  1142. package/components/Icons/CalendarCheck.d.ts.map +0 -1
  1143. package/components/Icons/CalendarEvent.d.ts.map +0 -1
  1144. package/components/Icons/CalendarSave.d.ts.map +0 -1
  1145. package/components/Icons/Cancer.d.ts.map +0 -1
  1146. package/components/Icons/Candle.d.ts.map +0 -1
  1147. package/components/Icons/Car.d.ts.map +0 -1
  1148. package/components/Icons/Change.d.ts.map +0 -1
  1149. package/components/Icons/Check.d.ts.map +0 -1
  1150. package/components/Icons/CheckFill.d.ts.map +0 -1
  1151. package/components/Icons/CheckOutline.d.ts.map +0 -1
  1152. package/components/Icons/Chest.d.ts.map +0 -1
  1153. package/components/Icons/ChevronDown.d.ts.map +0 -1
  1154. package/components/Icons/ChevronLeft.d.ts.map +0 -1
  1155. package/components/Icons/ChevronRight.d.ts.map +0 -1
  1156. package/components/Icons/ChevronUp.d.ts.map +0 -1
  1157. package/components/Icons/ChevronsDown.d.ts.map +0 -1
  1158. package/components/Icons/ChevronsUp.d.ts.map +0 -1
  1159. package/components/Icons/ChildPlaying.d.ts.map +0 -1
  1160. package/components/Icons/Cigarette.d.ts.map +0 -1
  1161. package/components/Icons/Coins.d.ts.map +0 -1
  1162. package/components/Icons/Contacts.d.ts.map +0 -1
  1163. package/components/Icons/Copy.d.ts.map +0 -1
  1164. package/components/Icons/CoronaCertificate.d.ts.map +0 -1
  1165. package/components/Icons/Coronavirus.d.ts.map +0 -1
  1166. package/components/Icons/Cough.d.ts.map +0 -1
  1167. package/components/Icons/CriticalHealthInfo.d.ts.map +0 -1
  1168. package/components/Icons/Cross.d.ts.map +0 -1
  1169. package/components/Icons/DataExchange.d.ts.map +0 -1
  1170. package/components/Icons/DataReceived.d.ts.map +0 -1
  1171. package/components/Icons/DataSent.d.ts.map +0 -1
  1172. package/components/Icons/Depression.d.ts.map +0 -1
  1173. package/components/Icons/DigestiveSystem.d.ts.map +0 -1
  1174. package/components/Icons/Dizzy.d.ts.map +0 -1
  1175. package/components/Icons/Documents.d.ts.map +0 -1
  1176. package/components/Icons/Dog.d.ts.map +0 -1
  1177. package/components/Icons/DonorCard.d.ts.map +0 -1
  1178. package/components/Icons/Download.d.ts.map +0 -1
  1179. package/components/Icons/Draft.d.ts.map +0 -1
  1180. package/components/Icons/EChat.d.ts.map +0 -1
  1181. package/components/Icons/Ear.d.ts.map +0 -1
  1182. package/components/Icons/EarDeaf.d.ts.map +0 -1
  1183. package/components/Icons/EarHearingAid.d.ts.map +0 -1
  1184. package/components/Icons/EarNoseThroat.d.ts.map +0 -1
  1185. package/components/Icons/EarVolume.d.ts.map +0 -1
  1186. package/components/Icons/ElderlyPerson.d.ts.map +0 -1
  1187. package/components/Icons/Embolization.d.ts.map +0 -1
  1188. package/components/Icons/EmergencyCall.d.ts.map +0 -1
  1189. package/components/Icons/EmoticonAnnoyed.d.ts.map +0 -1
  1190. package/components/Icons/EmoticonDelighted.d.ts.map +0 -1
  1191. package/components/Icons/EmoticonDisappointed.d.ts.map +0 -1
  1192. package/components/Icons/EmoticonHappy.d.ts.map +0 -1
  1193. package/components/Icons/EmoticonMeh.d.ts.map +0 -1
  1194. package/components/Icons/EnterFullScreen.d.ts.map +0 -1
  1195. package/components/Icons/Envelope.d.ts.map +0 -1
  1196. package/components/Icons/Epilepsy.d.ts.map +0 -1
  1197. package/components/Icons/Eraser.d.ts.map +0 -1
  1198. package/components/Icons/ErrorSignFill.d.ts.map +0 -1
  1199. package/components/Icons/ErrorSignStroke.d.ts.map +0 -1
  1200. package/components/Icons/EuropeanHealthCard.d.ts.map +0 -1
  1201. package/components/Icons/ExitFullScreen.d.ts.map +0 -1
  1202. package/components/Icons/Eye.d.ts.map +0 -1
  1203. package/components/Icons/Facebook.d.ts.map +0 -1
  1204. package/components/Icons/FallingLeaf.d.ts.map +0 -1
  1205. package/components/Icons/Female.d.ts.map +0 -1
  1206. package/components/Icons/FemaleDoctor.d.ts.map +0 -1
  1207. package/components/Icons/Ferry.d.ts.map +0 -1
  1208. package/components/Icons/File.d.ts.map +0 -1
  1209. package/components/Icons/Filter.d.ts.map +0 -1
  1210. package/components/Icons/FingerBleed.d.ts.map +0 -1
  1211. package/components/Icons/FirstAidKit.d.ts.map +0 -1
  1212. package/components/Icons/FloppyDisk.d.ts.map +0 -1
  1213. package/components/Icons/Football.d.ts.map +0 -1
  1214. package/components/Icons/Form.d.ts.map +0 -1
  1215. package/components/Icons/Forward.d.ts.map +0 -1
  1216. package/components/Icons/Gallery.d.ts.map +0 -1
  1217. package/components/Icons/Garden.d.ts.map +0 -1
  1218. package/components/Icons/GasCan.d.ts.map +0 -1
  1219. package/components/Icons/GenderIdentity.d.ts.map +0 -1
  1220. package/components/Icons/Glasses.d.ts.map +0 -1
  1221. package/components/Icons/Globe.d.ts.map +0 -1
  1222. package/components/Icons/Graph.d.ts.map +0 -1
  1223. package/components/Icons/Group.d.ts.map +0 -1
  1224. package/components/Icons/GroupTwins.d.ts.map +0 -1
  1225. package/components/Icons/HTMLFile.d.ts.map +0 -1
  1226. package/components/Icons/HandWaving.d.ts.map +0 -1
  1227. package/components/Icons/HandWithDisease.d.ts.map +0 -1
  1228. package/components/Icons/HandsAndHeart.d.ts.map +0 -1
  1229. package/components/Icons/HealthClinic.d.ts.map +0 -1
  1230. package/components/Icons/HealthWarning.d.ts.map +0 -1
  1231. package/components/Icons/HealthcarePerson.d.ts.map +0 -1
  1232. package/components/Icons/HealthcarePersonell.d.ts.map +0 -1
  1233. package/components/Icons/HearingProtection.d.ts.map +0 -1
  1234. package/components/Icons/Heart.d.ts.map +0 -1
  1235. package/components/Icons/HeartHands.d.ts.map +0 -1
  1236. package/components/Icons/HelpSign.d.ts.map +0 -1
  1237. package/components/Icons/HelpingHand.d.ts.map +0 -1
  1238. package/components/Icons/Hemodialysis.d.ts.map +0 -1
  1239. package/components/Icons/Hiker.d.ts.map +0 -1
  1240. package/components/Icons/Hipprosthesis.d.ts.map +0 -1
  1241. package/components/Icons/History.d.ts.map +0 -1
  1242. package/components/Icons/HivAndAids.d.ts.map +0 -1
  1243. package/components/Icons/Home.d.ts.map +0 -1
  1244. package/components/Icons/Hormone.d.ts.map +0 -1
  1245. package/components/Icons/Hospital.d.ts.map +0 -1
  1246. package/components/Icons/Hourglass.d.ts.map +0 -1
  1247. package/components/Icons/IconNames.d.ts.map +0 -1
  1248. package/components/Icons/ImgFile.d.ts.map +0 -1
  1249. package/components/Icons/Inbox.d.ts.map +0 -1
  1250. package/components/Icons/InfoSignFill.d.ts.map +0 -1
  1251. package/components/Icons/InfoSignStroke.d.ts.map +0 -1
  1252. package/components/Icons/Instagram.d.ts.map +0 -1
  1253. package/components/Icons/Intravenous.d.ts.map +0 -1
  1254. package/components/Icons/JointPain.d.ts.map +0 -1
  1255. package/components/Icons/Journal.d.ts.map +0 -1
  1256. package/components/Icons/JpgFile.d.ts.map +0 -1
  1257. package/components/Icons/Kidney.d.ts.map +0 -1
  1258. package/components/Icons/KitchenScale.d.ts.map +0 -1
  1259. package/components/Icons/Kjernejournal.d.ts.map +0 -1
  1260. package/components/Icons/Laboratory.d.ts.map +0 -1
  1261. package/components/Icons/LaptopBlog.d.ts.map +0 -1
  1262. package/components/Icons/LawBook.d.ts.map +0 -1
  1263. package/components/Icons/LegalDocument.d.ts.map +0 -1
  1264. package/components/Icons/LightBulb.d.ts.map +0 -1
  1265. package/components/Icons/List.d.ts.map +0 -1
  1266. package/components/Icons/Location.d.ts.map +0 -1
  1267. package/components/Icons/Lock.d.ts.map +0 -1
  1268. package/components/Icons/Login.d.ts.map +0 -1
  1269. package/components/Icons/Logout.d.ts.map +0 -1
  1270. package/components/Icons/Lungs.d.ts.map +0 -1
  1271. package/components/Icons/Makeup.d.ts.map +0 -1
  1272. package/components/Icons/MaleDoctor.d.ts.map +0 -1
  1273. package/components/Icons/MaleDoctorAndPerson.d.ts.map +0 -1
  1274. package/components/Icons/MaleGenitalia.d.ts.map +0 -1
  1275. package/components/Icons/Medicine.d.ts.map +0 -1
  1276. package/components/Icons/MedicineWarning.d.ts.map +0 -1
  1277. package/components/Icons/MentalHealthAdult.d.ts.map +0 -1
  1278. package/components/Icons/MentalHealthChild.d.ts.map +0 -1
  1279. package/components/Icons/Menu.d.ts.map +0 -1
  1280. package/components/Icons/Microscope.d.ts.map +0 -1
  1281. package/components/Icons/Minus.d.ts.map +0 -1
  1282. package/components/Icons/Mirror.d.ts.map +0 -1
  1283. package/components/Icons/MobilePhone.d.ts.map +0 -1
  1284. package/components/Icons/MotherHoldingBaby.d.ts.map +0 -1
  1285. package/components/Icons/MuscleBack.d.ts.map +0 -1
  1286. package/components/Icons/MuscleLeg.d.ts.map +0 -1
  1287. package/components/Icons/Mushroom.d.ts.map +0 -1
  1288. package/components/Icons/Music.d.ts.map +0 -1
  1289. package/components/Icons/MusselsAndSalt.d.ts.map +0 -1
  1290. package/components/Icons/NoAccess.d.ts.map +0 -1
  1291. package/components/Icons/NoEye.d.ts.map +0 -1
  1292. package/components/Icons/NoFilter.d.ts.map +0 -1
  1293. package/components/Icons/Notepad.d.ts.map +0 -1
  1294. package/components/Icons/Osteotomy.d.ts.map +0 -1
  1295. package/components/Icons/PaintRoller.d.ts.map +0 -1
  1296. package/components/Icons/PaperPlane.d.ts.map +0 -1
  1297. package/components/Icons/PatientAndPerson.d.ts.map +0 -1
  1298. package/components/Icons/Pause.d.ts.map +0 -1
  1299. package/components/Icons/PdfFile.d.ts.map +0 -1
  1300. package/components/Icons/Pencil.d.ts.map +0 -1
  1301. package/components/Icons/PeopleTalking.d.ts.map +0 -1
  1302. package/components/Icons/Peritonealdialysis.d.ts.map +0 -1
  1303. package/components/Icons/Person.d.ts.map +0 -1
  1304. package/components/Icons/PersonAndPatient.d.ts.map +0 -1
  1305. package/components/Icons/PersonCancel.d.ts.map +0 -1
  1306. package/components/Icons/PersonInXRayMachine.d.ts.map +0 -1
  1307. package/components/Icons/PersonOverweight.d.ts.map +0 -1
  1308. package/components/Icons/PersonRelaxing.d.ts.map +0 -1
  1309. package/components/Icons/PersonWithBrain.d.ts.map +0 -1
  1310. package/components/Icons/PersonWithBrokenArm.d.ts.map +0 -1
  1311. package/components/Icons/PersonWithCrutches.d.ts.map +0 -1
  1312. package/components/Icons/PersonWithJaw.d.ts.map +0 -1
  1313. package/components/Icons/PersonWithMagnifyingGlass.d.ts.map +0 -1
  1314. package/components/Icons/PersonWithSenses.d.ts.map +0 -1
  1315. package/components/Icons/PersonWorking.d.ts.map +0 -1
  1316. package/components/Icons/PersonalPlan.d.ts.map +0 -1
  1317. package/components/Icons/PizzaSlice.d.ts.map +0 -1
  1318. package/components/Icons/Plane.d.ts.map +0 -1
  1319. package/components/Icons/Plant.d.ts.map +0 -1
  1320. package/components/Icons/Play.d.ts.map +0 -1
  1321. package/components/Icons/PlusLarge.d.ts.map +0 -1
  1322. package/components/Icons/PlusSmall.d.ts.map +0 -1
  1323. package/components/Icons/PngFile.d.ts.map +0 -1
  1324. package/components/Icons/Podcast.d.ts.map +0 -1
  1325. package/components/Icons/PoisonInformation.d.ts.map +0 -1
  1326. package/components/Icons/Pregnant.d.ts.map +0 -1
  1327. package/components/Icons/Printer.d.ts.map +0 -1
  1328. package/components/Icons/Psychosis.d.ts.map +0 -1
  1329. package/components/Icons/Publication.d.ts.map +0 -1
  1330. package/components/Icons/Puzzle.d.ts.map +0 -1
  1331. package/components/Icons/QrCode.d.ts.map +0 -1
  1332. package/components/Icons/Quarrel.d.ts.map +0 -1
  1333. package/components/Icons/RadioTherapy.d.ts.map +0 -1
  1334. package/components/Icons/RadioactiveTreatment.d.ts.map +0 -1
  1335. package/components/Icons/Radioiodine.d.ts.map +0 -1
  1336. package/components/Icons/Receipt.d.ts.map +0 -1
  1337. package/components/Icons/Receptionist.d.ts.map +0 -1
  1338. package/components/Icons/Recovery.d.ts.map +0 -1
  1339. package/components/Icons/Referral.d.ts.map +0 -1
  1340. package/components/Icons/Refresh.d.ts.map +0 -1
  1341. package/components/Icons/Refund.d.ts.map +0 -1
  1342. package/components/Icons/Reply.d.ts.map +0 -1
  1343. package/components/Icons/Rocket.d.ts.map +0 -1
  1344. package/components/Icons/RtfFile.d.ts.map +0 -1
  1345. package/components/Icons/STDs.d.ts.map +0 -1
  1346. package/components/Icons/Save.d.ts.map +0 -1
  1347. package/components/Icons/Scale.d.ts.map +0 -1
  1348. package/components/Icons/ScreenReader.d.ts.map +0 -1
  1349. package/components/Icons/Search.d.ts.map +0 -1
  1350. package/components/Icons/SectionSign.d.ts.map +0 -1
  1351. package/components/Icons/Settings.d.ts.map +0 -1
  1352. package/components/Icons/Sexualorientation.d.ts.map +0 -1
  1353. package/components/Icons/ShakingHand.d.ts.map +0 -1
  1354. package/components/Icons/Share.d.ts.map +0 -1
  1355. package/components/Icons/Shield.d.ts.map +0 -1
  1356. package/components/Icons/ShuntOperation.d.ts.map +0 -1
  1357. package/components/Icons/Skeleton.d.ts.map +0 -1
  1358. package/components/Icons/Skin.d.ts.map +0 -1
  1359. package/components/Icons/Snake.d.ts.map +0 -1
  1360. package/components/Icons/Snapchat.d.ts.map +0 -1
  1361. package/components/Icons/SortDown.d.ts.map +0 -1
  1362. package/components/Icons/SortUp.d.ts.map +0 -1
  1363. package/components/Icons/SpeechBubble.d.ts.map +0 -1
  1364. package/components/Icons/Spray.d.ts.map +0 -1
  1365. package/components/Icons/Stopwatch.d.ts.map +0 -1
  1366. package/components/Icons/Sun.d.ts.map +0 -1
  1367. package/components/Icons/SupportingPerson.d.ts.map +0 -1
  1368. package/components/Icons/Surgery.d.ts.map +0 -1
  1369. package/components/Icons/Syringe.d.ts.map +0 -1
  1370. package/components/Icons/Taxi.d.ts.map +0 -1
  1371. package/components/Icons/TeddyBear.d.ts.map +0 -1
  1372. package/components/Icons/Teenagers.d.ts.map +0 -1
  1373. package/components/Icons/ThinkingAboutBaby.d.ts.map +0 -1
  1374. package/components/Icons/Ticket.d.ts.map +0 -1
  1375. package/components/Icons/TimePassing.d.ts.map +0 -1
  1376. package/components/Icons/Tombstone.d.ts.map +0 -1
  1377. package/components/Icons/Toolbox.d.ts.map +0 -1
  1378. package/components/Icons/Tooth.d.ts.map +0 -1
  1379. package/components/Icons/TotalKneeProsthesis.d.ts.map +0 -1
  1380. package/components/Icons/Train.d.ts.map +0 -1
  1381. package/components/Icons/Transplantation.d.ts.map +0 -1
  1382. package/components/Icons/TrashCan.d.ts.map +0 -1
  1383. package/components/Icons/TravelRoute.d.ts.map +0 -1
  1384. package/components/Icons/TriangleX.d.ts.map +0 -1
  1385. package/components/Icons/Twitter.d.ts.map +0 -1
  1386. package/components/Icons/Undo.d.ts.map +0 -1
  1387. package/components/Icons/UniProsthesis.d.ts.map +0 -1
  1388. package/components/Icons/Upload.d.ts.map +0 -1
  1389. package/components/Icons/UserOrganization.d.ts.map +0 -1
  1390. package/components/Icons/Vaccine.d.ts.map +0 -1
  1391. package/components/Icons/VerticalDots.d.ts.map +0 -1
  1392. package/components/Icons/VideoCamera.d.ts.map +0 -1
  1393. package/components/Icons/VideoChat.d.ts.map +0 -1
  1394. package/components/Icons/Wallet.d.ts.map +0 -1
  1395. package/components/Icons/Watch.d.ts.map +0 -1
  1396. package/components/Icons/Website.d.ts.map +0 -1
  1397. package/components/Icons/Wheelchair.d.ts.map +0 -1
  1398. package/components/Icons/WheelchairActive.d.ts.map +0 -1
  1399. package/components/Icons/Window.d.ts.map +0 -1
  1400. package/components/Icons/WordDocument.d.ts.map +0 -1
  1401. package/components/Icons/WorkSuitcase.d.ts.map +0 -1
  1402. package/components/Icons/X.d.ts.map +0 -1
  1403. package/components/Icons/XOutline.d.ts.map +0 -1
  1404. package/components/Icons/XmlFile.d.ts.map +0 -1
  1405. package/components/Icons/YouTube.d.ts.map +0 -1
  1406. package/components/Icons/Zoom.d.ts.map +0 -1
  1407. package/components/Illustration/Illustration.d.ts.map +0 -1
  1408. package/components/Illustration/index.d.ts.map +0 -1
  1409. package/components/Illustration/utils.d.ts.map +0 -1
  1410. package/components/Illustrations/Doctor.d.ts.map +0 -1
  1411. package/components/Illustrations/DoctorMedium.d.ts.map +0 -1
  1412. package/components/Illustrations/DoctorSmall.d.ts.map +0 -1
  1413. package/components/Illustrations/HealthcarePersonnel.d.ts.map +0 -1
  1414. package/components/Illustrations/HealthcarePersonnelMedium.d.ts.map +0 -1
  1415. package/components/Illustrations/HealthcarePersonnelSmall.d.ts.map +0 -1
  1416. package/components/Illustrations/IllustrationNames.d.ts.map +0 -1
  1417. package/components/Input/Input.d.ts.map +0 -1
  1418. package/components/Input/index.d.ts.map +0 -1
  1419. package/components/Label/Label.d.ts.map +0 -1
  1420. package/components/Label/SubLabel.d.ts.map +0 -1
  1421. package/components/Label/index.d.ts.map +0 -1
  1422. package/components/LazyIcon/ErrorBoundary.d.ts.map +0 -1
  1423. package/components/LazyIcon/LazyIcon.d.ts.map +0 -1
  1424. package/components/LazyIcon/index.d.ts.map +0 -1
  1425. package/components/LazyIcon/utils.d.ts.map +0 -1
  1426. package/components/LazyIllustration/LazyIllustration.d.ts.map +0 -1
  1427. package/components/LazyIllustration/index.d.ts.map +0 -1
  1428. package/components/LinkList/LinkList.d.ts.map +0 -1
  1429. package/components/LinkList/index.d.ts.map +0 -1
  1430. package/components/List/List.d.ts.map +0 -1
  1431. package/components/List/index.d.ts.map +0 -1
  1432. package/components/ListHeader/ListHeader.d.ts.map +0 -1
  1433. package/components/ListHeader/ListHeaderText/ListHeaderText.d.ts.map +0 -1
  1434. package/components/ListHeader/ListHeaderText/index.d.ts.map +0 -1
  1435. package/components/ListHeader/index.d.ts.map +0 -1
  1436. package/components/Loader/Loader.d.ts.map +0 -1
  1437. package/components/Loader/index.d.ts.map +0 -1
  1438. package/components/Logo/Logo.d.ts.map +0 -1
  1439. package/components/Logo/index.d.ts.map +0 -1
  1440. package/components/MaxCharacters/MaxCharacters.d.ts.map +0 -1
  1441. package/components/Modal/Modal.d.ts.map +0 -1
  1442. package/components/Modal/index.d.ts.map +0 -1
  1443. package/components/NotificationPanel/DetailButton/DetailButton.d.ts.map +0 -1
  1444. package/components/NotificationPanel/NotificationPanel.d.ts.map +0 -1
  1445. package/components/NotificationPanel/index.d.ts.map +0 -1
  1446. package/components/Panel/Panel.d.ts.map +0 -1
  1447. package/components/Panel/index.d.ts.map +0 -1
  1448. package/components/PanelList/PanelList.d.ts.map +0 -1
  1449. package/components/PanelList/index.d.ts.map +0 -1
  1450. package/components/PopMenu/PopMenu.d.ts.map +0 -1
  1451. package/components/PopMenu/index.d.ts.map +0 -1
  1452. package/components/PopOver/PopOver.d.ts.map +0 -1
  1453. package/components/PopOver/index.d.ts.map +0 -1
  1454. package/components/PopOver/utils.d.ts.map +0 -1
  1455. package/components/Portal/index.d.ts.map +0 -1
  1456. package/components/PromoPanel/PromoPanel.d.ts.map +0 -1
  1457. package/components/PromoPanel/index.d.ts.map +0 -1
  1458. package/components/RadioButton/RadioButton.d.ts.map +0 -1
  1459. package/components/RadioButton/index.d.ts.map +0 -1
  1460. package/components/Select/Select.d.ts.map +0 -1
  1461. package/components/Select/index.d.ts.map +0 -1
  1462. package/components/ServiceMessage/ServiceMessage.d.ts.map +0 -1
  1463. package/components/ServiceMessage/index.d.ts.map +0 -1
  1464. package/components/SharingStatus/SharingStatus.d.ts.map +0 -1
  1465. package/components/SharingStatus/index.d.ts.map +0 -1
  1466. package/components/Slider/Slider.d.ts.map +0 -1
  1467. package/components/Slider/index.d.ts.map +0 -1
  1468. package/components/Spacer/Spacer.d.ts.map +0 -1
  1469. package/components/Spacer/index.d.ts.map +0 -1
  1470. package/components/StatusDot/StatusDot.d.ts.map +0 -1
  1471. package/components/StatusDot/index.d.ts.map +0 -1
  1472. package/components/Step/Step.d.ts.map +0 -1
  1473. package/components/Step/index.d.ts.map +0 -1
  1474. package/components/StepButtons/StepButtons.d.ts.map +0 -1
  1475. package/components/StepButtons/index.d.ts.map +0 -1
  1476. package/components/Stepper/Dot.d.ts.map +0 -1
  1477. package/components/Stepper/DotList.d.ts.map +0 -1
  1478. package/components/Stepper/Stepper.d.ts.map +0 -1
  1479. package/components/Stepper/index.d.ts.map +0 -1
  1480. package/components/Stepper/utils.d.ts.map +0 -1
  1481. package/components/Table/Table.d.ts.map +0 -1
  1482. package/components/Table/TableBody/TableBody.d.ts.map +0 -1
  1483. package/components/Table/TableBody/index.d.ts.map +0 -1
  1484. package/components/Table/TableCell/TableCell.d.ts.map +0 -1
  1485. package/components/Table/TableCell/index.d.ts.map +0 -1
  1486. package/components/Table/TableExpandedRow/TableExpandedRow.d.ts.map +0 -1
  1487. package/components/Table/TableExpandedRow/index.d.ts.map +0 -1
  1488. package/components/Table/TableExpanderCell/TableExpanderCell.d.ts.map +0 -1
  1489. package/components/Table/TableExpanderCell/TableExpanderCellMobile.d.ts.map +0 -1
  1490. package/components/Table/TableExpanderCell/index.d.ts.map +0 -1
  1491. package/components/Table/TableHead/TableHead.d.ts.map +0 -1
  1492. package/components/Table/TableHead/index.d.ts.map +0 -1
  1493. package/components/Table/TableHeadCell/TableHeadCell.d.ts.map +0 -1
  1494. package/components/Table/TableHeadCell/index.d.ts.map +0 -1
  1495. package/components/Table/TableRow/TableRow.d.ts.map +0 -1
  1496. package/components/Table/TableRow/index.d.ts.map +0 -1
  1497. package/components/Table/index.d.ts.map +0 -1
  1498. package/components/Table/utils.d.ts.map +0 -1
  1499. package/components/Tag/Tag.d.ts.map +0 -1
  1500. package/components/Tag/index.d.ts.map +0 -1
  1501. package/components/TagList/TagList.d.ts.map +0 -1
  1502. package/components/TagList/index.d.ts.map +0 -1
  1503. package/components/Textarea/Textarea.d.ts.map +0 -1
  1504. package/components/Textarea/index.d.ts.map +0 -1
  1505. package/components/Tile/Tile.d.ts.map +0 -1
  1506. package/components/Tile/index.d.ts.map +0 -1
  1507. package/components/Title/Title.d.ts.map +0 -1
  1508. package/components/Title/index.d.ts.map +0 -1
  1509. package/components/Tooltip/Tooltip.d.ts.map +0 -1
  1510. package/components/Tooltip/TooltipWord/TooltipWord.d.ts.map +0 -1
  1511. package/components/Tooltip/TooltipWord/index.d.ts.map +0 -1
  1512. package/components/Tooltip/index.d.ts.map +0 -1
  1513. package/components/TooltipExample/TooltipExample.d.ts.map +0 -1
  1514. package/components/TooltipExample/index.d.ts.map +0 -1
  1515. package/components/Trigger/HelpSign.d.ts.map +0 -1
  1516. package/components/Trigger/InfoSignStroke.d.ts.map +0 -1
  1517. package/components/Trigger/Trigger.d.ts.map +0 -1
  1518. package/components/Trigger/index.d.ts.map +0 -1
  1519. package/components/Validation/Validation.d.ts.map +0 -1
  1520. package/components/Validation/index.d.ts.map +0 -1
  1521. package/constants.d.ts.map +0 -1
  1522. package/hoc/withBreakpoint/index.d.ts.map +0 -1
  1523. package/hoc/withBreakpoint/withBreakpoint.d.ts.map +0 -1
  1524. package/hooks/useBreakpoint.d.ts.map +0 -1
  1525. package/hooks/useDelayedState.d.ts.map +0 -1
  1526. package/hooks/useElementList.d.ts.map +0 -1
  1527. package/hooks/useEventListenerState.d.ts.map +0 -1
  1528. package/hooks/useExpand.d.ts.map +0 -1
  1529. package/hooks/useFocusToggle.d.ts.map +0 -1
  1530. package/hooks/useFocusTrap.d.ts.map +0 -1
  1531. package/hooks/useFocusableElements.d.ts.map +0 -1
  1532. package/hooks/useHover.d.ts.map +0 -1
  1533. package/hooks/useIcons.d.ts.map +0 -1
  1534. package/hooks/useIntersectionObserver.d.ts.map +0 -1
  1535. package/hooks/useInterval.d.ts.map +0 -1
  1536. package/hooks/useIsVisible.d.ts.map +0 -1
  1537. package/hooks/useKeyboardEvent.d.ts.map +0 -1
  1538. package/hooks/useLayoutEvent.d.ts.map +0 -1
  1539. package/hooks/useOutsideEvent.d.ts.map +0 -1
  1540. package/hooks/usePrevious.d.ts.map +0 -1
  1541. package/hooks/usePseudoClasses.d.ts.map +0 -1
  1542. package/hooks/useResizeObserver.d.ts.map +0 -1
  1543. package/hooks/useSize.d.ts.map +0 -1
  1544. package/hooks/useSticky.d.ts.map +0 -1
  1545. package/hooks/useToggle.d.ts.map +0 -1
  1546. package/hooks/useUuid.d.ts.map +0 -1
  1547. package/index.d.ts.map +0 -1
  1548. package/theme/currys/color.d.ts.map +0 -1
  1549. package/theme/currys/index.d.ts.map +0 -1
  1550. package/theme/currys/spacing.d.ts.map +0 -1
  1551. package/theme/grid.d.ts.map +0 -1
  1552. package/theme/index.d.ts.map +0 -1
  1553. package/theme/palette.d.ts.map +0 -1
  1554. package/theme/spacers.d.ts.map +0 -1
  1555. package/utils/accessibility.d.ts.map +0 -1
  1556. package/utils/component.d.ts.map +0 -1
  1557. package/utils/debounce.d.ts.map +0 -1
  1558. package/utils/device.d.ts.map +0 -1
  1559. package/utils/environment.d.ts.map +0 -1
  1560. package/utils/focus.d.ts.map +0 -1
  1561. package/utils/loremtext.d.ts.map +0 -1
  1562. package/utils/mobile.d.ts.map +0 -1
  1563. package/utils/refs.d.ts.map +0 -1
  1564. package/utils/uuid.d.ts.map +0 -1
  1565. package/utils/viewport.d.ts.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import r, { useRef as A, useState as K, useEffect as be } from "react";
2
2
  import x from "classnames";
3
- import { FormMode as s, FormSize as ge, IconSize as D, AnalyticsId as Ce, AVERAGE_CHARACTER_WIDTH_PX as _e } from "../../constants.js";
3
+ import { FormMode as l, FormSize as ge, IconSize as D, AnalyticsId as Ce, AVERAGE_CHARACTER_WIDTH_PX as _e } from "../../constants.js";
4
4
  import { useBreakpoint as ve, Breakpoint as xe } from "../../hooks/useBreakpoint.js";
5
5
  import { useUuid as ye } from "../../hooks/useUuid.js";
6
6
  import { getColor as B } from "../../theme/currys/color.js";
@@ -11,29 +11,29 @@ import Ne from "../LazyIcon/LazyIcon.js";
11
11
  import Ie from "../MaxCharacters/MaxCharacters.js";
12
12
  import t from "./styles.module.scss";
13
13
  var Re = /* @__PURE__ */ ((e) => (e.text = "text", e.number = "number", e.email = "email", e.password = "password", e.search = "search", e.tel = "tel", e.url = "url", e.date = "date", e.time = "time", e))(Re || {});
14
- const Se = (e, u, f) => {
15
- const i = u ? "1.5rem" : "2rem", h = u ? `${f}px` : "0px", d = "4px";
16
- return `calc(${e * _e}px + ${i} + ${h} + ${d})`;
17
- }, F = r.forwardRef((e, u) => {
14
+ const We = (e, s, p) => {
15
+ const i = s ? "1.5rem" : "2rem", f = s ? `${p}px` : "0px";
16
+ return `calc(${e * _e}px + ${i} + ${f} + 4px)`;
17
+ }, F = r.forwardRef((e, s) => {
18
18
  const {
19
- className: f,
19
+ className: p,
20
20
  defaultValue: i,
21
- placeholder: h,
22
- type: d = "text",
21
+ placeholder: f,
22
+ type: h = "text",
23
23
  name: L,
24
24
  transparent: M = !1,
25
25
  icon: a,
26
26
  iconRight: b,
27
27
  inputId: P,
28
28
  inputWrapperRef: U,
29
- mode: c = s.onwhite,
29
+ mode: c = l.onwhite,
30
30
  size: H,
31
31
  baseIncrementValue: y,
32
32
  label: O,
33
33
  error: X,
34
34
  errorText: E,
35
35
  testId: q,
36
- disabled: l,
36
+ disabled: u,
37
37
  readOnly: G,
38
38
  autoComplete: j = "off",
39
39
  afterInputChildren: J,
@@ -43,69 +43,69 @@ const Se = (e, u, f) => {
43
43
  onChange: w,
44
44
  onKeyDown: N,
45
45
  autoFocus: Z,
46
- maxCharacters: m,
46
+ maxCharacters: d,
47
47
  maxText: T,
48
48
  ...ee
49
- } = e, te = ve(), p = A(null), I = ye(P), [R, S] = K(i || ""), [ne, re] = K(void 0), g = A(!1), W = /^[0-9]$/;
49
+ } = e, te = ve(), m = A(null), I = ye(P), [R, W] = K(i || ""), [ne, re] = K(void 0), g = A(!1), S = /^[0-9]$/;
50
50
  be(() => {
51
- S(i || "");
51
+ W(i || "");
52
52
  }, [i]);
53
- const ae = c === s.ondark, oe = c === s.onblueberry, ie = !!m && R.toString().length > m, C = c === s.oninvalid || !!E || !!X || ie, _ = H === ge.large, ce = M && c !== s.ondark && !C, le = x(t["input-wrapper"], f), se = x(t["input-container"], {
53
+ const ae = c === l.ondark, oe = c === l.onblueberry, ie = !!d && R.toString().length > d, C = c === l.oninvalid || !!E || !!X || ie, _ = H === ge.large, ce = M && c !== l.ondark && !C, le = x(t["input-wrapper"], p), se = x(t["input-container"], {
54
54
  [t["input-container--transparent"]]: ce,
55
55
  [t["input-container--on-blueberry"]]: oe,
56
56
  [t["input-container--on-dark"]]: ae,
57
57
  [t["input-container--invalid"]]: C,
58
58
  [t["input-container--large"]]: _,
59
- [t["input-container--disabled"]]: l,
59
+ [t["input-container--disabled"]]: u,
60
60
  [t["input-container--with-icon"]]: a
61
61
  }), ue = x(t["input-container__input"], {
62
62
  [t["input-container__input--large"]]: _,
63
- [t["input-container__input--disabled"]]: l
64
- }), z = l ? B("neutral", 700) : B("black"), v = te === xe.xs || !_ ? D.XSmall : D.Small, V = () => {
63
+ [t["input-container__input--disabled"]]: u
64
+ }), z = u ? B("neutral", 700) : B("black"), v = te === xe.xs || !_ ? D.XSmall : D.Small, V = () => {
65
65
  if (a)
66
66
  return typeof a == "string" ? /* @__PURE__ */ r.createElement(Ne, { className: t["input-container__input__icon"], color: z, size: v, iconName: a }) : /* @__PURE__ */ r.createElement(ke, { className: t["input-container__input__icon"], color: z, size: v, svgIcon: a });
67
67
  }, de = (n) => {
68
- if (p && p.current && a) {
68
+ if (m && m.current && a) {
69
69
  const o = b ? 0 : 1;
70
- p.current.children[o].focus(), e.onClick && e.onClick(n);
70
+ m.current.children[o].focus(), e.onClick && e.onClick(n);
71
71
  }
72
72
  }, me = (n) => {
73
73
  const o = pe(n);
74
- w && w(n), S(o), re(o);
74
+ w && w(n), W(o), re(o);
75
75
  }, pe = (n) => {
76
- if (typeof y > "u" || d !== "number")
76
+ if (typeof y > "u" || h !== "number")
77
77
  return n.target.value;
78
78
  const o = Number(n.target.value);
79
79
  return !ne && !g.current && (o === 1 || o === -1) && (n.target.value = y + ""), n.target.value;
80
80
  }, fe = (n) => {
81
- W.test(n.key) && (g.current = !0), N && N(n);
81
+ S.test(n.key) && (g.current = !0), N && N(n);
82
82
  }, he = (n) => {
83
- W.test(n.key) && (g.current = !1);
84
- }, $ = k ? Se(k, !!a, v) : void 0;
85
- return /* @__PURE__ */ r.createElement(Ee, { errorText: E }, /* @__PURE__ */ r.createElement("div", { "data-testid": q, "data-analyticsid": Ce.Input, className: le, ref: U }, we(O, I, c, l), /* @__PURE__ */ r.createElement("div", { className: t["content-wrapper"] }, /* @__PURE__ */ r.createElement("div", { onClick: de, ref: p, className: se, style: { maxWidth: $ } }, !b && V(), /* @__PURE__ */ r.createElement(
83
+ S.test(n.key) && (g.current = !1);
84
+ }, $ = k ? We(k, !!a, v) : void 0;
85
+ return /* @__PURE__ */ r.createElement(Ee, { errorText: E }, /* @__PURE__ */ r.createElement("div", { "data-testid": q, "data-analyticsid": Ce.Input, className: le, ref: U }, we(O, I, c), /* @__PURE__ */ r.createElement("div", { className: t["content-wrapper"] }, /* @__PURE__ */ r.createElement("div", { onClick: de, ref: m, className: se, style: { maxWidth: $ } }, !b && V(), /* @__PURE__ */ r.createElement(
86
86
  "input",
87
87
  {
88
88
  onChange: me,
89
89
  onKeyDown: fe,
90
90
  onKeyUp: he,
91
91
  name: L,
92
- type: d,
92
+ type: h,
93
93
  defaultValue: i,
94
94
  id: I,
95
95
  className: ue,
96
- ref: u,
96
+ ref: s,
97
97
  "aria-labelledby": e["aria-labelledby"] ?? void 0,
98
98
  "aria-describedby": e["aria-describedby"] ?? void 0,
99
99
  "aria-invalid": !!C,
100
- disabled: l,
101
- placeholder: h,
100
+ disabled: u,
101
+ placeholder: f,
102
102
  readOnly: G,
103
103
  autoComplete: j || "off",
104
104
  required: Y,
105
105
  autoFocus: Z,
106
106
  ...ee
107
107
  }
108
- ), b && V()), /* @__PURE__ */ r.createElement("div", { className: t["content-wrapper__right-of-input"] }, Q)), m && /* @__PURE__ */ r.createElement(Ie, { maxCharacters: m, length: R.toString().length, maxText: T, mode: c, maxWidth: $ }), J));
108
+ ), b && V()), /* @__PURE__ */ r.createElement("div", { className: t["content-wrapper__right-of-input"] }, Q)), d && /* @__PURE__ */ r.createElement(Ie, { maxCharacters: d, length: R.toString().length, maxText: T, mode: c, maxWidth: $ }), J));
109
109
  });
110
110
  F.displayName = "Input";
111
111
  const He = F;
@@ -1 +1 @@
1
- {"version":3,"file":"Input.js","sources":["../../../src/components/Input/Input.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState } from 'react';\n\nimport cn from 'classnames';\n\nimport { FormMode, FormSize, AnalyticsId, AVERAGE_CHARACTER_WIDTH_PX } from '../../constants';\nimport { Breakpoint, useBreakpoint } from '../../hooks/useBreakpoint';\nimport { useUuid } from '../../hooks/useUuid';\nimport { getColor } from '../../theme/currys';\nimport ErrorWrapper from '../ErrorWrapper';\nimport Icon, { IconSize, SvgIcon } from '../Icon';\nimport { IconName } from '../Icons/IconNames';\nimport { renderLabel } from '../Label';\nimport LazyIcon from '../LazyIcon';\nimport MaxCharacters from '../MaxCharacters/MaxCharacters';\n\nimport styles from './styles.module.scss';\n\nexport interface InputProps\n extends Pick<\n React.InputHTMLAttributes<HTMLInputElement>,\n | 'disabled'\n | 'readOnly'\n | 'autoComplete'\n | 'name'\n | 'placeholder'\n | 'defaultValue'\n | 'required'\n | 'value'\n | 'min'\n | 'max'\n | 'aria-describedby'\n | 'aria-labelledby'\n | 'onBlur'\n | 'onClick'\n | 'onChange'\n | 'onFocus'\n | 'onKeyDown'\n | 'autoFocus'\n > {\n /** The number at which the input field starts when you increment or decrement it */\n baseIncrementValue?: number;\n /** Adds custom classes to the element. */\n className?: string;\n /** HMTL Input type */\n type?: keyof typeof InputTypes;\n /** input id */\n inputId?: string;\n /** Width of input field in characters (approximate) */\n width?: number;\n /** If true, the component will be transparent. */\n transparent?: boolean;\n /** Icon to be displayed next to the input field */\n icon?: SvgIcon | IconName;\n /** Places the icon to the right */\n iconRight?: boolean;\n /** Ref that is placed on the inputWrapper */\n inputWrapperRef?: React.RefObject<HTMLDivElement>;\n /** Changes the color profile of the input */\n mode?: keyof typeof FormMode;\n /** Changes the visuals of the input */\n size?: keyof typeof FormSize;\n /** Label of the input */\n label?: React.ReactNode;\n /** Activates Error style for the input */\n error?: boolean;\n /** Error text to show above the component */\n errorText?: string;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Component shown after input */\n afterInputChildren?: React.ReactNode;\n /** Component shown to the right of input */\n rightOfInput?: React.ReactNode;\n /** max character limit in input */\n maxCharacters?: number;\n /** The text is displayed in the end of the text-counter */\n maxText?: string;\n}\n\nexport enum InputTypes {\n text = 'text',\n number = 'number',\n email = 'email',\n password = 'password',\n search = 'search',\n tel = 'tel',\n url = 'url',\n date = 'date',\n time = 'time',\n}\n\nconst getInputMaxWidth = (characters: number, hasIcon: boolean, iconSize: number): string => {\n const paddingWidth = hasIcon ? '1.5rem' : '2rem';\n const iconWidth = hasIcon ? `${iconSize}px` : '0px';\n const borderWidth = '4px';\n\n return `calc(${characters * AVERAGE_CHARACTER_WIDTH_PX}px + ${paddingWidth} + ${iconWidth} + ${borderWidth})`;\n};\n\nconst Input = React.forwardRef((props: InputProps, ref: React.Ref<HTMLInputElement>) => {\n const {\n className,\n defaultValue,\n placeholder,\n type = InputTypes.text,\n name,\n transparent = false,\n icon,\n iconRight,\n inputId,\n inputWrapperRef,\n mode = FormMode.onwhite,\n size,\n baseIncrementValue,\n label,\n error,\n errorText,\n testId,\n disabled,\n readOnly,\n autoComplete = 'off',\n afterInputChildren,\n rightOfInput,\n width,\n required,\n onChange,\n onKeyDown,\n autoFocus,\n maxCharacters,\n maxText,\n ...rest\n } = props;\n const breakpoint = useBreakpoint();\n const inputContainerRef = useRef<HTMLDivElement>(null);\n const inputIdState = useUuid(inputId);\n const [input, setInput] = useState(defaultValue || '');\n const [prevValue, setPrevValue] = useState<string | number | undefined>(undefined);\n const numKeyPressed = useRef<boolean>(false);\n const numRegex = /^[0-9]$/;\n\n useEffect(() => {\n setInput(defaultValue || '');\n }, [defaultValue]);\n\n const onDark = mode === FormMode.ondark;\n const onBlueberry = mode === FormMode.onblueberry;\n const maxCharactersExceeded = !!maxCharacters && input.toString().length > maxCharacters;\n const onError = mode === FormMode.oninvalid || !!errorText || !!error || maxCharactersExceeded;\n const isLarge = size === FormSize.large;\n const isTransparent = transparent && mode !== FormMode.ondark && !onError;\n\n const inputWrapperClass = cn(styles['input-wrapper'], className);\n\n const inputContainer = cn(styles['input-container'], {\n [styles['input-container--transparent']]: isTransparent,\n [styles['input-container--on-blueberry']]: onBlueberry,\n [styles['input-container--on-dark']]: onDark,\n [styles['input-container--invalid']]: onError,\n [styles['input-container--large']]: isLarge,\n [styles['input-container--disabled']]: disabled,\n [styles['input-container--with-icon']]: icon,\n });\n\n const inputClass = cn(styles['input-container__input'], {\n [styles['input-container__input--large']]: isLarge,\n [styles['input-container__input--disabled']]: disabled,\n });\n\n const iconColor = disabled ? getColor('neutral', 700) : getColor('black');\n const iconSize = breakpoint === Breakpoint.xs || !isLarge ? IconSize.XSmall : IconSize.Small;\n\n const renderIcon = (): React.ReactNode => {\n if (!icon) {\n return;\n }\n\n if (typeof icon === 'string') {\n return <LazyIcon className={styles['input-container__input__icon']} color={iconColor} size={iconSize} iconName={icon} />;\n }\n\n return <Icon className={styles['input-container__input__icon']} color={iconColor} size={iconSize} svgIcon={icon} />;\n };\n\n // eslint-disable-next-line\n const handleClick = (e: React.MouseEvent<any>): void => {\n if (inputContainerRef && inputContainerRef.current && icon) {\n const selectedChild = iconRight ? 0 : 1;\n const input = inputContainerRef.current.children[selectedChild] as HTMLInputElement;\n input.focus();\n\n props.onClick && props.onClick(e);\n }\n };\n\n const handleChange = (e: React.ChangeEvent<HTMLInputElement>): void => {\n const newValue = getIncrementValue(e);\n\n if (onChange) {\n onChange(e);\n }\n\n setInput(newValue);\n setPrevValue(newValue);\n };\n\n // Hvis bruker endrer number value med 1 og det skal startes på en annen verdi enn 0\n const getIncrementValue = (e: React.ChangeEvent<HTMLInputElement>): string => {\n if (typeof baseIncrementValue === 'undefined' || type !== 'number') return e.target.value;\n\n const valueAsNumber = Number(e.target.value);\n\n if (!prevValue && !numKeyPressed.current && (valueAsNumber === 1 || valueAsNumber === -1)) {\n e.target.value = baseIncrementValue + '';\n }\n\n return e.target.value;\n };\n\n const handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>): void => {\n if (numRegex.test(e.key)) {\n numKeyPressed.current = true;\n }\n onKeyDown && onKeyDown(e);\n };\n\n const handleKeyUp = (e: React.KeyboardEvent<HTMLInputElement>): void => {\n if (numRegex.test(e.key)) {\n numKeyPressed.current = false;\n }\n };\n\n const maxWidth = width ? getInputMaxWidth(width, !!icon, iconSize) : undefined;\n\n return (\n <ErrorWrapper errorText={errorText}>\n <div data-testid={testId} data-analyticsid={AnalyticsId.Input} className={inputWrapperClass} ref={inputWrapperRef}>\n {renderLabel(label, inputIdState, mode as FormMode, disabled)}\n {/* input-elementet tillater keyboard-interaksjon */}\n <div className={styles['content-wrapper']}>\n {/* eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events */}\n <div onClick={handleClick} ref={inputContainerRef} className={inputContainer} style={{ maxWidth }}>\n {!iconRight && renderIcon()}\n <input\n onChange={handleChange}\n onKeyDown={handleKeyDown}\n onKeyUp={handleKeyUp}\n name={name}\n type={type}\n defaultValue={defaultValue}\n id={inputIdState}\n className={inputClass}\n ref={ref}\n aria-labelledby={props['aria-labelledby'] ?? undefined}\n aria-describedby={props['aria-describedby'] ?? undefined}\n aria-invalid={!!onError}\n disabled={disabled}\n placeholder={placeholder}\n readOnly={readOnly}\n autoComplete={autoComplete || 'off'}\n required={required}\n // eslint-disable-next-line jsx-a11y/no-autofocus\n autoFocus={autoFocus}\n {...rest}\n />\n {iconRight && renderIcon()}\n </div>\n <div className={styles['content-wrapper__right-of-input']}>{rightOfInput}</div>\n </div>\n {maxCharacters && (\n <MaxCharacters maxCharacters={maxCharacters} length={input.toString().length} maxText={maxText} mode={mode} maxWidth={maxWidth} />\n )}\n {afterInputChildren}\n </div>\n </ErrorWrapper>\n );\n});\n\nInput.displayName = 'Input';\n\nexport default Input;\n"],"names":["InputTypes","getInputMaxWidth","characters","hasIcon","iconSize","paddingWidth","iconWidth","borderWidth","AVERAGE_CHARACTER_WIDTH_PX","Input","React","props","ref","className","defaultValue","placeholder","type","name","transparent","icon","iconRight","inputId","inputWrapperRef","mode","FormMode","size","baseIncrementValue","label","error","errorText","testId","disabled","readOnly","autoComplete","afterInputChildren","rightOfInput","width","required","onChange","onKeyDown","autoFocus","maxCharacters","maxText","rest","breakpoint","useBreakpoint","inputContainerRef","useRef","inputIdState","useUuid","input","setInput","useState","prevValue","setPrevValue","numKeyPressed","numRegex","useEffect","onDark","onBlueberry","maxCharactersExceeded","onError","isLarge","FormSize","isTransparent","inputWrapperClass","cn","styles","inputContainer","inputClass","iconColor","getColor","Breakpoint","IconSize","renderIcon","LazyIcon","Icon","handleClick","e","selectedChild","handleChange","newValue","getIncrementValue","valueAsNumber","handleKeyDown","handleKeyUp","maxWidth","ErrorWrapper","AnalyticsId","renderLabel","MaxCharacters","Input$1"],"mappings":";;;;;;;;;;;;AA+EY,IAAAA,uBAAAA,OACVA,EAAA,OAAO,QACPA,EAAA,SAAS,UACTA,EAAA,QAAQ,SACRA,EAAA,WAAW,YACXA,EAAA,SAAS,UACTA,EAAA,MAAM,OACNA,EAAA,MAAM,OACNA,EAAA,OAAO,QACPA,EAAA,OAAO,QATGA,IAAAA,MAAA,CAAA,CA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WyD,EAAO,iBAAiB,KAErCzD,gBAAAA,EAAA,cAAA,OAAA,EAAI,SAASmE,IAAa,KAAK/B,GAAmB,WAAWsB,IAAgB,OAAO,EAAE,UAAAkB,OACpF,CAAClE,KAAasD,EACf,GAAAhE,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,UAAUsE;AAAA,MACV,WAAWI;AAAA,MACX,SAASC;AAAA,MACT,MAAApE;AAAA,MACA,MAAAD;AAAA,MACA,cAAAF;AAAA,MACA,IAAIkC;AAAA,MACJ,WAAWqB;AAAA,MACX,KAAAzD;AAAA,MACA,mBAAiBD,EAAM,iBAAiB,KAAK;AAAA,MAC7C,oBAAkBA,EAAM,kBAAkB,KAAK;AAAA,MAC/C,gBAAc,CAAC,CAACkD;AAAA,MAChB,UAAA9B;AAAA,MACA,aAAAhB;AAAA,MACA,UAAAiB;AAAA,MACA,cAAcC,KAAgB;AAAA,MAC9B,UAAAI;AAAA,MAEA,WAAAG;AAAA,MACC,GAAGG;AAAA,IAAA;AAAA,EAEL,GAAAvB,KAAasD,EAAW,CAC3B,GACAhE,gBAAAA,EAAA,cAAC,OAAI,EAAA,WAAWyD,EAAO,iCAAiC,EAAI,GAAAhC,CAAa,CAC3E,GACCM,KACC/B,gBAAAA,EAAA,cAACgF,IAAc,EAAA,eAAAjD,GAA8B,QAAQS,EAAM,SAAS,EAAE,QAAQ,SAAAR,GAAkB,MAAAnB,GAAY,UAAA+D,EAAoB,CAAA,GAEjIpD,CACH,CACF;AAEJ,CAAC;AAEDzB,EAAM,cAAc;AAEpB,MAAAkF,KAAelF;"}
1
+ {"version":3,"file":"Input.js","sources":["../../../src/components/Input/Input.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState } from 'react';\n\nimport cn from 'classnames';\n\nimport { FormMode, FormSize, AnalyticsId, AVERAGE_CHARACTER_WIDTH_PX } from '../../constants';\nimport { Breakpoint, useBreakpoint } from '../../hooks/useBreakpoint';\nimport { useUuid } from '../../hooks/useUuid';\nimport { getColor } from '../../theme/currys';\nimport ErrorWrapper from '../ErrorWrapper';\nimport Icon, { IconSize, SvgIcon } from '../Icon';\nimport { IconName } from '../Icons/IconNames';\nimport { renderLabel } from '../Label';\nimport LazyIcon from '../LazyIcon';\nimport MaxCharacters from '../MaxCharacters/MaxCharacters';\n\nimport styles from './styles.module.scss';\n\nexport interface InputProps\n extends Pick<\n React.InputHTMLAttributes<HTMLInputElement>,\n | 'disabled'\n | 'readOnly'\n | 'autoComplete'\n | 'name'\n | 'placeholder'\n | 'defaultValue'\n | 'required'\n | 'value'\n | 'min'\n | 'max'\n | 'aria-describedby'\n | 'aria-labelledby'\n | 'onBlur'\n | 'onClick'\n | 'onChange'\n | 'onFocus'\n | 'onKeyDown'\n | 'autoFocus'\n > {\n /** The number at which the input field starts when you increment or decrement it */\n baseIncrementValue?: number;\n /** Adds custom classes to the element. */\n className?: string;\n /** HMTL Input type */\n type?: keyof typeof InputTypes;\n /** input id */\n inputId?: string;\n /** Width of input field in characters (approximate) */\n width?: number;\n /** If true, the component will be transparent. */\n transparent?: boolean;\n /** Icon to be displayed next to the input field */\n icon?: SvgIcon | IconName;\n /** Places the icon to the right */\n iconRight?: boolean;\n /** Ref that is placed on the inputWrapper */\n inputWrapperRef?: React.RefObject<HTMLDivElement>;\n /** Changes the color profile of the input */\n mode?: keyof typeof FormMode;\n /** Changes the visuals of the input */\n size?: keyof typeof FormSize;\n /** Label of the input */\n label?: React.ReactNode;\n /** Activates Error style for the input */\n error?: boolean;\n /** Error text to show above the component */\n errorText?: string;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Component shown after input */\n afterInputChildren?: React.ReactNode;\n /** Component shown to the right of input */\n rightOfInput?: React.ReactNode;\n /** max character limit in input */\n maxCharacters?: number;\n /** The text is displayed in the end of the text-counter */\n maxText?: string;\n}\n\nexport enum InputTypes {\n text = 'text',\n number = 'number',\n email = 'email',\n password = 'password',\n search = 'search',\n tel = 'tel',\n url = 'url',\n date = 'date',\n time = 'time',\n}\n\nconst getInputMaxWidth = (characters: number, hasIcon: boolean, iconSize: number): string => {\n const paddingWidth = hasIcon ? '1.5rem' : '2rem';\n const iconWidth = hasIcon ? `${iconSize}px` : '0px';\n const borderWidth = '4px';\n\n return `calc(${characters * AVERAGE_CHARACTER_WIDTH_PX}px + ${paddingWidth} + ${iconWidth} + ${borderWidth})`;\n};\n\nconst Input = React.forwardRef((props: InputProps, ref: React.Ref<HTMLInputElement>) => {\n const {\n className,\n defaultValue,\n placeholder,\n type = InputTypes.text,\n name,\n transparent = false,\n icon,\n iconRight,\n inputId,\n inputWrapperRef,\n mode = FormMode.onwhite,\n size,\n baseIncrementValue,\n label,\n error,\n errorText,\n testId,\n disabled,\n readOnly,\n autoComplete = 'off',\n afterInputChildren,\n rightOfInput,\n width,\n required,\n onChange,\n onKeyDown,\n autoFocus,\n maxCharacters,\n maxText,\n ...rest\n } = props;\n const breakpoint = useBreakpoint();\n const inputContainerRef = useRef<HTMLDivElement>(null);\n const inputIdState = useUuid(inputId);\n const [input, setInput] = useState(defaultValue || '');\n const [prevValue, setPrevValue] = useState<string | number | undefined>(undefined);\n const numKeyPressed = useRef<boolean>(false);\n const numRegex = /^[0-9]$/;\n\n useEffect(() => {\n setInput(defaultValue || '');\n }, [defaultValue]);\n\n const onDark = mode === FormMode.ondark;\n const onBlueberry = mode === FormMode.onblueberry;\n const maxCharactersExceeded = !!maxCharacters && input.toString().length > maxCharacters;\n const onError = mode === FormMode.oninvalid || !!errorText || !!error || maxCharactersExceeded;\n const isLarge = size === FormSize.large;\n const isTransparent = transparent && mode !== FormMode.ondark && !onError;\n\n const inputWrapperClass = cn(styles['input-wrapper'], className);\n\n const inputContainer = cn(styles['input-container'], {\n [styles['input-container--transparent']]: isTransparent,\n [styles['input-container--on-blueberry']]: onBlueberry,\n [styles['input-container--on-dark']]: onDark,\n [styles['input-container--invalid']]: onError,\n [styles['input-container--large']]: isLarge,\n [styles['input-container--disabled']]: disabled,\n [styles['input-container--with-icon']]: icon,\n });\n\n const inputClass = cn(styles['input-container__input'], {\n [styles['input-container__input--large']]: isLarge,\n [styles['input-container__input--disabled']]: disabled,\n });\n\n const iconColor = disabled ? getColor('neutral', 700) : getColor('black');\n const iconSize = breakpoint === Breakpoint.xs || !isLarge ? IconSize.XSmall : IconSize.Small;\n\n const renderIcon = (): React.ReactNode => {\n if (!icon) {\n return;\n }\n\n if (typeof icon === 'string') {\n return <LazyIcon className={styles['input-container__input__icon']} color={iconColor} size={iconSize} iconName={icon} />;\n }\n\n return <Icon className={styles['input-container__input__icon']} color={iconColor} size={iconSize} svgIcon={icon} />;\n };\n\n // eslint-disable-next-line\n const handleClick = (e: React.MouseEvent<any>): void => {\n if (inputContainerRef && inputContainerRef.current && icon) {\n const selectedChild = iconRight ? 0 : 1;\n const input = inputContainerRef.current.children[selectedChild] as HTMLInputElement;\n input.focus();\n\n props.onClick && props.onClick(e);\n }\n };\n\n const handleChange = (e: React.ChangeEvent<HTMLInputElement>): void => {\n const newValue = getIncrementValue(e);\n\n if (onChange) {\n onChange(e);\n }\n\n setInput(newValue);\n setPrevValue(newValue);\n };\n\n // Hvis bruker endrer number value med 1 og det skal startes på en annen verdi enn 0\n const getIncrementValue = (e: React.ChangeEvent<HTMLInputElement>): string => {\n if (typeof baseIncrementValue === 'undefined' || type !== 'number') return e.target.value;\n\n const valueAsNumber = Number(e.target.value);\n\n if (!prevValue && !numKeyPressed.current && (valueAsNumber === 1 || valueAsNumber === -1)) {\n e.target.value = baseIncrementValue + '';\n }\n\n return e.target.value;\n };\n\n const handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>): void => {\n if (numRegex.test(e.key)) {\n numKeyPressed.current = true;\n }\n onKeyDown && onKeyDown(e);\n };\n\n const handleKeyUp = (e: React.KeyboardEvent<HTMLInputElement>): void => {\n if (numRegex.test(e.key)) {\n numKeyPressed.current = false;\n }\n };\n\n const maxWidth = width ? getInputMaxWidth(width, !!icon, iconSize) : undefined;\n\n return (\n <ErrorWrapper errorText={errorText}>\n <div data-testid={testId} data-analyticsid={AnalyticsId.Input} className={inputWrapperClass} ref={inputWrapperRef}>\n {renderLabel(label, inputIdState, mode as FormMode)}\n {/* input-elementet tillater keyboard-interaksjon */}\n <div className={styles['content-wrapper']}>\n {/* eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events */}\n <div onClick={handleClick} ref={inputContainerRef} className={inputContainer} style={{ maxWidth }}>\n {!iconRight && renderIcon()}\n <input\n onChange={handleChange}\n onKeyDown={handleKeyDown}\n onKeyUp={handleKeyUp}\n name={name}\n type={type}\n defaultValue={defaultValue}\n id={inputIdState}\n className={inputClass}\n ref={ref}\n aria-labelledby={props['aria-labelledby'] ?? undefined}\n aria-describedby={props['aria-describedby'] ?? undefined}\n aria-invalid={!!onError}\n disabled={disabled}\n placeholder={placeholder}\n readOnly={readOnly}\n autoComplete={autoComplete || 'off'}\n required={required}\n // eslint-disable-next-line jsx-a11y/no-autofocus\n autoFocus={autoFocus}\n {...rest}\n />\n {iconRight && renderIcon()}\n </div>\n <div className={styles['content-wrapper__right-of-input']}>{rightOfInput}</div>\n </div>\n {maxCharacters && (\n <MaxCharacters maxCharacters={maxCharacters} length={input.toString().length} maxText={maxText} mode={mode} maxWidth={maxWidth} />\n )}\n {afterInputChildren}\n </div>\n </ErrorWrapper>\n );\n});\n\nInput.displayName = 'Input';\n\nexport default Input;\n"],"names":["InputTypes","getInputMaxWidth","characters","hasIcon","iconSize","paddingWidth","iconWidth","AVERAGE_CHARACTER_WIDTH_PX","Input","React","props","ref","className","defaultValue","placeholder","type","name","transparent","icon","iconRight","inputId","inputWrapperRef","mode","FormMode","size","baseIncrementValue","label","error","errorText","testId","disabled","readOnly","autoComplete","afterInputChildren","rightOfInput","width","required","onChange","onKeyDown","autoFocus","maxCharacters","maxText","rest","breakpoint","useBreakpoint","inputContainerRef","useRef","inputIdState","useUuid","input","setInput","useState","prevValue","setPrevValue","numKeyPressed","numRegex","useEffect","onDark","onBlueberry","maxCharactersExceeded","onError","isLarge","FormSize","isTransparent","inputWrapperClass","cn","styles","inputContainer","inputClass","iconColor","getColor","Breakpoint","IconSize","renderIcon","LazyIcon","Icon","handleClick","e","selectedChild","handleChange","newValue","getIncrementValue","valueAsNumber","handleKeyDown","handleKeyUp","maxWidth","ErrorWrapper","AnalyticsId","renderLabel","MaxCharacters","Input$1"],"mappings":";;;;;;;;;;;;AA+EY,IAAAA,uBAAAA,OACVA,EAAA,OAAO,QACPA,EAAA,SAAS,UACTA,EAAA,QAAQ,SACRA,EAAA,WAAW,YACXA,EAAA,SAAS,UACTA,EAAA,MAAM,OACNA,EAAA,MAAM,OACNA,EAAA,OAAO,QACPA,EAAA,OAAO,QATGA,IAAAA,MAAA,CAAA,CAAA;AAYZ,MAAMC,KAAmB,CAACC,GAAoBC,GAAkBC,MAA6B;AACrF,QAAAC,IAAeF,IAAU,WAAW,QACpCG,IAAYH,IAAU,GAAGC,CAAQ,OAAO;AAGvC,SAAA,QAAQF,IAAaK,EAA0B,QAAQF,CAAY,MAAMC,CAAS;AAC3F,GAEME,IAAQC,EAAM,WAAW,CAACC,GAAmBC,MAAqC;AAChF,QAAA;AAAA,IACJ,WAAAC;AAAA,IACA,cAAAC;AAAA,IACA,aAAAC;AAAA,IACA,MAAAC,IAAO;AAAA,IACP,MAAAC;AAAA,IACA,aAAAC,IAAc;AAAA,IACd,MAAAC;AAAA,IACA,WAAAC;AAAA,IACA,SAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,MAAAC,IAAOC,EAAS;AAAA,IAChB,MAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,OAAAC;AAAA,IACA,OAAAC;AAAA,IACA,WAAAC;AAAA,IACA,QAAAC;AAAA,IACA,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,cAAAC,IAAe;AAAA,IACf,oBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,OAAAC;AAAA,IACA,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,WAAAC;AAA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,GAA8B,QAAQS,EAAM,SAAS,EAAE,QAAQ,SAAAR,GAAkB,MAAAnB,GAAY,UAAA+D,EAAoB,CAAA,GAEjIpD,CACH,CACF;AAEJ,CAAC;AAEDzB,EAAM,cAAc;AAEpB,MAAAkF,KAAelF;"}
@@ -0,0 +1,93 @@
1
+ import React from 'react';
2
+ import { StoryObj } from '@storybook/react';
3
+ import Input, { InputTypes } from './Input';
4
+ import { FormMode, FormSize } from '../../constants';
5
+ type InputWithAndCustomArgs = React.ComponentProps<typeof Input> & {
6
+ showIcon: boolean;
7
+ };
8
+ declare const meta: {
9
+ title: string;
10
+ component: React.ForwardRefExoticComponent<import("./Input").InputProps & React.RefAttributes<HTMLInputElement>>;
11
+ parameters: {
12
+ docs: {
13
+ description: {
14
+ component: string;
15
+ };
16
+ };
17
+ };
18
+ args: {
19
+ width: undefined;
20
+ size: FormSize.medium;
21
+ transparent: false;
22
+ type: InputTypes.text;
23
+ disabled: false;
24
+ mode: FormMode.onwhite;
25
+ showIcon: true;
26
+ iconRight: false;
27
+ readOnly: false;
28
+ autoComplete: string;
29
+ name: string;
30
+ required: false;
31
+ maxText: string;
32
+ };
33
+ argTypes: {
34
+ defaultValue: {
35
+ control: string;
36
+ };
37
+ placeholder: {
38
+ control: string;
39
+ };
40
+ width: {
41
+ control: string;
42
+ };
43
+ size: {
44
+ control: string;
45
+ options: typeof FormSize;
46
+ };
47
+ transparent: {
48
+ control: string;
49
+ };
50
+ type: {
51
+ control: string;
52
+ options: typeof InputTypes;
53
+ };
54
+ disabled: {
55
+ control: string;
56
+ };
57
+ mode: {
58
+ control: string;
59
+ options: typeof FormMode;
60
+ };
61
+ showIcon: {
62
+ control: string;
63
+ };
64
+ iconRight: {
65
+ control: string;
66
+ };
67
+ readOnly: {
68
+ control: string;
69
+ };
70
+ autoComplete: {
71
+ control: string;
72
+ };
73
+ name: {
74
+ control: string;
75
+ };
76
+ required: {
77
+ control: string;
78
+ };
79
+ maxCharacters: {
80
+ control: string;
81
+ };
82
+ maxText: {
83
+ control: string;
84
+ };
85
+ };
86
+ };
87
+ export default meta;
88
+ type Story = StoryObj<InputWithAndCustomArgs>;
89
+ export declare const Default: Story;
90
+ export declare const MultipleExamples: Story;
91
+ export declare const MaxCharacters: Story;
92
+ export declare const AfterInputChildren: Story;
93
+ export declare const BaseIncrementValue: Story;
@@ -1,4 +1,3 @@
1
1
  import Input from './Input';
2
2
  export * from './Input';
3
3
  export default Input;
4
- //# sourceMappingURL=index.d.ts.map
@@ -5,7 +5,7 @@ export type LabelText = {
5
5
  text: string;
6
6
  type?: 'semibold' | 'normal';
7
7
  };
8
- export interface LabelProps extends Pick<React.InputHTMLAttributes<HTMLLabelElement>, 'disabled'> {
8
+ export interface LabelProps {
9
9
  /** Component shown after label - discourage use of this */
10
10
  afterLabelChildren?: React.ReactNode;
11
11
  /** Adds custom classes to the element. */
@@ -34,8 +34,7 @@ export interface LabelProps extends Pick<React.InputHTMLAttributes<HTMLLabelElem
34
34
  testId?: string;
35
35
  }
36
36
  export declare const getLabelText: (label: React.ReactNode) => string;
37
- export declare const renderLabel: (label: React.ReactNode, inputId: string, mode: FormMode, disabled?: boolean) => React.ReactNode;
38
- export declare const renderLabelAsParent: (label: React.ReactNode, children: React.ReactNode, inputId: string, mode: FormMode, disabled?: boolean, labelClassName?: string, labelTextClassName?: string, sublabelWrapperClassName?: string, large?: boolean) => React.ReactNode;
37
+ export declare const renderLabel: (label: React.ReactNode, inputId: string, mode: FormMode) => React.ReactNode;
38
+ export declare const renderLabelAsParent: (label: React.ReactNode, children: React.ReactNode, inputId: string, mode: FormMode, labelClassName?: string, labelTextClassName?: string, sublabelWrapperClassName?: string, large?: boolean) => React.ReactNode;
39
39
  declare const Label: FunctionComponent<LabelProps>;
40
40
  export default Label;
41
- //# sourceMappingURL=Label.d.ts.map
@@ -1,84 +1,79 @@
1
1
  import t from "react";
2
- import h from "classnames";
3
- import { Sublabel as _ } from "./SubLabel.js";
4
- import { AnalyticsId as k, FormMode as F } from "../../constants.js";
5
- import { isComponent as s } from "../../utils/component.js";
2
+ import F from "classnames";
3
+ import { Sublabel as L } from "./SubLabel.js";
4
+ import { AnalyticsId as k, FormMode as b } from "../../constants.js";
5
+ import { isComponent as l } from "../../utils/component.js";
6
6
  import S from "../Spacer/Spacer.js";
7
- import R from "../StatusDot/StatusDot.js";
8
- import a from "./styles.module.scss";
9
- const j = (e) => {
7
+ import _ from "../StatusDot/StatusDot.js";
8
+ import n from "./styles.module.scss";
9
+ const $ = (e) => {
10
10
  let r = "";
11
- return s(e, o) && e.props.labelTexts.forEach((n) => {
12
- r += n.hideFromScreenReader ? "" : n.text;
11
+ return l(e, o) && e.props.labelTexts.forEach((a) => {
12
+ r += a.hideFromScreenReader ? "" : a.text;
13
13
  }), r;
14
- }, q = (e, r, n, l) => /* @__PURE__ */ t.createElement(t.Fragment, null, e && s(e, o) ? t.cloneElement(e, {
14
+ }, j = (e, r, a) => /* @__PURE__ */ t.createElement(t.Fragment, null, e && l(e, o) ? t.cloneElement(e, {
15
15
  htmlFor: r,
16
- mode: n,
17
- disabled: l
18
- }) : typeof e == "string" && /* @__PURE__ */ t.createElement(o, { labelTexts: [{ text: e, type: "semibold" }], htmlFor: r, mode: n, disabled: l })), B = (e, r, n, l, m, c, p, i, d) => /* @__PURE__ */ t.createElement(t.Fragment, null, e && s(e, o) ? t.cloneElement(e, {
19
- htmlFor: n,
20
- mode: l,
16
+ mode: a
17
+ }) : typeof e == "string" && /* @__PURE__ */ t.createElement(o, { labelTexts: [{ text: e, type: "semibold" }], htmlFor: r, mode: a })), q = (e, r, a, s, m, c, p, i) => /* @__PURE__ */ t.createElement(t.Fragment, null, e && l(e, o) ? t.cloneElement(e, {
18
+ htmlFor: a,
19
+ mode: s,
21
20
  children: r,
22
- disabled: m,
23
- labelClassName: h(c, e.props.labelClassName),
24
- labelTextClassName: p,
25
- sublabelWrapperClassName: i,
26
- sublabel: d ? void 0 : e.props.sublabel,
27
- statusDot: d ? void 0 : e.props.statusDot
21
+ labelClassName: F(m, e.props.labelClassName),
22
+ labelTextClassName: c,
23
+ sublabelWrapperClassName: p,
24
+ sublabel: i ? void 0 : e.props.sublabel,
25
+ statusDot: i ? void 0 : e.props.statusDot
28
26
  }) : typeof e == "string" && /* @__PURE__ */ t.createElement(
29
27
  o,
30
28
  {
31
29
  labelTexts: [{ text: e }],
32
- htmlFor: n,
33
- mode: l,
34
- disabled: m,
35
- labelClassName: c,
36
- labelTextClassName: p,
37
- sublabelWrapperClassName: i
30
+ htmlFor: a,
31
+ mode: s,
32
+ labelClassName: m,
33
+ labelTextClassName: c,
34
+ sublabelWrapperClassName: p
38
35
  },
39
36
  r
40
37
  )), o = ({
41
38
  afterLabelChildren: e,
42
39
  children: r,
43
- className: n,
44
- disabled: l,
45
- htmlFor: m,
46
- labelClassName: c,
47
- labelTextClassName: p,
48
- labelId: i,
49
- labelTexts: d,
50
- mode: E = F.onwhite,
51
- statusDot: f,
52
- sublabel: b,
53
- sublabelWrapperClassName: y,
54
- testId: x
40
+ className: a,
41
+ htmlFor: s,
42
+ labelClassName: m,
43
+ labelTextClassName: c,
44
+ labelId: p,
45
+ labelTexts: i,
46
+ mode: d = b.onwhite,
47
+ statusDot: E,
48
+ sublabel: f,
49
+ sublabelWrapperClassName: h,
50
+ testId: y
55
51
  }) => {
56
- const N = r && typeof r < "u", w = h(
57
- a["label-wrapper"],
58
- { [a["label-wrapper--no-bottom-margin"]]: N, [a["label-wrapper--after-label-children"]]: e },
59
- n
60
- ), g = () => d.map((u, v) => {
61
- const L = h(
62
- a.label,
52
+ const x = r && typeof r < "u", N = F(
53
+ n["label-wrapper"],
54
+ { [n["label-wrapper--no-bottom-margin"]]: x, [n["label-wrapper--after-label-children"]]: e },
55
+ a
56
+ ), g = () => i.map((u, v) => {
57
+ const w = F(
58
+ n.label,
63
59
  {
64
- [a["label--semibold"]]: u.type === "semibold",
65
- [a["label--on-dark"]]: E === F.ondark,
66
- [a["label--disabled"]]: l
60
+ [n["label--semibold"]]: u.type === "semibold",
61
+ [n["label--on-dark"]]: d === b.ondark
67
62
  },
68
- p
63
+ c
69
64
  );
70
- return /* @__PURE__ */ t.createElement("span", { "aria-hidden": u.hideFromScreenReader, className: L, key: v }, u.text);
65
+ return /* @__PURE__ */ t.createElement("span", { "aria-hidden": u.hideFromScreenReader, className: w, key: v }, u.text);
71
66
  });
72
- return /* @__PURE__ */ t.createElement("div", { className: w }, /* @__PURE__ */ t.createElement("div", { className: a["label-wrapper__inner"] }, /* @__PURE__ */ t.createElement("label", { className: c, id: i, htmlFor: m, "data-testid": x, "data-analyticsid": k.Label }, /* @__PURE__ */ t.createElement("span", { className: a["label-content-wrapper"] }, r, /* @__PURE__ */ t.createElement("span", { className: a.label__texts }, g()))), /* @__PURE__ */ t.createElement("div", { className: y }, b && s(b, _) && t.cloneElement(b, {
73
- mode: E
74
- }), f && s(f, R) && /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(S, { size: "3xs" }), t.cloneElement(f, {
75
- mode: E === F.ondark ? "ondark" : "onwhite"
76
- })))), e && /* @__PURE__ */ t.createElement("div", { className: a["after-label-children"] }, e));
77
- }, G = o;
67
+ return /* @__PURE__ */ t.createElement("div", { className: N }, /* @__PURE__ */ t.createElement("div", null, /* @__PURE__ */ t.createElement("label", { className: m, id: p, htmlFor: s, "data-testid": y, "data-analyticsid": k.Label }, /* @__PURE__ */ t.createElement("span", { className: n["label-content-wrapper"] }, r, /* @__PURE__ */ t.createElement("span", { className: n.label__texts }, g()))), /* @__PURE__ */ t.createElement("div", { className: h }, f && l(f, L) && t.cloneElement(f, {
68
+ mode: d
69
+ }), E && l(E, _) && /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(S, { size: "3xs" }), t.cloneElement(E, {
70
+ mode: d === b.ondark ? "ondark" : "onwhite"
71
+ })))), e && /* @__PURE__ */ t.createElement("div", { className: n["after-label-children"] }, e));
72
+ }, B = o;
78
73
  export {
79
- G as default,
80
- j as getLabelText,
81
- q as renderLabel,
82
- B as renderLabelAsParent
74
+ B as default,
75
+ $ as getLabelText,
76
+ j as renderLabel,
77
+ q as renderLabelAsParent
83
78
  };
84
79
  //# sourceMappingURL=Label.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Label.js","sources":["../../../src/components/Label/Label.tsx"],"sourcesContent":["import React, { FunctionComponent } from 'react';\n\nimport cn from 'classnames';\n\nimport { Sublabel, SublabelProps } from './SubLabel';\nimport { AnalyticsId, FormMode } from '../../constants';\nimport { isComponent } from '../../utils/component';\nimport Spacer from '../Spacer';\nimport StatusDot, { StatusDotProps } from '../StatusDot';\n\nimport styles from './styles.module.scss';\n\nexport type LabelText = {\n hideFromScreenReader?: boolean;\n text: string;\n type?: 'semibold' | 'normal';\n};\n\nexport interface LabelProps extends Pick<React.InputHTMLAttributes<HTMLLabelElement>, 'disabled'> {\n /** Component shown after label - discourage use of this */\n afterLabelChildren?: React.ReactNode;\n /** Adds custom classes to the element. */\n children?: React.ReactNode;\n /** Adds custom classes to the label tag. */\n labelClassName?: string;\n /** Adds custom classes to the label text. */\n labelTextClassName?: string;\n /** Adds custom classes to the element. */\n className?: string;\n /** Id that is put on the \"for\" attribute of the label */\n htmlFor?: string;\n /** Id som plasseres på <label/> */\n labelId?: string;\n /** Array of main label strings. Can be of type semibold or normal */\n labelTexts: LabelText[];\n /** Array of sublabel strings. Can be of type semibold or normal */\n mode?: keyof typeof FormMode;\n /** StatusDot placed underneath the last sublabel */\n statusDot?: React.ReactNode;\n /** Sublabel component */\n sublabel?: React.ReactNode;\n /** Adds custom classes to the div wrapping the sublabels. */\n sublabelWrapperClassName?: string;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nexport const getLabelText = (label: React.ReactNode): string => {\n let allLabelText = '';\n\n if (isComponent<LabelProps>(label, Label)) {\n label.props.labelTexts.forEach(labelText => {\n allLabelText += !labelText.hideFromScreenReader ? labelText.text : '';\n });\n }\n\n return allLabelText;\n};\n\nexport const renderLabel = (label: React.ReactNode, inputId: string, mode: FormMode, disabled?: boolean): React.ReactNode => {\n return (\n <>\n {label && isComponent<LabelProps>(label, Label)\n ? React.cloneElement(label, {\n htmlFor: inputId,\n mode: mode,\n disabled,\n })\n : typeof label === 'string' && (\n <Label labelTexts={[{ text: label, type: 'semibold' }]} htmlFor={inputId} mode={mode} disabled={disabled} />\n )}\n </>\n );\n};\n\nexport const renderLabelAsParent = (\n label: React.ReactNode,\n children: React.ReactNode,\n inputId: string,\n mode: FormMode,\n disabled?: boolean,\n labelClassName?: string,\n labelTextClassName?: string,\n sublabelWrapperClassName?: string,\n large?: boolean\n): React.ReactNode => {\n return (\n <>\n {label && isComponent<LabelProps>(label, Label)\n ? React.cloneElement(label, {\n htmlFor: inputId,\n mode: mode,\n children: children,\n disabled,\n labelClassName: cn(labelClassName, label.props.labelClassName),\n labelTextClassName: labelTextClassName,\n sublabelWrapperClassName: sublabelWrapperClassName,\n sublabel: large ? undefined : label.props.sublabel,\n statusDot: large ? undefined : label.props.statusDot,\n })\n : typeof label === 'string' && (\n <Label\n labelTexts={[{ text: label }]}\n htmlFor={inputId}\n mode={mode}\n disabled={disabled}\n labelClassName={labelClassName}\n labelTextClassName={labelTextClassName}\n sublabelWrapperClassName={sublabelWrapperClassName}\n >\n {children}\n </Label>\n )}\n </>\n );\n};\n\nconst Label: FunctionComponent<LabelProps> = ({\n afterLabelChildren,\n children,\n className,\n disabled,\n htmlFor,\n labelClassName,\n labelTextClassName,\n labelId,\n labelTexts,\n mode = FormMode.onwhite,\n statusDot,\n sublabel,\n sublabelWrapperClassName,\n testId,\n}) => {\n const hasChildren = children && typeof children !== 'undefined';\n const labelWrapperClasses = cn(\n styles['label-wrapper'],\n { [styles['label-wrapper--no-bottom-margin']]: hasChildren, [styles['label-wrapper--after-label-children']]: afterLabelChildren },\n className\n );\n\n const mapLabels = (): React.ReactNode => {\n return labelTexts.map((labelText, index) => {\n const labelClasses = cn(\n styles.label,\n {\n [styles['label--semibold']]: labelText.type === 'semibold',\n [styles['label--on-dark']]: mode === FormMode.ondark,\n [styles['label--disabled']]: disabled,\n },\n labelTextClassName\n );\n return (\n <span aria-hidden={labelText.hideFromScreenReader} className={labelClasses} key={index}>\n {labelText.text}\n </span>\n );\n });\n };\n\n return (\n <div className={labelWrapperClasses}>\n <div className={styles['label-wrapper__inner']}>\n <label className={labelClassName} id={labelId} htmlFor={htmlFor} data-testid={testId} data-analyticsid={AnalyticsId.Label}>\n <span className={styles['label-content-wrapper']}>\n {children}\n <span className={styles.label__texts}>{mapLabels()}</span>\n </span>\n </label>\n <div className={sublabelWrapperClassName}>\n {sublabel &&\n isComponent<SublabelProps>(sublabel, Sublabel) &&\n React.cloneElement(sublabel, {\n mode: mode as FormMode,\n })}\n {statusDot && isComponent<StatusDotProps>(statusDot, StatusDot) && (\n <>\n <Spacer size={'3xs'} />\n {React.cloneElement(statusDot, {\n mode: mode === FormMode.ondark ? 'ondark' : 'onwhite',\n })}\n </>\n )}\n </div>\n </div>\n {afterLabelChildren && <div className={styles['after-label-children']}>{afterLabelChildren}</div>}\n </div>\n );\n};\n\nexport default Label;\n"],"names":["getLabelText","label","allLabelText","isComponent","Label","labelText","renderLabel","inputId","mode","disabled","React","renderLabelAsParent","children","labelClassName","labelTextClassName","sublabelWrapperClassName","large","cn","afterLabelChildren","className","htmlFor","labelId","labelTexts","FormMode","statusDot","sublabel","testId","hasChildren","labelWrapperClasses","styles","mapLabels","index","labelClasses","AnalyticsId","Sublabel","StatusDot","Spacer","Label$1"],"mappings":";;;;;;;;AA+Ca,MAAAA,IAAe,CAACC,MAAmC;AAC9D,MAAIC,IAAe;AAEf,SAAAC,EAAwBF,GAAOG,CAAK,KAChCH,EAAA,MAAM,WAAW,QAAQ,CAAaI,MAAA;AAC1C,IAAAH,KAAiBG,EAAU,uBAAwC,KAAjBA,EAAU;AAAA,EAAO,CACpE,GAGIH;AACT,GAEaI,IAAc,CAACL,GAAwBM,GAAiBC,GAAgBC,MAEjFC,gBAAAA,EAAA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AA,IAC3B,MAAAjB;AAAA,EAAA,CACD,GACFgB,KAAarB,EAA4BqB,GAAWW,CAAS,KAE1DzB,gBAAAA,EAAA,cAAAA,EAAA,UAAA,MAAAA,gBAAAA,EAAA,cAAC0B,KAAO,MAAM,MAAA,CAAO,GACpB1B,EAAM,aAAac,GAAW;AAAA,IAC7B,MAAMhB,MAASe,EAAS,SAAS,WAAW;AAAA,EAC7C,CAAA,CACH,CAEJ,CACF,GACCL,KAAuBR,gBAAAA,EAAA,cAAA,OAAA,EAAI,WAAWmB,EAAO,sBAAsB,EAAA,GAAIX,CAAmB,CAC7F;AAEJ,GAEAmB,IAAejC;"}
1
+ {"version":3,"file":"Label.js","sources":["../../../src/components/Label/Label.tsx"],"sourcesContent":["import React, { FunctionComponent } from 'react';\n\nimport cn from 'classnames';\n\nimport { Sublabel, SublabelProps } from './SubLabel';\nimport { AnalyticsId, FormMode } from '../../constants';\nimport { isComponent } from '../../utils/component';\nimport Spacer from '../Spacer';\nimport StatusDot, { StatusDotProps } from '../StatusDot';\n\nimport styles from './styles.module.scss';\n\nexport type LabelText = {\n hideFromScreenReader?: boolean;\n text: string;\n type?: 'semibold' | 'normal';\n};\n\nexport interface LabelProps {\n /** Component shown after label - discourage use of this */\n afterLabelChildren?: React.ReactNode;\n /** Adds custom classes to the element. */\n children?: React.ReactNode;\n /** Adds custom classes to the label tag. */\n labelClassName?: string;\n /** Adds custom classes to the label text. */\n labelTextClassName?: string;\n /** Adds custom classes to the element. */\n className?: string;\n /** Id that is put on the \"for\" attribute of the label */\n htmlFor?: string;\n /** Id som plasseres på <label/> */\n labelId?: string;\n /** Array of main label strings. Can be of type semibold or normal */\n labelTexts: LabelText[];\n /** Array of sublabel strings. Can be of type semibold or normal */\n mode?: keyof typeof FormMode;\n /** StatusDot placed underneath the last sublabel */\n statusDot?: React.ReactNode;\n /** Sublabel component */\n sublabel?: React.ReactNode;\n /** Adds custom classes to the div wrapping the sublabels. */\n sublabelWrapperClassName?: string;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nexport const getLabelText = (label: React.ReactNode): string => {\n let allLabelText = '';\n\n if (isComponent<LabelProps>(label, Label)) {\n label.props.labelTexts.forEach(labelText => {\n allLabelText += !labelText.hideFromScreenReader ? labelText.text : '';\n });\n }\n\n return allLabelText;\n};\n\nexport const renderLabel = (label: React.ReactNode, inputId: string, mode: FormMode): React.ReactNode => {\n return (\n <>\n {label && isComponent<LabelProps>(label, Label)\n ? React.cloneElement(label, {\n htmlFor: inputId,\n mode: mode,\n })\n : typeof label === 'string' && <Label labelTexts={[{ text: label, type: 'semibold' }]} htmlFor={inputId} mode={mode} />}\n </>\n );\n};\n\nexport const renderLabelAsParent = (\n label: React.ReactNode,\n children: React.ReactNode,\n inputId: string,\n mode: FormMode,\n labelClassName?: string,\n labelTextClassName?: string,\n sublabelWrapperClassName?: string,\n large?: boolean\n): React.ReactNode => {\n return (\n <>\n {label && isComponent<LabelProps>(label, Label)\n ? React.cloneElement(label, {\n htmlFor: inputId,\n mode: mode,\n children: children,\n labelClassName: cn(labelClassName, label.props.labelClassName),\n labelTextClassName: labelTextClassName,\n sublabelWrapperClassName: sublabelWrapperClassName,\n sublabel: large ? undefined : label.props.sublabel,\n statusDot: large ? undefined : label.props.statusDot,\n })\n : typeof label === 'string' && (\n <Label\n labelTexts={[{ text: label }]}\n htmlFor={inputId}\n mode={mode}\n labelClassName={labelClassName}\n labelTextClassName={labelTextClassName}\n sublabelWrapperClassName={sublabelWrapperClassName}\n >\n {children}\n </Label>\n )}\n </>\n );\n};\n\nconst Label: FunctionComponent<LabelProps> = ({\n afterLabelChildren,\n children,\n className,\n htmlFor,\n labelClassName,\n labelTextClassName,\n labelId,\n labelTexts,\n mode = FormMode.onwhite,\n statusDot,\n sublabel,\n sublabelWrapperClassName,\n testId,\n}) => {\n const hasChildren = children && typeof children !== 'undefined';\n const labelWrapperClasses = cn(\n styles['label-wrapper'],\n { [styles['label-wrapper--no-bottom-margin']]: hasChildren, [styles['label-wrapper--after-label-children']]: afterLabelChildren },\n className\n );\n\n const mapLabels = (): React.ReactNode => {\n return labelTexts.map((labelText, index) => {\n const labelClasses = cn(\n styles.label,\n {\n [styles['label--semibold']]: labelText.type === 'semibold',\n [styles['label--on-dark']]: mode === FormMode.ondark,\n },\n labelTextClassName\n );\n return (\n <span aria-hidden={labelText.hideFromScreenReader} className={labelClasses} key={index}>\n {labelText.text}\n </span>\n );\n });\n };\n\n return (\n <div className={labelWrapperClasses}>\n <div>\n <label className={labelClassName} id={labelId} htmlFor={htmlFor} data-testid={testId} data-analyticsid={AnalyticsId.Label}>\n <span className={styles['label-content-wrapper']}>\n {children}\n <span className={styles.label__texts}>{mapLabels()}</span>\n </span>\n </label>\n <div className={sublabelWrapperClassName}>\n {sublabel &&\n isComponent<SublabelProps>(sublabel, Sublabel) &&\n React.cloneElement(sublabel, {\n mode: mode as FormMode,\n })}\n {statusDot && isComponent<StatusDotProps>(statusDot, StatusDot) && (\n <>\n <Spacer size={'3xs'} />\n {React.cloneElement(statusDot, {\n mode: mode === FormMode.ondark ? 'ondark' : 'onwhite',\n })}\n </>\n )}\n </div>\n </div>\n {afterLabelChildren && <div className={styles['after-label-children']}>{afterLabelChildren}</div>}\n </div>\n );\n};\n\nexport default Label;\n"],"names":["getLabelText","label","allLabelText","isComponent","Label","labelText","renderLabel","inputId","mode","React","renderLabelAsParent","children","labelClassName","labelTextClassName","sublabelWrapperClassName","large","cn","afterLabelChildren","className","htmlFor","labelId","labelTexts","FormMode","statusDot","sublabel","testId","hasChildren","labelWrapperClasses","styles","mapLabels","index","labelClasses","AnalyticsId","Sublabel","StatusDot","Spacer","Label$1"],"mappings":";;;;;;;;AA+Ca,MAAAA,IAAe,CAACC,MAAmC;AAC9D,MAAIC,IAAe;AAEf,SAAAC,EAAwBF,GAAOG,CAAK,KAChCH,EAAA,MAAM,WAAW,QAAQ,CAAaI,MAAA;AAC1C,IAAAH,KAAiBG,EAAU,uBAAwC,KAAjBA,EAAU;AAAA,EAA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AAO,MAAM,MAAA,CAAO,GACpB1B,EAAM,aAAac,GAAW;AAAA,IAC7B,MAAMf,MAASc,EAAS,SAAS,WAAW;AAAA,EAC7C,CAAA,CACH,CAEJ,CACF,GACCL,KAAuBR,gBAAAA,EAAA,cAAA,OAAA,EAAI,WAAWmB,EAAO,sBAAsB,EAAA,GAAIX,CAAmB,CAC7F;AAEJ,GAEAmB,IAAehC;"}
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import { StoryObj } from '@storybook/react';
3
+ import Label from './Label';
4
+ type LabelWithAndCustomArgs = React.ComponentProps<typeof Label> & {
5
+ showIcon: boolean;
6
+ };
7
+ declare const meta: {
8
+ title: string;
9
+ component: React.FunctionComponent<import("./Label").LabelProps>;
10
+ parameters: {
11
+ docs: {
12
+ description: {
13
+ component: string;
14
+ };
15
+ };
16
+ };
17
+ argTypes: {};
18
+ };
19
+ export default meta;
20
+ type Story = StoryObj<LabelWithAndCustomArgs>;
21
+ export declare const Default: Story;
22
+ export declare const OnDark: Story;
23
+ export declare const ChildrenAfterLabel: Story;
24
+ export declare const LabelAsString: Story;
@@ -14,4 +14,3 @@ export interface SublabelProps {
14
14
  testId?: string;
15
15
  }
16
16
  export declare const Sublabel: React.FC<SublabelProps>;
17
- //# sourceMappingURL=SubLabel.d.ts.map
@@ -2,4 +2,3 @@ import Label from './Label';
2
2
  export { Sublabel } from './SubLabel';
3
3
  export * from './Label';
4
4
  export default Label;
5
- //# sourceMappingURL=index.d.ts.map
@@ -14,4 +14,3 @@ declare class ErrorBoundary<T> extends React.Component<ErrorBoundaryProps<T>, Er
14
14
  render(): React.ReactNode;
15
15
  }
16
16
  export default ErrorBoundary;
17
- //# sourceMappingURL=ErrorBoundary.d.ts.map
@@ -7,4 +7,3 @@ export interface LazyIconProps extends BaseIconProps {
7
7
  export declare const lazyLoadIcon: (iconName: IconName) => React.LazyExoticComponent<SvgIcon>;
8
8
  export declare const LazyIcon: React.FC<LazyIconProps>;
9
9
  export default LazyIcon;
10
- //# sourceMappingURL=LazyIcon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LazyIcon.js","sources":["../../../src/components/LazyIcon/LazyIcon.tsx"],"sourcesContent":["import React, { lazy, Suspense, useMemo } from 'react';\n\nimport ErrorBoundary from './ErrorBoundary';\nimport { isServerSide } from './utils';\nimport Icon, { BaseIconProps, IconSize, SvgIcon } from '../Icon';\nimport { IconName } from '../Icons/IconNames';\n\nexport interface LazyIconProps extends BaseIconProps {\n // Navnet på ikonet som skal vises. Tilsvarer filnavnet til ikonet i Icons-mappen\n iconName: IconName;\n}\n\nexport const lazyLoadIcon = (iconName: IconName): React.LazyExoticComponent<SvgIcon> =>\n lazy<SvgIcon>(() => import(`../Icons/${iconName}.tsx`));\n\nexport const LazyIcon: React.FC<LazyIconProps> = ({ iconName, size = IconSize.Small, ...rest }) => {\n const icon = useMemo(() => lazyLoadIcon(iconName), [iconName]);\n\n if (isServerSide()) {\n return null;\n }\n\n const fallback = (\n <svg\n data-testid={'fallback'}\n role={'presentation'}\n focusable={false}\n aria-hidden={true}\n viewBox=\"0 0 48 48\"\n style={{ minWidth: size, minHeight: size }}\n width={size}\n height={size}\n />\n );\n\n return (\n <ErrorBoundary fallback={fallback} reset={iconName}>\n <Suspense fallback={fallback}>\n <Icon svgIcon={icon} size={size} {...rest} />\n </Suspense>\n </ErrorBoundary>\n );\n};\n\nexport default LazyIcon;\n"],"names":["lazyLoadIcon","iconName","lazy","__variableDynamicImportRuntimeHelper","LazyIcon","size","IconSize","rest","icon","useMemo","isServerSide","fallback","React","ErrorBoundary","Suspense","Icon","LazyIcon$1"],"mappings":";;;;;;AAYa,MAAAA,IAAe,CAACC,MAC3BC,EAAc,MAAMC,EAAkC,uBAAA,OAAA,EAAA,iCAAA,MAAA,OAAA,8BAAA,GAAA,gCAAA,MAAA,OAAA,6BAAA,GAAA,2BAAA,MAAA,OAAA,wBAAA,GAAA,8BAAA,MAAA,OAAA,2BAAA,GAAA,gCAAA,MAAA,OAA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AAE7D,MAAIS;AACK,WAAA;AAGT,QAAMC,IACJC,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,eAAa;AAAA,MACb,MAAM;AAAA,MACN,WAAW;AAAA,MACX,eAAa;AAAA,MACb,SAAQ;AAAA,MACR,OAAO,EAAE,UAAUP,GAAM,WAAWA,EAAK;AAAA,MACzC,OAAOA;AAAA,MACP,QAAQA;AAAA,IAAA;AAAA,EAAA;AAIZ,yCACGQ,GAAc,EAAA,UAAAF,GAAoB,OAAOV,qCACvCa,GAAS,EAAA,UAAAH,EAAA,GACPC,gBAAAA,EAAA,cAAAG,GAAA,EAAK,SAASP,GAAM,MAAAH,GAAa,GAAGE,GAAM,CAC7C,CACF;AAEJ,GAEAS,IAAeZ;"}
1
+ {"version":3,"file":"LazyIcon.js","sources":["../../../src/components/LazyIcon/LazyIcon.tsx"],"sourcesContent":["import React, { lazy, Suspense, useMemo } from 'react';\n\nimport ErrorBoundary from './ErrorBoundary';\nimport { isServerSide } from './utils';\nimport Icon, { BaseIconProps, IconSize, SvgIcon } from '../Icon';\nimport { IconName } from '../Icons/IconNames';\n\nexport interface LazyIconProps extends BaseIconProps {\n // Navnet på ikonet som skal vises. Tilsvarer filnavnet til ikonet i Icons-mappen\n iconName: IconName;\n}\n\nexport const lazyLoadIcon = (iconName: IconName): React.LazyExoticComponent<SvgIcon> =>\n lazy<SvgIcon>(() => import(`../Icons/${iconName}.tsx`));\n\nexport const LazyIcon: React.FC<LazyIconProps> = ({ iconName, size = IconSize.Small, ...rest }) => {\n const icon = useMemo(() => lazyLoadIcon(iconName), [iconName]);\n\n if (isServerSide()) {\n return null;\n }\n\n const fallback = (\n <svg\n data-testid={'fallback'}\n role={'presentation'}\n focusable={false}\n aria-hidden={true}\n viewBox=\"0 0 48 48\"\n style={{ minWidth: size, minHeight: size }}\n width={size}\n height={size}\n />\n );\n\n return (\n <ErrorBoundary fallback={fallback} reset={iconName}>\n <Suspense fallback={fallback}>\n <Icon svgIcon={icon} size={size} {...rest} />\n </Suspense>\n </ErrorBoundary>\n );\n};\n\nexport default LazyIcon;\n"],"names":["lazyLoadIcon","iconName","lazy","__variableDynamicImportRuntimeHelper","LazyIcon","size","IconSize","rest","icon","useMemo","isServerSide","fallback","React","ErrorBoundary","Suspense","Icon","LazyIcon$1"],"mappings":";;;;;;AAYa,MAAAA,IAAe,CAACC,MAC3BC,EAAc,MAAMC,2/mBAAkC,YAAAF,CAAA,MAAA,CAAA,GAE3CG,IAAoC,CAAC,EAAE,UAAAH,GAAU,MAAAI,IAAOC,EAAS,OAAO,GAAGC,QAAW;AAC3F,QAAAC,IAAOC,EAAQ,MAAMT,EAAaC,CAAQ,GAAG,CAACA,CAAQ,CAAC;AAE7D,MAAIS;AACK,WAAA;AAGT,QAAMC,IACJC,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,eAAa;AAAA,MACb,MAAM;AAAA,MACN,WAAW;AAAA,MACX,eAAa;AAAA,MACb,SAAQ;AAAA,MACR,OAAO,EAAE,UAAUP,GAAM,WAAWA,EAAK;AAAA,MACzC,OAAOA;AAAA,MACP,QAAQA;AAAA,IAAA;AAAA,EAAA;AAIZ,yCACGQ,GAAc,EAAA,UAAAF,GAAoB,OAAOV,qCACvCa,GAAS,EAAA,UAAAH,EAAA,GACPC,gBAAAA,EAAA,cAAAG,GAAA,EAAK,SAASP,GAAM,MAAAH,GAAa,GAAGE,GAAM,CAC7C,CACF;AAEJ,GAEAS,IAAeZ;"}