@helsenorge/designsystem-react 2.16.1 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (953) hide show
  1. package/AnchorLink.js +1 -1
  2. package/AnchorLink.js.map +1 -1
  3. package/Avatar.js +1 -1
  4. package/Avatar.js.map +1 -1
  5. package/Badge.js +1 -1
  6. package/Badge.js.map +1 -1
  7. package/Button.js +1 -1
  8. package/Button.js.map +1 -1
  9. package/CHANGELOG.md +679 -326
  10. package/Checkbox.js +1 -1
  11. package/Checkbox.js.map +1 -1
  12. package/Close.js +1 -1
  13. package/Close.js.map +1 -1
  14. package/ErrorWrapper.js +1 -1
  15. package/ErrorWrapper.js.map +1 -1
  16. package/FormGroup.js +1 -1
  17. package/FormGroup.js.map +1 -1
  18. package/FormLayout.js +1 -1
  19. package/FormLayout.js.map +1 -1
  20. package/HelpBubble.js +1 -1
  21. package/HelpBubble.js.map +1 -1
  22. package/HorizontalScroll.js +1 -1
  23. package/HorizontalScroll.js.map +1 -1
  24. package/Input.js +1 -1
  25. package/Input.js.map +1 -1
  26. package/ListHeader.js +1 -1
  27. package/ListHeader.js.map +1 -1
  28. package/ListHeaderText.js +1 -1
  29. package/ListHeaderText.js.map +1 -1
  30. package/MaxCharacters.js +1 -1
  31. package/MaxCharacters.js.map +1 -1
  32. package/Modal.js +1 -1
  33. package/Modal.js.map +1 -1
  34. package/Panel.js +1 -1
  35. package/Panel.js.map +1 -1
  36. package/PopOver.js +2 -0
  37. package/PopOver.js.map +1 -0
  38. package/RadioButton.js +1 -1
  39. package/RadioButton.js.map +1 -1
  40. package/Select.js +1 -1
  41. package/Select.js.map +1 -1
  42. package/Spacer.js +1 -1
  43. package/Spacer.js.map +1 -1
  44. package/StatusDot.js +1 -1
  45. package/StatusDot.js.map +1 -1
  46. package/TableBody.js +1 -1
  47. package/TableBody.js.map +1 -1
  48. package/TableCell.js +1 -1
  49. package/TableCell.js.map +1 -1
  50. package/TableExpandedRow.js +1 -1
  51. package/TableExpandedRow.js.map +1 -1
  52. package/TableExpanderCell.js +1 -1
  53. package/TableExpanderCell.js.map +1 -1
  54. package/TableHead.js +1 -1
  55. package/TableHead.js.map +1 -1
  56. package/TableHeadCell.js +1 -1
  57. package/TableHeadCell.js.map +1 -1
  58. package/TableRow.js +1 -1
  59. package/TableRow.js.map +1 -1
  60. package/Textarea.js +1 -1
  61. package/Textarea.js.map +1 -1
  62. package/Title.js +1 -1
  63. package/Title.js.map +1 -1
  64. package/Tooltip.js +1 -1
  65. package/Tooltip.js.map +1 -1
  66. package/TooltipWord.js +1 -1
  67. package/TooltipWord.js.map +1 -1
  68. package/Validation.js +1 -1
  69. package/Validation.js.map +1 -1
  70. package/__mocks__/matchMedia.d.ts +1 -1
  71. package/__mocks__/matchMedia.d.ts.map +1 -1
  72. package/components/AnchorLink/AnchorLink.d.ts +2 -2
  73. package/components/AnchorLink/AnchorLink.d.ts.map +1 -1
  74. package/components/AnchorLink/index.js +1 -1
  75. package/components/AnchorLink/styles.module.scss +8 -5
  76. package/components/Avatar/Avatar.d.ts +1 -1
  77. package/components/Avatar/Avatar.d.ts.map +1 -1
  78. package/components/Avatar/index.js +1 -1
  79. package/components/Badge/Badge.d.ts +3 -3
  80. package/components/Badge/Badge.d.ts.map +1 -1
  81. package/components/Badge/index.js +1 -1
  82. package/components/Button/Button.d.ts +7 -7
  83. package/components/Button/Button.d.ts.map +1 -1
  84. package/components/Button/componentdata.json +1 -1
  85. package/components/Button/index.js +1 -1
  86. package/components/ButtonWithModal/ButtonWithModal.d.ts.map +1 -1
  87. package/components/ButtonWithModal/index.js +1 -1
  88. package/components/ButtonWithModal/index.js.map +1 -1
  89. package/components/Checkbox/Checkbox.d.ts.map +1 -1
  90. package/components/Checkbox/componentdata.json +1 -1
  91. package/components/Checkbox/index.js +1 -1
  92. package/components/Close/Close.d.ts +8 -2
  93. package/components/Close/Close.d.ts.map +1 -1
  94. package/components/Close/componentdata.json +1 -1
  95. package/components/Close/index.js +1 -1
  96. package/components/Close/styles.module.scss +1 -1
  97. package/components/Dropdown/Dropdown.d.ts.map +1 -1
  98. package/components/Dropdown/componentdata.json +1 -1
  99. package/components/Dropdown/index.js +1 -1
  100. package/components/Dropdown/index.js.map +1 -1
  101. package/components/Duolist/Duolist.d.ts +4 -4
  102. package/components/Duolist/Duolist.d.ts.map +1 -1
  103. package/components/Duolist/index.js +1 -1
  104. package/components/Duolist/index.js.map +1 -1
  105. package/components/ErrorWrapper/ErrorWrapper.d.ts.map +1 -1
  106. package/components/ErrorWrapper/componentdata.json +1 -1
  107. package/components/ErrorWrapper/index.js +1 -1
  108. package/components/Expander/Expander.d.ts +2 -2
  109. package/components/Expander/Expander.d.ts.map +1 -1
  110. package/components/Expander/componentdata.json +1 -1
  111. package/components/Expander/index.js +1 -1
  112. package/components/Expander/index.js.map +1 -1
  113. package/components/ExpanderHierarchy/Expander.d.ts +18 -0
  114. package/components/ExpanderHierarchy/Expander.d.ts.map +1 -0
  115. package/components/ExpanderHierarchy/ExpanderButton.d.ts +11 -0
  116. package/components/ExpanderHierarchy/ExpanderButton.d.ts.map +1 -0
  117. package/components/ExpanderHierarchy/ExpanderHierarchy.d.ts +22 -0
  118. package/components/ExpanderHierarchy/ExpanderHierarchy.d.ts.map +1 -0
  119. package/components/ExpanderHierarchy/componentdata.json +1 -0
  120. package/components/ExpanderHierarchy/expander.module.scss +147 -0
  121. package/components/ExpanderHierarchy/expander.module.scss.d.ts +25 -0
  122. package/components/ExpanderHierarchy/index.d.ts +4 -0
  123. package/components/ExpanderHierarchy/index.d.ts.map +1 -0
  124. package/components/ExpanderHierarchy/index.js +2 -0
  125. package/components/ExpanderHierarchy/index.js.map +1 -0
  126. package/components/ExpanderHierarchy/styles.module.scss +17 -0
  127. package/components/ExpanderHierarchy/styles.module.scss.d.ts +11 -0
  128. package/components/ExpanderHierarchy/utils.d.ts +3 -0
  129. package/components/ExpanderHierarchy/utils.d.ts.map +1 -0
  130. package/components/ExpanderList/ExpanderList.d.ts +4 -4
  131. package/components/ExpanderList/ExpanderList.d.ts.map +1 -1
  132. package/components/ExpanderList/index.js +1 -1
  133. package/components/ExpanderList/index.js.map +1 -1
  134. package/components/FormExample/FormExample.d.ts.map +1 -1
  135. package/components/FormExample/index.js +3 -3
  136. package/components/FormExample/index.js.map +1 -1
  137. package/components/FormGroup/FormGroup.d.ts +1 -1
  138. package/components/FormGroup/FormGroup.d.ts.map +1 -1
  139. package/components/FormGroup/index.js +1 -1
  140. package/components/FormLayout/FormLayout.d.ts.map +1 -1
  141. package/components/FormLayout/index.js +1 -1
  142. package/components/GridExample/index.js +1 -1
  143. package/components/GridExample/index.js.map +1 -1
  144. package/components/HelpBubble/HelpBubble.d.ts +4 -7
  145. package/components/HelpBubble/HelpBubble.d.ts.map +1 -1
  146. package/components/HelpBubble/index.js +1 -1
  147. package/components/HelpBubble/styles.module.scss +0 -41
  148. package/components/HelpBubble/styles.module.scss.d.ts +0 -3
  149. package/components/HelpBubbleExample/componentdata.json +1 -1
  150. package/components/HelpBubbleExample/index.js +1 -1
  151. package/components/HelpBubbleExample/index.js.map +1 -1
  152. package/components/HighlightBox/HighlightBox.d.ts +2 -2
  153. package/components/HighlightBox/HighlightBox.d.ts.map +1 -1
  154. package/components/HighlightBox/componentdata.json +1 -1
  155. package/components/HighlightBox/index.js +1 -1
  156. package/components/HighlightBox/index.js.map +1 -1
  157. package/components/HorizontalScroll/HorizontalScroll.d.ts.map +1 -1
  158. package/components/HorizontalScroll/index.js +1 -1
  159. package/components/Icons/ActiveMonitoring.d.ts.map +1 -1
  160. package/components/Icons/ActiveMonitoring.js.map +1 -1
  161. package/components/Icons/AcupunctureBack.d.ts.map +1 -1
  162. package/components/Icons/AcupunctureBack.js.map +1 -1
  163. package/components/Icons/AlarmClock.d.ts.map +1 -1
  164. package/components/Icons/AlarmClock.js.map +1 -1
  165. package/components/Icons/AlertSignFill.d.ts.map +1 -1
  166. package/components/Icons/AlertSignFill.js.map +1 -1
  167. package/components/Icons/AlertSignStroke.d.ts.map +1 -1
  168. package/components/Icons/AlertSignStroke.js.map +1 -1
  169. package/components/Icons/Amputation.d.ts.map +1 -1
  170. package/components/Icons/Amputation.js.map +1 -1
  171. package/components/Icons/Anxiety.d.ts.map +1 -1
  172. package/components/Icons/Anxiety.js.map +1 -1
  173. package/components/Icons/Apple.d.ts.map +1 -1
  174. package/components/Icons/Apple.js.map +1 -1
  175. package/components/Icons/Archive.d.ts.map +1 -1
  176. package/components/Icons/Archive.js.map +1 -1
  177. package/components/Icons/ArmFlexing.d.ts.map +1 -1
  178. package/components/Icons/ArmFlexing.js.map +1 -1
  179. package/components/Icons/ArrowDown.d.ts.map +1 -1
  180. package/components/Icons/ArrowDown.js.map +1 -1
  181. package/components/Icons/ArrowLeft.d.ts.map +1 -1
  182. package/components/Icons/ArrowLeft.js.map +1 -1
  183. package/components/Icons/ArrowRight.d.ts.map +1 -1
  184. package/components/Icons/ArrowRight.js.map +1 -1
  185. package/components/Icons/ArrowUp.d.ts.map +1 -1
  186. package/components/Icons/ArrowUp.js.map +1 -1
  187. package/components/Icons/ArrowUpRight.d.ts.map +1 -1
  188. package/components/Icons/ArrowUpRight.js.map +1 -1
  189. package/components/Icons/Attachment.d.ts.map +1 -1
  190. package/components/Icons/Attachment.js.map +1 -1
  191. package/components/Icons/Atv.d.ts.map +1 -1
  192. package/components/Icons/Atv.js.map +1 -1
  193. package/components/Icons/Avatar.d.ts.map +1 -1
  194. package/components/Icons/Avatar.js.map +1 -1
  195. package/components/Icons/AwakePersonOnPillow.d.ts.map +1 -1
  196. package/components/Icons/AwakePersonOnPillow.js.map +1 -1
  197. package/components/Icons/Baby.d.ts.map +1 -1
  198. package/components/Icons/Baby.js.map +1 -1
  199. package/components/Icons/BandAid.d.ts.map +1 -1
  200. package/components/Icons/BandAid.js.map +1 -1
  201. package/components/Icons/BeerAndPills.d.ts.map +1 -1
  202. package/components/Icons/BeerAndPills.js.map +1 -1
  203. package/components/Icons/Bell.d.ts.map +1 -1
  204. package/components/Icons/Bell.js.map +1 -1
  205. package/components/Icons/Bike.d.ts.map +1 -1
  206. package/components/Icons/Bike.js.map +1 -1
  207. package/components/Icons/BirthControl.d.ts.map +1 -1
  208. package/components/Icons/BirthControl.js.map +1 -1
  209. package/components/Icons/BirthdayCake.d.ts.map +1 -1
  210. package/components/Icons/BirthdayCake.js.map +1 -1
  211. package/components/Icons/Boat.d.ts.map +1 -1
  212. package/components/Icons/Boat.js.map +1 -1
  213. package/components/Icons/Body.d.ts.map +1 -1
  214. package/components/Icons/Body.js.map +1 -1
  215. package/components/Icons/Brain.d.ts.map +1 -1
  216. package/components/Icons/Brain.js.map +1 -1
  217. package/components/Icons/BreastReconstruction.d.ts.map +1 -1
  218. package/components/Icons/BreastReconstruction.js.map +1 -1
  219. package/components/Icons/BreastRemoval.d.ts.map +1 -1
  220. package/components/Icons/BreastRemoval.js.map +1 -1
  221. package/components/Icons/Breasts.d.ts.map +1 -1
  222. package/components/Icons/Breasts.js.map +1 -1
  223. package/components/Icons/BrokenHeart.d.ts.map +1 -1
  224. package/components/Icons/BrokenHeart.js.map +1 -1
  225. package/components/Icons/BrokenPuzzle.d.ts.map +1 -1
  226. package/components/Icons/BrokenPuzzle.js.map +1 -1
  227. package/components/Icons/Bus.d.ts.map +1 -1
  228. package/components/Icons/Bus.js.map +1 -1
  229. package/components/Icons/Calendar.d.ts.map +1 -1
  230. package/components/Icons/Calendar.js.map +1 -1
  231. package/components/Icons/CalendarChange.d.ts.map +1 -1
  232. package/components/Icons/CalendarChange.js.map +1 -1
  233. package/components/Icons/CalendarCheck.d.ts.map +1 -1
  234. package/components/Icons/CalendarCheck.js.map +1 -1
  235. package/components/Icons/CalendarEvent.d.ts.map +1 -1
  236. package/components/Icons/CalendarEvent.js.map +1 -1
  237. package/components/Icons/CalendarSave.d.ts.map +1 -1
  238. package/components/Icons/CalendarSave.js.map +1 -1
  239. package/components/Icons/Cancer.d.ts.map +1 -1
  240. package/components/Icons/Cancer.js.map +1 -1
  241. package/components/Icons/Car.d.ts.map +1 -1
  242. package/components/Icons/Car.js.map +1 -1
  243. package/components/Icons/Change.d.ts.map +1 -1
  244. package/components/Icons/Change.js.map +1 -1
  245. package/components/Icons/Check.d.ts.map +1 -1
  246. package/components/Icons/Check.js.map +1 -1
  247. package/components/Icons/CheckFill.d.ts.map +1 -1
  248. package/components/Icons/CheckFill.js.map +1 -1
  249. package/components/Icons/CheckOutline.d.ts.map +1 -1
  250. package/components/Icons/CheckOutline.js.map +1 -1
  251. package/components/Icons/Chest.d.ts.map +1 -1
  252. package/components/Icons/Chest.js.map +1 -1
  253. package/components/Icons/ChevronDown.d.ts.map +1 -1
  254. package/components/Icons/ChevronDown.js.map +1 -1
  255. package/components/Icons/ChevronLeft.d.ts.map +1 -1
  256. package/components/Icons/ChevronLeft.js.map +1 -1
  257. package/components/Icons/ChevronRight.d.ts.map +1 -1
  258. package/components/Icons/ChevronRight.js.map +1 -1
  259. package/components/Icons/ChevronUp.d.ts.map +1 -1
  260. package/components/Icons/ChevronUp.js.map +1 -1
  261. package/components/Icons/ChevronsDown.d.ts.map +1 -1
  262. package/components/Icons/ChevronsDown.js.map +1 -1
  263. package/components/Icons/ChevronsUp.d.ts.map +1 -1
  264. package/components/Icons/ChevronsUp.js.map +1 -1
  265. package/components/Icons/ChildPlaying.d.ts.map +1 -1
  266. package/components/Icons/ChildPlaying.js.map +1 -1
  267. package/components/Icons/Cigarette.d.ts.map +1 -1
  268. package/components/Icons/Cigarette.js.map +1 -1
  269. package/components/Icons/Coins.d.ts.map +1 -1
  270. package/components/Icons/Coins.js.map +1 -1
  271. package/components/Icons/Contacts.d.ts.map +1 -1
  272. package/components/Icons/Contacts.js.map +1 -1
  273. package/components/Icons/Copy.d.ts.map +1 -1
  274. package/components/Icons/Copy.js.map +1 -1
  275. package/components/Icons/CoronaCertificate.d.ts.map +1 -1
  276. package/components/Icons/CoronaCertificate.js.map +1 -1
  277. package/components/Icons/Coronavirus.d.ts.map +1 -1
  278. package/components/Icons/Coronavirus.js.map +1 -1
  279. package/components/Icons/Cough.d.ts.map +1 -1
  280. package/components/Icons/Cough.js.map +1 -1
  281. package/components/Icons/CriticalHealthInfo.d.ts.map +1 -1
  282. package/components/Icons/CriticalHealthInfo.js.map +1 -1
  283. package/components/Icons/Cross.d.ts.map +1 -1
  284. package/components/Icons/Cross.js.map +1 -1
  285. package/components/Icons/DataExchange.d.ts.map +1 -1
  286. package/components/Icons/DataExchange.js.map +1 -1
  287. package/components/Icons/DataReceived.d.ts.map +1 -1
  288. package/components/Icons/DataReceived.js.map +1 -1
  289. package/components/Icons/DataSent.d.ts.map +1 -1
  290. package/components/Icons/DataSent.js.map +1 -1
  291. package/components/Icons/Depression.d.ts.map +1 -1
  292. package/components/Icons/Depression.js.map +1 -1
  293. package/components/Icons/DigestiveSystem.d.ts.map +1 -1
  294. package/components/Icons/DigestiveSystem.js.map +1 -1
  295. package/components/Icons/Dizzy.d.ts.map +1 -1
  296. package/components/Icons/Dizzy.js.map +1 -1
  297. package/components/Icons/Documents.d.ts.map +1 -1
  298. package/components/Icons/Documents.js.map +1 -1
  299. package/components/Icons/Dog.d.ts.map +1 -1
  300. package/components/Icons/Dog.js.map +1 -1
  301. package/components/Icons/DonorCard.d.ts.map +1 -1
  302. package/components/Icons/DonorCard.js.map +1 -1
  303. package/components/Icons/Download.d.ts.map +1 -1
  304. package/components/Icons/Download.js.map +1 -1
  305. package/components/Icons/Draft.d.ts.map +1 -1
  306. package/components/Icons/Draft.js.map +1 -1
  307. package/components/Icons/EChat.d.ts.map +1 -1
  308. package/components/Icons/EChat.js.map +1 -1
  309. package/components/Icons/EarNoseThroat.d.ts.map +1 -1
  310. package/components/Icons/EarNoseThroat.js.map +1 -1
  311. package/components/Icons/ElderlyPerson.d.ts.map +1 -1
  312. package/components/Icons/ElderlyPerson.js.map +1 -1
  313. package/components/Icons/Embolization.d.ts.map +1 -1
  314. package/components/Icons/Embolization.js.map +1 -1
  315. package/components/Icons/EmoticonAnnoyed.d.ts.map +1 -1
  316. package/components/Icons/EmoticonAnnoyed.js.map +1 -1
  317. package/components/Icons/EmoticonDelighted.d.ts.map +1 -1
  318. package/components/Icons/EmoticonDelighted.js.map +1 -1
  319. package/components/Icons/EmoticonDisappointed.d.ts.map +1 -1
  320. package/components/Icons/EmoticonDisappointed.js.map +1 -1
  321. package/components/Icons/EmoticonHappy.d.ts.map +1 -1
  322. package/components/Icons/EmoticonHappy.js.map +1 -1
  323. package/components/Icons/EmoticonMeh.d.ts.map +1 -1
  324. package/components/Icons/EmoticonMeh.js.map +1 -1
  325. package/components/Icons/EnterFullScreen.d.ts.map +1 -1
  326. package/components/Icons/EnterFullScreen.js.map +1 -1
  327. package/components/Icons/Envelope.d.ts.map +1 -1
  328. package/components/Icons/Envelope.js.map +1 -1
  329. package/components/Icons/Epilepsy.d.ts.map +1 -1
  330. package/components/Icons/Epilepsy.js.map +1 -1
  331. package/components/Icons/Eraser.d.ts.map +1 -1
  332. package/components/Icons/Eraser.js.map +1 -1
  333. package/components/Icons/ErrorSignFill.d.ts.map +1 -1
  334. package/components/Icons/ErrorSignFill.js.map +1 -1
  335. package/components/Icons/ErrorSignStroke.d.ts.map +1 -1
  336. package/components/Icons/ErrorSignStroke.js.map +1 -1
  337. package/components/Icons/EuropeanHealthCard.d.ts.map +1 -1
  338. package/components/Icons/EuropeanHealthCard.js.map +1 -1
  339. package/components/Icons/ExitFullScreen.d.ts.map +1 -1
  340. package/components/Icons/ExitFullScreen.js.map +1 -1
  341. package/components/Icons/Eye.d.ts.map +1 -1
  342. package/components/Icons/Eye.js.map +1 -1
  343. package/components/Icons/Facebook.d.ts.map +1 -1
  344. package/components/Icons/Facebook.js.map +1 -1
  345. package/components/Icons/Female.d.ts.map +1 -1
  346. package/components/Icons/Female.js.map +1 -1
  347. package/components/Icons/FemaleDoctor.d.ts.map +1 -1
  348. package/components/Icons/FemaleDoctor.js.map +1 -1
  349. package/components/Icons/Ferry.d.ts.map +1 -1
  350. package/components/Icons/Ferry.js.map +1 -1
  351. package/components/Icons/File.d.ts +5 -0
  352. package/components/Icons/File.d.ts.map +1 -0
  353. package/components/Icons/File.js +2 -0
  354. package/components/Icons/File.js.map +1 -0
  355. package/components/Icons/Filter.d.ts.map +1 -1
  356. package/components/Icons/Filter.js.map +1 -1
  357. package/components/Icons/FingerBleed.d.ts.map +1 -1
  358. package/components/Icons/FingerBleed.js.map +1 -1
  359. package/components/Icons/FirstAidKit.d.ts.map +1 -1
  360. package/components/Icons/FirstAidKit.js.map +1 -1
  361. package/components/Icons/FloppyDisk.d.ts.map +1 -1
  362. package/components/Icons/FloppyDisk.js.map +1 -1
  363. package/components/Icons/Football.d.ts.map +1 -1
  364. package/components/Icons/Football.js.map +1 -1
  365. package/components/Icons/Form.d.ts.map +1 -1
  366. package/components/Icons/Form.js.map +1 -1
  367. package/components/Icons/Forward.d.ts.map +1 -1
  368. package/components/Icons/Forward.js.map +1 -1
  369. package/components/Icons/Gallery.d.ts.map +1 -1
  370. package/components/Icons/Gallery.js.map +1 -1
  371. package/components/Icons/Garden.d.ts.map +1 -1
  372. package/components/Icons/Garden.js.map +1 -1
  373. package/components/Icons/GasCan.d.ts.map +1 -1
  374. package/components/Icons/GasCan.js.map +1 -1
  375. package/components/Icons/GenderIdentity.d.ts.map +1 -1
  376. package/components/Icons/GenderIdentity.js.map +1 -1
  377. package/components/Icons/Globe.d.ts.map +1 -1
  378. package/components/Icons/Globe.js.map +1 -1
  379. package/components/Icons/Group.d.ts.map +1 -1
  380. package/components/Icons/Group.js.map +1 -1
  381. package/components/Icons/HandWaving.d.ts.map +1 -1
  382. package/components/Icons/HandWaving.js.map +1 -1
  383. package/components/Icons/HandWithDisease.d.ts.map +1 -1
  384. package/components/Icons/HandWithDisease.js.map +1 -1
  385. package/components/Icons/HealthClinic.d.ts.map +1 -1
  386. package/components/Icons/HealthClinic.js.map +1 -1
  387. package/components/Icons/HealthWarning.d.ts.map +1 -1
  388. package/components/Icons/HealthWarning.js.map +1 -1
  389. package/components/Icons/Heart.d.ts.map +1 -1
  390. package/components/Icons/Heart.js.map +1 -1
  391. package/components/Icons/HeartHands.d.ts.map +1 -1
  392. package/components/Icons/HeartHands.js.map +1 -1
  393. package/components/Icons/HelpSign.d.ts.map +1 -1
  394. package/components/Icons/HelpSign.js.map +1 -1
  395. package/components/Icons/HelpingHand.d.ts.map +1 -1
  396. package/components/Icons/HelpingHand.js.map +1 -1
  397. package/components/Icons/Hemodialysis.d.ts.map +1 -1
  398. package/components/Icons/Hemodialysis.js.map +1 -1
  399. package/components/Icons/Hiker.d.ts.map +1 -1
  400. package/components/Icons/Hiker.js.map +1 -1
  401. package/components/Icons/Hipprosthesis.d.ts.map +1 -1
  402. package/components/Icons/Hipprosthesis.js.map +1 -1
  403. package/components/Icons/History.d.ts.map +1 -1
  404. package/components/Icons/History.js.map +1 -1
  405. package/components/Icons/HivAndAids.d.ts.map +1 -1
  406. package/components/Icons/HivAndAids.js.map +1 -1
  407. package/components/Icons/Home.d.ts.map +1 -1
  408. package/components/Icons/Home.js.map +1 -1
  409. package/components/Icons/Hormone.d.ts.map +1 -1
  410. package/components/Icons/Hormone.js.map +1 -1
  411. package/components/Icons/Hospital.d.ts.map +1 -1
  412. package/components/Icons/Hospital.js.map +1 -1
  413. package/components/Icons/Hourglass.d.ts.map +1 -1
  414. package/components/Icons/Hourglass.js.map +1 -1
  415. package/components/Icons/Icon.d.ts +1 -1
  416. package/components/Icons/Icon.d.ts.map +1 -1
  417. package/components/Icons/Icon.js +1 -1
  418. package/components/Icons/Icon.js.map +1 -1
  419. package/components/Icons/ImgFile.d.ts.map +1 -1
  420. package/components/Icons/ImgFile.js.map +1 -1
  421. package/components/Icons/Inbox.d.ts.map +1 -1
  422. package/components/Icons/Inbox.js.map +1 -1
  423. package/components/Icons/InfoSignFill.d.ts.map +1 -1
  424. package/components/Icons/InfoSignFill.js.map +1 -1
  425. package/components/Icons/InfoSignStroke.d.ts.map +1 -1
  426. package/components/Icons/InfoSignStroke.js.map +1 -1
  427. package/components/Icons/Instagram.d.ts.map +1 -1
  428. package/components/Icons/Instagram.js.map +1 -1
  429. package/components/Icons/Intravenous.d.ts.map +1 -1
  430. package/components/Icons/Intravenous.js.map +1 -1
  431. package/components/Icons/JointPain.d.ts.map +1 -1
  432. package/components/Icons/JointPain.js.map +1 -1
  433. package/components/Icons/Journal.d.ts.map +1 -1
  434. package/components/Icons/Journal.js.map +1 -1
  435. package/components/Icons/JpgFile.d.ts.map +1 -1
  436. package/components/Icons/JpgFile.js.map +1 -1
  437. package/components/Icons/Kidney.d.ts.map +1 -1
  438. package/components/Icons/Kidney.js.map +1 -1
  439. package/components/Icons/KitchenScale.d.ts.map +1 -1
  440. package/components/Icons/KitchenScale.js.map +1 -1
  441. package/components/Icons/Kjernejournal.d.ts.map +1 -1
  442. package/components/Icons/Kjernejournal.js.map +1 -1
  443. package/components/Icons/Laboratory.d.ts.map +1 -1
  444. package/components/Icons/Laboratory.js.map +1 -1
  445. package/components/Icons/LaptopBlog.d.ts.map +1 -1
  446. package/components/Icons/LaptopBlog.js.map +1 -1
  447. package/components/Icons/LawBook.d.ts.map +1 -1
  448. package/components/Icons/LawBook.js.map +1 -1
  449. package/components/Icons/LightBulb.d.ts.map +1 -1
  450. package/components/Icons/LightBulb.js.map +1 -1
  451. package/components/Icons/List.d.ts.map +1 -1
  452. package/components/Icons/List.js.map +1 -1
  453. package/components/Icons/Location.d.ts.map +1 -1
  454. package/components/Icons/Location.js.map +1 -1
  455. package/components/Icons/Lock.d.ts.map +1 -1
  456. package/components/Icons/Lock.js.map +1 -1
  457. package/components/Icons/Login.d.ts.map +1 -1
  458. package/components/Icons/Login.js.map +1 -1
  459. package/components/Icons/Logout.d.ts.map +1 -1
  460. package/components/Icons/Logout.js.map +1 -1
  461. package/components/Icons/Lungs.d.ts.map +1 -1
  462. package/components/Icons/Lungs.js.map +1 -1
  463. package/components/Icons/Makeup.d.ts.map +1 -1
  464. package/components/Icons/Makeup.js.map +1 -1
  465. package/components/Icons/MaleDoctor.d.ts.map +1 -1
  466. package/components/Icons/MaleDoctor.js.map +1 -1
  467. package/components/Icons/MaleDoctorAndPerson.d.ts.map +1 -1
  468. package/components/Icons/MaleDoctorAndPerson.js.map +1 -1
  469. package/components/Icons/MaleGenitalia.d.ts.map +1 -1
  470. package/components/Icons/MaleGenitalia.js.map +1 -1
  471. package/components/Icons/Medicine.d.ts.map +1 -1
  472. package/components/Icons/Medicine.js.map +1 -1
  473. package/components/Icons/MedicineWarning.d.ts.map +1 -1
  474. package/components/Icons/MedicineWarning.js.map +1 -1
  475. package/components/Icons/MentalHealthAdult.d.ts.map +1 -1
  476. package/components/Icons/MentalHealthAdult.js.map +1 -1
  477. package/components/Icons/MentalHealthChild.d.ts.map +1 -1
  478. package/components/Icons/MentalHealthChild.js.map +1 -1
  479. package/components/Icons/Menu.d.ts.map +1 -1
  480. package/components/Icons/Menu.js.map +1 -1
  481. package/components/Icons/Microscope.d.ts.map +1 -1
  482. package/components/Icons/Microscope.js.map +1 -1
  483. package/components/Icons/Minus.d.ts.map +1 -1
  484. package/components/Icons/Minus.js.map +1 -1
  485. package/components/Icons/Mirror.d.ts.map +1 -1
  486. package/components/Icons/Mirror.js.map +1 -1
  487. package/components/Icons/MobilePhone.d.ts.map +1 -1
  488. package/components/Icons/MobilePhone.js.map +1 -1
  489. package/components/Icons/MotherHoldingBaby.d.ts.map +1 -1
  490. package/components/Icons/MotherHoldingBaby.js.map +1 -1
  491. package/components/Icons/MuscleBack.d.ts.map +1 -1
  492. package/components/Icons/MuscleBack.js.map +1 -1
  493. package/components/Icons/MuscleLeg.d.ts.map +1 -1
  494. package/components/Icons/MuscleLeg.js.map +1 -1
  495. package/components/Icons/Mushroom.d.ts.map +1 -1
  496. package/components/Icons/Mushroom.js.map +1 -1
  497. package/components/Icons/Music.d.ts.map +1 -1
  498. package/components/Icons/Music.js.map +1 -1
  499. package/components/Icons/MusselsAndSalt.d.ts.map +1 -1
  500. package/components/Icons/MusselsAndSalt.js.map +1 -1
  501. package/components/Icons/NoAccess.d.ts.map +1 -1
  502. package/components/Icons/NoAccess.js.map +1 -1
  503. package/components/Icons/NoEye.d.ts.map +1 -1
  504. package/components/Icons/NoEye.js.map +1 -1
  505. package/components/Icons/NoFilter.d.ts.map +1 -1
  506. package/components/Icons/NoFilter.js.map +1 -1
  507. package/components/Icons/Notepad.d.ts.map +1 -1
  508. package/components/Icons/Notepad.js.map +1 -1
  509. package/components/Icons/Osteotomy.d.ts.map +1 -1
  510. package/components/Icons/Osteotomy.js.map +1 -1
  511. package/components/Icons/PaintRoller.d.ts.map +1 -1
  512. package/components/Icons/PaintRoller.js.map +1 -1
  513. package/components/Icons/PaperPlane.d.ts.map +1 -1
  514. package/components/Icons/PaperPlane.js.map +1 -1
  515. package/components/Icons/PatientAndPerson.d.ts.map +1 -1
  516. package/components/Icons/PatientAndPerson.js.map +1 -1
  517. package/components/Icons/Pause.d.ts.map +1 -1
  518. package/components/Icons/Pause.js.map +1 -1
  519. package/components/Icons/PdfFile.d.ts.map +1 -1
  520. package/components/Icons/PdfFile.js.map +1 -1
  521. package/components/Icons/Pencil.d.ts.map +1 -1
  522. package/components/Icons/Pencil.js.map +1 -1
  523. package/components/Icons/PeopleTalking.d.ts.map +1 -1
  524. package/components/Icons/PeopleTalking.js.map +1 -1
  525. package/components/Icons/Peritonealdialysis.d.ts.map +1 -1
  526. package/components/Icons/Peritonealdialysis.js.map +1 -1
  527. package/components/Icons/Person.d.ts.map +1 -1
  528. package/components/Icons/Person.js.map +1 -1
  529. package/components/Icons/PersonAndPatient.d.ts.map +1 -1
  530. package/components/Icons/PersonAndPatient.js.map +1 -1
  531. package/components/Icons/PersonCancel.d.ts.map +1 -1
  532. package/components/Icons/PersonCancel.js.map +1 -1
  533. package/components/Icons/PersonInXRayMachine.d.ts.map +1 -1
  534. package/components/Icons/PersonInXRayMachine.js.map +1 -1
  535. package/components/Icons/PersonOverweight.d.ts.map +1 -1
  536. package/components/Icons/PersonOverweight.js.map +1 -1
  537. package/components/Icons/PersonRelaxing.d.ts.map +1 -1
  538. package/components/Icons/PersonRelaxing.js.map +1 -1
  539. package/components/Icons/PersonWithBrain.d.ts.map +1 -1
  540. package/components/Icons/PersonWithBrain.js.map +1 -1
  541. package/components/Icons/PersonWithBrokenArm.d.ts.map +1 -1
  542. package/components/Icons/PersonWithBrokenArm.js.map +1 -1
  543. package/components/Icons/PersonWithCrutches.d.ts.map +1 -1
  544. package/components/Icons/PersonWithCrutches.js.map +1 -1
  545. package/components/Icons/PersonWithJaw.d.ts.map +1 -1
  546. package/components/Icons/PersonWithJaw.js.map +1 -1
  547. package/components/Icons/PersonWithMagnifyingGlass.d.ts.map +1 -1
  548. package/components/Icons/PersonWithMagnifyingGlass.js.map +1 -1
  549. package/components/Icons/PersonWithSenses.d.ts.map +1 -1
  550. package/components/Icons/PersonWithSenses.js.map +1 -1
  551. package/components/Icons/PersonWorking.d.ts.map +1 -1
  552. package/components/Icons/PersonWorking.js.map +1 -1
  553. package/components/Icons/PersonalPlan.d.ts.map +1 -1
  554. package/components/Icons/PersonalPlan.js.map +1 -1
  555. package/components/Icons/PizzaSlice.d.ts.map +1 -1
  556. package/components/Icons/PizzaSlice.js.map +1 -1
  557. package/components/Icons/Plane.d.ts.map +1 -1
  558. package/components/Icons/Plane.js.map +1 -1
  559. package/components/Icons/Plant.d.ts.map +1 -1
  560. package/components/Icons/Plant.js.map +1 -1
  561. package/components/Icons/Play.d.ts.map +1 -1
  562. package/components/Icons/Play.js.map +1 -1
  563. package/components/Icons/PlusLarge.d.ts.map +1 -1
  564. package/components/Icons/PlusLarge.js.map +1 -1
  565. package/components/Icons/PlusSmall.d.ts.map +1 -1
  566. package/components/Icons/PlusSmall.js.map +1 -1
  567. package/components/Icons/PngFile.d.ts.map +1 -1
  568. package/components/Icons/PngFile.js.map +1 -1
  569. package/components/Icons/Podcast.d.ts.map +1 -1
  570. package/components/Icons/Podcast.js.map +1 -1
  571. package/components/Icons/PoisonInformation.d.ts.map +1 -1
  572. package/components/Icons/PoisonInformation.js.map +1 -1
  573. package/components/Icons/Pregnant.d.ts.map +1 -1
  574. package/components/Icons/Pregnant.js.map +1 -1
  575. package/components/Icons/Printer.d.ts.map +1 -1
  576. package/components/Icons/Printer.js.map +1 -1
  577. package/components/Icons/Psychosis.d.ts.map +1 -1
  578. package/components/Icons/Psychosis.js.map +1 -1
  579. package/components/Icons/Publication.d.ts.map +1 -1
  580. package/components/Icons/Publication.js.map +1 -1
  581. package/components/Icons/Puzzle.d.ts.map +1 -1
  582. package/components/Icons/Puzzle.js.map +1 -1
  583. package/components/Icons/QrCode.d.ts.map +1 -1
  584. package/components/Icons/QrCode.js.map +1 -1
  585. package/components/Icons/Quarrel.d.ts.map +1 -1
  586. package/components/Icons/Quarrel.js.map +1 -1
  587. package/components/Icons/RadioTherapy.d.ts.map +1 -1
  588. package/components/Icons/RadioTherapy.js.map +1 -1
  589. package/components/Icons/RadioactiveTreatment.d.ts.map +1 -1
  590. package/components/Icons/RadioactiveTreatment.js.map +1 -1
  591. package/components/Icons/Radioiodine.d.ts.map +1 -1
  592. package/components/Icons/Radioiodine.js.map +1 -1
  593. package/components/Icons/Receipt.d.ts.map +1 -1
  594. package/components/Icons/Receipt.js.map +1 -1
  595. package/components/Icons/Receptionist.d.ts.map +1 -1
  596. package/components/Icons/Receptionist.js.map +1 -1
  597. package/components/Icons/Recovery.d.ts.map +1 -1
  598. package/components/Icons/Recovery.js.map +1 -1
  599. package/components/Icons/Referral.d.ts.map +1 -1
  600. package/components/Icons/Referral.js.map +1 -1
  601. package/components/Icons/Refresh.d.ts.map +1 -1
  602. package/components/Icons/Refresh.js.map +1 -1
  603. package/components/Icons/Refund.d.ts.map +1 -1
  604. package/components/Icons/Refund.js.map +1 -1
  605. package/components/Icons/Reply.d.ts.map +1 -1
  606. package/components/Icons/Reply.js.map +1 -1
  607. package/components/Icons/Rocket.d.ts.map +1 -1
  608. package/components/Icons/Rocket.js.map +1 -1
  609. package/components/Icons/RtfFile.d.ts.map +1 -1
  610. package/components/Icons/RtfFile.js.map +1 -1
  611. package/components/Icons/STDs.d.ts.map +1 -1
  612. package/components/Icons/STDs.js.map +1 -1
  613. package/components/Icons/Save.d.ts.map +1 -1
  614. package/components/Icons/Save.js.map +1 -1
  615. package/components/Icons/Scale.d.ts.map +1 -1
  616. package/components/Icons/Scale.js.map +1 -1
  617. package/components/Icons/Search.d.ts.map +1 -1
  618. package/components/Icons/Search.js.map +1 -1
  619. package/components/Icons/SectionSign.d.ts.map +1 -1
  620. package/components/Icons/SectionSign.js.map +1 -1
  621. package/components/Icons/Settings.d.ts.map +1 -1
  622. package/components/Icons/Settings.js.map +1 -1
  623. package/components/Icons/Sexualorientation.d.ts.map +1 -1
  624. package/components/Icons/Sexualorientation.js.map +1 -1
  625. package/components/Icons/ShakingHand.d.ts.map +1 -1
  626. package/components/Icons/ShakingHand.js.map +1 -1
  627. package/components/Icons/Share.d.ts.map +1 -1
  628. package/components/Icons/Share.js.map +1 -1
  629. package/components/Icons/Shield.d.ts.map +1 -1
  630. package/components/Icons/Shield.js.map +1 -1
  631. package/components/Icons/ShuntOperation.d.ts.map +1 -1
  632. package/components/Icons/ShuntOperation.js.map +1 -1
  633. package/components/Icons/Skeleton.d.ts.map +1 -1
  634. package/components/Icons/Skeleton.js.map +1 -1
  635. package/components/Icons/Skin.d.ts.map +1 -1
  636. package/components/Icons/Skin.js.map +1 -1
  637. package/components/Icons/Snake.d.ts.map +1 -1
  638. package/components/Icons/Snake.js.map +1 -1
  639. package/components/Icons/Snapchat.d.ts.map +1 -1
  640. package/components/Icons/Snapchat.js.map +1 -1
  641. package/components/Icons/SortDown.d.ts.map +1 -1
  642. package/components/Icons/SortDown.js.map +1 -1
  643. package/components/Icons/SortUp.d.ts.map +1 -1
  644. package/components/Icons/SortUp.js.map +1 -1
  645. package/components/Icons/SpeechBubble.d.ts.map +1 -1
  646. package/components/Icons/SpeechBubble.js.map +1 -1
  647. package/components/Icons/Spray.d.ts.map +1 -1
  648. package/components/Icons/Spray.js.map +1 -1
  649. package/components/Icons/Stopwatch.d.ts.map +1 -1
  650. package/components/Icons/Stopwatch.js.map +1 -1
  651. package/components/Icons/SupportingPerson.js +1 -1
  652. package/components/Icons/SupportingPerson.js.map +1 -1
  653. package/components/Icons/Surgery.d.ts.map +1 -1
  654. package/components/Icons/Surgery.js.map +1 -1
  655. package/components/Icons/Syringe.d.ts.map +1 -1
  656. package/components/Icons/Syringe.js.map +1 -1
  657. package/components/Icons/Taxi.d.ts.map +1 -1
  658. package/components/Icons/Taxi.js.map +1 -1
  659. package/components/Icons/TeddyBear.d.ts.map +1 -1
  660. package/components/Icons/TeddyBear.js.map +1 -1
  661. package/components/Icons/Teenagers.d.ts.map +1 -1
  662. package/components/Icons/Teenagers.js.map +1 -1
  663. package/components/Icons/ThinkingAboutBaby.d.ts.map +1 -1
  664. package/components/Icons/ThinkingAboutBaby.js.map +1 -1
  665. package/components/Icons/Ticket.d.ts.map +1 -1
  666. package/components/Icons/Ticket.js.map +1 -1
  667. package/components/Icons/TimePassing.d.ts.map +1 -1
  668. package/components/Icons/TimePassing.js.map +1 -1
  669. package/components/Icons/Toolbox.d.ts.map +1 -1
  670. package/components/Icons/Toolbox.js.map +1 -1
  671. package/components/Icons/Tooth.d.ts.map +1 -1
  672. package/components/Icons/Tooth.js.map +1 -1
  673. package/components/Icons/TotalKneeProsthesis.d.ts.map +1 -1
  674. package/components/Icons/TotalKneeProsthesis.js.map +1 -1
  675. package/components/Icons/Train.d.ts.map +1 -1
  676. package/components/Icons/Train.js.map +1 -1
  677. package/components/Icons/Transplantation.d.ts.map +1 -1
  678. package/components/Icons/Transplantation.js.map +1 -1
  679. package/components/Icons/TrashCan.d.ts.map +1 -1
  680. package/components/Icons/TrashCan.js.map +1 -1
  681. package/components/Icons/TravelRoute.d.ts.map +1 -1
  682. package/components/Icons/TravelRoute.js.map +1 -1
  683. package/components/Icons/TriangleX.d.ts.map +1 -1
  684. package/components/Icons/TriangleX.js.map +1 -1
  685. package/components/Icons/Twitter.d.ts.map +1 -1
  686. package/components/Icons/Twitter.js.map +1 -1
  687. package/components/Icons/Undo.d.ts.map +1 -1
  688. package/components/Icons/Undo.js.map +1 -1
  689. package/components/Icons/UniProsthesis.d.ts.map +1 -1
  690. package/components/Icons/UniProsthesis.js.map +1 -1
  691. package/components/Icons/Upload.d.ts.map +1 -1
  692. package/components/Icons/Upload.js.map +1 -1
  693. package/components/Icons/UserOrganization.d.ts.map +1 -1
  694. package/components/Icons/UserOrganization.js.map +1 -1
  695. package/components/Icons/Vaccine.d.ts.map +1 -1
  696. package/components/Icons/Vaccine.js.map +1 -1
  697. package/components/Icons/VerticalDots.d.ts.map +1 -1
  698. package/components/Icons/VerticalDots.js.map +1 -1
  699. package/components/Icons/VideoCamera.d.ts.map +1 -1
  700. package/components/Icons/VideoCamera.js.map +1 -1
  701. package/components/Icons/VideoChat.d.ts.map +1 -1
  702. package/components/Icons/VideoChat.js.map +1 -1
  703. package/components/Icons/Wallet.d.ts.map +1 -1
  704. package/components/Icons/Wallet.js.map +1 -1
  705. package/components/Icons/Watch.d.ts.map +1 -1
  706. package/components/Icons/Watch.js.map +1 -1
  707. package/components/Icons/Website.d.ts.map +1 -1
  708. package/components/Icons/Website.js.map +1 -1
  709. package/components/Icons/Wheelchair.d.ts.map +1 -1
  710. package/components/Icons/Wheelchair.js.map +1 -1
  711. package/components/Icons/WheelchairActive.d.ts.map +1 -1
  712. package/components/Icons/WheelchairActive.js.map +1 -1
  713. package/components/Icons/Window.d.ts.map +1 -1
  714. package/components/Icons/Window.js.map +1 -1
  715. package/components/Icons/WordDocument.d.ts.map +1 -1
  716. package/components/Icons/WordDocument.js.map +1 -1
  717. package/components/Icons/WorkSuitcase.d.ts.map +1 -1
  718. package/components/Icons/WorkSuitcase.js.map +1 -1
  719. package/components/Icons/X.d.ts.map +1 -1
  720. package/components/Icons/X.js.map +1 -1
  721. package/components/Icons/XOutline.d.ts.map +1 -1
  722. package/components/Icons/XOutline.js.map +1 -1
  723. package/components/Icons/XmlFile.d.ts.map +1 -1
  724. package/components/Icons/XmlFile.js.map +1 -1
  725. package/components/Icons/YouTube.d.ts.map +1 -1
  726. package/components/Icons/YouTube.js.map +1 -1
  727. package/components/Icons/Zoom.d.ts.map +1 -1
  728. package/components/Icons/Zoom.js.map +1 -1
  729. package/components/Icons/index.js +1 -1
  730. package/components/Input/Input.d.ts.map +1 -1
  731. package/components/Input/componentdata.json +1 -1
  732. package/components/Input/index.js +1 -1
  733. package/components/LinkList/LinkList.d.ts +8 -8
  734. package/components/LinkList/LinkList.d.ts.map +1 -1
  735. package/components/LinkList/index.js +1 -1
  736. package/components/LinkList/index.js.map +1 -1
  737. package/components/List/List.d.ts +17 -3
  738. package/components/List/List.d.ts.map +1 -1
  739. package/components/List/componentdata.json +1 -1
  740. package/components/List/index.js +1 -1
  741. package/components/List/index.js.map +1 -1
  742. package/components/List/styles.module.scss +51 -5
  743. package/components/List/styles.module.scss.d.ts +5 -0
  744. package/components/ListHeader/ListHeader.d.ts +3 -3
  745. package/components/ListHeader/ListHeader.d.ts.map +1 -1
  746. package/components/ListHeader/ListHeaderText/ListHeaderText.d.ts +1 -1
  747. package/components/ListHeader/ListHeaderText/ListHeaderText.d.ts.map +1 -1
  748. package/components/ListHeader/ListHeaderText/index.js +1 -1
  749. package/components/ListHeader/index.js +1 -1
  750. package/components/Loader/Loader.d.ts +2 -2
  751. package/components/Loader/Loader.d.ts.map +1 -1
  752. package/components/Loader/index.js +1 -1
  753. package/components/Loader/index.js.map +1 -1
  754. package/components/Logo/Logo.d.ts +1 -1
  755. package/components/Logo/Logo.d.ts.map +1 -1
  756. package/components/Logo/index.js +1 -1
  757. package/components/Logo/index.js.map +1 -1
  758. package/components/MaxCharacters/MaxCharacters.d.ts.map +1 -1
  759. package/components/Modal/Modal.d.ts.map +1 -1
  760. package/components/Modal/index.js +1 -1
  761. package/components/NotificationPanel/DetailButton/DetailButton.d.ts +10 -0
  762. package/components/NotificationPanel/DetailButton/DetailButton.d.ts.map +1 -0
  763. package/components/NotificationPanel/DetailButton/componentdata.json +1 -0
  764. package/components/NotificationPanel/DetailButton/styles.module.scss +34 -0
  765. package/components/NotificationPanel/DetailButton/styles.module.scss.d.ts +13 -0
  766. package/components/NotificationPanel/NotificationPanel.d.ts +16 -7
  767. package/components/NotificationPanel/NotificationPanel.d.ts.map +1 -1
  768. package/components/NotificationPanel/componentdata.json +1 -1
  769. package/components/NotificationPanel/index.js +1 -1
  770. package/components/NotificationPanel/index.js.map +1 -1
  771. package/components/NotificationPanel/styles.module.scss +92 -91
  772. package/components/NotificationPanel/styles.module.scss.d.ts +10 -10
  773. package/components/Panel/Panel.d.ts +2 -2
  774. package/components/Panel/Panel.d.ts.map +1 -1
  775. package/components/Panel/index.js +1 -1
  776. package/components/Panel/styles.module.scss +2 -0
  777. package/components/PanelList/PanelList.d.ts.map +1 -1
  778. package/components/PanelList/index.js +1 -1
  779. package/components/PanelList/index.js.map +1 -1
  780. package/components/PopMenu/PopMenu.d.ts +30 -0
  781. package/components/PopMenu/PopMenu.d.ts.map +1 -0
  782. package/components/PopMenu/componentdata.json +1 -0
  783. package/components/PopMenu/story.module.scss +5 -0
  784. package/components/PopMenu/story.module.scss.d.ts +9 -0
  785. package/components/PopMenu/styles.module.scss +117 -0
  786. package/components/PopMenu/styles.module.scss.d.ts +14 -0
  787. package/components/PopOver/PopOver.d.ts +32 -0
  788. package/components/PopOver/PopOver.d.ts.map +1 -0
  789. package/components/PopOver/componentdata.json +1 -0
  790. package/components/PopOver/index.d.ts +4 -0
  791. package/components/PopOver/index.d.ts.map +1 -0
  792. package/components/PopOver/index.js +2 -0
  793. package/components/PopOver/index.js.map +1 -0
  794. package/components/PopOver/styles.module.scss +63 -0
  795. package/components/PopOver/styles.module.scss.d.ts +16 -0
  796. package/components/{HelpBubble → PopOver}/utils.d.ts +4 -4
  797. package/components/PopOver/utils.d.ts.map +1 -0
  798. package/components/Portal/index.d.ts.map +1 -1
  799. package/components/Portal/index.js +1 -1
  800. package/components/Portal/index.js.map +1 -1
  801. package/components/RadioButton/RadioButton.d.ts.map +1 -1
  802. package/components/RadioButton/componentdata.json +1 -1
  803. package/components/RadioButton/index.js +1 -1
  804. package/components/Select/Select.d.ts +1 -1
  805. package/components/Select/Select.d.ts.map +1 -1
  806. package/components/Select/componentdata.json +1 -1
  807. package/components/Select/index.js +1 -1
  808. package/components/Slider/Slider.d.ts.map +1 -1
  809. package/components/Slider/index.js +1 -1
  810. package/components/Slider/index.js.map +1 -1
  811. package/components/Slider/styles.module.scss +1 -0
  812. package/components/Spacer/Spacer.d.ts.map +1 -1
  813. package/components/Spacer/index.js +1 -1
  814. package/components/StatusDot/index.js +1 -1
  815. package/components/Stepper/Dot.d.ts.map +1 -0
  816. package/components/Stepper/DotList.d.ts.map +1 -0
  817. package/components/{Progressbar/Progressbar.d.ts → Stepper/Stepper.d.ts} +6 -6
  818. package/components/Stepper/Stepper.d.ts.map +1 -0
  819. package/components/Stepper/componentdata.json +1 -0
  820. package/components/Stepper/index.d.ts +4 -0
  821. package/components/Stepper/index.d.ts.map +1 -0
  822. package/components/Stepper/index.js +2 -0
  823. package/components/Stepper/index.js.map +1 -0
  824. package/components/{Progressbar → Stepper}/styles.module.scss +20 -14
  825. package/components/Stepper/styles.module.scss.d.ts +16 -0
  826. package/components/{Progressbar → Stepper}/utils.d.ts +7 -7
  827. package/components/Stepper/utils.d.ts.map +1 -0
  828. package/components/Table/Table.d.ts +7 -6
  829. package/components/Table/Table.d.ts.map +1 -1
  830. package/components/Table/TableBody/index.js +1 -1
  831. package/components/Table/TableCell/TableCell.d.ts.map +1 -1
  832. package/components/Table/TableCell/index.js +1 -1
  833. package/components/Table/TableExpandedRow/TableExpandedRow.d.ts.map +1 -1
  834. package/components/Table/TableExpandedRow/index.js +1 -1
  835. package/components/Table/TableExpanderCell/TableExpanderCell.d.ts.map +1 -1
  836. package/components/Table/TableExpanderCell/TableExpanderCellMobile.d.ts +2 -2
  837. package/components/Table/TableExpanderCell/TableExpanderCellMobile.d.ts.map +1 -1
  838. package/components/Table/TableExpanderCell/index.js +1 -1
  839. package/components/Table/TableHead/TableHead.d.ts.map +1 -1
  840. package/components/Table/TableHead/index.js +1 -1
  841. package/components/Table/TableHeadCell/TableHeadCell.d.ts.map +1 -1
  842. package/components/Table/TableHeadCell/index.js +1 -1
  843. package/components/Table/TableRow/TableRow.d.ts.map +1 -1
  844. package/components/Table/TableRow/componentdata.json +1 -1
  845. package/components/Table/TableRow/index.js +1 -1
  846. package/components/Table/index.js +1 -1
  847. package/components/Table/index.js.map +1 -1
  848. package/components/Table/utils.d.ts +3 -7
  849. package/components/Table/utils.d.ts.map +1 -1
  850. package/components/Tag/Tag.d.ts +2 -2
  851. package/components/Tag/Tag.d.ts.map +1 -1
  852. package/components/Tag/componentdata.json +1 -1
  853. package/components/Tag/index.js +1 -1
  854. package/components/Tag/index.js.map +1 -1
  855. package/components/Tag/styles.module.scss +1 -0
  856. package/components/TagList/index.js +1 -1
  857. package/components/TagList/index.js.map +1 -1
  858. package/components/Textarea/Textarea.d.ts.map +1 -1
  859. package/components/Textarea/componentdata.json +1 -1
  860. package/components/Textarea/index.js +1 -1
  861. package/components/Tile/Tile.d.ts +2 -2
  862. package/components/Tile/Tile.d.ts.map +1 -1
  863. package/components/Tile/index.js +1 -1
  864. package/components/Tile/index.js.map +1 -1
  865. package/components/Title/Title.d.ts +2 -2
  866. package/components/Title/Title.d.ts.map +1 -1
  867. package/components/Title/index.js +1 -1
  868. package/components/Tooltip/Tooltip.d.ts +1 -1
  869. package/components/Tooltip/Tooltip.d.ts.map +1 -1
  870. package/components/Tooltip/TooltipWord/index.js +1 -1
  871. package/components/Tooltip/componentdata.json +1 -1
  872. package/components/Tooltip/index.js +1 -1
  873. package/components/TooltipExample/TooltipExample.d.ts.map +1 -1
  874. package/components/TooltipExample/componentdata.json +1 -1
  875. package/components/TooltipExample/index.js +1 -1
  876. package/components/TooltipExample/index.js.map +1 -1
  877. package/components/Validation/Validation.d.ts.map +1 -1
  878. package/components/Validation/index.js +1 -1
  879. package/constants.d.ts +7 -3
  880. package/constants.d.ts.map +1 -1
  881. package/constants.js +1 -1
  882. package/constants.js.map +1 -1
  883. package/hoc/withBreakpoint/index.js +1 -1
  884. package/hoc/withBreakpoint/withBreakpoint.js.map +1 -1
  885. package/hooks/useBreakpoint.d.ts.map +1 -1
  886. package/hooks/useBreakpoint.js +1 -1
  887. package/hooks/useBreakpoint.js.map +1 -1
  888. package/hooks/useExpand.d.ts +3 -0
  889. package/hooks/useExpand.d.ts.map +1 -0
  890. package/hooks/useExpand.js +2 -0
  891. package/hooks/useExpand.js.map +1 -0
  892. package/hooks/useFocusToggle.d.ts.map +1 -1
  893. package/hooks/useFocusToggle.js.map +1 -1
  894. package/hooks/useFocusTrap.d.ts.map +1 -1
  895. package/hooks/useFocusTrap.js +1 -1
  896. package/hooks/useFocusTrap.js.map +1 -1
  897. package/hooks/useIcons.js.map +1 -1
  898. package/hooks/useIsVisible.d.ts.map +1 -1
  899. package/hooks/useIsVisible.js.map +1 -1
  900. package/hooks/useKeyboardEvent.d.ts +1 -1
  901. package/hooks/useKeyboardEvent.d.ts.map +1 -1
  902. package/hooks/useOutsideEvent.d.ts +1 -1
  903. package/hooks/useOutsideEvent.d.ts.map +1 -1
  904. package/hooks/useResizeObserver.js.map +1 -1
  905. package/hooks/useSize.d.ts.map +1 -1
  906. package/hooks/useSize.js.map +1 -1
  907. package/hooks/useSticky.d.ts.map +1 -1
  908. package/hooks/useSticky.js +1 -1
  909. package/hooks/useSticky.js.map +1 -1
  910. package/hooks/useToggle.d.ts.map +1 -1
  911. package/hooks/useToggle.js.map +1 -1
  912. package/hooks/useUuid.d.ts.map +1 -1
  913. package/hooks/useUuid.js.map +1 -1
  914. package/index.js +1 -1
  915. package/package.json +1 -1
  916. package/scss/_palette.scss +4 -4
  917. package/theme/currys/color.d.ts.map +1 -1
  918. package/theme/currys/color.js +1 -1
  919. package/theme/currys/color.js.map +1 -1
  920. package/theme/currys/index.js +1 -1
  921. package/theme/currys/spacing.js.map +1 -1
  922. package/theme/index.js +1 -1
  923. package/theme/index.js.map +1 -1
  924. package/theme/palette.d.ts +3 -3
  925. package/theme/palette.d.ts.map +1 -1
  926. package/theme/palette.js +1 -1
  927. package/theme/palette.js.map +1 -1
  928. package/theme/spacers.d.ts +1 -1
  929. package/theme/spacers.d.ts.map +1 -1
  930. package/utils/accessibility.d.ts +1 -1
  931. package/utils/accessibility.d.ts.map +1 -1
  932. package/utils/component.d.ts +1 -1
  933. package/utils/component.d.ts.map +1 -1
  934. package/utils/component.js.map +1 -1
  935. package/utils/environment.js.map +1 -1
  936. package/utils/focus.js +1 -1
  937. package/utils/focus.js.map +1 -1
  938. package/utils/viewport.js +1 -1
  939. package/utils/viewport.js.map +1 -1
  940. package/uuid.js +1 -1
  941. package/components/HelpBubble/utils.d.ts.map +0 -1
  942. package/components/Progressbar/Dot.d.ts.map +0 -1
  943. package/components/Progressbar/DotList.d.ts.map +0 -1
  944. package/components/Progressbar/Progressbar.d.ts.map +0 -1
  945. package/components/Progressbar/componentdata.json +0 -1
  946. package/components/Progressbar/index.d.ts +0 -4
  947. package/components/Progressbar/index.d.ts.map +0 -1
  948. package/components/Progressbar/index.js +0 -2
  949. package/components/Progressbar/index.js.map +0 -1
  950. package/components/Progressbar/styles.module.scss.d.ts +0 -16
  951. package/components/Progressbar/utils.d.ts.map +0 -1
  952. /package/components/{Progressbar → Stepper}/Dot.d.ts +0 -0
  953. /package/components/{Progressbar → Stepper}/DotList.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';\nimport classNames from 'classnames';\n\nimport Title from '../Title';\n\nimport styles from './styles.module.scss';\nimport { AnalyticsId } from '../../constants';\nimport { useSize } from '../../hooks/useSize';\nimport { useUuid } from '../../hooks/useUuid';\nimport { getAriaLabelAttributes } from '../../utils/accessibility';\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 return [value, setSafeValue];\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 /** Function to be called when the value state has changed. */\n onChange?: (value: number) => void;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nconst MAX_VALUE = 100;\nconst MIN_VALUE = 0;\nconst STEP = 1;\nconst LARGE_STEP = 10;\n\nexport const Slider: React.FC<SliderProps> = ({ title, ariaLabel, labelLeft, labelRight, disabled = false, onChange, testId }) => {\n const [isMoving, setIsMoving] = useState(false);\n const [value, setValue] = useSafeNumberValue((MAX_VALUE - MIN_VALUE) / 2, MIN_VALUE, MAX_VALUE);\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 { width: markerWidth } = useSize(markerRef) || { width: 0 };\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 return Math.round(((markerPosition - trackPosition) / trackWidth) * (MAX_VALUE - MIN_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 - LARGE_STEP);\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 + LARGE_STEP);\n flag = true;\n break;\n case 'Home':\n setValue(MIN_VALUE);\n flag = true;\n break;\n case 'End':\n setValue(MAX_VALUE);\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 = ((trackWidth - markerWidth) / (MAX_VALUE - MIN_VALUE)) * value;\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 return (\n <div className={styles.slider} data-testid={testId} data-analyticsid={AnalyticsId.Slider}>\n {title && (\n <Title htmlMarkup={'h3'} margin={1.5} appearance={'title3'} id={titleId}>\n {title}\n </Title>\n )}\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'])} />\n <div\n role={'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-valuemin={MIN_VALUE}\n aria-valuemax={MAX_VALUE}\n tabIndex={disabled ? undefined : 0}\n aria-disabled={disabled}\n {...ariaLabelAttributes}\n />\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","newValue","MAX_VALUE","MIN_VALUE","STEP","LARGE_STEP","Slider","title","ariaLabel","labelLeft","labelRight","disabled","onChange","testId","isMoving","setIsMoving","titleId","useUuid","labelLeftId","labelRightId","trackRef","useRef","markerRef","trackWidth","useSize","markerWidth","useEffect","handlePointerUp","getValueBasedOnMarkerPosition","markerPosition","trackPosition","_b","_a","handlePointerMove","e","handleKeyDown","flag","handleTrackClick","handlePointerDown","markerXPos","ariaLabelAttributes","getAriaLabelAttributes","React","styles","AnalyticsId","Title","classNames"],"mappings":"sfAWA,MAAMA,EAAqB,CAACC,EAAiBC,EAAaC,IAAmD,CAC3G,KAAM,CAACC,EAAOC,CAAQ,EAAIC,EAASL,CAAO,EAYnC,MAAA,CAACG,EAVcG,GAA2B,CAC3CA,EAAWJ,EACbE,EAASF,CAAG,EACHI,EAAWL,EACpBG,EAASH,CAAG,EAEZG,EAASE,CAAQ,CACnB,CAGyB,CAC7B,E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WC,EAAO,OAAQ,cAAa9B,EAAQ,mBAAkB+B,EAAY,MAAA,EAC/ErC,GACEmC,EAAA,cAAAG,EAAA,CAAM,WAAY,KAAM,OAAQ,IAAK,WAAY,SAAU,GAAI7B,CAC7D,EAAAT,CACH,EAEDmC,EAAA,cAAA,MAAA,CACC,IAAKtB,EACL,UAAW0B,EAAWH,EAAO,yBAA0BhC,GAAYgC,EAAO,kCAAkC,EAC5G,QAASN,EACT,cAAeC,CAAA,EAEdI,EAAA,cAAA,MAAA,CAAI,UAAWI,EAAWH,EAAO,cAAehC,GAAYgC,EAAO,0BAA0B,CAAA,CAAG,EAChGD,EAAA,cAAA,MAAA,CACC,KAAM,SACN,IAAKpB,EACL,UAAWwB,EAAWH,EAAO,eAAgBhC,GAAYgC,EAAO,2BAA2B,EAC3F,MAAO,CACL,KAAM,GAAGJ,KACX,EACA,UAAWJ,EACX,gBAAerC,EACf,gBAAeK,EACf,gBAAeD,EACf,SAAUS,EAAW,OAAY,EACjC,gBAAeA,EACd,GAAG6B,CAAA,CACN,CACF,GACE/B,GAAaC,IACZgC,EAAA,cAAA,OAAA,CAAK,UAAWC,EAAO,eAAA,EACrBD,EAAA,cAAA,OAAA,CAAK,GAAIxB,CAAc,EAAAT,CAAU,EACjCiC,EAAA,cAAA,OAAA,CAAK,GAAIvB,CAAA,EAAeT,CAAW,CACtC,CAEJ,CAEJ"}
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 return [value, setSafeValue];\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 /** Function to be called when the value state has changed. */\n onChange?: (value: number) => void;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nconst MAX_VALUE = 100;\nconst MIN_VALUE = 0;\nconst STEP = 1;\nconst LARGE_STEP = 10;\n\nexport const Slider: React.FC<SliderProps> = ({ title, ariaLabel, labelLeft, labelRight, disabled = false, onChange, testId }) => {\n const [isMoving, setIsMoving] = useState(false);\n const [value, setValue] = useSafeNumberValue((MAX_VALUE - MIN_VALUE) / 2, MIN_VALUE, MAX_VALUE);\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 { width: markerWidth } = useSize(markerRef) || { width: 0 };\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 return Math.round(((markerPosition - trackPosition) / trackWidth) * (MAX_VALUE - MIN_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 - LARGE_STEP);\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 + LARGE_STEP);\n flag = true;\n break;\n case 'Home':\n setValue(MIN_VALUE);\n flag = true;\n break;\n case 'End':\n setValue(MAX_VALUE);\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 = ((trackWidth - markerWidth) / (MAX_VALUE - MIN_VALUE)) * value;\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 return (\n <div className={styles.slider} data-testid={testId} data-analyticsid={AnalyticsId.Slider}>\n {title && (\n <Title htmlMarkup={'h3'} margin={1.5} appearance={'title3'} id={titleId}>\n {title}\n </Title>\n )}\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'])} />\n <div\n role={'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-valuemin={MIN_VALUE}\n aria-valuemax={MAX_VALUE}\n tabIndex={disabled ? undefined : 0}\n aria-disabled={disabled}\n {...ariaLabelAttributes}\n />\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","newValue","MAX_VALUE","MIN_VALUE","STEP","LARGE_STEP","Slider","title","ariaLabel","labelLeft","labelRight","disabled","onChange","testId","isMoving","setIsMoving","titleId","useUuid","labelLeftId","labelRightId","trackRef","useRef","markerRef","trackWidth","useSize","markerWidth","useEffect","handlePointerUp","getValueBasedOnMarkerPosition","markerPosition","trackPosition","_a","handlePointerMove","e","handleKeyDown","flag","handleTrackClick","handlePointerDown","markerXPos","ariaLabelAttributes","getAriaLabelAttributes","React","styles","AnalyticsId","Title","classNames","Slider$1"],"mappings":"sfAYA,MAAMA,EAAqB,CAACC,EAAiBC,EAAaC,IAAmD,CAC3G,KAAM,CAACC,EAAOC,CAAQ,EAAIC,EAASL,CAAO,EAYnC,MAAA,CAACG,EAVcG,GAA2B,CAC3CA,EAAWJ,EACbE,EAASF,CAAG,EACHI,EAAWL,EACpBG,EAASH,CAAG,EAEZG,EAASE,CAAQ,CACnB,CAGyB,CAC7B,EAmBMC,EAAY,IACZC,EAAY,EACZC,EAAO,EACPC,EAAa,GAENC,EAAgC,CAAC,CAAE,MAAAC,EAAO,UAAAC,EAAW,UAAAC,EAAW,WA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CACH,EAEFkC,EAAA,cAAC,MAAA,CACC,IAAKrB,EACL,UAAWyB,EAAWH,EAAO,uBAAuB,EAAG/B,GAAY+B,EAAO,iCAAiC,CAAC,EAC5G,QAASN,EACT,cAAeC,CAAA,EAEfI,EAAA,cAAC,MAAI,CAAA,UAAWI,EAAWH,EAAO,cAAe/B,GAAY+B,EAAO,yBAAyB,CAAC,CAAG,CAAA,EACjGD,EAAA,cAAC,MAAA,CACC,KAAM,SACN,IAAKnB,EACL,UAAWuB,EAAWH,EAAO,eAAgB/B,GAAY+B,EAAO,0BAA0B,CAAC,EAC3F,MAAO,CACL,KAAM,GAAGJ,KACX,EACA,UAAWJ,EACX,gBAAepC,EACf,gBAAeK,EACf,gBAAeD,EACf,SAAUS,EAAW,OAAY,EACjC,gBAAeA,EACd,GAAG4B,CAAA,CACN,CACF,GACE9B,GAAaC,IACb+B,EAAA,cAAC,QAAK,UAAWC,EAAO,iBACrBD,EAAA,cAAA,OAAA,CAAK,GAAIvB,CAAc,EAAAT,CAAU,EACjCgC,EAAA,cAAA,OAAA,CAAK,GAAItB,CAAe,EAAAT,CAAW,CACtC,CAEJ,CAEJ,EAEAoC,GAAexC"}
@@ -11,6 +11,7 @@
11
11
  &__track-wrapper {
12
12
  width: 100%;
13
13
  cursor: pointer;
14
+ touch-action: none;
14
15
 
15
16
  &--disabled {
16
17
  cursor: default;
@@ -1 +1 @@
1
- {"version":3,"file":"Spacer.d.ts","sourceRoot":"","sources":["../../../src/components/Spacer/Spacer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAKpD,UAAU,WAAW;IACnB,mCAAmC;IACnC,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,MAAM,iFAuBV,CAAC;AAEH,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Spacer.d.ts","sourceRoot":"","sources":["../../../src/components/Spacer/Spacer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAKpD,UAAU,WAAW;IACnB,mCAAmC;IACnC,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,MAAM,iFAuBV,CAAC;AAEH,eAAe,MAAM,CAAC"}
@@ -1,2 +1,2 @@
1
- import"../../Spacer.js";import{S as f}from"../../Spacer.js";import"react";import"classnames";import"./styles.module.scss";import"../../constants.js";export{f as default};
1
+ import{S as o}from"../../Spacer.js";import"react";import"classnames";import"../../constants.js";import"./styles.module.scss";export{o as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import"../../StatusDot.js";import{a as j,S as k}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{j as StatusDotVariant,k as default};
1
+ import{S as o}from"../../StatusDot.js";import{a 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{j as StatusDotVariant,o as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dot.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/Dot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,UAAU,QAAQ;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,OAAO,CAAC;IACnB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CAC7B;AAED,QAAA,MAAM,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC,QAAQ,CAY3B,CAAC;AAEF,eAAe,GAAG,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DotList.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/DotList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,YAAY;IACpB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAMhC,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
- export interface ProgressbarProps {
2
+ export interface StepperProps {
3
3
  /**
4
- * Sets aria-label of the progressbar. ariaLabel or ariaLabelledById MUST be set!
4
+ * Sets aria-label of the stepper. ariaLabel or ariaLabelledById MUST be set!
5
5
  */
6
6
  ariaLabel?: string;
7
7
  /**
8
- * Sets aria-labelledby of the progressbar. ariaLabel or ariaLabelledById MUST be set!
8
+ * Sets aria-labelledby of the stepper. ariaLabel or ariaLabelledById MUST be set!
9
9
  */
10
10
  ariaLabelledById?: string;
11
11
  /**
@@ -23,6 +23,6 @@ export interface ProgressbarProps {
23
23
  /** Sets the data-testid attribute. */
24
24
  testId?: string;
25
25
  }
26
- declare const Progressbar: React.FC<ProgressbarProps>;
27
- export default Progressbar;
28
- //# sourceMappingURL=Progressbar.d.ts.map
26
+ declare const Stepper: React.FC<StepperProps>;
27
+ export default Stepper;
28
+ //# sourceMappingURL=Stepper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/Stepper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAWtC,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CA8CnC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1 @@
1
+ {"props":{"ariaLabel":{"defaultValue":null,"description":"Sets aria-label of the stepper. ariaLabel or ariaLabelledById MUST be set!","name":"ariaLabel","parent":{"fileName":"src/components/Stepper/Stepper.tsx","name":"StepperProps"},"declarations":[{"fileName":"src/components/Stepper/Stepper.tsx","name":"StepperProps"}],"required":false,"type":{"name":"string"}},"ariaLabelledById":{"defaultValue":null,"description":"Sets aria-labelledby of the stepper. ariaLabel or ariaLabelledById MUST be set!","name":"ariaLabelledById","parent":{"fileName":"src/components/Stepper/Stepper.tsx","name":"StepperProps"},"declarations":[{"fileName":"src/components/Stepper/Stepper.tsx","name":"StepperProps"}],"required":false,"type":{"name":"string"}},"value":{"defaultValue":null,"description":"Current value. Must be between min and max","name":"value","parent":{"fileName":"src/components/Stepper/Stepper.tsx","name":"StepperProps"},"declarations":[{"fileName":"src/components/Stepper/Stepper.tsx","name":"StepperProps"}],"required":false,"type":{"name":"number"}},"min":{"defaultValue":{"value":"0"},"description":"Minimum value","name":"min","parent":{"fileName":"src/components/Stepper/Stepper.tsx","name":"StepperProps"},"declarations":[{"fileName":"src/components/Stepper/Stepper.tsx","name":"StepperProps"}],"required":false,"type":{"name":"number"}},"max":{"defaultValue":{"value":"2"},"description":"Maximum value","name":"max","parent":{"fileName":"src/components/Stepper/Stepper.tsx","name":"StepperProps"},"declarations":[{"fileName":"src/components/Stepper/Stepper.tsx","name":"StepperProps"}],"required":false,"type":{"name":"number"}},"testId":{"defaultValue":null,"description":"Sets the data-testid attribute.","name":"testId","parent":{"fileName":"src/components/Stepper/Stepper.tsx","name":"StepperProps"},"declarations":[{"fileName":"src/components/Stepper/Stepper.tsx","name":"StepperProps"}],"required":false,"type":{"name":"string"}}}}
@@ -0,0 +1,4 @@
1
+ import Stepper from './Stepper';
2
+ export * from './Stepper';
3
+ export default Stepper;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/index.tsx"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,eAAe,OAAO,CAAC"}
@@ -0,0 +1,2 @@
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};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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,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"}
@@ -3,7 +3,7 @@
3
3
  @import '../../scss/_palette.scss';
4
4
  @import '../../scss/_font-settings.scss';
5
5
 
6
- .progressbar-wrapper {
6
+ .stepper-wrapper {
7
7
  display: flex;
8
8
  align-items: center;
9
9
  min-height: getSpacer(l);
@@ -25,39 +25,43 @@ $markerSize: 24px;
25
25
  $dotSize: 8px;
26
26
 
27
27
  /**
28
- * Høyde på progressbar
28
+ * Høyde på stepper
29
29
  */
30
- $progressbarHeight: 12px;
30
+ $stepperHeight: 12px;
31
31
 
32
32
  /**
33
- * Horisontal padding på progressbar
33
+ * Horisontal padding på stepper
34
34
  */
35
- $progressbarPaddingX: 8px;
35
+ $stepperPaddingX: 8px;
36
36
 
37
37
  /**
38
- * Avstand fra venstre kant av progressbar til midten av første prikk
38
+ * Avstand fra venstre kant av stepper til midten av første prikk
39
39
  */
40
- $dotOffset: calc($progressbarPaddingX + $dotSize / 2);
40
+ $dotOffset: calc($stepperPaddingX + $dotSize / 2);
41
41
 
42
- .progressbar {
42
+ .stepper {
43
43
  flex-grow: 1;
44
44
  position: relative;
45
45
  display: block;
46
- height: $progressbarHeight;
46
+ height: $stepperHeight;
47
47
  border-radius: 4px;
48
48
  background: linear-gradient(to right, $blueberry600, $blueberry600 $dotOffset, $blueberry50 $dotOffset, $blueberry50), $blueberry600;
49
49
  background-repeat: no-repeat;
50
- transition: background-position $transition;
50
+ @media (prefers-reduced-motion: no-preference) {
51
+ transition: background-position $transition;
52
+ }
51
53
 
52
54
  &__marker {
53
55
  position: absolute;
54
56
  width: $markerSize;
55
57
  height: $markerSize;
56
- top: calc(($progressbarHeight - $markerSize) / 2);
58
+ top: calc(($stepperHeight - $markerSize) / 2);
57
59
  background-color: $white;
58
60
  border: 6px solid $blueberry600;
59
61
  border-radius: 50%;
60
- transition: left $transition;
62
+ @media (prefers-reduced-motion: no-preference) {
63
+ transition: left $transition;
64
+ }
61
65
  }
62
66
 
63
67
  &__number {
@@ -72,12 +76,14 @@ $dotOffset: calc($progressbarPaddingX + $dotSize / 2);
72
76
 
73
77
  &__dot {
74
78
  position: absolute;
75
- top: calc(($progressbarHeight - $dotSize) / 2);
79
+ top: calc(($stepperHeight - $dotSize) / 2);
76
80
  width: $dotSize;
77
81
  height: $dotSize;
78
82
  background-color: $blueberry600;
79
83
  border-radius: 50%;
80
- transition: background-color $transition;
84
+ @media (prefers-reduced-motion: no-preference) {
85
+ transition: background-color $transition;
86
+ }
81
87
  &--completed {
82
88
  background-color: $blueberry50;
83
89
  }
@@ -0,0 +1,16 @@
1
+ export type Styles = {
2
+ stepper: string;
3
+ stepper__dot: string;
4
+ 'stepper__dot--completed': string;
5
+ 'stepper__dot--left': string;
6
+ 'stepper__dot--right': string;
7
+ stepper__marker: string;
8
+ stepper__number: string;
9
+ 'stepper-wrapper': string;
10
+ };
11
+
12
+ export type ClassNames = keyof Styles;
13
+
14
+ declare const styles: Styles;
15
+
16
+ export default styles;
@@ -1,7 +1,7 @@
1
1
  /**
2
- * Horisontal padding på progressbar
2
+ * Horisontal padding på stepper
3
3
  */
4
- export declare const PROGRESS_BAR_PADDING_X_PX = 8;
4
+ export declare const STEPPER_PADDING_X_PX = 8;
5
5
  /**
6
6
  * Valider at minimum-verdi er innenfor gyldig område
7
7
  * @param min Mimimum-verdi
@@ -26,21 +26,21 @@ export declare const getValidatedMax: (min: number, max: number) => number;
26
26
  export declare const getValidatedValue: (value: number | undefined, min: number, max: number) => number;
27
27
  /**
28
28
  * Finn antall prikker det er plass til
29
- * @param progressbarWidth Bredde på progressbar
29
+ * @param stepperWidth Bredde på stepper
30
30
  * @returns Antall prikker
31
31
  */
32
- export declare const getMaximumDots: (progressbarWidth: number) => number;
32
+ export declare const getMaximumDots: (stepperWidth: number) => number;
33
33
  /**
34
34
  * Beregn riktig distance mellom prikker
35
- * @param progressbarWidth Bredde på progressbar
35
+ * @param stepperWidth Bredde på stepper
36
36
  * @param dots Antall prikker som skal vises
37
37
  * @returns Distanse mellom prikker
38
38
  */
39
- export declare const getDistanceBetweenDots: (progressbarWidth: number, dots: number) => number;
39
+ export declare const getDistanceBetweenDots: (stepperWidth: number, dots: number) => number;
40
40
  /**
41
41
  * Beregn riktig plassering av markør
42
42
  * @param distanceBetweenDots Distanse mellom prikker
43
- * @param index Nåværende verdi i progressbar
43
+ * @param index Nåværende verdi i stepper
44
44
  * @returns Plassering til markør fra venstre
45
45
  */
46
46
  export declare const getMarkerPosition: (distanceBetweenDots: number, index: number) => number;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/utils.ts"],"names":[],"mappings":"AAUA;;GAEG;AACH,eAAO,MAAM,oBAAoB,IAAI,CAAC;AAEtC;;;;;GAKG;AACH,eAAO,MAAM,eAAe,QAAS,MAAM,OAAO,MAAM,KAAG,MAAqC,CAAC;AAEjG;;;;;GAKG;AACH,eAAO,MAAM,eAAe,QAAS,MAAM,OAAO,MAAM,KAAG,MAAiC,CAAC;AAE7F;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,UAAW,MAAM,GAAG,SAAS,OAAO,MAAM,OAAO,MAAM,KAAG,MAMvF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,iBAAkB,MAAM,KAAG,MAAmF,CAAC;AAE1I;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,iBAAkB,MAAM,QAAQ,MAAM,KAAG,MAAuD,CAAC;AAEpI;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,wBAAyB,MAAM,SAAS,MAAM,KAAG,MAAqC,CAAC;AAErH;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,QAAS,MAAM,OAAO,MAAM,KAAG,MAAM,EAAiE,CAAC;AAEpI;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,UACrB,MAAM,GAAG,SAAS,OACpB,MAAM,OACN,MAAM;oBACQ,MAAM;kBAAgB,MAAM;kBAAgB,MAAM;CAMtE,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Breakpoint } from '../../hooks/useBreakpoint';
3
- export declare enum SmallViewportVariant {
4
- /** No handling responsive behaviour. This will be the default in v3.0.0. */
3
+ export declare enum ResponsiveTableVariant {
4
+ /** No handling responsive behaviour. Default. */
5
5
  none = "none",
6
6
  /** Overflow parent container to the left and right while remaining centered horizontally. */
7
7
  centeredoverflow = "centeredoverflow",
@@ -14,9 +14,9 @@ export interface BreakpointConfig {
14
14
  /** Breakpoint at which responsive behaviour will be applied. The table component uses a "desktop first" approach. */
15
15
  breakpoint: keyof typeof Breakpoint;
16
16
  /** Desired behaviour on this breakpoint and all smaller screens. */
17
- variant: keyof typeof SmallViewportVariant;
17
+ variant: keyof typeof ResponsiveTableVariant;
18
18
  /** If variant is horizontallscroll, use a fallback instead of device is not a touch device. */
19
- fallbackVariant?: keyof typeof SmallViewportVariant;
19
+ fallbackVariant?: keyof typeof ResponsiveTableVariant;
20
20
  }
21
21
  export interface Props {
22
22
  /** Unique ID */
@@ -24,13 +24,14 @@ export interface Props {
24
24
  /** Id used for testing */
25
25
  testId?: string;
26
26
  /** Customize how the table behaves on various screen widths */
27
- /** @deprecated Rename to breakpointConfig in v3.0.0 and drop support for SmallViewPortVariant */
28
- smallViewportVariant?: SmallViewportVariant | BreakpointConfig | BreakpointConfig[];
27
+ breakpointConfig?: BreakpointConfig | BreakpointConfig[];
29
28
  /** Adds custom classes to the element. */
30
29
  className?: string;
31
30
  /** Sets the content of the table. Use TableHead and TableBody */
32
31
  children: React.ReactNode;
33
32
  }
33
+ export declare const defaultConfig: BreakpointConfig[];
34
+ export declare const simpleConfig: BreakpointConfig[];
34
35
  export declare const Table: React.FC<Props>;
35
36
  export default Table;
36
37
  //# sourceMappingURL=Table.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAQhD,OAAO,EAAE,UAAU,EAAiB,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IACrH,UAAU,EAAE,MAAM,OAAO,UAAU,CAAC;IACpC,oEAAoE;IACpE,OAAO,EAAE,MAAM,OAAO,sBAAsB,CAAC;IAC7C,+FAA+F;IAC/F,eAAe,CAAC,EAAE,MAAM,OAAO,sBAAsB,CAAC;CACvD;AAED,MAAM,WAAW,KAAK;IACpB,gBAAgB;IAChB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,0BAA0B;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,+DAA+D;IAC/D,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,gBAAgB,EAAE,CAAC;IACzD,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iEAAiE;IACjE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,aAAa,EAAE,gBAAgB,EAM3C,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,gBAAgB,EAW1C,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAqCjC,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -1,2 +1,2 @@
1
- import"../../../TableBody.js";import{T as m,T as t}from"../../../TableBody.js";import"react";export{m as TableBody,t as default};
1
+ import{a}from"../../../TableBody.js";import{T as m}from"../../../TableBody.js";import"react";export{m as TableBody,a as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableCell.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableCell/TableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,oBAAY,SAAS;IACnB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,KAAK,UAAU;CAChB;AAED,MAAM,WAAW,KAAK;IACpB,0CAA0C;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,0BAA0B;IAC1B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,8BAA8B;IAC9B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yCAAyC;IACzC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,SAAS,0DAAsG,KAAK,gBAchI,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"TableCell.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableCell/TableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,oBAAY,SAAS;IACnB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,KAAK,UAAU;CAChB;AAED,MAAM,WAAW,KAAK;IACpB,0CAA0C;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,0BAA0B;IAC1B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,8BAA8B;IAC9B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yCAAyC;IACzC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,SAAS,0DAAsG,KAAK,gBAchI,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1,2 +1,2 @@
1
- import"../../../TableCell.js";import{T,a as i,T as p}from"../../../TableCell.js";import"react";import"classnames";import"../styles.module.scss";export{T as TableCell,i as TextAlign,p as default};
1
+ import{b as e}from"../../../TableCell.js";import{T as p,a as i}from"../../../TableCell.js";import"react";import"classnames";import"../styles.module.scss";export{p as TableCell,i as TextAlign,e as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableExpandedRow.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableExpandedRow/TableExpandedRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,MAAM,WAAW,KAAK;IACpB,uBAAuB;IACvB,QAAQ,EAAE,OAAO,CAAC;IAClB,kCAAkC;IAClC,eAAe,EAAE,MAAM,CAAC;IACxB,4BAA4B;IAC5B,eAAe,EAAE,MAAM,CAAC;IACxB,uDAAuD;IACvD,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6CAA6C;IAC7C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,gBAAgB,sFAO1B,KAAK,gBAyBP,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"TableExpandedRow.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableExpandedRow/TableExpandedRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,MAAM,WAAW,KAAK;IACpB,uBAAuB;IACvB,QAAQ,EAAE,OAAO,CAAC;IAClB,kCAAkC;IAClC,eAAe,EAAE,MAAM,CAAC;IACxB,4BAA4B;IAC5B,eAAe,EAAE,MAAM,CAAC;IACxB,uDAAuD;IACvD,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6CAA6C;IAC7C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,gBAAgB,sFAO1B,KAAK,gBAyBP,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1,2 +1,2 @@
1
- import"../../../TableExpandedRow.js";import{T as v,T as y}from"../../../TableExpandedRow.js";import"react";import"classnames";import"../styles.module.scss";import"../../../Button.js";import"../../../constants.js";import"../../../utils/environment.js";import"../../../theme/currys/color.js";import"../../../theme/index.js";import"../../../theme/palette.js";import"../../../theme/spacers.js";import"../../../theme/grid.js";import"../../Icons/Icon.js";import"../../../hooks/useUuid.js";import"../../../uuid.js";import"../../../hooks/useHover.js";import"../../../hooks/useIcons.js";import"../../../hooks/useBreakpoint.js";import"../../Button/styles.module.scss";import"../../Icons/ArrowRight.js";import"../../../hooks/useSize.js";import"../../../utils/debounce.js";import"../../Icons/ChevronUp.js";export{v as TableExpandedRow,y as default};
1
+ import{a as p}from"../../../TableExpandedRow.js";import{T as v}from"../../../TableExpandedRow.js";import"react";import"classnames";import"../../../Button.js";import"../../Icons/Icon.js";import"../../../constants.js";import"../../../hooks/useUuid.js";import"../../../uuid.js";import"../../../utils/environment.js";import"../../../hooks/useBreakpoint.js";import"../../../theme/grid.js";import"../../../hooks/useHover.js";import"../../../hooks/useIcons.js";import"../../../hooks/useSize.js";import"../../../utils/debounce.js";import"../../../theme/currys/color.js";import"../../../theme/index.js";import"../../../theme/palette.js";import"../../../theme/spacers.js";import"../../Icons/ArrowRight.js";import"../../Button/styles.module.scss";import"../../Icons/ChevronUp.js";import"../styles.module.scss";export{v as TableExpandedRow,p as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableExpanderCell.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableExpanderCell/TableExpanderCell.tsx"],"names":[],"mappings":";AAQA,MAAM,WAAW,KAAK;IACpB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uBAAuB;IACvB,QAAQ,EAAE,OAAO,CAAC;IAClB,2BAA2B;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,gDAAgD;IAChD,eAAe,EAAE,MAAM,CAAC;IACxB,gDAAgD;IAChD,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,iBAAiB,gFAM3B,KAAK,gBAgBP,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"TableExpanderCell.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableExpanderCell/TableExpanderCell.tsx"],"names":[],"mappings":";AAUA,MAAM,WAAW,KAAK;IACpB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uBAAuB;IACvB,QAAQ,EAAE,OAAO,CAAC;IAClB,2BAA2B;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,gDAAgD;IAChD,eAAe,EAAE,MAAM,CAAC;IACxB,gDAAgD;IAChD,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,iBAAiB,gFAM3B,KAAK,gBAgBP,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Props } from '../TableRow/TableRow';
3
- declare type TableExpanderCellMobile = Pick<Props, 'expanded' | 'onClick' | 'hideDetailsText' | 'showDetailsText'>;
4
- declare const TableExpanderCellMobile: React.FC<TableExpanderCellMobile>;
3
+ type TableExpanderCellMobileProps = Pick<Props, 'expanded' | 'onClick' | 'hideDetailsText' | 'showDetailsText'>;
4
+ declare const TableExpanderCellMobile: React.FC<TableExpanderCellMobileProps>;
5
5
  export default TableExpanderCellMobile;
6
6
  //# sourceMappingURL=TableExpanderCellMobile.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableExpanderCellMobile.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableExpanderCell/TableExpanderCellMobile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAI7C,aAAK,uBAAuB,GAAG,IAAI,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,GAAG,iBAAiB,GAAG,iBAAiB,CAAC,CAAC;AAE3G,QAAA,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAY9D,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
1
+ {"version":3,"file":"TableExpanderCellMobile.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableExpanderCell/TableExpanderCellMobile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE7C,KAAK,4BAA4B,GAAG,IAAI,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,GAAG,iBAAiB,GAAG,iBAAiB,CAAC,CAAC;AAEhH,QAAA,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CAYnE,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
@@ -1,2 +1,2 @@
1
- import"../../../TableExpanderCell.js";import{T as y,T as z}from"../../../TableExpanderCell.js";import"react";import"classnames";import"../styles.module.scss";import"../../Icons/Icon.js";import"../../../constants.js";import"../../../hooks/useUuid.js";import"../../../uuid.js";import"../../../utils/environment.js";import"../../../Button.js";import"../../../theme/currys/color.js";import"../../../theme/index.js";import"../../../theme/palette.js";import"../../../theme/spacers.js";import"../../../theme/grid.js";import"../../../hooks/useHover.js";import"../../../hooks/useIcons.js";import"../../../hooks/useBreakpoint.js";import"../../Button/styles.module.scss";import"../../Icons/ArrowRight.js";import"../../../hooks/useSize.js";import"../../../utils/debounce.js";import"../../Icons/ChevronDown.js";import"../../Icons/ChevronUp.js";export{y as TableExpanderCell,z as default};
1
+ import{a as o}from"../../../TableExpanderCell.js";import{T as y}from"../../../TableExpanderCell.js";import"react";import"classnames";import"../../../Button.js";import"../../Icons/Icon.js";import"../../../constants.js";import"../../../hooks/useUuid.js";import"../../../uuid.js";import"../../../utils/environment.js";import"../../../hooks/useBreakpoint.js";import"../../../theme/grid.js";import"../../../hooks/useHover.js";import"../../../hooks/useIcons.js";import"../../../hooks/useSize.js";import"../../../utils/debounce.js";import"../../../theme/currys/color.js";import"../../../theme/index.js";import"../../../theme/palette.js";import"../../../theme/spacers.js";import"../../Icons/ArrowRight.js";import"../../Button/styles.module.scss";import"../../Icons/ChevronDown.js";import"../../Icons/ChevronUp.js";import"../styles.module.scss";export{y as TableExpanderCell,o as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableHead.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableHead/TableHead.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,oBAAY,cAAc;IACxB,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;CACtB;AAED,MAAM,WAAW,KAAK;IACpB,kCAAkC;IAClC,QAAQ,EAAE,cAAc,CAAC;IACzB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qDAAqD;IACrD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,SAAS,sCAAyD,KAAK,gBAYnF,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"TableHead.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableHead/TableHead.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,oBAAY,cAAc;IACxB,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;CACtB;AAED,MAAM,WAAW,KAAK;IACpB,kCAAkC;IAClC,QAAQ,EAAE,cAAc,CAAC;IACzB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qDAAqD;IACrD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,SAAS,sCAAyD,KAAK,gBAYnF,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1,2 +1,2 @@
1
- import"../../../TableHead.js";import{H as T,T as d,T as i}from"../../../TableHead.js";import"react";import"classnames";import"../styles.module.scss";export{T as HeaderCategory,d as TableHead,i as default};
1
+ import{a as e}from"../../../TableHead.js";import{H as d,T as i}from"../../../TableHead.js";import"react";import"classnames";import"../styles.module.scss";export{d as HeaderCategory,i as TableHead,e as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableHeadCell.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableHeadCell/TableHeadCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,oBAAY,aAAa;IACvB,GAAG,QAAQ;IACX,IAAI,SAAS;CACd;AAED,MAAM,WAAW,KAAK;IACpB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sBAAsB;IACtB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,2CAA2C;IAC3C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,eAAO,MAAM,aAAa,wDAA+E,KAAK,gBA0C7G,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"TableHeadCell.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableHeadCell/TableHeadCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,oBAAY,aAAa;IACvB,GAAG,QAAQ;IACX,IAAI,SAAS;CACd;AAED,MAAM,WAAW,KAAK;IACpB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sBAAsB;IACtB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,2CAA2C;IAC3C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,eAAO,MAAM,aAAa,wDAA+E,KAAK,gBA0C7G,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,2 +1,2 @@
1
- import"../../../TableHeadCell.js";import{S as C,T as H,T as S}from"../../../TableHeadCell.js";import"react";import"classnames";import"../styles.module.scss";import"../../Icons/Icon.js";import"../../../constants.js";import"../../../hooks/useUuid.js";import"../../../uuid.js";import"../../../utils/environment.js";import"../../Icons/ArrowUp.js";import"../../Icons/ArrowDown.js";export{C as SortDirection,H as TableHeadCell,S as default};
1
+ import{a as r}from"../../../TableHeadCell.js";import{S as x,T as C}from"../../../TableHeadCell.js";import"react";import"classnames";import"../../Icons/Icon.js";import"../../../constants.js";import"../../../hooks/useUuid.js";import"../../../uuid.js";import"../../../utils/environment.js";import"../../Icons/ArrowDown.js";import"../../Icons/ArrowUp.js";import"../styles.module.scss";export{x as SortDirection,C as TableHeadCell,r as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableRow.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableRow/TableRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,WAAW,KAAK;IACpB,2CAA2C;IAC3C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,yDAAyD;IACzD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,yCAAyC;IACzC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,yCAAyC;IACzC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,4BAA4B;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAgCpC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"TableRow.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableRow/TableRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,MAAM,WAAW,KAAK;IACpB,2CAA2C;IAC3C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,yDAAyD;IACzD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,yCAAyC;IACzC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,yCAAyC;IACzC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,4BAA4B;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAgCpC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1 +1 @@
1
- {"props":{"expandable":{"defaultValue":null,"description":"Sets if expanded row can be expanded","name":"expandable","parent":{"fileName":"src/components/Table/TableRow/TableRow.tsx","name":"Props"},"declarations":[{"fileName":"src/components/Table/TableRow/TableRow.tsx","name":"Props"}],"required":false,"type":{"name":"boolean"}},"expanded":{"defaultValue":null,"description":"Sets if expanded row is expanded","name":"expanded","parent":{"fileName":"src/components/Table/TableRow/TableRow.tsx","name":"Props"},"declarations":[{"fileName":"src/components/Table/TableRow/TableRow.tsx","name":"Props"}],"required":false,"type":{"name":"boolean"}},"onClick":{"defaultValue":null,"description":"When hide/show button for expanded row is clicked.","name":"onClick","parent":{"fileName":"src/components/Table/TableRow/TableRow.tsx","name":"Props"},"declarations":[{"fileName":"src/components/Table/TableRow/TableRow.tsx","name":"Props"}],"required":false,"type":{"name":"(() => void)"}},"hideDetailsText":{"defaultValue":null,"description":"Text for expanded row hide button.","name":"hideDetailsText","parent":{"fileName":"src/components/Table/TableRow/TableRow.tsx","name":"Props"},"declarations":[{"fileName":"src/components/Table/TableRow/TableRow.tsx","name":"Props"}],"required":false,"type":{"name":"string"}},"showDetailsText":{"defaultValue":null,"description":"Text for expanded row show button.","name":"showDetailsText","parent":{"fileName":"src/components/Table/TableRow/TableRow.tsx","name":"Props"},"declarations":[{"fileName":"src/components/Table/TableRow/TableRow.tsx","name":"Props"}],"required":false,"type":{"name":"string"}},"rowKey":{"defaultValue":null,"description":"Key attribute for row","name":"rowKey","parent":{"fileName":"src/components/Table/TableRow/TableRow.tsx","name":"Props"},"declarations":[{"fileName":"src/components/Table/TableRow/TableRow.tsx","name":"Props"}],"required":false,"type":{"name":"string"}},"className":{"defaultValue":null,"description":"Adds custom classes to the element.","name":"className","parent":{"fileName":"src/components/Table/TableRow/TableRow.tsx","name":"Props"},"declarations":[{"fileName":"src/components/Table/TableRow/TableRow.tsx","name":"Props"}],"required":false,"type":{"name":"string"}},"children":{"defaultValue":null,"description":"Sets the cells of the table row element.","name":"children","parent":{"fileName":"src/components/Table/TableRow/TableRow.tsx","name":"Props"},"declarations":[{"fileName":"src/components/Table/TableRow/TableRow.tsx","name":"Props"},{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"TypeLiteral"}],"required":false,"type":{"name":"ReactNode"}}}}
1
+ {"props":{"expandable":{"defaultValue":null,"description":"Sets if expanded row can be expanded","name":"expandable","parent":{"fileName":"src/components/Table/TableRow/TableRow.tsx","name":"Props"},"declarations":[{"fileName":"src/components/Table/TableRow/TableRow.tsx","name":"Props"}],"required":false,"type":{"name":"boolean"}},"expanded":{"defaultValue":null,"description":"Sets if expanded row is expanded","name":"expanded","parent":{"fileName":"src/components/Table/TableRow/TableRow.tsx","name":"Props"},"declarations":[{"fileName":"src/components/Table/TableRow/TableRow.tsx","name":"Props"}],"required":false,"type":{"name":"boolean"}},"onClick":{"defaultValue":null,"description":"When hide/show button for expanded row is clicked.","name":"onClick","parent":{"fileName":"src/components/Table/TableRow/TableRow.tsx","name":"Props"},"declarations":[{"fileName":"src/components/Table/TableRow/TableRow.tsx","name":"Props"}],"required":false,"type":{"name":"(() => void)"}},"hideDetailsText":{"defaultValue":null,"description":"Text for expanded row hide button.","name":"hideDetailsText","parent":{"fileName":"src/components/Table/TableRow/TableRow.tsx","name":"Props"},"declarations":[{"fileName":"src/components/Table/TableRow/TableRow.tsx","name":"Props"}],"required":false,"type":{"name":"string"}},"showDetailsText":{"defaultValue":null,"description":"Text for expanded row show button.","name":"showDetailsText","parent":{"fileName":"src/components/Table/TableRow/TableRow.tsx","name":"Props"},"declarations":[{"fileName":"src/components/Table/TableRow/TableRow.tsx","name":"Props"}],"required":false,"type":{"name":"string"}},"rowKey":{"defaultValue":null,"description":"Key attribute for row","name":"rowKey","parent":{"fileName":"src/components/Table/TableRow/TableRow.tsx","name":"Props"},"declarations":[{"fileName":"src/components/Table/TableRow/TableRow.tsx","name":"Props"}],"required":false,"type":{"name":"string"}},"className":{"defaultValue":null,"description":"Adds custom classes to the element.","name":"className","parent":{"fileName":"src/components/Table/TableRow/TableRow.tsx","name":"Props"},"declarations":[{"fileName":"src/components/Table/TableRow/TableRow.tsx","name":"Props"}],"required":false,"type":{"name":"string"}},"children":{"defaultValue":null,"description":"Sets the cells of the table row element.","name":"children","parent":{"fileName":"src/components/Table/TableRow/TableRow.tsx","name":"Props"},"declarations":[{"fileName":"src/components/Table/TableRow/TableRow.tsx","name":"Props"},{"fileName":"s/node_modules/@types/react/index.d.ts","name":"TypeLiteral"}],"required":false,"type":{"name":"ReactNode"}}}}
@@ -1,2 +1,2 @@
1
- import"../../../TableRow.js";import{T as z,T as A}from"../../../TableRow.js";import"react";import"classnames";import"../styles.module.scss";import"../../../Button.js";import"../../../constants.js";import"../../../utils/environment.js";import"../../../theme/currys/color.js";import"../../../theme/index.js";import"../../../theme/palette.js";import"../../../theme/spacers.js";import"../../../theme/grid.js";import"../../Icons/Icon.js";import"../../../hooks/useUuid.js";import"../../../uuid.js";import"../../../hooks/useHover.js";import"../../../hooks/useIcons.js";import"../../../hooks/useBreakpoint.js";import"../../Button/styles.module.scss";import"../../Icons/ArrowRight.js";import"../../../hooks/useSize.js";import"../../../utils/debounce.js";import"../../Icons/ChevronUp.js";import"../../Icons/ChevronDown.js";export{z as TableRow,A as default};
1
+ import{a as r}from"../../../TableRow.js";import{T as z}from"../../../TableRow.js";import"react";import"classnames";import"../styles.module.scss";import"../../../Button.js";import"../../Icons/Icon.js";import"../../../constants.js";import"../../../hooks/useUuid.js";import"../../../uuid.js";import"../../../utils/environment.js";import"../../../hooks/useBreakpoint.js";import"../../../theme/grid.js";import"../../../hooks/useHover.js";import"../../../hooks/useIcons.js";import"../../../hooks/useSize.js";import"../../../utils/debounce.js";import"../../../theme/currys/color.js";import"../../../theme/index.js";import"../../../theme/palette.js";import"../../../theme/spacers.js";import"../../Icons/ArrowRight.js";import"../../Button/styles.module.scss";import"../../Icons/ChevronDown.js";import"../../Icons/ChevronUp.js";export{z as TableRow,r as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import d,{useRef as T,useState as w}from"react";import z from"classnames";import k from"./styles.module.scss";import{AnalyticsId as C}from"../../constants.js";import{H as x}from"../../HorizontalScroll.js";import{useSize as y}from"../../hooks/useSize.js";import{Breakpoint as m,useBreakpoint as B}from"../../hooks/useBreakpoint.js";import{isTouchDevice as H}from"../../utils/device.js";import{useLayoutEvent as W}from"../../hooks/useLayoutEvent.js";import{T as ur}from"../../TableBody.js";import{T as Tr,a as wr}from"../../TableCell.js";import{T as Cr}from"../../TableExpandedRow.js";import{T as yr}from"../../TableExpanderCell.js";import{H as Hr,T as Wr}from"../../TableHead.js";import{S as Er,T as Rr}from"../../TableHeadCell.js";import{T as Vr}from"../../TableRow.js";import"../../hooks/useIsVisible.js";import"../../hooks/useIntersectionObserver.js";import"../HorizontalScroll/styles.module.scss";import"../../utils/debounce.js";import"../../theme/grid.js";import"../../Button.js";import"../../utils/environment.js";import"../../theme/currys/color.js";import"../../theme/index.js";import"../../theme/palette.js";import"../../theme/spacers.js";import"../Icons/Icon.js";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../hooks/useHover.js";import"../../hooks/useIcons.js";import"../Button/styles.module.scss";import"../Icons/ArrowRight.js";import"../Icons/ChevronUp.js";import"../Icons/ChevronDown.js";import"../Icons/ArrowUp.js";import"../Icons/ArrowDown.js";const S=r=>r.variant===t.centeredoverflow||r.variant===t.block,E=r=>k[`table--${r.variant}-${r.breakpoint}`],R=(r,e)=>m[r.breakpoint]-m[e.breakpoint],f=(r,e)=>m[r.breakpoint]>=e,A=(r,e)=>{if(Array.isArray(r))return r.sort(R),r.find(i=>f(i,e));if(r&&f(r,e))return r},V=(r,e,i,p)=>{var s,c;const o=A(r,e),n=H(),l=i<=p;if(!!o)return o.variant===t.centeredoverflow&&!l&&o.fallbackVariant===t.horizontalscroll?{variant:n?t.horizontalscroll:t.none,breakpoint:o.breakpoint}:o.variant===t.centeredoverflow&&!l&&o.fallbackVariant!==t.centeredoverflow?{variant:(s=o.fallbackVariant)!=null?s:t.none,breakpoint:o.breakpoint}:o.variant===t.horizontalscroll&&!n&&o.fallbackVariant===t.centeredoverflow?{variant:l?t.centeredoverflow:t.none,breakpoint:o.breakpoint}:o.variant===t.horizontalscroll&&!n&&o.fallbackVariant!==t.horizontalscroll?{variant:(c=o.fallbackVariant)!=null?c:t.none,breakpoint:o.breakpoint}:o},D=r=>r&&S(r)?E(r):void 0,F=r=>r===t.block||r===t.horizontalscroll,U=r=>({breakpoint:"sm",variant:r});var t=(r=>(r.none="none",r.centeredoverflow="centeredoverflow",r.horizontalscroll="horizontalscroll",r.block="block",r))(t||{});const fr=({id:r,testId:e,className:i,children:p,smallViewportVariant:o="horizontalscroll"})=>{const n=T(null),l=B(),{width:s=0}=y(n)||{},[c,v]=w(window.innerWidth);W(()=>v(window.innerWidth),["resize"],100);const a=F(o)?U(o):V(o,l,s,c),u=D(a),h=z(k.table,u,i),b=d.createElement("table",{className:h,id:r,"data-testid":e,"data-analyticsid":C.Table,ref:n},p);return(a==null?void 0:a.variant)==="horizontalscroll"&&!(a!=null&&a.fallbackVariant)?d.createElement(x,{childWidth:s,testId:"horizontal-scroll"},b):b};export{Hr as HeaderCategory,t as SmallViewportVariant,Er as SortDirection,fr as Table,ur as TableBody,Tr as TableCell,Cr as TableExpandedRow,yr as TableExpanderCell,Wr as TableHead,Rr as TableHeadCell,Vr as TableRow,wr as TextAlign,fr as default};
1
+ import v,{useState as c,useRef as y,useEffect as u}from"react";import B from"classnames";import{Breakpoint as p,useBreakpoint as W}from"../../hooks/useBreakpoint.js";import{isTouchDevice as H}from"../../utils/device.js";import h from"./styles.module.scss";import{AnalyticsId as V}from"../../constants.js";import{useLayoutEvent as E}from"../../hooks/useLayoutEvent.js";import{H as S}from"../../HorizontalScroll.js";import{T as hr}from"../../TableBody.js";import{T as Tr,a as zr}from"../../TableCell.js";import{T as yr}from"../../TableExpandedRow.js";import{T as Wr}from"../../TableExpanderCell.js";import{H as Vr,T as Er}from"../../TableHead.js";import{S as Ar,T as gr}from"../../TableHeadCell.js";import{T as Rr}from"../../TableRow.js";import"../../theme/grid.js";import"../../utils/debounce.js";import"../../hooks/useIsVisible.js";import"../../hooks/useIntersectionObserver.js";import"../../hooks/useSize.js";import"../HorizontalScroll/styles.module.scss";import"../../Button.js";import"../Icons/Icon.js";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../utils/environment.js";import"../../hooks/useHover.js";import"../../hooks/useIcons.js";import"../../theme/currys/color.js";import"../../theme/index.js";import"../../theme/palette.js";import"../../theme/spacers.js";import"../Icons/ArrowRight.js";import"../Button/styles.module.scss";import"../Icons/ChevronUp.js";import"../Icons/ChevronDown.js";import"../Icons/ArrowDown.js";import"../Icons/ArrowUp.js";const A=r=>r.variant===o.centeredoverflow||r.variant===o.block,g=r=>h[`table--${r.variant}-${r.breakpoint}`],D=(r,a)=>p[r.breakpoint]-p[a.breakpoint],w=(r,a)=>p[r.breakpoint]>=a,R=(r,a)=>{if(Array.isArray(r))return r.sort(D),r.find(n=>w(n,a));if(r&&w(r,a))return r},U=(r,a,n,l)=>{const t=R(r,a),e=H(),i=n<=l;if(t)return t.variant===o.centeredoverflow&&!i&&t.fallbackVariant===o.horizontalscroll?{variant:e?o.horizontalscroll:o.none,breakpoint:t.breakpoint}:t.variant===o.centeredoverflow&&!i&&t.fallbackVariant!==o.centeredoverflow?{variant:t.fallbackVariant??o.none,breakpoint:t.breakpoint}:t.variant===o.horizontalscroll&&!e&&t.fallbackVariant===o.centeredoverflow?{variant:i?o.centeredoverflow:o.none,breakpoint:t.breakpoint}:t.variant===o.horizontalscroll&&!e&&t.fallbackVariant!==o.horizontalscroll?{variant:t.fallbackVariant??o.none,breakpoint:t.breakpoint}:t},F=r=>r&&A(r)?g(r):void 0;var o=(r=>(r.none="none",r.centeredoverflow="centeredoverflow",r.horizontalscroll="horizontalscroll",r.block="block",r))(o||{});const I=[{breakpoint:"xl",variant:"centeredoverflow",fallbackVariant:"horizontalscroll"}],kr=[{breakpoint:"xl",variant:"centeredoverflow",fallbackVariant:"horizontalscroll"},{breakpoint:"sm",variant:"centeredoverflow",fallbackVariant:"block"}],vr=({id:r,testId:a,className:n,children:l,breakpointConfig:t=I})=>{const[e,i]=c(),[s,C]=c(0),[m,T]=c(window.innerWidth),f=y(null),d=W();u(()=>{i(U(t,d,s,m))},[t,d,s,m]),u(()=>{var k;(e==null?void 0:e.variant)==="centeredoverflow"&&C(((k=f.current)==null?void 0:k.getBoundingClientRect().width)??0)},[e]),E(()=>T(window.innerWidth),["resize"],100);const z=F(e),x=B(h.table,z,n),b=v.createElement("table",{className:x,id:r,"data-testid":a,"data-analyticsid":V.Table,ref:f},l);return(e==null?void 0:e.variant)==="horizontalscroll"?v.createElement(S,{childWidth:s,testId:"horizontal-scroll"},b):b};export{Vr as HeaderCategory,o as ResponsiveTableVariant,Ar as SortDirection,vr as Table,hr as TableBody,Tr as TableCell,yr as TableExpandedRow,Wr as TableExpanderCell,Er as TableHead,gr as TableHeadCell,Rr as TableRow,zr as TextAlign,vr as default,I as defaultConfig,kr as simpleConfig};
2
2
  //# sourceMappingURL=index.js.map