@selectwin/kit 0.1.262 → 0.1.264
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 +74 -0
- package/dist/SelectActionMenu.d.ts +7 -1
- package/dist/SelectActionMenu.js +14 -13
- package/dist/SelectBlockBuilder.d.ts +63 -0
- package/dist/SelectBlockBuilder.js +370 -0
- package/dist/SelectCalendar.d.ts +68 -4
- package/dist/SelectCalendar.js +449 -279
- package/dist/SelectChannelPreview.d.ts +34 -5
- package/dist/SelectChannelPreview.js +167 -73
- package/dist/SelectChartCard.d.ts +13 -0
- package/dist/SelectChartCard.js +50 -30
- package/dist/SelectCombobox.d.ts +5 -0
- package/dist/SelectCombobox.js +77 -61
- package/dist/SelectConversationContext.d.ts +30 -0
- package/dist/SelectConversationContext.js +141 -0
- package/dist/SelectDatePicker.d.ts +4 -0
- package/dist/SelectDatePicker.js +78 -62
- package/dist/SelectDateRangeField.d.ts +6 -1
- package/dist/SelectDateRangeField.js +9 -8
- package/dist/SelectField.d.ts +7 -3
- package/dist/SelectField.js +71 -70
- package/dist/SelectFilterBar.d.ts +9 -0
- package/dist/SelectFilterBar.js +301 -179
- package/dist/SelectFunnel.d.ts +12 -2
- package/dist/SelectFunnel.js +193 -63
- package/dist/SelectHorizontalBar.d.ts +11 -1
- package/dist/SelectHorizontalBar.js +86 -35
- package/dist/SelectHtmlFrame.d.ts +3 -1
- package/dist/SelectHtmlFrame.js +4 -4
- package/dist/SelectIconButton.d.ts +2 -1
- package/dist/SelectIconButton.js +1 -1
- package/dist/SelectLocale.d.ts +146 -0
- package/dist/SelectLocale.js +363 -31
- package/dist/SelectMail.d.ts +80 -4
- package/dist/SelectMail.js +433 -300
- package/dist/SelectMailEditor.d.ts +35 -1
- package/dist/SelectMailEditor.js +347 -163
- package/dist/SelectNumberedList.d.ts +20 -2
- package/dist/SelectNumberedList.js +75 -17
- package/dist/SelectPopover.js +31 -18
- package/dist/SelectProgressBar.d.ts +22 -5
- package/dist/SelectProgressBar.js +70 -40
- package/dist/SelectRecordCard.d.ts +13 -4
- package/dist/SelectRecordCard.js +30 -8
- package/dist/SelectRuleBuilder.d.ts +52 -0
- package/dist/SelectRuleBuilder.js +157 -0
- package/dist/SelectSearchPreview.d.ts +35 -0
- package/dist/SelectSearchPreview.js +69 -0
- package/dist/SelectSegmented.d.ts +2 -0
- package/dist/SelectSegmented.js +1 -1
- package/dist/SelectSortable.d.ts +5 -1
- package/dist/SelectSparkBars.d.ts +5 -1
- package/dist/SelectSparkBars.js +65 -57
- package/dist/SelectSteps.d.ts +6 -0
- package/dist/SelectSteps.js +43 -10
- package/dist/SelectTabs.d.ts +16 -4
- package/dist/SelectTabs.js +95 -60
- package/dist/SelectTextarea.d.ts +1 -1
- package/dist/SelectVoiceNote.d.ts +6 -1
- package/dist/SelectVoiceNote.js +118 -106
- package/dist/chartUtils.d.ts +10 -0
- package/dist/index.d.ts +18 -2
- package/dist/index.js +153 -149
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/SelectCombobox.js
CHANGED
|
@@ -4,41 +4,41 @@ import { SelectInfoTip as r } from "./SelectInfoTip.js";
|
|
|
4
4
|
import { moveInOptions as i, useOptionListFocus as a } from "./internal/optionList.js";
|
|
5
5
|
import { useSelectReveal as o } from "./internal/useSelectReveal.js";
|
|
6
6
|
import { SelectPopover as s } from "./SelectPopover.js";
|
|
7
|
-
import { forwardRef as c, useId as l, useMemo as
|
|
8
|
-
import { jsx as
|
|
7
|
+
import { forwardRef as c, useId as l, useMemo as u, useRef as d, useState as f } from "react";
|
|
8
|
+
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
9
9
|
//#region src/SelectCombobox.tsx
|
|
10
|
-
function
|
|
10
|
+
function h({ count: e, children: t }) {
|
|
11
11
|
let n = e > 0 ? Math.min(.03, .35 / e) : 0, r = o({
|
|
12
12
|
selector: ".select-combobox__option",
|
|
13
13
|
y: 6,
|
|
14
14
|
duration: .3,
|
|
15
15
|
stagger: n
|
|
16
16
|
});
|
|
17
|
-
return /* @__PURE__ */
|
|
17
|
+
return /* @__PURE__ */ p("div", {
|
|
18
18
|
className: "select-combobox__list",
|
|
19
19
|
ref: r,
|
|
20
20
|
children: t
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
-
var
|
|
24
|
-
let I = n(), L =
|
|
23
|
+
var g = c(function({ label: o, value: c, onChange: g, options: _, placeholder: v, searchPlaceholder: y, labelAction: b, help: x, hint: S, error: C, emptyText: ee, disabled: te, required: w, optional: T = !1, size: E = "md", searchable: D = !0, allowCustom: O = !1, customLabel: k, minWidth: A, ariaLabel: j, className: M, style: N, ...P }, F) {
|
|
24
|
+
let I = n(), L = v ?? I.common.selectPlaceholder, R = y ?? I.common.searchPlaceholder, z = ee ?? I.common.noResults, B = l(), [V, H] = f(!1), [U, W] = f(""), G = d(null);
|
|
25
25
|
a(V, G);
|
|
26
|
-
let K =
|
|
26
|
+
let K = _.find((e) => e.value === c), q = K ? K.label : O && c ? c : null, J = u(() => {
|
|
27
27
|
let e = U.trim().toLowerCase();
|
|
28
|
-
return !D || !e ?
|
|
28
|
+
return !D || !e ? _ : _.filter((t) => {
|
|
29
29
|
var n;
|
|
30
30
|
return t.label.toLowerCase().includes(e) || ((n = t.secondary) == null ? void 0 : n.toLowerCase().includes(e));
|
|
31
31
|
});
|
|
32
32
|
}, [
|
|
33
|
-
|
|
33
|
+
_,
|
|
34
34
|
U,
|
|
35
35
|
D
|
|
36
|
-
]), Y = U.trim(), X = Y ?
|
|
36
|
+
]), Y = U.trim(), X = Y ? _.find((e) => e.label.toLowerCase() === Y.toLowerCase()) : void 0, Z = O && D && Y !== "" && !X, Q = () => {
|
|
37
37
|
H(!1), W("");
|
|
38
38
|
}, $ = (e) => {
|
|
39
|
-
|
|
40
|
-
}, ne =
|
|
41
|
-
return /* @__PURE__ */
|
|
39
|
+
g(e), Q();
|
|
40
|
+
}, ne = C ? `${B}-err` : S ? `${B}-hint` : void 0;
|
|
41
|
+
return /* @__PURE__ */ m("div", {
|
|
42
42
|
ref: F,
|
|
43
43
|
...P,
|
|
44
44
|
style: A ? {
|
|
@@ -47,57 +47,65 @@ var h = c(function({ label: o, value: c, onChange: h, options: g, placeholder: _
|
|
|
47
47
|
} : N,
|
|
48
48
|
className: `select-field${E === "sm" ? " select-field--sm" : ""}${M ? " " + M : ""}`,
|
|
49
49
|
children: [
|
|
50
|
-
(o ||
|
|
50
|
+
(o || x || b) && /* @__PURE__ */ m("div", {
|
|
51
51
|
className: "select-field__labelrow",
|
|
52
|
-
children: [/* @__PURE__ */
|
|
52
|
+
children: [/* @__PURE__ */ m("span", {
|
|
53
53
|
className: "select-field__labelwrap",
|
|
54
|
-
children: [o && /* @__PURE__ */
|
|
54
|
+
children: [o && /* @__PURE__ */ m("label", {
|
|
55
55
|
className: "select-field__label",
|
|
56
56
|
htmlFor: B,
|
|
57
|
-
children: [o, T && /* @__PURE__ */
|
|
57
|
+
children: [o, T && /* @__PURE__ */ m("span", {
|
|
58
58
|
className: "select-field__optional",
|
|
59
59
|
children: [" ", I.common.optional]
|
|
60
60
|
})]
|
|
61
|
-
}),
|
|
62
|
-
}),
|
|
61
|
+
}), x != null && x !== "" && /* @__PURE__ */ p(r, { content: x })]
|
|
62
|
+
}), b]
|
|
63
63
|
}),
|
|
64
|
-
/* @__PURE__ */
|
|
64
|
+
/* @__PURE__ */ p("div", {
|
|
65
65
|
className: "select-combobox",
|
|
66
|
-
children: /* @__PURE__ */
|
|
66
|
+
children: /* @__PURE__ */ p(s, {
|
|
67
67
|
active: V,
|
|
68
68
|
onClose: Q,
|
|
69
69
|
placement: "bottom-start",
|
|
70
70
|
role: "listbox",
|
|
71
71
|
matchWidth: !0,
|
|
72
|
-
activator: /* @__PURE__ */
|
|
72
|
+
activator: /* @__PURE__ */ m("button", {
|
|
73
73
|
id: B,
|
|
74
74
|
type: "button",
|
|
75
|
-
className: `select-combobox__trigger${
|
|
75
|
+
className: `select-combobox__trigger${C ? " select-input--error" : ""}${V ? " is-open" : ""}`,
|
|
76
76
|
onClick: () => V ? Q() : H(!0),
|
|
77
|
-
disabled:
|
|
77
|
+
disabled: te,
|
|
78
78
|
"aria-haspopup": "listbox",
|
|
79
79
|
"aria-label": o ? void 0 : j && T ? `${j} ${I.common.optional}` : j,
|
|
80
80
|
"data-value": c,
|
|
81
81
|
"aria-expanded": V,
|
|
82
82
|
"aria-required": w || void 0,
|
|
83
83
|
"aria-describedby": ne,
|
|
84
|
-
"aria-invalid":
|
|
85
|
-
children: [
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
84
|
+
"aria-invalid": C ? !0 : void 0,
|
|
85
|
+
children: [
|
|
86
|
+
(K == null ? void 0 : K.icon) == null ? null : /* @__PURE__ */ p("span", {
|
|
87
|
+
className: "select-combobox__icon",
|
|
88
|
+
"aria-hidden": "true",
|
|
89
|
+
children: K.icon
|
|
90
|
+
}),
|
|
91
|
+
/* @__PURE__ */ p("span", {
|
|
92
|
+
className: `select-combobox__value${q == null ? " is-placeholder" : ""}`,
|
|
93
|
+
children: q ?? L
|
|
94
|
+
}),
|
|
95
|
+
/* @__PURE__ */ p("span", {
|
|
96
|
+
className: "select-combobox__caret",
|
|
97
|
+
"aria-hidden": "true",
|
|
98
|
+
children: /* @__PURE__ */ p(t, {})
|
|
99
|
+
})
|
|
100
|
+
]
|
|
93
101
|
}),
|
|
94
|
-
children: /* @__PURE__ */
|
|
102
|
+
children: /* @__PURE__ */ m("div", {
|
|
95
103
|
className: "select-combobox__panel",
|
|
96
104
|
ref: G,
|
|
97
105
|
onKeyDown: i,
|
|
98
|
-
children: [D && /* @__PURE__ */
|
|
106
|
+
children: [D && /* @__PURE__ */ p("div", {
|
|
99
107
|
className: "select-combobox__search",
|
|
100
|
-
children: /* @__PURE__ */
|
|
108
|
+
children: /* @__PURE__ */ p("input", {
|
|
101
109
|
className: "select-combobox__searchinput",
|
|
102
110
|
type: "text",
|
|
103
111
|
value: U,
|
|
@@ -107,27 +115,27 @@ var h = c(function({ label: o, value: c, onChange: h, options: g, placeholder: _
|
|
|
107
115
|
},
|
|
108
116
|
placeholder: R
|
|
109
117
|
})
|
|
110
|
-
}), /* @__PURE__ */
|
|
118
|
+
}), /* @__PURE__ */ m(h, {
|
|
111
119
|
count: J.length + +!!Z,
|
|
112
|
-
children: [Z && /* @__PURE__ */
|
|
120
|
+
children: [Z && /* @__PURE__ */ p("button", {
|
|
113
121
|
type: "button",
|
|
114
122
|
role: "option",
|
|
115
123
|
"aria-selected": !1,
|
|
116
124
|
className: "select-combobox__option select-combobox__option--custom",
|
|
117
125
|
onClick: () => $(Y),
|
|
118
|
-
children: /* @__PURE__ */
|
|
126
|
+
children: /* @__PURE__ */ p("span", {
|
|
119
127
|
className: "select-combobox__optiontext",
|
|
120
|
-
children: /* @__PURE__ */
|
|
128
|
+
children: /* @__PURE__ */ p("span", {
|
|
121
129
|
className: "select-combobox__optionlabel",
|
|
122
130
|
children: k ? k(Y) : `Usar “${Y}”`
|
|
123
131
|
})
|
|
124
132
|
})
|
|
125
|
-
}), J.length === 0 ? Z ? null : /* @__PURE__ */
|
|
133
|
+
}), J.length === 0 ? Z ? null : /* @__PURE__ */ p("div", {
|
|
126
134
|
className: "select-combobox__empty",
|
|
127
135
|
children: z
|
|
128
136
|
}) : J.map((t) => {
|
|
129
137
|
let n = t.value === c;
|
|
130
|
-
return /* @__PURE__ */
|
|
138
|
+
return /* @__PURE__ */ m("button", {
|
|
131
139
|
type: "button",
|
|
132
140
|
role: "option",
|
|
133
141
|
"aria-selected": n,
|
|
@@ -135,39 +143,47 @@ var h = c(function({ label: o, value: c, onChange: h, options: g, placeholder: _
|
|
|
135
143
|
disabled: t.disabled,
|
|
136
144
|
className: `select-combobox__option${n ? " is-selected" : ""}`,
|
|
137
145
|
onClick: () => $(t.value),
|
|
138
|
-
children: [
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
children: t.
|
|
143
|
-
}),
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
146
|
+
children: [
|
|
147
|
+
t.icon == null ? null : /* @__PURE__ */ p("span", {
|
|
148
|
+
className: "select-combobox__optionicon",
|
|
149
|
+
"aria-hidden": "true",
|
|
150
|
+
children: t.icon
|
|
151
|
+
}),
|
|
152
|
+
/* @__PURE__ */ m("span", {
|
|
153
|
+
className: "select-combobox__optiontext",
|
|
154
|
+
children: [/* @__PURE__ */ p("span", {
|
|
155
|
+
className: "select-combobox__optionlabel",
|
|
156
|
+
children: t.label
|
|
157
|
+
}), t.secondary && /* @__PURE__ */ p("span", {
|
|
158
|
+
className: "select-combobox__optionsecondary",
|
|
159
|
+
children: t.secondary
|
|
160
|
+
})]
|
|
161
|
+
}),
|
|
162
|
+
n && /* @__PURE__ */ p("span", {
|
|
163
|
+
className: "select-combobox__check",
|
|
164
|
+
"aria-hidden": "true",
|
|
165
|
+
children: /* @__PURE__ */ p(e, {})
|
|
166
|
+
})
|
|
167
|
+
]
|
|
152
168
|
}, t.value);
|
|
153
169
|
})]
|
|
154
170
|
})]
|
|
155
171
|
})
|
|
156
172
|
})
|
|
157
173
|
}),
|
|
158
|
-
|
|
174
|
+
C ? /* @__PURE__ */ p("p", {
|
|
159
175
|
id: `${B}-err`,
|
|
160
176
|
className: "select-field__error",
|
|
161
|
-
children:
|
|
162
|
-
}) :
|
|
177
|
+
children: C
|
|
178
|
+
}) : S ? /* @__PURE__ */ p("p", {
|
|
163
179
|
id: `${B}-hint`,
|
|
164
180
|
className: "select-field__hint",
|
|
165
|
-
children:
|
|
181
|
+
children: S
|
|
166
182
|
}) : null
|
|
167
183
|
]
|
|
168
184
|
});
|
|
169
185
|
});
|
|
170
186
|
//#endregion
|
|
171
|
-
export {
|
|
187
|
+
export { g as SelectCombobox };
|
|
172
188
|
|
|
173
189
|
//# sourceMappingURL=SelectCombobox.js.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
type SelectConversationContextOwnProps = {
|
|
3
|
+
/** O sobretítulo: de quem é o post e quando ("Post de @selectwin.io · 10/11"). */
|
|
4
|
+
overline: ReactNode;
|
|
5
|
+
/** O texto do post (a legenda), numa linha só no cartão inteiro. */
|
|
6
|
+
text: ReactNode;
|
|
7
|
+
/** A linha de apoio ("48 comentários · 6 na fila"). */
|
|
8
|
+
meta?: ReactNode;
|
|
9
|
+
/** A foto do post (o endereço da imagem). Sem ela, o quadro com o ícone de imagem. */
|
|
10
|
+
image?: string | null;
|
|
11
|
+
/** O texto da foto para o leitor de tela (padrão: nenhum — a foto é enfeite; o texto do post está ao lado). */
|
|
12
|
+
imageAlt?: string;
|
|
13
|
+
/** Uma foto pronta do app (o `SelectThumbnail`), no lugar do `image`. */
|
|
14
|
+
media?: ReactNode;
|
|
15
|
+
/** O link à direita: o post na rede (um endereço `https:`), que abre em outra aba. */
|
|
16
|
+
href?: string | null;
|
|
17
|
+
/** O nome do link (padrão: "Ver o post"). */
|
|
18
|
+
linkLabel?: ReactNode;
|
|
19
|
+
/** Outra ação à direita, no lugar do link (um botão do app). */
|
|
20
|
+
action?: ReactNode;
|
|
21
|
+
/** `auto` (o padrão) recolhe abaixo de 26rem do próprio cartão; `full` e `compact` forçam um dos dois. */
|
|
22
|
+
layout?: 'auto' | 'full' | 'compact';
|
|
23
|
+
/** Recolhido, começa aberto (padrão: fechado). */
|
|
24
|
+
defaultOpen?: boolean;
|
|
25
|
+
/** O nome do cartão para o leitor de tela (padrão: "O post do comentário"). */
|
|
26
|
+
'aria-label'?: string;
|
|
27
|
+
};
|
|
28
|
+
export type SelectConversationContextProps = SelectConversationContextOwnProps & Omit<ComponentPropsWithoutRef<'section'>, keyof SelectConversationContextOwnProps | 'children'>;
|
|
29
|
+
export declare const SelectConversationContext: import('react').ForwardRefExoticComponent<SelectConversationContextOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "ref">, "children" | keyof SelectConversationContextOwnProps> & import('react').RefAttributes<HTMLElement>>;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { safeHref as e, safeImageSrc as t } from "./internal/safeHref.js";
|
|
3
|
+
import { ChevronDownIcon as n, ExternalLinkIcon as r, ImageIcon as i } from "./icons.js";
|
|
4
|
+
import { useSelectMessages as a } from "./SelectLocale.js";
|
|
5
|
+
import { inertProps as o } from "./internal/inert.js";
|
|
6
|
+
import { forwardRef as s, useId as c, useLayoutEffect as l, useRef as u, useState as d } from "react";
|
|
7
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
8
|
+
//#region src/SelectConversationContext.tsx
|
|
9
|
+
var m = 416, h = s(function({ overline: s, text: h, meta: g, image: _, imageAlt: v = "", media: y, href: b, linkLabel: x, action: S, layout: C = "auto", defaultOpen: w = !1, className: T, "aria-label": E, ...D }, O) {
|
|
10
|
+
let k = a().conversationContext, A = u(null), [j, M] = d("full"), [N, P] = d(w), F = c();
|
|
11
|
+
l(() => {
|
|
12
|
+
let e = A.current;
|
|
13
|
+
if (C !== "auto" || !e || typeof ResizeObserver > "u") return;
|
|
14
|
+
let t = (e) => M(e > 0 && e < m ? "compact" : "full");
|
|
15
|
+
t(e.getBoundingClientRect().width);
|
|
16
|
+
let n = new ResizeObserver((e) => {
|
|
17
|
+
var n;
|
|
18
|
+
return t(((n = e[0]) == null ? void 0 : n.contentRect.width) ?? 0);
|
|
19
|
+
});
|
|
20
|
+
return n.observe(e), () => n.disconnect();
|
|
21
|
+
}, [C]);
|
|
22
|
+
let I = (C === "auto" ? j : C) === "compact", L = (e) => {
|
|
23
|
+
A.current = e, typeof O == "function" ? O(e) : O && (O.current = e);
|
|
24
|
+
}, R = t(_), z = y != null && y !== !1 ? y : R ? /* @__PURE__ */ f("img", {
|
|
25
|
+
className: "select-convcontext__img",
|
|
26
|
+
src: R,
|
|
27
|
+
alt: v
|
|
28
|
+
}) : /* @__PURE__ */ f("span", {
|
|
29
|
+
className: "select-convcontext__placeholder",
|
|
30
|
+
"aria-hidden": "true",
|
|
31
|
+
children: /* @__PURE__ */ f(i, {})
|
|
32
|
+
}), B = e(b), V = S != null && S !== !1 ? /* @__PURE__ */ f("span", {
|
|
33
|
+
className: "select-convcontext__action",
|
|
34
|
+
children: S
|
|
35
|
+
}) : B ? /* @__PURE__ */ p("a", {
|
|
36
|
+
className: "select-convcontext__link",
|
|
37
|
+
href: B,
|
|
38
|
+
target: "_blank",
|
|
39
|
+
rel: "noopener noreferrer",
|
|
40
|
+
children: [
|
|
41
|
+
/* @__PURE__ */ f("span", { children: x ?? k.link }),
|
|
42
|
+
/* @__PURE__ */ f("span", {
|
|
43
|
+
className: "select-convcontext__linkicon",
|
|
44
|
+
"aria-hidden": "true",
|
|
45
|
+
children: /* @__PURE__ */ f(r, {})
|
|
46
|
+
}),
|
|
47
|
+
/* @__PURE__ */ f("span", {
|
|
48
|
+
className: "select-visually-hidden",
|
|
49
|
+
children: ` ${k.newTab}`
|
|
50
|
+
})
|
|
51
|
+
]
|
|
52
|
+
}) : null, H = g != null && g !== !1 && g !== "", U = `select-convcontext${I ? " select-convcontext--compact" : ""}${I && N ? " is-open" : ""}${T ? " " + T : ""}`;
|
|
53
|
+
return I ? /* @__PURE__ */ p("section", {
|
|
54
|
+
ref: L,
|
|
55
|
+
...D,
|
|
56
|
+
className: U,
|
|
57
|
+
"aria-label": E ?? k.label,
|
|
58
|
+
children: [/* @__PURE__ */ p("button", {
|
|
59
|
+
type: "button",
|
|
60
|
+
className: "select-convcontext__toggle",
|
|
61
|
+
"aria-expanded": N,
|
|
62
|
+
"aria-controls": F,
|
|
63
|
+
onClick: () => P((e) => !e),
|
|
64
|
+
children: [
|
|
65
|
+
/* @__PURE__ */ f("span", {
|
|
66
|
+
className: "select-convcontext__media select-convcontext__media--sm",
|
|
67
|
+
children: z
|
|
68
|
+
}),
|
|
69
|
+
/* @__PURE__ */ p("span", {
|
|
70
|
+
className: "select-convcontext__line",
|
|
71
|
+
children: [/* @__PURE__ */ f("span", {
|
|
72
|
+
className: "select-convcontext__overline",
|
|
73
|
+
children: s
|
|
74
|
+
}), /* @__PURE__ */ f("span", {
|
|
75
|
+
className: "select-convcontext__text",
|
|
76
|
+
children: h
|
|
77
|
+
})]
|
|
78
|
+
}),
|
|
79
|
+
/* @__PURE__ */ f("span", {
|
|
80
|
+
className: "select-convcontext__chevron",
|
|
81
|
+
"aria-hidden": "true",
|
|
82
|
+
children: /* @__PURE__ */ f(n, {})
|
|
83
|
+
})
|
|
84
|
+
]
|
|
85
|
+
}), /* @__PURE__ */ f("div", {
|
|
86
|
+
id: F,
|
|
87
|
+
className: "select-convcontext__more",
|
|
88
|
+
...o(!N),
|
|
89
|
+
children: /* @__PURE__ */ f("div", {
|
|
90
|
+
className: "select-convcontext__moreclip",
|
|
91
|
+
children: /* @__PURE__ */ p("div", {
|
|
92
|
+
className: "select-convcontext__moreinner",
|
|
93
|
+
children: [
|
|
94
|
+
/* @__PURE__ */ f("p", {
|
|
95
|
+
className: "select-convcontext__fulltext",
|
|
96
|
+
children: h
|
|
97
|
+
}),
|
|
98
|
+
H ? /* @__PURE__ */ f("span", {
|
|
99
|
+
className: "select-convcontext__meta",
|
|
100
|
+
children: g
|
|
101
|
+
}) : null,
|
|
102
|
+
V
|
|
103
|
+
]
|
|
104
|
+
})
|
|
105
|
+
})
|
|
106
|
+
})]
|
|
107
|
+
}) : /* @__PURE__ */ p("section", {
|
|
108
|
+
ref: L,
|
|
109
|
+
...D,
|
|
110
|
+
className: U,
|
|
111
|
+
"aria-label": E ?? k.label,
|
|
112
|
+
children: [
|
|
113
|
+
/* @__PURE__ */ f("span", {
|
|
114
|
+
className: "select-convcontext__media",
|
|
115
|
+
children: z
|
|
116
|
+
}),
|
|
117
|
+
/* @__PURE__ */ p("span", {
|
|
118
|
+
className: "select-convcontext__body",
|
|
119
|
+
children: [
|
|
120
|
+
/* @__PURE__ */ f("span", {
|
|
121
|
+
className: "select-convcontext__overline",
|
|
122
|
+
children: s
|
|
123
|
+
}),
|
|
124
|
+
/* @__PURE__ */ f("span", {
|
|
125
|
+
className: "select-convcontext__text",
|
|
126
|
+
children: h
|
|
127
|
+
}),
|
|
128
|
+
H ? /* @__PURE__ */ f("span", {
|
|
129
|
+
className: "select-convcontext__meta",
|
|
130
|
+
children: g
|
|
131
|
+
}) : null
|
|
132
|
+
]
|
|
133
|
+
}),
|
|
134
|
+
V
|
|
135
|
+
]
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
//#endregion
|
|
139
|
+
export { h as SelectConversationContext };
|
|
140
|
+
|
|
141
|
+
//# sourceMappingURL=SelectConversationContext.js.map
|
|
@@ -26,7 +26,11 @@ export interface SelectDatePickerProps {
|
|
|
26
26
|
maxDate?: Date | null;
|
|
27
27
|
/** Drop the card chrome (surface/border/shadow) so it sits flush in a popover. */
|
|
28
28
|
embedded?: boolean;
|
|
29
|
+
/** 0.1.263: o tamanho máximo do intervalo, em dias (contando o começo e o fim): 731, 90, 365. */
|
|
30
|
+
maxSpanDays?: number;
|
|
29
31
|
}
|
|
32
|
+
/** 0.1.263: quantos dias o intervalo tem, contando o começo e o fim (pelo calendário, sem o fuso nem o horário de verão). PURA. */
|
|
33
|
+
export declare function selectRangeDays(from: Date, to: Date): number;
|
|
30
34
|
/** Mirrors the reference: minute/hour/day windows ending "now", plus All. */
|
|
31
35
|
export declare const SELECT_DATE_PRESETS: SelectDatePreset[];
|
|
32
36
|
/** PT-BR daily presets for dashboards/analytics (today / last N days, no time). */
|