@plenustech/design-system 0.2.2 → 0.2.3
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/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/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/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/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/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/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.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/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 +184 -122
- 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/ChartLine/ChartLine.d.ts +15 -4
- 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/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/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/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/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/overlays/Dialog/Dialog.d.ts +2 -2
- package/dist/types/components/overlays/Dialog/DialogFrame.d.ts +7 -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 +35 -7
- 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 +3 -1
- 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 +1 -1
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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[];
|
|
@@ -2,10 +2,18 @@ export { BandCursor } from './BandCursor.js';
|
|
|
2
2
|
export type { BandCursorProps, BandOrientation } from './BandCursor.js';
|
|
3
3
|
export { Axis } from './Axis.js';
|
|
4
4
|
export type { AxisOrientation, AxisProps, AxisTick } from './Axis.js';
|
|
5
|
+
export { nearestSeriesAt, PointBands, PointCursor } from './PointBands.js';
|
|
6
|
+
export { pointLabelPlacement } from './pointLabels.js';
|
|
7
|
+
export type { PointLabelPlacement } from './pointLabels.js';
|
|
8
|
+
export type { PointBandsProps } from './PointBands.js';
|
|
9
|
+
export { categoryTooltip, pathTooltip, sliceTooltip } from './tooltips.js';
|
|
10
|
+
export type { CategoryTooltipOptions, CategoryTooltipSeries, ChartFrameTooltip, PathTooltipOptions, SliceTooltipOptions } from './tooltips.js';
|
|
11
|
+
export { hoverPath } from './hoverPath.js';
|
|
12
|
+
export type { ChartHoveredNode } from './hoverPath.js';
|
|
5
13
|
export { Grid } from './Grid.js';
|
|
6
14
|
export type { GridOrientation, GridProps } from './Grid.js';
|
|
7
|
-
export { bottomLabelRotation, cartesianLayout, chartHeight, valueLabelsFor, } from './cartesianLayout.js';
|
|
8
|
-
export type { AxisLabelAngle, AxisLabelRotation, AxisVisibility, CartesianLayout, CartesianLayoutOptions, ChartHeight, ChartMargins, ChartPlot, ResolvedHeight, } from './cartesianLayout.js';
|
|
15
|
+
export { bottomLabelRotation, cartesianLayout, chartHeight, markShown, valueLabelsFor, } from './cartesianLayout.js';
|
|
16
|
+
export type { AxisLabelAngle, AxisLabelRotation, AxisVisibility, CartesianLayout, CartesianLayoutOptions, ChartHeight, ChartMargins, ChartPlot, MarkVisibility, ResolvedHeight, } from './cartesianLayout.js';
|
|
9
17
|
export { arcAnchor, arcCentroid, arcPath, sliceAngles, VOLTA } from './arcs.js';
|
|
10
18
|
export type { ArcAngles, ArcShape, SliceAnglesOptions } from './arcs.js';
|
|
11
19
|
export { centerTextRadius, fitCenterText } from './centerText.js';
|
|
@@ -24,11 +32,13 @@ export { areaPath, linePath, roundedBarPath } from './shapes.js';
|
|
|
24
32
|
export { groupSmallSlices } from './slices.js';
|
|
25
33
|
export type { ChartSlice, GroupSmallSlicesOptions } from './slices.js';
|
|
26
34
|
export type { ChartBand, ChartCurve, ChartPoint, CornerRadii } from './shapes.js';
|
|
35
|
+
export { useCartesianLayout } from './useCartesianLayout.js';
|
|
36
|
+
export type { AxisReveal } from './useCartesianLayout.js';
|
|
27
37
|
export { useChartMetrics } from './useChartMetrics.js';
|
|
28
38
|
export type { ChartMetrics } from './useChartMetrics.js';
|
|
29
39
|
export { useHoveredBand } from './useHoveredBand.js';
|
|
30
40
|
export type { HoveredBand } from './useHoveredBand.js';
|
|
31
|
-
export { useSeriesToggle } from './useSeriesToggle.js';
|
|
41
|
+
export { seriesInScale, useSeriesToggle } from './useSeriesToggle.js';
|
|
32
42
|
export type { SeriesToggle, UseSeriesToggleOptions } from './useSeriesToggle.js';
|
|
33
43
|
export { useSliceRing } from './useSliceRing.js';
|
|
34
44
|
export type { SliceRing, UseSliceRingOptions } from './useSliceRing.js';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ChartPoint } from './shapes.js';
|
|
2
|
+
export interface PointLabelPlacement {
|
|
3
|
+
/** Abaixo do ponto, quando outra serie tem ponto logo acima na mesma categoria. */
|
|
4
|
+
below: boolean;
|
|
5
|
+
/** Afastamento horizontal do ponto: nas pontas, o rotulo sai de lado para nao encostar no marcador. */
|
|
6
|
+
dx: number;
|
|
7
|
+
textAnchor: 'start' | 'middle' | 'end';
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Onde vai o rotulo de um ponto. Nas pontas ele se alinha para dentro, para nao cobrir os numeros do eixo; e,
|
|
11
|
+
* quando o rotulo de uma serie alcancaria o ponto de outra logo acima, na mesma categoria, ele desce para baixo do ponto.
|
|
12
|
+
*/
|
|
13
|
+
export declare function pointLabelPlacement(pointsBySeries: readonly (readonly (ChartPoint | null)[])[], series: number, category: number, lineHeight: number, isHidden: (seriesIndex: number) => boolean): PointLabelPlacement;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { ChartFrameProps } from './ChartFrame.js';
|
|
2
|
+
import type { ChartHoveredNode } from './hoverPath.js';
|
|
3
|
+
export type ChartFrameTooltip = NonNullable<ChartFrameProps['tooltip']>;
|
|
4
|
+
export interface CategoryTooltipSeries {
|
|
5
|
+
/** Formato desta serie, quando difere do grafico, como a do eixo da direita. */
|
|
6
|
+
format?: (value: number) => string;
|
|
7
|
+
label: string;
|
|
8
|
+
values: readonly (number | null)[];
|
|
9
|
+
}
|
|
10
|
+
export interface CategoryTooltipOptions {
|
|
11
|
+
categories: readonly string[];
|
|
12
|
+
colors: readonly string[];
|
|
13
|
+
format: (value: number) => string;
|
|
14
|
+
/** Categoria sob o ponteiro; `null` deixa o balao sem linhas, e ele nao aparece. */
|
|
15
|
+
index: number | null;
|
|
16
|
+
isHidden: (label: string) => boolean;
|
|
17
|
+
series: readonly CategoryTooltipSeries[];
|
|
18
|
+
/** Soma das series na ultima linha, para a pilha. */
|
|
19
|
+
showTotal?: boolean;
|
|
20
|
+
}
|
|
21
|
+
/** Balao dos graficos de categoria: uma linha por serie visivel, com a cor dela e o valor naquela categoria. */
|
|
22
|
+
export declare function categoryTooltip({ categories, colors, format, index, isHidden, series, showTotal, }: CategoryTooltipOptions): ChartFrameTooltip;
|
|
23
|
+
export interface SliceTooltipOptions {
|
|
24
|
+
colors: readonly string[];
|
|
25
|
+
formatPercent: (ratio: number) => string;
|
|
26
|
+
formatValue: (value: number) => string;
|
|
27
|
+
/** Fatia sob o ponteiro; `null` deixa o balao sem linhas. */
|
|
28
|
+
index: number | null;
|
|
29
|
+
slices: readonly {
|
|
30
|
+
label: string;
|
|
31
|
+
value: number;
|
|
32
|
+
}[];
|
|
33
|
+
/** Soma das fatias ligadas, base da porcentagem. */
|
|
34
|
+
total: number;
|
|
35
|
+
}
|
|
36
|
+
/** Balao do anel: a fatia sob o ponteiro, com o valor e a parte do total. */
|
|
37
|
+
export declare function sliceTooltip({ colors, formatPercent, formatValue, index, slices, total }: SliceTooltipOptions): ChartFrameTooltip;
|
|
38
|
+
export interface PathTooltipOptions {
|
|
39
|
+
/** Cor do no sob o ponteiro. */
|
|
40
|
+
color?: string;
|
|
41
|
+
format: (value: number) => string;
|
|
42
|
+
/** Com ele, cada nivel mostra tambem a parte do total. */
|
|
43
|
+
formatPercent?: (ratio: number) => string;
|
|
44
|
+
/** Caminho do grupo ate o no; `null` deixa o balao sem linhas. */
|
|
45
|
+
path: readonly ChartHoveredNode[] | null;
|
|
46
|
+
total?: number;
|
|
47
|
+
}
|
|
48
|
+
/** Balao dos hierarquicos: uma linha por nivel do caminho, com o no sob o ponteiro em destaque. */
|
|
49
|
+
export declare function pathTooltip({ color, format, formatPercent, path, total }: PathTooltipOptions): ChartFrameTooltip;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type CartesianLayoutOptions, type ChartMargins } from './cartesianLayout.js';
|
|
2
|
+
export interface AxisReveal {
|
|
3
|
+
onPointerEnter: () => void;
|
|
4
|
+
onPointerLeave: () => void;
|
|
5
|
+
revealed: boolean;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Layout cartesiano com os eixos `onHover`. Sem eles revelados, o desenho ocupa
|
|
9
|
+
* o espaco todo; revelados, ele encolhe ate as calhas, numa transicao so. Dado
|
|
10
|
+
* ou tamanho que mudam reposicionam na hora: o que anima e a revelacao.
|
|
11
|
+
*/
|
|
12
|
+
export declare function useCartesianLayout(options: Omit<CartesianLayoutOptions, 'revealed'>): {
|
|
13
|
+
axisReveal: AxisReveal;
|
|
14
|
+
margins: ChartMargins;
|
|
15
|
+
plot: {
|
|
16
|
+
height: number;
|
|
17
|
+
width: number;
|
|
18
|
+
};
|
|
19
|
+
rotation: import("./cartesianLayout").AxisLabelRotation;
|
|
20
|
+
};
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
export interface UseSeriesToggleOptions {
|
|
2
2
|
defaultHiddenSeries?: readonly string[];
|
|
3
3
|
hiddenSeries?: readonly string[];
|
|
4
|
+
/** Todos os rotulos; com eles, desligar a ultima serie mantem a escala de antes. */
|
|
5
|
+
labels?: readonly string[];
|
|
4
6
|
onHiddenSeriesChange?: (hidden: readonly string[]) => void;
|
|
5
7
|
}
|
|
6
8
|
export interface SeriesToggle {
|
|
7
9
|
isHidden: (label: string) => boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Se a serie fica fora da escala de valores. E o `isHidden` enquanto alguma esta ligada; com todas desligadas
|
|
12
|
+
* pela legenda, vale o que estava ligado antes da ultima sair, e a escala nao se mexe enquanto ela some.
|
|
13
|
+
*/
|
|
14
|
+
isOutOfScale: (label: string) => boolean;
|
|
8
15
|
toggle: (label: string) => void;
|
|
9
16
|
}
|
|
10
17
|
/**
|
|
@@ -13,4 +20,11 @@ export interface SeriesToggle {
|
|
|
13
20
|
* secao 6. Trabalha com rotulos porque e o rotulo que a legenda exibe e o que
|
|
14
21
|
* o produto reconhece; indices mudariam de significado ao reordenar as series.
|
|
15
22
|
*/
|
|
16
|
-
export declare function useSeriesToggle({ defaultHiddenSeries, hiddenSeries, onHiddenSeriesChange, }: UseSeriesToggleOptions): SeriesToggle;
|
|
23
|
+
export declare function useSeriesToggle({ defaultHiddenSeries, hiddenSeries, labels, onHiddenSeriesChange, }: UseSeriesToggleOptions): SeriesToggle;
|
|
24
|
+
/**
|
|
25
|
+
* Series que entram na escala de valores, ou todas quando nenhuma entra. Sem isso a escala desabava ao
|
|
26
|
+
* desligar a ultima, e ela saia esticada para fora do grafico em vez de encolher no lugar.
|
|
27
|
+
*/
|
|
28
|
+
export declare function seriesInScale<T extends {
|
|
29
|
+
label: string;
|
|
30
|
+
}>(series: readonly T[], isHidden: (label: string) => boolean): readonly T[];
|
|
@@ -2,10 +2,13 @@ import { type ComponentPropsWithRef, type ReactNode } from 'react';
|
|
|
2
2
|
export interface AccordionItem {
|
|
3
3
|
content: ReactNode;
|
|
4
4
|
disabled?: boolean;
|
|
5
|
+
/** Id do cabecalho, para um link de ancora apontar a secao. */
|
|
6
|
+
id?: string;
|
|
5
7
|
key: string;
|
|
6
8
|
label: string;
|
|
7
9
|
}
|
|
8
10
|
export type AccordionIconPosition = 'left' | 'right';
|
|
11
|
+
export type AccordionHeadingLevel = 2 | 3 | 4 | 5 | 6;
|
|
9
12
|
export interface AccordionProps extends ComponentPropsWithRef<'div'> {
|
|
10
13
|
defaultExpandedKeys?: readonly string[];
|
|
11
14
|
expandedKeys?: readonly string[];
|
|
@@ -16,5 +19,7 @@ export interface AccordionProps extends ComponentPropsWithRef<'div'> {
|
|
|
16
19
|
iconPosition?: AccordionIconPosition;
|
|
17
20
|
/** Divisor entre as secoes, com a folga que ele exige. */
|
|
18
21
|
divider?: boolean;
|
|
22
|
+
/** Nivel do titulo de cada secao, na hierarquia da pagina em que o acordeao esta. */
|
|
23
|
+
headingLevel?: AccordionHeadingLevel;
|
|
19
24
|
}
|
|
20
|
-
export declare function Accordion({ className, defaultExpandedKeys, expandedKeys, items, multiple, onExpandedChange, iconPosition, divider, ...props }: AccordionProps): import("react").JSX.Element;
|
|
25
|
+
export declare function Accordion({ className, defaultExpandedKeys, expandedKeys, items, multiple, onExpandedChange, iconPosition, divider, headingLevel, ...props }: AccordionProps): import("react").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Accordion } from './Accordion.js';
|
|
2
|
-
export type { AccordionProps, AccordionItem, AccordionIconPosition } from './Accordion.js';
|
|
2
|
+
export type { AccordionHeadingLevel, AccordionProps, AccordionItem, AccordionIconPosition } from './Accordion.js';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type ComponentPropsWithRef, type ReactNode } from 'react';
|
|
2
|
+
export interface SortableListItem {
|
|
3
|
+
/** Ações da linha, como `ButtonIcon`: alcançadas pelas setas para os lados. */
|
|
4
|
+
actions?: ReactNode;
|
|
5
|
+
excerpt?: string;
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
key: string;
|
|
8
|
+
/** Nível de aninhamento, a partir de 1. Só recua a linha. */
|
|
9
|
+
level?: number;
|
|
10
|
+
title: string;
|
|
11
|
+
}
|
|
12
|
+
export interface SortableListProps extends Omit<ComponentPropsWithRef<'div'>, 'children' | 'onKeyDown'> {
|
|
13
|
+
defaultSelectedKey?: string;
|
|
14
|
+
items: readonly SortableListItem[];
|
|
15
|
+
/** Nome da lista, para o leitor de tela. */
|
|
16
|
+
label: string;
|
|
17
|
+
onReorder: (fromIndex: number, toIndex: number) => void;
|
|
18
|
+
onSelectionChange?: (key: string) => void;
|
|
19
|
+
/** `null` deixa a lista controlada sem nenhum item escolhido. */
|
|
20
|
+
selectedKey?: string | null;
|
|
21
|
+
}
|
|
22
|
+
export declare function SortableList({ className, defaultSelectedKey, items, label, onReorder, onSelectionChange, selectedKey, ...props }: SortableListProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
export type TagSize = 'sm' | 'md';
|
|
3
|
+
export interface TagProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'children'> {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
/** Mostra o botao de remover, nomeado como "Remover" seguido do texto da etiqueta. */
|
|
7
|
+
onRemove?: () => void;
|
|
8
|
+
/** Com `selected`, a etiqueta vira um botao de alternar, como o filtro que se liga e desliga. */
|
|
9
|
+
onSelectedChange?: (selected: boolean) => void;
|
|
10
|
+
selected?: boolean;
|
|
11
|
+
size?: TagSize;
|
|
12
|
+
}
|
|
13
|
+
export declare function Tag({ children, className, disabled, onRemove, onSelectedChange, selected, size, ...props }: TagProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ComponentPropsWithRef } from 'react';
|
|
2
|
+
export interface TimelineItem {
|
|
3
|
+
date?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
key: string;
|
|
6
|
+
label: string;
|
|
7
|
+
}
|
|
8
|
+
export interface TimelineProps extends Omit<ComponentPropsWithRef<'ol'>, 'children'> {
|
|
9
|
+
/** Chave do estado atual. Os anteriores contam como concluídos, os seguintes como por vir. */
|
|
10
|
+
current: string;
|
|
11
|
+
items: readonly TimelineItem[];
|
|
12
|
+
/** Nome da lista, para o leitor de tela. */
|
|
13
|
+
label: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function Timeline({ className, current, items, label, ...props }: TimelineProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
export type SkeletonShape = 'line' | 'circle' | 'block';
|
|
3
|
+
export interface SkeletonProps extends HTMLAttributes<HTMLSpanElement> {
|
|
4
|
+
/** Numero em pixels ou qualquer medida CSS. Sem altura, cada forma tem a sua: linha de texto, avatar ou bloco. */
|
|
5
|
+
height?: number | string;
|
|
6
|
+
shape?: SkeletonShape;
|
|
7
|
+
width?: number | string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Lugar de um conteudo que ainda carrega. E decorativo e fica fora da leitura:
|
|
11
|
+
* quem envolve os esqueletos anuncia o carregamento, com `aria-busy` ou uma mensagem de status.
|
|
12
|
+
*/
|
|
13
|
+
export declare function Skeleton({ className, height, shape, style, width, ...props }: SkeletonProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { AlertTone } from '../Alert/index.js';
|
|
2
|
+
export type ToastTone = AlertTone;
|
|
3
|
+
export interface ToastAction {
|
|
4
|
+
label: string;
|
|
5
|
+
onClick: () => void;
|
|
6
|
+
}
|
|
7
|
+
export interface ToastOptions {
|
|
8
|
+
/** Botao unico de acao, como tentar de novo. Acionar fecha o aviso. */
|
|
9
|
+
action?: ToastAction;
|
|
10
|
+
description?: string;
|
|
11
|
+
/** Milissegundos ate sumir. `null` mantem ate a pessoa fechar; o padrao e 6s, e o erro fica. */
|
|
12
|
+
duration?: number | null;
|
|
13
|
+
title: string;
|
|
14
|
+
tone?: ToastTone;
|
|
15
|
+
}
|
|
16
|
+
export interface ToastEntry extends ToastOptions {
|
|
17
|
+
id: string;
|
|
18
|
+
}
|
|
19
|
+
/** Mostra um aviso no `ToastRegion` da pagina e devolve o id para fecha-lo antes do tempo. */
|
|
20
|
+
export declare function showToast(options: ToastOptions): string;
|
|
21
|
+
export declare function dismissToast(id: string): void;
|
|
22
|
+
export declare function subscribeToasts(listener: () => void): () => void;
|
|
23
|
+
export declare function getToasts(): ToastEntry[];
|
|
24
|
+
export declare function getServerToasts(): ToastEntry[];
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type ComponentPropsWithRef, type ReactNode } from 'react';
|
|
2
|
+
interface CheckboxGroupContextValue {
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
invalid: boolean;
|
|
5
|
+
name: string;
|
|
6
|
+
required: boolean;
|
|
7
|
+
toggle: (value: string, checked: boolean) => void;
|
|
8
|
+
values: readonly string[];
|
|
9
|
+
}
|
|
10
|
+
/** O `Checkbox` com `value` dentro de um grupo lê daqui o estado; fora dele, segue solto. */
|
|
11
|
+
export declare function useCheckboxGroup(): CheckboxGroupContextValue | null;
|
|
12
|
+
export type CheckboxGroupOrientation = 'vertical' | 'horizontal';
|
|
13
|
+
export interface CheckboxGroupProps extends Omit<ComponentPropsWithRef<'fieldset'>, 'defaultValue' | 'onChange'> {
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
defaultValue?: readonly string[];
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
error?: string;
|
|
18
|
+
hint?: string;
|
|
19
|
+
label: string;
|
|
20
|
+
name?: string;
|
|
21
|
+
onValueChange?: (values: string[]) => void;
|
|
22
|
+
orientation?: CheckboxGroupOrientation;
|
|
23
|
+
/** Exige ao menos uma caixa marcada no envio. */
|
|
24
|
+
required?: boolean;
|
|
25
|
+
value?: readonly string[];
|
|
26
|
+
}
|
|
27
|
+
export declare function CheckboxGroup({ 'aria-describedby': ariaDescribedBy, children, className, defaultValue, disabled, error, hint, label, name: providedName, onValueChange, orientation, ref, required, value, ...props }: CheckboxGroupProps): import("react").JSX.Element;
|
|
28
|
+
export {};
|