@purpurds/pagination 8.8.1 → 8.10.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 +5 -5
- package/dist/pagination.cjs.js +1 -45
- package/dist/pagination.cjs.js.map +1 -1
- package/dist/pagination.es.js +365 -435
- package/dist/pagination.es.js.map +1 -1
- package/package.json +26 -26
package/dist/pagination.es.js
CHANGED
|
@@ -1,29 +1,23 @@
|
|
|
1
|
-
import { jsx as s, jsxs as
|
|
1
|
+
import { jsx as s, jsxs as v } from "react/jsx-runtime";
|
|
2
2
|
import * as l from "react";
|
|
3
3
|
import { forwardRef as A, useId as ir, useMemo as Vr, createElement as ce, useState as er, useEffect as _e } from "react";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
function de(e) {
|
|
6
6
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
7
7
|
}
|
|
8
|
-
var lr = { exports: {} };
|
|
9
|
-
/*!
|
|
10
|
-
Copyright (c) 2018 Jed Watson.
|
|
11
|
-
Licensed under the MIT License (MIT), see
|
|
12
|
-
http://jedwatson.github.io/classnames
|
|
13
|
-
*/
|
|
14
|
-
var ur;
|
|
8
|
+
var lr = { exports: {} }, ur;
|
|
15
9
|
function fe() {
|
|
16
10
|
return ur || (ur = 1, (function(e) {
|
|
17
11
|
(function() {
|
|
18
12
|
var n = {}.hasOwnProperty;
|
|
19
13
|
function i() {
|
|
20
14
|
for (var r = "", t = 0; t < arguments.length; t++) {
|
|
21
|
-
var
|
|
22
|
-
|
|
15
|
+
var p = arguments[t];
|
|
16
|
+
p && (r = a(r, o.call(this, p)));
|
|
23
17
|
}
|
|
24
18
|
return r;
|
|
25
19
|
}
|
|
26
|
-
function
|
|
20
|
+
function o(r) {
|
|
27
21
|
if (typeof r == "string" || typeof r == "number")
|
|
28
22
|
return this && this[r] || r;
|
|
29
23
|
if (typeof r != "object")
|
|
@@ -33,8 +27,8 @@ function fe() {
|
|
|
33
27
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
34
28
|
return r.toString();
|
|
35
29
|
var t = "";
|
|
36
|
-
for (var
|
|
37
|
-
n.call(r,
|
|
30
|
+
for (var p in r)
|
|
31
|
+
n.call(r, p) && r[p] && (t = a(t, this && this[p] || p));
|
|
38
32
|
return t;
|
|
39
33
|
}
|
|
40
34
|
function a(r, t) {
|
|
@@ -45,7 +39,7 @@ function fe() {
|
|
|
45
39
|
})(lr)), lr.exports;
|
|
46
40
|
}
|
|
47
41
|
var me = fe();
|
|
48
|
-
const
|
|
42
|
+
const he = /* @__PURE__ */ de(me), ve = {
|
|
49
43
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
50
44
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
51
45
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -53,19 +47,19 @@ const ve = /* @__PURE__ */ de(me), he = {
|
|
|
53
47
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
54
48
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
55
49
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
56
|
-
}, ye =
|
|
50
|
+
}, ye = he.bind(ve), gr = "purpur-icon", $e = "md", be = (e) => e.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), xe = ({ content: e = "", title: n } = {}) => {
|
|
57
51
|
const i = [
|
|
58
52
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
59
53
|
{ name: "fill", value: "currentColor" },
|
|
60
54
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
61
55
|
n ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
62
|
-
],
|
|
63
|
-
return `<svg ${be(i)}>${
|
|
64
|
-
}, we = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), nr = ({ svg: e, allyTitle: n, className: i, size:
|
|
56
|
+
], o = n ? `<title>${n}</title>` : "";
|
|
57
|
+
return `<svg ${be(i)}>${o}${e}</svg>`;
|
|
58
|
+
}, we = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), nr = ({ svg: e, allyTitle: n, className: i, size: o = $e, ...a }) => {
|
|
65
59
|
const r = xe({
|
|
66
60
|
content: we(e.svg),
|
|
67
61
|
title: n
|
|
68
|
-
}), t = ye(gr, `${gr}--${
|
|
62
|
+
}), t = ye(gr, `${gr}--${o}`, i);
|
|
69
63
|
return /* @__PURE__ */ s("span", { className: t, dangerouslySetInnerHTML: { __html: r }, ...a });
|
|
70
64
|
};
|
|
71
65
|
nr.displayName = "Icon";
|
|
@@ -91,61 +85,60 @@ function cr(e, n) {
|
|
|
91
85
|
function Oe(...e) {
|
|
92
86
|
return (n) => {
|
|
93
87
|
let i = !1;
|
|
94
|
-
const
|
|
88
|
+
const o = e.map((a) => {
|
|
95
89
|
const r = cr(a, n);
|
|
96
90
|
return !i && typeof r == "function" && (i = !0), r;
|
|
97
91
|
});
|
|
98
92
|
if (i)
|
|
99
93
|
return () => {
|
|
100
|
-
for (let a = 0; a <
|
|
101
|
-
const r =
|
|
94
|
+
for (let a = 0; a < o.length; a++) {
|
|
95
|
+
const r = o[a];
|
|
102
96
|
typeof r == "function" ? r() : cr(e[a], null);
|
|
103
97
|
}
|
|
104
98
|
};
|
|
105
99
|
};
|
|
106
100
|
}
|
|
107
101
|
// @__NO_SIDE_EFFECTS__
|
|
108
|
-
function
|
|
109
|
-
const n = /* @__PURE__ */
|
|
110
|
-
const { children: r, ...t } =
|
|
102
|
+
function Ce(e) {
|
|
103
|
+
const n = /* @__PURE__ */ Pe(e), i = l.forwardRef((o, a) => {
|
|
104
|
+
const { children: r, ...t } = o, p = l.Children.toArray(r), g = p.find(Ae);
|
|
111
105
|
if (g) {
|
|
112
|
-
const c = g.props.children,
|
|
113
|
-
return /* @__PURE__ */ s(n, { ...t, ref: a, children: l.isValidElement(c) ? l.cloneElement(c, void 0,
|
|
106
|
+
const c = g.props.children, f = p.map((u) => u === g ? l.Children.count(c) > 1 ? l.Children.only(null) : l.isValidElement(c) ? c.props.children : null : u);
|
|
107
|
+
return /* @__PURE__ */ s(n, { ...t, ref: a, children: l.isValidElement(c) ? l.cloneElement(c, void 0, f) : null });
|
|
114
108
|
}
|
|
115
109
|
return /* @__PURE__ */ s(n, { ...t, ref: a, children: r });
|
|
116
110
|
});
|
|
117
111
|
return i.displayName = `${e}.Slot`, i;
|
|
118
112
|
}
|
|
119
113
|
// @__NO_SIDE_EFFECTS__
|
|
120
|
-
function
|
|
121
|
-
const n = l.forwardRef((i,
|
|
114
|
+
function Pe(e) {
|
|
115
|
+
const n = l.forwardRef((i, o) => {
|
|
122
116
|
const { children: a, ...r } = i;
|
|
123
117
|
if (l.isValidElement(a)) {
|
|
124
|
-
const t = Re(a),
|
|
125
|
-
return a.type !== l.Fragment && (
|
|
118
|
+
const t = Re(a), p = ze(r, a.props);
|
|
119
|
+
return a.type !== l.Fragment && (p.ref = o ? Oe(o, t) : t), l.cloneElement(a, p);
|
|
126
120
|
}
|
|
127
121
|
return l.Children.count(a) > 1 ? l.Children.only(null) : null;
|
|
128
122
|
});
|
|
129
123
|
return n.displayName = `${e}.SlotClone`, n;
|
|
130
124
|
}
|
|
131
|
-
var
|
|
125
|
+
var je = Symbol("radix.slottable");
|
|
132
126
|
function Ae(e) {
|
|
133
|
-
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
127
|
+
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === je;
|
|
134
128
|
}
|
|
135
129
|
function ze(e, n) {
|
|
136
130
|
const i = { ...n };
|
|
137
|
-
for (const
|
|
138
|
-
const a = e[
|
|
139
|
-
/^on[A-Z]/.test(
|
|
131
|
+
for (const o in n) {
|
|
132
|
+
const a = e[o], r = n[o];
|
|
133
|
+
/^on[A-Z]/.test(o) ? a && r ? i[o] = (...t) => {
|
|
140
134
|
r(...t), a(...t);
|
|
141
|
-
} : a && (i[
|
|
135
|
+
} : a && (i[o] = a) : o === "style" ? i[o] = { ...a, ...r } : o === "className" && (i[o] = [a, r].filter(Boolean).join(" "));
|
|
142
136
|
}
|
|
143
137
|
return { ...e, ...i };
|
|
144
138
|
}
|
|
145
139
|
function Re(e) {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
return a ? e.ref : (p = (i = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : i.get, a = p && "isReactWarning" in p && p.isReactWarning, a ? e.props.ref : e.props.ref || e.ref);
|
|
140
|
+
let n = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, i = n && "isReactWarning" in n && n.isReactWarning;
|
|
141
|
+
return i ? e.ref : (n = Object.getOwnPropertyDescriptor(e, "ref")?.get, i = n && "isReactWarning" in n && n.isReactWarning, i ? e.props.ref : e.props.ref || e.ref);
|
|
149
142
|
}
|
|
150
143
|
var Ee = [
|
|
151
144
|
"a",
|
|
@@ -165,11 +158,11 @@ var Ee = [
|
|
|
165
158
|
"svg",
|
|
166
159
|
"ul"
|
|
167
160
|
], Me = Ee.reduce((e, n) => {
|
|
168
|
-
const i = /* @__PURE__ */
|
|
169
|
-
const { asChild: t, ...
|
|
170
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ s(g, { ...
|
|
161
|
+
const i = /* @__PURE__ */ Ce(`Primitive.${n}`), o = l.forwardRef((a, r) => {
|
|
162
|
+
const { asChild: t, ...p } = a, g = t ? i : n;
|
|
163
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ s(g, { ...p, ref: r });
|
|
171
164
|
});
|
|
172
|
-
return
|
|
165
|
+
return o.displayName = `Primitive.${n}`, { ...e, [n]: o };
|
|
173
166
|
}, {}), qe = "VisuallyHidden", Lr = l.forwardRef(
|
|
174
167
|
(e, n) => /* @__PURE__ */ s(
|
|
175
168
|
Me.span,
|
|
@@ -199,12 +192,7 @@ const R = ({ asChild: e, children: n, ...i }) => /* @__PURE__ */ s(ke, { asChild
|
|
|
199
192
|
function De(e) {
|
|
200
193
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
201
194
|
}
|
|
202
|
-
var
|
|
203
|
-
/*!
|
|
204
|
-
Copyright (c) 2018 Jed Watson.
|
|
205
|
-
Licensed under the MIT License (MIT), see
|
|
206
|
-
http://jedwatson.github.io/classnames
|
|
207
|
-
*/
|
|
195
|
+
var X = { exports: {} };
|
|
208
196
|
var _r;
|
|
209
197
|
function Ve() {
|
|
210
198
|
return _r || (_r = 1, (function(e) {
|
|
@@ -212,12 +200,12 @@ function Ve() {
|
|
|
212
200
|
var n = {}.hasOwnProperty;
|
|
213
201
|
function i() {
|
|
214
202
|
for (var r = "", t = 0; t < arguments.length; t++) {
|
|
215
|
-
var
|
|
216
|
-
|
|
203
|
+
var p = arguments[t];
|
|
204
|
+
p && (r = a(r, o.call(this, p)));
|
|
217
205
|
}
|
|
218
206
|
return r;
|
|
219
207
|
}
|
|
220
|
-
function
|
|
208
|
+
function o(r) {
|
|
221
209
|
if (typeof r == "string" || typeof r == "number")
|
|
222
210
|
return this && this[r] || r;
|
|
223
211
|
if (typeof r != "object")
|
|
@@ -227,8 +215,8 @@ function Ve() {
|
|
|
227
215
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
228
216
|
return r.toString();
|
|
229
217
|
var t = "";
|
|
230
|
-
for (var
|
|
231
|
-
n.call(r,
|
|
218
|
+
for (var p in r)
|
|
219
|
+
n.call(r, p) && r[p] && (t = a(t, this && this[p] || p));
|
|
232
220
|
return t;
|
|
233
221
|
}
|
|
234
222
|
function a(r, t) {
|
|
@@ -236,7 +224,7 @@ function Ve() {
|
|
|
236
224
|
}
|
|
237
225
|
e.exports ? (i.default = i, e.exports = i) : window.classNames = i;
|
|
238
226
|
})();
|
|
239
|
-
})(
|
|
227
|
+
})(X)), X.exports;
|
|
240
228
|
}
|
|
241
229
|
var We = Ve();
|
|
242
230
|
const z = /* @__PURE__ */ De(We), Zr = (e) => {
|
|
@@ -264,20 +252,20 @@ function dr(e, n) {
|
|
|
264
252
|
function Le(...e) {
|
|
265
253
|
return (n) => {
|
|
266
254
|
let i = !1;
|
|
267
|
-
const
|
|
255
|
+
const o = e.map((a) => {
|
|
268
256
|
const r = dr(a, n);
|
|
269
257
|
return !i && typeof r == "function" && (i = !0), r;
|
|
270
258
|
});
|
|
271
259
|
if (i)
|
|
272
260
|
return () => {
|
|
273
|
-
for (let a = 0; a <
|
|
274
|
-
const r =
|
|
261
|
+
for (let a = 0; a < o.length; a++) {
|
|
262
|
+
const r = o[a];
|
|
275
263
|
typeof r == "function" ? r() : dr(e[a], null);
|
|
276
264
|
}
|
|
277
265
|
};
|
|
278
266
|
};
|
|
279
267
|
}
|
|
280
|
-
var Ze = Symbol.for("react.lazy"),
|
|
268
|
+
var Ze = Symbol.for("react.lazy"), J = l[" use ".trim().toString()];
|
|
281
269
|
function He(e) {
|
|
282
270
|
return typeof e == "object" && e !== null && "then" in e;
|
|
283
271
|
}
|
|
@@ -286,51 +274,50 @@ function Hr(e) {
|
|
|
286
274
|
}
|
|
287
275
|
// @__NO_SIDE_EFFECTS__
|
|
288
276
|
function Fe(e) {
|
|
289
|
-
const n = /* @__PURE__ */
|
|
290
|
-
let { children: r, ...t } =
|
|
291
|
-
Hr(r) && typeof
|
|
292
|
-
const
|
|
277
|
+
const n = /* @__PURE__ */ Ge(e), i = l.forwardRef((o, a) => {
|
|
278
|
+
let { children: r, ...t } = o;
|
|
279
|
+
Hr(r) && typeof J == "function" && (r = J(r._payload));
|
|
280
|
+
const p = l.Children.toArray(r), g = p.find(Ke);
|
|
293
281
|
if (g) {
|
|
294
|
-
const c = g.props.children,
|
|
295
|
-
return /* @__PURE__ */ s(n, { ...t, ref: a, children: l.isValidElement(c) ? l.cloneElement(c, void 0,
|
|
282
|
+
const c = g.props.children, f = p.map((u) => u === g ? l.Children.count(c) > 1 ? l.Children.only(null) : l.isValidElement(c) ? c.props.children : null : u);
|
|
283
|
+
return /* @__PURE__ */ s(n, { ...t, ref: a, children: l.isValidElement(c) ? l.cloneElement(c, void 0, f) : null });
|
|
296
284
|
}
|
|
297
285
|
return /* @__PURE__ */ s(n, { ...t, ref: a, children: r });
|
|
298
286
|
});
|
|
299
287
|
return i.displayName = `${e}.Slot`, i;
|
|
300
288
|
}
|
|
301
289
|
// @__NO_SIDE_EFFECTS__
|
|
302
|
-
function
|
|
303
|
-
const n = l.forwardRef((i,
|
|
290
|
+
function Ge(e) {
|
|
291
|
+
const n = l.forwardRef((i, o) => {
|
|
304
292
|
let { children: a, ...r } = i;
|
|
305
|
-
if (Hr(a) && typeof
|
|
306
|
-
const t =
|
|
307
|
-
return a.type !== l.Fragment && (
|
|
293
|
+
if (Hr(a) && typeof J == "function" && (a = J(a._payload)), l.isValidElement(a)) {
|
|
294
|
+
const t = Ue(a), p = Qe(r, a.props);
|
|
295
|
+
return a.type !== l.Fragment && (p.ref = o ? Le(o, t) : t), l.cloneElement(a, p);
|
|
308
296
|
}
|
|
309
297
|
return l.Children.count(a) > 1 ? l.Children.only(null) : null;
|
|
310
298
|
});
|
|
311
299
|
return n.displayName = `${e}.SlotClone`, n;
|
|
312
300
|
}
|
|
313
|
-
var
|
|
314
|
-
function
|
|
315
|
-
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
301
|
+
var Je = Symbol("radix.slottable");
|
|
302
|
+
function Ke(e) {
|
|
303
|
+
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Je;
|
|
316
304
|
}
|
|
317
|
-
function
|
|
305
|
+
function Qe(e, n) {
|
|
318
306
|
const i = { ...n };
|
|
319
|
-
for (const
|
|
320
|
-
const a = e[
|
|
321
|
-
/^on[A-Z]/.test(
|
|
322
|
-
const
|
|
323
|
-
return a(...t),
|
|
324
|
-
} : a && (i[
|
|
307
|
+
for (const o in n) {
|
|
308
|
+
const a = e[o], r = n[o];
|
|
309
|
+
/^on[A-Z]/.test(o) ? a && r ? i[o] = (...t) => {
|
|
310
|
+
const p = r(...t);
|
|
311
|
+
return a(...t), p;
|
|
312
|
+
} : a && (i[o] = a) : o === "style" ? i[o] = { ...a, ...r } : o === "className" && (i[o] = [a, r].filter(Boolean).join(" "));
|
|
325
313
|
}
|
|
326
314
|
return { ...e, ...i };
|
|
327
315
|
}
|
|
328
|
-
function
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
return a ? e.ref : (p = (i = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : i.get, a = p && "isReactWarning" in p && p.isReactWarning, a ? e.props.ref : e.props.ref || e.ref);
|
|
316
|
+
function Ue(e) {
|
|
317
|
+
let n = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, i = n && "isReactWarning" in n && n.isReactWarning;
|
|
318
|
+
return i ? e.ref : (n = Object.getOwnPropertyDescriptor(e, "ref")?.get, i = n && "isReactWarning" in n && n.isReactWarning, i ? e.props.ref : e.props.ref || e.ref);
|
|
332
319
|
}
|
|
333
|
-
var
|
|
320
|
+
var Xe = [
|
|
334
321
|
"a",
|
|
335
322
|
"button",
|
|
336
323
|
"div",
|
|
@@ -348,47 +335,40 @@ var Ye = [
|
|
|
348
335
|
"span",
|
|
349
336
|
"svg",
|
|
350
337
|
"ul"
|
|
351
|
-
],
|
|
352
|
-
const i = /* @__PURE__ */ Fe(`Primitive.${n}`),
|
|
353
|
-
const { asChild: t, ...
|
|
354
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ s(g, { ...
|
|
338
|
+
], Ye = Xe.reduce((e, n) => {
|
|
339
|
+
const i = /* @__PURE__ */ Fe(`Primitive.${n}`), o = l.forwardRef((a, r) => {
|
|
340
|
+
const { asChild: t, ...p } = a, g = t ? i : n;
|
|
341
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ s(g, { ...p, ref: r });
|
|
355
342
|
});
|
|
356
|
-
return
|
|
357
|
-
}, {}),
|
|
358
|
-
|
|
343
|
+
return o.displayName = `Primitive.${n}`, { ...e, [n]: o };
|
|
344
|
+
}, {}), Te = "Label", Fr = l.forwardRef((e, n) => /* @__PURE__ */ s(
|
|
345
|
+
Ye.label,
|
|
359
346
|
{
|
|
360
347
|
...e,
|
|
361
348
|
ref: n,
|
|
362
349
|
onMouseDown: (i) => {
|
|
363
|
-
|
|
364
|
-
i.target.closest("button, input, select, textarea") || ((p = e.onMouseDown) == null || p.call(e, i), !i.defaultPrevented && i.detail > 1 && i.preventDefault());
|
|
350
|
+
i.target.closest("button, input, select, textarea") || (e.onMouseDown?.(i), !i.defaultPrevented && i.detail > 1 && i.preventDefault());
|
|
365
351
|
}
|
|
366
352
|
}
|
|
367
353
|
));
|
|
368
|
-
Fr.displayName =
|
|
354
|
+
Fr.displayName = Te;
|
|
369
355
|
var Ie = Fr;
|
|
370
356
|
function rt(e) {
|
|
371
357
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
372
358
|
}
|
|
373
|
-
var fr = { exports: {} };
|
|
374
|
-
/*!
|
|
375
|
-
Copyright (c) 2018 Jed Watson.
|
|
376
|
-
Licensed under the MIT License (MIT), see
|
|
377
|
-
http://jedwatson.github.io/classnames
|
|
378
|
-
*/
|
|
379
|
-
var mr;
|
|
359
|
+
var fr = { exports: {} }, mr;
|
|
380
360
|
function et() {
|
|
381
361
|
return mr || (mr = 1, (function(e) {
|
|
382
362
|
(function() {
|
|
383
363
|
var n = {}.hasOwnProperty;
|
|
384
364
|
function i() {
|
|
385
365
|
for (var r = "", t = 0; t < arguments.length; t++) {
|
|
386
|
-
var
|
|
387
|
-
|
|
366
|
+
var p = arguments[t];
|
|
367
|
+
p && (r = a(r, o.call(this, p)));
|
|
388
368
|
}
|
|
389
369
|
return r;
|
|
390
370
|
}
|
|
391
|
-
function
|
|
371
|
+
function o(r) {
|
|
392
372
|
if (typeof r == "string" || typeof r == "number")
|
|
393
373
|
return this && this[r] || r;
|
|
394
374
|
if (typeof r != "object")
|
|
@@ -398,8 +378,8 @@ function et() {
|
|
|
398
378
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
399
379
|
return r.toString();
|
|
400
380
|
var t = "";
|
|
401
|
-
for (var
|
|
402
|
-
n.call(r,
|
|
381
|
+
for (var p in r)
|
|
382
|
+
n.call(r, p) && r[p] && (t = a(t, this && this[p] || p));
|
|
403
383
|
return t;
|
|
404
384
|
}
|
|
405
385
|
function a(r, t) {
|
|
@@ -414,41 +394,35 @@ const it = /* @__PURE__ */ rt(tt), nt = {
|
|
|
414
394
|
"purpur-label": "_purpur-label_1x80u_1",
|
|
415
395
|
"purpur-label--negative": "_purpur-label--negative_1x80u_8",
|
|
416
396
|
"purpur-label--disabled": "_purpur-label--disabled_1x80u_11"
|
|
417
|
-
}, at = it.bind(nt),
|
|
397
|
+
}, at = it.bind(nt), Y = "purpur-label", Gr = ({
|
|
418
398
|
children: e,
|
|
419
399
|
className: n,
|
|
420
400
|
disabled: i,
|
|
421
|
-
negative:
|
|
401
|
+
negative: o = !1,
|
|
422
402
|
...a
|
|
423
403
|
}) => {
|
|
424
|
-
const r = at(n,
|
|
425
|
-
[`${
|
|
426
|
-
[`${
|
|
404
|
+
const r = at(n, Y, {
|
|
405
|
+
[`${Y}--disabled`]: i,
|
|
406
|
+
[`${Y}--negative`]: o
|
|
427
407
|
});
|
|
428
408
|
return /* @__PURE__ */ s(Ie, { className: r, ...a, children: e });
|
|
429
409
|
};
|
|
430
410
|
function pt(e) {
|
|
431
411
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
432
412
|
}
|
|
433
|
-
var
|
|
434
|
-
/*!
|
|
435
|
-
Copyright (c) 2018 Jed Watson.
|
|
436
|
-
Licensed under the MIT License (MIT), see
|
|
437
|
-
http://jedwatson.github.io/classnames
|
|
438
|
-
*/
|
|
439
|
-
var hr;
|
|
413
|
+
var hr = { exports: {} }, vr;
|
|
440
414
|
function ot() {
|
|
441
|
-
return
|
|
415
|
+
return vr || (vr = 1, (function(e) {
|
|
442
416
|
(function() {
|
|
443
417
|
var n = {}.hasOwnProperty;
|
|
444
418
|
function i() {
|
|
445
419
|
for (var r = "", t = 0; t < arguments.length; t++) {
|
|
446
|
-
var
|
|
447
|
-
|
|
420
|
+
var p = arguments[t];
|
|
421
|
+
p && (r = a(r, o.call(this, p)));
|
|
448
422
|
}
|
|
449
423
|
return r;
|
|
450
424
|
}
|
|
451
|
-
function
|
|
425
|
+
function o(r) {
|
|
452
426
|
if (typeof r == "string" || typeof r == "number")
|
|
453
427
|
return this && this[r] || r;
|
|
454
428
|
if (typeof r != "object")
|
|
@@ -458,8 +432,8 @@ function ot() {
|
|
|
458
432
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
459
433
|
return r.toString();
|
|
460
434
|
var t = "";
|
|
461
|
-
for (var
|
|
462
|
-
n.call(r,
|
|
435
|
+
for (var p in r)
|
|
436
|
+
n.call(r, p) && r[p] && (t = a(t, this && this[p] || p));
|
|
463
437
|
return t;
|
|
464
438
|
}
|
|
465
439
|
function a(r, t) {
|
|
@@ -467,7 +441,7 @@ function ot() {
|
|
|
467
441
|
}
|
|
468
442
|
e.exports ? (i.default = i, e.exports = i) : window.classNames = i;
|
|
469
443
|
})();
|
|
470
|
-
})(
|
|
444
|
+
})(hr)), hr.exports;
|
|
471
445
|
}
|
|
472
446
|
var st = ot();
|
|
473
447
|
const lt = /* @__PURE__ */ pt(st), ut = {
|
|
@@ -491,41 +465,35 @@ const lt = /* @__PURE__ */ pt(st), ut = {
|
|
|
491
465
|
children: e,
|
|
492
466
|
className: n,
|
|
493
467
|
disabled: i,
|
|
494
|
-
enableHyphenation:
|
|
468
|
+
enableHyphenation: o = !1,
|
|
495
469
|
negative: a = !1,
|
|
496
470
|
variant: r = ct.PARAGRAPH100,
|
|
497
471
|
...t
|
|
498
472
|
}) => {
|
|
499
|
-
const
|
|
500
|
-
[`${E}--hyphens`]:
|
|
473
|
+
const p = gt(n, E, `${E}--${r}`, {
|
|
474
|
+
[`${E}--hyphens`]: o,
|
|
501
475
|
[`${E}--disabled`]: i,
|
|
502
476
|
[`${E}--negative`]: a
|
|
503
477
|
});
|
|
504
|
-
return /* @__PURE__ */ s("p", { ...t, className:
|
|
478
|
+
return /* @__PURE__ */ s("p", { ...t, className: p, children: e });
|
|
505
479
|
};
|
|
506
480
|
ar.displayName = "Paragraph";
|
|
507
481
|
function _t(e) {
|
|
508
482
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
509
483
|
}
|
|
510
|
-
var yr = { exports: {} };
|
|
511
|
-
/*!
|
|
512
|
-
Copyright (c) 2018 Jed Watson.
|
|
513
|
-
Licensed under the MIT License (MIT), see
|
|
514
|
-
http://jedwatson.github.io/classnames
|
|
515
|
-
*/
|
|
516
|
-
var $r;
|
|
484
|
+
var yr = { exports: {} }, $r;
|
|
517
485
|
function dt() {
|
|
518
486
|
return $r || ($r = 1, (function(e) {
|
|
519
487
|
(function() {
|
|
520
488
|
var n = {}.hasOwnProperty;
|
|
521
489
|
function i() {
|
|
522
490
|
for (var r = "", t = 0; t < arguments.length; t++) {
|
|
523
|
-
var
|
|
524
|
-
|
|
491
|
+
var p = arguments[t];
|
|
492
|
+
p && (r = a(r, o.call(this, p)));
|
|
525
493
|
}
|
|
526
494
|
return r;
|
|
527
495
|
}
|
|
528
|
-
function
|
|
496
|
+
function o(r) {
|
|
529
497
|
if (typeof r == "string" || typeof r == "number")
|
|
530
498
|
return this && this[r] || r;
|
|
531
499
|
if (typeof r != "object")
|
|
@@ -535,8 +503,8 @@ function dt() {
|
|
|
535
503
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
536
504
|
return r.toString();
|
|
537
505
|
var t = "";
|
|
538
|
-
for (var
|
|
539
|
-
n.call(r,
|
|
506
|
+
for (var p in r)
|
|
507
|
+
n.call(r, p) && r[p] && (t = a(t, this && this[p] || p));
|
|
540
508
|
return t;
|
|
541
509
|
}
|
|
542
510
|
function a(r, t) {
|
|
@@ -547,7 +515,7 @@ function dt() {
|
|
|
547
515
|
})(yr)), yr.exports;
|
|
548
516
|
}
|
|
549
517
|
var ft = dt();
|
|
550
|
-
const mt = /* @__PURE__ */ _t(ft),
|
|
518
|
+
const mt = /* @__PURE__ */ _t(ft), ht = {
|
|
551
519
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
552
520
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
553
521
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -555,22 +523,22 @@ const mt = /* @__PURE__ */ _t(ft), vt = {
|
|
|
555
523
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
556
524
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
557
525
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
558
|
-
},
|
|
526
|
+
}, vt = mt.bind(ht), br = "purpur-icon", yt = "md", $t = (e) => e.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), bt = ({ content: e = "", title: n } = {}) => {
|
|
559
527
|
const i = [
|
|
560
528
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
561
529
|
{ name: "fill", value: "currentColor" },
|
|
562
530
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
563
531
|
n ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
564
|
-
],
|
|
565
|
-
return `<svg ${$t(i)}>${
|
|
566
|
-
}, xt = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(),
|
|
532
|
+
], o = n ? `<title>${n}</title>` : "";
|
|
533
|
+
return `<svg ${$t(i)}>${o}${e}</svg>`;
|
|
534
|
+
}, xt = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Jr = ({ svg: e, allyTitle: n, className: i, size: o = yt, ...a }) => {
|
|
567
535
|
const r = bt({
|
|
568
536
|
content: xt(e.svg),
|
|
569
537
|
title: n
|
|
570
|
-
}), t =
|
|
538
|
+
}), t = vt(br, `${br}--${o}`, i);
|
|
571
539
|
return /* @__PURE__ */ s("span", { className: t, dangerouslySetInnerHTML: { __html: r }, ...a });
|
|
572
540
|
};
|
|
573
|
-
|
|
541
|
+
Jr.displayName = "Icon";
|
|
574
542
|
const wt = {
|
|
575
543
|
name: "error-filled",
|
|
576
544
|
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>',
|
|
@@ -580,25 +548,19 @@ const wt = {
|
|
|
580
548
|
function St(e) {
|
|
581
549
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
582
550
|
}
|
|
583
|
-
var xr = { exports: {} };
|
|
584
|
-
/*!
|
|
585
|
-
Copyright (c) 2018 Jed Watson.
|
|
586
|
-
Licensed under the MIT License (MIT), see
|
|
587
|
-
http://jedwatson.github.io/classnames
|
|
588
|
-
*/
|
|
589
|
-
var wr;
|
|
551
|
+
var xr = { exports: {} }, wr;
|
|
590
552
|
function Nt() {
|
|
591
553
|
return wr || (wr = 1, (function(e) {
|
|
592
554
|
(function() {
|
|
593
555
|
var n = {}.hasOwnProperty;
|
|
594
556
|
function i() {
|
|
595
557
|
for (var r = "", t = 0; t < arguments.length; t++) {
|
|
596
|
-
var
|
|
597
|
-
|
|
558
|
+
var p = arguments[t];
|
|
559
|
+
p && (r = a(r, o.call(this, p)));
|
|
598
560
|
}
|
|
599
561
|
return r;
|
|
600
562
|
}
|
|
601
|
-
function
|
|
563
|
+
function o(r) {
|
|
602
564
|
if (typeof r == "string" || typeof r == "number")
|
|
603
565
|
return this && this[r] || r;
|
|
604
566
|
if (typeof r != "object")
|
|
@@ -608,8 +570,8 @@ function Nt() {
|
|
|
608
570
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
609
571
|
return r.toString();
|
|
610
572
|
var t = "";
|
|
611
|
-
for (var
|
|
612
|
-
n.call(r,
|
|
573
|
+
for (var p in r)
|
|
574
|
+
n.call(r, p) && r[p] && (t = a(t, this && this[p] || p));
|
|
613
575
|
return t;
|
|
614
576
|
}
|
|
615
577
|
function a(r, t) {
|
|
@@ -620,27 +582,27 @@ function Nt() {
|
|
|
620
582
|
})(xr)), xr.exports;
|
|
621
583
|
}
|
|
622
584
|
var Ot = Nt();
|
|
623
|
-
const
|
|
585
|
+
const Ct = /* @__PURE__ */ St(Ot), Pt = {
|
|
624
586
|
"purpur-field-error-text": "_purpur-field-error-text_u1cy2_1",
|
|
625
587
|
"purpur-field-error-text--negative": "_purpur-field-error-text--negative_u1cy2_11",
|
|
626
588
|
"purpur-field-error-text__icon": "_purpur-field-error-text__icon_u1cy2_14"
|
|
627
|
-
}, Sr =
|
|
589
|
+
}, Sr = Ct.bind(Pt), T = "purpur-field-error-text", jt = ({
|
|
628
590
|
children: e,
|
|
629
591
|
className: n,
|
|
630
592
|
negative: i = !1,
|
|
631
|
-
["aria-relevant"]:
|
|
593
|
+
["aria-relevant"]: o = "additions text",
|
|
632
594
|
...a
|
|
633
|
-
}) => /* @__PURE__ */
|
|
595
|
+
}) => /* @__PURE__ */ v(
|
|
634
596
|
"div",
|
|
635
597
|
{
|
|
636
|
-
className: Sr(n,
|
|
637
|
-
[`${
|
|
598
|
+
className: Sr(n, T, {
|
|
599
|
+
[`${T}--negative`]: i
|
|
638
600
|
}),
|
|
639
601
|
"aria-live": "assertive",
|
|
640
|
-
"aria-relevant":
|
|
602
|
+
"aria-relevant": o,
|
|
641
603
|
...a,
|
|
642
604
|
children: [
|
|
643
|
-
/* @__PURE__ */ s(
|
|
605
|
+
/* @__PURE__ */ s(Jr, { svg: wt, size: "xs", className: Sr(`${T}__icon`) }),
|
|
644
606
|
e
|
|
645
607
|
]
|
|
646
608
|
}
|
|
@@ -648,25 +610,19 @@ const jt = /* @__PURE__ */ St(Ot), Ct = {
|
|
|
648
610
|
function At(e) {
|
|
649
611
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
650
612
|
}
|
|
651
|
-
var Nr = { exports: {} };
|
|
652
|
-
/*!
|
|
653
|
-
Copyright (c) 2018 Jed Watson.
|
|
654
|
-
Licensed under the MIT License (MIT), see
|
|
655
|
-
http://jedwatson.github.io/classnames
|
|
656
|
-
*/
|
|
657
|
-
var Or;
|
|
613
|
+
var Nr = { exports: {} }, Or;
|
|
658
614
|
function zt() {
|
|
659
615
|
return Or || (Or = 1, (function(e) {
|
|
660
616
|
(function() {
|
|
661
617
|
var n = {}.hasOwnProperty;
|
|
662
618
|
function i() {
|
|
663
619
|
for (var r = "", t = 0; t < arguments.length; t++) {
|
|
664
|
-
var
|
|
665
|
-
|
|
620
|
+
var p = arguments[t];
|
|
621
|
+
p && (r = a(r, o.call(this, p)));
|
|
666
622
|
}
|
|
667
623
|
return r;
|
|
668
624
|
}
|
|
669
|
-
function
|
|
625
|
+
function o(r) {
|
|
670
626
|
if (typeof r == "string" || typeof r == "number")
|
|
671
627
|
return this && this[r] || r;
|
|
672
628
|
if (typeof r != "object")
|
|
@@ -676,8 +632,8 @@ function zt() {
|
|
|
676
632
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
677
633
|
return r.toString();
|
|
678
634
|
var t = "";
|
|
679
|
-
for (var
|
|
680
|
-
n.call(r,
|
|
635
|
+
for (var p in r)
|
|
636
|
+
n.call(r, p) && r[p] && (t = a(t, this && this[p] || p));
|
|
681
637
|
return t;
|
|
682
638
|
}
|
|
683
639
|
function a(r, t) {
|
|
@@ -696,7 +652,7 @@ const Et = /* @__PURE__ */ At(Rt), Mt = {
|
|
|
696
652
|
children: e,
|
|
697
653
|
className: n,
|
|
698
654
|
disabled: i,
|
|
699
|
-
id:
|
|
655
|
+
id: o,
|
|
700
656
|
negative: a,
|
|
701
657
|
...r
|
|
702
658
|
}) => {
|
|
@@ -704,30 +660,24 @@ const Et = /* @__PURE__ */ At(Rt), Mt = {
|
|
|
704
660
|
[`${I}--disabled`]: i,
|
|
705
661
|
[`${I}--negative`]: a
|
|
706
662
|
});
|
|
707
|
-
return /* @__PURE__ */ s("span", { id:
|
|
663
|
+
return /* @__PURE__ */ s("span", { id: o, className: t, ...r, children: e });
|
|
708
664
|
};
|
|
709
665
|
function Dt(e) {
|
|
710
666
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
711
667
|
}
|
|
712
|
-
var
|
|
713
|
-
/*!
|
|
714
|
-
Copyright (c) 2018 Jed Watson.
|
|
715
|
-
Licensed under the MIT License (MIT), see
|
|
716
|
-
http://jedwatson.github.io/classnames
|
|
717
|
-
*/
|
|
718
|
-
var Cr;
|
|
668
|
+
var Cr = { exports: {} }, Pr;
|
|
719
669
|
function Vt() {
|
|
720
|
-
return
|
|
670
|
+
return Pr || (Pr = 1, (function(e) {
|
|
721
671
|
(function() {
|
|
722
672
|
var n = {}.hasOwnProperty;
|
|
723
673
|
function i() {
|
|
724
674
|
for (var r = "", t = 0; t < arguments.length; t++) {
|
|
725
|
-
var
|
|
726
|
-
|
|
675
|
+
var p = arguments[t];
|
|
676
|
+
p && (r = a(r, o.call(this, p)));
|
|
727
677
|
}
|
|
728
678
|
return r;
|
|
729
679
|
}
|
|
730
|
-
function
|
|
680
|
+
function o(r) {
|
|
731
681
|
if (typeof r == "string" || typeof r == "number")
|
|
732
682
|
return this && this[r] || r;
|
|
733
683
|
if (typeof r != "object")
|
|
@@ -737,8 +687,8 @@ function Vt() {
|
|
|
737
687
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
738
688
|
return r.toString();
|
|
739
689
|
var t = "";
|
|
740
|
-
for (var
|
|
741
|
-
n.call(r,
|
|
690
|
+
for (var p in r)
|
|
691
|
+
n.call(r, p) && r[p] && (t = a(t, this && this[p] || p));
|
|
742
692
|
return t;
|
|
743
693
|
}
|
|
744
694
|
function a(r, t) {
|
|
@@ -746,7 +696,7 @@ function Vt() {
|
|
|
746
696
|
}
|
|
747
697
|
e.exports ? (i.default = i, e.exports = i) : window.classNames = i;
|
|
748
698
|
})();
|
|
749
|
-
})(
|
|
699
|
+
})(Cr)), Cr.exports;
|
|
750
700
|
}
|
|
751
701
|
var Wt = Vt();
|
|
752
702
|
const Bt = /* @__PURE__ */ Dt(Wt), Lt = {
|
|
@@ -757,73 +707,73 @@ const Bt = /* @__PURE__ */ Dt(Wt), Lt = {
|
|
|
757
707
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
758
708
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
759
709
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
760
|
-
}, Zt = Bt.bind(Lt),
|
|
710
|
+
}, Zt = Bt.bind(Lt), jr = "purpur-icon", Ht = "md", Ft = (e) => e.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), Gt = ({ content: e = "", title: n } = {}) => {
|
|
761
711
|
const i = [
|
|
762
712
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
763
713
|
{ name: "fill", value: "currentColor" },
|
|
764
714
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
765
715
|
n ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
766
|
-
],
|
|
767
|
-
return `<svg ${Ft(i)}>${
|
|
768
|
-
},
|
|
769
|
-
const r =
|
|
770
|
-
content:
|
|
716
|
+
], o = n ? `<title>${n}</title>` : "";
|
|
717
|
+
return `<svg ${Ft(i)}>${o}${e}</svg>`;
|
|
718
|
+
}, Jt = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), pr = ({ svg: e, allyTitle: n, className: i, size: o = Ht, ...a }) => {
|
|
719
|
+
const r = Gt({
|
|
720
|
+
content: Jt(e.svg),
|
|
771
721
|
title: n
|
|
772
|
-
}), t = Zt(
|
|
722
|
+
}), t = Zt(jr, `${jr}--${o}`, i);
|
|
773
723
|
return /* @__PURE__ */ s("span", { className: t, dangerouslySetInnerHTML: { __html: r }, ...a });
|
|
774
724
|
};
|
|
775
725
|
pr.displayName = "Icon";
|
|
776
|
-
const
|
|
726
|
+
const Kt = {
|
|
777
727
|
name: "check-circle-filled",
|
|
778
728
|
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>',
|
|
779
729
|
keywords: ["check-circle-filled"],
|
|
780
730
|
category: "status"
|
|
781
|
-
},
|
|
782
|
-
|
|
783
|
-
const
|
|
731
|
+
}, Kr = (e) => /* @__PURE__ */ s(pr, { ...e, svg: Kt });
|
|
732
|
+
Kr.displayName = "IconCheckCircleFilled";
|
|
733
|
+
const Qt = {
|
|
784
734
|
name: "chevron-down",
|
|
785
735
|
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>',
|
|
786
736
|
keywords: ["chevron-down"],
|
|
787
737
|
category: "utility"
|
|
788
|
-
},
|
|
789
|
-
|
|
738
|
+
}, Qr = (e) => /* @__PURE__ */ s(pr, { ...e, svg: Qt });
|
|
739
|
+
Qr.displayName = "IconChevronDown";
|
|
790
740
|
function Ar(e, n) {
|
|
791
741
|
if (typeof e == "function")
|
|
792
742
|
return e(n);
|
|
793
743
|
e != null && (e.current = n);
|
|
794
744
|
}
|
|
795
|
-
function
|
|
745
|
+
function Ut(...e) {
|
|
796
746
|
return (n) => {
|
|
797
747
|
let i = !1;
|
|
798
|
-
const
|
|
748
|
+
const o = e.map((a) => {
|
|
799
749
|
const r = Ar(a, n);
|
|
800
750
|
return !i && typeof r == "function" && (i = !0), r;
|
|
801
751
|
});
|
|
802
752
|
if (i)
|
|
803
753
|
return () => {
|
|
804
|
-
for (let a = 0; a <
|
|
805
|
-
const r =
|
|
754
|
+
for (let a = 0; a < o.length; a++) {
|
|
755
|
+
const r = o[a];
|
|
806
756
|
typeof r == "function" ? r() : Ar(e[a], null);
|
|
807
757
|
}
|
|
808
758
|
};
|
|
809
759
|
};
|
|
810
760
|
}
|
|
811
|
-
var
|
|
812
|
-
function
|
|
761
|
+
var Xt = Symbol.for("react.lazy"), K = l[" use ".trim().toString()];
|
|
762
|
+
function Yt(e) {
|
|
813
763
|
return typeof e == "object" && e !== null && "then" in e;
|
|
814
764
|
}
|
|
815
|
-
function
|
|
816
|
-
return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof ===
|
|
765
|
+
function Ur(e) {
|
|
766
|
+
return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === Xt && "_payload" in e && Yt(e._payload);
|
|
817
767
|
}
|
|
818
768
|
// @__NO_SIDE_EFFECTS__
|
|
819
|
-
function
|
|
820
|
-
const n = /* @__PURE__ */ It(e), i = l.forwardRef((
|
|
821
|
-
let { children: r, ...t } =
|
|
822
|
-
|
|
823
|
-
const
|
|
769
|
+
function Tt(e) {
|
|
770
|
+
const n = /* @__PURE__ */ It(e), i = l.forwardRef((o, a) => {
|
|
771
|
+
let { children: r, ...t } = o;
|
|
772
|
+
Ur(r) && typeof K == "function" && (r = K(r._payload));
|
|
773
|
+
const p = l.Children.toArray(r), g = p.find(ei);
|
|
824
774
|
if (g) {
|
|
825
|
-
const c = g.props.children,
|
|
826
|
-
return /* @__PURE__ */ s(n, { ...t, ref: a, children: l.isValidElement(c) ? l.cloneElement(c, void 0,
|
|
775
|
+
const c = g.props.children, f = p.map((u) => u === g ? l.Children.count(c) > 1 ? l.Children.only(null) : l.isValidElement(c) ? c.props.children : null : u);
|
|
776
|
+
return /* @__PURE__ */ s(n, { ...t, ref: a, children: l.isValidElement(c) ? l.cloneElement(c, void 0, f) : null });
|
|
827
777
|
}
|
|
828
778
|
return /* @__PURE__ */ s(n, { ...t, ref: a, children: r });
|
|
829
779
|
});
|
|
@@ -831,11 +781,11 @@ function Gt(e) {
|
|
|
831
781
|
}
|
|
832
782
|
// @__NO_SIDE_EFFECTS__
|
|
833
783
|
function It(e) {
|
|
834
|
-
const n = l.forwardRef((i,
|
|
784
|
+
const n = l.forwardRef((i, o) => {
|
|
835
785
|
let { children: a, ...r } = i;
|
|
836
|
-
if (
|
|
837
|
-
const t = ii(a),
|
|
838
|
-
return a.type !== l.Fragment && (
|
|
786
|
+
if (Ur(a) && typeof K == "function" && (a = K(a._payload)), l.isValidElement(a)) {
|
|
787
|
+
const t = ii(a), p = ti(r, a.props);
|
|
788
|
+
return a.type !== l.Fragment && (p.ref = o ? Ut(o, t) : t), l.cloneElement(a, p);
|
|
839
789
|
}
|
|
840
790
|
return l.Children.count(a) > 1 ? l.Children.only(null) : null;
|
|
841
791
|
});
|
|
@@ -847,19 +797,18 @@ function ei(e) {
|
|
|
847
797
|
}
|
|
848
798
|
function ti(e, n) {
|
|
849
799
|
const i = { ...n };
|
|
850
|
-
for (const
|
|
851
|
-
const a = e[
|
|
852
|
-
/^on[A-Z]/.test(
|
|
853
|
-
const
|
|
854
|
-
return a(...t),
|
|
855
|
-
} : a && (i[
|
|
800
|
+
for (const o in n) {
|
|
801
|
+
const a = e[o], r = n[o];
|
|
802
|
+
/^on[A-Z]/.test(o) ? a && r ? i[o] = (...t) => {
|
|
803
|
+
const p = r(...t);
|
|
804
|
+
return a(...t), p;
|
|
805
|
+
} : a && (i[o] = a) : o === "style" ? i[o] = { ...a, ...r } : o === "className" && (i[o] = [a, r].filter(Boolean).join(" "));
|
|
856
806
|
}
|
|
857
807
|
return { ...e, ...i };
|
|
858
808
|
}
|
|
859
809
|
function ii(e) {
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
return a ? e.ref : (p = (i = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : i.get, a = p && "isReactWarning" in p && p.isReactWarning, a ? e.props.ref : e.props.ref || e.ref);
|
|
810
|
+
let n = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, i = n && "isReactWarning" in n && n.isReactWarning;
|
|
811
|
+
return i ? e.ref : (n = Object.getOwnPropertyDescriptor(e, "ref")?.get, i = n && "isReactWarning" in n && n.isReactWarning, i ? e.props.ref : e.props.ref || e.ref);
|
|
863
812
|
}
|
|
864
813
|
var ni = [
|
|
865
814
|
"a",
|
|
@@ -880,46 +829,39 @@ var ni = [
|
|
|
880
829
|
"svg",
|
|
881
830
|
"ul"
|
|
882
831
|
], ai = ni.reduce((e, n) => {
|
|
883
|
-
const i = /* @__PURE__ */
|
|
884
|
-
const { asChild: t, ...
|
|
885
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ s(g, { ...
|
|
832
|
+
const i = /* @__PURE__ */ Tt(`Primitive.${n}`), o = l.forwardRef((a, r) => {
|
|
833
|
+
const { asChild: t, ...p } = a, g = t ? i : n;
|
|
834
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ s(g, { ...p, ref: r });
|
|
886
835
|
});
|
|
887
|
-
return
|
|
888
|
-
}, {}), pi = "Label",
|
|
836
|
+
return o.displayName = `Primitive.${n}`, { ...e, [n]: o };
|
|
837
|
+
}, {}), pi = "Label", Xr = l.forwardRef((e, n) => /* @__PURE__ */ s(
|
|
889
838
|
ai.label,
|
|
890
839
|
{
|
|
891
840
|
...e,
|
|
892
841
|
ref: n,
|
|
893
842
|
onMouseDown: (i) => {
|
|
894
|
-
|
|
895
|
-
i.target.closest("button, input, select, textarea") || ((p = e.onMouseDown) == null || p.call(e, i), !i.defaultPrevented && i.detail > 1 && i.preventDefault());
|
|
843
|
+
i.target.closest("button, input, select, textarea") || (e.onMouseDown?.(i), !i.defaultPrevented && i.detail > 1 && i.preventDefault());
|
|
896
844
|
}
|
|
897
845
|
}
|
|
898
846
|
));
|
|
899
|
-
|
|
900
|
-
var oi =
|
|
847
|
+
Xr.displayName = pi;
|
|
848
|
+
var oi = Xr;
|
|
901
849
|
function si(e) {
|
|
902
850
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
903
851
|
}
|
|
904
|
-
var zr = { exports: {} };
|
|
905
|
-
/*!
|
|
906
|
-
Copyright (c) 2018 Jed Watson.
|
|
907
|
-
Licensed under the MIT License (MIT), see
|
|
908
|
-
http://jedwatson.github.io/classnames
|
|
909
|
-
*/
|
|
910
|
-
var Rr;
|
|
852
|
+
var zr = { exports: {} }, Rr;
|
|
911
853
|
function li() {
|
|
912
854
|
return Rr || (Rr = 1, (function(e) {
|
|
913
855
|
(function() {
|
|
914
856
|
var n = {}.hasOwnProperty;
|
|
915
857
|
function i() {
|
|
916
858
|
for (var r = "", t = 0; t < arguments.length; t++) {
|
|
917
|
-
var
|
|
918
|
-
|
|
859
|
+
var p = arguments[t];
|
|
860
|
+
p && (r = a(r, o.call(this, p)));
|
|
919
861
|
}
|
|
920
862
|
return r;
|
|
921
863
|
}
|
|
922
|
-
function
|
|
864
|
+
function o(r) {
|
|
923
865
|
if (typeof r == "string" || typeof r == "number")
|
|
924
866
|
return this && this[r] || r;
|
|
925
867
|
if (typeof r != "object")
|
|
@@ -929,8 +871,8 @@ function li() {
|
|
|
929
871
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
930
872
|
return r.toString();
|
|
931
873
|
var t = "";
|
|
932
|
-
for (var
|
|
933
|
-
n.call(r,
|
|
874
|
+
for (var p in r)
|
|
875
|
+
n.call(r, p) && r[p] && (t = a(t, this && this[p] || p));
|
|
934
876
|
return t;
|
|
935
877
|
}
|
|
936
878
|
function a(r, t) {
|
|
@@ -949,37 +891,31 @@ const gi = /* @__PURE__ */ si(ui), ci = {
|
|
|
949
891
|
children: e,
|
|
950
892
|
className: n,
|
|
951
893
|
disabled: i,
|
|
952
|
-
negative:
|
|
894
|
+
negative: o = !1,
|
|
953
895
|
...a
|
|
954
896
|
}) => {
|
|
955
897
|
const r = _i(n, rr, {
|
|
956
898
|
[`${rr}--disabled`]: i,
|
|
957
|
-
[`${rr}--negative`]:
|
|
899
|
+
[`${rr}--negative`]: o
|
|
958
900
|
});
|
|
959
901
|
return /* @__PURE__ */ s(oi, { className: r, ...a, children: e });
|
|
960
902
|
};
|
|
961
903
|
function fi(e) {
|
|
962
904
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
963
905
|
}
|
|
964
|
-
var Er = { exports: {} };
|
|
965
|
-
/*!
|
|
966
|
-
Copyright (c) 2018 Jed Watson.
|
|
967
|
-
Licensed under the MIT License (MIT), see
|
|
968
|
-
http://jedwatson.github.io/classnames
|
|
969
|
-
*/
|
|
970
|
-
var Mr;
|
|
906
|
+
var Er = { exports: {} }, Mr;
|
|
971
907
|
function mi() {
|
|
972
908
|
return Mr || (Mr = 1, (function(e) {
|
|
973
909
|
(function() {
|
|
974
910
|
var n = {}.hasOwnProperty;
|
|
975
911
|
function i() {
|
|
976
912
|
for (var r = "", t = 0; t < arguments.length; t++) {
|
|
977
|
-
var
|
|
978
|
-
|
|
913
|
+
var p = arguments[t];
|
|
914
|
+
p && (r = a(r, o.call(this, p)));
|
|
979
915
|
}
|
|
980
916
|
return r;
|
|
981
917
|
}
|
|
982
|
-
function
|
|
918
|
+
function o(r) {
|
|
983
919
|
if (typeof r == "string" || typeof r == "number")
|
|
984
920
|
return this && this[r] || r;
|
|
985
921
|
if (typeof r != "object")
|
|
@@ -989,8 +925,8 @@ function mi() {
|
|
|
989
925
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
990
926
|
return r.toString();
|
|
991
927
|
var t = "";
|
|
992
|
-
for (var
|
|
993
|
-
n.call(r,
|
|
928
|
+
for (var p in r)
|
|
929
|
+
n.call(r, p) && r[p] && (t = a(t, this && this[p] || p));
|
|
994
930
|
return t;
|
|
995
931
|
}
|
|
996
932
|
function a(r, t) {
|
|
@@ -1000,8 +936,8 @@ function mi() {
|
|
|
1000
936
|
})();
|
|
1001
937
|
})(Er)), Er.exports;
|
|
1002
938
|
}
|
|
1003
|
-
var
|
|
1004
|
-
const
|
|
939
|
+
var hi = mi();
|
|
940
|
+
const vi = /* @__PURE__ */ fi(hi), yi = "_rotate_12t9p_1", $i = "_dash_12t9p_1", bi = {
|
|
1005
941
|
"purpur-spinner": "_purpur-spinner_12t9p_2",
|
|
1006
942
|
rotate: yi,
|
|
1007
943
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
|
|
@@ -1013,15 +949,15 @@ const hi = /* @__PURE__ */ fi(vi), yi = "_rotate_12t9p_1", $i = "_dash_12t9p_1",
|
|
|
1013
949
|
dash: $i,
|
|
1014
950
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
|
|
1015
951
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
|
|
1016
|
-
}, qr =
|
|
952
|
+
}, qr = vi.bind(bi), M = "purpur-spinner", xi = {
|
|
1017
953
|
SM: "sm"
|
|
1018
|
-
},
|
|
954
|
+
}, Yr = ({
|
|
1019
955
|
disabled: e = !1,
|
|
1020
956
|
negative: n = !1,
|
|
1021
957
|
size: i = xi.SM,
|
|
1022
|
-
className:
|
|
958
|
+
className: o,
|
|
1023
959
|
...a
|
|
1024
|
-
}) => /* @__PURE__ */ s("div", { className: qr(M, `${M}--${i}`,
|
|
960
|
+
}) => /* @__PURE__ */ s("div", { className: qr(M, `${M}--${i}`, o), ...a, children: /* @__PURE__ */ s("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ s(
|
|
1025
961
|
"circle",
|
|
1026
962
|
{
|
|
1027
963
|
className: qr(`${M}__circle`, {
|
|
@@ -1033,29 +969,23 @@ const hi = /* @__PURE__ */ fi(vi), yi = "_rotate_12t9p_1", $i = "_dash_12t9p_1",
|
|
|
1033
969
|
r: "20"
|
|
1034
970
|
}
|
|
1035
971
|
) }) });
|
|
1036
|
-
|
|
972
|
+
Yr.displayName = "Spinner";
|
|
1037
973
|
function wi(e) {
|
|
1038
974
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1039
975
|
}
|
|
1040
|
-
var kr = { exports: {} };
|
|
1041
|
-
/*!
|
|
1042
|
-
Copyright (c) 2018 Jed Watson.
|
|
1043
|
-
Licensed under the MIT License (MIT), see
|
|
1044
|
-
http://jedwatson.github.io/classnames
|
|
1045
|
-
*/
|
|
1046
|
-
var Dr;
|
|
976
|
+
var kr = { exports: {} }, Dr;
|
|
1047
977
|
function Si() {
|
|
1048
978
|
return Dr || (Dr = 1, (function(e) {
|
|
1049
979
|
(function() {
|
|
1050
980
|
var n = {}.hasOwnProperty;
|
|
1051
981
|
function i() {
|
|
1052
982
|
for (var r = "", t = 0; t < arguments.length; t++) {
|
|
1053
|
-
var
|
|
1054
|
-
|
|
983
|
+
var p = arguments[t];
|
|
984
|
+
p && (r = a(r, o.call(this, p)));
|
|
1055
985
|
}
|
|
1056
986
|
return r;
|
|
1057
987
|
}
|
|
1058
|
-
function
|
|
988
|
+
function o(r) {
|
|
1059
989
|
if (typeof r == "string" || typeof r == "number")
|
|
1060
990
|
return this && this[r] || r;
|
|
1061
991
|
if (typeof r != "object")
|
|
@@ -1065,8 +995,8 @@ function Si() {
|
|
|
1065
995
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
1066
996
|
return r.toString();
|
|
1067
997
|
var t = "";
|
|
1068
|
-
for (var
|
|
1069
|
-
n.call(r,
|
|
998
|
+
for (var p in r)
|
|
999
|
+
n.call(r, p) && r[p] && (t = a(t, this && this[p] || p));
|
|
1070
1000
|
return t;
|
|
1071
1001
|
}
|
|
1072
1002
|
function a(r, t) {
|
|
@@ -1077,7 +1007,7 @@ function Si() {
|
|
|
1077
1007
|
})(kr)), kr.exports;
|
|
1078
1008
|
}
|
|
1079
1009
|
var Ni = Si();
|
|
1080
|
-
const Oi = /* @__PURE__ */ wi(Ni),
|
|
1010
|
+
const Oi = /* @__PURE__ */ wi(Ni), Ci = {
|
|
1081
1011
|
"purpur-select": "_purpur-select_t7uxd_1",
|
|
1082
1012
|
"purpur-select__label": "_purpur-select__label_t7uxd_7",
|
|
1083
1013
|
"purpur-select__field-row": "_purpur-select__field-row_t7uxd_12",
|
|
@@ -1097,44 +1027,44 @@ const Oi = /* @__PURE__ */ wi(Ni), ji = {
|
|
|
1097
1027
|
"purpur-select__select-icon--disabled": "_purpur-select__select-icon--disabled_t7uxd_133",
|
|
1098
1028
|
"purpur-select__select-icon--negative": "_purpur-select__select-icon--negative_t7uxd_136",
|
|
1099
1029
|
"purpur-select__valid-icon": "_purpur-select__valid-icon_t7uxd_142"
|
|
1100
|
-
}, N = Oi.bind(
|
|
1030
|
+
}, N = Oi.bind(Ci), _ = "purpur-select", or = A(
|
|
1101
1031
|
({
|
|
1102
1032
|
label: e,
|
|
1103
1033
|
options: n,
|
|
1104
1034
|
className: i,
|
|
1105
|
-
errorText:
|
|
1035
|
+
errorText: o,
|
|
1106
1036
|
helperText: a,
|
|
1107
1037
|
negative: r = !1,
|
|
1108
1038
|
placeholder: t,
|
|
1109
|
-
readOnly:
|
|
1039
|
+
readOnly: p = !1,
|
|
1110
1040
|
["data-testid"]: g,
|
|
1111
1041
|
valid: c,
|
|
1112
|
-
loading:
|
|
1042
|
+
loading: f,
|
|
1113
1043
|
...u
|
|
1114
1044
|
}, x) => {
|
|
1115
|
-
const
|
|
1045
|
+
const d = (P) => g ? `${g}-${P}` : void 0, y = c && !o, O = ir(), $ = u.id ?? O, w = a ? `${$}-helper-text` : void 0, C = N(`${_}__select-container`, {
|
|
1116
1046
|
[`${_}__select-container--disabled`]: u.disabled,
|
|
1117
|
-
[`${_}__select-container--readonly`]:
|
|
1047
|
+
[`${_}__select-container--readonly`]: p && !u.disabled,
|
|
1118
1048
|
[`${_}__select-container--negative`]: r
|
|
1119
1049
|
});
|
|
1120
1050
|
return N(`${_}__select-icon`, {
|
|
1121
1051
|
[`${_}__select-icon--disabled`]: u.disabled,
|
|
1122
|
-
[`${_}__select-icon--readonly`]:
|
|
1052
|
+
[`${_}__select-icon--readonly`]: p && !u.disabled,
|
|
1123
1053
|
[`${_}__select-icon--is-valid`]: y,
|
|
1124
1054
|
[`${_}__select-icon--negative`]: r
|
|
1125
|
-
}), y && N(`${_}__valid-icon`), /* @__PURE__ */
|
|
1055
|
+
}), y && N(`${_}__valid-icon`), /* @__PURE__ */ v(
|
|
1126
1056
|
"div",
|
|
1127
1057
|
{
|
|
1128
1058
|
className: N(_, i, {
|
|
1129
1059
|
[`${_}--negative`]: r
|
|
1130
1060
|
}),
|
|
1131
1061
|
children: [
|
|
1132
|
-
e && /* @__PURE__ */
|
|
1062
|
+
e && /* @__PURE__ */ v(
|
|
1133
1063
|
di,
|
|
1134
1064
|
{
|
|
1135
1065
|
htmlFor: $,
|
|
1136
1066
|
className: N(`${_}__label`),
|
|
1137
|
-
"data-testid":
|
|
1067
|
+
"data-testid": d("label"),
|
|
1138
1068
|
disabled: u.disabled,
|
|
1139
1069
|
negative: r,
|
|
1140
1070
|
children: [
|
|
@@ -1143,60 +1073,60 @@ const Oi = /* @__PURE__ */ wi(Ni), ji = {
|
|
|
1143
1073
|
]
|
|
1144
1074
|
}
|
|
1145
1075
|
),
|
|
1146
|
-
/* @__PURE__ */ s("div", { className: N(`${_}__field-row`), children: /* @__PURE__ */
|
|
1147
|
-
/* @__PURE__ */
|
|
1076
|
+
/* @__PURE__ */ s("div", { className: N(`${_}__field-row`), children: /* @__PURE__ */ v("div", { className: C, children: [
|
|
1077
|
+
/* @__PURE__ */ v(
|
|
1148
1078
|
"select",
|
|
1149
1079
|
{
|
|
1150
1080
|
...u,
|
|
1151
|
-
onChange:
|
|
1081
|
+
onChange: p ? void 0 : u?.onChange,
|
|
1152
1082
|
id: $,
|
|
1153
1083
|
ref: x,
|
|
1154
|
-
"data-testid":
|
|
1084
|
+
"data-testid": d("select"),
|
|
1155
1085
|
"aria-describedby": u["aria-describedby"] || w,
|
|
1156
|
-
"aria-invalid": u["aria-invalid"] || !!
|
|
1086
|
+
"aria-invalid": u["aria-invalid"] || !!o,
|
|
1157
1087
|
"aria-disabled": u["aria-disabled"] || u.disabled,
|
|
1158
|
-
"aria-readonly": u["aria-readonly"] ||
|
|
1088
|
+
"aria-readonly": u["aria-readonly"] || p && !u.disabled,
|
|
1159
1089
|
className: N(`${_}__select`, {
|
|
1160
|
-
[`${_}__select--error`]: !!
|
|
1090
|
+
[`${_}__select--error`]: !!o,
|
|
1161
1091
|
[`${_}__select--is-valid`]: y,
|
|
1162
1092
|
[`${_}__select--negative`]: r
|
|
1163
1093
|
}),
|
|
1164
1094
|
children: [
|
|
1165
1095
|
t && /* @__PURE__ */ s("option", { value: t.value ?? t.label, disabled: !0, children: t.label }),
|
|
1166
1096
|
n.map(
|
|
1167
|
-
(
|
|
1097
|
+
(P, q) => Pi(P) ? ji(P, $, q, p) : Tr(P, $, q, p)
|
|
1168
1098
|
)
|
|
1169
1099
|
]
|
|
1170
1100
|
}
|
|
1171
1101
|
),
|
|
1172
|
-
/* @__PURE__ */
|
|
1173
|
-
|
|
1174
|
-
|
|
1102
|
+
/* @__PURE__ */ v("div", { className: N(`${_}__end-adornments`), children: [
|
|
1103
|
+
f ? /* @__PURE__ */ s(
|
|
1104
|
+
Yr,
|
|
1175
1105
|
{
|
|
1176
1106
|
disabled: u.disabled,
|
|
1177
1107
|
size: "xxs",
|
|
1178
1108
|
negative: r,
|
|
1179
|
-
"data-testid":
|
|
1109
|
+
"data-testid": d("spinner")
|
|
1180
1110
|
},
|
|
1181
1111
|
"spinner"
|
|
1182
1112
|
) : /* @__PURE__ */ s(
|
|
1183
|
-
|
|
1113
|
+
Qr,
|
|
1184
1114
|
{
|
|
1185
1115
|
className: N(`${_}__select-icon`, {
|
|
1186
1116
|
[`${_}__select-icon--disabled`]: u.disabled,
|
|
1187
|
-
[`${_}__select-icon--readonly`]:
|
|
1117
|
+
[`${_}__select-icon--readonly`]: p && !u.disabled,
|
|
1188
1118
|
[`${_}__select-icon--is-valid`]: y,
|
|
1189
1119
|
[`${_}__select-icon--negative`]: r
|
|
1190
1120
|
}),
|
|
1191
|
-
"data-testid":
|
|
1121
|
+
"data-testid": d("dropdown-icon"),
|
|
1192
1122
|
size: "sm"
|
|
1193
1123
|
},
|
|
1194
1124
|
"chevron-down-icon"
|
|
1195
1125
|
),
|
|
1196
1126
|
y && /* @__PURE__ */ s(
|
|
1197
|
-
|
|
1127
|
+
Kr,
|
|
1198
1128
|
{
|
|
1199
|
-
"data-testid":
|
|
1129
|
+
"data-testid": d("valid-icon"),
|
|
1200
1130
|
className: N(`${_}__valid-icon`)
|
|
1201
1131
|
},
|
|
1202
1132
|
"valid-icon"
|
|
@@ -1215,25 +1145,25 @@ const Oi = /* @__PURE__ */ wi(Ni), ji = {
|
|
|
1215
1145
|
kt,
|
|
1216
1146
|
{
|
|
1217
1147
|
disabled: u.disabled,
|
|
1218
|
-
"data-testid":
|
|
1148
|
+
"data-testid": d("helper-text"),
|
|
1219
1149
|
id: w,
|
|
1220
1150
|
negative: r,
|
|
1221
1151
|
children: a
|
|
1222
1152
|
}
|
|
1223
1153
|
),
|
|
1224
|
-
|
|
1154
|
+
o && /* @__PURE__ */ s(jt, { negative: r, "data-testid": d("error-text"), children: o })
|
|
1225
1155
|
]
|
|
1226
1156
|
}
|
|
1227
1157
|
);
|
|
1228
1158
|
}
|
|
1229
|
-
),
|
|
1159
|
+
), Pi = (e) => e.hasOwnProperty("options"), ji = (e, n, i, o) => {
|
|
1230
1160
|
const a = `${n}--group--${i}`;
|
|
1231
|
-
return /* @__PURE__ */ s("optgroup", { label: e.label, children: e.options.map((r, t) =>
|
|
1232
|
-
},
|
|
1161
|
+
return /* @__PURE__ */ s("optgroup", { label: e.label, children: e.options.map((r, t) => Tr(r, a, t, o)) }, a);
|
|
1162
|
+
}, Tr = (e, n, i, o) => /* @__PURE__ */ s(
|
|
1233
1163
|
"option",
|
|
1234
1164
|
{
|
|
1235
1165
|
value: e.value ?? e.label,
|
|
1236
|
-
disabled:
|
|
1166
|
+
disabled: o,
|
|
1237
1167
|
children: e.label
|
|
1238
1168
|
},
|
|
1239
1169
|
`${n}--option--${i}`
|
|
@@ -1245,7 +1175,7 @@ const Ai = {
|
|
|
1245
1175
|
"purpur-pagination-page-selector__of-total-pages-label": "_purpur-pagination-page-selector__of-total-pages-label_7pxsw_10"
|
|
1246
1176
|
}, zi = (e) => ({
|
|
1247
1177
|
options: Vr(
|
|
1248
|
-
() => Array.from({ length: e }, (i,
|
|
1178
|
+
() => Array.from({ length: e }, (i, o) => ({ label: `${o + 1}`, value: `${o + 1}` })),
|
|
1249
1179
|
[e]
|
|
1250
1180
|
)
|
|
1251
1181
|
}), B = z.bind(Ai), L = "purpur-pagination-page-selector", Ir = A(
|
|
@@ -1253,35 +1183,35 @@ const Ai = {
|
|
|
1253
1183
|
["data-testid"]: e = "purpur-pagination-page-selector",
|
|
1254
1184
|
asLink: n,
|
|
1255
1185
|
className: i,
|
|
1256
|
-
currentPage:
|
|
1186
|
+
currentPage: o,
|
|
1257
1187
|
hrefGetter: a,
|
|
1258
1188
|
navigationFunction: r,
|
|
1259
1189
|
numberOfPages: t,
|
|
1260
|
-
onPageChange:
|
|
1190
|
+
onPageChange: p,
|
|
1261
1191
|
outOfLabel: g,
|
|
1262
1192
|
pageSelectorId: c,
|
|
1263
|
-
pageSelectorLabel:
|
|
1193
|
+
pageSelectorLabel: f,
|
|
1264
1194
|
...u
|
|
1265
1195
|
}, x) => {
|
|
1266
|
-
const
|
|
1267
|
-
const
|
|
1268
|
-
if (
|
|
1269
|
-
const
|
|
1270
|
-
r(
|
|
1196
|
+
const d = ir(), y = B(i, L), { options: O } = zi(t), $ = (w) => {
|
|
1197
|
+
const C = w.target.value ? Number(w.target.value) : 1;
|
|
1198
|
+
if (p(C), n) {
|
|
1199
|
+
const P = a?.(C) ?? "";
|
|
1200
|
+
r(C, P);
|
|
1271
1201
|
}
|
|
1272
1202
|
};
|
|
1273
|
-
return /* @__PURE__ */
|
|
1274
|
-
/* @__PURE__ */
|
|
1275
|
-
/* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
1203
|
+
return /* @__PURE__ */ v("div", { className: y, "data-testid": e, ref: x, ...u, children: [
|
|
1204
|
+
/* @__PURE__ */ v("div", { className: B(`${L}__select-container`), children: [
|
|
1205
|
+
/* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(Gr, { "data-testid": `${e}-label`, htmlFor: d, children: f }) }),
|
|
1276
1206
|
/* @__PURE__ */ s(
|
|
1277
1207
|
or,
|
|
1278
1208
|
{
|
|
1279
1209
|
className: B(`${L}__select`),
|
|
1280
1210
|
"data-testid": `${e}-select`,
|
|
1281
|
-
id: c ??
|
|
1211
|
+
id: c ?? d,
|
|
1282
1212
|
onChange: $,
|
|
1283
1213
|
options: O,
|
|
1284
|
-
value: String(
|
|
1214
|
+
value: String(o)
|
|
1285
1215
|
}
|
|
1286
1216
|
)
|
|
1287
1217
|
] }),
|
|
@@ -1315,24 +1245,24 @@ const Ri = {
|
|
|
1315
1245
|
["data-testid"]: e = "purpur-pagination-page-size-selector",
|
|
1316
1246
|
asLink: n,
|
|
1317
1247
|
availablePageSizes: i,
|
|
1318
|
-
className:
|
|
1248
|
+
className: o,
|
|
1319
1249
|
hrefGetter: a,
|
|
1320
1250
|
navigationFunction: r,
|
|
1321
1251
|
onPageSizeChange: t,
|
|
1322
|
-
pageSize:
|
|
1252
|
+
pageSize: p,
|
|
1323
1253
|
pageSizeLabel: g,
|
|
1324
1254
|
...c
|
|
1325
|
-
},
|
|
1326
|
-
const u = ir(), x = Z(
|
|
1255
|
+
}, f) => {
|
|
1256
|
+
const u = ir(), x = Z(o, H), { options: d } = Ei(i), y = (O) => {
|
|
1327
1257
|
const $ = Number(O.target.value);
|
|
1328
1258
|
if (t($), n) {
|
|
1329
1259
|
const w = a({ page: 1, pageSize: $ });
|
|
1330
1260
|
r ? r({ currentPage: 1, pageSize: $, url: w }) : Zr(w);
|
|
1331
1261
|
}
|
|
1332
1262
|
};
|
|
1333
|
-
return /* @__PURE__ */
|
|
1263
|
+
return /* @__PURE__ */ v("div", { className: x, "data-testid": e, ref: f, ...c, children: [
|
|
1334
1264
|
/* @__PURE__ */ s(
|
|
1335
|
-
|
|
1265
|
+
Gr,
|
|
1336
1266
|
{
|
|
1337
1267
|
className: Z(`${H}__items-per-page-label`),
|
|
1338
1268
|
"data-testid": `${e}-item-per-page-label`,
|
|
@@ -1347,8 +1277,8 @@ const Ri = {
|
|
|
1347
1277
|
"data-testid": `${e}-select`,
|
|
1348
1278
|
id: u,
|
|
1349
1279
|
onChange: y,
|
|
1350
|
-
options:
|
|
1351
|
-
value:
|
|
1280
|
+
options: d,
|
|
1281
|
+
value: p
|
|
1352
1282
|
}
|
|
1353
1283
|
)
|
|
1354
1284
|
] });
|
|
@@ -1378,17 +1308,17 @@ const Mi = {
|
|
|
1378
1308
|
["data-testid"]: e = "purpur-pagination-page-trigger",
|
|
1379
1309
|
linkElement: n,
|
|
1380
1310
|
asLink: i,
|
|
1381
|
-
className:
|
|
1311
|
+
className: o,
|
|
1382
1312
|
disabled: a,
|
|
1383
1313
|
hrefGetter: r,
|
|
1384
1314
|
onPageChange: t,
|
|
1385
|
-
pageNumber:
|
|
1315
|
+
pageNumber: p,
|
|
1386
1316
|
selected: g,
|
|
1387
1317
|
stepNumberPrefix: c,
|
|
1388
|
-
...
|
|
1318
|
+
...f
|
|
1389
1319
|
}, u) => {
|
|
1390
|
-
const x = F(
|
|
1391
|
-
return /* @__PURE__ */ s("li", { className: x, "data-testid": e, ref: u, ...
|
|
1320
|
+
const x = F(o, b);
|
|
1321
|
+
return /* @__PURE__ */ s("li", { className: x, "data-testid": e, ref: u, ...f, children: i ? a ? /* @__PURE__ */ v(
|
|
1392
1322
|
"span",
|
|
1393
1323
|
{
|
|
1394
1324
|
className: F(
|
|
@@ -1402,10 +1332,10 @@ const Mi = {
|
|
|
1402
1332
|
"data-testid": `${e}-disabled-link`,
|
|
1403
1333
|
children: [
|
|
1404
1334
|
/* @__PURE__ */ s(R, { children: `${c} ` }),
|
|
1405
|
-
|
|
1335
|
+
p
|
|
1406
1336
|
]
|
|
1407
1337
|
}
|
|
1408
|
-
) : /* @__PURE__ */
|
|
1338
|
+
) : /* @__PURE__ */ v(
|
|
1409
1339
|
n,
|
|
1410
1340
|
{
|
|
1411
1341
|
className: F(
|
|
@@ -1417,14 +1347,14 @@ const Mi = {
|
|
|
1417
1347
|
),
|
|
1418
1348
|
"aria-current": g ? "page" : void 0,
|
|
1419
1349
|
"data-testid": `${e}-link`,
|
|
1420
|
-
href: r(
|
|
1421
|
-
onClick: () => t(
|
|
1350
|
+
href: r(p),
|
|
1351
|
+
onClick: () => t(p),
|
|
1422
1352
|
children: [
|
|
1423
1353
|
/* @__PURE__ */ s(R, { children: `${c} ` }),
|
|
1424
|
-
|
|
1354
|
+
p
|
|
1425
1355
|
]
|
|
1426
1356
|
}
|
|
1427
|
-
) : /* @__PURE__ */
|
|
1357
|
+
) : /* @__PURE__ */ v(
|
|
1428
1358
|
"button",
|
|
1429
1359
|
{
|
|
1430
1360
|
"aria-disabled": a,
|
|
@@ -1438,11 +1368,11 @@ const Mi = {
|
|
|
1438
1368
|
"data-testid": `${e}-button`,
|
|
1439
1369
|
"aria-current": g ? "page" : void 0,
|
|
1440
1370
|
disabled: a,
|
|
1441
|
-
onClick: () => t(
|
|
1371
|
+
onClick: () => t(p),
|
|
1442
1372
|
type: "button",
|
|
1443
1373
|
children: [
|
|
1444
1374
|
/* @__PURE__ */ s(R, { children: `${c} ` }),
|
|
1445
|
-
|
|
1375
|
+
p
|
|
1446
1376
|
]
|
|
1447
1377
|
}
|
|
1448
1378
|
) });
|
|
@@ -1457,10 +1387,10 @@ const qi = {
|
|
|
1457
1387
|
["data-testid"]: e = "purpur-pagination-truncation-separator",
|
|
1458
1388
|
className: n,
|
|
1459
1389
|
["aria-label"]: i,
|
|
1460
|
-
...
|
|
1390
|
+
...o
|
|
1461
1391
|
}) => {
|
|
1462
1392
|
const a = Di(n, Vi);
|
|
1463
|
-
return /* @__PURE__ */ s("li", { className: a, "data-testid": e, ...
|
|
1393
|
+
return /* @__PURE__ */ s("li", { className: a, "data-testid": e, ...o, children: /* @__PURE__ */ s(ar, { "aria-label": i, children: "..." }) });
|
|
1464
1394
|
};
|
|
1465
1395
|
te.displayName = "PaginationTruncationSeparator";
|
|
1466
1396
|
const Wi = z.bind(qi), Bi = "purpur-pagination-pages", ie = A(
|
|
@@ -1468,17 +1398,17 @@ const Wi = z.bind(qi), Bi = "purpur-pagination-pages", ie = A(
|
|
|
1468
1398
|
["data-testid"]: e = "purpur-pagination-pages",
|
|
1469
1399
|
linkElement: n,
|
|
1470
1400
|
asLink: i,
|
|
1471
|
-
className:
|
|
1401
|
+
className: o,
|
|
1472
1402
|
currentPage: a,
|
|
1473
1403
|
hrefGetter: r,
|
|
1474
1404
|
onPageChange: t,
|
|
1475
|
-
pages:
|
|
1405
|
+
pages: p,
|
|
1476
1406
|
stepNumberPrefix: g,
|
|
1477
1407
|
truncationSeparatorAriaLabel: c,
|
|
1478
|
-
...
|
|
1408
|
+
...f
|
|
1479
1409
|
}, u) => {
|
|
1480
|
-
const x = Wi(
|
|
1481
|
-
return /* @__PURE__ */ s("ol", { className: x, "data-testid": e, ref: u, ...
|
|
1410
|
+
const x = Wi(o, Bi);
|
|
1411
|
+
return /* @__PURE__ */ s("ol", { className: x, "data-testid": e, ref: u, ...f, children: p.flatMap((d, y, O) => {
|
|
1482
1412
|
const $ = /* @__PURE__ */ ce(
|
|
1483
1413
|
ee,
|
|
1484
1414
|
{
|
|
@@ -1487,22 +1417,22 @@ const Wi = z.bind(qi), Bi = "purpur-pagination-pages", ie = A(
|
|
|
1487
1417
|
hrefGetter: void 0
|
|
1488
1418
|
},
|
|
1489
1419
|
linkElement: n,
|
|
1490
|
-
"data-testid": `${e}-page-${
|
|
1491
|
-
key:
|
|
1420
|
+
"data-testid": `${e}-page-${d}`,
|
|
1421
|
+
key: d,
|
|
1492
1422
|
onPageChange: t,
|
|
1493
|
-
selected:
|
|
1423
|
+
selected: d === a,
|
|
1494
1424
|
stepNumberPrefix: g,
|
|
1495
|
-
pageNumber:
|
|
1425
|
+
pageNumber: d
|
|
1496
1426
|
}
|
|
1497
1427
|
);
|
|
1498
|
-
return y === 0 || O[y - 1] + 1 ===
|
|
1428
|
+
return y === 0 || O[y - 1] + 1 === d ? [$] : [
|
|
1499
1429
|
/* @__PURE__ */ s(
|
|
1500
1430
|
te,
|
|
1501
1431
|
{
|
|
1502
|
-
"data-testid": `${e}-truncation-separator-${
|
|
1432
|
+
"data-testid": `${e}-truncation-separator-${d}`,
|
|
1503
1433
|
"aria-label": c
|
|
1504
1434
|
},
|
|
1505
|
-
`${
|
|
1435
|
+
`${d}-separator`
|
|
1506
1436
|
),
|
|
1507
1437
|
$
|
|
1508
1438
|
];
|
|
@@ -1527,33 +1457,33 @@ const Li = {
|
|
|
1527
1457
|
"purpur-pagination-step-trigger__trigger-item--expressive-negative": "_purpur-pagination-step-trigger__trigger-item--expressive-negative_1t19c_118",
|
|
1528
1458
|
"purpur-pagination-step-trigger__trigger-item--step-trigger": "_purpur-pagination-step-trigger__trigger-item--step-trigger_1t19c_130",
|
|
1529
1459
|
"purpur-pagination-step-trigger__trigger-item--step-trigger--not-icon-only": "_purpur-pagination-step-trigger__trigger-item--step-trigger--not-icon-only_1t19c_137"
|
|
1530
|
-
},
|
|
1460
|
+
}, G = z.bind(Li), m = "purpur-pagination-step-trigger", tr = A(
|
|
1531
1461
|
({
|
|
1532
1462
|
["aria-label"]: e,
|
|
1533
1463
|
["data-testid"]: n = "purpur-pagination-step-trigger",
|
|
1534
1464
|
linkElement: i,
|
|
1535
|
-
asLink:
|
|
1465
|
+
asLink: o,
|
|
1536
1466
|
children: a,
|
|
1537
1467
|
className: r,
|
|
1538
1468
|
disabled: t,
|
|
1539
|
-
hrefGetter:
|
|
1469
|
+
hrefGetter: p,
|
|
1540
1470
|
onPageChange: g,
|
|
1541
1471
|
pageToNavigateTo: c,
|
|
1542
|
-
isIconOnly:
|
|
1472
|
+
isIconOnly: f,
|
|
1543
1473
|
...u
|
|
1544
1474
|
}, x) => {
|
|
1545
|
-
const
|
|
1546
|
-
return /* @__PURE__ */ s("div", { className:
|
|
1475
|
+
const d = G(r, m);
|
|
1476
|
+
return /* @__PURE__ */ s("div", { className: d, "data-testid": n, ref: x, ...u, children: o ? t ? /* @__PURE__ */ s(
|
|
1547
1477
|
"span",
|
|
1548
1478
|
{
|
|
1549
1479
|
"aria-label": e,
|
|
1550
|
-
className:
|
|
1480
|
+
className: G(
|
|
1551
1481
|
`${m}__trigger-item`,
|
|
1552
1482
|
`${m}__trigger-item--step-trigger`,
|
|
1553
1483
|
`${m}__trigger-item--secondary`,
|
|
1554
1484
|
`${m}__trigger-item--sm`,
|
|
1555
1485
|
`${m}__trigger-item--disabled`,
|
|
1556
|
-
{ [`${m}__trigger-item--step-trigger--not-icon-only`]: !
|
|
1486
|
+
{ [`${m}__trigger-item--step-trigger--not-icon-only`]: !f }
|
|
1557
1487
|
),
|
|
1558
1488
|
"data-testid": `${n}-disabled-link`,
|
|
1559
1489
|
children: a
|
|
@@ -1562,15 +1492,15 @@ const Li = {
|
|
|
1562
1492
|
i,
|
|
1563
1493
|
{
|
|
1564
1494
|
"aria-label": e,
|
|
1565
|
-
className:
|
|
1495
|
+
className: G(
|
|
1566
1496
|
`${m}__trigger-item`,
|
|
1567
1497
|
`${m}__trigger-item--step-trigger`,
|
|
1568
1498
|
`${m}__trigger-item--secondary`,
|
|
1569
1499
|
`${m}__trigger-item--sm`,
|
|
1570
|
-
{ [`${m}__trigger-item--step-trigger--not-icon-only`]: !
|
|
1500
|
+
{ [`${m}__trigger-item--step-trigger--not-icon-only`]: !f }
|
|
1571
1501
|
),
|
|
1572
1502
|
"data-testid": `${n}-link`,
|
|
1573
|
-
href:
|
|
1503
|
+
href: p(c),
|
|
1574
1504
|
onClick: () => g(c),
|
|
1575
1505
|
children: a
|
|
1576
1506
|
}
|
|
@@ -1579,14 +1509,14 @@ const Li = {
|
|
|
1579
1509
|
{
|
|
1580
1510
|
"aria-disabled": t,
|
|
1581
1511
|
"aria-label": e,
|
|
1582
|
-
className:
|
|
1512
|
+
className: G(
|
|
1583
1513
|
`${m}__trigger-item`,
|
|
1584
1514
|
`${m}__trigger-item--step-trigger`,
|
|
1585
1515
|
`${m}__trigger-item--secondary`,
|
|
1586
1516
|
`${m}__trigger-item--sm`,
|
|
1587
1517
|
{
|
|
1588
1518
|
[`${m}__trigger-item--disabled`]: t,
|
|
1589
|
-
[`${m}__trigger-item--step-trigger--not-icon-only`]: !
|
|
1519
|
+
[`${m}__trigger-item--step-trigger--not-icon-only`]: !f
|
|
1590
1520
|
}
|
|
1591
1521
|
),
|
|
1592
1522
|
"data-testid": `${n}-button`,
|
|
@@ -1600,12 +1530,12 @@ const Li = {
|
|
|
1600
1530
|
);
|
|
1601
1531
|
tr.displayName = "PaginationStepTrigger";
|
|
1602
1532
|
const Zi = (e, n, i) => {
|
|
1603
|
-
const [
|
|
1533
|
+
const [o, a] = er([]), [r, t] = er(0);
|
|
1604
1534
|
return _e(() => {
|
|
1605
|
-
const
|
|
1606
|
-
t(
|
|
1535
|
+
const p = Math.ceil(e / n);
|
|
1536
|
+
t(p), a(Hi(p, i));
|
|
1607
1537
|
}, [e, n, i]), {
|
|
1608
|
-
pages:
|
|
1538
|
+
pages: o,
|
|
1609
1539
|
numberOfPages: r
|
|
1610
1540
|
};
|
|
1611
1541
|
};
|
|
@@ -1615,59 +1545,59 @@ function Hi(e, n) {
|
|
|
1615
1545
|
const i = [1, 2, 3];
|
|
1616
1546
|
if (i.includes(n))
|
|
1617
1547
|
return [...i, 4, e];
|
|
1618
|
-
const
|
|
1619
|
-
return
|
|
1548
|
+
const o = [e - 2, e - 1, e];
|
|
1549
|
+
return o.includes(n) ? [1, e - 3, ...o] : [1, n - 1, n, n + 1, e];
|
|
1620
1550
|
}
|
|
1621
|
-
const S = z.bind(Be),
|
|
1551
|
+
const S = z.bind(Be), h = "purpur-pagination", Fi = A(
|
|
1622
1552
|
({
|
|
1623
1553
|
["data-testid"]: e = "purpur-pagination",
|
|
1624
1554
|
linkElement: n = "a",
|
|
1625
1555
|
asLink: i,
|
|
1626
|
-
availablePageSizes:
|
|
1556
|
+
availablePageSizes: o,
|
|
1627
1557
|
className: a,
|
|
1628
1558
|
currentPage: r = 1,
|
|
1629
1559
|
hrefGetter: t,
|
|
1630
|
-
navigationFunction:
|
|
1560
|
+
navigationFunction: p,
|
|
1631
1561
|
nextButtonAriaLabel: g,
|
|
1632
1562
|
nextButtonText: c,
|
|
1633
|
-
onPageChange:
|
|
1563
|
+
onPageChange: f,
|
|
1634
1564
|
outOfLabel: u,
|
|
1635
1565
|
pageSelectorId: x,
|
|
1636
|
-
pageSelectorLabel:
|
|
1566
|
+
pageSelectorLabel: d,
|
|
1637
1567
|
pageSize: y = 10,
|
|
1638
1568
|
pageSizeLabel: O,
|
|
1639
1569
|
previousButtonAriaLabel: $,
|
|
1640
1570
|
previousButtonText: w,
|
|
1641
|
-
stepNumberPrefix:
|
|
1642
|
-
totalItems:
|
|
1571
|
+
stepNumberPrefix: C,
|
|
1572
|
+
totalItems: P,
|
|
1643
1573
|
truncationSeparatorAriaLabel: q,
|
|
1644
1574
|
...ne
|
|
1645
1575
|
}, ae) => {
|
|
1646
|
-
const pe = S(a,
|
|
1647
|
-
|
|
1648
|
-
}, se = (
|
|
1649
|
-
oe(
|
|
1650
|
-
}, ue = (
|
|
1651
|
-
|
|
1576
|
+
const pe = S(a, h), [Q, oe] = er(y), { pages: U, numberOfPages: k } = Zi(P, Q, r), D = !w && !c, V = (j) => {
|
|
1577
|
+
f?.({ currentPage: j, pageSize: y });
|
|
1578
|
+
}, se = (j) => t?.({ page: j, pageSize: y }) ?? "", le = (j) => {
|
|
1579
|
+
oe(j), f?.({ currentPage: 1, pageSize: j });
|
|
1580
|
+
}, ue = (j, sr) => {
|
|
1581
|
+
p ? p({ currentPage: j, pageSize: Q, url: sr }) : Zr(sr);
|
|
1652
1582
|
}, W = i ? { asLink: !0, hrefGetter: se } : {
|
|
1653
1583
|
asLink: void 0,
|
|
1654
1584
|
hrefGetter: void 0
|
|
1655
1585
|
}, ge = i ? "nav" : "div";
|
|
1656
|
-
return k ? /* @__PURE__ */ s(ge, { className: pe, "data-testid": e, ref: ae, ...ne, children: /* @__PURE__ */
|
|
1586
|
+
return k ? /* @__PURE__ */ s(ge, { className: pe, "data-testid": e, ref: ae, ...ne, children: /* @__PURE__ */ v(
|
|
1657
1587
|
"div",
|
|
1658
1588
|
{
|
|
1659
|
-
className: S(`${
|
|
1660
|
-
[`${
|
|
1589
|
+
className: S(`${h}__pagination-container`, {
|
|
1590
|
+
[`${h}__pagination-container--with-page-size-select`]: !!o
|
|
1661
1591
|
}),
|
|
1662
1592
|
children: [
|
|
1663
|
-
/* @__PURE__ */
|
|
1664
|
-
/* @__PURE__ */
|
|
1593
|
+
/* @__PURE__ */ v("div", { className: S(`${h}__page-navigation-container`), children: [
|
|
1594
|
+
/* @__PURE__ */ v(
|
|
1665
1595
|
tr,
|
|
1666
1596
|
{
|
|
1667
1597
|
...W,
|
|
1668
1598
|
linkElement: n,
|
|
1669
1599
|
"aria-label": $,
|
|
1670
|
-
className: S(`${
|
|
1600
|
+
className: S(`${h}__step-trigger`),
|
|
1671
1601
|
"data-testid": `${e}-previous-step-trigger`,
|
|
1672
1602
|
disabled: r === 1,
|
|
1673
1603
|
onPageChange: V,
|
|
@@ -1678,23 +1608,23 @@ const S = z.bind(Be), v = "purpur-pagination", Fi = A(
|
|
|
1678
1608
|
/* @__PURE__ */ s(
|
|
1679
1609
|
"span",
|
|
1680
1610
|
{
|
|
1681
|
-
className: S(`${
|
|
1682
|
-
[`${
|
|
1611
|
+
className: S(`${h}__step-trigger-label`, {
|
|
1612
|
+
[`${h}__step-trigger-label--not-icon-only`]: !D
|
|
1683
1613
|
}),
|
|
1684
1614
|
children: w
|
|
1685
1615
|
}
|
|
1686
1616
|
),
|
|
1687
|
-
r !== 1 && /* @__PURE__ */ s(R, { "data-testid": `${e}-previous-step-trigger-hidden-text`, children: `${
|
|
1617
|
+
r !== 1 && /* @__PURE__ */ s(R, { "data-testid": `${e}-previous-step-trigger-hidden-text`, children: `${C} ${r - 1}` })
|
|
1688
1618
|
]
|
|
1689
1619
|
}
|
|
1690
1620
|
),
|
|
1691
|
-
/* @__PURE__ */
|
|
1621
|
+
/* @__PURE__ */ v("div", { className: S(`${h}__page-trigger-container`), children: [
|
|
1692
1622
|
/* @__PURE__ */ s(
|
|
1693
1623
|
Ir,
|
|
1694
1624
|
{
|
|
1695
1625
|
...W,
|
|
1696
|
-
className: S(`${
|
|
1697
|
-
[`${
|
|
1626
|
+
className: S(`${h}__page-selector`, {
|
|
1627
|
+
[`${h}__page-selector--visible`]: U.length > 3
|
|
1698
1628
|
}),
|
|
1699
1629
|
currentPage: r,
|
|
1700
1630
|
"data-testid": `${e}-page-selector`,
|
|
@@ -1703,7 +1633,7 @@ const S = z.bind(Be), v = "purpur-pagination", Fi = A(
|
|
|
1703
1633
|
onPageChange: V,
|
|
1704
1634
|
outOfLabel: u,
|
|
1705
1635
|
pageSelectorId: x,
|
|
1706
|
-
pageSelectorLabel:
|
|
1636
|
+
pageSelectorLabel: d
|
|
1707
1637
|
}
|
|
1708
1638
|
),
|
|
1709
1639
|
/* @__PURE__ */ s(
|
|
@@ -1711,25 +1641,25 @@ const S = z.bind(Be), v = "purpur-pagination", Fi = A(
|
|
|
1711
1641
|
{
|
|
1712
1642
|
...W,
|
|
1713
1643
|
linkElement: n,
|
|
1714
|
-
className: S(`${
|
|
1715
|
-
[`${
|
|
1644
|
+
className: S(`${h}__pages`, {
|
|
1645
|
+
[`${h}__pages--visible`]: U.length <= 3
|
|
1716
1646
|
}),
|
|
1717
1647
|
currentPage: r,
|
|
1718
1648
|
"data-testid": `${e}-pages`,
|
|
1719
|
-
stepNumberPrefix:
|
|
1649
|
+
stepNumberPrefix: C,
|
|
1720
1650
|
onPageChange: V,
|
|
1721
1651
|
truncationSeparatorAriaLabel: q,
|
|
1722
|
-
pages:
|
|
1652
|
+
pages: U
|
|
1723
1653
|
}
|
|
1724
1654
|
)
|
|
1725
1655
|
] }),
|
|
1726
|
-
/* @__PURE__ */
|
|
1656
|
+
/* @__PURE__ */ v(
|
|
1727
1657
|
tr,
|
|
1728
1658
|
{
|
|
1729
1659
|
...W,
|
|
1730
1660
|
linkElement: n,
|
|
1731
1661
|
"aria-label": g,
|
|
1732
|
-
className: S(`${
|
|
1662
|
+
className: S(`${h}__step-trigger`),
|
|
1733
1663
|
"data-testid": `${e}-next-step-trigger`,
|
|
1734
1664
|
disabled: r === k,
|
|
1735
1665
|
onPageChange: V,
|
|
@@ -1739,27 +1669,27 @@ const S = z.bind(Be), v = "purpur-pagination", Fi = A(
|
|
|
1739
1669
|
/* @__PURE__ */ s(
|
|
1740
1670
|
"span",
|
|
1741
1671
|
{
|
|
1742
|
-
className: S(`${
|
|
1743
|
-
[`${
|
|
1672
|
+
className: S(`${h}__step-trigger-label`, {
|
|
1673
|
+
[`${h}__step-trigger-label--not-icon-only`]: !D
|
|
1744
1674
|
}),
|
|
1745
1675
|
children: c
|
|
1746
1676
|
}
|
|
1747
1677
|
),
|
|
1748
|
-
r !== k && /* @__PURE__ */ s(R, { "data-testid": `${e}-next-step-trigger-hidden-text`, children: `${
|
|
1678
|
+
r !== k && /* @__PURE__ */ s(R, { "data-testid": `${e}-next-step-trigger-hidden-text`, children: `${C} ${r + 1}` }),
|
|
1749
1679
|
/* @__PURE__ */ s(Br, { size: "sm" })
|
|
1750
1680
|
]
|
|
1751
1681
|
}
|
|
1752
1682
|
)
|
|
1753
1683
|
] }),
|
|
1754
|
-
|
|
1684
|
+
o && /* @__PURE__ */ s("div", { className: S(`${h}__page-size-select-container`), children: /* @__PURE__ */ s(
|
|
1755
1685
|
re,
|
|
1756
1686
|
{
|
|
1757
|
-
...i ? { asLink: !0, hrefGetter: t, navigationFunction:
|
|
1758
|
-
availablePageSizes:
|
|
1759
|
-
className: S(`${
|
|
1687
|
+
...i ? { asLink: !0, hrefGetter: t, navigationFunction: p } : { asLink: void 0, hrefGetter: void 0 },
|
|
1688
|
+
availablePageSizes: o,
|
|
1689
|
+
className: S(`${h}__page-size-selector`),
|
|
1760
1690
|
"data-testid": `${e}-page-size-selector`,
|
|
1761
1691
|
onPageSizeChange: le,
|
|
1762
|
-
pageSize:
|
|
1692
|
+
pageSize: Q,
|
|
1763
1693
|
pageSizeLabel: O
|
|
1764
1694
|
}
|
|
1765
1695
|
) })
|