@helsenorge/designsystem-react 6.0.0-beta.9 → 6.0.0

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 (686) hide show
  1. package/CHANGELOG.md +249 -0
  2. package/components/AnchorLink/AnchorLink.js +7 -7
  3. package/components/AnchorLink/AnchorLink.js.map +1 -1
  4. package/components/AnchorLink/styles.module.scss +0 -11
  5. package/components/Avatar/Avatar.js.map +1 -1
  6. package/components/Badge/Badge.js +5 -5
  7. package/components/Badge/Badge.js.map +1 -1
  8. package/components/Button/Button.d.ts +2 -0
  9. package/components/Button/Button.d.ts.map +1 -1
  10. package/components/Button/Button.js +78 -72
  11. package/components/Button/Button.js.map +1 -1
  12. package/components/Button/styles.module.scss +30 -24
  13. package/components/Button/styles.module.scss.d.ts +2 -0
  14. package/components/ButtonWithModal/ButtonWithModal.js +6 -6
  15. package/components/ButtonWithModal/ButtonWithModal.js.map +1 -1
  16. package/components/Checkbox/Checkbox.js +9 -9
  17. package/components/Checkbox/Checkbox.js.map +1 -1
  18. package/components/Close/Close.d.ts +1 -1
  19. package/components/Close/Close.d.ts.map +1 -1
  20. package/components/Close/Close.js +9 -9
  21. package/components/Close/Close.js.map +1 -1
  22. package/components/DictionaryTrigger/DictionaryTrigger.js +12 -12
  23. package/components/DictionaryTrigger/DictionaryTrigger.js.map +1 -1
  24. package/components/Dropdown/Dropdown.js.map +1 -1
  25. package/components/Dropdown/styles.module.scss +2 -2
  26. package/components/Duolist/Duolist.js +7 -7
  27. package/components/Duolist/Duolist.js.map +1 -1
  28. package/components/EmptyState/EmptyState.d.ts +13 -0
  29. package/components/EmptyState/EmptyState.d.ts.map +1 -0
  30. package/components/EmptyState/EmptyState.js +10 -0
  31. package/components/EmptyState/EmptyState.js.map +1 -0
  32. package/components/EmptyState/NobodyHome.d.ts +4 -0
  33. package/components/EmptyState/NobodyHome.d.ts.map +1 -0
  34. package/components/EmptyState/NobodyHome.js +155 -0
  35. package/components/EmptyState/NobodyHome.js.map +1 -0
  36. package/components/EmptyState/index.d.ts +4 -0
  37. package/components/EmptyState/index.d.ts.map +1 -0
  38. package/components/EmptyState/index.js +5 -0
  39. package/components/EmptyState/index.js.map +1 -0
  40. package/components/EmptyState/styles.module.scss +26 -0
  41. package/components/EmptyState/styles.module.scss.d.ts +10 -0
  42. package/components/ErrorWrapper/ErrorWrapper.js +4 -4
  43. package/components/ErrorWrapper/ErrorWrapper.js.map +1 -1
  44. package/components/Expander/Expander.js +10 -10
  45. package/components/Expander/Expander.js.map +1 -1
  46. package/components/ExpanderHierarchy/Expander.js +8 -8
  47. package/components/ExpanderHierarchy/Expander.js.map +1 -1
  48. package/components/ExpanderHierarchy/ExpanderButton.js +7 -7
  49. package/components/ExpanderHierarchy/ExpanderButton.js.map +1 -1
  50. package/components/ExpanderHierarchy/ExpanderHierarchy.js +5 -5
  51. package/components/ExpanderHierarchy/ExpanderHierarchy.js.map +1 -1
  52. package/components/ExpanderList/ExpanderList.d.ts +0 -7
  53. package/components/ExpanderList/ExpanderList.d.ts.map +1 -1
  54. package/components/ExpanderList/ExpanderList.js +102 -115
  55. package/components/ExpanderList/ExpanderList.js.map +1 -1
  56. package/components/FormExample/FormExample.js +5 -5
  57. package/components/FormExample/FormExample.js.map +1 -1
  58. package/components/FormGroup/FormGroup.js +4 -4
  59. package/components/FormGroup/FormGroup.js.map +1 -1
  60. package/components/FormGroup/styles.module.scss +3 -3
  61. package/components/FormLayout/FormLayout.js +4 -4
  62. package/components/FormLayout/FormLayout.js.map +1 -1
  63. package/components/GridExample/GridExample.js.map +1 -1
  64. package/components/HelpBubble/HelpBubble.js +14 -14
  65. package/components/HelpBubble/HelpBubble.js.map +1 -1
  66. package/components/HelpBubbleExample/HelpBubbleExample.js.map +1 -1
  67. package/components/HelpPanel/HelpPanel.js +2 -2
  68. package/components/HelpPanel/HelpPanel.js.map +1 -1
  69. package/components/HelpQuestion/HelpQuestion.js +8 -8
  70. package/components/HelpQuestion/HelpQuestion.js.map +1 -1
  71. package/components/HighlightBox/HighlightBox.js +3 -3
  72. package/components/HighlightBox/HighlightBox.js.map +1 -1
  73. package/components/HorizontalScroll/HorizontalScroll.d.ts +2 -1
  74. package/components/HorizontalScroll/HorizontalScroll.d.ts.map +1 -1
  75. package/components/HorizontalScroll/HorizontalScroll.js +39 -25
  76. package/components/HorizontalScroll/HorizontalScroll.js.map +1 -1
  77. package/components/HorizontalScroll/styles.module.scss +1 -2
  78. package/components/Icon/Icon.js +10 -10
  79. package/components/Icon/Icon.js.map +1 -1
  80. package/components/Icons/ActiveMonitoring.js +3 -3
  81. package/components/Icons/ActiveMonitoring.js.map +1 -1
  82. package/components/Icons/AcupunctureBack.js +2 -2
  83. package/components/Icons/AcupunctureBack.js.map +1 -1
  84. package/components/Icons/AdditionalIconInformation.d.ts +44 -0
  85. package/components/Icons/AdditionalIconInformation.d.ts.map +1 -1
  86. package/components/Icons/AdditionalIconInformation.js +12 -1
  87. package/components/Icons/AdditionalIconInformation.js.map +1 -1
  88. package/components/Icons/AlarmClock.js.map +1 -1
  89. package/components/Icons/AlertSignFill.js.map +1 -1
  90. package/components/Icons/AlertSignStroke.js +2 -2
  91. package/components/Icons/AlertSignStroke.js.map +1 -1
  92. package/components/Icons/Amputation.js.map +1 -1
  93. package/components/Icons/Anxiety.js.map +1 -1
  94. package/components/Icons/Apple.js.map +1 -1
  95. package/components/Icons/Archive.js.map +1 -1
  96. package/components/Icons/ArmFlexing.js +3 -3
  97. package/components/Icons/ArmFlexing.js.map +1 -1
  98. package/components/Icons/ArrowDown.js +2 -2
  99. package/components/Icons/ArrowDown.js.map +1 -1
  100. package/components/Icons/ArrowLeft.js.map +1 -1
  101. package/components/Icons/ArrowRight.js.map +1 -1
  102. package/components/Icons/ArrowUp.js +3 -3
  103. package/components/Icons/ArrowUp.js.map +1 -1
  104. package/components/Icons/ArrowUpRight.js.map +1 -1
  105. package/components/Icons/Attachment.js.map +1 -1
  106. package/components/Icons/Atv.js.map +1 -1
  107. package/components/Icons/Avatar.js.map +1 -1
  108. package/components/Icons/AwakePersonOnPillow.js.map +1 -1
  109. package/components/Icons/Baby.js.map +1 -1
  110. package/components/Icons/BandAid.js.map +1 -1
  111. package/components/Icons/BeerAndPills.js.map +1 -1
  112. package/components/Icons/Bell.js +2 -2
  113. package/components/Icons/Bell.js.map +1 -1
  114. package/components/Icons/Bike.js.map +1 -1
  115. package/components/Icons/BirthControl.js.map +1 -1
  116. package/components/Icons/BirthdayCake.js +2 -2
  117. package/components/Icons/BirthdayCake.js.map +1 -1
  118. package/components/Icons/Boat.js.map +1 -1
  119. package/components/Icons/Body.js.map +1 -1
  120. package/components/Icons/Braille.d.ts +5 -0
  121. package/components/Icons/Braille.d.ts.map +1 -0
  122. package/components/Icons/Braille.js +7 -0
  123. package/components/Icons/Braille.js.map +1 -0
  124. package/components/Icons/Brain.js +2 -2
  125. package/components/Icons/Brain.js.map +1 -1
  126. package/components/Icons/BreastReconstruction.js.map +1 -1
  127. package/components/Icons/BreastRemoval.js +2 -2
  128. package/components/Icons/BreastRemoval.js.map +1 -1
  129. package/components/Icons/Breasts.js.map +1 -1
  130. package/components/Icons/BrokenHeart.js +1 -1
  131. package/components/Icons/BrokenHeart.js.map +1 -1
  132. package/components/Icons/BrokenPuzzle.js +2 -2
  133. package/components/Icons/BrokenPuzzle.js.map +1 -1
  134. package/components/Icons/Bus.js.map +1 -1
  135. package/components/Icons/Calendar.js.map +1 -1
  136. package/components/Icons/CalendarChange.js.map +1 -1
  137. package/components/Icons/CalendarCheck.js.map +1 -1
  138. package/components/Icons/CalendarEvent.js +2 -2
  139. package/components/Icons/CalendarEvent.js.map +1 -1
  140. package/components/Icons/CalendarSave.js.map +1 -1
  141. package/components/Icons/Cancer.js.map +1 -1
  142. package/components/Icons/Candle.js +2 -2
  143. package/components/Icons/Candle.js.map +1 -1
  144. package/components/Icons/Car.js.map +1 -1
  145. package/components/Icons/Change.js.map +1 -1
  146. package/components/Icons/Check.js +2 -2
  147. package/components/Icons/Check.js.map +1 -1
  148. package/components/Icons/CheckFill.js +2 -2
  149. package/components/Icons/CheckFill.js.map +1 -1
  150. package/components/Icons/CheckOutline.js.map +1 -1
  151. package/components/Icons/Chest.js.map +1 -1
  152. package/components/Icons/ChevronDown.js.map +1 -1
  153. package/components/Icons/ChevronLeft.js +2 -2
  154. package/components/Icons/ChevronLeft.js.map +1 -1
  155. package/components/Icons/ChevronRight.js +2 -2
  156. package/components/Icons/ChevronRight.js.map +1 -1
  157. package/components/Icons/ChevronUp.js +2 -2
  158. package/components/Icons/ChevronUp.js.map +1 -1
  159. package/components/Icons/ChevronsDown.js.map +1 -1
  160. package/components/Icons/ChevronsUp.js +2 -2
  161. package/components/Icons/ChevronsUp.js.map +1 -1
  162. package/components/Icons/ChildPlaying.js.map +1 -1
  163. package/components/Icons/Cigarette.js +1 -1
  164. package/components/Icons/Cigarette.js.map +1 -1
  165. package/components/Icons/Coins.js.map +1 -1
  166. package/components/Icons/Contacts.js.map +1 -1
  167. package/components/Icons/Copy.js.map +1 -1
  168. package/components/Icons/CoronaCertificate.js.map +1 -1
  169. package/components/Icons/Coronavirus.js.map +1 -1
  170. package/components/Icons/Cough.js +2 -2
  171. package/components/Icons/Cough.js.map +1 -1
  172. package/components/Icons/CriticalHealthInfo.js.map +1 -1
  173. package/components/Icons/Cross.d.ts.map +1 -1
  174. package/components/Icons/Cross.js +1 -1
  175. package/components/Icons/Cross.js.map +1 -1
  176. package/components/Icons/DataExchange.js.map +1 -1
  177. package/components/Icons/DataReceived.js.map +1 -1
  178. package/components/Icons/DataSent.js.map +1 -1
  179. package/components/Icons/Depression.js.map +1 -1
  180. package/components/Icons/DigestiveSystem.js.map +1 -1
  181. package/components/Icons/Dizzy.js.map +1 -1
  182. package/components/Icons/Documents.js +2 -2
  183. package/components/Icons/Documents.js.map +1 -1
  184. package/components/Icons/Dog.js.map +1 -1
  185. package/components/Icons/DonorCard.js +2 -2
  186. package/components/Icons/DonorCard.js.map +1 -1
  187. package/components/Icons/Download.js.map +1 -1
  188. package/components/Icons/Draft.js.map +1 -1
  189. package/components/Icons/EChat.js.map +1 -1
  190. package/components/Icons/Ear.d.ts +5 -0
  191. package/components/Icons/Ear.d.ts.map +1 -0
  192. package/components/Icons/Ear.js +10 -0
  193. package/components/Icons/Ear.js.map +1 -0
  194. package/components/Icons/EarDeaf.d.ts +5 -0
  195. package/components/Icons/EarDeaf.d.ts.map +1 -0
  196. package/components/Icons/EarDeaf.js +7 -0
  197. package/components/Icons/EarDeaf.js.map +1 -0
  198. package/components/Icons/EarHearingAid.d.ts +5 -0
  199. package/components/Icons/EarHearingAid.d.ts.map +1 -0
  200. package/components/Icons/EarHearingAid.js +10 -0
  201. package/components/Icons/EarHearingAid.js.map +1 -0
  202. package/components/Icons/EarNoseThroat.js.map +1 -1
  203. package/components/Icons/EarVolume.d.ts +5 -0
  204. package/components/Icons/EarVolume.d.ts.map +1 -0
  205. package/components/Icons/EarVolume.js +17 -0
  206. package/components/Icons/EarVolume.js.map +1 -0
  207. package/components/Icons/ElderlyPerson.js.map +1 -1
  208. package/components/Icons/Embolization.js.map +1 -1
  209. package/components/Icons/EmergencyCall.d.ts +5 -0
  210. package/components/Icons/EmergencyCall.d.ts.map +1 -0
  211. package/components/Icons/EmergencyCall.js +21 -0
  212. package/components/Icons/EmergencyCall.js.map +1 -0
  213. package/components/Icons/EmoticonAnnoyed.js.map +1 -1
  214. package/components/Icons/EmoticonDelighted.js.map +1 -1
  215. package/components/Icons/EmoticonDisappointed.js +2 -2
  216. package/components/Icons/EmoticonDisappointed.js.map +1 -1
  217. package/components/Icons/EmoticonHappy.js +2 -2
  218. package/components/Icons/EmoticonHappy.js.map +1 -1
  219. package/components/Icons/EmoticonMeh.js +2 -2
  220. package/components/Icons/EmoticonMeh.js.map +1 -1
  221. package/components/Icons/EnterFullScreen.js.map +1 -1
  222. package/components/Icons/Envelope.js.map +1 -1
  223. package/components/Icons/Epilepsy.js +2 -2
  224. package/components/Icons/Epilepsy.js.map +1 -1
  225. package/components/Icons/Eraser.js.map +1 -1
  226. package/components/Icons/ErrorSignFill.js.map +1 -1
  227. package/components/Icons/ErrorSignStroke.js +2 -2
  228. package/components/Icons/ErrorSignStroke.js.map +1 -1
  229. package/components/Icons/EuropeanHealthCard.js.map +1 -1
  230. package/components/Icons/ExitFullScreen.js.map +1 -1
  231. package/components/Icons/Eye.d.ts.map +1 -1
  232. package/components/Icons/Eye.js +17 -3
  233. package/components/Icons/Eye.js.map +1 -1
  234. package/components/Icons/Facebook.js +2 -2
  235. package/components/Icons/Facebook.js.map +1 -1
  236. package/components/Icons/FallingLeaf.js.map +1 -1
  237. package/components/Icons/Female.js.map +1 -1
  238. package/components/Icons/FemaleDoctor.js.map +1 -1
  239. package/components/Icons/Ferry.js.map +1 -1
  240. package/components/Icons/File.js +2 -2
  241. package/components/Icons/File.js.map +1 -1
  242. package/components/Icons/Filter.js +2 -2
  243. package/components/Icons/Filter.js.map +1 -1
  244. package/components/Icons/FingerBleed.js +2 -2
  245. package/components/Icons/FingerBleed.js.map +1 -1
  246. package/components/Icons/FirstAidKit.js.map +1 -1
  247. package/components/Icons/FloppyDisk.js.map +1 -1
  248. package/components/Icons/Football.js.map +1 -1
  249. package/components/Icons/Form.js +2 -2
  250. package/components/Icons/Form.js.map +1 -1
  251. package/components/Icons/Forward.js +2 -2
  252. package/components/Icons/Forward.js.map +1 -1
  253. package/components/Icons/Gallery.js.map +1 -1
  254. package/components/Icons/Garden.js +2 -2
  255. package/components/Icons/Garden.js.map +1 -1
  256. package/components/Icons/GasCan.js.map +1 -1
  257. package/components/Icons/GenderIdentity.js +2 -2
  258. package/components/Icons/GenderIdentity.js.map +1 -1
  259. package/components/Icons/Glasses.d.ts +5 -0
  260. package/components/Icons/Glasses.d.ts.map +1 -0
  261. package/components/Icons/Glasses.js +21 -0
  262. package/components/Icons/Glasses.js.map +1 -0
  263. package/components/Icons/Globe.js +2 -2
  264. package/components/Icons/Globe.js.map +1 -1
  265. package/components/Icons/Graph.js.map +1 -1
  266. package/components/Icons/Group.js.map +1 -1
  267. package/components/Icons/GroupTwins.js +2 -2
  268. package/components/Icons/GroupTwins.js.map +1 -1
  269. package/components/Icons/HTMLFile.d.ts +5 -0
  270. package/components/Icons/HTMLFile.d.ts.map +1 -0
  271. package/components/Icons/HTMLFile.js +10 -0
  272. package/components/Icons/HTMLFile.js.map +1 -0
  273. package/components/Icons/HandWaving.js.map +1 -1
  274. package/components/Icons/HandWithDisease.js.map +1 -1
  275. package/components/Icons/HandsAndHeart.js +2 -2
  276. package/components/Icons/HandsAndHeart.js.map +1 -1
  277. package/components/Icons/HealthClinic.js.map +1 -1
  278. package/components/Icons/HealthWarning.js.map +1 -1
  279. package/components/Icons/HealthcarePerson.js +4 -4
  280. package/components/Icons/HealthcarePerson.js.map +1 -1
  281. package/components/Icons/HealthcarePersonell.js.map +1 -1
  282. package/components/Icons/HearingProtection.d.ts +5 -0
  283. package/components/Icons/HearingProtection.d.ts.map +1 -0
  284. package/components/Icons/HearingProtection.js +24 -0
  285. package/components/Icons/HearingProtection.js.map +1 -0
  286. package/components/Icons/Heart.js +2 -2
  287. package/components/Icons/Heart.js.map +1 -1
  288. package/components/Icons/HeartHands.js.map +1 -1
  289. package/components/Icons/HelpSign.js +2 -2
  290. package/components/Icons/HelpSign.js.map +1 -1
  291. package/components/Icons/HelpingHand.js +2 -2
  292. package/components/Icons/HelpingHand.js.map +1 -1
  293. package/components/Icons/Hemodialysis.js.map +1 -1
  294. package/components/Icons/Hiker.js +2 -2
  295. package/components/Icons/Hiker.js.map +1 -1
  296. package/components/Icons/Hipprosthesis.js +2 -2
  297. package/components/Icons/Hipprosthesis.js.map +1 -1
  298. package/components/Icons/History.js.map +1 -1
  299. package/components/Icons/HivAndAids.js +2 -2
  300. package/components/Icons/HivAndAids.js.map +1 -1
  301. package/components/Icons/Home.js.map +1 -1
  302. package/components/Icons/Hormone.js +2 -2
  303. package/components/Icons/Hormone.js.map +1 -1
  304. package/components/Icons/Hospital.js.map +1 -1
  305. package/components/Icons/Hourglass.js.map +1 -1
  306. package/components/Icons/IconNames.d.ts +1 -1
  307. package/components/Icons/IconNames.d.ts.map +1 -1
  308. package/components/Icons/IconNames.js +11 -0
  309. package/components/Icons/IconNames.js.map +1 -1
  310. package/components/Icons/ImgFile.js +2 -2
  311. package/components/Icons/ImgFile.js.map +1 -1
  312. package/components/Icons/Inbox.js.map +1 -1
  313. package/components/Icons/InfoSignFill.js +2 -2
  314. package/components/Icons/InfoSignFill.js.map +1 -1
  315. package/components/Icons/InfoSignStroke.js.map +1 -1
  316. package/components/Icons/Instagram.js.map +1 -1
  317. package/components/Icons/Intravenous.js.map +1 -1
  318. package/components/Icons/JointPain.js +1 -1
  319. package/components/Icons/JointPain.js.map +1 -1
  320. package/components/Icons/Journal.js.map +1 -1
  321. package/components/Icons/JpgFile.js +2 -2
  322. package/components/Icons/JpgFile.js.map +1 -1
  323. package/components/Icons/Kidney.js.map +1 -1
  324. package/components/Icons/KitchenScale.js +2 -2
  325. package/components/Icons/KitchenScale.js.map +1 -1
  326. package/components/Icons/Kjernejournal.js.map +1 -1
  327. package/components/Icons/Laboratory.js.map +1 -1
  328. package/components/Icons/LaptopBlog.js.map +1 -1
  329. package/components/Icons/LawBook.js +1 -1
  330. package/components/Icons/LawBook.js.map +1 -1
  331. package/components/Icons/LegalDocument.js.map +1 -1
  332. package/components/Icons/LightBulb.js.map +1 -1
  333. package/components/Icons/List.js +2 -2
  334. package/components/Icons/List.js.map +1 -1
  335. package/components/Icons/Location.js.map +1 -1
  336. package/components/Icons/Lock.js +1 -1
  337. package/components/Icons/Lock.js.map +1 -1
  338. package/components/Icons/Login.js.map +1 -1
  339. package/components/Icons/Logout.js +2 -2
  340. package/components/Icons/Logout.js.map +1 -1
  341. package/components/Icons/Lungs.js +1 -1
  342. package/components/Icons/Lungs.js.map +1 -1
  343. package/components/Icons/Makeup.js.map +1 -1
  344. package/components/Icons/MaleDoctor.js.map +1 -1
  345. package/components/Icons/MaleDoctorAndPerson.js.map +1 -1
  346. package/components/Icons/MaleGenitalia.js.map +1 -1
  347. package/components/Icons/Medicine.js.map +1 -1
  348. package/components/Icons/MedicineWarning.js.map +1 -1
  349. package/components/Icons/MentalHealthAdult.js.map +1 -1
  350. package/components/Icons/MentalHealthChild.js.map +1 -1
  351. package/components/Icons/Menu.js +2 -2
  352. package/components/Icons/Menu.js.map +1 -1
  353. package/components/Icons/Microscope.js +1 -1
  354. package/components/Icons/Microscope.js.map +1 -1
  355. package/components/Icons/Minus.js.map +1 -1
  356. package/components/Icons/Mirror.js +2 -2
  357. package/components/Icons/Mirror.js.map +1 -1
  358. package/components/Icons/MobilePhone.js.map +1 -1
  359. package/components/Icons/MotherHoldingBaby.js.map +1 -1
  360. package/components/Icons/MuscleBack.js.map +1 -1
  361. package/components/Icons/MuscleLeg.js.map +1 -1
  362. package/components/Icons/Mushroom.js +2 -2
  363. package/components/Icons/Mushroom.js.map +1 -1
  364. package/components/Icons/Music.js.map +1 -1
  365. package/components/Icons/MusselsAndSalt.js.map +1 -1
  366. package/components/Icons/NoAccess.js +4 -4
  367. package/components/Icons/NoAccess.js.map +1 -1
  368. package/components/Icons/NoEye.d.ts.map +1 -1
  369. package/components/Icons/NoEye.js +17 -3
  370. package/components/Icons/NoEye.js.map +1 -1
  371. package/components/Icons/NoFilter.js.map +1 -1
  372. package/components/Icons/Notepad.js.map +1 -1
  373. package/components/Icons/Osteotomy.js +1 -1
  374. package/components/Icons/Osteotomy.js.map +1 -1
  375. package/components/Icons/PaintRoller.js +2 -2
  376. package/components/Icons/PaintRoller.js.map +1 -1
  377. package/components/Icons/PaperPlane.js.map +1 -1
  378. package/components/Icons/PatientAndPerson.js.map +1 -1
  379. package/components/Icons/Pause.js.map +1 -1
  380. package/components/Icons/PdfFile.js.map +1 -1
  381. package/components/Icons/Pencil.js.map +1 -1
  382. package/components/Icons/PeopleTalking.js.map +1 -1
  383. package/components/Icons/Peritonealdialysis.js.map +1 -1
  384. package/components/Icons/Person.js.map +1 -1
  385. package/components/Icons/PersonAndPatient.js.map +1 -1
  386. package/components/Icons/PersonCancel.js.map +1 -1
  387. package/components/Icons/PersonInXRayMachine.js.map +1 -1
  388. package/components/Icons/PersonOverweight.js.map +1 -1
  389. package/components/Icons/PersonRelaxing.js.map +1 -1
  390. package/components/Icons/PersonWithBrain.js.map +1 -1
  391. package/components/Icons/PersonWithBrokenArm.js.map +1 -1
  392. package/components/Icons/PersonWithCrutches.js.map +1 -1
  393. package/components/Icons/PersonWithJaw.js.map +1 -1
  394. package/components/Icons/PersonWithMagnifyingGlass.js +1 -1
  395. package/components/Icons/PersonWithMagnifyingGlass.js.map +1 -1
  396. package/components/Icons/PersonWithSenses.js.map +1 -1
  397. package/components/Icons/PersonWorking.js.map +1 -1
  398. package/components/Icons/PersonalPlan.js.map +1 -1
  399. package/components/Icons/PizzaSlice.js +1 -1
  400. package/components/Icons/PizzaSlice.js.map +1 -1
  401. package/components/Icons/Plane.js.map +1 -1
  402. package/components/Icons/Plant.js.map +1 -1
  403. package/components/Icons/Play.js.map +1 -1
  404. package/components/Icons/PlusLarge.js.map +1 -1
  405. package/components/Icons/PlusSmall.js.map +1 -1
  406. package/components/Icons/PngFile.js +2 -2
  407. package/components/Icons/PngFile.js.map +1 -1
  408. package/components/Icons/Podcast.js +2 -2
  409. package/components/Icons/Podcast.js.map +1 -1
  410. package/components/Icons/PoisonInformation.js.map +1 -1
  411. package/components/Icons/Pregnant.js.map +1 -1
  412. package/components/Icons/Printer.js.map +1 -1
  413. package/components/Icons/Psychosis.js.map +1 -1
  414. package/components/Icons/Publication.js.map +1 -1
  415. package/components/Icons/Puzzle.js.map +1 -1
  416. package/components/Icons/QrCode.js.map +1 -1
  417. package/components/Icons/Quarrel.js +2 -2
  418. package/components/Icons/Quarrel.js.map +1 -1
  419. package/components/Icons/RadioTherapy.js +2 -2
  420. package/components/Icons/RadioTherapy.js.map +1 -1
  421. package/components/Icons/RadioactiveTreatment.js.map +1 -1
  422. package/components/Icons/Radioiodine.js.map +1 -1
  423. package/components/Icons/Receipt.js.map +1 -1
  424. package/components/Icons/Receptionist.js.map +1 -1
  425. package/components/Icons/Recovery.js +2 -2
  426. package/components/Icons/Recovery.js.map +1 -1
  427. package/components/Icons/Referral.js.map +1 -1
  428. package/components/Icons/Refresh.js.map +1 -1
  429. package/components/Icons/Refund.js.map +1 -1
  430. package/components/Icons/Reply.js.map +1 -1
  431. package/components/Icons/Rocket.js.map +1 -1
  432. package/components/Icons/RtfFile.js +2 -2
  433. package/components/Icons/RtfFile.js.map +1 -1
  434. package/components/Icons/STDs.js +2 -2
  435. package/components/Icons/STDs.js.map +1 -1
  436. package/components/Icons/Save.js.map +1 -1
  437. package/components/Icons/Scale.js.map +1 -1
  438. package/components/Icons/ScreenReader.d.ts +5 -0
  439. package/components/Icons/ScreenReader.d.ts.map +1 -0
  440. package/components/Icons/ScreenReader.js +38 -0
  441. package/components/Icons/ScreenReader.js.map +1 -0
  442. package/components/Icons/Search.js.map +1 -1
  443. package/components/Icons/SectionSign.js +1 -1
  444. package/components/Icons/SectionSign.js.map +1 -1
  445. package/components/Icons/Settings.js.map +1 -1
  446. package/components/Icons/Sexualorientation.js +2 -2
  447. package/components/Icons/Sexualorientation.js.map +1 -1
  448. package/components/Icons/ShakingHand.js.map +1 -1
  449. package/components/Icons/Share.js.map +1 -1
  450. package/components/Icons/Shield.js +2 -2
  451. package/components/Icons/Shield.js.map +1 -1
  452. package/components/Icons/ShuntOperation.js.map +1 -1
  453. package/components/Icons/Skeleton.js.map +1 -1
  454. package/components/Icons/Skin.js.map +1 -1
  455. package/components/Icons/Snake.js +2 -2
  456. package/components/Icons/Snake.js.map +1 -1
  457. package/components/Icons/Snapchat.js.map +1 -1
  458. package/components/Icons/SortDown.js +2 -2
  459. package/components/Icons/SortDown.js.map +1 -1
  460. package/components/Icons/SortUp.js +2 -2
  461. package/components/Icons/SortUp.js.map +1 -1
  462. package/components/Icons/SpeechBubble.js.map +1 -1
  463. package/components/Icons/Spray.js +2 -2
  464. package/components/Icons/Spray.js.map +1 -1
  465. package/components/Icons/Stopwatch.js +2 -2
  466. package/components/Icons/Stopwatch.js.map +1 -1
  467. package/components/Icons/Sun.d.ts +5 -0
  468. package/components/Icons/Sun.d.ts.map +1 -0
  469. package/components/Icons/Sun.js +24 -0
  470. package/components/Icons/Sun.js.map +1 -0
  471. package/components/Icons/SupportingPerson.js.map +1 -1
  472. package/components/Icons/Surgery.js +1 -1
  473. package/components/Icons/Surgery.js.map +1 -1
  474. package/components/Icons/Syringe.js +3 -3
  475. package/components/Icons/Syringe.js.map +1 -1
  476. package/components/Icons/Taxi.js.map +1 -1
  477. package/components/Icons/TeddyBear.js +2 -2
  478. package/components/Icons/TeddyBear.js.map +1 -1
  479. package/components/Icons/Teenagers.js.map +1 -1
  480. package/components/Icons/ThinkingAboutBaby.js +2 -2
  481. package/components/Icons/ThinkingAboutBaby.js.map +1 -1
  482. package/components/Icons/Ticket.js.map +1 -1
  483. package/components/Icons/TimePassing.js.map +1 -1
  484. package/components/Icons/Tombstone.js.map +1 -1
  485. package/components/Icons/Toolbox.js.map +1 -1
  486. package/components/Icons/Tooth.js.map +1 -1
  487. package/components/Icons/TotalKneeProsthesis.js.map +1 -1
  488. package/components/Icons/Train.js.map +1 -1
  489. package/components/Icons/Transplantation.js.map +1 -1
  490. package/components/Icons/TrashCan.js.map +1 -1
  491. package/components/Icons/TravelRoute.js.map +1 -1
  492. package/components/Icons/TriangleX.js.map +1 -1
  493. package/components/Icons/Twitter.js.map +1 -1
  494. package/components/Icons/Undo.js +2 -2
  495. package/components/Icons/Undo.js.map +1 -1
  496. package/components/Icons/UniProsthesis.js +2 -2
  497. package/components/Icons/UniProsthesis.js.map +1 -1
  498. package/components/Icons/Upload.js.map +1 -1
  499. package/components/Icons/UserOrganization.js.map +1 -1
  500. package/components/Icons/Vaccine.js.map +1 -1
  501. package/components/Icons/VerticalDots.js.map +1 -1
  502. package/components/Icons/VideoCamera.js.map +1 -1
  503. package/components/Icons/VideoChat.js.map +1 -1
  504. package/components/Icons/Wallet.js.map +1 -1
  505. package/components/Icons/Watch.js.map +1 -1
  506. package/components/Icons/Website.js.map +1 -1
  507. package/components/Icons/Wheelchair.js +2 -2
  508. package/components/Icons/Wheelchair.js.map +1 -1
  509. package/components/Icons/WheelchairActive.js.map +1 -1
  510. package/components/Icons/Window.js +2 -2
  511. package/components/Icons/Window.js.map +1 -1
  512. package/components/Icons/WordDocument.js.map +1 -1
  513. package/components/Icons/WorkSuitcase.js +2 -2
  514. package/components/Icons/WorkSuitcase.js.map +1 -1
  515. package/components/Icons/X.js +2 -2
  516. package/components/Icons/X.js.map +1 -1
  517. package/components/Icons/XOutline.js +2 -2
  518. package/components/Icons/XOutline.js.map +1 -1
  519. package/components/Icons/XmlFile.js +2 -2
  520. package/components/Icons/XmlFile.js.map +1 -1
  521. package/components/Icons/YouTube.js +1 -1
  522. package/components/Icons/YouTube.js.map +1 -1
  523. package/components/Icons/Zoom.js.map +1 -1
  524. package/components/Illustration/Illustration.d.ts +6 -0
  525. package/components/Illustration/Illustration.d.ts.map +1 -0
  526. package/components/Illustration/index.d.ts +2 -0
  527. package/components/Illustration/index.d.ts.map +1 -0
  528. package/components/Illustration/index.js +2 -0
  529. package/components/Illustration/index.js.map +1 -0
  530. package/components/Input/Input.d.ts.map +1 -1
  531. package/components/Input/Input.js +65 -61
  532. package/components/Input/Input.js.map +1 -1
  533. package/components/Input/index.d.ts.map +1 -1
  534. package/components/Label/Label.js +36 -36
  535. package/components/Label/Label.js.map +1 -1
  536. package/components/Label/SubLabel.js +5 -5
  537. package/components/Label/SubLabel.js.map +1 -1
  538. package/components/Label/styles.module.scss +5 -0
  539. package/components/Label/styles.module.scss.d.ts +1 -0
  540. package/components/LazyIcon/LazyIcon.js +1 -1
  541. package/components/LazyIcon/LazyIcon.js.map +1 -1
  542. package/components/LinkList/LinkList.d.ts +0 -4
  543. package/components/LinkList/LinkList.d.ts.map +1 -1
  544. package/components/LinkList/LinkList.js +8 -8
  545. package/components/LinkList/LinkList.js.map +1 -1
  546. package/components/List/List.js +2 -2
  547. package/components/List/List.js.map +1 -1
  548. package/components/ListHeader/ListHeader.js +12 -12
  549. package/components/ListHeader/ListHeader.js.map +1 -1
  550. package/components/ListHeader/ListHeaderText/ListHeaderText.js +6 -6
  551. package/components/ListHeader/ListHeaderText/ListHeaderText.js.map +1 -1
  552. package/components/Loader/Loader.js.map +1 -1
  553. package/components/Logo/Logo.js +2 -2
  554. package/components/Logo/Logo.js.map +1 -1
  555. package/components/MaxCharacters/MaxCharacters.js +6 -6
  556. package/components/MaxCharacters/MaxCharacters.js.map +1 -1
  557. package/components/Modal/Modal.js.map +1 -1
  558. package/components/NotificationPanel/DetailButton/DetailButton.js +5 -5
  559. package/components/NotificationPanel/DetailButton/DetailButton.js.map +1 -1
  560. package/components/NotificationPanel/NotificationPanel.d.ts.map +1 -1
  561. package/components/NotificationPanel/NotificationPanel.js +32 -31
  562. package/components/NotificationPanel/NotificationPanel.js.map +1 -1
  563. package/components/NotificationPanel/styles.module.scss +8 -0
  564. package/components/NotificationPanel/styles.module.scss.d.ts +1 -0
  565. package/components/Panel/Panel.d.ts +40 -40
  566. package/components/Panel/Panel.d.ts.map +1 -1
  567. package/components/Panel/Panel.js +167 -122
  568. package/components/Panel/Panel.js.map +1 -1
  569. package/components/Panel/styles.module.scss +137 -191
  570. package/components/Panel/styles.module.scss.d.ts +24 -31
  571. package/components/PanelList/PanelList.js +4 -4
  572. package/components/PanelList/PanelList.js.map +1 -1
  573. package/components/PopMenu/PopMenu.d.ts.map +1 -1
  574. package/components/PopMenu/PopMenu.js +58 -56
  575. package/components/PopMenu/PopMenu.js.map +1 -1
  576. package/components/PopOver/PopOver.js +8 -8
  577. package/components/PopOver/PopOver.js.map +1 -1
  578. package/components/Portal/index.js +3 -3
  579. package/components/PromoPanel/PromoPanel.d.ts +33 -0
  580. package/components/PromoPanel/PromoPanel.d.ts.map +1 -0
  581. package/components/PromoPanel/PromoPanel.js +42 -0
  582. package/components/PromoPanel/PromoPanel.js.map +1 -0
  583. package/components/PromoPanel/index.d.ts +4 -0
  584. package/components/PromoPanel/index.d.ts.map +1 -0
  585. package/components/PromoPanel/index.js +5 -0
  586. package/components/PromoPanel/index.js.map +1 -0
  587. package/components/PromoPanel/styles.module.scss +115 -0
  588. package/components/PromoPanel/styles.module.scss.d.ts +16 -0
  589. package/components/RadioButton/RadioButton.js +13 -13
  590. package/components/RadioButton/RadioButton.js.map +1 -1
  591. package/components/RadioButton/styles.module.scss +2 -2
  592. package/components/Select/Select.js +10 -10
  593. package/components/Select/Select.js.map +1 -1
  594. package/components/ServiceMessage/ServiceMessage.d.ts +0 -5
  595. package/components/ServiceMessage/ServiceMessage.d.ts.map +1 -1
  596. package/components/ServiceMessage/ServiceMessage.js +12 -12
  597. package/components/ServiceMessage/ServiceMessage.js.map +1 -1
  598. package/components/SharingStatus/SharingStatus.d.ts +21 -0
  599. package/components/SharingStatus/SharingStatus.d.ts.map +1 -0
  600. package/components/SharingStatus/SharingStatus.js +16 -0
  601. package/components/SharingStatus/SharingStatus.js.map +1 -0
  602. package/components/SharingStatus/index.d.ts +4 -0
  603. package/components/SharingStatus/index.d.ts.map +1 -0
  604. package/components/SharingStatus/index.js +5 -0
  605. package/components/SharingStatus/index.js.map +1 -0
  606. package/components/SharingStatus/styles.module.scss +74 -0
  607. package/components/SharingStatus/styles.module.scss.d.ts +22 -0
  608. package/components/Slider/Slider.d.ts +12 -0
  609. package/components/Slider/Slider.d.ts.map +1 -1
  610. package/components/Slider/Slider.js +124 -84
  611. package/components/Slider/Slider.js.map +1 -1
  612. package/components/Slider/styles.module.scss +51 -8
  613. package/components/Slider/styles.module.scss.d.ts +7 -0
  614. package/components/Spacer/Spacer.js.map +1 -1
  615. package/components/StatusDot/StatusDot.js.map +1 -1
  616. package/components/StatusDot/styles.module.scss +12 -3
  617. package/components/Step/Step.js +7 -7
  618. package/components/Step/Step.js.map +1 -1
  619. package/components/StepButtons/StepButtons.js.map +1 -1
  620. package/components/Stepper/Dot.js +8 -8
  621. package/components/Stepper/DotList.js +1 -1
  622. package/components/Stepper/DotList.js.map +1 -1
  623. package/components/Stepper/Stepper.js +8 -8
  624. package/components/Stepper/Stepper.js.map +1 -1
  625. package/components/Table/Table.d.ts +4 -0
  626. package/components/Table/Table.d.ts.map +1 -1
  627. package/components/Table/Table.js +30 -28
  628. package/components/Table/Table.js.map +1 -1
  629. package/components/Table/TableBody/TableBody.js +5 -5
  630. package/components/Table/TableBody/TableBody.js.map +1 -1
  631. package/components/Table/TableCell/TableCell.js +5 -5
  632. package/components/Table/TableCell/TableCell.js.map +1 -1
  633. package/components/Table/TableExpandedRow/TableExpandedRow.js +8 -8
  634. package/components/Table/TableExpandedRow/TableExpandedRow.js.map +1 -1
  635. package/components/Table/TableExpanderCell/TableExpanderCell.js +17 -17
  636. package/components/Table/TableExpanderCell/TableExpanderCell.js.map +1 -1
  637. package/components/Table/TableExpanderCell/TableExpanderCellMobile.js +5 -5
  638. package/components/Table/TableExpanderCell/TableExpanderCellMobile.js.map +1 -1
  639. package/components/Table/TableHead/TableHead.js +2 -2
  640. package/components/Table/TableHead/TableHead.js.map +1 -1
  641. package/components/Table/TableHeadCell/TableHeadCell.d.ts.map +1 -1
  642. package/components/Table/TableHeadCell/TableHeadCell.js +21 -24
  643. package/components/Table/TableHeadCell/TableHeadCell.js.map +1 -1
  644. package/components/Table/TableRow/TableRow.js +8 -8
  645. package/components/Table/TableRow/TableRow.js.map +1 -1
  646. package/components/Table/styles.module.scss +0 -12
  647. package/components/Table/styles.module.scss.d.ts +0 -1
  648. package/components/Tag/Tag.js +7 -7
  649. package/components/Tag/Tag.js.map +1 -1
  650. package/components/TagList/TagList.js +2 -2
  651. package/components/TagList/TagList.js.map +1 -1
  652. package/components/Textarea/Textarea.d.ts.map +1 -1
  653. package/components/Textarea/Textarea.js +61 -57
  654. package/components/Textarea/Textarea.js.map +1 -1
  655. package/components/Tile/Tile.d.ts +1 -0
  656. package/components/Tile/Tile.d.ts.map +1 -1
  657. package/components/Tile/Tile.js +39 -25
  658. package/components/Tile/Tile.js.map +1 -1
  659. package/components/Tile/styles.module.scss +4 -0
  660. package/components/Tile/styles.module.scss.d.ts +1 -0
  661. package/components/Title/Title.js +7 -7
  662. package/components/Title/Title.js.map +1 -1
  663. package/components/Tooltip/Tooltip.js +17 -17
  664. package/components/Tooltip/Tooltip.js.map +1 -1
  665. package/components/Tooltip/TooltipWord/TooltipWord.js +5 -5
  666. package/components/Tooltip/TooltipWord/TooltipWord.js.map +1 -1
  667. package/components/TooltipExample/TooltipExample.js.map +1 -1
  668. package/components/Trigger/HelpSign.js.map +1 -1
  669. package/components/Trigger/Trigger.js +2 -2
  670. package/components/Trigger/Trigger.js.map +1 -1
  671. package/components/Validation/Validation.js.map +1 -1
  672. package/constants.d.ts +3 -0
  673. package/constants.d.ts.map +1 -1
  674. package/constants.js +5 -5
  675. package/constants.js.map +1 -1
  676. package/hoc/withBreakpoint/withBreakpoint.js +6 -6
  677. package/hoc/withBreakpoint/withBreakpoint.js.map +1 -1
  678. package/hooks/usePseudoClasses.d.ts.map +1 -1
  679. package/hooks/usePseudoClasses.js +11 -11
  680. package/hooks/usePseudoClasses.js.map +1 -1
  681. package/package.json +1 -1
  682. package/scss/_font-settings.scss +2 -0
  683. package/scss/_palette.scss +2 -1
  684. package/scss/_title.scss +13 -0
  685. package/scss/typography.module.scss +1 -8
  686. package/utils/component.js +2 -2
package/CHANGELOG.md CHANGED
@@ -1,3 +1,252 @@
1
+ ## 6.0.0-beta.14 (2024-01-24)
2
+
3
+ ### Features
4
+
5
+ - lagt til ikonsøk i ikonwall story ([26b0446](https://github.com/helsenorge/designsystem/commit/26b044688c29a530c5605c1d938d208c8adc9e0c)),
6
+ closes [#311212](https://github.com/helsenorge/designsystem/issues/311212)
7
+
8
+ ### Bug Fixes
9
+
10
+ - datepicker styling feil og validering tweak
11
+ ([7bbdaa8](https://github.com/helsenorge/designsystem/commit/7bbdaa8e933d9ebbcc48d11647b3a8d6033502e9)), closes
12
+ [#316824](https://github.com/helsenorge/designsystem/issues/316824)
13
+ - lange ord i dropdown havner på ny linje
14
+ ([a69ab16](https://github.com/helsenorge/designsystem/commit/a69ab167e99e2e408d6168ef710f9e8aa4f7615a)), closes
15
+ [#313017](https://github.com/helsenorge/designsystem/issues/313017)
16
+
17
+ ## 6.0.0-beta.13 (2024-01-08)
18
+
19
+ ## 6.0.0-beta.12 (2024-01-08)
20
+
21
+ ## 6.0.0-beta.11 (2024-01-08)
22
+
23
+ ## 6.0.0-beta.10 (2023-11-22)
24
+
25
+ ### Features
26
+
27
+ - iconwall med alle ikoner og siste master merge
28
+ ([8007aec](https://github.com/helsenorge/designsystem/commit/8007aec989f53a4dc23d712852fcbc0e1adf0d7e)), closes
29
+ [#312799](https://github.com/helsenorge/designsystem/issues/312799)
30
+
31
+ ## 6.0.0-beta.9 (2023-11-13)
32
+
33
+ ## 6.0.0-beta.7 (2023-10-25)
34
+
35
+ ### Bug Fixes
36
+
37
+ - ikon-import ([c3d3ae1](https://github.com/helsenorge/designsystem/commit/c3d3ae18b3792918953f6f447500888b019f3444))
38
+
39
+ ## 6.0.0-beta.6 (2023-10-24)
40
+
41
+ ### Features
42
+
43
+ - typesikkerhet ved lazy loading av ikoner
44
+ ([0d3f3fb](https://github.com/helsenorge/designsystem/commit/0d3f3fb734e503bd26429a8e84477bd53480dd93)), closes
45
+ [#301359](https://github.com/helsenorge/designsystem/issues/301359)
46
+
47
+ ## 6.0.0-beta.5 (2023-10-24)
48
+
49
+ ### ⚠ BREAKING CHANGES
50
+
51
+ - props endret fra variant til size. bigform er nå large. normal er nå medium.
52
+
53
+ ### Reverts
54
+
55
+ - legg tilbake additionaliconinformation
56
+ ([0b46b2c](https://github.com/helsenorge/designsystem/commit/0b46b2cbb029e9d85d021d477ef49bf24788c0d8))
57
+
58
+ ### Code Refactoring
59
+
60
+ - formvariant heter nå formsize ([a8ef22c](https://github.com/helsenorge/designsystem/commit/a8ef22c9b4efdf063d4a861946f6407b60a5a580)),
61
+ closes [#305247](https://github.com/helsenorge/designsystem/issues/305247)
62
+
63
+ ## 6.0.0-beta.4 (2023-10-23)
64
+
65
+ ### Features
66
+
67
+ - komponenter støtter lazyicon ([0148ee6](https://github.com/helsenorge/designsystem/commit/0148ee6b3c72dedadbecb21105a729af1487a445)),
68
+ closes [#301359](https://github.com/helsenorge/designsystem/issues/301359)
69
+
70
+ ## 6.0.0-beta.3 (2023-10-20)
71
+
72
+ ### Bug Fixes
73
+
74
+ - lazy icons fallback tar like mye plass som ikon
75
+ ([d5207c8](https://github.com/helsenorge/designsystem/commit/d5207c8f538cd8a111356af9e4913f29ed032f58)), closes
76
+ [#301359](https://github.com/helsenorge/designsystem/issues/301359)
77
+
78
+ ## 6.0.0-beta.2 (2023-10-18)
79
+
80
+ ## 6.0.0-beta.1 (2023-10-18)
81
+
82
+ ## 6.0.0-beta.0 (2023-10-18)
83
+
84
+ ### ⚠ BREAKING CHANGES
85
+
86
+ - Ikon-komponent er flyttet fra components/Icons/Icon til components/Icon/Icon
87
+
88
+ Ikonene ligger fortsatt i components/Icons, f.eks. components/Icons/Minus
89
+
90
+ Dette er fordi vi skal kunne dynamisk importere alt som ligger i Icons, så da bør det bare være ikoner der.
91
+
92
+ ### Features
93
+
94
+ - lazy loading av ikoner ([f688e78](https://github.com/helsenorge/designsystem/commit/f688e78a955bb43a2efa92b72b208c582dbfdd1d)), closes
95
+ [#301359](https://github.com/helsenorge/designsystem/issues/301359)
96
+
97
+ ## [5.13.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv5.12.0&targetVersion=GTv5.13.0) (2024-01-09)
98
+
99
+ ### Features
100
+
101
+ - tile stotter react children ([161a49a](https://github.com/helsenorge/designsystem/commit/161a49ae1ec4ec165bcf565b870b1f608f8fe90c)),
102
+ closes [#310764](https://github.com/helsenorge/designsystem/issues/310764)
103
+
104
+ ## [5.12.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv5.11.0&targetVersion=GTv5.12.0) (2024-01-04)
105
+
106
+ ### Bug Fixes
107
+
108
+ - datepicker eksporterer funksjoner riktig
109
+ ([46285e5](https://github.com/helsenorge/designsystem/commit/46285e5e4cacf0f1fa224fcaa42eb75b73ce24e1)), closes
110
+ [#315273](https://github.com/helsenorge/designsystem/issues/315273)
111
+ - justert fontstørrelse på legend i form
112
+ ([afd858b](https://github.com/helsenorge/designsystem/commit/afd858b850330bb13d0dca6b11aae50f7e1cd17c)), closes
113
+ [#316149](https://github.com/helsenorge/designsystem/issues/316149)
114
+ - sentrere tekst på notificationpanel
115
+ ([5188c22](https://github.com/helsenorge/designsystem/commit/5188c22bbdd920479655eab87dd19657b84ed27e)), closes
116
+ [#311338](https://github.com/helsenorge/designsystem/issues/311338)
117
+
118
+ ## [5.11.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv5.10.0&targetVersion=GTv5.11.0) (2023-12-18)
119
+
120
+ ### Bug Fixes
121
+
122
+ - justeringer på button ([927e486](https://github.com/helsenorge/designsystem/commit/927e486876be4cbe2bb6c9b6d022e032439a2a11)), closes
123
+ [#308138](https://github.com/helsenorge/designsystem/issues/308138)
124
+ - oppdatert metadata til ikoner ([3b3510b](https://github.com/helsenorge/designsystem/commit/3b3510bb19da59156adb077e15137eb855cb1722)),
125
+ closes [#316105](https://github.com/helsenorge/designsystem/issues/316105)
126
+
127
+ ## [5.10.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv5.9.2&targetVersion=GTv5.10.0) (2023-12-13)
128
+
129
+ ### Features
130
+
131
+ - button onblur lagt til ([e30e815](https://github.com/helsenorge/designsystem/commit/e30e8152dcac4341af0879e6b5379b6c992701b2)), closes
132
+ [#315943](https://github.com/helsenorge/designsystem/issues/315943)
133
+
134
+ ### Bug Fixes
135
+
136
+ - input og textarea har ikke defaultValue som default
137
+ ([2f0a39d](https://github.com/helsenorge/designsystem/commit/2f0a39da5a85558488fdb14280888ceb1a3f49ec)), closes
138
+ [#309847](https://github.com/helsenorge/designsystem/issues/309847)
139
+
140
+ ## [5.9.2](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv5.9.1&targetVersion=GTv5.9.2) (2023-12-12)
141
+
142
+ ### Bug Fixes
143
+
144
+ - slider forenklet emojirendring ([9df0d90](https://github.com/helsenorge/designsystem/commit/9df0d90e58c16f0609ce2c0de6c770f10420e7eb)),
145
+ closes [#313810](https://github.com/helsenorge/designsystem/issues/313810)
146
+
147
+ ## [5.9.1](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv5.9.0&targetVersion=GTv5.9.1) (2023-12-11)
148
+
149
+ ### Bug Fixes
150
+
151
+ - promopanel har position=relative ([360a762](https://github.com/helsenorge/designsystem/commit/360a762ec3ce63cfe870f6cd7300af9fb9b83a5e)),
152
+ closes [#315387](https://github.com/helsenorge/designsystem/issues/315387)
153
+
154
+ ## [5.9.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv5.8.0&targetVersion=GTv5.9.0) (2023-12-11)
155
+
156
+ ### Features
157
+
158
+ - promopanel ([a190968](https://github.com/helsenorge/designsystem/commit/a190968285e95e09c20590cbdf14799165affb30)), closes
159
+ [#315387](https://github.com/helsenorge/designsystem/issues/315387)
160
+
161
+ ### Bug Fixes
162
+
163
+ - label kan og sendes inn til emoji ([6d5d680](https://github.com/helsenorge/designsystem/commit/6d5d680d31b0c797230f3539305659bc073ddb3a)),
164
+ closes [#310765](https://github.com/helsenorge/designsystem/issues/310765)
165
+ - tabellheader med sortering har ikke underline
166
+ ([f191991](https://github.com/helsenorge/designsystem/commit/f191991cb9e3f32bda2df281b703833d12dfb5db)), closes
167
+ [#315407](https://github.com/helsenorge/designsystem/issues/315407)
168
+
169
+ ## [5.8.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv5.7.0&targetVersion=GTv5.8.0) (2023-12-08)
170
+
171
+ ### Features
172
+
173
+ - emptystate ([7e1d9a8](https://github.com/helsenorge/designsystem/commit/7e1d9a87a75009ebd7a5b313fbed946c905fdabc))
174
+
175
+ ### Bug Fixes
176
+
177
+ - anchorlink har ikke hardkodet font-size/line-height
178
+ ([687bac1](https://github.com/helsenorge/designsystem/commit/687bac112e20f8e5c09c5b99623401baf01d5bd4))
179
+ - slider aria fix for emoji og step labels
180
+ ([1ca0c1e](https://github.com/helsenorge/designsystem/commit/1ca0c1e8b979357ec2544248a2c4657ed25509fe)), closes
181
+ [#313810](https://github.com/helsenorge/designsystem/issues/313810) [#310765](https://github.com/helsenorge/designsystem/issues/310765)
182
+
183
+ ## [5.7.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv5.6.0&targetVersion=GTv5.7.0) (2023-12-08)
184
+
185
+ ### Features
186
+
187
+ - tabell med horizontal scroll støtter aria-atributter
188
+ ([5f0fb2c](https://github.com/helsenorge/designsystem/commit/5f0fb2cd1c86c7ee6348f3ddd144b823a10fe6be)), closes
189
+ [#314191](https://github.com/helsenorge/designsystem/issues/314191)
190
+
191
+ ## [5.6.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv5.5.0&targetVersion=GTv5.6.0) (2023-12-07)
192
+
193
+ ### Features
194
+
195
+ - legg til default tekst på sharingstatus
196
+ ([8c8385d](https://github.com/helsenorge/designsystem/commit/8c8385da218e2c0213b95cab7cf97075d0207393)), closes
197
+ [#315571](https://github.com/helsenorge/designsystem/issues/315571)
198
+
199
+ ### Bug Fixes
200
+
201
+ - defaultValue i input og textarea oppdaterer antall tegn
202
+ ([5799a7d](https://github.com/helsenorge/designsystem/commit/5799a7d0ee39c789f0eb22b9569c962faa595ebb)), closes
203
+ [#309847](https://github.com/helsenorge/designsystem/issues/309847)
204
+ - tom tabell-celle i head er td, ikke th
205
+ ([548f1bb](https://github.com/helsenorge/designsystem/commit/548f1bb5e28138fda3be750a2e3a00aab7ddba0a)), closes
206
+ [#313691](https://github.com/helsenorge/designsystem/issues/313691)
207
+
208
+ ## [5.5.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv5.4.1&targetVersion=GTv5.5.0) (2023-12-05)
209
+
210
+ ### Features
211
+
212
+ - datetimepickerwrapper får legend prop
213
+ ([739df6c](https://github.com/helsenorge/designsystem/commit/739df6c35a31c2ad8cb2ee259cb0701540b68d7e))
214
+ - opprett ny komponent sharingstatus
215
+ ([bd8fc70](https://github.com/helsenorge/designsystem/commit/bd8fc70397f2b58825f50f7bb391746faa5c59ee)), closes
216
+ [#312652](https://github.com/helsenorge/designsystem/issues/312652)
217
+ - slider ny funksjonalitet ([2e7a269](https://github.com/helsenorge/designsystem/commit/2e7a269af5422a710224504a418720b40c534840)), closes
218
+ [#310765](https://github.com/helsenorge/designsystem/issues/310765)
219
+
220
+ ## [5.4.1](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv5.4.0&targetVersion=GTv5.4.1) (2023-11-24)
221
+
222
+ ### Bug Fixes
223
+
224
+ - endret plassering på statusdot og at statusdot forblir rund
225
+ ([562726f](https://github.com/helsenorge/designsystem/commit/562726ff8b186753b0f0dd98735b335603a2fcd3)), closes
226
+ [#311236](https://github.com/helsenorge/designsystem/issues/311236)
227
+
228
+ ## [5.4.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv5.3.0&targetVersion=GTv5.4.0) (2023-11-21)
229
+
230
+ ### Features
231
+
232
+ - lagt til nye ikoner ([924fc90](https://github.com/helsenorge/designsystem/commit/924fc903960165211519760412e1de3bb65b85de)), closes
233
+ [#312799](https://github.com/helsenorge/designsystem/issues/312799)
234
+
235
+ ## [5.3.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv5.2.0&targetVersion=GTv5.3.0) (2023-11-17)
236
+
237
+ ### Features
238
+
239
+ - panel refaktorering og contentHeader prop
240
+ ([42b0a03](https://github.com/helsenorge/designsystem/commit/42b0a03fa1f7d28ca966f3105dcaded49bcd886d)), closes
241
+ [#304524](https://github.com/helsenorge/designsystem/issues/304524) [#304573](https://github.com/helsenorge/designsystem/issues/304573)
242
+ [#304575](https://github.com/helsenorge/designsystem/issues/304575) [#304590](https://github.com/helsenorge/designsystem/issues/304590)
243
+
244
+ ### Bug Fixes
245
+
246
+ - popmenu knapp stopper event propagation
247
+ ([baa56a1](https://github.com/helsenorge/designsystem/commit/baa56a1780c027db01989ff0cd9b14fce6faab99)), closes
248
+ [#313765](https://github.com/helsenorge/designsystem/issues/313765)
249
+
1
250
  ## [5.2.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv5.1.4&targetVersion=GTv5.2.0) (2023-11-02)
2
251
 
3
252
  ### Bug Fixes
@@ -4,21 +4,21 @@ import { AnalyticsId as y, IconSize as A } from "../../constants.js";
4
4
  import { useHover as E } from "../../hooks/useHover.js";
5
5
  import { getColor as m } from "../../theme/currys/color.js";
6
6
  import { Icon as N } from "../Icon/Icon.js";
7
- import C from "../Icons/ArrowUpRight.js";
7
+ import _ from "../Icons/ArrowUpRight.js";
8
8
  import r from "./styles.module.scss";
9
- const I = e.forwardRef((i, f) => {
10
- const { id: p, href: h, children: d, className: u, target: o = "_self", htmlMarkup: t = "a", onClick: k, testId: b } = i, n = o === "_blank", { hoverRef: a, isHovered: g } = E(
9
+ const C = e.forwardRef((i, f) => {
10
+ const { id: p, href: d, children: h, className: u, target: o = "_self", htmlMarkup: t = "a", onClick: k, testId: b } = i, n = o === "_blank", { hoverRef: a, isHovered: g } = E(
11
11
  f
12
12
  ), c = v(r.anchorlink, u), l = {
13
13
  id: p,
14
14
  "data-testid": b,
15
15
  "data-analyticsid": y.AnchorLink,
16
16
  onClick: k
17
- }, s = () => /* @__PURE__ */ e.createElement(e.Fragment, null, d, n && /* @__PURE__ */ e.createElement(
17
+ }, s = () => /* @__PURE__ */ e.createElement(e.Fragment, null, h, n && /* @__PURE__ */ e.createElement(
18
18
  N,
19
19
  {
20
20
  className: r.anchorlink__icon,
21
- svgIcon: C,
21
+ svgIcon: _,
22
22
  color: m("blueberry", 600),
23
23
  hoverColor: m("blueberry", 700),
24
24
  size: A.XSmall,
@@ -28,7 +28,7 @@ const I = e.forwardRef((i, f) => {
28
28
  return /* @__PURE__ */ e.createElement(e.Fragment, null, t === "a" && /* @__PURE__ */ e.createElement(
29
29
  "a",
30
30
  {
31
- href: h,
31
+ href: d,
32
32
  target: o,
33
33
  className: c,
34
34
  rel: n ? "noopener noreferrer" : void 0,
@@ -46,7 +46,7 @@ const I = e.forwardRef((i, f) => {
46
46
  },
47
47
  /* @__PURE__ */ e.createElement("span", { className: c }, s())
48
48
  ));
49
- }), H = I;
49
+ }), H = C;
50
50
  export {
51
51
  H as default
52
52
  };
@@ -1 +1 @@
1
- {"version":3,"file":"AnchorLink.js","sources":["../../../src/components/AnchorLink/AnchorLink.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { AnalyticsId } from '../../constants';\nimport { useHover } from '../../hooks/useHover';\nimport { getColor } from '../../theme/currys';\nimport Icon, { IconSize } from '../Icon';\nimport ArrowUpRight from '../Icons/ArrowUpRight';\n\nimport AnchorLinkStyles from './styles.module.scss';\n\nexport type AnchorLinkTargets = '_self' | '_blank' | '_parent';\n\nexport type AnchorLinkTags = 'a' | 'button';\n\ninterface AnchorLinkProps {\n /** Sets the content of the <a> tag */\n children: React.ReactNode;\n /** URL to link to */\n href?: string;\n /** Gives a unique id to the anchor-link :) */\n id?: string;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the target type of the <a> tag. _blank adds an arrow icon at the end of the link */\n target?: AnchorLinkTargets;\n /** HTML markup for anchor link. Default: a */\n htmlMarkup?: AnchorLinkTags;\n /** Function that is called when clicked */\n onClick?: (e?: React.MouseEvent<HTMLElement, MouseEvent> | React.FormEvent<{}> | React.KeyboardEvent<HTMLUListElement> | null) => void;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nconst AnchorLink = React.forwardRef<HTMLAnchorElement | HTMLButtonElement, AnchorLinkProps>((props, ref) => {\n const { id, href, children, className, target = '_self', htmlMarkup = 'a', onClick, testId } = props;\n const external = target === '_blank';\n const { hoverRef, isHovered } = useHover<HTMLButtonElement | HTMLAnchorElement>(\n ref as React.RefObject<HTMLButtonElement | HTMLAnchorElement>\n );\n const anchorClasses = classNames(AnchorLinkStyles.anchorlink, className);\n\n const commonProps = {\n id,\n ['data-testid']: testId,\n ['data-analyticsid']: AnalyticsId.AnchorLink,\n onClick,\n };\n\n const renderContent = () => (\n <>\n {children}\n {external && (\n <Icon\n className={AnchorLinkStyles.anchorlink__icon}\n svgIcon={ArrowUpRight}\n color={getColor('blueberry', 600)}\n hoverColor={getColor('blueberry', 700)}\n size={IconSize.XSmall}\n isHovered={isHovered}\n />\n )}\n </>\n );\n\n return (\n <>\n {htmlMarkup === 'a' && (\n <a\n href={href}\n target={target}\n className={anchorClasses}\n rel={external ? 'noopener noreferrer' : undefined}\n ref={hoverRef as React.RefObject<HTMLAnchorElement>}\n {...commonProps}\n >\n {renderContent()}\n </a>\n )}\n {htmlMarkup === 'button' && (\n <button\n type=\"button\"\n className={AnchorLinkStyles['anchorlink-wrapper']}\n ref={hoverRef as React.RefObject<HTMLButtonElement>}\n {...commonProps}\n >\n <span className={anchorClasses}>{renderContent()}</span>\n </button>\n )}\n </>\n );\n});\n\nexport default AnchorLink;\n"],"names":["AnchorLink","React","props","ref","id","href","children","className","target","htmlMarkup","onClick","testId","external","hoverRef","isHovered","useHover","anchorClasses","classNames","AnchorLinkStyles","commonProps","AnalyticsId","renderContent","Icon","ArrowUpRight","getColor","IconSize","AnchorLink$1"],"mappings":";;;;;;;;AAmCA,MAAMA,IAAaC,EAAM,WAAmE,CAACC,GAAOC,MAAQ;AACpG,QAAA,EAAE,IAAAC,GAAI,MAAAC,GAAM,UAAAC,GAAU,WAAAC,GAAW,QAAAC,IAAS,SAAS,YAAAC,IAAa,KAAK,SAAAC,GAAS,QAAAC,EAAA,IAAWT,GACzFU,IAAWJ,MAAW,UACtB,EAAE,UAAAK,GAAU,WAAAC,EAAA,IAAcC;AAAA,IAC9BZ;AAAA,EAAA,GAEIa,IAAgBC,EAAWC,EAAiB,YAAYX,CAAS,GAEjEY,IAAc;AAAA,IAClB,IAAAf;AAAA,IACC,eAAgBO;AAAA,IAChB,oBAAqBS,EAAY;AAAA,IAClC,SAAAV;AAAA,EAAA,GAGIW,IAAgB,MAEjB,gBAAApB,EAAA,cAAAA,EAAA,UAAA,MAAAK,GACAM,KACC,gBAAAX,EAAA;AAAA,IAACqB;AAAA,IAAA;AAAA,MACC,WAAWJ,EAAiB;AAAA,MAC5B,SAASK;AAAA,MACT,OAAOC,EAAS,aAAa,GAAG;AAAA,MAChC,YAAYA,EAAS,aAAa,GAAG;AAAA,MACrC,MAAMC,EAAS;AAAA,MACf,WAAAX;AAAA,IAAA;AAAA,EAAA,CAGN;AAIA,SAAA,gBAAAb,EAAA,cAAAA,EAAA,UAAA,MACGQ,MAAe,OACd,gBAAAR,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAAI;AAAA,MACA,QAAAG;AAAA,MACA,WAAWQ;AAAA,MACX,KAAKJ,IAAW,wBAAwB;AAAA,MACxC,KAAKC;AAAA,MACJ,GAAGM;AAAA,IAAA;AAAA,IAEHE,EAAc;AAAA,EAAA,GAGlBZ,MAAe,YACd,gBAAAR,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,WAAWiB,EAAiB,oBAAoB;AAAA,MAChD,KAAKL;AAAA,MACJ,GAAGM;AAAA,IAAA;AAAA,IAEH,gBAAAlB,EAAA,cAAA,QAAA,EAAK,WAAWe,EAAA,GAAgBK,GAAgB;AAAA,EAAA,CAGvD;AAEJ,CAAC,GAEDK,IAAe1B;"}
1
+ {"version":3,"file":"AnchorLink.js","sources":["../../../src/components/AnchorLink/AnchorLink.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { AnalyticsId } from '../../constants';\nimport { useHover } from '../../hooks/useHover';\nimport { getColor } from '../../theme/currys';\nimport Icon, { IconSize } from '../Icon';\nimport ArrowUpRight from '../Icons/ArrowUpRight';\n\nimport AnchorLinkStyles from './styles.module.scss';\n\nexport type AnchorLinkTargets = '_self' | '_blank' | '_parent';\n\nexport type AnchorLinkTags = 'a' | 'button';\n\ninterface AnchorLinkProps {\n /** Sets the content of the <a> tag */\n children: React.ReactNode;\n /** URL to link to */\n href?: string;\n /** Gives a unique id to the anchor-link :) */\n id?: string;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the target type of the <a> tag. _blank adds an arrow icon at the end of the link */\n target?: AnchorLinkTargets;\n /** HTML markup for anchor link. Default: a */\n htmlMarkup?: AnchorLinkTags;\n /** Function that is called when clicked */\n onClick?: (e?: React.MouseEvent<HTMLElement, MouseEvent> | React.FormEvent<{}> | React.KeyboardEvent<HTMLUListElement> | null) => void;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nconst AnchorLink = React.forwardRef<HTMLAnchorElement | HTMLButtonElement, AnchorLinkProps>((props, ref) => {\n const { id, href, children, className, target = '_self', htmlMarkup = 'a', onClick, testId } = props;\n const external = target === '_blank';\n const { hoverRef, isHovered } = useHover<HTMLButtonElement | HTMLAnchorElement>(\n ref as React.RefObject<HTMLButtonElement | HTMLAnchorElement>\n );\n const anchorClasses = classNames(AnchorLinkStyles.anchorlink, className);\n\n const commonProps = {\n id,\n ['data-testid']: testId,\n ['data-analyticsid']: AnalyticsId.AnchorLink,\n onClick,\n };\n\n const renderContent = () => (\n <>\n {children}\n {external && (\n <Icon\n className={AnchorLinkStyles.anchorlink__icon}\n svgIcon={ArrowUpRight}\n color={getColor('blueberry', 600)}\n hoverColor={getColor('blueberry', 700)}\n size={IconSize.XSmall}\n isHovered={isHovered}\n />\n )}\n </>\n );\n\n return (\n <>\n {htmlMarkup === 'a' && (\n <a\n href={href}\n target={target}\n className={anchorClasses}\n rel={external ? 'noopener noreferrer' : undefined}\n ref={hoverRef as React.RefObject<HTMLAnchorElement>}\n {...commonProps}\n >\n {renderContent()}\n </a>\n )}\n {htmlMarkup === 'button' && (\n <button\n type=\"button\"\n className={AnchorLinkStyles['anchorlink-wrapper']}\n ref={hoverRef as React.RefObject<HTMLButtonElement>}\n {...commonProps}\n >\n <span className={anchorClasses}>{renderContent()}</span>\n </button>\n )}\n </>\n );\n});\n\nexport default AnchorLink;\n"],"names":["AnchorLink","React","props","ref","id","href","children","className","target","htmlMarkup","onClick","testId","external","hoverRef","isHovered","useHover","anchorClasses","classNames","AnchorLinkStyles","commonProps","AnalyticsId","renderContent","Icon","ArrowUpRight","getColor","IconSize","AnchorLink$1"],"mappings":";;;;;;;;AAmCA,MAAMA,IAAaC,EAAM,WAAmE,CAACC,GAAOC,MAAQ;AACpG,QAAA,EAAE,IAAAC,GAAI,MAAAC,GAAM,UAAAC,GAAU,WAAAC,GAAW,QAAAC,IAAS,SAAS,YAAAC,IAAa,KAAK,SAAAC,GAAS,QAAAC,EAAA,IAAWT,GACzFU,IAAWJ,MAAW,UACtB,EAAE,UAAAK,GAAU,WAAAC,EAAA,IAAcC;AAAA,IAC9BZ;AAAA,EAAA,GAEIa,IAAgBC,EAAWC,EAAiB,YAAYX,CAAS,GAEjEY,IAAc;AAAA,IAClB,IAAAf;AAAA,IACC,eAAgBO;AAAA,IAChB,oBAAqBS,EAAY;AAAA,IAClC,SAAAV;AAAA,EAAA,GAGIW,IAAgB,MAEjBpB,gBAAAA,EAAA,cAAAA,EAAA,UAAA,MAAAK,GACAM,KACCX,gBAAAA,EAAA;AAAA,IAACqB;AAAA,IAAA;AAAA,MACC,WAAWJ,EAAiB;AAAA,MAC5B,SAASK;AAAA,MACT,OAAOC,EAAS,aAAa,GAAG;AAAA,MAChC,YAAYA,EAAS,aAAa,GAAG;AAAA,MACrC,MAAMC,EAAS;AAAA,MACf,WAAAX;AAAA,IAAA;AAAA,EAAA,CAGN;AAIA,SAAAb,gBAAAA,EAAA,cAAAA,EAAA,UAAA,MACGQ,MAAe,OACdR,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAAI;AAAA,MACA,QAAAG;AAAA,MACA,WAAWQ;AAAA,MACX,KAAKJ,IAAW,wBAAwB;AAAA,MACxC,KAAKC;AAAA,MACJ,GAAGM;AAAA,IAAA;AAAA,IAEHE,EAAc;AAAA,EAAA,GAGlBZ,MAAe,YACdR,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,WAAWiB,EAAiB,oBAAoB;AAAA,MAChD,KAAKL;AAAA,MACJ,GAAGM;AAAA,IAAA;AAAA,IAEHlB,gBAAAA,EAAA,cAAA,QAAA,EAAK,WAAWe,EAAA,GAAgBK,GAAgB;AAAA,EAAA,CAGvD;AAEJ,CAAC,GAEDK,IAAe1B;"}
@@ -48,16 +48,6 @@ $focus-width: 0.15rem;
48
48
  }
49
49
  }
50
50
 
51
- @mixin anchorlink-font {
52
- font-size: 1.125rem;
53
- line-height: 1.875rem;
54
- font-weight: 400;
55
-
56
- @media (min-width: map.get($grid-breakpoints, md)) {
57
- font-size: 1.25rem;
58
- }
59
- }
60
-
61
51
  @mixin anchorlink-icon {
62
52
  &[target='_blank'] {
63
53
  &::after {
@@ -73,7 +63,6 @@ $focus-width: 0.15rem;
73
63
 
74
64
  .anchorlink {
75
65
  @include anchorlink;
76
- @include anchorlink-font;
77
66
  }
78
67
 
79
68
  .anchorlink-wrapper {
@@ -1 +1 @@
1
- {"version":3,"file":"Avatar.js","sources":["../../../src/components/Avatar/Avatar.tsx"],"sourcesContent":["import React from 'react';\n\nimport cn from 'classnames';\n\nimport { AnalyticsId } from '../../constants';\nimport { palette } from '../../theme/palette';\nimport Icon, { IconSize } from '../Icon';\nimport Check from '../Icons/Check';\n\nimport styles from './styles.module.scss';\n\nexport enum AvatarSize {\n xsmall = 'xsmall',\n small = 'small',\n}\n\nexport interface AvatarProps {\n /** Name to display in the avatar. Will be truncated to the first two characters. */\n children: string;\n /** Displays a check icon to indicated the selected state. */\n selected?: boolean;\n /** background and color will be determined on variant. */\n variant?: 'normal' | 'black';\n /** Avatar size. Default: small */\n size?: keyof typeof AvatarSize;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\nexport type AvatarType = React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLElement>>;\nconst Avatar: AvatarType = React.forwardRef(function AvatarForwardedRef(props: AvatarProps, ref: React.ForwardedRef<HTMLElement>) {\n const { children, className = '', selected = false, variant = 'normal', size = AvatarSize.small, testId } = props;\n const truncatedName = children.charAt(0).toLocaleUpperCase() + children.substring(1, 2);\n return (\n <span\n className={cn(\n styles.avatar,\n selected && styles['avatar--selected'],\n variant === 'black' && styles['avatar--black'],\n size === AvatarSize.xsmall && styles['avatar--xsmall'],\n size === AvatarSize.small && styles['avatar--small'],\n className\n )}\n ref={ref}\n data-testid={testId}\n data-analyticsid={AnalyticsId.Avatar}\n >\n {selected ? (\n <Icon svgIcon={Check} size={IconSize.Small} color={variant === 'black' ? palette.neutral900 : palette.blueberry600} />\n ) : (\n truncatedName\n )}\n </span>\n );\n});\n\nexport default Avatar;\n"],"names":["AvatarSize","Avatar","React","props","ref","children","className","selected","variant","size","testId","truncatedName","cn","styles","AnalyticsId","Icon","Check","IconSize","palette","Avatar$1"],"mappings":";;;;;;;AAWY,IAAAA,sBAAAA,OACVA,EAAA,SAAS,UACTA,EAAA,QAAQ,SAFEA,IAAAA,KAAA,CAAA,CAAA;AAoBZ,MAAMC,IAAqBC,EAAM,WAAW,SAA4BC,GAAoBC,GAAsC;AAC1H,QAAA,EAAE,UAAAC,GAAU,WAAAC,IAAY,IAAI,UAAAC,IAAW,IAAO,SAAAC,IAAU,UAAU,MAAAC,IAAO,SAAkB,QAAAC,EAAA,IAAWP,GACtGQ,IAAgBN,EAAS,OAAO,CAAC,EAAE,kBAAsB,IAAAA,EAAS,UAAU,GAAG,CAAC;AAEpF,SAAA,gBAAAH,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWU;AAAAA,QACTC,EAAO;AAAA,QACPN,KAAYM,EAAO,kBAAkB;AAAA,QACrCL,MAAY,WAAWK,EAAO,eAAe;AAAA,QAC7CJ,MAAS,YAAqBI,EAAO,gBAAgB;AAAA,QACrDJ,MAAS,WAAoBI,EAAO,eAAe;AAAA,QACnDP;AAAA,MACF;AAAA,MACA,KAAAF;AAAA,MACA,eAAaM;AAAA,MACb,oBAAkBI,EAAY;AAAA,IAAA;AAAA,IAE7BP,IACC,gBAAAL,EAAA,cAACa,GAAK,EAAA,SAASC,GAAO,MAAMC,EAAS,OAAO,OAAOT,MAAY,UAAUU,EAAQ,aAAaA,EAAQ,aAAc,CAAA,IAEpHP;AAAA,EAAA;AAIR,CAAC,GAEDQ,IAAelB;"}
1
+ {"version":3,"file":"Avatar.js","sources":["../../../src/components/Avatar/Avatar.tsx"],"sourcesContent":["import React from 'react';\n\nimport cn from 'classnames';\n\nimport { AnalyticsId } from '../../constants';\nimport { palette } from '../../theme/palette';\nimport Icon, { IconSize } from '../Icon';\nimport Check from '../Icons/Check';\n\nimport styles from './styles.module.scss';\n\nexport enum AvatarSize {\n xsmall = 'xsmall',\n small = 'small',\n}\n\nexport interface AvatarProps {\n /** Name to display in the avatar. Will be truncated to the first two characters. */\n children: string;\n /** Displays a check icon to indicated the selected state. */\n selected?: boolean;\n /** background and color will be determined on variant. */\n variant?: 'normal' | 'black';\n /** Avatar size. Default: small */\n size?: keyof typeof AvatarSize;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\nexport type AvatarType = React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLElement>>;\nconst Avatar: AvatarType = React.forwardRef(function AvatarForwardedRef(props: AvatarProps, ref: React.ForwardedRef<HTMLElement>) {\n const { children, className = '', selected = false, variant = 'normal', size = AvatarSize.small, testId } = props;\n const truncatedName = children.charAt(0).toLocaleUpperCase() + children.substring(1, 2);\n return (\n <span\n className={cn(\n styles.avatar,\n selected && styles['avatar--selected'],\n variant === 'black' && styles['avatar--black'],\n size === AvatarSize.xsmall && styles['avatar--xsmall'],\n size === AvatarSize.small && styles['avatar--small'],\n className\n )}\n ref={ref}\n data-testid={testId}\n data-analyticsid={AnalyticsId.Avatar}\n >\n {selected ? (\n <Icon svgIcon={Check} size={IconSize.Small} color={variant === 'black' ? palette.neutral900 : palette.blueberry600} />\n ) : (\n truncatedName\n )}\n </span>\n );\n});\n\nexport default Avatar;\n"],"names":["AvatarSize","Avatar","React","props","ref","children","className","selected","variant","size","testId","truncatedName","cn","styles","AnalyticsId","Icon","Check","IconSize","palette","Avatar$1"],"mappings":";;;;;;;AAWY,IAAAA,sBAAAA,OACVA,EAAA,SAAS,UACTA,EAAA,QAAQ,SAFEA,IAAAA,KAAA,CAAA,CAAA;AAoBZ,MAAMC,IAAqBC,EAAM,WAAW,SAA4BC,GAAoBC,GAAsC;AAC1H,QAAA,EAAE,UAAAC,GAAU,WAAAC,IAAY,IAAI,UAAAC,IAAW,IAAO,SAAAC,IAAU,UAAU,MAAAC,IAAO,SAAkB,QAAAC,EAAA,IAAWP,GACtGQ,IAAgBN,EAAS,OAAO,CAAC,EAAE,kBAAsB,IAAAA,EAAS,UAAU,GAAG,CAAC;AAEpF,SAAAH,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWU;AAAAA,QACTC,EAAO;AAAA,QACPN,KAAYM,EAAO,kBAAkB;AAAA,QACrCL,MAAY,WAAWK,EAAO,eAAe;AAAA,QAC7CJ,MAAS,YAAqBI,EAAO,gBAAgB;AAAA,QACrDJ,MAAS,WAAoBI,EAAO,eAAe;AAAA,QACnDP;AAAA,MACF;AAAA,MACA,KAAAF;AAAA,MACA,eAAaM;AAAA,MACb,oBAAkBI,EAAY;AAAA,IAAA;AAAA,IAE7BP,IACCL,gBAAAA,EAAA,cAACa,GAAK,EAAA,SAASC,GAAO,MAAMC,EAAS,OAAO,OAAOT,MAAY,UAAUU,EAAQ,aAAaA,EAAQ,aAAc,CAAA,IAEpHP;AAAA,EAAA;AAIR,CAAC,GAEDQ,IAAelB;"}
@@ -1,9 +1,9 @@
1
- import r from "react";
1
+ import t from "react";
2
2
  import n from "classnames";
3
3
  import { AnalyticsId as o } from "../../constants.js";
4
4
  import a from "./styles.module.scss";
5
- const i = r.forwardRef(function(t, d) {
6
- const { children: s, className: b = "", color: e = "black", testId: l } = t, c = n(
5
+ const i = t.forwardRef(function(r, d) {
6
+ const { children: l, className: s = "", color: e = "black", testId: b } = r, c = n(
7
7
  a.badge,
8
8
  {
9
9
  [a["badge--black"]]: e === "black",
@@ -15,9 +15,9 @@ const i = r.forwardRef(function(t, d) {
15
15
  [a["badge--neutral"]]: e === "neutral",
16
16
  [a["badge--plum"]]: e === "plum"
17
17
  },
18
- b
18
+ s
19
19
  );
20
- return /* @__PURE__ */ r.createElement("span", { className: c, ref: d, "data-testid": l, "data-analyticsid": o.Badge }, s);
20
+ return /* @__PURE__ */ t.createElement("span", { className: c, ref: d, "data-testid": b, "data-analyticsid": o.Badge }, l);
21
21
  }), y = i;
22
22
  export {
23
23
  y as default
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.js","sources":["../../../src/components/Badge/Badge.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { AnalyticsId } from '../../constants';\nimport { PaletteNames } from '../../theme/palette';\n\nimport badgeStyles from './styles.module.scss';\n\nexport type BadgeColors = PaletteNames;\nexport type BadgeChildren = string | number;\n\nexport interface BadgeProps {\n /** Sets the content of the badge. */\n children: BadgeChildren;\n /** Adds custom classes to the element. */\n className?: string;\n /** Changes the badge background color. */\n color?: BadgeColors;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\nexport type BadgeType = React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLElement>>;\nconst Badge: BadgeType = React.forwardRef(function BadgeForwardedRef(props: BadgeProps, ref: React.ForwardedRef<HTMLElement>) {\n const { children, className = '', color = 'black', testId } = props;\n const badgeClasses = classNames(\n badgeStyles.badge,\n {\n [badgeStyles['badge--black']]: color === 'black',\n [badgeStyles['badge--white']]: color === 'white',\n [badgeStyles['badge--blueberry']]: color === 'blueberry',\n [badgeStyles['badge--banana']]: color === 'banana',\n [badgeStyles['badge--cherry']]: color === 'cherry',\n [badgeStyles['badge--kiwi']]: color === 'kiwi',\n [badgeStyles['badge--neutral']]: color === 'neutral',\n [badgeStyles['badge--plum']]: color === 'plum',\n },\n className\n );\n\n return (\n <span className={badgeClasses} ref={ref} data-testid={testId} data-analyticsid={AnalyticsId.Badge}>\n {children}\n </span>\n );\n});\n\nexport default Badge;\n"],"names":["Badge","React","props","ref","children","className","color","testId","badgeClasses","classNames","badgeStyles","AnalyticsId","Badge$1"],"mappings":";;;;AAuBA,MAAMA,IAAmBC,EAAM,WAAW,SAA2BC,GAAmBC,GAAsC;AAC5H,QAAM,EAAE,UAAAC,GAAU,WAAAC,IAAY,IAAI,OAAAC,IAAQ,SAAS,QAAAC,EAAW,IAAAL,GACxDM,IAAeC;AAAA,IACnBC,EAAY;AAAA,IACZ;AAAA,MACE,CAACA,EAAY,cAAc,CAAC,GAAGJ,MAAU;AAAA,MACzC,CAACI,EAAY,cAAc,CAAC,GAAGJ,MAAU;AAAA,MACzC,CAACI,EAAY,kBAAkB,CAAC,GAAGJ,MAAU;AAAA,MAC7C,CAACI,EAAY,eAAe,CAAC,GAAGJ,MAAU;AAAA,MAC1C,CAACI,EAAY,eAAe,CAAC,GAAGJ,MAAU;AAAA,MAC1C,CAACI,EAAY,aAAa,CAAC,GAAGJ,MAAU;AAAA,MACxC,CAACI,EAAY,gBAAgB,CAAC,GAAGJ,MAAU;AAAA,MAC3C,CAACI,EAAY,aAAa,CAAC,GAAGJ,MAAU;AAAA,IAC1C;AAAA,IACAD;AAAA,EAAA;AAIA,SAAA,gBAAAJ,EAAA,cAAC,QAAK,EAAA,WAAWO,GAAc,KAAAL,GAAU,eAAaI,GAAQ,oBAAkBI,EAAY,MAAA,GACzFP,CACH;AAEJ,CAAC,GAEDQ,IAAeZ;"}
1
+ {"version":3,"file":"Badge.js","sources":["../../../src/components/Badge/Badge.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { AnalyticsId } from '../../constants';\nimport { PaletteNames } from '../../theme/palette';\n\nimport badgeStyles from './styles.module.scss';\n\nexport type BadgeColors = PaletteNames;\nexport type BadgeChildren = string | number;\n\nexport interface BadgeProps {\n /** Sets the content of the badge. */\n children: BadgeChildren;\n /** Adds custom classes to the element. */\n className?: string;\n /** Changes the badge background color. */\n color?: BadgeColors;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\nexport type BadgeType = React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLElement>>;\nconst Badge: BadgeType = React.forwardRef(function BadgeForwardedRef(props: BadgeProps, ref: React.ForwardedRef<HTMLElement>) {\n const { children, className = '', color = 'black', testId } = props;\n const badgeClasses = classNames(\n badgeStyles.badge,\n {\n [badgeStyles['badge--black']]: color === 'black',\n [badgeStyles['badge--white']]: color === 'white',\n [badgeStyles['badge--blueberry']]: color === 'blueberry',\n [badgeStyles['badge--banana']]: color === 'banana',\n [badgeStyles['badge--cherry']]: color === 'cherry',\n [badgeStyles['badge--kiwi']]: color === 'kiwi',\n [badgeStyles['badge--neutral']]: color === 'neutral',\n [badgeStyles['badge--plum']]: color === 'plum',\n },\n className\n );\n\n return (\n <span className={badgeClasses} ref={ref} data-testid={testId} data-analyticsid={AnalyticsId.Badge}>\n {children}\n </span>\n );\n});\n\nexport default Badge;\n"],"names":["Badge","React","props","ref","children","className","color","testId","badgeClasses","classNames","badgeStyles","AnalyticsId","Badge$1"],"mappings":";;;;AAuBA,MAAMA,IAAmBC,EAAM,WAAW,SAA2BC,GAAmBC,GAAsC;AAC5H,QAAM,EAAE,UAAAC,GAAU,WAAAC,IAAY,IAAI,OAAAC,IAAQ,SAAS,QAAAC,EAAW,IAAAL,GACxDM,IAAeC;AAAA,IACnBC,EAAY;AAAA,IACZ;AAAA,MACE,CAACA,EAAY,cAAc,CAAC,GAAGJ,MAAU;AAAA,MACzC,CAACI,EAAY,cAAc,CAAC,GAAGJ,MAAU;AAAA,MACzC,CAACI,EAAY,kBAAkB,CAAC,GAAGJ,MAAU;AAAA,MAC7C,CAACI,EAAY,eAAe,CAAC,GAAGJ,MAAU;AAAA,MAC1C,CAACI,EAAY,eAAe,CAAC,GAAGJ,MAAU;AAAA,MAC1C,CAACI,EAAY,aAAa,CAAC,GAAGJ,MAAU;AAAA,MACxC,CAACI,EAAY,gBAAgB,CAAC,GAAGJ,MAAU;AAAA,MAC3C,CAACI,EAAY,aAAa,CAAC,GAAGJ,MAAU;AAAA,IAC1C;AAAA,IACAD;AAAA,EAAA;AAIA,SAAAJ,gBAAAA,EAAA,cAAC,QAAK,EAAA,WAAWO,GAAc,KAAAL,GAAU,eAAaI,GAAQ,oBAAkBI,EAAY,MAAA,GACzFP,CACH;AAEJ,CAAC,GAEDQ,IAAeZ;"}
@@ -28,6 +28,8 @@ export interface ButtonProps extends HTMLButtonProps, HTMLAnchorProps, AriaAttri
28
28
  htmlMarkup?: ButtonTags;
29
29
  /** Changes the button colors for different backgrounds. */
30
30
  mode?: ButtonMode;
31
+ /** Function that is called when the Button loses focus */
32
+ onBlur?: () => void;
31
33
  /** Function that is called when clicked */
32
34
  onClick?: (e?: React.MouseEvent<HTMLElement, MouseEvent> | React.FormEvent<{}> | React.KeyboardEvent<HTMLUListElement> | null) => void;
33
35
  /** Changes the button colors for different backgrounds. (Large not available in borderless variant) */
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,cAAc,EAAqB,MAAM,OAAO,CAAC;AAKjE,OAAO,EAAE,eAAe,EAAE,eAAe,EAAe,MAAM,iBAAiB,CAAC;AAYhF,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,aAAa,CAAC;AACrD,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,SAAS,GAAG,YAAY,CAAC;AAC9D,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,OAAO,CAAC;AAC5C,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,QAAQ,CAAC;AAC9C,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,GAAG,CAAC;AAExC,MAAM,WAAW,WAAY,SAAQ,eAAe,EAAE,eAAe,EAAE,cAAc;IACnF,mFAAmF;IACnF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,sCAAsC;IACtC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,kDAAkD;IAClD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iGAAiG;IACjG,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,0EAA0E;IAC1E,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kEAAkE;IAClE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,oDAAoD;IACpD,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,2DAA2D;IAC3D,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,2CAA2C;IAC3C,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC;IACvI,uGAAuG;IACvG,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,uDAAuD;IACvD,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,uFAAuF;IACvF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mCAAmC;IACnC,IAAI,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;CAC9D;AAkCD,QAAA,MAAM,MAAM,2GA+JV,CAAC;AAEH,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,cAAc,EAAqB,MAAM,OAAO,CAAC;AAKjE,OAAO,EAAE,eAAe,EAAE,eAAe,EAAe,MAAM,iBAAiB,CAAC;AAYhF,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,aAAa,CAAC;AACrD,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,SAAS,GAAG,YAAY,CAAC;AAC9D,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,OAAO,CAAC;AAC5C,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,QAAQ,CAAC;AAC9C,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,GAAG,CAAC;AAExC,MAAM,WAAW,WAAY,SAAQ,eAAe,EAAE,eAAe,EAAE,cAAc;IACnF,mFAAmF;IACnF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,sCAAsC;IACtC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,kDAAkD;IAClD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iGAAiG;IACjG,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,0EAA0E;IAC1E,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kEAAkE;IAClE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,oDAAoD;IACpD,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,2DAA2D;IAC3D,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,0DAA0D;IAC1D,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,2CAA2C;IAC3C,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC;IACvI,uGAAuG;IACvG,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,uDAAuD;IACvD,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,uFAAuF;IACvF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mCAAmC;IACnC,IAAI,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;CAC9D;AAkCD,QAAA,MAAM,MAAM,2GA+JV,CAAC;AAEH,eAAe,MAAM,CAAC"}
@@ -1,113 +1,119 @@
1
- import o, { useRef as st, useEffect as lt } from "react";
2
- import w from "classnames";
1
+ import o, { useRef as at, useEffect as lt } from "react";
2
+ import m from "classnames";
3
3
  import { Icon as it } from "../Icon/Icon.js";
4
- import { AnalyticsId as U, IconSize as v } from "../../constants.js";
4
+ import { AnalyticsId as W, IconSize as y } from "../../constants.js";
5
5
  import { useBreakpoint as ct } from "../../hooks/useBreakpoint.js";
6
- import { useHover as V } from "../../hooks/useHover.js";
6
+ import { useHover as $ } from "../../hooks/useHover.js";
7
7
  import { useIcons as ut } from "../../hooks/useIcons.js";
8
8
  import { useSize as mt } from "../../hooks/useSize.js";
9
9
  import { getColor as i } from "../../theme/currys/color.js";
10
- import { breakpoints as dt } from "../../theme/grid.js";
11
- import { isTest as pt, isProd as bt } from "../../utils/environment.js";
10
+ import { breakpoints as bt } from "../../theme/grid.js";
11
+ import { isTest as pt, isProd as dt } from "../../utils/environment.js";
12
12
  import ft from "../Icons/ArrowRight.js";
13
13
  import t from "./styles.module.scss";
14
- const ht = (e, r, a, d, s, C) => C && a ? !s || e ? i("neutral", r ? 500 : 700) : i("white") : a ? !s || e ? i("neutral", 500) : `${i("white")}b3` : e && !s || !e && s ? "white" : d === "normal" ? i("blueberry", 600) : i("cherry", 500), N = (e, r) => r && e ? v.Small : e ? v.Medium : v.XSmall, gt = (e, r, a) => {
15
- if (a && e && (r === void 0 || r === ""))
14
+ const ht = (e, r, n, b, s, g) => g && n ? !s || e ? i("neutral", r ? 500 : 700) : i("white") : n ? !s || e ? i("neutral", 500) : `${i("white")}b3` : e && !s || !e && s ? "white" : b === "normal" ? i("blueberry", 600) : i("cherry", 500), k = (e, r) => r && e ? y.Small : e ? y.Medium : y.XSmall, gt = (e, r, n) => {
15
+ if (n && e && (r === void 0 || r === ""))
16
16
  throw new Error("Fyll inn ariaLabel prop på Button uten tekst for å opprettholde UU krav");
17
- }, wt = o.forwardRef(function(r, a) {
17
+ }, _t = o.forwardRef(function(r, n) {
18
18
  const {
19
- ariaLabel: d,
19
+ ariaLabel: b,
20
20
  id: s,
21
- children: C,
22
- wrapperClassName: q,
23
- className: D,
24
- arrow: B = !1,
25
- concept: R = "normal",
21
+ children: g,
22
+ wrapperClassName: D,
23
+ className: O,
24
+ arrow: v = !1,
25
+ concept: N = "normal",
26
26
  disabled: p = !1,
27
- ellipsis: S = !1,
28
- fluid: O = !1,
29
- htmlMarkup: I = "button",
30
- mode: X = "onlight",
31
- onClick: z,
32
- size: j = "medium",
33
- variant: y = "fill",
27
+ ellipsis: B = !1,
28
+ fluid: X = !1,
29
+ htmlMarkup: _ = "button",
30
+ mode: j = "onlight",
31
+ onBlur: R,
32
+ onClick: S,
33
+ size: q = "medium",
34
+ variant: w = "fill",
34
35
  href: G,
35
- tabIndex: M,
36
- testId: x,
36
+ tabIndex: x,
37
+ testId: z,
37
38
  target: A,
38
39
  type: J = "button",
39
40
  ...E
40
- } = r, [b, f, F] = ut(o.Children.toArray(C)), { hoverRef: W, isHovered: K } = I === "button" ? V(a) : V(a), $ = st(null), c = mt($), l = !!(b || f) && !F, Q = b && (f || B) && !l, _ = X === "ondark", h = ct() < dt.md, H = R === "destructive" && !p, Y = y === "outline", u = y === "borderless", Z = ht(y === "fill", u, p, R, _, h), L = B && !u, m = j === "large" && !H && !u, tt = { ...E }, P = w(
41
+ } = r, [d, f, F] = ut(o.Children.toArray(g)), { hoverRef: H, isHovered: K } = _ === "button" ? $(n) : $(n), L = at(null);
42
+ mt(L);
43
+ const a = !!(d || f) && !F, M = d && (f || v) && !a, I = j === "ondark", h = ct() < bt.md, P = N === "destructive" && !p, Q = w === "outline", c = w === "borderless", Y = ht(w === "fill", c, p, N, I, h), T = v && !c, u = q === "large" && !P && !c, Z = { ...E }, U = m(
41
44
  t["button-wrapper"],
42
- { [t["button-wrapper--fluid"]]: O || S },
43
- q
44
- ), ot = w(
45
+ { [t["button-wrapper--fluid"]]: X || B },
46
+ D
47
+ ), tt = m(
45
48
  t.button,
46
49
  {
47
- [t["button--destructive"]]: H,
48
- [t["button--normal"]]: !m,
49
- [t["button--large"]]: m,
50
- [t["button--outline"]]: Y,
51
- [t["button--borderless"]]: u,
52
- [t["button--left-icon"]]: b && !l,
53
- [t["button--right-icon"]]: f && !l,
54
- [t["button--both-icons"]]: Q,
55
- [t["button--only-icon"]]: l,
56
- [t["button--arrow"]]: L,
57
- [t["button--on-dark"]]: _
50
+ [t["button--destructive"]]: P,
51
+ [t["button--normal"]]: !u,
52
+ [t["button--large"]]: u,
53
+ [t["button--outline"]]: Q,
54
+ [t["button--borderless"]]: c,
55
+ [t["button--left-icon"]]: d && !a,
56
+ [t["button--right-icon"]]: f && !a,
57
+ [t["button--both-icons"]]: M,
58
+ [t["button--only-icon"]]: a,
59
+ [t["button--arrow"]]: T,
60
+ [t["button--on-dark"]]: I
58
61
  },
59
- D
60
- ), et = w(t.button__text, {
61
- [t["button__text--ellipsis"]]: S
62
- }), rt = w(t.diagonal, {
63
- [t["diagonal--on-dark"]]: _
62
+ O
63
+ ), ot = m(t.button__text, {
64
+ [t["button__text--ellipsis"]]: B
65
+ }), et = m(t.diagonal, {
66
+ [t["diagonal--on-dark"]]: I
64
67
  });
65
68
  lt(() => {
66
- gt(l, d, !pt() && !bt());
69
+ gt(a, b, !pt() && !dt());
67
70
  }, []);
68
- const k = (n, g, at) => n ? o.cloneElement(n, {
69
- size: g,
70
- color: n != null && n.props.color ? n.props.color : Z,
71
+ const C = (l, nt, st) => l ? o.cloneElement(l, {
72
+ size: nt,
73
+ color: l != null && l.props.color ? l.props.color : Y,
71
74
  isHovered: K,
72
- className: at
73
- }) : null, nt = () => {
74
- let n, g;
75
- return c && (n = Math.atan2(c.height, c.width), g = Math.sqrt(Math.pow(c.width, 2) + Math.pow(c.height, 2))), /* @__PURE__ */ o.createElement("span", { className: et, ref: $ }, p && u && /* @__PURE__ */ o.createElement("span", { className: rt }, /* @__PURE__ */ o.createElement("span", { style: { transform: `rotate(${n}rad)`, width: g }, className: t.diagonal__line })), /* @__PURE__ */ o.createElement("span", null, l ? d : F));
76
- }, T = () => /* @__PURE__ */ o.createElement("span", { className: ot }, k(b, N(m, h), l ? void 0 : t["button__left-icon"]), nt(), L ? k(/* @__PURE__ */ o.createElement(it, { svgIcon: ft }), N(m, h), t.button__arrow) : k(f, N(m, h), t["button__right-icon"]));
77
- return /* @__PURE__ */ o.createElement(o.Fragment, null, I === "button" && /* @__PURE__ */ o.createElement(
75
+ className: st
76
+ }) : null, rt = () => /* @__PURE__ */ o.createElement("span", { className: ot, ref: L }, p && c && /* @__PURE__ */ o.createElement("span", { className: et }, /* @__PURE__ */ o.createElement("span", { className: t.diagonal__line })), /* @__PURE__ */ o.createElement("span", null, a ? b : F)), V = () => /* @__PURE__ */ o.createElement("span", { className: tt }, C(d, k(u, h), a ? void 0 : t["button__left-icon"]), rt(), T ? C(
77
+ /* @__PURE__ */ o.createElement(it, { svgIcon: ft }),
78
+ k(u, h),
79
+ m(t.button__arrow, { [t["button__arrow--both-icons"]]: M })
80
+ ) : C(f, k(u, h), t["button__right-icon"]));
81
+ return /* @__PURE__ */ o.createElement(o.Fragment, null, _ === "button" && /* @__PURE__ */ o.createElement(
78
82
  "button",
79
83
  {
80
84
  id: s,
81
- onClick: z,
85
+ onBlur: R,
86
+ onClick: S,
82
87
  disabled: p,
83
- "data-testid": x,
84
- "data-analyticsid": U.Button,
85
- className: P,
86
- ref: W,
87
- tabIndex: M,
88
+ "data-testid": z,
89
+ "data-analyticsid": W.Button,
90
+ className: U,
91
+ ref: H,
92
+ tabIndex: x,
88
93
  type: J,
89
- ...tt
94
+ ...Z
90
95
  },
91
- T()
92
- ), I === "a" && /* @__PURE__ */ o.createElement(
96
+ V()
97
+ ), _ === "a" && /* @__PURE__ */ o.createElement(
93
98
  "a",
94
99
  {
95
100
  id: s,
96
- onClick: z,
97
- "data-testid": x,
98
- "data-analyticsid": U.Button,
99
- className: P,
101
+ onBlur: R,
102
+ onClick: S,
103
+ "data-testid": z,
104
+ "data-analyticsid": W.Button,
105
+ className: U,
100
106
  href: G,
101
107
  target: A,
102
108
  rel: A === "_blank" ? "noopener noreferrer" : r.rel,
103
- ref: W,
104
- tabIndex: M,
109
+ ref: H,
110
+ tabIndex: x,
105
111
  ...E
106
112
  },
107
- T()
113
+ V()
108
114
  ));
109
- }), Et = wt;
115
+ }), Ft = _t;
110
116
  export {
111
- Et as default
117
+ Ft as default
112
118
  };
113
119
  //# sourceMappingURL=Button.js.map