@helsenorge/designsystem-react 1.0.0-beta106 → 1.0.0-beta107

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 (471) 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-b2b6efe0.js → FormGroup-af33981a.js} +2 -2
  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/Modal-ff546be0.js +2 -0
  13. package/Modal-ff546be0.js.map +1 -0
  14. package/README.md +69 -69
  15. package/Validation-4041c083.js +2 -0
  16. package/Validation-4041c083.js.map +1 -0
  17. package/components/AnchorLink/AnchorLink.d.ts +18 -18
  18. package/components/AnchorLink/index.d.ts +3 -3
  19. package/components/AnchorLink/index.js +1 -1
  20. package/components/AnchorLink/styles.module.scss +63 -63
  21. package/components/AnchorLink/styles.module.scss.d.ts +10 -10
  22. package/components/Avatar/Avatar.d.ts +15 -15
  23. package/components/Avatar/index.d.ts +3 -3
  24. package/components/Avatar/index.js +1 -1
  25. package/components/Avatar/styles.module.scss +22 -22
  26. package/components/Avatar/styles.module.scss.d.ts +11 -11
  27. package/components/Badge/Badge.d.ts +16 -16
  28. package/components/Badge/index.d.ts +3 -3
  29. package/components/Badge/styles.module.scss +41 -41
  30. package/components/Badge/styles.module.scss.d.ts +17 -17
  31. package/components/Button/Button.d.ts +41 -41
  32. package/components/Button/index.d.ts +3 -3
  33. package/components/Button/index.js +1 -1
  34. package/components/Button/styles.module.scss +434 -434
  35. package/components/Button/styles.module.scss.d.ts +34 -34
  36. package/components/ButtonWithModal/ButtonWithModal.d.ts +10 -10
  37. package/components/ButtonWithModal/index.d.ts +3 -3
  38. package/components/ButtonWithModal/index.js +1 -1
  39. package/components/Checkbox/Checkbox.d.ts +30 -30
  40. package/components/Checkbox/index.d.ts +3 -3
  41. package/components/Checkbox/index.js +1 -1
  42. package/components/Checkbox/styles.module.scss +204 -204
  43. package/components/Checkbox/styles.module.scss.d.ts +26 -26
  44. package/components/Close/Close.d.ts +11 -11
  45. package/components/Close/index.d.ts +3 -3
  46. package/components/Close/index.js +1 -1
  47. package/components/Close/styles.module.scss +32 -32
  48. package/components/Close/styles.module.scss.d.ts +9 -9
  49. package/components/Expander/Expander.d.ts +32 -32
  50. package/components/Expander/Expander.d.ts.map +1 -1
  51. package/components/Expander/index.d.ts +3 -3
  52. package/components/Expander/index.js +1 -1
  53. package/components/Expander/styles.module.scss +165 -165
  54. package/components/Expander/styles.module.scss.d.ts +42 -42
  55. package/components/ExpanderList/ExpanderList.d.ts +47 -45
  56. package/components/ExpanderList/ExpanderList.d.ts.map +1 -1
  57. package/components/ExpanderList/index.d.ts +3 -3
  58. package/components/ExpanderList/index.js +1 -1
  59. package/components/ExpanderList/styles.module.scss +160 -160
  60. package/components/ExpanderList/styles.module.scss.d.ts +28 -28
  61. package/components/FormExample/FormExample.d.ts +15 -15
  62. package/components/FormExample/index.d.ts +3 -3
  63. package/components/FormExample/index.js +1 -1
  64. package/components/FormExample/index.js.map +1 -1
  65. package/components/FormGroup/FormGroup.d.ts +24 -24
  66. package/components/FormGroup/index.d.ts +3 -3
  67. package/components/FormGroup/index.js +1 -1
  68. package/components/FormGroup/styles.module.scss +67 -67
  69. package/components/FormGroup/styles.module.scss.d.ts +16 -16
  70. package/components/HighlightBox/HighlightBox.d.ts +26 -26
  71. package/components/HighlightBox/index.d.ts +3 -3
  72. package/components/HighlightBox/index.js +1 -1
  73. package/components/HighlightBox/styles.module.scss +174 -174
  74. package/components/Icons/ActiveMonitoring.d.ts +4 -4
  75. package/components/Icons/AcupunctureBack.d.ts +4 -4
  76. package/components/Icons/AcupunctureBack.js +1 -1
  77. package/components/Icons/AdditionalIconInformation.js +263 -263
  78. package/components/Icons/AdditionalIconInformation.js.map +1 -1
  79. package/components/Icons/AlarmClock.d.ts +4 -4
  80. package/components/Icons/AlertSignFill.d.ts +4 -4
  81. package/components/Icons/AlertSignStroke.d.ts +4 -4
  82. package/components/Icons/Amputation.d.ts +4 -4
  83. package/components/Icons/Anxiety.d.ts +4 -4
  84. package/components/Icons/Apple.d.ts +4 -4
  85. package/components/Icons/Archive.d.ts +4 -4
  86. package/components/Icons/ArmFlexing.d.ts +4 -4
  87. package/components/Icons/ArrowLeft.d.ts +4 -4
  88. package/components/Icons/ArrowRight.d.ts +4 -4
  89. package/components/Icons/ArrowUpRight.d.ts +4 -4
  90. package/components/Icons/Attachment.d.ts +4 -4
  91. package/components/Icons/Atv.d.ts +4 -4
  92. package/components/Icons/Avatar.d.ts +4 -4
  93. package/components/Icons/AwakePersonOnPillow.d.ts +4 -4
  94. package/components/Icons/Baby.d.ts +4 -4
  95. package/components/Icons/BandAid.d.ts +4 -4
  96. package/components/Icons/BeerAndPills.d.ts +4 -4
  97. package/components/Icons/Bell.d.ts +4 -4
  98. package/components/Icons/Bike.d.ts +4 -4
  99. package/components/Icons/BirthControl.d.ts +4 -4
  100. package/components/Icons/BirthdayCake.d.ts +4 -4
  101. package/components/Icons/Boat.d.ts +4 -4
  102. package/components/Icons/Body.d.ts +4 -4
  103. package/components/Icons/Brain.d.ts +4 -4
  104. package/components/Icons/BreastReconstruction.d.ts +4 -4
  105. package/components/Icons/BreastRemoval.d.ts +4 -4
  106. package/components/Icons/Breasts.d.ts +4 -4
  107. package/components/Icons/BrokenHeart.d.ts +4 -4
  108. package/components/Icons/BrokenPuzzle.d.ts +4 -4
  109. package/components/Icons/Bus.d.ts +4 -4
  110. package/components/Icons/Calendar.d.ts +4 -4
  111. package/components/Icons/CalendarChange.d.ts +4 -4
  112. package/components/Icons/CalendarCheck.d.ts +4 -4
  113. package/components/Icons/CalendarEvent.d.ts +4 -4
  114. package/components/Icons/CalendarSave.d.ts +4 -4
  115. package/components/Icons/Cancer.d.ts +4 -4
  116. package/components/Icons/Car.d.ts +4 -4
  117. package/components/Icons/Change.d.ts +4 -4
  118. package/components/Icons/Check.d.ts +4 -4
  119. package/components/Icons/CheckOutline.d.ts +4 -4
  120. package/components/Icons/Chest.d.ts +4 -4
  121. package/components/Icons/ChevronDown.d.ts +4 -4
  122. package/components/Icons/ChevronLeft.d.ts +4 -4
  123. package/components/Icons/ChevronRight.d.ts +4 -4
  124. package/components/Icons/ChevronUp.d.ts +4 -4
  125. package/components/Icons/ChevronsDown.d.ts +4 -4
  126. package/components/Icons/ChevronsUp.d.ts +4 -4
  127. package/components/Icons/ChildPlaying.d.ts +4 -4
  128. package/components/Icons/Cigarette.d.ts +4 -4
  129. package/components/Icons/Contacts.d.ts +4 -4
  130. package/components/Icons/Copy.d.ts +4 -4
  131. package/components/Icons/CoronaCertificate.d.ts +4 -4
  132. package/components/Icons/Coronavirus.d.ts +4 -4
  133. package/components/Icons/Cough.d.ts +4 -4
  134. package/components/Icons/CriticalHealthInfo.d.ts +4 -4
  135. package/components/Icons/Cross.d.ts +4 -4
  136. package/components/Icons/DataExchange.d.ts +4 -4
  137. package/components/Icons/DataReceived.d.ts +4 -4
  138. package/components/Icons/DataSent.d.ts +4 -4
  139. package/components/Icons/Depression.d.ts +4 -4
  140. package/components/Icons/DigestiveSystem.d.ts +4 -4
  141. package/components/Icons/Dizzy.d.ts +4 -4
  142. package/components/Icons/Documents.d.ts +4 -4
  143. package/components/Icons/Dog.d.ts +4 -4
  144. package/components/Icons/DonorCard.d.ts +4 -4
  145. package/components/Icons/Download.d.ts +4 -4
  146. package/components/Icons/Draft.d.ts +4 -4
  147. package/components/Icons/EChat.d.ts +4 -4
  148. package/components/Icons/EarNoseThroat.d.ts +4 -4
  149. package/components/Icons/ElderlyPerson.d.ts +4 -4
  150. package/components/Icons/Embolization.d.ts +4 -4
  151. package/components/Icons/EnterFullScreen.d.ts +4 -4
  152. package/components/Icons/Envelope.d.ts +4 -4
  153. package/components/Icons/Epilepsy.d.ts +4 -4
  154. package/components/Icons/Eraser.d.ts +4 -4
  155. package/components/Icons/ErrorSignFill.d.ts +4 -4
  156. package/components/Icons/ErrorSignStroke.d.ts +4 -4
  157. package/components/Icons/EuropeanHealthCard.d.ts +4 -4
  158. package/components/Icons/ExitFullScreen.d.ts +4 -4
  159. package/components/Icons/Eye.d.ts +4 -4
  160. package/components/Icons/Facebook.d.ts +4 -4
  161. package/components/Icons/Female.d.ts +4 -4
  162. package/components/Icons/FemaleDoctor.d.ts +4 -4
  163. package/components/Icons/Ferry.d.ts +4 -4
  164. package/components/Icons/FingerBleed.d.ts +4 -4
  165. package/components/Icons/FirstAidKit.d.ts +4 -4
  166. package/components/Icons/FloppyDisk.d.ts +4 -4
  167. package/components/Icons/Football.d.ts +4 -4
  168. package/components/Icons/Form.d.ts +4 -4
  169. package/components/Icons/Forward.d.ts +4 -4
  170. package/components/Icons/Gallery.d.ts +4 -4
  171. package/components/Icons/Garden.d.ts +4 -4
  172. package/components/Icons/GasCan.d.ts +4 -4
  173. package/components/Icons/GenderIdentity.d.ts +4 -4
  174. package/components/Icons/Globe.d.ts +4 -4
  175. package/components/Icons/HandWaving.d.ts +4 -4
  176. package/components/Icons/HandWithDisease.d.ts +4 -4
  177. package/components/Icons/HealthClinic.d.ts +4 -4
  178. package/components/Icons/HealthWarning.d.ts +4 -4
  179. package/components/Icons/Heart.d.ts +4 -4
  180. package/components/Icons/HelpSign.d.ts +4 -4
  181. package/components/Icons/HelpingHand.d.ts +4 -4
  182. package/components/Icons/Hemodialysis.d.ts +4 -4
  183. package/components/Icons/Hiker.d.ts +4 -4
  184. package/components/Icons/Hipprosthesis.d.ts +4 -4
  185. package/components/Icons/History.d.ts +4 -4
  186. package/components/Icons/HivAndAids.d.ts +4 -4
  187. package/components/Icons/Home.d.ts +4 -4
  188. package/components/Icons/Hormone.d.ts +4 -4
  189. package/components/Icons/Hospital.d.ts +4 -4
  190. package/components/Icons/Hourglass.d.ts +4 -4
  191. package/components/Icons/Icon.d.ts +22 -22
  192. package/components/Icons/ImgFile.d.ts +4 -4
  193. package/components/Icons/Inbox.d.ts +4 -4
  194. package/components/Icons/InfoSignFill.d.ts +4 -4
  195. package/components/Icons/InfoSignStroke.d.ts +4 -4
  196. package/components/Icons/Instagram.d.ts +4 -4
  197. package/components/Icons/Intravenous.d.ts +4 -4
  198. package/components/Icons/JointPain.d.ts +4 -4
  199. package/components/Icons/Journal.d.ts +4 -4
  200. package/components/Icons/JpgFile.d.ts +4 -4
  201. package/components/Icons/Kidney.d.ts +4 -4
  202. package/components/Icons/KitchenScale.d.ts +4 -4
  203. package/components/Icons/Kjernejournal.d.ts +4 -4
  204. package/components/Icons/Laboratory.d.ts +4 -4
  205. package/components/Icons/LaptopBlog.d.ts +4 -4
  206. package/components/Icons/LawBook.d.ts +4 -4
  207. package/components/Icons/LightBulb.d.ts +4 -4
  208. package/components/Icons/List.d.ts +4 -4
  209. package/components/Icons/Location.d.ts +4 -4
  210. package/components/Icons/Lock.d.ts +4 -4
  211. package/components/Icons/Lungs.d.ts +4 -4
  212. package/components/Icons/Makeup.d.ts +4 -4
  213. package/components/Icons/MaleDoctor.d.ts +4 -4
  214. package/components/Icons/MaleDoctorAndPerson.d.ts +4 -4
  215. package/components/Icons/MaleGenitalia.d.ts +4 -4
  216. package/components/Icons/Medicine.d.ts +4 -4
  217. package/components/Icons/MedicineWarning.d.ts +4 -4
  218. package/components/Icons/MentalHealthAdult.d.ts +4 -4
  219. package/components/Icons/MentalHealthChild.d.ts +4 -4
  220. package/components/Icons/Menu.d.ts +4 -4
  221. package/components/Icons/Microscope.d.ts +4 -4
  222. package/components/Icons/Minus.d.ts +4 -4
  223. package/components/Icons/Mirror.d.ts +4 -4
  224. package/components/Icons/MobilePhone.d.ts +4 -4
  225. package/components/Icons/MotherHoldingBaby.d.ts +4 -4
  226. package/components/Icons/MuscleBack.d.ts +4 -4
  227. package/components/Icons/MuscleLeg.d.ts +4 -4
  228. package/components/Icons/Mushroom.d.ts +4 -4
  229. package/components/Icons/Music.d.ts +4 -4
  230. package/components/Icons/MusselsAndSalt.d.ts +4 -4
  231. package/components/Icons/NoEye.d.ts +4 -4
  232. package/components/Icons/NoEye.js +1 -1
  233. package/components/Icons/NoFilter.d.ts +4 -4
  234. package/components/Icons/Notepad.d.ts +4 -4
  235. package/components/Icons/Osteotomy.d.ts +4 -4
  236. package/components/Icons/PaintRoller.d.ts +4 -4
  237. package/components/Icons/PaperPlane.d.ts +4 -4
  238. package/components/Icons/PatientAndPerson.d.ts +4 -4
  239. package/components/Icons/Pause.d.ts +4 -4
  240. package/components/Icons/PdfFile.d.ts +4 -4
  241. package/components/Icons/Pencil.d.ts +4 -4
  242. package/components/Icons/PeopleTalking.d.ts +4 -4
  243. package/components/Icons/Peritonealdialysis.d.ts +4 -4
  244. package/components/Icons/Person.d.ts +4 -4
  245. package/components/Icons/PersonAndPatient.d.ts +4 -4
  246. package/components/Icons/PersonInXRayMachine.d.ts +4 -4
  247. package/components/Icons/PersonOverweight.d.ts +4 -4
  248. package/components/Icons/PersonRelaxing.d.ts +4 -4
  249. package/components/Icons/PersonWithBrain.d.ts +4 -4
  250. package/components/Icons/PersonWithBrokenArm.d.ts +4 -4
  251. package/components/Icons/PersonWithCrutches.d.ts +4 -4
  252. package/components/Icons/PersonWithJaw.d.ts +4 -4
  253. package/components/Icons/PersonWithMagnifyingGlass.d.ts +4 -4
  254. package/components/Icons/PersonWithSenses.d.ts +4 -4
  255. package/components/Icons/PersonWorking.d.ts +4 -4
  256. package/components/Icons/PizzaSlice.d.ts +4 -4
  257. package/components/Icons/Plane.d.ts +4 -4
  258. package/components/Icons/Plant.d.ts +4 -4
  259. package/components/Icons/Play.d.ts +4 -4
  260. package/components/Icons/PlusLarge.d.ts +4 -4
  261. package/components/Icons/PlusSmall.d.ts +4 -4
  262. package/components/Icons/PngFile.d.ts +4 -4
  263. package/components/Icons/Podcast.d.ts +4 -4
  264. package/components/Icons/PoisonInformation.d.ts +4 -4
  265. package/components/Icons/Pregnant.d.ts +4 -4
  266. package/components/Icons/Printer.d.ts +4 -4
  267. package/components/Icons/Psychosis.d.ts +4 -4
  268. package/components/Icons/Publication.d.ts +4 -4
  269. package/components/Icons/Puzzle.d.ts +4 -4
  270. package/components/Icons/QrCode.d.ts +4 -4
  271. package/components/Icons/Quarrel.d.ts +4 -4
  272. package/components/Icons/RadioTherapy.d.ts +4 -4
  273. package/components/Icons/RadioactiveTreatment.d.ts +4 -4
  274. package/components/Icons/Radioiodine.d.ts +4 -4
  275. package/components/Icons/Receipt.d.ts +4 -4
  276. package/components/Icons/Receptionist.d.ts +4 -4
  277. package/components/Icons/Recovery.d.ts +4 -4
  278. package/components/Icons/Referral.d.ts +4 -4
  279. package/components/Icons/Refresh.d.ts +4 -4
  280. package/components/Icons/Refund.d.ts +4 -4
  281. package/components/Icons/Reply.d.ts +4 -4
  282. package/components/Icons/Rocket.d.ts +4 -4
  283. package/components/Icons/RtfFile.d.ts +4 -4
  284. package/components/Icons/STDs.d.ts +4 -4
  285. package/components/Icons/Save.d.ts +4 -4
  286. package/components/Icons/Scale.d.ts +4 -4
  287. package/components/Icons/Search.d.ts +4 -4
  288. package/components/Icons/SectionSign.d.ts +4 -4
  289. package/components/Icons/SectionSign.js +1 -1
  290. package/components/Icons/Settings.d.ts +4 -4
  291. package/components/Icons/Sexualorientation.d.ts +4 -4
  292. package/components/Icons/ShakingHand.d.ts +4 -4
  293. package/components/Icons/Share.d.ts +4 -4
  294. package/components/Icons/Shield.d.ts +4 -4
  295. package/components/Icons/ShuntOperation.d.ts +4 -4
  296. package/components/Icons/Skeleton.d.ts +4 -4
  297. package/components/Icons/Skin.d.ts +4 -4
  298. package/components/Icons/Snake.d.ts +4 -4
  299. package/components/Icons/Snapchat.d.ts +4 -4
  300. package/components/Icons/SpeechBubble.d.ts +4 -4
  301. package/components/Icons/SpeechBubble.js +1 -1
  302. package/components/Icons/Spray.d.ts +4 -4
  303. package/components/Icons/Stopwatch.d.ts +4 -4
  304. package/components/Icons/SupportingPerson.d.ts +4 -4
  305. package/components/Icons/SupportingPerson.js +1 -1
  306. package/components/Icons/Surgery.d.ts +4 -4
  307. package/components/Icons/Syringe.d.ts +4 -4
  308. package/components/Icons/Syringe.js +1 -1
  309. package/components/Icons/Taxi.d.ts +4 -4
  310. package/components/Icons/TeddyBear.d.ts +4 -4
  311. package/components/Icons/Teenagers.d.ts +4 -4
  312. package/components/Icons/ThinkingAboutBaby.d.ts +4 -4
  313. package/components/Icons/Ticket.d.ts +4 -4
  314. package/components/Icons/TimePassing.d.ts +4 -4
  315. package/components/Icons/Toolbox.d.ts +4 -4
  316. package/components/Icons/Tooth.d.ts +4 -4
  317. package/components/Icons/TotalKneeProsthesis.d.ts +4 -4
  318. package/components/Icons/Train.d.ts +4 -4
  319. package/components/Icons/Transplantation.d.ts +4 -4
  320. package/components/Icons/TrashCan.d.ts +4 -4
  321. package/components/Icons/Twitter.d.ts +4 -4
  322. package/components/Icons/Undo.d.ts +4 -4
  323. package/components/Icons/UniProsthesis.d.ts +4 -4
  324. package/components/Icons/Upload.d.ts +4 -4
  325. package/components/Icons/UserOrganization.d.ts +4 -4
  326. package/components/Icons/Vaccine.d.ts +4 -4
  327. package/components/Icons/VerticalDots.d.ts +4 -4
  328. package/components/Icons/VideoCamera.d.ts +4 -4
  329. package/components/Icons/VideoChat.d.ts +4 -4
  330. package/components/Icons/Wallet.d.ts +4 -4
  331. package/components/Icons/Watch.d.ts +4 -4
  332. package/components/Icons/Website.d.ts +4 -4
  333. package/components/Icons/Wheelchair.d.ts +4 -4
  334. package/components/Icons/WheelchairActive.d.ts +4 -4
  335. package/components/Icons/Window.d.ts +4 -4
  336. package/components/Icons/WordDocument.d.ts +4 -4
  337. package/components/Icons/WorkSuitcase.d.ts +4 -4
  338. package/components/Icons/X.d.ts +4 -4
  339. package/components/Icons/XOutline.d.ts +4 -4
  340. package/components/Icons/XmlFile.d.ts +4 -4
  341. package/components/Icons/YouTube.d.ts +4 -4
  342. package/components/Icons/Zoom.d.ts +4 -4
  343. package/components/Icons/index.d.ts +4 -4
  344. package/components/Icons/index.js +1 -1
  345. package/components/Input/Input.d.ts +54 -54
  346. package/components/Input/index.d.ts +3 -3
  347. package/components/Input/index.js +1 -1
  348. package/components/Input/styles.module.scss +59 -59
  349. package/components/Input/styles.module.scss.d.ts +23 -23
  350. package/components/LinkList/LinkList.d.ts +41 -41
  351. package/components/LinkList/index.d.ts +3 -3
  352. package/components/LinkList/index.js +1 -1
  353. package/components/LinkList/styles.module.scss +147 -147
  354. package/components/LinkList/styles.module.scss.d.ts +26 -26
  355. package/components/List/List.d.ts +9 -9
  356. package/components/List/index.d.ts +3 -3
  357. package/components/List/styles.module.scss +11 -11
  358. package/components/List/styles.module.scss.d.ts +10 -10
  359. package/components/Loader/Loader.d.ts +32 -32
  360. package/components/Loader/index.d.ts +3 -3
  361. package/components/Loader/styles.module.scss +194 -194
  362. package/components/Logo/Logo.d.ts +17 -17
  363. package/components/Logo/index.d.ts +3 -3
  364. package/components/Modal/Modal.d.ts +69 -69
  365. package/components/Modal/__mocks__/IntersectionObserver.d.ts +5 -5
  366. package/components/Modal/index.d.ts +3 -3
  367. package/components/Modal/index.js +1 -1
  368. package/components/Modal/styles.module.scss +243 -243
  369. package/components/Modal/styles.module.scss.d.ts +41 -41
  370. package/components/NotificationPanel/NotificationPanel.d.ts +47 -47
  371. package/components/NotificationPanel/index.d.ts +3 -3
  372. package/components/NotificationPanel/index.js +1 -1
  373. package/components/NotificationPanel/styles.module.scss +153 -153
  374. package/components/NotificationPanel/styles.module.scss.d.ts +33 -33
  375. package/components/Portal/index.d.ts +12 -12
  376. package/components/RadioButton/RadioButton.d.ts +30 -30
  377. package/components/RadioButton/index.d.ts +3 -3
  378. package/components/RadioButton/styles.module.scss +236 -236
  379. package/components/RadioButton/styles.module.scss.d.ts +23 -23
  380. package/components/Slider/Slider.d.ts +19 -19
  381. package/components/Slider/SliderUtils.d.ts +40 -40
  382. package/components/Slider/index.d.ts +3 -3
  383. package/components/Slider/styles.module.scss +85 -85
  384. package/components/Slider/styles.module.scss.d.ts +19 -19
  385. package/components/Spacer/Spacer.d.ts +12 -12
  386. package/components/Spacer/index.d.ts +3 -3
  387. package/components/Spacer/styles.module.scss +47 -47
  388. package/components/Spacer/styles.module.scss.d.ts +22 -22
  389. package/components/Textarea/Textarea.d.ts +36 -36
  390. package/components/Textarea/index.d.ts +3 -3
  391. package/components/Textarea/styles.module.scss +57 -57
  392. package/components/Textarea/styles.module.scss.d.ts +26 -26
  393. package/components/Tile/Tile.d.ts +33 -33
  394. package/components/Tile/index.d.ts +3 -3
  395. package/components/Tile/index.js +1 -1
  396. package/components/Tile/styles.module.scss +115 -115
  397. package/components/Tile/styles.module.scss.d.ts +18 -18
  398. package/components/Title/Title.d.ts +25 -25
  399. package/components/Title/index.d.ts +3 -3
  400. package/components/Title/styles.module.scss +27 -27
  401. package/components/Title/styles.module.scss.d.ts +15 -15
  402. package/components/Validation/Validation.d.ts +16 -16
  403. package/components/Validation/index.d.ts +3 -3
  404. package/components/Validation/index.js +1 -1
  405. package/components/Validation/styles.module.scss +18 -18
  406. package/components/Validation/styles.module.scss.d.ts +10 -10
  407. package/constants.d.ts +91 -91
  408. package/hooks/focus-utils.d.ts +6 -6
  409. package/hooks/useBreakpoint.d.ts +12 -12
  410. package/hooks/useFocusToggle.d.ts +13 -13
  411. package/hooks/useFocusTrap.d.ts +3 -3
  412. package/hooks/useHover.d.ts +11 -11
  413. package/hooks/useIcons.d.ts +3 -3
  414. package/hooks/useIntersectionObserver.d.ts +10 -10
  415. package/hooks/useIsVisible.d.ts +9 -9
  416. package/hooks/useLayoutEvent.d.ts +8 -8
  417. package/hooks/usePrevious.d.ts +7 -0
  418. package/hooks/usePrevious.d.ts.map +1 -0
  419. package/hooks/useSize.d.ts +8 -8
  420. package/hooks/useSticky.d.ts +20 -20
  421. package/hooks/useWindowSize.d.ts +4 -4
  422. package/index.d.ts +13 -12
  423. package/index.d.ts.map +1 -1
  424. package/index.js +1 -1
  425. package/package.json +1 -1
  426. package/scss/_body.scss +11 -11
  427. package/scss/_breakpoints.scss +16 -16
  428. package/scss/_font-settings.scss +8 -8
  429. package/scss/_fonts.scss +112 -112
  430. package/scss/_grid.scss +1 -1
  431. package/scss/_input.scss +176 -176
  432. package/scss/_palette.scss +136 -136
  433. package/scss/_print.scss +176 -176
  434. package/scss/_reset.scss +13 -13
  435. package/scss/_spacers.scss +40 -40
  436. package/scss/_title.scss +59 -59
  437. package/scss/helsenorge.scss +8 -8
  438. package/scss/typography.module.scss +154 -154
  439. package/theme/currys/color.d.ts +3 -3
  440. package/theme/currys/index.d.ts +2 -2
  441. package/theme/currys/spacing.d.ts +3 -3
  442. package/theme/grid.d.ts +20 -20
  443. package/theme/index.d.ts +98 -98
  444. package/theme/palette.d.ts +67 -67
  445. package/theme/spacers.d.ts +18 -18
  446. package/usePrevious-ae293b10.js +2 -0
  447. package/usePrevious-ae293b10.js.map +1 -0
  448. package/utils/debounce.d.ts +7 -7
  449. package/utils/uuid.d.ts +2 -2
  450. package/utils/viewport.d.ts +1 -1
  451. package/AlertSignFill-e607ff43.js +0 -2
  452. package/AlertSignFill-e607ff43.js.map +0 -1
  453. package/Button-397ff5a8.js +0 -2
  454. package/Button-397ff5a8.js.map +0 -1
  455. package/Check-6291ad09.js +0 -2
  456. package/Check-6291ad09.js.map +0 -1
  457. package/Checkbox-acd12b0c.js +0 -2
  458. package/Checkbox-acd12b0c.js.map +0 -1
  459. package/ChevronUp-4b6797ef.js +0 -2
  460. package/ChevronUp-4b6797ef.js.map +0 -1
  461. package/Close-060173de.js +0 -2
  462. package/Close-060173de.js.map +0 -1
  463. package/FormGroup-b2b6efe0.js.map +0 -1
  464. package/Icon-537c6b21.js +0 -2
  465. package/Icon-537c6b21.js.map +0 -1
  466. package/Input-59ca2467.js +0 -2
  467. package/Input-59ca2467.js.map +0 -1
  468. package/Modal-3c7f9f93.js +0 -2
  469. package/Modal-3c7f9f93.js.map +0 -1
  470. package/Validation-16a8bdcd.js +0 -2
  471. package/Validation-16a8bdcd.js.map +0 -1
@@ -1,2 +1,2 @@
1
- import{b as e}from"../../_rollupPluginBabelHelpers-b8ef6dd9.js";import a from"react";import{c as t}from"../../index-9b84fabc.js";import{p as o}from"../../palette-f206f488.js";import{I as r}from"../../Icon-537c6b21.js";import{A as i}from"../../constants-eb74321e.js";import{a as n,A as l}from"../../AlertSignFill-e607ff43.js";import c from"./styles.module.scss";import{C as s}from"../../Close-060173de.js";import"../../_tslib-51c8a283.js";import"../Close/styles.module.scss";import"../../useBreakpoint-552af2b9.js";import"../../grid-11a70eb7.js";var m={info:{color:"kiwi",depth:50},warn:{color:"banana",depth:50},alert:{color:"cherry",depth:100},crisis:{color:"black",depth:0}},p={info:a.createElement(r,{svgIcon:function(e){var t=e.isExtraSmall,o=e.isHovered,r=a.createElement("path",{d:"M25.672 30.501a.682.682 0 01-.322-.272.835.835 0 01-.11-.443v-7.917l-.112-.112-3.651.194v.544c.148.015.314.05.495.104.18.055.316.112.406.172a.994.994 0 01.299.316.88.88 0 01.119.459v6.337a.879.879 0 01-.098.443.623.623 0 01-.335.257c-.09.035-.197.06-.32.074a8.883 8.883 0 01-.38.038v.544h4.709v-.544a2.45 2.45 0 01-.7-.194M24 37.604c-7.5 0-13.604-6.103-13.604-13.604 0-7.501 6.104-13.603 13.604-13.603 7.502 0 13.602 6.102 13.602 13.603 0 7.501-6.1 13.604-13.601 13.604m0-28.909C15.56 8.695 8.694 15.562 8.694 24c0 8.438 6.867 15.305 15.305 15.305 8.438 0 15.304-6.867 15.304-15.305 0-8.438-6.866-15.305-15.304-15.305m-.274 10.632a1.559 1.559 0 100-3.118 1.559 1.559 0 000 3.118"}),i=a.createElement("path",{d:"M25.672 30.501a.682.682 0 01-.322-.272.835.835 0 01-.11-.443v-7.917l-.112-.112-3.651.194v.544c.148.015.314.05.495.104.18.055.316.112.406.172a.994.994 0 01.299.316.88.88 0 01.119.459v6.337a.879.879 0 01-.098.443.623.623 0 01-.335.257c-.09.035-.197.06-.32.074a8.883 8.883 0 01-.38.038v.544h4.709v-.544a2.45 2.45 0 01-.7-.194M24 37.604c-7.5 0-13.604-6.103-13.604-13.604 0-7.501 6.104-13.603 13.604-13.603 7.502 0 13.602 6.102 13.602 13.603 0 7.501-6.1 13.604-13.601 13.604m0-28.909C15.56 8.695 8.694 15.562 8.694 24c0 8.438 6.867 15.305 15.305 15.305 8.438 0 15.304-6.867 15.304-15.305 0-8.438-6.866-15.305-15.304-15.305m-.274 8.632a1.559 1.559 0 100-3.118 1.559 1.559 0 000 3.118"}),n=a.createElement("path",{d:"M25.668 30.487a.68.68 0 01-.32-.271.833.833 0 01-.111-.442v-7.9l-.112-.112-3.643.193v.543c.148.015.313.05.495.104.18.055.315.112.405.172a.991.991 0 01.297.315.877.877 0 01.119.458v6.324c0 .182-.032.33-.097.442a.622.622 0 01-.334.256c-.09.035-.197.06-.32.074-.124.015-.25.028-.38.038v.543h4.7v-.543a2.445 2.445 0 01-.699-.194M24 37.575c-7.485 0-13.575-6.09-13.575-13.575 0-7.485 6.09-13.574 13.575-13.574 7.486 0 13.574 6.089 13.574 13.574 0 7.485-6.088 13.575-13.574 13.575m0-28.848C15.58 8.727 8.728 15.58 8.728 24S15.579 39.273 24 39.273c8.42 0 15.272-6.853 15.272-15.273S32.421 8.727 24 8.727m-.274 10.61a1.556 1.556 0 100-3.112 1.556 1.556 0 000 3.112"});return t?o?a.createElement("path",{d:"M25.668 30.487a.68.68 0 01-.32-.271.833.833 0 01-.111-.442v-7.9l-.112-.112-3.643.193v.543c.148.015.313.05.495.104.18.055.315.112.405.172a.991.991 0 01.297.315.877.877 0 01.119.458v6.324c0 .182-.032.33-.097.442a.622.622 0 01-.334.256c-.09.035-.197.06-.32.074-.124.015-.25.028-.38.038v.543h4.7v-.543a2.445 2.445 0 01-.699-.194M24 37.575c-7.485 0-13.575-6.09-13.575-13.575 0-7.485 6.09-13.574 13.575-13.574 7.486 0 13.574 6.089 13.574 13.574 0 7.485-6.088 13.575-13.574 13.575m0-28.848C15.58 8.727 8.728 15.58 8.728 24S15.579 39.273 24 39.273c8.42 0 15.272-6.853 15.272-15.273S32.421 8.727 24 8.727m-.274 8.084a1.556 1.556 0 100-3.112 1.556 1.556 0 000 3.112"}):n:o?i:r},color:o.kiwi900,hoverColor:o.kiwi900}),warn:a.createElement(r,{svgIcon:n,color:"black",hoverColor:"black"}),alert:a.createElement(r,{svgIcon:l,color:o.cherry500,hoverColor:o.cherry500}),alertLabel:a.createElement(r,{svgIcon:n,color:o.cherry500,hoverColor:o.cherry500}),crisis:a.createElement(r,{svgIcon:l,color:o.banana200,hoverColor:o.banana200})},f=a.forwardRef((function(o,r){var n,l,m=o.children,f=o.variant,v=void 0===f?"info":f,d=o.shadow,h=void 0!==d&&d,b=o.dismissable,u=void 0!==b&&b,E=o.onClick,C=o.label,_=o.fluid,w=void 0!==_&&_,y=o.size,g=o.className,j=o.testId;var k,I=!!C&&!m;return k=a.createElement("div",{ref:r,"data-testid":j,"data-analyticsid":i.NotificationPanel,className:t(c["notification-panel"],y&&c["notification-panel--"+y],c["notification-panel--"+v],(n={},e(n,c["notification-panel--shadow"],!w&&h),e(n,c["notification-panel--has-children"],!I),e(n,c["notification-panel--label-only"],I),e(n,c["notification-panel--dismissable"],!I&&u),n),g)},a.createElement("span",{className:c["notification-panel__icon"]},p["alert"===v&&C&&!m?"alertLabel":v]),a.createElement("section",{"aria-label":function(){if(m){var e="";return a.Children.map(m,(function(a){"string"==typeof a&&(e+=a)})),e}return""}(),className:t(c["notification-panel__content"],(l={},e(l,c["notification-panel__content--crisis"],"crisis"===v),e(l,c["notification-panel__content--alert"],"alert"===v),l))},C&&a.createElement("h1",{className:c["notification-panel__label"],dangerouslySetInnerHTML:{__html:C}}),m),!I&&u&&a.createElement("span",{className:c["notification-panel__close"]},a.createElement(s,{ariaLabel:o.ariaLabelCloseBtn,onClick:E}))),w?a.createElement("div",{className:t(c["fluid-wrapper"],c["fluid-wrapper--"+v],e({},c["fluid-wrapper--shadow"],h))},k):k}));export default f;export{m as variantToColorMap};
1
+ import{b as e}from"../../_rollupPluginBabelHelpers-b8ef6dd9.js";import o from"react";import{c as a}from"../../index-9b84fabc.js";import{p as r}from"../../palette-f206f488.js";import{Icon as t}from"../Icons/Icon.js";import{A as i}from"../../constants-eb74321e.js";import n from"../Icons/InfoSignStroke.js";import l from"../Icons/AlertSignStroke.js";import s from"../Icons/AlertSignFill.js";import c from"./styles.module.scss";import{C as m}from"../../Close-d81081c8.js";import"../../_tslib-51c8a283.js";import"../Icons/X.js";import"../Close/styles.module.scss";import"../../useBreakpoint-552af2b9.js";import"../../grid-11a70eb7.js";var p={info:{color:"kiwi",depth:50},warn:{color:"banana",depth:50},alert:{color:"cherry",depth:100},crisis:{color:"black",depth:0}},f={info:o.createElement(t,{svgIcon:n,color:r.kiwi900,hoverColor:r.kiwi900}),warn:o.createElement(t,{svgIcon:l,color:"black",hoverColor:"black"}),alert:o.createElement(t,{svgIcon:s,color:r.cherry500,hoverColor:r.cherry500}),alertLabel:o.createElement(t,{svgIcon:l,color:r.cherry500,hoverColor:r.cherry500}),crisis:o.createElement(t,{svgIcon:s,color:r.banana200,hoverColor:r.banana200})},d=o.forwardRef((function(r,t){var n,l,s=r.children,p=r.variant,d=void 0===p?"info":p,b=r.shadow,h=void 0!==b&&b,v=r.dismissable,u=void 0!==v&&v,_=r.onClick,I=r.label,j=r.fluid,g=void 0!==j&&j,w=r.size,C=r.className,E=r.testId;var k,y=!!I&&!s;return k=o.createElement("div",{ref:t,"data-testid":E,"data-analyticsid":i.NotificationPanel,className:a(c["notification-panel"],w&&c["notification-panel--"+w],c["notification-panel--"+d],(n={},e(n,c["notification-panel--shadow"],!g&&h),e(n,c["notification-panel--has-children"],!y),e(n,c["notification-panel--label-only"],y),e(n,c["notification-panel--dismissable"],!y&&u),n),C)},o.createElement("span",{className:c["notification-panel__icon"]},f["alert"===d&&I&&!s?"alertLabel":d]),o.createElement("section",{"aria-label":function(){if(s){var e="";return o.Children.map(s,(function(o){"string"==typeof o&&(e+=o)})),e}return""}(),className:a(c["notification-panel__content"],(l={},e(l,c["notification-panel__content--crisis"],"crisis"===d),e(l,c["notification-panel__content--alert"],"alert"===d),l))},I&&o.createElement("h1",{className:c["notification-panel__label"],dangerouslySetInnerHTML:{__html:I}}),s),!y&&u&&o.createElement("span",{className:c["notification-panel__close"]},o.createElement(m,{ariaLabel:r.ariaLabelCloseBtn,onClick:_}))),g?o.createElement("div",{className:a(c["fluid-wrapper"],c["fluid-wrapper--"+d],e({},c["fluid-wrapper--shadow"],h))},k):k}));export default d;export{p as variantToColorMap};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,153 +1,153 @@
1
- @import '../../scss/_spacers.scss';
2
- @import '../../scss/_breakpoints.scss';
3
- @import '../../scss/_font-settings.scss';
4
- @import '../../scss/_palette.scss';
5
- @import '../AnchorLink/styles.module.scss';
6
-
7
- .notification-panel {
8
- $panel: &;
9
- display: flex;
10
- width: inherit;
11
-
12
- &--has-children {
13
- padding: getSpacer(2xs) getSpacer(s) getSpacer(m) getSpacer(2xs);
14
- #{$panel}__icon {
15
- margin-top: getSpacer(2xs);
16
- margin-right: getSpacer(2xs);
17
- }
18
- #{$panel}__content {
19
- margin-top: getSpacer(s);
20
- }
21
- @media (min-width: map-get($grid-breakpoints, md)) {
22
- padding-left: getSpacer(s);
23
- padding-right: getSpacer(m);
24
- #{$panel}__icon {
25
- margin-right: getSpacer(m);
26
- }
27
- }
28
- }
29
- &--label-only {
30
- align-items: center;
31
- padding: getSpacer(m) getSpacer(s) getSpacer(m) getSpacer(2xs);
32
- #{$panel}__icon {
33
- display: flex;
34
- margin-right: getSpacer(2xs);
35
- }
36
- @media (min-width: map-get($grid-breakpoints, md)) {
37
- padding: getSpacer(l) getSpacer(m) getSpacer(l) getSpacer(s);
38
- #{$panel}__icon {
39
- margin-right: getSpacer(s);
40
- }
41
- }
42
- }
43
- &--dismissable {
44
- padding: getSpacer(2xs) getSpacer(2xs) getSpacer(m) getSpacer(2xs);
45
- }
46
- &--dismissable#{&}--has-children {
47
- padding-left: getSpacer(s);
48
- }
49
- &--small {
50
- max-width: map-get($grid-breakpoints, sm);
51
- }
52
- &--medium {
53
- max-width: map-get($grid-breakpoints, md);
54
- }
55
- &--large {
56
- max-width: map-get($grid-breakpoints, lg);
57
- }
58
- &--info {
59
- background-color: $kiwi50;
60
- }
61
- &--warn {
62
- background-color: $banana50;
63
- }
64
- &--alert {
65
- background-color: $cherry100;
66
- }
67
- &--alert#{&}--label-only {
68
- color: $cherry500;
69
- }
70
- &--crisis {
71
- background-color: $black;
72
- }
73
- &--shadow {
74
- box-shadow: 0 0.3rem getSpacer(2xs) -0.1rem rgba(0, 0, 0, 0.15);
75
- }
76
-
77
- &__close {
78
- margin-left: auto;
79
- padding-left: getSpacer(2xs);
80
- }
81
-
82
- &__content {
83
- max-width: 772px;
84
- p {
85
- margin: 0;
86
- }
87
-
88
- a {
89
- @include anchorlink;
90
- @include anchorlink-icon;
91
- }
92
-
93
- &--crisis {
94
- color: $banana200;
95
- a {
96
- color: $white;
97
- &:hover {
98
- background-color: rgba(255, 255, 255, 0.2);
99
- color: $white;
100
- }
101
- &:focus {
102
- background-color: $white;
103
- color: $black;
104
- border-color: $white;
105
- }
106
- &[target='_blank'] {
107
- &:after {
108
- content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='38px' height='38px' viewBox='0 0 48 48' fill='%23bdbab9'><polygon points='33.305,14.659,33.305,29.205,32.005,29.205,32.005,16.948,15.804,33.149,14.885,32.229,31.155,15.959,18.761,15.96,18.761,14.659' /></svg>");
109
- }
110
-
111
- &:focus {
112
- &:after {
113
- content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='38px' height='38px' viewBox='0 0 48 48'><polygon points='33.305,14.659,33.305,29.205,32.005,29.205,32.005,16.948,15.804,33.149,14.885,32.229,31.155,15.959,18.761,15.96,18.761,14.659' /></svg>");
114
- }
115
- }
116
- }
117
- }
118
- }
119
- }
120
-
121
- &__label {
122
- font-size: $font-size-sm;
123
- line-height: $lineheight-size-xs;
124
- font-weight: 600;
125
- margin: 0;
126
- @media (min-width: map-get($grid-breakpoints, md)) {
127
- font-size: $font-size-md;
128
- line-height: $lineheight-size-md;
129
- }
130
- }
131
- }
132
-
133
- .fluid-wrapper {
134
- display: flex;
135
- justify-content: center;
136
- width: 100%;
137
-
138
- &--info {
139
- background-color: $kiwi50;
140
- }
141
- &--warn {
142
- background-color: $banana50;
143
- }
144
- &--alert {
145
- background-color: $cherry100;
146
- }
147
- &--crisis {
148
- background-color: $black;
149
- }
150
- &--shadow {
151
- box-shadow: 0 0.3rem getSpacer(2xs) -0.1rem rgba(0, 0, 0, 0.15);
152
- }
153
- }
1
+ @import '../../scss/_spacers.scss';
2
+ @import '../../scss/_breakpoints.scss';
3
+ @import '../../scss/_font-settings.scss';
4
+ @import '../../scss/_palette.scss';
5
+ @import '../AnchorLink/styles.module.scss';
6
+
7
+ .notification-panel {
8
+ $panel: &;
9
+ display: flex;
10
+ width: inherit;
11
+
12
+ &--has-children {
13
+ padding: getSpacer(2xs) getSpacer(s) getSpacer(m) getSpacer(2xs);
14
+ #{$panel}__icon {
15
+ margin-top: getSpacer(2xs);
16
+ margin-right: getSpacer(2xs);
17
+ }
18
+ #{$panel}__content {
19
+ margin-top: getSpacer(s);
20
+ }
21
+ @media (min-width: map-get($grid-breakpoints, md)) {
22
+ padding-left: getSpacer(s);
23
+ padding-right: getSpacer(m);
24
+ #{$panel}__icon {
25
+ margin-right: getSpacer(m);
26
+ }
27
+ }
28
+ }
29
+ &--label-only {
30
+ align-items: center;
31
+ padding: getSpacer(m) getSpacer(s) getSpacer(m) getSpacer(2xs);
32
+ #{$panel}__icon {
33
+ display: flex;
34
+ margin-right: getSpacer(2xs);
35
+ }
36
+ @media (min-width: map-get($grid-breakpoints, md)) {
37
+ padding: getSpacer(l) getSpacer(m) getSpacer(l) getSpacer(s);
38
+ #{$panel}__icon {
39
+ margin-right: getSpacer(s);
40
+ }
41
+ }
42
+ }
43
+ &--dismissable {
44
+ padding: getSpacer(2xs) getSpacer(2xs) getSpacer(m) getSpacer(2xs);
45
+ }
46
+ &--dismissable#{&}--has-children {
47
+ padding-left: getSpacer(s);
48
+ }
49
+ &--small {
50
+ max-width: map-get($grid-breakpoints, sm);
51
+ }
52
+ &--medium {
53
+ max-width: map-get($grid-breakpoints, md);
54
+ }
55
+ &--large {
56
+ max-width: map-get($grid-breakpoints, lg);
57
+ }
58
+ &--info {
59
+ background-color: $kiwi50;
60
+ }
61
+ &--warn {
62
+ background-color: $banana50;
63
+ }
64
+ &--alert {
65
+ background-color: $cherry100;
66
+ }
67
+ &--alert#{&}--label-only {
68
+ color: $cherry500;
69
+ }
70
+ &--crisis {
71
+ background-color: $black;
72
+ }
73
+ &--shadow {
74
+ box-shadow: 0 0.3rem getSpacer(2xs) -0.1rem rgba(0, 0, 0, 0.15);
75
+ }
76
+
77
+ &__close {
78
+ margin-left: auto;
79
+ padding-left: getSpacer(2xs);
80
+ }
81
+
82
+ &__content {
83
+ max-width: 772px;
84
+ p {
85
+ margin: 0;
86
+ }
87
+
88
+ a {
89
+ @include anchorlink;
90
+ @include anchorlink-icon;
91
+ }
92
+
93
+ &--crisis {
94
+ color: $banana200;
95
+ a {
96
+ color: $white;
97
+ &:hover {
98
+ background-color: rgba(255, 255, 255, 0.2);
99
+ color: $white;
100
+ }
101
+ &:focus {
102
+ background-color: $white;
103
+ color: $black;
104
+ border-color: $white;
105
+ }
106
+ &[target='_blank'] {
107
+ &:after {
108
+ content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='38px' height='38px' viewBox='0 0 48 48' fill='%23bdbab9'><polygon points='33.305,14.659,33.305,29.205,32.005,29.205,32.005,16.948,15.804,33.149,14.885,32.229,31.155,15.959,18.761,15.96,18.761,14.659' /></svg>");
109
+ }
110
+
111
+ &:focus {
112
+ &:after {
113
+ content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='38px' height='38px' viewBox='0 0 48 48'><polygon points='33.305,14.659,33.305,29.205,32.005,29.205,32.005,16.948,15.804,33.149,14.885,32.229,31.155,15.959,18.761,15.96,18.761,14.659' /></svg>");
114
+ }
115
+ }
116
+ }
117
+ }
118
+ }
119
+ }
120
+
121
+ &__label {
122
+ font-size: $font-size-sm;
123
+ line-height: $lineheight-size-xs;
124
+ font-weight: 600;
125
+ margin: 0;
126
+ @media (min-width: map-get($grid-breakpoints, md)) {
127
+ font-size: $font-size-md;
128
+ line-height: $lineheight-size-md;
129
+ }
130
+ }
131
+ }
132
+
133
+ .fluid-wrapper {
134
+ display: flex;
135
+ justify-content: center;
136
+ width: 100%;
137
+
138
+ &--info {
139
+ background-color: $kiwi50;
140
+ }
141
+ &--warn {
142
+ background-color: $banana50;
143
+ }
144
+ &--alert {
145
+ background-color: $cherry100;
146
+ }
147
+ &--crisis {
148
+ background-color: $black;
149
+ }
150
+ &--shadow {
151
+ box-shadow: 0 0.3rem getSpacer(2xs) -0.1rem rgba(0, 0, 0, 0.15);
152
+ }
153
+ }
@@ -1,33 +1,33 @@
1
- export type Styles = {
2
- anchorlink: string;
3
- anchorlink__icon: string;
4
- 'fluid-wrapper': string;
5
- 'fluid-wrapper--alert': string;
6
- 'fluid-wrapper--crisis': string;
7
- 'fluid-wrapper--info': string;
8
- 'fluid-wrapper--shadow': string;
9
- 'fluid-wrapper--warn': string;
10
- 'notification-panel': string;
11
- 'notification-panel__close': string;
12
- 'notification-panel__content': string;
13
- 'notification-panel__content--crisis': string;
14
- 'notification-panel__icon': string;
15
- 'notification-panel__label': string;
16
- 'notification-panel--alert': string;
17
- 'notification-panel--crisis': string;
18
- 'notification-panel--dismissable': string;
19
- 'notification-panel--has-children': string;
20
- 'notification-panel--info': string;
21
- 'notification-panel--label-only': string;
22
- 'notification-panel--large': string;
23
- 'notification-panel--medium': string;
24
- 'notification-panel--shadow': string;
25
- 'notification-panel--small': string;
26
- 'notification-panel--warn': string;
27
- };
28
-
29
- export type ClassNames = keyof Styles;
30
-
31
- declare const styles: Styles;
32
-
33
- export default styles;
1
+ export type Styles = {
2
+ anchorlink: string;
3
+ anchorlink__icon: string;
4
+ 'fluid-wrapper': string;
5
+ 'fluid-wrapper--alert': string;
6
+ 'fluid-wrapper--crisis': string;
7
+ 'fluid-wrapper--info': string;
8
+ 'fluid-wrapper--shadow': string;
9
+ 'fluid-wrapper--warn': string;
10
+ 'notification-panel': string;
11
+ 'notification-panel__close': string;
12
+ 'notification-panel__content': string;
13
+ 'notification-panel__content--crisis': string;
14
+ 'notification-panel__icon': string;
15
+ 'notification-panel__label': string;
16
+ 'notification-panel--alert': string;
17
+ 'notification-panel--crisis': string;
18
+ 'notification-panel--dismissable': string;
19
+ 'notification-panel--has-children': string;
20
+ 'notification-panel--info': string;
21
+ 'notification-panel--label-only': string;
22
+ 'notification-panel--large': string;
23
+ 'notification-panel--medium': string;
24
+ 'notification-panel--shadow': string;
25
+ 'notification-panel--small': string;
26
+ 'notification-panel--warn': string;
27
+ };
28
+
29
+ export type ClassNames = keyof Styles;
30
+
31
+ declare const styles: Styles;
32
+
33
+ export default styles;
@@ -1,13 +1,13 @@
1
- import React from 'react';
2
- export interface PortalProps {
3
- /** Add custom class to portal, default class is portal-container */
4
- className?: string;
5
- /** Content to be displayed in Portal */
6
- children?: React.ReactNode;
7
- /** Default is document.body */
8
- parent?: HTMLElement;
9
- /** Sets the data-testid attribute. */
10
- testId?: string;
11
- }
12
- export default function Portal({ children, parent, className, testId }: PortalProps): React.ReactPortal;
1
+ import React from 'react';
2
+ export interface PortalProps {
3
+ /** Add custom class to portal, default class is portal-container */
4
+ className?: string;
5
+ /** Content to be displayed in Portal */
6
+ children?: React.ReactNode;
7
+ /** Default is document.body */
8
+ parent?: HTMLElement;
9
+ /** Sets the data-testid attribute. */
10
+ testId?: string;
11
+ }
12
+ export default function Portal({ children, parent, className, testId }: PortalProps): React.ReactPortal;
13
13
  //# sourceMappingURL=index.d.ts.map
@@ -1,31 +1,31 @@
1
- import React from 'react';
2
- import { FormMode, FormVariant } from '../../constants';
3
- export interface RadioButtonProps {
4
- /** Adds custom classes to the element. */
5
- className?: string;
6
- /** Sets radioButton as checked by default */
7
- defaultChecked?: boolean;
8
- /** Disables the radioButton */
9
- disabled?: boolean;
10
- /** The label text next to the radioButton */
11
- label: string;
12
- /** input id of the radioButton */
13
- inputId?: string;
14
- /** Changes the visuals of the radioButton */
15
- mode?: keyof typeof FormMode;
16
- /** Unique identifyer for the input tag */
17
- name?: string;
18
- /** Return value for the radioButton */
19
- value?: string;
20
- /** Changes the visuals of the radioButton */
21
- variant?: keyof typeof FormVariant;
22
- /** Activates Error style for the radioButton - This is can be true while errorText is empty, when in a FormGroup */
23
- error?: boolean;
24
- /** Error text to show above the component */
25
- errorText?: string;
26
- /** Sets the data-testid attribute. */
27
- testId?: string;
28
- }
29
- export declare const RadioButton: React.ForwardRefExoticComponent<RadioButtonProps & React.RefAttributes<HTMLInputElement>>;
30
- export default RadioButton;
1
+ import React from 'react';
2
+ import { FormMode, FormVariant } from '../../constants';
3
+ export interface RadioButtonProps {
4
+ /** Adds custom classes to the element. */
5
+ className?: string;
6
+ /** Sets radioButton as checked by default */
7
+ defaultChecked?: boolean;
8
+ /** Disables the radioButton */
9
+ disabled?: boolean;
10
+ /** The label text next to the radioButton */
11
+ label: string;
12
+ /** input id of the radioButton */
13
+ inputId?: string;
14
+ /** Changes the visuals of the radioButton */
15
+ mode?: keyof typeof FormMode;
16
+ /** Unique identifyer for the input tag */
17
+ name?: string;
18
+ /** Return value for the radioButton */
19
+ value?: string;
20
+ /** Changes the visuals of the radioButton */
21
+ variant?: keyof typeof FormVariant;
22
+ /** Activates Error style for the radioButton - This is can be true while errorText is empty, when in a FormGroup */
23
+ error?: boolean;
24
+ /** Error text to show above the component */
25
+ errorText?: string;
26
+ /** Sets the data-testid attribute. */
27
+ testId?: string;
28
+ }
29
+ export declare const RadioButton: React.ForwardRefExoticComponent<RadioButtonProps & React.RefAttributes<HTMLInputElement>>;
30
+ export default RadioButton;
31
31
  //# sourceMappingURL=RadioButton.d.ts.map
@@ -1,4 +1,4 @@
1
- import RadioButton from './RadioButton';
2
- export * from './RadioButton';
3
- export default RadioButton;
1
+ import RadioButton from './RadioButton';
2
+ export * from './RadioButton';
3
+ export default RadioButton;
4
4
  //# sourceMappingURL=index.d.ts.map