hrm_ui_lib 2.0.0-alpha.24 → 2.0.0-alpha.25

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 (941) hide show
  1. package/assets/images/under-construction.webp +0 -0
  2. package/assets/styles/styles.css +1 -9462
  3. package/components/Alert/Alert.js +6 -54
  4. package/components/Alert/consts.js +1 -16
  5. package/components/Alert/index.js +1 -54
  6. package/components/Avatar/Avatar.js +1 -121
  7. package/components/Avatar/AvatarGroup.js +5 -122
  8. package/components/Avatar/index.js +1 -66
  9. package/components/Badge/Badge.js +2 -24
  10. package/components/Badge/index.js +1 -6
  11. package/components/BadgeV2/BadgeV2.js +1 -52
  12. package/components/BadgeV2/index.js +1 -7
  13. package/components/BadgeV2/types.js +1 -7
  14. package/components/Breadcrumb/Breadcrumb.js +2 -24
  15. package/components/Breadcrumb/index.js +1 -2
  16. package/components/Button/Button.js +2 -54
  17. package/components/Button/consts.js +1 -16
  18. package/components/Button/index.js +1 -54
  19. package/components/ButtonGroup/ButtonGroup.js +2 -46
  20. package/components/ButtonGroup/ButtonGroupItem.js +3 -52
  21. package/components/ButtonGroup/consts.js +1 -12
  22. package/components/ButtonGroup/index.js +1 -10
  23. package/components/Card/Card.js +1 -92
  24. package/components/Card/CardComponent/Card.js +3 -37
  25. package/components/Card/CardComponent/CardBody.js +2 -39
  26. package/components/Card/CardComponent/CardFooter.js +1 -13
  27. package/components/Card/CardComponent/CardHead.js +2 -91
  28. package/components/Card/CardContext.js +1 -11
  29. package/components/Card/index.js +1 -63
  30. package/components/CardGroup/CardGroup.js +1 -27
  31. package/components/CardGroup/CardGroupComponent/CardBody.js +2 -19
  32. package/components/CardGroup/CardGroupComponent/CardGroup.js +2 -28
  33. package/components/CardGroup/CardGroupComponent/CardHead.js +3 -19
  34. package/components/CardGroup/CardGroupContext.js +1 -8
  35. package/components/CardGroup/index.js +1 -11
  36. package/components/Checkbox/Checkbox.js +6 -54
  37. package/components/Checkbox/index.js +1 -54
  38. package/components/Chips/Chips.js +2 -67
  39. package/components/Chips/consts.js +1 -14
  40. package/components/Chips/index.js +1 -11
  41. package/components/Chips/types.js +1 -7
  42. package/components/Collapse/Collapse/Collapse.js +5 -79
  43. package/components/Collapse/Collapse/Title.js +2 -48
  44. package/components/Collapse/CollapseGroup/CollapseGroup.js +3 -76
  45. package/components/Collapse/CollapseItem/CollapseItem.js +10 -89
  46. package/components/Collapse/index.js +1 -19
  47. package/components/Container/Container.js +2 -10
  48. package/components/Container/index.js +1 -2
  49. package/components/Copy/Copy.js +3 -96
  50. package/components/Copy/index.js +1 -56
  51. package/components/Counter/Counter.js +2 -139
  52. package/components/Counter/index.js +1 -63
  53. package/components/DatePicker/CustomHeader/CustomHeader.js +7 -194
  54. package/components/DatePicker/CustomHeader/helpers.js +1 -17
  55. package/components/DatePicker/RangeDatePicker/RangeDatePicker.js +1 -138
  56. package/components/DatePicker/RangeDatePicker/RangeDatePickerDesktop.js +4 -185
  57. package/components/DatePicker/RangeDatePicker/RangeDatePickerMobile.js +8 -277
  58. package/components/DatePicker/RangeDatePicker/index.js +1 -132
  59. package/components/DatePicker/SimpleDatePicker/SimpleDatePicker.js +1 -138
  60. package/components/DatePicker/SimpleDatePicker/SimpleDatePickerDesktop.js +4 -213
  61. package/components/DatePicker/SimpleDatePicker/SimpleDatePickerMobile.js +5 -218
  62. package/components/DatePicker/SimpleDatePicker/index.js +1 -131
  63. package/components/DatePicker/TimePicker/MobileModalContent.js +4 -126
  64. package/components/DatePicker/TimePicker/TimePicker.js +1 -86
  65. package/components/DatePicker/TimePicker/TimePickerDesktop.js +4 -164
  66. package/components/DatePicker/TimePicker/TimePickerMobile.js +5 -131
  67. package/components/DatePicker/TimePicker/consts.js +1 -8
  68. package/components/DatePicker/TimePicker/helpers.js +1 -21
  69. package/components/DatePicker/TimePicker/index.js +1 -80
  70. package/components/DatePicker/hooks.js +1 -44
  71. package/components/DatePicker/index.js +1 -144
  72. package/components/DatePicker/localization.js +1 -7
  73. package/components/DatePicker/types.js +1 -7
  74. package/components/Divider/Divider.js +2 -19
  75. package/components/Divider/index.js +1 -3
  76. package/components/Empty/Empty.js +4 -87
  77. package/components/Empty/index.js +1 -56
  78. package/components/FileUpload/DropzoneFileUpload/DropzoneFileUpload.js +7 -54
  79. package/components/FileUpload/DropzoneFileUpload/ErrorItem.js +1 -54
  80. package/components/FileUpload/DropzoneFileUpload/FilePreview.js +2 -53
  81. package/components/FileUpload/DropzoneFileUpload/PreviewItem.js +7 -54
  82. package/components/FileUpload/DropzoneFileUpload/helpers.js +1 -54
  83. package/components/FileUpload/DropzoneFileUpload/index.js +1 -54
  84. package/components/FileUpload/FileUpload.js +6 -195
  85. package/components/FileUpload/UploadItems.js +6 -104
  86. package/components/FileUpload/index.js +1 -63
  87. package/components/FileUpload/types.js +1 -10
  88. package/components/FormContainer/FormContainer.js +1 -146
  89. package/components/FormContainer/index.js +1 -57
  90. package/components/FormContainer/types.d.ts +1 -2
  91. package/components/FormField/FormField.js +2 -117
  92. package/components/FormField/index.js +1 -58
  93. package/components/FormField/types.d.ts +1 -0
  94. package/components/Heading/Heading.js +2 -29
  95. package/components/Heading/index.js +1 -5
  96. package/components/IconDynamicComponent/IconDynamicComponent.js +1 -40
  97. package/components/IconDynamicComponent/index.js +1 -3
  98. package/components/Image/Image.js +1 -33
  99. package/components/Image/index.js +1 -2
  100. package/components/Input/Input.js +9 -245
  101. package/components/Input/index.js +1 -60
  102. package/components/Link/Link.js +2 -42
  103. package/components/Link/index.js +1 -3
  104. package/components/Menu/Menu.js +3 -167
  105. package/components/Menu/NestedMenu.js +3 -180
  106. package/components/Menu/index.js +1 -74
  107. package/components/Modal/Modal.js +1 -54
  108. package/components/Modal/ModalConfirmation.js +3 -145
  109. package/components/Modal/ModalContent.js +5 -54
  110. package/components/Modal/index.js +1 -55
  111. package/components/More/More.js +3 -88
  112. package/components/More/index.js +1 -55
  113. package/components/Pagination/Pagination.js +2 -59
  114. package/components/Pagination/consts.js +1 -8
  115. package/components/Pagination/index.js +1 -10
  116. package/components/Popover/Popover.js +1 -54
  117. package/components/Popover/PopoverDesktop.js +1 -71
  118. package/components/Popover/PopoverMobile.js +3 -54
  119. package/components/Popover/index.js +1 -54
  120. package/components/Progress/Progress.js +4 -57
  121. package/components/Progress/index.js +1 -2
  122. package/components/ProgressStep/ProgressStep.js +2 -39
  123. package/components/ProgressStep/Step.js +9 -101
  124. package/components/ProgressStep/consts.js +1 -9
  125. package/components/ProgressStep/index.js +1 -12
  126. package/components/ProgressStep/types.js +1 -7
  127. package/components/Radio/Radio.js +4 -58
  128. package/components/Radio/RadioGroup.js +4 -115
  129. package/components/Radio/index.js +1 -57
  130. package/components/SVGIcons/IconAdd.d.ts +1 -1
  131. package/components/SVGIcons/IconAdd.js +1 -29
  132. package/components/SVGIcons/IconAddCircle.d.ts +1 -1
  133. package/components/SVGIcons/IconAddCircle.js +1 -32
  134. package/components/SVGIcons/IconAddCircleFilled.d.ts +1 -1
  135. package/components/SVGIcons/IconAddCircleFilled.js +1 -32
  136. package/components/SVGIcons/IconAddFilled.d.ts +1 -1
  137. package/components/SVGIcons/IconAddFilled.js +1 -29
  138. package/components/SVGIcons/IconAirplaneTakeOff.d.ts +1 -1
  139. package/components/SVGIcons/IconAirplaneTakeOff.js +1 -29
  140. package/components/SVGIcons/IconAirplaneTakeOffFilled.d.ts +1 -1
  141. package/components/SVGIcons/IconAirplaneTakeOffFilled.js +1 -29
  142. package/components/SVGIcons/IconAlert.d.ts +1 -1
  143. package/components/SVGIcons/IconAlert.js +1 -32
  144. package/components/SVGIcons/IconAlertBadge.d.ts +1 -1
  145. package/components/SVGIcons/IconAlertBadge.js +1 -32
  146. package/components/SVGIcons/IconAlertBadgeFilled.d.ts +1 -1
  147. package/components/SVGIcons/IconAlertBadgeFilled.js +1 -32
  148. package/components/SVGIcons/IconAlertFilled.d.ts +1 -1
  149. package/components/SVGIcons/IconAlertFilled.js +1 -32
  150. package/components/SVGIcons/IconAm.d.ts +1 -1
  151. package/components/SVGIcons/IconAm.js +7 -58
  152. package/components/SVGIcons/IconAmd.d.ts +1 -1
  153. package/components/SVGIcons/IconAmd.js +1 -29
  154. package/components/SVGIcons/IconAmdFilled.d.ts +1 -1
  155. package/components/SVGIcons/IconAmdFilled.js +1 -29
  156. package/components/SVGIcons/IconApple.d.ts +1 -1
  157. package/components/SVGIcons/IconApple.js +1 -32
  158. package/components/SVGIcons/IconArrowDown.d.ts +1 -1
  159. package/components/SVGIcons/IconArrowDown.js +1 -32
  160. package/components/SVGIcons/IconArrowDownFilled.d.ts +1 -1
  161. package/components/SVGIcons/IconArrowDownFilled.js +1 -32
  162. package/components/SVGIcons/IconArrowDownLeft.d.ts +1 -1
  163. package/components/SVGIcons/IconArrowDownLeft.js +1 -32
  164. package/components/SVGIcons/IconArrowDownLeftFilled.d.ts +1 -1
  165. package/components/SVGIcons/IconArrowDownLeftFilled.js +1 -32
  166. package/components/SVGIcons/IconArrowDownload.d.ts +1 -1
  167. package/components/SVGIcons/IconArrowDownload.js +1 -32
  168. package/components/SVGIcons/IconArrowDownloadFilled.d.ts +1 -1
  169. package/components/SVGIcons/IconArrowDownloadFilled.js +1 -32
  170. package/components/SVGIcons/IconArrowEnter.d.ts +1 -1
  171. package/components/SVGIcons/IconArrowEnter.js +1 -29
  172. package/components/SVGIcons/IconArrowEnterFilled.d.ts +1 -1
  173. package/components/SVGIcons/IconArrowEnterFilled.js +1 -29
  174. package/components/SVGIcons/IconArrowExit.d.ts +1 -1
  175. package/components/SVGIcons/IconArrowExit.js +1 -29
  176. package/components/SVGIcons/IconArrowExitFilled.d.ts +1 -1
  177. package/components/SVGIcons/IconArrowExitFilled.js +1 -29
  178. package/components/SVGIcons/IconArrowExportLeftToRight.d.ts +1 -1
  179. package/components/SVGIcons/IconArrowExportLeftToRight.js +1 -32
  180. package/components/SVGIcons/IconArrowExportLeftToRightFilled.d.ts +1 -1
  181. package/components/SVGIcons/IconArrowExportLeftToRightFilled.js +1 -32
  182. package/components/SVGIcons/IconArrowExportRightToLeft.d.ts +1 -1
  183. package/components/SVGIcons/IconArrowExportRightToLeft.js +1 -32
  184. package/components/SVGIcons/IconArrowExportRightToLeftFilled.d.ts +1 -1
  185. package/components/SVGIcons/IconArrowExportRightToLeftFilled.js +1 -32
  186. package/components/SVGIcons/IconArrowExportUp.d.ts +1 -1
  187. package/components/SVGIcons/IconArrowExportUp.js +1 -32
  188. package/components/SVGIcons/IconArrowExportUpFilled.d.ts +1 -1
  189. package/components/SVGIcons/IconArrowExportUpFilled.js +1 -32
  190. package/components/SVGIcons/IconArrowImport.d.ts +1 -1
  191. package/components/SVGIcons/IconArrowImport.js +1 -32
  192. package/components/SVGIcons/IconArrowImportFilled.d.ts +1 -1
  193. package/components/SVGIcons/IconArrowImportFilled.js +1 -32
  194. package/components/SVGIcons/IconArrowLeft.d.ts +1 -1
  195. package/components/SVGIcons/IconArrowLeft.js +1 -32
  196. package/components/SVGIcons/IconArrowLeftFilled.d.ts +1 -1
  197. package/components/SVGIcons/IconArrowLeftFilled.js +1 -32
  198. package/components/SVGIcons/IconArrowRepeatAll.d.ts +1 -1
  199. package/components/SVGIcons/IconArrowRepeatAll.js +1 -32
  200. package/components/SVGIcons/IconArrowRepeatAllFilled.d.ts +1 -1
  201. package/components/SVGIcons/IconArrowRepeatAllFilled.js +1 -32
  202. package/components/SVGIcons/IconArrowReset.d.ts +1 -1
  203. package/components/SVGIcons/IconArrowReset.js +1 -32
  204. package/components/SVGIcons/IconArrowResetFilled.d.ts +1 -1
  205. package/components/SVGIcons/IconArrowResetFilled.js +1 -32
  206. package/components/SVGIcons/IconArrowRight.d.ts +1 -1
  207. package/components/SVGIcons/IconArrowRight.js +1 -32
  208. package/components/SVGIcons/IconArrowRightFilled.d.ts +1 -1
  209. package/components/SVGIcons/IconArrowRightFilled.js +1 -32
  210. package/components/SVGIcons/IconArrowSort.d.ts +1 -1
  211. package/components/SVGIcons/IconArrowSort.js +1 -29
  212. package/components/SVGIcons/IconArrowSortFilled.d.ts +1 -1
  213. package/components/SVGIcons/IconArrowSortFilled.js +1 -29
  214. package/components/SVGIcons/IconArrowSync.d.ts +1 -1
  215. package/components/SVGIcons/IconArrowSync.js +1 -29
  216. package/components/SVGIcons/IconArrowSyncFilled.d.ts +1 -1
  217. package/components/SVGIcons/IconArrowSyncFilled.js +1 -29
  218. package/components/SVGIcons/IconArrowUp.d.ts +1 -1
  219. package/components/SVGIcons/IconArrowUp.js +1 -32
  220. package/components/SVGIcons/IconArrowUpFilled.d.ts +1 -1
  221. package/components/SVGIcons/IconArrowUpFilled.js +1 -32
  222. package/components/SVGIcons/IconArrowUpLeft.d.ts +1 -1
  223. package/components/SVGIcons/IconArrowUpLeft.js +1 -32
  224. package/components/SVGIcons/IconArrowUpLeftFilled.d.ts +1 -1
  225. package/components/SVGIcons/IconArrowUpLeftFilled.js +1 -32
  226. package/components/SVGIcons/IconArrowUpRight.d.ts +1 -1
  227. package/components/SVGIcons/IconArrowUpRight.js +1 -32
  228. package/components/SVGIcons/IconArrowUpRightFilled.d.ts +1 -1
  229. package/components/SVGIcons/IconArrowUpRightFilled.js +1 -32
  230. package/components/SVGIcons/IconAttach.d.ts +1 -1
  231. package/components/SVGIcons/IconAttach.js +1 -32
  232. package/components/SVGIcons/IconAttachFilled.d.ts +1 -1
  233. package/components/SVGIcons/IconAttachFilled.js +1 -32
  234. package/components/SVGIcons/IconBeach.d.ts +1 -1
  235. package/components/SVGIcons/IconBeach.js +1 -29
  236. package/components/SVGIcons/IconBeachFilled.d.ts +1 -1
  237. package/components/SVGIcons/IconBeachFilled.js +1 -29
  238. package/components/SVGIcons/IconBook.d.ts +1 -1
  239. package/components/SVGIcons/IconBook.js +1 -32
  240. package/components/SVGIcons/IconBookFilled.d.ts +1 -1
  241. package/components/SVGIcons/IconBookFilled.js +1 -32
  242. package/components/SVGIcons/IconBookmark.d.ts +1 -1
  243. package/components/SVGIcons/IconBookmark.js +1 -32
  244. package/components/SVGIcons/IconBookmarkFilled.d.ts +1 -1
  245. package/components/SVGIcons/IconBookmarkFilled.js +1 -32
  246. package/components/SVGIcons/IconBriefcase.d.ts +1 -1
  247. package/components/SVGIcons/IconBriefcase.js +1 -32
  248. package/components/SVGIcons/IconBriefcaseFilled.d.ts +1 -1
  249. package/components/SVGIcons/IconBriefcaseFilled.js +1 -32
  250. package/components/SVGIcons/IconBuilding.d.ts +1 -1
  251. package/components/SVGIcons/IconBuilding.js +7 -55
  252. package/components/SVGIcons/IconBuildingBank.d.ts +1 -1
  253. package/components/SVGIcons/IconBuildingBank.js +1 -29
  254. package/components/SVGIcons/IconBuildingBankFilled.d.ts +1 -1
  255. package/components/SVGIcons/IconBuildingBankFilled.js +1 -29
  256. package/components/SVGIcons/IconBuildingFilled.d.ts +1 -1
  257. package/components/SVGIcons/IconBuildingFilled.js +1 -32
  258. package/components/SVGIcons/IconBulletListAdd.d.ts +1 -1
  259. package/components/SVGIcons/IconBulletListAdd.js +1 -32
  260. package/components/SVGIcons/IconBulletListAddFilled.d.ts +1 -1
  261. package/components/SVGIcons/IconBulletListAddFilled.js +1 -32
  262. package/components/SVGIcons/IconCalculator.d.ts +1 -1
  263. package/components/SVGIcons/IconCalculator.js +1 -32
  264. package/components/SVGIcons/IconCalculatorFilled.d.ts +1 -1
  265. package/components/SVGIcons/IconCalculatorFilled.js +1 -32
  266. package/components/SVGIcons/IconCalendarClock.d.ts +1 -1
  267. package/components/SVGIcons/IconCalendarClock.js +1 -29
  268. package/components/SVGIcons/IconCalendarClockFilled.d.ts +1 -1
  269. package/components/SVGIcons/IconCalendarClockFilled.js +1 -29
  270. package/components/SVGIcons/IconCalendarDay.d.ts +1 -1
  271. package/components/SVGIcons/IconCalendarDay.js +1 -32
  272. package/components/SVGIcons/IconCalendarDayFilled.d.ts +1 -1
  273. package/components/SVGIcons/IconCalendarDayFilled.js +1 -32
  274. package/components/SVGIcons/IconCalendarEmpty.d.ts +1 -1
  275. package/components/SVGIcons/IconCalendarEmpty.js +1 -29
  276. package/components/SVGIcons/IconCalendarLeft.d.ts +1 -1
  277. package/components/SVGIcons/IconCalendarLeft.js +1 -29
  278. package/components/SVGIcons/IconCalendarLeftFilled.d.ts +1 -1
  279. package/components/SVGIcons/IconCalendarLeftFilled.js +1 -29
  280. package/components/SVGIcons/IconCalendarRight.d.ts +1 -1
  281. package/components/SVGIcons/IconCalendarRight.js +1 -29
  282. package/components/SVGIcons/IconCalendarRightFilled.d.ts +1 -1
  283. package/components/SVGIcons/IconCalendarRightFilled.js +1 -29
  284. package/components/SVGIcons/IconCall.d.ts +1 -1
  285. package/components/SVGIcons/IconCall.js +1 -32
  286. package/components/SVGIcons/IconCallFilled.d.ts +1 -1
  287. package/components/SVGIcons/IconCallFilled.js +1 -32
  288. package/components/SVGIcons/IconCard.d.ts +1 -1
  289. package/components/SVGIcons/IconCard.js +1 -29
  290. package/components/SVGIcons/IconCardFilled.d.ts +1 -1
  291. package/components/SVGIcons/IconCardFilled.js +1 -29
  292. package/components/SVGIcons/IconCaretDown.d.ts +1 -1
  293. package/components/SVGIcons/IconCaretDown.js +1 -29
  294. package/components/SVGIcons/IconCaretDownFilled.d.ts +1 -1
  295. package/components/SVGIcons/IconCaretDownFilled.js +1 -29
  296. package/components/SVGIcons/IconCaretDownRight.d.ts +1 -1
  297. package/components/SVGIcons/IconCaretDownRight.js +1 -29
  298. package/components/SVGIcons/IconCaretDownRightFilled.d.ts +1 -1
  299. package/components/SVGIcons/IconCaretDownRightFilled.js +1 -29
  300. package/components/SVGIcons/IconCaretLeft.d.ts +1 -1
  301. package/components/SVGIcons/IconCaretLeft.js +1 -29
  302. package/components/SVGIcons/IconCaretLeftFilled.d.ts +1 -1
  303. package/components/SVGIcons/IconCaretLeftFilled.js +1 -29
  304. package/components/SVGIcons/IconCaretRight.d.ts +1 -1
  305. package/components/SVGIcons/IconCaretRight.js +1 -29
  306. package/components/SVGIcons/IconCaretRightFilled.d.ts +1 -1
  307. package/components/SVGIcons/IconCaretRightFilled.js +1 -29
  308. package/components/SVGIcons/IconCaretUp.d.ts +1 -1
  309. package/components/SVGIcons/IconCaretUp.js +1 -29
  310. package/components/SVGIcons/IconCaretUpFilled.d.ts +1 -1
  311. package/components/SVGIcons/IconCaretUpFilled.js +1 -29
  312. package/components/SVGIcons/IconChartPerson.d.ts +1 -1
  313. package/components/SVGIcons/IconChartPerson.js +1 -29
  314. package/components/SVGIcons/IconChartPersonFilled.d.ts +1 -1
  315. package/components/SVGIcons/IconChartPersonFilled.js +1 -29
  316. package/components/SVGIcons/IconChat.d.ts +1 -1
  317. package/components/SVGIcons/IconChat.js +1 -29
  318. package/components/SVGIcons/IconChatFilled.d.ts +1 -1
  319. package/components/SVGIcons/IconChatFilled.js +1 -29
  320. package/components/SVGIcons/IconChatMultiple.d.ts +1 -1
  321. package/components/SVGIcons/IconChatMultiple.js +1 -29
  322. package/components/SVGIcons/IconChatMultipleFilled.d.ts +1 -1
  323. package/components/SVGIcons/IconChatMultipleFilled.js +1 -29
  324. package/components/SVGIcons/IconCheckboxArrowRight.d.ts +1 -1
  325. package/components/SVGIcons/IconCheckboxArrowRight.js +1 -32
  326. package/components/SVGIcons/IconCheckboxArrowRightFilled.d.ts +1 -1
  327. package/components/SVGIcons/IconCheckboxArrowRightFilled.js +1 -32
  328. package/components/SVGIcons/IconCheckmark.d.ts +1 -1
  329. package/components/SVGIcons/IconCheckmark.js +1 -29
  330. package/components/SVGIcons/IconCheckmarkCircle.d.ts +1 -1
  331. package/components/SVGIcons/IconCheckmarkCircle.js +1 -29
  332. package/components/SVGIcons/IconCheckmarkCircleFilled.d.ts +1 -1
  333. package/components/SVGIcons/IconCheckmarkCircleFilled.js +1 -29
  334. package/components/SVGIcons/IconCheckmarkFilled.d.ts +1 -1
  335. package/components/SVGIcons/IconCheckmarkFilled.js +1 -29
  336. package/components/SVGIcons/IconChevronDoubleLeft.d.ts +1 -1
  337. package/components/SVGIcons/IconChevronDoubleLeft.js +1 -29
  338. package/components/SVGIcons/IconChevronDoubleRight.d.ts +1 -1
  339. package/components/SVGIcons/IconChevronDoubleRight.js +1 -29
  340. package/components/SVGIcons/IconChevronDown.d.ts +1 -1
  341. package/components/SVGIcons/IconChevronDown.js +1 -29
  342. package/components/SVGIcons/IconChevronDownFilled.d.ts +1 -1
  343. package/components/SVGIcons/IconChevronDownFilled.js +1 -29
  344. package/components/SVGIcons/IconChevronLeft.d.ts +1 -1
  345. package/components/SVGIcons/IconChevronLeft.js +1 -29
  346. package/components/SVGIcons/IconChevronLeftFilled.d.ts +1 -1
  347. package/components/SVGIcons/IconChevronLeftFilled.js +1 -29
  348. package/components/SVGIcons/IconChevronRight.d.ts +1 -1
  349. package/components/SVGIcons/IconChevronRight.js +1 -29
  350. package/components/SVGIcons/IconChevronRightFilled.d.ts +1 -1
  351. package/components/SVGIcons/IconChevronRightFilled.js +1 -29
  352. package/components/SVGIcons/IconChevronUp.d.ts +1 -1
  353. package/components/SVGIcons/IconChevronUp.js +1 -29
  354. package/components/SVGIcons/IconChevronUpDown.d.ts +1 -1
  355. package/components/SVGIcons/IconChevronUpDown.js +1 -32
  356. package/components/SVGIcons/IconChevronUpDownFilled.d.ts +1 -1
  357. package/components/SVGIcons/IconChevronUpDownFilled.js +1 -32
  358. package/components/SVGIcons/IconChevronUpFilled.d.ts +1 -1
  359. package/components/SVGIcons/IconChevronUpFilled.js +1 -29
  360. package/components/SVGIcons/IconClipboardDay.d.ts +1 -1
  361. package/components/SVGIcons/IconClipboardDay.js +1 -29
  362. package/components/SVGIcons/IconClock.d.ts +1 -1
  363. package/components/SVGIcons/IconClock.js +1 -32
  364. package/components/SVGIcons/IconClockDismiss.d.ts +1 -1
  365. package/components/SVGIcons/IconClockDismiss.js +1 -29
  366. package/components/SVGIcons/IconClockDismissFilled.d.ts +1 -1
  367. package/components/SVGIcons/IconClockDismissFilled.js +1 -29
  368. package/components/SVGIcons/IconClockFilled.d.ts +1 -1
  369. package/components/SVGIcons/IconClockFilled.js +1 -32
  370. package/components/SVGIcons/IconComment.d.ts +1 -1
  371. package/components/SVGIcons/IconComment.js +1 -32
  372. package/components/SVGIcons/IconCommentFilled.d.ts +1 -1
  373. package/components/SVGIcons/IconCommentFilled.js +1 -32
  374. package/components/SVGIcons/IconContractCard.d.ts +1 -1
  375. package/components/SVGIcons/IconContractCard.js +1 -29
  376. package/components/SVGIcons/IconContractCardFilled.d.ts +1 -1
  377. package/components/SVGIcons/IconContractCardFilled.js +1 -29
  378. package/components/SVGIcons/IconCopy.d.ts +1 -1
  379. package/components/SVGIcons/IconCopy.js +1 -29
  380. package/components/SVGIcons/IconCopyFilled.d.ts +1 -1
  381. package/components/SVGIcons/IconCopyFilled.js +1 -29
  382. package/components/SVGIcons/IconCubeTree.d.ts +1 -1
  383. package/components/SVGIcons/IconCubeTree.js +1 -29
  384. package/components/SVGIcons/IconCubeTreeFilled.d.ts +1 -1
  385. package/components/SVGIcons/IconCubeTreeFilled.js +1 -32
  386. package/components/SVGIcons/IconDatabase.d.ts +1 -1
  387. package/components/SVGIcons/IconDatabase.js +1 -32
  388. package/components/SVGIcons/IconDatabaseFilled.d.ts +1 -1
  389. package/components/SVGIcons/IconDatabaseFilled.js +1 -32
  390. package/components/SVGIcons/IconDelete.d.ts +1 -1
  391. package/components/SVGIcons/IconDelete.js +1 -29
  392. package/components/SVGIcons/IconDeleteFilled.d.ts +1 -1
  393. package/components/SVGIcons/IconDeleteFilled.js +1 -29
  394. package/components/SVGIcons/IconDeviceMeetingRoom.d.ts +1 -1
  395. package/components/SVGIcons/IconDeviceMeetingRoom.js +1 -29
  396. package/components/SVGIcons/IconDeviceMeetingRoomFilled.d.ts +1 -1
  397. package/components/SVGIcons/IconDeviceMeetingRoomFilled.js +1 -29
  398. package/components/SVGIcons/IconDismiss.d.ts +1 -1
  399. package/components/SVGIcons/IconDismiss.js +1 -29
  400. package/components/SVGIcons/IconDismissCircle.d.ts +1 -1
  401. package/components/SVGIcons/IconDismissCircle.js +1 -32
  402. package/components/SVGIcons/IconDismissCircleFilled.d.ts +1 -1
  403. package/components/SVGIcons/IconDismissCircleFilled.js +1 -32
  404. package/components/SVGIcons/IconDismissFilled.d.ts +1 -1
  405. package/components/SVGIcons/IconDismissFilled.js +1 -29
  406. package/components/SVGIcons/IconDocument.d.ts +1 -1
  407. package/components/SVGIcons/IconDocument.js +1 -29
  408. package/components/SVGIcons/IconDocumentBulletList.d.ts +1 -1
  409. package/components/SVGIcons/IconDocumentBulletList.js +1 -32
  410. package/components/SVGIcons/IconDocumentBulletListFilled.d.ts +1 -1
  411. package/components/SVGIcons/IconDocumentBulletListFilled.js +1 -32
  412. package/components/SVGIcons/IconDocumentEdit.d.ts +1 -1
  413. package/components/SVGIcons/IconDocumentEdit.js +1 -29
  414. package/components/SVGIcons/IconDocumentEditFilled.d.ts +1 -1
  415. package/components/SVGIcons/IconDocumentEditFilled.js +1 -29
  416. package/components/SVGIcons/IconDocumentFilled.d.ts +1 -1
  417. package/components/SVGIcons/IconDocumentFilled.js +1 -29
  418. package/components/SVGIcons/IconDocumentPerson.d.ts +1 -1
  419. package/components/SVGIcons/IconDocumentPerson.js +1 -29
  420. package/components/SVGIcons/IconEdit.d.ts +1 -1
  421. package/components/SVGIcons/IconEdit.js +1 -29
  422. package/components/SVGIcons/IconEditFilled.d.ts +1 -1
  423. package/components/SVGIcons/IconEditFilled.js +1 -29
  424. package/components/SVGIcons/IconErrorCircle.d.ts +1 -1
  425. package/components/SVGIcons/IconErrorCircle.js +1 -29
  426. package/components/SVGIcons/IconErrorCircleFilled.d.ts +1 -1
  427. package/components/SVGIcons/IconErrorCircleFilled.js +1 -29
  428. package/components/SVGIcons/IconEur.d.ts +1 -1
  429. package/components/SVGIcons/IconEur.js +1 -29
  430. package/components/SVGIcons/IconEurFilled.d.ts +1 -1
  431. package/components/SVGIcons/IconEurFilled.js +1 -29
  432. package/components/SVGIcons/IconExpandUpLeft.d.ts +1 -1
  433. package/components/SVGIcons/IconExpandUpLeft.js +1 -32
  434. package/components/SVGIcons/IconExpandUpLeftFilled.d.ts +1 -1
  435. package/components/SVGIcons/IconExpandUpLeftFilled.js +1 -32
  436. package/components/SVGIcons/IconExpandUpRight.d.ts +1 -1
  437. package/components/SVGIcons/IconExpandUpRight.js +1 -32
  438. package/components/SVGIcons/IconExpandUpRightFilled.d.ts +1 -1
  439. package/components/SVGIcons/IconExpandUpRightFilled.js +1 -32
  440. package/components/SVGIcons/IconEyeOff.d.ts +1 -1
  441. package/components/SVGIcons/IconEyeOff.js +1 -32
  442. package/components/SVGIcons/IconEyeOffFilled.d.ts +1 -1
  443. package/components/SVGIcons/IconEyeOffFilled.js +1 -32
  444. package/components/SVGIcons/IconEyeOn.d.ts +1 -1
  445. package/components/SVGIcons/IconEyeOn.js +1 -32
  446. package/components/SVGIcons/IconEyeOnFilled.d.ts +1 -1
  447. package/components/SVGIcons/IconEyeOnFilled.js +1 -32
  448. package/components/SVGIcons/IconFacebook.d.ts +1 -1
  449. package/components/SVGIcons/IconFacebook.js +3 -39
  450. package/components/SVGIcons/IconFastAcceleration.d.ts +1 -1
  451. package/components/SVGIcons/IconFastAcceleration.js +1 -29
  452. package/components/SVGIcons/IconFastAccelerationFilled.d.ts +1 -1
  453. package/components/SVGIcons/IconFastAccelerationFilled.js +1 -29
  454. package/components/SVGIcons/IconFeed.d.ts +1 -1
  455. package/components/SVGIcons/IconFeed.js +1 -29
  456. package/components/SVGIcons/IconFeedFilled.d.ts +1 -1
  457. package/components/SVGIcons/IconFeedFilled.js +1 -29
  458. package/components/SVGIcons/IconFilter.d.ts +1 -1
  459. package/components/SVGIcons/IconFilter.js +1 -29
  460. package/components/SVGIcons/IconFilterFilled.d.ts +1 -1
  461. package/components/SVGIcons/IconFilterFilled.js +1 -29
  462. package/components/SVGIcons/IconFlag.d.ts +1 -1
  463. package/components/SVGIcons/IconFlag.js +1 -32
  464. package/components/SVGIcons/IconFlagFilled.d.ts +1 -1
  465. package/components/SVGIcons/IconFlagFilled.js +1 -32
  466. package/components/SVGIcons/IconFolderLink.d.ts +1 -1
  467. package/components/SVGIcons/IconFolderLink.js +1 -29
  468. package/components/SVGIcons/IconFolderLinkFilled.d.ts +1 -1
  469. package/components/SVGIcons/IconFolderLinkFilled.js +1 -29
  470. package/components/SVGIcons/IconFood.d.ts +1 -1
  471. package/components/SVGIcons/IconFood.js +1 -29
  472. package/components/SVGIcons/IconFoodFilled.d.ts +1 -1
  473. package/components/SVGIcons/IconFoodFilled.js +1 -29
  474. package/components/SVGIcons/IconGb.d.ts +1 -1
  475. package/components/SVGIcons/IconGb.js +11 -72
  476. package/components/SVGIcons/IconGlobe.d.ts +1 -1
  477. package/components/SVGIcons/IconGlobe.js +1 -29
  478. package/components/SVGIcons/IconGlobeFilled.d.ts +1 -1
  479. package/components/SVGIcons/IconGlobeFilled.js +1 -29
  480. package/components/SVGIcons/IconGoogle.d.ts +1 -1
  481. package/components/SVGIcons/IconGoogle.js +3 -41
  482. package/components/SVGIcons/IconHandOpenHeart.d.ts +1 -1
  483. package/components/SVGIcons/IconHandOpenHeart.js +1 -32
  484. package/components/SVGIcons/IconHandOpenHeartFilled.d.ts +1 -1
  485. package/components/SVGIcons/IconHandOpenHeartFilled.js +1 -32
  486. package/components/SVGIcons/IconHeart.d.ts +1 -1
  487. package/components/SVGIcons/IconHeart.js +1 -32
  488. package/components/SVGIcons/IconHeartFilled.d.ts +1 -1
  489. package/components/SVGIcons/IconHeartFilled.js +1 -32
  490. package/components/SVGIcons/IconHistory.d.ts +1 -1
  491. package/components/SVGIcons/IconHistory.js +1 -32
  492. package/components/SVGIcons/IconHistoryFilled.d.ts +1 -1
  493. package/components/SVGIcons/IconHistoryFilled.js +1 -32
  494. package/components/SVGIcons/IconHome.d.ts +1 -1
  495. package/components/SVGIcons/IconHome.js +1 -32
  496. package/components/SVGIcons/IconHomeFilled.d.ts +1 -1
  497. package/components/SVGIcons/IconHomeFilled.js +1 -32
  498. package/components/SVGIcons/IconImage.d.ts +1 -1
  499. package/components/SVGIcons/IconImage.js +1 -32
  500. package/components/SVGIcons/IconImageFilled.d.ts +1 -1
  501. package/components/SVGIcons/IconImageFilled.js +1 -32
  502. package/components/SVGIcons/IconInfo.d.ts +1 -1
  503. package/components/SVGIcons/IconInfo.js +1 -29
  504. package/components/SVGIcons/IconInfoFilled.d.ts +1 -1
  505. package/components/SVGIcons/IconInfoFilled.js +1 -29
  506. package/components/SVGIcons/IconInstagram.d.ts +1 -1
  507. package/components/SVGIcons/IconInstagram.js +4 -40
  508. package/components/SVGIcons/IconKeyReset.d.ts +1 -1
  509. package/components/SVGIcons/IconKeyReset.js +1 -32
  510. package/components/SVGIcons/IconKeyResetFilled.d.ts +1 -1
  511. package/components/SVGIcons/IconKeyResetFilled.js +1 -32
  512. package/components/SVGIcons/IconLibrary.d.ts +1 -1
  513. package/components/SVGIcons/IconLibrary.js +1 -29
  514. package/components/SVGIcons/IconLibraryFilled.d.ts +1 -1
  515. package/components/SVGIcons/IconLibraryFilled.js +1 -29
  516. package/components/SVGIcons/IconLink.d.ts +1 -1
  517. package/components/SVGIcons/IconLink.js +1 -32
  518. package/components/SVGIcons/IconLinkFilled.d.ts +1 -1
  519. package/components/SVGIcons/IconLinkFilled.js +1 -32
  520. package/components/SVGIcons/IconLinkedin.d.ts +1 -1
  521. package/components/SVGIcons/IconLinkedin.js +1 -32
  522. package/components/SVGIcons/IconList.d.ts +1 -1
  523. package/components/SVGIcons/IconList.js +1 -29
  524. package/components/SVGIcons/IconListFilled.d.ts +1 -1
  525. package/components/SVGIcons/IconListFilled.js +1 -32
  526. package/components/SVGIcons/IconLocation.d.ts +1 -1
  527. package/components/SVGIcons/IconLocation.js +1 -32
  528. package/components/SVGIcons/IconLocationFilled.d.ts +1 -1
  529. package/components/SVGIcons/IconLocationFilled.js +1 -32
  530. package/components/SVGIcons/IconLockClosed.d.ts +1 -1
  531. package/components/SVGIcons/IconLockClosed.js +1 -32
  532. package/components/SVGIcons/IconLockClosedFilled.d.ts +1 -1
  533. package/components/SVGIcons/IconLockClosedFilled.js +1 -32
  534. package/components/SVGIcons/IconLockOpen.d.ts +1 -1
  535. package/components/SVGIcons/IconLockOpen.js +1 -32
  536. package/components/SVGIcons/IconLockOpenFilled.d.ts +1 -1
  537. package/components/SVGIcons/IconLockOpenFilled.js +1 -32
  538. package/components/SVGIcons/IconMail.d.ts +1 -1
  539. package/components/SVGIcons/IconMail.js +1 -32
  540. package/components/SVGIcons/IconMailAdd.d.ts +1 -1
  541. package/components/SVGIcons/IconMailAdd.js +1 -32
  542. package/components/SVGIcons/IconMailAddFilled.d.ts +1 -1
  543. package/components/SVGIcons/IconMailAddFilled.js +1 -32
  544. package/components/SVGIcons/IconMailArrowForward.d.ts +1 -1
  545. package/components/SVGIcons/IconMailArrowForward.js +1 -32
  546. package/components/SVGIcons/IconMailArrowForwardFilled.d.ts +1 -1
  547. package/components/SVGIcons/IconMailArrowForwardFilled.js +1 -32
  548. package/components/SVGIcons/IconMailFilled.d.ts +1 -1
  549. package/components/SVGIcons/IconMailFilled.js +1 -32
  550. package/components/SVGIcons/IconMailLink.d.ts +1 -1
  551. package/components/SVGIcons/IconMailLink.js +1 -32
  552. package/components/SVGIcons/IconMailLinkFilled.d.ts +1 -1
  553. package/components/SVGIcons/IconMailLinkFilled.js +1 -32
  554. package/components/SVGIcons/IconMedium.d.ts +1 -1
  555. package/components/SVGIcons/IconMedium.js +1 -32
  556. package/components/SVGIcons/IconMore.d.ts +1 -1
  557. package/components/SVGIcons/IconMore.js +1 -32
  558. package/components/SVGIcons/IconMoreFilled.d.ts +1 -1
  559. package/components/SVGIcons/IconMoreFilled.js +1 -32
  560. package/components/SVGIcons/IconMoreVertical.d.ts +1 -1
  561. package/components/SVGIcons/IconMoreVertical.js +1 -32
  562. package/components/SVGIcons/IconMoreVerticalFilled.d.ts +1 -1
  563. package/components/SVGIcons/IconMoreVerticalFilled.js +1 -32
  564. package/components/SVGIcons/IconNavigation.d.ts +1 -1
  565. package/components/SVGIcons/IconNavigation.js +1 -32
  566. package/components/SVGIcons/IconNavigationFilled.d.ts +1 -1
  567. package/components/SVGIcons/IconNavigationFilled.js +1 -32
  568. package/components/SVGIcons/IconNotebook.d.ts +1 -1
  569. package/components/SVGIcons/IconNotebook.js +1 -32
  570. package/components/SVGIcons/IconNotebookAdd.d.ts +1 -1
  571. package/components/SVGIcons/IconNotebookAdd.js +7 -48
  572. package/components/SVGIcons/IconNotebookAddFilled.d.ts +1 -1
  573. package/components/SVGIcons/IconNotebookAddFilled.js +6 -45
  574. package/components/SVGIcons/IconNotebookFilled.d.ts +1 -1
  575. package/components/SVGIcons/IconNotebookFilled.js +1 -32
  576. package/components/SVGIcons/IconOnlyEmployee.d.ts +1 -1
  577. package/components/SVGIcons/IconOnlyEmployee.js +1 -29
  578. package/components/SVGIcons/IconOpen.d.ts +1 -1
  579. package/components/SVGIcons/IconOpen.js +1 -32
  580. package/components/SVGIcons/IconOpenFilled.d.ts +1 -1
  581. package/components/SVGIcons/IconOpenFilled.js +1 -32
  582. package/components/SVGIcons/IconPatient.d.ts +1 -1
  583. package/components/SVGIcons/IconPatient.js +1 -29
  584. package/components/SVGIcons/IconPatientFilled.d.ts +1 -1
  585. package/components/SVGIcons/IconPatientFilled.js +1 -29
  586. package/components/SVGIcons/IconPeople.d.ts +1 -1
  587. package/components/SVGIcons/IconPeople.js +1 -29
  588. package/components/SVGIcons/IconPeopleAdd.d.ts +1 -1
  589. package/components/SVGIcons/IconPeopleAdd.js +1 -32
  590. package/components/SVGIcons/IconPeopleAddFilled.d.ts +1 -1
  591. package/components/SVGIcons/IconPeopleAddFilled.js +1 -32
  592. package/components/SVGIcons/IconPeopleFilled.d.ts +1 -1
  593. package/components/SVGIcons/IconPeopleFilled.js +1 -32
  594. package/components/SVGIcons/IconPeopleList.d.ts +1 -1
  595. package/components/SVGIcons/IconPeopleList.js +1 -29
  596. package/components/SVGIcons/IconPeopleListFilled.d.ts +1 -1
  597. package/components/SVGIcons/IconPeopleListFilled.js +1 -29
  598. package/components/SVGIcons/IconPeopleTeam.d.ts +1 -1
  599. package/components/SVGIcons/IconPeopleTeam.js +1 -29
  600. package/components/SVGIcons/IconPeopleTeamFilled.d.ts +1 -1
  601. package/components/SVGIcons/IconPeopleTeamFilled.js +1 -29
  602. package/components/SVGIcons/IconPercent.d.ts +1 -1
  603. package/components/SVGIcons/IconPercent.js +1 -34
  604. package/components/SVGIcons/IconPerson.d.ts +1 -1
  605. package/components/SVGIcons/IconPerson.js +1 -32
  606. package/components/SVGIcons/IconPersonAccount.d.ts +1 -1
  607. package/components/SVGIcons/IconPersonAccount.js +1 -29
  608. package/components/SVGIcons/IconPersonAccountFilled.d.ts +1 -1
  609. package/components/SVGIcons/IconPersonAccountFilled.js +1 -29
  610. package/components/SVGIcons/IconPersonAdd.d.ts +1 -1
  611. package/components/SVGIcons/IconPersonAdd.js +1 -32
  612. package/components/SVGIcons/IconPersonAddFilled.d.ts +1 -1
  613. package/components/SVGIcons/IconPersonAddFilled.js +1 -32
  614. package/components/SVGIcons/IconPersonArrowLeft.d.ts +1 -1
  615. package/components/SVGIcons/IconPersonArrowLeft.js +1 -29
  616. package/components/SVGIcons/IconPersonArrowLeftFilled.d.ts +1 -1
  617. package/components/SVGIcons/IconPersonArrowLeftFilled.js +1 -29
  618. package/components/SVGIcons/IconPersonArrowRight.d.ts +1 -1
  619. package/components/SVGIcons/IconPersonArrowRight.js +1 -29
  620. package/components/SVGIcons/IconPersonArrowRightFilled.d.ts +1 -1
  621. package/components/SVGIcons/IconPersonArrowRightFilled.js +1 -29
  622. package/components/SVGIcons/IconPersonBoard.d.ts +1 -1
  623. package/components/SVGIcons/IconPersonBoard.js +1 -29
  624. package/components/SVGIcons/IconPersonFilled.d.ts +1 -1
  625. package/components/SVGIcons/IconPersonFilled.js +1 -32
  626. package/components/SVGIcons/IconPersonMinus.d.ts +1 -1
  627. package/components/SVGIcons/IconPersonMinus.js +1 -29
  628. package/components/SVGIcons/IconPersonStar.d.ts +1 -1
  629. package/components/SVGIcons/IconPersonStar.js +1 -32
  630. package/components/SVGIcons/IconPersonStarFilled.d.ts +1 -1
  631. package/components/SVGIcons/IconPersonStarFilled.js +1 -32
  632. package/components/SVGIcons/IconPersonSubtract.d.ts +1 -1
  633. package/components/SVGIcons/IconPersonSubtract.js +1 -32
  634. package/components/SVGIcons/IconPersonSubtractFilled.d.ts +1 -1
  635. package/components/SVGIcons/IconPersonSubtractFilled.js +1 -32
  636. package/components/SVGIcons/IconPhone.d.ts +1 -1
  637. package/components/SVGIcons/IconPhone.js +1 -32
  638. package/components/SVGIcons/IconPhoneFilled.d.ts +1 -1
  639. package/components/SVGIcons/IconPhoneFilled.js +1 -32
  640. package/components/SVGIcons/IconPlugConnected.d.ts +1 -1
  641. package/components/SVGIcons/IconPlugConnected.js +1 -29
  642. package/components/SVGIcons/IconPos.d.ts +1 -1
  643. package/components/SVGIcons/IconPos.js +1 -34
  644. package/components/SVGIcons/IconPosFilled.d.ts +1 -1
  645. package/components/SVGIcons/IconPosFilled.js +1 -34
  646. package/components/SVGIcons/IconProhibited.d.ts +1 -1
  647. package/components/SVGIcons/IconProhibited.js +1 -32
  648. package/components/SVGIcons/IconProhibitedFilled.d.ts +1 -1
  649. package/components/SVGIcons/IconProhibitedFilled.js +1 -32
  650. package/components/SVGIcons/IconProjectProduct.d.ts +1 -1
  651. package/components/SVGIcons/IconProjectProduct.js +1 -29
  652. package/components/SVGIcons/IconQuestion.d.ts +1 -1
  653. package/components/SVGIcons/IconQuestion.js +1 -32
  654. package/components/SVGIcons/IconQuestionFilled.d.ts +1 -1
  655. package/components/SVGIcons/IconQuestionFilled.js +1 -32
  656. package/components/SVGIcons/IconRedo.d.ts +1 -1
  657. package/components/SVGIcons/IconRedo.js +1 -32
  658. package/components/SVGIcons/IconRedoFilled.d.ts +1 -1
  659. package/components/SVGIcons/IconRedoFilled.js +1 -32
  660. package/components/SVGIcons/IconRu.d.ts +1 -1
  661. package/components/SVGIcons/IconRu.js +6 -61
  662. package/components/SVGIcons/IconRub.d.ts +1 -1
  663. package/components/SVGIcons/IconRub.js +1 -29
  664. package/components/SVGIcons/IconRubFilled.d.ts +1 -1
  665. package/components/SVGIcons/IconRubFilled.js +1 -29
  666. package/components/SVGIcons/IconSave.d.ts +1 -1
  667. package/components/SVGIcons/IconSave.js +1 -32
  668. package/components/SVGIcons/IconSaveFilled.d.ts +1 -1
  669. package/components/SVGIcons/IconSaveFilled.js +1 -32
  670. package/components/SVGIcons/IconSavings.d.ts +1 -1
  671. package/components/SVGIcons/IconSavings.js +1 -32
  672. package/components/SVGIcons/IconSavingsFilled.d.ts +1 -1
  673. package/components/SVGIcons/IconSavingsFilled.js +1 -32
  674. package/components/SVGIcons/IconSearch.d.ts +1 -1
  675. package/components/SVGIcons/IconSearch.js +1 -32
  676. package/components/SVGIcons/IconSearchFilled.d.ts +1 -1
  677. package/components/SVGIcons/IconSearchFilled.js +1 -32
  678. package/components/SVGIcons/IconSelectAllOff.d.ts +1 -1
  679. package/components/SVGIcons/IconSelectAllOff.js +1 -32
  680. package/components/SVGIcons/IconSelectAllOffFilled.d.ts +1 -1
  681. package/components/SVGIcons/IconSelectAllOffFilled.js +1 -32
  682. package/components/SVGIcons/IconSelectAllOn.d.ts +1 -1
  683. package/components/SVGIcons/IconSelectAllOn.js +1 -32
  684. package/components/SVGIcons/IconSelectAllOnFilled.d.ts +1 -1
  685. package/components/SVGIcons/IconSelectAllOnFilled.js +1 -32
  686. package/components/SVGIcons/IconSend.d.ts +1 -1
  687. package/components/SVGIcons/IconSend.js +1 -32
  688. package/components/SVGIcons/IconSendFilled.d.ts +1 -1
  689. package/components/SVGIcons/IconSendFilled.js +1 -32
  690. package/components/SVGIcons/IconSettings.d.ts +1 -1
  691. package/components/SVGIcons/IconSettings.js +1 -29
  692. package/components/SVGIcons/IconSettingsFilled.d.ts +1 -1
  693. package/components/SVGIcons/IconSettingsFilled.js +1 -32
  694. package/components/SVGIcons/IconShare.d.ts +1 -1
  695. package/components/SVGIcons/IconShare.js +1 -32
  696. package/components/SVGIcons/IconShareAndroid.d.ts +1 -1
  697. package/components/SVGIcons/IconShareAndroid.js +1 -32
  698. package/components/SVGIcons/IconShareAndroidFilled.d.ts +1 -1
  699. package/components/SVGIcons/IconShareAndroidFilled.js +1 -32
  700. package/components/SVGIcons/IconShareFilled.d.ts +1 -1
  701. package/components/SVGIcons/IconShareFilled.js +1 -32
  702. package/components/SVGIcons/IconSignOut.d.ts +1 -1
  703. package/components/SVGIcons/IconSignOut.js +1 -32
  704. package/components/SVGIcons/IconSignOutFilled.d.ts +1 -1
  705. package/components/SVGIcons/IconSignOutFilled.js +1 -32
  706. package/components/SVGIcons/IconSpinner.d.ts +1 -1
  707. package/components/SVGIcons/IconSpinner.js +1 -32
  708. package/components/SVGIcons/IconSpinnerFilled.d.ts +1 -1
  709. package/components/SVGIcons/IconSpinnerFilled.js +1 -32
  710. package/components/SVGIcons/IconStatus.d.ts +1 -1
  711. package/components/SVGIcons/IconStatus.js +1 -32
  712. package/components/SVGIcons/IconStatusFilled.d.ts +1 -1
  713. package/components/SVGIcons/IconStatusFilled.js +1 -32
  714. package/components/SVGIcons/IconSubtract.d.ts +1 -1
  715. package/components/SVGIcons/IconSubtract.js +1 -32
  716. package/components/SVGIcons/IconSubtractCircle.d.ts +1 -1
  717. package/components/SVGIcons/IconSubtractCircle.js +1 -32
  718. package/components/SVGIcons/IconSubtractCircleFilled.d.ts +1 -1
  719. package/components/SVGIcons/IconSubtractCircleFilled.js +1 -32
  720. package/components/SVGIcons/IconSubtractFilled.d.ts +1 -1
  721. package/components/SVGIcons/IconSubtractFilled.js +1 -32
  722. package/components/SVGIcons/IconTableCellEdit.d.ts +1 -1
  723. package/components/SVGIcons/IconTableCellEdit.js +3 -36
  724. package/components/SVGIcons/IconTableCellEditFilled.d.ts +1 -1
  725. package/components/SVGIcons/IconTableCellEditFilled.js +5 -42
  726. package/components/SVGIcons/IconTelegram.d.ts +1 -1
  727. package/components/SVGIcons/IconTelegram.js +3 -41
  728. package/components/SVGIcons/IconTimer.d.ts +1 -1
  729. package/components/SVGIcons/IconTimer.js +1 -32
  730. package/components/SVGIcons/IconTimerFilled.d.ts +1 -1
  731. package/components/SVGIcons/IconTimerFilled.js +1 -32
  732. package/components/SVGIcons/IconTrophy.d.ts +1 -1
  733. package/components/SVGIcons/IconTrophy.js +1 -29
  734. package/components/SVGIcons/IconTrophyFilled.d.ts +1 -1
  735. package/components/SVGIcons/IconTrophyFilled.js +1 -29
  736. package/components/SVGIcons/IconTwitter.d.ts +1 -1
  737. package/components/SVGIcons/IconTwitter.js +1 -32
  738. package/components/SVGIcons/IconUndo.d.ts +1 -1
  739. package/components/SVGIcons/IconUndo.js +1 -32
  740. package/components/SVGIcons/IconUndoFilled.d.ts +1 -1
  741. package/components/SVGIcons/IconUndoFilled.js +1 -32
  742. package/components/SVGIcons/IconUnitsEmployee.d.ts +1 -1
  743. package/components/SVGIcons/IconUnitsEmployee.js +1 -29
  744. package/components/SVGIcons/IconUpload.d.ts +1 -1
  745. package/components/SVGIcons/IconUpload.js +1 -29
  746. package/components/SVGIcons/IconUs.d.ts +1 -1
  747. package/components/SVGIcons/IconUs.js +11 -72
  748. package/components/SVGIcons/IconUsd.d.ts +1 -1
  749. package/components/SVGIcons/IconUsd.js +1 -29
  750. package/components/SVGIcons/IconUsdFilled.d.ts +1 -1
  751. package/components/SVGIcons/IconUsdFilled.js +1 -29
  752. package/components/SVGIcons/IconUserMinus.d.ts +1 -1
  753. package/components/SVGIcons/IconUserMinus.js +1 -32
  754. package/components/SVGIcons/IconVideo.d.ts +1 -1
  755. package/components/SVGIcons/IconVideo.js +1 -29
  756. package/components/SVGIcons/IconVideoFilled.d.ts +1 -1
  757. package/components/SVGIcons/IconVideoFilled.js +1 -29
  758. package/components/SVGIcons/IconWallet.d.ts +1 -1
  759. package/components/SVGIcons/IconWallet.js +1 -32
  760. package/components/SVGIcons/IconWalletFilled.d.ts +1 -1
  761. package/components/SVGIcons/IconWalletFilled.js +1 -32
  762. package/components/SVGIcons/IconWarning.d.ts +1 -1
  763. package/components/SVGIcons/IconWarning.js +1 -29
  764. package/components/SVGIcons/IconWarningFilled.d.ts +1 -1
  765. package/components/SVGIcons/IconWarningFilled.js +1 -29
  766. package/components/SVGIcons/IconYoutube.d.ts +1 -1
  767. package/components/SVGIcons/IconYoutube.js +1 -32
  768. package/components/SVGIcons/icon-names.js +1 -3
  769. package/components/SVGIcons/index.d.ts +319 -319
  770. package/components/SVGIcons/index.js +1 -322
  771. package/components/Select/ButtonSelect/ButtonSelect.js +3 -200
  772. package/components/Select/FilterSelect/FilterDropdown.js +3 -98
  773. package/components/Select/FilterSelect/FilterGroupDropdown.js +4 -85
  774. package/components/Select/FilterSelect/FilterSelect.js +4 -204
  775. package/components/Select/MultiSelect/DesktopWrapper.js +1 -56
  776. package/components/Select/MultiSelect/MobileWrapper.js +2 -80
  777. package/components/Select/MultiSelect/MultiBase/MultiBase.js +5 -216
  778. package/components/Select/MultiSelect/MultiSelect.js +3 -251
  779. package/components/Select/MultiSelect/MultiSelectGrouped/MultiSelectGrouped.js +7 -270
  780. package/components/Select/MultiSelect/MultiSelectWithTabs/MultiSelectWithTabs.js +7 -255
  781. package/components/Select/MultiSelect/OptionsWrapper.js +1 -179
  782. package/components/Select/NestedSelect/NestedSelect.js +4 -202
  783. package/components/Select/ProfileDropdown/index.js +10 -83
  784. package/components/Select/Select/Select.js +2 -259
  785. package/components/Select/Select/SelectDesktop/index.js +2 -225
  786. package/components/Select/Select/SelectMobile/MobileTopContent.js +2 -93
  787. package/components/Select/Select/SelectMobile/index.js +5 -198
  788. package/components/Select/Select/helpers.js +1 -10
  789. package/components/Select/SharedComponents/Actions.js +3 -118
  790. package/components/Select/SharedComponents/ButtonSelectWrapper/Button/Button.js +3 -44
  791. package/components/Select/SharedComponents/ButtonSelectWrapper/ButtonSelectWrapper.js +3 -134
  792. package/components/Select/SharedComponents/ContentTop.js +3 -181
  793. package/components/Select/SharedComponents/Footer.js +6 -101
  794. package/components/Select/SharedComponents/InputSelectWrapper/InputSelectWrapper.js +3 -168
  795. package/components/Select/SharedComponents/Loading.js +2 -17
  796. package/components/Select/SharedComponents/index.js +1 -94
  797. package/components/Select/constants.js +1 -9
  798. package/components/Select/index.js +1 -116
  799. package/components/Select/localization.js +1 -31
  800. package/components/SideSheet/Footer/Footer.js +5 -103
  801. package/components/SideSheet/SideSheet.js +8 -213
  802. package/components/SideSheet/index.js +1 -58
  803. package/components/Snackbar/Snackbar.js +5 -125
  804. package/components/Snackbar/consts.js +1 -15
  805. package/components/Snackbar/index.js +1 -56
  806. package/components/Status/Status.js +4 -53
  807. package/components/Status/index.js +1 -8
  808. package/components/Stepper/Stepper.js +2 -45
  809. package/components/Stepper/index.js +1 -3
  810. package/components/Switcher/Switcher.js +5 -124
  811. package/components/Switcher/index.js +1 -56
  812. package/components/Tab/Tab.js +2 -39
  813. package/components/Tab/TabItem.js +3 -54
  814. package/components/Tab/index.js +1 -11
  815. package/components/Table/Header.js +4 -134
  816. package/components/Table/IndeterminateCheckbox.js +1 -84
  817. package/components/Table/Row.js +3 -109
  818. package/components/Table/Table.js +6 -206
  819. package/components/Table/index.js +1 -65
  820. package/components/Table/localization.js +1 -13
  821. package/components/Table/utils.js +3 -106
  822. package/components/TableV2/AdvancedPagination.js +12 -273
  823. package/components/TableV2/ColumnHeader.js +6 -64
  824. package/components/TableV2/ColumnSettings.js +8 -166
  825. package/components/TableV2/IndeterminateCheckbox.js +2 -87
  826. package/components/TableV2/Table.js +8 -322
  827. package/components/TableV2/constants/index.js +1 -23
  828. package/components/TableV2/hooks/useTableColumnSettings.js +1 -20
  829. package/components/TableV2/hooks/useTableControl.js +1 -308
  830. package/components/TableV2/index.js +1 -134
  831. package/components/TableV2/loadTableSettings.js +1 -18
  832. package/components/Text/Text.js +2 -36
  833. package/components/Text/index.js +1 -5
  834. package/components/Textarea/Textarea.js +6 -146
  835. package/components/Textarea/index.js +1 -58
  836. package/components/Tooltip/Tooltip.js +1 -103
  837. package/components/Tooltip/index.js +1 -18
  838. package/components/Tooltip/types.js +1 -13
  839. package/components/UnderConstruction/UnderConstruction.js +6 -38
  840. package/components/UnderConstruction/index.js +1 -8
  841. package/components/UnderConstruction/localization.js +1 -16
  842. package/consts/index.js +1 -67
  843. package/context/FormContextProvider.js +1 -12
  844. package/context/index.js +1 -5
  845. package/context/types.js +1 -12
  846. package/helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js +2 -15
  847. package/helperComponents/AnimatePresenceWrapper/index.js +1 -3
  848. package/helperComponents/CodeBlock/CodeBlock.js +2 -25
  849. package/helperComponents/CodeBlock/index.js +1 -4
  850. package/helperComponents/ErrorMessage/ErrorMessage.js +2 -27
  851. package/helperComponents/ErrorMessage/index.js +1 -8
  852. package/helperComponents/GoToWebPage/GoToWebPage.js +1 -69
  853. package/helperComponents/Label/Label.js +1 -29
  854. package/helperComponents/Label/index.js +1 -6
  855. package/helperComponents/Loader/Loader.js +2 -15
  856. package/helperComponents/Loader/index.js +1 -2
  857. package/helperComponents/OptionItem/OptionItem.js +5 -152
  858. package/helperComponents/OptionItem/index.js +1 -66
  859. package/helpers/check-authorization.js +1 -116
  860. package/helpers/download-file.js +1 -10
  861. package/helpers/format-date.js +1 -25
  862. package/helpers/get-module-prefix.js +1 -6
  863. package/helpers/index.js +1 -61
  864. package/helpers/isDeepEqual.js +1 -18
  865. package/helpers/locale.js +1 -17
  866. package/helpers/storage.js +1 -20
  867. package/hooks/index.js +1 -21
  868. package/hooks/useChangePositionsOnScroll.js +1 -34
  869. package/hooks/useDispatchEventOnScroll.js +1 -14
  870. package/hooks/useFieldArray.js +1 -1
  871. package/hooks/useFormContext.js +1 -10
  872. package/hooks/useFormProps.js +1 -10
  873. package/hooks/useGetElemPositions.js +1 -19
  874. package/hooks/useGetElemSizes.js +1 -16
  875. package/hooks/useGetHasBottomSpace.js +1 -26
  876. package/hooks/useGetIsMobile.js +1 -49
  877. package/hooks/useGetTooltipPosition.js +1 -85
  878. package/hooks/useGetTooltipStyles.js +1 -89
  879. package/hooks/useHideBodyScroll.js +1 -35
  880. package/hooks/useHideOnScroll.js +1 -27
  881. package/hooks/useOnOutsideClick.js +1 -52
  882. package/hooks/useScreenSize.js +1 -38
  883. package/index.js +1 -518
  884. package/package.json +6 -4
  885. package/type/file-upload.js +1 -8
  886. package/type/index.js +1 -4
  887. package/type/locale.js +1 -14
  888. package/type/notification.js +1 -9
  889. package/type/status-code.js +1 -9
  890. package/types.d.js +0 -1
  891. package/utils/helpers.js +1 -89
  892. package/Alert-C_U8td2x.js +0 -761
  893. package/assets/images/under-construction.svg +0 -9
  894. package/assets/styles/styles.scss +0 -1
  895. package/components/Alert/types.js +0 -1
  896. package/components/Avatar/types.js +0 -1
  897. package/components/Badge/types.js +0 -1
  898. package/components/Breadcrumb/types.js +0 -1
  899. package/components/Button/types.js +0 -1
  900. package/components/ButtonGroup/types.js +0 -1
  901. package/components/Card/types.js +0 -1
  902. package/components/CardGroup/types.js +0 -1
  903. package/components/Checkbox/types.js +0 -1
  904. package/components/Collapse/types.js +0 -1
  905. package/components/Container/types.js +0 -1
  906. package/components/Copy/types.js +0 -1
  907. package/components/Counter/types.js +0 -1
  908. package/components/Divider/types.js +0 -1
  909. package/components/Empty/types.js +0 -1
  910. package/components/FormContainer/types.js +0 -1
  911. package/components/FormField/types.js +0 -1
  912. package/components/Heading/types.js +0 -1
  913. package/components/Image/types.js +0 -1
  914. package/components/Input/types.js +0 -1
  915. package/components/Link/types.js +0 -1
  916. package/components/Menu/types.js +0 -1
  917. package/components/Modal/types.js +0 -1
  918. package/components/More/types.js +0 -1
  919. package/components/Pagination/types.js +0 -1
  920. package/components/Popover/types.js +0 -1
  921. package/components/Progress/types.js +0 -1
  922. package/components/Radio/types.js +0 -1
  923. package/components/SVGIcons/types.js +0 -1
  924. package/components/Select/types.js +0 -1
  925. package/components/SideSheet/types.js +0 -1
  926. package/components/Snackbar/types.js +0 -1
  927. package/components/Status/types.js +0 -1
  928. package/components/Stepper/types.js +0 -1
  929. package/components/Switcher/types.js +0 -1
  930. package/components/Tab/types.js +0 -1
  931. package/components/Table/types.js +0 -1
  932. package/components/TableV2/types.js +0 -1
  933. package/components/Text/types.js +0 -1
  934. package/components/Textarea/types.js +0 -1
  935. package/components/UnderConstruction/types.js +0 -1
  936. package/helperComponents/ErrorMessage/types.js +0 -1
  937. package/helperComponents/Label/types.js +0 -1
  938. package/helperComponents/Loader/types.js +0 -1
  939. package/helperComponents/OptionItem/types.js +0 -1
  940. package/helperComponents/index.d.ts +0 -5
  941. package/helperComponents/index.js +0 -67
package/Alert-C_U8td2x.js DELETED
@@ -1,761 +0,0 @@
1
- import _extends from '@babel/runtime/helpers/extends';
2
- import React, { useMemo, forwardRef, useState, useCallback, useId, useEffect, useRef } from 'react';
3
- import { TYPE_MAPPING, ICONS_MAPPING } from './components/Alert/consts.js';
4
- import classNames from 'classnames';
5
- import { Text } from './components/Text/Text.js';
6
- import _defineProperty from '@babel/runtime/helpers/defineProperty';
7
- import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
8
- import 'dayjs';
9
- import { Loader } from './helperComponents/Loader/Loader.js';
10
- import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
11
- import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
12
- import { FILE_ACCEPT_TYPE } from './consts/index.js';
13
- import './hooks/useScreenSize.js';
14
- import 'react-hook-form';
15
- import { ErrorCode, useDropzone } from 'react-dropzone';
16
- import { IconUpload } from './components/SVGIcons/IconUpload.js';
17
- import { FileTypeEnum } from './type/file-upload.js';
18
- import { FileUploadMode } from './components/FileUpload/types.js';
19
- import './helpers/format-date.js';
20
- import { getTranslationLocale } from './helpers/locale.js';
21
- import 'react-toastify';
22
- import { useIsMobile } from './hooks/useGetIsMobile.js';
23
- import { motion } from 'motion/react';
24
- import { AnimatePresenceWrapper } from './helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js';
25
- import { useOnOutsideClick } from './hooks/useOnOutsideClick.js';
26
- import { useHideBodyScroll } from './hooks/useHideBodyScroll.js';
27
- import { IconDismiss } from './components/SVGIcons/IconDismiss.js';
28
- import { Positions } from './components/Tooltip/types.js';
29
- import { Tooltip } from './components/Tooltip/Tooltip.js';
30
- import { uniqueFiles, noop } from './utils/helpers.js';
31
- import 'react-syntax-highlighter';
32
- import 'react-syntax-highlighter/dist/esm/styles/prism';
33
- import { Link } from './components/Link/Link.js';
34
- import { PopoverDesktop } from './components/Popover/PopoverDesktop.js';
35
- import { IconInfo } from './components/SVGIcons/IconInfo.js';
36
- import { IconDynamicComponent } from './components/IconDynamicComponent/IconDynamicComponent.js';
37
- import 'react-toastify/dist/ReactToastify.css';
38
- import '@babel/runtime/helpers/typeof';
39
- import { IconDismissFilled } from './components/SVGIcons/IconDismissFilled.js';
40
- import { IconDelete } from './components/SVGIcons/IconDelete.js';
41
- import { FilePreview } from './components/FileUpload/DropzoneFileUpload/FilePreview.js';
42
- import { IconArrowDownloadFilled } from './components/SVGIcons/IconArrowDownloadFilled.js';
43
- import { downloadFile } from './helpers/download-file.js';
44
- import { LITE_LOADER_TYPES, ICON_TYPE_MAPPING, ICON_SIZE_MAPPING } from './components/Button/consts.js';
45
-
46
- var shortenFileName = function shortenFileName(fileName, maxLength) {
47
- // Regular expression to split the name into three parts: start, middle, and extension
48
- var regex = /^(.{10}).*?(.{10}\.[^.]*)$/;
49
-
50
- // If the file name length exceeds maxLength, shorten it
51
- if (fileName.length > maxLength) {
52
- return fileName.replace(regex, '$1...$2');
53
- }
54
-
55
- // If it's short enough, return as is
56
- return fileName;
57
- };
58
- var formatFileSize = function formatFileSize(sizeInBytes) {
59
- var fractionDigits = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
60
- if (sizeInBytes < 1024) {
61
- return "".concat(sizeInBytes, " B"); // Bytes
62
- } else if (sizeInBytes < 1024 * 1024) {
63
- return "".concat((sizeInBytes / 1024).toFixed(fractionDigits), " KB"); // Kilobytes
64
- } else if (sizeInBytes < 1024 * 1024 * 1024) {
65
- return "".concat((sizeInBytes / (1024 * 1024)).toFixed(fractionDigits), " MB"); // Megabytes
66
- } else {
67
- return "".concat((sizeInBytes / (1024 * 1024 * 1024)).toFixed(fractionDigits), " GB"); // Gigabytes
68
- }
69
- };
70
- var generateAreaContent = function generateAreaContent(_ref) {
71
- var allowedTypes = _ref.allowedTypes,
72
- maxSize = _ref.maxSize,
73
- locale = _ref.locale;
74
- var acceptTypes = allowedTypes.map(function (type) {
75
- return FILE_ACCEPT_TYPE[type];
76
- }).flat();
77
- var translation = getDropzoneLocale(locale);
78
- var acceptTypesMessage = allowedTypes.length === 1 ? allowedTypes[0] : allowedTypes.reduce(function (acc, currentValue, _index, _arr) {
79
- if (_index === _arr.length - 1) {
80
- return "".concat(acc, " ").concat(translation.or, " ").concat(currentValue);
81
- }
82
- return acc ? "".concat(acc, ", ").concat(currentValue) : currentValue;
83
- }, '');
84
- return {
85
- acceptTypes: acceptTypes,
86
- maxSizeFormatted: formatFileSize(maxSize),
87
- acceptTypesMessage: acceptTypesMessage
88
- };
89
- };
90
- var getDropzoneLocale = function getDropzoneLocale(lang) {
91
- var locale = lang || getTranslationLocale();
92
- var translation = {
93
- en: {
94
- title: 'Choose a file or drop it here',
95
- format: 'format',
96
- formats: 'formats',
97
- maxSize: 'Maximum size up to $1.',
98
- fileInvalidType: 'The file type should be $1',
99
- fileTooLarge: 'The file is too large (Max $1)',
100
- tooManyFiles: 'Too many files. Please select one file.',
101
- or: 'or'
102
- },
103
- ru: {
104
- title: 'Выберите файл или перетащите его сюда',
105
- format: 'формат',
106
- formats: 'форматы',
107
- maxSize: 'Максимальный размер до $1',
108
- fileInvalidType: 'Тип файла должен быть $1',
109
- fileTooLarge: 'Файл слишком большой (Максимум $1)',
110
- tooManyFiles: 'Слишком много файлов. Пожалуйста, выберите один файл.',
111
- or: 'или'
112
- },
113
- hy: {
114
- title: 'Ընտրեք ֆայլ կամ քաշեք այն այստեղ',
115
- format: 'ֆորմատ',
116
- formats: 'ֆորմատներ',
117
- maxSize: 'Առավելագույն չափը՝ մինչև $1',
118
- fileInvalidType: 'Ֆայլի տեսակը պետք է լինի $1',
119
- fileTooLarge: 'Ֆայլը չափազանց մեծ է (Առավելագույնը $1)',
120
- tooManyFiles: 'Չափազանց շատ ֆայլեր։ Խնդրում ենք ընտրել միայն մեկ ֆայլ։',
121
- or: 'կամ'
122
- }
123
- };
124
- return translation[locale] || translation.en;
125
- };
126
-
127
- var ErrorItem = function ErrorItem(_ref) {
128
- var code = _ref.code,
129
- onRemove = _ref.onRemove,
130
- areaContent = _ref.areaContent,
131
- locale = _ref.locale;
132
- var errorMessage = useMemo(function () {
133
- var translation = getDropzoneLocale(locale);
134
- if (code === ErrorCode.FileInvalidType) {
135
- return translation.fileInvalidType.replace('$1', areaContent.acceptTypesMessage);
136
- } else if (code === ErrorCode.FileTooLarge) {
137
- return translation.fileTooLarge.replace('$1', areaContent.maxSizeFormatted);
138
- } else if (code === ErrorCode.TooManyFiles) {
139
- return translation.tooManyFiles;
140
- }
141
- return '';
142
- }, [code]);
143
- return errorMessage ? /*#__PURE__*/React.createElement(Alert, {
144
- type: "error",
145
- text: errorMessage,
146
- closeIcon: true,
147
- onClose: onRemove
148
- }) : null;
149
- };
150
-
151
- var PreviewItem = function PreviewItem(_ref) {
152
- var file = _ref.file,
153
- onRemove = _ref.onRemove,
154
- mode = _ref.mode;
155
- var type = file.type.split('/')[0];
156
- var preview = useMemo(function () {
157
- return URL.createObjectURL(file);
158
- }, [file.name]);
159
- var handleItemClick = function handleItemClick() {
160
- if (mode === FileUploadMode.view) {
161
- window.open(preview, '_blank');
162
- }
163
- };
164
- var onFileDownload = function onFileDownload(event) {
165
- event.preventDefault();
166
- event.stopPropagation();
167
- downloadFile(preview, file.name);
168
- };
169
- return /*#__PURE__*/React.createElement("div", {
170
- className: classNames('dz-file-upload__files--item', {
171
- 'dz-file-upload__files--item--view': mode === FileUploadMode.view
172
- }),
173
- onClick: handleItemClick
174
- }, /*#__PURE__*/React.createElement("div", {
175
- className: 'dz-file-upload__files--item__preview'
176
- }, /*#__PURE__*/React.createElement(FilePreview, {
177
- preview: preview,
178
- type: type
179
- })), /*#__PURE__*/React.createElement("div", {
180
- className: 'dz-file-upload__files--item__info'
181
- }, /*#__PURE__*/React.createElement("div", {
182
- className: "dz-file-upload__files--item__info-title"
183
- }, /*#__PURE__*/React.createElement(Text, {
184
- weight: "semibold"
185
- }, shortenFileName(file.name, 40)), mode === FileUploadMode.attach && /*#__PURE__*/React.createElement(Button, {
186
- size: "small",
187
- type: "tertiary",
188
- onClick: onRemove,
189
- iconProps: {
190
- Component: IconDelete
191
- }
192
- }), mode === FileUploadMode.view && /*#__PURE__*/React.createElement(Button, {
193
- size: "small",
194
- type: "tertiary",
195
- onClick: onFileDownload,
196
- iconProps: {
197
- Component: IconArrowDownloadFilled
198
- }
199
- })), /*#__PURE__*/React.createElement("div", {
200
- className: "dz-file-upload__files--item__info-size"
201
- }, /*#__PURE__*/React.createElement(Text, {
202
- size: "small"
203
- }, formatFileSize(file.size)))));
204
- };
205
-
206
- var DropzoneFileUpload = /*#__PURE__*/forwardRef(function (_ref2, _ref) {
207
- var _ref2$maxSize = _ref2.maxSize,
208
- maxSize = _ref2$maxSize === void 0 ? 10 * 1024 * 1024 : _ref2$maxSize,
209
- _ref2$allowedTypes = _ref2.allowedTypes,
210
- allowedTypes = _ref2$allowedTypes === void 0 ? [FileTypeEnum.IMAGE, FileTypeEnum.PDF, FileTypeEnum.DOC] : _ref2$allowedTypes,
211
- name = _ref2.name,
212
- setFiles = _ref2.setFiles,
213
- setFieldValue = _ref2.setFieldValue,
214
- value = _ref2.value,
215
- selectedFiles = _ref2.selectedFiles,
216
- _ref2$maxFiles = _ref2.maxFiles,
217
- maxFiles = _ref2$maxFiles === void 0 ? 1 : _ref2$maxFiles,
218
- _ref2$mode = _ref2.mode,
219
- mode = _ref2$mode === void 0 ? FileUploadMode.attach : _ref2$mode,
220
- locale = _ref2.locale,
221
- _ref2$multiple = _ref2.multiple,
222
- multiple = _ref2$multiple === void 0 ? false : _ref2$multiple;
223
- var initialFiles = value || selectedFiles || [];
224
- var initialMaxFiles = initialFiles.length >= maxFiles ? 0 : maxFiles - initialFiles.length;
225
- var _useState = useState([]),
226
- _useState2 = _slicedToArray(_useState, 2),
227
- errors = _useState2[0],
228
- setErrors = _useState2[1];
229
- var areaContent = generateAreaContent({
230
- allowedTypes: allowedTypes,
231
- maxSize: maxSize
232
- });
233
- var translation = getDropzoneLocale(locale);
234
- var onDrop = function onDrop(fileAccepted, fileRejections) {
235
- if (initialMaxFiles === 0 && !multiple) {
236
- setErrors([{
237
- code: ErrorCode.TooManyFiles,
238
- message: ''
239
- }]);
240
- return;
241
- }
242
- var newFiles = uniqueFiles([].concat(_toConsumableArray(initialFiles), _toConsumableArray(fileAccepted)));
243
- var errors = fileRejections.map(function (fileRejection) {
244
- return fileRejection.errors;
245
- }).flat();
246
- setFiles === null || setFiles === void 0 || setFiles(newFiles);
247
- updateInForm(newFiles);
248
- setErrors(errors);
249
- };
250
- var _useDropzone = useDropzone({
251
- onDrop: onDrop,
252
- accept: areaContent.acceptTypes,
253
- maxSize: maxSize,
254
- maxFiles: multiple ? 0 : initialMaxFiles,
255
- multiple: multiple
256
- }),
257
- getRootProps = _useDropzone.getRootProps,
258
- getInputProps = _useDropzone.getInputProps,
259
- isFocused = _useDropzone.isFocused,
260
- isDragActive = _useDropzone.isDragActive;
261
- var removeFile = function removeFile(fileName) {
262
- var newFiles = initialFiles.filter(function (file) {
263
- return file.name !== fileName;
264
- });
265
- if (newFiles.length === 0) {
266
- setErrors([]);
267
- }
268
- setFiles === null || setFiles === void 0 || setFiles(newFiles);
269
- updateInForm(newFiles);
270
- };
271
- var removeError = function removeError(index) {
272
- setErrors(function (prevErrors) {
273
- return prevErrors.filter(function (_error, i) {
274
- return i !== index;
275
- });
276
- });
277
- };
278
- var updateInForm = useCallback(function (values) {
279
- if (name && setFieldValue) {
280
- setFieldValue(name, values);
281
- }
282
- }, [name, setFieldValue]);
283
- return /*#__PURE__*/React.createElement("div", {
284
- className: "dz-file-upload"
285
- }, mode !== FileUploadMode.view ? /*#__PURE__*/React.createElement("div", _extends({}, getRootProps(), {
286
- className: classNames('dz-file-upload__area', {
287
- 'dz-file-upload__area--focused': isFocused,
288
- 'dz-file-upload__area--active': isDragActive
289
- })
290
- }), /*#__PURE__*/React.createElement(IconUpload, {
291
- className: "mb-20",
292
- size: "xlarge"
293
- }), /*#__PURE__*/React.createElement("input", _extends({}, getInputProps(), {
294
- name: name
295
- })), /*#__PURE__*/React.createElement(Text, {
296
- type: "primary",
297
- weight: "semibold",
298
- className: "mb-6"
299
- }, translation.title), /*#__PURE__*/React.createElement(Text, {
300
- size: "small"
301
- }, "".concat(areaContent.acceptTypesMessage, " ").concat((allowedTypes === null || allowedTypes === void 0 ? void 0 : allowedTypes.length) === 1 ? translation.format : translation.formats, ", ").concat(translation.maxSize.replace('$1', areaContent.maxSizeFormatted)))) : null, /*#__PURE__*/React.createElement("div", {
302
- className: "dz-file-upload__files"
303
- }, errors.map(function (_ref3, index) {
304
- var code = _ref3.code;
305
- return /*#__PURE__*/React.createElement(ErrorItem, {
306
- key: index,
307
- code: code,
308
- areaContent: areaContent,
309
- onRemove: function onRemove() {
310
- return removeError(index);
311
- },
312
- locale: locale
313
- });
314
- }), initialFiles.map(function (file, index) {
315
- return /*#__PURE__*/React.createElement(PreviewItem, {
316
- key: index,
317
- file: file,
318
- onRemove: function onRemove() {
319
- return removeFile(file.name);
320
- },
321
- mode: mode
322
- });
323
- })));
324
- });
325
- DropzoneFileUpload.displayName = 'DropzoneFileUpload';
326
-
327
- var ModalContent = function ModalContent(_ref) {
328
- var title = _ref.title,
329
- subtitle = _ref.subtitle,
330
- dataIdPrefix = _ref.dataIdPrefix,
331
- closeIcon = _ref.closeIcon,
332
- onClose = _ref.onClose,
333
- children = _ref.children,
334
- _ref$withFooter = _ref.withFooter,
335
- withFooter = _ref$withFooter === void 0 ? true : _ref$withFooter,
336
- confirmBtnTooltipText = _ref.confirmBtnTooltipText,
337
- buttonProps = _ref.buttonProps,
338
- onSubmit = _ref.onSubmit;
339
- return /*#__PURE__*/React.createElement(React.Fragment, null, title ? /*#__PURE__*/React.createElement("div", {
340
- className: "modal__header"
341
- }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Text, {
342
- lineHeight: "large",
343
- size: "large",
344
- weight: 'bolder',
345
- dataId: dataIdPrefix ? "".concat(dataIdPrefix, "-modal-title") : ''
346
- }, title), subtitle ? /*#__PURE__*/React.createElement(Text, {
347
- className: 'mt-12',
348
- dataId: dataIdPrefix ? "".concat(dataIdPrefix, "-modal-title") : ''
349
- }, subtitle) : null), closeIcon ? /*#__PURE__*/React.createElement(Button, {
350
- className: 'modal__close ml-16',
351
- dataId: dataIdPrefix ? "".concat(dataIdPrefix, "-modal-close-button") : '',
352
- iconProps: {
353
- Component: IconDismiss
354
- },
355
- onClick: onClose,
356
- type: "tertiary"
357
- }) : null) : null, /*#__PURE__*/React.createElement("div", {
358
- className: "modal__content scrollbar scrollbar--vertical"
359
- }, children), withFooter && buttonProps ? /*#__PURE__*/React.createElement("div", {
360
- className: "modal__footer"
361
- }, buttonProps.cancel && /*#__PURE__*/React.createElement(Button, _extends({
362
- type: "tertiary",
363
- className: "modal__footer__btn mr-16",
364
- onClick: onClose,
365
- dataId: dataIdPrefix ? "".concat(dataIdPrefix, "-modal-cancel-button") : ''
366
- }, buttonProps.cancel || {})), confirmBtnTooltipText ? /*#__PURE__*/React.createElement(Tooltip, {
367
- text: confirmBtnTooltipText,
368
- id: 'confirm-btn-tooltip',
369
- position: Positions.TOP_CENTER
370
- }) : null, /*#__PURE__*/React.createElement(Button, _extends({
371
- id: 'confirm-btn-tooltip',
372
- className: 'modal__footer__btn',
373
- type: "primary",
374
- onClick: onSubmit ? onSubmit : noop,
375
- dataId: dataIdPrefix ? "".concat(dataIdPrefix, "-modal-confirm-button") : ''
376
- }, buttonProps.confirm))) : null);
377
- };
378
-
379
- var _excluded$2 = ["isOpen", "onClose", "className", "size", "closeOnOutsideClick", "isMobileFullScreen"];
380
- var DESKTOP_ANIMATION = {
381
- initial: {
382
- opacity: 0.5,
383
- scale: 0.65
384
- },
385
- animate: {
386
- opacity: 1,
387
- scale: [0.95, 1]
388
- },
389
- exit: {
390
- opacity: 0,
391
- scale: 0.7,
392
- transition: {
393
- duration: 0.2
394
- }
395
- },
396
- transition: {
397
- duration: 0.4,
398
- type: 'spring',
399
- damping: 55,
400
- stiffness: 700
401
- }
402
- };
403
- var MOBILE_ANIMATION = function MOBILE_ANIMATION(isFullScreen) {
404
- return {
405
- initial: {
406
- height: 0,
407
- bottom: 0
408
- },
409
- animate: {
410
- height: isFullScreen ? '100%' : 'auto',
411
- bottom: 0
412
- },
413
- exit: {
414
- height: 0,
415
- bottom: 0
416
- },
417
- transition: {
418
- duration: 0.3
419
- }
420
- };
421
- };
422
- var Modal = function Modal(props) {
423
- var isOpen = props.isOpen,
424
- onClose = props.onClose,
425
- _props$className = props.className,
426
- className = _props$className === void 0 ? '' : _props$className,
427
- _props$size = props.size,
428
- size = _props$size === void 0 ? 'medium' : _props$size,
429
- _props$closeOnOutside = props.closeOnOutsideClick,
430
- closeOnOutsideClick = _props$closeOnOutside === void 0 ? true : _props$closeOnOutside,
431
- isMobileFullScreen = props.isMobileFullScreen,
432
- rest = _objectWithoutProperties(props, _excluded$2);
433
- var isMobile = useIsMobile();
434
- var _useState = useState(null),
435
- _useState2 = _slicedToArray(_useState, 2),
436
- containerRef = _useState2[0],
437
- setContainerRef = _useState2[1];
438
- useOnOutsideClick(containerRef, onClose, closeOnOutsideClick && isOpen, useId());
439
- useHideBodyScroll(isOpen);
440
- return /*#__PURE__*/React.createElement(AnimatePresenceWrapper, null, isOpen ? /*#__PURE__*/React.createElement(motion.div, {
441
- className: classNames('modal', "modal--".concat(size), className),
442
- initial: {
443
- opacity: 0
444
- },
445
- animate: {
446
- opacity: 1
447
- },
448
- exit: {
449
- opacity: 0
450
- },
451
- transition: {
452
- duration: isMobile ? 0 : 0.4
453
- }
454
- }, /*#__PURE__*/React.createElement(motion.div, _extends({
455
- className: classNames('modal__container', {
456
- modal__container_fullScreen: isMobile && isMobileFullScreen
457
- }),
458
- ref: setContainerRef
459
- }, isMobile ? MOBILE_ANIMATION(isMobileFullScreen) : DESKTOP_ANIMATION), /*#__PURE__*/React.createElement(ModalContent, _extends({}, rest, {
460
- onClose: onClose
461
- })))) : null);
462
- };
463
-
464
- var PopoverMobile = function PopoverMobile(props) {
465
- var dataId = props.dataId,
466
- text = props.text,
467
- linkAddons = props.linkAddons,
468
- mobileTitle = props.mobileTitle,
469
- hideMessage = props.hideMessage,
470
- _props$clicked = props.clicked,
471
- clicked = _props$clicked === void 0 ? false : _props$clicked,
472
- children = props.children;
473
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Modal, {
474
- closeIcon: true,
475
- title: mobileTitle,
476
- onClose: hideMessage,
477
- isOpen: clicked
478
- }, clicked && /*#__PURE__*/React.createElement(React.Fragment, null, linkAddons ? /*#__PURE__*/React.createElement(Link, {
479
- dataId: linkAddons.dataId,
480
- url: linkAddons.url,
481
- beforeLink: linkAddons.beforeLink,
482
- afterLink: linkAddons.afterLink,
483
- target: linkAddons.target,
484
- className: 'popover__link'
485
- }, text) : /*#__PURE__*/React.createElement(Text, {
486
- dataId: dataId ? "".concat(dataId, "-popover-text") : '',
487
- type: "primary",
488
- weight: "regular",
489
- lineHeight: "medium",
490
- size: "small"
491
- }, text))), children);
492
- };
493
-
494
- var _excluded$1 = ["elemRef", "id", "clicked", "stopPropagation"];
495
- var Popover = function Popover(props) {
496
- var elemRef = props.elemRef,
497
- id = props.id,
498
- _props$clicked = props.clicked,
499
- clicked = _props$clicked === void 0 ? false : _props$clicked,
500
- stopPropagation = props.stopPropagation,
501
- rest = _objectWithoutProperties(props, _excluded$1);
502
- var isMobile = useIsMobile();
503
- var _useState = useState(clicked),
504
- _useState2 = _slicedToArray(_useState, 2),
505
- isClicked = _useState2[0],
506
- setIsClicked = _useState2[1];
507
- var _useState3 = useState(elemRef || null),
508
- _useState4 = _slicedToArray(_useState3, 2),
509
- parent = _useState4[0],
510
- setElement = _useState4[1];
511
- var showMessage = function showMessage(evnt) {
512
- if (stopPropagation) evnt.stopImmediatePropagation();
513
- setIsClicked(true);
514
- };
515
- var hideMessage = function hideMessage() {
516
- return setIsClicked(false);
517
- };
518
- useEffect(function () {
519
- if (parent) {
520
- parent.addEventListener('click', showMessage);
521
- }
522
- }, [parent]);
523
- useEffect(function () {
524
- if (id) {
525
- var element = document.getElementById(id.toString());
526
- setElement(element);
527
- }
528
- }, [id]);
529
- useEffect(function () {
530
- if (clicked === false) {
531
- setIsClicked(clicked);
532
- }
533
- }, [clicked]);
534
- return isMobile ? /*#__PURE__*/React.createElement(PopoverMobile, _extends({}, rest, {
535
- clicked: isClicked,
536
- hideMessage: hideMessage
537
- })) : /*#__PURE__*/React.createElement(PopoverDesktop, _extends({}, rest, {
538
- parent: parent,
539
- clicked: isClicked,
540
- showMessage: showMessage,
541
- hideMessage: hideMessage
542
- }));
543
- };
544
-
545
- var Checkbox = /*#__PURE__*/forwardRef(function (props, ref) {
546
- var label = props.label,
547
- disabled = props.disabled,
548
- _props$required = props.required,
549
- required = _props$required === void 0 ? false : _props$required,
550
- link = props.link,
551
- name = props.name,
552
- setFieldValue = props.setFieldValue,
553
- selectedValue = props.selectedValue,
554
- value = props.value,
555
- _props$className = props.className,
556
- className = _props$className === void 0 ? '' : _props$className,
557
- _props$iconProps = props.iconProps,
558
- iconProps = _props$iconProps === void 0 ? {
559
- name: 'checkmark'
560
- } : _props$iconProps,
561
- _props$dataId = props.dataId,
562
- dataId = _props$dataId === void 0 ? '' : _props$dataId,
563
- onClick = props.onClick,
564
- beforeLink = props.beforeLink,
565
- afterLink = props.afterLink,
566
- _props$helperText = props.helperText,
567
- helperText = _props$helperText === void 0 ? '' : _props$helperText,
568
- popoverAddons = props.popoverAddons,
569
- isInvalid = props.isInvalid,
570
- _props$stopPropagatio = props.stopPropagation,
571
- stopPropagation = _props$stopPropagatio === void 0 ? false : _props$stopPropagatio;
572
- var localRef = useRef(null);
573
- var inputRef = ref && Object.keys(ref).length ? ref : localRef;
574
- var isChecked = !!value || selectedValue;
575
- var changeHandler = function changeHandler(e) {
576
- stopPropagation && e.stopPropagation();
577
- if (name && setFieldValue) {
578
- setFieldValue(name, !isChecked, {
579
- shouldValidate: !isChecked
580
- });
581
- }
582
- if (onClick) {
583
- onClick(!isChecked);
584
- }
585
- };
586
- var checkboxLabelPopover = popoverAddons ? /*#__PURE__*/React.createElement(Popover, _extends({
587
- id: "".concat(popoverAddons.id)
588
- }, popoverAddons), /*#__PURE__*/React.createElement("div", {
589
- id: "".concat(popoverAddons.id)
590
- }, /*#__PURE__*/React.createElement(IconInfo, {
591
- dataId: "".concat(dataId, "-icon"),
592
- type: "information",
593
- size: "xsmall",
594
- className: 'ml-4 pointer',
595
- onClick: changeHandler
596
- }))) : null;
597
- var checkboxLabel = useMemo(function () {
598
- if (!label) {
599
- return null;
600
- }
601
- if (typeof label !== 'string') {
602
- return label;
603
- }
604
- if (!link) {
605
- return /*#__PURE__*/React.createElement(Text, {
606
- type: disabled ? 'disabled' : 'primary',
607
- className: "controller__label"
608
- }, /*#__PURE__*/React.createElement(React.Fragment, null, label, required && /*#__PURE__*/React.createElement("sup", null, "*")));
609
- }
610
- return /*#__PURE__*/React.createElement(Text, {
611
- type: disabled ? 'disabled' : 'primary',
612
- className: "controller__label"
613
- }, /*#__PURE__*/React.createElement(React.Fragment, null, beforeLink && /*#__PURE__*/React.createElement("span", {
614
- className: "mr-4"
615
- }, beforeLink), /*#__PURE__*/React.createElement(Link, {
616
- dataId: dataId,
617
- url: link,
618
- target: "_blank"
619
- }, label), afterLink && /*#__PURE__*/React.createElement("span", {
620
- className: "ml-4"
621
- }, afterLink), required && /*#__PURE__*/React.createElement("sup", null, "*")));
622
- }, [label, link]);
623
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("label", {
624
- className: classNames('controller', _defineProperty({
625
- 'controller--checkbox': true,
626
- 'controller--disabled': disabled,
627
- 'controller--error': isInvalid
628
- }, className, !!className)),
629
- onClick: function onClick(e) {
630
- return stopPropagation && e.stopPropagation();
631
- }
632
- }, /*#__PURE__*/React.createElement("input", {
633
- "data-id": dataId,
634
- type: "checkbox",
635
- ref: inputRef,
636
- tabIndex: 0,
637
- onChange: changeHandler,
638
- checked: Boolean(isChecked),
639
- disabled: disabled
640
- }), /*#__PURE__*/React.createElement("span", {
641
- className: "controller__icon"
642
- }, /*#__PURE__*/React.createElement(IconDynamicComponent, {
643
- componentName: iconProps.name,
644
- size: "xxsmall",
645
- type: disabled ? 'disabled' : 'inverse',
646
- className: "controller__mark"
647
- })), checkboxLabel ? /*#__PURE__*/React.createElement("div", {
648
- className: "controller__right"
649
- }, /*#__PURE__*/React.createElement("div", {
650
- className: "flexbox"
651
- }, checkboxLabel, checkboxLabelPopover), helperText ? /*#__PURE__*/React.createElement(Text, {
652
- size: "small",
653
- type: disabled ? 'disabled' : 'secondary'
654
- }, helperText) : null) : null));
655
- });
656
- Checkbox.displayName = 'Checkbox';
657
-
658
- var _excluded = ["buttonText", "type", "size", "className", "iconProps", "buttonActionType", "disabled", "pressed", "isLoading", "formId", "dataId", "onClick", "refHandler", "children"];
659
- var Button = function Button(props) {
660
- var buttonText = props.buttonText,
661
- _props$type = props.type,
662
- type = _props$type === void 0 ? 'primary' : _props$type,
663
- _props$size = props.size,
664
- size = _props$size === void 0 ? 'large' : _props$size,
665
- _props$className = props.className,
666
- className = _props$className === void 0 ? '' : _props$className,
667
- iconProps = props.iconProps,
668
- _props$buttonActionTy = props.buttonActionType,
669
- buttonActionType = _props$buttonActionTy === void 0 ? 'button' : _props$buttonActionTy,
670
- disabled = props.disabled,
671
- pressed = props.pressed,
672
- isLoading = props.isLoading,
673
- formId = props.formId,
674
- _props$dataId = props.dataId,
675
- dataId = _props$dataId === void 0 ? '' : _props$dataId,
676
- onClick = props.onClick,
677
- _props$refHandler = props.refHandler,
678
- refHandler = _props$refHandler === void 0 ? null : _props$refHandler,
679
- children = props.children,
680
- rest = _objectWithoutProperties(props, _excluded);
681
- var justIcon = !buttonText && !children && iconProps !== undefined;
682
- var clickHandler = function clickHandler(e) {
683
- if (pressed || disabled || isLoading) {
684
- return;
685
- }
686
- onClick === null || onClick === void 0 || onClick(e);
687
- };
688
- return /*#__PURE__*/React.createElement("button", _extends({
689
- ref: refHandler,
690
- "data-id": dataId,
691
- disabled: disabled,
692
- type: buttonActionType,
693
- className: classNames('btn', "btn--".concat(type), "btn--".concat(size), _defineProperty({
694
- pressed: pressed,
695
- 'btn--icon': justIcon
696
- }, "btn--icon-".concat((iconProps === null || iconProps === void 0 ? void 0 : iconProps.alignment) || 'left'), !isLoading && !justIcon && (iconProps === null || iconProps === void 0 ? void 0 : iconProps.Component)), className),
697
- onClick: clickHandler,
698
- form: formId
699
- }, rest), isLoading ? /*#__PURE__*/React.createElement(Loader, {
700
- size: size,
701
- type: LITE_LOADER_TYPES.indexOf(type) === -1 ? 'dark' : 'lite'
702
- }) : /*#__PURE__*/React.createElement(React.Fragment, null, iconProps !== null && iconProps !== void 0 && iconProps.Component ? /*#__PURE__*/React.createElement(iconProps.Component, {
703
- size: ICON_SIZE_MAPPING[iconProps.size || size],
704
- type: ICON_TYPE_MAPPING[iconProps.type || type],
705
- className: "btn__icon"
706
- }) : null, buttonText || children ? /*#__PURE__*/React.createElement("span", {
707
- className: "btn__text"
708
- }, buttonText || children) : null));
709
- };
710
-
711
- var Alert = function Alert(props) {
712
- var buttonProps = props.buttonProps,
713
- _props$type = props.type,
714
- type = _props$type === void 0 ? 'information' : _props$type,
715
- _props$position = props.position,
716
- position = _props$position === void 0 ? 'inline' : _props$position,
717
- text = props.text,
718
- subtext = props.subtext,
719
- closeIcon = props.closeIcon,
720
- onClose = props.onClose,
721
- _props$className = props.className,
722
- className = _props$className === void 0 ? '' : _props$className;
723
- return /*#__PURE__*/React.createElement("div", {
724
- className: classNames('alert', "alert--".concat(type, " alert--").concat(position), className)
725
- }, /*#__PURE__*/React.createElement("div", {
726
- className: "alert__content"
727
- }, /*#__PURE__*/React.createElement(IconDynamicComponent, {
728
- componentName: ICONS_MAPPING[type],
729
- size: "small",
730
- type: TYPE_MAPPING[type]
731
- }), /*#__PURE__*/React.createElement("div", {
732
- className: "alert__text pl-8"
733
- }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Text, {
734
- type: "primary",
735
- size: "standard",
736
- weight: "regular",
737
- lineHeight: "large"
738
- }, text), subtext ? /*#__PURE__*/React.createElement(Text, {
739
- className: 'mt-4',
740
- type: "secondary",
741
- size: "small",
742
- weight: "regular",
743
- lineHeight: "large"
744
- }, subtext) : null), buttonProps ? /*#__PURE__*/React.createElement("div", {
745
- className: "alert__actions"
746
- }, buttonProps.confirm && /*#__PURE__*/React.createElement(Button, _extends({
747
- size: "medium",
748
- type: "secondary"
749
- }, buttonProps.confirm)), buttonProps.cancel && /*#__PURE__*/React.createElement(Button, _extends({
750
- size: "medium",
751
- type: "tertiary",
752
- className: "ml-12"
753
- }, buttonProps.cancel))) : null), closeIcon ? /*#__PURE__*/React.createElement(IconDismissFilled, {
754
- type: TYPE_MAPPING[type],
755
- size: "xsmall",
756
- className: "ml-12 pointer",
757
- onClick: onClose
758
- }) : null));
759
- };
760
-
761
- export { Alert as A, Button as B, Checkbox as C, DropzoneFileUpload as D, ErrorItem as E, MOBILE_ANIMATION as M, Popover as P, Modal as a, getDropzoneLocale as b, PreviewItem as c, ModalContent as d, PopoverMobile as e, formatFileSize as f, generateAreaContent as g, shortenFileName as s };