@helsenorge/designsystem-react 2.17.0 → 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 (949) 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 +678 -332
  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.map +1 -1
  352. package/components/Icons/File.js.map +1 -1
  353. package/components/Icons/Filter.d.ts.map +1 -1
  354. package/components/Icons/Filter.js.map +1 -1
  355. package/components/Icons/FingerBleed.d.ts.map +1 -1
  356. package/components/Icons/FingerBleed.js.map +1 -1
  357. package/components/Icons/FirstAidKit.d.ts.map +1 -1
  358. package/components/Icons/FirstAidKit.js.map +1 -1
  359. package/components/Icons/FloppyDisk.d.ts.map +1 -1
  360. package/components/Icons/FloppyDisk.js.map +1 -1
  361. package/components/Icons/Football.d.ts.map +1 -1
  362. package/components/Icons/Football.js.map +1 -1
  363. package/components/Icons/Form.d.ts.map +1 -1
  364. package/components/Icons/Form.js.map +1 -1
  365. package/components/Icons/Forward.d.ts.map +1 -1
  366. package/components/Icons/Forward.js.map +1 -1
  367. package/components/Icons/Gallery.d.ts.map +1 -1
  368. package/components/Icons/Gallery.js.map +1 -1
  369. package/components/Icons/Garden.d.ts.map +1 -1
  370. package/components/Icons/Garden.js.map +1 -1
  371. package/components/Icons/GasCan.d.ts.map +1 -1
  372. package/components/Icons/GasCan.js.map +1 -1
  373. package/components/Icons/GenderIdentity.d.ts.map +1 -1
  374. package/components/Icons/GenderIdentity.js.map +1 -1
  375. package/components/Icons/Globe.d.ts.map +1 -1
  376. package/components/Icons/Globe.js.map +1 -1
  377. package/components/Icons/Group.d.ts.map +1 -1
  378. package/components/Icons/Group.js.map +1 -1
  379. package/components/Icons/HandWaving.d.ts.map +1 -1
  380. package/components/Icons/HandWaving.js.map +1 -1
  381. package/components/Icons/HandWithDisease.d.ts.map +1 -1
  382. package/components/Icons/HandWithDisease.js.map +1 -1
  383. package/components/Icons/HealthClinic.d.ts.map +1 -1
  384. package/components/Icons/HealthClinic.js.map +1 -1
  385. package/components/Icons/HealthWarning.d.ts.map +1 -1
  386. package/components/Icons/HealthWarning.js.map +1 -1
  387. package/components/Icons/Heart.d.ts.map +1 -1
  388. package/components/Icons/Heart.js.map +1 -1
  389. package/components/Icons/HeartHands.d.ts.map +1 -1
  390. package/components/Icons/HeartHands.js.map +1 -1
  391. package/components/Icons/HelpSign.d.ts.map +1 -1
  392. package/components/Icons/HelpSign.js.map +1 -1
  393. package/components/Icons/HelpingHand.d.ts.map +1 -1
  394. package/components/Icons/HelpingHand.js.map +1 -1
  395. package/components/Icons/Hemodialysis.d.ts.map +1 -1
  396. package/components/Icons/Hemodialysis.js.map +1 -1
  397. package/components/Icons/Hiker.d.ts.map +1 -1
  398. package/components/Icons/Hiker.js.map +1 -1
  399. package/components/Icons/Hipprosthesis.d.ts.map +1 -1
  400. package/components/Icons/Hipprosthesis.js.map +1 -1
  401. package/components/Icons/History.d.ts.map +1 -1
  402. package/components/Icons/History.js.map +1 -1
  403. package/components/Icons/HivAndAids.d.ts.map +1 -1
  404. package/components/Icons/HivAndAids.js.map +1 -1
  405. package/components/Icons/Home.d.ts.map +1 -1
  406. package/components/Icons/Home.js.map +1 -1
  407. package/components/Icons/Hormone.d.ts.map +1 -1
  408. package/components/Icons/Hormone.js.map +1 -1
  409. package/components/Icons/Hospital.d.ts.map +1 -1
  410. package/components/Icons/Hospital.js.map +1 -1
  411. package/components/Icons/Hourglass.d.ts.map +1 -1
  412. package/components/Icons/Hourglass.js.map +1 -1
  413. package/components/Icons/Icon.d.ts +1 -1
  414. package/components/Icons/Icon.d.ts.map +1 -1
  415. package/components/Icons/Icon.js +1 -1
  416. package/components/Icons/Icon.js.map +1 -1
  417. package/components/Icons/ImgFile.d.ts.map +1 -1
  418. package/components/Icons/ImgFile.js.map +1 -1
  419. package/components/Icons/Inbox.d.ts.map +1 -1
  420. package/components/Icons/Inbox.js.map +1 -1
  421. package/components/Icons/InfoSignFill.d.ts.map +1 -1
  422. package/components/Icons/InfoSignFill.js.map +1 -1
  423. package/components/Icons/InfoSignStroke.d.ts.map +1 -1
  424. package/components/Icons/InfoSignStroke.js.map +1 -1
  425. package/components/Icons/Instagram.d.ts.map +1 -1
  426. package/components/Icons/Instagram.js.map +1 -1
  427. package/components/Icons/Intravenous.d.ts.map +1 -1
  428. package/components/Icons/Intravenous.js.map +1 -1
  429. package/components/Icons/JointPain.d.ts.map +1 -1
  430. package/components/Icons/JointPain.js.map +1 -1
  431. package/components/Icons/Journal.d.ts.map +1 -1
  432. package/components/Icons/Journal.js.map +1 -1
  433. package/components/Icons/JpgFile.d.ts.map +1 -1
  434. package/components/Icons/JpgFile.js.map +1 -1
  435. package/components/Icons/Kidney.d.ts.map +1 -1
  436. package/components/Icons/Kidney.js.map +1 -1
  437. package/components/Icons/KitchenScale.d.ts.map +1 -1
  438. package/components/Icons/KitchenScale.js.map +1 -1
  439. package/components/Icons/Kjernejournal.d.ts.map +1 -1
  440. package/components/Icons/Kjernejournal.js.map +1 -1
  441. package/components/Icons/Laboratory.d.ts.map +1 -1
  442. package/components/Icons/Laboratory.js.map +1 -1
  443. package/components/Icons/LaptopBlog.d.ts.map +1 -1
  444. package/components/Icons/LaptopBlog.js.map +1 -1
  445. package/components/Icons/LawBook.d.ts.map +1 -1
  446. package/components/Icons/LawBook.js.map +1 -1
  447. package/components/Icons/LightBulb.d.ts.map +1 -1
  448. package/components/Icons/LightBulb.js.map +1 -1
  449. package/components/Icons/List.d.ts.map +1 -1
  450. package/components/Icons/List.js.map +1 -1
  451. package/components/Icons/Location.d.ts.map +1 -1
  452. package/components/Icons/Location.js.map +1 -1
  453. package/components/Icons/Lock.d.ts.map +1 -1
  454. package/components/Icons/Lock.js.map +1 -1
  455. package/components/Icons/Login.d.ts.map +1 -1
  456. package/components/Icons/Login.js.map +1 -1
  457. package/components/Icons/Logout.d.ts.map +1 -1
  458. package/components/Icons/Logout.js.map +1 -1
  459. package/components/Icons/Lungs.d.ts.map +1 -1
  460. package/components/Icons/Lungs.js.map +1 -1
  461. package/components/Icons/Makeup.d.ts.map +1 -1
  462. package/components/Icons/Makeup.js.map +1 -1
  463. package/components/Icons/MaleDoctor.d.ts.map +1 -1
  464. package/components/Icons/MaleDoctor.js.map +1 -1
  465. package/components/Icons/MaleDoctorAndPerson.d.ts.map +1 -1
  466. package/components/Icons/MaleDoctorAndPerson.js.map +1 -1
  467. package/components/Icons/MaleGenitalia.d.ts.map +1 -1
  468. package/components/Icons/MaleGenitalia.js.map +1 -1
  469. package/components/Icons/Medicine.d.ts.map +1 -1
  470. package/components/Icons/Medicine.js.map +1 -1
  471. package/components/Icons/MedicineWarning.d.ts.map +1 -1
  472. package/components/Icons/MedicineWarning.js.map +1 -1
  473. package/components/Icons/MentalHealthAdult.d.ts.map +1 -1
  474. package/components/Icons/MentalHealthAdult.js.map +1 -1
  475. package/components/Icons/MentalHealthChild.d.ts.map +1 -1
  476. package/components/Icons/MentalHealthChild.js.map +1 -1
  477. package/components/Icons/Menu.d.ts.map +1 -1
  478. package/components/Icons/Menu.js.map +1 -1
  479. package/components/Icons/Microscope.d.ts.map +1 -1
  480. package/components/Icons/Microscope.js.map +1 -1
  481. package/components/Icons/Minus.d.ts.map +1 -1
  482. package/components/Icons/Minus.js.map +1 -1
  483. package/components/Icons/Mirror.d.ts.map +1 -1
  484. package/components/Icons/Mirror.js.map +1 -1
  485. package/components/Icons/MobilePhone.d.ts.map +1 -1
  486. package/components/Icons/MobilePhone.js.map +1 -1
  487. package/components/Icons/MotherHoldingBaby.d.ts.map +1 -1
  488. package/components/Icons/MotherHoldingBaby.js.map +1 -1
  489. package/components/Icons/MuscleBack.d.ts.map +1 -1
  490. package/components/Icons/MuscleBack.js.map +1 -1
  491. package/components/Icons/MuscleLeg.d.ts.map +1 -1
  492. package/components/Icons/MuscleLeg.js.map +1 -1
  493. package/components/Icons/Mushroom.d.ts.map +1 -1
  494. package/components/Icons/Mushroom.js.map +1 -1
  495. package/components/Icons/Music.d.ts.map +1 -1
  496. package/components/Icons/Music.js.map +1 -1
  497. package/components/Icons/MusselsAndSalt.d.ts.map +1 -1
  498. package/components/Icons/MusselsAndSalt.js.map +1 -1
  499. package/components/Icons/NoAccess.d.ts.map +1 -1
  500. package/components/Icons/NoAccess.js.map +1 -1
  501. package/components/Icons/NoEye.d.ts.map +1 -1
  502. package/components/Icons/NoEye.js.map +1 -1
  503. package/components/Icons/NoFilter.d.ts.map +1 -1
  504. package/components/Icons/NoFilter.js.map +1 -1
  505. package/components/Icons/Notepad.d.ts.map +1 -1
  506. package/components/Icons/Notepad.js.map +1 -1
  507. package/components/Icons/Osteotomy.d.ts.map +1 -1
  508. package/components/Icons/Osteotomy.js.map +1 -1
  509. package/components/Icons/PaintRoller.d.ts.map +1 -1
  510. package/components/Icons/PaintRoller.js.map +1 -1
  511. package/components/Icons/PaperPlane.d.ts.map +1 -1
  512. package/components/Icons/PaperPlane.js.map +1 -1
  513. package/components/Icons/PatientAndPerson.d.ts.map +1 -1
  514. package/components/Icons/PatientAndPerson.js.map +1 -1
  515. package/components/Icons/Pause.d.ts.map +1 -1
  516. package/components/Icons/Pause.js.map +1 -1
  517. package/components/Icons/PdfFile.d.ts.map +1 -1
  518. package/components/Icons/PdfFile.js.map +1 -1
  519. package/components/Icons/Pencil.d.ts.map +1 -1
  520. package/components/Icons/Pencil.js.map +1 -1
  521. package/components/Icons/PeopleTalking.d.ts.map +1 -1
  522. package/components/Icons/PeopleTalking.js.map +1 -1
  523. package/components/Icons/Peritonealdialysis.d.ts.map +1 -1
  524. package/components/Icons/Peritonealdialysis.js.map +1 -1
  525. package/components/Icons/Person.d.ts.map +1 -1
  526. package/components/Icons/Person.js.map +1 -1
  527. package/components/Icons/PersonAndPatient.d.ts.map +1 -1
  528. package/components/Icons/PersonAndPatient.js.map +1 -1
  529. package/components/Icons/PersonCancel.d.ts.map +1 -1
  530. package/components/Icons/PersonCancel.js.map +1 -1
  531. package/components/Icons/PersonInXRayMachine.d.ts.map +1 -1
  532. package/components/Icons/PersonInXRayMachine.js.map +1 -1
  533. package/components/Icons/PersonOverweight.d.ts.map +1 -1
  534. package/components/Icons/PersonOverweight.js.map +1 -1
  535. package/components/Icons/PersonRelaxing.d.ts.map +1 -1
  536. package/components/Icons/PersonRelaxing.js.map +1 -1
  537. package/components/Icons/PersonWithBrain.d.ts.map +1 -1
  538. package/components/Icons/PersonWithBrain.js.map +1 -1
  539. package/components/Icons/PersonWithBrokenArm.d.ts.map +1 -1
  540. package/components/Icons/PersonWithBrokenArm.js.map +1 -1
  541. package/components/Icons/PersonWithCrutches.d.ts.map +1 -1
  542. package/components/Icons/PersonWithCrutches.js.map +1 -1
  543. package/components/Icons/PersonWithJaw.d.ts.map +1 -1
  544. package/components/Icons/PersonWithJaw.js.map +1 -1
  545. package/components/Icons/PersonWithMagnifyingGlass.d.ts.map +1 -1
  546. package/components/Icons/PersonWithMagnifyingGlass.js.map +1 -1
  547. package/components/Icons/PersonWithSenses.d.ts.map +1 -1
  548. package/components/Icons/PersonWithSenses.js.map +1 -1
  549. package/components/Icons/PersonWorking.d.ts.map +1 -1
  550. package/components/Icons/PersonWorking.js.map +1 -1
  551. package/components/Icons/PersonalPlan.d.ts.map +1 -1
  552. package/components/Icons/PersonalPlan.js.map +1 -1
  553. package/components/Icons/PizzaSlice.d.ts.map +1 -1
  554. package/components/Icons/PizzaSlice.js.map +1 -1
  555. package/components/Icons/Plane.d.ts.map +1 -1
  556. package/components/Icons/Plane.js.map +1 -1
  557. package/components/Icons/Plant.d.ts.map +1 -1
  558. package/components/Icons/Plant.js.map +1 -1
  559. package/components/Icons/Play.d.ts.map +1 -1
  560. package/components/Icons/Play.js.map +1 -1
  561. package/components/Icons/PlusLarge.d.ts.map +1 -1
  562. package/components/Icons/PlusLarge.js.map +1 -1
  563. package/components/Icons/PlusSmall.d.ts.map +1 -1
  564. package/components/Icons/PlusSmall.js.map +1 -1
  565. package/components/Icons/PngFile.d.ts.map +1 -1
  566. package/components/Icons/PngFile.js.map +1 -1
  567. package/components/Icons/Podcast.d.ts.map +1 -1
  568. package/components/Icons/Podcast.js.map +1 -1
  569. package/components/Icons/PoisonInformation.d.ts.map +1 -1
  570. package/components/Icons/PoisonInformation.js.map +1 -1
  571. package/components/Icons/Pregnant.d.ts.map +1 -1
  572. package/components/Icons/Pregnant.js.map +1 -1
  573. package/components/Icons/Printer.d.ts.map +1 -1
  574. package/components/Icons/Printer.js.map +1 -1
  575. package/components/Icons/Psychosis.d.ts.map +1 -1
  576. package/components/Icons/Psychosis.js.map +1 -1
  577. package/components/Icons/Publication.d.ts.map +1 -1
  578. package/components/Icons/Publication.js.map +1 -1
  579. package/components/Icons/Puzzle.d.ts.map +1 -1
  580. package/components/Icons/Puzzle.js.map +1 -1
  581. package/components/Icons/QrCode.d.ts.map +1 -1
  582. package/components/Icons/QrCode.js.map +1 -1
  583. package/components/Icons/Quarrel.d.ts.map +1 -1
  584. package/components/Icons/Quarrel.js.map +1 -1
  585. package/components/Icons/RadioTherapy.d.ts.map +1 -1
  586. package/components/Icons/RadioTherapy.js.map +1 -1
  587. package/components/Icons/RadioactiveTreatment.d.ts.map +1 -1
  588. package/components/Icons/RadioactiveTreatment.js.map +1 -1
  589. package/components/Icons/Radioiodine.d.ts.map +1 -1
  590. package/components/Icons/Radioiodine.js.map +1 -1
  591. package/components/Icons/Receipt.d.ts.map +1 -1
  592. package/components/Icons/Receipt.js.map +1 -1
  593. package/components/Icons/Receptionist.d.ts.map +1 -1
  594. package/components/Icons/Receptionist.js.map +1 -1
  595. package/components/Icons/Recovery.d.ts.map +1 -1
  596. package/components/Icons/Recovery.js.map +1 -1
  597. package/components/Icons/Referral.d.ts.map +1 -1
  598. package/components/Icons/Referral.js.map +1 -1
  599. package/components/Icons/Refresh.d.ts.map +1 -1
  600. package/components/Icons/Refresh.js.map +1 -1
  601. package/components/Icons/Refund.d.ts.map +1 -1
  602. package/components/Icons/Refund.js.map +1 -1
  603. package/components/Icons/Reply.d.ts.map +1 -1
  604. package/components/Icons/Reply.js.map +1 -1
  605. package/components/Icons/Rocket.d.ts.map +1 -1
  606. package/components/Icons/Rocket.js.map +1 -1
  607. package/components/Icons/RtfFile.d.ts.map +1 -1
  608. package/components/Icons/RtfFile.js.map +1 -1
  609. package/components/Icons/STDs.d.ts.map +1 -1
  610. package/components/Icons/STDs.js.map +1 -1
  611. package/components/Icons/Save.d.ts.map +1 -1
  612. package/components/Icons/Save.js.map +1 -1
  613. package/components/Icons/Scale.d.ts.map +1 -1
  614. package/components/Icons/Scale.js.map +1 -1
  615. package/components/Icons/Search.d.ts.map +1 -1
  616. package/components/Icons/Search.js.map +1 -1
  617. package/components/Icons/SectionSign.d.ts.map +1 -1
  618. package/components/Icons/SectionSign.js.map +1 -1
  619. package/components/Icons/Settings.d.ts.map +1 -1
  620. package/components/Icons/Settings.js.map +1 -1
  621. package/components/Icons/Sexualorientation.d.ts.map +1 -1
  622. package/components/Icons/Sexualorientation.js.map +1 -1
  623. package/components/Icons/ShakingHand.d.ts.map +1 -1
  624. package/components/Icons/ShakingHand.js.map +1 -1
  625. package/components/Icons/Share.d.ts.map +1 -1
  626. package/components/Icons/Share.js.map +1 -1
  627. package/components/Icons/Shield.d.ts.map +1 -1
  628. package/components/Icons/Shield.js.map +1 -1
  629. package/components/Icons/ShuntOperation.d.ts.map +1 -1
  630. package/components/Icons/ShuntOperation.js.map +1 -1
  631. package/components/Icons/Skeleton.d.ts.map +1 -1
  632. package/components/Icons/Skeleton.js.map +1 -1
  633. package/components/Icons/Skin.d.ts.map +1 -1
  634. package/components/Icons/Skin.js.map +1 -1
  635. package/components/Icons/Snake.d.ts.map +1 -1
  636. package/components/Icons/Snake.js.map +1 -1
  637. package/components/Icons/Snapchat.d.ts.map +1 -1
  638. package/components/Icons/Snapchat.js.map +1 -1
  639. package/components/Icons/SortDown.d.ts.map +1 -1
  640. package/components/Icons/SortDown.js.map +1 -1
  641. package/components/Icons/SortUp.d.ts.map +1 -1
  642. package/components/Icons/SortUp.js.map +1 -1
  643. package/components/Icons/SpeechBubble.d.ts.map +1 -1
  644. package/components/Icons/SpeechBubble.js.map +1 -1
  645. package/components/Icons/Spray.d.ts.map +1 -1
  646. package/components/Icons/Spray.js.map +1 -1
  647. package/components/Icons/Stopwatch.d.ts.map +1 -1
  648. package/components/Icons/Stopwatch.js.map +1 -1
  649. package/components/Icons/SupportingPerson.js +1 -1
  650. package/components/Icons/SupportingPerson.js.map +1 -1
  651. package/components/Icons/Surgery.d.ts.map +1 -1
  652. package/components/Icons/Surgery.js.map +1 -1
  653. package/components/Icons/Syringe.d.ts.map +1 -1
  654. package/components/Icons/Syringe.js.map +1 -1
  655. package/components/Icons/Taxi.d.ts.map +1 -1
  656. package/components/Icons/Taxi.js.map +1 -1
  657. package/components/Icons/TeddyBear.d.ts.map +1 -1
  658. package/components/Icons/TeddyBear.js.map +1 -1
  659. package/components/Icons/Teenagers.d.ts.map +1 -1
  660. package/components/Icons/Teenagers.js.map +1 -1
  661. package/components/Icons/ThinkingAboutBaby.d.ts.map +1 -1
  662. package/components/Icons/ThinkingAboutBaby.js.map +1 -1
  663. package/components/Icons/Ticket.d.ts.map +1 -1
  664. package/components/Icons/Ticket.js.map +1 -1
  665. package/components/Icons/TimePassing.d.ts.map +1 -1
  666. package/components/Icons/TimePassing.js.map +1 -1
  667. package/components/Icons/Toolbox.d.ts.map +1 -1
  668. package/components/Icons/Toolbox.js.map +1 -1
  669. package/components/Icons/Tooth.d.ts.map +1 -1
  670. package/components/Icons/Tooth.js.map +1 -1
  671. package/components/Icons/TotalKneeProsthesis.d.ts.map +1 -1
  672. package/components/Icons/TotalKneeProsthesis.js.map +1 -1
  673. package/components/Icons/Train.d.ts.map +1 -1
  674. package/components/Icons/Train.js.map +1 -1
  675. package/components/Icons/Transplantation.d.ts.map +1 -1
  676. package/components/Icons/Transplantation.js.map +1 -1
  677. package/components/Icons/TrashCan.d.ts.map +1 -1
  678. package/components/Icons/TrashCan.js.map +1 -1
  679. package/components/Icons/TravelRoute.d.ts.map +1 -1
  680. package/components/Icons/TravelRoute.js.map +1 -1
  681. package/components/Icons/TriangleX.d.ts.map +1 -1
  682. package/components/Icons/TriangleX.js.map +1 -1
  683. package/components/Icons/Twitter.d.ts.map +1 -1
  684. package/components/Icons/Twitter.js.map +1 -1
  685. package/components/Icons/Undo.d.ts.map +1 -1
  686. package/components/Icons/Undo.js.map +1 -1
  687. package/components/Icons/UniProsthesis.d.ts.map +1 -1
  688. package/components/Icons/UniProsthesis.js.map +1 -1
  689. package/components/Icons/Upload.d.ts.map +1 -1
  690. package/components/Icons/Upload.js.map +1 -1
  691. package/components/Icons/UserOrganization.d.ts.map +1 -1
  692. package/components/Icons/UserOrganization.js.map +1 -1
  693. package/components/Icons/Vaccine.d.ts.map +1 -1
  694. package/components/Icons/Vaccine.js.map +1 -1
  695. package/components/Icons/VerticalDots.d.ts.map +1 -1
  696. package/components/Icons/VerticalDots.js.map +1 -1
  697. package/components/Icons/VideoCamera.d.ts.map +1 -1
  698. package/components/Icons/VideoCamera.js.map +1 -1
  699. package/components/Icons/VideoChat.d.ts.map +1 -1
  700. package/components/Icons/VideoChat.js.map +1 -1
  701. package/components/Icons/Wallet.d.ts.map +1 -1
  702. package/components/Icons/Wallet.js.map +1 -1
  703. package/components/Icons/Watch.d.ts.map +1 -1
  704. package/components/Icons/Watch.js.map +1 -1
  705. package/components/Icons/Website.d.ts.map +1 -1
  706. package/components/Icons/Website.js.map +1 -1
  707. package/components/Icons/Wheelchair.d.ts.map +1 -1
  708. package/components/Icons/Wheelchair.js.map +1 -1
  709. package/components/Icons/WheelchairActive.d.ts.map +1 -1
  710. package/components/Icons/WheelchairActive.js.map +1 -1
  711. package/components/Icons/Window.d.ts.map +1 -1
  712. package/components/Icons/Window.js.map +1 -1
  713. package/components/Icons/WordDocument.d.ts.map +1 -1
  714. package/components/Icons/WordDocument.js.map +1 -1
  715. package/components/Icons/WorkSuitcase.d.ts.map +1 -1
  716. package/components/Icons/WorkSuitcase.js.map +1 -1
  717. package/components/Icons/X.d.ts.map +1 -1
  718. package/components/Icons/X.js.map +1 -1
  719. package/components/Icons/XOutline.d.ts.map +1 -1
  720. package/components/Icons/XOutline.js.map +1 -1
  721. package/components/Icons/XmlFile.d.ts.map +1 -1
  722. package/components/Icons/XmlFile.js.map +1 -1
  723. package/components/Icons/YouTube.d.ts.map +1 -1
  724. package/components/Icons/YouTube.js.map +1 -1
  725. package/components/Icons/Zoom.d.ts.map +1 -1
  726. package/components/Icons/Zoom.js.map +1 -1
  727. package/components/Icons/index.js +1 -1
  728. package/components/Input/Input.d.ts.map +1 -1
  729. package/components/Input/componentdata.json +1 -1
  730. package/components/Input/index.js +1 -1
  731. package/components/LinkList/LinkList.d.ts +8 -8
  732. package/components/LinkList/LinkList.d.ts.map +1 -1
  733. package/components/LinkList/index.js +1 -1
  734. package/components/LinkList/index.js.map +1 -1
  735. package/components/List/List.d.ts +17 -3
  736. package/components/List/List.d.ts.map +1 -1
  737. package/components/List/componentdata.json +1 -1
  738. package/components/List/index.js +1 -1
  739. package/components/List/index.js.map +1 -1
  740. package/components/List/styles.module.scss +51 -5
  741. package/components/List/styles.module.scss.d.ts +5 -0
  742. package/components/ListHeader/ListHeader.d.ts +3 -3
  743. package/components/ListHeader/ListHeader.d.ts.map +1 -1
  744. package/components/ListHeader/ListHeaderText/ListHeaderText.d.ts +1 -1
  745. package/components/ListHeader/ListHeaderText/ListHeaderText.d.ts.map +1 -1
  746. package/components/ListHeader/ListHeaderText/index.js +1 -1
  747. package/components/ListHeader/index.js +1 -1
  748. package/components/Loader/Loader.d.ts +2 -2
  749. package/components/Loader/Loader.d.ts.map +1 -1
  750. package/components/Loader/index.js +1 -1
  751. package/components/Loader/index.js.map +1 -1
  752. package/components/Logo/Logo.d.ts +1 -1
  753. package/components/Logo/Logo.d.ts.map +1 -1
  754. package/components/Logo/index.js +1 -1
  755. package/components/Logo/index.js.map +1 -1
  756. package/components/MaxCharacters/MaxCharacters.d.ts.map +1 -1
  757. package/components/Modal/Modal.d.ts.map +1 -1
  758. package/components/Modal/index.js +1 -1
  759. package/components/NotificationPanel/DetailButton/DetailButton.d.ts +10 -0
  760. package/components/NotificationPanel/DetailButton/DetailButton.d.ts.map +1 -0
  761. package/components/NotificationPanel/DetailButton/componentdata.json +1 -0
  762. package/components/NotificationPanel/DetailButton/styles.module.scss +34 -0
  763. package/components/NotificationPanel/DetailButton/styles.module.scss.d.ts +13 -0
  764. package/components/NotificationPanel/NotificationPanel.d.ts +16 -7
  765. package/components/NotificationPanel/NotificationPanel.d.ts.map +1 -1
  766. package/components/NotificationPanel/componentdata.json +1 -1
  767. package/components/NotificationPanel/index.js +1 -1
  768. package/components/NotificationPanel/index.js.map +1 -1
  769. package/components/NotificationPanel/styles.module.scss +92 -91
  770. package/components/NotificationPanel/styles.module.scss.d.ts +10 -10
  771. package/components/Panel/Panel.d.ts +2 -2
  772. package/components/Panel/Panel.d.ts.map +1 -1
  773. package/components/Panel/index.js +1 -1
  774. package/components/PanelList/PanelList.d.ts.map +1 -1
  775. package/components/PanelList/index.js +1 -1
  776. package/components/PanelList/index.js.map +1 -1
  777. package/components/PopMenu/PopMenu.d.ts +30 -0
  778. package/components/PopMenu/PopMenu.d.ts.map +1 -0
  779. package/components/PopMenu/componentdata.json +1 -0
  780. package/components/PopMenu/story.module.scss +5 -0
  781. package/components/PopMenu/story.module.scss.d.ts +9 -0
  782. package/components/PopMenu/styles.module.scss +117 -0
  783. package/components/PopMenu/styles.module.scss.d.ts +14 -0
  784. package/components/PopOver/PopOver.d.ts +32 -0
  785. package/components/PopOver/PopOver.d.ts.map +1 -0
  786. package/components/PopOver/componentdata.json +1 -0
  787. package/components/PopOver/index.d.ts +4 -0
  788. package/components/PopOver/index.d.ts.map +1 -0
  789. package/components/PopOver/index.js +2 -0
  790. package/components/PopOver/index.js.map +1 -0
  791. package/components/PopOver/styles.module.scss +63 -0
  792. package/components/PopOver/styles.module.scss.d.ts +16 -0
  793. package/components/{HelpBubble → PopOver}/utils.d.ts +4 -4
  794. package/components/PopOver/utils.d.ts.map +1 -0
  795. package/components/Portal/index.d.ts.map +1 -1
  796. package/components/Portal/index.js +1 -1
  797. package/components/Portal/index.js.map +1 -1
  798. package/components/RadioButton/RadioButton.d.ts.map +1 -1
  799. package/components/RadioButton/componentdata.json +1 -1
  800. package/components/RadioButton/index.js +1 -1
  801. package/components/Select/Select.d.ts +1 -1
  802. package/components/Select/Select.d.ts.map +1 -1
  803. package/components/Select/componentdata.json +1 -1
  804. package/components/Select/index.js +1 -1
  805. package/components/Slider/Slider.d.ts.map +1 -1
  806. package/components/Slider/index.js +1 -1
  807. package/components/Slider/index.js.map +1 -1
  808. package/components/Slider/styles.module.scss +1 -0
  809. package/components/Spacer/Spacer.d.ts.map +1 -1
  810. package/components/Spacer/index.js +1 -1
  811. package/components/StatusDot/index.js +1 -1
  812. package/components/Stepper/Dot.d.ts.map +1 -0
  813. package/components/Stepper/DotList.d.ts.map +1 -0
  814. package/components/{Progressbar/Progressbar.d.ts → Stepper/Stepper.d.ts} +6 -6
  815. package/components/Stepper/Stepper.d.ts.map +1 -0
  816. package/components/Stepper/componentdata.json +1 -0
  817. package/components/Stepper/index.d.ts +4 -0
  818. package/components/Stepper/index.d.ts.map +1 -0
  819. package/components/Stepper/index.js +2 -0
  820. package/components/Stepper/index.js.map +1 -0
  821. package/components/{Progressbar → Stepper}/styles.module.scss +20 -14
  822. package/components/Stepper/styles.module.scss.d.ts +16 -0
  823. package/components/{Progressbar → Stepper}/utils.d.ts +7 -7
  824. package/components/Stepper/utils.d.ts.map +1 -0
  825. package/components/Table/Table.d.ts +7 -6
  826. package/components/Table/Table.d.ts.map +1 -1
  827. package/components/Table/TableBody/index.js +1 -1
  828. package/components/Table/TableCell/TableCell.d.ts.map +1 -1
  829. package/components/Table/TableCell/index.js +1 -1
  830. package/components/Table/TableExpandedRow/TableExpandedRow.d.ts.map +1 -1
  831. package/components/Table/TableExpandedRow/index.js +1 -1
  832. package/components/Table/TableExpanderCell/TableExpanderCell.d.ts.map +1 -1
  833. package/components/Table/TableExpanderCell/TableExpanderCellMobile.d.ts +2 -2
  834. package/components/Table/TableExpanderCell/TableExpanderCellMobile.d.ts.map +1 -1
  835. package/components/Table/TableExpanderCell/index.js +1 -1
  836. package/components/Table/TableHead/TableHead.d.ts.map +1 -1
  837. package/components/Table/TableHead/index.js +1 -1
  838. package/components/Table/TableHeadCell/TableHeadCell.d.ts.map +1 -1
  839. package/components/Table/TableHeadCell/index.js +1 -1
  840. package/components/Table/TableRow/TableRow.d.ts.map +1 -1
  841. package/components/Table/TableRow/componentdata.json +1 -1
  842. package/components/Table/TableRow/index.js +1 -1
  843. package/components/Table/index.js +1 -1
  844. package/components/Table/index.js.map +1 -1
  845. package/components/Table/utils.d.ts +3 -7
  846. package/components/Table/utils.d.ts.map +1 -1
  847. package/components/Tag/Tag.d.ts +2 -2
  848. package/components/Tag/Tag.d.ts.map +1 -1
  849. package/components/Tag/componentdata.json +1 -1
  850. package/components/Tag/index.js +1 -1
  851. package/components/Tag/index.js.map +1 -1
  852. package/components/TagList/index.js +1 -1
  853. package/components/TagList/index.js.map +1 -1
  854. package/components/Textarea/Textarea.d.ts.map +1 -1
  855. package/components/Textarea/componentdata.json +1 -1
  856. package/components/Textarea/index.js +1 -1
  857. package/components/Tile/Tile.d.ts +2 -2
  858. package/components/Tile/Tile.d.ts.map +1 -1
  859. package/components/Tile/index.js +1 -1
  860. package/components/Tile/index.js.map +1 -1
  861. package/components/Title/Title.d.ts +2 -2
  862. package/components/Title/Title.d.ts.map +1 -1
  863. package/components/Title/index.js +1 -1
  864. package/components/Tooltip/Tooltip.d.ts +1 -1
  865. package/components/Tooltip/Tooltip.d.ts.map +1 -1
  866. package/components/Tooltip/TooltipWord/index.js +1 -1
  867. package/components/Tooltip/componentdata.json +1 -1
  868. package/components/Tooltip/index.js +1 -1
  869. package/components/TooltipExample/TooltipExample.d.ts.map +1 -1
  870. package/components/TooltipExample/componentdata.json +1 -1
  871. package/components/TooltipExample/index.js +1 -1
  872. package/components/TooltipExample/index.js.map +1 -1
  873. package/components/Validation/Validation.d.ts.map +1 -1
  874. package/components/Validation/index.js +1 -1
  875. package/constants.d.ts +7 -3
  876. package/constants.d.ts.map +1 -1
  877. package/constants.js +1 -1
  878. package/constants.js.map +1 -1
  879. package/hoc/withBreakpoint/index.js +1 -1
  880. package/hoc/withBreakpoint/withBreakpoint.js.map +1 -1
  881. package/hooks/useBreakpoint.d.ts.map +1 -1
  882. package/hooks/useBreakpoint.js +1 -1
  883. package/hooks/useBreakpoint.js.map +1 -1
  884. package/hooks/useExpand.d.ts +3 -0
  885. package/hooks/useExpand.d.ts.map +1 -0
  886. package/hooks/useExpand.js +2 -0
  887. package/hooks/useExpand.js.map +1 -0
  888. package/hooks/useFocusToggle.d.ts.map +1 -1
  889. package/hooks/useFocusToggle.js.map +1 -1
  890. package/hooks/useFocusTrap.d.ts.map +1 -1
  891. package/hooks/useFocusTrap.js +1 -1
  892. package/hooks/useFocusTrap.js.map +1 -1
  893. package/hooks/useIcons.js.map +1 -1
  894. package/hooks/useIsVisible.d.ts.map +1 -1
  895. package/hooks/useIsVisible.js.map +1 -1
  896. package/hooks/useKeyboardEvent.d.ts +1 -1
  897. package/hooks/useKeyboardEvent.d.ts.map +1 -1
  898. package/hooks/useOutsideEvent.d.ts +1 -1
  899. package/hooks/useOutsideEvent.d.ts.map +1 -1
  900. package/hooks/useResizeObserver.js.map +1 -1
  901. package/hooks/useSize.d.ts.map +1 -1
  902. package/hooks/useSize.js.map +1 -1
  903. package/hooks/useSticky.d.ts.map +1 -1
  904. package/hooks/useSticky.js +1 -1
  905. package/hooks/useSticky.js.map +1 -1
  906. package/hooks/useToggle.d.ts.map +1 -1
  907. package/hooks/useToggle.js.map +1 -1
  908. package/hooks/useUuid.d.ts.map +1 -1
  909. package/hooks/useUuid.js.map +1 -1
  910. package/index.js +1 -1
  911. package/package.json +1 -1
  912. package/scss/_palette.scss +4 -4
  913. package/theme/currys/color.d.ts.map +1 -1
  914. package/theme/currys/color.js +1 -1
  915. package/theme/currys/color.js.map +1 -1
  916. package/theme/currys/index.js +1 -1
  917. package/theme/currys/spacing.js.map +1 -1
  918. package/theme/index.js +1 -1
  919. package/theme/index.js.map +1 -1
  920. package/theme/palette.d.ts +3 -3
  921. package/theme/palette.d.ts.map +1 -1
  922. package/theme/palette.js +1 -1
  923. package/theme/palette.js.map +1 -1
  924. package/theme/spacers.d.ts +1 -1
  925. package/theme/spacers.d.ts.map +1 -1
  926. package/utils/accessibility.d.ts +1 -1
  927. package/utils/accessibility.d.ts.map +1 -1
  928. package/utils/component.d.ts +1 -1
  929. package/utils/component.d.ts.map +1 -1
  930. package/utils/component.js.map +1 -1
  931. package/utils/environment.js.map +1 -1
  932. package/utils/focus.js +1 -1
  933. package/utils/focus.js.map +1 -1
  934. package/utils/viewport.js +1 -1
  935. package/utils/viewport.js.map +1 -1
  936. package/uuid.js +1 -1
  937. package/components/HelpBubble/utils.d.ts.map +0 -1
  938. package/components/Progressbar/Dot.d.ts.map +0 -1
  939. package/components/Progressbar/DotList.d.ts.map +0 -1
  940. package/components/Progressbar/Progressbar.d.ts.map +0 -1
  941. package/components/Progressbar/componentdata.json +0 -1
  942. package/components/Progressbar/index.d.ts +0 -4
  943. package/components/Progressbar/index.d.ts.map +0 -1
  944. package/components/Progressbar/index.js +0 -2
  945. package/components/Progressbar/index.js.map +0 -1
  946. package/components/Progressbar/styles.module.scss.d.ts +0 -16
  947. package/components/Progressbar/utils.d.ts.map +0 -1
  948. /package/components/{Progressbar → Stepper}/Dot.d.ts +0 -0
  949. /package/components/{Progressbar → Stepper}/DotList.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/components/Table/utils.ts","../../../src/components/Table/Table.tsx"],"sourcesContent":["import { Breakpoint } from '../../hooks/useBreakpoint';\nimport { isTouchDevice } from '../../utils/device';\nimport { BreakpointConfig, SmallViewportVariant } from './Table';\n\nimport styles from './styles.module.scss';\n\n/**\n * Sjekk om det skal brukes CSS for å bestemme responsivt utseende på dette breakpoint\n * @param config Konfigurasjon for responsiv oppførsel\n * @returns true om breakpoint bruker CSS\n */\nconst configUsesCss = (config: BreakpointConfig): boolean =>\n config.variant === SmallViewportVariant.centeredoverflow || config.variant === SmallViewportVariant.block;\n\n/**\n * Lag klassenavn for CSS-config\n * @param config Konfigurasjon for responsiv oppførsel\n * @returns CSS-klassenavn\n */\nconst mapConfigToClass = (config: BreakpointConfig): string => styles[`table--${config.variant}-${config.breakpoint}`];\n\n/**\n * Sorter konfigurasjon etter breakpoints, fra største til minste\n * @param a Konfigurasjon for responsiv oppførsel\n * @param b Konfigurasjon for responsiv oppførsel\n * @returns Sortert liste\n */\nconst sortByBreakpointsDescending = (a: BreakpointConfig, b: BreakpointConfig): number =>\n Breakpoint[a.breakpoint] - Breakpoint[b.breakpoint];\n\n/**\n * Sjekk om en konfigurasjon skal brukes for nåværende breakpoint\n * @param a Konfigurasjon for responsiv oppførsel\n * @param breakpoint Nåværende breakpoint\n * @returns true dersom config skal brukes for breakpointet\n */\nconst isValidForCurrentBreakpoint = (config: BreakpointConfig, breakpoint: Breakpoint): boolean =>\n Breakpoint[config.breakpoint] >= breakpoint;\n\n/**\n * Finn konfigurasjon for nåværende breakpoint\n * @param config Konfigurasjon for responsiv oppførsel\n * @param breakpoint Nåværende breakpoint\n * @returns Konfigurasjon for responsiv oppførsel\n */\nconst getConfigForBreakpoint = (config: BreakpointConfig | BreakpointConfig[], breakpoint: Breakpoint): BreakpointConfig | undefined => {\n if (Array.isArray(config)) {\n config.sort(sortByBreakpointsDescending);\n\n return config.find(x => isValidForCurrentBreakpoint(x, breakpoint));\n } else if (config && isValidForCurrentBreakpoint(config, breakpoint)) {\n return config;\n }\n};\n\n/**\n * Finn konfigurasjon for nåværende breakpoint og tabellbredde\n * @param config Konfigurasjon for responsiv oppførsel\n * @param breakpoint Nåværende breakpoint\n * @param tableWidth Bredde på tabell i px\n * @returns Konfigurasjon for responsiv oppførsel\n */\nexport const getCurrentConfig = (\n config: BreakpointConfig | BreakpointConfig[],\n breakpoint: Breakpoint,\n tableWidth: number,\n windowWidth: number\n): BreakpointConfig | undefined => {\n const breakpointConfig = getConfigForBreakpoint(config, breakpoint);\n const canUseHorizontalScroll = isTouchDevice();\n const canUseCenteredOverflow = tableWidth <= windowWidth;\n\n if (!breakpointConfig) {\n return;\n }\n\n if (\n breakpointConfig.variant === SmallViewportVariant.centeredoverflow &&\n !canUseCenteredOverflow &&\n breakpointConfig.fallbackVariant === SmallViewportVariant.horizontalscroll\n ) {\n return {\n variant: canUseHorizontalScroll ? SmallViewportVariant.horizontalscroll : SmallViewportVariant.none,\n breakpoint: breakpointConfig.breakpoint,\n };\n }\n\n if (\n breakpointConfig.variant === SmallViewportVariant.centeredoverflow &&\n !canUseCenteredOverflow &&\n breakpointConfig.fallbackVariant !== SmallViewportVariant.centeredoverflow\n ) {\n return {\n variant: breakpointConfig.fallbackVariant ?? SmallViewportVariant.none,\n breakpoint: breakpointConfig.breakpoint,\n };\n }\n\n if (\n breakpointConfig.variant === SmallViewportVariant.horizontalscroll &&\n !canUseHorizontalScroll &&\n breakpointConfig.fallbackVariant === SmallViewportVariant.centeredoverflow\n ) {\n return {\n variant: canUseCenteredOverflow ? SmallViewportVariant.centeredoverflow : SmallViewportVariant.none,\n breakpoint: breakpointConfig.breakpoint,\n };\n }\n\n if (\n breakpointConfig.variant === SmallViewportVariant.horizontalscroll &&\n !canUseHorizontalScroll &&\n breakpointConfig.fallbackVariant !== SmallViewportVariant.horizontalscroll\n ) {\n return {\n variant: breakpointConfig.fallbackVariant ?? SmallViewportVariant.none,\n breakpoint: breakpointConfig.breakpoint,\n };\n }\n\n return breakpointConfig;\n};\n\n/**\n * Finn klassenavn for responsiv oppførsel\n * @param config Konfigurasjon for responsiv oppførsel\n * @returns Klassenavn\n */\nexport const getBreakpointClass = (config?: BreakpointConfig): string | undefined =>\n config && configUsesCss(config) ? mapConfigToClass(config) : undefined;\n\n/** @deprecated Midlertidig, fjernes i v3.0.0 */\nexport const isOldFormat = (x: unknown): x is SmallViewportVariant =>\n (x as SmallViewportVariant) === SmallViewportVariant.block || (x as SmallViewportVariant) === SmallViewportVariant.horizontalscroll;\n\n/** @deprecated Midlertidig, fjernes i v3.0.0 */\nexport const getBackwardsCompatibleConfig = (variant: SmallViewportVariant): BreakpointConfig => {\n return {\n breakpoint: 'sm',\n variant,\n };\n};\n","import React, { useRef, useState } from 'react';\nimport classNames from 'classnames';\n\nimport styles from './styles.module.scss';\n\nimport { AnalyticsId } from '../../constants';\nimport HorizontalScroll from '../HorizontalScroll';\nimport { useSize } from '../../hooks/useSize';\nimport { Breakpoint, useBreakpoint } from '../../hooks/useBreakpoint';\nimport { getBackwardsCompatibleConfig, getCurrentConfig, getBreakpointClass, isOldFormat } from './utils';\nimport { useLayoutEvent } from '../../hooks/useLayoutEvent';\n\nexport enum SmallViewportVariant {\n /** No handling responsive behaviour. This will be the default in v3.0.0. */\n none = 'none',\n /** Overflow parent container to the left and right while remaining centered horizontally. */\n centeredoverflow = 'centeredoverflow',\n /** Show horizontal scrollbar when table is too big for the screen. */\n horizontalscroll = 'horizontalscroll',\n /** Collapse to two columns. */\n block = 'block',\n}\n\nexport interface BreakpointConfig {\n /** Breakpoint at which responsive behaviour will be applied. The table component uses a \"desktop first\" approach. */\n breakpoint: keyof typeof Breakpoint;\n /** Desired behaviour on this breakpoint and all smaller screens. */\n variant: keyof typeof SmallViewportVariant;\n /** If variant is horizontallscroll, use a fallback instead of device is not a touch device. */\n fallbackVariant?: keyof typeof SmallViewportVariant;\n}\n\nexport interface Props {\n /** Unique ID */\n id?: string;\n /** Id used for testing */\n testId?: string;\n /** Customize how the table behaves on various screen widths */\n /** @deprecated Rename to breakpointConfig in v3.0.0 and drop support for SmallViewPortVariant */\n smallViewportVariant?: SmallViewportVariant | BreakpointConfig | BreakpointConfig[];\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the content of the table. Use TableHead and TableBody */\n children: React.ReactNode;\n}\n\nexport const Table: React.FC<Props> = ({\n id,\n testId,\n className,\n children,\n smallViewportVariant: breakpointConfig = SmallViewportVariant.horizontalscroll,\n}) => {\n const tableRef = useRef<HTMLTableElement>(null);\n const breakpoint = useBreakpoint();\n const { width: tableWidth = 0 } = useSize(tableRef) || {};\n const [windowWidth, setWindowWidth] = useState(window.innerWidth);\n useLayoutEvent(() => setWindowWidth(window.innerWidth), ['resize'], 100);\n\n const currentConfig = isOldFormat(breakpointConfig)\n ? getBackwardsCompatibleConfig(breakpointConfig)\n : getCurrentConfig(breakpointConfig, breakpoint, tableWidth, windowWidth);\n const breakpointClass = getBreakpointClass(currentConfig);\n const tableClass = classNames(styles.table, breakpointClass, className);\n\n const table = (\n <table className={tableClass} id={id} data-testid={testId} data-analyticsid={AnalyticsId.Table} ref={tableRef}>\n {children}\n </table>\n );\n\n const useHorizontalScroll = currentConfig?.variant === SmallViewportVariant.horizontalscroll && !currentConfig?.fallbackVariant;\n\n if (useHorizontalScroll) {\n return (\n <HorizontalScroll childWidth={tableWidth} testId=\"horizontal-scroll\">\n {table}\n </HorizontalScroll>\n );\n }\n\n return table;\n};\n\nexport default Table;\n"],"names":["configUsesCss","config","SmallViewportVariant","mapConfigToClass","styles","sortByBreakpointsDescending","a","b","Breakpoint","isValidForCurrentBreakpoint","breakpoint","getConfigForBreakpoint","x","getCurrentConfig","tableWidth","windowWidth","breakpointConfig","canUseHorizontalScroll","isTouchDevice","canUseCenteredOverflow","_a","_b","getBreakpointClass","isOldFormat","getBackwardsCompatibleConfig","variant","Table","id","testId","className","children","tableRef","useRef","useBreakpoint","useSize","setWindowWidth","useState","useLayoutEvent","currentConfig","breakpointClass","tableClass","classNames","table","React","AnalyticsId","HorizontalScroll"],"mappings":"o8CAWA,MAAMA,EAAiBC,GACrBA,EAAO,UAAYC,EAAqB,kBAAoBD,EAAO,UAAYC,EAAqB,MAOhGC,EAAoBF,GAAqCG,EAAO,UAAUH,EAAO,WAAWA,EAAO,cAQnGI,EAA8B,CAACC,EAAqBC,IACxDC,EAAWF,EAAE,YAAcE,EAAWD,EAAE,YAQpCE,EAA8B,CAACR,EAA0BS,IAC7DF,EAAWP,EAAO,aAAeS,EAQ7BC,EAAyB,CAACV,EAA+CS,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A,KAAO,OAEPA,EAAA,iBAAmB,mBAEnBA,EAAA,iBAAmB,mBAEnBA,EAAA,MAAQ,QAREA,IAAAA,GAAA,CAAA,CAAA,EAkCL,MAAMwB,GAAyB,CAAC,CACrC,GAAAC,EACA,OAAAC,EACA,UAAAC,EACA,SAAAC,EACA,qBAAsBd,EAAmB,kBAC3C,IAAM,CACE,MAAAe,EAAWC,EAAyB,IAAI,EACxCtB,EAAauB,IACb,CAAE,MAAOnB,EAAa,GAAMoB,EAAQH,CAAQ,GAAK,GACjD,CAAChB,EAAaoB,CAAc,EAAIC,EAAS,OAAO,UAAU,EACjDC,EAAA,IAAMF,EAAe,OAAO,UAAU,EAAG,CAAC,QAAQ,EAAG,GAAG,EAEjE,MAAAG,EAAgBf,EAAYP,CAAgB,EAC9CQ,EAA6BR,CAAgB,EAC7CH,EAAiBG,EAAkBN,EAAYI,EAAYC,CAAW,EACpEwB,EAAkBjB,EAAmBgB,CAAa,EAClDE,EAAaC,EAAWrC,EAAO,MAAOmC,EAAiBV,CAAS,EAEhEa,EACHC,EAAA,cAAA,QAAA,CAAM,UAAWH,EAAY,GAAAb,EAAQ,cAAaC,EAAQ,mBAAkBgB,EAAY,MAAO,IAAKb,CAAA,EAClGD,CACH,EAKF,OAF4BQ,GAAA,YAAAA,EAAe,WAAY,oBAAyC,EAACA,GAAA,MAAAA,EAAe,iBAI3GK,EAAA,cAAAE,EAAA,CAAiB,WAAY/B,EAAY,OAAO,mBAAA,EAC9C4B,CACH,EAIGA,CACT"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/Table/utils.ts","../../../src/components/Table/Table.tsx"],"sourcesContent":["import { BreakpointConfig, ResponsiveTableVariant } from './Table';\nimport { Breakpoint } from '../../hooks/useBreakpoint';\nimport { isTouchDevice } from '../../utils/device';\n\nimport styles from './styles.module.scss';\n\n/**\n * Sjekk om det skal brukes CSS for å bestemme responsivt utseende på dette breakpoint\n * @param config Konfigurasjon for responsiv oppførsel\n * @returns true om breakpoint bruker CSS\n */\nconst configUsesCss = (config: BreakpointConfig): boolean =>\n config.variant === ResponsiveTableVariant.centeredoverflow || config.variant === ResponsiveTableVariant.block;\n\n/**\n * Lag klassenavn for CSS-config\n * @param config Konfigurasjon for responsiv oppførsel\n * @returns CSS-klassenavn\n */\nconst mapConfigToClass = (config: BreakpointConfig): string => styles[`table--${config.variant}-${config.breakpoint}`];\n\n/**\n * Sorter konfigurasjon etter breakpoints, fra største til minste\n * @param a Konfigurasjon for responsiv oppførsel\n * @param b Konfigurasjon for responsiv oppførsel\n * @returns Sortert liste\n */\nconst sortByBreakpointsDescending = (a: BreakpointConfig, b: BreakpointConfig): number =>\n Breakpoint[a.breakpoint] - Breakpoint[b.breakpoint];\n\n/**\n * Sjekk om en konfigurasjon skal brukes for nåværende breakpoint\n * @param a Konfigurasjon for responsiv oppførsel\n * @param breakpoint Nåværende breakpoint\n * @returns true dersom config skal brukes for breakpointet\n */\nconst isValidForCurrentBreakpoint = (config: BreakpointConfig, breakpoint: Breakpoint): boolean =>\n Breakpoint[config.breakpoint] >= breakpoint;\n\n/**\n * Finn konfigurasjon for nåværende breakpoint\n * @param config Konfigurasjon for responsiv oppførsel\n * @param breakpoint Nåværende breakpoint\n * @returns Konfigurasjon for responsiv oppførsel\n */\nconst getConfigForBreakpoint = (config: BreakpointConfig | BreakpointConfig[], breakpoint: Breakpoint): BreakpointConfig | undefined => {\n if (Array.isArray(config)) {\n config.sort(sortByBreakpointsDescending);\n\n return config.find(x => isValidForCurrentBreakpoint(x, breakpoint));\n } else if (config && isValidForCurrentBreakpoint(config, breakpoint)) {\n return config;\n }\n};\n\n/**\n * Finn konfigurasjon for nåværende breakpoint og tabellbredde\n * @param config Konfigurasjon for responsiv oppførsel\n * @param breakpoint Nåværende breakpoint\n * @param tableWidth Bredde på tabell i px\n * @returns Konfigurasjon for responsiv oppførsel uten fallbackVariant\n */\nexport const getCurrentConfig = (\n config: BreakpointConfig | BreakpointConfig[],\n breakpoint: Breakpoint,\n tableWidth: number,\n windowWidth: number\n): Omit<BreakpointConfig, 'fallbackVariant'> | undefined => {\n const breakpointConfig = getConfigForBreakpoint(config, breakpoint);\n const canUseHorizontalScroll = isTouchDevice();\n const canUseCenteredOverflow = tableWidth <= windowWidth;\n\n if (!breakpointConfig) {\n return;\n }\n\n if (\n breakpointConfig.variant === ResponsiveTableVariant.centeredoverflow &&\n !canUseCenteredOverflow &&\n breakpointConfig.fallbackVariant === ResponsiveTableVariant.horizontalscroll\n ) {\n return {\n variant: canUseHorizontalScroll ? ResponsiveTableVariant.horizontalscroll : ResponsiveTableVariant.none,\n breakpoint: breakpointConfig.breakpoint,\n };\n }\n\n if (\n breakpointConfig.variant === ResponsiveTableVariant.centeredoverflow &&\n !canUseCenteredOverflow &&\n breakpointConfig.fallbackVariant !== ResponsiveTableVariant.centeredoverflow\n ) {\n return {\n variant: breakpointConfig.fallbackVariant ?? ResponsiveTableVariant.none,\n breakpoint: breakpointConfig.breakpoint,\n };\n }\n\n if (\n breakpointConfig.variant === ResponsiveTableVariant.horizontalscroll &&\n !canUseHorizontalScroll &&\n breakpointConfig.fallbackVariant === ResponsiveTableVariant.centeredoverflow\n ) {\n return {\n variant: canUseCenteredOverflow ? ResponsiveTableVariant.centeredoverflow : ResponsiveTableVariant.none,\n breakpoint: breakpointConfig.breakpoint,\n };\n }\n\n if (\n breakpointConfig.variant === ResponsiveTableVariant.horizontalscroll &&\n !canUseHorizontalScroll &&\n breakpointConfig.fallbackVariant !== ResponsiveTableVariant.horizontalscroll\n ) {\n return {\n variant: breakpointConfig.fallbackVariant ?? ResponsiveTableVariant.none,\n breakpoint: breakpointConfig.breakpoint,\n };\n }\n\n return breakpointConfig;\n};\n\n/**\n * Finn klassenavn for responsiv oppførsel\n * @param config Konfigurasjon for responsiv oppførsel\n * @returns Klassenavn\n */\nexport const getBreakpointClass = (config?: BreakpointConfig): string | undefined =>\n config && configUsesCss(config) ? mapConfigToClass(config) : undefined;\n","import React, { useEffect, useRef, useState } from 'react';\n\nimport classNames from 'classnames';\n\nimport { getCurrentConfig, getBreakpointClass } from './utils';\nimport { AnalyticsId } from '../../constants';\nimport { Breakpoint, useBreakpoint } from '../../hooks/useBreakpoint';\nimport { useLayoutEvent } from '../../hooks/useLayoutEvent';\nimport HorizontalScroll from '../HorizontalScroll';\n\nimport styles from './styles.module.scss';\n\nexport enum ResponsiveTableVariant {\n /** No handling responsive behaviour. Default. */\n none = 'none',\n /** Overflow parent container to the left and right while remaining centered horizontally. */\n centeredoverflow = 'centeredoverflow',\n /** Show horizontal scrollbar when table is too big for the screen. */\n horizontalscroll = 'horizontalscroll',\n /** Collapse to two columns. */\n block = 'block',\n}\n\nexport interface BreakpointConfig {\n /** Breakpoint at which responsive behaviour will be applied. The table component uses a \"desktop first\" approach. */\n breakpoint: keyof typeof Breakpoint;\n /** Desired behaviour on this breakpoint and all smaller screens. */\n variant: keyof typeof ResponsiveTableVariant;\n /** If variant is horizontallscroll, use a fallback instead of device is not a touch device. */\n fallbackVariant?: keyof typeof ResponsiveTableVariant;\n}\n\nexport interface Props {\n /** Unique ID */\n id?: string;\n /** Id used for testing */\n testId?: string;\n /** Customize how the table behaves on various screen widths */\n breakpointConfig?: BreakpointConfig | BreakpointConfig[];\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the content of the table. Use TableHead and TableBody */\n children: React.ReactNode;\n}\n\nexport const defaultConfig: BreakpointConfig[] = [\n {\n breakpoint: 'xl',\n variant: ResponsiveTableVariant.centeredoverflow,\n fallbackVariant: ResponsiveTableVariant.horizontalscroll,\n },\n];\n\nexport const simpleConfig: BreakpointConfig[] = [\n {\n breakpoint: 'xl',\n variant: ResponsiveTableVariant.centeredoverflow,\n fallbackVariant: ResponsiveTableVariant.horizontalscroll,\n },\n {\n breakpoint: 'sm',\n variant: ResponsiveTableVariant.centeredoverflow,\n fallbackVariant: ResponsiveTableVariant.block,\n },\n];\n\nexport const Table: React.FC<Props> = ({ id, testId, className, children, breakpointConfig = defaultConfig }) => {\n const [currentConfig, setCurrentConfig] = useState<BreakpointConfig>();\n const [tableWidth, setTableWidth] = useState<number>(0);\n const [windowWidth, setWindowWidth] = useState(window.innerWidth);\n const tableRef = useRef<HTMLTableElement>(null);\n const breakpoint = useBreakpoint();\n\n useEffect(() => {\n setCurrentConfig(getCurrentConfig(breakpointConfig, breakpoint, tableWidth, windowWidth));\n }, [breakpointConfig, breakpoint, tableWidth, windowWidth]);\n\n useEffect(() => {\n if (currentConfig?.variant === ResponsiveTableVariant.centeredoverflow) {\n setTableWidth(tableRef.current?.getBoundingClientRect().width ?? 0);\n }\n }, [currentConfig]);\n\n useLayoutEvent(() => setWindowWidth(window.innerWidth), ['resize'], 100);\n\n const breakpointClass = getBreakpointClass(currentConfig);\n const tableClass = classNames(styles.table, breakpointClass, className);\n\n const table = (\n <table className={tableClass} id={id} data-testid={testId} data-analyticsid={AnalyticsId.Table} ref={tableRef}>\n {children}\n </table>\n );\n\n if (currentConfig?.variant === ResponsiveTableVariant.horizontalscroll) {\n return (\n <HorizontalScroll childWidth={tableWidth} testId=\"horizontal-scroll\">\n {table}\n </HorizontalScroll>\n );\n }\n\n return table;\n};\n\nexport default Table;\n"],"names":["configUsesCss","config","ResponsiveTableVariant","mapConfigToClass","styles","sortByBreakpointsDescending","a","b","Breakpoint","isValidForCurrentBreakpoint","breakpoint","getConfigForBreakpoint","x","getCurrentConfig","tableWidth","windowWidth","breakpointConfig","canUseHorizontalScroll","isTouchDevice","canUseCenteredOverflow","getBreakpointClass","defaultConfig","simpleConfig","Table","id","testId","className","children","currentConfig","setCurrentConfig","useState","setTableWidth","setWindowWidth","tableRef","useRef","useBreakpoint","useEffect","_a","useLayoutEvent","breakpointClass","tableClass","classNames","table","React","AnalyticsId","HorizontalScroll"],"mappings":"i8CAWA,MAAMA,EAAiBC,GACrBA,EAAO,UAAYC,EAAuB,kBAAoBD,EAAO,UAAYC,EAAuB,MAOpGC,EAAoBF,GAAqCG,EAAO,UAAUH,EAAO,WAAWA,EAAO,YAAY,E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A,WAAY/B,EAAY,OAAO,qBAC9C4B,CACH,EAIGA,CACT"}
@@ -1,21 +1,17 @@
1
+ import { BreakpointConfig } from './Table';
1
2
  import { Breakpoint } from '../../hooks/useBreakpoint';
2
- import { BreakpointConfig, SmallViewportVariant } from './Table';
3
3
  /**
4
4
  * Finn konfigurasjon for nåværende breakpoint og tabellbredde
5
5
  * @param config Konfigurasjon for responsiv oppførsel
6
6
  * @param breakpoint Nåværende breakpoint
7
7
  * @param tableWidth Bredde på tabell i px
8
- * @returns Konfigurasjon for responsiv oppførsel
8
+ * @returns Konfigurasjon for responsiv oppførsel uten fallbackVariant
9
9
  */
10
- export declare const getCurrentConfig: (config: BreakpointConfig | BreakpointConfig[], breakpoint: Breakpoint, tableWidth: number, windowWidth: number) => BreakpointConfig | undefined;
10
+ export declare const getCurrentConfig: (config: BreakpointConfig | BreakpointConfig[], breakpoint: Breakpoint, tableWidth: number, windowWidth: number) => Omit<BreakpointConfig, 'fallbackVariant'> | undefined;
11
11
  /**
12
12
  * Finn klassenavn for responsiv oppførsel
13
13
  * @param config Konfigurasjon for responsiv oppførsel
14
14
  * @returns Klassenavn
15
15
  */
16
16
  export declare const getBreakpointClass: (config?: BreakpointConfig) => string | undefined;
17
- /** @deprecated Midlertidig, fjernes i v3.0.0 */
18
- export declare const isOldFormat: (x: unknown) => x is SmallViewportVariant;
19
- /** @deprecated Midlertidig, fjernes i v3.0.0 */
20
- export declare const getBackwardsCompatibleConfig: (variant: SmallViewportVariant) => BreakpointConfig;
21
17
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/Table/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAqDjE;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,WACnB,gBAAgB,GAAG,gBAAgB,EAAE,cACjC,UAAU,cACV,MAAM,eACL,MAAM,KAClB,gBAAgB,GAAG,SAsDrB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,YAAa,gBAAgB,KAAG,MAAM,GAAG,SACA,CAAC;AAEzE,gDAAgD;AAChD,eAAO,MAAM,WAAW,MAAO,OAAO,8BAC+F,CAAC;AAEtI,gDAAgD;AAChD,eAAO,MAAM,4BAA4B,YAAa,oBAAoB,KAAG,gBAK5E,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/Table/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAA0B,MAAM,SAAS,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAsDvD;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,WACnB,gBAAgB,GAAG,gBAAgB,EAAE,cACjC,UAAU,cACV,MAAM,eACL,MAAM,KAClB,KAAK,gBAAgB,EAAE,iBAAiB,CAAC,GAAG,SAsD9C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,YAAa,gBAAgB,KAAG,MAAM,GAAG,SACA,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { SvgIcon } from '../Icons';
3
2
  import { PaletteNames } from '../../theme/palette';
3
+ import { SvgIcon } from '../Icons';
4
4
  export declare enum TagSize {
5
5
  medium = "medium",
6
6
  large = "large"
@@ -14,7 +14,7 @@ export declare enum TagVariant {
14
14
  oncolor = "oncolor",
15
15
  emphasised = "emphasised"
16
16
  }
17
- export declare type TagColors = Extract<PaletteNames, 'blueberry' | 'neutral' | 'cherry' | 'banana' | 'kiwi' | 'plum'>;
17
+ export type TagColors = Extract<PaletteNames, 'blueberry' | 'neutral' | 'cherry' | 'banana' | 'kiwi' | 'plum'>;
18
18
  interface TagProps {
19
19
  /** Sets the text of the tag */
20
20
  children: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/Tag.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAa,EAAY,OAAO,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,EAAW,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAQ5D,oBAAY,OAAO;IACjB,MAAM,WAAW;IACjB,KAAK,UAAU;CAChB;AAED,oBAAY,SAAS;IACnB,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED,oBAAY,UAAU;IACpB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,UAAU,eAAe;CAC1B;AAED,oBAAY,SAAS,GAAG,OAAO,CAAC,YAAY,EAAE,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC,CAAC;AAE/G,UAAU,QAAQ;IAChB,+BAA+B;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,+CAA+C;IAC/C,IAAI,CAAC,EAAE,MAAM,OAAO,OAAO,CAAC;IAC5B,uFAAuF;IACvF,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,2DAA2D;IAC3D,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,OAAO,CAAC,EAAE,MAAM,OAAO,UAAU,CAAC;IAElC,MAAM,CAAC,EAAE,MAAM,OAAO,SAAS,CAAC;IAEhC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,6DAA6D;IAC7D,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAuCD,QAAA,MAAM,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC,QAAQ,CAqB3B,CAAC;AAEF,eAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/Tag.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAW,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAa,EAAY,OAAO,EAAE,MAAM,UAAU,CAAC;AAMnD,oBAAY,OAAO;IACjB,MAAM,WAAW;IACjB,KAAK,UAAU;CAChB;AAED,oBAAY,SAAS;IACnB,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED,oBAAY,UAAU;IACpB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,UAAU,eAAe;CAC1B;AAED,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC,YAAY,EAAE,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC,CAAC;AAE/G,UAAU,QAAQ;IAChB,+BAA+B;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,+CAA+C;IAC/C,IAAI,CAAC,EAAE,MAAM,OAAO,OAAO,CAAC;IAC5B,uFAAuF;IACvF,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,2DAA2D;IAC3D,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,OAAO,CAAC,EAAE,MAAM,OAAO,UAAU,CAAC;IAElC,MAAM,CAAC,EAAE,MAAM,OAAO,SAAS,CAAC;IAEhC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,6DAA6D;IAC7D,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAuCD,QAAA,MAAM,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC,QAAQ,CAqB3B,CAAC;AAEF,eAAe,GAAG,CAAC"}
@@ -1 +1 @@
1
- {"props":{"children":{"defaultValue":null,"description":"Sets the text of the tag","name":"children","parent":{"fileName":"src/components/Tag/Tag.tsx","name":"TagProps"},"declarations":[{"fileName":"src/components/Tag/Tag.tsx","name":"TagProps"},{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"TypeLiteral"}],"required":false,"type":{"name":"string & ReactNode"}},"size":{"defaultValue":null,"description":"Sets the size of the tag. Default: small","name":"size","parent":{"fileName":"src/components/Tag/Tag.tsx","name":"TagProps"},"declarations":[{"fileName":"src/components/Tag/Tag.tsx","name":"TagProps"}],"required":false,"type":{"name":"enum","raw":"\"medium\" | \"large\"","value":[{"value":"\"medium\""},{"value":"\"large\""}]}},"color":{"defaultValue":null,"description":"Sets the background of the tag. Not used if action is \"undo\". Default: blueberry","name":"color","parent":{"fileName":"src/components/Tag/Tag.tsx","name":"TagProps"},"declarations":[{"fileName":"src/components/Tag/Tag.tsx","name":"TagProps"}],"required":false,"type":{"name":"enum","raw":"TagColors","value":[{"value":"\"banana\""},{"value":"\"blueberry\""},{"value":"\"cherry\""},{"value":"\"kiwi\""},{"value":"\"neutral\""},{"value":"\"plum\""}]}},"svgIcon":{"defaultValue":null,"description":"Adds an icon to the tag. Not shown if action is set.","name":"svgIcon","parent":{"fileName":"src/components/Tag/Tag.tsx","name":"TagProps"},"declarations":[{"fileName":"src/components/Tag/Tag.tsx","name":"TagProps"}],"required":false,"type":{"name":"SvgIcon"}},"variant":{"defaultValue":null,"description":"","name":"variant","parent":{"fileName":"src/components/Tag/Tag.tsx","name":"TagProps"},"declarations":[{"fileName":"src/components/Tag/Tag.tsx","name":"TagProps"}],"required":false,"type":{"name":"enum","raw":"\"normal\" | \"oncolor\" | \"emphasised\"","value":[{"value":"\"normal\""},{"value":"\"oncolor\""},{"value":"\"emphasised\""}]}},"action":{"defaultValue":null,"description":"","name":"action","parent":{"fileName":"src/components/Tag/Tag.tsx","name":"TagProps"},"declarations":[{"fileName":"src/components/Tag/Tag.tsx","name":"TagProps"}],"required":false,"type":{"name":"enum","raw":"\"remove\" | \"undo\"","value":[{"value":"\"remove\""},{"value":"\"undo\""}]}},"onClick":{"defaultValue":null,"description":"","name":"onClick","parent":{"fileName":"src/components/Tag/Tag.tsx","name":"TagProps"},"declarations":[{"fileName":"src/components/Tag/Tag.tsx","name":"TagProps"}],"required":false,"type":{"name":"(() => void)"}},"testId":{"defaultValue":null,"description":"Sets the data-testid attribute on the expander button.","name":"testId","parent":{"fileName":"src/components/Tag/Tag.tsx","name":"TagProps"},"declarations":[{"fileName":"src/components/Tag/Tag.tsx","name":"TagProps"}],"required":false,"type":{"name":"string"}}}}
1
+ {"props":{"children":{"defaultValue":null,"description":"Sets the text of the tag","name":"children","parent":{"fileName":"src/components/Tag/Tag.tsx","name":"TagProps"},"declarations":[{"fileName":"src/components/Tag/Tag.tsx","name":"TagProps"},{"fileName":"s/node_modules/@types/react/index.d.ts","name":"TypeLiteral"}],"required":false,"type":{"name":"string & ReactNode"}},"size":{"defaultValue":null,"description":"Sets the size of the tag. Default: small","name":"size","parent":{"fileName":"src/components/Tag/Tag.tsx","name":"TagProps"},"declarations":[{"fileName":"src/components/Tag/Tag.tsx","name":"TagProps"}],"required":false,"type":{"name":"enum","raw":"\"medium\" | \"large\"","value":[{"value":"\"medium\""},{"value":"\"large\""}]}},"color":{"defaultValue":null,"description":"Sets the background of the tag. Not used if action is \"undo\". Default: blueberry","name":"color","parent":{"fileName":"src/components/Tag/Tag.tsx","name":"TagProps"},"declarations":[{"fileName":"src/components/Tag/Tag.tsx","name":"TagProps"}],"required":false,"type":{"name":"enum","raw":"TagColors","value":[{"value":"\"banana\""},{"value":"\"blueberry\""},{"value":"\"cherry\""},{"value":"\"kiwi\""},{"value":"\"neutral\""},{"value":"\"plum\""}]}},"svgIcon":{"defaultValue":null,"description":"Adds an icon to the tag. Not shown if action is set.","name":"svgIcon","parent":{"fileName":"src/components/Tag/Tag.tsx","name":"TagProps"},"declarations":[{"fileName":"src/components/Tag/Tag.tsx","name":"TagProps"}],"required":false,"type":{"name":"SvgIcon"}},"variant":{"defaultValue":null,"description":"","name":"variant","parent":{"fileName":"src/components/Tag/Tag.tsx","name":"TagProps"},"declarations":[{"fileName":"src/components/Tag/Tag.tsx","name":"TagProps"}],"required":false,"type":{"name":"enum","raw":"\"normal\" | \"oncolor\" | \"emphasised\"","value":[{"value":"\"normal\""},{"value":"\"oncolor\""},{"value":"\"emphasised\""}]}},"action":{"defaultValue":null,"description":"","name":"action","parent":{"fileName":"src/components/Tag/Tag.tsx","name":"TagProps"},"declarations":[{"fileName":"src/components/Tag/Tag.tsx","name":"TagProps"}],"required":false,"type":{"name":"enum","raw":"\"remove\" | \"undo\"","value":[{"value":"\"remove\""},{"value":"\"undo\""}]}},"onClick":{"defaultValue":null,"description":"","name":"onClick","parent":{"fileName":"src/components/Tag/Tag.tsx","name":"TagProps"},"declarations":[{"fileName":"src/components/Tag/Tag.tsx","name":"TagProps"}],"required":false,"type":{"name":"(() => void)"}},"testId":{"defaultValue":null,"description":"Sets the data-testid attribute on the expander button.","name":"testId","parent":{"fileName":"src/components/Tag/Tag.tsx","name":"TagProps"},"declarations":[{"fileName":"src/components/Tag/Tag.tsx","name":"TagProps"}],"required":false,"type":{"name":"string"}}}}
@@ -1,2 +1,2 @@
1
- import n from"react";import u from"classnames";import{Icon as g}from"../Icons/Icon.js";import{AnalyticsId as p,IconSize as v}from"../../constants.js";import{palette as f}from"../../theme/palette.js";import e from"./styles.module.scss";import{useHover as I}from"../../hooks/useHover.js";import y from"../Icons/Undo.js";import b from"../Icons/X.js";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../utils/environment.js";var E=(t=>(t.medium="medium",t.large="large",t))(E||{}),X=(t=>(t.remove="remove",t.undo="undo",t))(X||{}),z=(t=>(t.normal="normal",t.oncolor="oncolor",t.emphasised="emphasised",t))(z||{});const C=t=>{const{children:s,size:m,color:r,variant:a,action:o,onClick:c,testId:i}=t,{hoverRef:l,isHovered:d}=I(),$=u(e.tag,e[`tag--${m}`],e[`tag--${o}`],e["tag--has-action"],o==="remove"&&[e[`tag--${r}`],e[`tag--${a}`]]),h=()=>{switch(o){case"remove":return b;case"undo":return y}};return n.createElement("button",{className:$,onClick:c,ref:l,type:"button","data-testid":i,"data-analyticsid":p.Tag},s,n.createElement(g,{svgIcon:h(),size:v.XXSmall,color:f[`${o==="undo"?"blueberry":r}800`],isHovered:d}))},B=t=>{const{children:s,size:m="medium",color:r="blueberry",svgIcon:a,variant:o="normal",action:c,onClick:i,testId:l}=t,d=u(e.tag,e[`tag--${m}`],e[`tag--${r}`],e[`tag--${o}`],{[e["tag--has-icon"]]:a});return c&&i?n.createElement(C,{size:m,color:r,variant:o,action:c,onClick:i,testId:l},s):n.createElement("span",{className:d,"data-testid":l,"data-analyticsid":p.Tag},a&&n.createElement(g,{svgIcon:a,size:v.XXSmall,color:f[`${r}800`],className:e.tag__icon}),s)};export{X as TagAction,E as TagSize,z as TagVariant,B as default};
1
+ import n from"react";import u from"classnames";import{AnalyticsId as g,IconSize as p}from"../../constants.js";import{useHover as I}from"../../hooks/useHover.js";import{palette as v}from"../../theme/palette.js";import{Icon as f}from"../Icons/Icon.js";import y from"../Icons/Undo.js";import b from"../Icons/X.js";import e from"./styles.module.scss";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../utils/environment.js";var E=(t=>(t.medium="medium",t.large="large",t))(E||{}),X=(t=>(t.remove="remove",t.undo="undo",t))(X||{}),z=(t=>(t.normal="normal",t.oncolor="oncolor",t.emphasised="emphasised",t))(z||{});const C=t=>{const{children:s,size:m,color:r,variant:a,action:o,onClick:c,testId:i}=t,{hoverRef:l,isHovered:d}=I(),$=u(e.tag,e[`tag--${m}`],e[`tag--${o}`],e["tag--has-action"],o==="remove"&&[e[`tag--${r}`],e[`tag--${a}`]]),h=()=>{switch(o){case"remove":return b;case"undo":return y}};return n.createElement("button",{className:$,onClick:c,ref:l,type:"button","data-testid":i,"data-analyticsid":g.Tag},s,n.createElement(f,{svgIcon:h(),size:p.XXSmall,color:v[`${o==="undo"?"blueberry":r}800`],isHovered:d}))},N=t=>{const{children:s,size:m="medium",color:r="blueberry",svgIcon:a,variant:o="normal",action:c,onClick:i,testId:l}=t,d=u(e.tag,e[`tag--${m}`],e[`tag--${r}`],e[`tag--${o}`],{[e["tag--has-icon"]]:a});return c&&i?n.createElement(C,{size:m,color:r,variant:o,action:c,onClick:i,testId:l},s):n.createElement("span",{className:d,"data-testid":l,"data-analyticsid":g.Tag},a&&n.createElement(f,{svgIcon:a,size:p.XXSmall,color:v[`${r}800`],className:e.tag__icon}),s)},B=N;export{X as TagAction,E as TagSize,z as TagVariant,B as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/components/Tag/Tag.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'classnames';\n\nimport Icon, { IconSize, SvgIcon } from '../Icons';\nimport { palette, PaletteNames } from '../../theme/palette';\n\nimport styles from './styles.module.scss';\nimport { useHover } from '../../hooks/useHover';\nimport Undo from '../Icons/Undo';\nimport X from '../Icons/X';\nimport { AnalyticsId } from '../../constants';\n\nexport enum TagSize {\n medium = 'medium',\n large = 'large',\n}\n\nexport enum TagAction {\n remove = 'remove',\n undo = 'undo',\n}\n\nexport enum TagVariant {\n normal = 'normal',\n oncolor = 'oncolor',\n emphasised = 'emphasised',\n}\n\nexport type TagColors = Extract<PaletteNames, 'blueberry' | 'neutral' | 'cherry' | 'banana' | 'kiwi' | 'plum'>;\n\ninterface TagProps {\n /** Sets the text of the tag */\n children: string;\n /** Sets the size of the tag. Default: small */\n size?: keyof typeof TagSize;\n /** Sets the background of the tag. Not used if action is \"undo\". Default: blueberry */\n color?: TagColors;\n /** Adds an icon to the tag. Not shown if action is set. */\n svgIcon?: SvgIcon;\n /* Changes the appearance of the tag. Not used if action is \"undo\". Default: normal */\n variant?: keyof typeof TagVariant;\n /* Makes the tag a clickable button that performs an action. onClick must also be set. */\n action?: keyof typeof TagAction;\n /* Called when action is set and the tag is clicked on. action must also be set. */\n onClick?: () => void;\n /** Sets the data-testid attribute on the expander button. */\n testId?: string;\n}\n\ntype ActionTagProps = Required<Pick<TagProps, 'children' | 'size' | 'color' | 'variant' | 'action' | 'onClick'>> & Pick<TagProps, 'testId'>;\n\nconst ActionTag: React.FC<ActionTagProps> = props => {\n const { children, size, color, variant, action, onClick, testId } = props;\n\n const { hoverRef, isHovered } = useHover<HTMLButtonElement>();\n\n const tagClasses = cn(\n styles.tag,\n styles[`tag--${size}`],\n styles[`tag--${action}`],\n styles['tag--has-action'],\n action === 'remove' && [styles[`tag--${color}`], styles[`tag--${variant}`]]\n );\n\n const getActionIcon = (): SvgIcon => {\n switch (action) {\n case 'remove':\n return X;\n case 'undo':\n return Undo;\n }\n };\n\n return (\n <button className={tagClasses} onClick={onClick} ref={hoverRef} type=\"button\" data-testid={testId} data-analyticsid={AnalyticsId.Tag}>\n {children}\n <Icon\n svgIcon={getActionIcon()}\n size={IconSize.XXSmall}\n color={palette[`${action === 'undo' ? 'blueberry' : color}800`]}\n isHovered={isHovered}\n />\n </button>\n );\n};\n\nconst Tag: React.FC<TagProps> = props => {\n const { children, size = TagSize.medium, color = 'blueberry', svgIcon, variant = 'normal', action, onClick, testId } = props;\n\n const tagClasses = cn(styles.tag, styles[`tag--${size}`], styles[`tag--${color}`], styles[`tag--${variant}`], {\n [styles['tag--has-icon']]: svgIcon,\n });\n\n if (action && onClick) {\n return (\n <ActionTag size={size} color={color} variant={variant} action={action} onClick={onClick} testId={testId}>\n {children}\n </ActionTag>\n );\n }\n\n return (\n <span className={tagClasses} data-testid={testId} data-analyticsid={AnalyticsId.Tag}>\n {svgIcon && <Icon svgIcon={svgIcon} size={IconSize.XXSmall} color={palette[`${color}800`]} className={styles.tag__icon} />}\n {children}\n </span>\n );\n};\n\nexport default Tag;\n"],"names":["TagSize","TagAction","TagVariant","ActionTag","props","children","size","color","variant","action","onClick","testId","hoverRef","isHovered","useHover","tagClasses","cn","styles","getActionIcon","X","Undo","React","AnalyticsId","Icon","IconSize","palette","Tag","svgIcon"],"mappings":"mbAYY,IAAAA,GAAAA,IACVA,EAAA,OAAS,SACTA,EAAA,MAAQ,QAFEA,IAAAA,GAAA,CAAA,CAAA,EAKAC,GAAAA,IACVA,EAAA,OAAS,SACTA,EAAA,KAAO,OAFGA,IAAAA,GAAA,CAAA,CAAA,EAKAC,GAAAA,IACVA,EAAA,OAAS,SACTA,EAAA,QAAU,UACVA,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,EACtFN,CACH,EAKDgB,EAAA,cAAA,OAAA,CAAK,UAAWN,EAAY,cAAaJ,EAAQ,mBAAkBW,EAAY,GAAA,EAC7EK,GAAYN,EAAA,cAAAE,EAAA,CAAK,QAAAI,EAAkB,KAAMH,EAAS,QAAS,MAAOC,EAAQ,GAAGlB,QAAa,UAAWU,EAAO,SAAA,CAAW,EACvHZ,CACH,CAEJ"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/Tag/Tag.tsx"],"sourcesContent":["import React from 'react';\n\nimport cn from 'classnames';\n\nimport { AnalyticsId } from '../../constants';\nimport { useHover } from '../../hooks/useHover';\nimport { palette, PaletteNames } from '../../theme/palette';\nimport Icon, { IconSize, SvgIcon } from '../Icons';\nimport Undo from '../Icons/Undo';\nimport X from '../Icons/X';\n\nimport styles from './styles.module.scss';\n\nexport enum TagSize {\n medium = 'medium',\n large = 'large',\n}\n\nexport enum TagAction {\n remove = 'remove',\n undo = 'undo',\n}\n\nexport enum TagVariant {\n normal = 'normal',\n oncolor = 'oncolor',\n emphasised = 'emphasised',\n}\n\nexport type TagColors = Extract<PaletteNames, 'blueberry' | 'neutral' | 'cherry' | 'banana' | 'kiwi' | 'plum'>;\n\ninterface TagProps {\n /** Sets the text of the tag */\n children: string;\n /** Sets the size of the tag. Default: small */\n size?: keyof typeof TagSize;\n /** Sets the background of the tag. Not used if action is \"undo\". Default: blueberry */\n color?: TagColors;\n /** Adds an icon to the tag. Not shown if action is set. */\n svgIcon?: SvgIcon;\n /* Changes the appearance of the tag. Not used if action is \"undo\". Default: normal */\n variant?: keyof typeof TagVariant;\n /* Makes the tag a clickable button that performs an action. onClick must also be set. */\n action?: keyof typeof TagAction;\n /* Called when action is set and the tag is clicked on. action must also be set. */\n onClick?: () => void;\n /** Sets the data-testid attribute on the expander button. */\n testId?: string;\n}\n\ntype ActionTagProps = Required<Pick<TagProps, 'children' | 'size' | 'color' | 'variant' | 'action' | 'onClick'>> & Pick<TagProps, 'testId'>;\n\nconst ActionTag: React.FC<ActionTagProps> = props => {\n const { children, size, color, variant, action, onClick, testId } = props;\n\n const { hoverRef, isHovered } = useHover<HTMLButtonElement>();\n\n const tagClasses = cn(\n styles.tag,\n styles[`tag--${size}`],\n styles[`tag--${action}`],\n styles['tag--has-action'],\n action === 'remove' && [styles[`tag--${color}`], styles[`tag--${variant}`]]\n );\n\n const getActionIcon = (): SvgIcon => {\n switch (action) {\n case 'remove':\n return X;\n case 'undo':\n return Undo;\n }\n };\n\n return (\n <button className={tagClasses} onClick={onClick} ref={hoverRef} type=\"button\" data-testid={testId} data-analyticsid={AnalyticsId.Tag}>\n {children}\n <Icon\n svgIcon={getActionIcon()}\n size={IconSize.XXSmall}\n color={palette[`${action === 'undo' ? 'blueberry' : color}800`]}\n isHovered={isHovered}\n />\n </button>\n );\n};\n\nconst Tag: React.FC<TagProps> = props => {\n const { children, size = TagSize.medium, color = 'blueberry', svgIcon, variant = 'normal', action, onClick, testId } = props;\n\n const tagClasses = cn(styles.tag, styles[`tag--${size}`], styles[`tag--${color}`], styles[`tag--${variant}`], {\n [styles['tag--has-icon']]: svgIcon,\n });\n\n if (action && onClick) {\n return (\n <ActionTag size={size} color={color} variant={variant} action={action} onClick={onClick} testId={testId}>\n {children}\n </ActionTag>\n );\n }\n\n return (\n <span className={tagClasses} data-testid={testId} data-analyticsid={AnalyticsId.Tag}>\n {svgIcon && <Icon svgIcon={svgIcon} size={IconSize.XXSmall} color={palette[`${color}800`]} className={styles.tag__icon} />}\n {children}\n </span>\n );\n};\n\nexport default Tag;\n"],"names":["TagSize","TagAction","TagVariant","ActionTag","props","children","size","color","variant","action","onClick","testId","hoverRef","isHovered","useHover","tagClasses","cn","styles","getActionIcon","X","Undo","React","AnalyticsId","Icon","IconSize","palette","Tag","svgIcon","Tag$1"],"mappings":"mbAaY,IAAAA,GAAAA,IACVA,EAAA,OAAS,SACTA,EAAA,MAAQ,QAFEA,IAAAA,GAAA,CAAA,CAAA,EAKAC,GAAAA,IACVA,EAAA,OA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CAACS,EAAO,eAAe,CAAC,EAAGU,CAAA,CAC5B,EAED,OAAIlB,GAAUC,EAEVW,EAAA,cAAClB,GAAU,KAAAG,EAAY,MAAAC,EAAc,QAAAC,EAAkB,OAAAC,EAAgB,QAAAC,EAAkB,OAAAC,GACtFN,CACH,EAKFgB,EAAA,cAAC,OAAK,CAAA,UAAWN,EAAY,cAAaJ,EAAQ,mBAAkBW,EAAY,GAC7E,EAAAK,GAAYN,EAAA,cAAAE,EAAA,CAAK,QAAAI,EAAkB,KAAMH,EAAS,QAAS,MAAOC,EAAQ,GAAGlB,MAAU,EAAG,UAAWU,EAAO,SAAW,CAAA,EACvHZ,CACH,CAEJ,EAEAuB,EAAeF"}
@@ -1,2 +1,2 @@
1
- import t from"react";import a from"./styles.module.scss";import{AnalyticsId as l}from"../../constants.js";const o=({children:e,testId:s})=>t.createElement("ul",{className:a["tag-list"],"data-testid":s,"data-analyticsid":l.TagList},t.Children.map(e,i=>t.createElement("li",{className:a["tag-list__item"]},i)));export{o as default};
1
+ import t from"react";import{AnalyticsId as l}from"../../constants.js";import a from"./styles.module.scss";const m=({children:e,testId:s})=>t.createElement("ul",{className:a["tag-list"],"data-testid":s,"data-analyticsid":l.TagList},t.Children.map(e,i=>t.createElement("li",{className:a["tag-list__item"]},i))),n=m;export{n as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/components/TagList/TagList.tsx"],"sourcesContent":["import React from 'react';\n\nimport styles from './styles.module.scss';\n\nimport { AnalyticsId } from '../../constants';\n\ninterface TagListPropsProps {\n /** Sets the data-testid attribute on the expander button. */\n testId?: string;\n}\n\nconst TagList: React.FC<TagListPropsProps> = ({ children, testId }) => {\n return (\n <ul className={styles['tag-list']} data-testid={testId} data-analyticsid={AnalyticsId.TagList}>\n {React.Children.map(children, child => (\n <li className={styles['tag-list__item']}>{child}</li>\n ))}\n </ul>\n );\n};\n\nexport default TagList;\n"],"names":["TagList","children","testId","React","styles","AnalyticsId","child"],"mappings":"0GAWA,MAAMA,EAAuC,CAAC,CAAE,SAAAC,EAAU,OAAAC,KAErDC,EAAA,cAAA,KAAA,CAAG,UAAWC,EAAO,YAAa,cAAaF,EAAQ,mBAAkBG,EAAY,OAAA,EACnFF,EAAM,SAAS,IAAIF,KACjBE,EAAA,cAAA,KAAA,CAAG,UAAWC,EAAO,iBAAA,EAAoBE,CAAM,CACjD,CACH"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/TagList/TagList.tsx"],"sourcesContent":["import React from 'react';\n\nimport { AnalyticsId } from '../../constants';\n\nimport styles from './styles.module.scss';\n\ninterface TagListPropsProps {\n /** Sets the data-testid attribute on the expander button. */\n testId?: string;\n}\n\nconst TagList: React.FC<TagListPropsProps> = ({ children, testId }) => {\n return (\n <ul className={styles['tag-list']} data-testid={testId} data-analyticsid={AnalyticsId.TagList}>\n {React.Children.map(children, child => (\n <li className={styles['tag-list__item']}>{child}</li>\n ))}\n </ul>\n );\n};\n\nexport default TagList;\n"],"names":["TagList","children","testId","React","styles","AnalyticsId","child","TagList$1"],"mappings":"0GAWA,MAAMA,EAAuC,CAAC,CAAE,SAAAC,EAAU,OAAAC,KAEtDC,EAAA,cAAC,KAAG,CAAA,UAAWC,EAAO,UAAU,EAAG,cAAaF,EAAQ,mBAAkBG,EAAY,OACnF,EAAAF,EAAM,SAAS,IAAIF,EAClBK,GAAAH,EAAA,cAAC,KAAG,CAAA,UAAWC,EAAO,gBAAgB,CAAA,EAAIE,CAAM,CACjD,CACH,EAIJC,EAAeP"}
@@ -1 +1 @@
1
- {"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/Textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAI3D,OAAO,EAA2C,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAKpF,UAAU,aACR,SAAQ,IAAI,CACV,KAAK,CAAC,mBAAmB,CAAC,mBAAmB,CAAC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,CAAC,EAC9C,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,cAAc,GAAG,aAAa,GAAG,UAAU,GAAG,UAAU,GAAG,cAAc,GAAG,UAAU,CAC3H;IACD,uCAAuC;IACvC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2DAA2D;IAC3D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oDAAoD;IACpD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wDAAwD;IACxD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,kDAAkD;IAClD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,0CAA0C;IAC1C,IAAI,CAAC,EAAE,MAAM,OAAO,QAAQ,CAAC;IAC7B,yBAAyB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yBAAyB;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,+BAA+B;IAC/B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kCAAkC;IAClC,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,kCAAkC;IAClC,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACtC;AAUD,QAAA,MAAM,QAAQ,2FAkJZ,CAAC;AAEH,eAAe,QAAQ,CAAC"}
@@ -1 +1 @@
1
- {"props":{"maxCharacters":{"defaultValue":null,"description":"max character limit in textarea","name":"maxCharacters","parent":{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"},"declarations":[{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"}],"required":false,"type":{"name":"number"}},"maxText":{"defaultValue":null,"description":"The text is displayed in the end of the text-counter","name":"maxText","parent":{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"},"declarations":[{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"}],"required":false,"type":{"name":"string"}},"width":{"defaultValue":null,"description":"Width of textarea in characters (approximate)","name":"width","parent":{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"},"declarations":[{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"}],"required":false,"type":{"name":"number"}},"testId":{"defaultValue":null,"description":"Sets the data-testid attribute.","name":"testId","parent":{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"},"declarations":[{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"}],"required":false,"type":{"name":"string"}},"marginBottom":{"defaultValue":null,"description":"If true, the component will have a bottom margin.","name":"marginBottom","parent":{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"},"declarations":[{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"}],"required":false,"type":{"name":"boolean"}},"transparent":{"defaultValue":null,"description":"If true, the component will be transparent.","name":"transparent","parent":{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"},"declarations":[{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"}],"required":false,"type":{"name":"boolean"}},"mode":{"defaultValue":null,"description":"Changes the visuals of the textarea","name":"mode","parent":{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"},"declarations":[{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"}],"required":false,"type":{"name":"enum","raw":"\"onwhite\" | \"ongrey\" | \"onblueberry\" | \"ondark\" | \"oninvalid\"","value":[{"value":"\"onwhite\""},{"value":"\"ongrey\""},{"value":"\"onblueberry\""},{"value":"\"ondark\""},{"value":"\"oninvalid\""}]}},"label":{"defaultValue":null,"description":"Label of the input","name":"label","parent":{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"},"declarations":[{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"}],"required":false,"type":{"name":"string"}},"textareaId":{"defaultValue":null,"description":"id of the textarea","name":"textareaId","parent":{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"},"declarations":[{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"}],"required":false,"type":{"name":"string"}},"maxRows":{"defaultValue":null,"description":"max rows","name":"maxRows","parent":{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"},"declarations":[{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"}],"required":false,"type":{"name":"number"}},"minRows":{"defaultValue":null,"description":"min rows","name":"minRows","parent":{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"},"declarations":[{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"}],"required":false,"type":{"name":"number"}},"grow":{"defaultValue":null,"description":"auto-grows until maxRows","name":"grow","parent":{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"},"declarations":[{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"}],"required":false,"type":{"name":"boolean"}},"errorText":{"defaultValue":null,"description":"Error text to show above the component","name":"errorText","parent":{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"},"declarations":[{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"}],"required":false,"type":{"name":"string"}},"afterLabelChildren":{"defaultValue":null,"description":"Component shown after label","name":"afterLabelChildren","parent":{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"},"declarations":[{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"}],"required":false,"type":{"name":"ReactNode"}},"belowLabelChildren":{"defaultValue":null,"description":"Component shown under label","name":"belowLabelChildren","parent":{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"},"declarations":[{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"}],"required":false,"type":{"name":"ReactNode"}},"autoFocus":{"defaultValue":null,"description":"","name":"autoFocus","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"}},"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"}},"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"}},"autoComplete":{"defaultValue":null,"description":"","name":"autoComplete","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"}},"placeholder":{"defaultValue":null,"description":"","name":"placeholder","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"}},"readOnly":{"defaultValue":null,"description":"","name":"readOnly","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"}},"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"}},"defaultValue":{"defaultValue":null,"description":"","name":"defaultValue","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":"string | number | readonly string[]"}},"onChange":{"defaultValue":null,"description":"","name":"onChange","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":"ChangeEventHandler<HTMLTextAreaElement>"}}}}
1
+ {"props":{"maxCharacters":{"defaultValue":null,"description":"max character limit in textarea","name":"maxCharacters","parent":{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"},"declarations":[{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"}],"required":false,"type":{"name":"number"}},"maxText":{"defaultValue":null,"description":"The text is displayed in the end of the text-counter","name":"maxText","parent":{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"},"declarations":[{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"}],"required":false,"type":{"name":"string"}},"width":{"defaultValue":null,"description":"Width of textarea in characters (approximate)","name":"width","parent":{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"},"declarations":[{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"}],"required":false,"type":{"name":"number"}},"testId":{"defaultValue":null,"description":"Sets the data-testid attribute.","name":"testId","parent":{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"},"declarations":[{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"}],"required":false,"type":{"name":"string"}},"marginBottom":{"defaultValue":null,"description":"If true, the component will have a bottom margin.","name":"marginBottom","parent":{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"},"declarations":[{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"}],"required":false,"type":{"name":"boolean"}},"transparent":{"defaultValue":null,"description":"If true, the component will be transparent.","name":"transparent","parent":{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"},"declarations":[{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"}],"required":false,"type":{"name":"boolean"}},"mode":{"defaultValue":null,"description":"Changes the visuals of the textarea","name":"mode","parent":{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"},"declarations":[{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"}],"required":false,"type":{"name":"enum","raw":"\"onwhite\" | \"ongrey\" | \"onblueberry\" | \"ondark\" | \"oninvalid\"","value":[{"value":"\"onwhite\""},{"value":"\"ongrey\""},{"value":"\"onblueberry\""},{"value":"\"ondark\""},{"value":"\"oninvalid\""}]}},"label":{"defaultValue":null,"description":"Label of the input","name":"label","parent":{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"},"declarations":[{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"}],"required":false,"type":{"name":"string"}},"textareaId":{"defaultValue":null,"description":"id of the textarea","name":"textareaId","parent":{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"},"declarations":[{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"}],"required":false,"type":{"name":"string"}},"maxRows":{"defaultValue":null,"description":"max rows","name":"maxRows","parent":{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"},"declarations":[{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"}],"required":false,"type":{"name":"number"}},"minRows":{"defaultValue":null,"description":"min rows","name":"minRows","parent":{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"},"declarations":[{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"}],"required":false,"type":{"name":"number"}},"grow":{"defaultValue":null,"description":"auto-grows until maxRows","name":"grow","parent":{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"},"declarations":[{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"}],"required":false,"type":{"name":"boolean"}},"errorText":{"defaultValue":null,"description":"Error text to show above the component","name":"errorText","parent":{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"},"declarations":[{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"}],"required":false,"type":{"name":"string"}},"afterLabelChildren":{"defaultValue":null,"description":"Component shown after label","name":"afterLabelChildren","parent":{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"},"declarations":[{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"}],"required":false,"type":{"name":"ReactNode"}},"belowLabelChildren":{"defaultValue":null,"description":"Component shown under label","name":"belowLabelChildren","parent":{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"},"declarations":[{"fileName":"src/components/Textarea/Textarea.tsx","name":"TextareaProps"}],"required":false,"type":{"name":"ReactNode"}},"autoFocus":{"defaultValue":null,"description":"","name":"autoFocus","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"}},"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"}},"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"}},"autoComplete":{"defaultValue":null,"description":"","name":"autoComplete","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"}},"placeholder":{"defaultValue":null,"description":"","name":"placeholder","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"}},"readOnly":{"defaultValue":null,"description":"","name":"readOnly","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"}},"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"}},"defaultValue":{"defaultValue":null,"description":"","name":"defaultValue","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":"string | number | readonly string[]"}},"onChange":{"defaultValue":null,"description":"","name":"onChange","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":"ChangeEventHandler<HTMLTextAreaElement>"}}}}
@@ -1,2 +1,2 @@
1
- import"../../Textarea.js";import{T as u}from"../../Textarea.js";import"react";import"classnames";import"./styles.module.scss";import"../../constants.js";import"../../uuid.js";import"../../utils/environment.js";import"../../ErrorWrapper.js";import"../ErrorWrapper/styles.module.scss";import"../../MaxCharacters.js";import"../MaxCharacters/styles.module.scss";export{u as default};
1
+ import{T as t}from"../../Textarea.js";import"react";import"classnames";import"../../constants.js";import"../../uuid.js";import"../../utils/environment.js";import"../../ErrorWrapper.js";import"../ErrorWrapper/styles.module.scss";import"../../MaxCharacters.js";import"../MaxCharacters/styles.module.scss";import"./styles.module.scss";export{t as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { HTMLAnchorProps } from '../../constants';
3
2
  import { TitleTags } from './../Title/Title';
4
- export declare type TileTags = 'button' | 'a';
3
+ import { HTMLAnchorProps } from '../../constants';
4
+ export type TileTags = 'button' | 'a';
5
5
  interface TileProps extends HTMLAnchorProps {
6
6
  /** Adds custom classes to the element. */
7
7
  className?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["../../../src/components/Tile/Tile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAe,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAM7C,oBAAY,QAAQ,GAAG,QAAQ,GAAG,GAAG,CAAC;AAEtC,UAAU,SAAU,SAAQ,eAAe;IACzC,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qDAAqD;IACrD,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC;IACzB,sDAAsD;IACtD,KAAK,EAAE,KAAK,CAAC,YAAY,CAAC;IAC1B,iDAAiD;IACjD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,4DAA4D;IAC5D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mDAAmD;IACnD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,0CAA0C;IAC1C,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;IAClE,uCAAuC;IACvC,UAAU,CAAC,EAAE,QAAQ,CAAC;IACtB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,cAAc;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,WAAW,CAAC,EAAE,O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B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,YAAa,SAAQ,KAAK,CAAC,yBAAyB,CAAC,SAAS,GAAG,KAAK,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC;IACvH,KAAK,EAAE,KAAK,CAAC,yBAAyB,CAAC,cAAc,GAAG,KAAK,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC,CAAC;CAClG;AAqBD,eAAO,MAAM,IAAI,cAuDC,CAAC;AAInB,eAAe,IAAI,CAAC"}
@@ -1,2 +1,2 @@
1
- import e from"react";import f from"classnames";import{AnalyticsId as T,IconSize as w}from"../../constants.js";import"../Icons/Icon.js";import t from"./styles.module.scss";import{useHover as C}from"../../hooks/useHover.js";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../utils/environment.js";const k=e.forwardRef((l,a)=>{const{children:o,className:s,htmlMarkup:n="span",highlighted:r,compact:c}=l,i=f(t.tile__title,{[t["tile__title--highlighted"]]:r,[t["tile__title--compact"]]:c},s),m=n;return e.createElement(m,{className:i,ref:a},o)}),v=e.forwardRef((l,a)=>{const{icon:o,title:s,className:n="",description:r,fixed:c=!1,highlighted:i=!1,testId:m,htmlMarkup:p="a",...E}=l,{hoverRef:h,isHovered:_}=C(a),d=!r,b=f(t.tile,{[t["tile--fixed"]]:c,[t["tile--compact"]]:d,[t["tile--highlighted"]]:i,[t["tile--button"]]:p==="button"},n),N=f(t["title-wrapper"],{[t["title-wrapper--compact"]]:d}),u=()=>e.createElement(e.Fragment,null,e.createElement("div",{className:N},e.cloneElement(o,{size:w.Medium,isHovered:_,color:i?"white":"black"}),e.cloneElement(s,{highlighted:i,compact:d})),r?e.createElement("p",{className:t.tile__description},r):null),g={className:b,["data-testid"]:m,["data-analyticsid"]:T.Tile,...E};return e.createElement(e.Fragment,null,p==="a"&&e.createElement("a",{ref:h,rel:l.target==="_blank"?"noopener noreferrer":l.rel,...g},u()),p==="button"&&e.createElement("button",{ref:h,type:"button",...g},u()))});v.Title=k;export{v as Tile,v as default};
1
+ import e from"react";import f from"classnames";import{AnalyticsId as w,IconSize as C}from"../../constants.js";import{useHover as k}from"../../hooks/useHover.js";import"../Icons/Icon.js";import t from"./styles.module.scss";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../utils/environment.js";const v=e.forwardRef((l,a)=>{const{children:o,className:s,htmlMarkup:n="span",highlighted:i,compact:c}=l,r=f(t.tile__title,{[t["tile__title--highlighted"]]:i,[t["tile__title--compact"]]:c},s),m=n;return e.createElement(m,{className:r,ref:a},o)}),E=e.forwardRef((l,a)=>{const{icon:o,title:s,className:n="",description:i,fixed:c=!1,highlighted:r=!1,testId:m,htmlMarkup:p="a",..._}=l,{hoverRef:h,isHovered:b}=k(a),d=!i,N=f(t.tile,{[t["tile--fixed"]]:c,[t["tile--compact"]]:d,[t["tile--highlighted"]]:r,[t["tile--button"]]:p==="button"},n),T=f(t["title-wrapper"],{[t["title-wrapper--compact"]]:d}),u=()=>e.createElement(e.Fragment,null,e.createElement("div",{className:T},e.cloneElement(o,{size:C.Medium,isHovered:b,color:r?"white":"black"}),e.cloneElement(s,{highlighted:r,compact:d})),i?e.createElement("p",{className:t.tile__description},i):null),g={className:N,["data-testid"]:m,["data-analyticsid"]:w.Tile,..._};return e.createElement(e.Fragment,null,p==="a"&&e.createElement("a",{ref:h,rel:l.target==="_blank"?"noopener noreferrer":l.rel,...g},u()),p==="button"&&e.createElement("button",{ref:h,type:"button",...g},u()))});E.Title=v;const S=E;export{E as Tile,S as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/components/Tile/Tile.tsx"],"sourcesContent":["import React from 'react';\nimport classNames from 'classnames';\n\nimport { AnalyticsId, HTMLAnchorProps } from '../../constants';\nimport { TitleTags } from './../Title/Title';\nimport { IconSize } from '../Icons';\n\nimport tileStyles from './styles.module.scss';\nimport { useHover } from '../../hooks/useHover';\n\nexport type TileTags = 'button' | 'a';\n\ninterface TileProps extends HTMLAnchorProps {\n /** Adds custom classes to the element. */\n className?: string;\n /**\tSets the icon to be displayed inside the tile. */\n icon: React.ReactElement;\n /**\tSets the title to be displayed inside the tile. */\n title: React.ReactElement;\n /** Toggles the highlighted style of the tile. */\n highlighted?: boolean;\n /** Sets the description to be displayed inside the tile. */\n description?: string;\n /** Sets a fixed max and min width for the tile. */\n fixed?: boolean;\n /** Called when the tile is clicked on. */\n onClick?: (e?: React.MouseEvent<HTMLElement, MouseEvent>) => void;\n /** HTML markup for tile. Default: a */\n htmlMarkup?: TileTags;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\ninterface TileTitleProps {\n children: React.ReactNode;\n className?: string;\n htmlMarkup?: TitleTags;\n highlighted?: boolean;\n compact?: boolean;\n}\n\nexport interface TileCompound extends React.ForwardRefExoticComponent<TileProps & React.RefAttributes<HTMLAnchorElement>> {\n Title: React.ForwardRefExoticComponent<TileTitleProps & React.RefAttributes<HTMLHeadingElement>>;\n}\n\nconst Title = React.forwardRef<HTMLHeadingElement, TileTitleProps>((props, ref) => {\n const { children, className, htmlMarkup = 'span', highlighted, compact } = props;\n const titleClasses = classNames(\n tileStyles['tile__title'],\n {\n [tileStyles['tile__title--highlighted']]: highlighted,\n [tileStyles['tile__title--compact']]: compact,\n },\n className\n );\n const CustomTag = htmlMarkup;\n\n return (\n <CustomTag className={titleClasses} ref={ref}>\n {children}\n </CustomTag>\n );\n});\n\nexport const Tile = React.forwardRef<HTMLAnchorElement | HTMLButtonElement, TileProps>((props, ref) => {\n const { icon, title, className = '', description, fixed = false, highlighted = false, testId, htmlMarkup = 'a', ...restProps } = props;\n const { hoverRef, isHovered } = useHover<HTMLButtonElement | HTMLAnchorElement>(\n ref as React.RefObject<HTMLButtonElement | HTMLAnchorElement>\n );\n const compact = !description;\n const tileClasses = classNames(\n tileStyles.tile,\n {\n [tileStyles['tile--fixed']]: fixed,\n [tileStyles['tile--compact']]: compact,\n [tileStyles['tile--highlighted']]: highlighted,\n [tileStyles['tile--button']]: htmlMarkup === 'button',\n },\n className\n );\n const tileTitleWrapperClasses = classNames(tileStyles['title-wrapper'], {\n [tileStyles['title-wrapper--compact']]: compact,\n });\n\n const renderContent = () => (\n <>\n <div className={tileTitleWrapperClasses}>\n {React.cloneElement(icon, { size: IconSize.Medium, isHovered, color: highlighted ? 'white' : 'black' })}\n {React.cloneElement(title, { highlighted: highlighted, compact: compact })}\n </div>\n {description ? <p className={tileStyles.tile__description}>{description}</p> : null}\n </>\n );\n\n const commonProps = {\n className: tileClasses,\n ['data-testid']: testId,\n ['data-analyticsid']: AnalyticsId.Tile,\n ...restProps,\n };\n\n return (\n <>\n {htmlMarkup === 'a' && (\n <a\n ref={hoverRef as React.RefObject<HTMLAnchorElement>}\n rel={props.target === '_blank' ? 'noopener noreferrer' : props.rel}\n {...commonProps}\n >\n {renderContent()}\n </a>\n )}\n {htmlMarkup === 'button' && (\n <button ref={hoverRef as React.RefObject<HTMLButtonElement>} type=\"button\" {...commonProps}>\n {renderContent()}\n </button>\n )}\n </>\n );\n}) as TileCompound;\n\nTile.Title = Title;\n\nexport default Tile;\n"],"names":["Title","React","props","ref","children","className","htmlMarkup","highlighted","compact","titleClasses","classNames","tileStyles","CustomTag","Tile","icon","title","description","fixed","testId","restProps","hoverRef","isHovered","useHover","tileClasses","tileTitleWrapperClasses","renderContent","IconSize","commonProps","AnalyticsId"],"mappings":"sTA6CA,MAAMA,EAAQC,EAAM,WAA+C,CAACC,EAAOC,IAAQ,CACjF,KAAM,CAAE,SAAAC,EAAU,UAAAC,EAAW,WAAAC,EAAa,OAAQ,YAAAC,EAAa,QAAAC,CAAY,EAAAN,EACrEO,EAAeC,EACnBC,EAAW,YACX,CACE,CAACA,EAAW,6BAA8BJ,EAC1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,SAAW,SAAW,sBAAwBA,EAAM,IAC9D,GAAGyB,CAAA,EAEHF,EACH,CAAA,EAEDnB,IAAe,UACbL,EAAA,cAAA,SAAA,CAAO,IAAKmB,EAAgD,KAAK,SAAU,GAAGO,CAAA,EAC5EF,EACH,CAAA,CAEJ,CAEJ,CAAC,EAEDZ,EAAK,MAAQb"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/Tile/Tile.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { TitleTags } from './../Title/Title';\nimport { AnalyticsId, HTMLAnchorProps } from '../../constants';\nimport { useHover } from '../../hooks/useHover';\nimport { IconSize } from '../Icons';\n\nimport tileStyles from './styles.module.scss';\n\nexport type TileTags = 'button' | 'a';\n\ninterface TileProps extends HTMLAnchorProps {\n /** Adds custom classes to the element. */\n className?: string;\n /**\tSets the icon to be displayed inside the tile. */\n icon: React.ReactElement;\n /**\tSets the title to be displayed inside the tile. */\n title: React.ReactElement;\n /** Toggles the highlighted style of the tile. */\n highlighted?: boolean;\n /** Sets the description to be displayed inside the tile. */\n description?: string;\n /** Sets a fixed max and min width for the tile. */\n fixed?: boolean;\n /** Called when the tile is clicked on. */\n onClick?: (e?: React.MouseEvent<HTMLElement, MouseEvent>) => void;\n /** HTML markup for tile. Default: a */\n htmlMarkup?: TileTags;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\ninterface TileTitleProps {\n children: React.ReactNode;\n className?: string;\n htmlMarkup?: TitleTags;\n highlighted?: boolean;\n compact?: boolean;\n}\n\nexport interface TileCompound extends React.ForwardRefExoticComponent<TileProps & React.RefAttributes<HTMLAnchorElement>> {\n Title: React.ForwardRefExoticComponent<TileTitleProps & React.RefAttributes<HTMLHeadingElement>>;\n}\n\nconst Title = React.forwardRef<HTMLHeadingElement, TileTitleProps>((props, ref) => {\n const { children, className, htmlMarkup = 'span', highlighted, compact } = props;\n const titleClasses = classNames(\n tileStyles['tile__title'],\n {\n [tileStyles['tile__title--highlighted']]: highlighted,\n [tileStyles['tile__title--compact']]: compact,\n },\n className\n );\n const CustomTag = htmlMarkup;\n\n return (\n <CustomTag className={titleClasses} ref={ref}>\n {children}\n </CustomTag>\n );\n});\n\nexport const Tile = React.forwardRef<HTMLAnchorElement | HTMLButtonElement, TileProps>((props, ref) => {\n const { icon, title, className = '', description, fixed = false, highlighted = false, testId, htmlMarkup = 'a', ...restProps } = props;\n const { hoverRef, isHovered } = useHover<HTMLButtonElement | HTMLAnchorElement>(\n ref as React.RefObject<HTMLButtonElement | HTMLAnchorElement>\n );\n const compact = !description;\n const tileClasses = classNames(\n tileStyles.tile,\n {\n [tileStyles['tile--fixed']]: fixed,\n [tileStyles['tile--compact']]: compact,\n [tileStyles['tile--highlighted']]: highlighted,\n [tileStyles['tile--button']]: htmlMarkup === 'button',\n },\n className\n );\n const tileTitleWrapperClasses = classNames(tileStyles['title-wrapper'], {\n [tileStyles['title-wrapper--compact']]: compact,\n });\n\n const renderContent = () => (\n <>\n <div className={tileTitleWrapperClasses}>\n {React.cloneElement(icon, { size: IconSize.Medium, isHovered, color: highlighted ? 'white' : 'black' })}\n {React.cloneElement(title, { highlighted: highlighted, compact: compact })}\n </div>\n {description ? <p className={tileStyles.tile__description}>{description}</p> : null}\n </>\n );\n\n const commonProps = {\n className: tileClasses,\n ['data-testid']: testId,\n ['data-analyticsid']: AnalyticsId.Tile,\n ...restProps,\n };\n\n return (\n <>\n {htmlMarkup === 'a' && (\n <a\n ref={hoverRef as React.RefObject<HTMLAnchorElement>}\n rel={props.target === '_blank' ? 'noopener noreferrer' : props.rel}\n {...commonProps}\n >\n {renderContent()}\n </a>\n )}\n {htmlMarkup === 'button' && (\n <button ref={hoverRef as React.RefObject<HTMLButtonElement>} type=\"button\" {...commonProps}>\n {renderContent()}\n </button>\n )}\n </>\n );\n}) as TileCompound;\n\nTile.Title = Title;\n\nexport default Tile;\n"],"names":["Title","React","props","ref","children","className","htmlMarkup","highlighted","compact","titleClasses","classNames","tileStyles","CustomTag","Tile","icon","title","description","fixed","testId","restProps","hoverRef","isHovered","useHover","tileClasses","tileTitleWrapperClasses","renderContent","IconSize","commonProps","AnalyticsId","Tile$1"],"mappings":"sTA8CA,MAAMA,EAAQC,EAAM,WAA+C,CAACC,EAAOC,IAAQ,CACjF,KAAM,CAAE,SAAAC,EAAU,UAAAC,EAAW,WAAAC,EAAa,OAAQ,YAAAC,EAAa,QAAAC,CAAY,EAAAN,EACrEO,EAAeC,EACnBC,EAAW,YACX,CACE,CAACA,EAAW,0BAA0B,CAAC,EAAGJ,EAC1C,CAACI,EAAW,sBAAsB,CAAC,EAAGH,CACxC,EACAH,CAAA,EAEIO,EAAYN,EAElB,OACGL,EAAA,cAAAW,EAAA,CAAU,UAAWH,EAAc,IAAAN,GACjCC,CACH,CAEJ,CAAC,EAEYS,EAAOZ,EAAM,WAA6D,CAACC,EAAOC,IAAQ,CACrG,KAAM,CAAE,KAAAW,EAAM,MAAAC,EAAO,UAAAV,EAAY,GAAI,YAAAW,EAAa,MAAAC,EAAQ,GAAO,YAAAV,EAAc,GAAO,OAAAW,EAAQ,WAAAZ,EAAa,IAAK,GAAGa,CAAc,EAAAjB,EAC3H,CAAE,SAAAkB,EAAU,UAAAC,CAAA,EAAcC,EAC9BnB,CAAA,EAEIK,EAAU,CAACQ,EACXO,EAAcb,EAClBC,EAAW,KACX,CACE,CAACA,EAAW,aAAa,CAAC,EAAGM,EAC7B,CAACN,EAAW,eAAe,CAAC,EAAGH,EAC/B,CAACG,EAAW,mBAAmB,CAAC,EAAGJ,EACnC,CAACI,EAAW,cAAc,CAAC,EAAGL,IAAe,QAC/C,EACAD,CAAA,EAEImB,EAA0Bd,EAAWC,EAAW,eAAe,EAAG,CACtE,CAACA,EAAW,wBAAwB,CAAC,EAAGH,CAAA,CACzC,EAEKiB,EAAgB,IACpBxB,EAAA,cAAAA,EAAA,SAAA,KACGA,EAAA,cAAA,MAAA,CAAI,UAAWuB,CACb,EAAAvB,EAAM,aAAaa,EAAM,CAAE,KAAMY,EAAS,OAAQ,UAAAL,EAAW,MAAOd,EAAc,QAAU,QAAS,EACrGN,EAAM,aAAac,EAAO,CAAE,YAAAR,EAA0B,QAAAC,EAAkB,CAC3E,EACCQ,kBAAe,IAAE,CAAA,UAAWL,EAAW,mBAAoBK,CAAY,EAAO,IACjF,EAGIW,EAAc,CAClB,UAAWJ,EACX,CAAC,aAAa,EAAGL,EACjB,CAAC,kBAAkB,EAAGU,EAAY,KAClC,GAAGT,CAAA,EAIH,OAAAlB,EAAA,cAAAA,EAAA,SAAA,KACGK,IAAe,KACdL,EAAA,cAAC,IAAA,CACC,IAAKmB,EACL,IAAKlB,EAAM,SAAW,SAAW,sBAAwBA,EAAM,IAC9D,GAAGyB,CAAA,EAEHF,EAAc,CAAA,EAGlBnB,IAAe,UACdL,EAAA,cAAC,SAAO,CAAA,IAAKmB,EAAgD,KAAK,SAAU,GAAGO,CAC5E,EAAAF,EAAA,CACH,CAEJ,CAEJ,CAAC,EAEDZ,EAAK,MAAQb,EAEb,MAAA6B,EAAehB"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- export declare type TitleTags = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'span';
3
- export declare type TitleAppearances = 'titleFeature' | 'title1' | 'title2' | 'title3' | 'title4' | 'title5';
2
+ export type TitleTags = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'span';
3
+ export type TitleAppearances = 'titleFeature' | 'title1' | 'title2' | 'title3' | 'title4' | 'title5';
4
4
  export interface TitleProps {
5
5
  children: React.ReactNode;
6
6
  /** Gives a unique id to the title */
@@ -1 +1 @@
1
- {"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../src/components/Title/Title.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,oBAAY,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAClE,oBAAY,gBAAg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AM,GAAG,WAAW,CAAC;IAC9B,mDAAmD;IACnD,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,2CAA2C;IAC3C,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,KAAK,uFAyBhB,CAAC;AAEH,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,qBAAqB,WAAY,GAAG,0BAEhD,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -1,2 +1,2 @@
1
- import"../../Title.js";import{T,T as s,i as f}from"../../Title.js";import"react";import"classnames";import"./styles.module.scss";import"../../constants.js";export{T as Title,s as default,f as instanceOfTitleMargin};
1
+ import{T as i}from"../../Title.js";import{a as s,i as f}from"../../Title.js";import"react";import"classnames";import"../../constants.js";import"./styles.module.scss";export{s as Title,i as default,f as instanceOfTitleMargin};
2
2
  //# sourceMappingURL=index.js.map
@@ -8,7 +8,7 @@ export interface TooltipProps {
8
8
  testId?: string;
9
9
  }
10
10
  export declare const Tooltip: React.FC<TooltipProps>;
11
- export declare type TooltipContext = {
11
+ export type TooltipContext = {
12
12
  currentTooltip?: string;
13
13
  setCurrentTooltip?: (id?: string) => void;
14
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAUvE,MAAM,WAAW,YAAY;IAC3B,8CAA8C;IAC9C,QAAQ,EAAE,MAAM,CAAC;IACjB,uCAAuC;IACvC,WAAW,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,sBAAsB;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAgF1C,CAAC;AAEF,oBAAY,cAAc,GAAG;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C,CAAC;AAMF,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAIvC,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AASvE,MAAM,WAAW,YAAY;IAC3B,8CAA8C;IAC9C,QAAQ,EAAE,MAAM,CAAC;IACjB,uCAAuC;IACvC,WAAW,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,sBAAsB;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAgF1C,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C,CAAC;AAMF,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAIvC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,2 +1,2 @@
1
- import"../../../TooltipWord.js";import{T as f}from"../../../TooltipWord.js";import"react";import"../../../constants.js";import"./styles.module.scss";export{f as default};
1
+ import{T as r}from"../../../TooltipWord.js";import"react";import"../../../constants.js";import"./styles.module.scss";export{r as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"props":{"children":{"defaultValue":null,"description":"Ordet som skal ha en tilhørende tooltip","name":"children","parent":{"fileName":"src/components/Tooltip/Tooltip.tsx","name":"TooltipProps"},"declarations":[{"fileName":"src/components/Tooltip/Tooltip.tsx","name":"TooltipProps"},{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"TypeLiteral"}],"required":false,"type":{"name":"string & ReactNode"}},"description":{"defaultValue":null,"description":"Teksten som skal vises i tooltip","name":"description","parent":{"fileName":"src/components/Tooltip/Tooltip.tsx","name":"TooltipProps"},"declarations":[{"fileName":"src/components/Tooltip/Tooltip.tsx","name":"TooltipProps"}],"required":true,"type":{"name":"ReactNode"}},"testId":{"defaultValue":null,"description":"Valgfri test-id","name":"testId","parent":{"fileName":"src/components/Tooltip/Tooltip.tsx","name":"TooltipProps"},"declarations":[{"fileName":"src/components/Tooltip/Tooltip.tsx","name":"TooltipProps"}],"required":false,"type":{"name":"string"}}}}
1
+ {"props":{"children":{"defaultValue":null,"description":"Ordet som skal ha en tilhørende tooltip","name":"children","parent":{"fileName":"src/components/Tooltip/Tooltip.tsx","name":"TooltipProps"},"declarations":[{"fileName":"src/components/Tooltip/Tooltip.tsx","name":"TooltipProps"},{"fileName":"s/node_modules/@types/react/index.d.ts","name":"TypeLiteral"}],"required":false,"type":{"name":"string & ReactNode"}},"description":{"defaultValue":null,"description":"Teksten som skal vises i tooltip","name":"description","parent":{"fileName":"src/components/Tooltip/Tooltip.tsx","name":"TooltipProps"},"declarations":[{"fileName":"src/components/Tooltip/Tooltip.tsx","name":"TooltipProps"}],"required":true,"type":{"name":"ReactNode"}},"testId":{"defaultValue":null,"description":"Valgfri test-id","name":"testId","parent":{"fileName":"src/components/Tooltip/Tooltip.tsx","name":"TooltipProps"},"declarations":[{"fileName":"src/components/Tooltip/Tooltip.tsx","name":"TooltipProps"}],"required":false,"type":{"name":"string"}}}}
@@ -1,2 +1,2 @@
1
- import"../../Tooltip.js";import{T as H,a as I,T as J}from"../../Tooltip.js";import"react";import"../../hooks/useDelayedState.js";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../utils/environment.js";import"../../HelpBubble.js";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"../../AnchorLink.js";import"../Icons/Icon.js";import"../Icons/ArrowUpRight.js";import"../../theme/currys/color.js";import"../../theme/index.js";import"../../theme/palette.js";import"../../theme/spacers.js";import"../../theme/grid.js";import"../../hooks/useHover.js";import"../AnchorLink/styles.module.scss";import"../../Close.js";import"../Icons/X.js";import"../Close/styles.module.scss";import"../../hooks/useBreakpoint.js";import"../HelpBubble/styles.module.scss";import"../../TooltipWord.js";import"./TooltipWord/styles.module.scss";export{H as Tooltip,I as TooltipOpenProvider,J as default};
1
+ import{T as p}from"../../Tooltip.js";import{a as J,b as K}from"../../Tooltip.js";import"react";import"../../TooltipWord.js";import"../../constants.js";import"./TooltipWord/styles.module.scss";import"../../hooks/useDelayedState.js";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../utils/environment.js";import"../../HelpBubble.js";import"classnames";import"../../hooks/useIsVisible.js";import"../../hooks/useIntersectionObserver.js";import"../../AnchorLink.js";import"../../hooks/useHover.js";import"../../theme/currys/color.js";import"../../theme/index.js";import"../../theme/grid.js";import"../../theme/palette.js";import"../../theme/spacers.js";import"../Icons/Icon.js";import"../Icons/ArrowUpRight.js";import"../AnchorLink/styles.module.scss";import"../../Close.js";import"../../hooks/useBreakpoint.js";import"../Icons/X.js";import"../Close/styles.module.scss";import"../../PopOver.js";import"../../hooks/useInterval.js";import"../../hooks/useLayoutEvent.js";import"../../utils/debounce.js";import"../../hooks/useSize.js";import"../../utils/refs.js";import"../PopOver/styles.module.scss";import"../HelpBubble/styles.module.scss";export{J as Tooltip,K as TooltipOpenProvider,p as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TooltipExample.d.ts","sourceRoot":"","sources":["../../../src/components/TooltipExample/TooltipExample.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAgB,EAAE,YAAY,EAAuB,MAAM,YAAY,CAAC;AAGxE,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAe1C,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"TooltipExample.d.ts","sourceRoot":"","sources":["../../../src/components/TooltipExample/TooltipExample.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAgB,EAAE,YAAY,EAAuB,MAAM,YAAY,CAAC;AAExE,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAe1C,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1 +1 @@
1
- {"props":{"children":{"defaultValue":null,"description":"Ordet som skal ha en tilhørende tooltip","name":"children","parent":{"fileName":"designsystem/src/components/Tooltip/Tooltip.tsx","name":"TooltipProps"},"declarations":[{"fileName":"designsystem/src/components/Tooltip/Tooltip.tsx","name":"TooltipProps"},{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"TypeLiteral"}],"required":false,"type":{"name":"string & ReactNode"}},"description":{"defaultValue":null,"description":"Teksten som skal vises i tooltip","name":"description","parent":{"fileName":"designsystem/src/components/Tooltip/Tooltip.tsx","name":"TooltipProps"},"declarations":[{"fileName":"designsystem/src/components/Tooltip/Tooltip.tsx","name":"TooltipProps"}],"required":true,"type":{"name":"ReactNode"}},"testId":{"defaultValue":null,"description":"Valgfri test-id","name":"testId","parent":{"fileName":"designsystem/src/components/Tooltip/Tooltip.tsx","name":"TooltipProps"},"declarations":[{"fileName":"designsystem/src/components/Tooltip/Tooltip.tsx","name":"TooltipProps"}],"required":false,"type":{"name":"string"}}}}
1
+ {"props":{"children":{"defaultValue":null,"description":"Ordet som skal ha en tilhørende tooltip","name":"children","parent":{"fileName":"designsystem/src/components/Tooltip/Tooltip.tsx","name":"TooltipProps"},"declarations":[{"fileName":"designsystem/src/components/Tooltip/Tooltip.tsx","name":"TooltipProps"},{"fileName":"s/node_modules/@types/react/index.d.ts","name":"TypeLiteral"}],"required":false,"type":{"name":"string & ReactNode"}},"description":{"defaultValue":null,"description":"Teksten som skal vises i tooltip","name":"description","parent":{"fileName":"designsystem/src/components/Tooltip/Tooltip.tsx","name":"TooltipProps"},"declarations":[{"fileName":"designsystem/src/components/Tooltip/Tooltip.tsx","name":"TooltipProps"}],"required":true,"type":{"name":"ReactNode"}},"testId":{"defaultValue":null,"description":"Valgfri test-id","name":"testId","parent":{"fileName":"designsystem/src/components/Tooltip/Tooltip.tsx","name":"TooltipProps"},"declarations":[{"fileName":"designsystem/src/components/Tooltip/Tooltip.tsx","name":"TooltipProps"}],"required":false,"type":{"name":"string"}}}}
@@ -1,2 +1,2 @@
1
- import t from"react";import{a as e,T as o}from"../../Tooltip.js";import{longLoremText as m}from"../../utils/loremtext.js";import"../../hooks/useDelayedState.js";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../utils/environment.js";import"../../HelpBubble.js";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"../../AnchorLink.js";import"../Icons/Icon.js";import"../Icons/ArrowUpRight.js";import"../../theme/currys/color.js";import"../../theme/index.js";import"../../theme/palette.js";import"../../theme/spacers.js";import"../../theme/grid.js";import"../../hooks/useHover.js";import"../AnchorLink/styles.module.scss";import"../../Close.js";import"../Icons/X.js";import"../Close/styles.module.scss";import"../../hooks/useBreakpoint.js";import"../HelpBubble/styles.module.scss";import"../../TooltipWord.js";import"../Tooltip/TooltipWord/styles.module.scss";const H=r=>t.createElement(e,null,t.createElement(t.Fragment,null,t.createElement(o,{...r},"Et tooltip her.")," "+m,t.createElement("button",null,"Knapp"),"Dette er ",t.createElement(o,{...r},r.children)," som skal ha n\xE6rmere forklaring.",m,t.createElement(o,{...r},"Enda et tooltip her.")));export{H as default};
1
+ import t from"react";import{longLoremText as m}from"../../utils/loremtext.js";import{b as i,T as r}from"../../Tooltip.js";import"../../TooltipWord.js";import"../../constants.js";import"../Tooltip/TooltipWord/styles.module.scss";import"../../hooks/useDelayedState.js";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../utils/environment.js";import"../../HelpBubble.js";import"classnames";import"../../hooks/useIsVisible.js";import"../../hooks/useIntersectionObserver.js";import"../../AnchorLink.js";import"../../hooks/useHover.js";import"../../theme/currys/color.js";import"../../theme/index.js";import"../../theme/grid.js";import"../../theme/palette.js";import"../../theme/spacers.js";import"../Icons/Icon.js";import"../Icons/ArrowUpRight.js";import"../AnchorLink/styles.module.scss";import"../../Close.js";import"../../hooks/useBreakpoint.js";import"../Icons/X.js";import"../Close/styles.module.scss";import"../../PopOver.js";import"../../hooks/useInterval.js";import"../../hooks/useLayoutEvent.js";import"../../utils/debounce.js";import"../../hooks/useSize.js";import"../../utils/refs.js";import"../PopOver/styles.module.scss";import"../HelpBubble/styles.module.scss";const e=o=>t.createElement(i,null,t.createElement(t.Fragment,null,t.createElement(r,{...o},"Et tooltip her.")," "+m,t.createElement("button",null,"Knapp"),"Dette er ",t.createElement(r,{...o},o.children)," som skal ha nærmere forklaring.",m,t.createElement(r,{...o},"Enda et tooltip her."))),J=e;export{J as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/components/TooltipExample/TooltipExample.tsx"],"sourcesContent":["import React from 'react';\n\nimport Tooltip, { TooltipProps, TooltipOpenProvider } from '../Tooltip';\nimport longLoremText from '../../utils/loremtext';\n\nconst TooltipExample: React.FC<TooltipProps> = props => {\n return (\n <TooltipOpenProvider>\n <>\n <Tooltip {...props}>{'Et tooltip her.'}</Tooltip>\n {' ' + longLoremText}\n <button>{'Knapp'}</button>\n {'Dette er '}\n <Tooltip {...props}>{props.children}</Tooltip>\n {' som skal ha nærmere forklaring.'}\n {longLoremText}\n <Tooltip {...props}>{'Enda et tooltip her.'}</Tooltip>\n </>\n </TooltipOpenProvider>\n );\n};\n\nexport default TooltipExample;\n"],"names":["TooltipExample","props","React","TooltipOpenProvider","Tooltip","longLoremText"],"mappings":"kmCAKA,MAAMA,EAAkDC,GAEpDC,EAAA,cAACC,EACC,KAAAD,EAAA,cAAAA,EAAA,SAAA,KACGA,EAAA,cAAAE,EAAA,CAAS,GAAGH,CAAQ,EAAA,iBAAkB,EACtC,IAAMI,kBACN,SAAQ,KAAA,OAAQ,EAChB,YACAH,EAAA,cAAAE,EAAA,CAAS,GAAGH,CAAA,EAAQA,EAAM,QAAS,EACnC,sCACAI,EACAH,EAAA,cAAAE,EAAA,CAAS,GAAGH,CAAA,EAAQ,sBAAuB,CAC9C,CACF"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/TooltipExample/TooltipExample.tsx"],"sourcesContent":["import React from 'react';\n\nimport longLoremText from '../../utils/loremtext';\nimport Tooltip, { TooltipProps, TooltipOpenProvider } from '../Tooltip';\n\nconst TooltipExample: React.FC<TooltipProps> = props => {\n return (\n <TooltipOpenProvider>\n <>\n <Tooltip {...props}>{'Et tooltip her.'}</Tooltip>\n {' ' + longLoremText}\n <button>{'Knapp'}</button>\n {'Dette er '}\n <Tooltip {...props}>{props.children}</Tooltip>\n {' som skal ha nærmere forklaring.'}\n {longLoremText}\n <Tooltip {...props}>{'Enda et tooltip her.'}</Tooltip>\n </>\n </TooltipOpenProvider>\n );\n};\n\nexport default TooltipExample;\n"],"names":["TooltipExample","props","React","TooltipOpenProvider","Tooltip","longLoremText","TooltipExample$1"],"mappings":"iqCAKA,MAAMA,EAAkDC,GAEnDC,EAAA,cAAAC,EAAA,KAEGD,EAAA,cAAAA,EAAA,SAAA,KAAAA,EAAA,cAACE,EAAS,CAAA,GAAGH,GAAQ,iBAAkB,EACtC,IAAMI,EACPH,EAAA,cAAC,cAAQ,OAAQ,EAChB,YACDA,EAAA,cAACE,EAAS,CAAA,GAAGH,CAAQ,EAAAA,EAAM,QAAS,EACnC,mCACAI,EACDH,EAAA,cAACE,EAAS,CAAA,GAAGH,CAAQ,EAAA,sBAAuB,CAC9C,CACF,EAIJK,EAAeN"}
@@ -1 +1 @@
1
- {"version":3,"file":"Validation.d.ts","sourceRoot":"","sources":["../../../src/components/Validation/Validation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAe,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE3D,UAAU,eAAe;IACvB,oDAAoD;IACpD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yCAAyC;IACzC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,OAAO,CAAC,EAAE,MAAM,OAAO,WAAW,CAAC;IACnC,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,UAAU,qFAmBrB,CAAC;AAEH,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"Validation.d.ts","sourceRoot":"","sources":["../../../src/components/Validation/Validation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAe,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAK3D,UAAU,eAAe;IACvB,oDAAoD;IACpD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yCAAyC;IACzC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,OAAO,CAAC,EAAE,MAAM,OAAO,WAAW,CAAC;IACnC,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,UAAU,qFAmBrB,CAAC;AAEH,eAAe,UAAU,CAAC"}
@@ -1,2 +1,2 @@
1
- import"../../Validation.js";import{V as M,V as N}from"../../Validation.js";import"react";import"classnames";import"../../FormGroup.js";import"../FormGroup/styles.module.scss";import"../../Checkbox.js";import"../../uuid.js";import"../../utils/environment.js";import"../Icons/Check.js";import"../Icons/Icon.js";import"../../constants.js";import"../../hooks/useUuid.js";import"../../theme/currys/color.js";import"../../theme/index.js";import"../../theme/palette.js";import"../../theme/spacers.js";import"../../theme/grid.js";import"../Checkbox/styles.module.scss";import"../../RadioButton.js";import"../RadioButton/styles.module.scss";import"../../Input.js";import"../../hooks/useBreakpoint.js";import"../../ErrorWrapper.js";import"../ErrorWrapper/styles.module.scss";import"../../MaxCharacters.js";import"../MaxCharacters/styles.module.scss";import"../Input/styles.module.scss";import"../../Title.js";import"../Title/styles.module.scss";import"../../FormLayout.js";import"../FormLayout/styles.module.scss";import"../../Select.js";import"../Select/styles.module.scss";import"../Icons/ChevronDown.js";import"../../utils/component.js";import"./styles.module.scss";export{M as Validation,N as default};
1
+ import{V as t}from"../../Validation.js";import{a as M}from"../../Validation.js";import"react";import"classnames";import"../../constants.js";import"../../FormGroup.js";import"../../utils/component.js";import"../../Checkbox.js";import"../../theme/currys/color.js";import"../../theme/index.js";import"../../theme/grid.js";import"../../theme/palette.js";import"../../theme/spacers.js";import"../../uuid.js";import"../../utils/environment.js";import"../Icons/Icon.js";import"../../hooks/useUuid.js";import"../Icons/Check.js";import"../Checkbox/styles.module.scss";import"../../ErrorWrapper.js";import"../ErrorWrapper/styles.module.scss";import"../../FormLayout.js";import"../FormLayout/styles.module.scss";import"../../Input.js";import"../../hooks/useBreakpoint.js";import"../../MaxCharacters.js";import"../MaxCharacters/styles.module.scss";import"../Input/styles.module.scss";import"../../RadioButton.js";import"../RadioButton/styles.module.scss";import"../../Select.js";import"../Icons/ChevronDown.js";import"../Select/styles.module.scss";import"../../Title.js";import"../Title/styles.module.scss";import"../FormGroup/styles.module.scss";import"./styles.module.scss";export{M as Validation,t as default};
2
2
  //# sourceMappingURL=index.js.map
package/constants.d.ts CHANGED
@@ -25,7 +25,7 @@ export interface HTMLButtonProps {
25
25
  value?: string | string[] | number;
26
26
  id?: string;
27
27
  }
28
- export declare type AnchorTarget = '_self' | '_blank' | '_parent' | '_top';
28
+ export type AnchorTarget = '_self' | '_blank' | '_parent' | '_top';
29
29
  export interface HTMLAnchorProps {
30
30
  download?: string;
31
31
  href?: string;
@@ -36,7 +36,7 @@ export interface HTMLAnchorProps {
36
36
  target?: string;
37
37
  referrerPolicy?: '' | 'same-origin' | 'no-referrer' | 'no-referrer-when-downgrade' | 'origin' | 'origin-when-cross-origin' | 'strict-origin' | 'strict-origin-when-cross-origin' | 'unsafe-url';
38
38
  }
39
- export declare type ButtonVariant = 'secondary' | 'tertiary' | string | undefined | null;
39
+ export type ButtonVariant = 'secondary' | 'tertiary' | string | undefined | null;
40
40
  export declare enum FormMode {
41
41
  onwhite = "onwhite",
42
42
  ongrey = "ongrey",
@@ -60,6 +60,8 @@ export declare enum AnalyticsId {
60
60
  Expander = "expander",
61
61
  ExpanderList = "expander-list",
62
62
  ExpanderListExpander = "expander-list-expander",
63
+ ExpanderHierarchy = "expander-hierarchy",
64
+ ExpanderHierarchyExpander = "expander-hierarchy-expander",
63
65
  FormGroup = "form-group",
64
66
  FormLayout = "form-layout",
65
67
  HelpBubble = "help-bubble",
@@ -75,8 +77,10 @@ export declare enum AnalyticsId {
75
77
  NotificationPanel = "notification-panel",
76
78
  Panel = "panel",
77
79
  PanelList = "panel-list",
80
+ PopMenu = "pop-menu",
81
+ PopOver = "pop-over",
78
82
  Portal = "portal",
79
- Progressbar = "progressbar",
83
+ Stepper = "stepper",
80
84
  RadioButton = "radio-button",
81
85
  Select = "select",
82
86
  Slider = "slider",
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,OAAO,KAAK;IACZ,MAAM,KAAK;IACX,KAAK,KAAK;IACV,MAAM,KAAK;IACX,KAAK,KAAK;IACV,MAAM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