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