@selectwin/kit 0.1.221 → 0.1.223
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/SelectAssistant.js +97 -97
- package/dist/SelectAssistantLauncher.d.ts +21 -0
- package/dist/SelectAssistantLauncher.js +37 -0
- package/dist/SelectAuthSplit.d.ts +26 -0
- package/dist/SelectAuthSplit.js +46 -0
- package/dist/SelectConversation.d.ts +26 -3
- package/dist/SelectConversation.js +102 -64
- package/dist/SelectLocale.d.ts +7 -0
- package/dist/SelectLocale.js +24 -0
- package/dist/SelectOtpInput.js +39 -38
- package/dist/SelectPasswordStrength.js +33 -32
- package/dist/index.d.ts +4 -1
- package/dist/index.js +132 -130
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,124 +1,138 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { safeHref as e } from "./internal/safeHref.js";
|
|
2
|
+
import { useEffect as t, useLayoutEffect as n, useRef as r } from "react";
|
|
3
|
+
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
4
|
+
import { Link as s } from "react-router-dom";
|
|
3
5
|
//#region src/SelectConversation.tsx
|
|
4
|
-
var
|
|
5
|
-
function
|
|
6
|
+
var c = (...e) => e.filter(Boolean).join(" "), l = 48;
|
|
7
|
+
function u(e) {
|
|
6
8
|
for (let t = (e == null ? void 0 : e.parentElement) ?? null; t; t = t.parentElement) {
|
|
7
9
|
let { overflowY: e } = getComputedStyle(t);
|
|
8
10
|
if (e === "auto" || e === "scroll") return t;
|
|
9
11
|
}
|
|
10
12
|
return null;
|
|
11
13
|
}
|
|
12
|
-
function
|
|
13
|
-
let
|
|
14
|
-
return
|
|
15
|
-
let e =
|
|
14
|
+
function d({ children: e, "aria-label": i, onPinnedChange: o }) {
|
|
15
|
+
let s = r(null), c = r(!0), d = r(o);
|
|
16
|
+
return d.current = o, t(() => {
|
|
17
|
+
let e = u(s.current);
|
|
16
18
|
if (!e) return;
|
|
17
19
|
let t = () => {
|
|
18
|
-
|
|
20
|
+
var t;
|
|
21
|
+
let n = e.scrollHeight - e.scrollTop - e.clientHeight <= l;
|
|
22
|
+
n !== c.current && ((t = d.current) == null || t.call(d, n)), c.current = n;
|
|
19
23
|
};
|
|
20
24
|
return e.addEventListener("scroll", t, { passive: !0 }), () => e.removeEventListener("scroll", t);
|
|
21
|
-
}, []),
|
|
22
|
-
if (!
|
|
23
|
-
let e =
|
|
25
|
+
}, []), n(() => {
|
|
26
|
+
if (!c.current) return;
|
|
27
|
+
let e = u(s.current);
|
|
24
28
|
e && (e.scrollTop = e.scrollHeight);
|
|
25
|
-
}),
|
|
26
|
-
let e =
|
|
29
|
+
}), t(() => {
|
|
30
|
+
let e = s.current, t = u(e);
|
|
27
31
|
if (!e || !t || typeof ResizeObserver > "u") return;
|
|
28
32
|
let n = new ResizeObserver(() => {
|
|
29
|
-
|
|
33
|
+
c.current && (t.scrollTop = t.scrollHeight);
|
|
30
34
|
});
|
|
31
35
|
return n.observe(e), () => n.disconnect();
|
|
32
|
-
}, []), /* @__PURE__ */
|
|
33
|
-
ref:
|
|
36
|
+
}, []), /* @__PURE__ */ a("div", {
|
|
37
|
+
ref: s,
|
|
34
38
|
className: "select-convo",
|
|
35
39
|
role: "log",
|
|
36
40
|
"aria-live": "polite",
|
|
37
|
-
"aria-label":
|
|
38
|
-
children:
|
|
41
|
+
"aria-label": i,
|
|
42
|
+
children: e
|
|
39
43
|
});
|
|
40
44
|
}
|
|
41
|
-
function
|
|
42
|
-
return /* @__PURE__ */
|
|
45
|
+
function f({ children: e }) {
|
|
46
|
+
return /* @__PURE__ */ a("div", {
|
|
43
47
|
className: "select-convo__day",
|
|
44
48
|
role: "separator",
|
|
45
49
|
"aria-label": typeof e == "string" ? e : void 0,
|
|
46
50
|
children: e
|
|
47
51
|
});
|
|
48
52
|
}
|
|
49
|
-
function
|
|
50
|
-
return /* @__PURE__ */
|
|
53
|
+
function p({ children: e, time: t }) {
|
|
54
|
+
return /* @__PURE__ */ o("div", {
|
|
51
55
|
className: "select-convo__event",
|
|
52
|
-
children: [e, t ? /* @__PURE__ */
|
|
56
|
+
children: [e, t ? /* @__PURE__ */ o("span", {
|
|
53
57
|
className: "select-convo__event-time",
|
|
54
58
|
children: [" · ", t]
|
|
55
59
|
}) : null]
|
|
56
60
|
});
|
|
57
61
|
}
|
|
58
|
-
function
|
|
59
|
-
let
|
|
60
|
-
|
|
62
|
+
function m({ direction: t, author: n, label: r, attachment: l, meta: u, metaTone: d, children: f, avatar: p, time: m, media: h, fresh: g = !1, to: _, href: v, onClick: y }) {
|
|
63
|
+
let b = f != null && f !== "", x = b || !!r || h != null, S = _ != null || v != null ? e(_ ?? v) : void 0, C = c("select-convo__bubble", S !== void 0 && "select-convo__bubble--link"), w = /* @__PURE__ */ o(i, { children: [
|
|
64
|
+
r ? /* @__PURE__ */ a("span", {
|
|
65
|
+
className: "select-convo__label",
|
|
66
|
+
children: r
|
|
67
|
+
}) : null,
|
|
68
|
+
h == null ? null : /* @__PURE__ */ a("div", {
|
|
69
|
+
className: "select-convo__media",
|
|
70
|
+
children: h
|
|
71
|
+
}),
|
|
72
|
+
b ? /* @__PURE__ */ a("div", {
|
|
73
|
+
className: "select-convo__text",
|
|
74
|
+
children: f
|
|
75
|
+
}) : null
|
|
76
|
+
] }), T = /* @__PURE__ */ o(i, { children: [
|
|
77
|
+
n || m ? /* @__PURE__ */ o("span", {
|
|
61
78
|
className: "select-convo__author",
|
|
62
|
-
children: [
|
|
79
|
+
children: [n, m ? /* @__PURE__ */ a("span", {
|
|
63
80
|
className: "select-convo__time",
|
|
64
|
-
children:
|
|
81
|
+
children: m
|
|
65
82
|
}) : null]
|
|
66
83
|
}) : null,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
children: u
|
|
81
|
-
}) : null
|
|
82
|
-
]
|
|
84
|
+
x ? S !== void 0 && _ != null ? /* @__PURE__ */ a(s, {
|
|
85
|
+
to: S,
|
|
86
|
+
className: C,
|
|
87
|
+
onClick: y,
|
|
88
|
+
children: w
|
|
89
|
+
}) : S === void 0 ? /* @__PURE__ */ a("div", {
|
|
90
|
+
className: C,
|
|
91
|
+
children: w
|
|
92
|
+
}) : /* @__PURE__ */ a("a", {
|
|
93
|
+
href: S,
|
|
94
|
+
className: C,
|
|
95
|
+
onClick: y,
|
|
96
|
+
children: w
|
|
83
97
|
}) : null,
|
|
84
|
-
|
|
98
|
+
l ? /* @__PURE__ */ a("div", {
|
|
85
99
|
className: "select-convo__attachment",
|
|
86
|
-
children:
|
|
100
|
+
children: l
|
|
87
101
|
}) : null,
|
|
88
|
-
|
|
89
|
-
className:
|
|
90
|
-
children:
|
|
102
|
+
u ? /* @__PURE__ */ a("span", {
|
|
103
|
+
className: c("select-convo__meta", d && `select-convo__meta--${d}`),
|
|
104
|
+
children: u
|
|
91
105
|
}) : null
|
|
92
106
|
] });
|
|
93
|
-
return
|
|
94
|
-
className:
|
|
95
|
-
children: [/* @__PURE__ */
|
|
107
|
+
return p ? /* @__PURE__ */ o("div", {
|
|
108
|
+
className: c("select-convo__msg", `select-convo__msg--${t}`, "select-convo__msg--avatar", g && "is-fresh"),
|
|
109
|
+
children: [/* @__PURE__ */ a("span", {
|
|
96
110
|
className: "select-convo__avatar",
|
|
97
111
|
"aria-hidden": "true",
|
|
98
|
-
children:
|
|
99
|
-
}), /* @__PURE__ */
|
|
112
|
+
children: p
|
|
113
|
+
}), /* @__PURE__ */ a("div", {
|
|
100
114
|
className: "select-convo__stack",
|
|
101
|
-
children:
|
|
115
|
+
children: T
|
|
102
116
|
})]
|
|
103
|
-
}) : /* @__PURE__ */
|
|
104
|
-
className:
|
|
105
|
-
children:
|
|
117
|
+
}) : /* @__PURE__ */ a("div", {
|
|
118
|
+
className: c("select-convo__msg", `select-convo__msg--${t}`, g && "is-fresh"),
|
|
119
|
+
children: T
|
|
106
120
|
});
|
|
107
121
|
}
|
|
108
|
-
function
|
|
109
|
-
return e === "audio" ? /* @__PURE__ */
|
|
122
|
+
function h({ kind: e, src: t, alt: n, onError: r }) {
|
|
123
|
+
return e === "audio" ? /* @__PURE__ */ a("audio", {
|
|
110
124
|
className: "select-convo__audio",
|
|
111
125
|
controls: !0,
|
|
112
126
|
preload: "none",
|
|
113
127
|
src: t,
|
|
114
128
|
onError: r
|
|
115
|
-
}) : e === "video" ? /* @__PURE__ */
|
|
129
|
+
}) : e === "video" ? /* @__PURE__ */ a("video", {
|
|
116
130
|
className: "select-convo__video",
|
|
117
131
|
controls: !0,
|
|
118
132
|
preload: "none",
|
|
119
133
|
src: t,
|
|
120
134
|
onError: r
|
|
121
|
-
}) : /* @__PURE__ */
|
|
135
|
+
}) : /* @__PURE__ */ a("img", {
|
|
122
136
|
className: `select-convo__image${e === "sticker" ? " select-convo__image--sticker" : ""}`,
|
|
123
137
|
src: t,
|
|
124
138
|
alt: n ?? "",
|
|
@@ -126,7 +140,31 @@ function p({ kind: e, src: t, alt: n, onError: r }) {
|
|
|
126
140
|
onError: r
|
|
127
141
|
});
|
|
128
142
|
}
|
|
143
|
+
function g({ children: e, onClick: t }) {
|
|
144
|
+
let n = r(null);
|
|
145
|
+
return /* @__PURE__ */ o("button", {
|
|
146
|
+
ref: n,
|
|
147
|
+
type: "button",
|
|
148
|
+
className: "select-convo__newer",
|
|
149
|
+
onClick: () => {
|
|
150
|
+
let e = u(n.current);
|
|
151
|
+
e && (e.scrollTop = e.scrollHeight), t == null || t();
|
|
152
|
+
},
|
|
153
|
+
children: [/* @__PURE__ */ a("svg", {
|
|
154
|
+
viewBox: "0 0 20 20",
|
|
155
|
+
width: "16",
|
|
156
|
+
height: "16",
|
|
157
|
+
fill: "none",
|
|
158
|
+
stroke: "currentColor",
|
|
159
|
+
strokeWidth: "1.8",
|
|
160
|
+
strokeLinecap: "round",
|
|
161
|
+
strokeLinejoin: "round",
|
|
162
|
+
"aria-hidden": "true",
|
|
163
|
+
children: /* @__PURE__ */ a("path", { d: "M5 8l5 5 5-5" })
|
|
164
|
+
}), e]
|
|
165
|
+
});
|
|
166
|
+
}
|
|
129
167
|
//#endregion
|
|
130
|
-
export {
|
|
168
|
+
export { d as SelectConversation, m as SelectConversationBubble, f as SelectConversationDay, p as SelectConversationEvent, h as SelectConversationMedia, g as SelectConversationNewer };
|
|
131
169
|
|
|
132
170
|
//# sourceMappingURL=SelectConversation.js.map
|
package/dist/SelectLocale.d.ts
CHANGED
|
@@ -108,6 +108,13 @@ export interface SelectKitMessages {
|
|
|
108
108
|
attachmentBusy: (name: string) => string;
|
|
109
109
|
attachmentGet: (name: string) => string;
|
|
110
110
|
};
|
|
111
|
+
/** 0.1.223: a entrada — o nome de cada caixinha do código (SelectOtpInput) e a força da senha (SelectPasswordStrength). */
|
|
112
|
+
auth: {
|
|
113
|
+
digit: (n: number) => string;
|
|
114
|
+
strength: readonly [string, string, string, string, string];
|
|
115
|
+
met: string;
|
|
116
|
+
pending: string;
|
|
117
|
+
};
|
|
111
118
|
/** 0.1.220: o SelectCarousel — o nome, o papel, a posição e os botões. */
|
|
112
119
|
carousel: {
|
|
113
120
|
label: string;
|
package/dist/SelectLocale.js
CHANGED
|
@@ -87,6 +87,18 @@ var r = {
|
|
|
87
87
|
progress: (e, t) => `${e} de ${t}`
|
|
88
88
|
},
|
|
89
89
|
sideNav: { pending: (e) => `${e} (com pendências)` },
|
|
90
|
+
auth: {
|
|
91
|
+
digit: (e) => `Dígito ${e}`,
|
|
92
|
+
strength: [
|
|
93
|
+
"Muito fraca",
|
|
94
|
+
"Fraca",
|
|
95
|
+
"Razoável",
|
|
96
|
+
"Forte",
|
|
97
|
+
"Excelente"
|
|
98
|
+
],
|
|
99
|
+
met: " (atendido)",
|
|
100
|
+
pending: " (pendente)"
|
|
101
|
+
},
|
|
90
102
|
inbox: {
|
|
91
103
|
list: "Conversas",
|
|
92
104
|
reader: "Conversa aberta",
|
|
@@ -214,6 +226,18 @@ var r = {
|
|
|
214
226
|
progress: (e, t) => `${e} of ${t}`
|
|
215
227
|
},
|
|
216
228
|
sideNav: { pending: (e) => `${e} (pending)` },
|
|
229
|
+
auth: {
|
|
230
|
+
digit: (e) => `Digit ${e}`,
|
|
231
|
+
strength: [
|
|
232
|
+
"Very weak",
|
|
233
|
+
"Weak",
|
|
234
|
+
"Fair",
|
|
235
|
+
"Strong",
|
|
236
|
+
"Excellent"
|
|
237
|
+
],
|
|
238
|
+
met: " (met)",
|
|
239
|
+
pending: " (pending)"
|
|
240
|
+
},
|
|
217
241
|
inbox: {
|
|
218
242
|
list: "Conversations",
|
|
219
243
|
reader: "Open conversation",
|
package/dist/SelectOtpInput.js
CHANGED
|
@@ -1,46 +1,47 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useSelectMessages as e } from "./SelectLocale.js";
|
|
2
|
+
import { forwardRef as t, useRef as n } from "react";
|
|
3
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
3
4
|
//#region src/SelectOtpInput.tsx
|
|
4
|
-
var
|
|
5
|
-
let
|
|
5
|
+
var i = t(function({ value: t, onChange: i, length: a = 6, onComplete: o, autoFocus: s = !1, disabled: c = !1, error: l = !1, className: u, ...d }, f) {
|
|
6
|
+
let p = e().auth, m = n([]), h = Array.from({ length: a }, (e, n) => t[n] ?? ""), g = (e) => {
|
|
6
7
|
var t;
|
|
7
|
-
return (t =
|
|
8
|
-
},
|
|
9
|
-
let n =
|
|
8
|
+
return (t = m.current[e]) == null ? void 0 : t.focus();
|
|
9
|
+
}, _ = (e, t) => {
|
|
10
|
+
let n = h.slice();
|
|
10
11
|
n[e] = t;
|
|
11
|
-
let
|
|
12
|
-
return r
|
|
13
|
-
},
|
|
12
|
+
let r = n.join("").slice(0, a);
|
|
13
|
+
return i(r), r;
|
|
14
|
+
}, v = (e, t) => {
|
|
14
15
|
let n = t.replace(/\D/g, "");
|
|
15
16
|
if (!n) {
|
|
16
|
-
|
|
17
|
+
_(e, "");
|
|
17
18
|
return;
|
|
18
19
|
}
|
|
19
20
|
if (n.length === 1) {
|
|
20
|
-
let t =
|
|
21
|
-
e <
|
|
22
|
-
} else
|
|
23
|
-
}, _ = (e, t) => {
|
|
24
|
-
let n = p.slice();
|
|
25
|
-
for (let r = 0; r < e.length && t + r < i; r++) n[t + r] = e[r] ?? "";
|
|
26
|
-
let o = n.join("").slice(0, i);
|
|
27
|
-
r(o);
|
|
28
|
-
let s = Math.min(t + e.length, i) - 1;
|
|
29
|
-
m(Math.min(s + 1, i - 1)), o.length === i && (a == null || a(o));
|
|
30
|
-
}, v = (e, t) => {
|
|
31
|
-
t.key === "Backspace" && !p[e] && e > 0 ? (t.preventDefault(), h(e - 1, ""), m(e - 1)) : t.key === "ArrowLeft" && e > 0 ? (t.preventDefault(), m(e - 1)) : t.key === "ArrowRight" && e < i - 1 && (t.preventDefault(), m(e + 1));
|
|
21
|
+
let t = _(e, n);
|
|
22
|
+
e < a - 1 && g(e + 1), t.length === a && (o == null || o(t));
|
|
23
|
+
} else y(n, e);
|
|
32
24
|
}, y = (e, t) => {
|
|
25
|
+
let n = h.slice();
|
|
26
|
+
for (let r = 0; r < e.length && t + r < a; r++) n[t + r] = e[r] ?? "";
|
|
27
|
+
let r = n.join("").slice(0, a);
|
|
28
|
+
i(r);
|
|
29
|
+
let s = Math.min(t + e.length, a) - 1;
|
|
30
|
+
g(Math.min(s + 1, a - 1)), r.length === a && (o == null || o(r));
|
|
31
|
+
}, b = (e, t) => {
|
|
32
|
+
t.key === "Backspace" && !h[e] && e > 0 ? (t.preventDefault(), _(e - 1, ""), g(e - 1)) : t.key === "ArrowLeft" && e > 0 ? (t.preventDefault(), g(e - 1)) : t.key === "ArrowRight" && e < a - 1 && (t.preventDefault(), g(e + 1));
|
|
33
|
+
}, x = (e, t) => {
|
|
33
34
|
t.preventDefault();
|
|
34
35
|
let n = t.clipboardData.getData("text").replace(/\D/g, "");
|
|
35
|
-
n &&
|
|
36
|
+
n && y(n, e);
|
|
36
37
|
};
|
|
37
|
-
return /* @__PURE__ */
|
|
38
|
-
ref:
|
|
39
|
-
...
|
|
40
|
-
className: `select-otp${
|
|
41
|
-
children:
|
|
38
|
+
return /* @__PURE__ */ r("div", {
|
|
39
|
+
ref: f,
|
|
40
|
+
...d,
|
|
41
|
+
className: `select-otp${l ? " select-otp--error" : ""}${u ? " " + u : ""}`,
|
|
42
|
+
children: h.map((e, t) => /* @__PURE__ */ r("input", {
|
|
42
43
|
ref: (e) => {
|
|
43
|
-
|
|
44
|
+
m.current[t] = e;
|
|
44
45
|
},
|
|
45
46
|
className: "select-otp__box",
|
|
46
47
|
type: "text",
|
|
@@ -48,17 +49,17 @@ var r = e(function({ value: e, onChange: r, length: i = 6, onComplete: a, autoFo
|
|
|
48
49
|
autoComplete: t === 0 ? "one-time-code" : "off",
|
|
49
50
|
maxLength: 1,
|
|
50
51
|
value: e,
|
|
51
|
-
disabled:
|
|
52
|
-
autoFocus:
|
|
53
|
-
"aria-label":
|
|
54
|
-
"aria-invalid":
|
|
55
|
-
onChange: (e) =>
|
|
56
|
-
onKeyDown: (e) =>
|
|
57
|
-
onPaste: (e) =>
|
|
52
|
+
disabled: c,
|
|
53
|
+
autoFocus: s && t === 0,
|
|
54
|
+
"aria-label": p.digit(t + 1),
|
|
55
|
+
"aria-invalid": l || void 0,
|
|
56
|
+
onChange: (e) => v(t, e.target.value),
|
|
57
|
+
onKeyDown: (e) => b(t, e),
|
|
58
|
+
onPaste: (e) => x(t, e)
|
|
58
59
|
}, t))
|
|
59
60
|
});
|
|
60
61
|
});
|
|
61
62
|
//#endregion
|
|
62
|
-
export {
|
|
63
|
+
export { i as SelectOtpInput };
|
|
63
64
|
|
|
64
65
|
//# sourceMappingURL=SelectOtpInput.js.map
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { CheckIcon as e } from "./icons.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { useSelectMessages as t } from "./SelectLocale.js";
|
|
3
|
+
import { forwardRef as n } from "react";
|
|
4
|
+
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
4
5
|
//#region src/SelectPasswordStrength.tsx
|
|
5
|
-
var
|
|
6
|
+
var o = [
|
|
6
7
|
{
|
|
7
8
|
label: "Muito fraca",
|
|
8
9
|
cls: "is-0"
|
|
@@ -23,60 +24,60 @@ var a = [
|
|
|
23
24
|
label: "Excelente",
|
|
24
25
|
cls: "is-4"
|
|
25
26
|
}
|
|
26
|
-
],
|
|
27
|
-
function
|
|
27
|
+
], s = 2;
|
|
28
|
+
function c(e) {
|
|
28
29
|
if (!e) return 0;
|
|
29
30
|
let t = 0;
|
|
30
31
|
return e.length >= 8 && t++, e.length >= 12 && t++, /[a-z]/.test(e) && /[A-Z]/.test(e) && t++, /\d/.test(e) && /[^A-Za-z0-9]/.test(e) && t++, Math.min(t, 4);
|
|
31
32
|
}
|
|
32
|
-
var
|
|
33
|
-
let
|
|
34
|
-
className: `select-strength__bars select-strength__bars--${
|
|
33
|
+
var l = n(function({ value: n, rules: l, showMeter: u = !0, columns: d = 1, className: f, ...p }, m) {
|
|
34
|
+
let h = l != null && l.length > 0, g = c(n), _ = h && l.some((e) => !e.met) ? Math.min(g, s) : g, v = o[_] ?? o[0], y = t().auth, b = y.strength[_] ?? y.strength[0], x = /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i("div", {
|
|
35
|
+
className: `select-strength__bars select-strength__bars--${v.cls}`,
|
|
35
36
|
children: [
|
|
36
37
|
0,
|
|
37
38
|
1,
|
|
38
39
|
2,
|
|
39
40
|
3
|
|
40
|
-
].map((e) => /* @__PURE__ */
|
|
41
|
-
}),
|
|
41
|
+
].map((e) => /* @__PURE__ */ i("span", { className: `select-strength__bar${e < _ ? " is-on" : ""}` }, e))
|
|
42
|
+
}), n && /* @__PURE__ */ i("span", {
|
|
42
43
|
className: "select-strength__label",
|
|
43
|
-
children:
|
|
44
|
+
children: b
|
|
44
45
|
})] });
|
|
45
|
-
return
|
|
46
|
-
ref:
|
|
47
|
-
...
|
|
48
|
-
className: `select-strength select-strength--rules${
|
|
49
|
-
children: [
|
|
46
|
+
return h ? /* @__PURE__ */ a("div", {
|
|
47
|
+
ref: m,
|
|
48
|
+
...p,
|
|
49
|
+
className: `select-strength select-strength--rules${f ? " " + f : ""}`,
|
|
50
|
+
children: [u && /* @__PURE__ */ i("div", {
|
|
50
51
|
className: "select-strength__meter",
|
|
51
|
-
"aria-hidden": !
|
|
52
|
-
children:
|
|
53
|
-
}), /* @__PURE__ */
|
|
54
|
-
className: `select-strength__rules${
|
|
55
|
-
children:
|
|
52
|
+
"aria-hidden": !n,
|
|
53
|
+
children: x
|
|
54
|
+
}), /* @__PURE__ */ i("ul", {
|
|
55
|
+
className: `select-strength__rules${d === 2 ? " select-strength__rules--2col" : ""}`,
|
|
56
|
+
children: l.map((t) => /* @__PURE__ */ a("li", {
|
|
56
57
|
className: `select-strength__rule${t.met ? " is-met" : ""}`,
|
|
57
58
|
children: [
|
|
58
|
-
/* @__PURE__ */
|
|
59
|
+
/* @__PURE__ */ i("span", {
|
|
59
60
|
className: "select-strength__mark",
|
|
60
61
|
"aria-hidden": "true",
|
|
61
|
-
children: t.met && /* @__PURE__ */
|
|
62
|
+
children: t.met && /* @__PURE__ */ i(e, {})
|
|
62
63
|
}),
|
|
63
64
|
t.label,
|
|
64
|
-
/* @__PURE__ */
|
|
65
|
+
/* @__PURE__ */ i("span", {
|
|
65
66
|
className: "select-strength__status",
|
|
66
|
-
children: t.met ?
|
|
67
|
+
children: t.met ? y.met : y.pending
|
|
67
68
|
})
|
|
68
69
|
]
|
|
69
70
|
}, t.label))
|
|
70
71
|
})]
|
|
71
|
-
}) : /* @__PURE__ */
|
|
72
|
-
ref:
|
|
73
|
-
...
|
|
74
|
-
className: `select-strength${
|
|
75
|
-
"aria-hidden": !
|
|
76
|
-
children:
|
|
72
|
+
}) : /* @__PURE__ */ i("div", {
|
|
73
|
+
ref: m,
|
|
74
|
+
...p,
|
|
75
|
+
className: `select-strength${f ? " " + f : ""}`,
|
|
76
|
+
"aria-hidden": !n,
|
|
77
|
+
children: x
|
|
77
78
|
});
|
|
78
79
|
});
|
|
79
80
|
//#endregion
|
|
80
|
-
export {
|
|
81
|
+
export { l as SelectPasswordStrength, c as passwordScore };
|
|
81
82
|
|
|
82
83
|
//# sourceMappingURL=SelectPasswordStrength.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -93,7 +93,7 @@ export type { SelectCalendarEvent, SelectCalendarProps, SelectCalendarView } fro
|
|
|
93
93
|
export { SelectHtmlFrame } from './SelectHtmlFrame';
|
|
94
94
|
export type { SelectHtmlFrameProps } from './SelectHtmlFrame';
|
|
95
95
|
export { SelectInbox, SelectInboxToolbar, SelectInboxEmpty, SelectInboxBanner, SelectMailboxStatus, SelectMailList, SelectMailListGroup, SelectMailListItem, SelectMailListSkeleton, SelectMailListNote, SelectMailReader, SelectMailMessage, SelectMailNotice, SelectMailAttachment, SelectLeadChip, SelectMailComposer, SelectMailComposerRow, SelectMailComposerInput, SelectMailComposerBody, SelectMailComposerFooter, SelectMailComposerAttachments, SelectMailAttachButton, SelectMailUpload, SelectRecipientInput, SelectTemplateMenu, attachmentExt, isMailAddress, mailName, } from './SelectMail';
|
|
96
|
-
export { SelectConversation, SelectConversationBubble, SelectConversationDay, SelectConversationEvent, SelectConversationMedia } from './SelectConversation';
|
|
96
|
+
export { SelectConversation, SelectConversationBubble, SelectConversationDay, SelectConversationEvent, SelectConversationMedia, SelectConversationNewer, } from './SelectConversation';
|
|
97
97
|
export type { SelectConversationBubbleProps } from './SelectConversation';
|
|
98
98
|
export { SelectMailEditor, mailLinkHref, mailTextToHtml } from './SelectMailEditor';
|
|
99
99
|
export type { SelectMailEditorProps } from './SelectMailEditor';
|
|
@@ -143,6 +143,7 @@ export { SelectKpiBand } from './SelectKpiBand';
|
|
|
143
143
|
export type { SelectKpiBandProps } from './SelectKpiBand';
|
|
144
144
|
export { SelectInsight, SelectInsightList, SelectInsightRow, formatInsightImpact } from './SelectInsight';
|
|
145
145
|
export { SelectAssistant, SelectChatMessage, SelectChatTurn, SelectChatTyping } from './SelectAssistant';
|
|
146
|
+
export { SelectAssistantLauncher } from './SelectAssistantLauncher';
|
|
146
147
|
export { SelectNumberedList, SelectNumberedItem } from './SelectNumberedList';
|
|
147
148
|
export type { SelectNumberedListProps, SelectNumberedItemProps } from './SelectNumberedList';
|
|
148
149
|
export type { SelectAssistantProps, SelectAssistantSuggestion, SelectChatMessageProps, SelectChatTurnProps, SelectChatTypingProps } from './SelectAssistant';
|
|
@@ -228,6 +229,8 @@ export { SelectSteps } from './SelectSteps';
|
|
|
228
229
|
export type { SelectStepsProps, SelectStepItem, SelectStepState } from './SelectSteps';
|
|
229
230
|
export { SelectSetupGuide, SelectSetupNext } from './SelectSetupGuide';
|
|
230
231
|
export { SelectCarousel } from './SelectCarousel';
|
|
232
|
+
export { SelectAuthSplit, SelectAuthHeading } from './SelectAuthSplit';
|
|
233
|
+
export type { SelectAuthSplitProps } from './SelectAuthSplit';
|
|
231
234
|
export type { SelectCarouselProps, SelectCarouselSlide } from './SelectCarousel';
|
|
232
235
|
export type { SelectSetupGuideProps, SelectSetupGroup, SelectSetupStep, SelectSetupStepStatus } from './SelectSetupGuide';
|
|
233
236
|
export { SelectTour } from './SelectTour';
|