hrm_ui_lib 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (933) hide show
  1. package/.babelrc +4 -0
  2. package/.eslintignore +5 -0
  3. package/.eslintrc.yml +43 -0
  4. package/.github/workflows/main.yml +71 -0
  5. package/.prettierrc +9 -0
  6. package/.releaserc +21 -0
  7. package/.storybook/main.ts +36 -0
  8. package/.storybook/preview-head.html +3 -0
  9. package/.storybook/preview.ts +7 -0
  10. package/.vscode/settings.json +16 -0
  11. package/CHANGELOG.md +0 -0
  12. package/bin/generate_svg_component.js +112 -0
  13. package/bin/import_all_svg_components.js +29 -0
  14. package/commitlint.config.js +3 -0
  15. package/package.json +143 -0
  16. package/rollup.config.js +149 -0
  17. package/slack-notification.yml +38 -0
  18. package/src/assets/images/ArCa.svg +3 -0
  19. package/src/assets/images/Avatar.png +0 -0
  20. package/src/assets/images/Mastercard.svg +5 -0
  21. package/src/assets/images/Visa.svg +3 -0
  22. package/src/assets/images/avatar.jpg +0 -0
  23. package/src/assets/images/cards-img.png +0 -0
  24. package/src/assets/images/illustrations.svg +15 -0
  25. package/src/assets/images/image-placeholder.png +0 -0
  26. package/src/assets/images/logo-closed.svg +8 -0
  27. package/src/assets/images/logo.svg +14 -0
  28. package/src/assets/images/no-result.svg +35 -0
  29. package/src/assets/styles/components/_alert.scss +85 -0
  30. package/src/assets/styles/components/_avatar.scss +268 -0
  31. package/src/assets/styles/components/_badge.scss +52 -0
  32. package/src/assets/styles/components/_breadcrumb.scss +43 -0
  33. package/src/assets/styles/components/_button-icon.scss +73 -0
  34. package/src/assets/styles/components/_button.scss +423 -0
  35. package/src/assets/styles/components/_card-body.scss +25 -0
  36. package/src/assets/styles/components/_card-item.scss +35 -0
  37. package/src/assets/styles/components/_card-select.scss +96 -0
  38. package/src/assets/styles/components/_chips.scss +267 -0
  39. package/src/assets/styles/components/_collapse.scss +62 -0
  40. package/src/assets/styles/components/_controllers.scss +333 -0
  41. package/src/assets/styles/components/_copy.scss +3 -0
  42. package/src/assets/styles/components/_counter.scss +15 -0
  43. package/src/assets/styles/components/_date-picker.scss +781 -0
  44. package/src/assets/styles/components/_divider.scss +28 -0
  45. package/src/assets/styles/components/_empty.scss +41 -0
  46. package/src/assets/styles/components/_error-message.scss +7 -0
  47. package/src/assets/styles/components/_file-upload.scss +89 -0
  48. package/src/assets/styles/components/_form-container.scss +7 -0
  49. package/src/assets/styles/components/_image.scss +15 -0
  50. package/src/assets/styles/components/_input.scss +225 -0
  51. package/src/assets/styles/components/_item-select.scss +115 -0
  52. package/src/assets/styles/components/_link.scss +27 -0
  53. package/src/assets/styles/components/_loader.scss +108 -0
  54. package/src/assets/styles/components/_modal.scss +178 -0
  55. package/src/assets/styles/components/_more.scss +4 -0
  56. package/src/assets/styles/components/_nested-menu.scss +46 -0
  57. package/src/assets/styles/components/_pagination.scss +130 -0
  58. package/src/assets/styles/components/_popover.scss +112 -0
  59. package/src/assets/styles/components/_progres-stepper.scss +263 -0
  60. package/src/assets/styles/components/_progress.scss +124 -0
  61. package/src/assets/styles/components/_radio-group.scss +60 -0
  62. package/src/assets/styles/components/_select.scss +287 -0
  63. package/src/assets/styles/components/_side-navigation.scss +224 -0
  64. package/src/assets/styles/components/_side-sheet.scss +113 -0
  65. package/src/assets/styles/components/_snackbar.scss +57 -0
  66. package/src/assets/styles/components/_status.scss +60 -0
  67. package/src/assets/styles/components/_svg-icons.scss +54 -0
  68. package/src/assets/styles/components/_switcher.scss +17 -0
  69. package/src/assets/styles/components/_tab.scss +203 -0
  70. package/src/assets/styles/components/_table.scss +99 -0
  71. package/src/assets/styles/components/_textarea.scss +122 -0
  72. package/src/assets/styles/components/_tooltip.scss +117 -0
  73. package/src/assets/styles/helpers/_classname.scss +606 -0
  74. package/src/assets/styles/helpers/_mixin.scss +718 -0
  75. package/src/assets/styles/helpers/_reset.scss +369 -0
  76. package/src/assets/styles/index.scss +59 -0
  77. package/src/assets/styles/tokens/_borders.scss +48 -0
  78. package/src/assets/styles/tokens/_colors.scss +208 -0
  79. package/src/assets/styles/tokens/_fonts.scss +107 -0
  80. package/src/assets/styles/tokens/_overlays.scss +36 -0
  81. package/src/assets/styles/tokens/_shadows.scss +53 -0
  82. package/src/assets/styles/tokens/_sizes.scss +58 -0
  83. package/src/assets/styles/tokens/_spaces.scss +54 -0
  84. package/src/components/Alert/Alert.tsx +69 -0
  85. package/src/components/Alert/consts.ts +17 -0
  86. package/src/components/Alert/index.ts +1 -0
  87. package/src/components/Alert/types.ts +18 -0
  88. package/src/components/Avatar/Avatar.tsx +60 -0
  89. package/src/components/Avatar/AvatarGroup.tsx +73 -0
  90. package/src/components/Avatar/index.ts +2 -0
  91. package/src/components/Avatar/types.ts +27 -0
  92. package/src/components/Badge/Badge.tsx +22 -0
  93. package/src/components/Badge/index.ts +1 -0
  94. package/src/components/Badge/types.ts +6 -0
  95. package/src/components/Breadcrumb/Breadcrumb.tsx +25 -0
  96. package/src/components/Breadcrumb/index.ts +1 -0
  97. package/src/components/Breadcrumb/types.ts +11 -0
  98. package/src/components/Button/Button.tsx +67 -0
  99. package/src/components/Button/consts.ts +18 -0
  100. package/src/components/Button/index.ts +1 -0
  101. package/src/components/Button/types.ts +24 -0
  102. package/src/components/ButtonIcon/ButtonIcon.tsx +39 -0
  103. package/src/components/ButtonIcon/index.ts +1 -0
  104. package/src/components/ButtonIcon/types.ts +18 -0
  105. package/src/components/CardBody/CardBody.tsx +28 -0
  106. package/src/components/CardBody/index.ts +1 -0
  107. package/src/components/CardBody/types.ts +12 -0
  108. package/src/components/CardSelect/CardSelect.tsx +73 -0
  109. package/src/components/CardSelect/CardSelectGroup.tsx +49 -0
  110. package/src/components/CardSelect/components/CardAdditionalInfo.tsx +34 -0
  111. package/src/components/CardSelect/components/CardChips.tsx +25 -0
  112. package/src/components/CardSelect/components/CardDescription.tsx +15 -0
  113. package/src/components/CardSelect/components/CardInput.tsx +12 -0
  114. package/src/components/CardSelect/components/index.ts +4 -0
  115. package/src/components/CardSelect/index.ts +2 -0
  116. package/src/components/CardSelect/types.ts +39 -0
  117. package/src/components/Cards/CardItem.tsx +45 -0
  118. package/src/components/Cards/index.tsx +1 -0
  119. package/src/components/Cards/types.ts +15 -0
  120. package/src/components/Checkbox/Checkbox.tsx +139 -0
  121. package/src/components/Checkbox/index.ts +1 -0
  122. package/src/components/Checkbox/types.ts +19 -0
  123. package/src/components/Chips/Chips.tsx +70 -0
  124. package/src/components/Chips/consts.ts +15 -0
  125. package/src/components/Chips/index.ts +1 -0
  126. package/src/components/Chips/types.ts +30 -0
  127. package/src/components/Collapse/CollapseGroup/CollapseGroup.tsx +50 -0
  128. package/src/components/Collapse/CollapseItem/CollapseItem.tsx +86 -0
  129. package/src/components/Collapse/index.ts +2 -0
  130. package/src/components/Collapse/types.ts +43 -0
  131. package/src/components/Container/Container.tsx +8 -0
  132. package/src/components/Container/index.ts +1 -0
  133. package/src/components/Container/types.ts +5 -0
  134. package/src/components/Copy/Copy.tsx +38 -0
  135. package/src/components/Copy/index.ts +1 -0
  136. package/src/components/Copy/types.ts +6 -0
  137. package/src/components/Counter/Counter.tsx +82 -0
  138. package/src/components/Counter/index.ts +1 -0
  139. package/src/components/Counter/types.ts +9 -0
  140. package/src/components/DatePicker/CustomHeader/CustomHeader.tsx +87 -0
  141. package/src/components/DatePicker/CustomHeader/styles.scss +21 -0
  142. package/src/components/DatePicker/RangeDatePicker.tsx +126 -0
  143. package/src/components/DatePicker/SimpleDatePicker.tsx +105 -0
  144. package/src/components/DatePicker/TimePicker.tsx +85 -0
  145. package/src/components/DatePicker/hooks.ts +30 -0
  146. package/src/components/DatePicker/index.ts +3 -0
  147. package/src/components/DatePicker/types.ts +50 -0
  148. package/src/components/Divider/Divider.tsx +20 -0
  149. package/src/components/Divider/index.ts +1 -0
  150. package/src/components/Divider/types.ts +5 -0
  151. package/src/components/Empty/Empty.tsx +42 -0
  152. package/src/components/Empty/index.ts +1 -0
  153. package/src/components/Empty/types.ts +10 -0
  154. package/src/components/FileUpload/FileUpload.tsx +159 -0
  155. package/src/components/FileUpload/UploadItems.tsx +60 -0
  156. package/src/components/FileUpload/index.ts +2 -0
  157. package/src/components/FileUpload/types.ts +37 -0
  158. package/src/components/FormContainer/FormContainer.tsx +93 -0
  159. package/src/components/FormContainer/index.ts +1 -0
  160. package/src/components/FormContainer/types.ts +21 -0
  161. package/src/components/FormField/FormField.tsx +70 -0
  162. package/src/components/FormField/index.ts +1 -0
  163. package/src/components/FormField/types.ts +8 -0
  164. package/src/components/Heading/Heading.tsx +33 -0
  165. package/src/components/Heading/index.ts +1 -0
  166. package/src/components/Heading/types.ts +12 -0
  167. package/src/components/Image/Image.tsx +37 -0
  168. package/src/components/Image/index.ts +1 -0
  169. package/src/components/Image/types.ts +10 -0
  170. package/src/components/Input/Input.tsx +209 -0
  171. package/src/components/Input/index.ts +1 -0
  172. package/src/components/Input/types.ts +46 -0
  173. package/src/components/ItemSelect/ItemSelect.tsx +74 -0
  174. package/src/components/ItemSelect/ItemSelectGroup.tsx +35 -0
  175. package/src/components/ItemSelect/index.ts +2 -0
  176. package/src/components/ItemSelect/types.ts +23 -0
  177. package/src/components/Link/Link.tsx +51 -0
  178. package/src/components/Link/index.ts +1 -0
  179. package/src/components/Link/types.ts +10 -0
  180. package/src/components/Menu/Menu.tsx +99 -0
  181. package/src/components/Menu/NestedMenu.tsx +97 -0
  182. package/src/components/Menu/index.ts +2 -0
  183. package/src/components/Menu/types.ts +37 -0
  184. package/src/components/Modal/Modal.tsx +132 -0
  185. package/src/components/Modal/ModalConfirmation.tsx +108 -0
  186. package/src/components/Modal/index.ts +2 -0
  187. package/src/components/Modal/types.ts +41 -0
  188. package/src/components/More/More.tsx +38 -0
  189. package/src/components/More/index.ts +1 -0
  190. package/src/components/More/types.ts +11 -0
  191. package/src/components/Pagination/Pagination.tsx +50 -0
  192. package/src/components/Pagination/consts.ts +9 -0
  193. package/src/components/Pagination/index.ts +1 -0
  194. package/src/components/Pagination/types.ts +16 -0
  195. package/src/components/Popover/Popover.tsx +89 -0
  196. package/src/components/Popover/index.ts +1 -0
  197. package/src/components/Popover/types.ts +22 -0
  198. package/src/components/Progress/Progress.tsx +67 -0
  199. package/src/components/Progress/index.ts +1 -0
  200. package/src/components/Progress/types.ts +11 -0
  201. package/src/components/ProgressStep/ProgressStep.tsx +36 -0
  202. package/src/components/ProgressStep/Step.tsx +96 -0
  203. package/src/components/ProgressStep/consts.ts +6 -0
  204. package/src/components/ProgressStep/index.ts +1 -0
  205. package/src/components/ProgressStep/types.ts +34 -0
  206. package/src/components/Radio/Radio.tsx +64 -0
  207. package/src/components/Radio/RadioGroup.tsx +74 -0
  208. package/src/components/Radio/index.ts +2 -0
  209. package/src/components/Radio/types.ts +31 -0
  210. package/src/components/SVGIcons/IconAdd.tsx +35 -0
  211. package/src/components/SVGIcons/IconAddCircle.tsx +38 -0
  212. package/src/components/SVGIcons/IconAddCircleFilled.tsx +38 -0
  213. package/src/components/SVGIcons/IconAddFilled.tsx +35 -0
  214. package/src/components/SVGIcons/IconAlert.tsx +38 -0
  215. package/src/components/SVGIcons/IconAlertBadge.tsx +38 -0
  216. package/src/components/SVGIcons/IconAlertBadgeFilled.tsx +38 -0
  217. package/src/components/SVGIcons/IconAlertFilled.tsx +38 -0
  218. package/src/components/SVGIcons/IconAm.tsx +46 -0
  219. package/src/components/SVGIcons/IconAmd.tsx +35 -0
  220. package/src/components/SVGIcons/IconAmdFilled.tsx +35 -0
  221. package/src/components/SVGIcons/IconApple.tsx +38 -0
  222. package/src/components/SVGIcons/IconArrowDown.tsx +38 -0
  223. package/src/components/SVGIcons/IconArrowDownFilled.tsx +38 -0
  224. package/src/components/SVGIcons/IconArrowDownLeft.tsx +38 -0
  225. package/src/components/SVGIcons/IconArrowDownLeftFilled.tsx +38 -0
  226. package/src/components/SVGIcons/IconArrowDownload.tsx +38 -0
  227. package/src/components/SVGIcons/IconArrowDownloadFilled.tsx +38 -0
  228. package/src/components/SVGIcons/IconArrowEnter.tsx +35 -0
  229. package/src/components/SVGIcons/IconArrowEnterFilled.tsx +35 -0
  230. package/src/components/SVGIcons/IconArrowExit.tsx +35 -0
  231. package/src/components/SVGIcons/IconArrowExitFilled.tsx +35 -0
  232. package/src/components/SVGIcons/IconArrowExportLeftToRight.tsx +38 -0
  233. package/src/components/SVGIcons/IconArrowExportLeftToRightFilled.tsx +38 -0
  234. package/src/components/SVGIcons/IconArrowExportRightToLeft.tsx +38 -0
  235. package/src/components/SVGIcons/IconArrowExportRightToLeftFilled.tsx +38 -0
  236. package/src/components/SVGIcons/IconArrowExportUp.tsx +38 -0
  237. package/src/components/SVGIcons/IconArrowExportUpFilled.tsx +38 -0
  238. package/src/components/SVGIcons/IconArrowImport.tsx +38 -0
  239. package/src/components/SVGIcons/IconArrowImportFilled.tsx +38 -0
  240. package/src/components/SVGIcons/IconArrowLeft.tsx +38 -0
  241. package/src/components/SVGIcons/IconArrowLeftFilled.tsx +38 -0
  242. package/src/components/SVGIcons/IconArrowRepeatAll.tsx +38 -0
  243. package/src/components/SVGIcons/IconArrowRepeatAllFilled.tsx +38 -0
  244. package/src/components/SVGIcons/IconArrowReset.tsx +38 -0
  245. package/src/components/SVGIcons/IconArrowResetFilled.tsx +38 -0
  246. package/src/components/SVGIcons/IconArrowRight.tsx +38 -0
  247. package/src/components/SVGIcons/IconArrowRightFilled.tsx +38 -0
  248. package/src/components/SVGIcons/IconArrowSort.tsx +35 -0
  249. package/src/components/SVGIcons/IconArrowSortFilled.tsx +35 -0
  250. package/src/components/SVGIcons/IconArrowSync.tsx +35 -0
  251. package/src/components/SVGIcons/IconArrowSyncFilled.tsx +35 -0
  252. package/src/components/SVGIcons/IconArrowUp.tsx +38 -0
  253. package/src/components/SVGIcons/IconArrowUpFilled.tsx +38 -0
  254. package/src/components/SVGIcons/IconArrowUpLeft.tsx +38 -0
  255. package/src/components/SVGIcons/IconArrowUpLeftFilled.tsx +38 -0
  256. package/src/components/SVGIcons/IconArrowUpRight.tsx +38 -0
  257. package/src/components/SVGIcons/IconArrowUpRightFilled.tsx +38 -0
  258. package/src/components/SVGIcons/IconAttach.tsx +38 -0
  259. package/src/components/SVGIcons/IconAttachFilled.tsx +38 -0
  260. package/src/components/SVGIcons/IconBeach.tsx +35 -0
  261. package/src/components/SVGIcons/IconBeachFilled.tsx +35 -0
  262. package/src/components/SVGIcons/IconBook.tsx +38 -0
  263. package/src/components/SVGIcons/IconBookFilled.tsx +38 -0
  264. package/src/components/SVGIcons/IconBookmark.tsx +38 -0
  265. package/src/components/SVGIcons/IconBookmarkFilled.tsx +38 -0
  266. package/src/components/SVGIcons/IconBriefcase.tsx +38 -0
  267. package/src/components/SVGIcons/IconBriefcaseFilled.tsx +38 -0
  268. package/src/components/SVGIcons/IconBuilding.tsx +55 -0
  269. package/src/components/SVGIcons/IconBuildingBank.tsx +35 -0
  270. package/src/components/SVGIcons/IconBuildingBankFilled.tsx +35 -0
  271. package/src/components/SVGIcons/IconBuildingFilled.tsx +38 -0
  272. package/src/components/SVGIcons/IconBulletListAdd.tsx +38 -0
  273. package/src/components/SVGIcons/IconBulletListAddFilled.tsx +38 -0
  274. package/src/components/SVGIcons/IconCalculator.tsx +38 -0
  275. package/src/components/SVGIcons/IconCalculatorFilled.tsx +38 -0
  276. package/src/components/SVGIcons/IconCalendarClock.tsx +35 -0
  277. package/src/components/SVGIcons/IconCalendarClockFilled.tsx +35 -0
  278. package/src/components/SVGIcons/IconCalendarDay.tsx +38 -0
  279. package/src/components/SVGIcons/IconCalendarDayFilled.tsx +38 -0
  280. package/src/components/SVGIcons/IconCalendarLeft.tsx +35 -0
  281. package/src/components/SVGIcons/IconCalendarLeftFilled.tsx +35 -0
  282. package/src/components/SVGIcons/IconCalendarRight.tsx +35 -0
  283. package/src/components/SVGIcons/IconCalendarRightFilled.tsx +35 -0
  284. package/src/components/SVGIcons/IconCall.tsx +38 -0
  285. package/src/components/SVGIcons/IconCallFilled.tsx +38 -0
  286. package/src/components/SVGIcons/IconCard.tsx +35 -0
  287. package/src/components/SVGIcons/IconCardFilled.tsx +35 -0
  288. package/src/components/SVGIcons/IconCaretDown.tsx +35 -0
  289. package/src/components/SVGIcons/IconCaretDownFilled.tsx +35 -0
  290. package/src/components/SVGIcons/IconCaretDownRight.tsx +35 -0
  291. package/src/components/SVGIcons/IconCaretDownRightFilled.tsx +35 -0
  292. package/src/components/SVGIcons/IconCaretLeft.tsx +35 -0
  293. package/src/components/SVGIcons/IconCaretLeftFilled.tsx +35 -0
  294. package/src/components/SVGIcons/IconCaretRight.tsx +35 -0
  295. package/src/components/SVGIcons/IconCaretRightFilled.tsx +35 -0
  296. package/src/components/SVGIcons/IconCaretUp.tsx +35 -0
  297. package/src/components/SVGIcons/IconCaretUpFilled.tsx +35 -0
  298. package/src/components/SVGIcons/IconChat.tsx +35 -0
  299. package/src/components/SVGIcons/IconChatFilled.tsx +35 -0
  300. package/src/components/SVGIcons/IconChatMultiple.tsx +35 -0
  301. package/src/components/SVGIcons/IconChatMultipleFilled.tsx +35 -0
  302. package/src/components/SVGIcons/IconCheckboxArrowRight.tsx +38 -0
  303. package/src/components/SVGIcons/IconCheckboxArrowRightFilled.tsx +38 -0
  304. package/src/components/SVGIcons/IconCheckmark.tsx +35 -0
  305. package/src/components/SVGIcons/IconCheckmarkCircle.tsx +35 -0
  306. package/src/components/SVGIcons/IconCheckmarkCircleFilled.tsx +35 -0
  307. package/src/components/SVGIcons/IconCheckmarkFilled.tsx +35 -0
  308. package/src/components/SVGIcons/IconChevronDown.tsx +35 -0
  309. package/src/components/SVGIcons/IconChevronDownFilled.tsx +35 -0
  310. package/src/components/SVGIcons/IconChevronLeft.tsx +35 -0
  311. package/src/components/SVGIcons/IconChevronLeftFilled.tsx +35 -0
  312. package/src/components/SVGIcons/IconChevronRight.tsx +35 -0
  313. package/src/components/SVGIcons/IconChevronRightFilled.tsx +35 -0
  314. package/src/components/SVGIcons/IconChevronUp.tsx +35 -0
  315. package/src/components/SVGIcons/IconChevronUpDown.tsx +38 -0
  316. package/src/components/SVGIcons/IconChevronUpDownFilled.tsx +38 -0
  317. package/src/components/SVGIcons/IconChevronUpFilled.tsx +35 -0
  318. package/src/components/SVGIcons/IconClock.tsx +38 -0
  319. package/src/components/SVGIcons/IconClockDismiss.tsx +35 -0
  320. package/src/components/SVGIcons/IconClockDismissFilled.tsx +35 -0
  321. package/src/components/SVGIcons/IconClockFilled.tsx +38 -0
  322. package/src/components/SVGIcons/IconComment.tsx +38 -0
  323. package/src/components/SVGIcons/IconCommentFilled.tsx +38 -0
  324. package/src/components/SVGIcons/IconContractCard.tsx +35 -0
  325. package/src/components/SVGIcons/IconContractCardFilled.tsx +35 -0
  326. package/src/components/SVGIcons/IconCopy.tsx +35 -0
  327. package/src/components/SVGIcons/IconCopyFilled.tsx +35 -0
  328. package/src/components/SVGIcons/IconCubeTree.tsx +35 -0
  329. package/src/components/SVGIcons/IconCubeTreeFilled.tsx +38 -0
  330. package/src/components/SVGIcons/IconDatabase.tsx +38 -0
  331. package/src/components/SVGIcons/IconDatabaseFilled.tsx +38 -0
  332. package/src/components/SVGIcons/IconDelete.tsx +35 -0
  333. package/src/components/SVGIcons/IconDeleteFilled.tsx +35 -0
  334. package/src/components/SVGIcons/IconDeviceMeetingRoom.tsx +35 -0
  335. package/src/components/SVGIcons/IconDeviceMeetingRoomFilled.tsx +35 -0
  336. package/src/components/SVGIcons/IconDismiss.tsx +35 -0
  337. package/src/components/SVGIcons/IconDismissCircle.tsx +38 -0
  338. package/src/components/SVGIcons/IconDismissCircleFilled.tsx +38 -0
  339. package/src/components/SVGIcons/IconDismissFilled.tsx +35 -0
  340. package/src/components/SVGIcons/IconDocument.tsx +35 -0
  341. package/src/components/SVGIcons/IconDocumentBulletList.tsx +38 -0
  342. package/src/components/SVGIcons/IconDocumentBulletListFilled.tsx +38 -0
  343. package/src/components/SVGIcons/IconDocumentEdit.tsx +35 -0
  344. package/src/components/SVGIcons/IconDocumentEditFilled.tsx +35 -0
  345. package/src/components/SVGIcons/IconDocumentFilled.tsx +35 -0
  346. package/src/components/SVGIcons/IconEdit.tsx +35 -0
  347. package/src/components/SVGIcons/IconEditFilled.tsx +35 -0
  348. package/src/components/SVGIcons/IconErrorCircle.tsx +35 -0
  349. package/src/components/SVGIcons/IconErrorCircleFilled.tsx +35 -0
  350. package/src/components/SVGIcons/IconEur.tsx +35 -0
  351. package/src/components/SVGIcons/IconEurFilled.tsx +35 -0
  352. package/src/components/SVGIcons/IconExpandUpLeft.tsx +38 -0
  353. package/src/components/SVGIcons/IconExpandUpLeftFilled.tsx +38 -0
  354. package/src/components/SVGIcons/IconExpandUpRight.tsx +38 -0
  355. package/src/components/SVGIcons/IconExpandUpRightFilled.tsx +38 -0
  356. package/src/components/SVGIcons/IconEyeOff.tsx +38 -0
  357. package/src/components/SVGIcons/IconEyeOffFilled.tsx +38 -0
  358. package/src/components/SVGIcons/IconEyeOn.tsx +38 -0
  359. package/src/components/SVGIcons/IconEyeOnFilled.tsx +38 -0
  360. package/src/components/SVGIcons/IconFacebook.tsx +43 -0
  361. package/src/components/SVGIcons/IconFilter.tsx +35 -0
  362. package/src/components/SVGIcons/IconFilterFilled.tsx +35 -0
  363. package/src/components/SVGIcons/IconFlag.tsx +38 -0
  364. package/src/components/SVGIcons/IconFlagFilled.tsx +38 -0
  365. package/src/components/SVGIcons/IconFolderLink.tsx +35 -0
  366. package/src/components/SVGIcons/IconFolderLinkFilled.tsx +35 -0
  367. package/src/components/SVGIcons/IconGb.tsx +68 -0
  368. package/src/components/SVGIcons/IconGlobe.tsx +35 -0
  369. package/src/components/SVGIcons/IconGlobeFilled.tsx +35 -0
  370. package/src/components/SVGIcons/IconGoogle.tsx +45 -0
  371. package/src/components/SVGIcons/IconHandOpenHeart.tsx +38 -0
  372. package/src/components/SVGIcons/IconHandOpenHeartFilled.tsx +38 -0
  373. package/src/components/SVGIcons/IconHeart.tsx +38 -0
  374. package/src/components/SVGIcons/IconHeartFilled.tsx +38 -0
  375. package/src/components/SVGIcons/IconHistory.tsx +38 -0
  376. package/src/components/SVGIcons/IconHistoryFilled.tsx +38 -0
  377. package/src/components/SVGIcons/IconHome.tsx +38 -0
  378. package/src/components/SVGIcons/IconHomeFilled.tsx +38 -0
  379. package/src/components/SVGIcons/IconImage.tsx +38 -0
  380. package/src/components/SVGIcons/IconImageFilled.tsx +38 -0
  381. package/src/components/SVGIcons/IconInfo.tsx +35 -0
  382. package/src/components/SVGIcons/IconInfoFilled.tsx +35 -0
  383. package/src/components/SVGIcons/IconInstagram.tsx +48 -0
  384. package/src/components/SVGIcons/IconKeyReset.tsx +38 -0
  385. package/src/components/SVGIcons/IconKeyResetFilled.tsx +38 -0
  386. package/src/components/SVGIcons/IconLink.tsx +38 -0
  387. package/src/components/SVGIcons/IconLinkFilled.tsx +38 -0
  388. package/src/components/SVGIcons/IconLinkedin.tsx +38 -0
  389. package/src/components/SVGIcons/IconList.tsx +35 -0
  390. package/src/components/SVGIcons/IconListFilled.tsx +38 -0
  391. package/src/components/SVGIcons/IconLocation.tsx +38 -0
  392. package/src/components/SVGIcons/IconLocationFilled.tsx +38 -0
  393. package/src/components/SVGIcons/IconLockClosed.tsx +38 -0
  394. package/src/components/SVGIcons/IconLockClosedFilled.tsx +38 -0
  395. package/src/components/SVGIcons/IconLockOpen.tsx +38 -0
  396. package/src/components/SVGIcons/IconLockOpenFilled.tsx +38 -0
  397. package/src/components/SVGIcons/IconMail.tsx +38 -0
  398. package/src/components/SVGIcons/IconMailAdd.tsx +38 -0
  399. package/src/components/SVGIcons/IconMailAddFilled.tsx +38 -0
  400. package/src/components/SVGIcons/IconMailArrowForward.tsx +38 -0
  401. package/src/components/SVGIcons/IconMailArrowForwardFilled.tsx +38 -0
  402. package/src/components/SVGIcons/IconMailFilled.tsx +38 -0
  403. package/src/components/SVGIcons/IconMailLink.tsx +38 -0
  404. package/src/components/SVGIcons/IconMailLinkFilled.tsx +38 -0
  405. package/src/components/SVGIcons/IconMedium.tsx +38 -0
  406. package/src/components/SVGIcons/IconMore.tsx +38 -0
  407. package/src/components/SVGIcons/IconMoreFilled.tsx +38 -0
  408. package/src/components/SVGIcons/IconMoreVertical.tsx +38 -0
  409. package/src/components/SVGIcons/IconMoreVerticalFilled.tsx +38 -0
  410. package/src/components/SVGIcons/IconNavigation.tsx +38 -0
  411. package/src/components/SVGIcons/IconNavigationFilled.tsx +38 -0
  412. package/src/components/SVGIcons/IconNotebook.tsx +38 -0
  413. package/src/components/SVGIcons/IconNotebookAdd.tsx +59 -0
  414. package/src/components/SVGIcons/IconNotebookAddFilled.tsx +55 -0
  415. package/src/components/SVGIcons/IconNotebookFilled.tsx +38 -0
  416. package/src/components/SVGIcons/IconOnlyEmployee.tsx +35 -0
  417. package/src/components/SVGIcons/IconOpen.tsx +38 -0
  418. package/src/components/SVGIcons/IconOpenFilled.tsx +38 -0
  419. package/src/components/SVGIcons/IconPatient.tsx +35 -0
  420. package/src/components/SVGIcons/IconPatientFilled.tsx +35 -0
  421. package/src/components/SVGIcons/IconPeople.tsx +35 -0
  422. package/src/components/SVGIcons/IconPeopleAdd.tsx +38 -0
  423. package/src/components/SVGIcons/IconPeopleAddFilled.tsx +38 -0
  424. package/src/components/SVGIcons/IconPeopleFilled.tsx +38 -0
  425. package/src/components/SVGIcons/IconPercent.tsx +40 -0
  426. package/src/components/SVGIcons/IconPerson.tsx +38 -0
  427. package/src/components/SVGIcons/IconPersonAccount.tsx +35 -0
  428. package/src/components/SVGIcons/IconPersonAccountFilled.tsx +35 -0
  429. package/src/components/SVGIcons/IconPersonAdd.tsx +38 -0
  430. package/src/components/SVGIcons/IconPersonAddFilled.tsx +38 -0
  431. package/src/components/SVGIcons/IconPersonFilled.tsx +38 -0
  432. package/src/components/SVGIcons/IconPersonStar.tsx +38 -0
  433. package/src/components/SVGIcons/IconPersonStarFilled.tsx +38 -0
  434. package/src/components/SVGIcons/IconPersonSubtract.tsx +38 -0
  435. package/src/components/SVGIcons/IconPersonSubtractFilled.tsx +38 -0
  436. package/src/components/SVGIcons/IconPhone.tsx +38 -0
  437. package/src/components/SVGIcons/IconPhoneFilled.tsx +38 -0
  438. package/src/components/SVGIcons/IconPos.tsx +40 -0
  439. package/src/components/SVGIcons/IconPosFilled.tsx +40 -0
  440. package/src/components/SVGIcons/IconProhibited.tsx +38 -0
  441. package/src/components/SVGIcons/IconProhibitedFilled.tsx +38 -0
  442. package/src/components/SVGIcons/IconProjectProduct.tsx +35 -0
  443. package/src/components/SVGIcons/IconQuestion.tsx +38 -0
  444. package/src/components/SVGIcons/IconQuestionFilled.tsx +38 -0
  445. package/src/components/SVGIcons/IconRedo.tsx +38 -0
  446. package/src/components/SVGIcons/IconRedoFilled.tsx +38 -0
  447. package/src/components/SVGIcons/IconRu.tsx +63 -0
  448. package/src/components/SVGIcons/IconRub.tsx +35 -0
  449. package/src/components/SVGIcons/IconRubFilled.tsx +35 -0
  450. package/src/components/SVGIcons/IconSave.tsx +38 -0
  451. package/src/components/SVGIcons/IconSaveFilled.tsx +38 -0
  452. package/src/components/SVGIcons/IconSavings.tsx +38 -0
  453. package/src/components/SVGIcons/IconSavingsFilled.tsx +38 -0
  454. package/src/components/SVGIcons/IconSearch.tsx +38 -0
  455. package/src/components/SVGIcons/IconSearchFilled.tsx +38 -0
  456. package/src/components/SVGIcons/IconSelectAllOff.tsx +38 -0
  457. package/src/components/SVGIcons/IconSelectAllOffFilled.tsx +38 -0
  458. package/src/components/SVGIcons/IconSelectAllOn.tsx +38 -0
  459. package/src/components/SVGIcons/IconSelectAllOnFilled.tsx +38 -0
  460. package/src/components/SVGIcons/IconSend.tsx +38 -0
  461. package/src/components/SVGIcons/IconSendFilled.tsx +38 -0
  462. package/src/components/SVGIcons/IconSettings.tsx +35 -0
  463. package/src/components/SVGIcons/IconSettingsFilled.tsx +38 -0
  464. package/src/components/SVGIcons/IconShare.tsx +38 -0
  465. package/src/components/SVGIcons/IconShareAndroid.tsx +38 -0
  466. package/src/components/SVGIcons/IconShareAndroidFilled.tsx +38 -0
  467. package/src/components/SVGIcons/IconShareFilled.tsx +38 -0
  468. package/src/components/SVGIcons/IconSignOut.tsx +38 -0
  469. package/src/components/SVGIcons/IconSignOutFilled.tsx +38 -0
  470. package/src/components/SVGIcons/IconSpinner.tsx +38 -0
  471. package/src/components/SVGIcons/IconSpinnerFilled.tsx +38 -0
  472. package/src/components/SVGIcons/IconStatus.tsx +38 -0
  473. package/src/components/SVGIcons/IconStatusFilled.tsx +38 -0
  474. package/src/components/SVGIcons/IconSubtract.tsx +38 -0
  475. package/src/components/SVGIcons/IconSubtractCircle.tsx +38 -0
  476. package/src/components/SVGIcons/IconSubtractCircleFilled.tsx +38 -0
  477. package/src/components/SVGIcons/IconSubtractFilled.tsx +38 -0
  478. package/src/components/SVGIcons/IconTableCellEdit.tsx +43 -0
  479. package/src/components/SVGIcons/IconTableCellEditFilled.tsx +51 -0
  480. package/src/components/SVGIcons/IconTelegram.tsx +45 -0
  481. package/src/components/SVGIcons/IconTimer.tsx +38 -0
  482. package/src/components/SVGIcons/IconTimerFilled.tsx +38 -0
  483. package/src/components/SVGIcons/IconTwitter.tsx +38 -0
  484. package/src/components/SVGIcons/IconUndo.tsx +38 -0
  485. package/src/components/SVGIcons/IconUndoFilled.tsx +38 -0
  486. package/src/components/SVGIcons/IconUnitsEmployee.tsx +35 -0
  487. package/src/components/SVGIcons/IconUsd.tsx +35 -0
  488. package/src/components/SVGIcons/IconUsdFilled.tsx +35 -0
  489. package/src/components/SVGIcons/IconVideo.tsx +35 -0
  490. package/src/components/SVGIcons/IconVideoFilled.tsx +35 -0
  491. package/src/components/SVGIcons/IconWallet.tsx +38 -0
  492. package/src/components/SVGIcons/IconWalletFilled.tsx +38 -0
  493. package/src/components/SVGIcons/IconWarning.tsx +35 -0
  494. package/src/components/SVGIcons/IconWarningFilled.tsx +35 -0
  495. package/src/components/SVGIcons/IconYoutube.tsx +38 -0
  496. package/src/components/SVGIcons/index.ts +286 -0
  497. package/src/components/SVGIcons/types.ts +38 -0
  498. package/src/components/Select/ButtonSelect/ButtonSelect.tsx +120 -0
  499. package/src/components/Select/FilterSelect/FilterDropdown.tsx +46 -0
  500. package/src/components/Select/FilterSelect/FilterGroupDropdown.tsx +22 -0
  501. package/src/components/Select/FilterSelect/FilterSelect.tsx +138 -0
  502. package/src/components/Select/MultiSelect/MultiBase/MultiBase.tsx +162 -0
  503. package/src/components/Select/MultiSelect/MultiSelect.tsx +147 -0
  504. package/src/components/Select/MultiSelect/MultiSelectGrouped/MultiSelectGrouped.tsx +219 -0
  505. package/src/components/Select/MultiSelect/MultiSelectWithTabs/MultiSelectWithTabs.tsx +177 -0
  506. package/src/components/Select/MultiSelect/OptionsWrapper.tsx +128 -0
  507. package/src/components/Select/NestedSelect/NestedSelect.tsx +124 -0
  508. package/src/components/Select/ProfileDropdown/index.tsx +90 -0
  509. package/src/components/Select/ProfileDropdown/styles.scss +47 -0
  510. package/src/components/Select/Select/Select.tsx +268 -0
  511. package/src/components/Select/SharedComponents/Actions.tsx +42 -0
  512. package/src/components/Select/SharedComponents/ButtonSelectWrapper/Button/Button.tsx +52 -0
  513. package/src/components/Select/SharedComponents/ButtonSelectWrapper/ButtonSelectWrapper.tsx +100 -0
  514. package/src/components/Select/SharedComponents/ContentTop.tsx +123 -0
  515. package/src/components/Select/SharedComponents/Footer.tsx +35 -0
  516. package/src/components/Select/SharedComponents/InputSelectWrapper/InputSelectWrapper.tsx +137 -0
  517. package/src/components/Select/SharedComponents/Loading.tsx +15 -0
  518. package/src/components/Select/SharedComponents/index.ts +6 -0
  519. package/src/components/Select/constants.ts +10 -0
  520. package/src/components/Select/index.ts +6 -0
  521. package/src/components/Select/types.ts +240 -0
  522. package/src/components/SideNavigation/Block.tsx +19 -0
  523. package/src/components/SideNavigation/NavigationItem/index.tsx +93 -0
  524. package/src/components/SideNavigation/NavigationItem/types.ts +26 -0
  525. package/src/components/SideNavigation/SideNavigation.tsx +46 -0
  526. package/src/components/SideNavigation/index.ts +2 -0
  527. package/src/components/SideNavigation/types.ts +19 -0
  528. package/src/components/SideSheet/Footer/Footer.tsx +59 -0
  529. package/src/components/SideSheet/SideSheet.tsx +168 -0
  530. package/src/components/SideSheet/index.ts +1 -0
  531. package/src/components/SideSheet/types.ts +37 -0
  532. package/src/components/Snackbar/Snackbar.tsx +75 -0
  533. package/src/components/Snackbar/consts.ts +17 -0
  534. package/src/components/Snackbar/index.ts +1 -0
  535. package/src/components/Snackbar/types.ts +22 -0
  536. package/src/components/Status/Status.tsx +50 -0
  537. package/src/components/Status/index.ts +1 -0
  538. package/src/components/Status/types.ts +24 -0
  539. package/src/components/Stepper/Stepper.tsx +45 -0
  540. package/src/components/Stepper/index.ts +1 -0
  541. package/src/components/Stepper/types.ts +15 -0
  542. package/src/components/Switcher/Switcher.tsx +75 -0
  543. package/src/components/Switcher/index.ts +1 -0
  544. package/src/components/Switcher/types.ts +11 -0
  545. package/src/components/Tab/Tab.tsx +29 -0
  546. package/src/components/Tab/TabItem.tsx +61 -0
  547. package/src/components/Tab/index.ts +1 -0
  548. package/src/components/Tab/types.ts +51 -0
  549. package/src/components/Table/Header.tsx +86 -0
  550. package/src/components/Table/IndeterminateCheckbox.tsx +31 -0
  551. package/src/components/Table/Row.tsx +48 -0
  552. package/src/components/Table/Table.tsx +134 -0
  553. package/src/components/Table/index.ts +1 -0
  554. package/src/components/Table/types.ts +45 -0
  555. package/src/components/Table/utils.tsx +27 -0
  556. package/src/components/Text/Text.tsx +38 -0
  557. package/src/components/Text/index.ts +1 -0
  558. package/src/components/Text/types.ts +33 -0
  559. package/src/components/Textarea/Textarea.tsx +100 -0
  560. package/src/components/Textarea/index.ts +1 -0
  561. package/src/components/Textarea/types.ts +17 -0
  562. package/src/components/Tooltip/Tooltip.tsx +88 -0
  563. package/src/components/Tooltip/index.ts +1 -0
  564. package/src/components/Tooltip/types.ts +23 -0
  565. package/src/consts/index.ts +85 -0
  566. package/src/context/FormContextProvider.tsx +12 -0
  567. package/src/context/index.ts +2 -0
  568. package/src/context/types.ts +41 -0
  569. package/src/helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.tsx +19 -0
  570. package/src/helperComponents/AnimatePresenceWrapper/index.ts +1 -0
  571. package/src/helperComponents/CodeBlock/CodeBlock.tsx +20 -0
  572. package/src/helperComponents/CodeBlock/index.ts +2 -0
  573. package/src/helperComponents/ErrorMessage/ErrorMessage.tsx +23 -0
  574. package/src/helperComponents/ErrorMessage/index.ts +1 -0
  575. package/src/helperComponents/ErrorMessage/types.ts +6 -0
  576. package/src/helperComponents/IconDynamicComponent/IconDynamicComponent.tsx +31 -0
  577. package/src/helperComponents/IconDynamicComponent/constants.ts +16 -0
  578. package/src/helperComponents/IconDynamicComponent/index.ts +1 -0
  579. package/src/helperComponents/Label/Label.tsx +31 -0
  580. package/src/helperComponents/Label/index.ts +1 -0
  581. package/src/helperComponents/Label/types.ts +12 -0
  582. package/src/helperComponents/Loader/Loader.tsx +11 -0
  583. package/src/helperComponents/Loader/index.ts +1 -0
  584. package/src/helperComponents/Loader/types.ts +4 -0
  585. package/src/helperComponents/OptionItem/OptionItem.tsx +98 -0
  586. package/src/helperComponents/OptionItem/index.ts +1 -0
  587. package/src/helperComponents/OptionItem/types.ts +18 -0
  588. package/src/helperComponents/index.ts +6 -0
  589. package/src/hooks/index.ts +12 -0
  590. package/src/hooks/useChangePositionsOnScroll.tsx +37 -0
  591. package/src/hooks/useDispatchEventOnScroll.tsx +10 -0
  592. package/src/hooks/useFieldArray.ts +1 -0
  593. package/src/hooks/useFormContext.ts +14 -0
  594. package/src/hooks/useFormProps.ts +6 -0
  595. package/src/hooks/useGetElemPositions.ts +28 -0
  596. package/src/hooks/useGetElemSizes.ts +29 -0
  597. package/src/hooks/useGetHasBottomSpace.ts +35 -0
  598. package/src/hooks/useGetTooltipPosition.ts +81 -0
  599. package/src/hooks/useGetTooltipStyles.ts +71 -0
  600. package/src/hooks/useHideBodyScroll.ts +29 -0
  601. package/src/hooks/useHideOnScroll.ts +24 -0
  602. package/src/hooks/useOnOutsideClick.ts +58 -0
  603. package/src/hooks/useScreenSize.ts +36 -0
  604. package/src/index.ts +53 -0
  605. package/src/stories/Alert.stories.tsx +42 -0
  606. package/src/stories/Avatar.stories.tsx +100 -0
  607. package/src/stories/Badge.stories.tsx +29 -0
  608. package/src/stories/Breadcrumb.stories.tsx +37 -0
  609. package/src/stories/Button.stories.tsx +74 -0
  610. package/src/stories/ButtonIcon.stories.tsx +52 -0
  611. package/src/stories/CardBody.stories.tsx +32 -0
  612. package/src/stories/CardSelect.stories.tsx +192 -0
  613. package/src/stories/Cards.stories.tsx +42 -0
  614. package/src/stories/Checkbox.stories.tsx +40 -0
  615. package/src/stories/Chips.stories.tsx +40 -0
  616. package/src/stories/Collapse.stories.tsx +69 -0
  617. package/src/stories/Container.stories.tsx +28 -0
  618. package/src/stories/Copy.stories.tsx +18 -0
  619. package/src/stories/Counter.stories.tsx +27 -0
  620. package/src/stories/DatePicker.stories.tsx +99 -0
  621. package/src/stories/Divider.stories.tsx +30 -0
  622. package/src/stories/Empty.stories.tsx +33 -0
  623. package/src/stories/FileUpload.stories.tsx +43 -0
  624. package/src/stories/Form.stories.tsx +188 -0
  625. package/src/stories/Heading.stories.tsx +42 -0
  626. package/src/stories/Image.stories.tsx +44 -0
  627. package/src/stories/Input.stories.tsx +71 -0
  628. package/src/stories/ItemSelect.stories.tsx +94 -0
  629. package/src/stories/Link.stories.tsx +21 -0
  630. package/src/stories/Menu.stories.tsx +178 -0
  631. package/src/stories/Modal.stories.tsx +93 -0
  632. package/src/stories/More.stories.tsx +27 -0
  633. package/src/stories/NavigationItem.stories.tsx +24 -0
  634. package/src/stories/Pagination.stories.tsx +34 -0
  635. package/src/stories/Popover.stories.tsx +55 -0
  636. package/src/stories/Progress.stories.tsx +33 -0
  637. package/src/stories/ProgressStep.stories.tsx +84 -0
  638. package/src/stories/Radio.stories.tsx +57 -0
  639. package/src/stories/SVGIcons.stories.tsx +75 -0
  640. package/src/stories/Select.stories.tsx +600 -0
  641. package/src/stories/SideNavigation.stories.tsx +252 -0
  642. package/src/stories/SideSheet.stories.tsx +346 -0
  643. package/src/stories/Snackbar.stories.tsx +72 -0
  644. package/src/stories/Status.stories.tsx +71 -0
  645. package/src/stories/Stepper.stories.tsx +28 -0
  646. package/src/stories/Switcher.stories.tsx +32 -0
  647. package/src/stories/Tab.stories.tsx +77 -0
  648. package/src/stories/Table.stories.tsx +96 -0
  649. package/src/stories/Text.stories.tsx +62 -0
  650. package/src/stories/Textarea.stories.tsx +37 -0
  651. package/src/stories/Tooltip.stories.tsx +60 -0
  652. package/src/types.d.ts +192 -0
  653. package/src/utils/helpers.ts +94 -0
  654. package/svg-icons/add-circle-filled.svg +5 -0
  655. package/svg-icons/add-circle.svg +5 -0
  656. package/svg-icons/add-filled.svg +3 -0
  657. package/svg-icons/add.svg +3 -0
  658. package/svg-icons/alert-badge-filled.svg +5 -0
  659. package/svg-icons/alert-badge.svg +5 -0
  660. package/svg-icons/alert-filled.svg +5 -0
  661. package/svg-icons/alert.svg +5 -0
  662. package/svg-icons/am.svg +11 -0
  663. package/svg-icons/amd-filled.svg +3 -0
  664. package/svg-icons/amd.svg +3 -0
  665. package/svg-icons/apple.svg +5 -0
  666. package/svg-icons/arrow-down-filled.svg +5 -0
  667. package/svg-icons/arrow-down-left-filled.svg +5 -0
  668. package/svg-icons/arrow-down-left.svg +5 -0
  669. package/svg-icons/arrow-down.svg +5 -0
  670. package/svg-icons/arrow-download-filled.svg +5 -0
  671. package/svg-icons/arrow-download.svg +5 -0
  672. package/svg-icons/arrow-enter-filled.svg +3 -0
  673. package/svg-icons/arrow-enter.svg +3 -0
  674. package/svg-icons/arrow-exit-filled.svg +3 -0
  675. package/svg-icons/arrow-exit.svg +3 -0
  676. package/svg-icons/arrow-export-left-to-right-filled.svg +5 -0
  677. package/svg-icons/arrow-export-left-to-right.svg +5 -0
  678. package/svg-icons/arrow-export-right-to-left-filled.svg +5 -0
  679. package/svg-icons/arrow-export-right-to-left.svg +5 -0
  680. package/svg-icons/arrow-export-up-filled.svg +5 -0
  681. package/svg-icons/arrow-export-up.svg +5 -0
  682. package/svg-icons/arrow-import-filled.svg +5 -0
  683. package/svg-icons/arrow-import.svg +5 -0
  684. package/svg-icons/arrow-left-filled.svg +5 -0
  685. package/svg-icons/arrow-left.svg +5 -0
  686. package/svg-icons/arrow-repeat-all-filled.svg +5 -0
  687. package/svg-icons/arrow-repeat-all.svg +5 -0
  688. package/svg-icons/arrow-reset-filled.svg +5 -0
  689. package/svg-icons/arrow-reset.svg +5 -0
  690. package/svg-icons/arrow-right-filled.svg +5 -0
  691. package/svg-icons/arrow-right.svg +5 -0
  692. package/svg-icons/arrow-sort-filled.svg +3 -0
  693. package/svg-icons/arrow-sort.svg +3 -0
  694. package/svg-icons/arrow-sync-filled.svg +3 -0
  695. package/svg-icons/arrow-sync.svg +3 -0
  696. package/svg-icons/arrow-up-filled.svg +5 -0
  697. package/svg-icons/arrow-up-left-filled.svg +5 -0
  698. package/svg-icons/arrow-up-left.svg +5 -0
  699. package/svg-icons/arrow-up-right-filled.svg +5 -0
  700. package/svg-icons/arrow-up-right.svg +5 -0
  701. package/svg-icons/arrow-up.svg +5 -0
  702. package/svg-icons/attach-filled.svg +5 -0
  703. package/svg-icons/attach.svg +5 -0
  704. package/svg-icons/beach-filled.svg +3 -0
  705. package/svg-icons/beach.svg +3 -0
  706. package/svg-icons/book-filled.svg +5 -0
  707. package/svg-icons/book.svg +5 -0
  708. package/svg-icons/bookmark-filled.svg +5 -0
  709. package/svg-icons/bookmark.svg +5 -0
  710. package/svg-icons/briefcase-filled.svg +5 -0
  711. package/svg-icons/briefcase.svg +5 -0
  712. package/svg-icons/building-bank-filled.svg +3 -0
  713. package/svg-icons/building-bank.svg +3 -0
  714. package/svg-icons/building-filled.svg +5 -0
  715. package/svg-icons/building.svg +14 -0
  716. package/svg-icons/bullet-list-add-filled.svg +5 -0
  717. package/svg-icons/bullet-list-add.svg +5 -0
  718. package/svg-icons/calculator-filled.svg +5 -0
  719. package/svg-icons/calculator.svg +5 -0
  720. package/svg-icons/calendar-clock-filled.svg +3 -0
  721. package/svg-icons/calendar-clock.svg +3 -0
  722. package/svg-icons/calendar-day-filled.svg +5 -0
  723. package/svg-icons/calendar-day.svg +5 -0
  724. package/svg-icons/calendar-left-filled.svg +3 -0
  725. package/svg-icons/calendar-left.svg +3 -0
  726. package/svg-icons/calendar-right-filled.svg +3 -0
  727. package/svg-icons/calendar-right.svg +3 -0
  728. package/svg-icons/call-filled.svg +5 -0
  729. package/svg-icons/call.svg +5 -0
  730. package/svg-icons/card-filled.svg +3 -0
  731. package/svg-icons/card.svg +3 -0
  732. package/svg-icons/caret-down-filled.svg +3 -0
  733. package/svg-icons/caret-down-right-filled.svg +3 -0
  734. package/svg-icons/caret-down-right.svg +3 -0
  735. package/svg-icons/caret-down.svg +3 -0
  736. package/svg-icons/caret-left-filled.svg +3 -0
  737. package/svg-icons/caret-left.svg +3 -0
  738. package/svg-icons/caret-right-filled.svg +3 -0
  739. package/svg-icons/caret-right.svg +3 -0
  740. package/svg-icons/caret-up-filled.svg +3 -0
  741. package/svg-icons/caret-up.svg +3 -0
  742. package/svg-icons/chat-filled.svg +3 -0
  743. package/svg-icons/chat-multiple-filled.svg +3 -0
  744. package/svg-icons/chat-multiple.svg +3 -0
  745. package/svg-icons/chat.svg +3 -0
  746. package/svg-icons/checkbox-arrow-right-filled.svg +5 -0
  747. package/svg-icons/checkbox-arrow-right.svg +5 -0
  748. package/svg-icons/checkmark-circle-filled.svg +3 -0
  749. package/svg-icons/checkmark-circle.svg +3 -0
  750. package/svg-icons/checkmark-filled.svg +3 -0
  751. package/svg-icons/checkmark.svg +3 -0
  752. package/svg-icons/chevron-down.svg +3 -0
  753. package/svg-icons/chevron-left.svg +3 -0
  754. package/svg-icons/chevron-right.svg +3 -0
  755. package/svg-icons/chevron-up-down-filled.svg +5 -0
  756. package/svg-icons/chevron-up-down.svg +5 -0
  757. package/svg-icons/chevron-up.svg +3 -0
  758. package/svg-icons/clock-filled.svg +5 -0
  759. package/svg-icons/clock.svg +5 -0
  760. package/svg-icons/comment-filled.svg +5 -0
  761. package/svg-icons/comment.svg +5 -0
  762. package/svg-icons/contract-card-filled.svg +3 -0
  763. package/svg-icons/contract-card.svg +3 -0
  764. package/svg-icons/copy.svg +3 -0
  765. package/svg-icons/cube-tree-filled.svg +5 -0
  766. package/svg-icons/cube-tree.svg +3 -0
  767. package/svg-icons/database-filled.svg +5 -0
  768. package/svg-icons/database.svg +5 -0
  769. package/svg-icons/delete-filled.svg +3 -0
  770. package/svg-icons/delete.svg +3 -0
  771. package/svg-icons/device-meeting-room-filled.svg +3 -0
  772. package/svg-icons/device-meeting-room.svg +3 -0
  773. package/svg-icons/dismiss-circle-filled.svg +5 -0
  774. package/svg-icons/dismiss-circle.svg +5 -0
  775. package/svg-icons/dismiss-filled.svg +3 -0
  776. package/svg-icons/dismiss.svg +3 -0
  777. package/svg-icons/document-bullet-list-filled.svg +5 -0
  778. package/svg-icons/document-bullet-list.svg +5 -0
  779. package/svg-icons/document-edit-filled.svg +3 -0
  780. package/svg-icons/document-edit.svg +3 -0
  781. package/svg-icons/document-filled.svg +3 -0
  782. package/svg-icons/document.svg +3 -0
  783. package/svg-icons/edit-filled.svg +3 -0
  784. package/svg-icons/edit.svg +4 -0
  785. package/svg-icons/error-circle-filled.svg +3 -0
  786. package/svg-icons/error-circle.svg +3 -0
  787. package/svg-icons/eur-filled.svg +3 -0
  788. package/svg-icons/eur.svg +3 -0
  789. package/svg-icons/expand-up-left-filled.svg +5 -0
  790. package/svg-icons/expand-up-left.svg +5 -0
  791. package/svg-icons/expand-up-right-filled.svg +5 -0
  792. package/svg-icons/expand-up-right.svg +5 -0
  793. package/svg-icons/eye-off-filled.svg +5 -0
  794. package/svg-icons/eye-off.svg +5 -0
  795. package/svg-icons/eye-on-filled.svg +5 -0
  796. package/svg-icons/eye-on.svg +5 -0
  797. package/svg-icons/facebook.svg +10 -0
  798. package/svg-icons/filter-filled.svg +3 -0
  799. package/svg-icons/filter.svg +3 -0
  800. package/svg-icons/flag-filled.svg +5 -0
  801. package/svg-icons/flag.svg +5 -0
  802. package/svg-icons/folder-link-filled.svg +3 -0
  803. package/svg-icons/folder-link.svg +3 -0
  804. package/svg-icons/gb.svg +15 -0
  805. package/svg-icons/globe-filled.svg +3 -0
  806. package/svg-icons/globe.svg +3 -0
  807. package/svg-icons/google.svg +10 -0
  808. package/svg-icons/hand-open-heart-filled.svg +5 -0
  809. package/svg-icons/hand-open-heart.svg +5 -0
  810. package/svg-icons/heart-filled.svg +5 -0
  811. package/svg-icons/heart.svg +5 -0
  812. package/svg-icons/history-filled.svg +5 -0
  813. package/svg-icons/history.svg +5 -0
  814. package/svg-icons/home-filled.svg +5 -0
  815. package/svg-icons/home.svg +5 -0
  816. package/svg-icons/image-filled.svg +5 -0
  817. package/svg-icons/image.svg +5 -0
  818. package/svg-icons/info-filled.svg +3 -0
  819. package/svg-icons/info.svg +3 -0
  820. package/svg-icons/instagram.svg +7 -0
  821. package/svg-icons/key-reset-filled.svg +5 -0
  822. package/svg-icons/key-reset.svg +5 -0
  823. package/svg-icons/link-filled.svg +5 -0
  824. package/svg-icons/link.svg +5 -0
  825. package/svg-icons/linkedin.svg +5 -0
  826. package/svg-icons/list-filled.svg +5 -0
  827. package/svg-icons/list.svg +3 -0
  828. package/svg-icons/location-filled.svg +5 -0
  829. package/svg-icons/location.svg +5 -0
  830. package/svg-icons/lock-closed-filled.svg +5 -0
  831. package/svg-icons/lock-closed.svg +5 -0
  832. package/svg-icons/lock-open-filled.svg +5 -0
  833. package/svg-icons/lock-open.svg +5 -0
  834. package/svg-icons/mail-add-filled.svg +5 -0
  835. package/svg-icons/mail-add.svg +5 -0
  836. package/svg-icons/mail-arrow-forward-filled.svg +5 -0
  837. package/svg-icons/mail-arrow-forward.svg +5 -0
  838. package/svg-icons/mail-filled.svg +5 -0
  839. package/svg-icons/mail-link-filled.svg +5 -0
  840. package/svg-icons/mail-link.svg +5 -0
  841. package/svg-icons/mail.svg +5 -0
  842. package/svg-icons/medium.svg +5 -0
  843. package/svg-icons/more-filled.svg +5 -0
  844. package/svg-icons/more-vertical-filled.svg +5 -0
  845. package/svg-icons/more-vertical.svg +5 -0
  846. package/svg-icons/more.svg +5 -0
  847. package/svg-icons/navigation-filled.svg +5 -0
  848. package/svg-icons/navigation.svg +5 -0
  849. package/svg-icons/notebook-add-filled.svg +11 -0
  850. package/svg-icons/notebook-add.svg +12 -0
  851. package/svg-icons/notebook-filled.svg +5 -0
  852. package/svg-icons/notebook.svg +5 -0
  853. package/svg-icons/only-employee.svg +3 -0
  854. package/svg-icons/open-filled.svg +5 -0
  855. package/svg-icons/open.svg +5 -0
  856. package/svg-icons/patient-filled.svg +3 -0
  857. package/svg-icons/patient.svg +3 -0
  858. package/svg-icons/people-add-filled.svg +5 -0
  859. package/svg-icons/people-add.svg +5 -0
  860. package/svg-icons/people-filled.svg +5 -0
  861. package/svg-icons/people.svg +3 -0
  862. package/svg-icons/percent.svg +5 -0
  863. package/svg-icons/person-account-filled.svg +3 -0
  864. package/svg-icons/person-account.svg +3 -0
  865. package/svg-icons/person-add-filled.svg +5 -0
  866. package/svg-icons/person-add.svg +5 -0
  867. package/svg-icons/person-filled.svg +5 -0
  868. package/svg-icons/person-star-filled.svg +5 -0
  869. package/svg-icons/person-star.svg +5 -0
  870. package/svg-icons/person-subtract-filled.svg +5 -0
  871. package/svg-icons/person-subtract.svg +5 -0
  872. package/svg-icons/person.svg +5 -0
  873. package/svg-icons/phone-filled.svg +5 -0
  874. package/svg-icons/phone.svg +5 -0
  875. package/svg-icons/pos-filled.svg +5 -0
  876. package/svg-icons/pos.svg +5 -0
  877. package/svg-icons/prohibited-filled.svg +5 -0
  878. package/svg-icons/prohibited.svg +5 -0
  879. package/svg-icons/project-product.svg +3 -0
  880. package/svg-icons/question-filled.svg +5 -0
  881. package/svg-icons/question.svg +5 -0
  882. package/svg-icons/redo-filled.svg +5 -0
  883. package/svg-icons/redo.svg +5 -0
  884. package/svg-icons/ru.svg +10 -0
  885. package/svg-icons/rub-filled.svg +3 -0
  886. package/svg-icons/rub.svg +3 -0
  887. package/svg-icons/save-filled.svg +5 -0
  888. package/svg-icons/save.svg +5 -0
  889. package/svg-icons/savings-filled.svg +5 -0
  890. package/svg-icons/savings.svg +5 -0
  891. package/svg-icons/search-filled.svg +5 -0
  892. package/svg-icons/search.svg +5 -0
  893. package/svg-icons/select-all-off-filled.svg +5 -0
  894. package/svg-icons/select-all-off.svg +5 -0
  895. package/svg-icons/select-all-on-filled.svg +5 -0
  896. package/svg-icons/select-all-on.svg +5 -0
  897. package/svg-icons/send-filled.svg +5 -0
  898. package/svg-icons/send.svg +5 -0
  899. package/svg-icons/settings-filled.svg +5 -0
  900. package/svg-icons/settings.svg +3 -0
  901. package/svg-icons/share-android-filled.svg +5 -0
  902. package/svg-icons/share-android.svg +5 -0
  903. package/svg-icons/share-filled.svg +5 -0
  904. package/svg-icons/share.svg +5 -0
  905. package/svg-icons/sign-out-filled.svg +5 -0
  906. package/svg-icons/sign-out.svg +5 -0
  907. package/svg-icons/spinner-filled.svg +5 -0
  908. package/svg-icons/spinner.svg +5 -0
  909. package/svg-icons/status-filled.svg +5 -0
  910. package/svg-icons/status.svg +5 -0
  911. package/svg-icons/subtract-circle-filled.svg +5 -0
  912. package/svg-icons/subtract-circle.svg +5 -0
  913. package/svg-icons/subtract-filled.svg +5 -0
  914. package/svg-icons/subtract.svg +5 -0
  915. package/svg-icons/table-cell-edit-filled.svg +10 -0
  916. package/svg-icons/table-cell-edit.svg +8 -0
  917. package/svg-icons/telegram.svg +10 -0
  918. package/svg-icons/timer-filled.svg +5 -0
  919. package/svg-icons/timer.svg +5 -0
  920. package/svg-icons/twitter.svg +5 -0
  921. package/svg-icons/undo-filled.svg +5 -0
  922. package/svg-icons/undo.svg +5 -0
  923. package/svg-icons/units-employee.svg +3 -0
  924. package/svg-icons/usd-filled.svg +3 -0
  925. package/svg-icons/usd.svg +3 -0
  926. package/svg-icons/video-filled.svg +3 -0
  927. package/svg-icons/video.svg +3 -0
  928. package/svg-icons/wallet-filled.svg +5 -0
  929. package/svg-icons/wallet.svg +5 -0
  930. package/svg-icons/warning-filled.svg +3 -0
  931. package/svg-icons/warning.svg +3 -0
  932. package/svg-icons/youtube.svg +5 -0
  933. package/tsconfig.json +33 -0
@@ -0,0 +1,67 @@
1
+ import React, { ReactElement } from 'react'
2
+ import classnames from 'classnames'
3
+ import { TButtonPropTypes } from './types'
4
+ import { Loader } from '../../helperComponents'
5
+ import { ICON_SIZE_MAPPING, ICON_TYPE_MAPPING, LITE_LOADER_TYPES } from './consts'
6
+
7
+ export const Button = (props: TButtonPropTypes): ReactElement => {
8
+ const {
9
+ buttonText,
10
+ type = 'primary',
11
+ size = 'large',
12
+ className = '',
13
+ iconProps,
14
+ buttonActionType = 'button',
15
+ disabled,
16
+ isLoading,
17
+ formId,
18
+ dataId = '',
19
+ onClick,
20
+ refHandler = null,
21
+ children,
22
+ ...rest
23
+ } = props
24
+
25
+ const justIcon = !buttonText && !children && iconProps !== undefined
26
+
27
+ return (
28
+ <button
29
+ ref={refHandler}
30
+ data-id={dataId}
31
+ disabled={disabled}
32
+ type={buttonActionType}
33
+ className={classnames(
34
+ 'btn',
35
+ `btn--${type}`,
36
+ `btn--${size}`,
37
+ {
38
+ 'btn--icon': justIcon,
39
+ [`btn--icon-${iconProps?.alignment || 'left'}`]:
40
+ !isLoading && !justIcon && iconProps?.Component
41
+ },
42
+ className
43
+ )}
44
+ onClick={onClick}
45
+ form={formId}
46
+ {...rest}
47
+ >
48
+ {isLoading ? (
49
+ <Loader size={size} type={LITE_LOADER_TYPES.indexOf(type) === -1 ? 'dark' : 'lite'} />
50
+ ) : (
51
+ <>
52
+ {iconProps?.Component ? (
53
+ <iconProps.Component
54
+ size={ICON_SIZE_MAPPING[size]}
55
+ type={ICON_TYPE_MAPPING[iconProps.type || type]}
56
+ className="btn__icon"
57
+ />
58
+ ) : null}
59
+ {/* {buttonSecondaryText ? <span className="btn__text">{buttonSecondaryText}</span> : null} */}
60
+ {buttonText || children ? (
61
+ <span className="btn__text">{buttonText || children}</span>
62
+ ) : null}
63
+ </>
64
+ )}
65
+ </button>
66
+ )
67
+ }
@@ -0,0 +1,18 @@
1
+ import { TSVGIconSize, TSVGIconType } from '../SVGIcons/types'
2
+
3
+ export const LITE_LOADER_TYPES = ['primary', 'danger']
4
+
5
+ export const ICON_SIZE_MAPPING: { [key: string]: TSVGIconSize } = {
6
+ large: 'small',
7
+ medium: 'small',
8
+ small: 'xsmall'
9
+ }
10
+
11
+ export const ICON_TYPE_MAPPING: { [key: string]: TSVGIconType } = {
12
+ primary: 'inverse',
13
+ secondary: 'secondary',
14
+ tertiary: 'primary',
15
+ danger: 'inverse',
16
+ text: 'selected',
17
+ link: 'selected'
18
+ }
@@ -0,0 +1 @@
1
+ export * from './Button'
@@ -0,0 +1,24 @@
1
+ import { ButtonHTMLAttributes, LegacyRef, PropsWithChildren, ReactElement } from 'react'
2
+ import { TSVGIconType } from '../SVGIcons/types'
3
+
4
+ export interface TButtonPropTypes
5
+ extends PropsWithChildren<Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'type' | 'children'>> {
6
+ id?: string
7
+ disabled?: boolean
8
+ buttonActionType?: 'submit' | 'button' | 'reset'
9
+ buttonText?: string | ReactElement
10
+ className?: string
11
+ type?: 'primary' | 'secondary' | 'tertiary' | 'danger' | 'text' | 'link'
12
+ size?: 'small' | 'medium' | 'large'
13
+ isLoading?: boolean
14
+ iconProps?: {
15
+ size?: TIconSize
16
+ type?: TSVGIconType
17
+ alignment?: string
18
+ Component?: TSVGIconComponent
19
+ }
20
+ onClick?: (event: TClickEventType) => void
21
+ formId?: string
22
+ dataId?: string
23
+ refHandler?: LegacyRef<HTMLButtonElement> | undefined
24
+ }
@@ -0,0 +1,39 @@
1
+ import React, { ReactElement } from 'react'
2
+ import classnames from 'classnames'
3
+ import { TButtonIconPropTypes } from './types'
4
+ import { Loader } from '../../helperComponents'
5
+
6
+ export const ButtonIcon = (props: TButtonIconPropTypes): ReactElement => {
7
+ const {
8
+ size = 'medium',
9
+ className = '',
10
+ iconProps,
11
+ buttonActionType = 'button',
12
+ disabled,
13
+ isLoading,
14
+ formId,
15
+ dataId = '',
16
+ onClick,
17
+ refHandler = null,
18
+ ...rest
19
+ } = props
20
+
21
+ return (
22
+ <button
23
+ ref={refHandler}
24
+ data-id={dataId}
25
+ disabled={disabled}
26
+ type={buttonActionType}
27
+ className={classnames('btn-icon', `btn-icon--${size}`, className)}
28
+ onClick={onClick}
29
+ form={formId}
30
+ {...rest}
31
+ >
32
+ {isLoading ? (
33
+ <Loader size={size} type={'dark'} />
34
+ ) : (
35
+ <iconProps.Component size={size} type={disabled ? 'disabled' : 'tertiary'} />
36
+ )}
37
+ </button>
38
+ )
39
+ }
@@ -0,0 +1 @@
1
+ export * from './ButtonIcon'
@@ -0,0 +1,18 @@
1
+ import { ButtonHTMLAttributes, LegacyRef, PropsWithChildren } from 'react'
2
+
3
+ export interface TButtonIconPropTypes
4
+ extends PropsWithChildren<Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'type' | 'children'>> {
5
+ id?: string
6
+ disabled?: boolean
7
+ buttonActionType?: 'submit' | 'button' | 'reset'
8
+ className?: string
9
+ size?: 'small' | 'medium' | 'large'
10
+ isLoading?: boolean
11
+ iconProps: {
12
+ Component: TSVGIconComponent
13
+ }
14
+ onClick?: (event: TClickEventType) => void
15
+ formId?: string
16
+ dataId?: string
17
+ refHandler?: LegacyRef<HTMLButtonElement> | undefined
18
+ }
@@ -0,0 +1,28 @@
1
+ import React from 'react'
2
+ import { Text } from '../Text'
3
+ import { Image } from '../Image'
4
+ import { Button } from '../Button'
5
+ import { TCardBodyProps } from './types'
6
+ import classNames from 'classnames'
7
+
8
+ export const CardBody = (props: TCardBodyProps): JSX.Element => {
9
+ const { title, description, buttonProps, className, illustration } = props
10
+
11
+ return (
12
+ <div className={classNames('card-body', className)}>
13
+ <div className={'card-body__image'}>
14
+ <Image imagePath={illustration} />
15
+ </div>
16
+ <Text size={'large'} weight="bolder" className={'mt-32'}>
17
+ {title}
18
+ </Text>
19
+ {description ? <Text className={'mt-12'}>{description}</Text> : null}
20
+ {buttonProps ? (
21
+ <div className="body__buttons mt-32">
22
+ <Button className="full-width" {...(buttonProps.primary || {})} />
23
+ <Button type="text" className="full-width mt-24" {...buttonProps.secondary} />
24
+ </div>
25
+ ) : null}
26
+ </div>
27
+ )
28
+ }
@@ -0,0 +1 @@
1
+ export * from './CardBody'
@@ -0,0 +1,12 @@
1
+ import { TButtonPropTypes } from '../Button/types'
2
+
3
+ export interface TCardBodyProps {
4
+ className?: string
5
+ title?: string
6
+ description?: string
7
+ buttonProps?: {
8
+ primary?: TButtonPropTypes
9
+ secondary: TButtonPropTypes
10
+ }
11
+ illustration?: string
12
+ }
@@ -0,0 +1,73 @@
1
+ import React, { ReactElement } from 'react'
2
+ import { Text } from '../Text'
3
+ import { TCardSelectProps } from './types'
4
+ import classNames from 'classnames'
5
+ import { CardAdditionalInfo, CardChips, CardDescription, CardInput } from './components'
6
+ import { CARD_SELECT_TYPES } from '../../consts'
7
+ import { Radio } from '../Radio'
8
+ import { Image } from '../Image'
9
+
10
+ export const CardSelect = (props: TCardSelectProps): ReactElement => {
11
+ const {
12
+ type = CARD_SELECT_TYPES.cardRadio,
13
+ title,
14
+ description,
15
+ inputProps,
16
+ chips = [],
17
+ disabled,
18
+ className,
19
+ additionalInfo,
20
+ handleChange,
21
+ name,
22
+ setFieldValue,
23
+ value,
24
+ cardValue,
25
+ illustration,
26
+ icon
27
+ } = props
28
+ const selected = cardValue === value
29
+ const cardSelectStyle = classNames(
30
+ `card-select ${disabled ? 'card-select--disabled' : selected ? 'card-select--selected' : ''}`,
31
+ className
32
+ )
33
+ const handleCardSelectValue = (selected: number | string) => {
34
+ if (name && setFieldValue) {
35
+ setFieldValue(name, selected, { shouldValidate: true })
36
+ }
37
+ handleChange?.(selected)
38
+ }
39
+
40
+ const handleCardSelect = () => {
41
+ if (cardValue) {
42
+ handleCardSelectValue(cardValue)
43
+ }
44
+ }
45
+
46
+ return (
47
+ <div className={cardSelectStyle} onClick={handleCardSelect}>
48
+ {illustration ? (
49
+ <div className={'card-select__image mr-16'}>
50
+ <Image imagePath={illustration} />
51
+ </div>
52
+ ) : icon && icon.Component ? (
53
+ <div className={'card-select__icon mr-16'}>
54
+ <icon.Component {...icon} />
55
+ </div>
56
+ ) : null}
57
+ <div className={'card-select__content'}>
58
+ <div className="flexbox justify-content--between align-items--start">
59
+ <Text type={disabled ? 'disabled' : 'primary'} size={'medium'} weight={'bold'}>
60
+ <>{title}</>
61
+ </Text>
62
+ {type === CARD_SELECT_TYPES.cardRadio ? (
63
+ <Radio name={name} isSelected={selected} disabled={disabled} className={'ml-16'} />
64
+ ) : null}
65
+ </div>
66
+ {chips.length ? <CardChips chips={chips} disabled={disabled} /> : null}
67
+ <CardInput inputProps={inputProps} disabled={disabled} />
68
+ <CardDescription description={description} disabled={disabled} />
69
+ <CardAdditionalInfo additionalInfo={additionalInfo} disabled={disabled} />
70
+ </div>
71
+ </div>
72
+ )
73
+ }
@@ -0,0 +1,49 @@
1
+ import React from 'react'
2
+ import { TCardSelectGroupProps } from './types'
3
+ import { CardSelect } from './CardSelect'
4
+ import classNames from 'classnames'
5
+
6
+ export const CardSelectGroup = (props: TCardSelectGroupProps): JSX.Element => {
7
+ const { cards, name, handleChange, value, cardsGroupType, cardsGroupDisable, className } = props
8
+
9
+ return (
10
+ <div className={classNames('card-select-group', className)}>
11
+ {cards.map(
12
+ (
13
+ {
14
+ type,
15
+ illustration,
16
+ icon,
17
+ value: cardValue,
18
+ title,
19
+ description,
20
+ chips,
21
+ inputProps,
22
+ additionalInfo,
23
+ id,
24
+ disabled
25
+ },
26
+ index
27
+ ) => (
28
+ <CardSelect
29
+ className={'card-select-group__item'}
30
+ name={name}
31
+ key={id || index}
32
+ type={cardsGroupType || type}
33
+ title={title}
34
+ description={description}
35
+ chips={chips}
36
+ inputProps={inputProps}
37
+ handleChange={handleChange}
38
+ additionalInfo={additionalInfo}
39
+ cardValue={cardValue}
40
+ value={value}
41
+ illustration={illustration}
42
+ icon={icon}
43
+ disabled={cardsGroupDisable || disabled}
44
+ />
45
+ )
46
+ )}
47
+ </div>
48
+ )
49
+ }
@@ -0,0 +1,34 @@
1
+ import { Divider } from '../../Divider'
2
+ import { Text } from '../../Text'
3
+ import React, { ReactElement } from 'react'
4
+ import { TInfoList } from '../types'
5
+
6
+ interface TCardAdditionalInfo {
7
+ additionalInfo?: TInfoList
8
+ disabled?: boolean
9
+ }
10
+ export const CardAdditionalInfo = (props: TCardAdditionalInfo): ReactElement | null => {
11
+ const { additionalInfo, disabled } = props
12
+ return additionalInfo?.length ? (
13
+ <>
14
+ <Divider type={'primary'} isHorizontal={true} className={'mt-16 mb-16'} />
15
+ <div className="card-select__list">
16
+ {additionalInfo.map(({ key, value, id }) => {
17
+ return (
18
+ <div
19
+ key={id}
20
+ className="card-select__list__item flexbox justify-content--between mt-12"
21
+ >
22
+ <Text type={disabled ? 'disabled' : 'secondary'} size={'small'} className={'pr-16'}>
23
+ {key}
24
+ </Text>
25
+ <Text type={disabled ? 'disabled' : 'primary'} weight={'semibold'}>
26
+ {value}
27
+ </Text>
28
+ </div>
29
+ )
30
+ })}
31
+ </div>
32
+ </>
33
+ ) : null
34
+ }
@@ -0,0 +1,25 @@
1
+ import React, { ReactElement } from 'react'
2
+ import { Chips } from '../../Chips'
3
+ import { TChipsProps } from '../../Chips/types'
4
+
5
+ interface TCardChips {
6
+ chips: TChipsProps[]
7
+ disabled?: boolean
8
+ }
9
+ export const CardChips = (props: TCardChips): ReactElement => {
10
+ const { chips, disabled } = props
11
+ return (
12
+ <div>
13
+ {chips.map((chip) => (
14
+ <Chips
15
+ {...chip}
16
+ key={chip.id}
17
+ disabled={disabled}
18
+ className={'mt-8 mr-8'}
19
+ onClick={chip.onClick}
20
+ withAction={chip.withAction}
21
+ />
22
+ ))}
23
+ </div>
24
+ )
25
+ }
@@ -0,0 +1,15 @@
1
+ import React, { ReactElement } from 'react'
2
+ import { Text } from '../../Text'
3
+
4
+ interface TCardDescription {
5
+ description?: string
6
+ disabled?: boolean
7
+ }
8
+ export const CardDescription = (props: TCardDescription): ReactElement | null => {
9
+ const { description, disabled } = props
10
+ return description ? (
11
+ <Text type={disabled ? 'disabled' : 'secondary'} className={'mt-8'}>
12
+ <>{description}</>
13
+ </Text>
14
+ ) : null
15
+ }
@@ -0,0 +1,12 @@
1
+ import React, { ReactElement } from 'react'
2
+ import { InputCustomProps } from '../../Input/types'
3
+ import { Input } from '../../Input'
4
+
5
+ interface TCardInput {
6
+ inputProps?: InputCustomProps
7
+ disabled?: boolean
8
+ }
9
+ export const CardInput = (props: TCardInput): ReactElement | null => {
10
+ const { inputProps, disabled } = props
11
+ return inputProps ? <Input {...inputProps} className={'mt-16'} disabled={disabled} /> : null
12
+ }
@@ -0,0 +1,4 @@
1
+ export { CardChips } from './CardChips'
2
+ export { CardInput } from './CardInput'
3
+ export { CardDescription } from './CardDescription'
4
+ export { CardAdditionalInfo } from './CardAdditionalInfo'
@@ -0,0 +1,2 @@
1
+ export { CardSelect } from './CardSelect'
2
+ export { CardSelectGroup } from './CardSelectGroup'
@@ -0,0 +1,39 @@
1
+ import { InputCustomProps } from '../Input/types'
2
+ import { TChipsProps } from '../Chips/types'
3
+ import { CARD_SELECT_TYPES } from '../../consts'
4
+ export interface TCardSelectProps extends IFormCompProps {
5
+ id?: number | string
6
+ type?: CARD_SELECT_TYPES
7
+ title: string
8
+ description: string
9
+ chips?: TChipsProps[]
10
+ inputProps?: InputCustomProps
11
+ className?: string
12
+ disabled?: boolean
13
+ handleCardSelectValue?: (isChecked: boolean) => void
14
+ dataId?: string
15
+ additionalInfo?: TInfoList
16
+ selectedCard?: number
17
+ value?: number | string
18
+ handleChange?: (selected: number | string) => void
19
+ isSelected?: boolean
20
+ cardValue?: number | string
21
+ illustration?: string
22
+ icon?: TSelectIconProps
23
+ }
24
+ export interface TCardSelectGroupProps extends IFormCompProps {
25
+ cards: TCardSelectProps[]
26
+ handleChange?: (selected: number | string) => void
27
+ value: number | string
28
+ cardsGroupDisable?: boolean
29
+ cardsGroupType?: CARD_SELECT_TYPES
30
+ className?: string
31
+ }
32
+
33
+ export type TInfoList = TInfoListItem[]
34
+
35
+ export type TInfoListItem = {
36
+ key: string
37
+ value: string
38
+ id?: number | string
39
+ }
@@ -0,0 +1,45 @@
1
+ import React, { ReactElement } from 'react'
2
+ import { TCardItemProps } from './types'
3
+ import { Text } from '../Text'
4
+ import classNames from 'classnames'
5
+ import { Image } from '../Image'
6
+ export const CardItem = (props: TCardItemProps): ReactElement => {
7
+ const { title, icon, subtitleProps, children, className, image, disabled } = props
8
+
9
+ return (
10
+ <div className={classNames('card-item', className)}>
11
+ <div className={'card-item__left flexbox align-items--center'}>
12
+ {image ? (
13
+ <div className={'card-item__image flexbox align-items--center justify-content--center'}>
14
+ <Image imagePath={image} />
15
+ </div>
16
+ ) : icon && icon.Component ? (
17
+ <icon.Component {...icon} />
18
+ ) : null}
19
+ <div
20
+ className={`card-item__content text-truncate ${
21
+ (image || (icon && icon?.Component)) && 'pl-12'
22
+ }`}
23
+ >
24
+ <Text weight={'bold'}>{title}</Text>
25
+ <Text type={'tertiary'} className={'flexbox align-items--center mt-2'}>
26
+ <>
27
+ {subtitleProps?.subtitle}
28
+ {subtitleProps?.iconProps && subtitleProps.iconProps.Component ? (
29
+ <subtitleProps.iconProps.Component
30
+ {...icon}
31
+ size={'xsmall'}
32
+ type={'tertiary'}
33
+ className={'ml-6'}
34
+ />
35
+ ) : null}
36
+ </>
37
+ </Text>
38
+ </div>
39
+ </div>
40
+ {!disabled ? (
41
+ <div className={'card-item__right ml-12'}>{children ? children : null}</div>
42
+ ) : null}
43
+ </div>
44
+ )
45
+ }
@@ -0,0 +1 @@
1
+ export * from './CardItem'
@@ -0,0 +1,15 @@
1
+ import { ReactNode } from 'react'
2
+
3
+ type TSubtitleProps = {
4
+ subtitle?: string
5
+ iconProps?: TSelectIconProps
6
+ }
7
+ export interface TCardItemProps {
8
+ title?: string
9
+ subtitleProps?: TSubtitleProps
10
+ icon?: TSelectIconProps
11
+ children?: ReactNode
12
+ className?: string
13
+ image?: string
14
+ disabled?: boolean
15
+ }