@selectwin/kit 0.1.119 → 0.1.120

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.
@@ -0,0 +1,19 @@
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ export interface SelectShareItem {
3
+ label: string;
4
+ value: number;
5
+ /** Segment + dot color (else the chart ramp, in order). */
6
+ color?: string;
7
+ /** Shown before the % in the legend (e.g. the amount). */
8
+ valueText?: ReactNode;
9
+ }
10
+ type SelectShareBarOwnProps = {
11
+ items: SelectShareItem[];
12
+ /** Small heading on the left, above the bar ("Por meio de pagamento"). */
13
+ label?: ReactNode;
14
+ /** Right side of that line (a total, a scope like "aprovado"). */
15
+ aside?: ReactNode;
16
+ };
17
+ export type SelectShareBarProps = SelectShareBarOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectShareBarOwnProps>;
18
+ export declare function SelectShareBar({ items, label, aside, className, ...rest }: SelectShareBarProps): import("react").JSX.Element | null;
19
+ export {};
package/dist/index.d.ts CHANGED
@@ -106,6 +106,7 @@ export { SelectComboChart } from './SelectComboChart';
106
106
  export { SelectDonut } from './SelectDonut';
107
107
  export { SelectColumnChart } from './SelectColumnChart';
108
108
  export { SelectChartLegend } from './SelectChartLegend';
109
+ export { SelectShareBar } from './SelectShareBar';
109
110
  export { SelectFunnel } from './SelectFunnel';
110
111
  export { SelectGauge } from './SelectGauge';
111
112
  export { SelectHeatmap } from './SelectHeatmap';
@@ -239,6 +240,7 @@ export type { SelectTagOption } from './SelectTagSelect';
239
240
  export type { SelectChartSeries, SelectBarDatum, SelectDonutSegment, SelectFunnelStage } from './chartUtils';
240
241
  export type { SelectColumnChartProps, SelectColumnTooltip } from './SelectColumnChart';
241
242
  export type { SelectChartLegendProps, SelectChartLegendItem } from './SelectChartLegend';
243
+ export type { SelectShareBarProps, SelectShareItem } from './SelectShareBar';
242
244
  export type { SelectHeatmapRow } from './SelectHeatmap';
243
245
  export type { SelectProgressItem } from './SelectProgressList';
244
246
  export type { SelectRadialSeries } from './SelectRadialBar';