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