@selectwin/kit 0.1.258 → 0.1.260
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 +47 -0
- package/dist/SelectActionBar.d.ts +29 -0
- package/dist/SelectActionBar.js +101 -0
- package/dist/SelectBadge.d.ts +9 -0
- package/dist/SelectBadge.js +26 -12
- package/dist/SelectBulkBar.d.ts +21 -0
- package/dist/SelectBulkBar.js +40 -0
- package/dist/SelectChannelPreview.d.ts +21 -1
- package/dist/SelectChannelPreview.js +100 -73
- package/dist/SelectColorField.d.ts +1 -5
- package/dist/SelectColorField.js +83 -101
- package/dist/SelectCombobox.d.ts +5 -0
- package/dist/SelectCombobox.js +52 -49
- package/dist/SelectComposerNotice.d.ts +14 -0
- package/dist/SelectComposerNotice.js +37 -0
- package/dist/SelectDataTable.d.ts +17 -1
- package/dist/SelectDataTable.js +100 -90
- package/dist/SelectDeadlineBadge.d.ts +32 -0
- package/dist/SelectDeadlineBadge.js +73 -0
- package/dist/SelectFilterBar.js +5 -5
- package/dist/SelectListCard.d.ts +27 -1
- package/dist/SelectListCard.js +47 -22
- package/dist/SelectLocale.d.ts +62 -0
- package/dist/SelectLocale.js +173 -0
- package/dist/SelectMail.d.ts +52 -8
- package/dist/SelectMail.js +315 -242
- package/dist/SelectSection.d.ts +4 -4
- package/dist/SelectSection.js +77 -8
- package/dist/SelectSegmented.d.ts +11 -0
- package/dist/SelectSegmented.js +87 -68
- package/dist/SelectTable.d.ts +13 -1
- package/dist/SelectTable.js +88 -79
- package/dist/SelectTabs.d.ts +7 -0
- package/dist/SelectTabs.js +47 -40
- package/dist/SelectWeekHours.d.ts +64 -0
- package/dist/SelectWeekHours.js +338 -0
- package/dist/index.d.ts +14 -2
- package/dist/index.js +189 -183
- package/dist/internal/color.d.ts +15 -0
- package/dist/internal/color.js +40 -0
- package/dist/internal/safeHref.d.ts +7 -0
- package/dist/internal/safeHref.js +12 -1
- package/dist/internal/scrollReveal.d.ts +19 -0
- package/dist/internal/scrollReveal.js +38 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/SelectSection.d.ts
CHANGED
|
@@ -2,15 +2,15 @@ import { ReactNode, ComponentPropsWithoutRef } from 'react';
|
|
|
2
2
|
import { SelectHeadingLevel } from './internal/headingLevel';
|
|
3
3
|
type SelectSectionOwnProps = {
|
|
4
4
|
title?: ReactNode;
|
|
5
|
-
/** Ajuda contextual: vira o "!" ao lado do título (SelectInfoTip).
|
|
6
|
-
*
|
|
7
|
-
* inválido. */
|
|
5
|
+
/** Ajuda contextual: vira o "!" ao lado do título (SelectInfoTip). 0.1.259: também na que recolhe — o cabeçalho dela
|
|
6
|
+
* passa a ser um título com o botão que abre e fecha dentro (botão dentro de botão é DOM inválido). */
|
|
8
7
|
help?: ReactNode;
|
|
9
8
|
/** Subdued line under the title (e.g. the step subtitle of a wizard card). Collapsible too:
|
|
10
9
|
* there it is the SUMMARY of what is inside ("Liberação imediata · conclui com 90%"), so the
|
|
11
10
|
* closed card still says what it holds. */
|
|
12
11
|
description?: ReactNode;
|
|
13
|
-
/** Right-aligned action in the head (e.g. an "Editar" link).
|
|
12
|
+
/** Right-aligned action in the head (e.g. an "Editar" link). 0.1.259: também na que recolhe ("Mudar"), à direita, antes
|
|
13
|
+
* da seta; o clique nela é dela (não abre nem fecha). */
|
|
14
14
|
action?: ReactNode;
|
|
15
15
|
/** Make the head a button that expands/collapses the body. */
|
|
16
16
|
collapsible?: boolean;
|
package/dist/SelectSection.js
CHANGED
|
@@ -3,15 +3,84 @@ import { ChevronDownIcon as e } from "./icons.js";
|
|
|
3
3
|
import { SelectInfoTip as t } from "./SelectInfoTip.js";
|
|
4
4
|
import { registerSheetFrame as n } from "./internal/sheetBands.js";
|
|
5
5
|
import { FrameBody as r, useInsideFrame as i } from "./internal/frame.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { inertProps as a } from "./internal/inert.js";
|
|
7
|
+
import { HeadingScope as o, SelectHeading as s, nextHeadingLevel as c, useHeadingLevel as l } from "./internal/headingLevel.js";
|
|
8
8
|
import { forwardRef as u, useId as d, useState as f } from "react";
|
|
9
9
|
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
10
10
|
//#region src/SelectSection.tsx
|
|
11
11
|
var h = u(function({ title: n, help: u, description: h, action: g, collapsible: _ = !1, defaultOpen: v = !0, open: y, onOpenChange: b, footer: x, flush: S = !1, list: C = !1, headingLevel: w, children: T, className: E, ...D }, O) {
|
|
12
|
-
let k =
|
|
12
|
+
let k = l(w), [A, j] = f(v), M = y ?? A, N = d(), P = () => {
|
|
13
13
|
y === void 0 && j(!M), b == null || b(!M);
|
|
14
14
|
}, F = (i() ? " select-section--nested" : "") + (S ? " select-section--flush" : "") + (C ? " select-section--list" : ""), I = C ? "list" : "body";
|
|
15
|
+
if (_ && (u != null && u !== "" || g != null && g !== !1)) {
|
|
16
|
+
let i = (e) => {
|
|
17
|
+
let t = e.currentTarget, n = e.target;
|
|
18
|
+
if (!(n instanceof Element) || !t.contains(n)) return;
|
|
19
|
+
let r = n.closest("button, a[href], input, select, textarea, label, summary, [role=\"button\"], [tabindex]");
|
|
20
|
+
r && r !== t && t.contains(r) || P();
|
|
21
|
+
};
|
|
22
|
+
return /* @__PURE__ */ m("div", {
|
|
23
|
+
ref: O,
|
|
24
|
+
...D,
|
|
25
|
+
className: `select-section select-section--collapsible select-section--split${F}${M ? " is-open" : ""}${E ? " " + E : ""}`,
|
|
26
|
+
children: [/* @__PURE__ */ m("div", {
|
|
27
|
+
className: "select-section__head select-section__head--split",
|
|
28
|
+
onClick: i,
|
|
29
|
+
children: [
|
|
30
|
+
/* @__PURE__ */ m("div", {
|
|
31
|
+
className: "select-section__heading",
|
|
32
|
+
children: [/* @__PURE__ */ m(s, {
|
|
33
|
+
level: k,
|
|
34
|
+
className: `select-section__title${u != null && u !== "" ? " select-section__title--help" : ""}`,
|
|
35
|
+
children: [/* @__PURE__ */ p("button", {
|
|
36
|
+
type: "button",
|
|
37
|
+
className: "select-section__toggle",
|
|
38
|
+
"aria-expanded": M,
|
|
39
|
+
"aria-controls": N,
|
|
40
|
+
"aria-describedby": h ? `${N}-desc` : void 0,
|
|
41
|
+
onClick: P,
|
|
42
|
+
children: n
|
|
43
|
+
}), u != null && u !== "" && /* @__PURE__ */ p(t, { content: u })]
|
|
44
|
+
}), h && /* @__PURE__ */ p("p", {
|
|
45
|
+
id: `${N}-desc`,
|
|
46
|
+
className: "select-section__desc",
|
|
47
|
+
children: h
|
|
48
|
+
})]
|
|
49
|
+
}),
|
|
50
|
+
g != null && g !== !1 ? /* @__PURE__ */ p("div", {
|
|
51
|
+
className: "select-section__action",
|
|
52
|
+
children: g
|
|
53
|
+
}) : null,
|
|
54
|
+
/* @__PURE__ */ p("span", {
|
|
55
|
+
className: "select-section__chevron",
|
|
56
|
+
"aria-hidden": "true",
|
|
57
|
+
children: /* @__PURE__ */ p(e, {})
|
|
58
|
+
})
|
|
59
|
+
]
|
|
60
|
+
}), /* @__PURE__ */ p("div", {
|
|
61
|
+
id: N,
|
|
62
|
+
className: "select-section__collapse",
|
|
63
|
+
"data-open": M,
|
|
64
|
+
...a(!M),
|
|
65
|
+
children: /* @__PURE__ */ m("div", {
|
|
66
|
+
className: "select-section__collapsewrap",
|
|
67
|
+
children: [/* @__PURE__ */ p("div", {
|
|
68
|
+
className: "select-section__body",
|
|
69
|
+
children: /* @__PURE__ */ p(o, {
|
|
70
|
+
level: c(k),
|
|
71
|
+
children: /* @__PURE__ */ p(r, {
|
|
72
|
+
kind: I,
|
|
73
|
+
children: T
|
|
74
|
+
})
|
|
75
|
+
})
|
|
76
|
+
}), x != null && x !== "" && /* @__PURE__ */ p("div", {
|
|
77
|
+
className: "select-section__foot",
|
|
78
|
+
children: x
|
|
79
|
+
})]
|
|
80
|
+
})
|
|
81
|
+
})]
|
|
82
|
+
});
|
|
83
|
+
}
|
|
15
84
|
return _ ? /* @__PURE__ */ m("div", {
|
|
16
85
|
ref: O,
|
|
17
86
|
...D,
|
|
@@ -40,12 +109,12 @@ var h = u(function({ title: n, help: u, description: h, action: g, collapsible:
|
|
|
40
109
|
id: N,
|
|
41
110
|
className: "select-section__collapse",
|
|
42
111
|
"data-open": M,
|
|
43
|
-
...
|
|
112
|
+
...a(!M),
|
|
44
113
|
children: /* @__PURE__ */ m("div", {
|
|
45
114
|
className: "select-section__collapsewrap",
|
|
46
115
|
children: [/* @__PURE__ */ p("div", {
|
|
47
116
|
className: "select-section__body",
|
|
48
|
-
children: /* @__PURE__ */ p(
|
|
117
|
+
children: /* @__PURE__ */ p(o, {
|
|
49
118
|
level: k,
|
|
50
119
|
children: /* @__PURE__ */ p(r, {
|
|
51
120
|
kind: I,
|
|
@@ -67,7 +136,7 @@ var h = u(function({ title: n, help: u, description: h, action: g, collapsible:
|
|
|
67
136
|
className: "select-section__head",
|
|
68
137
|
children: [/* @__PURE__ */ m("div", {
|
|
69
138
|
className: "select-section__heading",
|
|
70
|
-
children: [n && /* @__PURE__ */ m(
|
|
139
|
+
children: [n && /* @__PURE__ */ m(s, {
|
|
71
140
|
level: k,
|
|
72
141
|
className: `select-section__title${u == null ? "" : " select-section__title--help"}`,
|
|
73
142
|
children: [n, u != null && /* @__PURE__ */ p(t, { content: u })]
|
|
@@ -82,8 +151,8 @@ var h = u(function({ title: n, help: u, description: h, action: g, collapsible:
|
|
|
82
151
|
}),
|
|
83
152
|
/* @__PURE__ */ p("div", {
|
|
84
153
|
className: "select-section__body",
|
|
85
|
-
children: /* @__PURE__ */ p(
|
|
86
|
-
level: n ?
|
|
154
|
+
children: /* @__PURE__ */ p(o, {
|
|
155
|
+
level: n ? c(k) : k,
|
|
87
156
|
children: /* @__PURE__ */ p(r, {
|
|
88
157
|
kind: I,
|
|
89
158
|
children: T
|
|
@@ -36,6 +36,17 @@ type SelectSegmentedOwnProps = {
|
|
|
36
36
|
* quebram a linha — e, sem `semantics`, a escolha única de um grupo de rádio.
|
|
37
37
|
*/
|
|
38
38
|
variant?: 'track' | 'chips';
|
|
39
|
+
/**
|
|
40
|
+
* 0.1.260, com `chips`: as fichas numa linha só, que rola de lado (a prancha da lista do Chat no celular), no lugar de
|
|
41
|
+
* quebrar a linha. A ficha marcada vem para a vista, e a ponta que esconde fichas some num degradê.
|
|
42
|
+
*/
|
|
43
|
+
scroll?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* 0.1.260, com `chips`: como a ficha marcada se desenha. `outline` (o padrão, a 0.1.258) é o filete e o texto no
|
|
46
|
+
* primário sobre o tom dele; `solid` é a ficha PREENCHIDA no primário, com o texto que lê sobre ele e o número dentro (a
|
|
47
|
+
* prancha da lista do Chat). As outras fichas seguem com o filete.
|
|
48
|
+
*/
|
|
49
|
+
selected?: 'outline' | 'solid';
|
|
39
50
|
};
|
|
40
51
|
export type SelectSegmentedProps = SelectSegmentedOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectSegmentedOwnProps>;
|
|
41
52
|
export declare const SelectSegmented: import('react').ForwardRefExoticComponent<SelectSegmentedOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectSegmentedOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
|
package/dist/SelectSegmented.js
CHANGED
|
@@ -1,113 +1,132 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { revealInTrack as e, watchTrackOverflow as t } from "./internal/scrollReveal.js";
|
|
2
|
+
import { forwardRef as n, useCallback as r, useId as i, useLayoutEffect as a, useRef as o, useState as s } from "react";
|
|
3
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
3
4
|
//#region src/SelectSegmented.tsx
|
|
4
|
-
var
|
|
5
|
-
let
|
|
6
|
-
|
|
5
|
+
var u = n(function({ value: n, onChange: u, options: d, ariaLabel: f, fullWidth: p = !1, label: m, hint: h, disabled: g = !1, error: _, variant: v = "track", semantics: y = v === "chips" ? "radio" : "tabs", size: b = "md", scroll: x = !1, selected: S = "outline", className: C, ...w }, T) {
|
|
6
|
+
let E = i(), D = Math.max(0, d.findIndex((e) => e.value === n)), O = o([]), [k, A] = s(null), j = y === "radio", M = d.map((e) => e.count ?? "").join(",");
|
|
7
|
+
a(() => {
|
|
7
8
|
let e = () => {
|
|
8
|
-
let e =
|
|
9
|
+
let e = O.current[D];
|
|
9
10
|
if (!e) return;
|
|
10
11
|
let t = {
|
|
11
12
|
left: e.offsetLeft,
|
|
12
13
|
width: e.offsetWidth
|
|
13
14
|
};
|
|
14
|
-
|
|
15
|
+
A((e) => e && e.left === t.left && e.width === t.width ? e : t);
|
|
15
16
|
};
|
|
16
17
|
e();
|
|
17
18
|
let t = typeof ResizeObserver < "u" ? new ResizeObserver(e) : null;
|
|
18
|
-
return
|
|
19
|
+
return O.current.forEach((e) => e && (t == null ? void 0 : t.observe(e))), () => t == null ? void 0 : t.disconnect();
|
|
19
20
|
}, [
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
D,
|
|
22
|
+
d.length,
|
|
23
|
+
M
|
|
23
24
|
]);
|
|
24
|
-
let
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
let N = x && v === "chips", P = o(null), F = o(!1);
|
|
26
|
+
a(() => {
|
|
27
|
+
let t = P.current;
|
|
28
|
+
N && t && (e(t, O.current[D] ?? null, F.current), F.current = !0);
|
|
29
|
+
}, [
|
|
30
|
+
N,
|
|
31
|
+
D,
|
|
32
|
+
d.length
|
|
33
|
+
]), a(() => {
|
|
34
|
+
let e = P.current;
|
|
35
|
+
if (N && e) return t(e, O.current.filter((e) => e !== null));
|
|
36
|
+
}, [
|
|
37
|
+
N,
|
|
38
|
+
d.length,
|
|
39
|
+
M
|
|
40
|
+
]);
|
|
41
|
+
let I = m != null, L = r((e) => {
|
|
42
|
+
P.current = e, !I && (typeof T == "function" ? T(e) : T && (T.current = e));
|
|
43
|
+
}, [T, I]), R = k ? {
|
|
44
|
+
left: k.left,
|
|
45
|
+
width: k.width,
|
|
27
46
|
opacity: 1
|
|
28
|
-
} : { opacity: 0 },
|
|
29
|
-
var
|
|
30
|
-
if ((
|
|
31
|
-
let i =
|
|
47
|
+
} : { opacity: 0 }, z = m == null ? w : {}, B = (e) => {
|
|
48
|
+
var t, r;
|
|
49
|
+
if ((t = z.onKeyDown) == null || t.call(z, e), e.defaultPrevented || g || !d.length) return;
|
|
50
|
+
let i = O.current.findIndex((t) => t === e.target);
|
|
32
51
|
if (i < 0) return;
|
|
33
|
-
let a =
|
|
34
|
-
|
|
35
|
-
},
|
|
36
|
-
ref:
|
|
37
|
-
...
|
|
38
|
-
className: `select-segmented${
|
|
39
|
-
role:
|
|
40
|
-
"aria-label":
|
|
41
|
-
"aria-labelledby":
|
|
42
|
-
"aria-disabled":
|
|
43
|
-
onKeyDown:
|
|
44
|
-
children: [
|
|
52
|
+
let a = e.key === "ArrowRight" || j && e.key === "ArrowDown", o = e.key === "ArrowLeft" || j && e.key === "ArrowUp", s = a ? (i + 1) % d.length : o ? (i - 1 + d.length) % d.length : e.key === "Home" ? 0 : e.key === "End" ? d.length - 1 : -1;
|
|
53
|
+
s < 0 || (e.preventDefault(), (r = O.current[s]) == null || r.focus(), d[s].value !== n && u(d[s].value));
|
|
54
|
+
}, V = /* @__PURE__ */ l("div", {
|
|
55
|
+
ref: L,
|
|
56
|
+
...z,
|
|
57
|
+
className: `select-segmented${v === "chips" ? " select-segmented--chips" : ""}${N ? " select-segmented--scroll" : ""}${v === "chips" && S === "solid" ? " select-segmented--solid" : ""}${p ? " select-segmented--full" : ""}${b === "sm" ? " select-segmented--sm" : ""}${g ? " select-segmented--disabled" : ""}${_ != null && _ !== !1 ? " select-segmented--error" : ""}${m == null && C ? " " + C : ""}`,
|
|
58
|
+
role: j ? "radiogroup" : "tablist",
|
|
59
|
+
"aria-label": f,
|
|
60
|
+
"aria-labelledby": m != null && !f ? E : void 0,
|
|
61
|
+
"aria-disabled": g || void 0,
|
|
62
|
+
onKeyDown: B,
|
|
63
|
+
children: [v === "chips" ? null : /* @__PURE__ */ c("span", {
|
|
45
64
|
className: "select-segmented__pill",
|
|
46
65
|
"aria-hidden": "true",
|
|
47
|
-
style:
|
|
48
|
-
}),
|
|
49
|
-
let r =
|
|
50
|
-
return /* @__PURE__ */
|
|
66
|
+
style: R
|
|
67
|
+
}), d.map((e, t) => {
|
|
68
|
+
let r = e.value === n, i = !!e.count && e.count > 0, a = e.title && i ? `${e.title}, ${e.countLabel ?? e.count}` : e.title;
|
|
69
|
+
return /* @__PURE__ */ l("button", {
|
|
51
70
|
ref: (e) => {
|
|
52
|
-
|
|
71
|
+
O.current[t] = e;
|
|
53
72
|
},
|
|
54
73
|
type: "button",
|
|
55
|
-
role:
|
|
56
|
-
"aria-selected":
|
|
57
|
-
"aria-checked":
|
|
58
|
-
tabIndex:
|
|
74
|
+
role: j ? "radio" : "tab",
|
|
75
|
+
"aria-selected": j ? void 0 : r,
|
|
76
|
+
"aria-checked": j ? r : void 0,
|
|
77
|
+
tabIndex: t === D ? 0 : -1,
|
|
59
78
|
className: `select-segmented__item${r ? " select-segmented__item--active" : ""}`,
|
|
60
|
-
title:
|
|
61
|
-
"aria-label":
|
|
62
|
-
disabled:
|
|
63
|
-
onClick: () =>
|
|
79
|
+
title: e.title,
|
|
80
|
+
"aria-label": a,
|
|
81
|
+
disabled: g,
|
|
82
|
+
onClick: () => u(e.value),
|
|
64
83
|
children: [
|
|
65
|
-
|
|
84
|
+
e.icon != null && e.icon !== !1 ? /* @__PURE__ */ c("span", {
|
|
66
85
|
className: "select-segmented__icon",
|
|
67
86
|
"aria-hidden": "true",
|
|
68
|
-
children:
|
|
87
|
+
children: e.icon
|
|
69
88
|
}) : null,
|
|
70
|
-
|
|
71
|
-
i ? /* @__PURE__ */
|
|
89
|
+
e.label,
|
|
90
|
+
i ? /* @__PURE__ */ c("span", {
|
|
72
91
|
className: "select-segmented__count",
|
|
73
|
-
"aria-hidden":
|
|
74
|
-
children:
|
|
92
|
+
"aria-hidden": e.title ? !0 : void 0,
|
|
93
|
+
children: e.count
|
|
75
94
|
}) : null
|
|
76
95
|
]
|
|
77
|
-
},
|
|
96
|
+
}, e.value);
|
|
78
97
|
})]
|
|
79
|
-
}),
|
|
80
|
-
return
|
|
98
|
+
}), H = _ != null && _ !== !1 && _ !== "";
|
|
99
|
+
return m == null && !H ? V : m == null ? /* @__PURE__ */ l("div", {
|
|
81
100
|
className: "select-field",
|
|
82
|
-
children: [
|
|
101
|
+
children: [V, /* @__PURE__ */ c("p", {
|
|
83
102
|
className: "select-field__error",
|
|
84
|
-
children:
|
|
103
|
+
children: _
|
|
85
104
|
})]
|
|
86
|
-
}) : /* @__PURE__ */
|
|
87
|
-
ref:
|
|
88
|
-
...
|
|
89
|
-
className: `select-field${
|
|
105
|
+
}) : /* @__PURE__ */ l("div", {
|
|
106
|
+
ref: T,
|
|
107
|
+
...w,
|
|
108
|
+
className: `select-field${C ? " " + C : ""}`,
|
|
90
109
|
children: [
|
|
91
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ c("div", {
|
|
92
111
|
className: "select-field__labelrow",
|
|
93
|
-
children: /* @__PURE__ */
|
|
112
|
+
children: /* @__PURE__ */ c("span", {
|
|
94
113
|
className: "select-field__label",
|
|
95
|
-
id:
|
|
96
|
-
children:
|
|
114
|
+
id: E,
|
|
115
|
+
children: m
|
|
97
116
|
})
|
|
98
117
|
}),
|
|
99
|
-
|
|
100
|
-
|
|
118
|
+
V,
|
|
119
|
+
H ? /* @__PURE__ */ c("p", {
|
|
101
120
|
className: "select-field__error",
|
|
102
|
-
children:
|
|
103
|
-
}) :
|
|
121
|
+
children: _
|
|
122
|
+
}) : h != null && /* @__PURE__ */ c("p", {
|
|
104
123
|
className: "select-field__hint",
|
|
105
|
-
children:
|
|
124
|
+
children: h
|
|
106
125
|
})
|
|
107
126
|
]
|
|
108
127
|
});
|
|
109
128
|
});
|
|
110
129
|
//#endregion
|
|
111
|
-
export {
|
|
130
|
+
export { u as SelectSegmented };
|
|
112
131
|
|
|
113
132
|
//# sourceMappingURL=SelectSegmented.js.map
|
package/dist/SelectTable.d.ts
CHANGED
|
@@ -138,9 +138,21 @@ type SelectTableRowOwnProps = {
|
|
|
138
138
|
* chave, o menu) fica cheia.
|
|
139
139
|
*/
|
|
140
140
|
muted?: boolean;
|
|
141
|
+
/**
|
|
142
|
+
* 0.1.259: o tom da linha (o chamado vencido): a borda da esquerda no tom. A cor não diz sozinha: o estado à vista
|
|
143
|
+
* (o ícone e o texto, o `SelectDeadlineBadge variant="text"`) vai numa célula, e o `toneLabel` o diz ao leitor de tela.
|
|
144
|
+
*/
|
|
145
|
+
tone?: SelectTableRowTone;
|
|
146
|
+
/**
|
|
147
|
+
* 0.1.259: o tom em palavras ("Vencido"), para o leitor de tela: entra fora da vista no começo da célula de cabeçalho
|
|
148
|
+
* da linha (`header`), ou da primeira célula sem ela.
|
|
149
|
+
*/
|
|
150
|
+
toneLabel?: string;
|
|
141
151
|
};
|
|
142
152
|
export type SelectTableRowProps = SelectTableRowOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectTableRowOwnProps | 'role'>;
|
|
143
|
-
|
|
153
|
+
/** 0.1.259: os tons da linha (a borda da esquerda): o vencido, o perto de vencer, o cumprido e o de informação. */
|
|
154
|
+
export type SelectTableRowTone = 'critical' | 'warning' | 'success' | 'info';
|
|
155
|
+
export declare function SelectTableRow({ children: childrenProp, onClick, expanded, nested, current, section, muted, tone, toneLabel, className, ...rest }: SelectTableRowProps): import("react").JSX.Element;
|
|
144
156
|
type SelectTableCellOwnProps = {
|
|
145
157
|
children: ReactNode;
|
|
146
158
|
align?: 'start' | 'end' | 'center';
|