@selectwin/kit 0.1.247 → 0.1.249
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/SelectAuthShowcase.d.ts +21 -0
- package/dist/SelectAuthShowcase.js +118 -0
- package/dist/SelectAuthSplit.d.ts +9 -1
- package/dist/SelectAuthSplit.js +11 -5
- package/dist/SelectCardGrid.d.ts +1 -1
- package/dist/SelectCardGrid.js +14 -13
- package/dist/SelectChartCard.d.ts +4 -0
- package/dist/SelectChartCard.js +29 -27
- package/dist/SelectDataTable.d.ts +4 -1
- package/dist/SelectDataTable.js +121 -120
- package/dist/SelectListCard.d.ts +4 -0
- package/dist/SelectListCard.js +40 -37
- package/dist/SelectModal.d.ts +4 -0
- package/dist/SelectModal.js +77 -72
- package/dist/SelectRetryStatus.d.ts +3 -1
- package/dist/SelectRetryStatus.js +53 -54
- package/dist/SelectSection.d.ts +7 -0
- package/dist/SelectSection.js +61 -53
- package/dist/SelectTable.d.ts +4 -0
- package/dist/SelectTable.js +87 -86
- package/dist/index.d.ts +3 -0
- package/dist/index.js +27 -26
- package/dist/internal/headingLevel.d.ts +16 -0
- package/dist/internal/headingLevel.js +25 -0
- package/dist/internal/listChrome.d.ts +8 -1
- package/dist/internal/listChrome.js +65 -63
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface SelectAuthShowcaseSlide {
|
|
3
|
+
key: string;
|
|
4
|
+
/** O título do slide (a frase grande embaixo); também o nome do traço que leva até ele. */
|
|
5
|
+
title: string;
|
|
6
|
+
/** A frase de apoio, embaixo do título. */
|
|
7
|
+
text?: ReactNode;
|
|
8
|
+
/** O vislumbre do produto, no meio do painel. Decoração: fica fora da árvore do leitor de tela. */
|
|
9
|
+
visual?: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export interface SelectAuthShowcaseProps {
|
|
12
|
+
slides: readonly SelectAuthShowcaseSlide[];
|
|
13
|
+
/** O sobrescrito, em cima à esquerda ("Painel do lojista"). */
|
|
14
|
+
eyebrow?: ReactNode;
|
|
15
|
+
/** O nome do conjunto para o leitor de tela; padrão "Destaques". */
|
|
16
|
+
label?: string;
|
|
17
|
+
/** Quanto tempo cada slide fica, em ms (padrão 8000). */
|
|
18
|
+
interval?: number;
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare function SelectAuthShowcase({ slides, eyebrow, label, interval, className }: SelectAuthShowcaseProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { ChevronLeftIcon as e, ChevronRightIcon as t } from "./icons.js";
|
|
3
|
+
import { inertProps as n } from "./internal/inert.js";
|
|
4
|
+
import { useEffect as r, useState as i } from "react";
|
|
5
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
|
+
//#region src/SelectAuthShowcase.tsx
|
|
7
|
+
var s = (e) => String(e).padStart(2, "0");
|
|
8
|
+
function c() {
|
|
9
|
+
let [e, t] = i(() => {
|
|
10
|
+
var e, t;
|
|
11
|
+
return typeof window < "u" ? ((e = (t = window).matchMedia) == null ? void 0 : e.call(t, "(prefers-reduced-motion: reduce)").matches) ?? !1 : !1;
|
|
12
|
+
});
|
|
13
|
+
return r(() => {
|
|
14
|
+
var e, n, r;
|
|
15
|
+
let i = (e = (n = window).matchMedia) == null ? void 0 : e.call(n, "(prefers-reduced-motion: reduce)");
|
|
16
|
+
if (!i) return;
|
|
17
|
+
let a = () => t(i.matches);
|
|
18
|
+
return (r = i.addEventListener) == null || r.call(i, "change", a), () => {
|
|
19
|
+
var e;
|
|
20
|
+
return (e = i.removeEventListener) == null ? void 0 : e.call(i, "change", a);
|
|
21
|
+
};
|
|
22
|
+
}, []), e;
|
|
23
|
+
}
|
|
24
|
+
function l({ slides: r, eyebrow: l, label: u = "Destaques", interval: d = 8e3, className: f }) {
|
|
25
|
+
let [p, m] = i(0), [h, g] = i(!1), [_, v] = i(!1), y = c(), b = r.length, x = b ? Math.min(p, b - 1) : 0;
|
|
26
|
+
if (!b) return null;
|
|
27
|
+
let S = r[x], C = (e) => m((e % b + b) % b), w = h || _, T = { "--select-showcase-interval": `${d}ms` };
|
|
28
|
+
return /* @__PURE__ */ o("section", {
|
|
29
|
+
className: [
|
|
30
|
+
"select-showcase",
|
|
31
|
+
w && "is-paused",
|
|
32
|
+
y && "is-still",
|
|
33
|
+
f
|
|
34
|
+
].filter(Boolean).join(" "),
|
|
35
|
+
style: T,
|
|
36
|
+
"aria-roledescription": "carrossel",
|
|
37
|
+
"aria-label": u,
|
|
38
|
+
onPointerEnter: () => g(!0),
|
|
39
|
+
onPointerLeave: () => g(!1),
|
|
40
|
+
onFocus: () => v(!0),
|
|
41
|
+
onBlur: (e) => {
|
|
42
|
+
e.currentTarget.contains(e.relatedTarget) || v(!1);
|
|
43
|
+
},
|
|
44
|
+
children: [
|
|
45
|
+
/* @__PURE__ */ o("div", {
|
|
46
|
+
className: "select-showcase__top",
|
|
47
|
+
children: [l == null ? /* @__PURE__ */ a("span", {}) : /* @__PURE__ */ a("span", {
|
|
48
|
+
className: "select-showcase__eyebrow",
|
|
49
|
+
children: l
|
|
50
|
+
}), /* @__PURE__ */ a("span", {
|
|
51
|
+
className: "select-showcase__count",
|
|
52
|
+
"aria-hidden": "true",
|
|
53
|
+
children: `${s(x + 1)} / ${s(b)}`
|
|
54
|
+
})]
|
|
55
|
+
}),
|
|
56
|
+
/* @__PURE__ */ a("div", {
|
|
57
|
+
className: "select-showcase__stage",
|
|
58
|
+
...n(!0),
|
|
59
|
+
children: S.visual == null ? null : /* @__PURE__ */ a("div", {
|
|
60
|
+
className: "select-showcase__visual",
|
|
61
|
+
children: S.visual
|
|
62
|
+
}, S.key)
|
|
63
|
+
}),
|
|
64
|
+
/* @__PURE__ */ o("div", {
|
|
65
|
+
className: "select-showcase__foot",
|
|
66
|
+
children: [/* @__PURE__ */ o("div", {
|
|
67
|
+
className: "select-showcase__copy",
|
|
68
|
+
"aria-live": w ? "polite" : "off",
|
|
69
|
+
children: [/* @__PURE__ */ a("p", {
|
|
70
|
+
className: "select-showcase__title",
|
|
71
|
+
children: S.title
|
|
72
|
+
}), S.text == null ? null : /* @__PURE__ */ a("p", {
|
|
73
|
+
className: "select-showcase__text",
|
|
74
|
+
children: S.text
|
|
75
|
+
})]
|
|
76
|
+
}, S.key), b > 1 ? /* @__PURE__ */ o("div", {
|
|
77
|
+
className: "select-showcase__nav",
|
|
78
|
+
children: [/* @__PURE__ */ a("div", {
|
|
79
|
+
className: "select-showcase__bars",
|
|
80
|
+
role: "tablist",
|
|
81
|
+
"aria-label": u,
|
|
82
|
+
children: r.map((e, t) => /* @__PURE__ */ a("button", {
|
|
83
|
+
type: "button",
|
|
84
|
+
role: "tab",
|
|
85
|
+
"aria-selected": t === x,
|
|
86
|
+
"aria-label": e.title,
|
|
87
|
+
className: "select-showcase__bar",
|
|
88
|
+
onClick: () => C(t),
|
|
89
|
+
children: /* @__PURE__ */ a("span", {
|
|
90
|
+
className: "select-showcase__barfill",
|
|
91
|
+
onAnimationEnd: t === x && !y ? () => C(x + 1) : void 0
|
|
92
|
+
}, t === x ? `${e.key}-on` : e.key)
|
|
93
|
+
}, e.key))
|
|
94
|
+
}), /* @__PURE__ */ o("div", {
|
|
95
|
+
className: "select-showcase__ctrl",
|
|
96
|
+
children: [/* @__PURE__ */ a("button", {
|
|
97
|
+
type: "button",
|
|
98
|
+
className: "select-showcase__btn",
|
|
99
|
+
"aria-label": "Anterior",
|
|
100
|
+
onClick: () => C(x - 1),
|
|
101
|
+
children: /* @__PURE__ */ a(e, {})
|
|
102
|
+
}), /* @__PURE__ */ a("button", {
|
|
103
|
+
type: "button",
|
|
104
|
+
className: "select-showcase__btn",
|
|
105
|
+
"aria-label": "Próximo",
|
|
106
|
+
onClick: () => C(x + 1),
|
|
107
|
+
children: /* @__PURE__ */ a(t, {})
|
|
108
|
+
})]
|
|
109
|
+
})]
|
|
110
|
+
}) : null]
|
|
111
|
+
})
|
|
112
|
+
]
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
//#endregion
|
|
116
|
+
export { l as SelectAuthShowcase };
|
|
117
|
+
|
|
118
|
+
//# sourceMappingURL=SelectAuthShowcase.js.map
|
|
@@ -16,9 +16,17 @@ export interface SelectAuthSplitProps {
|
|
|
16
16
|
asideClassName?: string;
|
|
17
17
|
/** A grade de escolhas em vez de um formulário: a coluna ganha dois terços da tela. */
|
|
18
18
|
wide?: boolean;
|
|
19
|
+
/** 0.1.249: o painel da marca como um cartão dentro da tela (margem e raio do cartão). */
|
|
20
|
+
asideCard?: boolean;
|
|
21
|
+
/** 0.1.249: o painel como escopo escuro do kit — as peças dentro dele saem no escuro em qualquer tema. */
|
|
22
|
+
asideTheme?: 'dark';
|
|
23
|
+
/** 0.1.249: a camada atrás do conteúdo do painel (o fundo com efeito), fraca. */
|
|
24
|
+
asideBackground?: ReactNode;
|
|
25
|
+
/** 0.1.249: o nome do painel quando ele não é só decoração (`asideDecorative={false}`). */
|
|
26
|
+
asideLabel?: string;
|
|
19
27
|
className?: string;
|
|
20
28
|
}
|
|
21
|
-
export declare function SelectAuthSplit({ logo, actions, children, footer, aside, asideDecorative, asideClassName, wide, className }: SelectAuthSplitProps): import("react").JSX.Element;
|
|
29
|
+
export declare function SelectAuthSplit({ logo, actions, children, footer, aside, asideDecorative, asideClassName, wide, asideCard, asideTheme, asideBackground, asideLabel, className, }: SelectAuthSplitProps): import("react").JSX.Element;
|
|
22
30
|
/** O título da tela de entrada (o h1) e a linha de apoio. */
|
|
23
31
|
export declare function SelectAuthHeading({ title, children }: {
|
|
24
32
|
title: ReactNode;
|
package/dist/SelectAuthSplit.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
3
3
|
//#region src/SelectAuthSplit.tsx
|
|
4
4
|
var n = (...e) => e.filter(Boolean).join(" ");
|
|
5
|
-
function r({ logo: r, actions: i, children: a, footer: o, aside: s, asideDecorative: c = !0, asideClassName: l, wide: u = !1,
|
|
5
|
+
function r({ logo: r, actions: i, children: a, footer: o, aside: s, asideDecorative: c = !0, asideClassName: l, wide: u = !1, asideCard: d = !1, asideTheme: f, asideBackground: p, asideLabel: m, className: h }) {
|
|
6
6
|
return /* @__PURE__ */ t("div", {
|
|
7
|
-
className: n("select-authsplit", u && "select-authsplit--wide", d),
|
|
7
|
+
className: n("select-authsplit", u && "select-authsplit--wide", d && "select-authsplit--asidecard", h),
|
|
8
8
|
children: [/* @__PURE__ */ t("div", {
|
|
9
9
|
className: "select-authsplit__panel",
|
|
10
10
|
children: [
|
|
@@ -21,10 +21,16 @@ function r({ logo: r, actions: i, children: a, footer: o, aside: s, asideDecorat
|
|
|
21
21
|
children: o
|
|
22
22
|
})
|
|
23
23
|
]
|
|
24
|
-
}), s == null ? null : /* @__PURE__ */
|
|
25
|
-
className: n("select-authsplit__aside", l),
|
|
24
|
+
}), s == null ? null : /* @__PURE__ */ t("aside", {
|
|
25
|
+
className: n("select-authsplit__aside", f === "dark" && "select", l),
|
|
26
|
+
"data-theme": f,
|
|
26
27
|
"aria-hidden": c || void 0,
|
|
27
|
-
|
|
28
|
+
"aria-label": c ? void 0 : m,
|
|
29
|
+
children: [p == null ? null : /* @__PURE__ */ e("div", {
|
|
30
|
+
className: "select-authsplit__bg",
|
|
31
|
+
"aria-hidden": "true",
|
|
32
|
+
children: p
|
|
33
|
+
}), s]
|
|
28
34
|
})]
|
|
29
35
|
});
|
|
30
36
|
}
|
package/dist/SelectCardGrid.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { SelectListChromeProps, SelectListPagination } from './internal/listChrome';
|
|
3
|
-
export declare function SelectCardGrid<T>({ items, getId, renderItem, loading, skeletonCount, empty, pagination, create, minCardWidth, skeletonCover, title, help, description, action, filters, tools, }: {
|
|
3
|
+
export declare function SelectCardGrid<T>({ items, getId, renderItem, loading, skeletonCount, empty, pagination, create, minCardWidth, skeletonCover, title, headingLevel, help, description, action, filters, tools, }: {
|
|
4
4
|
items: T[];
|
|
5
5
|
getId: (item: T) => string;
|
|
6
6
|
/** O card de um item — tipicamente um SelectRecordCard. */
|
package/dist/SelectCardGrid.js
CHANGED
|
@@ -3,29 +3,30 @@ import { SelectTableEmpty as r } from "./SelectTableEmpty.js";
|
|
|
3
3
|
import { SelectAddCard as i } from "./SelectAddCard.js";
|
|
4
4
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
5
5
|
//#region src/SelectCardGrid.tsx
|
|
6
|
-
function s({ items: s, getId: c, renderItem: l, loading: u = !1, skeletonCount: d = 6, empty: f, pagination: p, create: m, minCardWidth: h = "16rem", skeletonCover: g = !1, title: _,
|
|
7
|
-
let
|
|
6
|
+
function s({ items: s, getId: c, renderItem: l, loading: u = !1, skeletonCount: d = 6, empty: f, pagination: p, create: m, minCardWidth: h = "16rem", skeletonCover: g = !1, title: _, headingLevel: v, help: y, description: b, action: x, filters: S, tools: C }) {
|
|
7
|
+
let w = !u && s.length === 0 && f != null, { hasTitleRow: T, hasFilters: E } = n({
|
|
8
8
|
title: _,
|
|
9
|
-
description:
|
|
10
|
-
action:
|
|
11
|
-
filters:
|
|
12
|
-
tools:
|
|
9
|
+
description: b,
|
|
10
|
+
action: x,
|
|
11
|
+
filters: S,
|
|
12
|
+
tools: C
|
|
13
13
|
});
|
|
14
14
|
return /* @__PURE__ */ o("div", {
|
|
15
15
|
className: "select-cardgrid",
|
|
16
16
|
children: [
|
|
17
|
-
(
|
|
17
|
+
(T || E) && /* @__PURE__ */ a("div", {
|
|
18
18
|
className: "select-cardgrid__chrome",
|
|
19
19
|
children: /* @__PURE__ */ a(e, {
|
|
20
20
|
title: _,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
headingLevel: v,
|
|
22
|
+
help: y,
|
|
23
|
+
description: b,
|
|
24
|
+
action: x,
|
|
25
|
+
filters: S,
|
|
26
|
+
tools: C
|
|
26
27
|
})
|
|
27
28
|
}),
|
|
28
|
-
|
|
29
|
+
w ? /* @__PURE__ */ a("div", {
|
|
29
30
|
className: "select-cardgrid__empty",
|
|
30
31
|
children: /* @__PURE__ */ a(r, {
|
|
31
32
|
icon: f.icon,
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { ReactNode, ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { SelectHeadingLevel } from './internal/headingLevel';
|
|
2
3
|
type SelectChartCardOwnProps = {
|
|
3
4
|
title?: ReactNode;
|
|
5
|
+
/** O nível do título (`2` = `<h2>`, até `6`). Sem ele, o kit conta: `<h2>` na página, `<h3>` no corpo de uma seção
|
|
6
|
+
* ou de um modal com título (`internal/headingLevel.tsx`). Era sempre `<h3>`. */
|
|
7
|
+
headingLevel?: SelectHeadingLevel;
|
|
4
8
|
caption?: ReactNode;
|
|
5
9
|
action?: ReactNode;
|
|
6
10
|
/** Ajuda contextual do card: o que o gráfico mostra / como ler. Vira o "!" ao lado do
|
package/dist/SelectChartCard.js
CHANGED
|
@@ -1,42 +1,44 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
import { SelectInfoTip as e } from "./SelectInfoTip.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { SelectHeading as t, useHeadingLevel as n } from "./internal/headingLevel.js";
|
|
4
|
+
import { forwardRef as r } from "react";
|
|
5
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
6
|
//#region src/SelectChartCard.tsx
|
|
6
|
-
var
|
|
7
|
-
let
|
|
8
|
-
return /* @__PURE__ */
|
|
9
|
-
ref:
|
|
10
|
-
...
|
|
11
|
-
className: `select-chartcard${
|
|
7
|
+
var o = r(function({ title: r, headingLevel: o, caption: s, action: c, help: l, loading: u = !1, hideValues: d = !1, height: f = 260, flush: p = !1, insight: m, insightTone: h = "neutral", children: g, className: _, ...v }, y) {
|
|
8
|
+
let b = n(o), x = f === "auto" ? void 0 : `${f / 16}rem`, S = f === "auto" ? "10rem" : `${f / 16}rem`;
|
|
9
|
+
return /* @__PURE__ */ a("div", {
|
|
10
|
+
ref: y,
|
|
11
|
+
...v,
|
|
12
|
+
className: `select-chartcard${_ ? " " + _ : ""}`,
|
|
12
13
|
children: [
|
|
13
|
-
(
|
|
14
|
+
(r || c || s) && /* @__PURE__ */ a("div", {
|
|
14
15
|
className: "select-chartcard__head",
|
|
15
|
-
children: [/* @__PURE__ */
|
|
16
|
+
children: [/* @__PURE__ */ a("div", {
|
|
16
17
|
className: "select-chartcard__heading",
|
|
17
|
-
children: [
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
children: [r && /* @__PURE__ */ a(t, {
|
|
19
|
+
level: b,
|
|
20
|
+
className: `select-chartcard__title${l == null ? "" : " select-chartcard__title--help"}`,
|
|
21
|
+
children: [r, l != null && /* @__PURE__ */ i(e, { content: l })]
|
|
22
|
+
}), s && /* @__PURE__ */ i("p", {
|
|
21
23
|
className: "select-chartcard__caption",
|
|
22
|
-
children:
|
|
24
|
+
children: s
|
|
23
25
|
})]
|
|
24
|
-
}),
|
|
26
|
+
}), c && /* @__PURE__ */ i("div", {
|
|
25
27
|
className: "select-chartcard__action",
|
|
26
|
-
children:
|
|
28
|
+
children: c
|
|
27
29
|
})]
|
|
28
30
|
}),
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
className: `select-chartcard__body${
|
|
31
|
-
style: { minHeight:
|
|
32
|
-
children:
|
|
31
|
+
/* @__PURE__ */ i("div", {
|
|
32
|
+
className: `select-chartcard__body${p ? " select-chartcard__body--flush" : ""}${d ? " is-blurred" : ""}`,
|
|
33
|
+
style: { minHeight: x },
|
|
34
|
+
children: u ? /* @__PURE__ */ i("div", {
|
|
33
35
|
className: "select-skeleton select-chartcard__skeleton",
|
|
34
|
-
style: { height:
|
|
35
|
-
}) :
|
|
36
|
+
style: { height: S }
|
|
37
|
+
}) : g
|
|
36
38
|
}),
|
|
37
|
-
|
|
38
|
-
className: `select-chartcard__insight select-chartcard__insight--${
|
|
39
|
-
children: (Array.isArray(
|
|
39
|
+
m != null && !u && /* @__PURE__ */ i("div", {
|
|
40
|
+
className: `select-chartcard__insight select-chartcard__insight--${h}`,
|
|
41
|
+
children: (Array.isArray(m) ? m : [m]).filter((e) => e != null).map((e, t) => /* @__PURE__ */ i("span", {
|
|
40
42
|
className: "select-chartcard__insightpill",
|
|
41
43
|
children: e
|
|
42
44
|
}, t))
|
|
@@ -45,6 +47,6 @@ var i = t(function({ title: t, caption: i, action: a, help: o, loading: s = !1,
|
|
|
45
47
|
});
|
|
46
48
|
});
|
|
47
49
|
//#endregion
|
|
48
|
-
export {
|
|
50
|
+
export { o as SelectChartCard };
|
|
49
51
|
|
|
50
52
|
//# sourceMappingURL=SelectChartCard.js.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { SelectListPagination } from './internal/listChrome';
|
|
3
|
+
import { SelectHeadingLevel } from './internal/headingLevel';
|
|
3
4
|
/**
|
|
4
5
|
* Grid-track width for a date/time column — a FIXED width that fits a full pt-BR
|
|
5
6
|
* "dd/mm/aaaa, hh:mm" without clipping (the problem a bare `1fr` column had: it shared the
|
|
@@ -67,7 +68,7 @@ export interface SelectDataColumn<T> {
|
|
|
67
68
|
* guards mirror SelectMoney — storage unavailable = in-memory only.
|
|
68
69
|
*/
|
|
69
70
|
export declare function useSelectPageSize(key: string, fallback: number, options?: number[]): [number, (size: number) => void];
|
|
70
|
-
export declare function SelectDataTable<T>({ columns, items, getId, loading, empty, pagination, onRowClick, title, help, description, action, filters, columnsKey, getChildren, defaultExpanded, compactRow, compactQuery, onCompactRowClick, listRow, footer, flush, }: {
|
|
71
|
+
export declare function SelectDataTable<T>({ columns, items, getId, loading, empty, pagination, onRowClick, title, headingLevel, help, description, action, filters, columnsKey, getChildren, defaultExpanded, compactRow, compactQuery, onCompactRowClick, listRow, footer, flush, }: {
|
|
71
72
|
/** As colunas da grade. Dispensável com `listRow` (a lista não tem colunas). */
|
|
72
73
|
columns?: SelectDataColumn<T>[];
|
|
73
74
|
items: T[];
|
|
@@ -90,6 +91,8 @@ export declare function SelectDataTable<T>({ columns, items, getId, loading, emp
|
|
|
90
91
|
/** Card title in the table's own header bar — renders a self-contained titled card
|
|
91
92
|
* (don't wrap in SelectSection; the table is already a card). */
|
|
92
93
|
title?: ReactNode;
|
|
94
|
+
/** O nível do título (`2` = `<h2>`, até `6`) — ver SelectTable. Sem ele, o kit conta. */
|
|
95
|
+
headingLevel?: SelectHeadingLevel;
|
|
93
96
|
/** Ajuda contextual: vira o "!" ao lado do título (SelectInfoTip). Precisa de `title`. */
|
|
94
97
|
help?: ReactNode;
|
|
95
98
|
/** Linha discreta ABAIXO do título (subtítulo/descrição da lista) — ver SelectTable. */
|