@plenustech/design-system 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/actions/ButtonTile/ButtonTile.cjs +2 -0
- package/dist/components/actions/ButtonTile/ButtonTile.cjs.map +1 -0
- package/dist/components/actions/ButtonTile/ButtonTile.js +23 -0
- package/dist/components/actions/ButtonTile/ButtonTile.js.map +1 -0
- package/dist/components/actions/ButtonTile/ButtonTile.module.css.cjs +2 -0
- package/dist/components/actions/ButtonTile/ButtonTile.module.css.cjs.map +1 -0
- package/dist/components/actions/ButtonTile/ButtonTile.module.css.js +16 -0
- package/dist/components/actions/ButtonTile/ButtonTile.module.css.js.map +1 -0
- package/dist/components/actions/Toolbar/Toolbar.cjs +2 -0
- package/dist/components/actions/Toolbar/Toolbar.cjs.map +1 -0
- package/dist/components/actions/Toolbar/Toolbar.js +118 -0
- package/dist/components/actions/Toolbar/Toolbar.js.map +1 -0
- package/dist/components/actions/Toolbar/Toolbar.module.css.cjs +2 -0
- package/dist/components/actions/Toolbar/Toolbar.module.css.cjs.map +1 -0
- package/dist/components/actions/Toolbar/Toolbar.module.css.js +20 -0
- package/dist/components/actions/Toolbar/Toolbar.module.css.js.map +1 -0
- package/dist/components/charts/ChartArea/ChartArea.cjs +1 -1
- package/dist/components/charts/ChartArea/ChartArea.cjs.map +1 -1
- package/dist/components/charts/ChartArea/ChartArea.js +196 -148
- package/dist/components/charts/ChartArea/ChartArea.js.map +1 -1
- package/dist/components/charts/ChartArea/ChartArea.module.css.cjs +1 -1
- package/dist/components/charts/ChartArea/ChartArea.module.css.js +12 -10
- package/dist/components/charts/ChartArea/ChartArea.module.css.js.map +1 -1
- package/dist/components/charts/ChartBar/ChartBar.cjs +1 -1
- package/dist/components/charts/ChartBar/ChartBar.cjs.map +1 -1
- package/dist/components/charts/ChartBar/ChartBar.js +168 -145
- package/dist/components/charts/ChartBar/ChartBar.js.map +1 -1
- package/dist/components/charts/ChartBar/ChartBar.module.css.cjs +1 -1
- package/dist/components/charts/ChartBar/ChartBar.module.css.js +12 -10
- package/dist/components/charts/ChartBar/ChartBar.module.css.js.map +1 -1
- package/dist/components/charts/ChartCombo/ChartCombo.cjs +1 -1
- package/dist/components/charts/ChartCombo/ChartCombo.cjs.map +1 -1
- package/dist/components/charts/ChartCombo/ChartCombo.js +179 -154
- package/dist/components/charts/ChartCombo/ChartCombo.js.map +1 -1
- package/dist/components/charts/ChartCombo/ChartCombo.module.css.cjs +1 -1
- package/dist/components/charts/ChartCombo/ChartCombo.module.css.js +16 -14
- package/dist/components/charts/ChartCombo/ChartCombo.module.css.js.map +1 -1
- package/dist/components/charts/ChartDonut/ChartDonut.cjs +1 -1
- package/dist/components/charts/ChartDonut/ChartDonut.cjs.map +1 -1
- package/dist/components/charts/ChartDonut/ChartDonut.js +72 -61
- package/dist/components/charts/ChartDonut/ChartDonut.js.map +1 -1
- package/dist/components/charts/ChartGauge/ChartGauge.cjs +2 -0
- package/dist/components/charts/ChartGauge/ChartGauge.cjs.map +1 -0
- package/dist/components/charts/ChartGauge/ChartGauge.js +307 -0
- package/dist/components/charts/ChartGauge/ChartGauge.js.map +1 -0
- package/dist/components/charts/ChartGauge/ChartGauge.module.css.cjs +2 -0
- package/dist/components/charts/ChartGauge/ChartGauge.module.css.cjs.map +1 -0
- package/dist/components/charts/ChartGauge/ChartGauge.module.css.js +76 -0
- package/dist/components/charts/ChartGauge/ChartGauge.module.css.js.map +1 -0
- package/dist/components/charts/ChartGauge/gaugeLayout.cjs +2 -0
- package/dist/components/charts/ChartGauge/gaugeLayout.cjs.map +1 -0
- package/dist/components/charts/ChartGauge/gaugeLayout.js +107 -0
- package/dist/components/charts/ChartGauge/gaugeLayout.js.map +1 -0
- package/dist/components/charts/ChartGauge/gaugeReading.cjs +2 -0
- package/dist/components/charts/ChartGauge/gaugeReading.cjs.map +1 -0
- package/dist/components/charts/ChartGauge/gaugeReading.js +112 -0
- package/dist/components/charts/ChartGauge/gaugeReading.js.map +1 -0
- package/dist/components/charts/ChartGauge/gaugeScale.cjs +2 -0
- package/dist/components/charts/ChartGauge/gaugeScale.cjs.map +1 -0
- package/dist/components/charts/ChartGauge/gaugeScale.js +57 -0
- package/dist/components/charts/ChartGauge/gaugeScale.js.map +1 -0
- package/dist/components/charts/ChartLine/ChartLine.cjs +1 -1
- package/dist/components/charts/ChartLine/ChartLine.cjs.map +1 -1
- package/dist/components/charts/ChartLine/ChartLine.js +196 -143
- package/dist/components/charts/ChartLine/ChartLine.js.map +1 -1
- package/dist/components/charts/ChartLine/ChartLine.module.css.cjs +1 -1
- package/dist/components/charts/ChartLine/ChartLine.module.css.js +16 -14
- package/dist/components/charts/ChartLine/ChartLine.module.css.js.map +1 -1
- package/dist/components/charts/ChartMap/ChartMap.cjs +2 -0
- package/dist/components/charts/ChartMap/ChartMap.cjs.map +1 -0
- package/dist/components/charts/ChartMap/ChartMap.js +523 -0
- package/dist/components/charts/ChartMap/ChartMap.js.map +1 -0
- package/dist/components/charts/ChartMap/ChartMap.module.css.cjs +2 -0
- package/dist/components/charts/ChartMap/ChartMap.module.css.cjs.map +1 -0
- package/dist/components/charts/ChartMap/ChartMap.module.css.js +124 -0
- package/dist/components/charts/ChartMap/ChartMap.module.css.js.map +1 -0
- package/dist/components/charts/ChartMap/ChartMapLegend.cjs +2 -0
- package/dist/components/charts/ChartMap/ChartMapLegend.cjs.map +1 -0
- package/dist/components/charts/ChartMap/ChartMapLegend.js +102 -0
- package/dist/components/charts/ChartMap/ChartMapLegend.js.map +1 -0
- package/dist/components/charts/ChartMap/ChartMapTable.cjs +2 -0
- package/dist/components/charts/ChartMap/ChartMapTable.cjs.map +1 -0
- package/dist/components/charts/ChartMap/ChartMapTable.js +118 -0
- package/dist/components/charts/ChartMap/ChartMapTable.js.map +1 -0
- package/dist/components/charts/ChartMap/mapGeometry.cjs +2 -0
- package/dist/components/charts/ChartMap/mapGeometry.cjs.map +1 -0
- package/dist/components/charts/ChartMap/mapGeometry.js +113 -0
- package/dist/components/charts/ChartMap/mapGeometry.js.map +1 -0
- package/dist/components/charts/ChartMap/mapLabels.cjs +2 -0
- package/dist/components/charts/ChartMap/mapLabels.cjs.map +1 -0
- package/dist/components/charts/ChartMap/mapLabels.js +80 -0
- package/dist/components/charts/ChartMap/mapLabels.js.map +1 -0
- package/dist/components/charts/ChartMap/mapScales.cjs +2 -0
- package/dist/components/charts/ChartMap/mapScales.cjs.map +1 -0
- package/dist/components/charts/ChartMap/mapScales.js +131 -0
- package/dist/components/charts/ChartMap/mapScales.js.map +1 -0
- package/dist/components/charts/ChartMap/polylabel.cjs +2 -0
- package/dist/components/charts/ChartMap/polylabel.cjs.map +1 -0
- package/dist/components/charts/ChartMap/polylabel.js +50 -0
- package/dist/components/charts/ChartMap/polylabel.js.map +1 -0
- package/dist/components/charts/ChartPie/ChartPie.cjs +1 -1
- package/dist/components/charts/ChartPie/ChartPie.cjs.map +1 -1
- package/dist/components/charts/ChartPie/ChartPie.js +71 -60
- package/dist/components/charts/ChartPie/ChartPie.js.map +1 -1
- package/dist/components/charts/ChartRadial/ChartRadial.cjs +1 -1
- package/dist/components/charts/ChartRadial/ChartRadial.cjs.map +1 -1
- package/dist/components/charts/ChartRadial/ChartRadial.js +101 -84
- package/dist/components/charts/ChartRadial/ChartRadial.js.map +1 -1
- package/dist/components/charts/ChartSankey/ChartSankey.cjs +1 -1
- package/dist/components/charts/ChartSankey/ChartSankey.cjs.map +1 -1
- package/dist/components/charts/ChartSankey/ChartSankey.js +148 -125
- package/dist/components/charts/ChartSankey/ChartSankey.js.map +1 -1
- package/dist/components/charts/ChartScatter/ChartScatter.cjs +1 -1
- package/dist/components/charts/ChartScatter/ChartScatter.cjs.map +1 -1
- package/dist/components/charts/ChartScatter/ChartScatter.js +138 -106
- package/dist/components/charts/ChartScatter/ChartScatter.js.map +1 -1
- package/dist/components/charts/ChartScatter/ChartScatter.module.css.cjs +1 -1
- package/dist/components/charts/ChartScatter/ChartScatter.module.css.js +3 -3
- package/dist/components/charts/ChartSunburst/ChartSunburst.cjs +1 -1
- package/dist/components/charts/ChartSunburst/ChartSunburst.cjs.map +1 -1
- package/dist/components/charts/ChartSunburst/ChartSunburst.js +115 -100
- package/dist/components/charts/ChartSunburst/ChartSunburst.js.map +1 -1
- package/dist/components/charts/ChartTimeline/ChartTimeline.cjs +2 -0
- package/dist/components/charts/ChartTimeline/ChartTimeline.cjs.map +1 -0
- package/dist/components/charts/ChartTimeline/ChartTimeline.js +703 -0
- package/dist/components/charts/ChartTimeline/ChartTimeline.js.map +1 -0
- package/dist/components/charts/ChartTimeline/ChartTimeline.module.css.cjs +2 -0
- package/dist/components/charts/ChartTimeline/ChartTimeline.module.css.cjs.map +1 -0
- package/dist/components/charts/ChartTimeline/ChartTimeline.module.css.js +124 -0
- package/dist/components/charts/ChartTimeline/ChartTimeline.module.css.js.map +1 -0
- package/dist/components/charts/ChartTimeline/ChartTimelineTable.cjs +2 -0
- package/dist/components/charts/ChartTimeline/ChartTimelineTable.cjs.map +1 -0
- package/dist/components/charts/ChartTimeline/ChartTimelineTable.js +42 -0
- package/dist/components/charts/ChartTimeline/ChartTimelineTable.js.map +1 -0
- package/dist/components/charts/ChartTimeline/timelineLayout.cjs +2 -0
- package/dist/components/charts/ChartTimeline/timelineLayout.cjs.map +1 -0
- package/dist/components/charts/ChartTimeline/timelineLayout.js +109 -0
- package/dist/components/charts/ChartTimeline/timelineLayout.js.map +1 -0
- package/dist/components/charts/ChartTimeline/timelineTime.cjs +2 -0
- package/dist/components/charts/ChartTimeline/timelineTime.cjs.map +1 -0
- package/dist/components/charts/ChartTimeline/timelineTime.js +91 -0
- package/dist/components/charts/ChartTimeline/timelineTime.js.map +1 -0
- package/dist/components/charts/ChartTimeline/timelineTooltip.cjs +2 -0
- package/dist/components/charts/ChartTimeline/timelineTooltip.cjs.map +1 -0
- package/dist/components/charts/ChartTimeline/timelineTooltip.js +77 -0
- package/dist/components/charts/ChartTimeline/timelineTooltip.js.map +1 -0
- package/dist/components/charts/ChartTooltip/ChartTooltip.cjs +1 -1
- package/dist/components/charts/ChartTooltip/ChartTooltip.cjs.map +1 -1
- package/dist/components/charts/ChartTooltip/ChartTooltip.js +1 -1
- package/dist/components/charts/ChartTooltip/ChartTooltip.js.map +1 -1
- package/dist/components/charts/ChartTreemap/ChartTreemap.cjs +1 -1
- package/dist/components/charts/ChartTreemap/ChartTreemap.cjs.map +1 -1
- package/dist/components/charts/ChartTreemap/ChartTreemap.js +100 -89
- package/dist/components/charts/ChartTreemap/ChartTreemap.js.map +1 -1
- package/dist/components/charts/ChartWaterfall/ChartWaterfall.cjs +1 -1
- package/dist/components/charts/ChartWaterfall/ChartWaterfall.cjs.map +1 -1
- package/dist/components/charts/ChartWaterfall/ChartWaterfall.js +125 -105
- package/dist/components/charts/ChartWaterfall/ChartWaterfall.js.map +1 -1
- package/dist/components/charts/ChartWaterfall/ChartWaterfall.module.css.cjs +1 -1
- package/dist/components/charts/ChartWaterfall/ChartWaterfall.module.css.js +8 -6
- package/dist/components/charts/ChartWaterfall/ChartWaterfall.module.css.js.map +1 -1
- package/dist/components/charts/core/CartesianFrame.cjs +1 -1
- package/dist/components/charts/core/CartesianFrame.cjs.map +1 -1
- package/dist/components/charts/core/CartesianFrame.js +61 -96
- package/dist/components/charts/core/CartesianFrame.js.map +1 -1
- package/dist/components/charts/core/Chart.module.css.cjs +1 -1
- package/dist/components/charts/core/Chart.module.css.js +52 -54
- package/dist/components/charts/core/Chart.module.css.js.map +1 -1
- package/dist/components/charts/core/ChartFrame.cjs +1 -1
- package/dist/components/charts/core/ChartFrame.cjs.map +1 -1
- package/dist/components/charts/core/ChartFrame.js +53 -47
- package/dist/components/charts/core/ChartFrame.js.map +1 -1
- package/dist/components/charts/core/ChartLegend.cjs +1 -1
- package/dist/components/charts/core/ChartLegend.cjs.map +1 -1
- package/dist/components/charts/core/ChartLegend.js +37 -25
- package/dist/components/charts/core/ChartLegend.js.map +1 -1
- package/dist/components/charts/core/PointBands.cjs +2 -0
- package/dist/components/charts/core/PointBands.cjs.map +1 -0
- package/dist/components/charts/core/PointBands.js +41 -0
- package/dist/components/charts/core/PointBands.js.map +1 -0
- package/dist/components/charts/core/cartesianLayout.cjs +1 -1
- package/dist/components/charts/core/cartesianLayout.cjs.map +1 -1
- package/dist/components/charts/core/cartesianLayout.js +49 -41
- package/dist/components/charts/core/cartesianLayout.js.map +1 -1
- package/dist/components/charts/core/hoverPath.cjs +2 -0
- package/dist/components/charts/core/hoverPath.cjs.map +1 -0
- package/dist/components/charts/core/hoverPath.js +7 -0
- package/dist/components/charts/core/hoverPath.js.map +1 -0
- package/dist/components/charts/core/pointLabels.cjs +2 -0
- package/dist/components/charts/core/pointLabels.cjs.map +1 -0
- package/dist/components/charts/core/pointLabels.js +12 -0
- package/dist/components/charts/core/pointLabels.js.map +1 -0
- package/dist/components/charts/core/tooltips.cjs +2 -0
- package/dist/components/charts/core/tooltips.cjs.map +1 -0
- package/dist/components/charts/core/tooltips.js +48 -0
- package/dist/components/charts/core/tooltips.js.map +1 -0
- package/dist/components/charts/core/useCartesianLayout.cjs +2 -0
- package/dist/components/charts/core/useCartesianLayout.cjs.map +1 -0
- package/dist/components/charts/core/useCartesianLayout.js +38 -0
- package/dist/components/charts/core/useCartesianLayout.js.map +1 -0
- package/dist/components/charts/core/useChartMetrics.cjs +1 -1
- package/dist/components/charts/core/useChartMetrics.cjs.map +1 -1
- package/dist/components/charts/core/useChartMetrics.js +20 -25
- package/dist/components/charts/core/useChartMetrics.js.map +1 -1
- package/dist/components/charts/core/useSeriesToggle.cjs +1 -1
- package/dist/components/charts/core/useSeriesToggle.cjs.map +1 -1
- package/dist/components/charts/core/useSeriesToggle.js +19 -12
- package/dist/components/charts/core/useSeriesToggle.js.map +1 -1
- package/dist/components/data-display/Accordion/Accordion.cjs +1 -1
- package/dist/components/data-display/Accordion/Accordion.cjs.map +1 -1
- package/dist/components/data-display/Accordion/Accordion.js +56 -46
- package/dist/components/data-display/Accordion/Accordion.js.map +1 -1
- package/dist/components/data-display/Accordion/Accordion.module.css.cjs +1 -1
- package/dist/components/data-display/Accordion/Accordion.module.css.js +16 -16
- package/dist/components/data-display/List/List.cjs.map +1 -1
- package/dist/components/data-display/List/List.js.map +1 -1
- package/dist/components/data-display/List/List.module.css.cjs +1 -1
- package/dist/components/data-display/List/List.module.css.js +34 -24
- package/dist/components/data-display/List/List.module.css.js.map +1 -1
- package/dist/components/data-display/List/ListingOptions.cjs +1 -1
- package/dist/components/data-display/List/ListingOptions.cjs.map +1 -1
- package/dist/components/data-display/List/ListingOptions.js +98 -74
- package/dist/components/data-display/List/ListingOptions.js.map +1 -1
- package/dist/components/data-display/List/useListing.cjs.map +1 -1
- package/dist/components/data-display/List/useListing.js.map +1 -1
- package/dist/components/data-display/SortableList/SortableList.cjs +2 -0
- package/dist/components/data-display/SortableList/SortableList.cjs.map +1 -0
- package/dist/components/data-display/SortableList/SortableList.js +168 -0
- package/dist/components/data-display/SortableList/SortableList.js.map +1 -0
- package/dist/components/data-display/SortableList/SortableList.module.css.cjs +2 -0
- package/dist/components/data-display/SortableList/SortableList.module.css.cjs.map +1 -0
- package/dist/components/data-display/SortableList/SortableList.module.css.js +34 -0
- package/dist/components/data-display/SortableList/SortableList.module.css.js.map +1 -0
- package/dist/components/data-display/Table/Table.cjs +1 -1
- package/dist/components/data-display/Table/Table.cjs.map +1 -1
- package/dist/components/data-display/Table/Table.js +86 -85
- package/dist/components/data-display/Table/Table.js.map +1 -1
- package/dist/components/data-display/Table/Table.module.css.cjs +1 -1
- package/dist/components/data-display/Table/Table.module.css.js +50 -51
- package/dist/components/data-display/Table/Table.module.css.js.map +1 -1
- package/dist/components/data-display/Tag/Tag.cjs +2 -0
- package/dist/components/data-display/Tag/Tag.cjs.map +1 -0
- package/dist/components/data-display/Tag/Tag.js +50 -0
- package/dist/components/data-display/Tag/Tag.js.map +1 -0
- package/dist/components/data-display/Tag/Tag.module.css.cjs +2 -0
- package/dist/components/data-display/Tag/Tag.module.css.cjs.map +1 -0
- package/dist/components/data-display/Tag/Tag.module.css.js +22 -0
- package/dist/components/data-display/Tag/Tag.module.css.js.map +1 -0
- package/dist/components/data-display/Timeline/Timeline.cjs +2 -0
- package/dist/components/data-display/Timeline/Timeline.cjs.map +1 -0
- package/dist/components/data-display/Timeline/Timeline.js +31 -0
- package/dist/components/data-display/Timeline/Timeline.js.map +1 -0
- package/dist/components/data-display/Timeline/Timeline.module.css.cjs +2 -0
- package/dist/components/data-display/Timeline/Timeline.module.css.cjs.map +1 -0
- package/dist/components/data-display/Timeline/Timeline.module.css.js +30 -0
- package/dist/components/data-display/Timeline/Timeline.module.css.js.map +1 -0
- package/dist/components/feedback/Skeleton/Skeleton.cjs +2 -0
- package/dist/components/feedback/Skeleton/Skeleton.cjs.map +1 -0
- package/dist/components/feedback/Skeleton/Skeleton.js +17 -0
- package/dist/components/feedback/Skeleton/Skeleton.js.map +1 -0
- package/dist/components/feedback/Skeleton/Skeleton.module.css.cjs +2 -0
- package/dist/components/feedback/Skeleton/Skeleton.module.css.cjs.map +1 -0
- package/dist/components/feedback/Skeleton/Skeleton.module.css.js +15 -0
- package/dist/components/feedback/Skeleton/Skeleton.module.css.js.map +1 -0
- package/dist/components/feedback/Toast/Toast.module.css.cjs +2 -0
- package/dist/components/feedback/Toast/Toast.module.css.cjs.map +1 -0
- package/dist/components/feedback/Toast/Toast.module.css.js +31 -0
- package/dist/components/feedback/Toast/Toast.module.css.js.map +1 -0
- package/dist/components/feedback/Toast/ToastRegion.cjs +2 -0
- package/dist/components/feedback/Toast/ToastRegion.cjs.map +1 -0
- package/dist/components/feedback/Toast/ToastRegion.js +62 -0
- package/dist/components/feedback/Toast/ToastRegion.js.map +1 -0
- package/dist/components/feedback/Toast/toastStore.cjs +2 -0
- package/dist/components/feedback/Toast/toastStore.cjs.map +1 -0
- package/dist/components/feedback/Toast/toastStore.js +33 -0
- package/dist/components/feedback/Toast/toastStore.js.map +1 -0
- package/dist/components/forms/Checkbox/Checkbox.cjs +1 -1
- package/dist/components/forms/Checkbox/Checkbox.cjs.map +1 -1
- package/dist/components/forms/Checkbox/Checkbox.js +43 -31
- package/dist/components/forms/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/forms/Checkbox/Checkbox.module.css.cjs +1 -1
- package/dist/components/forms/Checkbox/Checkbox.module.css.js +1 -1
- package/dist/components/forms/CheckboxGroup/CheckboxGroup.cjs +2 -0
- package/dist/components/forms/CheckboxGroup/CheckboxGroup.cjs.map +1 -0
- package/dist/components/forms/CheckboxGroup/CheckboxGroup.js +54 -0
- package/dist/components/forms/CheckboxGroup/CheckboxGroup.js.map +1 -0
- package/dist/components/forms/CheckboxGroup/CheckboxGroup.module.css.cjs +2 -0
- package/dist/components/forms/CheckboxGroup/CheckboxGroup.module.css.cjs.map +1 -0
- package/dist/components/forms/CheckboxGroup/CheckboxGroup.module.css.js +22 -0
- package/dist/components/forms/CheckboxGroup/CheckboxGroup.module.css.js.map +1 -0
- package/dist/components/forms/ColorPicker/ColorPicker.cjs +2 -0
- package/dist/components/forms/ColorPicker/ColorPicker.cjs.map +1 -0
- package/dist/components/forms/ColorPicker/ColorPicker.js +57 -0
- package/dist/components/forms/ColorPicker/ColorPicker.js.map +1 -0
- package/dist/components/forms/ColorPicker/ColorPicker.module.css.cjs +2 -0
- package/dist/components/forms/ColorPicker/ColorPicker.module.css.cjs.map +1 -0
- package/dist/components/forms/ColorPicker/ColorPicker.module.css.js +22 -0
- package/dist/components/forms/ColorPicker/ColorPicker.module.css.js.map +1 -0
- package/dist/components/forms/ComboBox/ComboBox.cjs.map +1 -1
- package/dist/components/forms/ComboBox/ComboBox.js.map +1 -1
- package/dist/components/forms/ComboBox/ComboBox.module.css.cjs +1 -1
- package/dist/components/forms/ComboBox/ComboBox.module.css.js +20 -20
- package/dist/components/forms/Field/Field.cjs +1 -1
- package/dist/components/forms/Field/Field.cjs.map +1 -1
- package/dist/components/forms/Field/Field.js +21 -20
- package/dist/components/forms/Field/Field.js.map +1 -1
- package/dist/components/forms/Field/Field.module.css.cjs +1 -1
- package/dist/components/forms/Field/Field.module.css.js +18 -12
- package/dist/components/forms/Field/Field.module.css.js.map +1 -1
- package/dist/components/forms/FileUpload/FileUpload.cjs +2 -0
- package/dist/components/forms/FileUpload/FileUpload.cjs.map +1 -0
- package/dist/components/forms/FileUpload/FileUpload.js +142 -0
- package/dist/components/forms/FileUpload/FileUpload.js.map +1 -0
- package/dist/components/forms/FileUpload/FileUpload.module.css.cjs +2 -0
- package/dist/components/forms/FileUpload/FileUpload.module.css.cjs.map +1 -0
- package/dist/components/forms/FileUpload/FileUpload.module.css.js +46 -0
- package/dist/components/forms/FileUpload/FileUpload.module.css.js.map +1 -0
- package/dist/components/forms/InputPassword/InputPassword.module.css.cjs +1 -1
- package/dist/components/forms/InputPassword/InputPassword.module.css.js +12 -12
- package/dist/components/forms/InputText/InputText.cjs +1 -1
- package/dist/components/forms/InputText/InputText.cjs.map +1 -1
- package/dist/components/forms/InputText/InputText.js +55 -47
- package/dist/components/forms/InputText/InputText.js.map +1 -1
- package/dist/components/forms/InputText/InputText.module.css.cjs +1 -1
- package/dist/components/forms/InputText/InputText.module.css.js +10 -10
- package/dist/components/forms/RadioGroup/RadioGroup.module.css.cjs +1 -1
- package/dist/components/forms/RadioGroup/RadioGroup.module.css.js +4 -4
- package/dist/components/forms/SegmentedControl/SegmentedControl.cjs +2 -0
- package/dist/components/forms/SegmentedControl/SegmentedControl.cjs.map +1 -0
- package/dist/components/forms/SegmentedControl/SegmentedControl.js +52 -0
- package/dist/components/forms/SegmentedControl/SegmentedControl.js.map +1 -0
- package/dist/components/forms/SegmentedControl/SegmentedControl.module.css.cjs +2 -0
- package/dist/components/forms/SegmentedControl/SegmentedControl.module.css.cjs.map +1 -0
- package/dist/components/forms/SegmentedControl/SegmentedControl.module.css.js +22 -0
- package/dist/components/forms/SegmentedControl/SegmentedControl.module.css.js.map +1 -0
- package/dist/components/forms/Select/Select.module.css.cjs +1 -1
- package/dist/components/forms/Select/Select.module.css.js +13 -13
- package/dist/components/forms/Switch/Switch.module.css.cjs +1 -1
- package/dist/components/forms/Switch/Switch.module.css.js +2 -2
- package/dist/components/icons/icons.cjs +1 -1
- package/dist/components/icons/icons.cjs.map +1 -1
- package/dist/components/icons/icons.js +198 -40
- package/dist/components/icons/icons.js.map +1 -1
- package/dist/components/navigation/SkipLink/SkipLink.cjs +2 -0
- package/dist/components/navigation/SkipLink/SkipLink.cjs.map +1 -0
- package/dist/components/navigation/SkipLink/SkipLink.js +9 -0
- package/dist/components/navigation/SkipLink/SkipLink.js.map +1 -0
- package/dist/components/navigation/SkipLink/SkipLink.module.css.cjs +2 -0
- package/dist/components/navigation/SkipLink/SkipLink.module.css.cjs.map +1 -0
- package/dist/components/navigation/SkipLink/SkipLink.module.css.js +8 -0
- package/dist/components/navigation/SkipLink/SkipLink.module.css.js.map +1 -0
- package/dist/components/navigation/Steps/Steps.cjs +2 -0
- package/dist/components/navigation/Steps/Steps.cjs.map +1 -0
- package/dist/components/navigation/Steps/Steps.js +30 -0
- package/dist/components/navigation/Steps/Steps.js.map +1 -0
- package/dist/components/navigation/Steps/Steps.module.css.cjs +2 -0
- package/dist/components/navigation/Steps/Steps.module.css.cjs.map +1 -0
- package/dist/components/navigation/Steps/Steps.module.css.js +26 -0
- package/dist/components/navigation/Steps/Steps.module.css.js.map +1 -0
- package/dist/components/navigation/Tabs/Tabs.cjs +1 -1
- package/dist/components/navigation/Tabs/Tabs.cjs.map +1 -1
- package/dist/components/navigation/Tabs/Tabs.js +88 -79
- package/dist/components/navigation/Tabs/Tabs.js.map +1 -1
- package/dist/components/navigation/Tabs/Tabs.module.css.cjs +1 -1
- package/dist/components/navigation/Tabs/Tabs.module.css.js +18 -14
- package/dist/components/navigation/Tabs/Tabs.module.css.js.map +1 -1
- package/dist/components/navigation/TabsNav/TabsNav.cjs +2 -0
- package/dist/components/navigation/TabsNav/TabsNav.cjs.map +1 -0
- package/dist/components/navigation/TabsNav/TabsNav.js +21 -0
- package/dist/components/navigation/TabsNav/TabsNav.js.map +1 -0
- package/dist/components/navigation/TabsNav/TabsNav.module.css.cjs +2 -0
- package/dist/components/navigation/TabsNav/TabsNav.module.css.cjs.map +1 -0
- package/dist/components/navigation/TabsNav/TabsNav.module.css.js +18 -0
- package/dist/components/navigation/TabsNav/TabsNav.module.css.js.map +1 -0
- package/dist/components/overlays/Dialog/Dialog.cjs +1 -1
- package/dist/components/overlays/Dialog/Dialog.cjs.map +1 -1
- package/dist/components/overlays/Dialog/Dialog.js +11 -58
- package/dist/components/overlays/Dialog/Dialog.js.map +1 -1
- package/dist/components/overlays/Dialog/DialogFrame.cjs +2 -0
- package/dist/components/overlays/Dialog/DialogFrame.cjs.map +1 -0
- package/dist/components/overlays/Dialog/DialogFrame.js +65 -0
- package/dist/components/overlays/Dialog/DialogFrame.js.map +1 -0
- package/dist/components/overlays/Drawer/Drawer.cjs +2 -0
- package/dist/components/overlays/Drawer/Drawer.cjs.map +1 -0
- package/dist/components/overlays/Drawer/Drawer.js +17 -0
- package/dist/components/overlays/Drawer/Drawer.js.map +1 -0
- package/dist/components/overlays/Drawer/Drawer.module.css.cjs +2 -0
- package/dist/components/overlays/Drawer/Drawer.module.css.cjs.map +1 -0
- package/dist/components/overlays/Drawer/Drawer.module.css.js +23 -0
- package/dist/components/overlays/Drawer/Drawer.module.css.js.map +1 -0
- package/dist/components/overlays/Menu/Menu.cjs +1 -1
- package/dist/components/overlays/Menu/Menu.cjs.map +1 -1
- package/dist/components/overlays/Menu/Menu.js +105 -86
- package/dist/components/overlays/Menu/Menu.js.map +1 -1
- package/dist/components/overlays/Menu/Menu.module.css.cjs +1 -1
- package/dist/components/overlays/Menu/Menu.module.css.js +24 -6
- package/dist/components/overlays/Menu/Menu.module.css.js.map +1 -1
- package/dist/design-system.css +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +190 -118
- package/dist/index.js.map +1 -1
- package/dist/types/components/actions/ButtonTile/ButtonTile.d.ts +14 -0
- package/dist/types/components/actions/ButtonTile/index.d.ts +2 -0
- package/dist/types/components/actions/Toolbar/Toolbar.d.ts +27 -0
- package/dist/types/components/actions/Toolbar/index.d.ts +2 -0
- package/dist/types/components/charts/ChartArea/ChartArea.d.ts +15 -4
- package/dist/types/components/charts/ChartBar/ChartBar.d.ts +11 -4
- package/dist/types/components/charts/ChartCombo/ChartCombo.d.ts +16 -4
- package/dist/types/components/charts/ChartDonut/ChartDonut.d.ts +5 -1
- package/dist/types/components/charts/ChartGauge/ChartGauge.d.ts +83 -0
- package/dist/types/components/charts/ChartGauge/gaugeLayout.d.ts +64 -0
- package/dist/types/components/charts/ChartGauge/gaugeReading.d.ts +97 -0
- package/dist/types/components/charts/ChartGauge/gaugeScale.d.ts +38 -0
- package/dist/types/components/charts/ChartGauge/index.d.ts +2 -0
- package/dist/types/components/charts/ChartLine/ChartLine.d.ts +15 -4
- package/dist/types/components/charts/ChartMap/ChartMap.d.ts +104 -0
- package/dist/types/components/charts/ChartMap/ChartMapLegend.d.ts +44 -0
- package/dist/types/components/charts/ChartMap/ChartMapTable.d.ts +38 -0
- package/dist/types/components/charts/ChartMap/index.d.ts +4 -0
- package/dist/types/components/charts/ChartMap/mapGeometry.d.ts +56 -0
- package/dist/types/components/charts/ChartMap/mapLabels.d.ts +51 -0
- package/dist/types/components/charts/ChartMap/mapScales.d.ts +76 -0
- package/dist/types/components/charts/ChartMap/polylabel.d.ts +9 -0
- package/dist/types/components/charts/ChartPie/ChartPie.d.ts +5 -1
- package/dist/types/components/charts/ChartRadial/ChartRadial.d.ts +5 -1
- package/dist/types/components/charts/ChartSankey/ChartSankey.d.ts +5 -1
- package/dist/types/components/charts/ChartScatter/ChartScatter.d.ts +7 -1
- package/dist/types/components/charts/ChartSunburst/ChartSunburst.d.ts +11 -2
- package/dist/types/components/charts/ChartTimeline/ChartTimeline.d.ts +137 -0
- package/dist/types/components/charts/ChartTimeline/ChartTimelineTable.d.ts +25 -0
- package/dist/types/components/charts/ChartTimeline/index.d.ts +2 -0
- package/dist/types/components/charts/ChartTimeline/timelineLayout.d.ts +70 -0
- package/dist/types/components/charts/ChartTimeline/timelineTime.d.ts +16 -0
- package/dist/types/components/charts/ChartTimeline/timelineTooltip.d.ts +45 -0
- package/dist/types/components/charts/ChartTooltip/ChartTooltip.d.ts +2 -0
- package/dist/types/components/charts/ChartTreemap/ChartTreemap.d.ts +11 -2
- package/dist/types/components/charts/ChartWaterfall/ChartWaterfall.d.ts +8 -3
- package/dist/types/components/charts/core/CartesianFrame.d.ts +6 -1
- package/dist/types/components/charts/core/ChartFrame.d.ts +7 -1
- package/dist/types/components/charts/core/ChartLegend.d.ts +3 -1
- package/dist/types/components/charts/core/PointBands.d.ts +22 -0
- package/dist/types/components/charts/core/cartesianLayout.d.ts +10 -4
- package/dist/types/components/charts/core/hoverPath.d.ts +10 -0
- package/dist/types/components/charts/core/index.d.ts +13 -3
- package/dist/types/components/charts/core/pointLabels.d.ts +13 -0
- package/dist/types/components/charts/core/tooltips.d.ts +49 -0
- package/dist/types/components/charts/core/useCartesianLayout.d.ts +20 -0
- package/dist/types/components/charts/core/useSeriesToggle.d.ts +15 -1
- package/dist/types/components/data-display/Accordion/Accordion.d.ts +6 -1
- package/dist/types/components/data-display/Accordion/index.d.ts +1 -1
- package/dist/types/components/data-display/List/List.d.ts +1 -1
- package/dist/types/components/data-display/List/useListing.d.ts +7 -1
- package/dist/types/components/data-display/SortableList/SortableList.d.ts +22 -0
- package/dist/types/components/data-display/SortableList/index.d.ts +2 -0
- package/dist/types/components/data-display/Tag/Tag.d.ts +13 -0
- package/dist/types/components/data-display/Tag/index.d.ts +2 -0
- package/dist/types/components/data-display/Timeline/Timeline.d.ts +15 -0
- package/dist/types/components/data-display/Timeline/index.d.ts +2 -0
- package/dist/types/components/feedback/Skeleton/Skeleton.d.ts +13 -0
- package/dist/types/components/feedback/Skeleton/index.d.ts +2 -0
- package/dist/types/components/feedback/Toast/ToastRegion.d.ts +2 -0
- package/dist/types/components/feedback/Toast/index.d.ts +3 -0
- package/dist/types/components/feedback/Toast/toastStore.d.ts +24 -0
- package/dist/types/components/forms/CheckboxGroup/CheckboxGroup.d.ts +28 -0
- package/dist/types/components/forms/CheckboxGroup/index.d.ts +2 -0
- package/dist/types/components/forms/ColorPicker/ColorPicker.d.ts +26 -0
- package/dist/types/components/forms/ColorPicker/index.d.ts +2 -0
- package/dist/types/components/forms/ComboBox/ComboBox.d.ts +7 -1
- package/dist/types/components/forms/Field/Field.d.ts +6 -2
- package/dist/types/components/forms/Field/index.d.ts +1 -1
- package/dist/types/components/forms/FileUpload/FileUpload.d.ts +37 -0
- package/dist/types/components/forms/FileUpload/index.d.ts +2 -0
- package/dist/types/components/forms/InputText/InputText.d.ts +4 -2
- package/dist/types/components/forms/SegmentedControl/SegmentedControl.d.ts +23 -0
- package/dist/types/components/forms/SegmentedControl/index.d.ts +2 -0
- package/dist/types/components/icons/icons.d.ts +29 -0
- package/dist/types/components/icons/index.d.ts +1 -1
- package/dist/types/components/navigation/SkipLink/SkipLink.d.ts +7 -0
- package/dist/types/components/navigation/SkipLink/index.d.ts +2 -0
- package/dist/types/components/navigation/Steps/Steps.d.ts +16 -0
- package/dist/types/components/navigation/Steps/index.d.ts +2 -0
- package/dist/types/components/navigation/Tabs/Tabs.d.ts +5 -1
- package/dist/types/components/navigation/TabsNav/TabsNav.d.ts +20 -0
- package/dist/types/components/navigation/TabsNav/index.d.ts +2 -0
- package/dist/types/components/overlays/Dialog/Dialog.d.ts +21 -9
- package/dist/types/components/overlays/Dialog/DialogFrame.d.ts +13 -0
- package/dist/types/components/overlays/Drawer/Drawer.d.ts +9 -0
- package/dist/types/components/overlays/Drawer/index.d.ts +2 -0
- package/dist/types/components/overlays/Menu/Menu.d.ts +16 -2
- package/dist/types/components/overlays/Menu/index.d.ts +1 -1
- package/dist/types/index.d.ts +43 -7
- package/dist/types/utils/formatters/formatarDuracao.d.ts +5 -0
- package/dist/types/utils/formatters/formatarNumero.d.ts +6 -1
- package/dist/types/utils/formatters/formatarTamanhoDeArquivo.d.ts +7 -0
- package/dist/types/utils/formatters/index.d.ts +4 -1
- package/dist/utils/formatters/formatarDuracao.cjs +2 -0
- package/dist/utils/formatters/formatarDuracao.cjs.map +1 -0
- package/dist/utils/formatters/formatarDuracao.js +10 -0
- package/dist/utils/formatters/formatarDuracao.js.map +1 -0
- package/dist/utils/formatters/formatarNumero.cjs +1 -1
- package/dist/utils/formatters/formatarNumero.cjs.map +1 -1
- package/dist/utils/formatters/formatarNumero.js +42 -17
- package/dist/utils/formatters/formatarNumero.js.map +1 -1
- package/dist/utils/formatters/formatarTamanhoDeArquivo.cjs +2 -0
- package/dist/utils/formatters/formatarTamanhoDeArquivo.cjs.map +1 -0
- package/dist/utils/formatters/formatarTamanhoDeArquivo.js +17 -0
- package/dist/utils/formatters/formatarTamanhoDeArquivo.js.map +1 -0
- package/package.json +3 -1
|
@@ -14,6 +14,8 @@ export interface ChartRadialProps {
|
|
|
14
14
|
emptyMessage?: string;
|
|
15
15
|
/** Angulo final da volta, em graus a partir do topo. Meia-lua usa 180. */
|
|
16
16
|
endAngle?: number;
|
|
17
|
+
/** Formato dos valores no balao. Sem ele, vale o `formatValue`. */
|
|
18
|
+
formatTooltipValue?: (value: number) => string;
|
|
17
19
|
formatValue?: (value: number) => string;
|
|
18
20
|
height?: ChartHeight;
|
|
19
21
|
hiddenTracks?: readonly string[];
|
|
@@ -22,6 +24,8 @@ export interface ChartRadialProps {
|
|
|
22
24
|
onHiddenTracksChange?: (hidden: readonly string[]) => void;
|
|
23
25
|
/** Valor no centro. Ele reserva o proprio espaco, ate metade do raio: com muitos aneis, quem cede e a espessura deles. */
|
|
24
26
|
showCenter?: boolean;
|
|
27
|
+
/** Balao com o detalhe do que esta sob o ponteiro. Desligue para nao mostrar nada alem do `<title>` nativo. */
|
|
28
|
+
showTooltip?: boolean;
|
|
25
29
|
startAngle?: number;
|
|
26
30
|
/** Raio das pontas do arco. Sem valor, o token de raio pequeno. */
|
|
27
31
|
trackRadius?: number;
|
|
@@ -30,4 +34,4 @@ export interface ChartRadialProps {
|
|
|
30
34
|
title: string;
|
|
31
35
|
tracks: readonly ChartRadialTrack[];
|
|
32
36
|
}
|
|
33
|
-
export declare function ChartRadial({ accent, centerLabel, defaultHiddenTracks, emptyMessage, endAngle, formatValue, height, hiddenTracks, legend, legendAlign, onHiddenTracksChange, showCenter, startAngle, thickness, trackRadius, title, tracks, }: ChartRadialProps): import("react").JSX.Element;
|
|
37
|
+
export declare function ChartRadial({ accent, centerLabel, defaultHiddenTracks, emptyMessage, endAngle, formatTooltipValue, formatValue, height, hiddenTracks, legend, legendAlign, onHiddenTracksChange, showCenter, showTooltip, startAngle, thickness, trackRadius, title, tracks, }: ChartRadialProps): import("react").JSX.Element;
|
|
@@ -26,6 +26,8 @@ export interface ChartSankeyProps {
|
|
|
26
26
|
flowColor?: ChartSankeyFlowColor;
|
|
27
27
|
flowValuePosition?: ChartSankeyFlowValuePosition;
|
|
28
28
|
flows: readonly ChartSankeyFlow[];
|
|
29
|
+
/** Formato dos valores no balao. Sem ele, vale o `formatValue`. */
|
|
30
|
+
formatTooltipValue?: (value: number) => string;
|
|
29
31
|
formatValue?: (value: number) => string;
|
|
30
32
|
height?: ChartHeight;
|
|
31
33
|
nodeAlign?: ChartSankeyAlign;
|
|
@@ -36,6 +38,8 @@ export interface ChartSankeyProps {
|
|
|
36
38
|
nodeWidth?: number;
|
|
37
39
|
showFlowValues?: boolean;
|
|
38
40
|
showLabels?: boolean;
|
|
41
|
+
/** Balao com o detalhe do que esta sob o ponteiro. Desligue para nao mostrar nada alem do `<title>` nativo. */
|
|
42
|
+
showTooltip?: boolean;
|
|
39
43
|
title: string;
|
|
40
44
|
}
|
|
41
|
-
export declare function ChartSankey({ accent, cyclicMessage, emptyMessage, flowColor, flowValuePosition, flows, formatValue, height, nodeAlign, nodes, nodePadding, nodeWidth, showFlowValues, showLabels, title, }: ChartSankeyProps): import("react").JSX.Element;
|
|
45
|
+
export declare function ChartSankey({ accent, cyclicMessage, emptyMessage, flowColor, flowValuePosition, flows, formatTooltipValue, formatValue, height, nodeAlign, nodes, nodePadding, nodeWidth, showFlowValues, showLabels, showTooltip, title, }: ChartSankeyProps): import("react").JSX.Element;
|
|
@@ -29,9 +29,15 @@ export interface ChartScatterProps {
|
|
|
29
29
|
legendAlign?: ChartLegendAlign;
|
|
30
30
|
onHiddenSeriesChange?: (hidden: readonly string[]) => void;
|
|
31
31
|
series: readonly ChartScatterSeries[];
|
|
32
|
+
/** Balao com o detalhe do que esta sob o ponteiro. Desligue para nao mostrar nada alem do `<title>` nativo. */
|
|
33
|
+
showTooltip?: boolean;
|
|
32
34
|
title: string;
|
|
35
|
+
/** Nome de cada medida no balao. */
|
|
36
|
+
xLabel?: string;
|
|
37
|
+
yLabel?: string;
|
|
38
|
+
zLabel?: string;
|
|
33
39
|
xAxis?: AxisVisibility;
|
|
34
40
|
yAxis?: AxisVisibility;
|
|
35
41
|
yAxisRight?: AxisVisibility;
|
|
36
42
|
}
|
|
37
|
-
export declare function ChartScatter({ accent, defaultHiddenSeries, emptyMessage, formatX, formatY, formatZ, height, includeZero, hiddenSeries, legend, legendAlign, onHiddenSeriesChange, series, title, xAxis, yAxis, yAxisRight, }: ChartScatterProps): import("react").JSX.Element;
|
|
43
|
+
export declare function ChartScatter({ accent, defaultHiddenSeries, emptyMessage, formatX, formatY, formatZ, height, includeZero, hiddenSeries, legend, legendAlign, onHiddenSeriesChange, series, showTooltip, title, xLabel, yLabel, zLabel, xAxis, yAxis, yAxisRight, }: ChartScatterProps): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ChartHeight, type ChartLegendAlign, type ChartLegendPosition } from '../core/index.js';
|
|
1
|
+
import { type ChartHeight, type ChartHoveredNode, type ChartLegendAlign, type ChartLegendPosition } from '../core/index.js';
|
|
2
2
|
import { type SeriesAppearance } from '../palette/index.js';
|
|
3
3
|
export interface ChartSunburstNode extends SeriesAppearance {
|
|
4
4
|
children?: readonly ChartSunburstNode[];
|
|
@@ -10,6 +10,8 @@ export interface ChartSunburstProps {
|
|
|
10
10
|
defaultHiddenGroups?: readonly string[];
|
|
11
11
|
emptyMessage?: string;
|
|
12
12
|
formatPercent?: (ratio: number) => string;
|
|
13
|
+
/** Formato dos valores no balao. Sem ele, vale o `formatValue`: o eixo pode sair compacto e o balao, exato. */
|
|
14
|
+
formatTooltipValue?: (value: number) => string;
|
|
13
15
|
formatValue?: (value: number) => string;
|
|
14
16
|
height?: ChartHeight;
|
|
15
17
|
hiddenGroups?: readonly string[];
|
|
@@ -17,11 +19,18 @@ export interface ChartSunburstProps {
|
|
|
17
19
|
legendAlign?: ChartLegendAlign;
|
|
18
20
|
nodes: readonly ChartSunburstNode[];
|
|
19
21
|
onHiddenGroupsChange?: (hidden: readonly string[]) => void;
|
|
22
|
+
/** Caminho ate o no sob o ponteiro, do grupo ao no, cada nivel com o valor somado, ou `null` ao sair. */
|
|
23
|
+
onHoverNode?: (path: readonly ChartHoveredNode[] | null) => void;
|
|
20
24
|
/** Folga entre dois aneis vizinhos. */
|
|
21
25
|
ringGap?: number;
|
|
22
26
|
/** Raio das pontas de cada arco. Sem valor, o token de raio pequeno. */
|
|
23
27
|
sliceRadius?: number;
|
|
24
28
|
showLabels?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Balao com o caminho ate o no sob o ponteiro. Desligue para montar o proprio `ChartTooltip`
|
|
31
|
+
* pela costura; sem balao nem costura, o no volta a ter o `<title>`.
|
|
32
|
+
*/
|
|
33
|
+
showTooltip?: boolean;
|
|
25
34
|
title: string;
|
|
26
35
|
}
|
|
27
|
-
export declare function ChartSunburst({ accent, defaultHiddenGroups, emptyMessage, formatPercent, formatValue, height, hiddenGroups, legend, legendAlign, nodes, onHiddenGroupsChange, ringGap, showLabels, sliceRadius, title, }: ChartSunburstProps): import("react").JSX.Element;
|
|
36
|
+
export declare function ChartSunburst({ accent, defaultHiddenGroups, emptyMessage, formatPercent, formatTooltipValue, formatValue, height, hiddenGroups, legend, legendAlign, nodes, onHiddenGroupsChange, onHoverNode, ringGap, showLabels, showTooltip, sliceRadius, title, }: ChartSunburstProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { type AxisVisibility, type ChartLegendAlign } from '../core/index.js';
|
|
2
|
+
import { type SeriesAppearance, type SeriesIntent } from '../palette/index.js';
|
|
3
|
+
/** Em `calendar`, `Date` ou milissegundos desde a epoca; em `dayHours`, `Date` pela hora do dia ou a hora decimal. */
|
|
4
|
+
export type ChartTimelineTime = Date | number;
|
|
5
|
+
export type ChartTimelineScale = 'calendar' | 'dayHours';
|
|
6
|
+
export type ChartTimelineOverlap = 'stack' | 'overlay';
|
|
7
|
+
export type ChartTimelineDensity = 'sm' | 'md';
|
|
8
|
+
export type ChartTimelineSegmentLabels = 'auto' | 'visible' | 'hidden';
|
|
9
|
+
export type ChartTimelineSegmentLabelContent = 'duration' | 'label';
|
|
10
|
+
export type ChartTimelineLabelAlign = 'start' | 'center' | 'end';
|
|
11
|
+
export type ChartTimelineMarkerShape = 'line' | 'dot' | 'diamond';
|
|
12
|
+
export interface ChartTimelineRow {
|
|
13
|
+
description?: string;
|
|
14
|
+
/** Chave do grupo a que a linha pertence. */
|
|
15
|
+
group?: string;
|
|
16
|
+
/** Identifica a linha; o `label` pode repetir. */
|
|
17
|
+
key: string;
|
|
18
|
+
label: string;
|
|
19
|
+
}
|
|
20
|
+
export interface ChartTimelineGroup {
|
|
21
|
+
key: string;
|
|
22
|
+
label: string;
|
|
23
|
+
}
|
|
24
|
+
export interface ChartTimelineSeries extends SeriesAppearance {
|
|
25
|
+
label: string;
|
|
26
|
+
}
|
|
27
|
+
export interface ChartTimelineSegment {
|
|
28
|
+
end: ChartTimelineTime;
|
|
29
|
+
/** Nome do intervalo, como a reuniao ou o responsavel. */
|
|
30
|
+
label?: string;
|
|
31
|
+
/** De 0 a 1. */
|
|
32
|
+
progress?: number;
|
|
33
|
+
/** `key` da linha. */
|
|
34
|
+
row: string;
|
|
35
|
+
/** `label` da serie. */
|
|
36
|
+
series: string;
|
|
37
|
+
start: ChartTimelineTime;
|
|
38
|
+
}
|
|
39
|
+
export interface ChartTimelineState {
|
|
40
|
+
row: string;
|
|
41
|
+
/** `label` da serie. */
|
|
42
|
+
state: string;
|
|
43
|
+
time: ChartTimelineTime;
|
|
44
|
+
}
|
|
45
|
+
export interface ChartTimelineRowBand {
|
|
46
|
+
end: ChartTimelineTime;
|
|
47
|
+
row: string;
|
|
48
|
+
series: string;
|
|
49
|
+
start: ChartTimelineTime;
|
|
50
|
+
}
|
|
51
|
+
export interface ChartTimelineBand {
|
|
52
|
+
end: ChartTimelineTime;
|
|
53
|
+
label?: string;
|
|
54
|
+
series: string;
|
|
55
|
+
start: ChartTimelineTime;
|
|
56
|
+
}
|
|
57
|
+
export interface ChartTimelineMarker {
|
|
58
|
+
label?: string;
|
|
59
|
+
row: string;
|
|
60
|
+
series: string;
|
|
61
|
+
shape?: ChartTimelineMarkerShape;
|
|
62
|
+
time: ChartTimelineTime;
|
|
63
|
+
}
|
|
64
|
+
export interface ChartTimelineReferenceLine {
|
|
65
|
+
intent?: SeriesIntent;
|
|
66
|
+
label: string;
|
|
67
|
+
time: ChartTimelineTime;
|
|
68
|
+
}
|
|
69
|
+
export interface ChartTimelineSummary {
|
|
70
|
+
subtitle?: string;
|
|
71
|
+
title: string;
|
|
72
|
+
}
|
|
73
|
+
export interface ChartTimelineProps {
|
|
74
|
+
/** Cor de tema que abre a paleta das séries sem cor nem intenção, como nos demais gráficos. */
|
|
75
|
+
accent?: string;
|
|
76
|
+
axisPosition?: 'top' | 'bottom';
|
|
77
|
+
/** Faixas globais, hachuradas em todas as linhas, como o adicional noturno ou o fim de semana. */
|
|
78
|
+
bands?: readonly ChartTimelineBand[];
|
|
79
|
+
collapsedGroups?: readonly string[];
|
|
80
|
+
collapsibleGroups?: boolean;
|
|
81
|
+
/** Em largura estreita, o resumo vai para baixo do rotulo ou sai. */
|
|
82
|
+
compactSummary?: 'below' | 'hidden';
|
|
83
|
+
defaultCollapsedGroups?: readonly string[];
|
|
84
|
+
defaultHiddenSeries?: readonly string[];
|
|
85
|
+
density?: ChartTimelineDensity;
|
|
86
|
+
/** Faixa fixa do eixo. Sem ela, do primeiro ao ultimo instante, arredondada a hora ou ao dia. */
|
|
87
|
+
domain?: readonly [ChartTimelineTime, ChartTimelineTime];
|
|
88
|
+
emptyMessage?: string;
|
|
89
|
+
emptyRowLabel?: string;
|
|
90
|
+
formatTick?: (time: Date) => string;
|
|
91
|
+
formatTime?: (time: Date) => string;
|
|
92
|
+
formatTooltipValue?: (durationMs: number) => string;
|
|
93
|
+
/** Formato das duracoes no rotulo da barra, na descricao e na tabela. */
|
|
94
|
+
formatValue?: (durationMs: number) => string;
|
|
95
|
+
groups?: readonly ChartTimelineGroup[];
|
|
96
|
+
hiddenSeries?: readonly string[];
|
|
97
|
+
highlightOnHover?: boolean;
|
|
98
|
+
legend?: 'top' | 'bottom' | 'none';
|
|
99
|
+
legendAlign?: ChartLegendAlign;
|
|
100
|
+
markers?: readonly ChartTimelineMarker[];
|
|
101
|
+
mergeConsecutive?: boolean;
|
|
102
|
+
/** Abaixo dessa largura, o desenho rola de lado dentro do conteiner, com rotulos e resumo fixos. */
|
|
103
|
+
minPlotWidth?: number;
|
|
104
|
+
onCollapsedGroupsChange?: (collapsed: readonly string[]) => void;
|
|
105
|
+
onHiddenSeriesChange?: (hidden: readonly string[]) => void;
|
|
106
|
+
/** Com ele, os intervalos viram botoes e entram no teclado. */
|
|
107
|
+
onSegmentClick?: (segment: ChartTimelineSegment, row: ChartTimelineRow) => void;
|
|
108
|
+
overlap?: ChartTimelineOverlap;
|
|
109
|
+
referenceLines?: readonly ChartTimelineReferenceLine[];
|
|
110
|
+
rowBands?: readonly ChartTimelineRowBand[];
|
|
111
|
+
rowGap?: number;
|
|
112
|
+
rowLabelWidth?: number | 'auto';
|
|
113
|
+
/** Coluna de resumo, calculada sobre os intervalos visiveis da linha: a legenda filtra a leitura inteira. */
|
|
114
|
+
rowSummary?: (row: ChartTimelineRow, segments: readonly ChartTimelineSegment[]) => ChartTimelineSummary | undefined;
|
|
115
|
+
rows: readonly ChartTimelineRow[];
|
|
116
|
+
segmentLabel?: ChartTimelineSegmentLabelContent;
|
|
117
|
+
segmentLabelAlign?: ChartTimelineLabelAlign;
|
|
118
|
+
segments?: readonly ChartTimelineSegment[];
|
|
119
|
+
series: readonly ChartTimelineSeries[];
|
|
120
|
+
showGrid?: boolean;
|
|
121
|
+
showProgress?: boolean;
|
|
122
|
+
showSegmentLabels?: ChartTimelineSegmentLabels;
|
|
123
|
+
showTooltip?: boolean;
|
|
124
|
+
/** Alternativa a `segments`: cada mudanca de estado vale ate a seguinte. */
|
|
125
|
+
states?: readonly ChartTimelineState[];
|
|
126
|
+
/** Fim do ultimo estado de cada linha, como o instante atual. Sem ele, o fim do eixo. */
|
|
127
|
+
statesEnd?: ChartTimelineTime;
|
|
128
|
+
timeScale?: ChartTimelineScale;
|
|
129
|
+
title: string;
|
|
130
|
+
xAxis?: AxisVisibility;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Barras de intervalo em linhas sobre um eixo de tempo continuo: quem fez o que, de quando ate quando. O desenho e
|
|
134
|
+
* imagem nomeada pelo titulo; com `onSegmentClick`, um grupo cujos intervalos sao botoes de tabulacao movel. A leitura
|
|
135
|
+
* medida a medida esta na visao em tabela.
|
|
136
|
+
*/
|
|
137
|
+
export declare function ChartTimeline({ accent, axisPosition, bands, collapsedGroups, collapsibleGroups, compactSummary, defaultCollapsedGroups, defaultHiddenSeries, density, domain, emptyMessage, emptyRowLabel, formatTick, formatTime, formatTooltipValue, formatValue, groups, hiddenSeries, highlightOnHover, legend, legendAlign, markers, mergeConsecutive, minPlotWidth, onCollapsedGroupsChange, onHiddenSeriesChange, onSegmentClick, overlap, referenceLines, rowBands, rowGap, rowLabelWidth, rowSummary, rows, segmentLabel, segmentLabelAlign, segments, series, showGrid, showProgress, showSegmentLabels, showTooltip, states, statesEnd, timeScale, title, xAxis, }: ChartTimelineProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ChartTimelineSummary } from './ChartTimeline.js';
|
|
2
|
+
export interface TimelineTableEntry {
|
|
3
|
+
color: string;
|
|
4
|
+
duration: string;
|
|
5
|
+
end: string;
|
|
6
|
+
name: string;
|
|
7
|
+
progress?: string;
|
|
8
|
+
start: string;
|
|
9
|
+
}
|
|
10
|
+
export interface TimelineTableRow {
|
|
11
|
+
description?: string;
|
|
12
|
+
entries: readonly TimelineTableEntry[];
|
|
13
|
+
key: string;
|
|
14
|
+
label: string;
|
|
15
|
+
summary?: ChartTimelineSummary;
|
|
16
|
+
}
|
|
17
|
+
interface ChartTimelineTableProps {
|
|
18
|
+
emptyRowLabel: string;
|
|
19
|
+
rows: readonly TimelineTableRow[];
|
|
20
|
+
showProgress: boolean;
|
|
21
|
+
title: string;
|
|
22
|
+
}
|
|
23
|
+
/** Leitura medida a medida do grafico: uma secao por linha, com o rotulo, a descricao e o resumo no cabecalho dela. */
|
|
24
|
+
export declare function ChartTimelineTable({ emptyRowLabel, rows, showProgress, title }: ChartTimelineTableProps): import("react").JSX.Element;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { ChartTimeline } from './ChartTimeline.js';
|
|
2
|
+
export type { ChartTimelineBand, ChartTimelineDensity, ChartTimelineGroup, ChartTimelineLabelAlign, ChartTimelineMarker, ChartTimelineMarkerShape, ChartTimelineOverlap, ChartTimelineProps, ChartTimelineReferenceLine, ChartTimelineRow, ChartTimelineRowBand, ChartTimelineScale, ChartTimelineSegment, ChartTimelineSegmentLabelContent, ChartTimelineSegmentLabels, ChartTimelineSeries, ChartTimelineState, ChartTimelineSummary, ChartTimelineTime, } from './ChartTimeline.js';
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { ChartTimelineGroup, ChartTimelineOverlap, ChartTimelineRow, ChartTimelineScale, ChartTimelineSegment, ChartTimelineState, ChartTimelineTime } from './ChartTimeline.js';
|
|
2
|
+
export interface TimelineRange {
|
|
3
|
+
end: number;
|
|
4
|
+
start: number;
|
|
5
|
+
}
|
|
6
|
+
/** Intervalo com as pontas em posicao do eixo. `source` e o que o consumidor recebe de volta. */
|
|
7
|
+
export interface TimelineSegment extends TimelineRange {
|
|
8
|
+
id: number;
|
|
9
|
+
label?: string;
|
|
10
|
+
progress?: number;
|
|
11
|
+
row: string;
|
|
12
|
+
series: string;
|
|
13
|
+
source: ChartTimelineSegment;
|
|
14
|
+
}
|
|
15
|
+
export interface PlacedSegment extends TimelineSegment {
|
|
16
|
+
lane: number;
|
|
17
|
+
}
|
|
18
|
+
export type TimelineItem = {
|
|
19
|
+
child: boolean;
|
|
20
|
+
height: number;
|
|
21
|
+
kind: 'row';
|
|
22
|
+
laneCount: number;
|
|
23
|
+
row: ChartTimelineRow;
|
|
24
|
+
segments: readonly PlacedSegment[];
|
|
25
|
+
y: number;
|
|
26
|
+
} | {
|
|
27
|
+
collapsed: boolean;
|
|
28
|
+
group: ChartTimelineGroup;
|
|
29
|
+
height: number;
|
|
30
|
+
kind: 'group';
|
|
31
|
+
rows: readonly ChartTimelineRow[];
|
|
32
|
+
segments: readonly TimelineSegment[];
|
|
33
|
+
y: number;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Pontas em posicao do eixo. Em `dayHours`, o fim antes do inicio e o intervalo que cruza a meia-noite: ele termina
|
|
37
|
+
* no dia seguinte, e o desenho o corta no fim do eixo. Instante invalido, ou fim antes do inicio em datas, nao vira
|
|
38
|
+
* geometria.
|
|
39
|
+
*/
|
|
40
|
+
export declare function toRange(start: ChartTimelineTime, end: ChartTimelineTime, scale: ChartTimelineScale): {
|
|
41
|
+
end: number;
|
|
42
|
+
start: number;
|
|
43
|
+
} | undefined;
|
|
44
|
+
export declare function toTimelineSegments(segments: readonly ChartTimelineSegment[], scale: ChartTimelineScale): TimelineSegment[];
|
|
45
|
+
/** Cada estado vale ate o seguinte da linha, e o ultimo ate `end`. Com `merge`, iguais seguidos viram uma regiao. */
|
|
46
|
+
export declare function statesToSegments(states: readonly ChartTimelineState[], end: ChartTimelineTime, merge: boolean, scale: ChartTimelineScale): ChartTimelineSegment[];
|
|
47
|
+
/** Sub-faixas: cada intervalo entra na primeira cujo ultimo intervalo ja terminou. Em `overlay`, todos na mesma. */
|
|
48
|
+
export declare function placeInLanes(segments: readonly TimelineSegment[], overlap: ChartTimelineOverlap): {
|
|
49
|
+
laneCount: number;
|
|
50
|
+
segments: PlacedSegment[];
|
|
51
|
+
};
|
|
52
|
+
/** As linhas sem grupo, ou de grupo desconhecido, vem primeiro; depois as de cada grupo, na ordem dos grupos. */
|
|
53
|
+
export declare function rowsInDisplayOrder(rows: readonly ChartTimelineRow[], groups: readonly ChartTimelineGroup[]): ChartTimelineRow[];
|
|
54
|
+
export interface TimelineLayoutOptions {
|
|
55
|
+
groupHeight: number;
|
|
56
|
+
groups: readonly ChartTimelineGroup[];
|
|
57
|
+
isCollapsed: (groupKey: string) => boolean;
|
|
58
|
+
laneStep: number;
|
|
59
|
+
overlap: ChartTimelineOverlap;
|
|
60
|
+
rowGap: number;
|
|
61
|
+
rowHeight: number;
|
|
62
|
+
rows: readonly ChartTimelineRow[];
|
|
63
|
+
/** So os visiveis: a serie desligada nao ocupa sub-faixa. */
|
|
64
|
+
segments: readonly TimelineSegment[];
|
|
65
|
+
}
|
|
66
|
+
/** Ordem e altura de cada linha e cabecalho de grupo. A linha cresce uma sub-faixa por intervalo sobreposto. */
|
|
67
|
+
export declare function layoutTimeline({ groupHeight, groups, isCollapsed, laneStep, overlap, rowGap, rowHeight, rows, segments, }: TimelineLayoutOptions): {
|
|
68
|
+
height: number;
|
|
69
|
+
items: TimelineItem[];
|
|
70
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ChartTimelineScale, ChartTimelineTime } from './ChartTimeline.js';
|
|
2
|
+
export declare const HOUR_MS = 3600000;
|
|
3
|
+
export interface TimeTick {
|
|
4
|
+
label: string;
|
|
5
|
+
position: number;
|
|
6
|
+
}
|
|
7
|
+
/** Posicao no eixo: em `calendar`, milissegundos desde a epoca; em `dayHours`, a hora decimal do dia. */
|
|
8
|
+
export declare function toPosition(time: ChartTimelineTime, scale: ChartTimelineScale): number;
|
|
9
|
+
/** A posicao como `Date`, para os formatadores do consumidor. Em `dayHours` a data e indiferente: vale a hora. */
|
|
10
|
+
export declare function toDate(position: number, scale: ChartTimelineScale): Date;
|
|
11
|
+
export declare function durationMs(start: number, end: number, scale: ChartTimelineScale): number;
|
|
12
|
+
/** Faixa automatica: do primeiro ao ultimo instante, arredondada a hora ou ao dia, com uma unidade no minimo. */
|
|
13
|
+
export declare function autoDomain(positions: readonly number[], scale: ChartTimelineScale): [number, number];
|
|
14
|
+
/** Instante no balao e na tabela: `07:12` em horas do dia; `05/10 14:00`, ou so `05/10` a meia-noite, em datas. */
|
|
15
|
+
export declare function formatPosition(position: number, scale: ChartTimelineScale): string;
|
|
16
|
+
export declare function timeTicks(domain: readonly [number, number], scale: ChartTimelineScale, width: number, formatTick?: (time: Date) => string): TimeTick[];
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { ChartTooltipProps } from '../ChartTooltip/index.js';
|
|
2
|
+
import type { ChartTimelineGroup, ChartTimelineMarker, ChartTimelineRow } from './ChartTimeline.js';
|
|
3
|
+
import type { TimelineRange, TimelineSegment } from './timelineLayout.js';
|
|
4
|
+
export interface TimelineMarker extends ChartTimelineMarker {
|
|
5
|
+
position: number;
|
|
6
|
+
}
|
|
7
|
+
export interface TimelineRowBand extends TimelineRange {
|
|
8
|
+
row: string;
|
|
9
|
+
series: string;
|
|
10
|
+
}
|
|
11
|
+
/** O que esta sob o ponteiro. Cada caso carrega o que o balao dele precisa. */
|
|
12
|
+
export type TimelineTarget = {
|
|
13
|
+
clip: string | undefined;
|
|
14
|
+
kind: 'segment';
|
|
15
|
+
row: ChartTimelineRow;
|
|
16
|
+
segment: TimelineSegment;
|
|
17
|
+
} | {
|
|
18
|
+
kind: 'marker';
|
|
19
|
+
marker: TimelineMarker;
|
|
20
|
+
row: ChartTimelineRow;
|
|
21
|
+
} | {
|
|
22
|
+
collapsed: boolean;
|
|
23
|
+
group: ChartTimelineGroup;
|
|
24
|
+
kind: 'group';
|
|
25
|
+
rowCount: number;
|
|
26
|
+
segments: readonly TimelineSegment[];
|
|
27
|
+
} | {
|
|
28
|
+
/** A linha nao tem intervalo algum, de nenhuma serie. */
|
|
29
|
+
empty: boolean;
|
|
30
|
+
kind: 'row';
|
|
31
|
+
row: ChartTimelineRow;
|
|
32
|
+
rowBands: readonly TimelineRowBand[];
|
|
33
|
+
segments: readonly TimelineSegment[];
|
|
34
|
+
};
|
|
35
|
+
export interface TimelineTooltipOptions {
|
|
36
|
+
colorOf: (series: string) => string | undefined;
|
|
37
|
+
duration: (range: TimelineRange) => number;
|
|
38
|
+
emptyRowLabel: string;
|
|
39
|
+
formatDuration: (durationMs: number) => string;
|
|
40
|
+
formatInstant: (position: number) => string;
|
|
41
|
+
seriesOrder: readonly string[];
|
|
42
|
+
showProgress: boolean;
|
|
43
|
+
}
|
|
44
|
+
export type TimelineTooltip = Omit<ChartTooltipProps, 'children'>;
|
|
45
|
+
export declare function timelineTooltip(target: TimelineTarget | null, options: TimelineTooltipOptions): TimelineTooltip;
|
|
@@ -3,6 +3,8 @@ export interface ChartTooltipRow {
|
|
|
3
3
|
color?: string;
|
|
4
4
|
/** Realca a linha, como a serie sob o ponteiro entre as demais. */
|
|
5
5
|
emphasis?: boolean;
|
|
6
|
+
/** Formato dos valores desta linha, quando difere do da coluna, como a serie do eixo da direita. */
|
|
7
|
+
format?: (value: number) => string;
|
|
6
8
|
label: string;
|
|
7
9
|
values: readonly number[];
|
|
8
10
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ChartHeight, type ChartLegendAlign, type ChartLegendPosition } from '../core/index.js';
|
|
1
|
+
import { type ChartHeight, type ChartHoveredNode, type ChartLegendAlign, type ChartLegendPosition } from '../core/index.js';
|
|
2
2
|
import { type SeriesAppearance, type SeriesIntent } from '../palette/index.js';
|
|
3
3
|
export interface ChartTreemapNode extends SeriesAppearance {
|
|
4
4
|
children?: readonly ChartTreemapNode[];
|
|
@@ -9,6 +9,8 @@ export interface ChartTreemapProps {
|
|
|
9
9
|
accent?: string;
|
|
10
10
|
defaultHiddenGroups?: readonly string[];
|
|
11
11
|
emptyMessage?: string;
|
|
12
|
+
/** Formato dos valores no balao. Sem ele, vale o `formatValue`: o eixo pode sair compacto e o balao, exato. */
|
|
13
|
+
formatTooltipValue?: (value: number) => string;
|
|
12
14
|
formatValue?: (value: number) => string;
|
|
13
15
|
/** Folga entre dois retangulos vizinhos. */
|
|
14
16
|
gap?: number;
|
|
@@ -24,7 +26,14 @@ export interface ChartTreemapProps {
|
|
|
24
26
|
legendAlign?: ChartLegendAlign;
|
|
25
27
|
nodes: readonly ChartTreemapNode[];
|
|
26
28
|
onHiddenGroupsChange?: (hidden: readonly string[]) => void;
|
|
29
|
+
/** Caminho ate o no sob o ponteiro, do grupo ao no, cada nivel com o valor somado, ou `null` ao sair. */
|
|
30
|
+
onHoverNode?: (path: readonly ChartHoveredNode[] | null) => void;
|
|
27
31
|
showDataLabels?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Balao com o caminho ate o no sob o ponteiro. Desligue para montar o proprio `ChartTooltip`
|
|
34
|
+
* pela costura; sem balao nem costura, o no volta a ter o `<title>`.
|
|
35
|
+
*/
|
|
36
|
+
showTooltip?: boolean;
|
|
28
37
|
title: string;
|
|
29
38
|
}
|
|
30
|
-
export declare function ChartTreemap({ accent, defaultHiddenGroups, emptyMessage, formatValue, gap, height, hiddenGroups, intentLabels, legend, legendAlign, nodes, onHiddenGroupsChange, showDataLabels, title, }: ChartTreemapProps): import("react").JSX.Element;
|
|
39
|
+
export declare function ChartTreemap({ accent, defaultHiddenGroups, emptyMessage, formatTooltipValue, formatValue, gap, height, hiddenGroups, intentLabels, legend, legendAlign, nodes, onHiddenGroupsChange, onHoverNode, showDataLabels, showTooltip, title, }: ChartTreemapProps): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AxisLabelAngle, type AxisVisibility, type ChartHeight } from '../core/index.js';
|
|
1
|
+
import { type AxisLabelAngle, type AxisVisibility, type MarkVisibility, type ChartHeight } from '../core/index.js';
|
|
2
2
|
import { type SeriesIntent } from '../palette/index.js';
|
|
3
3
|
export interface ChartWaterfallStep {
|
|
4
4
|
color?: string;
|
|
@@ -9,16 +9,21 @@ export interface ChartWaterfallStep {
|
|
|
9
9
|
}
|
|
10
10
|
export interface ChartWaterfallProps {
|
|
11
11
|
emptyMessage?: string;
|
|
12
|
+
/** Formato dos valores no balao. Sem ele, vale o `formatValue`: o eixo pode sair compacto e o balao, exato. */
|
|
13
|
+
formatTooltipValue?: (value: number) => string;
|
|
12
14
|
formatValue?: (value: number) => string;
|
|
13
15
|
height?: ChartHeight;
|
|
14
16
|
labelAngle?: AxisLabelAngle;
|
|
15
17
|
/** Indice do passo sob o ponteiro, ou `null` ao sair dele. */
|
|
16
18
|
onHoverStep?: (index: number | null) => void;
|
|
17
|
-
|
|
19
|
+
/** Variacao acima de cada passo. Em `onHover`, so a do passo sob o ponteiro. */
|
|
20
|
+
showDataLabels?: MarkVisibility;
|
|
21
|
+
/** Balao com a variacao do passo sob o ponteiro e o acumulado ate ele. Desligue para montar o proprio `ChartTooltip`. */
|
|
22
|
+
showTooltip?: boolean;
|
|
18
23
|
steps: readonly ChartWaterfallStep[];
|
|
19
24
|
title: string;
|
|
20
25
|
xAxis?: AxisVisibility;
|
|
21
26
|
yAxis?: AxisVisibility;
|
|
22
27
|
yAxisRight?: AxisVisibility;
|
|
23
28
|
}
|
|
24
|
-
export declare function ChartWaterfall({ emptyMessage, formatValue, height, labelAngle, onHoverStep, showDataLabels, steps, title, xAxis, yAxis, yAxisRight, }: ChartWaterfallProps): import("react").JSX.Element;
|
|
29
|
+
export declare function ChartWaterfall({ emptyMessage, formatTooltipValue, formatValue, height, labelAngle, onHoverStep, showDataLabels, showTooltip, steps, title, xAxis, yAxis, yAxisRight, }: ChartWaterfallProps): import("react").JSX.Element;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import { type AxisTick } from './Axis.js';
|
|
3
3
|
import type { ChartLegendAlign, ChartLegendEntry, ChartLegendPosition } from './ChartLegend.js';
|
|
4
|
+
import type { ChartFrameProps } from './ChartFrame.js';
|
|
4
5
|
import { type GridOrientation } from './Grid.js';
|
|
5
6
|
import type { AxisLabelRotation, AxisVisibility, ChartMargins, ChartPlot } from './cartesianLayout.js';
|
|
7
|
+
import type { AxisReveal } from './useCartesianLayout.js';
|
|
6
8
|
export interface CartesianAxis {
|
|
7
9
|
hideLine?: boolean;
|
|
8
10
|
labelRotation?: AxisLabelRotation;
|
|
@@ -15,6 +17,8 @@ export interface CartesianGrid {
|
|
|
15
17
|
orientation: GridOrientation;
|
|
16
18
|
}
|
|
17
19
|
export interface CartesianFrameProps {
|
|
20
|
+
/** Estado e gatilhos dos eixos `onHover`, vindos de `useCartesianLayout`. */
|
|
21
|
+
axisReveal?: AxisReveal;
|
|
18
22
|
children: ReactNode;
|
|
19
23
|
containerRef: (node: HTMLElement | null) => void;
|
|
20
24
|
empty: boolean;
|
|
@@ -29,6 +33,7 @@ export interface CartesianFrameProps {
|
|
|
29
33
|
onToggleSeries?: (label: string) => void;
|
|
30
34
|
plot: ChartPlot;
|
|
31
35
|
title: string;
|
|
36
|
+
tooltip?: ChartFrameProps['tooltip'];
|
|
32
37
|
width: number;
|
|
33
38
|
xAxis: CartesianAxis;
|
|
34
39
|
yAxis: CartesianAxis;
|
|
@@ -38,4 +43,4 @@ export interface CartesianFrameProps {
|
|
|
38
43
|
* Camada cartesiana sobre a moldura comum: grade, os dois eixos e as marcas,
|
|
39
44
|
* todos dentro das margens ja calculadas a partir dos rotulos.
|
|
40
45
|
*/
|
|
41
|
-
export declare function CartesianFrame({ children, containerRef, empty, emptyMessage, fillHeight, grid, height, legend, legendAlign, legendPosition, margins, onToggleSeries, plot, title, width, xAxis, yAxis, yAxisRight, }: CartesianFrameProps): import("react").JSX.Element;
|
|
46
|
+
export declare function CartesianFrame({ axisReveal, children, containerRef, empty, emptyMessage, fillHeight, grid, height, legend, legendAlign, legendPosition, margins, onToggleSeries, plot, title, tooltip, width, xAxis, yAxis, yAxisRight, }: CartesianFrameProps): import("react").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import { type ChartLegendAlign, type ChartLegendEntry, type ChartLegendPosition, type ChartLegendSwatch } from './ChartLegend.js';
|
|
3
|
+
import { type ChartTooltipProps } from '../ChartTooltip/ChartTooltip.js';
|
|
3
4
|
export interface ChartFrameProps {
|
|
4
5
|
/** Marcas do grafico, em coordenadas da area de desenho. */
|
|
5
6
|
children: ReactNode;
|
|
@@ -18,9 +19,14 @@ export interface ChartFrameProps {
|
|
|
18
19
|
legendPosition: ChartLegendPosition;
|
|
19
20
|
/** A partir de quantas entradas a legenda aparece. */
|
|
20
21
|
minLegendEntries?: number;
|
|
22
|
+
/** Ponteiro entrando e saindo da area de desenho, para quem revela os eixos `onHover`. */
|
|
23
|
+
onPointerEnter?: () => void;
|
|
24
|
+
onPointerLeave?: () => void;
|
|
21
25
|
onToggleSeries?: (label: string) => void;
|
|
22
26
|
swatch?: ChartLegendSwatch;
|
|
23
27
|
title: string;
|
|
28
|
+
/** O balao do que esta sob o ponteiro, montado pelo grafico. Sem linhas, nao aparece. */
|
|
29
|
+
tooltip?: Omit<ChartTooltipProps, 'children'>;
|
|
24
30
|
width: number;
|
|
25
31
|
}
|
|
26
32
|
/**
|
|
@@ -28,4 +34,4 @@ export interface ChartFrameProps {
|
|
|
28
34
|
* O que muda entre as familias e o que se desenha dentro dela — eixos, aneis ou
|
|
29
35
|
* a area inteira —, e nao o cerco, que era o mesmo repetido tres vezes.
|
|
30
36
|
*/
|
|
31
|
-
export declare function ChartFrame({ children, centerOrigin, containerRef, empty, emptyMessage, fillHeight, height, legend, legendAlign, legendPosition, minLegendEntries, onToggleSeries, swatch, title, width, }: ChartFrameProps): import("react").JSX.Element;
|
|
37
|
+
export declare function ChartFrame({ children, centerOrigin, containerRef, empty, emptyMessage, fillHeight, height, legend, legendAlign, legendPosition, minLegendEntries, onPointerEnter, onPointerLeave, onToggleSeries, swatch, title, tooltip, width, }: ChartFrameProps): import("react").JSX.Element;
|
|
@@ -12,6 +12,8 @@ export type ChartLegendAlign = 'left' | 'center' | 'right';
|
|
|
12
12
|
interface ChartLegendProps {
|
|
13
13
|
align?: ChartLegendAlign;
|
|
14
14
|
entries: readonly ChartLegendEntry[];
|
|
15
|
+
/** Entrada sob o ponteiro ou o foco, para o grafico destacar o que ela representa; `null` ao sair. */
|
|
16
|
+
onHighlight?: (label: string | null) => void;
|
|
15
17
|
onToggle?: (label: string) => void;
|
|
16
18
|
position: ChartLegendPosition;
|
|
17
19
|
swatch?: ChartLegendSwatch;
|
|
@@ -20,5 +22,5 @@ interface ChartLegendProps {
|
|
|
20
22
|
* Legenda do grafico. Quando existe um alvo para o clique, cada entrada vira um
|
|
21
23
|
* botao que liga e desliga a serie, com o estado exposto por `aria-pressed`.
|
|
22
24
|
*/
|
|
23
|
-
export declare function ChartLegend({ align, entries, onToggle, position, swatch, }: ChartLegendProps): import("react").JSX.Element;
|
|
25
|
+
export declare function ChartLegend({ align, entries, onHighlight, onToggle, position, swatch, }: ChartLegendProps): import("react").JSX.Element;
|
|
24
26
|
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ChartPlot } from './cartesianLayout.js';
|
|
2
|
+
import type { ChartPoint } from './shapes.js';
|
|
3
|
+
export interface PointBandsProps {
|
|
4
|
+
onHover: (index: number | null) => void;
|
|
5
|
+
/** Altura do ponteiro na area de desenho, para quem escolhe a serie mais proxima dele. */
|
|
6
|
+
onPointerY?: (y: number | null) => void;
|
|
7
|
+
plot: ChartPlot;
|
|
8
|
+
/** Posicao de cada categoria no eixo, na ordem das categorias. */
|
|
9
|
+
positions: readonly number[];
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Faixas invisiveis sobre a area de desenho, uma por categoria, que vao do ponto
|
|
13
|
+
* ate o meio do caminho para cada vizinho: o ponteiro sempre cai no ponto mais proximo.
|
|
14
|
+
*/
|
|
15
|
+
export declare function PointBands({ onHover, onPointerY, plot, positions }: PointBandsProps): import("react").JSX.Element;
|
|
16
|
+
/** Guia vertical no ponto sob o ponteiro, atras das marcas. */
|
|
17
|
+
export declare function PointCursor({ plot, position }: {
|
|
18
|
+
plot: ChartPlot;
|
|
19
|
+
position: number;
|
|
20
|
+
}): import("react").JSX.Element;
|
|
21
|
+
/** A serie visivel com ponto na categoria cujo ponto fica mais perto da altura do ponteiro. */
|
|
22
|
+
export declare function nearestSeriesAt(pointsBySeries: readonly (readonly (ChartPoint | null)[])[], category: number | null, y: number | null, isHidden: (seriesIndex: number) => boolean): null;
|
|
@@ -3,11 +3,15 @@ import { type NumericRange } from '../scales/index.js';
|
|
|
3
3
|
export type AxisLabelRotation = 0 | 45 | 90;
|
|
4
4
|
export type AxisLabelAngle = AxisLabelRotation | 'auto';
|
|
5
5
|
/**
|
|
6
|
-
* Como o eixo se mostra. `onHover` reserva a calha
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* Como o eixo se mostra. `onHover` nao reserva a calha: o desenho ocupa o espaco
|
|
7
|
+
* todo e, depois de um instante com o ponteiro sobre o grafico, encolhe para o
|
|
8
|
+
* eixo entrar; `hidden` dispensa o eixo de vez.
|
|
9
9
|
*/
|
|
10
10
|
export type AxisVisibility = 'visible' | 'hidden' | 'onHover';
|
|
11
|
+
/** Como pontos e rotulos de valor se mostram. `onHover` mostra os da serie sob o ponteiro, e so eles. */
|
|
12
|
+
export type MarkVisibility = 'visible' | 'hidden' | 'onHover';
|
|
13
|
+
/** Se a marca da serie aparece: sempre, nunca, ou so com a serie sob o ponteiro. */
|
|
14
|
+
export declare function markShown(visibility: MarkVisibility, seriesFocused: boolean): boolean;
|
|
11
15
|
/** Altura do desenho: um numero fixa, `fill` entrega a decisao ao contêiner. */
|
|
12
16
|
export type ChartHeight = number | 'fill';
|
|
13
17
|
export interface ResolvedHeight {
|
|
@@ -36,6 +40,8 @@ export interface CartesianLayoutOptions {
|
|
|
36
40
|
height: number;
|
|
37
41
|
labelAngle: AxisLabelAngle;
|
|
38
42
|
leftLabels: readonly string[];
|
|
43
|
+
/** Os eixos `onHover` estao a vista e ocupam a calha. */
|
|
44
|
+
revealed?: boolean;
|
|
39
45
|
rightLabels: readonly string[];
|
|
40
46
|
topRoom: number;
|
|
41
47
|
width: number;
|
|
@@ -60,7 +66,7 @@ export declare function bottomLabelRotation(labels: readonly string[], font: Lab
|
|
|
60
66
|
* util define o passo entre categorias, o passo define o angulo dos rotulos e o
|
|
61
67
|
* angulo define a altura que eles ocupam embaixo.
|
|
62
68
|
*/
|
|
63
|
-
export declare function cartesianLayout({ bottomLabels, font, height, labelAngle, leftLabels, rightLabels, topRoom, width, xAxis, yAxis, yAxisRight, }: CartesianLayoutOptions): CartesianLayout;
|
|
69
|
+
export declare function cartesianLayout({ bottomLabels, font, height, labelAngle, leftLabels, revealed, rightLabels, topRoom, width, xAxis, yAxis, yAxisRight, }: CartesianLayoutOptions): CartesianLayout;
|
|
64
70
|
/**
|
|
65
71
|
* Rotulos de valor usados apenas para medir a calha do eixo, antes de a area de
|
|
66
72
|
* desenho existir. Eles saem da altura total em vez da altura util, o que pode
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { HierarchyNode } from 'd3-hierarchy';
|
|
2
|
+
/** Um nivel do caminho ate o no sob o ponteiro, com o valor somado daquele nivel. */
|
|
3
|
+
export interface ChartHoveredNode {
|
|
4
|
+
label: string;
|
|
5
|
+
value: number;
|
|
6
|
+
}
|
|
7
|
+
/** Caminho do grupo de topo ate o no, sem a raiz que o layout cria por fora. */
|
|
8
|
+
export declare function hoverPath(node: HierarchyNode<{
|
|
9
|
+
label: string;
|
|
10
|
+
}>): ChartHoveredNode[];
|