@purpurds/password-field 8.8.1 → 8.10.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-7SvfB5sK.js → main-BnhsobnE.js} +2 -2
- package/dist/{main-7SvfB5sK.js.map → main-BnhsobnE.js.map} +1 -1
- package/dist/{main-4qdMai51.mjs → main-CrpoFq2s.mjs} +2 -2
- package/dist/{main-4qdMai51.mjs.map → main-CrpoFq2s.mjs.map} +1 -1
- package/dist/password-field-B1vIj5Ze.js +2 -0
- package/dist/password-field-B1vIj5Ze.js.map +1 -0
- package/dist/{password-field-Ca6mfkQC.mjs → password-field-CJnHnGjP.mjs} +221 -308
- package/dist/password-field-CJnHnGjP.mjs.map +1 -0
- package/dist/password-field.cjs.js +1 -1
- package/dist/password-field.es.js +1 -1
- package/package.json +25 -25
- package/dist/password-field-Ca6mfkQC.mjs.map +0 -1
- package/dist/password-field-Dq18AIF3.js +0 -58
- package/dist/password-field-Dq18AIF3.js.map +0 -1
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
import { jsxs as v, jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import * as d from "react";
|
|
3
|
-
import { forwardRef as O, useId as
|
|
3
|
+
import { forwardRef as O, useId as nt, useRef as ut, useState as z, useMemo as pt, useEffect as it, isValidElement as at } from "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
const
|
|
5
|
+
const st = {
|
|
6
6
|
LG: "lg"
|
|
7
7
|
};
|
|
8
|
-
function
|
|
8
|
+
function ot(t) {
|
|
9
9
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
10
10
|
}
|
|
11
|
-
var rr = { exports: {} };
|
|
12
|
-
|
|
13
|
-
Copyright (c) 2018 Jed Watson.
|
|
14
|
-
Licensed under the MIT License (MIT), see
|
|
15
|
-
http://jedwatson.github.io/classnames
|
|
16
|
-
*/
|
|
17
|
-
var tr;
|
|
18
|
-
function ct() {
|
|
11
|
+
var rr = { exports: {} }, tr;
|
|
12
|
+
function lt() {
|
|
19
13
|
return tr || (tr = 1, (function(t) {
|
|
20
14
|
(function() {
|
|
21
15
|
var p = {}.hasOwnProperty;
|
|
@@ -47,25 +41,25 @@ function ct() {
|
|
|
47
41
|
})();
|
|
48
42
|
})(rr)), rr.exports;
|
|
49
43
|
}
|
|
50
|
-
var
|
|
51
|
-
const
|
|
44
|
+
var ct = lt();
|
|
45
|
+
const _t = /* @__PURE__ */ ot(ct), dt = "_rotate_12t9p_1", ft = "_dash_12t9p_1", gt = {
|
|
52
46
|
"purpur-spinner": "_purpur-spinner_12t9p_2",
|
|
53
|
-
rotate:
|
|
47
|
+
rotate: dt,
|
|
54
48
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
|
|
55
49
|
"purpur-spinner--xs": "_purpur-spinner--xs_12t9p_10",
|
|
56
50
|
"purpur-spinner--sm": "_purpur-spinner--sm_12t9p_14",
|
|
57
51
|
"purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
|
|
58
52
|
"purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
|
|
59
53
|
"purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
|
|
60
|
-
dash:
|
|
54
|
+
dash: ft,
|
|
61
55
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
|
|
62
56
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
|
|
63
|
-
}, er =
|
|
57
|
+
}, er = _t.bind(gt), P = "purpur-spinner", ht = {
|
|
64
58
|
SM: "sm"
|
|
65
59
|
}, Br = ({
|
|
66
60
|
disabled: t = !1,
|
|
67
61
|
negative: p = !1,
|
|
68
|
-
size: n =
|
|
62
|
+
size: n = ht.SM,
|
|
69
63
|
className: a,
|
|
70
64
|
...i
|
|
71
65
|
}) => /* @__PURE__ */ s("div", { className: er(P, `${P}--${n}`, a), ...i, children: /* @__PURE__ */ s("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ s(
|
|
@@ -81,17 +75,11 @@ const dt = /* @__PURE__ */ lt(_t), ft = "_rotate_12t9p_1", gt = "_dash_12t9p_1",
|
|
|
81
75
|
}
|
|
82
76
|
) }) });
|
|
83
77
|
Br.displayName = "Spinner";
|
|
84
|
-
function
|
|
78
|
+
function vt(t) {
|
|
85
79
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
86
80
|
}
|
|
87
|
-
var nr = { exports: {} };
|
|
88
|
-
|
|
89
|
-
Copyright (c) 2018 Jed Watson.
|
|
90
|
-
Licensed under the MIT License (MIT), see
|
|
91
|
-
http://jedwatson.github.io/classnames
|
|
92
|
-
*/
|
|
93
|
-
var ur;
|
|
94
|
-
function bt() {
|
|
81
|
+
var nr = { exports: {} }, ur;
|
|
82
|
+
function mt() {
|
|
95
83
|
return ur || (ur = 1, (function(t) {
|
|
96
84
|
(function() {
|
|
97
85
|
var p = {}.hasOwnProperty;
|
|
@@ -123,8 +111,8 @@ function bt() {
|
|
|
123
111
|
})();
|
|
124
112
|
})(nr)), nr.exports;
|
|
125
113
|
}
|
|
126
|
-
var
|
|
127
|
-
const
|
|
114
|
+
var bt = mt();
|
|
115
|
+
const yt = /* @__PURE__ */ vt(bt), xt = {
|
|
128
116
|
"purpur-button": "_purpur-button_10jh0_1",
|
|
129
117
|
"purpur-button--xs": "_purpur-button--xs_10jh0_22",
|
|
130
118
|
"purpur-button--icon-only": "_purpur-button--icon-only_10jh0_25",
|
|
@@ -147,7 +135,7 @@ const xt = /* @__PURE__ */ mt(yt), wt = {
|
|
|
147
135
|
"purpur-button--text-negative": "_purpur-button--text-negative_10jh0_185",
|
|
148
136
|
"purpur-button--text": "_purpur-button--text_10jh0_185",
|
|
149
137
|
"purpur-button__spinner": "_purpur-button__spinner_10jh0_235"
|
|
150
|
-
}, pr =
|
|
138
|
+
}, pr = yt.bind(xt), $ = "purpur-button", Lr = O(
|
|
151
139
|
({
|
|
152
140
|
children: t,
|
|
153
141
|
className: p,
|
|
@@ -164,26 +152,26 @@ const xt = /* @__PURE__ */ mt(yt), wt = {
|
|
|
164
152
|
}, h) => {
|
|
165
153
|
if (i && o === "destructive")
|
|
166
154
|
return null;
|
|
167
|
-
const
|
|
155
|
+
const b = pr(
|
|
168
156
|
[
|
|
169
|
-
|
|
170
|
-
`${
|
|
171
|
-
`${
|
|
157
|
+
$,
|
|
158
|
+
`${$}--${e ? `${o}-negative` : o}`,
|
|
159
|
+
`${$}--${_}`
|
|
172
160
|
],
|
|
173
161
|
{
|
|
174
|
-
[`${
|
|
175
|
-
[`${
|
|
176
|
-
[`${
|
|
177
|
-
[`${
|
|
162
|
+
[`${$}--icon-only`]: i,
|
|
163
|
+
[`${$}--negative`]: e,
|
|
164
|
+
[`${$}--full-width`]: a,
|
|
165
|
+
[`${$}--disabled`]: n || r
|
|
178
166
|
},
|
|
179
167
|
p
|
|
180
|
-
), c = (
|
|
181
|
-
n || r ?
|
|
168
|
+
), c = (j) => {
|
|
169
|
+
n || r ? j.preventDefault() : u && u(j);
|
|
182
170
|
}, m = !!l["aria-disabled"] || n || r;
|
|
183
171
|
return /* @__PURE__ */ v(
|
|
184
172
|
"button",
|
|
185
173
|
{
|
|
186
|
-
className:
|
|
174
|
+
className: b,
|
|
187
175
|
type: f,
|
|
188
176
|
ref: h,
|
|
189
177
|
"aria-disabled": m,
|
|
@@ -193,10 +181,10 @@ const xt = /* @__PURE__ */ mt(yt), wt = {
|
|
|
193
181
|
r && /* @__PURE__ */ s(
|
|
194
182
|
Br,
|
|
195
183
|
{
|
|
196
|
-
size: _ ===
|
|
184
|
+
size: _ === st.LG ? "xs" : "xxs",
|
|
197
185
|
negative: e,
|
|
198
186
|
disabled: m,
|
|
199
|
-
className: pr(`${
|
|
187
|
+
className: pr(`${$}__spinner`)
|
|
200
188
|
}
|
|
201
189
|
),
|
|
202
190
|
" ",
|
|
@@ -207,17 +195,11 @@ const xt = /* @__PURE__ */ mt(yt), wt = {
|
|
|
207
195
|
}
|
|
208
196
|
);
|
|
209
197
|
Lr.displayName = "Button";
|
|
210
|
-
function
|
|
198
|
+
function wt(t) {
|
|
211
199
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
212
200
|
}
|
|
213
|
-
var ir = { exports: {} };
|
|
214
|
-
|
|
215
|
-
Copyright (c) 2018 Jed Watson.
|
|
216
|
-
Licensed under the MIT License (MIT), see
|
|
217
|
-
http://jedwatson.github.io/classnames
|
|
218
|
-
*/
|
|
219
|
-
var ar;
|
|
220
|
-
function St() {
|
|
201
|
+
var ir = { exports: {} }, ar;
|
|
202
|
+
function $t() {
|
|
221
203
|
return ar || (ar = 1, (function(t) {
|
|
222
204
|
(function() {
|
|
223
205
|
var p = {}.hasOwnProperty;
|
|
@@ -249,8 +231,8 @@ function St() {
|
|
|
249
231
|
})();
|
|
250
232
|
})(ir)), ir.exports;
|
|
251
233
|
}
|
|
252
|
-
var
|
|
253
|
-
const
|
|
234
|
+
var St = $t();
|
|
235
|
+
const jt = /* @__PURE__ */ wt(St), Nt = {
|
|
254
236
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
255
237
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
256
238
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -258,50 +240,44 @@ const Nt = /* @__PURE__ */ $t(jt), Ot = {
|
|
|
258
240
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
259
241
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
260
242
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
261
|
-
},
|
|
243
|
+
}, Ot = jt.bind(Nt), sr = "purpur-icon", Pt = "md", At = (t) => t.filter((p) => Object.keys(p).length >= 1).map((p) => `${p.name}="${p.value}"`).join(" "), Ct = ({ content: t = "", title: p } = {}) => {
|
|
262
244
|
const n = [
|
|
263
245
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
264
246
|
{ name: "fill", value: "currentColor" },
|
|
265
247
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
266
248
|
p ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
267
249
|
], a = p ? `<title>${p}</title>` : "";
|
|
268
|
-
return `<svg ${
|
|
269
|
-
},
|
|
250
|
+
return `<svg ${At(n)}>${a}${t}</svg>`;
|
|
251
|
+
}, Mt = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), H = ({ svg: t, allyTitle: p, className: n, size: a = Pt, ...i }) => {
|
|
270
252
|
const r = Ct({
|
|
271
|
-
content:
|
|
253
|
+
content: Mt(t.svg),
|
|
272
254
|
title: p
|
|
273
|
-
}), e =
|
|
255
|
+
}), e = Ot(sr, `${sr}--${a}`, n);
|
|
274
256
|
return /* @__PURE__ */ s("span", { className: e, dangerouslySetInnerHTML: { __html: r }, ...i });
|
|
275
257
|
};
|
|
276
258
|
H.displayName = "Icon";
|
|
277
|
-
const
|
|
259
|
+
const kt = {
|
|
278
260
|
name: "password-invisible",
|
|
279
261
|
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>',
|
|
280
262
|
keywords: ["password-invisible"],
|
|
281
263
|
category: "action"
|
|
282
|
-
}, Tr = (t) => /* @__PURE__ */ s(H, { ...t, svg:
|
|
264
|
+
}, Tr = (t) => /* @__PURE__ */ s(H, { ...t, svg: kt });
|
|
283
265
|
Tr.displayName = "IconPasswordInvisible";
|
|
284
|
-
const
|
|
266
|
+
const Rt = {
|
|
285
267
|
name: "password-visible",
|
|
286
268
|
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>',
|
|
287
269
|
keywords: ["password-visible"],
|
|
288
270
|
category: "action"
|
|
289
|
-
}, Wr = (t) => /* @__PURE__ */ s(H, { ...t, svg:
|
|
271
|
+
}, Wr = (t) => /* @__PURE__ */ s(H, { ...t, svg: Rt });
|
|
290
272
|
Wr.displayName = "IconPasswordVisible";
|
|
291
|
-
const
|
|
273
|
+
const qt = {
|
|
292
274
|
LG: "lg"
|
|
293
275
|
};
|
|
294
|
-
function
|
|
276
|
+
function zt(t) {
|
|
295
277
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
296
278
|
}
|
|
297
|
-
var or = { exports: {} };
|
|
298
|
-
|
|
299
|
-
Copyright (c) 2018 Jed Watson.
|
|
300
|
-
Licensed under the MIT License (MIT), see
|
|
301
|
-
http://jedwatson.github.io/classnames
|
|
302
|
-
*/
|
|
303
|
-
var lr;
|
|
304
|
-
function It() {
|
|
279
|
+
var or = { exports: {} }, lr;
|
|
280
|
+
function Et() {
|
|
305
281
|
return lr || (lr = 1, (function(t) {
|
|
306
282
|
(function() {
|
|
307
283
|
var p = {}.hasOwnProperty;
|
|
@@ -333,25 +309,25 @@ function It() {
|
|
|
333
309
|
})();
|
|
334
310
|
})(or)), or.exports;
|
|
335
311
|
}
|
|
336
|
-
var
|
|
337
|
-
const
|
|
312
|
+
var It = Et();
|
|
313
|
+
const Dt = /* @__PURE__ */ zt(It), Bt = "_rotate_12t9p_1", Lt = "_dash_12t9p_1", Tt = {
|
|
338
314
|
"purpur-spinner": "_purpur-spinner_12t9p_2",
|
|
339
|
-
rotate:
|
|
315
|
+
rotate: Bt,
|
|
340
316
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
|
|
341
317
|
"purpur-spinner--xs": "_purpur-spinner--xs_12t9p_10",
|
|
342
318
|
"purpur-spinner--sm": "_purpur-spinner--sm_12t9p_14",
|
|
343
319
|
"purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
|
|
344
320
|
"purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
|
|
345
321
|
"purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
|
|
346
|
-
dash:
|
|
322
|
+
dash: Lt,
|
|
347
323
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
|
|
348
324
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
|
|
349
|
-
}, cr =
|
|
325
|
+
}, cr = Dt.bind(Tt), A = "purpur-spinner", Wt = {
|
|
350
326
|
SM: "sm"
|
|
351
327
|
}, Zr = ({
|
|
352
328
|
disabled: t = !1,
|
|
353
329
|
negative: p = !1,
|
|
354
|
-
size: n =
|
|
330
|
+
size: n = Wt.SM,
|
|
355
331
|
className: a,
|
|
356
332
|
...i
|
|
357
333
|
}) => /* @__PURE__ */ s("div", { className: cr(A, `${A}--${n}`, a), ...i, children: /* @__PURE__ */ s("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ s(
|
|
@@ -367,17 +343,11 @@ const Bt = /* @__PURE__ */ Et(Dt), Lt = "_rotate_12t9p_1", Tt = "_dash_12t9p_1",
|
|
|
367
343
|
}
|
|
368
344
|
) }) });
|
|
369
345
|
Zr.displayName = "Spinner";
|
|
370
|
-
function
|
|
346
|
+
function Zt(t) {
|
|
371
347
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
372
348
|
}
|
|
373
|
-
var _r = { exports: {} };
|
|
374
|
-
|
|
375
|
-
Copyright (c) 2018 Jed Watson.
|
|
376
|
-
Licensed under the MIT License (MIT), see
|
|
377
|
-
http://jedwatson.github.io/classnames
|
|
378
|
-
*/
|
|
379
|
-
var dr;
|
|
380
|
-
function Ft() {
|
|
349
|
+
var _r = { exports: {} }, dr;
|
|
350
|
+
function Gt() {
|
|
381
351
|
return dr || (dr = 1, (function(t) {
|
|
382
352
|
(function() {
|
|
383
353
|
var p = {}.hasOwnProperty;
|
|
@@ -409,8 +379,8 @@ function Ft() {
|
|
|
409
379
|
})();
|
|
410
380
|
})(_r)), _r.exports;
|
|
411
381
|
}
|
|
412
|
-
var
|
|
413
|
-
const
|
|
382
|
+
var Ft = Gt();
|
|
383
|
+
const Vt = /* @__PURE__ */ Zt(Ft), Ht = {
|
|
414
384
|
"purpur-button": "_purpur-button_10jh0_1",
|
|
415
385
|
"purpur-button--xs": "_purpur-button--xs_10jh0_22",
|
|
416
386
|
"purpur-button--icon-only": "_purpur-button--icon-only_10jh0_25",
|
|
@@ -433,7 +403,7 @@ const Ht = /* @__PURE__ */ Gt(Vt), Kt = {
|
|
|
433
403
|
"purpur-button--text-negative": "_purpur-button--text-negative_10jh0_185",
|
|
434
404
|
"purpur-button--text": "_purpur-button--text_10jh0_185",
|
|
435
405
|
"purpur-button__spinner": "_purpur-button__spinner_10jh0_235"
|
|
436
|
-
}, fr =
|
|
406
|
+
}, fr = Vt.bind(Ht), S = "purpur-button", Gr = O(
|
|
437
407
|
({
|
|
438
408
|
children: t,
|
|
439
409
|
className: p,
|
|
@@ -450,26 +420,26 @@ const Ht = /* @__PURE__ */ Gt(Vt), Kt = {
|
|
|
450
420
|
}, h) => {
|
|
451
421
|
if (i && o === "destructive")
|
|
452
422
|
return null;
|
|
453
|
-
const
|
|
423
|
+
const b = fr(
|
|
454
424
|
[
|
|
455
|
-
|
|
456
|
-
`${
|
|
457
|
-
`${
|
|
425
|
+
S,
|
|
426
|
+
`${S}--${e ? `${o}-negative` : o}`,
|
|
427
|
+
`${S}--${_}`
|
|
458
428
|
],
|
|
459
429
|
{
|
|
460
|
-
[`${
|
|
461
|
-
[`${
|
|
462
|
-
[`${
|
|
463
|
-
[`${
|
|
430
|
+
[`${S}--icon-only`]: i,
|
|
431
|
+
[`${S}--negative`]: e,
|
|
432
|
+
[`${S}--full-width`]: a,
|
|
433
|
+
[`${S}--disabled`]: n || r
|
|
464
434
|
},
|
|
465
435
|
p
|
|
466
|
-
), c = (
|
|
467
|
-
n || r ?
|
|
436
|
+
), c = (j) => {
|
|
437
|
+
n || r ? j.preventDefault() : u && u(j);
|
|
468
438
|
}, m = !!l["aria-disabled"] || n || r;
|
|
469
439
|
return /* @__PURE__ */ v(
|
|
470
440
|
"button",
|
|
471
441
|
{
|
|
472
|
-
className:
|
|
442
|
+
className: b,
|
|
473
443
|
type: f,
|
|
474
444
|
ref: h,
|
|
475
445
|
"aria-disabled": m,
|
|
@@ -479,10 +449,10 @@ const Ht = /* @__PURE__ */ Gt(Vt), Kt = {
|
|
|
479
449
|
r && /* @__PURE__ */ s(
|
|
480
450
|
Zr,
|
|
481
451
|
{
|
|
482
|
-
size: _ ===
|
|
452
|
+
size: _ === qt.LG ? "xs" : "xxs",
|
|
483
453
|
negative: e,
|
|
484
454
|
disabled: m,
|
|
485
|
-
className: fr(`${
|
|
455
|
+
className: fr(`${S}__spinner`)
|
|
486
456
|
}
|
|
487
457
|
),
|
|
488
458
|
" ",
|
|
@@ -493,17 +463,11 @@ const Ht = /* @__PURE__ */ Gt(Vt), Kt = {
|
|
|
493
463
|
}
|
|
494
464
|
);
|
|
495
465
|
Gr.displayName = "Button";
|
|
496
|
-
function
|
|
466
|
+
function Kt(t) {
|
|
497
467
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
498
468
|
}
|
|
499
|
-
var gr = { exports: {} };
|
|
500
|
-
|
|
501
|
-
Copyright (c) 2018 Jed Watson.
|
|
502
|
-
Licensed under the MIT License (MIT), see
|
|
503
|
-
http://jedwatson.github.io/classnames
|
|
504
|
-
*/
|
|
505
|
-
var hr;
|
|
506
|
-
function Xt() {
|
|
469
|
+
var gr = { exports: {} }, hr;
|
|
470
|
+
function Ut() {
|
|
507
471
|
return hr || (hr = 1, (function(t) {
|
|
508
472
|
(function() {
|
|
509
473
|
var p = {}.hasOwnProperty;
|
|
@@ -535,8 +499,8 @@ function Xt() {
|
|
|
535
499
|
})();
|
|
536
500
|
})(gr)), gr.exports;
|
|
537
501
|
}
|
|
538
|
-
var
|
|
539
|
-
const
|
|
502
|
+
var Xt = Ut();
|
|
503
|
+
const Yt = /* @__PURE__ */ Kt(Xt), Jt = {
|
|
540
504
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
541
505
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
542
506
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -544,39 +508,33 @@ const Jt = /* @__PURE__ */ Ut(Yt), Qt = {
|
|
|
544
508
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
545
509
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
546
510
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
547
|
-
},
|
|
511
|
+
}, Qt = Yt.bind(Jt), vr = "purpur-icon", re = "md", te = (t) => t.filter((p) => Object.keys(p).length >= 1).map((p) => `${p.name}="${p.value}"`).join(" "), ee = ({ content: t = "", title: p } = {}) => {
|
|
548
512
|
const n = [
|
|
549
513
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
550
514
|
{ name: "fill", value: "currentColor" },
|
|
551
515
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
552
516
|
p ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
553
517
|
], a = p ? `<title>${p}</title>` : "";
|
|
554
|
-
return `<svg ${
|
|
555
|
-
},
|
|
556
|
-
const r =
|
|
557
|
-
content:
|
|
518
|
+
return `<svg ${te(n)}>${a}${t}</svg>`;
|
|
519
|
+
}, ne = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Fr = ({ svg: t, allyTitle: p, className: n, size: a = re, ...i }) => {
|
|
520
|
+
const r = ee({
|
|
521
|
+
content: ne(t.svg),
|
|
558
522
|
title: p
|
|
559
|
-
}), e =
|
|
523
|
+
}), e = Qt(vr, `${vr}--${a}`, n);
|
|
560
524
|
return /* @__PURE__ */ s("span", { className: e, dangerouslySetInnerHTML: { __html: r }, ...i });
|
|
561
525
|
};
|
|
562
526
|
Fr.displayName = "Icon";
|
|
563
|
-
const
|
|
527
|
+
const ue = {
|
|
564
528
|
name: "error-filled",
|
|
565
529
|
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>',
|
|
566
530
|
keywords: ["error-filled"],
|
|
567
531
|
category: "status"
|
|
568
532
|
};
|
|
569
|
-
function
|
|
533
|
+
function pe(t) {
|
|
570
534
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
571
535
|
}
|
|
572
|
-
var mr = { exports: {} };
|
|
573
|
-
|
|
574
|
-
Copyright (c) 2018 Jed Watson.
|
|
575
|
-
Licensed under the MIT License (MIT), see
|
|
576
|
-
http://jedwatson.github.io/classnames
|
|
577
|
-
*/
|
|
578
|
-
var br;
|
|
579
|
-
function ae() {
|
|
536
|
+
var mr = { exports: {} }, br;
|
|
537
|
+
function ie() {
|
|
580
538
|
return br || (br = 1, (function(t) {
|
|
581
539
|
(function() {
|
|
582
540
|
var p = {}.hasOwnProperty;
|
|
@@ -608,12 +566,12 @@ function ae() {
|
|
|
608
566
|
})();
|
|
609
567
|
})(mr)), mr.exports;
|
|
610
568
|
}
|
|
611
|
-
var
|
|
612
|
-
const
|
|
569
|
+
var ae = ie();
|
|
570
|
+
const se = /* @__PURE__ */ pe(ae), oe = {
|
|
613
571
|
"purpur-field-error-text": "_purpur-field-error-text_u1cy2_1",
|
|
614
572
|
"purpur-field-error-text--negative": "_purpur-field-error-text--negative_u1cy2_11",
|
|
615
573
|
"purpur-field-error-text__icon": "_purpur-field-error-text__icon_u1cy2_14"
|
|
616
|
-
}, yr =
|
|
574
|
+
}, yr = se.bind(oe), W = "purpur-field-error-text", le = ({
|
|
617
575
|
children: t,
|
|
618
576
|
className: p,
|
|
619
577
|
negative: n = !1,
|
|
@@ -629,22 +587,16 @@ const oe = /* @__PURE__ */ ie(se), le = {
|
|
|
629
587
|
"aria-relevant": a,
|
|
630
588
|
...i,
|
|
631
589
|
children: [
|
|
632
|
-
/* @__PURE__ */ s(Fr, { svg:
|
|
590
|
+
/* @__PURE__ */ s(Fr, { svg: ue, size: "xs", className: yr(`${W}__icon`) }),
|
|
633
591
|
t
|
|
634
592
|
]
|
|
635
593
|
}
|
|
636
594
|
);
|
|
637
|
-
function
|
|
595
|
+
function ce(t) {
|
|
638
596
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
639
597
|
}
|
|
640
|
-
var xr = { exports: {} };
|
|
641
|
-
|
|
642
|
-
Copyright (c) 2018 Jed Watson.
|
|
643
|
-
Licensed under the MIT License (MIT), see
|
|
644
|
-
http://jedwatson.github.io/classnames
|
|
645
|
-
*/
|
|
646
|
-
var wr;
|
|
647
|
-
function de() {
|
|
598
|
+
var xr = { exports: {} }, wr;
|
|
599
|
+
function _e() {
|
|
648
600
|
return wr || (wr = 1, (function(t) {
|
|
649
601
|
(function() {
|
|
650
602
|
var p = {}.hasOwnProperty;
|
|
@@ -676,12 +628,12 @@ function de() {
|
|
|
676
628
|
})();
|
|
677
629
|
})(xr)), xr.exports;
|
|
678
630
|
}
|
|
679
|
-
var
|
|
680
|
-
const
|
|
631
|
+
var de = _e();
|
|
632
|
+
const fe = /* @__PURE__ */ ce(de), ge = {
|
|
681
633
|
"purpur-field-helper-text": "_purpur-field-helper-text_11nsh_1",
|
|
682
634
|
"purpur-field-helper-text--disabled": "_purpur-field-helper-text--disabled_11nsh_9",
|
|
683
635
|
"purpur-field-helper-text--negative": "_purpur-field-helper-text--negative_11nsh_12"
|
|
684
|
-
},
|
|
636
|
+
}, he = fe.bind(ge), Z = "purpur-field-helper-text", ve = ({
|
|
685
637
|
children: t,
|
|
686
638
|
className: p,
|
|
687
639
|
disabled: n,
|
|
@@ -689,23 +641,17 @@ const ge = /* @__PURE__ */ _e(fe), he = {
|
|
|
689
641
|
negative: i,
|
|
690
642
|
...r
|
|
691
643
|
}) => {
|
|
692
|
-
const e =
|
|
644
|
+
const e = he(p, Z, {
|
|
693
645
|
[`${Z}--disabled`]: n,
|
|
694
646
|
[`${Z}--negative`]: i
|
|
695
647
|
});
|
|
696
648
|
return /* @__PURE__ */ s("span", { id: a, className: e, ...r, children: t });
|
|
697
649
|
};
|
|
698
|
-
function
|
|
650
|
+
function me(t) {
|
|
699
651
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
700
652
|
}
|
|
701
|
-
var $r = { exports: {} };
|
|
702
|
-
|
|
703
|
-
Copyright (c) 2018 Jed Watson.
|
|
704
|
-
Licensed under the MIT License (MIT), see
|
|
705
|
-
http://jedwatson.github.io/classnames
|
|
706
|
-
*/
|
|
707
|
-
var Sr;
|
|
708
|
-
function ye() {
|
|
653
|
+
var $r = { exports: {} }, Sr;
|
|
654
|
+
function be() {
|
|
709
655
|
return Sr || (Sr = 1, (function(t) {
|
|
710
656
|
(function() {
|
|
711
657
|
var p = {}.hasOwnProperty;
|
|
@@ -737,8 +683,8 @@ function ye() {
|
|
|
737
683
|
})();
|
|
738
684
|
})($r)), $r.exports;
|
|
739
685
|
}
|
|
740
|
-
var
|
|
741
|
-
const
|
|
686
|
+
var ye = be();
|
|
687
|
+
const xe = /* @__PURE__ */ me(ye), we = {
|
|
742
688
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
743
689
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
744
690
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -746,35 +692,35 @@ const we = /* @__PURE__ */ be(xe), $e = {
|
|
|
746
692
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
747
693
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
748
694
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
749
|
-
},
|
|
695
|
+
}, $e = xe.bind(we), jr = "purpur-icon", Se = "md", je = (t) => t.filter((p) => Object.keys(p).length >= 1).map((p) => `${p.name}="${p.value}"`).join(" "), Ne = ({ content: t = "", title: p } = {}) => {
|
|
750
696
|
const n = [
|
|
751
697
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
752
698
|
{ name: "fill", value: "currentColor" },
|
|
753
699
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
754
700
|
p ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
755
701
|
], a = p ? `<title>${p}</title>` : "";
|
|
756
|
-
return `<svg ${
|
|
757
|
-
},
|
|
758
|
-
const r =
|
|
759
|
-
content:
|
|
702
|
+
return `<svg ${je(n)}>${a}${t}</svg>`;
|
|
703
|
+
}, Oe = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), K = ({ svg: t, allyTitle: p, className: n, size: a = Se, ...i }) => {
|
|
704
|
+
const r = Ne({
|
|
705
|
+
content: Oe(t.svg),
|
|
760
706
|
title: p
|
|
761
|
-
}), e =
|
|
707
|
+
}), e = $e(jr, `${jr}--${a}`, n);
|
|
762
708
|
return /* @__PURE__ */ s("span", { className: e, dangerouslySetInnerHTML: { __html: r }, ...i });
|
|
763
709
|
};
|
|
764
710
|
K.displayName = "Icon";
|
|
765
|
-
const
|
|
711
|
+
const Pe = {
|
|
766
712
|
name: "check-circle-filled",
|
|
767
713
|
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>',
|
|
768
714
|
keywords: ["check-circle-filled"],
|
|
769
715
|
category: "status"
|
|
770
|
-
}, Vr = (t) => /* @__PURE__ */ s(K, { ...t, svg:
|
|
716
|
+
}, Vr = (t) => /* @__PURE__ */ s(K, { ...t, svg: Pe });
|
|
771
717
|
Vr.displayName = "IconCheckCircleFilled";
|
|
772
|
-
const
|
|
718
|
+
const Ae = {
|
|
773
719
|
name: "close",
|
|
774
720
|
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>',
|
|
775
721
|
keywords: ["close"],
|
|
776
722
|
category: "utility"
|
|
777
|
-
}, Hr = (t) => /* @__PURE__ */ s(K, { ...t, svg:
|
|
723
|
+
}, Hr = (t) => /* @__PURE__ */ s(K, { ...t, svg: Ae });
|
|
778
724
|
Hr.displayName = "IconClose";
|
|
779
725
|
function Nr(t, p) {
|
|
780
726
|
if (typeof t == "function")
|
|
@@ -797,19 +743,19 @@ function Ce(...t) {
|
|
|
797
743
|
};
|
|
798
744
|
};
|
|
799
745
|
}
|
|
800
|
-
var
|
|
801
|
-
function
|
|
746
|
+
var Me = Symbol.for("react.lazy"), I = d[" use ".trim().toString()];
|
|
747
|
+
function ke(t) {
|
|
802
748
|
return typeof t == "object" && t !== null && "then" in t;
|
|
803
749
|
}
|
|
804
750
|
function Kr(t) {
|
|
805
|
-
return t != null && typeof t == "object" && "$$typeof" in t && t.$$typeof ===
|
|
751
|
+
return t != null && typeof t == "object" && "$$typeof" in t && t.$$typeof === Me && "_payload" in t && ke(t._payload);
|
|
806
752
|
}
|
|
807
753
|
// @__NO_SIDE_EFFECTS__
|
|
808
|
-
function
|
|
809
|
-
const p = /* @__PURE__ */
|
|
754
|
+
function Re(t) {
|
|
755
|
+
const p = /* @__PURE__ */ qe(t), n = d.forwardRef((a, i) => {
|
|
810
756
|
let { children: r, ...e } = a;
|
|
811
757
|
Kr(r) && typeof I == "function" && (r = I(r._payload));
|
|
812
|
-
const u = d.Children.toArray(r), _ = u.find(
|
|
758
|
+
const u = d.Children.toArray(r), _ = u.find(Ee);
|
|
813
759
|
if (_) {
|
|
814
760
|
const o = _.props.children, f = u.map((l) => l === _ ? d.Children.count(o) > 1 ? d.Children.only(null) : d.isValidElement(o) ? o.props.children : null : l);
|
|
815
761
|
return /* @__PURE__ */ s(p, { ...e, ref: i, children: d.isValidElement(o) ? d.cloneElement(o, void 0, f) : null });
|
|
@@ -819,22 +765,22 @@ function qe(t) {
|
|
|
819
765
|
return n.displayName = `${t}.Slot`, n;
|
|
820
766
|
}
|
|
821
767
|
// @__NO_SIDE_EFFECTS__
|
|
822
|
-
function
|
|
768
|
+
function qe(t) {
|
|
823
769
|
const p = d.forwardRef((n, a) => {
|
|
824
770
|
let { children: i, ...r } = n;
|
|
825
771
|
if (Kr(i) && typeof I == "function" && (i = I(i._payload)), d.isValidElement(i)) {
|
|
826
|
-
const e =
|
|
772
|
+
const e = De(i), u = Ie(r, i.props);
|
|
827
773
|
return i.type !== d.Fragment && (u.ref = a ? Ce(a, e) : e), d.cloneElement(i, u);
|
|
828
774
|
}
|
|
829
775
|
return d.Children.count(i) > 1 ? d.Children.only(null) : null;
|
|
830
776
|
});
|
|
831
777
|
return p.displayName = `${t}.SlotClone`, p;
|
|
832
778
|
}
|
|
833
|
-
var
|
|
834
|
-
function
|
|
835
|
-
return d.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId ===
|
|
779
|
+
var ze = Symbol("radix.slottable");
|
|
780
|
+
function Ee(t) {
|
|
781
|
+
return d.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === ze;
|
|
836
782
|
}
|
|
837
|
-
function
|
|
783
|
+
function Ie(t, p) {
|
|
838
784
|
const n = { ...p };
|
|
839
785
|
for (const a in p) {
|
|
840
786
|
const i = t[a], r = p[a];
|
|
@@ -845,12 +791,11 @@ function De(t, p) {
|
|
|
845
791
|
}
|
|
846
792
|
return { ...t, ...n };
|
|
847
793
|
}
|
|
848
|
-
function
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
return i ? t.ref : (a = (n = Object.getOwnPropertyDescriptor(t, "ref")) == null ? void 0 : n.get, i = a && "isReactWarning" in a && a.isReactWarning, i ? t.props.ref : t.props.ref || t.ref);
|
|
794
|
+
function De(t) {
|
|
795
|
+
let p = Object.getOwnPropertyDescriptor(t.props, "ref")?.get, n = p && "isReactWarning" in p && p.isReactWarning;
|
|
796
|
+
return n ? t.ref : (p = Object.getOwnPropertyDescriptor(t, "ref")?.get, n = p && "isReactWarning" in p && p.isReactWarning, n ? t.props.ref : t.props.ref || t.ref);
|
|
852
797
|
}
|
|
853
|
-
var
|
|
798
|
+
var Be = [
|
|
854
799
|
"a",
|
|
855
800
|
"button",
|
|
856
801
|
"div",
|
|
@@ -868,36 +813,29 @@ var Le = [
|
|
|
868
813
|
"span",
|
|
869
814
|
"svg",
|
|
870
815
|
"ul"
|
|
871
|
-
],
|
|
872
|
-
const n = /* @__PURE__ */
|
|
816
|
+
], Le = Be.reduce((t, p) => {
|
|
817
|
+
const n = /* @__PURE__ */ Re(`Primitive.${p}`), a = d.forwardRef((i, r) => {
|
|
873
818
|
const { asChild: e, ...u } = i, _ = e ? n : p;
|
|
874
819
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ s(_, { ...u, ref: r });
|
|
875
820
|
});
|
|
876
821
|
return a.displayName = `Primitive.${p}`, { ...t, [p]: a };
|
|
877
|
-
}, {}),
|
|
878
|
-
|
|
822
|
+
}, {}), Te = "Label", Ur = d.forwardRef((t, p) => /* @__PURE__ */ s(
|
|
823
|
+
Le.label,
|
|
879
824
|
{
|
|
880
825
|
...t,
|
|
881
826
|
ref: p,
|
|
882
827
|
onMouseDown: (n) => {
|
|
883
|
-
|
|
884
|
-
n.target.closest("button, input, select, textarea") || ((a = t.onMouseDown) == null || a.call(t, n), !n.defaultPrevented && n.detail > 1 && n.preventDefault());
|
|
828
|
+
n.target.closest("button, input, select, textarea") || (t.onMouseDown?.(n), !n.defaultPrevented && n.detail > 1 && n.preventDefault());
|
|
885
829
|
}
|
|
886
830
|
}
|
|
887
831
|
));
|
|
888
|
-
Ur.displayName =
|
|
889
|
-
var
|
|
890
|
-
function
|
|
832
|
+
Ur.displayName = Te;
|
|
833
|
+
var We = Ur;
|
|
834
|
+
function Ze(t) {
|
|
891
835
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
892
836
|
}
|
|
893
|
-
var Or = { exports: {} };
|
|
894
|
-
|
|
895
|
-
Copyright (c) 2018 Jed Watson.
|
|
896
|
-
Licensed under the MIT License (MIT), see
|
|
897
|
-
http://jedwatson.github.io/classnames
|
|
898
|
-
*/
|
|
899
|
-
var Pr;
|
|
900
|
-
function Fe() {
|
|
837
|
+
var Or = { exports: {} }, Pr;
|
|
838
|
+
function Ge() {
|
|
901
839
|
return Pr || (Pr = 1, (function(t) {
|
|
902
840
|
(function() {
|
|
903
841
|
var p = {}.hasOwnProperty;
|
|
@@ -929,36 +867,30 @@ function Fe() {
|
|
|
929
867
|
})();
|
|
930
868
|
})(Or)), Or.exports;
|
|
931
869
|
}
|
|
932
|
-
var
|
|
933
|
-
const
|
|
870
|
+
var Fe = Ge();
|
|
871
|
+
const Ve = /* @__PURE__ */ Ze(Fe), He = {
|
|
934
872
|
"purpur-label": "_purpur-label_1x80u_1",
|
|
935
873
|
"purpur-label--negative": "_purpur-label--negative_1x80u_8",
|
|
936
874
|
"purpur-label--disabled": "_purpur-label--disabled_1x80u_11"
|
|
937
|
-
},
|
|
875
|
+
}, Ke = Ve.bind(He), G = "purpur-label", Ue = ({
|
|
938
876
|
children: t,
|
|
939
877
|
className: p,
|
|
940
878
|
disabled: n,
|
|
941
879
|
negative: a = !1,
|
|
942
880
|
...i
|
|
943
881
|
}) => {
|
|
944
|
-
const r =
|
|
882
|
+
const r = Ke(p, G, {
|
|
945
883
|
[`${G}--disabled`]: n,
|
|
946
884
|
[`${G}--negative`]: a
|
|
947
885
|
});
|
|
948
|
-
return /* @__PURE__ */ s(
|
|
886
|
+
return /* @__PURE__ */ s(We, { className: r, ...i, children: t });
|
|
949
887
|
};
|
|
950
|
-
function
|
|
888
|
+
function Xe(t) {
|
|
951
889
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
952
890
|
}
|
|
953
|
-
var Ar = { exports: {} };
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
Licensed under the MIT License (MIT), see
|
|
957
|
-
http://jedwatson.github.io/classnames
|
|
958
|
-
*/
|
|
959
|
-
var Mr;
|
|
960
|
-
function Je() {
|
|
961
|
-
return Mr || (Mr = 1, (function(t) {
|
|
891
|
+
var Ar = { exports: {} }, Cr;
|
|
892
|
+
function Ye() {
|
|
893
|
+
return Cr || (Cr = 1, (function(t) {
|
|
962
894
|
(function() {
|
|
963
895
|
var p = {}.hasOwnProperty;
|
|
964
896
|
function n() {
|
|
@@ -989,33 +921,33 @@ function Je() {
|
|
|
989
921
|
})();
|
|
990
922
|
})(Ar)), Ar.exports;
|
|
991
923
|
}
|
|
992
|
-
var
|
|
993
|
-
const
|
|
924
|
+
var Je = Ye();
|
|
925
|
+
const Qe = /* @__PURE__ */ Xe(Je), rn = "_rotate_12t9p_1", tn = "_dash_12t9p_1", en = {
|
|
994
926
|
"purpur-spinner": "_purpur-spinner_12t9p_2",
|
|
995
|
-
rotate:
|
|
927
|
+
rotate: rn,
|
|
996
928
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
|
|
997
929
|
"purpur-spinner--xs": "_purpur-spinner--xs_12t9p_10",
|
|
998
930
|
"purpur-spinner--sm": "_purpur-spinner--sm_12t9p_14",
|
|
999
931
|
"purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
|
|
1000
932
|
"purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
|
|
1001
933
|
"purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
|
|
1002
|
-
dash:
|
|
934
|
+
dash: tn,
|
|
1003
935
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
|
|
1004
936
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
|
|
1005
|
-
},
|
|
937
|
+
}, Mr = Qe.bind(en), C = "purpur-spinner", nn = {
|
|
1006
938
|
SM: "sm"
|
|
1007
939
|
}, Xr = ({
|
|
1008
940
|
disabled: t = !1,
|
|
1009
941
|
negative: p = !1,
|
|
1010
|
-
size: n =
|
|
942
|
+
size: n = nn.SM,
|
|
1011
943
|
className: a,
|
|
1012
944
|
...i
|
|
1013
|
-
}) => /* @__PURE__ */ s("div", { className:
|
|
945
|
+
}) => /* @__PURE__ */ s("div", { className: Mr(C, `${C}--${n}`, a), ...i, children: /* @__PURE__ */ s("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ s(
|
|
1014
946
|
"circle",
|
|
1015
947
|
{
|
|
1016
|
-
className:
|
|
1017
|
-
[`${
|
|
1018
|
-
[`${
|
|
948
|
+
className: Mr(`${C}__circle`, {
|
|
949
|
+
[`${C}__circle--disabled`]: t,
|
|
950
|
+
[`${C}__circle--negative`]: p
|
|
1019
951
|
}),
|
|
1020
952
|
cx: "25",
|
|
1021
953
|
cy: "25",
|
|
@@ -1023,17 +955,11 @@ const rn = /* @__PURE__ */ Ye(Qe), tn = "_rotate_12t9p_1", en = "_dash_12t9p_1",
|
|
|
1023
955
|
}
|
|
1024
956
|
) }) });
|
|
1025
957
|
Xr.displayName = "Spinner";
|
|
1026
|
-
function
|
|
958
|
+
function un(t) {
|
|
1027
959
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1028
960
|
}
|
|
1029
|
-
var kr = { exports: {} };
|
|
1030
|
-
|
|
1031
|
-
Copyright (c) 2018 Jed Watson.
|
|
1032
|
-
Licensed under the MIT License (MIT), see
|
|
1033
|
-
http://jedwatson.github.io/classnames
|
|
1034
|
-
*/
|
|
1035
|
-
var Rr;
|
|
1036
|
-
function an() {
|
|
961
|
+
var kr = { exports: {} }, Rr;
|
|
962
|
+
function pn() {
|
|
1037
963
|
return Rr || (Rr = 1, (function(t) {
|
|
1038
964
|
(function() {
|
|
1039
965
|
var p = {}.hasOwnProperty;
|
|
@@ -1065,8 +991,8 @@ function an() {
|
|
|
1065
991
|
})();
|
|
1066
992
|
})(kr)), kr.exports;
|
|
1067
993
|
}
|
|
1068
|
-
var
|
|
1069
|
-
const
|
|
994
|
+
var an = pn();
|
|
995
|
+
const sn = /* @__PURE__ */ un(an), on = {
|
|
1070
996
|
"purpur-text-field": "_purpur-text-field_3gl1k_1",
|
|
1071
997
|
"purpur-text-field__label": "_purpur-text-field__label_3gl1k_7",
|
|
1072
998
|
"purpur-text-field__label-text": "_purpur-text-field__label-text_3gl1k_12",
|
|
@@ -1083,7 +1009,7 @@ const on = /* @__PURE__ */ pn(sn), ln = {
|
|
|
1083
1009
|
"purpur-text-field__input--error": "_purpur-text-field__input--error_3gl1k_94",
|
|
1084
1010
|
"purpur-text-field__adornment-container": "_purpur-text-field__adornment-container_3gl1k_106",
|
|
1085
1011
|
"purpur-text-field__valid-icon": "_purpur-text-field__valid-icon_3gl1k_111"
|
|
1086
|
-
},
|
|
1012
|
+
}, ln = (t) => ut(t), w = sn.bind(on), g = "purpur-text-field", Yr = O(
|
|
1087
1013
|
({
|
|
1088
1014
|
["data-testid"]: t,
|
|
1089
1015
|
className: p,
|
|
@@ -1098,22 +1024,20 @@ const on = /* @__PURE__ */ pn(sn), ln = {
|
|
|
1098
1024
|
loading: f = !1,
|
|
1099
1025
|
onClear: l,
|
|
1100
1026
|
startAdornment: h,
|
|
1101
|
-
valid:
|
|
1027
|
+
valid: b = !1,
|
|
1102
1028
|
...c
|
|
1103
1029
|
}, m) => {
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
var b;
|
|
1109
|
-
l == null || l(), (b = Q.current) == null || b.focus();
|
|
1030
|
+
const j = nt(), D = c.id ?? j, y = (x) => t ? `${t}-${x}` : void 0, Y = b && !e, B = u ? `${D}-helper-text` : void 0, L = [h].filter((x) => !!x), J = (typeof c.value == "number" ? c.value !== void 0 : c.value?.length) && !c.disabled && !c.readOnly && !f && l && n, Q = ln(null), rt = (x) => {
|
|
1031
|
+
Q.current = x, typeof m == "function" ? m(x) : m && (m.current = x);
|
|
1032
|
+
}, tt = () => {
|
|
1033
|
+
l?.(), Q.current?.focus();
|
|
1110
1034
|
}, T = [
|
|
1111
1035
|
f && /* @__PURE__ */ s(
|
|
1112
1036
|
Xr,
|
|
1113
1037
|
{
|
|
1114
1038
|
disabled: c.disabled,
|
|
1115
1039
|
size: "xs",
|
|
1116
|
-
"data-testid":
|
|
1040
|
+
"data-testid": y("spinner")
|
|
1117
1041
|
},
|
|
1118
1042
|
"spinner"
|
|
1119
1043
|
),
|
|
@@ -1121,10 +1045,10 @@ const on = /* @__PURE__ */ pn(sn), ln = {
|
|
|
1121
1045
|
Gr,
|
|
1122
1046
|
{
|
|
1123
1047
|
variant: "tertiary-purple",
|
|
1124
|
-
onClick:
|
|
1048
|
+
onClick: tt,
|
|
1125
1049
|
iconOnly: !0,
|
|
1126
1050
|
"aria-label": n ?? "",
|
|
1127
|
-
"data-testid":
|
|
1051
|
+
"data-testid": y("clear-button"),
|
|
1128
1052
|
tabIndex: -1,
|
|
1129
1053
|
children: /* @__PURE__ */ s(Hr, { size: "xs" })
|
|
1130
1054
|
},
|
|
@@ -1133,12 +1057,12 @@ const on = /* @__PURE__ */ pn(sn), ln = {
|
|
|
1133
1057
|
Y && /* @__PURE__ */ s(
|
|
1134
1058
|
Vr,
|
|
1135
1059
|
{
|
|
1136
|
-
"data-testid":
|
|
1060
|
+
"data-testid": y("valid-icon"),
|
|
1137
1061
|
className: w(`${g}__valid-icon`)
|
|
1138
1062
|
},
|
|
1139
1063
|
"valid-icon"
|
|
1140
1064
|
)
|
|
1141
|
-
].filter((
|
|
1065
|
+
].filter((x) => !!x), et = w(`${g}__input-container`, {
|
|
1142
1066
|
[`${g}__input-container--start-adornment`]: L.length,
|
|
1143
1067
|
[`${g}__input-container--end-adornment`]: T.length || r,
|
|
1144
1068
|
[`${g}__input-container--disabled`]: c.disabled,
|
|
@@ -1147,11 +1071,11 @@ const on = /* @__PURE__ */ pn(sn), ln = {
|
|
|
1147
1071
|
});
|
|
1148
1072
|
return /* @__PURE__ */ v("div", { className: w(p, g), children: [
|
|
1149
1073
|
o && /* @__PURE__ */ v(
|
|
1150
|
-
|
|
1074
|
+
Ue,
|
|
1151
1075
|
{
|
|
1152
1076
|
htmlFor: D,
|
|
1153
1077
|
className: w(`${g}__label`),
|
|
1154
|
-
"data-testid":
|
|
1078
|
+
"data-testid": y("label"),
|
|
1155
1079
|
disabled: c.disabled,
|
|
1156
1080
|
children: [
|
|
1157
1081
|
c.required && !_ && /* @__PURE__ */ s("span", { "aria-hidden": !0, children: "*" }),
|
|
@@ -1161,11 +1085,11 @@ const on = /* @__PURE__ */ pn(sn), ln = {
|
|
|
1161
1085
|
),
|
|
1162
1086
|
/* @__PURE__ */ v("div", { className: w(`${g}__field-row`), children: [
|
|
1163
1087
|
!!a && a,
|
|
1164
|
-
/* @__PURE__ */ v("div", { className:
|
|
1088
|
+
/* @__PURE__ */ v("div", { className: et, children: [
|
|
1165
1089
|
!!L.length && /* @__PURE__ */ s(
|
|
1166
1090
|
"div",
|
|
1167
1091
|
{
|
|
1168
|
-
"data-testid":
|
|
1092
|
+
"data-testid": y("start-adornments"),
|
|
1169
1093
|
className: w(`${g}__adornment-container`),
|
|
1170
1094
|
children: L
|
|
1171
1095
|
}
|
|
@@ -1175,8 +1099,8 @@ const on = /* @__PURE__ */ pn(sn), ln = {
|
|
|
1175
1099
|
{
|
|
1176
1100
|
...c,
|
|
1177
1101
|
id: D,
|
|
1178
|
-
ref:
|
|
1179
|
-
"data-testid":
|
|
1102
|
+
ref: rt,
|
|
1103
|
+
"data-testid": y("input"),
|
|
1180
1104
|
"aria-describedby": c["aria-describedby"] || B,
|
|
1181
1105
|
"aria-invalid": c["aria-invalid"] || !!e,
|
|
1182
1106
|
className: w([
|
|
@@ -1192,7 +1116,7 @@ const on = /* @__PURE__ */ pn(sn), ln = {
|
|
|
1192
1116
|
(!!T.length || r) && /* @__PURE__ */ v(
|
|
1193
1117
|
"div",
|
|
1194
1118
|
{
|
|
1195
|
-
"data-testid":
|
|
1119
|
+
"data-testid": y("end-adornments"),
|
|
1196
1120
|
className: w(`${g}__adornment-container`),
|
|
1197
1121
|
children: [
|
|
1198
1122
|
T,
|
|
@@ -1203,23 +1127,18 @@ const on = /* @__PURE__ */ pn(sn), ln = {
|
|
|
1203
1127
|
] }),
|
|
1204
1128
|
!!i && i
|
|
1205
1129
|
] }),
|
|
1206
|
-
B && /* @__PURE__ */ s(
|
|
1207
|
-
e && /* @__PURE__ */ s(
|
|
1130
|
+
B && /* @__PURE__ */ s(ve, { "data-testid": y("helper-text"), id: B, children: u }),
|
|
1131
|
+
e && /* @__PURE__ */ s(le, { "data-testid": y("error-text"), children: e })
|
|
1208
1132
|
] });
|
|
1209
1133
|
}
|
|
1210
1134
|
);
|
|
1211
1135
|
Yr.displayName = "TextField";
|
|
1212
|
-
function
|
|
1136
|
+
function cn(t) {
|
|
1213
1137
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1214
1138
|
}
|
|
1215
1139
|
var F = { exports: {} };
|
|
1216
|
-
/*!
|
|
1217
|
-
Copyright (c) 2018 Jed Watson.
|
|
1218
|
-
Licensed under the MIT License (MIT), see
|
|
1219
|
-
http://jedwatson.github.io/classnames
|
|
1220
|
-
*/
|
|
1221
1140
|
var qr;
|
|
1222
|
-
function
|
|
1141
|
+
function _n() {
|
|
1223
1142
|
return qr || (qr = 1, (function(t) {
|
|
1224
1143
|
(function() {
|
|
1225
1144
|
var p = {}.hasOwnProperty;
|
|
@@ -1251,28 +1170,22 @@ function dn() {
|
|
|
1251
1170
|
})();
|
|
1252
1171
|
})(F)), F.exports;
|
|
1253
1172
|
}
|
|
1254
|
-
var
|
|
1255
|
-
const U = /* @__PURE__ */
|
|
1173
|
+
var dn = _n();
|
|
1174
|
+
const U = /* @__PURE__ */ cn(dn), M = {
|
|
1256
1175
|
WEAK: "weak",
|
|
1257
1176
|
MEDIUM: "medium",
|
|
1258
1177
|
STRONG: "strong"
|
|
1259
1178
|
}, N = {
|
|
1260
1179
|
PASSWORD: "password",
|
|
1261
1180
|
TEXT: "text"
|
|
1262
|
-
},
|
|
1181
|
+
}, fn = {
|
|
1263
1182
|
"purpur-password-field": "_purpur-password-field_co7kv_1"
|
|
1264
1183
|
};
|
|
1265
|
-
function
|
|
1184
|
+
function gn(t) {
|
|
1266
1185
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1267
1186
|
}
|
|
1268
|
-
var zr = { exports: {} };
|
|
1269
|
-
|
|
1270
|
-
Copyright (c) 2018 Jed Watson.
|
|
1271
|
-
Licensed under the MIT License (MIT), see
|
|
1272
|
-
http://jedwatson.github.io/classnames
|
|
1273
|
-
*/
|
|
1274
|
-
var Er;
|
|
1275
|
-
function vn() {
|
|
1187
|
+
var zr = { exports: {} }, Er;
|
|
1188
|
+
function hn() {
|
|
1276
1189
|
return Er || (Er = 1, (function(t) {
|
|
1277
1190
|
(function() {
|
|
1278
1191
|
var p = {}.hasOwnProperty;
|
|
@@ -1304,8 +1217,8 @@ function vn() {
|
|
|
1304
1217
|
})();
|
|
1305
1218
|
})(zr)), zr.exports;
|
|
1306
1219
|
}
|
|
1307
|
-
var
|
|
1308
|
-
const
|
|
1220
|
+
var vn = hn();
|
|
1221
|
+
const mn = /* @__PURE__ */ gn(vn), bn = {
|
|
1309
1222
|
"purpur-paragraph": "_purpur-paragraph_1rh57_1",
|
|
1310
1223
|
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
|
|
1311
1224
|
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
|
|
@@ -1320,7 +1233,7 @@ const bn = /* @__PURE__ */ hn(mn), yn = {
|
|
|
1320
1233
|
"purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1rh57_60",
|
|
1321
1234
|
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
|
|
1322
1235
|
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
|
|
1323
|
-
},
|
|
1236
|
+
}, yn = mn.bind(bn), xn = {
|
|
1324
1237
|
PARAGRAPH100: "paragraph-100"
|
|
1325
1238
|
}, k = "purpur-paragraph", Jr = ({
|
|
1326
1239
|
children: t,
|
|
@@ -1328,10 +1241,10 @@ const bn = /* @__PURE__ */ hn(mn), yn = {
|
|
|
1328
1241
|
disabled: n,
|
|
1329
1242
|
enableHyphenation: a = !1,
|
|
1330
1243
|
negative: i = !1,
|
|
1331
|
-
variant: r =
|
|
1244
|
+
variant: r = xn.PARAGRAPH100,
|
|
1332
1245
|
...e
|
|
1333
1246
|
}) => {
|
|
1334
|
-
const u =
|
|
1247
|
+
const u = yn(p, k, `${k}--${r}`, {
|
|
1335
1248
|
[`${k}--hyphens`]: a,
|
|
1336
1249
|
[`${k}--disabled`]: n,
|
|
1337
1250
|
[`${k}--negative`]: i
|
|
@@ -1339,20 +1252,20 @@ const bn = /* @__PURE__ */ hn(mn), yn = {
|
|
|
1339
1252
|
return /* @__PURE__ */ s("p", { ...e, className: u, children: t });
|
|
1340
1253
|
};
|
|
1341
1254
|
Jr.displayName = "Paragraph";
|
|
1342
|
-
const
|
|
1255
|
+
const wn = {
|
|
1343
1256
|
"purpur-password-strength": "_purpur-password-strength_sa1ua_1",
|
|
1344
1257
|
"purpur-password-strength__indicator-container": "_purpur-password-strength__indicator-container_sa1ua_6",
|
|
1345
1258
|
"purpur-password-strength__password-strength-text--weak": "_purpur-password-strength__password-strength-text--weak_sa1ua_10",
|
|
1346
1259
|
"purpur-password-strength__password-strength-text--medium": "_purpur-password-strength__password-strength-text--medium_sa1ua_13",
|
|
1347
1260
|
"purpur-password-strength__password-strength-text--strong": "_purpur-password-strength__password-strength-text--strong_sa1ua_16",
|
|
1348
1261
|
"purpur-password-strength__password-strength-label": "_purpur-password-strength__password-strength-label_sa1ua_19"
|
|
1349
|
-
},
|
|
1262
|
+
}, $n = {
|
|
1350
1263
|
"purpur-password-strength-indicator": "_purpur-password-strength-indicator_1o6zr_1",
|
|
1351
1264
|
"purpur-password-strength-indicator--active": "_purpur-password-strength-indicator--active_1o6zr_7",
|
|
1352
1265
|
"purpur-password-strength-indicator--weak": "_purpur-password-strength-indicator--weak_1o6zr_7",
|
|
1353
1266
|
"purpur-password-strength-indicator--medium": "_purpur-password-strength-indicator--medium_1o6zr_10",
|
|
1354
1267
|
"purpur-password-strength-indicator--strong": "_purpur-password-strength-indicator--strong_1o6zr_13"
|
|
1355
|
-
},
|
|
1268
|
+
}, Sn = U.bind($n), V = "purpur-password-strength-indicator", E = O(
|
|
1356
1269
|
({
|
|
1357
1270
|
["data-testid"]: t = "password-strength-indicator",
|
|
1358
1271
|
active: p,
|
|
@@ -1360,7 +1273,7 @@ const $n = {
|
|
|
1360
1273
|
passwordStrength: a,
|
|
1361
1274
|
...i
|
|
1362
1275
|
}, r) => {
|
|
1363
|
-
const e =
|
|
1276
|
+
const e = Sn(
|
|
1364
1277
|
n,
|
|
1365
1278
|
V,
|
|
1366
1279
|
{ [`${V}--${a}`]: a },
|
|
@@ -1370,24 +1283,24 @@ const $n = {
|
|
|
1370
1283
|
}
|
|
1371
1284
|
);
|
|
1372
1285
|
E.displayName = "PasswordStrengthIndicator";
|
|
1373
|
-
const
|
|
1374
|
-
const [i, r] = z(0), [e, u] = z(), [_, o] = z(void 0), f =
|
|
1286
|
+
const jn = (t, p, n, a) => {
|
|
1287
|
+
const [i, r] = z(0), [e, u] = z(), [_, o] = z(void 0), f = pt(
|
|
1375
1288
|
() => ({
|
|
1376
|
-
0: [
|
|
1377
|
-
1: [
|
|
1378
|
-
2: [
|
|
1379
|
-
3: [
|
|
1380
|
-
4: [
|
|
1289
|
+
0: [M.WEAK, p],
|
|
1290
|
+
1: [M.WEAK, p],
|
|
1291
|
+
2: [M.MEDIUM, n],
|
|
1292
|
+
3: [M.STRONG, a],
|
|
1293
|
+
4: [M.STRONG, a]
|
|
1381
1294
|
}),
|
|
1382
1295
|
[p, n, a]
|
|
1383
1296
|
);
|
|
1384
|
-
return
|
|
1297
|
+
return it(() => {
|
|
1385
1298
|
(async () => {
|
|
1386
1299
|
if (!t)
|
|
1387
1300
|
r(0), u(void 0), o(void 0);
|
|
1388
1301
|
else {
|
|
1389
|
-
const { default: l } = await import("./main-
|
|
1390
|
-
r(h), u(
|
|
1302
|
+
const { default: l } = await import("./main-CrpoFq2s.mjs").then((m) => m.m), { score: h } = l(t), [b, c] = f[h];
|
|
1303
|
+
r(h), u(b), o(c);
|
|
1391
1304
|
}
|
|
1392
1305
|
})();
|
|
1393
1306
|
}, [t, f]), {
|
|
@@ -1395,7 +1308,7 @@ const Nn = (t, p, n, a) => {
|
|
|
1395
1308
|
passwordStrength: e,
|
|
1396
1309
|
currentPasswordStrengthText: _
|
|
1397
1310
|
};
|
|
1398
|
-
}, q = U.bind(
|
|
1311
|
+
}, q = U.bind(wn), R = "purpur-password-strength", X = O(
|
|
1399
1312
|
({
|
|
1400
1313
|
["data-testid"]: t = "password-strength",
|
|
1401
1314
|
className: p,
|
|
@@ -1406,7 +1319,7 @@ const Nn = (t, p, n, a) => {
|
|
|
1406
1319
|
strongText: e,
|
|
1407
1320
|
...u
|
|
1408
1321
|
}, _) => {
|
|
1409
|
-
const o = q(p, R), { score: f, passwordStrength: l, currentPasswordStrengthText: h } =
|
|
1322
|
+
const o = q(p, R), { score: f, passwordStrength: l, currentPasswordStrengthText: h } = jn(
|
|
1410
1323
|
n,
|
|
1411
1324
|
i,
|
|
1412
1325
|
r,
|
|
@@ -1457,7 +1370,7 @@ const Nn = (t, p, n, a) => {
|
|
|
1457
1370
|
}
|
|
1458
1371
|
);
|
|
1459
1372
|
X.displayName = "PasswordStrength";
|
|
1460
|
-
const Ir = U.bind(
|
|
1373
|
+
const Ir = U.bind(fn), Dr = "purpur-password-field", Qr = O(
|
|
1461
1374
|
({
|
|
1462
1375
|
["data-testid"]: t = "password-field",
|
|
1463
1376
|
children: p,
|
|
@@ -1468,10 +1381,10 @@ const Ir = U.bind(gn), Dr = "purpur-password-field", Qr = O(
|
|
|
1468
1381
|
...e
|
|
1469
1382
|
}, u) => {
|
|
1470
1383
|
const _ = Ir(n, Dr), [o, f] = z(N.PASSWORD), l = async (c) => {
|
|
1471
|
-
i
|
|
1384
|
+
i?.(c);
|
|
1472
1385
|
}, h = () => {
|
|
1473
1386
|
f(o === N.PASSWORD ? N.TEXT : N.PASSWORD);
|
|
1474
|
-
},
|
|
1387
|
+
}, b = o === N.PASSWORD ? Wr : Tr;
|
|
1475
1388
|
return /* @__PURE__ */ v("div", { className: _, children: [
|
|
1476
1389
|
/* @__PURE__ */ s(
|
|
1477
1390
|
Yr,
|
|
@@ -1490,7 +1403,7 @@ const Ir = U.bind(gn), Dr = "purpur-password-field", Qr = O(
|
|
|
1490
1403
|
size: "sm",
|
|
1491
1404
|
variant: "tertiary-purple",
|
|
1492
1405
|
iconOnly: !0,
|
|
1493
|
-
children: /* @__PURE__ */ s(
|
|
1406
|
+
children: /* @__PURE__ */ s(b, { size: "sm" })
|
|
1494
1407
|
}
|
|
1495
1408
|
),
|
|
1496
1409
|
...e
|
|
@@ -1502,10 +1415,10 @@ const Ir = U.bind(gn), Dr = "purpur-password-field", Qr = O(
|
|
|
1502
1415
|
);
|
|
1503
1416
|
Qr.PasswordStrength = X;
|
|
1504
1417
|
Qr.displayName = "PasswordField";
|
|
1505
|
-
const
|
|
1418
|
+
const An = (t) => at(t) && t?.type === X;
|
|
1506
1419
|
export {
|
|
1507
1420
|
Qr as P,
|
|
1508
|
-
|
|
1509
|
-
|
|
1421
|
+
cn as g,
|
|
1422
|
+
An as i
|
|
1510
1423
|
};
|
|
1511
|
-
//# sourceMappingURL=password-field-
|
|
1424
|
+
//# sourceMappingURL=password-field-CJnHnGjP.mjs.map
|