@selectwin/kit 0.1.118 → 0.1.119

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.
@@ -4,11 +4,23 @@ export interface SelectBalanceBucket {
4
4
  cents: number | string | null | undefined;
5
5
  /** Optional icon embedded in the bucket's mini-card. */
6
6
  icon?: ReactNode;
7
+ /** One line of context under the amount (hero tiles only) — "Entra no disponível nos próximos dias". */
8
+ hint?: ReactNode;
9
+ }
10
+ /** One context number on the hero's strip ("Entra nos próximos 7 dias", "Último saque · 23/09"). */
11
+ export interface SelectBalanceMeta {
12
+ label: ReactNode;
13
+ /** Amount in CENTS (through SelectMoney → honors hide-values)… */
14
+ cents?: number | string | null;
15
+ /** …or any other content when the value isn't money (or the amount is null — else "—"). */
16
+ value?: ReactNode;
17
+ /** Sign/prefix drawn before the amount, e.g. "+ ". */
18
+ prefix?: string;
7
19
  }
8
20
  export interface SelectBalanceCardProps {
9
21
  availableCents: number | string | null | undefined;
10
22
  availableLabel?: string;
11
- /** Period-over-period variation of the available balance (percentage). */
23
+ /** Period-over-period variation of the available balance (percentage). `card` only. */
12
24
  delta?: number | null;
13
25
  buckets?: SelectBalanceBucket[];
14
26
  action?: {
@@ -16,6 +28,20 @@ export interface SelectBalanceCardProps {
16
28
  onAction: () => void;
17
29
  disabled?: boolean;
18
30
  loading?: boolean;
31
+ icon?: ReactNode;
32
+ };
33
+ /** `card` (default) or `hero` — see the file header. */
34
+ variant?: 'card' | 'hero';
35
+ /** hero: a quiet line under the amount — "Atualizado há 3 min". */
36
+ updatedLabel?: ReactNode;
37
+ /** hero: context numbers on a strip under the amount (2 read best; empty = no strip). */
38
+ meta?: SelectBalanceMeta[];
39
+ /** hero: state pill beside the action (e.g. the auto-cashout that is on). */
40
+ status?: {
41
+ label: ReactNode;
42
+ tone?: 'success' | 'warning' | 'neutral';
19
43
  };
44
+ /** hero: amounts become skeletons (the frame keeps its shape — swaps once when data lands). */
45
+ loading?: boolean;
20
46
  }
21
47
  export declare const SelectBalanceCard: import('react').ForwardRefExoticComponent<SelectBalanceCardProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectBalanceCardProps> & import('react').RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,17 @@
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ export interface SelectChartLegendItem {
3
+ label: ReactNode;
4
+ value?: ReactNode;
5
+ /** Swatch color — the series' `color`. */
6
+ color?: string;
7
+ /** Match a `pattern: 'hatch'` series. */
8
+ pattern?: 'hatch';
9
+ /** Instead of a swatch (a total that isn't drawn, e.g. "Cancelados"). */
10
+ icon?: ReactNode;
11
+ }
12
+ type SelectChartLegendOwnProps = {
13
+ items: SelectChartLegendItem[];
14
+ };
15
+ export type SelectChartLegendProps = SelectChartLegendOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectChartLegendOwnProps>;
16
+ export declare function SelectChartLegend({ items, className, ...rest }: SelectChartLegendProps): import("react").JSX.Element;
17
+ export {};
@@ -1,5 +1,14 @@
1
- import { ComponentPropsWithoutRef } from 'react';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
2
  import { SelectChartSeries } from './chartUtils';
3
+ /** What the hover card shows for one slot (see `tooltip`). */
4
+ export interface SelectColumnTooltip {
5
+ title?: ReactNode;
6
+ rows: {
7
+ label: ReactNode;
8
+ value: ReactNode;
9
+ color?: string;
10
+ }[];
11
+ }
3
12
  type SelectColumnChartOwnProps = {
4
13
  series: SelectChartSeries[];
5
14
  labels: string[];
@@ -7,7 +16,18 @@ type SelectColumnChartOwnProps = {
7
16
  format?: (n: number) => string;
8
17
  /** Stack the series into one bar per label instead of grouping side by side. */
9
18
  stacked?: boolean;
19
+ /** A dashed vertical line with a label ("Hoje") on slot `index` — through its centre, or on
20
+ * its trailing edge with `edge: 'end'` (the seam between what happened and what's scheduled).
21
+ * The thinned x labels anchor on this slot, so it always keeps its label. */
22
+ marker?: {
23
+ index: number;
24
+ label?: string;
25
+ edge?: 'center' | 'end';
26
+ };
27
+ /** Custom hover card for slot `index`; return null for no card there. Default: the slot's
28
+ * label as title and one row per series. */
29
+ tooltip?: (index: number) => SelectColumnTooltip | null;
10
30
  };
11
31
  export type SelectColumnChartProps = SelectColumnChartOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectColumnChartOwnProps>;
12
- export declare function SelectColumnChart({ series, labels, height, format, stacked, className, ...rest }: SelectColumnChartProps): import("react").JSX.Element;
32
+ export declare function SelectColumnChart({ series, labels, height, format, stacked, marker, tooltip, className, ...rest }: SelectColumnChartProps): import("react").JSX.Element;
13
33
  export {};
@@ -58,6 +58,10 @@ export interface SelectChartSeries {
58
58
  name: string;
59
59
  data: number[];
60
60
  color?: string;
61
+ /** SelectColumnChart: paint the bars with diagonal stripes of `color` instead of the solid
62
+ * gradient — the second encoding for "not happened yet" (scheduled, projected), so the
63
+ * difference never rides on color alone. */
64
+ pattern?: 'hatch';
61
65
  }
62
66
  export interface SelectBarDatum {
63
67
  label: string;
package/dist/icons.d.ts CHANGED
@@ -97,6 +97,12 @@ export declare function LockIcon(): import("react").JSX.Element;
97
97
  export declare function CalendarIcon(): import("react").JSX.Element;
98
98
  export declare function ChevronUpIcon(): import("react").JSX.Element;
99
99
  export declare function ExportIcon(): import("react").JSX.Element;
100
+ /** Iconsax "Bank" — conta bancária / destino de saque (o prédio genérico é o BuildingIcon). */
101
+ export declare function BankIcon(): import("react").JSX.Element;
102
+ /** Iconsax "MoneySend" — dinheiro saindo (saque). O ExportIcon é o de exportação de arquivo. */
103
+ export declare function MoneySendIcon(): import("react").JSX.Element;
104
+ /** Iconsax "MoneyRecive" — dinheiro entrando (recebíveis, liberações). */
105
+ export declare function MoneyReceiveIcon(): import("react").JSX.Element;
100
106
  export declare function ClipboardIcon(): import("react").JSX.Element;
101
107
  export declare function NoteIcon(): import("react").JSX.Element;
102
108
  export declare function DiscountIcon(): import("react").JSX.Element;
package/dist/index.d.ts CHANGED
@@ -105,6 +105,7 @@ export { SelectStackedArea } from './SelectStackedArea';
105
105
  export { SelectComboChart } from './SelectComboChart';
106
106
  export { SelectDonut } from './SelectDonut';
107
107
  export { SelectColumnChart } from './SelectColumnChart';
108
+ export { SelectChartLegend } from './SelectChartLegend';
108
109
  export { SelectFunnel } from './SelectFunnel';
109
110
  export { SelectGauge } from './SelectGauge';
110
111
  export { SelectHeatmap } from './SelectHeatmap';
@@ -205,7 +206,7 @@ export type { ComboboxOption } from './SelectCombobox';
205
206
  export type { SelectTheme } from './SelectThemeSwitcher';
206
207
  export type { SelectToastApi, SelectToastVariant } from './SelectToast';
207
208
  export type { SelectPreviewFrameProps } from './SelectPreviewFrame';
208
- export type { SelectBalanceCardProps, SelectBalanceBucket } from './SelectBalanceCard';
209
+ export type { SelectBalanceCardProps, SelectBalanceBucket, SelectBalanceMeta } from './SelectBalanceCard';
209
210
  export type { SelectFeeBreakdownProps, SelectFeeLine } from './SelectFeeBreakdown';
210
211
  export type { SelectDatePickerProps, SelectDateRange, SelectDatePreset, SelectDateLocale } from './SelectDatePicker';
211
212
  export type { SelectDateRangeFieldProps, SelectDateRangeValue } from './SelectDateRangeField';
@@ -236,6 +237,8 @@ export type { SelectPaginationProps } from './SelectPagination';
236
237
  export type { SelectFilterDef } from './SelectFilterBar';
237
238
  export type { SelectTagOption } from './SelectTagSelect';
238
239
  export type { SelectChartSeries, SelectBarDatum, SelectDonutSegment, SelectFunnelStage } from './chartUtils';
240
+ export type { SelectColumnChartProps, SelectColumnTooltip } from './SelectColumnChart';
241
+ export type { SelectChartLegendProps, SelectChartLegendItem } from './SelectChartLegend';
239
242
  export type { SelectHeatmapRow } from './SelectHeatmap';
240
243
  export type { SelectProgressItem } from './SelectProgressList';
241
244
  export type { SelectRadialSeries } from './SelectRadialBar';