@helsenorge/designsystem-react 8.5.0 → 8.5.1

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 (1089) hide show
  1. package/AnchorLink.js +60 -0
  2. package/AnchorLink.js.map +1 -0
  3. package/Avatar.js +34 -0
  4. package/Avatar.js.map +1 -0
  5. package/Badge.js +31 -0
  6. package/Badge.js.map +1 -0
  7. package/Button.js +130 -0
  8. package/Button.js.map +1 -0
  9. package/CHANGELOG.md +28 -3
  10. package/Checkbox.js +113 -0
  11. package/Checkbox.js.map +1 -0
  12. package/Close.js +31 -0
  13. package/Close.js.map +1 -0
  14. package/ErrorBoundary.js +35 -0
  15. package/ErrorBoundary.js.map +1 -0
  16. package/ErrorWrapper.js +14 -0
  17. package/ErrorWrapper.js.map +1 -0
  18. package/Expander.js +108 -0
  19. package/Expander.js.map +1 -0
  20. package/FormGroup.js +113 -0
  21. package/FormGroup.js.map +1 -0
  22. package/FormLayout.js +38 -0
  23. package/FormLayout.js.map +1 -0
  24. package/HelpBubble.js +68 -0
  25. package/HelpBubble.js.map +1 -0
  26. package/HighlightPanel.js +71 -0
  27. package/HighlightPanel.js.map +1 -0
  28. package/HorizontalScroll.js +49 -0
  29. package/HorizontalScroll.js.map +1 -0
  30. package/Icon.js +62 -0
  31. package/Icon.js.map +1 -0
  32. package/Illustration.js +41 -0
  33. package/Illustration.js.map +1 -0
  34. package/Input.js +140 -0
  35. package/Input.js.map +1 -0
  36. package/Label.js +108 -0
  37. package/Label.js.map +1 -0
  38. package/LazyIcon.js +30 -0
  39. package/LazyIcon.js.map +1 -0
  40. package/LazyIllustration.js +34 -0
  41. package/LazyIllustration.js.map +1 -0
  42. package/LinkList.js +63 -0
  43. package/LinkList.js.map +1 -0
  44. package/List.js +13 -0
  45. package/List.js.map +1 -0
  46. package/ListHeader.js +94 -0
  47. package/ListHeader.js.map +1 -0
  48. package/ListHeaderText.js +35 -0
  49. package/ListHeaderText.js.map +1 -0
  50. package/MaxCharacters.js +15 -0
  51. package/MaxCharacters.js.map +1 -0
  52. package/NotificationBadge.js +68 -0
  53. package/NotificationBadge.js.map +1 -0
  54. package/Panel.js +255 -0
  55. package/Panel.js.map +1 -0
  56. package/PopOver.js +85 -0
  57. package/PopOver.js.map +1 -0
  58. package/RadioButton.js +104 -0
  59. package/RadioButton.js.map +1 -0
  60. package/Select.js +76 -0
  61. package/Select.js.map +1 -0
  62. package/{components/Spacer/Spacer.js → Spacer.js} +10 -9
  63. package/Spacer.js.map +1 -0
  64. package/StatusDot.js +33 -0
  65. package/StatusDot.js.map +1 -0
  66. package/StepButtons.js +28 -0
  67. package/StepButtons.js.map +1 -0
  68. package/TabList.js +68 -0
  69. package/TabList.js.map +1 -0
  70. package/TabPanel.js +18 -0
  71. package/TabPanel.js.map +1 -0
  72. package/Table.js +98 -0
  73. package/Table.js.map +1 -0
  74. package/TableBody.js +13 -0
  75. package/TableBody.js.map +1 -0
  76. package/{components/Table/TableCell/TableCell.js → TableCell.js} +12 -13
  77. package/TableCell.js.map +1 -0
  78. package/TableExpandedRow.js +37 -0
  79. package/TableExpandedRow.js.map +1 -0
  80. package/TableExpanderCell.js +34 -0
  81. package/TableExpanderCell.js.map +1 -0
  82. package/TableHead.js +24 -0
  83. package/TableHead.js.map +1 -0
  84. package/TableHeadCell.js +44 -0
  85. package/TableHeadCell.js.map +1 -0
  86. package/TableRow.js +62 -0
  87. package/TableRow.js.map +1 -0
  88. package/Textarea.js +110 -0
  89. package/Textarea.js.map +1 -0
  90. package/Title.js +25 -0
  91. package/Title.js.map +1 -0
  92. package/TooltipWord.js +28 -0
  93. package/TooltipWord.js.map +1 -0
  94. package/Trigger.js +73 -0
  95. package/Trigger.js.map +1 -0
  96. package/__mocks__/uuid.js +1 -1
  97. package/components/AnchorLink/index.js +1 -1
  98. package/components/Avatar/index.js +3 -3
  99. package/components/Badge/index.js +1 -1
  100. package/components/Button/index.js +1 -1
  101. package/components/Checkbox/index.js +3 -3
  102. package/components/Chip/index.js +30 -6
  103. package/components/Chip/index.js.map +1 -1
  104. package/components/Close/index.js +2 -2
  105. package/components/DictionaryTrigger/index.js +25 -2
  106. package/components/DictionaryTrigger/index.js.map +1 -1
  107. package/components/Dropdown/index.js +124 -4
  108. package/components/Dropdown/index.js.map +1 -1
  109. package/components/Duolist/index.js +70 -5
  110. package/components/Duolist/index.js.map +1 -1
  111. package/components/EmptyState/index.js +159 -2
  112. package/components/EmptyState/index.js.map +1 -1
  113. package/components/ErrorWrapper/index.js +3 -3
  114. package/components/Expander/index.js +4 -4
  115. package/components/ExpanderHierarchy/index.js +102 -2
  116. package/components/ExpanderHierarchy/index.js.map +1 -1
  117. package/components/ExpanderList/index.js +139 -3
  118. package/components/ExpanderList/index.js.map +1 -1
  119. package/components/EyebrowHeader/index.js +9 -2
  120. package/components/EyebrowHeader/index.js.map +1 -1
  121. package/components/FormGroup/index.js +1 -1
  122. package/components/FormLayout/index.js +5 -5
  123. package/components/HelpBubble/index.js +4 -4
  124. package/components/HelpPanel/index.js +21 -2
  125. package/components/HelpPanel/index.js.map +1 -1
  126. package/components/HelpQuestion/index.js +31 -2
  127. package/components/HelpQuestion/index.js.map +1 -1
  128. package/components/HighlightPanel/index.js +4 -4
  129. package/components/HorizontalScroll/index.js +1 -1
  130. package/components/Icon/index.js +5 -5
  131. package/components/Icons/ActiveMonitoring.js +4 -4
  132. package/components/Icons/ActiveMonitoring.js.map +1 -1
  133. package/components/Icons/AcupunctureBack.js +6 -6
  134. package/components/Icons/AcupunctureBack.js.map +1 -1
  135. package/components/Icons/AlarmClock.js +15 -5
  136. package/components/Icons/AlarmClock.js.map +1 -1
  137. package/components/Icons/AlertSignFill.js +4 -4
  138. package/components/Icons/AlertSignFill.js.map +1 -1
  139. package/components/Icons/AlertSignStroke.js +4 -4
  140. package/components/Icons/AlertSignStroke.js.map +1 -1
  141. package/components/Icons/Amputation.js +3 -3
  142. package/components/Icons/Amputation.js.map +1 -1
  143. package/components/Icons/Anxiety.js +3 -3
  144. package/components/Icons/Anxiety.js.map +1 -1
  145. package/components/Icons/Apple.js +3 -3
  146. package/components/Icons/Apple.js.map +1 -1
  147. package/components/Icons/Archive.js +7 -7
  148. package/components/Icons/Archive.js.map +1 -1
  149. package/components/Icons/ArmFlexing.js +3 -3
  150. package/components/Icons/ArmFlexing.js.map +1 -1
  151. package/components/Icons/ArrowDown.js +7 -7
  152. package/components/Icons/ArrowDown.js.map +1 -1
  153. package/components/Icons/ArrowLeft.js +3 -3
  154. package/components/Icons/ArrowLeft.js.map +1 -1
  155. package/components/Icons/ArrowRight.js +3 -3
  156. package/components/Icons/ArrowRight.js.map +1 -1
  157. package/components/Icons/ArrowUp.js +7 -7
  158. package/components/Icons/ArrowUp.js.map +1 -1
  159. package/components/Icons/ArrowUpRight.js +4 -4
  160. package/components/Icons/ArrowUpRight.js.map +1 -1
  161. package/components/Icons/Attachment.js +4 -4
  162. package/components/Icons/Attachment.js.map +1 -1
  163. package/components/Icons/Atv.js +3 -3
  164. package/components/Icons/Atv.js.map +1 -1
  165. package/components/Icons/Avatar.js +4 -4
  166. package/components/Icons/Avatar.js.map +1 -1
  167. package/components/Icons/AwakePersonOnPillow.js +2 -2
  168. package/components/Icons/AwakePersonOnPillow.js.map +1 -1
  169. package/components/Icons/Baby.js +3 -3
  170. package/components/Icons/Baby.js.map +1 -1
  171. package/components/Icons/BandAid.js +3 -3
  172. package/components/Icons/BandAid.js.map +1 -1
  173. package/components/Icons/BeerAndPills.js +3 -3
  174. package/components/Icons/BeerAndPills.js.map +1 -1
  175. package/components/Icons/Bell.js +3 -3
  176. package/components/Icons/Bell.js.map +1 -1
  177. package/components/Icons/Bike.js +3 -3
  178. package/components/Icons/Bike.js.map +1 -1
  179. package/components/Icons/BirthControl.js +4 -4
  180. package/components/Icons/BirthControl.js.map +1 -1
  181. package/components/Icons/BirthdayCake.js +2 -2
  182. package/components/Icons/BirthdayCake.js.map +1 -1
  183. package/components/Icons/Boat.js +3 -3
  184. package/components/Icons/Boat.js.map +1 -1
  185. package/components/Icons/Body.js +4 -4
  186. package/components/Icons/Body.js.map +1 -1
  187. package/components/Icons/Braille.js +4 -4
  188. package/components/Icons/Braille.js.map +1 -1
  189. package/components/Icons/Brain.js +3 -3
  190. package/components/Icons/Brain.js.map +1 -1
  191. package/components/Icons/BreastReconstruction.js +4 -4
  192. package/components/Icons/BreastReconstruction.js.map +1 -1
  193. package/components/Icons/BreastRemoval.js +4 -4
  194. package/components/Icons/BreastRemoval.js.map +1 -1
  195. package/components/Icons/Breasts.js +2 -2
  196. package/components/Icons/Breasts.js.map +1 -1
  197. package/components/Icons/BrokenHeart.js +3 -3
  198. package/components/Icons/BrokenHeart.js.map +1 -1
  199. package/components/Icons/BrokenPuzzle.js +3 -3
  200. package/components/Icons/BrokenPuzzle.js.map +1 -1
  201. package/components/Icons/Bus.js +13 -6
  202. package/components/Icons/Bus.js.map +1 -1
  203. package/components/Icons/Calendar.js +6 -6
  204. package/components/Icons/Calendar.js.map +1 -1
  205. package/components/Icons/CalendarChange.js +7 -7
  206. package/components/Icons/CalendarChange.js.map +1 -1
  207. package/components/Icons/CalendarCheck.js +7 -7
  208. package/components/Icons/CalendarCheck.js.map +1 -1
  209. package/components/Icons/CalendarEvent.js +3 -3
  210. package/components/Icons/CalendarEvent.js.map +1 -1
  211. package/components/Icons/CalendarSave.js +4 -4
  212. package/components/Icons/CalendarSave.js.map +1 -1
  213. package/components/Icons/Cancer.js +17 -3
  214. package/components/Icons/Cancer.js.map +1 -1
  215. package/components/Icons/Candle.js +5 -5
  216. package/components/Icons/Candle.js.map +1 -1
  217. package/components/Icons/Car.js +2 -2
  218. package/components/Icons/Car.js.map +1 -1
  219. package/components/Icons/Carton.js +19 -14
  220. package/components/Icons/Carton.js.map +1 -1
  221. package/components/Icons/Change.js +14 -8
  222. package/components/Icons/Change.js.map +1 -1
  223. package/components/Icons/Check.js +4 -4
  224. package/components/Icons/Check.js.map +1 -1
  225. package/components/Icons/CheckFill.js +7 -7
  226. package/components/Icons/CheckFill.js.map +1 -1
  227. package/components/Icons/CheckOutline.js +4 -4
  228. package/components/Icons/CheckOutline.js.map +1 -1
  229. package/components/Icons/Chest.js +2 -2
  230. package/components/Icons/Chest.js.map +1 -1
  231. package/components/Icons/ChevronDown.js +3 -3
  232. package/components/Icons/ChevronDown.js.map +1 -1
  233. package/components/Icons/ChevronLeft.js +3 -3
  234. package/components/Icons/ChevronLeft.js.map +1 -1
  235. package/components/Icons/ChevronRight.js +3 -3
  236. package/components/Icons/ChevronRight.js.map +1 -1
  237. package/components/Icons/ChevronUp.js +3 -3
  238. package/components/Icons/ChevronUp.js.map +1 -1
  239. package/components/Icons/ChevronsDown.js +6 -6
  240. package/components/Icons/ChevronsDown.js.map +1 -1
  241. package/components/Icons/ChevronsUp.js +7 -7
  242. package/components/Icons/ChevronsUp.js.map +1 -1
  243. package/components/Icons/ChildPlaying.js +9 -3
  244. package/components/Icons/ChildPlaying.js.map +1 -1
  245. package/components/Icons/Cigarette.js +3 -3
  246. package/components/Icons/Cigarette.js.map +1 -1
  247. package/components/Icons/Coins.js +4 -4
  248. package/components/Icons/Coins.js.map +1 -1
  249. package/components/Icons/Contacts.js +4 -4
  250. package/components/Icons/Contacts.js.map +1 -1
  251. package/components/Icons/Copy.js +15 -4
  252. package/components/Icons/Copy.js.map +1 -1
  253. package/components/Icons/CoronaCertificate.js +3 -3
  254. package/components/Icons/CoronaCertificate.js.map +1 -1
  255. package/components/Icons/Coronavirus.js +3 -3
  256. package/components/Icons/Coronavirus.js.map +1 -1
  257. package/components/Icons/Cough.js +3 -3
  258. package/components/Icons/Cough.js.map +1 -1
  259. package/components/Icons/CreditCard.js +33 -10
  260. package/components/Icons/CreditCard.js.map +1 -1
  261. package/components/Icons/CriticalHealthInfo.js +3 -3
  262. package/components/Icons/CriticalHealthInfo.js.map +1 -1
  263. package/components/Icons/Cross.js +3 -3
  264. package/components/Icons/Cross.js.map +1 -1
  265. package/components/Icons/DataExchange.js +4 -4
  266. package/components/Icons/DataExchange.js.map +1 -1
  267. package/components/Icons/DataReceived.js +4 -4
  268. package/components/Icons/DataReceived.js.map +1 -1
  269. package/components/Icons/DataSent.js +4 -4
  270. package/components/Icons/DataSent.js.map +1 -1
  271. package/components/Icons/Depression.js +3 -3
  272. package/components/Icons/Depression.js.map +1 -1
  273. package/components/Icons/DigestiveSystem.js +9 -3
  274. package/components/Icons/DigestiveSystem.js.map +1 -1
  275. package/components/Icons/Dizzy.js +3 -3
  276. package/components/Icons/Dizzy.js.map +1 -1
  277. package/components/Icons/Documents.js +3 -3
  278. package/components/Icons/Documents.js.map +1 -1
  279. package/components/Icons/Dog.js +3 -3
  280. package/components/Icons/Dog.js.map +1 -1
  281. package/components/Icons/DonorCard.js +3 -3
  282. package/components/Icons/DonorCard.js.map +1 -1
  283. package/components/Icons/Download.js +7 -7
  284. package/components/Icons/Download.js.map +1 -1
  285. package/components/Icons/Draft.js +3 -3
  286. package/components/Icons/Draft.js.map +1 -1
  287. package/components/Icons/EChat.js +4 -4
  288. package/components/Icons/EChat.js.map +1 -1
  289. package/components/Icons/Ear.js +10 -7
  290. package/components/Icons/Ear.js.map +1 -1
  291. package/components/Icons/EarDeaf.js +4 -4
  292. package/components/Icons/EarDeaf.js.map +1 -1
  293. package/components/Icons/EarHearingAid.js +7 -7
  294. package/components/Icons/EarHearingAid.js.map +1 -1
  295. package/components/Icons/EarNoseThroat.js +11 -3
  296. package/components/Icons/EarNoseThroat.js.map +1 -1
  297. package/components/Icons/EarVolume.js +13 -8
  298. package/components/Icons/EarVolume.js.map +1 -1
  299. package/components/Icons/ElderlyPerson.js +2 -2
  300. package/components/Icons/ElderlyPerson.js.map +1 -1
  301. package/components/Icons/Embolization.js +4 -4
  302. package/components/Icons/Embolization.js.map +1 -1
  303. package/components/Icons/EmergencyCall.js +5 -5
  304. package/components/Icons/EmergencyCall.js.map +1 -1
  305. package/components/Icons/EmoticonAnnoyed.js +12 -8
  306. package/components/Icons/EmoticonAnnoyed.js.map +1 -1
  307. package/components/Icons/EmoticonDelighted.js +10 -7
  308. package/components/Icons/EmoticonDelighted.js.map +1 -1
  309. package/components/Icons/EmoticonDisappointed.js +10 -7
  310. package/components/Icons/EmoticonDisappointed.js.map +1 -1
  311. package/components/Icons/EmoticonHappy.js +10 -7
  312. package/components/Icons/EmoticonHappy.js.map +1 -1
  313. package/components/Icons/EmoticonMeh.js +10 -7
  314. package/components/Icons/EmoticonMeh.js.map +1 -1
  315. package/components/Icons/EnterFullScreen.js +13 -4
  316. package/components/Icons/EnterFullScreen.js.map +1 -1
  317. package/components/Icons/Envelope.js +4 -4
  318. package/components/Icons/Envelope.js.map +1 -1
  319. package/components/Icons/Epilepsy.js +3 -3
  320. package/components/Icons/Epilepsy.js.map +1 -1
  321. package/components/Icons/Eraser.js +10 -4
  322. package/components/Icons/Eraser.js.map +1 -1
  323. package/components/Icons/ErrorSignFill.js +4 -4
  324. package/components/Icons/ErrorSignFill.js.map +1 -1
  325. package/components/Icons/ErrorSignStroke.js +4 -4
  326. package/components/Icons/ErrorSignStroke.js.map +1 -1
  327. package/components/Icons/EuropeanHealthCard.js +6 -3
  328. package/components/Icons/EuropeanHealthCard.js.map +1 -1
  329. package/components/Icons/ExitFullScreen.js +13 -4
  330. package/components/Icons/ExitFullScreen.js.map +1 -1
  331. package/components/Icons/Eye.js +12 -4
  332. package/components/Icons/Eye.js.map +1 -1
  333. package/components/Icons/Facebook.js +3 -3
  334. package/components/Icons/Facebook.js.map +1 -1
  335. package/components/Icons/FallingLeaf.js +14 -9
  336. package/components/Icons/FallingLeaf.js.map +1 -1
  337. package/components/Icons/Female.js +3 -3
  338. package/components/Icons/Female.js.map +1 -1
  339. package/components/Icons/FemaleDoctor.js +2 -2
  340. package/components/Icons/FemaleDoctor.js.map +1 -1
  341. package/components/Icons/Ferry.js +3 -3
  342. package/components/Icons/Ferry.js.map +1 -1
  343. package/components/Icons/File.js +6 -6
  344. package/components/Icons/File.js.map +1 -1
  345. package/components/Icons/Filter.js +5 -5
  346. package/components/Icons/Filter.js.map +1 -1
  347. package/components/Icons/FingerBleed.js +3 -3
  348. package/components/Icons/FingerBleed.js.map +1 -1
  349. package/components/Icons/FirstAidKit.js +3 -3
  350. package/components/Icons/FirstAidKit.js.map +1 -1
  351. package/components/Icons/Fish.js +21 -14
  352. package/components/Icons/Fish.js.map +1 -1
  353. package/components/Icons/FloppyDisk.js +4 -4
  354. package/components/Icons/FloppyDisk.js.map +1 -1
  355. package/components/Icons/Football.js +3 -3
  356. package/components/Icons/Football.js.map +1 -1
  357. package/components/Icons/Form.js +4 -4
  358. package/components/Icons/Form.js.map +1 -1
  359. package/components/Icons/Forward.js +10 -4
  360. package/components/Icons/Forward.js.map +1 -1
  361. package/components/Icons/Gallery.js +7 -7
  362. package/components/Icons/Gallery.js.map +1 -1
  363. package/components/Icons/Garden.js +3 -3
  364. package/components/Icons/Garden.js.map +1 -1
  365. package/components/Icons/GasCan.js +3 -3
  366. package/components/Icons/GasCan.js.map +1 -1
  367. package/components/Icons/GenderIdentity.js +4 -4
  368. package/components/Icons/GenderIdentity.js.map +1 -1
  369. package/components/Icons/GlassWater.js +3 -3
  370. package/components/Icons/GlassWater.js.map +1 -1
  371. package/components/Icons/Glasses.js +4 -4
  372. package/components/Icons/Glasses.js.map +1 -1
  373. package/components/Icons/Globe.js +4 -4
  374. package/components/Icons/Globe.js.map +1 -1
  375. package/components/Icons/Grain.js +3 -3
  376. package/components/Icons/Grain.js.map +1 -1
  377. package/components/Icons/Graph.js +12 -9
  378. package/components/Icons/Graph.js.map +1 -1
  379. package/components/Icons/Group.js +8 -8
  380. package/components/Icons/Group.js.map +1 -1
  381. package/components/Icons/GroupTwins.js +35 -21
  382. package/components/Icons/GroupTwins.js.map +1 -1
  383. package/components/Icons/HTMLFile.js +10 -7
  384. package/components/Icons/HTMLFile.js.map +1 -1
  385. package/components/Icons/HandWaving.js +3 -3
  386. package/components/Icons/HandWaving.js.map +1 -1
  387. package/components/Icons/HandWithDisease.js +3 -3
  388. package/components/Icons/HandWithDisease.js.map +1 -1
  389. package/components/Icons/HandsAndHeart.js +5 -5
  390. package/components/Icons/HandsAndHeart.js.map +1 -1
  391. package/components/Icons/HealthClinic.js +4 -4
  392. package/components/Icons/HealthClinic.js.map +1 -1
  393. package/components/Icons/HealthWarning.js +4 -4
  394. package/components/Icons/HealthWarning.js.map +1 -1
  395. package/components/Icons/HealthcarePerson.js +27 -14
  396. package/components/Icons/HealthcarePerson.js.map +1 -1
  397. package/components/Icons/HealthcarePersonell.js +36 -18
  398. package/components/Icons/HealthcarePersonell.js.map +1 -1
  399. package/components/Icons/HearingProtection.js +12 -9
  400. package/components/Icons/HearingProtection.js.map +1 -1
  401. package/components/Icons/Heart.js +4 -4
  402. package/components/Icons/Heart.js.map +1 -1
  403. package/components/Icons/HeartHands.js +29 -22
  404. package/components/Icons/HeartHands.js.map +1 -1
  405. package/components/Icons/HelpSign.js +4 -4
  406. package/components/Icons/HelpSign.js.map +1 -1
  407. package/components/Icons/HelpingHand.js +3 -3
  408. package/components/Icons/HelpingHand.js.map +1 -1
  409. package/components/Icons/Hemodialysis.js +3 -3
  410. package/components/Icons/Hemodialysis.js.map +1 -1
  411. package/components/Icons/Hiker.js +2 -2
  412. package/components/Icons/Hiker.js.map +1 -1
  413. package/components/Icons/Hipprosthesis.js +4 -4
  414. package/components/Icons/Hipprosthesis.js.map +1 -1
  415. package/components/Icons/History.js +4 -4
  416. package/components/Icons/History.js.map +1 -1
  417. package/components/Icons/HivAndAids.js +3 -3
  418. package/components/Icons/HivAndAids.js.map +1 -1
  419. package/components/Icons/Home.js +7 -7
  420. package/components/Icons/Home.js.map +1 -1
  421. package/components/Icons/Hormone.js +3 -3
  422. package/components/Icons/Hormone.js.map +1 -1
  423. package/components/Icons/Hospital.js +7 -7
  424. package/components/Icons/Hospital.js.map +1 -1
  425. package/components/Icons/Hourglass.js +7 -7
  426. package/components/Icons/Hourglass.js.map +1 -1
  427. package/components/Icons/ImgFile.js +4 -4
  428. package/components/Icons/ImgFile.js.map +1 -1
  429. package/components/Icons/Inbox.js +6 -3
  430. package/components/Icons/Inbox.js.map +1 -1
  431. package/components/Icons/InfoSignFill.js +4 -4
  432. package/components/Icons/InfoSignFill.js.map +1 -1
  433. package/components/Icons/InfoSignStroke.js +4 -4
  434. package/components/Icons/InfoSignStroke.js.map +1 -1
  435. package/components/Icons/Instagram.js +9 -2
  436. package/components/Icons/Instagram.js.map +1 -1
  437. package/components/Icons/Intravenous.js +4 -4
  438. package/components/Icons/Intravenous.js.map +1 -1
  439. package/components/Icons/JointPain.js +3 -3
  440. package/components/Icons/JointPain.js.map +1 -1
  441. package/components/Icons/Journal.js +4 -4
  442. package/components/Icons/Journal.js.map +1 -1
  443. package/components/Icons/JpgFile.js +4 -4
  444. package/components/Icons/JpgFile.js.map +1 -1
  445. package/components/Icons/Kidney.js +3 -3
  446. package/components/Icons/Kidney.js.map +1 -1
  447. package/components/Icons/KitchenScale.js +4 -4
  448. package/components/Icons/KitchenScale.js.map +1 -1
  449. package/components/Icons/Kjernejournal.js +3 -3
  450. package/components/Icons/Kjernejournal.js.map +1 -1
  451. package/components/Icons/Laboratory.js +4 -4
  452. package/components/Icons/Laboratory.js.map +1 -1
  453. package/components/Icons/LaptopBlog.js +3 -3
  454. package/components/Icons/LaptopBlog.js.map +1 -1
  455. package/components/Icons/LawBook.js +6 -3
  456. package/components/Icons/LawBook.js.map +1 -1
  457. package/components/Icons/LegalDocument.js +13 -10
  458. package/components/Icons/LegalDocument.js.map +1 -1
  459. package/components/Icons/LightBulb.js +2 -2
  460. package/components/Icons/LightBulb.js.map +1 -1
  461. package/components/Icons/List.js +7 -7
  462. package/components/Icons/List.js.map +1 -1
  463. package/components/Icons/Location.js +6 -3
  464. package/components/Icons/Location.js.map +1 -1
  465. package/components/Icons/Lock.js +4 -4
  466. package/components/Icons/Lock.js.map +1 -1
  467. package/components/Icons/Login.js +20 -11
  468. package/components/Icons/Login.js.map +1 -1
  469. package/components/Icons/Logout.js +20 -11
  470. package/components/Icons/Logout.js.map +1 -1
  471. package/components/Icons/Lungs.js +3 -3
  472. package/components/Icons/Lungs.js.map +1 -1
  473. package/components/Icons/Makeup.js +2 -2
  474. package/components/Icons/Makeup.js.map +1 -1
  475. package/components/Icons/MaleDoctor.js +2 -2
  476. package/components/Icons/MaleDoctor.js.map +1 -1
  477. package/components/Icons/MaleDoctorAndPerson.js +11 -3
  478. package/components/Icons/MaleDoctorAndPerson.js.map +1 -1
  479. package/components/Icons/MaleGenitalia.js +2 -2
  480. package/components/Icons/MaleGenitalia.js.map +1 -1
  481. package/components/Icons/Medicine.js +6 -6
  482. package/components/Icons/Medicine.js.map +1 -1
  483. package/components/Icons/MedicineWarning.js +4 -4
  484. package/components/Icons/MedicineWarning.js.map +1 -1
  485. package/components/Icons/MentalHealthAdult.js +9 -3
  486. package/components/Icons/MentalHealthAdult.js.map +1 -1
  487. package/components/Icons/MentalHealthChild.js +9 -3
  488. package/components/Icons/MentalHealthChild.js.map +1 -1
  489. package/components/Icons/Menu.js +4 -4
  490. package/components/Icons/Menu.js.map +1 -1
  491. package/components/Icons/Microscope.js +4 -4
  492. package/components/Icons/Microscope.js.map +1 -1
  493. package/components/Icons/Minus.js +3 -3
  494. package/components/Icons/Minus.js.map +1 -1
  495. package/components/Icons/Mirror.js +3 -3
  496. package/components/Icons/Mirror.js.map +1 -1
  497. package/components/Icons/MobilePhone.js +4 -4
  498. package/components/Icons/MobilePhone.js.map +1 -1
  499. package/components/Icons/MotherHoldingBaby.js +2 -2
  500. package/components/Icons/MotherHoldingBaby.js.map +1 -1
  501. package/components/Icons/MuscleBack.js +11 -3
  502. package/components/Icons/MuscleBack.js.map +1 -1
  503. package/components/Icons/MuscleLeg.js +9 -3
  504. package/components/Icons/MuscleLeg.js.map +1 -1
  505. package/components/Icons/Mushroom.js +3 -3
  506. package/components/Icons/Mushroom.js.map +1 -1
  507. package/components/Icons/Music.js +3 -3
  508. package/components/Icons/Music.js.map +1 -1
  509. package/components/Icons/MusselsAndSalt.js +2 -2
  510. package/components/Icons/MusselsAndSalt.js.map +1 -1
  511. package/components/Icons/NoAccess.js +20 -17
  512. package/components/Icons/NoAccess.js.map +1 -1
  513. package/components/Icons/NoEye.js +9 -9
  514. package/components/Icons/NoEye.js.map +1 -1
  515. package/components/Icons/NoFilter.js +10 -4
  516. package/components/Icons/NoFilter.js.map +1 -1
  517. package/components/Icons/Notepad.js +2 -2
  518. package/components/Icons/Notepad.js.map +1 -1
  519. package/components/Icons/Osteotomy.js +4 -4
  520. package/components/Icons/Osteotomy.js.map +1 -1
  521. package/components/Icons/PaintRoller.js +3 -3
  522. package/components/Icons/PaintRoller.js.map +1 -1
  523. package/components/Icons/PaperPlane.js +4 -4
  524. package/components/Icons/PaperPlane.js.map +1 -1
  525. package/components/Icons/PatientAndPerson.js +2 -2
  526. package/components/Icons/PatientAndPerson.js.map +1 -1
  527. package/components/Icons/Pause.js +4 -4
  528. package/components/Icons/Pause.js.map +1 -1
  529. package/components/Icons/PdfFile.js +4 -4
  530. package/components/Icons/PdfFile.js.map +1 -1
  531. package/components/Icons/Pencil.js +4 -4
  532. package/components/Icons/Pencil.js.map +1 -1
  533. package/components/Icons/PeopleTalking.js +3 -3
  534. package/components/Icons/PeopleTalking.js.map +1 -1
  535. package/components/Icons/Peritonealdialysis.js +4 -4
  536. package/components/Icons/Peritonealdialysis.js.map +1 -1
  537. package/components/Icons/Person.js +2 -2
  538. package/components/Icons/Person.js.map +1 -1
  539. package/components/Icons/PersonAndPatient.js +2 -2
  540. package/components/Icons/PersonAndPatient.js.map +1 -1
  541. package/components/Icons/PersonCancel.js +28 -19
  542. package/components/Icons/PersonCancel.js.map +1 -1
  543. package/components/Icons/PersonInXRayMachine.js +4 -4
  544. package/components/Icons/PersonInXRayMachine.js.map +1 -1
  545. package/components/Icons/PersonOverweight.js +3 -3
  546. package/components/Icons/PersonOverweight.js.map +1 -1
  547. package/components/Icons/PersonRelaxing.js +9 -3
  548. package/components/Icons/PersonRelaxing.js.map +1 -1
  549. package/components/Icons/PersonWithBrain.js +6 -3
  550. package/components/Icons/PersonWithBrain.js.map +1 -1
  551. package/components/Icons/PersonWithBrokenArm.js +3 -3
  552. package/components/Icons/PersonWithBrokenArm.js.map +1 -1
  553. package/components/Icons/PersonWithCrutches.js +3 -3
  554. package/components/Icons/PersonWithCrutches.js.map +1 -1
  555. package/components/Icons/PersonWithJaw.js +9 -3
  556. package/components/Icons/PersonWithJaw.js.map +1 -1
  557. package/components/Icons/PersonWithMagnifyingGlass.js +8 -2
  558. package/components/Icons/PersonWithMagnifyingGlass.js.map +1 -1
  559. package/components/Icons/PersonWithSenses.js +15 -3
  560. package/components/Icons/PersonWithSenses.js.map +1 -1
  561. package/components/Icons/PersonWorking.js +9 -3
  562. package/components/Icons/PersonWorking.js.map +1 -1
  563. package/components/Icons/PersonalPlan.js +14 -11
  564. package/components/Icons/PersonalPlan.js.map +1 -1
  565. package/components/Icons/PizzaSlice.js +8 -2
  566. package/components/Icons/PizzaSlice.js.map +1 -1
  567. package/components/Icons/Plane.js +3 -3
  568. package/components/Icons/Plane.js.map +1 -1
  569. package/components/Icons/Plant.js +3 -3
  570. package/components/Icons/Plant.js.map +1 -1
  571. package/components/Icons/PlateKnifeFork.js +17 -14
  572. package/components/Icons/PlateKnifeFork.js.map +1 -1
  573. package/components/Icons/Play.js +4 -4
  574. package/components/Icons/Play.js.map +1 -1
  575. package/components/Icons/PlusLarge.js +4 -4
  576. package/components/Icons/PlusLarge.js.map +1 -1
  577. package/components/Icons/PlusSmall.js +4 -4
  578. package/components/Icons/PlusSmall.js.map +1 -1
  579. package/components/Icons/PngFile.js +4 -4
  580. package/components/Icons/PngFile.js.map +1 -1
  581. package/components/Icons/Podcast.js +4 -4
  582. package/components/Icons/Podcast.js.map +1 -1
  583. package/components/Icons/PoisonInformation.js +9 -3
  584. package/components/Icons/PoisonInformation.js.map +1 -1
  585. package/components/Icons/Pregnant.js +2 -2
  586. package/components/Icons/Pregnant.js.map +1 -1
  587. package/components/Icons/Printer.js +7 -7
  588. package/components/Icons/Printer.js.map +1 -1
  589. package/components/Icons/Psychosis.js +2 -2
  590. package/components/Icons/Psychosis.js.map +1 -1
  591. package/components/Icons/Publication.js +4 -4
  592. package/components/Icons/Publication.js.map +1 -1
  593. package/components/Icons/Puzzle.js +5 -2
  594. package/components/Icons/Puzzle.js.map +1 -1
  595. package/components/Icons/QrCode.js +7 -7
  596. package/components/Icons/QrCode.js.map +1 -1
  597. package/components/Icons/Quarrel.js +4 -4
  598. package/components/Icons/Quarrel.js.map +1 -1
  599. package/components/Icons/RadioTherapy.js +4 -4
  600. package/components/Icons/RadioTherapy.js.map +1 -1
  601. package/components/Icons/RadioactiveTreatment.js +4 -4
  602. package/components/Icons/RadioactiveTreatment.js.map +1 -1
  603. package/components/Icons/Radioiodine.js +4 -4
  604. package/components/Icons/Radioiodine.js.map +1 -1
  605. package/components/Icons/Receipt.js +2 -2
  606. package/components/Icons/Receipt.js.map +1 -1
  607. package/components/Icons/Receptionist.js +4 -4
  608. package/components/Icons/Receptionist.js.map +1 -1
  609. package/components/Icons/Recovery.js +4 -4
  610. package/components/Icons/Recovery.js.map +1 -1
  611. package/components/Icons/Referral.js +4 -4
  612. package/components/Icons/Referral.js.map +1 -1
  613. package/components/Icons/Refresh.js +4 -4
  614. package/components/Icons/Refresh.js.map +1 -1
  615. package/components/Icons/Refund.js +3 -3
  616. package/components/Icons/Refund.js.map +1 -1
  617. package/components/Icons/Reminder.js +14 -9
  618. package/components/Icons/Reminder.js.map +1 -1
  619. package/components/Icons/Reply.js +10 -4
  620. package/components/Icons/Reply.js.map +1 -1
  621. package/components/Icons/Rocket.js +3 -3
  622. package/components/Icons/Rocket.js.map +1 -1
  623. package/components/Icons/RtfFile.js +4 -4
  624. package/components/Icons/RtfFile.js.map +1 -1
  625. package/components/Icons/STDs.js +4 -4
  626. package/components/Icons/STDs.js.map +1 -1
  627. package/components/Icons/Save.js +12 -4
  628. package/components/Icons/Save.js.map +1 -1
  629. package/components/Icons/Scale.js +3 -3
  630. package/components/Icons/Scale.js.map +1 -1
  631. package/components/Icons/ScreenReader.js +18 -11
  632. package/components/Icons/ScreenReader.js.map +1 -1
  633. package/components/Icons/Search.js +4 -4
  634. package/components/Icons/Search.js.map +1 -1
  635. package/components/Icons/SectionSign.js +6 -6
  636. package/components/Icons/SectionSign.js.map +1 -1
  637. package/components/Icons/Settings.js +7 -7
  638. package/components/Icons/Settings.js.map +1 -1
  639. package/components/Icons/Sexualorientation.js +4 -4
  640. package/components/Icons/Sexualorientation.js.map +1 -1
  641. package/components/Icons/ShakingHand.js +3 -3
  642. package/components/Icons/ShakingHand.js.map +1 -1
  643. package/components/Icons/Share.js +10 -4
  644. package/components/Icons/Share.js.map +1 -1
  645. package/components/Icons/Shield.js +4 -4
  646. package/components/Icons/Shield.js.map +1 -1
  647. package/components/Icons/ShuntOperation.js +3 -3
  648. package/components/Icons/ShuntOperation.js.map +1 -1
  649. package/components/Icons/Skeleton.js +2 -2
  650. package/components/Icons/Skeleton.js.map +1 -1
  651. package/components/Icons/Skin.js +3 -3
  652. package/components/Icons/Skin.js.map +1 -1
  653. package/components/Icons/Snake.js +3 -3
  654. package/components/Icons/Snake.js.map +1 -1
  655. package/components/Icons/Snapchat.js +6 -3
  656. package/components/Icons/Snapchat.js.map +1 -1
  657. package/components/Icons/SortDown.js +19 -7
  658. package/components/Icons/SortDown.js.map +1 -1
  659. package/components/Icons/SortUp.js +19 -7
  660. package/components/Icons/SortUp.js.map +1 -1
  661. package/components/Icons/SpeechBubble.js +6 -6
  662. package/components/Icons/SpeechBubble.js.map +1 -1
  663. package/components/Icons/Spray.js +2 -2
  664. package/components/Icons/Spray.js.map +1 -1
  665. package/components/Icons/Stopwatch.js +7 -7
  666. package/components/Icons/Stopwatch.js.map +1 -1
  667. package/components/Icons/Sun.js +14 -9
  668. package/components/Icons/Sun.js.map +1 -1
  669. package/components/Icons/SupportingPerson.js +25 -22
  670. package/components/Icons/SupportingPerson.js.map +1 -1
  671. package/components/Icons/Surgery.js +3 -3
  672. package/components/Icons/Surgery.js.map +1 -1
  673. package/components/Icons/Sweets.js +19 -14
  674. package/components/Icons/Sweets.js.map +1 -1
  675. package/components/Icons/Syringe.js +6 -6
  676. package/components/Icons/Syringe.js.map +1 -1
  677. package/components/Icons/Taxi.js +2 -2
  678. package/components/Icons/Taxi.js.map +1 -1
  679. package/components/Icons/TeddyBear.js +3 -3
  680. package/components/Icons/TeddyBear.js.map +1 -1
  681. package/components/Icons/Teenagers.js +4 -4
  682. package/components/Icons/Teenagers.js.map +1 -1
  683. package/components/Icons/ThinkingAboutBaby.js +3 -3
  684. package/components/Icons/ThinkingAboutBaby.js.map +1 -1
  685. package/components/Icons/Ticket.js +3 -3
  686. package/components/Icons/Ticket.js.map +1 -1
  687. package/components/Icons/TimePassing.js +7 -7
  688. package/components/Icons/TimePassing.js.map +1 -1
  689. package/components/Icons/Tombstone.js +12 -9
  690. package/components/Icons/Tombstone.js.map +1 -1
  691. package/components/Icons/Toolbox.js +36 -30
  692. package/components/Icons/Toolbox.js.map +1 -1
  693. package/components/Icons/Tooth.js +3 -3
  694. package/components/Icons/Tooth.js.map +1 -1
  695. package/components/Icons/TotalKneeProsthesis.js +4 -4
  696. package/components/Icons/TotalKneeProsthesis.js.map +1 -1
  697. package/components/Icons/Train.js +3 -3
  698. package/components/Icons/Train.js.map +1 -1
  699. package/components/Icons/Transplantation.js +3 -3
  700. package/components/Icons/Transplantation.js.map +1 -1
  701. package/components/Icons/TrashCan.js +7 -7
  702. package/components/Icons/TrashCan.js.map +1 -1
  703. package/components/Icons/TravelRoute.js +21 -16
  704. package/components/Icons/TravelRoute.js.map +1 -1
  705. package/components/Icons/TriangleX.js +32 -35
  706. package/components/Icons/TriangleX.js.map +1 -1
  707. package/components/Icons/Twitter.js +3 -3
  708. package/components/Icons/Twitter.js.map +1 -1
  709. package/components/Icons/Undo.js +8 -8
  710. package/components/Icons/Undo.js.map +1 -1
  711. package/components/Icons/UniProsthesis.js +3 -3
  712. package/components/Icons/UniProsthesis.js.map +1 -1
  713. package/components/Icons/Upload.js +10 -4
  714. package/components/Icons/Upload.js.map +1 -1
  715. package/components/Icons/UserOrganization.js +2 -2
  716. package/components/Icons/UserOrganization.js.map +1 -1
  717. package/components/Icons/Vaccine.js +7 -7
  718. package/components/Icons/Vaccine.js.map +1 -1
  719. package/components/Icons/VerticalDots.js +4 -4
  720. package/components/Icons/VerticalDots.js.map +1 -1
  721. package/components/Icons/VideoCamera.js +7 -7
  722. package/components/Icons/VideoCamera.js.map +1 -1
  723. package/components/Icons/VideoChat.js +4 -4
  724. package/components/Icons/VideoChat.js.map +1 -1
  725. package/components/Icons/Wallet.js +4 -4
  726. package/components/Icons/Wallet.js.map +1 -1
  727. package/components/Icons/Watch.js +6 -6
  728. package/components/Icons/Watch.js.map +1 -1
  729. package/components/Icons/Website.js +4 -4
  730. package/components/Icons/Website.js.map +1 -1
  731. package/components/Icons/Wheelchair.js +4 -4
  732. package/components/Icons/Wheelchair.js.map +1 -1
  733. package/components/Icons/WheelchairActive.js +3 -3
  734. package/components/Icons/WheelchairActive.js.map +1 -1
  735. package/components/Icons/Window.js +3 -3
  736. package/components/Icons/Window.js.map +1 -1
  737. package/components/Icons/WordDocument.js +3 -3
  738. package/components/Icons/WordDocument.js.map +1 -1
  739. package/components/Icons/WorkSuitcase.js +2 -2
  740. package/components/Icons/WorkSuitcase.js.map +1 -1
  741. package/components/Icons/X.js +4 -4
  742. package/components/Icons/X.js.map +1 -1
  743. package/components/Icons/XOutline.js +3 -3
  744. package/components/Icons/XOutline.js.map +1 -1
  745. package/components/Icons/XmlFile.js +4 -4
  746. package/components/Icons/XmlFile.js.map +1 -1
  747. package/components/Icons/YouTube.js +3 -3
  748. package/components/Icons/YouTube.js.map +1 -1
  749. package/components/Icons/Zoom.js +6 -6
  750. package/components/Icons/Zoom.js.map +1 -1
  751. package/components/Illustration/index.js +3 -3
  752. package/components/Illustrations/Doctor.js +8 -8
  753. package/components/Illustrations/Doctor.js.map +1 -1
  754. package/components/Illustrations/DoctorMedium.js +49 -41
  755. package/components/Illustrations/DoctorMedium.js.map +1 -1
  756. package/components/Illustrations/DoctorSmall.js +48 -38
  757. package/components/Illustrations/DoctorSmall.js.map +1 -1
  758. package/components/Illustrations/FacialRecognitionFingerprint.js +6 -6
  759. package/components/Illustrations/FacialRecognitionFingerprint.js.map +1 -1
  760. package/components/Illustrations/FacialRecognitionFingerprintMedium.js +297 -253
  761. package/components/Illustrations/FacialRecognitionFingerprintMedium.js.map +1 -1
  762. package/components/Illustrations/HealthcarePersonnel.js +7 -7
  763. package/components/Illustrations/HealthcarePersonnel.js.map +1 -1
  764. package/components/Illustrations/HealthcarePersonnelMedium.js +202 -171
  765. package/components/Illustrations/HealthcarePersonnelMedium.js.map +1 -1
  766. package/components/Illustrations/HealthcarePersonnelSmall.js +190 -165
  767. package/components/Illustrations/HealthcarePersonnelSmall.js.map +1 -1
  768. package/components/Input/index.js +3 -3
  769. package/components/Label/index.js +7 -8
  770. package/components/Label/index.js.map +1 -1
  771. package/components/LazyIcon/index.js +2 -2
  772. package/components/LazyIllustration/index.js +5 -5
  773. package/components/LinkList/index.js +3 -3
  774. package/components/List/index.js +2 -2
  775. package/components/ListHeader/ListHeaderText/index.js +1 -1
  776. package/components/ListHeader/index.js +5 -5
  777. package/components/Loader/index.js +67 -4
  778. package/components/Loader/index.js.map +1 -1
  779. package/components/Logo/index.js +41 -2
  780. package/components/Logo/index.js.map +1 -1
  781. package/components/Modal/index.js +162 -5
  782. package/components/Modal/index.js.map +1 -1
  783. package/components/NotificationPanel/index.js +98 -2
  784. package/components/NotificationPanel/index.js.map +1 -1
  785. package/components/Panel/index.js +4 -4
  786. package/components/PanelList/index.js +15 -2
  787. package/components/PanelList/index.js.map +1 -1
  788. package/components/PopMenu/index.js +92 -6
  789. package/components/PopMenu/index.js.map +1 -1
  790. package/components/PopOver/index.js +4 -4
  791. package/components/Portal/index.js +3 -3
  792. package/components/Progressbar/index.js +92 -6
  793. package/components/Progressbar/index.js.map +1 -1
  794. package/components/Progressbar/styles.module.scss +5 -0
  795. package/components/Progressbar/styles.module.scss.d.ts +1 -0
  796. package/components/PromoPanel/index.js +57 -2
  797. package/components/PromoPanel/index.js.map +1 -1
  798. package/components/RadioButton/index.js +5 -5
  799. package/components/Select/index.js +1 -1
  800. package/components/ServiceMessage/index.js +110 -2
  801. package/components/ServiceMessage/index.js.map +1 -1
  802. package/components/SharingStatus/index.js +16 -2
  803. package/components/SharingStatus/index.js.map +1 -1
  804. package/components/Slider/index.js +189 -3
  805. package/components/Slider/index.js.map +1 -1
  806. package/components/Spacer/index.js +2 -2
  807. package/components/StatusDot/index.js +4 -4
  808. package/components/Step/index.js +31 -2
  809. package/components/Step/index.js.map +1 -1
  810. package/components/StepButtons/index.js +1 -1
  811. package/components/Stepper/index.js +49 -2
  812. package/components/Stepper/index.js.map +1 -1
  813. package/components/Table/TableBody/index.js +3 -3
  814. package/components/Table/TableCell/index.js +5 -5
  815. package/components/Table/TableExpandedRow/index.js +1 -1
  816. package/components/Table/TableExpanderCell/index.js +3 -3
  817. package/components/Table/TableHead/index.js +4 -4
  818. package/components/Table/TableHeadCell/index.js +3 -3
  819. package/components/Table/TableRow/index.js +3 -3
  820. package/components/Table/index.js +22 -22
  821. package/components/Tabs/TabList/index.js +2 -2
  822. package/components/Tabs/TabPanel/index.js +1 -1
  823. package/components/Tabs/index.js +94 -2
  824. package/components/Tabs/index.js.map +1 -1
  825. package/components/Tag/index.js +22 -5
  826. package/components/Tag/index.js.map +1 -1
  827. package/components/TagList/index.js +6 -2
  828. package/components/TagList/index.js.map +1 -1
  829. package/components/Textarea/index.js +1 -1
  830. package/components/Tile/index.js +70 -3
  831. package/components/Tile/index.js.map +1 -1
  832. package/components/Title/index.js +5 -5
  833. package/components/Toggle/index.js +2653 -5
  834. package/components/Toggle/index.js.map +1 -1
  835. package/components/Tooltip/TooltipWord/index.js +1 -1
  836. package/components/Tooltip/index.js +54 -5
  837. package/components/Tooltip/index.js.map +1 -1
  838. package/components/Trigger/index.js +2 -2
  839. package/components/Validation/index.js +47 -3
  840. package/components/Validation/index.js.map +1 -1
  841. package/{components → docs}/ButtonWithModal/ButtonWithModal.d.ts +1 -1
  842. package/{components → docs}/HelpBubbleExample/HelpBubbleExample.d.ts +1 -1
  843. package/{components → docs}/TooltipExample/TooltipExample.d.ts +1 -1
  844. package/hoc/withBreakpoint/withBreakpoint.js +9 -8
  845. package/hoc/withBreakpoint/withBreakpoint.js.map +1 -1
  846. package/hooks/useIcons.js +9 -9
  847. package/hooks/useUuid.js +3 -3
  848. package/index.js +3 -3
  849. package/package.json +1 -1
  850. package/utils/component.js +2 -2
  851. package/utils/uuid.js +4 -7
  852. package/utils/uuid.js.map +1 -1
  853. package/{components/Illustration/utils.js → utils.js} +1 -1
  854. package/utils.js.map +1 -0
  855. package/uuid.js +14 -0
  856. package/uuid.js.map +1 -0
  857. package/_virtual/_cloneBuffer.js +0 -5
  858. package/_virtual/_cloneBuffer.js.map +0 -1
  859. package/_virtual/_commonjs-dynamic-modules.js +0 -7
  860. package/_virtual/_commonjs-dynamic-modules.js.map +0 -1
  861. package/_virtual/_commonjsHelpers.js +0 -9
  862. package/_virtual/_commonjsHelpers.js.map +0 -1
  863. package/_virtual/_nodeUtil.js +0 -5
  864. package/_virtual/_nodeUtil.js.map +0 -1
  865. package/_virtual/dynamic-import-helper.js +0 -17
  866. package/_virtual/dynamic-import-helper.js.map +0 -1
  867. package/_virtual/isBuffer.js +0 -5
  868. package/_virtual/isBuffer.js.map +0 -1
  869. package/_virtual/memoizerific.js +0 -5
  870. package/_virtual/memoizerific.js.map +0 -1
  871. package/components/AnchorLink/AnchorLink.js +0 -53
  872. package/components/AnchorLink/AnchorLink.js.map +0 -1
  873. package/components/Avatar/Avatar.js +0 -33
  874. package/components/Avatar/Avatar.js.map +0 -1
  875. package/components/Badge/Badge.js +0 -30
  876. package/components/Badge/Badge.js.map +0 -1
  877. package/components/Badge/NotificationBadge.js +0 -68
  878. package/components/Badge/NotificationBadge.js.map +0 -1
  879. package/components/Button/Button.js +0 -118
  880. package/components/Button/Button.js.map +0 -1
  881. package/components/ButtonWithModal/ButtonWithModal.js +0 -11
  882. package/components/ButtonWithModal/ButtonWithModal.js.map +0 -1
  883. package/components/ButtonWithModal/index.js +0 -5
  884. package/components/ButtonWithModal/index.js.map +0 -1
  885. package/components/Checkbox/Checkbox.js +0 -110
  886. package/components/Checkbox/Checkbox.js.map +0 -1
  887. package/components/Chip/Chip.js +0 -30
  888. package/components/Chip/Chip.js.map +0 -1
  889. package/components/Close/Close.js +0 -30
  890. package/components/Close/Close.js.map +0 -1
  891. package/components/DictionaryTrigger/DictionaryTrigger.js +0 -27
  892. package/components/DictionaryTrigger/DictionaryTrigger.js.map +0 -1
  893. package/components/Dropdown/Dropdown.js +0 -117
  894. package/components/Dropdown/Dropdown.js.map +0 -1
  895. package/components/Duolist/Duolist.js +0 -63
  896. package/components/Duolist/Duolist.js.map +0 -1
  897. package/components/EmptyState/EmptyState.js +0 -10
  898. package/components/EmptyState/EmptyState.js.map +0 -1
  899. package/components/EmptyState/NobodyHome.js +0 -155
  900. package/components/EmptyState/NobodyHome.js.map +0 -1
  901. package/components/ErrorWrapper/ErrorWrapper.js +0 -12
  902. package/components/ErrorWrapper/ErrorWrapper.js.map +0 -1
  903. package/components/Expander/Expander.js +0 -101
  904. package/components/Expander/Expander.js.map +0 -1
  905. package/components/ExpanderHierarchy/Expander.js +0 -31
  906. package/components/ExpanderHierarchy/Expander.js.map +0 -1
  907. package/components/ExpanderHierarchy/ExpanderButton.js +0 -46
  908. package/components/ExpanderHierarchy/ExpanderButton.js.map +0 -1
  909. package/components/ExpanderHierarchy/ExpanderHierarchy.js +0 -28
  910. package/components/ExpanderHierarchy/ExpanderHierarchy.js.map +0 -1
  911. package/components/ExpanderHierarchy/utils.js +0 -20
  912. package/components/ExpanderHierarchy/utils.js.map +0 -1
  913. package/components/ExpanderList/ExpanderList.js +0 -139
  914. package/components/ExpanderList/ExpanderList.js.map +0 -1
  915. package/components/EyebrowHeader/EyebrowHeader.js +0 -12
  916. package/components/EyebrowHeader/EyebrowHeader.js.map +0 -1
  917. package/components/FormExample/FormExample.js +0 -161
  918. package/components/FormExample/FormExample.js.map +0 -1
  919. package/components/FormExample/index.js +0 -8
  920. package/components/FormExample/index.js.map +0 -1
  921. package/components/FormExample/styles.module.scss +0 -33
  922. package/components/FormExample/styles.module.scss.d.ts +0 -12
  923. package/components/FormGroup/FormGroup.js +0 -101
  924. package/components/FormGroup/FormGroup.js.map +0 -1
  925. package/components/FormLayout/FormLayout.js +0 -38
  926. package/components/FormLayout/FormLayout.js.map +0 -1
  927. package/components/GridExample/GridExample.js +0 -8
  928. package/components/GridExample/GridExample.js.map +0 -1
  929. package/components/GridExample/index.js +0 -6
  930. package/components/GridExample/index.js.map +0 -1
  931. package/components/HelpBubble/HelpBubble.js +0 -61
  932. package/components/HelpBubble/HelpBubble.js.map +0 -1
  933. package/components/HelpBubbleExample/HelpBubbleExample.js +0 -20
  934. package/components/HelpBubbleExample/HelpBubbleExample.js.map +0 -1
  935. package/components/HelpBubbleExample/index.js +0 -5
  936. package/components/HelpBubbleExample/index.js.map +0 -1
  937. package/components/HelpPanel/HelpPanel.js +0 -24
  938. package/components/HelpPanel/HelpPanel.js.map +0 -1
  939. package/components/HelpQuestion/HelpQuestion.js +0 -31
  940. package/components/HelpQuestion/HelpQuestion.js.map +0 -1
  941. package/components/HighlightPanel/HighlightPanel.js +0 -61
  942. package/components/HighlightPanel/HighlightPanel.js.map +0 -1
  943. package/components/HorizontalScroll/HorizontalScroll.js +0 -47
  944. package/components/HorizontalScroll/HorizontalScroll.js.map +0 -1
  945. package/components/Icon/Icon.js +0 -60
  946. package/components/Icon/Icon.js.map +0 -1
  947. package/components/Illustration/Illustration.js +0 -41
  948. package/components/Illustration/Illustration.js.map +0 -1
  949. package/components/Illustration/utils.js.map +0 -1
  950. package/components/Input/Input.js +0 -129
  951. package/components/Input/Input.js.map +0 -1
  952. package/components/Label/Label.js +0 -79
  953. package/components/Label/Label.js.map +0 -1
  954. package/components/Label/SubLabel.js +0 -19
  955. package/components/Label/SubLabel.js.map +0 -1
  956. package/components/LazyIcon/ErrorBoundary.js +0 -21
  957. package/components/LazyIcon/ErrorBoundary.js.map +0 -1
  958. package/components/LazyIcon/LazyIcon.js +0 -31
  959. package/components/LazyIcon/LazyIcon.js.map +0 -1
  960. package/components/LazyIllustration/LazyIllustration.js +0 -35
  961. package/components/LazyIllustration/LazyIllustration.js.map +0 -1
  962. package/components/LinkList/LinkList.js +0 -60
  963. package/components/LinkList/LinkList.js.map +0 -1
  964. package/components/List/List.js +0 -13
  965. package/components/List/List.js.map +0 -1
  966. package/components/ListHeader/ListHeader.js +0 -84
  967. package/components/ListHeader/ListHeader.js.map +0 -1
  968. package/components/ListHeader/ListHeaderText/ListHeaderText.js +0 -30
  969. package/components/ListHeader/ListHeaderText/ListHeaderText.js.map +0 -1
  970. package/components/Loader/Loader.js +0 -67
  971. package/components/Loader/Loader.js.map +0 -1
  972. package/components/Logo/Logo.js +0 -40
  973. package/components/Logo/Logo.js.map +0 -1
  974. package/components/MaxCharacters/MaxCharacters.js +0 -15
  975. package/components/MaxCharacters/MaxCharacters.js.map +0 -1
  976. package/components/Modal/Modal.js +0 -145
  977. package/components/Modal/Modal.js.map +0 -1
  978. package/components/NotificationPanel/NotificationPanel.js +0 -94
  979. package/components/NotificationPanel/NotificationPanel.js.map +0 -1
  980. package/components/Panel/Panel.js +0 -191
  981. package/components/Panel/Panel.js.map +0 -1
  982. package/components/PanelList/PanelList.js +0 -17
  983. package/components/PanelList/PanelList.js.map +0 -1
  984. package/components/PopMenu/PopMenu.js +0 -89
  985. package/components/PopMenu/PopMenu.js.map +0 -1
  986. package/components/PopOver/PopOver.js +0 -56
  987. package/components/PopOver/PopOver.js.map +0 -1
  988. package/components/PopOver/utils.js +0 -33
  989. package/components/PopOver/utils.js.map +0 -1
  990. package/components/Progressbar/Progressbar.js +0 -89
  991. package/components/Progressbar/Progressbar.js.map +0 -1
  992. package/components/PromoPanel/PromoPanel.js +0 -52
  993. package/components/PromoPanel/PromoPanel.js.map +0 -1
  994. package/components/RadioButton/RadioButton.js +0 -104
  995. package/components/RadioButton/RadioButton.js.map +0 -1
  996. package/components/Select/Select.js +0 -70
  997. package/components/Select/Select.js.map +0 -1
  998. package/components/ServiceMessage/ServiceMessage.js +0 -92
  999. package/components/ServiceMessage/ServiceMessage.js.map +0 -1
  1000. package/components/SharingStatus/SharingStatus.js +0 -16
  1001. package/components/SharingStatus/SharingStatus.js.map +0 -1
  1002. package/components/Slider/Slider.js +0 -178
  1003. package/components/Slider/Slider.js.map +0 -1
  1004. package/components/Spacer/Spacer.js.map +0 -1
  1005. package/components/StatusDot/StatusDot.js +0 -29
  1006. package/components/StatusDot/StatusDot.js.map +0 -1
  1007. package/components/Step/Step.js +0 -30
  1008. package/components/Step/Step.js.map +0 -1
  1009. package/components/StepButtons/StepButtons.js +0 -21
  1010. package/components/StepButtons/StepButtons.js.map +0 -1
  1011. package/components/Stepper/Dot.js +0 -16
  1012. package/components/Stepper/Dot.js.map +0 -1
  1013. package/components/Stepper/DotList.js +0 -7
  1014. package/components/Stepper/DotList.js.map +0 -1
  1015. package/components/Stepper/Stepper.js +0 -35
  1016. package/components/Stepper/Stepper.js.map +0 -1
  1017. package/components/Stepper/utils.js +0 -16
  1018. package/components/Stepper/utils.js.map +0 -1
  1019. package/components/Table/Table.js +0 -76
  1020. package/components/Table/Table.js.map +0 -1
  1021. package/components/Table/TableBody/TableBody.js +0 -13
  1022. package/components/Table/TableBody/TableBody.js.map +0 -1
  1023. package/components/Table/TableCell/TableCell.js.map +0 -1
  1024. package/components/Table/TableExpandedRow/TableExpandedRow.js +0 -31
  1025. package/components/Table/TableExpandedRow/TableExpandedRow.js.map +0 -1
  1026. package/components/Table/TableExpanderCell/TableExpanderCell.js +0 -35
  1027. package/components/Table/TableExpanderCell/TableExpanderCell.js.map +0 -1
  1028. package/components/Table/TableExpanderCell/TableExpanderCellMobile.js +0 -25
  1029. package/components/Table/TableExpanderCell/TableExpanderCellMobile.js.map +0 -1
  1030. package/components/Table/TableHead/TableHead.js +0 -24
  1031. package/components/Table/TableHead/TableHead.js.map +0 -1
  1032. package/components/Table/TableHeadCell/TableHeadCell.js +0 -42
  1033. package/components/Table/TableHeadCell/TableHeadCell.js.map +0 -1
  1034. package/components/Table/TableRow/TableRow.js +0 -40
  1035. package/components/Table/TableRow/TableRow.js.map +0 -1
  1036. package/components/Table/utils.js +0 -32
  1037. package/components/Table/utils.js.map +0 -1
  1038. package/components/Tabs/Tab.js +0 -6
  1039. package/components/Tabs/Tab.js.map +0 -1
  1040. package/components/Tabs/TabList/TabItem.js +0 -45
  1041. package/components/Tabs/TabList/TabItem.js.map +0 -1
  1042. package/components/Tabs/TabList/TabList.js +0 -28
  1043. package/components/Tabs/TabList/TabList.js.map +0 -1
  1044. package/components/Tabs/TabPanel/TabPanel.js +0 -17
  1045. package/components/Tabs/TabPanel/TabPanel.js.map +0 -1
  1046. package/components/Tabs/Tabs.js +0 -92
  1047. package/components/Tabs/Tabs.js.map +0 -1
  1048. package/components/Tag/Tag.js +0 -22
  1049. package/components/Tag/Tag.js.map +0 -1
  1050. package/components/TagList/TagList.js +0 -8
  1051. package/components/TagList/TagList.js.map +0 -1
  1052. package/components/Textarea/Textarea.js +0 -105
  1053. package/components/Textarea/Textarea.js.map +0 -1
  1054. package/components/Tile/Tile.js +0 -67
  1055. package/components/Tile/Tile.js.map +0 -1
  1056. package/components/Title/Title.js +0 -25
  1057. package/components/Title/Title.js.map +0 -1
  1058. package/components/Toggle/Toggle.js +0 -92
  1059. package/components/Toggle/Toggle.js.map +0 -1
  1060. package/components/Tooltip/Tooltip.js +0 -55
  1061. package/components/Tooltip/Tooltip.js.map +0 -1
  1062. package/components/Tooltip/TooltipWord/TooltipWord.js +0 -27
  1063. package/components/Tooltip/TooltipWord/TooltipWord.js.map +0 -1
  1064. package/components/TooltipExample/TooltipExample.js +0 -8
  1065. package/components/TooltipExample/TooltipExample.js.map +0 -1
  1066. package/components/TooltipExample/index.js +0 -5
  1067. package/components/TooltipExample/index.js.map +0 -1
  1068. package/components/Trigger/HelpSign.js +0 -7
  1069. package/components/Trigger/HelpSign.js.map +0 -1
  1070. package/components/Trigger/Trigger.js +0 -73
  1071. package/components/Trigger/Trigger.js.map +0 -1
  1072. package/components/Validation/ErrorList.js +0 -8
  1073. package/components/Validation/ErrorList.js.map +0 -1
  1074. package/components/Validation/ErrorListItem.js +0 -12
  1075. package/components/Validation/ErrorListItem.js.map +0 -1
  1076. package/components/Validation/Validation.js +0 -18
  1077. package/components/Validation/Validation.js.map +0 -1
  1078. package/components/Validation/ValidationSummary.js +0 -25
  1079. package/components/Validation/ValidationSummary.js.map +0 -1
  1080. package/docs/index.d.ts +0 -8
  1081. package/docs/index.js +0 -14
  1082. package/docs/index.js.map +0 -1
  1083. /package/{components → docs}/ButtonWithModal/index.d.ts +0 -0
  1084. /package/{components → docs}/FormExample/FormExample.d.ts +0 -0
  1085. /package/{components → docs}/FormExample/index.d.ts +0 -0
  1086. /package/{components → docs}/GridExample/GridExample.d.ts +0 -0
  1087. /package/{components → docs}/GridExample/index.d.ts +0 -0
  1088. /package/{components → docs}/HelpBubbleExample/index.d.ts +0 -0
  1089. /package/{components → docs}/TooltipExample/index.d.ts +0 -0
@@ -1,28 +0,0 @@
1
- import t, { useRef as l } from "react";
2
- import b from "classnames";
3
- import R from "./TabItem.js";
4
- import { useRovingFocus as C } from "../../../hooks/useRovingFocus.js";
5
- import { isComponent as T } from "../../../utils/component.js";
6
- import d from "../Tab.js";
7
- import i from "../../Tabs/TabList/styles.module.scss";
8
- const g = (m) => {
9
- const { selectedTab: n, onTabListClick: r, children: o, color: p = "white", type: f = "normal" } = m, s = l(null), a = l(t.Children.map(o, () => t.createRef()));
10
- C(r, a, s, !0);
11
- const c = b(i["tab-list"], i[`tab-list--${f}`]);
12
- return /* @__PURE__ */ t.createElement("ul", { className: c, ref: s, role: "tablist", "aria-orientation": "horizontal" }, t.Children.map(o, (e, u) => T(e, d) ? /* @__PURE__ */ t.createElement(
13
- R,
14
- {
15
- tabRefs: a,
16
- key: e.props.title,
17
- index: u,
18
- selectedTab: n,
19
- onTabListClick: r,
20
- tabProps: e.props,
21
- color: p
22
- }
23
- ) : null));
24
- };
25
- export {
26
- g as default
27
- };
28
- //# sourceMappingURL=TabList.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TabList.js","sources":["../../../../src/components/Tabs/TabList/TabList.tsx"],"sourcesContent":["import React, { useRef } from 'react';\n\nimport classNames from 'classnames';\n\nimport TabItem from './TabItem';\nimport { useRovingFocus } from '../../../hooks/useRovingFocus';\nimport { isComponent } from '../../../utils/component';\nimport Tab, { TabProps } from '../Tab';\nimport { TabsColors, TabsType } from '../Tabs';\n\nimport styles from './styles.module.scss';\ninterface TabListProps {\n children: React.ReactNode;\n onTabListClick: (index: number) => void;\n selectedTab: number;\n color?: TabsColors;\n type?: TabsType;\n}\n\nconst TabList: React.FC<TabListProps> = props => {\n const { selectedTab, onTabListClick, children, color = 'white', type = 'normal' } = props;\n\n const listRef = useRef<HTMLUListElement>(null);\n\n const tabRefs = useRef(React.Children.map(children, () => React.createRef<HTMLButtonElement>()));\n useRovingFocus(onTabListClick, tabRefs, listRef, true);\n\n const tablistClasses = classNames(styles['tab-list'], styles[`tab-list--${type}`]);\n\n return (\n <ul className={tablistClasses} ref={listRef} role=\"tablist\" aria-orientation=\"horizontal\">\n {React.Children.map(children, (child, index) => {\n if (isComponent<TabProps>(child, Tab)) {\n return (\n <TabItem\n tabRefs={tabRefs}\n key={child.props.title}\n index={index}\n selectedTab={selectedTab}\n onTabListClick={onTabListClick}\n tabProps={child.props}\n color={color}\n />\n );\n }\n return null;\n })}\n </ul>\n );\n};\n\nexport default TabList;\n"],"names":["TabList","props","selectedTab","onTabListClick","children","color","type","listRef","useRef","tabRefs","React","useRovingFocus","tablistClasses","classNames","styles","child","index","isComponent","Tab","TabItem"],"mappings":";;;;;;;AAmBA,MAAMA,IAAkC,CAASC,MAAA;AACzC,QAAA,EAAE,aAAAC,GAAa,gBAAAC,GAAgB,UAAAC,GAAU,OAAAC,IAAQ,SAAS,MAAAC,IAAO,SAAa,IAAAL,GAE9EM,IAAUC,EAAyB,IAAI,GAEvCC,IAAUD,EAAOE,EAAM,SAAS,IAAIN,GAAU,MAAMM,EAAM,UAA8B,CAAA,CAAC;AAChF,EAAAC,EAAAR,GAAgBM,GAASF,GAAS,EAAI;AAE/C,QAAAK,IAAiBC,EAAWC,EAAO,UAAU,GAAGA,EAAO,aAAaR,CAAI,EAAE,CAAC;AAEjF,yCACG,MAAG,EAAA,WAAWM,GAAgB,KAAKL,GAAS,MAAK,WAAU,oBAAiB,aAAA,GAC1EG,EAAM,SAAS,IAAIN,GAAU,CAACW,GAAOC,MAChCC,EAAsBF,GAAOG,CAAG,IAEhCR,gBAAAA,EAAA;AAAA,IAACS;AAAA,IAAA;AAAA,MACC,SAAAV;AAAA,MACA,KAAKM,EAAM,MAAM;AAAA,MACjB,OAAAC;AAAA,MACA,aAAAd;AAAA,MACA,gBAAAC;AAAA,MACA,UAAUY,EAAM;AAAA,MAChB,OAAAV;AAAA,IAAA;AAAA,EAAA,IAIC,IACR,CACH;AAEJ;"}
@@ -1,17 +0,0 @@
1
- import s, { forwardRef as y } from "react";
2
- import l from "classnames";
3
- import a from "../../Tabs/TabPanel/styles.module.scss";
4
- const h = y((n, r) => {
5
- const { children: o, animate: t, color: m = "white", type: i = "normal", isFirst: c = !1, translateX: e, style: f } = n, p = l(a["tab-panel"], a[`tab-panel--${m}`], a[`tab-panel--${i}`], {
6
- [a["tab-panel--first"]]: c
7
- }), b = l({
8
- [a["tab-panel--animate-left"]]: t === "left",
9
- [a["tab-panel--animate-right"]]: t === "right"
10
- }), d = e != 0 ? { transform: `translateX(${e}px)` } : {};
11
- return /* @__PURE__ */ s.createElement("div", { ref: r, className: p, style: f }, /* @__PURE__ */ s.createElement("div", { className: b, style: d }, o));
12
- });
13
- h.displayName = "TabPanel";
14
- export {
15
- h as default
16
- };
17
- //# sourceMappingURL=TabPanel.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TabPanel.js","sources":["../../../../src/components/Tabs/TabPanel/TabPanel.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport classNames from 'classnames';\n\nimport { TabsColors, TabsType } from '../Tabs';\n\nimport styles from './styles.module.scss';\n\ninterface TabPanelProps {\n children?: React.ReactNode;\n color?: TabsColors;\n type?: TabsType;\n isFirst?: boolean;\n translateX?: number;\n style?: React.CSSProperties;\n animate: 'left' | 'right' | null;\n}\n\nconst TabPanel = forwardRef<HTMLDivElement, TabPanelProps>((props, ref) => {\n const { children, animate, color = 'white', type = 'normal', isFirst = false, translateX, style } = props;\n const tabPanelClasses = classNames(styles['tab-panel'], styles[`tab-panel--${color}`], styles[`tab-panel--${type}`], {\n [styles['tab-panel--first']]: isFirst,\n });\n const contentClasses = classNames({\n [styles['tab-panel--animate-left']]: animate === 'left',\n [styles['tab-panel--animate-right']]: animate === 'right',\n });\n const transformStyle: React.CSSProperties = translateX != 0 ? { transform: `translateX(${translateX}px)` } : {};\n\n return (\n <div ref={ref} className={tabPanelClasses} style={style}>\n <div className={contentClasses} style={transformStyle}>\n {children}\n </div>\n </div>\n );\n});\n\nTabPanel.displayName = 'TabPanel';\nexport default TabPanel;\n"],"names":["TabPanel","forwardRef","props","ref","children","animate","color","type","isFirst","translateX","style","tabPanelClasses","classNames","styles","contentClasses","transformStyle","React"],"mappings":";;;AAkBA,MAAMA,IAAWC,EAA0C,CAACC,GAAOC,MAAQ;AACnE,QAAA,EAAE,UAAAC,GAAU,SAAAC,GAAS,OAAAC,IAAQ,SAAS,MAAAC,IAAO,UAAU,SAAAC,IAAU,IAAO,YAAAC,GAAY,OAAAC,EAAA,IAAUR,GAC9FS,IAAkBC,EAAWC,EAAO,WAAW,GAAGA,EAAO,cAAcP,CAAK,EAAE,GAAGO,EAAO,cAAcN,CAAI,EAAE,GAAG;AAAA,IACnH,CAACM,EAAO,kBAAkB,CAAC,GAAGL;AAAA,EAAA,CAC/B,GACKM,IAAiBF,EAAW;AAAA,IAChC,CAACC,EAAO,yBAAyB,CAAC,GAAGR,MAAY;AAAA,IACjD,CAACQ,EAAO,0BAA0B,CAAC,GAAGR,MAAY;AAAA,EAAA,CACnD,GACKU,IAAsCN,KAAc,IAAI,EAAE,WAAW,cAAcA,CAAU,MAAM,IAAI;AAE7G,SACGO,gBAAAA,EAAA,cAAA,OAAA,EAAI,KAAAb,GAAU,WAAWQ,GAAiB,OAAAD,KACxCM,gBAAAA,EAAA,cAAA,OAAA,EAAI,WAAWF,GAAgB,OAAOC,EAAA,GACpCX,CACH,CACF;AAEJ,CAAC;AAEDJ,EAAS,cAAc;"}
@@ -1,92 +0,0 @@
1
- import r, { useState as c, useRef as E, useEffect as C } from "react";
2
- import S from "classnames";
3
- import j from "./Tab.js";
4
- import q from "./TabList/TabList.js";
5
- import z from "./TabPanel/TabPanel.js";
6
- import { isMobileUA as G } from "../../utils/mobile.js";
7
- import l from "../Tabs/styles.module.scss";
8
- const H = 75, J = ({
9
- activeTab: w,
10
- children: m,
11
- className: M,
12
- color: f = "white",
13
- sticky: N = !0,
14
- testId: g,
15
- type: u = "normal",
16
- touchBehaviour: L = "swipe"
17
- }) => {
18
- const X = w !== void 0, [x, y] = c(0), [d, D] = c(0), [p, P] = c(0), [k, a] = c(0), [U, h] = c(null), R = G(), n = E(null), s = E(null), _ = E(null), T = (t, o) => {
19
- X || (y(t), t > o ? (a(0), I()) : t < o && (a(0), F()));
20
- }, F = () => {
21
- R && h("right");
22
- }, I = () => {
23
- R && h("left");
24
- }, $ = () => {
25
- h(null);
26
- }, e = X ? w : x;
27
- return C(() => {
28
- const t = (i) => {
29
- D(i.touches[0].clientX);
30
- }, o = (i) => {
31
- P(i.touches[0].clientX);
32
- const b = i.touches[0].clientX - d;
33
- e === 0 && b > 0 || e === r.Children.count(m) - 1 && b < 0 ? a(0) : a(b);
34
- }, A = () => {
35
- Math.abs(p - d) >= H && (p > d ? T(Math.max(0, e - 1), e) : T(Math.min(r.Children.count(m) - 1, e + 1), e)), a(0);
36
- };
37
- return L === "swipe" && n.current && (n.current.addEventListener("touchstart", t), n.current.addEventListener("touchmove", o), n.current.addEventListener("touchend", A)), () => {
38
- n.current && (n.current.removeEventListener("touchstart", t), n.current.removeEventListener("touchmove", o), n.current.removeEventListener("touchend", A));
39
- };
40
- }, [L, d, p, e]), C(() => {
41
- const t = () => {
42
- $();
43
- };
44
- return s.current && s.current.addEventListener("animationend", t), () => {
45
- s.current && s.current.removeEventListener("animationend", t);
46
- };
47
- }, []), /* @__PURE__ */ r.createElement("div", { className: M, "data-testid": g }, /* @__PURE__ */ r.createElement(
48
- "div",
49
- {
50
- ref: _,
51
- className: S(l["tab-list-wrapper"], {
52
- [l["tab-list-wrapper--sticky"]]: N
53
- })
54
- },
55
- /* @__PURE__ */ r.createElement(
56
- q,
57
- {
58
- onTabListClick: (t) => T(t, e),
59
- selectedTab: e,
60
- color: f,
61
- type: u
62
- },
63
- m
64
- ),
65
- /* @__PURE__ */ r.createElement(
66
- "div",
67
- {
68
- className: S(l["panel-wrapper"], l[`panel-wrapper--${f}`], {
69
- [l["panel-wrapper--framed"]]: u == "framed"
70
- })
71
- }
72
- )
73
- ), /* @__PURE__ */ r.createElement("div", { ref: n, style: { marginTop: u == "framed" ? "-40px" : "" } }, /* @__PURE__ */ r.createElement(
74
- z,
75
- {
76
- ref: s,
77
- color: f,
78
- type: u,
79
- isFirst: e == 0,
80
- translateX: k,
81
- animate: U
82
- },
83
- r.Children.toArray(m)[e]
84
- )));
85
- }, v = J;
86
- v.displayName = "Tabs";
87
- v.Tab = j;
88
- v.Tab.displayName = "Tabs.Tab";
89
- export {
90
- v as default
91
- };
92
- //# sourceMappingURL=Tabs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Tabs.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 { 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 TabsType = 'normal' | 'framed';\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 /** 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 /** Sets the visual type of the tabs */\n type?: TabsType;\n}\n\nconst swipeDistanceThreshold = 75;\n\nconst TabsRoot: React.FC<TabsProps> = ({\n activeTab,\n children,\n className,\n color = 'white',\n sticky = true,\n testId,\n type = 'normal',\n touchBehaviour = 'swipe',\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 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={className} 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 type={type}\n >\n {children}\n </TabList>\n <div\n className={classNames(styles['panel-wrapper'], styles[`panel-wrapper--${color}`], {\n [styles['panel-wrapper--framed']]: type == 'framed',\n })}\n ></div>\n </div>\n <div ref={tabsRef} style={{ marginTop: type == 'framed' ? '-40px' : '' }}>\n <TabPanel\n ref={tabPanelRef}\n color={color}\n type={type}\n isFirst={activeTabIndex == 0}\n translateX={translateX}\n animate={panelAnimation}\n >\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","sticky","testId","type","touchBehaviour","isControlled","uncontrolledValue","setUncontrolledValue","useState","touchStartX","setTouchStartX","touchEndX","setTouchEndX","translateX","setTranslateX","panelAnimation","setPanelAnimation","mobile","isMobileUA","tabsRef","useRef","tabPanelRef","tabListRef","onValueChange","newValue","oldValue","onLeftSwipe","onRightSwipe","resetAnimation","activeTabIndex","useEffect","handleTouchStart","event","handleTouchMove","newTranslateX","React","handleTouchEnd","handleAnimationEnd","classNames","styles","TabList","index","TabPanel","Tabs","Tab"],"mappings":";;;;;;;AAmCA,MAAMA,IAAyB,IAEzBC,IAAgC,CAAC;AAAA,EACrC,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,OAAAC,IAAQ;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AA,MAACK;AAAA,MAAA;AAAA,QACC,gBAAgB,CAACC,MAAkBlB,EAAckB,GAAOZ,CAAc;AAAA,QACtE,aAAaA;AAAA,QACb,OAAA7B;AAAA,QACA,MAAAG;AAAA,MAAA;AAAA,MAECL;AAAA,IACH;AAAA,IACAqC,gBAAAA,EAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAWG,EAAWC,EAAO,eAAe,GAAGA,EAAO,kBAAkBvC,CAAK,EAAE,GAAG;AAAA,UAChF,CAACuC,EAAO,uBAAuB,CAAC,GAAGpC,KAAQ;AAAA,QAAA,CAC5C;AAAA,MAAA;AAAA,IACF;AAAA,EAAA,GAEHgC,gBAAAA,EAAA,cAAC,OAAI,EAAA,KAAKhB,GAAS,OAAO,EAAE,WAAWhB,KAAQ,WAAW,UAAU,GAClE,EAAA,GAAAgC,gBAAAA,EAAA;AAAA,IAACO;AAAA,IAAA;AAAA,MACC,KAAKrB;AAAA,MACL,OAAArB;AAAA,MACA,MAAAG;AAAA,MACA,SAAS0B,KAAkB;AAAA,MAC3B,YAAAhB;AAAA,MACA,SAASE;AAAA,IAAA;AAAA,IAERoB,EAAM,SAAS,QAAQrC,CAAQ,EAAE+B,CAAc;AAAA,EAEpD,CAAA,CACF;AAEJ,GAKMc,IAAO/C;AACb+C,EAAK,cAAc;AACnBA,EAAK,MAAMC;AACXD,EAAK,IAAI,cAAc;"}
@@ -1,22 +0,0 @@
1
- import r from "react";
2
- import p from "classnames";
3
- import { AnalyticsId as g, IconSize as m } from "../../constants.js";
4
- import { palette as s } from "../../theme/palette.js";
5
- import { Icon as f } from "../Icon/Icon.js";
6
- import { LazyIcon as u } from "../LazyIcon/LazyIcon.js";
7
- import a from "../Tag/styles.module.scss";
8
- var h = /* @__PURE__ */ ((e) => (e.medium = "medium", e.large = "large", e))(h || {}), y = /* @__PURE__ */ ((e) => (e.normal = "normal", e.oncolor = "oncolor", e.emphasised = "emphasised", e))(y || {});
9
- const E = (e) => {
10
- const { children: l, size: c = "medium", color: o = "blueberry", svgIcon: t, variant: i = "normal", testId: n } = e, d = p(a.tag, a[`tag--${c}`], a[`tag--${o}`], {
11
- [a["tag--has-icon"]]: t,
12
- [a["tag--emphasised"]]: i == "emphasised"
13
- /* emphasised */
14
- });
15
- return /* @__PURE__ */ r.createElement("span", { className: d, "data-testid": n, "data-analyticsid": g.Tag }, t && (typeof t == "string" ? /* @__PURE__ */ r.createElement(u, { iconName: t, size: m.XXSmall, color: s[`${o}800`], className: a.tag__icon }) : /* @__PURE__ */ r.createElement(f, { svgIcon: t, size: m.XXSmall, color: s[`${o}800`], className: a.tag__icon })), l);
16
- };
17
- export {
18
- h as TagSize,
19
- y as TagVariant,
20
- E as default
21
- };
22
- //# sourceMappingURL=Tag.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Tag.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","React","AnalyticsId","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,SAAAK,gBAAAA,EAAA,cAAC,UAAK,WAAWH,GAAY,eAAaD,GAAQ,oBAAkBK,EAAY,IAC7E,GAAAP,MACE,OAAOA,KAAY,2CACjBQ,GAAS,EAAA,UAAUR,GAAS,MAAMS,EAAS,SAAS,OAAOC,EAAQ,GAAGX,CAAK,KAAK,GAAG,WAAWM,EAAO,UAAA,CAAW,IAEhHC,gBAAAA,EAAA,cAAAK,GAAA,EAAK,SAAAX,GAAkB,MAAMS,EAAS,SAAS,OAAOC,EAAQ,GAAGX,CAAK,KAAK,GAAG,WAAWM,EAAO,UAAW,CAAA,IAE/GR,CACH;AAEJ;"}
@@ -1,8 +0,0 @@
1
- import t from "react";
2
- import { AnalyticsId as l } from "../../constants.js";
3
- import a from "../TagList/styles.module.scss";
4
- const d = ({ children: e, testId: s }) => /* @__PURE__ */ t.createElement("ul", { className: a["tag-list"], "data-testid": s, "data-analyticsid": l.TagList }, t.Children.map(e, (i) => /* @__PURE__ */ t.createElement("li", { className: a["tag-list__item"] }, i)));
5
- export {
6
- d as default
7
- };
8
- //# sourceMappingURL=TagList.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TagList.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","React","styles","AnalyticsId","child"],"mappings":";;;AAYA,MAAMA,IAAuC,CAAC,EAAE,UAAAC,GAAU,QAAAC,QAEtDC,gBAAAA,EAAA,cAAC,MAAG,EAAA,WAAWC,EAAO,UAAU,GAAG,eAAaF,GAAQ,oBAAkBG,EAAY,QACnF,GAAAF,EAAM,SAAS,IAAIF,GAAU,CAC5BK,MAAAH,gBAAAA,EAAA,cAAC,MAAG,EAAA,WAAWC,EAAO,gBAAgB,EAAA,GAAIE,CAAM,CACjD,CACH;"}
@@ -1,105 +0,0 @@
1
- import o, { useState as A, useRef as ee, useEffect as B } from "react";
2
- import p from "classnames";
3
- import { FormMode as m, AnalyticsId as te, AVERAGE_CHARACTER_WIDTH_PX as re } from "../../constants.js";
4
- import { useUuid as ae } from "../../hooks/useUuid.js";
5
- import { getAriaDescribedBy as oe } from "../../utils/accessibility.js";
6
- import { uuid as ne } from "../../utils/uuid.js";
7
- import { ErrorWrapper as ie } from "../ErrorWrapper/ErrorWrapper.js";
8
- import { renderLabel as se } from "../Label/Label.js";
9
- import ce from "../MaxCharacters/MaxCharacters.js";
10
- import t from "../Textarea/styles.module.scss";
11
- const de = (a) => `calc(${a * re}px + 2rem + 16px + 4px)`, le = o.forwardRef((a, x) => {
12
- const {
13
- maxCharacters: n,
14
- maxText: h,
15
- width: f,
16
- testId: N,
17
- defaultValue: s,
18
- marginBottom: M,
19
- transparent: $,
20
- mode: i = m.onwhite,
21
- label: k,
22
- textareaId: b = ne(),
23
- minRows: g = 3,
24
- maxRows: c = 10,
25
- grow: w,
26
- error: D,
27
- errorText: C,
28
- errorTextId: L,
29
- autoFocus: S,
30
- disabled: F,
31
- name: U,
32
- autoComplete: T = "off",
33
- placeholder: V,
34
- readOnly: q,
35
- required: z,
36
- onChange: E,
37
- ...G
38
- } = a, [O, W] = A(g), [y, R] = A(s || ""), d = ee(null), v = ae(L);
39
- B(() => {
40
- R(s || "");
41
- }, [s]);
42
- const _ = (e) => {
43
- const l = e.rows;
44
- e.rows = g;
45
- const r = Math.floor((e.scrollHeight - 16) / 28);
46
- r === l && (e.rows = r), r >= c && (e.rows = c, e.scrollTop = e.scrollHeight), r < c ? W(r) : W(c);
47
- }, P = i === m.ondark, X = i === m.onblueberry, j = !!n && y.toString().length > n, H = i === m.oninvalid || !!C || !!D || j, J = p(t.textarea, {
48
- [t["textarea--gutterBottom"]]: M
49
- }), K = p(t["input-container"], {
50
- [t["input-container--transparent"]]: $,
51
- [t["input-container--on-blueberry"]]: X,
52
- [t["input-container--on-dark"]]: P,
53
- [t["input-container--invalid"]]: H,
54
- [t["input-container--disabled"]]: a.disabled
55
- }), Q = p(t["input-container__input"], {
56
- [t["input-container__input--disabled"]]: a.disabled
57
- });
58
- B(() => {
59
- var e, u, l;
60
- if (w && ((e = d.current) != null && e.children) && ((u = d.current) != null && u.children[0])) {
61
- const r = (l = d.current) == null ? void 0 : l.children[0];
62
- _(r);
63
- }
64
- }, []);
65
- const Y = (e) => {
66
- w && _(e.target), R(e.target.value);
67
- }, Z = (e) => {
68
- E && E(e), Y(e);
69
- }, I = f ? de(f) : void 0;
70
- return /* @__PURE__ */ o.createElement(ie, { errorText: C, errorTextId: v }, /* @__PURE__ */ o.createElement("div", { "data-testid": N, "data-analyticsid": te.Textarea, className: J }, se(k, b, i), /* @__PURE__ */ o.createElement("div", { className: K, ref: d, style: { maxWidth: I } }, /* @__PURE__ */ o.createElement(
71
- "textarea",
72
- {
73
- rows: O,
74
- defaultValue: s,
75
- id: b,
76
- className: Q,
77
- ref: x,
78
- "aria-describedby": oe(a, v),
79
- "aria-invalid": !!H,
80
- autoFocus: S,
81
- disabled: F,
82
- name: U,
83
- autoComplete: T || void 0,
84
- placeholder: V,
85
- readOnly: q,
86
- required: z,
87
- onChange: Z,
88
- ...G
89
- }
90
- )), n && /* @__PURE__ */ o.createElement(
91
- ce,
92
- {
93
- maxCharacters: n,
94
- length: y.toString().length,
95
- maxText: h,
96
- mode: i,
97
- maxWidth: I
98
- }
99
- )));
100
- });
101
- le.displayName = "Textarea";
102
- export {
103
- le as default
104
- };
105
- //# sourceMappingURL=Textarea.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Textarea.js","sources":["../../../src/components/Textarea/Textarea.tsx"],"sourcesContent":["import React, { useState, useRef, useEffect } from 'react';\n\nimport cn from 'classnames';\n\nimport { AnalyticsId, AVERAGE_CHARACTER_WIDTH_PX, FormMode } from '../../constants';\nimport { useUuid } from '../../hooks/useUuid';\nimport { getAriaDescribedBy } from '../../utils/accessibility';\nimport { uuid } from '../../utils/uuid';\nimport ErrorWrapper from '../ErrorWrapper';\nimport { renderLabel } from '../Label';\nimport MaxCharacters from '../MaxCharacters/MaxCharacters';\n\nimport styles from './styles.module.scss';\n\nexport interface TextareaProps\n extends Pick<\n React.InputHTMLAttributes<HTMLTextAreaElement>,\n | 'aria-describedby'\n | 'autoFocus'\n | 'disabled'\n | 'name'\n | 'autoComplete'\n | 'placeholder'\n | 'readOnly'\n | 'required'\n | 'defaultValue'\n | 'onChange'\n > {\n /** max character limit in textarea */\n maxCharacters?: number;\n /** The text is displayed in the end of the text-counter */\n maxText?: string;\n /** Width of textarea in characters (approximate) */\n width?: number;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** If true, the component will have a bottom margin. */\n marginBottom?: boolean;\n /** If true, the component will be transparent. */\n transparent?: boolean;\n /** Changes the visuals of the textarea */\n mode?: keyof typeof FormMode;\n /** Label of the input */\n label?: React.ReactNode;\n /** id of the textarea */\n textareaId?: string;\n /** max rows */\n maxRows?: number;\n /** min rows */\n minRows?: number;\n /** auto-grows until maxRows */\n grow?: boolean;\n /** Activates Error style for the input */\n error?: boolean;\n /** Error text to show above the component */\n errorText?: string;\n /** Error text id */\n errorTextId?: string;\n}\n\nconst getTextareaMaxWidth = (characters: number): string => {\n const paddingWidth = '2rem';\n const scrollbarWidth = '16px';\n const borderWidth = '4px';\n\n return `calc(${characters * AVERAGE_CHARACTER_WIDTH_PX}px + ${paddingWidth} + ${scrollbarWidth} + ${borderWidth})`;\n};\n\nconst Textarea = React.forwardRef((props: TextareaProps, ref: React.Ref<HTMLTextAreaElement>) => {\n const {\n maxCharacters,\n maxText,\n width,\n testId,\n defaultValue,\n marginBottom: gutterBottom,\n transparent,\n mode = FormMode.onwhite,\n label,\n textareaId = uuid(),\n minRows = 3,\n maxRows = 10,\n grow,\n error,\n errorText,\n errorTextId,\n autoFocus,\n disabled,\n name,\n autoComplete = 'off',\n placeholder,\n readOnly,\n required,\n onChange,\n ...rest\n } = props;\n\n const [rows, setRows] = useState(minRows);\n const [textareaInput, setTextareaInput] = useState(defaultValue || '');\n const referanse = useRef<HTMLDivElement>(null);\n const errorTextUuid = useUuid(errorTextId);\n\n useEffect(() => {\n setTextareaInput(defaultValue || '');\n }, [defaultValue]);\n\n const resizeHeight = (target: HTMLTextAreaElement): void => {\n const textareaLineHeight = 28;\n\n const previousRows = target.rows;\n target.rows = minRows; // reset number of rows in textarea\n\n const currentRows = Math.floor((target.scrollHeight - 16) / textareaLineHeight); // scrollHeight - 16px of padding to calculate the rows\n\n if (currentRows === previousRows) {\n target.rows = currentRows;\n }\n\n if (currentRows >= maxRows) {\n target.rows = maxRows;\n target.scrollTop = target.scrollHeight;\n }\n\n if (currentRows < maxRows) {\n setRows(currentRows);\n } else {\n setRows(maxRows);\n }\n };\n\n const onDark = mode === FormMode.ondark;\n const onBlueberry = mode === FormMode.onblueberry;\n const maxCharactersExceeded = !!maxCharacters && textareaInput.toString().length > maxCharacters;\n const onError = mode === FormMode.oninvalid || !!errorText || !!error || maxCharactersExceeded;\n\n const textareaWrapperClass = cn(styles.textarea, {\n [styles['textarea--gutterBottom']]: gutterBottom,\n });\n\n const contentWrapperClass = cn(styles['input-container'], {\n [styles['input-container--transparent']]: transparent,\n [styles['input-container--on-blueberry']]: onBlueberry,\n [styles['input-container--on-dark']]: onDark,\n [styles['input-container--invalid']]: onError,\n [styles['input-container--disabled']]: props.disabled,\n });\n\n const textareaClass = cn(styles['input-container__input'], {\n [styles[`input-container__input--disabled`]]: props.disabled,\n });\n\n useEffect(() => {\n if (grow && referanse.current?.children && referanse.current?.children[0]) {\n const textarea = referanse.current?.children[0] as HTMLTextAreaElement;\n resizeHeight(textarea);\n }\n }, []);\n\n const handleChange = (e: React.ChangeEvent<HTMLTextAreaElement>): void => {\n if (grow) {\n resizeHeight(e.target);\n }\n setTextareaInput(e.target.value);\n };\n\n const onChangeHandler = (e: React.ChangeEvent<HTMLTextAreaElement>): void => {\n if (onChange) {\n onChange(e);\n }\n handleChange(e);\n };\n\n const maxWidth = width ? getTextareaMaxWidth(width) : undefined;\n\n return (\n <ErrorWrapper errorText={errorText} errorTextId={errorTextUuid}>\n <div data-testid={testId} data-analyticsid={AnalyticsId.Textarea} className={textareaWrapperClass}>\n {renderLabel(label, textareaId, mode as FormMode)}\n <div className={contentWrapperClass} ref={referanse} style={{ maxWidth }}>\n <textarea\n rows={rows}\n defaultValue={defaultValue}\n id={textareaId}\n className={textareaClass}\n ref={ref}\n aria-describedby={getAriaDescribedBy(props, errorTextUuid)}\n aria-invalid={!!onError}\n // eslint-disable-next-line jsx-a11y/no-autofocus\n autoFocus={autoFocus}\n disabled={disabled}\n name={name}\n autoComplete={autoComplete ? autoComplete : undefined}\n placeholder={placeholder}\n readOnly={readOnly}\n required={required}\n onChange={onChangeHandler}\n {...rest}\n />\n </div>\n {maxCharacters && (\n <MaxCharacters\n maxCharacters={maxCharacters}\n length={textareaInput.toString().length}\n maxText={maxText}\n mode={mode}\n maxWidth={maxWidth}\n />\n )}\n </div>\n </ErrorWrapper>\n );\n});\n\nTextarea.displayName = 'Textarea';\n\nexport default Textarea;\n"],"names":["getTextareaMaxWidth","characters","AVERAGE_CHARACTER_WIDTH_PX","Textarea","React","props","ref","maxCharacters","maxText","width","testId","defaultValue","gutterBottom","transparent","mode","FormMode","label","textareaId","uuid","minRows","maxRows","grow","error","errorText","errorTextId","autoFocus","disabled","name","autoComplete","placeholder","readOnly","required","onChange","rest","rows","setRows","useState","textareaInput","setTextareaInput","referanse","useRef","errorTextUuid","useUuid","useEffect","resizeHeight","target","previousRows","currentRows","onDark","onBlueberry","maxCharactersExceeded","onError","textareaWrapperClass","cn","styles","contentWrapperClass","textareaClass","_a","_b","textarea","_c","handleChange","onChangeHandler","maxWidth","ErrorWrapper","AnalyticsId","renderLabel","getAriaDescribedBy","MaxCharacters"],"mappings":";;;;;;;;;;AA4DA,MAA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tD,SACGL,gBAAAA,EAAA,cAAA4D,IAAA,EAAa,WAAAzC,GAAsB,aAAakB,KAC/CrC,gBAAAA,EAAA,cAAC,OAAI,EAAA,eAAaM,GAAQ,oBAAkBuD,GAAY,UAAU,WAAWb,EAAA,GAC1Ec,GAAYlD,GAAOC,GAAYH,CAAgB,GAChDV,gBAAAA,EAAA,cAAC,OAAI,EAAA,WAAWmD,GAAqB,KAAKhB,GAAW,OAAO,EAAE,UAAAwB,EAC5D,EAAA,GAAA3D,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAA8B;AAAA,MACA,cAAAvB;AAAA,MACA,IAAIM;AAAA,MACJ,WAAWuC;AAAA,MACX,KAAAlD;AAAA,MACA,oBAAkB6D,GAAmB9D,GAAOoC,CAAa;AAAA,MACzD,gBAAc,CAAC,CAACU;AAAA,MAEhB,WAAA1B;AAAA,MACA,UAAAC;AAAA,MACA,MAAAC;AAAA,MACA,cAAcC,KAA8B;AAAA,MAC5C,aAAAC;AAAA,MACA,UAAAC;AAAA,MACA,UAAAC;AAAA,MACA,UAAU+B;AAAA,MACT,GAAG7B;AAAA,IAAA;AAAA,EAAA,CAER,GACC1B,KACCH,gBAAAA,EAAA;AAAA,IAACgE;AAAA,IAAA;AAAA,MACC,eAAA7D;AAAA,MACA,QAAQ8B,EAAc,SAAA,EAAW;AAAA,MACjC,SAAA7B;AAAA,MACA,MAAAM;AAAA,MACA,UAAAiD;AAAA,IAAA;AAAA,EAGN,CAAA,CACF;AAEJ,CAAC;AAED5D,GAAS,cAAc;"}
@@ -1,67 +0,0 @@
1
- import t from "react";
2
- import p from "classnames";
3
- import { AnalyticsId as C, IconSize as R } from "../../constants.js";
4
- import { useHover as k } from "../../hooks/useHover.js";
5
- import { mergeRefs as x } from "../../utils/refs.js";
6
- import e from "../Tile/styles.module.scss";
7
- const h = t.forwardRef((s, r) => {
8
- const { children: a, className: c, htmlMarkup: o = "span", highlighted: m, compact: l } = s, n = p(
9
- e.tile__title,
10
- {
11
- [e["tile__title--highlighted"]]: m,
12
- [e["tile__title--compact"]]: l
13
- },
14
- c
15
- ), i = o;
16
- return /* @__PURE__ */ t.createElement(i, { className: n, ref: r }, a);
17
- });
18
- h.displayName = "Title";
19
- const _ = t.forwardRef((s, r) => {
20
- const {
21
- children: a,
22
- icon: c,
23
- title: o,
24
- className: m = "",
25
- description: l,
26
- fixed: n = !1,
27
- highlighted: i = !1,
28
- testId: g,
29
- target: f,
30
- rel: N,
31
- href: u,
32
- onClick: T
33
- } = s, { hoverRef: E, isHovered: v } = k(), d = !l, w = p(
34
- e.tile,
35
- {
36
- [e["tile--fixed"]]: n,
37
- [e["tile--compact"]]: d,
38
- [e["tile--highlighted"]]: i
39
- },
40
- m
41
- ), y = p(e["title-wrapper"], {
42
- [e["title-wrapper--compact"]]: d
43
- });
44
- return /* @__PURE__ */ t.createElement(
45
- "a",
46
- {
47
- ref: x([r, E]),
48
- href: u,
49
- target: f,
50
- rel: f === "_blank" ? "noopener noreferrer" : N,
51
- className: w,
52
- "data-testid": g,
53
- "data-analyticsid": C.Tile,
54
- onClick: T
55
- },
56
- /* @__PURE__ */ t.createElement("div", { className: y }, t.cloneElement(c, { size: R.Medium, isHovered: v, color: i ? "white" : "black" }), t.cloneElement(o, { highlighted: i, compact: d })),
57
- l && /* @__PURE__ */ t.createElement("p", { className: e.tile__description }, l),
58
- a && /* @__PURE__ */ t.createElement("div", { className: e.tile__children }, a)
59
- );
60
- });
61
- _.displayName = "Tile";
62
- _.Title = h;
63
- export {
64
- _ as Tile,
65
- _ as default
66
- };
67
- //# sourceMappingURL=Tile.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Tile.js","sources":["../../../src/components/Tile/Tile.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { TitleTags } from './../Title/Title';\nimport { AnalyticsId } from '../../constants';\nimport { useHover } from '../../hooks/useHover';\nimport { mergeRefs } from '../../utils/refs';\nimport { IconSize } from '../Icon';\n\nimport tileStyles from './styles.module.scss';\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 data-testid attribute. */\n testId?: string;\n}\n\ninterface TileTitleProps {\n children: React.ReactNode;\n className?: string;\n htmlMarkup?: TitleTags;\n highlighted?: boolean;\n compact?: boolean;\n}\n\nexport interface TileCompound extends React.ForwardRefExoticComponent<TileProps & React.RefAttributes<HTMLAnchorElement>> {\n Title: React.ForwardRefExoticComponent<TileTitleProps & React.RefAttributes<HTMLHeadingElement>>;\n}\n\nconst Title = React.forwardRef<HTMLHeadingElement, TileTitleProps>((props, ref) => {\n const { children, className, htmlMarkup = 'span', highlighted, compact } = props;\n const titleClasses = classNames(\n tileStyles['tile__title'],\n {\n [tileStyles['tile__title--highlighted']]: highlighted,\n [tileStyles['tile__title--compact']]: compact,\n },\n className\n );\n const CustomTag = htmlMarkup;\n\n return (\n <CustomTag className={titleClasses} ref={ref}>\n {children}\n </CustomTag>\n );\n});\n\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 href,\n onClick,\n } = props;\n const { hoverRef, isHovered } = useHover<HTMLAnchorElement>();\n const compact = !description;\n const tileClasses = classNames(\n tileStyles.tile,\n {\n [tileStyles['tile--fixed']]: fixed,\n [tileStyles['tile--compact']]: compact,\n [tileStyles['tile--highlighted']]: highlighted,\n },\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: IconSize.Medium, isHovered, color: highlighted ? 'white' : 'black' })}\n {React.cloneElement(title, { highlighted: highlighted, compact: compact })}\n </div>\n {description && <p className={tileStyles.tile__description}>{description}</p>}\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","compact","titleClasses","classNames","tileStyles","CustomTag","Tile","icon","title","description","fixed","testId","target","rel","href","onClick","hoverRef","isHovered","useHover","tileClasses","tileTitleWrapperClasses","mergeRefs","AnalyticsId","IconSize"],"mappings":";;;;;;AA0CA,MAAMA,IAAQC,EAAM,WAA+C,CAACC,GAAOC,MAAQ;AACjF,QAAM,EAAE,UAAAC,GAAU,WAAAC,GAAW,YAAAC,IAAa,QAAQ,aAAAC,GAAa,SAAAC,EAAY,IAAAN,GACrEO,IAAeC;AAAA,IACnBC,EAAW;AAAA,IACX;AAAA,MACE,CAACA,EAAW,0BAA0B,CAAC,GAAGJ;AAAA,MAC1C,CAACI,EAAW,sBAAsB,CAAC,GAAGH;AAAA,IACxC;AAAA,IACAH;AAAA,EAAA,GAEIO,IAAYN;AAElB,SACGL,gBAAAA,EAAA,cAAAW,GAAA,EAAU,WAAWH,GAAc,KAAAN,KACjCC,CACH;AAEJ,CAAC;AAEDJ,EAAM,cAAc;AAEb,MAAMa,IAAOZ,EAAM,WAAyC,CAACC,GAAOC,MAAQ;AAC3E,QAAA;AAAA,IACJ,UAAAC;AAAA,IACA,MAAAU;AAAA,IACA,OA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AA,cAAA,OAAA,EAAI,WAAWU,EAAW,kBAAiBP,CAAS;AAAA,EAAA;AAGxE,CAAC;AAEDS,EAAK,cAAc;AACnBA,EAAK,QAAQb;"}
@@ -1,25 +0,0 @@
1
- import a from "react";
2
- import u from "classnames";
3
- import { AnalyticsId as y } from "../../constants.js";
4
- import t from "../Title/styles.module.scss";
5
- const $ = a.forwardRef(function(r, o) {
6
- const { id: m, children: n, className: s, htmlMarkup: c = "h1", appearance: e = "title1", margin: i = 0, testId: p } = r, d = u(
7
- t.title,
8
- {
9
- [t["title--feature"]]: e === "titleFeature",
10
- [t["title--title1"]]: e === "title1",
11
- [t["title--title2"]]: e === "title2",
12
- [t["title--title3"]]: e === "title3",
13
- [t["title--title4"]]: e === "title4",
14
- [t["title--title5"]]: e === "title5"
15
- },
16
- s
17
- ), f = c, g = T(i) ? { marginTop: `${i.marginTop}rem`, marginBottom: `${i.marginBottom}rem` } : { marginTop: `${i}rem`, marginBottom: `${i}rem` };
18
- return /* @__PURE__ */ a.createElement(f, { id: m, className: d, style: g, ref: o, "data-testid": p, "data-analyticsid": y.Title }, n);
19
- }), T = (l) => Object.prototype.hasOwnProperty.call(l, "marginTop") && Object.prototype.hasOwnProperty.call(l, "marginBottom");
20
- export {
21
- $ as Title,
22
- $ as default,
23
- T as instanceOfTitleMargin
24
- };
25
- //# sourceMappingURL=Title.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Title.js","sources":["../../../src/components/Title/Title.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { AnalyticsId } from '../../constants';\n\nimport titleStyles from './styles.module.scss';\n\nexport type TitleTags = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'span';\nexport type TitleAppearances = 'titleFeature' | 'title1' | 'title2' | 'title3' | 'title4' | 'title5';\n\nexport interface TitleProps {\n children: React.ReactNode;\n /** Gives a unique id to the title */\n id?: string;\n /** Adds custom classes to the element. */\n className?: string;\n /** Adds top and bottom margin in rem. */\n margin?: number | TitleMargin;\n /** Changes the underlying element of the title. */\n htmlMarkup?: TitleTags;\n /** Changes the appearance of the title. */\n appearance?: TitleAppearances;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nexport const Title = React.forwardRef(function TitleForwardedRef(props: TitleProps, ref: React.ForwardedRef<HTMLHeadingElement>) {\n const { id, children, className, htmlMarkup = 'h1', appearance = 'title1', margin = 0, testId } = props;\n const titleClasses = classNames(\n titleStyles.title,\n {\n [titleStyles['title--feature']]: appearance === 'titleFeature',\n [titleStyles['title--title1']]: appearance === 'title1',\n [titleStyles['title--title2']]: appearance === 'title2',\n [titleStyles['title--title3']]: appearance === 'title3',\n [titleStyles['title--title4']]: appearance === 'title4',\n [titleStyles['title--title5']]: appearance === 'title5',\n },\n className\n );\n const CustomTag = htmlMarkup;\n\n const inlineStyle = instanceOfTitleMargin(margin)\n ? { marginTop: `${margin.marginTop}rem`, marginBottom: `${margin.marginBottom}rem` }\n : { marginTop: `${margin}rem`, marginBottom: `${margin}rem` };\n\n return (\n <CustomTag id={id} className={titleClasses} style={inlineStyle} ref={ref} data-testid={testId} data-analyticsid={AnalyticsId.Title}>\n {children}\n </CustomTag>\n );\n});\n\nexport interface TitleMargin {\n marginTop: number;\n marginBottom: number;\n}\n\nexport const instanceOfTitleMargin = (margin: unknown): margin is TitleMargin => {\n return Object.prototype.hasOwnProperty.call(margin, 'marginTop') && Object.prototype.hasOwnProperty.call(margin, 'marginBottom');\n};\n\nexport default Title;\n"],"names":["Title","React","props","ref","id","children","className","htmlMarkup","appearance","margin","testId","titleClasses","classNames","titleStyles","CustomTag","inlineStyle","instanceOfTitleMargin","AnalyticsId"],"mappings":";;;;AA2BO,MAAMA,IAAQC,EAAM,WAAW,SAA2BC,GAAmBC,GAA6C;AACzH,QAAA,EAAE,IAAAC,GAAI,UAAAC,GAAU,WAAAC,GAAW,YAAAC,IAAa,MAAM,YAAAC,IAAa,UAAU,QAAAC,IAAS,GAAG,QAAAC,EAAA,IAAWR,GAC5FS,IAAeC;AAAA,IACnBC,EAAY;AAAA,IACZ;AAAA,MACE,CAACA,EAAY,gBAAgB,CAAC,GAAGL,MAAe;AAAA,MAChD,CAACK,EAAY,eAAe,CAAC,GAAGL,MAAe;AAAA,MAC/C,CAACK,EAAY,eAAe,CAAC,GAAGL,MAAe;AAAA,MAC/C,CAACK,EAAY,eAAe,CAAC,GAAGL,MAAe;AAAA,MAC/C,CAACK,EAAY,eAAe,CAAC,GAAGL,MAAe;AAAA,MAC/C,CAACK,EAAY,eAAe,CAAC,GAAGL,MAAe;AAAA,IACjD;AAAA,IACAF;AAAA,EAAA,GAEIQ,IAAYP,GAEZQ,IAAcC,EAAsBP,CAAM,IAC5C,EAAE,WAAW,GAAGA,EAAO,SAAS,OAAO,cAAc,GAAGA,EAAO,YAAY,MAC3E,IAAA,EAAE,WAAW,GAAGA,CAAM,OAAO,cAAc,GAAGA,CAAM,MAAM;AAE9D,SACGR,gBAAAA,EAAA,cAAAa,GAAA,EAAU,IAAAV,GAAQ,WAAWO,GAAc,OAAOI,GAAa,KAAAZ,GAAU,eAAaO,GAAQ,oBAAkBO,EAAY,SAC1HZ,CACH;AAEJ,CAAC,GAOYW,IAAwB,CAACP,MAC7B,OAAO,UAAU,eAAe,KAAKA,GAAQ,WAAW,KAAK,OAAO,UAAU,eAAe,KAAKA,GAAQ,cAAc;"}
@@ -1,92 +0,0 @@
1
- import t, { useState as x, useEffect as h } from "react";
2
- import n from "classnames";
3
- import { AnalyticsId as M } from "../../constants.js";
4
- import { usePseudoClasses as U } from "../../hooks/usePseudoClasses.js";
5
- import { useUuid as i } from "../../hooks/useUuid.js";
6
- import e from "../Toggle/styles.module.scss";
7
- /* empty css */
8
- import { useAnimate as q } from "../../node_modules/framer-motion/dist/es/animation/hooks/use-animate.js";
9
- var z = /* @__PURE__ */ ((r) => (r.left = "left", r.right = "right", r))(z || {}), G = /* @__PURE__ */ ((r) => (r.onwhite = "onwhite", r.onneutral = "onneutral", r.onblueberry = "onblueberry", r))(G || {});
10
- const P = ({
11
- checked: r = !1,
12
- label: p,
13
- onChange: u,
14
- onColor: f = "onwhite",
15
- subLabel: d,
16
- togglePosition: l = "left",
17
- testId: A
18
- }) => {
19
- const [o, v] = x(r), [s, b] = x(!1), [C, g] = q(), S = i(), w = i(), _ = i(), N = i(), E = i(), { refObject: O, isHovered: L, isActive: m } = U(C), c = L && !s, y = f === "onwhite";
20
- h(() => {
21
- if (s) {
22
- const a = setTimeout(() => b(!1), 300);
23
- return () => clearTimeout(a);
24
- }
25
- }, [s]), h(() => {
26
- v(r);
27
- }, [r]), h(() => {
28
- g("#" + w, { background: T() }, { duration: 0.2, ease: "easeInOut" }), g(
29
- "#" + _,
30
- { background: o ? "var(--color-action-graphics-ondark)" : "var(--core-color-neutral-700)" },
31
- { duration: 0.2, ease: "easeInOut" }
32
- ), g("#" + _, { x: c ? 9 : o ? 18 : 0 }, { duration: 0.2, ease: "easeInOut" }), g("svg", { opacity: o ? 1 : 0 }, { duration: 0.2, ease: "easeInOut" });
33
- }, [o, c, m]);
34
- const T = () => o && m ? "var(--core-color-blueberry-800)" : o ? c ? "var(--color-action-graphics-onlight-hover)" : "var(--color-action-graphics-onlight)" : y && m ? "var(--core-color-neutral-400)" : y ? c ? "var(--core-color-neutral-200)" : "var(--core-color-neutral-50)" : m ? "var(--core-color-neutral-200)" : c ? "var(--core-color-neutral-50)" : "var(--core-color-white)", j = (a) => {
35
- v(a.target.checked), b(!0), u == null || u(a);
36
- }, B = n(e["toggle-container"]), D = n(e["toggle-container__row"], {
37
- [e["toggle-container__row--right"]]: l === "right"
38
- /* right */
39
- }), F = n(e["toggle-container__sublabel"], {
40
- [e["toggle-container__sublabel--toggle-right"]]: l === "right"
41
- /* right */
42
- }), H = n(e["toggle-container__toggle"], {
43
- [e["toggle-container__toggle--ignore-hover"]]: s,
44
- [e["toggle-container__toggle--on-white"]]: f === "onwhite"
45
- /* onwhite */
46
- }), R = n(e["toggle-container__toggle__dot"], {
47
- [e["toggle-container__toggle__dot--ignore-hover"]]: s
48
- }), I = () => /* @__PURE__ */ t.createElement("label", { ref: O, className: e["toggle-container__toggle-group"] }, /* @__PURE__ */ t.createElement(
49
- "input",
50
- {
51
- id: S,
52
- type: "checkbox",
53
- checked: o,
54
- onChange: j,
55
- className: e["toggle-container__input"],
56
- "aria-label": p.map((a) => a.text).join(" "),
57
- "aria-describedby": d ? E : void 0
58
- }
59
- ), /* @__PURE__ */ t.createElement("span", { id: w, className: H, "aria-hidden": "true" }, /* @__PURE__ */ t.createElement("span", { id: _, className: R, "aria-hidden": "true" }, /* @__PURE__ */ t.createElement(
60
- "svg",
61
- {
62
- width: "17",
63
- height: "13",
64
- viewBox: "0 0 17 13",
65
- xmlns: "http://www.w3.org/2000/svg",
66
- className: e["toggle-container__toggle__dot__icon"]
67
- },
68
- /* @__PURE__ */ t.createElement("path", { d: "M15 2L6.80839 10.548L2 5.53145", fill: "none", strokeWidth: "3" })
69
- )))), k = () => /* @__PURE__ */ t.createElement(
70
- "span",
71
- {
72
- id: N,
73
- className: n(e["toggle-container__label"], {
74
- [e["toggle-container__label--toggle-right"]]: l === "right"
75
- /* right */
76
- })
77
- },
78
- p.map((a) => {
79
- const W = n({
80
- [e["toggle-container__label__text--semibold"]]: a.type === "semibold"
81
- });
82
- return /* @__PURE__ */ t.createElement("span", { key: N + a.text, className: W }, a.text);
83
- })
84
- );
85
- return /* @__PURE__ */ t.createElement("div", { className: B, "data-testid": A, "data-analyticsid": M.Toggle }, /* @__PURE__ */ t.createElement("div", { className: D }, l === "left" && /* @__PURE__ */ t.createElement(t.Fragment, null, I(), k()), l === "right" && /* @__PURE__ */ t.createElement(t.Fragment, null, k(), I())), d && /* @__PURE__ */ t.createElement("div", { id: E, className: F }, d));
86
- };
87
- export {
88
- G as ToggleOnColor,
89
- z as TogglePosition,
90
- P as default
91
- };
92
- //# sourceMappingURL=Toggle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Toggle.js","sources":["../../../src/components/Toggle/Toggle.tsx"],"sourcesContent":["import React, { useState, useEffect } from 'react';\n\nimport classNames from 'classnames';\nimport { useAnimate } from 'framer-motion';\n\nimport { AnalyticsId } from '../../constants';\nimport { usePseudoClasses } from '../../hooks/usePseudoClasses';\nimport { useUuid } from '../../hooks/useUuid';\n\nimport styles from './styles.module.scss';\nimport '../../scss/supernova/styles/colors.css';\n\nexport type LabelText = {\n text: string;\n type?: 'semibold' | 'normal';\n};\n\nexport enum TogglePosition {\n left = 'left',\n right = 'right',\n}\n\nexport enum ToggleOnColor {\n onwhite = 'onwhite',\n onneutral = 'onneutral',\n onblueberry = 'onblueberry',\n}\n\nexport interface ToggleProps extends Pick<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> {\n /** Determines if the Toggle is checked */\n checked?: boolean;\n /** Sets the label of the Toggle */\n label: LabelText[];\n /** Defines the color of the toggle */\n onColor?: keyof typeof ToggleOnColor;\n /** Sets the sublabel of the Toggle */\n subLabel?: string;\n /** Sets the position of the toggle relative to the label */\n togglePosition?: keyof typeof TogglePosition;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nconst Toggle: React.FC<ToggleProps> = ({\n checked = false,\n label,\n onChange,\n onColor = ToggleOnColor.onwhite,\n subLabel,\n togglePosition = TogglePosition.left,\n testId,\n}: ToggleProps) => {\n const [checkedState, setCheckedState] = useState(checked);\n const [showToggleAnimation, setShowToggleAnimation] = useState(false);\n const [scope, animate] = useAnimate();\n const inputId = useUuid();\n const toggleId = useUuid();\n const toggleDotId = useUuid();\n const labelId = useUuid();\n const subLabelId = useUuid();\n const { refObject, isHovered, isActive } = usePseudoClasses<HTMLLabelElement>(scope);\n const showHoveredStyling = isHovered && !showToggleAnimation;\n const isOnWhite = onColor === ToggleOnColor.onwhite;\n\n useEffect(() => {\n if (showToggleAnimation) {\n const timer = setTimeout(() => setShowToggleAnimation(false), 300);\n return (): void => clearTimeout(timer);\n }\n }, [showToggleAnimation]);\n\n useEffect(() => {\n setCheckedState(checked);\n }, [checked]);\n\n useEffect(() => {\n animate('#' + toggleId, { background: getBackgroundColor() }, { duration: 0.2, ease: 'easeInOut' });\n animate(\n '#' + toggleDotId,\n { background: checkedState ? 'var(--color-action-graphics-ondark)' : 'var(--core-color-neutral-700)' },\n { duration: 0.2, ease: 'easeInOut' }\n );\n animate('#' + toggleDotId, { x: showHoveredStyling ? 9 : checkedState ? 18 : 0 }, { duration: 0.2, ease: 'easeInOut' });\n animate('svg', { opacity: checkedState ? 1 : 0 }, { duration: 0.2, ease: 'easeInOut' });\n }, [checkedState, showHoveredStyling, isActive]);\n\n const getBackgroundColor = (): string => {\n if (checkedState && isActive) {\n return 'var(--core-color-blueberry-800)';\n } else if (checkedState) {\n return showHoveredStyling ? 'var(--color-action-graphics-onlight-hover)' : 'var(--color-action-graphics-onlight)';\n } else if (isOnWhite && isActive) {\n return 'var(--core-color-neutral-400)';\n } else if (isOnWhite) {\n return showHoveredStyling ? 'var(--core-color-neutral-200)' : 'var(--core-color-neutral-50)';\n } else if (isActive) {\n return 'var(--core-color-neutral-200)';\n } else {\n return showHoveredStyling ? 'var(--core-color-neutral-50)' : 'var(--core-color-white)';\n }\n };\n\n const handleChange = (event: React.ChangeEvent<HTMLInputElement>): void => {\n setCheckedState(event.target.checked);\n setShowToggleAnimation(true);\n onChange?.(event);\n };\n\n const toggleContainerClassNames = classNames(styles['toggle-container']);\n\n const toggleRowClassNames = classNames(styles['toggle-container__row'], {\n [styles['toggle-container__row--right']]: togglePosition === TogglePosition.right,\n });\n\n const subLabelClassNames = classNames(styles['toggle-container__sublabel'], {\n [styles['toggle-container__sublabel--toggle-right']]: togglePosition === TogglePosition.right,\n });\n\n const toggleClassNames = classNames(styles['toggle-container__toggle'], {\n [styles['toggle-container__toggle--ignore-hover']]: showToggleAnimation,\n [styles['toggle-container__toggle--on-white']]: onColor === ToggleOnColor.onwhite,\n });\n\n const toggleDotClassNames = classNames(styles['toggle-container__toggle__dot'], {\n [styles['toggle-container__toggle__dot--ignore-hover']]: showToggleAnimation,\n });\n\n const renderToggle = (): React.ReactElement => (\n <label ref={refObject} className={styles['toggle-container__toggle-group']}>\n <input\n id={inputId}\n type=\"checkbox\"\n checked={checkedState}\n onChange={handleChange}\n className={styles['toggle-container__input']}\n aria-label={label.map(l => l.text).join(' ')}\n aria-describedby={subLabel ? subLabelId : undefined}\n />\n <span id={toggleId} className={toggleClassNames} aria-hidden=\"true\">\n <span id={toggleDotId} className={toggleDotClassNames} aria-hidden=\"true\">\n <svg\n width=\"17\"\n height=\"13\"\n viewBox=\"0 0 17 13\"\n xmlns=\"http://www.w3.org/2000/svg\"\n className={styles['toggle-container__toggle__dot__icon']}\n >\n <path d=\"M15 2L6.80839 10.548L2 5.53145\" fill=\"none\" strokeWidth=\"3\" />\n </svg>\n </span>\n </span>\n </label>\n );\n\n const renderLabelText = (): React.ReactElement => {\n return (\n <span\n id={labelId}\n className={classNames(styles['toggle-container__label'], {\n [styles['toggle-container__label--toggle-right']]: togglePosition === TogglePosition.right,\n })}\n >\n {label.map(labelText => {\n const labelClassNames = classNames({\n [styles['toggle-container__label__text--semibold']]: labelText.type === 'semibold',\n });\n\n return (\n <span key={labelId + labelText.text} className={labelClassNames}>\n {labelText.text}\n </span>\n );\n })}\n </span>\n );\n };\n\n return (\n <div className={toggleContainerClassNames} data-testid={testId} data-analyticsid={AnalyticsId.Toggle}>\n <div className={toggleRowClassNames}>\n {togglePosition === TogglePosition.left && (\n <>\n {renderToggle()}\n {renderLabelText()}\n </>\n )}\n {togglePosition === TogglePosition.right && (\n <>\n {renderLabelText()}\n {renderToggle()}\n </>\n )}\n </div>\n {subLabel && (\n <div id={subLabelId} className={subLabelClassNames}>\n {subLabel}\n </div>\n )}\n </div>\n );\n};\n\nexport default Toggle;\n"],"names":["TogglePosition","ToggleOnColor","Toggle","checked","label","onChange","onColor","subLabel","togglePosition","testId","checkedState","setCheckedState","useState","showToggleAnimation","setShowToggleAnimation","scope","animate","useAnimate","inputId","useUuid","toggleId","toggleDotId","labelId","subLabelId","refObject","isHovered","isActive","usePseudoClasses","showHoveredStyling","isOnWhite","useEffect","timer","getBackgroundColor","handleChange","event","toggleContainerClassNames","classNames","styles","toggleRowClassNames","subLabelClassNames","toggleClassNames","toggleDotClassNames","renderToggle","React","l","renderLabelText","labelText","labelClassNames","AnalyticsId"],"mappings":";;;;;;;;AAiBY,IAAAA,sBAAAA,OACVA,EAAA,OAAO,QACPA,EAAA,QAAQ,SAFEA,IAAAA,KAAA,CAAA,CAAA,GAKAC,sBAAAA,OACVA,EAAA,UAAU,WACVA,EAAA,YAAY,aACZA,EAAA,cAAc,eAHJA,IAAAA,KAAA,CAAA,CAAA;AAqBZ,MAAMC,IAAgC,CAAC;AAAA,EACrC,SAAAC,IAAU;AAAA,EACV,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,UAAAC;AAAA,EACA,gBAAAC,IAAiB;AAAA,EACjB,QAAAC;AACF,MAAmB;AACjB,QAAM,CAACC,GAAcC,CAAe,IAAIC,EAAST,CAAO,GAClD,CAACU,GAAqBC,CAAsB,IAAIF,EAAS,EAAK,GAC9D,CAACG,GAAOC,CAAO,IAAIC,EAAW,GAC9BC,IAAUC,KACVC,IAAWD,KACXE,IAAcF,KACdG,IAAUH,KACVI,IAAaJ,KACb,EAAE,WAAAK,GAAW,WAAAC,GAAW,UAAAC,EAAS,IAAIC,EAAmCZ,CAAK,GAC7Ea,IAAqBH,KAAa,CAACZ,GACnCgB,IAAYvB,MAAY;AAE9B,EAAAwB,EAAU,MAAM;AACd,QAAIjB,GAAqB;AACvB,YAAMkB,IAAQ,WAAW,MAAMjB,EAAuB,EAAK,GAAG,GAAG;AAC1D,aAAA,MAAY,aAAaiB,CAAK;AAAA,IACvC;AAAA,EAAA,GACC,CAAClB,CAAmB,CAAC,GAExBiB,EAAU,MAAM;AACd,IAAAnB,EAAgBR,CAAO;AAAA,EAAA,GACtB,CAACA,CAAO,CAAC,GAEZ2B,EAAU,MAAM;AACd,I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