@helsenorge/designsystem-react 2.13.0 → 2.15.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 (310) hide show
  1. package/Avatar.js +1 -1
  2. package/Avatar.js.map +1 -1
  3. package/Button.js +1 -1
  4. package/Button.js.map +1 -1
  5. package/CHANGELOG.md +28 -2
  6. package/ErrorWrapper.js +1 -1
  7. package/ErrorWrapper.js.map +1 -1
  8. package/FormGroup.js +1 -1
  9. package/FormGroup.js.map +1 -1
  10. package/Input.js +1 -1
  11. package/Input.js.map +1 -1
  12. package/ListHeader.js +1 -1
  13. package/ListHeader.js.map +1 -1
  14. package/ListHeaderText.js +1 -1
  15. package/MaxCharacters.js +2 -0
  16. package/MaxCharacters.js.map +1 -0
  17. package/StatusDot.js +1 -1
  18. package/StatusDot.js.map +1 -1
  19. package/Textarea.js +1 -1
  20. package/Textarea.js.map +1 -1
  21. package/components/Avatar/Avatar.d.ts +6 -0
  22. package/components/Avatar/Avatar.d.ts.map +1 -1
  23. package/components/Avatar/componentdata.json +1 -1
  24. package/components/Avatar/index.js +1 -1
  25. package/components/Avatar/styles.module.scss +18 -3
  26. package/components/Avatar/styles.module.scss.d.ts +2 -0
  27. package/components/ErrorWrapper/ErrorWrapper.d.ts +4 -0
  28. package/components/ErrorWrapper/ErrorWrapper.d.ts.map +1 -1
  29. package/components/ErrorWrapper/componentdata.json +1 -1
  30. package/components/ExpanderList/index.js +1 -1
  31. package/components/ExpanderList/index.js.map +1 -1
  32. package/components/FormExample/index.js +3 -3
  33. package/components/FormExample/index.js.map +1 -1
  34. package/components/FormExample/styles.module.scss +17 -11
  35. package/components/FormExample/styles.module.scss.d.ts +4 -3
  36. package/components/FormGroup/FormGroup.d.ts +4 -0
  37. package/components/FormGroup/FormGroup.d.ts.map +1 -1
  38. package/components/FormGroup/componentdata.json +1 -1
  39. package/components/FormGroup/index.js +1 -1
  40. package/components/Icons/AcupunctureBack.js +1 -1
  41. package/components/Icons/AcupunctureBack.js.map +1 -1
  42. package/components/Icons/AdditionalIconInformation.js +4 -0
  43. package/components/Icons/AlarmClock.js +1 -1
  44. package/components/Icons/AlarmClock.js.map +1 -1
  45. package/components/Icons/AlertSignFill.js +1 -1
  46. package/components/Icons/AlertSignFill.js.map +1 -1
  47. package/components/Icons/AlertSignStroke.js +1 -1
  48. package/components/Icons/AlertSignStroke.js.map +1 -1
  49. package/components/Icons/Archive.js +1 -1
  50. package/components/Icons/Archive.js.map +1 -1
  51. package/components/Icons/ArrowDown.js +1 -1
  52. package/components/Icons/ArrowDown.js.map +1 -1
  53. package/components/Icons/ArrowLeft.d.ts.map +1 -1
  54. package/components/Icons/ArrowLeft.js +1 -1
  55. package/components/Icons/ArrowLeft.js.map +1 -1
  56. package/components/Icons/ArrowRight.d.ts.map +1 -1
  57. package/components/Icons/ArrowRight.js +1 -1
  58. package/components/Icons/ArrowRight.js.map +1 -1
  59. package/components/Icons/ArrowUp.js +1 -1
  60. package/components/Icons/ArrowUp.js.map +1 -1
  61. package/components/Icons/ArrowUpRight.js +1 -1
  62. package/components/Icons/ArrowUpRight.js.map +1 -1
  63. package/components/Icons/Attachment.d.ts.map +1 -1
  64. package/components/Icons/Attachment.js +1 -1
  65. package/components/Icons/Attachment.js.map +1 -1
  66. package/components/Icons/Avatar.js +1 -1
  67. package/components/Icons/Avatar.js.map +1 -1
  68. package/components/Icons/Bus.js +1 -1
  69. package/components/Icons/Bus.js.map +1 -1
  70. package/components/Icons/Calendar.js +1 -1
  71. package/components/Icons/Calendar.js.map +1 -1
  72. package/components/Icons/CalendarChange.js +1 -1
  73. package/components/Icons/CalendarChange.js.map +1 -1
  74. package/components/Icons/CalendarCheck.js +1 -1
  75. package/components/Icons/CalendarCheck.js.map +1 -1
  76. package/components/Icons/CalendarSave.js +1 -1
  77. package/components/Icons/CalendarSave.js.map +1 -1
  78. package/components/Icons/Change.js +1 -1
  79. package/components/Icons/Change.js.map +1 -1
  80. package/components/Icons/Check.js +1 -1
  81. package/components/Icons/Check.js.map +1 -1
  82. package/components/Icons/CheckFill.js +1 -1
  83. package/components/Icons/CheckFill.js.map +1 -1
  84. package/components/Icons/ChevronDown.js +1 -1
  85. package/components/Icons/ChevronDown.js.map +1 -1
  86. package/components/Icons/ChevronLeft.js +1 -1
  87. package/components/Icons/ChevronLeft.js.map +1 -1
  88. package/components/Icons/ChevronRight.js +1 -1
  89. package/components/Icons/ChevronRight.js.map +1 -1
  90. package/components/Icons/ChevronUp.js +1 -1
  91. package/components/Icons/ChevronUp.js.map +1 -1
  92. package/components/Icons/ChevronsDown.js +1 -1
  93. package/components/Icons/ChevronsDown.js.map +1 -1
  94. package/components/Icons/ChevronsUp.js +1 -1
  95. package/components/Icons/ChevronsUp.js.map +1 -1
  96. package/components/Icons/Contacts.js +1 -1
  97. package/components/Icons/Contacts.js.map +1 -1
  98. package/components/Icons/Copy.js +1 -1
  99. package/components/Icons/Copy.js.map +1 -1
  100. package/components/Icons/Download.js +1 -1
  101. package/components/Icons/Download.js.map +1 -1
  102. package/components/Icons/EChat.js +1 -1
  103. package/components/Icons/EChat.js.map +1 -1
  104. package/components/Icons/EmoticonAnnoyed.js +1 -1
  105. package/components/Icons/EmoticonAnnoyed.js.map +1 -1
  106. package/components/Icons/EmoticonDelighted.js +1 -1
  107. package/components/Icons/EmoticonDelighted.js.map +1 -1
  108. package/components/Icons/EmoticonDisappointed.js +1 -1
  109. package/components/Icons/EmoticonDisappointed.js.map +1 -1
  110. package/components/Icons/EmoticonHappy.js +1 -1
  111. package/components/Icons/EmoticonHappy.js.map +1 -1
  112. package/components/Icons/EmoticonMeh.js +1 -1
  113. package/components/Icons/EmoticonMeh.js.map +1 -1
  114. package/components/Icons/EnterFullScreen.js +1 -1
  115. package/components/Icons/EnterFullScreen.js.map +1 -1
  116. package/components/Icons/Envelope.js +1 -1
  117. package/components/Icons/Envelope.js.map +1 -1
  118. package/components/Icons/Eraser.js +1 -1
  119. package/components/Icons/Eraser.js.map +1 -1
  120. package/components/Icons/ErrorSignFill.js +1 -1
  121. package/components/Icons/ErrorSignFill.js.map +1 -1
  122. package/components/Icons/ErrorSignStroke.js +1 -1
  123. package/components/Icons/ErrorSignStroke.js.map +1 -1
  124. package/components/Icons/ExitFullScreen.js +1 -1
  125. package/components/Icons/ExitFullScreen.js.map +1 -1
  126. package/components/Icons/Eye.js +1 -1
  127. package/components/Icons/Eye.js.map +1 -1
  128. package/components/Icons/Filter.js +1 -1
  129. package/components/Icons/Filter.js.map +1 -1
  130. package/components/Icons/Form.js +1 -1
  131. package/components/Icons/Form.js.map +1 -1
  132. package/components/Icons/Forward.js +1 -1
  133. package/components/Icons/Forward.js.map +1 -1
  134. package/components/Icons/Gallery.js +1 -1
  135. package/components/Icons/Gallery.js.map +1 -1
  136. package/components/Icons/Globe.js +1 -1
  137. package/components/Icons/Globe.js.map +1 -1
  138. package/components/Icons/Group.js +1 -1
  139. package/components/Icons/Group.js.map +1 -1
  140. package/components/Icons/Heart.js +1 -1
  141. package/components/Icons/Heart.js.map +1 -1
  142. package/components/Icons/HeartHands.d.ts +5 -0
  143. package/components/Icons/HeartHands.d.ts.map +1 -0
  144. package/components/Icons/HeartHands.js +2 -0
  145. package/components/Icons/HeartHands.js.map +1 -0
  146. package/components/Icons/HelpSign.js +1 -1
  147. package/components/Icons/HelpSign.js.map +1 -1
  148. package/components/Icons/History.js +1 -1
  149. package/components/Icons/History.js.map +1 -1
  150. package/components/Icons/Home.js +1 -1
  151. package/components/Icons/Home.js.map +1 -1
  152. package/components/Icons/Hospital.js +1 -1
  153. package/components/Icons/Hospital.js.map +1 -1
  154. package/components/Icons/Hourglass.js +1 -1
  155. package/components/Icons/Hourglass.js.map +1 -1
  156. package/components/Icons/Icon.d.ts +11 -1
  157. package/components/Icons/Icon.d.ts.map +1 -1
  158. package/components/Icons/Icon.js +1 -1
  159. package/components/Icons/Icon.js.map +1 -1
  160. package/components/Icons/InfoSignFill.js +1 -1
  161. package/components/Icons/InfoSignFill.js.map +1 -1
  162. package/components/Icons/InfoSignStroke.js +1 -1
  163. package/components/Icons/InfoSignStroke.js.map +1 -1
  164. package/components/Icons/Journal.js +1 -1
  165. package/components/Icons/Journal.js.map +1 -1
  166. package/components/Icons/List.js +1 -1
  167. package/components/Icons/List.js.map +1 -1
  168. package/components/Icons/Location.js +1 -1
  169. package/components/Icons/Location.js.map +1 -1
  170. package/components/Icons/Lock.js +1 -1
  171. package/components/Icons/Lock.js.map +1 -1
  172. package/components/Icons/Login.d.ts +5 -0
  173. package/components/Icons/Login.d.ts.map +1 -0
  174. package/components/Icons/Login.js +2 -0
  175. package/components/Icons/Login.js.map +1 -0
  176. package/components/Icons/Logout.d.ts +5 -0
  177. package/components/Icons/Logout.d.ts.map +1 -0
  178. package/components/Icons/Logout.js +2 -0
  179. package/components/Icons/Logout.js.map +1 -0
  180. package/components/Icons/Medicine.js +1 -1
  181. package/components/Icons/Medicine.js.map +1 -1
  182. package/components/Icons/Menu.js +1 -1
  183. package/components/Icons/Menu.js.map +1 -1
  184. package/components/Icons/Minus.js +1 -1
  185. package/components/Icons/Minus.js.map +1 -1
  186. package/components/Icons/MobilePhone.js +1 -1
  187. package/components/Icons/MobilePhone.js.map +1 -1
  188. package/components/Icons/NoAccess.js +1 -1
  189. package/components/Icons/NoAccess.js.map +1 -1
  190. package/components/Icons/NoEye.js +1 -1
  191. package/components/Icons/NoEye.js.map +1 -1
  192. package/components/Icons/NoFilter.js +1 -1
  193. package/components/Icons/NoFilter.js.map +1 -1
  194. package/components/Icons/PaperPlane.js +1 -1
  195. package/components/Icons/PaperPlane.js.map +1 -1
  196. package/components/Icons/Pause.js +1 -1
  197. package/components/Icons/Pause.js.map +1 -1
  198. package/components/Icons/Pencil.js +1 -1
  199. package/components/Icons/Pencil.js.map +1 -1
  200. package/components/Icons/PersonCancel.js +1 -1
  201. package/components/Icons/PersonCancel.js.map +1 -1
  202. package/components/Icons/PersonalPlan.js +1 -1
  203. package/components/Icons/PersonalPlan.js.map +1 -1
  204. package/components/Icons/Play.js +1 -1
  205. package/components/Icons/Play.js.map +1 -1
  206. package/components/Icons/PlusLarge.js +1 -1
  207. package/components/Icons/PlusLarge.js.map +1 -1
  208. package/components/Icons/PlusSmall.js +1 -1
  209. package/components/Icons/PlusSmall.js.map +1 -1
  210. package/components/Icons/Printer.js +1 -1
  211. package/components/Icons/Printer.js.map +1 -1
  212. package/components/Icons/QrCode.js +1 -1
  213. package/components/Icons/QrCode.js.map +1 -1
  214. package/components/Icons/Receptionist.js +1 -1
  215. package/components/Icons/Receptionist.js.map +1 -1
  216. package/components/Icons/Referral.js +1 -1
  217. package/components/Icons/Referral.js.map +1 -1
  218. package/components/Icons/Refresh.js +1 -1
  219. package/components/Icons/Refresh.js.map +1 -1
  220. package/components/Icons/Reply.js +1 -1
  221. package/components/Icons/Reply.js.map +1 -1
  222. package/components/Icons/Save.js +1 -1
  223. package/components/Icons/Save.js.map +1 -1
  224. package/components/Icons/Search.js +1 -1
  225. package/components/Icons/Search.js.map +1 -1
  226. package/components/Icons/SectionSign.js +1 -1
  227. package/components/Icons/SectionSign.js.map +1 -1
  228. package/components/Icons/Settings.js +1 -1
  229. package/components/Icons/Settings.js.map +1 -1
  230. package/components/Icons/Share.js +1 -1
  231. package/components/Icons/Share.js.map +1 -1
  232. package/components/Icons/SortDown.js +1 -1
  233. package/components/Icons/SortDown.js.map +1 -1
  234. package/components/Icons/SortUp.js +1 -1
  235. package/components/Icons/SortUp.js.map +1 -1
  236. package/components/Icons/SpeechBubble.js +1 -1
  237. package/components/Icons/SpeechBubble.js.map +1 -1
  238. package/components/Icons/Stopwatch.js +1 -1
  239. package/components/Icons/Stopwatch.js.map +1 -1
  240. package/components/Icons/SupportingPerson.d.ts.map +1 -1
  241. package/components/Icons/SupportingPerson.js +1 -1
  242. package/components/Icons/SupportingPerson.js.map +1 -1
  243. package/components/Icons/Syringe.js +1 -1
  244. package/components/Icons/Syringe.js.map +1 -1
  245. package/components/Icons/TimePassing.js +1 -1
  246. package/components/Icons/TimePassing.js.map +1 -1
  247. package/components/Icons/Toolbox.js +1 -1
  248. package/components/Icons/Toolbox.js.map +1 -1
  249. package/components/Icons/TrashCan.js +1 -1
  250. package/components/Icons/TrashCan.js.map +1 -1
  251. package/components/Icons/TriangleX.d.ts +5 -0
  252. package/components/Icons/TriangleX.d.ts.map +1 -0
  253. package/components/Icons/TriangleX.js +2 -0
  254. package/components/Icons/TriangleX.js.map +1 -0
  255. package/components/Icons/Undo.js +1 -1
  256. package/components/Icons/Undo.js.map +1 -1
  257. package/components/Icons/Upload.js +1 -1
  258. package/components/Icons/Upload.js.map +1 -1
  259. package/components/Icons/Vaccine.js +1 -1
  260. package/components/Icons/Vaccine.js.map +1 -1
  261. package/components/Icons/VerticalDots.js +1 -1
  262. package/components/Icons/VerticalDots.js.map +1 -1
  263. package/components/Icons/VideoCamera.js +1 -1
  264. package/components/Icons/VideoCamera.js.map +1 -1
  265. package/components/Icons/VideoChat.js +1 -1
  266. package/components/Icons/VideoChat.js.map +1 -1
  267. package/components/Icons/Wallet.js +1 -1
  268. package/components/Icons/Wallet.js.map +1 -1
  269. package/components/Icons/Watch.js +1 -1
  270. package/components/Icons/Watch.js.map +1 -1
  271. package/components/Icons/X.js +1 -1
  272. package/components/Icons/X.js.map +1 -1
  273. package/components/Icons/Zoom.js +1 -1
  274. package/components/Icons/Zoom.js.map +1 -1
  275. package/components/Icons/componentdata.json +1 -1
  276. package/components/Input/Input.d.ts +4 -0
  277. package/components/Input/Input.d.ts.map +1 -1
  278. package/components/Input/componentdata.json +1 -1
  279. package/components/Input/index.js +1 -1
  280. package/components/LinkList/LinkList.d.ts.map +1 -1
  281. package/components/LinkList/index.js +1 -1
  282. package/components/LinkList/index.js.map +1 -1
  283. package/components/ListHeader/ListHeader.d.ts +4 -4
  284. package/components/ListHeader/ListHeader.d.ts.map +1 -1
  285. package/components/ListHeader/ListHeaderText/componentdata.json +1 -1
  286. package/components/ListHeader/ListHeaderText/index.js +1 -1
  287. package/components/ListHeader/index.js +1 -1
  288. package/components/ListHeader/styles.module.scss +1 -5
  289. package/components/ListHeader/styles.module.scss.d.ts +0 -2
  290. package/components/MaxCharacters/MaxCharacters.d.ts +17 -0
  291. package/components/MaxCharacters/MaxCharacters.d.ts.map +1 -0
  292. package/components/MaxCharacters/componentdata.json +1 -0
  293. package/components/MaxCharacters/styles.module.scss +26 -0
  294. package/components/MaxCharacters/styles.module.scss.d.ts +11 -0
  295. package/components/Panel/styles.module.scss +0 -1
  296. package/components/StatusDot/StatusDot.d.ts +9 -3
  297. package/components/StatusDot/StatusDot.d.ts.map +1 -1
  298. package/components/StatusDot/componentdata.json +1 -1
  299. package/components/StatusDot/index.js +1 -1
  300. package/components/Textarea/Textarea.d.ts.map +1 -1
  301. package/components/Textarea/index.js +1 -1
  302. package/components/Textarea/styles.module.scss +0 -26
  303. package/components/Textarea/styles.module.scss.d.ts +0 -3
  304. package/components/Validation/index.js +1 -1
  305. package/package.json +1 -1
  306. package/scss/_input.scss +0 -1
  307. package/utils/environment.d.ts +1 -0
  308. package/utils/environment.d.ts.map +1 -1
  309. package/utils/environment.js +1 -1
  310. package/utils/environment.js.map +1 -1
@@ -1,2 +1,2 @@
1
- import l from"react";import{getIcon as c}from"./Icon.js";import"classnames";import"../../constants.js";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../utils/environment.js";const s=({size:a,isHovered:e})=>c(a,e,l.createElement("path",{d:"M21.866 20.005h5.573v1.6h-5.573v5.572h-1.6v-5.572h-5.572v-1.6h5.572v-5.573h1.6v5.573zM37.758 38.11a2.24 2.24 0 0 1-1.606.612 2.23 2.23 0 0 1-1.568-.703l-6.066-6.421a13.263 13.263 0 0 0 1.562-1.25 13.312 13.312 0 0 0 1.65-1.888l6.118 6.476c.85.9.81 2.324-.09 3.174zm-17.02-5.783a11.452 11.452 0 0 1-8.052-3.607 11.45 11.45 0 0 1-3.142-8.243c.178-6.243 5.312-11.2 11.518-11.2.11 0 .222.002.333.005 6.353.18 11.375 5.497 11.194 11.85a11.456 11.456 0 0 1-3.607 8.053c-2.24 2.114-5.166 3.24-8.244 3.142zm18.273 1.51-6.406-6.782a13.068 13.068 0 0 0 1.583-5.876c.1-3.505-1.171-6.84-3.58-9.388a13.036 13.036 0 0 0-9.167-4.108C14.2 7.482 8.15 13.196 7.945 20.43a13.043 13.043 0 0 0 3.578 9.388 13.042 13.042 0 0 0 9.553 4.113c2.136 0 4.198-.513 6.048-1.48l6.297 6.666a3.82 3.82 0 0 0 2.685 1.203l.113.002a3.82 3.82 0 0 0 2.637-1.05 3.85 3.85 0 0 0 .155-5.436z",fillRule:"evenodd"}),l.createElement("path",{d:"M21.866 20.005h6.278v1.6h-6.278v6.278h-1.6v-6.278h-6.278v-1.6h6.278v-6.278h1.6v6.278zm15.89 18.105c-.898.85-2.323.81-3.173-.091l-5.25-5.558a14.432 14.432 0 0 0 3.212-3.14l5.303 5.615c.85.9.809 2.323-.091 3.174zm-17.052-4.6a12.627 12.627 0 0 1-8.88-3.977 12.621 12.621 0 0 1-3.463-9.09 12.623 12.623 0 0 1 3.977-8.878 12.62 12.62 0 0 1 9.09-3.466c7.006.2 12.543 6.062 12.344 13.068-.2 7.006-6.068 12.558-13.068 12.343zm18.307.327-5.556-5.882a14.21 14.21 0 0 0 1.916-6.742c.225-7.888-6.01-14.488-13.897-14.713a14.22 14.22 0 0 0-10.235 3.9 14.218 14.218 0 0 0-4.478 9.997 14.217 14.217 0 0 0 3.9 10.234 14.219 14.219 0 0 0 10.41 4.485c2.49 0 4.836-.651 6.885-1.782l5.464 5.784a3.82 3.82 0 0 0 2.799 1.205 3.82 3.82 0 0 0 2.637-1.05 3.85 3.85 0 0 0 .155-5.436z",fillRule:"evenodd"}),l.createElement("path",{d:"M22.591 20.708h3.645v2.02H22.59v3.644h-2.02v-3.643h-3.644v-2.021h3.643v-3.645h2.021v3.645zm11.882 13.63c-.5.5-1.372.5-1.874 0l-4.47-4.472c.691-.555 1.304-1.2 1.834-1.912l4.51 4.51a1.318 1.318 0 0 1 0 1.873zm-21.334-12.62c0-4.656 3.787-8.443 8.442-8.443 4.656 0 8.443 3.787 8.443 8.443 0 4.655-3.787 8.442-8.443 8.442-4.655 0-8.442-3.787-8.442-8.442zm22.764 9.316-4.866-4.864a10.39 10.39 0 0 0 1.008-4.452c0-5.77-4.694-10.464-10.464-10.464-5.769 0-10.463 4.694-10.463 10.464 0 5.77 4.694 10.463 10.463 10.463 1.738 0 3.375-.432 4.819-1.185l4.77 4.77c.632.631 1.474.98 2.367.98s1.734-.349 2.366-.98c.631-.632.98-1.472.98-2.366 0-.893-.349-1.733-.98-2.366z",fillRule:"evenodd"}),l.createElement("path",{d:"M22.592 20.708H27v2.02h-4.408v4.408H20.57v-4.407h-4.409v-2.021h4.409v-4.409h2.02v4.409zm11.881 13.63c-.499.498-1.372.5-1.873 0l-3.724-3.725a11.63 11.63 0 0 0 1.834-1.912l3.763 3.763c.25.25.388.583.388.936 0 .355-.138.687-.388.937zm-22.382-12.62c0-5.233 4.258-9.49 9.49-9.49 5.233 0 9.49 4.257 9.49 9.49 0 5.232-4.257 9.49-9.49 9.49-5.232 0-9.49-4.258-9.49-9.49zm23.812 9.316-4.083-4.083a11.423 11.423 0 0 0 1.272-5.233c0-6.347-5.163-11.51-11.51-11.51-6.347 0-11.51 5.163-11.51 11.51 0 6.346 5.163 11.51 11.51 11.51 2.03 0 3.934-.533 5.591-1.459l3.998 3.997c.632.631 1.473.98 2.366.98s1.734-.349 2.365-.98c.632-.632.98-1.472.98-2.366 0-.893-.348-1.733-.98-2.366z",fillRule:"evenodd"}));export{s as default};
1
+ import l from"react";import{getIcon as c}from"./Icon.js";import"classnames";import"../../constants.js";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../utils/environment.js";const s=({size:a,isHovered:e})=>c({size:a,isHovered:e,normal:l.createElement("path",{d:"M21.866 20.005h5.573v1.6h-5.573v5.572h-1.6v-5.572h-5.572v-1.6h5.572v-5.573h1.6v5.573zM37.758 38.11a2.24 2.24 0 0 1-1.606.612 2.23 2.23 0 0 1-1.568-.703l-6.066-6.421a13.263 13.263 0 0 0 1.562-1.25 13.312 13.312 0 0 0 1.65-1.888l6.118 6.476c.85.9.81 2.324-.09 3.174zm-17.02-5.783a11.452 11.452 0 0 1-8.052-3.607 11.45 11.45 0 0 1-3.142-8.243c.178-6.243 5.312-11.2 11.518-11.2.11 0 .222.002.333.005 6.353.18 11.375 5.497 11.194 11.85a11.456 11.456 0 0 1-3.607 8.053c-2.24 2.114-5.166 3.24-8.244 3.142zm18.273 1.51-6.406-6.782a13.068 13.068 0 0 0 1.583-5.876c.1-3.505-1.171-6.84-3.58-9.388a13.036 13.036 0 0 0-9.167-4.108C14.2 7.482 8.15 13.196 7.945 20.43a13.043 13.043 0 0 0 3.578 9.388 13.042 13.042 0 0 0 9.553 4.113c2.136 0 4.198-.513 6.048-1.48l6.297 6.666a3.82 3.82 0 0 0 2.685 1.203l.113.002a3.82 3.82 0 0 0 2.637-1.05 3.85 3.85 0 0 0 .155-5.436z",fillRule:"evenodd"}),normalHover:l.createElement("path",{d:"M21.866 20.005h6.278v1.6h-6.278v6.278h-1.6v-6.278h-6.278v-1.6h6.278v-6.278h1.6v6.278zm15.89 18.105c-.898.85-2.323.81-3.173-.091l-5.25-5.558a14.432 14.432 0 0 0 3.212-3.14l5.303 5.615c.85.9.809 2.323-.091 3.174zm-17.052-4.6a12.627 12.627 0 0 1-8.88-3.977 12.621 12.621 0 0 1-3.463-9.09 12.623 12.623 0 0 1 3.977-8.878 12.62 12.62 0 0 1 9.09-3.466c7.006.2 12.543 6.062 12.344 13.068-.2 7.006-6.068 12.558-13.068 12.343zm18.307.327-5.556-5.882a14.21 14.21 0 0 0 1.916-6.742c.225-7.888-6.01-14.488-13.897-14.713a14.22 14.22 0 0 0-10.235 3.9 14.218 14.218 0 0 0-4.478 9.997 14.217 14.217 0 0 0 3.9 10.234 14.219 14.219 0 0 0 10.41 4.485c2.49 0 4.836-.651 6.885-1.782l5.464 5.784a3.82 3.82 0 0 0 2.799 1.205 3.82 3.82 0 0 0 2.637-1.05 3.85 3.85 0 0 0 .155-5.436z",fillRule:"evenodd"}),xSmall:l.createElement("path",{d:"M22.591 20.708h3.645v2.02H22.59v3.644h-2.02v-3.643h-3.644v-2.021h3.643v-3.645h2.021v3.645zm11.882 13.63c-.5.5-1.372.5-1.874 0l-4.47-4.472c.691-.555 1.304-1.2 1.834-1.912l4.51 4.51a1.318 1.318 0 0 1 0 1.873zm-21.334-12.62c0-4.656 3.787-8.443 8.442-8.443 4.656 0 8.443 3.787 8.443 8.443 0 4.655-3.787 8.442-8.443 8.442-4.655 0-8.442-3.787-8.442-8.442zm22.764 9.316-4.866-4.864a10.39 10.39 0 0 0 1.008-4.452c0-5.77-4.694-10.464-10.464-10.464-5.769 0-10.463 4.694-10.463 10.464 0 5.77 4.694 10.463 10.463 10.463 1.738 0 3.375-.432 4.819-1.185l4.77 4.77c.632.631 1.474.98 2.367.98s1.734-.349 2.366-.98c.631-.632.98-1.472.98-2.366 0-.893-.349-1.733-.98-2.366z",fillRule:"evenodd"}),xSmallHover:l.createElement("path",{d:"M22.592 20.708H27v2.02h-4.408v4.408H20.57v-4.407h-4.409v-2.021h4.409v-4.409h2.02v4.409zm11.881 13.63c-.499.498-1.372.5-1.873 0l-3.724-3.725a11.63 11.63 0 0 0 1.834-1.912l3.763 3.763c.25.25.388.583.388.936 0 .355-.138.687-.388.937zm-22.382-12.62c0-5.233 4.258-9.49 9.49-9.49 5.233 0 9.49 4.257 9.49 9.49 0 5.232-4.257 9.49-9.49 9.49-5.232 0-9.49-4.258-9.49-9.49zm23.812 9.316-4.083-4.083a11.423 11.423 0 0 0 1.272-5.233c0-6.347-5.163-11.51-11.51-11.51-6.347 0-11.51 5.163-11.51 11.51 0 6.346 5.163 11.51 11.51 11.51 2.03 0 3.934-.533 5.591-1.459l3.998 3.997c.632.631 1.473.98 2.366.98s1.734-.349 2.365-.98c.632-.632.98-1.472.98-2.366 0-.893-.348-1.733-.98-2.366z",fillRule:"evenodd"})});export{s as default};
2
2
  //# sourceMappingURL=Zoom.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Zoom.js","sources":["../../../src/components/Icons/Zoom.tsx"],"sourcesContent":["import React from 'react';\nimport { getIcon, SvgPathProps } from './Icon';\n\nconst Zoom: React.FC<SvgPathProps> = ({ size, isHovered }: SvgPathProps): JSX.Element => {\n const normal = (\n <path\n d=\"M21.866 20.005h5.573v1.6h-5.573v5.572h-1.6v-5.572h-5.572v-1.6h5.572v-5.573h1.6v5.573zM37.758 38.11a2.24 2.24 0 0 1-1.606.612 2.23 2.23 0 0 1-1.568-.703l-6.066-6.421a13.263 13.263 0 0 0 1.562-1.25 13.312 13.312 0 0 0 1.65-1.888l6.118 6.476c.85.9.81 2.324-.09 3.174zm-17.02-5.783a11.452 11.452 0 0 1-8.052-3.607 11.45 11.45 0 0 1-3.142-8.243c.178-6.243 5.312-11.2 11.518-11.2.11 0 .222.002.333.005 6.353.18 11.375 5.497 11.194 11.85a11.456 11.456 0 0 1-3.607 8.053c-2.24 2.114-5.166 3.24-8.244 3.142zm18.273 1.51-6.406-6.782a13.068 13.068 0 0 0 1.583-5.876c.1-3.505-1.171-6.84-3.58-9.388a13.036 13.036 0 0 0-9.167-4.108C14.2 7.482 8.15 13.196 7.945 20.43a13.043 13.043 0 0 0 3.578 9.388 13.042 13.042 0 0 0 9.553 4.113c2.136 0 4.198-.513 6.048-1.48l6.297 6.666a3.82 3.82 0 0 0 2.685 1.203l.113.002a3.82 3.82 0 0 0 2.637-1.05 3.85 3.85 0 0 0 .155-5.436z\"\n fillRule=\"evenodd\"\n />\n );\n\n const normalHover = (\n <path\n d=\"M21.866 20.005h6.278v1.6h-6.278v6.278h-1.6v-6.278h-6.278v-1.6h6.278v-6.278h1.6v6.278zm15.89 18.105c-.898.85-2.323.81-3.173-.091l-5.25-5.558a14.432 14.432 0 0 0 3.212-3.14l5.303 5.615c.85.9.809 2.323-.091 3.174zm-17.052-4.6a12.627 12.627 0 0 1-8.88-3.977 12.621 12.621 0 0 1-3.463-9.09 12.623 12.623 0 0 1 3.977-8.878 12.62 12.62 0 0 1 9.09-3.466c7.006.2 12.543 6.062 12.344 13.068-.2 7.006-6.068 12.558-13.068 12.343zm18.307.327-5.556-5.882a14.21 14.21 0 0 0 1.916-6.742c.225-7.888-6.01-14.488-13.897-14.713a14.22 14.22 0 0 0-10.235 3.9 14.218 14.218 0 0 0-4.478 9.997 14.217 14.217 0 0 0 3.9 10.234 14.219 14.219 0 0 0 10.41 4.485c2.49 0 4.836-.651 6.885-1.782l5.464 5.784a3.82 3.82 0 0 0 2.799 1.205 3.82 3.82 0 0 0 2.637-1.05 3.85 3.85 0 0 0 .155-5.436z\"\n fillRule=\"evenodd\"\n />\n );\n\n const xSmall = (\n <path\n d=\"M22.591 20.708h3.645v2.02H22.59v3.644h-2.02v-3.643h-3.644v-2.021h3.643v-3.645h2.021v3.645zm11.882 13.63c-.5.5-1.372.5-1.874 0l-4.47-4.472c.691-.555 1.304-1.2 1.834-1.912l4.51 4.51a1.318 1.318 0 0 1 0 1.873zm-21.334-12.62c0-4.656 3.787-8.443 8.442-8.443 4.656 0 8.443 3.787 8.443 8.443 0 4.655-3.787 8.442-8.443 8.442-4.655 0-8.442-3.787-8.442-8.442zm22.764 9.316-4.866-4.864a10.39 10.39 0 0 0 1.008-4.452c0-5.77-4.694-10.464-10.464-10.464-5.769 0-10.463 4.694-10.463 10.464 0 5.77 4.694 10.463 10.463 10.463 1.738 0 3.375-.432 4.819-1.185l4.77 4.77c.632.631 1.474.98 2.367.98s1.734-.349 2.366-.98c.631-.632.98-1.472.98-2.366 0-.893-.349-1.733-.98-2.366z\"\n fillRule=\"evenodd\"\n />\n );\n\n const xSmallHover = (\n <path\n d=\"M22.592 20.708H27v2.02h-4.408v4.408H20.57v-4.407h-4.409v-2.021h4.409v-4.409h2.02v4.409zm11.881 13.63c-.499.498-1.372.5-1.873 0l-3.724-3.725a11.63 11.63 0 0 0 1.834-1.912l3.763 3.763c.25.25.388.583.388.936 0 .355-.138.687-.388.937zm-22.382-12.62c0-5.233 4.258-9.49 9.49-9.49 5.233 0 9.49 4.257 9.49 9.49 0 5.232-4.257 9.49-9.49 9.49-5.232 0-9.49-4.258-9.49-9.49zm23.812 9.316-4.083-4.083a11.423 11.423 0 0 0 1.272-5.233c0-6.347-5.163-11.51-11.51-11.51-6.347 0-11.51 5.163-11.51 11.51 0 6.346 5.163 11.51 11.51 11.51 2.03 0 3.934-.533 5.591-1.459l3.998 3.997c.632.631 1.473.98 2.366.98s1.734-.349 2.365-.98c.632-.632.98-1.472.98-2.366 0-.893-.348-1.733-.98-2.366z\"\n fillRule=\"evenodd\"\n />\n );\n\n return getIcon(size, isHovered, normal, normalHover, xSmall, xSmallHover);\n};\n\nexport default Zoom;\n"],"names":["Zoom","size","isHovered","getIcon","React"],"mappings":"+LAGA,MAAMA,EAA+B,CAAC,CAAE,KAAAC,EAAM,UAAAC,KA6BrCC,EAAQF,EAAMC,EA3BlBE,EAAA,cAAA,OAAA,CACC,EAAE,q1BACF,SAAS,SAAA,CACX,EAICA,EAAA,cAAA,OAAA,CACC,EAAE,uvBACF,SAAS,SAAA,CACX,EAICA,EAAA,cAAA,OAAA,CACC,EAAE,gpBACF,SAAS,SAAA,CACX,EAICA,EAAA,cAAA,OAAA,CACC,EAAE,wpBACF,SAAS,SAAA,CACX,CAGsE"}
1
+ {"version":3,"file":"Zoom.js","sources":["../../../src/components/Icons/Zoom.tsx"],"sourcesContent":["import React from 'react';\nimport { getIcon, SvgPathProps } from './Icon';\n\nconst Zoom: React.FC<SvgPathProps> = ({ size, isHovered }: SvgPathProps): JSX.Element => {\n const normal = (\n <path\n d=\"M21.866 20.005h5.573v1.6h-5.573v5.572h-1.6v-5.572h-5.572v-1.6h5.572v-5.573h1.6v5.573zM37.758 38.11a2.24 2.24 0 0 1-1.606.612 2.23 2.23 0 0 1-1.568-.703l-6.066-6.421a13.263 13.263 0 0 0 1.562-1.25 13.312 13.312 0 0 0 1.65-1.888l6.118 6.476c.85.9.81 2.324-.09 3.174zm-17.02-5.783a11.452 11.452 0 0 1-8.052-3.607 11.45 11.45 0 0 1-3.142-8.243c.178-6.243 5.312-11.2 11.518-11.2.11 0 .222.002.333.005 6.353.18 11.375 5.497 11.194 11.85a11.456 11.456 0 0 1-3.607 8.053c-2.24 2.114-5.166 3.24-8.244 3.142zm18.273 1.51-6.406-6.782a13.068 13.068 0 0 0 1.583-5.876c.1-3.505-1.171-6.84-3.58-9.388a13.036 13.036 0 0 0-9.167-4.108C14.2 7.482 8.15 13.196 7.945 20.43a13.043 13.043 0 0 0 3.578 9.388 13.042 13.042 0 0 0 9.553 4.113c2.136 0 4.198-.513 6.048-1.48l6.297 6.666a3.82 3.82 0 0 0 2.685 1.203l.113.002a3.82 3.82 0 0 0 2.637-1.05 3.85 3.85 0 0 0 .155-5.436z\"\n fillRule=\"evenodd\"\n />\n );\n\n const normalHover = (\n <path\n d=\"M21.866 20.005h6.278v1.6h-6.278v6.278h-1.6v-6.278h-6.278v-1.6h6.278v-6.278h1.6v6.278zm15.89 18.105c-.898.85-2.323.81-3.173-.091l-5.25-5.558a14.432 14.432 0 0 0 3.212-3.14l5.303 5.615c.85.9.809 2.323-.091 3.174zm-17.052-4.6a12.627 12.627 0 0 1-8.88-3.977 12.621 12.621 0 0 1-3.463-9.09 12.623 12.623 0 0 1 3.977-8.878 12.62 12.62 0 0 1 9.09-3.466c7.006.2 12.543 6.062 12.344 13.068-.2 7.006-6.068 12.558-13.068 12.343zm18.307.327-5.556-5.882a14.21 14.21 0 0 0 1.916-6.742c.225-7.888-6.01-14.488-13.897-14.713a14.22 14.22 0 0 0-10.235 3.9 14.218 14.218 0 0 0-4.478 9.997 14.217 14.217 0 0 0 3.9 10.234 14.219 14.219 0 0 0 10.41 4.485c2.49 0 4.836-.651 6.885-1.782l5.464 5.784a3.82 3.82 0 0 0 2.799 1.205 3.82 3.82 0 0 0 2.637-1.05 3.85 3.85 0 0 0 .155-5.436z\"\n fillRule=\"evenodd\"\n />\n );\n\n const xSmall = (\n <path\n d=\"M22.591 20.708h3.645v2.02H22.59v3.644h-2.02v-3.643h-3.644v-2.021h3.643v-3.645h2.021v3.645zm11.882 13.63c-.5.5-1.372.5-1.874 0l-4.47-4.472c.691-.555 1.304-1.2 1.834-1.912l4.51 4.51a1.318 1.318 0 0 1 0 1.873zm-21.334-12.62c0-4.656 3.787-8.443 8.442-8.443 4.656 0 8.443 3.787 8.443 8.443 0 4.655-3.787 8.442-8.443 8.442-4.655 0-8.442-3.787-8.442-8.442zm22.764 9.316-4.866-4.864a10.39 10.39 0 0 0 1.008-4.452c0-5.77-4.694-10.464-10.464-10.464-5.769 0-10.463 4.694-10.463 10.464 0 5.77 4.694 10.463 10.463 10.463 1.738 0 3.375-.432 4.819-1.185l4.77 4.77c.632.631 1.474.98 2.367.98s1.734-.349 2.366-.98c.631-.632.98-1.472.98-2.366 0-.893-.349-1.733-.98-2.366z\"\n fillRule=\"evenodd\"\n />\n );\n\n const xSmallHover = (\n <path\n d=\"M22.592 20.708H27v2.02h-4.408v4.408H20.57v-4.407h-4.409v-2.021h4.409v-4.409h2.02v4.409zm11.881 13.63c-.499.498-1.372.5-1.873 0l-3.724-3.725a11.63 11.63 0 0 0 1.834-1.912l3.763 3.763c.25.25.388.583.388.936 0 .355-.138.687-.388.937zm-22.382-12.62c0-5.233 4.258-9.49 9.49-9.49 5.233 0 9.49 4.257 9.49 9.49 0 5.232-4.257 9.49-9.49 9.49-5.232 0-9.49-4.258-9.49-9.49zm23.812 9.316-4.083-4.083a11.423 11.423 0 0 0 1.272-5.233c0-6.347-5.163-11.51-11.51-11.51-6.347 0-11.51 5.163-11.51 11.51 0 6.346 5.163 11.51 11.51 11.51 2.03 0 3.934-.533 5.591-1.459l3.998 3.997c.632.631 1.473.98 2.366.98s1.734-.349 2.365-.98c.632-.632.98-1.472.98-2.366 0-.893-.348-1.733-.98-2.366z\"\n fillRule=\"evenodd\"\n />\n );\n\n return getIcon({ size, isHovered, normal, normalHover, xSmall, xSmallHover });\n};\n\nexport default Zoom;\n"],"names":["Zoom","size","isHovered","getIcon","React"],"mappings":"+LAGA,MAAMA,EAA+B,CAAC,CAAE,KAAAC,EAAM,UAAAC,KA6BrCC,EAAQ,CAAE,KAAAF,EAAM,UAAAC,EAAW,OA3B/BE,EAAA,cAAA,OAAA,CACC,EAAE,q1BACF,SAAS,SAAA,CACX,EAwBwC,YApBvCA,EAAA,cAAA,OAAA,CACC,EAAE,uvBACF,SAAS,SAAA,CACX,EAiBqD,OAbpDA,EAAA,cAAA,OAAA,CACC,EAAE,gpBACF,SAAS,SAAA,CACX,EAU6D,YAN5DA,EAAA,cAAA,OAAA,CACC,EAAE,wpBACF,SAAS,SAAA,CACX,EAG0E"}
@@ -1 +1 @@
1
- {"props":{"svgIcon":{"defaultValue":null,"description":"","name":"svgIcon","parent":{"fileName":"src/components/Icons/Icon.tsx","name":"IconProps"},"declarations":[{"fileName":"src/components/Icons/Icon.tsx","name":"IconProps"}],"required":true,"type":{"name":"SvgIcon"}},"ariaLabel":{"defaultValue":null,"description":"","name":"ariaLabel","parent":{"fileName":"src/components/Icons/Icon.tsx","name":"IconProps"},"declarations":[{"fileName":"src/components/Icons/Icon.tsx","name":"IconProps"}],"required":false,"type":{"name":"string"}},"size":{"defaultValue":null,"description":"","name":"size","parent":{"fileName":"src/components/Icons/Icon.tsx","name":"IconProps"},"declarations":[{"fileName":"src/components/Icons/Icon.tsx","name":"IconProps"}],"required":false,"type":{"name":"number"}},"color":{"defaultValue":null,"description":"","name":"color","parent":{"fileName":"src/components/Icons/Icon.tsx","name":"IconProps"},"declarations":[{"fileName":"src/components/Icons/Icon.tsx","name":"IconProps"}],"required":false,"type":{"name":"string"}},"hoverColor":{"defaultValue":null,"description":"","name":"hoverColor","parent":{"fileName":"src/components/Icons/Icon.tsx","name":"IconProps"},"declarations":[{"fileName":"src/components/Icons/Icon.tsx","name":"IconProps"}],"required":false,"type":{"name":"string"}},"className":{"defaultValue":null,"description":"","name":"className","parent":{"fileName":"src/components/Icons/Icon.tsx","name":"IconProps"},"declarations":[{"fileName":"src/components/Icons/Icon.tsx","name":"IconProps"}],"required":false,"type":{"name":"string"}},"hoverType":{"defaultValue":null,"description":"","name":"hoverType","parent":{"fileName":"src/components/Icons/Icon.tsx","name":"IconProps"},"declarations":[{"fileName":"src/components/Icons/Icon.tsx","name":"IconProps"}],"required":false,"type":{"name":"SvgIcon"}},"isHovered":{"defaultValue":null,"description":"","name":"isHovered","parent":{"fileName":"src/components/Icons/Icon.tsx","name":"IconProps"},"declarations":[{"fileName":"src/components/Icons/Icon.tsx","name":"IconProps"}],"required":false,"type":{"name":"boolean"}},"testId":{"defaultValue":null,"description":"Sets the data-testid attribute.","name":"testId","parent":{"fileName":"src/components/Icons/Icon.tsx","name":"IconProps"},"declarations":[{"fileName":"src/components/Icons/Icon.tsx","name":"IconProps"}],"required":false,"type":{"name":"string"}}}}
1
+ {"props":{"size":{"defaultValue":null,"description":"","name":"size","parent":{"fileName":"src/components/Icons/Icon.tsx","name":"IconConfig"},"declarations":[{"fileName":"src/components/Icons/Icon.tsx","name":"IconConfig"}],"required":true,"type":{"name":"enum","raw":"IconSize","value":[{"value":"24","description":"","fullComment":"","tags":{}},{"value":"38","description":"","fullComment":"","tags":{}},{"value":"48","description":"","fullComment":"","tags":{}},{"value":"64","description":"","fullComment":"","tags":{}},{"value":"80","description":"","fullComment":"","tags":{}},{"value":"130","description":"","fullComment":"","tags":{}}]}},"isHovered":{"defaultValue":null,"description":"","name":"isHovered","parent":{"fileName":"src/components/Icons/Icon.tsx","name":"IconConfig"},"declarations":[{"fileName":"src/components/Icons/Icon.tsx","name":"IconConfig"}],"required":true,"type":{"name":"boolean"}},"normal":{"defaultValue":null,"description":"","name":"normal","parent":{"fileName":"src/components/Icons/Icon.tsx","name":"IconConfig"},"declarations":[{"fileName":"src/components/Icons/Icon.tsx","name":"IconConfig"}],"required":true,"type":{"name":"Element"}},"normalHover":{"defaultValue":null,"description":"","name":"normalHover","parent":{"fileName":"src/components/Icons/Icon.tsx","name":"IconConfig"},"declarations":[{"fileName":"src/components/Icons/Icon.tsx","name":"IconConfig"}],"required":true,"type":{"name":"Element"}},"xSmall":{"defaultValue":null,"description":"","name":"xSmall","parent":{"fileName":"src/components/Icons/Icon.tsx","name":"IconConfig"},"declarations":[{"fileName":"src/components/Icons/Icon.tsx","name":"IconConfig"}],"required":false,"type":{"name":"Element"}},"xSmallHover":{"defaultValue":null,"description":"","name":"xSmallHover","parent":{"fileName":"src/components/Icons/Icon.tsx","name":"IconConfig"},"declarations":[{"fileName":"src/components/Icons/Icon.tsx","name":"IconConfig"}],"required":false,"type":{"name":"Element"}},"xxSmall":{"defaultValue":null,"description":"","name":"xxSmall","parent":{"fileName":"src/components/Icons/Icon.tsx","name":"IconConfig"},"declarations":[{"fileName":"src/components/Icons/Icon.tsx","name":"IconConfig"}],"required":false,"type":{"name":"Element"}},"xxSmallHover":{"defaultValue":null,"description":"","name":"xxSmallHover","parent":{"fileName":"src/components/Icons/Icon.tsx","name":"IconConfig"},"declarations":[{"fileName":"src/components/Icons/Icon.tsx","name":"IconConfig"}],"required":false,"type":{"name":"Element"}}}}
@@ -36,6 +36,10 @@ export interface InputProps extends Pick<React.InputHTMLAttributes<HTMLInputElem
36
36
  afterInputChildren?: React.ReactNode;
37
37
  /** Component shown under label */
38
38
  belowLabelChildren?: React.ReactNode;
39
+ /** max character limit in input */
40
+ maxCharacters?: number;
41
+ /** The text is displayed in the end of the text-counter */
42
+ maxText?: string;
39
43
  }
40
44
  export declare enum InputTypes {
41
45
  text = "text",
@@ -1 +1 @@
1
- {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAGtC,OAAO,EAAE,QAAQ,EAAE,WAAW,EAA2C,MAAM,iBAAiB,CAAC;AAEjG,OAAa,EAAY,OAAO,EAAE,MAAM,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;IACb,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,IAAI,SAAS;CACd;AAUD,QAAA,MAAM,KAAK,qFAsHT,CAAC;AAEH,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAGhD,OAAO,EAAE,QAAQ,EAAE,WAAW,EAA2C,MAAM,iBAAiB,CAAC;AAEjG,OAAa,EAAY,OAAO,EAAE,MAAM,UAAU,CAAC;AASnD,MAAM,WAAW,UACf,SAAQ,IAAI,CACV,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EACzC,UAAU,GACV,UAAU,GACV,cAAc,GACd,MAAM,GACN,aAAa,GACb,cAAc,GACd,UAAU,GACV,OAAO,GACP,KAAK,GACL,KAAK,GACL,iBAAiB,GACjB,UAAU,GACV,WAAW,GACX,WAAW,CACd;IACD,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uBAAuB;IACvB,IAAI,CAAC,EAAE,MAAM,OAAO,UAAU,CAAC;IAC/B,eAAe;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kDAAkD;IAClD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,mDAAmD;IACnD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,mCAAmC;IACnC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,6CAA6C;IAC7C,IAAI,CAAC,EAAE,MAAM,OAAO,QAAQ,CAAC;IAC7B,uCAAuC;IACvC,OAAO,CAAC,EAAE,MAAM,OAAO,WAAW,CAAC;IACnC,yBAAyB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0CAA0C;IAC1C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kCAAkC;IAClC,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,kCAAkC;IAClC,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,kCAAkC;IAClC,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,oCAAoC;IACpC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2DAA2D;IAC3D,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,oBAAY,UAAU;IACpB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,IAAI,SAAS;CACd;AAUD,QAAA,MAAM,KAAK,qFAyIT,CAAC;AAEH,eAAe,KAAK,CAAC"}
@@ -1 +1 @@
1
- {"props":{"className":{"defaultValue":null,"description":"Adds custom classes to the element.","name":"className","parent":{"fileName":"src/components/Input/Input.tsx","name":"InputProps"},"declarations":[{"fileName":"src/components/Input/Input.tsx","name":"InputProps"}],"required":false,"type":{"name":"string"}},"type":{"defaultValue":null,"description":"HMTL Input type","name":"type","parent":{"fileName":"src/components/Input/Input.tsx","name":"InputProps"},"declarations":[{"fileName":"src/components/Input/Input.tsx","name":"InputProps"}],"required":false,"type":{"name":"enum","raw":"\"number\" | \"text\" | \"email\" | \"password\" | \"search\" | \"tel\" | \"url\" | \"date\" | \"time\"","value":[{"value":"\"number\""},{"value":"\"text\""},{"value":"\"email\""},{"value":"\"password\""},{"value":"\"search\""},{"value":"\"tel\""},{"value":"\"url\""},{"value":"\"date\""},{"value":"\"time\""}]}},"inputId":{"defaultValue":null,"description":"input id","name":"inputId","parent":{"fileName":"src/components/Input/Input.tsx","name":"InputProps"},"declarations":[{"fileName":"src/components/Input/Input.tsx","name":"InputProps"}],"required":false,"type":{"name":"string"}},"labelId":{"defaultValue":null,"description":"label id","name":"labelId","parent":{"fileName":"src/components/Input/Input.tsx","name":"InputProps"},"declarations":[{"fileName":"src/components/Input/Input.tsx","name":"InputProps"}],"required":false,"type":{"name":"string"}},"width":{"defaultValue":null,"description":"Width of input field in characters (approximate)","name":"width","parent":{"fileName":"src/components/Input/Input.tsx","name":"InputProps"},"declarations":[{"fileName":"src/components/Input/Input.tsx","name":"InputProps"}],"required":false,"type":{"name":"number"}},"transparent":{"defaultValue":null,"description":"If true, the component will be transparent.","name":"transparent","parent":{"fileName":"src/components/Input/Input.tsx","name":"InputProps"},"declarations":[{"fileName":"src/components/Input/Input.tsx","name":"InputProps"}],"required":false,"type":{"name":"boolean"}},"icon":{"defaultValue":null,"description":"Icon to be displayed next to the input field","name":"icon","parent":{"fileName":"src/components/Input/Input.tsx","name":"InputProps"},"declarations":[{"fileName":"src/components/Input/Input.tsx","name":"InputProps"}],"required":false,"type":{"name":"SvgIcon"}},"iconRight":{"defaultValue":null,"description":"Places the icon to the right","name":"iconRight","parent":{"fileName":"src/components/Input/Input.tsx","name":"InputProps"},"declarations":[{"fileName":"src/components/Input/Input.tsx","name":"InputProps"}],"required":false,"type":{"name":"boolean"}},"mode":{"defaultValue":null,"description":"Changes the color profile of the input","name":"mode","parent":{"fileName":"src/components/Input/Input.tsx","name":"InputProps"},"declarations":[{"fileName":"src/components/Input/Input.tsx","name":"InputProps"}],"required":false,"type":{"name":"enum","raw":"\"onwhite\" | \"ongrey\" | \"onblueberry\" | \"ondark\" | \"oninvalid\"","value":[{"value":"\"onwhite\""},{"value":"\"ongrey\""},{"value":"\"onblueberry\""},{"value":"\"ondark\""},{"value":"\"oninvalid\""}]}},"variant":{"defaultValue":null,"description":"Changes the visuals of the input","name":"variant","parent":{"fileName":"src/components/Input/Input.tsx","name":"InputProps"},"declarations":[{"fileName":"src/components/Input/Input.tsx","name":"InputProps"}],"required":false,"type":{"name":"enum","raw":"\"normal\" | \"bigform\"","value":[{"value":"\"normal\""},{"value":"\"bigform\""}]}},"label":{"defaultValue":null,"description":"Label of the input","name":"label","parent":{"fileName":"src/components/Input/Input.tsx","name":"InputProps"},"declarations":[{"fileName":"src/components/Input/Input.tsx","name":"InputProps"}],"required":false,"type":{"name":"string"}},"error":{"defaultValue":null,"description":"Activates Error style for the input","name":"error","parent":{"fileName":"src/components/Input/Input.tsx","name":"InputProps"},"declarations":[{"fileName":"src/components/Input/Input.tsx","name":"InputProps"}],"required":false,"type":{"name":"boolean"}},"errorText":{"defaultValue":null,"description":"Error text to show above the component","name":"errorText","parent":{"fileName":"src/components/Input/Input.tsx","name":"InputProps"},"declarations":[{"fileName":"src/components/Input/Input.tsx","name":"InputProps"}],"required":false,"type":{"name":"string"}},"testId":{"defaultValue":null,"description":"Sets the data-testid attribute.","name":"testId","parent":{"fileName":"src/components/Input/Input.tsx","name":"InputProps"},"declarations":[{"fileName":"src/components/Input/Input.tsx","name":"InputProps"}],"required":false,"type":{"name":"string"}},"afterLabelChildren":{"defaultValue":null,"description":"Component shown after label","name":"afterLabelChildren","parent":{"fileName":"src/components/Input/Input.tsx","name":"InputProps"},"declarations":[{"fileName":"src/components/Input/Input.tsx","name":"InputProps"}],"required":false,"type":{"name":"ReactNode"}},"afterInputChildren":{"defaultValue":null,"description":"Component shown after input","name":"afterInputChildren","parent":{"fileName":"src/components/Input/Input.tsx","name":"InputProps"},"declarations":[{"fileName":"src/components/Input/Input.tsx","name":"InputProps"}],"required":false,"type":{"name":"ReactNode"}},"belowLabelChildren":{"defaultValue":null,"description":"Component shown under label","name":"belowLabelChildren","parent":{"fileName":"src/components/Input/Input.tsx","name":"InputProps"},"declarations":[{"fileName":"src/components/Input/Input.tsx","name":"InputProps"}],"required":false,"type":{"name":"ReactNode"}},"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"}},"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"}},"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"}},"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"}},"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"}},"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[]"}},"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"}},"value":{"defaultValue":null,"description":"","name":"value","parent":{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"InputHTMLAttributes"},"declarations":[{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"InputHTMLAttributes"}],"required":false,"type":{"name":"string | number | readonly string[]"}},"min":{"defaultValue":null,"description":"","name":"min","parent":{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"InputHTMLAttributes"},"declarations":[{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"InputHTMLAttributes"}],"required":false,"type":{"name":"string | number"}},"max":{"defaultValue":null,"description":"","name":"max","parent":{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"InputHTMLAttributes"},"declarations":[{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"InputHTMLAttributes"}],"required":false,"type":{"name":"string | number"}},"aria-labelledby":{"defaultValue":null,"description":"Identifies the element (or elements) that labels the current element.\n@see aria-describedby.","name":"aria-labelledby","parent":{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"AriaAttributes"},"declarations":[{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"AriaAttributes"}],"required":false,"type":{"name":"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<HTMLInputElement>"}},"onKeyDown":{"defaultValue":null,"description":"","name":"onKeyDown","parent":{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"DOMAttributes"},"declarations":[{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"DOMAttributes"}],"required":false,"type":{"name":"KeyboardEventHandler<HTMLInputElement>"}},"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"}}}}
1
+ {"props":{"className":{"defaultValue":null,"description":"Adds custom classes to the element.","name":"className","parent":{"fileName":"src/components/Input/Input.tsx","name":"InputProps"},"declarations":[{"fileName":"src/components/Input/Input.tsx","name":"InputProps"}],"required":false,"type":{"name":"string"}},"type":{"defaultValue":null,"description":"HMTL Input type","name":"type","parent":{"fileName":"src/components/Input/Input.tsx","name":"InputProps"},"declarations":[{"fileName":"src/components/Input/Input.tsx","name":"InputProps"}],"required":false,"type":{"name":"enum","raw":"\"number\" | \"text\" | \"email\" | \"password\" | \"search\" | \"tel\" | \"url\" | \"date\" | \"time\"","value":[{"value":"\"number\""},{"value":"\"text\""},{"value":"\"email\""},{"value":"\"password\""},{"value":"\"search\""},{"value":"\"tel\""},{"value":"\"url\""},{"value":"\"date\""},{"value":"\"time\""}]}},"inputId":{"defaultValue":null,"description":"input id","name":"inputId","parent":{"fileName":"src/components/Input/Input.tsx","name":"InputProps"},"declarations":[{"fileName":"src/components/Input/Input.tsx","name":"InputProps"}],"required":false,"type":{"name":"string"}},"labelId":{"defaultValue":null,"description":"label id","name":"labelId","parent":{"fileName":"src/components/Input/Input.tsx","name":"InputProps"},"declarations":[{"fileName":"src/components/Input/Input.tsx","name":"InputProps"}],"required":false,"type":{"name":"string"}},"width":{"defaultValue":null,"description":"Width of input field in characters (approximate)","name":"width","parent":{"fileName":"src/components/Input/Input.tsx","name":"InputProps"},"declarations":[{"fileName":"src/components/Input/Input.tsx","name":"InputProps"}],"required":false,"type":{"name":"number"}},"transparent":{"defaultValue":null,"description":"If true, the component will be transparent.","name":"transparent","parent":{"fileName":"src/components/Input/Input.tsx","name":"InputProps"},"declarations":[{"fileName":"src/components/Input/Input.tsx","name":"InputProps"}],"required":false,"type":{"name":"boolean"}},"icon":{"defaultValue":null,"description":"Icon to be displayed next to the input field","name":"icon","parent":{"fileName":"src/components/Input/Input.tsx","name":"InputProps"},"declarations":[{"fileName":"src/components/Input/Input.tsx","name":"InputProps"}],"required":false,"type":{"name":"SvgIcon"}},"iconRight":{"defaultValue":null,"description":"Places the icon to the right","name":"iconRight","parent":{"fileName":"src/components/Input/Input.tsx","name":"InputProps"},"declarations":[{"fileName":"src/components/Input/Input.tsx","name":"InputProps"}],"required":false,"type":{"name":"boolean"}},"mode":{"defaultValue":null,"description":"Changes the color profile of the input","name":"mode","parent":{"fileName":"src/components/Input/Input.tsx","name":"InputProps"},"declarations":[{"fileName":"src/components/Input/Input.tsx","name":"InputProps"}],"required":false,"type":{"name":"enum","raw":"\"onwhite\" | \"ongrey\" | \"onblueberry\" | \"ondark\" | \"oninvalid\"","value":[{"value":"\"onwhite\""},{"value":"\"ongrey\""},{"value":"\"onblueberry\""},{"value":"\"ondark\""},{"value":"\"oninvalid\""}]}},"variant":{"defaultValue":null,"description":"Changes the visuals of the input","name":"variant","parent":{"fileName":"src/components/Input/Input.tsx","name":"InputProps"},"declarations":[{"fileName":"src/components/Input/Input.tsx","name":"InputProps"}],"required":false,"type":{"name":"enum","raw":"\"normal\" | \"bigform\"","value":[{"value":"\"normal\""},{"value":"\"bigform\""}]}},"label":{"defaultValue":null,"description":"Label of the input","name":"label","parent":{"fileName":"src/components/Input/Input.tsx","name":"InputProps"},"declarations":[{"fileName":"src/components/Input/Input.tsx","name":"InputProps"}],"required":false,"type":{"name":"string"}},"error":{"defaultValue":null,"description":"Activates Error style for the input","name":"error","parent":{"fileName":"src/components/Input/Input.tsx","name":"InputProps"},"declarations":[{"fileName":"src/components/Input/Input.tsx","name":"InputProps"}],"required":false,"type":{"name":"boolean"}},"errorText":{"defaultValue":null,"description":"Error text to show above the component","name":"errorText","parent":{"fileName":"src/components/Input/Input.tsx","name":"InputProps"},"declarations":[{"fileName":"src/components/Input/Input.tsx","name":"InputProps"}],"required":false,"type":{"name":"string"}},"testId":{"defaultValue":null,"description":"Sets the data-testid attribute.","name":"testId","parent":{"fileName":"src/components/Input/Input.tsx","name":"InputProps"},"declarations":[{"fileName":"src/components/Input/Input.tsx","name":"InputProps"}],"required":false,"type":{"name":"string"}},"afterLabelChildren":{"defaultValue":null,"description":"Component shown after label","name":"afterLabelChildren","parent":{"fileName":"src/components/Input/Input.tsx","name":"InputProps"},"declarations":[{"fileName":"src/components/Input/Input.tsx","name":"InputProps"}],"required":false,"type":{"name":"ReactNode"}},"afterInputChildren":{"defaultValue":null,"description":"Component shown after input","name":"afterInputChildren","parent":{"fileName":"src/components/Input/Input.tsx","name":"InputProps"},"declarations":[{"fileName":"src/components/Input/Input.tsx","name":"InputProps"}],"required":false,"type":{"name":"ReactNode"}},"belowLabelChildren":{"defaultValue":null,"description":"Component shown under label","name":"belowLabelChildren","parent":{"fileName":"src/components/Input/Input.tsx","name":"InputProps"},"declarations":[{"fileName":"src/components/Input/Input.tsx","name":"InputProps"}],"required":false,"type":{"name":"ReactNode"}},"maxCharacters":{"defaultValue":null,"description":"max character limit in input","name":"maxCharacters","parent":{"fileName":"src/components/Input/Input.tsx","name":"InputProps"},"declarations":[{"fileName":"src/components/Input/Input.tsx","name":"InputProps"}],"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/Input/Input.tsx","name":"InputProps"},"declarations":[{"fileName":"src/components/Input/Input.tsx","name":"InputProps"}],"required":false,"type":{"name":"string"}},"disabled":{"defaultValue":null,"description":"","name":"disabled","parent":{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"InputHTMLAttributes"},"declarations":[{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"InputHTMLAttributes"}],"required":false,"type":{"name":"boolean"}},"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"}},"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"}},"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"}},"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"}},"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[]"}},"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"}},"value":{"defaultValue":null,"description":"","name":"value","parent":{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"InputHTMLAttributes"},"declarations":[{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"InputHTMLAttributes"}],"required":false,"type":{"name":"string | number | readonly string[]"}},"min":{"defaultValue":null,"description":"","name":"min","parent":{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"InputHTMLAttributes"},"declarations":[{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"InputHTMLAttributes"}],"required":false,"type":{"name":"string | number"}},"max":{"defaultValue":null,"description":"","name":"max","parent":{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"InputHTMLAttributes"},"declarations":[{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"InputHTMLAttributes"}],"required":false,"type":{"name":"string | number"}},"aria-labelledby":{"defaultValue":null,"description":"Identifies the element (or elements) that labels the current element.\n@see aria-describedby.","name":"aria-labelledby","parent":{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"AriaAttributes"},"declarations":[{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"AriaAttributes"}],"required":false,"type":{"name":"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<HTMLInputElement>"}},"onKeyDown":{"defaultValue":null,"description":"","name":"onKeyDown","parent":{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"DOMAttributes"},"declarations":[{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"DOMAttributes"}],"required":false,"type":{"name":"KeyboardEventHandler<HTMLInputElement>"}},"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"}}}}
@@ -1,2 +1,2 @@
1
- import"../../Input.js";import{a as g,I as h}from"../../Input.js";import"react";import"classnames";import"../../constants.js";import"../../uuid.js";import"../../utils/environment.js";import"../Icons/Icon.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"../../hooks/useBreakpoint.js";import"../../ErrorWrapper.js";import"../ErrorWrapper/styles.module.scss";import"./styles.module.scss";export{g as InputTypes,h as default};
1
+ import"../../Input.js";import{a as j,I as k}from"../../Input.js";import"react";import"classnames";import"../../constants.js";import"../../uuid.js";import"../../utils/environment.js";import"../Icons/Icon.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"../../hooks/useBreakpoint.js";import"../../ErrorWrapper.js";import"../ErrorWrapper/styles.module.scss";import"../../MaxCharacters.js";import"../MaxCharacters/styles.module.scss";import"./styles.module.scss";export{j as InputTypes,k as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LinkList.d.ts","sourceRoot":"","sources":["../../../src/components/LinkList/LinkList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAKnD,OAAO,EAAE,cAAc,EAAoB,MAAM,0BAA0B,CAAC;AAG5E,oBAAY,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAExD,oBAAY,iBAAiB,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE/D,oBAAY,cAAc,GAAG,YAAY,CAAC;AAC1C,oBAAY,eAAe,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC;AAE1D,MAAM,WAAW,QAAS,SAAQ,KAAK,CAAC,yBAAyB,CAAC,SAAS,GAAG,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;IAC/G,UAAU,CAAC,EAAE,cAAc,CAAC;CAC7B;AAED,oBAAY,QAAQ,GAAG,QAAQ,GAAG,GAAG,CAAC;AACtC,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,yBAAyB,CAAC,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC;IAC/H,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,UAAU,aAAa;IACrB,4BAA4B;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,0CA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IAC3B,OAAO,CAAC,EAAE,eAAe,CAAC;CAC3B;AAED,aAAK,MAAM,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC;AAEzC,oBAAY,SAAS,GAAG,MAAM,CAC5B,KAAK,CAAC,cAAc,CAAC,iBAAiB,GAAG,iBAAiB,CAAC,EAC3D;IACE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,uCAAuC;IACvC,UAAU,CAAC,EAAE,QAAQ,CAAC;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,GAAG,iBAAiB,CAAC,CAAC;IACjE,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CACF,GACC,IAAI,CAAC,aAAa,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC,CAAC;AAyDpD,eAAO,MAAM,QAAQ,mBAWE,CAAC;AAKxB,eAAe,QAAQ,CAAC"}
@@ -1,2 +1,2 @@
1
- import i from"react";import f from"classnames";import{useHover as C}from"../../hooks/useHover.js";import t from"./styles.module.scss";import{AnalyticsId as b}from"../../constants.js";import{r as y}from"../../ListHeader.js";import R from"../Icons/ChevronRight.js";import"../../Avatar.js";import"../Icons/Icon.js";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../utils/environment.js";import"../Icons/Check.js";import"../Avatar/styles.module.scss";import"../../theme/palette.js";import"../../Badge.js";import"../Badge/styles.module.scss";import"../../ListHeaderText.js";import"../../StatusDot.js";import"../StatusDot/styles.module.scss";import"../Icons/Undo.js";import"../../theme/currys/color.js";import"../../theme/index.js";import"../../theme/spacers.js";import"../../theme/grid.js";import"../Icons/Group.js";import"../Icons/NoAccess.js";import"../../hooks/useBreakpoint.js";import"../ListHeader/styles.module.scss";import"../../utils/component.js";const k=i.forwardRef((u,s)=>{const{children:o,className:a="",color:l="neutral",icon:n,size:r="medium",chevron:L=!1,linkRef:m,testId:p,target:e,variant:c,htmlMarkup:d="a",..._}=u,{hoverRef:h,isHovered:v}=C(m),E=f(t["link-list__list-item"],{[t["link-list__list-item--"+c]]:c}),N=f(t["link-list__anchor"],t["link-list__anchor--"+l],{[t["link-list__anchor--fill"]]:c==="fill",[t["link-list__anchor--"+r]]:r,[t["link-list__anchor--button"]]:d==="button"},a);return i.createElement("li",{className:E,ref:s,"data-testid":p,"data-analyticsid":b.Link},d==="a"&&i.createElement("a",{className:N,ref:h,rel:e==="_blank"?"noopener noreferrer":void 0,target:e,..._},y(o,"span",R,v,r,n)),d==="button"&&i.createElement("button",{className:N,ref:h,type:"button",..._},y(o,"span",R,v,r,n)))}),w=i.forwardRef(function(s,o){const{children:a,className:l="",chevron:n=!1,size:r="medium",color:L,testId:m,variant:p="line"}=s;return i.createElement("ul",{ref:o,className:f(t["link-list"],l),"data-testid":m,"data-analyticsid":b.LinkList},i.Children.map(a,e=>{if(e.type===k)return i.cloneElement(e,{color:L,size:r,chevron:n,variant:p})}))});w.Link=k;k.displayName="LinkList.Link";export{w as LinkList,w as default};
1
+ import i from"react";import f from"classnames";import{useHover as C}from"../../hooks/useHover.js";import t from"./styles.module.scss";import{AnalyticsId as b}from"../../constants.js";import{r as y}from"../../ListHeader.js";import R from"../Icons/ChevronRight.js";import"../../Avatar.js";import"../Icons/Icon.js";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../utils/environment.js";import"../Icons/Check.js";import"../Avatar/styles.module.scss";import"../../theme/palette.js";import"../../Badge.js";import"../Badge/styles.module.scss";import"../../ListHeaderText.js";import"../../StatusDot.js";import"../../theme/grid.js";import"../../hooks/useBreakpoint.js";import"../../theme/currys/color.js";import"../../theme/index.js";import"../../theme/spacers.js";import"../Icons/Attachment.js";import"../Icons/Group.js";import"../Icons/NoAccess.js";import"../Icons/Undo.js";import"../StatusDot/styles.module.scss";import"../ListHeader/styles.module.scss";import"../../utils/component.js";const k=i.forwardRef((u,s)=>{const{children:o,className:l="",color:a="neutral",icon:n,size:r="medium",chevron:_=!1,linkRef:m,testId:p,target:e,variant:c,htmlMarkup:d="a",...L}=u,{hoverRef:h,isHovered:v}=C(m),E=f(t["link-list__list-item"],{[t["link-list__list-item--line"]]:c==="line",[t["link-list__list-item--outline"]]:c==="outline"}),N=f(t["link-list__anchor"],t["link-list__anchor--"+a],{[t["link-list__anchor--fill"]]:c==="fill",[t["link-list__anchor--"+r]]:r,[t["link-list__anchor--button"]]:d==="button"},l);return i.createElement("li",{className:E,ref:s,"data-testid":p,"data-analyticsid":b.Link},d==="a"&&i.createElement("a",{className:N,ref:h,rel:e==="_blank"?"noopener noreferrer":void 0,target:e,...L},y(o,"span",R,v,r,n)),d==="button"&&i.createElement("button",{className:N,ref:h,type:"button",...L},y(o,"span",R,v,r,n)))}),w=i.forwardRef(function(s,o){const{children:l,className:a="",chevron:n=!1,size:r="medium",color:_,testId:m,variant:p="line"}=s;return i.createElement("ul",{ref:o,className:f(t["link-list"],a),"data-testid":m,"data-analyticsid":b.LinkList},i.Children.map(l,e=>{if(e.type===k)return i.cloneElement(e,{color:_,size:r,chevron:n,variant:p})}))});w.Link=k;k.displayName="LinkList.Link";export{w as LinkList,w as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/components/LinkList/LinkList.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'classnames';\n\nimport { PaletteNames } from '../../theme/palette';\nimport { useHover } from '../../hooks/useHover';\n\nimport LinkListStyles from './styles.module.scss';\nimport { AnalyticsId } from '../../constants';\nimport { ListHeaderType, renderListHeader } from '../ListHeader/ListHeader';\nimport ChevronRight from '../Icons/ChevronRight';\n\nexport type LinkListSize = 'small' | 'medium' | 'large';\n\nexport type LinkAnchorTargets = '_self' | '_blank' | '_parent';\n\nexport type LinkListColors = PaletteNames;\nexport type LinkListVariant = 'line' | 'outline' | 'fill';\n\nexport interface LinkType extends React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLLIElement>> {\n ListHeader?: ListHeaderType;\n}\n\nexport type LinkTags = 'button' | 'a';\nexport interface CompoundComponent extends React.ForwardRefExoticComponent<LinkListProps & React.RefAttributes<HTMLUListElement>> {\n Link: LinkType;\n}\n\ninterface LinkListProps {\n /** Items in the LinkList */\n children: React.ReactNode;\n /** Adds custom classes to the element. */\n className?: string;\n /** Changes the link list background color on hover. */\n color?: LinkListColors;\n /** Toggles chevron icon on or off. */\n chevron?: boolean;\n /** @deprecated Skal fases ut - Brukes ikke lenger. */\n bottomBorder?: boolean;\n /** @deprecated Skal fases ut - Brukes ikke lenger. */\n topBorder?: boolean;\n /** Changes size of the LinkList. */\n size?: LinkListSize;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Sets visual priority */\n variant?: LinkListVariant;\n}\n\ntype Modify<T, R> = Omit<T, keyof R> & R;\n\nexport type LinkProps = Modify<\n React.HTMLAttributes<HTMLAnchorElement | HTMLButtonElement>,\n {\n children: React.ReactNode;\n chevron?: boolean;\n className?: string;\n icon?: React.ReactElement;\n href?: string;\n target?: LinkAnchorTargets;\n /** HTML markup for link. Default: a */\n htmlMarkup?: LinkTags;\n /**\n * Ref for lenke/knapp\n */\n linkRef?: React.RefObject<HTMLButtonElement | HTMLAnchorElement>;\n /** Sets the data-testid attribute. */\n testId?: string;\n }\n> &\n Pick<LinkListProps, 'color' | 'size' | 'variant'>;\n\nconst Link: LinkType = React.forwardRef((props: LinkProps, ref: React.Ref<HTMLLIElement>) => {\n const {\n children,\n className = '',\n color = 'neutral',\n icon,\n size = 'medium',\n chevron = false,\n linkRef,\n testId,\n target,\n variant,\n htmlMarkup = 'a',\n ...restProps\n } = props;\n const { hoverRef, isHovered } = useHover<HTMLButtonElement | HTMLAnchorElement>(linkRef);\n\n const liClasses = cn(LinkListStyles['link-list__list-item'], {\n [LinkListStyles['link-list__list-item--' + variant]]: variant,\n });\n const linkClasses = cn(\n LinkListStyles['link-list__anchor'],\n LinkListStyles['link-list__anchor--' + color],\n\n {\n [LinkListStyles['link-list__anchor--fill']]: variant === 'fill',\n [LinkListStyles['link-list__anchor--' + size]]: size,\n [LinkListStyles['link-list__anchor--button']]: htmlMarkup === 'button',\n },\n className\n );\n\n return (\n <li className={liClasses} ref={ref} data-testid={testId} data-analyticsid={AnalyticsId.Link}>\n {htmlMarkup === 'a' && (\n <a\n className={linkClasses}\n ref={hoverRef as React.RefObject<HTMLAnchorElement>}\n rel={target === '_blank' ? 'noopener noreferrer' : undefined}\n target={target}\n {...restProps}\n >\n {renderListHeader(children, 'span', ChevronRight, isHovered, size, icon)}\n </a>\n )}\n {htmlMarkup === 'button' && (\n <button className={linkClasses} ref={hoverRef as React.RefObject<HTMLButtonElement>} type=\"button\" {...restProps}>\n {renderListHeader(children, 'span', ChevronRight, isHovered, size, icon)}\n </button>\n )}\n </li>\n );\n});\n\nexport const LinkList = React.forwardRef(function LinkListForwardedRef(props: LinkListProps, ref: React.Ref<HTMLUListElement>) {\n const { children, className = '', chevron = false, size = 'medium', color, testId, variant = 'line' } = props;\n return (\n <ul ref={ref} className={cn(LinkListStyles['link-list'], className)} data-testid={testId} data-analyticsid={AnalyticsId.LinkList}>\n {React.Children.map(children, (child: React.ReactNode | React.ReactElement<LinkProps>) => {\n if ((child as React.ReactElement<LinkProps>).type === Link) {\n return React.cloneElement(child as React.ReactElement<LinkProps>, { color, size, chevron, variant });\n }\n })}\n </ul>\n );\n}) as CompoundComponent;\n\nLinkList.Link = Link;\nLink.displayName = 'LinkList.Link';\n\nexport default LinkList;\n"],"names":["Link","React","props","ref","children","className","color","icon","size","chevron","linkRef","testId","target","variant","htmlMarkup","restProps","hoverRef","isHovered","useHover","liClasses","cn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U,GAAO,KAAAD,EAAO,SAAU,MAAAF,EAAO,OAAAK,EAAQ,QAAAE,EAAU,MAAA,EAAWX,EACxG,OACGD,EAAA,cAAA,KAAA,CAAG,IAAAE,EAAU,UAAWiB,EAAGC,EAAe,aAAchB,CAAS,EAAG,cAAaM,EAAQ,mBAAkBY,EAAY,QAAA,EACrHtB,EAAM,SAAS,IAAIG,EAAWuB,GAA2D,CACnF,GAAAA,EAAwC,OAAS3B,EAC7C,OAAAC,EAAM,aAAa0B,EAAwC,CAAE,MAAArB,EAAO,KAAAE,EAAM,QAAAC,EAAS,QAAAI,EAAS,CAEtG,CAAA,CACH,CAEJ,CAAC,EAEDa,EAAS,KAAO1B,EAChBA,EAAK,YAAc"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/LinkList/LinkList.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'classnames';\n\nimport { PaletteNames } from '../../theme/palette';\nimport { useHover } from '../../hooks/useHover';\n\nimport LinkListStyles from './styles.module.scss';\nimport { AnalyticsId } from '../../constants';\nimport { ListHeaderType, renderListHeader } from '../ListHeader/ListHeader';\nimport ChevronRight from '../Icons/ChevronRight';\n\nexport type LinkListSize = 'small' | 'medium' | 'large';\n\nexport type LinkAnchorTargets = '_self' | '_blank' | '_parent';\n\nexport type LinkListColors = PaletteNames;\nexport type LinkListVariant = 'line' | 'outline' | 'fill';\n\nexport interface LinkType extends React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLLIElement>> {\n ListHeader?: ListHeaderType;\n}\n\nexport type LinkTags = 'button' | 'a';\nexport interface CompoundComponent extends React.ForwardRefExoticComponent<LinkListProps & React.RefAttributes<HTMLUListElement>> {\n Link: LinkType;\n}\n\ninterface LinkListProps {\n /** Items in the LinkList */\n children: React.ReactNode;\n /** Adds custom classes to the element. */\n className?: string;\n /** Changes the link list background color on hover. */\n color?: LinkListColors;\n /** Toggles chevron icon on or off. */\n chevron?: boolean;\n /** @deprecated Skal fases ut - Brukes ikke lenger. */\n bottomBorder?: boolean;\n /** @deprecated Skal fases ut - Brukes ikke lenger. */\n topBorder?: boolean;\n /** Changes size of the LinkList. */\n size?: LinkListSize;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Sets visual priority */\n variant?: LinkListVariant;\n}\n\ntype Modify<T, R> = Omit<T, keyof R> & R;\n\nexport type LinkProps = Modify<\n React.HTMLAttributes<HTMLAnchorElement | HTMLButtonElement>,\n {\n children: React.ReactNode;\n chevron?: boolean;\n className?: string;\n icon?: React.ReactElement;\n href?: string;\n target?: LinkAnchorTargets;\n /** HTML markup for link. Default: a */\n htmlMarkup?: LinkTags;\n /**\n * Ref for lenke/knapp\n */\n linkRef?: React.RefObject<HTMLButtonElement | HTMLAnchorElement>;\n /** Sets the data-testid attribute. */\n testId?: string;\n }\n> &\n Pick<LinkListProps, 'color' | 'size' | 'variant'>;\n\nconst Link: LinkType = React.forwardRef((props: LinkProps, ref: React.Ref<HTMLLIElement>) => {\n const {\n children,\n className = '',\n color = 'neutral',\n icon,\n size = 'medium',\n chevron = false,\n linkRef,\n testId,\n target,\n variant,\n htmlMarkup = 'a',\n ...restProps\n } = props;\n const { hoverRef, isHovered } = useHover<HTMLButtonElement | HTMLAnchorElement>(linkRef);\n\n const liClasses = cn(LinkListStyles['link-list__list-item'], {\n [LinkListStyles['link-list__list-item--line']]: variant === 'line',\n [LinkListStyles['link-list__list-item--outline']]: variant === 'outline',\n });\n const linkClasses = cn(\n LinkListStyles['link-list__anchor'],\n LinkListStyles['link-list__anchor--' + color],\n\n {\n [LinkListStyles['link-list__anchor--fill']]: variant === 'fill',\n [LinkListStyles['link-list__anchor--' + size]]: size,\n [LinkListStyles['link-list__anchor--button']]: htmlMarkup === 'button',\n },\n className\n );\n\n return (\n <li className={liClasses} ref={ref} data-testid={testId} data-analyticsid={AnalyticsId.Link}>\n {htmlMarkup === 'a' && (\n <a\n className={linkClasses}\n ref={hoverRef as React.RefObject<HTMLAnchorElement>}\n rel={target === '_blank' ? 'noopener noreferrer' : undefined}\n target={target}\n {...restProps}\n >\n {renderListHeader(children, 'span', ChevronRight, isHovered, size, icon)}\n </a>\n )}\n {htmlMarkup === 'button' && (\n <button className={linkClasses} ref={hoverRef as React.RefObject<HTMLButtonElement>} type=\"button\" {...restProps}>\n {renderListHeader(children, 'span', ChevronRight, isHovered, size, icon)}\n </button>\n )}\n </li>\n );\n});\n\nexport const LinkList = React.forwardRef(function LinkListForwardedRef(props: LinkListProps, ref: React.Ref<HTMLUListElement>) {\n const { children, className = '', chevron = false, size = 'medium', color, testId, variant = 'line' } = props;\n return (\n <ul ref={ref} className={cn(LinkListStyles['link-list'], className)} data-testid={testId} data-analyticsid={AnalyticsId.LinkList}>\n {React.Children.map(children, (child: React.ReactNode | React.ReactElement<LinkProps>) => {\n if ((child as React.ReactElement<LinkProps>).type === Link) {\n return React.cloneElement(child as React.ReactElement<LinkProps>, { color, size, chevron, variant });\n }\n })}\n </ul>\n );\n}) as CompoundComponent;\n\nLinkList.Link = Link;\nLink.displayName = 'LinkList.Link';\n\nexport default LinkList;\n"],"names":["Link","React","props","ref","children","className","color","icon","size","chevron","linkRef","testId","target","variant","htmlMarkup","restProps","hoverRef","isHovered","useHover","liClasses","cn","LinkListStyles","linkClasses","AnalyticsId","renderListHeader","ChevronRight","LinkList","child"],"mappings":"s+BAuEA,MAAMA,EAAiBC,EAAM,WAAW,CAACC,EAAkBC,IAAkC,CACrF,KAAA,CACJ,SAAAC,EACA,UAAAC,EAAY,GACZ,MAAAC,EAAQ,UACR,KAAAC,EACA,KAAAC,EAAO,SACP,QAAAC,EAAU,GACV,QAAAC,EACA,OAAAC,EACA,OAAAC,EACA,QAAAC,EACA,WAAAC,EAAa,OACVC,CACD,EAAAb,EACE,CAAE,SAAAc,EAAU,UAAAC,CAAU,EAAIC,EAAgDR,CAAO,EAEjFS,EAAYC,EAAGC,EAAe,wBAAyB,CAC3D,CAACA,EAAe,+BAAgCR,IAAY,OAC5D,CAACQ,EAAe,kCAAmCR,IAAY,S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@@ -10,7 +10,7 @@ export interface ListHeaderType extends React.ForwardRefExoticComponent<ListHead
10
10
  Badge?: BadgeType;
11
11
  ListHeaderText?: ListHeaderTextType;
12
12
  }
13
- export declare const renderListHeader: (element: React.ReactNode, titleHtmlMarkup: TitleTags, chevronIcon: SvgIcon, isHovered: boolean, size: ListHeaderSize, icon?: React.ReactElement) => false | "" | 0 | JSX.Element | null | undefined;
13
+ export declare const renderListHeader: (element: React.ReactNode, titleHtmlMarkup: TitleTags, chevronIcon: SvgIcon, isHovered: boolean, size: ListHeaderSize, icon?: React.ReactElement) => JSX.Element | undefined;
14
14
  export interface ListHeaderProps {
15
15
  /** Adds custom classes to the ListHeader element. */
16
16
  className?: string;
@@ -30,9 +30,9 @@ export interface ListHeaderProps {
30
30
  testId?: string;
31
31
  }
32
32
  export declare const mapChildren: (children: React.ReactNode, isJsxChild?: boolean) => {
33
- avatarChild?: AvatarProps | undefined;
34
- listHeaderTextChildren: Array<ListHeaderTextProps>;
35
- badgeChild?: BadgeProps | undefined;
33
+ avatarChild?: React.ReactElement<AvatarProps, string | React.JSXElementConstructor<any>> | undefined;
34
+ listHeaderTextChildren: Array<React.ReactElement<ListHeaderTextProps>>;
35
+ badgeChild?: React.ReactElement<BadgeProps, string | React.JSXElementConstructor<any>> | undefined;
36
36
  stringChildren: Array<string>;
37
37
  remainingChildren: Array<any>;
38
38
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ListHeader.d.ts","sourceRoot":"","sources":["../../../src/components/ListHeader/ListHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAe,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC5D,OAAc,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACxD,OAAuB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAI1G,OAAa,EAAY,OAAO,EAAE,MAAM,UAAU,CAAC;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,MAAM,SAAS;;4BAID,MAAM,MAAM,YAAY,CAAC,mBAAmB,CAAC,CAAC;;oBAEtD,MAAM,MAAM,CAAC;uBACV,MAAM,GAAG,CAAC;CAgC9B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,cA0EvB,CAAC;AAEH,eAAe,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"props":{"firstText":{"defaultValue":null,"description":"The first text in the ListHeaderText Component","name":"firstText","parent":{"fileName":"src/components/ListHeader/ListHeaderText/ListHeaderText.tsx","name":"ListHeaderTextProps"},"declarations":[{"fileName":"src/components/ListHeader/ListHeaderText/ListHeaderText.tsx","name":"ListHeaderTextProps"}],"required":true,"type":{"name":"string"}},"firstTextEmphasised":{"defaultValue":null,"description":"Will style the first text as bold","name":"firstTextEmphasised","parent":{"fileName":"src/components/ListHeader/ListHeaderText/ListHeaderText.tsx","name":"ListHeaderTextProps"},"declarations":[{"fileName":"src/components/ListHeader/ListHeaderText/ListHeaderText.tsx","name":"ListHeaderTextProps"}],"required":false,"type":{"name":"boolean"}},"secondText":{"defaultValue":null,"description":"The second text in the ListHeaderText Component","name":"secondText","parent":{"fileName":"src/components/ListHeader/ListHeaderText/ListHeaderText.tsx","name":"ListHeaderTextProps"},"declarations":[{"fileName":"src/components/ListHeader/ListHeaderText/ListHeaderText.tsx","name":"ListHeaderTextProps"}],"required":false,"type":{"name":"string"}},"secondTextEmphasised":{"defaultValue":null,"description":"Will style the second text as bold","name":"secondTextEmphasised","parent":{"fileName":"src/components/ListHeader/ListHeaderText/ListHeaderText.tsx","name":"ListHeaderTextProps"},"declarations":[{"fileName":"src/components/ListHeader/ListHeaderText/ListHeaderText.tsx","name":"ListHeaderTextProps"}],"required":false,"type":{"name":"boolean"}},"subText":{"defaultValue":null,"description":"Whether or not this ListHeaderText is a sub text","name":"subText","parent":{"fileName":"src/components/ListHeader/ListHeaderText/ListHeaderText.tsx","name":"ListHeaderTextProps"},"declarations":[{"fileName":"src/components/ListHeader/ListHeaderText/ListHeaderText.tsx","name":"ListHeaderTextProps"}],"required":false,"type":{"name":"boolean"}},"statusDotVariant":{"defaultValue":null,"description":"Decides the variant for the StatusDot","name":"statusDotVariant","parent":{"fileName":"src/components/ListHeader/ListHeaderText/ListHeaderText.tsx","name":"ListHeaderTextProps"},"declarations":[{"fileName":"src/components/ListHeader/ListHeaderText/ListHeaderText.tsx","name":"ListHeaderTextProps"}],"required":false,"type":{"name":"enum","raw":"StatusDotVariant","value":[{"value":"\"info\"","description":"","fullComment":"","tags":{}},{"value":"\"warning\"","description":"","fullComment":"","tags":{}},{"value":"\"alert\"","description":"","fullComment":"","tags":{}},{"value":"\"cancelled\"","description":"","fullComment":"","tags":{}},{"value":"\"active\"","description":"","fullComment":"","tags":{}},{"value":"\"transparent\"","description":"","fullComment":"","tags":{}},{"value":"\"recurring\"","description":"","fullComment":"","tags":{}},{"value":"\"group\"","description":"","fullComment":"","tags":{}},{"value":"\"noaccess\"","description":"","fullComment":"","tags":{}}]}},"className":{"defaultValue":null,"description":"Adds custom classes to the ListHeaderText component.","name":"className","parent":{"fileName":"src/components/ListHeader/ListHeaderText/ListHeaderText.tsx","name":"ListHeaderTextProps"},"declarations":[{"fileName":"src/components/ListHeader/ListHeaderText/ListHeaderText.tsx","name":"ListHeaderTextProps"}],"required":false,"type":{"name":"string"}},"testId":{"defaultValue":null,"description":"Sets the data-testid attribute.","name":"testId","parent":{"fileName":"src/components/ListHeader/ListHeaderText/ListHeaderText.tsx","name":"ListHeaderTextProps"},"declarations":[{"fileName":"src/components/ListHeader/ListHeaderText/ListHeaderText.tsx","name":"ListHeaderTextProps"}],"required":false,"type":{"name":"string"}},"titleHtmlMarkup":{"defaultValue":null,"description":"Changes the underlying element of the title. Default: span","name":"titleHtmlMarkup","parent":{"fileName":"src/components/ListHeader/ListHeaderText/ListHeaderText.tsx","name":"ListHeaderTextProps"},"declarations":[{"fileName":"src/components/ListHeader/ListHeaderText/ListHeaderText.tsx","name":"ListHeaderTextProps"}],"required":false,"type":{"name":"enum","raw":"TitleTags","value":[{"value":"\"h1\""},{"value":"\"h2\""},{"value":"\"h3\""},{"value":"\"h4\""},{"value":"\"h5\""},{"value":"\"span\""}]}}}}
1
+ {"props":{"firstText":{"defaultValue":null,"description":"The first text in the ListHeaderText Component","name":"firstText","parent":{"fileName":"src/components/ListHeader/ListHeaderText/ListHeaderText.tsx","name":"ListHeaderTextProps"},"declarations":[{"fileName":"src/components/ListHeader/ListHeaderText/ListHeaderText.tsx","name":"ListHeaderTextProps"}],"required":true,"type":{"name":"string"}},"firstTextEmphasised":{"defaultValue":null,"description":"Will style the first text as bold","name":"firstTextEmphasised","parent":{"fileName":"src/components/ListHeader/ListHeaderText/ListHeaderText.tsx","name":"ListHeaderTextProps"},"declarations":[{"fileName":"src/components/ListHeader/ListHeaderText/ListHeaderText.tsx","name":"ListHeaderTextProps"}],"required":false,"type":{"name":"boolean"}},"secondText":{"defaultValue":null,"description":"The second text in the ListHeaderText Component","name":"secondText","parent":{"fileName":"src/components/ListHeader/ListHeaderText/ListHeaderText.tsx","name":"ListHeaderTextProps"},"declarations":[{"fileName":"src/components/ListHeader/ListHeaderText/ListHeaderText.tsx","name":"ListHeaderTextProps"}],"required":false,"type":{"name":"string"}},"secondTextEmphasised":{"defaultValue":null,"description":"Will style the second text as bold","name":"secondTextEmphasised","parent":{"fileName":"src/components/ListHeader/ListHeaderText/ListHeaderText.tsx","name":"ListHeaderTextProps"},"declarations":[{"fileName":"src/components/ListHeader/ListHeaderText/ListHeaderText.tsx","name":"ListHeaderTextProps"}],"required":false,"type":{"name":"boolean"}},"subText":{"defaultValue":null,"description":"Whether or not this ListHeaderText is a sub text","name":"subText","parent":{"fileName":"src/components/ListHeader/ListHeaderText/ListHeaderText.tsx","name":"ListHeaderTextProps"},"declarations":[{"fileName":"src/components/ListHeader/ListHeaderText/ListHeaderText.tsx","name":"ListHeaderTextProps"}],"required":false,"type":{"name":"boolean"}},"statusDotVariant":{"defaultValue":null,"description":"Decides the variant for the StatusDot","name":"statusDotVariant","parent":{"fileName":"src/components/ListHeader/ListHeaderText/ListHeaderText.tsx","name":"ListHeaderTextProps"},"declarations":[{"fileName":"src/components/ListHeader/ListHeaderText/ListHeaderText.tsx","name":"ListHeaderTextProps"}],"required":false,"type":{"name":"enum","raw":"StatusDotVariant","value":[{"value":"\"info\"","description":"","fullComment":"","tags":{}},{"value":"\"warning\"","description":"","fullComment":"","tags":{}},{"value":"\"alert\"","description":"","fullComment":"","tags":{}},{"value":"\"cancelled\"","description":"","fullComment":"","tags":{}},{"value":"\"active\"","description":"","fullComment":"","tags":{}},{"value":"\"transparent\"","description":"","fullComment":"","tags":{}},{"value":"\"recurring\"","description":"","fullComment":"","tags":{}},{"value":"\"group\"","description":"","fullComment":"","tags":{}},{"value":"\"noaccess\"","description":"","fullComment":"","tags":{}},{"value":"\"attachment\"","description":"","fullComment":"","tags":{}}]}},"className":{"defaultValue":null,"description":"Adds custom classes to the ListHeaderText component.","name":"className","parent":{"fileName":"src/components/ListHeader/ListHeaderText/ListHeaderText.tsx","name":"ListHeaderTextProps"},"declarations":[{"fileName":"src/components/ListHeader/ListHeaderText/ListHeaderText.tsx","name":"ListHeaderTextProps"}],"required":false,"type":{"name":"string"}},"testId":{"defaultValue":null,"description":"Sets the data-testid attribute.","name":"testId","parent":{"fileName":"src/components/ListHeader/ListHeaderText/ListHeaderText.tsx","name":"ListHeaderTextProps"},"declarations":[{"fileName":"src/components/ListHeader/ListHeaderText/ListHeaderText.tsx","name":"ListHeaderTextProps"}],"required":false,"type":{"name":"string"}},"titleHtmlMarkup":{"defaultValue":null,"description":"Changes the underlying element of the title. Default: span","name":"titleHtmlMarkup","parent":{"fileName":"src/components/ListHeader/ListHeaderText/ListHeaderText.tsx","name":"ListHeaderTextProps"},"declarations":[{"fileName":"src/components/ListHeader/ListHeaderText/ListHeaderText.tsx","name":"ListHeaderTextProps"}],"required":false,"type":{"name":"enum","raw":"TitleTags","value":[{"value":"\"h1\""},{"value":"\"h2\""},{"value":"\"h3\""},{"value":"\"h4\""},{"value":"\"h5\""},{"value":"\"span\""}]}}}}
@@ -1,2 +1,2 @@
1
- import"../../../ListHeaderText.js";import{L as n,L as q}from"../../../ListHeaderText.js";import"react";import"classnames";import"../../../StatusDot.js";import"../../StatusDot/styles.module.scss";import"../../../constants.js";import"../../Icons/Icon.js";import"../../../hooks/useUuid.js";import"../../../uuid.js";import"../../../utils/environment.js";import"../../Icons/Undo.js";import"../../../theme/currys/color.js";import"../../../theme/index.js";import"../../../theme/palette.js";import"../../../theme/spacers.js";import"../../../theme/grid.js";import"../../Icons/Group.js";import"../../Icons/NoAccess.js";import"../../../hooks/useBreakpoint.js";import"../styles.module.scss";export{n as ListHeaderText,q as default};
1
+ import"../../../ListHeaderText.js";import{L as q,L as v}from"../../../ListHeaderText.js";import"react";import"classnames";import"../../../StatusDot.js";import"../../../theme/grid.js";import"../../../hooks/useBreakpoint.js";import"../../../constants.js";import"../../../theme/currys/color.js";import"../../../theme/index.js";import"../../../theme/palette.js";import"../../../theme/spacers.js";import"../../Icons/Attachment.js";import"../../Icons/Icon.js";import"../../../hooks/useUuid.js";import"../../../uuid.js";import"../../../utils/environment.js";import"../../Icons/Group.js";import"../../Icons/NoAccess.js";import"../../Icons/Undo.js";import"../../StatusDot/styles.module.scss";import"../styles.module.scss";export{q as ListHeaderText,v as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import"../../ListHeader.js";import{L as z,L as A,m as B,r as D}from"../../ListHeader.js";import{L as F}from"../../ListHeaderText.js";import"react";import"classnames";import"../../Avatar.js";import"../Icons/Icon.js";import"../../constants.js";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../utils/environment.js";import"../Icons/Check.js";import"../Avatar/styles.module.scss";import"../../theme/palette.js";import"../../Badge.js";import"../Badge/styles.module.scss";import"./styles.module.scss";import"../../hooks/useBreakpoint.js";import"../../theme/grid.js";import"../../utils/component.js";import"../../StatusDot.js";import"../StatusDot/styles.module.scss";import"../Icons/Undo.js";import"../../theme/currys/color.js";import"../../theme/index.js";import"../../theme/spacers.js";import"../Icons/Group.js";import"../Icons/NoAccess.js";export{z as ListHeader,F as ListHeaderText,A as default,B as mapChildren,D as renderListHeader};
1
+ import"../../ListHeader.js";import{L as A,L as B,m as D,r as E}from"../../ListHeader.js";import{L as G}from"../../ListHeaderText.js";import"react";import"classnames";import"../../Avatar.js";import"../Icons/Icon.js";import"../../constants.js";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../utils/environment.js";import"../Icons/Check.js";import"../Avatar/styles.module.scss";import"../../theme/palette.js";import"../../Badge.js";import"../Badge/styles.module.scss";import"./styles.module.scss";import"../../hooks/useBreakpoint.js";import"../../theme/grid.js";import"../../utils/component.js";import"../../StatusDot.js";import"../../theme/currys/color.js";import"../../theme/index.js";import"../../theme/spacers.js";import"../Icons/Attachment.js";import"../Icons/Group.js";import"../Icons/NoAccess.js";import"../Icons/Undo.js";import"../StatusDot/styles.module.scss";export{A as ListHeader,G as ListHeaderText,B as default,D as mapChildren,E as renderListHeader};
2
2
  //# sourceMappingURL=index.js.map
@@ -103,17 +103,13 @@
103
103
  &__badge {
104
104
  display: flex;
105
105
  align-items: center;
106
- padding-left: getSpacer(2xs);
106
+ margin-left: getSpacer(2xs);
107
107
  &--for-string-content {
108
108
  margin: getSpacer(3xs) 0 getSpacer(3xs) auto;
109
109
  @media (min-width: map-get($grid-breakpoints, md)) {
110
110
  margin: getSpacer(2xs) 0 getSpacer(2xs) auto;
111
111
  }
112
112
  }
113
- &--right {
114
- margin-left: auto;
115
- margin-right: getSpacer(2xs);
116
- }
117
113
  //Height needs to be same as line-height
118
114
  &--small {
119
115
  height: $lineheight-size-xs;
@@ -9,13 +9,11 @@ export type Styles = {
9
9
  'list-header__badge--for-string-content': string;
10
10
  'list-header__badge--large': string;
11
11
  'list-header__badge--medium': string;
12
- 'list-header__badge--right': string;
13
12
  'list-header__badge--small': string;
14
13
  'list-header__chevron': string;
15
14
  'list-header__chevron--for-string-content': string;
16
15
  'list-header__chevron--large': string;
17
16
  'list-header__chevron--medium': string;
18
- 'list-header__chevron--right': string;
19
17
  'list-header__chevron--small': string;
20
18
  'list-header__content': string;
21
19
  'list-header__content--element': string;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { FormMode } from '../../constants';
3
+ interface MaxCharactersProps {
4
+ /** Current input length */
5
+ length: number;
6
+ /** max character limit in textarea */
7
+ maxCharacters: number;
8
+ /** The text is displayed in the end of the text-counter */
9
+ maxText?: string;
10
+ /** Changes the visuals of the textarea */
11
+ mode?: keyof typeof FormMode;
12
+ /** Max width of the component */
13
+ maxWidth?: string;
14
+ }
15
+ declare const MaxCharacters: React.FC<MaxCharactersProps>;
16
+ export default MaxCharacters;
17
+ //# sourceMappingURL=MaxCharacters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MaxCharacters.d.ts","sourceRoot":"","sources":["../../../src/components/MaxCharacters/MaxCharacters.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAI3C,UAAU,kBAAkB;IAC1B,2BAA2B;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,uCAAuC;IACvC,aAAa,EAAE,MAAM,CAAC;IACtB,2DAA2D;IAC3D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,0CAA0C;IAC1C,IAAI,CAAC,EAAE,MAAM,OAAO,QAAQ,CAAC;IAC7B,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAe/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1 @@
1
+ {"props":{"length":{"defaultValue":null,"description":"Current input length","name":"length","parent":{"fileName":"src/components/MaxCharacters/MaxCharacters.tsx","name":"MaxCharactersProps"},"declarations":[{"fileName":"src/components/MaxCharacters/MaxCharacters.tsx","name":"MaxCharactersProps"}],"required":true,"type":{"name":"number"}},"maxCharacters":{"defaultValue":null,"description":"max character limit in textarea","name":"maxCharacters","parent":{"fileName":"src/components/MaxCharacters/MaxCharacters.tsx","name":"MaxCharactersProps"},"declarations":[{"fileName":"src/components/MaxCharacters/MaxCharacters.tsx","name":"MaxCharactersProps"}],"required":true,"type":{"name":"number"}},"maxText":{"defaultValue":null,"description":"The text is displayed in the end of the text-counter","name":"maxText","parent":{"fileName":"src/components/MaxCharacters/MaxCharacters.tsx","name":"MaxCharactersProps"},"declarations":[{"fileName":"src/components/MaxCharacters/MaxCharacters.tsx","name":"MaxCharactersProps"}],"required":false,"type":{"name":"string"}},"mode":{"defaultValue":null,"description":"Changes the visuals of the textarea","name":"mode","parent":{"fileName":"src/components/MaxCharacters/MaxCharacters.tsx","name":"MaxCharactersProps"},"declarations":[{"fileName":"src/components/MaxCharacters/MaxCharacters.tsx","name":"MaxCharactersProps"}],"required":false,"type":{"name":"enum","raw":"\"onwhite\" | \"ongrey\" | \"onblueberry\" | \"ondark\" | \"oninvalid\"","value":[{"value":"\"onwhite\""},{"value":"\"ongrey\""},{"value":"\"onblueberry\""},{"value":"\"ondark\""},{"value":"\"oninvalid\""}]}},"maxWidth":{"defaultValue":null,"description":"Max width of the component","name":"maxWidth","parent":{"fileName":"src/components/MaxCharacters/MaxCharacters.tsx","name":"MaxCharactersProps"},"declarations":[{"fileName":"src/components/MaxCharacters/MaxCharacters.tsx","name":"MaxCharactersProps"}],"required":false,"type":{"name":"string"}}}}
@@ -0,0 +1,26 @@
1
+ @import '../../scss/_spacers.scss';
2
+ @import '../../scss/_breakpoints.scss';
3
+ @import '../../scss/_palette.scss';
4
+ @import '../../scss/_font-settings.scss';
5
+
6
+ .max-characters {
7
+ display: flex;
8
+ justify-content: flex-end;
9
+ padding-top: getSpacer(2xs);
10
+ padding-right: 2px;
11
+ font-size: $font-size-sm;
12
+ line-height: $lineheight-size-sm;
13
+
14
+ @media (min-width: map-get($grid-breakpoints, md)) {
15
+ line-height: $lineheight-size-md;
16
+ font-size: $font-size-md;
17
+ }
18
+
19
+ &--on-dark {
20
+ color: $white;
21
+ }
22
+ &--invalid {
23
+ color: $cherry600;
24
+ font-weight: 600;
25
+ }
26
+ }
@@ -0,0 +1,11 @@
1
+ export type Styles = {
2
+ 'max-characters': string;
3
+ 'max-characters--invalid': string;
4
+ 'max-characters--on-dark': string;
5
+ };
6
+
7
+ export type ClassNames = keyof Styles;
8
+
9
+ declare const styles: Styles;
10
+
11
+ export default styles;
@@ -315,7 +315,6 @@
315
315
  }
316
316
 
317
317
  &__title-container {
318
- display: inline-block;
319
318
  padding-bottom: getSpacer(s);
320
319
  }
321
320
 
@@ -8,7 +8,11 @@ export declare enum StatusDotVariant {
8
8
  transparent = "transparent",
9
9
  recurring = "recurring",
10
10
  group = "group",
11
- noaccess = "noaccess"
11
+ noaccess = "noaccess",
12
+ attachment = "attachment"
13
+ }
14
+ export interface StatusDotIconProps {
15
+ variant?: keyof typeof StatusDotVariant;
12
16
  }
13
17
  export interface StatusDotProps {
14
18
  /** Visual variants for the statusdot */
@@ -17,7 +21,9 @@ export interface StatusDotProps {
17
21
  text: string;
18
22
  /** Adds custom classes to the element. */
19
23
  className?: string;
24
+ /** Sets the data-testid attribute. */
25
+ testId?: string;
20
26
  }
21
- declare const Spacer: React.ForwardRefExoticComponent<StatusDotProps & React.RefAttributes<HTMLElement>>;
22
- export default Spacer;
27
+ declare const StatusDot: React.FC<StatusDotProps>;
28
+ export default StatusDot;
23
29
  //# sourceMappingURL=StatusDot.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StatusDot.d.ts","sourceRoot":"","sources":["../../../src/components/StatusDot/StatusDot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,oBAAY,gBAAgB;IAC1B,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,QAAQ,aAAa;CACtB;AAED,MAAM,WAAW,cAAc;IAC7B,wCAAwC;IACxC,OAAO,CAAC,EAAE,MAAM,OAAO,gBAAgB,CAAC;IACxC,gDAAgD;IAChD,IAAI,EAAE,MAAM,CAAC;IACb,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,MAAM,oFA2BV,CAAC;AAEH,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"StatusDot.d.ts","sourceRoot":"","sources":["../../../src/components/StatusDot/StatusDot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAe1B,oBAAY,gBAAgB;IAC1B,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,UAAU,eAAe;CAC1B;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,MAAM,OAAO,gBAAgB,CAAC;CACzC;AAgBD,MAAM,WAAW,cAAc;IAC7B,wCAAwC;IACxC,OAAO,CAAC,EAAE,MAAM,OAAO,gBAAgB,CAAC;IACxC,gDAAgD;IAChD,IAAI,EAAE,MAAM,CAAC;IACb,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAuBvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"props":{"variant":{"defaultValue":null,"description":"Visual variants for the statusdot","name":"variant","parent":{"fileName":"src/components/StatusDot/StatusDot.tsx","name":"StatusDotProps"},"declarations":[{"fileName":"src/components/StatusDot/StatusDot.tsx","name":"StatusDotProps"}],"required":false,"type":{"name":"enum","raw":"\"info\" | \"warning\" | \"alert\" | \"cancelled\" | \"active\" | \"transparent\" | \"recurring\" | \"group\" | \"noaccess\"","value":[{"value":"\"info\""},{"value":"\"warning\""},{"value":"\"alert\""},{"value":"\"cancelled\""},{"value":"\"active\""},{"value":"\"transparent\""},{"value":"\"recurring\""},{"value":"\"group\""},{"value":"\"noaccess\""}]}},"text":{"defaultValue":null,"description":"Text placed to the right of the statusdot","name":"text","parent":{"fileName":"src/components/StatusDot/StatusDot.tsx","name":"StatusDotProps"},"declarations":[{"fileName":"src/components/StatusDot/StatusDot.tsx","name":"StatusDotProps"}],"required":true,"type":{"name":"string"}},"className":{"defaultValue":null,"description":"Adds custom classes to the element.","name":"className","parent":{"fileName":"src/components/StatusDot/StatusDot.tsx","name":"StatusDotProps"},"declarations":[{"fileName":"src/components/StatusDot/StatusDot.tsx","name":"StatusDotProps"}],"required":false,"type":{"name":"string"}}}}
1
+ {"props":{"variant":{"defaultValue":null,"description":"Visual variants for the statusdot","name":"variant","parent":{"fileName":"src/components/StatusDot/StatusDot.tsx","name":"StatusDotProps"},"declarations":[{"fileName":"src/components/StatusDot/StatusDot.tsx","name":"StatusDotProps"}],"required":false,"type":{"name":"enum","raw":"\"info\" | \"warning\" | \"alert\" | \"cancelled\" | \"active\" | \"transparent\" | \"recurring\" | \"group\" | \"noaccess\" | \"attachment\"","value":[{"value":"\"info\""},{"value":"\"warning\""},{"value":"\"alert\""},{"value":"\"cancelled\""},{"value":"\"active\""},{"value":"\"transparent\""},{"value":"\"recurring\""},{"value":"\"group\""},{"value":"\"noaccess\""},{"value":"\"attachment\""}]}},"text":{"defaultValue":null,"description":"Text placed to the right of the statusdot","name":"text","parent":{"fileName":"src/components/StatusDot/StatusDot.tsx","name":"StatusDotProps"},"declarations":[{"fileName":"src/components/StatusDot/StatusDot.tsx","name":"StatusDotProps"}],"required":true,"type":{"name":"string"}},"className":{"defaultValue":null,"description":"Adds custom classes to the element.","name":"className","parent":{"fileName":"src/components/StatusDot/StatusDot.tsx","name":"StatusDotProps"},"declarations":[{"fileName":"src/components/StatusDot/StatusDot.tsx","name":"StatusDotProps"}],"required":false,"type":{"name":"string"}},"testId":{"defaultValue":null,"description":"Sets the data-testid attribute.","name":"testId","parent":{"fileName":"src/components/StatusDot/StatusDot.tsx","name":"StatusDotProps"},"declarations":[{"fileName":"src/components/StatusDot/StatusDot.tsx","name":"StatusDotProps"}],"required":false,"type":{"name":"string"}}}}
@@ -1,2 +1,2 @@
1
- import"../../StatusDot.js";import{a as h,S as j}from"../../StatusDot.js";import"react";import"classnames";import"./styles.module.scss";import"../../constants.js";import"../Icons/Icon.js";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../utils/environment.js";import"../Icons/Undo.js";import"../../theme/currys/color.js";import"../../theme/index.js";import"../../theme/palette.js";import"../../theme/spacers.js";import"../../theme/grid.js";import"../Icons/Group.js";import"../Icons/NoAccess.js";import"../../hooks/useBreakpoint.js";export{h as StatusDotVariant,j as default};
1
+ import"../../StatusDot.js";import{a as j,S as k}from"../../StatusDot.js";import"react";import"classnames";import"../../theme/grid.js";import"../../hooks/useBreakpoint.js";import"../../constants.js";import"../../theme/currys/color.js";import"../../theme/index.js";import"../../theme/palette.js";import"../../theme/spacers.js";import"../Icons/Attachment.js";import"../Icons/Icon.js";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../utils/environment.js";import"../Icons/Group.js";import"../Icons/NoAccess.js";import"../Icons/Undo.js";import"./styles.module.scss";export{j as StatusDotVariant,k as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -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;AAIpF,UAAU,aACR,SAAQ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,SAAQ,IAAI,CACV,KAAK,CAAC,mBAAmB,CAAC,mBAAmB,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,2 +1,2 @@
1
- import"../../Textarea.js";import{T as d}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";export{d as default};
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};
2
2
  //# sourceMappingURL=index.js.map
@@ -10,32 +10,6 @@
10
10
  &--gutterBottom {
11
11
  margin-bottom: getSpacer(s);
12
12
  }
13
-
14
- &__counter-wrapper {
15
- display: flex;
16
- justify-content: flex-end;
17
- padding-top: getSpacer(2xs);
18
- padding-right: 2px;
19
- font-size: $font-size-sm;
20
- line-height: 28px;
21
-
22
- @media (min-width: map-get($grid-breakpoints, md)) {
23
- line-height: 30px;
24
- font-size: $font-size-md;
25
- }
26
-
27
- p {
28
- margin: 0;
29
- }
30
-
31
- &--on-dark {
32
- color: $white;
33
- }
34
- &--invalid {
35
- color: $cherry600;
36
- font-weight: 600;
37
- }
38
- }
39
13
  }
40
14
 
41
15
  .content-wrapper {
@@ -10,9 +10,6 @@ export type Styles = {
10
10
  'content-wrapper--transparent': string;
11
11
  textarea: string;
12
12
  'textarea__after-label-children': string;
13
- 'textarea__counter-wrapper': string;
14
- 'textarea__counter-wrapper--invalid': string;
15
- 'textarea__counter-wrapper--on-dark': string;
16
13
  'textarea__label-wrapper': string;
17
14
  'textarea__label-wrapper--on-dark': string;
18
15
  'textarea--gutterBottom': string;