@pibit.ai/cure-design-system 0.6.41 → 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 (339) 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/primitives/hierarchical-select/HierarchicalSelect.d.ts.map +1 -1
  333. package/dist/primitives/hierarchical-select/HierarchicalSelect.js +47 -41
  334. package/dist/primitives/hierarchical-select/components/HierarchicalItem.d.ts.map +1 -1
  335. package/dist/primitives/hierarchical-select/components/HierarchicalItem.js +54 -48
  336. package/dist/primitives/hierarchical-select/utils/selection.d.ts.map +1 -1
  337. package/dist/primitives/hierarchical-select/utils/selection.js +63 -63
  338. package/dist/styles/components.css +1 -1
  339. package/package.json +2 -1
@@ -0,0 +1,81 @@
1
+ import { __exports as t } from "../../../_virtual/react-is.production.min.js";
2
+ /** @license React v17.0.2
3
+ * react-is.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+ var w;
11
+ function k() {
12
+ if (w) return t;
13
+ w = 1;
14
+ var y = 60103, m = 60106, o = 60107, c = 60108, i = 60114, u = 60109, f = 60110, s = 60112, p = 60113, d = 60120, l = 60115, a = 60116, _ = 60121, b = 60122, v = 60117, C = 60129, g = 60131;
15
+ if (typeof Symbol == "function" && Symbol.for) {
16
+ var r = Symbol.for;
17
+ y = r("react.element"), m = r("react.portal"), o = r("react.fragment"), c = r("react.strict_mode"), i = r("react.profiler"), u = r("react.provider"), f = r("react.context"), s = r("react.forward_ref"), p = r("react.suspense"), d = r("react.suspense_list"), l = r("react.memo"), a = r("react.lazy"), _ = r("react.block"), b = r("react.server.block"), v = r("react.fundamental"), C = r("react.debug_trace_mode"), g = r("react.legacy_hidden");
18
+ }
19
+ function n(e) {
20
+ if (typeof e == "object" && e !== null) {
21
+ var $ = e.$$typeof;
22
+ switch ($) {
23
+ case y:
24
+ switch (e = e.type, e) {
25
+ case o:
26
+ case i:
27
+ case c:
28
+ case p:
29
+ case d:
30
+ return e;
31
+ default:
32
+ switch (e = e && e.$$typeof, e) {
33
+ case f:
34
+ case s:
35
+ case a:
36
+ case l:
37
+ case u:
38
+ return e;
39
+ default:
40
+ return $;
41
+ }
42
+ }
43
+ case m:
44
+ return $;
45
+ }
46
+ }
47
+ }
48
+ var S = u, h = y, M = s, P = o, F = a, R = l, q = m, z = i, E = c, I = p;
49
+ return t.ContextConsumer = f, t.ContextProvider = S, t.Element = h, t.ForwardRef = M, t.Fragment = P, t.Lazy = F, t.Memo = R, t.Portal = q, t.Profiler = z, t.StrictMode = E, t.Suspense = I, t.isAsyncMode = function() {
50
+ return !1;
51
+ }, t.isConcurrentMode = function() {
52
+ return !1;
53
+ }, t.isContextConsumer = function(e) {
54
+ return n(e) === f;
55
+ }, t.isContextProvider = function(e) {
56
+ return n(e) === u;
57
+ }, t.isElement = function(e) {
58
+ return typeof e == "object" && e !== null && e.$$typeof === y;
59
+ }, t.isForwardRef = function(e) {
60
+ return n(e) === s;
61
+ }, t.isFragment = function(e) {
62
+ return n(e) === o;
63
+ }, t.isLazy = function(e) {
64
+ return n(e) === a;
65
+ }, t.isMemo = function(e) {
66
+ return n(e) === l;
67
+ }, t.isPortal = function(e) {
68
+ return n(e) === m;
69
+ }, t.isProfiler = function(e) {
70
+ return n(e) === i;
71
+ }, t.isStrictMode = function(e) {
72
+ return n(e) === c;
73
+ }, t.isSuspense = function(e) {
74
+ return n(e) === p;
75
+ }, t.isValidElementType = function(e) {
76
+ return typeof e == "string" || typeof e == "function" || e === o || e === i || e === C || e === c || e === p || e === d || e === g || typeof e == "object" && e !== null && (e.$$typeof === a || e.$$typeof === l || e.$$typeof === u || e.$$typeof === f || e.$$typeof === s || e.$$typeof === v || e.$$typeof === _ || e[0] === b);
77
+ }, t.typeOf = n, t;
78
+ }
79
+ export {
80
+ k as __require
81
+ };
@@ -0,0 +1,10 @@
1
+ import { __module as e } from "../../_virtual/index4.js";
2
+ import { __require as o } from "./cjs/react-is.production.min.js";
3
+ import { __require as t } from "./cjs/react-is.development.js";
4
+ var r;
5
+ function p() {
6
+ return r ? e.exports : (r = 1, process.env.NODE_ENV === "production" ? e.exports = o() : e.exports = t(), e.exports);
7
+ }
8
+ export {
9
+ p as __require
10
+ };
@@ -0,0 +1,137 @@
1
+ import * as c from "react";
2
+ import "../../../_virtual/with-selector3.js";
3
+ function E(t) {
4
+ t();
5
+ }
6
+ function w() {
7
+ let t = null, n = null;
8
+ return {
9
+ clear() {
10
+ t = null, n = null;
11
+ },
12
+ notify() {
13
+ E(() => {
14
+ let r = t;
15
+ for (; r; )
16
+ r.callback(), r = r.next;
17
+ });
18
+ },
19
+ get() {
20
+ const r = [];
21
+ let o = t;
22
+ for (; o; )
23
+ r.push(o), o = o.next;
24
+ return r;
25
+ },
26
+ subscribe(r) {
27
+ let o = !0;
28
+ const e = n = {
29
+ callback: r,
30
+ next: null,
31
+ prev: n
32
+ };
33
+ return e.prev ? e.prev.next = e : t = e, function() {
34
+ !o || t === null || (o = !1, e.next ? e.next.prev = e.prev : n = e.prev, e.prev ? e.prev.next = e.next : t = e.next);
35
+ };
36
+ }
37
+ };
38
+ }
39
+ const y = {
40
+ notify() {
41
+ },
42
+ get: () => []
43
+ };
44
+ function R(t, n) {
45
+ let r, o = y, e = 0, s = !1;
46
+ function u(C) {
47
+ l();
48
+ const N = o.subscribe(C);
49
+ let v = !1;
50
+ return () => {
51
+ v || (v = !0, N(), f());
52
+ };
53
+ }
54
+ function d() {
55
+ o.notify();
56
+ }
57
+ function i() {
58
+ p.onStateChange && p.onStateChange();
59
+ }
60
+ function a() {
61
+ return s;
62
+ }
63
+ function l() {
64
+ e++, r || (r = t.subscribe(i), o = w());
65
+ }
66
+ function f() {
67
+ e--, r && e === 0 && (r(), r = void 0, o.clear(), o = y);
68
+ }
69
+ function m() {
70
+ s || (s = !0, l());
71
+ }
72
+ function x() {
73
+ s && (s = !1, f());
74
+ }
75
+ const p = {
76
+ addNestedSub: u,
77
+ notifyNestedSubs: d,
78
+ handleChangeWrapper: i,
79
+ isSubscribed: a,
80
+ trySubscribe: m,
81
+ tryUnsubscribe: x,
82
+ getListeners: () => o
83
+ };
84
+ return p;
85
+ }
86
+ const O = () => typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", k = /* @__PURE__ */ O(), L = () => typeof navigator < "u" && navigator.product === "ReactNative", M = /* @__PURE__ */ L(), U = () => k || M ? c.useLayoutEffect : c.useEffect, S = /* @__PURE__ */ U();
87
+ function g(t, n) {
88
+ return t === n ? t !== 0 || n !== 0 || 1 / t === 1 / n : t !== t && n !== n;
89
+ }
90
+ function I(t, n) {
91
+ if (g(t, n)) return !0;
92
+ if (typeof t != "object" || t === null || typeof n != "object" || n === null) return !1;
93
+ const r = Object.keys(t), o = Object.keys(n);
94
+ if (r.length !== o.length) return !1;
95
+ for (let e = 0; e < r.length; e++) if (!Object.prototype.hasOwnProperty.call(n, r[e]) || !g(t[r[e]], n[r[e]])) return !1;
96
+ return !0;
97
+ }
98
+ const b = /* @__PURE__ */ Symbol.for("react-redux-context"), h = typeof globalThis < "u" ? globalThis : {};
99
+ function D() {
100
+ if (!c.createContext) return {};
101
+ const t = h[b] ?? (h[b] = /* @__PURE__ */ new Map());
102
+ let n = t.get(c.createContext);
103
+ return n || (n = c.createContext(null), process.env.NODE_ENV !== "production" && (n.displayName = "ReactRedux"), t.set(c.createContext, n)), n;
104
+ }
105
+ const P = /* @__PURE__ */ D();
106
+ function T(t) {
107
+ if (process.env.NODE_ENV !== "production" && typeof S != "function")
108
+ throw new Error('The React Redux `<Provider>` component requires React hooks that are not available in a React Server Component. This usually means you are rendering `<Provider>` in a Server Component. Add the `"use client"` directive to the top of the file that renders `<Provider>` (or a parent that ends up rendering it) so it is treated as a Client Component. See https://react.dev/reference/rsc/use-client for more information.');
109
+ const { children: n, context: r, serverState: o, store: e } = t, s = c.useMemo(() => {
110
+ const i = R(e), a = {
111
+ store: e,
112
+ subscription: i,
113
+ getServerState: o != null ? () => o : void 0
114
+ };
115
+ if (process.env.NODE_ENV === "production") return a;
116
+ {
117
+ const { identityFunctionCheck: l = "once", stabilityCheck: f = "once" } = t;
118
+ return /* @__PURE__ */ Object.assign(a, {
119
+ stabilityCheck: f,
120
+ identityFunctionCheck: l
121
+ });
122
+ }
123
+ }, [e, o]), u = c.useMemo(() => e.getState(), [e]);
124
+ S(() => {
125
+ const { subscription: i } = s;
126
+ return i.onStateChange = i.notifyNestedSubs, i.trySubscribe(), u !== e.getState() && i.notifyNestedSubs(), () => {
127
+ i.tryUnsubscribe(), i.onStateChange = void 0;
128
+ };
129
+ }, [s, u]);
130
+ const d = r || P;
131
+ return /* @__PURE__ */ c.createElement(d.Provider, { value: s }, n);
132
+ }
133
+ export {
134
+ T as Provider,
135
+ P as ReactReduxContext,
136
+ I as shallowEqual
137
+ };
@@ -0,0 +1,78 @@
1
+ import * as k from "react";
2
+ import { useState as w, useCallback as h } from "react";
3
+ import { JavascriptAnimate as U } from "./JavascriptAnimate.js";
4
+ import { useAnimationId as j } from "../util/useAnimationId.js";
5
+ import { matchAnimationItems as C, matchByIndex as D } from "./matchBy.js";
6
+ import { useAnimationStartSnapshot as E } from "./useAnimationStartSnapshot.js";
7
+ function M(t, n) {
8
+ return V(t) || O(t, n) || L(t, n) || F();
9
+ }
10
+ function F() {
11
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
12
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
13
+ }
14
+ function L(t, n) {
15
+ if (t) {
16
+ if (typeof t == "string") return b(t, n);
17
+ var a = {}.toString.call(t).slice(8, -1);
18
+ return a === "Object" && t.constructor && (a = t.constructor.name), a === "Map" || a === "Set" ? Array.from(t) : a === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a) ? b(t, n) : void 0;
19
+ }
20
+ }
21
+ function b(t, n) {
22
+ (n == null || n > t.length) && (n = t.length);
23
+ for (var a = 0, i = Array(n); a < n; a++) i[a] = t[a];
24
+ return i;
25
+ }
26
+ function O(t, n) {
27
+ var a = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
28
+ if (a != null) {
29
+ var i, e, r, o, u = [], l = !0, c = !1;
30
+ try {
31
+ if (r = (a = a.call(t)).next, n !== 0) for (; !(l = (i = r.call(a)).done) && (u.push(i.value), u.length !== n); l = !0) ;
32
+ } catch (f) {
33
+ c = !0, e = f;
34
+ } finally {
35
+ try {
36
+ if (!l && a.return != null && (o = a.return(), Object(o) !== o)) return;
37
+ } finally {
38
+ if (c) throw e;
39
+ }
40
+ }
41
+ return u;
42
+ }
43
+ }
44
+ function V(t) {
45
+ if (Array.isArray(t)) return t;
46
+ }
47
+ function q(t, n) {
48
+ var a = w(!1), i = M(a, 2), e = i[0], r = i[1], o = h(() => {
49
+ typeof t == "function" && t(), r(!0);
50
+ }, [t]), u = h(() => {
51
+ typeof n == "function" && n(), r(!1);
52
+ }, [n]);
53
+ return {
54
+ isAnimating: e,
55
+ handleAnimationStart: o,
56
+ handleAnimationEnd: u
57
+ };
58
+ }
59
+ function z(t) {
60
+ var n, a = t.animationInput, i = t.animationIdPrefix, e = t.items, r = t.previousItemsRef, o = t.isAnimationActive, u = t.animationBegin, l = t.animationDuration, c = t.animationEasing, f = t.onAnimationStart, S = t.onAnimationEnd, g = t.animationInterpolateFn, s = t.animationMatchBy, d = t.shouldUpdatePreviousRef, _ = t.children, R = t.layout, v = j(a, i), A = E(v, r), I = (n = A.startValue) !== null && n !== void 0 ? n : null, x = C(I, e, s ?? D);
61
+ return /* @__PURE__ */ k.createElement(U, {
62
+ animationId: v,
63
+ begin: u,
64
+ duration: l,
65
+ isActive: o,
66
+ easing: c,
67
+ onAnimationEnd: S,
68
+ onAnimationStart: f,
69
+ key: v
70
+ }, (m) => {
71
+ var B = I == null, y = e == null ? e : g(x, m, R), P = d ? d(m) : m > 0;
72
+ return A.syncStepValue(y, m, P), y == null ? null : _(y, m, B);
73
+ });
74
+ }
75
+ export {
76
+ z as AnimatedItems,
77
+ q as useAnimationCallbacks
78
+ };
@@ -0,0 +1,21 @@
1
+ var i = (v, e, g) => {
2
+ var t, c = (r) => {
3
+ var u = e.tick(r);
4
+ if (e.getState() === "active") {
5
+ if (g(e.getInterpolated()), e.getProgress() === 1) {
6
+ e.complete(), t = void 0;
7
+ return;
8
+ }
9
+ t = v.setTimeout(c, u);
10
+ return;
11
+ }
12
+ t = v.setTimeout(c, u);
13
+ };
14
+ return t = v.setTimeout(c, 0), () => {
15
+ var r;
16
+ return (r = t) === null || r === void 0 ? void 0 : r();
17
+ };
18
+ };
19
+ export {
20
+ i as animationControllerImpl
21
+ };
@@ -0,0 +1,179 @@
1
+ import { interpolate as h } from "../util/DataUtils.js";
2
+ function m(i, t, e) {
3
+ return (t = u(t)) in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
4
+ }
5
+ function u(i) {
6
+ var t = g(i, "string");
7
+ return typeof t == "symbol" ? t : t + "";
8
+ }
9
+ function g(i, t) {
10
+ if (typeof i != "object" || !i) return i;
11
+ var e = i[Symbol.toPrimitive];
12
+ if (e !== void 0) {
13
+ var n = e.call(i, t);
14
+ if (typeof n != "object") return n;
15
+ throw new TypeError("@@toPrimitive must return a primitive value.");
16
+ }
17
+ return (t === "string" ? String : Number)(i);
18
+ }
19
+ var a = "init", o = "pending", s = "active", d = "completed";
20
+ function r(i) {
21
+ return Math.max(0, i);
22
+ }
23
+ class l {
24
+ /**
25
+ * Returns the absolute time after the animationBegin delay has been completed,
26
+ * and when the animationDuration started ticking.
27
+ */
28
+ getAnimationStartedTime() {
29
+ return this.animationStartedTime;
30
+ }
31
+ /**
32
+ * Returns the absolute time of when the animation began - now it will wait for {animationBegin} ms before the transition starts
33
+ */
34
+ getBeginStartedTime() {
35
+ return this.beginStartedTime;
36
+ }
37
+ constructor(t) {
38
+ var e;
39
+ m(this, "state", a), this.animationId = t.animationId, this.onAnimationEnd = t.onAnimationEnd, this.animationDuration = r(t.animationDuration), this.animationBegin = r(t.animationBegin), this.progress = 0, this.from = t.from, this.to = t.to, this.easing = t.easing, (e = t.onAnimationStart) === null || e === void 0 || e.call(t);
40
+ }
41
+ /**
42
+ * Returns the state machine current state
43
+ * - `init`: animation had just been created. It immediately calls `onAnimationStart`
44
+ * - `pending`: animation is now paused for `animationBegin` milliseconds until the transition begins
45
+ * - `active`: animation is transitioning items on screen
46
+ * - `completed`: animation has completed its transition and executed `onAnimationEnd`.
47
+ * This state is final and the animation is no longer allowed to transition to other states.
48
+ */
49
+ getState() {
50
+ return this.state;
51
+ }
52
+ /**
53
+ * Returns the easing input or function
54
+ */
55
+ getEasing() {
56
+ return this.easing;
57
+ }
58
+ /**
59
+ * Returns the configuration - the duration of the transition.
60
+ * Does not change in time, does not change when state changes, this is a static value.
61
+ */
62
+ getAnimationDuration() {
63
+ return this.animationDuration;
64
+ }
65
+ /**
66
+ * Sets the current time of the animation. The animation sets its internal state and progress accordingly.
67
+ * This is current, absolute time; not additive!
68
+ * This allows you to essentially "travel back in time" based on the value you pass in here.
69
+ *
70
+ * Returns the (relative) time remaining until the current activity is over.
71
+ * Meaning: if the state is in a middle of a delay, returns the time left until the delay is finished.
72
+ * If the state is in the middle of a transition, returns time left until that transition is complete.
73
+ * This is useful because it's the same number you can take and put into setTimeout(fn, X)
74
+ * as that's how much time we need to wait until the next state transition happens.
75
+ */
76
+ tick(t) {
77
+ if (this.getState() === a)
78
+ return this.state = o, this.beginStartedTime = t, this.animationBegin;
79
+ if (this.getState() === o) {
80
+ if (this.beginStartedTime == null)
81
+ throw new Error();
82
+ var e = t - this.beginStartedTime;
83
+ return e >= this.animationBegin ? (this.state = s, this.animationStartedTime = t, this.nextAnimationUpdate(0)) : r(this.animationBegin - e);
84
+ }
85
+ if (this.getState() === s) {
86
+ if (this.animationStartedTime == null)
87
+ throw new Error();
88
+ var n = t - this.animationStartedTime;
89
+ return this.setProgress(n / this.animationDuration), this.nextAnimationUpdate(n);
90
+ }
91
+ return 0;
92
+ }
93
+ setProgress(t) {
94
+ this.progress = Math.min(1, Math.max(0, t));
95
+ }
96
+ /**
97
+ * Returns an abstract "progress" which is number between 0 and 1 which shows the distance of transition.
98
+ * This progress depends on the animation state:
99
+ * - `init`: 0
100
+ * - `pending`: 0
101
+ * - `active`: transitioning between [0, 1] based on the time elapsed
102
+ * - `completed`: 1
103
+ *
104
+ * The progress is hard-capped to be between 0 and 1 (inclusive) to avoid overshooting caused by coarse timers.
105
+ * For this reason, the easing function must be applied _after_ this animation state,
106
+ * so that one has a chance to construct dynamic "overshoot" animations.
107
+ *
108
+ * The progress is linear with time.
109
+ * If you wish for easing, use `getInterpolated()` instead.
110
+ */
111
+ getProgress() {
112
+ return this.progress;
113
+ }
114
+ /**
115
+ * Completes the animation. Completed animation:
116
+ * - cannot be manipulated anymore
117
+ * - its progress is set to 1
118
+ * - tick function doesn't do anything
119
+ * - getState() always returns 'completed'
120
+ */
121
+ complete() {
122
+ if (this.progress = 1, this.state === "active") {
123
+ var t;
124
+ (t = this.onAnimationEnd) === null || t === void 0 || t.call(this);
125
+ }
126
+ this.state = d;
127
+ }
128
+ /**
129
+ * Returns the starting value of the animation.
130
+ * Does not include progress, easing, interpolation, none of that - just the static starting value
131
+ */
132
+ getFrom() {
133
+ return this.from;
134
+ }
135
+ /**
136
+ * Returns the end value of the animation.
137
+ * Does not include progress, easing, interpolation, none of that - just the static end value
138
+ */
139
+ getTo() {
140
+ return this.to;
141
+ }
142
+ /**
143
+ * Unique identifier of an animation
144
+ */
145
+ getAnimationId() {
146
+ return this.animationId;
147
+ }
148
+ /**
149
+ * Returns the configuration - the duration of delay in between animation initialization, and transition.
150
+ * Does not change in time, does not change when state changes, this is a static value.
151
+ */
152
+ getAnimationBegin() {
153
+ return this.animationBegin;
154
+ }
155
+ /**
156
+ * Returns value of the transition at the current time.
157
+ * The exact details differ based on the animation type
158
+ */
159
+ /**
160
+ * Returns the duration of time of when the controller should ask for the next update
161
+ */
162
+ }
163
+ class v extends l {
164
+ // eslint-disable-next-line class-methods-use-this
165
+ nextAnimationUpdate() {
166
+ return 0;
167
+ }
168
+ /**
169
+ * Returns value of the animation after its easing function had been applied.
170
+ * This value, unlike getProgress(), can escape the [0..1] range
171
+ * because this is entirely within the easing function control. Spring typically does this.
172
+ */
173
+ getInterpolated() {
174
+ return this.easing(h(this.getFrom(), this.getTo(), this.getProgress()));
175
+ }
176
+ }
177
+ export {
178
+ v as JavascriptAnimation
179
+ };
@@ -0,0 +1,84 @@
1
+ import { useState as E, useEffect as y } from "react";
2
+ import { noop as T } from "../util/DataUtils.js";
3
+ import { resolveDefaultProps as w } from "../util/resolveDefaultProps.js";
4
+ import { createEasingFunction as B } from "./easing.js";
5
+ import { useAnimationController as P } from "./useAnimationController.js";
6
+ import { Global as R } from "../util/Global.js";
7
+ import { usePrefersReducedMotion as j } from "../util/usePrefersReducedMotion.js";
8
+ import { JavascriptAnimation as F } from "./AnimationHandle.js";
9
+ import { RequestAnimationFrameTimeoutController as J } from "./timeoutController.js";
10
+ function M(t, r) {
11
+ return O(t) || L(t, r) || D(t, r) || x();
12
+ }
13
+ function x() {
14
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
15
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
16
+ }
17
+ function D(t, r) {
18
+ if (t) {
19
+ if (typeof t == "string") return g(t, r);
20
+ var n = {}.toString.call(t).slice(8, -1);
21
+ return n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set" ? Array.from(t) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? g(t, r) : void 0;
22
+ }
23
+ }
24
+ function g(t, r) {
25
+ (r == null || r > t.length) && (r = t.length);
26
+ for (var n = 0, e = Array(r); n < r; n++) e[n] = t[n];
27
+ return e;
28
+ }
29
+ function L(t, r) {
30
+ var n = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
31
+ if (n != null) {
32
+ var e, l, u, i, o = [], a = !0, m = !1;
33
+ try {
34
+ if (u = (n = n.call(t)).next, r !== 0) for (; !(a = (e = u.call(n)).done) && (o.push(e.value), o.length !== r); a = !0) ;
35
+ } catch (c) {
36
+ m = !0, l = c;
37
+ } finally {
38
+ try {
39
+ if (!a && n.return != null && (i = n.return(), Object(i) !== i)) return;
40
+ } finally {
41
+ if (m) throw l;
42
+ }
43
+ }
44
+ return o;
45
+ }
46
+ }
47
+ function O(t) {
48
+ if (Array.isArray(t)) return t;
49
+ }
50
+ var k = {
51
+ begin: 0,
52
+ duration: 1e3,
53
+ easing: "ease",
54
+ isActive: !0,
55
+ canBegin: !0,
56
+ onAnimationEnd: () => {
57
+ },
58
+ onAnimationStart: () => {
59
+ }
60
+ }, b = 0, f = 1;
61
+ function Q(t) {
62
+ var r = w(t, k), n = r.animationId, e = r.isActive, l = r.canBegin, u = r.duration, i = r.easing, o = r.begin, a = r.onAnimationEnd, m = r.onAnimationStart, c = r.children, S = j(), s = e === "auto" ? !R.isSsr && !S : e, p = P(r.animationController), h = E(s ? b : f), v = M(h, 2), _ = v[0], d = v[1];
63
+ return y(() => {
64
+ s || d(f);
65
+ }, [s]), y(() => {
66
+ var A = B(i);
67
+ if (!s || !l || A == null)
68
+ return T;
69
+ var I = new J(), C = new F({
70
+ animationId: n,
71
+ easing: A,
72
+ animationDuration: u,
73
+ animationBegin: o,
74
+ onAnimationStart: m,
75
+ onAnimationEnd: a,
76
+ from: b,
77
+ to: f
78
+ });
79
+ return p(I, C, d);
80
+ }, [p, n, s, l, u, i, o, m, a]), c(Number(_));
81
+ }
82
+ export {
83
+ Q as JavascriptAnimate
84
+ };
@@ -0,0 +1,89 @@
1
+ var m = 1e-4, w = (r, e) => [0, 3 * r, 3 * e - 6 * r, 3 * r - 3 * e + 1], E = (r, e) => r.map((a, n) => a * e ** n).reduce((a, n) => a + n), x = (r, e) => (a) => {
2
+ var n = w(r, e);
3
+ return E(n, a);
4
+ }, X = (r, e) => (a) => {
5
+ var n = w(r, e), t = [...n.map((s, c) => s * c).slice(1), 0];
6
+ return E(t, a);
7
+ }, A = (r) => {
8
+ var e, a = r.split("(");
9
+ if (a.length !== 2 || a[0] !== "cubic-bezier")
10
+ return null;
11
+ var n = (e = a[1]) === null || e === void 0 || (e = e.split(")")[0]) === null || e === void 0 ? void 0 : e.split(",");
12
+ if (n == null || n.length !== 4)
13
+ return null;
14
+ var t = n.map((s) => parseFloat(s));
15
+ return [t[0], t[1], t[2], t[3]];
16
+ }, S = function() {
17
+ for (var e = arguments.length, a = new Array(e), n = 0; n < e; n++)
18
+ a[n] = arguments[n];
19
+ if (a.length === 1)
20
+ switch (a[0]) {
21
+ case "linear":
22
+ return [0, 0, 1, 1];
23
+ case "ease":
24
+ return [0.25, 0.1, 0.25, 1];
25
+ case "ease-in":
26
+ return [0.42, 0, 1, 1];
27
+ case "ease-out":
28
+ return [0.42, 0, 0.58, 1];
29
+ case "ease-in-out":
30
+ return [0, 0, 0.58, 1];
31
+ default: {
32
+ var t = A(a[0]);
33
+ if (t)
34
+ return t;
35
+ }
36
+ }
37
+ return a.length === 4 ? a : [0, 0, 1, 1];
38
+ }, I = (r, e, a, n) => {
39
+ var t = x(r, a), s = x(e, n), c = X(r, a), l = (i) => i > 1 ? 1 : i < 0 ? 0 : i, o = (i) => {
40
+ for (var v = i > 1 ? 1 : i, u = v, d = 0; d < 8; ++d) {
41
+ var f = t(u) - v, p = c(u);
42
+ if (Math.abs(f - v) < m || p < m)
43
+ return s(u);
44
+ u = l(u - f / p);
45
+ }
46
+ return s(u);
47
+ };
48
+ return o.isStepper = !1, o;
49
+ }, $ = function() {
50
+ return I(...S(...arguments));
51
+ }, Y = function() {
52
+ for (var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = e.stiff, n = a === void 0 ? 100 : a, t = e.damping, s = t === void 0 ? 8 : t, c = e.dt, l = c === void 0 ? 16.67 : c, o = 1, i = [0], v = 0, u = 0, d = 1e4, f = 0; f < d; ) {
53
+ var p = -(v - o) * n, F = u * s;
54
+ if (u += (p - F) * l / 1e3, v += u * l / 1e3, i.push(v), Math.abs(v - o) < m && Math.abs(u) < m)
55
+ break;
56
+ f++;
57
+ }
58
+ i[i.length - 1] = o;
59
+ var M = i.length - 1;
60
+ return (h) => {
61
+ var b, z, B;
62
+ if (h <= 0) return 0;
63
+ if (h >= 1) return o;
64
+ var C = h * M, g = Math.floor(C), P = C - g;
65
+ return ((b = i[g]) !== null && b !== void 0 ? b : 0) + (((z = i[g + 1]) !== null && z !== void 0 ? z : 0) - ((B = i[g]) !== null && B !== void 0 ? B : 0)) * P;
66
+ };
67
+ }, _ = (r) => {
68
+ if (typeof r == "string")
69
+ switch (r) {
70
+ case "ease":
71
+ case "ease-in-out":
72
+ case "ease-out":
73
+ case "ease-in":
74
+ case "linear":
75
+ return $(r);
76
+ case "spring":
77
+ return Y();
78
+ default:
79
+ if (r.split("(")[0] === "cubic-bezier")
80
+ return $(r);
81
+ }
82
+ return typeof r == "function" ? r : null;
83
+ };
84
+ export {
85
+ m as ACCURACY,
86
+ $ as configBezier,
87
+ _ as createEasingFunction,
88
+ Y as createSpringEasing
89
+ };