@purpurds/password-field 8.4.0 → 8.5.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.
@@ -1,11 +1,11 @@
1
- import { jsxs as h, jsx as s } from "react/jsx-runtime";
1
+ import { jsxs as v, jsx as s } from "react/jsx-runtime";
2
2
  import * as g from "react";
3
- import { forwardRef as O, useId as Yr, useRef as Jr, useState as z, useMemo as Qr, useEffect as rt, isValidElement as tt } from "react";
3
+ import { forwardRef as O, useId as et, useRef as nt, useState as z, useMemo as ut, useEffect as pt, isValidElement as at } from "react";
4
4
  import "react-dom";
5
- const et = {
5
+ const it = {
6
6
  LG: "lg"
7
7
  };
8
- function nt(t) {
8
+ function st(t) {
9
9
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
10
10
  }
11
11
  var Q = { exports: {} };
@@ -15,7 +15,7 @@ var Q = { exports: {} };
15
15
  http://jedwatson.github.io/classnames
16
16
  */
17
17
  var rr;
18
- function ut() {
18
+ function ot() {
19
19
  return rr || (rr = 1, (function(t) {
20
20
  (function() {
21
21
  var p = {}.hasOwnProperty;
@@ -47,27 +47,28 @@ function ut() {
47
47
  })();
48
48
  })(Q)), Q.exports;
49
49
  }
50
- var pt = ut();
51
- const at = /* @__PURE__ */ nt(pt), it = "_rotate_12t9p_1", st = "_dash_12t9p_1", ot = {
50
+ var lt = ot();
51
+ const ct = /* @__PURE__ */ st(lt), _t = "_rotate_12t9p_1", dt = "_dash_12t9p_1", ft = {
52
52
  "purpur-spinner": "_purpur-spinner_12t9p_2",
53
- rotate: it,
53
+ rotate: _t,
54
54
  "purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
55
55
  "purpur-spinner--xs": "_purpur-spinner--xs_12t9p_10",
56
56
  "purpur-spinner--sm": "_purpur-spinner--sm_12t9p_14",
57
57
  "purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
58
58
  "purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
59
59
  "purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
60
- dash: st,
60
+ dash: dt,
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
- }, tr = at.bind(ot), P = "purpur-spinner", lt = {
63
+ }, tr = ct.bind(ft), P = "purpur-spinner", gt = {
64
64
  SM: "sm"
65
- }, ct = ({
65
+ }, Dr = ({
66
66
  disabled: t = !1,
67
67
  negative: p = !1,
68
- size: n = lt.SM,
69
- ...i
70
- }) => /* @__PURE__ */ s("div", { className: tr(P, `${P}--${n}`), ...i, children: /* @__PURE__ */ s("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ s(
68
+ size: n = gt.SM,
69
+ className: i,
70
+ ...a
71
+ }) => /* @__PURE__ */ s("div", { className: tr(P, `${P}--${n}`, i), ...a, children: /* @__PURE__ */ s("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ s(
71
72
  "circle",
72
73
  {
73
74
  className: tr(`${P}__circle`, {
@@ -79,7 +80,8 @@ const at = /* @__PURE__ */ nt(pt), it = "_rotate_12t9p_1", st = "_dash_12t9p_1",
79
80
  r: "20"
80
81
  }
81
82
  ) }) });
82
- function dt(t) {
83
+ Dr.displayName = "Spinner";
84
+ function ht(t) {
83
85
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
84
86
  }
85
87
  var er = { exports: {} };
@@ -89,7 +91,7 @@ var er = { exports: {} };
89
91
  http://jedwatson.github.io/classnames
90
92
  */
91
93
  var nr;
92
- function _t() {
94
+ function vt() {
93
95
  return nr || (nr = 1, (function(t) {
94
96
  (function() {
95
97
  var p = {}.hasOwnProperty;
@@ -121,30 +123,31 @@ function _t() {
121
123
  })();
122
124
  })(er)), er.exports;
123
125
  }
124
- var ft = _t();
125
- const gt = /* @__PURE__ */ dt(ft), vt = {
126
- "purpur-button": "_purpur-button_cjx7j_1",
127
- "purpur-button--xs": "_purpur-button--xs_cjx7j_22",
128
- "purpur-button--icon-only": "_purpur-button--icon-only_cjx7j_25",
129
- "purpur-button--sm": "_purpur-button--sm_cjx7j_28",
130
- "purpur-button--md": "_purpur-button--md_cjx7j_34",
131
- "purpur-button--lg": "_purpur-button--lg_cjx7j_40",
132
- "purpur-button--full-width": "_purpur-button--full-width_cjx7j_46",
133
- "purpur-button--primary": "_purpur-button--primary_cjx7j_64",
134
- "purpur-button--disabled": "_purpur-button--disabled_cjx7j_68",
135
- "purpur-button--primary-negative": "_purpur-button--primary-negative_cjx7j_74",
136
- "purpur-button--secondary": "_purpur-button--secondary_cjx7j_86",
137
- "purpur-button--secondary-negative": "_purpur-button--secondary-negative_cjx7j_97",
138
- "purpur-button--expressive": "_purpur-button--expressive_cjx7j_108",
139
- "purpur-button--expressive-negative": "_purpur-button--expressive-negative_cjx7j_118",
140
- "purpur-button--negative": "_purpur-button--negative_cjx7j_130",
141
- "purpur-button--destructive": "_purpur-button--destructive_cjx7j_137",
142
- "purpur-button--destructive-negative": "_purpur-button--destructive-negative_cjx7j_147",
143
- "purpur-button--tertiary-purple": "_purpur-button--tertiary-purple_cjx7j_157",
144
- "purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_cjx7j_170",
145
- "purpur-button--text-negative": "_purpur-button--text-negative_cjx7j_185",
146
- "purpur-button--text": "_purpur-button--text_cjx7j_185"
147
- }, ht = gt.bind(vt), j = "purpur-button", Er = O(
126
+ var mt = vt();
127
+ const bt = /* @__PURE__ */ ht(mt), yt = {
128
+ "purpur-button": "_purpur-button_10jh0_1",
129
+ "purpur-button--xs": "_purpur-button--xs_10jh0_22",
130
+ "purpur-button--icon-only": "_purpur-button--icon-only_10jh0_25",
131
+ "purpur-button--sm": "_purpur-button--sm_10jh0_28",
132
+ "purpur-button--md": "_purpur-button--md_10jh0_34",
133
+ "purpur-button--lg": "_purpur-button--lg_10jh0_40",
134
+ "purpur-button--full-width": "_purpur-button--full-width_10jh0_46",
135
+ "purpur-button--primary": "_purpur-button--primary_10jh0_64",
136
+ "purpur-button--disabled": "_purpur-button--disabled_10jh0_68",
137
+ "purpur-button--primary-negative": "_purpur-button--primary-negative_10jh0_74",
138
+ "purpur-button--secondary": "_purpur-button--secondary_10jh0_86",
139
+ "purpur-button--secondary-negative": "_purpur-button--secondary-negative_10jh0_97",
140
+ "purpur-button--expressive": "_purpur-button--expressive_10jh0_108",
141
+ "purpur-button--expressive-negative": "_purpur-button--expressive-negative_10jh0_118",
142
+ "purpur-button--negative": "_purpur-button--negative_10jh0_130",
143
+ "purpur-button--destructive": "_purpur-button--destructive_10jh0_137",
144
+ "purpur-button--destructive-negative": "_purpur-button--destructive-negative_10jh0_147",
145
+ "purpur-button--tertiary-purple": "_purpur-button--tertiary-purple_10jh0_157",
146
+ "purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_10jh0_170",
147
+ "purpur-button--text-negative": "_purpur-button--text-negative_10jh0_185",
148
+ "purpur-button--text": "_purpur-button--text_10jh0_185",
149
+ "purpur-button__spinner": "_purpur-button__spinner_10jh0_235"
150
+ }, ur = bt.bind(yt), S = "purpur-button", Br = O(
148
151
  ({
149
152
  children: t,
150
153
  className: p,
@@ -154,45 +157,46 @@ const gt = /* @__PURE__ */ dt(ft), vt = {
154
157
  loading: r = !1,
155
158
  negative: e = !1,
156
159
  onClick: u,
157
- size: d = "md",
160
+ size: _ = "md",
158
161
  variant: o,
159
- type: _ = "button",
162
+ type: d = "button",
160
163
  ...l
161
- }, v) => {
164
+ }, h) => {
162
165
  if (a && o === "destructive")
163
166
  return null;
164
- const x = ht(
167
+ const y = ur(
165
168
  [
166
- j,
167
- `${j}--${e ? `${o}-negative` : o}`,
168
- `${j}--${d}`
169
+ S,
170
+ `${S}--${e ? `${o}-negative` : o}`,
171
+ `${S}--${_}`
169
172
  ],
170
173
  {
171
- [`${j}--icon-only`]: a,
172
- [`${j}--negative`]: e,
173
- [`${j}--full-width`]: i,
174
- [`${j}--disabled`]: n || r
174
+ [`${S}--icon-only`]: a,
175
+ [`${S}--negative`]: e,
176
+ [`${S}--full-width`]: i,
177
+ [`${S}--disabled`]: n || r
175
178
  },
176
179
  p
177
180
  ), c = ($) => {
178
181
  n || r ? $.preventDefault() : u && u($);
179
182
  }, m = !!l["aria-disabled"] || n || r;
180
- return /* @__PURE__ */ h(
183
+ return /* @__PURE__ */ v(
181
184
  "button",
182
185
  {
183
- className: x,
184
- type: _,
185
- ref: v,
186
+ className: y,
187
+ type: d,
188
+ ref: h,
186
189
  "aria-disabled": m,
187
190
  onClick: c,
188
191
  ...l,
189
192
  children: [
190
193
  r && /* @__PURE__ */ s(
191
- ct,
194
+ Dr,
192
195
  {
193
- size: d === et.LG ? "xs" : "xxs",
196
+ size: _ === it.LG ? "xs" : "xxs",
194
197
  negative: e,
195
- disabled: m
198
+ disabled: m,
199
+ className: ur(`${S}__spinner`)
196
200
  }
197
201
  ),
198
202
  " ",
@@ -202,19 +206,19 @@ const gt = /* @__PURE__ */ dt(ft), vt = {
202
206
  );
203
207
  }
204
208
  );
205
- Er.displayName = "Button";
206
- function mt(t) {
209
+ Br.displayName = "Button";
210
+ function xt(t) {
207
211
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
208
212
  }
209
- var ur = { exports: {} };
213
+ var pr = { exports: {} };
210
214
  /*!
211
215
  Copyright (c) 2018 Jed Watson.
212
216
  Licensed under the MIT License (MIT), see
213
217
  http://jedwatson.github.io/classnames
214
218
  */
215
- var pr;
216
- function bt() {
217
- return pr || (pr = 1, (function(t) {
219
+ var ar;
220
+ function wt() {
221
+ return ar || (ar = 1, (function(t) {
218
222
  (function() {
219
223
  var p = {}.hasOwnProperty;
220
224
  function n() {
@@ -243,10 +247,10 @@ function bt() {
243
247
  }
244
248
  t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
245
249
  })();
246
- })(ur)), ur.exports;
250
+ })(pr)), pr.exports;
247
251
  }
248
- var xt = bt();
249
- const yt = /* @__PURE__ */ mt(xt), wt = {
252
+ var $t = wt();
253
+ const St = /* @__PURE__ */ xt($t), jt = {
250
254
  "purpur-icon": "_purpur-icon_8u1lq_1",
251
255
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
252
256
  "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
@@ -254,51 +258,51 @@ const yt = /* @__PURE__ */ mt(xt), wt = {
254
258
  "purpur-icon--md": "_purpur-icon--md_8u1lq_16",
255
259
  "purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
256
260
  "purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
257
- }, $t = yt.bind(wt), ar = "purpur-icon", jt = "md", St = (t) => t.filter((p) => Object.keys(p).length >= 1).map((p) => `${p.name}="${p.value}"`).join(" "), Nt = ({ content: t = "", title: p } = {}) => {
261
+ }, Nt = St.bind(jt), ir = "purpur-icon", Ot = "md", Pt = (t) => t.filter((p) => Object.keys(p).length >= 1).map((p) => `${p.name}="${p.value}"`).join(" "), At = ({ content: t = "", title: p } = {}) => {
258
262
  const n = [
259
263
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
260
264
  { name: "fill", value: "currentColor" },
261
265
  { name: "viewBox", value: "0 0 24 24" },
262
266
  p ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
263
267
  ], i = p ? `<title>${p}</title>` : "";
264
- return `<svg ${St(n)}>${i}${t}</svg>`;
265
- }, Ot = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), V = ({ svg: t, allyTitle: p, className: n, size: i = jt, ...a }) => {
266
- const r = Nt({
267
- content: Ot(t.svg),
268
+ return `<svg ${Pt(n)}>${i}${t}</svg>`;
269
+ }, Mt = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), V = ({ svg: t, allyTitle: p, className: n, size: i = Ot, ...a }) => {
270
+ const r = At({
271
+ content: Mt(t.svg),
268
272
  title: p
269
- }), e = $t(n, ar, `${ar}--${i}`);
273
+ }), e = Nt(n, ir, `${ir}--${i}`);
270
274
  return /* @__PURE__ */ s("span", { className: e, dangerouslySetInnerHTML: { __html: r }, ...a });
271
275
  };
272
276
  V.displayName = "Icon";
273
- const Pt = {
277
+ const Ct = {
274
278
  name: "password-invisible",
275
279
  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
280
  keywords: ["password-invisible"],
277
281
  category: "action"
278
- }, Ir = (t) => /* @__PURE__ */ s(V, { ...t, svg: Pt });
279
- Ir.displayName = "IconPasswordInvisible";
280
- const At = {
282
+ }, Lr = (t) => /* @__PURE__ */ s(V, { ...t, svg: Ct });
283
+ Lr.displayName = "IconPasswordInvisible";
284
+ const kt = {
281
285
  name: "password-visible",
282
286
  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
287
  keywords: ["password-visible"],
284
288
  category: "action"
285
- }, Dr = (t) => /* @__PURE__ */ s(V, { ...t, svg: At });
286
- Dr.displayName = "IconPasswordVisible";
287
- const Mt = {
289
+ }, Tr = (t) => /* @__PURE__ */ s(V, { ...t, svg: kt });
290
+ Tr.displayName = "IconPasswordVisible";
291
+ const Rt = {
288
292
  LG: "lg"
289
293
  };
290
- function Ct(t) {
294
+ function qt(t) {
291
295
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
292
296
  }
293
- var ir = { exports: {} };
297
+ var sr = { exports: {} };
294
298
  /*!
295
299
  Copyright (c) 2018 Jed Watson.
296
300
  Licensed under the MIT License (MIT), see
297
301
  http://jedwatson.github.io/classnames
298
302
  */
299
- var sr;
300
- function kt() {
301
- return sr || (sr = 1, (function(t) {
303
+ var or;
304
+ function zt() {
305
+ return or || (or = 1, (function(t) {
302
306
  (function() {
303
307
  var p = {}.hasOwnProperty;
304
308
  function n() {
@@ -327,32 +331,33 @@ function kt() {
327
331
  }
328
332
  t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
329
333
  })();
330
- })(ir)), ir.exports;
334
+ })(sr)), sr.exports;
331
335
  }
332
- var Rt = kt();
333
- const qt = /* @__PURE__ */ Ct(Rt), zt = "_rotate_12t9p_1", Et = "_dash_12t9p_1", It = {
336
+ var Et = zt();
337
+ const It = /* @__PURE__ */ qt(Et), Dt = "_rotate_12t9p_1", Bt = "_dash_12t9p_1", Lt = {
334
338
  "purpur-spinner": "_purpur-spinner_12t9p_2",
335
- rotate: zt,
339
+ rotate: Dt,
336
340
  "purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
337
341
  "purpur-spinner--xs": "_purpur-spinner--xs_12t9p_10",
338
342
  "purpur-spinner--sm": "_purpur-spinner--sm_12t9p_14",
339
343
  "purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
340
344
  "purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
341
345
  "purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
342
- dash: Et,
346
+ dash: Bt,
343
347
  "purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
344
348
  "purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
345
- }, or = qt.bind(It), A = "purpur-spinner", Dt = {
349
+ }, lr = It.bind(Lt), A = "purpur-spinner", Tt = {
346
350
  SM: "sm"
347
- }, Bt = ({
351
+ }, Wr = ({
348
352
  disabled: t = !1,
349
353
  negative: p = !1,
350
- size: n = Dt.SM,
351
- ...i
352
- }) => /* @__PURE__ */ s("div", { className: or(A, `${A}--${n}`), ...i, children: /* @__PURE__ */ s("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ s(
354
+ size: n = Tt.SM,
355
+ className: i,
356
+ ...a
357
+ }) => /* @__PURE__ */ s("div", { className: lr(A, `${A}--${n}`, i), ...a, children: /* @__PURE__ */ s("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ s(
353
358
  "circle",
354
359
  {
355
- className: or(`${A}__circle`, {
360
+ className: lr(`${A}__circle`, {
356
361
  [`${A}__circle--disabled`]: t,
357
362
  [`${A}__circle--negative`]: p
358
363
  }),
@@ -361,18 +366,19 @@ const qt = /* @__PURE__ */ Ct(Rt), zt = "_rotate_12t9p_1", Et = "_dash_12t9p_1",
361
366
  r: "20"
362
367
  }
363
368
  ) }) });
364
- function Lt(t) {
369
+ Wr.displayName = "Spinner";
370
+ function Wt(t) {
365
371
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
366
372
  }
367
- var lr = { exports: {} };
373
+ var cr = { exports: {} };
368
374
  /*!
369
375
  Copyright (c) 2018 Jed Watson.
370
376
  Licensed under the MIT License (MIT), see
371
377
  http://jedwatson.github.io/classnames
372
378
  */
373
- var cr;
374
- function Tt() {
375
- return cr || (cr = 1, (function(t) {
379
+ var _r;
380
+ function Zt() {
381
+ return _r || (_r = 1, (function(t) {
376
382
  (function() {
377
383
  var p = {}.hasOwnProperty;
378
384
  function n() {
@@ -401,32 +407,33 @@ function Tt() {
401
407
  }
402
408
  t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
403
409
  })();
404
- })(lr)), lr.exports;
410
+ })(cr)), cr.exports;
405
411
  }
406
- var Wt = Tt();
407
- const Zt = /* @__PURE__ */ Lt(Wt), Ft = {
408
- "purpur-button": "_purpur-button_cjx7j_1",
409
- "purpur-button--xs": "_purpur-button--xs_cjx7j_22",
410
- "purpur-button--icon-only": "_purpur-button--icon-only_cjx7j_25",
411
- "purpur-button--sm": "_purpur-button--sm_cjx7j_28",
412
- "purpur-button--md": "_purpur-button--md_cjx7j_34",
413
- "purpur-button--lg": "_purpur-button--lg_cjx7j_40",
414
- "purpur-button--full-width": "_purpur-button--full-width_cjx7j_46",
415
- "purpur-button--primary": "_purpur-button--primary_cjx7j_64",
416
- "purpur-button--disabled": "_purpur-button--disabled_cjx7j_68",
417
- "purpur-button--primary-negative": "_purpur-button--primary-negative_cjx7j_74",
418
- "purpur-button--secondary": "_purpur-button--secondary_cjx7j_86",
419
- "purpur-button--secondary-negative": "_purpur-button--secondary-negative_cjx7j_97",
420
- "purpur-button--expressive": "_purpur-button--expressive_cjx7j_108",
421
- "purpur-button--expressive-negative": "_purpur-button--expressive-negative_cjx7j_118",
422
- "purpur-button--negative": "_purpur-button--negative_cjx7j_130",
423
- "purpur-button--destructive": "_purpur-button--destructive_cjx7j_137",
424
- "purpur-button--destructive-negative": "_purpur-button--destructive-negative_cjx7j_147",
425
- "purpur-button--tertiary-purple": "_purpur-button--tertiary-purple_cjx7j_157",
426
- "purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_cjx7j_170",
427
- "purpur-button--text-negative": "_purpur-button--text-negative_cjx7j_185",
428
- "purpur-button--text": "_purpur-button--text_cjx7j_185"
429
- }, Gt = Zt.bind(Ft), S = "purpur-button", Br = O(
412
+ var Gt = Zt();
413
+ const Ft = /* @__PURE__ */ Wt(Gt), Vt = {
414
+ "purpur-button": "_purpur-button_10jh0_1",
415
+ "purpur-button--xs": "_purpur-button--xs_10jh0_22",
416
+ "purpur-button--icon-only": "_purpur-button--icon-only_10jh0_25",
417
+ "purpur-button--sm": "_purpur-button--sm_10jh0_28",
418
+ "purpur-button--md": "_purpur-button--md_10jh0_34",
419
+ "purpur-button--lg": "_purpur-button--lg_10jh0_40",
420
+ "purpur-button--full-width": "_purpur-button--full-width_10jh0_46",
421
+ "purpur-button--primary": "_purpur-button--primary_10jh0_64",
422
+ "purpur-button--disabled": "_purpur-button--disabled_10jh0_68",
423
+ "purpur-button--primary-negative": "_purpur-button--primary-negative_10jh0_74",
424
+ "purpur-button--secondary": "_purpur-button--secondary_10jh0_86",
425
+ "purpur-button--secondary-negative": "_purpur-button--secondary-negative_10jh0_97",
426
+ "purpur-button--expressive": "_purpur-button--expressive_10jh0_108",
427
+ "purpur-button--expressive-negative": "_purpur-button--expressive-negative_10jh0_118",
428
+ "purpur-button--negative": "_purpur-button--negative_10jh0_130",
429
+ "purpur-button--destructive": "_purpur-button--destructive_10jh0_137",
430
+ "purpur-button--destructive-negative": "_purpur-button--destructive-negative_10jh0_147",
431
+ "purpur-button--tertiary-purple": "_purpur-button--tertiary-purple_10jh0_157",
432
+ "purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_10jh0_170",
433
+ "purpur-button--text-negative": "_purpur-button--text-negative_10jh0_185",
434
+ "purpur-button--text": "_purpur-button--text_10jh0_185",
435
+ "purpur-button__spinner": "_purpur-button__spinner_10jh0_235"
436
+ }, dr = Ft.bind(Vt), j = "purpur-button", Zr = O(
430
437
  ({
431
438
  children: t,
432
439
  className: p,
@@ -436,45 +443,46 @@ const Zt = /* @__PURE__ */ Lt(Wt), Ft = {
436
443
  loading: r = !1,
437
444
  negative: e = !1,
438
445
  onClick: u,
439
- size: d = "md",
446
+ size: _ = "md",
440
447
  variant: o,
441
- type: _ = "button",
448
+ type: d = "button",
442
449
  ...l
443
- }, v) => {
450
+ }, h) => {
444
451
  if (a && o === "destructive")
445
452
  return null;
446
- const x = Gt(
453
+ const y = dr(
447
454
  [
448
- S,
449
- `${S}--${e ? `${o}-negative` : o}`,
450
- `${S}--${d}`
455
+ j,
456
+ `${j}--${e ? `${o}-negative` : o}`,
457
+ `${j}--${_}`
451
458
  ],
452
459
  {
453
- [`${S}--icon-only`]: a,
454
- [`${S}--negative`]: e,
455
- [`${S}--full-width`]: i,
456
- [`${S}--disabled`]: n || r
460
+ [`${j}--icon-only`]: a,
461
+ [`${j}--negative`]: e,
462
+ [`${j}--full-width`]: i,
463
+ [`${j}--disabled`]: n || r
457
464
  },
458
465
  p
459
466
  ), c = ($) => {
460
467
  n || r ? $.preventDefault() : u && u($);
461
468
  }, m = !!l["aria-disabled"] || n || r;
462
- return /* @__PURE__ */ h(
469
+ return /* @__PURE__ */ v(
463
470
  "button",
464
471
  {
465
- className: x,
466
- type: _,
467
- ref: v,
472
+ className: y,
473
+ type: d,
474
+ ref: h,
468
475
  "aria-disabled": m,
469
476
  onClick: c,
470
477
  ...l,
471
478
  children: [
472
479
  r && /* @__PURE__ */ s(
473
- Bt,
480
+ Wr,
474
481
  {
475
- size: d === Mt.LG ? "xs" : "xxs",
482
+ size: _ === Rt.LG ? "xs" : "xxs",
476
483
  negative: e,
477
- disabled: m
484
+ disabled: m,
485
+ className: dr(`${j}__spinner`)
478
486
  }
479
487
  ),
480
488
  " ",
@@ -484,19 +492,19 @@ const Zt = /* @__PURE__ */ Lt(Wt), Ft = {
484
492
  );
485
493
  }
486
494
  );
487
- Br.displayName = "Button";
488
- function Vt(t) {
495
+ Zr.displayName = "Button";
496
+ function Ht(t) {
489
497
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
490
498
  }
491
- var dr = { exports: {} };
499
+ var fr = { exports: {} };
492
500
  /*!
493
501
  Copyright (c) 2018 Jed Watson.
494
502
  Licensed under the MIT License (MIT), see
495
503
  http://jedwatson.github.io/classnames
496
504
  */
497
- var _r;
498
- function Ht() {
499
- return _r || (_r = 1, (function(t) {
505
+ var gr;
506
+ function Kt() {
507
+ return gr || (gr = 1, (function(t) {
500
508
  (function() {
501
509
  var p = {}.hasOwnProperty;
502
510
  function n() {
@@ -525,10 +533,10 @@ function Ht() {
525
533
  }
526
534
  t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
527
535
  })();
528
- })(dr)), dr.exports;
536
+ })(fr)), fr.exports;
529
537
  }
530
- var Kt = Ht();
531
- const Ut = /* @__PURE__ */ Vt(Kt), Xt = {
538
+ var Ut = Kt();
539
+ const Yt = /* @__PURE__ */ Ht(Ut), Xt = {
532
540
  "purpur-icon": "_purpur-icon_8u1lq_1",
533
541
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
534
542
  "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
@@ -536,40 +544,40 @@ const Ut = /* @__PURE__ */ Vt(Kt), Xt = {
536
544
  "purpur-icon--md": "_purpur-icon--md_8u1lq_16",
537
545
  "purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
538
546
  "purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
539
- }, Yt = Ut.bind(Xt), fr = "purpur-icon", Jt = "md", Qt = (t) => t.filter((p) => Object.keys(p).length >= 1).map((p) => `${p.name}="${p.value}"`).join(" "), re = ({ content: t = "", title: p } = {}) => {
547
+ }, Jt = Yt.bind(Xt), hr = "purpur-icon", Qt = "md", re = (t) => t.filter((p) => Object.keys(p).length >= 1).map((p) => `${p.name}="${p.value}"`).join(" "), te = ({ content: t = "", title: p } = {}) => {
540
548
  const n = [
541
549
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
542
550
  { name: "fill", value: "currentColor" },
543
551
  { name: "viewBox", value: "0 0 24 24" },
544
552
  p ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
545
553
  ], i = p ? `<title>${p}</title>` : "";
546
- return `<svg ${Qt(n)}>${i}${t}</svg>`;
547
- }, te = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Lr = ({ svg: t, allyTitle: p, className: n, size: i = Jt, ...a }) => {
548
- const r = re({
549
- content: te(t.svg),
554
+ return `<svg ${re(n)}>${i}${t}</svg>`;
555
+ }, ee = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Gr = ({ svg: t, allyTitle: p, className: n, size: i = Qt, ...a }) => {
556
+ const r = te({
557
+ content: ee(t.svg),
550
558
  title: p
551
- }), e = Yt(n, fr, `${fr}--${i}`);
559
+ }), e = Jt(n, hr, `${hr}--${i}`);
552
560
  return /* @__PURE__ */ s("span", { className: e, dangerouslySetInnerHTML: { __html: r }, ...a });
553
561
  };
554
- Lr.displayName = "Icon";
555
- const ee = {
562
+ Gr.displayName = "Icon";
563
+ const ne = {
556
564
  name: "error-filled",
557
565
  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
566
  keywords: ["error-filled"],
559
567
  category: "status"
560
568
  };
561
- function ne(t) {
569
+ function ue(t) {
562
570
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
563
571
  }
564
- var gr = { exports: {} };
572
+ var vr = { exports: {} };
565
573
  /*!
566
574
  Copyright (c) 2018 Jed Watson.
567
575
  Licensed under the MIT License (MIT), see
568
576
  http://jedwatson.github.io/classnames
569
577
  */
570
- var vr;
571
- function ue() {
572
- return vr || (vr = 1, (function(t) {
578
+ var mr;
579
+ function pe() {
580
+ return mr || (mr = 1, (function(t) {
573
581
  (function() {
574
582
  var p = {}.hasOwnProperty;
575
583
  function n() {
@@ -598,46 +606,46 @@ function ue() {
598
606
  }
599
607
  t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
600
608
  })();
601
- })(gr)), gr.exports;
609
+ })(vr)), vr.exports;
602
610
  }
603
- var pe = ue();
604
- const ae = /* @__PURE__ */ ne(pe), ie = {
611
+ var ae = pe();
612
+ const ie = /* @__PURE__ */ ue(ae), se = {
605
613
  "purpur-field-error-text": "_purpur-field-error-text_u1cy2_1",
606
614
  "purpur-field-error-text--negative": "_purpur-field-error-text--negative_u1cy2_11",
607
615
  "purpur-field-error-text__icon": "_purpur-field-error-text__icon_u1cy2_14"
608
- }, hr = ae.bind(ie), T = "purpur-field-error-text", se = ({
616
+ }, br = ie.bind(se), T = "purpur-field-error-text", oe = ({
609
617
  children: t,
610
618
  className: p,
611
619
  negative: n = !1,
612
620
  ["aria-relevant"]: i = "additions text",
613
621
  ...a
614
- }) => /* @__PURE__ */ h(
622
+ }) => /* @__PURE__ */ v(
615
623
  "div",
616
624
  {
617
- className: hr(p, T, {
625
+ className: br(p, T, {
618
626
  [`${T}--negative`]: n
619
627
  }),
620
628
  "aria-live": "assertive",
621
629
  "aria-relevant": i,
622
630
  ...a,
623
631
  children: [
624
- /* @__PURE__ */ s(Lr, { svg: ee, size: "xs", className: hr(`${T}__icon`) }),
632
+ /* @__PURE__ */ s(Gr, { svg: ne, size: "xs", className: br(`${T}__icon`) }),
625
633
  t
626
634
  ]
627
635
  }
628
636
  );
629
- function oe(t) {
637
+ function le(t) {
630
638
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
631
639
  }
632
- var mr = { exports: {} };
640
+ var yr = { exports: {} };
633
641
  /*!
634
642
  Copyright (c) 2018 Jed Watson.
635
643
  Licensed under the MIT License (MIT), see
636
644
  http://jedwatson.github.io/classnames
637
645
  */
638
- var br;
639
- function le() {
640
- return br || (br = 1, (function(t) {
646
+ var xr;
647
+ function ce() {
648
+ return xr || (xr = 1, (function(t) {
641
649
  (function() {
642
650
  var p = {}.hasOwnProperty;
643
651
  function n() {
@@ -666,14 +674,14 @@ function le() {
666
674
  }
667
675
  t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
668
676
  })();
669
- })(mr)), mr.exports;
677
+ })(yr)), yr.exports;
670
678
  }
671
- var ce = le();
672
- const de = /* @__PURE__ */ oe(ce), _e = {
679
+ var _e = ce();
680
+ const de = /* @__PURE__ */ le(_e), fe = {
673
681
  "purpur-field-helper-text": "_purpur-field-helper-text_11nsh_1",
674
682
  "purpur-field-helper-text--disabled": "_purpur-field-helper-text--disabled_11nsh_9",
675
683
  "purpur-field-helper-text--negative": "_purpur-field-helper-text--negative_11nsh_12"
676
- }, fe = de.bind(_e), W = "purpur-field-helper-text", ge = ({
684
+ }, ge = de.bind(fe), W = "purpur-field-helper-text", he = ({
677
685
  children: t,
678
686
  className: p,
679
687
  disabled: n,
@@ -681,7 +689,7 @@ const de = /* @__PURE__ */ oe(ce), _e = {
681
689
  negative: a,
682
690
  ...r
683
691
  }) => {
684
- const e = fe(p, W, {
692
+ const e = ge(p, W, {
685
693
  [`${W}--disabled`]: n,
686
694
  [`${W}--negative`]: a
687
695
  });
@@ -690,15 +698,15 @@ const de = /* @__PURE__ */ oe(ce), _e = {
690
698
  function ve(t) {
691
699
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
692
700
  }
693
- var xr = { exports: {} };
701
+ var wr = { exports: {} };
694
702
  /*!
695
703
  Copyright (c) 2018 Jed Watson.
696
704
  Licensed under the MIT License (MIT), see
697
705
  http://jedwatson.github.io/classnames
698
706
  */
699
- var yr;
700
- function he() {
701
- return yr || (yr = 1, (function(t) {
707
+ var $r;
708
+ function me() {
709
+ return $r || ($r = 1, (function(t) {
702
710
  (function() {
703
711
  var p = {}.hasOwnProperty;
704
712
  function n() {
@@ -727,10 +735,10 @@ function he() {
727
735
  }
728
736
  t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
729
737
  })();
730
- })(xr)), xr.exports;
738
+ })(wr)), wr.exports;
731
739
  }
732
- var me = he();
733
- const be = /* @__PURE__ */ ve(me), xe = {
740
+ var be = me();
741
+ const ye = /* @__PURE__ */ ve(be), xe = {
734
742
  "purpur-icon": "_purpur-icon_8u1lq_1",
735
743
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
736
744
  "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
@@ -738,86 +746,86 @@ const be = /* @__PURE__ */ ve(me), xe = {
738
746
  "purpur-icon--md": "_purpur-icon--md_8u1lq_16",
739
747
  "purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
740
748
  "purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
741
- }, ye = be.bind(xe), wr = "purpur-icon", we = "md", $e = (t) => t.filter((p) => Object.keys(p).length >= 1).map((p) => `${p.name}="${p.value}"`).join(" "), je = ({ content: t = "", title: p } = {}) => {
749
+ }, we = ye.bind(xe), Sr = "purpur-icon", $e = "md", Se = (t) => t.filter((p) => Object.keys(p).length >= 1).map((p) => `${p.name}="${p.value}"`).join(" "), je = ({ content: t = "", title: p } = {}) => {
742
750
  const n = [
743
751
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
744
752
  { name: "fill", value: "currentColor" },
745
753
  { name: "viewBox", value: "0 0 24 24" },
746
754
  p ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
747
755
  ], i = p ? `<title>${p}</title>` : "";
748
- return `<svg ${$e(n)}>${i}${t}</svg>`;
749
- }, Se = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), H = ({ svg: t, allyTitle: p, className: n, size: i = we, ...a }) => {
756
+ return `<svg ${Se(n)}>${i}${t}</svg>`;
757
+ }, Ne = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), H = ({ svg: t, allyTitle: p, className: n, size: i = $e, ...a }) => {
750
758
  const r = je({
751
- content: Se(t.svg),
759
+ content: Ne(t.svg),
752
760
  title: p
753
- }), e = ye(n, wr, `${wr}--${i}`);
761
+ }), e = we(n, Sr, `${Sr}--${i}`);
754
762
  return /* @__PURE__ */ s("span", { className: e, dangerouslySetInnerHTML: { __html: r }, ...a });
755
763
  };
756
764
  H.displayName = "Icon";
757
- const Ne = {
765
+ const Oe = {
758
766
  name: "check-circle-filled",
759
767
  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>',
760
768
  keywords: ["check-circle-filled"],
761
769
  category: "status"
762
- }, Tr = (t) => /* @__PURE__ */ s(H, { ...t, svg: Ne });
763
- Tr.displayName = "IconCheckCircleFilled";
764
- const Oe = {
770
+ }, Fr = (t) => /* @__PURE__ */ s(H, { ...t, svg: Oe });
771
+ Fr.displayName = "IconCheckCircleFilled";
772
+ const Pe = {
765
773
  name: "close",
766
774
  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>',
767
775
  keywords: ["close"],
768
776
  category: "utility"
769
- }, Wr = (t) => /* @__PURE__ */ s(H, { ...t, svg: Oe });
770
- Wr.displayName = "IconClose";
771
- function $r(t, p) {
777
+ }, Vr = (t) => /* @__PURE__ */ s(H, { ...t, svg: Pe });
778
+ Vr.displayName = "IconClose";
779
+ function jr(t, p) {
772
780
  if (typeof t == "function")
773
781
  return t(p);
774
782
  t != null && (t.current = p);
775
783
  }
776
- function Pe(...t) {
784
+ function Ae(...t) {
777
785
  return (p) => {
778
786
  let n = !1;
779
787
  const i = t.map((a) => {
780
- const r = $r(a, p);
788
+ const r = jr(a, p);
781
789
  return !n && typeof r == "function" && (n = !0), r;
782
790
  });
783
791
  if (n)
784
792
  return () => {
785
793
  for (let a = 0; a < i.length; a++) {
786
794
  const r = i[a];
787
- typeof r == "function" ? r() : $r(t[a], null);
795
+ typeof r == "function" ? r() : jr(t[a], null);
788
796
  }
789
797
  };
790
798
  };
791
799
  }
792
800
  // @__NO_SIDE_EFFECTS__
793
- function Ae(t) {
794
- const p = /* @__PURE__ */ Me(t), n = g.forwardRef((i, a) => {
795
- const { children: r, ...e } = i, u = g.Children.toArray(r), d = u.find(ke);
796
- if (d) {
797
- const o = d.props.children, _ = u.map((l) => l === d ? g.Children.count(o) > 1 ? g.Children.only(null) : g.isValidElement(o) ? o.props.children : null : l);
798
- return /* @__PURE__ */ s(p, { ...e, ref: a, children: g.isValidElement(o) ? g.cloneElement(o, void 0, _) : null });
801
+ function Me(t) {
802
+ const p = /* @__PURE__ */ Ce(t), n = g.forwardRef((i, a) => {
803
+ const { children: r, ...e } = i, u = g.Children.toArray(r), _ = u.find(Re);
804
+ if (_) {
805
+ const o = _.props.children, d = u.map((l) => l === _ ? g.Children.count(o) > 1 ? g.Children.only(null) : g.isValidElement(o) ? o.props.children : null : l);
806
+ return /* @__PURE__ */ s(p, { ...e, ref: a, children: g.isValidElement(o) ? g.cloneElement(o, void 0, d) : null });
799
807
  }
800
808
  return /* @__PURE__ */ s(p, { ...e, ref: a, children: r });
801
809
  });
802
810
  return n.displayName = `${t}.Slot`, n;
803
811
  }
804
812
  // @__NO_SIDE_EFFECTS__
805
- function Me(t) {
813
+ function Ce(t) {
806
814
  const p = g.forwardRef((n, i) => {
807
815
  const { children: a, ...r } = n;
808
816
  if (g.isValidElement(a)) {
809
- const e = qe(a), u = Re(r, a.props);
810
- return a.type !== g.Fragment && (u.ref = i ? Pe(i, e) : e), g.cloneElement(a, u);
817
+ const e = ze(a), u = qe(r, a.props);
818
+ return a.type !== g.Fragment && (u.ref = i ? Ae(i, e) : e), g.cloneElement(a, u);
811
819
  }
812
820
  return g.Children.count(a) > 1 ? g.Children.only(null) : null;
813
821
  });
814
822
  return p.displayName = `${t}.SlotClone`, p;
815
823
  }
816
- var Ce = Symbol("radix.slottable");
817
- function ke(t) {
818
- return g.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === Ce;
824
+ var ke = Symbol("radix.slottable");
825
+ function Re(t) {
826
+ return g.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === ke;
819
827
  }
820
- function Re(t, p) {
828
+ function qe(t, p) {
821
829
  const n = { ...p };
822
830
  for (const i in p) {
823
831
  const a = t[i], r = p[i];
@@ -828,12 +836,12 @@ function Re(t, p) {
828
836
  }
829
837
  return { ...t, ...n };
830
838
  }
831
- function qe(t) {
839
+ function ze(t) {
832
840
  var p, n;
833
841
  let i = (p = Object.getOwnPropertyDescriptor(t.props, "ref")) == null ? void 0 : p.get, a = i && "isReactWarning" in i && i.isReactWarning;
834
842
  return a ? t.ref : (i = (n = Object.getOwnPropertyDescriptor(t, "ref")) == null ? void 0 : n.get, a = i && "isReactWarning" in i && i.isReactWarning, a ? t.props.ref : t.props.ref || t.ref);
835
843
  }
836
- var ze = [
844
+ var Ee = [
837
845
  "a",
838
846
  "button",
839
847
  "div",
@@ -851,14 +859,14 @@ var ze = [
851
859
  "span",
852
860
  "svg",
853
861
  "ul"
854
- ], Ee = ze.reduce((t, p) => {
855
- const n = /* @__PURE__ */ Ae(`Primitive.${p}`), i = g.forwardRef((a, r) => {
856
- const { asChild: e, ...u } = a, d = e ? n : p;
857
- return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ s(d, { ...u, ref: r });
862
+ ], Ie = Ee.reduce((t, p) => {
863
+ const n = /* @__PURE__ */ Me(`Primitive.${p}`), i = g.forwardRef((a, r) => {
864
+ const { asChild: e, ...u } = a, _ = e ? n : p;
865
+ return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ s(_, { ...u, ref: r });
858
866
  });
859
867
  return i.displayName = `Primitive.${p}`, { ...t, [p]: i };
860
- }, {}), Ie = "Label", Zr = g.forwardRef((t, p) => /* @__PURE__ */ s(
861
- Ee.label,
868
+ }, {}), De = "Label", Hr = g.forwardRef((t, p) => /* @__PURE__ */ s(
869
+ Ie.label,
862
870
  {
863
871
  ...t,
864
872
  ref: p,
@@ -868,20 +876,20 @@ var ze = [
868
876
  }
869
877
  }
870
878
  ));
871
- Zr.displayName = Ie;
872
- var De = Zr;
873
- function Be(t) {
879
+ Hr.displayName = De;
880
+ var Be = Hr;
881
+ function Le(t) {
874
882
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
875
883
  }
876
- var jr = { exports: {} };
884
+ var Nr = { exports: {} };
877
885
  /*!
878
886
  Copyright (c) 2018 Jed Watson.
879
887
  Licensed under the MIT License (MIT), see
880
888
  http://jedwatson.github.io/classnames
881
889
  */
882
- var Sr;
883
- function Le() {
884
- return Sr || (Sr = 1, (function(t) {
890
+ var Or;
891
+ function Te() {
892
+ return Or || (Or = 1, (function(t) {
885
893
  (function() {
886
894
  var p = {}.hasOwnProperty;
887
895
  function n() {
@@ -910,14 +918,14 @@ function Le() {
910
918
  }
911
919
  t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
912
920
  })();
913
- })(jr)), jr.exports;
921
+ })(Nr)), Nr.exports;
914
922
  }
915
- var Te = Le();
916
- const We = /* @__PURE__ */ Be(Te), Ze = {
923
+ var We = Te();
924
+ const Ze = /* @__PURE__ */ Le(We), Ge = {
917
925
  "purpur-label": "_purpur-label_1x80u_1",
918
926
  "purpur-label--negative": "_purpur-label--negative_1x80u_8",
919
927
  "purpur-label--disabled": "_purpur-label--disabled_1x80u_11"
920
- }, Fe = We.bind(Ze), Z = "purpur-label", Ge = ({
928
+ }, Fe = Ze.bind(Ge), Z = "purpur-label", Ve = ({
921
929
  children: t,
922
930
  className: p,
923
931
  disabled: n,
@@ -928,20 +936,20 @@ const We = /* @__PURE__ */ Be(Te), Ze = {
928
936
  [`${Z}--disabled`]: n,
929
937
  [`${Z}--negative`]: i
930
938
  });
931
- return /* @__PURE__ */ s(De, { className: r, ...a, children: t });
939
+ return /* @__PURE__ */ s(Be, { className: r, ...a, children: t });
932
940
  };
933
- function Ve(t) {
941
+ function He(t) {
934
942
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
935
943
  }
936
- var Nr = { exports: {} };
944
+ var Pr = { exports: {} };
937
945
  /*!
938
946
  Copyright (c) 2018 Jed Watson.
939
947
  Licensed under the MIT License (MIT), see
940
948
  http://jedwatson.github.io/classnames
941
949
  */
942
- var Or;
943
- function He() {
944
- return Or || (Or = 1, (function(t) {
950
+ var Ar;
951
+ function Ke() {
952
+ return Ar || (Ar = 1, (function(t) {
945
953
  (function() {
946
954
  var p = {}.hasOwnProperty;
947
955
  function n() {
@@ -970,10 +978,10 @@ function He() {
970
978
  }
971
979
  t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
972
980
  })();
973
- })(Nr)), Nr.exports;
981
+ })(Pr)), Pr.exports;
974
982
  }
975
- var Ke = He();
976
- const Ue = /* @__PURE__ */ Ve(Ke), Xe = "_rotate_12t9p_1", Ye = "_dash_12t9p_1", Je = {
983
+ var Ue = Ke();
984
+ const Ye = /* @__PURE__ */ He(Ue), Xe = "_rotate_12t9p_1", Je = "_dash_12t9p_1", Qe = {
977
985
  "purpur-spinner": "_purpur-spinner_12t9p_2",
978
986
  rotate: Xe,
979
987
  "purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
@@ -982,20 +990,21 @@ const Ue = /* @__PURE__ */ Ve(Ke), Xe = "_rotate_12t9p_1", Ye = "_dash_12t9p_1",
982
990
  "purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
983
991
  "purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
984
992
  "purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
985
- dash: Ye,
993
+ dash: Je,
986
994
  "purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
987
995
  "purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
988
- }, Pr = Ue.bind(Je), M = "purpur-spinner", Qe = {
996
+ }, Mr = Ye.bind(Qe), M = "purpur-spinner", rn = {
989
997
  SM: "sm"
990
- }, rn = ({
998
+ }, Kr = ({
991
999
  disabled: t = !1,
992
1000
  negative: p = !1,
993
- size: n = Qe.SM,
994
- ...i
995
- }) => /* @__PURE__ */ s("div", { className: Pr(M, `${M}--${n}`), ...i, children: /* @__PURE__ */ s("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ s(
1001
+ size: n = rn.SM,
1002
+ className: i,
1003
+ ...a
1004
+ }) => /* @__PURE__ */ s("div", { className: Mr(M, `${M}--${n}`, i), ...a, children: /* @__PURE__ */ s("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ s(
996
1005
  "circle",
997
1006
  {
998
- className: Pr(`${M}__circle`, {
1007
+ className: Mr(`${M}__circle`, {
999
1008
  [`${M}__circle--disabled`]: t,
1000
1009
  [`${M}__circle--negative`]: p
1001
1010
  }),
@@ -1004,18 +1013,19 @@ const Ue = /* @__PURE__ */ Ve(Ke), Xe = "_rotate_12t9p_1", Ye = "_dash_12t9p_1",
1004
1013
  r: "20"
1005
1014
  }
1006
1015
  ) }) });
1016
+ Kr.displayName = "Spinner";
1007
1017
  function tn(t) {
1008
1018
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1009
1019
  }
1010
- var Ar = { exports: {} };
1020
+ var Cr = { exports: {} };
1011
1021
  /*!
1012
1022
  Copyright (c) 2018 Jed Watson.
1013
1023
  Licensed under the MIT License (MIT), see
1014
1024
  http://jedwatson.github.io/classnames
1015
1025
  */
1016
- var Mr;
1026
+ var kr;
1017
1027
  function en() {
1018
- return Mr || (Mr = 1, (function(t) {
1028
+ return kr || (kr = 1, (function(t) {
1019
1029
  (function() {
1020
1030
  var p = {}.hasOwnProperty;
1021
1031
  function n() {
@@ -1044,7 +1054,7 @@ function en() {
1044
1054
  }
1045
1055
  t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
1046
1056
  })();
1047
- })(Ar)), Ar.exports;
1057
+ })(Cr)), Cr.exports;
1048
1058
  }
1049
1059
  var nn = en();
1050
1060
  const un = /* @__PURE__ */ tn(nn), pn = {
@@ -1064,7 +1074,7 @@ const un = /* @__PURE__ */ tn(nn), pn = {
1064
1074
  "purpur-text-field__input--error": "_purpur-text-field__input--error_3gl1k_94",
1065
1075
  "purpur-text-field__adornment-container": "_purpur-text-field__adornment-container_3gl1k_106",
1066
1076
  "purpur-text-field__valid-icon": "_purpur-text-field__valid-icon_3gl1k_111"
1067
- }, an = (t) => Jr(t), w = un.bind(pn), f = "purpur-text-field", Fr = O(
1077
+ }, an = (t) => nt(t), w = un.bind(pn), f = "purpur-text-field", Ur = O(
1068
1078
  ({
1069
1079
  ["data-testid"]: t,
1070
1080
  className: p,
@@ -1074,79 +1084,79 @@ const un = /* @__PURE__ */ tn(nn), pn = {
1074
1084
  endAdornment: r,
1075
1085
  errorText: e,
1076
1086
  helperText: u,
1077
- hideRequiredAsterisk: d = !1,
1087
+ hideRequiredAsterisk: _ = !1,
1078
1088
  label: o,
1079
- loading: _ = !1,
1089
+ loading: d = !1,
1080
1090
  onClear: l,
1081
- startAdornment: v,
1082
- valid: x = !1,
1091
+ startAdornment: h,
1092
+ valid: y = !1,
1083
1093
  ...c
1084
1094
  }, m) => {
1085
1095
  var $;
1086
- const Hr = Yr(), I = c.id ?? Hr, y = (b) => t ? `${t}-${b}` : void 0, X = x && !e, D = u ? `${I}-helper-text` : void 0, B = [v].filter((b) => !!b), Y = (typeof c.value == "number" ? c.value !== void 0 : ($ = c.value) == null ? void 0 : $.length) && !c.disabled && !c.readOnly && !_ && l && n, J = an(null), Kr = (b) => {
1096
+ const Jr = et(), I = c.id ?? Jr, x = (b) => t ? `${t}-${b}` : void 0, Y = y && !e, D = u ? `${I}-helper-text` : void 0, B = [h].filter((b) => !!b), X = (typeof c.value == "number" ? c.value !== void 0 : ($ = c.value) == null ? void 0 : $.length) && !c.disabled && !c.readOnly && !d && l && n, J = an(null), Qr = (b) => {
1087
1097
  J.current = b, typeof m == "function" ? m(b) : m && (m.current = b);
1088
- }, Ur = () => {
1098
+ }, rt = () => {
1089
1099
  var b;
1090
1100
  l == null || l(), (b = J.current) == null || b.focus();
1091
1101
  }, L = [
1092
- _ && /* @__PURE__ */ s(
1093
- rn,
1102
+ d && /* @__PURE__ */ s(
1103
+ Kr,
1094
1104
  {
1095
1105
  disabled: c.disabled,
1096
1106
  size: "xs",
1097
- "data-testid": y("spinner")
1107
+ "data-testid": x("spinner")
1098
1108
  },
1099
1109
  "spinner"
1100
1110
  ),
1101
- Y && /* @__PURE__ */ s(
1102
- Br,
1111
+ X && /* @__PURE__ */ s(
1112
+ Zr,
1103
1113
  {
1104
1114
  variant: "tertiary-purple",
1105
- onClick: Ur,
1115
+ onClick: rt,
1106
1116
  iconOnly: !0,
1107
1117
  "aria-label": n ?? "",
1108
- "data-testid": y("clear-button"),
1118
+ "data-testid": x("clear-button"),
1109
1119
  tabIndex: -1,
1110
- children: /* @__PURE__ */ s(Wr, { size: "xs" })
1120
+ children: /* @__PURE__ */ s(Vr, { size: "xs" })
1111
1121
  },
1112
1122
  "clear-button"
1113
1123
  ),
1114
- X && /* @__PURE__ */ s(
1115
- Tr,
1124
+ Y && /* @__PURE__ */ s(
1125
+ Fr,
1116
1126
  {
1117
- "data-testid": y("valid-icon"),
1127
+ "data-testid": x("valid-icon"),
1118
1128
  className: w(`${f}__valid-icon`)
1119
1129
  },
1120
1130
  "valid-icon"
1121
1131
  )
1122
- ].filter((b) => !!b), Xr = w(`${f}__input-container`, {
1132
+ ].filter((b) => !!b), tt = w(`${f}__input-container`, {
1123
1133
  [`${f}__input-container--start-adornment`]: B.length,
1124
1134
  [`${f}__input-container--end-adornment`]: L.length || r,
1125
1135
  [`${f}__input-container--disabled`]: c.disabled,
1126
- [`${f}__input-container--has-clear-button`]: Y,
1136
+ [`${f}__input-container--has-clear-button`]: X,
1127
1137
  [`${f}__input-container--readonly`]: c.readOnly && !c.disabled
1128
1138
  });
1129
- return /* @__PURE__ */ h("div", { className: w(p, f), children: [
1130
- o && /* @__PURE__ */ h(
1131
- Ge,
1139
+ return /* @__PURE__ */ v("div", { className: w(p, f), children: [
1140
+ o && /* @__PURE__ */ v(
1141
+ Ve,
1132
1142
  {
1133
1143
  htmlFor: I,
1134
1144
  className: w(`${f}__label`),
1135
- "data-testid": y("label"),
1145
+ "data-testid": x("label"),
1136
1146
  disabled: c.disabled,
1137
1147
  children: [
1138
- c.required && !d && /* @__PURE__ */ s("span", { "aria-hidden": !0, children: "*" }),
1148
+ c.required && !_ && /* @__PURE__ */ s("span", { "aria-hidden": !0, children: "*" }),
1139
1149
  o
1140
1150
  ]
1141
1151
  }
1142
1152
  ),
1143
- /* @__PURE__ */ h("div", { className: w(`${f}__field-row`), children: [
1153
+ /* @__PURE__ */ v("div", { className: w(`${f}__field-row`), children: [
1144
1154
  !!i && i,
1145
- /* @__PURE__ */ h("div", { className: Xr, children: [
1155
+ /* @__PURE__ */ v("div", { className: tt, children: [
1146
1156
  !!B.length && /* @__PURE__ */ s(
1147
1157
  "div",
1148
1158
  {
1149
- "data-testid": y("start-adornments"),
1159
+ "data-testid": x("start-adornments"),
1150
1160
  className: w(`${f}__adornment-container`),
1151
1161
  children: B
1152
1162
  }
@@ -1156,24 +1166,24 @@ const un = /* @__PURE__ */ tn(nn), pn = {
1156
1166
  {
1157
1167
  ...c,
1158
1168
  id: I,
1159
- ref: Kr,
1160
- "data-testid": y("input"),
1169
+ ref: Qr,
1170
+ "data-testid": x("input"),
1161
1171
  "aria-describedby": c["aria-describedby"] || D,
1162
1172
  "aria-invalid": c["aria-invalid"] || !!e,
1163
1173
  className: w([
1164
1174
  `${f}__input`,
1165
1175
  {
1166
- [`${f}__input--valid`]: X,
1176
+ [`${f}__input--valid`]: Y,
1167
1177
  [`${f}__input--error`]: !!e
1168
1178
  }
1169
1179
  ])
1170
1180
  }
1171
1181
  ),
1172
1182
  /* @__PURE__ */ s("div", { className: w(`${f}__frame`) }),
1173
- (!!L.length || r) && /* @__PURE__ */ h(
1183
+ (!!L.length || r) && /* @__PURE__ */ v(
1174
1184
  "div",
1175
1185
  {
1176
- "data-testid": y("end-adornments"),
1186
+ "data-testid": x("end-adornments"),
1177
1187
  className: w(`${f}__adornment-container`),
1178
1188
  children: [
1179
1189
  L,
@@ -1184,24 +1194,24 @@ const un = /* @__PURE__ */ tn(nn), pn = {
1184
1194
  ] }),
1185
1195
  !!a && a
1186
1196
  ] }),
1187
- D && /* @__PURE__ */ s(ge, { "data-testid": y("helper-text"), id: D, children: u }),
1188
- e && /* @__PURE__ */ s(se, { "data-testid": y("error-text"), children: e })
1197
+ D && /* @__PURE__ */ s(he, { "data-testid": x("helper-text"), id: D, children: u }),
1198
+ e && /* @__PURE__ */ s(oe, { "data-testid": x("error-text"), children: e })
1189
1199
  ] });
1190
1200
  }
1191
1201
  );
1192
- Fr.displayName = "TextField";
1202
+ Ur.displayName = "TextField";
1193
1203
  function sn(t) {
1194
1204
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1195
1205
  }
1196
- var F = { exports: {} };
1206
+ var G = { exports: {} };
1197
1207
  /*!
1198
1208
  Copyright (c) 2018 Jed Watson.
1199
1209
  Licensed under the MIT License (MIT), see
1200
1210
  http://jedwatson.github.io/classnames
1201
1211
  */
1202
- var Cr;
1212
+ var Rr;
1203
1213
  function on() {
1204
- return Cr || (Cr = 1, (function(t) {
1214
+ return Rr || (Rr = 1, (function(t) {
1205
1215
  (function() {
1206
1216
  var p = {}.hasOwnProperty;
1207
1217
  function n() {
@@ -1230,7 +1240,7 @@ function on() {
1230
1240
  }
1231
1241
  t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
1232
1242
  })();
1233
- })(F)), F.exports;
1243
+ })(G)), G.exports;
1234
1244
  }
1235
1245
  var ln = on();
1236
1246
  const K = /* @__PURE__ */ sn(ln), C = {
@@ -1243,18 +1253,18 @@ const K = /* @__PURE__ */ sn(ln), C = {
1243
1253
  }, cn = {
1244
1254
  "purpur-password-field": "_purpur-password-field_co7kv_1"
1245
1255
  };
1246
- function dn(t) {
1256
+ function _n(t) {
1247
1257
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1248
1258
  }
1249
- var kr = { exports: {} };
1259
+ var qr = { exports: {} };
1250
1260
  /*!
1251
1261
  Copyright (c) 2018 Jed Watson.
1252
1262
  Licensed under the MIT License (MIT), see
1253
1263
  http://jedwatson.github.io/classnames
1254
1264
  */
1255
- var Rr;
1256
- function _n() {
1257
- return Rr || (Rr = 1, (function(t) {
1265
+ var zr;
1266
+ function dn() {
1267
+ return zr || (zr = 1, (function(t) {
1258
1268
  (function() {
1259
1269
  var p = {}.hasOwnProperty;
1260
1270
  function n() {
@@ -1283,10 +1293,10 @@ function _n() {
1283
1293
  }
1284
1294
  t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
1285
1295
  })();
1286
- })(kr)), kr.exports;
1296
+ })(qr)), qr.exports;
1287
1297
  }
1288
- var fn = _n();
1289
- const gn = /* @__PURE__ */ dn(fn), vn = {
1298
+ var fn = dn();
1299
+ const gn = /* @__PURE__ */ _n(fn), hn = {
1290
1300
  "purpur-paragraph": "_purpur-paragraph_1rh57_1",
1291
1301
  "purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
1292
1302
  "purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
@@ -1301,9 +1311,9 @@ const gn = /* @__PURE__ */ dn(fn), vn = {
1301
1311
  "purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1rh57_60",
1302
1312
  "purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
1303
1313
  "purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
1304
- }, hn = gn.bind(vn), mn = {
1314
+ }, vn = gn.bind(hn), mn = {
1305
1315
  PARAGRAPH100: "paragraph-100"
1306
- }, k = "purpur-paragraph", Gr = ({
1316
+ }, k = "purpur-paragraph", Yr = ({
1307
1317
  children: t,
1308
1318
  className: p,
1309
1319
  disabled: n,
@@ -1312,14 +1322,14 @@ const gn = /* @__PURE__ */ dn(fn), vn = {
1312
1322
  variant: r = mn.PARAGRAPH100,
1313
1323
  ...e
1314
1324
  }) => {
1315
- const u = hn(p, k, `${k}--${r}`, {
1325
+ const u = vn(p, k, `${k}--${r}`, {
1316
1326
  [`${k}--hyphens`]: i,
1317
1327
  [`${k}--disabled`]: n,
1318
1328
  [`${k}--negative`]: a
1319
1329
  });
1320
1330
  return /* @__PURE__ */ s("p", { ...e, className: u, children: t });
1321
1331
  };
1322
- Gr.displayName = "Paragraph";
1332
+ Yr.displayName = "Paragraph";
1323
1333
  const bn = {
1324
1334
  "purpur-password-strength": "_purpur-password-strength_sa1ua_1",
1325
1335
  "purpur-password-strength__indicator-container": "_purpur-password-strength__indicator-container_sa1ua_6",
@@ -1327,13 +1337,13 @@ const bn = {
1327
1337
  "purpur-password-strength__password-strength-text--medium": "_purpur-password-strength__password-strength-text--medium_sa1ua_13",
1328
1338
  "purpur-password-strength__password-strength-text--strong": "_purpur-password-strength__password-strength-text--strong_sa1ua_16",
1329
1339
  "purpur-password-strength__password-strength-label": "_purpur-password-strength__password-strength-label_sa1ua_19"
1330
- }, xn = {
1340
+ }, yn = {
1331
1341
  "purpur-password-strength-indicator": "_purpur-password-strength-indicator_1o6zr_1",
1332
1342
  "purpur-password-strength-indicator--active": "_purpur-password-strength-indicator--active_1o6zr_7",
1333
1343
  "purpur-password-strength-indicator--weak": "_purpur-password-strength-indicator--weak_1o6zr_7",
1334
1344
  "purpur-password-strength-indicator--medium": "_purpur-password-strength-indicator--medium_1o6zr_10",
1335
1345
  "purpur-password-strength-indicator--strong": "_purpur-password-strength-indicator--strong_1o6zr_13"
1336
- }, yn = K.bind(xn), G = "purpur-password-strength-indicator", E = O(
1346
+ }, xn = K.bind(yn), F = "purpur-password-strength-indicator", E = O(
1337
1347
  ({
1338
1348
  ["data-testid"]: t = "password-strength-indicator",
1339
1349
  active: p,
@@ -1341,18 +1351,18 @@ const bn = {
1341
1351
  passwordStrength: i,
1342
1352
  ...a
1343
1353
  }, r) => {
1344
- const e = yn(
1354
+ const e = xn(
1345
1355
  n,
1346
- G,
1347
- { [`${G}--${i}`]: i },
1348
- { [`${G}--active`]: p }
1356
+ F,
1357
+ { [`${F}--${i}`]: i },
1358
+ { [`${F}--active`]: p }
1349
1359
  );
1350
1360
  return /* @__PURE__ */ s("div", { ...a, "data-testid": t, className: e, ref: r });
1351
1361
  }
1352
1362
  );
1353
1363
  E.displayName = "PasswordStrengthIndicator";
1354
1364
  const wn = (t, p, n, i) => {
1355
- const [a, r] = z(0), [e, u] = z(), [d, o] = z(void 0), _ = Qr(
1365
+ const [a, r] = z(0), [e, u] = z(), [_, o] = z(void 0), d = ut(
1356
1366
  () => ({
1357
1367
  0: [C.WEAK, p],
1358
1368
  1: [C.WEAK, p],
@@ -1362,19 +1372,19 @@ const wn = (t, p, n, i) => {
1362
1372
  }),
1363
1373
  [p, n, i]
1364
1374
  );
1365
- return rt(() => {
1375
+ return pt(() => {
1366
1376
  (async () => {
1367
1377
  if (!t)
1368
1378
  r(0), u(void 0), o(void 0);
1369
1379
  else {
1370
- const { default: l } = await import("./main-CorZ0ky8.mjs").then((m) => m.m), { score: v } = l(t), [x, c] = _[v];
1371
- r(v), u(x), o(c);
1380
+ const { default: l } = await import("./main-CGRCMmFx.mjs").then((m) => m.m), { score: h } = l(t), [y, c] = d[h];
1381
+ r(h), u(y), o(c);
1372
1382
  }
1373
1383
  })();
1374
- }, [t, _]), {
1384
+ }, [t, d]), {
1375
1385
  score: a,
1376
1386
  passwordStrength: e,
1377
- currentPasswordStrengthText: d
1387
+ currentPasswordStrengthText: _
1378
1388
  };
1379
1389
  }, q = K.bind(bn), R = "purpur-password-strength", U = O(
1380
1390
  ({
@@ -1386,15 +1396,15 @@ const wn = (t, p, n, i) => {
1386
1396
  mediumText: r,
1387
1397
  strongText: e,
1388
1398
  ...u
1389
- }, d) => {
1390
- const o = q(p, R), { score: _, passwordStrength: l, currentPasswordStrengthText: v } = wn(
1399
+ }, _) => {
1400
+ const o = q(p, R), { score: d, passwordStrength: l, currentPasswordStrengthText: h } = wn(
1391
1401
  n,
1392
1402
  a,
1393
1403
  r,
1394
1404
  e
1395
1405
  );
1396
- return /* @__PURE__ */ h("div", { "data-testid": t, className: o, ref: d, ...u, children: [
1397
- /* @__PURE__ */ h("div", { className: q(`${R}__indicator-container`), children: [
1406
+ return /* @__PURE__ */ v("div", { "data-testid": t, className: o, ref: _, ...u, children: [
1407
+ /* @__PURE__ */ v("div", { className: q(`${R}__indicator-container`), children: [
1398
1408
  /* @__PURE__ */ s(
1399
1409
  E,
1400
1410
  {
@@ -1405,20 +1415,20 @@ const wn = (t, p, n, i) => {
1405
1415
  /* @__PURE__ */ s(
1406
1416
  E,
1407
1417
  {
1408
- active: !!l && _ > 1,
1418
+ active: !!l && d > 1,
1409
1419
  passwordStrength: l
1410
1420
  }
1411
1421
  ),
1412
1422
  /* @__PURE__ */ s(
1413
1423
  E,
1414
1424
  {
1415
- active: !!l && _ > 2,
1425
+ active: !!l && d > 2,
1416
1426
  passwordStrength: l
1417
1427
  }
1418
1428
  )
1419
1429
  ] }),
1420
- /* @__PURE__ */ h(
1421
- Gr,
1430
+ /* @__PURE__ */ v(
1431
+ Yr,
1422
1432
  {
1423
1433
  "aria-live": "polite",
1424
1434
  "data-testid": `${t}-text`,
@@ -1426,11 +1436,11 @@ const wn = (t, p, n, i) => {
1426
1436
  [`${R}__password-strength-text--${l}`]: l
1427
1437
  }),
1428
1438
  children: [
1429
- /* @__PURE__ */ h("span", { className: q(`${R}__password-strength-label`), children: [
1439
+ /* @__PURE__ */ v("span", { className: q(`${R}__password-strength-label`), children: [
1430
1440
  i,
1431
- v ? ": " : ""
1441
+ h ? ": " : ""
1432
1442
  ] }),
1433
- v
1443
+ h
1434
1444
  ]
1435
1445
  }
1436
1446
  )
@@ -1438,7 +1448,7 @@ const wn = (t, p, n, i) => {
1438
1448
  }
1439
1449
  );
1440
1450
  U.displayName = "PasswordStrength";
1441
- const qr = K.bind(cn), zr = "purpur-password-field", Vr = O(
1451
+ const Er = K.bind(cn), Ir = "purpur-password-field", Xr = O(
1442
1452
  ({
1443
1453
  ["data-testid"]: t = "password-field",
1444
1454
  children: p,
@@ -1448,30 +1458,30 @@ const qr = K.bind(cn), zr = "purpur-password-field", Vr = O(
1448
1458
  showPasswordAriaLabel: r,
1449
1459
  ...e
1450
1460
  }, u) => {
1451
- const d = qr(n, zr), [o, _] = z(N.PASSWORD), l = async (c) => {
1461
+ const _ = Er(n, Ir), [o, d] = z(N.PASSWORD), l = async (c) => {
1452
1462
  a == null || a(c);
1453
- }, v = () => {
1454
- _(o === N.PASSWORD ? N.TEXT : N.PASSWORD);
1455
- }, x = o === N.PASSWORD ? Dr : Ir;
1456
- return /* @__PURE__ */ h("div", { className: d, children: [
1463
+ }, h = () => {
1464
+ d(o === N.PASSWORD ? N.TEXT : N.PASSWORD);
1465
+ }, y = o === N.PASSWORD ? Tr : Lr;
1466
+ return /* @__PURE__ */ v("div", { className: _, children: [
1457
1467
  /* @__PURE__ */ s(
1458
- Fr,
1468
+ Ur,
1459
1469
  {
1460
- className: qr(`${zr}__text-field`),
1470
+ className: Er(`${Ir}__text-field`),
1461
1471
  "data-testid": t,
1462
1472
  onChange: l,
1463
1473
  ref: u,
1464
1474
  type: o,
1465
1475
  endAdornment: /* @__PURE__ */ s(
1466
- Er,
1476
+ Br,
1467
1477
  {
1468
1478
  "aria-label": o === N.PASSWORD ? r : i,
1469
1479
  "data-testid": `${t}-type-toggle-button`,
1470
- onClick: v,
1480
+ onClick: h,
1471
1481
  size: "sm",
1472
1482
  variant: "tertiary-purple",
1473
1483
  iconOnly: !0,
1474
- children: /* @__PURE__ */ s(x, { size: "sm" })
1484
+ children: /* @__PURE__ */ s(y, { size: "sm" })
1475
1485
  }
1476
1486
  ),
1477
1487
  ...e
@@ -1481,12 +1491,12 @@ const qr = K.bind(cn), zr = "purpur-password-field", Vr = O(
1481
1491
  ] });
1482
1492
  }
1483
1493
  );
1484
- Vr.PasswordStrength = U;
1485
- Vr.displayName = "PasswordField";
1486
- const Nn = (t) => tt(t) && (t == null ? void 0 : t.type) === U;
1494
+ Xr.PasswordStrength = U;
1495
+ Xr.displayName = "PasswordField";
1496
+ const Nn = (t) => at(t) && (t == null ? void 0 : t.type) === U;
1487
1497
  export {
1488
- Vr as P,
1498
+ Xr as P,
1489
1499
  sn as g,
1490
1500
  Nn as i
1491
1501
  };
1492
- //# sourceMappingURL=password-field-rM0ItXqh.mjs.map
1502
+ //# sourceMappingURL=password-field-B8r8kBIm.mjs.map