@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.
- 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/primitives/hierarchical-select/HierarchicalSelect.d.ts.map +1 -1
- package/dist/primitives/hierarchical-select/HierarchicalSelect.js +47 -41
- package/dist/primitives/hierarchical-select/components/HierarchicalItem.d.ts.map +1 -1
- package/dist/primitives/hierarchical-select/components/HierarchicalItem.js +54 -48
- package/dist/primitives/hierarchical-select/utils/selection.d.ts.map +1 -1
- package/dist/primitives/hierarchical-select/utils/selection.js +63 -63
- package/dist/styles/components.css +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { clsx as ne } from "clsx";
|
|
2
|
+
import * as h from "react";
|
|
3
|
+
import { forwardRef as q, useContext as ie, createContext as ae, useMemo as oe, useRef as k, useImperativeHandle as ce, useState as le, useCallback as ue, useEffect as he } from "react";
|
|
4
|
+
import { isNumber as M, noop as se } from "../util/DataUtils.js";
|
|
5
|
+
import { warn as L } from "../util/LogUtils.js";
|
|
6
|
+
import { getDefaultWidthAndHeight as de, calculateChartDimensions as F, defaultResponsiveContainerProps as w, getInnerDivStyle as fe } from "./responsiveContainerUtils.js";
|
|
7
|
+
import { isPositiveNumber as O } from "../util/isWellBehavedNumber.js";
|
|
8
|
+
import { throttle as me } from "../../../es-toolkit/dist/compat/function/throttle.js";
|
|
9
|
+
var ge = ["aspect", "initialDimension", "width", "height", "minWidth", "minHeight", "maxHeight", "children", "debounce", "id", "className", "onResize", "style"];
|
|
10
|
+
function H() {
|
|
11
|
+
return H = Object.assign ? Object.assign.bind() : function(e) {
|
|
12
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
13
|
+
var t = arguments[r];
|
|
14
|
+
for (var n in t) ({}).hasOwnProperty.call(t, n) && (e[n] = t[n]);
|
|
15
|
+
}
|
|
16
|
+
return e;
|
|
17
|
+
}, H.apply(null, arguments);
|
|
18
|
+
}
|
|
19
|
+
function K(e, r) {
|
|
20
|
+
var t = Object.keys(e);
|
|
21
|
+
if (Object.getOwnPropertySymbols) {
|
|
22
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
23
|
+
r && (n = n.filter(function(i) {
|
|
24
|
+
return Object.getOwnPropertyDescriptor(e, i).enumerable;
|
|
25
|
+
})), t.push.apply(t, n);
|
|
26
|
+
}
|
|
27
|
+
return t;
|
|
28
|
+
}
|
|
29
|
+
function B(e) {
|
|
30
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
31
|
+
var t = arguments[r] != null ? arguments[r] : {};
|
|
32
|
+
r % 2 ? K(Object(t), !0).forEach(function(n) {
|
|
33
|
+
ve(e, n, t[n]);
|
|
34
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : K(Object(t)).forEach(function(n) {
|
|
35
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
return e;
|
|
39
|
+
}
|
|
40
|
+
function ve(e, r, t) {
|
|
41
|
+
return (r = ye(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
|
|
42
|
+
}
|
|
43
|
+
function ye(e) {
|
|
44
|
+
var r = be(e, "string");
|
|
45
|
+
return typeof r == "symbol" ? r : r + "";
|
|
46
|
+
}
|
|
47
|
+
function be(e, r) {
|
|
48
|
+
if (typeof e != "object" || !e) return e;
|
|
49
|
+
var t = e[Symbol.toPrimitive];
|
|
50
|
+
if (t !== void 0) {
|
|
51
|
+
var n = t.call(e, r);
|
|
52
|
+
if (typeof n != "object") return n;
|
|
53
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
54
|
+
}
|
|
55
|
+
return (r === "string" ? String : Number)(e);
|
|
56
|
+
}
|
|
57
|
+
function pe(e, r) {
|
|
58
|
+
return je(e) || He(e, r) || Oe(e, r) || we();
|
|
59
|
+
}
|
|
60
|
+
function we() {
|
|
61
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
62
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
63
|
+
}
|
|
64
|
+
function Oe(e, r) {
|
|
65
|
+
if (e) {
|
|
66
|
+
if (typeof e == "string") return U(e, r);
|
|
67
|
+
var t = {}.toString.call(e).slice(8, -1);
|
|
68
|
+
return t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set" ? Array.from(e) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? U(e, r) : void 0;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
function U(e, r) {
|
|
72
|
+
(r == null || r > e.length) && (r = e.length);
|
|
73
|
+
for (var t = 0, n = Array(r); t < r; t++) n[t] = e[t];
|
|
74
|
+
return n;
|
|
75
|
+
}
|
|
76
|
+
function He(e, r) {
|
|
77
|
+
var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
78
|
+
if (t != null) {
|
|
79
|
+
var n, i, a, o, c = [], l = !0, s = !1;
|
|
80
|
+
try {
|
|
81
|
+
if (a = (t = t.call(e)).next, r !== 0) for (; !(l = (n = a.call(t)).done) && (c.push(n.value), c.length !== r); l = !0) ;
|
|
82
|
+
} catch (m) {
|
|
83
|
+
s = !0, i = m;
|
|
84
|
+
} finally {
|
|
85
|
+
try {
|
|
86
|
+
if (!l && t.return != null && (o = t.return(), Object(o) !== o)) return;
|
|
87
|
+
} finally {
|
|
88
|
+
if (s) throw i;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
return c;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
function je(e) {
|
|
95
|
+
if (Array.isArray(e)) return e;
|
|
96
|
+
}
|
|
97
|
+
function Pe(e, r) {
|
|
98
|
+
if (e == null) return {};
|
|
99
|
+
var t, n, i = Re(e, r);
|
|
100
|
+
if (Object.getOwnPropertySymbols) {
|
|
101
|
+
var a = Object.getOwnPropertySymbols(e);
|
|
102
|
+
for (n = 0; n < a.length; n++) t = a[n], r.indexOf(t) === -1 && {}.propertyIsEnumerable.call(e, t) && (i[t] = e[t]);
|
|
103
|
+
}
|
|
104
|
+
return i;
|
|
105
|
+
}
|
|
106
|
+
function Re(e, r) {
|
|
107
|
+
if (e == null) return {};
|
|
108
|
+
var t = {};
|
|
109
|
+
for (var n in e) if ({}.hasOwnProperty.call(e, n)) {
|
|
110
|
+
if (r.indexOf(n) !== -1) continue;
|
|
111
|
+
t[n] = e[n];
|
|
112
|
+
}
|
|
113
|
+
return t;
|
|
114
|
+
}
|
|
115
|
+
var G = /* @__PURE__ */ ae(w.initialDimension);
|
|
116
|
+
function We(e) {
|
|
117
|
+
return O(e.width) && O(e.height);
|
|
118
|
+
}
|
|
119
|
+
function J(e) {
|
|
120
|
+
var r = e.children, t = e.width, n = e.height, i = oe(() => ({
|
|
121
|
+
width: t,
|
|
122
|
+
height: n
|
|
123
|
+
}), [t, n]);
|
|
124
|
+
return We(i) ? /* @__PURE__ */ h.createElement(G.Provider, {
|
|
125
|
+
value: i
|
|
126
|
+
}, r) : null;
|
|
127
|
+
}
|
|
128
|
+
var Ce = () => ie(G), xe = /* @__PURE__ */ q((e, r) => {
|
|
129
|
+
var t = e.aspect, n = e.initialDimension, i = n === void 0 ? w.initialDimension : n, a = e.width, o = e.height, c = e.minWidth, l = c === void 0 ? w.minWidth : c, s = e.minHeight, m = e.maxHeight, Q = e.children, C = e.debounce, j = C === void 0 ? w.debounce : C, x = e.id, V = e.className, X = e.onResize, S = e.style, Y = S === void 0 ? {} : S, Z = Pe(e, ge), d = k(null), P = k();
|
|
130
|
+
P.current = X, ce(r, () => d.current);
|
|
131
|
+
var ee = le({
|
|
132
|
+
containerWidth: i.width,
|
|
133
|
+
containerHeight: i.height
|
|
134
|
+
}), D = pe(ee, 2), z = D[0], te = D[1], R = ue((f, y) => {
|
|
135
|
+
te((u) => {
|
|
136
|
+
var b = Math.round(f), p = Math.round(y);
|
|
137
|
+
return u.containerWidth === b && u.containerHeight === p ? u : {
|
|
138
|
+
containerWidth: b,
|
|
139
|
+
containerHeight: p
|
|
140
|
+
};
|
|
141
|
+
});
|
|
142
|
+
}, []);
|
|
143
|
+
he(() => {
|
|
144
|
+
if (d.current == null || typeof ResizeObserver > "u")
|
|
145
|
+
return se;
|
|
146
|
+
var f = (re) => {
|
|
147
|
+
var W, I = re[0];
|
|
148
|
+
if (I != null) {
|
|
149
|
+
var T = I.contentRect, $ = T.width, N = T.height;
|
|
150
|
+
R($, N), (W = P.current) === null || W === void 0 || W.call(P, $, N);
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
j > 0 && (f = me(f, j, {
|
|
154
|
+
trailing: !0,
|
|
155
|
+
leading: !1
|
|
156
|
+
}));
|
|
157
|
+
var y = new ResizeObserver(f), u = d.current.getBoundingClientRect(), b = u.width, p = u.height;
|
|
158
|
+
return R(b, p), y.observe(d.current), () => {
|
|
159
|
+
y.disconnect();
|
|
160
|
+
};
|
|
161
|
+
}, [R, j]);
|
|
162
|
+
var A = z.containerWidth, E = z.containerHeight;
|
|
163
|
+
L(!t || t > 0, "The aspect(%s) must be greater than zero.", t);
|
|
164
|
+
var _ = F(A, E, {
|
|
165
|
+
width: a,
|
|
166
|
+
height: o,
|
|
167
|
+
aspect: t,
|
|
168
|
+
maxHeight: m
|
|
169
|
+
}), g = _.calculatedWidth, v = _.calculatedHeight;
|
|
170
|
+
return L(A < 0 || E < 0 || g != null && g > 0 || v != null && v > 0, `The width(%s) and height(%s) of chart should be greater than 0,
|
|
171
|
+
please check the style of container, or the props width(%s) and height(%s),
|
|
172
|
+
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
173
|
+
height and width.`, g, v, a, o, l, s, t), /* @__PURE__ */ h.createElement("div", H({
|
|
174
|
+
id: x ? "".concat(x) : void 0,
|
|
175
|
+
className: ne("recharts-responsive-container", V),
|
|
176
|
+
style: B(B({}, Y), {}, {
|
|
177
|
+
width: a,
|
|
178
|
+
height: o,
|
|
179
|
+
minWidth: l,
|
|
180
|
+
minHeight: s,
|
|
181
|
+
maxHeight: m
|
|
182
|
+
}),
|
|
183
|
+
ref: d
|
|
184
|
+
}, Z), /* @__PURE__ */ h.createElement("div", {
|
|
185
|
+
style: fe({
|
|
186
|
+
width: a,
|
|
187
|
+
height: o
|
|
188
|
+
})
|
|
189
|
+
}, /* @__PURE__ */ h.createElement(J, {
|
|
190
|
+
width: g,
|
|
191
|
+
height: v
|
|
192
|
+
}, Q)));
|
|
193
|
+
}), Te = /* @__PURE__ */ q((e, r) => {
|
|
194
|
+
var t = Ce();
|
|
195
|
+
if (O(t.width) && O(t.height))
|
|
196
|
+
return e.children;
|
|
197
|
+
var n = de({
|
|
198
|
+
width: e.width,
|
|
199
|
+
height: e.height,
|
|
200
|
+
aspect: e.aspect
|
|
201
|
+
}), i = n.width, a = n.height, o = F(void 0, void 0, {
|
|
202
|
+
width: i,
|
|
203
|
+
height: a,
|
|
204
|
+
aspect: e.aspect,
|
|
205
|
+
maxHeight: e.maxHeight
|
|
206
|
+
}), c = o.calculatedWidth, l = o.calculatedHeight;
|
|
207
|
+
return M(c) && M(l) ? /* @__PURE__ */ h.createElement(J, {
|
|
208
|
+
width: c,
|
|
209
|
+
height: l
|
|
210
|
+
}, e.children) : /* @__PURE__ */ h.createElement(xe, H({}, e, {
|
|
211
|
+
width: i,
|
|
212
|
+
height: a,
|
|
213
|
+
ref: r
|
|
214
|
+
}));
|
|
215
|
+
});
|
|
216
|
+
export {
|
|
217
|
+
Te as ResponsiveContainer,
|
|
218
|
+
Ce as useResponsiveContainerContext
|
|
219
|
+
};
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import * as E from "react";
|
|
2
|
+
import { forwardRef as X, useMemo as Y } from "react";
|
|
3
|
+
import { clsx as $ } from "clsx";
|
|
4
|
+
import { isNumOrStr as I, isNullish as O, isNumber as w } from "../util/DataUtils.js";
|
|
5
|
+
import { Global as q } from "../util/Global.js";
|
|
6
|
+
import { getStringSize as R } from "../util/DOMUtils.js";
|
|
7
|
+
import { reduceCSSCalc as T } from "../util/ReduceCSSCalc.js";
|
|
8
|
+
import { svgPropertiesAndEvents as J } from "../util/svgPropertiesAndEvents.js";
|
|
9
|
+
import { resolveDefaultProps as Q } from "../util/resolveDefaultProps.js";
|
|
10
|
+
import { isWellBehavedNumber as B } from "../util/isWellBehavedNumber.js";
|
|
11
|
+
var Z = ["x", "y", "lineHeight", "capHeight", "fill", "scaleToFit", "textAnchor", "verticalAnchor"], rr = ["dx", "dy", "angle", "className", "breakAll"];
|
|
12
|
+
function j() {
|
|
13
|
+
return j = Object.assign ? Object.assign.bind() : function(r) {
|
|
14
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
15
|
+
var t = arguments[e];
|
|
16
|
+
for (var a in t) ({}).hasOwnProperty.call(t, a) && (r[a] = t[a]);
|
|
17
|
+
}
|
|
18
|
+
return r;
|
|
19
|
+
}, j.apply(null, arguments);
|
|
20
|
+
}
|
|
21
|
+
function C(r, e) {
|
|
22
|
+
if (r == null) return {};
|
|
23
|
+
var t, a, n = tr(r, e);
|
|
24
|
+
if (Object.getOwnPropertySymbols) {
|
|
25
|
+
var i = Object.getOwnPropertySymbols(r);
|
|
26
|
+
for (a = 0; a < i.length; a++) t = i[a], e.indexOf(t) === -1 && {}.propertyIsEnumerable.call(r, t) && (n[t] = r[t]);
|
|
27
|
+
}
|
|
28
|
+
return n;
|
|
29
|
+
}
|
|
30
|
+
function tr(r, e) {
|
|
31
|
+
if (r == null) return {};
|
|
32
|
+
var t = {};
|
|
33
|
+
for (var a in r) if ({}.hasOwnProperty.call(r, a)) {
|
|
34
|
+
if (e.indexOf(a) !== -1) continue;
|
|
35
|
+
t[a] = r[a];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
}
|
|
39
|
+
function D(r, e) {
|
|
40
|
+
return lr(r) || nr(r, e) || ar(r, e) || er();
|
|
41
|
+
}
|
|
42
|
+
function er() {
|
|
43
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
44
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
45
|
+
}
|
|
46
|
+
function ar(r, e) {
|
|
47
|
+
if (r) {
|
|
48
|
+
if (typeof r == "string") return F(r, e);
|
|
49
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
50
|
+
return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? F(r, e) : void 0;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
function F(r, e) {
|
|
54
|
+
(e == null || e > r.length) && (e = r.length);
|
|
55
|
+
for (var t = 0, a = Array(e); t < e; t++) a[t] = r[t];
|
|
56
|
+
return a;
|
|
57
|
+
}
|
|
58
|
+
function nr(r, e) {
|
|
59
|
+
var t = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
|
|
60
|
+
if (t != null) {
|
|
61
|
+
var a, n, i, c, o = [], s = !0, u = !1;
|
|
62
|
+
try {
|
|
63
|
+
if (i = (t = t.call(r)).next, e === 0) {
|
|
64
|
+
if (Object(t) !== t) return;
|
|
65
|
+
s = !1;
|
|
66
|
+
} else for (; !(s = (a = i.call(t)).done) && (o.push(a.value), o.length !== e); s = !0) ;
|
|
67
|
+
} catch (f) {
|
|
68
|
+
u = !0, n = f;
|
|
69
|
+
} finally {
|
|
70
|
+
try {
|
|
71
|
+
if (!s && t.return != null && (c = t.return(), Object(c) !== c)) return;
|
|
72
|
+
} finally {
|
|
73
|
+
if (u) throw n;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return o;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
function lr(r) {
|
|
80
|
+
if (Array.isArray(r)) return r;
|
|
81
|
+
}
|
|
82
|
+
var U = /[ \f\n\r\t\v\u2028\u2029]+/, z = (r) => {
|
|
83
|
+
var e = r.children, t = r.breakAll, a = r.style;
|
|
84
|
+
try {
|
|
85
|
+
var n = [];
|
|
86
|
+
O(e) || (t ? n = e.toString().split("") : n = e.toString().split(U));
|
|
87
|
+
var i = n.map((o) => ({
|
|
88
|
+
word: o,
|
|
89
|
+
width: R(o, a).width
|
|
90
|
+
})), c = t ? 0 : R(" ", a).width;
|
|
91
|
+
return {
|
|
92
|
+
wordsWithComputedWidth: i,
|
|
93
|
+
spaceWidth: c
|
|
94
|
+
};
|
|
95
|
+
} catch {
|
|
96
|
+
return null;
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
function xr(r) {
|
|
100
|
+
return r === "start" || r === "middle" || r === "end" || r === "inherit";
|
|
101
|
+
}
|
|
102
|
+
function Ar(r) {
|
|
103
|
+
return O(r) || typeof r == "string" || typeof r == "number" || typeof r == "boolean";
|
|
104
|
+
}
|
|
105
|
+
var K = (r, e, t, a) => r.reduce((n, i) => {
|
|
106
|
+
var c = i.word, o = i.width, s = n[n.length - 1];
|
|
107
|
+
if (s && o != null && (e == null || a || s.width + o + t < Number(e)))
|
|
108
|
+
s.words.push(c), s.width += o + t;
|
|
109
|
+
else {
|
|
110
|
+
var u = {
|
|
111
|
+
words: [c],
|
|
112
|
+
width: o
|
|
113
|
+
};
|
|
114
|
+
n.push(u);
|
|
115
|
+
}
|
|
116
|
+
return n;
|
|
117
|
+
}, []), M = (r) => r.reduce((e, t) => e.width > t.width ? e : t), ir = "…", _ = (r, e, t, a, n, i, c, o) => {
|
|
118
|
+
var s = r.slice(0, e), u = z({
|
|
119
|
+
breakAll: t,
|
|
120
|
+
style: a,
|
|
121
|
+
children: s + ir
|
|
122
|
+
});
|
|
123
|
+
if (!u)
|
|
124
|
+
return [!1, []];
|
|
125
|
+
var f = K(u.wordsWithComputedWidth, i, c, o), l = f.length > n || M(f).width > Number(i);
|
|
126
|
+
return [l, f];
|
|
127
|
+
}, or = (r, e, t, a, n) => {
|
|
128
|
+
var i = r.maxLines, c = r.children, o = r.style, s = r.breakAll, u = w(i), f = String(c), l = K(e, a, t, n);
|
|
129
|
+
if (!u || n)
|
|
130
|
+
return l;
|
|
131
|
+
var m = l.length > i || M(l).width > Number(a);
|
|
132
|
+
if (!m)
|
|
133
|
+
return l;
|
|
134
|
+
for (var v = 0, d = f.length - 1, A = 0, L; v <= d && A <= f.length - 1; ) {
|
|
135
|
+
var p = Math.floor((v + d) / 2), k = p - 1, y = _(f, k, s, o, i, a, t, n), b = D(y, 2), h = b[0], g = b[1], S = _(f, p, s, o, i, a, t, n), N = D(S, 1), x = N[0];
|
|
136
|
+
if (!h && !x && (v = p + 1), h && x && (d = p - 1), !h && x) {
|
|
137
|
+
L = g;
|
|
138
|
+
break;
|
|
139
|
+
}
|
|
140
|
+
A++;
|
|
141
|
+
}
|
|
142
|
+
return L || l;
|
|
143
|
+
}, G = (r) => {
|
|
144
|
+
var e = O(r) ? [] : r.toString().split(U);
|
|
145
|
+
return [{
|
|
146
|
+
words: e,
|
|
147
|
+
width: void 0
|
|
148
|
+
}];
|
|
149
|
+
}, sr = (r) => {
|
|
150
|
+
var e = r.width, t = r.scaleToFit, a = r.children, n = r.style, i = r.breakAll, c = r.maxLines;
|
|
151
|
+
if ((e || t) && !q.isSsr) {
|
|
152
|
+
var o, s, u = z({
|
|
153
|
+
breakAll: i,
|
|
154
|
+
children: a,
|
|
155
|
+
style: n
|
|
156
|
+
});
|
|
157
|
+
if (u) {
|
|
158
|
+
var f = u.wordsWithComputedWidth, l = u.spaceWidth;
|
|
159
|
+
o = f, s = l;
|
|
160
|
+
} else
|
|
161
|
+
return G(a);
|
|
162
|
+
return or({
|
|
163
|
+
breakAll: i,
|
|
164
|
+
children: a,
|
|
165
|
+
maxLines: c,
|
|
166
|
+
style: n
|
|
167
|
+
}, o, s, e, !!t);
|
|
168
|
+
}
|
|
169
|
+
return G(a);
|
|
170
|
+
}, V = "#808080", cr = {
|
|
171
|
+
angle: 0,
|
|
172
|
+
breakAll: !1,
|
|
173
|
+
// Magic number from d3
|
|
174
|
+
capHeight: "0.71em",
|
|
175
|
+
fill: V,
|
|
176
|
+
lineHeight: "1em",
|
|
177
|
+
scaleToFit: !1,
|
|
178
|
+
textAnchor: "start",
|
|
179
|
+
// Maintain compat with existing charts / default SVG behavior
|
|
180
|
+
verticalAnchor: "end",
|
|
181
|
+
x: 0,
|
|
182
|
+
y: 0
|
|
183
|
+
}, ur = /* @__PURE__ */ X((r, e) => {
|
|
184
|
+
var t = Q(r, cr), a = t.x, n = t.y, i = t.lineHeight, c = t.capHeight, o = t.fill, s = t.scaleToFit, u = t.textAnchor, f = t.verticalAnchor, l = C(t, Z), m = Y(() => sr({
|
|
185
|
+
breakAll: l.breakAll,
|
|
186
|
+
children: l.children,
|
|
187
|
+
maxLines: l.maxLines,
|
|
188
|
+
scaleToFit: s,
|
|
189
|
+
style: l.style,
|
|
190
|
+
width: l.width
|
|
191
|
+
}), [l.breakAll, l.children, l.maxLines, s, l.style, l.width]), v = l.dx, d = l.dy, A = l.angle, L = l.className, p = l.breakAll, k = C(l, rr);
|
|
192
|
+
if (!I(a) || !I(n) || m.length === 0)
|
|
193
|
+
return null;
|
|
194
|
+
var y = Number(a) + (w(v) ? v : 0), b = Number(n) + (w(d) ? d : 0);
|
|
195
|
+
if (!B(y) || !B(b))
|
|
196
|
+
return null;
|
|
197
|
+
var h;
|
|
198
|
+
switch (f) {
|
|
199
|
+
case "start":
|
|
200
|
+
h = T("calc(".concat(c, ")"));
|
|
201
|
+
break;
|
|
202
|
+
case "middle":
|
|
203
|
+
h = T("calc(".concat((m.length - 1) / 2, " * -").concat(i, " + (").concat(c, " / 2))"));
|
|
204
|
+
break;
|
|
205
|
+
default:
|
|
206
|
+
h = T("calc(".concat(m.length - 1, " * -").concat(i, ")"));
|
|
207
|
+
break;
|
|
208
|
+
}
|
|
209
|
+
var g = [], S = m[0];
|
|
210
|
+
if (s && S != null) {
|
|
211
|
+
var N = S.width, x = l.width;
|
|
212
|
+
g.push("scale(".concat(w(x) && w(N) ? x / N : 1, ")"));
|
|
213
|
+
}
|
|
214
|
+
return A && g.push("rotate(".concat(A, ", ").concat(y, ", ").concat(b, ")")), g.length && (k.transform = g.join(" ")), /* @__PURE__ */ E.createElement("text", j({}, J(k), {
|
|
215
|
+
ref: e,
|
|
216
|
+
x: y,
|
|
217
|
+
y: b,
|
|
218
|
+
className: $("recharts-text", L),
|
|
219
|
+
textAnchor: u,
|
|
220
|
+
fill: o.includes("url") ? V : o
|
|
221
|
+
}), m.map((W, P) => {
|
|
222
|
+
var H = W.words.join(p ? "" : " ");
|
|
223
|
+
return (
|
|
224
|
+
// duplicate words will cause duplicate keys which is why we add the array index here
|
|
225
|
+
/* @__PURE__ */ E.createElement("tspan", {
|
|
226
|
+
x: y,
|
|
227
|
+
dy: P === 0 ? h : i,
|
|
228
|
+
key: "".concat(H, "-").concat(P)
|
|
229
|
+
}, H)
|
|
230
|
+
);
|
|
231
|
+
}));
|
|
232
|
+
});
|
|
233
|
+
ur.displayName = "Text";
|
|
234
|
+
export {
|
|
235
|
+
ur as Text,
|
|
236
|
+
sr as getWordsByLines,
|
|
237
|
+
Ar as isRenderableText,
|
|
238
|
+
xr as isValidTextAnchor,
|
|
239
|
+
cr as textDefaultProps
|
|
240
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { isPercent as f } from "../util/DataUtils.js";
|
|
2
|
+
var n = {
|
|
3
|
+
width: "100%",
|
|
4
|
+
height: "100%",
|
|
5
|
+
debounce: 0,
|
|
6
|
+
minWidth: 0,
|
|
7
|
+
initialDimension: {
|
|
8
|
+
width: -1,
|
|
9
|
+
height: -1
|
|
10
|
+
}
|
|
11
|
+
}, b = (t, a, h) => {
|
|
12
|
+
var i = h.width, e = i === void 0 ? n.width : i, r = h.height, g = r === void 0 ? n.height : r, l = h.aspect, u = h.maxHeight, v = f(e) ? t : Number(e), d = f(g) ? a : Number(g);
|
|
13
|
+
return l && l > 0 && (v ? d = v / l : d && (v = d * l), u && d != null && d > u && (d = u)), {
|
|
14
|
+
calculatedWidth: v,
|
|
15
|
+
calculatedHeight: d
|
|
16
|
+
};
|
|
17
|
+
}, o = {
|
|
18
|
+
width: 0,
|
|
19
|
+
height: 0,
|
|
20
|
+
overflow: "visible"
|
|
21
|
+
}, w = {
|
|
22
|
+
width: 0,
|
|
23
|
+
overflowX: "visible"
|
|
24
|
+
}, c = {
|
|
25
|
+
height: 0,
|
|
26
|
+
overflowY: "visible"
|
|
27
|
+
}, s = {}, H = (t) => {
|
|
28
|
+
var a = t.width, h = t.height, i = f(a), e = f(h);
|
|
29
|
+
return i && e ? o : i ? w : e ? c : s;
|
|
30
|
+
};
|
|
31
|
+
function W(t) {
|
|
32
|
+
var a = t.width, h = t.height, i = t.aspect, e = a, r = h;
|
|
33
|
+
return e === void 0 && r === void 0 ? (e = n.width, r = n.height) : e === void 0 ? e = i && i > 0 ? void 0 : n.width : r === void 0 && (r = i && i > 0 ? void 0 : n.height), {
|
|
34
|
+
width: e,
|
|
35
|
+
height: r
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
b as calculateChartDimensions,
|
|
40
|
+
n as defaultResponsiveContainerProps,
|
|
41
|
+
W as getDefaultWidthAndHeight,
|
|
42
|
+
H as getInnerDivStyle
|
|
43
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as f from "react";
|
|
2
|
+
import { useState as s, createContext as y } from "react";
|
|
3
|
+
import { uniqueId as m } from "../util/DataUtils.js";
|
|
4
|
+
import { usePlotArea as p } from "../hooks.js";
|
|
5
|
+
function v(t, r) {
|
|
6
|
+
return I(t) || g(t, r) || A(t, r) || b();
|
|
7
|
+
}
|
|
8
|
+
function b() {
|
|
9
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
10
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
11
|
+
}
|
|
12
|
+
function A(t, r) {
|
|
13
|
+
if (t) {
|
|
14
|
+
if (typeof t == "string") return h(t, r);
|
|
15
|
+
var e = {}.toString.call(t).slice(8, -1);
|
|
16
|
+
return e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set" ? Array.from(t) : e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e) ? h(t, r) : void 0;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
function h(t, r) {
|
|
20
|
+
(r == null || r > t.length) && (r = t.length);
|
|
21
|
+
for (var e = 0, a = Array(r); e < r; e++) a[e] = t[e];
|
|
22
|
+
return a;
|
|
23
|
+
}
|
|
24
|
+
function g(t, r) {
|
|
25
|
+
var e = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
26
|
+
if (e != null) {
|
|
27
|
+
var a, l, n, i, o = [], u = !0, c = !1;
|
|
28
|
+
try {
|
|
29
|
+
if (n = (e = e.call(t)).next, r !== 0) for (; !(u = (a = n.call(e)).done) && (o.push(a.value), o.length !== r); u = !0) ;
|
|
30
|
+
} catch (d) {
|
|
31
|
+
c = !0, l = d;
|
|
32
|
+
} finally {
|
|
33
|
+
try {
|
|
34
|
+
if (!u && e.return != null && (i = e.return(), Object(i) !== i)) return;
|
|
35
|
+
} finally {
|
|
36
|
+
if (c) throw l;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return o;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
function I(t) {
|
|
43
|
+
if (Array.isArray(t)) return t;
|
|
44
|
+
}
|
|
45
|
+
var S = /* @__PURE__ */ y(void 0), w = (t) => {
|
|
46
|
+
var r = t.children, e = s("".concat(m("recharts"), "-clip")), a = v(e, 1), l = a[0], n = p();
|
|
47
|
+
if (n == null)
|
|
48
|
+
return null;
|
|
49
|
+
var i = n.x, o = n.y, u = n.width, c = n.height;
|
|
50
|
+
return /* @__PURE__ */ f.createElement(S.Provider, {
|
|
51
|
+
value: l
|
|
52
|
+
}, /* @__PURE__ */ f.createElement("defs", null, /* @__PURE__ */ f.createElement("clipPath", {
|
|
53
|
+
id: l
|
|
54
|
+
}, /* @__PURE__ */ f.createElement("rect", {
|
|
55
|
+
x: i,
|
|
56
|
+
y: o,
|
|
57
|
+
height: c,
|
|
58
|
+
width: u
|
|
59
|
+
}))), r);
|
|
60
|
+
};
|
|
61
|
+
export {
|
|
62
|
+
w as ClipPathProvider
|
|
63
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as s from "react";
|
|
2
|
+
import { clsx as i } from "clsx";
|
|
3
|
+
import { svgPropertiesAndEvents as c } from "../util/svgPropertiesAndEvents.js";
|
|
4
|
+
var u = ["children", "className"];
|
|
5
|
+
function l() {
|
|
6
|
+
return l = Object.assign ? Object.assign.bind() : function(r) {
|
|
7
|
+
for (var a = 1; a < arguments.length; a++) {
|
|
8
|
+
var t = arguments[a];
|
|
9
|
+
for (var e in t) ({}).hasOwnProperty.call(t, e) && (r[e] = t[e]);
|
|
10
|
+
}
|
|
11
|
+
return r;
|
|
12
|
+
}, l.apply(null, arguments);
|
|
13
|
+
}
|
|
14
|
+
function f(r, a) {
|
|
15
|
+
if (r == null) return {};
|
|
16
|
+
var t, e, n = m(r, a);
|
|
17
|
+
if (Object.getOwnPropertySymbols) {
|
|
18
|
+
var o = Object.getOwnPropertySymbols(r);
|
|
19
|
+
for (e = 0; e < o.length; e++) t = o[e], a.indexOf(t) === -1 && {}.propertyIsEnumerable.call(r, t) && (n[t] = r[t]);
|
|
20
|
+
}
|
|
21
|
+
return n;
|
|
22
|
+
}
|
|
23
|
+
function m(r, a) {
|
|
24
|
+
if (r == null) return {};
|
|
25
|
+
var t = {};
|
|
26
|
+
for (var e in r) if ({}.hasOwnProperty.call(r, e)) {
|
|
27
|
+
if (a.indexOf(e) !== -1) continue;
|
|
28
|
+
t[e] = r[e];
|
|
29
|
+
}
|
|
30
|
+
return t;
|
|
31
|
+
}
|
|
32
|
+
var g = /* @__PURE__ */ s.forwardRef((r, a) => {
|
|
33
|
+
var t = r.children, e = r.className, n = f(r, u), o = i("recharts-layer", e);
|
|
34
|
+
return /* @__PURE__ */ s.createElement("g", l({
|
|
35
|
+
className: o
|
|
36
|
+
}, c(n), {
|
|
37
|
+
ref: a
|
|
38
|
+
}), t);
|
|
39
|
+
});
|
|
40
|
+
export {
|
|
41
|
+
g as Layer
|
|
42
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import * as l from "react";
|
|
2
|
+
import { forwardRef as m } from "react";
|
|
3
|
+
import { useChartWidth as p, useChartHeight as y } from "../context/chartLayoutContext.js";
|
|
4
|
+
import { useAccessibilityLayer as g } from "../context/accessibilityContext.js";
|
|
5
|
+
import { useIsPanorama as x } from "../context/PanoramaContext.js";
|
|
6
|
+
import { Surface as d } from "./Surface.js";
|
|
7
|
+
import { useAppSelector as P } from "../state/hooks.js";
|
|
8
|
+
import { selectBrushDimensions as w } from "../state/selectors/brushSelectors.js";
|
|
9
|
+
import { isPositiveNumber as f } from "../util/isWellBehavedNumber.js";
|
|
10
|
+
import { AllZIndexPortals as h } from "../zIndex/ZIndexPortal.js";
|
|
11
|
+
var O = ["children"];
|
|
12
|
+
function I(r, i) {
|
|
13
|
+
if (r == null) return {};
|
|
14
|
+
var e, t, a = E(r, i);
|
|
15
|
+
if (Object.getOwnPropertySymbols) {
|
|
16
|
+
var o = Object.getOwnPropertySymbols(r);
|
|
17
|
+
for (t = 0; t < o.length; t++) e = o[t], i.indexOf(e) === -1 && {}.propertyIsEnumerable.call(r, e) && (a[e] = r[e]);
|
|
18
|
+
}
|
|
19
|
+
return a;
|
|
20
|
+
}
|
|
21
|
+
function E(r, i) {
|
|
22
|
+
if (r == null) return {};
|
|
23
|
+
var e = {};
|
|
24
|
+
for (var t in r) if ({}.hasOwnProperty.call(r, t)) {
|
|
25
|
+
if (i.indexOf(t) !== -1) continue;
|
|
26
|
+
e[t] = r[t];
|
|
27
|
+
}
|
|
28
|
+
return e;
|
|
29
|
+
}
|
|
30
|
+
function s() {
|
|
31
|
+
return s = Object.assign ? Object.assign.bind() : function(r) {
|
|
32
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
33
|
+
var e = arguments[i];
|
|
34
|
+
for (var t in e) ({}).hasOwnProperty.call(e, t) && (r[t] = e[t]);
|
|
35
|
+
}
|
|
36
|
+
return r;
|
|
37
|
+
}, s.apply(null, arguments);
|
|
38
|
+
}
|
|
39
|
+
var A = {
|
|
40
|
+
width: "100%",
|
|
41
|
+
height: "100%",
|
|
42
|
+
/*
|
|
43
|
+
* display: block is necessary here because the default for an SVG is display: inline,
|
|
44
|
+
* which in some browsers (Chrome) adds a little bit of extra space above and below the SVG
|
|
45
|
+
* to make space for the descender of letters like "g" and "y". This throws off the height calculation
|
|
46
|
+
* and causes the container to grow indefinitely on each render with responsive=true.
|
|
47
|
+
* Display: block removes that extra space.
|
|
48
|
+
*
|
|
49
|
+
* Interestingly, Firefox does not have this problem, but it doesn't hurt to add the style anyway.
|
|
50
|
+
*/
|
|
51
|
+
display: "block"
|
|
52
|
+
}, S = /* @__PURE__ */ m((r, i) => {
|
|
53
|
+
var e = p(), t = y(), a = g();
|
|
54
|
+
if (!f(e) || !f(t))
|
|
55
|
+
return null;
|
|
56
|
+
var o = r.children, n = r.otherAttributes, v = r.title, b = r.desc, u, c;
|
|
57
|
+
return n != null && (typeof n.tabIndex == "number" ? u = n.tabIndex : u = a ? 0 : void 0, typeof n.role == "string" ? c = n.role : c = a ? "application" : void 0), /* @__PURE__ */ l.createElement(d, s({}, n, {
|
|
58
|
+
title: v,
|
|
59
|
+
desc: b,
|
|
60
|
+
role: c,
|
|
61
|
+
tabIndex: u,
|
|
62
|
+
width: e,
|
|
63
|
+
height: t,
|
|
64
|
+
style: A,
|
|
65
|
+
ref: i
|
|
66
|
+
}), o);
|
|
67
|
+
}), j = (r) => {
|
|
68
|
+
var i = r.children, e = P(w);
|
|
69
|
+
if (!e)
|
|
70
|
+
return null;
|
|
71
|
+
var t = e.width, a = e.height, o = e.y, n = e.x;
|
|
72
|
+
return /* @__PURE__ */ l.createElement(d, {
|
|
73
|
+
width: t,
|
|
74
|
+
height: a,
|
|
75
|
+
x: n,
|
|
76
|
+
y: o
|
|
77
|
+
}, i);
|
|
78
|
+
}, T = /* @__PURE__ */ m((r, i) => {
|
|
79
|
+
var e = r.children, t = I(r, O), a = x();
|
|
80
|
+
return a ? /* @__PURE__ */ l.createElement(j, null, /* @__PURE__ */ l.createElement(h, {
|
|
81
|
+
isPanorama: !0
|
|
82
|
+
}, e)) : /* @__PURE__ */ l.createElement(S, s({
|
|
83
|
+
ref: i
|
|
84
|
+
}, t), /* @__PURE__ */ l.createElement(h, {
|
|
85
|
+
isPanorama: !1
|
|
86
|
+
}, e));
|
|
87
|
+
});
|
|
88
|
+
export {
|
|
89
|
+
T as RootSurface
|
|
90
|
+
};
|