@helsenorge/designsystem-react 1.0.0-beta104 → 1.0.0-beta108

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 (511) hide show
  1. package/Button-7e82091f.js +2 -0
  2. package/Button-7e82091f.js.map +1 -0
  3. package/CHANGELOG.md +52 -52
  4. package/Checkbox-f2418dc5.js +2 -0
  5. package/Checkbox-f2418dc5.js.map +1 -0
  6. package/Close-d81081c8.js +2 -0
  7. package/Close-d81081c8.js.map +1 -0
  8. package/FormGroup-af33981a.js +2 -0
  9. package/FormGroup-af33981a.js.map +1 -0
  10. package/Input-31d7accc.js +2 -0
  11. package/Input-31d7accc.js.map +1 -0
  12. package/{Loader-fa16a352.js → Loader-bc13d060.js} +2 -2
  13. package/Loader-bc13d060.js.map +1 -0
  14. package/Modal-ff546be0.js +2 -0
  15. package/Modal-ff546be0.js.map +1 -0
  16. package/README.md +69 -69
  17. package/{RadioButton-fe4bbd36.js → RadioButton-c173d440.js} +2 -2
  18. package/RadioButton-c173d440.js.map +1 -0
  19. package/{Textarea-e1d1144c.js → Textarea-78e20c9a.js} +2 -2
  20. package/Textarea-78e20c9a.js.map +1 -0
  21. package/{Title-af53f589.js → Title-9df559dd.js} +2 -2
  22. package/Title-9df559dd.js.map +1 -0
  23. package/{Validation-fd3f7f58.js → Validation-4041c083.js} +2 -2
  24. package/Validation-4041c083.js.map +1 -0
  25. package/components/AnchorLink/AnchorLink.d.ts +18 -18
  26. package/components/AnchorLink/index.d.ts +3 -3
  27. package/components/AnchorLink/index.js +1 -1
  28. package/components/AnchorLink/styles.module.scss +63 -63
  29. package/components/AnchorLink/styles.module.scss.d.ts +10 -10
  30. package/components/Avatar/Avatar.d.ts +15 -15
  31. package/components/Avatar/index.d.ts +3 -3
  32. package/components/Avatar/index.js +1 -1
  33. package/components/Avatar/styles.module.scss +22 -22
  34. package/components/Avatar/styles.module.scss.d.ts +11 -11
  35. package/components/Badge/Badge.d.ts +16 -16
  36. package/components/Badge/index.d.ts +3 -3
  37. package/components/Badge/index.js +1 -1
  38. package/components/Badge/styles.module.scss +41 -41
  39. package/components/Badge/styles.module.scss.d.ts +17 -17
  40. package/components/Button/Button.d.ts +42 -39
  41. package/components/Button/Button.d.ts.map +1 -1
  42. package/components/Button/componentdata.json +21 -2
  43. package/components/Button/index.d.ts +3 -3
  44. package/components/Button/index.js +1 -1
  45. package/components/Button/styles.module.scss +434 -434
  46. package/components/Button/styles.module.scss.d.ts +34 -34
  47. package/components/ButtonWithModal/ButtonWithModal.d.ts +10 -10
  48. package/components/ButtonWithModal/index.d.ts +3 -3
  49. package/components/ButtonWithModal/index.js +1 -1
  50. package/components/Checkbox/Checkbox.d.ts +30 -30
  51. package/components/Checkbox/index.d.ts +3 -3
  52. package/components/Checkbox/index.js +1 -1
  53. package/components/Checkbox/styles.module.scss +204 -204
  54. package/components/Checkbox/styles.module.scss.d.ts +26 -26
  55. package/components/Close/Close.d.ts +11 -11
  56. package/components/Close/index.d.ts +3 -3
  57. package/components/Close/index.js +1 -1
  58. package/components/Close/styles.module.scss +32 -32
  59. package/components/Close/styles.module.scss.d.ts +9 -9
  60. package/components/Expander/Expander.d.ts +32 -32
  61. package/components/Expander/Expander.d.ts.map +1 -1
  62. package/components/Expander/index.d.ts +3 -3
  63. package/components/Expander/index.js +1 -1
  64. package/components/Expander/styles.module.scss +165 -165
  65. package/components/Expander/styles.module.scss.d.ts +42 -42
  66. package/components/ExpanderList/ExpanderList.d.ts +47 -45
  67. package/components/ExpanderList/ExpanderList.d.ts.map +1 -1
  68. package/components/ExpanderList/index.d.ts +3 -3
  69. package/components/ExpanderList/index.js +1 -1
  70. package/components/ExpanderList/styles.module.scss +160 -155
  71. package/components/ExpanderList/styles.module.scss.d.ts +28 -27
  72. package/components/FormExample/FormExample.d.ts +15 -15
  73. package/components/FormExample/index.d.ts +3 -3
  74. package/components/FormExample/index.js +1 -1
  75. package/components/FormExample/index.js.map +1 -1
  76. package/components/FormGroup/FormGroup.d.ts +24 -24
  77. package/components/FormGroup/index.d.ts +3 -3
  78. package/components/FormGroup/index.js +1 -1
  79. package/components/FormGroup/styles.module.scss +67 -67
  80. package/components/FormGroup/styles.module.scss.d.ts +16 -16
  81. package/components/HighlightBox/HighlightBox.d.ts +26 -23
  82. package/components/HighlightBox/HighlightBox.d.ts.map +1 -1
  83. package/components/HighlightBox/componentdata.json +19 -0
  84. package/components/HighlightBox/index.d.ts +3 -3
  85. package/components/HighlightBox/index.js +1 -1
  86. package/components/HighlightBox/styles.module.scss +174 -89
  87. package/components/Icons/ActiveMonitoring.d.ts +4 -4
  88. package/components/Icons/AcupunctureBack.d.ts +4 -4
  89. package/components/Icons/AcupunctureBack.js +1 -1
  90. package/components/Icons/AdditionalIconInformation.js +263 -263
  91. package/components/Icons/AdditionalIconInformation.js.map +1 -1
  92. package/components/Icons/AlarmClock.d.ts +4 -4
  93. package/components/Icons/AlertSignFill.d.ts +4 -4
  94. package/components/Icons/AlertSignStroke.d.ts +4 -4
  95. package/components/Icons/Amputation.d.ts +4 -4
  96. package/components/Icons/Anxiety.d.ts +4 -4
  97. package/components/Icons/Apple.d.ts +4 -4
  98. package/components/Icons/Archive.d.ts +4 -4
  99. package/components/Icons/ArmFlexing.d.ts +4 -4
  100. package/components/Icons/ArrowLeft.d.ts +4 -4
  101. package/components/Icons/ArrowRight.d.ts +4 -4
  102. package/components/Icons/ArrowUpRight.d.ts +4 -4
  103. package/components/Icons/Attachment.d.ts +4 -4
  104. package/components/Icons/Atv.d.ts +4 -4
  105. package/components/Icons/Avatar.d.ts +4 -4
  106. package/components/Icons/AwakePersonOnPillow.d.ts +4 -4
  107. package/components/Icons/Baby.d.ts +4 -4
  108. package/components/Icons/BandAid.d.ts +4 -4
  109. package/components/Icons/BeerAndPills.d.ts +4 -4
  110. package/components/Icons/Bell.d.ts +4 -4
  111. package/components/Icons/Bike.d.ts +4 -4
  112. package/components/Icons/BirthControl.d.ts +4 -4
  113. package/components/Icons/BirthdayCake.d.ts +4 -4
  114. package/components/Icons/Boat.d.ts +4 -4
  115. package/components/Icons/Body.d.ts +4 -4
  116. package/components/Icons/Brain.d.ts +4 -4
  117. package/components/Icons/BreastReconstruction.d.ts +4 -4
  118. package/components/Icons/BreastRemoval.d.ts +4 -4
  119. package/components/Icons/Breasts.d.ts +4 -4
  120. package/components/Icons/BrokenHeart.d.ts +4 -4
  121. package/components/Icons/BrokenPuzzle.d.ts +4 -4
  122. package/components/Icons/Bus.d.ts +4 -4
  123. package/components/Icons/Calendar.d.ts +4 -4
  124. package/components/Icons/CalendarChange.d.ts +4 -4
  125. package/components/Icons/CalendarCheck.d.ts +4 -4
  126. package/components/Icons/CalendarEvent.d.ts +4 -4
  127. package/components/Icons/CalendarSave.d.ts +4 -4
  128. package/components/Icons/Cancer.d.ts +4 -4
  129. package/components/Icons/Car.d.ts +4 -4
  130. package/components/Icons/Change.d.ts +4 -4
  131. package/components/Icons/Check.d.ts +4 -4
  132. package/components/Icons/CheckOutline.d.ts +4 -4
  133. package/components/Icons/Chest.d.ts +4 -4
  134. package/components/Icons/ChevronDown.d.ts +4 -4
  135. package/components/Icons/ChevronLeft.d.ts +4 -4
  136. package/components/Icons/ChevronRight.d.ts +4 -4
  137. package/components/Icons/ChevronUp.d.ts +4 -4
  138. package/components/Icons/ChevronsDown.d.ts +4 -4
  139. package/components/Icons/ChevronsUp.d.ts +4 -4
  140. package/components/Icons/ChildPlaying.d.ts +4 -4
  141. package/components/Icons/Cigarette.d.ts +4 -4
  142. package/components/Icons/Contacts.d.ts +4 -4
  143. package/components/Icons/Copy.d.ts +4 -4
  144. package/components/Icons/CoronaCertificate.d.ts +4 -4
  145. package/components/Icons/Coronavirus.d.ts +4 -4
  146. package/components/Icons/Cough.d.ts +4 -4
  147. package/components/Icons/CriticalHealthInfo.d.ts +4 -4
  148. package/components/Icons/Cross.d.ts +4 -4
  149. package/components/Icons/DataExchange.d.ts +4 -4
  150. package/components/Icons/DataReceived.d.ts +4 -4
  151. package/components/Icons/DataSent.d.ts +4 -4
  152. package/components/Icons/Depression.d.ts +4 -4
  153. package/components/Icons/DigestiveSystem.d.ts +4 -4
  154. package/components/Icons/Dizzy.d.ts +4 -4
  155. package/components/Icons/Documents.d.ts +4 -4
  156. package/components/Icons/Dog.d.ts +4 -4
  157. package/components/Icons/DonorCard.d.ts +4 -4
  158. package/components/Icons/Download.d.ts +4 -4
  159. package/components/Icons/Draft.d.ts +4 -4
  160. package/components/Icons/EChat.d.ts +4 -4
  161. package/components/Icons/EarNoseThroat.d.ts +4 -4
  162. package/components/Icons/ElderlyPerson.d.ts +4 -4
  163. package/components/Icons/Embolization.d.ts +4 -4
  164. package/components/Icons/EnterFullScreen.d.ts +4 -4
  165. package/components/Icons/Envelope.d.ts +4 -4
  166. package/components/Icons/Epilepsy.d.ts +4 -4
  167. package/components/Icons/Eraser.d.ts +4 -4
  168. package/components/Icons/ErrorSignFill.d.ts +4 -4
  169. package/components/Icons/ErrorSignStroke.d.ts +4 -4
  170. package/components/Icons/EuropeanHealthCard.d.ts +4 -4
  171. package/components/Icons/ExitFullScreen.d.ts +4 -4
  172. package/components/Icons/Eye.d.ts +4 -4
  173. package/components/Icons/Facebook.d.ts +4 -4
  174. package/components/Icons/Female.d.ts +4 -4
  175. package/components/Icons/FemaleDoctor.d.ts +4 -4
  176. package/components/Icons/Ferry.d.ts +4 -4
  177. package/components/Icons/FingerBleed.d.ts +4 -4
  178. package/components/Icons/FirstAidKit.d.ts +4 -4
  179. package/components/Icons/FloppyDisk.d.ts +4 -4
  180. package/components/Icons/Football.d.ts +4 -4
  181. package/components/Icons/Form.d.ts +4 -4
  182. package/components/Icons/Forward.d.ts +4 -4
  183. package/components/Icons/Gallery.d.ts +4 -4
  184. package/components/Icons/Garden.d.ts +4 -4
  185. package/components/Icons/GasCan.d.ts +4 -4
  186. package/components/Icons/GenderIdentity.d.ts +4 -4
  187. package/components/Icons/Globe.d.ts +4 -4
  188. package/components/Icons/HandWaving.d.ts +4 -4
  189. package/components/Icons/HandWithDisease.d.ts +4 -4
  190. package/components/Icons/HealthClinic.d.ts +4 -4
  191. package/components/Icons/HealthWarning.d.ts +4 -4
  192. package/components/Icons/Heart.d.ts +4 -4
  193. package/components/Icons/HelpSign.d.ts +4 -4
  194. package/components/Icons/HelpingHand.d.ts +4 -4
  195. package/components/Icons/Hemodialysis.d.ts +4 -4
  196. package/components/Icons/Hiker.d.ts +4 -4
  197. package/components/Icons/Hipprosthesis.d.ts +4 -4
  198. package/components/Icons/History.d.ts +4 -4
  199. package/components/Icons/HivAndAids.d.ts +4 -4
  200. package/components/Icons/Home.d.ts +4 -4
  201. package/components/Icons/Hormone.d.ts +4 -4
  202. package/components/Icons/Hospital.d.ts +4 -4
  203. package/components/Icons/Hourglass.d.ts +4 -4
  204. package/components/Icons/Icon.d.ts +22 -22
  205. package/components/Icons/Icon.js +1 -1
  206. package/components/Icons/ImgFile.d.ts +4 -4
  207. package/components/Icons/Inbox.d.ts +4 -4
  208. package/components/Icons/InfoSignFill.d.ts +4 -4
  209. package/components/Icons/InfoSignStroke.d.ts +4 -4
  210. package/components/Icons/Instagram.d.ts +4 -4
  211. package/components/Icons/Intravenous.d.ts +4 -4
  212. package/components/Icons/JointPain.d.ts +4 -4
  213. package/components/Icons/Journal.d.ts +4 -4
  214. package/components/Icons/JpgFile.d.ts +4 -4
  215. package/components/Icons/Kidney.d.ts +4 -4
  216. package/components/Icons/KitchenScale.d.ts +4 -4
  217. package/components/Icons/Kjernejournal.d.ts +4 -4
  218. package/components/Icons/Laboratory.d.ts +4 -4
  219. package/components/Icons/LaptopBlog.d.ts +4 -4
  220. package/components/Icons/LawBook.d.ts +4 -4
  221. package/components/Icons/LightBulb.d.ts +4 -4
  222. package/components/Icons/List.d.ts +4 -4
  223. package/components/Icons/Location.d.ts +4 -4
  224. package/components/Icons/Lock.d.ts +4 -4
  225. package/components/Icons/Lungs.d.ts +4 -4
  226. package/components/Icons/Makeup.d.ts +4 -4
  227. package/components/Icons/MaleDoctor.d.ts +4 -4
  228. package/components/Icons/MaleDoctorAndPerson.d.ts +4 -4
  229. package/components/Icons/MaleGenitalia.d.ts +4 -4
  230. package/components/Icons/Medicine.d.ts +4 -4
  231. package/components/Icons/MedicineWarning.d.ts +4 -4
  232. package/components/Icons/MentalHealthAdult.d.ts +4 -4
  233. package/components/Icons/MentalHealthChild.d.ts +4 -4
  234. package/components/Icons/Menu.d.ts +4 -4
  235. package/components/Icons/Microscope.d.ts +4 -4
  236. package/components/Icons/Minus.d.ts +4 -4
  237. package/components/Icons/Mirror.d.ts +4 -4
  238. package/components/Icons/MobilePhone.d.ts +4 -4
  239. package/components/Icons/MotherHoldingBaby.d.ts +4 -4
  240. package/components/Icons/MuscleBack.d.ts +4 -4
  241. package/components/Icons/MuscleLeg.d.ts +4 -4
  242. package/components/Icons/Mushroom.d.ts +4 -4
  243. package/components/Icons/Music.d.ts +4 -4
  244. package/components/Icons/MusselsAndSalt.d.ts +4 -4
  245. package/components/Icons/NoEye.d.ts +4 -4
  246. package/components/Icons/NoEye.js +1 -1
  247. package/components/Icons/NoFilter.d.ts +4 -4
  248. package/components/Icons/Notepad.d.ts +4 -4
  249. package/components/Icons/Osteotomy.d.ts +4 -4
  250. package/components/Icons/PaintRoller.d.ts +4 -4
  251. package/components/Icons/PaperPlane.d.ts +4 -4
  252. package/components/Icons/PatientAndPerson.d.ts +4 -4
  253. package/components/Icons/Pause.d.ts +4 -4
  254. package/components/Icons/PdfFile.d.ts +4 -4
  255. package/components/Icons/Pencil.d.ts +4 -4
  256. package/components/Icons/PeopleTalking.d.ts +4 -4
  257. package/components/Icons/Peritonealdialysis.d.ts +4 -4
  258. package/components/Icons/Person.d.ts +4 -4
  259. package/components/Icons/PersonAndPatient.d.ts +4 -4
  260. package/components/Icons/PersonInXRayMachine.d.ts +4 -4
  261. package/components/Icons/PersonOverweight.d.ts +4 -4
  262. package/components/Icons/PersonRelaxing.d.ts +4 -4
  263. package/components/Icons/PersonWithBrain.d.ts +4 -4
  264. package/components/Icons/PersonWithBrokenArm.d.ts +4 -4
  265. package/components/Icons/PersonWithCrutches.d.ts +4 -4
  266. package/components/Icons/PersonWithJaw.d.ts +4 -4
  267. package/components/Icons/PersonWithMagnifyingGlass.d.ts +4 -4
  268. package/components/Icons/PersonWithSenses.d.ts +4 -4
  269. package/components/Icons/PersonWorking.d.ts +4 -4
  270. package/components/Icons/PizzaSlice.d.ts +4 -4
  271. package/components/Icons/Plane.d.ts +4 -4
  272. package/components/Icons/Plant.d.ts +4 -4
  273. package/components/Icons/Play.d.ts +4 -4
  274. package/components/Icons/PlusLarge.d.ts +4 -4
  275. package/components/Icons/PlusSmall.d.ts +4 -4
  276. package/components/Icons/PngFile.d.ts +4 -4
  277. package/components/Icons/Podcast.d.ts +4 -4
  278. package/components/Icons/PoisonInformation.d.ts +4 -4
  279. package/components/Icons/Pregnant.d.ts +4 -4
  280. package/components/Icons/Printer.d.ts +4 -4
  281. package/components/Icons/Psychosis.d.ts +4 -4
  282. package/components/Icons/Publication.d.ts +4 -4
  283. package/components/Icons/Puzzle.d.ts +4 -4
  284. package/components/Icons/QrCode.d.ts +4 -4
  285. package/components/Icons/Quarrel.d.ts +4 -4
  286. package/components/Icons/RadioTherapy.d.ts +4 -4
  287. package/components/Icons/RadioactiveTreatment.d.ts +4 -4
  288. package/components/Icons/Radioiodine.d.ts +4 -4
  289. package/components/Icons/Receipt.d.ts +4 -4
  290. package/components/Icons/Receptionist.d.ts +4 -4
  291. package/components/Icons/Recovery.d.ts +4 -4
  292. package/components/Icons/Referral.d.ts +4 -4
  293. package/components/Icons/Refresh.d.ts +4 -4
  294. package/components/Icons/Refund.d.ts +4 -4
  295. package/components/Icons/Reply.d.ts +4 -4
  296. package/components/Icons/Rocket.d.ts +4 -4
  297. package/components/Icons/RtfFile.d.ts +4 -4
  298. package/components/Icons/STDs.d.ts +4 -4
  299. package/components/Icons/Save.d.ts +4 -4
  300. package/components/Icons/Scale.d.ts +4 -4
  301. package/components/Icons/Search.d.ts +4 -4
  302. package/components/Icons/SectionSign.d.ts +4 -4
  303. package/components/Icons/SectionSign.js +1 -1
  304. package/components/Icons/Settings.d.ts +4 -4
  305. package/components/Icons/Sexualorientation.d.ts +4 -4
  306. package/components/Icons/ShakingHand.d.ts +4 -4
  307. package/components/Icons/Share.d.ts +4 -4
  308. package/components/Icons/Shield.d.ts +4 -4
  309. package/components/Icons/ShuntOperation.d.ts +4 -4
  310. package/components/Icons/Skeleton.d.ts +4 -4
  311. package/components/Icons/Skin.d.ts +4 -4
  312. package/components/Icons/Snake.d.ts +4 -4
  313. package/components/Icons/Snapchat.d.ts +4 -4
  314. package/components/Icons/SpeechBubble.d.ts +4 -4
  315. package/components/Icons/SpeechBubble.js +1 -1
  316. package/components/Icons/Spray.d.ts +4 -4
  317. package/components/Icons/Stopwatch.d.ts +4 -4
  318. package/components/Icons/SupportingPerson.d.ts +4 -4
  319. package/components/Icons/SupportingPerson.js +1 -1
  320. package/components/Icons/Surgery.d.ts +4 -4
  321. package/components/Icons/Syringe.d.ts +4 -4
  322. package/components/Icons/Syringe.js +1 -1
  323. package/components/Icons/Taxi.d.ts +4 -4
  324. package/components/Icons/TeddyBear.d.ts +4 -4
  325. package/components/Icons/Teenagers.d.ts +4 -4
  326. package/components/Icons/ThinkingAboutBaby.d.ts +4 -4
  327. package/components/Icons/Ticket.d.ts +4 -4
  328. package/components/Icons/TimePassing.d.ts +4 -4
  329. package/components/Icons/Toolbox.d.ts +4 -4
  330. package/components/Icons/Tooth.d.ts +4 -4
  331. package/components/Icons/TotalKneeProsthesis.d.ts +4 -4
  332. package/components/Icons/Train.d.ts +4 -4
  333. package/components/Icons/Transplantation.d.ts +4 -4
  334. package/components/Icons/TrashCan.d.ts +4 -4
  335. package/components/Icons/Twitter.d.ts +4 -4
  336. package/components/Icons/Undo.d.ts +4 -4
  337. package/components/Icons/UniProsthesis.d.ts +4 -4
  338. package/components/Icons/Upload.d.ts +4 -4
  339. package/components/Icons/UserOrganization.d.ts +4 -4
  340. package/components/Icons/Vaccine.d.ts +4 -4
  341. package/components/Icons/VerticalDots.d.ts +4 -4
  342. package/components/Icons/VideoCamera.d.ts +4 -4
  343. package/components/Icons/VideoChat.d.ts +4 -4
  344. package/components/Icons/Wallet.d.ts +4 -4
  345. package/components/Icons/Watch.d.ts +4 -4
  346. package/components/Icons/Website.d.ts +4 -4
  347. package/components/Icons/Wheelchair.d.ts +4 -4
  348. package/components/Icons/WheelchairActive.d.ts +4 -4
  349. package/components/Icons/Window.d.ts +4 -4
  350. package/components/Icons/WordDocument.d.ts +4 -4
  351. package/components/Icons/WorkSuitcase.d.ts +4 -4
  352. package/components/Icons/X.d.ts +4 -4
  353. package/components/Icons/XOutline.d.ts +4 -4
  354. package/components/Icons/XmlFile.d.ts +4 -4
  355. package/components/Icons/YouTube.d.ts +4 -4
  356. package/components/Icons/Zoom.d.ts +4 -4
  357. package/components/Icons/index.d.ts +4 -4
  358. package/components/Icons/index.js +1 -1
  359. package/components/Input/Input.d.ts +54 -54
  360. package/components/Input/index.d.ts +3 -3
  361. package/components/Input/index.js +1 -1
  362. package/components/Input/styles.module.scss +59 -59
  363. package/components/Input/styles.module.scss.d.ts +23 -23
  364. package/components/LinkList/LinkList.d.ts +41 -41
  365. package/components/LinkList/index.d.ts +3 -3
  366. package/components/LinkList/index.js +1 -1
  367. package/components/LinkList/styles.module.scss +147 -147
  368. package/components/LinkList/styles.module.scss.d.ts +26 -26
  369. package/components/List/List.d.ts +9 -9
  370. package/components/List/index.d.ts +3 -3
  371. package/components/List/index.js +1 -1
  372. package/components/List/styles.module.scss +11 -11
  373. package/components/List/styles.module.scss.d.ts +10 -10
  374. package/components/Loader/Loader.d.ts +32 -32
  375. package/components/Loader/Loader.d.ts.map +1 -1
  376. package/components/Loader/index.d.ts +3 -3
  377. package/components/Loader/index.js +1 -1
  378. package/components/Loader/styles.module.scss +194 -194
  379. package/components/Logo/Logo.d.ts +17 -17
  380. package/components/Logo/index.d.ts +3 -3
  381. package/components/Logo/index.js +1 -1
  382. package/components/Modal/Modal.d.ts +69 -69
  383. package/components/Modal/__mocks__/IntersectionObserver.d.ts +5 -5
  384. package/components/Modal/index.d.ts +3 -3
  385. package/components/Modal/index.js +1 -1
  386. package/components/Modal/styles.module.scss +243 -243
  387. package/components/Modal/styles.module.scss.d.ts +41 -41
  388. package/components/NotificationPanel/NotificationPanel.d.ts +47 -47
  389. package/components/NotificationPanel/NotificationPanel.d.ts.map +1 -1
  390. package/components/NotificationPanel/componentdata.json +1 -1
  391. package/components/NotificationPanel/index.d.ts +3 -3
  392. package/components/NotificationPanel/index.js +1 -1
  393. package/components/NotificationPanel/styles.module.scss +153 -138
  394. package/components/NotificationPanel/styles.module.scss.d.ts +33 -34
  395. package/components/Portal/index.d.ts +12 -12
  396. package/components/Portal/index.js +1 -1
  397. package/components/RadioButton/RadioButton.d.ts +30 -30
  398. package/components/RadioButton/index.d.ts +3 -3
  399. package/components/RadioButton/index.js +1 -1
  400. package/components/RadioButton/styles.module.scss +236 -236
  401. package/components/RadioButton/styles.module.scss.d.ts +23 -23
  402. package/components/Slider/Slider.d.ts +19 -19
  403. package/components/Slider/SliderUtils.d.ts +40 -40
  404. package/components/Slider/index.d.ts +3 -3
  405. package/components/Slider/index.js +1 -1
  406. package/components/Slider/styles.module.scss +85 -85
  407. package/components/Slider/styles.module.scss.d.ts +19 -19
  408. package/components/Spacer/Spacer.d.ts +12 -12
  409. package/components/Spacer/index.d.ts +3 -3
  410. package/components/Spacer/index.js +1 -1
  411. package/components/Spacer/styles.module.scss +47 -47
  412. package/components/Spacer/styles.module.scss.d.ts +22 -22
  413. package/components/Textarea/Textarea.d.ts +36 -36
  414. package/components/Textarea/index.d.ts +3 -3
  415. package/components/Textarea/index.js +1 -1
  416. package/components/Textarea/styles.module.scss +57 -57
  417. package/components/Textarea/styles.module.scss.d.ts +26 -26
  418. package/components/Tile/Tile.d.ts +33 -33
  419. package/components/Tile/index.d.ts +3 -3
  420. package/components/Tile/index.js +1 -1
  421. package/components/Tile/styles.module.scss +115 -115
  422. package/components/Tile/styles.module.scss.d.ts +18 -18
  423. package/components/Title/Title.d.ts +25 -25
  424. package/components/Title/index.d.ts +3 -3
  425. package/components/Title/index.js +1 -1
  426. package/components/Title/styles.module.scss +27 -27
  427. package/components/Title/styles.module.scss.d.ts +15 -15
  428. package/components/Validation/Validation.d.ts +16 -16
  429. package/components/Validation/index.d.ts +3 -3
  430. package/components/Validation/index.js +1 -1
  431. package/components/Validation/styles.module.scss +18 -18
  432. package/components/Validation/styles.module.scss.d.ts +10 -10
  433. package/constants-eb74321e.js +2 -0
  434. package/constants-eb74321e.js.map +1 -0
  435. package/constants.d.ts +91 -90
  436. package/constants.d.ts.map +1 -1
  437. package/hooks/focus-utils.d.ts +6 -6
  438. package/hooks/useBreakpoint.d.ts +12 -12
  439. package/hooks/useFocusToggle.d.ts +13 -13
  440. package/hooks/useFocusTrap.d.ts +3 -3
  441. package/hooks/useHover.d.ts +11 -11
  442. package/hooks/useIcons.d.ts +3 -3
  443. package/hooks/useIntersectionObserver.d.ts +10 -10
  444. package/hooks/useIsVisible.d.ts +9 -9
  445. package/hooks/useLayoutEvent.d.ts +8 -8
  446. package/hooks/usePrevious.d.ts +7 -0
  447. package/hooks/usePrevious.d.ts.map +1 -0
  448. package/hooks/useSize.d.ts +9 -0
  449. package/hooks/useSize.d.ts.map +1 -0
  450. package/hooks/useSticky.d.ts +20 -20
  451. package/hooks/useWindowSize.d.ts +4 -4
  452. package/index.d.ts +13 -11
  453. package/index.d.ts.map +1 -1
  454. package/index.js +1 -1
  455. package/package.json +1 -1
  456. package/scss/_body.scss +11 -11
  457. package/scss/_breakpoints.scss +16 -16
  458. package/scss/_font-settings.scss +8 -8
  459. package/scss/_fonts.scss +112 -112
  460. package/scss/_grid.scss +1 -1
  461. package/scss/_input.scss +176 -176
  462. package/scss/_palette.scss +136 -136
  463. package/scss/_print.scss +176 -176
  464. package/scss/_reset.scss +13 -13
  465. package/scss/_spacers.scss +40 -40
  466. package/scss/_title.scss +59 -59
  467. package/scss/helsenorge.scss +8 -8
  468. package/scss/typography.module.scss +154 -154
  469. package/theme/currys/color.d.ts +3 -3
  470. package/theme/currys/index.d.ts +2 -2
  471. package/theme/currys/spacing.d.ts +3 -3
  472. package/theme/grid.d.ts +20 -20
  473. package/theme/index.d.ts +98 -98
  474. package/theme/palette.d.ts +67 -67
  475. package/theme/spacers.d.ts +18 -18
  476. package/usePrevious-ae293b10.js +2 -0
  477. package/usePrevious-ae293b10.js.map +1 -0
  478. package/useSticky-d61d1f0b.js +2 -0
  479. package/useSticky-d61d1f0b.js.map +1 -0
  480. package/utils/debounce.d.ts +7 -7
  481. package/utils/uuid.d.ts +2 -2
  482. package/utils/viewport.d.ts +1 -1
  483. package/AlertSignFill-e607ff43.js +0 -2
  484. package/AlertSignFill-e607ff43.js.map +0 -1
  485. package/Button-d5147e38.js +0 -2
  486. package/Button-d5147e38.js.map +0 -1
  487. package/Check-6291ad09.js +0 -2
  488. package/Check-6291ad09.js.map +0 -1
  489. package/Checkbox-798282e4.js +0 -2
  490. package/Checkbox-798282e4.js.map +0 -1
  491. package/ChevronUp-4b6797ef.js +0 -2
  492. package/ChevronUp-4b6797ef.js.map +0 -1
  493. package/Close-35ad7d35.js +0 -2
  494. package/Close-35ad7d35.js.map +0 -1
  495. package/FormGroup-0577b07f.js +0 -2
  496. package/FormGroup-0577b07f.js.map +0 -1
  497. package/Icon-89da8de4.js +0 -2
  498. package/Icon-89da8de4.js.map +0 -1
  499. package/Input-19650c24.js +0 -2
  500. package/Input-19650c24.js.map +0 -1
  501. package/Loader-fa16a352.js.map +0 -1
  502. package/Modal-ad02991b.js +0 -2
  503. package/Modal-ad02991b.js.map +0 -1
  504. package/RadioButton-fe4bbd36.js.map +0 -1
  505. package/Textarea-e1d1144c.js.map +0 -1
  506. package/Title-af53f589.js.map +0 -1
  507. package/Validation-fd3f7f58.js.map +0 -1
  508. package/constants-ad6c82db.js +0 -2
  509. package/constants-ad6c82db.js.map +0 -1
  510. package/useSticky-194f2b78.js +0 -2
  511. package/useSticky-194f2b78.js.map +0 -1
package/theme/index.d.ts CHANGED
@@ -1,99 +1,99 @@
1
- export declare const theme: {
2
- spacer: number;
3
- spacers: {
4
- 0: number;
5
- 1: number;
6
- 2: number;
7
- 3: number;
8
- 4: number;
9
- 5: number;
10
- 6: number;
11
- 7: number;
12
- 8: number;
13
- 9: number;
14
- 10: number;
15
- 11: number;
16
- 12: number;
17
- 13: number;
18
- };
19
- palette: {
20
- black: string;
21
- white: string;
22
- plum50: string;
23
- plum100: string;
24
- plum200: string;
25
- plum300: string;
26
- plum400: string;
27
- plum500: string;
28
- plum600: string;
29
- plum700: string;
30
- plum800: string;
31
- plum900: string;
32
- neutral50: string;
33
- neutral100: string;
34
- neutral200: string;
35
- neutral300: string;
36
- neutral400: string;
37
- neutral500: string;
38
- neutral600: string;
39
- neutral700: string;
40
- neutral800: string;
41
- neutral900: string;
42
- kiwi50: string;
43
- kiwi100: string;
44
- kiwi200: string;
45
- kiwi300: string;
46
- kiwi400: string;
47
- kiwi500: string;
48
- kiwi600: string;
49
- kiwi700: string;
50
- kiwi800: string;
51
- kiwi900: string;
52
- cherry50: string;
53
- cherry100: string;
54
- cherry200: string;
55
- cherry300: string;
56
- cherry400: string;
57
- cherry500: string;
58
- cherry600: string;
59
- cherry700: string;
60
- cherry800: string;
61
- cherry900: string;
62
- blueberry50: string;
63
- blueberry100: string;
64
- blueberry200: string;
65
- blueberry300: string;
66
- blueberry400: string;
67
- blueberry500: string;
68
- blueberry600: string;
69
- blueberry700: string;
70
- blueberry800: string;
71
- blueberry900: string;
72
- banana50: string;
73
- banana100: string;
74
- banana200: string;
75
- banana300: string;
76
- banana400: string;
77
- banana500: string;
78
- banana600: string;
79
- banana700: string;
80
- banana800: string;
81
- banana900: string;
82
- };
83
- screen: {
84
- xs: string;
85
- sm: string;
86
- md: string;
87
- lg: string;
88
- xl: string;
89
- };
90
- breakpoints: {
91
- null: number;
92
- xs: number;
93
- sm: number;
94
- md: number;
95
- lg: number;
96
- xl: number;
97
- };
98
- };
1
+ export declare const theme: {
2
+ spacer: number;
3
+ spacers: {
4
+ 0: number;
5
+ 1: number;
6
+ 2: number;
7
+ 3: number;
8
+ 4: number;
9
+ 5: number;
10
+ 6: number;
11
+ 7: number;
12
+ 8: number;
13
+ 9: number;
14
+ 10: number;
15
+ 11: number;
16
+ 12: number;
17
+ 13: number;
18
+ };
19
+ palette: {
20
+ black: string;
21
+ white: string;
22
+ plum50: string;
23
+ plum100: string;
24
+ plum200: string;
25
+ plum300: string;
26
+ plum400: string;
27
+ plum500: string;
28
+ plum600: string;
29
+ plum700: string;
30
+ plum800: string;
31
+ plum900: string;
32
+ neutral50: string;
33
+ neutral100: string;
34
+ neutral200: string;
35
+ neutral300: string;
36
+ neutral400: string;
37
+ neutral500: string;
38
+ neutral600: string;
39
+ neutral700: string;
40
+ neutral800: string;
41
+ neutral900: string;
42
+ kiwi50: string;
43
+ kiwi100: string;
44
+ kiwi200: string;
45
+ kiwi300: string;
46
+ kiwi400: string;
47
+ kiwi500: string;
48
+ kiwi600: string;
49
+ kiwi700: string;
50
+ kiwi800: string;
51
+ kiwi900: string;
52
+ cherry50: string;
53
+ cherry100: string;
54
+ cherry200: string;
55
+ cherry300: string;
56
+ cherry400: string;
57
+ cherry500: string;
58
+ cherry600: string;
59
+ cherry700: string;
60
+ cherry800: string;
61
+ cherry900: string;
62
+ blueberry50: string;
63
+ blueberry100: string;
64
+ blueberry200: string;
65
+ blueberry300: string;
66
+ blueberry400: string;
67
+ blueberry500: string;
68
+ blueberry600: string;
69
+ blueberry700: string;
70
+ blueberry800: string;
71
+ blueberry900: string;
72
+ banana50: string;
73
+ banana100: string;
74
+ banana200: string;
75
+ banana300: string;
76
+ banana400: string;
77
+ banana500: string;
78
+ banana600: string;
79
+ banana700: string;
80
+ banana800: string;
81
+ banana900: string;
82
+ };
83
+ screen: {
84
+ xs: string;
85
+ sm: string;
86
+ md: string;
87
+ lg: string;
88
+ xl: string;
89
+ };
90
+ breakpoints: {
91
+ null: number;
92
+ xs: number;
93
+ sm: number;
94
+ md: number;
95
+ lg: number;
96
+ xl: number;
97
+ };
98
+ };
99
99
  //# sourceMappingURL=index.d.ts.map
@@ -1,68 +1,68 @@
1
- export declare const palette: {
2
- black: string;
3
- white: string;
4
- plum50: string;
5
- plum100: string;
6
- plum200: string;
7
- plum300: string;
8
- plum400: string;
9
- plum500: string;
10
- plum600: string;
11
- plum700: string;
12
- plum800: string;
13
- plum900: string;
14
- neutral50: string;
15
- neutral100: string;
16
- neutral200: string;
17
- neutral300: string;
18
- neutral400: string;
19
- neutral500: string;
20
- neutral600: string;
21
- neutral700: string;
22
- neutral800: string;
23
- neutral900: string;
24
- kiwi50: string;
25
- kiwi100: string;
26
- kiwi200: string;
27
- kiwi300: string;
28
- kiwi400: string;
29
- kiwi500: string;
30
- kiwi600: string;
31
- kiwi700: string;
32
- kiwi800: string;
33
- kiwi900: string;
34
- cherry50: string;
35
- cherry100: string;
36
- cherry200: string;
37
- cherry300: string;
38
- cherry400: string;
39
- cherry500: string;
40
- cherry600: string;
41
- cherry700: string;
42
- cherry800: string;
43
- cherry900: string;
44
- blueberry50: string;
45
- blueberry100: string;
46
- blueberry200: string;
47
- blueberry300: string;
48
- blueberry400: string;
49
- blueberry500: string;
50
- blueberry600: string;
51
- blueberry700: string;
52
- blueberry800: string;
53
- blueberry900: string;
54
- banana50: string;
55
- banana100: string;
56
- banana200: string;
57
- banana300: string;
58
- banana400: string;
59
- banana500: string;
60
- banana600: string;
61
- banana700: string;
62
- banana800: string;
63
- banana900: string;
64
- };
65
- export declare type PaletteNames = 'banana' | 'blueberry' | 'cherry' | 'kiwi' | 'neutral' | 'plum' | 'black' | 'white';
66
- export declare type PaletteDepths = 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
67
- export declare type PaletteCodes = 'banana50' | 'banana100' | 'banana200' | 'banana300' | 'banana400' | 'banana500' | 'banana600' | 'banana700' | 'banana800' | 'banana900' | 'blueberry50' | 'blueberry100' | 'blueberry200' | 'blueberry300' | 'blueberry400' | 'blueberry500' | 'blueberry600' | 'blueberry700' | 'blueberry800' | 'blueberry900' | 'cherry50' | 'cherry100' | 'cherry200' | 'cherry300' | 'cherry400' | 'cherry500' | 'cherry600' | 'cherry700' | 'cherry800' | 'cherry900' | 'kiwi50' | 'kiwi100' | 'kiwi200' | 'kiwi300' | 'kiwi400' | 'kiwi500' | 'kiwi600' | 'kiwi700' | 'kiwi800' | 'kiwi900' | 'neutral50' | 'neutral100' | 'neutral200' | 'neutral300' | 'neutral400' | 'neutral500' | 'neutral600' | 'neutral700' | 'neutral800' | 'neutral900' | 'plum50' | 'plum100' | 'plum200' | 'plum300' | 'plum400' | 'plum500' | 'plum600' | 'plum700' | 'plum800' | 'plum900' | 'white' | 'black';
1
+ export declare const palette: {
2
+ black: string;
3
+ white: string;
4
+ plum50: string;
5
+ plum100: string;
6
+ plum200: string;
7
+ plum300: string;
8
+ plum400: string;
9
+ plum500: string;
10
+ plum600: string;
11
+ plum700: string;
12
+ plum800: string;
13
+ plum900: string;
14
+ neutral50: string;
15
+ neutral100: string;
16
+ neutral200: string;
17
+ neutral300: string;
18
+ neutral400: string;
19
+ neutral500: string;
20
+ neutral600: string;
21
+ neutral700: string;
22
+ neutral800: string;
23
+ neutral900: string;
24
+ kiwi50: string;
25
+ kiwi100: string;
26
+ kiwi200: string;
27
+ kiwi300: string;
28
+ kiwi400: string;
29
+ kiwi500: string;
30
+ kiwi600: string;
31
+ kiwi700: string;
32
+ kiwi800: string;
33
+ kiwi900: string;
34
+ cherry50: string;
35
+ cherry100: string;
36
+ cherry200: string;
37
+ cherry300: string;
38
+ cherry400: string;
39
+ cherry500: string;
40
+ cherry600: string;
41
+ cherry700: string;
42
+ cherry800: string;
43
+ cherry900: string;
44
+ blueberry50: string;
45
+ blueberry100: string;
46
+ blueberry200: string;
47
+ blueberry300: string;
48
+ blueberry400: string;
49
+ blueberry500: string;
50
+ blueberry600: string;
51
+ blueberry700: string;
52
+ blueberry800: string;
53
+ blueberry900: string;
54
+ banana50: string;
55
+ banana100: string;
56
+ banana200: string;
57
+ banana300: string;
58
+ banana400: string;
59
+ banana500: string;
60
+ banana600: string;
61
+ banana700: string;
62
+ banana800: string;
63
+ banana900: string;
64
+ };
65
+ export declare type PaletteNames = 'banana' | 'blueberry' | 'cherry' | 'kiwi' | 'neutral' | 'plum' | 'black' | 'white';
66
+ export declare type PaletteDepths = 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
67
+ export declare type PaletteCodes = 'banana50' | 'banana100' | 'banana200' | 'banana300' | 'banana400' | 'banana500' | 'banana600' | 'banana700' | 'banana800' | 'banana900' | 'blueberry50' | 'blueberry100' | 'blueberry200' | 'blueberry300' | 'blueberry400' | 'blueberry500' | 'blueberry600' | 'blueberry700' | 'blueberry800' | 'blueberry900' | 'cherry50' | 'cherry100' | 'cherry200' | 'cherry300' | 'cherry400' | 'cherry500' | 'cherry600' | 'cherry700' | 'cherry800' | 'cherry900' | 'kiwi50' | 'kiwi100' | 'kiwi200' | 'kiwi300' | 'kiwi400' | 'kiwi500' | 'kiwi600' | 'kiwi700' | 'kiwi800' | 'kiwi900' | 'neutral50' | 'neutral100' | 'neutral200' | 'neutral300' | 'neutral400' | 'neutral500' | 'neutral600' | 'neutral700' | 'neutral800' | 'neutral900' | 'plum50' | 'plum100' | 'plum200' | 'plum300' | 'plum400' | 'plum500' | 'plum600' | 'plum700' | 'plum800' | 'plum900' | 'white' | 'black';
68
68
  //# sourceMappingURL=palette.d.ts.map
@@ -1,19 +1,19 @@
1
- export declare type SpacerSizes = '4xs' | '3xs' | '2xs' | 'xs' | 's' | 'm' | 'l' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl';
2
- export declare const spacer = 1;
3
- export declare const spacers: {
4
- 0: number;
5
- 1: number;
6
- 2: number;
7
- 3: number;
8
- 4: number;
9
- 5: number;
10
- 6: number;
11
- 7: number;
12
- 8: number;
13
- 9: number;
14
- 10: number;
15
- 11: number;
16
- 12: number;
17
- 13: number;
18
- };
1
+ export declare type SpacerSizes = '4xs' | '3xs' | '2xs' | 'xs' | 's' | 'm' | 'l' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl';
2
+ export declare const spacer = 1;
3
+ export declare const spacers: {
4
+ 0: number;
5
+ 1: number;
6
+ 2: number;
7
+ 3: number;
8
+ 4: number;
9
+ 5: number;
10
+ 6: number;
11
+ 7: number;
12
+ 8: number;
13
+ 9: number;
14
+ 10: number;
15
+ 11: number;
16
+ 12: number;
17
+ 13: number;
18
+ };
19
19
  //# sourceMappingURL=spacers.d.ts.map
@@ -0,0 +1,2 @@
1
+ import{useRef as r,useEffect as t}from"react";var n=function(n){var u=r();return t((function(){u.current=n}),[n]),u.current};export{n as u};
2
+ //# sourceMappingURL=usePrevious-ae293b10.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePrevious-ae293b10.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{_ as n}from"./_rollupPluginBabelHelpers-b8ef6dd9.js";import{useEffect as t,useState as i}from"react";function e(n,t,i){var e;return function(){var o=this,r=arguments,u=function(){e=null,i||n.apply(o,r)},a=i&&!e;e&&clearTimeout(e),e=setTimeout(u,t),a&&n.apply(o,r)}}var o=function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["layoutchange","resize","orientationchange"],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;t((function(){var t=e(n,o);return i.forEach((function(n){return window.addEventListener(n,t)})),t(),function(){i.forEach((function(n){return window.removeEventListener(n,t)}))}}),[])},r=function(t,e){var r=i(!1),u=n(r,2),a=u[0],d=u[1],l=i(!1),c=n(l,2),v=c[0],f=c[1],s=i(),g=n(s,2),h=g[0],p=g[1],m=i(),w=n(m,2),E=w[0],b=w[1];return o((function(){var n,i,o,r=(null===(n=t.current)||void 0===n?void 0:n.getBoundingClientRect())||{},u=r.top,a=void 0===u?0:u,l=r.width,c=void 0===l?0:l,v=r.bottom,s=void 0===v?0:v,g=null!==(o=null===(i=e.current)||void 0===i?void 0:i.getBoundingClientRect().height)&&void 0!==o?o:0;d(a<=0),f(s<=g),b(c),p(g)}),["resize","scroll"]),{isOutsideWindow:a,isLeavingWindow:v,offsetHeight:h,contentWidth:E}};export{r as a,o as u};
2
+ //# sourceMappingURL=useSticky-d61d1f0b.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSticky-d61d1f0b.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,8 +1,8 @@
1
- /**
2
- * debounce limits time a function can be executed
3
- * @param func function to debounce
4
- * @param wait wait for x time
5
- * @param immediate run now
6
- */
7
- export declare function debounce(func: Function, wait: number, immediate?: boolean): () => void;
1
+ /**
2
+ * debounce limits time a function can be executed
3
+ * @param func function to debounce
4
+ * @param wait wait for x time
5
+ * @param immediate run now
6
+ */
7
+ export declare function debounce(func: Function, wait: number, immediate?: boolean): () => void;
8
8
  //# sourceMappingURL=debounce.d.ts.map
package/utils/uuid.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export declare const uuid: () => string;
2
- export default uuid;
1
+ export declare const uuid: () => string;
2
+ export default uuid;
3
3
  //# sourceMappingURL=uuid.d.ts.map
@@ -1,2 +1,2 @@
1
- export declare const isElementInViewport: (el: HTMLElement) => boolean;
1
+ export declare const isElementInViewport: (el: HTMLElement) => boolean;
2
2
  //# sourceMappingURL=viewport.d.ts.map
@@ -1,2 +0,0 @@
1
- import a from"react";var e=function(e){var t=e.isExtraSmall,m=e.isHovered,z=a.createElement("path",{d:"M24.003 31.578a1.394 1.394 0 100 2.788 1.394 1.394 0 000-2.788zm.098-20.19l14.687 26.735H9.227L24.1 11.388zm.008-2.929L6.816 39.541h34.367L24.109 8.459zm-.106 21.033c.494 0 .893-.4.893-.893v-7.228a.893.893 0 00-1.786 0v7.228c0 .493.4.893.893.893z"}),r=a.createElement("path",{d:"M24.003 31.578a1.394 1.394 0 100 2.788 1.394 1.394 0 000-2.788zm.098-20.19l14.687 26.735H9.227L24.1 11.388zm.008-2.929L6.816 39.541h34.367L24.109 8.459zm-.106 19.033c.494 0 .893-.4.893-.893v-7.228a.893.893 0 00-1.786 0v7.228c0 .493.4.893.893.893z"}),v=a.createElement("path",{d:"M24.003 31.562a1.39 1.39 0 100 2.782 1.39 1.39 0 000-2.782zm.097-20.147l14.656 26.678H9.258L24.1 11.415zm.008-2.923L6.853 39.508h34.294L24.108 8.492zm-.105 20.988c.492 0 .892-.399.892-.89v-7.213a.891.891 0 00-1.783 0v7.212c0 .492.4.891.891.891z"});return t?m?a.createElement("path",{d:"M24.003 31.562a1.39 1.39 0 100 2.782 1.39 1.39 0 000-2.782zm.097-20.147l14.656 26.678H9.258L24.1 11.415zm.008-2.923L6.853 39.508h34.294L24.108 8.492zm-.105 18.462c.492 0 .892-.399.892-.891V18.85a.891.891 0 00-1.783 0v7.213c0 .492.4.891.891.891z"}):v:m?r:z},t=function(e){var t=e.isExtraSmall,m=e.isHovered,z=a.createElement("path",{d:"M24.898 21.447v7.228a.893.893 0 01-1.785 0v-7.228a.892.892 0 111.785 0zm.5 11.601a1.394 1.394 0 11-2.787-.001 1.394 1.394 0 012.787.001zm-18.822 6.71h34.847L24.111 8.242 6.576 39.758z"}),r=a.createElement("path",{d:"M24.898 19.447v7.228a.893.893 0 01-1.785 0v-7.228a.892.892 0 111.785 0zm.5 13.601a1.394 1.394 0 11-2.787-.001 1.394 1.394 0 012.787.001zm-18.822 6.71h34.847L24.111 8.242 6.576 39.758z"}),v=a.createElement("path",{d:"M24.896 21.452v7.213a.891.891 0 01-1.782 0v-7.213a.89.89 0 111.782 0zm.5 11.577a1.39 1.39 0 11-2.782-.001 1.39 1.39 0 012.782.001zM6.613 39.725h34.774L24.11 8.275 6.613 39.725z"});return t?m?a.createElement("path",{d:"M24.896 18.926v7.213a.891.891 0 01-1.782 0v-7.213a.89.89 0 111.782 0zm.5 14.103a1.39 1.39 0 11-2.782-.001 1.39 1.39 0 012.782.001zM6.613 39.725h34.774L24.11 8.275 6.613 39.725z"}):v:m?r:z};export{t as A,e as a};
2
- //# sourceMappingURL=AlertSignFill-e607ff43.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AlertSignFill-e607ff43.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{_ as t,b as e}from"./_rollupPluginBabelHelpers-b8ef6dd9.js";import{_ as n}from"./_tslib-51c8a283.js";import o from"react";import{A as r,I as l}from"./constants-ad6c82db.js";import{g as i}from"./color-a10c7892.js";import"./Icon-89da8de4.js";import{L as a}from"./Loader-fa16a352.js";import{u as s}from"./useHover-9710204a.js";import{u as d}from"./useWindowSize-750f9b68.js";import{b as u}from"./grid-11a70eb7.js";import{c}from"./index-9b84fabc.js";import m from"./components/Button/styles.module.scss";var b={primary:"blueberry",warning:"banana",danger:"cherry"},f=function(t,e){return e&&e<u.md&&t?l.Small:t?l.Medium:l.XSmall},p=o.forwardRef((function(u,p){var v,_,g,h=u.children,j=u.className,w=void 0===j?"":j,E=u.fluid,y=void 0!==E&&E,k=u.intent,N=void 0===k?"primary":k,I=u.inverted,B=void 0!==I&&I,C=u.htmlMarkup,H=void 0===C?"button":C,O=u.onClick,S=u.large,z=void 0!==S&&S,F=u.loading,M=void 0!==F&&F,x=u.variant,A=void 0===x?"fill":x,L=u.disabled,R=void 0!==L&&L,X=u.ellipsis,P=void 0!==X&&X,W=u.testId,q=u.href,D=u.target,G=n(u,["children","className","fluid","intent","inverted","htmlMarkup","onClick","large","loading","variant","disabled","ellipsis","testId","href","target"]),J=function(t){var e,n,o,r,l=null,i=null;void 0!==(null===(n=null===(e=t[0])||void 0===e?void 0:e.props)||void 0===n?void 0:n.svgIcon)&&(l=t.shift()),void 0!==(null===(r=null===(o=t[t.length-1])||void 0===o?void 0:o.props)||void 0===r?void 0:r.svgIcon)&&(i=t.pop());var a=t.filter((function(t){return t}));return[l,i,a.length>0?a:null]}(o.Children.toArray(h)),K=t(J,3),Q=K[0],T=K[1],U=K[2],V=s(p),Y=V.hoverRef,Z=V.isHovered,$=function(t,e,n,o,r){return e?i("neutral",600):t&&!o||!t&&o?"white":i(b[n],r?700:600)}("fill"===A,R,N,B,Z),tt=d(),et="fill"===A,nt="outline"===A,ot="borderless"===A,rt="warning"===N,lt="danger"===N,it=!(!Q&&!T||M),at=Object.assign({},G),st=c(m.button,(e(v={},m["button--fluid"],y),e(v,m["button--large"],z),e(v,m["button--warning"],rt),e(v,m["button--danger"],lt),e(v,m["button--inverted"],B),e(v,m["button--fill"],et),e(v,m["button--outline"],nt),e(v,m["button--borderless"],ot),e(v,m["button--with-icon"],it),e(v,m["button--ellipsis"],P),v),w),dt=c(m.button__content,(e(_={},m["button__content--warning"],rt),e(_,m["button__content--danger"],lt),e(_,m["button__content--fill"],et),e(_,m["button__content--borderless"],ot),e(_,m["button__content--with-icon"],it),e(_,m["button__content--large"],z),e(_,m["button__content--ellipsis"],P),e(_,m["button__content--inverted"],B),e(_,m["button__content--fluid"],y),_)),ut=c(m["button__left-fluid-content"],(e(g={},m["button__left-fluid-content--with-icon"],it),e(g,m["button__left-fluid-content--large"],z),g));function ct(t,e,n,r){var l=t&&t.props&&t.props.color?t.props.color:n;return t&&Object.keys(t).length>0?o.cloneElement(t,{size:e,color:l,isHovered:r}):null}var mt=function(){return U?o.createElement("span",{className:dt},U):null},bt=function(){return o.createElement("span",{className:m["content-wrapper"]},M?o.createElement("div",{className:m["button__left-fluid-content"]},o.createElement(a,{testId:"test-id-loader",color:"fill"!==A||B?b[N]:"white",size:"tiny"})):o.createElement(o.Fragment,null,y?o.createElement("div",{className:ut},ct(Q,f(z,tt.width),$,Z),mt()):o.createElement(o.Fragment,null,ct(Q,f(z,tt.width),$,Z),mt()),ct(T,l.XSmall,$,Z)))};return o.createElement(o.Fragment,null,"button"===H&&o.createElement("button",Object.assign({onClick:O,disabled:R,"data-testid":W,"data-analyticsid":r.Button,className:st,ref:Y},at),bt()),"a"===H&&o.createElement("a",Object.assign({onClick:O,"data-testid":W,"data-analyticsid":r.Button,className:st,href:q,target:D,rel:"_blank"===D?"noopener noreferrer":u.rel,ref:Y},G),bt()))}));export{p as B,b as i};
2
- //# sourceMappingURL=Button-d5147e38.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Button-d5147e38.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/Check-6291ad09.js DELETED
@@ -1,2 +0,0 @@
1
- import e from"react";var t=function(t){var a=t.isExtraSmall,r=t.isHovered,l=e.createElement("path",{d:"M22.504 31.198l-9.59-9.966 1.441-1.387 8.149 8.468 14.455-15.016 1.441 1.386z"}),m=e.createElement("path",{d:"M22.504 31.198l-7.816-8.121 1.441-1.387 6.375 6.623 15.859-16.474 1.44 1.386z"}),n=e.createElement("path",{d:"M22.504 31.578l-9.781-10.162 1.822-1.752 7.959 8.269 14.265-14.819 1.821 1.752z"});return a?r?e.createElement("path",{d:"M22.504 31.578l-7.816-8.124 1.82-1.75 5.996 6.229 16.321-16.956 1.821 1.752z"}):n:r?m:l};export{t as C};
2
- //# sourceMappingURL=Check-6291ad09.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Check-6291ad09.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{_ as e,b as r}from"./_rollupPluginBabelHelpers-b8ef6dd9.js";import a,{useState as o,useEffect as c}from"react";import{c as l}from"./index-9b84fabc.js";import{u as b}from"./uuid-fe7442b7.js";import{C as i}from"./Check-6291ad09.js";import{I as s}from"./Icon-89da8de4.js";import{F as n,a as t,A as d}from"./constants-ad6c82db.js";import{g as m}from"./color-a10c7892.js";import p from"./components/Checkbox/styles.module.scss";var h=a.forwardRef((function(h,k){var x,f,u,v=h.className,_=h.checked,w=void 0!==_&&_,y=h.disabled,g=h.label,j=h.inputId,N=void 0===j?b():j,C=h.mode,E=h.name,I=void 0===E?N:E,F=h.variant,z=h.errorText,A=h.error,B=void 0===A?!!z:A,H=h.value,P=void 0===H?g:H,R=o(w),T=e(R,2),q=T[0],D=T[1],G=B||C===n.oninvalid,J=C===n.ondark,K=C===n.onblueberry,L=F===t.bigform,M=l(p["checkbox-wrapper"],(r(x={},p["checkbox-wrapper--with-error"],z),r(x,p["checkbox-wrapper--bigform"],L),x)),O=l(p["checkbox-label"],(r(f={},p["checkbox-label--disabled"],y),r(f,p["checkbox-label--on-dark"],J),r(f,p["checkbox-label--on-blueberry"],K),r(f,p["checkbox-label--invalid"],G),r(f,p["checkbox-label--bigform"],L),f)),Q=l(p.checkbox,v),S=l(p["checkbox__icon-wrapper"],(r(u={},p["checkbox__icon-wrapper--checked"],q),r(u,p["checkbox__icon-wrapper--disabled"],y),r(u,p["checkbox__icon-wrapper--on-dark"],J),r(u,p["checkbox__icon-wrapper--on-blueberry"],K),r(u,p["checkbox__icon-wrapper--invalid"],G),u)),U=l(p["checkbox-errors"],r({},p["checkbox-errors--bigform"],L)),V=m("blueberry",500);return y&&(V=m("neutral",400)),J&&(V=m("blueberry",200)),G&&(V=m("cherry",500)),c((function(){D(w)}),[w]),a.createElement("div",{"data-testid":h.testId,"data-analyticsid":d.Checkbox,className:M},z&&a.createElement("p",{className:U},z),a.createElement("label",{htmlFor:N,className:O},a.createElement("input",{id:N,name:I,className:Q,type:"checkbox",checked:q,disabled:y,onChange:function(){D(!q)},value:P,ref:k,"aria-invalid":B}),a.createElement("span",{className:S},q&&a.createElement(s,{color:V,className:p.checkbox__icon,svgIcon:i,size:38})),g))}));export{h as C};
2
- //# sourceMappingURL=Checkbox-798282e4.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Checkbox-798282e4.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import e from"react";var t=function(t){var a=t.isExtraSmall,l=t.isHovered,r=e.createElement("path",{d:"M32.951 18.788l1.419 1.409-10.371 10.451L13.63 20.197l1.419-1.409L24 27.809z"}),n=e.createElement("path",{d:"M25 13v20.083l9.951-10.013 1.419 1.409L23.999 36.93 11.63 24.479l1.419-1.409L23 33.085V13z"}),L=e.createElement("path",{d:"M32.577 17.885l1.793 1.779-10.371 10.451L13.63 19.664l1.793-1.779 8.576 8.644z"});return a?l?e.createElement("path",{d:"M25 13v20.083l9.951-10.013 1.419 1.409L23.999 36.93 11.63 24.479l1.419-1.409L23 33.085V13z"}):L:l?n:r},a=function(t){var a=t.isExtraSmall,l=t.isHovered,r=e.createElement("path",{d:"M15.049 30.277l-1.419-1.409 10.371-10.451L34.37 28.868l-1.419 1.409L24 21.257z"}),n=e.createElement("path",{d:"M24.001 10.14L36.37 22.591 34.951 24 25 13.985V35h-2V13.985L13.049 24l-1.419-1.409z"}),L=e.createElement("path",{d:"M32.577 30.115l1.793-1.779-10.371-10.451L13.63 28.336l1.793 1.779 8.576-8.644z"});return a?l?e.createElement("path",{d:"M23.999 9.043L36.897 22.02l-1.794 1.78-9.841-9.9.001 20.205h-2.526L22.736 13.9l-9.839 9.9-1.794-1.78z"}):L:l?n:r};export{a as C,t as a};
2
- //# sourceMappingURL=ChevronUp-4b6797ef.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChevronUp-4b6797ef.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/Close-35ad7d35.js DELETED
@@ -1,2 +0,0 @@
1
- import e from"react";import{p as t}from"./palette-f206f488.js";import{I as a}from"./Icon-89da8de4.js";import{A as l}from"./constants-ad6c82db.js";import r from"./components/Close/styles.module.scss";import{u as o,B as s}from"./useBreakpoint-552af2b9.js";var n=function(t){var a=t.isExtraSmall,l=t.isHovered,r=e.createElement("path",{d:"M25.403 24l10.259-10.259-1.403-1.403L24 22.597l-10.259-10.26-1.403 1.403L22.597 24 12.338 34.26l1.403 1.403L24 25.403l10.259 10.259 1.403-1.403z"}),o=e.createElement("path",{d:"M24 22.597L12.327 10.924l-1.403 1.402L22.597 24 10.923 35.674l1.403 1.402L24 25.403l11.674 11.673 1.403-1.402L25.403 24l11.673-11.674-1.403-1.402z"}),s=e.createElement("path",{d:"M25.773 24l10.432-10.432-1.772-1.773-10.432 10.433-10.433-10.433-1.773 1.772L22.229 24 11.795 34.433l1.773 1.772 10.433-10.433 10.432 10.433 1.772-1.773z"});return a?l?e.createElement("path",{d:"M24 22.227L11.781 10.008l-1.772 1.772 12.219 12.219-12.22 12.22 1.772 1.772L24 25.771l12.22 12.22 1.772-1.772-12.22-12.22L37.991 11.78l-1.772-1.772z"}):s:l?o:r},m=function(m){var c=o()===s.xs?38:48;return e.createElement("button",{"data-testid":m.testId,"data-analyticsid":l.Close,className:r.close,"aria-label":m.ariaLabel||"Lukk",onClick:m.onClick,role:"button"},e.createElement(a,{svgIcon:n,color:t.blueberry600,size:c}))};export{m as C};
2
- //# sourceMappingURL=Close-35ad7d35.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Close-35ad7d35.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{b as e}from"./_rollupPluginBabelHelpers-b8ef6dd9.js";import r from"react";import{c as a}from"./index-9b84fabc.js";import o from"./components/FormGroup/styles.module.scss";import{C as t}from"./Checkbox-798282e4.js";import{F as m,a as n,A as l}from"./constants-ad6c82db.js";import{R as i}from"./RadioButton-fe4bbd36.js";import{I as p}from"./Input-19650c24.js";import{T as s}from"./Title-af53f589.js";var f=r.forwardRef((function(f,d){var u,c,g,v=f.className,_=f.mode,b=void 0===_?m.onwhite:_,w=f.variant,E=void 0===w?n.normal:w,y=f.error,j=f.name,N=b===m.ondark,h=E===n.bigform,k=a(o["form-group-wrapper"],(e(u={},o["form-group-wrapper--on-dark"],N),e(u,o["form-group-wrapper--invalid"],y),u),v),F=a(o["form-group-wrapper__title"],(e(c={},o["form-group-wrapper__title--on-dark"],N&&!y),e(c,o["form-group-wrapper__title--bigform"],h),c)),x=a(o["form-group"],e({},o["form-group--invalid"],y)),B=a(o["form-group-wrapper__errors"],e({},o["form-group-wrapper__errors--bigform"],h)),C=a(o["field-set__legend"],(e(g={},o["field-set__legend--on-dark"],N&&!y),e(g,o["field-set__legend--bigform"],h),g));return r.createElement("div",{"data-testid":f.testId,"data-analyticsid":l.FormGroup,className:k},f.title&&r.createElement(s,{className:F,htmlMarkup:"h4",appearance:"title4",margin:{marginTop:0,marginBottom:2}},f.title),r.createElement("div",{className:x},y&&r.createElement("p",{className:B},y),r.createElement("fieldset",{name:f.title,className:o["field-set"]},f.legend&&r.createElement("legend",{className:C},f.legend),r.Children.map(f.children,(function(e){if(e.type===t){var a=e.type===t;return r.cloneElement(e,{name:null!=j?j:a.valueOf.name,mode:b,variant:E,error:!!y})}if(e.type===i){var o=e.type===i;return r.cloneElement(e,{name:null!=j?j:o.valueOf.name,mode:b,variant:E,error:!!y})}if(e.type===p){var m=e.type===p;return r.cloneElement(e,{name:null!=j?j:m.valueOf.name,mode:b,variant:E,error:!!y})}return e})))))}));export{f as F};
2
- //# sourceMappingURL=FormGroup-0577b07f.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormGroup-0577b07f.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/Icon-89da8de4.js DELETED
@@ -1,2 +0,0 @@
1
- import{_ as a}from"./_tslib-51c8a283.js";import e from"react";import{I as i,A as t}from"./constants-ad6c82db.js";var o=function(a,e,i,t,o,r){return a&&o&&r?e?r:o:e?t:i},r=e.forwardRef((function(o,r){var l=o.svgIcon,s=o.ariaLabel,d=o.id,c=o.className,n=void 0===c?"":c,m=o.size,v=void 0===m?i.Small:m,b=o.color,f=void 0===b?"black":b,h=o.hoverColor,I=void 0===h?f||"black":h,g=o.isHovered,p=void 0!==g&&g,u=o.testId,y=a(o,["svgIcon","ariaLabel","id","className","size","color","hoverColor","isHovered","testId"]),E=e.createElement(l,{isExtraSmall:v<=i.XSmall,isHovered:p}),H=d&&s?"title-".concat(d):void 0;return e.createElement("svg",Object.assign({id:d,"data-testid":u,"data-analyticsid":t.Icon,ref:r,className:"hnds-style-icon ".concat(n),role:"img","aria-label":!d&&s?s:void 0,"aria-labelledby":H,"aria-hidden":"true",viewBox:"0 0 48 48",style:{minWidth:v,minHeight:v},width:v,height:v,fill:p?I:f},y),H&&e.createElement("title",{id:H},s),E)}));r.displayName="Icon";export{r as I,o as r};
2
- //# sourceMappingURL=Icon-89da8de4.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Icon-89da8de4.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/Input-19650c24.js DELETED
@@ -1,2 +0,0 @@
1
- import{b as e}from"./_rollupPluginBabelHelpers-b8ef6dd9.js";import{_ as r}from"./_tslib-51c8a283.js";import a,{useRef as t}from"react";import{c as n}from"./index-9b84fabc.js";import{F as l,a as o,A as i,I as p}from"./constants-ad6c82db.js";import{u as s}from"./uuid-fe7442b7.js";import{I as d}from"./Icon-89da8de4.js";import{g as c}from"./color-a10c7892.js";import{u as m,B as u}from"./useBreakpoint-552af2b9.js";import b from"./components/Input/styles.module.scss";var f;!function(e){e.text="text",e.number="number",e.email="email",e.password="password",e.search="search",e.tel="tel",e.url="url"}(f||(f={}));var w=a.forwardRef((function(w,v){var _,h,I,y=w.defaultValue,g=w.placeholder,j=w.type,x=void 0===j?f.text:j,E=w.inputId,k=void 0===E?s():E,C=w.name,N=w.transparent,L=void 0!==N&&N,O=w.icon,B=w.iconRight,R=w.mode,V=w.variant,F=w.label,S=w.error,T=w.errorText,z=w.testId,A=w.disabled,H=w.readOnly,P=w.autocomplete,X=w.afterLabelChildren,q=w.belowLabelChildren,D=r(w,["defaultValue","placeholder","type","inputId","name","transparent","icon","iconRight","mode","variant","label","error","errorText","testId","disabled","readOnly","autocomplete","afterLabelChildren","belowLabelChildren"]),G=m(),J=t(null),K=R===l.ondark,M=R===l.onblueberry,Q=R===l.oninvalid||T||S,U=V===o.bigform,W=L&&R!==l.ondark&&!Q,Y=n(b["input-wrapper"],e({},b["input-wrapper--invalid"],T)),Z=n(b["input-wrapper__label-wrapper"],(e(_={},b["input-wrapper__label-wrapper--on-dark"],K),e(_,b["input-wrapper__label-wrapper--disabled"],A),_)),$=n(b["content-wrapper"],(e(h={},b["content-wrapper--transparent"],W),e(h,b["content-wrapper--on-blueberry"],M),e(h,b["content-wrapper--on-dark"],K),e(h,b["content-wrapper--invalid"],Q),e(h,b["content-wrapper--bigform"],U),e(h,b["content-wrapper--disabled"],A),e(h,b["content-wrapper--with-icon"],O),h)),ee=n(b["content-wrapper__input"],(e(I={},b["content-wrapper__input--bigform"],U),e(I,b["content-wrapper__input--disabled"],A),I)),re=A?c("neutral",500):c("black"),ae=function(){var e=G!==u.xs&&U?p.Small:p.XSmall;return void 0!==O?a.createElement(d,{color:re,size:e,svgIcon:O}):null};return a.createElement("div",{"data-testid":z,"data-analyticsid":i.Input,className:Y},F&&a.createElement("div",{className:Z},a.createElement("label",{htmlFor:k},F),X&&a.createElement("div",{className:b["input-wrapper__after-label-children"]},X)),q&&a.createElement("div",null,q),a.createElement("div",{onClick:function(){if(J&&J.current&&O){var e=B?0:1;J.current.children[e].focus()}},ref:J,className:$},!B&&ae(),a.createElement("input",Object.assign({name:C,type:x,defaultValue:y,id:k,className:ee,ref:v,"aria-invalid":!!Q,disabled:A,placeholder:g,readOnly:H,autoComplete:P||"off"},D)),B&&ae()))}));export{w as I,f as a};
2
- //# sourceMappingURL=Input-19650c24.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Input-19650c24.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Loader-fa16a352.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/Modal-ad02991b.js DELETED
@@ -1,2 +0,0 @@
1
- import{_ as e,b as a}from"./_rollupPluginBabelHelpers-b8ef6dd9.js";import t,{useEffect as r}from"react";import{c as l}from"./index-9b84fabc.js";import{p as n}from"./palette-f206f488.js";import{B as o}from"./Button-d5147e38.js";import{I as s}from"./Icon-89da8de4.js";import{A as i,Z as c,I as d}from"./constants-ad6c82db.js";import m from"./components/Modal/styles.module.scss";import{A as u,a as p}from"./AlertSignFill-e607ff43.js";import{b as f,u as v}from"./useIsVisible-a1f67a11.js";import{T as _}from"./Title-af53f589.js";import{u as E}from"./uuid-fe7442b7.js";import{C as b}from"./Close-35ad7d35.js";import{createPortal as h}from"react-dom";var g,y,N=function(e){e.isExtraSmall;var a=e.isHovered,r=t.createElement("path",{d:"m9.16 23.421 2.883-2.773 8.262 8.584L35.958 12.97l2.882 2.774-18.536 19.257-11.143-11.58zm26.744-13.279-15.6 16.206-8.206-8.529-5.766 5.547 13.973 14.518 21.362-22.193-5.764-5.549z","fill-rule":"evenodd"});return a?t.createElement("path",{d:"m11.128 25.394 2.88-2.771 6.291 6.613 17.071-17.68 2.882 2.775-19.944 20.668-9.18-9.605zM37.318 8.73 20.31 26.345l-6.239-6.558-5.766 5.548 11.996 12.552 22.781-23.609-5.764-5.548z","fill-rule":"evenodd"}):r};function C(e){var a=e.children,r=e.parent,l=e.className,n=e.testId,o=t.useMemo((function(){return document.createElement("div")}),[]);return o.setAttribute("data-analyticsid",i.Portal),n&&o.setAttribute("data-testid",n),t.useEffect((function(){var e=r&&r.appendChild?r:document.body,a=["portal-container"];return l&&l.split(" ").forEach((function(e){return a.push(e)})),a.forEach((function(e){return o.classList.add(e)})),e.appendChild(o),function(){e.removeChild(o)}}),[o,r,l]),h(a,o)}!function(e){e.normal="normal",e.warning="warning",e.error="error",e.success="success",e.image="image"}(g||(g={})),function(e){e.large="large",e.medium="medium"}(y||(y={}));var w={variant:g.normal,primaryButtonText:"OK",titleId:E(),className:"",size:y.large,zIndex:c.Modal},B=function(e,a){var r=function(e){return e===g.error?t.createElement(s,{size:d.Small,svgIcon:u,color:n.cherry500}):e===g.warning?t.createElement(s,{size:d.Small,svgIcon:p,color:n.black}):e===g.success?t.createElement(s,{size:d.Small,svgIcon:N,color:n.kiwi900}):null}(e);return r?t.createElement("div",{className:m.modal__iconWrapper},r):a?t.createElement("div",{className:m.modal__iconWrapper},t.cloneElement(a,{size:d.Small})):null},I=function(n){var s,c,d,u=t.useState(0),p=e(u,2),E=p[0],h=p[1],y=t.useRef(null),N=t.useRef(null),w=t.useRef(null),I=f(N),z=t.useRef(null),x=f(z),L=w.current&&w.current.scrollHeight>w.current.clientHeight;function T(e){"Escape"===e.key&&n.onClose&&(e.stopPropagation(),n.onClose())}function W(e){e.target&&k.current===e.target&&n.onClose&&(e.stopPropagation(),n.onClose())}var j=n.variant===g.image,k=t.useRef(null),S=n.secondaryButtonText&&(null===(c=n.secondaryButtonText)||void 0===c?void 0:c.length)>0||n.onSuccess,M=n.ariaLabelledBy?void 0:n.ariaLabel,P=n.ariaLabelledBy?n.ariaLabelledBy:n.ariaLabel?void 0:n.titleId;r((function(){var e,a=k.current;return null===(e=y.current)||void 0===e||e.focus(),document.body.style.overflow="hidden",n.disableCloseEvents||!a||S||(a.addEventListener("keydown",T),a.addEventListener("click",W)),function(){document.body.style.removeProperty("overflow"),n.disableCloseEvents||!a||S||(a.removeEventListener("keydown",T),a.removeEventListener("click",W))}}),[]);var A=l((a(s={},m["modal__title--error"],n.variant===g.error),a(s,m["modal__title--success"],n.variant===g.success),s)),R=t.createElement("div",{"data-testid":"dialog-container"},t.createElement("div",{ref:k,className:m["modal-overlay"],"data-testid":n.testId,"data-analyticsid":i.Modal,style:{zIndex:n.zIndex}},t.createElement("div",{className:m.align,ref:v()},t.createElement("div",{className:l(n.className,m.modal,m["modal--".concat(n.variant)],m["modal--".concat(n.size)]),role:"dialog","aria-label":M,"aria-labelledby":P},t.createElement("div",{tabIndex:E,ref:y,onBlur:function(){return h(-1)}}),t.createElement("div",{className:l(m.modal__shadow,m["modal__shadow--top"],a({},m["modal__shadow--show"],!I&&L))}),t.createElement("div",{className:l(m.modal__contentWrapper,a({},m["modal__contentWrapper--image"],j)),ref:w},!n.noCloseButton&&t.createElement("div",{className:m.modal__closeWrapper},t.createElement("div",{className:l(m.modal__closeWrapper__close)},t.createElement(b,{onClick:n.onClose,ariaLabel:n.ariaLabelCloseBtn}))),t.createElement("div",{className:l(m["modal__contentWrapper__scroll--".concat(n.size)],a({},m["modal__contentWrapper__scroll--image"],j))},t.createElement("div",{ref:N}),t.createElement("div",{className:m.modal__contentWrapper__title},B(n.variant,n.icon),t.createElement(_,{id:P,htmlMarkup:"h3",appearance:"title3",className:A},n.title),n.afterTitleChildren&&t.createElement("div",{className:m.modal__afterTitleChildren},n.afterTitleChildren)),j&&t.createElement("div",null,t.createElement("div",{className:m.modal__contentWrapper__imageWrapper},n.children),t.createElement("span",{className:m.modal__contentWrapper__imageDescription},n.description)),!j&&n.children&&t.createElement("div",null,n.children),!j&&!n.children&&t.createElement("p",{className:m.modal__description},n.description),t.createElement("div",{ref:z}))),t.createElement("div",{className:l(m.modal__shadow,m["modal__shadow--bottom"],a({},m["modal__shadow--show"],!x&&L))}),S&&t.createElement("div",{className:l(m["modal__call-to-action"],m["modal__call-to-action--".concat(n.size)])},n.onSuccess&&t.createElement(o,{onClick:n.onSuccess},n.primaryButtonText),n.secondaryButtonText&&(null===(d=n.secondaryButtonText)||void 0===d?void 0:d.length)>0&&t.createElement(o,{variant:"borderless",onClick:n.onClose},n.secondaryButtonText))))));if(n.printable){return t.createElement(C,{className:"print-modal",testId:"print-modal"},t.createElement("style",{media:"print"},"body > *:not(.".concat("print-modal",") {display: none;}")),R)}return R};I.defaultProps=w;export{I as M,g as a,y as b};
2
- //# sourceMappingURL=Modal-ad02991b.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Modal-ad02991b.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"RadioButton-fe4bbd36.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Textarea-e1d1144c.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Title-af53f589.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Validation-fd3f7f58.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- var a,o,i,n,e;!function(a){a[a.XSmall=38]="XSmall",a[a.Small=48]="Small",a[a.Medium=64]="Medium",a[a.Large=80]="Large",a[a.XLarge=130]="XLarge"}(a||(a={})),function(a){a[a.Modal=13e5]="Modal",a[a.ExpanderTrigger=1e4]="ExpanderTrigger"}(o||(o={})),function(a){a.onwhite="onwhite",a.ongrey="ongrey",a.onblueberry="onblueberry",a.ondark="ondark",a.oninvalid="oninvalid"}(i||(i={})),function(a){a.normal="normal",a.bigform="bigform"}(n||(n={})),function(a){a.AnchorLink="anchor-link",a.Avatar="avatar",a.Badge="badge",a.Button="button",a.Checkbox="checkbox",a.Close="close",a.Expander="expander",a.ExpanderList="expander-list",a.FormGroup="form-group",a.HighlightBox="highlight-box",a.Icon="icon",a.Input="input",a.Link="link",a.LinkList="link-list",a.List="list",a.Loader="loader",a.Logo="logo",a.Modal="modal",a.NotificationPanel="notification-panel",a.Portal="portal",a.RadioButton="radio-button",a.Slider="slider",a.Spacer="spacer",a.Textarea="textarea",a.Tile="tile",a.Title="title",a.Validation="validation"}(e||(e={}));export{e as A,i as F,a as I,o as Z,n as a};
2
- //# sourceMappingURL=constants-ad6c82db.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants-ad6c82db.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{_ as t}from"./_rollupPluginBabelHelpers-b8ef6dd9.js";import{useState as n,useEffect as e}from"react";var i=['a[href]:not([tabindex^="-"])','area[href]:not([tabindex^="-"])','input:not([type="hidden"]):not([type="radio"]):not([disabled]):not([tabindex^="-"])','input[type="radio"]:not([disabled]):not([tabindex^="-"])','select:not([disabled]):not([tabindex^="-"])','textarea:not([disabled]):not([tabindex^="-"])','button:not([disabled]):not([tabindex^="-"])','iframe:not([tabindex^="-"])','audio[controls]:not([tabindex^="-"])','video[controls]:not([tabindex^="-"])','[contenteditable]:not([tabindex^="-"])','[tabindex]:not([tabindex^="-"])'].join(","),o=function(o,r){var a=n(),d=t(a,2),u=d[0],c=d[1];return e((function(){var t=function(){var t,n=null===(t=o.current)||void 0===t?void 0:t.querySelectorAll(i);c(n)},n=new MutationObserver(t);return(null==o?void 0:o.current)&&n.observe(o.current,{subtree:!0,childList:!0}),t(),function(){n.disconnect()}}),[o]),e((function(){r?null==u||u.forEach((function(t){var n=t.getAttribute("data-tabindex");n?t.setAttribute("tabindex",n):t.removeAttribute("tabindex")})):null==u||u.forEach((function(t){t.hasAttribute("tabindex")&&t.setAttribute("data-tabindex","".concat(t.tabIndex)),t.tabIndex=-1}))}),[r,u]),u};function r(t,n,e){var i;return function(){var o=this,r=arguments,a=function(){i=null,e||t.apply(o,r)},d=e&&!i;i&&clearTimeout(i),i=setTimeout(a,n),d&&t.apply(o,r)}}var a=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["layoutchange","resize","orientationchange"],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;e((function(){var e=r(t,i);return n.forEach((function(t){return window.addEventListener(t,e)})),e(),function(){n.forEach((function(t){return window.removeEventListener(t,e)}))}}),[])},d=function(e,i){var o=n(!1),r=t(o,2),d=r[0],u=r[1],c=n(!1),l=t(c,2),b=l[0],s=l[1],v=n(),f=t(v,2),x=f[0],h=f[1],p=n(),g=t(p,2),m=g[0],w=g[1];return a((function(){var t,n,o,r=(null===(t=e.current)||void 0===t?void 0:t.getBoundingClientRect())||{},a=r.top,d=void 0===a?0:a,c=r.width,l=void 0===c?0:c,b=r.bottom,v=void 0===b?0:b,f=null!==(o=null===(n=i.current)||void 0===n?void 0:n.getBoundingClientRect().height)&&void 0!==o?o:0;u(d<=0),s(v<=f),w(l),h(f)}),["resize","scroll"]),{isOutsideWindow:d,isLeavingWindow:b,offsetHeight:x,contentWidth:m}};export{a,d as b,o as u};
2
- //# sourceMappingURL=useSticky-194f2b78.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useSticky-194f2b78.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}