@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/dist/SelectTable.js
CHANGED
|
@@ -3,38 +3,39 @@ import { useSelectReveal as n } from "./internal/useSelectReveal.js";
|
|
|
3
3
|
import { FrameBody as r, useFrameKind as i } from "./internal/frame.js";
|
|
4
4
|
import { SelectAvatar as a } from "./SelectAvatar.js";
|
|
5
5
|
import { SelectListChrome as o, listChromeShape as s } from "./internal/listChrome.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { SelectTableEmpty as c } from "./SelectTableEmpty.js";
|
|
7
|
+
import { Children as l, createContext as u, forwardRef as d, useCallback as f, useContext as p, useId as m, useLayoutEffect as h, useRef as g, useState as _ } from "react";
|
|
8
|
+
import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
8
9
|
//#region src/SelectTable.tsx
|
|
9
|
-
var
|
|
10
|
-
function
|
|
10
|
+
var x = 40, S = 1200, C = 8;
|
|
11
|
+
function w(e) {
|
|
11
12
|
let t = parseFloat(getComputedStyle(document.documentElement).fontSize) || 16;
|
|
12
13
|
return `${Math.round(e / t * 1e3) / 1e3}rem`;
|
|
13
14
|
}
|
|
14
|
-
var
|
|
15
|
-
let
|
|
16
|
-
open:
|
|
17
|
-
onToggle: () =>
|
|
18
|
-
controls:
|
|
19
|
-
} : void 0,
|
|
20
|
-
title:
|
|
21
|
-
description:
|
|
15
|
+
var T = u(0), E = d(function({ columns: t, children: a, empty: c, footer: u, title: d, help: p, description: v, action: E, filters: O, tools: k, onColumnResize: A, onColumnResizeReset: j, collapsible: M = !1, defaultOpen: N = !0, flush: P = !1, label: F, minWidth: I, sizing: L = "even", className: R, ...z }, B) {
|
|
16
|
+
let V = F ?? (typeof d == "string" ? d : void 0), [H, U] = _(N), W = m(), G = M && d != null ? {
|
|
17
|
+
open: H,
|
|
18
|
+
onToggle: () => U((e) => !e),
|
|
19
|
+
controls: W
|
|
20
|
+
} : void 0, K = l.count(a) === 0, q = K && !!c, { hasFilters: J, hasTitleRow: Y } = s({
|
|
21
|
+
title: d,
|
|
22
|
+
description: v,
|
|
22
23
|
action: E,
|
|
23
|
-
filters:
|
|
24
|
-
tools:
|
|
25
|
-
}),
|
|
24
|
+
filters: O,
|
|
25
|
+
tools: k
|
|
26
|
+
}), ee = q && !Y && !J, X = i(), te = X === "body", ne = X === "list", re = n({
|
|
26
27
|
selector: ".select-table__row",
|
|
27
28
|
y: 8,
|
|
28
29
|
duration: .45,
|
|
29
30
|
stagger: .05,
|
|
30
31
|
scroll: !0
|
|
31
|
-
}), Z = t.length ? t.map((e) => e.width ?? `minmax(${e.minWidth ?? "var(--select-table-col-min, 6.5rem)"}, ${e.grow ?? 1}fr)`).join(" ") : "1fr", Q =
|
|
32
|
-
Q.current = e, typeof
|
|
33
|
-
}, [
|
|
34
|
-
|
|
32
|
+
}), Z = t.length ? t.map((e) => e.width ?? `minmax(${e.minWidth ?? "var(--select-table-col-min, 6.5rem)"}, ${e.grow ?? 1}fr)`).join(" ") : "1fr", Q = g(null), ie = f((e) => {
|
|
33
|
+
Q.current = e, typeof B == "function" ? B(e) : B && (B.current = e);
|
|
34
|
+
}, [B]);
|
|
35
|
+
h(() => {
|
|
35
36
|
let e = Q.current;
|
|
36
37
|
if (!e) return;
|
|
37
|
-
if (
|
|
38
|
+
if (L !== "content" || !t.some((e) => e.width == null)) {
|
|
38
39
|
e.style.setProperty("--select-table-cols", Z);
|
|
39
40
|
return;
|
|
40
41
|
}
|
|
@@ -64,7 +65,7 @@ var C = l(0), w = u(function({ columns: t, children: a, empty: l, footer: u, tit
|
|
|
64
65
|
r.style.setProperty("--select-table-cols", i.join(" "));
|
|
65
66
|
}, ae = (e) => (t) => {
|
|
66
67
|
var n;
|
|
67
|
-
if (!
|
|
68
|
+
if (!A || t.button !== 0) return;
|
|
68
69
|
let r = (n = t.currentTarget.parentElement) == null ? void 0 : n.getBoundingClientRect();
|
|
69
70
|
if (!r) return;
|
|
70
71
|
let i = t.clientX, a = r.width;
|
|
@@ -72,68 +73,68 @@ var C = l(0), w = u(function({ columns: t, children: a, empty: l, footer: u, tit
|
|
|
72
73
|
let o = Q.current;
|
|
73
74
|
o == null || o.classList.add("select-table--resizing");
|
|
74
75
|
let s = a, c = (t) => {
|
|
75
|
-
s = Math.min(
|
|
76
|
+
s = Math.min(S, Math.max(x, a + (t.clientX - i))), $(e, s);
|
|
76
77
|
}, l = () => {
|
|
77
|
-
window.removeEventListener("pointermove", c), window.removeEventListener("pointerup", l), window.removeEventListener("pointercancel", l), o == null || o.classList.remove("select-table--resizing"),
|
|
78
|
+
window.removeEventListener("pointermove", c), window.removeEventListener("pointerup", l), window.removeEventListener("pointercancel", l), o == null || o.classList.remove("select-table--resizing"), A(e, w(s));
|
|
78
79
|
};
|
|
79
80
|
window.addEventListener("pointermove", c), window.addEventListener("pointerup", l), window.addEventListener("pointercancel", l);
|
|
80
81
|
}, oe = (e) => (t) => {
|
|
81
82
|
var n;
|
|
82
|
-
if (!
|
|
83
|
+
if (!A) return;
|
|
83
84
|
let r = t.key === "ArrowRight" ? 1 : t.key === "ArrowLeft" ? -1 : 0;
|
|
84
85
|
if (r === 0) return;
|
|
85
86
|
let i = (n = t.currentTarget.parentElement) == null ? void 0 : n.getBoundingClientRect();
|
|
86
87
|
if (!i) return;
|
|
87
88
|
t.preventDefault();
|
|
88
|
-
let a =
|
|
89
|
-
$(e, o),
|
|
89
|
+
let a = C * (t.shiftKey ? 10 : 1), o = Math.min(S, Math.max(x, i.width + r * a));
|
|
90
|
+
$(e, o), A(e, w(o));
|
|
90
91
|
};
|
|
91
|
-
return /* @__PURE__ */
|
|
92
|
+
return /* @__PURE__ */ b("div", {
|
|
92
93
|
ref: ie,
|
|
93
|
-
...
|
|
94
|
-
className: `select-table${
|
|
94
|
+
...z,
|
|
95
|
+
className: `select-table${ee ? " select-table--empty" : ""}${te && !P ? " select-table--nested" : ""}${ne && !P ? " select-table--inlist" : ""}${P ? " select-table--flush" : ""}${G ? ` select-table--collapsible${H ? " is-open" : ""}` : ""}${R ? " " + R : ""}`,
|
|
95
96
|
style: {
|
|
96
97
|
"--select-table-cols": Z,
|
|
97
|
-
...
|
|
98
|
+
...I ? { "--select-table-min": I } : {}
|
|
98
99
|
},
|
|
99
|
-
children: [/* @__PURE__ */
|
|
100
|
-
title:
|
|
101
|
-
help:
|
|
102
|
-
description:
|
|
100
|
+
children: [/* @__PURE__ */ y(o, {
|
|
101
|
+
title: d,
|
|
102
|
+
help: G ? void 0 : p,
|
|
103
|
+
description: v,
|
|
103
104
|
action: E,
|
|
104
|
-
filters:
|
|
105
|
-
tools:
|
|
106
|
-
toggle:
|
|
107
|
-
}), /* @__PURE__ */
|
|
108
|
-
enabled: !!
|
|
109
|
-
open:
|
|
110
|
-
id:
|
|
105
|
+
filters: G ? void 0 : O,
|
|
106
|
+
tools: G ? void 0 : k,
|
|
107
|
+
toggle: G
|
|
108
|
+
}), /* @__PURE__ */ b(D, {
|
|
109
|
+
enabled: !!G,
|
|
110
|
+
open: H,
|
|
111
|
+
id: W,
|
|
111
112
|
children: [
|
|
112
|
-
|
|
113
|
-
filters:
|
|
114
|
-
tools:
|
|
113
|
+
G && (O != null || k != null) ? /* @__PURE__ */ y(o, {
|
|
114
|
+
filters: O,
|
|
115
|
+
tools: k
|
|
115
116
|
}) : null,
|
|
116
|
-
/* @__PURE__ */
|
|
117
|
-
className: `select-table__scroll${
|
|
118
|
-
children: /* @__PURE__ */
|
|
117
|
+
/* @__PURE__ */ y("div", {
|
|
118
|
+
className: `select-table__scroll${q ? " select-table__scroll--empty" : ""}`,
|
|
119
|
+
children: /* @__PURE__ */ b("div", {
|
|
119
120
|
className: "select-table__scrollinner",
|
|
120
|
-
...
|
|
121
|
+
...q ? {} : {
|
|
121
122
|
role: "table",
|
|
122
|
-
"aria-label":
|
|
123
|
+
"aria-label": V
|
|
123
124
|
},
|
|
124
|
-
children: [!
|
|
125
|
+
children: [!q && /* @__PURE__ */ y("div", {
|
|
125
126
|
className: "select-table__head",
|
|
126
127
|
role: "row",
|
|
127
|
-
children: t.map((n, r) => /* @__PURE__ */
|
|
128
|
+
children: t.map((n, r) => /* @__PURE__ */ b("div", {
|
|
128
129
|
role: "columnheader",
|
|
129
130
|
"aria-sort": n.sortable ? n.sortDir === "asc" ? "ascending" : n.sortDir === "desc" ? "descending" : "none" : void 0,
|
|
130
131
|
className: `select-table__th select-table__cell--${n.align ?? "start"}${n.tone ? ` select-table__th--${n.tone}` : ""}`,
|
|
131
|
-
children: [n.sortable ? /* @__PURE__ */
|
|
132
|
+
children: [n.sortable ? /* @__PURE__ */ b("button", {
|
|
132
133
|
type: "button",
|
|
133
134
|
className: `select-table__sortbtn${n.sortDir === "asc" ? " select-table__sortbtn--asc" : ""}${n.sortDir == null ? "" : " select-table__sortbtn--active"}`,
|
|
134
135
|
onClick: n.onSort,
|
|
135
|
-
children: [n.label, /* @__PURE__ */
|
|
136
|
-
}) : n.label,
|
|
136
|
+
children: [n.label, /* @__PURE__ */ y(e, {})]
|
|
137
|
+
}) : n.label, A && n.resizable !== !1 && r < t.length - 1 && /* @__PURE__ */ y("span", {
|
|
137
138
|
role: "separator",
|
|
138
139
|
"aria-orientation": "vertical",
|
|
139
140
|
"aria-label": "Ajustar a largura da coluna",
|
|
@@ -141,26 +142,26 @@ var C = l(0), w = u(function({ columns: t, children: a, empty: l, footer: u, tit
|
|
|
141
142
|
className: "select-table__resizer",
|
|
142
143
|
onPointerDown: ae(r),
|
|
143
144
|
onKeyDown: oe(r),
|
|
144
|
-
onDoubleClick:
|
|
145
|
+
onDoubleClick: j ? () => j(r) : void 0
|
|
145
146
|
})]
|
|
146
147
|
}, r))
|
|
147
|
-
}), /* @__PURE__ */
|
|
148
|
+
}), /* @__PURE__ */ y("div", {
|
|
148
149
|
className: "select-table__body",
|
|
149
|
-
children: /* @__PURE__ */
|
|
150
|
+
children: /* @__PURE__ */ y("div", {
|
|
150
151
|
className: "select-table__rows",
|
|
151
152
|
ref: re,
|
|
152
|
-
children: /* @__PURE__ */
|
|
153
|
+
children: /* @__PURE__ */ y(T.Provider, {
|
|
153
154
|
value: t.length,
|
|
154
|
-
children: /* @__PURE__ */
|
|
155
|
+
children: /* @__PURE__ */ y(r, { children: K && c ? /* @__PURE__ */ y("div", {
|
|
155
156
|
className: "select-table__empty",
|
|
156
|
-
children:
|
|
157
|
+
children: c
|
|
157
158
|
}) : a })
|
|
158
159
|
})
|
|
159
160
|
})
|
|
160
161
|
})]
|
|
161
162
|
})
|
|
162
163
|
}),
|
|
163
|
-
u && /* @__PURE__ */
|
|
164
|
+
u && /* @__PURE__ */ y("div", {
|
|
164
165
|
className: "select-table__footer",
|
|
165
166
|
children: u
|
|
166
167
|
})
|
|
@@ -168,47 +169,47 @@ var C = l(0), w = u(function({ columns: t, children: a, empty: l, footer: u, tit
|
|
|
168
169
|
})]
|
|
169
170
|
});
|
|
170
171
|
});
|
|
171
|
-
function
|
|
172
|
-
return e ? /* @__PURE__ */
|
|
172
|
+
function D({ enabled: e, open: t, id: n, children: r }) {
|
|
173
|
+
return e ? /* @__PURE__ */ y("div", {
|
|
173
174
|
className: "select-table__collapse",
|
|
174
175
|
id: n,
|
|
175
176
|
"data-open": t,
|
|
176
177
|
"aria-hidden": !t,
|
|
177
|
-
children: /* @__PURE__ */
|
|
178
|
+
children: /* @__PURE__ */ y("div", {
|
|
178
179
|
className: "select-table__collapsewrap",
|
|
179
180
|
children: r
|
|
180
181
|
})
|
|
181
|
-
}) : /* @__PURE__ */
|
|
182
|
+
}) : /* @__PURE__ */ y(v, { children: r });
|
|
182
183
|
}
|
|
183
|
-
var
|
|
184
|
-
return /* @__PURE__ */
|
|
184
|
+
var O = d(function({ name: e, secondary: t, src: n, badge: r, className: i, ...o }, s) {
|
|
185
|
+
return /* @__PURE__ */ b("span", {
|
|
185
186
|
ref: s,
|
|
186
187
|
...o,
|
|
187
188
|
className: `select-usercell${i ? " " + i : ""}`,
|
|
188
|
-
children: [/* @__PURE__ */
|
|
189
|
+
children: [/* @__PURE__ */ y(a, {
|
|
189
190
|
name: typeof e == "string" ? e : void 0,
|
|
190
191
|
src: n
|
|
191
|
-
}), /* @__PURE__ */
|
|
192
|
+
}), /* @__PURE__ */ b("span", {
|
|
192
193
|
className: "select-usercell__text",
|
|
193
|
-
children: [r ? /* @__PURE__ */
|
|
194
|
+
children: [r ? /* @__PURE__ */ b("span", {
|
|
194
195
|
className: "select-usercell__line",
|
|
195
|
-
children: [/* @__PURE__ */
|
|
196
|
+
children: [/* @__PURE__ */ y("span", {
|
|
196
197
|
className: "select-usercell__name",
|
|
197
198
|
children: e
|
|
198
199
|
}), r]
|
|
199
|
-
}) : /* @__PURE__ */
|
|
200
|
+
}) : /* @__PURE__ */ y("span", {
|
|
200
201
|
className: "select-usercell__name",
|
|
201
202
|
children: e
|
|
202
|
-
}), t && /* @__PURE__ */
|
|
203
|
+
}), t && /* @__PURE__ */ y("span", {
|
|
203
204
|
className: "select-usercell__secondary",
|
|
204
205
|
children: t
|
|
205
206
|
})]
|
|
206
207
|
})]
|
|
207
208
|
});
|
|
208
209
|
});
|
|
209
|
-
function
|
|
210
|
+
function k({ children: e, onClick: t, expanded: n, nested: r = !1, current: i = !1, section: a = !1, className: o, ...s }) {
|
|
210
211
|
let c = `select-table__row${t ? " select-table__row--clickable" : ""}${r ? " select-table__row--nested" : ""}${a ? " select-table__row--section" : ""}${n ? " is-expanded" : ""}${i ? " is-current" : ""}${o ? " " + o : ""}`;
|
|
211
|
-
return t ? /* @__PURE__ */
|
|
212
|
+
return t ? /* @__PURE__ */ y("div", {
|
|
212
213
|
...s,
|
|
213
214
|
className: c,
|
|
214
215
|
role: "row",
|
|
@@ -216,13 +217,13 @@ function D({ children: e, onClick: t, expanded: n, nested: r = !1, current: i =
|
|
|
216
217
|
"aria-expanded": n,
|
|
217
218
|
"aria-current": i || void 0,
|
|
218
219
|
onClick: (e) => {
|
|
219
|
-
|
|
220
|
+
j(e.target, e.currentTarget) || t();
|
|
220
221
|
},
|
|
221
222
|
onKeyDown: (e) => {
|
|
222
223
|
e.target !== e.currentTarget || e.key !== "Enter" && e.key !== " " || (e.preventDefault(), t());
|
|
223
224
|
},
|
|
224
225
|
children: e
|
|
225
|
-
}) : /* @__PURE__ */
|
|
226
|
+
}) : /* @__PURE__ */ y("div", {
|
|
226
227
|
...s,
|
|
227
228
|
className: c,
|
|
228
229
|
role: "row",
|
|
@@ -230,60 +231,32 @@ function D({ children: e, onClick: t, expanded: n, nested: r = !1, current: i =
|
|
|
230
231
|
children: e
|
|
231
232
|
});
|
|
232
233
|
}
|
|
233
|
-
var
|
|
234
|
-
function
|
|
234
|
+
var A = "button, a[href], input, select, textarea, label, summary, [role=\"button\"], [role=\"menuitem\"], [role=\"checkbox\"], [role=\"switch\"], [data-row-click=\"ignore\"]";
|
|
235
|
+
function j(e, t) {
|
|
235
236
|
if (!(e instanceof Element) || !t.contains(e)) return !0;
|
|
236
|
-
let n = e.closest(
|
|
237
|
+
let n = e.closest(A);
|
|
237
238
|
return n !== null && n !== t && t.contains(n);
|
|
238
239
|
}
|
|
239
|
-
var
|
|
240
|
-
let d =
|
|
241
|
-
return /* @__PURE__ */
|
|
240
|
+
var M = d(function({ children: e, align: n = "start", disclosure: r, header: i = !1, span: a, wrap: o = !1, className: s, style: c, ...l }, u) {
|
|
241
|
+
let d = p(T), f = a === "all" ? d || void 0 : a;
|
|
242
|
+
return /* @__PURE__ */ b("div", {
|
|
242
243
|
ref: u,
|
|
243
244
|
...l,
|
|
244
245
|
role: i ? "rowheader" : "cell",
|
|
245
|
-
"aria-colspan":
|
|
246
|
+
"aria-colspan": f && f > 1 ? f : void 0,
|
|
246
247
|
style: a ? {
|
|
247
248
|
gridColumn: a === "all" ? "1 / -1" : `span ${a}`,
|
|
248
249
|
...c
|
|
249
250
|
} : c,
|
|
250
251
|
className: `select-table__td select-table__cell--${n}${o ? " select-table__td--wrap" : ""}${s ? " " + s : ""}`,
|
|
251
|
-
children: [r ? /* @__PURE__ */
|
|
252
|
+
children: [r ? /* @__PURE__ */ y("span", {
|
|
252
253
|
className: `select-table__disclosure${r === "open" ? " is-open" : ""}`,
|
|
253
254
|
"aria-hidden": "true",
|
|
254
|
-
children: r !== "none" && /* @__PURE__ */
|
|
255
|
+
children: r !== "none" && /* @__PURE__ */ y(t, {})
|
|
255
256
|
}) : null, e]
|
|
256
257
|
});
|
|
257
|
-
}), j = u(function({ icon: e, title: t, subtitle: n, action: r, tone: i, minHeight: a, className: o, style: s, ...c }, l) {
|
|
258
|
-
return /* @__PURE__ */ v("div", {
|
|
259
|
-
ref: l,
|
|
260
|
-
...c,
|
|
261
|
-
style: a ? {
|
|
262
|
-
minHeight: a,
|
|
263
|
-
...s
|
|
264
|
-
} : s,
|
|
265
|
-
className: `select-table-empty${i === "critical" ? " select-table-empty--critical" : ""}${a ? " select-table-empty--fill" : ""}${o ? " " + o : ""}`,
|
|
266
|
-
children: [
|
|
267
|
-
e && /* @__PURE__ */ _("span", {
|
|
268
|
-
className: "select-table-empty__icon",
|
|
269
|
-
children: e
|
|
270
|
-
}),
|
|
271
|
-
/* @__PURE__ */ _("p", {
|
|
272
|
-
className: "select-table-empty__title",
|
|
273
|
-
children: t
|
|
274
|
-
}),
|
|
275
|
-
n && /* @__PURE__ */ _("p", {
|
|
276
|
-
className: "select-table-empty__subtitle",
|
|
277
|
-
children: n
|
|
278
|
-
}),
|
|
279
|
-
r && /* @__PURE__ */ _("div", {
|
|
280
|
-
className: "select-table-empty__action",
|
|
281
|
-
children: r
|
|
282
|
-
})
|
|
283
|
-
]
|
|
284
|
-
});
|
|
285
258
|
});
|
|
286
259
|
//#endregion
|
|
287
|
-
export {
|
|
260
|
+
export { E as SelectTable, M as SelectTableCell, c as SelectTableEmpty, k as SelectTableRow, O as SelectUserCell };
|
|
288
261
|
|
|
289
262
|
//# sourceMappingURL=SelectTable.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
type SelectTableEmptyOwnProps = {
|
|
3
|
+
icon?: ReactNode;
|
|
4
|
+
title: ReactNode;
|
|
5
|
+
subtitle?: ReactNode;
|
|
6
|
+
/** Optional CTA below the text (e.g. "Enable Billing") — for standalone empty cards. Várias ações ficam lado a lado. */
|
|
7
|
+
action?: ReactNode;
|
|
8
|
+
/** 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. */
|
|
9
|
+
tone?: 'critical';
|
|
10
|
+
/**
|
|
11
|
+
* 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
|
|
12
|
+
* gráfico, e o cartão não encolhe quando o período não tem dado. Um comprimento CSS (`'11.25rem'`).
|
|
13
|
+
*/
|
|
14
|
+
minHeight?: string;
|
|
15
|
+
};
|
|
16
|
+
export type SelectTableEmptyProps = SelectTableEmptyOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectTableEmptyOwnProps>;
|
|
17
|
+
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>>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { forwardRef as e } from "react";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
//#region src/SelectTableEmpty.tsx
|
|
4
|
+
var r = e(function({ icon: e, title: r, subtitle: i, action: a, tone: o, minHeight: s, className: c, style: l, ...u }, d) {
|
|
5
|
+
return /* @__PURE__ */ n("div", {
|
|
6
|
+
ref: d,
|
|
7
|
+
...u,
|
|
8
|
+
style: s ? {
|
|
9
|
+
minHeight: s,
|
|
10
|
+
...l
|
|
11
|
+
} : l,
|
|
12
|
+
className: `select-table-empty${o === "critical" ? " select-table-empty--critical" : ""}${s ? " select-table-empty--fill" : ""}${c ? " " + c : ""}`,
|
|
13
|
+
children: [
|
|
14
|
+
e && /* @__PURE__ */ t("span", {
|
|
15
|
+
className: "select-table-empty__icon",
|
|
16
|
+
children: e
|
|
17
|
+
}),
|
|
18
|
+
/* @__PURE__ */ t("p", {
|
|
19
|
+
className: "select-table-empty__title",
|
|
20
|
+
children: r
|
|
21
|
+
}),
|
|
22
|
+
i && /* @__PURE__ */ t("p", {
|
|
23
|
+
className: "select-table-empty__subtitle",
|
|
24
|
+
children: i
|
|
25
|
+
}),
|
|
26
|
+
a && /* @__PURE__ */ t("div", {
|
|
27
|
+
className: "select-table-empty__action",
|
|
28
|
+
children: a
|
|
29
|
+
})
|
|
30
|
+
]
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
//#endregion
|
|
34
|
+
export { r as SelectTableEmpty };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=SelectTableEmpty.js.map
|
package/dist/chartUtils.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
/** Measure the container width so the chart is responsive. Height is caller-fixed but scaled
|
|
2
3
|
* by the fluid root (useRootScale) so chart height grows with the rest of the UI. */
|
|
3
4
|
export declare function useChartSize(height: number): {
|
|
@@ -101,4 +102,6 @@ export interface SelectFunnelStage {
|
|
|
101
102
|
color?: string;
|
|
102
103
|
/** Destaca a conversão desta etapa (a maior perda do funil): texto crítico com ▼. */
|
|
103
104
|
flag?: boolean;
|
|
105
|
+
/** 0.1.235, só no `shape="funnel"`: uma linha sob o número da etapa (a variação da conversão na última). */
|
|
106
|
+
note?: ReactNode;
|
|
104
107
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -78,7 +78,8 @@ export { SelectAppDock, SelectAppDockItem, SelectAppDockSeparator } from './Sele
|
|
|
78
78
|
export type { SelectAppDockProps, SelectAppDockItemProps, SelectAppDockPosition } from './SelectAppDock';
|
|
79
79
|
export type { SelectAppSearchItem, SelectAppSearchGroup, SelectAppSearchProps } from './SelectAppSearch';
|
|
80
80
|
export { SelectSearchInput } from './SelectSearchInput';
|
|
81
|
-
export { SelectTable, SelectTableRow, SelectTableCell,
|
|
81
|
+
export { SelectTable, SelectTableRow, SelectTableCell, SelectUserCell } from './SelectTable';
|
|
82
|
+
export { SelectTableEmpty } from './SelectTableEmpty';
|
|
82
83
|
export { SelectMenu, SelectMenuItem, SelectMenuLink, SelectMenuHeading, SelectMenuHeader, SelectMenuRow, SelectMenuDivider, SelectMenuButton, } from './SelectMenu';
|
|
83
84
|
export { SelectFilterChip } from './SelectFilterChip';
|
|
84
85
|
export { SelectCopyRow } from './SelectCopyRow';
|
|
@@ -147,8 +148,8 @@ export { SelectMoney, SelectSensitiveValue, SelectMetricDelta, SelectHideMoneyTo
|
|
|
147
148
|
export { SelectBalanceCard } from './SelectBalanceCard';
|
|
148
149
|
export { SelectFeeBreakdown } from './SelectFeeBreakdown';
|
|
149
150
|
export { SelectKpiCard } from './SelectKpiCard';
|
|
150
|
-
export { SelectKpiBand } from './SelectKpiBand';
|
|
151
|
-
export type { SelectKpiBandProps } from './SelectKpiBand';
|
|
151
|
+
export { SelectKpiBand, SelectKpiBandPanel } from './SelectKpiBand';
|
|
152
|
+
export type { SelectKpiBandProps, SelectKpiBandPanelProps } from './SelectKpiBand';
|
|
152
153
|
export { SelectInsight, SelectInsightList, SelectInsightRow, formatInsightImpact } from './SelectInsight';
|
|
153
154
|
export { SelectAssistant, SelectChatMessage, SelectChatTurn, SelectChatTyping } from './SelectAssistant';
|
|
154
155
|
export { SelectAssistantLauncher } from './SelectAssistantLauncher';
|