@selectwin/kit 0.1.121 → 0.1.123
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/SelectDataTable.d.ts +13 -1
- package/dist/SelectFeeBreakdown.d.ts +6 -0
- package/dist/SelectFunnel.d.ts +4 -1
- package/dist/SelectIconTile.d.ts +11 -0
- package/dist/SelectJourney.d.ts +32 -0
- package/dist/SelectLayout.d.ts +7 -1
- package/dist/SelectListCard.d.ts +12 -1
- package/dist/SelectMiniStats.d.ts +13 -0
- package/dist/SelectNote.d.ts +2 -0
- package/dist/SelectPaymentCard.d.ts +11 -0
- package/dist/SelectPips.d.ts +13 -0
- package/dist/SelectProgressBar.d.ts +2 -1
- package/dist/SelectProgressList.d.ts +7 -1
- package/dist/SelectRing.d.ts +23 -0
- package/dist/SelectShareBar.d.ts +13 -1
- package/dist/SelectSpotlight.d.ts +17 -0
- package/dist/SelectTaskCard.d.ts +14 -0
- package/dist/SelectThumbnail.d.ts +3 -0
- package/dist/SelectTimeline.d.ts +5 -1
- package/dist/SelectZoomThumbnail.d.ts +3 -1
- package/dist/chartTip.d.ts +11 -0
- package/dist/chartUtils.d.ts +4 -0
- package/dist/icons.d.ts +21 -0
- package/dist/index.d.ts +17 -1
- package/dist/index.js +1836 -1339
- package/dist/internal/useMatchMedia.d.ts +5 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -62,7 +62,7 @@ export interface SelectDataColumn<T> {
|
|
|
62
62
|
* guards mirror SelectMoney — storage unavailable = in-memory only.
|
|
63
63
|
*/
|
|
64
64
|
export declare function useSelectPageSize(key: string, fallback: number, options?: number[]): [number, (size: number) => void];
|
|
65
|
-
export declare function SelectDataTable<T>({ columns, items, getId, loading, empty, pagination, onRowClick, title, help, description, action, filters, columnsKey, getChildren, defaultExpanded, }: {
|
|
65
|
+
export declare function SelectDataTable<T>({ columns, items, getId, loading, empty, pagination, onRowClick, title, help, description, action, filters, columnsKey, getChildren, defaultExpanded, compactRow, compactQuery, onCompactRowClick, }: {
|
|
66
66
|
columns: SelectDataColumn<T>[];
|
|
67
67
|
items: T[];
|
|
68
68
|
getId: (item: T) => string;
|
|
@@ -118,4 +118,16 @@ export declare function SelectDataTable<T>({ columns, items, getId, loading, emp
|
|
|
118
118
|
/** Mães abertas no primeiro render (padrão: todas fechadas). Avaliado por item, então vale
|
|
119
119
|
* também para a mãe que só chega na página seguinte. */
|
|
120
120
|
defaultExpanded?: (item: T) => boolean;
|
|
121
|
+
/**
|
|
122
|
+
* A linha no CELULAR. Com ela, abaixo de `compactQuery` a tabela troca a grade de colunas por
|
|
123
|
+
* uma linha só por item (o que esta função desenhar: foto, valor, status) — mesma casca, mesmas
|
|
124
|
+
* faixas de título/filtros e o mesmo rodapé de paginação; somem só o cabeçalho de colunas e o
|
|
125
|
+
* seletor de colunas. Sem ela, a tabela rola na horizontal como sempre.
|
|
126
|
+
*/
|
|
127
|
+
compactRow?: (item: T) => ReactNode;
|
|
128
|
+
/** Media query do modo compacto. Padrão `(max-width: 40rem)`. */
|
|
129
|
+
compactQuery?: string;
|
|
130
|
+
/** Clique na linha COMPACTA (padrão: `onRowClick`). Existe porque a linha larga costuma ter
|
|
131
|
+
* controles nas células (copiar id, menu) e por isso não é clicável — a compacta, sem eles, é. */
|
|
132
|
+
onCompactRowClick?: (item: T) => void;
|
|
121
133
|
}): import("react").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
export interface SelectFeeLine {
|
|
2
3
|
label: string;
|
|
3
4
|
/** Deduction in CENTS (positive number = subtracted from gross). */
|
|
@@ -10,5 +11,10 @@ export interface SelectFeeBreakdownProps {
|
|
|
10
11
|
netCents?: number;
|
|
11
12
|
grossLabel?: string;
|
|
12
13
|
netLabel?: string;
|
|
14
|
+
/** Desenha, acima das linhas, a barra do bruto partida em líquido (verde, com o valor dentro) e
|
|
15
|
+
* taxas (hachurado), mais a legenda com o % das taxas — "para onde foi o dinheiro". */
|
|
16
|
+
bar?: boolean;
|
|
17
|
+
/** Texto dentro da faixa do líquido (padrão: `netLabel · valor`). */
|
|
18
|
+
barLabel?: ReactNode;
|
|
13
19
|
}
|
|
14
20
|
export declare const SelectFeeBreakdown: import('react').ForwardRefExoticComponent<SelectFeeBreakdownProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectFeeBreakdownProps> & import('react').RefAttributes<HTMLDivElement>>;
|
package/dist/SelectFunnel.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from 'react';
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
import { SelectFunnelStage } from './chartUtils';
|
|
3
3
|
type SelectFunnelOwnProps = {
|
|
4
4
|
stages: SelectFunnelStage[];
|
|
5
5
|
format?: (n: number) => string;
|
|
6
|
+
palette?: 'ramp' | 'mono';
|
|
7
|
+
/** Texto da conversão de uma etapa sobre a anterior (padrão "56%"). */
|
|
8
|
+
convLabel?: (pct: number, index: number) => ReactNode;
|
|
6
9
|
};
|
|
7
10
|
export type SelectFunnelProps = SelectFunnelOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectFunnelOwnProps>;
|
|
8
11
|
export declare const SelectFunnel: import('react').ForwardRefExoticComponent<SelectFunnelOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectFunnelOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
export type SelectIconTileTone = 'neutral' | 'success' | 'critical' | 'warning' | 'info' | 'pro';
|
|
3
|
+
type SelectIconTileOwnProps = {
|
|
4
|
+
icon: ReactNode;
|
|
5
|
+
tone?: SelectIconTileTone;
|
|
6
|
+
/** sm 1.75rem · md 2.125rem · lg 2.5rem. */
|
|
7
|
+
size?: 'sm' | 'md' | 'lg';
|
|
8
|
+
};
|
|
9
|
+
export type SelectIconTileProps = SelectIconTileOwnProps & Omit<ComponentPropsWithoutRef<'span'>, keyof SelectIconTileOwnProps>;
|
|
10
|
+
export declare const SelectIconTile: import('react').ForwardRefExoticComponent<SelectIconTileOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref">, keyof SelectIconTileOwnProps> & import('react').RefAttributes<HTMLSpanElement>>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
export type SelectJourneyState = 'done' | 'current' | 'upcoming' | 'failed';
|
|
3
|
+
export type SelectJourneyTone = 'brand' | 'success' | 'critical' | 'warning';
|
|
4
|
+
export interface SelectJourneyStep {
|
|
5
|
+
key?: string;
|
|
6
|
+
label: ReactNode;
|
|
7
|
+
/** Linha sob o rótulo ("Processada em 1,4 s"). */
|
|
8
|
+
description?: ReactNode;
|
|
9
|
+
/** Quando: hora, data, "em 22 dias". Na trilha vertical fica à direita. */
|
|
10
|
+
meta?: ReactNode;
|
|
11
|
+
state: SelectJourneyState;
|
|
12
|
+
/** Cor do marcador deste passo (padrão: o `accent` da jornada; `failed` é sempre crítico). */
|
|
13
|
+
tone?: SelectJourneyTone;
|
|
14
|
+
/** Glifo dentro do marcador de um passo por vir (o relógio de um ciclo agendado). */
|
|
15
|
+
icon?: ReactNode;
|
|
16
|
+
}
|
|
17
|
+
type SelectJourneyOwnProps = {
|
|
18
|
+
steps: SelectJourneyStep[];
|
|
19
|
+
/** Cor dos passos feitos e das linhas já percorridas. Padrão `brand`. */
|
|
20
|
+
accent?: 'brand' | 'success';
|
|
21
|
+
align?: 'start' | 'center';
|
|
22
|
+
size?: 'sm' | 'md' | 'lg';
|
|
23
|
+
orientation?: 'auto' | 'horizontal' | 'vertical';
|
|
24
|
+
/** Um marco entre dois passos: `after` é o índice do passo à esquerda dele. */
|
|
25
|
+
marker?: {
|
|
26
|
+
after: number;
|
|
27
|
+
label: ReactNode;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export type SelectJourneyProps = SelectJourneyOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectJourneyOwnProps>;
|
|
31
|
+
export declare const SelectJourney: import('react').ForwardRefExoticComponent<SelectJourneyOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectJourneyOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
|
|
32
|
+
export {};
|
package/dist/SelectLayout.d.ts
CHANGED
|
@@ -13,9 +13,15 @@ type SelectStackOwnProps = {
|
|
|
13
13
|
inlineAlign?: CrossAlign;
|
|
14
14
|
as?: LayoutEl;
|
|
15
15
|
className?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Take the whole height of the parent (a card body stretched to its grid neighbour). With
|
|
18
|
+
* `align="space-between"` the first child sits at the top and the last at the bottom, so the
|
|
19
|
+
* extra room lands BETWEEN them instead of as an empty band under the content.
|
|
20
|
+
*/
|
|
21
|
+
fill?: boolean;
|
|
16
22
|
};
|
|
17
23
|
export type SelectStackProps = SelectStackOwnProps & Omit<HTMLAttributes<HTMLElement>, keyof SelectStackOwnProps>;
|
|
18
|
-
export declare function SelectStack({ children, gap, align, inlineAlign, as, className, ...rest }: SelectStackProps): import("react").JSX.Element;
|
|
24
|
+
export declare function SelectStack({ children, gap, align, inlineAlign, as, className, fill, ...rest }: SelectStackProps): import("react").JSX.Element;
|
|
19
25
|
type SelectInlineOwnProps = {
|
|
20
26
|
children: ReactNode;
|
|
21
27
|
gap?: SelectSpace;
|
package/dist/SelectListCard.d.ts
CHANGED
|
@@ -10,9 +10,12 @@ type SelectListCardOwnProps = {
|
|
|
10
10
|
};
|
|
11
11
|
export type SelectListCardProps = SelectListCardOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectListCardOwnProps>;
|
|
12
12
|
export declare const SelectListCard: import('react').ForwardRefExoticComponent<SelectListCardOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectListCardOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
|
|
13
|
-
export declare function SelectListRow({ media, title, secondary, action, muted, onClick, }: {
|
|
13
|
+
export declare function SelectListRow({ media, mediaSize, title, secondary, action, muted, onClick, }: {
|
|
14
14
|
/** Leading visual — an icon or SelectAvatar. */
|
|
15
15
|
media?: ReactNode;
|
|
16
|
+
/** `icon` (padrão) encaixa um glifo cru numa caixa de 1.25rem; `auto` deixa o visual com o
|
|
17
|
+
* tamanho dele — um SelectIconTile, um SelectThumbnail, um SelectAvatar maior. */
|
|
18
|
+
mediaSize?: 'icon' | 'auto';
|
|
16
19
|
title: ReactNode;
|
|
17
20
|
/** Sub-text under the title (e.g. an email under a name). */
|
|
18
21
|
secondary?: ReactNode;
|
|
@@ -22,4 +25,12 @@ export declare function SelectListRow({ media, title, secondary, action, muted,
|
|
|
22
25
|
muted?: boolean;
|
|
23
26
|
onClick?: () => void;
|
|
24
27
|
}): import("react").JSX.Element;
|
|
28
|
+
/**
|
|
29
|
+
* SelectListLabel — o rótulo de um GRUPO dentro da caixa de linhas ("O que mais conta neste
|
|
30
|
+
* motivo" / "Outros comprovantes"): caixa alta pequena, sem ação. Separa as linhas sem abrir um
|
|
31
|
+
* segundo card.
|
|
32
|
+
*/
|
|
33
|
+
export declare function SelectListLabel({ children }: {
|
|
34
|
+
children: ReactNode;
|
|
35
|
+
}): import("react").JSX.Element;
|
|
25
36
|
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
export interface SelectMiniStat {
|
|
3
|
+
key?: string;
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
value: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
type SelectMiniStatsOwnProps = {
|
|
8
|
+
items: SelectMiniStat[];
|
|
9
|
+
order?: 'label-first' | 'value-first';
|
|
10
|
+
};
|
|
11
|
+
export type SelectMiniStatsProps = SelectMiniStatsOwnProps & Omit<ComponentPropsWithoutRef<'dl'>, keyof SelectMiniStatsOwnProps>;
|
|
12
|
+
export declare const SelectMiniStats: import('react').ForwardRefExoticComponent<SelectMiniStatsOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDListElement>, HTMLDListElement>, "ref">, keyof SelectMiniStatsOwnProps> & import('react').RefAttributes<HTMLDListElement>>;
|
|
13
|
+
export {};
|
package/dist/SelectNote.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ type SelectNoteOwnProps = {
|
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
tone?: 'neutral' | 'info' | 'warning' | 'critical';
|
|
5
5
|
hideIcon?: boolean;
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
title?: ReactNode;
|
|
6
8
|
};
|
|
7
9
|
export type SelectNoteProps = SelectNoteOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectNoteOwnProps>;
|
|
8
10
|
export declare const SelectNote: import('react').ForwardRefExoticComponent<SelectNoteOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectNoteOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
type SelectPaymentCardOwnProps = {
|
|
3
|
+
/** Bandeira como a API grava (`visa`, `mastercard`, `elo`…). */
|
|
4
|
+
brand?: string;
|
|
5
|
+
lastDigits?: string;
|
|
6
|
+
/** Linha sob o número ("3x de R$ 99,00"). */
|
|
7
|
+
caption?: ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export type SelectPaymentCardProps = SelectPaymentCardOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectPaymentCardOwnProps>;
|
|
10
|
+
export declare const SelectPaymentCard: import('react').ForwardRefExoticComponent<SelectPaymentCardOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectPaymentCardOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
type SelectPipsOwnProps = {
|
|
3
|
+
/** Quantos pontos existem. */
|
|
4
|
+
total: number;
|
|
5
|
+
/** Quantos estão cheios. */
|
|
6
|
+
value: number;
|
|
7
|
+
/** Texto ao lado (padrão "2 de 3"); `null` esconde. */
|
|
8
|
+
label?: ReactNode;
|
|
9
|
+
tone?: 'success' | 'brand';
|
|
10
|
+
};
|
|
11
|
+
export type SelectPipsProps = SelectPipsOwnProps & Omit<ComponentPropsWithoutRef<'span'>, keyof SelectPipsOwnProps>;
|
|
12
|
+
export declare const SelectPips: import('react').ForwardRefExoticComponent<SelectPipsOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref">, keyof SelectPipsOwnProps> & import('react').RefAttributes<HTMLSpanElement>>;
|
|
13
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
/** `neutral` é a barra que não julga (o risco de uma sessão que já acabou); `info`, a azul. */
|
|
3
|
+
export type SelectProgressTone = 'brand' | 'success' | 'warning' | 'critical' | 'info' | 'neutral';
|
|
3
4
|
type SelectProgressBarOwnProps = {
|
|
4
5
|
/** De 0 a `max`. */
|
|
5
6
|
value?: number;
|
|
@@ -14,11 +14,17 @@ export interface SelectProgressItem {
|
|
|
14
14
|
/** Override this row's bar colour. */
|
|
15
15
|
color?: string;
|
|
16
16
|
}
|
|
17
|
-
export declare function SelectProgressList({ items, format, color, emptyText, }: {
|
|
17
|
+
export declare function SelectProgressList({ items, format, color, emptyText, spread, }: {
|
|
18
18
|
items: SelectProgressItem[];
|
|
19
19
|
format?: (n: number) => string;
|
|
20
20
|
/** One colour for every bar (else the chart ramp, one hue per row). */
|
|
21
21
|
color?: string;
|
|
22
22
|
emptyText?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Grow into the free height of a flex-column parent and space the rows EVENLY (first at the
|
|
25
|
+
* top, last at the bottom). For a card stretched to its neighbour's height in a grid row: the
|
|
26
|
+
* extra room is shared between the rows instead of piling up as an empty band.
|
|
27
|
+
*/
|
|
28
|
+
spread?: boolean;
|
|
23
29
|
}): import("react").JSX.Element;
|
|
24
30
|
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
export type SelectRingTone = 'brand' | 'success' | 'warning' | 'critical' | 'info' | 'neutral';
|
|
3
|
+
type SelectRingOwnProps = {
|
|
4
|
+
/** Quanto do anel pinta, de 0 a `max`. */
|
|
5
|
+
value: number;
|
|
6
|
+
max?: number;
|
|
7
|
+
/** Diâmetro em px na raiz de 16px (renderizado em rem, acompanha a escala fluida). Padrão 64. */
|
|
8
|
+
size?: number;
|
|
9
|
+
/** Espessura do traço em px. Padrão ≈ 11% do diâmetro. */
|
|
10
|
+
thickness?: number;
|
|
11
|
+
tone?: SelectRingTone;
|
|
12
|
+
/** O valor grande no centro ("19 h", "76", "23"). */
|
|
13
|
+
label?: ReactNode;
|
|
14
|
+
/** A linha pequena sob ele ("restantes", "min"). */
|
|
15
|
+
caption?: ReactNode;
|
|
16
|
+
/** Sobre fundo escuro (SelectSpotlight `inverse`): o trilho vira um branco translúcido. */
|
|
17
|
+
inverse?: boolean;
|
|
18
|
+
/** Nome acessível — sem ele, o anel é decorativo (o texto ao lado já diz o número). */
|
|
19
|
+
ariaLabel?: string;
|
|
20
|
+
};
|
|
21
|
+
export type SelectRingProps = SelectRingOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectRingOwnProps>;
|
|
22
|
+
export declare const SelectRing: import('react').ForwardRefExoticComponent<SelectRingOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectRingOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
|
|
23
|
+
export {};
|
package/dist/SelectShareBar.d.ts
CHANGED
|
@@ -2,10 +2,14 @@ import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
|
2
2
|
export interface SelectShareItem {
|
|
3
3
|
label: string;
|
|
4
4
|
value: number;
|
|
5
|
+
/** Chave estável da parte (o que `onSelect` devolve). Padrão: o `label`. */
|
|
6
|
+
key?: string;
|
|
5
7
|
/** Segment + dot color (else the chart ramp, in order). */
|
|
6
8
|
color?: string;
|
|
7
9
|
/** Shown before the % in the legend (e.g. the amount). */
|
|
8
10
|
valueText?: ReactNode;
|
|
11
|
+
/** Na legenda em fichas: o número em negrito ao lado do rótulo (a contagem). */
|
|
12
|
+
count?: ReactNode;
|
|
9
13
|
}
|
|
10
14
|
type SelectShareBarOwnProps = {
|
|
11
15
|
items: SelectShareItem[];
|
|
@@ -13,7 +17,15 @@ type SelectShareBarOwnProps = {
|
|
|
13
17
|
label?: ReactNode;
|
|
14
18
|
/** Right side of that line (a total, a scope like "aprovado"). */
|
|
15
19
|
aside?: ReactNode;
|
|
20
|
+
legend?: 'list' | 'chips';
|
|
21
|
+
size?: 'sm' | 'md';
|
|
22
|
+
/** Torna fichas e faixas clicáveis. */
|
|
23
|
+
onSelect?: (key: string) => void;
|
|
24
|
+
/** A parte escolhida (as outras esmaecem). */
|
|
25
|
+
selected?: string | null;
|
|
26
|
+
/** Linha discreta sob a legenda. */
|
|
27
|
+
hint?: ReactNode;
|
|
16
28
|
};
|
|
17
29
|
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;
|
|
30
|
+
export declare function SelectShareBar({ items, label, aside, legend, size, onSelect, selected, hint, className, ...rest }: SelectShareBarProps): import("react").JSX.Element | null;
|
|
19
31
|
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
export type SelectSpotlightTone = 'inverse' | 'critical' | 'warning' | 'info' | 'success' | 'neutral';
|
|
3
|
+
type SelectSpotlightOwnProps = {
|
|
4
|
+
tone?: SelectSpotlightTone;
|
|
5
|
+
media?: ReactNode;
|
|
6
|
+
/** Rótulo pequeno acima do título ("Ação recomendada"). */
|
|
7
|
+
eyebrow?: ReactNode;
|
|
8
|
+
title: ReactNode;
|
|
9
|
+
description?: ReactNode;
|
|
10
|
+
actions?: ReactNode;
|
|
11
|
+
actionsPlacement?: 'below' | 'end';
|
|
12
|
+
aside?: ReactNode;
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
};
|
|
15
|
+
export type SelectSpotlightProps = SelectSpotlightOwnProps & Omit<ComponentPropsWithoutRef<'section'>, keyof SelectSpotlightOwnProps | 'title'>;
|
|
16
|
+
export declare const SelectSpotlight: import('react').ForwardRefExoticComponent<SelectSpotlightOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "ref">, keyof SelectSpotlightOwnProps> & import('react').RefAttributes<HTMLElement>>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
type SelectTaskCardOwnProps = {
|
|
3
|
+
tone?: 'critical' | 'warning' | 'neutral';
|
|
4
|
+
/** Visual da cabeça (um SelectRing de prazo, um SelectIconTile). */
|
|
5
|
+
media?: ReactNode;
|
|
6
|
+
title: ReactNode;
|
|
7
|
+
subtitle?: ReactNode;
|
|
8
|
+
meta?: ReactNode;
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
footer?: ReactNode;
|
|
11
|
+
};
|
|
12
|
+
export type SelectTaskCardProps = SelectTaskCardOwnProps & Omit<ComponentPropsWithoutRef<'article'>, keyof SelectTaskCardOwnProps | 'title'>;
|
|
13
|
+
export declare const SelectTaskCard: import('react').ForwardRefExoticComponent<SelectTaskCardOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "ref">, keyof SelectTaskCardOwnProps> & import('react').RefAttributes<HTMLElement>>;
|
|
14
|
+
export {};
|
|
@@ -3,6 +3,9 @@ type SelectThumbnailOwnProps = {
|
|
|
3
3
|
src?: string;
|
|
4
4
|
alt?: string;
|
|
5
5
|
size?: number;
|
|
6
|
+
/** Quantos itens a MAIS esta imagem representa: um selo "+N" no canto (a cobrança com 3
|
|
7
|
+
* produtos mostra a foto do primeiro e "+2"). 0/ausente = sem selo. */
|
|
8
|
+
count?: number;
|
|
6
9
|
};
|
|
7
10
|
export type SelectThumbnailProps = SelectThumbnailOwnProps & Omit<ComponentPropsWithoutRef<'span'>, keyof SelectThumbnailOwnProps>;
|
|
8
11
|
export declare const SelectThumbnail: import('react').ForwardRefExoticComponent<SelectThumbnailOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref">, keyof SelectThumbnailOwnProps> & import('react').RefAttributes<HTMLSpanElement>>;
|
package/dist/SelectTimeline.d.ts
CHANGED
|
@@ -6,10 +6,14 @@ export interface SelectTimelineItem {
|
|
|
6
6
|
description?: ReactNode;
|
|
7
7
|
content?: ReactNode;
|
|
8
8
|
tone?: SelectTimelineTone;
|
|
9
|
+
/** Selo ao lado do título. */
|
|
10
|
+
badge?: ReactNode;
|
|
9
11
|
}
|
|
10
12
|
type SelectTimelineOwnProps = {
|
|
11
13
|
items: SelectTimelineItem[];
|
|
14
|
+
markers?: 'outcome' | 'each';
|
|
15
|
+
timePosition?: 'end' | 'start';
|
|
12
16
|
};
|
|
13
17
|
export type SelectTimelineProps = SelectTimelineOwnProps & Omit<ComponentPropsWithoutRef<'ul'>, keyof SelectTimelineOwnProps>;
|
|
14
|
-
export declare const SelectTimeline: import('react').ForwardRefExoticComponent<SelectTimelineOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref">,
|
|
18
|
+
export declare const SelectTimeline: import('react').ForwardRefExoticComponent<SelectTimelineOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref">, keyof SelectTimelineOwnProps> & import('react').RefAttributes<HTMLUListElement>>;
|
|
15
19
|
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
export declare function SelectZoomThumbnail({ src, alt, size, title, }: {
|
|
1
|
+
export declare function SelectZoomThumbnail({ src, alt, size, title, count, }: {
|
|
2
2
|
src?: string;
|
|
3
3
|
alt?: string;
|
|
4
4
|
size?: number;
|
|
5
5
|
/** Heading on the zoom modal (defaults to `alt`). */
|
|
6
6
|
title?: string;
|
|
7
|
+
/** Selo "+N" (ver SelectThumbnail). */
|
|
8
|
+
count?: number;
|
|
7
9
|
}): import("react").JSX.Element;
|
package/dist/chartTip.d.ts
CHANGED
|
@@ -23,4 +23,15 @@ type ChartTooltipOwnProps = {
|
|
|
23
23
|
};
|
|
24
24
|
export type ChartTooltipProps = ChartTooltipOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof ChartTooltipOwnProps>;
|
|
25
25
|
export declare function ChartTooltip({ tip, className, ...rest }: ChartTooltipProps): import("react").JSX.Element | null;
|
|
26
|
+
/**
|
|
27
|
+
* The same tip, but floating over the PAGE: a fixed layer portalled to `document.body`, with
|
|
28
|
+
* `tip.x/y` in VIEWPORT coordinates (`getBoundingClientRect`). For charts whose container clips —
|
|
29
|
+
* a heatmap that scrolls sideways is `overflow: auto`, so a tip inside it was cut and pushed a
|
|
30
|
+
* scrollbar into the card. The layer is the tip's offsetParent, so the horizontal clamp keeps it
|
|
31
|
+
* inside the viewport. Any scroll hides it (the point moved under the cursor).
|
|
32
|
+
*/
|
|
33
|
+
export declare function FloatingChartTooltip({ tip, onDismiss }: {
|
|
34
|
+
tip: ChartTipState | null;
|
|
35
|
+
onDismiss: () => void;
|
|
36
|
+
}): import('react').ReactPortal | null;
|
|
26
37
|
export {};
|
package/dist/chartUtils.d.ts
CHANGED
|
@@ -77,4 +77,8 @@ export interface SelectDonutSegment {
|
|
|
77
77
|
export interface SelectFunnelStage {
|
|
78
78
|
label: string;
|
|
79
79
|
value: number;
|
|
80
|
+
/** Cor da barra desta etapa (vence a paleta do funil). */
|
|
81
|
+
color?: string;
|
|
82
|
+
/** Destaca a conversão desta etapa (a maior perda do funil): texto crítico com ▼. */
|
|
83
|
+
flag?: boolean;
|
|
80
84
|
}
|
package/dist/icons.d.ts
CHANGED
|
@@ -153,4 +153,25 @@ export declare function AwardIcon(): import("react").JSX.Element;
|
|
|
153
153
|
export declare function UsersIcon(): import("react").JSX.Element;
|
|
154
154
|
/** Três círculos sobrepostos (Iconsax colorfilter) — cor, identidade visual. */
|
|
155
155
|
export declare function PaletteIcon(): import("react").JSX.Element;
|
|
156
|
+
/** Duas barras (Iconsax pause) — pausar uma cobrança recorrente. */
|
|
157
|
+
export declare function PauseIcon(): import("react").JSX.Element;
|
|
158
|
+
/** Seta voltando em volta (Iconsax arrow-rotate-left) — o ESTORNO: o dinheiro que volta. Não é o
|
|
159
|
+
* `RefreshIcon` (recarregar), que desenha o mesmo gesto para "de novo". */
|
|
160
|
+
export declare function RefundIcon(): import("react").JSX.Element;
|
|
161
|
+
/** Recibo com linhas (Iconsax receipt-text) — o comprovante de uma cobrança. */
|
|
162
|
+
export declare function ReceiptIcon(): import("react").JSX.Element;
|
|
163
|
+
/** Balão de conversa (Iconsax message) — falar com o cliente (WhatsApp, conversa). */
|
|
164
|
+
export declare function ChatIcon(): import("react").JSX.Element;
|
|
165
|
+
/** Estrela com rastro (Iconsax magic-star) — uma RECOMENDAÇÃO: o que costuma resolver. */
|
|
166
|
+
export declare function SparkleIcon(): import("react").JSX.Element;
|
|
167
|
+
/** Bandeira (Iconsax flag) — o motivo alegado numa contestação. */
|
|
168
|
+
export declare function FlagIcon(): import("react").JSX.Element;
|
|
169
|
+
/** Pino de mapa (Iconsax location) — um endereço. */
|
|
170
|
+
export declare function LocationIcon(): import("react").JSX.Element;
|
|
171
|
+
/** X num círculo (Iconsax close-circle) — encerrar, cancelar de vez. */
|
|
172
|
+
export declare function CloseCircleIcon(): import("react").JSX.Element;
|
|
173
|
+
/** Raio (Iconsax flash) — o que é instantâneo: oferecer Pix no lugar do cartão. */
|
|
174
|
+
export declare function FlashIcon(): import("react").JSX.Element;
|
|
175
|
+
/** Documento com texto (Iconsax document-text) — nota fiscal, documento anexado. */
|
|
176
|
+
export declare function DocumentTextIcon(): import("react").JSX.Element;
|
|
156
177
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -108,6 +108,22 @@ export { SelectDonut } from './SelectDonut';
|
|
|
108
108
|
export { SelectColumnChart } from './SelectColumnChart';
|
|
109
109
|
export { SelectChartLegend } from './SelectChartLegend';
|
|
110
110
|
export { SelectShareBar } from './SelectShareBar';
|
|
111
|
+
export { SelectRing } from './SelectRing';
|
|
112
|
+
export type { SelectRingProps, SelectRingTone } from './SelectRing';
|
|
113
|
+
export { SelectJourney } from './SelectJourney';
|
|
114
|
+
export type { SelectJourneyProps, SelectJourneyStep, SelectJourneyState, SelectJourneyTone } from './SelectJourney';
|
|
115
|
+
export { SelectPips } from './SelectPips';
|
|
116
|
+
export type { SelectPipsProps } from './SelectPips';
|
|
117
|
+
export { SelectIconTile } from './SelectIconTile';
|
|
118
|
+
export type { SelectIconTileProps, SelectIconTileTone } from './SelectIconTile';
|
|
119
|
+
export { SelectSpotlight } from './SelectSpotlight';
|
|
120
|
+
export type { SelectSpotlightProps, SelectSpotlightTone } from './SelectSpotlight';
|
|
121
|
+
export { SelectTaskCard } from './SelectTaskCard';
|
|
122
|
+
export type { SelectTaskCardProps } from './SelectTaskCard';
|
|
123
|
+
export { SelectMiniStats } from './SelectMiniStats';
|
|
124
|
+
export type { SelectMiniStatsProps, SelectMiniStat } from './SelectMiniStats';
|
|
125
|
+
export { SelectPaymentCard } from './SelectPaymentCard';
|
|
126
|
+
export type { SelectPaymentCardProps } from './SelectPaymentCard';
|
|
111
127
|
export { SelectFunnel } from './SelectFunnel';
|
|
112
128
|
export { SelectGauge } from './SelectGauge';
|
|
113
129
|
export { SelectHeatmap } from './SelectHeatmap';
|
|
@@ -161,7 +177,7 @@ export type { SelectSetupGuideProps, SelectSetupGroup, SelectSetupStep, SelectSe
|
|
|
161
177
|
export { SelectTour } from './SelectTour';
|
|
162
178
|
export type { SelectTourProps, SelectTourStep } from './SelectTour';
|
|
163
179
|
export { SelectPlanCard } from './SelectPlanCard';
|
|
164
|
-
export { SelectListCard, SelectListRow } from './SelectListCard';
|
|
180
|
+
export { SelectListCard, SelectListRow, SelectListLabel } from './SelectListCard';
|
|
165
181
|
export { SelectThumbnail } from './SelectThumbnail';
|
|
166
182
|
export { SelectZoomThumbnail } from './SelectZoomThumbnail';
|
|
167
183
|
export { SelectMediaCell } from './SelectMediaCell';
|