@alfalab/core-components 20.3.2 → 20.4.0
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/calendar/Component.js +1 -1
- package/calendar/components/days-table/Component.js +1 -1
- package/calendar/components/days-table/index.js +1 -1
- package/calendar/components/header/Component.js +1 -1
- package/calendar/components/header/index.js +1 -1
- package/calendar/components/months-table/Component.js +1 -1
- package/calendar/components/months-table/index.js +1 -1
- package/calendar/components/select-button/Component.js +1 -1
- package/calendar/components/select-button/index.js +1 -1
- package/calendar/components/years-table/Component.js +1 -1
- package/calendar/components/years-table/index.js +1 -1
- package/calendar/esm/Component.js +1 -1
- package/calendar/esm/components/days-table/Component.js +1 -1
- package/calendar/esm/components/days-table/index.js +1 -1
- package/calendar/esm/components/header/Component.js +1 -1
- package/calendar/esm/components/header/index.js +1 -1
- package/calendar/esm/components/months-table/Component.js +1 -1
- package/calendar/esm/components/months-table/index.js +1 -1
- package/calendar/esm/components/select-button/Component.js +1 -1
- package/calendar/esm/components/select-button/index.js +1 -1
- package/calendar/esm/components/years-table/Component.js +1 -1
- package/calendar/esm/components/years-table/index.js +1 -1
- package/calendar/esm/index.js +1 -1
- package/calendar/esm/{tslib.es6-4c746bb4.d.ts → tslib.es6-decc30d3.d.ts} +0 -0
- package/calendar/esm/{tslib.es6-4c746bb4.js → tslib.es6-decc30d3.js} +0 -0
- package/calendar/index.js +1 -1
- package/calendar/{tslib.es6-7c2dd368.d.ts → tslib.es6-af3fab91.d.ts} +0 -0
- package/calendar/{tslib.es6-7c2dd368.js → tslib.es6-af3fab91.js} +0 -0
- package/chart/Component.d.ts +5 -0
- package/chart/Component.js +269 -0
- package/chart/components/Dot/index.css +23 -0
- package/chart/components/Dot/index.d.ts +5 -0
- package/chart/components/Dot/index.js +53 -0
- package/chart/components/Legends/index.css +40 -0
- package/chart/components/Legends/index.d.ts +14 -0
- package/chart/components/Legends/index.js +46 -0
- package/chart/components/LinearGradient.d.ts +5 -0
- package/chart/components/LinearGradient.js +14 -0
- package/chart/components/Tick/index.css +27 -0
- package/chart/components/Tick/index.d.ts +4 -0
- package/chart/components/Tick/index.js +28 -0
- package/chart/components/TooltipContent/index.css +65 -0
- package/chart/components/TooltipContent/index.d.ts +10 -0
- package/chart/components/TooltipContent/index.js +36 -0
- package/chart/cssm/Component.d.ts +5 -0
- package/chart/cssm/Component.js +272 -0
- package/chart/cssm/components/Dot/index.d.ts +5 -0
- package/chart/cssm/components/Dot/index.js +52 -0
- package/chart/cssm/components/Dot/index.module.css +22 -0
- package/chart/cssm/components/Legends/index.d.ts +14 -0
- package/chart/cssm/components/Legends/index.js +45 -0
- package/chart/cssm/components/Legends/index.module.css +39 -0
- package/chart/cssm/components/LinearGradient.d.ts +5 -0
- package/chart/cssm/components/LinearGradient.js +14 -0
- package/chart/cssm/components/Tick/index.d.ts +4 -0
- package/chart/cssm/components/Tick/index.js +27 -0
- package/chart/cssm/components/Tick/index.module.css +26 -0
- package/chart/cssm/components/TooltipContent/index.d.ts +10 -0
- package/chart/cssm/components/TooltipContent/index.js +35 -0
- package/chart/cssm/components/TooltipContent/index.module.css +64 -0
- package/chart/cssm/hooks/useSettings/index.d.ts +16 -0
- package/chart/cssm/hooks/useSettings/index.js +47 -0
- package/chart/cssm/hooks/useSettings/utils/setComposedChartsMargin.d.ts +12 -0
- package/chart/cssm/hooks/useSettings/utils/setComposedChartsMargin.js +17 -0
- package/chart/cssm/hooks/useSettings/utils/setDatas.d.ts +6 -0
- package/chart/cssm/hooks/useSettings/utils/setDatas.js +39 -0
- package/chart/cssm/hooks/useSettings/utils/setGradientCharts.d.ts +3 -0
- package/chart/cssm/hooks/useSettings/utils/setGradientCharts.js +27 -0
- package/chart/cssm/hooks/useSettings/utils/setLegendMargin.d.ts +4 -0
- package/chart/cssm/hooks/useSettings/utils/setLegendMargin.js +16 -0
- package/chart/cssm/hooks/useSettings/utils/sortByIndex.d.ts +3 -0
- package/chart/cssm/hooks/useSettings/utils/sortByIndex.js +12 -0
- package/chart/cssm/icons/Circle.d.ts +7 -0
- package/chart/cssm/icons/Circle.js +15 -0
- package/chart/cssm/icons/CircleLine.d.ts +8 -0
- package/chart/cssm/icons/CircleLine.js +16 -0
- package/chart/cssm/icons/FilledCircle.d.ts +7 -0
- package/chart/cssm/icons/FilledCircle.js +19 -0
- package/chart/cssm/icons/Point.d.ts +7 -0
- package/chart/cssm/icons/Point.js +16 -0
- package/chart/cssm/icons/StrokeCircle.d.ts +7 -0
- package/chart/cssm/icons/StrokeCircle.js +15 -0
- package/chart/cssm/index.d.ts +1 -0
- package/chart/cssm/index.js +27 -0
- package/chart/cssm/index.module.css +25 -0
- package/{gallery/esm/tslib.es6-76ecfd4c.d.ts → chart/cssm/tslib.es6-2be2aee7.d.ts} +0 -0
- package/chart/cssm/tslib.es6-2be2aee7.js +26 -0
- package/chart/cssm/types/brush.types.d.ts +41 -0
- package/chart/cssm/types/brush.types.js +1 -0
- package/chart/cssm/types/cartesianGrid.types.d.ts +23 -0
- package/chart/cssm/types/cartesianGrid.types.js +1 -0
- package/chart/cssm/types/chart.types.d.ts +61 -0
- package/chart/cssm/types/chart.types.js +1 -0
- package/chart/cssm/types/composedChart.types.d.ts +33 -0
- package/chart/cssm/types/composedChart.types.js +1 -0
- package/chart/cssm/types/legend.types.d.ts +30 -0
- package/chart/cssm/types/legend.types.js +1 -0
- package/chart/cssm/types/options.types.d.ts +59 -0
- package/chart/cssm/types/options.types.js +1 -0
- package/chart/cssm/types/payload.types.d.ts +29 -0
- package/chart/cssm/types/payload.types.js +1 -0
- package/chart/cssm/types/responsiveContainer.types.d.ts +10 -0
- package/chart/cssm/types/responsiveContainer.types.js +1 -0
- package/chart/cssm/types/seria.types.d.ts +59 -0
- package/chart/cssm/types/seria.types.js +1 -0
- package/chart/cssm/types/tooltip.types.d.ts +70 -0
- package/chart/cssm/types/tooltip.types.js +1 -0
- package/chart/cssm/types/utils/axis.types.d.ts +68 -0
- package/chart/cssm/types/utils/axis.types.js +1 -0
- package/chart/cssm/types/utils/coordinates.types.d.ts +11 -0
- package/chart/cssm/types/utils/coordinates.types.js +1 -0
- package/chart/cssm/types/utils/data.types.d.ts +17 -0
- package/chart/cssm/types/utils/data.types.js +1 -0
- package/chart/cssm/types/utils/dot.types.d.ts +73 -0
- package/chart/cssm/types/utils/dot.types.js +1 -0
- package/chart/cssm/types/utils/gradient.types.d.ts +29 -0
- package/chart/cssm/types/utils/gradient.types.js +1 -0
- package/chart/cssm/types/utils/tick.types.d.ts +19 -0
- package/chart/cssm/types/utils/tick.types.js +1 -0
- package/chart/cssm/types/xAxis.types.d.ts +16 -0
- package/chart/cssm/types/xAxis.types.js +1 -0
- package/chart/cssm/types/yAxis.types.d.ts +8 -0
- package/chart/cssm/types/yAxis.types.js +1 -0
- package/chart/esm/Component.d.ts +5 -0
- package/chart/esm/Component.js +264 -0
- package/chart/esm/components/Dot/index.css +23 -0
- package/chart/esm/components/Dot/index.d.ts +5 -0
- package/chart/esm/components/Dot/index.js +46 -0
- package/chart/esm/components/Legends/index.css +40 -0
- package/chart/esm/components/Legends/index.d.ts +14 -0
- package/chart/esm/components/Legends/index.js +39 -0
- package/chart/esm/components/LinearGradient.d.ts +5 -0
- package/chart/esm/components/LinearGradient.js +8 -0
- package/chart/esm/components/Tick/index.css +27 -0
- package/chart/esm/components/Tick/index.d.ts +4 -0
- package/chart/esm/components/Tick/index.js +21 -0
- package/chart/esm/components/TooltipContent/index.css +65 -0
- package/chart/esm/components/TooltipContent/index.d.ts +10 -0
- package/chart/esm/components/TooltipContent/index.js +29 -0
- package/chart/esm/hooks/useSettings/index.d.ts +16 -0
- package/chart/esm/hooks/useSettings/index.js +45 -0
- package/chart/esm/hooks/useSettings/utils/setComposedChartsMargin.d.ts +12 -0
- package/chart/esm/hooks/useSettings/utils/setComposedChartsMargin.js +15 -0
- package/chart/esm/hooks/useSettings/utils/setDatas.d.ts +6 -0
- package/chart/esm/hooks/useSettings/utils/setDatas.js +37 -0
- package/chart/esm/hooks/useSettings/utils/setGradientCharts.d.ts +3 -0
- package/chart/esm/hooks/useSettings/utils/setGradientCharts.js +25 -0
- package/chart/esm/hooks/useSettings/utils/setLegendMargin.d.ts +4 -0
- package/chart/esm/hooks/useSettings/utils/setLegendMargin.js +14 -0
- package/chart/esm/hooks/useSettings/utils/sortByIndex.d.ts +3 -0
- package/chart/esm/hooks/useSettings/utils/sortByIndex.js +10 -0
- package/chart/esm/icons/Circle.d.ts +7 -0
- package/chart/esm/icons/Circle.js +9 -0
- package/chart/esm/icons/CircleLine.d.ts +8 -0
- package/chart/esm/icons/CircleLine.js +10 -0
- package/chart/esm/icons/FilledCircle.d.ts +7 -0
- package/chart/esm/icons/FilledCircle.js +13 -0
- package/chart/esm/icons/Point.d.ts +7 -0
- package/chart/esm/icons/Point.js +10 -0
- package/chart/esm/icons/StrokeCircle.d.ts +7 -0
- package/chart/esm/icons/StrokeCircle.js +9 -0
- package/chart/esm/index.css +15 -0
- package/chart/esm/index.d.ts +1 -0
- package/chart/esm/index.js +22 -0
- package/{gallery/tslib.es6-d8fd377b.d.ts → chart/esm/tslib.es6-defbba9d.d.ts} +0 -0
- package/chart/esm/tslib.es6-defbba9d.js +28 -0
- package/chart/esm/types/brush.types.d.ts +41 -0
- package/chart/esm/types/brush.types.js +1 -0
- package/chart/esm/types/cartesianGrid.types.d.ts +23 -0
- package/chart/esm/types/cartesianGrid.types.js +1 -0
- package/chart/esm/types/chart.types.d.ts +61 -0
- package/chart/esm/types/chart.types.js +1 -0
- package/chart/esm/types/composedChart.types.d.ts +33 -0
- package/chart/esm/types/composedChart.types.js +1 -0
- package/chart/esm/types/legend.types.d.ts +30 -0
- package/chart/esm/types/legend.types.js +1 -0
- package/chart/esm/types/options.types.d.ts +59 -0
- package/chart/esm/types/options.types.js +1 -0
- package/chart/esm/types/payload.types.d.ts +29 -0
- package/chart/esm/types/payload.types.js +1 -0
- package/chart/esm/types/responsiveContainer.types.d.ts +10 -0
- package/chart/esm/types/responsiveContainer.types.js +1 -0
- package/chart/esm/types/seria.types.d.ts +59 -0
- package/chart/esm/types/seria.types.js +1 -0
- package/chart/esm/types/tooltip.types.d.ts +70 -0
- package/chart/esm/types/tooltip.types.js +1 -0
- package/chart/esm/types/utils/axis.types.d.ts +68 -0
- package/chart/esm/types/utils/axis.types.js +1 -0
- package/chart/esm/types/utils/coordinates.types.d.ts +11 -0
- package/chart/esm/types/utils/coordinates.types.js +1 -0
- package/chart/esm/types/utils/data.types.d.ts +17 -0
- package/chart/esm/types/utils/data.types.js +1 -0
- package/chart/esm/types/utils/dot.types.d.ts +73 -0
- package/chart/esm/types/utils/dot.types.js +1 -0
- package/chart/esm/types/utils/gradient.types.d.ts +29 -0
- package/chart/esm/types/utils/gradient.types.js +1 -0
- package/chart/esm/types/utils/tick.types.d.ts +19 -0
- package/chart/esm/types/utils/tick.types.js +1 -0
- package/chart/esm/types/xAxis.types.d.ts +16 -0
- package/chart/esm/types/xAxis.types.js +1 -0
- package/chart/esm/types/yAxis.types.d.ts +8 -0
- package/chart/esm/types/yAxis.types.js +1 -0
- package/chart/hooks/useSettings/index.d.ts +16 -0
- package/chart/hooks/useSettings/index.js +47 -0
- package/chart/hooks/useSettings/utils/setComposedChartsMargin.d.ts +12 -0
- package/chart/hooks/useSettings/utils/setComposedChartsMargin.js +17 -0
- package/chart/hooks/useSettings/utils/setDatas.d.ts +6 -0
- package/chart/hooks/useSettings/utils/setDatas.js +39 -0
- package/chart/hooks/useSettings/utils/setGradientCharts.d.ts +3 -0
- package/chart/hooks/useSettings/utils/setGradientCharts.js +27 -0
- package/chart/hooks/useSettings/utils/setLegendMargin.d.ts +4 -0
- package/chart/hooks/useSettings/utils/setLegendMargin.js +16 -0
- package/chart/hooks/useSettings/utils/sortByIndex.d.ts +3 -0
- package/chart/hooks/useSettings/utils/sortByIndex.js +12 -0
- package/chart/icons/Circle.d.ts +7 -0
- package/chart/icons/Circle.js +15 -0
- package/chart/icons/CircleLine.d.ts +8 -0
- package/chart/icons/CircleLine.js +16 -0
- package/chart/icons/FilledCircle.d.ts +7 -0
- package/chart/icons/FilledCircle.js +19 -0
- package/chart/icons/Point.d.ts +7 -0
- package/chart/icons/Point.js +16 -0
- package/chart/icons/StrokeCircle.d.ts +7 -0
- package/chart/icons/StrokeCircle.js +15 -0
- package/chart/index.css +15 -0
- package/chart/index.d.ts +1 -0
- package/chart/index.js +22 -0
- package/chart/modern/Component.d.ts +5 -0
- package/chart/modern/Component.js +258 -0
- package/chart/modern/components/Dot/index.css +23 -0
- package/chart/modern/components/Dot/index.d.ts +5 -0
- package/chart/modern/components/Dot/index.js +45 -0
- package/chart/modern/components/Legends/index.css +40 -0
- package/chart/modern/components/Legends/index.d.ts +14 -0
- package/chart/modern/components/Legends/index.js +38 -0
- package/chart/modern/components/LinearGradient.d.ts +5 -0
- package/chart/modern/components/LinearGradient.js +7 -0
- package/chart/modern/components/Tick/index.css +27 -0
- package/chart/modern/components/Tick/index.d.ts +4 -0
- package/chart/modern/components/Tick/index.js +20 -0
- package/chart/modern/components/TooltipContent/index.css +65 -0
- package/chart/modern/components/TooltipContent/index.d.ts +10 -0
- package/chart/modern/components/TooltipContent/index.js +28 -0
- package/chart/modern/hooks/useSettings/index.d.ts +16 -0
- package/chart/modern/hooks/useSettings/index.js +43 -0
- package/chart/modern/hooks/useSettings/utils/setComposedChartsMargin.d.ts +12 -0
- package/chart/modern/hooks/useSettings/utils/setComposedChartsMargin.js +14 -0
- package/chart/modern/hooks/useSettings/utils/setDatas.d.ts +6 -0
- package/chart/modern/hooks/useSettings/utils/setDatas.js +32 -0
- package/chart/modern/hooks/useSettings/utils/setGradientCharts.d.ts +3 -0
- package/chart/modern/hooks/useSettings/utils/setGradientCharts.js +35 -0
- package/chart/modern/hooks/useSettings/utils/setLegendMargin.d.ts +4 -0
- package/chart/modern/hooks/useSettings/utils/setLegendMargin.js +14 -0
- package/chart/modern/hooks/useSettings/utils/sortByIndex.d.ts +3 -0
- package/chart/modern/hooks/useSettings/utils/sortByIndex.js +10 -0
- package/chart/modern/icons/Circle.d.ts +7 -0
- package/chart/modern/icons/Circle.js +8 -0
- package/chart/modern/icons/CircleLine.d.ts +8 -0
- package/chart/modern/icons/CircleLine.js +9 -0
- package/chart/modern/icons/FilledCircle.d.ts +7 -0
- package/chart/modern/icons/FilledCircle.js +12 -0
- package/chart/modern/icons/Point.d.ts +7 -0
- package/chart/modern/icons/Point.js +7 -0
- package/chart/modern/icons/StrokeCircle.d.ts +7 -0
- package/chart/modern/icons/StrokeCircle.js +8 -0
- package/chart/modern/index.css +15 -0
- package/chart/modern/index.d.ts +1 -0
- package/chart/modern/index.js +21 -0
- package/chart/modern/types/brush.types.d.ts +41 -0
- package/chart/modern/types/brush.types.js +1 -0
- package/chart/modern/types/cartesianGrid.types.d.ts +23 -0
- package/chart/modern/types/cartesianGrid.types.js +1 -0
- package/chart/modern/types/chart.types.d.ts +61 -0
- package/chart/modern/types/chart.types.js +1 -0
- package/chart/modern/types/composedChart.types.d.ts +33 -0
- package/chart/modern/types/composedChart.types.js +1 -0
- package/chart/modern/types/legend.types.d.ts +30 -0
- package/chart/modern/types/legend.types.js +1 -0
- package/chart/modern/types/options.types.d.ts +59 -0
- package/chart/modern/types/options.types.js +1 -0
- package/chart/modern/types/payload.types.d.ts +29 -0
- package/chart/modern/types/payload.types.js +1 -0
- package/chart/modern/types/responsiveContainer.types.d.ts +10 -0
- package/chart/modern/types/responsiveContainer.types.js +1 -0
- package/chart/modern/types/seria.types.d.ts +59 -0
- package/chart/modern/types/seria.types.js +1 -0
- package/chart/modern/types/tooltip.types.d.ts +70 -0
- package/chart/modern/types/tooltip.types.js +1 -0
- package/chart/modern/types/utils/axis.types.d.ts +68 -0
- package/chart/modern/types/utils/axis.types.js +1 -0
- package/chart/modern/types/utils/coordinates.types.d.ts +11 -0
- package/chart/modern/types/utils/coordinates.types.js +1 -0
- package/chart/modern/types/utils/data.types.d.ts +17 -0
- package/chart/modern/types/utils/data.types.js +1 -0
- package/chart/modern/types/utils/dot.types.d.ts +73 -0
- package/chart/modern/types/utils/dot.types.js +1 -0
- package/chart/modern/types/utils/gradient.types.d.ts +29 -0
- package/chart/modern/types/utils/gradient.types.js +1 -0
- package/chart/modern/types/utils/tick.types.d.ts +19 -0
- package/chart/modern/types/utils/tick.types.js +1 -0
- package/chart/modern/types/xAxis.types.d.ts +16 -0
- package/chart/modern/types/xAxis.types.js +1 -0
- package/chart/modern/types/yAxis.types.d.ts +8 -0
- package/chart/modern/types/yAxis.types.js +1 -0
- package/chart/package.json +3 -0
- package/chart/send-stats.js +82 -0
- package/{modal/esm/tslib.es6-aaad616c.d.ts → chart/tslib.es6-62c2b032.d.ts} +0 -0
- package/chart/tslib.es6-62c2b032.js +26 -0
- package/chart/types/brush.types.d.ts +41 -0
- package/chart/types/brush.types.js +1 -0
- package/chart/types/cartesianGrid.types.d.ts +23 -0
- package/chart/types/cartesianGrid.types.js +1 -0
- package/chart/types/chart.types.d.ts +61 -0
- package/chart/types/chart.types.js +1 -0
- package/chart/types/composedChart.types.d.ts +33 -0
- package/chart/types/composedChart.types.js +1 -0
- package/chart/types/legend.types.d.ts +30 -0
- package/chart/types/legend.types.js +1 -0
- package/chart/types/options.types.d.ts +59 -0
- package/chart/types/options.types.js +1 -0
- package/chart/types/payload.types.d.ts +29 -0
- package/chart/types/payload.types.js +1 -0
- package/chart/types/responsiveContainer.types.d.ts +10 -0
- package/chart/types/responsiveContainer.types.js +1 -0
- package/chart/types/seria.types.d.ts +59 -0
- package/chart/types/seria.types.js +1 -0
- package/chart/types/tooltip.types.d.ts +70 -0
- package/chart/types/tooltip.types.js +1 -0
- package/chart/types/utils/axis.types.d.ts +68 -0
- package/chart/types/utils/axis.types.js +1 -0
- package/chart/types/utils/coordinates.types.d.ts +11 -0
- package/chart/types/utils/coordinates.types.js +1 -0
- package/chart/types/utils/data.types.d.ts +17 -0
- package/chart/types/utils/data.types.js +1 -0
- package/chart/types/utils/dot.types.d.ts +73 -0
- package/chart/types/utils/dot.types.js +1 -0
- package/chart/types/utils/gradient.types.d.ts +29 -0
- package/chart/types/utils/gradient.types.js +1 -0
- package/chart/types/utils/tick.types.d.ts +19 -0
- package/chart/types/utils/tick.types.js +1 -0
- package/chart/types/xAxis.types.d.ts +16 -0
- package/chart/types/xAxis.types.js +1 -0
- package/chart/types/yAxis.types.d.ts +8 -0
- package/chart/types/yAxis.types.js +1 -0
- package/gallery/Component.js +2 -2
- package/gallery/components/header/Component.js +1 -1
- package/gallery/components/header/buttons.js +1 -1
- package/gallery/components/header/index.js +1 -1
- package/gallery/components/image-viewer/component.js +2 -2
- package/gallery/components/image-viewer/index.js +2 -2
- package/gallery/components/image-viewer/slide.js +1 -1
- package/gallery/components/index.js +2 -2
- package/gallery/esm/Component.js +2 -2
- package/gallery/esm/components/header/Component.js +1 -1
- package/gallery/esm/components/header/buttons.js +1 -1
- package/gallery/esm/components/header/index.js +1 -1
- package/gallery/esm/components/image-viewer/component.js +2 -2
- package/gallery/esm/components/image-viewer/index.js +2 -2
- package/gallery/esm/components/image-viewer/slide.js +1 -1
- package/gallery/esm/components/index.js +2 -2
- package/gallery/esm/index.js +2 -2
- package/gallery/esm/{slide-87570b70.d.ts → slide-2c5303bf.d.ts} +0 -0
- package/gallery/esm/{slide-87570b70.js → slide-2c5303bf.js} +0 -0
- package/{modal/tslib.es6-39c837a9.d.ts → gallery/esm/tslib.es6-e5bfa024.d.ts} +0 -0
- package/gallery/esm/{tslib.es6-76ecfd4c.js → tslib.es6-e5bfa024.js} +0 -0
- package/gallery/index.js +2 -2
- package/gallery/modern/Component.js +1 -1
- package/gallery/modern/components/image-viewer/component.js +1 -1
- package/gallery/modern/components/image-viewer/index.js +1 -1
- package/gallery/modern/components/image-viewer/slide.js +1 -1
- package/gallery/modern/components/index.js +1 -1
- package/gallery/modern/index.js +1 -1
- package/gallery/modern/{slide-d973cd14.d.ts → slide-31efe610.d.ts} +0 -0
- package/gallery/modern/{slide-d973cd14.js → slide-31efe610.js} +0 -0
- package/gallery/{slide-4c7a53b7.d.ts → slide-5f9593b7.d.ts} +0 -0
- package/gallery/{slide-4c7a53b7.js → slide-5f9593b7.js} +0 -0
- package/{select/esm/tslib.es6-c18e9eca.d.ts → gallery/tslib.es6-d5e3524f.d.ts} +0 -0
- package/gallery/{tslib.es6-d8fd377b.js → tslib.es6-d5e3524f.js} +0 -0
- package/intl-phone-input/{component-b2d27dfb.d.ts → component-2901b48c.d.ts} +0 -0
- package/intl-phone-input/{component-b2d27dfb.js → component-2901b48c.js} +1 -1
- package/intl-phone-input/component.js +3 -3
- package/intl-phone-input/components/flag-icon/component.js +1 -1
- package/intl-phone-input/components/flag-icon/index.css +784 -784
- package/intl-phone-input/components/index.js +1 -1
- package/intl-phone-input/components/select/component.js +2 -2
- package/intl-phone-input/components/select/index.css +6 -6
- package/intl-phone-input/components/select/index.js +1 -1
- package/intl-phone-input/components/select-field/component.js +1 -1
- package/intl-phone-input/components/select-field/index.css +8 -8
- package/intl-phone-input/components/select-field/index.d.ts +1 -1
- package/intl-phone-input/components/select-field/index.js +1 -1
- package/intl-phone-input/esm/{component-087d1771.d.ts → component-b0494269.d.ts} +0 -0
- package/intl-phone-input/esm/{component-087d1771.js → component-b0494269.js} +1 -1
- package/intl-phone-input/esm/component.js +3 -3
- package/intl-phone-input/esm/components/flag-icon/component.js +1 -1
- package/intl-phone-input/esm/components/flag-icon/index.css +784 -784
- package/intl-phone-input/esm/components/index.js +1 -1
- package/intl-phone-input/esm/components/select/component.js +2 -2
- package/intl-phone-input/esm/components/select/index.css +6 -6
- package/intl-phone-input/esm/components/select/index.js +1 -1
- package/intl-phone-input/esm/components/select-field/component.js +1 -1
- package/intl-phone-input/esm/components/select-field/index.css +8 -8
- package/intl-phone-input/esm/components/select-field/index.d.ts +1 -1
- package/intl-phone-input/esm/components/select-field/index.js +1 -1
- package/intl-phone-input/esm/index.css +3 -3
- package/intl-phone-input/esm/index.js +1 -1
- package/intl-phone-input/esm/{libphonenumber-js.min-bc9d0c29.d.ts → libphonenumber-js.min-4d9b997b.d.ts} +0 -0
- package/intl-phone-input/esm/{libphonenumber-js.min-bc9d0c29.js → libphonenumber-js.min-4d9b997b.js} +0 -0
- package/intl-phone-input/index.css +3 -3
- package/intl-phone-input/index.js +1 -1
- package/intl-phone-input/{libphonenumber-js.min-7e154139.d.ts → libphonenumber-js.min-893b6a4c.d.ts} +0 -0
- package/intl-phone-input/{libphonenumber-js.min-7e154139.js → libphonenumber-js.min-893b6a4c.js} +0 -0
- package/intl-phone-input/modern/component.js +2 -2
- package/intl-phone-input/modern/components/flag-icon/component.js +1 -1
- package/intl-phone-input/modern/components/flag-icon/index.css +784 -784
- package/intl-phone-input/modern/components/select/component.js +1 -1
- package/intl-phone-input/modern/components/select/index.css +6 -6
- package/intl-phone-input/modern/components/select-field/component.js +1 -1
- package/intl-phone-input/modern/components/select-field/index.css +8 -8
- package/intl-phone-input/modern/index.css +3 -3
- package/intl-phone-input/modern/{libphonenumber-js.min-bc9d0c29.d.ts → libphonenumber-js.min-4d9b997b.d.ts} +0 -0
- package/intl-phone-input/modern/{libphonenumber-js.min-bc9d0c29.js → libphonenumber-js.min-4d9b997b.js} +0 -0
- package/modal/Component.desktop.js +2 -2
- package/modal/Component.mobile.js +2 -2
- package/modal/Component.responsive.js +2 -2
- package/modal/components/closer/Component.js +1 -1
- package/modal/components/content/Component.desktop.js +1 -1
- package/modal/components/content/Component.mobile.js +1 -1
- package/modal/components/footer/Component.desktop.js +1 -1
- package/modal/components/footer/Component.mobile.js +1 -1
- package/modal/components/header/Component.desktop.js +1 -1
- package/modal/components/header/Component.js +1 -1
- package/modal/components/header/Component.mobile.js +1 -1
- package/modal/desktop.js +2 -2
- package/modal/esm/Component.desktop.js +2 -2
- package/modal/esm/Component.mobile.js +2 -2
- package/modal/esm/Component.responsive.js +2 -2
- package/modal/esm/components/closer/Component.js +1 -1
- package/modal/esm/components/content/Component.desktop.js +1 -1
- package/modal/esm/components/content/Component.mobile.js +1 -1
- package/modal/esm/components/footer/Component.desktop.js +1 -1
- package/modal/esm/components/footer/Component.mobile.js +1 -1
- package/modal/esm/components/header/Component.desktop.js +1 -1
- package/modal/esm/components/header/Component.js +1 -1
- package/modal/esm/components/header/Component.mobile.js +1 -1
- package/modal/esm/desktop.js +2 -2
- package/modal/esm/index.js +2 -2
- package/modal/esm/mobile.js +2 -2
- package/modal/esm/responsive.js +2 -2
- package/modal/esm/{transitions.module-e77b5169.js → transitions.module-45fbb621.js} +0 -0
- package/{select/tslib.es6-507b73eb.d.ts → modal/esm/tslib.es6-4214739e.d.ts} +0 -0
- package/modal/esm/{tslib.es6-aaad616c.js → tslib.es6-4214739e.js} +0 -0
- package/modal/index.js +2 -2
- package/modal/mobile.js +2 -2
- package/modal/modern/Component.desktop.js +1 -1
- package/modal/modern/Component.mobile.js +1 -1
- package/modal/modern/Component.responsive.js +1 -1
- package/modal/modern/desktop.js +1 -1
- package/modal/modern/index.js +1 -1
- package/modal/modern/mobile.js +1 -1
- package/modal/modern/responsive.js +1 -1
- package/modal/modern/{transitions.module-e77b5169.js → transitions.module-45fbb621.js} +0 -0
- package/modal/responsive.js +2 -2
- package/modal/{transitions.module-ffa09972.js → transitions.module-b67d0f1c.js} +0 -0
- package/{tabs/esm/tslib.es6-8f0739df.d.ts → modal/tslib.es6-ccd35f7f.d.ts} +0 -0
- package/modal/{tslib.es6-39c837a9.js → tslib.es6-ccd35f7f.js} +0 -0
- package/package.json +9 -1
- package/select/Component.js +1 -1
- package/select/components/base-select/Component.js +1 -1
- package/select/components/base-select/index.js +1 -1
- package/select/components/field/Component.js +1 -1
- package/select/components/field/index.js +1 -1
- package/select/components/index.js +1 -1
- package/select/components/native-select/Component.js +1 -1
- package/select/components/native-select/index.js +1 -1
- package/select/components/option/Component.js +1 -1
- package/select/components/option/index.js +1 -1
- package/select/esm/Component.js +1 -1
- package/select/esm/components/base-select/Component.js +1 -1
- package/select/esm/components/base-select/index.js +1 -1
- package/select/esm/components/field/Component.js +1 -1
- package/select/esm/components/field/index.js +1 -1
- package/select/esm/components/index.js +1 -1
- package/select/esm/components/native-select/Component.js +1 -1
- package/select/esm/components/native-select/index.js +1 -1
- package/select/esm/components/option/Component.js +1 -1
- package/select/esm/components/option/index.js +1 -1
- package/select/esm/index.js +1 -1
- package/select/esm/presets/index.js +1 -1
- package/select/esm/presets/useLazyLoading/hook.js +1 -1
- package/select/esm/presets/useSelectWithLoading/hook.js +1 -1
- package/{tabs/tslib.es6-7078bc0a.d.ts → select/esm/tslib.es6-abde084a.d.ts} +0 -0
- package/select/esm/{tslib.es6-c18e9eca.js → tslib.es6-abde084a.js} +0 -0
- package/select/index.js +1 -1
- package/select/presets/index.js +1 -1
- package/select/presets/useLazyLoading/hook.js +1 -1
- package/select/presets/useSelectWithLoading/hook.js +1 -1
- package/{typography/colors.module-ded492e1.d.ts → select/tslib.es6-0f234b35.d.ts} +0 -0
- package/select/{tslib.es6-507b73eb.js → tslib.es6-0f234b35.js} +0 -0
- package/tabs/components/primary-tablist/Component.desktop.js +2 -2
- package/tabs/components/primary-tablist/Component.js +1 -1
- package/tabs/components/primary-tablist/Component.mobile.js +2 -2
- package/tabs/components/primary-tablist/Component.responsive.js +2 -2
- package/tabs/components/secondary-tablist/Component.desktop.js +2 -2
- package/tabs/components/secondary-tablist/Component.js +1 -1
- package/tabs/components/secondary-tablist/Component.mobile.js +2 -2
- package/tabs/components/secondary-tablist/Component.responsive.js +2 -2
- package/tabs/components/tabs/Component.desktop.js +3 -3
- package/tabs/components/tabs/Component.mobile.js +3 -3
- package/tabs/components/tabs/Component.responsive.js +3 -3
- package/tabs/desktop.js +3 -3
- package/tabs/esm/components/primary-tablist/Component.desktop.js +2 -2
- package/tabs/esm/components/primary-tablist/Component.js +1 -1
- package/tabs/esm/components/primary-tablist/Component.mobile.js +2 -2
- package/tabs/esm/components/primary-tablist/Component.responsive.js +2 -2
- package/tabs/esm/components/secondary-tablist/Component.desktop.js +2 -2
- package/tabs/esm/components/secondary-tablist/Component.js +1 -1
- package/tabs/esm/components/secondary-tablist/Component.mobile.js +2 -2
- package/tabs/esm/components/secondary-tablist/Component.responsive.js +2 -2
- package/tabs/esm/components/tabs/Component.desktop.js +3 -3
- package/tabs/esm/components/tabs/Component.mobile.js +3 -3
- package/tabs/esm/components/tabs/Component.responsive.js +3 -3
- package/tabs/esm/desktop.js +3 -3
- package/tabs/esm/index.js +3 -3
- package/tabs/esm/{index.module-2eb64cb0.js → index.module-c8448fef.js} +0 -0
- package/tabs/esm/{index.module-878a7a87.js → index.module-fbbc84ff.js} +0 -0
- package/tabs/esm/mobile.js +3 -3
- package/tabs/esm/responsive.js +3 -3
- package/{typography/esm/colors.module-d21f47ee.d.ts → tabs/esm/tslib.es6-787ef7a5.d.ts} +0 -0
- package/tabs/esm/{tslib.es6-8f0739df.js → tslib.es6-787ef7a5.js} +0 -0
- package/tabs/index.js +3 -3
- package/tabs/{index.module-278c87fb.js → index.module-91539407.js} +0 -0
- package/tabs/{index.module-adf99814.js → index.module-95d8761b.js} +0 -0
- package/tabs/mobile.js +3 -3
- package/tabs/modern/components/primary-tablist/Component.desktop.js +1 -1
- package/tabs/modern/components/primary-tablist/Component.mobile.js +1 -1
- package/tabs/modern/components/primary-tablist/Component.responsive.js +1 -1
- package/tabs/modern/components/secondary-tablist/Component.desktop.js +1 -1
- package/tabs/modern/components/secondary-tablist/Component.mobile.js +1 -1
- package/tabs/modern/components/secondary-tablist/Component.responsive.js +1 -1
- package/tabs/modern/components/tabs/Component.desktop.js +2 -2
- package/tabs/modern/components/tabs/Component.mobile.js +2 -2
- package/tabs/modern/components/tabs/Component.responsive.js +2 -2
- package/tabs/modern/desktop.js +2 -2
- package/tabs/modern/index.js +2 -2
- package/tabs/modern/{index.module-2eb64cb0.js → index.module-c8448fef.js} +0 -0
- package/tabs/modern/{index.module-878a7a87.js → index.module-fbbc84ff.js} +0 -0
- package/tabs/modern/mobile.js +2 -2
- package/tabs/modern/responsive.js +2 -2
- package/tabs/responsive.js +3 -3
- package/tabs/tslib.es6-da6ab86a.d.ts +32 -0
- package/tabs/{tslib.es6-7078bc0a.js → tslib.es6-da6ab86a.js} +0 -0
- package/themes/compiled/mobile-dark-bluetint.css +2 -2
- package/themes/dist/compiled/mobile-dark-bluetint.css +96 -70
- package/typography/colors.module-b49182a7.d.ts +32 -0
- package/typography/{colors.module-ded492e1.js → colors.module-b49182a7.js} +0 -0
- package/typography/{common.module-1de331b9.js → common.module-263677ac.js} +0 -0
- package/typography/component.js +2 -2
- package/typography/esm/colors.module-509f4855.d.ts +32 -0
- package/typography/esm/{colors.module-d21f47ee.js → colors.module-509f4855.js} +0 -0
- package/typography/esm/{common.module-9782b936.js → common.module-961ee2a7.js} +0 -0
- package/typography/esm/component.js +2 -2
- package/typography/esm/index.js +2 -2
- package/typography/esm/text/component.js +1 -1
- package/typography/esm/text/index.js +1 -1
- package/typography/esm/title/component.js +1 -1
- package/typography/esm/title/index.js +2 -2
- package/typography/esm/title-responsive/component.js +2 -2
- package/typography/esm/title-responsive/index.js +2 -2
- package/typography/index.js +2 -2
- package/typography/modern/{colors.module-5a6490a8.js → colors.module-07a98532.js} +0 -0
- package/typography/modern/{common.module-9782b936.js → common.module-961ee2a7.js} +0 -0
- package/typography/modern/component.js +2 -2
- package/typography/modern/index.js +2 -2
- package/typography/modern/text/component.js +1 -1
- package/typography/modern/text/index.js +1 -1
- package/typography/modern/title/component.js +1 -1
- package/typography/modern/title/index.js +2 -2
- package/typography/modern/title-responsive/component.js +2 -2
- package/typography/modern/title-responsive/index.js +2 -2
- package/typography/text/component.js +1 -1
- package/typography/text/index.js +1 -1
- package/typography/title/component.js +1 -1
- package/typography/title/index.js +2 -2
- package/typography/title-responsive/component.js +2 -2
- package/typography/title-responsive/index.js +2 -2
package/calendar/Component.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
|
|
3
|
-
var tslib_es6 = require('./tslib.es6-
|
|
3
|
+
var tslib_es6 = require('./tslib.es6-af3fab91.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var cn = require('classnames');
|
|
6
6
|
var dateFns = require('date-fns');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
|
|
3
|
-
var tslib_es6 = require('../../tslib.es6-
|
|
3
|
+
var tslib_es6 = require('../../tslib.es6-af3fab91.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var cn = require('classnames');
|
|
6
6
|
var dateFns = require('date-fns');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
|
|
3
|
-
require('../../tslib.es6-
|
|
3
|
+
require('../../tslib.es6-af3fab91.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var cn = require('classnames');
|
|
6
6
|
var coreComponentsButton = require('../../../button');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
|
|
3
|
-
var tslib_es6 = require('../../tslib.es6-
|
|
3
|
+
var tslib_es6 = require('../../tslib.es6-af3fab91.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
require('classnames');
|
|
6
6
|
var dateFns = require('date-fns');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
|
|
3
|
-
var tslib_es6 = require('../../tslib.es6-
|
|
3
|
+
var tslib_es6 = require('../../tslib.es6-af3fab91.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var cn = require('classnames');
|
|
6
6
|
var coreComponentsButton = require('../../../button');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
|
|
3
|
-
var tslib_es6 = require('../../tslib.es6-
|
|
3
|
+
var tslib_es6 = require('../../tslib.es6-af3fab91.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
require('classnames');
|
|
6
6
|
var dateFns = require('date-fns');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __assign } from './tslib.es6-
|
|
1
|
+
import { _ as __assign } from './tslib.es6-decc30d3.js';
|
|
2
2
|
import React, { forwardRef, useState, useMemo, useCallback } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { startOfMonth, startOfDay, endOfDay } from 'date-fns';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __assign } from '../../tslib.es6-decc30d3.js';
|
|
2
2
|
import React, { useRef, useCallback } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { startOfMonth, isToday, isEqual, isSameDay, isWithinInterval, isLastDayOfMonth } from 'date-fns';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as __rest, _ as __assign } from '../../tslib.es6-
|
|
1
|
+
import { a as __rest, _ as __assign } from '../../tslib.es6-decc30d3.js';
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { Button } from '../../../../button/esm';
|
package/calendar/esm/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/calendar/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
var tslib_es6 = require('./tslib.es6-62c2b032.js');
|
|
2
|
+
var React = require('react');
|
|
3
|
+
var cn = require('classnames');
|
|
4
|
+
var recharts = require('recharts');
|
|
5
|
+
var components_LinearGradient = require('./components/LinearGradient.js');
|
|
6
|
+
require('../typography');
|
|
7
|
+
require('./icons/Circle.js');
|
|
8
|
+
require('./icons/CircleLine.js');
|
|
9
|
+
require('./icons/FilledCircle.js');
|
|
10
|
+
require('./icons/StrokeCircle.js');
|
|
11
|
+
var components_Legends_index = require('./components/Legends/index.js');
|
|
12
|
+
require('./icons/Point.js');
|
|
13
|
+
var components_Dot_index = require('./components/Dot/index.js');
|
|
14
|
+
require('./hooks/useSettings/utils/setComposedChartsMargin.js');
|
|
15
|
+
require('./hooks/useSettings/utils/setDatas.js');
|
|
16
|
+
require('./hooks/useSettings/utils/setGradientCharts.js');
|
|
17
|
+
require('./hooks/useSettings/utils/setLegendMargin.js');
|
|
18
|
+
require('./hooks/useSettings/utils/sortByIndex.js');
|
|
19
|
+
var hooks_useSettings_index = require('./hooks/useSettings/index.js');
|
|
20
|
+
var components_Tick_index = require('./components/Tick/index.js');
|
|
21
|
+
var components_TooltipContent_index = require('./components/TooltipContent/index.js');
|
|
22
|
+
|
|
23
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
24
|
+
|
|
25
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
26
|
+
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
27
|
+
|
|
28
|
+
var CustomizedHOC = function (Component, options) {
|
|
29
|
+
var NewComponent = function (props) {
|
|
30
|
+
return React__default['default'].createElement(Component, tslib_es6.__assign({}, props, options));
|
|
31
|
+
};
|
|
32
|
+
return NewComponent;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
var styles = {"coreChart":"chart__coreChart_y5qhn","bar":"chart__bar_y5qhn","unfocused":"chart__unfocused_y5qhn"};
|
|
36
|
+
require('./index.css');
|
|
37
|
+
|
|
38
|
+
var Chart = function (props) {
|
|
39
|
+
var _a;
|
|
40
|
+
var _b = hooks_useSettings_index.useSettings(props), _c = _b[0], state = _c.state, data = _c.data, charts = _c.charts, filterCount = _c.filterCount, _d = _b[1], setCharts = _d.setCharts, setFilterCount = _d.setFilterCount;
|
|
41
|
+
var _e = React.useState({
|
|
42
|
+
prev: null,
|
|
43
|
+
active: null,
|
|
44
|
+
}), activeDotsState = _e[0], setActiveDotsState = _e[1];
|
|
45
|
+
var _f = React.useState(null), yBrush = _f[0], setYBrush = _f[1];
|
|
46
|
+
var _g = React.useState(null), tooltipArrowSide = _g[0], setTooltipArrowSide = _g[1];
|
|
47
|
+
var _h = React.useState(0), heightLegend = _h[0], setHeightLegend = _h[1];
|
|
48
|
+
var svgRef = React.useRef(null);
|
|
49
|
+
var tooltipRef = React.useRef(null);
|
|
50
|
+
var renderGradient = React.useMemo(function () {
|
|
51
|
+
if (!state)
|
|
52
|
+
return null;
|
|
53
|
+
return state.series.map(function (item) {
|
|
54
|
+
var chart = item.chart, gradient = item.gradient;
|
|
55
|
+
if (chart !== 'gradient' || !gradient)
|
|
56
|
+
return null;
|
|
57
|
+
var gid = gradient.gid, points = gradient.points;
|
|
58
|
+
return (React__default['default'].createElement(components_LinearGradient.LinearGradient, { key: state.id + "-" + gid, id: state.id, gid: gid, points: points }));
|
|
59
|
+
});
|
|
60
|
+
}, [state]);
|
|
61
|
+
var toggleChart = React.useCallback(function (item) {
|
|
62
|
+
var chart = item.chart, dataKey = item.properties.dataKey;
|
|
63
|
+
var withGrad = chart === 'area';
|
|
64
|
+
var changed = false;
|
|
65
|
+
if (charts["" + dataKey] && filterCount > 1) {
|
|
66
|
+
changed = true;
|
|
67
|
+
setFilterCount(function (prev) { return prev - 1; });
|
|
68
|
+
}
|
|
69
|
+
if (!charts["" + dataKey]) {
|
|
70
|
+
changed = true;
|
|
71
|
+
setFilterCount(function (prev) { return prev + 1; });
|
|
72
|
+
}
|
|
73
|
+
if (!changed)
|
|
74
|
+
return;
|
|
75
|
+
setCharts(function (prev) {
|
|
76
|
+
var newState = tslib_es6.__assign({}, prev);
|
|
77
|
+
newState["" + dataKey] = !newState["" + dataKey];
|
|
78
|
+
if (withGrad)
|
|
79
|
+
newState[dataKey + "-gradient"] = !newState[dataKey + "-gradient"];
|
|
80
|
+
return newState;
|
|
81
|
+
});
|
|
82
|
+
}, [charts, filterCount, setCharts, setFilterCount]);
|
|
83
|
+
var legendRef = React.useCallback(function (node) {
|
|
84
|
+
if (node !== null) {
|
|
85
|
+
setTimeout(function () {
|
|
86
|
+
var height = node.getBoundingClientRect().height;
|
|
87
|
+
setHeightLegend(height);
|
|
88
|
+
}, 0);
|
|
89
|
+
}
|
|
90
|
+
}, []);
|
|
91
|
+
var renderLegend = React.useMemo(function () {
|
|
92
|
+
var _a, _b, _c;
|
|
93
|
+
if (!(state === null || state === void 0 ? void 0 : state.legend))
|
|
94
|
+
return null;
|
|
95
|
+
var translate = ((_a = state === null || state === void 0 ? void 0 : state.xAxis) === null || _a === void 0 ? void 0 : _a.tickMargin) && ((_b = state === null || state === void 0 ? void 0 : state.legend) === null || _b === void 0 ? void 0 : _b.verticalAlign) !== 'top'
|
|
96
|
+
? state.xAxis.tickMargin + (((_c = state === null || state === void 0 ? void 0 : state.brush) === null || _c === void 0 ? void 0 : _c.brushMargin) || 0)
|
|
97
|
+
: 0;
|
|
98
|
+
return (React__default['default'].createElement(recharts.Legend, tslib_es6.__assign({}, (state.legend || null), { content: React__default['default'].createElement(components_Legends_index.Legends, { legend: state.legend, series: state.series, id: state.id, toggleChart: toggleChart, ref: legendRef, charts: charts }), wrapperStyle: {
|
|
99
|
+
transform: "translateY(" + translate + "px)",
|
|
100
|
+
} })));
|
|
101
|
+
}, [state, charts, toggleChart, legendRef]);
|
|
102
|
+
var renderCartesianGrid = React.useMemo(function () {
|
|
103
|
+
if (!(state === null || state === void 0 ? void 0 : state.cartesianGrid))
|
|
104
|
+
return null;
|
|
105
|
+
return React__default['default'].createElement(recharts.CartesianGrid, tslib_es6.__assign({}, state.cartesianGrid));
|
|
106
|
+
}, [state]);
|
|
107
|
+
var renderXAxis = React.useMemo(function () {
|
|
108
|
+
var _a;
|
|
109
|
+
if (!(state === null || state === void 0 ? void 0 : state.xAxis))
|
|
110
|
+
return null;
|
|
111
|
+
var tick;
|
|
112
|
+
if (((_a = state === null || state === void 0 ? void 0 : state.xAxis) === null || _a === void 0 ? void 0 : _a.tickType) === 'point') {
|
|
113
|
+
tick = CustomizedHOC(components_Tick_index.Tick, { xAxis: state.xAxis });
|
|
114
|
+
}
|
|
115
|
+
else if (typeof state.xAxis.tick === 'boolean') {
|
|
116
|
+
tick = state.xAxis.tick;
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
tick = true;
|
|
120
|
+
}
|
|
121
|
+
return React__default['default'].createElement(recharts.XAxis, tslib_es6.__assign({}, state.xAxis, { tick: tick }));
|
|
122
|
+
}, [state]);
|
|
123
|
+
var renderYAxis = React.useMemo(function () {
|
|
124
|
+
var _a;
|
|
125
|
+
if (!(state === null || state === void 0 ? void 0 : state.yAxis))
|
|
126
|
+
return null;
|
|
127
|
+
var tick;
|
|
128
|
+
if ((_a = state === null || state === void 0 ? void 0 : state.yAxis) === null || _a === void 0 ? void 0 : _a.tick) {
|
|
129
|
+
tick = CustomizedHOC(state.yAxis.tick, { state: state });
|
|
130
|
+
}
|
|
131
|
+
else if (typeof state.yAxis.tick === 'boolean') {
|
|
132
|
+
tick = state.yAxis.tick;
|
|
133
|
+
}
|
|
134
|
+
else {
|
|
135
|
+
tick = true;
|
|
136
|
+
}
|
|
137
|
+
return React__default['default'].createElement(recharts.YAxis, tslib_es6.__assign({}, state.yAxis, { tick: tick }));
|
|
138
|
+
}, [state]);
|
|
139
|
+
var renderBrush = React.useMemo(function () {
|
|
140
|
+
if (!(state === null || state === void 0 ? void 0 : state.brush))
|
|
141
|
+
return null;
|
|
142
|
+
return React__default['default'].createElement(recharts.Brush, tslib_es6.__assign({ y: typeof yBrush === 'number' ? yBrush : 0 }, state.brush));
|
|
143
|
+
}, [state, yBrush]);
|
|
144
|
+
var renderTooltip = React.useMemo(function () {
|
|
145
|
+
if (!(state === null || state === void 0 ? void 0 : state.tooltip))
|
|
146
|
+
return null;
|
|
147
|
+
return (React__default['default'].createElement(recharts.Tooltip, tslib_es6.__assign({ ref: tooltipRef }, state.tooltip, { content: CustomizedHOC(components_TooltipContent_index.TooltipContent, { series: state.series, tooltipArrowSide: tooltipArrowSide }) })));
|
|
148
|
+
}, [state, tooltipArrowSide]);
|
|
149
|
+
var renderChartsItems = React.useMemo(function () {
|
|
150
|
+
if (!state || !charts)
|
|
151
|
+
return null;
|
|
152
|
+
return state.series.map(function (item) {
|
|
153
|
+
var chart = item.chart, properties = item.properties;
|
|
154
|
+
var show = charts["" + properties.dataKey];
|
|
155
|
+
switch (chart) {
|
|
156
|
+
case 'bar':
|
|
157
|
+
return show && !(item === null || item === void 0 ? void 0 : item.hide) ? (React__default['default'].createElement(recharts.Bar, tslib_es6.__assign({ key: state.id + "-" + properties.dataKey }, properties), data.map(function (_, index) {
|
|
158
|
+
var key = state.id + "-" + properties.dataKey + "-" + index;
|
|
159
|
+
return (React__default['default'].createElement(recharts.Cell, { key: key, className: cn__default['default'](styles.bar, typeof activeDotsState.active === 'number' &&
|
|
160
|
+
activeDotsState.active !== index
|
|
161
|
+
? styles.unfocused
|
|
162
|
+
: '') }));
|
|
163
|
+
}))) : null;
|
|
164
|
+
case 'area':
|
|
165
|
+
case 'line':
|
|
166
|
+
return show && !(item === null || item === void 0 ? void 0 : item.hide) ? (React__default['default'].createElement(recharts.Line, tslib_es6.__assign({ key: state.id + "-" + properties.dataKey }, properties, { dot: properties.dot && properties.dotSettings
|
|
167
|
+
? CustomizedHOC(components_Dot_index.Dot, {
|
|
168
|
+
activeDot: activeDotsState.active,
|
|
169
|
+
dotSettings: properties.dotSettings,
|
|
170
|
+
inherit: (properties === null || properties === void 0 ? void 0 : properties.inheritStroke) ? properties.inheritStroke
|
|
171
|
+
: false,
|
|
172
|
+
})
|
|
173
|
+
: false, activeDot: false }))) : null;
|
|
174
|
+
case 'gradient':
|
|
175
|
+
return show && !(item === null || item === void 0 ? void 0 : item.hide) ? (React__default['default'].createElement(recharts.Area, tslib_es6.__assign({}, item.properties, { key: state.id + "-" + item.properties.dataKey, dataKey: "" + item.properties.dataKey, stroke: 'transparent', fill: item.gradient.gid
|
|
176
|
+
? "url(#" + state.id + "-" + item.gradient.gid + ")"
|
|
177
|
+
: item.properties.fill, dot: false, activeDot: false }))) : null;
|
|
178
|
+
default:
|
|
179
|
+
return null;
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
}, [charts, state, activeDotsState, data]);
|
|
183
|
+
// Позиционирование brush
|
|
184
|
+
React.useEffect(function () {
|
|
185
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
186
|
+
if (!state || !state.brush)
|
|
187
|
+
return;
|
|
188
|
+
if (!heightLegend || heightLegend === 0)
|
|
189
|
+
return;
|
|
190
|
+
var align = (_a = state === null || state === void 0 ? void 0 : state.legend) === null || _a === void 0 ? void 0 : _a.verticalAlign;
|
|
191
|
+
var legendHeight = align === 'top' ? 0 : heightLegend;
|
|
192
|
+
var marginTick = ((_b = state === null || state === void 0 ? void 0 : state.xAxis) === null || _b === void 0 ? void 0 : _b.tickMargin) ? (_c = state === null || state === void 0 ? void 0 : state.xAxis) === null || _c === void 0 ? void 0 : _c.tickMargin : 0;
|
|
193
|
+
var brushY = (((_d = svgRef.current) === null || _d === void 0 ? void 0 : _d.clientHeight) ? svgRef.current.clientHeight : 0) -
|
|
194
|
+
legendHeight -
|
|
195
|
+
state.brush.height -
|
|
196
|
+
(((_f = (_e = state === null || state === void 0 ? void 0 : state.composeChart) === null || _e === void 0 ? void 0 : _e.margin) === null || _f === void 0 ? void 0 : _f.bottom) ? state.composeChart.margin.bottom : 0) +
|
|
197
|
+
marginTick +
|
|
198
|
+
(((_g = state.brush) === null || _g === void 0 ? void 0 : _g.brushMargin) ? state.brush.brushMargin : 0);
|
|
199
|
+
setYBrush(brushY);
|
|
200
|
+
}, [heightLegend, state]);
|
|
201
|
+
var leaveEvent = function (isTooltipActive) {
|
|
202
|
+
if (isTooltipActive)
|
|
203
|
+
return;
|
|
204
|
+
if (typeof activeDotsState.prev !== 'number' || typeof activeDotsState.active !== 'number')
|
|
205
|
+
return;
|
|
206
|
+
setActiveDotsState({
|
|
207
|
+
prev: null,
|
|
208
|
+
active: null,
|
|
209
|
+
});
|
|
210
|
+
};
|
|
211
|
+
var arrowTooltipEvent = function (activeCoordinate) {
|
|
212
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
213
|
+
if (!((_a = state === null || state === void 0 ? void 0 : state.tooltip) === null || _a === void 0 ? void 0 : _a.arrow))
|
|
214
|
+
return;
|
|
215
|
+
if (((_b = state === null || state === void 0 ? void 0 : state.tooltip) === null || _b === void 0 ? void 0 : _b.arrow) && (activeCoordinate === null || activeCoordinate === void 0 ? void 0 : activeCoordinate.x)) {
|
|
216
|
+
var side = (((_c = svgRef === null || svgRef === void 0 ? void 0 : svgRef.current) === null || _c === void 0 ? void 0 : _c.clientWidth) || 0) -
|
|
217
|
+
(((_e = (_d = state === null || state === void 0 ? void 0 : state.composeChart) === null || _d === void 0 ? void 0 : _d.margin) === null || _e === void 0 ? void 0 : _e.right) || 0) -
|
|
218
|
+
activeCoordinate.x -
|
|
219
|
+
(((_g = (_f = tooltipRef.current) === null || _f === void 0 ? void 0 : _f.state) === null || _g === void 0 ? void 0 : _g.boxWidth) || 0) >
|
|
220
|
+
20;
|
|
221
|
+
setTooltipArrowSide(side);
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
var hoverEvent = function (isTooltipActive, activeTooltipIndex) {
|
|
225
|
+
if (!isTooltipActive)
|
|
226
|
+
return;
|
|
227
|
+
if (typeof activeDotsState.active === 'number' &&
|
|
228
|
+
activeTooltipIndex === activeDotsState.active)
|
|
229
|
+
return;
|
|
230
|
+
if (typeof activeTooltipIndex === 'number' && typeof activeDotsState.active !== 'number') {
|
|
231
|
+
setActiveDotsState({
|
|
232
|
+
prev: activeTooltipIndex,
|
|
233
|
+
active: activeTooltipIndex,
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
if (typeof activeTooltipIndex === 'number' && typeof activeDotsState.prev === 'number') {
|
|
237
|
+
setActiveDotsState(function (prev) {
|
|
238
|
+
return {
|
|
239
|
+
prev: prev.active,
|
|
240
|
+
active: activeTooltipIndex,
|
|
241
|
+
};
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
};
|
|
245
|
+
var mouseMove = function (e) {
|
|
246
|
+
arrowTooltipEvent(e.activeCoordinate);
|
|
247
|
+
hoverEvent(e.isTooltipActive, e.activeTooltipIndex);
|
|
248
|
+
leaveEvent(e.isTooltipActive);
|
|
249
|
+
};
|
|
250
|
+
var mouseLeave = function (e) {
|
|
251
|
+
leaveEvent(e.isTooltipActive);
|
|
252
|
+
};
|
|
253
|
+
if (!data || !charts || !state)
|
|
254
|
+
return null;
|
|
255
|
+
return (React__default['default'].createElement("div", { className: styles.coreChart, ref: svgRef, id: (state === null || state === void 0 ? void 0 : state.id) || '', style: { width: '100%', height: '100%' } },
|
|
256
|
+
React__default['default'].createElement(recharts.ResponsiveContainer, { debounce: ((_a = state === null || state === void 0 ? void 0 : state.responsiveContainer) === null || _a === void 0 ? void 0 : _a.debounce) ? state.responsiveContainer.debounce : 0, width: '100%' },
|
|
257
|
+
React__default['default'].createElement(recharts.ComposedChart, tslib_es6.__assign({}, state === null || state === void 0 ? void 0 : state.composeChart, { onMouseMove: mouseMove, onMouseLeave: mouseLeave, data: data }),
|
|
258
|
+
React__default['default'].createElement("defs", null, renderGradient),
|
|
259
|
+
state.cartesianGrid && renderCartesianGrid,
|
|
260
|
+
state.xAxis && renderXAxis,
|
|
261
|
+
state.yAxis && renderYAxis,
|
|
262
|
+
renderChartsItems,
|
|
263
|
+
state.tooltip && renderTooltip,
|
|
264
|
+
state.brush && renderBrush,
|
|
265
|
+
state.legend && renderLegend))));
|
|
266
|
+
};
|
|
267
|
+
var Component = React__default['default'].memo(Chart);
|
|
268
|
+
|
|
269
|
+
module.exports = Component;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/* hash: 1pu5t */
|
|
2
|
+
.chart__dotUnfocused_1pu5t {
|
|
3
|
+
opacity: 0.3;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.chart__dot_1pu5t,
|
|
7
|
+
.chart__dotItem_1pu5t,
|
|
8
|
+
.chart__dotWrap_1pu5t {
|
|
9
|
+
transition: all 0.2s ease;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.chart__dot_1pu5t {
|
|
13
|
+
animation: chart__showDot_1pu5t 0.5s ease;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@keyframes chart__showDot_1pu5t {
|
|
17
|
+
from {
|
|
18
|
+
opacity: 0;
|
|
19
|
+
}
|
|
20
|
+
to {
|
|
21
|
+
opacity: 1;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var cn = require('classnames');
|
|
5
|
+
var icons_Point = require('../../icons/Point.js');
|
|
6
|
+
|
|
7
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
+
|
|
9
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
10
|
+
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
11
|
+
|
|
12
|
+
var styles = {"dotUnfocused":"chart__dotUnfocused_1pu5t","dot":"chart__dot_1pu5t","dotItem":"chart__dotItem_1pu5t","dotWrap":"chart__dotWrap_1pu5t","showDot":"chart__showDot_1pu5t"};
|
|
13
|
+
require('./index.css');
|
|
14
|
+
|
|
15
|
+
var Dot = React__default['default'].forwardRef(function (_a, ref) {
|
|
16
|
+
var cx = _a.cx, cy = _a.cy, index = _a.index, activeDot = _a.activeDot, dataKey = _a.dataKey, dotSettings = _a.dotSettings, value = _a.value, stroke = _a.stroke;
|
|
17
|
+
var _b = React.useState(0), windowWidth = _b[0], setWindowWidth = _b[1];
|
|
18
|
+
var _c = React.useState(0), height = _c[0], setHeight = _c[1];
|
|
19
|
+
var _d = React.useState(0), width = _d[0], setWidth = _d[1];
|
|
20
|
+
var _e = React.useState(null), option = _e[0], setOption = _e[1];
|
|
21
|
+
React.useEffect(function () {
|
|
22
|
+
var dotSetting = Array.isArray(dotSettings) && dotSettings.length > 0
|
|
23
|
+
? dotSettings.find(function (item) { return item.media && windowWidth < item.media; })
|
|
24
|
+
: dotSettings;
|
|
25
|
+
if (Array.isArray(dotSettings) && dotSettings.length > 0 && !dotSetting) {
|
|
26
|
+
dotSetting = dotSettings[dotSettings.length - 1];
|
|
27
|
+
}
|
|
28
|
+
setWindowWidth(window.innerWidth);
|
|
29
|
+
setOption(dotSetting);
|
|
30
|
+
}, [dotSettings, windowWidth]);
|
|
31
|
+
React.useEffect(function () {
|
|
32
|
+
if (!option)
|
|
33
|
+
return;
|
|
34
|
+
if (typeof activeDot === 'number' && activeDot === index) {
|
|
35
|
+
setHeight(option.height * option.scale);
|
|
36
|
+
setWidth(option.width * option.scale);
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
setHeight(option.height * option.initScale);
|
|
40
|
+
setWidth(option.width * option.initScale);
|
|
41
|
+
}
|
|
42
|
+
}, [activeDot, index, option]);
|
|
43
|
+
if (!value)
|
|
44
|
+
return null;
|
|
45
|
+
return (React__default['default'].createElement("g", { ref: ref, className: cn__default['default'](styles.dot), transform: "translate(" + (cx - width / 2) + ", " + (cy - height / 2) + ")" },
|
|
46
|
+
React__default['default'].createElement("g", { className: cn__default['default'](styles.dotWrap), transform: "scale(" + (activeDot === index ? (option === null || option === void 0 ? void 0 : option.scale) || 0 : (option === null || option === void 0 ? void 0 : option.initScale) || 0) + ")" },
|
|
47
|
+
React__default['default'].createElement("svg", { className: cn__default['default'](styles.dotItem, activeDot === index ? styles.dotActive : '', typeof activeDot === 'number' && activeDot !== index
|
|
48
|
+
? styles.dotUnfocused
|
|
49
|
+
: ''), "data-id": index, "data-name": dataKey, width: (option === null || option === void 0 ? void 0 : option.width) || 0, height: (option === null || option === void 0 ? void 0 : option.height) || 0 },
|
|
50
|
+
React__default['default'].createElement(icons_Point.PointIcon, { fill: stroke })))));
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
exports.Dot = Dot;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* hash: hkiwp */
|
|
2
|
+
:root {
|
|
3
|
+
|
|
4
|
+
/* Hard */
|
|
5
|
+
|
|
6
|
+
/* Up */
|
|
7
|
+
|
|
8
|
+
/* Hard up */
|
|
9
|
+
}
|
|
10
|
+
:root {
|
|
11
|
+
--gap-2xl: 32px;
|
|
12
|
+
}
|
|
13
|
+
.chart__legendContent_hkiwp {
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
flex-wrap: wrap;
|
|
17
|
+
}
|
|
18
|
+
.chart__legendWrap_hkiwp {
|
|
19
|
+
width: 100%;
|
|
20
|
+
margin: 0;
|
|
21
|
+
padding: 0;
|
|
22
|
+
}
|
|
23
|
+
.chart__legendItem_hkiwp {
|
|
24
|
+
margin-right: var(--gap-2xl);
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
display: inline-block;
|
|
27
|
+
}
|
|
28
|
+
.chart__legendItem_hkiwp:last-child {
|
|
29
|
+
margin-right: 0;
|
|
30
|
+
}
|
|
31
|
+
.chart__legendUnactive_hkiwp {
|
|
32
|
+
opacity: 0.3;
|
|
33
|
+
}
|
|
34
|
+
.chart__legendIcon_hkiwp {
|
|
35
|
+
margin-right: 13px;
|
|
36
|
+
display: flex;
|
|
37
|
+
}
|
|
38
|
+
.chart__legendValue_hkiwp {
|
|
39
|
+
text-transform: capitalize;
|
|
40
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { DataDynamicBooleanProps } from "../../types/utils/data.types";
|
|
4
|
+
import { LegendProps } from "../../types/legend.types";
|
|
5
|
+
import { SeriaProps } from "../../types/seria.types";
|
|
6
|
+
interface Props {
|
|
7
|
+
legend: LegendProps;
|
|
8
|
+
series: SeriaProps[];
|
|
9
|
+
id: string;
|
|
10
|
+
charts: DataDynamicBooleanProps;
|
|
11
|
+
toggleChart(item: SeriaProps): void;
|
|
12
|
+
}
|
|
13
|
+
declare const Legends: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLUListElement>>;
|
|
14
|
+
export { Legends };
|