@helsenorge/designsystem-react 1.0.0-beta123 → 1.0.0-beta126

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 (416) hide show
  1. package/Badge-9dc33042.js +2 -0
  2. package/Badge-9dc33042.js.map +1 -0
  3. package/{Button-9f2ce63d.js → Button-438a02c1.js} +2 -2
  4. package/Button-438a02c1.js.map +1 -0
  5. package/{Checkbox-1e2c2047.js → Checkbox-40365d70.js} +2 -2
  6. package/Checkbox-40365d70.js.map +1 -0
  7. package/Close-df5087c3.js +2 -0
  8. package/Close-df5087c3.js.map +1 -0
  9. package/FormGroup-97ca00ea.js +2 -0
  10. package/FormGroup-97ca00ea.js.map +1 -0
  11. package/FormLayout-d6b786db.js +2 -0
  12. package/FormLayout-d6b786db.js.map +1 -0
  13. package/{Input-5bb47387.js → Input-58069d29.js} +2 -2
  14. package/Input-58069d29.js.map +1 -0
  15. package/{Loader-670979af.js → Loader-79187de4.js} +2 -2
  16. package/Loader-79187de4.js.map +1 -0
  17. package/{Modal-10c837a4.js → Modal-4a92001a.js} +2 -2
  18. package/Modal-4a92001a.js.map +1 -0
  19. package/{Panel-3ada0789.js → Panel-f36456da.js} +2 -2
  20. package/Panel-f36456da.js.map +1 -0
  21. package/{RadioButton-71099f5c.js → RadioButton-692ed90a.js} +2 -2
  22. package/RadioButton-692ed90a.js.map +1 -0
  23. package/{Textarea-e1e649cf.js → Textarea-f2b34d54.js} +2 -2
  24. package/Textarea-f2b34d54.js.map +1 -0
  25. package/{Title-3a6d4597.js → Title-face7728.js} +2 -2
  26. package/Title-face7728.js.map +1 -0
  27. package/{Validation-5d79f53e.js → Validation-f34d539c.js} +2 -2
  28. package/Validation-f34d539c.js.map +1 -0
  29. package/__mocks__/IntersectionObserver.js +1 -1
  30. package/__mocks__/ResizeObserver.js +1 -1
  31. package/__mocks__/useLayoutEvent.d.ts +1 -0
  32. package/__mocks__/useLayoutEvent.d.ts.map +1 -0
  33. package/__mocks__/useLayoutEvent.js +2 -0
  34. package/__mocks__/useLayoutEvent.js.map +1 -0
  35. package/_rollupPluginBabelHelpers-0f007973.js +2 -0
  36. package/_rollupPluginBabelHelpers-0f007973.js.map +1 -0
  37. package/components/AnchorLink/index.js +1 -1
  38. package/components/Avatar/index.js +1 -1
  39. package/components/Badge/index.js +1 -1
  40. package/components/Button/index.js +1 -1
  41. package/components/Button/styles.module.scss +29 -6
  42. package/components/ButtonWithModal/index.js +1 -1
  43. package/components/Checkbox/index.js +1 -1
  44. package/components/Close/index.js +1 -1
  45. package/components/Dropdown/Dropdown.d.ts +1 -1
  46. package/components/Dropdown/componentdata.json +2 -2
  47. package/components/Dropdown/index.js +1 -1
  48. package/components/Dropdown/styles.module.scss +1 -0
  49. package/components/Expander/index.js +1 -1
  50. package/components/ExpanderList/ExpanderList.d.ts.map +1 -1
  51. package/components/ExpanderList/index.js +1 -1
  52. package/components/FormExample/index.js +1 -1
  53. package/components/FormExample/index.js.map +1 -1
  54. package/components/FormGroup/index.js +1 -1
  55. package/components/FormLayout/FormLayout.d.ts.map +1 -1
  56. package/components/FormLayout/index.js +1 -1
  57. package/components/FormLayout/styles.module.scss +16 -11
  58. package/components/FormLayout/styles.module.scss.d.ts +5 -4
  59. package/components/HighlightBox/index.js +1 -1
  60. package/components/Icons/ActiveMonitoring.js +1 -1
  61. package/components/Icons/AcupunctureBack.js +1 -1
  62. package/components/Icons/AdditionalIconInformation.js.map +1 -1
  63. package/components/Icons/AlarmClock.js +1 -1
  64. package/components/Icons/AlertSignFill.js +1 -1
  65. package/components/Icons/AlertSignStroke.js +1 -1
  66. package/components/Icons/Amputation.js +1 -1
  67. package/components/Icons/Anxiety.js +1 -1
  68. package/components/Icons/Apple.js +1 -1
  69. package/components/Icons/Archive.js +1 -1
  70. package/components/Icons/ArmFlexing.js +1 -1
  71. package/components/Icons/ArrowLeft.js +1 -1
  72. package/components/Icons/ArrowRight.js +1 -1
  73. package/components/Icons/ArrowUpRight.js +1 -1
  74. package/components/Icons/Attachment.js +1 -1
  75. package/components/Icons/Atv.js +1 -1
  76. package/components/Icons/Avatar.js +1 -1
  77. package/components/Icons/AwakePersonOnPillow.js +1 -1
  78. package/components/Icons/Baby.js +1 -1
  79. package/components/Icons/BandAid.js +1 -1
  80. package/components/Icons/BeerAndPills.js +1 -1
  81. package/components/Icons/Bell.js +1 -1
  82. package/components/Icons/Bike.js +1 -1
  83. package/components/Icons/BirthControl.js +1 -1
  84. package/components/Icons/BirthdayCake.js +1 -1
  85. package/components/Icons/Boat.js +1 -1
  86. package/components/Icons/Body.js +1 -1
  87. package/components/Icons/Brain.js +1 -1
  88. package/components/Icons/BreastReconstruction.js +1 -1
  89. package/components/Icons/BreastRemoval.js +1 -1
  90. package/components/Icons/Breasts.js +1 -1
  91. package/components/Icons/BrokenHeart.js +1 -1
  92. package/components/Icons/BrokenPuzzle.js +1 -1
  93. package/components/Icons/Bus.js +1 -1
  94. package/components/Icons/Calendar.js +1 -1
  95. package/components/Icons/CalendarChange.js +1 -1
  96. package/components/Icons/CalendarCheck.js +1 -1
  97. package/components/Icons/CalendarEvent.js +1 -1
  98. package/components/Icons/CalendarSave.js +1 -1
  99. package/components/Icons/Cancer.js +1 -1
  100. package/components/Icons/Car.js +1 -1
  101. package/components/Icons/Change.js +1 -1
  102. package/components/Icons/Check.js +1 -1
  103. package/components/Icons/CheckFill.js +1 -1
  104. package/components/Icons/CheckOutline.js +1 -1
  105. package/components/Icons/Chest.js +1 -1
  106. package/components/Icons/ChevronDown.js +1 -1
  107. package/components/Icons/ChevronLeft.js +1 -1
  108. package/components/Icons/ChevronRight.js +1 -1
  109. package/components/Icons/ChevronUp.js +1 -1
  110. package/components/Icons/ChevronsDown.js +1 -1
  111. package/components/Icons/ChevronsUp.js +1 -1
  112. package/components/Icons/ChildPlaying.js +1 -1
  113. package/components/Icons/Cigarette.js +1 -1
  114. package/components/Icons/Contacts.js +1 -1
  115. package/components/Icons/Copy.js +1 -1
  116. package/components/Icons/CoronaCertificate.js +1 -1
  117. package/components/Icons/Coronavirus.js +1 -1
  118. package/components/Icons/Cough.js +1 -1
  119. package/components/Icons/CriticalHealthInfo.js +1 -1
  120. package/components/Icons/Cross.js +1 -1
  121. package/components/Icons/DataExchange.js +1 -1
  122. package/components/Icons/DataReceived.js +1 -1
  123. package/components/Icons/DataSent.js +1 -1
  124. package/components/Icons/Depression.js +1 -1
  125. package/components/Icons/DigestiveSystem.js +1 -1
  126. package/components/Icons/Dizzy.js +1 -1
  127. package/components/Icons/Documents.js +1 -1
  128. package/components/Icons/Dog.js +1 -1
  129. package/components/Icons/DonorCard.js +1 -1
  130. package/components/Icons/Download.js +1 -1
  131. package/components/Icons/Draft.js +1 -1
  132. package/components/Icons/EChat.js +1 -1
  133. package/components/Icons/EarNoseThroat.js +1 -1
  134. package/components/Icons/ElderlyPerson.js +1 -1
  135. package/components/Icons/Embolization.js +1 -1
  136. package/components/Icons/EnterFullScreen.js +1 -1
  137. package/components/Icons/Envelope.js +1 -1
  138. package/components/Icons/Epilepsy.js +1 -1
  139. package/components/Icons/Eraser.js +1 -1
  140. package/components/Icons/ErrorSignFill.js +1 -1
  141. package/components/Icons/ErrorSignStroke.js +1 -1
  142. package/components/Icons/EuropeanHealthCard.js +1 -1
  143. package/components/Icons/ExitFullScreen.js +1 -1
  144. package/components/Icons/Eye.js +1 -1
  145. package/components/Icons/Facebook.js +1 -1
  146. package/components/Icons/Female.js +1 -1
  147. package/components/Icons/FemaleDoctor.js +1 -1
  148. package/components/Icons/Ferry.js +1 -1
  149. package/components/Icons/FingerBleed.js +1 -1
  150. package/components/Icons/FirstAidKit.js +1 -1
  151. package/components/Icons/FloppyDisk.js +1 -1
  152. package/components/Icons/Football.js +1 -1
  153. package/components/Icons/Form.js +1 -1
  154. package/components/Icons/Forward.js +1 -1
  155. package/components/Icons/Gallery.js +1 -1
  156. package/components/Icons/Garden.js +1 -1
  157. package/components/Icons/GasCan.js +1 -1
  158. package/components/Icons/GenderIdentity.js +1 -1
  159. package/components/Icons/Globe.js +1 -1
  160. package/components/Icons/Group.js +1 -1
  161. package/components/Icons/HandWaving.js +1 -1
  162. package/components/Icons/HandWithDisease.js +1 -1
  163. package/components/Icons/HealthClinic.js +1 -1
  164. package/components/Icons/HealthWarning.js +1 -1
  165. package/components/Icons/Heart.js +1 -1
  166. package/components/Icons/HelpSign.js +1 -1
  167. package/components/Icons/HelpingHand.js +1 -1
  168. package/components/Icons/Hemodialysis.js +1 -1
  169. package/components/Icons/Hiker.js +1 -1
  170. package/components/Icons/Hipprosthesis.js +1 -1
  171. package/components/Icons/History.js +1 -1
  172. package/components/Icons/HivAndAids.js +1 -1
  173. package/components/Icons/Home.js +1 -1
  174. package/components/Icons/Hormone.js +1 -1
  175. package/components/Icons/Hospital.js +1 -1
  176. package/components/Icons/Hourglass.js +1 -1
  177. package/components/Icons/Icon.js +1 -1
  178. package/components/Icons/ImgFile.js +1 -1
  179. package/components/Icons/Inbox.js +1 -1
  180. package/components/Icons/InfoSignFill.js +1 -1
  181. package/components/Icons/InfoSignStroke.js +1 -1
  182. package/components/Icons/Instagram.js +1 -1
  183. package/components/Icons/Intravenous.js +1 -1
  184. package/components/Icons/JointPain.js +1 -1
  185. package/components/Icons/Journal.js +1 -1
  186. package/components/Icons/JpgFile.js +1 -1
  187. package/components/Icons/Kidney.js +1 -1
  188. package/components/Icons/KitchenScale.js +1 -1
  189. package/components/Icons/Kjernejournal.js +1 -1
  190. package/components/Icons/Laboratory.js +1 -1
  191. package/components/Icons/LaptopBlog.js +1 -1
  192. package/components/Icons/LawBook.js +1 -1
  193. package/components/Icons/LightBulb.js +1 -1
  194. package/components/Icons/List.js +1 -1
  195. package/components/Icons/Location.js +1 -1
  196. package/components/Icons/Lock.js +1 -1
  197. package/components/Icons/Lungs.js +1 -1
  198. package/components/Icons/Makeup.js +1 -1
  199. package/components/Icons/MaleDoctor.js +1 -1
  200. package/components/Icons/MaleDoctorAndPerson.js +1 -1
  201. package/components/Icons/MaleGenitalia.js +1 -1
  202. package/components/Icons/Medicine.js +1 -1
  203. package/components/Icons/MedicineWarning.js +1 -1
  204. package/components/Icons/MentalHealthAdult.js +1 -1
  205. package/components/Icons/MentalHealthChild.js +1 -1
  206. package/components/Icons/Menu.js +1 -1
  207. package/components/Icons/Microscope.js +1 -1
  208. package/components/Icons/Minus.js +1 -1
  209. package/components/Icons/Mirror.js +1 -1
  210. package/components/Icons/MobilePhone.js +1 -1
  211. package/components/Icons/MotherHoldingBaby.js +1 -1
  212. package/components/Icons/MuscleBack.js +1 -1
  213. package/components/Icons/MuscleLeg.js +1 -1
  214. package/components/Icons/Mushroom.js +1 -1
  215. package/components/Icons/Music.js +1 -1
  216. package/components/Icons/MusselsAndSalt.js +1 -1
  217. package/components/Icons/NoEye.js +1 -1
  218. package/components/Icons/NoFilter.js +1 -1
  219. package/components/Icons/Notepad.js +1 -1
  220. package/components/Icons/Osteotomy.js +1 -1
  221. package/components/Icons/PaintRoller.js +1 -1
  222. package/components/Icons/PaperPlane.js +1 -1
  223. package/components/Icons/PatientAndPerson.js +1 -1
  224. package/components/Icons/Pause.js +1 -1
  225. package/components/Icons/PdfFile.js +1 -1
  226. package/components/Icons/Pencil.js +1 -1
  227. package/components/Icons/PeopleTalking.js +1 -1
  228. package/components/Icons/Peritonealdialysis.js +1 -1
  229. package/components/Icons/Person.js +1 -1
  230. package/components/Icons/PersonAndPatient.js +1 -1
  231. package/components/Icons/PersonInXRayMachine.js +1 -1
  232. package/components/Icons/PersonOverweight.js +1 -1
  233. package/components/Icons/PersonRelaxing.js +1 -1
  234. package/components/Icons/PersonWithBrain.js +1 -1
  235. package/components/Icons/PersonWithBrokenArm.js +1 -1
  236. package/components/Icons/PersonWithCrutches.js +1 -1
  237. package/components/Icons/PersonWithJaw.js +1 -1
  238. package/components/Icons/PersonWithMagnifyingGlass.js +1 -1
  239. package/components/Icons/PersonWithSenses.js +1 -1
  240. package/components/Icons/PersonWorking.js +1 -1
  241. package/components/Icons/PizzaSlice.js +1 -1
  242. package/components/Icons/Plane.js +1 -1
  243. package/components/Icons/Plant.js +1 -1
  244. package/components/Icons/Play.js +1 -1
  245. package/components/Icons/PlusLarge.js +1 -1
  246. package/components/Icons/PlusSmall.js +1 -1
  247. package/components/Icons/PngFile.js +1 -1
  248. package/components/Icons/Podcast.js +1 -1
  249. package/components/Icons/PoisonInformation.js +1 -1
  250. package/components/Icons/Pregnant.js +1 -1
  251. package/components/Icons/Printer.js +1 -1
  252. package/components/Icons/Psychosis.js +1 -1
  253. package/components/Icons/Publication.js +1 -1
  254. package/components/Icons/Puzzle.js +1 -1
  255. package/components/Icons/QrCode.js +1 -1
  256. package/components/Icons/Quarrel.js +1 -1
  257. package/components/Icons/RadioTherapy.js +1 -1
  258. package/components/Icons/RadioactiveTreatment.js +1 -1
  259. package/components/Icons/Radioiodine.js +1 -1
  260. package/components/Icons/Receipt.js +1 -1
  261. package/components/Icons/Receptionist.js +1 -1
  262. package/components/Icons/Recovery.js +1 -1
  263. package/components/Icons/Referral.js +1 -1
  264. package/components/Icons/Refresh.js +1 -1
  265. package/components/Icons/Refund.js +1 -1
  266. package/components/Icons/Reply.js +1 -1
  267. package/components/Icons/Rocket.js +1 -1
  268. package/components/Icons/RtfFile.js +1 -1
  269. package/components/Icons/STDs.js +1 -1
  270. package/components/Icons/Save.js +1 -1
  271. package/components/Icons/Scale.js +1 -1
  272. package/components/Icons/Search.js +1 -1
  273. package/components/Icons/SectionSign.js +1 -1
  274. package/components/Icons/Settings.js +1 -1
  275. package/components/Icons/Sexualorientation.js +1 -1
  276. package/components/Icons/ShakingHand.js +1 -1
  277. package/components/Icons/Share.js +1 -1
  278. package/components/Icons/Shield.js +1 -1
  279. package/components/Icons/ShuntOperation.js +1 -1
  280. package/components/Icons/Skeleton.js +1 -1
  281. package/components/Icons/Skin.js +1 -1
  282. package/components/Icons/Snake.js +1 -1
  283. package/components/Icons/Snapchat.js +1 -1
  284. package/components/Icons/SpeechBubble.js +1 -1
  285. package/components/Icons/Spray.js +1 -1
  286. package/components/Icons/Stopwatch.js +1 -1
  287. package/components/Icons/SupportingPerson.js +1 -1
  288. package/components/Icons/Surgery.js +1 -1
  289. package/components/Icons/Syringe.js +1 -1
  290. package/components/Icons/Taxi.js +1 -1
  291. package/components/Icons/TeddyBear.js +1 -1
  292. package/components/Icons/Teenagers.js +1 -1
  293. package/components/Icons/ThinkingAboutBaby.js +1 -1
  294. package/components/Icons/Ticket.js +1 -1
  295. package/components/Icons/TimePassing.js +1 -1
  296. package/components/Icons/Toolbox.js +1 -1
  297. package/components/Icons/Tooth.js +1 -1
  298. package/components/Icons/TotalKneeProsthesis.js +1 -1
  299. package/components/Icons/Train.js +1 -1
  300. package/components/Icons/Transplantation.js +1 -1
  301. package/components/Icons/TrashCan.js +1 -1
  302. package/components/Icons/Twitter.js +1 -1
  303. package/components/Icons/Undo.js +1 -1
  304. package/components/Icons/UniProsthesis.js +1 -1
  305. package/components/Icons/Upload.js +1 -1
  306. package/components/Icons/UserOrganization.js +1 -1
  307. package/components/Icons/Vaccine.js +1 -1
  308. package/components/Icons/VerticalDots.js +1 -1
  309. package/components/Icons/VideoCamera.js +1 -1
  310. package/components/Icons/VideoChat.js +1 -1
  311. package/components/Icons/Wallet.js +1 -1
  312. package/components/Icons/Watch.js +1 -1
  313. package/components/Icons/Website.js +1 -1
  314. package/components/Icons/Wheelchair.js +1 -1
  315. package/components/Icons/WheelchairActive.js +1 -1
  316. package/components/Icons/Window.js +1 -1
  317. package/components/Icons/WordDocument.js +1 -1
  318. package/components/Icons/WorkSuitcase.js +1 -1
  319. package/components/Icons/X.js +1 -1
  320. package/components/Icons/XOutline.js +1 -1
  321. package/components/Icons/XmlFile.js +1 -1
  322. package/components/Icons/YouTube.js +1 -1
  323. package/components/Icons/Zoom.js +1 -1
  324. package/components/Icons/index.js +1 -1
  325. package/components/Input/index.js +1 -1
  326. package/components/LinkList/index.js +1 -1
  327. package/components/List/index.js +1 -1
  328. package/components/Loader/index.js +1 -1
  329. package/components/Logo/index.js +1 -1
  330. package/components/Modal/index.js +1 -1
  331. package/components/NotificationPanel/index.js +1 -1
  332. package/components/Panel/index.js +1 -1
  333. package/components/PanelList/index.js +1 -1
  334. package/components/Portal/index.js +1 -1
  335. package/components/RadioButton/index.js +1 -1
  336. package/components/Slider/index.js +1 -1
  337. package/components/Spacer/index.js +1 -1
  338. package/components/StatusDot/index.js +1 -1
  339. package/components/Tag/Tag.d.ts +35 -0
  340. package/components/Tag/Tag.d.ts.map +1 -0
  341. package/components/Tag/componentdata.json +223 -0
  342. package/components/Tag/index.d.ts +4 -0
  343. package/components/Tag/index.d.ts.map +1 -0
  344. package/components/Tag/index.js +2 -0
  345. package/components/Tag/index.js.map +1 -0
  346. package/components/Tag/styles.module.scss +175 -0
  347. package/components/Tag/styles.module.scss.d.ts +24 -0
  348. package/components/TagList/TagList.d.ts +8 -0
  349. package/components/TagList/TagList.d.ts.map +1 -0
  350. package/components/TagList/componentdata.json +23 -0
  351. package/components/TagList/index.d.ts +4 -0
  352. package/components/TagList/index.d.ts.map +1 -0
  353. package/components/TagList/index.js +2 -0
  354. package/components/TagList/index.js.map +1 -0
  355. package/components/TagList/styles.module.scss +10 -0
  356. package/components/TagList/styles.module.scss.d.ts +9 -0
  357. package/components/Textarea/index.js +1 -1
  358. package/components/Tile/index.js +1 -1
  359. package/components/Title/index.js +1 -1
  360. package/components/Validation/index.js +1 -1
  361. package/constants-088e1d4a.js +2 -0
  362. package/constants-088e1d4a.js.map +1 -0
  363. package/constants.d.ts +2 -0
  364. package/constants.d.ts.map +1 -1
  365. package/hoc/withBreakpoint/index.js +1 -1
  366. package/index-b4162bbf.js +8 -0
  367. package/index-b4162bbf.js.map +1 -0
  368. package/index.js +1 -1
  369. package/package.json +7 -6
  370. package/scss/typography.module.scss.d.ts +25 -25
  371. package/{useBreakpoint-6eb418f7.js → useBreakpoint-a74f5af5.js} +2 -2
  372. package/useBreakpoint-a74f5af5.js.map +1 -0
  373. package/useHover-b995a0e6.js +2 -0
  374. package/useHover-b995a0e6.js.map +1 -0
  375. package/{useIsVisible-fad4d769.js → useIsVisible-bef05e5e.js} +2 -2
  376. package/useIsVisible-bef05e5e.js.map +1 -0
  377. package/useOutsideEvent-fb86686d.js +2 -0
  378. package/useOutsideEvent-fb86686d.js.map +1 -0
  379. package/{useSticky-807e5dde.js → useSticky-29a434c1.js} +2 -2
  380. package/useSticky-29a434c1.js.map +1 -0
  381. package/useUuid-3b1e73f2.js +2 -0
  382. package/useUuid-3b1e73f2.js.map +1 -0
  383. package/{useWindowSize-5cc481da.js → useWindowSize-030df49b.js} +2 -2
  384. package/useWindowSize-030df49b.js.map +1 -0
  385. package/Badge-32ba89d5.js +0 -2
  386. package/Badge-32ba89d5.js.map +0 -1
  387. package/Button-9f2ce63d.js.map +0 -1
  388. package/Checkbox-1e2c2047.js.map +0 -1
  389. package/Close-f197bf98.js +0 -2
  390. package/Close-f197bf98.js.map +0 -1
  391. package/FormGroup-157f9e03.js +0 -2
  392. package/FormGroup-157f9e03.js.map +0 -1
  393. package/FormLayout-a3d440c1.js +0 -2
  394. package/FormLayout-a3d440c1.js.map +0 -1
  395. package/Input-5bb47387.js.map +0 -1
  396. package/Loader-670979af.js.map +0 -1
  397. package/Modal-10c837a4.js.map +0 -1
  398. package/Panel-3ada0789.js.map +0 -1
  399. package/RadioButton-71099f5c.js.map +0 -1
  400. package/Textarea-e1e649cf.js.map +0 -1
  401. package/Title-3a6d4597.js.map +0 -1
  402. package/Validation-5d79f53e.js.map +0 -1
  403. package/_rollupPluginBabelHelpers-4f206abf.js +0 -2
  404. package/_rollupPluginBabelHelpers-4f206abf.js.map +0 -1
  405. package/constants-9528513d.js +0 -2
  406. package/constants-9528513d.js.map +0 -1
  407. package/index-9b84fabc.js +0 -8
  408. package/index-9b84fabc.js.map +0 -1
  409. package/useBreakpoint-6eb418f7.js.map +0 -1
  410. package/useHover-026f72c1.js +0 -2
  411. package/useHover-026f72c1.js.map +0 -1
  412. package/useIsVisible-fad4d769.js.map +0 -1
  413. package/useSticky-807e5dde.js.map +0 -1
  414. package/useUuid-1ecdf8e8.js +0 -2
  415. package/useUuid-1ecdf8e8.js.map +0 -1
  416. package/useWindowSize-5cc481da.js.map +0 -1
@@ -0,0 +1,2 @@
1
+ import{d as o}from"../../_rollupPluginBabelHelpers-0f007973.js";import t from"react";import{c as a}from"../../index-b4162bbf.js";import{Icon as e}from"../Icons/Icon.js";import{A as r,I as n}from"../../constants-088e1d4a.js";import{p as c}from"../../palette-f206f488.js";import s from"./styles.module.scss";import{u as i}from"../../useHover-b995a0e6.js";import m from"../Icons/Undo.js";import l from"../Icons/X.js";import"../../_tslib-51c8a283.js";var d,u,f;!function(o){o.medium="medium",o.large="large"}(d||(d={})),function(o){o.remove="remove",o.undo="undo"}(u||(u={})),function(o){o.normal="normal",o.oncolor="oncolor",o.emphasised="emphasised"}(f||(f={}));var v=function(o){var d=o.children,u=o.size,f=o.color,v=o.variant,g=o.action,p=o.onClick,b=o.testId,I=i(),j=I.hoverRef,h=I.isHovered,y=a(s.tag,s["tag--".concat(u)],s["tag--".concat(g)],s["tag--has-action"],"remove"===g&&[s["tag--".concat(f)],s["tag--".concat(v)]]);return t.createElement("button",{className:y,onClick:p,ref:j,type:"button","data-testid":b,"data-analyticsid":r.Tag},d,t.createElement(e,{svgIcon:function(){switch(g){case"remove":return l;case"undo":return m}}(),size:n.XXSmall,color:c["".concat("undo"===g?"blueberry":f,"800")],isHovered:h}))},g=function(i){var m=i.children,l=i.size,u=void 0===l?d.medium:l,f=i.color,g=void 0===f?"blueberry":f,p=i.svgIcon,b=i.variant,I=void 0===b?"normal":b,j=i.action,h=i.onClick,y=i.testId,z=a(s.tag,s["tag--".concat(u)],s["tag--".concat(g)],s["tag--".concat(I)],o({},s["tag--has-icon"],p));return j&&h?t.createElement(v,{size:u,color:g,variant:I,action:j,onClick:h,testId:y},m):t.createElement("span",{className:z,"data-testid":y,"data-analyticsid":r.Tag},p&&t.createElement(e,{svgIcon:p,size:n.XXSmall,color:c["".concat(g,"800")],className:s.tag__icon}),m)};export{u as TagAction,d as TagSize,f as TagVariant,g as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,175 @@
1
+ @import '../../scss/_spacers.scss';
2
+ @import '../../scss/_breakpoints.scss';
3
+ @import '../../scss/_palette.scss';
4
+ @import '../../scss/_font-settings.scss';
5
+
6
+ /**
7
+ * Konverter en gjennomsiktig farge til en ugjennomsiktig farge ved å simulere fargen plassert
8
+ * på en bakgrunnsfarge (f.eks. 50% gjennomsiktig $blueberry200 på hvit bakgrunn).
9
+ *
10
+ * Fra https://makandracards.com/makandra/42500-sass-how-to-convert-an-rgba-color-to-its-rgb-look-alike
11
+ *
12
+ * @param $rgba Farge med alpha-verdi, f.eks. rgba(black, 0.67)
13
+ * @param $background Bakgrunnsfarge. Default: $white
14
+ *
15
+ * @returns Farge uten gjennomsiktighet
16
+ */
17
+ @function rgba-to-rgb($rgba, $background: $white) {
18
+ @return mix(rgb(red($rgba), green($rgba), blue($rgba)), $background, alpha($rgba) * 100%);
19
+ }
20
+
21
+ .tag {
22
+ $tag: &;
23
+ display: inline-flex;
24
+ justify-content: space-between;
25
+ align-items: center;
26
+ text-transform: uppercase;
27
+ border-width: 1px;
28
+ border-style: solid;
29
+ background-color: transparent;
30
+ // komponenten bruker ekstra liten font-size og line-height
31
+ font-size: 0.875rem;
32
+ line-height: 1.125rem;
33
+ font-weight: 600;
34
+
35
+ @media (min-width: map-get($grid-breakpoints, md)) {
36
+ font-size: $font-size-xs;
37
+ line-height: 1.25rem;
38
+ }
39
+
40
+ $colors: 'blueberry', 'neutral', 'cherry', 'banana', 'kiwi', 'plum';
41
+
42
+ @each $color in $colors {
43
+ &--#{$color},
44
+ // Sørg for at fargene overstyrer dersom tag har type=button
45
+ &--#{$color}[type='button'] {
46
+ // banana og kiwi har unntak fra hovedregelen
47
+ @if $color == 'banana' {
48
+ color: map-get($palette-map, #{$color}900);
49
+ border-color: map-get($palette-map, #{$color}300);
50
+ } @else if $color == 'kiwi' {
51
+ color: map-get($palette-map, #{$color}900);
52
+ border-color: map-get($palette-map, #{$color}200);
53
+ } @else {
54
+ color: map-get($palette-map, #{$color}800);
55
+ border-color: map-get($palette-map, #{$color}200);
56
+ }
57
+
58
+ &#{$tag}--normal {
59
+ &#{$tag}--has-action {
60
+ &:hover {
61
+ background-color: rgba-to-rgb(rgba(map-get($palette-map, #{$color}200), 0.2));
62
+ }
63
+ }
64
+ }
65
+
66
+ &#{$tag}--oncolor {
67
+ background-color: transparent;
68
+ &#{$tag}--has-action {
69
+ &:hover {
70
+ background-color: map-get($palette-map, #{$color}100);
71
+ border-color: map-get($palette-map, #{$color}100);
72
+ }
73
+ &:focus {
74
+ background-color: $white;
75
+ border-color: $white;
76
+ box-shadow: 0px 0px 0px 3px $black;
77
+ }
78
+ }
79
+ }
80
+
81
+ &#{$tag}--emphasised {
82
+ @if $color == 'banana' {
83
+ background-color: rgba-to-rgb(rgba(map-get($palette-map, #{$color}300), 0.4));
84
+ } @else {
85
+ background-color: rgba-to-rgb(rgba(map-get($palette-map, #{$color}200), 0.4));
86
+ }
87
+ &#{$tag}--has-action {
88
+ &:hover {
89
+ @if $color == 'banana' {
90
+ background-color: rgba-to-rgb(rgba(map-get($palette-map, #{$color}300), 0.5));
91
+ } @else {
92
+ background-color: rgba-to-rgb(rgba(map-get($palette-map, #{$color}200), 0.5));
93
+ }
94
+ }
95
+ }
96
+ }
97
+ }
98
+ }
99
+
100
+ &--has-action[type='button'] {
101
+ cursor: pointer;
102
+ font-family: inherit;
103
+ &:focus {
104
+ outline: none;
105
+ border-color: $black;
106
+ box-shadow: inset 0px 0px 0px 2px $black;
107
+ }
108
+ &#{$tag}--undo {
109
+ color: $blueberry800;
110
+ background-color: $blueberry100;
111
+ border-color: $blueberry100;
112
+ text-decoration: line-through;
113
+ &:hover {
114
+ background-color: $white;
115
+ border-color: $blueberry200;
116
+ }
117
+ }
118
+ }
119
+
120
+ &--medium {
121
+ padding: 0 getSpacer(xs);
122
+ min-height: 26px;
123
+
124
+ @media (min-width: map-get($grid-breakpoints, md)) {
125
+ min-height: 30px;
126
+ }
127
+
128
+ &#{$tag}--has-icon {
129
+ padding: 0 getSpacer(xs) 0 6px;
130
+ @media (min-width: map-get($grid-breakpoints, md)) {
131
+ padding: getSpacer(4xs) getSpacer(xs) getSpacer(4xs) 6px;
132
+ }
133
+ }
134
+
135
+ &#{$tag}--has-action {
136
+ padding: 0 getSpacer(3xs) 0 getSpacer(xs);
137
+ @media (min-width: map-get($grid-breakpoints, md)) {
138
+ padding: getSpacer(4xs) getSpacer(3xs) getSpacer(4xs) getSpacer(xs);
139
+ }
140
+ }
141
+
142
+ #{$tag}__icon {
143
+ margin-right: getSpacer(4xs);
144
+ }
145
+ }
146
+ &--large {
147
+ padding: 0 getSpacer(xs);
148
+ min-height: 30px;
149
+
150
+ @media (min-width: map-get($grid-breakpoints, md)) {
151
+ min-height: 34px;
152
+ }
153
+
154
+ &#{$tag}--has-icon {
155
+ padding: getSpacer(4xs) getSpacer(xs) getSpacer(4xs) 6px;
156
+ @media (min-width: map-get($grid-breakpoints, md)) {
157
+ padding: getSpacer(3xs) getSpacer(xs) getSpacer(3xs) getSpacer(2xs);
158
+ }
159
+ }
160
+
161
+ &#{$tag}--has-action {
162
+ padding: getSpacer(4xs) getSpacer(3xs) getSpacer(4xs) getSpacer(xs);
163
+ @media (min-width: map-get($grid-breakpoints, md)) {
164
+ padding: getSpacer(3xs) getSpacer(2xs) getSpacer(3xs) getSpacer(xs);
165
+ }
166
+ }
167
+
168
+ #{$tag}__icon {
169
+ margin-right: getSpacer(4xs);
170
+ @media (min-width: map-get($grid-breakpoints, md)) {
171
+ margin-right: getSpacer(3xs);
172
+ }
173
+ }
174
+ }
175
+ }
@@ -0,0 +1,24 @@
1
+ export type Styles = {
2
+ tag: string;
3
+ tag__icon: string;
4
+ 'tag--banana': string;
5
+ 'tag--blueberry': string;
6
+ 'tag--cherry': string;
7
+ 'tag--emphasised': string;
8
+ 'tag--has-action': string;
9
+ 'tag--has-icon': string;
10
+ 'tag--kiwi': string;
11
+ 'tag--large': string;
12
+ 'tag--medium': string;
13
+ 'tag--neutral': string;
14
+ 'tag--normal': string;
15
+ 'tag--oncolor': string;
16
+ 'tag--plum': string;
17
+ 'tag--undo': string;
18
+ };
19
+
20
+ export type ClassNames = keyof Styles;
21
+
22
+ declare const styles: Styles;
23
+
24
+ export default styles;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface TagListPropsProps {
3
+ /** Sets the data-testid attribute on the expander button. */
4
+ testId?: string;
5
+ }
6
+ declare const TagList: React.FC<TagListPropsProps>;
7
+ export default TagList;
8
+ //# sourceMappingURL=TagList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TagList.d.ts","sourceRoot":"","sources":["../../../src/components/TagList/TagList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,UAAU,iBAAiB;IACzB,6DAA6D;IAC7D,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAMxC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,23 @@
1
+ {
2
+ "props": {
3
+ "testId": {
4
+ "defaultValue": null,
5
+ "description": "Sets the data-testid attribute on the expander button.",
6
+ "name": "testId",
7
+ "parent": {
8
+ "fileName": "src/components/TagList/TagList.tsx",
9
+ "name": "TagListPropsProps"
10
+ },
11
+ "declarations": [
12
+ {
13
+ "fileName": "src/components/TagList/TagList.tsx",
14
+ "name": "TagListPropsProps"
15
+ }
16
+ ],
17
+ "required": false,
18
+ "type": {
19
+ "name": "string"
20
+ }
21
+ }
22
+ }
23
+ }
@@ -0,0 +1,4 @@
1
+ import TagList from './TagList';
2
+ export * from './TagList';
3
+ export default TagList;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TagList/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,eAAe,OAAO,CAAC"}
@@ -0,0 +1,2 @@
1
+ import t from"react";import a from"./styles.module.scss";import{A as s}from"../../constants-088e1d4a.js";var e=function(e){var r=e.children,i=e.testId;return t.createElement("div",{className:a["tag-list"],"data-testid":i,"data-analyticsid":s.TagList},r)};export{e as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ @import '../../scss/_spacers.scss';
2
+ @import '../../scss/_breakpoints.scss';
3
+ @import '../../scss/_palette.scss';
4
+
5
+ .tag-list {
6
+ display: inline-flex;
7
+ align-items: center;
8
+ flex-wrap: wrap;
9
+ gap: getSpacer(2xs);
10
+ }
@@ -0,0 +1,9 @@
1
+ export type Styles = {
2
+ 'tag-list': string;
3
+ };
4
+
5
+ export type ClassNames = keyof Styles;
6
+
7
+ declare const styles: Styles;
8
+
9
+ export default styles;
@@ -1,2 +1,2 @@
1
- import{T as s}from"../../Textarea-e1e649cf.js";export{T as default}from"../../Textarea-e1e649cf.js";import"../../_rollupPluginBabelHelpers-4f206abf.js";import"../../_tslib-51c8a283.js";import"react";import"../../index-9b84fabc.js";import"./styles.module.scss";import"../../constants-9528513d.js";import"../../uuid-11037462.js";
1
+ import{T as s}from"../../Textarea-f2b34d54.js";export{T as default}from"../../Textarea-f2b34d54.js";import"../../_rollupPluginBabelHelpers-0f007973.js";import"../../_tslib-51c8a283.js";import"react";import"../../index-b4162bbf.js";import"./styles.module.scss";import"../../constants-088e1d4a.js";import"../../uuid-11037462.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{_ as e,d as t}from"../../_rollupPluginBabelHelpers-4f206abf.js";import{_ as i}from"../../_tslib-51c8a283.js";import r,{useState as l}from"react";import{c as a}from"../../index-9b84fabc.js";import{A as o,I as n}from"../../constants-9528513d.js";import s from"./styles.module.scss";var c=r.forwardRef((function(e,i){var l,o=e.children,n=e.className,c=e.htmlMarkup,d=void 0===c?"span":c,m=e.highlighted,f=e.compact,p=a(s.tile__title,(t(l={},s["tile__title--highlighted"],m),t(l,s["tile__title--compact"],f),l),n),u=d;return r.createElement(u,{className:p,ref:i},o)})),d=r.forwardRef((function(c,d){var m,f=c.icon,p=c.title,u=c.className,h=void 0===u?"":u,g=c.description,_=c.fixed,v=void 0!==_&&_,b=c.highlighted,E=void 0!==b&&b,N=c.testId,x=i(c,["icon","title","className","description","fixed","highlighted","testId"]),j=l(!1),w=e(j,2),M=w[0],k=w[1],I=!g,y=a(s.tile,(t(m={},s["tile--fixed"],v),t(m,s["tile--compact"],I),t(m,s["tile--highlighted"],E),m),h),B=a(s["title-wrapper"],t({},s["title-wrapper--compact"],I));return r.createElement("a",Object.assign({ref:d,className:y,onMouseEnter:function(){return k(!0)},onMouseLeave:function(){return k(!1)},onFocus:function(){return k(!0)},onBlur:function(){return k(!1)},"data-testid":N,"data-analyticsid":o.Tile,rel:"_blank"===c.target?"noopener noreferrer":c.rel},x),r.createElement("div",{className:B},r.cloneElement(f,{size:n.Medium,isHovered:M,color:E?"white":"black"}),r.cloneElement(p,{highlighted:E,compact:I})),g?r.createElement("p",{className:s.tile__description},g):null)}));d.Title=c;export default d;export{d as Tile};
1
+ import{d as e,_ as t}from"../../_rollupPluginBabelHelpers-0f007973.js";import{_ as i}from"../../_tslib-51c8a283.js";import r,{useState as l}from"react";import{c as a}from"../../index-b4162bbf.js";import{A as o,I as n}from"../../constants-088e1d4a.js";import s from"./styles.module.scss";var c=r.forwardRef((function(t,i){var l,o=t.children,n=t.className,c=t.htmlMarkup,d=void 0===c?"span":c,m=t.highlighted,f=t.compact,p=a(s.tile__title,(e(l={},s["tile__title--highlighted"],m),e(l,s["tile__title--compact"],f),l),n),u=d;return r.createElement(u,{className:p,ref:i},o)})),d=r.forwardRef((function(c,d){var m,f=c.icon,p=c.title,u=c.className,h=void 0===u?"":u,g=c.description,_=c.fixed,v=void 0!==_&&_,b=c.highlighted,E=void 0!==b&&b,N=c.testId,j=i(c,["icon","title","className","description","fixed","highlighted","testId"]),w=l(!1),x=t(w,2),M=x[0],k=x[1],I=!g,y=a(s.tile,(e(m={},s["tile--fixed"],v),e(m,s["tile--compact"],I),e(m,s["tile--highlighted"],E),m),h),B=a(s["title-wrapper"],e({},s["title-wrapper--compact"],I));return r.createElement("a",Object.assign({ref:d,className:y,onMouseEnter:function(){return k(!0)},onMouseLeave:function(){return k(!1)},onFocus:function(){return k(!0)},onBlur:function(){return k(!1)},"data-testid":N,"data-analyticsid":o.Tile,rel:"_blank"===c.target?"noopener noreferrer":c.rel},j),r.createElement("div",{className:B},r.cloneElement(f,{size:n.Medium,isHovered:M,color:E?"white":"black"}),r.cloneElement(p,{highlighted:E,compact:I})),g?r.createElement("p",{className:s.tile__description},g):null)}));d.Title=c;export{d as Tile,d as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{T as s}from"../../Title-3a6d4597.js";export{T as default,i as instanceOfTitleMargin}from"../../Title-3a6d4597.js";import"../../_rollupPluginBabelHelpers-4f206abf.js";import"react";import"../../index-9b84fabc.js";import"./styles.module.scss";import"../../constants-9528513d.js";
1
+ import{T as s}from"../../Title-face7728.js";export{T as default,i as instanceOfTitleMargin}from"../../Title-face7728.js";import"../../_rollupPluginBabelHelpers-0f007973.js";import"react";import"../../index-b4162bbf.js";import"./styles.module.scss";import"../../constants-088e1d4a.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{V as s}from"../../Validation-5d79f53e.js";export{V as Validation,V as default}from"../../Validation-5d79f53e.js";import"react";import"../../index-9b84fabc.js";import"../../FormGroup-157f9e03.js";import"../../_rollupPluginBabelHelpers-4f206abf.js";import"../FormGroup/styles.module.scss";import"../../Checkbox-1e2c2047.js";import"../../uuid-11037462.js";import"../Icons/Check.js";import"../Icons/Icon.js";import"../../_tslib-51c8a283.js";import"../../constants-9528513d.js";import"../../color-e7d082c1.js";import"../../index-d1c9177a.js";import"../../palette-f206f488.js";import"../../grid-c105cad1.js";import"../Checkbox/styles.module.scss";import"../../RadioButton-71099f5c.js";import"../RadioButton/styles.module.scss";import"../../Input-5bb47387.js";import"../../useBreakpoint-6eb418f7.js";import"../Input/styles.module.scss";import"../../Title-3a6d4597.js";import"../Title/styles.module.scss";import"../../FormLayout-a3d440c1.js";import"../FormLayout/styles.module.scss";import"./styles.module.scss";
1
+ import{V as s}from"../../Validation-f34d539c.js";export{V as Validation,V as default}from"../../Validation-f34d539c.js";import"react";import"../../index-b4162bbf.js";import"../../FormGroup-97ca00ea.js";import"../../_rollupPluginBabelHelpers-0f007973.js";import"../FormGroup/styles.module.scss";import"../../Checkbox-40365d70.js";import"../../uuid-11037462.js";import"../Icons/Check.js";import"../Icons/Icon.js";import"../../_tslib-51c8a283.js";import"../../constants-088e1d4a.js";import"../../color-e7d082c1.js";import"../../index-d1c9177a.js";import"../../palette-f206f488.js";import"../../grid-c105cad1.js";import"../Checkbox/styles.module.scss";import"../../RadioButton-692ed90a.js";import"../RadioButton/styles.module.scss";import"../../Input-58069d29.js";import"../../useBreakpoint-a74f5af5.js";import"../Input/styles.module.scss";import"../../Title-face7728.js";import"../Title/styles.module.scss";import"../../FormLayout-d6b786db.js";import"../FormLayout/styles.module.scss";import"./styles.module.scss";
2
2
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,2 @@
1
+ var a,o,n,e,r,t;!function(a){a[a.XXSmall=24]="XXSmall",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"}(n||(n={})),function(a){a.normal="normal",a.bigform="bigform"}(e||(e={})),function(a){a.AnchorLink="anchor-link",a.Avatar="avatar",a.Badge="badge",a.Button="button",a.Checkbox="checkbox",a.Close="close",a.Dropdown="dropdown",a.Expander="expander",a.ExpanderList="expander-list",a.ExpanderListExpander="expander-list-expander",a.FormGroup="form-group",a.FormLayout="form-layout",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.Panel="panel",a.PanelList="panel-list",a.Portal="portal",a.RadioButton="radio-button",a.Slider="slider",a.Spacer="spacer",a.StatusDot="status-dot",a.Tag="tag",a.TagList="tag-list",a.Textarea="textarea",a.Tile="tile",a.Title="title",a.Validation="validation"}(r||(r={})),function(a){a.Enter="Enter",a.Escape="Escape",a.ArrowDown="ArrowDown",a.ArrowUp="ArrowUp",a.Home="Home",a.End="End"}(t||(t={}));export{r as A,n as F,a as I,t as K,o as Z,e as a};
2
+ //# sourceMappingURL=constants-088e1d4a.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants-088e1d4a.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/constants.d.ts CHANGED
@@ -92,6 +92,8 @@ export declare enum AnalyticsId {
92
92
  Slider = "slider",
93
93
  Spacer = "spacer",
94
94
  StatusDot = "status-dot",
95
+ Tag = "tag",
96
+ TagList = "tag-list",
95
97
  Textarea = "textarea",
96
98
  Tile = "tile",
97
99
  Title = "title",
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,OAAO,KAAK;IACZ,MAAM,KAAK;IACX,KAAK,KAAK;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rB,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,YAAY,kBAAkB;IAC9B,oBAAoB,2BAA2B;IAC/C,SAAS,eAAe;IACxB,UAAU,gBAAgB;IAC1B,YAAY,kBAAkB;IAC9B,IAAI,SAAS;IACb,KAAK,UAAU;IACf,IAAI,SAAS;IACb,QAAQ,cAAc;IACtB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,iBAAiB,uBAAuB;IACxC,KAAK,UAAU;IACf,SAAS,eAAe;IACxB,MAAM,WAAW;IACjB,WAAW,iBAAiB;IAC5B,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,SAAS,eAAe;IACxB,GAAG,QAAQ;IACX,OAAO,aAAa;IACpB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,UAAU,eAAe;CAC1B;AAED,oBAAY,gBAAgB;IAC1B,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,GAAG,QAAQ;CACZ"}
@@ -1,2 +1,2 @@
1
- import r from"react";import{u as e}from"../../useBreakpoint-6eb418f7.js";import"../../_rollupPluginBabelHelpers-4f206abf.js";import"../../grid-c105cad1.js";function t(t){return r.forwardRef((function(o,a){var f=e();return r.createElement(t,Object.assign({ref:a},o,{breakpoint:f}))}))}export default t;export{t as withBreakpoint};
1
+ import r from"react";import{u as e}from"../../useBreakpoint-a74f5af5.js";import"../../_rollupPluginBabelHelpers-0f007973.js";import"../../grid-c105cad1.js";function t(t){return r.forwardRef((function(a,o){var f=e();return r.createElement(t,Object.assign({ref:o},a,{breakpoint:f}))}))}export{t as default,t as withBreakpoint};
2
2
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,8 @@
1
+ var r=function(r,t){return r(t={exports:{}},t.exports),t.exports}((function(r){
2
+ /*!
3
+ Copyright (c) 2018 Jed Watson.
4
+ Licensed under the MIT License (MIT), see
5
+ http://jedwatson.github.io/classnames
6
+ */
7
+ !function(){var t={}.hasOwnProperty;function e(){for(var r=arguments,n=[],o=0;o<arguments.length;o++){var s=r[o];if(s){var i=typeof s;if("string"===i||"number"===i)n.push(s);else if(Array.isArray(s)){if(s.length){var a=e.apply(null,s);a&&n.push(a)}}else if("object"===i)if(s.toString===Object.prototype.toString)for(var p in s)t.call(s,p)&&s[p]&&n.push(p);else n.push(s.toString())}}return n.join(" ")}r.exports?(e.default=e,r.exports=e):window.classNames=e}()}));export{r as c};
8
+ //# sourceMappingURL=index-b4162bbf.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-b4162bbf.js","sources":["../node_modules/classnames/index.js"],"sourcesContent":["/*!\n Copyright (c) 2018 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString === Object.prototype.toString) {\n\t\t\t\t\tfor (var key in arg) {\n\t\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n"],"names":["hasOwn","hasOwnProperty","classNames","classes","i","arguments","length","arg","argType","push","Array","isArray","inner","apply","toString","Object","prototype","key","call","join","module","exports","default","window"],"mappings":";;;;;;CAOC,WAGA,IAAIA,EAAS,GAAGC,eAEhB,SAASC,IAGR,oBAFIC,EAAU,GAELC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CAC1C,IAAIG,EAAMF,EAAUD,GACpB,GAAKG,EAAL,CAEA,IAAIC,SAAiBD,EAErB,GAAgB,WAAZC,GAAoC,WAAZA,EAC3BL,EAAQM,KAAKF,QACP,GAAIG,MAAMC,QAAQJ,IACxB,GAAIA,EAAID,OAAQ,CACf,IAAIM,EAAQV,EAAWW,MAAM,KAAMN,GAC/BK,GACHT,EAAQM,KAAKG,SAGT,GAAgB,WAAZJ,EACV,GAAID,EAAIO,WAAaC,OAAOC,UAAUF,SACrC,IAAK,IAAIG,KAAOV,EACXP,EAAOkB,KAAKX,EAAKU,IAAQV,EAAIU,IAChCd,EAAQM,KAAKQ,QAIfd,EAAQM,KAAKF,EAAIO,aAKpB,OAAOX,EAAQgB,KAAK,KAGgBC,EAAOC,SAC3CnB,EAAWoB,QAAUpB,EACrBkB,EAAAC,QAAiBnB,GAOjBqB,OAAOrB,WAAaA,EAhDtB"}
package/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export{t as theme}from"./index-d1c9177a.js";export{B as Breakpoint,u as useBreakpoint}from"./useBreakpoint-6eb418f7.js";export{u as useFocusToggle,a as useFocusTrap,b as useIntersectionObserver,c as useIsVisible}from"./useIsVisible-fad4d769.js";export{u as useHover}from"./useHover-026f72c1.js";import{u as e}from"./useWindowSize-5cc481da.js";export{u as useLayoutEvent,a as useWindowSize}from"./useWindowSize-5cc481da.js";export{u as usePrevious}from"./usePrevious-ae293b10.js";export{u as useSticky}from"./useSticky-807e5dde.js";import{_ as s}from"./_rollupPluginBabelHelpers-4f206abf.js";import{useState as r}from"react";export{b as useKeyboardEvent,c as useOutsideEvent,u as useResizeObserver,a as useToggle,d as useUuid}from"./useUuid-1ecdf8e8.js";export{u as uuid}from"./uuid-11037462.js";export{A as AnalyticsId,F as FormMode,a as FormVariant,I as IconSize,K as KeyboardEventKey,Z as ZIndex}from"./constants-9528513d.js";import"./palette-f206f488.js";import"./grid-c105cad1.js";var o=function(o){var a=r(),u=s(a,2),t=u[0],i=u[1];return e((function(){(null==o?void 0:o.current)&&i(o.current.getBoundingClientRect())})),t};export{o as useSize};
1
+ export{t as theme}from"./index-d1c9177a.js";export{B as Breakpoint,u as useBreakpoint}from"./useBreakpoint-a74f5af5.js";export{u as useFocusToggle,a as useFocusTrap,b as useIntersectionObserver,c as useIsVisible}from"./useIsVisible-bef05e5e.js";export{u as useHover}from"./useHover-b995a0e6.js";import{u as e}from"./useWindowSize-030df49b.js";export{u as useLayoutEvent,a as useWindowSize}from"./useWindowSize-030df49b.js";export{u as usePrevious}from"./usePrevious-ae293b10.js";export{u as useSticky}from"./useSticky-29a434c1.js";import{_ as s}from"./_rollupPluginBabelHelpers-0f007973.js";import{useState as r}from"react";export{b as useKeyboardEvent,c as useOutsideEvent,u as useResizeObserver,a as useToggle}from"./useOutsideEvent-fb86686d.js";export{u as useUuid}from"./useUuid-3b1e73f2.js";export{u as uuid}from"./uuid-11037462.js";export{A as AnalyticsId,F as FormMode,a as FormVariant,I as IconSize,K as KeyboardEventKey,Z as ZIndex}from"./constants-088e1d4a.js";import"./palette-f206f488.js";import"./grid-c105cad1.js";var o=function(o){var u=r(),a=s(u,2),t=a[0],i=a[1];return e((function(){(null==o?void 0:o.current)&&i(o.current.getBoundingClientRect())})),t};export{o as useSize};
2
2
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@helsenorge/designsystem-react",
3
3
  "sideEffects": false,
4
- "version": "1.0.0-beta123",
4
+ "version": "1.0.0-beta126",
5
5
  "description": "The official design system for Helsenorge built with React.",
6
6
  "repository": {
7
7
  "type": "tfs",
@@ -23,8 +23,8 @@
23
23
  "peerDependencies": {
24
24
  "bootstrap": "4.6.1",
25
25
  "normalize.css": "8.0.1",
26
- "react": ">= 16.12.0",
27
- "react-dom": ">= 16.12.0"
26
+ "react": "^16.0.0 | ^17.0.0",
27
+ "react-dom": "^16.0.0 | ^17.0.0"
28
28
  },
29
29
  "dependencies": {
30
30
  "bootstrap": "4.6.1"
@@ -53,7 +53,8 @@
53
53
  "@types/classnames": "^2.2.11",
54
54
  "@types/jest": "^25.2.3",
55
55
  "@types/prettier": "1.19.0",
56
- "@types/react-dom": "16.9.8",
56
+ "@types/react": "^16.0.0",
57
+ "@types/react-dom": "^16.0.0",
57
58
  "@types/testing-library__react": "^10.0.5",
58
59
  "async": "^3.1.0",
59
60
  "babel-loader": "^8.0.6",
@@ -69,10 +70,10 @@
69
70
  "normalize.css": "8.0.1",
70
71
  "npm-run-all": "^4.1.5",
71
72
  "prettier": "1.19.1",
72
- "react": "16.12.0",
73
+ "react": "^16.0.0",
73
74
  "react-docgen-typescript": "^1.22.0",
74
75
  "react-docgen-typescript-loader": "^3.3.0",
75
- "react-dom": "16.12.0",
76
+ "react-dom": "^16.0.0",
76
77
  "react-hook-form": "^6.15.8",
77
78
  "resolve-url-loader": "^3.1.1",
78
79
  "rimraf": "^3.0.2",
@@ -1,25 +1,25 @@
1
- export type Styles = {
2
- 'anchorlink-wrapper': string;
3
- 'focused-content': string;
4
- form: string;
5
- 'image-caption': string;
6
- 'image-credit': string;
7
- label: string;
8
- legend: string;
9
- preamble: string;
10
- strong: string;
11
- table: string;
12
- time: string;
13
- 'title-feature': string;
14
- title1: string;
15
- title2: string;
16
- title3: string;
17
- title4: string;
18
- title5: string;
19
- };
20
-
21
- export type ClassNames = keyof Styles;
22
-
23
- declare const styles: Styles;
24
-
25
- export default styles;
1
+ export type Styles = {
2
+ 'anchorlink-wrapper': string;
3
+ 'focused-content': string;
4
+ form: string;
5
+ 'image-caption': string;
6
+ 'image-credit': string;
7
+ label: string;
8
+ legend: string;
9
+ preamble: string;
10
+ strong: string;
11
+ table: string;
12
+ time: string;
13
+ 'title-feature': string;
14
+ title1: string;
15
+ title2: string;
16
+ title3: string;
17
+ title4: string;
18
+ title5: string;
19
+ };
20
+
21
+ export type ClassNames = keyof Styles;
22
+
23
+ declare const styles: Styles;
24
+
25
+ export default styles;
@@ -1,2 +1,2 @@
1
- import{_ as e}from"./_rollupPluginBabelHelpers-4f206abf.js";import{useState as r,useEffect as a}from"react";import{b as n,s as i}from"./grid-c105cad1.js";var s;!function(e){e[e.xxs=n.xxs]="xxs",e[e.xs=n.xs]="xs",e[e.sm=n.sm]="sm",e[e.md=n.md]="md",e[e.lg=n.lg]="lg",e[e.xl=n.xl]="xl"}(s||(s={}));var t=function(){var n=r(s.xxs),t=e(n,2),m=t[0],d=t[1];return a((function(){var r,a,n=function(e){switch(e.media){case i.xl:return void d(e.matches?s.xl:s.lg);case i.lg:return void d(e.matches?s.lg:s.md);case i.md:return void d(e.matches?s.md:s.sm);case i.sm:return void d(e.matches?s.sm:s.xs);case i.xs:return void d(e.matches?s.xs:s.xxs);default:return void d(s.xxs)}},t=Object.entries(i).reverse().map((function(r){var a=e(r,2),n=a[0],i=a[1];return{breakpoint:s[n],mediaQuery:window.matchMedia(i)}}));t.forEach((function(e){e.mediaQuery.addEventListener?e.mediaQuery.addEventListener("change",n):e.mediaQuery.addListener&&e.mediaQuery.addListener(n)}));var o=null!==(a=null===(r=t.find((function(e){return e.mediaQuery.matches})))||void 0===r?void 0:r.breakpoint)&&void 0!==a?a:m;return d(o),function(){t.forEach((function(e){e.mediaQuery.removeEventListener?e.mediaQuery.removeEventListener("change",n):e.mediaQuery.removeListener&&e.mediaQuery.removeListener(n)}))}}),[]),m};export{s as B,t as u};
2
- //# sourceMappingURL=useBreakpoint-6eb418f7.js.map
1
+ import{_ as e}from"./_rollupPluginBabelHelpers-0f007973.js";import{useState as r,useEffect as a}from"react";import{b as n,s as i}from"./grid-c105cad1.js";var s;!function(e){e[e.xxs=n.xxs]="xxs",e[e.xs=n.xs]="xs",e[e.sm=n.sm]="sm",e[e.md=n.md]="md",e[e.lg=n.lg]="lg",e[e.xl=n.xl]="xl"}(s||(s={}));var t=function(){var n=r(s.xxs),t=e(n,2),m=t[0],d=t[1];return a((function(){var r,a,n=function(e){switch(e.media){case i.xl:return void d(e.matches?s.xl:s.lg);case i.lg:return void d(e.matches?s.lg:s.md);case i.md:return void d(e.matches?s.md:s.sm);case i.sm:return void d(e.matches?s.sm:s.xs);case i.xs:return void d(e.matches?s.xs:s.xxs);default:return void d(s.xxs)}},t=Object.entries(i).reverse().map((function(r){var a=e(r,2),n=a[0],i=a[1];return{breakpoint:s[n],mediaQuery:window.matchMedia(i)}}));t.forEach((function(e){e.mediaQuery.addEventListener?e.mediaQuery.addEventListener("change",n):e.mediaQuery.addListener&&e.mediaQuery.addListener(n)}));var o=null!==(a=null===(r=t.find((function(e){return e.mediaQuery.matches})))||void 0===r?void 0:r.breakpoint)&&void 0!==a?a:m;return d(o),function(){t.forEach((function(e){e.mediaQuery.removeEventListener?e.mediaQuery.removeEventListener("change",n):e.mediaQuery.removeListener&&e.mediaQuery.removeListener(n)}))}}),[]),m};export{s as B,t as u};
2
+ //# sourceMappingURL=useBreakpoint-a74f5af5.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useBreakpoint-a74f5af5.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{_ as e}from"./_rollupPluginBabelHelpers-0f007973.js";import{useRef as r,useState as n,useEffect as t}from"react";var o=function(o,u){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],c=o||r(null),f=n(!1),a=e(f,2),v=a[0],s=a[1];return t((function(){var e=c.current,r=function(){return s(!0)},n=function(){return s(!1)},t=["mouseenter",i?"focusin":""];t.forEach((function(n){return e&&e.addEventListener(n,r)}));var o=["mouseleave",i?"focusout":""];return o.forEach((function(r){return e&&e.addEventListener(r,n)})),function(){[].concat(t,o).forEach((function(t){return e&&e.removeEventListener(t,r)&&e.removeEventListener(t,n)}))}}),[c,u]),{hoverRef:c,isHovered:v}};export{o as u};
2
+ //# sourceMappingURL=useHover-b995a0e6.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useHover-b995a0e6.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- import{useState as t,useEffect as e,useRef as n}from"react";import{_ as r}from"./_rollupPluginBabelHelpers-4f206abf.js";var o=['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(","),i=function(n,i){var a=t(),u=r(a,2),c=u[0],d=u[1];return e((function(){var t=function(){var t,e=null===(t=n.current)||void 0===t?void 0:t.querySelectorAll(o);d(e)},e=new MutationObserver(t);return(null==n?void 0:n.current)&&e.observe(n.current,{subtree:!0,childList:!0}),t(),function(){e.disconnect()}}),[n]),e((function(){i?null==c||c.forEach((function(t){var e=t.getAttribute("data-tabindex");e?t.setAttribute("tabindex",e):t.removeAttribute("tabindex")})):null==c||c.forEach((function(t){t.hasAttribute("tabindex")&&t.setAttribute("data-tabindex","".concat(t.tabIndex)),t.tabIndex=-1}))}),[i,c]),c};function a(){var t=n(null);function r(e){var n=t.current,r="Tab"===e.key;if(n&&r){var i=function(t){try{return("string"==typeof t?document.querySelector(t):t).getRootNode().activeElement}catch(e){return console.error("Feil ved å ta tak i active element basert på angitt node: ",t,e),null}}(n),a=null==n?void 0:n.querySelectorAll(o),u=a[0],c=1===a.length?u:a[a.length-1];e.shiftKey?i===u&&(c.focus(),e.preventDefault()):i===c&&(u.focus(),e.preventDefault())}}function i(e){var n=t.current;if(n){var r=n.querySelectorAll('a[href], button, textarea, input[type="text"], input[type="radio"], input[type="checkbox"], select');1===r.length&&(r[0].focus(),e.preventDefault())}}return e((function(){var e=t.current;return e.addEventListener("keydown",r),e.addEventListener("click",i),function(){e.removeEventListener("keydown",r),e.removeEventListener("click",i)}}),[]),t}var u=function(t,n,r){e((function(){var e=new IntersectionObserver(n,r);return(null==t?void 0:t.current)&&e.observe(t.current),function(){(null==t?void 0:t.current)&&e.unobserve(t.current)}}),[t])},c=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=t(!1),i=r(o,2),a=i[0],c=i[1],d=function(t){c(t[0].intersectionRatio>=n)};return u(e,d,{threshold:n}),a};export{a,u as b,c,i as u};
2
- //# sourceMappingURL=useIsVisible-fad4d769.js.map
1
+ import{useState as t,useEffect as e,useRef as n}from"react";import{_ as r}from"./_rollupPluginBabelHelpers-0f007973.js";var o=['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(","),i=function(n,i){var a=t(),u=r(a,2),c=u[0],d=u[1];return e((function(){var t=function(){var t,e=null===(t=n.current)||void 0===t?void 0:t.querySelectorAll(o);d(e)},e=new MutationObserver(t);return(null==n?void 0:n.current)&&e.observe(n.current,{subtree:!0,childList:!0}),t(),function(){e.disconnect()}}),[n]),e((function(){i?null==c||c.forEach((function(t){var e=t.getAttribute("data-tabindex");e?t.setAttribute("tabindex",e):t.removeAttribute("tabindex")})):null==c||c.forEach((function(t){t.hasAttribute("tabindex")&&t.setAttribute("data-tabindex","".concat(t.tabIndex)),t.tabIndex=-1}))}),[i,c]),c};function a(){var t=n(null);function r(e){var n=t.current,r="Tab"===e.key;if(n&&r){var i=function(t){try{return("string"==typeof t?document.querySelector(t):t).getRootNode().activeElement}catch(e){return console.error("Feil ved å ta tak i active element basert på angitt node: ",t,e),null}}(n),a=null==n?void 0:n.querySelectorAll(o),u=a[0],c=1===a.length?u:a[a.length-1];e.shiftKey?i===u&&(c.focus(),e.preventDefault()):i===c&&(u.focus(),e.preventDefault())}}function i(e){var n=t.current;if(n){var r=n.querySelectorAll('a[href], button, textarea, input[type="text"], input[type="radio"], input[type="checkbox"], select');1===r.length&&(r[0].focus(),e.preventDefault())}}return e((function(){var e=t.current;return e.addEventListener("keydown",r),e.addEventListener("click",i),function(){e.removeEventListener("keydown",r),e.removeEventListener("click",i)}}),[]),t}var u=function(t,n,r){e((function(){var e=new IntersectionObserver(n,r);return(null==t?void 0:t.current)&&e.observe(t.current),function(){(null==t?void 0:t.current)&&e.unobserve(t.current)}}),[t])},c=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=t(!1),i=r(o,2),a=i[0],c=i[1],d=function(t){c(t[0].intersectionRatio>=n)};return u(e,d,{threshold:n}),a};export{a,u as b,c,i as u};
2
+ //# sourceMappingURL=useIsVisible-bef05e5e.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIsVisible-bef05e5e.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{_ as n}from"./_rollupPluginBabelHelpers-0f007973.js";import{useState as r,useEffect as e}from"react";import{u as t}from"./usePrevious-ae293b10.js";var u=function(t){var u=r(),o=n(u,2),i=o[0],c=o[1];return e((function(){var n=new ResizeObserver((function(n){c(n[0].target.getBoundingClientRect())}));return(null==t?void 0:t.current)&&n.observe(null==t?void 0:t.current),n.disconnect}),[t]),i},o=function(u,o){var i=r(u),c=n(i,2),a=c[0],v=c[1],f=t(a);return e((function(){u!==a&&v(u)}),[u]),e((function(){o&&a!==!!f&&o(a)}),[a,o]),{value:a,toggleValue:function(){v(!a)}}},i=function(n,r,t,u){e((function(){var e,o=function(n){(n.key===t||Array.isArray(t)&&t.includes(n.key))&&u(n)};return null===(e=r.current)||void 0===e||e.addEventListener(n,o),function(){var e;null===(e=r.current)||void 0===e||e.removeEventListener(n,o)}}),[r,u])},c=function(n,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["mousedown"],u=function(e){var t;(null===(t=n.current)||void 0===t?void 0:t.contains(e.target))||r()};e((function(){return t.forEach((function(n){return document.addEventListener(n,u)})),function(){t.forEach((function(n){return document.removeEventListener(n,u)}))}}))};export{o as a,i as b,c,u};
2
+ //# sourceMappingURL=useOutsideEvent-fb86686d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOutsideEvent-fb86686d.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- import{_ as i}from"./_rollupPluginBabelHelpers-4f206abf.js";import{useState as o}from"react";import{u as t}from"./useWindowSize-5cc481da.js";var e=function(e,n){var r=o(!1),d=i(r,2),u=d[0],l=d[1],s=o(!1),v=i(s,2),a=v[0],c=v[1],f=o(),g=i(f,2),m=g[0],p=g[1],h=o(),w=i(h,2),W=w[0],b=w[1];return t((function(){var i,o,t,r=(null===(i=e.current)||void 0===i?void 0:i.getBoundingClientRect())||{},d=r.top,u=void 0===d?0:d,s=r.width,v=void 0===s?0:s,a=r.bottom,f=void 0===a?0:a,g=null!==(t=null===(o=n.current)||void 0===o?void 0:o.getBoundingClientRect().height)&&void 0!==t?t:0;l(u<=0),c(f<=g),b(v),p(g)}),["resize","scroll"]),{isOutsideWindow:u,isLeavingWindow:a,offsetHeight:m,contentWidth:W}};export{e as u};
2
- //# sourceMappingURL=useSticky-807e5dde.js.map
1
+ import{_ as i}from"./_rollupPluginBabelHelpers-0f007973.js";import{useState as o}from"react";import{u as t}from"./useWindowSize-030df49b.js";var e=function(e,n){var r=o(!1),d=i(r,2),u=d[0],l=d[1],s=o(!1),v=i(s,2),a=v[0],c=v[1],f=o(),g=i(f,2),m=g[0],p=g[1],h=o(),w=i(h,2),W=w[0],b=w[1];return t((function(){var i,o,t,r=(null===(i=e.current)||void 0===i?void 0:i.getBoundingClientRect())||{},d=r.top,u=void 0===d?0:d,s=r.width,v=void 0===s?0:s,a=r.bottom,f=void 0===a?0:a,g=null!==(t=null===(o=n.current)||void 0===o?void 0:o.getBoundingClientRect().height)&&void 0!==t?t:0;l(u<=0),c(f<=g),b(v),p(g)}),["resize","scroll"]),{isOutsideWindow:u,isLeavingWindow:a,offsetHeight:m,contentWidth:W}};export{e as u};
2
+ //# sourceMappingURL=useSticky-29a434c1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSticky-29a434c1.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{_ as r}from"./_rollupPluginBabelHelpers-0f007973.js";import{useState as o}from"react";import{u}from"./uuid-11037462.js";var a=function(){var a=o(u());return r(a,1)[0]};export{a as u};
2
+ //# sourceMappingURL=useUuid-3b1e73f2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUuid-3b1e73f2.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- import{a as n,_ as e}from"./_rollupPluginBabelHelpers-4f206abf.js";import{useEffect as i,useState as t}from"react";function o(n,e,i){var t;return function(){var o=this,r=arguments,u=function(){t=null,i||n.apply(o,r)},a=i&&!t;t&&clearTimeout(t),t=setTimeout(u,e),a&&n.apply(o,r)}}var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["layoutchange","resize","orientationchange"],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;i((function(){if("object"===("undefined"==typeof window?"undefined":n(window))){var i=o(e,r);return t.forEach((function(n){return window.addEventListener(n,i)})),i(),function(){t.forEach((function(n){return window.removeEventListener(n,i)}))}}}),[])},u=function(){var e="object"===("undefined"==typeof window?"undefined":n(window));return{width:e?window.innerWidth:void 0,height:e?window.innerHeight:void 0}};function a(){var n=t(u()),i=e(n,2),o=i[0],a=i[1];return r((function(){a(u())}),["resize"]),o}export{a,r as u};
2
- //# sourceMappingURL=useWindowSize-5cc481da.js.map
1
+ import{a as n,_ as e}from"./_rollupPluginBabelHelpers-0f007973.js";import{useEffect as i,useState as t}from"react";function o(n,e,i){var t;return function(){var o=this,r=arguments,u=function(){t=null,i||n.apply(o,r)},a=i&&!t;t&&clearTimeout(t),t=setTimeout(u,e),a&&n.apply(o,r)}}var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["layoutchange","resize","orientationchange"],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;i((function(){if("object"===("undefined"==typeof window?"undefined":n(window))){var i=o(e,r);return t.forEach((function(n){return window.addEventListener(n,i)})),i(),function(){t.forEach((function(n){return window.removeEventListener(n,i)}))}}}),[])},u=function(){var e="object"===("undefined"==typeof window?"undefined":n(window));return{width:e?window.innerWidth:void 0,height:e?window.innerHeight:void 0}};function a(){var n=t(u()),i=e(n,2),o=i[0],a=i[1];return r((function(){a(u())}),["resize"]),o}export{a,r as u};
2
+ //# sourceMappingURL=useWindowSize-030df49b.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useWindowSize-030df49b.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/Badge-32ba89d5.js DELETED
@@ -1,2 +0,0 @@
1
- import{d as a}from"./_rollupPluginBabelHelpers-4f206abf.js";import e from"react";import{c as r}from"./index-9b84fabc.js";import t from"./components/Badge/styles.module.scss";import{A as d}from"./constants-9528513d.js";var s=e.forwardRef((function(s,o){var b,l=s.children,i=s.className,n=void 0===i?"":i,c=s.color,m=void 0===c?"black":c,g=s.testId,f=l.toString().length>2,p=r(t.badge,(a(b={},t["badge--oversized"],f),a(b,t["badge--black"],"black"===m),a(b,t["badge--white"],"white"===m),a(b,t["badge--blueberry"],"blueberry"===m),a(b,t["badge--banana"],"banana"===m),a(b,t["badge--cherry"],"cherry"===m),a(b,t["badge--kiwi"],"kiwi"===m),a(b,t["badge--neutral"],"neutral"===m),a(b,t["badge--plum"],"plum"===m),b),n);return e.createElement("span",{className:p,ref:o,"data-testid":g,"data-analyticsid":d.Badge},l)}));export{s as B};
2
- //# sourceMappingURL=Badge-32ba89d5.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Badge-32ba89d5.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Button-9f2ce63d.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Checkbox-1e2c2047.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/Close-f197bf98.js DELETED
@@ -1,2 +0,0 @@
1
- import o from"react";import{p as t}from"./palette-f206f488.js";import{Icon as s}from"./components/Icons/Icon.js";import{A as e}from"./constants-9528513d.js";import r from"./components/Icons/X.js";import a from"./components/Close/styles.module.scss";import{u as n,B as m}from"./useBreakpoint-6eb418f7.js";var c=function(c){var l=n()===m.xs?38:48;return o.createElement("button",{"data-testid":c.testId,"data-analyticsid":e.Close,className:a.close,"aria-label":c.ariaLabel||"Lukk",onClick:c.onClick,role:"button"},o.createElement(s,{svgIcon:r,color:t.blueberry600,size:l}))};export{c as C};
2
- //# sourceMappingURL=Close-f197bf98.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Close-f197bf98.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{d as e}from"./_rollupPluginBabelHelpers-4f206abf.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-1e2c2047.js";import{F as m,a as n,A as l}from"./constants-9528513d.js";import{R as i}from"./RadioButton-71099f5c.js";import{I as p}from"./Input-5bb47387.js";import{T as s}from"./Title-3a6d4597.js";import{F as f}from"./FormLayout-a3d440c1.js";var d=r.forwardRef((function(d,u){var c,g,v,_=d.className,b=d.mode,w=void 0===b?m.onwhite:b,y=d.variant,E=void 0===y?n.normal:y,j=d.error,N=d.name,h=w===m.ondark,k=E===n.bigform,F=a(o["form-group-wrapper"],(e(c={},o["form-group-wrapper--on-dark"],h),e(c,o["form-group-wrapper--invalid"],j),c),_),x=a(o["form-group-wrapper__title"],(e(g={},o["form-group-wrapper__title--on-dark"],h&&!j),e(g,o["form-group-wrapper__title--bigform"],k),g)),B=a(o["form-group"],e({},o["form-group--invalid"],j)),C=a(o["form-group-wrapper__errors"],e({},o["form-group-wrapper__errors--bigform"],k)),I=a(o["field-set__legend"],(e(v={},o["field-set__legend--on-dark"],h&&!j),e(v,o["field-set__legend--bigform"],k),v));return r.createElement("div",{"data-testid":d.testId,"data-analyticsid":l.FormGroup,className:F},d.title&&r.createElement(s,{className:x,htmlMarkup:"h4",appearance:"title4",margin:{marginTop:0,marginBottom:2}},d.title),r.createElement("div",{className:B},j&&r.createElement("p",{className:C},j),r.createElement("fieldset",{name:d.title,className:o["field-set"]},d.legend&&r.createElement("legend",{className:I},d.legend),r.Children.map(d.children,(function e(a){if(a.type===f)return r.cloneElement(a,{variant:E,mapHelper:e});if(a.type===t){var o=a.type===t;return r.cloneElement(a,{name:null!=N?N:o.valueOf.name,mode:w,variant:E,error:!!j})}if(a.type===i){var m=a.type===i;return r.cloneElement(a,{name:null!=N?N:m.valueOf.name,mode:w,variant:E,error:!!j})}if(a.type===p){var n=a.type===p;return r.cloneElement(a,{name:null!=N?N:n.valueOf.name,mode:w,variant:E,error:!!j})}return a})))))}));export{d as F};
2
- //# sourceMappingURL=FormGroup-157f9e03.js.map