@purpurds/password-field 7.6.0 → 7.7.0
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/LICENSE.txt +4 -4
- package/dist/{main-DRVLAPSX.js → main-DHSRD_Xo.js} +2 -2
- package/dist/{main-DRVLAPSX.js.map → main-DHSRD_Xo.js.map} +1 -1
- package/dist/{main-Bfa6Eaa6.mjs → main-gnz5YkrK.mjs} +2 -2
- package/dist/{main-Bfa6Eaa6.mjs.map → main-gnz5YkrK.mjs.map} +1 -1
- package/dist/password-field-D1o4rGZs.js +58 -0
- package/dist/password-field-D1o4rGZs.js.map +1 -0
- package/dist/{password-field-X65O9liQ.mjs → password-field-Ji6ilrt_.mjs} +596 -670
- package/dist/password-field-Ji6ilrt_.mjs.map +1 -0
- package/dist/password-field.cjs.js +1 -1
- package/dist/password-field.d.ts.map +1 -1
- package/dist/password-field.es.js +1 -1
- package/dist/password-strength-indicator.d.ts +3 -7
- package/dist/password-strength-indicator.d.ts.map +1 -1
- package/dist/password-strength.d.ts +3 -10
- package/dist/password-strength.d.ts.map +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +10 -9
- package/src/password-field.tsx +3 -4
- package/src/password-strength-indicator.tsx +10 -9
- package/src/password-strength.tsx +11 -11
- package/src/types.ts +1 -1
- package/dist/password-field-CppSkQWR.js +0 -58
- package/dist/password-field-CppSkQWR.js.map +0 -1
- package/dist/password-field-X65O9liQ.mjs.map +0 -1
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { jsxs as h, jsx as s, Fragment as
|
|
2
|
-
import * as
|
|
3
|
-
import { forwardRef as
|
|
1
|
+
import { jsxs as h, jsx as s, Fragment as Qr } from "react/jsx-runtime";
|
|
2
|
+
import * as f from "react";
|
|
3
|
+
import { forwardRef as q, useId as rt, useRef as tt, useState as z, useMemo as et, useEffect as nt, isValidElement as ut } from "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
const
|
|
5
|
+
const at = {
|
|
6
6
|
LG: "lg"
|
|
7
7
|
};
|
|
8
|
-
function
|
|
8
|
+
function pt(t) {
|
|
9
9
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
10
10
|
}
|
|
11
|
-
var
|
|
11
|
+
var J = { exports: {} };
|
|
12
12
|
/*!
|
|
13
13
|
Copyright (c) 2018 Jed Watson.
|
|
14
14
|
Licensed under the MIT License (MIT), see
|
|
15
15
|
http://jedwatson.github.io/classnames
|
|
16
16
|
*/
|
|
17
|
-
var
|
|
18
|
-
function
|
|
19
|
-
return
|
|
17
|
+
var Q;
|
|
18
|
+
function it() {
|
|
19
|
+
return Q || (Q = 1, function(t) {
|
|
20
20
|
(function() {
|
|
21
21
|
var a = {}.hasOwnProperty;
|
|
22
22
|
function n() {
|
|
23
23
|
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
24
24
|
var u = arguments[e];
|
|
25
|
-
u && (r = i(r, p(u)));
|
|
25
|
+
u && (r = i(r, p.call(this, u)));
|
|
26
26
|
}
|
|
27
27
|
return r;
|
|
28
28
|
}
|
|
29
29
|
function p(r) {
|
|
30
30
|
if (typeof r == "string" || typeof r == "number")
|
|
31
|
-
return r;
|
|
31
|
+
return this && this[r] || r;
|
|
32
32
|
if (typeof r != "object")
|
|
33
33
|
return "";
|
|
34
34
|
if (Array.isArray(r))
|
|
35
|
-
return n.apply(
|
|
35
|
+
return n.apply(this, r);
|
|
36
36
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
37
37
|
return r.toString();
|
|
38
38
|
var e = "";
|
|
39
39
|
for (var u in r)
|
|
40
|
-
a.call(r, u) && r[u] && (e = i(e, u));
|
|
40
|
+
a.call(r, u) && r[u] && (e = i(e, this && this[u] || u));
|
|
41
41
|
return e;
|
|
42
42
|
}
|
|
43
43
|
function i(r, e) {
|
|
@@ -45,61 +45,52 @@ function _t() {
|
|
|
45
45
|
}
|
|
46
46
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
47
47
|
})();
|
|
48
|
-
}(
|
|
48
|
+
}(J)), J.exports;
|
|
49
49
|
}
|
|
50
|
-
var
|
|
51
|
-
const
|
|
50
|
+
var st = it();
|
|
51
|
+
const ot = /* @__PURE__ */ pt(st), lt = "_rotate_12t9p_1", ct = "_dash_12t9p_1", dt = {
|
|
52
52
|
"purpur-spinner": "_purpur-spinner_12t9p_2",
|
|
53
|
-
rotate:
|
|
53
|
+
rotate: lt,
|
|
54
54
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
|
|
55
55
|
"purpur-spinner--xs": "_purpur-spinner--xs_12t9p_10",
|
|
56
56
|
"purpur-spinner--sm": "_purpur-spinner--sm_12t9p_14",
|
|
57
57
|
"purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
|
|
58
58
|
"purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
|
|
59
59
|
"purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
|
|
60
|
-
dash:
|
|
60
|
+
dash: ct,
|
|
61
61
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
|
|
62
62
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
|
|
63
|
-
},
|
|
63
|
+
}, rr = ot.bind(dt), P = "purpur-spinner", _t = {
|
|
64
64
|
SM: "sm"
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
"div",
|
|
65
|
+
}, ft = ({
|
|
66
|
+
disabled: t = !1,
|
|
67
|
+
negative: a = !1,
|
|
68
|
+
size: n = _t.SM,
|
|
69
|
+
...p
|
|
70
|
+
}) => /* @__PURE__ */ s("div", { className: rr(P, `${P}--${n}`), ...p, children: /* @__PURE__ */ s("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ s(
|
|
71
|
+
"circle",
|
|
73
72
|
{
|
|
74
|
-
className:
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
[A[`${j}__circle--disabled`]]: a,
|
|
82
|
-
[A[`${j}__circle--negative`]]: n
|
|
83
|
-
}),
|
|
84
|
-
cx: "25",
|
|
85
|
-
cy: "25",
|
|
86
|
-
r: "20"
|
|
87
|
-
}
|
|
88
|
-
) })
|
|
73
|
+
className: rr(`${P}__circle`, {
|
|
74
|
+
[`${P}__circle--disabled`]: t,
|
|
75
|
+
[`${P}__circle--negative`]: a
|
|
76
|
+
}),
|
|
77
|
+
cx: "25",
|
|
78
|
+
cy: "25",
|
|
79
|
+
r: "20"
|
|
89
80
|
}
|
|
90
|
-
);
|
|
91
|
-
function
|
|
81
|
+
) }) });
|
|
82
|
+
function gt(t) {
|
|
92
83
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
93
84
|
}
|
|
94
|
-
var
|
|
85
|
+
var tr = { exports: {} };
|
|
95
86
|
/*!
|
|
96
87
|
Copyright (c) 2018 Jed Watson.
|
|
97
88
|
Licensed under the MIT License (MIT), see
|
|
98
89
|
http://jedwatson.github.io/classnames
|
|
99
90
|
*/
|
|
100
|
-
var
|
|
101
|
-
function
|
|
102
|
-
return
|
|
91
|
+
var er;
|
|
92
|
+
function vt() {
|
|
93
|
+
return er || (er = 1, function(t) {
|
|
103
94
|
(function() {
|
|
104
95
|
var a = {}.hasOwnProperty;
|
|
105
96
|
function n() {
|
|
@@ -128,10 +119,10 @@ function yt() {
|
|
|
128
119
|
}
|
|
129
120
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
130
121
|
})();
|
|
131
|
-
}(
|
|
122
|
+
}(tr)), tr.exports;
|
|
132
123
|
}
|
|
133
|
-
var
|
|
134
|
-
const
|
|
124
|
+
var ht = vt();
|
|
125
|
+
const mt = /* @__PURE__ */ gt(ht), bt = {
|
|
135
126
|
"purpur-button": "_purpur-button_w455q_1",
|
|
136
127
|
"purpur-button--xs": "_purpur-button--xs_w455q_33",
|
|
137
128
|
"purpur-button--icon-only": "_purpur-button--icon-only_w455q_36",
|
|
@@ -153,70 +144,77 @@ const xt = /* @__PURE__ */ bt(wt), $t = {
|
|
|
153
144
|
"purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_w455q_166",
|
|
154
145
|
"purpur-button--text-negative": "_purpur-button--text-negative_w455q_181",
|
|
155
146
|
"purpur-button--text": "_purpur-button--text_w455q_181"
|
|
156
|
-
},
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
},
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
147
|
+
}, yt = mt.bind(bt), S = "purpur-button", Dr = q(
|
|
148
|
+
({
|
|
149
|
+
children: t,
|
|
150
|
+
className: a,
|
|
151
|
+
disabled: n = !1,
|
|
152
|
+
fullWidth: p = !1,
|
|
153
|
+
iconOnly: i,
|
|
154
|
+
loading: r = !1,
|
|
155
|
+
negative: e = !1,
|
|
156
|
+
onClick: u,
|
|
157
|
+
size: d = "md",
|
|
158
|
+
variant: c,
|
|
159
|
+
type: g = "button",
|
|
160
|
+
...l
|
|
161
|
+
}, v) => {
|
|
162
|
+
if (i && c === "destructive")
|
|
163
|
+
return null;
|
|
164
|
+
const y = yt(
|
|
165
|
+
[
|
|
166
|
+
S,
|
|
167
|
+
`${S}--${e ? `${c}-negative` : c}`,
|
|
168
|
+
`${S}--${d}`
|
|
169
|
+
],
|
|
170
|
+
{
|
|
171
|
+
[`${S}--icon-only`]: i,
|
|
172
|
+
[`${S}--negative`]: e,
|
|
173
|
+
[`${S}--full-width`]: p,
|
|
174
|
+
[`${S}--disabled`]: n || r
|
|
175
|
+
},
|
|
176
|
+
a
|
|
177
|
+
), o = ($) => {
|
|
178
|
+
n || r ? $.preventDefault() : u && u($);
|
|
179
|
+
}, m = !!l["aria-disabled"] || n || r;
|
|
180
|
+
return /* @__PURE__ */ h(
|
|
181
|
+
"button",
|
|
182
|
+
{
|
|
183
|
+
className: y,
|
|
184
|
+
type: g,
|
|
185
|
+
ref: v,
|
|
186
|
+
"aria-disabled": m,
|
|
187
|
+
onClick: o,
|
|
188
|
+
...l,
|
|
189
|
+
children: [
|
|
190
|
+
r && /* @__PURE__ */ s(
|
|
191
|
+
ft,
|
|
192
|
+
{
|
|
193
|
+
size: d === at.LG ? "xs" : "xxs",
|
|
194
|
+
negative: e,
|
|
195
|
+
disabled: m
|
|
196
|
+
}
|
|
197
|
+
),
|
|
198
|
+
" ",
|
|
199
|
+
t
|
|
200
|
+
]
|
|
201
|
+
}
|
|
202
|
+
);
|
|
203
|
+
}
|
|
204
|
+
);
|
|
205
|
+
Dr.displayName = "Button";
|
|
206
|
+
function wt(t) {
|
|
209
207
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
210
208
|
}
|
|
211
|
-
var
|
|
209
|
+
var nr = { exports: {} };
|
|
212
210
|
/*!
|
|
213
211
|
Copyright (c) 2018 Jed Watson.
|
|
214
212
|
Licensed under the MIT License (MIT), see
|
|
215
213
|
http://jedwatson.github.io/classnames
|
|
216
214
|
*/
|
|
217
|
-
var
|
|
218
|
-
function
|
|
219
|
-
return
|
|
215
|
+
var ur;
|
|
216
|
+
function xt() {
|
|
217
|
+
return ur || (ur = 1, function(t) {
|
|
220
218
|
(function() {
|
|
221
219
|
var a = {}.hasOwnProperty;
|
|
222
220
|
function n() {
|
|
@@ -245,10 +243,10 @@ function qt() {
|
|
|
245
243
|
}
|
|
246
244
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
247
245
|
})();
|
|
248
|
-
}(
|
|
246
|
+
}(nr)), nr.exports;
|
|
249
247
|
}
|
|
250
|
-
var
|
|
251
|
-
const
|
|
248
|
+
var $t = xt();
|
|
249
|
+
const St = /* @__PURE__ */ wt($t), Nt = {
|
|
252
250
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
253
251
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
254
252
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -256,87 +254,72 @@ const At = /* @__PURE__ */ Ot(Pt), jt = {
|
|
|
256
254
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
257
255
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
258
256
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
259
|
-
},
|
|
257
|
+
}, Ot = St.bind(Nt), ar = "purpur-icon", qt = "md", Pt = (t) => t.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), jt = ({ content: t = "", title: a } = {}) => {
|
|
260
258
|
const n = [
|
|
261
259
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
262
260
|
{ name: "fill", value: "currentColor" },
|
|
263
261
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
264
262
|
a ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
265
263
|
], p = a ? `<title>${a}</title>` : "";
|
|
266
|
-
return `<svg ${
|
|
267
|
-
},
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
...r
|
|
274
|
-
}) => {
|
|
275
|
-
const e = Rt({
|
|
276
|
-
content: zt(a.svg),
|
|
277
|
-
title: n
|
|
278
|
-
}), u = Mt(p, cr, `${cr}--${i}`);
|
|
279
|
-
return /* @__PURE__ */ s(
|
|
280
|
-
"span",
|
|
281
|
-
{
|
|
282
|
-
className: u,
|
|
283
|
-
"data-testid": t,
|
|
284
|
-
dangerouslySetInnerHTML: { __html: e },
|
|
285
|
-
...r
|
|
286
|
-
}
|
|
287
|
-
);
|
|
264
|
+
return `<svg ${Pt(n)}>${p}${t}</svg>`;
|
|
265
|
+
}, At = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), G = ({ svg: t, allyTitle: a, className: n, size: p = qt, ...i }) => {
|
|
266
|
+
const r = jt({
|
|
267
|
+
content: At(t.svg),
|
|
268
|
+
title: a
|
|
269
|
+
}), e = Ot(n, ar, `${ar}--${p}`);
|
|
270
|
+
return /* @__PURE__ */ s("span", { className: e, dangerouslySetInnerHTML: { __html: r }, ...i });
|
|
288
271
|
};
|
|
289
|
-
|
|
290
|
-
const
|
|
272
|
+
G.displayName = "Icon";
|
|
273
|
+
const Mt = {
|
|
291
274
|
name: "password-invisible",
|
|
292
275
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M2.364 2.364a.9.9 0 0 1 1.272 0l3.809 3.808a11.61 11.61 0 0 1 2.218-.789A9.944 9.944 0 0 1 12 5.1c2.652 0 5 1.103 6.826 2.42 1.827 1.317 3.2 2.897 3.923 3.98l.333.5-.333.5c-.647.969-1.81 2.33-3.349 3.547a.9.9 0 0 1-1.116-1.413A15.273 15.273 0 0 0 20.894 12a15.297 15.297 0 0 0-3.12-3.02C16.134 7.797 14.148 6.9 12 6.9c-.655 0-1.295.083-1.914.233-.435.105-.86.242-1.274.407l.418.417a4.9 4.9 0 0 1 7.632 4.654.9.9 0 1 1-1.786-.222 3.1 3.1 0 0 0-4.538-3.123l11.098 11.098a.9.9 0 1 1-1.272 1.272l-3.809-3.808c-1.362.642-2.9 1.072-4.555 1.072-2.651 0-5-1.103-6.826-2.42-1.827-1.317-3.2-2.897-3.923-3.98L.918 12l.333-.5c.645-.966 1.804-2.322 3.335-3.536a.9.9 0 1 1 1.118 1.411A15.266 15.266 0 0 0 3.107 12a15.294 15.294 0 0 0 3.12 3.02C7.866 16.203 9.85 17.1 12 17.1c1.114 0 2.185-.24 3.188-.64l-.418-.418A4.9 4.9 0 0 1 7.1 12a8.888 8.888 0 0 1-.007-.225 2.488 2.488 0 0 1 .014-.385.9.9 0 1 1 1.786.222.79.79 0 0 0-.001.11A6.245 6.245 0 0 1 8.9 12a3.1 3.1 0 0 0 4.562 2.734L8.586 9.859a.912.912 0 0 1-.102-.102l-6.12-6.12a.9.9 0 0 1 0-1.273Z" clip-rule="evenodd"/></svg>',
|
|
293
276
|
keywords: ["password-invisible"],
|
|
294
277
|
category: "action"
|
|
295
|
-
},
|
|
296
|
-
|
|
297
|
-
const
|
|
278
|
+
}, Br = (t) => /* @__PURE__ */ s(G, { ...t, svg: Mt });
|
|
279
|
+
Br.displayName = "IconPasswordInvisible";
|
|
280
|
+
const Ct = {
|
|
298
281
|
name: "password-visible",
|
|
299
282
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M3.107 12a15.294 15.294 0 0 0 3.12 3.02C7.866 16.203 9.85 17.1 12 17.1c2.149 0 4.134-.897 5.774-2.08a15.295 15.295 0 0 0 3.12-3.02 15.3 15.3 0 0 0-3.12-3.02C16.134 7.797 14.148 6.9 12 6.9c-2.149 0-4.134.897-5.774 2.08A15.299 15.299 0 0 0 3.106 12Zm2.067-4.48C7 6.203 9.349 5.1 12 5.1c2.652 0 5 1.103 6.826 2.42 1.827 1.317 3.2 2.897 3.923 3.98l.333.5-.333.5c-.722 1.083-2.096 2.663-3.923 3.98C17 17.797 14.651 18.9 12 18.9s-5-1.103-6.826-2.42c-1.827-1.317-3.2-2.897-3.923-3.98L.918 12l.333-.5c.722-1.083 2.096-2.663 3.923-3.98ZM12 8.9a3.1 3.1 0 1 0 0 6.2 3.1 3.1 0 0 0 0-6.2ZM7.1 12a4.9 4.9 0 1 1 9.8 0 4.9 4.9 0 0 1-9.8 0Zm4-1.538a.9.9 0 0 1 .9-.9A2.438 2.438 0 0 1 14.438 12a.9.9 0 0 1-1.8 0 .638.638 0 0 0-.638-.638.9.9 0 0 1-.9-.9Z" clip-rule="evenodd"/></svg>',
|
|
300
283
|
keywords: ["password-visible"],
|
|
301
284
|
category: "action"
|
|
302
|
-
},
|
|
303
|
-
|
|
304
|
-
const
|
|
285
|
+
}, Ir = (t) => /* @__PURE__ */ s(G, { ...t, svg: Ct });
|
|
286
|
+
Ir.displayName = "IconPasswordVisible";
|
|
287
|
+
const kt = {
|
|
305
288
|
LG: "lg"
|
|
306
289
|
};
|
|
307
|
-
function
|
|
290
|
+
function Rt(t) {
|
|
308
291
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
309
292
|
}
|
|
310
|
-
var
|
|
293
|
+
var pr = { exports: {} };
|
|
311
294
|
/*!
|
|
312
295
|
Copyright (c) 2018 Jed Watson.
|
|
313
296
|
Licensed under the MIT License (MIT), see
|
|
314
297
|
http://jedwatson.github.io/classnames
|
|
315
298
|
*/
|
|
316
|
-
var
|
|
317
|
-
function
|
|
318
|
-
return
|
|
299
|
+
var ir;
|
|
300
|
+
function zt() {
|
|
301
|
+
return ir || (ir = 1, function(t) {
|
|
319
302
|
(function() {
|
|
320
303
|
var a = {}.hasOwnProperty;
|
|
321
304
|
function n() {
|
|
322
305
|
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
323
306
|
var u = arguments[e];
|
|
324
|
-
u && (r = i(r, p(u)));
|
|
307
|
+
u && (r = i(r, p.call(this, u)));
|
|
325
308
|
}
|
|
326
309
|
return r;
|
|
327
310
|
}
|
|
328
311
|
function p(r) {
|
|
329
312
|
if (typeof r == "string" || typeof r == "number")
|
|
330
|
-
return r;
|
|
313
|
+
return this && this[r] || r;
|
|
331
314
|
if (typeof r != "object")
|
|
332
315
|
return "";
|
|
333
316
|
if (Array.isArray(r))
|
|
334
|
-
return n.apply(
|
|
317
|
+
return n.apply(this, r);
|
|
335
318
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
336
319
|
return r.toString();
|
|
337
320
|
var e = "";
|
|
338
321
|
for (var u in r)
|
|
339
|
-
a.call(r, u) && r[u] && (e = i(e, u));
|
|
322
|
+
a.call(r, u) && r[u] && (e = i(e, this && this[u] || u));
|
|
340
323
|
return e;
|
|
341
324
|
}
|
|
342
325
|
function i(r, e) {
|
|
@@ -344,61 +327,52 @@ function Lt() {
|
|
|
344
327
|
}
|
|
345
328
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
346
329
|
})();
|
|
347
|
-
}(
|
|
330
|
+
}(pr)), pr.exports;
|
|
348
331
|
}
|
|
349
|
-
var
|
|
350
|
-
const
|
|
332
|
+
var Et = zt();
|
|
333
|
+
const Dt = /* @__PURE__ */ Rt(Et), Bt = "_rotate_12t9p_1", It = "_dash_12t9p_1", Lt = {
|
|
351
334
|
"purpur-spinner": "_purpur-spinner_12t9p_2",
|
|
352
|
-
rotate:
|
|
335
|
+
rotate: Bt,
|
|
353
336
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
|
|
354
337
|
"purpur-spinner--xs": "_purpur-spinner--xs_12t9p_10",
|
|
355
338
|
"purpur-spinner--sm": "_purpur-spinner--sm_12t9p_14",
|
|
356
339
|
"purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
|
|
357
340
|
"purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
|
|
358
341
|
"purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
|
|
359
|
-
dash:
|
|
342
|
+
dash: It,
|
|
360
343
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
|
|
361
344
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
|
|
362
|
-
},
|
|
345
|
+
}, sr = Dt.bind(Lt), j = "purpur-spinner", Tt = {
|
|
363
346
|
SM: "sm"
|
|
364
|
-
},
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
"div",
|
|
347
|
+
}, Wt = ({
|
|
348
|
+
disabled: t = !1,
|
|
349
|
+
negative: a = !1,
|
|
350
|
+
size: n = Tt.SM,
|
|
351
|
+
...p
|
|
352
|
+
}) => /* @__PURE__ */ s("div", { className: sr(j, `${j}--${n}`), ...p, children: /* @__PURE__ */ s("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ s(
|
|
353
|
+
"circle",
|
|
372
354
|
{
|
|
373
|
-
className:
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
[M[`${C}__circle--disabled`]]: a,
|
|
381
|
-
[M[`${C}__circle--negative`]]: n
|
|
382
|
-
}),
|
|
383
|
-
cx: "25",
|
|
384
|
-
cy: "25",
|
|
385
|
-
r: "20"
|
|
386
|
-
}
|
|
387
|
-
) })
|
|
355
|
+
className: sr(`${j}__circle`, {
|
|
356
|
+
[`${j}__circle--disabled`]: t,
|
|
357
|
+
[`${j}__circle--negative`]: a
|
|
358
|
+
}),
|
|
359
|
+
cx: "25",
|
|
360
|
+
cy: "25",
|
|
361
|
+
r: "20"
|
|
388
362
|
}
|
|
389
|
-
);
|
|
390
|
-
function
|
|
363
|
+
) }) });
|
|
364
|
+
function Zt(t) {
|
|
391
365
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
392
366
|
}
|
|
393
|
-
var
|
|
367
|
+
var or = { exports: {} };
|
|
394
368
|
/*!
|
|
395
369
|
Copyright (c) 2018 Jed Watson.
|
|
396
370
|
Licensed under the MIT License (MIT), see
|
|
397
371
|
http://jedwatson.github.io/classnames
|
|
398
372
|
*/
|
|
399
|
-
var
|
|
400
|
-
function
|
|
401
|
-
return
|
|
373
|
+
var lr;
|
|
374
|
+
function Ft() {
|
|
375
|
+
return lr || (lr = 1, function(t) {
|
|
402
376
|
(function() {
|
|
403
377
|
var a = {}.hasOwnProperty;
|
|
404
378
|
function n() {
|
|
@@ -427,10 +401,10 @@ function Ht() {
|
|
|
427
401
|
}
|
|
428
402
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
429
403
|
})();
|
|
430
|
-
}(
|
|
404
|
+
}(or)), or.exports;
|
|
431
405
|
}
|
|
432
|
-
var
|
|
433
|
-
const
|
|
406
|
+
var Gt = Ft();
|
|
407
|
+
const Vt = /* @__PURE__ */ Zt(Gt), Ht = {
|
|
434
408
|
"purpur-button": "_purpur-button_w455q_1",
|
|
435
409
|
"purpur-button--xs": "_purpur-button--xs_w455q_33",
|
|
436
410
|
"purpur-button--icon-only": "_purpur-button--icon-only_w455q_36",
|
|
@@ -452,70 +426,77 @@ const Xt = /* @__PURE__ */ Vt(Ut), Kt = {
|
|
|
452
426
|
"purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_w455q_166",
|
|
453
427
|
"purpur-button--text-negative": "_purpur-button--text-negative_w455q_181",
|
|
454
428
|
"purpur-button--text": "_purpur-button--text_w455q_181"
|
|
455
|
-
},
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
},
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
429
|
+
}, Kt = Vt.bind(Ht), N = "purpur-button", Lr = q(
|
|
430
|
+
({
|
|
431
|
+
children: t,
|
|
432
|
+
className: a,
|
|
433
|
+
disabled: n = !1,
|
|
434
|
+
fullWidth: p = !1,
|
|
435
|
+
iconOnly: i,
|
|
436
|
+
loading: r = !1,
|
|
437
|
+
negative: e = !1,
|
|
438
|
+
onClick: u,
|
|
439
|
+
size: d = "md",
|
|
440
|
+
variant: c,
|
|
441
|
+
type: g = "button",
|
|
442
|
+
...l
|
|
443
|
+
}, v) => {
|
|
444
|
+
if (i && c === "destructive")
|
|
445
|
+
return null;
|
|
446
|
+
const y = Kt(
|
|
447
|
+
[
|
|
448
|
+
N,
|
|
449
|
+
`${N}--${e ? `${c}-negative` : c}`,
|
|
450
|
+
`${N}--${d}`
|
|
451
|
+
],
|
|
452
|
+
{
|
|
453
|
+
[`${N}--icon-only`]: i,
|
|
454
|
+
[`${N}--negative`]: e,
|
|
455
|
+
[`${N}--full-width`]: p,
|
|
456
|
+
[`${N}--disabled`]: n || r
|
|
457
|
+
},
|
|
458
|
+
a
|
|
459
|
+
), o = ($) => {
|
|
460
|
+
n || r ? $.preventDefault() : u && u($);
|
|
461
|
+
}, m = !!l["aria-disabled"] || n || r;
|
|
462
|
+
return /* @__PURE__ */ h(
|
|
463
|
+
"button",
|
|
464
|
+
{
|
|
465
|
+
className: y,
|
|
466
|
+
type: g,
|
|
467
|
+
ref: v,
|
|
468
|
+
"aria-disabled": m,
|
|
469
|
+
onClick: o,
|
|
470
|
+
...l,
|
|
471
|
+
children: [
|
|
472
|
+
r && /* @__PURE__ */ s(
|
|
473
|
+
Wt,
|
|
474
|
+
{
|
|
475
|
+
size: d === kt.LG ? "xs" : "xxs",
|
|
476
|
+
negative: e,
|
|
477
|
+
disabled: m
|
|
478
|
+
}
|
|
479
|
+
),
|
|
480
|
+
" ",
|
|
481
|
+
t
|
|
482
|
+
]
|
|
483
|
+
}
|
|
484
|
+
);
|
|
485
|
+
}
|
|
486
|
+
);
|
|
487
|
+
Lr.displayName = "Button";
|
|
488
|
+
function Ut(t) {
|
|
508
489
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
509
490
|
}
|
|
510
|
-
var
|
|
491
|
+
var cr = { exports: {} };
|
|
511
492
|
/*!
|
|
512
493
|
Copyright (c) 2018 Jed Watson.
|
|
513
494
|
Licensed under the MIT License (MIT), see
|
|
514
495
|
http://jedwatson.github.io/classnames
|
|
515
496
|
*/
|
|
516
|
-
var
|
|
517
|
-
function
|
|
518
|
-
return
|
|
497
|
+
var dr;
|
|
498
|
+
function Xt() {
|
|
499
|
+
return dr || (dr = 1, function(t) {
|
|
519
500
|
(function() {
|
|
520
501
|
var a = {}.hasOwnProperty;
|
|
521
502
|
function n() {
|
|
@@ -544,10 +525,10 @@ function re() {
|
|
|
544
525
|
}
|
|
545
526
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
546
527
|
})();
|
|
547
|
-
}(
|
|
528
|
+
}(cr)), cr.exports;
|
|
548
529
|
}
|
|
549
|
-
var
|
|
550
|
-
const
|
|
530
|
+
var Yt = Xt();
|
|
531
|
+
const Jt = /* @__PURE__ */ Ut(Yt), Qt = {
|
|
551
532
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
552
533
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
553
534
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -555,76 +536,61 @@ const ee = /* @__PURE__ */ Qt(te), ne = {
|
|
|
555
536
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
556
537
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
557
538
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
558
|
-
},
|
|
539
|
+
}, re = Jt.bind(Qt), _r = "purpur-icon", te = "md", ee = (t) => t.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), ne = ({ content: t = "", title: a } = {}) => {
|
|
559
540
|
const n = [
|
|
560
541
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
561
542
|
{ name: "fill", value: "currentColor" },
|
|
562
543
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
563
544
|
a ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
564
545
|
], p = a ? `<title>${a}</title>` : "";
|
|
565
|
-
return `<svg ${
|
|
566
|
-
},
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
...r
|
|
573
|
-
}) => {
|
|
574
|
-
const e = ie({
|
|
575
|
-
content: se(a.svg),
|
|
576
|
-
title: n
|
|
577
|
-
}), u = ue(p, br, `${br}--${i}`);
|
|
578
|
-
return /* @__PURE__ */ s(
|
|
579
|
-
"span",
|
|
580
|
-
{
|
|
581
|
-
className: u,
|
|
582
|
-
"data-testid": t,
|
|
583
|
-
dangerouslySetInnerHTML: { __html: e },
|
|
584
|
-
...r
|
|
585
|
-
}
|
|
586
|
-
);
|
|
546
|
+
return `<svg ${ee(n)}>${p}${t}</svg>`;
|
|
547
|
+
}, ue = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Tr = ({ svg: t, allyTitle: a, className: n, size: p = te, ...i }) => {
|
|
548
|
+
const r = ne({
|
|
549
|
+
content: ue(t.svg),
|
|
550
|
+
title: a
|
|
551
|
+
}), e = re(n, _r, `${_r}--${p}`);
|
|
552
|
+
return /* @__PURE__ */ s("span", { className: e, dangerouslySetInnerHTML: { __html: r }, ...i });
|
|
587
553
|
};
|
|
588
|
-
|
|
589
|
-
const
|
|
554
|
+
Tr.displayName = "Icon";
|
|
555
|
+
const ae = {
|
|
590
556
|
name: "error-filled",
|
|
591
557
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 24" fill="currentColor"><path fill-rule="evenodd" d="M14.268 3.5c-.77-1.333-2.694-1.333-3.464 0l-8.66 15c-.77 1.333.192 3 1.732 3h17.32c1.54 0 2.502-1.667 1.733-3l-8.66-15Zm-.694 5.067-.247 6.876h-1.566l-.247-6.876a1.03 1.03 0 1 1 2.06 0Zm.212 8.917c0 .649-.585 1.234-1.25 1.234-.648 0-1.25-.585-1.25-1.234 0-.633.602-1.234 1.25-1.234.665 0 1.25.601 1.25 1.234Z" clip-rule="evenodd"/></svg>',
|
|
592
558
|
keywords: ["error-filled"],
|
|
593
559
|
category: "status"
|
|
594
560
|
};
|
|
595
|
-
function
|
|
561
|
+
function pe(t) {
|
|
596
562
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
597
563
|
}
|
|
598
|
-
var
|
|
564
|
+
var fr = { exports: {} };
|
|
599
565
|
/*!
|
|
600
566
|
Copyright (c) 2018 Jed Watson.
|
|
601
567
|
Licensed under the MIT License (MIT), see
|
|
602
568
|
http://jedwatson.github.io/classnames
|
|
603
569
|
*/
|
|
604
|
-
var
|
|
605
|
-
function
|
|
606
|
-
return
|
|
570
|
+
var gr;
|
|
571
|
+
function ie() {
|
|
572
|
+
return gr || (gr = 1, function(t) {
|
|
607
573
|
(function() {
|
|
608
574
|
var a = {}.hasOwnProperty;
|
|
609
575
|
function n() {
|
|
610
576
|
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
611
577
|
var u = arguments[e];
|
|
612
|
-
u && (r = i(r, p(u)));
|
|
578
|
+
u && (r = i(r, p.call(this, u)));
|
|
613
579
|
}
|
|
614
580
|
return r;
|
|
615
581
|
}
|
|
616
582
|
function p(r) {
|
|
617
583
|
if (typeof r == "string" || typeof r == "number")
|
|
618
|
-
return r;
|
|
584
|
+
return this && this[r] || r;
|
|
619
585
|
if (typeof r != "object")
|
|
620
586
|
return "";
|
|
621
587
|
if (Array.isArray(r))
|
|
622
|
-
return n.apply(
|
|
588
|
+
return n.apply(this, r);
|
|
623
589
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
624
590
|
return r.toString();
|
|
625
591
|
var e = "";
|
|
626
592
|
for (var u in r)
|
|
627
|
-
a.call(r, u) && r[u] && (e = i(e, u));
|
|
593
|
+
a.call(r, u) && r[u] && (e = i(e, this && this[u] || u));
|
|
628
594
|
return e;
|
|
629
595
|
}
|
|
630
596
|
function i(r, e) {
|
|
@@ -632,13 +598,13 @@ function ce() {
|
|
|
632
598
|
}
|
|
633
599
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
634
600
|
})();
|
|
635
|
-
}(
|
|
601
|
+
}(fr)), fr.exports;
|
|
636
602
|
}
|
|
637
|
-
var
|
|
638
|
-
const
|
|
603
|
+
var se = ie();
|
|
604
|
+
const oe = /* @__PURE__ */ pe(se), le = {
|
|
639
605
|
"purpur-field-error-text": "_purpur-field-error-text_1lj7e_1",
|
|
640
606
|
"purpur-field-error-text__icon": "_purpur-field-error-text__icon_1lj7e_11"
|
|
641
|
-
},
|
|
607
|
+
}, vr = oe.bind(le), hr = "purpur-field-error-text", ce = ({
|
|
642
608
|
children: t,
|
|
643
609
|
className: a,
|
|
644
610
|
["aria-relevant"]: n = "additions text",
|
|
@@ -646,49 +612,49 @@ const _e = /* @__PURE__ */ le(de), xr = {
|
|
|
646
612
|
}) => /* @__PURE__ */ h(
|
|
647
613
|
"div",
|
|
648
614
|
{
|
|
649
|
-
className:
|
|
615
|
+
className: vr(a, hr),
|
|
650
616
|
"aria-live": "assertive",
|
|
651
617
|
"aria-relevant": n,
|
|
652
618
|
...p,
|
|
653
619
|
children: [
|
|
654
|
-
/* @__PURE__ */ s(
|
|
620
|
+
/* @__PURE__ */ s(Tr, { svg: ae, size: "xs", className: vr(`${hr}__icon`) }),
|
|
655
621
|
t
|
|
656
622
|
]
|
|
657
623
|
}
|
|
658
624
|
);
|
|
659
|
-
function
|
|
625
|
+
function de(t) {
|
|
660
626
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
661
627
|
}
|
|
662
|
-
var
|
|
628
|
+
var mr = { exports: {} };
|
|
663
629
|
/*!
|
|
664
630
|
Copyright (c) 2018 Jed Watson.
|
|
665
631
|
Licensed under the MIT License (MIT), see
|
|
666
632
|
http://jedwatson.github.io/classnames
|
|
667
633
|
*/
|
|
668
|
-
var
|
|
669
|
-
function
|
|
670
|
-
return
|
|
634
|
+
var br;
|
|
635
|
+
function _e() {
|
|
636
|
+
return br || (br = 1, function(t) {
|
|
671
637
|
(function() {
|
|
672
638
|
var a = {}.hasOwnProperty;
|
|
673
639
|
function n() {
|
|
674
640
|
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
675
641
|
var u = arguments[e];
|
|
676
|
-
u && (r = i(r, p(u)));
|
|
642
|
+
u && (r = i(r, p.call(this, u)));
|
|
677
643
|
}
|
|
678
644
|
return r;
|
|
679
645
|
}
|
|
680
646
|
function p(r) {
|
|
681
647
|
if (typeof r == "string" || typeof r == "number")
|
|
682
|
-
return r;
|
|
648
|
+
return this && this[r] || r;
|
|
683
649
|
if (typeof r != "object")
|
|
684
650
|
return "";
|
|
685
651
|
if (Array.isArray(r))
|
|
686
|
-
return n.apply(
|
|
652
|
+
return n.apply(this, r);
|
|
687
653
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
688
654
|
return r.toString();
|
|
689
655
|
var e = "";
|
|
690
656
|
for (var u in r)
|
|
691
|
-
a.call(r, u) && r[u] && (e = i(e, u));
|
|
657
|
+
a.call(r, u) && r[u] && (e = i(e, this && this[u] || u));
|
|
692
658
|
return e;
|
|
693
659
|
}
|
|
694
660
|
function i(r, e) {
|
|
@@ -696,40 +662,36 @@ function ve() {
|
|
|
696
662
|
}
|
|
697
663
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
698
664
|
})();
|
|
699
|
-
}(
|
|
665
|
+
}(mr)), mr.exports;
|
|
700
666
|
}
|
|
701
|
-
var
|
|
702
|
-
const
|
|
667
|
+
var fe = _e();
|
|
668
|
+
const ge = /* @__PURE__ */ de(fe), ve = {
|
|
703
669
|
"purpur-field-helper-text": "_purpur-field-helper-text_atw6b_1",
|
|
704
670
|
"purpur-field-helper-text--disabled": "_purpur-field-helper-text--disabled_atw6b_9"
|
|
705
|
-
},
|
|
671
|
+
}, he = ge.bind(ve), yr = "purpur-field-helper-text", me = ({
|
|
706
672
|
children: t,
|
|
707
673
|
className: a,
|
|
708
674
|
disabled: n,
|
|
709
675
|
id: p,
|
|
710
676
|
...i
|
|
711
677
|
}) => {
|
|
712
|
-
const r =
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
{
|
|
716
|
-
[Or[`${qr}--disabled`]]: n
|
|
717
|
-
}
|
|
718
|
-
]);
|
|
678
|
+
const r = he(a, yr, {
|
|
679
|
+
[`${yr}--disabled`]: n
|
|
680
|
+
});
|
|
719
681
|
return /* @__PURE__ */ s("span", { id: p, className: r, ...i, children: t });
|
|
720
682
|
};
|
|
721
|
-
function
|
|
683
|
+
function be(t) {
|
|
722
684
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
723
685
|
}
|
|
724
|
-
var
|
|
686
|
+
var wr = { exports: {} };
|
|
725
687
|
/*!
|
|
726
688
|
Copyright (c) 2018 Jed Watson.
|
|
727
689
|
Licensed under the MIT License (MIT), see
|
|
728
690
|
http://jedwatson.github.io/classnames
|
|
729
691
|
*/
|
|
730
|
-
var
|
|
731
|
-
function
|
|
732
|
-
return
|
|
692
|
+
var xr;
|
|
693
|
+
function ye() {
|
|
694
|
+
return xr || (xr = 1, function(t) {
|
|
733
695
|
(function() {
|
|
734
696
|
var a = {}.hasOwnProperty;
|
|
735
697
|
function n() {
|
|
@@ -758,10 +720,10 @@ function we() {
|
|
|
758
720
|
}
|
|
759
721
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
760
722
|
})();
|
|
761
|
-
}(
|
|
723
|
+
}(wr)), wr.exports;
|
|
762
724
|
}
|
|
763
|
-
var
|
|
764
|
-
const
|
|
725
|
+
var we = ye();
|
|
726
|
+
const xe = /* @__PURE__ */ be(we), $e = {
|
|
765
727
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
766
728
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
767
729
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -769,95 +731,80 @@ const $e = /* @__PURE__ */ ye(xe), Se = {
|
|
|
769
731
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
770
732
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
771
733
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
772
|
-
},
|
|
734
|
+
}, Se = xe.bind($e), $r = "purpur-icon", Ne = "md", Oe = (t) => t.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), qe = ({ content: t = "", title: a } = {}) => {
|
|
773
735
|
const n = [
|
|
774
736
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
775
737
|
{ name: "fill", value: "currentColor" },
|
|
776
738
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
777
739
|
a ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
778
740
|
], p = a ? `<title>${a}</title>` : "";
|
|
779
|
-
return `<svg ${
|
|
780
|
-
},
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
...r
|
|
787
|
-
}) => {
|
|
788
|
-
const e = Pe({
|
|
789
|
-
content: Ae(a.svg),
|
|
790
|
-
title: n
|
|
791
|
-
}), u = Ne(p, jr, `${jr}--${i}`);
|
|
792
|
-
return /* @__PURE__ */ s(
|
|
793
|
-
"span",
|
|
794
|
-
{
|
|
795
|
-
className: u,
|
|
796
|
-
"data-testid": t,
|
|
797
|
-
dangerouslySetInnerHTML: { __html: e },
|
|
798
|
-
...r
|
|
799
|
-
}
|
|
800
|
-
);
|
|
741
|
+
return `<svg ${Oe(n)}>${p}${t}</svg>`;
|
|
742
|
+
}, Pe = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), V = ({ svg: t, allyTitle: a, className: n, size: p = Ne, ...i }) => {
|
|
743
|
+
const r = qe({
|
|
744
|
+
content: Pe(t.svg),
|
|
745
|
+
title: a
|
|
746
|
+
}), e = Se(n, $r, `${$r}--${p}`);
|
|
747
|
+
return /* @__PURE__ */ s("span", { className: e, dangerouslySetInnerHTML: { __html: r }, ...i });
|
|
801
748
|
};
|
|
802
|
-
|
|
749
|
+
V.displayName = "Icon";
|
|
803
750
|
const je = {
|
|
804
751
|
name: "check-circle-filled",
|
|
805
752
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Zm4.712-12.491a.875.875 0 1 0-1.424-1.018l-4.4 6.16-2.27-2.27a.875.875 0 0 0-1.237 1.238l3 3a.875.875 0 0 0 1.331-.11l5-7Z" clip-rule="evenodd"/></svg>',
|
|
806
753
|
keywords: ["check-circle-filled"],
|
|
807
754
|
category: "status"
|
|
808
|
-
},
|
|
809
|
-
|
|
810
|
-
const
|
|
755
|
+
}, Wr = (t) => /* @__PURE__ */ s(V, { ...t, svg: je });
|
|
756
|
+
Wr.displayName = "IconCheckCircleFilled";
|
|
757
|
+
const Ae = {
|
|
811
758
|
name: "close",
|
|
812
759
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M4.864 4.864a.9.9 0 0 1 1.273 0L12 10.727l5.864-5.863a.9.9 0 0 1 1.272 1.272L13.273 12l5.863 5.864a.9.9 0 1 1-1.272 1.272L12 13.273l-5.863 5.863a.9.9 0 0 1-1.273-1.272L10.727 12 4.864 6.136a.9.9 0 0 1 0-1.272Z" clip-rule="evenodd"/></svg>',
|
|
813
760
|
keywords: ["close"],
|
|
814
761
|
category: "utility"
|
|
815
|
-
},
|
|
816
|
-
|
|
817
|
-
function
|
|
762
|
+
}, Zr = (t) => /* @__PURE__ */ s(V, { ...t, svg: Ae });
|
|
763
|
+
Zr.displayName = "IconClose";
|
|
764
|
+
function Sr(t, a) {
|
|
818
765
|
if (typeof t == "function")
|
|
819
766
|
return t(a);
|
|
820
767
|
t != null && (t.current = a);
|
|
821
768
|
}
|
|
822
|
-
function
|
|
769
|
+
function Me(...t) {
|
|
823
770
|
return (a) => {
|
|
824
771
|
let n = !1;
|
|
825
772
|
const p = t.map((i) => {
|
|
826
|
-
const r =
|
|
773
|
+
const r = Sr(i, a);
|
|
827
774
|
return !n && typeof r == "function" && (n = !0), r;
|
|
828
775
|
});
|
|
829
776
|
if (n)
|
|
830
777
|
return () => {
|
|
831
778
|
for (let i = 0; i < p.length; i++) {
|
|
832
779
|
const r = p[i];
|
|
833
|
-
typeof r == "function" ? r() :
|
|
780
|
+
typeof r == "function" ? r() : Sr(t[i], null);
|
|
834
781
|
}
|
|
835
782
|
};
|
|
836
783
|
};
|
|
837
784
|
}
|
|
838
|
-
var
|
|
839
|
-
const { children: n, ...p } = t, i =
|
|
785
|
+
var Fr = f.forwardRef((t, a) => {
|
|
786
|
+
const { children: n, ...p } = t, i = f.Children.toArray(n), r = i.find(ke);
|
|
840
787
|
if (r) {
|
|
841
|
-
const e = r.props.children, u = i.map((
|
|
842
|
-
return /* @__PURE__ */ s(
|
|
788
|
+
const e = r.props.children, u = i.map((d) => d === r ? f.Children.count(e) > 1 ? f.Children.only(null) : f.isValidElement(e) ? e.props.children : null : d);
|
|
789
|
+
return /* @__PURE__ */ s(F, { ...p, ref: a, children: f.isValidElement(e) ? f.cloneElement(e, void 0, u) : null });
|
|
843
790
|
}
|
|
844
|
-
return /* @__PURE__ */ s(
|
|
791
|
+
return /* @__PURE__ */ s(F, { ...p, ref: a, children: n });
|
|
845
792
|
});
|
|
846
|
-
|
|
847
|
-
var
|
|
793
|
+
Fr.displayName = "Slot";
|
|
794
|
+
var F = f.forwardRef((t, a) => {
|
|
848
795
|
const { children: n, ...p } = t;
|
|
849
|
-
if (
|
|
850
|
-
const i =
|
|
851
|
-
return n.type !==
|
|
796
|
+
if (f.isValidElement(n)) {
|
|
797
|
+
const i = ze(n), r = Re(p, n.props);
|
|
798
|
+
return n.type !== f.Fragment && (r.ref = a ? Me(a, i) : i), f.cloneElement(n, r);
|
|
852
799
|
}
|
|
853
|
-
return
|
|
800
|
+
return f.Children.count(n) > 1 ? f.Children.only(null) : null;
|
|
854
801
|
});
|
|
855
|
-
|
|
856
|
-
var
|
|
857
|
-
function
|
|
858
|
-
return
|
|
802
|
+
F.displayName = "SlotClone";
|
|
803
|
+
var Ce = ({ children: t }) => /* @__PURE__ */ s(Qr, { children: t });
|
|
804
|
+
function ke(t) {
|
|
805
|
+
return f.isValidElement(t) && t.type === Ce;
|
|
859
806
|
}
|
|
860
|
-
function
|
|
807
|
+
function Re(t, a) {
|
|
861
808
|
const n = { ...a };
|
|
862
809
|
for (const p in a) {
|
|
863
810
|
const i = t[p], r = a[p];
|
|
@@ -867,12 +814,12 @@ function ze(t, a) {
|
|
|
867
814
|
}
|
|
868
815
|
return { ...t, ...n };
|
|
869
816
|
}
|
|
870
|
-
function
|
|
817
|
+
function ze(t) {
|
|
871
818
|
var a, n;
|
|
872
819
|
let p = (a = Object.getOwnPropertyDescriptor(t.props, "ref")) == null ? void 0 : a.get, i = p && "isReactWarning" in p && p.isReactWarning;
|
|
873
820
|
return i ? t.ref : (p = (n = Object.getOwnPropertyDescriptor(t, "ref")) == null ? void 0 : n.get, i = p && "isReactWarning" in p && p.isReactWarning, i ? t.props.ref : t.props.ref || t.ref);
|
|
874
821
|
}
|
|
875
|
-
var
|
|
822
|
+
var Ee = [
|
|
876
823
|
"a",
|
|
877
824
|
"button",
|
|
878
825
|
"div",
|
|
@@ -889,14 +836,14 @@ var De = [
|
|
|
889
836
|
"span",
|
|
890
837
|
"svg",
|
|
891
838
|
"ul"
|
|
892
|
-
],
|
|
893
|
-
const n =
|
|
894
|
-
const { asChild: r, ...e } = p, u = r ?
|
|
839
|
+
], De = Ee.reduce((t, a) => {
|
|
840
|
+
const n = f.forwardRef((p, i) => {
|
|
841
|
+
const { asChild: r, ...e } = p, u = r ? Fr : a;
|
|
895
842
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ s(u, { ...e, ref: i });
|
|
896
843
|
});
|
|
897
844
|
return n.displayName = `Primitive.${a}`, { ...t, [a]: n };
|
|
898
|
-
}, {}),
|
|
899
|
-
|
|
845
|
+
}, {}), Be = "Label", Gr = f.forwardRef((t, a) => /* @__PURE__ */ s(
|
|
846
|
+
De.label,
|
|
900
847
|
{
|
|
901
848
|
...t,
|
|
902
849
|
ref: a,
|
|
@@ -906,41 +853,41 @@ var De = [
|
|
|
906
853
|
}
|
|
907
854
|
}
|
|
908
855
|
));
|
|
909
|
-
|
|
910
|
-
var
|
|
911
|
-
function
|
|
856
|
+
Gr.displayName = Be;
|
|
857
|
+
var Ie = Gr;
|
|
858
|
+
function Le(t) {
|
|
912
859
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
913
860
|
}
|
|
914
|
-
var
|
|
861
|
+
var Nr = { exports: {} };
|
|
915
862
|
/*!
|
|
916
863
|
Copyright (c) 2018 Jed Watson.
|
|
917
864
|
Licensed under the MIT License (MIT), see
|
|
918
865
|
http://jedwatson.github.io/classnames
|
|
919
866
|
*/
|
|
920
|
-
var
|
|
921
|
-
function
|
|
922
|
-
return
|
|
867
|
+
var Or;
|
|
868
|
+
function Te() {
|
|
869
|
+
return Or || (Or = 1, function(t) {
|
|
923
870
|
(function() {
|
|
924
871
|
var a = {}.hasOwnProperty;
|
|
925
872
|
function n() {
|
|
926
873
|
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
927
874
|
var u = arguments[e];
|
|
928
|
-
u && (r = i(r, p(u)));
|
|
875
|
+
u && (r = i(r, p.call(this, u)));
|
|
929
876
|
}
|
|
930
877
|
return r;
|
|
931
878
|
}
|
|
932
879
|
function p(r) {
|
|
933
880
|
if (typeof r == "string" || typeof r == "number")
|
|
934
|
-
return r;
|
|
881
|
+
return this && this[r] || r;
|
|
935
882
|
if (typeof r != "object")
|
|
936
883
|
return "";
|
|
937
884
|
if (Array.isArray(r))
|
|
938
|
-
return n.apply(
|
|
885
|
+
return n.apply(this, r);
|
|
939
886
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
940
887
|
return r.toString();
|
|
941
888
|
var e = "";
|
|
942
889
|
for (var u in r)
|
|
943
|
-
a.call(r, u) && r[u] && (e = i(e, u));
|
|
890
|
+
a.call(r, u) && r[u] && (e = i(e, this && this[u] || u));
|
|
944
891
|
return e;
|
|
945
892
|
}
|
|
946
893
|
function i(r, e) {
|
|
@@ -948,63 +895,59 @@ function We() {
|
|
|
948
895
|
}
|
|
949
896
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
950
897
|
})();
|
|
951
|
-
}(
|
|
898
|
+
}(Nr)), Nr.exports;
|
|
952
899
|
}
|
|
953
|
-
var
|
|
954
|
-
const
|
|
900
|
+
var We = Te();
|
|
901
|
+
const Ze = /* @__PURE__ */ Le(We), Fe = {
|
|
955
902
|
"purpur-label": "_purpur-label_1jndl_1",
|
|
956
903
|
"purpur-label--negative": "_purpur-label--negative_1jndl_8",
|
|
957
904
|
"purpur-label--disabled": "_purpur-label--disabled_1jndl_11"
|
|
958
|
-
},
|
|
905
|
+
}, Ge = Ze.bind(Fe), T = "purpur-label", Ve = ({
|
|
959
906
|
children: t,
|
|
960
907
|
className: a,
|
|
961
908
|
disabled: n,
|
|
962
909
|
negative: p = !1,
|
|
963
910
|
...i
|
|
964
911
|
}) => {
|
|
965
|
-
const r =
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
[V[`${H}--negative`]]: p
|
|
971
|
-
}
|
|
972
|
-
]);
|
|
973
|
-
return /* @__PURE__ */ s(Le, { className: r, ...i, children: t });
|
|
912
|
+
const r = Ge(a, T, {
|
|
913
|
+
[`${T}--disabled`]: n,
|
|
914
|
+
[`${T}--negative`]: p
|
|
915
|
+
});
|
|
916
|
+
return /* @__PURE__ */ s(Ie, { className: r, ...i, children: t });
|
|
974
917
|
};
|
|
975
|
-
function
|
|
918
|
+
function He(t) {
|
|
976
919
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
977
920
|
}
|
|
978
|
-
var
|
|
921
|
+
var qr = { exports: {} };
|
|
979
922
|
/*!
|
|
980
923
|
Copyright (c) 2018 Jed Watson.
|
|
981
924
|
Licensed under the MIT License (MIT), see
|
|
982
925
|
http://jedwatson.github.io/classnames
|
|
983
926
|
*/
|
|
984
|
-
var
|
|
985
|
-
function
|
|
986
|
-
return
|
|
927
|
+
var Pr;
|
|
928
|
+
function Ke() {
|
|
929
|
+
return Pr || (Pr = 1, function(t) {
|
|
987
930
|
(function() {
|
|
988
931
|
var a = {}.hasOwnProperty;
|
|
989
932
|
function n() {
|
|
990
933
|
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
991
934
|
var u = arguments[e];
|
|
992
|
-
u && (r = i(r, p(u)));
|
|
935
|
+
u && (r = i(r, p.call(this, u)));
|
|
993
936
|
}
|
|
994
937
|
return r;
|
|
995
938
|
}
|
|
996
939
|
function p(r) {
|
|
997
940
|
if (typeof r == "string" || typeof r == "number")
|
|
998
|
-
return r;
|
|
941
|
+
return this && this[r] || r;
|
|
999
942
|
if (typeof r != "object")
|
|
1000
943
|
return "";
|
|
1001
944
|
if (Array.isArray(r))
|
|
1002
|
-
return n.apply(
|
|
945
|
+
return n.apply(this, r);
|
|
1003
946
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
1004
947
|
return r.toString();
|
|
1005
948
|
var e = "";
|
|
1006
949
|
for (var u in r)
|
|
1007
|
-
a.call(r, u) && r[u] && (e = i(e, u));
|
|
950
|
+
a.call(r, u) && r[u] && (e = i(e, this && this[u] || u));
|
|
1008
951
|
return e;
|
|
1009
952
|
}
|
|
1010
953
|
function i(r, e) {
|
|
@@ -1012,61 +955,52 @@ function He() {
|
|
|
1012
955
|
}
|
|
1013
956
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
1014
957
|
})();
|
|
1015
|
-
}(
|
|
958
|
+
}(qr)), qr.exports;
|
|
1016
959
|
}
|
|
1017
|
-
var Ue =
|
|
1018
|
-
const
|
|
960
|
+
var Ue = Ke();
|
|
961
|
+
const Xe = /* @__PURE__ */ He(Ue), Ye = "_rotate_12t9p_1", Je = "_dash_12t9p_1", Qe = {
|
|
1019
962
|
"purpur-spinner": "_purpur-spinner_12t9p_2",
|
|
1020
|
-
rotate:
|
|
963
|
+
rotate: Ye,
|
|
1021
964
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
|
|
1022
965
|
"purpur-spinner--xs": "_purpur-spinner--xs_12t9p_10",
|
|
1023
966
|
"purpur-spinner--sm": "_purpur-spinner--sm_12t9p_14",
|
|
1024
967
|
"purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
|
|
1025
968
|
"purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
|
|
1026
969
|
"purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
|
|
1027
|
-
dash:
|
|
970
|
+
dash: Je,
|
|
1028
971
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
|
|
1029
972
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
|
|
1030
|
-
},
|
|
973
|
+
}, jr = Xe.bind(Qe), A = "purpur-spinner", rn = {
|
|
1031
974
|
SM: "sm"
|
|
1032
|
-
},
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
"div",
|
|
975
|
+
}, tn = ({
|
|
976
|
+
disabled: t = !1,
|
|
977
|
+
negative: a = !1,
|
|
978
|
+
size: n = rn.SM,
|
|
979
|
+
...p
|
|
980
|
+
}) => /* @__PURE__ */ s("div", { className: jr(A, `${A}--${n}`), ...p, children: /* @__PURE__ */ s("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ s(
|
|
981
|
+
"circle",
|
|
1040
982
|
{
|
|
1041
|
-
className:
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
[k[`${R}__circle--disabled`]]: a,
|
|
1049
|
-
[k[`${R}__circle--negative`]]: n
|
|
1050
|
-
}),
|
|
1051
|
-
cx: "25",
|
|
1052
|
-
cy: "25",
|
|
1053
|
-
r: "20"
|
|
1054
|
-
}
|
|
1055
|
-
) })
|
|
983
|
+
className: jr(`${A}__circle`, {
|
|
984
|
+
[`${A}__circle--disabled`]: t,
|
|
985
|
+
[`${A}__circle--negative`]: a
|
|
986
|
+
}),
|
|
987
|
+
cx: "25",
|
|
988
|
+
cy: "25",
|
|
989
|
+
r: "20"
|
|
1056
990
|
}
|
|
1057
|
-
);
|
|
1058
|
-
function
|
|
991
|
+
) }) });
|
|
992
|
+
function en(t) {
|
|
1059
993
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1060
994
|
}
|
|
1061
|
-
var
|
|
995
|
+
var Ar = { exports: {} };
|
|
1062
996
|
/*!
|
|
1063
997
|
Copyright (c) 2018 Jed Watson.
|
|
1064
998
|
Licensed under the MIT License (MIT), see
|
|
1065
999
|
http://jedwatson.github.io/classnames
|
|
1066
1000
|
*/
|
|
1067
|
-
var
|
|
1068
|
-
function
|
|
1069
|
-
return
|
|
1001
|
+
var Mr;
|
|
1002
|
+
function nn() {
|
|
1003
|
+
return Mr || (Mr = 1, function(t) {
|
|
1070
1004
|
(function() {
|
|
1071
1005
|
var a = {}.hasOwnProperty;
|
|
1072
1006
|
function n() {
|
|
@@ -1095,10 +1029,10 @@ function rn() {
|
|
|
1095
1029
|
}
|
|
1096
1030
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
1097
1031
|
})();
|
|
1098
|
-
}(
|
|
1032
|
+
}(Ar)), Ar.exports;
|
|
1099
1033
|
}
|
|
1100
|
-
var
|
|
1101
|
-
const
|
|
1034
|
+
var un = nn();
|
|
1035
|
+
const an = /* @__PURE__ */ en(un), pn = {
|
|
1102
1036
|
"purpur-text-field": "_purpur-text-field_3gl1k_1",
|
|
1103
1037
|
"purpur-text-field__label": "_purpur-text-field__label_3gl1k_7",
|
|
1104
1038
|
"purpur-text-field__label-text": "_purpur-text-field__label-text_3gl1k_12",
|
|
@@ -1115,145 +1049,144 @@ const en = /* @__PURE__ */ Qe(tn), nn = {
|
|
|
1115
1049
|
"purpur-text-field__input--error": "_purpur-text-field__input--error_3gl1k_94",
|
|
1116
1050
|
"purpur-text-field__adornment-container": "_purpur-text-field__adornment-container_3gl1k_106",
|
|
1117
1051
|
"purpur-text-field__valid-icon": "_purpur-text-field__valid-icon_3gl1k_111"
|
|
1118
|
-
},
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
`${
|
|
1174
|
-
|
|
1175
|
-
[`${
|
|
1176
|
-
[`${
|
|
1177
|
-
[`${
|
|
1178
|
-
[`${
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
}
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
}
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1052
|
+
}, sn = (t) => tt(t), x = an.bind(pn), _ = "purpur-text-field", Vr = q(
|
|
1053
|
+
({
|
|
1054
|
+
["data-testid"]: t,
|
|
1055
|
+
className: a,
|
|
1056
|
+
clearButtonAriaLabel: n,
|
|
1057
|
+
beforeField: p,
|
|
1058
|
+
afterField: i,
|
|
1059
|
+
endAdornment: r,
|
|
1060
|
+
errorText: e,
|
|
1061
|
+
helperText: u,
|
|
1062
|
+
hideRequiredAsterisk: d = !1,
|
|
1063
|
+
label: c,
|
|
1064
|
+
loading: g = !1,
|
|
1065
|
+
onClear: l,
|
|
1066
|
+
startAdornment: v,
|
|
1067
|
+
valid: y = !1,
|
|
1068
|
+
...o
|
|
1069
|
+
}, m) => {
|
|
1070
|
+
var $;
|
|
1071
|
+
const Ur = rt(), D = o.id ?? Ur, w = (b) => t ? `${t}-${b}` : void 0, U = y && !e, B = u ? `${D}-helper-text` : void 0, I = [v].filter((b) => !!b), X = (typeof o.value == "number" ? o.value !== void 0 : ($ = o.value) == null ? void 0 : $.length) && !o.disabled && !o.readOnly && !g && l && n, Y = sn(null), Xr = (b) => {
|
|
1072
|
+
Y.current = b, typeof m == "function" ? m(b) : m && (m.current = b);
|
|
1073
|
+
}, Yr = () => {
|
|
1074
|
+
var b;
|
|
1075
|
+
l == null || l(), (b = Y.current) == null || b.focus();
|
|
1076
|
+
}, L = [
|
|
1077
|
+
g && /* @__PURE__ */ s(
|
|
1078
|
+
tn,
|
|
1079
|
+
{
|
|
1080
|
+
disabled: o.disabled,
|
|
1081
|
+
size: "xs",
|
|
1082
|
+
"data-testid": w("spinner")
|
|
1083
|
+
},
|
|
1084
|
+
"spinner"
|
|
1085
|
+
),
|
|
1086
|
+
X && /* @__PURE__ */ s(
|
|
1087
|
+
Lr,
|
|
1088
|
+
{
|
|
1089
|
+
variant: "tertiary-purple",
|
|
1090
|
+
onClick: Yr,
|
|
1091
|
+
iconOnly: !0,
|
|
1092
|
+
"aria-label": n ?? "",
|
|
1093
|
+
"data-testid": w("clear-button"),
|
|
1094
|
+
tabIndex: -1,
|
|
1095
|
+
children: /* @__PURE__ */ s(Zr, { size: "xs" })
|
|
1096
|
+
},
|
|
1097
|
+
"clear-button"
|
|
1098
|
+
),
|
|
1099
|
+
U && /* @__PURE__ */ s(
|
|
1100
|
+
Wr,
|
|
1101
|
+
{
|
|
1102
|
+
"data-testid": w("valid-icon"),
|
|
1103
|
+
className: x(`${_}__valid-icon`)
|
|
1104
|
+
},
|
|
1105
|
+
"valid-icon"
|
|
1106
|
+
)
|
|
1107
|
+
].filter((b) => !!b), Jr = x(`${_}__input-container`, {
|
|
1108
|
+
[`${_}__input-container--start-adornment`]: I.length,
|
|
1109
|
+
[`${_}__input-container--end-adornment`]: L.length || r,
|
|
1110
|
+
[`${_}__input-container--disabled`]: o.disabled,
|
|
1111
|
+
[`${_}__input-container--has-clear-button`]: X,
|
|
1112
|
+
[`${_}__input-container--readonly`]: o.readOnly && !o.disabled
|
|
1113
|
+
});
|
|
1114
|
+
return /* @__PURE__ */ h("div", { className: x(a, _), children: [
|
|
1115
|
+
c && /* @__PURE__ */ h(
|
|
1116
|
+
Ve,
|
|
1117
|
+
{
|
|
1118
|
+
htmlFor: D,
|
|
1119
|
+
className: x(`${_}__label`),
|
|
1120
|
+
"data-testid": w("label"),
|
|
1121
|
+
disabled: o.disabled,
|
|
1122
|
+
children: [
|
|
1123
|
+
o.required && !d && /* @__PURE__ */ s("span", { "aria-hidden": !0, children: "*" }),
|
|
1124
|
+
c
|
|
1125
|
+
]
|
|
1126
|
+
}
|
|
1127
|
+
),
|
|
1128
|
+
/* @__PURE__ */ h("div", { className: x(`${_}__field-row`), children: [
|
|
1129
|
+
!!p && p,
|
|
1130
|
+
/* @__PURE__ */ h("div", { className: Jr, children: [
|
|
1131
|
+
!!I.length && /* @__PURE__ */ s(
|
|
1132
|
+
"div",
|
|
1133
|
+
{
|
|
1134
|
+
"data-testid": w("start-adornments"),
|
|
1135
|
+
className: x(`${_}__adornment-container`),
|
|
1136
|
+
children: I
|
|
1137
|
+
}
|
|
1138
|
+
),
|
|
1139
|
+
/* @__PURE__ */ s(
|
|
1140
|
+
"input",
|
|
1141
|
+
{
|
|
1142
|
+
...o,
|
|
1143
|
+
id: D,
|
|
1144
|
+
ref: Xr,
|
|
1145
|
+
"data-testid": w("input"),
|
|
1146
|
+
"aria-describedby": o["aria-describedby"] || B,
|
|
1147
|
+
"aria-invalid": o["aria-invalid"] || !!e,
|
|
1148
|
+
className: x([
|
|
1149
|
+
`${_}__input`,
|
|
1150
|
+
{
|
|
1151
|
+
[`${_}__input--valid`]: U,
|
|
1152
|
+
[`${_}__input--error`]: !!e
|
|
1153
|
+
}
|
|
1154
|
+
])
|
|
1155
|
+
}
|
|
1156
|
+
),
|
|
1157
|
+
/* @__PURE__ */ s("div", { className: x(`${_}__frame`) }),
|
|
1158
|
+
(!!L.length || r) && /* @__PURE__ */ h(
|
|
1159
|
+
"div",
|
|
1160
|
+
{
|
|
1161
|
+
"data-testid": w("end-adornments"),
|
|
1162
|
+
className: x(`${_}__adornment-container`),
|
|
1163
|
+
children: [
|
|
1164
|
+
L,
|
|
1165
|
+
r
|
|
1166
|
+
]
|
|
1167
|
+
}
|
|
1168
|
+
)
|
|
1169
|
+
] }),
|
|
1170
|
+
!!i && i
|
|
1237
1171
|
] }),
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
function pn(t) {
|
|
1172
|
+
B && /* @__PURE__ */ s(me, { "data-testid": w("helper-text"), id: B, children: u }),
|
|
1173
|
+
e && /* @__PURE__ */ s(ce, { "data-testid": w("error-text"), children: e })
|
|
1174
|
+
] });
|
|
1175
|
+
}
|
|
1176
|
+
);
|
|
1177
|
+
Vr.displayName = "TextField";
|
|
1178
|
+
function on(t) {
|
|
1246
1179
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1247
1180
|
}
|
|
1248
|
-
var
|
|
1181
|
+
var W = { exports: {} };
|
|
1249
1182
|
/*!
|
|
1250
1183
|
Copyright (c) 2018 Jed Watson.
|
|
1251
1184
|
Licensed under the MIT License (MIT), see
|
|
1252
1185
|
http://jedwatson.github.io/classnames
|
|
1253
1186
|
*/
|
|
1254
|
-
var
|
|
1255
|
-
function
|
|
1256
|
-
return
|
|
1187
|
+
var Cr;
|
|
1188
|
+
function ln() {
|
|
1189
|
+
return Cr || (Cr = 1, function(t) {
|
|
1257
1190
|
(function() {
|
|
1258
1191
|
var a = {}.hasOwnProperty;
|
|
1259
1192
|
function n() {
|
|
@@ -1282,52 +1215,52 @@ function sn() {
|
|
|
1282
1215
|
}
|
|
1283
1216
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
1284
1217
|
})();
|
|
1285
|
-
}(
|
|
1218
|
+
}(W)), W.exports;
|
|
1286
1219
|
}
|
|
1287
|
-
var
|
|
1288
|
-
const
|
|
1220
|
+
var cn = ln();
|
|
1221
|
+
const H = /* @__PURE__ */ on(cn), M = {
|
|
1289
1222
|
WEAK: "weak",
|
|
1290
1223
|
MEDIUM: "medium",
|
|
1291
1224
|
STRONG: "strong"
|
|
1292
|
-
},
|
|
1225
|
+
}, O = {
|
|
1293
1226
|
PASSWORD: "password",
|
|
1294
1227
|
TEXT: "text"
|
|
1295
|
-
},
|
|
1228
|
+
}, dn = {
|
|
1296
1229
|
"purpur-password-field": "_purpur-password-field_co7kv_1"
|
|
1297
1230
|
};
|
|
1298
|
-
function
|
|
1231
|
+
function _n(t) {
|
|
1299
1232
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1300
1233
|
}
|
|
1301
|
-
var
|
|
1234
|
+
var kr = { exports: {} };
|
|
1302
1235
|
/*!
|
|
1303
1236
|
Copyright (c) 2018 Jed Watson.
|
|
1304
1237
|
Licensed under the MIT License (MIT), see
|
|
1305
1238
|
http://jedwatson.github.io/classnames
|
|
1306
1239
|
*/
|
|
1307
|
-
var
|
|
1308
|
-
function
|
|
1309
|
-
return
|
|
1240
|
+
var Rr;
|
|
1241
|
+
function fn() {
|
|
1242
|
+
return Rr || (Rr = 1, function(t) {
|
|
1310
1243
|
(function() {
|
|
1311
1244
|
var a = {}.hasOwnProperty;
|
|
1312
1245
|
function n() {
|
|
1313
1246
|
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
1314
1247
|
var u = arguments[e];
|
|
1315
|
-
u && (r = i(r, p(u)));
|
|
1248
|
+
u && (r = i(r, p.call(this, u)));
|
|
1316
1249
|
}
|
|
1317
1250
|
return r;
|
|
1318
1251
|
}
|
|
1319
1252
|
function p(r) {
|
|
1320
1253
|
if (typeof r == "string" || typeof r == "number")
|
|
1321
|
-
return r;
|
|
1254
|
+
return this && this[r] || r;
|
|
1322
1255
|
if (typeof r != "object")
|
|
1323
1256
|
return "";
|
|
1324
1257
|
if (Array.isArray(r))
|
|
1325
|
-
return n.apply(
|
|
1258
|
+
return n.apply(this, r);
|
|
1326
1259
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
1327
1260
|
return r.toString();
|
|
1328
1261
|
var e = "";
|
|
1329
1262
|
for (var u in r)
|
|
1330
|
-
a.call(r, u) && r[u] && (e = i(e, u));
|
|
1263
|
+
a.call(r, u) && r[u] && (e = i(e, this && this[u] || u));
|
|
1331
1264
|
return e;
|
|
1332
1265
|
}
|
|
1333
1266
|
function i(r, e) {
|
|
@@ -1335,10 +1268,10 @@ function dn() {
|
|
|
1335
1268
|
}
|
|
1336
1269
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
1337
1270
|
})();
|
|
1338
|
-
}(
|
|
1271
|
+
}(kr)), kr.exports;
|
|
1339
1272
|
}
|
|
1340
|
-
var
|
|
1341
|
-
const
|
|
1273
|
+
var gn = fn();
|
|
1274
|
+
const vn = /* @__PURE__ */ _n(gn), hn = {
|
|
1342
1275
|
"purpur-paragraph": "_purpur-paragraph_1rh57_1",
|
|
1343
1276
|
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
|
|
1344
1277
|
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
|
|
@@ -1353,45 +1286,39 @@ const fn = /* @__PURE__ */ cn(_n), E = {
|
|
|
1353
1286
|
"purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1rh57_60",
|
|
1354
1287
|
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
|
|
1355
1288
|
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
|
|
1356
|
-
},
|
|
1289
|
+
}, mn = vn.bind(hn), bn = {
|
|
1357
1290
|
PARAGRAPH100: "paragraph-100"
|
|
1358
|
-
},
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
...u
|
|
1291
|
+
}, C = "purpur-paragraph", Hr = ({
|
|
1292
|
+
children: t,
|
|
1293
|
+
className: a,
|
|
1294
|
+
disabled: n,
|
|
1295
|
+
enableHyphenation: p = !1,
|
|
1296
|
+
negative: i = !1,
|
|
1297
|
+
variant: r = bn.PARAGRAPH100,
|
|
1298
|
+
...e
|
|
1367
1299
|
}) => {
|
|
1368
|
-
const
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
[E[`${D}--disabled`]]: p,
|
|
1375
|
-
[E[`${D}--negative`]]: r
|
|
1376
|
-
}
|
|
1377
|
-
]);
|
|
1378
|
-
return /* @__PURE__ */ s("p", { ...u, className: c, "data-testid": t, children: a });
|
|
1300
|
+
const u = mn(a, C, `${C}--${r}`, {
|
|
1301
|
+
[`${C}--hyphens`]: p,
|
|
1302
|
+
[`${C}--disabled`]: n,
|
|
1303
|
+
[`${C}--negative`]: i
|
|
1304
|
+
});
|
|
1305
|
+
return /* @__PURE__ */ s("p", { ...e, className: u, children: t });
|
|
1379
1306
|
};
|
|
1380
|
-
|
|
1381
|
-
const
|
|
1307
|
+
Hr.displayName = "Paragraph";
|
|
1308
|
+
const yn = {
|
|
1382
1309
|
"purpur-password-strength": "_purpur-password-strength_sa1ua_1",
|
|
1383
1310
|
"purpur-password-strength__indicator-container": "_purpur-password-strength__indicator-container_sa1ua_6",
|
|
1384
1311
|
"purpur-password-strength__password-strength-text--weak": "_purpur-password-strength__password-strength-text--weak_sa1ua_10",
|
|
1385
1312
|
"purpur-password-strength__password-strength-text--medium": "_purpur-password-strength__password-strength-text--medium_sa1ua_13",
|
|
1386
1313
|
"purpur-password-strength__password-strength-text--strong": "_purpur-password-strength__password-strength-text--strong_sa1ua_16",
|
|
1387
1314
|
"purpur-password-strength__password-strength-label": "_purpur-password-strength__password-strength-label_sa1ua_19"
|
|
1388
|
-
},
|
|
1315
|
+
}, wn = {
|
|
1389
1316
|
"purpur-password-strength-indicator": "_purpur-password-strength-indicator_1o6zr_1",
|
|
1390
1317
|
"purpur-password-strength-indicator--active": "_purpur-password-strength-indicator--active_1o6zr_7",
|
|
1391
1318
|
"purpur-password-strength-indicator--weak": "_purpur-password-strength-indicator--weak_1o6zr_7",
|
|
1392
1319
|
"purpur-password-strength-indicator--medium": "_purpur-password-strength-indicator--medium_1o6zr_10",
|
|
1393
1320
|
"purpur-password-strength-indicator--strong": "_purpur-password-strength-indicator--strong_1o6zr_13"
|
|
1394
|
-
},
|
|
1321
|
+
}, xn = H.bind(wn), Z = "purpur-password-strength-indicator", E = q(
|
|
1395
1322
|
({
|
|
1396
1323
|
["data-testid"]: t = "password-strength-indicator",
|
|
1397
1324
|
active: a,
|
|
@@ -1399,42 +1326,42 @@ const vn = {
|
|
|
1399
1326
|
passwordStrength: p,
|
|
1400
1327
|
...i
|
|
1401
1328
|
}, r) => {
|
|
1402
|
-
const e =
|
|
1329
|
+
const e = xn(
|
|
1403
1330
|
n,
|
|
1404
|
-
|
|
1405
|
-
{ [`${
|
|
1406
|
-
{ [`${
|
|
1407
|
-
|
|
1331
|
+
Z,
|
|
1332
|
+
{ [`${Z}--${p}`]: p },
|
|
1333
|
+
{ [`${Z}--active`]: a }
|
|
1334
|
+
);
|
|
1408
1335
|
return /* @__PURE__ */ s("div", { ...i, "data-testid": t, className: e, ref: r });
|
|
1409
1336
|
}
|
|
1410
1337
|
);
|
|
1411
|
-
|
|
1412
|
-
const
|
|
1413
|
-
const [i, r] =
|
|
1338
|
+
E.displayName = "PasswordStrengthIndicator";
|
|
1339
|
+
const $n = (t, a, n, p) => {
|
|
1340
|
+
const [i, r] = z(0), [e, u] = z(), [d, c] = z(void 0), g = et(
|
|
1414
1341
|
() => ({
|
|
1415
|
-
0: [
|
|
1416
|
-
1: [
|
|
1417
|
-
2: [
|
|
1418
|
-
3: [
|
|
1419
|
-
4: [
|
|
1342
|
+
0: [M.WEAK, a],
|
|
1343
|
+
1: [M.WEAK, a],
|
|
1344
|
+
2: [M.MEDIUM, n],
|
|
1345
|
+
3: [M.STRONG, p],
|
|
1346
|
+
4: [M.STRONG, p]
|
|
1420
1347
|
}),
|
|
1421
1348
|
[a, n, p]
|
|
1422
1349
|
);
|
|
1423
|
-
return
|
|
1350
|
+
return nt(() => {
|
|
1424
1351
|
(async () => {
|
|
1425
1352
|
if (!t)
|
|
1426
|
-
r(0), u(void 0),
|
|
1353
|
+
r(0), u(void 0), c(void 0);
|
|
1427
1354
|
else {
|
|
1428
|
-
const { default: l } = await import("./main-
|
|
1429
|
-
r(v), u(y),
|
|
1355
|
+
const { default: l } = await import("./main-gnz5YkrK.mjs").then((m) => m.m), { score: v } = l(t), [y, o] = g[v];
|
|
1356
|
+
r(v), u(y), c(o);
|
|
1430
1357
|
}
|
|
1431
1358
|
})();
|
|
1432
|
-
}, [t,
|
|
1359
|
+
}, [t, g]), {
|
|
1433
1360
|
score: i,
|
|
1434
1361
|
passwordStrength: e,
|
|
1435
|
-
currentPasswordStrengthText:
|
|
1362
|
+
currentPasswordStrengthText: d
|
|
1436
1363
|
};
|
|
1437
|
-
},
|
|
1364
|
+
}, R = H.bind(yn), k = "purpur-password-strength", K = q(
|
|
1438
1365
|
({
|
|
1439
1366
|
["data-testid"]: t = "password-strength",
|
|
1440
1367
|
className: a,
|
|
@@ -1444,48 +1371,47 @@ const bn = (t, a, n, p) => {
|
|
|
1444
1371
|
mediumText: r,
|
|
1445
1372
|
strongText: e,
|
|
1446
1373
|
...u
|
|
1447
|
-
},
|
|
1448
|
-
const
|
|
1374
|
+
}, d) => {
|
|
1375
|
+
const c = R(a, k), { score: g, passwordStrength: l, currentPasswordStrengthText: v } = $n(
|
|
1449
1376
|
n,
|
|
1450
1377
|
i,
|
|
1451
1378
|
r,
|
|
1452
1379
|
e
|
|
1453
1380
|
);
|
|
1454
|
-
return /* @__PURE__ */ h("div", { "data-testid": t, className:
|
|
1455
|
-
/* @__PURE__ */ h("div", { className:
|
|
1381
|
+
return /* @__PURE__ */ h("div", { "data-testid": t, className: c, ref: d, ...u, children: [
|
|
1382
|
+
/* @__PURE__ */ h("div", { className: R(`${k}__indicator-container`), children: [
|
|
1456
1383
|
/* @__PURE__ */ s(
|
|
1457
|
-
|
|
1384
|
+
E,
|
|
1458
1385
|
{
|
|
1459
1386
|
active: !!l,
|
|
1460
1387
|
passwordStrength: l
|
|
1461
1388
|
}
|
|
1462
1389
|
),
|
|
1463
1390
|
/* @__PURE__ */ s(
|
|
1464
|
-
|
|
1391
|
+
E,
|
|
1465
1392
|
{
|
|
1466
|
-
active: !!l &&
|
|
1393
|
+
active: !!l && g > 1,
|
|
1467
1394
|
passwordStrength: l
|
|
1468
1395
|
}
|
|
1469
1396
|
),
|
|
1470
1397
|
/* @__PURE__ */ s(
|
|
1471
|
-
|
|
1398
|
+
E,
|
|
1472
1399
|
{
|
|
1473
|
-
active: !!l &&
|
|
1400
|
+
active: !!l && g > 2,
|
|
1474
1401
|
passwordStrength: l
|
|
1475
1402
|
}
|
|
1476
1403
|
)
|
|
1477
1404
|
] }),
|
|
1478
1405
|
/* @__PURE__ */ h(
|
|
1479
|
-
|
|
1406
|
+
Hr,
|
|
1480
1407
|
{
|
|
1481
1408
|
"aria-live": "polite",
|
|
1482
1409
|
"data-testid": `${t}-text`,
|
|
1483
|
-
className:
|
|
1484
|
-
`${
|
|
1485
|
-
|
|
1486
|
-
]),
|
|
1410
|
+
className: R(`${k}__password-strength-text`, {
|
|
1411
|
+
[`${k}__password-strength-text--${l}`]: l
|
|
1412
|
+
}),
|
|
1487
1413
|
children: [
|
|
1488
|
-
/* @__PURE__ */ h("span", { className:
|
|
1414
|
+
/* @__PURE__ */ h("span", { className: R(`${k}__password-strength-label`), children: [
|
|
1489
1415
|
p,
|
|
1490
1416
|
v ? ": " : ""
|
|
1491
1417
|
] }),
|
|
@@ -1496,8 +1422,8 @@ const bn = (t, a, n, p) => {
|
|
|
1496
1422
|
] });
|
|
1497
1423
|
}
|
|
1498
1424
|
);
|
|
1499
|
-
|
|
1500
|
-
const
|
|
1425
|
+
K.displayName = "PasswordStrength";
|
|
1426
|
+
const zr = H.bind(dn), Er = "purpur-password-field", Kr = q(
|
|
1501
1427
|
({
|
|
1502
1428
|
["data-testid"]: t = "password-field",
|
|
1503
1429
|
children: a,
|
|
@@ -1507,24 +1433,24 @@ const Wr = Q.bind(ln), Zr = "purpur-password-field", tt = P(
|
|
|
1507
1433
|
showPasswordAriaLabel: r,
|
|
1508
1434
|
...e
|
|
1509
1435
|
}, u) => {
|
|
1510
|
-
const
|
|
1436
|
+
const d = zr(n, Er), [c, g] = z(O.PASSWORD), l = async (o) => {
|
|
1511
1437
|
i == null || i(o);
|
|
1512
1438
|
}, v = () => {
|
|
1513
|
-
|
|
1514
|
-
}, y =
|
|
1515
|
-
return /* @__PURE__ */ h("div", { className:
|
|
1439
|
+
g(c === O.PASSWORD ? O.TEXT : O.PASSWORD);
|
|
1440
|
+
}, y = c === O.PASSWORD ? Ir : Br;
|
|
1441
|
+
return /* @__PURE__ */ h("div", { className: d, children: [
|
|
1516
1442
|
/* @__PURE__ */ s(
|
|
1517
|
-
|
|
1443
|
+
Vr,
|
|
1518
1444
|
{
|
|
1519
|
-
className:
|
|
1445
|
+
className: zr(`${Er}__text-field`),
|
|
1520
1446
|
"data-testid": t,
|
|
1521
1447
|
onChange: l,
|
|
1522
1448
|
ref: u,
|
|
1523
|
-
type:
|
|
1449
|
+
type: c,
|
|
1524
1450
|
endAdornment: /* @__PURE__ */ s(
|
|
1525
|
-
|
|
1451
|
+
Dr,
|
|
1526
1452
|
{
|
|
1527
|
-
"aria-label":
|
|
1453
|
+
"aria-label": c === O.PASSWORD ? r : p,
|
|
1528
1454
|
"data-testid": `${t}-type-toggle-button`,
|
|
1529
1455
|
onClick: v,
|
|
1530
1456
|
size: "sm",
|
|
@@ -1540,12 +1466,12 @@ const Wr = Q.bind(ln), Zr = "purpur-password-field", tt = P(
|
|
|
1540
1466
|
] });
|
|
1541
1467
|
}
|
|
1542
1468
|
);
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
const
|
|
1469
|
+
Kr.PasswordStrength = K;
|
|
1470
|
+
Kr.displayName = "PasswordField";
|
|
1471
|
+
const qn = (t) => ut(t) && (t == null ? void 0 : t.type) === K;
|
|
1546
1472
|
export {
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1473
|
+
Kr as P,
|
|
1474
|
+
on as g,
|
|
1475
|
+
qn as i
|
|
1550
1476
|
};
|
|
1551
|
-
//# sourceMappingURL=password-field-
|
|
1477
|
+
//# sourceMappingURL=password-field-Ji6ilrt_.mjs.map
|