@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.
- package/dist/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/_virtual/index2.js +5 -0
- package/dist/_virtual/index3.js +7 -0
- package/dist/_virtual/index4.js +4 -0
- package/dist/_virtual/index5.js +4 -0
- package/dist/_virtual/react-is.development.js +4 -0
- package/dist/_virtual/react-is.production.min.js +4 -0
- package/dist/_virtual/use-sync-external-store-shim.development.js +4 -0
- package/dist/_virtual/use-sync-external-store-shim.production.js +4 -0
- package/dist/_virtual/use-sync-external-store-with-selector.development.js +4 -0
- package/dist/_virtual/use-sync-external-store-with-selector.production.js +4 -0
- package/dist/_virtual/with-selector.development.js +4 -0
- package/dist/_virtual/with-selector.js +5 -0
- package/dist/_virtual/with-selector.production.js +4 -0
- package/dist/_virtual/with-selector2.js +4 -0
- package/dist/_virtual/with-selector3.js +2 -0
- package/dist/_virtual/with-selector4.js +4 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +127 -125
- package/dist/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js +846 -0
- package/dist/node_modules/d3-array/src/ascending.js +6 -0
- package/dist/node_modules/d3-array/src/bisect.js +9 -0
- package/dist/node_modules/d3-array/src/bisector.js +37 -0
- package/dist/node_modules/d3-array/src/descending.js +6 -0
- package/dist/node_modules/d3-array/src/max.js +9 -0
- package/dist/node_modules/d3-array/src/min.js +9 -0
- package/dist/node_modules/d3-array/src/number.js +11 -0
- package/dist/node_modules/d3-array/src/quantile.js +24 -0
- package/dist/node_modules/d3-array/src/quickselect.js +25 -0
- package/dist/node_modules/d3-array/src/range.js +9 -0
- package/dist/node_modules/d3-array/src/sort.js +16 -0
- package/dist/node_modules/d3-array/src/ticks.js +32 -0
- package/dist/node_modules/d3-color/src/color.js +305 -0
- package/dist/node_modules/d3-color/src/define.js +12 -0
- package/dist/node_modules/d3-format/src/defaultLocale.js +15 -0
- package/dist/node_modules/d3-format/src/exponent.js +7 -0
- package/dist/node_modules/d3-format/src/formatDecimal.js +15 -0
- package/dist/node_modules/d3-format/src/formatGroup.js +10 -0
- package/dist/node_modules/d3-format/src/formatNumerals.js +10 -0
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js +12 -0
- package/dist/node_modules/d3-format/src/formatRounded.js +10 -0
- package/dist/node_modules/d3-format/src/formatSpecifier.js +28 -0
- package/dist/node_modules/d3-format/src/formatTrim.js +19 -0
- package/dist/node_modules/d3-format/src/formatTypes.js +21 -0
- package/dist/node_modules/d3-format/src/identity.js +6 -0
- package/dist/node_modules/d3-format/src/locale.js +68 -0
- package/dist/node_modules/d3-format/src/precisionFixed.js +7 -0
- package/dist/node_modules/d3-format/src/precisionPrefix.js +7 -0
- package/dist/node_modules/d3-format/src/precisionRound.js +7 -0
- package/dist/node_modules/d3-interpolate/src/array.js +13 -0
- package/dist/node_modules/d3-interpolate/src/color.js +24 -0
- package/dist/node_modules/d3-interpolate/src/constant.js +4 -0
- package/dist/node_modules/d3-interpolate/src/date.js +9 -0
- package/dist/node_modules/d3-interpolate/src/number.js +8 -0
- package/dist/node_modules/d3-interpolate/src/numberArray.js +15 -0
- package/dist/node_modules/d3-interpolate/src/object.js +14 -0
- package/dist/node_modules/d3-interpolate/src/piecewise.js +12 -0
- package/dist/node_modules/d3-interpolate/src/rgb.js +15 -0
- package/dist/node_modules/d3-interpolate/src/round.js +8 -0
- package/dist/node_modules/d3-interpolate/src/string.js +24 -0
- package/dist/node_modules/d3-interpolate/src/value.js +16 -0
- package/dist/node_modules/d3-path/src/path.js +64 -0
- package/dist/node_modules/d3-scale/src/band.js +51 -0
- package/dist/node_modules/d3-scale/src/constant.js +8 -0
- package/dist/node_modules/d3-scale/src/continuous.js +75 -0
- package/dist/node_modules/d3-scale/src/diverging.js +68 -0
- package/dist/node_modules/d3-scale/src/identity.js +18 -0
- package/dist/node_modules/d3-scale/src/init.js +32 -0
- package/dist/node_modules/d3-scale/src/linear.js +39 -0
- package/dist/node_modules/d3-scale/src/log.js +86 -0
- package/dist/node_modules/d3-scale/src/nice.js +8 -0
- package/dist/node_modules/d3-scale/src/number.js +6 -0
- package/dist/node_modules/d3-scale/src/ordinal.js +31 -0
- package/dist/node_modules/d3-scale/src/pow.js +37 -0
- package/dist/node_modules/d3-scale/src/quantile.js +38 -0
- package/dist/node_modules/d3-scale/src/quantize.js +31 -0
- package/dist/node_modules/d3-scale/src/radial.js +37 -0
- package/dist/node_modules/d3-scale/src/sequential.js +70 -0
- package/dist/node_modules/d3-scale/src/sequentialQuantile.js +28 -0
- package/dist/node_modules/d3-scale/src/symlog.js +29 -0
- package/dist/node_modules/d3-scale/src/threshold.js +23 -0
- package/dist/node_modules/d3-scale/src/tickFormat.js +32 -0
- package/dist/node_modules/d3-scale/src/time.js +46 -0
- package/dist/node_modules/d3-scale/src/utcTime.js +17 -0
- package/dist/node_modules/d3-shape/src/area.js +56 -0
- package/dist/node_modules/d3-shape/src/array.js +6 -0
- package/dist/node_modules/d3-shape/src/constant.js +8 -0
- package/dist/node_modules/d3-shape/src/curve/basis.js +60 -0
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js +51 -0
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js +46 -0
- package/dist/node_modules/d3-shape/src/curve/bump.js +43 -0
- package/dist/node_modules/d3-shape/src/curve/linear.js +36 -0
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js +23 -0
- package/dist/node_modules/d3-shape/src/curve/monotone.js +93 -0
- package/dist/node_modules/d3-shape/src/curve/natural.js +41 -0
- package/dist/node_modules/d3-shape/src/curve/step.js +51 -0
- package/dist/node_modules/d3-shape/src/line.js +29 -0
- package/dist/node_modules/d3-shape/src/noop.js +5 -0
- package/dist/node_modules/d3-shape/src/offset/expand.js +13 -0
- package/dist/node_modules/d3-shape/src/offset/none.js +9 -0
- package/dist/node_modules/d3-shape/src/offset/silhouette.js +13 -0
- package/dist/node_modules/d3-shape/src/offset/wiggle.js +19 -0
- package/dist/node_modules/d3-shape/src/order/none.js +7 -0
- package/dist/node_modules/d3-shape/src/path.js +18 -0
- package/dist/node_modules/d3-shape/src/point.js +10 -0
- package/dist/node_modules/d3-shape/src/stack.js +35 -0
- package/dist/node_modules/d3-time/src/day.js +26 -0
- package/dist/node_modules/d3-time/src/duration.js +10 -0
- package/dist/node_modules/d3-time/src/hour.js +18 -0
- package/dist/node_modules/d3-time/src/interval.js +31 -0
- package/dist/node_modules/d3-time/src/millisecond.js +14 -0
- package/dist/node_modules/d3-time/src/minute.js +18 -0
- package/dist/node_modules/d3-time/src/month.js +17 -0
- package/dist/node_modules/d3-time/src/second.js +11 -0
- package/dist/node_modules/d3-time/src/ticks.js +54 -0
- package/dist/node_modules/d3-time/src/week.js +48 -0
- package/dist/node_modules/d3-time/src/year.js +27 -0
- package/dist/node_modules/d3-time-format/src/defaultLocale.js +20 -0
- package/dist/node_modules/d3-time-format/src/locale.js +478 -0
- package/dist/node_modules/decimal.js-light/decimal.js +472 -0
- package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +6 -0
- package/dist/node_modules/es-toolkit/dist/array/flatten.js +12 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/baseToString.js +16 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/compareValues.js +17 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/hasOwn.js +7 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.js +15 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isIndex.js +14 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.js +10 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isKey.js +8 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/objectValues.js +8 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/toKey.js +7 -0
- package/dist/node_modules/es-toolkit/dist/compat/array/orderBy.js +35 -0
- package/dist/node_modules/es-toolkit/dist/compat/array/sortBy.js +10 -0
- package/dist/node_modules/es-toolkit/dist/compat/function/debounce.js +16 -0
- package/dist/node_modules/es-toolkit/dist/compat/function/throttle.js +12 -0
- package/dist/node_modules/es-toolkit/dist/compat/math/range.js +12 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/get.js +39 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js +7 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isObject.js +6 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isSymbol.js +6 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/eq.js +6 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/toFinite.js +7 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/toNumber.js +7 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/toPath.js +38 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/toString.js +7 -0
- package/dist/node_modules/es-toolkit/dist/function/debounce.js +29 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isLength.js +6 -0
- package/dist/node_modules/eventemitter3/index.js +5 -0
- package/dist/node_modules/eventemitter3/index2.js +111 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +5 -5
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +9 -9
- package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +3 -3
- package/dist/node_modules/immer/dist/immer.js +575 -0
- package/dist/node_modules/internmap/src/index.js +35 -0
- package/dist/node_modules/react-is/cjs/react-is.development.js +98 -0
- package/dist/node_modules/react-is/cjs/react-is.production.min.js +81 -0
- package/dist/node_modules/react-is/index.js +10 -0
- package/dist/node_modules/react-redux/dist/react-redux.js +137 -0
- package/dist/node_modules/recharts/es6/animation/AnimatedItems.js +78 -0
- package/dist/node_modules/recharts/es6/animation/AnimationControllerImpl.js +21 -0
- package/dist/node_modules/recharts/es6/animation/AnimationHandle.js +179 -0
- package/dist/node_modules/recharts/es6/animation/JavascriptAnimate.js +84 -0
- package/dist/node_modules/recharts/es6/animation/easing.js +89 -0
- package/dist/node_modules/recharts/es6/animation/matchBy.js +105 -0
- package/dist/node_modules/recharts/es6/animation/timeoutController.js +13 -0
- package/dist/node_modules/recharts/es6/animation/useAnimationController.js +11 -0
- package/dist/node_modules/recharts/es6/animation/useAnimationStartSnapshot.js +20 -0
- package/dist/node_modules/recharts/es6/cartesian/cartesianViewBoxToTrapezoid.js +14 -0
- package/dist/node_modules/recharts/es6/cartesian/getCartesianPosition.js +141 -0
- package/dist/node_modules/recharts/es6/chart/CategoricalChart.js +62 -0
- package/dist/node_modules/recharts/es6/chart/PieChart.js +62 -0
- package/dist/node_modules/recharts/es6/chart/PolarChart.js +144 -0
- package/dist/node_modules/recharts/es6/chart/RechartsWrapper.js +297 -0
- package/dist/node_modules/recharts/es6/component/Cell.js +5 -0
- package/dist/node_modules/recharts/es6/component/Label.js +262 -0
- package/dist/node_modules/recharts/es6/component/LabelList.js +101 -0
- package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +219 -0
- package/dist/node_modules/recharts/es6/component/Text.js +240 -0
- package/dist/node_modules/recharts/es6/component/responsiveContainerUtils.js +43 -0
- package/dist/node_modules/recharts/es6/container/ClipPathProvider.js +63 -0
- package/dist/node_modules/recharts/es6/container/Layer.js +42 -0
- package/dist/node_modules/recharts/es6/container/RootSurface.js +90 -0
- package/dist/node_modules/recharts/es6/container/Surface.js +51 -0
- package/dist/node_modules/recharts/es6/context/PanoramaContext.js +5 -0
- package/dist/node_modules/recharts/es6/context/RegisterGraphicalItemId.js +12 -0
- package/dist/node_modules/recharts/es6/context/accessibilityContext.js +8 -0
- package/dist/node_modules/recharts/es6/context/chartDataContext.js +14 -0
- package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +44 -0
- package/dist/node_modules/recharts/es6/context/legendPortalContext.js +5 -0
- package/dist/node_modules/recharts/es6/context/tooltipContext.js +33 -0
- package/dist/node_modules/recharts/es6/context/tooltipPortalContext.js +5 -0
- package/dist/node_modules/recharts/es6/hooks.js +6 -0
- package/dist/node_modules/recharts/es6/polar/Pie.js +486 -0
- package/dist/node_modules/recharts/es6/polar/defaultPolarAngleAxisProps.js +13 -0
- package/dist/node_modules/recharts/es6/polar/defaultPolarRadiusAxisProps.js +15 -0
- package/dist/node_modules/recharts/es6/shape/Curve.js +128 -0
- package/dist/node_modules/recharts/es6/shape/Sector.js +151 -0
- package/dist/node_modules/recharts/es6/state/RechartsReduxContext.js +5 -0
- package/dist/node_modules/recharts/es6/state/RechartsStoreProvider.js +20 -0
- package/dist/node_modules/recharts/es6/state/ReportChartProps.js +12 -0
- package/dist/node_modules/recharts/es6/state/ReportEventSettings.js +13 -0
- package/dist/node_modules/recharts/es6/state/ReportMainChartProps.js +15 -0
- package/dist/node_modules/recharts/es6/state/ReportPolarOptions.js +12 -0
- package/dist/node_modules/recharts/es6/state/SetGraphicalItem.js +17 -0
- package/dist/node_modules/recharts/es6/state/SetLegendPayload.js +18 -0
- package/dist/node_modules/recharts/es6/state/SetTooltipEntrySettings.js +18 -0
- package/dist/node_modules/recharts/es6/state/brushSlice.js +27 -0
- package/dist/node_modules/recharts/es6/state/cartesianAxisSlice.js +148 -0
- package/dist/node_modules/recharts/es6/state/chartDataSlice.js +35 -0
- package/dist/node_modules/recharts/es6/state/errorBarSlice.js +26 -0
- package/dist/node_modules/recharts/es6/state/eventSettingsSlice.js +19 -0
- package/dist/node_modules/recharts/es6/state/externalEventsMiddleware.js +58 -0
- package/dist/node_modules/recharts/es6/state/graphicalItemsSlice.js +61 -0
- package/dist/node_modules/recharts/es6/state/hooks.js +19 -0
- package/dist/node_modules/recharts/es6/state/keyboardEventsMiddleware.js +119 -0
- package/dist/node_modules/recharts/es6/state/layoutSlice.js +38 -0
- package/dist/node_modules/recharts/es6/state/legendSlice.js +57 -0
- package/dist/node_modules/recharts/es6/state/mouseEventsMiddleware.js +52 -0
- package/dist/node_modules/recharts/es6/state/optionsSlice.js +28 -0
- package/dist/node_modules/recharts/es6/state/polarAxisSlice.js +31 -0
- package/dist/node_modules/recharts/es6/state/polarOptionsSlice.js +12 -0
- package/dist/node_modules/recharts/es6/state/reduxDevtoolsJsonStringifyReplacer.js +6 -0
- package/dist/node_modules/recharts/es6/state/referenceElementsSlice.js +44 -0
- package/dist/node_modules/recharts/es6/state/renderedTicksSlice.js +26 -0
- package/dist/node_modules/recharts/es6/state/rootPropsSlice.js +28 -0
- package/dist/node_modules/recharts/es6/state/selectors/arrayEqualityCheck.js +16 -0
- package/dist/node_modules/recharts/es6/state/selectors/axisSelectors.js +925 -0
- package/dist/node_modules/recharts/es6/state/selectors/brushSelectors.js +14 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineActiveLabel.js +9 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineActiveTooltipIndex.js +41 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineAxisRangeWithReverse.js +7 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineCheckedDomain.js +22 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineConfiguredScale.js +27 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineCoordinateForDefaultIndex.js +24 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineDisplayedStackedData.js +20 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineInverseScaleFunction.js +8 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineRealScaleType.js +20 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineTooltipInteractionState.js +78 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayload.js +137 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayloadConfigurations.js +20 -0
- package/dist/node_modules/recharts/es6/state/selectors/containerSelectors.js +7 -0
- package/dist/node_modules/recharts/es6/state/selectors/dataSelectors.js +27 -0
- package/dist/node_modules/recharts/es6/state/selectors/legendSelectors.js +11 -0
- package/dist/node_modules/recharts/es6/state/selectors/numberDomainEqualityCheck.js +4 -0
- package/dist/node_modules/recharts/es6/state/selectors/pickAxisId.js +4 -0
- package/dist/node_modules/recharts/es6/state/selectors/pickAxisType.js +4 -0
- package/dist/node_modules/recharts/es6/state/selectors/pieSelectors.js +78 -0
- package/dist/node_modules/recharts/es6/state/selectors/polarAxisSelectors.js +147 -0
- package/dist/node_modules/recharts/es6/state/selectors/polarSelectors.js +36 -0
- package/dist/node_modules/recharts/es6/state/selectors/rootPropsSelectors.js +10 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectActivePropsFromChartPointer.js +11 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectAllAxes.js +6 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectChartOffset.js +11 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js +123 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectPlotArea.js +15 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxisId.js +4 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxisType.js +8 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipEventType.js +17 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipPayloadSearcher.js +4 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipSettings.js +4 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipState.js +4 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectors.js +62 -0
- package/dist/node_modules/recharts/es6/state/selectors/tooltipSelectors.js +107 -0
- package/dist/node_modules/recharts/es6/state/selectors/touchSelectors.js +15 -0
- package/dist/node_modules/recharts/es6/state/store.js +79 -0
- package/dist/node_modules/recharts/es6/state/tooltipSlice.js +106 -0
- package/dist/node_modules/recharts/es6/state/touchEventsMiddleware.js +72 -0
- package/dist/node_modules/recharts/es6/state/types/StackedGraphicalItem.js +6 -0
- package/dist/node_modules/recharts/es6/state/zIndexSlice.js +102 -0
- package/dist/node_modules/recharts/es6/synchronisation/useChartSynchronisation.js +183 -0
- package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js +71 -0
- package/dist/node_modules/recharts/es6/util/ChartUtils.js +185 -0
- package/dist/node_modules/recharts/es6/util/Constants.js +7 -0
- package/dist/node_modules/recharts/es6/util/DOMUtils.js +89 -0
- package/dist/node_modules/recharts/es6/util/DataUtils.js +57 -0
- package/dist/node_modules/recharts/es6/util/Events.js +7 -0
- package/dist/node_modules/recharts/es6/util/Global.js +6 -0
- package/dist/node_modules/recharts/es6/util/LRUCache.js +44 -0
- package/dist/node_modules/recharts/es6/util/LogUtils.js +14 -0
- package/dist/node_modules/recharts/es6/util/PolarUtils.js +113 -0
- package/dist/node_modules/recharts/es6/util/ReactUtils.js +24 -0
- package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js +151 -0
- package/dist/node_modules/recharts/es6/util/createEventProxy.js +15 -0
- package/dist/node_modules/recharts/es6/util/excludeEventProps.js +10 -0
- package/dist/node_modules/recharts/es6/util/getActiveCoordinate.js +141 -0
- package/dist/node_modules/recharts/es6/util/getAxisTypeBasedOnLayout.js +10 -0
- package/dist/node_modules/recharts/es6/util/getClassNameFromUnknown.js +6 -0
- package/dist/node_modules/recharts/es6/util/getRelativeCoordinate.js +31 -0
- package/dist/node_modules/recharts/es6/util/getSliced.js +6 -0
- package/dist/node_modules/recharts/es6/util/isDomainSpecifiedByUser.js +131 -0
- package/dist/node_modules/recharts/es6/util/isWellBehavedNumber.js +10 -0
- package/dist/node_modules/recharts/es6/util/propsAreEqual.js +43 -0
- package/dist/node_modules/recharts/es6/util/resolveDefaultProps.js +45 -0
- package/dist/node_modules/recharts/es6/util/round.js +17 -0
- package/dist/node_modules/recharts/es6/util/scale/RechartsScale.js +44 -0
- package/dist/node_modules/recharts/es6/util/scale/createCategoricalInverse.js +29 -0
- package/dist/node_modules/recharts/es6/util/scale/getNiceTickValues.js +119 -0
- package/dist/node_modules/recharts/es6/util/scale/util/arithmetic.js +14 -0
- package/dist/node_modules/recharts/es6/util/stacks/getStackSeriesIdentifier.js +6 -0
- package/dist/node_modules/recharts/es6/util/svgPropertiesAndEvents.js +12 -0
- package/dist/node_modules/recharts/es6/util/svgPropertiesNoEvents.js +340 -0
- package/dist/node_modules/recharts/es6/util/types.js +25 -0
- package/dist/node_modules/recharts/es6/util/useAnimationId.js +9 -0
- package/dist/node_modules/recharts/es6/util/useId.js +51 -0
- package/dist/node_modules/recharts/es6/util/usePrefersReducedMotion.js +58 -0
- package/dist/node_modules/recharts/es6/util/useReportScale.js +57 -0
- package/dist/node_modules/recharts/es6/util/useUniqueId.js +8 -0
- package/dist/node_modules/recharts/es6/zIndex/DefaultZIndexes.js +70 -0
- package/dist/node_modules/recharts/es6/zIndex/ZIndexLayer.js +47 -0
- package/dist/node_modules/recharts/es6/zIndex/ZIndexPortal.js +40 -0
- package/dist/node_modules/recharts/es6/zIndex/zIndexSelectors.js +21 -0
- package/dist/node_modules/redux/dist/redux.js +258 -0
- package/dist/node_modules/redux-thunk/dist/redux-thunk.js +8 -0
- package/dist/node_modules/reselect/dist/reselect.js +226 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +67 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +66 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +67 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +55 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +66 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +65 -0
- package/dist/node_modules/use-sync-external-store/shim/index.js +10 -0
- package/dist/node_modules/use-sync-external-store/shim/with-selector.js +10 -0
- package/dist/node_modules/use-sync-external-store/with-selector.js +10 -0
- package/dist/node_modules/victory-vendor/es/d3-scale.js +47 -0
- package/dist/primitives/donut-chart/donut-chart.d.ts +32 -0
- package/dist/primitives/donut-chart/donut-chart.d.ts.map +1 -0
- package/dist/primitives/donut-chart/donut-chart.js +111 -0
- package/dist/primitives/donut-chart/index.d.ts +2 -0
- package/dist/primitives/donut-chart/index.d.ts.map +1 -0
- package/dist/styles/components.css +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { configureStore as i, autoBatchEnhancer as m } from "../../../@reduxjs/toolkit/dist/redux-toolkit.modern.js";
|
|
2
|
+
import { optionsReducer as a } from "./optionsSlice.js";
|
|
3
|
+
import { tooltipReducer as d } from "./tooltipSlice.js";
|
|
4
|
+
import { chartDataReducer as c } from "./chartDataSlice.js";
|
|
5
|
+
import { chartLayoutReducer as n } from "./layoutSlice.js";
|
|
6
|
+
import { mouseClickMiddleware as s, mouseMoveMiddleware as p } from "./mouseEventsMiddleware.js";
|
|
7
|
+
import { reduxDevtoolsJsonStringifyReplacer as u } from "./reduxDevtoolsJsonStringifyReplacer.js";
|
|
8
|
+
import { cartesianAxisReducer as l } from "./cartesianAxisSlice.js";
|
|
9
|
+
import { graphicalItemsReducer as f } from "./graphicalItemsSlice.js";
|
|
10
|
+
import { referenceElementsReducer as R } from "./referenceElementsSlice.js";
|
|
11
|
+
import { brushReducer as h } from "./brushSlice.js";
|
|
12
|
+
import { legendReducer as v } from "./legendSlice.js";
|
|
13
|
+
import { rootPropsReducer as w } from "./rootPropsSlice.js";
|
|
14
|
+
import { polarAxisReducer as g } from "./polarAxisSlice.js";
|
|
15
|
+
import { polarOptionsReducer as x } from "./polarOptionsSlice.js";
|
|
16
|
+
import { keyboardEventsMiddleware as S } from "./keyboardEventsMiddleware.js";
|
|
17
|
+
import { externalEventsMiddleware as b } from "./externalEventsMiddleware.js";
|
|
18
|
+
import { touchEventMiddleware as k } from "./touchEventsMiddleware.js";
|
|
19
|
+
import { errorBarReducer as y } from "./errorBarSlice.js";
|
|
20
|
+
import { zIndexReducer as E } from "./zIndexSlice.js";
|
|
21
|
+
import { eventSettingsReducer as M } from "./eventSettingsSlice.js";
|
|
22
|
+
import { renderedTicksReducer as z } from "./renderedTicksSlice.js";
|
|
23
|
+
import { combineReducers as A } from "../../../redux/dist/redux.js";
|
|
24
|
+
var C = A({
|
|
25
|
+
brush: h,
|
|
26
|
+
cartesianAxis: l,
|
|
27
|
+
chartData: c,
|
|
28
|
+
errorBars: y,
|
|
29
|
+
eventSettings: M,
|
|
30
|
+
graphicalItems: f,
|
|
31
|
+
layout: n,
|
|
32
|
+
legend: v,
|
|
33
|
+
options: a,
|
|
34
|
+
polarAxis: g,
|
|
35
|
+
polarOptions: x,
|
|
36
|
+
referenceElements: R,
|
|
37
|
+
renderedTicks: z,
|
|
38
|
+
rootProps: w,
|
|
39
|
+
tooltip: d,
|
|
40
|
+
zIndex: E
|
|
41
|
+
}), ee = function(o) {
|
|
42
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Chart";
|
|
43
|
+
return i({
|
|
44
|
+
reducer: C,
|
|
45
|
+
// redux-toolkit v1 types are unhappy with the preloadedState type. Remove the `as any` when bumping to v2
|
|
46
|
+
preloadedState: o,
|
|
47
|
+
// @ts-expect-error redux-toolkit v1 types are unhappy with the middleware array. Remove this comment when bumping to v2
|
|
48
|
+
middleware: (r) => {
|
|
49
|
+
var e;
|
|
50
|
+
return r({
|
|
51
|
+
serializableCheck: !1,
|
|
52
|
+
immutableCheck: !["commonjs", "es6", "production"].includes((e = "es6") !== null && e !== void 0 ? e : "")
|
|
53
|
+
}).concat([s.middleware, p.middleware, S.middleware, b.middleware, k.middleware]);
|
|
54
|
+
},
|
|
55
|
+
/*
|
|
56
|
+
* I can't find out how to satisfy typescript here.
|
|
57
|
+
* We return `EnhancerArray<[StoreEnhancer<{}, {}>, StoreEnhancer]>` from this function,
|
|
58
|
+
* but the types say we should return `EnhancerArray<StoreEnhancer<{}, {}>`.
|
|
59
|
+
* Looks like it's badly inferred generics, but it won't allow me to provide the correct type manually either.
|
|
60
|
+
* So let's just ignore the error for now.
|
|
61
|
+
*/
|
|
62
|
+
// @ts-expect-error mismatched generics
|
|
63
|
+
enhancers: (r) => {
|
|
64
|
+
var e = r;
|
|
65
|
+
return typeof r == "function" && (e = r()), e.concat(m({
|
|
66
|
+
type: "raf"
|
|
67
|
+
}));
|
|
68
|
+
},
|
|
69
|
+
devTools: {
|
|
70
|
+
serialize: {
|
|
71
|
+
replacer: u
|
|
72
|
+
},
|
|
73
|
+
name: "recharts-".concat(t)
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
export {
|
|
78
|
+
ee as createRechartsStore
|
|
79
|
+
};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { createSlice as s, prepareAutoBatched as r } from "../../../@reduxjs/toolkit/dist/redux-toolkit.modern.js";
|
|
2
|
+
import { current as d, castDraft as o } from "../../../immer/dist/immer.js";
|
|
3
|
+
var n = {
|
|
4
|
+
active: !1,
|
|
5
|
+
index: null,
|
|
6
|
+
dataKey: void 0,
|
|
7
|
+
graphicalItemId: void 0,
|
|
8
|
+
coordinate: void 0
|
|
9
|
+
}, y = {
|
|
10
|
+
itemInteraction: {
|
|
11
|
+
click: n,
|
|
12
|
+
hover: n
|
|
13
|
+
},
|
|
14
|
+
axisInteraction: {
|
|
15
|
+
click: n,
|
|
16
|
+
hover: n
|
|
17
|
+
},
|
|
18
|
+
keyboardInteraction: n,
|
|
19
|
+
syncInteraction: {
|
|
20
|
+
active: !1,
|
|
21
|
+
index: null,
|
|
22
|
+
dataKey: void 0,
|
|
23
|
+
label: void 0,
|
|
24
|
+
coordinate: void 0,
|
|
25
|
+
sourceViewBox: void 0,
|
|
26
|
+
graphicalItemId: void 0
|
|
27
|
+
},
|
|
28
|
+
tooltipItemPayloads: [],
|
|
29
|
+
settings: {
|
|
30
|
+
shared: void 0,
|
|
31
|
+
trigger: "hover",
|
|
32
|
+
axisId: 0,
|
|
33
|
+
active: !1,
|
|
34
|
+
defaultIndex: void 0
|
|
35
|
+
}
|
|
36
|
+
}, l = s({
|
|
37
|
+
name: "tooltip",
|
|
38
|
+
initialState: y,
|
|
39
|
+
reducers: {
|
|
40
|
+
addTooltipEntrySettings: {
|
|
41
|
+
reducer(e, t) {
|
|
42
|
+
e.tooltipItemPayloads.push(o(t.payload));
|
|
43
|
+
},
|
|
44
|
+
prepare: r()
|
|
45
|
+
},
|
|
46
|
+
replaceTooltipEntrySettings: {
|
|
47
|
+
reducer(e, t) {
|
|
48
|
+
var i = t.payload, I = i.prev, v = i.next, c = d(e).tooltipItemPayloads.indexOf(o(I));
|
|
49
|
+
c > -1 && (e.tooltipItemPayloads[c] = o(v));
|
|
50
|
+
},
|
|
51
|
+
prepare: r()
|
|
52
|
+
},
|
|
53
|
+
removeTooltipEntrySettings: {
|
|
54
|
+
reducer(e, t) {
|
|
55
|
+
var i = d(e).tooltipItemPayloads.indexOf(o(t.payload));
|
|
56
|
+
i > -1 && e.tooltipItemPayloads.splice(i, 1);
|
|
57
|
+
},
|
|
58
|
+
prepare: r()
|
|
59
|
+
},
|
|
60
|
+
setTooltipSettingsState(e, t) {
|
|
61
|
+
e.settings = t.payload;
|
|
62
|
+
},
|
|
63
|
+
setActiveMouseOverItemIndex(e, t) {
|
|
64
|
+
e.syncInteraction.active = !1, e.syncInteraction.sourceViewBox = void 0, e.keyboardInteraction.active = !1, e.itemInteraction.hover.active = !0, e.itemInteraction.hover.index = t.payload.activeIndex, e.itemInteraction.hover.dataKey = t.payload.activeDataKey, e.itemInteraction.hover.graphicalItemId = t.payload.activeGraphicalItemId, e.itemInteraction.hover.coordinate = t.payload.activeCoordinate;
|
|
65
|
+
},
|
|
66
|
+
mouseLeaveChart(e) {
|
|
67
|
+
e.itemInteraction.hover.active = !1, e.axisInteraction.hover.active = !1;
|
|
68
|
+
},
|
|
69
|
+
mouseLeaveItem(e) {
|
|
70
|
+
e.itemInteraction.hover.active = !1;
|
|
71
|
+
},
|
|
72
|
+
setActiveClickItemIndex(e, t) {
|
|
73
|
+
e.syncInteraction.active = !1, e.syncInteraction.sourceViewBox = void 0, e.itemInteraction.click.active = !0, e.keyboardInteraction.active = !1, e.itemInteraction.click.index = t.payload.activeIndex, e.itemInteraction.click.dataKey = t.payload.activeDataKey, e.itemInteraction.click.graphicalItemId = t.payload.activeGraphicalItemId, e.itemInteraction.click.coordinate = t.payload.activeCoordinate;
|
|
74
|
+
},
|
|
75
|
+
setMouseOverAxisIndex(e, t) {
|
|
76
|
+
e.syncInteraction.active = !1, e.syncInteraction.sourceViewBox = void 0, e.axisInteraction.hover.active = !0, e.keyboardInteraction.active = !1, e.axisInteraction.hover.index = t.payload.activeIndex, e.axisInteraction.hover.dataKey = t.payload.activeDataKey, e.axisInteraction.hover.coordinate = t.payload.activeCoordinate;
|
|
77
|
+
},
|
|
78
|
+
setMouseClickAxisIndex(e, t) {
|
|
79
|
+
e.syncInteraction.active = !1, e.syncInteraction.sourceViewBox = void 0, e.keyboardInteraction.active = !1, e.axisInteraction.click.active = !0, e.axisInteraction.click.index = t.payload.activeIndex, e.axisInteraction.click.dataKey = t.payload.activeDataKey, e.axisInteraction.click.coordinate = t.payload.activeCoordinate;
|
|
80
|
+
},
|
|
81
|
+
setSyncInteraction(e, t) {
|
|
82
|
+
e.syncInteraction = t.payload;
|
|
83
|
+
},
|
|
84
|
+
setKeyboardInteraction(e, t) {
|
|
85
|
+
e.keyboardInteraction.active = t.payload.active, e.keyboardInteraction.index = t.payload.activeIndex, e.keyboardInteraction.coordinate = t.payload.activeCoordinate;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}), a = l.actions, u = a.addTooltipEntrySettings, m = a.replaceTooltipEntrySettings, f = a.removeTooltipEntrySettings;
|
|
89
|
+
a.setTooltipSettingsState;
|
|
90
|
+
var h = a.setActiveMouseOverItemIndex, k = a.mouseLeaveItem, S = a.mouseLeaveChart, g = a.setActiveClickItemIndex, C = a.setMouseOverAxisIndex, A = a.setMouseClickAxisIndex, K = a.setSyncInteraction, b = a.setKeyboardInteraction, T = l.reducer;
|
|
91
|
+
export {
|
|
92
|
+
u as addTooltipEntrySettings,
|
|
93
|
+
y as initialState,
|
|
94
|
+
S as mouseLeaveChart,
|
|
95
|
+
k as mouseLeaveItem,
|
|
96
|
+
n as noInteraction,
|
|
97
|
+
f as removeTooltipEntrySettings,
|
|
98
|
+
m as replaceTooltipEntrySettings,
|
|
99
|
+
g as setActiveClickItemIndex,
|
|
100
|
+
h as setActiveMouseOverItemIndex,
|
|
101
|
+
b as setKeyboardInteraction,
|
|
102
|
+
A as setMouseClickAxisIndex,
|
|
103
|
+
C as setMouseOverAxisIndex,
|
|
104
|
+
K as setSyncInteraction,
|
|
105
|
+
T as tooltipReducer
|
|
106
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { createAction as S, createListenerMiddleware as F } from "../../../@reduxjs/toolkit/dist/redux-toolkit.modern.js";
|
|
2
|
+
import { setMouseOverAxisIndex as b, setActiveMouseOverItemIndex as R } from "./tooltipSlice.js";
|
|
3
|
+
import { selectActivePropsFromChartPointer as X } from "./selectors/selectActivePropsFromChartPointer.js";
|
|
4
|
+
import { getRelativeCoordinate as g } from "../util/getRelativeCoordinate.js";
|
|
5
|
+
import { selectTooltipEventType as G } from "./selectors/selectTooltipEventType.js";
|
|
6
|
+
import { DATA_ITEM_INDEX_ATTRIBUTE_NAME as K, DATA_ITEM_GRAPHICAL_ITEM_ID_ATTRIBUTE_NAME as L } from "../util/Constants.js";
|
|
7
|
+
import { selectTooltipCoordinate as N } from "./selectors/touchSelectors.js";
|
|
8
|
+
import { selectAllGraphicalItemsSettings as Y } from "./selectors/tooltipSelectors.js";
|
|
9
|
+
import { createEventProxy as w } from "../util/createEventProxy.js";
|
|
10
|
+
var B = S("touchMove"), O = F(), l = null, t = null, I = null, i = null;
|
|
11
|
+
O.startListening({
|
|
12
|
+
actionCreator: B,
|
|
13
|
+
effect: (M, o) => {
|
|
14
|
+
var r = M.payload;
|
|
15
|
+
if (!(r.touches == null || r.touches.length === 0)) {
|
|
16
|
+
i = w(r);
|
|
17
|
+
var x = o.getState(), T = x.eventSettings, a = T.throttleDelay, A = T.throttledEvents, E = A === "all" || A.includes("touchmove");
|
|
18
|
+
l !== null && (cancelAnimationFrame(l), l = null), t !== null && (typeof a != "number" || !E) && (clearTimeout(t), t = null), I = Array.from(r.touches).map((e) => g({
|
|
19
|
+
clientX: e.clientX,
|
|
20
|
+
clientY: e.clientY,
|
|
21
|
+
currentTarget: r.currentTarget
|
|
22
|
+
}));
|
|
23
|
+
var u = () => {
|
|
24
|
+
if (i != null) {
|
|
25
|
+
var e = o.getState(), p = G(e, e.tooltip.settings.shared);
|
|
26
|
+
if (p === "axis") {
|
|
27
|
+
var m, h = (m = I) === null || m === void 0 ? void 0 : m[0];
|
|
28
|
+
if (h == null) {
|
|
29
|
+
l = null, t = null;
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
var n = X(e, h);
|
|
33
|
+
(n == null ? void 0 : n.activeIndex) != null && o.dispatch(b({
|
|
34
|
+
activeIndex: n.activeIndex,
|
|
35
|
+
activeDataKey: void 0,
|
|
36
|
+
activeCoordinate: n.activeCoordinate
|
|
37
|
+
}));
|
|
38
|
+
} else if (p === "item") {
|
|
39
|
+
var d, f = i.touches[0];
|
|
40
|
+
if (document.elementFromPoint == null || f == null)
|
|
41
|
+
return;
|
|
42
|
+
var v = document.elementFromPoint(f.clientX, f.clientY);
|
|
43
|
+
if (!v || !v.getAttribute)
|
|
44
|
+
return;
|
|
45
|
+
var s = v.getAttribute(K), c = (d = v.getAttribute(L)) !== null && d !== void 0 ? d : void 0, y = Y(e).find((_) => _.id === c);
|
|
46
|
+
if (s == null || y == null || c == null)
|
|
47
|
+
return;
|
|
48
|
+
var D = y.dataKey, C = N(e, s, c);
|
|
49
|
+
o.dispatch(R({
|
|
50
|
+
activeDataKey: D,
|
|
51
|
+
activeIndex: s,
|
|
52
|
+
activeCoordinate: C,
|
|
53
|
+
activeGraphicalItemId: c
|
|
54
|
+
}));
|
|
55
|
+
}
|
|
56
|
+
l = null, t = null;
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
if (!E) {
|
|
60
|
+
u();
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
a === "raf" ? l = requestAnimationFrame(u) : typeof a == "number" && t === null && (u(), i = null, t = setTimeout(() => {
|
|
64
|
+
i ? u() : (t = null, l = null);
|
|
65
|
+
}, a));
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
export {
|
|
70
|
+
B as touchEventAction,
|
|
71
|
+
O as touchEventMiddleware
|
|
72
|
+
};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { createSlice as s, prepareAutoBatched as o } from "../../../@reduxjs/toolkit/dist/redux-toolkit.modern.js";
|
|
2
|
+
import { castDraft as i } from "../../../immer/dist/immer.js";
|
|
3
|
+
import { DefaultZIndexes as c } from "../zIndex/DefaultZIndexes.js";
|
|
4
|
+
function l(e, n) {
|
|
5
|
+
var r = Object.keys(e);
|
|
6
|
+
if (Object.getOwnPropertySymbols) {
|
|
7
|
+
var t = Object.getOwnPropertySymbols(e);
|
|
8
|
+
n && (t = t.filter(function(a) {
|
|
9
|
+
return Object.getOwnPropertyDescriptor(e, a).enumerable;
|
|
10
|
+
})), r.push.apply(r, t);
|
|
11
|
+
}
|
|
12
|
+
return r;
|
|
13
|
+
}
|
|
14
|
+
function p(e) {
|
|
15
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
16
|
+
var r = arguments[n] != null ? arguments[n] : {};
|
|
17
|
+
n % 2 ? l(Object(r), !0).forEach(function(t) {
|
|
18
|
+
f(e, t, r[t]);
|
|
19
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : l(Object(r)).forEach(function(t) {
|
|
20
|
+
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
return e;
|
|
24
|
+
}
|
|
25
|
+
function f(e, n, r) {
|
|
26
|
+
return (n = x(n)) in e ? Object.defineProperty(e, n, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = r, e;
|
|
27
|
+
}
|
|
28
|
+
function x(e) {
|
|
29
|
+
var n = I(e, "string");
|
|
30
|
+
return typeof n == "symbol" ? n : n + "";
|
|
31
|
+
}
|
|
32
|
+
function I(e, n) {
|
|
33
|
+
if (typeof e != "object" || !e) return e;
|
|
34
|
+
var r = e[Symbol.toPrimitive];
|
|
35
|
+
if (r !== void 0) {
|
|
36
|
+
var t = r.call(e, n);
|
|
37
|
+
if (typeof t != "object") return t;
|
|
38
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
39
|
+
}
|
|
40
|
+
return (n === "string" ? String : Number)(e);
|
|
41
|
+
}
|
|
42
|
+
var P = {}, y = {
|
|
43
|
+
zIndexMap: Object.values(c).reduce((e, n) => p(p({}, e), {}, {
|
|
44
|
+
[n]: {
|
|
45
|
+
element: void 0,
|
|
46
|
+
panoramaElement: void 0,
|
|
47
|
+
consumers: 0
|
|
48
|
+
}
|
|
49
|
+
}), P)
|
|
50
|
+
}, z = new Set(Object.values(c));
|
|
51
|
+
function b(e) {
|
|
52
|
+
return z.has(e);
|
|
53
|
+
}
|
|
54
|
+
var m = s({
|
|
55
|
+
name: "zIndex",
|
|
56
|
+
initialState: y,
|
|
57
|
+
reducers: {
|
|
58
|
+
registerZIndexPortal: {
|
|
59
|
+
reducer: (e, n) => {
|
|
60
|
+
var r = n.payload.zIndex;
|
|
61
|
+
e.zIndexMap[r] ? e.zIndexMap[r].consumers += 1 : e.zIndexMap[r] = {
|
|
62
|
+
consumers: 1,
|
|
63
|
+
element: void 0,
|
|
64
|
+
panoramaElement: void 0
|
|
65
|
+
};
|
|
66
|
+
},
|
|
67
|
+
prepare: o()
|
|
68
|
+
},
|
|
69
|
+
unregisterZIndexPortal: {
|
|
70
|
+
reducer: (e, n) => {
|
|
71
|
+
var r = n.payload.zIndex;
|
|
72
|
+
e.zIndexMap[r] && (e.zIndexMap[r].consumers -= 1, e.zIndexMap[r].consumers <= 0 && !b(r) && delete e.zIndexMap[r]);
|
|
73
|
+
},
|
|
74
|
+
prepare: o()
|
|
75
|
+
},
|
|
76
|
+
registerZIndexPortalElement: {
|
|
77
|
+
reducer: (e, n) => {
|
|
78
|
+
var r = n.payload, t = r.zIndex, a = r.element, u = r.isPanorama;
|
|
79
|
+
e.zIndexMap[t] ? u ? e.zIndexMap[t].panoramaElement = i(a) : e.zIndexMap[t].element = i(a) : e.zIndexMap[t] = {
|
|
80
|
+
consumers: 0,
|
|
81
|
+
element: u ? void 0 : i(a),
|
|
82
|
+
panoramaElement: u ? i(a) : void 0
|
|
83
|
+
};
|
|
84
|
+
},
|
|
85
|
+
prepare: o()
|
|
86
|
+
},
|
|
87
|
+
unregisterZIndexPortalElement: {
|
|
88
|
+
reducer: (e, n) => {
|
|
89
|
+
var r = n.payload.zIndex;
|
|
90
|
+
e.zIndexMap[r] && (n.payload.isPanorama ? e.zIndexMap[r].panoramaElement = void 0 : e.zIndexMap[r].element = void 0);
|
|
91
|
+
},
|
|
92
|
+
prepare: o()
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}), d = m.actions, j = d.registerZIndexPortal, M = d.unregisterZIndexPortal, Z = d.registerZIndexPortalElement, E = d.unregisterZIndexPortalElement, w = m.reducer;
|
|
96
|
+
export {
|
|
97
|
+
j as registerZIndexPortal,
|
|
98
|
+
Z as registerZIndexPortalElement,
|
|
99
|
+
M as unregisterZIndexPortal,
|
|
100
|
+
E as unregisterZIndexPortalElement,
|
|
101
|
+
w as zIndexReducer
|
|
102
|
+
};
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { useEffect as h } from "react";
|
|
2
|
+
import { useAppDispatch as x, useAppSelector as d } from "../state/hooks.js";
|
|
3
|
+
import { selectSyncId as P, selectEventEmitter as j, selectSyncMethod as X } from "../state/selectors/rootPropsSelectors.js";
|
|
4
|
+
import { eventCenter as s, TOOLTIP_SYNC_EVENT as w, BRUSH_SYNC_EVENT as S } from "../util/Events.js";
|
|
5
|
+
import { createEventEmitter as q } from "../state/optionsSlice.js";
|
|
6
|
+
import { setSyncInteraction as v } from "../state/tooltipSlice.js";
|
|
7
|
+
import { selectTooltipAxisTicks as G } from "../state/selectors/tooltipSelectors.js";
|
|
8
|
+
import { useChartLayout as H, useViewBox as J } from "../context/chartLayoutContext.js";
|
|
9
|
+
import { setDataStartEndIndexes as Q } from "../state/chartDataSlice.js";
|
|
10
|
+
import { noop as I } from "../util/DataUtils.js";
|
|
11
|
+
var Z = ["x", "y"];
|
|
12
|
+
function E(e, i) {
|
|
13
|
+
var r = Object.keys(e);
|
|
14
|
+
if (Object.getOwnPropertySymbols) {
|
|
15
|
+
var t = Object.getOwnPropertySymbols(e);
|
|
16
|
+
i && (t = t.filter(function(o) {
|
|
17
|
+
return Object.getOwnPropertyDescriptor(e, o).enumerable;
|
|
18
|
+
})), r.push.apply(r, t);
|
|
19
|
+
}
|
|
20
|
+
return r;
|
|
21
|
+
}
|
|
22
|
+
function f(e) {
|
|
23
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
24
|
+
var r = arguments[i] != null ? arguments[i] : {};
|
|
25
|
+
i % 2 ? E(Object(r), !0).forEach(function(t) {
|
|
26
|
+
$(e, t, r[t]);
|
|
27
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : E(Object(r)).forEach(function(t) {
|
|
28
|
+
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
return e;
|
|
32
|
+
}
|
|
33
|
+
function $(e, i, r) {
|
|
34
|
+
return (i = ee(i)) in e ? Object.defineProperty(e, i, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[i] = r, e;
|
|
35
|
+
}
|
|
36
|
+
function ee(e) {
|
|
37
|
+
var i = re(e, "string");
|
|
38
|
+
return typeof i == "symbol" ? i : i + "";
|
|
39
|
+
}
|
|
40
|
+
function re(e, i) {
|
|
41
|
+
if (typeof e != "object" || !e) return e;
|
|
42
|
+
var r = e[Symbol.toPrimitive];
|
|
43
|
+
if (r !== void 0) {
|
|
44
|
+
var t = r.call(e, i);
|
|
45
|
+
if (typeof t != "object") return t;
|
|
46
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
47
|
+
}
|
|
48
|
+
return (i === "string" ? String : Number)(e);
|
|
49
|
+
}
|
|
50
|
+
function te(e, i) {
|
|
51
|
+
if (e == null) return {};
|
|
52
|
+
var r, t, o = ie(e, i);
|
|
53
|
+
if (Object.getOwnPropertySymbols) {
|
|
54
|
+
var l = Object.getOwnPropertySymbols(e);
|
|
55
|
+
for (t = 0; t < l.length; t++) r = l[t], i.indexOf(r) === -1 && {}.propertyIsEnumerable.call(e, r) && (o[r] = e[r]);
|
|
56
|
+
}
|
|
57
|
+
return o;
|
|
58
|
+
}
|
|
59
|
+
function ie(e, i) {
|
|
60
|
+
if (e == null) return {};
|
|
61
|
+
var r = {};
|
|
62
|
+
for (var t in e) if ({}.hasOwnProperty.call(e, t)) {
|
|
63
|
+
if (i.indexOf(t) !== -1) continue;
|
|
64
|
+
r[t] = e[t];
|
|
65
|
+
}
|
|
66
|
+
return r;
|
|
67
|
+
}
|
|
68
|
+
function ne() {
|
|
69
|
+
var e = d(P), i = d(j), r = x(), t = d(X), o = d(G), l = H(), a = J(), B = d((p) => p.rootProps.className);
|
|
70
|
+
h(() => {
|
|
71
|
+
if (e == null)
|
|
72
|
+
return I;
|
|
73
|
+
var p = (T, n, V) => {
|
|
74
|
+
if (i !== V && e === T) {
|
|
75
|
+
if (n.payload.active === !1) {
|
|
76
|
+
r(v({
|
|
77
|
+
active: !1,
|
|
78
|
+
coordinate: void 0,
|
|
79
|
+
dataKey: void 0,
|
|
80
|
+
index: null,
|
|
81
|
+
label: void 0,
|
|
82
|
+
sourceViewBox: void 0,
|
|
83
|
+
graphicalItemId: void 0
|
|
84
|
+
}));
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
if (t === "index") {
|
|
88
|
+
var c;
|
|
89
|
+
if (a && n !== null && n !== void 0 && (c = n.payload) !== null && c !== void 0 && c.coordinate && n.payload.sourceViewBox) {
|
|
90
|
+
var m = n.payload.coordinate, C = m.x, K = m.y, N = te(m, Z), y = n.payload.sourceViewBox, D = y.x, L = y.y, O = y.width, g = y.height, A = f(f({}, N), {}, {
|
|
91
|
+
x: a.x + (O ? (C - D) / O : 0) * a.width,
|
|
92
|
+
y: a.y + (g ? (K - L) / g : 0) * a.height
|
|
93
|
+
});
|
|
94
|
+
r(f(f({}, n), {}, {
|
|
95
|
+
payload: f(f({}, n.payload), {}, {
|
|
96
|
+
coordinate: A
|
|
97
|
+
})
|
|
98
|
+
}));
|
|
99
|
+
} else
|
|
100
|
+
r(n);
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
if (o != null) {
|
|
104
|
+
var u;
|
|
105
|
+
if (typeof t == "function") {
|
|
106
|
+
var k = {
|
|
107
|
+
activeTooltipIndex: n.payload.index == null ? void 0 : Number(n.payload.index),
|
|
108
|
+
isTooltipActive: n.payload.active,
|
|
109
|
+
activeIndex: n.payload.index == null ? void 0 : Number(n.payload.index),
|
|
110
|
+
activeLabel: n.payload.label,
|
|
111
|
+
activeDataKey: n.payload.dataKey,
|
|
112
|
+
activeCoordinate: n.payload.coordinate
|
|
113
|
+
}, M = t(o, k);
|
|
114
|
+
u = o[M];
|
|
115
|
+
} else t === "value" && (u = o.find((W) => String(W.value) === n.payload.label));
|
|
116
|
+
var b = n.payload.coordinate;
|
|
117
|
+
if (b == null || a == null) {
|
|
118
|
+
r(v({
|
|
119
|
+
active: !1,
|
|
120
|
+
coordinate: void 0,
|
|
121
|
+
dataKey: void 0,
|
|
122
|
+
index: null,
|
|
123
|
+
label: void 0,
|
|
124
|
+
sourceViewBox: void 0,
|
|
125
|
+
graphicalItemId: void 0
|
|
126
|
+
}));
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
if (u == null) {
|
|
130
|
+
r(v({
|
|
131
|
+
active: !1,
|
|
132
|
+
coordinate: void 0,
|
|
133
|
+
dataKey: void 0,
|
|
134
|
+
index: null,
|
|
135
|
+
label: void 0,
|
|
136
|
+
sourceViewBox: n.payload.sourceViewBox,
|
|
137
|
+
graphicalItemId: void 0
|
|
138
|
+
}));
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
var _ = b.x, Y = b.y, z = Math.min(_, a.x + a.width), F = Math.min(Y, a.y + a.height), R = {
|
|
142
|
+
x: l === "horizontal" ? u.coordinate : z,
|
|
143
|
+
y: l === "horizontal" ? F : u.coordinate
|
|
144
|
+
}, U = v({
|
|
145
|
+
active: n.payload.active,
|
|
146
|
+
coordinate: R,
|
|
147
|
+
dataKey: n.payload.dataKey,
|
|
148
|
+
index: String(u.index),
|
|
149
|
+
label: n.payload.label,
|
|
150
|
+
sourceViewBox: n.payload.sourceViewBox,
|
|
151
|
+
graphicalItemId: n.payload.graphicalItemId
|
|
152
|
+
});
|
|
153
|
+
r(U);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
return s.on(w, p), () => {
|
|
158
|
+
s.off(w, p);
|
|
159
|
+
};
|
|
160
|
+
}, [B, r, i, e, t, o, l, a]);
|
|
161
|
+
}
|
|
162
|
+
function ae() {
|
|
163
|
+
var e = d(P), i = d(j), r = x();
|
|
164
|
+
h(() => {
|
|
165
|
+
if (e == null)
|
|
166
|
+
return I;
|
|
167
|
+
var t = (o, l, a) => {
|
|
168
|
+
i !== a && e === o && r(Q(l));
|
|
169
|
+
};
|
|
170
|
+
return s.on(S, t), () => {
|
|
171
|
+
s.off(S, t);
|
|
172
|
+
};
|
|
173
|
+
}, [r, i, e]);
|
|
174
|
+
}
|
|
175
|
+
function me() {
|
|
176
|
+
var e = x();
|
|
177
|
+
h(() => {
|
|
178
|
+
e(q());
|
|
179
|
+
}, [e]), ne(), ae();
|
|
180
|
+
}
|
|
181
|
+
export {
|
|
182
|
+
me as useSynchronisedEventsFromOtherCharts
|
|
183
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import * as a from "react";
|
|
2
|
+
import { isValidElement as p, cloneElement as b } from "react";
|
|
3
|
+
import { Layer as u } from "../container/Layer.js";
|
|
4
|
+
function s(e, t) {
|
|
5
|
+
var r = Object.keys(e);
|
|
6
|
+
if (Object.getOwnPropertySymbols) {
|
|
7
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
8
|
+
t && (n = n.filter(function(o) {
|
|
9
|
+
return Object.getOwnPropertyDescriptor(e, o).enumerable;
|
|
10
|
+
})), r.push.apply(r, n);
|
|
11
|
+
}
|
|
12
|
+
return r;
|
|
13
|
+
}
|
|
14
|
+
function f(e) {
|
|
15
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
16
|
+
var r = arguments[t] != null ? arguments[t] : {};
|
|
17
|
+
t % 2 ? s(Object(r), !0).forEach(function(n) {
|
|
18
|
+
d(e, n, r[n]);
|
|
19
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : s(Object(r)).forEach(function(n) {
|
|
20
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
return e;
|
|
24
|
+
}
|
|
25
|
+
function d(e, t, r) {
|
|
26
|
+
return (t = h(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
27
|
+
}
|
|
28
|
+
function h(e) {
|
|
29
|
+
var t = O(e, "string");
|
|
30
|
+
return typeof t == "symbol" ? t : t + "";
|
|
31
|
+
}
|
|
32
|
+
function O(e, t) {
|
|
33
|
+
if (typeof e != "object" || !e) return e;
|
|
34
|
+
var r = e[Symbol.toPrimitive];
|
|
35
|
+
if (r !== void 0) {
|
|
36
|
+
var n = r.call(e, t);
|
|
37
|
+
if (typeof n != "object") return n;
|
|
38
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
39
|
+
}
|
|
40
|
+
return (t === "string" ? String : Number)(e);
|
|
41
|
+
}
|
|
42
|
+
function l(e, t) {
|
|
43
|
+
return f(f({}, t), e);
|
|
44
|
+
}
|
|
45
|
+
function g(e) {
|
|
46
|
+
return /* @__PURE__ */ p(e) ? e.props : e;
|
|
47
|
+
}
|
|
48
|
+
function j(e, t) {
|
|
49
|
+
return /* @__PURE__ */ b(e, l(g(e), t));
|
|
50
|
+
}
|
|
51
|
+
function P(e) {
|
|
52
|
+
if ("index" in e) {
|
|
53
|
+
var t = e.index;
|
|
54
|
+
return typeof t == "number" || typeof t == "string" ? t : void 0;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function S(e) {
|
|
58
|
+
return "isActive" in e && e.isActive === !0;
|
|
59
|
+
}
|
|
60
|
+
function N(e) {
|
|
61
|
+
var t = e.option, r = e.DefaultShape, n = e.shapeProps, o = e.activeClassName, m = o === void 0 ? "recharts-active-shape" : o, c = e.inActiveClassName, v = c === void 0 ? "recharts-shape" : c, y = P(n), i;
|
|
62
|
+
return /* @__PURE__ */ p(t) ? i = j(t, n) : t === r ? i = /* @__PURE__ */ a.createElement(r, n) : typeof t == "function" ? i = t(n, y) : typeof t == "object" ? i = /* @__PURE__ */ a.createElement(r, l(t, n)) : i = /* @__PURE__ */ a.createElement(r, n), S(n) ? /* @__PURE__ */ a.createElement(u, {
|
|
63
|
+
className: m
|
|
64
|
+
}, i) : /* @__PURE__ */ a.createElement(u, {
|
|
65
|
+
className: v
|
|
66
|
+
}, i);
|
|
67
|
+
}
|
|
68
|
+
export {
|
|
69
|
+
N as Shape,
|
|
70
|
+
g as getPropsFromShapeOption
|
|
71
|
+
};
|