@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,6 +1,192 @@
1
- import { Slider as e } from "./Slider.js";
1
+ import { jsxs as b, jsx as d } from "react/jsx-runtime";
2
+ import { useState as E, useRef as K, useEffect as _ } from "react";
3
+ import D from "classnames";
4
+ import { AnalyticsId as x } from "../../constants.js";
5
+ import { useSize as V } from "../../hooks/useSize.js";
6
+ import { useUuid as L } from "../../hooks/useUuid.js";
7
+ import { getAriaLabelAttributes as ee } from "../../utils/accessibility.js";
8
+ import { T as re } from "../../Title.js";
9
+ import n from "./styles.module.scss";
10
+ const te = (s, v, f) => {
11
+ const [h, o] = E(s), p = (t) => {
12
+ t > f ? o(f) : t < v ? o(v) : o(t);
13
+ };
14
+ return _(() => {
15
+ p(s);
16
+ }, [v, f]), [h, p];
17
+ }, he = ({
18
+ title: s,
19
+ ariaLabel: v,
20
+ labelLeft: f,
21
+ labelRight: h,
22
+ disabled: o = !1,
23
+ onChange: p,
24
+ steps: t,
25
+ step: k = 1,
26
+ minValue: i = 0,
27
+ maxValue: l = t ? t.length - 1 : 100,
28
+ selected: N = !0,
29
+ testId: H,
30
+ value: m
31
+ }) => {
32
+ const [U, B] = E(!1), [g, R] = E(typeof m > "u" ? N : !0), [a, u] = te(
33
+ typeof m > "u" ? (l - i) / 2 + i : m,
34
+ i,
35
+ l
36
+ ), y = L(), j = L(), P = L(), A = K(null), I = K(null), { width: T } = V(A) || { width: 0 }, X = l / 10;
37
+ _(() => {
38
+ const r = () => {
39
+ B(!1);
40
+ };
41
+ return document.addEventListener("pointerup", r), () => {
42
+ document.removeEventListener("pointerup", r);
43
+ };
44
+ }, []);
45
+ const $ = (r) => {
46
+ var z;
47
+ const e = ((z = A.current) == null ? void 0 : z.getBoundingClientRect().x) ?? 0, c = (r - e) / T, S = l - i;
48
+ let w = c * S + i;
49
+ return w = Math.round(w / k) * k, w = Math.max(i, Math.min(l, w)), w;
50
+ };
51
+ _(() => {
52
+ const r = (e) => {
53
+ if (!o && U) {
54
+ const c = $(e.clientX);
55
+ u(c);
56
+ }
57
+ };
58
+ return document.addEventListener("pointermove", r), () => {
59
+ document.removeEventListener("pointermove", r);
60
+ };
61
+ }, [U]), _(() => {
62
+ m !== a && typeof m < "u" && (M(), u(m));
63
+ }, [m]), _(() => {
64
+ !o && g && p && p(a);
65
+ }, [a, g]), _(() => {
66
+ typeof m > "u" && N !== g && R(N);
67
+ }, [N]);
68
+ const M = () => {
69
+ g === !1 && R(!0);
70
+ }, O = (r) => {
71
+ if (o) return;
72
+ let e = !1;
73
+ switch (r.key) {
74
+ case "ArrowLeft":
75
+ case "ArrowDown":
76
+ u(a - k), e = !0;
77
+ break;
78
+ case "PageDown":
79
+ u(a - X), e = !0;
80
+ break;
81
+ case "ArrowRight":
82
+ case "ArrowUp":
83
+ u(a + k), e = !0;
84
+ break;
85
+ case "PageUp":
86
+ u(a + X), e = !0;
87
+ break;
88
+ case "Home":
89
+ u(i), e = !0;
90
+ break;
91
+ case "End":
92
+ u(l), e = !0;
93
+ break;
94
+ }
95
+ e && (M(), r.preventDefault(), r.stopPropagation());
96
+ }, W = (r) => {
97
+ var c;
98
+ if (o) return;
99
+ const e = $(r.clientX);
100
+ u(e), (c = I.current) == null || c.focus();
101
+ }, q = (r) => {
102
+ var e;
103
+ o || (B(!0), M(), r.preventDefault(), r.stopPropagation(), (e = I.current) == null || e.focus());
104
+ }, F = l !== i ? T / (l - i) * (a - i) : 0, G = () => {
105
+ const r = t ? Math.round((a - i) / k) : null;
106
+ if (t && r !== null && r >= 0 && r < t.length) {
107
+ const e = t[r], c = e.emojiUniCode, S = typeof e.label < "u" ? e.label.toString() : void 0;
108
+ return c && S ? `${c} ${S}` : c || S;
109
+ }
110
+ }, J = ee({
111
+ label: v,
112
+ id: (() => {
113
+ if (s && f && h)
114
+ return [y, j, P].join(" ");
115
+ if (s && f)
116
+ return [y, j].join(" ");
117
+ if (s && h)
118
+ return [y, P].join(" ");
119
+ if (s)
120
+ return y;
121
+ })(),
122
+ prefer: "label"
123
+ }), C = (r, e) => ({ left: `${r / (e - 1) * 100}%` }), Q = () => /* @__PURE__ */ d("div", { className: n["slider__emoji-container"], children: t == null ? void 0 : t.map((r, e) => r.emojiUniCode && /* @__PURE__ */ d(
124
+ "div",
125
+ {
126
+ "aria-hidden": !0,
127
+ className: n.slider__emoji,
128
+ style: C(e, t.length),
129
+ children: r.emojiUniCode
130
+ },
131
+ "emoji" + e
132
+ )) }), Y = () => t == null ? void 0 : t.map((r, e) => /* @__PURE__ */ d("div", { className: n.slider__track__step, style: C(e, t.length) }, "step" + e)), Z = () => /* @__PURE__ */ d("div", { className: n["slider__value-container"], children: t == null ? void 0 : t.map((r, e) => typeof r.label < "u" && /* @__PURE__ */ d(
133
+ "div",
134
+ {
135
+ "aria-hidden": !0,
136
+ className: n.slider__value,
137
+ style: C(e, t.length),
138
+ children: r.label
139
+ },
140
+ "label" + e
141
+ )) });
142
+ return /* @__PURE__ */ b("div", { className: n.slider, "data-testid": H, "data-analyticsid": x.Slider, children: [
143
+ s && /* @__PURE__ */ d(re, { className: n.slider__title, htmlMarkup: "h3", margin: 0, appearance: "title3", id: y, children: s }),
144
+ /* @__PURE__ */ b("div", { className: n["slider__content-container"], children: [
145
+ Q(),
146
+ /* @__PURE__ */ b(
147
+ "div",
148
+ {
149
+ ref: A,
150
+ className: D(n["slider__track-wrapper"], o && n["slider__track-wrapper--disabled"]),
151
+ onClick: W,
152
+ onPointerDown: q,
153
+ children: [
154
+ /* @__PURE__ */ d("div", { className: D(n.slider__track, o && n["slider__track--disabled"]), children: Y() }),
155
+ /* @__PURE__ */ d(
156
+ "div",
157
+ {
158
+ role: o ? void 0 : "slider",
159
+ ref: I,
160
+ className: D(n.slider__marker, {
161
+ [n["slider__marker--disabled"]]: o,
162
+ [n["slider__marker--selected"]]: g
163
+ }),
164
+ style: {
165
+ left: `${F}px`
166
+ },
167
+ onKeyDown: O,
168
+ "aria-valuenow": a,
169
+ "aria-valuetext": G(),
170
+ "aria-valuemin": i,
171
+ "aria-valuemax": l,
172
+ tabIndex: o ? void 0 : 0,
173
+ "aria-disabled": o,
174
+ ...J
175
+ }
176
+ )
177
+ ]
178
+ }
179
+ ),
180
+ Z()
181
+ ] }),
182
+ (f || h) && /* @__PURE__ */ b("span", { className: n.slider__options, children: [
183
+ /* @__PURE__ */ d("span", { id: j, children: f }),
184
+ /* @__PURE__ */ d("span", { id: P, children: h })
185
+ ] })
186
+ ] });
187
+ };
2
188
  export {
3
- e as Slider,
4
- e as default
189
+ he as Slider,
190
+ he as default
5
191
  };
6
192
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/Slider/Slider.tsx"],"sourcesContent":["import React, { useEffect, useState, useRef } from 'react';\n\nimport classNames from 'classnames';\n\nimport { AnalyticsId } from '../../constants';\nimport { useSize } from '../../hooks/useSize';\nimport { useUuid } from '../../hooks/useUuid';\nimport { getAriaLabelAttributes } from '../../utils/accessibility';\nimport Title from '../Title';\n\nimport styles from './styles.module.scss';\n\nconst useSafeNumberValue = (initial: number, min: number, max: number): [number, (value: number) => void] => {\n const [value, setValue] = useState(initial);\n\n const setSafeValue = (newValue: number): void => {\n if (newValue > max) {\n setValue(max);\n } else if (newValue < min) {\n setValue(min);\n } else {\n setValue(newValue);\n }\n };\n\n useEffect(() => {\n setSafeValue(initial);\n }, [min, max]);\n\n return [value, setSafeValue];\n};\n\nexport type SliderStep = {\n label?: number | string;\n emojiUniCode?: string;\n};\n\nexport interface SliderProps {\n /**\tSets the title of the slider. */\n title?: string;\n /** Adds the left hand label to the element. */\n labelLeft?: string;\n /** Adds the right hand label to the element. */\n labelRight?: string;\n /**\tSets aria-label of the slider. */\n ariaLabel?: string;\n /** Disables the slider element. */\n disabled?: boolean;\n /** Sets the minimum allowed value on the slider - this overrides the use of steps prop for minValue/maxValue. */\n minValue?: number;\n /** Sets the maximum allowed value on the slider - this overrides the use of steps prop for minValue/maxValue. */\n maxValue?: number;\n /** Function to be called when the value state has changed. */\n onChange?: (value: number) => void;\n /** If set to false will only trigger onChange once a user interaction has been made, updates to this prop will be taken into account - true by default */\n selected?: boolean;\n /** Sets the steps data for the slider */\n steps?: SliderStep[];\n /** Sets the step to move per point in the slider */\n step?: number;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Sets the value of the slider */\n value?: number;\n}\n\nexport const Slider: React.FC<SliderProps> = ({\n title,\n ariaLabel,\n labelLeft,\n labelRight,\n disabled = false,\n onChange,\n steps,\n step = 1,\n minValue = 0,\n maxValue = steps ? steps.length - 1 : 100,\n selected = true,\n testId,\n value,\n}) => {\n const [isMoving, setIsMoving] = useState(false);\n const [selectedState, setSelectedState] = useState(typeof value === 'undefined' ? selected : true);\n const [valueState, setValueState] = useSafeNumberValue(\n typeof value === 'undefined' ? (maxValue - minValue) / 2 + minValue : value,\n minValue,\n maxValue\n );\n\n const titleId = useUuid();\n const labelLeftId = useUuid();\n const labelRightId = useUuid();\n const trackRef = useRef<HTMLDivElement>(null);\n const markerRef = useRef<HTMLDivElement>(null);\n const { width: trackWidth } = useSize(trackRef) || { width: 0 };\n const largeStep = maxValue / 10;\n\n useEffect(() => {\n const handlePointerUp = (): void => {\n setIsMoving(false);\n };\n\n document.addEventListener('pointerup', handlePointerUp);\n\n return () => {\n document.removeEventListener('pointerup', handlePointerUp);\n };\n }, []);\n\n const getValueBasedOnMarkerPosition = (markerPosition: number): number => {\n const trackPosition = trackRef.current?.getBoundingClientRect().x ?? 0;\n\n // Calculate the normalized position (0 to 1) of the marker along the track\n const normalizedPosition = (markerPosition - trackPosition) / trackWidth;\n const valueRange = maxValue - minValue;\n // Calculate the value without considering the step\n let value = normalizedPosition * valueRange + minValue;\n // Adjust the value to account for the step increment\n const stepCount = Math.round(value / step);\n value = stepCount * step;\n value = Math.max(minValue, Math.min(maxValue, value));\n\n return value;\n };\n\n useEffect(() => {\n const handlePointerMove = (e: PointerEvent): void => {\n if (!disabled && isMoving) {\n const newValue = getValueBasedOnMarkerPosition(e.clientX);\n setValueState(newValue);\n }\n };\n\n document.addEventListener('pointermove', handlePointerMove);\n\n return () => {\n document.removeEventListener('pointermove', handlePointerMove);\n };\n }, [isMoving]);\n\n useEffect(() => {\n if (value !== valueState && typeof value !== 'undefined') {\n handleSelected();\n setValueState(value);\n }\n }, [value]);\n\n useEffect(() => {\n if (!disabled && selectedState && onChange) {\n onChange(valueState);\n }\n }, [valueState, selectedState]);\n\n useEffect(() => {\n if (typeof value === 'undefined' && selected !== selectedState) {\n setSelectedState(selected);\n }\n }, [selected]);\n\n const handleSelected = (): void => {\n if (selectedState === false) {\n setSelectedState(true);\n }\n };\n\n const handleKeyDown: React.KeyboardEventHandler<HTMLDivElement> = e => {\n if (disabled) return;\n\n let flag = false;\n\n switch (e.key) {\n case 'ArrowLeft':\n case 'ArrowDown':\n setValueState(valueState - step);\n flag = true;\n break;\n case 'PageDown':\n setValueState(valueState - largeStep);\n flag = true;\n break;\n case 'ArrowRight':\n case 'ArrowUp':\n setValueState(valueState + step);\n flag = true;\n break;\n case 'PageUp':\n setValueState(valueState + largeStep);\n flag = true;\n break;\n case 'Home':\n setValueState(minValue);\n flag = true;\n break;\n case 'End':\n setValueState(maxValue);\n flag = true;\n break;\n default:\n break;\n }\n\n if (flag) {\n handleSelected();\n e.preventDefault();\n e.stopPropagation();\n }\n };\n\n const handleTrackClick: React.MouseEventHandler<HTMLDivElement> = e => {\n if (disabled) return;\n\n const newValue = getValueBasedOnMarkerPosition(e.clientX);\n setValueState(newValue);\n markerRef.current?.focus();\n };\n\n const handlePointerDown: React.PointerEventHandler<HTMLDivElement> = e => {\n if (disabled) return;\n\n setIsMoving(true);\n handleSelected();\n\n e.preventDefault();\n e.stopPropagation();\n\n markerRef.current?.focus();\n };\n\n const markerXPos = maxValue !== minValue ? (trackWidth / (maxValue - minValue)) * (valueState - minValue) : 0;\n\n const getAriaValueText = (): string | undefined => {\n const stepIndex = steps ? Math.round((valueState - minValue) / step) : null;\n\n if (steps && stepIndex !== null && stepIndex >= 0 && stepIndex < steps.length) {\n const step = steps[stepIndex];\n const emojiCode = step.emojiUniCode;\n const label = typeof step.label !== 'undefined' ? step.label.toString() : undefined;\n\n return emojiCode && label ? `${emojiCode} ${label}` : emojiCode || label;\n }\n\n return undefined;\n };\n\n const getAriaLabeledById = (): string | undefined => {\n if (title && labelLeft && labelRight) {\n return [titleId, labelLeftId, labelRightId].join(' ');\n }\n if (title && labelLeft) {\n return [titleId, labelLeftId].join(' ');\n }\n if (title && labelRight) {\n return [titleId, labelRightId].join(' ');\n }\n if (title) {\n return titleId;\n }\n };\n\n const ariaLabelAttributes = getAriaLabelAttributes({\n label: ariaLabel,\n id: getAriaLabeledById(),\n prefer: 'label',\n });\n\n const getXPositionStyling = (index: number, stepsLength: number): { left: string } => {\n return { left: `${(index / (stepsLength - 1)) * 100}%` };\n };\n\n const renderEmojies = (): React.ReactNode => {\n return (\n <div className={styles['slider__emoji-container']}>\n {steps?.map((step, index) => {\n return (\n step.emojiUniCode && (\n <div\n aria-hidden={true}\n key={'emoji' + index}\n className={styles['slider__emoji']}\n style={getXPositionStyling(index, steps.length)}\n >\n {step.emojiUniCode}\n </div>\n )\n );\n })}\n </div>\n );\n };\n\n const renderSteps = (): React.ReactNode => {\n return steps?.map((_step, index) => {\n return <div key={'step' + index} className={styles['slider__track__step']} style={getXPositionStyling(index, steps.length)} />;\n });\n };\n\n const renderStepLabels = (): React.ReactNode => {\n return (\n <div className={styles['slider__value-container']}>\n {steps?.map((step, index) => {\n return (\n typeof step.label !== 'undefined' && (\n <div\n aria-hidden={true}\n key={'label' + index}\n className={styles['slider__value']}\n style={getXPositionStyling(index, steps.length)}\n >\n {step.label}\n </div>\n )\n );\n })}\n </div>\n );\n };\n\n return (\n <div className={styles.slider} data-testid={testId} data-analyticsid={AnalyticsId.Slider}>\n {title && (\n <Title className={styles['slider__title']} htmlMarkup={'h3'} margin={0} appearance={'title3'} id={titleId}>\n {title}\n </Title>\n )}\n <div className={styles['slider__content-container']}>\n {renderEmojies()}\n {/* Komponenten er tilgjengelig for mus/keyboard gjennom bruk av slideren */}\n {/* eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events */}\n <div\n ref={trackRef}\n className={classNames(styles['slider__track-wrapper'], disabled && styles['slider__track-wrapper--disabled'])}\n onClick={handleTrackClick}\n onPointerDown={handlePointerDown}\n >\n <div className={classNames(styles.slider__track, disabled && styles['slider__track--disabled'])}>{renderSteps()}</div>\n <div\n role={disabled ? undefined : 'slider'}\n ref={markerRef}\n className={classNames(styles.slider__marker, {\n [styles['slider__marker--disabled']]: disabled,\n [styles['slider__marker--selected']]: selectedState,\n })}\n style={{\n left: `${markerXPos}px`,\n }}\n onKeyDown={handleKeyDown}\n aria-valuenow={valueState}\n aria-valuetext={getAriaValueText()}\n aria-valuemin={minValue}\n aria-valuemax={maxValue}\n tabIndex={disabled ? undefined : 0}\n aria-disabled={disabled}\n {...ariaLabelAttributes}\n />\n </div>\n {renderStepLabels()}\n </div>\n {(labelLeft || labelRight) && (\n <span className={styles.slider__options}>\n <span id={labelLeftId}>{labelLeft}</span>\n <span id={labelRightId}>{labelRight}</span>\n </span>\n )}\n </div>\n );\n};\n\nexport default Slider;\n"],"names":["useSafeNumberValue","initial","min","max","value","setValue","useState","setSafeValue","newValue","useEffect","Slider","title","ariaLabel","labelLeft","labelRight","disabled","onChange","steps","step","minValue","maxValue","selected","testId","isMoving","setIsMoving","selectedState","setSelectedState","valueState","setValueState","titleId","useUuid","labelLeftId","labelRightId","trackRef","useRef","markerRef","trackWidth","useSize","largeStep","handlePointerUp","getValueBasedOnMarkerPosition","markerPosition","trackPosition","_a","normalizedPosition","valueRange","handlePointerMove","handleSelected","handleKeyDown","e","flag","handleTrackClick","handlePointerDown","markerXPos","getAriaValueText","stepIndex","emojiCode","label","ariaLabelAttributes","getAriaLabelAttributes","getXPositionStyling","index","stepsLength","renderEmojies","jsx","styles","renderSteps","_step","renderStepLabels","jsxs","AnalyticsId","Title","classNames"],"mappings":";;;;;;;;;AAYA,MAAMA,KAAqB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B;AAAA,gBACA,WAAWL;AAAA,gBACX,iBAAerB;AAAA,gBACf,kBAAgB2B,EAAiB;AAAA,gBACjC,iBAAenC;AAAA,gBACf,iBAAeC;AAAA,gBACf,UAAUL,IAAW,SAAY;AAAA,gBACjC,iBAAeA;AAAA,gBACd,GAAG2C;AAAA,cAAA;AAAA,YACN;AAAA,UAAA;AAAA,QAAA;AAAA,MACF;AAAA,MACCU,EAAiB;AAAA,IAAA,GACpB;AAAA,KACEvD,KAAaC,MACb,gBAAAuD,EAAC,QAAK,EAAA,WAAWJ,EAAO,iBACtB,UAAA;AAAA,MAAC,gBAAAD,EAAA,QAAA,EAAK,IAAIjC,GAAc,UAAUlB,GAAA;AAAA,MACjC,gBAAAmD,EAAA,QAAA,EAAK,IAAIhC,GAAe,UAAWlB,GAAA;AAAA,IAAA,GACtC;AAAA,EAEJ,EAAA,CAAA;AAEJ;"}
@@ -1,5 +1,5 @@
1
- import a from "./Spacer.js";
1
+ import { S as r } from "../../Spacer.js";
2
2
  export {
3
- a as default
3
+ r as default
4
4
  };
5
5
  //# sourceMappingURL=index.js.map
@@ -1,8 +1,8 @@
1
- import o from "./StatusDot.js";
2
- import { StatusDotModes as s, StatusDotVariant as e } from "./StatusDot.js";
1
+ import { S as a } from "../../StatusDot.js";
2
+ import { a as r, b as e } from "../../StatusDot.js";
3
3
  export {
4
- s as StatusDotModes,
4
+ r as StatusDotModes,
5
5
  e as StatusDotVariant,
6
- o as default
6
+ a as default
7
7
  };
8
8
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,34 @@
1
- import e from "./Step.js";
1
+ import { jsxs as l, jsx as s } from "react/jsx-runtime";
2
+ import { AnalyticsId as f } from "../../constants.js";
3
+ import { S as n } from "../../StepButtons.js";
4
+ import m from "./styles.module.scss";
5
+ const h = ({
6
+ stepper: t,
7
+ children: p,
8
+ backButton: e,
9
+ forwardButton: i,
10
+ additionalButtons: a,
11
+ cancelButton: r,
12
+ stickyButtons: d = !1,
13
+ testId: o
14
+ }) => {
15
+ const c = e || i || a || r;
16
+ return /* @__PURE__ */ l("div", { "data-testid": o, "data-analyticsid": f.Step, children: [
17
+ t && /* @__PURE__ */ s("div", { className: m.step__stepper, children: t }),
18
+ /* @__PURE__ */ s("div", { className: m.step__content, children: p }),
19
+ c && /* @__PURE__ */ s(
20
+ n,
21
+ {
22
+ backButton: e,
23
+ forwardButton: i,
24
+ additionalButtons: a,
25
+ cancelButton: r,
26
+ sticky: d
27
+ }
28
+ )
29
+ ] });
30
+ };
2
31
  export {
3
- e as default
32
+ h as default
4
33
  };
5
34
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/Step/Step.tsx"],"sourcesContent":["import React from 'react';\n\nimport { AnalyticsId } from '../../constants';\nimport { ButtonProps } from '../Button';\nimport StepButtons from '../StepButtons';\nimport { StepperProps } from '../Stepper';\n\nimport styles from './styles.module.scss';\n\nexport interface StepProps {\n /** Stepper viser fremdriften */\n stepper?: React.ReactElement<StepperProps>;\n /** Innhold i steget */\n children: React.ReactNode;\n /** Knapp for å gå tilbake. Vises med \"outline\" variant. */\n backButton?: React.ReactElement<ButtonProps>;\n /** Knapp for å gå videre. Vises med \"fill\" variant. */\n forwardButton?: React.ReactElement<ButtonProps>;\n /** Ekstra knapper. Valgfritt utseende. */\n additionalButtons?: React.ReactElement<ButtonProps>[];\n /** Knapp for å avbryte eller fortsette senere. Vises med \"borderless\" variant. */\n cancelButton?: React.ReactElement<ButtonProps>;\n /** Knappene vil vises sticky nederst på skjermen dersom innholdet i Step tar mer plass enn vinduet. Default: false */\n stickyButtons?: boolean;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nconst Step: React.FC<StepProps> = ({\n stepper,\n children,\n backButton,\n forwardButton,\n additionalButtons,\n cancelButton,\n stickyButtons = false,\n testId,\n}) => {\n const hasNavigation = backButton || forwardButton || additionalButtons || cancelButton;\n\n return (\n <div data-testid={testId} data-analyticsid={AnalyticsId.Step}>\n {stepper && <div className={styles.step__stepper}>{stepper}</div>}\n <div className={styles.step__content}>{children}</div>\n {hasNavigation && (\n <StepButtons\n backButton={backButton}\n forwardButton={forwardButton}\n additionalButtons={additionalButtons}\n cancelButton={cancelButton}\n sticky={stickyButtons}\n />\n )}\n </div>\n );\n};\n\nexport default Step;\n"],"names":["Step","stepper","children","backButton","forwardButton","additionalButtons","cancelButton","stickyButtons","testId","hasNavigation","AnalyticsId","jsx","styles","StepButtons"],"mappings":";;;;AA4BA,MAAMA,IAA4B,CAAC;AAAA,EACjC,SAAAC;AAAA,EACA,UAAAC;AAAA,EACA,YAAAC;AAAA,EACA,eAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,cAAAC;AAAA,EACA,eAAAC,IAAgB;AAAA,EAChB,QAAAC;AACF,MAAM;AACE,QAAAC,IAAgBN,KAAcC,KAAiBC,KAAqBC;AAE1E,2BACG,OAAI,EAAA,eAAaE,GAAQ,oBAAkBE,EAAY,MACrD,UAAA;AAAA,IAAAT,KAAY,gBAAAU,EAAA,OAAA,EAAI,WAAWC,EAAO,eAAgB,UAAQX,GAAA;AAAA,IAC1D,gBAAAU,EAAA,OAAA,EAAI,WAAWC,EAAO,eAAgB,UAAAV,GAAS;AAAA,IAC/CO,KACC,gBAAAE;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,YAAAV;AAAA,QACA,eAAAC;AAAA,QACA,mBAAAC;AAAA,QACA,cAAAC;AAAA,QACA,QAAQC;AAAA,MAAA;AAAA,IACV;AAAA,EAEJ,EAAA,CAAA;AAEJ;"}
@@ -1,4 +1,4 @@
1
- import { StepButtons as o } from "./StepButtons.js";
1
+ import { S as o } from "../../StepButtons.js";
2
2
  export {
3
3
  o as StepButtons,
4
4
  o as default
@@ -1,5 +1,52 @@
1
- import p from "./Stepper.js";
1
+ import { jsx as r, Fragment as V, jsxs as f } from "react/jsx-runtime";
2
+ import { useRef as D } from "react";
3
+ import R from "classnames";
4
+ import i from "./styles.module.scss";
5
+ import { AnalyticsId as S } from "../../constants.js";
6
+ import { useSize as M } from "../../hooks/useSize.js";
7
+ import { getAriaLabelAttributes as $ } from "../../utils/accessibility.js";
8
+ const E = 4, w = 24, I = 8, W = (t, e) => t < e ? t : e - 1, X = (t, e) => e < t ? t : e, k = (t, e, o) => typeof t > "u" || t < e ? e : t > o ? o : t, T = (t) => Math.floor(t / (w + E)), j = (t, e) => (t - w) / (e - 1), C = (t, e) => t * e, K = (t, e) => Array.from(Array(e - t + 1), (o, s) => s + t), L = (t, e, o) => {
9
+ const s = W(e, o), a = X(s, o);
10
+ return { validatedValue: k(t, s, a), validatedMin: s, validatedMax: a };
11
+ }, _ = ({ index: t, completed: e, distanceBetweenDots: o, position: s }) => {
12
+ const a = R(
13
+ i.stepper__dot,
14
+ e && i["stepper__dot--completed"],
15
+ s && i[`stepper__dot--${s}`]
16
+ ), d = !s && typeof t < "u" && typeof o < "u" ? { left: `${t * o + I}px` } : void 0;
17
+ return /* @__PURE__ */ r("span", { className: a, style: d, "data-testid": "dot" });
18
+ }, O = ({ allowedValues: t, currentValue: e, distanceBetweenDots: o }) => /* @__PURE__ */ r(V, { children: t.map((s, a) => /* @__PURE__ */ r(_, { index: a, completed: s < e, distanceBetweenDots: o }, s)) }), Q = ({ ariaLabelledById: t, ariaLabel: e, value: o, min: s = 0, max: a = 2, testId: p }) => {
19
+ const d = D(null), h = D(null), { width: P = 0 } = M(d) || {}, { width: g = 0 } = M(h) || {}, { validatedValue: n, validatedMin: m, validatedMax: l } = L(o, s, a), c = K(m, l), x = c.indexOf(n), N = T(P), y = j(g, c.length), A = C(y, x), u = c.length <= N, b = n === l, v = $({ label: e, id: t });
20
+ return /* @__PURE__ */ f("div", { className: i["stepper-wrapper"], ref: d, children: [
21
+ /* @__PURE__ */ f(
22
+ "span",
23
+ {
24
+ role: "progressbar",
25
+ ...v,
26
+ "aria-valuenow": n,
27
+ "aria-valuemin": m,
28
+ "aria-valuemax": l,
29
+ className: i.stepper,
30
+ style: {
31
+ backgroundPositionX: `${b ? g : A}px`
32
+ },
33
+ ref: h,
34
+ "data-testid": p,
35
+ "data-analyticsid": S.Stepper,
36
+ children: [
37
+ u && /* @__PURE__ */ r(O, { allowedValues: c, currentValue: n, distanceBetweenDots: y }),
38
+ !u && /* @__PURE__ */ f(V, { children: [
39
+ /* @__PURE__ */ r(_, { completed: n > m, position: "left" }),
40
+ /* @__PURE__ */ r(_, { completed: n === l, position: "right" })
41
+ ] }),
42
+ /* @__PURE__ */ r("span", { className: i.stepper__marker, style: { left: `${A}px` } })
43
+ ]
44
+ }
45
+ ),
46
+ !u && /* @__PURE__ */ r("span", { className: i.stepper__number, children: `${n}/${l}` })
47
+ ] });
48
+ };
2
49
  export {
3
- p as default
50
+ Q as default
4
51
  };
5
52
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/Stepper/utils.ts","../../../src/components/Stepper/Dot.tsx","../../../src/components/Stepper/DotList.tsx","../../../src/components/Stepper/Stepper.tsx"],"sourcesContent":["/**\n * Minimum avstand fra markør til prikk\n */\nconst MARKER_DOT_MIN_DISTANCE_PX = 4;\n\n/**\n * Bredde på markør\n */\nconst MARKER_WIDTH_PX = 24;\n\n/**\n * Horisontal padding på stepper\n */\nexport const STEPPER_PADDING_X_PX = 8;\n\n/**\n * Valider at minimum-verdi er innenfor gyldig område\n * @param min Mimimum-verdi\n * @param max Maksimum-verdi\n * @returns Mimimum-verdi, ikke større enn eller lik maksimum-verdi\n */\nexport const getValidatedMin = (min: number, max: number): number => (min < max ? min : max - 1);\n\n/**\n * Valider at maksimum-verdi er innenfor gyldig område\n * @param min Mimimum-verdi\n * @param max Maksimum-verdi\n * @returns Maksimum-verdi, ikke mindre enn minimum-verdi\n */\nexport const getValidatedMax = (min: number, max: number): number => (max < min ? min : max);\n\n/**\n * Valider at verdi er innenfor gyldig område\n * @param value Nåværende verdi\n * @param min Mimimum-verdi\n * @param max Maksimum-verdi\n * @returns Verdi, ikke mindre enn 0, ikke mer enn max\n */\nexport const getValidatedValue = (value: number | undefined, min: number, max: number): number => {\n if (typeof value === 'undefined' || value < min) {\n return min;\n }\n\n return value > max ? max : value;\n};\n\n/**\n * Finn antall prikker det er plass til\n * @param stepperWidth Bredde på stepper\n * @returns Antall prikker\n */\nexport const getMaximumDots = (stepperWidth: number): number => Math.floor(stepperWidth / (MARKER_WIDTH_PX + MARKER_DOT_MIN_DISTANCE_PX));\n\n/**\n * Beregn riktig distance mellom prikker\n * @param stepperWidth Bredde på stepper\n * @param dots Antall prikker som skal vises\n * @returns Distanse mellom prikker\n */\nexport const getDistanceBetweenDots = (stepperWidth: number, dots: number): number => (stepperWidth - MARKER_WIDTH_PX) / (dots - 1);\n\n/**\n * Beregn riktig plassering av markør\n * @param distanceBetweenDots Distanse mellom prikker\n * @param index Nåværende verdi i stepper\n * @returns Plassering til markør fra venstre\n */\nexport const getMarkerPosition = (distanceBetweenDots: number, index: number): number => distanceBetweenDots * index;\n\n/**\n * Lag liste med tillate verdier fra min til maks\n * @param min Mimimum-verdi\n * @param max Maksimum-verdi\n * @returns Liste med verdier\n */\nexport const getAllowedValues = (min: number, max: number): number[] => Array.from(Array(max - min + 1), (_, index) => index + min);\n\n/**\n * Valider props som skal brukes til beregning av posisjon m.m.\n * @param value Nåværende verdi\n * @param min Mimimum-verdi\n * @param max Maksimum-verdi\n * @returns Objekt med gyldige verdier\n */\nexport const getValidatedProps = (\n value: number | undefined,\n min: number,\n max: number\n): { validatedValue: number; validatedMin: number; validatedMax: number } => {\n const validatedMin = getValidatedMin(min, max);\n const validatedMax = getValidatedMax(validatedMin, max);\n const validatedValue = getValidatedValue(value, validatedMin, validatedMax);\n\n return { validatedValue, validatedMin, validatedMax };\n};\n","import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { STEPPER_PADDING_X_PX } from './utils';\n\nimport styles from './styles.module.scss';\n\ninterface DotProps {\n index?: number;\n completed: boolean;\n distanceBetweenDots?: number;\n position?: 'left' | 'right';\n}\n\nconst Dot: React.FC<DotProps> = ({ index, completed, distanceBetweenDots, position }) => {\n const classes = classNames(\n styles.stepper__dot,\n completed && styles['stepper__dot--completed'],\n position && styles[`stepper__dot--${position}`]\n );\n const positionWithStyle = !position && typeof index !== 'undefined' && typeof distanceBetweenDots !== 'undefined';\n const style: React.HTMLAttributes<HTMLSpanElement>['style'] = positionWithStyle\n ? { left: `${index * distanceBetweenDots + STEPPER_PADDING_X_PX}px` }\n : undefined;\n\n return <span className={classes} style={style} data-testid=\"dot\" />;\n};\n\nexport default Dot;\n","import React from 'react';\n\nimport Dot from './Dot';\n\ninterface DotListProps {\n allowedValues: number[];\n currentValue: number;\n distanceBetweenDots: number;\n}\n\nconst Dots: React.FC<DotListProps> = ({ allowedValues, currentValue, distanceBetweenDots }) => (\n <>\n {allowedValues.map((value, index) => (\n <Dot index={index} key={value} completed={value < currentValue} distanceBetweenDots={distanceBetweenDots} />\n ))}\n </>\n);\n\nexport default Dots;\n","import React, { useRef } from 'react';\n\nimport Dot from './Dot';\nimport DotList from './DotList';\nimport { getMaximumDots, getDistanceBetweenDots, getMarkerPosition, getAllowedValues, getValidatedProps } from './utils';\nimport { AnalyticsId } from '../../constants';\nimport { useSize } from '../../hooks/useSize';\nimport { getAriaLabelAttributes } from '../../utils/accessibility';\n\nimport styles from './styles.module.scss';\n\nexport interface StepperProps {\n /**\n * Sets aria-label of the stepper. ariaLabel or ariaLabelledById MUST be set!\n */\n ariaLabel?: string;\n /**\n * Sets aria-labelledby of the stepper. ariaLabel or ariaLabelledById MUST be set!\n */\n ariaLabelledById?: string;\n /**\n * Current value. Must be between min and max\n */\n value?: number;\n /**\n * Minimum value\n */\n min?: number;\n /**\n * Maximum value\n */\n max?: number;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nconst Stepper: React.FC<StepperProps> = ({ ariaLabelledById, ariaLabel, value, min = 0, max = 2, testId }) => {\n const wrapperRef = useRef<HTMLDivElement>(null);\n const ref = useRef<HTMLSpanElement>(null);\n const { width: wrapperWidth = 0 } = useSize(wrapperRef) || {};\n const { width: stepperWidth = 0 } = useSize(ref) || {};\n\n const { validatedValue, validatedMin, validatedMax } = getValidatedProps(value, min, max);\n const allowedValues = getAllowedValues(validatedMin, validatedMax);\n const index = allowedValues.indexOf(validatedValue);\n const maximumDots = getMaximumDots(wrapperWidth);\n const distanceBetweenDots = getDistanceBetweenDots(stepperWidth, allowedValues.length);\n const markerPosition = getMarkerPosition(distanceBetweenDots, index);\n\n const showAllDots = allowedValues.length <= maximumDots;\n const isCompleted = validatedValue === validatedMax;\n\n const ariaLabelAttributes = getAriaLabelAttributes({ label: ariaLabel, id: ariaLabelledById });\n\n return (\n <div className={styles['stepper-wrapper']} ref={wrapperRef}>\n <span\n role=\"progressbar\"\n {...ariaLabelAttributes}\n aria-valuenow={validatedValue}\n aria-valuemin={validatedMin}\n aria-valuemax={validatedMax}\n className={styles.stepper}\n style={{\n backgroundPositionX: `${isCompleted ? stepperWidth : markerPosition}px`,\n }}\n ref={ref}\n data-testid={testId}\n data-analyticsid={AnalyticsId.Stepper}\n >\n {showAllDots && <DotList allowedValues={allowedValues} currentValue={validatedValue} distanceBetweenDots={distanceBetweenDots} />}\n {!showAllDots && (\n <>\n <Dot completed={validatedValue > validatedMin} position=\"left\" />\n <Dot completed={validatedValue === validatedMax} position=\"right\" />\n </>\n )}\n <span className={styles.stepper__marker} style={{ left: `${markerPosition}px` }} />\n </span>\n {!showAllDots && <span className={styles.stepper__number}>{`${validatedValue}/${validatedMax}`}</span>}\n </div>\n );\n};\n\nexport default Stepper;\n"],"names":["MARKER_DOT_MIN_DISTANCE_PX","MARKER_WIDTH_PX","STEPPER_PADDING_X_PX","getValidatedMin","min","max","getValidatedMax","getValidatedValue","value","getMaximumDots","stepperWidth","getDistanceBetweenDots","dots","getMarkerPosition","distanceBetweenDots","index","getAllowedValues","_","getValidatedProps","validatedMin","validatedMax","Dot","completed","position","classes","classNames","styles","style","Dots","allowedValues","currentValue","jsx","Fragment","Stepper","ariaLabelledById","ariaLabel","testId","wrapperRef","useRef","ref","wrapperWidth","useSize","validatedValue","maximumDots","markerPosition","showAllDots","isCompleted","ariaLabelAttributes","getAriaLabelAttributes","jsxs","AnalyticsId","DotList"],"mappings":";;;;;;;AAGA,MAAMA,IAA6B,GAK7BC,IAAkB,IAKXC,IAAuB,GAQvBC,IAAkB,CAACC,GAAaC,MAAyBD,IAAMC,IAAMD,IAAMC,IAAM,GAQjFC,IAAkB,CAACF,GAAaC,MAAyBA,IAAMD,IAAMA,IAAMC,GAS3EE,IAAoB,CAACC,GAA2BJ,GAAaC,MACpE,OAAOG,IAAU,OAAeA,IAAQJ,IACnCA,IAGFI,IAAQH,IAAMA,IAAMG,GAQhBC,IAAiB,CAACC,MAAiC,KAAK,MAAMA,KAAgBT,IAAkBD,EAA2B,GAQ3HW,IAAyB,CAACD,GAAsBE,OAA0BF,IAAeT,MAAoBW,IAAO,IAQpHC,IAAoB,CAACC,GAA6BC,MAA0BD,IAAsBC,GAQlGC,IAAmB,CAACZ,GAAaC,MAA0B,MAAM,KAAK,MAAMA,IAAMD,IAAM,CAAC,GAAG,CAACa,GAAGF,MAAUA,IAAQX,CAAG,GASrHc,IAAoB,CAC/BV,GACAJ,GACAC,MAC2E;AACrE,QAAAc,IAAehB,EAAgBC,GAAKC,CAAG,GACvCe,IAAed,EAAgBa,GAAcd,CAAG;AAG/C,SAAA,EAAE,gBAFcE,EAAkBC,GAAOW,GAAcC,CAAY,GAEjD,cAAAD,GAAc,cAAAC;AACzC,GC/EMC,IAA0B,CAAC,EAAE,OAAAN,GAAO,WAAAO,GAAW,qBAAAR,GAAqB,UAAAS,QAAe;AACvF,QAAMC,IAAUC;AAAA,IACdC,EAAO;AAAA,IACPJ,KAAaI,EAAO,yBAAyB;AAAA,IAC7CH,KAAYG,EAAO,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,GAAG,KAAKW,GAC9C,UAAA;AAAA,IAAA,gBAAAY;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACJ,GAAGF;AAAA,QACJ,iBAAeL;AAAA,QACf,iBAAevB;AAAA,QACf,iBAAeC;AAAA,QACf,WAAWM,EAAO;AAAA,QAClB,OAAO;AAAA,UACL,qBAAqB,GAAGoB,IAAcpC,IAAekC,CAAc;AAAA,QACrE;AAAA,QACA,KAAAL;AAAA,QACA,eAAaH;AAAA,QACb,oBAAkBc,EAAY;AAAA,QAE7B,UAAA;AAAA,UAAAL,KAAgB,gBAAAd,EAAAoB,GAAA,EAAQ,eAAAtB,GAA8B,cAAca,GAAgB,qBAAA5B,GAA0C;AAAA,UAC9H,CAAC+B,KAEE,gBAAAI,EAAAjB,GAAA,EAAA,UAAA;AAAA,YAAA,gBAAAD,EAACV,GAAI,EAAA,WAAWqB,IAAiBvB,GAAc,UAAS,QAAO;AAAA,8BAC9DE,GAAI,EAAA,WAAWqB,MAAmBtB,GAAc,UAAS,SAAQ;AAAA,UAAA,GACpE;AAAA,UAEF,gBAAAW,EAAC,QAAK,EAAA,WAAWL,EAAO,iBAAiB,OAAO,EAAE,MAAM,GAAGkB,CAAc,KAAQ,EAAA,CAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IACnF;AAAA,IACC,CAACC,KAAe,gBAAAd,EAAC,QAAK,EAAA,WAAWL,EAAO,iBAAkB,UAAG,GAAAgB,CAAc,IAAItB,CAAY,GAAG,CAAA;AAAA,EACjG,EAAA,CAAA;AAEJ;"}
@@ -1,6 +1,6 @@
1
- import { TableBody as a } from "./TableBody.js";
1
+ import { T as o } from "../../../TableBody.js";
2
2
  export {
3
- a as TableBody,
4
- a as default
3
+ o as TableBody,
4
+ o as default
5
5
  };
6
6
  //# sourceMappingURL=index.js.map
@@ -1,8 +1,8 @@
1
- import { TableCell as l } from "./TableCell.js";
2
- import { TextAlign as t } from "./TableCell.js";
1
+ import { T as e } from "../../../TableCell.js";
2
+ import { a as r } from "../../../TableCell.js";
3
3
  export {
4
- l as TableCell,
5
- t as TextAlign,
6
- l as default
4
+ e as TableCell,
5
+ r as TextAlign,
6
+ e as default
7
7
  };
8
8
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import { TableExpandedRow as e } from "./TableExpandedRow.js";
1
+ import { T as e } from "../../../TableExpandedRow.js";
2
2
  export {
3
3
  e as TableExpandedRow,
4
4
  e as default
@@ -1,6 +1,6 @@
1
- import { TableExpanderCell as a } from "./TableExpanderCell.js";
1
+ import { T as e } from "../../../TableExpanderCell.js";
2
2
  export {
3
- a as TableExpanderCell,
4
- a as default
3
+ e as TableExpanderCell,
4
+ e as default
5
5
  };
6
6
  //# sourceMappingURL=index.js.map
@@ -1,8 +1,8 @@
1
- import { TableHead as r } from "./TableHead.js";
2
- import { HeaderCategory as t } from "./TableHead.js";
1
+ import { T as e } from "../../../TableHead.js";
2
+ import { H as t } from "../../../TableHead.js";
3
3
  export {
4
4
  t as HeaderCategory,
5
- r as TableHead,
6
- r as default
5
+ e as TableHead,
6
+ e as default
7
7
  };
8
8
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
- import { TableHeadCell as o } from "./TableHeadCell.js";
2
- import { SortDirection as a } from "./TableHeadCell.js";
1
+ import { T as o } from "../../../TableHeadCell.js";
2
+ import { S as t } from "../../../TableHeadCell.js";
3
3
  export {
4
- a as SortDirection,
4
+ t as SortDirection,
5
5
  o as TableHeadCell,
6
6
  o as default
7
7
  };
@@ -1,6 +1,6 @@
1
- import { TableRow as a } from "./TableRow.js";
1
+ import { T as o } from "../../../TableRow.js";
2
2
  export {
3
- a as TableRow,
4
- a as default
3
+ o as TableRow,
4
+ o as default
5
5
  };
6
6
  //# sourceMappingURL=index.js.map
@@ -1,28 +1,28 @@
1
- import { Table as o } from "./Table.js";
2
- import { ModeType as l, ResponsiveTableVariant as t, defaultConfig as p, simpleConfig as f } from "./Table.js";
3
- import { TableBody as m } from "./TableBody/TableBody.js";
4
- import { TableCell as d, TextAlign as b } from "./TableCell/TableCell.js";
5
- import { TableExpandedRow as n } from "./TableExpandedRow/TableExpandedRow.js";
6
- import { TableExpanderCell as g } from "./TableExpanderCell/TableExpanderCell.js";
7
- import { HeaderCategory as y, TableHead as H } from "./TableHead/TableHead.js";
8
- import { SortDirection as u, TableHeadCell as w } from "./TableHeadCell/TableHeadCell.js";
9
- import { TableRow as c } from "./TableRow/TableRow.js";
1
+ import { T as a } from "../../Table.js";
2
+ import { M as s, R as l, d as T, s as t } from "../../Table.js";
3
+ import { T as f } from "../../TableBody.js";
4
+ import { T as d, a as m } from "../../TableCell.js";
5
+ import { T as i } from "../../TableExpandedRow.js";
6
+ import { T as C } from "../../TableExpanderCell.js";
7
+ import { H, T as R } from "../../TableHead.js";
8
+ import { S as u, T as w } from "../../TableHeadCell.js";
9
+ import { T as M } from "../../TableRow.js";
10
10
  export {
11
- y as HeaderCategory,
12
- l as ModeType,
13
- t as ResponsiveTableVariant,
11
+ H as HeaderCategory,
12
+ s as ModeType,
13
+ l as ResponsiveTableVariant,
14
14
  u as SortDirection,
15
- o as Table,
16
- m as TableBody,
15
+ a as Table,
16
+ f as TableBody,
17
17
  d as TableCell,
18
- n as TableExpandedRow,
19
- g as TableExpanderCell,
20
- H as TableHead,
18
+ i as TableExpandedRow,
19
+ C as TableExpanderCell,
20
+ R as TableHead,
21
21
  w as TableHeadCell,
22
- c as TableRow,
23
- b as TextAlign,
24
- o as default,
25
- p as defaultConfig,
26
- f as simpleConfig
22
+ M as TableRow,
23
+ m as TextAlign,
24
+ a as default,
25
+ T as defaultConfig,
26
+ t as simpleConfig
27
27
  };
28
28
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
- import a from "./TabList.js";
1
+ import { T as t } from "../../../TabList.js";
2
2
  export {
3
- a as default
3
+ t as default
4
4
  };
5
5
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import e from "./TabPanel.js";
1
+ import { T as e } from "../../../TabPanel.js";
2
2
  export {
3
3
  e as default
4
4
  };