@alfalab/core-components 20.4.0 → 20.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (636) hide show
  1. package/amount-input/Component.js +3 -3
  2. package/amount-input/default.css +2 -2
  3. package/amount-input/esm/Component.js +3 -3
  4. package/amount-input/esm/default.css +2 -2
  5. package/amount-input/esm/index.css +7 -7
  6. package/amount-input/esm/inverted.css +2 -2
  7. package/amount-input/index.css +7 -7
  8. package/amount-input/inverted.css +2 -2
  9. package/amount-input/modern/Component.js +3 -3
  10. package/amount-input/modern/default.css +2 -2
  11. package/amount-input/modern/index.css +7 -7
  12. package/amount-input/modern/inverted.css +2 -2
  13. package/bank-card/Component.js +1 -1
  14. package/bank-card/esm/Component.js +1 -1
  15. package/bank-card/esm/index.css +20 -20
  16. package/bank-card/index.css +20 -20
  17. package/bank-card/modern/Component.js +1 -1
  18. package/bank-card/modern/index.css +20 -20
  19. package/calendar/Component.js +1 -1
  20. package/calendar/components/days-table/Component.js +1 -1
  21. package/calendar/components/days-table/index.js +1 -1
  22. package/calendar/components/header/Component.js +1 -1
  23. package/calendar/components/header/index.js +1 -1
  24. package/calendar/components/months-table/Component.js +1 -1
  25. package/calendar/components/months-table/index.js +1 -1
  26. package/calendar/components/select-button/Component.js +1 -1
  27. package/calendar/components/select-button/index.js +1 -1
  28. package/calendar/components/years-table/Component.js +1 -1
  29. package/calendar/components/years-table/index.js +1 -1
  30. package/calendar/esm/Component.js +1 -1
  31. package/calendar/esm/components/days-table/Component.js +1 -1
  32. package/calendar/esm/components/days-table/index.js +1 -1
  33. package/calendar/esm/components/header/Component.js +1 -1
  34. package/calendar/esm/components/header/index.js +1 -1
  35. package/calendar/esm/components/months-table/Component.js +1 -1
  36. package/calendar/esm/components/months-table/index.js +1 -1
  37. package/calendar/esm/components/select-button/Component.js +1 -1
  38. package/calendar/esm/components/select-button/index.js +1 -1
  39. package/calendar/esm/components/years-table/Component.js +1 -1
  40. package/calendar/esm/components/years-table/index.js +1 -1
  41. package/calendar/esm/index.js +1 -1
  42. package/calendar/esm/{tslib.es6-decc30d3.d.ts → tslib.es6-78b906d0.d.ts} +0 -0
  43. package/calendar/esm/{tslib.es6-decc30d3.js → tslib.es6-78b906d0.js} +0 -0
  44. package/calendar/index.js +1 -1
  45. package/calendar/{tslib.es6-af3fab91.d.ts → tslib.es6-643f6e6d.d.ts} +0 -0
  46. package/calendar/{tslib.es6-af3fab91.js → tslib.es6-643f6e6d.js} +0 -0
  47. package/calendar-input/Component.d.ts +1 -1
  48. package/calendar-input/Component.js +1 -1
  49. package/calendar-input/esm/Component.js +1 -1
  50. package/calendar-input/esm/index.css +9 -9
  51. package/calendar-input/index.css +9 -9
  52. package/calendar-input/modern/Component.js +1 -1
  53. package/calendar-input/modern/index.css +9 -9
  54. package/calendar-range/Component.js +1 -1
  55. package/calendar-range/esm/Component.js +1 -1
  56. package/calendar-range/esm/index.css +5 -5
  57. package/calendar-range/index.css +5 -5
  58. package/calendar-range/modern/Component.js +1 -1
  59. package/calendar-range/modern/index.css +5 -5
  60. package/chart/Component.js +20 -10
  61. package/chart/components/CustomizedLabel.d.ts +4 -0
  62. package/chart/components/CustomizedLabel.js +18 -0
  63. package/chart/components/Dot/index.css +8 -8
  64. package/chart/components/Dot/index.js +1 -1
  65. package/chart/components/Legends/index.css +8 -8
  66. package/chart/components/Legends/index.js +1 -1
  67. package/chart/components/RectBar.d.ts +4 -0
  68. package/chart/components/RectBar.js +30 -0
  69. package/chart/components/Tick/index.css +4 -4
  70. package/chart/components/Tick/index.js +1 -1
  71. package/chart/components/TooltipContent/index.css +7 -7
  72. package/chart/components/TooltipContent/index.js +1 -1
  73. package/chart/cssm/Component.js +18 -8
  74. package/chart/cssm/components/CustomizedLabel.d.ts +4 -0
  75. package/chart/cssm/components/CustomizedLabel.js +18 -0
  76. package/chart/cssm/components/RectBar.d.ts +4 -0
  77. package/chart/cssm/components/RectBar.js +30 -0
  78. package/chart/cssm/hooks/usePathBar/index.d.ts +14 -0
  79. package/chart/cssm/hooks/usePathBar/index.js +39 -0
  80. package/chart/cssm/hooks/usePathBar/utils/getRadius.d.ts +2 -0
  81. package/chart/cssm/hooks/usePathBar/utils/getRadius.js +8 -0
  82. package/chart/cssm/hooks/useSettings/index.js +2 -2
  83. package/chart/cssm/icons/Circle.js +1 -1
  84. package/chart/cssm/icons/CircleLine.js +1 -1
  85. package/chart/cssm/icons/StrokeCircle.js +1 -1
  86. package/chart/cssm/index.js +4 -0
  87. package/chart/cssm/types/labelList.types.d.ts +5 -0
  88. package/chart/cssm/types/labelList.types.js +1 -0
  89. package/chart/cssm/types/seria.types.d.ts +14 -1
  90. package/chart/esm/Component.js +21 -11
  91. package/chart/esm/components/CustomizedLabel.d.ts +4 -0
  92. package/chart/esm/components/CustomizedLabel.js +12 -0
  93. package/chart/esm/components/Dot/index.css +8 -8
  94. package/chart/esm/components/Dot/index.js +1 -1
  95. package/chart/esm/components/Legends/index.css +8 -8
  96. package/chart/esm/components/Legends/index.js +1 -1
  97. package/chart/esm/components/RectBar.d.ts +4 -0
  98. package/chart/esm/components/RectBar.js +26 -0
  99. package/chart/esm/components/Tick/index.css +4 -4
  100. package/chart/esm/components/Tick/index.js +1 -1
  101. package/chart/esm/components/TooltipContent/index.css +7 -7
  102. package/chart/esm/components/TooltipContent/index.js +1 -1
  103. package/chart/esm/hooks/usePathBar/index.d.ts +14 -0
  104. package/chart/esm/hooks/usePathBar/index.js +37 -0
  105. package/chart/esm/hooks/usePathBar/utils/getRadius.d.ts +2 -0
  106. package/chart/esm/hooks/usePathBar/utils/getRadius.js +6 -0
  107. package/chart/esm/hooks/useSettings/index.js +2 -2
  108. package/chart/esm/hooks/useSettings/utils/setDatas.js +1 -1
  109. package/chart/esm/hooks/useSettings/utils/setGradientCharts.js +1 -1
  110. package/chart/esm/icons/Circle.js +1 -1
  111. package/chart/esm/icons/CircleLine.js +1 -1
  112. package/chart/esm/icons/StrokeCircle.js +1 -1
  113. package/chart/esm/index.css +3 -3
  114. package/chart/esm/index.js +5 -1
  115. package/chart/esm/{tslib.es6-defbba9d.d.ts → tslib.es6-a3fbf5e6.d.ts} +0 -0
  116. package/chart/esm/{tslib.es6-defbba9d.js → tslib.es6-a3fbf5e6.js} +0 -0
  117. package/chart/esm/types/labelList.types.d.ts +5 -0
  118. package/chart/esm/types/labelList.types.js +1 -0
  119. package/chart/esm/types/seria.types.d.ts +14 -1
  120. package/chart/hooks/usePathBar/index.d.ts +14 -0
  121. package/chart/hooks/usePathBar/index.js +39 -0
  122. package/chart/hooks/usePathBar/utils/getRadius.d.ts +2 -0
  123. package/chart/hooks/usePathBar/utils/getRadius.js +8 -0
  124. package/chart/hooks/useSettings/index.js +2 -2
  125. package/chart/hooks/useSettings/utils/setDatas.js +1 -1
  126. package/chart/hooks/useSettings/utils/setGradientCharts.js +1 -1
  127. package/chart/icons/Circle.js +1 -1
  128. package/chart/icons/CircleLine.js +1 -1
  129. package/chart/icons/StrokeCircle.js +1 -1
  130. package/chart/index.css +3 -3
  131. package/chart/index.js +5 -1
  132. package/chart/modern/Component.js +20 -10
  133. package/chart/modern/components/CustomizedLabel.d.ts +4 -0
  134. package/chart/modern/components/CustomizedLabel.js +11 -0
  135. package/chart/modern/components/Dot/index.css +8 -8
  136. package/chart/modern/components/Dot/index.js +1 -1
  137. package/chart/modern/components/Legends/index.css +8 -8
  138. package/chart/modern/components/Legends/index.js +1 -1
  139. package/chart/modern/components/RectBar.d.ts +4 -0
  140. package/chart/modern/components/RectBar.js +33 -0
  141. package/chart/modern/components/Tick/index.css +4 -4
  142. package/chart/modern/components/Tick/index.js +1 -1
  143. package/chart/modern/components/TooltipContent/index.css +7 -7
  144. package/chart/modern/components/TooltipContent/index.js +1 -1
  145. package/chart/modern/hooks/usePathBar/index.d.ts +14 -0
  146. package/chart/modern/hooks/usePathBar/index.js +37 -0
  147. package/chart/modern/hooks/usePathBar/utils/getRadius.d.ts +2 -0
  148. package/chart/modern/hooks/usePathBar/utils/getRadius.js +6 -0
  149. package/chart/modern/hooks/useSettings/index.js +1 -1
  150. package/chart/modern/icons/Circle.js +1 -1
  151. package/chart/modern/icons/CircleLine.js +1 -1
  152. package/chart/modern/icons/StrokeCircle.js +1 -1
  153. package/chart/modern/index.css +3 -3
  154. package/chart/modern/index.js +4 -0
  155. package/chart/modern/types/labelList.types.d.ts +5 -0
  156. package/chart/modern/types/labelList.types.js +1 -0
  157. package/chart/modern/types/seria.types.d.ts +14 -1
  158. package/chart/{tslib.es6-62c2b032.d.ts → tslib.es6-8e7742ab.d.ts} +0 -0
  159. package/chart/{tslib.es6-62c2b032.js → tslib.es6-8e7742ab.js} +0 -0
  160. package/chart/types/labelList.types.d.ts +5 -0
  161. package/chart/types/labelList.types.js +1 -0
  162. package/chart/types/seria.types.d.ts +14 -1
  163. package/checkbox-group/Component.js +2 -2
  164. package/checkbox-group/cssm/Component.js +1 -1
  165. package/checkbox-group/esm/Component.js +2 -2
  166. package/checkbox-group/esm/index.css +17 -17
  167. package/checkbox-group/index.css +17 -17
  168. package/checkbox-group/modern/Component.js +2 -2
  169. package/checkbox-group/modern/index.css +17 -17
  170. package/confirmation/component.js +2 -2
  171. package/confirmation/components/code-input/component.js +1 -1
  172. package/confirmation/components/code-input/index.css +9 -9
  173. package/confirmation/components/countdown/component.js +1 -1
  174. package/confirmation/components/countdown/index.css +13 -13
  175. package/confirmation/components/countdown-loader/component.js +1 -1
  176. package/confirmation/components/countdown-loader/index.css +2 -2
  177. package/confirmation/components/overlimit/component.js +1 -1
  178. package/confirmation/components/overlimit/index.css +9 -9
  179. package/confirmation/components/sign-confirmation/component.js +2 -2
  180. package/confirmation/components/sign-confirmation/index.css +13 -13
  181. package/confirmation/cssm/component.js +1 -1
  182. package/confirmation/cssm/components/sign-confirmation/component.js +1 -1
  183. package/confirmation/esm/component.js +2 -2
  184. package/confirmation/esm/components/code-input/component.js +1 -1
  185. package/confirmation/esm/components/code-input/index.css +9 -9
  186. package/confirmation/esm/components/countdown/component.js +1 -1
  187. package/confirmation/esm/components/countdown/index.css +13 -13
  188. package/confirmation/esm/components/countdown-loader/component.js +1 -1
  189. package/confirmation/esm/components/countdown-loader/index.css +2 -2
  190. package/confirmation/esm/components/overlimit/component.js +1 -1
  191. package/confirmation/esm/components/overlimit/index.css +9 -9
  192. package/confirmation/esm/components/sign-confirmation/component.js +2 -2
  193. package/confirmation/esm/components/sign-confirmation/index.css +13 -13
  194. package/confirmation/esm/index.css +14 -14
  195. package/confirmation/index.css +14 -14
  196. package/confirmation/modern/component.js +2 -2
  197. package/confirmation/modern/components/code-input/component.js +1 -1
  198. package/confirmation/modern/components/code-input/index.css +9 -9
  199. package/confirmation/modern/components/countdown/component.js +1 -1
  200. package/confirmation/modern/components/countdown/index.css +13 -13
  201. package/confirmation/modern/components/countdown-loader/component.js +1 -1
  202. package/confirmation/modern/components/countdown-loader/index.css +2 -2
  203. package/confirmation/modern/components/overlimit/component.js +1 -1
  204. package/confirmation/modern/components/overlimit/index.css +9 -9
  205. package/confirmation/modern/components/sign-confirmation/component.js +2 -2
  206. package/confirmation/modern/components/sign-confirmation/index.css +13 -13
  207. package/confirmation/modern/index.css +14 -14
  208. package/date-input/Component.js +1 -1
  209. package/date-input/esm/Component.js +1 -1
  210. package/date-input/esm/index.css +4 -4
  211. package/date-input/index.css +4 -4
  212. package/date-input/modern/Component.js +1 -1
  213. package/date-input/modern/index.css +4 -4
  214. package/file-upload-item/Component.d.ts +12 -1
  215. package/file-upload-item/Component.js +5 -6
  216. package/file-upload-item/cssm/Component.d.ts +12 -1
  217. package/file-upload-item/cssm/Component.js +4 -5
  218. package/file-upload-item/esm/Component.d.ts +12 -1
  219. package/file-upload-item/esm/Component.js +5 -6
  220. package/file-upload-item/esm/index.css +16 -16
  221. package/file-upload-item/index.css +16 -16
  222. package/file-upload-item/modern/Component.d.ts +12 -1
  223. package/file-upload-item/modern/Component.js +5 -6
  224. package/file-upload-item/modern/index.css +16 -16
  225. package/form-control/Component.js +4 -4
  226. package/form-control/cssm/Component.js +1 -1
  227. package/form-control/default.css +15 -15
  228. package/form-control/esm/Component.js +4 -4
  229. package/form-control/esm/default.css +15 -15
  230. package/form-control/esm/index.css +42 -42
  231. package/form-control/esm/inverted.css +15 -15
  232. package/form-control/index.css +42 -42
  233. package/form-control/inverted.css +15 -15
  234. package/form-control/modern/Component.js +4 -4
  235. package/form-control/modern/default.css +15 -15
  236. package/form-control/modern/index.css +42 -42
  237. package/form-control/modern/inverted.css +15 -15
  238. package/gallery/Component.js +2 -2
  239. package/gallery/components/header/Component.js +1 -1
  240. package/gallery/components/header/buttons.js +1 -1
  241. package/gallery/components/header/index.js +1 -1
  242. package/gallery/components/image-viewer/component.js +2 -2
  243. package/gallery/components/image-viewer/index.js +2 -2
  244. package/gallery/components/image-viewer/slide.js +1 -1
  245. package/gallery/components/index.js +2 -2
  246. package/gallery/esm/Component.js +2 -2
  247. package/gallery/esm/components/header/Component.js +1 -1
  248. package/gallery/esm/components/header/buttons.js +1 -1
  249. package/gallery/esm/components/header/index.js +1 -1
  250. package/gallery/esm/components/image-viewer/component.js +2 -2
  251. package/gallery/esm/components/image-viewer/index.js +2 -2
  252. package/gallery/esm/components/image-viewer/slide.js +1 -1
  253. package/gallery/esm/components/index.js +2 -2
  254. package/gallery/esm/index.js +2 -2
  255. package/gallery/esm/{slide-2c5303bf.d.ts → slide-87570b70.d.ts} +0 -0
  256. package/gallery/esm/{slide-2c5303bf.js → slide-87570b70.js} +0 -0
  257. package/gallery/esm/{tslib.es6-e5bfa024.d.ts → tslib.es6-76ecfd4c.d.ts} +0 -0
  258. package/gallery/esm/{tslib.es6-e5bfa024.js → tslib.es6-76ecfd4c.js} +0 -0
  259. package/gallery/index.js +2 -2
  260. package/gallery/modern/Component.js +1 -1
  261. package/gallery/modern/components/image-viewer/component.js +1 -1
  262. package/gallery/modern/components/image-viewer/index.js +1 -1
  263. package/gallery/modern/components/image-viewer/slide.js +1 -1
  264. package/gallery/modern/components/index.js +1 -1
  265. package/gallery/modern/index.js +1 -1
  266. package/gallery/modern/{slide-31efe610.d.ts → slide-d973cd14.d.ts} +0 -0
  267. package/gallery/modern/{slide-31efe610.js → slide-d973cd14.js} +0 -0
  268. package/gallery/{slide-5f9593b7.d.ts → slide-4c7a53b7.d.ts} +0 -0
  269. package/gallery/{slide-5f9593b7.js → slide-4c7a53b7.js} +0 -0
  270. package/gallery/{tslib.es6-d5e3524f.d.ts → tslib.es6-d8fd377b.d.ts} +0 -0
  271. package/gallery/{tslib.es6-d5e3524f.js → tslib.es6-d8fd377b.js} +0 -0
  272. package/input/Component.js +3 -3
  273. package/input/default.css +13 -13
  274. package/input/esm/Component.js +3 -3
  275. package/input/esm/default.css +13 -13
  276. package/input/esm/index.css +31 -31
  277. package/input/esm/inverted.css +13 -13
  278. package/input/index.css +31 -31
  279. package/input/inverted.css +13 -13
  280. package/input/modern/Component.js +3 -3
  281. package/input/modern/default.css +13 -13
  282. package/input/modern/index.css +31 -31
  283. package/input/modern/inverted.css +13 -13
  284. package/input-autocomplete/{Component-658ecc84.d.ts → Component-0e73e267.d.ts} +0 -0
  285. package/input-autocomplete/{Component-658ecc84.js → Component-0e73e267.js} +1 -1
  286. package/input-autocomplete/Component.js +1 -1
  287. package/input-autocomplete/autocomplete-field/Component.js +1 -1
  288. package/input-autocomplete/autocomplete-field/index.css +2 -2
  289. package/input-autocomplete/autocomplete-field/index.d.ts +1 -1
  290. package/input-autocomplete/autocomplete-field/index.js +1 -1
  291. package/input-autocomplete/esm/{Component-35cb3144.d.ts → Component-dd7c3b6d.d.ts} +0 -0
  292. package/input-autocomplete/esm/{Component-35cb3144.js → Component-dd7c3b6d.js} +1 -1
  293. package/input-autocomplete/esm/Component.js +1 -1
  294. package/input-autocomplete/esm/autocomplete-field/Component.js +1 -1
  295. package/input-autocomplete/esm/autocomplete-field/index.css +2 -2
  296. package/input-autocomplete/esm/autocomplete-field/index.d.ts +1 -1
  297. package/input-autocomplete/esm/autocomplete-field/index.js +1 -1
  298. package/input-autocomplete/esm/index.js +1 -1
  299. package/input-autocomplete/index.js +1 -1
  300. package/input-autocomplete/modern/autocomplete-field/Component.js +1 -1
  301. package/input-autocomplete/modern/autocomplete-field/index.css +2 -2
  302. package/intl-phone-input/{component-2901b48c.d.ts → component-498d4124.d.ts} +0 -0
  303. package/intl-phone-input/{component-2901b48c.js → component-498d4124.js} +1 -1
  304. package/intl-phone-input/component.d.ts +1 -1
  305. package/intl-phone-input/component.js +3 -3
  306. package/intl-phone-input/components/flag-icon/component.js +1 -1
  307. package/intl-phone-input/components/flag-icon/index.css +784 -784
  308. package/intl-phone-input/components/index.js +1 -1
  309. package/intl-phone-input/components/select/component.js +2 -2
  310. package/intl-phone-input/components/select/index.css +6 -6
  311. package/intl-phone-input/components/select/index.js +1 -1
  312. package/intl-phone-input/components/select-field/component.js +1 -1
  313. package/intl-phone-input/components/select-field/index.css +8 -8
  314. package/intl-phone-input/components/select-field/index.d.ts +1 -1
  315. package/intl-phone-input/components/select-field/index.js +1 -1
  316. package/intl-phone-input/esm/{component-b0494269.d.ts → component-ef978414.d.ts} +0 -0
  317. package/intl-phone-input/esm/{component-b0494269.js → component-ef978414.js} +1 -1
  318. package/intl-phone-input/esm/component.js +3 -3
  319. package/intl-phone-input/esm/components/flag-icon/component.js +1 -1
  320. package/intl-phone-input/esm/components/flag-icon/index.css +784 -784
  321. package/intl-phone-input/esm/components/index.js +1 -1
  322. package/intl-phone-input/esm/components/select/component.js +2 -2
  323. package/intl-phone-input/esm/components/select/index.css +6 -6
  324. package/intl-phone-input/esm/components/select/index.js +1 -1
  325. package/intl-phone-input/esm/components/select-field/component.js +1 -1
  326. package/intl-phone-input/esm/components/select-field/index.css +8 -8
  327. package/intl-phone-input/esm/components/select-field/index.d.ts +1 -1
  328. package/intl-phone-input/esm/components/select-field/index.js +1 -1
  329. package/intl-phone-input/esm/index.css +3 -3
  330. package/intl-phone-input/esm/index.js +1 -1
  331. package/intl-phone-input/esm/{libphonenumber-js.min-4d9b997b.d.ts → libphonenumber-js.min-34032a4a.d.ts} +0 -0
  332. package/intl-phone-input/esm/{libphonenumber-js.min-4d9b997b.js → libphonenumber-js.min-34032a4a.js} +0 -0
  333. package/intl-phone-input/index.css +3 -3
  334. package/intl-phone-input/index.js +1 -1
  335. package/intl-phone-input/{libphonenumber-js.min-893b6a4c.d.ts → libphonenumber-js.min-5ea47984.d.ts} +0 -0
  336. package/intl-phone-input/{libphonenumber-js.min-893b6a4c.js → libphonenumber-js.min-5ea47984.js} +0 -0
  337. package/intl-phone-input/modern/component.js +2 -2
  338. package/intl-phone-input/modern/components/flag-icon/component.js +1 -1
  339. package/intl-phone-input/modern/components/flag-icon/index.css +784 -784
  340. package/intl-phone-input/modern/components/select/component.js +1 -1
  341. package/intl-phone-input/modern/components/select/index.css +6 -6
  342. package/intl-phone-input/modern/components/select-field/component.js +1 -1
  343. package/intl-phone-input/modern/components/select-field/index.css +8 -8
  344. package/intl-phone-input/modern/index.css +3 -3
  345. package/intl-phone-input/modern/{libphonenumber-js.min-4d9b997b.d.ts → libphonenumber-js.min-34032a4a.d.ts} +0 -0
  346. package/intl-phone-input/modern/{libphonenumber-js.min-4d9b997b.js → libphonenumber-js.min-34032a4a.js} +0 -0
  347. package/masked-input/Component.js +1 -1
  348. package/masked-input/esm/Component.js +1 -1
  349. package/masked-input/esm/index.css +2 -2
  350. package/masked-input/index.css +2 -2
  351. package/masked-input/modern/Component.js +1 -1
  352. package/masked-input/modern/index.css +2 -2
  353. package/modal/Component.desktop.js +2 -2
  354. package/modal/Component.mobile.js +2 -2
  355. package/modal/Component.responsive.js +2 -2
  356. package/modal/components/closer/Component.js +1 -1
  357. package/modal/components/content/Component.desktop.js +1 -1
  358. package/modal/components/content/Component.mobile.js +1 -1
  359. package/modal/components/footer/Component.desktop.js +1 -1
  360. package/modal/components/footer/Component.mobile.js +1 -1
  361. package/modal/components/header/Component.desktop.js +1 -1
  362. package/modal/components/header/Component.js +1 -1
  363. package/modal/components/header/Component.mobile.js +1 -1
  364. package/modal/desktop.js +2 -2
  365. package/modal/esm/Component.desktop.js +2 -2
  366. package/modal/esm/Component.mobile.js +2 -2
  367. package/modal/esm/Component.responsive.js +2 -2
  368. package/modal/esm/components/closer/Component.js +1 -1
  369. package/modal/esm/components/content/Component.desktop.js +1 -1
  370. package/modal/esm/components/content/Component.mobile.js +1 -1
  371. package/modal/esm/components/footer/Component.desktop.js +1 -1
  372. package/modal/esm/components/footer/Component.mobile.js +1 -1
  373. package/modal/esm/components/header/Component.desktop.js +1 -1
  374. package/modal/esm/components/header/Component.js +1 -1
  375. package/modal/esm/components/header/Component.mobile.js +1 -1
  376. package/modal/esm/desktop.js +2 -2
  377. package/modal/esm/index.js +2 -2
  378. package/modal/esm/mobile.js +2 -2
  379. package/modal/esm/responsive.js +2 -2
  380. package/modal/esm/{transitions.module-45fbb621.js → transitions.module-149880b4.js} +0 -0
  381. package/modal/esm/{tslib.es6-4214739e.d.ts → tslib.es6-44283f35.d.ts} +0 -0
  382. package/modal/esm/{tslib.es6-4214739e.js → tslib.es6-44283f35.js} +0 -0
  383. package/modal/index.js +2 -2
  384. package/modal/mobile.js +2 -2
  385. package/modal/modern/Component.desktop.js +1 -1
  386. package/modal/modern/Component.mobile.js +1 -1
  387. package/modal/modern/Component.responsive.js +1 -1
  388. package/modal/modern/desktop.js +1 -1
  389. package/modal/modern/index.js +1 -1
  390. package/modal/modern/mobile.js +1 -1
  391. package/modal/modern/responsive.js +1 -1
  392. package/modal/modern/{transitions.module-45fbb621.js → transitions.module-149880b4.js} +0 -0
  393. package/modal/responsive.js +2 -2
  394. package/modal/{transitions.module-b67d0f1c.js → transitions.module-fb5051a6.js} +0 -0
  395. package/modal/{tslib.es6-ccd35f7f.d.ts → tslib.es6-dffc199b.d.ts} +0 -0
  396. package/modal/{tslib.es6-ccd35f7f.js → tslib.es6-dffc199b.js} +0 -0
  397. package/package.json +3 -2
  398. package/password-input/component.js +1 -1
  399. package/password-input/esm/component.js +1 -1
  400. package/password-input/esm/index.css +5 -5
  401. package/password-input/index.css +5 -5
  402. package/password-input/modern/component.js +1 -1
  403. package/password-input/modern/index.css +5 -5
  404. package/picker-button/{Component-cb99627b.d.ts → Component-8a497560.d.ts} +0 -0
  405. package/picker-button/{Component-cb99627b.js → Component-8a497560.js} +1 -1
  406. package/picker-button/Component.d.ts +1 -1
  407. package/picker-button/Component.js +2 -2
  408. package/picker-button/esm/{Component-94ad1b6c.d.ts → Component-a0f8bf33.d.ts} +0 -0
  409. package/picker-button/esm/{Component-94ad1b6c.js → Component-a0f8bf33.js} +1 -1
  410. package/picker-button/esm/Component.js +2 -2
  411. package/picker-button/esm/field/Component.js +1 -1
  412. package/picker-button/esm/field/index.css +3 -3
  413. package/picker-button/esm/field/index.d.ts +1 -1
  414. package/picker-button/esm/field/index.js +1 -1
  415. package/picker-button/esm/index.css +2 -2
  416. package/picker-button/esm/index.js +1 -1
  417. package/picker-button/field/Component.js +1 -1
  418. package/picker-button/field/index.css +3 -3
  419. package/picker-button/field/index.d.ts +1 -1
  420. package/picker-button/field/index.js +1 -1
  421. package/picker-button/index.css +2 -2
  422. package/picker-button/index.js +1 -1
  423. package/picker-button/modern/Component.js +1 -1
  424. package/picker-button/modern/field/Component.js +1 -1
  425. package/picker-button/modern/field/index.css +3 -3
  426. package/picker-button/modern/index.css +2 -2
  427. package/radio-group/Component.js +2 -2
  428. package/radio-group/cssm/Component.js +1 -1
  429. package/radio-group/esm/Component.js +2 -2
  430. package/radio-group/esm/index.css +17 -17
  431. package/radio-group/index.css +17 -17
  432. package/radio-group/modern/Component.js +2 -2
  433. package/radio-group/modern/index.css +17 -17
  434. package/select/Component.js +1 -1
  435. package/select/components/arrow/Component.js +1 -1
  436. package/select/components/arrow/index.css +3 -3
  437. package/select/components/base-select/Component.js +2 -2
  438. package/select/components/base-select/index.css +7 -7
  439. package/select/components/base-select/index.js +1 -1
  440. package/select/components/checkmark/Component.js +1 -1
  441. package/select/components/checkmark/index.css +3 -3
  442. package/select/components/field/Component.js +2 -2
  443. package/select/components/field/index.css +9 -9
  444. package/select/components/field/index.js +1 -1
  445. package/select/components/index.js +1 -1
  446. package/select/components/native-select/Component.js +1 -1
  447. package/select/components/native-select/index.js +1 -1
  448. package/select/components/optgroup/Component.js +1 -1
  449. package/select/components/optgroup/index.css +6 -6
  450. package/select/components/option/Component.js +2 -2
  451. package/select/components/option/index.css +20 -20
  452. package/select/components/option/index.js +1 -1
  453. package/select/components/options-list/Component.js +1 -1
  454. package/select/components/options-list/index.css +5 -5
  455. package/select/components/virtual-options-list/Component.js +1 -1
  456. package/select/components/virtual-options-list/index.css +11 -11
  457. package/select/esm/Component.js +1 -1
  458. package/select/esm/components/arrow/Component.js +1 -1
  459. package/select/esm/components/arrow/index.css +3 -3
  460. package/select/esm/components/base-select/Component.js +2 -2
  461. package/select/esm/components/base-select/index.css +7 -7
  462. package/select/esm/components/base-select/index.js +1 -1
  463. package/select/esm/components/checkmark/Component.js +1 -1
  464. package/select/esm/components/checkmark/index.css +3 -3
  465. package/select/esm/components/field/Component.js +2 -2
  466. package/select/esm/components/field/index.css +9 -9
  467. package/select/esm/components/field/index.js +1 -1
  468. package/select/esm/components/index.js +1 -1
  469. package/select/esm/components/native-select/Component.js +1 -1
  470. package/select/esm/components/native-select/index.js +1 -1
  471. package/select/esm/components/optgroup/Component.js +1 -1
  472. package/select/esm/components/optgroup/index.css +6 -6
  473. package/select/esm/components/option/Component.js +2 -2
  474. package/select/esm/components/option/index.css +20 -20
  475. package/select/esm/components/option/index.js +1 -1
  476. package/select/esm/components/options-list/Component.js +1 -1
  477. package/select/esm/components/options-list/index.css +5 -5
  478. package/select/esm/components/virtual-options-list/Component.js +1 -1
  479. package/select/esm/components/virtual-options-list/index.css +11 -11
  480. package/select/esm/index.js +1 -1
  481. package/select/esm/presets/index.js +1 -1
  482. package/select/esm/presets/useLazyLoading/hook.js +2 -2
  483. package/select/esm/presets/useLazyLoading/index.css +2 -2
  484. package/select/esm/presets/useSelectWithLoading/hook.js +2 -2
  485. package/select/esm/presets/useSelectWithLoading/index.css +2 -2
  486. package/select/esm/{tslib.es6-abde084a.d.ts → tslib.es6-c439a3c2.d.ts} +0 -0
  487. package/select/esm/{tslib.es6-abde084a.js → tslib.es6-c439a3c2.js} +0 -0
  488. package/select/index.js +1 -1
  489. package/select/modern/components/arrow/Component.js +1 -1
  490. package/select/modern/components/arrow/index.css +3 -3
  491. package/select/modern/components/base-select/Component.js +1 -1
  492. package/select/modern/components/base-select/index.css +7 -7
  493. package/select/modern/components/checkmark/Component.js +1 -1
  494. package/select/modern/components/checkmark/index.css +3 -3
  495. package/select/modern/components/field/Component.js +1 -1
  496. package/select/modern/components/field/index.css +9 -9
  497. package/select/modern/components/optgroup/Component.js +1 -1
  498. package/select/modern/components/optgroup/index.css +6 -6
  499. package/select/modern/components/option/Component.js +1 -1
  500. package/select/modern/components/option/index.css +20 -20
  501. package/select/modern/components/options-list/Component.js +1 -1
  502. package/select/modern/components/options-list/index.css +5 -5
  503. package/select/modern/components/virtual-options-list/Component.js +1 -1
  504. package/select/modern/components/virtual-options-list/index.css +11 -11
  505. package/select/modern/presets/useLazyLoading/hook.js +1 -1
  506. package/select/modern/presets/useLazyLoading/index.css +2 -2
  507. package/select/modern/presets/useSelectWithLoading/hook.js +1 -1
  508. package/select/modern/presets/useSelectWithLoading/index.css +2 -2
  509. package/select/presets/index.js +1 -1
  510. package/select/presets/useLazyLoading/hook.js +2 -2
  511. package/select/presets/useLazyLoading/index.css +2 -2
  512. package/select/presets/useSelectWithLoading/hook.js +2 -2
  513. package/select/presets/useSelectWithLoading/index.css +2 -2
  514. package/select/{tslib.es6-0f234b35.d.ts → tslib.es6-f0c8b058.d.ts} +0 -0
  515. package/select/{tslib.es6-0f234b35.js → tslib.es6-f0c8b058.js} +0 -0
  516. package/slider-input/Component.js +1 -1
  517. package/slider-input/esm/Component.js +1 -1
  518. package/slider-input/esm/index.css +17 -17
  519. package/slider-input/index.css +17 -17
  520. package/slider-input/modern/Component.js +1 -1
  521. package/slider-input/modern/index.css +17 -17
  522. package/tabs/components/primary-tablist/Component.desktop.js +2 -2
  523. package/tabs/components/primary-tablist/Component.js +14 -12
  524. package/tabs/components/primary-tablist/Component.mobile.js +2 -2
  525. package/tabs/components/primary-tablist/Component.responsive.js +2 -2
  526. package/tabs/components/secondary-tablist/Component.desktop.js +2 -2
  527. package/tabs/components/secondary-tablist/Component.js +1 -1
  528. package/tabs/components/secondary-tablist/Component.mobile.js +2 -2
  529. package/tabs/components/secondary-tablist/Component.responsive.js +2 -2
  530. package/tabs/components/tabs/Component.desktop.js +3 -3
  531. package/tabs/components/tabs/Component.mobile.js +3 -3
  532. package/tabs/components/tabs/Component.responsive.js +3 -3
  533. package/tabs/cssm/components/primary-tablist/Component.js +13 -11
  534. package/tabs/cssm/useTabs.d.ts +1 -1
  535. package/tabs/cssm/useTabs.js +3 -2
  536. package/tabs/desktop.js +3 -3
  537. package/tabs/esm/components/primary-tablist/Component.desktop.js +2 -2
  538. package/tabs/esm/components/primary-tablist/Component.js +14 -12
  539. package/tabs/esm/components/primary-tablist/Component.mobile.js +2 -2
  540. package/tabs/esm/components/primary-tablist/Component.responsive.js +2 -2
  541. package/tabs/esm/components/secondary-tablist/Component.desktop.js +2 -2
  542. package/tabs/esm/components/secondary-tablist/Component.js +1 -1
  543. package/tabs/esm/components/secondary-tablist/Component.mobile.js +2 -2
  544. package/tabs/esm/components/secondary-tablist/Component.responsive.js +2 -2
  545. package/tabs/esm/components/tabs/Component.desktop.js +3 -3
  546. package/tabs/esm/components/tabs/Component.mobile.js +3 -3
  547. package/tabs/esm/components/tabs/Component.responsive.js +3 -3
  548. package/tabs/esm/desktop.js +3 -3
  549. package/tabs/esm/index.js +3 -3
  550. package/tabs/esm/{index.module-c8448fef.js → index.module-31042309.js} +0 -0
  551. package/tabs/esm/{index.module-fbbc84ff.js → index.module-4b8e748a.js} +0 -0
  552. package/tabs/esm/mobile.js +3 -3
  553. package/tabs/esm/responsive.js +3 -3
  554. package/tabs/esm/{tslib.es6-787ef7a5.d.ts → tslib.es6-ca61a599.d.ts} +0 -0
  555. package/tabs/esm/{tslib.es6-787ef7a5.js → tslib.es6-ca61a599.js} +0 -0
  556. package/tabs/esm/useTabs.d.ts +1 -1
  557. package/tabs/esm/useTabs.js +3 -2
  558. package/tabs/index.js +3 -3
  559. package/tabs/{index.module-91539407.js → index.module-962759d1.js} +0 -0
  560. package/tabs/{index.module-95d8761b.js → index.module-c1c14145.js} +0 -0
  561. package/tabs/mobile.js +3 -3
  562. package/tabs/modern/components/primary-tablist/Component.desktop.js +1 -1
  563. package/tabs/modern/components/primary-tablist/Component.js +10 -8
  564. package/tabs/modern/components/primary-tablist/Component.mobile.js +1 -1
  565. package/tabs/modern/components/primary-tablist/Component.responsive.js +1 -1
  566. package/tabs/modern/components/secondary-tablist/Component.desktop.js +1 -1
  567. package/tabs/modern/components/secondary-tablist/Component.mobile.js +1 -1
  568. package/tabs/modern/components/secondary-tablist/Component.responsive.js +1 -1
  569. package/tabs/modern/components/tabs/Component.desktop.js +2 -2
  570. package/tabs/modern/components/tabs/Component.mobile.js +2 -2
  571. package/tabs/modern/components/tabs/Component.responsive.js +2 -2
  572. package/tabs/modern/desktop.js +2 -2
  573. package/tabs/modern/index.js +2 -2
  574. package/tabs/modern/{index.module-c8448fef.js → index.module-31042309.js} +0 -0
  575. package/tabs/modern/{index.module-fbbc84ff.js → index.module-4b8e748a.js} +0 -0
  576. package/tabs/modern/mobile.js +2 -2
  577. package/tabs/modern/responsive.js +2 -2
  578. package/tabs/modern/useTabs.d.ts +1 -1
  579. package/tabs/modern/useTabs.js +3 -2
  580. package/tabs/responsive.js +3 -3
  581. package/tabs/{tslib.es6-da6ab86a.d.ts → tslib.es6-351f4d47.d.ts} +0 -0
  582. package/tabs/{tslib.es6-da6ab86a.js → tslib.es6-351f4d47.js} +0 -0
  583. package/tabs/useTabs.d.ts +1 -1
  584. package/tabs/useTabs.js +3 -2
  585. package/textarea/Component.js +3 -3
  586. package/textarea/default.css +19 -19
  587. package/textarea/esm/Component.js +3 -3
  588. package/textarea/esm/default.css +19 -19
  589. package/textarea/esm/index.css +22 -22
  590. package/textarea/esm/inverted.css +19 -19
  591. package/textarea/index.css +22 -22
  592. package/textarea/inverted.css +19 -19
  593. package/textarea/modern/Component.js +3 -3
  594. package/textarea/modern/default.css +19 -19
  595. package/textarea/modern/index.css +22 -22
  596. package/textarea/modern/inverted.css +19 -19
  597. package/themes/compiled/mobile-dark-bluetint.css +28 -28
  598. package/themes/dist/compiled/mobile-dark-bluetint.css +154 -154
  599. package/typography/{colors.module-b49182a7.d.ts → colors.module-ded492e1.d.ts} +0 -0
  600. package/typography/{colors.module-b49182a7.js → colors.module-ded492e1.js} +0 -0
  601. package/typography/{common.module-263677ac.js → common.module-1de331b9.js} +0 -0
  602. package/typography/component.js +2 -2
  603. package/typography/esm/{colors.module-509f4855.d.ts → colors.module-d21f47ee.d.ts} +0 -0
  604. package/typography/esm/{colors.module-509f4855.js → colors.module-d21f47ee.js} +0 -0
  605. package/typography/esm/{common.module-961ee2a7.js → common.module-9782b936.js} +0 -0
  606. package/typography/esm/component.js +2 -2
  607. package/typography/esm/index.js +2 -2
  608. package/typography/esm/text/component.js +1 -1
  609. package/typography/esm/text/index.js +1 -1
  610. package/typography/esm/title/component.js +1 -1
  611. package/typography/esm/title/index.js +2 -2
  612. package/typography/esm/title-responsive/component.js +2 -2
  613. package/typography/esm/title-responsive/index.js +2 -2
  614. package/typography/index.js +2 -2
  615. package/typography/modern/{colors.module-07a98532.js → colors.module-5a6490a8.js} +0 -0
  616. package/typography/modern/{common.module-961ee2a7.js → common.module-9782b936.js} +0 -0
  617. package/typography/modern/component.js +2 -2
  618. package/typography/modern/index.js +2 -2
  619. package/typography/modern/text/component.js +1 -1
  620. package/typography/modern/text/index.js +1 -1
  621. package/typography/modern/title/component.js +1 -1
  622. package/typography/modern/title/index.js +2 -2
  623. package/typography/modern/title-responsive/component.js +2 -2
  624. package/typography/modern/title-responsive/index.js +2 -2
  625. package/typography/text/component.js +1 -1
  626. package/typography/text/index.js +1 -1
  627. package/typography/title/component.js +1 -1
  628. package/typography/title/index.js +2 -2
  629. package/typography/title-responsive/component.js +2 -2
  630. package/typography/title-responsive/index.js +2 -2
  631. package/with-suffix/Component.js +1 -1
  632. package/with-suffix/esm/Component.js +1 -1
  633. package/with-suffix/esm/index.css +9 -9
  634. package/with-suffix/index.css +9 -9
  635. package/with-suffix/modern/Component.js +1 -1
  636. package/with-suffix/modern/index.css +9 -9
@@ -0,0 +1,18 @@
1
+ Object.defineProperty(exports, '__esModule', { value: true });
2
+
3
+ var React = require('react');
4
+ require('../hooks/usePathBar/utils/getRadius.js');
5
+ var hooks_usePathBar_index = require('../hooks/usePathBar/index.js');
6
+
7
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
+
9
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
10
+
11
+ var CustomizedLabel = function (_a) {
12
+ var x = _a.x, y = _a.y, value = _a.value, offset = _a.offset, radius = _a.radius, height = _a.height, width = _a.width, formatter = _a.formatter;
13
+ var initHeight = hooks_usePathBar_index.usePathBar({ radius: radius, height: height })[0];
14
+ return (React__default['default'].createElement("text", { x: x + width / 2, y: y + height - (initHeight + offset), width: width, height: initHeight, textAnchor: 'middle' },
15
+ React__default['default'].createElement("tspan", { x: x + width / 2 }, formatter ? formatter(value) : value)));
16
+ };
17
+
18
+ exports.CustomizedLabel = CustomizedLabel;
@@ -1,19 +1,19 @@
1
- /* hash: 1pu5t */
2
- .chart__dotUnfocused_1pu5t {
1
+ /* hash: 1wctd */
2
+ .chart__dotUnfocused_1wctd {
3
3
  opacity: 0.3;
4
4
  }
5
5
 
6
- .chart__dot_1pu5t,
7
- .chart__dotItem_1pu5t,
8
- .chart__dotWrap_1pu5t {
6
+ .chart__dot_1wctd,
7
+ .chart__dotItem_1wctd,
8
+ .chart__dotWrap_1wctd {
9
9
  transition: all 0.2s ease;
10
10
  }
11
11
 
12
- .chart__dot_1pu5t {
13
- animation: chart__showDot_1pu5t 0.5s ease;
12
+ .chart__dot_1wctd {
13
+ animation: chart__showDot_1wctd 0.5s ease;
14
14
  }
15
15
 
16
- @keyframes chart__showDot_1pu5t {
16
+ @keyframes chart__showDot_1wctd {
17
17
  from {
18
18
  opacity: 0;
19
19
  }
@@ -9,7 +9,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
9
9
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
10
10
  var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
11
11
 
12
- var styles = {"dotUnfocused":"chart__dotUnfocused_1pu5t","dot":"chart__dot_1pu5t","dotItem":"chart__dotItem_1pu5t","dotWrap":"chart__dotWrap_1pu5t","showDot":"chart__showDot_1pu5t"};
12
+ var styles = {"dotUnfocused":"chart__dotUnfocused_1wctd","dot":"chart__dot_1wctd","dotItem":"chart__dotItem_1wctd","dotWrap":"chart__dotWrap_1wctd","showDot":"chart__showDot_1wctd"};
13
13
  require('./index.css');
14
14
 
15
15
  var Dot = React__default['default'].forwardRef(function (_a, ref) {
@@ -1,4 +1,4 @@
1
- /* hash: hkiwp */
1
+ /* hash: zwswg */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -10,31 +10,31 @@
10
10
  :root {
11
11
  --gap-2xl: 32px;
12
12
  }
13
- .chart__legendContent_hkiwp {
13
+ .chart__legendContent_zwswg {
14
14
  display: flex;
15
15
  align-items: center;
16
16
  flex-wrap: wrap;
17
17
  }
18
- .chart__legendWrap_hkiwp {
18
+ .chart__legendWrap_zwswg {
19
19
  width: 100%;
20
20
  margin: 0;
21
21
  padding: 0;
22
22
  }
23
- .chart__legendItem_hkiwp {
23
+ .chart__legendItem_zwswg {
24
24
  margin-right: var(--gap-2xl);
25
25
  cursor: pointer;
26
26
  display: inline-block;
27
27
  }
28
- .chart__legendItem_hkiwp:last-child {
28
+ .chart__legendItem_zwswg:last-child {
29
29
  margin-right: 0;
30
30
  }
31
- .chart__legendUnactive_hkiwp {
31
+ .chart__legendUnactive_zwswg {
32
32
  opacity: 0.3;
33
33
  }
34
- .chart__legendIcon_hkiwp {
34
+ .chart__legendIcon_zwswg {
35
35
  margin-right: 13px;
36
36
  display: flex;
37
37
  }
38
- .chart__legendValue_hkiwp {
38
+ .chart__legendValue_zwswg {
39
39
  text-transform: capitalize;
40
40
  }
@@ -13,7 +13,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
13
13
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
14
14
  var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
15
15
 
16
- var styles = {"legendContent":"chart__legendContent_hkiwp","legendWrap":"chart__legendWrap_hkiwp","legendItem":"chart__legendItem_hkiwp","legendUnactive":"chart__legendUnactive_hkiwp","legendIcon":"chart__legendIcon_hkiwp","legendValue":"chart__legendValue_hkiwp"};
16
+ var styles = {"legendContent":"chart__legendContent_zwswg","legendWrap":"chart__legendWrap_zwswg","legendItem":"chart__legendItem_zwswg","legendUnactive":"chart__legendUnactive_zwswg","legendIcon":"chart__legendIcon_zwswg","legendValue":"chart__legendValue_zwswg"};
17
17
  require('./index.css');
18
18
 
19
19
  var icons = {
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ declare const _default: React.MemoExoticComponent<({ fill, x, y, width, height, radius, background }: any) => JSX.Element>;
4
+ export { _default as default };
@@ -0,0 +1,30 @@
1
+ var React = require('react');
2
+ require('../hooks/usePathBar/utils/getRadius.js');
3
+ var hooks_usePathBar_index = require('../hooks/usePathBar/index.js');
4
+
5
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
6
+
7
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
8
+
9
+ // eslint-disable-next-line complexity
10
+ var getPath = function (x, width, height, initHeight, topRadius, bottomRadius, initY) {
11
+ return "\n M" + (x + ((height !== 0 && bottomRadius) || 0)) + " " + (initY + initHeight || 0) + "\n Q" + x + " " + (initY + initHeight) + " " + x + " " + (initY +
12
+ initHeight -
13
+ ((height !== 0 && bottomRadius) || 0)) + "\n L" + x + " " + (initY + ((height !== 0 && topRadius) || 0)) + "\n Q" + x + " " + initY + " " + (x + ((height !== 0 && topRadius) || 0)) + " " + initY + "\n L" + (x + width - ((height !== 0 && topRadius) || 0)) + " " + initY + "\n Q" + (x + width) + " " + initY + " " + (x + width) + " " + (initY + (topRadius || 0)) + "\n L" + (x + width) + " " + (initY + initHeight - ((height !== 0 && bottomRadius) || 0)) + "\n Q" + (x + width) + " " + (initY + initHeight) + " " + (x +
14
+ width -
15
+ ((height !== 0 && bottomRadius) || 0)) + " " + (initY + initHeight) + "\n Z\n ";
16
+ };
17
+ var RectBar = function (_a) {
18
+ var fill = _a.fill, x = _a.x, y = _a.y, width = _a.width, height = _a.height, radius = _a.radius, background = _a.background;
19
+ var _b = hooks_usePathBar_index.usePathBar({
20
+ radius: radius,
21
+ height: height,
22
+ background: background,
23
+ y: y,
24
+ }), initHeight = _b[0], topRadius = _b[1], bottomRadius = _b[2], initY = _b[3];
25
+ var path = React.useMemo(function () { return (React__default['default'].createElement("path", { d: getPath(x, width, height, initHeight, topRadius, bottomRadius, initY), stroke: 'none', fill: fill })); }, [x, width, height, initHeight, topRadius, bottomRadius, initY, fill]);
26
+ return React__default['default'].createElement(React__default['default'].Fragment, null, path);
27
+ };
28
+ var RectBar$1 = React__default['default'].memo(RectBar);
29
+
30
+ module.exports = RectBar$1;
@@ -1,4 +1,4 @@
1
- /* hash: 11yg1 */
1
+ /* hash: 1vfd9 */
2
2
  :root {
3
3
  --color-dark-bg-primary: #0b1f35;
4
4
  --color-light-text-primary: #0b1f35;
@@ -11,17 +11,17 @@
11
11
 
12
12
  /* Hard up */
13
13
  }
14
- .chart__tickText_11yg1 {
14
+ .chart__tickText_1vfd9 {
15
15
  fill: var(--color-light-text-primary);
16
16
  font-size: 16px;
17
17
  line-height: 24px;
18
18
  font-weight: 400;
19
19
  }
20
- .chart__circle_11yg1 {
20
+ .chart__circle_1vfd9 {
21
21
  opacity: 0.3;
22
22
  fill: var(--color-dark-bg-primary);
23
23
  }
24
- .chart__circle_11yg1 {
24
+ .chart__circle_1vfd9 {
25
25
  opacity: 0.3;
26
26
  fill: var(--color-dark-bg-primary);
27
27
  }
@@ -8,7 +8,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
8
8
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
9
9
  var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
10
10
 
11
- var styles = {"tickText":"chart__tickText_11yg1","circle":"chart__circle_11yg1"};
11
+ var styles = {"tickText":"chart__tickText_1vfd9","circle":"chart__circle_1vfd9"};
12
12
  require('./index.css');
13
13
 
14
14
  var Tick = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: jgpwn */
1
+ /* hash: 1b2rk */
2
2
  :root {
3
3
  --color-light-bg-primary: #fff;
4
4
  --color-light-border-primary: #dbdee1;
@@ -19,7 +19,7 @@
19
19
  :root {
20
20
  --border-radius-m: 8px;
21
21
  }
22
- .chart__tooltip_jgpwn {
22
+ .chart__tooltip_1b2rk {
23
23
  background-color: var(--color-light-bg-primary);
24
24
  border: 1px solid var(--color-light-border-primary);
25
25
  box-shadow: var(--shadow-l);
@@ -28,17 +28,17 @@
28
28
  pointer-events: none;
29
29
  position: relative;
30
30
  }
31
- .chart__tooltipList_jgpwn {
31
+ .chart__tooltipList_1b2rk {
32
32
  position: relative;
33
33
  z-index: 5;
34
34
  list-style-type: none;
35
35
  padding: 0;
36
36
  margin: 0;
37
37
  }
38
- .chart__tooltipItem_jgpwn {
38
+ .chart__tooltipItem_1b2rk {
39
39
  margin-bottom: 10px;
40
40
  }
41
- .chart__tooltipArrow_jgpwn {
41
+ .chart__tooltipArrow_1b2rk {
42
42
  position: absolute;
43
43
  left: 0;
44
44
  top: 50%;
@@ -48,7 +48,7 @@
48
48
  border: 1px solid var(--color-light-border-primary);
49
49
  background-color: var(--color-light-bg-primary);
50
50
  }
51
- .chart__tooltipArrow_jgpwn:before {
51
+ .chart__tooltipArrow_1b2rk:before {
52
52
  content: '';
53
53
  position: absolute;
54
54
  left: -2px;
@@ -59,7 +59,7 @@
59
59
  border-width: 0 24px 24px 0;
60
60
  border-color: transparent var(--color-light-bg-primary) transparent transparent;
61
61
  }
62
- .chart__tooltipArrowRight_jgpwn {
62
+ .chart__tooltipArrowRight_1b2rk {
63
63
  left: 100%;
64
64
  transform: translate(-50%, -50%) scale(-1, 1) rotate(45deg);
65
65
  }
@@ -9,7 +9,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
9
9
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
10
10
  var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
11
11
 
12
- var styles = {"tooltip":"chart__tooltip_jgpwn","tooltipList":"chart__tooltipList_jgpwn","tooltipItem":"chart__tooltipItem_jgpwn","tooltipArrow":"chart__tooltipArrow_jgpwn","tooltipArrowRight":"chart__tooltipArrowRight_jgpwn"};
12
+ var styles = {"tooltip":"chart__tooltip_1b2rk","tooltipList":"chart__tooltipList_1b2rk","tooltipItem":"chart__tooltipItem_1b2rk","tooltipArrow":"chart__tooltipArrow_1b2rk","tooltipArrowRight":"chart__tooltipArrowRight_1b2rk"};
13
13
  require('./index.css');
14
14
 
15
15
  var TooltipContent = function (_a) {
@@ -19,6 +19,10 @@ require('./hooks/useSettings/utils/setGradientCharts.js');
19
19
  require('./hooks/useSettings/utils/setLegendMargin.js');
20
20
  require('./hooks/useSettings/utils/sortByIndex.js');
21
21
  var hooks_useSettings_index = require('./hooks/useSettings/index.js');
22
+ require('./hooks/usePathBar/utils/getRadius.js');
23
+ require('./hooks/usePathBar/index.js');
24
+ var components_CustomizedLabel = require('./components/CustomizedLabel.js');
25
+ var components_RectBar = require('./components/RectBar.js');
22
26
  require('./components/Tick/index.module.css');
23
27
  var components_Tick_index = require('./components/Tick/index.js');
24
28
  require('./components/TooltipContent/index.module.css');
@@ -153,17 +157,19 @@ var Chart = function (props) {
153
157
  if (!state || !charts)
154
158
  return null;
155
159
  return state.series.map(function (item) {
156
- var chart = item.chart, properties = item.properties;
160
+ var chart = item.chart, properties = item.properties, radius = item.radius, labelList = item.labelList;
157
161
  var show = charts["" + properties.dataKey];
158
162
  switch (chart) {
159
163
  case 'bar':
160
- return show && !(item === null || item === void 0 ? void 0 : item.hide) ? (React__default['default'].createElement(recharts.Bar, tslib_es6.__assign({ key: state.id + "-" + properties.dataKey }, properties), data.map(function (_, index) {
161
- var key = state.id + "-" + properties.dataKey + "-" + index;
162
- return (React__default['default'].createElement(recharts.Cell, { key: key, className: cn__default['default'](styles__default['default'].bar, typeof activeDotsState.active === 'number' &&
163
- activeDotsState.active !== index
164
- ? styles__default['default'].unfocused
165
- : '') }));
166
- }))) : null;
164
+ return show && !(item === null || item === void 0 ? void 0 : item.hide) ? (React__default['default'].createElement(recharts.Bar, tslib_es6.__assign({ key: state.id + "-" + properties.dataKey }, properties, { shape: React__default['default'].createElement(components_RectBar, { radius: radius }) }),
165
+ labelList && (React__default['default'].createElement(recharts.LabelList, tslib_es6.__assign({ dataKey: properties.dataKey.toString() }, labelList, { content: React__default['default'].createElement(components_CustomizedLabel.CustomizedLabel, { radius: radius }) }))),
166
+ data.map(function (_, index) {
167
+ var key = state.id + "-" + properties.dataKey + "-" + index;
168
+ return (React__default['default'].createElement(recharts.Cell, { key: key, className: cn__default['default'](styles__default['default'].bar, typeof activeDotsState.active === 'number' &&
169
+ activeDotsState.active !== index
170
+ ? styles__default['default'].unfocused
171
+ : '') }));
172
+ }))) : null;
167
173
  case 'area':
168
174
  case 'line':
169
175
  return show && !(item === null || item === void 0 ? void 0 : item.hide) ? (React__default['default'].createElement(recharts.Line, tslib_es6.__assign({ key: state.id + "-" + properties.dataKey }, properties, { dot: properties.dot && properties.dotSettings
@@ -246,11 +252,15 @@ var Chart = function (props) {
246
252
  }
247
253
  };
248
254
  var mouseMove = function (e) {
255
+ if (!(state === null || state === void 0 ? void 0 : state.tooltip))
256
+ return;
249
257
  arrowTooltipEvent(e.activeCoordinate);
250
258
  hoverEvent(e.isTooltipActive, e.activeTooltipIndex);
251
259
  leaveEvent(e.isTooltipActive);
252
260
  };
253
261
  var mouseLeave = function (e) {
262
+ if (!(state === null || state === void 0 ? void 0 : state.tooltip))
263
+ return;
254
264
  leaveEvent(e.isTooltipActive);
255
265
  };
256
266
  if (!data || !charts || !state)
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ declare const CustomizedLabel: React.FC<any>;
4
+ export { CustomizedLabel };
@@ -0,0 +1,18 @@
1
+ Object.defineProperty(exports, '__esModule', { value: true });
2
+
3
+ var React = require('react');
4
+ require('../hooks/usePathBar/utils/getRadius.js');
5
+ var hooks_usePathBar_index = require('../hooks/usePathBar/index.js');
6
+
7
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
+
9
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
10
+
11
+ var CustomizedLabel = function (_a) {
12
+ var x = _a.x, y = _a.y, value = _a.value, offset = _a.offset, radius = _a.radius, height = _a.height, width = _a.width, formatter = _a.formatter;
13
+ var initHeight = hooks_usePathBar_index.usePathBar({ radius: radius, height: height })[0];
14
+ return (React__default['default'].createElement("text", { x: x + width / 2, y: y + height - (initHeight + offset), width: width, height: initHeight, textAnchor: 'middle' },
15
+ React__default['default'].createElement("tspan", { x: x + width / 2 }, formatter ? formatter(value) : value)));
16
+ };
17
+
18
+ exports.CustomizedLabel = CustomizedLabel;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ declare const _default: React.MemoExoticComponent<({ fill, x, y, width, height, radius, background }: any) => JSX.Element>;
4
+ export { _default as default };
@@ -0,0 +1,30 @@
1
+ var React = require('react');
2
+ require('../hooks/usePathBar/utils/getRadius.js');
3
+ var hooks_usePathBar_index = require('../hooks/usePathBar/index.js');
4
+
5
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
6
+
7
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
8
+
9
+ // eslint-disable-next-line complexity
10
+ var getPath = function (x, width, height, initHeight, topRadius, bottomRadius, initY) {
11
+ return "\n M" + (x + ((height !== 0 && bottomRadius) || 0)) + " " + (initY + initHeight || 0) + "\n Q" + x + " " + (initY + initHeight) + " " + x + " " + (initY +
12
+ initHeight -
13
+ ((height !== 0 && bottomRadius) || 0)) + "\n L" + x + " " + (initY + ((height !== 0 && topRadius) || 0)) + "\n Q" + x + " " + initY + " " + (x + ((height !== 0 && topRadius) || 0)) + " " + initY + "\n L" + (x + width - ((height !== 0 && topRadius) || 0)) + " " + initY + "\n Q" + (x + width) + " " + initY + " " + (x + width) + " " + (initY + (topRadius || 0)) + "\n L" + (x + width) + " " + (initY + initHeight - ((height !== 0 && bottomRadius) || 0)) + "\n Q" + (x + width) + " " + (initY + initHeight) + " " + (x +
14
+ width -
15
+ ((height !== 0 && bottomRadius) || 0)) + " " + (initY + initHeight) + "\n Z\n ";
16
+ };
17
+ var RectBar = function (_a) {
18
+ var fill = _a.fill, x = _a.x, y = _a.y, width = _a.width, height = _a.height, radius = _a.radius, background = _a.background;
19
+ var _b = hooks_usePathBar_index.usePathBar({
20
+ radius: radius,
21
+ height: height,
22
+ background: background,
23
+ y: y,
24
+ }), initHeight = _b[0], topRadius = _b[1], bottomRadius = _b[2], initY = _b[3];
25
+ var path = React.useMemo(function () { return (React__default['default'].createElement("path", { d: getPath(x, width, height, initHeight, topRadius, bottomRadius, initY), stroke: 'none', fill: fill })); }, [x, width, height, initHeight, topRadius, bottomRadius, initY, fill]);
26
+ return React__default['default'].createElement(React__default['default'].Fragment, null, path);
27
+ };
28
+ var RectBar$1 = React__default['default'].memo(RectBar);
29
+
30
+ module.exports = RectBar$1;
@@ -0,0 +1,14 @@
1
+ import { RadiusProp } from "../../types/seria.types";
2
+ type usePathBarProps = {
3
+ radius?: RadiusProp;
4
+ height: number;
5
+ background?: {
6
+ x: number;
7
+ y: number;
8
+ height: number;
9
+ width: number;
10
+ };
11
+ y?: number;
12
+ };
13
+ declare const usePathBar: (props: usePathBarProps) => number[];
14
+ export { usePathBarProps, usePathBar };
@@ -0,0 +1,39 @@
1
+ Object.defineProperty(exports, '__esModule', { value: true });
2
+
3
+ var React = require('react');
4
+ var hooks_usePathBar_utils_getRadius = require('./utils/getRadius.js');
5
+
6
+ var usePathBar = function (props) {
7
+ var _a = React.useState(0), topRadius = _a[0], setTopRadius = _a[1];
8
+ var _b = React.useState(0), bottomRadius = _b[0], setBottomRadius = _b[1];
9
+ var _c = React.useState(0), initHeight = _c[0], setInitHeight = _c[1];
10
+ var _d = React.useState(0), initY = _d[0], setInitY = _d[1];
11
+ React.useEffect(function () {
12
+ var radius = props.radius, height = props.height, background = props.background, y = props.y;
13
+ var radiusTop = (radius === null || radius === void 0 ? void 0 : radius.top) ? hooks_usePathBar_utils_getRadius.getRadius(height, radius.top) : 0;
14
+ var radiusBottom = (radius === null || radius === void 0 ? void 0 : radius.bottom) ? hooks_usePathBar_utils_getRadius.getRadius(height, radius.bottom) : 0;
15
+ var heightCheck = (radius && height !== 0 && height / 2 < ((radius === null || radius === void 0 ? void 0 : radius.top) || 0)) ||
16
+ height / 2 < ((radius === null || radius === void 0 ? void 0 : radius.bottom) || 0);
17
+ // eslint-disable-next-line no-nested-ternary
18
+ var heightInit = heightCheck
19
+ ? (radiusTop || radiusBottom) && radiusTop + radiusBottom
20
+ : height > 0 && height < 2
21
+ ? 2
22
+ : height;
23
+ if (background && y) {
24
+ var yInit = heightCheck
25
+ ? background.height + background.y - (radiusTop + radiusBottom)
26
+ : y;
27
+ setInitY(yInit);
28
+ }
29
+ if (radiusTop !== 0)
30
+ setTopRadius(radiusTop);
31
+ if (radiusBottom !== 0)
32
+ setBottomRadius(radiusBottom);
33
+ if (heightInit !== 0)
34
+ setInitHeight(heightInit);
35
+ }, [props]);
36
+ return [initHeight, topRadius, bottomRadius, initY];
37
+ };
38
+
39
+ exports.usePathBar = usePathBar;
@@ -0,0 +1,2 @@
1
+ declare const getRadius: (height: number, radius: number) => number;
2
+ export { getRadius };
@@ -0,0 +1,8 @@
1
+ Object.defineProperty(exports, '__esModule', { value: true });
2
+
3
+ var getRadius = function (height, radius) {
4
+ var result = radius && height / 2 < radius ? Math.ceil(height / 2) : radius || 0;
5
+ return result;
6
+ };
7
+
8
+ exports.getRadius = getRadius;
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
 
3
- require('../../tslib.es6-2be2aee7.js');
3
+ var tslib_es6 = require('../../tslib.es6-2be2aee7.js');
4
4
  var React = require('react');
5
5
  var hooks_useSettings_utils_setComposedChartsMargin = require('./utils/setComposedChartsMargin.js');
6
6
  var hooks_useSettings_utils_setDatas = require('./utils/setDatas.js');
@@ -15,7 +15,7 @@ var useSettings = function (options) {
15
15
  var _d = React.useState(0), filterCount = _d[0], setFilterCount = _d[1];
16
16
  React.useEffect(function () {
17
17
  var _a;
18
- var settings = JSON.parse(JSON.stringify(options));
18
+ var settings = tslib_es6.__assign({}, options);
19
19
  var brush = settings.brush, legend = settings.legend, series = settings.series, labels = settings.labels, composeChart = settings.composeChart, xAxis = settings.xAxis;
20
20
  if (((_a = settings.legend) === null || _a === void 0 ? void 0 : _a.margin) && brush && legend)
21
21
  settings.legend.margin.top = hooks_useSettings_utils_setLegendMargin.setLegendMargin(brush, legend);
@@ -8,7 +8,7 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
8
8
 
9
9
  var CircleIcon = function (_a) {
10
10
  var _b = _a.fill, fill = _b === void 0 ? '#FF5C5C' : _b, _c = _a.height, height = _c === void 0 ? 16 : _c;
11
- return (React__default['default'].createElement("svg", { xmlns: 'http://www.w3.org/2000/svg', width: 'auto', height: height, viewBox: '0 0 16 16', fill: 'none' },
11
+ return (React__default['default'].createElement("svg", { xmlns: 'http://www.w3.org/2000/svg', height: height, viewBox: '0 0 16 16', fill: 'none' },
12
12
  React__default['default'].createElement("circle", { cx: '8', cy: '8', r: '8', fill: fill })));
13
13
  };
14
14
 
@@ -8,7 +8,7 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
8
8
 
9
9
  var CircleLineIcon = function (_a) {
10
10
  var _b = _a.fill, fill = _b === void 0 ? '#FF5C5C' : _b, _c = _a.height, height = _c === void 0 ? 16 : _c;
11
- return (React__default['default'].createElement("svg", { xmlns: 'http://www.w3.org/2000/svg', width: 'auto', height: height, viewBox: '0 0 22 12', fill: 'none' },
11
+ return (React__default['default'].createElement("svg", { xmlns: 'http://www.w3.org/2000/svg', height: height, viewBox: '0 0 22 12', fill: 'none' },
12
12
  React__default['default'].createElement("circle", { cx: '11', cy: '6', r: '6', fill: fill }),
13
13
  React__default['default'].createElement("rect", { y: '5', width: '22', height: '2', fill: fill })));
14
14
  };
@@ -8,7 +8,7 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
8
8
 
9
9
  var StrokeCircleIcon = function (_a) {
10
10
  var _b = _a.fill, fill = _b === void 0 ? '#5A8ECF' : _b, _c = _a.height, height = _c === void 0 ? 16 : _c;
11
- return (React__default['default'].createElement("svg", { xmlns: 'http://www.w3.org/2000/svg', width: 'auto', height: height, viewBox: '0 0 22 22', fill: 'none' },
11
+ return (React__default['default'].createElement("svg", { xmlns: 'http://www.w3.org/2000/svg', height: height, viewBox: '0 0 22 22', fill: 'none' },
12
12
  React__default['default'].createElement("circle", { cx: '11', cy: '11', r: '10', stroke: fill, strokeWidth: '2', strokeDasharray: '8 8' })));
13
13
  };
14
14
 
@@ -20,6 +20,10 @@ require('./hooks/useSettings/utils/setGradientCharts.js');
20
20
  require('./hooks/useSettings/utils/setLegendMargin.js');
21
21
  require('./hooks/useSettings/utils/sortByIndex.js');
22
22
  require('./hooks/useSettings/index.js');
23
+ require('./hooks/usePathBar/utils/getRadius.js');
24
+ require('./hooks/usePathBar/index.js');
25
+ require('./components/CustomizedLabel.js');
26
+ require('./components/RectBar.js');
23
27
  require('./components/Tick/index.module.css');
24
28
  require('./components/Tick/index.js');
25
29
  require('./components/TooltipContent/index.module.css');
@@ -0,0 +1,5 @@
1
+ interface LabelListProps {
2
+ formatter: Function;
3
+ ofsset: number;
4
+ }
5
+ export { LabelListProps };
@@ -1,6 +1,11 @@
1
1
  import { ChartProps } from "./chart.types";
2
+ import { LabelListProps } from "./labelList.types";
2
3
  import { DataProps } from "./utils/data.types";
3
4
  import { GradientProps } from "./utils/gradient.types";
5
+ type RadiusProp = {
6
+ top?: number;
7
+ bottom?: number;
8
+ };
4
9
  interface SeriaProps {
5
10
  /**
6
11
  * Скрыть график
@@ -22,6 +27,10 @@ interface SeriaProps {
22
27
  * Тип графика
23
28
  */
24
29
  chart: 'line' | 'area' | 'bar' | 'gradient';
30
+ /**
31
+ * Радиус закругления углов графика типа bar
32
+ */
33
+ radius?: RadiusProp;
25
34
  /**
26
35
  * Тип иконки для графика
27
36
  */
@@ -47,6 +56,10 @@ interface SeriaProps {
47
56
  */
48
57
  points: GradientProps[];
49
58
  };
59
+ /**
60
+ * Параметры labels для графика типа bar
61
+ */
62
+ labelList?: LabelListProps;
50
63
  /**
51
64
  * Параметры графика
52
65
  */
@@ -56,4 +69,4 @@ interface SeriaProps {
56
69
  */
57
70
  data: DataProps[];
58
71
  }
59
- export { SeriaProps };
72
+ export { RadiusProp, SeriaProps };
@@ -1,7 +1,7 @@
1
- import { _ as __assign } from './tslib.es6-defbba9d.js';
1
+ import { _ as __assign } from './tslib.es6-a3fbf5e6.js';
2
2
  import React, { useState, useRef, useMemo, useCallback, useEffect } from 'react';
3
3
  import cn from 'classnames';
4
- import { Legend, CartesianGrid, XAxis, YAxis, Brush, Tooltip, Area, Line, Bar, Cell, ResponsiveContainer, ComposedChart } from 'recharts';
4
+ import { Legend, CartesianGrid, XAxis, YAxis, Brush, Tooltip, Area, Line, Bar, LabelList, Cell, ResponsiveContainer, ComposedChart } from 'recharts';
5
5
  import { LinearGradient } from './components/LinearGradient.js';
6
6
  import '../../typography/esm';
7
7
  import './icons/Circle.js';
@@ -17,6 +17,10 @@ import './hooks/useSettings/utils/setGradientCharts.js';
17
17
  import './hooks/useSettings/utils/setLegendMargin.js';
18
18
  import './hooks/useSettings/utils/sortByIndex.js';
19
19
  import { useSettings } from './hooks/useSettings/index.js';
20
+ import './hooks/usePathBar/utils/getRadius.js';
21
+ import './hooks/usePathBar/index.js';
22
+ import { CustomizedLabel } from './components/CustomizedLabel.js';
23
+ import RectBar$1 from './components/RectBar.js';
20
24
  import { Tick } from './components/Tick/index.js';
21
25
  import { TooltipContent } from './components/TooltipContent/index.js';
22
26
 
@@ -27,7 +31,7 @@ var CustomizedHOC = function (Component, options) {
27
31
  return NewComponent;
28
32
  };
29
33
 
30
- var styles = {"coreChart":"chart__coreChart_y5qhn","bar":"chart__bar_y5qhn","unfocused":"chart__unfocused_y5qhn"};
34
+ var styles = {"coreChart":"chart__coreChart_ftghw","bar":"chart__bar_ftghw","unfocused":"chart__unfocused_ftghw"};
31
35
  require('./index.css');
32
36
 
33
37
  var Chart = function (props) {
@@ -145,17 +149,19 @@ var Chart = function (props) {
145
149
  if (!state || !charts)
146
150
  return null;
147
151
  return state.series.map(function (item) {
148
- var chart = item.chart, properties = item.properties;
152
+ var chart = item.chart, properties = item.properties, radius = item.radius, labelList = item.labelList;
149
153
  var show = charts["" + properties.dataKey];
150
154
  switch (chart) {
151
155
  case 'bar':
152
- return show && !(item === null || item === void 0 ? void 0 : item.hide) ? (React.createElement(Bar, __assign({ key: state.id + "-" + properties.dataKey }, properties), data.map(function (_, index) {
153
- var key = state.id + "-" + properties.dataKey + "-" + index;
154
- return (React.createElement(Cell, { key: key, className: cn(styles.bar, typeof activeDotsState.active === 'number' &&
155
- activeDotsState.active !== index
156
- ? styles.unfocused
157
- : '') }));
158
- }))) : null;
156
+ return show && !(item === null || item === void 0 ? void 0 : item.hide) ? (React.createElement(Bar, __assign({ key: state.id + "-" + properties.dataKey }, properties, { shape: React.createElement(RectBar$1, { radius: radius }) }),
157
+ labelList && (React.createElement(LabelList, __assign({ dataKey: properties.dataKey.toString() }, labelList, { content: React.createElement(CustomizedLabel, { radius: radius }) }))),
158
+ data.map(function (_, index) {
159
+ var key = state.id + "-" + properties.dataKey + "-" + index;
160
+ return (React.createElement(Cell, { key: key, className: cn(styles.bar, typeof activeDotsState.active === 'number' &&
161
+ activeDotsState.active !== index
162
+ ? styles.unfocused
163
+ : '') }));
164
+ }))) : null;
159
165
  case 'area':
160
166
  case 'line':
161
167
  return show && !(item === null || item === void 0 ? void 0 : item.hide) ? (React.createElement(Line, __assign({ key: state.id + "-" + properties.dataKey }, properties, { dot: properties.dot && properties.dotSettings
@@ -238,11 +244,15 @@ var Chart = function (props) {
238
244
  }
239
245
  };
240
246
  var mouseMove = function (e) {
247
+ if (!(state === null || state === void 0 ? void 0 : state.tooltip))
248
+ return;
241
249
  arrowTooltipEvent(e.activeCoordinate);
242
250
  hoverEvent(e.isTooltipActive, e.activeTooltipIndex);
243
251
  leaveEvent(e.isTooltipActive);
244
252
  };
245
253
  var mouseLeave = function (e) {
254
+ if (!(state === null || state === void 0 ? void 0 : state.tooltip))
255
+ return;
246
256
  leaveEvent(e.isTooltipActive);
247
257
  };
248
258
  if (!data || !charts || !state)