@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
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { CoordinatesProps } from "./coordinates.types";
|
|
2
|
+
import { DataProps } from "./data.types";
|
|
3
|
+
interface DotSettingProps {
|
|
4
|
+
/**
|
|
5
|
+
* Значение media query.
|
|
6
|
+
*/
|
|
7
|
+
media?: number;
|
|
8
|
+
/**
|
|
9
|
+
* Значение маштаба при ховере.
|
|
10
|
+
*/
|
|
11
|
+
scale: number;
|
|
12
|
+
/**
|
|
13
|
+
* Начальный значения маштаба.
|
|
14
|
+
*/
|
|
15
|
+
initScale: number;
|
|
16
|
+
/**
|
|
17
|
+
* Ширина точки.
|
|
18
|
+
*/
|
|
19
|
+
width: number;
|
|
20
|
+
/**
|
|
21
|
+
* Высота точки.
|
|
22
|
+
*/
|
|
23
|
+
height: number;
|
|
24
|
+
}
|
|
25
|
+
interface ActiveDotProps {
|
|
26
|
+
/**
|
|
27
|
+
* Индекс предыдущей точки.
|
|
28
|
+
*/
|
|
29
|
+
prev: number | null;
|
|
30
|
+
/**
|
|
31
|
+
* Индекс активной точки.
|
|
32
|
+
*/
|
|
33
|
+
active: number | null;
|
|
34
|
+
}
|
|
35
|
+
interface PointProps extends CoordinatesProps {
|
|
36
|
+
value: string | number;
|
|
37
|
+
payload: DataProps;
|
|
38
|
+
}
|
|
39
|
+
interface DotProps {
|
|
40
|
+
/**
|
|
41
|
+
* Индекс активной точки на графике.
|
|
42
|
+
*/
|
|
43
|
+
activeDot: null | number;
|
|
44
|
+
/**
|
|
45
|
+
* Координата Х.
|
|
46
|
+
*/
|
|
47
|
+
cx: number;
|
|
48
|
+
/**
|
|
49
|
+
* Координата У.
|
|
50
|
+
*/
|
|
51
|
+
cy: number;
|
|
52
|
+
/**
|
|
53
|
+
* Ключ данных.
|
|
54
|
+
*/
|
|
55
|
+
dataKey: string;
|
|
56
|
+
/**
|
|
57
|
+
* Параметры точки.
|
|
58
|
+
*/
|
|
59
|
+
dotSettings?: DotSettingProps;
|
|
60
|
+
/**
|
|
61
|
+
* Индекс.
|
|
62
|
+
*/
|
|
63
|
+
index: number;
|
|
64
|
+
/**
|
|
65
|
+
* Цвет линии.
|
|
66
|
+
*/
|
|
67
|
+
stroke: string;
|
|
68
|
+
/**
|
|
69
|
+
* Значения по этим координатам.
|
|
70
|
+
*/
|
|
71
|
+
value: number;
|
|
72
|
+
}
|
|
73
|
+
export { DotSettingProps, ActiveDotProps, PointProps, DotProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
interface GradientProps {
|
|
2
|
+
/**
|
|
3
|
+
* Отступ.
|
|
4
|
+
*/
|
|
5
|
+
offset: number;
|
|
6
|
+
/**
|
|
7
|
+
* Цвет.
|
|
8
|
+
*/
|
|
9
|
+
stopColor: string;
|
|
10
|
+
/**
|
|
11
|
+
* Значение празрачности.
|
|
12
|
+
*/
|
|
13
|
+
stopOpacity: number;
|
|
14
|
+
}
|
|
15
|
+
interface LinearGradientProps {
|
|
16
|
+
/**
|
|
17
|
+
* Индефикатор графика.
|
|
18
|
+
*/
|
|
19
|
+
id: string;
|
|
20
|
+
/**
|
|
21
|
+
* Индефикатор градиента.
|
|
22
|
+
*/
|
|
23
|
+
gid: string;
|
|
24
|
+
/**
|
|
25
|
+
* Массив настроек градинта.
|
|
26
|
+
*/
|
|
27
|
+
points: GradientProps[];
|
|
28
|
+
}
|
|
29
|
+
export { GradientProps, LinearGradientProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { XAxisProps } from "../xAxis.types";
|
|
3
|
+
interface TickProps {
|
|
4
|
+
payload: {
|
|
5
|
+
coordinate: number;
|
|
6
|
+
value: number;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Функция форматирования
|
|
10
|
+
*/
|
|
11
|
+
tickFormatter: (value: number | string) => React.ReactText;
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
/**
|
|
15
|
+
* Настройки оси Х
|
|
16
|
+
*/
|
|
17
|
+
xAxis: XAxisProps;
|
|
18
|
+
}
|
|
19
|
+
export { TickProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AxisProps } from "./utils/axis.types";
|
|
2
|
+
interface XAxisProps extends AxisProps {
|
|
3
|
+
/**
|
|
4
|
+
* Ключ данных, отображаемых на оси.
|
|
5
|
+
*/
|
|
6
|
+
dataKey: string | number;
|
|
7
|
+
/**
|
|
8
|
+
* Ориентация оси
|
|
9
|
+
*/
|
|
10
|
+
orientation?: 'top' | 'bottom';
|
|
11
|
+
/**
|
|
12
|
+
* Тип деления оси
|
|
13
|
+
*/
|
|
14
|
+
tickType?: 'point';
|
|
15
|
+
}
|
|
16
|
+
export { XAxisProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import { _ as __assign } from './tslib.es6-defbba9d.js';
|
|
2
|
+
import React, { useState, useRef, useMemo, useCallback, useEffect } from 'react';
|
|
3
|
+
import cn from 'classnames';
|
|
4
|
+
import { Legend, CartesianGrid, XAxis, YAxis, Brush, Tooltip, Area, Line, Bar, Cell, ResponsiveContainer, ComposedChart } from 'recharts';
|
|
5
|
+
import { LinearGradient } from './components/LinearGradient.js';
|
|
6
|
+
import '../../typography/esm';
|
|
7
|
+
import './icons/Circle.js';
|
|
8
|
+
import './icons/CircleLine.js';
|
|
9
|
+
import './icons/FilledCircle.js';
|
|
10
|
+
import './icons/StrokeCircle.js';
|
|
11
|
+
import { Legends } from './components/Legends/index.js';
|
|
12
|
+
import './icons/Point.js';
|
|
13
|
+
import { Dot } from './components/Dot/index.js';
|
|
14
|
+
import './hooks/useSettings/utils/setComposedChartsMargin.js';
|
|
15
|
+
import './hooks/useSettings/utils/setDatas.js';
|
|
16
|
+
import './hooks/useSettings/utils/setGradientCharts.js';
|
|
17
|
+
import './hooks/useSettings/utils/setLegendMargin.js';
|
|
18
|
+
import './hooks/useSettings/utils/sortByIndex.js';
|
|
19
|
+
import { useSettings } from './hooks/useSettings/index.js';
|
|
20
|
+
import { Tick } from './components/Tick/index.js';
|
|
21
|
+
import { TooltipContent } from './components/TooltipContent/index.js';
|
|
22
|
+
|
|
23
|
+
var CustomizedHOC = function (Component, options) {
|
|
24
|
+
var NewComponent = function (props) {
|
|
25
|
+
return React.createElement(Component, __assign({}, props, options));
|
|
26
|
+
};
|
|
27
|
+
return NewComponent;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
var styles = {"coreChart":"chart__coreChart_y5qhn","bar":"chart__bar_y5qhn","unfocused":"chart__unfocused_y5qhn"};
|
|
31
|
+
require('./index.css');
|
|
32
|
+
|
|
33
|
+
var Chart = function (props) {
|
|
34
|
+
var _a;
|
|
35
|
+
var _b = 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;
|
|
36
|
+
var _e = useState({
|
|
37
|
+
prev: null,
|
|
38
|
+
active: null,
|
|
39
|
+
}), activeDotsState = _e[0], setActiveDotsState = _e[1];
|
|
40
|
+
var _f = useState(null), yBrush = _f[0], setYBrush = _f[1];
|
|
41
|
+
var _g = useState(null), tooltipArrowSide = _g[0], setTooltipArrowSide = _g[1];
|
|
42
|
+
var _h = useState(0), heightLegend = _h[0], setHeightLegend = _h[1];
|
|
43
|
+
var svgRef = useRef(null);
|
|
44
|
+
var tooltipRef = useRef(null);
|
|
45
|
+
var renderGradient = useMemo(function () {
|
|
46
|
+
if (!state)
|
|
47
|
+
return null;
|
|
48
|
+
return state.series.map(function (item) {
|
|
49
|
+
var chart = item.chart, gradient = item.gradient;
|
|
50
|
+
if (chart !== 'gradient' || !gradient)
|
|
51
|
+
return null;
|
|
52
|
+
var gid = gradient.gid, points = gradient.points;
|
|
53
|
+
return (React.createElement(LinearGradient, { key: state.id + "-" + gid, id: state.id, gid: gid, points: points }));
|
|
54
|
+
});
|
|
55
|
+
}, [state]);
|
|
56
|
+
var toggleChart = useCallback(function (item) {
|
|
57
|
+
var chart = item.chart, dataKey = item.properties.dataKey;
|
|
58
|
+
var withGrad = chart === 'area';
|
|
59
|
+
var changed = false;
|
|
60
|
+
if (charts["" + dataKey] && filterCount > 1) {
|
|
61
|
+
changed = true;
|
|
62
|
+
setFilterCount(function (prev) { return prev - 1; });
|
|
63
|
+
}
|
|
64
|
+
if (!charts["" + dataKey]) {
|
|
65
|
+
changed = true;
|
|
66
|
+
setFilterCount(function (prev) { return prev + 1; });
|
|
67
|
+
}
|
|
68
|
+
if (!changed)
|
|
69
|
+
return;
|
|
70
|
+
setCharts(function (prev) {
|
|
71
|
+
var newState = __assign({}, prev);
|
|
72
|
+
newState["" + dataKey] = !newState["" + dataKey];
|
|
73
|
+
if (withGrad)
|
|
74
|
+
newState[dataKey + "-gradient"] = !newState[dataKey + "-gradient"];
|
|
75
|
+
return newState;
|
|
76
|
+
});
|
|
77
|
+
}, [charts, filterCount, setCharts, setFilterCount]);
|
|
78
|
+
var legendRef = useCallback(function (node) {
|
|
79
|
+
if (node !== null) {
|
|
80
|
+
setTimeout(function () {
|
|
81
|
+
var height = node.getBoundingClientRect().height;
|
|
82
|
+
setHeightLegend(height);
|
|
83
|
+
}, 0);
|
|
84
|
+
}
|
|
85
|
+
}, []);
|
|
86
|
+
var renderLegend = useMemo(function () {
|
|
87
|
+
var _a, _b, _c;
|
|
88
|
+
if (!(state === null || state === void 0 ? void 0 : state.legend))
|
|
89
|
+
return null;
|
|
90
|
+
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'
|
|
91
|
+
? state.xAxis.tickMargin + (((_c = state === null || state === void 0 ? void 0 : state.brush) === null || _c === void 0 ? void 0 : _c.brushMargin) || 0)
|
|
92
|
+
: 0;
|
|
93
|
+
return (React.createElement(Legend, __assign({}, (state.legend || null), { content: React.createElement(Legends, { legend: state.legend, series: state.series, id: state.id, toggleChart: toggleChart, ref: legendRef, charts: charts }), wrapperStyle: {
|
|
94
|
+
transform: "translateY(" + translate + "px)",
|
|
95
|
+
} })));
|
|
96
|
+
}, [state, charts, toggleChart, legendRef]);
|
|
97
|
+
var renderCartesianGrid = useMemo(function () {
|
|
98
|
+
if (!(state === null || state === void 0 ? void 0 : state.cartesianGrid))
|
|
99
|
+
return null;
|
|
100
|
+
return React.createElement(CartesianGrid, __assign({}, state.cartesianGrid));
|
|
101
|
+
}, [state]);
|
|
102
|
+
var renderXAxis = useMemo(function () {
|
|
103
|
+
var _a;
|
|
104
|
+
if (!(state === null || state === void 0 ? void 0 : state.xAxis))
|
|
105
|
+
return null;
|
|
106
|
+
var tick;
|
|
107
|
+
if (((_a = state === null || state === void 0 ? void 0 : state.xAxis) === null || _a === void 0 ? void 0 : _a.tickType) === 'point') {
|
|
108
|
+
tick = CustomizedHOC(Tick, { xAxis: state.xAxis });
|
|
109
|
+
}
|
|
110
|
+
else if (typeof state.xAxis.tick === 'boolean') {
|
|
111
|
+
tick = state.xAxis.tick;
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
tick = true;
|
|
115
|
+
}
|
|
116
|
+
return React.createElement(XAxis, __assign({}, state.xAxis, { tick: tick }));
|
|
117
|
+
}, [state]);
|
|
118
|
+
var renderYAxis = useMemo(function () {
|
|
119
|
+
var _a;
|
|
120
|
+
if (!(state === null || state === void 0 ? void 0 : state.yAxis))
|
|
121
|
+
return null;
|
|
122
|
+
var tick;
|
|
123
|
+
if ((_a = state === null || state === void 0 ? void 0 : state.yAxis) === null || _a === void 0 ? void 0 : _a.tick) {
|
|
124
|
+
tick = CustomizedHOC(state.yAxis.tick, { state: state });
|
|
125
|
+
}
|
|
126
|
+
else if (typeof state.yAxis.tick === 'boolean') {
|
|
127
|
+
tick = state.yAxis.tick;
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
tick = true;
|
|
131
|
+
}
|
|
132
|
+
return React.createElement(YAxis, __assign({}, state.yAxis, { tick: tick }));
|
|
133
|
+
}, [state]);
|
|
134
|
+
var renderBrush = useMemo(function () {
|
|
135
|
+
if (!(state === null || state === void 0 ? void 0 : state.brush))
|
|
136
|
+
return null;
|
|
137
|
+
return React.createElement(Brush, __assign({ y: typeof yBrush === 'number' ? yBrush : 0 }, state.brush));
|
|
138
|
+
}, [state, yBrush]);
|
|
139
|
+
var renderTooltip = useMemo(function () {
|
|
140
|
+
if (!(state === null || state === void 0 ? void 0 : state.tooltip))
|
|
141
|
+
return null;
|
|
142
|
+
return (React.createElement(Tooltip, __assign({ ref: tooltipRef }, state.tooltip, { content: CustomizedHOC(TooltipContent, { series: state.series, tooltipArrowSide: tooltipArrowSide }) })));
|
|
143
|
+
}, [state, tooltipArrowSide]);
|
|
144
|
+
var renderChartsItems = useMemo(function () {
|
|
145
|
+
if (!state || !charts)
|
|
146
|
+
return null;
|
|
147
|
+
return state.series.map(function (item) {
|
|
148
|
+
var chart = item.chart, properties = item.properties;
|
|
149
|
+
var show = charts["" + properties.dataKey];
|
|
150
|
+
switch (chart) {
|
|
151
|
+
case 'bar':
|
|
152
|
+
return show && !(item === null || item === void 0 ? void 0 : item.hide) ? (React.createElement(Bar, __assign({ key: state.id + "-" + properties.dataKey }, properties), data.map(function (_, index) {
|
|
153
|
+
var key = state.id + "-" + properties.dataKey + "-" + index;
|
|
154
|
+
return (React.createElement(Cell, { key: key, className: cn(styles.bar, typeof activeDotsState.active === 'number' &&
|
|
155
|
+
activeDotsState.active !== index
|
|
156
|
+
? styles.unfocused
|
|
157
|
+
: '') }));
|
|
158
|
+
}))) : null;
|
|
159
|
+
case 'area':
|
|
160
|
+
case 'line':
|
|
161
|
+
return show && !(item === null || item === void 0 ? void 0 : item.hide) ? (React.createElement(Line, __assign({ key: state.id + "-" + properties.dataKey }, properties, { dot: properties.dot && properties.dotSettings
|
|
162
|
+
? CustomizedHOC(Dot, {
|
|
163
|
+
activeDot: activeDotsState.active,
|
|
164
|
+
dotSettings: properties.dotSettings,
|
|
165
|
+
inherit: (properties === null || properties === void 0 ? void 0 : properties.inheritStroke) ? properties.inheritStroke
|
|
166
|
+
: false,
|
|
167
|
+
})
|
|
168
|
+
: false, activeDot: false }))) : null;
|
|
169
|
+
case 'gradient':
|
|
170
|
+
return show && !(item === null || item === void 0 ? void 0 : item.hide) ? (React.createElement(Area, __assign({}, item.properties, { key: state.id + "-" + item.properties.dataKey, dataKey: "" + item.properties.dataKey, stroke: 'transparent', fill: item.gradient.gid
|
|
171
|
+
? "url(#" + state.id + "-" + item.gradient.gid + ")"
|
|
172
|
+
: item.properties.fill, dot: false, activeDot: false }))) : null;
|
|
173
|
+
default:
|
|
174
|
+
return null;
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
}, [charts, state, activeDotsState, data]);
|
|
178
|
+
// Позиционирование brush
|
|
179
|
+
useEffect(function () {
|
|
180
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
181
|
+
if (!state || !state.brush)
|
|
182
|
+
return;
|
|
183
|
+
if (!heightLegend || heightLegend === 0)
|
|
184
|
+
return;
|
|
185
|
+
var align = (_a = state === null || state === void 0 ? void 0 : state.legend) === null || _a === void 0 ? void 0 : _a.verticalAlign;
|
|
186
|
+
var legendHeight = align === 'top' ? 0 : heightLegend;
|
|
187
|
+
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;
|
|
188
|
+
var brushY = (((_d = svgRef.current) === null || _d === void 0 ? void 0 : _d.clientHeight) ? svgRef.current.clientHeight : 0) -
|
|
189
|
+
legendHeight -
|
|
190
|
+
state.brush.height -
|
|
191
|
+
(((_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) +
|
|
192
|
+
marginTick +
|
|
193
|
+
(((_g = state.brush) === null || _g === void 0 ? void 0 : _g.brushMargin) ? state.brush.brushMargin : 0);
|
|
194
|
+
setYBrush(brushY);
|
|
195
|
+
}, [heightLegend, state]);
|
|
196
|
+
var leaveEvent = function (isTooltipActive) {
|
|
197
|
+
if (isTooltipActive)
|
|
198
|
+
return;
|
|
199
|
+
if (typeof activeDotsState.prev !== 'number' || typeof activeDotsState.active !== 'number')
|
|
200
|
+
return;
|
|
201
|
+
setActiveDotsState({
|
|
202
|
+
prev: null,
|
|
203
|
+
active: null,
|
|
204
|
+
});
|
|
205
|
+
};
|
|
206
|
+
var arrowTooltipEvent = function (activeCoordinate) {
|
|
207
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
208
|
+
if (!((_a = state === null || state === void 0 ? void 0 : state.tooltip) === null || _a === void 0 ? void 0 : _a.arrow))
|
|
209
|
+
return;
|
|
210
|
+
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)) {
|
|
211
|
+
var side = (((_c = svgRef === null || svgRef === void 0 ? void 0 : svgRef.current) === null || _c === void 0 ? void 0 : _c.clientWidth) || 0) -
|
|
212
|
+
(((_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) -
|
|
213
|
+
activeCoordinate.x -
|
|
214
|
+
(((_g = (_f = tooltipRef.current) === null || _f === void 0 ? void 0 : _f.state) === null || _g === void 0 ? void 0 : _g.boxWidth) || 0) >
|
|
215
|
+
20;
|
|
216
|
+
setTooltipArrowSide(side);
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
var hoverEvent = function (isTooltipActive, activeTooltipIndex) {
|
|
220
|
+
if (!isTooltipActive)
|
|
221
|
+
return;
|
|
222
|
+
if (typeof activeDotsState.active === 'number' &&
|
|
223
|
+
activeTooltipIndex === activeDotsState.active)
|
|
224
|
+
return;
|
|
225
|
+
if (typeof activeTooltipIndex === 'number' && typeof activeDotsState.active !== 'number') {
|
|
226
|
+
setActiveDotsState({
|
|
227
|
+
prev: activeTooltipIndex,
|
|
228
|
+
active: activeTooltipIndex,
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
if (typeof activeTooltipIndex === 'number' && typeof activeDotsState.prev === 'number') {
|
|
232
|
+
setActiveDotsState(function (prev) {
|
|
233
|
+
return {
|
|
234
|
+
prev: prev.active,
|
|
235
|
+
active: activeTooltipIndex,
|
|
236
|
+
};
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
var mouseMove = function (e) {
|
|
241
|
+
arrowTooltipEvent(e.activeCoordinate);
|
|
242
|
+
hoverEvent(e.isTooltipActive, e.activeTooltipIndex);
|
|
243
|
+
leaveEvent(e.isTooltipActive);
|
|
244
|
+
};
|
|
245
|
+
var mouseLeave = function (e) {
|
|
246
|
+
leaveEvent(e.isTooltipActive);
|
|
247
|
+
};
|
|
248
|
+
if (!data || !charts || !state)
|
|
249
|
+
return null;
|
|
250
|
+
return (React.createElement("div", { className: styles.coreChart, ref: svgRef, id: (state === null || state === void 0 ? void 0 : state.id) || '', style: { width: '100%', height: '100%' } },
|
|
251
|
+
React.createElement(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%' },
|
|
252
|
+
React.createElement(ComposedChart, __assign({}, state === null || state === void 0 ? void 0 : state.composeChart, { onMouseMove: mouseMove, onMouseLeave: mouseLeave, data: data }),
|
|
253
|
+
React.createElement("defs", null, renderGradient),
|
|
254
|
+
state.cartesianGrid && renderCartesianGrid,
|
|
255
|
+
state.xAxis && renderXAxis,
|
|
256
|
+
state.yAxis && renderYAxis,
|
|
257
|
+
renderChartsItems,
|
|
258
|
+
state.tooltip && renderTooltip,
|
|
259
|
+
state.brush && renderBrush,
|
|
260
|
+
state.legend && renderLegend))));
|
|
261
|
+
};
|
|
262
|
+
var Component = React.memo(Chart);
|
|
263
|
+
|
|
264
|
+
export default 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,46 @@
|
|
|
1
|
+
import React, { useState, useEffect } from 'react';
|
|
2
|
+
import cn from 'classnames';
|
|
3
|
+
import { PointIcon } from '../../icons/Point.js';
|
|
4
|
+
|
|
5
|
+
var styles = {"dotUnfocused":"chart__dotUnfocused_1pu5t","dot":"chart__dot_1pu5t","dotItem":"chart__dotItem_1pu5t","dotWrap":"chart__dotWrap_1pu5t","showDot":"chart__showDot_1pu5t"};
|
|
6
|
+
require('./index.css');
|
|
7
|
+
|
|
8
|
+
var Dot = React.forwardRef(function (_a, ref) {
|
|
9
|
+
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;
|
|
10
|
+
var _b = useState(0), windowWidth = _b[0], setWindowWidth = _b[1];
|
|
11
|
+
var _c = useState(0), height = _c[0], setHeight = _c[1];
|
|
12
|
+
var _d = useState(0), width = _d[0], setWidth = _d[1];
|
|
13
|
+
var _e = useState(null), option = _e[0], setOption = _e[1];
|
|
14
|
+
useEffect(function () {
|
|
15
|
+
var dotSetting = Array.isArray(dotSettings) && dotSettings.length > 0
|
|
16
|
+
? dotSettings.find(function (item) { return item.media && windowWidth < item.media; })
|
|
17
|
+
: dotSettings;
|
|
18
|
+
if (Array.isArray(dotSettings) && dotSettings.length > 0 && !dotSetting) {
|
|
19
|
+
dotSetting = dotSettings[dotSettings.length - 1];
|
|
20
|
+
}
|
|
21
|
+
setWindowWidth(window.innerWidth);
|
|
22
|
+
setOption(dotSetting);
|
|
23
|
+
}, [dotSettings, windowWidth]);
|
|
24
|
+
useEffect(function () {
|
|
25
|
+
if (!option)
|
|
26
|
+
return;
|
|
27
|
+
if (typeof activeDot === 'number' && activeDot === index) {
|
|
28
|
+
setHeight(option.height * option.scale);
|
|
29
|
+
setWidth(option.width * option.scale);
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
setHeight(option.height * option.initScale);
|
|
33
|
+
setWidth(option.width * option.initScale);
|
|
34
|
+
}
|
|
35
|
+
}, [activeDot, index, option]);
|
|
36
|
+
if (!value)
|
|
37
|
+
return null;
|
|
38
|
+
return (React.createElement("g", { ref: ref, className: cn(styles.dot), transform: "translate(" + (cx - width / 2) + ", " + (cy - height / 2) + ")" },
|
|
39
|
+
React.createElement("g", { className: cn(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) + ")" },
|
|
40
|
+
React.createElement("svg", { className: cn(styles.dotItem, activeDot === index ? styles.dotActive : '', typeof activeDot === 'number' && activeDot !== index
|
|
41
|
+
? styles.dotUnfocused
|
|
42
|
+
: ''), "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 },
|
|
43
|
+
React.createElement(PointIcon, { fill: stroke })))));
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
export { 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 };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import cn from 'classnames';
|
|
3
|
+
import { Typography } from '../../../../typography/esm';
|
|
4
|
+
import { CircleIcon } from '../../icons/Circle.js';
|
|
5
|
+
import { CircleLineIcon } from '../../icons/CircleLine.js';
|
|
6
|
+
import { FilledCircleIcon } from '../../icons/FilledCircle.js';
|
|
7
|
+
import { StrokeCircleIcon } from '../../icons/StrokeCircle.js';
|
|
8
|
+
|
|
9
|
+
var styles = {"legendContent":"chart__legendContent_hkiwp","legendWrap":"chart__legendWrap_hkiwp","legendItem":"chart__legendItem_hkiwp","legendUnactive":"chart__legendUnactive_hkiwp","legendIcon":"chart__legendIcon_hkiwp","legendValue":"chart__legendValue_hkiwp"};
|
|
10
|
+
require('./index.css');
|
|
11
|
+
|
|
12
|
+
var icons = {
|
|
13
|
+
circleLine: CircleLineIcon,
|
|
14
|
+
filledCircle: FilledCircleIcon,
|
|
15
|
+
strokeCircle: StrokeCircleIcon,
|
|
16
|
+
circle: CircleIcon,
|
|
17
|
+
};
|
|
18
|
+
var Legends = React.forwardRef(function (_a, ref) {
|
|
19
|
+
var legend = _a.legend, series = _a.series, id = _a.id, charts = _a.charts, toggleChart = _a.toggleChart;
|
|
20
|
+
var style = {
|
|
21
|
+
textAlign: legend.align || 'center',
|
|
22
|
+
transform: "translateY(" + ((legend === null || legend === void 0 ? void 0 : legend.marginTop) ? legend.marginTop : 0) *
|
|
23
|
+
(legend.verticalAlign === 'top' ? -1 : 1) + "px)",
|
|
24
|
+
};
|
|
25
|
+
return (React.createElement("ul", { ref: ref, className: cn(styles.legendWrap), style: style }, series.map(function (item) {
|
|
26
|
+
var _a, _b;
|
|
27
|
+
if (item.hideLegend || item.hide)
|
|
28
|
+
return null;
|
|
29
|
+
var Icon = icons[item.icon] || CircleIcon;
|
|
30
|
+
return (React.createElement("li", { role: 'presentation', key: id + "-" + item.properties.dataKey, className: cn(styles.legendItem, charts["" + item.properties.dataKey] ? '' : styles.legendUnactive), onClick: function () { return toggleChart(item); } },
|
|
31
|
+
React.createElement("div", { className: cn(styles.legendContent) },
|
|
32
|
+
Icon ? (React.createElement("i", { className: cn(styles.legendIcon) },
|
|
33
|
+
React.createElement(Icon, { fill: ((_a = item.properties) === null || _a === void 0 ? void 0 : _a.fill) || ((_b = item.properties) === null || _b === void 0 ? void 0 : _b.stroke) ||
|
|
34
|
+
'', height: legend.iconHeight || 16 }))) : null,
|
|
35
|
+
React.createElement(Typography.Text, { view: 'primary-medium', tag: 'span', className: cn(styles.legendValue) }, item.properties.name))));
|
|
36
|
+
})));
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export { Legends };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { LinearGradientProps } from "../types/utils/gradient.types";
|
|
4
|
+
declare const LinearGradient: ({ id, gid, points }: LinearGradientProps) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
|
|
5
|
+
export { LinearGradient };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
var LinearGradient = function (_a) {
|
|
4
|
+
var id = _a.id, gid = _a.gid, points = _a.points;
|
|
5
|
+
return (React.createElement("linearGradient", { key: id + "-" + gid, id: id + "-" + gid, x1: '0', y1: '0', x2: '0', y2: '1' }, points.map(function (point, index) { return (React.createElement("stop", { key: "" + id + gid + "-" + index.toString(), offset: point.offset + "%", stopColor: point.stopColor, stopOpacity: point.stopOpacity })); })));
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export { LinearGradient };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/* hash: 11yg1 */
|
|
2
|
+
:root {
|
|
3
|
+
--color-dark-bg-primary: #0b1f35;
|
|
4
|
+
--color-light-text-primary: #0b1f35;
|
|
5
|
+
}
|
|
6
|
+
:root {
|
|
7
|
+
|
|
8
|
+
/* Hard */
|
|
9
|
+
|
|
10
|
+
/* Up */
|
|
11
|
+
|
|
12
|
+
/* Hard up */
|
|
13
|
+
}
|
|
14
|
+
.chart__tickText_11yg1 {
|
|
15
|
+
fill: var(--color-light-text-primary);
|
|
16
|
+
font-size: 16px;
|
|
17
|
+
line-height: 24px;
|
|
18
|
+
font-weight: 400;
|
|
19
|
+
}
|
|
20
|
+
.chart__circle_11yg1 {
|
|
21
|
+
opacity: 0.3;
|
|
22
|
+
fill: var(--color-dark-bg-primary);
|
|
23
|
+
}
|
|
24
|
+
.chart__circle_11yg1 {
|
|
25
|
+
opacity: 0.3;
|
|
26
|
+
fill: var(--color-dark-bg-primary);
|
|
27
|
+
}
|