@expressms/smartapp-ui 2.5.8 → 2.5.9

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 (401) hide show
  1. package/build/main/assets/icons/arrow-back.svg +3 -0
  2. package/build/main/assets/icons/arrow-down.svg +3 -0
  3. package/build/main/assets/icons/arrow-up.svg +3 -0
  4. package/build/main/assets/icons/attachment-loader.svg +3 -0
  5. package/build/main/assets/icons/button-loader.svg +3 -0
  6. package/build/main/assets/icons/cancel-cross.svg +3 -0
  7. package/build/main/assets/icons/check-mark.svg +4 -0
  8. package/build/main/assets/icons/clear.svg +3 -0
  9. package/build/main/assets/icons/close-stories.svg +4 -0
  10. package/build/main/assets/icons/close.svg +10 -0
  11. package/build/main/assets/icons/contact-info.svg +12 -0
  12. package/build/main/assets/icons/corporate-user.svg +10 -0
  13. package/build/main/assets/icons/crown.svg +5 -0
  14. package/build/main/assets/icons/delete-chip.svg +3 -0
  15. package/build/main/assets/icons/download.svg +4 -0
  16. package/build/main/assets/icons/error.svg +5 -0
  17. package/build/main/assets/icons/external-link.svg +3 -0
  18. package/build/main/assets/icons/eye-off.svg +10 -0
  19. package/build/main/assets/icons/eye.svg +10 -0
  20. package/build/main/assets/icons/file.svg +3 -0
  21. package/build/main/assets/icons/info.svg +5 -0
  22. package/build/main/assets/icons/loader.svg +3 -0
  23. package/build/main/assets/icons/logout.svg +4 -0
  24. package/build/main/assets/icons/magnifying-glass.svg +3 -0
  25. package/build/main/assets/icons/mail.svg +3 -0
  26. package/build/main/assets/icons/my-contact-user.svg +10 -0
  27. package/build/main/assets/icons/notification-close.svg +3 -0
  28. package/build/main/assets/icons/notification-error.svg +3 -0
  29. package/build/main/assets/icons/notification-failure.svg +3 -0
  30. package/build/main/assets/icons/notification-info.svg +5 -0
  31. package/build/main/assets/icons/notification-success.svg +4 -0
  32. package/build/main/assets/icons/notification-warning.svg +5 -0
  33. package/build/main/assets/icons/order.svg +6 -0
  34. package/build/main/assets/icons/plus.svg +4 -0
  35. package/build/main/assets/icons/refresh.svg +3 -0
  36. package/build/main/assets/icons/story-loader.svg +3 -0
  37. package/build/main/assets/icons/tick.svg +10 -0
  38. package/build/main/assets/icons/trash.svg +3 -0
  39. package/build/main/assets/storybook/index.d.ts +12 -0
  40. package/build/main/assets/storybook/index.js +13 -0
  41. package/build/main/assets/storybook/index.js.map +1 -0
  42. package/build/main/constants/constants.d.ts +136 -0
  43. package/build/main/constants/constants.js +152 -0
  44. package/build/main/constants/constants.js.map +1 -0
  45. package/build/main/constants/index.d.ts +2 -0
  46. package/build/main/constants/index.js +3 -0
  47. package/build/main/constants/index.js.map +1 -0
  48. package/build/main/constants/types.d.ts +28 -0
  49. package/build/main/constants/types.js +2 -0
  50. package/build/main/constants/types.js.map +1 -0
  51. package/build/main/helpers/index.d.ts +20 -0
  52. package/build/main/helpers/index.js +80 -0
  53. package/build/main/helpers/index.js.map +1 -0
  54. package/build/main/index.d.ts +3 -0
  55. package/build/main/index.js +4 -0
  56. package/build/main/index.js.map +1 -0
  57. package/build/main/styles/index.d.ts +1 -0
  58. package/build/main/styles/index.js +2 -0
  59. package/build/main/styles/index.js.map +1 -0
  60. package/build/main/styles/main.js +0 -0
  61. package/build/main/styles/styles.scss +14 -0
  62. package/build/main//321/201omponents/ActionModal/ActionModal.d.ts +4 -0
  63. package/build/main//321/201omponents/ActionModal/ActionModal.js +56 -0
  64. package/build/main//321/201omponents/ActionModal/ActionModal.js.map +1 -0
  65. package/build/main//321/201omponents/ActionModal/index.d.ts +1 -0
  66. package/build/main//321/201omponents/ActionModal/index.js +2 -0
  67. package/build/main//321/201omponents/ActionModal/index.js.map +1 -0
  68. package/build/main//321/201omponents/ActionModal/types.d.ts +20 -0
  69. package/build/main//321/201omponents/ActionModal/types.js +2 -0
  70. package/build/main//321/201omponents/ActionModal/types.js.map +1 -0
  71. package/build/main//321/201omponents/AttachedFile/AttachedFile.d.ts +8 -0
  72. package/build/main//321/201omponents/AttachedFile/AttachedFile.js +60 -0
  73. package/build/main//321/201omponents/AttachedFile/AttachedFile.js.map +1 -0
  74. package/build/main//321/201omponents/AttachedFile/index.d.ts +1 -0
  75. package/build/main//321/201omponents/AttachedFile/index.js +2 -0
  76. package/build/main//321/201omponents/AttachedFile/index.js.map +1 -0
  77. package/build/main//321/201omponents/AttachedFile/types.d.ts +23 -0
  78. package/build/main//321/201omponents/AttachedFile/types.js +2 -0
  79. package/build/main//321/201omponents/AttachedFile/types.js.map +1 -0
  80. package/build/main//321/201omponents/Avatar/Avatar.d.ts +4 -0
  81. package/build/main//321/201omponents/Avatar/Avatar.js +115 -0
  82. package/build/main//321/201omponents/Avatar/Avatar.js.map +1 -0
  83. package/build/main//321/201omponents/Avatar/index.d.ts +1 -0
  84. package/build/main//321/201omponents/Avatar/index.js +2 -0
  85. package/build/main//321/201omponents/Avatar/index.js.map +1 -0
  86. package/build/main//321/201omponents/Avatar/types.d.ts +36 -0
  87. package/build/main//321/201omponents/Avatar/types.js +9 -0
  88. package/build/main//321/201omponents/Avatar/types.js.map +1 -0
  89. package/build/main//321/201omponents/Button/Button.d.ts +4 -0
  90. package/build/main//321/201omponents/Button/Button.js +57 -0
  91. package/build/main//321/201omponents/Button/Button.js.map +1 -0
  92. package/build/main//321/201omponents/Button/index.d.ts +1 -0
  93. package/build/main//321/201omponents/Button/index.js +2 -0
  94. package/build/main//321/201omponents/Button/index.js.map +1 -0
  95. package/build/main//321/201omponents/Button/types.d.ts +23 -0
  96. package/build/main//321/201omponents/Button/types.js +11 -0
  97. package/build/main//321/201omponents/Button/types.js.map +1 -0
  98. package/build/main//321/201omponents/CachedImage/CachedImage.d.ts +4 -0
  99. package/build/main//321/201omponents/CachedImage/CachedImage.js +54 -0
  100. package/build/main//321/201omponents/CachedImage/CachedImage.js.map +1 -0
  101. package/build/main//321/201omponents/CachedImage/helpers.d.ts +3 -0
  102. package/build/main//321/201omponents/CachedImage/helpers.js +40 -0
  103. package/build/main//321/201omponents/CachedImage/helpers.js.map +1 -0
  104. package/build/main//321/201omponents/CachedImage/index.d.ts +1 -0
  105. package/build/main//321/201omponents/CachedImage/index.js +2 -0
  106. package/build/main//321/201omponents/CachedImage/index.js.map +1 -0
  107. package/build/main//321/201omponents/CachedImage/types.d.ts +8 -0
  108. package/build/main//321/201omponents/CachedImage/types.js +2 -0
  109. package/build/main//321/201omponents/CachedImage/types.js.map +1 -0
  110. package/build/main//321/201omponents/Calendar/Calendar.d.ts +4 -0
  111. package/build/main//321/201omponents/Calendar/Calendar.js +48 -0
  112. package/build/main//321/201omponents/Calendar/Calendar.js.map +1 -0
  113. package/build/main//321/201omponents/Calendar/index.d.ts +1 -0
  114. package/build/main//321/201omponents/Calendar/index.js +2 -0
  115. package/build/main//321/201omponents/Calendar/index.js.map +1 -0
  116. package/build/main//321/201omponents/Calendar/types.d.ts +14 -0
  117. package/build/main//321/201omponents/Calendar/types.js +2 -0
  118. package/build/main//321/201omponents/Calendar/types.js.map +1 -0
  119. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.d.ts +3 -0
  120. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js +39 -0
  121. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js.map +1 -0
  122. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.d.ts +3 -0
  123. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js +30 -0
  124. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js.map +1 -0
  125. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.d.ts +3 -0
  126. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js +64 -0
  127. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js.map +1 -0
  128. package/build/main//321/201omponents/Charts/colors.d.ts +2 -0
  129. package/build/main//321/201omponents/Charts/colors.js +3 -0
  130. package/build/main//321/201omponents/Charts/colors.js.map +1 -0
  131. package/build/main//321/201omponents/Charts/constants.d.ts +50 -0
  132. package/build/main//321/201omponents/Charts/constants.js +36 -0
  133. package/build/main//321/201omponents/Charts/constants.js.map +1 -0
  134. package/build/main//321/201omponents/Charts/helpers.d.ts +68 -0
  135. package/build/main//321/201omponents/Charts/helpers.js +91 -0
  136. package/build/main//321/201omponents/Charts/helpers.js.map +1 -0
  137. package/build/main//321/201omponents/Charts/index.d.ts +3 -0
  138. package/build/main//321/201omponents/Charts/index.js +4 -0
  139. package/build/main//321/201omponents/Charts/index.js.map +1 -0
  140. package/build/main//321/201omponents/Charts/types.d.ts +51 -0
  141. package/build/main//321/201omponents/Charts/types.js +2 -0
  142. package/build/main//321/201omponents/Charts/types.js.map +1 -0
  143. package/build/main//321/201omponents/Checkbox/Checkbox.d.ts +4 -0
  144. package/build/main//321/201omponents/Checkbox/Checkbox.js +36 -0
  145. package/build/main//321/201omponents/Checkbox/Checkbox.js.map +1 -0
  146. package/build/main//321/201omponents/Checkbox/index.d.ts +1 -0
  147. package/build/main//321/201omponents/Checkbox/index.js +2 -0
  148. package/build/main//321/201omponents/Checkbox/index.js.map +1 -0
  149. package/build/main//321/201omponents/Checkbox/types.d.ts +9 -0
  150. package/build/main//321/201omponents/Checkbox/types.js +2 -0
  151. package/build/main//321/201omponents/Checkbox/types.js.map +1 -0
  152. package/build/main//321/201omponents/Chip/Chip.d.ts +4 -0
  153. package/build/main//321/201omponents/Chip/Chip.js +40 -0
  154. package/build/main//321/201omponents/Chip/Chip.js.map +1 -0
  155. package/build/main//321/201omponents/Chip/index.d.ts +1 -0
  156. package/build/main//321/201omponents/Chip/index.js +2 -0
  157. package/build/main//321/201omponents/Chip/index.js.map +1 -0
  158. package/build/main//321/201omponents/Chip/types.d.ts +10 -0
  159. package/build/main//321/201omponents/Chip/types.js +2 -0
  160. package/build/main//321/201omponents/Chip/types.js.map +1 -0
  161. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.d.ts +4 -0
  162. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +44 -0
  163. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js.map +1 -0
  164. package/build/main//321/201omponents/ConfirmationModal/index.d.ts +1 -0
  165. package/build/main//321/201omponents/ConfirmationModal/index.js +2 -0
  166. package/build/main//321/201omponents/ConfirmationModal/index.js.map +1 -0
  167. package/build/main//321/201omponents/ConfirmationModal/types.d.ts +16 -0
  168. package/build/main//321/201omponents/ConfirmationModal/types.js +2 -0
  169. package/build/main//321/201omponents/ConfirmationModal/types.js.map +1 -0
  170. package/build/main//321/201omponents/ContextMenu/ContextMenu.d.ts +4 -0
  171. package/build/main//321/201omponents/ContextMenu/ContextMenu.js +55 -0
  172. package/build/main//321/201omponents/ContextMenu/ContextMenu.js.map +1 -0
  173. package/build/main//321/201omponents/ContextMenu/index.d.ts +1 -0
  174. package/build/main//321/201omponents/ContextMenu/index.js +2 -0
  175. package/build/main//321/201omponents/ContextMenu/index.js.map +1 -0
  176. package/build/main//321/201omponents/ContextMenu/types.d.ts +24 -0
  177. package/build/main//321/201omponents/ContextMenu/types.js +2 -0
  178. package/build/main//321/201omponents/ContextMenu/types.js.map +1 -0
  179. package/build/main//321/201omponents/CustomSelect/CustomSelect.d.ts +4 -0
  180. package/build/main//321/201omponents/CustomSelect/CustomSelect.js +172 -0
  181. package/build/main//321/201omponents/CustomSelect/CustomSelect.js.map +1 -0
  182. package/build/main//321/201omponents/CustomSelect/index.d.ts +1 -0
  183. package/build/main//321/201omponents/CustomSelect/index.js +2 -0
  184. package/build/main//321/201omponents/CustomSelect/index.js.map +1 -0
  185. package/build/main//321/201omponents/CustomSelect/selectStyles.d.ts +16 -0
  186. package/build/main//321/201omponents/CustomSelect/selectStyles.js +61 -0
  187. package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +1 -0
  188. package/build/main//321/201omponents/CustomSelect/types.d.ts +54 -0
  189. package/build/main//321/201omponents/CustomSelect/types.js +2 -0
  190. package/build/main//321/201omponents/CustomSelect/types.js.map +1 -0
  191. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.d.ts +4 -0
  192. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js +57 -0
  193. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js.map +1 -0
  194. package/build/main//321/201omponents/CustomSelectProfiles/index.d.ts +1 -0
  195. package/build/main//321/201omponents/CustomSelectProfiles/index.js +2 -0
  196. package/build/main//321/201omponents/CustomSelectProfiles/index.js.map +1 -0
  197. package/build/main//321/201omponents/CustomSelectProfiles/types.d.ts +12 -0
  198. package/build/main//321/201omponents/CustomSelectProfiles/types.js +2 -0
  199. package/build/main//321/201omponents/CustomSelectProfiles/types.js.map +1 -0
  200. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.d.ts +4 -0
  201. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +57 -0
  202. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js.map +1 -0
  203. package/build/main//321/201omponents/DragAndDrop/index.d.ts +1 -0
  204. package/build/main//321/201omponents/DragAndDrop/index.js +2 -0
  205. package/build/main//321/201omponents/DragAndDrop/index.js.map +1 -0
  206. package/build/main//321/201omponents/DragAndDrop/types.d.ts +24 -0
  207. package/build/main//321/201omponents/DragAndDrop/types.js +2 -0
  208. package/build/main//321/201omponents/DragAndDrop/types.js.map +1 -0
  209. package/build/main//321/201omponents/Error/Error.d.ts +4 -0
  210. package/build/main//321/201omponents/Error/Error.js +22 -0
  211. package/build/main//321/201omponents/Error/Error.js.map +1 -0
  212. package/build/main//321/201omponents/Error/index.d.ts +1 -0
  213. package/build/main//321/201omponents/Error/index.js +2 -0
  214. package/build/main//321/201omponents/Error/index.js.map +1 -0
  215. package/build/main//321/201omponents/Error/types.d.ts +7 -0
  216. package/build/main//321/201omponents/Error/types.js +2 -0
  217. package/build/main//321/201omponents/Error/types.js.map +1 -0
  218. package/build/main//321/201omponents/Header/Header.d.ts +5 -0
  219. package/build/main//321/201omponents/Header/Header.js +124 -0
  220. package/build/main//321/201omponents/Header/Header.js.map +1 -0
  221. package/build/main//321/201omponents/Header/index.d.ts +1 -0
  222. package/build/main//321/201omponents/Header/index.js +2 -0
  223. package/build/main//321/201omponents/Header/index.js.map +1 -0
  224. package/build/main//321/201omponents/Header/types.d.ts +44 -0
  225. package/build/main//321/201omponents/Header/types.js +2 -0
  226. package/build/main//321/201omponents/Header/types.js.map +1 -0
  227. package/build/main//321/201omponents/Input/Input.d.ts +4 -0
  228. package/build/main//321/201omponents/Input/Input.js +210 -0
  229. package/build/main//321/201omponents/Input/Input.js.map +1 -0
  230. package/build/main//321/201omponents/Input/index.d.ts +1 -0
  231. package/build/main//321/201omponents/Input/index.js +2 -0
  232. package/build/main//321/201omponents/Input/index.js.map +1 -0
  233. package/build/main//321/201omponents/Input/types.d.ts +27 -0
  234. package/build/main//321/201omponents/Input/types.js +2 -0
  235. package/build/main//321/201omponents/Input/types.js.map +1 -0
  236. package/build/main//321/201omponents/ListItem/ListItem.d.ts +23 -0
  237. package/build/main//321/201omponents/ListItem/ListItem.js +195 -0
  238. package/build/main//321/201omponents/ListItem/ListItem.js.map +1 -0
  239. package/build/main//321/201omponents/ListItem/index.d.ts +1 -0
  240. package/build/main//321/201omponents/ListItem/index.js +2 -0
  241. package/build/main//321/201omponents/ListItem/index.js.map +1 -0
  242. package/build/main//321/201omponents/ListItem/types.d.ts +38 -0
  243. package/build/main//321/201omponents/ListItem/types.js +2 -0
  244. package/build/main//321/201omponents/ListItem/types.js.map +1 -0
  245. package/build/main//321/201omponents/Loader/Loader.d.ts +4 -0
  246. package/build/main//321/201omponents/Loader/Loader.js +40 -0
  247. package/build/main//321/201omponents/Loader/Loader.js.map +1 -0
  248. package/build/main//321/201omponents/Loader/index.d.ts +1 -0
  249. package/build/main//321/201omponents/Loader/index.js +2 -0
  250. package/build/main//321/201omponents/Loader/index.js.map +1 -0
  251. package/build/main//321/201omponents/Loader/types.d.ts +12 -0
  252. package/build/main//321/201omponents/Loader/types.js +2 -0
  253. package/build/main//321/201omponents/Loader/types.js.map +1 -0
  254. package/build/main//321/201omponents/Modal/Modal.d.ts +4 -0
  255. package/build/main//321/201omponents/Modal/Modal.js +53 -0
  256. package/build/main//321/201omponents/Modal/Modal.js.map +1 -0
  257. package/build/main//321/201omponents/Modal/index.d.ts +1 -0
  258. package/build/main//321/201omponents/Modal/index.js +2 -0
  259. package/build/main//321/201omponents/Modal/index.js.map +1 -0
  260. package/build/main//321/201omponents/Modal/types.d.ts +15 -0
  261. package/build/main//321/201omponents/Modal/types.js +2 -0
  262. package/build/main//321/201omponents/Modal/types.js.map +1 -0
  263. package/build/main//321/201omponents/Notification/Notification.d.ts +8 -0
  264. package/build/main//321/201omponents/Notification/Notification.js +178 -0
  265. package/build/main//321/201omponents/Notification/Notification.js.map +1 -0
  266. package/build/main//321/201omponents/Notification/index.d.ts +1 -0
  267. package/build/main//321/201omponents/Notification/index.js +2 -0
  268. package/build/main//321/201omponents/Notification/index.js.map +1 -0
  269. package/build/main//321/201omponents/Notification/types.d.ts +39 -0
  270. package/build/main//321/201omponents/Notification/types.js +2 -0
  271. package/build/main//321/201omponents/Notification/types.js.map +1 -0
  272. package/build/main//321/201omponents/Profile/Profile.d.ts +4 -0
  273. package/build/main//321/201omponents/Profile/Profile.js +42 -0
  274. package/build/main//321/201omponents/Profile/Profile.js.map +1 -0
  275. package/build/main//321/201omponents/Profile/index.d.ts +1 -0
  276. package/build/main//321/201omponents/Profile/index.js +2 -0
  277. package/build/main//321/201omponents/Profile/index.js.map +1 -0
  278. package/build/main//321/201omponents/Profile/types.d.ts +14 -0
  279. package/build/main//321/201omponents/Profile/types.js +2 -0
  280. package/build/main//321/201omponents/Profile/types.js.map +1 -0
  281. package/build/main//321/201omponents/ProgressBar/ProgressBar.d.ts +4 -0
  282. package/build/main//321/201omponents/ProgressBar/ProgressBar.js +66 -0
  283. package/build/main//321/201omponents/ProgressBar/ProgressBar.js.map +1 -0
  284. package/build/main//321/201omponents/ProgressBar/index.d.ts +1 -0
  285. package/build/main//321/201omponents/ProgressBar/index.js +2 -0
  286. package/build/main//321/201omponents/ProgressBar/index.js.map +1 -0
  287. package/build/main//321/201omponents/ProgressBar/types.d.ts +4 -0
  288. package/build/main//321/201omponents/ProgressBar/types.js +2 -0
  289. package/build/main//321/201omponents/ProgressBar/types.js.map +1 -0
  290. package/build/main//321/201omponents/RadioButton/RadioButton.d.ts +4 -0
  291. package/build/main//321/201omponents/RadioButton/RadioButton.js +36 -0
  292. package/build/main//321/201omponents/RadioButton/RadioButton.js.map +1 -0
  293. package/build/main//321/201omponents/RadioButton/index.d.ts +1 -0
  294. package/build/main//321/201omponents/RadioButton/index.js +2 -0
  295. package/build/main//321/201omponents/RadioButton/index.js.map +1 -0
  296. package/build/main//321/201omponents/RadioButton/types.d.ts +9 -0
  297. package/build/main//321/201omponents/RadioButton/types.js +2 -0
  298. package/build/main//321/201omponents/RadioButton/types.js.map +1 -0
  299. package/build/main//321/201omponents/ScrollBar/ScrollBar.d.ts +4 -0
  300. package/build/main//321/201omponents/ScrollBar/ScrollBar.js +50 -0
  301. package/build/main//321/201omponents/ScrollBar/ScrollBar.js.map +1 -0
  302. package/build/main//321/201omponents/ScrollBar/index.d.ts +1 -0
  303. package/build/main//321/201omponents/ScrollBar/index.js +2 -0
  304. package/build/main//321/201omponents/ScrollBar/index.js.map +1 -0
  305. package/build/main//321/201omponents/ScrollBar/types.d.ts +9 -0
  306. package/build/main//321/201omponents/ScrollBar/types.js +2 -0
  307. package/build/main//321/201omponents/ScrollBar/types.js.map +1 -0
  308. package/build/main//321/201omponents/Skeleton/Skeleton.d.ts +4 -0
  309. package/build/main//321/201omponents/Skeleton/Skeleton.js +66 -0
  310. package/build/main//321/201omponents/Skeleton/Skeleton.js.map +1 -0
  311. package/build/main//321/201omponents/Skeleton/index.d.ts +1 -0
  312. package/build/main//321/201omponents/Skeleton/index.js +2 -0
  313. package/build/main//321/201omponents/Skeleton/index.js.map +1 -0
  314. package/build/main//321/201omponents/Skeleton/types.d.ts +16 -0
  315. package/build/main//321/201omponents/Skeleton/types.js +2 -0
  316. package/build/main//321/201omponents/Skeleton/types.js.map +1 -0
  317. package/build/main//321/201omponents/Stories/Stories.d.ts +4 -0
  318. package/build/main//321/201omponents/Stories/Stories.js +281 -0
  319. package/build/main//321/201omponents/Stories/Stories.js.map +1 -0
  320. package/build/main//321/201omponents/Stories/index.d.ts +1 -0
  321. package/build/main//321/201omponents/Stories/index.js +2 -0
  322. package/build/main//321/201omponents/Stories/index.js.map +1 -0
  323. package/build/main//321/201omponents/Stories/types.d.ts +54 -0
  324. package/build/main//321/201omponents/Stories/types.js +11 -0
  325. package/build/main//321/201omponents/Stories/types.js.map +1 -0
  326. package/build/main//321/201omponents/Switcher/Switcher.d.ts +4 -0
  327. package/build/main//321/201omponents/Switcher/Switcher.js +34 -0
  328. package/build/main//321/201omponents/Switcher/Switcher.js.map +1 -0
  329. package/build/main//321/201omponents/Switcher/index.d.ts +1 -0
  330. package/build/main//321/201omponents/Switcher/index.js +2 -0
  331. package/build/main//321/201omponents/Switcher/index.js.map +1 -0
  332. package/build/main//321/201omponents/Switcher/types.d.ts +8 -0
  333. package/build/main//321/201omponents/Switcher/types.js +2 -0
  334. package/build/main//321/201omponents/Switcher/types.js.map +1 -0
  335. package/build/main//321/201omponents/SyncLoader/SyncLoader.d.ts +5 -0
  336. package/build/main//321/201omponents/SyncLoader/SyncLoader.js +65 -0
  337. package/build/main//321/201omponents/SyncLoader/SyncLoader.js.map +1 -0
  338. package/build/main//321/201omponents/SyncLoader/index.d.ts +1 -0
  339. package/build/main//321/201omponents/SyncLoader/index.js +2 -0
  340. package/build/main//321/201omponents/SyncLoader/index.js.map +1 -0
  341. package/build/main//321/201omponents/SyncLoader/types.d.ts +7 -0
  342. package/build/main//321/201omponents/SyncLoader/types.js +2 -0
  343. package/build/main//321/201omponents/SyncLoader/types.js.map +1 -0
  344. package/build/main//321/201omponents/Textarea/Textarea.d.ts +4 -0
  345. package/build/main//321/201omponents/Textarea/Textarea.js +96 -0
  346. package/build/main//321/201omponents/Textarea/Textarea.js.map +1 -0
  347. package/build/main//321/201omponents/Textarea/index.d.ts +1 -0
  348. package/build/main//321/201omponents/Textarea/index.js +2 -0
  349. package/build/main//321/201omponents/Textarea/index.js.map +1 -0
  350. package/build/main//321/201omponents/Textarea/types.d.ts +10 -0
  351. package/build/main//321/201omponents/Textarea/types.js +2 -0
  352. package/build/main//321/201omponents/Textarea/types.js.map +1 -0
  353. package/build/main//321/201omponents/Toggle/Toggle.d.ts +4 -0
  354. package/build/main//321/201omponents/Toggle/Toggle.js +38 -0
  355. package/build/main//321/201omponents/Toggle/Toggle.js.map +1 -0
  356. package/build/main//321/201omponents/Toggle/index.d.ts +1 -0
  357. package/build/main//321/201omponents/Toggle/index.js +2 -0
  358. package/build/main//321/201omponents/Toggle/index.js.map +1 -0
  359. package/build/main//321/201omponents/Toggle/types.d.ts +9 -0
  360. package/build/main//321/201omponents/Toggle/types.js +2 -0
  361. package/build/main//321/201omponents/Toggle/types.js.map +1 -0
  362. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts +4 -0
  363. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js +31 -0
  364. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js.map +1 -0
  365. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.d.ts +4 -0
  366. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js +70 -0
  367. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js.map +1 -0
  368. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.d.ts +4 -0
  369. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js +23 -0
  370. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js.map +1 -0
  371. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.d.ts +3 -0
  372. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +76 -0
  373. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js.map +1 -0
  374. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts +3 -0
  375. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +40 -0
  376. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +1 -0
  377. package/build/main//321/201omponents/UserDropdown/Option/Option.d.ts +4 -0
  378. package/build/main//321/201omponents/UserDropdown/Option/Option.js +55 -0
  379. package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +1 -0
  380. package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +4 -0
  381. package/build/main//321/201omponents/UserDropdown/UserDropdown.js +396 -0
  382. package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +1 -0
  383. package/build/main//321/201omponents/UserDropdown/helpers.d.ts +90 -0
  384. package/build/main//321/201omponents/UserDropdown/helpers.js +93 -0
  385. package/build/main//321/201omponents/UserDropdown/helpers.js.map +1 -0
  386. package/build/main//321/201omponents/UserDropdown/index.d.ts +1 -0
  387. package/build/main//321/201omponents/UserDropdown/index.js +2 -0
  388. package/build/main//321/201omponents/UserDropdown/index.js.map +1 -0
  389. package/build/main//321/201omponents/UserDropdown/selectStyles.d.ts +15 -0
  390. package/build/main//321/201omponents/UserDropdown/selectStyles.js +72 -0
  391. package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +1 -0
  392. package/build/main//321/201omponents/UserDropdown/types.d.ts +189 -0
  393. package/build/main//321/201omponents/UserDropdown/types.js +2 -0
  394. package/build/main//321/201omponents/UserDropdown/types.js.map +1 -0
  395. package/build/main//321/201omponents/index.d.ts +32 -0
  396. package/build/main//321/201omponents/index.js +33 -0
  397. package/build/main//321/201omponents/index.js.map +1 -0
  398. package/build/main//321/201omponents/types.d.ts +2 -0
  399. package/build/main//321/201omponents/types.js +2 -0
  400. package/build/main//321/201omponents/types.js.map +1 -0
  401. package/package.json +1 -1
@@ -0,0 +1,54 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useEffect, useLayoutEffect, useState } from 'react';
3
+ import classNames from 'classnames';
4
+ import { isBlobUrl, tryToLoadImageFromCache, tryToSaveImageToCache } from './helpers';
5
+ import '../../styles/styles.scss';
6
+ var IMAGE_LOADING_STATE;
7
+ (function (IMAGE_LOADING_STATE) {
8
+ IMAGE_LOADING_STATE[IMAGE_LOADING_STATE["pending"] = 0] = "pending";
9
+ IMAGE_LOADING_STATE[IMAGE_LOADING_STATE["success"] = 1] = "success";
10
+ IMAGE_LOADING_STATE[IMAGE_LOADING_STATE["error"] = -1] = "error";
11
+ })(IMAGE_LOADING_STATE || (IMAGE_LOADING_STATE = {}));
12
+ var CachedImage = function (_a) {
13
+ var src = _a.src, alt = _a.alt, className = _a.className, width = _a.width, height = _a.height, borderRadius = _a.borderRadius;
14
+ var _b = useState(''), url = _b[0], setUrl = _b[1];
15
+ var _c = useState(IMAGE_LOADING_STATE.pending), loadingState = _c[0], setLoadingState = _c[1];
16
+ useLayoutEffect(function () {
17
+ setUrl(src);
18
+ }, [src]);
19
+ // Очистка URL объекта после ошибки загрузки изображения
20
+ useEffect(function () {
21
+ if (loadingState === IMAGE_LOADING_STATE.error && isBlobUrl(url))
22
+ URL.revokeObjectURL(url);
23
+ return function () { return void 0; };
24
+ }, [loadingState, url]);
25
+ var isImageLoadingStatePending = function () { return loadingState === IMAGE_LOADING_STATE.pending; };
26
+ // Обработчик успешной загрузки изображения
27
+ var handleOnLoad = function () {
28
+ if (!isImageLoadingStatePending())
29
+ return;
30
+ setLoadingState(IMAGE_LOADING_STATE.success);
31
+ tryToSaveImageToCache(src);
32
+ };
33
+ // Обработчик ошибки загрузки изображения
34
+ var handleOnError = function () {
35
+ if (!isImageLoadingStatePending())
36
+ return;
37
+ setLoadingState(IMAGE_LOADING_STATE.error);
38
+ tryToLoadImageFromCache(src).then(function (blobUrl) { return blobUrl && setUrl(blobUrl); });
39
+ };
40
+ var generateImageStyles = function () {
41
+ var widthValue = width ? "".concat(width, "px") : '100%';
42
+ var heightValue = height ? "".concat(height, "px") : '100%';
43
+ return {
44
+ minWidth: widthValue,
45
+ minHeight: heightValue,
46
+ width: widthValue,
47
+ height: heightValue,
48
+ borderRadius: "".concat(borderRadius, "px"),
49
+ };
50
+ };
51
+ return (_jsx("img", { className: classNames('smartapp-cached-image', className), style: generateImageStyles(), src: url, alt: alt, onLoad: handleOnLoad, onError: handleOnError }));
52
+ };
53
+ export default CachedImage;
54
+ //# sourceMappingURL=CachedImage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CachedImage.js","sourceRoot":"","sources":["../../../../src/сomponents/CachedImage/CachedImage.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,SAAS,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACnE,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAA;AAErF,OAAO,0BAA0B,CAAA;AAEjC,IAAK,mBAIJ;AAJD,WAAK,mBAAmB;IACtB,mEAAa,CAAA;IACb,mEAAa,CAAA;IACb,gEAAY,CAAA;AACd,CAAC,EAJI,mBAAmB,KAAnB,mBAAmB,QAIvB;AAED,IAAM,WAAW,GAAG,UAAC,EAAuE;QAArE,GAAG,SAAA,EAAE,GAAG,SAAA,EAAE,SAAS,eAAA,EAAE,KAAK,WAAA,EAAE,MAAM,YAAA,EAAE,YAAY,kBAAA;IAC/D,IAAA,KAAgB,QAAQ,CAAC,EAAE,CAAC,EAA3B,GAAG,QAAA,EAAE,MAAM,QAAgB,CAAA;IAC5B,IAAA,KAAkC,QAAQ,CAAC,mBAAmB,CAAC,OAAO,CAAC,EAAtE,YAAY,QAAA,EAAE,eAAe,QAAyC,CAAA;IAE7E,eAAe,CAAC;QACd,MAAM,CAAC,GAAG,CAAC,CAAA;IACb,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAA;IAET,wDAAwD;I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AAO,CACL,cACE,SAAS,EAAE,UAAU,CAAC,uBAAuB,EAAE,SAAS,CAAC,EACzD,KAAK,EAAE,mBAAmB,EAAE,EAC5B,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,EACR,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,aAAa,GACtB,CACH,CAAA;AACH,CAAC,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare const tryToLoadImageFromCache: (url: string) => Promise<string | null>;
2
+ export declare const tryToSaveImageToCache: (url: string) => Promise<void>;
3
+ export declare const isBlobUrl: (url: string) => boolean;
@@ -0,0 +1,40 @@
1
+ var SMARTAPP_CACHE_STORAGE = 'smartapp-cache-storage';
2
+ var NETWORK_RESPONSE_ERROR = 'Network response was not ok';
3
+ var FAILED_TO_SAVE_IMAGE_TO_CACHE = 'Failed to save image to cache';
4
+ // Загрузка изображения из кэша
5
+ export var tryToLoadImageFromCache = function (url) {
6
+ return caches
7
+ .open(SMARTAPP_CACHE_STORAGE)
8
+ .then(function (cache) { return cache.match(url); })
9
+ .then(function (response) { return (response === null || response === void 0 ? void 0 : response.blob()) || null; })
10
+ .then(function (blob) { return (blob ? URL.createObjectURL(blob) : null); })
11
+ .catch(function () { return null; });
12
+ };
13
+ // Сохранение изображения в кэш
14
+ var saveImageToCache = function (url) {
15
+ return fetch(url, {
16
+ credentials: 'include',
17
+ })
18
+ .then(function (response) {
19
+ if (!response.ok)
20
+ throw new Error(NETWORK_RESPONSE_ERROR);
21
+ return caches.open(SMARTAPP_CACHE_STORAGE).then(function (cache) { return cache.put(url, response); });
22
+ })
23
+ .catch(function (error) { return console.error("".concat(FAILED_TO_SAVE_IMAGE_TO_CACHE, ":"), error); });
24
+ };
25
+ // Проверка наличия изображения в кэше и сохранение его при отсутствии
26
+ export var tryToSaveImageToCache = function (url) {
27
+ if (!url)
28
+ return Promise.resolve();
29
+ return caches
30
+ .open(SMARTAPP_CACHE_STORAGE)
31
+ .then(function (cache) { return cache.match(url); })
32
+ .then(function (response) {
33
+ if (!response)
34
+ return saveImageToCache(url);
35
+ return Promise.resolve();
36
+ });
37
+ };
38
+ // Функция для проверки, является ли URL объектом Blob
39
+ export var isBlobUrl = function (url) { return url.indexOf('blob:') === 0; };
40
+ //# sourceMappingURL=helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../src/сomponents/CachedImage/helpers.ts"],"names":[],"mappings":"AAAA,IAAM,sBAAsB,GAAG,wBAAwB,CAAA;AACvD,IAAM,sBAAsB,GAAG,6BAA6B,CAAA;AAC5D,IAAM,6BAA6B,GAAG,+BAA+B,CAAA;AAErE,+BAA+B;AAC/B,MAAM,CAAC,IAAM,uBAAuB,GAAG,UAAC,GAAW;IACjD,OAAA,MAAM;SACH,IAAI,CAAC,sBAAsB,CAAC;SAC5B,IAAI,CAAC,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,EAAhB,CAAgB,CAAC;SACjC,IAAI,CAAC,UAAC,QAAQ,IAAK,OAAA,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,EAAE,KAAI,IAAI,EAAxB,CAAwB,CAAC;SAC5C,IAAI,CAAC,UAAC,IAAI,IAAK,OAAA,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAzC,CAAyC,CAAC;SACzD,KAAK,CAAC,cAAM,OAAA,IAAI,EAAJ,CAAI,CAAC;AALpB,CAKoB,CAAA;AAEtB,+BAA+B;AAC/B,IAAM,gBAAgB,GAAG,UAAC,GAAW;IACnC,OAAA,KAAK,CAAC,GAAG,EAAE;QACT,WAAW,EAAE,SAAS;KACvB,CAAC;SACC,IAAI,CAAC,UAAC,QAAQ;QACb,IAAI,CAAC,QAAQ,CAAC,EAAE;YAAE,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAA;QACzD,OAAO,MAAM,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,IAAI,CAAC,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,QAAQ,CAAC,EAAxB,CAAwB,CAAC,CAAA;IACtF,CAAC,CAAC;SACD,KAAK,CAAC,UAAC,KAAK,IAAK,OAAA,OAAO,CAAC,KAAK,CAAC,UAAG,6BAA6B,MAAG,EAAE,KAAK,CAAC,EAAzD,CAAyD,CAAC;AAP9E,CAO8E,CAAA;AAEhF,sEAAsE;AACtE,MAAM,CAAC,IAAM,qBAAqB,GAAG,UAAC,GAAW;IAC/C,IAAI,CAAC,GAAG;QAAE,OAAO,OAAO,CAAC,OAAO,EAAE,CAAA;IAElC,OAAO,MAAM;SACV,IAAI,CAAC,sBAAsB,CAAC;SAC5B,IAAI,CAAC,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,EAAhB,CAAgB,CAAC;SACjC,IAAI,CAAC,UAAC,QAAQ;QACb,IAAI,CAAC,QAAQ;YAAE,OAAO,gBAAgB,CAAC,GAAG,CAAC,CAAA;QAC3C,OAAO,OAAO,CAAC,OAAO,EAAE,CAAA;IAC1B,CAAC,CAAC,CAAA;AACN,CAAC,CAAA;AAED,sDAAsD;AACtD,MAAM,CAAC,IAAM,SAAS,GAAG,UAAC,GAAW,IAAK,OAAA,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,EAA1B,CAA0B,CAAA"}
@@ -0,0 +1 @@
1
+ export { default } from './CachedImage';
@@ -0,0 +1,2 @@
1
+ export { default } from './CachedImage';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/CachedImage/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA"}
@@ -0,0 +1,8 @@
1
+ export interface ICachedImageProps {
2
+ src: string;
3
+ alt?: string;
4
+ className?: string;
5
+ height?: number;
6
+ width?: number;
7
+ borderRadius?: number;
8
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/CachedImage/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { ICalendarProps } from './types';
2
+ import '../../styles/styles.scss';
3
+ declare const CalendarDatepicker: ({ placeholder, initialCurrentDate, initialCurrentDateRange, minDate, onChangeCurrentDate, onChangeCurrentDateRange, calendarComponentClassName, calendarInputClassName, isRange, width, }: ICalendarProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default CalendarDatepicker;
@@ -0,0 +1,48 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { useState } from 'react';
14
+ import classNames from 'classnames';
15
+ import DatePicker, { registerLocale } from 'react-datepicker';
16
+ import ru from 'date-fns/locale/ru';
17
+ import en from 'date-fns/locale/en-US';
18
+ import '../../styles/styles.scss';
19
+ registerLocale('ru', ru);
20
+ registerLocale('en', en);
21
+ var CalendarDatepicker = function (_a) {
22
+ var _b = _a.placeholder, placeholder = _b === void 0 ? 'Введите дату' : _b, initialCurrentDate = _a.initialCurrentDate, initialCurrentDateRange = _a.initialCurrentDateRange, _c = _a.minDate, minDate = _c === void 0 ? null : _c, _d = _a.onChangeCurrentDate, onChangeCurrentDate = _d === void 0 ? function () { return undefined; } : _d, _e = _a.onChangeCurrentDateRange, onChangeCurrentDateRange = _e === void 0 ? function () { return undefined; } : _e, calendarComponentClassName = _a.calendarComponentClassName, calendarInputClassName = _a.calendarInputClassName, _f = _a.isRange, isRange = _f === void 0 ? false : _f, width = _a.width;
23
+ var _g = useState(initialCurrentDate ? initialCurrentDate : null), currentDate = _g[0], setCurrentDate = _g[1];
24
+ var _h = useState(initialCurrentDateRange ? initialCurrentDateRange : [null, null]), currentDateRange = _h[0], setCurrentDateRange = _h[1];
25
+ var startDate = currentDateRange[0], endDate = currentDateRange[1];
26
+ var onChangeDate = function (date) {
27
+ if (date) {
28
+ setCurrentDate(date);
29
+ onChangeCurrentDate(date);
30
+ }
31
+ };
32
+ var onChangeDateRange = function (period) {
33
+ setCurrentDateRange(period);
34
+ onChangeCurrentDateRange(period);
35
+ };
36
+ return (_jsx("div", __assign({ className: classNames({
37
+ 'smartapp-calendar-component': !calendarInputClassName,
38
+ calendarInputClassName: calendarInputClassName,
39
+ }), style: { width: "".concat(width, "%") } }, { children: isRange ? (_jsx(DatePicker, { selectsRange: true, startDate: startDate, endDate: endDate, dateFormat: "dd.MM.yyyy", placeholderText: placeholder, locale: ru, className: classNames({
40
+ 'smartapp-calendar-input': !calendarComponentClassName,
41
+ calendarComponentClassName: calendarComponentClassName,
42
+ }), onChange: function (period) { return onChangeDateRange(period); } })) : (_jsx(DatePicker, { selected: currentDate, dateFormat: "dd.MM.yyyy", locale: ru, placeholderText: placeholder, minDate: minDate, className: classNames({
43
+ 'smartapp-calendar-input': !calendarComponentClassName,
44
+ calendarComponentClassName: calendarComponentClassName,
45
+ }), onChange: function (date) { return onChangeDate(date); } })) })));
46
+ };
47
+ export default CalendarDatepicker;
48
+ //# sourceMappingURL=Calendar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Calendar.js","sourceRoot":"","sources":["../../../../src/сomponents/Calendar/Calendar.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC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+1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Calendar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA"}
@@ -0,0 +1,14 @@
1
+ import { IntRange } from '../types';
2
+ export type TDateRange = [Date | null, Date | null];
3
+ export interface ICalendarProps {
4
+ initialCurrentDate?: Date;
5
+ initialCurrentDateRange?: TDateRange;
6
+ placeholder?: string;
7
+ minDate?: Date | null;
8
+ calendarComponentClassName?: string;
9
+ calendarInputClassName?: string;
10
+ isRange?: boolean;
11
+ onChangeCurrentDate?: (date: Date | null) => void;
12
+ onChangeCurrentDateRange?: (period: TDateRange) => void;
13
+ width?: IntRange<1, 101>;
14
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Calendar/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import { IChartProps } from '../types';
2
+ import '../../../styles/styles.scss';
3
+ export declare const ChartBar: ({ title, xAxis, data }: IChartProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,39 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import ReactEcharts from 'echarts-for-react';
14
+ import { OPTION_GRID, OPTION_TITLE, OPTION_TOOLTIP, OPTION_X_AXIS, OPTION_Y_AXIS, OPTIONS } from '../constants';
15
+ import { generateBarItem, generateLegend } from '../helpers';
16
+ import '../../../styles/styles.scss';
17
+ var series = OPTIONS.series, shadow = OPTIONS.shadow, bar = OPTIONS.bar;
18
+ var option = function (_a) {
19
+ var data = _a.data, title = _a.title, xAxis = _a.xAxis;
20
+ return ({
21
+ title: __assign({ text: title }, OPTION_TITLE),
22
+ legend: generateLegend({ data: data, chartType: bar }),
23
+ tooltip: __assign(__assign({}, OPTION_TOOLTIP), { axisPointer: { type: shadow } }),
24
+ grid: OPTION_GRID,
25
+ xAxis: __assign({ data: xAxis }, OPTION_X_AXIS),
26
+ yAxis: OPTION_Y_AXIS,
27
+ series: generateBarItem(data),
28
+ emphasis: { focus: series },
29
+ barMaxWidth: 32,
30
+ barMinWidth: 15,
31
+ itemStyle: { borderRadius: [5, 5, 0, 0] },
32
+ barGap: '40%',
33
+ });
34
+ };
35
+ export var ChartBar = function (_a) {
36
+ var title = _a.title, xAxis = _a.xAxis, data = _a.data;
37
+ return _jsx(ReactEcharts, { option: option({ data: data, title: title, xAxis: xAxis }), style: { height: 420 } });
38
+ };
39
+ //# sourceMappingURL=ChartBar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChartBar.js","sourceRoot":"","sources":["../../../../../src/сomponents/Charts/ChartBar/ChartBar.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,YAAY,MAAM,mBAAmB,CAAA;AAC5C,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAC/G,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAE5D,OAAO,6BAA6B,CAAA;AAE5B,IAAA,MAAM,GAAkB,OAAO,OAAzB,EAAE,MAAM,GAAU,OAAO,OAAjB,EAAE,GAAG,GAAK,OAAO,IAAZ,CAAY;AAEvC,IAAM,MAAM,GAAG,UAAC,EAAmC;QAAjC,IAAI,UAAA,EAAE,KAAK,WAAA,EAAE,KAAK,WAAA;IAAoB,OAAA,CAAC;QACvD,KAAK,aAAI,IAAI,EAAE,KAAK,IAAK,YAAY,CAAE;QACvC,MAAM,EAAE,cAAc,CAAC,EAAE,IAAI,MAAA,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC;QAChD,OAAO,wBACF,cAAc,KACjB,WAAW,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,GAC9B;QACD,IAAI,EAAE,WAAW;QACjB,KAAK,aAAI,IAAI,EAAE,KAAK,IAAK,aAAa,CAAE;QACxC,KAAK,EAAE,aAAa;QACpB,MAAM,EAAE,eAAe,CAAC,IAAI,CAAC;QAC7B,QAAQ,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;QAC3B,WAAW,EAAE,EAAE;QACf,WAAW,EAAE,EAAE;QACf,SAAS,EAAE,EAAE,YAAY,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE;QACzC,MAAM,EAAE,KAAK;KACd,CAAC;AAhBsD,CAgBtD,CAAA;AAEF,MAAM,CAAC,IAAM,QAAQ,GAAG,UAAC,EAAmC;QAAjC,KAAK,WAAA,EAAE,KAAK,WAAA,EAAE,IAAI,UAAA;IAAoB,OAAA,KAAC,YAAY,IAAC,MAAM,EAAE,MAAM,CAAC,EAAE,IAAI,MAAA,EAAE,KAAK,OAAA,EAAE,KAAK,OAAA,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,GAAI;AAAhF,CAAgF,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { IChartProps } from '../types';
2
+ import '../../../styles/styles.scss';
3
+ export declare const ChartLine: ({ title, xAxis, data }: IChartProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,30 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import ReactEcharts from 'echarts-for-react';
14
+ import { OPTION_GRID, OPTION_TITLE, OPTION_TOOLTIP, OPTION_X_AXIS, OPTION_Y_AXIS, OPTIONS } from '../constants';
15
+ import { generateLegend, generateLineItem } from '../helpers';
16
+ import '../../../styles/styles.scss';
17
+ export var ChartLine = function (_a) {
18
+ var title = _a.title, xAxis = _a.xAxis, data = _a.data;
19
+ var option = {
20
+ title: __assign({ text: title }, OPTION_TITLE),
21
+ legend: generateLegend({ data: data, chartType: OPTIONS.line }),
22
+ tooltip: OPTION_TOOLTIP,
23
+ grid: OPTION_GRID,
24
+ xAxis: __assign({ boundaryGap: false, data: xAxis }, OPTION_X_AXIS),
25
+ yAxis: OPTION_Y_AXIS,
26
+ series: generateLineItem(data),
27
+ };
28
+ return _jsx(ReactEcharts, { option: option, style: { height: 420 } });
29
+ };
30
+ //# sourceMappingURL=ChartLine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChartLine.js","sourceRoot":"","sources":["../../../../../src/сomponents/Charts/ChartLine/ChartLine.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,YAAY,MAAM,mBAAmB,CAAA;AAC5C,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAC/G,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAE7D,OAAO,6BAA6B,CAAA;AAEpC,MAAM,CAAC,IAAM,SAAS,GAAG,UAAC,EAAmC;QAAjC,KAAK,WAAA,EAAE,KAAK,WAAA,EAAE,IAAI,UAAA;IAC5C,IAAM,MAAM,GAAG;QACb,KAAK,aAAI,IAAI,EAAE,KAAK,IAAK,YAAY,CAAE;QACvC,MAAM,EAAE,cAAc,CAAC,EAAE,IAAI,MAAA,EAAE,SAAS,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC;QACzD,OAAO,EAAE,cAAc;QACvB,IAAI,EAAE,WAAW;QACjB,KAAK,aAAI,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,IAAK,aAAa,CAAE;QAC5D,KAAK,EAAE,aAAa;QACpB,MAAM,EAAE,gBAAgB,CAAC,IAAI,CAAC;KAC/B,CAAA;IAED,OAAO,KAAC,YAAY,IAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,GAAI,CAAA;AACjE,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { IChartPieProps } from '../types';
2
+ import '../../../styles/styles.scss';
3
+ export declare const ChartPie: ({ data, title, subtitle }: IChartPieProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,64 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { useRef } from 'react';
14
+ import ReactEcharts from 'echarts-for-react';
15
+ import { OPTIONS } from '../constants';
16
+ import { COLORS } from '../../../constants';
17
+ import { TEXT_COLOR } from '../colors';
18
+ import { calculatePieValue, generateLegend } from '../helpers';
19
+ import '../../../styles/styles.scss';
20
+ var center = OPTIONS.center, pie = OPTIONS.pie;
21
+ var white = COLORS.white, black = COLORS.black;
22
+ var option = function (data, title) { return ({
23
+ legend: generateLegend({ data: data, chartType: pie }),
24
+ tooltip: {},
25
+ series: [
26
+ {
27
+ type: pie,
28
+ data: data,
29
+ radius: ['60%', '100%'],
30
+ itemStyle: { borderRadius: 8, borderColor: white, borderWidth: 6 },
31
+ label: { show: false },
32
+ labelLine: { show: false },
33
+ width: 320,
34
+ height: 320,
35
+ left: center,
36
+ },
37
+ ],
38
+ title: {
39
+ text: title,
40
+ left: center,
41
+ top: '28%',
42
+ textStyle: { color: TEXT_COLOR, fontSize: 14, fontWeight: 400 },
43
+ subtext: calculatePieValue(data),
44
+ subtextStyle: { color: black, fontSize: 32, fontWeight: 700 },
45
+ itemGap: 10,
46
+ },
47
+ }); };
48
+ export var ChartPie = function (_a) {
49
+ var data = _a.data, title = _a.title, subtitle = _a.subtitle;
50
+ var chartRef = useRef(null);
51
+ var handleLegendSelectChanged = function (_a) {
52
+ var _b;
53
+ var selected = _a.selected;
54
+ var filteredData = data.filter(function (_a) {
55
+ var name = _a.name;
56
+ return selected[name];
57
+ });
58
+ var subtext = calculatePieValue(filteredData);
59
+ (_b = chartRef.current) === null || _b === void 0 ? void 0 : _b.getEchartsInstance().setOption({ title: { subtext: subtext } });
60
+ };
61
+ var onEvents = { legendselectchanged: handleLegendSelectChanged };
62
+ return (_jsxs(_Fragment, { children: [_jsx("p", __assign({ className: "smartapp-chart__title" }, { children: title })), _jsx(ReactEcharts, { ref: chartRef, option: option(data, subtitle), style: { height: 490 }, onEvents: onEvents })] }));
63
+ };
64
+ //# sourceMappingURL=ChartPie.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChartPie.js","sourceRoot":"","sources":["../../../../../src/сomponents/Charts/ChartPie/ChartPie.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AACrC,OAAO,YAAY,MAAM,mBAAmB,CAAA;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAE9D,OAAO,6BAA6B,CAAA;AAE5B,IAAA,MAAM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I,CAAC,CAAA;IAElD,IAAM,yBAAyB,GAAG,UAAC,EAA6B;;YAA3B,QAAQ,cAAA;QAC3C,IAAM,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,UAAC,EAAQ;gBAAN,IAAI,UAAA;YAAO,OAAA,QAAQ,CAAC,IAAI,CAAC;QAAd,CAAc,CAAC,CAAA;QAC9D,IAAM,OAAO,GAAG,iBAAiB,CAAC,YAAY,CAAC,CAAA;QAE/C,MAAA,QAAQ,CAAC,OAAO,0CAAE,kBAAkB,GAAG,SAAS,CAAC,EAAE,KAAK,EAAE,EAAE,OAAO,SAAA,EAAE,EAAE,CAAC,CAAA;IAC1E,CAAC,CAAA;IAED,IAAM,QAAQ,GAAG,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,CAAA;IAEnE,OAAO,CACL,8BACE,qBAAG,SAAS,EAAC,uBAAuB,gBAAE,KAAK,IAAK,EAChD,KAAC,YAAY,IAAC,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,QAAQ,EAAE,QAAQ,GAAI,IAC1G,CACJ,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const TEXT_COLOR = "#11111180";
2
+ export declare const LINE_COLOR = "#D3D3D3";
@@ -0,0 +1,3 @@
1
+ export var TEXT_COLOR = '#11111180';
2
+ export var LINE_COLOR = '#D3D3D3';
3
+ //# sourceMappingURL=colors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colors.js","sourceRoot":"","sources":["../../../../src/сomponents/Charts/colors.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,UAAU,GAAG,WAAW,CAAA;AACrC,MAAM,CAAC,IAAM,UAAU,GAAG,SAAS,CAAA"}
@@ -0,0 +1,50 @@
1
+ import { COLORS } from '../../constants';
2
+ export declare enum OPTIONS {
3
+ center = "center",
4
+ axis = "axis",
5
+ shadow = "shadow",
6
+ circle = "circle",
7
+ category = "category",
8
+ transparent = "transparent",
9
+ value = "value",
10
+ series = "series",
11
+ pie = "pie",
12
+ bar = "bar",
13
+ line = "line"
14
+ }
15
+ export declare const OPTION_TITLE: {
16
+ left: OPTIONS;
17
+ textStyle: {
18
+ color: COLORS;
19
+ };
20
+ };
21
+ export declare const OPTION_TOOLTIP: {
22
+ trigger: OPTIONS;
23
+ };
24
+ export declare const OPTION_GRID: {
25
+ left: string;
26
+ right: string;
27
+ bottom: string;
28
+ containLabel: boolean;
29
+ };
30
+ export declare const OPTION_X_AXIS: {
31
+ type: OPTIONS;
32
+ axisLine: {
33
+ lineStyle: {
34
+ color: string;
35
+ };
36
+ };
37
+ axisLabel: {
38
+ color: COLORS;
39
+ };
40
+ axisPointer: {
41
+ label: {
42
+ show: boolean;
43
+ backgroundColor: OPTIONS;
44
+ color: COLORS;
45
+ };
46
+ };
47
+ };
48
+ export declare const OPTION_Y_AXIS: {
49
+ type: OPTIONS;
50
+ };
@@ -0,0 +1,36 @@
1
+ import { COLORS } from '../../constants';
2
+ import { LINE_COLOR } from './colors';
3
+ var darkerGray = COLORS.darkerGray, black = COLORS.black;
4
+ export var OPTIONS;
5
+ (function (OPTIONS) {
6
+ OPTIONS["center"] = "center";
7
+ OPTIONS["axis"] = "axis";
8
+ OPTIONS["shadow"] = "shadow";
9
+ OPTIONS["circle"] = "circle";
10
+ OPTIONS["category"] = "category";
11
+ OPTIONS["transparent"] = "transparent";
12
+ OPTIONS["value"] = "value";
13
+ OPTIONS["series"] = "series";
14
+ OPTIONS["pie"] = "pie";
15
+ OPTIONS["bar"] = "bar";
16
+ OPTIONS["line"] = "line";
17
+ })(OPTIONS || (OPTIONS = {}));
18
+ var center = OPTIONS.center, axis = OPTIONS.axis, category = OPTIONS.category, transparent = OPTIONS.transparent, value = OPTIONS.value;
19
+ export var OPTION_TITLE = {
20
+ left: center,
21
+ textStyle: { color: black },
22
+ };
23
+ export var OPTION_TOOLTIP = { trigger: axis };
24
+ export var OPTION_GRID = { left: '3%', right: '4%', bottom: '30%', containLabel: true };
25
+ export var OPTION_X_AXIS = {
26
+ type: category,
27
+ axisLine: {
28
+ lineStyle: { color: LINE_COLOR },
29
+ },
30
+ axisLabel: { color: darkerGray },
31
+ axisPointer: {
32
+ label: { show: true, backgroundColor: transparent, color: black },
33
+ },
34
+ };
35
+ export var OPTION_Y_AXIS = { type: value };
36
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/сomponents/Charts/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAE7B,IAAA,UAAU,GAAY,MAAM,WAAlB,EAAE,KAAK,GAAK,MAAM,MAAX,CAAW;AACpC,MAAM,CAAN,IAAY,OAYX;AAZD,WAAY,OAAO;IACjB,4BAAiB,CAAA;IACjB,wBAAa,CAAA;IACb,4BAAiB,CAAA;IACjB,4BAAiB,CAAA;IACjB,gCAAqB,CAAA;IACrB,sCAA2B,CAAA;IAC3B,0BAAe,CAAA;IACf,4BAAiB,CAAA;IACjB,sBAAW,CAAA;IACX,sBAAW,CAAA;IACX,wBAAa,CAAA;AACf,CAAC,EAZW,OAAO,KAAP,OAAO,QAYlB;AAEO,IAAA,MAAM,GAAyC,OAAO,OAAhD,EAAE,IAAI,GAAmC,OAAO,KAA1C,EAAE,QAAQ,GAAyB,OAAO,SAAhC,EAAE,WAAW,GAAY,OAAO,YAAnB,EAAE,KAAK,GAAK,OAAO,MAAZ,CAAY;AAE9D,MAAM,CAAC,IAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE;CAC5B,CAAA;AAED,MAAM,CAAC,IAAM,cAAc,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,CAAA;AAE/C,MAAM,CAAC,IAAM,WAAW,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,CAAA;AAEzF,MAAM,CAAC,IAAM,aAAa,GAAG;IAC3B,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE;QACR,SAAS,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE;KACjC;IACD,SAAS,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE;IAChC,WAAW,EAAE;QACX,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE;KAClE;CACF,CAAA;AAED,MAAM,CAAC,IAAM,aAAa,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,CAAA"}
@@ -0,0 +1,68 @@
1
+ import { OPTIONS } from './constants';
2
+ import { TChartData, TChartPieData, TGenerateLegendProps } from './types';
3
+ export declare const calculateValue: (data: number[]) => number;
4
+ export declare const calculatePieValue: (data: TChartPieData[]) => number;
5
+ export declare const generateLegendItemValue: (itemName: string, data: TChartData[]) => string;
6
+ export declare const generatePieLegendItemValue: (itemName: string, data: TChartPieData[]) => string;
7
+ export declare const generateLineItem: (data: TChartData[]) => {
8
+ name: string;
9
+ data: number[];
10
+ type: OPTIONS;
11
+ itemStyle: {
12
+ color: string;
13
+ };
14
+ lineStyle: {
15
+ width: number;
16
+ };
17
+ smooth: boolean;
18
+ showSymbol: boolean;
19
+ emphasis: {
20
+ focus: OPTIONS;
21
+ };
22
+ }[];
23
+ export declare const generateBarItem: (data: TChartData[]) => {
24
+ name: string;
25
+ data: number[];
26
+ type: OPTIONS;
27
+ itemStyle: {
28
+ color: string;
29
+ };
30
+ }[];
31
+ export declare const generateLegend: ({ data, chartType }: TGenerateLegendProps) => {
32
+ itemGap: number;
33
+ bottom: number;
34
+ icon: OPTIONS.circle;
35
+ textStyle: {
36
+ rich: {
37
+ Name: {
38
+ fontSize: number;
39
+ align: OPTIONS.center;
40
+ };
41
+ value: {
42
+ fontSize: number;
43
+ align: OPTIONS.center;
44
+ };
45
+ };
46
+ };
47
+ data?: string[] | undefined;
48
+ formatter?: ((name: string) => string) | undefined;
49
+ } | {
50
+ bottom: number;
51
+ itemGap: number;
52
+ formatter: (name: string) => string;
53
+ textStyle: {
54
+ rich: {
55
+ Name: {
56
+ width: number;
57
+ fontSize: number;
58
+ align: OPTIONS.center;
59
+ };
60
+ value: {
61
+ fontSize: number;
62
+ align: OPTIONS.center;
63
+ };
64
+ };
65
+ };
66
+ icon: OPTIONS.circle;
67
+ data?: string[] | undefined;
68
+ } | undefined;