@selectwin/kit 0.1.187 → 0.1.189

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/README.md CHANGED
@@ -28,6 +28,11 @@ import { SelectLocaleProvider } from '@selectwin/kit';
28
28
 
29
29
  A prop de texto do componente (`confirmLabel`, `noun`…) sempre ganha do dicionário.
30
30
 
31
+ Tom corporativo (0.1.188): cantos mais retos, botão e segmentado em pílula (`--select-radius-button`), rótulos de KPI
32
+ e cabeçalho de tabela em caixa-alta espaçada. Nos gráficos, cor é situação: verde `--select-chart-paid` = pago, dourado
33
+ `--select-chart-pending` (+ `-edge`) = pendente, `--select-chart-compare` = o período anterior, e os cinzas
34
+ `--select-chart-ramp-1..4` para categoria. O app que quer o visual antigo sobrescreve esses tokens.
35
+
31
36
  Peer deps: **react**, **react-dom** (obrigatórios); **gsap** (opcional — só componentes animados),
32
37
  **react-router-dom** (opcional). Tematização = sobrescrever os tokens CSS `--select-*` / `--sw-*`.
33
38
 
@@ -27,7 +27,16 @@ type SelectColumnChartOwnProps = {
27
27
  /** Custom hover card for slot `index`; return null for no card there. Default: the slot's
28
28
  * label as title and one row per series. */
29
29
  tooltip?: (index: number) => SelectColumnTooltip | null;
30
+ /** O período anterior: uma barra clara ao lado de cada barra ("Semana anterior"). Entra na escala e no tooltip. */
31
+ compare?: {
32
+ name: string;
33
+ data: number[];
34
+ };
35
+ /** A média tracejada — da soma de cada ponto (empilhado) ou da 1ª série (agrupado) —, com "Média R$ 32,5 mil". */
36
+ average?: boolean | {
37
+ label?: string;
38
+ };
30
39
  };
31
40
  export type SelectColumnChartProps = SelectColumnChartOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectColumnChartOwnProps>;
32
- export declare function SelectColumnChart({ series, labels, height, format, stacked, marker, tooltip, className, ...rest }: SelectColumnChartProps): import("react").JSX.Element;
41
+ export declare function SelectColumnChart({ series, labels, height, format, stacked, marker, tooltip, compare, average, className, ...rest }: SelectColumnChartProps): import("react").JSX.Element;
33
42
  export {};
@@ -0,0 +1,7 @@
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ type SelectKpiBandOwnProps = {
3
+ children: ReactNode;
4
+ };
5
+ export type SelectKpiBandProps = SelectKpiBandOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectKpiBandOwnProps>;
6
+ export declare const SelectKpiBand: import('react').ForwardRefExoticComponent<SelectKpiBandOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "children"> & import('react').RefAttributes<HTMLDivElement>>;
7
+ export {};
@@ -10,6 +10,10 @@ export interface SelectPageAction {
10
10
  type SelectPageOwnProps = {
11
11
  title?: ReactNode;
12
12
  subtitle?: ReactNode;
13
+ /** Acima do título, em caixa-alta espaçada ("Produção · Segunda, 02 de novembro") — 0.1.188, o tom corporativo. */
14
+ eyebrow?: ReactNode;
15
+ /** Um filete separa o cabeçalho do conteúdo (as telas de painel, como o Início). */
16
+ divided?: boolean;
13
17
  primaryAction?: SelectPageAction;
14
18
  secondaryActions?: SelectPageAction[];
15
19
  /** Custom node in the header action area (e.g. an "Ações" overflow menu on detail
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { SelectPlacement } from './positioning';
3
- export declare function SelectTooltip({ content, children, placement, delay, openOnClick, }: {
3
+ export declare function SelectTooltip({ content, children, placement, delay, openOnClick, disabled, }: {
4
4
  content: ReactNode;
5
5
  children: ReactNode;
6
6
  placement?: SelectPlacement;
@@ -9,4 +9,7 @@ export declare function SelectTooltip({ content, children, placement, delay, ope
9
9
  * touch, where hover never happens. While pinned the tip accepts the pointer, so the
10
10
  * text can be selected. */
11
11
  openOnClick?: boolean;
12
+ /** Não abre (0.1.188): o gatilho já mostra o mesmo conteúdo noutro lugar (ex.: o painel de páginas do trilho aberto
13
+ * ao lado do ícone). O embrulho continua no lugar, então o gatilho não remonta nem perde o foco. */
14
+ disabled?: boolean;
12
15
  }): import("react").JSX.Element;
@@ -76,6 +76,9 @@ export interface SelectChartSeries {
76
76
  * gradient — the second encoding for "not happened yet" (scheduled, projected), so the
77
77
  * difference never rides on color alone. */
78
78
  pattern?: 'hatch';
79
+ /** SelectColumnChart: o contorno da barra — para a cor clara que sozinha não chega a 3:1 no fundo (o dourado do
80
+ * pendente usa `var(--select-chart-pending-edge)`). */
81
+ edge?: string;
79
82
  /** SelectLineChart: linha tracejada e mais clara, sem área — a COMPARAÇÃO (o período anterior),
80
83
  * que fica atrás da série principal sem disputar com ela. Pode ser mais curta que `labels`. */
81
84
  dashed?: boolean;
package/dist/index.d.ts CHANGED
@@ -134,6 +134,8 @@ export { SelectMoney, SelectSensitiveValue, SelectMetricDelta, SelectHideMoneyTo
134
134
  export { SelectBalanceCard } from './SelectBalanceCard';
135
135
  export { SelectFeeBreakdown } from './SelectFeeBreakdown';
136
136
  export { SelectKpiCard } from './SelectKpiCard';
137
+ export { SelectKpiBand } from './SelectKpiBand';
138
+ export type { SelectKpiBandProps } from './SelectKpiBand';
137
139
  export { SelectInsight, SelectInsightList, SelectInsightRow, formatInsightImpact } from './SelectInsight';
138
140
  export { SelectAssistant, SelectChatMessage, SelectChatTurn, SelectChatTyping } from './SelectAssistant';
139
141
  export { SelectNumberedList, SelectNumberedItem } from './SelectNumberedList';