@selectwin/kit 0.1.49 → 0.1.50
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/SelectChartCard.d.ts +3 -0
- package/dist/SelectDataTable.d.ts +3 -1
- package/dist/SelectInfoTip.d.ts +14 -0
- package/dist/SelectKpiCard.d.ts +3 -0
- package/dist/SelectSection.d.ts +4 -0
- package/dist/SelectTable.d.ts +2 -0
- package/dist/SelectTooltip.d.ts +5 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3052 -2980
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -3,6 +3,9 @@ type SelectChartCardOwnProps = {
|
|
|
3
3
|
title?: ReactNode;
|
|
4
4
|
caption?: ReactNode;
|
|
5
5
|
action?: ReactNode;
|
|
6
|
+
/** Ajuda contextual do card: o que o gráfico mostra / como ler. Vira o "!" ao lado do
|
|
7
|
+
* título (SelectInfoTip) — hover no desktop, toque no mobile. */
|
|
8
|
+
help?: ReactNode;
|
|
6
9
|
loading?: boolean;
|
|
7
10
|
/** Blur the chart body (sensitive amounts) — wire to the hide-values toggle. */
|
|
8
11
|
hideValues?: boolean;
|
|
@@ -40,7 +40,7 @@ export interface SelectDataColumn<T> {
|
|
|
40
40
|
* guards mirror SelectMoney — storage unavailable = in-memory only.
|
|
41
41
|
*/
|
|
42
42
|
export declare function useSelectPageSize(key: string, fallback: number, options?: number[]): [number, (size: number) => void];
|
|
43
|
-
export declare function SelectDataTable<T>({ columns, items, getId, loading, empty, pagination, onRowClick, title, action, filters, columnsKey, }: {
|
|
43
|
+
export declare function SelectDataTable<T>({ columns, items, getId, loading, empty, pagination, onRowClick, title, help, action, filters, columnsKey, }: {
|
|
44
44
|
columns: SelectDataColumn<T>[];
|
|
45
45
|
items: T[];
|
|
46
46
|
getId: (item: T) => string;
|
|
@@ -87,6 +87,8 @@ export declare function SelectDataTable<T>({ columns, items, getId, loading, emp
|
|
|
87
87
|
/** Card title in the table's own header bar — renders a self-contained titled card
|
|
88
88
|
* (don't wrap in SelectSection; the table is already a card). */
|
|
89
89
|
title?: ReactNode;
|
|
90
|
+
/** Ajuda contextual: vira o "!" ao lado do título (SelectInfoTip). Precisa de `title`. */
|
|
91
|
+
help?: ReactNode;
|
|
90
92
|
/** Right-aligned header action (e.g. an "Adicionar" button). */
|
|
91
93
|
action?: ReactNode;
|
|
92
94
|
/** Filter controls (e.g. a SelectFilterBar) embedded in the table's header bar, left of
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode, ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { SelectPlacement } from './positioning';
|
|
3
|
+
type SelectInfoTipOwnProps = {
|
|
4
|
+
/** O texto de ajuda (uma ou duas frases; o balão tem largura máxima). */
|
|
5
|
+
content: ReactNode;
|
|
6
|
+
/** Linha de título em negrito acima do texto. */
|
|
7
|
+
title?: ReactNode;
|
|
8
|
+
/** Rótulo acessível do gatilho. Default: "Mais informações". */
|
|
9
|
+
label?: string;
|
|
10
|
+
placement?: SelectPlacement;
|
|
11
|
+
};
|
|
12
|
+
export type SelectInfoTipProps = SelectInfoTipOwnProps & Omit<ComponentPropsWithoutRef<'button'>, keyof SelectInfoTipOwnProps>;
|
|
13
|
+
export declare const SelectInfoTip: import('react').ForwardRefExoticComponent<SelectInfoTipOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, keyof SelectInfoTipOwnProps> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
export {};
|
package/dist/SelectKpiCard.d.ts
CHANGED
|
@@ -4,6 +4,9 @@ type SelectKpiCardOwnProps = {
|
|
|
4
4
|
value: ReactNode;
|
|
5
5
|
caption?: ReactNode;
|
|
6
6
|
chart?: ReactNode;
|
|
7
|
+
/** Ajuda contextual: o que este número significa / como é calculado. Vira o "!" ao lado
|
|
8
|
+
* do rótulo (SelectInfoTip) — hover no desktop, toque no mobile. */
|
|
9
|
+
help?: ReactNode;
|
|
7
10
|
/**
|
|
8
11
|
* Colour the VALUE when the number itself is the alarm — "3 crons parados", "2 DLQs com
|
|
9
12
|
* backlog". Omit for a neutral metric: a KPI that is always red stops meaning anything.
|
package/dist/SelectSection.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { ReactNode, ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
type SelectSectionOwnProps = {
|
|
3
3
|
title?: ReactNode;
|
|
4
|
+
/** Ajuda contextual: vira o "!" ao lado do título (SelectInfoTip). IGNORADA quando
|
|
5
|
+
* `collapsible` — ali o head inteiro é um <button>, e botão dentro de botão é DOM
|
|
6
|
+
* inválido. */
|
|
7
|
+
help?: ReactNode;
|
|
4
8
|
/** Subdued line under the title (e.g. the step subtitle of a wizard card). */
|
|
5
9
|
description?: ReactNode;
|
|
6
10
|
/** Right-aligned action in the head (e.g. an "Editar" link). Ignored when collapsible. */
|
package/dist/SelectTable.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ type SelectTableOwnProps = {
|
|
|
17
17
|
/** Card title in the table's own header bar (e.g. "Variantes"). Renders the table as
|
|
18
18
|
* a self-contained titled card — do NOT wrap it in a SelectSection (card-in-card). */
|
|
19
19
|
title?: ReactNode;
|
|
20
|
+
/** Ajuda contextual: vira o "!" ao lado do título (SelectInfoTip). Precisa de `title`. */
|
|
21
|
+
help?: ReactNode;
|
|
20
22
|
/** Right-aligned action in the header bar (e.g. an "Adicionar" button). */
|
|
21
23
|
action?: ReactNode;
|
|
22
24
|
/** Filter controls (e.g. a SelectFilterBar) embedded in the header bar, left of the
|
package/dist/SelectTooltip.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { SelectPlacement } from './positioning';
|
|
3
|
-
export declare function SelectTooltip({ content, children, placement, delay, }: {
|
|
3
|
+
export declare function SelectTooltip({ content, children, placement, delay, openOnClick, }: {
|
|
4
4
|
content: ReactNode;
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
placement?: SelectPlacement;
|
|
7
7
|
delay?: number;
|
|
8
|
+
/** Click/tap pins the tip open (dismiss with an outside click or Escape). Required for
|
|
9
|
+
* touch, where hover never happens. While pinned the tip accepts the pointer, so the
|
|
10
|
+
* text can be selected. */
|
|
11
|
+
openOnClick?: boolean;
|
|
8
12
|
}): import("react").JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -72,6 +72,8 @@ export { SelectModal } from './SelectModal';
|
|
|
72
72
|
export { SelectPopover } from './SelectPopover';
|
|
73
73
|
export { SelectActionList } from './SelectActionList';
|
|
74
74
|
export { SelectTooltip } from './SelectTooltip';
|
|
75
|
+
export { SelectInfoTip } from './SelectInfoTip';
|
|
76
|
+
export type { SelectInfoTipProps } from './SelectInfoTip';
|
|
75
77
|
export { SelectRowActions } from './SelectRowActions';
|
|
76
78
|
export { SelectConfirmModal } from './SelectConfirmModal';
|
|
77
79
|
export { SelectFormModal } from './SelectFormModal';
|