@purpurds/password-field 7.5.0 → 7.6.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-D5tHIxEv.mjs → main-Bfa6Eaa6.mjs} +2 -2
- package/dist/{main-D5tHIxEv.mjs.map → main-Bfa6Eaa6.mjs.map} +1 -1
- package/dist/{main-Bdt0uMg4.js → main-DRVLAPSX.js} +2 -2
- package/dist/{main-Bdt0uMg4.js.map → main-DRVLAPSX.js.map} +1 -1
- package/dist/{password-field-CjPGprCv.js → password-field-CppSkQWR.js} +16 -16
- package/dist/password-field-CppSkQWR.js.map +1 -0
- package/dist/{password-field-Dg8Jzw0g.mjs → password-field-X65O9liQ.mjs} +347 -346
- package/dist/password-field-X65O9liQ.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.map +1 -1
- package/dist/password-strength.d.ts.map +1 -1
- package/package.json +8 -8
- package/src/password-field.stories.tsx +2 -2
- package/src/password-field.test.tsx +1 -1
- package/src/password-field.tsx +6 -6
- package/src/password-strength-indicator.tsx +1 -1
- package/src/password-strength.tsx +1 -1
- package/dist/password-field-CjPGprCv.js.map +0 -1
- package/dist/password-field-Dg8Jzw0g.mjs.map +0 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { jsxs as h, jsx as s, Fragment as
|
|
1
|
+
import { jsxs as h, jsx as s, Fragment as at } from "react/jsx-runtime";
|
|
2
2
|
import * as g from "react";
|
|
3
|
-
import { forwardRef as P, useId as
|
|
3
|
+
import { forwardRef as P, useId as pt, useRef as it, useState as L, useMemo as st, useEffect as ot, isValidElement as lt } from "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
const
|
|
5
|
+
const ct = {
|
|
6
6
|
LG: "lg"
|
|
7
7
|
};
|
|
8
|
-
function
|
|
8
|
+
function dt(t) {
|
|
9
9
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
10
10
|
}
|
|
11
|
-
var
|
|
11
|
+
var ur = { 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 ar;
|
|
18
|
+
function _t() {
|
|
19
|
+
return ar || (ar = 1, function(t) {
|
|
20
20
|
(function() {
|
|
21
21
|
var a = {}.hasOwnProperty;
|
|
22
22
|
function n() {
|
|
@@ -45,39 +45,39 @@ function dt() {
|
|
|
45
45
|
}
|
|
46
46
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
47
47
|
})();
|
|
48
|
-
}(
|
|
48
|
+
}(ur)), ur.exports;
|
|
49
49
|
}
|
|
50
|
-
var
|
|
51
|
-
const
|
|
50
|
+
var ft = _t();
|
|
51
|
+
const pr = /* @__PURE__ */ dt(ft), gt = "_rotate_12t9p_1", vt = "_dash_12t9p_1", A = {
|
|
52
52
|
"purpur-spinner": "_purpur-spinner_12t9p_2",
|
|
53
|
-
rotate:
|
|
53
|
+
rotate: gt,
|
|
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: vt,
|
|
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
|
-
}, j = "purpur-spinner",
|
|
63
|
+
}, j = "purpur-spinner", ht = {
|
|
64
64
|
SM: "sm"
|
|
65
|
-
},
|
|
65
|
+
}, mt = ({
|
|
66
66
|
["data-testid"]: t,
|
|
67
67
|
disabled: a = !1,
|
|
68
68
|
negative: n = !1,
|
|
69
|
-
size: p =
|
|
69
|
+
size: p = ht.SM,
|
|
70
70
|
...i
|
|
71
71
|
}) => /* @__PURE__ */ s(
|
|
72
72
|
"div",
|
|
73
73
|
{
|
|
74
|
-
className:
|
|
74
|
+
className: pr([A[j], A[`${j}--${p}`]]),
|
|
75
75
|
"data-testid": t,
|
|
76
76
|
...i,
|
|
77
77
|
children: /* @__PURE__ */ s("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ s(
|
|
78
78
|
"circle",
|
|
79
79
|
{
|
|
80
|
-
className:
|
|
80
|
+
className: pr(A[`${j}__circle`], {
|
|
81
81
|
[A[`${j}__circle--disabled`]]: a,
|
|
82
82
|
[A[`${j}__circle--negative`]]: n
|
|
83
83
|
}),
|
|
@@ -88,18 +88,18 @@ const ar = /* @__PURE__ */ ct(_t), ft = "_rotate_12t9p_1", gt = "_dash_12t9p_1",
|
|
|
88
88
|
) })
|
|
89
89
|
}
|
|
90
90
|
);
|
|
91
|
-
function
|
|
91
|
+
function bt(t) {
|
|
92
92
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
93
93
|
}
|
|
94
|
-
var
|
|
94
|
+
var ir = { exports: {} };
|
|
95
95
|
/*!
|
|
96
96
|
Copyright (c) 2018 Jed Watson.
|
|
97
97
|
Licensed under the MIT License (MIT), see
|
|
98
98
|
http://jedwatson.github.io/classnames
|
|
99
99
|
*/
|
|
100
|
-
var
|
|
101
|
-
function
|
|
102
|
-
return
|
|
100
|
+
var sr;
|
|
101
|
+
function yt() {
|
|
102
|
+
return sr || (sr = 1, function(t) {
|
|
103
103
|
(function() {
|
|
104
104
|
var a = {}.hasOwnProperty;
|
|
105
105
|
function n() {
|
|
@@ -128,10 +128,10 @@ function bt() {
|
|
|
128
128
|
}
|
|
129
129
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
130
130
|
})();
|
|
131
|
-
}(
|
|
131
|
+
}(ir)), ir.exports;
|
|
132
132
|
}
|
|
133
|
-
var
|
|
134
|
-
const
|
|
133
|
+
var wt = yt();
|
|
134
|
+
const xt = /* @__PURE__ */ bt(wt), $t = {
|
|
135
135
|
"purpur-button": "_purpur-button_w455q_1",
|
|
136
136
|
"purpur-button--xs": "_purpur-button--xs_w455q_33",
|
|
137
137
|
"purpur-button--icon-only": "_purpur-button--icon-only_w455q_36",
|
|
@@ -153,7 +153,7 @@ const wt = /* @__PURE__ */ mt(yt), xt = {
|
|
|
153
153
|
"purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_w455q_166",
|
|
154
154
|
"purpur-button--text-negative": "_purpur-button--text-negative_w455q_181",
|
|
155
155
|
"purpur-button--text": "_purpur-button--text_w455q_181"
|
|
156
|
-
},
|
|
156
|
+
}, St = xt.bind($t), N = "purpur-button", Nt = ({
|
|
157
157
|
children: t,
|
|
158
158
|
className: a,
|
|
159
159
|
["data-testid"]: n,
|
|
@@ -162,18 +162,18 @@ const wt = /* @__PURE__ */ mt(yt), xt = {
|
|
|
162
162
|
iconOnly: r,
|
|
163
163
|
loading: e = !1,
|
|
164
164
|
negative: u = !1,
|
|
165
|
-
onClick:
|
|
165
|
+
onClick: c,
|
|
166
166
|
size: d = "md",
|
|
167
|
-
variant:
|
|
168
|
-
type:
|
|
167
|
+
variant: _,
|
|
168
|
+
type: l = "button",
|
|
169
169
|
...v
|
|
170
|
-
},
|
|
171
|
-
if (r &&
|
|
170
|
+
}, y) => {
|
|
171
|
+
if (r && _ === "destructive")
|
|
172
172
|
return null;
|
|
173
|
-
const
|
|
173
|
+
const o = St(
|
|
174
174
|
[
|
|
175
175
|
N,
|
|
176
|
-
`${N}--${u ? `${
|
|
176
|
+
`${N}--${u ? `${_}-negative` : _}`,
|
|
177
177
|
`${N}--${d}`
|
|
178
178
|
],
|
|
179
179
|
{
|
|
@@ -183,40 +183,40 @@ const wt = /* @__PURE__ */ mt(yt), xt = {
|
|
|
183
183
|
[`${N}--disabled`]: p || e
|
|
184
184
|
},
|
|
185
185
|
a
|
|
186
|
-
),
|
|
187
|
-
p || e ?
|
|
188
|
-
},
|
|
186
|
+
), b = (S) => {
|
|
187
|
+
p || e ? S.preventDefault() : c && c(S);
|
|
188
|
+
}, $ = !!v["aria-disabled"] || p || e;
|
|
189
189
|
return /* @__PURE__ */ h(
|
|
190
190
|
"button",
|
|
191
191
|
{
|
|
192
|
-
className:
|
|
192
|
+
className: o,
|
|
193
193
|
"data-testid": n,
|
|
194
|
-
type:
|
|
195
|
-
ref:
|
|
196
|
-
"aria-disabled":
|
|
197
|
-
onClick:
|
|
194
|
+
type: l,
|
|
195
|
+
ref: y,
|
|
196
|
+
"aria-disabled": $,
|
|
197
|
+
onClick: b,
|
|
198
198
|
...v,
|
|
199
199
|
children: [
|
|
200
|
-
e && /* @__PURE__ */ s(
|
|
200
|
+
e && /* @__PURE__ */ s(mt, { size: d === ct.LG ? "xs" : "xxs", negative: u, disabled: $ }),
|
|
201
201
|
" ",
|
|
202
202
|
t
|
|
203
203
|
]
|
|
204
204
|
}
|
|
205
205
|
);
|
|
206
|
-
},
|
|
207
|
-
|
|
208
|
-
function
|
|
206
|
+
}, Fr = P(Nt);
|
|
207
|
+
Fr.displayName = "Button";
|
|
208
|
+
function Ot(t) {
|
|
209
209
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
210
210
|
}
|
|
211
|
-
var
|
|
211
|
+
var or = { exports: {} };
|
|
212
212
|
/*!
|
|
213
213
|
Copyright (c) 2018 Jed Watson.
|
|
214
214
|
Licensed under the MIT License (MIT), see
|
|
215
215
|
http://jedwatson.github.io/classnames
|
|
216
216
|
*/
|
|
217
|
-
var
|
|
218
|
-
function
|
|
219
|
-
return
|
|
217
|
+
var lr;
|
|
218
|
+
function qt() {
|
|
219
|
+
return lr || (lr = 1, function(t) {
|
|
220
220
|
(function() {
|
|
221
221
|
var a = {}.hasOwnProperty;
|
|
222
222
|
function n() {
|
|
@@ -245,10 +245,10 @@ function Ot() {
|
|
|
245
245
|
}
|
|
246
246
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
247
247
|
})();
|
|
248
|
-
}(
|
|
248
|
+
}(or)), or.exports;
|
|
249
249
|
}
|
|
250
|
-
var
|
|
251
|
-
const
|
|
250
|
+
var Pt = qt();
|
|
251
|
+
const At = /* @__PURE__ */ Ot(Pt), jt = {
|
|
252
252
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
253
253
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
254
254
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -256,26 +256,26 @@ const Pt = /* @__PURE__ */ Nt(qt), At = {
|
|
|
256
256
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
257
257
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
258
258
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
259
|
-
},
|
|
259
|
+
}, Mt = At.bind(jt), cr = "purpur-icon", Ct = "md", kt = (t) => t.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), Rt = ({ content: t = "", title: a } = {}) => {
|
|
260
260
|
const n = [
|
|
261
261
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
262
262
|
{ name: "fill", value: "currentColor" },
|
|
263
263
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
264
264
|
a ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
265
265
|
], p = a ? `<title>${a}</title>` : "";
|
|
266
|
-
return `<svg ${
|
|
267
|
-
},
|
|
266
|
+
return `<svg ${kt(n)}>${p}${t}</svg>`;
|
|
267
|
+
}, zt = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Y = ({
|
|
268
268
|
["data-testid"]: t,
|
|
269
269
|
svg: a,
|
|
270
270
|
allyTitle: n,
|
|
271
271
|
className: p,
|
|
272
|
-
size: i =
|
|
272
|
+
size: i = Ct,
|
|
273
273
|
...r
|
|
274
274
|
}) => {
|
|
275
|
-
const e =
|
|
276
|
-
content:
|
|
275
|
+
const e = Rt({
|
|
276
|
+
content: zt(a.svg),
|
|
277
277
|
title: n
|
|
278
|
-
}), u =
|
|
278
|
+
}), u = Mt(p, cr, `${cr}--${i}`);
|
|
279
279
|
return /* @__PURE__ */ s(
|
|
280
280
|
"span",
|
|
281
281
|
{
|
|
@@ -286,36 +286,36 @@ const Pt = /* @__PURE__ */ Nt(qt), At = {
|
|
|
286
286
|
}
|
|
287
287
|
);
|
|
288
288
|
};
|
|
289
|
-
|
|
290
|
-
const
|
|
289
|
+
Y.displayName = "Icon";
|
|
290
|
+
const Et = {
|
|
291
291
|
name: "password-invisible",
|
|
292
292
|
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
293
|
keywords: ["password-invisible"],
|
|
294
294
|
category: "action"
|
|
295
|
-
},
|
|
296
|
-
|
|
297
|
-
const
|
|
295
|
+
}, Gr = (t) => /* @__PURE__ */ s(Y, { ...t, svg: Et });
|
|
296
|
+
Gr.displayName = "IconPasswordInvisible";
|
|
297
|
+
const Dt = {
|
|
298
298
|
name: "password-visible",
|
|
299
299
|
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
300
|
keywords: ["password-visible"],
|
|
301
301
|
category: "action"
|
|
302
|
-
},
|
|
303
|
-
|
|
304
|
-
const
|
|
302
|
+
}, Vr = (t) => /* @__PURE__ */ s(Y, { ...t, svg: Dt });
|
|
303
|
+
Vr.displayName = "IconPasswordVisible";
|
|
304
|
+
const Bt = {
|
|
305
305
|
LG: "lg"
|
|
306
306
|
};
|
|
307
|
-
function
|
|
307
|
+
function It(t) {
|
|
308
308
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
309
309
|
}
|
|
310
|
-
var
|
|
310
|
+
var dr = { exports: {} };
|
|
311
311
|
/*!
|
|
312
312
|
Copyright (c) 2018 Jed Watson.
|
|
313
313
|
Licensed under the MIT License (MIT), see
|
|
314
314
|
http://jedwatson.github.io/classnames
|
|
315
315
|
*/
|
|
316
|
-
var
|
|
317
|
-
function
|
|
318
|
-
return
|
|
316
|
+
var _r;
|
|
317
|
+
function Lt() {
|
|
318
|
+
return _r || (_r = 1, function(t) {
|
|
319
319
|
(function() {
|
|
320
320
|
var a = {}.hasOwnProperty;
|
|
321
321
|
function n() {
|
|
@@ -344,39 +344,39 @@ function It() {
|
|
|
344
344
|
}
|
|
345
345
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
346
346
|
})();
|
|
347
|
-
}(
|
|
347
|
+
}(dr)), dr.exports;
|
|
348
348
|
}
|
|
349
|
-
var
|
|
350
|
-
const
|
|
349
|
+
var Tt = Lt();
|
|
350
|
+
const fr = /* @__PURE__ */ It(Tt), Wt = "_rotate_12t9p_1", Zt = "_dash_12t9p_1", M = {
|
|
351
351
|
"purpur-spinner": "_purpur-spinner_12t9p_2",
|
|
352
|
-
rotate:
|
|
352
|
+
rotate: Wt,
|
|
353
353
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
|
|
354
354
|
"purpur-spinner--xs": "_purpur-spinner--xs_12t9p_10",
|
|
355
355
|
"purpur-spinner--sm": "_purpur-spinner--sm_12t9p_14",
|
|
356
356
|
"purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
|
|
357
357
|
"purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
|
|
358
358
|
"purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
|
|
359
|
-
dash:
|
|
359
|
+
dash: Zt,
|
|
360
360
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
|
|
361
361
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
|
|
362
|
-
}, C = "purpur-spinner",
|
|
362
|
+
}, C = "purpur-spinner", Ft = {
|
|
363
363
|
SM: "sm"
|
|
364
|
-
},
|
|
364
|
+
}, Gt = ({
|
|
365
365
|
["data-testid"]: t,
|
|
366
366
|
disabled: a = !1,
|
|
367
367
|
negative: n = !1,
|
|
368
|
-
size: p =
|
|
368
|
+
size: p = Ft.SM,
|
|
369
369
|
...i
|
|
370
370
|
}) => /* @__PURE__ */ s(
|
|
371
371
|
"div",
|
|
372
372
|
{
|
|
373
|
-
className:
|
|
373
|
+
className: fr([M[C], M[`${C}--${p}`]]),
|
|
374
374
|
"data-testid": t,
|
|
375
375
|
...i,
|
|
376
376
|
children: /* @__PURE__ */ s("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ s(
|
|
377
377
|
"circle",
|
|
378
378
|
{
|
|
379
|
-
className:
|
|
379
|
+
className: fr(M[`${C}__circle`], {
|
|
380
380
|
[M[`${C}__circle--disabled`]]: a,
|
|
381
381
|
[M[`${C}__circle--negative`]]: n
|
|
382
382
|
}),
|
|
@@ -387,18 +387,18 @@ const _r = /* @__PURE__ */ Bt(Lt), Tt = "_rotate_12t9p_1", Wt = "_dash_12t9p_1",
|
|
|
387
387
|
) })
|
|
388
388
|
}
|
|
389
389
|
);
|
|
390
|
-
function
|
|
390
|
+
function Vt(t) {
|
|
391
391
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
392
392
|
}
|
|
393
|
-
var
|
|
393
|
+
var gr = { exports: {} };
|
|
394
394
|
/*!
|
|
395
395
|
Copyright (c) 2018 Jed Watson.
|
|
396
396
|
Licensed under the MIT License (MIT), see
|
|
397
397
|
http://jedwatson.github.io/classnames
|
|
398
398
|
*/
|
|
399
|
-
var
|
|
400
|
-
function
|
|
401
|
-
return
|
|
399
|
+
var vr;
|
|
400
|
+
function Ht() {
|
|
401
|
+
return vr || (vr = 1, function(t) {
|
|
402
402
|
(function() {
|
|
403
403
|
var a = {}.hasOwnProperty;
|
|
404
404
|
function n() {
|
|
@@ -427,10 +427,10 @@ function Vt() {
|
|
|
427
427
|
}
|
|
428
428
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
429
429
|
})();
|
|
430
|
-
}(
|
|
430
|
+
}(gr)), gr.exports;
|
|
431
431
|
}
|
|
432
|
-
var
|
|
433
|
-
const
|
|
432
|
+
var Ut = Ht();
|
|
433
|
+
const Xt = /* @__PURE__ */ Vt(Ut), Kt = {
|
|
434
434
|
"purpur-button": "_purpur-button_w455q_1",
|
|
435
435
|
"purpur-button--xs": "_purpur-button--xs_w455q_33",
|
|
436
436
|
"purpur-button--icon-only": "_purpur-button--icon-only_w455q_36",
|
|
@@ -452,7 +452,7 @@ const Ut = /* @__PURE__ */ Gt(Ht), Xt = {
|
|
|
452
452
|
"purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_w455q_166",
|
|
453
453
|
"purpur-button--text-negative": "_purpur-button--text-negative_w455q_181",
|
|
454
454
|
"purpur-button--text": "_purpur-button--text_w455q_181"
|
|
455
|
-
},
|
|
455
|
+
}, Yt = Xt.bind(Kt), O = "purpur-button", Jt = ({
|
|
456
456
|
children: t,
|
|
457
457
|
className: a,
|
|
458
458
|
["data-testid"]: n,
|
|
@@ -461,18 +461,18 @@ const Ut = /* @__PURE__ */ Gt(Ht), Xt = {
|
|
|
461
461
|
iconOnly: r,
|
|
462
462
|
loading: e = !1,
|
|
463
463
|
negative: u = !1,
|
|
464
|
-
onClick:
|
|
464
|
+
onClick: c,
|
|
465
465
|
size: d = "md",
|
|
466
|
-
variant:
|
|
467
|
-
type:
|
|
466
|
+
variant: _,
|
|
467
|
+
type: l = "button",
|
|
468
468
|
...v
|
|
469
|
-
},
|
|
470
|
-
if (r &&
|
|
469
|
+
}, y) => {
|
|
470
|
+
if (r && _ === "destructive")
|
|
471
471
|
return null;
|
|
472
|
-
const
|
|
472
|
+
const o = Yt(
|
|
473
473
|
[
|
|
474
474
|
O,
|
|
475
|
-
`${O}--${u ? `${
|
|
475
|
+
`${O}--${u ? `${_}-negative` : _}`,
|
|
476
476
|
`${O}--${d}`
|
|
477
477
|
],
|
|
478
478
|
{
|
|
@@ -482,40 +482,40 @@ const Ut = /* @__PURE__ */ Gt(Ht), Xt = {
|
|
|
482
482
|
[`${O}--disabled`]: p || e
|
|
483
483
|
},
|
|
484
484
|
a
|
|
485
|
-
),
|
|
486
|
-
p || e ?
|
|
487
|
-
},
|
|
485
|
+
), b = (S) => {
|
|
486
|
+
p || e ? S.preventDefault() : c && c(S);
|
|
487
|
+
}, $ = !!v["aria-disabled"] || p || e;
|
|
488
488
|
return /* @__PURE__ */ h(
|
|
489
489
|
"button",
|
|
490
490
|
{
|
|
491
|
-
className:
|
|
491
|
+
className: o,
|
|
492
492
|
"data-testid": n,
|
|
493
|
-
type:
|
|
494
|
-
ref:
|
|
495
|
-
"aria-disabled":
|
|
496
|
-
onClick:
|
|
493
|
+
type: l,
|
|
494
|
+
ref: y,
|
|
495
|
+
"aria-disabled": $,
|
|
496
|
+
onClick: b,
|
|
497
497
|
...v,
|
|
498
498
|
children: [
|
|
499
|
-
e && /* @__PURE__ */ s(
|
|
499
|
+
e && /* @__PURE__ */ s(Gt, { size: d === Bt.LG ? "xs" : "xxs", negative: u, disabled: $ }),
|
|
500
500
|
" ",
|
|
501
501
|
t
|
|
502
502
|
]
|
|
503
503
|
}
|
|
504
504
|
);
|
|
505
|
-
},
|
|
506
|
-
|
|
507
|
-
function
|
|
505
|
+
}, Hr = P(Jt);
|
|
506
|
+
Hr.displayName = "Button";
|
|
507
|
+
function Qt(t) {
|
|
508
508
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
509
509
|
}
|
|
510
|
-
var
|
|
510
|
+
var hr = { exports: {} };
|
|
511
511
|
/*!
|
|
512
512
|
Copyright (c) 2018 Jed Watson.
|
|
513
513
|
Licensed under the MIT License (MIT), see
|
|
514
514
|
http://jedwatson.github.io/classnames
|
|
515
515
|
*/
|
|
516
|
-
var
|
|
517
|
-
function
|
|
518
|
-
return
|
|
516
|
+
var mr;
|
|
517
|
+
function re() {
|
|
518
|
+
return mr || (mr = 1, function(t) {
|
|
519
519
|
(function() {
|
|
520
520
|
var a = {}.hasOwnProperty;
|
|
521
521
|
function n() {
|
|
@@ -544,10 +544,10 @@ function Qt() {
|
|
|
544
544
|
}
|
|
545
545
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
546
546
|
})();
|
|
547
|
-
}(
|
|
547
|
+
}(hr)), hr.exports;
|
|
548
548
|
}
|
|
549
|
-
var
|
|
550
|
-
const
|
|
549
|
+
var te = re();
|
|
550
|
+
const ee = /* @__PURE__ */ Qt(te), ne = {
|
|
551
551
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
552
552
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
553
553
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -555,26 +555,26 @@ const te = /* @__PURE__ */ Jt(re), ee = {
|
|
|
555
555
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
556
556
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
557
557
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
558
|
-
},
|
|
558
|
+
}, ue = ee.bind(ne), br = "purpur-icon", ae = "md", pe = (t) => t.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), ie = ({ content: t = "", title: a } = {}) => {
|
|
559
559
|
const n = [
|
|
560
560
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
561
561
|
{ name: "fill", value: "currentColor" },
|
|
562
562
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
563
563
|
a ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
564
564
|
], p = a ? `<title>${a}</title>` : "";
|
|
565
|
-
return `<svg ${
|
|
566
|
-
},
|
|
565
|
+
return `<svg ${pe(n)}>${p}${t}</svg>`;
|
|
566
|
+
}, se = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Ur = ({
|
|
567
567
|
["data-testid"]: t,
|
|
568
568
|
svg: a,
|
|
569
569
|
allyTitle: n,
|
|
570
570
|
className: p,
|
|
571
|
-
size: i =
|
|
571
|
+
size: i = ae,
|
|
572
572
|
...r
|
|
573
573
|
}) => {
|
|
574
|
-
const e =
|
|
575
|
-
content:
|
|
574
|
+
const e = ie({
|
|
575
|
+
content: se(a.svg),
|
|
576
576
|
title: n
|
|
577
|
-
}), u =
|
|
577
|
+
}), u = ue(p, br, `${br}--${i}`);
|
|
578
578
|
return /* @__PURE__ */ s(
|
|
579
579
|
"span",
|
|
580
580
|
{
|
|
@@ -585,25 +585,25 @@ const te = /* @__PURE__ */ Jt(re), ee = {
|
|
|
585
585
|
}
|
|
586
586
|
);
|
|
587
587
|
};
|
|
588
|
-
|
|
589
|
-
const
|
|
588
|
+
Ur.displayName = "Icon";
|
|
589
|
+
const oe = {
|
|
590
590
|
name: "error-filled",
|
|
591
591
|
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
592
|
keywords: ["error-filled"],
|
|
593
593
|
category: "status"
|
|
594
594
|
};
|
|
595
|
-
function
|
|
595
|
+
function le(t) {
|
|
596
596
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
597
597
|
}
|
|
598
|
-
var
|
|
598
|
+
var yr = { exports: {} };
|
|
599
599
|
/*!
|
|
600
600
|
Copyright (c) 2018 Jed Watson.
|
|
601
601
|
Licensed under the MIT License (MIT), see
|
|
602
602
|
http://jedwatson.github.io/classnames
|
|
603
603
|
*/
|
|
604
|
-
var
|
|
605
|
-
function
|
|
606
|
-
return
|
|
604
|
+
var wr;
|
|
605
|
+
function ce() {
|
|
606
|
+
return wr || (wr = 1, function(t) {
|
|
607
607
|
(function() {
|
|
608
608
|
var a = {}.hasOwnProperty;
|
|
609
609
|
function n() {
|
|
@@ -632,13 +632,13 @@ function le() {
|
|
|
632
632
|
}
|
|
633
633
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
634
634
|
})();
|
|
635
|
-
}(
|
|
635
|
+
}(yr)), yr.exports;
|
|
636
636
|
}
|
|
637
|
-
var
|
|
638
|
-
const
|
|
637
|
+
var de = ce();
|
|
638
|
+
const _e = /* @__PURE__ */ le(de), xr = {
|
|
639
639
|
"purpur-field-error-text": "_purpur-field-error-text_1lj7e_1",
|
|
640
640
|
"purpur-field-error-text__icon": "_purpur-field-error-text__icon_1lj7e_11"
|
|
641
|
-
},
|
|
641
|
+
}, $r = "purpur-field-error-text", fe = ({
|
|
642
642
|
children: t,
|
|
643
643
|
className: a,
|
|
644
644
|
["aria-relevant"]: n = "additions text",
|
|
@@ -646,28 +646,28 @@ const de = /* @__PURE__ */ oe(ce), wr = {
|
|
|
646
646
|
}) => /* @__PURE__ */ h(
|
|
647
647
|
"div",
|
|
648
648
|
{
|
|
649
|
-
className:
|
|
649
|
+
className: _e([a, xr[$r]]),
|
|
650
650
|
"aria-live": "assertive",
|
|
651
651
|
"aria-relevant": n,
|
|
652
652
|
...p,
|
|
653
653
|
children: [
|
|
654
|
-
/* @__PURE__ */ s(
|
|
654
|
+
/* @__PURE__ */ s(Ur, { svg: oe, size: "xs", className: xr[`${$r}__icon`] }),
|
|
655
655
|
t
|
|
656
656
|
]
|
|
657
657
|
}
|
|
658
658
|
);
|
|
659
|
-
function
|
|
659
|
+
function ge(t) {
|
|
660
660
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
661
661
|
}
|
|
662
|
-
var
|
|
662
|
+
var Sr = { exports: {} };
|
|
663
663
|
/*!
|
|
664
664
|
Copyright (c) 2018 Jed Watson.
|
|
665
665
|
Licensed under the MIT License (MIT), see
|
|
666
666
|
http://jedwatson.github.io/classnames
|
|
667
667
|
*/
|
|
668
|
-
var
|
|
669
|
-
function
|
|
670
|
-
return
|
|
668
|
+
var Nr;
|
|
669
|
+
function ve() {
|
|
670
|
+
return Nr || (Nr = 1, function(t) {
|
|
671
671
|
(function() {
|
|
672
672
|
var a = {}.hasOwnProperty;
|
|
673
673
|
function n() {
|
|
@@ -696,40 +696,40 @@ function ge() {
|
|
|
696
696
|
}
|
|
697
697
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
698
698
|
})();
|
|
699
|
-
}(
|
|
699
|
+
}(Sr)), Sr.exports;
|
|
700
700
|
}
|
|
701
|
-
var
|
|
702
|
-
const
|
|
701
|
+
var he = ve();
|
|
702
|
+
const me = /* @__PURE__ */ ge(he), Or = {
|
|
703
703
|
"purpur-field-helper-text": "_purpur-field-helper-text_atw6b_1",
|
|
704
704
|
"purpur-field-helper-text--disabled": "_purpur-field-helper-text--disabled_atw6b_9"
|
|
705
|
-
},
|
|
705
|
+
}, qr = "purpur-field-helper-text", be = ({
|
|
706
706
|
children: t,
|
|
707
707
|
className: a,
|
|
708
708
|
disabled: n,
|
|
709
709
|
id: p,
|
|
710
710
|
...i
|
|
711
711
|
}) => {
|
|
712
|
-
const r =
|
|
712
|
+
const r = me([
|
|
713
713
|
a,
|
|
714
|
-
|
|
714
|
+
Or[qr],
|
|
715
715
|
{
|
|
716
|
-
[
|
|
716
|
+
[Or[`${qr}--disabled`]]: n
|
|
717
717
|
}
|
|
718
718
|
]);
|
|
719
719
|
return /* @__PURE__ */ s("span", { id: p, className: r, ...i, children: t });
|
|
720
720
|
};
|
|
721
|
-
function
|
|
721
|
+
function ye(t) {
|
|
722
722
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
723
723
|
}
|
|
724
|
-
var
|
|
724
|
+
var Pr = { exports: {} };
|
|
725
725
|
/*!
|
|
726
726
|
Copyright (c) 2018 Jed Watson.
|
|
727
727
|
Licensed under the MIT License (MIT), see
|
|
728
728
|
http://jedwatson.github.io/classnames
|
|
729
729
|
*/
|
|
730
|
-
var
|
|
731
|
-
function
|
|
732
|
-
return
|
|
730
|
+
var Ar;
|
|
731
|
+
function we() {
|
|
732
|
+
return Ar || (Ar = 1, function(t) {
|
|
733
733
|
(function() {
|
|
734
734
|
var a = {}.hasOwnProperty;
|
|
735
735
|
function n() {
|
|
@@ -758,10 +758,10 @@ function ye() {
|
|
|
758
758
|
}
|
|
759
759
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
760
760
|
})();
|
|
761
|
-
}(
|
|
761
|
+
}(Pr)), Pr.exports;
|
|
762
762
|
}
|
|
763
|
-
var
|
|
764
|
-
const
|
|
763
|
+
var xe = we();
|
|
764
|
+
const $e = /* @__PURE__ */ ye(xe), Se = {
|
|
765
765
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
766
766
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
767
767
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -769,26 +769,26 @@ const xe = /* @__PURE__ */ be(we), $e = {
|
|
|
769
769
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
770
770
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
771
771
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
772
|
-
},
|
|
772
|
+
}, Ne = $e.bind(Se), jr = "purpur-icon", Oe = "md", qe = (t) => t.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), Pe = ({ content: t = "", title: a } = {}) => {
|
|
773
773
|
const n = [
|
|
774
774
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
775
775
|
{ name: "fill", value: "currentColor" },
|
|
776
776
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
777
777
|
a ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
778
778
|
], p = a ? `<title>${a}</title>` : "";
|
|
779
|
-
return `<svg ${
|
|
780
|
-
},
|
|
779
|
+
return `<svg ${qe(n)}>${p}${t}</svg>`;
|
|
780
|
+
}, Ae = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), J = ({
|
|
781
781
|
["data-testid"]: t,
|
|
782
782
|
svg: a,
|
|
783
783
|
allyTitle: n,
|
|
784
784
|
className: p,
|
|
785
|
-
size: i =
|
|
785
|
+
size: i = Oe,
|
|
786
786
|
...r
|
|
787
787
|
}) => {
|
|
788
|
-
const e =
|
|
789
|
-
content:
|
|
788
|
+
const e = Pe({
|
|
789
|
+
content: Ae(a.svg),
|
|
790
790
|
title: n
|
|
791
|
-
}), u =
|
|
791
|
+
}), u = Ne(p, jr, `${jr}--${i}`);
|
|
792
792
|
return /* @__PURE__ */ s(
|
|
793
793
|
"span",
|
|
794
794
|
{
|
|
@@ -799,65 +799,65 @@ const xe = /* @__PURE__ */ be(we), $e = {
|
|
|
799
799
|
}
|
|
800
800
|
);
|
|
801
801
|
};
|
|
802
|
-
|
|
803
|
-
const
|
|
802
|
+
J.displayName = "Icon";
|
|
803
|
+
const je = {
|
|
804
804
|
name: "check-circle-filled",
|
|
805
805
|
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
806
|
keywords: ["check-circle-filled"],
|
|
807
807
|
category: "status"
|
|
808
|
-
},
|
|
809
|
-
|
|
810
|
-
const
|
|
808
|
+
}, Xr = (t) => /* @__PURE__ */ s(J, { ...t, svg: je });
|
|
809
|
+
Xr.displayName = "IconCheckCircleFilled";
|
|
810
|
+
const Me = {
|
|
811
811
|
name: "close",
|
|
812
812
|
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
813
|
keywords: ["close"],
|
|
814
814
|
category: "utility"
|
|
815
|
-
},
|
|
816
|
-
|
|
817
|
-
function
|
|
815
|
+
}, Kr = (t) => /* @__PURE__ */ s(J, { ...t, svg: Me });
|
|
816
|
+
Kr.displayName = "IconClose";
|
|
817
|
+
function Mr(t, a) {
|
|
818
818
|
if (typeof t == "function")
|
|
819
819
|
return t(a);
|
|
820
820
|
t != null && (t.current = a);
|
|
821
821
|
}
|
|
822
|
-
function
|
|
822
|
+
function Ce(...t) {
|
|
823
823
|
return (a) => {
|
|
824
824
|
let n = !1;
|
|
825
825
|
const p = t.map((i) => {
|
|
826
|
-
const r =
|
|
826
|
+
const r = Mr(i, a);
|
|
827
827
|
return !n && typeof r == "function" && (n = !0), r;
|
|
828
828
|
});
|
|
829
829
|
if (n)
|
|
830
830
|
return () => {
|
|
831
831
|
for (let i = 0; i < p.length; i++) {
|
|
832
832
|
const r = p[i];
|
|
833
|
-
typeof r == "function" ? r() :
|
|
833
|
+
typeof r == "function" ? r() : Mr(t[i], null);
|
|
834
834
|
}
|
|
835
835
|
};
|
|
836
836
|
};
|
|
837
837
|
}
|
|
838
|
-
var
|
|
839
|
-
const { children: n, ...p } = t, i = g.Children.toArray(n), r = i.find(
|
|
838
|
+
var Yr = g.forwardRef((t, a) => {
|
|
839
|
+
const { children: n, ...p } = t, i = g.Children.toArray(n), r = i.find(Re);
|
|
840
840
|
if (r) {
|
|
841
|
-
const e = r.props.children, u = i.map((
|
|
842
|
-
return /* @__PURE__ */ s(
|
|
841
|
+
const e = r.props.children, u = i.map((c) => c === r ? g.Children.count(e) > 1 ? g.Children.only(null) : g.isValidElement(e) ? e.props.children : null : c);
|
|
842
|
+
return /* @__PURE__ */ s(K, { ...p, ref: a, children: g.isValidElement(e) ? g.cloneElement(e, void 0, u) : null });
|
|
843
843
|
}
|
|
844
|
-
return /* @__PURE__ */ s(
|
|
844
|
+
return /* @__PURE__ */ s(K, { ...p, ref: a, children: n });
|
|
845
845
|
});
|
|
846
|
-
|
|
847
|
-
var
|
|
846
|
+
Yr.displayName = "Slot";
|
|
847
|
+
var K = g.forwardRef((t, a) => {
|
|
848
848
|
const { children: n, ...p } = t;
|
|
849
849
|
if (g.isValidElement(n)) {
|
|
850
|
-
const i =
|
|
851
|
-
return n.type !== g.Fragment && (r.ref = a ?
|
|
850
|
+
const i = Ee(n), r = ze(p, n.props);
|
|
851
|
+
return n.type !== g.Fragment && (r.ref = a ? Ce(a, i) : i), g.cloneElement(n, r);
|
|
852
852
|
}
|
|
853
853
|
return g.Children.count(n) > 1 ? g.Children.only(null) : null;
|
|
854
854
|
});
|
|
855
|
-
|
|
856
|
-
var
|
|
857
|
-
function
|
|
858
|
-
return g.isValidElement(t) && t.type ===
|
|
855
|
+
K.displayName = "SlotClone";
|
|
856
|
+
var ke = ({ children: t }) => /* @__PURE__ */ s(at, { children: t });
|
|
857
|
+
function Re(t) {
|
|
858
|
+
return g.isValidElement(t) && t.type === ke;
|
|
859
859
|
}
|
|
860
|
-
function
|
|
860
|
+
function ze(t, a) {
|
|
861
861
|
const n = { ...a };
|
|
862
862
|
for (const p in a) {
|
|
863
863
|
const i = t[p], r = a[p];
|
|
@@ -867,12 +867,12 @@ function Re(t, a) {
|
|
|
867
867
|
}
|
|
868
868
|
return { ...t, ...n };
|
|
869
869
|
}
|
|
870
|
-
function
|
|
870
|
+
function Ee(t) {
|
|
871
871
|
var a, n;
|
|
872
872
|
let p = (a = Object.getOwnPropertyDescriptor(t.props, "ref")) == null ? void 0 : a.get, i = p && "isReactWarning" in p && p.isReactWarning;
|
|
873
873
|
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
874
|
}
|
|
875
|
-
var
|
|
875
|
+
var De = [
|
|
876
876
|
"a",
|
|
877
877
|
"button",
|
|
878
878
|
"div",
|
|
@@ -889,14 +889,14 @@ var Ee = [
|
|
|
889
889
|
"span",
|
|
890
890
|
"svg",
|
|
891
891
|
"ul"
|
|
892
|
-
],
|
|
892
|
+
], Be = De.reduce((t, a) => {
|
|
893
893
|
const n = g.forwardRef((p, i) => {
|
|
894
|
-
const { asChild: r, ...e } = p, u = r ?
|
|
894
|
+
const { asChild: r, ...e } = p, u = r ? Yr : a;
|
|
895
895
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ s(u, { ...e, ref: i });
|
|
896
896
|
});
|
|
897
897
|
return n.displayName = `Primitive.${a}`, { ...t, [a]: n };
|
|
898
|
-
}, {}),
|
|
899
|
-
|
|
898
|
+
}, {}), Ie = "Label", Jr = g.forwardRef((t, a) => /* @__PURE__ */ s(
|
|
899
|
+
Be.label,
|
|
900
900
|
{
|
|
901
901
|
...t,
|
|
902
902
|
ref: a,
|
|
@@ -906,20 +906,20 @@ var Ee = [
|
|
|
906
906
|
}
|
|
907
907
|
}
|
|
908
908
|
));
|
|
909
|
-
|
|
910
|
-
var
|
|
911
|
-
function
|
|
909
|
+
Jr.displayName = Ie;
|
|
910
|
+
var Le = Jr;
|
|
911
|
+
function Te(t) {
|
|
912
912
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
913
913
|
}
|
|
914
|
-
var
|
|
914
|
+
var Cr = { exports: {} };
|
|
915
915
|
/*!
|
|
916
916
|
Copyright (c) 2018 Jed Watson.
|
|
917
917
|
Licensed under the MIT License (MIT), see
|
|
918
918
|
http://jedwatson.github.io/classnames
|
|
919
919
|
*/
|
|
920
|
-
var
|
|
921
|
-
function
|
|
922
|
-
return
|
|
920
|
+
var kr;
|
|
921
|
+
function We() {
|
|
922
|
+
return kr || (kr = 1, function(t) {
|
|
923
923
|
(function() {
|
|
924
924
|
var a = {}.hasOwnProperty;
|
|
925
925
|
function n() {
|
|
@@ -948,42 +948,42 @@ function Te() {
|
|
|
948
948
|
}
|
|
949
949
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
950
950
|
})();
|
|
951
|
-
}(
|
|
951
|
+
}(Cr)), Cr.exports;
|
|
952
952
|
}
|
|
953
|
-
var
|
|
954
|
-
const
|
|
953
|
+
var Ze = We();
|
|
954
|
+
const Fe = /* @__PURE__ */ Te(Ze), V = {
|
|
955
955
|
"purpur-label": "_purpur-label_1jndl_1",
|
|
956
956
|
"purpur-label--negative": "_purpur-label--negative_1jndl_8",
|
|
957
957
|
"purpur-label--disabled": "_purpur-label--disabled_1jndl_11"
|
|
958
|
-
},
|
|
958
|
+
}, H = "purpur-label", Ge = ({
|
|
959
959
|
children: t,
|
|
960
960
|
className: a,
|
|
961
961
|
disabled: n,
|
|
962
962
|
negative: p = !1,
|
|
963
963
|
...i
|
|
964
964
|
}) => {
|
|
965
|
-
const r =
|
|
965
|
+
const r = Fe([
|
|
966
966
|
a,
|
|
967
|
-
|
|
967
|
+
V[H],
|
|
968
968
|
{
|
|
969
|
-
[
|
|
970
|
-
[
|
|
969
|
+
[V[`${H}--disabled`]]: n,
|
|
970
|
+
[V[`${H}--negative`]]: p
|
|
971
971
|
}
|
|
972
972
|
]);
|
|
973
|
-
return /* @__PURE__ */ s(
|
|
973
|
+
return /* @__PURE__ */ s(Le, { className: r, ...i, children: t });
|
|
974
974
|
};
|
|
975
|
-
function
|
|
975
|
+
function Ve(t) {
|
|
976
976
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
977
977
|
}
|
|
978
|
-
var
|
|
978
|
+
var Rr = { exports: {} };
|
|
979
979
|
/*!
|
|
980
980
|
Copyright (c) 2018 Jed Watson.
|
|
981
981
|
Licensed under the MIT License (MIT), see
|
|
982
982
|
http://jedwatson.github.io/classnames
|
|
983
983
|
*/
|
|
984
|
-
var
|
|
985
|
-
function
|
|
986
|
-
return
|
|
984
|
+
var zr;
|
|
985
|
+
function He() {
|
|
986
|
+
return zr || (zr = 1, function(t) {
|
|
987
987
|
(function() {
|
|
988
988
|
var a = {}.hasOwnProperty;
|
|
989
989
|
function n() {
|
|
@@ -1012,39 +1012,39 @@ function Ve() {
|
|
|
1012
1012
|
}
|
|
1013
1013
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
1014
1014
|
})();
|
|
1015
|
-
}(
|
|
1015
|
+
}(Rr)), Rr.exports;
|
|
1016
1016
|
}
|
|
1017
|
-
var
|
|
1018
|
-
const
|
|
1017
|
+
var Ue = He();
|
|
1018
|
+
const Er = /* @__PURE__ */ Ve(Ue), Xe = "_rotate_12t9p_1", Ke = "_dash_12t9p_1", k = {
|
|
1019
1019
|
"purpur-spinner": "_purpur-spinner_12t9p_2",
|
|
1020
|
-
rotate:
|
|
1020
|
+
rotate: Xe,
|
|
1021
1021
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
|
|
1022
1022
|
"purpur-spinner--xs": "_purpur-spinner--xs_12t9p_10",
|
|
1023
1023
|
"purpur-spinner--sm": "_purpur-spinner--sm_12t9p_14",
|
|
1024
1024
|
"purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
|
|
1025
1025
|
"purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
|
|
1026
1026
|
"purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
|
|
1027
|
-
dash:
|
|
1027
|
+
dash: Ke,
|
|
1028
1028
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
|
|
1029
1029
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
|
|
1030
|
-
}, R = "purpur-spinner",
|
|
1030
|
+
}, R = "purpur-spinner", Ye = {
|
|
1031
1031
|
SM: "sm"
|
|
1032
|
-
},
|
|
1032
|
+
}, Je = ({
|
|
1033
1033
|
["data-testid"]: t,
|
|
1034
1034
|
disabled: a = !1,
|
|
1035
1035
|
negative: n = !1,
|
|
1036
|
-
size: p =
|
|
1036
|
+
size: p = Ye.SM,
|
|
1037
1037
|
...i
|
|
1038
1038
|
}) => /* @__PURE__ */ s(
|
|
1039
1039
|
"div",
|
|
1040
1040
|
{
|
|
1041
|
-
className:
|
|
1041
|
+
className: Er([k[R], k[`${R}--${p}`]]),
|
|
1042
1042
|
"data-testid": t,
|
|
1043
1043
|
...i,
|
|
1044
1044
|
children: /* @__PURE__ */ s("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ s(
|
|
1045
1045
|
"circle",
|
|
1046
1046
|
{
|
|
1047
|
-
className:
|
|
1047
|
+
className: Er(k[`${R}__circle`], {
|
|
1048
1048
|
[k[`${R}__circle--disabled`]]: a,
|
|
1049
1049
|
[k[`${R}__circle--negative`]]: n
|
|
1050
1050
|
}),
|
|
@@ -1055,18 +1055,18 @@ const zr = /* @__PURE__ */ Ge(He), Ue = "_rotate_12t9p_1", Xe = "_dash_12t9p_1",
|
|
|
1055
1055
|
) })
|
|
1056
1056
|
}
|
|
1057
1057
|
);
|
|
1058
|
-
function
|
|
1058
|
+
function Qe(t) {
|
|
1059
1059
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1060
1060
|
}
|
|
1061
|
-
var
|
|
1061
|
+
var Dr = { exports: {} };
|
|
1062
1062
|
/*!
|
|
1063
1063
|
Copyright (c) 2018 Jed Watson.
|
|
1064
1064
|
Licensed under the MIT License (MIT), see
|
|
1065
1065
|
http://jedwatson.github.io/classnames
|
|
1066
1066
|
*/
|
|
1067
|
-
var
|
|
1068
|
-
function
|
|
1069
|
-
return
|
|
1067
|
+
var Br;
|
|
1068
|
+
function rn() {
|
|
1069
|
+
return Br || (Br = 1, function(t) {
|
|
1070
1070
|
(function() {
|
|
1071
1071
|
var a = {}.hasOwnProperty;
|
|
1072
1072
|
function n() {
|
|
@@ -1095,10 +1095,10 @@ function Qe() {
|
|
|
1095
1095
|
}
|
|
1096
1096
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
1097
1097
|
})();
|
|
1098
|
-
}(
|
|
1098
|
+
}(Dr)), Dr.exports;
|
|
1099
1099
|
}
|
|
1100
|
-
var
|
|
1101
|
-
const
|
|
1100
|
+
var tn = rn();
|
|
1101
|
+
const en = /* @__PURE__ */ Qe(tn), nn = {
|
|
1102
1102
|
"purpur-text-field": "_purpur-text-field_3gl1k_1",
|
|
1103
1103
|
"purpur-text-field__label": "_purpur-text-field__label_3gl1k_7",
|
|
1104
1104
|
"purpur-text-field__label-text": "_purpur-text-field__label-text_3gl1k_12",
|
|
@@ -1115,7 +1115,7 @@ const tn = /* @__PURE__ */ Je(rn), en = {
|
|
|
1115
1115
|
"purpur-text-field__input--error": "_purpur-text-field__input--error_3gl1k_94",
|
|
1116
1116
|
"purpur-text-field__adornment-container": "_purpur-text-field__adornment-container_3gl1k_106",
|
|
1117
1117
|
"purpur-text-field__valid-icon": "_purpur-text-field__valid-icon_3gl1k_111"
|
|
1118
|
-
},
|
|
1118
|
+
}, un = (t) => it(t), x = en.bind(nn), f = "purpur-text-field", an = ({
|
|
1119
1119
|
["data-testid"]: t,
|
|
1120
1120
|
className: a,
|
|
1121
1121
|
clearButtonAriaLabel: n,
|
|
@@ -1124,22 +1124,23 @@ const tn = /* @__PURE__ */ Je(rn), en = {
|
|
|
1124
1124
|
endAdornment: r,
|
|
1125
1125
|
errorText: e,
|
|
1126
1126
|
helperText: u,
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1127
|
+
hideRequiredAsterisk: c = !1,
|
|
1128
|
+
label: d,
|
|
1129
|
+
loading: _ = !1,
|
|
1130
|
+
onClear: l,
|
|
1131
|
+
startAdornment: v,
|
|
1132
|
+
valid: y = !1,
|
|
1132
1133
|
...o
|
|
1133
|
-
},
|
|
1134
|
+
}, b) => {
|
|
1134
1135
|
var $;
|
|
1135
|
-
const S =
|
|
1136
|
-
|
|
1137
|
-
},
|
|
1138
|
-
var
|
|
1139
|
-
|
|
1140
|
-
},
|
|
1141
|
-
|
|
1142
|
-
|
|
1136
|
+
const S = pt(), W = o.id ?? S, w = (m) => t ? `${t}-${m}` : void 0, tr = y && !e, Z = u ? `${W}-helper-text` : void 0, F = [v].filter((m) => !!m), er = (typeof o.value == "number" ? o.value !== void 0 : ($ = o.value) == null ? void 0 : $.length) && !o.disabled && !o.readOnly && !_ && l && n, nr = un(null), et = (m) => {
|
|
1137
|
+
nr.current = m, typeof b == "function" ? b(m) : b && (b.current = m);
|
|
1138
|
+
}, nt = () => {
|
|
1139
|
+
var m;
|
|
1140
|
+
l == null || l(), (m = nr.current) == null || m.focus();
|
|
1141
|
+
}, G = [
|
|
1142
|
+
_ && /* @__PURE__ */ s(
|
|
1143
|
+
Je,
|
|
1143
1144
|
{
|
|
1144
1145
|
disabled: o.disabled,
|
|
1145
1146
|
size: "xs",
|
|
@@ -1147,88 +1148,88 @@ const tn = /* @__PURE__ */ Je(rn), en = {
|
|
|
1147
1148
|
},
|
|
1148
1149
|
"spinner"
|
|
1149
1150
|
),
|
|
1150
|
-
|
|
1151
|
-
|
|
1151
|
+
er && /* @__PURE__ */ s(
|
|
1152
|
+
Hr,
|
|
1152
1153
|
{
|
|
1153
1154
|
variant: "tertiary-purple",
|
|
1154
|
-
onClick:
|
|
1155
|
+
onClick: nt,
|
|
1155
1156
|
iconOnly: !0,
|
|
1156
1157
|
"aria-label": n ?? "",
|
|
1157
1158
|
"data-testid": w("clear-button"),
|
|
1158
1159
|
tabIndex: -1,
|
|
1159
|
-
children: /* @__PURE__ */ s(
|
|
1160
|
+
children: /* @__PURE__ */ s(Kr, { size: "xs" })
|
|
1160
1161
|
},
|
|
1161
1162
|
"clear-button"
|
|
1162
1163
|
),
|
|
1163
|
-
|
|
1164
|
-
|
|
1164
|
+
tr && /* @__PURE__ */ s(
|
|
1165
|
+
Xr,
|
|
1165
1166
|
{
|
|
1166
1167
|
"data-testid": w("valid-icon"),
|
|
1167
1168
|
className: x(`${f}__valid-icon`)
|
|
1168
1169
|
},
|
|
1169
1170
|
"valid-icon"
|
|
1170
1171
|
)
|
|
1171
|
-
].filter((
|
|
1172
|
+
].filter((m) => !!m), ut = x([
|
|
1172
1173
|
`${f}__input-container`,
|
|
1173
1174
|
{
|
|
1174
|
-
[`${f}__input-container--start-adornment`]:
|
|
1175
|
-
[`${f}__input-container--end-adornment`]:
|
|
1175
|
+
[`${f}__input-container--start-adornment`]: F.length,
|
|
1176
|
+
[`${f}__input-container--end-adornment`]: G.length || r,
|
|
1176
1177
|
[`${f}__input-container--disabled`]: o.disabled,
|
|
1177
|
-
[`${f}__input-container--has-clear-button`]:
|
|
1178
|
+
[`${f}__input-container--has-clear-button`]: er,
|
|
1178
1179
|
[`${f}__input-container--readonly`]: o.readOnly && !o.disabled
|
|
1179
1180
|
}
|
|
1180
1181
|
]);
|
|
1181
1182
|
return /* @__PURE__ */ h("div", { className: x(a, f), children: [
|
|
1182
|
-
|
|
1183
|
-
|
|
1183
|
+
d && /* @__PURE__ */ h(
|
|
1184
|
+
Ge,
|
|
1184
1185
|
{
|
|
1185
|
-
htmlFor:
|
|
1186
|
+
htmlFor: W,
|
|
1186
1187
|
className: x(`${f}__label`),
|
|
1187
1188
|
"data-testid": w("label"),
|
|
1188
1189
|
disabled: o.disabled,
|
|
1189
1190
|
children: [
|
|
1190
|
-
o.required && /* @__PURE__ */ s("span", { "aria-hidden": !0, children: "*" }),
|
|
1191
|
-
|
|
1191
|
+
o.required && !c && /* @__PURE__ */ s("span", { "aria-hidden": !0, children: "*" }),
|
|
1192
|
+
d
|
|
1192
1193
|
]
|
|
1193
1194
|
}
|
|
1194
1195
|
),
|
|
1195
1196
|
/* @__PURE__ */ h("div", { className: x(`${f}__field-row`), children: [
|
|
1196
1197
|
!!p && p,
|
|
1197
|
-
/* @__PURE__ */ h("div", { className:
|
|
1198
|
-
!!
|
|
1198
|
+
/* @__PURE__ */ h("div", { className: ut, children: [
|
|
1199
|
+
!!F.length && /* @__PURE__ */ s(
|
|
1199
1200
|
"div",
|
|
1200
1201
|
{
|
|
1201
1202
|
"data-testid": w("start-adornments"),
|
|
1202
1203
|
className: x(`${f}__adornment-container`),
|
|
1203
|
-
children:
|
|
1204
|
+
children: F
|
|
1204
1205
|
}
|
|
1205
1206
|
),
|
|
1206
1207
|
/* @__PURE__ */ s(
|
|
1207
1208
|
"input",
|
|
1208
1209
|
{
|
|
1209
1210
|
...o,
|
|
1210
|
-
id:
|
|
1211
|
-
ref:
|
|
1211
|
+
id: W,
|
|
1212
|
+
ref: et,
|
|
1212
1213
|
"data-testid": w("input"),
|
|
1213
|
-
"aria-describedby": o["aria-describedby"] ||
|
|
1214
|
+
"aria-describedby": o["aria-describedby"] || Z,
|
|
1214
1215
|
"aria-invalid": o["aria-invalid"] || !!e,
|
|
1215
1216
|
className: x([
|
|
1216
1217
|
`${f}__input`,
|
|
1217
1218
|
{
|
|
1218
|
-
[`${f}__input--valid`]:
|
|
1219
|
+
[`${f}__input--valid`]: tr,
|
|
1219
1220
|
[`${f}__input--error`]: !!e
|
|
1220
1221
|
}
|
|
1221
1222
|
])
|
|
1222
1223
|
}
|
|
1223
1224
|
),
|
|
1224
1225
|
/* @__PURE__ */ s("div", { className: x(`${f}__frame`) }),
|
|
1225
|
-
(!!
|
|
1226
|
+
(!!G.length || r) && /* @__PURE__ */ h(
|
|
1226
1227
|
"div",
|
|
1227
1228
|
{
|
|
1228
1229
|
"data-testid": w("end-adornments"),
|
|
1229
1230
|
className: x(`${f}__adornment-container`),
|
|
1230
1231
|
children: [
|
|
1231
|
-
|
|
1232
|
+
G,
|
|
1232
1233
|
r
|
|
1233
1234
|
]
|
|
1234
1235
|
}
|
|
@@ -1236,23 +1237,23 @@ const tn = /* @__PURE__ */ Je(rn), en = {
|
|
|
1236
1237
|
] }),
|
|
1237
1238
|
!!i && i
|
|
1238
1239
|
] }),
|
|
1239
|
-
|
|
1240
|
-
e && /* @__PURE__ */ s(
|
|
1240
|
+
Z && /* @__PURE__ */ s(be, { "data-testid": w("helper-text"), id: Z, children: u }),
|
|
1241
|
+
e && /* @__PURE__ */ s(fe, { "data-testid": w("error-text"), children: e })
|
|
1241
1242
|
] });
|
|
1242
|
-
},
|
|
1243
|
-
|
|
1244
|
-
function
|
|
1243
|
+
}, Qr = P(an);
|
|
1244
|
+
Qr.displayName = "TextField";
|
|
1245
|
+
function pn(t) {
|
|
1245
1246
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1246
1247
|
}
|
|
1247
|
-
var
|
|
1248
|
+
var U = { exports: {} };
|
|
1248
1249
|
/*!
|
|
1249
1250
|
Copyright (c) 2018 Jed Watson.
|
|
1250
1251
|
Licensed under the MIT License (MIT), see
|
|
1251
1252
|
http://jedwatson.github.io/classnames
|
|
1252
1253
|
*/
|
|
1253
|
-
var
|
|
1254
|
-
function
|
|
1255
|
-
return
|
|
1254
|
+
var Ir;
|
|
1255
|
+
function sn() {
|
|
1256
|
+
return Ir || (Ir = 1, function(t) {
|
|
1256
1257
|
(function() {
|
|
1257
1258
|
var a = {}.hasOwnProperty;
|
|
1258
1259
|
function n() {
|
|
@@ -1281,31 +1282,31 @@ function pn() {
|
|
|
1281
1282
|
}
|
|
1282
1283
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
1283
1284
|
})();
|
|
1284
|
-
}(
|
|
1285
|
+
}(U)), U.exports;
|
|
1285
1286
|
}
|
|
1286
|
-
var
|
|
1287
|
-
const
|
|
1287
|
+
var on = sn();
|
|
1288
|
+
const Q = /* @__PURE__ */ pn(on), z = {
|
|
1288
1289
|
WEAK: "weak",
|
|
1289
1290
|
MEDIUM: "medium",
|
|
1290
1291
|
STRONG: "strong"
|
|
1291
1292
|
}, q = {
|
|
1292
1293
|
PASSWORD: "password",
|
|
1293
1294
|
TEXT: "text"
|
|
1294
|
-
},
|
|
1295
|
+
}, ln = {
|
|
1295
1296
|
"purpur-password-field": "_purpur-password-field_co7kv_1"
|
|
1296
1297
|
};
|
|
1297
|
-
function
|
|
1298
|
+
function cn(t) {
|
|
1298
1299
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1299
1300
|
}
|
|
1300
|
-
var
|
|
1301
|
+
var Lr = { exports: {} };
|
|
1301
1302
|
/*!
|
|
1302
1303
|
Copyright (c) 2018 Jed Watson.
|
|
1303
1304
|
Licensed under the MIT License (MIT), see
|
|
1304
1305
|
http://jedwatson.github.io/classnames
|
|
1305
1306
|
*/
|
|
1306
|
-
var
|
|
1307
|
-
function
|
|
1308
|
-
return
|
|
1307
|
+
var Tr;
|
|
1308
|
+
function dn() {
|
|
1309
|
+
return Tr || (Tr = 1, function(t) {
|
|
1309
1310
|
(function() {
|
|
1310
1311
|
var a = {}.hasOwnProperty;
|
|
1311
1312
|
function n() {
|
|
@@ -1334,10 +1335,10 @@ function cn() {
|
|
|
1334
1335
|
}
|
|
1335
1336
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
1336
1337
|
})();
|
|
1337
|
-
}(
|
|
1338
|
+
}(Lr)), Lr.exports;
|
|
1338
1339
|
}
|
|
1339
|
-
var
|
|
1340
|
-
const
|
|
1340
|
+
var _n = dn();
|
|
1341
|
+
const fn = /* @__PURE__ */ cn(_n), E = {
|
|
1341
1342
|
"purpur-paragraph": "_purpur-paragraph_1rh57_1",
|
|
1342
1343
|
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
|
|
1343
1344
|
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
|
|
@@ -1352,19 +1353,19 @@ const _n = /* @__PURE__ */ ln(dn), E = {
|
|
|
1352
1353
|
"purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1rh57_60",
|
|
1353
1354
|
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
|
|
1354
1355
|
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
|
|
1355
|
-
},
|
|
1356
|
+
}, gn = {
|
|
1356
1357
|
PARAGRAPH100: "paragraph-100"
|
|
1357
|
-
}, D = "purpur-paragraph",
|
|
1358
|
+
}, D = "purpur-paragraph", rt = ({
|
|
1358
1359
|
["data-testid"]: t,
|
|
1359
1360
|
children: a,
|
|
1360
1361
|
className: n,
|
|
1361
1362
|
disabled: p,
|
|
1362
1363
|
enableHyphenation: i = !1,
|
|
1363
1364
|
negative: r = !1,
|
|
1364
|
-
variant: e =
|
|
1365
|
+
variant: e = gn.PARAGRAPH100,
|
|
1365
1366
|
...u
|
|
1366
1367
|
}) => {
|
|
1367
|
-
const
|
|
1368
|
+
const c = fn([
|
|
1368
1369
|
n,
|
|
1369
1370
|
E[D],
|
|
1370
1371
|
E[`${D}--${e}`],
|
|
@@ -1374,23 +1375,23 @@ const _n = /* @__PURE__ */ ln(dn), E = {
|
|
|
1374
1375
|
[E[`${D}--negative`]]: r
|
|
1375
1376
|
}
|
|
1376
1377
|
]);
|
|
1377
|
-
return /* @__PURE__ */ s("p", { ...u, className:
|
|
1378
|
+
return /* @__PURE__ */ s("p", { ...u, className: c, "data-testid": t, children: a });
|
|
1378
1379
|
};
|
|
1379
|
-
|
|
1380
|
-
const
|
|
1380
|
+
rt.displayName = "Paragraph";
|
|
1381
|
+
const vn = {
|
|
1381
1382
|
"purpur-password-strength": "_purpur-password-strength_sa1ua_1",
|
|
1382
1383
|
"purpur-password-strength__indicator-container": "_purpur-password-strength__indicator-container_sa1ua_6",
|
|
1383
1384
|
"purpur-password-strength__password-strength-text--weak": "_purpur-password-strength__password-strength-text--weak_sa1ua_10",
|
|
1384
1385
|
"purpur-password-strength__password-strength-text--medium": "_purpur-password-strength__password-strength-text--medium_sa1ua_13",
|
|
1385
1386
|
"purpur-password-strength__password-strength-text--strong": "_purpur-password-strength__password-strength-text--strong_sa1ua_16",
|
|
1386
1387
|
"purpur-password-strength__password-strength-label": "_purpur-password-strength__password-strength-label_sa1ua_19"
|
|
1387
|
-
},
|
|
1388
|
+
}, hn = {
|
|
1388
1389
|
"purpur-password-strength-indicator": "_purpur-password-strength-indicator_1o6zr_1",
|
|
1389
1390
|
"purpur-password-strength-indicator--active": "_purpur-password-strength-indicator--active_1o6zr_7",
|
|
1390
1391
|
"purpur-password-strength-indicator--weak": "_purpur-password-strength-indicator--weak_1o6zr_7",
|
|
1391
1392
|
"purpur-password-strength-indicator--medium": "_purpur-password-strength-indicator--medium_1o6zr_10",
|
|
1392
1393
|
"purpur-password-strength-indicator--strong": "_purpur-password-strength-indicator--strong_1o6zr_13"
|
|
1393
|
-
},
|
|
1394
|
+
}, mn = Q.bind(hn), X = "purpur-password-strength-indicator", T = P(
|
|
1394
1395
|
({
|
|
1395
1396
|
["data-testid"]: t = "password-strength-indicator",
|
|
1396
1397
|
active: a,
|
|
@@ -1398,18 +1399,18 @@ const gn = {
|
|
|
1398
1399
|
passwordStrength: p,
|
|
1399
1400
|
...i
|
|
1400
1401
|
}, r) => {
|
|
1401
|
-
const e =
|
|
1402
|
+
const e = mn([
|
|
1402
1403
|
n,
|
|
1403
|
-
|
|
1404
|
-
{ [`${
|
|
1405
|
-
{ [`${
|
|
1404
|
+
X,
|
|
1405
|
+
{ [`${X}--${p}`]: p },
|
|
1406
|
+
{ [`${X}--active`]: a }
|
|
1406
1407
|
]);
|
|
1407
1408
|
return /* @__PURE__ */ s("div", { ...i, "data-testid": t, className: e, ref: r });
|
|
1408
1409
|
}
|
|
1409
1410
|
);
|
|
1410
1411
|
T.displayName = "PasswordStrengthIndicator";
|
|
1411
|
-
const
|
|
1412
|
-
const [i, r] = L(0), [e, u] = L(), [
|
|
1412
|
+
const bn = (t, a, n, p) => {
|
|
1413
|
+
const [i, r] = L(0), [e, u] = L(), [c, d] = L(void 0), _ = st(
|
|
1413
1414
|
() => ({
|
|
1414
1415
|
0: [z.WEAK, a],
|
|
1415
1416
|
1: [z.WEAK, a],
|
|
@@ -1419,21 +1420,21 @@ const mn = (t, a, n, p) => {
|
|
|
1419
1420
|
}),
|
|
1420
1421
|
[a, n, p]
|
|
1421
1422
|
);
|
|
1422
|
-
return
|
|
1423
|
+
return ot(() => {
|
|
1423
1424
|
(async () => {
|
|
1424
1425
|
if (!t)
|
|
1425
1426
|
r(0), u(void 0), d(void 0);
|
|
1426
1427
|
else {
|
|
1427
|
-
const { default:
|
|
1428
|
-
r(v), u(
|
|
1428
|
+
const { default: l } = await import("./main-Bfa6Eaa6.mjs").then((b) => b.m), { score: v } = l(t), [y, o] = _[v];
|
|
1429
|
+
r(v), u(y), d(o);
|
|
1429
1430
|
}
|
|
1430
1431
|
})();
|
|
1431
|
-
}, [t,
|
|
1432
|
+
}, [t, _]), {
|
|
1432
1433
|
score: i,
|
|
1433
1434
|
passwordStrength: e,
|
|
1434
|
-
currentPasswordStrengthText:
|
|
1435
|
+
currentPasswordStrengthText: c
|
|
1435
1436
|
};
|
|
1436
|
-
}, I =
|
|
1437
|
+
}, I = Q.bind(vn), B = "purpur-password-strength", rr = P(
|
|
1437
1438
|
({
|
|
1438
1439
|
["data-testid"]: t = "password-strength",
|
|
1439
1440
|
className: a,
|
|
@@ -1443,45 +1444,45 @@ const mn = (t, a, n, p) => {
|
|
|
1443
1444
|
mediumText: r,
|
|
1444
1445
|
strongText: e,
|
|
1445
1446
|
...u
|
|
1446
|
-
},
|
|
1447
|
-
const d = I([a, B]), { score:
|
|
1447
|
+
}, c) => {
|
|
1448
|
+
const d = I([a, B]), { score: _, passwordStrength: l, currentPasswordStrengthText: v } = bn(
|
|
1448
1449
|
n,
|
|
1449
1450
|
i,
|
|
1450
1451
|
r,
|
|
1451
1452
|
e
|
|
1452
1453
|
);
|
|
1453
|
-
return /* @__PURE__ */ h("div", { "data-testid": t, className: d, ref:
|
|
1454
|
+
return /* @__PURE__ */ h("div", { "data-testid": t, className: d, ref: c, ...u, children: [
|
|
1454
1455
|
/* @__PURE__ */ h("div", { className: I(`${B}__indicator-container`), children: [
|
|
1455
1456
|
/* @__PURE__ */ s(
|
|
1456
1457
|
T,
|
|
1457
1458
|
{
|
|
1458
|
-
active: !!
|
|
1459
|
-
passwordStrength:
|
|
1459
|
+
active: !!l,
|
|
1460
|
+
passwordStrength: l
|
|
1460
1461
|
}
|
|
1461
1462
|
),
|
|
1462
1463
|
/* @__PURE__ */ s(
|
|
1463
1464
|
T,
|
|
1464
1465
|
{
|
|
1465
|
-
active: !!
|
|
1466
|
-
passwordStrength:
|
|
1466
|
+
active: !!l && _ > 1,
|
|
1467
|
+
passwordStrength: l
|
|
1467
1468
|
}
|
|
1468
1469
|
),
|
|
1469
1470
|
/* @__PURE__ */ s(
|
|
1470
1471
|
T,
|
|
1471
1472
|
{
|
|
1472
|
-
active: !!
|
|
1473
|
-
passwordStrength:
|
|
1473
|
+
active: !!l && _ > 2,
|
|
1474
|
+
passwordStrength: l
|
|
1474
1475
|
}
|
|
1475
1476
|
)
|
|
1476
1477
|
] }),
|
|
1477
1478
|
/* @__PURE__ */ h(
|
|
1478
|
-
|
|
1479
|
+
rt,
|
|
1479
1480
|
{
|
|
1480
1481
|
"aria-live": "polite",
|
|
1481
1482
|
"data-testid": `${t}-text`,
|
|
1482
1483
|
className: I([
|
|
1483
1484
|
`${B}__password-strength-text`,
|
|
1484
|
-
{ [`${B}__password-strength-text--${
|
|
1485
|
+
{ [`${B}__password-strength-text--${l}`]: l }
|
|
1485
1486
|
]),
|
|
1486
1487
|
children: [
|
|
1487
1488
|
/* @__PURE__ */ h("span", { className: I(`${B}__password-strength-label`), children: [
|
|
@@ -1495,8 +1496,8 @@ const mn = (t, a, n, p) => {
|
|
|
1495
1496
|
] });
|
|
1496
1497
|
}
|
|
1497
1498
|
);
|
|
1498
|
-
|
|
1499
|
-
const
|
|
1499
|
+
rr.displayName = "PasswordStrength";
|
|
1500
|
+
const Wr = Q.bind(ln), Zr = "purpur-password-field", tt = P(
|
|
1500
1501
|
({
|
|
1501
1502
|
["data-testid"]: t = "password-field",
|
|
1502
1503
|
children: a,
|
|
@@ -1506,22 +1507,22 @@ const Tr = J.bind(on), Wr = "purpur-password-field", rt = P(
|
|
|
1506
1507
|
showPasswordAriaLabel: r,
|
|
1507
1508
|
...e
|
|
1508
1509
|
}, u) => {
|
|
1509
|
-
const
|
|
1510
|
-
i == null || i(
|
|
1510
|
+
const c = Wr([n, Zr]), [d, _] = L(q.PASSWORD), l = async (o) => {
|
|
1511
|
+
i == null || i(o);
|
|
1511
1512
|
}, v = () => {
|
|
1512
|
-
|
|
1513
|
-
},
|
|
1514
|
-
return /* @__PURE__ */ h("div", { className:
|
|
1513
|
+
_(d === q.PASSWORD ? q.TEXT : q.PASSWORD);
|
|
1514
|
+
}, y = d === q.PASSWORD ? Vr : Gr;
|
|
1515
|
+
return /* @__PURE__ */ h("div", { className: c, children: [
|
|
1515
1516
|
/* @__PURE__ */ s(
|
|
1516
|
-
|
|
1517
|
+
Qr,
|
|
1517
1518
|
{
|
|
1518
|
-
className:
|
|
1519
|
+
className: Wr(`${Zr}__text-field`),
|
|
1519
1520
|
"data-testid": t,
|
|
1520
|
-
onChange:
|
|
1521
|
+
onChange: l,
|
|
1521
1522
|
ref: u,
|
|
1522
1523
|
type: d,
|
|
1523
1524
|
endAdornment: /* @__PURE__ */ s(
|
|
1524
|
-
|
|
1525
|
+
Fr,
|
|
1525
1526
|
{
|
|
1526
1527
|
"aria-label": d === q.PASSWORD ? r : p,
|
|
1527
1528
|
"data-testid": `${t}-type-toggle-button`,
|
|
@@ -1529,7 +1530,7 @@ const Tr = J.bind(on), Wr = "purpur-password-field", rt = P(
|
|
|
1529
1530
|
size: "sm",
|
|
1530
1531
|
variant: "tertiary-purple",
|
|
1531
1532
|
iconOnly: !0,
|
|
1532
|
-
children: /* @__PURE__ */ s(
|
|
1533
|
+
children: /* @__PURE__ */ s(y, { size: "sm" })
|
|
1533
1534
|
}
|
|
1534
1535
|
),
|
|
1535
1536
|
...e
|
|
@@ -1539,12 +1540,12 @@ const Tr = J.bind(on), Wr = "purpur-password-field", rt = P(
|
|
|
1539
1540
|
] });
|
|
1540
1541
|
}
|
|
1541
1542
|
);
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
const
|
|
1543
|
+
tt.PasswordStrength = rr;
|
|
1544
|
+
tt.displayName = "PasswordField";
|
|
1545
|
+
const $n = (t) => lt(t) && (t == null ? void 0 : t.type) === rr;
|
|
1545
1546
|
export {
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1547
|
+
tt as P,
|
|
1548
|
+
pn as g,
|
|
1549
|
+
$n as i
|
|
1549
1550
|
};
|
|
1550
|
-
//# sourceMappingURL=password-field-
|
|
1551
|
+
//# sourceMappingURL=password-field-X65O9liQ.mjs.map
|