@helsenorge/designsystem-react 9.4.0 → 9.4.3

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 (1483) hide show
  1. package/AnchorLink.js +47 -42
  2. package/AnchorLink.js.map +1 -1
  3. package/Avatar.js +31 -26
  4. package/Avatar.js.map +1 -1
  5. package/Badge.js +28 -24
  6. package/Badge.js.map +1 -1
  7. package/Button.js +158 -113
  8. package/Button.js.map +1 -1
  9. package/CHANGELOG.md +29 -0
  10. package/Checkbox.js +130 -106
  11. package/Checkbox.js.map +1 -1
  12. package/Close.js +26 -22
  13. package/Close.js.map +1 -1
  14. package/ErrorBoundary.js +22 -16
  15. package/ErrorBoundary.js.map +1 -1
  16. package/ErrorWrapper.js +9 -9
  17. package/ErrorWrapper.js.map +1 -1
  18. package/Expander.js +110 -91
  19. package/Expander.js.map +1 -1
  20. package/FormGroup.js +121 -108
  21. package/FormGroup.js.map +1 -1
  22. package/FormLayout.js +38 -26
  23. package/FormLayout.js.map +1 -1
  24. package/HelpBubble.js +64 -54
  25. package/HelpBubble.js.map +1 -1
  26. package/HighlightPanel.js +86 -60
  27. package/HighlightPanel.js.map +1 -1
  28. package/HorizontalScroll.js +39 -29
  29. package/HorizontalScroll.js.map +1 -1
  30. package/Icon.js +62 -50
  31. package/Icon.js.map +1 -1
  32. package/Illustration.js +40 -32
  33. package/Illustration.js.map +1 -1
  34. package/Input.js +187 -129
  35. package/Input.js.map +1 -1
  36. package/Label.js +117 -97
  37. package/Label.js.map +1 -1
  38. package/LazyIcon.js +21 -18
  39. package/LazyIcon.js.map +1 -1
  40. package/LazyIllustration.js +26 -22
  41. package/LazyIllustration.js.map +1 -1
  42. package/LinkList.js +54 -49
  43. package/LinkList.js.map +1 -1
  44. package/List.js +11 -9
  45. package/List.js.map +1 -1
  46. package/ListHeader.js +109 -76
  47. package/ListHeader.js.map +1 -1
  48. package/ListHeaderText.js +31 -27
  49. package/ListHeaderText.js.map +1 -1
  50. package/MaxCharacters.js +13 -11
  51. package/MaxCharacters.js.map +1 -1
  52. package/NotificationBadge.js +47 -47
  53. package/NotificationBadge.js.map +1 -1
  54. package/Panel.js +285 -215
  55. package/Panel.js.map +1 -1
  56. package/PopOver.js +187 -71
  57. package/PopOver.js.map +1 -1
  58. package/RadioButton.js +104 -87
  59. package/RadioButton.js.map +1 -1
  60. package/Select.js +87 -70
  61. package/Select.js.map +1 -1
  62. package/Slider.js +252 -165
  63. package/Slider.js.map +1 -1
  64. package/Spacer.js +25 -24
  65. package/Spacer.js.map +1 -1
  66. package/StatusDot.js +58 -25
  67. package/StatusDot.js.map +1 -1
  68. package/StepButtons.js +28 -24
  69. package/StepButtons.js.map +1 -1
  70. package/TabList.js +102 -69
  71. package/TabList.js.map +1 -1
  72. package/TabPanel.js +12 -14
  73. package/TabPanel.js.map +1 -1
  74. package/Table.js +139 -72
  75. package/Table.js.map +1 -1
  76. package/TableBody.js +9 -9
  77. package/TableBody.js.map +1 -1
  78. package/TableCell.js +29 -24
  79. package/TableCell.js.map +1 -1
  80. package/TableExpandedRow.js +32 -30
  81. package/TableExpandedRow.js.map +1 -1
  82. package/TableExpanderCell.js +25 -24
  83. package/TableExpanderCell.js.map +1 -1
  84. package/TableHead.js +22 -17
  85. package/TableHead.js.map +1 -1
  86. package/TableHeadCell.js +40 -32
  87. package/TableHeadCell.js.map +1 -1
  88. package/TableRow.js +48 -47
  89. package/TableRow.js.map +1 -1
  90. package/Textarea.js +133 -96
  91. package/Textarea.js.map +1 -1
  92. package/Title.js +26 -20
  93. package/Title.js.map +1 -1
  94. package/TooltipWord.js +20 -20
  95. package/TooltipWord.js.map +1 -1
  96. package/Trigger.js +76 -59
  97. package/Trigger.js.map +1 -1
  98. package/__mocks__/IntersectionObserver.js +3 -3
  99. package/__mocks__/IntersectionObserver.js.map +1 -1
  100. package/__mocks__/MutationObserver.js +3 -3
  101. package/__mocks__/MutationObserver.js.map +1 -1
  102. package/__mocks__/ResizeObserver.js +3 -3
  103. package/__mocks__/ResizeObserver.js.map +1 -1
  104. package/__mocks__/matchMedia.d.ts +1 -1
  105. package/__mocks__/matchMedia.js +9 -9
  106. package/__mocks__/matchMedia.js.map +1 -1
  107. package/__mocks__/useHover.js +3 -1
  108. package/__mocks__/useHover.js.map +1 -1
  109. package/__mocks__/usePseudoClasses.js +3 -1
  110. package/__mocks__/usePseudoClasses.js.map +1 -1
  111. package/__mocks__/useSize.js.map +1 -1
  112. package/__mocks__/uuid.js +6 -3
  113. package/__mocks__/uuid.js.map +1 -1
  114. package/components/AnchorLink/AnchorLink.d.ts +1 -1
  115. package/components/AnchorLink/index.d.ts +1 -1
  116. package/components/AnchorLink/index.js +2 -2
  117. package/components/Avatar/Avatar.d.ts +1 -1
  118. package/components/Avatar/index.d.ts +1 -1
  119. package/components/Avatar/index.js +4 -4
  120. package/components/Badge/Badge.d.ts +1 -1
  121. package/components/Badge/NotificationBadge.d.ts +1 -1
  122. package/components/Badge/index.d.ts +1 -1
  123. package/components/Badge/index.js +2 -2
  124. package/components/Button/Button.d.ts +1 -1
  125. package/components/Button/index.d.ts +1 -1
  126. package/components/Button/index.js +2 -2
  127. package/components/Checkbox/Checkbox.d.ts +1 -1
  128. package/components/Checkbox/index.d.ts +1 -1
  129. package/components/Checkbox/index.js +3 -3
  130. package/components/Chip/Chip.d.ts +1 -1
  131. package/components/Chip/index.d.ts +1 -1
  132. package/components/Chip/index.js +42 -24
  133. package/components/Chip/index.js.map +1 -1
  134. package/components/Close/Close.d.ts +1 -1
  135. package/components/Close/index.d.ts +1 -1
  136. package/components/Close/index.js +2 -2
  137. package/components/DictionaryTrigger/DictionaryTrigger.d.ts +1 -1
  138. package/components/DictionaryTrigger/index.d.ts +1 -1
  139. package/components/DictionaryTrigger/index.js +18 -18
  140. package/components/DictionaryTrigger/index.js.map +1 -1
  141. package/components/Dropdown/Dropdown.d.ts +1 -1
  142. package/components/Dropdown/Dropdown.test.d.ts +0 -1
  143. package/components/Dropdown/index.d.ts +1 -1
  144. package/components/Dropdown/index.js +134 -97
  145. package/components/Dropdown/index.js.map +1 -1
  146. package/components/Duolist/Duolist.d.ts +1 -1
  147. package/components/Duolist/index.d.ts +1 -1
  148. package/components/Duolist/index.js +77 -58
  149. package/components/Duolist/index.js.map +1 -1
  150. package/components/EmptyState/EmptyState.d.ts +1 -1
  151. package/components/EmptyState/index.d.ts +1 -1
  152. package/components/EmptyState/index.js +30 -29
  153. package/components/EmptyState/index.js.map +1 -1
  154. package/components/ErrorWrapper/ErrorWrapper.d.ts +1 -1
  155. package/components/ErrorWrapper/index.d.ts +1 -1
  156. package/components/ErrorWrapper/index.js +3 -3
  157. package/components/Expander/Expander.d.ts +1 -1
  158. package/components/Expander/index.d.ts +1 -1
  159. package/components/Expander/index.js +4 -4
  160. package/components/Expander/styles.module.scss +11 -2
  161. package/components/Expander/styles.module.scss.d.ts +2 -1
  162. package/components/ExpanderHierarchy/Expander.d.ts +1 -1
  163. package/components/ExpanderHierarchy/ExpanderButton.d.ts +1 -1
  164. package/components/ExpanderHierarchy/ExpanderHierarchy.d.ts +1 -1
  165. package/components/ExpanderHierarchy/index.d.ts +1 -1
  166. package/components/ExpanderHierarchy/index.js +82 -73
  167. package/components/ExpanderHierarchy/index.js.map +1 -1
  168. package/components/ExpanderList/ExpanderList.d.ts +1 -1
  169. package/components/ExpanderList/ExpanderList.test.d.ts +0 -1
  170. package/components/ExpanderList/index.d.ts +1 -1
  171. package/components/ExpanderList/index.js +143 -113
  172. package/components/ExpanderList/index.js.map +1 -1
  173. package/components/EyebrowHeader/EyebrowHeader.d.ts +2 -2
  174. package/components/EyebrowHeader/index.d.ts +1 -1
  175. package/components/EyebrowHeader/index.js +12 -9
  176. package/components/EyebrowHeader/index.js.map +1 -1
  177. package/components/FormGroup/FormGroup.d.ts +1 -1
  178. package/components/FormGroup/index.d.ts +1 -1
  179. package/components/FormGroup/index.js +3 -3
  180. package/components/FormLayout/FormLayout.d.ts +1 -1
  181. package/components/FormLayout/index.d.ts +1 -1
  182. package/components/FormLayout/index.js +5 -5
  183. package/components/HelpBubble/HelpBubble.d.ts +1 -1
  184. package/components/HelpBubble/index.d.ts +1 -1
  185. package/components/HelpBubble/index.js +4 -4
  186. package/components/HelpPanel/HelpPanel.d.ts +1 -1
  187. package/components/HelpPanel/index.d.ts +1 -1
  188. package/components/HelpPanel/index.js +20 -18
  189. package/components/HelpPanel/index.js.map +1 -1
  190. package/components/HelpQuestion/HelpQuestion.d.ts +1 -1
  191. package/components/HelpQuestion/index.d.ts +1 -1
  192. package/components/HelpQuestion/index.js +23 -22
  193. package/components/HelpQuestion/index.js.map +1 -1
  194. package/components/HighlightPanel/HighlightPanel.d.ts +1 -1
  195. package/components/HighlightPanel/index.d.ts +1 -1
  196. package/components/HighlightPanel/index.js +4 -4
  197. package/components/HorizontalScroll/HorizontalScroll.d.ts +1 -1
  198. package/components/HorizontalScroll/index.d.ts +1 -1
  199. package/components/HorizontalScroll/index.js +3 -3
  200. package/components/Icon/Icon.d.ts +1 -1
  201. package/components/Icon/index.d.ts +1 -1
  202. package/components/Icon/index.js +7 -7
  203. package/components/Icons/ActiveMonitoring.d.ts +1 -1
  204. package/components/Icons/ActiveMonitoring.js +19 -15
  205. package/components/Icons/ActiveMonitoring.js.map +1 -1
  206. package/components/Icons/AcupunctureBack.d.ts +1 -1
  207. package/components/Icons/AcupunctureBack.js +9 -8
  208. package/components/Icons/AcupunctureBack.js.map +1 -1
  209. package/components/Icons/AdditionalIconInformation.js +2 -2
  210. package/components/Icons/AdditionalIconInformation.js.map +1 -1
  211. package/components/Icons/AlarmClock.d.ts +1 -1
  212. package/components/Icons/AlarmClock.js +32 -26
  213. package/components/Icons/AlarmClock.js.map +1 -1
  214. package/components/Icons/AlertSignFill.d.ts +1 -1
  215. package/components/Icons/AlertSignFill.js +10 -4
  216. package/components/Icons/AlertSignFill.js.map +1 -1
  217. package/components/Icons/AlertSignStroke.d.ts +1 -1
  218. package/components/Icons/AlertSignStroke.js +10 -4
  219. package/components/Icons/AlertSignStroke.js.map +1 -1
  220. package/components/Icons/Amputation.d.ts +1 -1
  221. package/components/Icons/Amputation.js +7 -3
  222. package/components/Icons/Amputation.js.map +1 -1
  223. package/components/Icons/Anxiety.d.ts +1 -1
  224. package/components/Icons/Anxiety.js +7 -3
  225. package/components/Icons/Anxiety.js.map +1 -1
  226. package/components/Icons/Apple.d.ts +1 -1
  227. package/components/Icons/Apple.js +7 -3
  228. package/components/Icons/Apple.js.map +1 -1
  229. package/components/Icons/Archive.d.ts +1 -1
  230. package/components/Icons/Archive.js +34 -28
  231. package/components/Icons/Archive.js.map +1 -1
  232. package/components/Icons/ArmFlexing.d.ts +1 -1
  233. package/components/Icons/ArmFlexing.js +7 -3
  234. package/components/Icons/ArmFlexing.js.map +1 -1
  235. package/components/Icons/ArrowDown.d.ts +1 -1
  236. package/components/Icons/ArrowDown.js +34 -28
  237. package/components/Icons/ArrowDown.js.map +1 -1
  238. package/components/Icons/ArrowLeft.d.ts +1 -1
  239. package/components/Icons/ArrowLeft.js +10 -4
  240. package/components/Icons/ArrowLeft.js.map +1 -1
  241. package/components/Icons/ArrowRight.d.ts +1 -1
  242. package/components/Icons/ArrowRight.js +10 -4
  243. package/components/Icons/ArrowRight.js.map +1 -1
  244. package/components/Icons/ArrowUp.d.ts +1 -1
  245. package/components/Icons/ArrowUp.js +34 -28
  246. package/components/Icons/ArrowUp.js.map +1 -1
  247. package/components/Icons/ArrowUpRight.d.ts +1 -1
  248. package/components/Icons/ArrowUpRight.js +10 -4
  249. package/components/Icons/ArrowUpRight.js.map +1 -1
  250. package/components/Icons/Attachment.d.ts +1 -1
  251. package/components/Icons/Attachment.js +12 -4
  252. package/components/Icons/Attachment.js.map +1 -1
  253. package/components/Icons/Atv.d.ts +1 -1
  254. package/components/Icons/Atv.js +7 -3
  255. package/components/Icons/Atv.js.map +1 -1
  256. package/components/Icons/Avatar.d.ts +1 -1
  257. package/components/Icons/Avatar.js +10 -4
  258. package/components/Icons/Avatar.js.map +1 -1
  259. package/components/Icons/AwakePersonOnPillow.d.ts +1 -1
  260. package/components/Icons/AwakePersonOnPillow.js +7 -3
  261. package/components/Icons/AwakePersonOnPillow.js.map +1 -1
  262. package/components/Icons/Baby.d.ts +1 -1
  263. package/components/Icons/Baby.js +7 -3
  264. package/components/Icons/Baby.js.map +1 -1
  265. package/components/Icons/BandAid.d.ts +1 -1
  266. package/components/Icons/BandAid.js +7 -3
  267. package/components/Icons/BandAid.js.map +1 -1
  268. package/components/Icons/BeerAndPills.d.ts +1 -1
  269. package/components/Icons/BeerAndPills.js +19 -15
  270. package/components/Icons/BeerAndPills.js.map +1 -1
  271. package/components/Icons/Bell.d.ts +1 -1
  272. package/components/Icons/Bell.js +7 -3
  273. package/components/Icons/Bell.js.map +1 -1
  274. package/components/Icons/Bike.d.ts +1 -1
  275. package/components/Icons/Bike.js +7 -3
  276. package/components/Icons/Bike.js.map +1 -1
  277. package/components/Icons/BirthControl.d.ts +1 -1
  278. package/components/Icons/BirthControl.js +19 -15
  279. package/components/Icons/BirthControl.js.map +1 -1
  280. package/components/Icons/BirthdayCake.d.ts +1 -1
  281. package/components/Icons/BirthdayCake.js +7 -3
  282. package/components/Icons/BirthdayCake.js.map +1 -1
  283. package/components/Icons/Boat.d.ts +1 -1
  284. package/components/Icons/Boat.js +7 -3
  285. package/components/Icons/Boat.js.map +1 -1
  286. package/components/Icons/Body.d.ts +1 -1
  287. package/components/Icons/Body.js +19 -15
  288. package/components/Icons/Body.js.map +1 -1
  289. package/components/Icons/Braille.d.ts +1 -1
  290. package/components/Icons/Braille.js +8 -4
  291. package/components/Icons/Braille.js.map +1 -1
  292. package/components/Icons/Brain.d.ts +1 -1
  293. package/components/Icons/Brain.js +7 -3
  294. package/components/Icons/Brain.js.map +1 -1
  295. package/components/Icons/BreastReconstruction.d.ts +1 -1
  296. package/components/Icons/BreastReconstruction.js +19 -15
  297. package/components/Icons/BreastReconstruction.js.map +1 -1
  298. package/components/Icons/BreastRemoval.d.ts +1 -1
  299. package/components/Icons/BreastRemoval.js +19 -15
  300. package/components/Icons/BreastRemoval.js.map +1 -1
  301. package/components/Icons/Breasts.d.ts +1 -1
  302. package/components/Icons/Breasts.js +7 -3
  303. package/components/Icons/Breasts.js.map +1 -1
  304. package/components/Icons/BrokenHeart.d.ts +1 -1
  305. package/components/Icons/BrokenHeart.js +7 -3
  306. package/components/Icons/BrokenHeart.js.map +1 -1
  307. package/components/Icons/BrokenPuzzle.d.ts +1 -1
  308. package/components/Icons/BrokenPuzzle.js +7 -3
  309. package/components/Icons/BrokenPuzzle.js.map +1 -1
  310. package/components/Icons/Bus.d.ts +1 -1
  311. package/components/Icons/Bus.js +29 -23
  312. package/components/Icons/Bus.js.map +1 -1
  313. package/components/Icons/Calendar.d.ts +1 -1
  314. package/components/Icons/Calendar.js +34 -28
  315. package/components/Icons/Calendar.js.map +1 -1
  316. package/components/Icons/CalendarChange.d.ts +1 -1
  317. package/components/Icons/CalendarChange.js +34 -28
  318. package/components/Icons/CalendarChange.js.map +1 -1
  319. package/components/Icons/CalendarCheck.d.ts +1 -1
  320. package/components/Icons/CalendarCheck.js +34 -28
  321. package/components/Icons/CalendarCheck.js.map +1 -1
  322. package/components/Icons/CalendarEvent.d.ts +1 -1
  323. package/components/Icons/CalendarEvent.js +7 -3
  324. package/components/Icons/CalendarEvent.js.map +1 -1
  325. package/components/Icons/CalendarSave.d.ts +1 -1
  326. package/components/Icons/CalendarSave.js +10 -4
  327. package/components/Icons/CalendarSave.js.map +1 -1
  328. package/components/Icons/Cancer.d.ts +1 -1
  329. package/components/Icons/Cancer.js +21 -17
  330. package/components/Icons/Cancer.js.map +1 -1
  331. package/components/Icons/Candle.d.ts +1 -1
  332. package/components/Icons/Candle.js +20 -16
  333. package/components/Icons/Candle.js.map +1 -1
  334. package/components/Icons/Car.d.ts +1 -1
  335. package/components/Icons/Car.js +7 -3
  336. package/components/Icons/Car.js.map +1 -1
  337. package/components/Icons/Carton.d.ts +1 -1
  338. package/components/Icons/Carton.js +39 -35
  339. package/components/Icons/Carton.js.map +1 -1
  340. package/components/Icons/Change.d.ts +1 -1
  341. package/components/Icons/Change.js +42 -34
  342. package/components/Icons/Change.js.map +1 -1
  343. package/components/Icons/Check.d.ts +1 -1
  344. package/components/Icons/Check.js +10 -4
  345. package/components/Icons/Check.js.map +1 -1
  346. package/components/Icons/CheckFill.d.ts +1 -1
  347. package/components/Icons/CheckFill.js +34 -28
  348. package/components/Icons/CheckFill.js.map +1 -1
  349. package/components/Icons/CheckOutline.d.ts +1 -1
  350. package/components/Icons/CheckOutline.js +19 -15
  351. package/components/Icons/CheckOutline.js.map +1 -1
  352. package/components/Icons/Chest.d.ts +1 -1
  353. package/components/Icons/Chest.js +7 -3
  354. package/components/Icons/Chest.js.map +1 -1
  355. package/components/Icons/ChevronDown.d.ts +1 -1
  356. package/components/Icons/ChevronDown.js +10 -4
  357. package/components/Icons/ChevronDown.js.map +1 -1
  358. package/components/Icons/ChevronLeft.d.ts +1 -1
  359. package/components/Icons/ChevronLeft.js +10 -4
  360. package/components/Icons/ChevronLeft.js.map +1 -1
  361. package/components/Icons/ChevronRight.d.ts +1 -1
  362. package/components/Icons/ChevronRight.js +10 -4
  363. package/components/Icons/ChevronRight.js.map +1 -1
  364. package/components/Icons/ChevronUp.d.ts +1 -1
  365. package/components/Icons/ChevronUp.js +10 -4
  366. package/components/Icons/ChevronUp.js.map +1 -1
  367. package/components/Icons/ChevronsDown.d.ts +1 -1
  368. package/components/Icons/ChevronsDown.js +34 -28
  369. package/components/Icons/ChevronsDown.js.map +1 -1
  370. package/components/Icons/ChevronsUp.d.ts +1 -1
  371. package/components/Icons/ChevronsUp.js +34 -28
  372. package/components/Icons/ChevronsUp.js.map +1 -1
  373. package/components/Icons/ChildPlaying.d.ts +1 -1
  374. package/components/Icons/ChildPlaying.js +13 -9
  375. package/components/Icons/ChildPlaying.js.map +1 -1
  376. package/components/Icons/Cigarette.d.ts +1 -1
  377. package/components/Icons/Cigarette.js +7 -3
  378. package/components/Icons/Cigarette.js.map +1 -1
  379. package/components/Icons/Coins.d.ts +1 -1
  380. package/components/Icons/Coins.js +19 -15
  381. package/components/Icons/Coins.js.map +1 -1
  382. package/components/Icons/Contacts.d.ts +1 -1
  383. package/components/Icons/Contacts.js +10 -4
  384. package/components/Icons/Contacts.js.map +1 -1
  385. package/components/Icons/Copy.d.ts +1 -1
  386. package/components/Icons/Copy.js +21 -15
  387. package/components/Icons/Copy.js.map +1 -1
  388. package/components/Icons/CoronaCertificate.d.ts +1 -1
  389. package/components/Icons/CoronaCertificate.js +19 -15
  390. package/components/Icons/CoronaCertificate.js.map +1 -1
  391. package/components/Icons/Coronavirus.d.ts +1 -1
  392. package/components/Icons/Coronavirus.js +7 -3
  393. package/components/Icons/Coronavirus.js.map +1 -1
  394. package/components/Icons/Cough.d.ts +1 -1
  395. package/components/Icons/Cough.js +7 -3
  396. package/components/Icons/Cough.js.map +1 -1
  397. package/components/Icons/CreditCard.d.ts +1 -1
  398. package/components/Icons/CreditCard.js +45 -41
  399. package/components/Icons/CreditCard.js.map +1 -1
  400. package/components/Icons/CriticalHealthInfo.d.ts +1 -1
  401. package/components/Icons/CriticalHealthInfo.js +7 -3
  402. package/components/Icons/CriticalHealthInfo.js.map +1 -1
  403. package/components/Icons/Cross.d.ts +1 -1
  404. package/components/Icons/Cross.js +7 -3
  405. package/components/Icons/Cross.js.map +1 -1
  406. package/components/Icons/DataExchange.d.ts +1 -1
  407. package/components/Icons/DataExchange.js +19 -15
  408. package/components/Icons/DataExchange.js.map +1 -1
  409. package/components/Icons/DataReceived.d.ts +1 -1
  410. package/components/Icons/DataReceived.js +19 -15
  411. package/components/Icons/DataReceived.js.map +1 -1
  412. package/components/Icons/DataSent.d.ts +1 -1
  413. package/components/Icons/DataSent.js +19 -15
  414. package/components/Icons/DataSent.js.map +1 -1
  415. package/components/Icons/Depression.d.ts +1 -1
  416. package/components/Icons/Depression.js +7 -3
  417. package/components/Icons/Depression.js.map +1 -1
  418. package/components/Icons/DigestiveSystem.d.ts +1 -1
  419. package/components/Icons/DigestiveSystem.js +13 -9
  420. package/components/Icons/DigestiveSystem.js.map +1 -1
  421. package/components/Icons/Dizzy.d.ts +1 -1
  422. package/components/Icons/Dizzy.js +7 -3
  423. package/components/Icons/Dizzy.js.map +1 -1
  424. package/components/Icons/Documents.d.ts +1 -1
  425. package/components/Icons/Documents.js +7 -3
  426. package/components/Icons/Documents.js.map +1 -1
  427. package/components/Icons/Dog.d.ts +1 -1
  428. package/components/Icons/Dog.js +7 -3
  429. package/components/Icons/Dog.js.map +1 -1
  430. package/components/Icons/DonorCard.d.ts +1 -1
  431. package/components/Icons/DonorCard.js +7 -3
  432. package/components/Icons/DonorCard.js.map +1 -1
  433. package/components/Icons/Download.d.ts +1 -1
  434. package/components/Icons/Download.js +34 -28
  435. package/components/Icons/Download.js.map +1 -1
  436. package/components/Icons/Draft.d.ts +1 -1
  437. package/components/Icons/Draft.js +7 -3
  438. package/components/Icons/Draft.js.map +1 -1
  439. package/components/Icons/EChat.d.ts +1 -1
  440. package/components/Icons/EChat.js +10 -4
  441. package/components/Icons/EChat.js.map +1 -1
  442. package/components/Icons/Ear.d.ts +1 -1
  443. package/components/Icons/Ear.js +14 -10
  444. package/components/Icons/Ear.js.map +1 -1
  445. package/components/Icons/EarDeaf.d.ts +1 -1
  446. package/components/Icons/EarDeaf.js +8 -4
  447. package/components/Icons/EarDeaf.js.map +1 -1
  448. package/components/Icons/EarHearingAid.d.ts +1 -1
  449. package/components/Icons/EarHearingAid.js +11 -7
  450. package/components/Icons/EarHearingAid.js.map +1 -1
  451. package/components/Icons/EarNoseThroat.d.ts +1 -1
  452. package/components/Icons/EarNoseThroat.js +15 -11
  453. package/components/Icons/EarNoseThroat.js.map +1 -1
  454. package/components/Icons/EarVolume.d.ts +1 -1
  455. package/components/Icons/EarVolume.js +23 -19
  456. package/components/Icons/EarVolume.js.map +1 -1
  457. package/components/Icons/ElderlyPerson.d.ts +1 -1
  458. package/components/Icons/ElderlyPerson.js +7 -3
  459. package/components/Icons/ElderlyPerson.js.map +1 -1
  460. package/components/Icons/Embolization.d.ts +1 -1
  461. package/components/Icons/Embolization.js +19 -15
  462. package/components/Icons/Embolization.js.map +1 -1
  463. package/components/Icons/EmergencyCall.d.ts +1 -1
  464. package/components/Icons/EmergencyCall.js +22 -18
  465. package/components/Icons/EmergencyCall.js.map +1 -1
  466. package/components/Icons/EmoticonAnnoyed.d.ts +1 -1
  467. package/components/Icons/EmoticonAnnoyed.js +21 -17
  468. package/components/Icons/EmoticonAnnoyed.js.map +1 -1
  469. package/components/Icons/EmoticonDelighted.d.ts +1 -1
  470. package/components/Icons/EmoticonDelighted.js +14 -10
  471. package/components/Icons/EmoticonDelighted.js.map +1 -1
  472. package/components/Icons/EmoticonDisappointed.d.ts +1 -1
  473. package/components/Icons/EmoticonDisappointed.js +14 -10
  474. package/components/Icons/EmoticonDisappointed.js.map +1 -1
  475. package/components/Icons/EmoticonHappy.d.ts +1 -1
  476. package/components/Icons/EmoticonHappy.js +14 -10
  477. package/components/Icons/EmoticonHappy.js.map +1 -1
  478. package/components/Icons/EmoticonMeh.d.ts +1 -1
  479. package/components/Icons/EmoticonMeh.js +14 -10
  480. package/components/Icons/EmoticonMeh.js.map +1 -1
  481. package/components/Icons/EnterFullScreen.d.ts +1 -1
  482. package/components/Icons/EnterFullScreen.js +19 -13
  483. package/components/Icons/EnterFullScreen.js.map +1 -1
  484. package/components/Icons/Envelope.d.ts +1 -1
  485. package/components/Icons/Envelope.js +10 -4
  486. package/components/Icons/Envelope.js.map +1 -1
  487. package/components/Icons/Epilepsy.d.ts +1 -1
  488. package/components/Icons/Epilepsy.js +7 -3
  489. package/components/Icons/Epilepsy.js.map +1 -1
  490. package/components/Icons/Eraser.d.ts +1 -1
  491. package/components/Icons/Eraser.js +16 -10
  492. package/components/Icons/Eraser.js.map +1 -1
  493. package/components/Icons/ErrorSignFill.d.ts +1 -1
  494. package/components/Icons/ErrorSignFill.js +10 -4
  495. package/components/Icons/ErrorSignFill.js.map +1 -1
  496. package/components/Icons/ErrorSignStroke.d.ts +1 -1
  497. package/components/Icons/ErrorSignStroke.js +10 -4
  498. package/components/Icons/ErrorSignStroke.js.map +1 -1
  499. package/components/Icons/EuropeanHealthCard.d.ts +1 -1
  500. package/components/Icons/EuropeanHealthCard.js +10 -6
  501. package/components/Icons/EuropeanHealthCard.js.map +1 -1
  502. package/components/Icons/ExitFullScreen.d.ts +1 -1
  503. package/components/Icons/ExitFullScreen.js +19 -13
  504. package/components/Icons/ExitFullScreen.js.map +1 -1
  505. package/components/Icons/Eye.d.ts +1 -1
  506. package/components/Icons/Eye.js +34 -26
  507. package/components/Icons/Eye.js.map +1 -1
  508. package/components/Icons/Facebook.d.ts +1 -1
  509. package/components/Icons/Facebook.js +7 -3
  510. package/components/Icons/Facebook.js.map +1 -1
  511. package/components/Icons/FallingLeaf.d.ts +1 -1
  512. package/components/Icons/FallingLeaf.js +28 -24
  513. package/components/Icons/FallingLeaf.js.map +1 -1
  514. package/components/Icons/Female.d.ts +1 -1
  515. package/components/Icons/Female.js +7 -3
  516. package/components/Icons/Female.js.map +1 -1
  517. package/components/Icons/FemaleDoctor.d.ts +1 -1
  518. package/components/Icons/FemaleDoctor.js +7 -3
  519. package/components/Icons/FemaleDoctor.js.map +1 -1
  520. package/components/Icons/Ferry.d.ts +1 -1
  521. package/components/Icons/Ferry.js +7 -3
  522. package/components/Icons/Ferry.js.map +1 -1
  523. package/components/Icons/File.d.ts +1 -1
  524. package/components/Icons/File.js +34 -28
  525. package/components/Icons/File.js.map +1 -1
  526. package/components/Icons/Filter.d.ts +1 -1
  527. package/components/Icons/Filter.js +29 -23
  528. package/components/Icons/Filter.js.map +1 -1
  529. package/components/Icons/FingerBleed.d.ts +1 -1
  530. package/components/Icons/FingerBleed.js +7 -3
  531. package/components/Icons/FingerBleed.js.map +1 -1
  532. package/components/Icons/FirstAidKit.d.ts +1 -1
  533. package/components/Icons/FirstAidKit.js +7 -3
  534. package/components/Icons/FirstAidKit.js.map +1 -1
  535. package/components/Icons/Fish.d.ts +1 -1
  536. package/components/Icons/Fish.js +41 -37
  537. package/components/Icons/Fish.js.map +1 -1
  538. package/components/Icons/FloppyDisk.d.ts +1 -1
  539. package/components/Icons/FloppyDisk.js +19 -15
  540. package/components/Icons/FloppyDisk.js.map +1 -1
  541. package/components/Icons/Football.d.ts +1 -1
  542. package/components/Icons/Football.js +7 -3
  543. package/components/Icons/Football.js.map +1 -1
  544. package/components/Icons/Form.d.ts +1 -1
  545. package/components/Icons/Form.js +10 -4
  546. package/components/Icons/Form.js.map +1 -1
  547. package/components/Icons/Forward.d.ts +1 -1
  548. package/components/Icons/Forward.js +16 -10
  549. package/components/Icons/Forward.js.map +1 -1
  550. package/components/Icons/Gallery.d.ts +1 -1
  551. package/components/Icons/Gallery.js +34 -28
  552. package/components/Icons/Gallery.js.map +1 -1
  553. package/components/Icons/Garden.d.ts +1 -1
  554. package/components/Icons/Garden.js +7 -3
  555. package/components/Icons/Garden.js.map +1 -1
  556. package/components/Icons/GasCan.d.ts +1 -1
  557. package/components/Icons/GasCan.js +7 -3
  558. package/components/Icons/GasCan.js.map +1 -1
  559. package/components/Icons/GenderIdentity.d.ts +1 -1
  560. package/components/Icons/GenderIdentity.js +19 -15
  561. package/components/Icons/GenderIdentity.js.map +1 -1
  562. package/components/Icons/GlassWater.d.ts +1 -1
  563. package/components/Icons/GlassWater.js +19 -15
  564. package/components/Icons/GlassWater.js.map +1 -1
  565. package/components/Icons/Glasses.d.ts +1 -1
  566. package/components/Icons/Glasses.js +22 -18
  567. package/components/Icons/Glasses.js.map +1 -1
  568. package/components/Icons/Globe.d.ts +1 -1
  569. package/components/Icons/Globe.js +10 -4
  570. package/components/Icons/Globe.js.map +1 -1
  571. package/components/Icons/Grain.d.ts +1 -1
  572. package/components/Icons/Grain.js +19 -15
  573. package/components/Icons/Grain.js.map +1 -1
  574. package/components/Icons/Graph.d.ts +1 -1
  575. package/components/Icons/Graph.js +26 -22
  576. package/components/Icons/Graph.js.map +1 -1
  577. package/components/Icons/Group.d.ts +1 -1
  578. package/components/Icons/Group.js +10 -8
  579. package/components/Icons/Group.js.map +1 -1
  580. package/components/Icons/GroupTwins.d.ts +1 -1
  581. package/components/Icons/GroupTwins.js +77 -71
  582. package/components/Icons/GroupTwins.js.map +1 -1
  583. package/components/Icons/HTMLFile.d.ts +1 -1
  584. package/components/Icons/HTMLFile.js +14 -10
  585. package/components/Icons/HTMLFile.js.map +1 -1
  586. package/components/Icons/HandWaving.d.ts +1 -1
  587. package/components/Icons/HandWaving.js +7 -3
  588. package/components/Icons/HandWaving.js.map +1 -1
  589. package/components/Icons/HandWithDisease.d.ts +1 -1
  590. package/components/Icons/HandWithDisease.js +7 -3
  591. package/components/Icons/HandWithDisease.js.map +1 -1
  592. package/components/Icons/HandsAndHeart.d.ts +1 -1
  593. package/components/Icons/HandsAndHeart.js +20 -16
  594. package/components/Icons/HandsAndHeart.js.map +1 -1
  595. package/components/Icons/HealthClinic.d.ts +1 -1
  596. package/components/Icons/HealthClinic.js +19 -15
  597. package/components/Icons/HealthClinic.js.map +1 -1
  598. package/components/Icons/HealthWarning.d.ts +1 -1
  599. package/components/Icons/HealthWarning.js +19 -15
  600. package/components/Icons/HealthWarning.js.map +1 -1
  601. package/components/Icons/HealthcarePerson.d.ts +1 -1
  602. package/components/Icons/HealthcarePerson.js +74 -68
  603. package/components/Icons/HealthcarePerson.js.map +1 -1
  604. package/components/Icons/HealthcarePersonell.d.ts +1 -1
  605. package/components/Icons/HealthcarePersonell.js +97 -91
  606. package/components/Icons/HealthcarePersonell.js.map +1 -1
  607. package/components/Icons/HearingProtection.d.ts +1 -1
  608. package/components/Icons/HearingProtection.js +28 -24
  609. package/components/Icons/HearingProtection.js.map +1 -1
  610. package/components/Icons/Heart.d.ts +1 -1
  611. package/components/Icons/Heart.js +10 -4
  612. package/components/Icons/Heart.js.map +1 -1
  613. package/components/Icons/HeartHands.d.ts +1 -1
  614. package/components/Icons/HeartHands.js +73 -69
  615. package/components/Icons/HeartHands.js.map +1 -1
  616. package/components/Icons/HelpSign.d.ts +1 -1
  617. package/components/Icons/HelpSign.js +10 -4
  618. package/components/Icons/HelpSign.js.map +1 -1
  619. package/components/Icons/HelpingHand.d.ts +1 -1
  620. package/components/Icons/HelpingHand.js +19 -15
  621. package/components/Icons/HelpingHand.js.map +1 -1
  622. package/components/Icons/Hemodialysis.d.ts +1 -1
  623. package/components/Icons/Hemodialysis.js +19 -15
  624. package/components/Icons/Hemodialysis.js.map +1 -1
  625. package/components/Icons/Hiker.d.ts +1 -1
  626. package/components/Icons/Hiker.js +7 -3
  627. package/components/Icons/Hiker.js.map +1 -1
  628. package/components/Icons/Hipprosthesis.d.ts +1 -1
  629. package/components/Icons/Hipprosthesis.js +19 -15
  630. package/components/Icons/Hipprosthesis.js.map +1 -1
  631. package/components/Icons/History.d.ts +1 -1
  632. package/components/Icons/History.js +10 -4
  633. package/components/Icons/History.js.map +1 -1
  634. package/components/Icons/HivAndAids.d.ts +1 -1
  635. package/components/Icons/HivAndAids.js +7 -3
  636. package/components/Icons/HivAndAids.js.map +1 -1
  637. package/components/Icons/Home.d.ts +1 -1
  638. package/components/Icons/Home.js +34 -28
  639. package/components/Icons/Home.js.map +1 -1
  640. package/components/Icons/HomeFill.d.ts +1 -1
  641. package/components/Icons/HomeFill.js +38 -32
  642. package/components/Icons/HomeFill.js.map +1 -1
  643. package/components/Icons/Hormone.d.ts +1 -1
  644. package/components/Icons/Hormone.js +7 -3
  645. package/components/Icons/Hormone.js.map +1 -1
  646. package/components/Icons/Hospital.d.ts +1 -1
  647. package/components/Icons/Hospital.js +34 -28
  648. package/components/Icons/Hospital.js.map +1 -1
  649. package/components/Icons/Hourglass.d.ts +1 -1
  650. package/components/Icons/Hourglass.js +34 -28
  651. package/components/Icons/Hourglass.js.map +1 -1
  652. package/components/Icons/IconNames.js +2 -2
  653. package/components/Icons/IconNames.js.map +1 -1
  654. package/components/Icons/ImgFile.d.ts +1 -1
  655. package/components/Icons/ImgFile.js +19 -15
  656. package/components/Icons/ImgFile.js.map +1 -1
  657. package/components/Icons/Inbox.d.ts +1 -1
  658. package/components/Icons/Inbox.js +16 -12
  659. package/components/Icons/Inbox.js.map +1 -1
  660. package/components/Icons/InfoSignFill.d.ts +1 -1
  661. package/components/Icons/InfoSignFill.js +10 -4
  662. package/components/Icons/InfoSignFill.js.map +1 -1
  663. package/components/Icons/InfoSignStroke.d.ts +1 -1
  664. package/components/Icons/InfoSignStroke.js +10 -4
  665. package/components/Icons/InfoSignStroke.js.map +1 -1
  666. package/components/Icons/Instagram.d.ts +1 -1
  667. package/components/Icons/Instagram.js +14 -10
  668. package/components/Icons/Instagram.js.map +1 -1
  669. package/components/Icons/Intravenous.d.ts +1 -1
  670. package/components/Icons/Intravenous.js +19 -15
  671. package/components/Icons/Intravenous.js.map +1 -1
  672. package/components/Icons/JointPain.d.ts +1 -1
  673. package/components/Icons/JointPain.js +7 -3
  674. package/components/Icons/JointPain.js.map +1 -1
  675. package/components/Icons/Journal.d.ts +1 -1
  676. package/components/Icons/Journal.js +10 -4
  677. package/components/Icons/Journal.js.map +1 -1
  678. package/components/Icons/JpgFile.d.ts +1 -1
  679. package/components/Icons/JpgFile.js +19 -15
  680. package/components/Icons/JpgFile.js.map +1 -1
  681. package/components/Icons/Kidney.d.ts +1 -1
  682. package/components/Icons/Kidney.js +7 -3
  683. package/components/Icons/Kidney.js.map +1 -1
  684. package/components/Icons/KitchenScale.d.ts +1 -1
  685. package/components/Icons/KitchenScale.js +19 -15
  686. package/components/Icons/KitchenScale.js.map +1 -1
  687. package/components/Icons/Kjernejournal.d.ts +1 -1
  688. package/components/Icons/Kjernejournal.js +7 -3
  689. package/components/Icons/Kjernejournal.js.map +1 -1
  690. package/components/Icons/Laboratory.d.ts +1 -1
  691. package/components/Icons/Laboratory.js +19 -15
  692. package/components/Icons/Laboratory.js.map +1 -1
  693. package/components/Icons/LaptopBlog.d.ts +1 -1
  694. package/components/Icons/LaptopBlog.js +7 -3
  695. package/components/Icons/LaptopBlog.js.map +1 -1
  696. package/components/Icons/LawBook.d.ts +1 -1
  697. package/components/Icons/LawBook.js +10 -6
  698. package/components/Icons/LawBook.js.map +1 -1
  699. package/components/Icons/LegalDocument.d.ts +1 -1
  700. package/components/Icons/LegalDocument.js +32 -28
  701. package/components/Icons/LegalDocument.js.map +1 -1
  702. package/components/Icons/LightBulb.d.ts +1 -1
  703. package/components/Icons/LightBulb.js +7 -3
  704. package/components/Icons/LightBulb.js.map +1 -1
  705. package/components/Icons/List.d.ts +1 -1
  706. package/components/Icons/List.js +34 -28
  707. package/components/Icons/List.js.map +1 -1
  708. package/components/Icons/Location.d.ts +1 -1
  709. package/components/Icons/Location.js +13 -7
  710. package/components/Icons/Location.js.map +1 -1
  711. package/components/Icons/LocationFill.d.ts +1 -1
  712. package/components/Icons/LocationFill.js +38 -32
  713. package/components/Icons/LocationFill.js.map +1 -1
  714. package/components/Icons/Lock.d.ts +1 -1
  715. package/components/Icons/Lock.js +22 -16
  716. package/components/Icons/Lock.js.map +1 -1
  717. package/components/Icons/Login.d.ts +1 -1
  718. package/components/Icons/Login.js +50 -44
  719. package/components/Icons/Login.js.map +1 -1
  720. package/components/Icons/Logout.d.ts +1 -1
  721. package/components/Icons/Logout.js +50 -44
  722. package/components/Icons/Logout.js.map +1 -1
  723. package/components/Icons/Lungs.d.ts +1 -1
  724. package/components/Icons/Lungs.js +7 -3
  725. package/components/Icons/Lungs.js.map +1 -1
  726. package/components/Icons/Makeup.d.ts +1 -1
  727. package/components/Icons/Makeup.js +7 -3
  728. package/components/Icons/Makeup.js.map +1 -1
  729. package/components/Icons/MaleDoctor.d.ts +1 -1
  730. package/components/Icons/MaleDoctor.js +7 -3
  731. package/components/Icons/MaleDoctor.js.map +1 -1
  732. package/components/Icons/MaleDoctorAndPerson.d.ts +1 -1
  733. package/components/Icons/MaleDoctorAndPerson.js +15 -11
  734. package/components/Icons/MaleDoctorAndPerson.js.map +1 -1
  735. package/components/Icons/MaleDoctorCompact.d.ts +1 -1
  736. package/components/Icons/MaleDoctorCompact.js +52 -45
  737. package/components/Icons/MaleDoctorCompact.js.map +1 -1
  738. package/components/Icons/MaleDoctorCompactFill.d.ts +1 -1
  739. package/components/Icons/MaleDoctorCompactFill.js +23 -37
  740. package/components/Icons/MaleDoctorCompactFill.js.map +1 -1
  741. package/components/Icons/MaleGenitalia.d.ts +1 -1
  742. package/components/Icons/MaleGenitalia.js +7 -3
  743. package/components/Icons/MaleGenitalia.js.map +1 -1
  744. package/components/Icons/Medicine.d.ts +1 -1
  745. package/components/Icons/Medicine.js +34 -28
  746. package/components/Icons/Medicine.js.map +1 -1
  747. package/components/Icons/MedicineWarning.d.ts +1 -1
  748. package/components/Icons/MedicineWarning.js +19 -15
  749. package/components/Icons/MedicineWarning.js.map +1 -1
  750. package/components/Icons/MentalHealthAdult.d.ts +1 -1
  751. package/components/Icons/MentalHealthAdult.js +13 -9
  752. package/components/Icons/MentalHealthAdult.js.map +1 -1
  753. package/components/Icons/MentalHealthChild.d.ts +1 -1
  754. package/components/Icons/MentalHealthChild.js +13 -9
  755. package/components/Icons/MentalHealthChild.js.map +1 -1
  756. package/components/Icons/Menu.d.ts +1 -1
  757. package/components/Icons/Menu.js +10 -4
  758. package/components/Icons/Menu.js.map +1 -1
  759. package/components/Icons/Microscope.d.ts +1 -1
  760. package/components/Icons/Microscope.js +19 -15
  761. package/components/Icons/Microscope.js.map +1 -1
  762. package/components/Icons/Minus.d.ts +1 -1
  763. package/components/Icons/Minus.js +10 -4
  764. package/components/Icons/Minus.js.map +1 -1
  765. package/components/Icons/Mirror.d.ts +1 -1
  766. package/components/Icons/Mirror.js +7 -3
  767. package/components/Icons/Mirror.js.map +1 -1
  768. package/components/Icons/MobilePhone.d.ts +1 -1
  769. package/components/Icons/MobilePhone.js +10 -4
  770. package/components/Icons/MobilePhone.js.map +1 -1
  771. package/components/Icons/MotherHoldingBaby.d.ts +1 -1
  772. package/components/Icons/MotherHoldingBaby.js +7 -3
  773. package/components/Icons/MotherHoldingBaby.js.map +1 -1
  774. package/components/Icons/MuscleBack.d.ts +1 -1
  775. package/components/Icons/MuscleBack.js +15 -11
  776. package/components/Icons/MuscleBack.js.map +1 -1
  777. package/components/Icons/MuscleLeg.d.ts +1 -1
  778. package/components/Icons/MuscleLeg.js +13 -9
  779. package/components/Icons/MuscleLeg.js.map +1 -1
  780. package/components/Icons/Mushroom.d.ts +1 -1
  781. package/components/Icons/Mushroom.js +7 -3
  782. package/components/Icons/Mushroom.js.map +1 -1
  783. package/components/Icons/Music.d.ts +1 -1
  784. package/components/Icons/Music.js +19 -15
  785. package/components/Icons/Music.js.map +1 -1
  786. package/components/Icons/MusselsAndSalt.d.ts +1 -1
  787. package/components/Icons/MusselsAndSalt.js +7 -3
  788. package/components/Icons/MusselsAndSalt.js.map +1 -1
  789. package/components/Icons/NoAccess.d.ts +1 -1
  790. package/components/Icons/NoAccess.js +17 -13
  791. package/components/Icons/NoAccess.js.map +1 -1
  792. package/components/Icons/NoEye.d.ts +1 -1
  793. package/components/Icons/NoEye.js +50 -42
  794. package/components/Icons/NoEye.js.map +1 -1
  795. package/components/Icons/NoFilter.d.ts +1 -1
  796. package/components/Icons/NoFilter.js +16 -10
  797. package/components/Icons/NoFilter.js.map +1 -1
  798. package/components/Icons/Notepad.d.ts +1 -1
  799. package/components/Icons/Notepad.js +7 -3
  800. package/components/Icons/Notepad.js.map +1 -1
  801. package/components/Icons/Osteotomy.d.ts +1 -1
  802. package/components/Icons/Osteotomy.js +19 -15
  803. package/components/Icons/Osteotomy.js.map +1 -1
  804. package/components/Icons/PaintRoller.d.ts +1 -1
  805. package/components/Icons/PaintRoller.js +7 -3
  806. package/components/Icons/PaintRoller.js.map +1 -1
  807. package/components/Icons/PaperPlane.d.ts +1 -1
  808. package/components/Icons/PaperPlane.js +10 -4
  809. package/components/Icons/PaperPlane.js.map +1 -1
  810. package/components/Icons/PatientAndPerson.d.ts +1 -1
  811. package/components/Icons/PatientAndPerson.js +7 -3
  812. package/components/Icons/PatientAndPerson.js.map +1 -1
  813. package/components/Icons/Pause.d.ts +1 -1
  814. package/components/Icons/Pause.js +10 -4
  815. package/components/Icons/Pause.js.map +1 -1
  816. package/components/Icons/PdfFile.d.ts +1 -1
  817. package/components/Icons/PdfFile.js +19 -15
  818. package/components/Icons/PdfFile.js.map +1 -1
  819. package/components/Icons/Pencil.d.ts +1 -1
  820. package/components/Icons/Pencil.js +10 -4
  821. package/components/Icons/Pencil.js.map +1 -1
  822. package/components/Icons/PeopleTalking.d.ts +1 -1
  823. package/components/Icons/PeopleTalking.js +19 -15
  824. package/components/Icons/PeopleTalking.js.map +1 -1
  825. package/components/Icons/Peritonealdialysis.d.ts +1 -1
  826. package/components/Icons/Peritonealdialysis.js +19 -15
  827. package/components/Icons/Peritonealdialysis.js.map +1 -1
  828. package/components/Icons/Person.d.ts +1 -1
  829. package/components/Icons/Person.js +7 -3
  830. package/components/Icons/Person.js.map +1 -1
  831. package/components/Icons/PersonAndPatient.d.ts +1 -1
  832. package/components/Icons/PersonAndPatient.js +7 -3
  833. package/components/Icons/PersonAndPatient.js.map +1 -1
  834. package/components/Icons/PersonCancel.d.ts +1 -1
  835. package/components/Icons/PersonCancel.js +66 -60
  836. package/components/Icons/PersonCancel.js.map +1 -1
  837. package/components/Icons/PersonInXRayMachine.d.ts +1 -1
  838. package/components/Icons/PersonInXRayMachine.js +19 -15
  839. package/components/Icons/PersonInXRayMachine.js.map +1 -1
  840. package/components/Icons/PersonOverweight.d.ts +1 -1
  841. package/components/Icons/PersonOverweight.js +7 -3
  842. package/components/Icons/PersonOverweight.js.map +1 -1
  843. package/components/Icons/PersonRelaxing.d.ts +1 -1
  844. package/components/Icons/PersonRelaxing.js +13 -9
  845. package/components/Icons/PersonRelaxing.js.map +1 -1
  846. package/components/Icons/PersonWithBrain.d.ts +1 -1
  847. package/components/Icons/PersonWithBrain.js +10 -6
  848. package/components/Icons/PersonWithBrain.js.map +1 -1
  849. package/components/Icons/PersonWithBrokenArm.d.ts +1 -1
  850. package/components/Icons/PersonWithBrokenArm.js +7 -3
  851. package/components/Icons/PersonWithBrokenArm.js.map +1 -1
  852. package/components/Icons/PersonWithCrutches.d.ts +1 -1
  853. package/components/Icons/PersonWithCrutches.js +7 -3
  854. package/components/Icons/PersonWithCrutches.js.map +1 -1
  855. package/components/Icons/PersonWithJaw.d.ts +1 -1
  856. package/components/Icons/PersonWithJaw.js +13 -9
  857. package/components/Icons/PersonWithJaw.js.map +1 -1
  858. package/components/Icons/PersonWithMagnifyingGlass.d.ts +1 -1
  859. package/components/Icons/PersonWithMagnifyingGlass.js +13 -9
  860. package/components/Icons/PersonWithMagnifyingGlass.js.map +1 -1
  861. package/components/Icons/PersonWithSenses.d.ts +1 -1
  862. package/components/Icons/PersonWithSenses.js +19 -15
  863. package/components/Icons/PersonWithSenses.js.map +1 -1
  864. package/components/Icons/PersonWorking.d.ts +1 -1
  865. package/components/Icons/PersonWorking.js +13 -9
  866. package/components/Icons/PersonWorking.js.map +1 -1
  867. package/components/Icons/PersonalPlan.d.ts +1 -1
  868. package/components/Icons/PersonalPlan.js +38 -34
  869. package/components/Icons/PersonalPlan.js.map +1 -1
  870. package/components/Icons/PizzaSlice.d.ts +1 -1
  871. package/components/Icons/PizzaSlice.js +13 -9
  872. package/components/Icons/PizzaSlice.js.map +1 -1
  873. package/components/Icons/Plane.d.ts +1 -1
  874. package/components/Icons/Plane.js +7 -3
  875. package/components/Icons/Plane.js.map +1 -1
  876. package/components/Icons/Plant.d.ts +1 -1
  877. package/components/Icons/Plant.js +7 -3
  878. package/components/Icons/Plant.js.map +1 -1
  879. package/components/Icons/PlateKnifeFork.d.ts +1 -1
  880. package/components/Icons/PlateKnifeFork.js +37 -33
  881. package/components/Icons/PlateKnifeFork.js.map +1 -1
  882. package/components/Icons/Play.d.ts +1 -1
  883. package/components/Icons/Play.js +10 -4
  884. package/components/Icons/Play.js.map +1 -1
  885. package/components/Icons/PlusLarge.d.ts +1 -1
  886. package/components/Icons/PlusLarge.js +10 -4
  887. package/components/Icons/PlusLarge.js.map +1 -1
  888. package/components/Icons/PlusSmall.d.ts +1 -1
  889. package/components/Icons/PlusSmall.js +10 -4
  890. package/components/Icons/PlusSmall.js.map +1 -1
  891. package/components/Icons/PngFile.d.ts +1 -1
  892. package/components/Icons/PngFile.js +19 -15
  893. package/components/Icons/PngFile.js.map +1 -1
  894. package/components/Icons/Podcast.d.ts +1 -1
  895. package/components/Icons/Podcast.js +19 -15
  896. package/components/Icons/Podcast.js.map +1 -1
  897. package/components/Icons/PoisonInformation.d.ts +1 -1
  898. package/components/Icons/PoisonInformation.js +13 -9
  899. package/components/Icons/PoisonInformation.js.map +1 -1
  900. package/components/Icons/Pregnant.d.ts +1 -1
  901. package/components/Icons/Pregnant.js +7 -3
  902. package/components/Icons/Pregnant.js.map +1 -1
  903. package/components/Icons/Printer.d.ts +1 -1
  904. package/components/Icons/Printer.js +34 -28
  905. package/components/Icons/Printer.js.map +1 -1
  906. package/components/Icons/Psychosis.d.ts +1 -1
  907. package/components/Icons/Psychosis.js +7 -3
  908. package/components/Icons/Psychosis.js.map +1 -1
  909. package/components/Icons/Publication.d.ts +1 -1
  910. package/components/Icons/Publication.js +19 -15
  911. package/components/Icons/Publication.js.map +1 -1
  912. package/components/Icons/Puzzle.d.ts +1 -1
  913. package/components/Icons/Puzzle.js +10 -6
  914. package/components/Icons/Puzzle.js.map +1 -1
  915. package/components/Icons/QrCode.d.ts +1 -1
  916. package/components/Icons/QrCode.js +34 -28
  917. package/components/Icons/QrCode.js.map +1 -1
  918. package/components/Icons/Quarrel.d.ts +1 -1
  919. package/components/Icons/Quarrel.js +19 -15
  920. package/components/Icons/Quarrel.js.map +1 -1
  921. package/components/Icons/RadioTherapy.d.ts +1 -1
  922. package/components/Icons/RadioTherapy.js +19 -15
  923. package/components/Icons/RadioTherapy.js.map +1 -1
  924. package/components/Icons/RadioactiveTreatment.d.ts +1 -1
  925. package/components/Icons/RadioactiveTreatment.js +19 -15
  926. package/components/Icons/RadioactiveTreatment.js.map +1 -1
  927. package/components/Icons/Radioiodine.d.ts +1 -1
  928. package/components/Icons/Radioiodine.js +19 -15
  929. package/components/Icons/Radioiodine.js.map +1 -1
  930. package/components/Icons/Receipt.d.ts +1 -1
  931. package/components/Icons/Receipt.js +7 -3
  932. package/components/Icons/Receipt.js.map +1 -1
  933. package/components/Icons/Receptionist.d.ts +1 -1
  934. package/components/Icons/Receptionist.js +10 -4
  935. package/components/Icons/Receptionist.js.map +1 -1
  936. package/components/Icons/Recovery.d.ts +1 -1
  937. package/components/Icons/Recovery.js +19 -15
  938. package/components/Icons/Recovery.js.map +1 -1
  939. package/components/Icons/Referral.d.ts +1 -1
  940. package/components/Icons/Referral.js +10 -4
  941. package/components/Icons/Referral.js.map +1 -1
  942. package/components/Icons/Refresh.d.ts +1 -1
  943. package/components/Icons/Refresh.js +10 -4
  944. package/components/Icons/Refresh.js.map +1 -1
  945. package/components/Icons/Refund.d.ts +1 -1
  946. package/components/Icons/Refund.js +7 -3
  947. package/components/Icons/Refund.js.map +1 -1
  948. package/components/Icons/Reminder.d.ts +1 -1
  949. package/components/Icons/Reminder.js +27 -23
  950. package/components/Icons/Reminder.js.map +1 -1
  951. package/components/Icons/Reply.d.ts +1 -1
  952. package/components/Icons/Reply.js +16 -10
  953. package/components/Icons/Reply.js.map +1 -1
  954. package/components/Icons/Rocket.d.ts +1 -1
  955. package/components/Icons/Rocket.js +7 -3
  956. package/components/Icons/Rocket.js.map +1 -1
  957. package/components/Icons/RtfFile.d.ts +1 -1
  958. package/components/Icons/RtfFile.js +19 -15
  959. package/components/Icons/RtfFile.js.map +1 -1
  960. package/components/Icons/STDs.d.ts +1 -1
  961. package/components/Icons/STDs.js +19 -15
  962. package/components/Icons/STDs.js.map +1 -1
  963. package/components/Icons/Save.d.ts +1 -1
  964. package/components/Icons/Save.js +18 -12
  965. package/components/Icons/Save.js.map +1 -1
  966. package/components/Icons/Scale.d.ts +1 -1
  967. package/components/Icons/Scale.js +7 -3
  968. package/components/Icons/Scale.js.map +1 -1
  969. package/components/Icons/ScreenReader.d.ts +1 -1
  970. package/components/Icons/ScreenReader.js +46 -42
  971. package/components/Icons/ScreenReader.js.map +1 -1
  972. package/components/Icons/Search.d.ts +1 -1
  973. package/components/Icons/Search.js +10 -4
  974. package/components/Icons/Search.js.map +1 -1
  975. package/components/Icons/SectionSign.d.ts +1 -1
  976. package/components/Icons/SectionSign.js +34 -28
  977. package/components/Icons/SectionSign.js.map +1 -1
  978. package/components/Icons/Settings.d.ts +1 -1
  979. package/components/Icons/Settings.js +38 -32
  980. package/components/Icons/Settings.js.map +1 -1
  981. package/components/Icons/SettingsFill.d.ts +1 -1
  982. package/components/Icons/SettingsFill.js +38 -32
  983. package/components/Icons/SettingsFill.js.map +1 -1
  984. package/components/Icons/Sexualorientation.d.ts +1 -1
  985. package/components/Icons/Sexualorientation.js +19 -15
  986. package/components/Icons/Sexualorientation.js.map +1 -1
  987. package/components/Icons/ShakingHand.d.ts +1 -1
  988. package/components/Icons/ShakingHand.js +13 -9
  989. package/components/Icons/ShakingHand.js.map +1 -1
  990. package/components/Icons/Share.d.ts +1 -1
  991. package/components/Icons/Share.js +16 -10
  992. package/components/Icons/Share.js.map +1 -1
  993. package/components/Icons/Shield.d.ts +1 -1
  994. package/components/Icons/Shield.js +19 -15
  995. package/components/Icons/Shield.js.map +1 -1
  996. package/components/Icons/ShuntOperation.d.ts +1 -1
  997. package/components/Icons/ShuntOperation.js +19 -15
  998. package/components/Icons/ShuntOperation.js.map +1 -1
  999. package/components/Icons/Skeleton.d.ts +1 -1
  1000. package/components/Icons/Skeleton.js +7 -3
  1001. package/components/Icons/Skeleton.js.map +1 -1
  1002. package/components/Icons/Skin.d.ts +1 -1
  1003. package/components/Icons/Skin.js +7 -3
  1004. package/components/Icons/Skin.js.map +1 -1
  1005. package/components/Icons/Snake.d.ts +1 -1
  1006. package/components/Icons/Snake.js +7 -3
  1007. package/components/Icons/Snake.js.map +1 -1
  1008. package/components/Icons/Snapchat.d.ts +1 -1
  1009. package/components/Icons/Snapchat.js +10 -6
  1010. package/components/Icons/Snapchat.js.map +1 -1
  1011. package/components/Icons/SortDown.d.ts +1 -1
  1012. package/components/Icons/SortDown.js +27 -19
  1013. package/components/Icons/SortDown.js.map +1 -1
  1014. package/components/Icons/SortUp.d.ts +1 -1
  1015. package/components/Icons/SortUp.js +27 -19
  1016. package/components/Icons/SortUp.js.map +1 -1
  1017. package/components/Icons/SpeechBubble.d.ts +1 -1
  1018. package/components/Icons/SpeechBubble.js +34 -28
  1019. package/components/Icons/SpeechBubble.js.map +1 -1
  1020. package/components/Icons/Spray.d.ts +1 -1
  1021. package/components/Icons/Spray.js +7 -3
  1022. package/components/Icons/Spray.js.map +1 -1
  1023. package/components/Icons/Stopwatch.d.ts +1 -1
  1024. package/components/Icons/Stopwatch.js +34 -28
  1025. package/components/Icons/Stopwatch.js.map +1 -1
  1026. package/components/Icons/Sun.d.ts +1 -1
  1027. package/components/Icons/Sun.js +30 -26
  1028. package/components/Icons/Sun.js.map +1 -1
  1029. package/components/Icons/SupportingPerson.d.ts +1 -1
  1030. package/components/Icons/SupportingPerson.js +41 -35
  1031. package/components/Icons/SupportingPerson.js.map +1 -1
  1032. package/components/Icons/Surgery.d.ts +1 -1
  1033. package/components/Icons/Surgery.js +19 -15
  1034. package/components/Icons/Surgery.js.map +1 -1
  1035. package/components/Icons/Sweets.d.ts +1 -1
  1036. package/components/Icons/Sweets.js +39 -35
  1037. package/components/Icons/Sweets.js.map +1 -1
  1038. package/components/Icons/Syringe.d.ts +1 -1
  1039. package/components/Icons/Syringe.js +9 -8
  1040. package/components/Icons/Syringe.js.map +1 -1
  1041. package/components/Icons/Taxi.d.ts +1 -1
  1042. package/components/Icons/Taxi.js +7 -3
  1043. package/components/Icons/Taxi.js.map +1 -1
  1044. package/components/Icons/TeddyBear.d.ts +1 -1
  1045. package/components/Icons/TeddyBear.js +7 -3
  1046. package/components/Icons/TeddyBear.js.map +1 -1
  1047. package/components/Icons/Teenagers.d.ts +1 -1
  1048. package/components/Icons/Teenagers.js +19 -15
  1049. package/components/Icons/Teenagers.js.map +1 -1
  1050. package/components/Icons/ThinkingAboutBaby.d.ts +1 -1
  1051. package/components/Icons/ThinkingAboutBaby.js +7 -3
  1052. package/components/Icons/ThinkingAboutBaby.js.map +1 -1
  1053. package/components/Icons/Ticket.d.ts +1 -1
  1054. package/components/Icons/Ticket.js +7 -3
  1055. package/components/Icons/Ticket.js.map +1 -1
  1056. package/components/Icons/TimePassing.d.ts +1 -1
  1057. package/components/Icons/TimePassing.js +34 -28
  1058. package/components/Icons/TimePassing.js.map +1 -1
  1059. package/components/Icons/Tombstone.d.ts +1 -1
  1060. package/components/Icons/Tombstone.js +26 -22
  1061. package/components/Icons/Tombstone.js.map +1 -1
  1062. package/components/Icons/Toolbox.d.ts +1 -1
  1063. package/components/Icons/Toolbox.js +44 -38
  1064. package/components/Icons/Toolbox.js.map +1 -1
  1065. package/components/Icons/Tooth.d.ts +1 -1
  1066. package/components/Icons/Tooth.js +7 -3
  1067. package/components/Icons/Tooth.js.map +1 -1
  1068. package/components/Icons/TotalKneeProsthesis.d.ts +1 -1
  1069. package/components/Icons/TotalKneeProsthesis.js +19 -15
  1070. package/components/Icons/TotalKneeProsthesis.js.map +1 -1
  1071. package/components/Icons/Train.d.ts +1 -1
  1072. package/components/Icons/Train.js +7 -3
  1073. package/components/Icons/Train.js.map +1 -1
  1074. package/components/Icons/Transplantation.d.ts +1 -1
  1075. package/components/Icons/Transplantation.js +19 -15
  1076. package/components/Icons/Transplantation.js.map +1 -1
  1077. package/components/Icons/TrashCan.d.ts +1 -1
  1078. package/components/Icons/TrashCan.js +34 -28
  1079. package/components/Icons/TrashCan.js.map +1 -1
  1080. package/components/Icons/TravelRoute.d.ts +1 -1
  1081. package/components/Icons/TravelRoute.js +57 -53
  1082. package/components/Icons/TravelRoute.js.map +1 -1
  1083. package/components/Icons/TriangleX.d.ts +1 -1
  1084. package/components/Icons/TriangleX.js +38 -32
  1085. package/components/Icons/TriangleX.js.map +1 -1
  1086. package/components/Icons/Twitter.d.ts +1 -1
  1087. package/components/Icons/Twitter.js +7 -3
  1088. package/components/Icons/Twitter.js.map +1 -1
  1089. package/components/Icons/Undo.d.ts +1 -1
  1090. package/components/Icons/Undo.js +48 -40
  1091. package/components/Icons/Undo.js.map +1 -1
  1092. package/components/Icons/UniProsthesis.d.ts +1 -1
  1093. package/components/Icons/UniProsthesis.js +19 -15
  1094. package/components/Icons/UniProsthesis.js.map +1 -1
  1095. package/components/Icons/Upload.d.ts +1 -1
  1096. package/components/Icons/Upload.js +16 -10
  1097. package/components/Icons/Upload.js.map +1 -1
  1098. package/components/Icons/UserOrganization.d.ts +1 -1
  1099. package/components/Icons/UserOrganization.js +7 -3
  1100. package/components/Icons/UserOrganization.js.map +1 -1
  1101. package/components/Icons/Vaccine.d.ts +1 -1
  1102. package/components/Icons/Vaccine.js +34 -28
  1103. package/components/Icons/Vaccine.js.map +1 -1
  1104. package/components/Icons/VerticalDots.d.ts +1 -1
  1105. package/components/Icons/VerticalDots.js +10 -4
  1106. package/components/Icons/VerticalDots.js.map +1 -1
  1107. package/components/Icons/VideoCamera.d.ts +1 -1
  1108. package/components/Icons/VideoCamera.js +34 -28
  1109. package/components/Icons/VideoCamera.js.map +1 -1
  1110. package/components/Icons/VideoChat.d.ts +1 -1
  1111. package/components/Icons/VideoChat.js +10 -4
  1112. package/components/Icons/VideoChat.js.map +1 -1
  1113. package/components/Icons/Wallet.d.ts +1 -1
  1114. package/components/Icons/Wallet.js +10 -4
  1115. package/components/Icons/Wallet.js.map +1 -1
  1116. package/components/Icons/Watch.d.ts +1 -1
  1117. package/components/Icons/Watch.js +34 -28
  1118. package/components/Icons/Watch.js.map +1 -1
  1119. package/components/Icons/Website.d.ts +1 -1
  1120. package/components/Icons/Website.js +19 -15
  1121. package/components/Icons/Website.js.map +1 -1
  1122. package/components/Icons/Wheelchair.d.ts +1 -1
  1123. package/components/Icons/Wheelchair.js +19 -15
  1124. package/components/Icons/Wheelchair.js.map +1 -1
  1125. package/components/Icons/WheelchairActive.d.ts +1 -1
  1126. package/components/Icons/WheelchairActive.js +19 -15
  1127. package/components/Icons/WheelchairActive.js.map +1 -1
  1128. package/components/Icons/Window.d.ts +1 -1
  1129. package/components/Icons/Window.js +7 -3
  1130. package/components/Icons/Window.js.map +1 -1
  1131. package/components/Icons/WordDocument.d.ts +1 -1
  1132. package/components/Icons/WordDocument.js +13 -9
  1133. package/components/Icons/WordDocument.js.map +1 -1
  1134. package/components/Icons/WorkSuitcase.d.ts +1 -1
  1135. package/components/Icons/WorkSuitcase.js +13 -9
  1136. package/components/Icons/WorkSuitcase.js.map +1 -1
  1137. package/components/Icons/X.d.ts +1 -1
  1138. package/components/Icons/X.js +12 -4
  1139. package/components/Icons/X.js.map +1 -1
  1140. package/components/Icons/XOutline.d.ts +1 -1
  1141. package/components/Icons/XOutline.js +19 -15
  1142. package/components/Icons/XOutline.js.map +1 -1
  1143. package/components/Icons/XmlFile.d.ts +1 -1
  1144. package/components/Icons/XmlFile.js +19 -15
  1145. package/components/Icons/XmlFile.js.map +1 -1
  1146. package/components/Icons/YouTube.d.ts +1 -1
  1147. package/components/Icons/YouTube.js +7 -3
  1148. package/components/Icons/YouTube.js.map +1 -1
  1149. package/components/Icons/Zoom.d.ts +1 -1
  1150. package/components/Icons/Zoom.js +34 -28
  1151. package/components/Icons/Zoom.js.map +1 -1
  1152. package/components/Illustration/Illustration.d.ts +1 -1
  1153. package/components/Illustration/index.d.ts +1 -1
  1154. package/components/Illustration/index.js +5 -5
  1155. package/components/Illustrations/Doctor.d.ts +1 -1
  1156. package/components/Illustrations/Doctor.js +9 -8
  1157. package/components/Illustrations/Doctor.js.map +1 -1
  1158. package/components/Illustrations/DoctorMedium.d.ts +1 -1
  1159. package/components/Illustrations/DoctorMedium.js +15 -15
  1160. package/components/Illustrations/DoctorMedium.js.map +1 -1
  1161. package/components/Illustrations/DoctorSmall.d.ts +1 -1
  1162. package/components/Illustrations/DoctorSmall.js +16 -16
  1163. package/components/Illustrations/DoctorSmall.js.map +1 -1
  1164. package/components/Illustrations/FacialRecognitionFingerprint.d.ts +1 -1
  1165. package/components/Illustrations/FacialRecognitionFingerprint.js +7 -7
  1166. package/components/Illustrations/FacialRecognitionFingerprint.js.map +1 -1
  1167. package/components/Illustrations/FacialRecognitionFingerprintMedium.d.ts +1 -1
  1168. package/components/Illustrations/FacialRecognitionFingerprintMedium.js +52 -52
  1169. package/components/Illustrations/FacialRecognitionFingerprintMedium.js.map +1 -1
  1170. package/components/Illustrations/HealthcarePersonnel.d.ts +1 -1
  1171. package/components/Illustrations/HealthcarePersonnel.js +9 -8
  1172. package/components/Illustrations/HealthcarePersonnel.js.map +1 -1
  1173. package/components/Illustrations/HealthcarePersonnelMedium.d.ts +1 -1
  1174. package/components/Illustrations/HealthcarePersonnelMedium.js +40 -40
  1175. package/components/Illustrations/HealthcarePersonnelMedium.js.map +1 -1
  1176. package/components/Illustrations/HealthcarePersonnelSmall.d.ts +1 -1
  1177. package/components/Illustrations/HealthcarePersonnelSmall.js +33 -33
  1178. package/components/Illustrations/HealthcarePersonnelSmall.js.map +1 -1
  1179. package/components/Illustrations/IllustrationNames.js +4 -3
  1180. package/components/Illustrations/IllustrationNames.js.map +1 -1
  1181. package/components/Input/Input.d.ts +1 -1
  1182. package/components/Input/index.d.ts +1 -1
  1183. package/components/Input/index.js +4 -4
  1184. package/components/Label/Label.d.ts +1 -1
  1185. package/components/Label/SubLabel.d.ts +1 -1
  1186. package/components/Label/index.d.ts +1 -1
  1187. package/components/Label/index.js +7 -7
  1188. package/components/LazyIcon/ErrorBoundary.d.ts +1 -1
  1189. package/components/LazyIcon/LazyIcon.d.ts +1 -1
  1190. package/components/LazyIcon/index.d.ts +1 -1
  1191. package/components/LazyIcon/index.js +5 -5
  1192. package/components/LazyIllustration/LazyIllustration.d.ts +1 -1
  1193. package/components/LazyIllustration/index.d.ts +1 -1
  1194. package/components/LazyIllustration/index.js +5 -5
  1195. package/components/LinkList/LinkList.d.ts +1 -1
  1196. package/components/LinkList/index.d.ts +1 -1
  1197. package/components/LinkList/index.js +3 -3
  1198. package/components/List/List.d.ts +1 -1
  1199. package/components/List/index.d.ts +1 -1
  1200. package/components/List/index.js +2 -2
  1201. package/components/ListHeader/ListHeader.d.ts +1 -1
  1202. package/components/ListHeader/ListHeaderText/ListHeaderText.d.ts +1 -1
  1203. package/components/ListHeader/ListHeaderText/index.d.ts +1 -1
  1204. package/components/ListHeader/ListHeaderText/index.js +3 -3
  1205. package/components/ListHeader/index.js +8 -8
  1206. package/components/Loader/Loader.d.ts +1 -1
  1207. package/components/Loader/index.d.ts +1 -1
  1208. package/components/Loader/index.js +83 -56
  1209. package/components/Loader/index.js.map +1 -1
  1210. package/components/Logo/Logo.d.ts +1 -1
  1211. package/components/Logo/index.d.ts +1 -1
  1212. package/components/Logo/index.js +34 -31
  1213. package/components/Logo/index.js.map +1 -1
  1214. package/components/MaxCharacters/MaxCharacters.d.ts +1 -1
  1215. package/components/Modal/Modal.d.ts +1 -1
  1216. package/components/Modal/index.d.ts +1 -1
  1217. package/components/Modal/index.js +166 -109
  1218. package/components/Modal/index.js.map +1 -1
  1219. package/components/NotificationPanel/NotificationPanel.d.ts +1 -1
  1220. package/components/NotificationPanel/index.d.ts +1 -1
  1221. package/components/NotificationPanel/index.js +90 -79
  1222. package/components/NotificationPanel/index.js.map +1 -1
  1223. package/components/Panel/Panel.d.ts +1 -1
  1224. package/components/Panel/index.d.ts +1 -1
  1225. package/components/Panel/index.js +6 -6
  1226. package/components/PanelList/PanelList.d.ts +1 -1
  1227. package/components/PanelList/index.d.ts +1 -1
  1228. package/components/PanelList/index.js +15 -13
  1229. package/components/PanelList/index.js.map +1 -1
  1230. package/components/PopMenu/PopMenu.d.ts +1 -1
  1231. package/components/PopMenu/PopMenu.test.d.ts +0 -1
  1232. package/components/PopMenu/index.d.ts +1 -1
  1233. package/components/PopMenu/index.js +104 -75
  1234. package/components/PopMenu/index.js.map +1 -1
  1235. package/components/PopOver/PopOver.d.ts +1 -1
  1236. package/components/PopOver/index.d.ts +1 -1
  1237. package/components/PopOver/index.js +4 -4
  1238. package/components/Portal/index.d.ts +1 -1
  1239. package/components/Portal/index.js +20 -11
  1240. package/components/Portal/index.js.map +1 -1
  1241. package/components/Progressbar/Progressbar.d.ts +1 -1
  1242. package/components/Progressbar/index.d.ts +1 -1
  1243. package/components/Progressbar/index.js +95 -59
  1244. package/components/Progressbar/index.js.map +1 -1
  1245. package/components/PromoPanel/PromoPanel.d.ts +1 -1
  1246. package/components/PromoPanel/index.d.ts +1 -1
  1247. package/components/PromoPanel/index.js +65 -46
  1248. package/components/PromoPanel/index.js.map +1 -1
  1249. package/components/RadioButton/RadioButton.d.ts +1 -1
  1250. package/components/RadioButton/index.d.ts +1 -1
  1251. package/components/RadioButton/index.js +5 -5
  1252. package/components/Select/Select.d.ts +1 -1
  1253. package/components/Select/index.d.ts +1 -1
  1254. package/components/Select/index.js +3 -3
  1255. package/components/ServiceMessage/ServiceMessage.d.ts +1 -1
  1256. package/components/ServiceMessage/index.d.ts +1 -1
  1257. package/components/ServiceMessage/index.js +101 -87
  1258. package/components/ServiceMessage/index.js.map +1 -1
  1259. package/components/SharingStatus/SharingStatus.d.ts +1 -1
  1260. package/components/SharingStatus/index.d.ts +1 -1
  1261. package/components/SharingStatus/index.js +16 -13
  1262. package/components/SharingStatus/index.js.map +1 -1
  1263. package/components/Slider/Slider.d.ts +1 -1
  1264. package/components/Slider/index.d.ts +1 -1
  1265. package/components/Slider/index.js +3 -3
  1266. package/components/Spacer/Spacer.d.ts +1 -1
  1267. package/components/Spacer/index.d.ts +1 -1
  1268. package/components/Spacer/index.js +2 -2
  1269. package/components/StatusDot/StatusDot.d.ts +1 -1
  1270. package/components/StatusDot/index.d.ts +1 -1
  1271. package/components/StatusDot/index.js +5 -5
  1272. package/components/Step/Step.d.ts +1 -1
  1273. package/components/Step/index.d.ts +1 -1
  1274. package/components/Step/index.js +25 -25
  1275. package/components/Step/index.js.map +1 -1
  1276. package/components/StepButtons/StepButtons.d.ts +1 -1
  1277. package/components/StepButtons/index.d.ts +1 -1
  1278. package/components/StepButtons/index.js +3 -3
  1279. package/components/Stepper/Dot.d.ts +1 -1
  1280. package/components/Stepper/DotList.d.ts +1 -1
  1281. package/components/Stepper/Stepper.d.ts +1 -1
  1282. package/components/Stepper/index.d.ts +1 -1
  1283. package/components/Stepper/index.js +71 -37
  1284. package/components/Stepper/index.js.map +1 -1
  1285. package/components/Table/Table.d.ts +1 -1
  1286. package/components/Table/TableBody/TableBody.d.ts +1 -1
  1287. package/components/Table/TableBody/index.d.ts +1 -1
  1288. package/components/Table/TableBody/index.js +3 -3
  1289. package/components/Table/TableCell/TableCell.d.ts +1 -1
  1290. package/components/Table/TableCell/index.d.ts +1 -1
  1291. package/components/Table/TableCell/index.js +5 -5
  1292. package/components/Table/TableExpandedRow/TableExpandedRow.d.ts +1 -1
  1293. package/components/Table/TableExpandedRow/index.d.ts +1 -1
  1294. package/components/Table/TableExpandedRow/index.js +3 -3
  1295. package/components/Table/TableExpanderCell/TableExpanderCell.d.ts +1 -1
  1296. package/components/Table/TableExpanderCell/TableExpanderCellMobile.d.ts +1 -1
  1297. package/components/Table/TableExpanderCell/index.d.ts +1 -1
  1298. package/components/Table/TableExpanderCell/index.js +3 -3
  1299. package/components/Table/TableHead/TableHead.d.ts +1 -1
  1300. package/components/Table/TableHead/index.d.ts +1 -1
  1301. package/components/Table/TableHead/index.js +5 -5
  1302. package/components/Table/TableHeadCell/TableHeadCell.d.ts +1 -1
  1303. package/components/Table/TableHeadCell/index.d.ts +1 -1
  1304. package/components/Table/TableHeadCell/index.js +5 -5
  1305. package/components/Table/TableRow/TableRow.d.ts +1 -1
  1306. package/components/Table/TableRow/index.d.ts +1 -1
  1307. package/components/Table/TableRow/index.js +3 -3
  1308. package/components/Table/index.js +24 -24
  1309. package/components/Table/utils.d.ts +1 -1
  1310. package/components/Tabs/Tab.d.ts +1 -1
  1311. package/components/Tabs/TabList/TabItem.d.ts +1 -1
  1312. package/components/Tabs/TabList/TabList.d.ts +1 -1
  1313. package/components/Tabs/TabList/index.d.ts +1 -1
  1314. package/components/Tabs/TabList/index.js +2 -2
  1315. package/components/Tabs/TabPanel/TabPanel.d.ts +1 -3
  1316. package/components/Tabs/TabPanel/index.d.ts +1 -1
  1317. package/components/Tabs/TabPanel/index.js +2 -2
  1318. package/components/Tabs/TabPanel/styles.module.scss +0 -28
  1319. package/components/Tabs/TabPanel/styles.module.scss.d.ts +0 -4
  1320. package/components/Tabs/Tabs.d.ts +2 -2
  1321. package/components/Tabs/index.d.ts +1 -1
  1322. package/components/Tabs/index.js +45 -72
  1323. package/components/Tabs/index.js.map +1 -1
  1324. package/components/Tag/Tag.d.ts +1 -1
  1325. package/components/Tag/index.d.ts +1 -1
  1326. package/components/Tag/index.js +29 -18
  1327. package/components/Tag/index.js.map +1 -1
  1328. package/components/TagList/TagList.d.ts +1 -1
  1329. package/components/TagList/index.d.ts +1 -1
  1330. package/components/TagList/index.js +8 -6
  1331. package/components/TagList/index.js.map +1 -1
  1332. package/components/Textarea/Textarea.d.ts +1 -1
  1333. package/components/Textarea/index.d.ts +1 -1
  1334. package/components/Textarea/index.js +2 -2
  1335. package/components/Tile/Tile.d.ts +1 -1
  1336. package/components/Tile/index.d.ts +1 -1
  1337. package/components/Tile/index.js +64 -55
  1338. package/components/Tile/index.js.map +1 -1
  1339. package/components/Tile/styles.module.scss +28 -23
  1340. package/components/Tile/styles.module.scss.d.ts +1 -0
  1341. package/components/Title/Title.d.ts +1 -1
  1342. package/components/Title/index.d.ts +1 -1
  1343. package/components/Title/index.js +5 -5
  1344. package/components/Toggle/Toggle.d.ts +1 -2
  1345. package/components/Toggle/index.d.ts +1 -1
  1346. package/components/Toggle/index.js +3161 -1786
  1347. package/components/Toggle/index.js.map +1 -1
  1348. package/components/Tooltip/Tooltip.d.ts +1 -1
  1349. package/components/Tooltip/TooltipWord/TooltipWord.d.ts +1 -1
  1350. package/components/Tooltip/TooltipWord/index.d.ts +1 -1
  1351. package/components/Tooltip/TooltipWord/index.js +2 -2
  1352. package/components/Tooltip/index.d.ts +1 -1
  1353. package/components/Tooltip/index.js +79 -46
  1354. package/components/Tooltip/index.js.map +1 -1
  1355. package/components/Trigger/HelpSign.d.ts +1 -1
  1356. package/components/Trigger/InfoSignStroke.d.ts +1 -1
  1357. package/components/Trigger/Trigger.d.ts +1 -1
  1358. package/components/Trigger/index.d.ts +1 -1
  1359. package/components/Trigger/index.js +2 -2
  1360. package/components/Validation/ErrorList.d.ts +1 -1
  1361. package/components/Validation/ErrorListItem.d.ts +1 -1
  1362. package/components/Validation/Validation.d.ts +1 -1
  1363. package/components/Validation/ValidationSummary.d.ts +1 -1
  1364. package/components/Validation/index.d.ts +1 -1
  1365. package/components/Validation/index.js +65 -41
  1366. package/components/Validation/index.js.map +1 -1
  1367. package/constants.js +113 -10
  1368. package/constants.js.map +1 -1
  1369. package/docs/ButtonWithModal/ButtonWithModal.d.ts +1 -1
  1370. package/docs/ButtonWithModal/index.d.ts +1 -1
  1371. package/docs/FormExample/index.d.ts +1 -1
  1372. package/docs/GridExample/GridExample.d.ts +1 -1
  1373. package/docs/GridExample/index.d.ts +1 -1
  1374. package/docs/HelpBubbleExample/HelpBubbleExample.d.ts +1 -1
  1375. package/docs/HelpBubbleExample/index.d.ts +1 -1
  1376. package/docs/TooltipExample/TooltipExample.d.ts +1 -1
  1377. package/docs/TooltipExample/index.d.ts +1 -1
  1378. package/hoc/withBreakpoint/index.d.ts +1 -1
  1379. package/hoc/withBreakpoint/index.js +3 -3
  1380. package/hoc/withBreakpoint/withBreakpoint.d.ts +1 -1
  1381. package/hoc/withBreakpoint/withBreakpoint.js +9 -9
  1382. package/hoc/withBreakpoint/withBreakpoint.js.map +1 -1
  1383. package/hooks/useBreakpoint.js +51 -30
  1384. package/hooks/useBreakpoint.js.map +1 -1
  1385. package/hooks/useDelayedState.js +18 -10
  1386. package/hooks/useDelayedState.js.map +1 -1
  1387. package/hooks/useElementList.js +19 -13
  1388. package/hooks/useElementList.js.map +1 -1
  1389. package/hooks/useEventListenerState.d.ts +1 -1
  1390. package/hooks/useEventListenerState.js +10 -7
  1391. package/hooks/useEventListenerState.js.map +1 -1
  1392. package/hooks/useExpand.js +17 -10
  1393. package/hooks/useExpand.js.map +1 -1
  1394. package/hooks/useFocusToggle.d.ts +1 -1
  1395. package/hooks/useFocusToggle.js +27 -15
  1396. package/hooks/useFocusToggle.js.map +1 -1
  1397. package/hooks/useFocusTrap.d.ts +1 -1
  1398. package/hooks/useFocusTrap.js +26 -16
  1399. package/hooks/useFocusTrap.js.map +1 -1
  1400. package/hooks/useFocusableElements.js +6 -5
  1401. package/hooks/useFocusableElements.js.map +1 -1
  1402. package/hooks/useHover.js +5 -5
  1403. package/hooks/useHover.js.map +1 -1
  1404. package/hooks/useIcons.js +19 -12
  1405. package/hooks/useIcons.js.map +1 -1
  1406. package/hooks/useIntersectionObserver.js +15 -8
  1407. package/hooks/useIntersectionObserver.js.map +1 -1
  1408. package/hooks/useInterval.js +7 -7
  1409. package/hooks/useInterval.js.map +1 -1
  1410. package/hooks/useIsServerSide.js +8 -7
  1411. package/hooks/useIsServerSide.js.map +1 -1
  1412. package/hooks/useIsVisible.js +10 -8
  1413. package/hooks/useIsVisible.js.map +1 -1
  1414. package/hooks/useKeyboardEvent.js +17 -14
  1415. package/hooks/useKeyboardEvent.js.map +1 -1
  1416. package/hooks/useLayoutEvent.js +12 -9
  1417. package/hooks/useLayoutEvent.js.map +1 -1
  1418. package/hooks/useOutsideEvent.js +13 -8
  1419. package/hooks/useOutsideEvent.js.map +1 -1
  1420. package/hooks/usePrevious.js +8 -7
  1421. package/hooks/usePrevious.js.map +1 -1
  1422. package/hooks/usePseudoClasses.js +38 -11
  1423. package/hooks/usePseudoClasses.js.map +1 -1
  1424. package/hooks/useResizeObserver.js +25 -12
  1425. package/hooks/useResizeObserver.js.map +1 -1
  1426. package/hooks/useRovingFocus.js +51 -21
  1427. package/hooks/useRovingFocus.js.map +1 -1
  1428. package/hooks/useSize.js +39 -20
  1429. package/hooks/useSize.js.map +1 -1
  1430. package/hooks/useToggle.js +19 -11
  1431. package/hooks/useToggle.js.map +1 -1
  1432. package/hooks/useUuid.js +6 -6
  1433. package/hooks/useUuid.js.map +1 -1
  1434. package/hooks/usestopPropagation.js +14 -11
  1435. package/hooks/usestopPropagation.js.map +1 -1
  1436. package/index.d.ts +0 -1
  1437. package/index.js +43 -45
  1438. package/index.js.map +1 -1
  1439. package/package.json +1 -1
  1440. package/style.css +181 -1
  1441. package/theme/currys/color.js +13 -4
  1442. package/theme/currys/color.js.map +1 -1
  1443. package/theme/currys/index.js +6 -6
  1444. package/theme/currys/spacing.js +24 -20
  1445. package/theme/currys/spacing.js.map +1 -1
  1446. package/theme/grid.js +14 -12
  1447. package/theme/grid.js.map +1 -1
  1448. package/theme/index.js +10 -10
  1449. package/theme/index.js.map +1 -1
  1450. package/theme/palette.js +20 -14
  1451. package/theme/palette.js.map +1 -1
  1452. package/theme/spacers.js +17 -16
  1453. package/theme/spacers.js.map +1 -1
  1454. package/utils/accessibility.js +25 -18
  1455. package/utils/accessibility.js.map +1 -1
  1456. package/utils/component.d.ts +1 -1
  1457. package/utils/component.js +12 -7
  1458. package/utils/component.js.map +1 -1
  1459. package/utils/debounce.js +15 -10
  1460. package/utils/debounce.js.map +1 -1
  1461. package/utils/device.js +4 -2
  1462. package/utils/device.js.map +1 -1
  1463. package/utils/environment.js +9 -8
  1464. package/utils/environment.js.map +1 -1
  1465. package/utils/focus.js +8 -5
  1466. package/utils/focus.js.map +1 -1
  1467. package/utils/loremtext.js +7 -5
  1468. package/utils/loremtext.js.map +1 -1
  1469. package/utils/mobile.js +13 -7
  1470. package/utils/mobile.js.map +1 -1
  1471. package/utils/refs.js +16 -7
  1472. package/utils/refs.js.map +1 -1
  1473. package/utils/tests/setup-test.d.ts +0 -8
  1474. package/utils/uuid.js +3 -3
  1475. package/utils/viewport.js +4 -4
  1476. package/utils/viewport.js.map +1 -1
  1477. package/utils.js +10 -2
  1478. package/utils.js.map +1 -1
  1479. package/uuid.js +15 -9
  1480. package/uuid.js.map +1 -1
  1481. package/hooks/useSticky.d.ts +0 -21
  1482. package/hooks/useSticky.js +0 -18
  1483. package/hooks/useSticky.js.map +0 -1
@@ -1,84 +1,57 @@
1
- import { jsxs as A, jsx as d } from "react/jsx-runtime";
2
- import b, { useState as i, useRef as v, useEffect as N } from "react";
3
- import w from "classnames";
4
- import { a as J, T as K } from "../../TabList.js";
5
- import { T as O } from "../../TabPanel.js";
6
- import Q from "../../scss/layout.module.scss";
7
- import { isMobileUA as V } from "../../utils/mobile.js";
8
- import m from "./styles.module.scss";
9
- const W = 75, Y = ({
10
- activeTab: L,
11
- children: c,
12
- className: S,
13
- color: l = "white",
14
- containerBreakout: g = !0,
15
- onColor: M = "onwhite",
16
- sticky: k = !0,
17
- testId: D,
18
- touchBehaviour: X = "none"
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import React, { useState, useRef } from "react";
3
+ import classNames from "classnames";
4
+ import { a as Tab, T as TabList } from "../../TabList.js";
5
+ import { T as TabPanel } from "../../TabPanel.js";
6
+ import designsystemlayout from "../../scss/layout.module.scss";
7
+ import styles from "./styles.module.scss";
8
+ const TabsRoot = ({
9
+ activeTab,
10
+ children,
11
+ className,
12
+ color = "white",
13
+ containerBreakout = true,
14
+ onColor = "onwhite",
15
+ sticky = true,
16
+ testId
19
17
  }) => {
20
- const y = L !== void 0, [P, U] = i(0), [u, j] = i(0), [h, F] = i(0), [I, s] = i(0), [$, f] = i(null), C = V(), n = v(null), r = v(null), q = v(null);
21
- let R = "onwhite";
22
- l === "white" && (R = M);
23
- const p = (e, o) => {
24
- y || (U(e), e > o ? (s(0), G()) : e < o && (s(0), z()));
25
- }, z = () => {
26
- C && f("right");
27
- }, G = () => {
28
- C && f("left");
29
- }, H = () => {
30
- f(null);
31
- }, t = y ? L : P;
32
- return N(() => {
33
- const e = (a) => {
34
- j(a.touches[0].clientX);
35
- }, o = (a) => {
36
- F(a.touches[0].clientX);
37
- const T = a.touches[0].clientX - u;
38
- t === 0 && T > 0 || t === b.Children.count(c) - 1 && T < 0 ? s(0) : s(T);
39
- }, x = () => {
40
- Math.abs(h - u) >= W && (h > u ? p(Math.max(0, t - 1), t) : p(Math.min(b.Children.count(c) - 1, t + 1), t)), s(0);
41
- };
42
- return X === "swipe" && n.current && (n.current.addEventListener("touchstart", e), n.current.addEventListener("touchmove", o), n.current.addEventListener("touchend", x)), () => {
43
- n.current && (n.current.removeEventListener("touchstart", e), n.current.removeEventListener("touchmove", o), n.current.removeEventListener("touchend", x));
44
- };
45
- }, [X, u, h, t]), N(() => {
46
- const e = () => {
47
- H();
48
- };
49
- return r.current && r.current.addEventListener("animationend", e), () => {
50
- r.current && r.current.removeEventListener("animationend", e);
51
- };
52
- }, []), /* @__PURE__ */ A("div", { className: w(S, g && Q["container-breakout"]), "data-testid": D, children: [
53
- /* @__PURE__ */ A(
18
+ const isControlled = activeTab !== void 0;
19
+ const [uncontrolledValue, setUncontrolledValue] = useState(0);
20
+ const tabsRef = useRef(null);
21
+ const tabPanelRef = useRef(null);
22
+ const tabListRef = useRef(null);
23
+ let onColorUsed = "onwhite";
24
+ if (color === "white") {
25
+ onColorUsed = onColor;
26
+ }
27
+ const onValueChange = (newValue) => {
28
+ if (!isControlled) {
29
+ setUncontrolledValue(newValue);
30
+ }
31
+ };
32
+ const activeTabIndex = isControlled ? activeTab : uncontrolledValue;
33
+ return /* @__PURE__ */ jsxs("div", { className: classNames(className, containerBreakout && designsystemlayout["container-breakout"]), "data-testid": testId, children: [
34
+ /* @__PURE__ */ jsxs(
54
35
  "div",
55
36
  {
56
- ref: q,
57
- className: w(m["tab-list-wrapper"], {
58
- [m["tab-list-wrapper--sticky"]]: k
37
+ ref: tabListRef,
38
+ className: classNames(styles["tab-list-wrapper"], {
39
+ [styles["tab-list-wrapper--sticky"]]: sticky
59
40
  }),
60
41
  children: [
61
- /* @__PURE__ */ d(
62
- K,
63
- {
64
- onTabListClick: (e) => p(e, t),
65
- selectedTab: t,
66
- color: l,
67
- onColor: R,
68
- children: c
69
- }
70
- ),
71
- /* @__PURE__ */ d("div", { className: w(m["panel-wrapper"], m[`panel-wrapper--${l}`]) })
42
+ /* @__PURE__ */ jsx(TabList, { onTabListClick: (index) => onValueChange(index), selectedTab: activeTabIndex, color, onColor: onColorUsed, children }),
43
+ /* @__PURE__ */ jsx("div", { className: classNames(styles["panel-wrapper"], styles[`panel-wrapper--${color}`]) })
72
44
  ]
73
45
  }
74
46
  ),
75
- /* @__PURE__ */ d("div", { ref: n, style: { marginTop: "-50px" }, children: /* @__PURE__ */ d(O, { ref: r, color: l, isFirst: t == 0, translateX: I, animate: $, children: b.Children.toArray(c)[t] }) })
47
+ /* @__PURE__ */ jsx("div", { ref: tabsRef, style: { marginTop: "-50px" }, children: /* @__PURE__ */ jsx(TabPanel, { ref: tabPanelRef, color, isFirst: activeTabIndex == 0, children: React.Children.toArray(children)[activeTabIndex] }) })
76
48
  ] });
77
- }, E = Y;
78
- E.displayName = "Tabs";
79
- E.Tab = J;
80
- E.Tab.displayName = "Tabs.Tab";
49
+ };
50
+ const Tabs = TabsRoot;
51
+ Tabs.displayName = "Tabs";
52
+ Tabs.Tab = Tab;
53
+ Tabs.Tab.displayName = "Tabs.Tab";
81
54
  export {
82
- E as default
55
+ Tabs as default
83
56
  };
84
57
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/components/Tabs/Tabs.tsx"],"sourcesContent":["import React, { useState, useEffect, useRef } from 'react';\n\nimport classNames from 'classnames';\n\nimport Tab from './Tab';\nimport TabList from './TabList';\nimport TabPanel from './TabPanel';\nimport designsystemlayout from '../../scss/layout.module.scss';\nimport { PaletteNames } from '../../theme/palette';\nimport { isMobileUA } from '../../utils/mobile';\n\nimport styles from './styles.module.scss';\n\nexport type { TabProps } from './Tab';\nexport type TabsColors = Extract<PaletteNames, 'blueberry' | 'neutral' | 'white'>;\nexport type TabsOnColor = 'onblueberry' | 'onneutral' | 'onwhite';\nexport type TabsTouchBehaviour = 'swipe' | 'none';\n\nexport interface TabsProps {\n children?: React.ReactNode;\n /** Controlled state for Tabs component */\n activeTab?: number;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the color of the tabs. Default: white */\n color?: TabsColors;\n /** Sets wether the component should use the container-breakout class. Default: true */\n containerBreakout?: boolean;\n /** Sets the background color of the tabs. Can only be used when the color is set to white. Default: onwhite */\n onColor?: TabsOnColor;\n /** Whether the tab list should be sticky */\n sticky?: boolean;\n /** Determines how Tabs respons to touch events. */\n touchBehaviour?: TabsTouchBehaviour;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nconst swipeDistanceThreshold = 75;\n\nconst TabsRoot: React.FC<TabsProps> = ({\n activeTab,\n children,\n className,\n color = 'white',\n containerBreakout = true,\n onColor = 'onwhite',\n sticky = true,\n testId,\n touchBehaviour = 'none',\n}) => {\n const isControlled = activeTab !== undefined;\n const [uncontrolledValue, setUncontrolledValue] = useState(0);\n const [touchStartX, setTouchStartX] = useState(0);\n const [touchEndX, setTouchEndX] = useState(0);\n const [translateX, setTranslateX] = useState(0);\n const [panelAnimation, setPanelAnimation] = useState<'left' | 'right' | null>(null);\n const mobile = isMobileUA();\n const tabsRef = useRef<HTMLDivElement>(null);\n const tabPanelRef = useRef<HTMLDivElement>(null);\n const tabListRef = useRef<HTMLDivElement>(null);\n\n let onColorUsed: TabsOnColor = 'onwhite';\n if (color === 'white') {\n onColorUsed = onColor;\n }\n\n const onValueChange = (newValue: number, oldValue: number): void => {\n if (!isControlled) {\n setUncontrolledValue(newValue);\n if (newValue > oldValue) {\n // make sure that the translateX is reset so the animation does not go outside the screen\n setTranslateX(0);\n onLeftSwipe();\n } else if (newValue < oldValue) {\n // make sure that the translateX is reset so the animation does not go outside the screen\n setTranslateX(0);\n onRightSwipe();\n }\n }\n };\n\n const onRightSwipe = (): void => {\n mobile && setPanelAnimation('right');\n };\n\n const onLeftSwipe = (): void => {\n mobile && setPanelAnimation('left');\n };\n\n const resetAnimation = (): void => {\n setPanelAnimation(null);\n };\n\n const activeTabIndex = isControlled ? activeTab : uncontrolledValue;\n\n useEffect(() => {\n const handleTouchStart = (event: TouchEvent): void => {\n setTouchStartX(event.touches[0].clientX);\n };\n\n const handleTouchMove = (event: TouchEvent): void => {\n setTouchEndX(event.touches[0].clientX);\n const newTranslateX = event.touches[0].clientX - touchStartX;\n\n if (activeTabIndex === 0 && newTranslateX > 0) {\n setTranslateX(0);\n } else if (activeTabIndex === React.Children.count(children) - 1 && newTranslateX < 0) {\n setTranslateX(0);\n } else {\n setTranslateX(newTranslateX);\n }\n };\n\n const handleTouchEnd = (): void => {\n const swipeDistance = Math.abs(touchEndX - touchStartX);\n if (swipeDistance >= swipeDistanceThreshold) {\n if (touchEndX > touchStartX) {\n // User swiped right\n onValueChange(Math.max(0, activeTabIndex - 1), activeTabIndex);\n } else {\n // User swiped left\n onValueChange(Math.min(React.Children.count(children) - 1, activeTabIndex + 1), activeTabIndex);\n }\n }\n setTranslateX(0);\n };\n\n if (touchBehaviour === 'swipe' && tabsRef.current) {\n tabsRef.current.addEventListener('touchstart', handleTouchStart);\n tabsRef.current.addEventListener('touchmove', handleTouchMove);\n tabsRef.current.addEventListener('touchend', handleTouchEnd);\n }\n return () => {\n if (tabsRef.current) {\n tabsRef.current.removeEventListener('touchstart', handleTouchStart);\n tabsRef.current.removeEventListener('touchmove', handleTouchMove);\n tabsRef.current.removeEventListener('touchend', handleTouchEnd);\n }\n };\n }, [touchBehaviour, touchStartX, touchEndX, activeTabIndex]);\n\n useEffect(() => {\n const handleAnimationEnd = (): void => {\n resetAnimation();\n };\n\n if (tabPanelRef.current) {\n tabPanelRef.current.addEventListener('animationend', handleAnimationEnd);\n }\n\n return () => {\n if (tabPanelRef.current) {\n tabPanelRef.current.removeEventListener('animationend', handleAnimationEnd);\n }\n };\n }, []);\n\n return (\n <div className={classNames(className, containerBreakout && designsystemlayout['container-breakout'])} data-testid={testId}>\n <div\n ref={tabListRef}\n className={classNames(styles['tab-list-wrapper'], {\n [styles['tab-list-wrapper--sticky']]: sticky,\n })}\n >\n <TabList\n onTabListClick={(index: number) => onValueChange(index, activeTabIndex)}\n selectedTab={activeTabIndex}\n color={color}\n onColor={onColorUsed}\n >\n {children}\n </TabList>\n <div className={classNames(styles['panel-wrapper'], styles[`panel-wrapper--${color}`])}></div>\n </div>\n <div ref={tabsRef} style={{ marginTop: '-50px' }}>\n <TabPanel ref={tabPanelRef} color={color} isFirst={activeTabIndex == 0} translateX={translateX} animate={panelAnimation}>\n {React.Children.toArray(children)[activeTabIndex]}\n </TabPanel>\n </div>\n </div>\n );\n};\n\ntype TabsComponent = typeof TabsRoot & {\n Tab: typeof Tab;\n};\nconst Tabs = TabsRoot as TabsComponent;\nTabs.displayName = 'Tabs';\nTabs.Tab = Tab;\nTabs.Tab.displayName = 'Tabs.Tab';\n\nexport default Tabs;\n"],"names":["swipeDistanceThreshold","TabsRoot","activeTab","children","className","color","containerBreakout","onColor","sticky","testId","touchBehaviour","isControlled","uncontrolledValue","setUncontrolledValue","useState","touchStartX","setTouchStartX","touchEndX","setTouchEndX","translateX","setTranslateX","panelAnimation","setPanelAnimation","mobile","isMobileUA","tabsRef","useRef","tabPanelRef","tabListRef","onColorUsed","onValueChange","newValue","oldValue","onLeftSwipe","onRightSwipe","resetAnimation","activeTabIndex","useEffect","handleTouchStart","event","handleTouchMove","newTranslateX","React","handleTouchEnd","handleAnimationEnd","jsxs","classNames","designsystemlayout","styles","jsx","TabList","index","TabPanel","Tabs","Tab"],"mappings":";;;;;;;;AAsCA,MAAMA,IAAyB,IAEzBC,IAAgC,CAAC;AAAA,EACrC,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,OAAAC,IAAQ;AAAA,EACR,mBAAAC,IAAoB;AAAA,EACpB,SAAAC,IAAU;AAAA,EACV,QAAAC,IAAS;AAAA,EACT,QAAAC;AAAA,EACA,gBAAAC,IAAiB;AACnB,MAAM;AACJ,QAAMC,IAAeT,MAAc,QAC7B,CAACU,GAAmBC,CAAoB,IAAIC,EAAS,CAAC,GACtD,CAACC,GAAaC,CAAc,IAAIF,EAAS,CAAC,GAC1C,CAACG,GAAWC,CAAY,IAAIJ,EAAS,CAAC,GACtC,CAACK,GAAYC,CAAa,IAAIN,EAAS,CAAC,GACxC,CAACO,GAAgBC,CAAiB,IAAIR,EAAkC,IAAI,GAC5ES,IAASC,KACTC,IAAUC,EAAuB,IAAI,GACrCC,IAAcD,EAAuB,IAAI,GACzCE,IAAaF,EAAuB,IAAI;AAE9C,MAAIG,IAA2B;AAC/B,EAAIxB,MAAU,YACEwB,IAAAtB;AAGV,QAAAuB,IAAgB,CAACC,GAAkBC,MAA2B;AAClE,IAAKrB,MACHE,EAAqBkB,CAAQ,GACzBA,IAAWC,KAEbZ,EAAc,CAAC,GACHa,OACHF,IAAWC,MAEpBZ,EAAc,CAAC,GACFc;EAEjB,GAGIA,IAAe,MAAY;AAC/B,IAAAX,KAAUD,EAAkB,OAAO;AAAA,EAAA,GAG/BW,IAAc,MAAY;AAC9B,IAAAV,KAAUD,EAAkB,MAAM;AAAA,EAAA,GAG9Ba,IAAiB,MAAY;AACjC,IAAAb,EAAkB,IAAI;AAAA,EAAA,GAGlBc,IAAiBzB,IAAeT,IAAYU;AAElD,SAAAyB,EAAU,MAAM;AACR,UAAAC,IAAmB,CAACC,MAA4B;AACpD,MAAAvB,EAAeuB,EAAM,QAAQ,CAAC,EAAE,OAAO;AAAA,IAAA,GAGnCC,IAAkB,CAACD,MAA4B;AACnD,MAAArB,EAAaqB,EAAM,QAAQ,CAAC,EAAE,OAAO;AACrC,YAAME,IAAgBF,EAAM,QAAQ,CAAC,EAAE,UAAUxB;AAE7C,MAAAqB,MAAmB,KAAKK,IAAgB,KAEjCL,MAAmBM,EAAM,SAAS,MAAMvC,CAAQ,IAAI,KAAKsC,IAAgB,IADlFrB,EAAc,CAAC,IAIfA,EAAcqB,CAAa;AAAA,IAC7B,GAGIE,IAAiB,MAAY;AAEjC,MADsB,KAAK,IAAI1B,IAAYF,CAAW,KACjCf,MACfiB,IAAYF,IAEde,EAAc,KAAK,IAAI,GAAGM,IAAiB,CAAC,GAAGA,CAAc,IAG/CN,EAAA,KAAK,IAAIY,EAAM,SAAS,MAAMvC,CAAQ,IAAI,GAAGiC,IAAiB,CAAC,GAAGA,CAAc,IAGlGhB,EAAc,CAAC;AAAA,IAAA;AAGb,WAAAV,MAAmB,WAAWe,EAAQ,YAChCA,EAAA,QAAQ,iBAAiB,cAAca,CAAgB,GACvDb,EAAA,QAAQ,iBAAiB,aAAae,CAAe,GACrDf,EAAA,QAAQ,iBAAiB,YAAYkB,CAAc,IAEtD,MAAM;AACX,MAAIlB,EAAQ,YACFA,EAAA,QAAQ,oBAAoB,cAAca,CAAgB,GAC1Db,EAAA,QAAQ,oBAAoB,aAAae,CAAe,GACxDf,EAAA,QAAQ,oBAAoB,YAAYkB,CAAc;AAAA,IAChE;AAAA,KAED,CAACjC,GAAgBK,GAAaE,GAAWmB,CAAc,CAAC,GAE3DC,EAAU,MAAM;AACd,UAAMO,IAAqB,MAAY;AACtB,MAAAT;IAAA;AAGjB,WAAIR,EAAY,WACFA,EAAA,QAAQ,iBAAiB,gBAAgBiB,CAAkB,GAGlE,MAAM;AACX,MAAIjB,EAAY,WACFA,EAAA,QAAQ,oBAAoB,gBAAgBiB,CAAkB;AAAA,IAC5E;AAAA,EAEJ,GAAG,CAAE,CAAA,GAGH,gBAAAC,EAAC,OAAI,EAAA,WAAWC,EAAW1C,GAAWE,KAAqByC,EAAmB,oBAAoB,CAAC,GAAG,eAAatC,GACjH,UAAA;AAAA,IAAA,gBAAAoC;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,KAAKjB;AAAA,QACL,WAAWkB,EAAWE,EAAO,kBAAkB,GAAG;AAAA,UAChD,CAACA,EAAO,0BAA0B,CAAC,GAAGxC;AAAA,QAAA,CACvC;AAAA,QAED,UAAA;AAAA,UAAA,gBAAAyC;AAAA,YAACC;AAAA,YAAA;AAAA,cACC,gBAAgB,CAACC,MAAkBrB,EAAcqB,GAAOf,CAAc;AAAA,cACtE,aAAaA;AAAA,cACb,OAAA/B;AAAA,cACA,SAASwB;AAAA,cAER,UAAA1B;AAAA,YAAA;AAAA,UACH;AAAA,UACC,gBAAA8C,EAAA,OAAA,EAAI,WAAWH,EAAWE,EAAO,eAAe,GAAGA,EAAO,kBAAkB3C,CAAK,EAAE,CAAC,EAAG,CAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IAC1F;AAAA,IACA,gBAAA4C,EAAC,OAAI,EAAA,KAAKxB,GAAS,OAAO,EAAE,WAAW,QAAQ,GAC7C,UAAC,gBAAAwB,EAAAG,GAAA,EAAS,KAAKzB,GAAa,OAAAtB,GAAc,SAAS+B,KAAkB,GAAG,YAAAjB,GAAwB,SAASE,GACtG,UAAAqB,EAAM,SAAS,QAAQvC,CAAQ,EAAEiC,CAAc,EAAA,CAClD,EACF,CAAA;AAAA,EACF,EAAA,CAAA;AAEJ,GAKMiB,IAAOpD;AACboD,EAAK,cAAc;AACnBA,EAAK,MAAMC;AACXD,EAAK,IAAI,cAAc;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/Tabs/Tabs.tsx"],"sourcesContent":["import React, { useState, useRef } from 'react';\n\nimport classNames from 'classnames';\n\nimport Tab from './Tab';\nimport TabList from './TabList';\nimport TabPanel from './TabPanel';\nimport designsystemlayout from '../../scss/layout.module.scss';\nimport { PaletteNames } from '../../theme/palette';\n\nimport styles from './styles.module.scss';\n\nexport type { TabProps } from './Tab';\nexport type TabsColors = Extract<PaletteNames, 'blueberry' | 'neutral' | 'white'>;\nexport type TabsOnColor = 'onblueberry' | 'onneutral' | 'onwhite';\nexport type TabsTouchBehaviour = 'swipe' | 'none';\n\nexport interface TabsProps {\n children?: React.ReactNode;\n /** Controlled state for Tabs component */\n activeTab?: number;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the color of the tabs. Default: white */\n color?: TabsColors;\n /** Sets wether the component should use the container-breakout class. Default: true */\n containerBreakout?: boolean;\n /** Sets the background color of the tabs. Can only be used when the color is set to white. Default: onwhite */\n onColor?: TabsOnColor;\n /** Whether the tab list should be sticky */\n sticky?: boolean;\n /** Determines how Tabs respons to touch events. */\n touchBehaviour?: TabsTouchBehaviour;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nconst TabsRoot: React.FC<TabsProps> = ({\n activeTab,\n children,\n className,\n color = 'white',\n containerBreakout = true,\n onColor = 'onwhite',\n sticky = true,\n testId,\n}) => {\n const isControlled = activeTab !== undefined;\n const [uncontrolledValue, setUncontrolledValue] = useState(0);\n const tabsRef = useRef<HTMLDivElement>(null);\n const tabPanelRef = useRef<HTMLDivElement>(null);\n const tabListRef = useRef<HTMLDivElement>(null);\n\n let onColorUsed: TabsOnColor = 'onwhite';\n if (color === 'white') {\n onColorUsed = onColor;\n }\n\n const onValueChange = (newValue: number): void => {\n if (!isControlled) {\n setUncontrolledValue(newValue);\n }\n };\n\n const activeTabIndex = isControlled ? activeTab : uncontrolledValue;\n\n return (\n <div className={classNames(className, containerBreakout && designsystemlayout['container-breakout'])} data-testid={testId}>\n <div\n ref={tabListRef}\n className={classNames(styles['tab-list-wrapper'], {\n [styles['tab-list-wrapper--sticky']]: sticky,\n })}\n >\n <TabList onTabListClick={(index: number) => onValueChange(index)} selectedTab={activeTabIndex} color={color} onColor={onColorUsed}>\n {children}\n </TabList>\n <div className={classNames(styles['panel-wrapper'], styles[`panel-wrapper--${color}`])}></div>\n </div>\n <div ref={tabsRef} style={{ marginTop: '-50px' }}>\n <TabPanel ref={tabPanelRef} color={color} isFirst={activeTabIndex == 0}>\n {React.Children.toArray(children)[activeTabIndex]}\n </TabPanel>\n </div>\n </div>\n );\n};\n\ntype TabsComponent = typeof TabsRoot & {\n Tab: typeof Tab;\n};\nconst Tabs = TabsRoot as TabsComponent;\nTabs.displayName = 'Tabs';\nTabs.Tab = Tab;\nTabs.Tab.displayName = 'Tabs.Tab';\n\nexport default Tabs;\n"],"names":[],"mappings":";;;;;;;AAqCA,MAAM,WAAgC,CAAC;AAAA,EACrC;AAAA,EACA;AAAA,EACA;AAAA,EACA,QAAQ;AAAA,EACR,oBAAoB;AAAA,EACpB,UAAU;AAAA,EACV,SAAS;AAAA,EACT;AACF,MAAM;AACJ,QAAM,eAAe,cAAc;AACnC,QAAM,CAAC,mBAAmB,oBAAoB,IAAI,SAAS,CAAC;AACtD,QAAA,UAAU,OAAuB,IAAI;AACrC,QAAA,cAAc,OAAuB,IAAI;AACzC,QAAA,aAAa,OAAuB,IAAI;AAE9C,MAAI,cAA2B;AAC/B,MAAI,UAAU,SAAS;AACP,kBAAA;AAAA,EAAA;AAGV,QAAA,gBAAgB,CAAC,aAA2B;AAChD,QAAI,CAAC,cAAc;AACjB,2BAAqB,QAAQ;AAAA,IAAA;AAAA,EAEjC;AAEM,QAAA,iBAAiB,eAAe,YAAY;AAGhD,SAAA,qBAAC,OAAI,EAAA,WAAW,WAAW,WAAW,qBAAqB,mBAAmB,oBAAoB,CAAC,GAAG,eAAa,QACjH,UAAA;AAAA,IAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,KAAK;AAAA,QACL,WAAW,WAAW,OAAO,kBAAkB,GAAG;AAAA,UAChD,CAAC,OAAO,0BAA0B,CAAC,GAAG;AAAA,QAAA,CACvC;AAAA,QAED,UAAA;AAAA,UAAA,oBAAC,SAAQ,EAAA,gBAAgB,CAAC,UAAkB,cAAc,KAAK,GAAG,aAAa,gBAAgB,OAAc,SAAS,aACnH,SACH,CAAA;AAAA,UACC,oBAAA,OAAA,EAAI,WAAW,WAAW,OAAO,eAAe,GAAG,OAAO,kBAAkB,KAAK,EAAE,CAAC,EAAG,CAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IAC1F;AAAA,IACA,oBAAC,OAAI,EAAA,KAAK,SAAS,OAAO,EAAE,WAAW,QAAA,GACrC,UAAA,oBAAC,UAAS,EAAA,KAAK,aAAa,OAAc,SAAS,kBAAkB,GAClE,UAAM,MAAA,SAAS,QAAQ,QAAQ,EAAE,cAAc,EAClD,CAAA,EACF,CAAA;AAAA,EAAA,GACF;AAEJ;AAKA,MAAM,OAAO;AACb,KAAK,cAAc;AACnB,KAAK,MAAM;AACX,KAAK,IAAI,cAAc;"}
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  import { PaletteNames } from '../../theme/palette';
3
3
  import { SvgIcon } from '../Icon';
4
4
  import { IconName } from '../Icons/IconNames';
@@ -1,3 +1,3 @@
1
- import Tag from './Tag';
1
+ import { default as Tag } from './Tag';
2
2
  export * from './Tag';
3
3
  export default Tag;
@@ -1,25 +1,36 @@
1
- import { jsxs as p, jsx as r } from "react/jsx-runtime";
2
- import g from "classnames";
3
- import { AnalyticsId as f, IconSize as t } from "../../constants.js";
4
- import { palette as m } from "../../theme/palette.js";
5
- import { I as u } from "../../Icon.js";
6
- import { L as h } from "../../LazyIcon.js";
7
- import o from "./styles.module.scss";
8
- var I = /* @__PURE__ */ ((a) => (a.medium = "medium", a.large = "large", a))(I || {}), y = /* @__PURE__ */ ((a) => (a.normal = "normal", a.oncolor = "oncolor", a.emphasised = "emphasised", a))(y || {});
9
- const b = (a) => {
10
- const { children: i, size: l = "medium", color: e = "blueberry", svgIcon: s, variant: c = "normal", testId: n } = a, d = g(o.tag, o[`tag--${l}`], o[`tag--${e}`], {
11
- [o["tag--has-icon"]]: s,
12
- [o["tag--emphasised"]]: c == "emphasised"
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import classNames from "classnames";
3
+ import { AnalyticsId, IconSize } from "../../constants.js";
4
+ import { palette } from "../../theme/palette.js";
5
+ import { I as Icon } from "../../Icon.js";
6
+ import { L as LazyIcon } from "../../LazyIcon.js";
7
+ import styles from "./styles.module.scss";
8
+ var TagSize = /* @__PURE__ */ ((TagSize2) => {
9
+ TagSize2["medium"] = "medium";
10
+ TagSize2["large"] = "large";
11
+ return TagSize2;
12
+ })(TagSize || {});
13
+ var TagVariant = /* @__PURE__ */ ((TagVariant2) => {
14
+ TagVariant2["normal"] = "normal";
15
+ TagVariant2["oncolor"] = "oncolor";
16
+ TagVariant2["emphasised"] = "emphasised";
17
+ return TagVariant2;
18
+ })(TagVariant || {});
19
+ const Tag = (props) => {
20
+ const { children, size = "medium", color = "blueberry", svgIcon, variant = "normal", testId } = props;
21
+ const tagClasses = classNames(styles.tag, styles[`tag--${size}`], styles[`tag--${color}`], {
22
+ [styles["tag--has-icon"]]: svgIcon,
23
+ [styles["tag--emphasised"]]: variant == "emphasised"
13
24
  /* emphasised */
14
25
  });
15
- return /* @__PURE__ */ p("span", { className: d, "data-testid": n, "data-analyticsid": f.Tag, children: [
16
- s && (typeof s == "string" ? /* @__PURE__ */ r(h, { iconName: s, size: t.XXSmall, color: m[`${e}800`], className: o.tag__icon }) : /* @__PURE__ */ r(u, { svgIcon: s, size: t.XXSmall, color: m[`${e}800`], className: o.tag__icon })),
17
- i
26
+ return /* @__PURE__ */ jsxs("span", { className: tagClasses, "data-testid": testId, "data-analyticsid": AnalyticsId.Tag, children: [
27
+ svgIcon && (typeof svgIcon === "string" ? /* @__PURE__ */ jsx(LazyIcon, { iconName: svgIcon, size: IconSize.XXSmall, color: palette[`${color}800`], className: styles.tag__icon }) : /* @__PURE__ */ jsx(Icon, { svgIcon, size: IconSize.XXSmall, color: palette[`${color}800`], className: styles.tag__icon })),
28
+ children
18
29
  ] });
19
30
  };
20
31
  export {
21
- I as TagSize,
22
- y as TagVariant,
23
- b as default
32
+ TagSize,
33
+ TagVariant,
34
+ Tag as default
24
35
  };
25
36
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/components/Tag/Tag.tsx"],"sourcesContent":["import React from 'react';\n\nimport cn from 'classnames';\n\nimport { AnalyticsId } from '../../constants';\nimport { palette, PaletteNames } from '../../theme/palette';\nimport Icon, { IconSize, SvgIcon } from '../Icon';\nimport { IconName } from '../Icons/IconNames';\nimport LazyIcon from '../LazyIcon';\n\nimport styles from './styles.module.scss';\n\nexport enum TagSize {\n medium = 'medium',\n large = 'large',\n}\n\nexport enum TagVariant {\n normal = 'normal',\n oncolor = 'oncolor',\n emphasised = 'emphasised',\n}\n\nexport type TagColors = Extract<PaletteNames, 'blueberry' | 'neutral' | 'cherry' | 'banana' | 'kiwi' | 'plum'>;\n\nexport interface TagProps {\n /** Sets the text of the tag */\n children: string;\n /** Sets the size of the tag. Default: medium */\n size?: keyof typeof TagSize;\n /** Sets the background of the tag. Default: blueberry */\n color?: TagColors;\n /** Adds an icon to the tag. */\n svgIcon?: SvgIcon | IconName;\n /* Changes the appearance of the tag. Default: normal */\n variant?: keyof typeof TagVariant;\n /** Sets the data-testid attribute on the expander button. */\n testId?: string;\n}\n\nconst Tag: React.FC<TagProps> = props => {\n const { children, size = TagSize.medium, color = 'blueberry', svgIcon, variant = 'normal', testId } = props;\n\n const tagClasses = cn(styles.tag, styles[`tag--${size}`], styles[`tag--${color}`], {\n [styles['tag--has-icon']]: svgIcon,\n [styles['tag--emphasised']]: variant == TagVariant.emphasised,\n });\n\n return (\n <span className={tagClasses} data-testid={testId} data-analyticsid={AnalyticsId.Tag}>\n {svgIcon &&\n (typeof svgIcon === 'string' ? (\n <LazyIcon iconName={svgIcon} size={IconSize.XXSmall} color={palette[`${color}800`]} className={styles.tag__icon} />\n ) : (\n <Icon svgIcon={svgIcon} size={IconSize.XXSmall} color={palette[`${color}800`]} className={styles.tag__icon} />\n ))}\n {children}\n </span>\n );\n};\n\nexport default Tag;\n"],"names":["TagSize","TagVariant","Tag","props","children","size","color","svgIcon","variant","testId","tagClasses","cn","styles","jsxs","AnalyticsId","jsx","LazyIcon","IconSize","palette","Icon"],"mappings":";;;;;;;AAYY,IAAAA,sBAAAA,OACVA,EAAA,SAAS,UACTA,EAAA,QAAQ,SAFEA,IAAAA,KAAA,CAAA,CAAA,GAKAC,sBAAAA,OACVA,EAAA,SAAS,UACTA,EAAA,UAAU,WACVA,EAAA,aAAa,cAHHA,IAAAA,KAAA,CAAA,CAAA;AAuBZ,MAAMC,IAA0B,CAASC,MAAA;AACjC,QAAA,EAAE,UAAAC,GAAU,MAAAC,IAAO,UAAgB,OAAAC,IAAQ,aAAa,SAAAC,GAAS,SAAAC,IAAU,UAAU,QAAAC,EAAA,IAAWN,GAEhGO,IAAaC,EAAGC,EAAO,KAAKA,EAAO,QAAQP,CAAI,EAAE,GAAGO,EAAO,QAAQN,CAAK,EAAE,GAAG;AAAA,IACjF,CAACM,EAAO,eAAe,CAAC,GAAGL;AAAA,IAC3B,CAACK,EAAO,iBAAiB,CAAC,GAAGJ,KAAW;AAAA;AAAA,EAAA,CACzC;AAGC,SAAA,gBAAAK,EAAC,UAAK,WAAWH,GAAY,eAAaD,GAAQ,oBAAkBK,EAAY,KAC7E,UAAA;AAAA,IAAAP,MACE,OAAOA,KAAY,WAClB,gBAAAQ,EAACC,KAAS,UAAUT,GAAS,MAAMU,EAAS,SAAS,OAAOC,EAAQ,GAAGZ,CAAK,KAAK,GAAG,WAAWM,EAAO,UAAW,CAAA,IAEjH,gBAAAG,EAACI,GAAK,EAAA,SAAAZ,GAAkB,MAAMU,EAAS,SAAS,OAAOC,EAAQ,GAAGZ,CAAK,KAAK,GAAG,WAAWM,EAAO,UAAW,CAAA;AAAA,IAE/GR;AAAA,EACH,EAAA,CAAA;AAEJ;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/Tag/Tag.tsx"],"sourcesContent":["import React from 'react';\n\nimport cn from 'classnames';\n\nimport { AnalyticsId } from '../../constants';\nimport { palette, PaletteNames } from '../../theme/palette';\nimport Icon, { IconSize, SvgIcon } from '../Icon';\nimport { IconName } from '../Icons/IconNames';\nimport LazyIcon from '../LazyIcon';\n\nimport styles from './styles.module.scss';\n\nexport enum TagSize {\n medium = 'medium',\n large = 'large',\n}\n\nexport enum TagVariant {\n normal = 'normal',\n oncolor = 'oncolor',\n emphasised = 'emphasised',\n}\n\nexport type TagColors = Extract<PaletteNames, 'blueberry' | 'neutral' | 'cherry' | 'banana' | 'kiwi' | 'plum'>;\n\nexport interface TagProps {\n /** Sets the text of the tag */\n children: string;\n /** Sets the size of the tag. Default: medium */\n size?: keyof typeof TagSize;\n /** Sets the background of the tag. Default: blueberry */\n color?: TagColors;\n /** Adds an icon to the tag. */\n svgIcon?: SvgIcon | IconName;\n /* Changes the appearance of the tag. Default: normal */\n variant?: keyof typeof TagVariant;\n /** Sets the data-testid attribute on the expander button. */\n testId?: string;\n}\n\nconst Tag: React.FC<TagProps> = props => {\n const { children, size = TagSize.medium, color = 'blueberry', svgIcon, variant = 'normal', testId } = props;\n\n const tagClasses = cn(styles.tag, styles[`tag--${size}`], styles[`tag--${color}`], {\n [styles['tag--has-icon']]: svgIcon,\n [styles['tag--emphasised']]: variant == TagVariant.emphasised,\n });\n\n return (\n <span className={tagClasses} data-testid={testId} data-analyticsid={AnalyticsId.Tag}>\n {svgIcon &&\n (typeof svgIcon === 'string' ? (\n <LazyIcon iconName={svgIcon} size={IconSize.XXSmall} color={palette[`${color}800`]} className={styles.tag__icon} />\n ) : (\n <Icon svgIcon={svgIcon} size={IconSize.XXSmall} color={palette[`${color}800`]} className={styles.tag__icon} />\n ))}\n {children}\n </span>\n );\n};\n\nexport default Tag;\n"],"names":["TagSize","TagVariant","cn"],"mappings":";;;;;;;AAYY,IAAA,4BAAAA,aAAL;AACLA,WAAA,QAAS,IAAA;AACTA,WAAA,OAAQ,IAAA;AAFEA,SAAAA;AAAA,GAAA,WAAA,CAAA,CAAA;AAKA,IAAA,+BAAAC,gBAAL;AACLA,cAAA,QAAS,IAAA;AACTA,cAAA,SAAU,IAAA;AACVA,cAAA,YAAa,IAAA;AAHHA,SAAAA;AAAA,GAAA,cAAA,CAAA,CAAA;AAuBZ,MAAM,MAA0B,CAAS,UAAA;AACjC,QAAA,EAAE,UAAU,OAAO,UAAgB,QAAQ,aAAa,SAAS,UAAU,UAAU,OAAW,IAAA;AAEtG,QAAM,aAAaC,WAAG,OAAO,KAAK,OAAO,QAAQ,IAAI,EAAE,GAAG,OAAO,QAAQ,KAAK,EAAE,GAAG;AAAA,IACjF,CAAC,OAAO,eAAe,CAAC,GAAG;AAAA,IAC3B,CAAC,OAAO,iBAAiB,CAAC,GAAG,WAAW;AAAA;AAAA,EAAA,CACzC;AAGC,SAAA,qBAAC,UAAK,WAAW,YAAY,eAAa,QAAQ,oBAAkB,YAAY,KAC7E,UAAA;AAAA,IAAA,YACE,OAAO,YAAY,WAClB,oBAAC,YAAS,UAAU,SAAS,MAAM,SAAS,SAAS,OAAO,QAAQ,GAAG,KAAK,KAAK,GAAG,WAAW,OAAO,UAAW,CAAA,IAEjH,oBAAC,MAAK,EAAA,SAAkB,MAAM,SAAS,SAAS,OAAO,QAAQ,GAAG,KAAK,KAAK,GAAG,WAAW,OAAO,UAAW,CAAA;AAAA,IAE/G;AAAA,EAAA,GACH;AAEJ;"}
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  export interface TagListPropsProps {
3
3
  children?: React.ReactNode;
4
4
  /** Sets the data-testid attribute on the expander button. */
@@ -1,3 +1,3 @@
1
- import TagList from './TagList';
1
+ import { default as TagList } from './TagList';
2
2
  export * from './TagList';
3
3
  export default TagList;
@@ -1,9 +1,11 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import l from "react";
3
- import { AnalyticsId as e } from "../../constants.js";
4
- import a from "./styles.module.scss";
5
- const n = ({ children: i, testId: s }) => /* @__PURE__ */ t("ul", { className: a["tag-list"], "data-testid": s, "data-analyticsid": e.TagList, children: l.Children.map(i, (r) => /* @__PURE__ */ t("li", { className: a["tag-list__item"], children: r })) });
1
+ import { jsx } from "react/jsx-runtime";
2
+ import React from "react";
3
+ import { AnalyticsId } from "../../constants.js";
4
+ import styles from "./styles.module.scss";
5
+ const TagList = ({ children, testId }) => {
6
+ return /* @__PURE__ */ jsx("ul", { className: styles["tag-list"], "data-testid": testId, "data-analyticsid": AnalyticsId.TagList, children: React.Children.map(children, (child) => /* @__PURE__ */ jsx("li", { className: styles["tag-list__item"], children: child })) });
7
+ };
6
8
  export {
7
- n as default
9
+ TagList as default
8
10
  };
9
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/components/TagList/TagList.tsx"],"sourcesContent":["import React from 'react';\n\nimport { AnalyticsId } from '../../constants';\n\nimport styles from './styles.module.scss';\n\nexport interface TagListPropsProps {\n children?: React.ReactNode;\n /** Sets the data-testid attribute on the expander button. */\n testId?: string;\n}\n\nconst TagList: React.FC<TagListPropsProps> = ({ children, testId }) => {\n return (\n <ul className={styles['tag-list']} data-testid={testId} data-analyticsid={AnalyticsId.TagList}>\n {React.Children.map(children, child => (\n <li className={styles['tag-list__item']}>{child}</li>\n ))}\n </ul>\n );\n};\n\nexport default TagList;\n"],"names":["TagList","children","testId","jsx","styles","AnalyticsId","React","child"],"mappings":";;;;AAYA,MAAMA,IAAuC,CAAC,EAAE,UAAAC,GAAU,QAAAC,QAEtD,gBAAAC,EAAC,MAAG,EAAA,WAAWC,EAAO,UAAU,GAAG,eAAaF,GAAQ,oBAAkBG,EAAY,SACnF,UAAAC,EAAM,SAAS,IAAIL,GAAU,CAC5BM,MAAA,gBAAAJ,EAAC,MAAG,EAAA,WAAWC,EAAO,gBAAgB,GAAI,UAAMG,EAAA,CAAA,CACjD,EACH,CAAA;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/TagList/TagList.tsx"],"sourcesContent":["import React from 'react';\n\nimport { AnalyticsId } from '../../constants';\n\nimport styles from './styles.module.scss';\n\nexport interface TagListPropsProps {\n children?: React.ReactNode;\n /** Sets the data-testid attribute on the expander button. */\n testId?: string;\n}\n\nconst TagList: React.FC<TagListPropsProps> = ({ children, testId }) => {\n return (\n <ul className={styles['tag-list']} data-testid={testId} data-analyticsid={AnalyticsId.TagList}>\n {React.Children.map(children, child => (\n <li className={styles['tag-list__item']}>{child}</li>\n ))}\n </ul>\n );\n};\n\nexport default TagList;\n"],"names":[],"mappings":";;;;AAYA,MAAM,UAAuC,CAAC,EAAE,UAAU,aAAa;AAEnE,SAAA,oBAAC,MAAG,EAAA,WAAW,OAAO,UAAU,GAAG,eAAa,QAAQ,oBAAkB,YAAY,SACnF,UAAA,MAAM,SAAS,IAAI,UAAU,CAC5B,UAAA,oBAAC,MAAG,EAAA,WAAW,OAAO,gBAAgB,GAAI,UAAM,MAAA,CAAA,CACjD,EACH,CAAA;AAEJ;"}
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  import { FormOnColor } from '../../constants';
3
3
  import { ErrorWrapperClassNameProps } from '../ErrorWrapper';
4
4
  export interface TextareaProps extends ErrorWrapperClassNameProps, Pick<React.InputHTMLAttributes<HTMLTextAreaElement>, 'aria-describedby' | 'autoFocus' | 'disabled' | 'name' | 'autoComplete' | 'placeholder' | 'readOnly' | 'required' | 'defaultValue' | 'onChange' | 'value'> {
@@ -1,3 +1,3 @@
1
- import Textarea from './Textarea';
1
+ import { default as Textarea } from './Textarea';
2
2
  export * from './Textarea';
3
3
  export default Textarea;
@@ -1,5 +1,5 @@
1
- import { T as e } from "../../Textarea.js";
1
+ import { T as Textarea } from "../../Textarea.js";
2
2
  export {
3
- e as default
3
+ Textarea as default
4
4
  };
5
5
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  import { TitleTags } from './../Title/Title';
3
3
  export type TileVariants = 'normal' | 'compact';
4
4
  interface TileProps extends Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href' | 'target' | 'onClick' | 'rel'> {
@@ -1,3 +1,3 @@
1
- import Tile from './Tile';
1
+ import { default as Tile } from './Tile';
2
2
  export * from './Tile';
3
3
  export default Tile;
@@ -1,74 +1,83 @@
1
- import { jsx as p, jsxs as N } from "react/jsx-runtime";
2
- import l from "react";
3
- import d from "classnames";
4
- import { AnalyticsId as S, IconSize as u } from "../../constants.js";
5
- import { useBreakpoint as j, Breakpoint as z } from "../../hooks/useBreakpoint.js";
6
- import { useHover as B } from "../../hooks/useHover.js";
7
- import { mergeRefs as E } from "../../utils/refs.js";
8
- import e from "./styles.module.scss";
9
- const T = l.forwardRef((r, s) => {
10
- const { children: t, className: a, htmlMarkup: o = "span", highlighted: c } = r, n = d(
11
- e.tile__title,
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import React from "react";
3
+ import classNames from "classnames";
4
+ import { AnalyticsId, IconSize } from "../../constants.js";
5
+ import { useBreakpoint, Breakpoint } from "../../hooks/useBreakpoint.js";
6
+ import { useHover } from "../../hooks/useHover.js";
7
+ import { mergeRefs } from "../../utils/refs.js";
8
+ import tileStyles from "./styles.module.scss";
9
+ const Title = React.forwardRef((props, ref) => {
10
+ const { compact, children, className, htmlMarkup = "span", highlighted } = props;
11
+ const titleClasses = classNames(
12
+ tileStyles["tile__title"],
12
13
  {
13
- [e["tile__title--highlighted"]]: c
14
+ [tileStyles["tile__title--highlighted"]]: highlighted,
15
+ [tileStyles["tile__title--compact"]]: compact
14
16
  },
15
- a
17
+ className
16
18
  );
17
- return /* @__PURE__ */ p(o, { className: n, ref: s, children: t });
19
+ const CustomTag = htmlMarkup;
20
+ return /* @__PURE__ */ jsx(CustomTag, { className: titleClasses, ref, children });
18
21
  });
19
- T.displayName = "Title";
20
- const _ = l.forwardRef((r, s) => {
22
+ Title.displayName = "Title";
23
+ const Tile = React.forwardRef((props, ref) => {
21
24
  const {
22
- children: t,
23
- icon: a,
24
- title: o,
25
- className: c = "",
26
- description: n,
27
- fixed: f = !1,
28
- highlighted: m = !1,
29
- testId: k,
30
- target: h,
31
- rel: v,
32
- variant: C = "normal",
33
- href: b,
34
- onClick: w
35
- } = r, { hoverRef: x, isHovered: y } = B(), g = j() < z.md, i = C === "compact", R = d(
36
- e.tile,
25
+ children,
26
+ icon,
27
+ title,
28
+ className = "",
29
+ description,
30
+ fixed = false,
31
+ highlighted = false,
32
+ testId,
33
+ target,
34
+ rel,
35
+ variant = "normal",
36
+ href,
37
+ onClick
38
+ } = props;
39
+ const { hoverRef, isHovered } = useHover();
40
+ const breakpoint = useBreakpoint();
41
+ const mobile = breakpoint < Breakpoint.md;
42
+ const compact = variant === "compact";
43
+ const tileClasses = classNames(
44
+ tileStyles.tile,
37
45
  {
38
- [e["tile--fixed"]]: f,
39
- [e["tile--compact"]]: i,
40
- [e["tile--highlighted"]]: m
46
+ [tileStyles["tile--fixed"]]: fixed,
47
+ [tileStyles["tile--compact"]]: compact,
48
+ [tileStyles["tile--highlighted"]]: highlighted
41
49
  },
42
- c
43
- ), I = d(e["title-wrapper"], {
44
- [e["title-wrapper--compact"]]: i
50
+ className
51
+ );
52
+ const tileTitleWrapperClasses = classNames(tileStyles["title-wrapper"], {
53
+ [tileStyles["title-wrapper--compact"]]: compact
45
54
  });
46
- return /* @__PURE__ */ N(
55
+ return /* @__PURE__ */ jsxs(
47
56
  "a",
48
57
  {
49
- ref: E([s, x]),
50
- href: b,
51
- target: h,
52
- rel: h === "_blank" ? "noopener noreferrer" : v,
53
- className: R,
54
- "data-testid": k,
55
- "data-analyticsid": S.Tile,
56
- onClick: w,
58
+ ref: mergeRefs([ref, hoverRef]),
59
+ href,
60
+ target,
61
+ rel: target === "_blank" ? "noopener noreferrer" : rel,
62
+ className: tileClasses,
63
+ "data-testid": testId,
64
+ "data-analyticsid": AnalyticsId.Tile,
65
+ onClick,
57
66
  children: [
58
- /* @__PURE__ */ N("div", { className: I, children: [
59
- l.cloneElement(a, { size: g ? u.Small : u.Medium, isHovered: y, color: m ? "white" : "black" }),
60
- l.cloneElement(o, { highlighted: m, compact: i })
67
+ /* @__PURE__ */ jsxs("div", { className: tileTitleWrapperClasses, children: [
68
+ React.cloneElement(icon, { size: mobile ? IconSize.Small : IconSize.Medium, isHovered, color: highlighted ? "white" : "black" }),
69
+ React.cloneElement(title, { highlighted, compact })
61
70
  ] }),
62
- !i && !g && /* @__PURE__ */ p("p", { className: e.tile__description, children: n }),
63
- t && /* @__PURE__ */ p("div", { className: e.tile__children, children: t })
71
+ !compact && !mobile && /* @__PURE__ */ jsx("p", { className: tileStyles.tile__description, children: description }),
72
+ children && /* @__PURE__ */ jsx("div", { className: tileStyles.tile__children, children })
64
73
  ]
65
74
  }
66
75
  );
67
76
  });
68
- _.displayName = "Tile";
69
- _.Title = T;
77
+ Tile.displayName = "Tile";
78
+ Tile.Title = Title;
70
79
  export {
71
- _ as Tile,
72
- _ as default
80
+ Tile,
81
+ Tile as default
73
82
  };
74
83
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/components/Tile/Tile.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { AnalyticsId } from '../../constants';\nimport { TitleTags } from './../Title/Title';\nimport { useBreakpoint, Breakpoint } from '../../hooks/useBreakpoint';\nimport { useHover } from '../../hooks/useHover';\nimport { mergeRefs } from '../../utils/refs';\nimport { IconSize } from '../Icon';\n\nimport tileStyles from './styles.module.scss';\n\nexport type TileVariants = 'normal' | 'compact';\n\ninterface TileProps extends Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href' | 'target' | 'onClick' | 'rel'> {\n children?: React.ReactNode;\n /** Adds custom classes to the element. */\n className?: string;\n /**\tSets the icon to be displayed inside the tile. */\n icon: React.ReactElement;\n /**\tSets the title to be displayed inside the tile. */\n title: React.ReactElement;\n /** Toggles the highlighted style of the tile. */\n highlighted?: boolean;\n /** Sets the description to be displayed inside the tile. */\n description?: string;\n /** Sets a fixed max and min width for the tile. */\n fixed?: boolean;\n /** Sets the visual variant of the component */\n variant?: TileVariants;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\ninterface TileTitleProps {\n children: React.ReactNode;\n className?: string;\n htmlMarkup?: TitleTags;\n highlighted?: boolean;\n compact?: boolean;\n}\n\nexport interface TileCompound extends React.ForwardRefExoticComponent<TileProps & React.RefAttributes<HTMLAnchorElement>> {\n Title: React.ForwardRefExoticComponent<TileTitleProps & React.RefAttributes<HTMLHeadingElement>>;\n}\n\nconst Title = React.forwardRef<HTMLHeadingElement, TileTitleProps>((props, ref) => {\n const { children, className, htmlMarkup = 'span', highlighted } = props;\n const titleClasses = classNames(\n tileStyles['tile__title'],\n {\n [tileStyles['tile__title--highlighted']]: highlighted,\n },\n className\n );\n const CustomTag = htmlMarkup;\n\n return (\n <CustomTag className={titleClasses} ref={ref}>\n {children}\n </CustomTag>\n );\n});\n\nTitle.displayName = 'Title';\n\nexport const Tile = React.forwardRef<HTMLAnchorElement, TileProps>((props, ref) => {\n const {\n children,\n icon,\n title,\n className = '',\n description,\n fixed = false,\n highlighted = false,\n testId,\n target,\n rel,\n variant = 'normal',\n href,\n onClick,\n } = props;\n const { hoverRef, isHovered } = useHover<HTMLAnchorElement>();\n const breakpoint = useBreakpoint();\n const mobile = breakpoint < Breakpoint.md;\n const compact = variant === 'compact';\n const tileClasses = classNames(\n tileStyles.tile,\n {\n [tileStyles['tile--fixed']]: fixed,\n [tileStyles['tile--compact']]: compact,\n [tileStyles['tile--highlighted']]: highlighted,\n },\n className\n );\n const tileTitleWrapperClasses = classNames(tileStyles['title-wrapper'], {\n [tileStyles['title-wrapper--compact']]: compact,\n });\n\n return (\n <a\n ref={mergeRefs([ref, hoverRef])}\n href={href}\n target={target}\n rel={target === '_blank' ? 'noopener noreferrer' : rel}\n className={tileClasses}\n data-testid={testId}\n data-analyticsid={AnalyticsId.Tile}\n onClick={onClick}\n >\n <div className={tileTitleWrapperClasses}>\n {React.cloneElement(icon, { size: mobile ? IconSize.Small : IconSize.Medium, isHovered, color: highlighted ? 'white' : 'black' })}\n {React.cloneElement(title, { highlighted: highlighted, compact: compact })}\n </div>\n {!compact && !mobile && <p className={tileStyles.tile__description}>{description}</p>}\n {children && <div className={tileStyles.tile__children}>{children}</div>}\n </a>\n );\n}) as TileCompound;\n\nTile.displayName = 'Tile';\nTile.Title = Title;\n\nexport default Tile;\n"],"names":["Title","React","props","ref","children","className","htmlMarkup","highlighted","titleClasses","classNames","tileStyles","jsx","Tile","icon","title","description","fixed","testId","target","rel","variant","href","onClick","hoverRef","isHovered","useHover","mobile","useBreakpoint","Breakpoint","compact","tileClasses","tileTitleWrapperClasses","jsxs","mergeRefs","AnalyticsId","IconSize"],"mappings":";;;;;;;;AA+CA,MAAMA,IAAQC,EAAM,WAA+C,CAACC,GAAOC,MAAQ;AACjF,QAAM,EAAE,UAAAC,GAAU,WAAAC,GAAW,YAAAC,IAAa,QAAQ,aAAAC,EAAgB,IAAAL,GAC5DM,IAAeC;AAAA,IACnBC,EAAW;AAAA,IACX;AAAA,MACE,CAACA,EAAW,0BAA0B,CAAC,GAAGH;AAAA,IAC5C;AAAA,IACAF;AAAA,EAAA;AAIF,SACG,gBAAAM,EAHeL,GAGf,EAAU,WAAWE,GAAc,KAAAL,GACjC,UAAAC,EACH,CAAA;AAEJ,CAAC;AAEDJ,EAAM,cAAc;AAEb,MAAMY,IAAOX,EAAM,WAAyC,CAACC,GAAOC,MAAQ;AAC3E,QAAA;AAAA,IACJ,UAAAC;AAAA,IACA,MAAAS;AAAA,IACA,OAAAC;AAAA,IACA,WAAAT,IAAY;AAAA,IACZ,aAAAU;AAAA,IACA,OAAAC,IAAQ;AAAA,IACR,aAAAT,IAAc;AAAA,IACd,QAAAU;AAAA,IACA,QAAAC;AAAA,IACA,KAAAC;AAAA,IACA,SAAAC,IAAU;AAAA,IACV,MAAAC;AAAA,IACA,SAAAC;AAAA,EACE,IAAApB,GACE,EAAE,UAAAqB,GAAU,WAAAC,EAAU,IAAIC,EAA4B,GAEtDC,IADaC,MACSC,EAAW,IACjCC,IAAUT,MAAY,WACtBU,IAAcrB;AAAA,IAClBC,EAAW;AAAA,IACX;AAAA,MACE,CAACA,EAAW,aAAa,CAAC,GAAGM;AAAA,MAC7B,CAACN,EAAW,eAAe,CAAC,GAAGmB;AAAA,MAC/B,CAACnB,EAAW,mBAAmB,CAAC,GAAGH;AAAA,IACrC;AAAA,IACAF;AAAA,EAAA,GAEI0B,IAA0BtB,EAAWC,EAAW,eAAe,GAAG;AAAA,IACtE,CAACA,EAAW,wBAAwB,CAAC,GAAGmB;AAAA,EAAA,CACzC;AAGC,SAAA,gBAAAG;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAKC,EAAU,CAAC9B,GAAKoB,CAAQ,CAAC;AAAA,MAC9B,MAAAF;AAAA,MACA,QAAAH;AAAA,MACA,KAAKA,MAAW,WAAW,wBAAwBC;AAAA,MACnD,WAAWW;AAAA,MACX,eAAab;AAAA,MACb,oBAAkBiB,EAAY;AAAA,MAC9B,SAAAZ;AAAA,MAEA,UAAA;AAAA,QAAC,gBAAAU,EAAA,OAAA,EAAI,WAAWD,GACb,UAAA;AAAA,UAAA9B,EAAM,aAAaY,GAAM,EAAE,MAAMa,IAASS,EAAS,QAAQA,EAAS,QAAQ,WAAAX,GAAW,OAAOjB,IAAc,UAAU,SAAS;AAAA,UAC/HN,EAAM,aAAaa,GAAO,EAAE,aAAAP,GAA0B,SAAAsB,GAAkB;AAAA,QAAA,GAC3E;AAAA,QACC,CAACA,KAAW,CAACH,uBAAW,KAAE,EAAA,WAAWhB,EAAW,mBAAoB,UAAYK,EAAA,CAAA;AAAA,QAChFX,KAAa,gBAAAO,EAAA,OAAA,EAAI,WAAWD,EAAW,gBAAiB,UAAAN,GAAS;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGxE,CAAC;AAEDQ,EAAK,cAAc;AACnBA,EAAK,QAAQZ;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/Tile/Tile.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { AnalyticsId } from '../../constants';\nimport { TitleTags } from './../Title/Title';\nimport { useBreakpoint, Breakpoint } from '../../hooks/useBreakpoint';\nimport { useHover } from '../../hooks/useHover';\nimport { mergeRefs } from '../../utils/refs';\nimport { IconSize } from '../Icon';\n\nimport tileStyles from './styles.module.scss';\n\nexport type TileVariants = 'normal' | 'compact';\n\ninterface TileProps extends Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href' | 'target' | 'onClick' | 'rel'> {\n children?: React.ReactNode;\n /** Adds custom classes to the element. */\n className?: string;\n /**\tSets the icon to be displayed inside the tile. */\n icon: React.ReactElement;\n /**\tSets the title to be displayed inside the tile. */\n title: React.ReactElement;\n /** Toggles the highlighted style of the tile. */\n highlighted?: boolean;\n /** Sets the description to be displayed inside the tile. */\n description?: string;\n /** Sets a fixed max and min width for the tile. */\n fixed?: boolean;\n /** Sets the visual variant of the component */\n variant?: TileVariants;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\ninterface TileTitleProps {\n children: React.ReactNode;\n className?: string;\n htmlMarkup?: TitleTags;\n highlighted?: boolean;\n compact?: boolean;\n}\n\nexport interface TileCompound extends React.ForwardRefExoticComponent<TileProps & React.RefAttributes<HTMLAnchorElement>> {\n Title: React.ForwardRefExoticComponent<TileTitleProps & React.RefAttributes<HTMLHeadingElement>>;\n}\n\nconst Title = React.forwardRef<HTMLHeadingElement, TileTitleProps>((props, ref) => {\n const { compact, children, className, htmlMarkup = 'span', highlighted } = props;\n const titleClasses = classNames(\n tileStyles['tile__title'],\n {\n [tileStyles['tile__title--highlighted']]: highlighted,\n [tileStyles['tile__title--compact']]: compact,\n },\n className\n );\n const CustomTag = htmlMarkup;\n\n return (\n <CustomTag className={titleClasses} ref={ref}>\n {children}\n </CustomTag>\n );\n});\n\nTitle.displayName = 'Title';\n\nexport const Tile = React.forwardRef<HTMLAnchorElement, TileProps>((props, ref) => {\n const {\n children,\n icon,\n title,\n className = '',\n description,\n fixed = false,\n highlighted = false,\n testId,\n target,\n rel,\n variant = 'normal',\n href,\n onClick,\n } = props;\n const { hoverRef, isHovered } = useHover<HTMLAnchorElement>();\n const breakpoint = useBreakpoint();\n const mobile = breakpoint < Breakpoint.md;\n const compact = variant === 'compact';\n const tileClasses = classNames(\n tileStyles.tile,\n {\n [tileStyles['tile--fixed']]: fixed,\n [tileStyles['tile--compact']]: compact,\n [tileStyles['tile--highlighted']]: highlighted,\n },\n className\n );\n const tileTitleWrapperClasses = classNames(tileStyles['title-wrapper'], {\n [tileStyles['title-wrapper--compact']]: compact,\n });\n\n return (\n <a\n ref={mergeRefs([ref, hoverRef])}\n href={href}\n target={target}\n rel={target === '_blank' ? 'noopener noreferrer' : rel}\n className={tileClasses}\n data-testid={testId}\n data-analyticsid={AnalyticsId.Tile}\n onClick={onClick}\n >\n <div className={tileTitleWrapperClasses}>\n {React.cloneElement(icon, { size: mobile ? IconSize.Small : IconSize.Medium, isHovered, color: highlighted ? 'white' : 'black' })}\n {React.cloneElement(title, { highlighted: highlighted, compact: compact })}\n </div>\n {!compact && !mobile && <p className={tileStyles.tile__description}>{description}</p>}\n {children && <div className={tileStyles.tile__children}>{children}</div>}\n </a>\n );\n}) as TileCompound;\n\nTile.displayName = 'Tile';\nTile.Title = Title;\n\nexport default Tile;\n"],"names":[],"mappings":";;;;;;;;AA+CA,MAAM,QAAQ,MAAM,WAA+C,CAAC,OAAO,QAAQ;AACjF,QAAM,EAAE,SAAS,UAAU,WAAW,aAAa,QAAQ,gBAAgB;AAC3E,QAAM,eAAe;AAAA,IACnB,WAAW,aAAa;AAAA,IACxB;AAAA,MACE,CAAC,WAAW,0BAA0B,CAAC,GAAG;AAAA,MAC1C,CAAC,WAAW,sBAAsB,CAAC,GAAG;AAAA,IACxC;AAAA,IACA;AAAA,EACF;AACA,QAAM,YAAY;AAElB,SACG,oBAAA,WAAA,EAAU,WAAW,cAAc,KACjC,UACH;AAEJ,CAAC;AAED,MAAM,cAAc;AAEb,MAAM,OAAO,MAAM,WAAyC,CAAC,OAAO,QAAQ;AAC3E,QAAA;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA,YAAY;AAAA,IACZ;AAAA,IACA,QAAQ;AAAA,IACR,cAAc;AAAA,IACd;AAAA,IACA;AAAA,IACA;AAAA,IACA,UAAU;AAAA,IACV;AAAA,IACA;AAAA,EAAA,IACE;AACJ,QAAM,EAAE,UAAU,UAAU,IAAI,SAA4B;AAC5D,QAAM,aAAa,cAAc;AAC3B,QAAA,SAAS,aAAa,WAAW;AACvC,QAAM,UAAU,YAAY;AAC5B,QAAM,cAAc;AAAA,IAClB,WAAW;AAAA,IACX;AAAA,MACE,CAAC,WAAW,aAAa,CAAC,GAAG;AAAA,MAC7B,CAAC,WAAW,eAAe,CAAC,GAAG;AAAA,MAC/B,CAAC,WAAW,mBAAmB,CAAC,GAAG;AAAA,IACrC;AAAA,IACA;AAAA,EACF;AACA,QAAM,0BAA0B,WAAW,WAAW,eAAe,GAAG;AAAA,IACtE,CAAC,WAAW,wBAAwB,CAAC,GAAG;AAAA,EAAA,CACzC;AAGC,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAK,UAAU,CAAC,KAAK,QAAQ,CAAC;AAAA,MAC9B;AAAA,MACA;AAAA,MACA,KAAK,WAAW,WAAW,wBAAwB;AAAA,MACnD,WAAW;AAAA,MACX,eAAa;AAAA,MACb,oBAAkB,YAAY;AAAA,MAC9B;AAAA,MAEA,UAAA;AAAA,QAAC,qBAAA,OAAA,EAAI,WAAW,yBACb,UAAA;AAAA,UAAA,MAAM,aAAa,MAAM,EAAE,MAAM,SAAS,SAAS,QAAQ,SAAS,QAAQ,WAAW,OAAO,cAAc,UAAU,SAAS;AAAA,UAC/H,MAAM,aAAa,OAAO,EAAE,aAA0B,QAAkB,CAAA;AAAA,QAAA,GAC3E;AAAA,QACC,CAAC,WAAW,CAAC,8BAAW,KAAE,EAAA,WAAW,WAAW,mBAAoB,UAAY,YAAA,CAAA;AAAA,QAChF,YAAa,oBAAA,OAAA,EAAI,WAAW,WAAW,gBAAiB,SAAS,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EACpE;AAEJ,CAAC;AAED,KAAK,cAAc;AACnB,KAAK,QAAQ;"}
@@ -6,24 +6,6 @@
6
6
  @import '../../scss/screen-reader';
7
7
  @import '../../scss/supernova/styles/colors';
8
8
 
9
- @mixin tile-title {
10
- overflow-wrap: break-word;
11
- word-wrap: break-word;
12
- word-break: break-word;
13
- font-size: $font-size-sm;
14
- text-align: left;
15
- line-height: 1.74rem;
16
- font-weight: 400;
17
- margin: getSpacer(3xs) 0 0 getSpacer(2xs);
18
-
19
- @media (min-width: map.get($grid-breakpoints, md)) {
20
- font-weight: 600;
21
- font-size: $font-size-md;
22
- line-height: 1.625rem;
23
- margin-top: getSpacer(s);
24
- }
25
- }
26
-
27
9
  .tile {
28
10
  // Referanse for grandparent selection i underklassene lenger nede
29
11
  $tile: &;
@@ -93,7 +75,31 @@
93
75
  }
94
76
 
95
77
  &__title {
96
- @include tile-title;
78
+ overflow-wrap: break-word;
79
+ word-wrap: break-word;
80
+ word-break: break-word;
81
+ font-size: $font-size-sm;
82
+ text-align: center;
83
+ line-height: 1.74rem;
84
+ font-weight: 400;
85
+ margin: getSpacer(3xs) 0 0;
86
+
87
+ @media (min-width: map.get($grid-breakpoints, md)) {
88
+ text-align: left;
89
+ font-weight: 600;
90
+ font-size: $font-size-md;
91
+ line-height: 1.625rem;
92
+ margin: getSpacer(s) 0 0 getSpacer(2xs);
93
+ }
94
+
95
+ &--compact {
96
+ margin: 0 0 0 getSpacer(3xs);
97
+ text-align: left;
98
+
99
+ @media (min-width: map.get($grid-breakpoints, md)) {
100
+ margin-left: getSpacer(2xs);
101
+ }
102
+ }
97
103
  }
98
104
 
99
105
  #{$tile}:focus-visible & {
@@ -107,11 +113,11 @@
107
113
  &__description {
108
114
  font-size: 1.125rem;
109
115
  line-height: 1.75rem;
110
- margin: 0 0 0 0.5rem;
116
+ margin: getSpacer(2xs) 0 0 getSpacer(2xs);
111
117
  }
112
118
 
113
119
  &__children {
114
- margin: 1rem 0 0 0.5rem;
120
+ margin: getSpacer(s) 0 0 getSpacer(2xs);
115
121
  }
116
122
  }
117
123
 
@@ -119,7 +125,6 @@
119
125
  display: flex;
120
126
  flex-direction: column;
121
127
  align-items: center;
122
- padding-bottom: 0.5rem;
123
128
 
124
129
  @media (min-width: map.get($grid-breakpoints, md)) {
125
130
  align-items: start;
@@ -132,7 +137,7 @@
132
137
  &--compact {
133
138
  flex-direction: row;
134
139
  align-items: center;
135
- padding-right: 1rem;
140
+ padding-right: getSpacer(s);
136
141
  padding-bottom: 0;
137
142
 
138
143
  svg {
@@ -3,6 +3,7 @@ export type Styles = {
3
3
  tile__children: string;
4
4
  tile__description: string;
5
5
  tile__title: string;
6
+ 'tile__title--compact': string;
6
7
  'tile__title--highlighted': string;
7
8
  'tile--compact': string;
8
9
  'tile--fixed': string;