@purpurds/autocomplete 6.3.0 → 6.3.1
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 +3 -3
- package/dist/autocomplete.cjs.js +15 -15
- package/dist/autocomplete.cjs.js.map +1 -1
- package/dist/autocomplete.d.ts +1 -1
- package/dist/autocomplete.d.ts.map +1 -1
- package/dist/autocomplete.es.js +909 -887
- package/dist/autocomplete.es.js.map +1 -1
- package/package.json +16 -16
package/dist/autocomplete.es.js
CHANGED
|
@@ -1,48 +1,51 @@
|
|
|
1
|
-
import { jsx as l, jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import { forwardRef as
|
|
1
|
+
import { jsx as l, jsxs as C, Fragment as et } from "react/jsx-runtime";
|
|
2
|
+
import * as m from "react";
|
|
3
|
+
import { forwardRef as X, Children as At, isValidElement as nt, useId as Ct, useRef as K, useCallback as Pt, useEffect as kt, useState as ar, cloneElement as zt } from "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
function
|
|
6
|
-
return
|
|
5
|
+
function Mt(t) {
|
|
6
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
7
7
|
}
|
|
8
|
-
var
|
|
8
|
+
var gr = { exports: {} };
|
|
9
9
|
/*!
|
|
10
10
|
Copyright (c) 2018 Jed Watson.
|
|
11
11
|
Licensed under the MIT License (MIT), see
|
|
12
12
|
http://jedwatson.github.io/classnames
|
|
13
13
|
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
function
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
var hr;
|
|
15
|
+
function Rt() {
|
|
16
|
+
return hr || (hr = 1, function(t) {
|
|
17
|
+
(function() {
|
|
18
|
+
var a = {}.hasOwnProperty;
|
|
19
|
+
function n() {
|
|
20
|
+
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
21
|
+
var u = arguments[e];
|
|
22
|
+
u && (r = o(r, i.call(this, u)));
|
|
23
|
+
}
|
|
24
|
+
return r;
|
|
21
25
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
const we = /* @__PURE__ */ xe(ye), $e = {
|
|
26
|
+
function i(r) {
|
|
27
|
+
if (typeof r == "string" || typeof r == "number")
|
|
28
|
+
return this && this[r] || r;
|
|
29
|
+
if (typeof r != "object")
|
|
30
|
+
return "";
|
|
31
|
+
if (Array.isArray(r))
|
|
32
|
+
return n.apply(this, r);
|
|
33
|
+
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
34
|
+
return r.toString();
|
|
35
|
+
var e = "";
|
|
36
|
+
for (var u in r)
|
|
37
|
+
a.call(r, u) && r[u] && (e = o(e, this && this[u] || u));
|
|
38
|
+
return e;
|
|
39
|
+
}
|
|
40
|
+
function o(r, e) {
|
|
41
|
+
return e ? r ? r + " " + e : r + e : r;
|
|
42
|
+
}
|
|
43
|
+
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
44
|
+
})();
|
|
45
|
+
}(gr)), gr.exports;
|
|
46
|
+
}
|
|
47
|
+
var Lt = Rt();
|
|
48
|
+
const Bt = /* @__PURE__ */ Mt(Lt), Et = {
|
|
46
49
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
47
50
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
48
51
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -50,86 +53,89 @@ const we = /* @__PURE__ */ xe(ye), $e = {
|
|
|
50
53
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
51
54
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
52
55
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
53
|
-
},
|
|
56
|
+
}, Tt = Bt.bind(Et), br = "purpur-icon", It = "md", Dt = (t) => t.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), Vt = ({ content: t = "", title: a } = {}) => {
|
|
54
57
|
const n = [
|
|
55
58
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
56
59
|
{ name: "fill", value: "currentColor" },
|
|
57
60
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
58
|
-
|
|
59
|
-
],
|
|
60
|
-
return `<svg ${
|
|
61
|
-
},
|
|
62
|
-
["data-testid"]:
|
|
63
|
-
svg:
|
|
61
|
+
a ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
62
|
+
], i = a ? `<title>${a}</title>` : "";
|
|
63
|
+
return `<svg ${Dt(n)}>${i}${t}</svg>`;
|
|
64
|
+
}, Zt = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), ut = ({
|
|
65
|
+
["data-testid"]: t,
|
|
66
|
+
svg: a,
|
|
64
67
|
allyTitle: n,
|
|
65
|
-
className:
|
|
66
|
-
size: o =
|
|
68
|
+
className: i,
|
|
69
|
+
size: o = It,
|
|
67
70
|
...r
|
|
68
71
|
}) => {
|
|
69
|
-
const
|
|
70
|
-
content:
|
|
72
|
+
const e = Vt({
|
|
73
|
+
content: Zt(a.svg),
|
|
71
74
|
title: n
|
|
72
|
-
}), u =
|
|
75
|
+
}), u = Tt(i, br, `${br}--${o}`);
|
|
73
76
|
return /* @__PURE__ */ l(
|
|
74
77
|
"span",
|
|
75
78
|
{
|
|
76
79
|
"aria-label": n,
|
|
77
80
|
className: u,
|
|
78
|
-
"data-testid":
|
|
79
|
-
dangerouslySetInnerHTML: { __html:
|
|
81
|
+
"data-testid": t,
|
|
82
|
+
dangerouslySetInnerHTML: { __html: e },
|
|
80
83
|
...r
|
|
81
84
|
}
|
|
82
85
|
);
|
|
83
86
|
};
|
|
84
|
-
|
|
85
|
-
const
|
|
87
|
+
ut.displayName = "Icon";
|
|
88
|
+
const Ft = {
|
|
86
89
|
name: "chevron-down",
|
|
87
90
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M20.136 7.864a.9.9 0 0 0-1.272 0L12 14.727 5.136 7.864a.9.9 0 0 0-1.272 1.272l7.5 7.5a.9.9 0 0 0 1.272 0l7.5-7.5a.9.9 0 0 0 0-1.272Z" clip-rule="evenodd"/></svg>',
|
|
88
91
|
keywords: ["chevron-down"],
|
|
89
92
|
category: "utility"
|
|
90
|
-
},
|
|
91
|
-
|
|
92
|
-
function
|
|
93
|
-
return
|
|
93
|
+
}, at = (t) => /* @__PURE__ */ l(ut, { ...t, svg: Ft });
|
|
94
|
+
at.displayName = "IconChevronDown";
|
|
95
|
+
function Ht(t) {
|
|
96
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
94
97
|
}
|
|
95
|
-
var
|
|
98
|
+
var xr = { exports: {} };
|
|
96
99
|
/*!
|
|
97
100
|
Copyright (c) 2018 Jed Watson.
|
|
98
101
|
Licensed under the MIT License (MIT), see
|
|
99
102
|
http://jedwatson.github.io/classnames
|
|
100
103
|
*/
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
function
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
104
|
+
var yr;
|
|
105
|
+
function Wt() {
|
|
106
|
+
return yr || (yr = 1, function(t) {
|
|
107
|
+
(function() {
|
|
108
|
+
var a = {}.hasOwnProperty;
|
|
109
|
+
function n() {
|
|
110
|
+
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
111
|
+
var u = arguments[e];
|
|
112
|
+
u && (r = o(r, i.call(this, u)));
|
|
113
|
+
}
|
|
114
|
+
return r;
|
|
108
115
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
const Rr = /* @__PURE__ */ Pe(Ce), zr = {
|
|
116
|
+
function i(r) {
|
|
117
|
+
if (typeof r == "string" || typeof r == "number")
|
|
118
|
+
return this && this[r] || r;
|
|
119
|
+
if (typeof r != "object")
|
|
120
|
+
return "";
|
|
121
|
+
if (Array.isArray(r))
|
|
122
|
+
return n.apply(this, r);
|
|
123
|
+
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
124
|
+
return r.toString();
|
|
125
|
+
var e = "";
|
|
126
|
+
for (var u in r)
|
|
127
|
+
a.call(r, u) && r[u] && (e = o(e, this && this[u] || u));
|
|
128
|
+
return e;
|
|
129
|
+
}
|
|
130
|
+
function o(r, e) {
|
|
131
|
+
return e ? r ? r + " " + e : r + e : r;
|
|
132
|
+
}
|
|
133
|
+
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
134
|
+
})();
|
|
135
|
+
}(xr)), xr.exports;
|
|
136
|
+
}
|
|
137
|
+
var Gt = Wt();
|
|
138
|
+
const it = /* @__PURE__ */ Ht(Gt), ot = {
|
|
133
139
|
"purpur-listbox": "_purpur-listbox_qhoi7_1",
|
|
134
140
|
"purpur-listbox-item": "_purpur-listbox-item_qhoi7_15",
|
|
135
141
|
"purpur-listbox-item--hovered": "_purpur-listbox-item--hovered_qhoi7_29",
|
|
@@ -138,47 +144,50 @@ const Rr = /* @__PURE__ */ Pe(Ce), zr = {
|
|
|
138
144
|
"purpur-listbox-item--disabled": "_purpur-listbox-item--disabled_qhoi7_44",
|
|
139
145
|
"purpur-listbox-item__icon": "_purpur-listbox-item__icon_qhoi7_51"
|
|
140
146
|
};
|
|
141
|
-
function
|
|
142
|
-
return
|
|
147
|
+
function Ut(t) {
|
|
148
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
143
149
|
}
|
|
144
|
-
var
|
|
150
|
+
var wr = { exports: {} };
|
|
145
151
|
/*!
|
|
146
152
|
Copyright (c) 2018 Jed Watson.
|
|
147
153
|
Licensed under the MIT License (MIT), see
|
|
148
154
|
http://jedwatson.github.io/classnames
|
|
149
155
|
*/
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
function
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
156
|
+
var $r;
|
|
157
|
+
function Kt() {
|
|
158
|
+
return $r || ($r = 1, function(t) {
|
|
159
|
+
(function() {
|
|
160
|
+
var a = {}.hasOwnProperty;
|
|
161
|
+
function n() {
|
|
162
|
+
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
163
|
+
var u = arguments[e];
|
|
164
|
+
u && (r = o(r, i.call(this, u)));
|
|
165
|
+
}
|
|
166
|
+
return r;
|
|
157
167
|
}
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
const Re = /* @__PURE__ */ Me(Le), ze = {
|
|
168
|
+
function i(r) {
|
|
169
|
+
if (typeof r == "string" || typeof r == "number")
|
|
170
|
+
return this && this[r] || r;
|
|
171
|
+
if (typeof r != "object")
|
|
172
|
+
return "";
|
|
173
|
+
if (Array.isArray(r))
|
|
174
|
+
return n.apply(this, r);
|
|
175
|
+
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
176
|
+
return r.toString();
|
|
177
|
+
var e = "";
|
|
178
|
+
for (var u in r)
|
|
179
|
+
a.call(r, u) && r[u] && (e = o(e, this && this[u] || u));
|
|
180
|
+
return e;
|
|
181
|
+
}
|
|
182
|
+
function o(r, e) {
|
|
183
|
+
return e ? r ? r + " " + e : r + e : r;
|
|
184
|
+
}
|
|
185
|
+
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
186
|
+
})();
|
|
187
|
+
}(wr)), wr.exports;
|
|
188
|
+
}
|
|
189
|
+
var Yt = Kt();
|
|
190
|
+
const Xt = /* @__PURE__ */ Ut(Yt), Jt = {
|
|
182
191
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
183
192
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
184
193
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -186,86 +195,89 @@ const Re = /* @__PURE__ */ Me(Le), ze = {
|
|
|
186
195
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
187
196
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
188
197
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
189
|
-
},
|
|
198
|
+
}, Qt = Xt.bind(Jt), jr = "purpur-icon", re = "md", te = (t) => t.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), ee = ({ content: t = "", title: a } = {}) => {
|
|
190
199
|
const n = [
|
|
191
200
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
192
201
|
{ name: "fill", value: "currentColor" },
|
|
193
202
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
194
|
-
|
|
195
|
-
],
|
|
196
|
-
return `<svg ${
|
|
197
|
-
},
|
|
198
|
-
["data-testid"]:
|
|
199
|
-
svg:
|
|
203
|
+
a ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
204
|
+
], i = a ? `<title>${a}</title>` : "";
|
|
205
|
+
return `<svg ${te(n)}>${i}${t}</svg>`;
|
|
206
|
+
}, ne = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), pt = ({
|
|
207
|
+
["data-testid"]: t,
|
|
208
|
+
svg: a,
|
|
200
209
|
allyTitle: n,
|
|
201
|
-
className:
|
|
202
|
-
size: o =
|
|
210
|
+
className: i,
|
|
211
|
+
size: o = re,
|
|
203
212
|
...r
|
|
204
213
|
}) => {
|
|
205
|
-
const
|
|
206
|
-
content:
|
|
214
|
+
const e = ee({
|
|
215
|
+
content: ne(a.svg),
|
|
207
216
|
title: n
|
|
208
|
-
}), u =
|
|
217
|
+
}), u = Qt(i, jr, `${jr}--${o}`);
|
|
209
218
|
return /* @__PURE__ */ l(
|
|
210
219
|
"span",
|
|
211
220
|
{
|
|
212
221
|
"aria-label": n,
|
|
213
222
|
className: u,
|
|
214
|
-
"data-testid":
|
|
215
|
-
dangerouslySetInnerHTML: { __html:
|
|
223
|
+
"data-testid": t,
|
|
224
|
+
dangerouslySetInnerHTML: { __html: e },
|
|
216
225
|
...r
|
|
217
226
|
}
|
|
218
227
|
);
|
|
219
228
|
};
|
|
220
|
-
|
|
221
|
-
const
|
|
229
|
+
pt.displayName = "Icon";
|
|
230
|
+
const ue = {
|
|
222
231
|
name: "checkmark",
|
|
223
232
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M21.06 3.795a.9.9 0 0 1 .145 1.264l-11.5 14.5a.9.9 0 0 1-1.341.077l-6-6a.9.9 0 0 1 1.272-1.272l5.286 5.286L19.795 3.94a.9.9 0 0 1 1.264-.145Z" clip-rule="evenodd"/></svg>',
|
|
224
233
|
keywords: ["checkmark"],
|
|
225
234
|
category: "utility"
|
|
226
|
-
},
|
|
227
|
-
|
|
228
|
-
function
|
|
229
|
-
return
|
|
235
|
+
}, lt = (t) => /* @__PURE__ */ l(pt, { ...t, svg: ue });
|
|
236
|
+
lt.displayName = "IconCheckmark";
|
|
237
|
+
function ae(t) {
|
|
238
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
230
239
|
}
|
|
231
|
-
var
|
|
240
|
+
var Sr = { exports: {} };
|
|
232
241
|
/*!
|
|
233
242
|
Copyright (c) 2018 Jed Watson.
|
|
234
243
|
Licensed under the MIT License (MIT), see
|
|
235
244
|
http://jedwatson.github.io/classnames
|
|
236
245
|
*/
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
function
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
function a(r) {
|
|
248
|
-
if (typeof r == "string" || typeof r == "number")
|
|
246
|
+
var Nr;
|
|
247
|
+
function ie() {
|
|
248
|
+
return Nr || (Nr = 1, function(t) {
|
|
249
|
+
(function() {
|
|
250
|
+
var a = {}.hasOwnProperty;
|
|
251
|
+
function n() {
|
|
252
|
+
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
253
|
+
var u = arguments[e];
|
|
254
|
+
u && (r = o(r, i(u)));
|
|
255
|
+
}
|
|
249
256
|
return r;
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
257
|
+
}
|
|
258
|
+
function i(r) {
|
|
259
|
+
if (typeof r == "string" || typeof r == "number")
|
|
260
|
+
return r;
|
|
261
|
+
if (typeof r != "object")
|
|
262
|
+
return "";
|
|
263
|
+
if (Array.isArray(r))
|
|
264
|
+
return n.apply(null, r);
|
|
265
|
+
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
266
|
+
return r.toString();
|
|
267
|
+
var e = "";
|
|
268
|
+
for (var u in r)
|
|
269
|
+
a.call(r, u) && r[u] && (e = o(e, u));
|
|
270
|
+
return e;
|
|
271
|
+
}
|
|
272
|
+
function o(r, e) {
|
|
273
|
+
return e ? r ? r + " " + e : r + e : r;
|
|
274
|
+
}
|
|
275
|
+
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
276
|
+
})();
|
|
277
|
+
}(Sr)), Sr.exports;
|
|
278
|
+
}
|
|
279
|
+
var oe = ie();
|
|
280
|
+
const pe = /* @__PURE__ */ ae(oe), V = {
|
|
269
281
|
"purpur-paragraph": "_purpur-paragraph_1rh57_1",
|
|
270
282
|
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
|
|
271
283
|
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
|
|
@@ -280,163 +292,150 @@ const He = /* @__PURE__ */ Ve(Ge), V = {
|
|
|
280
292
|
"purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1rh57_60",
|
|
281
293
|
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
|
|
282
294
|
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
|
|
283
|
-
},
|
|
284
|
-
PARAGRAPH100: "paragraph-100"
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
PREAMBLE100: "preamble-100",
|
|
289
|
-
PREAMBLE200: "preamble-200",
|
|
290
|
-
ADDITIONAL100: "additional-100",
|
|
291
|
-
ADDITIONAL100MEDIUM: "additional-100-medium",
|
|
292
|
-
OVERLINE100: "overline-100",
|
|
293
|
-
OVERLINE200: "overline-200"
|
|
294
|
-
}, G = "purpur-paragraph", Tr = ({
|
|
295
|
-
["data-testid"]: e,
|
|
296
|
-
children: i,
|
|
295
|
+
}, le = {
|
|
296
|
+
PARAGRAPH100: "paragraph-100"
|
|
297
|
+
}, Z = "purpur-paragraph", st = ({
|
|
298
|
+
["data-testid"]: t,
|
|
299
|
+
children: a,
|
|
297
300
|
className: n,
|
|
298
|
-
disabled:
|
|
301
|
+
disabled: i,
|
|
299
302
|
enableHyphenation: o = !1,
|
|
300
303
|
negative: r = !1,
|
|
301
|
-
variant:
|
|
304
|
+
variant: e = le.PARAGRAPH100,
|
|
302
305
|
...u
|
|
303
306
|
}) => {
|
|
304
|
-
const f =
|
|
307
|
+
const f = pe([
|
|
305
308
|
n,
|
|
306
|
-
V[
|
|
307
|
-
V[`${
|
|
309
|
+
V[Z],
|
|
310
|
+
V[`${Z}--${e}`],
|
|
308
311
|
{
|
|
309
|
-
[V[`${
|
|
310
|
-
[V[`${
|
|
311
|
-
[V[`${
|
|
312
|
+
[V[`${Z}--hyphens`]]: o,
|
|
313
|
+
[V[`${Z}--disabled`]]: i,
|
|
314
|
+
[V[`${Z}--negative`]]: r
|
|
312
315
|
}
|
|
313
316
|
]);
|
|
314
|
-
return /* @__PURE__ */ l("p", { ...u, className: f, "data-testid":
|
|
317
|
+
return /* @__PURE__ */ l("p", { ...u, className: f, "data-testid": t, children: a });
|
|
315
318
|
};
|
|
316
|
-
|
|
317
|
-
const
|
|
318
|
-
(
|
|
319
|
-
const { disabled: n, highlighted:
|
|
320
|
-
[`${
|
|
321
|
-
[`${
|
|
322
|
-
[`${
|
|
323
|
-
[`${
|
|
324
|
-
[`${
|
|
319
|
+
st.displayName = "Paragraph";
|
|
320
|
+
const qr = it.bind(ot), L = "purpur-listbox", sr = X(
|
|
321
|
+
(t, a) => {
|
|
322
|
+
const { disabled: n, highlighted: i, hovered: o, selected: r, children: e, noninteractive: u, ...f } = t, x = qr(`${L}-item`, f.className, {
|
|
323
|
+
[`${L}-item--highlighted`]: i,
|
|
324
|
+
[`${L}-item--selected`]: r,
|
|
325
|
+
[`${L}-item--hovered`]: o,
|
|
326
|
+
[`${L}-item--disabled`]: n,
|
|
327
|
+
[`${L}-item--noninteractive`]: u
|
|
325
328
|
});
|
|
326
|
-
return /* @__PURE__ */
|
|
329
|
+
return /* @__PURE__ */ C(
|
|
327
330
|
"li",
|
|
328
331
|
{
|
|
329
332
|
...f,
|
|
330
|
-
ref:
|
|
333
|
+
ref: a,
|
|
331
334
|
className: x,
|
|
332
335
|
"aria-selected": !!r,
|
|
333
336
|
role: "option",
|
|
334
337
|
"aria-disabled": !!n,
|
|
335
338
|
children: [
|
|
336
|
-
typeof
|
|
337
|
-
r && /* @__PURE__ */ l(
|
|
339
|
+
typeof e == "string" ? /* @__PURE__ */ l(st, { children: e }) : e,
|
|
340
|
+
r && /* @__PURE__ */ l(lt, { size: "xs", className: qr(`${L}-item__icon`) })
|
|
338
341
|
]
|
|
339
342
|
}
|
|
340
343
|
);
|
|
341
344
|
}
|
|
342
|
-
),
|
|
343
|
-
|
|
344
|
-
const
|
|
345
|
-
({ children:
|
|
345
|
+
), se = (t) => nt(t) && (t == null ? void 0 : t.type) === sr;
|
|
346
|
+
sr.displayName = "ListBoxItem";
|
|
347
|
+
const ce = it.bind(ot), de = "purpur-listbox", Y = X(
|
|
348
|
+
({ children: t, ...a }, n) => /* @__PURE__ */ l(
|
|
346
349
|
"ul",
|
|
347
350
|
{
|
|
348
|
-
...
|
|
351
|
+
...a,
|
|
349
352
|
ref: n,
|
|
350
|
-
className:
|
|
353
|
+
className: ce(de, a.className),
|
|
351
354
|
role: "listbox",
|
|
352
|
-
children:
|
|
355
|
+
children: At.toArray(t).filter(se)
|
|
353
356
|
}
|
|
354
357
|
)
|
|
355
358
|
);
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
const
|
|
359
|
-
XS: "xs",
|
|
360
|
-
SM: "sm",
|
|
361
|
-
MD: "md",
|
|
359
|
+
Y.Item = sr;
|
|
360
|
+
Y.displayName = "ListBox";
|
|
361
|
+
const _e = {
|
|
362
362
|
LG: "lg"
|
|
363
363
|
};
|
|
364
|
-
function
|
|
365
|
-
return
|
|
364
|
+
function fe(t) {
|
|
365
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
366
366
|
}
|
|
367
|
-
var
|
|
367
|
+
var Or = { exports: {} };
|
|
368
368
|
/*!
|
|
369
369
|
Copyright (c) 2018 Jed Watson.
|
|
370
370
|
Licensed under the MIT License (MIT), see
|
|
371
371
|
http://jedwatson.github.io/classnames
|
|
372
372
|
*/
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
function
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
function a(r) {
|
|
384
|
-
if (typeof r == "string" || typeof r == "number")
|
|
373
|
+
var Ar;
|
|
374
|
+
function ve() {
|
|
375
|
+
return Ar || (Ar = 1, function(t) {
|
|
376
|
+
(function() {
|
|
377
|
+
var a = {}.hasOwnProperty;
|
|
378
|
+
function n() {
|
|
379
|
+
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
380
|
+
var u = arguments[e];
|
|
381
|
+
u && (r = o(r, i(u)));
|
|
382
|
+
}
|
|
385
383
|
return r;
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
384
|
+
}
|
|
385
|
+
function i(r) {
|
|
386
|
+
if (typeof r == "string" || typeof r == "number")
|
|
387
|
+
return r;
|
|
388
|
+
if (typeof r != "object")
|
|
389
|
+
return "";
|
|
390
|
+
if (Array.isArray(r))
|
|
391
|
+
return n.apply(null, r);
|
|
392
|
+
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
393
|
+
return r.toString();
|
|
394
|
+
var e = "";
|
|
395
|
+
for (var u in r)
|
|
396
|
+
a.call(r, u) && r[u] && (e = o(e, u));
|
|
397
|
+
return e;
|
|
398
|
+
}
|
|
399
|
+
function o(r, e) {
|
|
400
|
+
return e ? r ? r + " " + e : r + e : r;
|
|
401
|
+
}
|
|
402
|
+
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
403
|
+
})();
|
|
404
|
+
}(Or)), Or.exports;
|
|
405
|
+
}
|
|
406
|
+
var me = ve();
|
|
407
|
+
const Cr = /* @__PURE__ */ fe(me), ge = "_rotate_1xozj_1", he = "_dash_1xozj_1", F = {
|
|
405
408
|
"purpur-spinner": "_purpur-spinner_1xozj_1",
|
|
406
|
-
rotate:
|
|
409
|
+
rotate: ge,
|
|
407
410
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_1xozj_4",
|
|
408
411
|
"purpur-spinner--xs": "_purpur-spinner--xs_1xozj_8",
|
|
409
412
|
"purpur-spinner--sm": "_purpur-spinner--sm_1xozj_12",
|
|
410
413
|
"purpur-spinner--md": "_purpur-spinner--md_1xozj_16",
|
|
411
414
|
"purpur-spinner--lg": "_purpur-spinner--lg_1xozj_20",
|
|
412
415
|
"purpur-spinner__circle": "_purpur-spinner__circle_1xozj_24",
|
|
413
|
-
dash:
|
|
416
|
+
dash: he,
|
|
414
417
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_1xozj_33",
|
|
415
418
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_1xozj_36"
|
|
416
|
-
},
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
LG: "lg"
|
|
422
|
-
}, et = ({
|
|
423
|
-
["data-testid"]: e,
|
|
424
|
-
disabled: i = !1,
|
|
419
|
+
}, H = "purpur-spinner", be = {
|
|
420
|
+
SM: "sm"
|
|
421
|
+
}, xe = ({
|
|
422
|
+
["data-testid"]: t,
|
|
423
|
+
disabled: a = !1,
|
|
425
424
|
negative: n = !1,
|
|
426
|
-
size:
|
|
425
|
+
size: i = be.SM,
|
|
427
426
|
...o
|
|
428
427
|
}) => /* @__PURE__ */ l(
|
|
429
428
|
"div",
|
|
430
429
|
{
|
|
431
|
-
className:
|
|
432
|
-
"data-testid":
|
|
430
|
+
className: Cr([F[H], F[`${H}--${i}`]]),
|
|
431
|
+
"data-testid": t,
|
|
433
432
|
...o,
|
|
434
433
|
children: /* @__PURE__ */ l("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ l(
|
|
435
434
|
"circle",
|
|
436
435
|
{
|
|
437
|
-
className:
|
|
438
|
-
[
|
|
439
|
-
[
|
|
436
|
+
className: Cr(F[`${H}__circle`], {
|
|
437
|
+
[F[`${H}__circle--disabled`]]: a,
|
|
438
|
+
[F[`${H}__circle--negative`]]: n
|
|
440
439
|
}),
|
|
441
440
|
cx: "25",
|
|
442
441
|
cy: "25",
|
|
@@ -445,47 +444,50 @@ const hr = /* @__PURE__ */ Ke(Ye), Je = "_rotate_1xozj_1", Qe = "_dash_1xozj_1",
|
|
|
445
444
|
) })
|
|
446
445
|
}
|
|
447
446
|
);
|
|
448
|
-
function
|
|
449
|
-
return
|
|
447
|
+
function ye(t) {
|
|
448
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
450
449
|
}
|
|
451
|
-
var
|
|
450
|
+
var Pr = { exports: {} };
|
|
452
451
|
/*!
|
|
453
452
|
Copyright (c) 2018 Jed Watson.
|
|
454
453
|
Licensed under the MIT License (MIT), see
|
|
455
454
|
http://jedwatson.github.io/classnames
|
|
456
455
|
*/
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
function
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
456
|
+
var kr;
|
|
457
|
+
function we() {
|
|
458
|
+
return kr || (kr = 1, function(t) {
|
|
459
|
+
(function() {
|
|
460
|
+
var a = {}.hasOwnProperty;
|
|
461
|
+
function n() {
|
|
462
|
+
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
463
|
+
var u = arguments[e];
|
|
464
|
+
u && (r = o(r, i.call(this, u)));
|
|
465
|
+
}
|
|
466
|
+
return r;
|
|
464
467
|
}
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
const ut = /* @__PURE__ */ tt(nt), it = {
|
|
468
|
+
function i(r) {
|
|
469
|
+
if (typeof r == "string" || typeof r == "number")
|
|
470
|
+
return this && this[r] || r;
|
|
471
|
+
if (typeof r != "object")
|
|
472
|
+
return "";
|
|
473
|
+
if (Array.isArray(r))
|
|
474
|
+
return n.apply(this, r);
|
|
475
|
+
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
476
|
+
return r.toString();
|
|
477
|
+
var e = "";
|
|
478
|
+
for (var u in r)
|
|
479
|
+
a.call(r, u) && r[u] && (e = o(e, this && this[u] || u));
|
|
480
|
+
return e;
|
|
481
|
+
}
|
|
482
|
+
function o(r, e) {
|
|
483
|
+
return e ? r ? r + " " + e : r + e : r;
|
|
484
|
+
}
|
|
485
|
+
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
486
|
+
})();
|
|
487
|
+
}(Pr)), Pr.exports;
|
|
488
|
+
}
|
|
489
|
+
var $e = we();
|
|
490
|
+
const je = /* @__PURE__ */ ye($e), Se = {
|
|
489
491
|
"purpur-button": "_purpur-button_w455q_1",
|
|
490
492
|
"purpur-button--xs": "_purpur-button--xs_w455q_33",
|
|
491
493
|
"purpur-button--icon-only": "_purpur-button--icon-only_w455q_36",
|
|
@@ -507,14 +509,14 @@ const ut = /* @__PURE__ */ tt(nt), it = {
|
|
|
507
509
|
"purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_w455q_166",
|
|
508
510
|
"purpur-button--text-negative": "_purpur-button--text-negative_w455q_181",
|
|
509
511
|
"purpur-button--text": "_purpur-button--text_w455q_181"
|
|
510
|
-
},
|
|
511
|
-
children:
|
|
512
|
-
className:
|
|
512
|
+
}, Ne = je.bind(Se), B = "purpur-button", qe = ({
|
|
513
|
+
children: t,
|
|
514
|
+
className: a,
|
|
513
515
|
["data-testid"]: n,
|
|
514
|
-
disabled:
|
|
516
|
+
disabled: i = !1,
|
|
515
517
|
fullWidth: o = !1,
|
|
516
518
|
iconOnly: r,
|
|
517
|
-
loading:
|
|
519
|
+
loading: e = !1,
|
|
518
520
|
negative: u = !1,
|
|
519
521
|
onClick: f,
|
|
520
522
|
size: x = "md",
|
|
@@ -524,23 +526,23 @@ const ut = /* @__PURE__ */ tt(nt), it = {
|
|
|
524
526
|
}, _) => {
|
|
525
527
|
if (r && y === "destructive")
|
|
526
528
|
return null;
|
|
527
|
-
const $ =
|
|
529
|
+
const $ = Ne(
|
|
528
530
|
[
|
|
529
|
-
|
|
530
|
-
`${
|
|
531
|
-
`${
|
|
531
|
+
B,
|
|
532
|
+
`${B}--${u ? `${y}-negative` : y}`,
|
|
533
|
+
`${B}--${x}`
|
|
532
534
|
],
|
|
533
535
|
{
|
|
534
|
-
[`${
|
|
535
|
-
[`${
|
|
536
|
-
[`${
|
|
537
|
-
[`${
|
|
536
|
+
[`${B}--icon-only`]: r,
|
|
537
|
+
[`${B}--negative`]: u,
|
|
538
|
+
[`${B}--full-width`]: o,
|
|
539
|
+
[`${B}--disabled`]: i || e
|
|
538
540
|
},
|
|
539
|
-
|
|
541
|
+
a
|
|
540
542
|
), S = (s) => {
|
|
541
|
-
|
|
542
|
-
}, w = !!j["aria-disabled"] ||
|
|
543
|
-
return /* @__PURE__ */
|
|
543
|
+
i || e ? s.preventDefault() : f && f(s);
|
|
544
|
+
}, w = !!j["aria-disabled"] || i || e;
|
|
545
|
+
return /* @__PURE__ */ C(
|
|
544
546
|
"button",
|
|
545
547
|
{
|
|
546
548
|
className: $,
|
|
@@ -551,55 +553,58 @@ const ut = /* @__PURE__ */ tt(nt), it = {
|
|
|
551
553
|
onClick: S,
|
|
552
554
|
...j,
|
|
553
555
|
children: [
|
|
554
|
-
|
|
556
|
+
e && /* @__PURE__ */ l(xe, { size: x === _e.LG ? "xs" : "xxs", negative: u, disabled: w }),
|
|
555
557
|
" ",
|
|
556
|
-
|
|
558
|
+
t
|
|
557
559
|
]
|
|
558
560
|
}
|
|
559
561
|
);
|
|
560
|
-
},
|
|
561
|
-
|
|
562
|
-
function
|
|
563
|
-
return
|
|
562
|
+
}, ct = X(qe);
|
|
563
|
+
ct.displayName = "Button";
|
|
564
|
+
function Oe(t) {
|
|
565
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
564
566
|
}
|
|
565
|
-
var
|
|
567
|
+
var zr = { exports: {} };
|
|
566
568
|
/*!
|
|
567
569
|
Copyright (c) 2018 Jed Watson.
|
|
568
570
|
Licensed under the MIT License (MIT), see
|
|
569
571
|
http://jedwatson.github.io/classnames
|
|
570
572
|
*/
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
function
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
573
|
+
var Mr;
|
|
574
|
+
function Ae() {
|
|
575
|
+
return Mr || (Mr = 1, function(t) {
|
|
576
|
+
(function() {
|
|
577
|
+
var a = {}.hasOwnProperty;
|
|
578
|
+
function n() {
|
|
579
|
+
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
580
|
+
var u = arguments[e];
|
|
581
|
+
u && (r = o(r, i.call(this, u)));
|
|
582
|
+
}
|
|
583
|
+
return r;
|
|
578
584
|
}
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
const st = /* @__PURE__ */ pt(lt), ct = {
|
|
585
|
+
function i(r) {
|
|
586
|
+
if (typeof r == "string" || typeof r == "number")
|
|
587
|
+
return this && this[r] || r;
|
|
588
|
+
if (typeof r != "object")
|
|
589
|
+
return "";
|
|
590
|
+
if (Array.isArray(r))
|
|
591
|
+
return n.apply(this, r);
|
|
592
|
+
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
593
|
+
return r.toString();
|
|
594
|
+
var e = "";
|
|
595
|
+
for (var u in r)
|
|
596
|
+
a.call(r, u) && r[u] && (e = o(e, this && this[u] || u));
|
|
597
|
+
return e;
|
|
598
|
+
}
|
|
599
|
+
function o(r, e) {
|
|
600
|
+
return e ? r ? r + " " + e : r + e : r;
|
|
601
|
+
}
|
|
602
|
+
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
603
|
+
})();
|
|
604
|
+
}(zr)), zr.exports;
|
|
605
|
+
}
|
|
606
|
+
var Ce = Ae();
|
|
607
|
+
const Pe = /* @__PURE__ */ Oe(Ce), ke = {
|
|
603
608
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
604
609
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
605
610
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -607,208 +612,217 @@ const st = /* @__PURE__ */ pt(lt), ct = {
|
|
|
607
612
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
608
613
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
609
614
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
610
|
-
},
|
|
615
|
+
}, ze = Pe.bind(ke), Rr = "purpur-icon", Me = "md", Re = (t) => t.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), Le = ({ content: t = "", title: a } = {}) => {
|
|
611
616
|
const n = [
|
|
612
617
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
613
618
|
{ name: "fill", value: "currentColor" },
|
|
614
619
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
615
|
-
|
|
616
|
-
],
|
|
617
|
-
return `<svg ${
|
|
618
|
-
},
|
|
619
|
-
["data-testid"]:
|
|
620
|
-
svg:
|
|
620
|
+
a ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
621
|
+
], i = a ? `<title>${a}</title>` : "";
|
|
622
|
+
return `<svg ${Re(n)}>${i}${t}</svg>`;
|
|
623
|
+
}, Be = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), dt = ({
|
|
624
|
+
["data-testid"]: t,
|
|
625
|
+
svg: a,
|
|
621
626
|
allyTitle: n,
|
|
622
|
-
className:
|
|
623
|
-
size: o =
|
|
627
|
+
className: i,
|
|
628
|
+
size: o = Me,
|
|
624
629
|
...r
|
|
625
630
|
}) => {
|
|
626
|
-
const
|
|
627
|
-
content:
|
|
631
|
+
const e = Le({
|
|
632
|
+
content: Be(a.svg),
|
|
628
633
|
title: n
|
|
629
|
-
}), u =
|
|
634
|
+
}), u = ze(i, Rr, `${Rr}--${o}`);
|
|
630
635
|
return /* @__PURE__ */ l(
|
|
631
636
|
"span",
|
|
632
637
|
{
|
|
633
638
|
"aria-label": n,
|
|
634
639
|
className: u,
|
|
635
|
-
"data-testid":
|
|
636
|
-
dangerouslySetInnerHTML: { __html:
|
|
640
|
+
"data-testid": t,
|
|
641
|
+
dangerouslySetInnerHTML: { __html: e },
|
|
637
642
|
...r
|
|
638
643
|
}
|
|
639
644
|
);
|
|
640
645
|
};
|
|
641
|
-
|
|
642
|
-
const
|
|
646
|
+
dt.displayName = "Icon";
|
|
647
|
+
const Ee = {
|
|
643
648
|
name: "error-filled",
|
|
644
649
|
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>',
|
|
645
650
|
keywords: ["error-filled"],
|
|
646
651
|
category: "status"
|
|
647
652
|
};
|
|
648
|
-
function
|
|
649
|
-
return
|
|
653
|
+
function Te(t) {
|
|
654
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
650
655
|
}
|
|
651
|
-
var
|
|
656
|
+
var Lr = { exports: {} };
|
|
652
657
|
/*!
|
|
653
658
|
Copyright (c) 2018 Jed Watson.
|
|
654
659
|
Licensed under the MIT License (MIT), see
|
|
655
660
|
http://jedwatson.github.io/classnames
|
|
656
661
|
*/
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
function
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
function a(r) {
|
|
668
|
-
if (typeof r == "string" || typeof r == "number")
|
|
662
|
+
var Br;
|
|
663
|
+
function Ie() {
|
|
664
|
+
return Br || (Br = 1, function(t) {
|
|
665
|
+
(function() {
|
|
666
|
+
var a = {}.hasOwnProperty;
|
|
667
|
+
function n() {
|
|
668
|
+
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
669
|
+
var u = arguments[e];
|
|
670
|
+
u && (r = o(r, i(u)));
|
|
671
|
+
}
|
|
669
672
|
return r;
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
673
|
+
}
|
|
674
|
+
function i(r) {
|
|
675
|
+
if (typeof r == "string" || typeof r == "number")
|
|
676
|
+
return r;
|
|
677
|
+
if (typeof r != "object")
|
|
678
|
+
return "";
|
|
679
|
+
if (Array.isArray(r))
|
|
680
|
+
return n.apply(null, r);
|
|
681
|
+
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
682
|
+
return r.toString();
|
|
683
|
+
var e = "";
|
|
684
|
+
for (var u in r)
|
|
685
|
+
a.call(r, u) && r[u] && (e = o(e, u));
|
|
686
|
+
return e;
|
|
687
|
+
}
|
|
688
|
+
function o(r, e) {
|
|
689
|
+
return e ? r ? r + " " + e : r + e : r;
|
|
690
|
+
}
|
|
691
|
+
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
692
|
+
})();
|
|
693
|
+
}(Lr)), Lr.exports;
|
|
694
|
+
}
|
|
695
|
+
var De = Ie();
|
|
696
|
+
const Ve = /* @__PURE__ */ Te(De), Er = {
|
|
689
697
|
"purpur-field-error-text": "_purpur-field-error-text_1u768_1",
|
|
690
698
|
"purpur-field-error-text__icon": "_purpur-field-error-text__icon_1u768_12"
|
|
691
|
-
},
|
|
692
|
-
["data-testid"]:
|
|
693
|
-
children:
|
|
699
|
+
}, Tr = "purpur-field-error-text", Ze = ({
|
|
700
|
+
["data-testid"]: t,
|
|
701
|
+
children: a,
|
|
694
702
|
className: n,
|
|
695
|
-
relevant:
|
|
703
|
+
relevant: i = "additions text",
|
|
696
704
|
...o
|
|
697
|
-
}) => /* @__PURE__ */
|
|
705
|
+
}) => /* @__PURE__ */ C(
|
|
698
706
|
"div",
|
|
699
707
|
{
|
|
700
|
-
className:
|
|
701
|
-
"data-testid":
|
|
708
|
+
className: Ve([n, Er[Tr]]),
|
|
709
|
+
"data-testid": t,
|
|
702
710
|
"aria-live": "assertive",
|
|
703
|
-
"aria-relevant":
|
|
711
|
+
"aria-relevant": i,
|
|
704
712
|
...o,
|
|
705
713
|
children: [
|
|
706
|
-
/* @__PURE__ */ l(
|
|
707
|
-
|
|
714
|
+
/* @__PURE__ */ l(dt, { svg: Ee, size: "xs", className: Er[`${Tr}__icon`] }),
|
|
715
|
+
a
|
|
708
716
|
]
|
|
709
717
|
}
|
|
710
718
|
);
|
|
711
|
-
function
|
|
712
|
-
return
|
|
719
|
+
function Fe(t) {
|
|
720
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
713
721
|
}
|
|
714
|
-
var
|
|
722
|
+
var Ir = { exports: {} };
|
|
715
723
|
/*!
|
|
716
724
|
Copyright (c) 2018 Jed Watson.
|
|
717
725
|
Licensed under the MIT License (MIT), see
|
|
718
726
|
http://jedwatson.github.io/classnames
|
|
719
727
|
*/
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
function
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
function a(r) {
|
|
731
|
-
if (typeof r == "string" || typeof r == "number")
|
|
728
|
+
var Dr;
|
|
729
|
+
function He() {
|
|
730
|
+
return Dr || (Dr = 1, function(t) {
|
|
731
|
+
(function() {
|
|
732
|
+
var a = {}.hasOwnProperty;
|
|
733
|
+
function n() {
|
|
734
|
+
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
735
|
+
var u = arguments[e];
|
|
736
|
+
u && (r = o(r, i(u)));
|
|
737
|
+
}
|
|
732
738
|
return r;
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
739
|
+
}
|
|
740
|
+
function i(r) {
|
|
741
|
+
if (typeof r == "string" || typeof r == "number")
|
|
742
|
+
return r;
|
|
743
|
+
if (typeof r != "object")
|
|
744
|
+
return "";
|
|
745
|
+
if (Array.isArray(r))
|
|
746
|
+
return n.apply(null, r);
|
|
747
|
+
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
748
|
+
return r.toString();
|
|
749
|
+
var e = "";
|
|
750
|
+
for (var u in r)
|
|
751
|
+
a.call(r, u) && r[u] && (e = o(e, u));
|
|
752
|
+
return e;
|
|
753
|
+
}
|
|
754
|
+
function o(r, e) {
|
|
755
|
+
return e ? r ? r + " " + e : r + e : r;
|
|
756
|
+
}
|
|
757
|
+
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
758
|
+
})();
|
|
759
|
+
}(Ir)), Ir.exports;
|
|
760
|
+
}
|
|
761
|
+
var We = He();
|
|
762
|
+
const Ge = /* @__PURE__ */ Fe(We), Vr = {
|
|
752
763
|
"purpur-field-helper-text": "_purpur-field-helper-text_atw6b_1",
|
|
753
764
|
"purpur-field-helper-text--disabled": "_purpur-field-helper-text--disabled_atw6b_9"
|
|
754
|
-
},
|
|
755
|
-
["data-testid"]:
|
|
756
|
-
children:
|
|
765
|
+
}, Zr = "purpur-field-helper-text", Ue = ({
|
|
766
|
+
["data-testid"]: t,
|
|
767
|
+
children: a,
|
|
757
768
|
className: n,
|
|
758
|
-
disabled:
|
|
769
|
+
disabled: i,
|
|
759
770
|
id: o,
|
|
760
771
|
...r
|
|
761
772
|
}) => {
|
|
762
|
-
const
|
|
773
|
+
const e = Ge([
|
|
763
774
|
n,
|
|
764
|
-
|
|
775
|
+
Vr[Zr],
|
|
765
776
|
{
|
|
766
|
-
[
|
|
777
|
+
[Vr[`${Zr}--disabled`]]: i
|
|
767
778
|
}
|
|
768
779
|
]);
|
|
769
|
-
return /* @__PURE__ */ l("span", { id: o, className:
|
|
780
|
+
return /* @__PURE__ */ l("span", { id: o, className: e, "data-testid": t, ...r, children: a });
|
|
770
781
|
};
|
|
771
|
-
function
|
|
772
|
-
return
|
|
782
|
+
function Ke(t) {
|
|
783
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
773
784
|
}
|
|
774
|
-
var
|
|
785
|
+
var Fr = { exports: {} };
|
|
775
786
|
/*!
|
|
776
787
|
Copyright (c) 2018 Jed Watson.
|
|
777
788
|
Licensed under the MIT License (MIT), see
|
|
778
789
|
http://jedwatson.github.io/classnames
|
|
779
790
|
*/
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
function
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
791
|
+
var Hr;
|
|
792
|
+
function Ye() {
|
|
793
|
+
return Hr || (Hr = 1, function(t) {
|
|
794
|
+
(function() {
|
|
795
|
+
var a = {}.hasOwnProperty;
|
|
796
|
+
function n() {
|
|
797
|
+
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
798
|
+
var u = arguments[e];
|
|
799
|
+
u && (r = o(r, i.call(this, u)));
|
|
800
|
+
}
|
|
801
|
+
return r;
|
|
787
802
|
}
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
}
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
const Ot = /* @__PURE__ */ Nt(At), qt = {
|
|
803
|
+
function i(r) {
|
|
804
|
+
if (typeof r == "string" || typeof r == "number")
|
|
805
|
+
return this && this[r] || r;
|
|
806
|
+
if (typeof r != "object")
|
|
807
|
+
return "";
|
|
808
|
+
if (Array.isArray(r))
|
|
809
|
+
return n.apply(this, r);
|
|
810
|
+
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
811
|
+
return r.toString();
|
|
812
|
+
var e = "";
|
|
813
|
+
for (var u in r)
|
|
814
|
+
a.call(r, u) && r[u] && (e = o(e, this && this[u] || u));
|
|
815
|
+
return e;
|
|
816
|
+
}
|
|
817
|
+
function o(r, e) {
|
|
818
|
+
return e ? r ? r + " " + e : r + e : r;
|
|
819
|
+
}
|
|
820
|
+
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
821
|
+
})();
|
|
822
|
+
}(Fr)), Fr.exports;
|
|
823
|
+
}
|
|
824
|
+
var Xe = Ye();
|
|
825
|
+
const Je = /* @__PURE__ */ Ke(Xe), Qe = {
|
|
812
826
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
813
827
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
814
828
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -816,111 +830,111 @@ const Ot = /* @__PURE__ */ Nt(At), qt = {
|
|
|
816
830
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
817
831
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
818
832
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
819
|
-
},
|
|
833
|
+
}, rn = Je.bind(Qe), Wr = "purpur-icon", tn = "md", en = (t) => t.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), nn = ({ content: t = "", title: a } = {}) => {
|
|
820
834
|
const n = [
|
|
821
835
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
822
836
|
{ name: "fill", value: "currentColor" },
|
|
823
837
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
824
|
-
|
|
825
|
-
],
|
|
826
|
-
return `<svg ${
|
|
827
|
-
},
|
|
828
|
-
["data-testid"]:
|
|
829
|
-
svg:
|
|
838
|
+
a ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
839
|
+
], i = a ? `<title>${a}</title>` : "";
|
|
840
|
+
return `<svg ${en(n)}>${i}${t}</svg>`;
|
|
841
|
+
}, un = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), cr = ({
|
|
842
|
+
["data-testid"]: t,
|
|
843
|
+
svg: a,
|
|
830
844
|
allyTitle: n,
|
|
831
|
-
className:
|
|
832
|
-
size: o =
|
|
845
|
+
className: i,
|
|
846
|
+
size: o = tn,
|
|
833
847
|
...r
|
|
834
848
|
}) => {
|
|
835
|
-
const
|
|
836
|
-
content:
|
|
849
|
+
const e = nn({
|
|
850
|
+
content: un(a.svg),
|
|
837
851
|
title: n
|
|
838
|
-
}), u =
|
|
852
|
+
}), u = rn(i, Wr, `${Wr}--${o}`);
|
|
839
853
|
return /* @__PURE__ */ l(
|
|
840
854
|
"span",
|
|
841
855
|
{
|
|
842
856
|
"aria-label": n,
|
|
843
857
|
className: u,
|
|
844
|
-
"data-testid":
|
|
845
|
-
dangerouslySetInnerHTML: { __html:
|
|
858
|
+
"data-testid": t,
|
|
859
|
+
dangerouslySetInnerHTML: { __html: e },
|
|
846
860
|
...r
|
|
847
861
|
}
|
|
848
862
|
);
|
|
849
863
|
};
|
|
850
|
-
|
|
851
|
-
const
|
|
864
|
+
cr.displayName = "Icon";
|
|
865
|
+
const an = {
|
|
852
866
|
name: "check-circle-filled",
|
|
853
867
|
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>',
|
|
854
868
|
keywords: ["check-circle-filled"],
|
|
855
869
|
category: "status"
|
|
856
|
-
},
|
|
857
|
-
|
|
858
|
-
const
|
|
870
|
+
}, _t = (t) => /* @__PURE__ */ l(cr, { ...t, svg: an });
|
|
871
|
+
_t.displayName = "IconCheckCircleFilled";
|
|
872
|
+
const on = {
|
|
859
873
|
name: "close",
|
|
860
874
|
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>',
|
|
861
875
|
keywords: ["close"],
|
|
862
876
|
category: "utility"
|
|
863
|
-
},
|
|
864
|
-
|
|
865
|
-
function
|
|
866
|
-
if (typeof
|
|
867
|
-
return
|
|
868
|
-
|
|
877
|
+
}, ft = (t) => /* @__PURE__ */ l(cr, { ...t, svg: on });
|
|
878
|
+
ft.displayName = "IconClose";
|
|
879
|
+
function Gr(t, a) {
|
|
880
|
+
if (typeof t == "function")
|
|
881
|
+
return t(a);
|
|
882
|
+
t != null && (t.current = a);
|
|
869
883
|
}
|
|
870
|
-
function
|
|
871
|
-
return (
|
|
884
|
+
function pn(...t) {
|
|
885
|
+
return (a) => {
|
|
872
886
|
let n = !1;
|
|
873
|
-
const
|
|
874
|
-
const r =
|
|
887
|
+
const i = t.map((o) => {
|
|
888
|
+
const r = Gr(o, a);
|
|
875
889
|
return !n && typeof r == "function" && (n = !0), r;
|
|
876
890
|
});
|
|
877
891
|
if (n)
|
|
878
892
|
return () => {
|
|
879
|
-
for (let o = 0; o <
|
|
880
|
-
const r =
|
|
881
|
-
typeof r == "function" ? r() :
|
|
893
|
+
for (let o = 0; o < i.length; o++) {
|
|
894
|
+
const r = i[o];
|
|
895
|
+
typeof r == "function" ? r() : Gr(t[o], null);
|
|
882
896
|
}
|
|
883
897
|
};
|
|
884
898
|
};
|
|
885
899
|
}
|
|
886
|
-
var
|
|
887
|
-
const { children: n, ...
|
|
900
|
+
var vt = m.forwardRef((t, a) => {
|
|
901
|
+
const { children: n, ...i } = t, o = m.Children.toArray(n), r = o.find(sn);
|
|
888
902
|
if (r) {
|
|
889
|
-
const
|
|
890
|
-
return /* @__PURE__ */ l(
|
|
903
|
+
const e = r.props.children, u = o.map((f) => f === r ? m.Children.count(e) > 1 ? m.Children.only(null) : m.isValidElement(e) ? e.props.children : null : f);
|
|
904
|
+
return /* @__PURE__ */ l(lr, { ...i, ref: a, children: m.isValidElement(e) ? m.cloneElement(e, void 0, u) : null });
|
|
891
905
|
}
|
|
892
|
-
return /* @__PURE__ */ l(
|
|
906
|
+
return /* @__PURE__ */ l(lr, { ...i, ref: a, children: n });
|
|
893
907
|
});
|
|
894
|
-
|
|
895
|
-
var
|
|
896
|
-
const { children: n, ...
|
|
897
|
-
if (
|
|
898
|
-
const o =
|
|
899
|
-
return n.type !==
|
|
908
|
+
vt.displayName = "Slot";
|
|
909
|
+
var lr = m.forwardRef((t, a) => {
|
|
910
|
+
const { children: n, ...i } = t;
|
|
911
|
+
if (m.isValidElement(n)) {
|
|
912
|
+
const o = dn(n), r = cn(i, n.props);
|
|
913
|
+
return n.type !== m.Fragment && (r.ref = a ? pn(a, o) : o), m.cloneElement(n, r);
|
|
900
914
|
}
|
|
901
|
-
return
|
|
915
|
+
return m.Children.count(n) > 1 ? m.Children.only(null) : null;
|
|
902
916
|
});
|
|
903
|
-
|
|
904
|
-
var
|
|
905
|
-
function
|
|
906
|
-
return
|
|
917
|
+
lr.displayName = "SlotClone";
|
|
918
|
+
var ln = ({ children: t }) => /* @__PURE__ */ l(et, { children: t });
|
|
919
|
+
function sn(t) {
|
|
920
|
+
return m.isValidElement(t) && t.type === ln;
|
|
907
921
|
}
|
|
908
|
-
function
|
|
909
|
-
const n = { ...
|
|
910
|
-
for (const
|
|
911
|
-
const o =
|
|
912
|
-
/^on[A-Z]/.test(
|
|
913
|
-
r(...
|
|
914
|
-
} : o && (n[
|
|
922
|
+
function cn(t, a) {
|
|
923
|
+
const n = { ...a };
|
|
924
|
+
for (const i in a) {
|
|
925
|
+
const o = t[i], r = a[i];
|
|
926
|
+
/^on[A-Z]/.test(i) ? o && r ? n[i] = (...e) => {
|
|
927
|
+
r(...e), o(...e);
|
|
928
|
+
} : o && (n[i] = o) : i === "style" ? n[i] = { ...o, ...r } : i === "className" && (n[i] = [o, r].filter(Boolean).join(" "));
|
|
915
929
|
}
|
|
916
|
-
return { ...
|
|
930
|
+
return { ...t, ...n };
|
|
917
931
|
}
|
|
918
|
-
function
|
|
919
|
-
var
|
|
920
|
-
let
|
|
921
|
-
return o ?
|
|
932
|
+
function dn(t) {
|
|
933
|
+
var a, n;
|
|
934
|
+
let i = (a = Object.getOwnPropertyDescriptor(t.props, "ref")) == null ? void 0 : a.get, o = i && "isReactWarning" in i && i.isReactWarning;
|
|
935
|
+
return o ? t.ref : (i = (n = Object.getOwnPropertyDescriptor(t, "ref")) == null ? void 0 : n.get, o = i && "isReactWarning" in i && i.isReactWarning, o ? t.props.ref : t.props.ref || t.ref);
|
|
922
936
|
}
|
|
923
|
-
var
|
|
937
|
+
var _n = [
|
|
924
938
|
"a",
|
|
925
939
|
"button",
|
|
926
940
|
"div",
|
|
@@ -937,164 +951,166 @@ var Vt = [
|
|
|
937
951
|
"span",
|
|
938
952
|
"svg",
|
|
939
953
|
"ul"
|
|
940
|
-
],
|
|
941
|
-
const n =
|
|
942
|
-
const { asChild: r, ...
|
|
943
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l(u, { ...
|
|
954
|
+
], fn = _n.reduce((t, a) => {
|
|
955
|
+
const n = m.forwardRef((i, o) => {
|
|
956
|
+
const { asChild: r, ...e } = i, u = r ? vt : a;
|
|
957
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l(u, { ...e, ref: o });
|
|
944
958
|
});
|
|
945
|
-
return n.displayName = `Primitive.${
|
|
946
|
-
}, {}),
|
|
947
|
-
|
|
959
|
+
return n.displayName = `Primitive.${a}`, { ...t, [a]: n };
|
|
960
|
+
}, {}), vn = "Label", mt = m.forwardRef((t, a) => /* @__PURE__ */ l(
|
|
961
|
+
fn.label,
|
|
948
962
|
{
|
|
949
|
-
...
|
|
950
|
-
ref:
|
|
963
|
+
...t,
|
|
964
|
+
ref: a,
|
|
951
965
|
onMouseDown: (n) => {
|
|
952
|
-
var
|
|
953
|
-
n.target.closest("button, input, select, textarea") || ((
|
|
966
|
+
var i;
|
|
967
|
+
n.target.closest("button, input, select, textarea") || ((i = t.onMouseDown) == null || i.call(t, n), !n.defaultPrevented && n.detail > 1 && n.preventDefault());
|
|
954
968
|
}
|
|
955
969
|
}
|
|
956
970
|
));
|
|
957
|
-
|
|
958
|
-
var
|
|
959
|
-
function
|
|
960
|
-
return
|
|
971
|
+
mt.displayName = vn;
|
|
972
|
+
var mn = mt;
|
|
973
|
+
function gn(t) {
|
|
974
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
961
975
|
}
|
|
962
|
-
var
|
|
976
|
+
var Ur = { exports: {} };
|
|
963
977
|
/*!
|
|
964
978
|
Copyright (c) 2018 Jed Watson.
|
|
965
979
|
Licensed under the MIT License (MIT), see
|
|
966
980
|
http://jedwatson.github.io/classnames
|
|
967
981
|
*/
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
function
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
function a(r) {
|
|
979
|
-
if (typeof r == "string" || typeof r == "number")
|
|
982
|
+
var Kr;
|
|
983
|
+
function hn() {
|
|
984
|
+
return Kr || (Kr = 1, function(t) {
|
|
985
|
+
(function() {
|
|
986
|
+
var a = {}.hasOwnProperty;
|
|
987
|
+
function n() {
|
|
988
|
+
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
989
|
+
var u = arguments[e];
|
|
990
|
+
u && (r = o(r, i(u)));
|
|
991
|
+
}
|
|
980
992
|
return r;
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
993
|
+
}
|
|
994
|
+
function i(r) {
|
|
995
|
+
if (typeof r == "string" || typeof r == "number")
|
|
996
|
+
return r;
|
|
997
|
+
if (typeof r != "object")
|
|
998
|
+
return "";
|
|
999
|
+
if (Array.isArray(r))
|
|
1000
|
+
return n.apply(null, r);
|
|
1001
|
+
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
1002
|
+
return r.toString();
|
|
1003
|
+
var e = "";
|
|
1004
|
+
for (var u in r)
|
|
1005
|
+
a.call(r, u) && r[u] && (e = o(e, u));
|
|
1006
|
+
return e;
|
|
1007
|
+
}
|
|
1008
|
+
function o(r, e) {
|
|
1009
|
+
return e ? r ? r + " " + e : r + e : r;
|
|
1010
|
+
}
|
|
1011
|
+
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
1012
|
+
})();
|
|
1013
|
+
}(Ur)), Ur.exports;
|
|
1014
|
+
}
|
|
1015
|
+
var bn = hn();
|
|
1016
|
+
const xn = /* @__PURE__ */ gn(bn), ir = {
|
|
1000
1017
|
"purpur-label": "_purpur-label_12cfi_1",
|
|
1001
1018
|
"purpur-label--negative": "_purpur-label--negative_12cfi_9",
|
|
1002
1019
|
"purpur-label--disabled": "_purpur-label--disabled_12cfi_12"
|
|
1003
|
-
}, or = "purpur-label",
|
|
1004
|
-
children:
|
|
1005
|
-
className:
|
|
1020
|
+
}, or = "purpur-label", yn = ({
|
|
1021
|
+
children: t,
|
|
1022
|
+
className: a,
|
|
1006
1023
|
htmlFor: n,
|
|
1007
|
-
"data-testid":
|
|
1024
|
+
"data-testid": i,
|
|
1008
1025
|
disabled: o,
|
|
1009
1026
|
negative: r = !1,
|
|
1010
|
-
...
|
|
1027
|
+
...e
|
|
1011
1028
|
}) => {
|
|
1012
|
-
const u =
|
|
1013
|
-
|
|
1014
|
-
|
|
1029
|
+
const u = xn([
|
|
1030
|
+
a,
|
|
1031
|
+
ir[or],
|
|
1015
1032
|
{
|
|
1016
|
-
[
|
|
1017
|
-
[
|
|
1033
|
+
[ir[`${or}--disabled`]]: o,
|
|
1034
|
+
[ir[`${or}--negative`]]: r
|
|
1018
1035
|
}
|
|
1019
1036
|
]);
|
|
1020
|
-
return /* @__PURE__ */ l(
|
|
1037
|
+
return /* @__PURE__ */ l(mn, { className: u, "data-testid": i, htmlFor: n, ...e, children: t });
|
|
1021
1038
|
};
|
|
1022
|
-
function
|
|
1023
|
-
return
|
|
1039
|
+
function wn(t) {
|
|
1040
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1024
1041
|
}
|
|
1025
|
-
var
|
|
1042
|
+
var Yr = { exports: {} };
|
|
1026
1043
|
/*!
|
|
1027
1044
|
Copyright (c) 2018 Jed Watson.
|
|
1028
1045
|
Licensed under the MIT License (MIT), see
|
|
1029
1046
|
http://jedwatson.github.io/classnames
|
|
1030
1047
|
*/
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
function
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
function a(r) {
|
|
1042
|
-
if (typeof r == "string" || typeof r == "number")
|
|
1048
|
+
var Xr;
|
|
1049
|
+
function $n() {
|
|
1050
|
+
return Xr || (Xr = 1, function(t) {
|
|
1051
|
+
(function() {
|
|
1052
|
+
var a = {}.hasOwnProperty;
|
|
1053
|
+
function n() {
|
|
1054
|
+
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
1055
|
+
var u = arguments[e];
|
|
1056
|
+
u && (r = o(r, i(u)));
|
|
1057
|
+
}
|
|
1043
1058
|
return r;
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1059
|
+
}
|
|
1060
|
+
function i(r) {
|
|
1061
|
+
if (typeof r == "string" || typeof r == "number")
|
|
1062
|
+
return r;
|
|
1063
|
+
if (typeof r != "object")
|
|
1064
|
+
return "";
|
|
1065
|
+
if (Array.isArray(r))
|
|
1066
|
+
return n.apply(null, r);
|
|
1067
|
+
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
1068
|
+
return r.toString();
|
|
1069
|
+
var e = "";
|
|
1070
|
+
for (var u in r)
|
|
1071
|
+
a.call(r, u) && r[u] && (e = o(e, u));
|
|
1072
|
+
return e;
|
|
1073
|
+
}
|
|
1074
|
+
function o(r, e) {
|
|
1075
|
+
return e ? r ? r + " " + e : r + e : r;
|
|
1076
|
+
}
|
|
1077
|
+
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
1078
|
+
})();
|
|
1079
|
+
}(Yr)), Yr.exports;
|
|
1080
|
+
}
|
|
1081
|
+
var jn = $n();
|
|
1082
|
+
const Jr = /* @__PURE__ */ wn(jn), Sn = "_rotate_1xozj_1", Nn = "_dash_1xozj_1", W = {
|
|
1063
1083
|
"purpur-spinner": "_purpur-spinner_1xozj_1",
|
|
1064
|
-
rotate:
|
|
1084
|
+
rotate: Sn,
|
|
1065
1085
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_1xozj_4",
|
|
1066
1086
|
"purpur-spinner--xs": "_purpur-spinner--xs_1xozj_8",
|
|
1067
1087
|
"purpur-spinner--sm": "_purpur-spinner--sm_1xozj_12",
|
|
1068
1088
|
"purpur-spinner--md": "_purpur-spinner--md_1xozj_16",
|
|
1069
1089
|
"purpur-spinner--lg": "_purpur-spinner--lg_1xozj_20",
|
|
1070
1090
|
"purpur-spinner__circle": "_purpur-spinner__circle_1xozj_24",
|
|
1071
|
-
dash:
|
|
1091
|
+
dash: Nn,
|
|
1072
1092
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_1xozj_33",
|
|
1073
1093
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_1xozj_36"
|
|
1074
|
-
},
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
LG: "lg"
|
|
1080
|
-
}, en = ({
|
|
1081
|
-
["data-testid"]: e,
|
|
1082
|
-
disabled: i = !1,
|
|
1094
|
+
}, G = "purpur-spinner", qn = {
|
|
1095
|
+
SM: "sm"
|
|
1096
|
+
}, On = ({
|
|
1097
|
+
["data-testid"]: t,
|
|
1098
|
+
disabled: a = !1,
|
|
1083
1099
|
negative: n = !1,
|
|
1084
|
-
size:
|
|
1100
|
+
size: i = qn.SM,
|
|
1085
1101
|
...o
|
|
1086
1102
|
}) => /* @__PURE__ */ l(
|
|
1087
1103
|
"div",
|
|
1088
1104
|
{
|
|
1089
|
-
className:
|
|
1090
|
-
"data-testid":
|
|
1105
|
+
className: Jr([W[G], W[`${G}--${i}`]]),
|
|
1106
|
+
"data-testid": t,
|
|
1091
1107
|
...o,
|
|
1092
1108
|
children: /* @__PURE__ */ l("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ l(
|
|
1093
1109
|
"circle",
|
|
1094
1110
|
{
|
|
1095
|
-
className:
|
|
1096
|
-
[
|
|
1097
|
-
[
|
|
1111
|
+
className: Jr(W[`${G}__circle`], {
|
|
1112
|
+
[W[`${G}__circle--disabled`]]: a,
|
|
1113
|
+
[W[`${G}__circle--negative`]]: n
|
|
1098
1114
|
}),
|
|
1099
1115
|
cx: "25",
|
|
1100
1116
|
cy: "25",
|
|
@@ -1103,47 +1119,50 @@ const Ar = /* @__PURE__ */ Kt(Yt), Jt = "_rotate_1xozj_1", Qt = "_dash_1xozj_1",
|
|
|
1103
1119
|
) })
|
|
1104
1120
|
}
|
|
1105
1121
|
);
|
|
1106
|
-
function
|
|
1107
|
-
return
|
|
1122
|
+
function An(t) {
|
|
1123
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1108
1124
|
}
|
|
1109
|
-
var
|
|
1125
|
+
var Qr = { exports: {} };
|
|
1110
1126
|
/*!
|
|
1111
1127
|
Copyright (c) 2018 Jed Watson.
|
|
1112
1128
|
Licensed under the MIT License (MIT), see
|
|
1113
1129
|
http://jedwatson.github.io/classnames
|
|
1114
1130
|
*/
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
function
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1131
|
+
var rt;
|
|
1132
|
+
function Cn() {
|
|
1133
|
+
return rt || (rt = 1, function(t) {
|
|
1134
|
+
(function() {
|
|
1135
|
+
var a = {}.hasOwnProperty;
|
|
1136
|
+
function n() {
|
|
1137
|
+
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
1138
|
+
var u = arguments[e];
|
|
1139
|
+
u && (r = o(r, i.call(this, u)));
|
|
1140
|
+
}
|
|
1141
|
+
return r;
|
|
1122
1142
|
}
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
}
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
const un = /* @__PURE__ */ tn(nn), an = {
|
|
1143
|
+
function i(r) {
|
|
1144
|
+
if (typeof r == "string" || typeof r == "number")
|
|
1145
|
+
return this && this[r] || r;
|
|
1146
|
+
if (typeof r != "object")
|
|
1147
|
+
return "";
|
|
1148
|
+
if (Array.isArray(r))
|
|
1149
|
+
return n.apply(this, r);
|
|
1150
|
+
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
1151
|
+
return r.toString();
|
|
1152
|
+
var e = "";
|
|
1153
|
+
for (var u in r)
|
|
1154
|
+
a.call(r, u) && r[u] && (e = o(e, this && this[u] || u));
|
|
1155
|
+
return e;
|
|
1156
|
+
}
|
|
1157
|
+
function o(r, e) {
|
|
1158
|
+
return e ? r ? r + " " + e : r + e : r;
|
|
1159
|
+
}
|
|
1160
|
+
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
1161
|
+
})();
|
|
1162
|
+
}(Qr)), Qr.exports;
|
|
1163
|
+
}
|
|
1164
|
+
var Pn = Cn();
|
|
1165
|
+
const kn = /* @__PURE__ */ An(Pn), zn = {
|
|
1147
1166
|
"purpur-text-field": "_purpur-text-field_nj9f4_1",
|
|
1148
1167
|
"purpur-text-field__label": "_purpur-text-field__label_nj9f4_7",
|
|
1149
1168
|
"purpur-text-field__label-text": "_purpur-text-field__label-text_nj9f4_13",
|
|
@@ -1160,14 +1179,14 @@ const un = /* @__PURE__ */ tn(nn), an = {
|
|
|
1160
1179
|
"purpur-text-field__input--error": "_purpur-text-field__input--error_nj9f4_94",
|
|
1161
1180
|
"purpur-text-field__adornment-container": "_purpur-text-field__adornment-container_nj9f4_106",
|
|
1162
1181
|
"purpur-text-field__valid-icon": "_purpur-text-field__valid-icon_nj9f4_111"
|
|
1163
|
-
},
|
|
1164
|
-
["data-testid"]:
|
|
1165
|
-
className:
|
|
1182
|
+
}, Mn = (t) => K(t), A = kn.bind(zn), v = "purpur-text-field", Rn = ({
|
|
1183
|
+
["data-testid"]: t,
|
|
1184
|
+
className: a,
|
|
1166
1185
|
clearButtonAllyLabel: n,
|
|
1167
|
-
beforeField:
|
|
1186
|
+
beforeField: i,
|
|
1168
1187
|
afterField: o,
|
|
1169
1188
|
endAdornment: r,
|
|
1170
|
-
errorText:
|
|
1189
|
+
errorText: e,
|
|
1171
1190
|
helperText: u,
|
|
1172
1191
|
label: f,
|
|
1173
1192
|
loading: x = !1,
|
|
@@ -1177,14 +1196,14 @@ const un = /* @__PURE__ */ tn(nn), an = {
|
|
|
1177
1196
|
..._
|
|
1178
1197
|
}, $) => {
|
|
1179
1198
|
var S;
|
|
1180
|
-
const w =
|
|
1181
|
-
|
|
1199
|
+
const w = Ct(), s = _.id ?? w, g = (h) => t ? `${t}-${h}` : void 0, P = j && !e, z = u ? `${s}-helper-text` : void 0, E = [N].filter((h) => !!h), d = (typeof _.value == "number" ? _.value !== void 0 : (S = _.value) == null ? void 0 : S.length) && !_.disabled && !_.readOnly && !x && y && n, q = Mn(null), T = (h) => {
|
|
1200
|
+
q.current = h, typeof $ == "function" ? $(h) : $ && ($.current = h);
|
|
1182
1201
|
}, J = () => {
|
|
1183
|
-
var
|
|
1184
|
-
y == null || y(), (
|
|
1185
|
-
},
|
|
1202
|
+
var h;
|
|
1203
|
+
y == null || y(), (h = q.current) == null || h.focus();
|
|
1204
|
+
}, M = [
|
|
1186
1205
|
x && /* @__PURE__ */ l(
|
|
1187
|
-
|
|
1206
|
+
On,
|
|
1188
1207
|
{
|
|
1189
1208
|
disabled: _.disabled,
|
|
1190
1209
|
size: "xs",
|
|
@@ -1193,7 +1212,7 @@ const un = /* @__PURE__ */ tn(nn), an = {
|
|
|
1193
1212
|
"spinner"
|
|
1194
1213
|
),
|
|
1195
1214
|
d && /* @__PURE__ */ l(
|
|
1196
|
-
|
|
1215
|
+
ct,
|
|
1197
1216
|
{
|
|
1198
1217
|
variant: "tertiary-purple",
|
|
1199
1218
|
onClick: J,
|
|
@@ -1201,48 +1220,48 @@ const un = /* @__PURE__ */ tn(nn), an = {
|
|
|
1201
1220
|
"aria-label": n ?? "",
|
|
1202
1221
|
"data-testid": g("clear-button"),
|
|
1203
1222
|
tabIndex: -1,
|
|
1204
|
-
children: /* @__PURE__ */ l(
|
|
1223
|
+
children: /* @__PURE__ */ l(ft, { size: "xs" })
|
|
1205
1224
|
},
|
|
1206
1225
|
"clear-button"
|
|
1207
1226
|
),
|
|
1208
|
-
|
|
1209
|
-
|
|
1227
|
+
P && /* @__PURE__ */ l(
|
|
1228
|
+
_t,
|
|
1210
1229
|
{
|
|
1211
1230
|
"data-testid": g("valid-icon"),
|
|
1212
|
-
className:
|
|
1231
|
+
className: A(`${v}__valid-icon`)
|
|
1213
1232
|
},
|
|
1214
1233
|
"valid-icon"
|
|
1215
1234
|
)
|
|
1216
|
-
].filter((
|
|
1217
|
-
`${
|
|
1235
|
+
].filter((h) => !!h), I = A([
|
|
1236
|
+
`${v}__input-container`,
|
|
1218
1237
|
{
|
|
1219
|
-
[`${
|
|
1220
|
-
[`${
|
|
1221
|
-
[`${
|
|
1222
|
-
[`${
|
|
1223
|
-
[`${
|
|
1238
|
+
[`${v}__input-container--start-adornment`]: E.length,
|
|
1239
|
+
[`${v}__input-container--end-adornment`]: M.length || r,
|
|
1240
|
+
[`${v}__input-container--disabled`]: _.disabled,
|
|
1241
|
+
[`${v}__input-container--has-clear-button`]: d,
|
|
1242
|
+
[`${v}__input-container--readonly`]: _.readOnly && !_.disabled
|
|
1224
1243
|
}
|
|
1225
1244
|
]);
|
|
1226
|
-
return /* @__PURE__ */
|
|
1245
|
+
return /* @__PURE__ */ C("div", { className: A(a, v), children: [
|
|
1227
1246
|
f && /* @__PURE__ */ l(
|
|
1228
|
-
|
|
1247
|
+
yn,
|
|
1229
1248
|
{
|
|
1230
1249
|
htmlFor: s,
|
|
1231
|
-
className:
|
|
1250
|
+
className: A(`${v}__label`),
|
|
1232
1251
|
"data-testid": g("label"),
|
|
1233
1252
|
disabled: _.disabled,
|
|
1234
1253
|
children: `${_.required ? "* " : ""}${f}`
|
|
1235
1254
|
}
|
|
1236
1255
|
),
|
|
1237
|
-
/* @__PURE__ */
|
|
1238
|
-
!!
|
|
1239
|
-
/* @__PURE__ */
|
|
1240
|
-
!!
|
|
1256
|
+
/* @__PURE__ */ C("div", { className: A(`${v}__field-row`), children: [
|
|
1257
|
+
!!i && i,
|
|
1258
|
+
/* @__PURE__ */ C("div", { className: I, children: [
|
|
1259
|
+
!!E.length && /* @__PURE__ */ l(
|
|
1241
1260
|
"div",
|
|
1242
1261
|
{
|
|
1243
1262
|
"data-testid": g("start-adornments"),
|
|
1244
|
-
className:
|
|
1245
|
-
children:
|
|
1263
|
+
className: A(`${v}__adornment-container`),
|
|
1264
|
+
children: E
|
|
1246
1265
|
}
|
|
1247
1266
|
),
|
|
1248
1267
|
/* @__PURE__ */ l(
|
|
@@ -1250,27 +1269,27 @@ const un = /* @__PURE__ */ tn(nn), an = {
|
|
|
1250
1269
|
{
|
|
1251
1270
|
..._,
|
|
1252
1271
|
id: s,
|
|
1253
|
-
ref:
|
|
1272
|
+
ref: T,
|
|
1254
1273
|
"data-testid": g("input"),
|
|
1255
|
-
"aria-describedby": _["aria-describedby"] ||
|
|
1256
|
-
"aria-invalid": _["aria-invalid"] || !!
|
|
1257
|
-
className:
|
|
1258
|
-
`${
|
|
1274
|
+
"aria-describedby": _["aria-describedby"] || z,
|
|
1275
|
+
"aria-invalid": _["aria-invalid"] || !!e,
|
|
1276
|
+
className: A([
|
|
1277
|
+
`${v}__input`,
|
|
1259
1278
|
{
|
|
1260
|
-
[`${
|
|
1261
|
-
[`${
|
|
1279
|
+
[`${v}__input--valid`]: P,
|
|
1280
|
+
[`${v}__input--error`]: !!e
|
|
1262
1281
|
}
|
|
1263
1282
|
])
|
|
1264
1283
|
}
|
|
1265
1284
|
),
|
|
1266
|
-
/* @__PURE__ */ l("div", { className:
|
|
1267
|
-
(!!
|
|
1285
|
+
/* @__PURE__ */ l("div", { className: A(`${v}__frame`) }),
|
|
1286
|
+
(!!M.length || r) && /* @__PURE__ */ C(
|
|
1268
1287
|
"div",
|
|
1269
1288
|
{
|
|
1270
1289
|
"data-testid": g("end-adornments"),
|
|
1271
|
-
className:
|
|
1290
|
+
className: A(`${v}__adornment-container`),
|
|
1272
1291
|
children: [
|
|
1273
|
-
|
|
1292
|
+
M,
|
|
1274
1293
|
r
|
|
1275
1294
|
]
|
|
1276
1295
|
}
|
|
@@ -1278,76 +1297,79 @@ const un = /* @__PURE__ */ tn(nn), an = {
|
|
|
1278
1297
|
] }),
|
|
1279
1298
|
!!o && o
|
|
1280
1299
|
] }),
|
|
1281
|
-
|
|
1282
|
-
|
|
1300
|
+
z && /* @__PURE__ */ l(Ue, { "data-testid": g("helper-text"), id: z, children: u }),
|
|
1301
|
+
e && /* @__PURE__ */ l(Ze, { "data-testid": g("error-text"), children: e })
|
|
1283
1302
|
] });
|
|
1284
|
-
},
|
|
1285
|
-
|
|
1286
|
-
const
|
|
1287
|
-
function
|
|
1288
|
-
return
|
|
1303
|
+
}, gt = X(Rn);
|
|
1304
|
+
gt.displayName = "TextField";
|
|
1305
|
+
const Ln = (t) => nt(t) && t.type.displayName === gt.displayName;
|
|
1306
|
+
function Bn(t) {
|
|
1307
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1289
1308
|
}
|
|
1290
|
-
var
|
|
1309
|
+
var pr = { exports: {} };
|
|
1291
1310
|
/*!
|
|
1292
1311
|
Copyright (c) 2018 Jed Watson.
|
|
1293
1312
|
Licensed under the MIT License (MIT), see
|
|
1294
1313
|
http://jedwatson.github.io/classnames
|
|
1295
1314
|
*/
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
function
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1315
|
+
var tt;
|
|
1316
|
+
function En() {
|
|
1317
|
+
return tt || (tt = 1, function(t) {
|
|
1318
|
+
(function() {
|
|
1319
|
+
var a = {}.hasOwnProperty;
|
|
1320
|
+
function n() {
|
|
1321
|
+
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
1322
|
+
var u = arguments[e];
|
|
1323
|
+
u && (r = o(r, i.call(this, u)));
|
|
1324
|
+
}
|
|
1325
|
+
return r;
|
|
1303
1326
|
}
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
}
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
const dn = /* @__PURE__ */ sn(cn), _n = {
|
|
1327
|
+
function i(r) {
|
|
1328
|
+
if (typeof r == "string" || typeof r == "number")
|
|
1329
|
+
return this && this[r] || r;
|
|
1330
|
+
if (typeof r != "object")
|
|
1331
|
+
return "";
|
|
1332
|
+
if (Array.isArray(r))
|
|
1333
|
+
return n.apply(this, r);
|
|
1334
|
+
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
1335
|
+
return r.toString();
|
|
1336
|
+
var e = "";
|
|
1337
|
+
for (var u in r)
|
|
1338
|
+
a.call(r, u) && r[u] && (e = o(e, this && this[u] || u));
|
|
1339
|
+
return e;
|
|
1340
|
+
}
|
|
1341
|
+
function o(r, e) {
|
|
1342
|
+
return e ? r ? r + " " + e : r + e : r;
|
|
1343
|
+
}
|
|
1344
|
+
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
1345
|
+
})();
|
|
1346
|
+
}(pr)), pr.exports;
|
|
1347
|
+
}
|
|
1348
|
+
var Tn = En();
|
|
1349
|
+
const In = /* @__PURE__ */ Bn(Tn), Dn = {
|
|
1328
1350
|
"purpur-autocomplete": "_purpur-autocomplete_1u8x6_1",
|
|
1329
1351
|
"purpur-autocomplete__listbox": "_purpur-autocomplete__listbox_1u8x6_4",
|
|
1330
1352
|
"purpur-autocomplete__chevron-button": "_purpur-autocomplete__chevron-button_1u8x6_9",
|
|
1331
1353
|
"purpur-autocomplete__chevron-icon": "_purpur-autocomplete__chevron-icon_1u8x6_15",
|
|
1332
1354
|
"purpur-autocomplete__chevron-icon--up": "_purpur-autocomplete__chevron-icon--up_1u8x6_19"
|
|
1333
|
-
},
|
|
1334
|
-
const n =
|
|
1335
|
-
(
|
|
1336
|
-
|
|
1355
|
+
}, Vn = (t) => K(t), Zn = (t, a) => {
|
|
1356
|
+
const n = Pt(
|
|
1357
|
+
(i) => {
|
|
1358
|
+
t && !t.contains(i.target) && a();
|
|
1337
1359
|
},
|
|
1338
|
-
[
|
|
1360
|
+
[a, t]
|
|
1339
1361
|
);
|
|
1340
|
-
|
|
1362
|
+
kt(() => (document.addEventListener("mousedown", n), () => {
|
|
1341
1363
|
document.removeEventListener("mousedown", n);
|
|
1342
1364
|
}), [n]);
|
|
1343
|
-
},
|
|
1344
|
-
combobox:
|
|
1345
|
-
highlightFirstOption:
|
|
1365
|
+
}, Fn = ({
|
|
1366
|
+
combobox: t,
|
|
1367
|
+
highlightFirstOption: a,
|
|
1346
1368
|
defaultInputValue: n,
|
|
1347
|
-
inputValue:
|
|
1369
|
+
inputValue: i,
|
|
1348
1370
|
filterOption: o,
|
|
1349
1371
|
id: r,
|
|
1350
|
-
listboxLabel:
|
|
1372
|
+
listboxLabel: e,
|
|
1351
1373
|
listboxMaxHeight: u,
|
|
1352
1374
|
onInputBlur: f,
|
|
1353
1375
|
onInputChange: x,
|
|
@@ -1361,58 +1383,58 @@ const dn = /* @__PURE__ */ sn(cn), _n = {
|
|
|
1361
1383
|
selectedOption: s,
|
|
1362
1384
|
["data-testid"]: g
|
|
1363
1385
|
}) => {
|
|
1364
|
-
const [
|
|
1365
|
-
((typeof
|
|
1366
|
-
),
|
|
1367
|
-
function
|
|
1386
|
+
const [P, z] = ar(
|
|
1387
|
+
((typeof i == "string" ? i : n) || (s == null ? void 0 : s.label)) ?? ""
|
|
1388
|
+
), E = typeof i == "string" ? i : P, [d, q] = ar(a ? w[0] : void 0), T = K(null), J = Vn(null), M = K(null), I = K({}), [h, dr] = ar(!1);
|
|
1389
|
+
function tr(p) {
|
|
1368
1390
|
return g ? `${g}-${p}` : void 0;
|
|
1369
1391
|
}
|
|
1370
1392
|
const Q = () => {
|
|
1371
|
-
|
|
1393
|
+
dr(!1), q(void 0);
|
|
1372
1394
|
};
|
|
1373
|
-
|
|
1395
|
+
Zn(J.current, Q);
|
|
1374
1396
|
const D = ({ eventType: p }) => {
|
|
1375
|
-
|
|
1376
|
-
|
|
1397
|
+
dr(!0), s && requestAnimationFrame(() => {
|
|
1398
|
+
q({ ...s, isSetByClickEvent: p === "CLICK" }), nr(I.current[s.id]);
|
|
1377
1399
|
});
|
|
1378
|
-
},
|
|
1400
|
+
}, ht = (p) => {
|
|
1379
1401
|
if (o)
|
|
1380
|
-
return w.filter((
|
|
1402
|
+
return w.filter((b) => o(p, b));
|
|
1381
1403
|
if (!p)
|
|
1382
1404
|
return w;
|
|
1383
1405
|
const c = p.toUpperCase().split(" ") || [];
|
|
1384
1406
|
return w.filter(
|
|
1385
|
-
(
|
|
1386
|
-
(O) => (
|
|
1407
|
+
(b) => c.every(
|
|
1408
|
+
(O) => (b.value || b.label).toUpperCase().includes(O)
|
|
1387
1409
|
)
|
|
1388
1410
|
);
|
|
1389
|
-
},
|
|
1390
|
-
x == null || x(p),
|
|
1411
|
+
}, _r = (p) => s && (s == null ? void 0 : s.label) === p ? w : ht(p), k = _r(E), er = (p) => {
|
|
1412
|
+
x == null || x(p), z(p);
|
|
1391
1413
|
}, nr = (p) => {
|
|
1392
1414
|
var c;
|
|
1393
1415
|
if (p) {
|
|
1394
|
-
const
|
|
1395
|
-
(
|
|
1416
|
+
const b = p.getBoundingClientRect(), O = ((c = M.current) == null ? void 0 : c.getBoundingClientRect()) || { top: 0, bottom: 0 };
|
|
1417
|
+
(b.top < O.top || b.bottom > O.bottom) && p.scrollIntoView({ block: "nearest" });
|
|
1396
1418
|
}
|
|
1397
|
-
},
|
|
1419
|
+
}, fr = (p) => {
|
|
1398
1420
|
var c;
|
|
1399
|
-
p && ((c =
|
|
1400
|
-
},
|
|
1401
|
-
const c =
|
|
1402
|
-
return p === "ArrowDown" ?
|
|
1403
|
-
},
|
|
1404
|
-
!
|
|
1405
|
-
const c =
|
|
1406
|
-
|
|
1407
|
-
},
|
|
1421
|
+
p && ((c = T.current) == null || c.focus(), er(p.label), S == null || S(p)), Q();
|
|
1422
|
+
}, bt = (p) => {
|
|
1423
|
+
const c = a && !d ? 0 : k.findIndex((O) => O && (d == null ? void 0 : d.id) === O.id), b = k.length;
|
|
1424
|
+
return p === "ArrowDown" ? k[(c ?? -1) + 1] || k[0] : k[(c ?? b) - 1] || k[b - 1];
|
|
1425
|
+
}, R = h && (!!k.length || !!$), xt = (p) => {
|
|
1426
|
+
!R && D({ eventType: "KEYBOARD" });
|
|
1427
|
+
const c = bt(p);
|
|
1428
|
+
q(c), c && nr(I.current[c.id]);
|
|
1429
|
+
}, yt = (p) => {
|
|
1408
1430
|
switch (N == null || N(p), p.key) {
|
|
1409
1431
|
case "ArrowUp":
|
|
1410
1432
|
case "ArrowDown":
|
|
1411
|
-
p.preventDefault(),
|
|
1433
|
+
p.preventDefault(), xt(p.key);
|
|
1412
1434
|
break;
|
|
1413
1435
|
case "Enter": {
|
|
1414
|
-
const c = d || (
|
|
1415
|
-
|
|
1436
|
+
const c = d || (a ? w[0] : void 0);
|
|
1437
|
+
R && fr(c), !R && D({ eventType: "KEYBOARD" });
|
|
1416
1438
|
break;
|
|
1417
1439
|
}
|
|
1418
1440
|
case "Escape":
|
|
@@ -1420,39 +1442,39 @@ const dn = /* @__PURE__ */ sn(cn), _n = {
|
|
|
1420
1442
|
Q();
|
|
1421
1443
|
break;
|
|
1422
1444
|
}
|
|
1423
|
-
},
|
|
1424
|
-
const c =
|
|
1425
|
-
|
|
1426
|
-
},
|
|
1427
|
-
j == null || j(p),
|
|
1428
|
-
},
|
|
1445
|
+
}, wt = (p) => {
|
|
1446
|
+
const c = _r(p.target.value);
|
|
1447
|
+
er(p.target.value), q(void 0), !R && D({ eventType: "KEYBOARD" }), a && c[0] && nr(I.current[c[0].id]);
|
|
1448
|
+
}, $t = (p) => {
|
|
1449
|
+
j == null || j(p), R ? Q() : D({ eventType: "CLICK" });
|
|
1450
|
+
}, jt = (p) => {
|
|
1429
1451
|
var c;
|
|
1430
|
-
y == null || y(p), !
|
|
1431
|
-
},
|
|
1432
|
-
f == null || f(p),
|
|
1433
|
-
var c,
|
|
1434
|
-
!((c =
|
|
1452
|
+
y == null || y(p), !h && _ && D({ eventType: "KEYBOARD" }), (c = T.current) == null || c.select();
|
|
1453
|
+
}, St = (p) => {
|
|
1454
|
+
f == null || f(p), t && setTimeout(() => {
|
|
1455
|
+
var c, b;
|
|
1456
|
+
!((c = T.current) != null && c.contains(document.activeElement)) && !((b = M.current) != null && b.contains(document.activeElement)) && er(s ? s.label : "");
|
|
1435
1457
|
});
|
|
1436
|
-
},
|
|
1458
|
+
}, Nt = {
|
|
1437
1459
|
maxHeight: typeof u == "number" ? `${u}px` : u
|
|
1438
|
-
},
|
|
1439
|
-
"aria-label":
|
|
1440
|
-
"aria-expanded":
|
|
1441
|
-
"data-testid":
|
|
1460
|
+
}, vr = {
|
|
1461
|
+
"aria-label": e,
|
|
1462
|
+
"aria-expanded": R,
|
|
1463
|
+
"data-testid": tr("listbox"),
|
|
1442
1464
|
id: `${r}-listbox`,
|
|
1443
|
-
ref:
|
|
1444
|
-
onMouseLeave: () =>
|
|
1445
|
-
style: u ?
|
|
1446
|
-
}, mr = (p) => `${r}-listbox-item-${p.id}`,
|
|
1447
|
-
const
|
|
1465
|
+
ref: M,
|
|
1466
|
+
onMouseLeave: () => q(void 0),
|
|
1467
|
+
style: u ? Nt : void 0
|
|
1468
|
+
}, mr = (p) => `${r}-listbox-item-${p.id}`, qt = (p, c) => {
|
|
1469
|
+
const b = () => p.id !== (d == null ? void 0 : d.id) && q({ ...p, isSetByClickEvent: !0 }), O = (p.id === (d == null ? void 0 : d.id) || !!a && !d && c === 0) && !(d != null && d.isSetByClickEvent);
|
|
1448
1470
|
return {
|
|
1449
|
-
"data-testid":
|
|
1471
|
+
"data-testid": tr(`listbox-item-${p.id}`),
|
|
1450
1472
|
id: mr(p),
|
|
1451
1473
|
key: p.id,
|
|
1452
|
-
onMouseMove:
|
|
1453
|
-
onMouseUp: () =>
|
|
1474
|
+
onMouseMove: b,
|
|
1475
|
+
onMouseUp: () => fr(p),
|
|
1454
1476
|
ref: (ur) => {
|
|
1455
|
-
ur && (
|
|
1477
|
+
ur && (I.current[p.id] = ur);
|
|
1456
1478
|
},
|
|
1457
1479
|
tabIndex: -1,
|
|
1458
1480
|
selected: p.id === (s == null ? void 0 : s.id),
|
|
@@ -1460,37 +1482,37 @@ const dn = /* @__PURE__ */ sn(cn), _n = {
|
|
|
1460
1482
|
highlighted: O,
|
|
1461
1483
|
hovered: p.id === (d == null ? void 0 : d.id) && !!(d != null && d.isSetByClickEvent)
|
|
1462
1484
|
};
|
|
1463
|
-
},
|
|
1485
|
+
}, Ot = {
|
|
1464
1486
|
"aria-activedescendant": d ? mr(d) : void 0,
|
|
1465
1487
|
"aria-autocomplete": "list",
|
|
1466
|
-
"aria-controls":
|
|
1467
|
-
"data-testid":
|
|
1488
|
+
"aria-controls": vr.id,
|
|
1489
|
+
"data-testid": tr("input"),
|
|
1468
1490
|
autoComplete: "off",
|
|
1469
1491
|
id: `${r}-input`,
|
|
1470
|
-
onChange:
|
|
1471
|
-
onMouseDown:
|
|
1472
|
-
onFocus:
|
|
1473
|
-
onKeyDown:
|
|
1474
|
-
onBlur:
|
|
1475
|
-
ref:
|
|
1492
|
+
onChange: wt,
|
|
1493
|
+
onMouseDown: $t,
|
|
1494
|
+
onFocus: jt,
|
|
1495
|
+
onKeyDown: yt,
|
|
1496
|
+
onBlur: St,
|
|
1497
|
+
ref: T,
|
|
1476
1498
|
role: "combobox",
|
|
1477
|
-
value:
|
|
1499
|
+
value: E
|
|
1478
1500
|
};
|
|
1479
1501
|
return {
|
|
1480
1502
|
id: r,
|
|
1481
|
-
inputProps:
|
|
1503
|
+
inputProps: Ot,
|
|
1482
1504
|
internalRef: J,
|
|
1483
|
-
optionsToShow:
|
|
1484
|
-
showListbox:
|
|
1505
|
+
optionsToShow: k,
|
|
1506
|
+
showListbox: R,
|
|
1485
1507
|
noOptionsText: $,
|
|
1486
|
-
combobox:
|
|
1487
|
-
getListBoxItemProps:
|
|
1488
|
-
listboxProps:
|
|
1508
|
+
combobox: t,
|
|
1509
|
+
getListBoxItemProps: qt,
|
|
1510
|
+
listboxProps: vr
|
|
1489
1511
|
};
|
|
1490
|
-
}, rr =
|
|
1512
|
+
}, rr = In.bind(Dn), U = "purpur-autocomplete", Hn = ({ className: t, renderInput: a, renderOption: n, ...i }, o) => {
|
|
1491
1513
|
const {
|
|
1492
1514
|
id: r,
|
|
1493
|
-
inputProps:
|
|
1515
|
+
inputProps: e,
|
|
1494
1516
|
internalRef: u,
|
|
1495
1517
|
optionsToShow: f,
|
|
1496
1518
|
showListbox: x,
|
|
@@ -1498,50 +1520,50 @@ const dn = /* @__PURE__ */ sn(cn), _n = {
|
|
|
1498
1520
|
combobox: N,
|
|
1499
1521
|
getListBoxItemProps: j,
|
|
1500
1522
|
listboxProps: _
|
|
1501
|
-
} =
|
|
1502
|
-
const { key:
|
|
1503
|
-
return /* @__PURE__ */ l(
|
|
1523
|
+
} = Fn(i), $ = (s, g) => {
|
|
1524
|
+
const { key: P, ...z } = j(s, g);
|
|
1525
|
+
return /* @__PURE__ */ l(Y.Item, { ...z, children: n ? n == null ? void 0 : n(s) : s.label }, P);
|
|
1504
1526
|
}, S = (s) => {
|
|
1505
1527
|
u.current = s, typeof o == "function" ? o(s) : o && (o.current = s);
|
|
1506
1528
|
}, w = () => {
|
|
1507
|
-
const s =
|
|
1508
|
-
if (N && y && s &&
|
|
1509
|
-
const
|
|
1529
|
+
const s = a(e);
|
|
1530
|
+
if (N && y && s && Ln(s)) {
|
|
1531
|
+
const P = /* @__PURE__ */ C(et, { children: [
|
|
1510
1532
|
s.props.endAdornment,
|
|
1511
1533
|
/* @__PURE__ */ l(
|
|
1512
1534
|
"button",
|
|
1513
1535
|
{
|
|
1514
1536
|
"data-testid": "chevron button",
|
|
1515
1537
|
type: "button",
|
|
1516
|
-
className: rr(`${
|
|
1538
|
+
className: rr(`${U}__chevron-button`),
|
|
1517
1539
|
onClick: () => {
|
|
1518
|
-
|
|
1540
|
+
e.onFocus(void 0), e.onMouseDown(void 0);
|
|
1519
1541
|
},
|
|
1520
1542
|
"aria-hidden": "true",
|
|
1521
1543
|
children: /* @__PURE__ */ l(
|
|
1522
|
-
|
|
1544
|
+
at,
|
|
1523
1545
|
{
|
|
1524
1546
|
size: "sm",
|
|
1525
|
-
className: rr(`${
|
|
1526
|
-
[`${
|
|
1547
|
+
className: rr(`${U}__chevron-icon`, {
|
|
1548
|
+
[`${U}__chevron-icon--up`]: x
|
|
1527
1549
|
})
|
|
1528
1550
|
}
|
|
1529
1551
|
)
|
|
1530
1552
|
}
|
|
1531
1553
|
)
|
|
1532
1554
|
] });
|
|
1533
|
-
return
|
|
1555
|
+
return zt(s, { endAdornment: P });
|
|
1534
1556
|
}
|
|
1535
1557
|
return s;
|
|
1536
1558
|
};
|
|
1537
|
-
return /* @__PURE__ */
|
|
1559
|
+
return /* @__PURE__ */ C("div", { id: r, ref: S, className: rr([t, U]), children: [
|
|
1538
1560
|
w(),
|
|
1539
|
-
x && /* @__PURE__ */ l(
|
|
1561
|
+
x && /* @__PURE__ */ l(Y, { ..._, className: rr(`${U}__listbox`), children: f.length ? f.filter((s) => !!s).map($) : /* @__PURE__ */ l(Y.Item, { noninteractive: !0, children: y }) })
|
|
1540
1562
|
] });
|
|
1541
|
-
},
|
|
1542
|
-
|
|
1563
|
+
}, Wn = X(Hn);
|
|
1564
|
+
Wn.displayName = "Autocomplete";
|
|
1543
1565
|
export {
|
|
1544
|
-
|
|
1545
|
-
|
|
1566
|
+
Wn as Autocomplete,
|
|
1567
|
+
Fn as useAutocomplete
|
|
1546
1568
|
};
|
|
1547
1569
|
//# sourceMappingURL=autocomplete.es.js.map
|