@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,61 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { RectangleProps } from 'recharts';
|
|
3
|
+
import { DataKey } from 'recharts/types/util/types';
|
|
4
|
+
import { DotSettingProps } from "./utils/dot.types";
|
|
5
|
+
import { DataProps } from "./utils/data.types";
|
|
6
|
+
type CurveType = 'linear' | 'monotone' | 'step';
|
|
7
|
+
type RectangleShapeType = ReactElement<SVGElement> | ((props: any) => ReactElement<SVGElement>) | RectangleProps | boolean;
|
|
8
|
+
interface ChartProps {
|
|
9
|
+
/**
|
|
10
|
+
* Название графика (отображается в легендах и тултипе)
|
|
11
|
+
*/
|
|
12
|
+
name?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Ключ данных
|
|
15
|
+
*/
|
|
16
|
+
dataKey: DataKey<number | string>;
|
|
17
|
+
/**
|
|
18
|
+
* Цвет заливки графика
|
|
19
|
+
*/
|
|
20
|
+
fill?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Цвет линии графика
|
|
23
|
+
*/
|
|
24
|
+
stroke?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Отображение точек на графике
|
|
27
|
+
*/
|
|
28
|
+
dot?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Параметры для точек грфика (если dot: true)
|
|
31
|
+
*/
|
|
32
|
+
dotSettings?: DotSettingProps[] | DotSettingProps;
|
|
33
|
+
/**
|
|
34
|
+
* Наследование цвета
|
|
35
|
+
*/
|
|
36
|
+
inheritStroke?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Форматирование значения графика для тултипа
|
|
39
|
+
*/
|
|
40
|
+
formatter?: Function;
|
|
41
|
+
/**
|
|
42
|
+
* Тип линии
|
|
43
|
+
*/
|
|
44
|
+
type?: CurveType;
|
|
45
|
+
/**
|
|
46
|
+
* Толщина линии
|
|
47
|
+
*/
|
|
48
|
+
strokeWidth?: number;
|
|
49
|
+
/**
|
|
50
|
+
* Прерывистость линии
|
|
51
|
+
*/
|
|
52
|
+
strokeDasharray?: string | number;
|
|
53
|
+
}
|
|
54
|
+
interface ToggleChartProps {
|
|
55
|
+
chart?: 'line' | 'area' | 'bar' | 'gradient';
|
|
56
|
+
data?: DataProps[];
|
|
57
|
+
icon?: 'circleLine' | 'filledCircle' | 'strokeCircle' | 'circle';
|
|
58
|
+
order?: number;
|
|
59
|
+
properties: ChartProps;
|
|
60
|
+
}
|
|
61
|
+
export { RectangleShapeType, ChartProps, ToggleChartProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
interface ComposedChartProps {
|
|
2
|
+
/**
|
|
3
|
+
* Отступы графика на момент инициализации компонента
|
|
4
|
+
*/
|
|
5
|
+
initMargin?: {
|
|
6
|
+
top?: number;
|
|
7
|
+
bottom?: number;
|
|
8
|
+
left?: number;
|
|
9
|
+
right?: number;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Отступы которые высчитываются автоматически, основаны на initMargin и отступах разных елементов
|
|
13
|
+
*/
|
|
14
|
+
margin?: {
|
|
15
|
+
top?: number;
|
|
16
|
+
right?: number;
|
|
17
|
+
left?: number;
|
|
18
|
+
bottom?: number;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Максимальная ширина графиков типа bar
|
|
22
|
+
*/
|
|
23
|
+
maxBarSize?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Разрыв между двумя категориями столбцов, который может быть процентным или фиксированным значением
|
|
26
|
+
*/
|
|
27
|
+
barCategoryGap?: string | number;
|
|
28
|
+
/**
|
|
29
|
+
* Разрыв между двумя столбцами одной категории
|
|
30
|
+
*/
|
|
31
|
+
barGap?: number;
|
|
32
|
+
}
|
|
33
|
+
export { ComposedChartProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Formatter } from 'recharts/types/component/DefaultLegendContent';
|
|
2
|
+
interface LegendProps {
|
|
3
|
+
/**
|
|
4
|
+
* Выравнивание элементов легенды в вертикальном направлении.
|
|
5
|
+
*/
|
|
6
|
+
verticalAlign?: 'top' | 'middle' | 'bottom';
|
|
7
|
+
/**
|
|
8
|
+
* Функция форматирования каждого текста в легенде.
|
|
9
|
+
*/
|
|
10
|
+
formatter?: Formatter;
|
|
11
|
+
/**
|
|
12
|
+
* Выравнивание элементов легенды в горизонтальном направлении.
|
|
13
|
+
*/
|
|
14
|
+
align?: 'left' | 'center' | 'right';
|
|
15
|
+
/**
|
|
16
|
+
* Вертикальный отступ
|
|
17
|
+
*/
|
|
18
|
+
marginTop?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Выщитывается автоматически
|
|
21
|
+
*/
|
|
22
|
+
margin?: {
|
|
23
|
+
top?: number;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Высота иконок
|
|
27
|
+
*/
|
|
28
|
+
iconHeight?: number;
|
|
29
|
+
}
|
|
30
|
+
export { LegendProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { BrushProps } from "./brush.types";
|
|
4
|
+
import { CartesianGridProps } from "./cartesianGrid.types";
|
|
5
|
+
import { ComposedChartProps } from "./composedChart.types";
|
|
6
|
+
import { LegendProps } from "./legend.types";
|
|
7
|
+
import { TooltipProps } from "./tooltip.types";
|
|
8
|
+
import { XAxisProps } from "./xAxis.types";
|
|
9
|
+
import { YAxisProps } from "./yAxis.types";
|
|
10
|
+
import { SeriaProps } from "./seria.types";
|
|
11
|
+
import { ResponsiveContainerProps } from "./responsiveContainer.types";
|
|
12
|
+
interface OptionsProps {
|
|
13
|
+
/**
|
|
14
|
+
* Индефикатор графика
|
|
15
|
+
*/
|
|
16
|
+
id: string;
|
|
17
|
+
/**
|
|
18
|
+
* Компонент контейнера, позволяющий адаптировать диаграммы к размеру родительского контейнера
|
|
19
|
+
*/
|
|
20
|
+
responsiveContainer?: ResponsiveContainerProps;
|
|
21
|
+
/**
|
|
22
|
+
* Диаграмма, состоящая из bar, linear и area диаграмм
|
|
23
|
+
*/
|
|
24
|
+
composeChart: ComposedChartProps;
|
|
25
|
+
/**
|
|
26
|
+
* Отображение линий осей графика
|
|
27
|
+
*/
|
|
28
|
+
cartesianGrid?: CartesianGridProps;
|
|
29
|
+
/**
|
|
30
|
+
* Настройки оси Х
|
|
31
|
+
*/
|
|
32
|
+
xAxis: XAxisProps;
|
|
33
|
+
/**
|
|
34
|
+
* Настройки оси У
|
|
35
|
+
*/
|
|
36
|
+
yAxis: YAxisProps;
|
|
37
|
+
/**
|
|
38
|
+
* Всплывающаяся подсказка
|
|
39
|
+
*/
|
|
40
|
+
tooltip?: TooltipProps;
|
|
41
|
+
/**
|
|
42
|
+
* Компонент маштабирования графика
|
|
43
|
+
*/
|
|
44
|
+
brush?: BrushProps;
|
|
45
|
+
/**
|
|
46
|
+
* Компонент подписи графиков
|
|
47
|
+
*/
|
|
48
|
+
legend?: LegendProps;
|
|
49
|
+
/**
|
|
50
|
+
* Mассив объектов с параметрами грaфиков с обязательным полем
|
|
51
|
+
*/
|
|
52
|
+
series: SeriaProps[];
|
|
53
|
+
/**
|
|
54
|
+
* Mассив меток
|
|
55
|
+
*/
|
|
56
|
+
labels: Array<string | number>;
|
|
57
|
+
children?: React.ReactNode;
|
|
58
|
+
}
|
|
59
|
+
export { OptionsProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DataDynamicBooleanProps } from "./utils/data.types";
|
|
3
|
+
interface PayloadProps {
|
|
4
|
+
/**
|
|
5
|
+
* Цвет графика
|
|
6
|
+
*/
|
|
7
|
+
color: string;
|
|
8
|
+
/**
|
|
9
|
+
* Ключ графика
|
|
10
|
+
*/
|
|
11
|
+
dataKey: string;
|
|
12
|
+
/**
|
|
13
|
+
* Форматирование значения графика
|
|
14
|
+
*/
|
|
15
|
+
formatter: (value: number | string) => React.ReactText;
|
|
16
|
+
/**
|
|
17
|
+
* Имя графика
|
|
18
|
+
*/
|
|
19
|
+
name: string;
|
|
20
|
+
/**
|
|
21
|
+
* Полезная нагрузка
|
|
22
|
+
*/
|
|
23
|
+
payload: DataDynamicBooleanProps;
|
|
24
|
+
/**
|
|
25
|
+
* Значение графика
|
|
26
|
+
*/
|
|
27
|
+
value: number;
|
|
28
|
+
}
|
|
29
|
+
export { PayloadProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { ChartProps } from "./chart.types";
|
|
2
|
+
import { DataProps } from "./utils/data.types";
|
|
3
|
+
import { GradientProps } from "./utils/gradient.types";
|
|
4
|
+
interface SeriaProps {
|
|
5
|
+
/**
|
|
6
|
+
* Скрыть график
|
|
7
|
+
*/
|
|
8
|
+
hide?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Скрыть график в легенде
|
|
11
|
+
*/
|
|
12
|
+
hideLegend?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Скрыть график в тултипe
|
|
15
|
+
*/
|
|
16
|
+
hideTooltip?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Z-index графика
|
|
19
|
+
*/
|
|
20
|
+
zIndex?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Тип графика
|
|
23
|
+
*/
|
|
24
|
+
chart: 'line' | 'area' | 'bar' | 'gradient';
|
|
25
|
+
/**
|
|
26
|
+
* Тип иконки для графика
|
|
27
|
+
*/
|
|
28
|
+
icon: 'circleLine' | 'filledCircle' | 'strokeCircle' | 'circle';
|
|
29
|
+
/**
|
|
30
|
+
* Оффсет для градиента (только для типа area)
|
|
31
|
+
*/
|
|
32
|
+
offset: number;
|
|
33
|
+
/**
|
|
34
|
+
* Заливка графика
|
|
35
|
+
*/
|
|
36
|
+
fill?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Прозрачность
|
|
39
|
+
*/
|
|
40
|
+
gradient: {
|
|
41
|
+
/**
|
|
42
|
+
* Индефикатор градиента
|
|
43
|
+
*/
|
|
44
|
+
gid: string;
|
|
45
|
+
/**
|
|
46
|
+
* Параметра точек для градиента
|
|
47
|
+
*/
|
|
48
|
+
points: GradientProps[];
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Параметры графика
|
|
52
|
+
*/
|
|
53
|
+
properties: ChartProps;
|
|
54
|
+
/**
|
|
55
|
+
* Данные для построения графика
|
|
56
|
+
*/
|
|
57
|
+
data: DataProps[];
|
|
58
|
+
}
|
|
59
|
+
export { SeriaProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { ReactElement, ReactText, SVGProps } from 'react';
|
|
2
|
+
import { AnimationTiming } from 'recharts/types/util/types';
|
|
3
|
+
interface TooltipProps {
|
|
4
|
+
/**
|
|
5
|
+
* Разделитель между именем и значением.
|
|
6
|
+
*/
|
|
7
|
+
separator?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Размер смещения между положением всплывающей подсказки и активной позицией.
|
|
10
|
+
*/
|
|
11
|
+
offset?: number;
|
|
12
|
+
/**
|
|
13
|
+
* Когда элемент полезной нагрузки имеет значение null или undefined, этот элемент не отображается.
|
|
14
|
+
*/
|
|
15
|
+
filterNull?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Если установлено false, курсор не будет отображаться, когда всплывающая подсказка активна.
|
|
18
|
+
* Если установлен объект, опция - это конфигурация курсора.
|
|
19
|
+
* Если установлен элемент React, опция является настраиваемым элементом реакции курсора рисования.
|
|
20
|
+
*/
|
|
21
|
+
cursor?: boolean | ReactElement | SVGProps<SVGElement>;
|
|
22
|
+
/**
|
|
23
|
+
* Если это поле установлено, положение всплывающей подсказки будет фиксированным и больше не будет перемещаться.
|
|
24
|
+
*/
|
|
25
|
+
position?: {
|
|
26
|
+
x: number;
|
|
27
|
+
y: number;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Если установлено false, анимация всплывающей подсказки будет отключена.
|
|
31
|
+
*/
|
|
32
|
+
isAnimationActive?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Указывает, когда должна начинаться анимация, единица измерения этого параметра - мс.
|
|
35
|
+
*/
|
|
36
|
+
animationBegin?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Определяет продолжительность анимации, единица измерения этого параметра - мс.
|
|
39
|
+
*/
|
|
40
|
+
animationDuration?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Тип функции плавности.
|
|
43
|
+
*/
|
|
44
|
+
animationEasing?: AnimationTiming;
|
|
45
|
+
/**
|
|
46
|
+
* Отображение стрелки тултипа
|
|
47
|
+
*/
|
|
48
|
+
arrow: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Высчитывается автоматичекси, направление стрелки
|
|
51
|
+
*/
|
|
52
|
+
tooltipArrowSide?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Функция форматирования метки во всплывающей подсказке.
|
|
55
|
+
*/
|
|
56
|
+
labelFormatter?: (value: any) => ReactText;
|
|
57
|
+
/**
|
|
58
|
+
* Стиль метки всплывающей подсказки по умолчанию, которая является элементом p.
|
|
59
|
+
*/
|
|
60
|
+
labelStyle?: {};
|
|
61
|
+
/**
|
|
62
|
+
* Значение метки, которое сейчас активно, обычно рассчитывается внутри компании.
|
|
63
|
+
*/
|
|
64
|
+
label?: string | number;
|
|
65
|
+
/**
|
|
66
|
+
* Контент для тултипа
|
|
67
|
+
*/
|
|
68
|
+
content?: any;
|
|
69
|
+
}
|
|
70
|
+
export { TooltipProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { ReactElement, SVGProps } from 'react';
|
|
2
|
+
interface AxisProps {
|
|
3
|
+
/**
|
|
4
|
+
* Скрыть ось
|
|
5
|
+
*/
|
|
6
|
+
hide?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Отображение линии оси.
|
|
9
|
+
*/
|
|
10
|
+
axisLine: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Тип оси.
|
|
13
|
+
*/
|
|
14
|
+
type: 'number' | 'category';
|
|
15
|
+
/**
|
|
16
|
+
* Разрешить значениям оси быть десятичными или нет.
|
|
17
|
+
*/
|
|
18
|
+
allowDecimals?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Разрешить или нет на оси дублировать категории, если "type" оси - "category".
|
|
21
|
+
*/
|
|
22
|
+
allowDuplicatedCategory?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Угол наклона значений оси.
|
|
25
|
+
*/
|
|
26
|
+
angle?: number;
|
|
27
|
+
/**
|
|
28
|
+
* Количество делений оси. Не используется, если "тип" - "категория".
|
|
29
|
+
*/
|
|
30
|
+
tickCount?: number;
|
|
31
|
+
/**
|
|
32
|
+
* Интревал линий деления оси
|
|
33
|
+
*/
|
|
34
|
+
interval?: 'preserveStart' | 'preserveEnd' | 'preserveStartEnd' | number;
|
|
35
|
+
/**
|
|
36
|
+
* Минимальный зазор между двумя соседними делениями оси.
|
|
37
|
+
*/
|
|
38
|
+
minTickGap?: number;
|
|
39
|
+
/**
|
|
40
|
+
* Отображение линий деления оси
|
|
41
|
+
*/
|
|
42
|
+
tickLine?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Размер линий деления оси
|
|
45
|
+
*/
|
|
46
|
+
tickSize?: number;
|
|
47
|
+
/**
|
|
48
|
+
* Если установлено значение true, галочки переворачиваются вокруг оси, отображая метки внутри диаграммы, а не снаружи.
|
|
49
|
+
*/
|
|
50
|
+
mirror?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Отображение горизонтальной сетки
|
|
53
|
+
*/
|
|
54
|
+
reversed?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Реверсировать ось или нет
|
|
57
|
+
*/
|
|
58
|
+
tickMargin?: number;
|
|
59
|
+
/**
|
|
60
|
+
* Функция форматирования значения деления оси.
|
|
61
|
+
*/
|
|
62
|
+
tickFormatter?: (value: any, index: number) => string;
|
|
63
|
+
/**
|
|
64
|
+
* Присваивается автоматически в зависимости от переданных данных
|
|
65
|
+
*/
|
|
66
|
+
tick?: SVGProps<SVGTextElement> | ReactElement<SVGElement> | ((props: any) => ReactElement<SVGElement>) | boolean;
|
|
67
|
+
}
|
|
68
|
+
export { AxisProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
interface DataProps {
|
|
2
|
+
/**
|
|
3
|
+
* Метка
|
|
4
|
+
*/
|
|
5
|
+
label: string | number;
|
|
6
|
+
/**
|
|
7
|
+
* Значение
|
|
8
|
+
*/
|
|
9
|
+
value: number;
|
|
10
|
+
}
|
|
11
|
+
interface DataDynamicProps {
|
|
12
|
+
[key: string]: number | string;
|
|
13
|
+
}
|
|
14
|
+
interface DataDynamicBooleanProps {
|
|
15
|
+
[key: string]: boolean;
|
|
16
|
+
}
|
|
17
|
+
export { DataProps, DataDynamicProps, DataDynamicBooleanProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -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,16 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { OptionsProps } from "../../types/options.types";
|
|
3
|
+
import { DataDynamicBooleanProps, DataDynamicProps } from "../../types/utils/data.types";
|
|
4
|
+
type Settings = [{
|
|
5
|
+
state: OptionsProps | null;
|
|
6
|
+
data: DataDynamicProps[];
|
|
7
|
+
charts: DataDynamicBooleanProps;
|
|
8
|
+
filterCount: number;
|
|
9
|
+
}, {
|
|
10
|
+
setState: Dispatch<SetStateAction<OptionsProps | null>>;
|
|
11
|
+
setData: Dispatch<SetStateAction<DataDynamicProps[]>>;
|
|
12
|
+
setCharts: Dispatch<SetStateAction<DataDynamicBooleanProps>>;
|
|
13
|
+
setFilterCount: Dispatch<SetStateAction<number>>;
|
|
14
|
+
}];
|
|
15
|
+
declare const useSettings: (options: OptionsProps) => Settings;
|
|
16
|
+
export { useSettings };
|