@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":"PanelList.d.ts","sourceRoot":"","sources":["../../../src/components/PanelList/PanelList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAc,EAAc,YAAY,EAAE,MAAM,UAAU,CAAC;AAG3D,UAAU,cAAc;IACtB,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,oEAAoE;IACpE,OAAO,CAAC,EAAE,MAAM,OAAO,YAAY,CAAC;IACpC,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAKD,QAAA,MAAM,SAAS,uFAeb,CAAC;AAEH,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"PanelList.d.ts","sourceRoot":"","sources":["../../../src/components/PanelList/PanelList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAc,EAAc,YAAY,EAAE,MAAM,UAAU,CAAC;AAI3D,UAAU,cAAc;IACtB,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,oEAAoE;IACpE,OAAO,CAAC,EAAE,MAAM,OAAO,YAAY,CAAC;IACpC,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAKD,QAAA,MAAM,SAAS,uFAeb,CAAC;AAEH,eAAe,SAAS,CAAC"}
@@ -1,2 +1,2 @@
1
- import r from"react";import a from"./styles.module.scss";import{AnalyticsId as c}from"../../constants.js";import{b as p,P as f}from"../../Panel.js";import P from"classnames";import"../Panel/styles.module.scss";import"../../Title.js";import"../Title/styles.module.scss";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"../../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/ChevronDown.js";import"../Icons/ChevronUp.js";import"../Icons/AlertSignFill.js";import"../Icons/Pencil.js";import"../Icons/Calendar.js";import"../Icons/Watch.js";import"../../hooks/usePrevious.js";import"../../utils/accessibility.js";import"../../Badge.js";import"../Badge/styles.module.scss";const y=o=>r.isValidElement(o)&&o.type===f,Y=r.forwardRef(function(e,n){const{testId:s,children:l,variant:i=p.fill}=e,d=(t,m)=>r.cloneElement(t,{variant:i,noTopBorder:i===p.line&&!m,className:P(t.props.className,i!==p.line&&a["panel-list__panel"])});return r.createElement("div",{ref:n,"data-testid":s,className:a["panel-list"],"data-analyticsid":c.PanelList},r.Children.map(l,(t,m)=>y(t)?d(t,m===0):t))});export{Y as default};
1
+ import r from"react";import c from"classnames";import{AnalyticsId as f}from"../../constants.js";import{b as p,P}from"../../Panel.js";import a from"./styles.module.scss";import"../../hooks/useExpand.js";import"../../hooks/usePrevious.js";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../utils/environment.js";import"../../theme/palette.js";import"../../utils/accessibility.js";import"../../Badge.js";import"../Badge/styles.module.scss";import"../../Button.js";import"../Icons/Icon.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/spacers.js";import"../Icons/ArrowRight.js";import"../Button/styles.module.scss";import"../Icons/AlertSignFill.js";import"../Icons/Calendar.js";import"../Icons/ChevronDown.js";import"../Icons/ChevronUp.js";import"../Icons/Pencil.js";import"../Icons/Watch.js";import"../../Title.js";import"../Title/styles.module.scss";import"../Panel/styles.module.scss";const y=o=>r.isValidElement(o)&&o.type===P,N=r.forwardRef(function(e,n){const{testId:s,children:l,variant:i=p.fill}=e,d=(t,m)=>r.cloneElement(t,{variant:i,noTopBorder:i===p.line&&!m,className:c(t.props.className,i!==p.line&&a["panel-list__panel"])});return r.createElement("div",{ref:n,"data-testid":s,className:a["panel-list"],"data-analyticsid":f.PanelList},r.Children.map(l,(t,m)=>y(t)?d(t,m===0):t))}),Z=N;export{Z as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/components/PanelList/PanelList.tsx"],"sourcesContent":["import React from 'react';\n\nimport styles from './styles.module.scss';\nimport { AnalyticsId } from '../../constants';\nimport Panel, { PanelProps, PanelVariant } from '../Panel';\nimport classNames from 'classnames';\n\ninterface PanelListProps {\n /** Panels to render inside the PanelList */\n children?: React.ReactNode;\n /** Changes the visual representation of the panel. Default: fill */\n variant?: keyof typeof PanelVariant;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nconst isPanelComponent = (element: {} | null | undefined): element is React.ReactElement<PanelProps> =>\n React.isValidElement<PanelProps>(element) && (element as React.ReactElement).type === Panel;\n\nconst PanelList = React.forwardRef(function BadgeForwardedRef(props: PanelListProps, ref: React.ForwardedRef<HTMLDivElement>) {\n const { testId, children, variant = PanelVariant.fill } = props;\n\n const renderPanel = (panel: React.ReactElement<PanelProps>, firstChild: boolean) =>\n React.cloneElement(panel, {\n variant: variant,\n noTopBorder: variant === PanelVariant.line && !firstChild,\n className: classNames(panel.props.className, variant !== PanelVariant.line && styles['panel-list__panel']),\n });\n\n return (\n <div ref={ref} data-testid={testId} className={styles['panel-list']} data-analyticsid={AnalyticsId.PanelList}>\n {React.Children.map(children, (child, index) => (isPanelComponent(child) ? renderPanel(child, index === 0) : child))}\n </div>\n );\n});\n\nexport default PanelList;\n"],"names":["isPanelComponent","element","React","Panel","PanelList","props","ref","testId","children","variant","PanelVariant","renderPanel","panel","firstChild","classNames","styles","AnalyticsId","child","index"],"mappings":"8kCAgBA,MAAMA,EAAoBC,GACxBC,EAAM,eAA2BD,CAAO,GAAMA,EAA+B,OAASE,EAElFC,EAAYF,EAAM,WAAW,SAA2BG,EAAuBC,EAAyC,CAC5H,KAAM,CAAE,OAAAC,EAAQ,SAAAC,EAAU,QAAAC,EAAUC,EAAa,IAAS,EAAAL,EAEpDM,EAAc,CAACC,EAAuCC,IAC1DX,EAAM,aAAaU,EAAO,CACxB,QAAAH,EACA,YAAaA,IAAYC,EAAa,MAAQ,CAACG,EAC/C,UAAWC,EAAWF,EAAM,MAAM,UAAWH,IAAYC,EAAa,MAAQK,EAAO,oBAAoB,CAAA,CAC1G,EAEH,OACGb,EAAA,cAAA,MAAA,CAAI,IAAAI,EAAU,cAAaC,EAAQ,UAAWQ,EAAO,cAAe,mBAAkBC,EAAY,SAAA,EAChGd,EAAM,SAAS,IAAIM,EAAU,CAACS,EAAOC,IAAWlB,EAAiBiB,CAAK,EAAIN,EAAYM,EAAOC,IAAU,CAAC,EAAID,CAAM,CACrH,CAEJ,CAAC"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/PanelList/PanelList.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { AnalyticsId } from '../../constants';\nimport Panel, { PanelProps, PanelVariant } from '../Panel';\n\nimport styles from './styles.module.scss';\n\ninterface PanelListProps {\n /** Panels to render inside the PanelList */\n children?: React.ReactNode;\n /** Changes the visual representation of the panel. Default: fill */\n variant?: keyof typeof PanelVariant;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nconst isPanelComponent = (element: {} | null | undefined): element is React.ReactElement<PanelProps> =>\n React.isValidElement<PanelProps>(element) && (element as React.ReactElement).type === Panel;\n\nconst PanelList = React.forwardRef(function BadgeForwardedRef(props: PanelListProps, ref: React.ForwardedRef<HTMLDivElement>) {\n const { testId, children, variant = PanelVariant.fill } = props;\n\n const renderPanel = (panel: React.ReactElement<PanelProps>, firstChild: boolean) =>\n React.cloneElement(panel, {\n variant: variant,\n noTopBorder: variant === PanelVariant.line && !firstChild,\n className: classNames(panel.props.className, variant !== PanelVariant.line && styles['panel-list__panel']),\n });\n\n return (\n <div ref={ref} data-testid={testId} className={styles['panel-list']} data-analyticsid={AnalyticsId.PanelList}>\n {React.Children.map(children, (child, index) => (isPanelComponent(child) ? renderPanel(child, index === 0) : child))}\n </div>\n );\n});\n\nexport default PanelList;\n"],"names":["isPanelComponent","element","React","Panel","PanelList","props","ref","testId","children","variant","PanelVariant","renderPanel","panel","firstChild","classNames","styles","AnalyticsId","child","index","PanelList$1"],"mappings":"0mCAkBA,MAAMA,EAAoBC,GACxBC,EAAM,eAA2BD,CAAO,GAAMA,EAA+B,OAASE,EAElFC,EAAYF,EAAM,WAAW,SAA2BG,EAAuBC,EAAyC,CAC5H,KAAM,CAAE,OAAAC,EAAQ,SAAAC,EAAU,QAAAC,EAAUC,EAAa,IAAS,EAAAL,EAEpDM,EAAc,CAACC,EAAuCC,IAC1DX,EAAM,aAAaU,EAAO,CACxB,QAAAH,EACA,YAAaA,IAAYC,EAAa,MAAQ,CAACG,EAC/C,UAAWC,EAAWF,EAAM,MAAM,UAAWH,IAAYC,EAAa,MAAQK,EAAO,mBAAmB,CAAC,CAAA,CAC1G,EAEH,OACGb,EAAA,cAAA,MAAA,CAAI,IAAAI,EAAU,cAAaC,EAAQ,UAAWQ,EAAO,YAAY,EAAG,mBAAkBC,EAAY,SAAA,EAChGd,EAAM,SAAS,IAAIM,EAAU,CAACS,EAAOC,IAAWlB,EAAiBiB,CAAK,EAAIN,EAAYM,EAAOC,IAAU,CAAC,EAAID,CAAM,CACrH,CAEJ,CAAC,EAEDE,EAAef"}
@@ -0,0 +1,30 @@
1
+ import React from 'react';
2
+ import { LinkListProps } from '../LinkList';
3
+ export declare enum PopMenuVariant {
4
+ onWhite = "on-white",
5
+ onGray = "on-gray",
6
+ onBlueberry = "on-blueberry"
7
+ }
8
+ export interface PopMenuProps {
9
+ /** Content shown inside PopOver. Can only be a LinkList */
10
+ children: React.ReactElement<LinkListProps>;
11
+ /** Adds custom classes to the popover element. */
12
+ popOverClassName?: string;
13
+ /** Adds custom classes to the element. */
14
+ popMenuClassName?: string;
15
+ /** Changes responsive design for the trigger buttons. */
16
+ popMenuVariant?: PopMenuVariant;
17
+ /** Sets the data-testid attribute for the button that opens. */
18
+ openButtonTestId?: string;
19
+ /** Sets the data-testid attribute for the button that closes. */
20
+ closeButtonTestId?: string;
21
+ /** Sets the data-testid attribute for the popover. */
22
+ popOverTestId?: string;
23
+ /** Sets the arial-label attribute for the openButton. */
24
+ openButtonAriaLabel?: string;
25
+ /** Sets the arial-label attribute for the closeButton. */
26
+ closeButtonAriaLabel?: string;
27
+ }
28
+ export declare const PopMenu: React.FC<PopMenuProps>;
29
+ export default PopMenu;
30
+ //# sourceMappingURL=PopMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PopMenu.d.ts","sourceRoot":"","sources":["../../../src/components/PopMenu/PopMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAchD,OAAiB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAKtD,oBAAY,cAAc;IACxB,OAAO,aAAa;IACpB,MAAM,YAAY;IAClB,WAAW,iBAAiB;CAC7B;AAED,MAAM,WAAW,YAAY;IAC3B,2DAA2D;IAC3D,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC;IAC5C,kDAAkD;IAClD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,0CAA0C;IAC1C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,yDAAyD;IACzD,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,gEAAgE;IAChE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iEAAiE;IACjE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,sDAAsD;IACtD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,yDAAyD;IACzD,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,0DAA0D;IAC1D,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CA2E1C,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1 @@
1
+ {"props":{"children":{"defaultValue":null,"description":"Content shown inside PopOver. Can only be a LinkList","name":"children","parent":{"fileName":"src/components/PopMenu/PopMenu.tsx","name":"PopMenuProps"},"declarations":[{"fileName":"src/components/PopMenu/PopMenu.tsx","name":"PopMenuProps"},{"fileName":"s/node_modules/@types/react/index.d.ts","name":"TypeLiteral"}],"required":false,"type":{"name":"ReactElement<LinkListProps, string | JSXElementConstructor<any>> & ReactNode"}},"popOverClassName":{"defaultValue":null,"description":"Adds custom classes to the popover element.","name":"popOverClassName","parent":{"fileName":"src/components/PopMenu/PopMenu.tsx","name":"PopMenuProps"},"declarations":[{"fileName":"src/components/PopMenu/PopMenu.tsx","name":"PopMenuProps"}],"required":false,"type":{"name":"string"}},"popMenuClassName":{"defaultValue":null,"description":"Adds custom classes to the element.","name":"popMenuClassName","parent":{"fileName":"src/components/PopMenu/PopMenu.tsx","name":"PopMenuProps"},"declarations":[{"fileName":"src/components/PopMenu/PopMenu.tsx","name":"PopMenuProps"}],"required":false,"type":{"name":"string"}},"popMenuVariant":{"defaultValue":null,"description":"Changes responsive design for the trigger buttons.","name":"popMenuVariant","parent":{"fileName":"src/components/PopMenu/PopMenu.tsx","name":"PopMenuProps"},"declarations":[{"fileName":"src/components/PopMenu/PopMenu.tsx","name":"PopMenuProps"}],"required":false,"type":{"name":"enum","raw":"PopMenuVariant","value":[{"value":"\"on-white\"","description":"","fullComment":"","tags":{}},{"value":"\"on-gray\"","description":"","fullComment":"","tags":{}},{"value":"\"on-blueberry\"","description":"","fullComment":"","tags":{}}]}},"openButtonTestId":{"defaultValue":null,"description":"Sets the data-testid attribute for the button that opens.","name":"openButtonTestId","parent":{"fileName":"src/components/PopMenu/PopMenu.tsx","name":"PopMenuProps"},"declarations":[{"fileName":"src/components/PopMenu/PopMenu.tsx","name":"PopMenuProps"}],"required":false,"type":{"name":"string"}},"closeButtonTestId":{"defaultValue":null,"description":"Sets the data-testid attribute for the button that closes.","name":"closeButtonTestId","parent":{"fileName":"src/components/PopMenu/PopMenu.tsx","name":"PopMenuProps"},"declarations":[{"fileName":"src/components/PopMenu/PopMenu.tsx","name":"PopMenuProps"}],"required":false,"type":{"name":"string"}},"popOverTestId":{"defaultValue":null,"description":"Sets the data-testid attribute for the popover.","name":"popOverTestId","parent":{"fileName":"src/components/PopMenu/PopMenu.tsx","name":"PopMenuProps"},"declarations":[{"fileName":"src/components/PopMenu/PopMenu.tsx","name":"PopMenuProps"}],"required":false,"type":{"name":"string"}},"openButtonAriaLabel":{"defaultValue":null,"description":"Sets the arial-label attribute for the openButton.","name":"openButtonAriaLabel","parent":{"fileName":"src/components/PopMenu/PopMenu.tsx","name":"PopMenuProps"},"declarations":[{"fileName":"src/components/PopMenu/PopMenu.tsx","name":"PopMenuProps"}],"required":false,"type":{"name":"string"}},"closeButtonAriaLabel":{"defaultValue":null,"description":"Sets the arial-label attribute for the closeButton.","name":"closeButtonAriaLabel","parent":{"fileName":"src/components/PopMenu/PopMenu.tsx","name":"PopMenuProps"},"declarations":[{"fileName":"src/components/PopMenu/PopMenu.tsx","name":"PopMenuProps"}],"required":false,"type":{"name":"string"}}}}
@@ -0,0 +1,5 @@
1
+ .story-wrapper {
2
+ display: flex;
3
+ align-items: center;
4
+ justify-content: center;
5
+ }
@@ -0,0 +1,9 @@
1
+ export type Styles = {
2
+ 'story-wrapper': string;
3
+ };
4
+
5
+ export type ClassNames = keyof Styles;
6
+
7
+ declare const styles: Styles;
8
+
9
+ export default styles;
@@ -0,0 +1,117 @@
1
+ @import '../../scss/_palette.scss';
2
+ @import '../../scss/_breakpoints.scss';
3
+ .pop-menu-button {
4
+ padding: 0;
5
+ border: 0;
6
+ background-color: transparent;
7
+ cursor: pointer;
8
+ display: flex;
9
+ justify-content: center;
10
+ align-items: center;
11
+ height: 3rem;
12
+ width: 3rem;
13
+
14
+ &:focus {
15
+ border: 0.1875rem solid $black;
16
+ box-shadow: none;
17
+ outline: none;
18
+ }
19
+ :focus > .pop-menu-button {
20
+ box-shadow: none;
21
+ }
22
+ }
23
+
24
+ //overrides
25
+ :focus > .pop-menu-button:hover {
26
+ box-shadow: none;
27
+ }
28
+ html :focus > .pop-menu-button {
29
+ box-shadow: none;
30
+ border: solid;
31
+ }
32
+
33
+ .pop-menu-button--on-white {
34
+ &:focus {
35
+ background-color: transparent;
36
+ }
37
+ &:active {
38
+ background-color: $neutral50;
39
+ border: none;
40
+ }
41
+ &:hover {
42
+ background-color: $neutral50;
43
+ }
44
+ &:active:hover {
45
+ background-color: transparent;
46
+ }
47
+ &:active:focus {
48
+ background-color: $neutral50;
49
+ border: 0.1875rem solid $black;
50
+ }
51
+ }
52
+ .pop-menu-button--on-gray {
53
+ &:focus {
54
+ background-color: transparent;
55
+ }
56
+ &:active {
57
+ background-color: $neutral100;
58
+ border: none;
59
+ }
60
+ &:hover {
61
+ background-color: $neutral100;
62
+ }
63
+ &:active:hover {
64
+ background-color: transparent;
65
+ }
66
+ &:active:focus {
67
+ background-color: $neutral100;
68
+ border: 0.1875rem solid $black;
69
+ }
70
+ }
71
+ .pop-menu-button--on-blueberry {
72
+ &:focus {
73
+ background-color: transparent;
74
+ }
75
+ &:active {
76
+ background-color: $blueberry100;
77
+ border: none;
78
+ }
79
+ &:hover {
80
+ background-color: $blueberry100;
81
+ }
82
+ &:active:hover {
83
+ background-color: transparent;
84
+ }
85
+ &:active:focus {
86
+ background-color: $blueberry100;
87
+ border: 0.1875rem solid $black;
88
+ }
89
+ }
90
+ .pop-menu__pop-over {
91
+ width: 20.875rem;
92
+ width: 26.125rem;
93
+ border: 0.125rem solid rgb(24, 128, 151);
94
+ box-shadow: 0px 0px 0.3125rem 0px rgba(0, 0, 0, 0.5);
95
+
96
+ @media (min-width: map-get($grid-breakpoints, md)) {
97
+ width: 26.125rem;
98
+ }
99
+
100
+ li:first-of-type {
101
+ a:hover,
102
+ a:focus {
103
+ border-top-left-radius: 0.5625rem;
104
+ border-top-right-radius: 0.5625rem;
105
+ }
106
+ }
107
+ li:last-of-type {
108
+ a:hover,
109
+ a:focus {
110
+ border-bottom-left-radius: 0.5625rem;
111
+ border-bottom-right-radius: 0.5625rem;
112
+ }
113
+ }
114
+ }
115
+ .pop-menu__pop-over-arrow {
116
+ filter: drop-shadow(0px -0.185rem 0px rgb(24, 128, 151));
117
+ }
@@ -0,0 +1,14 @@
1
+ export type Styles = {
2
+ 'pop-menu__pop-over': string;
3
+ 'pop-menu__pop-over-arrow': string;
4
+ 'pop-menu-button': string;
5
+ 'pop-menu-button--on-blueberry': string;
6
+ 'pop-menu-button--on-gray': string;
7
+ 'pop-menu-button--on-white': string;
8
+ };
9
+
10
+ export type ClassNames = keyof Styles;
11
+
12
+ declare const styles: Styles;
13
+
14
+ export default styles;
@@ -0,0 +1,32 @@
1
+ import React from 'react';
2
+ export declare enum PopOverVariant {
3
+ positionautomatic = "positionautomatic",
4
+ positionbelow = "positionbelow",
5
+ positionabove = "positionabove"
6
+ }
7
+ export type PopOverRole = 'tooltip';
8
+ export interface PopOverProps {
9
+ /** Id of the PopOver */
10
+ id?: string;
11
+ /** Content shown inside PopOver. Note that if role="tooltip", you must not include interactive/focusable elements. */
12
+ children: React.ReactNode;
13
+ /** Ref for the element the PopOver is placed upon */
14
+ controllerRef: React.RefObject<HTMLElement | SVGSVGElement>;
15
+ /** Ref for the element the PopOver is placed upon */
16
+ popOverRef?: React.RefObject<HTMLDivElement>;
17
+ /** Adds custom classes to the element. */
18
+ className?: string;
19
+ /** Adds custom classes to the arrow element. */
20
+ arrowClassName?: string;
21
+ /** Determines the placement of the popover. Default: automatic positioning. */
22
+ variant?: keyof typeof PopOverVariant;
23
+ /** Sets role of the PopOver element. If set to "tooltip", */
24
+ role?: PopOverRole;
25
+ /** Sets the data-testid attribute. */
26
+ testId?: string;
27
+ /** Closes bubble on click outside the bubble. */
28
+ closeOnClickOutside?: boolean;
29
+ }
30
+ declare const PopOver: React.ForwardRefExoticComponent<PopOverProps & React.RefAttributes<HTMLDivElement | SVGSVGElement>>;
31
+ export default PopOver;
32
+ //# sourceMappingURL=PopOver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PopOver.d.ts","sourceRoot":"","sources":["../../../src/components/PopOver/PopOver.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAc3D,oBAAY,cAAc;IACxB,iBAAiB,sBAAsB;IACvC,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;CAChC;AAED,MAAM,MAAM,WAAW,GAAG,SAAS,CAAC;AAEpC,MAAM,WAAW,YAAY;IAC3B,wBAAwB;IACxB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,sHAAsH;IACtH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,qDAAqD;IACrD,aAAa,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,aAAa,CAAC,CAAC;IAC5D,qDAAqD;IACrD,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IAC7C,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,+EAA+E;IAC/E,OAAO,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;IACtC,8DAA8D;IAC9D,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iDAAiD;IACjD,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,QAAA,MAAM,OAAO,qGA8DX,CAAC;AAIH,eAAe,OAAO,CAAC"}
@@ -0,0 +1 @@
1
+ {"props":{"id":{"defaultValue":null,"description":"Id of the PopOver","name":"id","parent":{"fileName":"src/components/PopOver/PopOver.tsx","name":"PopOverProps"},"declarations":[{"fileName":"src/components/PopOver/PopOver.tsx","name":"PopOverProps"}],"required":false,"type":{"name":"string"}},"children":{"defaultValue":null,"description":"Content shown inside PopOver. Note that if role=\"tooltip\", you must not include interactive/focusable elements.","name":"children","parent":{"fileName":"src/components/PopOver/PopOver.tsx","name":"PopOverProps"},"declarations":[{"fileName":"src/components/PopOver/PopOver.tsx","name":"PopOverProps"}],"required":true,"type":{"name":"ReactNode"}},"controllerRef":{"defaultValue":null,"description":"Ref for the element the PopOver is placed upon","name":"controllerRef","parent":{"fileName":"src/components/PopOver/PopOver.tsx","name":"PopOverProps"},"declarations":[{"fileName":"src/components/PopOver/PopOver.tsx","name":"PopOverProps"}],"required":true,"type":{"name":"RefObject<HTMLElement | SVGSVGElement>"}},"popOverRef":{"defaultValue":null,"description":"Ref for the element the PopOver is placed upon","name":"popOverRef","parent":{"fileName":"src/components/PopOver/PopOver.tsx","name":"PopOverProps"},"declarations":[{"fileName":"src/components/PopOver/PopOver.tsx","name":"PopOverProps"}],"required":false,"type":{"name":"RefObject<HTMLDivElement>"}},"className":{"defaultValue":null,"description":"Adds custom classes to the element.","name":"className","parent":{"fileName":"src/components/PopOver/PopOver.tsx","name":"PopOverProps"},"declarations":[{"fileName":"src/components/PopOver/PopOver.tsx","name":"PopOverProps"}],"required":false,"type":{"name":"string"}},"arrowClassName":{"defaultValue":null,"description":"Adds custom classes to the arrow element.","name":"arrowClassName","parent":{"fileName":"src/components/PopOver/PopOver.tsx","name":"PopOverProps"},"declarations":[{"fileName":"src/components/PopOver/PopOver.tsx","name":"PopOverProps"}],"required":false,"type":{"name":"string"}},"variant":{"defaultValue":null,"description":"Determines the placement of the popover. Default: automatic positioning.","name":"variant","parent":{"fileName":"src/components/PopOver/PopOver.tsx","name":"PopOverProps"},"declarations":[{"fileName":"src/components/PopOver/PopOver.tsx","name":"PopOverProps"}],"required":false,"type":{"name":"enum","raw":"\"positionautomatic\" | \"positionbelow\" | \"positionabove\"","value":[{"value":"\"positionautomatic\""},{"value":"\"positionbelow\""},{"value":"\"positionabove\""}]}},"role":{"defaultValue":null,"description":"Sets role of the PopOver element. If set to \"tooltip\",","name":"role","parent":{"fileName":"src/components/PopOver/PopOver.tsx","name":"PopOverProps"},"declarations":[{"fileName":"src/components/PopOver/PopOver.tsx","name":"PopOverProps"}],"required":false,"type":{"name":"enum","raw":"\"tooltip\"","value":[{"value":"\"tooltip\""}]}},"testId":{"defaultValue":null,"description":"Sets the data-testid attribute.","name":"testId","parent":{"fileName":"src/components/PopOver/PopOver.tsx","name":"PopOverProps"},"declarations":[{"fileName":"src/components/PopOver/PopOver.tsx","name":"PopOverProps"}],"required":false,"type":{"name":"string"}},"closeOnClickOutside":{"defaultValue":null,"description":"Closes bubble on click outside the bubble.","name":"closeOnClickOutside","parent":{"fileName":"src/components/PopOver/PopOver.tsx","name":"PopOverProps"},"declarations":[{"fileName":"src/components/PopOver/PopOver.tsx","name":"PopOverProps"}],"required":false,"type":{"name":"boolean"}}}}
@@ -0,0 +1,4 @@
1
+ import PopOver from './PopOver';
2
+ export * from './PopOver';
3
+ export default PopOver;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PopOver/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,eAAe,OAAO,CAAC"}
@@ -0,0 +1,2 @@
1
+ import{a as o}from"../../PopOver.js";import{P as l}from"../../PopOver.js";import"react";import"classnames";import"../../constants.js";import"../../hooks/useInterval.js";import"../../hooks/useIsVisible.js";import"../../hooks/useIntersectionObserver.js";import"../../hooks/useLayoutEvent.js";import"../../utils/debounce.js";import"../../hooks/useSize.js";import"../../utils/refs.js";import"./styles.module.scss";export{l as PopOverVariant,o as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,63 @@
1
+ @import '../../scss/_spacers.scss';
2
+ @import '../../scss/_breakpoints.scss';
3
+ @import '../../scss/_palette.scss';
4
+ @import '../../scss/_font-settings.scss';
5
+ @import '../AnchorLink/styles.module.scss';
6
+
7
+ .popover {
8
+ $popover: &;
9
+ display: flex;
10
+ position: fixed;
11
+ align-items: flex-start !important;
12
+ max-width: 23.3125rem;
13
+ text-align: start;
14
+ font-family: inherit;
15
+ font-size: $font-size-sm;
16
+ line-height: $lineheight-size-sm;
17
+ background-color: $white;
18
+ z-index: 3;
19
+ visibility: hidden;
20
+
21
+ & + &__arrow {
22
+ visibility: hidden;
23
+ }
24
+
25
+ &--visible {
26
+ visibility: visible;
27
+
28
+ & + #{$popover}__arrow {
29
+ visibility: visible;
30
+ }
31
+ }
32
+
33
+ border: getSpacer(4xs) solid $plum600;
34
+ border-radius: 0.5625rem;
35
+ box-shadow: 0 0.125rem 1.125rem 0 rgba(0, 0, 0, 0.15);
36
+
37
+ @media (min-width: map-get($grid-breakpoints, lg)) {
38
+ font-size: $font-size-md;
39
+ line-height: $lineheight-size-md;
40
+ }
41
+
42
+ &__arrow {
43
+ width: 0;
44
+ height: 0;
45
+ position: fixed;
46
+ border-style: solid;
47
+ border-color: transparent;
48
+ z-index: 3;
49
+
50
+ &--over {
51
+ border-width: 0.625rem 0.625rem;
52
+ border-bottom-color: $white;
53
+ -webkit-filter: drop-shadow($plum600 0px 0.125rem 0.375rem 0.125rem);
54
+ filter: drop-shadow(0px -0.185rem 0px $plum600);
55
+ }
56
+ &--under {
57
+ border-width: 0.625rem 0.625rem;
58
+ border-top-color: $white;
59
+ -webkit-filter: drop-shadow($plum600 0px 0.125rem 0.375rem 0.125rem);
60
+ filter: drop-shadow(0px 0.2rem 0px $plum600);
61
+ }
62
+ }
63
+ }
@@ -0,0 +1,16 @@
1
+ export type Styles = {
2
+ anchorlink: string;
3
+ anchorlink__icon: string;
4
+ 'anchorlink-wrapper': string;
5
+ popover: string;
6
+ popover__arrow: string;
7
+ 'popover__arrow--over': string;
8
+ 'popover__arrow--under': string;
9
+ 'popover--visible': string;
10
+ };
11
+
12
+ export type ClassNames = keyof Styles;
13
+
14
+ declare const styles: Styles;
15
+
16
+ export default styles;
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties } from 'react';
2
- import { HelpBubbleVariant } from './HelpBubble';
2
+ import { PopOverVariant } from './PopOver';
3
3
  /**
4
4
  * Beregn om hjelpeboblen skal vises over eller under kontrolleren
5
5
  * @param controllerSize DOMRect for controlleren
@@ -7,7 +7,7 @@ import { HelpBubbleVariant } from './HelpBubble';
7
7
  * @param variant Ønsket plassering av hjelpeboblen (over/under/automatisk)
8
8
  * @returns Om hjelpeboblen skal vises over eller under
9
9
  */
10
- export declare const getVerticalPosition: (controllerSize: DOMRect, bubbleSize: DOMRect, variant: keyof typeof HelpBubbleVariant) => keyof typeof HelpBubbleVariant;
10
+ export declare const getVerticalPosition: (controllerSize: DOMRect, bubbleSize: DOMRect, variant: keyof typeof PopOverVariant) => keyof typeof PopOverVariant;
11
11
  /**
12
12
  * Finn riktig plassering av hjelpeboblen
13
13
  * @param controllerSize DOMRect for controlleren
@@ -15,7 +15,7 @@ export declare const getVerticalPosition: (controllerSize: DOMRect, bubbleSize:
15
15
  * @param variant Ønsket plassering av hjelpeboblen (over/under)
16
16
  * @returns CSSProperties som plasserer hjelpeboblen riktig
17
17
  */
18
- export declare const getBubbleStyle: (controllerSize: DOMRect, bubbleSize: DOMRect, variant: keyof typeof HelpBubbleVariant) => CSSProperties;
18
+ export declare const getBubbleStyle: (controllerSize: DOMRect, bubbleSize: DOMRect, variant: keyof typeof PopOverVariant) => CSSProperties;
19
19
  /**
20
20
  * Finn riktig plassering av pilen
21
21
  * @param bubbleStyle CSSProperties for hjelpeboblen
@@ -23,5 +23,5 @@ export declare const getBubbleStyle: (controllerSize: DOMRect, bubbleSize: DOMRe
23
23
  * @param verticalPosition Ønsket plassering av hjelpeboblen (over/under)
24
24
  * @returns CSSProperties som plasserer pilen riktig
25
25
  */
26
- export declare const getArrowStyle: (bubbleStyle: CSSProperties, controllerSize: DOMRect, verticalPosition: keyof typeof HelpBubbleVariant) => CSSProperties;
26
+ export declare const getArrowStyle: (bubbleStyle: CSSProperties, controllerSize: DOMRect, verticalPosition: keyof typeof PopOverVariant) => CSSProperties;
27
27
  //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/PopOver/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAkB3C;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,mBACd,OAAO,cACX,OAAO,WACV,MAAM,qBAAqB,KACnC,MAAM,qBASR,CAAC;AAsKF;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,mBAAoB,OAAO,cAAc,OAAO,WAAW,MAAM,qBAAqB,KAAG,aA0BnH,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,gBACX,aAAa,kBACV,OAAO,oBACL,MAAM,qBAAqB,KAC5C,aA+BF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Portal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,WAAW;IAC1B,oEAAoE;IACpE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wCAAwC;IACxC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,+BAA+B;IAC/B,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,WAAW,GAAG,KAAK,CAAC,WAAW,CA0BtG"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Portal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,WAAW,WAAW;IAC1B,oEAAoE;IACpE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wCAAwC;IACxC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,+BAA+B;IAC/B,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,WAAW,GAAG,KAAK,CAAC,WAAW,CA0BtG"}
@@ -1,2 +1,2 @@
1
- import c from"react";import{createPortal as l}from"react-dom";import{AnalyticsId as n}from"../../constants.js";function p({children:s,parent:e,className:o,testId:i}){const t=c.useMemo(()=>document.createElement("div"),[]);return t.setAttribute("data-analyticsid",n.Portal),i&&t.setAttribute("data-testid",i),c.useEffect(()=>{const a=e&&!!e.appendChild?e:document.body,d=["portal-container"];return o&&o.split(" ").forEach(r=>d.push(r)),d.forEach(r=>t.classList.add(r)),a.appendChild(t),()=>{a.removeChild(t)}},[t,e,o]),l(s,t)}export{p as default};
1
+ import c from"react";import{createPortal as l}from"react-dom";import{AnalyticsId as n}from"../../constants.js";function p({children:s,parent:e,className:o,testId:i}){const t=c.useMemo(()=>document.createElement("div"),[]);return t.setAttribute("data-analyticsid",n.Portal),i&&t.setAttribute("data-testid",i),c.useEffect(()=>{const a=e&&e.appendChild?e:document.body,d=["portal-container"];return o&&o.split(" ").forEach(r=>d.push(r)),d.forEach(r=>t.classList.add(r)),a.appendChild(t),()=>{a.removeChild(t)}},[t,e,o]),l(s,t)}export{p as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/components/Portal/index.tsx"],"sourcesContent":["import React from 'react';\nimport { createPortal } from 'react-dom';\nimport { AnalyticsId } from '../../constants';\n\nexport interface PortalProps {\n /** Add custom class to portal, default class is portal-container */\n className?: string;\n /** Content to be displayed in Portal */\n children?: React.ReactNode;\n /** Default is document.body */\n parent?: HTMLElement;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nexport default function Portal({ children, parent, className, testId }: PortalProps): React.ReactPortal {\n // Create div to contain everything\n const el = React.useMemo(() => document.createElement('div'), []);\n el.setAttribute('data-analyticsid', AnalyticsId.Portal);\n if (testId) {\n el.setAttribute('data-testid', testId);\n }\n // On mount function\n React.useEffect(() => {\n // work out target in the DOM based on parent prop\n const target = parent && !!parent.appendChild ? parent : document.body;\n // Default classes\n const classList = ['portal-container'];\n // If className prop is present add each class the classList\n if (className) className.split(' ').forEach(item => classList.push(item));\n classList.forEach(item => el.classList.add(item));\n\n target.appendChild(el);\n // On unmount function\n return (): void => {\n // Remove element from dom\n target.removeChild(el);\n };\n }, [el, parent, className]);\n\n return createPortal(children, el);\n}\n"],"names":["Portal","children","parent","className","testId","el","React","AnalyticsId","target","classList","item","createPortal"],"mappings":"+GAeA,SAAwBA,EAAO,CAAE,SAAAC,EAAU,OAAAC,EAAQ,UAAAC,EAAW,OAAAC,GAA0C,CAEhG,MAAAC,EAAKC,EAAM,QAAQ,IAAM,SAAS,cAAc,KAAK,EAAG,CAAA,CAAE,EAC7D,OAAAD,EAAA,aAAa,mBAAoBE,EAAY,MAAM,EAClDH,GACCC,EAAA,aAAa,cAAeD,CAAM,EAGvCE,EAAM,UAAU,IAAM,CAEpB,MAAME,EAASN,GAAU,CAAC,CAACA,EAAO,YAAcA,EAAS,SAAS,KAE5DO,EAAY,CAAC,kBAAkB,EAEjC,OAAAN,GAAqBA,EAAA,MAAM,GAAG,EAAE,WAAgBM,EAAU,KAAKC,CAAI,CAAC,EACxED,EAAU,QAAgBC,GAAAL,EAAG,UAAU,IAAIK,CAAI,CAAC,EAEhDF,EAAO,YAAYH,CAAE,EAEd,IAAY,CAEjBG,EAAO,YAAYH,CAAE,CAAA,CAEtB,EAAA,CAACA,EAAIH,EAAQC,CAAS,CAAC,EAEnBQ,EAAaV,EAAUI,CAAE,CAClC"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/Portal/index.tsx"],"sourcesContent":["import React from 'react';\n\nimport { createPortal } from 'react-dom';\n\nimport { AnalyticsId } from '../../constants';\n\nexport interface PortalProps {\n /** Add custom class to portal, default class is portal-container */\n className?: string;\n /** Content to be displayed in Portal */\n children?: React.ReactNode;\n /** Default is document.body */\n parent?: HTMLElement;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nexport default function Portal({ children, parent, className, testId }: PortalProps): React.ReactPortal {\n // Create div to contain everything\n const el = React.useMemo(() => document.createElement('div'), []);\n el.setAttribute('data-analyticsid', AnalyticsId.Portal);\n if (testId) {\n el.setAttribute('data-testid', testId);\n }\n // On mount function\n React.useEffect(() => {\n // work out target in the DOM based on parent prop\n const target = parent && !!parent.appendChild ? parent : document.body;\n // Default classes\n const classList = ['portal-container'];\n // If className prop is present add each class the classList\n if (className) className.split(' ').forEach(item => classList.push(item));\n classList.forEach(item => el.classList.add(item));\n\n target.appendChild(el);\n // On unmount function\n return (): void => {\n // Remove element from dom\n target.removeChild(el);\n };\n }, [el, parent, className]);\n\n return createPortal(children, el);\n}\n"],"names":["Portal","children","parent","className","testId","el","React","AnalyticsId","target","classList","item","createPortal"],"mappings":"+GAiBA,SAAwBA,EAAO,CAAE,SAAAC,EAAU,OAAAC,EAAQ,UAAAC,EAAW,OAAAC,GAA0C,CAEhG,MAAAC,EAAKC,EAAM,QAAQ,IAAM,SAAS,cAAc,KAAK,EAAG,CAAA,CAAE,EAC7D,OAAAD,EAAA,aAAa,mBAAoBE,EAAY,MAAM,EAClDH,GACCC,EAAA,aAAa,cAAeD,CAAM,EAGvCE,EAAM,UAAU,IAAM,CAEpB,MAAME,EAASN,GAAYA,EAAO,YAAcA,EAAS,SAAS,KAE5DO,EAAY,CAAC,kBAAkB,EAEjC,OAAAN,GAAqBA,EAAA,MAAM,GAAG,EAAE,WAAgBM,EAAU,KAAKC,CAAI,CAAC,EACxED,EAAU,QAAgBC,GAAAL,EAAG,UAAU,IAAIK,CAAI,CAAC,EAEhDF,EAAO,YAAYH,CAAE,EAEd,IAAY,CAEjBG,EAAO,YAAYH,CAAE,CAAA,CAEtB,EAAA,CAACA,EAAIH,EAAQC,CAAS,CAAC,EAEnBQ,EAAaV,EAAUI,CAAE,CAClC"}
@@ -1 +1 @@
1
- {"version":3,"file":"RadioButton.d.ts","sourceRoot":"","sources":["../../../src/components/RadioButton/RadioButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAe,QAAQ,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAErE,MAAM,WAAW,gBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,gBAAgB,GAAG,UAAU,CAAC;IACxH,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6CAA6C;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,kCAAkC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,6CAA6C;IAC7C,IAAI,CAAC,EAAE,MAAM,OAAO,QAAQ,CAAC;IAC7B,6CAA6C;IAC7C,OAAO,CAAC,EAAE,MAAM,OAAO,WAAW,CAAC;IACnC,oHAAoH;IACpH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,WAAW,2FAoEtB,CAAC;AAEH,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"RadioButton.d.ts","sourceRoot":"","sources":["../../../src/components/RadioButton/RadioButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAe,QAAQ,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAKrE,MAAM,WAAW,gBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,gBAAgB,GAAG,UAAU,CAAC;IACxH,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6CAA6C;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,kCAAkC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,6CAA6C;IAC7C,IAAI,CAAC,EAAE,MAAM,OAAO,QAAQ,CAAC;IAC7B,6CAA6C;IAC7C,OAAO,CAAC,EAAE,MAAM,OAAO,WAAW,CAAC;IACnC,oHAAoH;IACpH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,WAAW,2FAoEtB,CAAC;AAEH,eAAe,WAAW,CAAC"}
@@ -1 +1 @@
1
- {"props":{"className":{"defaultValue":null,"description":"Adds custom classes to the element.","name":"className","parent":{"fileName":"src/components/RadioButton/RadioButton.tsx","name":"RadioButtonProps"},"declarations":[{"fileName":"src/components/RadioButton/RadioButton.tsx","name":"RadioButtonProps"}],"required":false,"type":{"name":"string"}},"label":{"defaultValue":null,"description":"The label text next to the radioButton","name":"label","parent":{"fileName":"src/components/RadioButton/RadioButton.tsx","name":"RadioButtonProps"},"declarations":[{"fileName":"src/components/RadioButton/RadioButton.tsx","name":"RadioButtonProps"}],"required":true,"type":{"name":"string"}},"inputId":{"defaultValue":null,"description":"input id of the radioButton","name":"inputId","parent":{"fileName":"src/components/RadioButton/RadioButton.tsx","name":"RadioButtonProps"},"declarations":[{"fileName":"src/components/RadioButton/RadioButton.tsx","name":"RadioButtonProps"}],"required":false,"type":{"name":"string"}},"mode":{"defaultValue":null,"description":"Changes the visuals of the radioButton","name":"mode","parent":{"fileName":"src/components/RadioButton/RadioButton.tsx","name":"RadioButtonProps"},"declarations":[{"fileName":"src/components/RadioButton/RadioButton.tsx","name":"RadioButtonProps"}],"required":false,"type":{"name":"enum","raw":"\"onwhite\" | \"ongrey\" | \"onblueberry\" | \"ondark\" | \"oninvalid\"","value":[{"value":"\"onwhite\""},{"value":"\"ongrey\""},{"value":"\"onblueberry\""},{"value":"\"ondark\""},{"value":"\"oninvalid\""}]}},"variant":{"defaultValue":null,"description":"Changes the visuals of the radioButton","name":"variant","parent":{"fileName":"src/components/RadioButton/RadioButton.tsx","name":"RadioButtonProps"},"declarations":[{"fileName":"src/components/RadioButton/RadioButton.tsx","name":"RadioButtonProps"}],"required":false,"type":{"name":"enum","raw":"\"normal\" | \"bigform\"","value":[{"value":"\"normal\""},{"value":"\"bigform\""}]}},"error":{"defaultValue":null,"description":"Activates Error style for the radioButton - This is can be true while errorText is empty, when in a FormGroup","name":"error","parent":{"fileName":"src/components/RadioButton/RadioButton.tsx","name":"RadioButtonProps"},"declarations":[{"fileName":"src/components/RadioButton/RadioButton.tsx","name":"RadioButtonProps"}],"required":false,"type":{"name":"boolean"}},"errorText":{"defaultValue":null,"description":"Error text to show above the component","name":"errorText","parent":{"fileName":"src/components/RadioButton/RadioButton.tsx","name":"RadioButtonProps"},"declarations":[{"fileName":"src/components/RadioButton/RadioButton.tsx","name":"RadioButtonProps"}],"required":false,"type":{"name":"string"}},"testId":{"defaultValue":null,"description":"Sets the data-testid attribute.","name":"testId","parent":{"fileName":"src/components/RadioButton/RadioButton.tsx","name":"RadioButtonProps"},"declarations":[{"fileName":"src/components/RadioButton/RadioButton.tsx","name":"RadioButtonProps"}],"required":false,"type":{"name":"string"}},"name":{"defaultValue":null,"description":"","name":"name","parent":{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"InputHTMLAttributes"},"declarations":[{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"InputHTMLAttributes"}],"required":false,"type":{"name":"string"}},"value":{"defaultValue":null,"description":"","name":"value","parent":{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"InputHTMLAttributes"},"declarations":[{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"InputHTMLAttributes"}],"required":false,"type":{"name":"string | number | readonly string[]"}},"disabled":{"defaultValue":null,"description":"","name":"disabled","parent":{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"InputHTMLAttributes"},"declarations":[{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"InputHTMLAttributes"}],"required":false,"type":{"name":"boolean"}},"defaultChecked":{"defaultValue":null,"description":"","name":"defaultChecked","parent":{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"HTMLAttributes"},"declarations":[{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"HTMLAttributes"}],"required":false,"type":{"name":"boolean"}},"required":{"defaultValue":null,"description":"","name":"required","parent":{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"InputHTMLAttributes"},"declarations":[{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"InputHTMLAttributes"}],"required":false,"type":{"name":"boolean"}}}}
1
+ {"props":{"className":{"defaultValue":null,"description":"Adds custom classes to the element.","name":"className","parent":{"fileName":"src/components/RadioButton/RadioButton.tsx","name":"RadioButtonProps"},"declarations":[{"fileName":"src/components/RadioButton/RadioButton.tsx","name":"RadioButtonProps"}],"required":false,"type":{"name":"string"}},"label":{"defaultValue":null,"description":"The label text next to the radioButton","name":"label","parent":{"fileName":"src/components/RadioButton/RadioButton.tsx","name":"RadioButtonProps"},"declarations":[{"fileName":"src/components/RadioButton/RadioButton.tsx","name":"RadioButtonProps"}],"required":true,"type":{"name":"string"}},"inputId":{"defaultValue":null,"description":"input id of the radioButton","name":"inputId","parent":{"fileName":"src/components/RadioButton/RadioButton.tsx","name":"RadioButtonProps"},"declarations":[{"fileName":"src/components/RadioButton/RadioButton.tsx","name":"RadioButtonProps"}],"required":false,"type":{"name":"string"}},"mode":{"defaultValue":null,"description":"Changes the visuals of the radioButton","name":"mode","parent":{"fileName":"src/components/RadioButton/RadioButton.tsx","name":"RadioButtonProps"},"declarations":[{"fileName":"src/components/RadioButton/RadioButton.tsx","name":"RadioButtonProps"}],"required":false,"type":{"name":"enum","raw":"\"onwhite\" | \"ongrey\" | \"onblueberry\" | \"ondark\" | \"oninvalid\"","value":[{"value":"\"onwhite\""},{"value":"\"ongrey\""},{"value":"\"onblueberry\""},{"value":"\"ondark\""},{"value":"\"oninvalid\""}]}},"variant":{"defaultValue":null,"description":"Changes the visuals of the radioButton","name":"variant","parent":{"fileName":"src/components/RadioButton/RadioButton.tsx","name":"RadioButtonProps"},"declarations":[{"fileName":"src/components/RadioButton/RadioButton.tsx","name":"RadioButtonProps"}],"required":false,"type":{"name":"enum","raw":"\"normal\" | \"bigform\"","value":[{"value":"\"normal\""},{"value":"\"bigform\""}]}},"error":{"defaultValue":null,"description":"Activates Error style for the radioButton - This is can be true while errorText is empty, when in a FormGroup","name":"error","parent":{"fileName":"src/components/RadioButton/RadioButton.tsx","name":"RadioButtonProps"},"declarations":[{"fileName":"src/components/RadioButton/RadioButton.tsx","name":"RadioButtonProps"}],"required":false,"type":{"name":"boolean"}},"errorText":{"defaultValue":null,"description":"Error text to show above the component","name":"errorText","parent":{"fileName":"src/components/RadioButton/RadioButton.tsx","name":"RadioButtonProps"},"declarations":[{"fileName":"src/components/RadioButton/RadioButton.tsx","name":"RadioButtonProps"}],"required":false,"type":{"name":"string"}},"testId":{"defaultValue":null,"description":"Sets the data-testid attribute.","name":"testId","parent":{"fileName":"src/components/RadioButton/RadioButton.tsx","name":"RadioButtonProps"},"declarations":[{"fileName":"src/components/RadioButton/RadioButton.tsx","name":"RadioButtonProps"}],"required":false,"type":{"name":"string"}},"name":{"defaultValue":null,"description":"","name":"name","parent":{"fileName":"s/node_modules/@types/react/index.d.ts","name":"InputHTMLAttributes"},"declarations":[{"fileName":"s/node_modules/@types/react/index.d.ts","name":"InputHTMLAttributes"}],"required":false,"type":{"name":"string"}},"value":{"defaultValue":null,"description":"","name":"value","parent":{"fileName":"s/node_modules/@types/react/index.d.ts","name":"InputHTMLAttributes"},"declarations":[{"fileName":"s/node_modules/@types/react/index.d.ts","name":"InputHTMLAttributes"}],"required":false,"type":{"name":"string | number | readonly string[]"}},"disabled":{"defaultValue":null,"description":"","name":"disabled","parent":{"fileName":"s/node_modules/@types/react/index.d.ts","name":"InputHTMLAttributes"},"declarations":[{"fileName":"s/node_modules/@types/react/index.d.ts","name":"InputHTMLAttributes"}],"required":false,"type":{"name":"boolean"}},"defaultChecked":{"defaultValue":null,"description":"","name":"defaultChecked","parent":{"fileName":"s/node_modules/@types/react/index.d.ts","name":"HTMLAttributes"},"declarations":[{"fileName":"s/node_modules/@types/react/index.d.ts","name":"HTMLAttributes"}],"required":false,"type":{"name":"boolean"}},"required":{"defaultValue":null,"description":"","name":"required","parent":{"fileName":"s/node_modules/@types/react/index.d.ts","name":"InputHTMLAttributes"},"declarations":[{"fileName":"s/node_modules/@types/react/index.d.ts","name":"InputHTMLAttributes"}],"required":false,"type":{"name":"boolean"}}}}
@@ -1,2 +1,2 @@
1
- import"../../RadioButton.js";import{R as s,R as u}from"../../RadioButton.js";import"react";import"classnames";import"../../uuid.js";import"../../utils/environment.js";import"./styles.module.scss";import"../../constants.js";export{s as RadioButton,u as default};
1
+ import{R as t}from"../../RadioButton.js";import{a as s}from"../../RadioButton.js";import"react";import"classnames";import"../../constants.js";import"../../uuid.js";import"../../utils/environment.js";import"./styles.module.scss";export{s as RadioButton,t as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { FormMode } from '../../constants';
3
- declare type SelectConcept = 'normal' | 'transparent';
3
+ type SelectConcept = 'normal' | 'transparent';
4
4
  export interface SelectProps extends Pick<React.SelectHTMLAttributes<HTMLSelectElement>, 'name' | 'disabled' | 'required' | 'value'> {
5
5
  /** Component shown after label */
6
6
  afterLabelChildren?: React.ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAA2C,QAAQ,EAAY,MAAM,iBAAiB,CAAC;AAO9F,aAAK,aAAa,GAAG,QAAQ,GAAG,aAAa,CAAC;AAE9C,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,UAAU,GAAG,OAAO,CAAC;IAClI,kCAAkC;IAClC,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,8CAA8C;IAC9C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,OAAO,QAAQ,CAAC;IAC7B,yHAAyH;IACzH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sCAAsC;IACtC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kDAAkD;IAClD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sFAAsF;IACtF,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAChC;AAaD,eAAO,MAAM,MAAM,uFA8EjB,CAAC;AAEH,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAA2C,QAAQ,EAAY,MAAM,iBAAiB,CAAC;AAS9F,KAAK,aAAa,GAAG,QAAQ,GAAG,aAAa,CAAC;AAE9C,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,UAAU,GAAG,OAAO,CAAC;IAClI,kCAAkC;IAClC,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,8CAA8C;IAC9C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,OAAO,QAAQ,CAAC;IAC7B,yHAAyH;IACzH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sCAAsC;IACtC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kDAAkD;IAClD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sFAAsF;IACtF,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAChC;AAaD,eAAO,MAAM,MAAM,uFA8EjB,CAAC;AAEH,eAAe,MAAM,CAAC"}
@@ -1 +1 @@
1
- {"props":{"afterLabelChildren":{"defaultValue":null,"description":"Component shown after label","name":"afterLabelChildren","parent":{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"},"declarations":[{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"}],"required":false,"type":{"name":"ReactNode"}},"children":{"defaultValue":null,"description":"Sets the content of the select element.","name":"children","parent":{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"},"declarations":[{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"}],"required":true,"type":{"name":"ReactNode"}},"className":{"defaultValue":null,"description":"Adds custom classes to the element.","name":"className","parent":{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"},"declarations":[{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"}],"required":false,"type":{"name":"string"}},"concept":{"defaultValue":null,"description":"Changes the visuals of the component","name":"concept","parent":{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"},"declarations":[{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"}],"required":false,"type":{"name":"enum","raw":"SelectConcept","value":[{"value":"\"normal\""},{"value":"\"transparent\""}]}},"label":{"defaultValue":null,"description":"The label text above the select","name":"label","parent":{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"},"declarations":[{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"}],"required":false,"type":{"name":"string"}},"mode":{"defaultValue":null,"description":"Changes the visuals of the component","name":"mode","parent":{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"},"declarations":[{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"}],"required":false,"type":{"name":"enum","raw":"\"onwhite\" | \"ongrey\" | \"onblueberry\" | \"ondark\" | \"oninvalid\"","value":[{"value":"\"onwhite\""},{"value":"\"ongrey\""},{"value":"\"onblueberry\""},{"value":"\"ondark\""},{"value":"\"oninvalid\""}]}},"error":{"defaultValue":null,"description":"Activates Error style for the select component - This is can be true while errorText is empty, when in a FormGroup","name":"error","parent":{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"},"declarations":[{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"}],"required":false,"type":{"name":"boolean"}},"errorText":{"defaultValue":null,"description":"Error text to show above the component","name":"errorText","parent":{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"},"declarations":[{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"}],"required":false,"type":{"name":"string"}},"testId":{"defaultValue":null,"description":"Sets the data-testid attribute.","name":"testId","parent":{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"},"declarations":[{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"}],"required":false,"type":{"name":"string"}},"selectId":{"defaultValue":null,"description":"select id of the select element","name":"selectId","parent":{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"},"declarations":[{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"}],"required":false,"type":{"name":"string"}},"width":{"defaultValue":null,"description":"Width of select in characters (approximate)","name":"width","parent":{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"},"declarations":[{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"}],"required":false,"type":{"name":"number"}},"defaultValue":{"defaultValue":null,"description":"Gives defaultvalue to the comp. Preferred over selected prop on option by react","name":"defaultValue","parent":{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"},"declarations":[{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"}],"required":false,"type":{"name":"string | number"}},"name":{"defaultValue":null,"description":"","name":"name","parent":{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"SelectHTMLAttributes"},"declarations":[{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"SelectHTMLAttributes"}],"required":false,"type":{"name":"string"}},"disabled":{"defaultValue":null,"description":"","name":"disabled","parent":{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"SelectHTMLAttributes"},"declarations":[{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"SelectHTMLAttributes"}],"required":false,"type":{"name":"boolean"}},"required":{"defaultValue":null,"description":"","name":"required","parent":{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"SelectHTMLAttributes"},"declarations":[{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"SelectHTMLAttributes"}],"required":false,"type":{"name":"boolean"}},"value":{"defaultValue":null,"description":"","name":"value","parent":{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"SelectHTMLAttributes"},"declarations":[{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"SelectHTMLAttributes"}],"required":false,"type":{"name":"string | number | readonly string[]"}}}}
1
+ {"props":{"afterLabelChildren":{"defaultValue":null,"description":"Component shown after label","name":"afterLabelChildren","parent":{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"},"declarations":[{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"}],"required":false,"type":{"name":"ReactNode"}},"children":{"defaultValue":null,"description":"Sets the content of the select element.","name":"children","parent":{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"},"declarations":[{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"}],"required":true,"type":{"name":"ReactNode"}},"className":{"defaultValue":null,"description":"Adds custom classes to the element.","name":"className","parent":{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"},"declarations":[{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"}],"required":false,"type":{"name":"string"}},"concept":{"defaultValue":null,"description":"Changes the visuals of the component","name":"concept","parent":{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"},"declarations":[{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"}],"required":false,"type":{"name":"enum","raw":"SelectConcept","value":[{"value":"\"normal\""},{"value":"\"transparent\""}]}},"label":{"defaultValue":null,"description":"The label text above the select","name":"label","parent":{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"},"declarations":[{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"}],"required":false,"type":{"name":"string"}},"mode":{"defaultValue":null,"description":"Changes the visuals of the component","name":"mode","parent":{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"},"declarations":[{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"}],"required":false,"type":{"name":"enum","raw":"\"onwhite\" | \"ongrey\" | \"onblueberry\" | \"ondark\" | \"oninvalid\"","value":[{"value":"\"onwhite\""},{"value":"\"ongrey\""},{"value":"\"onblueberry\""},{"value":"\"ondark\""},{"value":"\"oninvalid\""}]}},"error":{"defaultValue":null,"description":"Activates Error style for the select component - This is can be true while errorText is empty, when in a FormGroup","name":"error","parent":{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"},"declarations":[{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"}],"required":false,"type":{"name":"boolean"}},"errorText":{"defaultValue":null,"description":"Error text to show above the component","name":"errorText","parent":{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"},"declarations":[{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"}],"required":false,"type":{"name":"string"}},"testId":{"defaultValue":null,"description":"Sets the data-testid attribute.","name":"testId","parent":{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"},"declarations":[{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"}],"required":false,"type":{"name":"string"}},"selectId":{"defaultValue":null,"description":"select id of the select element","name":"selectId","parent":{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"},"declarations":[{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"}],"required":false,"type":{"name":"string"}},"width":{"defaultValue":null,"description":"Width of select in characters (approximate)","name":"width","parent":{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"},"declarations":[{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"}],"required":false,"type":{"name":"number"}},"defaultValue":{"defaultValue":null,"description":"Gives defaultvalue to the comp. Preferred over selected prop on option by react","name":"defaultValue","parent":{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"},"declarations":[{"fileName":"src/components/Select/Select.tsx","name":"SelectProps"}],"required":false,"type":{"name":"string | number"}},"name":{"defaultValue":null,"description":"","name":"name","parent":{"fileName":"s/node_modules/@types/react/index.d.ts","name":"SelectHTMLAttributes"},"declarations":[{"fileName":"s/node_modules/@types/react/index.d.ts","name":"SelectHTMLAttributes"}],"required":false,"type":{"name":"string"}},"disabled":{"defaultValue":null,"description":"","name":"disabled","parent":{"fileName":"s/node_modules/@types/react/index.d.ts","name":"SelectHTMLAttributes"},"declarations":[{"fileName":"s/node_modules/@types/react/index.d.ts","name":"SelectHTMLAttributes"}],"required":false,"type":{"name":"boolean"}},"required":{"defaultValue":null,"description":"","name":"required","parent":{"fileName":"s/node_modules/@types/react/index.d.ts","name":"SelectHTMLAttributes"},"declarations":[{"fileName":"s/node_modules/@types/react/index.d.ts","name":"SelectHTMLAttributes"}],"required":false,"type":{"name":"boolean"}},"value":{"defaultValue":null,"description":"","name":"value","parent":{"fileName":"s/node_modules/@types/react/index.d.ts","name":"SelectHTMLAttributes"},"declarations":[{"fileName":"s/node_modules/@types/react/index.d.ts","name":"SelectHTMLAttributes"}],"required":false,"type":{"name":"string | number | readonly string[]"}}}}
@@ -1,2 +1,2 @@
1
- import"../../Select.js";import{S as k,S as n}from"../../Select.js";import"react";import"classnames";import"./styles.module.scss";import"../../constants.js";import"../Icons/Icon.js";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../utils/environment.js";import"../Icons/ChevronDown.js";import"../../theme/currys/color.js";import"../../theme/index.js";import"../../theme/palette.js";import"../../theme/spacers.js";import"../../theme/grid.js";import"../../ErrorWrapper.js";import"../ErrorWrapper/styles.module.scss";export{k as Select,n as default};
1
+ import{S as o}from"../../Select.js";import{a as k}from"../../Select.js";import"react";import"classnames";import"../../constants.js";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../utils/environment.js";import"../../theme/currys/color.js";import"../../theme/index.js";import"../../theme/grid.js";import"../../theme/palette.js";import"../../theme/spacers.js";import"../../ErrorWrapper.js";import"../ErrorWrapper/styles.module.scss";import"../Icons/Icon.js";import"../Icons/ChevronDown.js";import"./styles.module.scss";export{k as Select,o as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/Slider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AA2B3D,UAAU,WAAW;IACnB,oCAAoC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+CAA+C;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qCAAqC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAOD,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA4KxC,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/Slider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AA4B3D,UAAU,WAAW;IACnB,oCAAoC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+CAA+C;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qCAAqC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAOD,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA4KxC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -1,2 +1,2 @@
1
- import s,{useState as U,useRef as M,useEffect as h}from"react";import P from"classnames";import{T as C}from"../../Title.js";import i from"./styles.module.scss";import{AnalyticsId as K}from"../../constants.js";import{useSize as N}from"../../hooks/useSize.js";import{useUuid as g}from"../../hooks/useUuid.js";import{getAriaLabelAttributes as W}from"../../utils/accessibility.js";import"../Title/styles.module.scss";import"../../utils/debounce.js";import"../../uuid.js";import"../../utils/environment.js";const z=(a,k,c)=>{const[u,r]=U(a);return[u,f=>{f>c?r(c):f<k?r(k):r(f)}]},m=100,d=0,V=1,b=10,ae=({title:a,ariaLabel:k,labelLeft:c,labelRight:u,disabled:r=!1,onChange:E,testId:f})=>{const[L,y]=U(!1),[n,o]=z((m-d)/2,d,m),p=g(),w=g(),_=g(),A=M(null),v=M(null),{width:I}=N(A)||{width:0},{width:R}=N(v)||{width:0};h(()=>{const e=()=>{y(!1)};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e)}},[]);const S=e=>{var l,D;const t=(D=(l=A.current)==null?void 0:l.getBoundingClientRect().x)!=null?D:0;return Math.round((e-t)/I*(m-d))};h(()=>{const e=t=>{if(!r&&L){const l=S(t.clientX);o(l)}};return document.addEventListener("pointermove",e),()=>{document.removeEventListener("pointermove",e)}},[L]),h(()=>{!r&&E&&E(n)},[n]);const T=e=>{if(r)return;let t=!1;switch(e.key){case"ArrowLeft":case"ArrowDown":o(n-V),t=!0;break;case"PageDown":o(n-b),t=!0;break;case"ArrowRight":case"ArrowUp":o(n+V),t=!0;break;case"PageUp":o(n+b),t=!0;break;case"Home":o(d),t=!0;break;case"End":o(m),t=!0;break}t&&(e.preventDefault(),e.stopPropagation())},x=e=>{var l;if(r)return;const t=S(e.clientX);o(t),(l=v.current)==null||l.focus()},B=e=>{var t;r||(y(!0),e.preventDefault(),e.stopPropagation(),(t=v.current)==null||t.focus())},X=(I-R)/(m-d)*n,j=W({label:k,id:(()=>{if(a&&c&&u)return[p,w,_].join(" ");if(a&&c)return[p,w].join(" ");if(a&&u)return[p,_].join(" ");if(a)return p})(),prefer:"label"});return s.createElement("div",{className:i.slider,"data-testid":f,"data-analyticsid":K.Slider},a&&s.createElement(C,{htmlMarkup:"h3",margin:1.5,appearance:"title3",id:p},a),s.createElement("div",{ref:A,className:P(i["slider__track-wrapper"],r&&i["slider__track-wrapper--disabled"]),onClick:x,onPointerDown:B},s.createElement("div",{className:P(i.slider__track,r&&i["slider__track--disabled"])}),s.createElement("div",{role:"slider",ref:v,className:P(i.slider__marker,r&&i["slider__marker--disabled"]),style:{left:`${X}px`},onKeyDown:T,"aria-valuenow":n,"aria-valuemin":d,"aria-valuemax":m,tabIndex:r?void 0:0,"aria-disabled":r,...j})),(c||u)&&s.createElement("span",{className:i.slider__options},s.createElement("span",{id:w},c),s.createElement("span",{id:_},u)))};export{ae as Slider,ae as default};
1
+ import s,{useState as b,useRef as D,useEffect as h}from"react";import P from"classnames";import{AnalyticsId as j}from"../../constants.js";import{useSize as M}from"../../hooks/useSize.js";import{useUuid as g}from"../../hooks/useUuid.js";import{getAriaLabelAttributes as C}from"../../utils/accessibility.js";import{T as K}from"../../Title.js";import i from"./styles.module.scss";import"../../utils/debounce.js";import"../../uuid.js";import"../../utils/environment.js";import"../Title/styles.module.scss";const W=(a,k,c)=>{const[u,r]=b(a);return[u,f=>{f>c?r(c):f<k?r(k):r(f)}]},m=100,d=0,N=1,V=10,$=({title:a,ariaLabel:k,labelLeft:c,labelRight:u,disabled:r=!1,onChange:E,testId:f})=>{const[L,S]=b(!1),[n,o]=W((m-d)/2,d,m),p=g(),w=g(),_=g(),A=D(null),v=D(null),{width:y}=M(A)||{width:0},{width:U}=M(v)||{width:0};h(()=>{const e=()=>{S(!1)};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e)}},[]);const I=e=>{var l;const t=((l=A.current)==null?void 0:l.getBoundingClientRect().x)??0;return Math.round((e-t)/y*(m-d))};h(()=>{const e=t=>{if(!r&&L){const l=I(t.clientX);o(l)}};return document.addEventListener("pointermove",e),()=>{document.removeEventListener("pointermove",e)}},[L]),h(()=>{!r&&E&&E(n)},[n]);const R=e=>{if(r)return;let t=!1;switch(e.key){case"ArrowLeft":case"ArrowDown":o(n-N),t=!0;break;case"PageDown":o(n-V),t=!0;break;case"ArrowRight":case"ArrowUp":o(n+N),t=!0;break;case"PageUp":o(n+V),t=!0;break;case"Home":o(d),t=!0;break;case"End":o(m),t=!0;break}t&&(e.preventDefault(),e.stopPropagation())},T=e=>{var l;if(r)return;const t=I(e.clientX);o(t),(l=v.current)==null||l.focus()},x=e=>{var t;r||(S(!0),e.preventDefault(),e.stopPropagation(),(t=v.current)==null||t.focus())},B=(y-U)/(m-d)*n,X=C({label:k,id:(()=>{if(a&&c&&u)return[p,w,_].join(" ");if(a&&c)return[p,w].join(" ");if(a&&u)return[p,_].join(" ");if(a)return p})(),prefer:"label"});return s.createElement("div",{className:i.slider,"data-testid":f,"data-analyticsid":j.Slider},a&&s.createElement(K,{htmlMarkup:"h3",margin:1.5,appearance:"title3",id:p},a),s.createElement("div",{ref:A,className:P(i["slider__track-wrapper"],r&&i["slider__track-wrapper--disabled"]),onClick:T,onPointerDown:x},s.createElement("div",{className:P(i.slider__track,r&&i["slider__track--disabled"])}),s.createElement("div",{role:"slider",ref:v,className:P(i.slider__marker,r&&i["slider__marker--disabled"]),style:{left:`${B}px`},onKeyDown:R,"aria-valuenow":n,"aria-valuemin":d,"aria-valuemax":m,tabIndex:r?void 0:0,"aria-disabled":r,...X})),(c||u)&&s.createElement("span",{className:i.slider__options},s.createElement("span",{id:w},c),s.createElement("span",{id:_},u)))},ae=$;export{$ as Slider,ae as default};
2
2
  //# sourceMappingURL=index.js.map