@selectwin/kit 0.1.233 → 0.1.235
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 +3 -0
- package/dist/SelectCardGrid.js +1 -1
- package/dist/SelectDataTable.js +4 -3
- package/dist/SelectFunnel.d.ts +9 -1
- package/dist/SelectFunnel.js +73 -14
- package/dist/SelectKpiBand.d.ts +16 -0
- package/dist/SelectKpiBand.js +41 -18
- package/dist/SelectKpiCard.d.ts +5 -0
- package/dist/SelectKpiCard.js +12 -12
- package/dist/SelectTable.d.ts +1 -17
- package/dist/SelectTable.js +88 -115
- package/dist/SelectTableEmpty.d.ts +18 -0
- package/dist/SelectTableEmpty.js +36 -0
- package/dist/chartUtils.d.ts +3 -0
- package/dist/index.d.ts +4 -3
- package/dist/index.js +103 -102
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -57,6 +57,9 @@ embaixo). O item aceso usa `--select-appdock-active` e `--select-appdock-active-
|
|
|
57
57
|
Peer deps: **react**, **react-dom** (obrigatórios); **gsap** (opcional — só componentes animados),
|
|
58
58
|
**react-router-dom** (opcional). Tematização = sobrescrever os tokens CSS `--select-*` / `--sw-*`.
|
|
59
59
|
|
|
60
|
+
O vazio das listas tem módulo próprio (0.1.234): o `SelectTableEmpty` só depende do React, e a `SelectCardGrid` não
|
|
61
|
+
leva mais a tabela nem o GSAP. O teste `SelectTableEmpty.test.ts` trava esse grafo de imports.
|
|
62
|
+
|
|
60
63
|
## Build
|
|
61
64
|
|
|
62
65
|
```bash
|
package/dist/SelectCardGrid.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SelectListChrome as e, SelectListFooter as t, listChromeShape as n } from "./internal/listChrome.js";
|
|
2
|
-
import { SelectTableEmpty as r } from "./
|
|
2
|
+
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
|
package/dist/SelectDataTable.js
CHANGED
|
@@ -4,7 +4,8 @@ import { useMatchMedia as a } from "./internal/useMatchMedia.js";
|
|
|
4
4
|
import { SelectPopover as ee } from "./SelectPopover.js";
|
|
5
5
|
import { SelectIconButton as o } from "./SelectIconButton.js";
|
|
6
6
|
import { SelectListFooter as te } from "./internal/listChrome.js";
|
|
7
|
-
import {
|
|
7
|
+
import { SelectTableEmpty as ne } from "./SelectTableEmpty.js";
|
|
8
|
+
import { SelectTable as re, SelectTableCell as s, SelectTableRow as c } from "./SelectTable.js";
|
|
8
9
|
import { useMemo as l, useState as u } from "react";
|
|
9
10
|
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
10
11
|
//#region src/SelectDataTable.tsx
|
|
@@ -124,7 +125,7 @@ function C({ columns: p = [], items: m, getId: g, loading: y = !1, empty: x, pag
|
|
|
124
125
|
});
|
|
125
126
|
}, we = () => {
|
|
126
127
|
H({}), T && b(T, {});
|
|
127
|
-
}, Te = Object.keys(V).length > 0, Ee = !y && x ? /* @__PURE__ */ d(
|
|
128
|
+
}, Te = Object.keys(V).length > 0, Ee = !y && x ? /* @__PURE__ */ d(ne, {
|
|
128
129
|
icon: x.icon,
|
|
129
130
|
title: x.heading,
|
|
130
131
|
subtitle: x.text,
|
|
@@ -180,7 +181,7 @@ function C({ columns: p = [], items: m, getId: g, loading: y = !1, empty: x, pag
|
|
|
180
181
|
}) : null;
|
|
181
182
|
return /* @__PURE__ */ f("div", {
|
|
182
183
|
className: `select-datatable${M ? " select-datatable--flush" : ""}`,
|
|
183
|
-
children: [/* @__PURE__ */ d(
|
|
184
|
+
children: [/* @__PURE__ */ d(re, {
|
|
184
185
|
columns: Ce,
|
|
185
186
|
empty: Ee,
|
|
186
187
|
footer: j,
|
package/dist/SelectFunnel.d.ts
CHANGED
|
@@ -4,9 +4,17 @@ type SelectFunnelOwnProps = {
|
|
|
4
4
|
stages: SelectFunnelStage[];
|
|
5
5
|
format?: (n: number) => string;
|
|
6
6
|
palette?: 'ramp' | 'mono';
|
|
7
|
-
/** Texto da conversão de uma etapa sobre a anterior (padrão "56%"). */
|
|
7
|
+
/** Texto da conversão de uma etapa sobre a anterior (padrão "56%"); no `shape="funnel"`, sobre a primeira. */
|
|
8
8
|
convLabel?: (pct: number, index: number) => ReactNode;
|
|
9
|
+
/** 0.1.235: `funnel` = os trapézios que afinam etapa a etapa. Padrão `bars`, as barras horizontais. */
|
|
10
|
+
shape?: 'bars' | 'funnel';
|
|
9
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* O trapézio de uma etapa com os cantos arredondados: em cima a largura dela, embaixo a da seguinte (em % da maior). Cada
|
|
14
|
+
* canto vira uma curva que começa `SHAPE_R` antes do vértice, encurtada quando o lado é menor que dois raios (a etapa
|
|
15
|
+
* estreita do fim).
|
|
16
|
+
*/
|
|
17
|
+
export declare function funnelStagePath(topPct: number, bottomPct: number): string;
|
|
10
18
|
export type SelectFunnelProps = SelectFunnelOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectFunnelOwnProps>;
|
|
11
19
|
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>>;
|
|
12
20
|
export {};
|
package/dist/SelectFunnel.js
CHANGED
|
@@ -3,14 +3,73 @@ import { chartColor as e, formatCompact as t } from "./chartUtils.js";
|
|
|
3
3
|
import { forwardRef as n } from "react";
|
|
4
4
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
5
|
//#region src/SelectFunnel.tsx
|
|
6
|
-
var a =
|
|
7
|
-
|
|
6
|
+
var a = 160, o = 52, s = 6;
|
|
7
|
+
function c(e, t) {
|
|
8
|
+
let n = a * e / 100, r = a * t / 100, i = [
|
|
9
|
+
[(a - n) / 2, 0],
|
|
10
|
+
[(a + n) / 2, 0],
|
|
11
|
+
[(a + r) / 2, o],
|
|
12
|
+
[(a - r) / 2, o]
|
|
13
|
+
], c = (e) => e.toFixed(1), l = "";
|
|
14
|
+
return i.forEach((e, t) => {
|
|
15
|
+
let n = i[(t + 3) % 4], r = i[(t + 1) % 4], a = Math.hypot(n[0] - e[0], n[1] - e[1]) || 1, o = Math.hypot(r[0] - e[0], r[1] - e[1]) || 1, u = Math.min(s, a / 2, o / 2), d = [e[0] + (n[0] - e[0]) / a * u, e[1] + (n[1] - e[1]) / a * u], f = [e[0] + (r[0] - e[0]) / o * u, e[1] + (r[1] - e[1]) / o * u];
|
|
16
|
+
l += `${t === 0 ? "M" : "L"}${c(d[0])} ${c(d[1])} Q${c(e[0])} ${c(e[1])} ${c(f[0])} ${c(f[1])} `;
|
|
17
|
+
}), l + "Z";
|
|
18
|
+
}
|
|
19
|
+
var l = n(function({ stages: n, format: s = t, palette: l = "ramp", convLabel: u, shape: d = "bars", className: f, ...p }, m) {
|
|
20
|
+
let h = Math.max(1, ...n.map((e) => e.value));
|
|
21
|
+
if (d === "funnel") {
|
|
22
|
+
var g;
|
|
23
|
+
let e = ((g = n[0]) == null ? void 0 : g.value) || 1, t = (e) => Math.max(3, e / h * 100);
|
|
24
|
+
return /* @__PURE__ */ r("div", {
|
|
25
|
+
ref: m,
|
|
26
|
+
...p,
|
|
27
|
+
className: `select-funnel select-funnel--shape${f ? " " + f : ""}`,
|
|
28
|
+
children: n.map((l, d) => {
|
|
29
|
+
let f = d === n.length - 1, p = f ? l : n[d + 1], m = l.value / e * 100, h = l.color ?? (f ? "var(--select-chart-paid)" : "color-mix(in srgb, var(--select-chart-neutral) 40%, transparent)");
|
|
30
|
+
return /* @__PURE__ */ i("div", {
|
|
31
|
+
className: `select-funnel__step${f ? " select-funnel__step--last" : ""}`,
|
|
32
|
+
children: [/* @__PURE__ */ r("svg", {
|
|
33
|
+
className: "select-funnel__shape",
|
|
34
|
+
viewBox: `0 0 ${a} ${o}`,
|
|
35
|
+
"aria-hidden": "true",
|
|
36
|
+
children: /* @__PURE__ */ r("path", {
|
|
37
|
+
d: c(t(l.value), t(p.value)),
|
|
38
|
+
style: { fill: h }
|
|
39
|
+
})
|
|
40
|
+
}), /* @__PURE__ */ i("div", {
|
|
41
|
+
className: "select-funnel__steptext",
|
|
42
|
+
children: [
|
|
43
|
+
/* @__PURE__ */ r("span", {
|
|
44
|
+
className: "select-funnel__label",
|
|
45
|
+
children: l.label
|
|
46
|
+
}),
|
|
47
|
+
/* @__PURE__ */ i("span", {
|
|
48
|
+
className: "select-funnel__nums",
|
|
49
|
+
children: [/* @__PURE__ */ r("span", {
|
|
50
|
+
className: "select-funnel__value",
|
|
51
|
+
children: s(l.value)
|
|
52
|
+
}), d > 0 && /* @__PURE__ */ i("span", {
|
|
53
|
+
className: `select-funnel__conv${l.flag ? " is-flagged" : ""}`,
|
|
54
|
+
children: [l.flag ? "▼ " : "", u ? u(m, d) : `${m.toFixed(1).replace(".", ",")}%`]
|
|
55
|
+
})]
|
|
56
|
+
}),
|
|
57
|
+
l.note != null && /* @__PURE__ */ r("span", {
|
|
58
|
+
className: "select-funnel__note",
|
|
59
|
+
children: l.note
|
|
60
|
+
})
|
|
61
|
+
]
|
|
62
|
+
})]
|
|
63
|
+
}, d);
|
|
64
|
+
})
|
|
65
|
+
});
|
|
66
|
+
}
|
|
8
67
|
return /* @__PURE__ */ r("div", {
|
|
9
|
-
ref:
|
|
10
|
-
...
|
|
11
|
-
className: `select-funnel select-funnel--${
|
|
12
|
-
children: n.map((t,
|
|
13
|
-
let
|
|
68
|
+
ref: m,
|
|
69
|
+
...p,
|
|
70
|
+
className: `select-funnel select-funnel--${l}${f ? " " + f : ""}`,
|
|
71
|
+
children: n.map((t, a) => {
|
|
72
|
+
let o = a > 0 ? n[a - 1].value || 1 : t.value || 1, c = a > 0 ? t.value / o * 100 : 100, d = l === "mono", f = t.color ?? (d ? a === n.length - 1 ? "var(--select-chart-paid)" : "var(--select-chart-1)" : e(a));
|
|
14
73
|
return /* @__PURE__ */ i("div", {
|
|
15
74
|
className: "select-funnel__row",
|
|
16
75
|
children: [
|
|
@@ -23,8 +82,8 @@ var a = n(function({ stages: n, format: a = t, palette: o = "ramp", convLabel: s
|
|
|
23
82
|
children: /* @__PURE__ */ r("div", {
|
|
24
83
|
className: "select-funnel__bar",
|
|
25
84
|
style: {
|
|
26
|
-
width: `${t.value /
|
|
27
|
-
background:
|
|
85
|
+
width: `${t.value / h * 100}%`,
|
|
86
|
+
background: d ? f : `linear-gradient(90deg, ${f}, color-mix(in srgb, ${f} 50%, transparent))`
|
|
28
87
|
}
|
|
29
88
|
})
|
|
30
89
|
}),
|
|
@@ -32,18 +91,18 @@ var a = n(function({ stages: n, format: a = t, palette: o = "ramp", convLabel: s
|
|
|
32
91
|
className: "select-funnel__meta",
|
|
33
92
|
children: [/* @__PURE__ */ r("span", {
|
|
34
93
|
className: "select-funnel__value",
|
|
35
|
-
children:
|
|
36
|
-
}),
|
|
94
|
+
children: s(t.value)
|
|
95
|
+
}), a > 0 && /* @__PURE__ */ i("span", {
|
|
37
96
|
className: `select-funnel__conv${t.flag ? " is-flagged" : ""}`,
|
|
38
|
-
children: [t.flag ? "▼ " : "",
|
|
97
|
+
children: [t.flag ? "▼ " : "", u ? u(c, a) : `${c.toFixed(0)}%`]
|
|
39
98
|
})]
|
|
40
99
|
})
|
|
41
100
|
]
|
|
42
|
-
},
|
|
101
|
+
}, a);
|
|
43
102
|
})
|
|
44
103
|
});
|
|
45
104
|
});
|
|
46
105
|
//#endregion
|
|
47
|
-
export {
|
|
106
|
+
export { l as SelectFunnel, c as funnelStagePath };
|
|
48
107
|
|
|
49
108
|
//# sourceMappingURL=SelectFunnel.js.map
|
package/dist/SelectKpiBand.d.ts
CHANGED
|
@@ -5,7 +5,23 @@ type SelectKpiBandOwnProps = {
|
|
|
5
5
|
as?: 'div' | 'dl';
|
|
6
6
|
/** 0.1.230: as colunas da faixa (4 → 4/2/1, 3 → 3/1, 2 → 2/1), sem o buraco da grade. Padrão: quebra sozinha. */
|
|
7
7
|
columns?: 2 | 3 | 4;
|
|
8
|
+
/** 0.1.235: os painéis embaixo dos números, no mesmo card (`SelectKpiBandPanel`). Só na faixa `div`. */
|
|
9
|
+
panels?: ReactNode;
|
|
8
10
|
};
|
|
9
11
|
export type SelectKpiBandProps = SelectKpiBandOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectKpiBandOwnProps>;
|
|
10
12
|
export declare const SelectKpiBand: import('react').ForwardRefExoticComponent<SelectKpiBandOwnProps & Omit<Omit<import('react').DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectKpiBandOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export type SelectKpiBandPanelProps = {
|
|
14
|
+
title: ReactNode;
|
|
15
|
+
/** O "i" ao lado do título (SelectInfoTip): o que o painel conta. */
|
|
16
|
+
help?: ReactNode;
|
|
17
|
+
/** À direita do título (o "Ver análises"). */
|
|
18
|
+
action?: ReactNode;
|
|
19
|
+
/** O painel largo: todas as colunas da faixa menos uma. Sem ele, uma coluna. */
|
|
20
|
+
wide?: boolean;
|
|
21
|
+
/** Os valores ocultos (o olho do cabeçalho): o conteúdo borra, como no `SelectChartCard`. */
|
|
22
|
+
hideValues?: boolean;
|
|
23
|
+
children: ReactNode;
|
|
24
|
+
} & Omit<ComponentPropsWithoutRef<'section'>, 'title' | 'children'>;
|
|
25
|
+
/** Um painel embaixo dos números da `SelectKpiBand` (0.1.235): o título na faixa, o conteúdo na caixa de dentro. */
|
|
26
|
+
export declare function SelectKpiBandPanel({ title, help, action, wide, hideValues, children, className, ...rest }: SelectKpiBandPanelProps): import("react").JSX.Element;
|
|
11
27
|
export {};
|
package/dist/SelectKpiBand.js
CHANGED
|
@@ -1,28 +1,51 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { SelectInfoTip as e } from "./SelectInfoTip.js";
|
|
3
|
+
import { FrameBody as t, useInsideFrame as n } from "./internal/frame.js";
|
|
4
|
+
import { KpiListContext as r } from "./internal/kpiList.js";
|
|
5
|
+
import { forwardRef as i } from "react";
|
|
6
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
7
|
//#region src/SelectKpiBand.tsx
|
|
7
|
-
var
|
|
8
|
-
let
|
|
9
|
-
return
|
|
8
|
+
var s = i(function({ children: e, as: t = "div", columns: i, panels: s, className: c, ...l }, u) {
|
|
9
|
+
let d = n(), f = `select-kpiband${d ? " select-kpiband--nested" : ""}${i && !d ? ` select-kpiband--cols-${i}` : ""}${c ? " " + c : ""}`;
|
|
10
|
+
return t === "dl" ? /* @__PURE__ */ a(r.Provider, {
|
|
10
11
|
value: !0,
|
|
11
|
-
children: /* @__PURE__ */
|
|
12
|
-
ref:
|
|
13
|
-
...
|
|
14
|
-
className:
|
|
15
|
-
children:
|
|
12
|
+
children: /* @__PURE__ */ a("dl", {
|
|
13
|
+
ref: u,
|
|
14
|
+
...l,
|
|
15
|
+
className: f,
|
|
16
|
+
children: e
|
|
16
17
|
})
|
|
17
|
-
}) : /* @__PURE__ */
|
|
18
|
-
ref:
|
|
18
|
+
}) : /* @__PURE__ */ o("div", {
|
|
19
|
+
ref: u,
|
|
19
20
|
role: "group",
|
|
20
|
-
...
|
|
21
|
-
className:
|
|
22
|
-
children:
|
|
21
|
+
...l,
|
|
22
|
+
className: f,
|
|
23
|
+
children: [e, s != null && !d && /* @__PURE__ */ a("div", {
|
|
24
|
+
className: "select-kpiband__panels",
|
|
25
|
+
children: s
|
|
26
|
+
})]
|
|
23
27
|
});
|
|
24
28
|
});
|
|
29
|
+
function c({ title: n, help: r, action: i, wide: s = !1, hideValues: c = !1, children: l, className: u, ...d }) {
|
|
30
|
+
return /* @__PURE__ */ o("section", {
|
|
31
|
+
...d,
|
|
32
|
+
className: `select-kpipanel${s ? " select-kpipanel--wide" : ""}${u ? " " + u : ""}`,
|
|
33
|
+
children: [/* @__PURE__ */ o("div", {
|
|
34
|
+
className: "select-kpipanel__head",
|
|
35
|
+
children: [/* @__PURE__ */ o("h2", {
|
|
36
|
+
className: "select-kpipanel__title",
|
|
37
|
+
children: [n, r != null && /* @__PURE__ */ a(e, { content: r })]
|
|
38
|
+
}), i != null && /* @__PURE__ */ a("div", {
|
|
39
|
+
className: "select-kpipanel__action",
|
|
40
|
+
children: i
|
|
41
|
+
})]
|
|
42
|
+
}), /* @__PURE__ */ a("div", {
|
|
43
|
+
className: `select-kpipanel__body${c ? " is-blurred" : ""}`,
|
|
44
|
+
children: /* @__PURE__ */ a(t, { children: l })
|
|
45
|
+
})]
|
|
46
|
+
});
|
|
47
|
+
}
|
|
25
48
|
//#endregion
|
|
26
|
-
export {
|
|
49
|
+
export { s as SelectKpiBand, c as SelectKpiBandPanel };
|
|
27
50
|
|
|
28
51
|
//# sourceMappingURL=SelectKpiBand.js.map
|
package/dist/SelectKpiCard.d.ts
CHANGED
|
@@ -25,6 +25,11 @@ type SelectKpiCardOwnProps = {
|
|
|
25
25
|
/** O filtro que este card representa está aplicado — moldura de destaque + `aria-pressed`.
|
|
26
26
|
* Só faz sentido junto com `onClick`. */
|
|
27
27
|
selected?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* 0.1.235: `lg` = o número grande do Início (dono, 09/11/2026: "aumentar as fontes de números para dar mais ênfase"),
|
|
30
|
+
* que cresce com a largura do próprio card entre 1,375rem e 2,375rem. Padrão `md`.
|
|
31
|
+
*/
|
|
32
|
+
size?: 'md' | 'lg';
|
|
28
33
|
};
|
|
29
34
|
export type SelectKpiCardProps = SelectKpiCardOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectKpiCardOwnProps>;
|
|
30
35
|
export declare const SelectKpiCard: import('react').ForwardRefExoticComponent<SelectKpiCardOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectKpiCardOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
|
package/dist/SelectKpiCard.js
CHANGED
|
@@ -3,8 +3,8 @@ import { useKpiList as t } from "./internal/kpiList.js";
|
|
|
3
3
|
import { forwardRef as n } from "react";
|
|
4
4
|
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
5
|
//#region src/SelectKpiCard.tsx
|
|
6
|
-
var o = n(function({ label: n, value: o, caption: s, chart: c, help: l, tone: u, bare: d = !1, onClick: f, selected: p = !1, loading: m = !1,
|
|
7
|
-
let
|
|
6
|
+
var o = n(function({ label: n, value: o, caption: s, chart: c, help: l, tone: u, bare: d = !1, onClick: f, selected: p = !1, loading: m = !1, size: h = "md", className: g, ..._ }, v) {
|
|
7
|
+
let y = f != null, b = t(), x = b ? "dt" : "span", S = b ? "dd" : "span", C = b ? "dd" : "div", w = y ? {
|
|
8
8
|
role: "button",
|
|
9
9
|
tabIndex: 0,
|
|
10
10
|
"aria-pressed": p,
|
|
@@ -12,13 +12,13 @@ var o = n(function({ label: n, value: o, caption: s, chart: c, help: l, tone: u,
|
|
|
12
12
|
onKeyDown: (e) => {
|
|
13
13
|
e.target === e.currentTarget && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), f());
|
|
14
14
|
}
|
|
15
|
-
} : {},
|
|
15
|
+
} : {}, T = "select-kpi" + (d ? " select-kpi--bare" : "") + (h === "lg" ? " select-kpi--lg" : "") + (y ? " select-kpi--interactive" : "") + (y && p ? " select-kpi--selected" : "") + (g ? " " + g : "");
|
|
16
16
|
return /* @__PURE__ */ a("div", {
|
|
17
|
-
ref:
|
|
18
|
-
...
|
|
19
|
-
...
|
|
20
|
-
className:
|
|
21
|
-
children: [/* @__PURE__ */ a(
|
|
17
|
+
ref: v,
|
|
18
|
+
..._,
|
|
19
|
+
...w,
|
|
20
|
+
className: T,
|
|
21
|
+
children: [/* @__PURE__ */ a(x, {
|
|
22
22
|
className: `select-kpi__label${l == null ? "" : " select-kpi__label--help"}`,
|
|
23
23
|
children: [l == null ? n : /* @__PURE__ */ i("span", {
|
|
24
24
|
className: "select-kpi__labeltext",
|
|
@@ -27,7 +27,7 @@ var o = n(function({ label: n, value: o, caption: s, chart: c, help: l, tone: u,
|
|
|
27
27
|
content: l,
|
|
28
28
|
placement: "top-end"
|
|
29
29
|
})]
|
|
30
|
-
}), m ?
|
|
30
|
+
}), m ? b ? /* @__PURE__ */ a("dd", {
|
|
31
31
|
className: "select-kpi__loading",
|
|
32
32
|
"aria-hidden": "true",
|
|
33
33
|
children: [/* @__PURE__ */ i("span", { className: "select-skeleton select-kpi__skelvalue" }), /* @__PURE__ */ i("span", { className: "select-skeleton select-kpi__skelcaption" })]
|
|
@@ -38,15 +38,15 @@ var o = n(function({ label: n, value: o, caption: s, chart: c, help: l, tone: u,
|
|
|
38
38
|
className: "select-skeleton select-kpi__skelcaption",
|
|
39
39
|
"aria-hidden": "true"
|
|
40
40
|
})] }) : /* @__PURE__ */ a(r, { children: [
|
|
41
|
-
/* @__PURE__ */ i(
|
|
41
|
+
/* @__PURE__ */ i(S, {
|
|
42
42
|
className: `select-kpi__value${u ? ` select-kpi__value--${u}` : ""}`,
|
|
43
43
|
children: o
|
|
44
44
|
}),
|
|
45
|
-
c != null && /* @__PURE__ */ i(
|
|
45
|
+
c != null && /* @__PURE__ */ i(C, {
|
|
46
46
|
className: "select-kpi__chart",
|
|
47
47
|
children: c
|
|
48
48
|
}),
|
|
49
|
-
s != null && /* @__PURE__ */ i(
|
|
49
|
+
s != null && /* @__PURE__ */ i(S, {
|
|
50
50
|
className: "select-kpi__caption",
|
|
51
51
|
children: s
|
|
52
52
|
})
|
package/dist/SelectTable.d.ts
CHANGED
|
@@ -150,20 +150,4 @@ type SelectTableCellOwnProps = {
|
|
|
150
150
|
};
|
|
151
151
|
export type SelectTableCellProps = SelectTableCellOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectTableCellOwnProps>;
|
|
152
152
|
export declare const SelectTableCell: import('react').ForwardRefExoticComponent<SelectTableCellOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectTableCellOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
|
|
153
|
-
type
|
|
154
|
-
icon?: ReactNode;
|
|
155
|
-
title: ReactNode;
|
|
156
|
-
subtitle?: ReactNode;
|
|
157
|
-
/** Optional CTA below the text (e.g. "Enable Billing") — for standalone empty cards. Várias ações ficam lado a lado. */
|
|
158
|
-
action?: ReactNode;
|
|
159
|
-
/** 0.1.207: o vazio que é um ERRO (a lista não carregou): o ícone no tom crítico. O `role="alert"` é de quem usa. */
|
|
160
|
-
tone?: 'critical';
|
|
161
|
-
/**
|
|
162
|
-
* 0.1.208: a altura mínima, com o texto centrado nela — o vazio que fica no LUGAR de um gráfico ocupa a altura do
|
|
163
|
-
* gráfico, e o cartão não encolhe quando o período não tem dado. Um comprimento CSS (`'11.25rem'`).
|
|
164
|
-
*/
|
|
165
|
-
minHeight?: string;
|
|
166
|
-
};
|
|
167
|
-
export type SelectTableEmptyProps = SelectTableEmptyOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectTableEmptyOwnProps>;
|
|
168
|
-
export declare const SelectTableEmpty: import('react').ForwardRefExoticComponent<SelectTableEmptyOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectTableEmptyOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
|
|
169
|
-
export {};
|
|
153
|
+
export { SelectTableEmpty, type SelectTableEmptyProps } from './SelectTableEmpty';
|