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