@pibit.ai/cure-design-system 0.6.42 → 0.6.43

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 (333) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +6 -0
  2. package/dist/_virtual/index.js +4 -0
  3. package/dist/_virtual/index2.js +5 -0
  4. package/dist/_virtual/index3.js +7 -0
  5. package/dist/_virtual/index4.js +4 -0
  6. package/dist/_virtual/index5.js +4 -0
  7. package/dist/_virtual/react-is.development.js +4 -0
  8. package/dist/_virtual/react-is.production.min.js +4 -0
  9. package/dist/_virtual/use-sync-external-store-shim.development.js +4 -0
  10. package/dist/_virtual/use-sync-external-store-shim.production.js +4 -0
  11. package/dist/_virtual/use-sync-external-store-with-selector.development.js +4 -0
  12. package/dist/_virtual/use-sync-external-store-with-selector.production.js +4 -0
  13. package/dist/_virtual/with-selector.development.js +4 -0
  14. package/dist/_virtual/with-selector.js +5 -0
  15. package/dist/_virtual/with-selector.production.js +4 -0
  16. package/dist/_virtual/with-selector2.js +4 -0
  17. package/dist/_virtual/with-selector3.js +2 -0
  18. package/dist/_virtual/with-selector4.js +4 -0
  19. package/dist/index.d.ts +1 -0
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +127 -125
  22. package/dist/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js +846 -0
  23. package/dist/node_modules/d3-array/src/ascending.js +6 -0
  24. package/dist/node_modules/d3-array/src/bisect.js +9 -0
  25. package/dist/node_modules/d3-array/src/bisector.js +37 -0
  26. package/dist/node_modules/d3-array/src/descending.js +6 -0
  27. package/dist/node_modules/d3-array/src/max.js +9 -0
  28. package/dist/node_modules/d3-array/src/min.js +9 -0
  29. package/dist/node_modules/d3-array/src/number.js +11 -0
  30. package/dist/node_modules/d3-array/src/quantile.js +24 -0
  31. package/dist/node_modules/d3-array/src/quickselect.js +25 -0
  32. package/dist/node_modules/d3-array/src/range.js +9 -0
  33. package/dist/node_modules/d3-array/src/sort.js +16 -0
  34. package/dist/node_modules/d3-array/src/ticks.js +32 -0
  35. package/dist/node_modules/d3-color/src/color.js +305 -0
  36. package/dist/node_modules/d3-color/src/define.js +12 -0
  37. package/dist/node_modules/d3-format/src/defaultLocale.js +15 -0
  38. package/dist/node_modules/d3-format/src/exponent.js +7 -0
  39. package/dist/node_modules/d3-format/src/formatDecimal.js +15 -0
  40. package/dist/node_modules/d3-format/src/formatGroup.js +10 -0
  41. package/dist/node_modules/d3-format/src/formatNumerals.js +10 -0
  42. package/dist/node_modules/d3-format/src/formatPrefixAuto.js +12 -0
  43. package/dist/node_modules/d3-format/src/formatRounded.js +10 -0
  44. package/dist/node_modules/d3-format/src/formatSpecifier.js +28 -0
  45. package/dist/node_modules/d3-format/src/formatTrim.js +19 -0
  46. package/dist/node_modules/d3-format/src/formatTypes.js +21 -0
  47. package/dist/node_modules/d3-format/src/identity.js +6 -0
  48. package/dist/node_modules/d3-format/src/locale.js +68 -0
  49. package/dist/node_modules/d3-format/src/precisionFixed.js +7 -0
  50. package/dist/node_modules/d3-format/src/precisionPrefix.js +7 -0
  51. package/dist/node_modules/d3-format/src/precisionRound.js +7 -0
  52. package/dist/node_modules/d3-interpolate/src/array.js +13 -0
  53. package/dist/node_modules/d3-interpolate/src/color.js +24 -0
  54. package/dist/node_modules/d3-interpolate/src/constant.js +4 -0
  55. package/dist/node_modules/d3-interpolate/src/date.js +9 -0
  56. package/dist/node_modules/d3-interpolate/src/number.js +8 -0
  57. package/dist/node_modules/d3-interpolate/src/numberArray.js +15 -0
  58. package/dist/node_modules/d3-interpolate/src/object.js +14 -0
  59. package/dist/node_modules/d3-interpolate/src/piecewise.js +12 -0
  60. package/dist/node_modules/d3-interpolate/src/rgb.js +15 -0
  61. package/dist/node_modules/d3-interpolate/src/round.js +8 -0
  62. package/dist/node_modules/d3-interpolate/src/string.js +24 -0
  63. package/dist/node_modules/d3-interpolate/src/value.js +16 -0
  64. package/dist/node_modules/d3-path/src/path.js +64 -0
  65. package/dist/node_modules/d3-scale/src/band.js +51 -0
  66. package/dist/node_modules/d3-scale/src/constant.js +8 -0
  67. package/dist/node_modules/d3-scale/src/continuous.js +75 -0
  68. package/dist/node_modules/d3-scale/src/diverging.js +68 -0
  69. package/dist/node_modules/d3-scale/src/identity.js +18 -0
  70. package/dist/node_modules/d3-scale/src/init.js +32 -0
  71. package/dist/node_modules/d3-scale/src/linear.js +39 -0
  72. package/dist/node_modules/d3-scale/src/log.js +86 -0
  73. package/dist/node_modules/d3-scale/src/nice.js +8 -0
  74. package/dist/node_modules/d3-scale/src/number.js +6 -0
  75. package/dist/node_modules/d3-scale/src/ordinal.js +31 -0
  76. package/dist/node_modules/d3-scale/src/pow.js +37 -0
  77. package/dist/node_modules/d3-scale/src/quantile.js +38 -0
  78. package/dist/node_modules/d3-scale/src/quantize.js +31 -0
  79. package/dist/node_modules/d3-scale/src/radial.js +37 -0
  80. package/dist/node_modules/d3-scale/src/sequential.js +70 -0
  81. package/dist/node_modules/d3-scale/src/sequentialQuantile.js +28 -0
  82. package/dist/node_modules/d3-scale/src/symlog.js +29 -0
  83. package/dist/node_modules/d3-scale/src/threshold.js +23 -0
  84. package/dist/node_modules/d3-scale/src/tickFormat.js +32 -0
  85. package/dist/node_modules/d3-scale/src/time.js +46 -0
  86. package/dist/node_modules/d3-scale/src/utcTime.js +17 -0
  87. package/dist/node_modules/d3-shape/src/area.js +56 -0
  88. package/dist/node_modules/d3-shape/src/array.js +6 -0
  89. package/dist/node_modules/d3-shape/src/constant.js +8 -0
  90. package/dist/node_modules/d3-shape/src/curve/basis.js +60 -0
  91. package/dist/node_modules/d3-shape/src/curve/basisClosed.js +51 -0
  92. package/dist/node_modules/d3-shape/src/curve/basisOpen.js +46 -0
  93. package/dist/node_modules/d3-shape/src/curve/bump.js +43 -0
  94. package/dist/node_modules/d3-shape/src/curve/linear.js +36 -0
  95. package/dist/node_modules/d3-shape/src/curve/linearClosed.js +23 -0
  96. package/dist/node_modules/d3-shape/src/curve/monotone.js +93 -0
  97. package/dist/node_modules/d3-shape/src/curve/natural.js +41 -0
  98. package/dist/node_modules/d3-shape/src/curve/step.js +51 -0
  99. package/dist/node_modules/d3-shape/src/line.js +29 -0
  100. package/dist/node_modules/d3-shape/src/noop.js +5 -0
  101. package/dist/node_modules/d3-shape/src/offset/expand.js +13 -0
  102. package/dist/node_modules/d3-shape/src/offset/none.js +9 -0
  103. package/dist/node_modules/d3-shape/src/offset/silhouette.js +13 -0
  104. package/dist/node_modules/d3-shape/src/offset/wiggle.js +19 -0
  105. package/dist/node_modules/d3-shape/src/order/none.js +7 -0
  106. package/dist/node_modules/d3-shape/src/path.js +18 -0
  107. package/dist/node_modules/d3-shape/src/point.js +10 -0
  108. package/dist/node_modules/d3-shape/src/stack.js +35 -0
  109. package/dist/node_modules/d3-time/src/day.js +26 -0
  110. package/dist/node_modules/d3-time/src/duration.js +10 -0
  111. package/dist/node_modules/d3-time/src/hour.js +18 -0
  112. package/dist/node_modules/d3-time/src/interval.js +31 -0
  113. package/dist/node_modules/d3-time/src/millisecond.js +14 -0
  114. package/dist/node_modules/d3-time/src/minute.js +18 -0
  115. package/dist/node_modules/d3-time/src/month.js +17 -0
  116. package/dist/node_modules/d3-time/src/second.js +11 -0
  117. package/dist/node_modules/d3-time/src/ticks.js +54 -0
  118. package/dist/node_modules/d3-time/src/week.js +48 -0
  119. package/dist/node_modules/d3-time/src/year.js +27 -0
  120. package/dist/node_modules/d3-time-format/src/defaultLocale.js +20 -0
  121. package/dist/node_modules/d3-time-format/src/locale.js +478 -0
  122. package/dist/node_modules/decimal.js-light/decimal.js +472 -0
  123. package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +6 -0
  124. package/dist/node_modules/es-toolkit/dist/array/flatten.js +12 -0
  125. package/dist/node_modules/es-toolkit/dist/compat/_internal/baseToString.js +16 -0
  126. package/dist/node_modules/es-toolkit/dist/compat/_internal/compareValues.js +17 -0
  127. package/dist/node_modules/es-toolkit/dist/compat/_internal/hasOwn.js +7 -0
  128. package/dist/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.js +15 -0
  129. package/dist/node_modules/es-toolkit/dist/compat/_internal/isIndex.js +14 -0
  130. package/dist/node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.js +10 -0
  131. package/dist/node_modules/es-toolkit/dist/compat/_internal/isKey.js +8 -0
  132. package/dist/node_modules/es-toolkit/dist/compat/_internal/objectValues.js +8 -0
  133. package/dist/node_modules/es-toolkit/dist/compat/_internal/toKey.js +7 -0
  134. package/dist/node_modules/es-toolkit/dist/compat/array/orderBy.js +35 -0
  135. package/dist/node_modules/es-toolkit/dist/compat/array/sortBy.js +10 -0
  136. package/dist/node_modules/es-toolkit/dist/compat/function/debounce.js +16 -0
  137. package/dist/node_modules/es-toolkit/dist/compat/function/throttle.js +12 -0
  138. package/dist/node_modules/es-toolkit/dist/compat/math/range.js +12 -0
  139. package/dist/node_modules/es-toolkit/dist/compat/object/get.js +39 -0
  140. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js +7 -0
  141. package/dist/node_modules/es-toolkit/dist/compat/predicate/isObject.js +6 -0
  142. package/dist/node_modules/es-toolkit/dist/compat/predicate/isSymbol.js +6 -0
  143. package/dist/node_modules/es-toolkit/dist/compat/util/eq.js +6 -0
  144. package/dist/node_modules/es-toolkit/dist/compat/util/toFinite.js +7 -0
  145. package/dist/node_modules/es-toolkit/dist/compat/util/toNumber.js +7 -0
  146. package/dist/node_modules/es-toolkit/dist/compat/util/toPath.js +38 -0
  147. package/dist/node_modules/es-toolkit/dist/compat/util/toString.js +7 -0
  148. package/dist/node_modules/es-toolkit/dist/function/debounce.js +29 -0
  149. package/dist/node_modules/es-toolkit/dist/predicate/isLength.js +6 -0
  150. package/dist/node_modules/eventemitter3/index.js +5 -0
  151. package/dist/node_modules/eventemitter3/index2.js +111 -0
  152. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +5 -5
  153. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +9 -9
  154. package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +3 -3
  155. package/dist/node_modules/immer/dist/immer.js +575 -0
  156. package/dist/node_modules/internmap/src/index.js +35 -0
  157. package/dist/node_modules/react-is/cjs/react-is.development.js +98 -0
  158. package/dist/node_modules/react-is/cjs/react-is.production.min.js +81 -0
  159. package/dist/node_modules/react-is/index.js +10 -0
  160. package/dist/node_modules/react-redux/dist/react-redux.js +137 -0
  161. package/dist/node_modules/recharts/es6/animation/AnimatedItems.js +78 -0
  162. package/dist/node_modules/recharts/es6/animation/AnimationControllerImpl.js +21 -0
  163. package/dist/node_modules/recharts/es6/animation/AnimationHandle.js +179 -0
  164. package/dist/node_modules/recharts/es6/animation/JavascriptAnimate.js +84 -0
  165. package/dist/node_modules/recharts/es6/animation/easing.js +89 -0
  166. package/dist/node_modules/recharts/es6/animation/matchBy.js +105 -0
  167. package/dist/node_modules/recharts/es6/animation/timeoutController.js +13 -0
  168. package/dist/node_modules/recharts/es6/animation/useAnimationController.js +11 -0
  169. package/dist/node_modules/recharts/es6/animation/useAnimationStartSnapshot.js +20 -0
  170. package/dist/node_modules/recharts/es6/cartesian/cartesianViewBoxToTrapezoid.js +14 -0
  171. package/dist/node_modules/recharts/es6/cartesian/getCartesianPosition.js +141 -0
  172. package/dist/node_modules/recharts/es6/chart/CategoricalChart.js +62 -0
  173. package/dist/node_modules/recharts/es6/chart/PieChart.js +62 -0
  174. package/dist/node_modules/recharts/es6/chart/PolarChart.js +144 -0
  175. package/dist/node_modules/recharts/es6/chart/RechartsWrapper.js +297 -0
  176. package/dist/node_modules/recharts/es6/component/Cell.js +5 -0
  177. package/dist/node_modules/recharts/es6/component/Label.js +262 -0
  178. package/dist/node_modules/recharts/es6/component/LabelList.js +101 -0
  179. package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +219 -0
  180. package/dist/node_modules/recharts/es6/component/Text.js +240 -0
  181. package/dist/node_modules/recharts/es6/component/responsiveContainerUtils.js +43 -0
  182. package/dist/node_modules/recharts/es6/container/ClipPathProvider.js +63 -0
  183. package/dist/node_modules/recharts/es6/container/Layer.js +42 -0
  184. package/dist/node_modules/recharts/es6/container/RootSurface.js +90 -0
  185. package/dist/node_modules/recharts/es6/container/Surface.js +51 -0
  186. package/dist/node_modules/recharts/es6/context/PanoramaContext.js +5 -0
  187. package/dist/node_modules/recharts/es6/context/RegisterGraphicalItemId.js +12 -0
  188. package/dist/node_modules/recharts/es6/context/accessibilityContext.js +8 -0
  189. package/dist/node_modules/recharts/es6/context/chartDataContext.js +14 -0
  190. package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +44 -0
  191. package/dist/node_modules/recharts/es6/context/legendPortalContext.js +5 -0
  192. package/dist/node_modules/recharts/es6/context/tooltipContext.js +33 -0
  193. package/dist/node_modules/recharts/es6/context/tooltipPortalContext.js +5 -0
  194. package/dist/node_modules/recharts/es6/hooks.js +6 -0
  195. package/dist/node_modules/recharts/es6/polar/Pie.js +486 -0
  196. package/dist/node_modules/recharts/es6/polar/defaultPolarAngleAxisProps.js +13 -0
  197. package/dist/node_modules/recharts/es6/polar/defaultPolarRadiusAxisProps.js +15 -0
  198. package/dist/node_modules/recharts/es6/shape/Curve.js +128 -0
  199. package/dist/node_modules/recharts/es6/shape/Sector.js +151 -0
  200. package/dist/node_modules/recharts/es6/state/RechartsReduxContext.js +5 -0
  201. package/dist/node_modules/recharts/es6/state/RechartsStoreProvider.js +20 -0
  202. package/dist/node_modules/recharts/es6/state/ReportChartProps.js +12 -0
  203. package/dist/node_modules/recharts/es6/state/ReportEventSettings.js +13 -0
  204. package/dist/node_modules/recharts/es6/state/ReportMainChartProps.js +15 -0
  205. package/dist/node_modules/recharts/es6/state/ReportPolarOptions.js +12 -0
  206. package/dist/node_modules/recharts/es6/state/SetGraphicalItem.js +17 -0
  207. package/dist/node_modules/recharts/es6/state/SetLegendPayload.js +18 -0
  208. package/dist/node_modules/recharts/es6/state/SetTooltipEntrySettings.js +18 -0
  209. package/dist/node_modules/recharts/es6/state/brushSlice.js +27 -0
  210. package/dist/node_modules/recharts/es6/state/cartesianAxisSlice.js +148 -0
  211. package/dist/node_modules/recharts/es6/state/chartDataSlice.js +35 -0
  212. package/dist/node_modules/recharts/es6/state/errorBarSlice.js +26 -0
  213. package/dist/node_modules/recharts/es6/state/eventSettingsSlice.js +19 -0
  214. package/dist/node_modules/recharts/es6/state/externalEventsMiddleware.js +58 -0
  215. package/dist/node_modules/recharts/es6/state/graphicalItemsSlice.js +61 -0
  216. package/dist/node_modules/recharts/es6/state/hooks.js +19 -0
  217. package/dist/node_modules/recharts/es6/state/keyboardEventsMiddleware.js +119 -0
  218. package/dist/node_modules/recharts/es6/state/layoutSlice.js +38 -0
  219. package/dist/node_modules/recharts/es6/state/legendSlice.js +57 -0
  220. package/dist/node_modules/recharts/es6/state/mouseEventsMiddleware.js +52 -0
  221. package/dist/node_modules/recharts/es6/state/optionsSlice.js +28 -0
  222. package/dist/node_modules/recharts/es6/state/polarAxisSlice.js +31 -0
  223. package/dist/node_modules/recharts/es6/state/polarOptionsSlice.js +12 -0
  224. package/dist/node_modules/recharts/es6/state/reduxDevtoolsJsonStringifyReplacer.js +6 -0
  225. package/dist/node_modules/recharts/es6/state/referenceElementsSlice.js +44 -0
  226. package/dist/node_modules/recharts/es6/state/renderedTicksSlice.js +26 -0
  227. package/dist/node_modules/recharts/es6/state/rootPropsSlice.js +28 -0
  228. package/dist/node_modules/recharts/es6/state/selectors/arrayEqualityCheck.js +16 -0
  229. package/dist/node_modules/recharts/es6/state/selectors/axisSelectors.js +925 -0
  230. package/dist/node_modules/recharts/es6/state/selectors/brushSelectors.js +14 -0
  231. package/dist/node_modules/recharts/es6/state/selectors/combiners/combineActiveLabel.js +9 -0
  232. package/dist/node_modules/recharts/es6/state/selectors/combiners/combineActiveTooltipIndex.js +41 -0
  233. package/dist/node_modules/recharts/es6/state/selectors/combiners/combineAxisRangeWithReverse.js +7 -0
  234. package/dist/node_modules/recharts/es6/state/selectors/combiners/combineCheckedDomain.js +22 -0
  235. package/dist/node_modules/recharts/es6/state/selectors/combiners/combineConfiguredScale.js +27 -0
  236. package/dist/node_modules/recharts/es6/state/selectors/combiners/combineCoordinateForDefaultIndex.js +24 -0
  237. package/dist/node_modules/recharts/es6/state/selectors/combiners/combineDisplayedStackedData.js +20 -0
  238. package/dist/node_modules/recharts/es6/state/selectors/combiners/combineInverseScaleFunction.js +8 -0
  239. package/dist/node_modules/recharts/es6/state/selectors/combiners/combineRealScaleType.js +20 -0
  240. package/dist/node_modules/recharts/es6/state/selectors/combiners/combineTooltipInteractionState.js +78 -0
  241. package/dist/node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayload.js +137 -0
  242. package/dist/node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayloadConfigurations.js +20 -0
  243. package/dist/node_modules/recharts/es6/state/selectors/containerSelectors.js +7 -0
  244. package/dist/node_modules/recharts/es6/state/selectors/dataSelectors.js +27 -0
  245. package/dist/node_modules/recharts/es6/state/selectors/legendSelectors.js +11 -0
  246. package/dist/node_modules/recharts/es6/state/selectors/numberDomainEqualityCheck.js +4 -0
  247. package/dist/node_modules/recharts/es6/state/selectors/pickAxisId.js +4 -0
  248. package/dist/node_modules/recharts/es6/state/selectors/pickAxisType.js +4 -0
  249. package/dist/node_modules/recharts/es6/state/selectors/pieSelectors.js +78 -0
  250. package/dist/node_modules/recharts/es6/state/selectors/polarAxisSelectors.js +147 -0
  251. package/dist/node_modules/recharts/es6/state/selectors/polarSelectors.js +36 -0
  252. package/dist/node_modules/recharts/es6/state/selectors/rootPropsSelectors.js +10 -0
  253. package/dist/node_modules/recharts/es6/state/selectors/selectActivePropsFromChartPointer.js +11 -0
  254. package/dist/node_modules/recharts/es6/state/selectors/selectAllAxes.js +6 -0
  255. package/dist/node_modules/recharts/es6/state/selectors/selectChartOffset.js +11 -0
  256. package/dist/node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js +123 -0
  257. package/dist/node_modules/recharts/es6/state/selectors/selectPlotArea.js +15 -0
  258. package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxisId.js +4 -0
  259. package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxisType.js +8 -0
  260. package/dist/node_modules/recharts/es6/state/selectors/selectTooltipEventType.js +17 -0
  261. package/dist/node_modules/recharts/es6/state/selectors/selectTooltipPayloadSearcher.js +4 -0
  262. package/dist/node_modules/recharts/es6/state/selectors/selectTooltipSettings.js +4 -0
  263. package/dist/node_modules/recharts/es6/state/selectors/selectTooltipState.js +4 -0
  264. package/dist/node_modules/recharts/es6/state/selectors/selectors.js +62 -0
  265. package/dist/node_modules/recharts/es6/state/selectors/tooltipSelectors.js +107 -0
  266. package/dist/node_modules/recharts/es6/state/selectors/touchSelectors.js +15 -0
  267. package/dist/node_modules/recharts/es6/state/store.js +79 -0
  268. package/dist/node_modules/recharts/es6/state/tooltipSlice.js +106 -0
  269. package/dist/node_modules/recharts/es6/state/touchEventsMiddleware.js +72 -0
  270. package/dist/node_modules/recharts/es6/state/types/StackedGraphicalItem.js +6 -0
  271. package/dist/node_modules/recharts/es6/state/zIndexSlice.js +102 -0
  272. package/dist/node_modules/recharts/es6/synchronisation/useChartSynchronisation.js +183 -0
  273. package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js +71 -0
  274. package/dist/node_modules/recharts/es6/util/ChartUtils.js +185 -0
  275. package/dist/node_modules/recharts/es6/util/Constants.js +7 -0
  276. package/dist/node_modules/recharts/es6/util/DOMUtils.js +89 -0
  277. package/dist/node_modules/recharts/es6/util/DataUtils.js +57 -0
  278. package/dist/node_modules/recharts/es6/util/Events.js +7 -0
  279. package/dist/node_modules/recharts/es6/util/Global.js +6 -0
  280. package/dist/node_modules/recharts/es6/util/LRUCache.js +44 -0
  281. package/dist/node_modules/recharts/es6/util/LogUtils.js +14 -0
  282. package/dist/node_modules/recharts/es6/util/PolarUtils.js +113 -0
  283. package/dist/node_modules/recharts/es6/util/ReactUtils.js +24 -0
  284. package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js +151 -0
  285. package/dist/node_modules/recharts/es6/util/createEventProxy.js +15 -0
  286. package/dist/node_modules/recharts/es6/util/excludeEventProps.js +10 -0
  287. package/dist/node_modules/recharts/es6/util/getActiveCoordinate.js +141 -0
  288. package/dist/node_modules/recharts/es6/util/getAxisTypeBasedOnLayout.js +10 -0
  289. package/dist/node_modules/recharts/es6/util/getClassNameFromUnknown.js +6 -0
  290. package/dist/node_modules/recharts/es6/util/getRelativeCoordinate.js +31 -0
  291. package/dist/node_modules/recharts/es6/util/getSliced.js +6 -0
  292. package/dist/node_modules/recharts/es6/util/isDomainSpecifiedByUser.js +131 -0
  293. package/dist/node_modules/recharts/es6/util/isWellBehavedNumber.js +10 -0
  294. package/dist/node_modules/recharts/es6/util/propsAreEqual.js +43 -0
  295. package/dist/node_modules/recharts/es6/util/resolveDefaultProps.js +45 -0
  296. package/dist/node_modules/recharts/es6/util/round.js +17 -0
  297. package/dist/node_modules/recharts/es6/util/scale/RechartsScale.js +44 -0
  298. package/dist/node_modules/recharts/es6/util/scale/createCategoricalInverse.js +29 -0
  299. package/dist/node_modules/recharts/es6/util/scale/getNiceTickValues.js +119 -0
  300. package/dist/node_modules/recharts/es6/util/scale/util/arithmetic.js +14 -0
  301. package/dist/node_modules/recharts/es6/util/stacks/getStackSeriesIdentifier.js +6 -0
  302. package/dist/node_modules/recharts/es6/util/svgPropertiesAndEvents.js +12 -0
  303. package/dist/node_modules/recharts/es6/util/svgPropertiesNoEvents.js +340 -0
  304. package/dist/node_modules/recharts/es6/util/types.js +25 -0
  305. package/dist/node_modules/recharts/es6/util/useAnimationId.js +9 -0
  306. package/dist/node_modules/recharts/es6/util/useId.js +51 -0
  307. package/dist/node_modules/recharts/es6/util/usePrefersReducedMotion.js +58 -0
  308. package/dist/node_modules/recharts/es6/util/useReportScale.js +57 -0
  309. package/dist/node_modules/recharts/es6/util/useUniqueId.js +8 -0
  310. package/dist/node_modules/recharts/es6/zIndex/DefaultZIndexes.js +70 -0
  311. package/dist/node_modules/recharts/es6/zIndex/ZIndexLayer.js +47 -0
  312. package/dist/node_modules/recharts/es6/zIndex/ZIndexPortal.js +40 -0
  313. package/dist/node_modules/recharts/es6/zIndex/zIndexSelectors.js +21 -0
  314. package/dist/node_modules/redux/dist/redux.js +258 -0
  315. package/dist/node_modules/redux-thunk/dist/redux-thunk.js +8 -0
  316. package/dist/node_modules/reselect/dist/reselect.js +226 -0
  317. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +67 -0
  318. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +66 -0
  319. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +67 -0
  320. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +55 -0
  321. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +66 -0
  322. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +65 -0
  323. package/dist/node_modules/use-sync-external-store/shim/index.js +10 -0
  324. package/dist/node_modules/use-sync-external-store/shim/with-selector.js +10 -0
  325. package/dist/node_modules/use-sync-external-store/with-selector.js +10 -0
  326. package/dist/node_modules/victory-vendor/es/d3-scale.js +47 -0
  327. package/dist/primitives/donut-chart/donut-chart.d.ts +32 -0
  328. package/dist/primitives/donut-chart/donut-chart.d.ts.map +1 -0
  329. package/dist/primitives/donut-chart/donut-chart.js +111 -0
  330. package/dist/primitives/donut-chart/index.d.ts +2 -0
  331. package/dist/primitives/donut-chart/index.d.ts.map +1 -0
  332. package/dist/styles/components.css +1 -1
  333. package/package.json +2 -1
@@ -0,0 +1,151 @@
1
+ import { isNan as E } from "./DataUtils.js";
2
+ var S;
3
+ function m(r, t) {
4
+ return Z(r) || z(r, t) || G(r, t) || X();
5
+ }
6
+ function X() {
7
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
8
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
9
+ }
10
+ function G(r, t) {
11
+ if (r) {
12
+ if (typeof r == "string") return x(r, t);
13
+ var n = {}.toString.call(r).slice(8, -1);
14
+ return n === "Object" && r.constructor && (n = r.constructor.name), n === "Map" || n === "Set" ? Array.from(r) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? x(r, t) : void 0;
15
+ }
16
+ }
17
+ function x(r, t) {
18
+ (t == null || t > r.length) && (t = r.length);
19
+ for (var n = 0, e = Array(t); n < t; n++) e[n] = r[n];
20
+ return e;
21
+ }
22
+ function z(r, t) {
23
+ var n = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
24
+ if (n != null) {
25
+ var e, u, a, o, l = [], s = !0, v = !1;
26
+ try {
27
+ if (a = (n = n.call(r)).next, t === 0) {
28
+ if (Object(n) !== n) return;
29
+ s = !1;
30
+ } else for (; !(s = (e = a.call(n)).done) && (l.push(e.value), l.length !== t); s = !0) ;
31
+ } catch (f) {
32
+ v = !0, u = f;
33
+ } finally {
34
+ try {
35
+ if (!s && n.return != null && (o = n.return(), Object(o) !== o)) return;
36
+ } finally {
37
+ if (v) throw u;
38
+ }
39
+ }
40
+ return l;
41
+ }
42
+ }
43
+ function Z(r) {
44
+ if (Array.isArray(r)) return r;
45
+ }
46
+ function H(r, t, n) {
47
+ return (t = L(t)) in r ? Object.defineProperty(r, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = n, r;
48
+ }
49
+ function L(r) {
50
+ var t = R(r, "string");
51
+ return typeof t == "symbol" ? t : t + "";
52
+ }
53
+ function R(r, t) {
54
+ if (typeof r != "object" || !r) return r;
55
+ var n = r[Symbol.toPrimitive];
56
+ if (n !== void 0) {
57
+ var e = n.call(r, t);
58
+ if (typeof e != "object") return e;
59
+ throw new TypeError("@@toPrimitive must return a primitive value.");
60
+ }
61
+ return (t === "string" ? String : Number)(r);
62
+ }
63
+ var A = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, g = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, U = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, Q = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, $ = {
64
+ cm: 96 / 2.54,
65
+ mm: 96 / 25.4,
66
+ pt: 96 / 72,
67
+ pc: 96 / 6,
68
+ in: 96,
69
+ Q: 96 / (2.54 * 40),
70
+ px: 1
71
+ }, F = ["cm", "mm", "pt", "pc", "in", "Q", "px"];
72
+ function M(r) {
73
+ return F.includes(r);
74
+ }
75
+ var c = "NaN";
76
+ function k(r, t) {
77
+ return r * $[t];
78
+ }
79
+ class i {
80
+ static parse(t) {
81
+ var n, e = (n = Q.exec(t)) !== null && n !== void 0 ? n : [], u = m(e, 3), a = u[1], o = u[2];
82
+ return a == null ? i.NaN : new i(parseFloat(a), o ?? "");
83
+ }
84
+ constructor(t, n) {
85
+ this.num = t, this.unit = n, this.num = t, this.unit = n, E(t) && (this.unit = ""), n !== "" && !U.test(n) && (this.num = NaN, this.unit = ""), M(n) && (this.num = k(t, n), this.unit = "px");
86
+ }
87
+ add(t) {
88
+ return this.unit !== t.unit ? new i(NaN, "") : new i(this.num + t.num, this.unit);
89
+ }
90
+ subtract(t) {
91
+ return this.unit !== t.unit ? new i(NaN, "") : new i(this.num - t.num, this.unit);
92
+ }
93
+ multiply(t) {
94
+ return this.unit !== "" && t.unit !== "" && this.unit !== t.unit ? new i(NaN, "") : new i(this.num * t.num, this.unit || t.unit);
95
+ }
96
+ divide(t) {
97
+ return this.unit !== "" && t.unit !== "" && this.unit !== t.unit ? new i(NaN, "") : new i(this.num / t.num, this.unit || t.unit);
98
+ }
99
+ toString() {
100
+ return "".concat(this.num).concat(this.unit);
101
+ }
102
+ isNaN() {
103
+ return E(this.num);
104
+ }
105
+ }
106
+ S = i;
107
+ H(i, "NaN", new S(NaN, ""));
108
+ function T(r) {
109
+ if (r == null || r.includes(c))
110
+ return c;
111
+ for (var t = r; t.includes("*") || t.includes("/"); ) {
112
+ var n, e = (n = A.exec(t)) !== null && n !== void 0 ? n : [], u = m(e, 4), a = u[1], o = u[2], l = u[3], s = i.parse(a ?? ""), v = i.parse(l ?? ""), f = o === "*" ? s.multiply(v) : s.divide(v);
113
+ if (f.isNaN())
114
+ return c;
115
+ t = t.replace(A, f.toString());
116
+ }
117
+ for (; t.includes("+") || /.-\d+(?:\.\d+)?/.test(t); ) {
118
+ var d, I = (d = g.exec(t)) !== null && d !== void 0 ? d : [], p = m(I, 4), N = p[1], j = p[2], y = p[3], h = i.parse(N ?? ""), b = i.parse(y ?? ""), w = j === "+" ? h.add(b) : h.subtract(b);
119
+ if (w.isNaN())
120
+ return c;
121
+ t = t.replace(g, w.toString());
122
+ }
123
+ return t;
124
+ }
125
+ var P = /\(([^()]*)\)/;
126
+ function K(r) {
127
+ for (var t = r, n; (n = P.exec(t)) != null; ) {
128
+ var e = n, u = m(e, 2), a = u[1];
129
+ t = t.replace(P, T(a));
130
+ }
131
+ return t;
132
+ }
133
+ function W(r) {
134
+ var t = r.replace(/\s+/g, "");
135
+ return t = K(t), t = T(t), t;
136
+ }
137
+ function q(r) {
138
+ try {
139
+ return W(r);
140
+ } catch {
141
+ return c;
142
+ }
143
+ }
144
+ function V(r) {
145
+ var t = q(r.slice(5, -1));
146
+ return t === c ? "" : t;
147
+ }
148
+ export {
149
+ V as reduceCSSCalc,
150
+ q as safeEvaluateExpression
151
+ };
@@ -0,0 +1,15 @@
1
+ function f(r) {
2
+ r.persist();
3
+ var u = r.currentTarget;
4
+ return new Proxy(r, {
5
+ get: (t, n) => {
6
+ if (n === "currentTarget")
7
+ return u;
8
+ var e = Reflect.get(t, n);
9
+ return typeof e == "function" ? e.bind(t) : e;
10
+ }
11
+ });
12
+ }
13
+ export {
14
+ f as createEventProxy
15
+ };
@@ -0,0 +1,10 @@
1
+ var e = ["dangerouslySetInnerHTML", "onCopy", "onCopyCapture", "onCut", "onCutCapture", "onPaste", "onPasteCapture", "onCompositionEnd", "onCompositionEndCapture", "onCompositionStart", "onCompositionStartCapture", "onCompositionUpdate", "onCompositionUpdateCapture", "onFocus", "onFocusCapture", "onBlur", "onBlurCapture", "onChange", "onChangeCapture", "onBeforeInput", "onBeforeInputCapture", "onInput", "onInputCapture", "onReset", "onResetCapture", "onSubmit", "onSubmitCapture", "onInvalid", "onInvalidCapture", "onLoad", "onLoadCapture", "onError", "onErrorCapture", "onKeyDown", "onKeyDownCapture", "onKeyPress", "onKeyPressCapture", "onKeyUp", "onKeyUpCapture", "onAbort", "onAbortCapture", "onCanPlay", "onCanPlayCapture", "onCanPlayThrough", "onCanPlayThroughCapture", "onDurationChange", "onDurationChangeCapture", "onEmptied", "onEmptiedCapture", "onEncrypted", "onEncryptedCapture", "onEnded", "onEndedCapture", "onLoadedData", "onLoadedDataCapture", "onLoadedMetadata", "onLoadedMetadataCapture", "onLoadStart", "onLoadStartCapture", "onPause", "onPauseCapture", "onPlay", "onPlayCapture", "onPlaying", "onPlayingCapture", "onProgress", "onProgressCapture", "onRateChange", "onRateChangeCapture", "onSeeked", "onSeekedCapture", "onSeeking", "onSeekingCapture", "onStalled", "onStalledCapture", "onSuspend", "onSuspendCapture", "onTimeUpdate", "onTimeUpdateCapture", "onVolumeChange", "onVolumeChangeCapture", "onWaiting", "onWaitingCapture", "onAuxClick", "onAuxClickCapture", "onClick", "onClickCapture", "onContextMenu", "onContextMenuCapture", "onDoubleClick", "onDoubleClickCapture", "onDrag", "onDragCapture", "onDragEnd", "onDragEndCapture", "onDragEnter", "onDragEnterCapture", "onDragExit", "onDragExitCapture", "onDragLeave", "onDragLeaveCapture", "onDragOver", "onDragOverCapture", "onDragStart", "onDragStartCapture", "onDrop", "onDropCapture", "onMouseDown", "onMouseDownCapture", "onMouseEnter", "onMouseLeave", "onMouseMove", "onMouseMoveCapture", "onMouseOut", "onMouseOutCapture", "onMouseOver", "onMouseOverCapture", "onMouseUp", "onMouseUpCapture", "onSelect", "onSelectCapture", "onTouchCancel", "onTouchCancelCapture", "onTouchEnd", "onTouchEndCapture", "onTouchMove", "onTouchMoveCapture", "onTouchStart", "onTouchStartCapture", "onPointerDown", "onPointerDownCapture", "onPointerMove", "onPointerMoveCapture", "onPointerUp", "onPointerUpCapture", "onPointerCancel", "onPointerCancelCapture", "onPointerEnter", "onPointerEnterCapture", "onPointerLeave", "onPointerLeaveCapture", "onPointerOver", "onPointerOverCapture", "onPointerOut", "onPointerOutCapture", "onGotPointerCapture", "onGotPointerCaptureCapture", "onLostPointerCapture", "onLostPointerCaptureCapture", "onScroll", "onScrollCapture", "onWheel", "onWheelCapture", "onAnimationStart", "onAnimationStartCapture", "onAnimationEnd", "onAnimationEndCapture", "onAnimationIteration", "onAnimationIterationCapture", "onTransitionEnd", "onTransitionEndCapture"];
2
+ function t(o) {
3
+ if (typeof o != "string")
4
+ return !1;
5
+ var n = e;
6
+ return n.includes(o);
7
+ }
8
+ export {
9
+ t as isEventKey
10
+ };
@@ -0,0 +1,141 @@
1
+ import { polarToCartesian as D } from "./PolarUtils.js";
2
+ import { mathSign as M } from "./DataUtils.js";
3
+ function N(t, e) {
4
+ var l = Object.keys(t);
5
+ if (Object.getOwnPropertySymbols) {
6
+ var n = Object.getOwnPropertySymbols(t);
7
+ e && (n = n.filter(function(r) {
8
+ return Object.getOwnPropertyDescriptor(t, r).enumerable;
9
+ })), l.push.apply(l, n);
10
+ }
11
+ return l;
12
+ }
13
+ function f(t) {
14
+ for (var e = 1; e < arguments.length; e++) {
15
+ var l = arguments[e] != null ? arguments[e] : {};
16
+ e % 2 ? N(Object(l), !0).forEach(function(n) {
17
+ G(t, n, l[n]);
18
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(l)) : N(Object(l)).forEach(function(n) {
19
+ Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(l, n));
20
+ });
21
+ }
22
+ return t;
23
+ }
24
+ function G(t, e, l) {
25
+ return (e = H(e)) in t ? Object.defineProperty(t, e, { value: l, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = l, t;
26
+ }
27
+ function H(t) {
28
+ var e = J(t, "string");
29
+ return typeof e == "symbol" ? e : e + "";
30
+ }
31
+ function J(t, e) {
32
+ if (typeof t != "object" || !t) return t;
33
+ var l = t[Symbol.toPrimitive];
34
+ if (l !== void 0) {
35
+ var n = l.call(t, e);
36
+ if (typeof n != "object") return n;
37
+ throw new TypeError("@@toPrimitive must return a primitive value.");
38
+ }
39
+ return (e === "string" ? String : Number)(t);
40
+ }
41
+ var V = (t, e, l, n) => {
42
+ var r = e.find((o) => o && o.index === l);
43
+ if (r) {
44
+ if (t === "horizontal")
45
+ return {
46
+ x: r.coordinate,
47
+ y: n.relativeY
48
+ };
49
+ if (t === "vertical")
50
+ return {
51
+ x: n.relativeX,
52
+ y: r.coordinate
53
+ };
54
+ }
55
+ return {
56
+ x: 0,
57
+ y: 0
58
+ };
59
+ }, Z = (t, e, l, n) => {
60
+ var r = e.find((v) => v && v.index === l);
61
+ if (r) {
62
+ if (t === "centric") {
63
+ var o = r.coordinate, i = n.radius;
64
+ return f(f(f({}, n), D(n.cx, n.cy, i, o)), {}, {
65
+ angle: o,
66
+ radius: i
67
+ });
68
+ }
69
+ var x = r.coordinate, h = n.angle;
70
+ return f(f(f({}, n), D(n.cx, n.cy, x, h)), {}, {
71
+ angle: h,
72
+ radius: x
73
+ });
74
+ }
75
+ return {
76
+ angle: 0,
77
+ clockWise: !1,
78
+ cx: 0,
79
+ cy: 0,
80
+ endAngle: 0,
81
+ innerRadius: 0,
82
+ outerRadius: 0,
83
+ radius: 0,
84
+ startAngle: 0,
85
+ x: 0,
86
+ y: 0
87
+ };
88
+ };
89
+ function L(t, e) {
90
+ var l = t.relativeX, n = t.relativeY;
91
+ return l >= e.left && l <= e.left + e.width && n >= e.top && n <= e.top + e.height;
92
+ }
93
+ var R = (t, e, l, n, r) => {
94
+ var o, i = (o = e == null ? void 0 : e.length) !== null && o !== void 0 ? o : 0;
95
+ if (i <= 1 || t == null)
96
+ return 0;
97
+ if (n === "angleAxis" && r != null && Math.abs(Math.abs(r[1] - r[0]) - 360) <= 1e-6)
98
+ for (var x = r[1] - r[0], h = (z, B, F) => [t, t + x, t - x].some((K) => (F ? K >= z : K > z) && K <= B), v = 0; v < i; v++) {
99
+ var j, A, S, c, g, m = v > 0 ? (j = l[v - 1]) === null || j === void 0 ? void 0 : j.coordinate : (A = l[i - 1]) === null || A === void 0 ? void 0 : A.coordinate, a = (S = l[v]) === null || S === void 0 ? void 0 : S.coordinate, p = v >= i - 1 ? (c = l[0]) === null || c === void 0 ? void 0 : c.coordinate : (g = l[v + 1]) === null || g === void 0 ? void 0 : g.coordinate, P = void 0;
100
+ if (!(m == null || a == null || p == null))
101
+ if (M(a - m) !== M(p - a)) {
102
+ var d = [];
103
+ if (M(p - a) === M(r[1] - r[0])) {
104
+ P = p;
105
+ var b = a + r[1] - r[0];
106
+ d[0] = Math.min(b, (b + m) / 2), d[1] = Math.max(b, (b + m) / 2);
107
+ } else {
108
+ P = m;
109
+ var X = p + r[1] - r[0];
110
+ d[0] = Math.min(a, (X + a) / 2), d[1] = Math.max(a, (X + a) / 2);
111
+ }
112
+ var Y = [Math.min(a, (P + a) / 2), Math.max(a, (P + a) / 2)];
113
+ if (h(Y[0], Y[1], !1) || h(d[0], d[1], !0)) {
114
+ var E;
115
+ return (E = l[v]) === null || E === void 0 ? void 0 : E.index;
116
+ }
117
+ } else {
118
+ var W = Math.min(m, p), q = Math.max(m, p);
119
+ if (h((W + a) / 2, (q + a) / 2, !1)) {
120
+ var C;
121
+ return (C = l[v]) === null || C === void 0 ? void 0 : C.index;
122
+ }
123
+ }
124
+ }
125
+ else if (e)
126
+ for (var y = 0; y < i; y++) {
127
+ var u = e[y];
128
+ if (u != null) {
129
+ var O = e[y + 1], w = e[y - 1];
130
+ if (y === 0 && O != null && t <= (u.coordinate + O.coordinate) / 2 || y === i - 1 && w != null && t > (u.coordinate + w.coordinate) / 2 || y > 0 && y < i - 1 && w != null && O != null && t > (u.coordinate + w.coordinate) / 2 && t <= (u.coordinate + O.coordinate) / 2)
131
+ return u.index;
132
+ }
133
+ }
134
+ return -1;
135
+ };
136
+ export {
137
+ R as calculateActiveTickIndex,
138
+ V as getActiveCartesianCoordinate,
139
+ Z as getActivePolarCoordinate,
140
+ L as isInCartesianRange
141
+ };
@@ -0,0 +1,10 @@
1
+ import { isCategoricalAxis as n } from "./ChartUtils.js";
2
+ function i(r, t, e) {
3
+ if (e !== "auto")
4
+ return e;
5
+ if (r != null)
6
+ return n(r, t) ? "category" : "number";
7
+ }
8
+ export {
9
+ i as getAxisTypeBasedOnLayout
10
+ };
@@ -0,0 +1,6 @@
1
+ function n(e) {
2
+ return e && typeof e == "object" && "className" in e && typeof e.className == "string" ? e.className : "";
3
+ }
4
+ export {
5
+ n as getClassNameFromUnknown
6
+ };
@@ -0,0 +1,31 @@
1
+ function n(t) {
2
+ return "getBBox" in t.currentTarget && typeof t.currentTarget.getBBox == "function";
3
+ }
4
+ function f(t) {
5
+ var r = t.currentTarget.getBoundingClientRect(), g, h;
6
+ if (n(t)) {
7
+ var i = t.currentTarget.getBBox();
8
+ g = i.width > 0 ? r.width / i.width : 1, h = i.height > 0 ? r.height / i.height : 1;
9
+ } else {
10
+ var e = t.currentTarget;
11
+ g = e.offsetWidth > 0 ? r.width / e.offsetWidth : 1, h = e.offsetHeight > 0 ? r.height / e.offsetHeight : 1;
12
+ }
13
+ var o = (a, c) => ({
14
+ /*
15
+ * Here it's important to use:
16
+ * - event.clientX and event.clientY to get the mouse position relative to the viewport, including scroll.
17
+ * - pageX and pageY are not used because they are relative to the whole document, and ignore scroll.
18
+ * - rect.left and rect.top are used to get the position of the chart relative to the viewport.
19
+ * - offsetX and offsetY are not used because they are relative to the offset parent
20
+ * which may or may not be the same as the clientX and clientY, depending on the position of the chart in the DOM
21
+ * and surrounding element styles. CSS position: relative, absolute, fixed, will change the offset parent.
22
+ * - scaleX and scaleY are necessary for when the chart element is scaled using CSS `transform: scale(N)`.
23
+ */
24
+ relativeX: Math.round((a - r.left) / g),
25
+ relativeY: Math.round((c - r.top) / h)
26
+ });
27
+ return "touches" in t ? Array.from(t.touches).map((a) => o(a.clientX, a.clientY)) : o(t.clientX, t.clientY);
28
+ }
29
+ export {
30
+ f as getRelativeCoordinate
31
+ };
@@ -0,0 +1,6 @@
1
+ function u(i, e, t) {
2
+ return Array.isArray(i) && i && e + t !== 0 ? i.slice(e, t + 1) : i;
3
+ }
4
+ export {
5
+ u as getSliced
6
+ };
@@ -0,0 +1,131 @@
1
+ import { MIN_VALUE_REG as I, MAX_VALUE_REG as S } from "./ChartUtils.js";
2
+ import { isNumber as E } from "./DataUtils.js";
3
+ import { isWellBehavedNumber as i } from "./isWellBehavedNumber.js";
4
+ function g(r, e) {
5
+ return j(r) || W(r, e) || U(r, e) || R();
6
+ }
7
+ function R() {
8
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
9
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
10
+ }
11
+ function U(r, e) {
12
+ if (r) {
13
+ if (typeof r == "string") return N(r, e);
14
+ var t = {}.toString.call(r).slice(8, -1);
15
+ return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? N(r, e) : void 0;
16
+ }
17
+ }
18
+ function N(r, e) {
19
+ (e == null || e > r.length) && (e = r.length);
20
+ for (var t = 0, l = Array(e); t < e; t++) l[t] = r[t];
21
+ return l;
22
+ }
23
+ function W(r, e) {
24
+ var t = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
25
+ if (t != null) {
26
+ var l, c, n, u, f = [], y = !0, s = !1;
27
+ try {
28
+ if (n = (t = t.call(r)).next, e !== 0) for (; !(y = (l = n.call(t)).done) && (f.push(l.value), f.length !== e); y = !0) ;
29
+ } catch (A) {
30
+ s = !0, c = A;
31
+ } finally {
32
+ try {
33
+ if (!y && t.return != null && (u = t.return(), Object(u) !== u)) return;
34
+ } finally {
35
+ if (s) throw c;
36
+ }
37
+ }
38
+ return f;
39
+ }
40
+ }
41
+ function j(r) {
42
+ if (Array.isArray(r)) return r;
43
+ }
44
+ function b(r) {
45
+ if (Array.isArray(r) && r.length === 2) {
46
+ var e = g(r, 2), t = e[0], l = e[1];
47
+ if (i(t) && i(l))
48
+ return !0;
49
+ }
50
+ return !1;
51
+ }
52
+ function T(r, e, t) {
53
+ return t ? r : [Math.min(r[0], e[0]), Math.max(r[1], e[1])];
54
+ }
55
+ function V(r, e) {
56
+ if (e && typeof r != "function" && Array.isArray(r) && r.length === 2) {
57
+ var t = g(r, 2), l = t[0], c = t[1], n, u;
58
+ if (i(l))
59
+ n = l;
60
+ else if (typeof l == "function")
61
+ return;
62
+ if (i(c))
63
+ u = c;
64
+ else if (typeof c == "function")
65
+ return;
66
+ var f = [n, u];
67
+ if (b(f))
68
+ return f;
69
+ }
70
+ }
71
+ function k(r, e, t) {
72
+ if (!(!t && e == null)) {
73
+ if (typeof r == "function" && e != null)
74
+ try {
75
+ var l = r(e, t);
76
+ if (b(l))
77
+ return T(l, e, t);
78
+ } catch {
79
+ }
80
+ if (Array.isArray(r) && r.length === 2) {
81
+ var c = g(r, 2), n = c[0], u = c[1], f, y;
82
+ if (n === "auto")
83
+ e != null && (f = Math.min(...e));
84
+ else if (E(n))
85
+ f = n;
86
+ else if (typeof n == "function")
87
+ try {
88
+ e != null && (f = n(e == null ? void 0 : e[0]));
89
+ } catch {
90
+ }
91
+ else if (typeof n == "string" && I.test(n)) {
92
+ var s = I.exec(n);
93
+ if (s == null || s[1] == null || e == null)
94
+ f = void 0;
95
+ else {
96
+ var A = +s[1];
97
+ f = e[0] - A;
98
+ }
99
+ } else
100
+ f = e == null ? void 0 : e[0];
101
+ if (u === "auto")
102
+ e != null && (y = Math.max(...e));
103
+ else if (E(u))
104
+ y = u;
105
+ else if (typeof u == "function")
106
+ try {
107
+ e != null && (y = u(e == null ? void 0 : e[1]));
108
+ } catch {
109
+ }
110
+ else if (typeof u == "string" && S.test(u)) {
111
+ var h = S.exec(u);
112
+ if (h == null || h[1] == null || e == null)
113
+ y = void 0;
114
+ else {
115
+ var L = +h[1];
116
+ y = e[1] + L;
117
+ }
118
+ } else
119
+ y = e == null ? void 0 : e[1];
120
+ var o = [f, y];
121
+ if (b(o))
122
+ return e == null ? o : T(o, e, t);
123
+ }
124
+ }
125
+ }
126
+ export {
127
+ T as extendDomain,
128
+ b as isWellFormedNumberDomain,
129
+ V as numericalDomainSpecifiedWithoutRequiringData,
130
+ k as parseNumericalUserDomain
131
+ };
@@ -0,0 +1,10 @@
1
+ function i(e) {
2
+ return Number.isFinite(e);
3
+ }
4
+ function r(e) {
5
+ return typeof e == "number" && e > 0 && Number.isFinite(e);
6
+ }
7
+ export {
8
+ r as isPositiveNumber,
9
+ i as isWellBehavedNumber
10
+ };
@@ -0,0 +1,43 @@
1
+ import { shallowEqual as r } from "../../../react-redux/dist/react-redux.js";
2
+ var i = /* @__PURE__ */ new Set([
3
+ "axisLine",
4
+ "tickLine",
5
+ "activeBar",
6
+ "activeDot",
7
+ "activeLabel",
8
+ "activeShape",
9
+ "allowEscapeViewBox",
10
+ "background",
11
+ "cursor",
12
+ "dot",
13
+ "label",
14
+ "line",
15
+ "margin",
16
+ "padding",
17
+ "position",
18
+ "shape",
19
+ "style",
20
+ "tick",
21
+ "wrapperStyle",
22
+ // radius can be an array of 4 numbers, easy to compare shallowly
23
+ "radius",
24
+ "throttledEvents"
25
+ ]);
26
+ function n(e, a) {
27
+ return e == null && a == null ? !0 : typeof e == "number" && typeof a == "number" ? e === a || e !== e && a !== a : e === a;
28
+ }
29
+ function o(e, a) {
30
+ var l = /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(a)]);
31
+ for (var t of l)
32
+ if (i.has(t)) {
33
+ if (e[t] == null && a[t] == null)
34
+ continue;
35
+ if (!r(e[t], a[t]))
36
+ return !1;
37
+ } else if (!n(e[t], a[t]))
38
+ return !1;
39
+ return !0;
40
+ }
41
+ export {
42
+ o as propsAreEqual
43
+ };
@@ -0,0 +1,45 @@
1
+ function c(e, r) {
2
+ var t = Object.keys(e);
3
+ if (Object.getOwnPropertySymbols) {
4
+ var n = Object.getOwnPropertySymbols(e);
5
+ r && (n = n.filter(function(i) {
6
+ return Object.getOwnPropertyDescriptor(e, i).enumerable;
7
+ })), t.push.apply(t, n);
8
+ }
9
+ return t;
10
+ }
11
+ function p(e) {
12
+ for (var r = 1; r < arguments.length; r++) {
13
+ var t = arguments[r] != null ? arguments[r] : {};
14
+ r % 2 ? c(Object(t), !0).forEach(function(n) {
15
+ a(e, n, t[n]);
16
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : c(Object(t)).forEach(function(n) {
17
+ Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
18
+ });
19
+ }
20
+ return e;
21
+ }
22
+ function a(e, r, t) {
23
+ return (r = b(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
24
+ }
25
+ function b(e) {
26
+ var r = s(e, "string");
27
+ return typeof r == "symbol" ? r : r + "";
28
+ }
29
+ function s(e, r) {
30
+ if (typeof e != "object" || !e) return e;
31
+ var t = e[Symbol.toPrimitive];
32
+ if (t !== void 0) {
33
+ var n = t.call(e, r);
34
+ if (typeof n != "object") return n;
35
+ throw new TypeError("@@toPrimitive must return a primitive value.");
36
+ }
37
+ return (r === "string" ? String : Number)(e);
38
+ }
39
+ function y(e, r) {
40
+ var t = p({}, e), n = r, i = Object.keys(r), f = i.reduce((u, o) => (u[o] === void 0 && n[o] !== void 0 && (u[o] = n[o]), u), t);
41
+ return f;
42
+ }
43
+ export {
44
+ y as resolveDefaultProps
45
+ };
@@ -0,0 +1,17 @@
1
+ var i = 4;
2
+ function f(t) {
3
+ var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : i, e = 10 ** n, r = Math.round(t * e) / e;
4
+ return Object.is(r, -0) ? 0 : r;
5
+ }
6
+ function c(t) {
7
+ for (var n = arguments.length, e = new Array(n > 1 ? n - 1 : 0), r = 1; r < n; r++)
8
+ e[r - 1] = arguments[r];
9
+ return t.reduce((a, o, d) => {
10
+ var u = e[d - 1];
11
+ return typeof u == "string" ? a + u + o : u !== void 0 ? a + f(u) + o : a + o;
12
+ }, "");
13
+ }
14
+ export {
15
+ f as round,
16
+ c as roundTemplateLiteral
17
+ };
@@ -0,0 +1,44 @@
1
+ function s(t) {
2
+ if (t != null) {
3
+ var e = t.ticks, u = t.bandwidth, d = t.range(), a = [Math.min(...d), Math.max(...d)];
4
+ return {
5
+ domain: () => t.domain(),
6
+ range: (function(n) {
7
+ function r() {
8
+ return n.apply(this, arguments);
9
+ }
10
+ return r.toString = function() {
11
+ return n.toString();
12
+ }, r;
13
+ })(() => a),
14
+ rangeMin: () => a[0],
15
+ rangeMax: () => a[1],
16
+ isInRange(n) {
17
+ var r = a[0], i = a[1];
18
+ return r <= i ? n >= r && n <= i : n >= i && n <= r;
19
+ },
20
+ bandwidth: u ? () => u.call(t) : void 0,
21
+ ticks: e ? (n) => e.call(t, n) : void 0,
22
+ map: (n, r) => {
23
+ var i = t(n);
24
+ if (i != null) {
25
+ if (t.bandwidth && r !== null && r !== void 0 && r.position) {
26
+ var f = t.bandwidth();
27
+ switch (r.position) {
28
+ case "middle":
29
+ i += f / 2;
30
+ break;
31
+ case "end":
32
+ i += f;
33
+ break;
34
+ }
35
+ }
36
+ return i;
37
+ }
38
+ }
39
+ };
40
+ }
41
+ }
42
+ export {
43
+ s as rechartsScaleFactory
44
+ };