@selectwin/kit 0.1.239 → 0.1.241
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/SelectKpiBand.d.ts +3 -1
- package/dist/SelectKpiBand.js +28 -27
- package/dist/SelectRecordCard.d.ts +2 -0
- package/dist/SelectRecordCard.js +13 -12
- package/dist/SelectTable.d.ts +6 -1
- package/dist/SelectTable.js +6 -6
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/SelectKpiBand.d.ts
CHANGED
|
@@ -18,10 +18,12 @@ export type SelectKpiBandPanelProps = {
|
|
|
18
18
|
action?: ReactNode;
|
|
19
19
|
/** O painel largo: todas as colunas da faixa menos uma. Sem ele, uma coluna. */
|
|
20
20
|
wide?: boolean;
|
|
21
|
+
/** 0.1.241: o painel da faixa inteira (o gráfico embaixo de todos os números). Vence o `wide`. */
|
|
22
|
+
full?: boolean;
|
|
21
23
|
/** Os valores ocultos (o olho do cabeçalho): o conteúdo borra, como no `SelectChartCard`. */
|
|
22
24
|
hideValues?: boolean;
|
|
23
25
|
children: ReactNode;
|
|
24
26
|
} & Omit<ComponentPropsWithoutRef<'section'>, 'title' | 'children'>;
|
|
25
27
|
/** 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;
|
|
28
|
+
export declare function SelectKpiBandPanel({ title, help, action, wide, full, hideValues, children, className, ...rest }: SelectKpiBandPanelProps): import("react").JSX.Element;
|
|
27
29
|
export {};
|
package/dist/SelectKpiBand.js
CHANGED
|
@@ -2,50 +2,51 @@
|
|
|
2
2
|
import { SelectInfoTip as e } from "./SelectInfoTip.js";
|
|
3
3
|
import { FrameBody as t, useInsideFrame as n } from "./internal/frame.js";
|
|
4
4
|
import { KpiListContext as r } from "./internal/kpiList.js";
|
|
5
|
-
import {
|
|
6
|
-
import { jsx as
|
|
5
|
+
import { Children as i, forwardRef as a } from "react";
|
|
6
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
7
7
|
//#region src/SelectKpiBand.tsx
|
|
8
|
-
var
|
|
9
|
-
let
|
|
10
|
-
return t === "dl" ? /* @__PURE__ */
|
|
8
|
+
var c = a(function({ children: e, as: t = "div", columns: a, panels: c, className: l, ...u }, d) {
|
|
9
|
+
let f = n(), p = i.toArray(e).length, m = a ?? (c != null && p >= 2 && p <= 4 ? p : void 0), h = `select-kpiband${f ? " select-kpiband--nested" : ""}${m && !f ? ` select-kpiband--cols-${m}` : ""}${l ? " " + l : ""}`;
|
|
10
|
+
return t === "dl" ? /* @__PURE__ */ o(r.Provider, {
|
|
11
11
|
value: !0,
|
|
12
|
-
children: /* @__PURE__ */
|
|
13
|
-
ref:
|
|
14
|
-
...
|
|
15
|
-
className:
|
|
12
|
+
children: /* @__PURE__ */ o("dl", {
|
|
13
|
+
ref: d,
|
|
14
|
+
...u,
|
|
15
|
+
className: h,
|
|
16
16
|
children: e
|
|
17
17
|
})
|
|
18
|
-
}) : /* @__PURE__ */
|
|
19
|
-
ref:
|
|
18
|
+
}) : /* @__PURE__ */ s("div", {
|
|
19
|
+
ref: d,
|
|
20
20
|
role: "group",
|
|
21
|
-
...
|
|
22
|
-
className:
|
|
23
|
-
children: [e,
|
|
21
|
+
...u,
|
|
22
|
+
className: h,
|
|
23
|
+
children: [e, c != null && !f && /* @__PURE__ */ o("div", {
|
|
24
24
|
className: "select-kpiband__panels",
|
|
25
|
-
children:
|
|
25
|
+
children: c
|
|
26
26
|
})]
|
|
27
27
|
});
|
|
28
28
|
});
|
|
29
|
-
function
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
function l({ title: n, help: r, action: i, wide: a = !1, full: c = !1, hideValues: l = !1, children: u, className: d, ...f }) {
|
|
30
|
+
let p = c ? " select-kpipanel--full" : a ? " select-kpipanel--wide" : "";
|
|
31
|
+
return /* @__PURE__ */ s("section", {
|
|
32
|
+
...f,
|
|
33
|
+
className: `select-kpipanel${p}${d ? " " + d : ""}`,
|
|
34
|
+
children: [/* @__PURE__ */ s("div", {
|
|
34
35
|
className: "select-kpipanel__head",
|
|
35
|
-
children: [/* @__PURE__ */
|
|
36
|
+
children: [/* @__PURE__ */ s("h2", {
|
|
36
37
|
className: "select-kpipanel__title",
|
|
37
|
-
children: [n, r != null && /* @__PURE__ */
|
|
38
|
-
}), i != null && /* @__PURE__ */
|
|
38
|
+
children: [n, r != null && /* @__PURE__ */ o(e, { content: r })]
|
|
39
|
+
}), i != null && /* @__PURE__ */ o("div", {
|
|
39
40
|
className: "select-kpipanel__action",
|
|
40
41
|
children: i
|
|
41
42
|
})]
|
|
42
|
-
}), /* @__PURE__ */
|
|
43
|
-
className: `select-kpipanel__body${
|
|
44
|
-
children: /* @__PURE__ */
|
|
43
|
+
}), /* @__PURE__ */ o("div", {
|
|
44
|
+
className: `select-kpipanel__body${l ? " is-blurred" : ""}`,
|
|
45
|
+
children: /* @__PURE__ */ o(t, { children: u })
|
|
45
46
|
})]
|
|
46
47
|
});
|
|
47
48
|
}
|
|
48
49
|
//#endregion
|
|
49
|
-
export {
|
|
50
|
+
export { c as SelectKpiBand, l as SelectKpiBandPanel };
|
|
50
51
|
|
|
51
52
|
//# sourceMappingURL=SelectKpiBand.js.map
|
|
@@ -33,6 +33,8 @@ type SelectRecordCardOwnProps = {
|
|
|
33
33
|
to?: string;
|
|
34
34
|
/** Faixa de destaque no topo (ex.: o registro em vigor). */
|
|
35
35
|
accent?: boolean;
|
|
36
|
+
/** 0.1.240: o card do que está aberto ao lado (a conexão escolhida): a borda forte e `aria-current`. */
|
|
37
|
+
selected?: boolean;
|
|
36
38
|
/**
|
|
37
39
|
* Capa larga (16:9) no topo do card — a imagem que o lojista reconhece de relance (a capa de
|
|
38
40
|
* um curso). `null` = o registro não tem capa: mostra `coverFallback` num fundo neutro, para a
|
package/dist/SelectRecordCard.js
CHANGED
|
@@ -3,24 +3,25 @@ import { forwardRef as t, useEffect as n, useState as r } from "react";
|
|
|
3
3
|
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
4
4
|
import { Link as s } from "react-router-dom";
|
|
5
5
|
//#region src/SelectRecordCard.tsx
|
|
6
|
-
var c = t(function({ media: t, title: n, subtitle: r, actions: i, body: c, facts: d, tags: f, status: p, meta: m, to: h, accent: g = !1,
|
|
7
|
-
let
|
|
6
|
+
var c = t(function({ media: t, title: n, subtitle: r, actions: i, body: c, facts: d, tags: f, status: p, meta: m, to: h, accent: g = !1, selected: _ = !1, cover: v, coverFallback: y, preview: b, className: x, ...S }, C) {
|
|
7
|
+
let w = p != null || m != null, T = e(h);
|
|
8
8
|
return /* @__PURE__ */ o("div", {
|
|
9
|
-
ref:
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
ref: C,
|
|
10
|
+
"aria-current": _ || void 0,
|
|
11
|
+
...S,
|
|
12
|
+
className: `select-rcard${T ? " select-rcard--link" : ""}${_ ? " is-selected" : ""}${x ? " " + x : ""}`,
|
|
12
13
|
children: [
|
|
13
14
|
g && /* @__PURE__ */ a("span", {
|
|
14
15
|
className: "select-rcard__accent",
|
|
15
16
|
"aria-hidden": "true"
|
|
16
17
|
}),
|
|
17
|
-
|
|
18
|
+
v === void 0 ? b ? /* @__PURE__ */ a("span", {
|
|
18
19
|
className: "select-rcard__preview",
|
|
19
20
|
"aria-hidden": "true",
|
|
20
|
-
children:
|
|
21
|
+
children: b
|
|
21
22
|
}) : null : /* @__PURE__ */ a(u, {
|
|
22
|
-
src:
|
|
23
|
-
fallback:
|
|
23
|
+
src: v,
|
|
24
|
+
fallback: y
|
|
24
25
|
}),
|
|
25
26
|
/* @__PURE__ */ o("div", {
|
|
26
27
|
className: "select-rcard__main",
|
|
@@ -36,8 +37,8 @@ var c = t(function({ media: t, title: n, subtitle: r, actions: i, body: c, facts
|
|
|
36
37
|
className: "select-rcard__ident",
|
|
37
38
|
children: [/* @__PURE__ */ a("span", {
|
|
38
39
|
className: "select-rcard__title",
|
|
39
|
-
children:
|
|
40
|
-
to:
|
|
40
|
+
children: T ? /* @__PURE__ */ a(s, {
|
|
41
|
+
to: T,
|
|
41
42
|
className: "select-rcard__link",
|
|
42
43
|
children: n
|
|
43
44
|
}) : n
|
|
@@ -66,7 +67,7 @@ var c = t(function({ media: t, title: n, subtitle: r, actions: i, body: c, facts
|
|
|
66
67
|
})
|
|
67
68
|
]
|
|
68
69
|
}),
|
|
69
|
-
|
|
70
|
+
w && /* @__PURE__ */ o("div", {
|
|
70
71
|
className: "select-rcard__foot",
|
|
71
72
|
children: [p && /* @__PURE__ */ o("span", {
|
|
72
73
|
className: "select-rcard__status",
|
package/dist/SelectTable.d.ts
CHANGED
|
@@ -129,9 +129,14 @@ type SelectTableRowOwnProps = {
|
|
|
129
129
|
* linha toda (`<SelectTableCell span="all">`), no fundo afundado.
|
|
130
130
|
*/
|
|
131
131
|
section?: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* 0.1.240: a linha de um registro desligado (a automação pausada): as células esmaecem; a que tem um controle (a
|
|
134
|
+
* chave, o menu) fica cheia.
|
|
135
|
+
*/
|
|
136
|
+
muted?: boolean;
|
|
132
137
|
};
|
|
133
138
|
export type SelectTableRowProps = SelectTableRowOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectTableRowOwnProps | 'role'>;
|
|
134
|
-
export declare function SelectTableRow({ children, onClick, expanded, nested, current, section, className, ...rest }: SelectTableRowProps): import("react").JSX.Element;
|
|
139
|
+
export declare function SelectTableRow({ children, onClick, expanded, nested, current, section, muted, className, ...rest }: SelectTableRowProps): import("react").JSX.Element;
|
|
135
140
|
type SelectTableCellOwnProps = {
|
|
136
141
|
children: ReactNode;
|
|
137
142
|
align?: 'start' | 'end' | 'center';
|
package/dist/SelectTable.js
CHANGED
|
@@ -207,11 +207,11 @@ var O = d(function({ name: e, secondary: t, src: n, badge: r, className: i, ...o
|
|
|
207
207
|
})]
|
|
208
208
|
});
|
|
209
209
|
});
|
|
210
|
-
function k({ children: e, onClick: t, expanded: n, nested: r = !1, current: i = !1, section: a = !1,
|
|
211
|
-
let
|
|
210
|
+
function k({ children: e, onClick: t, expanded: n, nested: r = !1, current: i = !1, section: a = !1, muted: o = !1, className: s, ...c }) {
|
|
211
|
+
let l = `select-table__row${t ? " select-table__row--clickable" : ""}${r ? " select-table__row--nested" : ""}${a ? " select-table__row--section" : ""}${o ? " select-table__row--muted" : ""}${n ? " is-expanded" : ""}${i ? " is-current" : ""}${s ? " " + s : ""}`;
|
|
212
212
|
return t ? /* @__PURE__ */ y("div", {
|
|
213
|
-
...
|
|
214
|
-
className:
|
|
213
|
+
...c,
|
|
214
|
+
className: l,
|
|
215
215
|
role: "row",
|
|
216
216
|
tabIndex: 0,
|
|
217
217
|
"aria-expanded": n,
|
|
@@ -224,8 +224,8 @@ function k({ children: e, onClick: t, expanded: n, nested: r = !1, current: i =
|
|
|
224
224
|
},
|
|
225
225
|
children: e
|
|
226
226
|
}) : /* @__PURE__ */ y("div", {
|
|
227
|
-
...
|
|
228
|
-
className:
|
|
227
|
+
...c,
|
|
228
|
+
className: l,
|
|
229
229
|
role: "row",
|
|
230
230
|
"aria-current": i || void 0,
|
|
231
231
|
children: e
|