@helsenorge/designsystem-react 5.12.0 → 6.0.0-beta.14

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 (1872) hide show
  1. package/CHANGELOG.md +99 -0
  2. package/__mocks__/IntersectionObserver.js +14 -1
  3. package/__mocks__/IntersectionObserver.js.map +1 -1
  4. package/__mocks__/MutationObserver.js +12 -1
  5. package/__mocks__/MutationObserver.js.map +1 -1
  6. package/__mocks__/ResizeObserver.js +14 -1
  7. package/__mocks__/ResizeObserver.js.map +1 -1
  8. package/__mocks__/matchMedia.js +12 -1
  9. package/__mocks__/matchMedia.js.map +1 -1
  10. package/__mocks__/useHover.js +3 -1
  11. package/__mocks__/useHover.js.map +1 -1
  12. package/__mocks__/useLayoutEvent.js +3 -1
  13. package/__mocks__/useLayoutEvent.js.map +1 -1
  14. package/__mocks__/useOutsideEvent.js +3 -1
  15. package/__mocks__/useOutsideEvent.js.map +1 -1
  16. package/__mocks__/useSize.js +3 -1
  17. package/__mocks__/useSize.js.map +1 -1
  18. package/__mocks__/uuid.js +5 -1
  19. package/__mocks__/uuid.js.map +1 -1
  20. package/_virtual/dynamic-import-helper.js +10 -0
  21. package/_virtual/dynamic-import-helper.js.map +1 -0
  22. package/components/AnchorLink/AnchorLink.js +53 -0
  23. package/components/AnchorLink/AnchorLink.js.map +1 -0
  24. package/components/AnchorLink/index.js +4 -1
  25. package/components/AnchorLink/index.js.map +1 -1
  26. package/components/Avatar/Avatar.js +33 -0
  27. package/components/Avatar/Avatar.js.map +1 -0
  28. package/components/Avatar/index.js +6 -1
  29. package/components/Avatar/index.js.map +1 -1
  30. package/components/Badge/Badge.js +25 -0
  31. package/components/Badge/Badge.js.map +1 -0
  32. package/components/Badge/index.js +4 -1
  33. package/components/Badge/index.js.map +1 -1
  34. package/components/Button/Button.d.ts.map +1 -1
  35. package/components/Button/Button.js +119 -0
  36. package/components/Button/Button.js.map +1 -0
  37. package/components/Button/index.js +4 -1
  38. package/components/Button/index.js.map +1 -1
  39. package/components/ButtonWithModal/ButtonWithModal.js +11 -0
  40. package/components/ButtonWithModal/ButtonWithModal.js.map +1 -0
  41. package/components/ButtonWithModal/index.js +4 -1
  42. package/components/ButtonWithModal/index.js.map +1 -1
  43. package/components/Checkbox/Checkbox.d.ts +3 -3
  44. package/components/Checkbox/Checkbox.d.ts.map +1 -1
  45. package/components/Checkbox/Checkbox.js +108 -0
  46. package/components/Checkbox/Checkbox.js.map +1 -0
  47. package/components/Checkbox/index.js +6 -1
  48. package/components/Checkbox/index.js.map +1 -1
  49. package/components/Checkbox/styles.module.scss +9 -9
  50. package/components/Checkbox/styles.module.scss.d.ts +18 -18
  51. package/components/Close/Close.js +30 -0
  52. package/components/Close/Close.js.map +1 -0
  53. package/components/Close/index.js +4 -1
  54. package/components/Close/index.js.map +1 -1
  55. package/components/DictionaryTrigger/DictionaryTrigger.js +28 -0
  56. package/components/DictionaryTrigger/DictionaryTrigger.js.map +1 -0
  57. package/components/DictionaryTrigger/index.js +4 -1
  58. package/components/DictionaryTrigger/index.js.map +1 -1
  59. package/components/Dropdown/Dropdown.js +119 -0
  60. package/components/Dropdown/Dropdown.js.map +1 -0
  61. package/components/Dropdown/index.js +6 -1
  62. package/components/Dropdown/index.js.map +1 -1
  63. package/components/Dropdown/styles.module.scss +2 -2
  64. package/components/Duolist/Duolist.js +55 -0
  65. package/components/Duolist/Duolist.js.map +1 -0
  66. package/components/Duolist/index.js +7 -1
  67. package/components/Duolist/index.js.map +1 -1
  68. package/components/EmptyState/EmptyState.js +10 -0
  69. package/components/EmptyState/EmptyState.js.map +1 -0
  70. package/components/EmptyState/NobodyHome.js +155 -0
  71. package/components/EmptyState/NobodyHome.js.map +1 -0
  72. package/components/EmptyState/index.js +4 -1
  73. package/components/EmptyState/index.js.map +1 -1
  74. package/components/ErrorWrapper/ErrorWrapper.js +12 -0
  75. package/components/ErrorWrapper/ErrorWrapper.js.map +1 -0
  76. package/components/ErrorWrapper/index.js +6 -1
  77. package/components/ErrorWrapper/index.js.map +1 -1
  78. package/components/Expander/Expander.d.ts +3 -2
  79. package/components/Expander/Expander.d.ts.map +1 -1
  80. package/components/Expander/Expander.js +100 -0
  81. package/components/Expander/Expander.js.map +1 -0
  82. package/components/Expander/index.js +6 -1
  83. package/components/Expander/index.js.map +1 -1
  84. package/components/ExpanderHierarchy/Expander.js +31 -0
  85. package/components/ExpanderHierarchy/Expander.js.map +1 -0
  86. package/components/ExpanderHierarchy/ExpanderButton.js +46 -0
  87. package/components/ExpanderHierarchy/ExpanderButton.js.map +1 -0
  88. package/components/ExpanderHierarchy/ExpanderHierarchy.js +29 -0
  89. package/components/ExpanderHierarchy/ExpanderHierarchy.js.map +1 -0
  90. package/components/ExpanderHierarchy/index.js +4 -1
  91. package/components/ExpanderHierarchy/index.js.map +1 -1
  92. package/components/ExpanderHierarchy/utils.js +20 -0
  93. package/components/ExpanderHierarchy/utils.js.map +1 -0
  94. package/components/ExpanderList/ExpanderList.d.ts +0 -7
  95. package/components/ExpanderList/ExpanderList.d.ts.map +1 -1
  96. package/components/ExpanderList/ExpanderList.js +134 -0
  97. package/components/ExpanderList/ExpanderList.js.map +1 -0
  98. package/components/ExpanderList/index.js +6 -1
  99. package/components/ExpanderList/index.js.map +1 -1
  100. package/components/FormExample/FormExample.d.ts +2 -2
  101. package/components/FormExample/FormExample.d.ts.map +1 -1
  102. package/components/FormExample/FormExample.js +249 -0
  103. package/components/FormExample/FormExample.js.map +1 -0
  104. package/components/FormExample/index.js +7 -11
  105. package/components/FormExample/index.js.map +1 -1
  106. package/components/FormGroup/FormGroup.d.ts +2 -2
  107. package/components/FormGroup/FormGroup.d.ts.map +1 -1
  108. package/components/FormGroup/FormGroup.js +97 -0
  109. package/components/FormGroup/FormGroup.js.map +1 -0
  110. package/components/FormGroup/index.js +6 -1
  111. package/components/FormGroup/index.js.map +1 -1
  112. package/components/FormLayout/FormLayout.d.ts +3 -3
  113. package/components/FormLayout/FormLayout.d.ts.map +1 -1
  114. package/components/FormLayout/FormLayout.js +39 -0
  115. package/components/FormLayout/FormLayout.js.map +1 -0
  116. package/components/FormLayout/index.js +7 -1
  117. package/components/FormLayout/index.js.map +1 -1
  118. package/components/FormLayout/styles.module.scss +1 -1
  119. package/components/FormLayout/styles.module.scss.d.ts +1 -1
  120. package/components/GridExample/GridExample.js +7 -0
  121. package/components/GridExample/GridExample.js.map +1 -0
  122. package/components/GridExample/index.js +6 -1
  123. package/components/GridExample/index.js.map +1 -1
  124. package/components/HelpBubble/HelpBubble.js +62 -0
  125. package/components/HelpBubble/HelpBubble.js.map +1 -0
  126. package/components/HelpBubble/index.js +6 -1
  127. package/components/HelpBubble/index.js.map +1 -1
  128. package/components/HelpBubbleExample/HelpBubbleExample.js +20 -0
  129. package/components/HelpBubbleExample/HelpBubbleExample.js.map +1 -0
  130. package/components/HelpBubbleExample/index.js +4 -1
  131. package/components/HelpBubbleExample/index.js.map +1 -1
  132. package/components/HelpPanel/HelpPanel.js +24 -0
  133. package/components/HelpPanel/HelpPanel.js.map +1 -0
  134. package/components/HelpPanel/index.js +4 -1
  135. package/components/HelpPanel/index.js.map +1 -1
  136. package/components/HelpQuestion/HelpQuestion.js +32 -0
  137. package/components/HelpQuestion/HelpQuestion.js.map +1 -0
  138. package/components/HelpQuestion/index.js +4 -1
  139. package/components/HelpQuestion/index.js.map +1 -1
  140. package/components/HighlightBox/HighlightBox.d.ts +3 -2
  141. package/components/HighlightBox/HighlightBox.d.ts.map +1 -1
  142. package/components/HighlightBox/HighlightBox.js +62 -0
  143. package/components/HighlightBox/HighlightBox.js.map +1 -0
  144. package/components/HighlightBox/index.js +6 -1
  145. package/components/HighlightBox/index.js.map +1 -1
  146. package/components/HorizontalScroll/HorizontalScroll.js +46 -0
  147. package/components/HorizontalScroll/HorizontalScroll.js.map +1 -0
  148. package/components/HorizontalScroll/index.js +6 -1
  149. package/components/HorizontalScroll/index.js.map +1 -1
  150. package/components/{Icons → Icon}/Icon.d.ts +4 -3
  151. package/components/Icon/Icon.d.ts.map +1 -0
  152. package/components/Icon/Icon.js +57 -0
  153. package/components/Icon/Icon.js.map +1 -0
  154. package/components/Icon/index.d.ts.map +1 -0
  155. package/components/Icon/index.js +10 -0
  156. package/components/Icon/index.js.map +1 -0
  157. package/components/Icons/ActiveMonitoring.d.ts +1 -1
  158. package/components/Icons/ActiveMonitoring.d.ts.map +1 -1
  159. package/components/Icons/ActiveMonitoring.js +17 -1
  160. package/components/Icons/ActiveMonitoring.js.map +1 -1
  161. package/components/Icons/AcupunctureBack.d.ts +1 -1
  162. package/components/Icons/AcupunctureBack.d.ts.map +1 -1
  163. package/components/Icons/AcupunctureBack.js +22 -1
  164. package/components/Icons/AcupunctureBack.js.map +1 -1
  165. package/components/Icons/AdditionalIconInformation.d.ts +1192 -0
  166. package/components/Icons/AdditionalIconInformation.d.ts.map +1 -0
  167. package/components/Icons/AdditionalIconInformation.js +302 -298
  168. package/components/Icons/AdditionalIconInformation.js.map +1 -0
  169. package/components/Icons/AlarmClock.d.ts +1 -1
  170. package/components/Icons/AlarmClock.d.ts.map +1 -1
  171. package/components/Icons/AlarmClock.js +18 -1
  172. package/components/Icons/AlarmClock.js.map +1 -1
  173. package/components/Icons/AlertSignFill.d.ts +1 -1
  174. package/components/Icons/AlertSignFill.d.ts.map +1 -1
  175. package/components/Icons/AlertSignFill.js +6 -1
  176. package/components/Icons/AlertSignFill.js.map +1 -1
  177. package/components/Icons/AlertSignStroke.d.ts +1 -1
  178. package/components/Icons/AlertSignStroke.d.ts.map +1 -1
  179. package/components/Icons/AlertSignStroke.js +6 -1
  180. package/components/Icons/AlertSignStroke.js.map +1 -1
  181. package/components/Icons/Amputation.d.ts +1 -1
  182. package/components/Icons/Amputation.d.ts.map +1 -1
  183. package/components/Icons/Amputation.js +5 -1
  184. package/components/Icons/Amputation.js.map +1 -1
  185. package/components/Icons/Anxiety.d.ts +1 -1
  186. package/components/Icons/Anxiety.d.ts.map +1 -1
  187. package/components/Icons/Anxiety.js +5 -1
  188. package/components/Icons/Anxiety.js.map +1 -1
  189. package/components/Icons/Apple.d.ts +1 -1
  190. package/components/Icons/Apple.d.ts.map +1 -1
  191. package/components/Icons/Apple.js +5 -1
  192. package/components/Icons/Apple.js.map +1 -1
  193. package/components/Icons/Archive.d.ts +1 -1
  194. package/components/Icons/Archive.d.ts.map +1 -1
  195. package/components/Icons/Archive.js +30 -1
  196. package/components/Icons/Archive.js.map +1 -1
  197. package/components/Icons/ArmFlexing.d.ts +1 -1
  198. package/components/Icons/ArmFlexing.d.ts.map +1 -1
  199. package/components/Icons/ArmFlexing.js +5 -1
  200. package/components/Icons/ArmFlexing.js.map +1 -1
  201. package/components/Icons/ArrowDown.d.ts +1 -1
  202. package/components/Icons/ArrowDown.d.ts.map +1 -1
  203. package/components/Icons/ArrowDown.js +30 -1
  204. package/components/Icons/ArrowDown.js.map +1 -1
  205. package/components/Icons/ArrowLeft.d.ts +1 -1
  206. package/components/Icons/ArrowLeft.d.ts.map +1 -1
  207. package/components/Icons/ArrowLeft.js +6 -1
  208. package/components/Icons/ArrowLeft.js.map +1 -1
  209. package/components/Icons/ArrowRight.d.ts +1 -1
  210. package/components/Icons/ArrowRight.d.ts.map +1 -1
  211. package/components/Icons/ArrowRight.js +6 -1
  212. package/components/Icons/ArrowRight.js.map +1 -1
  213. package/components/Icons/ArrowUp.d.ts +1 -1
  214. package/components/Icons/ArrowUp.d.ts.map +1 -1
  215. package/components/Icons/ArrowUp.js +30 -1
  216. package/components/Icons/ArrowUp.js.map +1 -1
  217. package/components/Icons/ArrowUpRight.d.ts +1 -1
  218. package/components/Icons/ArrowUpRight.d.ts.map +1 -1
  219. package/components/Icons/ArrowUpRight.js +6 -1
  220. package/components/Icons/ArrowUpRight.js.map +1 -1
  221. package/components/Icons/Attachment.d.ts +1 -1
  222. package/components/Icons/Attachment.d.ts.map +1 -1
  223. package/components/Icons/Attachment.js +6 -1
  224. package/components/Icons/Attachment.js.map +1 -1
  225. package/components/Icons/Atv.d.ts +1 -1
  226. package/components/Icons/Atv.d.ts.map +1 -1
  227. package/components/Icons/Atv.js +5 -1
  228. package/components/Icons/Atv.js.map +1 -1
  229. package/components/Icons/Avatar.d.ts +1 -1
  230. package/components/Icons/Avatar.d.ts.map +1 -1
  231. package/components/Icons/Avatar.js +6 -1
  232. package/components/Icons/Avatar.js.map +1 -1
  233. package/components/Icons/AwakePersonOnPillow.d.ts +1 -1
  234. package/components/Icons/AwakePersonOnPillow.d.ts.map +1 -1
  235. package/components/Icons/AwakePersonOnPillow.js +5 -1
  236. package/components/Icons/AwakePersonOnPillow.js.map +1 -1
  237. package/components/Icons/Baby.d.ts +1 -1
  238. package/components/Icons/Baby.d.ts.map +1 -1
  239. package/components/Icons/Baby.js +5 -1
  240. package/components/Icons/Baby.js.map +1 -1
  241. package/components/Icons/BandAid.d.ts +1 -1
  242. package/components/Icons/BandAid.d.ts.map +1 -1
  243. package/components/Icons/BandAid.js +5 -1
  244. package/components/Icons/BandAid.js.map +1 -1
  245. package/components/Icons/BeerAndPills.d.ts +1 -1
  246. package/components/Icons/BeerAndPills.d.ts.map +1 -1
  247. package/components/Icons/BeerAndPills.js +17 -1
  248. package/components/Icons/BeerAndPills.js.map +1 -1
  249. package/components/Icons/Bell.d.ts +1 -1
  250. package/components/Icons/Bell.d.ts.map +1 -1
  251. package/components/Icons/Bell.js +5 -1
  252. package/components/Icons/Bell.js.map +1 -1
  253. package/components/Icons/Bike.d.ts +1 -1
  254. package/components/Icons/Bike.d.ts.map +1 -1
  255. package/components/Icons/Bike.js +5 -1
  256. package/components/Icons/Bike.js.map +1 -1
  257. package/components/Icons/BirthControl.d.ts +1 -1
  258. package/components/Icons/BirthControl.d.ts.map +1 -1
  259. package/components/Icons/BirthControl.js +17 -1
  260. package/components/Icons/BirthControl.js.map +1 -1
  261. package/components/Icons/BirthdayCake.d.ts +1 -1
  262. package/components/Icons/BirthdayCake.d.ts.map +1 -1
  263. package/components/Icons/BirthdayCake.js +5 -1
  264. package/components/Icons/BirthdayCake.js.map +1 -1
  265. package/components/Icons/Boat.d.ts +1 -1
  266. package/components/Icons/Boat.d.ts.map +1 -1
  267. package/components/Icons/Boat.js +5 -1
  268. package/components/Icons/Boat.js.map +1 -1
  269. package/components/Icons/Body.d.ts +1 -1
  270. package/components/Icons/Body.d.ts.map +1 -1
  271. package/components/Icons/Body.js +17 -1
  272. package/components/Icons/Body.js.map +1 -1
  273. package/components/Icons/Braille.d.ts +1 -1
  274. package/components/Icons/Braille.d.ts.map +1 -1
  275. package/components/Icons/Braille.js +6 -1
  276. package/components/Icons/Braille.js.map +1 -1
  277. package/components/Icons/Brain.d.ts +1 -1
  278. package/components/Icons/Brain.d.ts.map +1 -1
  279. package/components/Icons/Brain.js +5 -1
  280. package/components/Icons/Brain.js.map +1 -1
  281. package/components/Icons/BreastReconstruction.d.ts +1 -1
  282. package/components/Icons/BreastReconstruction.d.ts.map +1 -1
  283. package/components/Icons/BreastReconstruction.js +17 -1
  284. package/components/Icons/BreastReconstruction.js.map +1 -1
  285. package/components/Icons/BreastRemoval.d.ts +1 -1
  286. package/components/Icons/BreastRemoval.d.ts.map +1 -1
  287. package/components/Icons/BreastRemoval.js +17 -1
  288. package/components/Icons/BreastRemoval.js.map +1 -1
  289. package/components/Icons/Breasts.d.ts +1 -1
  290. package/components/Icons/Breasts.d.ts.map +1 -1
  291. package/components/Icons/Breasts.js +5 -1
  292. package/components/Icons/Breasts.js.map +1 -1
  293. package/components/Icons/BrokenHeart.d.ts +1 -1
  294. package/components/Icons/BrokenHeart.d.ts.map +1 -1
  295. package/components/Icons/BrokenHeart.js +5 -1
  296. package/components/Icons/BrokenHeart.js.map +1 -1
  297. package/components/Icons/BrokenPuzzle.d.ts +1 -1
  298. package/components/Icons/BrokenPuzzle.d.ts.map +1 -1
  299. package/components/Icons/BrokenPuzzle.js +5 -1
  300. package/components/Icons/BrokenPuzzle.js.map +1 -1
  301. package/components/Icons/Bus.d.ts +1 -1
  302. package/components/Icons/Bus.d.ts.map +1 -1
  303. package/components/Icons/Bus.js +18 -1
  304. package/components/Icons/Bus.js.map +1 -1
  305. package/components/Icons/Calendar.d.ts +1 -1
  306. package/components/Icons/Calendar.d.ts.map +1 -1
  307. package/components/Icons/Calendar.js +30 -1
  308. package/components/Icons/Calendar.js.map +1 -1
  309. package/components/Icons/CalendarChange.d.ts +1 -1
  310. package/components/Icons/CalendarChange.d.ts.map +1 -1
  311. package/components/Icons/CalendarChange.js +30 -1
  312. package/components/Icons/CalendarChange.js.map +1 -1
  313. package/components/Icons/CalendarCheck.d.ts +1 -1
  314. package/components/Icons/CalendarCheck.d.ts.map +1 -1
  315. package/components/Icons/CalendarCheck.js +30 -1
  316. package/components/Icons/CalendarCheck.js.map +1 -1
  317. package/components/Icons/CalendarEvent.d.ts +1 -1
  318. package/components/Icons/CalendarEvent.d.ts.map +1 -1
  319. package/components/Icons/CalendarEvent.js +5 -1
  320. package/components/Icons/CalendarEvent.js.map +1 -1
  321. package/components/Icons/CalendarSave.d.ts +1 -1
  322. package/components/Icons/CalendarSave.d.ts.map +1 -1
  323. package/components/Icons/CalendarSave.js +6 -1
  324. package/components/Icons/CalendarSave.js.map +1 -1
  325. package/components/Icons/Cancer.d.ts +1 -1
  326. package/components/Icons/Cancer.d.ts.map +1 -1
  327. package/components/Icons/Cancer.js +5 -1
  328. package/components/Icons/Cancer.js.map +1 -1
  329. package/components/Icons/Candle.d.ts +1 -1
  330. package/components/Icons/Candle.d.ts.map +1 -1
  331. package/components/Icons/Candle.js +18 -1
  332. package/components/Icons/Candle.js.map +1 -1
  333. package/components/Icons/Car.d.ts +1 -1
  334. package/components/Icons/Car.d.ts.map +1 -1
  335. package/components/Icons/Car.js +5 -1
  336. package/components/Icons/Car.js.map +1 -1
  337. package/components/Icons/Change.d.ts +1 -1
  338. package/components/Icons/Change.d.ts.map +1 -1
  339. package/components/Icons/Change.js +39 -1
  340. package/components/Icons/Change.js.map +1 -1
  341. package/components/Icons/Check.d.ts +1 -1
  342. package/components/Icons/Check.d.ts.map +1 -1
  343. package/components/Icons/Check.js +6 -1
  344. package/components/Icons/Check.js.map +1 -1
  345. package/components/Icons/CheckFill.d.ts +1 -1
  346. package/components/Icons/CheckFill.d.ts.map +1 -1
  347. package/components/Icons/CheckFill.js +30 -1
  348. package/components/Icons/CheckFill.js.map +1 -1
  349. package/components/Icons/CheckOutline.d.ts +1 -1
  350. package/components/Icons/CheckOutline.d.ts.map +1 -1
  351. package/components/Icons/CheckOutline.js +17 -1
  352. package/components/Icons/CheckOutline.js.map +1 -1
  353. package/components/Icons/Chest.d.ts +1 -1
  354. package/components/Icons/Chest.d.ts.map +1 -1
  355. package/components/Icons/Chest.js +5 -1
  356. package/components/Icons/Chest.js.map +1 -1
  357. package/components/Icons/ChevronDown.d.ts +1 -1
  358. package/components/Icons/ChevronDown.d.ts.map +1 -1
  359. package/components/Icons/ChevronDown.js +6 -1
  360. package/components/Icons/ChevronDown.js.map +1 -1
  361. package/components/Icons/ChevronLeft.d.ts +1 -1
  362. package/components/Icons/ChevronLeft.d.ts.map +1 -1
  363. package/components/Icons/ChevronLeft.js +6 -1
  364. package/components/Icons/ChevronLeft.js.map +1 -1
  365. package/components/Icons/ChevronRight.d.ts +1 -1
  366. package/components/Icons/ChevronRight.d.ts.map +1 -1
  367. package/components/Icons/ChevronRight.js +6 -1
  368. package/components/Icons/ChevronRight.js.map +1 -1
  369. package/components/Icons/ChevronUp.d.ts +1 -1
  370. package/components/Icons/ChevronUp.d.ts.map +1 -1
  371. package/components/Icons/ChevronUp.js +6 -1
  372. package/components/Icons/ChevronUp.js.map +1 -1
  373. package/components/Icons/ChevronsDown.d.ts +1 -1
  374. package/components/Icons/ChevronsDown.d.ts.map +1 -1
  375. package/components/Icons/ChevronsDown.js +30 -1
  376. package/components/Icons/ChevronsDown.js.map +1 -1
  377. package/components/Icons/ChevronsUp.d.ts +1 -1
  378. package/components/Icons/ChevronsUp.d.ts.map +1 -1
  379. package/components/Icons/ChevronsUp.js +30 -1
  380. package/components/Icons/ChevronsUp.js.map +1 -1
  381. package/components/Icons/ChildPlaying.d.ts +1 -1
  382. package/components/Icons/ChildPlaying.d.ts.map +1 -1
  383. package/components/Icons/ChildPlaying.js +5 -1
  384. package/components/Icons/ChildPlaying.js.map +1 -1
  385. package/components/Icons/Cigarette.d.ts +1 -1
  386. package/components/Icons/Cigarette.d.ts.map +1 -1
  387. package/components/Icons/Cigarette.js +5 -1
  388. package/components/Icons/Cigarette.js.map +1 -1
  389. package/components/Icons/Coins.d.ts +1 -1
  390. package/components/Icons/Coins.d.ts.map +1 -1
  391. package/components/Icons/Coins.js +17 -1
  392. package/components/Icons/Coins.js.map +1 -1
  393. package/components/Icons/Contacts.d.ts +1 -1
  394. package/components/Icons/Contacts.d.ts.map +1 -1
  395. package/components/Icons/Contacts.js +6 -1
  396. package/components/Icons/Contacts.js.map +1 -1
  397. package/components/Icons/Copy.d.ts +1 -1
  398. package/components/Icons/Copy.d.ts.map +1 -1
  399. package/components/Icons/Copy.js +6 -1
  400. package/components/Icons/Copy.js.map +1 -1
  401. package/components/Icons/CoronaCertificate.d.ts +1 -1
  402. package/components/Icons/CoronaCertificate.d.ts.map +1 -1
  403. package/components/Icons/CoronaCertificate.js +17 -1
  404. package/components/Icons/CoronaCertificate.js.map +1 -1
  405. package/components/Icons/Coronavirus.d.ts +1 -1
  406. package/components/Icons/Coronavirus.d.ts.map +1 -1
  407. package/components/Icons/Coronavirus.js +5 -1
  408. package/components/Icons/Coronavirus.js.map +1 -1
  409. package/components/Icons/Cough.d.ts +1 -1
  410. package/components/Icons/Cough.d.ts.map +1 -1
  411. package/components/Icons/Cough.js +5 -1
  412. package/components/Icons/Cough.js.map +1 -1
  413. package/components/Icons/CriticalHealthInfo.d.ts +1 -1
  414. package/components/Icons/CriticalHealthInfo.d.ts.map +1 -1
  415. package/components/Icons/CriticalHealthInfo.js +5 -1
  416. package/components/Icons/CriticalHealthInfo.js.map +1 -1
  417. package/components/Icons/Cross.d.ts +1 -1
  418. package/components/Icons/Cross.d.ts.map +1 -1
  419. package/components/Icons/Cross.js +5 -1
  420. package/components/Icons/Cross.js.map +1 -1
  421. package/components/Icons/DataExchange.d.ts +1 -1
  422. package/components/Icons/DataExchange.d.ts.map +1 -1
  423. package/components/Icons/DataExchange.js +17 -1
  424. package/components/Icons/DataExchange.js.map +1 -1
  425. package/components/Icons/DataReceived.d.ts +1 -1
  426. package/components/Icons/DataReceived.d.ts.map +1 -1
  427. package/components/Icons/DataReceived.js +17 -1
  428. package/components/Icons/DataReceived.js.map +1 -1
  429. package/components/Icons/DataSent.d.ts +1 -1
  430. package/components/Icons/DataSent.d.ts.map +1 -1
  431. package/components/Icons/DataSent.js +17 -1
  432. package/components/Icons/DataSent.js.map +1 -1
  433. package/components/Icons/Depression.d.ts +1 -1
  434. package/components/Icons/Depression.d.ts.map +1 -1
  435. package/components/Icons/Depression.js +5 -1
  436. package/components/Icons/Depression.js.map +1 -1
  437. package/components/Icons/DigestiveSystem.d.ts +1 -1
  438. package/components/Icons/DigestiveSystem.d.ts.map +1 -1
  439. package/components/Icons/DigestiveSystem.js +5 -1
  440. package/components/Icons/DigestiveSystem.js.map +1 -1
  441. package/components/Icons/Dizzy.d.ts +1 -1
  442. package/components/Icons/Dizzy.d.ts.map +1 -1
  443. package/components/Icons/Dizzy.js +5 -1
  444. package/components/Icons/Dizzy.js.map +1 -1
  445. package/components/Icons/Documents.d.ts +1 -1
  446. package/components/Icons/Documents.d.ts.map +1 -1
  447. package/components/Icons/Documents.js +5 -1
  448. package/components/Icons/Documents.js.map +1 -1
  449. package/components/Icons/Dog.d.ts +1 -1
  450. package/components/Icons/Dog.d.ts.map +1 -1
  451. package/components/Icons/Dog.js +5 -1
  452. package/components/Icons/Dog.js.map +1 -1
  453. package/components/Icons/DonorCard.d.ts +1 -1
  454. package/components/Icons/DonorCard.d.ts.map +1 -1
  455. package/components/Icons/DonorCard.js +5 -1
  456. package/components/Icons/DonorCard.js.map +1 -1
  457. package/components/Icons/Download.d.ts +1 -1
  458. package/components/Icons/Download.d.ts.map +1 -1
  459. package/components/Icons/Download.js +30 -1
  460. package/components/Icons/Download.js.map +1 -1
  461. package/components/Icons/Draft.d.ts +1 -1
  462. package/components/Icons/Draft.d.ts.map +1 -1
  463. package/components/Icons/Draft.js +5 -1
  464. package/components/Icons/Draft.js.map +1 -1
  465. package/components/Icons/EChat.d.ts +1 -1
  466. package/components/Icons/EChat.d.ts.map +1 -1
  467. package/components/Icons/EChat.js +6 -1
  468. package/components/Icons/EChat.js.map +1 -1
  469. package/components/Icons/Ear.d.ts +1 -1
  470. package/components/Icons/Ear.d.ts.map +1 -1
  471. package/components/Icons/Ear.js +9 -1
  472. package/components/Icons/Ear.js.map +1 -1
  473. package/components/Icons/EarDeaf.d.ts +1 -1
  474. package/components/Icons/EarDeaf.d.ts.map +1 -1
  475. package/components/Icons/EarDeaf.js +6 -1
  476. package/components/Icons/EarDeaf.js.map +1 -1
  477. package/components/Icons/EarHearingAid.d.ts +1 -1
  478. package/components/Icons/EarHearingAid.d.ts.map +1 -1
  479. package/components/Icons/EarHearingAid.js +9 -1
  480. package/components/Icons/EarHearingAid.js.map +1 -1
  481. package/components/Icons/EarNoseThroat.d.ts +1 -1
  482. package/components/Icons/EarNoseThroat.d.ts.map +1 -1
  483. package/components/Icons/EarNoseThroat.js +5 -1
  484. package/components/Icons/EarNoseThroat.js.map +1 -1
  485. package/components/Icons/EarVolume.d.ts +1 -1
  486. package/components/Icons/EarVolume.d.ts.map +1 -1
  487. package/components/Icons/EarVolume.js +16 -1
  488. package/components/Icons/EarVolume.js.map +1 -1
  489. package/components/Icons/ElderlyPerson.d.ts +1 -1
  490. package/components/Icons/ElderlyPerson.d.ts.map +1 -1
  491. package/components/Icons/ElderlyPerson.js +5 -1
  492. package/components/Icons/ElderlyPerson.js.map +1 -1
  493. package/components/Icons/Embolization.d.ts +1 -1
  494. package/components/Icons/Embolization.d.ts.map +1 -1
  495. package/components/Icons/Embolization.js +17 -1
  496. package/components/Icons/Embolization.js.map +1 -1
  497. package/components/Icons/EmergencyCall.d.ts +1 -1
  498. package/components/Icons/EmergencyCall.d.ts.map +1 -1
  499. package/components/Icons/EmergencyCall.js +20 -1
  500. package/components/Icons/EmergencyCall.js.map +1 -1
  501. package/components/Icons/EmoticonAnnoyed.d.ts +1 -1
  502. package/components/Icons/EmoticonAnnoyed.d.ts.map +1 -1
  503. package/components/Icons/EmoticonAnnoyed.js +15 -1
  504. package/components/Icons/EmoticonAnnoyed.js.map +1 -1
  505. package/components/Icons/EmoticonDelighted.d.ts +1 -1
  506. package/components/Icons/EmoticonDelighted.d.ts.map +1 -1
  507. package/components/Icons/EmoticonDelighted.js +9 -1
  508. package/components/Icons/EmoticonDelighted.js.map +1 -1
  509. package/components/Icons/EmoticonDisappointed.d.ts +1 -1
  510. package/components/Icons/EmoticonDisappointed.d.ts.map +1 -1
  511. package/components/Icons/EmoticonDisappointed.js +9 -1
  512. package/components/Icons/EmoticonDisappointed.js.map +1 -1
  513. package/components/Icons/EmoticonHappy.d.ts +1 -1
  514. package/components/Icons/EmoticonHappy.d.ts.map +1 -1
  515. package/components/Icons/EmoticonHappy.js +9 -1
  516. package/components/Icons/EmoticonHappy.js.map +1 -1
  517. package/components/Icons/EmoticonMeh.d.ts +1 -1
  518. package/components/Icons/EmoticonMeh.d.ts.map +1 -1
  519. package/components/Icons/EmoticonMeh.js +9 -1
  520. package/components/Icons/EmoticonMeh.js.map +1 -1
  521. package/components/Icons/EnterFullScreen.d.ts +1 -1
  522. package/components/Icons/EnterFullScreen.d.ts.map +1 -1
  523. package/components/Icons/EnterFullScreen.js +6 -1
  524. package/components/Icons/EnterFullScreen.js.map +1 -1
  525. package/components/Icons/Envelope.d.ts +1 -1
  526. package/components/Icons/Envelope.d.ts.map +1 -1
  527. package/components/Icons/Envelope.js +6 -1
  528. package/components/Icons/Envelope.js.map +1 -1
  529. package/components/Icons/Epilepsy.d.ts +1 -1
  530. package/components/Icons/Epilepsy.d.ts.map +1 -1
  531. package/components/Icons/Epilepsy.js +5 -1
  532. package/components/Icons/Epilepsy.js.map +1 -1
  533. package/components/Icons/Eraser.d.ts +1 -1
  534. package/components/Icons/Eraser.d.ts.map +1 -1
  535. package/components/Icons/Eraser.js +6 -1
  536. package/components/Icons/Eraser.js.map +1 -1
  537. package/components/Icons/ErrorSignFill.d.ts +1 -1
  538. package/components/Icons/ErrorSignFill.d.ts.map +1 -1
  539. package/components/Icons/ErrorSignFill.js +6 -1
  540. package/components/Icons/ErrorSignFill.js.map +1 -1
  541. package/components/Icons/ErrorSignStroke.d.ts +1 -1
  542. package/components/Icons/ErrorSignStroke.d.ts.map +1 -1
  543. package/components/Icons/ErrorSignStroke.js +6 -1
  544. package/components/Icons/ErrorSignStroke.js.map +1 -1
  545. package/components/Icons/EuropeanHealthCard.d.ts +1 -1
  546. package/components/Icons/EuropeanHealthCard.d.ts.map +1 -1
  547. package/components/Icons/EuropeanHealthCard.js +5 -1
  548. package/components/Icons/EuropeanHealthCard.js.map +1 -1
  549. package/components/Icons/ExitFullScreen.d.ts +1 -1
  550. package/components/Icons/ExitFullScreen.d.ts.map +1 -1
  551. package/components/Icons/ExitFullScreen.js +6 -1
  552. package/components/Icons/ExitFullScreen.js.map +1 -1
  553. package/components/Icons/Eye.d.ts +1 -1
  554. package/components/Icons/Eye.d.ts.map +1 -1
  555. package/components/Icons/Eye.js +20 -1
  556. package/components/Icons/Eye.js.map +1 -1
  557. package/components/Icons/Facebook.d.ts +1 -1
  558. package/components/Icons/Facebook.d.ts.map +1 -1
  559. package/components/Icons/Facebook.js +5 -1
  560. package/components/Icons/Facebook.js.map +1 -1
  561. package/components/Icons/FallingLeaf.d.ts +1 -1
  562. package/components/Icons/FallingLeaf.d.ts.map +1 -1
  563. package/components/Icons/FallingLeaf.js +21 -1
  564. package/components/Icons/FallingLeaf.js.map +1 -1
  565. package/components/Icons/Female.d.ts +1 -1
  566. package/components/Icons/Female.d.ts.map +1 -1
  567. package/components/Icons/Female.js +5 -1
  568. package/components/Icons/Female.js.map +1 -1
  569. package/components/Icons/FemaleDoctor.d.ts +1 -1
  570. package/components/Icons/FemaleDoctor.d.ts.map +1 -1
  571. package/components/Icons/FemaleDoctor.js +5 -1
  572. package/components/Icons/FemaleDoctor.js.map +1 -1
  573. package/components/Icons/Ferry.d.ts +1 -1
  574. package/components/Icons/Ferry.d.ts.map +1 -1
  575. package/components/Icons/Ferry.js +5 -1
  576. package/components/Icons/Ferry.js.map +1 -1
  577. package/components/Icons/File.d.ts +1 -1
  578. package/components/Icons/File.d.ts.map +1 -1
  579. package/components/Icons/File.js +30 -1
  580. package/components/Icons/File.js.map +1 -1
  581. package/components/Icons/Filter.d.ts +1 -1
  582. package/components/Icons/Filter.d.ts.map +1 -1
  583. package/components/Icons/Filter.js +25 -1
  584. package/components/Icons/Filter.js.map +1 -1
  585. package/components/Icons/FingerBleed.d.ts +1 -1
  586. package/components/Icons/FingerBleed.d.ts.map +1 -1
  587. package/components/Icons/FingerBleed.js +5 -1
  588. package/components/Icons/FingerBleed.js.map +1 -1
  589. package/components/Icons/FirstAidKit.d.ts +1 -1
  590. package/components/Icons/FirstAidKit.d.ts.map +1 -1
  591. package/components/Icons/FirstAidKit.js +5 -1
  592. package/components/Icons/FirstAidKit.js.map +1 -1
  593. package/components/Icons/FloppyDisk.d.ts +1 -1
  594. package/components/Icons/FloppyDisk.d.ts.map +1 -1
  595. package/components/Icons/FloppyDisk.js +17 -1
  596. package/components/Icons/FloppyDisk.js.map +1 -1
  597. package/components/Icons/Football.d.ts +1 -1
  598. package/components/Icons/Football.d.ts.map +1 -1
  599. package/components/Icons/Football.js +5 -1
  600. package/components/Icons/Football.js.map +1 -1
  601. package/components/Icons/Form.d.ts +1 -1
  602. package/components/Icons/Form.d.ts.map +1 -1
  603. package/components/Icons/Form.js +6 -1
  604. package/components/Icons/Form.js.map +1 -1
  605. package/components/Icons/Forward.d.ts +1 -1
  606. package/components/Icons/Forward.d.ts.map +1 -1
  607. package/components/Icons/Forward.js +6 -1
  608. package/components/Icons/Forward.js.map +1 -1
  609. package/components/Icons/Gallery.d.ts +1 -1
  610. package/components/Icons/Gallery.d.ts.map +1 -1
  611. package/components/Icons/Gallery.js +30 -1
  612. package/components/Icons/Gallery.js.map +1 -1
  613. package/components/Icons/Garden.d.ts +1 -1
  614. package/components/Icons/Garden.d.ts.map +1 -1
  615. package/components/Icons/Garden.js +5 -1
  616. package/components/Icons/Garden.js.map +1 -1
  617. package/components/Icons/GasCan.d.ts +1 -1
  618. package/components/Icons/GasCan.d.ts.map +1 -1
  619. package/components/Icons/GasCan.js +5 -1
  620. package/components/Icons/GasCan.js.map +1 -1
  621. package/components/Icons/GenderIdentity.d.ts +1 -1
  622. package/components/Icons/GenderIdentity.d.ts.map +1 -1
  623. package/components/Icons/GenderIdentity.js +17 -1
  624. package/components/Icons/GenderIdentity.js.map +1 -1
  625. package/components/Icons/Glasses.d.ts +1 -1
  626. package/components/Icons/Glasses.d.ts.map +1 -1
  627. package/components/Icons/Glasses.js +20 -1
  628. package/components/Icons/Glasses.js.map +1 -1
  629. package/components/Icons/Globe.d.ts +1 -1
  630. package/components/Icons/Globe.d.ts.map +1 -1
  631. package/components/Icons/Globe.js +6 -1
  632. package/components/Icons/Globe.js.map +1 -1
  633. package/components/Icons/Graph.d.ts +1 -1
  634. package/components/Icons/Graph.d.ts.map +1 -1
  635. package/components/Icons/Graph.js +21 -1
  636. package/components/Icons/Graph.js.map +1 -1
  637. package/components/Icons/Group.d.ts +1 -1
  638. package/components/Icons/Group.d.ts.map +1 -1
  639. package/components/Icons/Group.js +28 -1
  640. package/components/Icons/Group.js.map +1 -1
  641. package/components/Icons/GroupTwins.d.ts +1 -1
  642. package/components/Icons/GroupTwins.d.ts.map +1 -1
  643. package/components/Icons/GroupTwins.js +63 -1
  644. package/components/Icons/GroupTwins.js.map +1 -1
  645. package/components/Icons/HTMLFile.d.ts +1 -1
  646. package/components/Icons/HTMLFile.d.ts.map +1 -1
  647. package/components/Icons/HTMLFile.js +9 -1
  648. package/components/Icons/HTMLFile.js.map +1 -1
  649. package/components/Icons/HandWaving.d.ts +1 -1
  650. package/components/Icons/HandWaving.d.ts.map +1 -1
  651. package/components/Icons/HandWaving.js +5 -1
  652. package/components/Icons/HandWaving.js.map +1 -1
  653. package/components/Icons/HandWithDisease.d.ts +1 -1
  654. package/components/Icons/HandWithDisease.d.ts.map +1 -1
  655. package/components/Icons/HandWithDisease.js +5 -1
  656. package/components/Icons/HandWithDisease.js.map +1 -1
  657. package/components/Icons/HandsAndHeart.d.ts +1 -1
  658. package/components/Icons/HandsAndHeart.d.ts.map +1 -1
  659. package/components/Icons/HandsAndHeart.js +18 -1
  660. package/components/Icons/HandsAndHeart.js.map +1 -1
  661. package/components/Icons/HealthClinic.d.ts +1 -1
  662. package/components/Icons/HealthClinic.d.ts.map +1 -1
  663. package/components/Icons/HealthClinic.js +17 -1
  664. package/components/Icons/HealthClinic.js.map +1 -1
  665. package/components/Icons/HealthWarning.d.ts +1 -1
  666. package/components/Icons/HealthWarning.d.ts.map +1 -1
  667. package/components/Icons/HealthWarning.js +17 -1
  668. package/components/Icons/HealthWarning.js.map +1 -1
  669. package/components/Icons/HealthcarePerson.d.ts +1 -1
  670. package/components/Icons/HealthcarePerson.d.ts.map +1 -1
  671. package/components/Icons/HealthcarePerson.js +57 -1
  672. package/components/Icons/HealthcarePerson.js.map +1 -1
  673. package/components/Icons/HealthcarePersonell.d.ts +1 -1
  674. package/components/Icons/HealthcarePersonell.d.ts.map +1 -1
  675. package/components/Icons/HealthcarePersonell.js +75 -1
  676. package/components/Icons/HealthcarePersonell.js.map +1 -1
  677. package/components/Icons/HearingProtection.d.ts +1 -1
  678. package/components/Icons/HearingProtection.d.ts.map +1 -1
  679. package/components/Icons/HearingProtection.js +23 -1
  680. package/components/Icons/HearingProtection.js.map +1 -1
  681. package/components/Icons/Heart.d.ts +1 -1
  682. package/components/Icons/Heart.d.ts.map +1 -1
  683. package/components/Icons/Heart.js +6 -1
  684. package/components/Icons/Heart.js.map +1 -1
  685. package/components/Icons/HeartHands.d.ts +1 -1
  686. package/components/Icons/HeartHands.d.ts.map +1 -1
  687. package/components/Icons/HeartHands.js +64 -1
  688. package/components/Icons/HeartHands.js.map +1 -1
  689. package/components/Icons/HelpSign.d.ts +1 -1
  690. package/components/Icons/HelpSign.d.ts.map +1 -1
  691. package/components/Icons/HelpSign.js +6 -1
  692. package/components/Icons/HelpSign.js.map +1 -1
  693. package/components/Icons/HelpingHand.d.ts +1 -1
  694. package/components/Icons/HelpingHand.d.ts.map +1 -1
  695. package/components/Icons/HelpingHand.js +17 -1
  696. package/components/Icons/HelpingHand.js.map +1 -1
  697. package/components/Icons/Hemodialysis.d.ts +1 -1
  698. package/components/Icons/Hemodialysis.d.ts.map +1 -1
  699. package/components/Icons/Hemodialysis.js +17 -1
  700. package/components/Icons/Hemodialysis.js.map +1 -1
  701. package/components/Icons/Hiker.d.ts +1 -1
  702. package/components/Icons/Hiker.d.ts.map +1 -1
  703. package/components/Icons/Hiker.js +5 -1
  704. package/components/Icons/Hiker.js.map +1 -1
  705. package/components/Icons/Hipprosthesis.d.ts +1 -1
  706. package/components/Icons/Hipprosthesis.d.ts.map +1 -1
  707. package/components/Icons/Hipprosthesis.js +17 -1
  708. package/components/Icons/Hipprosthesis.js.map +1 -1
  709. package/components/Icons/History.d.ts +1 -1
  710. package/components/Icons/History.d.ts.map +1 -1
  711. package/components/Icons/History.js +6 -1
  712. package/components/Icons/History.js.map +1 -1
  713. package/components/Icons/HivAndAids.d.ts +1 -1
  714. package/components/Icons/HivAndAids.d.ts.map +1 -1
  715. package/components/Icons/HivAndAids.js +5 -1
  716. package/components/Icons/HivAndAids.js.map +1 -1
  717. package/components/Icons/Home.d.ts +1 -1
  718. package/components/Icons/Home.d.ts.map +1 -1
  719. package/components/Icons/Home.js +30 -1
  720. package/components/Icons/Home.js.map +1 -1
  721. package/components/Icons/Hormone.d.ts +1 -1
  722. package/components/Icons/Hormone.d.ts.map +1 -1
  723. package/components/Icons/Hormone.js +5 -1
  724. package/components/Icons/Hormone.js.map +1 -1
  725. package/components/Icons/Hospital.d.ts +1 -1
  726. package/components/Icons/Hospital.d.ts.map +1 -1
  727. package/components/Icons/Hospital.js +30 -1
  728. package/components/Icons/Hospital.js.map +1 -1
  729. package/components/Icons/Hourglass.d.ts +1 -1
  730. package/components/Icons/Hourglass.d.ts.map +1 -1
  731. package/components/Icons/Hourglass.js +30 -1
  732. package/components/Icons/Hourglass.js.map +1 -1
  733. package/components/Icons/IconNames.d.ts +3 -0
  734. package/components/Icons/IconNames.d.ts.map +1 -0
  735. package/components/Icons/IconNames.js +308 -0
  736. package/components/Icons/IconNames.js.map +1 -0
  737. package/components/Icons/ImgFile.d.ts +1 -1
  738. package/components/Icons/ImgFile.d.ts.map +1 -1
  739. package/components/Icons/ImgFile.js +17 -1
  740. package/components/Icons/ImgFile.js.map +1 -1
  741. package/components/Icons/Inbox.d.ts +1 -1
  742. package/components/Icons/Inbox.d.ts.map +1 -1
  743. package/components/Icons/Inbox.js +11 -1
  744. package/components/Icons/Inbox.js.map +1 -1
  745. package/components/Icons/InfoSignFill.d.ts +1 -1
  746. package/components/Icons/InfoSignFill.d.ts.map +1 -1
  747. package/components/Icons/InfoSignFill.js +6 -1
  748. package/components/Icons/InfoSignFill.js.map +1 -1
  749. package/components/Icons/InfoSignStroke.d.ts +1 -1
  750. package/components/Icons/InfoSignStroke.d.ts.map +1 -1
  751. package/components/Icons/InfoSignStroke.js +6 -1
  752. package/components/Icons/InfoSignStroke.js.map +1 -1
  753. package/components/Icons/Instagram.d.ts +1 -1
  754. package/components/Icons/Instagram.d.ts.map +1 -1
  755. package/components/Icons/Instagram.js +5 -1
  756. package/components/Icons/Instagram.js.map +1 -1
  757. package/components/Icons/Intravenous.d.ts +1 -1
  758. package/components/Icons/Intravenous.d.ts.map +1 -1
  759. package/components/Icons/Intravenous.js +17 -1
  760. package/components/Icons/Intravenous.js.map +1 -1
  761. package/components/Icons/JointPain.d.ts +1 -1
  762. package/components/Icons/JointPain.d.ts.map +1 -1
  763. package/components/Icons/JointPain.js +5 -1
  764. package/components/Icons/JointPain.js.map +1 -1
  765. package/components/Icons/Journal.d.ts +1 -1
  766. package/components/Icons/Journal.d.ts.map +1 -1
  767. package/components/Icons/Journal.js +6 -1
  768. package/components/Icons/Journal.js.map +1 -1
  769. package/components/Icons/JpgFile.d.ts +1 -1
  770. package/components/Icons/JpgFile.d.ts.map +1 -1
  771. package/components/Icons/JpgFile.js +17 -1
  772. package/components/Icons/JpgFile.js.map +1 -1
  773. package/components/Icons/Kidney.d.ts +1 -1
  774. package/components/Icons/Kidney.d.ts.map +1 -1
  775. package/components/Icons/Kidney.js +5 -1
  776. package/components/Icons/Kidney.js.map +1 -1
  777. package/components/Icons/KitchenScale.d.ts +1 -1
  778. package/components/Icons/KitchenScale.d.ts.map +1 -1
  779. package/components/Icons/KitchenScale.js +17 -1
  780. package/components/Icons/KitchenScale.js.map +1 -1
  781. package/components/Icons/Kjernejournal.d.ts +1 -1
  782. package/components/Icons/Kjernejournal.d.ts.map +1 -1
  783. package/components/Icons/Kjernejournal.js +5 -1
  784. package/components/Icons/Kjernejournal.js.map +1 -1
  785. package/components/Icons/Laboratory.d.ts +1 -1
  786. package/components/Icons/Laboratory.d.ts.map +1 -1
  787. package/components/Icons/Laboratory.js +17 -1
  788. package/components/Icons/Laboratory.js.map +1 -1
  789. package/components/Icons/LaptopBlog.d.ts +1 -1
  790. package/components/Icons/LaptopBlog.d.ts.map +1 -1
  791. package/components/Icons/LaptopBlog.js +5 -1
  792. package/components/Icons/LaptopBlog.js.map +1 -1
  793. package/components/Icons/LawBook.d.ts +1 -1
  794. package/components/Icons/LawBook.d.ts.map +1 -1
  795. package/components/Icons/LawBook.js +5 -1
  796. package/components/Icons/LawBook.js.map +1 -1
  797. package/components/Icons/LegalDocument.d.ts +1 -1
  798. package/components/Icons/LegalDocument.d.ts.map +1 -1
  799. package/components/Icons/LegalDocument.js +27 -1
  800. package/components/Icons/LegalDocument.js.map +1 -1
  801. package/components/Icons/LightBulb.d.ts +1 -1
  802. package/components/Icons/LightBulb.d.ts.map +1 -1
  803. package/components/Icons/LightBulb.js +5 -1
  804. package/components/Icons/LightBulb.js.map +1 -1
  805. package/components/Icons/List.d.ts +1 -1
  806. package/components/Icons/List.d.ts.map +1 -1
  807. package/components/Icons/List.js +30 -1
  808. package/components/Icons/List.js.map +1 -1
  809. package/components/Icons/Location.d.ts +1 -1
  810. package/components/Icons/Location.d.ts.map +1 -1
  811. package/components/Icons/Location.js +6 -1
  812. package/components/Icons/Location.js.map +1 -1
  813. package/components/Icons/Lock.d.ts +1 -1
  814. package/components/Icons/Lock.d.ts.map +1 -1
  815. package/components/Icons/Lock.js +18 -1
  816. package/components/Icons/Lock.js.map +1 -1
  817. package/components/Icons/Login.d.ts +1 -1
  818. package/components/Icons/Login.d.ts.map +1 -1
  819. package/components/Icons/Login.js +37 -1
  820. package/components/Icons/Login.js.map +1 -1
  821. package/components/Icons/Logout.d.ts +1 -1
  822. package/components/Icons/Logout.d.ts.map +1 -1
  823. package/components/Icons/Logout.js +37 -1
  824. package/components/Icons/Logout.js.map +1 -1
  825. package/components/Icons/Lungs.d.ts +1 -1
  826. package/components/Icons/Lungs.d.ts.map +1 -1
  827. package/components/Icons/Lungs.js +5 -1
  828. package/components/Icons/Lungs.js.map +1 -1
  829. package/components/Icons/Makeup.d.ts +1 -1
  830. package/components/Icons/Makeup.d.ts.map +1 -1
  831. package/components/Icons/Makeup.js +5 -1
  832. package/components/Icons/Makeup.js.map +1 -1
  833. package/components/Icons/MaleDoctor.d.ts +1 -1
  834. package/components/Icons/MaleDoctor.d.ts.map +1 -1
  835. package/components/Icons/MaleDoctor.js +5 -1
  836. package/components/Icons/MaleDoctor.js.map +1 -1
  837. package/components/Icons/MaleDoctorAndPerson.d.ts +1 -1
  838. package/components/Icons/MaleDoctorAndPerson.d.ts.map +1 -1
  839. package/components/Icons/MaleDoctorAndPerson.js +5 -1
  840. package/components/Icons/MaleDoctorAndPerson.js.map +1 -1
  841. package/components/Icons/MaleGenitalia.d.ts +1 -1
  842. package/components/Icons/MaleGenitalia.d.ts.map +1 -1
  843. package/components/Icons/MaleGenitalia.js +5 -1
  844. package/components/Icons/MaleGenitalia.js.map +1 -1
  845. package/components/Icons/Medicine.d.ts +1 -1
  846. package/components/Icons/Medicine.d.ts.map +1 -1
  847. package/components/Icons/Medicine.js +30 -1
  848. package/components/Icons/Medicine.js.map +1 -1
  849. package/components/Icons/MedicineWarning.d.ts +1 -1
  850. package/components/Icons/MedicineWarning.d.ts.map +1 -1
  851. package/components/Icons/MedicineWarning.js +17 -1
  852. package/components/Icons/MedicineWarning.js.map +1 -1
  853. package/components/Icons/MentalHealthAdult.d.ts +1 -1
  854. package/components/Icons/MentalHealthAdult.d.ts.map +1 -1
  855. package/components/Icons/MentalHealthAdult.js +5 -1
  856. package/components/Icons/MentalHealthAdult.js.map +1 -1
  857. package/components/Icons/MentalHealthChild.d.ts +1 -1
  858. package/components/Icons/MentalHealthChild.d.ts.map +1 -1
  859. package/components/Icons/MentalHealthChild.js +5 -1
  860. package/components/Icons/MentalHealthChild.js.map +1 -1
  861. package/components/Icons/Menu.d.ts +1 -1
  862. package/components/Icons/Menu.d.ts.map +1 -1
  863. package/components/Icons/Menu.js +6 -1
  864. package/components/Icons/Menu.js.map +1 -1
  865. package/components/Icons/Microscope.d.ts +1 -1
  866. package/components/Icons/Microscope.d.ts.map +1 -1
  867. package/components/Icons/Microscope.js +17 -1
  868. package/components/Icons/Microscope.js.map +1 -1
  869. package/components/Icons/Minus.d.ts +1 -1
  870. package/components/Icons/Minus.d.ts.map +1 -1
  871. package/components/Icons/Minus.js +6 -1
  872. package/components/Icons/Minus.js.map +1 -1
  873. package/components/Icons/Mirror.d.ts +1 -1
  874. package/components/Icons/Mirror.d.ts.map +1 -1
  875. package/components/Icons/Mirror.js +5 -1
  876. package/components/Icons/Mirror.js.map +1 -1
  877. package/components/Icons/MobilePhone.d.ts +1 -1
  878. package/components/Icons/MobilePhone.d.ts.map +1 -1
  879. package/components/Icons/MobilePhone.js +6 -1
  880. package/components/Icons/MobilePhone.js.map +1 -1
  881. package/components/Icons/MotherHoldingBaby.d.ts +1 -1
  882. package/components/Icons/MotherHoldingBaby.d.ts.map +1 -1
  883. package/components/Icons/MotherHoldingBaby.js +5 -1
  884. package/components/Icons/MotherHoldingBaby.js.map +1 -1
  885. package/components/Icons/MuscleBack.d.ts +1 -1
  886. package/components/Icons/MuscleBack.d.ts.map +1 -1
  887. package/components/Icons/MuscleBack.js +5 -1
  888. package/components/Icons/MuscleBack.js.map +1 -1
  889. package/components/Icons/MuscleLeg.d.ts +1 -1
  890. package/components/Icons/MuscleLeg.d.ts.map +1 -1
  891. package/components/Icons/MuscleLeg.js +5 -1
  892. package/components/Icons/MuscleLeg.js.map +1 -1
  893. package/components/Icons/Mushroom.d.ts +1 -1
  894. package/components/Icons/Mushroom.d.ts.map +1 -1
  895. package/components/Icons/Mushroom.js +5 -1
  896. package/components/Icons/Mushroom.js.map +1 -1
  897. package/components/Icons/Music.d.ts +1 -1
  898. package/components/Icons/Music.d.ts.map +1 -1
  899. package/components/Icons/Music.js +17 -1
  900. package/components/Icons/Music.js.map +1 -1
  901. package/components/Icons/MusselsAndSalt.d.ts +1 -1
  902. package/components/Icons/MusselsAndSalt.d.ts.map +1 -1
  903. package/components/Icons/MusselsAndSalt.js +5 -1
  904. package/components/Icons/MusselsAndSalt.js.map +1 -1
  905. package/components/Icons/NoAccess.d.ts +1 -1
  906. package/components/Icons/NoAccess.d.ts.map +1 -1
  907. package/components/Icons/NoAccess.js +39 -1
  908. package/components/Icons/NoAccess.js.map +1 -1
  909. package/components/Icons/NoEye.d.ts +1 -1
  910. package/components/Icons/NoEye.d.ts.map +1 -1
  911. package/components/Icons/NoEye.js +44 -1
  912. package/components/Icons/NoEye.js.map +1 -1
  913. package/components/Icons/NoFilter.d.ts +1 -1
  914. package/components/Icons/NoFilter.d.ts.map +1 -1
  915. package/components/Icons/NoFilter.js +6 -1
  916. package/components/Icons/NoFilter.js.map +1 -1
  917. package/components/Icons/Notepad.d.ts +1 -1
  918. package/components/Icons/Notepad.d.ts.map +1 -1
  919. package/components/Icons/Notepad.js +5 -1
  920. package/components/Icons/Notepad.js.map +1 -1
  921. package/components/Icons/Osteotomy.d.ts +1 -1
  922. package/components/Icons/Osteotomy.d.ts.map +1 -1
  923. package/components/Icons/Osteotomy.js +17 -1
  924. package/components/Icons/Osteotomy.js.map +1 -1
  925. package/components/Icons/PaintRoller.d.ts +1 -1
  926. package/components/Icons/PaintRoller.d.ts.map +1 -1
  927. package/components/Icons/PaintRoller.js +5 -1
  928. package/components/Icons/PaintRoller.js.map +1 -1
  929. package/components/Icons/PaperPlane.d.ts +1 -1
  930. package/components/Icons/PaperPlane.d.ts.map +1 -1
  931. package/components/Icons/PaperPlane.js +6 -1
  932. package/components/Icons/PaperPlane.js.map +1 -1
  933. package/components/Icons/PatientAndPerson.d.ts +1 -1
  934. package/components/Icons/PatientAndPerson.d.ts.map +1 -1
  935. package/components/Icons/PatientAndPerson.js +5 -1
  936. package/components/Icons/PatientAndPerson.js.map +1 -1
  937. package/components/Icons/Pause.d.ts +1 -1
  938. package/components/Icons/Pause.d.ts.map +1 -1
  939. package/components/Icons/Pause.js +6 -1
  940. package/components/Icons/Pause.js.map +1 -1
  941. package/components/Icons/PdfFile.d.ts +1 -1
  942. package/components/Icons/PdfFile.d.ts.map +1 -1
  943. package/components/Icons/PdfFile.js +17 -1
  944. package/components/Icons/PdfFile.js.map +1 -1
  945. package/components/Icons/Pencil.d.ts +1 -1
  946. package/components/Icons/Pencil.d.ts.map +1 -1
  947. package/components/Icons/Pencil.js +6 -1
  948. package/components/Icons/Pencil.js.map +1 -1
  949. package/components/Icons/PeopleTalking.d.ts +1 -1
  950. package/components/Icons/PeopleTalking.d.ts.map +1 -1
  951. package/components/Icons/PeopleTalking.js +17 -1
  952. package/components/Icons/PeopleTalking.js.map +1 -1
  953. package/components/Icons/Peritonealdialysis.d.ts +1 -1
  954. package/components/Icons/Peritonealdialysis.d.ts.map +1 -1
  955. package/components/Icons/Peritonealdialysis.js +17 -1
  956. package/components/Icons/Peritonealdialysis.js.map +1 -1
  957. package/components/Icons/Person.d.ts +1 -1
  958. package/components/Icons/Person.d.ts.map +1 -1
  959. package/components/Icons/Person.js +5 -1
  960. package/components/Icons/Person.js.map +1 -1
  961. package/components/Icons/PersonAndPatient.d.ts +1 -1
  962. package/components/Icons/PersonAndPatient.d.ts.map +1 -1
  963. package/components/Icons/PersonAndPatient.js +5 -1
  964. package/components/Icons/PersonAndPatient.js.map +1 -1
  965. package/components/Icons/PersonCancel.d.ts +1 -1
  966. package/components/Icons/PersonCancel.d.ts.map +1 -1
  967. package/components/Icons/PersonCancel.js +57 -1
  968. package/components/Icons/PersonCancel.js.map +1 -1
  969. package/components/Icons/PersonInXRayMachine.d.ts +1 -1
  970. package/components/Icons/PersonInXRayMachine.d.ts.map +1 -1
  971. package/components/Icons/PersonInXRayMachine.js +17 -1
  972. package/components/Icons/PersonInXRayMachine.js.map +1 -1
  973. package/components/Icons/PersonOverweight.d.ts +1 -1
  974. package/components/Icons/PersonOverweight.d.ts.map +1 -1
  975. package/components/Icons/PersonOverweight.js +5 -1
  976. package/components/Icons/PersonOverweight.js.map +1 -1
  977. package/components/Icons/PersonRelaxing.d.ts +1 -1
  978. package/components/Icons/PersonRelaxing.d.ts.map +1 -1
  979. package/components/Icons/PersonRelaxing.js +5 -1
  980. package/components/Icons/PersonRelaxing.js.map +1 -1
  981. package/components/Icons/PersonWithBrain.d.ts +1 -1
  982. package/components/Icons/PersonWithBrain.d.ts.map +1 -1
  983. package/components/Icons/PersonWithBrain.js +5 -1
  984. package/components/Icons/PersonWithBrain.js.map +1 -1
  985. package/components/Icons/PersonWithBrokenArm.d.ts +1 -1
  986. package/components/Icons/PersonWithBrokenArm.d.ts.map +1 -1
  987. package/components/Icons/PersonWithBrokenArm.js +5 -1
  988. package/components/Icons/PersonWithBrokenArm.js.map +1 -1
  989. package/components/Icons/PersonWithCrutches.d.ts +1 -1
  990. package/components/Icons/PersonWithCrutches.d.ts.map +1 -1
  991. package/components/Icons/PersonWithCrutches.js +5 -1
  992. package/components/Icons/PersonWithCrutches.js.map +1 -1
  993. package/components/Icons/PersonWithJaw.d.ts +1 -1
  994. package/components/Icons/PersonWithJaw.d.ts.map +1 -1
  995. package/components/Icons/PersonWithJaw.js +5 -1
  996. package/components/Icons/PersonWithJaw.js.map +1 -1
  997. package/components/Icons/PersonWithMagnifyingGlass.d.ts +1 -1
  998. package/components/Icons/PersonWithMagnifyingGlass.d.ts.map +1 -1
  999. package/components/Icons/PersonWithMagnifyingGlass.js +5 -1
  1000. package/components/Icons/PersonWithMagnifyingGlass.js.map +1 -1
  1001. package/components/Icons/PersonWithSenses.d.ts +1 -1
  1002. package/components/Icons/PersonWithSenses.d.ts.map +1 -1
  1003. package/components/Icons/PersonWithSenses.js +5 -1
  1004. package/components/Icons/PersonWithSenses.js.map +1 -1
  1005. package/components/Icons/PersonWorking.d.ts +1 -1
  1006. package/components/Icons/PersonWorking.d.ts.map +1 -1
  1007. package/components/Icons/PersonWorking.js +5 -1
  1008. package/components/Icons/PersonWorking.js.map +1 -1
  1009. package/components/Icons/PersonalPlan.d.ts +1 -1
  1010. package/components/Icons/PersonalPlan.d.ts.map +1 -1
  1011. package/components/Icons/PersonalPlan.js +33 -1
  1012. package/components/Icons/PersonalPlan.js.map +1 -1
  1013. package/components/Icons/PizzaSlice.d.ts +1 -1
  1014. package/components/Icons/PizzaSlice.d.ts.map +1 -1
  1015. package/components/Icons/PizzaSlice.js +5 -1
  1016. package/components/Icons/PizzaSlice.js.map +1 -1
  1017. package/components/Icons/Plane.d.ts +1 -1
  1018. package/components/Icons/Plane.d.ts.map +1 -1
  1019. package/components/Icons/Plane.js +5 -1
  1020. package/components/Icons/Plane.js.map +1 -1
  1021. package/components/Icons/Plant.d.ts +1 -1
  1022. package/components/Icons/Plant.d.ts.map +1 -1
  1023. package/components/Icons/Plant.js +5 -1
  1024. package/components/Icons/Plant.js.map +1 -1
  1025. package/components/Icons/Play.d.ts +1 -1
  1026. package/components/Icons/Play.d.ts.map +1 -1
  1027. package/components/Icons/Play.js +6 -1
  1028. package/components/Icons/Play.js.map +1 -1
  1029. package/components/Icons/PlusLarge.d.ts +1 -1
  1030. package/components/Icons/PlusLarge.d.ts.map +1 -1
  1031. package/components/Icons/PlusLarge.js +6 -1
  1032. package/components/Icons/PlusLarge.js.map +1 -1
  1033. package/components/Icons/PlusSmall.d.ts +1 -1
  1034. package/components/Icons/PlusSmall.d.ts.map +1 -1
  1035. package/components/Icons/PlusSmall.js +6 -1
  1036. package/components/Icons/PlusSmall.js.map +1 -1
  1037. package/components/Icons/PngFile.d.ts +1 -1
  1038. package/components/Icons/PngFile.d.ts.map +1 -1
  1039. package/components/Icons/PngFile.js +17 -1
  1040. package/components/Icons/PngFile.js.map +1 -1
  1041. package/components/Icons/Podcast.d.ts +1 -1
  1042. package/components/Icons/Podcast.d.ts.map +1 -1
  1043. package/components/Icons/Podcast.js +17 -1
  1044. package/components/Icons/Podcast.js.map +1 -1
  1045. package/components/Icons/PoisonInformation.d.ts +1 -1
  1046. package/components/Icons/PoisonInformation.d.ts.map +1 -1
  1047. package/components/Icons/PoisonInformation.js +5 -1
  1048. package/components/Icons/PoisonInformation.js.map +1 -1
  1049. package/components/Icons/Pregnant.d.ts +1 -1
  1050. package/components/Icons/Pregnant.d.ts.map +1 -1
  1051. package/components/Icons/Pregnant.js +5 -1
  1052. package/components/Icons/Pregnant.js.map +1 -1
  1053. package/components/Icons/Printer.d.ts +1 -1
  1054. package/components/Icons/Printer.d.ts.map +1 -1
  1055. package/components/Icons/Printer.js +30 -1
  1056. package/components/Icons/Printer.js.map +1 -1
  1057. package/components/Icons/Psychosis.d.ts +1 -1
  1058. package/components/Icons/Psychosis.d.ts.map +1 -1
  1059. package/components/Icons/Psychosis.js +5 -1
  1060. package/components/Icons/Psychosis.js.map +1 -1
  1061. package/components/Icons/Publication.d.ts +1 -1
  1062. package/components/Icons/Publication.d.ts.map +1 -1
  1063. package/components/Icons/Publication.js +17 -1
  1064. package/components/Icons/Publication.js.map +1 -1
  1065. package/components/Icons/Puzzle.d.ts +1 -1
  1066. package/components/Icons/Puzzle.d.ts.map +1 -1
  1067. package/components/Icons/Puzzle.js +5 -1
  1068. package/components/Icons/Puzzle.js.map +1 -1
  1069. package/components/Icons/QrCode.d.ts +1 -1
  1070. package/components/Icons/QrCode.d.ts.map +1 -1
  1071. package/components/Icons/QrCode.js +30 -1
  1072. package/components/Icons/QrCode.js.map +1 -1
  1073. package/components/Icons/Quarrel.d.ts +1 -1
  1074. package/components/Icons/Quarrel.d.ts.map +1 -1
  1075. package/components/Icons/Quarrel.js +17 -1
  1076. package/components/Icons/Quarrel.js.map +1 -1
  1077. package/components/Icons/RadioTherapy.d.ts +1 -1
  1078. package/components/Icons/RadioTherapy.d.ts.map +1 -1
  1079. package/components/Icons/RadioTherapy.js +17 -1
  1080. package/components/Icons/RadioTherapy.js.map +1 -1
  1081. package/components/Icons/RadioactiveTreatment.d.ts +1 -1
  1082. package/components/Icons/RadioactiveTreatment.d.ts.map +1 -1
  1083. package/components/Icons/RadioactiveTreatment.js +17 -1
  1084. package/components/Icons/RadioactiveTreatment.js.map +1 -1
  1085. package/components/Icons/Radioiodine.d.ts +1 -1
  1086. package/components/Icons/Radioiodine.d.ts.map +1 -1
  1087. package/components/Icons/Radioiodine.js +17 -1
  1088. package/components/Icons/Radioiodine.js.map +1 -1
  1089. package/components/Icons/Receipt.d.ts +1 -1
  1090. package/components/Icons/Receipt.d.ts.map +1 -1
  1091. package/components/Icons/Receipt.js +5 -1
  1092. package/components/Icons/Receipt.js.map +1 -1
  1093. package/components/Icons/Receptionist.d.ts +1 -1
  1094. package/components/Icons/Receptionist.d.ts.map +1 -1
  1095. package/components/Icons/Receptionist.js +6 -1
  1096. package/components/Icons/Receptionist.js.map +1 -1
  1097. package/components/Icons/Recovery.d.ts +1 -1
  1098. package/components/Icons/Recovery.d.ts.map +1 -1
  1099. package/components/Icons/Recovery.js +17 -1
  1100. package/components/Icons/Recovery.js.map +1 -1
  1101. package/components/Icons/Referral.d.ts +1 -1
  1102. package/components/Icons/Referral.d.ts.map +1 -1
  1103. package/components/Icons/Referral.js +6 -1
  1104. package/components/Icons/Referral.js.map +1 -1
  1105. package/components/Icons/Refresh.d.ts +1 -1
  1106. package/components/Icons/Refresh.d.ts.map +1 -1
  1107. package/components/Icons/Refresh.js +6 -1
  1108. package/components/Icons/Refresh.js.map +1 -1
  1109. package/components/Icons/Refund.d.ts +1 -1
  1110. package/components/Icons/Refund.d.ts.map +1 -1
  1111. package/components/Icons/Refund.js +5 -1
  1112. package/components/Icons/Refund.js.map +1 -1
  1113. package/components/Icons/Reply.d.ts +1 -1
  1114. package/components/Icons/Reply.d.ts.map +1 -1
  1115. package/components/Icons/Reply.js +6 -1
  1116. package/components/Icons/Reply.js.map +1 -1
  1117. package/components/Icons/Rocket.d.ts +1 -1
  1118. package/components/Icons/Rocket.d.ts.map +1 -1
  1119. package/components/Icons/Rocket.js +5 -1
  1120. package/components/Icons/Rocket.js.map +1 -1
  1121. package/components/Icons/RtfFile.d.ts +1 -1
  1122. package/components/Icons/RtfFile.d.ts.map +1 -1
  1123. package/components/Icons/RtfFile.js +17 -1
  1124. package/components/Icons/RtfFile.js.map +1 -1
  1125. package/components/Icons/STDs.d.ts +1 -1
  1126. package/components/Icons/STDs.d.ts.map +1 -1
  1127. package/components/Icons/STDs.js +17 -1
  1128. package/components/Icons/STDs.js.map +1 -1
  1129. package/components/Icons/Save.d.ts +1 -1
  1130. package/components/Icons/Save.d.ts.map +1 -1
  1131. package/components/Icons/Save.js +6 -1
  1132. package/components/Icons/Save.js.map +1 -1
  1133. package/components/Icons/Scale.d.ts +1 -1
  1134. package/components/Icons/Scale.d.ts.map +1 -1
  1135. package/components/Icons/Scale.js +5 -1
  1136. package/components/Icons/Scale.js.map +1 -1
  1137. package/components/Icons/ScreenReader.d.ts +1 -1
  1138. package/components/Icons/ScreenReader.d.ts.map +1 -1
  1139. package/components/Icons/ScreenReader.js +37 -1
  1140. package/components/Icons/ScreenReader.js.map +1 -1
  1141. package/components/Icons/Search.d.ts +1 -1
  1142. package/components/Icons/Search.d.ts.map +1 -1
  1143. package/components/Icons/Search.js +6 -1
  1144. package/components/Icons/Search.js.map +1 -1
  1145. package/components/Icons/SectionSign.d.ts +1 -1
  1146. package/components/Icons/SectionSign.d.ts.map +1 -1
  1147. package/components/Icons/SectionSign.js +30 -1
  1148. package/components/Icons/SectionSign.js.map +1 -1
  1149. package/components/Icons/Settings.d.ts +1 -1
  1150. package/components/Icons/Settings.d.ts.map +1 -1
  1151. package/components/Icons/Settings.js +30 -1
  1152. package/components/Icons/Settings.js.map +1 -1
  1153. package/components/Icons/Sexualorientation.d.ts +1 -1
  1154. package/components/Icons/Sexualorientation.d.ts.map +1 -1
  1155. package/components/Icons/Sexualorientation.js +17 -1
  1156. package/components/Icons/Sexualorientation.js.map +1 -1
  1157. package/components/Icons/ShakingHand.d.ts +1 -1
  1158. package/components/Icons/ShakingHand.d.ts.map +1 -1
  1159. package/components/Icons/ShakingHand.js +11 -1
  1160. package/components/Icons/ShakingHand.js.map +1 -1
  1161. package/components/Icons/Share.d.ts +1 -1
  1162. package/components/Icons/Share.d.ts.map +1 -1
  1163. package/components/Icons/Share.js +6 -1
  1164. package/components/Icons/Share.js.map +1 -1
  1165. package/components/Icons/Shield.d.ts +1 -1
  1166. package/components/Icons/Shield.d.ts.map +1 -1
  1167. package/components/Icons/Shield.js +17 -1
  1168. package/components/Icons/Shield.js.map +1 -1
  1169. package/components/Icons/ShuntOperation.d.ts +1 -1
  1170. package/components/Icons/ShuntOperation.d.ts.map +1 -1
  1171. package/components/Icons/ShuntOperation.js +17 -1
  1172. package/components/Icons/ShuntOperation.js.map +1 -1
  1173. package/components/Icons/Skeleton.d.ts +1 -1
  1174. package/components/Icons/Skeleton.d.ts.map +1 -1
  1175. package/components/Icons/Skeleton.js +5 -1
  1176. package/components/Icons/Skeleton.js.map +1 -1
  1177. package/components/Icons/Skin.d.ts +1 -1
  1178. package/components/Icons/Skin.d.ts.map +1 -1
  1179. package/components/Icons/Skin.js +5 -1
  1180. package/components/Icons/Skin.js.map +1 -1
  1181. package/components/Icons/Snake.d.ts +1 -1
  1182. package/components/Icons/Snake.d.ts.map +1 -1
  1183. package/components/Icons/Snake.js +5 -1
  1184. package/components/Icons/Snake.js.map +1 -1
  1185. package/components/Icons/Snapchat.d.ts +1 -1
  1186. package/components/Icons/Snapchat.d.ts.map +1 -1
  1187. package/components/Icons/Snapchat.js +5 -1
  1188. package/components/Icons/Snapchat.js.map +1 -1
  1189. package/components/Icons/SortDown.d.ts +1 -1
  1190. package/components/Icons/SortDown.d.ts.map +1 -1
  1191. package/components/Icons/SortDown.js +9 -1
  1192. package/components/Icons/SortDown.js.map +1 -1
  1193. package/components/Icons/SortUp.d.ts +1 -1
  1194. package/components/Icons/SortUp.d.ts.map +1 -1
  1195. package/components/Icons/SortUp.js +9 -1
  1196. package/components/Icons/SortUp.js.map +1 -1
  1197. package/components/Icons/SpeechBubble.d.ts +1 -1
  1198. package/components/Icons/SpeechBubble.d.ts.map +1 -1
  1199. package/components/Icons/SpeechBubble.js +30 -1
  1200. package/components/Icons/SpeechBubble.js.map +1 -1
  1201. package/components/Icons/Spray.d.ts +1 -1
  1202. package/components/Icons/Spray.d.ts.map +1 -1
  1203. package/components/Icons/Spray.js +5 -1
  1204. package/components/Icons/Spray.js.map +1 -1
  1205. package/components/Icons/Stopwatch.d.ts +1 -1
  1206. package/components/Icons/Stopwatch.d.ts.map +1 -1
  1207. package/components/Icons/Stopwatch.js +30 -1
  1208. package/components/Icons/Stopwatch.js.map +1 -1
  1209. package/components/Icons/Sun.d.ts +1 -1
  1210. package/components/Icons/Sun.d.ts.map +1 -1
  1211. package/components/Icons/Sun.js +23 -1
  1212. package/components/Icons/Sun.js.map +1 -1
  1213. package/components/Icons/SupportingPerson.d.ts +1 -1
  1214. package/components/Icons/SupportingPerson.d.ts.map +1 -1
  1215. package/components/Icons/SupportingPerson.js +41 -1
  1216. package/components/Icons/SupportingPerson.js.map +1 -1
  1217. package/components/Icons/Surgery.d.ts +1 -1
  1218. package/components/Icons/Surgery.d.ts.map +1 -1
  1219. package/components/Icons/Surgery.js +17 -1
  1220. package/components/Icons/Surgery.js.map +1 -1
  1221. package/components/Icons/Syringe.d.ts +1 -1
  1222. package/components/Icons/Syringe.d.ts.map +1 -1
  1223. package/components/Icons/Syringe.js +22 -1
  1224. package/components/Icons/Syringe.js.map +1 -1
  1225. package/components/Icons/Taxi.d.ts +1 -1
  1226. package/components/Icons/Taxi.d.ts.map +1 -1
  1227. package/components/Icons/Taxi.js +5 -1
  1228. package/components/Icons/Taxi.js.map +1 -1
  1229. package/components/Icons/TeddyBear.d.ts +1 -1
  1230. package/components/Icons/TeddyBear.d.ts.map +1 -1
  1231. package/components/Icons/TeddyBear.js +5 -1
  1232. package/components/Icons/TeddyBear.js.map +1 -1
  1233. package/components/Icons/Teenagers.d.ts +1 -1
  1234. package/components/Icons/Teenagers.d.ts.map +1 -1
  1235. package/components/Icons/Teenagers.js +17 -1
  1236. package/components/Icons/Teenagers.js.map +1 -1
  1237. package/components/Icons/ThinkingAboutBaby.d.ts +1 -1
  1238. package/components/Icons/ThinkingAboutBaby.d.ts.map +1 -1
  1239. package/components/Icons/ThinkingAboutBaby.js +5 -1
  1240. package/components/Icons/ThinkingAboutBaby.js.map +1 -1
  1241. package/components/Icons/Ticket.d.ts +1 -1
  1242. package/components/Icons/Ticket.d.ts.map +1 -1
  1243. package/components/Icons/Ticket.js +5 -1
  1244. package/components/Icons/Ticket.js.map +1 -1
  1245. package/components/Icons/TimePassing.d.ts +1 -1
  1246. package/components/Icons/TimePassing.d.ts.map +1 -1
  1247. package/components/Icons/TimePassing.js +30 -1
  1248. package/components/Icons/TimePassing.js.map +1 -1
  1249. package/components/Icons/Tombstone.d.ts +1 -1
  1250. package/components/Icons/Tombstone.d.ts.map +1 -1
  1251. package/components/Icons/Tombstone.js +21 -1
  1252. package/components/Icons/Tombstone.js.map +1 -1
  1253. package/components/Icons/Toolbox.d.ts +1 -1
  1254. package/components/Icons/Toolbox.d.ts.map +1 -1
  1255. package/components/Icons/Toolbox.js +42 -1
  1256. package/components/Icons/Toolbox.js.map +1 -1
  1257. package/components/Icons/Tooth.d.ts +1 -1
  1258. package/components/Icons/Tooth.d.ts.map +1 -1
  1259. package/components/Icons/Tooth.js +5 -1
  1260. package/components/Icons/Tooth.js.map +1 -1
  1261. package/components/Icons/TotalKneeProsthesis.d.ts +1 -1
  1262. package/components/Icons/TotalKneeProsthesis.d.ts.map +1 -1
  1263. package/components/Icons/TotalKneeProsthesis.js +17 -1
  1264. package/components/Icons/TotalKneeProsthesis.js.map +1 -1
  1265. package/components/Icons/Train.d.ts +1 -1
  1266. package/components/Icons/Train.d.ts.map +1 -1
  1267. package/components/Icons/Train.js +5 -1
  1268. package/components/Icons/Train.js.map +1 -1
  1269. package/components/Icons/Transplantation.d.ts +1 -1
  1270. package/components/Icons/Transplantation.d.ts.map +1 -1
  1271. package/components/Icons/Transplantation.js +17 -1
  1272. package/components/Icons/Transplantation.js.map +1 -1
  1273. package/components/Icons/TrashCan.d.ts +1 -1
  1274. package/components/Icons/TrashCan.d.ts.map +1 -1
  1275. package/components/Icons/TrashCan.js +30 -1
  1276. package/components/Icons/TrashCan.js.map +1 -1
  1277. package/components/Icons/TravelRoute.d.ts +1 -1
  1278. package/components/Icons/TravelRoute.d.ts.map +1 -1
  1279. package/components/Icons/TravelRoute.js +50 -1
  1280. package/components/Icons/TravelRoute.js.map +1 -1
  1281. package/components/Icons/TriangleX.d.ts +1 -1
  1282. package/components/Icons/TriangleX.d.ts.map +1 -1
  1283. package/components/Icons/TriangleX.js +37 -1
  1284. package/components/Icons/TriangleX.js.map +1 -1
  1285. package/components/Icons/Twitter.d.ts +1 -1
  1286. package/components/Icons/Twitter.d.ts.map +1 -1
  1287. package/components/Icons/Twitter.js +5 -1
  1288. package/components/Icons/Twitter.js.map +1 -1
  1289. package/components/Icons/Undo.d.ts +1 -1
  1290. package/components/Icons/Undo.d.ts.map +1 -1
  1291. package/components/Icons/Undo.js +42 -1
  1292. package/components/Icons/Undo.js.map +1 -1
  1293. package/components/Icons/UniProsthesis.d.ts +1 -1
  1294. package/components/Icons/UniProsthesis.d.ts.map +1 -1
  1295. package/components/Icons/UniProsthesis.js +17 -1
  1296. package/components/Icons/UniProsthesis.js.map +1 -1
  1297. package/components/Icons/Upload.d.ts +1 -1
  1298. package/components/Icons/Upload.d.ts.map +1 -1
  1299. package/components/Icons/Upload.js +6 -1
  1300. package/components/Icons/Upload.js.map +1 -1
  1301. package/components/Icons/UserOrganization.d.ts +1 -1
  1302. package/components/Icons/UserOrganization.d.ts.map +1 -1
  1303. package/components/Icons/UserOrganization.js +5 -1
  1304. package/components/Icons/UserOrganization.js.map +1 -1
  1305. package/components/Icons/Vaccine.d.ts +1 -1
  1306. package/components/Icons/Vaccine.d.ts.map +1 -1
  1307. package/components/Icons/Vaccine.js +30 -1
  1308. package/components/Icons/Vaccine.js.map +1 -1
  1309. package/components/Icons/VerticalDots.d.ts +1 -1
  1310. package/components/Icons/VerticalDots.d.ts.map +1 -1
  1311. package/components/Icons/VerticalDots.js +6 -1
  1312. package/components/Icons/VerticalDots.js.map +1 -1
  1313. package/components/Icons/VideoCamera.d.ts +1 -1
  1314. package/components/Icons/VideoCamera.d.ts.map +1 -1
  1315. package/components/Icons/VideoCamera.js +30 -1
  1316. package/components/Icons/VideoCamera.js.map +1 -1
  1317. package/components/Icons/VideoChat.d.ts +1 -1
  1318. package/components/Icons/VideoChat.d.ts.map +1 -1
  1319. package/components/Icons/VideoChat.js +6 -1
  1320. package/components/Icons/VideoChat.js.map +1 -1
  1321. package/components/Icons/Wallet.d.ts +1 -1
  1322. package/components/Icons/Wallet.d.ts.map +1 -1
  1323. package/components/Icons/Wallet.js +6 -1
  1324. package/components/Icons/Wallet.js.map +1 -1
  1325. package/components/Icons/Watch.d.ts +1 -1
  1326. package/components/Icons/Watch.d.ts.map +1 -1
  1327. package/components/Icons/Watch.js +30 -1
  1328. package/components/Icons/Watch.js.map +1 -1
  1329. package/components/Icons/Website.d.ts +1 -1
  1330. package/components/Icons/Website.d.ts.map +1 -1
  1331. package/components/Icons/Website.js +17 -1
  1332. package/components/Icons/Website.js.map +1 -1
  1333. package/components/Icons/Wheelchair.d.ts +1 -1
  1334. package/components/Icons/Wheelchair.d.ts.map +1 -1
  1335. package/components/Icons/Wheelchair.js +17 -1
  1336. package/components/Icons/Wheelchair.js.map +1 -1
  1337. package/components/Icons/WheelchairActive.d.ts +1 -1
  1338. package/components/Icons/WheelchairActive.d.ts.map +1 -1
  1339. package/components/Icons/WheelchairActive.js +17 -1
  1340. package/components/Icons/WheelchairActive.js.map +1 -1
  1341. package/components/Icons/Window.d.ts +1 -1
  1342. package/components/Icons/Window.d.ts.map +1 -1
  1343. package/components/Icons/Window.js +5 -1
  1344. package/components/Icons/Window.js.map +1 -1
  1345. package/components/Icons/WordDocument.d.ts +1 -1
  1346. package/components/Icons/WordDocument.d.ts.map +1 -1
  1347. package/components/Icons/WordDocument.js +11 -1
  1348. package/components/Icons/WordDocument.js.map +1 -1
  1349. package/components/Icons/WorkSuitcase.d.ts +1 -1
  1350. package/components/Icons/WorkSuitcase.d.ts.map +1 -1
  1351. package/components/Icons/WorkSuitcase.js +11 -1
  1352. package/components/Icons/WorkSuitcase.js.map +1 -1
  1353. package/components/Icons/X.d.ts +1 -1
  1354. package/components/Icons/X.d.ts.map +1 -1
  1355. package/components/Icons/X.js +6 -1
  1356. package/components/Icons/X.js.map +1 -1
  1357. package/components/Icons/XOutline.d.ts +1 -1
  1358. package/components/Icons/XOutline.d.ts.map +1 -1
  1359. package/components/Icons/XOutline.js +17 -1
  1360. package/components/Icons/XOutline.js.map +1 -1
  1361. package/components/Icons/XmlFile.d.ts +1 -1
  1362. package/components/Icons/XmlFile.d.ts.map +1 -1
  1363. package/components/Icons/XmlFile.js +17 -1
  1364. package/components/Icons/XmlFile.js.map +1 -1
  1365. package/components/Icons/YouTube.d.ts +1 -1
  1366. package/components/Icons/YouTube.d.ts.map +1 -1
  1367. package/components/Icons/YouTube.js +5 -1
  1368. package/components/Icons/YouTube.js.map +1 -1
  1369. package/components/Icons/Zoom.d.ts +1 -1
  1370. package/components/Icons/Zoom.d.ts.map +1 -1
  1371. package/components/Icons/Zoom.js +30 -1
  1372. package/components/Icons/Zoom.js.map +1 -1
  1373. package/components/Input/Input.d.ts +5 -4
  1374. package/components/Input/Input.d.ts.map +1 -1
  1375. package/components/Input/Input.js +116 -0
  1376. package/components/Input/Input.js.map +1 -0
  1377. package/components/Input/index.js +6 -1
  1378. package/components/Input/index.js.map +1 -1
  1379. package/components/Input/styles.module.scss +3 -3
  1380. package/components/Input/styles.module.scss.d.ts +2 -2
  1381. package/components/Label/Label.d.ts +1 -1
  1382. package/components/Label/Label.d.ts.map +1 -1
  1383. package/components/Label/Label.js +84 -0
  1384. package/components/Label/Label.js.map +1 -0
  1385. package/components/Label/SubLabel.js +19 -0
  1386. package/components/Label/SubLabel.js.map +1 -0
  1387. package/components/Label/index.js +10 -1
  1388. package/components/Label/index.js.map +1 -1
  1389. package/components/Label/styles.module.scss +5 -0
  1390. package/components/Label/styles.module.scss.d.ts +1 -0
  1391. package/components/LazyIcon/ErrorBoundary.d.ts +17 -0
  1392. package/components/LazyIcon/ErrorBoundary.d.ts.map +1 -0
  1393. package/components/LazyIcon/ErrorBoundary.js +22 -0
  1394. package/components/LazyIcon/ErrorBoundary.js.map +1 -0
  1395. package/components/LazyIcon/LazyIcon.d.ts +10 -0
  1396. package/components/LazyIcon/LazyIcon.d.ts.map +1 -0
  1397. package/components/LazyIcon/LazyIcon.js +29 -0
  1398. package/components/LazyIcon/LazyIcon.js.map +1 -0
  1399. package/components/LazyIcon/index.d.ts +4 -0
  1400. package/components/LazyIcon/index.d.ts.map +1 -0
  1401. package/components/LazyIcon/index.js +8 -0
  1402. package/components/{Icons → LazyIcon}/index.js.map +1 -1
  1403. package/components/LinkList/LinkList.d.ts +0 -4
  1404. package/components/LinkList/LinkList.d.ts.map +1 -1
  1405. package/components/LinkList/LinkList.js +60 -0
  1406. package/components/LinkList/LinkList.js.map +1 -0
  1407. package/components/LinkList/index.js +6 -1
  1408. package/components/LinkList/index.js.map +1 -1
  1409. package/components/List/List.js +14 -0
  1410. package/components/List/List.js.map +1 -0
  1411. package/components/List/index.js +4 -1
  1412. package/components/List/index.js.map +1 -1
  1413. package/components/ListHeader/ListHeader.d.ts +1 -1
  1414. package/components/ListHeader/ListHeader.d.ts.map +1 -1
  1415. package/components/ListHeader/ListHeader.js +73 -0
  1416. package/components/ListHeader/ListHeader.js.map +1 -0
  1417. package/components/ListHeader/ListHeaderText/ListHeaderText.js +31 -0
  1418. package/components/ListHeader/ListHeaderText/ListHeaderText.js.map +1 -0
  1419. package/components/ListHeader/ListHeaderText/index.js +6 -1
  1420. package/components/ListHeader/ListHeaderText/index.js.map +1 -1
  1421. package/components/ListHeader/index.js +10 -1
  1422. package/components/ListHeader/index.js.map +1 -1
  1423. package/components/Loader/Loader.js +68 -0
  1424. package/components/Loader/Loader.js.map +1 -0
  1425. package/components/Loader/index.js +6 -1
  1426. package/components/Loader/index.js.map +1 -1
  1427. package/components/Logo/Logo.js +40 -0
  1428. package/components/Logo/Logo.js.map +1 -0
  1429. package/components/Logo/index.js +4 -1
  1430. package/components/Logo/index.js.map +1 -1
  1431. package/components/MaxCharacters/MaxCharacters.js +15 -0
  1432. package/components/MaxCharacters/MaxCharacters.js.map +1 -0
  1433. package/components/Modal/Modal.js +143 -0
  1434. package/components/Modal/Modal.js.map +1 -0
  1435. package/components/Modal/index.js +7 -1
  1436. package/components/Modal/index.js.map +1 -1
  1437. package/components/NotificationPanel/DetailButton/DetailButton.js +28 -0
  1438. package/components/NotificationPanel/DetailButton/DetailButton.js.map +1 -0
  1439. package/components/NotificationPanel/NotificationPanel.js +127 -0
  1440. package/components/NotificationPanel/NotificationPanel.js.map +1 -0
  1441. package/components/NotificationPanel/index.js +4 -1
  1442. package/components/NotificationPanel/index.js.map +1 -1
  1443. package/components/Panel/Panel.d.ts +0 -2
  1444. package/components/Panel/Panel.d.ts.map +1 -1
  1445. package/components/Panel/Panel.js +191 -0
  1446. package/components/Panel/Panel.js.map +1 -0
  1447. package/components/Panel/index.js +8 -1
  1448. package/components/Panel/index.js.map +1 -1
  1449. package/components/PanelList/PanelList.js +17 -0
  1450. package/components/PanelList/PanelList.js.map +1 -0
  1451. package/components/PanelList/index.js +4 -1
  1452. package/components/PanelList/index.js.map +1 -1
  1453. package/components/PopMenu/PopMenu.js +77 -0
  1454. package/components/PopMenu/PopMenu.js.map +1 -0
  1455. package/components/PopMenu/index.js +7 -1
  1456. package/components/PopMenu/index.js.map +1 -1
  1457. package/components/PopOver/PopOver.js +56 -0
  1458. package/components/PopOver/PopOver.js.map +1 -0
  1459. package/components/PopOver/index.js +6 -1
  1460. package/components/PopOver/index.js.map +1 -1
  1461. package/components/PopOver/utils.js +33 -0
  1462. package/components/PopOver/utils.js.map +1 -0
  1463. package/components/Portal/index.js +15 -1
  1464. package/components/Portal/index.js.map +1 -1
  1465. package/components/PromoPanel/PromoPanel.js +42 -0
  1466. package/components/PromoPanel/PromoPanel.js.map +1 -0
  1467. package/components/PromoPanel/index.js +4 -1
  1468. package/components/PromoPanel/index.js.map +1 -1
  1469. package/components/RadioButton/RadioButton.d.ts +4 -4
  1470. package/components/RadioButton/RadioButton.d.ts.map +1 -1
  1471. package/components/RadioButton/RadioButton.js +102 -0
  1472. package/components/RadioButton/RadioButton.js.map +1 -0
  1473. package/components/RadioButton/index.js +7 -1
  1474. package/components/RadioButton/index.js.map +1 -1
  1475. package/components/RadioButton/styles.module.scss +12 -12
  1476. package/components/RadioButton/styles.module.scss.d.ts +14 -14
  1477. package/components/Select/Select.js +69 -0
  1478. package/components/Select/Select.js.map +1 -0
  1479. package/components/Select/index.js +6 -1
  1480. package/components/Select/index.js.map +1 -1
  1481. package/components/ServiceMessage/ServiceMessage.d.ts +0 -5
  1482. package/components/ServiceMessage/ServiceMessage.d.ts.map +1 -1
  1483. package/components/ServiceMessage/ServiceMessage.js +106 -0
  1484. package/components/ServiceMessage/ServiceMessage.js.map +1 -0
  1485. package/components/ServiceMessage/index.js +4 -1
  1486. package/components/ServiceMessage/index.js.map +1 -1
  1487. package/components/SharingStatus/SharingStatus.d.ts +1 -1
  1488. package/components/SharingStatus/SharingStatus.d.ts.map +1 -1
  1489. package/components/SharingStatus/SharingStatus.js +16 -0
  1490. package/components/SharingStatus/SharingStatus.js.map +1 -0
  1491. package/components/SharingStatus/index.js +4 -1
  1492. package/components/SharingStatus/index.js.map +1 -1
  1493. package/components/Slider/Slider.js +165 -0
  1494. package/components/Slider/Slider.js.map +1 -0
  1495. package/components/Slider/index.js +6 -1
  1496. package/components/Slider/index.js.map +1 -1
  1497. package/components/Spacer/Spacer.js +30 -0
  1498. package/components/Spacer/Spacer.js.map +1 -0
  1499. package/components/Spacer/index.js +4 -1
  1500. package/components/Spacer/index.js.map +1 -1
  1501. package/components/StatusDot/StatusDot.js +27 -0
  1502. package/{StatusDot.js.map → components/StatusDot/StatusDot.js.map} +1 -1
  1503. package/components/StatusDot/index.js +7 -1
  1504. package/components/StatusDot/index.js.map +1 -1
  1505. package/components/StatusDot/styles.module.scss +1 -0
  1506. package/components/Step/Step.js +30 -0
  1507. package/components/Step/Step.js.map +1 -0
  1508. package/components/Step/index.js +4 -1
  1509. package/components/Step/index.js.map +1 -1
  1510. package/components/StepButtons/StepButtons.js +21 -0
  1511. package/components/StepButtons/StepButtons.js.map +1 -0
  1512. package/components/StepButtons/index.js +6 -1
  1513. package/components/StepButtons/index.js.map +1 -1
  1514. package/components/Stepper/Dot.js +16 -0
  1515. package/components/Stepper/Dot.js.map +1 -0
  1516. package/components/Stepper/DotList.js +7 -0
  1517. package/components/Stepper/DotList.js.map +1 -0
  1518. package/components/Stepper/Stepper.js +35 -0
  1519. package/components/Stepper/Stepper.js.map +1 -0
  1520. package/components/Stepper/index.js +4 -1
  1521. package/components/Stepper/index.js.map +1 -1
  1522. package/components/Stepper/utils.js +16 -0
  1523. package/components/Stepper/utils.js.map +1 -0
  1524. package/components/Table/Table.js +59 -0
  1525. package/components/Table/Table.js.map +1 -0
  1526. package/components/Table/TableBody/TableBody.js +13 -0
  1527. package/components/Table/TableBody/TableBody.js.map +1 -0
  1528. package/components/Table/TableBody/index.js +6 -1
  1529. package/components/Table/TableBody/index.js.map +1 -1
  1530. package/components/Table/TableCell/TableCell.js +30 -0
  1531. package/components/Table/TableCell/TableCell.js.map +1 -0
  1532. package/components/Table/TableCell/index.js +7 -1
  1533. package/components/Table/TableCell/index.js.map +1 -1
  1534. package/components/Table/TableExpandedRow/TableExpandedRow.js +33 -0
  1535. package/components/Table/TableExpandedRow/TableExpandedRow.js.map +1 -0
  1536. package/components/Table/TableExpandedRow/index.js +6 -1
  1537. package/components/Table/TableExpandedRow/index.js.map +1 -1
  1538. package/components/Table/TableExpanderCell/TableExpanderCell.js +35 -0
  1539. package/components/Table/TableExpanderCell/TableExpanderCell.js.map +1 -0
  1540. package/components/Table/TableExpanderCell/TableExpanderCellMobile.js +25 -0
  1541. package/components/Table/TableExpanderCell/TableExpanderCellMobile.js.map +1 -0
  1542. package/components/Table/TableExpanderCell/index.js +6 -1
  1543. package/components/Table/TableExpanderCell/index.js.map +1 -1
  1544. package/components/Table/TableHead/TableHead.js +24 -0
  1545. package/components/Table/TableHead/TableHead.js.map +1 -0
  1546. package/components/Table/TableHead/index.js +7 -1
  1547. package/components/Table/TableHead/index.js.map +1 -1
  1548. package/components/Table/TableHeadCell/TableHeadCell.js +33 -0
  1549. package/components/Table/TableHeadCell/TableHeadCell.js.map +1 -0
  1550. package/components/Table/TableHeadCell/index.js +7 -1
  1551. package/components/Table/TableHeadCell/index.js.map +1 -1
  1552. package/components/Table/TableRow/TableRow.js +40 -0
  1553. package/components/Table/TableRow/TableRow.js.map +1 -0
  1554. package/components/Table/TableRow/index.js +6 -1
  1555. package/components/Table/TableRow/index.js.map +1 -1
  1556. package/components/Table/index.js +27 -1
  1557. package/components/Table/index.js.map +1 -1
  1558. package/components/Table/utils.js +37 -0
  1559. package/components/Table/utils.js.map +1 -0
  1560. package/components/Tag/Tag.d.ts +3 -2
  1561. package/components/Tag/Tag.d.ts.map +1 -1
  1562. package/components/Tag/Tag.js +48 -0
  1563. package/components/Tag/Tag.js.map +1 -0
  1564. package/components/Tag/index.js +8 -1
  1565. package/components/Tag/index.js.map +1 -1
  1566. package/components/TagList/TagList.js +8 -0
  1567. package/components/TagList/TagList.js.map +1 -0
  1568. package/components/TagList/index.js +4 -1
  1569. package/components/TagList/index.js.map +1 -1
  1570. package/components/Textarea/Textarea.js +105 -0
  1571. package/components/Textarea/Textarea.js.map +1 -0
  1572. package/components/Textarea/index.js +4 -1
  1573. package/components/Textarea/index.js.map +1 -1
  1574. package/components/Textarea/styles.module.scss.d.ts +1 -1
  1575. package/components/Tile/Tile.d.ts +1 -0
  1576. package/components/Tile/Tile.d.ts.map +1 -1
  1577. package/components/Tile/Tile.js +68 -0
  1578. package/components/Tile/Tile.js.map +1 -0
  1579. package/components/Tile/index.js +6 -1
  1580. package/components/Tile/index.js.map +1 -1
  1581. package/components/Tile/styles.module.scss +4 -0
  1582. package/components/Tile/styles.module.scss.d.ts +1 -0
  1583. package/components/Title/Title.js +25 -0
  1584. package/components/Title/Title.js.map +1 -0
  1585. package/components/Title/index.js +7 -1
  1586. package/components/Title/index.js.map +1 -1
  1587. package/components/Tooltip/Tooltip.js +55 -0
  1588. package/components/Tooltip/Tooltip.js.map +1 -0
  1589. package/components/Tooltip/TooltipWord/TooltipWord.js +28 -0
  1590. package/components/Tooltip/TooltipWord/TooltipWord.js.map +1 -0
  1591. package/components/Tooltip/TooltipWord/index.js +4 -1
  1592. package/components/Tooltip/TooltipWord/index.js.map +1 -1
  1593. package/components/Tooltip/index.js +7 -1
  1594. package/components/Tooltip/index.js.map +1 -1
  1595. package/components/TooltipExample/TooltipExample.js +8 -0
  1596. package/components/TooltipExample/TooltipExample.js.map +1 -0
  1597. package/components/TooltipExample/index.js +4 -1
  1598. package/components/TooltipExample/index.js.map +1 -1
  1599. package/components/Trigger/HelpSign.d.ts +1 -1
  1600. package/components/Trigger/HelpSign.d.ts.map +1 -1
  1601. package/components/Trigger/HelpSign.js +7 -0
  1602. package/components/Trigger/HelpSign.js.map +1 -0
  1603. package/components/Trigger/InfoSignStroke.d.ts +1 -1
  1604. package/components/Trigger/InfoSignStroke.d.ts.map +1 -1
  1605. package/components/Trigger/Trigger.js +74 -0
  1606. package/components/Trigger/Trigger.js.map +1 -0
  1607. package/components/Trigger/index.js +4 -1
  1608. package/components/Trigger/index.js.map +1 -1
  1609. package/components/Validation/Validation.d.ts +3 -3
  1610. package/components/Validation/Validation.d.ts.map +1 -1
  1611. package/components/Validation/Validation.js +18 -0
  1612. package/components/Validation/Validation.js.map +1 -0
  1613. package/components/Validation/index.js +6 -1
  1614. package/components/Validation/index.js.map +1 -1
  1615. package/constants.d.ts +3 -3
  1616. package/constants.d.ts.map +1 -1
  1617. package/constants.js +12 -1
  1618. package/constants.js.map +1 -1
  1619. package/hoc/withBreakpoint/index.js +5 -1
  1620. package/hoc/withBreakpoint/index.js.map +1 -1
  1621. package/hoc/withBreakpoint/withBreakpoint.js +12 -1
  1622. package/hoc/withBreakpoint/withBreakpoint.js.map +1 -1
  1623. package/hooks/useBreakpoint.js +44 -1
  1624. package/hooks/useBreakpoint.js.map +1 -1
  1625. package/hooks/useDelayedState.js +14 -1
  1626. package/hooks/useDelayedState.js.map +1 -1
  1627. package/hooks/useElementList.js +17 -1
  1628. package/hooks/useElementList.js.map +1 -1
  1629. package/hooks/useEventListenerState.js +10 -1
  1630. package/hooks/useEventListenerState.js.map +1 -1
  1631. package/hooks/useExpand.js +13 -1
  1632. package/hooks/useExpand.js.map +1 -1
  1633. package/hooks/useFocusToggle.js +18 -1
  1634. package/hooks/useFocusToggle.js.map +1 -1
  1635. package/hooks/useFocusTrap.js +22 -1
  1636. package/hooks/useFocusTrap.js.map +1 -1
  1637. package/hooks/useFocusableElements.js +19 -1
  1638. package/hooks/useFocusableElements.js.map +1 -1
  1639. package/hooks/useHover.js +8 -1
  1640. package/hooks/useHover.js.map +1 -1
  1641. package/hooks/useIcons.d.ts +4 -2
  1642. package/hooks/useIcons.d.ts.map +1 -1
  1643. package/hooks/useIcons.js +15 -1
  1644. package/hooks/useIcons.js.map +1 -1
  1645. package/hooks/useIntersectionObserver.js +12 -1
  1646. package/hooks/useIntersectionObserver.js.map +1 -1
  1647. package/hooks/useInterval.js +12 -1
  1648. package/hooks/useInterval.js.map +1 -1
  1649. package/hooks/useIsVisible.js +11 -1
  1650. package/hooks/useIsVisible.js.map +1 -1
  1651. package/hooks/useKeyboardEvent.js +20 -1
  1652. package/hooks/useKeyboardEvent.js.map +1 -1
  1653. package/hooks/useLayoutEvent.js +15 -1
  1654. package/hooks/useLayoutEvent.js.map +1 -1
  1655. package/hooks/useOutsideEvent.js +12 -1
  1656. package/hooks/useOutsideEvent.js.map +1 -1
  1657. package/hooks/usePrevious.js +10 -1
  1658. package/hooks/usePrevious.js.map +1 -1
  1659. package/hooks/usePseudoClasses.js +15 -1
  1660. package/hooks/usePseudoClasses.js.map +1 -1
  1661. package/hooks/useResizeObserver.js +17 -1
  1662. package/hooks/useResizeObserver.js.map +1 -1
  1663. package/hooks/useSize.js +27 -1
  1664. package/hooks/useSize.js.map +1 -1
  1665. package/hooks/useSticky.js +17 -1
  1666. package/hooks/useSticky.js.map +1 -1
  1667. package/hooks/useToggle.js +15 -1
  1668. package/hooks/useToggle.js.map +1 -1
  1669. package/hooks/useUuid.js +9 -1
  1670. package/hooks/useUuid.js.map +1 -1
  1671. package/index.js +47 -1
  1672. package/index.js.map +1 -1
  1673. package/package.json +1 -1
  1674. package/scss/_input.scss +1 -1
  1675. package/theme/currys/color.js +6 -1
  1676. package/theme/currys/color.js.map +1 -1
  1677. package/theme/currys/index.js +8 -1
  1678. package/theme/currys/index.js.map +1 -1
  1679. package/theme/currys/spacing.js +37 -1
  1680. package/theme/currys/spacing.js.map +1 -1
  1681. package/theme/grid.js +24 -1
  1682. package/theme/grid.js.map +1 -1
  1683. package/theme/index.js +13 -1
  1684. package/theme/index.js.map +1 -1
  1685. package/theme/palette.js +79 -1
  1686. package/theme/palette.js.map +1 -1
  1687. package/theme/spacers.js +20 -1
  1688. package/theme/spacers.js.map +1 -1
  1689. package/utils/accessibility.js +18 -1
  1690. package/utils/accessibility.js.map +1 -1
  1691. package/utils/component.js +6 -1
  1692. package/utils/component.js.map +1 -1
  1693. package/utils/debounce.js +13 -1
  1694. package/utils/debounce.js.map +1 -1
  1695. package/utils/device.js +4 -1
  1696. package/utils/device.js.map +1 -1
  1697. package/utils/environment.js +11 -1
  1698. package/utils/environment.js.map +1 -1
  1699. package/utils/focus.js +10 -1
  1700. package/utils/focus.js.map +1 -1
  1701. package/utils/loremtext.js +7 -1
  1702. package/utils/loremtext.js.map +1 -1
  1703. package/utils/mobile.js +10 -1
  1704. package/utils/mobile.js.map +1 -1
  1705. package/utils/refs.js +9 -1
  1706. package/utils/refs.js.map +1 -1
  1707. package/utils/uuid.js +9 -1
  1708. package/utils/uuid.js.map +1 -1
  1709. package/utils/viewport.js +7 -1
  1710. package/utils/viewport.js.map +1 -1
  1711. package/AnchorLink.js +0 -2
  1712. package/AnchorLink.js.map +0 -1
  1713. package/Avatar.js +0 -2
  1714. package/Avatar.js.map +0 -1
  1715. package/Badge.js +0 -2
  1716. package/Badge.js.map +0 -1
  1717. package/Button.js +0 -2
  1718. package/Button.js.map +0 -1
  1719. package/Checkbox.js +0 -2
  1720. package/Checkbox.js.map +0 -1
  1721. package/Close.js +0 -2
  1722. package/Close.js.map +0 -1
  1723. package/ErrorWrapper.js +0 -2
  1724. package/ErrorWrapper.js.map +0 -1
  1725. package/FormGroup.js +0 -2
  1726. package/FormGroup.js.map +0 -1
  1727. package/FormLayout.js +0 -2
  1728. package/FormLayout.js.map +0 -1
  1729. package/HelpBubble.js +0 -2
  1730. package/HelpBubble.js.map +0 -1
  1731. package/HighlightBox.js +0 -2
  1732. package/HighlightBox.js.map +0 -1
  1733. package/HorizontalScroll.js +0 -2
  1734. package/HorizontalScroll.js.map +0 -1
  1735. package/Input.js +0 -2
  1736. package/Input.js.map +0 -1
  1737. package/Label.js +0 -2
  1738. package/Label.js.map +0 -1
  1739. package/LinkList.js +0 -2
  1740. package/LinkList.js.map +0 -1
  1741. package/ListHeader.js +0 -2
  1742. package/ListHeader.js.map +0 -1
  1743. package/ListHeaderText.js +0 -2
  1744. package/ListHeaderText.js.map +0 -1
  1745. package/MaxCharacters.js +0 -2
  1746. package/MaxCharacters.js.map +0 -1
  1747. package/Modal.js +0 -2
  1748. package/Modal.js.map +0 -1
  1749. package/Panel.js +0 -2
  1750. package/Panel.js.map +0 -1
  1751. package/PopOver.js +0 -2
  1752. package/PopOver.js.map +0 -1
  1753. package/RadioButton.js +0 -2
  1754. package/RadioButton.js.map +0 -1
  1755. package/Select.js +0 -2
  1756. package/Select.js.map +0 -1
  1757. package/Spacer.js +0 -2
  1758. package/Spacer.js.map +0 -1
  1759. package/StatusDot.js +0 -2
  1760. package/StepButtons.js +0 -2
  1761. package/StepButtons.js.map +0 -1
  1762. package/Table.js +0 -2
  1763. package/Table.js.map +0 -1
  1764. package/TableBody.js +0 -2
  1765. package/TableBody.js.map +0 -1
  1766. package/TableCell.js +0 -2
  1767. package/TableCell.js.map +0 -1
  1768. package/TableExpandedRow.js +0 -2
  1769. package/TableExpandedRow.js.map +0 -1
  1770. package/TableExpanderCell.js +0 -2
  1771. package/TableExpanderCell.js.map +0 -1
  1772. package/TableHead.js +0 -2
  1773. package/TableHead.js.map +0 -1
  1774. package/TableHeadCell.js +0 -2
  1775. package/TableHeadCell.js.map +0 -1
  1776. package/TableRow.js +0 -2
  1777. package/TableRow.js.map +0 -1
  1778. package/Textarea.js +0 -2
  1779. package/Textarea.js.map +0 -1
  1780. package/Title.js +0 -2
  1781. package/Title.js.map +0 -1
  1782. package/Tooltip.js +0 -2
  1783. package/Tooltip.js.map +0 -1
  1784. package/TooltipWord.js +0 -2
  1785. package/TooltipWord.js.map +0 -1
  1786. package/Trigger.js +0 -2
  1787. package/Trigger.js.map +0 -1
  1788. package/Validation.js +0 -2
  1789. package/Validation.js.map +0 -1
  1790. package/components/AnchorLink/componentdata.json +0 -1
  1791. package/components/Avatar/componentdata.json +0 -1
  1792. package/components/Badge/componentdata.json +0 -1
  1793. package/components/Button/componentdata.json +0 -1
  1794. package/components/ButtonWithModal/componentdata.json +0 -1
  1795. package/components/Checkbox/componentdata.json +0 -1
  1796. package/components/Close/componentdata.json +0 -1
  1797. package/components/DictionaryTrigger/componentdata.json +0 -1
  1798. package/components/Dropdown/componentdata.json +0 -1
  1799. package/components/Duolist/componentdata.json +0 -1
  1800. package/components/EmptyState/componentdata.json +0 -1
  1801. package/components/ErrorWrapper/componentdata.json +0 -1
  1802. package/components/Expander/componentdata.json +0 -1
  1803. package/components/ExpanderHierarchy/componentdata.json +0 -1
  1804. package/components/ExpanderList/componentdata.json +0 -1
  1805. package/components/FormExample/componentdata.json +0 -1
  1806. package/components/FormGroup/componentdata.json +0 -1
  1807. package/components/FormLayout/componentdata.json +0 -1
  1808. package/components/GridExample/componentdata.json +0 -1
  1809. package/components/HelpBubble/componentdata.json +0 -1
  1810. package/components/HelpBubbleExample/componentdata.json +0 -1
  1811. package/components/HelpPanel/componentdata.json +0 -1
  1812. package/components/HelpQuestion/componentdata.json +0 -1
  1813. package/components/HighlightBox/componentdata.json +0 -1
  1814. package/components/HorizontalScroll/componentdata.json +0 -1
  1815. package/components/Icons/Icon.d.ts.map +0 -1
  1816. package/components/Icons/Icon.js +0 -2
  1817. package/components/Icons/Icon.js.map +0 -1
  1818. package/components/Icons/IconWall.d.ts +0 -8
  1819. package/components/Icons/IconWall.d.ts.map +0 -1
  1820. package/components/Icons/IconWall.js +0 -2
  1821. package/components/Icons/IconWall.js.map +0 -1
  1822. package/components/Icons/componentdata.json +0 -1
  1823. package/components/Icons/index.d.ts.map +0 -1
  1824. package/components/Icons/index.js +0 -2
  1825. package/components/Input/componentdata.json +0 -1
  1826. package/components/Label/componentdata.json +0 -1
  1827. package/components/LinkList/componentdata.json +0 -1
  1828. package/components/List/componentdata.json +0 -1
  1829. package/components/ListHeader/ListHeaderText/componentdata.json +0 -1
  1830. package/components/ListHeader/componentdata.json +0 -1
  1831. package/components/Loader/componentdata.json +0 -1
  1832. package/components/Logo/componentdata.json +0 -1
  1833. package/components/MaxCharacters/componentdata.json +0 -1
  1834. package/components/Modal/componentdata.json +0 -1
  1835. package/components/NotificationPanel/DetailButton/componentdata.json +0 -1
  1836. package/components/NotificationPanel/componentdata.json +0 -1
  1837. package/components/Panel/componentdata.json +0 -1
  1838. package/components/PanelList/componentdata.json +0 -1
  1839. package/components/PopMenu/componentdata.json +0 -1
  1840. package/components/PopOver/componentdata.json +0 -1
  1841. package/components/PromoPanel/componentdata.json +0 -1
  1842. package/components/RadioButton/componentdata.json +0 -1
  1843. package/components/Select/componentdata.json +0 -1
  1844. package/components/ServiceMessage/componentdata.json +0 -1
  1845. package/components/SharingStatus/componentdata.json +0 -1
  1846. package/components/Slider/componentdata.json +0 -1
  1847. package/components/Spacer/componentdata.json +0 -1
  1848. package/components/StatusDot/componentdata.json +0 -1
  1849. package/components/Step/componentdata.json +0 -1
  1850. package/components/StepButtons/componentdata.json +0 -1
  1851. package/components/Stepper/componentdata.json +0 -1
  1852. package/components/Table/TableBody/componentdata.json +0 -1
  1853. package/components/Table/TableCell/componentdata.json +0 -1
  1854. package/components/Table/TableExpandedRow/componentdata.json +0 -1
  1855. package/components/Table/TableExpanderCell/componentdata.json +0 -1
  1856. package/components/Table/TableHead/componentdata.json +0 -1
  1857. package/components/Table/TableHeadCell/componentdata.json +0 -1
  1858. package/components/Table/TableRow/componentdata.json +0 -1
  1859. package/components/Table/componentdata.json +0 -1
  1860. package/components/Tag/componentdata.json +0 -1
  1861. package/components/TagList/componentdata.json +0 -1
  1862. package/components/Textarea/componentdata.json +0 -1
  1863. package/components/Tile/componentdata.json +0 -1
  1864. package/components/Title/componentdata.json +0 -1
  1865. package/components/Tooltip/TooltipWord/componentdata.json +0 -1
  1866. package/components/Tooltip/componentdata.json +0 -1
  1867. package/components/TooltipExample/componentdata.json +0 -1
  1868. package/components/Trigger/componentdata.json +0 -1
  1869. package/components/Validation/componentdata.json +0 -1
  1870. package/uuid.js +0 -2
  1871. package/uuid.js.map +0 -1
  1872. /package/components/{Icons → Icon}/index.d.ts +0 -0
@@ -1 +1 @@
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 setValue((max - min) / 2 + min);\n }, [min, max]);\n\n return [value, setSafeValue];\n};\n\nexport type SliderStep = {\n label?: number | string;\n emojiUniCode?: string;\n};\n\ninterface 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 /** 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}\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 testId,\n}) => {\n const [isMoving, setIsMoving] = useState(false);\n const [value, setValue] = useSafeNumberValue((maxValue - minValue) / 2 + minValue, minValue, maxValue);\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 setValue(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 (!disabled && onChange) {\n onChange(value);\n }\n }, [value]);\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 setValue(value - step);\n flag = true;\n break;\n case 'PageDown':\n setValue(value - largeStep);\n flag = true;\n break;\n case 'ArrowRight':\n case 'ArrowUp':\n setValue(value + step);\n flag = true;\n break;\n case 'PageUp':\n setValue(value + largeStep);\n flag = true;\n break;\n case 'Home':\n setValue(minValue);\n flag = true;\n break;\n case 'End':\n setValue(maxValue);\n flag = true;\n break;\n default:\n break;\n }\n\n if (flag) {\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 setValue(newValue);\n markerRef.current?.focus();\n };\n\n const handlePointerDown: React.PointerEventHandler<HTMLDivElement> = e => {\n if (disabled) return;\n\n setIsMoving(true);\n\n e.preventDefault();\n e.stopPropagation();\n\n markerRef.current?.focus();\n };\n\n const markerXPos = maxValue !== minValue ? (trackWidth / (maxValue - minValue)) * (value - minValue) : 0;\n\n const getAriaValueText = (): string | undefined => {\n const stepIndex = steps ? Math.round((value - 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 getXPostionStyling = (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={getXPostionStyling(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={getXPostionStyling(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={getXPostionStyling(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, disabled && styles['slider__marker--disabled'])}\n style={{\n left: `${markerXPos}px`,\n }}\n onKeyDown={handleKeyDown}\n aria-valuenow={value}\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","testId","isMoving","setIsMoving","titleId","useUuid","labelLeftId","labelRightId","trackRef","useRef","markerRef","trackWidth","useSize","largeStep","handlePointerUp","getValueBasedOnMarkerPosition","markerPosition","trackPosition","_a","normalizedPosition","valueRange","handlePointerMove","handleKeyDown","e","flag","handleTrackClick","handlePointerDown","markerXPos","getAriaValueText","stepIndex","emojiCode","label","ariaLabelAttributes","getAriaLabelAttributes","getXPostionStyling","index","stepsLength","renderEmojies","React","styles","renderSteps","_step","renderStepLabels","AnalyticsId","Title","classNames","Slider$1"],"mappings":"sfAYA,MAAMA,EAAqB,CAACC,EAAiBC,EAAaC,IAAmD,CAC3G,KAAM,CAACC,EAAOC,CAAQ,EAAIC,EAASL,CAAO,EAEpCM,EAAgBC,GAA2B,CAC3CA,EAAWL,EACbE,EAASF,CAAG,EACHK,EAAWN,EACpBG,EAASH,CAAG,EAEZG,EAASG,CAAQ,CACnB,EAGF,OAAAC,EAAU,IAAM,CACJJ,GAAAF,EAAMD,GAAO,EAAIA,CAAG,CAAA,EAC7B,CAACA,EAAKC,CAAG,CAAC,EAEN,CAACC,EAAOG,CAAY,CAC7B,EAgCaG,EAAgC,CAAC,CAC5C,MAAAC,EACA,UAAAC,EACA,UAAAC,EACA,WAAAC,EACA,SAAAC,EAAW,GACX,SAAAC,EACA,MAAAC,EACA,KAAAC,EAAO,EACP,SAAAC,EAAW,EACX,SAAAC,EAAWH,EAAQA,EAAM,OAAS,EAAI,IACtC,OAAAI,CACF,IAAM,CACJ,KAAM,CAACC,EAAUC,CAAW,EAAIjB,EAAS,EAAK,EACxC,CAACF,EAAOC,CAAQ,EAAIL,GAAoBoB,EAAWD,GAAY,EAAIA,EAAUA,EAAUC,CAAQ,EAE/FI,EAAUC,IACVC,EAAcD,IACdE,EAAeF,IACfG,EAAWC,EAAuB,IAAI,EACtCC,EAAYD,EAAuB,IAAI,EACvC,CAAE,MAAOE,GAAeC,EAAQJ,CAAQ,GAAK,CAAE,MAAO,GACtDK,EAAYb,EAAW,GAE7BX,EAAU,IAAM,CACd,MAAMyB,EAAkB,IAAY,CAClCX,EAAY,EAAK,CAAA,EAGV,gBAAA,iBAAiB,YAAaW,CAAe,EAE/C,IAAM,CACF,SAAA,oBAAoB,YAAaA,CAAe,CAAA,CAE7D,EAAG,CAAE,CAAA,EAEC,MAAAC,EAAiCC,GAAmC,OACxE,MAAMC,IAAgBC,EAAAV,EAAS,UAAT,YAAAU,EAAkB,wBAAwB,IAAK,EAG/DC,GAAsBH,EAAiBC,GAAiBN,EACxDS,EAAapB,EAAWD,EAE1Bf,IAAAA,EAAQmC,EAAqBC,EAAarB,EAG9Cf,OAAAA,EADkB,KAAK,MAAMA,EAAQc,CAAI,EACrBA,EACpBd,EAAQ,KAAK,IAAIe,EAAU,KAAK,IAAIC,EAAUhB,CAAK,CAAC,EAE7CA,CAAA,EAGTK,EAAU,IAAM,CACR,MAAAgC,EAAqB,GAA0B,CAC/C,GAAA,CAAC1B,GAAYO,EAAU,CACnB,MAAAd,EAAW2B,EAA8B,EAAE,OAAO,EACxD9B,EAASG,CAAQ,CACnB,CAAA,EAGO,gBAAA,iBAAiB,cAAeiC,CAAiB,EAEnD,IAAM,CACF,SAAA,oBAAoB,cAAeA,CAAiB,CAAA,CAC/D,EACC,CAACnB,CAAQ,CAAC,EAEbb,EAAU,IAAM,CACV,CAACM,GAAYC,GACfA,EAASZ,CAAK,CAChB,EACC,CAACA,CAAK,CAAC,EAEV,MAAMsC,EAAiEC,GAAA,CACjE,GAAA5B,EAAU,OAEd,IAAI6B,EAAO,GAEX,OAAQD,EAAE,IAAK,CACb,IAAK,YACL,IAAK,YACHtC,EAASD,EAAQc,CAAI,EACd0B,EAAA,GACP,MACF,IAAK,WACHvC,EAASD,EAAQ6B,CAAS,EACnBW,EAAA,GACP,MACF,IAAK,aACL,IAAK,UACHvC,EAASD,EAAQc,CAAI,EACd0B,EAAA,GACP,MACF,IAAK,SACHvC,EAASD,EAAQ6B,CAAS,EACnBW,EAAA,GACP,MACF,IAAK,OACHvC,EAASc,CAAQ,EACVyB,EAAA,GACP,MACF,IAAK,MACHvC,EAASe,CAAQ,EACVwB,EAAA,GACP,KAGJ,CAEIA,IACFD,EAAE,eAAe,EACjBA,EAAE,gBAAgB,EACpB,EAGIE,EAAiEF,GAAA,OACjE,GAAA5B,EAAU,OAER,MAAAP,EAAW2B,EAA8BQ,EAAE,OAAO,EACxDtC,EAASG,CAAQ,GACjB8B,EAAAR,EAAU,UAAV,MAAAQ,EAAmB,OAAM,EAGrBQ,EAAoEH,GAAA,OACpE5B,IAEJQ,EAAY,EAAI,EAEhBoB,EAAE,eAAe,EACjBA,EAAE,gBAAgB,GAElBL,EAAAR,EAAU,UAAV,MAAAQ,EAAmB,QAAM,EAGrBS,EAAa3B,IAAaD,EAAYY,GAAcX,EAAWD,IAAcf,EAAQe,GAAY,EAEjG6B,EAAmB,IAA0B,CACjD,MAAMC,EAAYhC,EAAQ,KAAK,OAAOb,EAAQe,GAAYD,CAAI,EAAI,KAElE,GAAID,GAASgC,IAAc,MAAQA,GAAa,GAAKA,EAAYhC,EAAM,OAAQ,CACvEC,MAAAA,EAAOD,EAAMgC,CAAS,EACtBC,EAAYhC,EAAK,aACjBiC,EAAQ,OAAOjC,EAAK,MAAU,IAAcA,EAAK,MAAM,WAAa,OAE1E,OAAOgC,GAAaC,EAAQ,GAAGD,CAAS,IAAIC,CAAK,GAAKD,GAAaC,CACrE,CAEO,EAkBHC,EAAsBC,EAAuB,CACjD,MAAOzC,EACP,IAjByB,IAA0B,CAC/C,GAAAD,GAASE,GAAaC,EACxB,MAAO,CAACU,EAASE,EAAaC,CAAY,EAAE,KAAK,GAAG,EAEtD,GAAIhB,GAASE,EACX,MAAO,CAACW,EAASE,CAAW,EAAE,KAAK,GAAG,EAExC,GAAIf,GAASG,EACX,MAAO,CAACU,EAASG,CAAY,EAAE,KAAK,GAAG,EAEzC,GAAIhB,EACK,OAAAa,CACT,GAKuB,EACvB,OAAQ,OAAA,CACT,EAEK8B,EAAqB,CAACC,EAAeC,KAClC,CAAE,KAAM,GAAID,GAASC,EAAc,GAAM,GAAG,MAG/CC,EAAgB,IAElBC,EAAA,cAAC,MAAI,CAAA,UAAWC,EAAO,yBAAyB,GAC7C1C,GAAA,YAAAA,EAAO,IAAI,CAACC,EAAMqC,IAEfrC,EAAK,cACHwC,EAAA,cAAC,MAAA,CACC,cAAa,GACb,IAAK,QAAUH,EACf,UAAWI,EAAO,cAClB,MAAOL,EAAmBC,EAAOtC,EAAM,MAAM,CAAA,EAE5CC,EAAK,YAAA,EAKhB,EAIE0C,EAAc,IACX3C,GAAA,YAAAA,EAAO,IAAI,CAAC4C,EAAON,IAChBG,EAAA,cAAA,MAAA,CAAI,IAAK,OAASH,EAAO,UAAWI,EAAO,oBAAwB,MAAOL,EAAmBC,EAAOtC,EAAM,MAAM,CAAG,CAAA,GAIzH6C,EAAmB,IAErBJ,EAAA,cAAC,MAAI,CAAA,UAAWC,EAAO,yBAAyB,GAC7C1C,GAAA,YAAAA,EAAO,IAAI,CAACC,EAAMqC,IAEf,OAAOrC,EAAK,MAAU,KACpBwC,EAAA,cAAC,MAAA,CACC,cAAa,GACb,IAAK,QAAUH,EACf,UAAWI,EAAO,cAClB,MAAOL,EAAmBC,EAAOtC,EAAM,MAAM,CAAA,EAE5CC,EAAK,KAAA,EAKhB,EAIJ,OACGwC,EAAA,cAAA,MAAA,CAAI,UAAWC,EAAO,OAAQ,cAAatC,EAAQ,mBAAkB0C,EAAY,QAC/EpD,GACC+C,EAAA,cAACM,EAAM,CAAA,UAAWL,EAAO,cAAkB,WAAY,KAAM,OAAQ,EAAG,WAAY,SAAU,GAAInC,CAC/F,EAAAb,CACH,EAEF+C,EAAA,cAAC,OAAI,UAAWC,EAAO,2BAA2B,GAC/CF,IAGDC,EAAA,cAAC,MAAA,CACC,IAAK9B,EACL,UAAWqC,EAAWN,EAAO,uBAAuB,EAAG5C,GAAY4C,EAAO,iCAAiC,CAAC,EAC5G,QAASd,EACT,cAAeC,CAAA,EAEdY,EAAA,cAAA,MAAA,CAAI,UAAWO,EAAWN,EAAO,cAAe5C,GAAY4C,EAAO,yBAAyB,CAAC,CAAI,EAAAC,EAAA,CAAc,EAChHF,EAAA,cAAC,MAAA,CACC,KAAM3C,EAAW,OAAY,SAC7B,IAAKe,EACL,UAAWmC,EAAWN,EAAO,eAAgB5C,GAAY4C,EAAO,0BAA0B,CAAC,EAC3F,MAAO,CACL,KAAM,GAAGZ,CAAU,IACrB,EACA,UAAWL,EACX,gBAAetC,EACf,iBAAgB4C,EAAiB,EACjC,gBAAe7B,EACf,gBAAeC,EACf,SAAUL,EAAW,OAAY,EACjC,gBAAeA,EACd,GAAGqC,CAAA,CACN,CACF,EACCU,GACH,GACEjD,GAAaC,IACb4C,EAAA,cAAC,OAAK,CAAA,UAAWC,EAAO,eAAA,kBACrB,OAAK,CAAA,GAAIjC,CAAc,EAAAb,CAAU,EAClC6C,EAAA,cAAC,QAAK,GAAI/B,CAAA,EAAeb,CAAW,CACtC,CAEJ,CAEJ,EAEAoD,GAAexD"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -0,0 +1,30 @@
1
+ import e from "react";
2
+ import x from "classnames";
3
+ import { AnalyticsId as o } from "../../constants.js";
4
+ import s from "./styles.module.scss";
5
+ const m = e.forwardRef(function(r, c) {
6
+ const { size: a = "s", className: p, testId: t } = r, l = x(
7
+ s.spacer,
8
+ {
9
+ [s["spacer--4xs"]]: a === "4xs",
10
+ [s["spacer--3xs"]]: a === "3xs",
11
+ [s["spacer--2xs"]]: a === "2xs",
12
+ [s["spacer--xs"]]: a === "xs",
13
+ [s["spacer--s"]]: a === "s",
14
+ [s["spacer--m"]]: a === "m",
15
+ [s["spacer--l"]]: a === "l",
16
+ [s["spacer--xl"]]: a === "xl",
17
+ [s["spacer--2xl"]]: a === "2xl",
18
+ [s["spacer--3xl"]]: a === "3xl",
19
+ [s["spacer--4xl"]]: a === "4xl",
20
+ [s["spacer--5xl"]]: a === "5xl",
21
+ [s["spacer--6xl"]]: a === "6xl"
22
+ },
23
+ p
24
+ );
25
+ return /* @__PURE__ */ e.createElement("span", { className: l, ref: c, "data-testid": t, "data-analyticsid": o.Spacer });
26
+ }), u = m;
27
+ export {
28
+ u as default
29
+ };
30
+ //# sourceMappingURL=Spacer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Spacer.js","sources":["../../../src/components/Spacer/Spacer.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { SpacerSizes } from './../../theme/spacers';\nimport { AnalyticsId } from '../../constants';\n\nimport spacerStyles from './styles.module.scss';\n\ninterface SpacerProps {\n /** Sets the size of the spacer. */\n size?: SpacerSizes;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nconst Spacer = React.forwardRef(function SpacerForwardedRef(props: SpacerProps, ref: React.ForwardedRef<HTMLElement>) {\n const { size = 's', className, testId } = props;\n const spacerClasses = classNames(\n spacerStyles.spacer,\n {\n [spacerStyles['spacer--4xs']]: size === '4xs',\n [spacerStyles['spacer--3xs']]: size === '3xs',\n [spacerStyles['spacer--2xs']]: size === '2xs',\n [spacerStyles['spacer--xs']]: size === 'xs',\n [spacerStyles['spacer--s']]: size === 's',\n [spacerStyles['spacer--m']]: size === 'm',\n [spacerStyles['spacer--l']]: size === 'l',\n [spacerStyles['spacer--xl']]: size === 'xl',\n [spacerStyles['spacer--2xl']]: size === '2xl',\n [spacerStyles['spacer--3xl']]: size === '3xl',\n [spacerStyles['spacer--4xl']]: size === '4xl',\n [spacerStyles['spacer--5xl']]: size === '5xl',\n [spacerStyles['spacer--6xl']]: size === '6xl',\n },\n className\n );\n\n return <span className={spacerClasses} ref={ref} data-testid={testId} data-analyticsid={AnalyticsId.Spacer}></span>;\n});\n\nexport default Spacer;\n"],"names":["Spacer","React","props","ref","size","className","testId","spacerClasses","classNames","spacerStyles","AnalyticsId","Spacer$1"],"mappings":";;;;AAkBA,MAAMA,IAASC,EAAM,WAAW,SAA4BC,GAAoBC,GAAsC;AACpH,QAAM,EAAE,MAAAC,IAAO,KAAK,WAAAC,GAAW,QAAAC,MAAWJ,GACpCK,IAAgBC;AAAA,IACpBC,EAAa;AAAA,IACb;AAAA,MACE,CAACA,EAAa,aAAa,CAAC,GAAGL,MAAS;AAAA,MACxC,CAACK,EAAa,aAAa,CAAC,GAAGL,MAAS;AAAA,MACxC,CAACK,EAAa,aAAa,CAAC,GAAGL,MAAS;AAAA,MACxC,CAACK,EAAa,YAAY,CAAC,GAAGL,MAAS;AAAA,MACvC,CAACK,EAAa,WAAW,CAAC,GAAGL,MAAS;AAAA,MACtC,CAACK,EAAa,WAAW,CAAC,GAAGL,MAAS;AAAA,MACtC,CAACK,EAAa,WAAW,CAAC,GAAGL,MAAS;AAAA,MACtC,CAACK,EAAa,YAAY,CAAC,GAAGL,MAAS;AAAA,MACvC,CAACK,EAAa,aAAa,CAAC,GAAGL,MAAS;AAAA,MACxC,CAACK,EAAa,aAAa,CAAC,GAAGL,MAAS;AAAA,MACxC,CAACK,EAAa,aAAa,CAAC,GAAGL,MAAS;AAAA,MACxC,CAACK,EAAa,aAAa,CAAC,GAAGL,MAAS;AAAA,MACxC,CAACK,EAAa,aAAa,CAAC,GAAGL,MAAS;AAAA,IAC1C;AAAA,IACAC;AAAA,EAAA;AAGK,SAAAJ,gBAAAA,EAAA,cAAC,UAAK,WAAWM,GAAe,KAAAJ,GAAU,eAAaG,GAAQ,oBAAkBI,EAAY,OAAQ,CAAA;AAC9G,CAAC,GAEDC,IAAeX;"}
@@ -1,2 +1,5 @@
1
- import{S as o}from"../../Spacer.js";import"react";import"classnames";import"../../constants.js";import"./styles.module.scss";export{o as default};
1
+ import a from "./Spacer.js";
2
+ export {
3
+ a as default
4
+ };
2
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,27 @@
1
+ import s from "react";
2
+ import n from "classnames";
3
+ import "../../theme/grid.js";
4
+ import "../../hooks/useBreakpoint.js";
5
+ import { AnalyticsId as h, IconSize as r } from "../../constants.js";
6
+ import { getColor as I } from "../../theme/currys/color.js";
7
+ import { Icon as c } from "../Icon/Icon.js";
8
+ import E from "../Icons/Attachment.js";
9
+ import X from "../Icons/Group.js";
10
+ import v from "../Icons/NoAccess.js";
11
+ import N from "../Icons/Undo.js";
12
+ import t from "./styles.module.scss";
13
+ var w = /* @__PURE__ */ ((e) => (e.onwhite = "onwhite", e.ondark = "ondark", e))(w || {}), z = /* @__PURE__ */ ((e) => (e.info = "info", e.warning = "warning", e.alert = "alert", e.cancelled = "cancelled", e.active = "active", e.transparent = "transparent", e.recurring = "recurring", e.group = "group", e.noaccess = "noaccess", e.attachment = "attachment", e))(z || {});
14
+ const C = ({ variant: e }) => e === "recurring" ? /* @__PURE__ */ s.createElement(c, { size: r.XXSmall, svgIcon: N }) : e === "group" ? /* @__PURE__ */ s.createElement(c, { size: r.XXSmall, svgIcon: X }) : e === "noaccess" ? /* @__PURE__ */ s.createElement(c, { size: r.XXSmall, svgIcon: v, color: I("cherry", 600) }) : e === "attachment" ? /* @__PURE__ */ s.createElement(c, { size: r.XXSmall, svgIcon: E }) : null, b = (e) => {
15
+ const { id: l, mode: m = "onwhite", variant: o = "info", text: i, className: d, testId: p } = e, a = o === "recurring" || o === "group" || o === "noaccess" || o === "attachment", u = o === "cancelled", f = n(t.statusdot, u && t["statusdot--cancelled"], d), g = n(t.statusdot__dot, a ? t["statusdot__dot--icon"] : t[`statusdot__dot--${o}`]), _ = n(
16
+ t.statusdot__label,
17
+ a && t["statusdot__label--icon"],
18
+ m === "ondark" && t["statusdot__label--on-dark"]
19
+ );
20
+ return /* @__PURE__ */ s.createElement("span", { id: l, className: f, "data-testid": p, "data-analyticsid": h.StatusDot }, /* @__PURE__ */ s.createElement("span", { className: g }, /* @__PURE__ */ s.createElement(C, { variant: o })), /* @__PURE__ */ s.createElement("span", { className: _ }, i));
21
+ }, H = b;
22
+ export {
23
+ w as StatusDotModes,
24
+ z as StatusDotVariant,
25
+ H as default
26
+ };
27
+ //# sourceMappingURL=StatusDot.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"StatusDot.js","sources":["../src/components/StatusDot/StatusDot.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { IconSize } from '../..';\nimport { AnalyticsId } from '../../constants';\nimport { getColor } from '../../theme/currys';\nimport Attachment from '../Icons/Attachment';\nimport Group from '../Icons/Group';\nimport { Icon } from '../Icons/Icon';\nimport NoAccess from '../Icons/NoAccess';\nimport Undo from '../Icons/Undo';\n\nimport styles from './styles.module.scss';\n\nexport enum StatusDotModes {\n onwhite = 'onwhite',\n ondark = 'ondark',\n}\n\nexport enum StatusDotVariant {\n info = 'info',\n warning = 'warning',\n alert = 'alert',\n cancelled = 'cancelled',\n active = 'active',\n transparent = 'transparent',\n recurring = 'recurring',\n group = 'group',\n noaccess = 'noaccess',\n attachment = 'attachment',\n}\n\nexport interface StatusDotIconProps {\n /** The variant defines style formatting and what icon to use */\n variant?: keyof typeof StatusDotVariant;\n}\n\nconst StatusDotIcon: React.FC<StatusDotIconProps> = ({ variant }) => {\n if (variant === StatusDotVariant.recurring) {\n return <Icon size={IconSize.XXSmall} svgIcon={Undo} />;\n } else if (variant === StatusDotVariant.group) {\n return <Icon size={IconSize.XXSmall} svgIcon={Group} />;\n } else if (variant === StatusDotVariant.noaccess) {\n return <Icon size={IconSize.XXSmall} svgIcon={NoAccess} color={getColor('cherry', 600)} />;\n } else if (variant === StatusDotVariant.attachment) {\n return <Icon size={IconSize.XXSmall} svgIcon={Attachment} />;\n }\n\n return null;\n};\n\nexport interface StatusDotProps {\n /** id that is placed on the wrapper */\n id?: string;\n /** Defines the color mode, onwhite, ondark etc. */\n mode?: keyof typeof StatusDotModes;\n /** Visual variants for the statusdot */\n variant?: keyof typeof StatusDotVariant;\n /** Text placed to the right of the statusdot */\n text: string;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nconst StatusDot: React.FC<StatusDotProps> = props => {\n const { id, mode = StatusDotModes.onwhite, variant = StatusDotVariant.info, text, className, testId } = props;\n\n const hasIcon =\n variant === StatusDotVariant.recurring ||\n variant === StatusDotVariant.group ||\n variant === StatusDotVariant.noaccess ||\n variant === StatusDotVariant.attachment;\n\n const isCancelled = variant === StatusDotVariant.cancelled;\n\n const statusDotClasses = classNames(styles['statusdot'], isCancelled && styles['statusdot--cancelled'], className);\n const dotClasses = classNames(styles['statusdot__dot'], hasIcon ? styles[`statusdot__dot--icon`] : styles[`statusdot__dot--${variant}`]);\n const labelClasses = classNames(\n styles['statusdot__label'],\n hasIcon && styles['statusdot__label--icon'],\n mode === StatusDotModes.ondark && styles['statusdot__label--on-dark']\n );\n\n return (\n <span id={id} className={statusDotClasses} data-testid={testId} data-analyticsid={AnalyticsId.StatusDot}>\n <span className={dotClasses}>\n <StatusDotIcon variant={variant} />\n </span>\n <span className={labelClasses}>{text}</span>\n </span>\n );\n};\n\nexport default StatusDot;\n"],"names":["StatusDotModes","StatusDotVariant","StatusDotIcon","variant","Icon","IconSize","Undo","Group","React","NoAccess","getColor","Attachment","StatusDot","props","id","mode","text","className","testId","hasIcon","isCancelled","statusDotClasses","classNames","styles","dotClasses","labelClasses","AnalyticsId","StatusDot$1"],"mappings":"ofAeY,IAAAA,GAAAA,IACVA,EAAA,QAAU,UACVA,EAAA,OAAS,SAFCA,IAAAA,GAAA,CAAA,CAAA,EAKAC,GAAAA,IACVA,EAAA,KAAO,OACPA,EAAA,QAAU,UACVA,EAAA,MAAQ,QACRA,EAAA,UAAY,YACZA,EAAA,OAAS,SACTA,EAAA,YAAc,cACdA,EAAA,UAAY,YACZA,EAAA,MAAQ,QACRA,EAAA,SAAW,WACXA,EAAA,WAAa,aAVHA,IAAAA,GAAA,CAAA,CAAA,EAkBZ,MAAMC,EAA8C,CAAC,CAAE,QAAAC,KACjDA,IAAY,4BACNC,EAAK,CAAA,KAAMC,EAAS,QAAS,QAASC,CAAM,CAAA,EAC3CH,IAAY,wBACbC,EAAK,CAAA,KAAMC,EAAS,QAAS,QAASE,CAAO,CAAA,EAC5CJ,IAAY,WACdK,EAAA,cAACJ,EAAK,CAAA,KAAMC,EAAS,QAAS,QAASI,EAAU,MAAOC,EAAS,SAAU,GAAG,CAAG,CAAA,EAC/EP,IAAY,6BACbC,EAAK,CAAA,KAAMC,EAAS,QAAS,QAASM,CAAY,CAAA,EAGrD,KAkBHC,EAA+CC,GAAA,CAC7C,KAAA,CAAE,GAAAC,EAAI,KAAAC,EAAO,UAAwB,QAAAZ,EAAU,OAAuB,KAAAa,EAAM,UAAAC,EAAW,OAAAC,CAAW,EAAAL,EAElGM,EACJhB,IAAY,aACZA,IAAY,SACZA,IAAY,YACZA,IAAY,aAERiB,EAAcjB,IAAY,YAE1BkB,EAAmBC,EAAWC,EAAO,UAAcH,GAAeG,EAAO,sBAAsB,EAAGN,CAAS,EAC3GO,EAAaF,EAAWC,EAAO,eAAmBJ,EAAUI,EAAO,sBAAsB,EAAIA,EAAO,mBAAmBpB,CAAO,EAAE,CAAC,EACjIsB,EAAeH,EACnBC,EAAO,iBACPJ,GAAWI,EAAO,wBAAwB,EAC1CR,IAAS,UAAyBQ,EAAO,2BAA2B,CAAA,EAIpE,OAAAf,EAAA,cAAC,OAAK,CAAA,GAAAM,EAAQ,UAAWO,EAAkB,cAAaH,EAAQ,mBAAkBQ,EAAY,SAAA,EAC3FlB,EAAA,cAAA,OAAA,CAAK,UAAWgB,CACf,EAAAhB,EAAA,cAACN,EAAc,CAAA,QAAAC,CAAA,CAAkB,CACnC,kBACC,OAAK,CAAA,UAAWsB,CAAe,EAAAT,CAAK,CACvC,CAEJ,EAEAW,EAAef"}
1
+ {"version":3,"file":"StatusDot.js","sources":["../../../src/components/StatusDot/StatusDot.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { IconSize } from '../..';\nimport { AnalyticsId } from '../../constants';\nimport { getColor } from '../../theme/currys';\nimport { Icon } from '../Icon';\nimport Attachment from '../Icons/Attachment';\nimport Group from '../Icons/Group';\nimport NoAccess from '../Icons/NoAccess';\nimport Undo from '../Icons/Undo';\n\nimport styles from './styles.module.scss';\n\nexport enum StatusDotModes {\n onwhite = 'onwhite',\n ondark = 'ondark',\n}\n\nexport enum StatusDotVariant {\n info = 'info',\n warning = 'warning',\n alert = 'alert',\n cancelled = 'cancelled',\n active = 'active',\n transparent = 'transparent',\n recurring = 'recurring',\n group = 'group',\n noaccess = 'noaccess',\n attachment = 'attachment',\n}\n\nexport interface StatusDotIconProps {\n /** The variant defines style formatting and what icon to use */\n variant?: keyof typeof StatusDotVariant;\n}\n\nconst StatusDotIcon: React.FC<StatusDotIconProps> = ({ variant }) => {\n if (variant === StatusDotVariant.recurring) {\n return <Icon size={IconSize.XXSmall} svgIcon={Undo} />;\n } else if (variant === StatusDotVariant.group) {\n return <Icon size={IconSize.XXSmall} svgIcon={Group} />;\n } else if (variant === StatusDotVariant.noaccess) {\n return <Icon size={IconSize.XXSmall} svgIcon={NoAccess} color={getColor('cherry', 600)} />;\n } else if (variant === StatusDotVariant.attachment) {\n return <Icon size={IconSize.XXSmall} svgIcon={Attachment} />;\n }\n\n return null;\n};\n\nexport interface StatusDotProps {\n /** id that is placed on the wrapper */\n id?: string;\n /** Defines the color mode, onwhite, ondark etc. */\n mode?: keyof typeof StatusDotModes;\n /** Visual variants for the statusdot */\n variant?: keyof typeof StatusDotVariant;\n /** Text placed to the right of the statusdot */\n text: string;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nconst StatusDot: React.FC<StatusDotProps> = props => {\n const { id, mode = StatusDotModes.onwhite, variant = StatusDotVariant.info, text, className, testId } = props;\n\n const hasIcon =\n variant === StatusDotVariant.recurring ||\n variant === StatusDotVariant.group ||\n variant === StatusDotVariant.noaccess ||\n variant === StatusDotVariant.attachment;\n\n const isCancelled = variant === StatusDotVariant.cancelled;\n\n const statusDotClasses = classNames(styles['statusdot'], isCancelled && styles['statusdot--cancelled'], className);\n const dotClasses = classNames(styles['statusdot__dot'], hasIcon ? styles[`statusdot__dot--icon`] : styles[`statusdot__dot--${variant}`]);\n const labelClasses = classNames(\n styles['statusdot__label'],\n hasIcon && styles['statusdot__label--icon'],\n mode === StatusDotModes.ondark && styles['statusdot__label--on-dark']\n );\n\n return (\n <span id={id} className={statusDotClasses} data-testid={testId} data-analyticsid={AnalyticsId.StatusDot}>\n <span className={dotClasses}>\n <StatusDotIcon variant={variant} />\n </span>\n <span className={labelClasses}>{text}</span>\n </span>\n );\n};\n\nexport default StatusDot;\n"],"names":["StatusDotModes","StatusDotVariant","StatusDotIcon","variant","Icon","IconSize","Undo","Group","React","NoAccess","getColor","Attachment","StatusDot","props","id","mode","text","className","testId","hasIcon","isCancelled","statusDotClasses","classNames","styles","dotClasses","labelClasses","AnalyticsId","StatusDot$1"],"mappings":";;;;;;;;;;;;AAeY,IAAAA,sBAAAA,OACVA,EAAA,UAAU,WACVA,EAAA,SAAS,UAFCA,IAAAA,KAAA,CAAA,CAAA,GAKAC,sBAAAA,OACVA,EAAA,OAAO,QACPA,EAAA,UAAU,WACVA,EAAA,QAAQ,SACRA,EAAA,YAAY,aACZA,EAAA,SAAS,UACTA,EAAA,cAAc,eACdA,EAAA,YAAY,aACZA,EAAA,QAAQ,SACRA,EAAA,WAAW,YACXA,EAAA,aAAa,cAVHA,IAAAA,KAAA,CAAA,CAAA;AAkBZ,MAAMC,IAA8C,CAAC,EAAE,SAAAC,QACjDA,MAAY,8CACNC,GAAK,EAAA,MAAMC,EAAS,SAAS,SAASC,EAAM,CAAA,IAC3CH,MAAY,0CACbC,GAAK,EAAA,MAAMC,EAAS,SAAS,SAASE,EAAO,CAAA,IAC5CJ,MAAY,aACdK,gBAAAA,EAAA,cAACJ,GAAK,EAAA,MAAMC,EAAS,SAAS,SAASI,GAAU,OAAOC,EAAS,UAAU,GAAG,EAAG,CAAA,IAC/EP,MAAY,+CACbC,GAAK,EAAA,MAAMC,EAAS,SAAS,SAASM,EAAY,CAAA,IAGrD,MAkBHC,IAAsC,CAASC,MAAA;AAC7C,QAAA,EAAE,IAAAC,GAAI,MAAAC,IAAO,WAAwB,SAAAZ,IAAU,QAAuB,MAAAa,GAAM,WAAAC,GAAW,QAAAC,EAAW,IAAAL,GAElGM,IACJhB,MAAY,eACZA,MAAY,WACZA,MAAY,cACZA,MAAY,cAERiB,IAAcjB,MAAY,aAE1BkB,IAAmBC,EAAWC,EAAO,WAAcH,KAAeG,EAAO,sBAAsB,GAAGN,CAAS,GAC3GO,IAAaF,EAAWC,EAAO,gBAAmBJ,IAAUI,EAAO,sBAAsB,IAAIA,EAAO,mBAAmBpB,CAAO,EAAE,CAAC,GACjIsB,IAAeH;AAAA,IACnBC,EAAO;AAAA,IACPJ,KAAWI,EAAO,wBAAwB;AAAA,IAC1CR,MAAS,YAAyBQ,EAAO,2BAA2B;AAAA,EAAA;AAIpE,SAAAf,gBAAAA,EAAA,cAAC,QAAK,EAAA,IAAAM,GAAQ,WAAWO,GAAkB,eAAaH,GAAQ,oBAAkBQ,EAAY,UAAA,GAC3FlB,gBAAAA,EAAA,cAAA,QAAA,EAAK,WAAWgB,EACf,GAAAhB,gBAAAA,EAAA,cAACN,GAAc,EAAA,SAAAC,EAAA,CAAkB,CACnC,mCACC,QAAK,EAAA,WAAWsB,EAAe,GAAAT,CAAK,CACvC;AAEJ,GAEAW,IAAef;"}
@@ -1,2 +1,8 @@
1
- import{S as o}from"../../StatusDot.js";import{a as h,b as j}from"../../StatusDot.js";import"react";import"classnames";import"../../theme/grid.js";import"../../hooks/useBreakpoint.js";import"../../constants.js";import"../../theme/currys/color.js";import"../../theme/index.js";import"../../theme/palette.js";import"../../theme/spacers.js";import"../Icons/Attachment.js";import"../Icons/Icon.js";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../utils/environment.js";import"../Icons/Group.js";import"../Icons/NoAccess.js";import"../Icons/Undo.js";import"./styles.module.scss";export{h as StatusDotModes,j as StatusDotVariant,o as default};
1
+ import o from "./StatusDot.js";
2
+ import { StatusDotModes as s, StatusDotVariant as e } from "./StatusDot.js";
3
+ export {
4
+ s as StatusDotModes,
5
+ e as StatusDotVariant,
6
+ o as default
7
+ };
2
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -6,6 +6,7 @@
6
6
  @import '../../scss/screen-reader';
7
7
 
8
8
  $status-dot-size: 0.937rem;
9
+
9
10
  .statusdot {
10
11
  position: relative;
11
12
  display: inline-flex;
@@ -0,0 +1,30 @@
1
+ import e from "react";
2
+ import { AnalyticsId as n } from "../../constants.js";
3
+ import d from "../StepButtons/StepButtons.js";
4
+ import i from "./styles.module.scss";
5
+ const f = ({
6
+ stepper: t,
7
+ children: c,
8
+ backButton: a,
9
+ forwardButton: s,
10
+ additionalButtons: m,
11
+ cancelButton: r,
12
+ stickyButtons: p = !1,
13
+ testId: l
14
+ }) => {
15
+ const o = a || s || m || r;
16
+ return /* @__PURE__ */ e.createElement("div", { "data-testid": l, "data-analyticsid": n.Step }, t && /* @__PURE__ */ e.createElement("div", { className: i.step__stepper }, t), /* @__PURE__ */ e.createElement("div", { className: i.step__content }, c), o && /* @__PURE__ */ e.createElement(
17
+ d,
18
+ {
19
+ backButton: a,
20
+ forwardButton: s,
21
+ additionalButtons: m,
22
+ cancelButton: r,
23
+ sticky: p
24
+ }
25
+ ));
26
+ }, S = f;
27
+ export {
28
+ S as default
29
+ };
30
+ //# sourceMappingURL=Step.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Step.js","sources":["../../../src/components/Step/Step.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\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","React","AnalyticsId","styles","StepButtons","Step$1"],"mappings":";;;;AA8BA,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;AAGxE,SAAAI,gBAAAA,EAAA,cAAC,SAAI,eAAaF,GAAQ,oBAAkBG,EAAY,KAAA,GACrDV,KAAWS,gBAAAA,EAAA,cAAC,OAAI,EAAA,WAAWE,EAAO,cAAgB,GAAAX,CAAQ,GAC1DS,gBAAAA,EAAA,cAAA,OAAA,EAAI,WAAWE,EAAO,cAAA,GAAgBV,CAAS,GAC/CO,KACCC,gBAAAA,EAAA;AAAA,IAACG;AAAA,IAAA;AAAA,MACC,YAAAV;AAAA,MACA,eAAAC;AAAA,MACA,mBAAAC;AAAA,MACA,cAAAC;AAAA,MACA,QAAQC;AAAA,IAAA;AAAA,EAAA,CAGd;AAEJ,GAEAO,IAAed;"}
@@ -1,2 +1,5 @@
1
- import e from"react";import{AnalyticsId as n}from"../../constants.js";import{S as d}from"../../StepButtons.js";import i from"./styles.module.scss";import"classnames";import"../StepButtons/styles.module.scss";const f=({stepper:t,children:p,backButton:a,forwardButton:s,additionalButtons:m,cancelButton:r,stickyButtons:c=!1,testId:o})=>{const l=a||s||m||r;return e.createElement("div",{"data-testid":o,"data-analyticsid":n.Step},t&&e.createElement("div",{className:i.step__stepper},t),e.createElement("div",{className:i.step__content},p),l&&e.createElement(d,{backButton:a,forwardButton:s,additionalButtons:m,cancelButton:r,sticky:c}))},g=f;export{g as default};
1
+ import e from "./Step.js";
2
+ export {
3
+ e as default
4
+ };
2
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/components/Step/Step.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\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","React","AnalyticsId","styles","StepButtons","Step$1"],"mappings":"gNA8BA,MAAMA,EAA4B,CAAC,CACjC,QAAAC,EACA,SAAAC,EACA,WAAAC,EACA,cAAAC,EACA,kBAAAC,EACA,aAAAC,EACA,cAAAC,EAAgB,GAChB,OAAAC,CACF,IAAM,CACE,MAAAC,EAAgBN,GAAcC,GAAiBC,GAAqBC,EAGxE,OAAAI,EAAA,cAAC,OAAI,cAAaF,EAAQ,mBAAkBG,EAAY,IAAA,EACrDV,GAAWS,EAAA,cAAC,MAAI,CAAA,UAAWE,EAAO,aAAgB,EAAAX,CAAQ,EAC1DS,EAAA,cAAA,MAAA,CAAI,UAAWE,EAAO,aAAA,EAAgBV,CAAS,EAC/CO,GACCC,EAAA,cAACG,EAAA,CACC,WAAAV,EACA,cAAAC,EACA,kBAAAC,EACA,aAAAC,EACA,OAAQC,CAAA,CAAA,CAGd,CAEJ,EAEAO,EAAed"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,21 @@
1
+ import s from "react";
2
+ import e from "classnames";
3
+ import { AnalyticsId as m } from "../../constants.js";
4
+ import t from "./styles.module.scss";
5
+ const p = (r) => {
6
+ const { backButton: n, forwardButton: a, additionalButtons: o, cancelButton: l, sticky: u = !1, testId: i } = r, c = e(t.stepbuttons, u && t["stepbuttons--has-sticky-buttons"]);
7
+ return n || a || o || l ? /* @__PURE__ */ s.createElement("div", { className: c, "data-testid": i, "data-analyticsid": m.StepButtons }, (n || a) && /* @__PURE__ */ s.createElement("div", { className: e(t.stepbuttons__buttons, t["stepbuttons__buttons--navigation"]) }, n && s.cloneElement(n, {
8
+ variant: "outline",
9
+ wrapperClassName: e(t["stepbuttons__button--back"])
10
+ }), a && s.cloneElement(a, {
11
+ variant: "fill",
12
+ wrapperClassName: e(t["stepbuttons__button--forward"])
13
+ })), o && /* @__PURE__ */ s.createElement("div", { className: e(t.stepbuttons__buttons, t["stepbuttons__buttons--additional"]) }, o), l && /* @__PURE__ */ s.createElement("div", { className: t.stepbuttons__buttons }, s.cloneElement(l, {
14
+ variant: "borderless"
15
+ }))) : null;
16
+ }, v = p;
17
+ export {
18
+ p as StepButtons,
19
+ v as default
20
+ };
21
+ //# sourceMappingURL=StepButtons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StepButtons.js","sources":["../../../src/components/StepButtons/StepButtons.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { AnalyticsId } from '../../constants';\nimport { ButtonProps } from '../Button';\n\nimport styles from './styles.module.scss';\n\nexport interface StepButtonsProps {\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. Default: false */\n sticky?: boolean;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nexport const StepButtons: React.FC<StepButtonsProps> = props => {\n const { backButton, forwardButton, additionalButtons, cancelButton, sticky = false, testId } = props;\n\n const navigationClasses = classNames(styles.stepbuttons, sticky && styles['stepbuttons--has-sticky-buttons']);\n\n if (backButton || forwardButton || additionalButtons || cancelButton) {\n return (\n <div className={navigationClasses} data-testid={testId} data-analyticsid={AnalyticsId.StepButtons}>\n {(backButton || forwardButton) && (\n <div className={classNames(styles.stepbuttons__buttons, styles['stepbuttons__buttons--navigation'])}>\n {backButton &&\n React.cloneElement(backButton, {\n variant: 'outline',\n wrapperClassName: classNames(styles['stepbuttons__button--back']),\n })}\n {forwardButton &&\n React.cloneElement(forwardButton, {\n variant: 'fill',\n wrapperClassName: classNames(styles['stepbuttons__button--forward']),\n })}\n </div>\n )}\n {additionalButtons && (\n <div className={classNames(styles.stepbuttons__buttons, styles['stepbuttons__buttons--additional'])}>{additionalButtons}</div>\n )}\n {cancelButton && (\n <div className={styles.stepbuttons__buttons}>\n {React.cloneElement(cancelButton, {\n variant: 'borderless',\n })}\n </div>\n )}\n </div>\n );\n }\n return null;\n};\n\nexport default StepButtons;\n"],"names":["StepButtons","props","backButton","forwardButton","additionalButtons","cancelButton","sticky","testId","navigationClasses","classNames","styles","React","AnalyticsId","StepButtons$1"],"mappings":";;;;AAwBO,MAAMA,IAA0C,CAASC,MAAA;AACxD,QAAA,EAAE,YAAAC,GAAY,eAAAC,GAAe,mBAAAC,GAAmB,cAAAC,GAAc,QAAAC,IAAS,IAAO,QAAAC,EAAW,IAAAN,GAEzFO,IAAoBC,EAAWC,EAAO,aAAaJ,KAAUI,EAAO,iCAAiC,CAAC;AAExG,SAAAR,KAAcC,KAAiBC,KAAqBC,IAEpDM,gBAAAA,EAAA,cAAC,OAAI,EAAA,WAAWH,GAAmB,eAAaD,GAAQ,oBAAkBK,EAAY,YAClF,IAAAV,KAAcC,MACdQ,gBAAAA,EAAA,cAAC,SAAI,WAAWF,EAAWC,EAAO,sBAAsBA,EAAO,kCAAkC,CAAC,EAC/F,GAAAR,KACCS,EAAM,aAAaT,GAAY;AAAA,IAC7B,SAAS;AAAA,IACT,kBAAkBO,EAAWC,EAAO,2BAA2B,CAAC;AAAA,EACjE,CAAA,GACFP,KACCQ,EAAM,aAAaR,GAAe;AAAA,IAChC,SAAS;AAAA,IACT,kBAAkBM,EAAWC,EAAO,8BAA8B,CAAC;AAAA,EACpE,CAAA,CACL,GAEDN,KACCO,gBAAAA,EAAA,cAAC,SAAI,WAAWF,EAAWC,EAAO,sBAAsBA,EAAO,kCAAkC,CAAC,KAAIN,CAAkB,GAEzHC,KACEM,gBAAAA,EAAA,cAAA,OAAA,EAAI,WAAWD,EAAO,qBAAA,GACpBC,EAAM,aAAaN,GAAc;AAAA,IAChC,SAAS;AAAA,EACV,CAAA,CACH,CAEJ,IAGG;AACT,GAEAQ,IAAeb;"}
@@ -1,2 +1,7 @@
1
- import{S as o}from"../../StepButtons.js";import{a as s}from"../../StepButtons.js";import"react";import"classnames";import"../../constants.js";import"./styles.module.scss";export{s as StepButtons,o as default};
1
+ import o from "./StepButtons.js";
2
+ import { StepButtons as r } from "./StepButtons.js";
3
+ export {
4
+ r as StepButtons,
5
+ o as default
6
+ };
2
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -0,0 +1,16 @@
1
+ import d from "react";
2
+ import l from "classnames";
3
+ import { STEPPER_PADDING_X_PX as m } from "./utils.js";
4
+ import e from "./styles.module.scss";
5
+ const f = ({ index: o, completed: p, distanceBetweenDots: s, position: t }) => {
6
+ const r = l(
7
+ e.stepper__dot,
8
+ p && e["stepper__dot--completed"],
9
+ t && e[`stepper__dot--${t}`]
10
+ ), a = !t && typeof o < "u" && typeof s < "u" ? { left: `${o * s + m}px` } : void 0;
11
+ return /* @__PURE__ */ d.createElement("span", { className: r, style: a, "data-testid": "dot" });
12
+ }, u = f;
13
+ export {
14
+ u as default
15
+ };
16
+ //# sourceMappingURL=Dot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dot.js","sources":["../../../src/components/Stepper/Dot.tsx"],"sourcesContent":["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"],"names":["Dot","index","completed","distanceBetweenDots","position","classes","classNames","styles","style","STEPPER_PADDING_X_PX","Dot$1"],"mappings":";;;;AAeA,MAAMA,IAA0B,CAAC,EAAE,OAAAC,GAAO,WAAAC,GAAW,qBAAAC,GAAqB,UAAAC,QAAe;AACvF,QAAMC,IAAUC;AAAA,IACdC,EAAO;AAAA,IACPL,KAAaK,EAAO,yBAAyB;AAAA,IAC7CH,KAAYG,EAAO,iBAAiBH,CAAQ,EAAE;AAAA,EAAA,GAG1CI,IADoB,CAACJ,KAAY,OAAOH,IAAU,OAAe,OAAOE,IAAwB,MAElG,EAAE,MAAM,GAAGF,IAAQE,IAAsBM,CAAoB,KAC7D,IAAA;AAEJ,yCAAQ,QAAK,EAAA,WAAWJ,GAAS,OAAAG,GAAc,eAAY,MAAM,CAAA;AACnE,GAEAE,IAAeV;"}
@@ -0,0 +1,7 @@
1
+ import t from "react";
2
+ import c from "./Dot.js";
3
+ const l = ({ allowedValues: o, currentValue: m, distanceBetweenDots: r }) => /* @__PURE__ */ t.createElement(t.Fragment, null, o.map((e, a) => /* @__PURE__ */ t.createElement(c, { index: a, key: e, completed: e < m, distanceBetweenDots: r }))), s = l;
4
+ export {
5
+ s as default
6
+ };
7
+ //# sourceMappingURL=DotList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DotList.js","sources":["../../../src/components/Stepper/DotList.tsx"],"sourcesContent":["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"],"names":["Dots","allowedValues","currentValue","distanceBetweenDots","React","value","index","Dot","DotList"],"mappings":";;AAUA,MAAMA,IAA+B,CAAC,EAAE,eAAAC,GAAe,cAAAC,GAAc,qBAAAC,EAAoB,MAEpFC,gBAAAA,EAAA,cAAAA,EAAA,UAAA,MAAAH,EAAc,IAAI,CAACI,GAAOC,MACzBF,gBAAAA,EAAA,cAACG,GAAI,EAAA,OAAAD,GAAc,KAAKD,GAAO,WAAWA,IAAQH,GAAc,qBAAAC,EAA0C,CAAA,CAC3G,CACH,GAGFK,IAAeR;"}
@@ -0,0 +1,35 @@
1
+ import e, { useRef as d } from "react";
2
+ import u from "./Dot.js";
3
+ import V from "./DotList.js";
4
+ import { getValidatedProps as $, getAllowedValues as k, getMaximumDots as M, getDistanceBetweenDots as N, getMarkerPosition as P } from "./utils.js";
5
+ import { AnalyticsId as S } from "../../constants.js";
6
+ import { useSize as f } from "../../hooks/useSize.js";
7
+ import { getAriaLabelAttributes as L } from "../../utils/accessibility.js";
8
+ import s from "./styles.module.scss";
9
+ const R = ({ ariaLabelledById: g, ariaLabel: w, value: x, min: b = 0, max: h = 2, testId: D }) => {
10
+ const n = d(null), i = d(null), { width: E = 0 } = f(n) || {}, { width: p = 0 } = f(i) || {}, { validatedValue: t, validatedMin: o, validatedMax: a } = $(x, b, h), r = k(o, a), v = r.indexOf(t), A = M(E), m = N(p, r.length), c = P(m, v), l = r.length <= A, _ = t === a, y = L({ label: w, id: g });
11
+ return /* @__PURE__ */ e.createElement("div", { className: s["stepper-wrapper"], ref: n }, /* @__PURE__ */ e.createElement(
12
+ "span",
13
+ {
14
+ role: "progressbar",
15
+ ...y,
16
+ "aria-valuenow": t,
17
+ "aria-valuemin": o,
18
+ "aria-valuemax": a,
19
+ className: s.stepper,
20
+ style: {
21
+ backgroundPositionX: `${_ ? p : c}px`
22
+ },
23
+ ref: i,
24
+ "data-testid": D,
25
+ "data-analyticsid": S.Stepper
26
+ },
27
+ l && /* @__PURE__ */ e.createElement(V, { allowedValues: r, currentValue: t, distanceBetweenDots: m }),
28
+ !l && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(u, { completed: t > o, position: "left" }), /* @__PURE__ */ e.createElement(u, { completed: t === a, position: "right" })),
29
+ /* @__PURE__ */ e.createElement("span", { className: s.stepper__marker, style: { left: `${c}px` } })
30
+ ), !l && /* @__PURE__ */ e.createElement("span", { className: s.stepper__number }, `${t}/${a}`));
31
+ }, j = R;
32
+ export {
33
+ j as default
34
+ };
35
+ //# sourceMappingURL=Stepper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Stepper.js","sources":["../../../src/components/Stepper/Stepper.tsx"],"sourcesContent":["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":["Stepper","ariaLabelledById","ariaLabel","value","min","max","testId","wrapperRef","useRef","ref","wrapperWidth","useSize","stepperWidth","validatedValue","validatedMin","validatedMax","getValidatedProps","allowedValues","getAllowedValues","index","maximumDots","getMaximumDots","distanceBetweenDots","getDistanceBetweenDots","markerPosition","getMarkerPosition","showAllDots","isCompleted","ariaLabelAttributes","getAriaLabelAttributes","styles","React","AnalyticsId","DotList","Dot","Stepper$1"],"mappings":";;;;;;;;AAoCA,MAAMA,IAAkC,CAAC,EAAE,kBAAAC,GAAkB,WAAAC,GAAW,OAAAC,GAAO,KAAAC,IAAM,GAAG,KAAAC,IAAM,GAAG,QAAAC,QAAa;AACtG,QAAAC,IAAaC,EAAuB,IAAI,GACxCC,IAAMD,EAAwB,IAAI,GAClC,EAAE,OAAOE,IAAe,MAAMC,EAAQJ,CAAU,KAAK,IACrD,EAAE,OAAOK,IAAe,MAAMD,EAAQF,CAAG,KAAK,IAE9C,EAAE,gBAAAI,GAAgB,cAAAC,GAAc,cAAAC,EAAA,IAAiBC,EAAkBb,GAAOC,GAAKC,CAAG,GAClFY,IAAgBC,EAAiBJ,GAAcC,CAAY,GAC3DI,IAAQF,EAAc,QAAQJ,CAAc,GAC5CO,IAAcC,EAAeX,CAAY,GACzCY,IAAsBC,EAAuBX,GAAcK,EAAc,MAAM,GAC/EO,IAAiBC,EAAkBH,GAAqBH,CAAK,GAE7DO,IAAcT,EAAc,UAAUG,GACtCO,IAAcd,MAAmBE,GAEjCa,IAAsBC,EAAuB,EAAE,OAAO3B,GAAW,IAAID,GAAkB;AAE7F,yCACG,OAAI,EAAA,WAAW6B,EAAO,iBAAiB,GAAG,KAAKvB,EAC9C,GAAAwB,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACJ,GAAGH;AAAA,MACJ,iBAAef;AAAA,MACf,iBAAeC;AAAA,MACf,iBAAeC;AAAA,MACf,WAAWe,EAAO;AAAA,MAClB,OAAO;AAAA,QACL,qBAAqB,GAAGH,IAAcf,IAAeY,CAAc;AAAA,MACrE;AAAA,MACA,KAAAf;AAAA,MACA,eAAaH;AAAA,MACb,oBAAkB0B,EAAY;AAAA,IAAA;AAAA,IAE7BN,KAAgBK,gBAAAA,EAAA,cAAAE,GAAA,EAAQ,eAAAhB,GAA8B,cAAcJ,GAAgB,qBAAAS,GAA0C;AAAA,IAC9H,CAACI,KACAK,gBAAAA,EAAA,cAAAA,EAAA,UAAA,sCACGG,GAAI,EAAA,WAAWrB,IAAiBC,GAAc,UAAS,OAAO,CAAA,mCAC9DoB,GAAI,EAAA,WAAWrB,MAAmBE,GAAc,UAAS,QAAQ,CAAA,CACpE;AAAA,IAEFgB,gBAAAA,EAAA,cAAC,QAAK,EAAA,WAAWD,EAAO,iBAAiB,OAAO,EAAE,MAAM,GAAGN,CAAc,KAAQ,EAAA,CAAA;AAAA,EAAA,GAElF,CAACE,KAAeK,gBAAAA,EAAA,cAAC,QAAK,EAAA,WAAWD,EAAO,gBAAA,GAAkB,GAAGjB,CAAc,IAAIE,CAAY,EAAG,CACjG;AAEJ,GAEAoB,IAAenC;"}
@@ -1,2 +1,5 @@
1
- import o,{useRef as D}from"react";import b from"classnames";import l from"./styles.module.scss";import{AnalyticsId as v}from"../../constants.js";import{useSize as A}from"../../hooks/useSize.js";import{getAriaLabelAttributes as R}from"../../utils/accessibility.js";import"../../utils/debounce.js";const S=4,M=24,$=8,x=(e,t)=>e<t?e:t-1,k=(e,t)=>t<e?e:t,I=(e,t,s)=>typeof e>"u"||e<t?t:e>s?s:e,W=e=>Math.floor(e/(M+S)),X=(e,t)=>(e-M)/(t-1),T=(e,t)=>e*t,L=(e,t)=>Array.from(Array(t-e+1),(s,a)=>a+e),C=(e,t,s)=>{const a=x(t,s),r=k(a,s);return{validatedValue:I(e,a,r),validatedMin:a,validatedMax:r}},F=({index:e,completed:t,distanceBetweenDots:s,position:a})=>{const r=b(l.stepper__dot,t&&l["stepper__dot--completed"],a&&l[`stepper__dot--${a}`]),i=!a&&typeof e<"u"&&typeof s<"u"?{left:`${e*s+$}px`}:void 0;return o.createElement("span",{className:r,style:i,"data-testid":"dot"})},f=F,K=({allowedValues:e,currentValue:t,distanceBetweenDots:s})=>o.createElement(o.Fragment,null,e.map((a,r)=>o.createElement(f,{index:r,key:a,completed:a<t,distanceBetweenDots:s}))),O=K,z=({ariaLabelledById:e,ariaLabel:t,value:s,min:a=0,max:r=2,testId:p})=>{const i=D(null),_=D(null),{width:h=0}=A(i)||{},{width:g=0}=A(_)||{},{validatedValue:n,validatedMin:m,validatedMax:c}=C(s,a,r),d=L(m,c),V=d.indexOf(n),w=W(h),E=X(g,d.length),y=T(E,V),u=d.length<=w,P=n===c,N=R({label:t,id:e});return o.createElement("div",{className:l["stepper-wrapper"],ref:i},o.createElement("span",{role:"progressbar",...N,"aria-valuenow":n,"aria-valuemin":m,"aria-valuemax":c,className:l.stepper,style:{backgroundPositionX:`${P?g:y}px`},ref:_,"data-testid":p,"data-analyticsid":v.Stepper},u&&o.createElement(O,{allowedValues:d,currentValue:n,distanceBetweenDots:E}),!u&&o.createElement(o.Fragment,null,o.createElement(f,{completed:n>m,position:"left"}),o.createElement(f,{completed:n===c,position:"right"})),o.createElement("span",{className:l.stepper__marker,style:{left:`${y}px`}})),!u&&o.createElement("span",{className:l.stepper__number},`${n}/${c}`))},U=z;export{U as default};
1
+ import p from "./Stepper.js";
2
+ export {
3
+ p as default
4
+ };
2
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
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","Dot$1","Dots","allowedValues","currentValue","React","DotList","Stepper","ariaLabelledById","ariaLabel","testId","wrapperRef","useRef","ref","wrapperWidth","useSize","validatedValue","maximumDots","markerPosition","showAllDots","isCompleted","ariaLabelAttributes","getAriaLabelAttributes","AnalyticsId","Stepper$1"],"mappings":"wSAGA,MAAMA,EAA6B,EAK7BC,EAAkB,GAKXC,EAAuB,EAQvBC,EAAkB,CAACC,EAAaC,IAAyBD,EAAMC,EAAMD,EAAMC,EAAM,EAQjFC,EAAkB,CAACF,EAAaC,IAAyBA,EAAMD,EAAMA,EAAMC,EAS3EE,EAAoB,CAACC,EAA2BJ,EAAaC,IACpE,OAAOG,EAAU,KAAeA,EAAQJ,EACnCA,EAGFI,EAAQH,EAAMA,EAAMG,EAQhBC,EAAkBC,GAAiC,KAAK,MAAMA,GAAgBT,EAAkBD,EAA2B,EAQ3HW,EAAyB,CAACD,EAAsBE,KAA0BF,EAAeT,IAAoBW,EAAO,GAQpHC,EAAoB,CAACC,EAA6BC,IAA0BD,EAAsBC,EAQlGC,EAAmB,CAACZ,EAAaC,IAA0B,MAAM,KAAK,MAAMA,EAAMD,EAAM,CAAC,EAAG,CAACa,EAAGF,IAAUA,EAAQX,CAAG,EASrHc,EAAoB,CAC/BV,EACAJ,EACAC,IAC2E,CACrE,MAAAc,EAAehB,EAAgBC,EAAKC,CAAG,EACvCe,EAAed,EAAgBa,EAAcd,CAAG,EAG/C,MAAA,CAAE,eAFcE,EAAkBC,EAAOW,EAAcC,CAAY,EAEjD,aAAAD,EAAc,aAAAC,EACzC,EC/EMC,EAA0B,CAAC,CAAE,MAAAN,EAAO,UAAAO,EAAW,oBAAAR,EAAqB,SAAAS,KAAe,CACvF,MAAMC,EAAUC,EACdC,EAAO,aACPJ,GAAaI,EAAO,yBAAyB,EAC7CH,GAAYG,EAAO,iBAAiBH,CAAQ,EAAE,CAAA,EAG1CI,EADoB,CAACJ,GAAY,OAAOR,EAAU,KAAe,OAAOD,EAAwB,IAElG,CAAE,KAAM,GAAGC,EAAQD,EAAsBZ,CAAoB,IAC7D,EAAA,OAEJ,uBAAQ,OAAK,CAAA,UAAWsB,EAAS,MAAAG,EAAc,cAAY,KAAM,CAAA,CACnE,EAEAC,EAAeP,ECnBTQ,EAA+B,CAAC,CAAE,cAAAC,EAAe,aAAAC,EAAc,oBAAAjB,CAAoB,IAEpFkB,EAAA,cAAAA,EAAA,SAAA,KAAAF,EAAc,IAAI,CAACtB,EAAOO,IACzBiB,EAAA,cAACX,EAAI,CAAA,MAAAN,EAAc,IAAKP,EAAO,UAAWA,EAAQuB,EAAc,oBAAAjB,CAA0C,CAAA,CAC3G,CACH,EAGFmB,EAAeJ,ECkBTK,EAAkC,CAAC,CAAE,iBAAAC,EAAkB,UAAAC,EAAW,MAAA5B,EAAO,IAAAJ,EAAM,EAAG,IAAAC,EAAM,EAAG,OAAAgC,KAAa,CACtG,MAAAC,EAAaC,EAAuB,IAAI,EACxCC,EAAMD,EAAwB,IAAI,EAClC,CAAE,MAAOE,EAAe,GAAMC,EAAQJ,CAAU,GAAK,GACrD,CAAE,MAAO5B,EAAe,GAAMgC,EAAQF,CAAG,GAAK,GAE9C,CAAE,eAAAG,EAAgB,aAAAxB,EAAc,aAAAC,CAAA,EAAiBF,EAAkBV,EAAOJ,EAAKC,CAAG,EAClFyB,EAAgBd,EAAiBG,EAAcC,CAAY,EAC3DL,EAAQe,EAAc,QAAQa,CAAc,EAC5CC,EAAcnC,EAAegC,CAAY,EACzC3B,EAAsBH,EAAuBD,EAAcoB,EAAc,MAAM,EAC/Ee,EAAiBhC,EAAkBC,EAAqBC,CAAK,EAE7D+B,EAAchB,EAAc,QAAUc,EACtCG,EAAcJ,IAAmBvB,EAEjC4B,EAAsBC,EAAuB,CAAE,MAAOb,EAAW,GAAID,EAAkB,EAE7F,uBACG,MAAI,CAAA,UAAWT,EAAO,iBAAiB,EAAG,IAAKY,CAC9C,EAAAN,EAAA,cAAC,OAAA,CACC,KAAK,cACJ,GAAGgB,EACJ,gBAAeL,EACf,gBAAexB,EACf,gBAAeC,EACf,UAAWM,EAAO,QAClB,MAAO,CACL,oBAAqB,GAAGqB,EAAcrC,EAAemC,CAAc,IACrE,EACA,IAAAL,EACA,cAAaH,EACb,mBAAkBa,EAAY,OAAA,EAE7BJ,GAAgBd,EAAA,cAAAC,EAAA,CAAQ,cAAAH,EAA8B,aAAca,EAAgB,oBAAA7B,EAA0C,EAC9H,CAACgC,GACAd,EAAA,cAAAA,EAAA,SAAA,qBACGX,EAAI,CAAA,UAAWsB,EAAiBxB,EAAc,SAAS,MAAO,CAAA,kBAC9DE,EAAI,CAAA,UAAWsB,IAAmBvB,EAAc,SAAS,OAAQ,CAAA,CACpE,EAEFY,EAAA,cAAC,OAAK,CAAA,UAAWN,EAAO,gBAAiB,MAAO,CAAE,KAAM,GAAGmB,CAAc,IAAQ,CAAA,CAAA,CAAA,EAElF,CAACC,GAAed,EAAA,cAAC,OAAK,CAAA,UAAWN,EAAO,eAAA,EAAkB,GAAGiB,CAAc,IAAIvB,CAAY,EAAG,CACjG,CAEJ,EAEA+B,EAAejB"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,16 @@
1
+ const c = 8, s = (t, e) => t < e ? t : e - 1, d = (t, e) => e < t ? t : e, _ = (t, e, o) => typeof t > "u" || t < e ? e : t > o ? o : t, M = (t) => Math.floor(t / 28), i = (t, e) => (t - 24) / (e - 1), l = (t, e) => t * e, D = (t, e) => Array.from(Array(e - t + 1), (o, a) => a + t), A = (t, e, o) => {
2
+ const a = s(e, o), n = d(a, o);
3
+ return { validatedValue: _(t, a, n), validatedMin: a, validatedMax: n };
4
+ };
5
+ export {
6
+ c as STEPPER_PADDING_X_PX,
7
+ D as getAllowedValues,
8
+ i as getDistanceBetweenDots,
9
+ l as getMarkerPosition,
10
+ M as getMaximumDots,
11
+ d as getValidatedMax,
12
+ s as getValidatedMin,
13
+ A as getValidatedProps,
14
+ _ as getValidatedValue
15
+ };
16
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sources":["../../../src/components/Stepper/utils.ts"],"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"],"names":["STEPPER_PADDING_X_PX","getValidatedMin","min","max","getValidatedMax","getValidatedValue","value","getMaximumDots","stepperWidth","getDistanceBetweenDots","dots","getMarkerPosition","distanceBetweenDots","index","getAllowedValues","_","getValidatedProps","validatedMin","validatedMax"],"mappings":"AAaO,MAAMA,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,IAAgB,EAA6C,GAQ3HC,IAAyB,CAACD,GAAsBE,OAA0BF,IAAe,OAAoBE,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;"}
@@ -0,0 +1,59 @@
1
+ import l, { useState as r, useRef as L, useEffect as b } from "react";
2
+ import g from "classnames";
3
+ import { getCurrentConfig as I, getCenteredOverflowTableStyle as N, getBreakpointClass as R } from "./utils.js";
4
+ import { AnalyticsId as _ } from "../../constants.js";
5
+ import { useBreakpoint as H } from "../../hooks/useBreakpoint.js";
6
+ import { useLayoutEvent as O } from "../../hooks/useLayoutEvent.js";
7
+ import { getAriaLabelAttributes as P } from "../../utils/accessibility.js";
8
+ import V from "../HorizontalScroll/HorizontalScroll.js";
9
+ import j from "./styles.module.scss";
10
+ var q = /* @__PURE__ */ ((e) => (e.none = "none", e.centeredoverflow = "centeredoverflow", e.horizontalscroll = "horizontalscroll", e.block = "block", e))(q || {}), D = /* @__PURE__ */ ((e) => (e.compact = "compact", e.normal = "normal", e))(D || {});
11
+ const F = [
12
+ {
13
+ breakpoint: "xl",
14
+ variant: "centeredoverflow",
15
+ fallbackVariant: "horizontalscroll"
16
+ /* horizontalscroll */
17
+ }
18
+ ], $ = [
19
+ {
20
+ breakpoint: "xl",
21
+ variant: "centeredoverflow",
22
+ fallbackVariant: "horizontalscroll"
23
+ /* horizontalscroll */
24
+ },
25
+ {
26
+ breakpoint: "sm",
27
+ variant: "centeredoverflow",
28
+ fallbackVariant: "block"
29
+ /* block */
30
+ }
31
+ ], M = ({
32
+ id: e,
33
+ testId: h,
34
+ className: p,
35
+ children: v,
36
+ breakpointConfig: i = F,
37
+ mode: w = "normal",
38
+ scrollAriaLabel: u,
39
+ scrollAriaLabelledById: k
40
+ }) => {
41
+ const [t, W] = r(), [a, z] = r(0), [E, y] = r(0), [s, S] = r(window.innerWidth), n = L(null), c = H();
42
+ b(() => {
43
+ W(I(i, c, a, s));
44
+ }, [i, c, a, s]), b(() => {
45
+ var o, m, f;
46
+ ((t == null ? void 0 : t.variant) === "centeredoverflow" || (t == null ? void 0 : t.variant) === "horizontalscroll") && z(((o = n.current) == null ? void 0 : o.getBoundingClientRect().width) ?? 0), (t == null ? void 0 : t.variant) === "centeredoverflow" && y(((f = (m = n.current) == null ? void 0 : m.parentElement) == null ? void 0 : f.getBoundingClientRect().width) ?? 0);
47
+ }, [t]), O(() => S(window.innerWidth), ["resize"], 100);
48
+ const A = (t == null ? void 0 : t.variant) === "centeredoverflow" ? N(E, a) : void 0, B = R(t), x = g(j.table, B, p), d = /* @__PURE__ */ l.createElement("table", { className: x, id: e, "data-testid": h, "data-analyticsid": _.Table, ref: n, style: A }, l.Children.map(v, (o) => l.isValidElement(o) && l.cloneElement(o, { mode: w }))), C = P({ label: u, id: k });
49
+ return (t == null ? void 0 : t.variant) === "horizontalscroll" ? /* @__PURE__ */ l.createElement(V, { childWidth: a, testId: "horizontal-scroll", ...C }, d) : d;
50
+ };
51
+ export {
52
+ D as ModeType,
53
+ q as ResponsiveTableVariant,
54
+ M as Table,
55
+ M as default,
56
+ F as defaultConfig,
57
+ $ as simpleConfig
58
+ };
59
+ //# sourceMappingURL=Table.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Table.js","sources":["../../../src/components/Table/Table.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState } from 'react';\n\nimport classNames from 'classnames';\n\nimport { getCurrentConfig, getBreakpointClass, getCenteredOverflowTableStyle } from './utils';\nimport { AnalyticsId } from '../../constants';\nimport { Breakpoint, useBreakpoint } from '../../hooks/useBreakpoint';\nimport { useLayoutEvent } from '../../hooks/useLayoutEvent';\nimport { getAriaLabelAttributes } from '../../utils/accessibility';\nimport HorizontalScroll from '../HorizontalScroll';\n\nimport styles from './styles.module.scss';\n\nexport enum ResponsiveTableVariant {\n /** No handling responsive behaviour. Default. */\n none = 'none',\n /** Overflow parent container to the left and right while remaining centered horizontally. */\n centeredoverflow = 'centeredoverflow',\n /** Show horizontal scrollbar when table is too big for the screen. */\n horizontalscroll = 'horizontalscroll',\n /** Collapse to two columns. */\n block = 'block',\n}\nexport enum ModeType {\n compact = 'compact',\n normal = 'normal',\n}\nexport interface BreakpointConfig {\n /** Breakpoint at which responsive behaviour will be applied. The table component uses a \"desktop first\" approach. */\n breakpoint: keyof typeof Breakpoint;\n /** Desired behaviour on this breakpoint and all smaller screens. */\n variant: keyof typeof ResponsiveTableVariant;\n /** If variant is horizontallscroll, use a fallback instead of device is not a touch device. */\n fallbackVariant?: keyof typeof ResponsiveTableVariant;\n}\n\nexport interface Props {\n /** Unique ID */\n id?: string;\n /** Id used for testing */\n testId?: string;\n /** Customize how the table behaves on various screen widths */\n breakpointConfig?: BreakpointConfig | BreakpointConfig[];\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the content of the table. Use TableHead and TableBody */\n children: React.ReactNode;\n /** For display with less space. Discouraged to use together with interactive elements. */\n mode?: ModeType;\n /** Sets aria-label of the horizontal scroll container. scrollAriaLabel or scrollAriaLabelledById MUST be set if horizontal scrolling is enabled! */\n scrollAriaLabel?: string;\n /** Sets aria-labelledby of the horizontal scroll container. scrollAriaLabel or scrollAriaLabelledById MUST be set if horizontal scrolling is enabled! */\n scrollAriaLabelledById?: string;\n}\n\nexport const defaultConfig: BreakpointConfig[] = [\n {\n breakpoint: 'xl',\n variant: ResponsiveTableVariant.centeredoverflow,\n fallbackVariant: ResponsiveTableVariant.horizontalscroll,\n },\n];\n\nexport const simpleConfig: BreakpointConfig[] = [\n {\n breakpoint: 'xl',\n variant: ResponsiveTableVariant.centeredoverflow,\n fallbackVariant: ResponsiveTableVariant.horizontalscroll,\n },\n {\n breakpoint: 'sm',\n variant: ResponsiveTableVariant.centeredoverflow,\n fallbackVariant: ResponsiveTableVariant.block,\n },\n];\n\nexport const Table: React.FC<Props> = ({\n id,\n testId,\n className,\n children,\n breakpointConfig = defaultConfig,\n mode = ModeType.normal,\n scrollAriaLabel,\n scrollAriaLabelledById,\n}) => {\n const [currentConfig, setCurrentConfig] = useState<BreakpointConfig>();\n const [tableWidth, setTableWidth] = useState<number>(0);\n const [parentWidth, setParentWidth] = useState<number>(0);\n const [windowWidth, setWindowWidth] = useState(window.innerWidth);\n const tableRef = useRef<HTMLTableElement>(null);\n const breakpoint = useBreakpoint();\n\n useEffect(() => {\n setCurrentConfig(getCurrentConfig(breakpointConfig, breakpoint, tableWidth, windowWidth));\n }, [breakpointConfig, breakpoint, tableWidth, windowWidth]);\n\n useEffect(() => {\n if (\n currentConfig?.variant === ResponsiveTableVariant.centeredoverflow ||\n currentConfig?.variant === ResponsiveTableVariant.horizontalscroll\n ) {\n setTableWidth(tableRef.current?.getBoundingClientRect().width ?? 0);\n }\n if (currentConfig?.variant === ResponsiveTableVariant.centeredoverflow) {\n setParentWidth(tableRef.current?.parentElement?.getBoundingClientRect().width ?? 0);\n }\n }, [currentConfig]);\n\n useLayoutEvent(() => setWindowWidth(window.innerWidth), ['resize'], 100);\n\n const tableStyle =\n currentConfig?.variant === ResponsiveTableVariant.centeredoverflow ? getCenteredOverflowTableStyle(parentWidth, tableWidth) : undefined;\n\n const breakpointClass = getBreakpointClass(currentConfig);\n const tableClass = classNames(styles.table, breakpointClass, className);\n\n const table = (\n <table className={tableClass} id={id} data-testid={testId} data-analyticsid={AnalyticsId.Table} ref={tableRef} style={tableStyle}>\n {React.Children.map(children, child => React.isValidElement<{ mode?: ModeType }>(child) && React.cloneElement(child, { mode }))}\n </table>\n );\n\n const ariaLabelAttributes = getAriaLabelAttributes({ label: scrollAriaLabel, id: scrollAriaLabelledById });\n\n if (currentConfig?.variant === ResponsiveTableVariant.horizontalscroll) {\n return (\n <HorizontalScroll childWidth={tableWidth} testId=\"horizontal-scroll\" {...ariaLabelAttributes}>\n {table}\n </HorizontalScroll>\n );\n }\n\n return table;\n};\n\nexport default Table;\n"],"names":["ResponsiveTableVariant","ModeType","defaultConfig","simpleConfig","Table","id","testId","className","children","breakpointConfig","mode","scrollAriaLabel","scrollAriaLabelledById","currentConfig","setCurrentConfig","useState","tableWidth","setTableWidth","parentWidth","setParentWidth","windowWidth","setWindowWidth","tableRef","useRef","breakpoint","useBreakpoint","useEffect","getCurrentConfig","_a","_c","_b","useLayoutEvent","tableStyle","getCenteredOverflowTableStyle","breakpointClass","getBreakpointClass","tableClass","classNames","styles","table","React","AnalyticsId","child","ariaLabelAttributes","getAriaLabelAttributes","HorizontalScroll"],"mappings":";;;;;;;;;AAaY,IAAAA,sBAAAA,OAEVA,EAAA,OAAO,QAEPA,EAAA,mBAAmB,oBAEnBA,EAAA,mBAAmB,oBAEnBA,EAAA,QAAQ,SAREA,IAAAA,KAAA,CAAA,CAAA,GAUAC,sBAAAA,OACVA,EAAA,UAAU,WACVA,EAAA,SAAS,UAFCA,IAAAA,KAAA,CAAA,CAAA;AAgCL,MAAMC,IAAoC;AAAA,EAC/C;AAAA,IACE,YAAY;AAAA,IACZ,SAAS;AAAA,IACT,iBAAiB;AAAA;AAAA,EACnB;AACF,GAEaC,IAAmC;AAAA,EAC9C;AAAA,IACE,YAAY;AAAA,IACZ,SAAS;AAAA,IACT,iBAAiB;AAAA;AAAA,EACnB;AAAA,EACA;AAAA,IACE,YAAY;AAAA,IACZ,SAAS;AAAA,IACT,iBAAiB;AAAA;AAAA,EACnB;AACF,GAEaC,IAAyB,CAAC;AAAA,EACrC,IAAAC;AAAA,EACA,QAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,kBAAAC,IAAmBP;AAAA,EACnB,MAAAQ,IAAO;AAAA,EACP,iBAAAC;AAAA,EACA,wBAAAC;AACF,MAAM;AACJ,QAAM,CAACC,GAAeC,CAAgB,IAAIC,EAA2B,GAC/D,CAACC,GAAYC,CAAa,IAAIF,EAAiB,CAAC,GAChD,CAACG,GAAaC,CAAc,IAAIJ,EAAiB,CAAC,GAClD,CAACK,GAAaC,CAAc,IAAIN,EAAS,OAAO,UAAU,GAC1DO,IAAWC,EAAyB,IAAI,GACxCC,IAAaC;AAEnB,EAAAC,EAAU,MAAM;AACd,IAAAZ,EAAiBa,EAAiBlB,GAAkBe,GAAYR,GAAYI,CAAW,CAAC;AAAA,KACvF,CAACX,GAAkBe,GAAYR,GAAYI,CAAW,CAAC,GAE1DM,EAAU,MAAM;;AACd,MACEb,KAAA,gBAAAA,EAAe,aAAY,uBAC3BA,KAAA,gBAAAA,EAAe,aAAY,uBAE3BI,IAAcW,IAAAN,EAAS,YAAT,gBAAAM,EAAkB,wBAAwB,UAAS,CAAC,IAEhEf,KAAA,gBAAAA,EAAe,aAAY,sBAC7BM,IAAeU,KAAAC,IAAAR,EAAS,YAAT,gBAAAQ,EAAkB,kBAAlB,gBAAAD,EAAiC,wBAAwB,UAAS,CAAC;AAAA,EACpF,GACC,CAAChB,CAAa,CAAC,GAEHkB,EAAA,MAAMV,EAAe,OAAO,UAAU,GAAG,CAAC,QAAQ,GAAG,GAAG;AAEvE,QAAMW,KACJnB,KAAA,gBAAAA,EAAe,aAAY,qBAA0CoB,EAA8Bf,GAAaF,CAAU,IAAI,QAE1HkB,IAAkBC,EAAmBtB,CAAa,GAClDuB,IAAaC,EAAWC,EAAO,OAAOJ,GAAiB3B,CAAS,GAEhEgC,IACJC,gBAAAA,EAAA,cAAC,SAAM,EAAA,WAAWJ,GAAY,IAAA/B,GAAQ,eAAaC,GAAQ,oBAAkBmC,EAAY,OAAO,KAAKnB,GAAU,OAAOU,EAAA,GACnHQ,EAAM,SAAS,IAAIhC,GAAU,CAASkC,MAAAF,EAAM,eAAoCE,CAAK,KAAKF,EAAM,aAAaE,GAAO,EAAE,MAAAhC,EAAK,CAAC,CAAC,CAChI,GAGIiC,IAAsBC,EAAuB,EAAE,OAAOjC,GAAiB,IAAIC,GAAwB;AAErG,UAAAC,KAAA,gBAAAA,EAAe,aAAY,qBAE3B2B,gBAAAA,EAAA,cAACK,KAAiB,YAAY7B,GAAY,QAAO,qBAAqB,GAAG2B,KACtEJ,CACH,IAIGA;AACT;"}
@@ -0,0 +1,13 @@
1
+ import e from "react";
2
+ import r from "classnames";
3
+ import s from "../styles.module.scss";
4
+ import { ModeType as n } from "../Table.js";
5
+ const d = ({ className: o, children: a, mode: l = n.normal }) => {
6
+ const m = r(s["table-body"], o);
7
+ return /* @__PURE__ */ e.createElement("tbody", { className: m }, e.Children.map(a, (t) => e.isValidElement(t) && e.cloneElement(t, { mode: l })));
8
+ }, f = d;
9
+ export {
10
+ d as TableBody,
11
+ f as default
12
+ };
13
+ //# sourceMappingURL=TableBody.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableBody.js","sources":["../../../../src/components/Table/TableBody/TableBody.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport tableStyles from '../styles.module.scss';\nimport { ModeType } from '../Table';\n\nexport interface Props {\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the content of the table body. Use TableRows */\n children?: React.ReactNode;\n /** For display with less space. Discouraged to use together with interactive elements. */\n mode?: ModeType;\n}\n\nexport const TableBody = ({ className, children, mode = ModeType.normal }: Props): React.JSX.Element => {\n const tableBodyClasses = classNames(tableStyles['table-body'], className);\n return (\n <tbody className={tableBodyClasses}>\n {React.Children.map(children, child => React.isValidElement<{ mode?: ModeType }>(child) && React.cloneElement(child, { mode }))}\n </tbody>\n );\n};\n\nexport default TableBody;\n"],"names":["TableBody","className","children","mode","ModeType","tableBodyClasses","classNames","tableStyles","React","child","TableBody$1"],"mappings":";;;;AAgBa,MAAAA,IAAY,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,MAAAC,IAAOC,EAAS,aAAuC;AACtG,QAAMC,IAAmBC,EAAWC,EAAY,YAAY,GAAGN,CAAS;AAEtE,SAAAO,gBAAAA,EAAA,cAAC,WAAM,WAAWH,EAAA,GACfG,EAAM,SAAS,IAAIN,GAAU,CAASO,MAAAD,EAAM,eAAoCC,CAAK,KAAKD,EAAM,aAAaC,GAAO,EAAE,MAAAN,GAAM,CAAC,CAChI;AAEJ,GAEAO,IAAeV;"}
@@ -1,2 +1,7 @@
1
- import{a as r}from"../../../TableBody.js";import{T as h}from"../../../TableBody.js";import"react";import"classnames";import"../styles.module.scss";import"../../../Table.js";import"../../../constants.js";import"../../../hooks/useBreakpoint.js";import"../../../theme/grid.js";import"../../../hooks/useLayoutEvent.js";import"../../../utils/debounce.js";import"../../../utils/accessibility.js";import"../../../HorizontalScroll.js";import"../../../hooks/useIsVisible.js";import"../../../hooks/useIntersectionObserver.js";import"../../../hooks/useSize.js";import"../../HorizontalScroll/styles.module.scss";import"../../../utils/device.js";export{h as TableBody,r as default};
1
+ import e from "./TableBody.js";
2
+ import { TableBody as t } from "./TableBody.js";
3
+ export {
4
+ t as TableBody,
5
+ e as default
6
+ };
2
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}