@helsenorge/designsystem-react 8.4.0 → 8.5.1

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 (1100) hide show
  1. package/AnchorLink.js +60 -0
  2. package/AnchorLink.js.map +1 -0
  3. package/Avatar.js +34 -0
  4. package/Avatar.js.map +1 -0
  5. package/Badge.js +31 -0
  6. package/Badge.js.map +1 -0
  7. package/Button.js +130 -0
  8. package/Button.js.map +1 -0
  9. package/CHANGELOG.md +28 -3
  10. package/Checkbox.js +113 -0
  11. package/Checkbox.js.map +1 -0
  12. package/Close.js +31 -0
  13. package/Close.js.map +1 -0
  14. package/ErrorBoundary.js +35 -0
  15. package/ErrorBoundary.js.map +1 -0
  16. package/ErrorWrapper.js +14 -0
  17. package/ErrorWrapper.js.map +1 -0
  18. package/Expander.js +108 -0
  19. package/Expander.js.map +1 -0
  20. package/FormGroup.js +113 -0
  21. package/FormGroup.js.map +1 -0
  22. package/FormLayout.js +38 -0
  23. package/FormLayout.js.map +1 -0
  24. package/HelpBubble.js +68 -0
  25. package/HelpBubble.js.map +1 -0
  26. package/HighlightPanel.js +71 -0
  27. package/HighlightPanel.js.map +1 -0
  28. package/HorizontalScroll.js +49 -0
  29. package/HorizontalScroll.js.map +1 -0
  30. package/Icon.js +62 -0
  31. package/Icon.js.map +1 -0
  32. package/Illustration.js +41 -0
  33. package/Illustration.js.map +1 -0
  34. package/Input.js +140 -0
  35. package/Input.js.map +1 -0
  36. package/Label.js +108 -0
  37. package/Label.js.map +1 -0
  38. package/LazyIcon.js +30 -0
  39. package/LazyIcon.js.map +1 -0
  40. package/LazyIllustration.js +34 -0
  41. package/LazyIllustration.js.map +1 -0
  42. package/LinkList.js +63 -0
  43. package/LinkList.js.map +1 -0
  44. package/List.js +13 -0
  45. package/List.js.map +1 -0
  46. package/ListHeader.js +94 -0
  47. package/ListHeader.js.map +1 -0
  48. package/ListHeaderText.js +35 -0
  49. package/ListHeaderText.js.map +1 -0
  50. package/MaxCharacters.js +15 -0
  51. package/MaxCharacters.js.map +1 -0
  52. package/NotificationBadge.js +68 -0
  53. package/NotificationBadge.js.map +1 -0
  54. package/Panel.js +255 -0
  55. package/Panel.js.map +1 -0
  56. package/PopOver.js +85 -0
  57. package/PopOver.js.map +1 -0
  58. package/RadioButton.js +104 -0
  59. package/RadioButton.js.map +1 -0
  60. package/Select.js +76 -0
  61. package/Select.js.map +1 -0
  62. package/{components/Spacer/Spacer.js → Spacer.js} +10 -9
  63. package/Spacer.js.map +1 -0
  64. package/StatusDot.js +33 -0
  65. package/StatusDot.js.map +1 -0
  66. package/StepButtons.js +28 -0
  67. package/StepButtons.js.map +1 -0
  68. package/TabList.js +68 -0
  69. package/TabList.js.map +1 -0
  70. package/TabPanel.js +18 -0
  71. package/TabPanel.js.map +1 -0
  72. package/Table.js +98 -0
  73. package/Table.js.map +1 -0
  74. package/TableBody.js +13 -0
  75. package/TableBody.js.map +1 -0
  76. package/{components/Table/TableCell/TableCell.js → TableCell.js} +12 -13
  77. package/TableCell.js.map +1 -0
  78. package/TableExpandedRow.js +37 -0
  79. package/TableExpandedRow.js.map +1 -0
  80. package/TableExpanderCell.js +34 -0
  81. package/TableExpanderCell.js.map +1 -0
  82. package/TableHead.js +24 -0
  83. package/TableHead.js.map +1 -0
  84. package/TableHeadCell.js +44 -0
  85. package/TableHeadCell.js.map +1 -0
  86. package/TableRow.js +62 -0
  87. package/TableRow.js.map +1 -0
  88. package/Textarea.js +110 -0
  89. package/Textarea.js.map +1 -0
  90. package/Title.js +25 -0
  91. package/Title.js.map +1 -0
  92. package/TooltipWord.js +28 -0
  93. package/TooltipWord.js.map +1 -0
  94. package/Trigger.js +73 -0
  95. package/Trigger.js.map +1 -0
  96. package/__mocks__/matchMedia.js +1 -0
  97. package/__mocks__/matchMedia.js.map +1 -1
  98. package/__mocks__/uuid.js +1 -1
  99. package/components/AnchorLink/index.js +1 -1
  100. package/components/Avatar/index.js +3 -3
  101. package/components/Badge/index.js +1 -1
  102. package/components/Button/index.js +1 -1
  103. package/components/Checkbox/index.js +3 -3
  104. package/components/Chip/index.js +30 -6
  105. package/components/Chip/index.js.map +1 -1
  106. package/components/Close/index.js +2 -2
  107. package/components/DictionaryTrigger/index.js +25 -2
  108. package/components/DictionaryTrigger/index.js.map +1 -1
  109. package/components/Dropdown/index.js +124 -4
  110. package/components/Dropdown/index.js.map +1 -1
  111. package/components/Duolist/index.js +70 -5
  112. package/components/Duolist/index.js.map +1 -1
  113. package/components/EmptyState/index.js +159 -2
  114. package/components/EmptyState/index.js.map +1 -1
  115. package/components/ErrorWrapper/index.js +3 -3
  116. package/components/Expander/index.js +4 -4
  117. package/components/ExpanderHierarchy/index.js +102 -2
  118. package/components/ExpanderHierarchy/index.js.map +1 -1
  119. package/components/ExpanderList/index.js +139 -3
  120. package/components/ExpanderList/index.js.map +1 -1
  121. package/components/EyebrowHeader/index.js +9 -2
  122. package/components/EyebrowHeader/index.js.map +1 -1
  123. package/components/FormGroup/index.js +1 -1
  124. package/components/FormLayout/index.js +5 -5
  125. package/components/HelpBubble/index.js +4 -4
  126. package/components/HelpPanel/index.js +21 -2
  127. package/components/HelpPanel/index.js.map +1 -1
  128. package/components/HelpQuestion/index.js +31 -2
  129. package/components/HelpQuestion/index.js.map +1 -1
  130. package/components/HighlightPanel/index.js +4 -4
  131. package/components/HorizontalScroll/index.js +1 -1
  132. package/components/Icon/index.js +5 -5
  133. package/components/Icons/ActiveMonitoring.js +4 -4
  134. package/components/Icons/ActiveMonitoring.js.map +1 -1
  135. package/components/Icons/AcupunctureBack.js +6 -6
  136. package/components/Icons/AcupunctureBack.js.map +1 -1
  137. package/components/Icons/AlarmClock.js +15 -5
  138. package/components/Icons/AlarmClock.js.map +1 -1
  139. package/components/Icons/AlertSignFill.js +4 -4
  140. package/components/Icons/AlertSignFill.js.map +1 -1
  141. package/components/Icons/AlertSignStroke.js +4 -4
  142. package/components/Icons/AlertSignStroke.js.map +1 -1
  143. package/components/Icons/Amputation.js +3 -3
  144. package/components/Icons/Amputation.js.map +1 -1
  145. package/components/Icons/Anxiety.js +3 -3
  146. package/components/Icons/Anxiety.js.map +1 -1
  147. package/components/Icons/Apple.js +3 -3
  148. package/components/Icons/Apple.js.map +1 -1
  149. package/components/Icons/Archive.js +7 -7
  150. package/components/Icons/Archive.js.map +1 -1
  151. package/components/Icons/ArmFlexing.js +3 -3
  152. package/components/Icons/ArmFlexing.js.map +1 -1
  153. package/components/Icons/ArrowDown.js +7 -7
  154. package/components/Icons/ArrowDown.js.map +1 -1
  155. package/components/Icons/ArrowLeft.js +3 -3
  156. package/components/Icons/ArrowLeft.js.map +1 -1
  157. package/components/Icons/ArrowRight.js +3 -3
  158. package/components/Icons/ArrowRight.js.map +1 -1
  159. package/components/Icons/ArrowUp.js +7 -7
  160. package/components/Icons/ArrowUp.js.map +1 -1
  161. package/components/Icons/ArrowUpRight.js +4 -4
  162. package/components/Icons/ArrowUpRight.js.map +1 -1
  163. package/components/Icons/Attachment.js +4 -4
  164. package/components/Icons/Attachment.js.map +1 -1
  165. package/components/Icons/Atv.js +3 -3
  166. package/components/Icons/Atv.js.map +1 -1
  167. package/components/Icons/Avatar.js +4 -4
  168. package/components/Icons/Avatar.js.map +1 -1
  169. package/components/Icons/AwakePersonOnPillow.js +2 -2
  170. package/components/Icons/AwakePersonOnPillow.js.map +1 -1
  171. package/components/Icons/Baby.js +3 -3
  172. package/components/Icons/Baby.js.map +1 -1
  173. package/components/Icons/BandAid.js +3 -3
  174. package/components/Icons/BandAid.js.map +1 -1
  175. package/components/Icons/BeerAndPills.js +3 -3
  176. package/components/Icons/BeerAndPills.js.map +1 -1
  177. package/components/Icons/Bell.js +3 -3
  178. package/components/Icons/Bell.js.map +1 -1
  179. package/components/Icons/Bike.js +3 -3
  180. package/components/Icons/Bike.js.map +1 -1
  181. package/components/Icons/BirthControl.js +4 -4
  182. package/components/Icons/BirthControl.js.map +1 -1
  183. package/components/Icons/BirthdayCake.js +2 -2
  184. package/components/Icons/BirthdayCake.js.map +1 -1
  185. package/components/Icons/Boat.js +3 -3
  186. package/components/Icons/Boat.js.map +1 -1
  187. package/components/Icons/Body.js +4 -4
  188. package/components/Icons/Body.js.map +1 -1
  189. package/components/Icons/Braille.js +4 -4
  190. package/components/Icons/Braille.js.map +1 -1
  191. package/components/Icons/Brain.js +3 -3
  192. package/components/Icons/Brain.js.map +1 -1
  193. package/components/Icons/BreastReconstruction.js +4 -4
  194. package/components/Icons/BreastReconstruction.js.map +1 -1
  195. package/components/Icons/BreastRemoval.js +4 -4
  196. package/components/Icons/BreastRemoval.js.map +1 -1
  197. package/components/Icons/Breasts.js +2 -2
  198. package/components/Icons/Breasts.js.map +1 -1
  199. package/components/Icons/BrokenHeart.js +3 -3
  200. package/components/Icons/BrokenHeart.js.map +1 -1
  201. package/components/Icons/BrokenPuzzle.js +3 -3
  202. package/components/Icons/BrokenPuzzle.js.map +1 -1
  203. package/components/Icons/Bus.js +13 -6
  204. package/components/Icons/Bus.js.map +1 -1
  205. package/components/Icons/Calendar.js +6 -6
  206. package/components/Icons/Calendar.js.map +1 -1
  207. package/components/Icons/CalendarChange.js +7 -7
  208. package/components/Icons/CalendarChange.js.map +1 -1
  209. package/components/Icons/CalendarCheck.js +7 -7
  210. package/components/Icons/CalendarCheck.js.map +1 -1
  211. package/components/Icons/CalendarEvent.js +3 -3
  212. package/components/Icons/CalendarEvent.js.map +1 -1
  213. package/components/Icons/CalendarSave.js +4 -4
  214. package/components/Icons/CalendarSave.js.map +1 -1
  215. package/components/Icons/Cancer.js +17 -3
  216. package/components/Icons/Cancer.js.map +1 -1
  217. package/components/Icons/Candle.js +5 -5
  218. package/components/Icons/Candle.js.map +1 -1
  219. package/components/Icons/Car.js +2 -2
  220. package/components/Icons/Car.js.map +1 -1
  221. package/components/Icons/Carton.js +19 -14
  222. package/components/Icons/Carton.js.map +1 -1
  223. package/components/Icons/Change.js +14 -8
  224. package/components/Icons/Change.js.map +1 -1
  225. package/components/Icons/Check.js +4 -4
  226. package/components/Icons/Check.js.map +1 -1
  227. package/components/Icons/CheckFill.js +7 -7
  228. package/components/Icons/CheckFill.js.map +1 -1
  229. package/components/Icons/CheckOutline.js +4 -4
  230. package/components/Icons/CheckOutline.js.map +1 -1
  231. package/components/Icons/Chest.js +2 -2
  232. package/components/Icons/Chest.js.map +1 -1
  233. package/components/Icons/ChevronDown.js +3 -3
  234. package/components/Icons/ChevronDown.js.map +1 -1
  235. package/components/Icons/ChevronLeft.js +3 -3
  236. package/components/Icons/ChevronLeft.js.map +1 -1
  237. package/components/Icons/ChevronRight.js +3 -3
  238. package/components/Icons/ChevronRight.js.map +1 -1
  239. package/components/Icons/ChevronUp.js +3 -3
  240. package/components/Icons/ChevronUp.js.map +1 -1
  241. package/components/Icons/ChevronsDown.js +6 -6
  242. package/components/Icons/ChevronsDown.js.map +1 -1
  243. package/components/Icons/ChevronsUp.js +7 -7
  244. package/components/Icons/ChevronsUp.js.map +1 -1
  245. package/components/Icons/ChildPlaying.js +9 -3
  246. package/components/Icons/ChildPlaying.js.map +1 -1
  247. package/components/Icons/Cigarette.js +3 -3
  248. package/components/Icons/Cigarette.js.map +1 -1
  249. package/components/Icons/Coins.js +4 -4
  250. package/components/Icons/Coins.js.map +1 -1
  251. package/components/Icons/Contacts.js +4 -4
  252. package/components/Icons/Contacts.js.map +1 -1
  253. package/components/Icons/Copy.js +15 -4
  254. package/components/Icons/Copy.js.map +1 -1
  255. package/components/Icons/CoronaCertificate.js +3 -3
  256. package/components/Icons/CoronaCertificate.js.map +1 -1
  257. package/components/Icons/Coronavirus.js +3 -3
  258. package/components/Icons/Coronavirus.js.map +1 -1
  259. package/components/Icons/Cough.js +3 -3
  260. package/components/Icons/Cough.js.map +1 -1
  261. package/components/Icons/CreditCard.js +33 -10
  262. package/components/Icons/CreditCard.js.map +1 -1
  263. package/components/Icons/CriticalHealthInfo.js +3 -3
  264. package/components/Icons/CriticalHealthInfo.js.map +1 -1
  265. package/components/Icons/Cross.js +3 -3
  266. package/components/Icons/Cross.js.map +1 -1
  267. package/components/Icons/DataExchange.js +4 -4
  268. package/components/Icons/DataExchange.js.map +1 -1
  269. package/components/Icons/DataReceived.js +4 -4
  270. package/components/Icons/DataReceived.js.map +1 -1
  271. package/components/Icons/DataSent.js +4 -4
  272. package/components/Icons/DataSent.js.map +1 -1
  273. package/components/Icons/Depression.js +3 -3
  274. package/components/Icons/Depression.js.map +1 -1
  275. package/components/Icons/DigestiveSystem.js +9 -3
  276. package/components/Icons/DigestiveSystem.js.map +1 -1
  277. package/components/Icons/Dizzy.js +3 -3
  278. package/components/Icons/Dizzy.js.map +1 -1
  279. package/components/Icons/Documents.js +3 -3
  280. package/components/Icons/Documents.js.map +1 -1
  281. package/components/Icons/Dog.js +3 -3
  282. package/components/Icons/Dog.js.map +1 -1
  283. package/components/Icons/DonorCard.js +3 -3
  284. package/components/Icons/DonorCard.js.map +1 -1
  285. package/components/Icons/Download.js +7 -7
  286. package/components/Icons/Download.js.map +1 -1
  287. package/components/Icons/Draft.js +3 -3
  288. package/components/Icons/Draft.js.map +1 -1
  289. package/components/Icons/EChat.js +4 -4
  290. package/components/Icons/EChat.js.map +1 -1
  291. package/components/Icons/Ear.js +10 -7
  292. package/components/Icons/Ear.js.map +1 -1
  293. package/components/Icons/EarDeaf.js +4 -4
  294. package/components/Icons/EarDeaf.js.map +1 -1
  295. package/components/Icons/EarHearingAid.js +7 -7
  296. package/components/Icons/EarHearingAid.js.map +1 -1
  297. package/components/Icons/EarNoseThroat.js +11 -3
  298. package/components/Icons/EarNoseThroat.js.map +1 -1
  299. package/components/Icons/EarVolume.js +13 -8
  300. package/components/Icons/EarVolume.js.map +1 -1
  301. package/components/Icons/ElderlyPerson.js +2 -2
  302. package/components/Icons/ElderlyPerson.js.map +1 -1
  303. package/components/Icons/Embolization.js +4 -4
  304. package/components/Icons/Embolization.js.map +1 -1
  305. package/components/Icons/EmergencyCall.js +5 -5
  306. package/components/Icons/EmergencyCall.js.map +1 -1
  307. package/components/Icons/EmoticonAnnoyed.js +12 -8
  308. package/components/Icons/EmoticonAnnoyed.js.map +1 -1
  309. package/components/Icons/EmoticonDelighted.js +10 -7
  310. package/components/Icons/EmoticonDelighted.js.map +1 -1
  311. package/components/Icons/EmoticonDisappointed.js +10 -7
  312. package/components/Icons/EmoticonDisappointed.js.map +1 -1
  313. package/components/Icons/EmoticonHappy.js +10 -7
  314. package/components/Icons/EmoticonHappy.js.map +1 -1
  315. package/components/Icons/EmoticonMeh.js +10 -7
  316. package/components/Icons/EmoticonMeh.js.map +1 -1
  317. package/components/Icons/EnterFullScreen.js +13 -4
  318. package/components/Icons/EnterFullScreen.js.map +1 -1
  319. package/components/Icons/Envelope.js +4 -4
  320. package/components/Icons/Envelope.js.map +1 -1
  321. package/components/Icons/Epilepsy.js +3 -3
  322. package/components/Icons/Epilepsy.js.map +1 -1
  323. package/components/Icons/Eraser.js +10 -4
  324. package/components/Icons/Eraser.js.map +1 -1
  325. package/components/Icons/ErrorSignFill.js +4 -4
  326. package/components/Icons/ErrorSignFill.js.map +1 -1
  327. package/components/Icons/ErrorSignStroke.js +4 -4
  328. package/components/Icons/ErrorSignStroke.js.map +1 -1
  329. package/components/Icons/EuropeanHealthCard.js +6 -3
  330. package/components/Icons/EuropeanHealthCard.js.map +1 -1
  331. package/components/Icons/ExitFullScreen.js +13 -4
  332. package/components/Icons/ExitFullScreen.js.map +1 -1
  333. package/components/Icons/Eye.js +12 -4
  334. package/components/Icons/Eye.js.map +1 -1
  335. package/components/Icons/Facebook.js +3 -3
  336. package/components/Icons/Facebook.js.map +1 -1
  337. package/components/Icons/FallingLeaf.js +14 -9
  338. package/components/Icons/FallingLeaf.js.map +1 -1
  339. package/components/Icons/Female.js +3 -3
  340. package/components/Icons/Female.js.map +1 -1
  341. package/components/Icons/FemaleDoctor.js +2 -2
  342. package/components/Icons/FemaleDoctor.js.map +1 -1
  343. package/components/Icons/Ferry.js +3 -3
  344. package/components/Icons/Ferry.js.map +1 -1
  345. package/components/Icons/File.js +6 -6
  346. package/components/Icons/File.js.map +1 -1
  347. package/components/Icons/Filter.js +5 -5
  348. package/components/Icons/Filter.js.map +1 -1
  349. package/components/Icons/FingerBleed.js +3 -3
  350. package/components/Icons/FingerBleed.js.map +1 -1
  351. package/components/Icons/FirstAidKit.js +3 -3
  352. package/components/Icons/FirstAidKit.js.map +1 -1
  353. package/components/Icons/Fish.js +21 -14
  354. package/components/Icons/Fish.js.map +1 -1
  355. package/components/Icons/FloppyDisk.js +4 -4
  356. package/components/Icons/FloppyDisk.js.map +1 -1
  357. package/components/Icons/Football.js +3 -3
  358. package/components/Icons/Football.js.map +1 -1
  359. package/components/Icons/Form.js +4 -4
  360. package/components/Icons/Form.js.map +1 -1
  361. package/components/Icons/Forward.js +10 -4
  362. package/components/Icons/Forward.js.map +1 -1
  363. package/components/Icons/Gallery.js +7 -7
  364. package/components/Icons/Gallery.js.map +1 -1
  365. package/components/Icons/Garden.js +3 -3
  366. package/components/Icons/Garden.js.map +1 -1
  367. package/components/Icons/GasCan.js +3 -3
  368. package/components/Icons/GasCan.js.map +1 -1
  369. package/components/Icons/GenderIdentity.js +4 -4
  370. package/components/Icons/GenderIdentity.js.map +1 -1
  371. package/components/Icons/GlassWater.js +3 -3
  372. package/components/Icons/GlassWater.js.map +1 -1
  373. package/components/Icons/Glasses.js +4 -4
  374. package/components/Icons/Glasses.js.map +1 -1
  375. package/components/Icons/Globe.js +4 -4
  376. package/components/Icons/Globe.js.map +1 -1
  377. package/components/Icons/Grain.js +3 -3
  378. package/components/Icons/Grain.js.map +1 -1
  379. package/components/Icons/Graph.js +12 -9
  380. package/components/Icons/Graph.js.map +1 -1
  381. package/components/Icons/Group.js +8 -8
  382. package/components/Icons/Group.js.map +1 -1
  383. package/components/Icons/GroupTwins.js +35 -21
  384. package/components/Icons/GroupTwins.js.map +1 -1
  385. package/components/Icons/HTMLFile.js +10 -7
  386. package/components/Icons/HTMLFile.js.map +1 -1
  387. package/components/Icons/HandWaving.js +3 -3
  388. package/components/Icons/HandWaving.js.map +1 -1
  389. package/components/Icons/HandWithDisease.js +3 -3
  390. package/components/Icons/HandWithDisease.js.map +1 -1
  391. package/components/Icons/HandsAndHeart.js +5 -5
  392. package/components/Icons/HandsAndHeart.js.map +1 -1
  393. package/components/Icons/HealthClinic.js +4 -4
  394. package/components/Icons/HealthClinic.js.map +1 -1
  395. package/components/Icons/HealthWarning.js +4 -4
  396. package/components/Icons/HealthWarning.js.map +1 -1
  397. package/components/Icons/HealthcarePerson.js +27 -14
  398. package/components/Icons/HealthcarePerson.js.map +1 -1
  399. package/components/Icons/HealthcarePersonell.js +36 -18
  400. package/components/Icons/HealthcarePersonell.js.map +1 -1
  401. package/components/Icons/HearingProtection.js +12 -9
  402. package/components/Icons/HearingProtection.js.map +1 -1
  403. package/components/Icons/Heart.js +4 -4
  404. package/components/Icons/Heart.js.map +1 -1
  405. package/components/Icons/HeartHands.js +29 -22
  406. package/components/Icons/HeartHands.js.map +1 -1
  407. package/components/Icons/HelpSign.js +4 -4
  408. package/components/Icons/HelpSign.js.map +1 -1
  409. package/components/Icons/HelpingHand.js +3 -3
  410. package/components/Icons/HelpingHand.js.map +1 -1
  411. package/components/Icons/Hemodialysis.js +3 -3
  412. package/components/Icons/Hemodialysis.js.map +1 -1
  413. package/components/Icons/Hiker.js +2 -2
  414. package/components/Icons/Hiker.js.map +1 -1
  415. package/components/Icons/Hipprosthesis.js +4 -4
  416. package/components/Icons/Hipprosthesis.js.map +1 -1
  417. package/components/Icons/History.js +4 -4
  418. package/components/Icons/History.js.map +1 -1
  419. package/components/Icons/HivAndAids.js +3 -3
  420. package/components/Icons/HivAndAids.js.map +1 -1
  421. package/components/Icons/Home.js +7 -7
  422. package/components/Icons/Home.js.map +1 -1
  423. package/components/Icons/Hormone.js +3 -3
  424. package/components/Icons/Hormone.js.map +1 -1
  425. package/components/Icons/Hospital.js +7 -7
  426. package/components/Icons/Hospital.js.map +1 -1
  427. package/components/Icons/Hourglass.js +7 -7
  428. package/components/Icons/Hourglass.js.map +1 -1
  429. package/components/Icons/ImgFile.js +4 -4
  430. package/components/Icons/ImgFile.js.map +1 -1
  431. package/components/Icons/Inbox.js +6 -3
  432. package/components/Icons/Inbox.js.map +1 -1
  433. package/components/Icons/InfoSignFill.js +4 -4
  434. package/components/Icons/InfoSignFill.js.map +1 -1
  435. package/components/Icons/InfoSignStroke.js +4 -4
  436. package/components/Icons/InfoSignStroke.js.map +1 -1
  437. package/components/Icons/Instagram.js +9 -2
  438. package/components/Icons/Instagram.js.map +1 -1
  439. package/components/Icons/Intravenous.js +4 -4
  440. package/components/Icons/Intravenous.js.map +1 -1
  441. package/components/Icons/JointPain.js +3 -3
  442. package/components/Icons/JointPain.js.map +1 -1
  443. package/components/Icons/Journal.js +4 -4
  444. package/components/Icons/Journal.js.map +1 -1
  445. package/components/Icons/JpgFile.js +4 -4
  446. package/components/Icons/JpgFile.js.map +1 -1
  447. package/components/Icons/Kidney.js +3 -3
  448. package/components/Icons/Kidney.js.map +1 -1
  449. package/components/Icons/KitchenScale.js +4 -4
  450. package/components/Icons/KitchenScale.js.map +1 -1
  451. package/components/Icons/Kjernejournal.js +3 -3
  452. package/components/Icons/Kjernejournal.js.map +1 -1
  453. package/components/Icons/Laboratory.js +4 -4
  454. package/components/Icons/Laboratory.js.map +1 -1
  455. package/components/Icons/LaptopBlog.js +3 -3
  456. package/components/Icons/LaptopBlog.js.map +1 -1
  457. package/components/Icons/LawBook.js +6 -3
  458. package/components/Icons/LawBook.js.map +1 -1
  459. package/components/Icons/LegalDocument.js +13 -10
  460. package/components/Icons/LegalDocument.js.map +1 -1
  461. package/components/Icons/LightBulb.js +2 -2
  462. package/components/Icons/LightBulb.js.map +1 -1
  463. package/components/Icons/List.js +7 -7
  464. package/components/Icons/List.js.map +1 -1
  465. package/components/Icons/Location.js +6 -3
  466. package/components/Icons/Location.js.map +1 -1
  467. package/components/Icons/Lock.js +4 -4
  468. package/components/Icons/Lock.js.map +1 -1
  469. package/components/Icons/Login.js +20 -11
  470. package/components/Icons/Login.js.map +1 -1
  471. package/components/Icons/Logout.js +20 -11
  472. package/components/Icons/Logout.js.map +1 -1
  473. package/components/Icons/Lungs.js +3 -3
  474. package/components/Icons/Lungs.js.map +1 -1
  475. package/components/Icons/Makeup.js +2 -2
  476. package/components/Icons/Makeup.js.map +1 -1
  477. package/components/Icons/MaleDoctor.js +2 -2
  478. package/components/Icons/MaleDoctor.js.map +1 -1
  479. package/components/Icons/MaleDoctorAndPerson.js +11 -3
  480. package/components/Icons/MaleDoctorAndPerson.js.map +1 -1
  481. package/components/Icons/MaleGenitalia.js +2 -2
  482. package/components/Icons/MaleGenitalia.js.map +1 -1
  483. package/components/Icons/Medicine.js +6 -6
  484. package/components/Icons/Medicine.js.map +1 -1
  485. package/components/Icons/MedicineWarning.js +4 -4
  486. package/components/Icons/MedicineWarning.js.map +1 -1
  487. package/components/Icons/MentalHealthAdult.js +9 -3
  488. package/components/Icons/MentalHealthAdult.js.map +1 -1
  489. package/components/Icons/MentalHealthChild.js +9 -3
  490. package/components/Icons/MentalHealthChild.js.map +1 -1
  491. package/components/Icons/Menu.js +4 -4
  492. package/components/Icons/Menu.js.map +1 -1
  493. package/components/Icons/Microscope.js +4 -4
  494. package/components/Icons/Microscope.js.map +1 -1
  495. package/components/Icons/Minus.js +3 -3
  496. package/components/Icons/Minus.js.map +1 -1
  497. package/components/Icons/Mirror.js +3 -3
  498. package/components/Icons/Mirror.js.map +1 -1
  499. package/components/Icons/MobilePhone.js +4 -4
  500. package/components/Icons/MobilePhone.js.map +1 -1
  501. package/components/Icons/MotherHoldingBaby.js +2 -2
  502. package/components/Icons/MotherHoldingBaby.js.map +1 -1
  503. package/components/Icons/MuscleBack.js +11 -3
  504. package/components/Icons/MuscleBack.js.map +1 -1
  505. package/components/Icons/MuscleLeg.js +9 -3
  506. package/components/Icons/MuscleLeg.js.map +1 -1
  507. package/components/Icons/Mushroom.js +3 -3
  508. package/components/Icons/Mushroom.js.map +1 -1
  509. package/components/Icons/Music.js +3 -3
  510. package/components/Icons/Music.js.map +1 -1
  511. package/components/Icons/MusselsAndSalt.js +2 -2
  512. package/components/Icons/MusselsAndSalt.js.map +1 -1
  513. package/components/Icons/NoAccess.js +20 -17
  514. package/components/Icons/NoAccess.js.map +1 -1
  515. package/components/Icons/NoEye.js +9 -9
  516. package/components/Icons/NoEye.js.map +1 -1
  517. package/components/Icons/NoFilter.js +10 -4
  518. package/components/Icons/NoFilter.js.map +1 -1
  519. package/components/Icons/Notepad.js +2 -2
  520. package/components/Icons/Notepad.js.map +1 -1
  521. package/components/Icons/Osteotomy.js +4 -4
  522. package/components/Icons/Osteotomy.js.map +1 -1
  523. package/components/Icons/PaintRoller.js +3 -3
  524. package/components/Icons/PaintRoller.js.map +1 -1
  525. package/components/Icons/PaperPlane.js +4 -4
  526. package/components/Icons/PaperPlane.js.map +1 -1
  527. package/components/Icons/PatientAndPerson.js +2 -2
  528. package/components/Icons/PatientAndPerson.js.map +1 -1
  529. package/components/Icons/Pause.js +4 -4
  530. package/components/Icons/Pause.js.map +1 -1
  531. package/components/Icons/PdfFile.js +4 -4
  532. package/components/Icons/PdfFile.js.map +1 -1
  533. package/components/Icons/Pencil.js +4 -4
  534. package/components/Icons/Pencil.js.map +1 -1
  535. package/components/Icons/PeopleTalking.js +3 -3
  536. package/components/Icons/PeopleTalking.js.map +1 -1
  537. package/components/Icons/Peritonealdialysis.js +4 -4
  538. package/components/Icons/Peritonealdialysis.js.map +1 -1
  539. package/components/Icons/Person.js +2 -2
  540. package/components/Icons/Person.js.map +1 -1
  541. package/components/Icons/PersonAndPatient.js +2 -2
  542. package/components/Icons/PersonAndPatient.js.map +1 -1
  543. package/components/Icons/PersonCancel.js +28 -19
  544. package/components/Icons/PersonCancel.js.map +1 -1
  545. package/components/Icons/PersonInXRayMachine.js +4 -4
  546. package/components/Icons/PersonInXRayMachine.js.map +1 -1
  547. package/components/Icons/PersonOverweight.js +3 -3
  548. package/components/Icons/PersonOverweight.js.map +1 -1
  549. package/components/Icons/PersonRelaxing.js +9 -3
  550. package/components/Icons/PersonRelaxing.js.map +1 -1
  551. package/components/Icons/PersonWithBrain.js +6 -3
  552. package/components/Icons/PersonWithBrain.js.map +1 -1
  553. package/components/Icons/PersonWithBrokenArm.js +3 -3
  554. package/components/Icons/PersonWithBrokenArm.js.map +1 -1
  555. package/components/Icons/PersonWithCrutches.js +3 -3
  556. package/components/Icons/PersonWithCrutches.js.map +1 -1
  557. package/components/Icons/PersonWithJaw.js +9 -3
  558. package/components/Icons/PersonWithJaw.js.map +1 -1
  559. package/components/Icons/PersonWithMagnifyingGlass.js +8 -2
  560. package/components/Icons/PersonWithMagnifyingGlass.js.map +1 -1
  561. package/components/Icons/PersonWithSenses.js +15 -3
  562. package/components/Icons/PersonWithSenses.js.map +1 -1
  563. package/components/Icons/PersonWorking.js +9 -3
  564. package/components/Icons/PersonWorking.js.map +1 -1
  565. package/components/Icons/PersonalPlan.js +14 -11
  566. package/components/Icons/PersonalPlan.js.map +1 -1
  567. package/components/Icons/PizzaSlice.js +8 -2
  568. package/components/Icons/PizzaSlice.js.map +1 -1
  569. package/components/Icons/Plane.js +3 -3
  570. package/components/Icons/Plane.js.map +1 -1
  571. package/components/Icons/Plant.js +3 -3
  572. package/components/Icons/Plant.js.map +1 -1
  573. package/components/Icons/PlateKnifeFork.js +17 -14
  574. package/components/Icons/PlateKnifeFork.js.map +1 -1
  575. package/components/Icons/Play.js +4 -4
  576. package/components/Icons/Play.js.map +1 -1
  577. package/components/Icons/PlusLarge.js +4 -4
  578. package/components/Icons/PlusLarge.js.map +1 -1
  579. package/components/Icons/PlusSmall.js +4 -4
  580. package/components/Icons/PlusSmall.js.map +1 -1
  581. package/components/Icons/PngFile.js +4 -4
  582. package/components/Icons/PngFile.js.map +1 -1
  583. package/components/Icons/Podcast.js +4 -4
  584. package/components/Icons/Podcast.js.map +1 -1
  585. package/components/Icons/PoisonInformation.js +9 -3
  586. package/components/Icons/PoisonInformation.js.map +1 -1
  587. package/components/Icons/Pregnant.js +2 -2
  588. package/components/Icons/Pregnant.js.map +1 -1
  589. package/components/Icons/Printer.js +7 -7
  590. package/components/Icons/Printer.js.map +1 -1
  591. package/components/Icons/Psychosis.js +2 -2
  592. package/components/Icons/Psychosis.js.map +1 -1
  593. package/components/Icons/Publication.js +4 -4
  594. package/components/Icons/Publication.js.map +1 -1
  595. package/components/Icons/Puzzle.js +5 -2
  596. package/components/Icons/Puzzle.js.map +1 -1
  597. package/components/Icons/QrCode.js +7 -7
  598. package/components/Icons/QrCode.js.map +1 -1
  599. package/components/Icons/Quarrel.js +4 -4
  600. package/components/Icons/Quarrel.js.map +1 -1
  601. package/components/Icons/RadioTherapy.js +4 -4
  602. package/components/Icons/RadioTherapy.js.map +1 -1
  603. package/components/Icons/RadioactiveTreatment.js +4 -4
  604. package/components/Icons/RadioactiveTreatment.js.map +1 -1
  605. package/components/Icons/Radioiodine.js +4 -4
  606. package/components/Icons/Radioiodine.js.map +1 -1
  607. package/components/Icons/Receipt.js +2 -2
  608. package/components/Icons/Receipt.js.map +1 -1
  609. package/components/Icons/Receptionist.js +4 -4
  610. package/components/Icons/Receptionist.js.map +1 -1
  611. package/components/Icons/Recovery.js +4 -4
  612. package/components/Icons/Recovery.js.map +1 -1
  613. package/components/Icons/Referral.js +4 -4
  614. package/components/Icons/Referral.js.map +1 -1
  615. package/components/Icons/Refresh.js +4 -4
  616. package/components/Icons/Refresh.js.map +1 -1
  617. package/components/Icons/Refund.js +3 -3
  618. package/components/Icons/Refund.js.map +1 -1
  619. package/components/Icons/Reminder.js +14 -9
  620. package/components/Icons/Reminder.js.map +1 -1
  621. package/components/Icons/Reply.js +10 -4
  622. package/components/Icons/Reply.js.map +1 -1
  623. package/components/Icons/Rocket.js +3 -3
  624. package/components/Icons/Rocket.js.map +1 -1
  625. package/components/Icons/RtfFile.js +4 -4
  626. package/components/Icons/RtfFile.js.map +1 -1
  627. package/components/Icons/STDs.js +4 -4
  628. package/components/Icons/STDs.js.map +1 -1
  629. package/components/Icons/Save.js +12 -4
  630. package/components/Icons/Save.js.map +1 -1
  631. package/components/Icons/Scale.js +3 -3
  632. package/components/Icons/Scale.js.map +1 -1
  633. package/components/Icons/ScreenReader.js +18 -11
  634. package/components/Icons/ScreenReader.js.map +1 -1
  635. package/components/Icons/Search.js +4 -4
  636. package/components/Icons/Search.js.map +1 -1
  637. package/components/Icons/SectionSign.js +6 -6
  638. package/components/Icons/SectionSign.js.map +1 -1
  639. package/components/Icons/Settings.js +7 -7
  640. package/components/Icons/Settings.js.map +1 -1
  641. package/components/Icons/Sexualorientation.js +4 -4
  642. package/components/Icons/Sexualorientation.js.map +1 -1
  643. package/components/Icons/ShakingHand.js +3 -3
  644. package/components/Icons/ShakingHand.js.map +1 -1
  645. package/components/Icons/Share.js +10 -4
  646. package/components/Icons/Share.js.map +1 -1
  647. package/components/Icons/Shield.js +4 -4
  648. package/components/Icons/Shield.js.map +1 -1
  649. package/components/Icons/ShuntOperation.js +3 -3
  650. package/components/Icons/ShuntOperation.js.map +1 -1
  651. package/components/Icons/Skeleton.js +2 -2
  652. package/components/Icons/Skeleton.js.map +1 -1
  653. package/components/Icons/Skin.js +3 -3
  654. package/components/Icons/Skin.js.map +1 -1
  655. package/components/Icons/Snake.js +3 -3
  656. package/components/Icons/Snake.js.map +1 -1
  657. package/components/Icons/Snapchat.js +6 -3
  658. package/components/Icons/Snapchat.js.map +1 -1
  659. package/components/Icons/SortDown.js +19 -7
  660. package/components/Icons/SortDown.js.map +1 -1
  661. package/components/Icons/SortUp.js +19 -7
  662. package/components/Icons/SortUp.js.map +1 -1
  663. package/components/Icons/SpeechBubble.js +6 -6
  664. package/components/Icons/SpeechBubble.js.map +1 -1
  665. package/components/Icons/Spray.js +2 -2
  666. package/components/Icons/Spray.js.map +1 -1
  667. package/components/Icons/Stopwatch.js +7 -7
  668. package/components/Icons/Stopwatch.js.map +1 -1
  669. package/components/Icons/Sun.js +14 -9
  670. package/components/Icons/Sun.js.map +1 -1
  671. package/components/Icons/SupportingPerson.js +25 -22
  672. package/components/Icons/SupportingPerson.js.map +1 -1
  673. package/components/Icons/Surgery.js +3 -3
  674. package/components/Icons/Surgery.js.map +1 -1
  675. package/components/Icons/Sweets.js +19 -14
  676. package/components/Icons/Sweets.js.map +1 -1
  677. package/components/Icons/Syringe.js +6 -6
  678. package/components/Icons/Syringe.js.map +1 -1
  679. package/components/Icons/Taxi.js +2 -2
  680. package/components/Icons/Taxi.js.map +1 -1
  681. package/components/Icons/TeddyBear.js +3 -3
  682. package/components/Icons/TeddyBear.js.map +1 -1
  683. package/components/Icons/Teenagers.js +4 -4
  684. package/components/Icons/Teenagers.js.map +1 -1
  685. package/components/Icons/ThinkingAboutBaby.js +3 -3
  686. package/components/Icons/ThinkingAboutBaby.js.map +1 -1
  687. package/components/Icons/Ticket.js +3 -3
  688. package/components/Icons/Ticket.js.map +1 -1
  689. package/components/Icons/TimePassing.js +7 -7
  690. package/components/Icons/TimePassing.js.map +1 -1
  691. package/components/Icons/Tombstone.js +12 -9
  692. package/components/Icons/Tombstone.js.map +1 -1
  693. package/components/Icons/Toolbox.js +36 -30
  694. package/components/Icons/Toolbox.js.map +1 -1
  695. package/components/Icons/Tooth.js +3 -3
  696. package/components/Icons/Tooth.js.map +1 -1
  697. package/components/Icons/TotalKneeProsthesis.js +4 -4
  698. package/components/Icons/TotalKneeProsthesis.js.map +1 -1
  699. package/components/Icons/Train.js +3 -3
  700. package/components/Icons/Train.js.map +1 -1
  701. package/components/Icons/Transplantation.js +3 -3
  702. package/components/Icons/Transplantation.js.map +1 -1
  703. package/components/Icons/TrashCan.js +7 -7
  704. package/components/Icons/TrashCan.js.map +1 -1
  705. package/components/Icons/TravelRoute.js +21 -16
  706. package/components/Icons/TravelRoute.js.map +1 -1
  707. package/components/Icons/TriangleX.js +32 -35
  708. package/components/Icons/TriangleX.js.map +1 -1
  709. package/components/Icons/Twitter.js +3 -3
  710. package/components/Icons/Twitter.js.map +1 -1
  711. package/components/Icons/Undo.js +8 -8
  712. package/components/Icons/Undo.js.map +1 -1
  713. package/components/Icons/UniProsthesis.js +3 -3
  714. package/components/Icons/UniProsthesis.js.map +1 -1
  715. package/components/Icons/Upload.js +10 -4
  716. package/components/Icons/Upload.js.map +1 -1
  717. package/components/Icons/UserOrganization.js +2 -2
  718. package/components/Icons/UserOrganization.js.map +1 -1
  719. package/components/Icons/Vaccine.js +7 -7
  720. package/components/Icons/Vaccine.js.map +1 -1
  721. package/components/Icons/VerticalDots.js +4 -4
  722. package/components/Icons/VerticalDots.js.map +1 -1
  723. package/components/Icons/VideoCamera.js +7 -7
  724. package/components/Icons/VideoCamera.js.map +1 -1
  725. package/components/Icons/VideoChat.js +4 -4
  726. package/components/Icons/VideoChat.js.map +1 -1
  727. package/components/Icons/Wallet.js +4 -4
  728. package/components/Icons/Wallet.js.map +1 -1
  729. package/components/Icons/Watch.js +6 -6
  730. package/components/Icons/Watch.js.map +1 -1
  731. package/components/Icons/Website.js +4 -4
  732. package/components/Icons/Website.js.map +1 -1
  733. package/components/Icons/Wheelchair.js +4 -4
  734. package/components/Icons/Wheelchair.js.map +1 -1
  735. package/components/Icons/WheelchairActive.js +3 -3
  736. package/components/Icons/WheelchairActive.js.map +1 -1
  737. package/components/Icons/Window.js +3 -3
  738. package/components/Icons/Window.js.map +1 -1
  739. package/components/Icons/WordDocument.js +3 -3
  740. package/components/Icons/WordDocument.js.map +1 -1
  741. package/components/Icons/WorkSuitcase.js +2 -2
  742. package/components/Icons/WorkSuitcase.js.map +1 -1
  743. package/components/Icons/X.js +4 -4
  744. package/components/Icons/X.js.map +1 -1
  745. package/components/Icons/XOutline.js +3 -3
  746. package/components/Icons/XOutline.js.map +1 -1
  747. package/components/Icons/XmlFile.js +4 -4
  748. package/components/Icons/XmlFile.js.map +1 -1
  749. package/components/Icons/YouTube.js +3 -3
  750. package/components/Icons/YouTube.js.map +1 -1
  751. package/components/Icons/Zoom.js +6 -6
  752. package/components/Icons/Zoom.js.map +1 -1
  753. package/components/Illustration/index.js +3 -3
  754. package/components/Illustrations/Doctor.js +8 -8
  755. package/components/Illustrations/Doctor.js.map +1 -1
  756. package/components/Illustrations/DoctorMedium.js +49 -41
  757. package/components/Illustrations/DoctorMedium.js.map +1 -1
  758. package/components/Illustrations/DoctorSmall.js +48 -38
  759. package/components/Illustrations/DoctorSmall.js.map +1 -1
  760. package/components/Illustrations/FacialRecognitionFingerprint.js +6 -6
  761. package/components/Illustrations/FacialRecognitionFingerprint.js.map +1 -1
  762. package/components/Illustrations/FacialRecognitionFingerprintMedium.js +297 -253
  763. package/components/Illustrations/FacialRecognitionFingerprintMedium.js.map +1 -1
  764. package/components/Illustrations/HealthcarePersonnel.js +7 -7
  765. package/components/Illustrations/HealthcarePersonnel.js.map +1 -1
  766. package/components/Illustrations/HealthcarePersonnelMedium.js +202 -171
  767. package/components/Illustrations/HealthcarePersonnelMedium.js.map +1 -1
  768. package/components/Illustrations/HealthcarePersonnelSmall.js +190 -165
  769. package/components/Illustrations/HealthcarePersonnelSmall.js.map +1 -1
  770. package/components/Input/index.js +3 -3
  771. package/components/Label/index.js +7 -8
  772. package/components/Label/index.js.map +1 -1
  773. package/components/LazyIcon/index.js +2 -2
  774. package/components/LazyIllustration/index.js +5 -5
  775. package/components/LinkList/index.js +3 -3
  776. package/components/List/index.js +2 -2
  777. package/components/ListHeader/ListHeaderText/index.js +1 -1
  778. package/components/ListHeader/index.js +5 -5
  779. package/components/Loader/index.js +67 -4
  780. package/components/Loader/index.js.map +1 -1
  781. package/components/Logo/index.js +41 -2
  782. package/components/Logo/index.js.map +1 -1
  783. package/components/Modal/index.js +162 -5
  784. package/components/Modal/index.js.map +1 -1
  785. package/components/NotificationPanel/index.js +98 -2
  786. package/components/NotificationPanel/index.js.map +1 -1
  787. package/components/Panel/index.js +4 -4
  788. package/components/PanelList/index.js +15 -2
  789. package/components/PanelList/index.js.map +1 -1
  790. package/components/PopMenu/index.js +92 -6
  791. package/components/PopMenu/index.js.map +1 -1
  792. package/components/PopOver/index.js +4 -4
  793. package/components/Portal/index.js +3 -3
  794. package/components/Progressbar/index.js +92 -6
  795. package/components/Progressbar/index.js.map +1 -1
  796. package/components/Progressbar/styles.module.scss +5 -0
  797. package/components/Progressbar/styles.module.scss.d.ts +1 -0
  798. package/components/PromoPanel/index.js +57 -2
  799. package/components/PromoPanel/index.js.map +1 -1
  800. package/components/RadioButton/index.js +5 -5
  801. package/components/Select/index.js +1 -1
  802. package/components/ServiceMessage/index.js +110 -2
  803. package/components/ServiceMessage/index.js.map +1 -1
  804. package/components/SharingStatus/index.js +16 -2
  805. package/components/SharingStatus/index.js.map +1 -1
  806. package/components/Slider/index.js +189 -3
  807. package/components/Slider/index.js.map +1 -1
  808. package/components/Spacer/index.js +2 -2
  809. package/components/StatusDot/index.js +4 -4
  810. package/components/Step/index.js +31 -2
  811. package/components/Step/index.js.map +1 -1
  812. package/components/StepButtons/index.js +1 -1
  813. package/components/Stepper/index.js +49 -2
  814. package/components/Stepper/index.js.map +1 -1
  815. package/components/Table/TableBody/index.js +3 -3
  816. package/components/Table/TableCell/index.js +5 -5
  817. package/components/Table/TableExpandedRow/index.js +1 -1
  818. package/components/Table/TableExpanderCell/index.js +3 -3
  819. package/components/Table/TableHead/index.js +4 -4
  820. package/components/Table/TableHeadCell/index.js +3 -3
  821. package/components/Table/TableRow/index.js +3 -3
  822. package/components/Table/index.js +22 -22
  823. package/components/Tabs/TabList/index.js +2 -2
  824. package/components/Tabs/TabPanel/index.js +1 -1
  825. package/components/Tabs/index.js +94 -2
  826. package/components/Tabs/index.js.map +1 -1
  827. package/components/Tag/index.js +22 -5
  828. package/components/Tag/index.js.map +1 -1
  829. package/components/TagList/index.js +6 -2
  830. package/components/TagList/index.js.map +1 -1
  831. package/components/Textarea/index.js +1 -1
  832. package/components/Tile/index.js +70 -3
  833. package/components/Tile/index.js.map +1 -1
  834. package/components/Title/index.js +5 -5
  835. package/components/Toggle/Toggle.d.ts +31 -0
  836. package/components/Toggle/index.d.ts +3 -0
  837. package/components/Toggle/index.js +2656 -0
  838. package/components/Toggle/index.js.map +1 -0
  839. package/components/Toggle/styles.module.scss +125 -0
  840. package/components/Toggle/styles.module.scss.d.ts +24 -0
  841. package/components/Tooltip/TooltipWord/index.js +1 -1
  842. package/components/Tooltip/index.js +54 -5
  843. package/components/Tooltip/index.js.map +1 -1
  844. package/components/Trigger/index.js +2 -2
  845. package/components/Validation/index.js +47 -3
  846. package/components/Validation/index.js.map +1 -1
  847. package/constants.d.ts +1 -0
  848. package/constants.js +4 -4
  849. package/constants.js.map +1 -1
  850. package/{components → docs}/ButtonWithModal/ButtonWithModal.d.ts +1 -1
  851. package/{components → docs}/HelpBubbleExample/HelpBubbleExample.d.ts +1 -1
  852. package/{components → docs}/TooltipExample/TooltipExample.d.ts +1 -1
  853. package/hoc/withBreakpoint/withBreakpoint.js +9 -8
  854. package/hoc/withBreakpoint/withBreakpoint.js.map +1 -1
  855. package/hooks/useIcons.js +9 -9
  856. package/hooks/usePseudoClasses.d.ts +1 -0
  857. package/hooks/usePseudoClasses.js +11 -11
  858. package/hooks/usePseudoClasses.js.map +1 -1
  859. package/hooks/useUuid.js +3 -3
  860. package/index.js +3 -3
  861. package/package.json +4 -1
  862. package/style.css +1 -0
  863. package/utils/component.js +2 -2
  864. package/utils/uuid.js +4 -7
  865. package/utils/uuid.js.map +1 -1
  866. package/{components/Illustration/utils.js → utils.js} +1 -1
  867. package/utils.js.map +1 -0
  868. package/uuid.js +14 -0
  869. package/uuid.js.map +1 -0
  870. package/_virtual/_cloneBuffer.js +0 -5
  871. package/_virtual/_cloneBuffer.js.map +0 -1
  872. package/_virtual/_commonjs-dynamic-modules.js +0 -7
  873. package/_virtual/_commonjs-dynamic-modules.js.map +0 -1
  874. package/_virtual/_commonjsHelpers.js +0 -9
  875. package/_virtual/_commonjsHelpers.js.map +0 -1
  876. package/_virtual/_nodeUtil.js +0 -5
  877. package/_virtual/_nodeUtil.js.map +0 -1
  878. package/_virtual/dynamic-import-helper.js +0 -17
  879. package/_virtual/dynamic-import-helper.js.map +0 -1
  880. package/_virtual/isBuffer.js +0 -5
  881. package/_virtual/isBuffer.js.map +0 -1
  882. package/_virtual/memoizerific.js +0 -5
  883. package/_virtual/memoizerific.js.map +0 -1
  884. package/components/AnchorLink/AnchorLink.js +0 -53
  885. package/components/AnchorLink/AnchorLink.js.map +0 -1
  886. package/components/Avatar/Avatar.js +0 -33
  887. package/components/Avatar/Avatar.js.map +0 -1
  888. package/components/Badge/Badge.js +0 -30
  889. package/components/Badge/Badge.js.map +0 -1
  890. package/components/Badge/NotificationBadge.js +0 -68
  891. package/components/Badge/NotificationBadge.js.map +0 -1
  892. package/components/Button/Button.js +0 -118
  893. package/components/Button/Button.js.map +0 -1
  894. package/components/ButtonWithModal/ButtonWithModal.js +0 -11
  895. package/components/ButtonWithModal/ButtonWithModal.js.map +0 -1
  896. package/components/ButtonWithModal/index.js +0 -5
  897. package/components/ButtonWithModal/index.js.map +0 -1
  898. package/components/Checkbox/Checkbox.js +0 -110
  899. package/components/Checkbox/Checkbox.js.map +0 -1
  900. package/components/Chip/Chip.js +0 -30
  901. package/components/Chip/Chip.js.map +0 -1
  902. package/components/Close/Close.js +0 -30
  903. package/components/Close/Close.js.map +0 -1
  904. package/components/DictionaryTrigger/DictionaryTrigger.js +0 -27
  905. package/components/DictionaryTrigger/DictionaryTrigger.js.map +0 -1
  906. package/components/Dropdown/Dropdown.js +0 -117
  907. package/components/Dropdown/Dropdown.js.map +0 -1
  908. package/components/Duolist/Duolist.js +0 -63
  909. package/components/Duolist/Duolist.js.map +0 -1
  910. package/components/EmptyState/EmptyState.js +0 -10
  911. package/components/EmptyState/EmptyState.js.map +0 -1
  912. package/components/EmptyState/NobodyHome.js +0 -155
  913. package/components/EmptyState/NobodyHome.js.map +0 -1
  914. package/components/ErrorWrapper/ErrorWrapper.js +0 -12
  915. package/components/ErrorWrapper/ErrorWrapper.js.map +0 -1
  916. package/components/Expander/Expander.js +0 -101
  917. package/components/Expander/Expander.js.map +0 -1
  918. package/components/ExpanderHierarchy/Expander.js +0 -31
  919. package/components/ExpanderHierarchy/Expander.js.map +0 -1
  920. package/components/ExpanderHierarchy/ExpanderButton.js +0 -46
  921. package/components/ExpanderHierarchy/ExpanderButton.js.map +0 -1
  922. package/components/ExpanderHierarchy/ExpanderHierarchy.js +0 -28
  923. package/components/ExpanderHierarchy/ExpanderHierarchy.js.map +0 -1
  924. package/components/ExpanderHierarchy/utils.js +0 -20
  925. package/components/ExpanderHierarchy/utils.js.map +0 -1
  926. package/components/ExpanderList/ExpanderList.js +0 -139
  927. package/components/ExpanderList/ExpanderList.js.map +0 -1
  928. package/components/EyebrowHeader/EyebrowHeader.js +0 -12
  929. package/components/EyebrowHeader/EyebrowHeader.js.map +0 -1
  930. package/components/FormExample/FormExample.js +0 -161
  931. package/components/FormExample/FormExample.js.map +0 -1
  932. package/components/FormExample/index.js +0 -8
  933. package/components/FormExample/index.js.map +0 -1
  934. package/components/FormExample/styles.module.scss +0 -33
  935. package/components/FormExample/styles.module.scss.d.ts +0 -12
  936. package/components/FormGroup/FormGroup.js +0 -101
  937. package/components/FormGroup/FormGroup.js.map +0 -1
  938. package/components/FormLayout/FormLayout.js +0 -38
  939. package/components/FormLayout/FormLayout.js.map +0 -1
  940. package/components/GridExample/GridExample.js +0 -8
  941. package/components/GridExample/GridExample.js.map +0 -1
  942. package/components/GridExample/index.js +0 -6
  943. package/components/GridExample/index.js.map +0 -1
  944. package/components/HelpBubble/HelpBubble.js +0 -61
  945. package/components/HelpBubble/HelpBubble.js.map +0 -1
  946. package/components/HelpBubbleExample/HelpBubbleExample.js +0 -20
  947. package/components/HelpBubbleExample/HelpBubbleExample.js.map +0 -1
  948. package/components/HelpBubbleExample/index.js +0 -5
  949. package/components/HelpBubbleExample/index.js.map +0 -1
  950. package/components/HelpPanel/HelpPanel.js +0 -24
  951. package/components/HelpPanel/HelpPanel.js.map +0 -1
  952. package/components/HelpQuestion/HelpQuestion.js +0 -31
  953. package/components/HelpQuestion/HelpQuestion.js.map +0 -1
  954. package/components/HighlightPanel/HighlightPanel.js +0 -61
  955. package/components/HighlightPanel/HighlightPanel.js.map +0 -1
  956. package/components/HorizontalScroll/HorizontalScroll.js +0 -47
  957. package/components/HorizontalScroll/HorizontalScroll.js.map +0 -1
  958. package/components/Icon/Icon.js +0 -60
  959. package/components/Icon/Icon.js.map +0 -1
  960. package/components/Illustration/Illustration.js +0 -41
  961. package/components/Illustration/Illustration.js.map +0 -1
  962. package/components/Illustration/utils.js.map +0 -1
  963. package/components/Input/Input.js +0 -129
  964. package/components/Input/Input.js.map +0 -1
  965. package/components/Label/Label.js +0 -79
  966. package/components/Label/Label.js.map +0 -1
  967. package/components/Label/SubLabel.js +0 -19
  968. package/components/Label/SubLabel.js.map +0 -1
  969. package/components/LazyIcon/ErrorBoundary.js +0 -21
  970. package/components/LazyIcon/ErrorBoundary.js.map +0 -1
  971. package/components/LazyIcon/LazyIcon.js +0 -31
  972. package/components/LazyIcon/LazyIcon.js.map +0 -1
  973. package/components/LazyIllustration/LazyIllustration.js +0 -35
  974. package/components/LazyIllustration/LazyIllustration.js.map +0 -1
  975. package/components/LinkList/LinkList.js +0 -60
  976. package/components/LinkList/LinkList.js.map +0 -1
  977. package/components/List/List.js +0 -13
  978. package/components/List/List.js.map +0 -1
  979. package/components/ListHeader/ListHeader.js +0 -84
  980. package/components/ListHeader/ListHeader.js.map +0 -1
  981. package/components/ListHeader/ListHeaderText/ListHeaderText.js +0 -30
  982. package/components/ListHeader/ListHeaderText/ListHeaderText.js.map +0 -1
  983. package/components/Loader/Loader.js +0 -67
  984. package/components/Loader/Loader.js.map +0 -1
  985. package/components/Logo/Logo.js +0 -40
  986. package/components/Logo/Logo.js.map +0 -1
  987. package/components/MaxCharacters/MaxCharacters.js +0 -15
  988. package/components/MaxCharacters/MaxCharacters.js.map +0 -1
  989. package/components/Modal/Modal.js +0 -145
  990. package/components/Modal/Modal.js.map +0 -1
  991. package/components/NotificationPanel/NotificationPanel.js +0 -94
  992. package/components/NotificationPanel/NotificationPanel.js.map +0 -1
  993. package/components/Panel/Panel.js +0 -191
  994. package/components/Panel/Panel.js.map +0 -1
  995. package/components/PanelList/PanelList.js +0 -17
  996. package/components/PanelList/PanelList.js.map +0 -1
  997. package/components/PopMenu/PopMenu.js +0 -89
  998. package/components/PopMenu/PopMenu.js.map +0 -1
  999. package/components/PopOver/PopOver.js +0 -56
  1000. package/components/PopOver/PopOver.js.map +0 -1
  1001. package/components/PopOver/utils.js +0 -33
  1002. package/components/PopOver/utils.js.map +0 -1
  1003. package/components/Progressbar/Progressbar.js +0 -89
  1004. package/components/Progressbar/Progressbar.js.map +0 -1
  1005. package/components/PromoPanel/PromoPanel.js +0 -52
  1006. package/components/PromoPanel/PromoPanel.js.map +0 -1
  1007. package/components/RadioButton/RadioButton.js +0 -104
  1008. package/components/RadioButton/RadioButton.js.map +0 -1
  1009. package/components/Select/Select.js +0 -70
  1010. package/components/Select/Select.js.map +0 -1
  1011. package/components/ServiceMessage/ServiceMessage.js +0 -92
  1012. package/components/ServiceMessage/ServiceMessage.js.map +0 -1
  1013. package/components/SharingStatus/SharingStatus.js +0 -16
  1014. package/components/SharingStatus/SharingStatus.js.map +0 -1
  1015. package/components/Slider/Slider.js +0 -178
  1016. package/components/Slider/Slider.js.map +0 -1
  1017. package/components/Spacer/Spacer.js.map +0 -1
  1018. package/components/StatusDot/StatusDot.js +0 -29
  1019. package/components/StatusDot/StatusDot.js.map +0 -1
  1020. package/components/Step/Step.js +0 -30
  1021. package/components/Step/Step.js.map +0 -1
  1022. package/components/StepButtons/StepButtons.js +0 -21
  1023. package/components/StepButtons/StepButtons.js.map +0 -1
  1024. package/components/Stepper/Dot.js +0 -16
  1025. package/components/Stepper/Dot.js.map +0 -1
  1026. package/components/Stepper/DotList.js +0 -7
  1027. package/components/Stepper/DotList.js.map +0 -1
  1028. package/components/Stepper/Stepper.js +0 -35
  1029. package/components/Stepper/Stepper.js.map +0 -1
  1030. package/components/Stepper/utils.js +0 -16
  1031. package/components/Stepper/utils.js.map +0 -1
  1032. package/components/Table/Table.js +0 -76
  1033. package/components/Table/Table.js.map +0 -1
  1034. package/components/Table/TableBody/TableBody.js +0 -13
  1035. package/components/Table/TableBody/TableBody.js.map +0 -1
  1036. package/components/Table/TableCell/TableCell.js.map +0 -1
  1037. package/components/Table/TableExpandedRow/TableExpandedRow.js +0 -31
  1038. package/components/Table/TableExpandedRow/TableExpandedRow.js.map +0 -1
  1039. package/components/Table/TableExpanderCell/TableExpanderCell.js +0 -35
  1040. package/components/Table/TableExpanderCell/TableExpanderCell.js.map +0 -1
  1041. package/components/Table/TableExpanderCell/TableExpanderCellMobile.js +0 -25
  1042. package/components/Table/TableExpanderCell/TableExpanderCellMobile.js.map +0 -1
  1043. package/components/Table/TableHead/TableHead.js +0 -24
  1044. package/components/Table/TableHead/TableHead.js.map +0 -1
  1045. package/components/Table/TableHeadCell/TableHeadCell.js +0 -42
  1046. package/components/Table/TableHeadCell/TableHeadCell.js.map +0 -1
  1047. package/components/Table/TableRow/TableRow.js +0 -40
  1048. package/components/Table/TableRow/TableRow.js.map +0 -1
  1049. package/components/Table/utils.js +0 -32
  1050. package/components/Table/utils.js.map +0 -1
  1051. package/components/Tabs/Tab.js +0 -6
  1052. package/components/Tabs/Tab.js.map +0 -1
  1053. package/components/Tabs/TabList/TabItem.js +0 -45
  1054. package/components/Tabs/TabList/TabItem.js.map +0 -1
  1055. package/components/Tabs/TabList/TabList.js +0 -28
  1056. package/components/Tabs/TabList/TabList.js.map +0 -1
  1057. package/components/Tabs/TabPanel/TabPanel.js +0 -17
  1058. package/components/Tabs/TabPanel/TabPanel.js.map +0 -1
  1059. package/components/Tabs/Tabs.js +0 -92
  1060. package/components/Tabs/Tabs.js.map +0 -1
  1061. package/components/Tag/Tag.js +0 -22
  1062. package/components/Tag/Tag.js.map +0 -1
  1063. package/components/TagList/TagList.js +0 -8
  1064. package/components/TagList/TagList.js.map +0 -1
  1065. package/components/Textarea/Textarea.js +0 -105
  1066. package/components/Textarea/Textarea.js.map +0 -1
  1067. package/components/Tile/Tile.js +0 -67
  1068. package/components/Tile/Tile.js.map +0 -1
  1069. package/components/Title/Title.js +0 -25
  1070. package/components/Title/Title.js.map +0 -1
  1071. package/components/Tooltip/Tooltip.js +0 -55
  1072. package/components/Tooltip/Tooltip.js.map +0 -1
  1073. package/components/Tooltip/TooltipWord/TooltipWord.js +0 -27
  1074. package/components/Tooltip/TooltipWord/TooltipWord.js.map +0 -1
  1075. package/components/TooltipExample/TooltipExample.js +0 -8
  1076. package/components/TooltipExample/TooltipExample.js.map +0 -1
  1077. package/components/TooltipExample/index.js +0 -5
  1078. package/components/TooltipExample/index.js.map +0 -1
  1079. package/components/Trigger/HelpSign.js +0 -7
  1080. package/components/Trigger/HelpSign.js.map +0 -1
  1081. package/components/Trigger/Trigger.js +0 -73
  1082. package/components/Trigger/Trigger.js.map +0 -1
  1083. package/components/Validation/ErrorList.js +0 -8
  1084. package/components/Validation/ErrorList.js.map +0 -1
  1085. package/components/Validation/ErrorListItem.js +0 -12
  1086. package/components/Validation/ErrorListItem.js.map +0 -1
  1087. package/components/Validation/Validation.js +0 -18
  1088. package/components/Validation/Validation.js.map +0 -1
  1089. package/components/Validation/ValidationSummary.js +0 -25
  1090. package/components/Validation/ValidationSummary.js.map +0 -1
  1091. package/docs/index.d.ts +0 -8
  1092. package/docs/index.js +0 -14
  1093. package/docs/index.js.map +0 -1
  1094. /package/{components → docs}/ButtonWithModal/index.d.ts +0 -0
  1095. /package/{components → docs}/FormExample/FormExample.d.ts +0 -0
  1096. /package/{components → docs}/FormExample/index.d.ts +0 -0
  1097. /package/{components → docs}/GridExample/GridExample.d.ts +0 -0
  1098. /package/{components → docs}/GridExample/index.d.ts +0 -0
  1099. /package/{components → docs}/HelpBubbleExample/index.d.ts +0 -0
  1100. /package/{components → docs}/TooltipExample/index.d.ts +0 -0
@@ -1,89 +0,0 @@
1
- import a, { useRef as _, useEffect as v } from "react";
2
- import N from "classnames";
3
- import { ZIndex as $ } from "../../constants.js";
4
- import { palette as o } from "../../theme/palette.js";
5
- import s from "../Progressbar/styles.module.scss";
6
- var B = /* @__PURE__ */ ((e) => (e.small = "small", e.medium = "medium", e.large = "large", e))(B || {}), C = /* @__PURE__ */ ((e) => (e.ondark = "ondark", e.onlight = "onlight", e))(C || {}), R = /* @__PURE__ */ ((e) => (e.screen = "screen", e.parent = "parent", e))(R || {});
7
- const W = ({
8
- value: e,
9
- size: i = "large",
10
- mode: c = "onlight",
11
- overlay: t,
12
- testId: b,
13
- ariaLabel: w
14
- }) => {
15
- t && (c = "ondark"), e = Math.max(0, Math.min(e, 100));
16
- let n;
17
- i === "large" ? n = 96 : i === "medium" ? n = 50 : n = 44;
18
- const m = n / 2, p = 8, f = m - p / 2, l = m * 2, r = m, k = c === "onlight" ? o.blueberry100 : o.neutral700, h = c === "onlight" ? o.blueberry600 : o.white, g = 2 * Math.PI * f, y = g - e / 100 * g, d = _(null);
19
- v(() => {
20
- var u, x;
21
- t === "parent" && ((x = (u = d.current) == null ? void 0 : u.parentElement) != null && x.style) && (d.current.parentElement.style.position = "relative");
22
- }, []);
23
- const E = N({
24
- [s["progressbar--overlay"]]: t,
25
- [s["progressbar--overlay-screen"]]: t === "screen",
26
- [s["progressbar--overlay-parent"]]: t === "parent"
27
- /* parent */
28
- });
29
- return /* @__PURE__ */ a.createElement(
30
- "div",
31
- {
32
- ref: d,
33
- className: E,
34
- "data-testid": b,
35
- role: "progressbar",
36
- "aria-valuenow": e,
37
- "aria-label": w,
38
- "aria-live": "polite",
39
- style: t === "screen" ? { zIndex: $.OverlayScreen } : {}
40
- },
41
- /* @__PURE__ */ a.createElement(
42
- "svg",
43
- {
44
- role: "presentation",
45
- width: l,
46
- height: l,
47
- viewBox: `0 0 ${l} ${l}`,
48
- className: s.progressbar__svg
49
- },
50
- /* @__PURE__ */ a.createElement("circle", { cx: r, cy: r, r: f, stroke: k, strokeWidth: p, fill: "none" }),
51
- /* @__PURE__ */ a.createElement(
52
- "circle",
53
- {
54
- cx: r,
55
- cy: r,
56
- r: f,
57
- stroke: h,
58
- strokeWidth: p,
59
- fill: "none",
60
- strokeDasharray: g,
61
- strokeDashoffset: y,
62
- className: s["progressbar__progress-circle"],
63
- transform: `rotate(-90 ${r} ${r})`
64
- }
65
- ),
66
- " ",
67
- /* @__PURE__ */ a.createElement(
68
- "text",
69
- {
70
- className: "progress-wheel__text--large",
71
- fontSize: "1.5rem",
72
- fill: h,
73
- x: r,
74
- y: r,
75
- textAnchor: "middle",
76
- alignmentBaseline: "middle"
77
- },
78
- i == "large" && `${e}%`
79
- )
80
- )
81
- );
82
- };
83
- export {
84
- R as Overlay,
85
- C as ProgressBarMode,
86
- B as ProgressbarSize,
87
- W as default
88
- };
89
- //# sourceMappingURL=Progressbar.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Progressbar.js","sources":["../../../src/components/Progressbar/Progressbar.tsx"],"sourcesContent":["import React, { useRef, useEffect } from 'react';\n\nimport classNames from 'classnames';\n\nimport { ZIndex } from '../../constants';\nimport { palette } from '../../theme/palette';\n\nimport styles from './styles.module.scss';\n\nexport enum ProgressbarSize {\n small = 'small',\n medium = 'medium',\n large = 'large',\n}\n\nexport enum ProgressBarMode {\n ondark = 'ondark',\n onlight = 'onlight',\n}\n\nexport enum Overlay {\n screen = 'screen',\n parent = 'parent',\n}\nexport interface ProgressbarProps {\n /** The value of the progressbar given in percent. Value between 0 and 100 */\n value: number;\n /** Size of the progressbar. Default is large */\n size?: ProgressbarSize;\n /** Changes the visuals of the ProgressBar. Default is onLight */\n mode?: ProgressBarMode;\n /** Loader is displayed with grey background covering the entire screen */\n overlay?: keyof typeof Overlay;\n /** Aria label for the progressbar */\n ariaLabel?: string;\n /** Sets the data-testid attribute */\n testId?: string;\n}\n\nconst Progressbar: React.FC<ProgressbarProps> = ({\n value,\n size = ProgressbarSize.large,\n mode = ProgressBarMode.onlight,\n overlay,\n testId,\n ariaLabel,\n}: ProgressbarProps) => {\n if (overlay) {\n mode = ProgressBarMode.ondark;\n }\n // Restrict value to be between 0 and 100\n value = Math.max(0, Math.min(value, 100));\n\n let width;\n if (size === ProgressbarSize.large) {\n width = 96;\n } else if (size === ProgressbarSize.medium) {\n width = 50;\n } else {\n width = 44;\n }\n\n const totalRadius = width / 2;\n const strokeWidth = 8;\n const radius = totalRadius - strokeWidth / 2;\n const viewBoxSize = totalRadius * 2;\n const viewBoxCenter = totalRadius;\n const circleBackgroundColor = mode === ProgressBarMode.onlight ? palette.blueberry100 : palette.neutral700;\n const mainColor = mode === ProgressBarMode.onlight ? palette.blueberry600 : palette.white;\n const circumference = 2 * Math.PI * radius;\n const strokeDashoffset = circumference - (value / 100) * circumference;\n\n const wrapperRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n if (overlay === Overlay.parent && wrapperRef.current?.parentElement?.style) {\n wrapperRef.current.parentElement.style.position = 'relative';\n }\n }, []);\n\n const wrapperClasses = classNames({\n [styles['progressbar--overlay']]: overlay,\n [styles['progressbar--overlay-screen']]: overlay === Overlay.screen,\n [styles['progressbar--overlay-parent']]: overlay === Overlay.parent,\n });\n\n return (\n <div\n ref={wrapperRef}\n className={wrapperClasses}\n data-testid={testId}\n role=\"progressbar\"\n aria-valuenow={value}\n aria-label={ariaLabel}\n aria-live=\"polite\"\n style={overlay === Overlay.screen ? { zIndex: ZIndex.OverlayScreen } : {}}\n >\n <svg\n role=\"presentation\"\n width={viewBoxSize}\n height={viewBoxSize}\n viewBox={`0 0 ${viewBoxSize} ${viewBoxSize}`}\n className={styles['progressbar__svg']}\n >\n <circle cx={viewBoxCenter} cy={viewBoxCenter} r={radius} stroke={circleBackgroundColor} strokeWidth={strokeWidth} fill=\"none\" />\n <circle\n cx={viewBoxCenter}\n cy={viewBoxCenter}\n r={radius}\n stroke={mainColor}\n strokeWidth={strokeWidth}\n fill=\"none\"\n strokeDasharray={circumference}\n strokeDashoffset={strokeDashoffset}\n className={styles['progressbar__progress-circle']}\n transform={`rotate(-90 ${viewBoxCenter} ${viewBoxCenter})`}\n />{' '}\n <text\n className=\"progress-wheel__text--large\"\n fontSize={'1.5rem'}\n fill={mainColor}\n x={viewBoxCenter}\n y={viewBoxCenter}\n textAnchor=\"middle\"\n alignmentBaseline=\"middle\"\n >\n {size == ProgressbarSize.large && `${value}%`}\n </text>\n </svg>\n </div>\n );\n};\n\nexport default Progressbar;\n"],"names":["ProgressbarSize","ProgressBarMode","Overlay","Progressbar","value","size","mode","overlay","testId","ariaLabel","width","totalRadius","strokeWidth","radius","viewBoxSize","viewBoxCenter","circleBackgroundColor","palette","mainColor","circumference","strokeDashoffset","wrapperRef","useRef","useEffect","_b","_a","wrapperClasses","classNames","styles","React","ZIndex"],"mappings":"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"}
@@ -1,52 +0,0 @@
1
- import t from "react";
2
- import h from "classnames";
3
- import { AnalyticsId as C, IconSize as o } from "../../constants.js";
4
- import { useBreakpoint as b, Breakpoint as a } from "../../hooks/useBreakpoint.js";
5
- import { useHover as g } from "../../hooks/useHover.js";
6
- import { getColor as m } from "../../theme/currys/color.js";
7
- import { Icon as E } from "../Icon/Icon.js";
8
- import _ from "../Icons/ArrowRight.js";
9
- import P from "../Icons/ArrowUpRight.js";
10
- import { LazyIllustration as v } from "../LazyIllustration/LazyIllustration.js";
11
- import { Title as y } from "../Title/Title.js";
12
- import n from "../PromoPanel/styles.module.scss";
13
- const I = (e) => e.linkComponent ? t.cloneElement(e.linkComponent, { children: e.children }) : e.linkHtmlMarkup === "button" ? /* @__PURE__ */ t.createElement("button", { type: "button", onClick: e.linkOnClick }, e.children) : /* @__PURE__ */ t.createElement("a", { href: e.href, target: e.target, onClick: e.linkOnClick }, e.children), T = (e) => {
14
- const { isHovered: c, hoverRef: u } = g(), { color: l = "neutral", titleHtmlMarkup: k = "h2", linkHtmlMarkup: f = "a" } = e, r = b(), s = h(
15
- n.promopanel,
16
- n[`promopanel--${l}`],
17
- !e.illustration && n["promopanel--no-illustration"]
18
- ), i = /* @__PURE__ */ t.createElement(
19
- I,
20
- {
21
- href: e.href,
22
- target: e.target,
23
- linkComponent: e.linkComponent,
24
- linkHtmlMarkup: f,
25
- linkOnClick: e.linkOnClick
26
- },
27
- e.title || e.children
28
- ), d = r >= a.md ? 156 : 110;
29
- return /* @__PURE__ */ t.createElement("div", { className: s, "data-testid": e.testId, "data-analyticsid": C.PromoPanel, ref: u }, e.illustration && /* @__PURE__ */ t.createElement(
30
- v,
31
- {
32
- illustrationName: e.illustration,
33
- size: d,
34
- color: l,
35
- className: n.promopanel__illustration
36
- }
37
- ), /* @__PURE__ */ t.createElement("div", { className: n.promopanel__content }, e.title && /* @__PURE__ */ t.createElement(y, { htmlMarkup: k, appearance: "title3" }, i), e.title ? e.children : i), /* @__PURE__ */ t.createElement(
38
- E,
39
- {
40
- className: n.promopanel__icon,
41
- svgIcon: e.target === "_blank" ? P : _,
42
- size: r >= a.md ? o.Small : o.XSmall,
43
- isHovered: c,
44
- color: m("blueberry", 500),
45
- hoverColor: m("blueberry", 600)
46
- }
47
- ));
48
- };
49
- export {
50
- T as default
51
- };
52
- //# sourceMappingURL=PromoPanel.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PromoPanel.js","sources":["../../../src/components/PromoPanel/PromoPanel.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { AnalyticsId, IconSize } from '../../constants';\nimport { Breakpoint, useBreakpoint } from '../../hooks/useBreakpoint';\nimport { useHover } from '../../hooks/useHover';\nimport { getColor } from '../../theme/currys/color';\nimport { PaletteNames } from '../../theme/palette';\nimport { AnchorLinkTags, AnchorLinkTargets } from '../AnchorLink';\nimport Icon from '../Icon';\nimport ArrowRight from '../Icons/ArrowRight';\nimport ArrowUpRight from '../Icons/ArrowUpRight';\nimport LazyIllustration from '../LazyIllustration';\nimport Title, { TitleTags } from '../Title';\n\nimport styles from './styles.module.scss';\n\nexport type PromoPanelColors = Extract<PaletteNames, 'neutral' | 'blueberry' | 'cherry'>;\n\nexport interface PromoPanelProps {\n /** Used as the link text if set. title or children must be set for the link to have accessible text. */\n title?: string;\n /** Used as the link text if title is not set. */\n children?: string;\n /** Illustration element */\n illustration?: 'Doctor' | 'HealthcarePersonnel';\n /** Changes the underlying element of the title. */\n titleHtmlMarkup?: TitleTags;\n /** Changes the background color. Default: white */\n color?: PromoPanelColors;\n /** Not used if linkComponent is set */\n href?: string;\n /** Anchor link target. If linkComponent is set, this prop is only used to display the right icon for external links. */\n target?: AnchorLinkTargets;\n /** HTML markup for anchor link. Not used if linkComponent is set. Default: a */\n linkHtmlMarkup?: AnchorLinkTags;\n /** Function that is called when clicked. Not used if linkComponent is set. */\n linkOnClick?: () => void;\n /** Custom link component. Must be \"a\" a or \"button\" element with no styling. */\n linkComponent?: React.ReactElement;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\ninterface PromoPanelLinkProps {\n children?: string;\n href?: string;\n target?: AnchorLinkTargets;\n linkComponent?: React.ReactElement;\n linkHtmlMarkup?: AnchorLinkTags;\n linkOnClick?: () => void;\n}\n\nconst PromoPanelLink: React.FC<PromoPanelLinkProps> = props => {\n if (props.linkComponent) {\n return React.cloneElement(props.linkComponent, { children: props.children });\n }\n\n if (props.linkHtmlMarkup === 'button') {\n return (\n <button type={'button'} onClick={props.linkOnClick}>\n {props.children}\n </button>\n );\n }\n return (\n <a href={props.href} target={props.target} onClick={props.linkOnClick}>\n {props.children}\n </a>\n );\n};\n\nconst PromoPanel: React.FC<PromoPanelProps> = props => {\n const { isHovered, hoverRef } = useHover<HTMLDivElement>();\n\n const { color = 'neutral', titleHtmlMarkup = 'h2', linkHtmlMarkup = 'a' } = props;\n\n const breakpoint = useBreakpoint();\n\n const promoPanelClasses = classNames(\n styles.promopanel,\n styles[`promopanel--${color}`],\n !props.illustration && styles['promopanel--no-illustration']\n );\n\n const promoPanelLink = (\n <PromoPanelLink\n href={props.href}\n target={props.target}\n linkComponent={props.linkComponent}\n linkHtmlMarkup={linkHtmlMarkup}\n linkOnClick={props.linkOnClick}\n >\n {props.title || props.children}\n </PromoPanelLink>\n );\n\n const illustrationSize = ((): number => {\n if (breakpoint >= Breakpoint.md) {\n return 156;\n }\n\n return 110;\n })();\n\n return (\n <div className={promoPanelClasses} data-testid={props.testId} data-analyticsid={AnalyticsId.PromoPanel} ref={hoverRef}>\n {props.illustration && (\n <LazyIllustration\n illustrationName={props.illustration}\n size={illustrationSize}\n color={color}\n className={styles.promopanel__illustration}\n />\n )}\n <div className={styles.promopanel__content}>\n {props.title && (\n <Title htmlMarkup={titleHtmlMarkup} appearance={'title3'}>\n {promoPanelLink}\n </Title>\n )}\n {!props.title ? promoPanelLink : props.children}\n </div>\n <Icon\n className={styles.promopanel__icon}\n svgIcon={props.target === '_blank' ? ArrowUpRight : ArrowRight}\n size={breakpoint >= Breakpoint.md ? IconSize.Small : IconSize.XSmall}\n isHovered={isHovered}\n color={getColor('blueberry', 500)}\n hoverColor={getColor('blueberry', 600)}\n />\n </div>\n );\n};\n\nexport default PromoPanel;\n"],"names":["PromoPanelLink","props","React","PromoPanel","isHovered","hoverRef","useHover","color","titleHtmlMarkup","linkHtmlMarkup","breakpoint","useBreakpoint","promoPanelClasses","classNames","styles","promoPanelLink","illustrationSize","Breakpoint","AnalyticsId","LazyIllustration","Title","Icon","ArrowUpRight","ArrowRight","IconSize","getColor"],"mappings":";;;;;;;;;;;;AAsDA,MAAMA,IAAgD,CAASC,MACzDA,EAAM,gBACDC,EAAM,aAAaD,EAAM,eAAe,EAAE,UAAUA,EAAM,UAAU,IAGzEA,EAAM,mBAAmB,WAEzBC,gBAAAA,EAAA,cAAC,YAAO,MAAM,UAAU,SAASD,EAAM,YAAA,GACpCA,EAAM,QACT,IAIDC,gBAAAA,EAAA,cAAA,KAAA,EAAE,MAAMD,EAAM,MAAM,QAAQA,EAAM,QAAQ,SAASA,EAAM,YACvD,GAAAA,EAAM,QACT,GAIEE,IAAwC,CAASF,MAAA;AACrD,QAAM,EAAE,WAAAG,GAAW,UAAAC,EAAS,IAAIC,EAAyB,GAEnD,EAAE,OAAAC,IAAQ,WAAW,iBAAAC,IAAkB,MAAM,gBAAAC,IAAiB,IAAQ,IAAAR,GAEtES,IAAaC,KAEbC,IAAoBC;AAAA,IACxBC,EAAO;AAAA,IACPA,EAAO,eAAeP,CAAK,EAAE;AAAA,IAC7B,CAACN,EAAM,gBAAgBa,EAAO,6BAA6B;AAAA,EAAA,GAGvDC,IACJb,gBAAAA,EAAA;AAAA,IAACF;AAAA,IAAA;AAAA,MACC,MAAMC,EAAM;AAAA,MACZ,QAAQA,EAAM;AAAA,MACd,eAAeA,EAAM;AAAA,MACrB,gBAAAQ;AAAA,MACA,aAAaR,EAAM;AAAA,IAAA;AAAA,IAElBA,EAAM,SAASA,EAAM;AAAA,EAAA,GAIpBe,IACAN,KAAcO,EAAW,KACpB,MAGF;AAGT,SACGf,gBAAAA,EAAA,cAAA,OAAA,EAAI,WAAWU,GAAmB,eAAaX,EAAM,QAAQ,oBAAkBiB,EAAY,YAAY,KAAKb,EAAA,GAC1GJ,EAAM,gBACLC,gBAAAA,EAAA;AAAA,IAACiB;AAAA,IAAA;AAAA,MACC,kBAAkBlB,EAAM;AAAA,MACxB,MAAMe;AAAA,MACN,OAAAT;AAAA,MACA,WAAWO,EAAO;AAAA,IAAA;AAAA,EACpB,mCAED,OAAI,EAAA,WAAWA,EAAO,oBACpB,GAAAb,EAAM,SACLC,gBAAAA,EAAA,cAACkB,GAAM,EAAA,YAAYZ,GAAiB,YAAY,YAC7CO,CACH,GAEAd,EAAM,QAAyBA,EAAM,WAAvBc,CAClB,GACAb,gBAAAA,EAAA;AAAA,IAACmB;AAAA,IAAA;AAAA,MACC,WAAWP,EAAO;AAAA,MAClB,SAASb,EAAM,WAAW,WAAWqB,IAAeC;AAAA,MACpD,MAAMb,KAAcO,EAAW,KAAKO,EAAS,QAAQA,EAAS;AAAA,MAC9D,WAAApB;AAAA,MACA,OAAOqB,EAAS,aAAa,GAAG;AAAA,MAChC,YAAYA,EAAS,aAAa,GAAG;AAAA,IAAA;AAAA,EAAA,CAEzC;AAEJ;"}
@@ -1,104 +0,0 @@
1
- import u, { useState as P } from "react";
2
- import c from "classnames";
3
- import { FormMode as i, FormSize as U, AnalyticsId as W } from "../../constants.js";
4
- import { usePseudoClasses as q } from "../../hooks/usePseudoClasses.js";
5
- import { useUuid as G } from "../../hooks/useUuid.js";
6
- import { getAriaDescribedBy as H } from "../../utils/accessibility.js";
7
- import { isMutableRefObject as J, mergeRefs as K } from "../../utils/refs.js";
8
- import { uuid as Q } from "../../utils/uuid.js";
9
- import { ErrorWrapper as V } from "../ErrorWrapper/ErrorWrapper.js";
10
- import { getLabelText as X, renderLabelAsParent as Y } from "../Label/Label.js";
11
- import e from "../RadioButton/styles.module.scss";
12
- const be = (l, o, a, m) => {
13
- const n = o === "oninvalid", t = l === m;
14
- return c({
15
- [e["radio-button-label__large--on-grey"]]: a && o === "ongrey" && !t,
16
- [e["radio-button-label__large--on-blueberry"]]: o === "onblueberry" && !t && a,
17
- [e["radio-button-label__large--selected"]]: a && t && !n,
18
- [e["radio-button-label__large--selected-invalid"]]: a && t && n
19
- });
20
- }, Z = u.forwardRef((l, o) => {
21
- const {
22
- className: a,
23
- defaultChecked: m,
24
- onChange: n,
25
- disabled: t,
26
- label: f,
27
- inputId: p = Q(),
28
- mode: d = i.onwhite,
29
- name: v = p,
30
- size: w,
31
- errorText: _,
32
- error: k = !!_,
33
- errorTextId: B,
34
- value: R = X(f),
35
- testId: x,
36
- required: L,
37
- labelClassNames: N,
38
- ...I
39
- } = l, g = k || d === i.oninvalid, y = d === i.ondark, h = d === i.onblueberry, T = d === i.oninvalid, r = w === U.large, [E, A] = P(), { refObject: F, isFocused: s } = q(J(o) ? o : null), S = K([o, F]), C = G(B), j = c(e["radio-button-wrapper"], {
40
- [e["radio-button-wrapper--with-error"]]: _,
41
- [e["radio-button-wrapper__large"]]: r,
42
- [e["radio-button-wrapper__large--focused"]]: r && s,
43
- [e["radio-button-wrapper__large--selected"]]: r && E && s,
44
- [e["radio-button-wrapper__large--invalid"]]: r && T && s,
45
- [e["radio-button-wrapper__large--on-blueberry"]]: r && h && s
46
- }), z = c(
47
- e["radio-button-label"],
48
- {
49
- [e["radio-button-label--disabled"]]: t,
50
- [e["radio-button-label--on-dark"]]: y,
51
- [e["radio-button-label--invalid"]]: g,
52
- [e["radio-button-label__large"]]: r,
53
- [e["radio-button-label__large--disabled"]]: r && t
54
- },
55
- N
56
- ), D = c(
57
- e["radio-button"],
58
- {
59
- [e["radio-button--on-dark"]]: y,
60
- [e["radio-button--disabled"]]: t,
61
- [e["radio-button--on-blueberry"]]: h,
62
- [e["radio-button--invalid"]]: g,
63
- [e["radio-button__large"]]: r,
64
- [e["radio-button__large--disabled"]]: r && t,
65
- [e["radio-button__large--invalid"]]: r && g
66
- },
67
- a
68
- ), M = (b) => {
69
- A(b.target.checked), n && n(b);
70
- }, O = () => /* @__PURE__ */ u.createElement(
71
- "input",
72
- {
73
- id: p,
74
- name: v,
75
- className: D,
76
- type: "radio",
77
- disabled: t,
78
- value: R,
79
- ref: S,
80
- defaultChecked: m,
81
- "aria-describedby": H(l, C),
82
- required: L,
83
- ...I,
84
- onChange: (b) => M(b)
85
- }
86
- );
87
- return /* @__PURE__ */ u.createElement(V, { errorText: _, errorTextId: C }, /* @__PURE__ */ u.createElement("div", { "data-testid": x, "data-analyticsid": W.RadioButton, className: j }, Y(
88
- f,
89
- O(),
90
- p,
91
- d,
92
- z,
93
- void 0,
94
- e["radiobutton-sublabel-wrapper"],
95
- r
96
- )));
97
- });
98
- Z.displayName = "RadioButton";
99
- export {
100
- Z as RadioButton,
101
- Z as default,
102
- be as getRadioLabelClasses
103
- };
104
- //# sourceMappingURL=RadioButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RadioButton.js","sources":["../../../src/components/RadioButton/RadioButton.tsx"],"sourcesContent":["import React, { useState } from 'react';\n\nimport classNames from 'classnames';\n\nimport { AnalyticsId, FormMode, FormSize } from '../../constants';\nimport { usePseudoClasses } from '../../hooks/usePseudoClasses';\nimport { useUuid } from '../../hooks/useUuid';\nimport { getAriaDescribedBy } from '../../utils/accessibility';\nimport { isMutableRefObject, mergeRefs } from '../../utils/refs';\nimport { uuid } from '../../utils/uuid';\nimport ErrorWrapper from '../ErrorWrapper';\nimport { getLabelText, renderLabelAsParent } from '../Label';\n\nimport radioButtonStyles from './styles.module.scss';\n\nexport interface RadioButtonProps\n extends Pick<\n React.InputHTMLAttributes<HTMLInputElement>,\n 'aria-describedby' | 'name' | 'value' | 'disabled' | 'checked' | 'defaultChecked' | 'required' | 'onChange'\n > {\n /** Adds custom classes to the element. */\n className?: string;\n /** The <Label/> next to the radioButton - sublabels kan ikke kombineres med large variant */\n label: React.ReactNode;\n /** Adds custom classes to the label element. */\n labelClassNames?: string;\n /** input id of the radioButton */\n inputId?: string;\n /** Changes the visuals of the radioButton */\n mode?: keyof typeof FormMode;\n /** Changes the visuals of the radioButton. Large version only works when used inside a FormGroup wrapper. */\n size?: keyof typeof FormSize;\n /** Activates Error style for the radioButton - This is can be true while errorText is empty, when in a FormGroup */\n error?: boolean;\n /** Error text to show above the component */\n errorText?: string;\n /** Error text id */\n errorTextId?: string;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nexport const getRadioLabelClasses = (radioId: string, mode: FormMode, large: boolean, checkedRadioId?: string): string | undefined => {\n const onCherry = mode === 'oninvalid';\n const checked = radioId === checkedRadioId;\n\n return classNames({\n [radioButtonStyles['radio-button-label__large--on-grey']]: large && mode === 'ongrey' && !checked,\n [radioButtonStyles['radio-button-label__large--on-blueberry']]: mode === 'onblueberry' && !checked && large,\n [radioButtonStyles['radio-button-label__large--selected']]: large && checked && !onCherry,\n [radioButtonStyles['radio-button-label__large--selected-invalid']]: large && checked && onCherry,\n });\n};\n\nexport const RadioButton = React.forwardRef((props: RadioButtonProps, ref: React.Ref<HTMLInputElement>) => {\n const {\n className,\n defaultChecked,\n onChange,\n disabled,\n label,\n inputId = uuid(),\n mode = FormMode.onwhite,\n name = inputId,\n size,\n errorText,\n error = !!errorText,\n errorTextId,\n value = getLabelText(label),\n testId,\n required,\n labelClassNames,\n ...rest\n } = props;\n const invalid = error || mode === FormMode.oninvalid;\n const onDark = mode === FormMode.ondark;\n const onBlueberry = mode === FormMode.onblueberry;\n const onCherry = mode === FormMode.oninvalid;\n const isLarge = size === FormSize.large;\n const [checked, changeChecked] = useState<boolean>();\n const { refObject, isFocused } = usePseudoClasses<HTMLInputElement>(isMutableRefObject(ref) ? ref : null);\n const mergedRefs = mergeRefs([ref, refObject]);\n const errorTextUuid = useUuid(errorTextId);\n\n const radioButtonWrapperClasses = classNames(radioButtonStyles['radio-button-wrapper'], {\n [radioButtonStyles['radio-button-wrapper--with-error']]: errorText,\n [radioButtonStyles['radio-button-wrapper__large']]: isLarge,\n [radioButtonStyles['radio-button-wrapper__large--focused']]: isLarge && isFocused,\n [radioButtonStyles['radio-button-wrapper__large--selected']]: isLarge && checked && isFocused,\n [radioButtonStyles['radio-button-wrapper__large--invalid']]: isLarge && onCherry && isFocused,\n [radioButtonStyles['radio-button-wrapper__large--on-blueberry']]: isLarge && onBlueberry && isFocused,\n });\n const radioButtonLabelClasses = classNames(\n radioButtonStyles['radio-button-label'],\n {\n [radioButtonStyles['radio-button-label--disabled']]: disabled,\n [radioButtonStyles['radio-button-label--on-dark']]: onDark,\n [radioButtonStyles['radio-button-label--invalid']]: invalid,\n [radioButtonStyles['radio-button-label__large']]: isLarge,\n [radioButtonStyles['radio-button-label__large--disabled']]: isLarge && disabled,\n },\n labelClassNames\n );\n const radioButtonClasses = classNames(\n radioButtonStyles['radio-button'],\n {\n [radioButtonStyles['radio-button--on-dark']]: onDark,\n [radioButtonStyles['radio-button--disabled']]: disabled,\n [radioButtonStyles['radio-button--on-blueberry']]: onBlueberry,\n [radioButtonStyles['radio-button--invalid']]: invalid,\n [radioButtonStyles['radio-button__large']]: isLarge,\n [radioButtonStyles['radio-button__large--disabled']]: isLarge && disabled,\n [radioButtonStyles['radio-button__large--invalid']]: isLarge && invalid,\n },\n className\n );\n\n const change = (e: React.ChangeEvent<HTMLInputElement>): void => {\n changeChecked(e.target.checked);\n onChange && onChange(e);\n };\n\n const getLabelContent = (): React.ReactNode => (\n <input\n id={inputId}\n name={name}\n className={radioButtonClasses}\n type=\"radio\"\n disabled={disabled}\n value={value}\n ref={mergedRefs}\n defaultChecked={defaultChecked}\n aria-describedby={getAriaDescribedBy(props, errorTextUuid)}\n required={required}\n {...rest}\n onChange={(e): void => change(e)}\n />\n );\n\n return (\n <ErrorWrapper errorText={errorText} errorTextId={errorTextUuid}>\n <div data-testid={testId} data-analyticsid={AnalyticsId.RadioButton} className={radioButtonWrapperClasses}>\n {renderLabelAsParent(\n label,\n getLabelContent(),\n inputId,\n mode as FormMode,\n radioButtonLabelClasses,\n undefined,\n radioButtonStyles['radiobutton-sublabel-wrapper'],\n isLarge\n )}\n </div>\n </ErrorWrapper>\n );\n});\n\nRadioButton.displayName = 'RadioButton';\n\nexport default RadioButton;\n"],"names":["getRadioLabelClasses","radioId","mode","large","checkedRadioId","onCherry","checked","classNames","radioButtonStyles","RadioButton","React","props","ref","className","defaultChecked","onChange","disabled","label","inputId","uuid","FormMode","name","size","errorText","error","errorTextId","value","getLabelText","testId","required","labelClassNames","rest","invalid","onDark","onBlueberry","isLarge","FormSize","changeChecked","useState","refObject","isFocused","usePseudoClasses","isMutableRefObject","mergedRefs","mergeRefs","errorTextUuid","useUuid","radioButtonWrapperClasses","radioButtonLabelClasses","radioButtonClasses","change","e","getLabelContent","getAriaDescribedBy","ErrorWrapper","AnalyticsId","renderLabelAsParent"],"mappings":";;;;;;;;;;;AA0CO,MAAMA,KAAuB,CAACC,GAAiBC,GAAgBC,GAAgBC,MAAgD;AACpI,QAAMC,IAAWH,MAAS,aACpBI,IAAUL,MAAYG;AAE5B,SAAOG,EAAW;AAAA,IAChB,CAACC,EAAkB,oCAAoC,CAAC,GAAGL,KAASD,MAAS,YAAY,CAACI;AAAA,IAC1F,CAACE,EAAkB,yCAAyC,CAAC,GAAGN,MAAS,iBAAiB,CAACI,KAAWH;AAAA,IACtG,CAACK,EAAkB,qCAAqC,CAAC,GAAGL,KAASG,KAAW,CAACD;AAAA,IACjF,CAACG,EAAkB,6CAA6C,CAAC,GAAGL,KAASG,KAAWD;AAAA,EAAA,CACzF;AACH,GAEaI,IAAcC,EAAM,WAAW,CAACC,GAAyBC,MAAqC;AACnG,QAAA;AAAA,IACJ,WAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,OAAAC;AAAA,IACA,SAAAC,IAAUC,EAAK;AAAA,IACf,MAAAjB,IAAOkB,EAAS;AAAA,IAChB,MAAAC,IAAOH;AAAA,IACP,MAAAI;AAAA,IACA,WAAAC;AAAA,IACA,OAAAC,IAAQ,CAAC,CAACD;AAAA,IACV,aAAAE;AAAA,IACA,OAAAC,IAAQC,EAAaV,CAAK;AAAA,IAC1B,QAAAW;AAAA,IACA,UAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,GAAGC;AAAA,EACD,IAAApB,GACEqB,IAAUR,KAAStB,MAASkB,EAAS,WACrCa,IAAS/B,MAASkB,EAAS,QAC3Bc,IAAchC,MAASkB,EAAS,aAChCf,IAAWH,MAASkB,EAAS,WAC7Be,IAAUb,MAASc,EAAS,OAC5B,CAAC9B,GAAS+B,CAAa,IAAIC,EAAkB,GAC7C,EAAE,WAAAC,GAAW,WAAAC,EAAU,IAAIC,EAAmCC,EAAmB9B,CAAG,IAAIA,IAAM,IAAI,GAClG+B,IAAaC,EAAU,CAAChC,GAAK2B,CAAS,CAAC,GACvCM,IAAgBC,EAAQrB,CAAW,GAEnCsB,IAA4BxC,EAAWC,EAAkB,sBAAsB,GAAG;AAAA,IACtF,CAACA,EAAkB,kCAAkC,CAAC,GAAGe;AAAA,IACzD,CAACf,EAAkB,6BAA6B,CAAC,GAAG2B;AAAA,IACpD,CAAC3B,EAAkB,sCAAsC,CAAC,GAAG2B,KAAWK;AAAA,IACxE,CAAChC,EAAkB,uCAAuC,CAAC,GAAG2B,KAAW7B,KAAWkC;AAAA,IACpF,CAAChC,EAAkB,sCAAsC,CAAC,GAAG2B,KAAW9B,KAAYmC;AAAA,IACpF,CAAChC,EAAkB,2CAA2C,CAAC,GAAG2B,KAAWD,KAAeM;AAAA,EAAA,CAC7F,GACKQ,IAA0BzC;AAAA,IAC9BC,EAAkB,oBAAoB;AAAA,IACtC;AAAA,MACE,CAACA,EAAkB,8BAA8B,CAAC,GAAGQ;AAAA,MACrD,CAACR,EAAkB,6BAA6B,CAAC,GAAGyB;AAAA,MACpD,CAACzB,EAAkB,6BAA6B,CAAC,GAAGwB;AAAA,MACpD,CAACxB,EAAkB,2BAA2B,CAAC,GAAG2B;AAAA,MAClD,CAAC3B,EAAkB,qCAAqC,CAAC,GAAG2B,KAAWnB;AAAA,IACzE;AAAA,IACAc;AAAA,EAAA,GAEImB,IAAqB1C;AAAA,IACzBC,EAAkB,cAAc;AAAA,IAChC;AAAA,MACE,CAACA,EAAkB,uBAAuB,CAAC,GAAGyB;AAAA,MAC9C,CAACzB,EAAkB,wBAAwB,CAAC,GAAGQ;AAAA,MAC/C,CAACR,EAAkB,4BAA4B,CAAC,GAAG0B;AAAA,MACnD,CAAC1B,EAAkB,uBAAuB,CAAC,GAAGwB;AAAA,MAC9C,CAACxB,EAAkB,qBAAqB,CAAC,GAAG2B;AAAA,MAC5C,CAAC3B,EAAkB,+BAA+B,CAAC,GAAG2B,KAAWnB;AAAA,MACjE,CAACR,EAAkB,8BAA8B,CAAC,GAAG2B,KAAWH;AAAA,IAClE;AAAA,IACAnB;AAAA,EAAA,GAGIqC,IAAS,CAACC,MAAiD;AACjD,IAAAd,EAAAc,EAAE,OAAO,OAAO,GAC9BpC,KAAYA,EAASoC,CAAC;AAAA,EAAA,GAGlBC,IAAkB,MACtB1C,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,IAAIQ;AAAA,MACJ,MAAAG;AAAA,MACA,WAAW4B;AAAA,MACX,MAAK;AAAA,MACL,UAAAjC;AAAA,MACA,OAAAU;AAAA,MACA,KAAKiB;AAAA,MACL,gBAAA7B;AAAA,MACA,oBAAkBuC,EAAmB1C,GAAOkC,CAAa;AAAA,MACzD,UAAAhB;AAAA,MACC,GAAGE;AAAA,MACJ,UAAU,CAACoB,MAAYD,EAAOC,CAAC;AAAA,IAAA;AAAA,EAAA;AAInC,SACGzC,gBAAAA,EAAA,cAAA4C,GAAA,EAAa,WAAA/B,GAAsB,aAAasB,EAC/C,GAAAnC,gBAAAA,EAAA,cAAC,OAAI,EAAA,eAAakB,GAAQ,oBAAkB2B,EAAY,aAAa,WAAWR,EAC7E,GAAAS;AAAA,IACCvC;AAAA,IACAmC,EAAgB;AAAA,IAChBlC;AAAA,IACAhB;AAAA,IACA8C;AAAA,IACA;AAAA,IACAxC,EAAkB,8BAA8B;AAAA,IAChD2B;AAAA,EAEJ,CAAA,CACF;AAEJ,CAAC;AAED1B,EAAY,cAAc;"}
@@ -1,70 +0,0 @@
1
- import r from "react";
2
- import s from "classnames";
3
- import { FormMode as F, AnalyticsId as H, IconSize as M, AVERAGE_CHARACTER_WIDTH_PX as U } from "../../constants.js";
4
- import { useUuid as w } from "../../hooks/useUuid.js";
5
- import { getColor as v } from "../../theme/currys/color.js";
6
- import { getAriaDescribedBy as V } from "../../utils/accessibility.js";
7
- import { ErrorWrapper as X } from "../ErrorWrapper/ErrorWrapper.js";
8
- import { Icon as $ } from "../Icon/Icon.js";
9
- import G from "../Icons/ChevronDown.js";
10
- import { renderLabel as L } from "../Label/Label.js";
11
- import e from "../Select/styles.module.scss";
12
- const P = (o) => `calc(${o * U}px + 2rem)`, j = (o, t) => t ? v("neutral", 500) : v(o ? "cherry" : "blueberry", 600), ae = r.forwardRef(function(t, c) {
13
- const {
14
- className: y,
15
- children: I,
16
- concept: h = "normal",
17
- disabled: l,
18
- error: E,
19
- errorText: i,
20
- errorTextId: x,
21
- label: W,
22
- selectId: d,
23
- name: g = d,
24
- mode: n = F.onwhite,
25
- testId: N,
26
- width: m,
27
- required: p,
28
- value: S,
29
- defaultValue: A,
30
- autoComplete: u = "off",
31
- wrapperClassName: R,
32
- ...T
33
- } = t, f = w(d), b = w(x), C = n === "onblueberry", a = n === "oninvalid" || !!i || !!E, _ = j(a, !!l), D = m ? P(m) : void 0, q = s(
34
- e["select-inner-wrapper"],
35
- {
36
- [e["select-inner-wrapper--transparent"]]: h === "transparent",
37
- [e["select-inner-wrapper--on-blueberry"]]: C,
38
- [e["select-inner-wrapper--invalid"]]: a,
39
- [e["select-inner-wrapper--disabled"]]: l
40
- },
41
- y
42
- ), z = s(e.select, {
43
- [e["select--on-blueberry"]]: C,
44
- [e["select--invalid"]]: a
45
- }), B = s(e["select-wrapper"], R);
46
- return /* @__PURE__ */ r.createElement(X, { errorText: i, errorTextId: b }, /* @__PURE__ */ r.createElement("div", { "data-testid": N, "data-analyticsid": H.Select, className: B, style: { maxWidth: D } }, L(W, f, n), /* @__PURE__ */ r.createElement("div", { className: q }, /* @__PURE__ */ r.createElement($, { className: e["select-arrow"], svgIcon: G, color: _, size: M.XSmall }), /* @__PURE__ */ r.createElement(
47
- "select",
48
- {
49
- "aria-invalid": !!a,
50
- id: f,
51
- name: g,
52
- className: z,
53
- disabled: l,
54
- ref: c,
55
- required: p,
56
- "aria-describedby": V(t, b),
57
- "aria-required": !!p,
58
- value: S,
59
- defaultValue: A,
60
- autoComplete: u || void 0,
61
- ...T
62
- },
63
- I
64
- ))));
65
- });
66
- export {
67
- ae as Select,
68
- ae as default
69
- };
70
- //# sourceMappingURL=Select.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Select.js","sources":["../../../src/components/Select/Select.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { AnalyticsId, AVERAGE_CHARACTER_WIDTH_PX, FormMode, IconSize } from '../../constants';\nimport { useUuid } from '../../hooks/useUuid';\nimport { getColor } from '../../theme/currys';\nimport { getAriaDescribedBy } from '../../utils/accessibility';\nimport ErrorWrapper from '../ErrorWrapper';\nimport Icon from '../Icon';\nimport ChevronDown from '../Icons/ChevronDown';\nimport { renderLabel } from '../Label';\n\nimport selectStyles from './styles.module.scss';\n\ntype SelectConcept = 'normal' | 'transparent';\n\nexport interface SelectProps\n extends Pick<\n React.SelectHTMLAttributes<HTMLSelectElement>,\n 'aria-describedby' | 'name' | 'disabled' | 'required' | 'value' | 'onChange' | 'autoComplete'\n > {\n /** Sets the content of the select element. */\n children: React.ReactNode;\n /** Adds custom classes to the element. */\n className?: string;\n /** Changes the visuals of the component */\n concept?: SelectConcept;\n /** The label text above the select */\n label?: React.ReactNode;\n /** Changes the visuals of the component */\n mode?: keyof typeof FormMode;\n /** Activates Error style for the select component - This is can be true while errorText is empty, when in a FormGroup */\n error?: boolean;\n /** Error text to show above the component */\n errorText?: string;\n /** Error text id */\n errorTextId?: string;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** select id of the select element */\n selectId?: string;\n /** Width of select in characters (approximate) */\n width?: number;\n /** Gives defaultvalue to the comp. Preferred over selected prop on option by react */\n defaultValue?: string | number;\n /** Adds custom classes to the wrapper tag */\n wrapperClassName?: string;\n}\n\nconst getSelectMaxWidth = (characters: number): string => {\n const paddingWidth = '2rem';\n\n return `calc(${characters * AVERAGE_CHARACTER_WIDTH_PX}px + ${paddingWidth})`;\n};\n\nconst getIconColor = (invalid: boolean, disabled: boolean) => {\n const iconColor = invalid ? 'cherry' : 'blueberry';\n return disabled ? getColor('neutral', 500) : getColor(iconColor, 600);\n};\n\nexport const Select = React.forwardRef(function SelectForwardedRef(props: SelectProps, ref: React.Ref<HTMLSelectElement>) {\n const {\n className,\n children,\n concept = 'normal',\n disabled,\n error,\n errorText,\n errorTextId,\n label,\n selectId,\n name = selectId,\n mode = FormMode.onwhite,\n testId,\n width,\n required,\n value,\n defaultValue,\n autoComplete = 'off',\n wrapperClassName,\n ...rest\n } = props;\n\n const uuid = useUuid(selectId);\n const errorTextUuid = useUuid(errorTextId);\n const onBlueberry = mode === 'onblueberry';\n const invalid = mode === 'oninvalid' || !!errorText || !!error;\n const iconColor = getIconColor(invalid, !!disabled);\n const maxWidth = width ? getSelectMaxWidth(width) : undefined;\n\n const selectInnerWrapperClasses = classNames(\n selectStyles['select-inner-wrapper'],\n {\n [selectStyles['select-inner-wrapper--transparent']]: concept === 'transparent',\n [selectStyles['select-inner-wrapper--on-blueberry']]: onBlueberry,\n [selectStyles['select-inner-wrapper--invalid']]: invalid,\n [selectStyles['select-inner-wrapper--disabled']]: disabled,\n },\n className\n );\n\n const selectClasses = classNames(selectStyles.select, {\n [selectStyles['select--on-blueberry']]: onBlueberry,\n [selectStyles['select--invalid']]: invalid,\n });\n\n const selectWrapperClasses = classNames(selectStyles['select-wrapper'], wrapperClassName);\n\n return (\n <ErrorWrapper errorText={errorText} errorTextId={errorTextUuid}>\n <div data-testid={testId} data-analyticsid={AnalyticsId.Select} className={selectWrapperClasses} style={{ maxWidth }}>\n {renderLabel(label, uuid, mode as FormMode)}\n <div className={selectInnerWrapperClasses}>\n <Icon className={selectStyles['select-arrow']} svgIcon={ChevronDown} color={iconColor} size={IconSize.XSmall} />\n <select\n aria-invalid={!!invalid}\n id={uuid}\n name={name}\n className={selectClasses}\n disabled={disabled}\n ref={ref}\n required={required}\n aria-describedby={getAriaDescribedBy(props, errorTextUuid)}\n aria-required={!!required}\n value={value}\n defaultValue={defaultValue}\n autoComplete={autoComplete ? autoComplete : undefined}\n {...rest}\n >\n {children}\n </select>\n </div>\n </div>\n </ErrorWrapper>\n );\n});\n\nexport default Select;\n"],"names":["getSelectMaxWidth","characters","AVERAGE_CHARACTER_WIDTH_PX","getIconColor","invalid","disabled","getColor","Select","React","props","ref","className","children","concept","error","errorText","errorTextId","label","selectId","name","mode","FormMode","testId","width","required","value","defaultValue","autoComplete","wrapperClassName","rest","uuid","useUuid","errorTextUuid","onBlueberry","iconColor","maxWidth","selectInnerWrapperClasses","classNames","selectStyles","selectClasses","selectWrapperClasses","ErrorWrapper","AnalyticsId","renderLabel","Icon","ChevronDown","IconSize","getAriaDescribedBy"],"mappings":";;;;;;;;;;;AAkDA,MAAMA,IAAoB,CAACC,MAGlB,QAAQA,IAAaC,CAA0B,cAGlDC,IAAe,CAACC,GAAkBC,MAE/BA,IAAWC,EAAS,WAAW,GAAG,IAAIA,EAD3BF,IAAU,WAAW,aAC0B,GAAG,GAGzDG,KAASC,EAAM,WAAW,SAA4BC,GAAoBC,GAAmC;AAClH,QAAA;AAAA,IACJ,WAAAC;AAAA,IACA,UAAAC;AAAA,IACA,SAAAC,IAAU;AAAA,IACV,UAAAR;AAAA,IACA,OAAAS;AAAA,IACA,WAAAC;AAAA,IACA,aAAAC;AAAA,IACA,OAAAC;AAAA,IACA,UAAAC;AAAA,IACA,MAAAC,IAAOD;AAAA,IACP,MAAAE,IAAOC,EAAS;AAAA,IAChB,QAAAC;AAAA,IACA,OAAAC;AAAA,IACA,UAAAC;AAAA,IACA,OAAAC;AAAA,IACA,cAAAC;AAAA,IACA,cAAAC,IAAe;AAAA,IACf,kBAAAC;AAAA,IACA,GAAGC;AAAA,EACD,IAAApB,GAEEqB,IAAOC,EAAQb,CAAQ,GACvBc,IAAgBD,EAAQf,CAAW,GACnCiB,IAAcb,MAAS,eACvBhB,IAAUgB,MAAS,eAAe,CAAC,CAACL,KAAa,CAAC,CAACD,GACnDoB,IAAY/B,EAAaC,GAAS,CAAC,CAACC,CAAQ,GAC5C8B,IAAWZ,IAAQvB,EAAkBuB,CAAK,IAAI,QAE9Ca,IAA4BC;AAAA,IAChCC,EAAa,sBAAsB;AAAA,IACnC;AAAA,MACE,CAACA,EAAa,mCAAmC,CAAC,GAAGzB,MAAY;AAAA,MACjE,CAACyB,EAAa,oCAAoC,CAAC,GAAGL;AAAA,MACtD,CAACK,EAAa,+BAA+B,CAAC,GAAGlC;AAAA,MACjD,CAACkC,EAAa,gCAAgC,CAAC,GAAGjC;AAAA,IACpD;AAAA,IACAM;AAAA,EAAA,GAGI4B,IAAgBF,EAAWC,EAAa,QAAQ;AAAA,IACpD,CAACA,EAAa,sBAAsB,CAAC,GAAGL;AAAA,IACxC,CAACK,EAAa,iBAAiB,CAAC,GAAGlC;AAAA,EAAA,CACpC,GAEKoC,IAAuBH,EAAWC,EAAa,gBAAgB,GAAGV,CAAgB;AAExF,yCACGa,GAAa,EAAA,WAAA1B,GAAsB,aAAaiB,KAC/CxB,gBAAAA,EAAA,cAAC,SAAI,eAAac,GAAQ,oBAAkBoB,EAAY,QAAQ,WAAWF,GAAsB,OAAO,EAAE,UAAAL,EAAA,KACvGQ,EAAY1B,GAAOa,GAAMV,CAAgB,GACzCZ,gBAAAA,EAAA,cAAA,OAAA,EAAI,WAAW4B,EACd,GAAA5B,gBAAAA,EAAA,cAACoC,KAAK,WAAWN,EAAa,cAAc,GAAG,SAASO,GAAa,OAAOX,GAAW,MAAMY,EAAS,QAAQ,GAC9GtC,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,gBAAc,CAAC,CAACJ;AAAA,MAChB,IAAI0B;AAAA,MACJ,MAAAX;AAAA,MACA,WAAWoB;AAAA,MACX,UAAAlC;AAAA,MACA,KAAAK;AAAA,MACA,UAAAc;AAAA,MACA,oBAAkBuB,EAAmBtC,GAAOuB,CAAa;AAAA,MACzD,iBAAe,CAAC,CAACR;AAAA,MACjB,OAAAC;AAAA,MACA,cAAAC;AAAA,MACA,cAAcC,KAA8B;AAAA,MAC3C,GAAGE;AAAA,IAAA;AAAA,IAEHjB;AAAA,EAEL,CAAA,CACF,CACF;AAEJ,CAAC;"}
@@ -1,92 +0,0 @@
1
- import e, { useState as h } from "react";
2
- import p from "classnames";
3
- import { useBreakpoint as z } from "../../hooks/useBreakpoint.js";
4
- import { useHover as u } from "../../hooks/useHover.js";
5
- import { useUuid as w } from "../../hooks/useUuid.js";
6
- import { getColor as H } from "../../theme/currys/color.js";
7
- import { breakpoints as L } from "../../theme/grid.js";
8
- import { getAriaLabelAttributes as X } from "../../utils/accessibility.js";
9
- import y from "../Badge/NotificationBadge.js";
10
- import A from "../Close/Close.js";
11
- import { Icon as C } from "../Icon/Icon.js";
12
- import { IconSize as E } from "../../constants.js";
13
- import M from "../Icons/ChevronDown.js";
14
- import U from "../Icons/ChevronUp.js";
15
- import B from "../Icons/Forward.js";
16
- import j from "../Icons/X.js";
17
- import s from "../ServiceMessage/styles.module.scss";
18
- const F = ({ label: o, variant: c, id: m, hasExpander: r, isExpanded: i, dismissable: v, onExpand: l, onDismiss: _, closeBtnText: n }) => {
19
- const d = z(), { isHovered: a, hoverRef: g } = u(), t = d < L.lg ? E.XSmall : E.Small, N = r ? "button" : "span", f = p(
20
- s["service-message__label-container"],
21
- r && s["service-message__label-container--has-expander"]
22
- );
23
- return /* @__PURE__ */ e.createElement("div", { className: f, ref: g }, /* @__PURE__ */ e.createElement("div", { className: s["service-message__container"] }, /* @__PURE__ */ e.createElement("div", { className: s["service-message__row"] }, /* @__PURE__ */ e.createElement("div", { className: s["service-message__col"] }, /* @__PURE__ */ e.createElement("div", { className: s["service-message__label"] }, /* @__PURE__ */ e.createElement(y, { variant: c, size: t, isHovered: a }), /* @__PURE__ */ e.createElement("h1", { className: s["service-message__title"], id: m }, /* @__PURE__ */ e.createElement(
24
- N,
25
- {
26
- className: s["service-message__toggle"],
27
- onClick: r ? l : void 0,
28
- "aria-expanded": r ? i : void 0
29
- },
30
- o
31
- )), r && /* @__PURE__ */ e.createElement(C, { size: t, svgIcon: i ? U : M, isHovered: a }), !r && v && /* @__PURE__ */ e.createElement(A, { onClick: _, ariaLabel: n, className: s["service-message__close"] }))))));
32
- }, $ = ({ info: o, extraInfo: c, urlTitle: m, url: r, target: i, dismissable: v, closeBtnText: l, onDismiss: _ }) => {
33
- const { hoverRef: n, isHovered: d } = u(), { hoverRef: a, isHovered: g } = u(), t = r && m;
34
- return /* @__PURE__ */ e.createElement("div", { className: s["service-message__container"] }, /* @__PURE__ */ e.createElement("div", { className: s["service-message__row"] }, /* @__PURE__ */ e.createElement("div", { className: s["service-message__col"] }, /* @__PURE__ */ e.createElement("div", { className: s["service-message__content"] }, o && /* @__PURE__ */ e.createElement("p", { className: s["service-message__info"] }, o), c && /* @__PURE__ */ e.createElement("p", { className: p(s["service-message__info"], s["service-message__info--extra"]) }, c), /* @__PURE__ */ e.createElement("div", { className: s["service-message__actions"] }, t && /* @__PURE__ */ e.createElement("a", { className: s["service-message__action"], href: r, ref: n, target: i }, m, /* @__PURE__ */ e.createElement(C, { size: E.XSmall, svgIcon: B, color: H("blueberry", 700), isHovered: d })), v && /* @__PURE__ */ e.createElement(
35
- "button",
36
- {
37
- ref: a,
38
- className: p(s["service-message__action"], s["service-message__action--close"]),
39
- "aria-label": l,
40
- onClick: _
41
- },
42
- l,
43
- /* @__PURE__ */ e.createElement(C, { size: E.XSmall, svgIcon: j, color: H("blueberry", 700), isHovered: g })
44
- ))))));
45
- }, ae = ({
46
- label: o,
47
- dismissable: c = !0,
48
- onDismiss: m,
49
- info: r,
50
- extraInfo: i,
51
- urlTitle: v,
52
- url: l,
53
- target: _ = "_self",
54
- closeBtnText: n = "fjern melding",
55
- expanderOpenFromStart: d = !1,
56
- variant: a = "error",
57
- testId: g
58
- }) => {
59
- const [t, N] = h(d), f = w(), b = !!r || !!i, R = a === "error" ? "alert" : "region", S = X({ label: o, id: f }), k = () => {
60
- b && N(!t);
61
- }, I = p(s["service-message"], s[`service-message--${a}`]);
62
- return /* @__PURE__ */ e.createElement("div", { className: I, role: R, ...S, "data-testid": g }, /* @__PURE__ */ e.createElement(
63
- F,
64
- {
65
- label: o,
66
- variant: a,
67
- id: f,
68
- hasExpander: b,
69
- isExpanded: t,
70
- dismissable: c,
71
- onExpand: k,
72
- onDismiss: m,
73
- closeBtnText: n
74
- }
75
- ), b && t && /* @__PURE__ */ e.createElement(
76
- $,
77
- {
78
- info: r,
79
- extraInfo: i,
80
- urlTitle: v,
81
- url: l,
82
- target: _,
83
- dismissable: c,
84
- onDismiss: m,
85
- closeBtnText: n
86
- }
87
- ));
88
- };
89
- export {
90
- ae as default
91
- };
92
- //# sourceMappingURL=ServiceMessage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ServiceMessage.js","sources":["../../../src/components/ServiceMessage/ServiceMessage.tsx"],"sourcesContent":["import React, { useState } from 'react';\n\nimport classNames from 'classnames';\n\nimport { useBreakpoint } from '../../hooks/useBreakpoint';\nimport { useHover } from '../../hooks/useHover';\nimport { useUuid } from '../../hooks/useUuid';\nimport { getColor } from '../../theme/currys';\nimport { breakpoints } from '../../theme/grid';\nimport { getAriaLabelAttributes } from '../../utils/accessibility';\nimport { AnchorLinkTargets } from '../AnchorLink';\nimport NotificationBadge from '../Badge/NotificationBadge';\nimport Close from '../Close';\nimport Icon, { IconSize } from '../Icon';\nimport ChevronDown from '../Icons/ChevronDown';\nimport ChevronUp from '../Icons/ChevronUp';\nimport Forward from '../Icons/Forward';\nimport X from '../Icons/X';\nimport { NotificationPanelVariants } from '../NotificationPanel';\n\nimport styles from './styles.module.scss';\n\ninterface LabelProps {\n label: string;\n variant: NotificationPanelVariants;\n id: string;\n hasExpander: boolean;\n isExpanded: boolean;\n dismissable: boolean;\n onExpand: () => void;\n onDismiss?: () => void;\n closeBtnText?: string;\n}\n\nconst Label: React.FC<LabelProps> = ({ label, variant, id, hasExpander, isExpanded, dismissable, onExpand, onDismiss, closeBtnText }) => {\n const breakpoint = useBreakpoint();\n const { isHovered, hoverRef } = useHover<HTMLDivElement>();\n\n const iconSize = breakpoint < breakpoints.lg ? IconSize.XSmall : IconSize.Small;\n const CustomTag = hasExpander ? 'button' : 'span';\n\n const labelContainerClasses = classNames(\n styles['service-message__label-container'],\n hasExpander && styles[`service-message__label-container--has-expander`]\n );\n\n return (\n <div className={labelContainerClasses} ref={hoverRef}>\n <div className={styles['service-message__container']}>\n <div className={styles['service-message__row']}>\n <div className={styles['service-message__col']}>\n <div className={styles['service-message__label']}>\n <NotificationBadge variant={variant} size={iconSize} isHovered={isHovered} />\n <h1 className={styles['service-message__title']} id={id}>\n <CustomTag\n className={styles['service-message__toggle']}\n onClick={hasExpander ? onExpand : undefined}\n aria-expanded={hasExpander ? isExpanded : undefined}\n >\n {label}\n </CustomTag>\n </h1>\n {hasExpander && <Icon size={iconSize} svgIcon={isExpanded ? ChevronUp : ChevronDown} isHovered={isHovered} />}\n {!hasExpander && dismissable && (\n <Close onClick={onDismiss} ariaLabel={closeBtnText} className={styles['service-message__close']} />\n )}\n </div>\n </div>\n </div>\n </div>\n </div>\n );\n};\n\ninterface ContentProps {\n info?: string;\n extraInfo?: string;\n urlTitle?: string;\n url?: string;\n target?: AnchorLinkTargets;\n dismissable: boolean;\n onDismiss?: () => void;\n closeBtnText?: string;\n}\n\nconst Content: React.FC<ContentProps> = ({ info, extraInfo, urlTitle, url, target, dismissable, closeBtnText, onDismiss }) => {\n const { hoverRef: readMoreRef, isHovered: readMoreHoverRefIsHovered } = useHover<HTMLAnchorElement>();\n const { hoverRef: closeButtonRef, isHovered: closeButtonIsHovered } = useHover<HTMLButtonElement>();\n\n const hasUrl = url && urlTitle;\n\n return (\n <div className={styles['service-message__container']}>\n <div className={styles['service-message__row']}>\n <div className={styles['service-message__col']}>\n <div className={styles['service-message__content']}>\n {info && <p className={styles['service-message__info']}>{info}</p>}\n {extraInfo && (\n <p className={classNames(styles['service-message__info'], styles['service-message__info--extra'])}>{extraInfo}</p>\n )}\n <div className={styles['service-message__actions']}>\n {hasUrl && (\n <a className={styles['service-message__action']} href={url} ref={readMoreRef} target={target}>\n {urlTitle}\n <Icon size={IconSize.XSmall} svgIcon={Forward} color={getColor('blueberry', 700)} isHovered={readMoreHoverRefIsHovered} />\n </a>\n )}\n\n {dismissable && (\n <button\n ref={closeButtonRef}\n className={classNames(styles['service-message__action'], styles['service-message__action--close'])}\n aria-label={closeBtnText}\n onClick={onDismiss}\n >\n {closeBtnText}\n <Icon size={IconSize.XSmall} svgIcon={X} color={getColor('blueberry', 700)} isHovered={closeButtonIsHovered} />\n </button>\n )}\n </div>\n </div>\n </div>\n </div>\n </div>\n );\n};\n\nexport interface ServiceMessageProps {\n /** Sets a label for the notification panel. */\n label: string;\n /** String displayed in service-message when expanded */\n info?: string;\n /** String displayed in service-message when expanded, with a smaller font */\n extraInfo?: string;\n /** function that runs on dismiss */\n onDismiss?: () => void;\n /** Allows for dismiss to be an option, also for ServiceMessage with only label as content */\n dismissable?: boolean;\n /** Makes expander be open from start. */\n expanderOpenFromStart?: boolean;\n /** Name that describes a url-link for the user*/\n urlTitle?: string;\n /** Url for further information*/\n url?: string;\n /** Sets target for the anchorlink to the url*/\n target?: AnchorLinkTargets;\n /** Text on close-button in service messages. */\n closeBtnText?: string;\n /** Changes the visual representation. */\n variant?: NotificationPanelVariants;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nconst ServiceMessage: React.FC<ServiceMessageProps> = ({\n label,\n dismissable = true,\n onDismiss,\n info,\n extraInfo,\n urlTitle,\n url,\n target = '_self',\n closeBtnText = 'fjern melding',\n expanderOpenFromStart = false,\n variant = 'error',\n testId,\n}) => {\n const [isExpanded, setIsExpanded] = useState<boolean>(expanderOpenFromStart);\n\n const labelId = useUuid();\n const hasExpander = !!info || !!extraInfo;\n\n const ariaRole = variant === 'error' ? 'alert' : 'region';\n const ariaLabelAttributes = getAriaLabelAttributes({ label, id: labelId });\n\n const handleClick = (): void => {\n hasExpander && setIsExpanded(!isExpanded);\n };\n\n const classes = classNames(styles['service-message'], styles[`service-message--${variant}`]);\n\n return (\n <div className={classes} role={ariaRole} {...ariaLabelAttributes} data-testid={testId}>\n <Label\n label={label}\n variant={variant}\n id={labelId}\n hasExpander={hasExpander}\n isExpanded={isExpanded}\n dismissable={dismissable}\n onExpand={handleClick}\n onDismiss={onDismiss}\n closeBtnText={closeBtnText}\n />\n {hasExpander && isExpanded && (\n <Content\n info={info}\n extraInfo={extraInfo}\n urlTitle={urlTitle}\n url={url}\n target={target}\n dismissable={dismissable}\n onDismiss={onDismiss}\n closeBtnText={closeBtnText}\n />\n )}\n </div>\n );\n};\n\nexport default ServiceMessage;\n"],"names":["Label","label","variant","id","hasExpander","isExpanded","dismissable","onExpand","onDismiss","closeBtnText","breakpoint","useBreakpoint","isHovered","hoverRef","useHover","iconSize","breakpoints","IconSize","CustomTag","labelContainerClasses","classNames","styles","NotificationBadge","React","Icon","ChevronUp","ChevronDown","Close","Content","info","extraInfo","urlTitle","url","target","readMoreRef","readMoreHoverRefIsHovered","closeButtonRef","closeButtonIsHovered","hasUrl","Forward","getColor","X","ServiceMessage","expanderOpenFromStart","testId","setIsExpanded","useState","labelId","useUuid","ariaRole","ariaLabelAttributes","getAriaLabelAttributes","handleClick","classes"],"mappings":"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"}
@@ -1,16 +0,0 @@
1
- import t from "react";
2
- import a from "classnames";
3
- import { AnalyticsId as d, IconSize as _ } from "../../constants.js";
4
- import { palette as h } from "../../theme/palette.js";
5
- import { Icon as g } from "../Icon/Icon.js";
6
- import s from "../SharingStatus/styles.module.scss";
7
- const E = (r) => {
8
- const { color: e = "blueberry", icon: l, children: n, className: o, testId: c, wrapText: i } = r, m = a(s["sharing-status"], o), p = a(s["sharing-status__dot"], s[`sharing-status__dot--${e}`]), u = a(s["sharing-status__label"], s[`sharing-status__label--${e}`], {
9
- [s["sharing-status__label--wrap"]]: i
10
- });
11
- return /* @__PURE__ */ t.createElement("span", { className: m, "data-testid": c, "data-analyticsid": d.SharingStatus }, /* @__PURE__ */ t.createElement("span", { className: p }, /* @__PURE__ */ t.createElement(g, { color: h.white, svgIcon: l, size: _.XXSmall })), /* @__PURE__ */ t.createElement("span", { className: u }, n));
12
- };
13
- export {
14
- E as default
15
- };
16
- //# sourceMappingURL=SharingStatus.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SharingStatus.js","sources":["../../../src/components/SharingStatus/SharingStatus.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { AnalyticsId, IconSize } from '../../constants';\nimport { PaletteNames, palette } from '../../theme/palette';\nimport Icon, { SvgIcon } from '../Icon';\n\nimport styles from './styles.module.scss';\n\nexport type SharingStatusColor = Extract<PaletteNames, 'kiwi' | 'cherry' | 'neutral' | 'blueberry' | 'banana'>;\n\nexport interface SharingStatusProps {\n /** Color choices represent variants of sharingstatus */\n color?: SharingStatusColor;\n /** Adds custom classes to the element. */\n className?: string;\n /** Icon to be displayed next to the sharingstatus */\n icon: SvgIcon;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Sets the text placed to the right of the sharingstatus */\n children: string;\n /** turn on and off word wrapping */\n wrapText?: boolean;\n}\n\nconst SharingStatus: React.FC<SharingStatusProps> = props => {\n const { color = 'blueberry', icon, children, className, testId, wrapText } = props;\n\n const sharingStatusClasses = classNames(styles['sharing-status'], className);\n const dotClasses = classNames(styles['sharing-status__dot'], styles[`sharing-status__dot--${color}`]);\n const labelClasses = classNames(styles['sharing-status__label'], styles[`sharing-status__label--${color}`], {\n [styles['sharing-status__label--wrap']]: wrapText,\n });\n\n return (\n <span className={sharingStatusClasses} data-testid={testId} data-analyticsid={AnalyticsId.SharingStatus}>\n <span className={dotClasses}>\n <Icon color={palette.white} svgIcon={icon} size={IconSize.XXSmall} />\n </span>\n <span className={labelClasses}>{children}</span>\n </span>\n );\n};\n\nexport default SharingStatus;\n"],"names":["SharingStatus","props","color","icon","children","className","testId","wrapText","sharingStatusClasses","classNames","styles","dotClasses","labelClasses","React","AnalyticsId","Icon","palette","IconSize"],"mappings":";;;;;;AA2BA,MAAMA,IAA8C,CAASC,MAAA;AACrD,QAAA,EAAE,OAAAC,IAAQ,aAAa,MAAAC,GAAM,UAAAC,GAAU,WAAAC,GAAW,QAAAC,GAAQ,UAAAC,EAAa,IAAAN,GAEvEO,IAAuBC,EAAWC,EAAO,gBAAgB,GAAGL,CAAS,GACrEM,IAAaF,EAAWC,EAAO,qBAAqB,GAAGA,EAAO,wBAAwBR,CAAK,EAAE,CAAC,GAC9FU,IAAeH,EAAWC,EAAO,uBAAuB,GAAGA,EAAO,0BAA0BR,CAAK,EAAE,GAAG;AAAA,IAC1G,CAACQ,EAAO,6BAA6B,CAAC,GAAGH;AAAA,EAAA,CAC1C;AAED,SACGM,gBAAAA,EAAA,cAAA,QAAA,EAAK,WAAWL,GAAsB,eAAaF,GAAQ,oBAAkBQ,EAAY,cACxF,GAAAD,gBAAAA,EAAA,cAAC,QAAK,EAAA,WAAWF,KACdE,gBAAAA,EAAA,cAAAE,GAAA,EAAK,OAAOC,EAAQ,OAAO,SAASb,GAAM,MAAMc,EAAS,QAAA,CAAS,CACrE,GACCJ,gBAAAA,EAAA,cAAA,QAAA,EAAK,WAAWD,EAAA,GAAeR,CAAS,CAC3C;AAEJ;"}