@purpurds/pagination 8.12.1 → 8.13.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 -1
- package/dist/pagination.cjs.js.map +1 -1
- package/dist/pagination.es.js +350 -368
- package/dist/pagination.es.js.map +1 -1
- package/package.json +14 -14
package/dist/pagination.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as s, jsxs as h } from "react/jsx-runtime";
|
|
2
2
|
import * as l from "react";
|
|
3
|
-
import { forwardRef as z, useId as
|
|
3
|
+
import { forwardRef as z, useId as er, useMemo as kr, createElement as se, useState as I, useEffect as le } from "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
function
|
|
5
|
+
function ue(e) {
|
|
6
6
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
7
7
|
}
|
|
8
|
-
var
|
|
9
|
-
function
|
|
10
|
-
return
|
|
8
|
+
var or = { exports: {} }, sr;
|
|
9
|
+
function ge() {
|
|
10
|
+
return sr || (sr = 1, (function(e) {
|
|
11
11
|
(function() {
|
|
12
12
|
var n = {}.hasOwnProperty;
|
|
13
13
|
function i() {
|
|
@@ -36,10 +36,10 @@ function fe() {
|
|
|
36
36
|
}
|
|
37
37
|
e.exports ? (i.default = i, e.exports = i) : window.classNames = i;
|
|
38
38
|
})();
|
|
39
|
-
})(
|
|
39
|
+
})(or)), or.exports;
|
|
40
40
|
}
|
|
41
|
-
var
|
|
42
|
-
const
|
|
41
|
+
var ce = ge();
|
|
42
|
+
const _e = /* @__PURE__ */ ue(ce), de = {
|
|
43
43
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
44
44
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
45
45
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -47,61 +47,61 @@ const ve = /* @__PURE__ */ de(me), he = {
|
|
|
47
47
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
48
48
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
49
49
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
50
|
-
},
|
|
50
|
+
}, fe = _e.bind(de), lr = "purpur-icon", me = "md", ve = (e) => e.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), he = ({ content: e = "", title: n } = {}) => {
|
|
51
51
|
const i = [
|
|
52
52
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
53
53
|
{ name: "fill", value: "currentColor" },
|
|
54
54
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
55
55
|
n ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
56
56
|
], o = n ? `<title>${n}</title>` : "";
|
|
57
|
-
return `<svg ${
|
|
58
|
-
},
|
|
59
|
-
const r =
|
|
60
|
-
content:
|
|
57
|
+
return `<svg ${ve(i)}>${o}${e}</svg>`;
|
|
58
|
+
}, ye = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), tr = ({ svg: e, allyTitle: n, className: i, size: o = me, ...a }) => {
|
|
59
|
+
const r = he({
|
|
60
|
+
content: ye(e.svg),
|
|
61
61
|
title: n
|
|
62
|
-
}), t =
|
|
62
|
+
}), t = fe(lr, `${lr}--${o}`, i);
|
|
63
63
|
return /* @__PURE__ */ s("span", { className: t, dangerouslySetInnerHTML: { __html: r }, ...a });
|
|
64
64
|
};
|
|
65
|
-
|
|
66
|
-
const
|
|
65
|
+
tr.displayName = "Icon";
|
|
66
|
+
const $e = {
|
|
67
67
|
name: "arrow-left",
|
|
68
68
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M3.1 12a.9.9 0 0 1 .264-.636l5.5-5.5a.9.9 0 0 1 1.272 1.272L6.173 11.1H20a.9.9 0 0 1 0 1.8H6.173l3.963 3.964a.9.9 0 1 1-1.272 1.272l-5.5-5.5A.9.9 0 0 1 3.1 12Z" clip-rule="evenodd"/></svg>',
|
|
69
69
|
keywords: ["arrow-left"],
|
|
70
70
|
category: "utility"
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
const
|
|
71
|
+
}, Dr = (e) => /* @__PURE__ */ s(tr, { ...e, svg: $e });
|
|
72
|
+
Dr.displayName = "IconArrowLeft";
|
|
73
|
+
const be = {
|
|
74
74
|
name: "arrow-right",
|
|
75
75
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M20.9 12a.9.9 0 0 1-.264.636l-5.5 5.5a.9.9 0 0 1-1.272-1.272l3.963-3.964H4a.9.9 0 0 1 0-1.8h13.827l-3.963-3.964a.9.9 0 1 1 1.272-1.272l5.5 5.5A.9.9 0 0 1 20.9 12Z" clip-rule="evenodd"/></svg>',
|
|
76
76
|
keywords: ["arrow-right"],
|
|
77
77
|
category: "utility"
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
function
|
|
78
|
+
}, Vr = (e) => /* @__PURE__ */ s(tr, { ...e, svg: be });
|
|
79
|
+
Vr.displayName = "IconArrowRight";
|
|
80
|
+
function ur(e, n) {
|
|
81
81
|
if (typeof e == "function")
|
|
82
82
|
return e(n);
|
|
83
83
|
e != null && (e.current = n);
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function xe(...e) {
|
|
86
86
|
return (n) => {
|
|
87
87
|
let i = !1;
|
|
88
88
|
const o = e.map((a) => {
|
|
89
|
-
const r =
|
|
89
|
+
const r = ur(a, n);
|
|
90
90
|
return !i && typeof r == "function" && (i = !0), r;
|
|
91
91
|
});
|
|
92
92
|
if (i)
|
|
93
93
|
return () => {
|
|
94
94
|
for (let a = 0; a < o.length; a++) {
|
|
95
95
|
const r = o[a];
|
|
96
|
-
typeof r == "function" ? r() :
|
|
96
|
+
typeof r == "function" ? r() : ur(e[a], null);
|
|
97
97
|
}
|
|
98
98
|
};
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
101
|
// @__NO_SIDE_EFFECTS__
|
|
102
|
-
function
|
|
103
|
-
const n = /* @__PURE__ */
|
|
104
|
-
const { children: r, ...t } = o, p = l.Children.toArray(r), g = p.find(
|
|
102
|
+
function we(e) {
|
|
103
|
+
const n = /* @__PURE__ */ Se(e), i = l.forwardRef((o, a) => {
|
|
104
|
+
const { children: r, ...t } = o, p = l.Children.toArray(r), g = p.find(je);
|
|
105
105
|
if (g) {
|
|
106
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
107
|
return /* @__PURE__ */ s(n, { ...t, ref: a, children: l.isValidElement(c) ? l.cloneElement(c, void 0, f) : null });
|
|
@@ -111,22 +111,22 @@ function Ce(e) {
|
|
|
111
111
|
return i.displayName = `${e}.Slot`, i;
|
|
112
112
|
}
|
|
113
113
|
// @__NO_SIDE_EFFECTS__
|
|
114
|
-
function
|
|
114
|
+
function Se(e) {
|
|
115
115
|
const n = l.forwardRef((i, o) => {
|
|
116
116
|
const { children: a, ...r } = i;
|
|
117
117
|
if (l.isValidElement(a)) {
|
|
118
|
-
const t =
|
|
119
|
-
return a.type !== l.Fragment && (p.ref = o ?
|
|
118
|
+
const t = Ce(a), p = Oe(r, a.props);
|
|
119
|
+
return a.type !== l.Fragment && (p.ref = o ? xe(o, t) : t), l.cloneElement(a, p);
|
|
120
120
|
}
|
|
121
121
|
return l.Children.count(a) > 1 ? l.Children.only(null) : null;
|
|
122
122
|
});
|
|
123
123
|
return n.displayName = `${e}.SlotClone`, n;
|
|
124
124
|
}
|
|
125
|
-
var
|
|
126
|
-
function
|
|
127
|
-
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
125
|
+
var Ne = Symbol("radix.slottable");
|
|
126
|
+
function je(e) {
|
|
127
|
+
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Ne;
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function Oe(e, n) {
|
|
130
130
|
const i = { ...n };
|
|
131
131
|
for (const o in n) {
|
|
132
132
|
const a = e[o], r = n[o];
|
|
@@ -136,11 +136,11 @@ function Ae(e, n) {
|
|
|
136
136
|
}
|
|
137
137
|
return { ...e, ...i };
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function Ce(e) {
|
|
140
140
|
let n = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, i = n && "isReactWarning" in n && n.isReactWarning;
|
|
141
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);
|
|
142
142
|
}
|
|
143
|
-
var
|
|
143
|
+
var Pe = [
|
|
144
144
|
"a",
|
|
145
145
|
"button",
|
|
146
146
|
"div",
|
|
@@ -157,15 +157,15 @@ var Ee = [
|
|
|
157
157
|
"span",
|
|
158
158
|
"svg",
|
|
159
159
|
"ul"
|
|
160
|
-
],
|
|
161
|
-
const i = /* @__PURE__ */
|
|
160
|
+
], ze = Pe.reduce((e, n) => {
|
|
161
|
+
const i = /* @__PURE__ */ we(`Primitive.${n}`), o = l.forwardRef((a, r) => {
|
|
162
162
|
const { asChild: t, ...p } = a, g = t ? i : n;
|
|
163
163
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ s(g, { ...p, ref: r });
|
|
164
164
|
});
|
|
165
165
|
return o.displayName = `Primitive.${n}`, { ...e, [n]: o };
|
|
166
|
-
}, {}), qe = "VisuallyHidden",
|
|
166
|
+
}, {}), qe = "VisuallyHidden", Br = l.forwardRef(
|
|
167
167
|
(e, n) => /* @__PURE__ */ s(
|
|
168
|
-
|
|
168
|
+
ze.span,
|
|
169
169
|
{
|
|
170
170
|
...e,
|
|
171
171
|
ref: n,
|
|
@@ -186,16 +186,16 @@ var Ee = [
|
|
|
186
186
|
}
|
|
187
187
|
)
|
|
188
188
|
);
|
|
189
|
-
|
|
190
|
-
var
|
|
191
|
-
const
|
|
192
|
-
function
|
|
189
|
+
Br.displayName = qe;
|
|
190
|
+
var Ae = Br;
|
|
191
|
+
const A = ({ asChild: e, children: n, ...i }) => /* @__PURE__ */ s(Ae, { asChild: e, ...i, children: n });
|
|
192
|
+
function Re(e) {
|
|
193
193
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
194
194
|
}
|
|
195
|
-
var
|
|
196
|
-
var
|
|
197
|
-
function
|
|
198
|
-
return
|
|
195
|
+
var Q = { exports: {} };
|
|
196
|
+
var gr;
|
|
197
|
+
function Me() {
|
|
198
|
+
return gr || (gr = 1, (function(e) {
|
|
199
199
|
(function() {
|
|
200
200
|
var n = {}.hasOwnProperty;
|
|
201
201
|
function i() {
|
|
@@ -224,12 +224,12 @@ function Ve() {
|
|
|
224
224
|
}
|
|
225
225
|
e.exports ? (i.default = i, e.exports = i) : window.classNames = i;
|
|
226
226
|
})();
|
|
227
|
-
})(
|
|
227
|
+
})(Q)), Q.exports;
|
|
228
228
|
}
|
|
229
|
-
var
|
|
230
|
-
const
|
|
229
|
+
var Ee = Me();
|
|
230
|
+
const q = /* @__PURE__ */ Re(Ee), Wr = (e) => {
|
|
231
231
|
window.location.href = e;
|
|
232
|
-
},
|
|
232
|
+
}, ke = {
|
|
233
233
|
"purpur-pagination": "_purpur-pagination_1g3as_1",
|
|
234
234
|
"purpur-pagination__pagination-container": "_purpur-pagination__pagination-container_1g3as_5",
|
|
235
235
|
"purpur-pagination__pagination-container--with-page-size-select": "_purpur-pagination__pagination-container--with-page-size-select_1g3as_12",
|
|
@@ -244,40 +244,31 @@ const A = /* @__PURE__ */ De(We), Zr = (e) => {
|
|
|
244
244
|
"purpur-pagination__page-selector": "_purpur-pagination__page-selector_1g3as_94",
|
|
245
245
|
"purpur-pagination__page-selector--visible": "_purpur-pagination__page-selector--visible_1g3as_97"
|
|
246
246
|
};
|
|
247
|
-
function
|
|
247
|
+
function cr(e, n) {
|
|
248
248
|
if (typeof e == "function")
|
|
249
249
|
return e(n);
|
|
250
250
|
e != null && (e.current = n);
|
|
251
251
|
}
|
|
252
|
-
function
|
|
252
|
+
function De(...e) {
|
|
253
253
|
return (n) => {
|
|
254
254
|
let i = !1;
|
|
255
255
|
const o = e.map((a) => {
|
|
256
|
-
const r =
|
|
256
|
+
const r = cr(a, n);
|
|
257
257
|
return !i && typeof r == "function" && (i = !0), r;
|
|
258
258
|
});
|
|
259
259
|
if (i)
|
|
260
260
|
return () => {
|
|
261
261
|
for (let a = 0; a < o.length; a++) {
|
|
262
262
|
const r = o[a];
|
|
263
|
-
typeof r == "function" ? r() :
|
|
263
|
+
typeof r == "function" ? r() : cr(e[a], null);
|
|
264
264
|
}
|
|
265
265
|
};
|
|
266
266
|
};
|
|
267
267
|
}
|
|
268
|
-
var Ze = Symbol.for("react.lazy"), J = l[" use ".trim().toString()];
|
|
269
|
-
function He(e) {
|
|
270
|
-
return typeof e == "object" && e !== null && "then" in e;
|
|
271
|
-
}
|
|
272
|
-
function Hr(e) {
|
|
273
|
-
return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === Ze && "_payload" in e && He(e._payload);
|
|
274
|
-
}
|
|
275
268
|
// @__NO_SIDE_EFFECTS__
|
|
276
|
-
function
|
|
277
|
-
const n = /* @__PURE__ */
|
|
278
|
-
|
|
279
|
-
Hr(r) && typeof J == "function" && (r = J(r._payload));
|
|
280
|
-
const p = l.Children.toArray(r), g = p.find(Ke);
|
|
269
|
+
function Ve(e) {
|
|
270
|
+
const n = /* @__PURE__ */ Be(e), i = l.forwardRef((o, a) => {
|
|
271
|
+
const { children: r, ...t } = o, p = l.Children.toArray(r), g = p.find(Ze);
|
|
281
272
|
if (g) {
|
|
282
273
|
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
274
|
return /* @__PURE__ */ s(n, { ...t, ref: a, children: l.isValidElement(c) ? l.cloneElement(c, void 0, f) : null });
|
|
@@ -287,22 +278,22 @@ function Fe(e) {
|
|
|
287
278
|
return i.displayName = `${e}.Slot`, i;
|
|
288
279
|
}
|
|
289
280
|
// @__NO_SIDE_EFFECTS__
|
|
290
|
-
function
|
|
281
|
+
function Be(e) {
|
|
291
282
|
const n = l.forwardRef((i, o) => {
|
|
292
|
-
|
|
293
|
-
if (
|
|
294
|
-
const t =
|
|
295
|
-
return a.type !== l.Fragment && (p.ref = o ?
|
|
283
|
+
const { children: a, ...r } = i;
|
|
284
|
+
if (l.isValidElement(a)) {
|
|
285
|
+
const t = Le(a), p = He(r, a.props);
|
|
286
|
+
return a.type !== l.Fragment && (p.ref = o ? De(o, t) : t), l.cloneElement(a, p);
|
|
296
287
|
}
|
|
297
288
|
return l.Children.count(a) > 1 ? l.Children.only(null) : null;
|
|
298
289
|
});
|
|
299
290
|
return n.displayName = `${e}.SlotClone`, n;
|
|
300
291
|
}
|
|
301
|
-
var
|
|
302
|
-
function
|
|
303
|
-
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
292
|
+
var We = Symbol("radix.slottable");
|
|
293
|
+
function Ze(e) {
|
|
294
|
+
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === We;
|
|
304
295
|
}
|
|
305
|
-
function
|
|
296
|
+
function He(e, n) {
|
|
306
297
|
const i = { ...n };
|
|
307
298
|
for (const o in n) {
|
|
308
299
|
const a = e[o], r = n[o];
|
|
@@ -313,11 +304,11 @@ function Qe(e, n) {
|
|
|
313
304
|
}
|
|
314
305
|
return { ...e, ...i };
|
|
315
306
|
}
|
|
316
|
-
function
|
|
307
|
+
function Le(e) {
|
|
317
308
|
let n = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, i = n && "isReactWarning" in n && n.isReactWarning;
|
|
318
309
|
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);
|
|
319
310
|
}
|
|
320
|
-
var
|
|
311
|
+
var Fe = [
|
|
321
312
|
"a",
|
|
322
313
|
"button",
|
|
323
314
|
"div",
|
|
@@ -335,14 +326,14 @@ var Xe = [
|
|
|
335
326
|
"span",
|
|
336
327
|
"svg",
|
|
337
328
|
"ul"
|
|
338
|
-
],
|
|
339
|
-
const i = /* @__PURE__ */
|
|
329
|
+
], Ge = Fe.reduce((e, n) => {
|
|
330
|
+
const i = /* @__PURE__ */ Ve(`Primitive.${n}`), o = l.forwardRef((a, r) => {
|
|
340
331
|
const { asChild: t, ...p } = a, g = t ? i : n;
|
|
341
332
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ s(g, { ...p, ref: r });
|
|
342
333
|
});
|
|
343
334
|
return o.displayName = `Primitive.${n}`, { ...e, [n]: o };
|
|
344
|
-
}, {}),
|
|
345
|
-
|
|
335
|
+
}, {}), Je = "Label", Zr = l.forwardRef((e, n) => /* @__PURE__ */ s(
|
|
336
|
+
Ge.label,
|
|
346
337
|
{
|
|
347
338
|
...e,
|
|
348
339
|
ref: n,
|
|
@@ -351,14 +342,14 @@ var Xe = [
|
|
|
351
342
|
}
|
|
352
343
|
}
|
|
353
344
|
));
|
|
354
|
-
|
|
355
|
-
var
|
|
356
|
-
function
|
|
345
|
+
Zr.displayName = Je;
|
|
346
|
+
var Ke = Zr;
|
|
347
|
+
function Qe(e) {
|
|
357
348
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
358
349
|
}
|
|
359
|
-
var
|
|
360
|
-
function
|
|
361
|
-
return
|
|
350
|
+
var _r = { exports: {} }, dr;
|
|
351
|
+
function Ue() {
|
|
352
|
+
return dr || (dr = 1, (function(e) {
|
|
362
353
|
(function() {
|
|
363
354
|
var n = {}.hasOwnProperty;
|
|
364
355
|
function i() {
|
|
@@ -387,32 +378,32 @@ function et() {
|
|
|
387
378
|
}
|
|
388
379
|
e.exports ? (i.default = i, e.exports = i) : window.classNames = i;
|
|
389
380
|
})();
|
|
390
|
-
})(
|
|
381
|
+
})(_r)), _r.exports;
|
|
391
382
|
}
|
|
392
|
-
var
|
|
393
|
-
const
|
|
383
|
+
var Xe = Ue();
|
|
384
|
+
const Ye = /* @__PURE__ */ Qe(Xe), Te = {
|
|
394
385
|
"purpur-label": "_purpur-label_1x80u_1",
|
|
395
386
|
"purpur-label--negative": "_purpur-label--negative_1x80u_8",
|
|
396
387
|
"purpur-label--disabled": "_purpur-label--disabled_1x80u_11"
|
|
397
|
-
},
|
|
388
|
+
}, Ie = Ye.bind(Te), U = "purpur-label", Hr = ({
|
|
398
389
|
children: e,
|
|
399
390
|
className: n,
|
|
400
391
|
disabled: i,
|
|
401
392
|
negative: o = !1,
|
|
402
393
|
...a
|
|
403
394
|
}) => {
|
|
404
|
-
const r =
|
|
405
|
-
[`${
|
|
406
|
-
[`${
|
|
395
|
+
const r = Ie(n, U, {
|
|
396
|
+
[`${U}--disabled`]: i,
|
|
397
|
+
[`${U}--negative`]: o
|
|
407
398
|
});
|
|
408
|
-
return /* @__PURE__ */ s(
|
|
399
|
+
return /* @__PURE__ */ s(Ke, { className: r, ...a, children: e });
|
|
409
400
|
};
|
|
410
|
-
function
|
|
401
|
+
function rt(e) {
|
|
411
402
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
412
403
|
}
|
|
413
|
-
var
|
|
414
|
-
function
|
|
415
|
-
return
|
|
404
|
+
var fr = { exports: {} }, mr;
|
|
405
|
+
function et() {
|
|
406
|
+
return mr || (mr = 1, (function(e) {
|
|
416
407
|
(function() {
|
|
417
408
|
var n = {}.hasOwnProperty;
|
|
418
409
|
function i() {
|
|
@@ -441,10 +432,10 @@ function ot() {
|
|
|
441
432
|
}
|
|
442
433
|
e.exports ? (i.default = i, e.exports = i) : window.classNames = i;
|
|
443
434
|
})();
|
|
444
|
-
})(
|
|
435
|
+
})(fr)), fr.exports;
|
|
445
436
|
}
|
|
446
|
-
var
|
|
447
|
-
const
|
|
437
|
+
var tt = et();
|
|
438
|
+
const it = /* @__PURE__ */ rt(tt), nt = {
|
|
448
439
|
"purpur-paragraph": "_purpur-paragraph_1vz75_1",
|
|
449
440
|
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_1vz75_7",
|
|
450
441
|
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1vz75_10",
|
|
@@ -460,31 +451,31 @@ const lt = /* @__PURE__ */ pt(st), ut = {
|
|
|
460
451
|
"purpur-paragraph--additional-100-bold": "_purpur-paragraph--additional-100-bold_1vz75_67",
|
|
461
452
|
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1vz75_74",
|
|
462
453
|
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1vz75_82"
|
|
463
|
-
},
|
|
454
|
+
}, at = it.bind(nt), pt = {
|
|
464
455
|
PARAGRAPH100: "paragraph-100"
|
|
465
|
-
},
|
|
456
|
+
}, R = "purpur-paragraph", ir = ({
|
|
466
457
|
children: e,
|
|
467
458
|
className: n,
|
|
468
459
|
disabled: i,
|
|
469
460
|
enableHyphenation: o = !1,
|
|
470
461
|
negative: a = !1,
|
|
471
|
-
variant: r =
|
|
462
|
+
variant: r = pt.PARAGRAPH100,
|
|
472
463
|
...t
|
|
473
464
|
}) => {
|
|
474
|
-
const p =
|
|
475
|
-
[`${
|
|
476
|
-
[`${
|
|
477
|
-
[`${
|
|
465
|
+
const p = at(n, R, `${R}--${r}`, {
|
|
466
|
+
[`${R}--hyphens`]: o,
|
|
467
|
+
[`${R}--disabled`]: i,
|
|
468
|
+
[`${R}--negative`]: a
|
|
478
469
|
});
|
|
479
470
|
return /* @__PURE__ */ s("p", { ...t, className: p, children: e });
|
|
480
471
|
};
|
|
481
|
-
|
|
482
|
-
function
|
|
472
|
+
ir.displayName = "Paragraph";
|
|
473
|
+
function ot(e) {
|
|
483
474
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
484
475
|
}
|
|
485
|
-
var
|
|
486
|
-
function
|
|
487
|
-
return
|
|
476
|
+
var vr = { exports: {} }, hr;
|
|
477
|
+
function st() {
|
|
478
|
+
return hr || (hr = 1, (function(e) {
|
|
488
479
|
(function() {
|
|
489
480
|
var n = {}.hasOwnProperty;
|
|
490
481
|
function i() {
|
|
@@ -513,10 +504,10 @@ function dt() {
|
|
|
513
504
|
}
|
|
514
505
|
e.exports ? (i.default = i, e.exports = i) : window.classNames = i;
|
|
515
506
|
})();
|
|
516
|
-
})(
|
|
507
|
+
})(vr)), vr.exports;
|
|
517
508
|
}
|
|
518
|
-
var
|
|
519
|
-
const
|
|
509
|
+
var lt = st();
|
|
510
|
+
const ut = /* @__PURE__ */ ot(lt), gt = {
|
|
520
511
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
521
512
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
522
513
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -524,34 +515,34 @@ const mt = /* @__PURE__ */ _t(ft), vt = {
|
|
|
524
515
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
525
516
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
526
517
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
527
|
-
},
|
|
518
|
+
}, ct = ut.bind(gt), yr = "purpur-icon", _t = "md", dt = (e) => e.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), ft = ({ content: e = "", title: n } = {}) => {
|
|
528
519
|
const i = [
|
|
529
520
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
530
521
|
{ name: "fill", value: "currentColor" },
|
|
531
522
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
532
523
|
n ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
533
524
|
], o = n ? `<title>${n}</title>` : "";
|
|
534
|
-
return `<svg ${
|
|
535
|
-
},
|
|
536
|
-
const r =
|
|
537
|
-
content:
|
|
525
|
+
return `<svg ${dt(i)}>${o}${e}</svg>`;
|
|
526
|
+
}, mt = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Lr = ({ svg: e, allyTitle: n, className: i, size: o = _t, ...a }) => {
|
|
527
|
+
const r = ft({
|
|
528
|
+
content: mt(e.svg),
|
|
538
529
|
title: n
|
|
539
|
-
}), t =
|
|
530
|
+
}), t = ct(yr, `${yr}--${o}`, i);
|
|
540
531
|
return /* @__PURE__ */ s("span", { className: t, dangerouslySetInnerHTML: { __html: r }, ...a });
|
|
541
532
|
};
|
|
542
|
-
|
|
543
|
-
const
|
|
533
|
+
Lr.displayName = "Icon";
|
|
534
|
+
const vt = {
|
|
544
535
|
name: "error-filled",
|
|
545
536
|
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>',
|
|
546
537
|
keywords: ["error-filled"],
|
|
547
538
|
category: "status"
|
|
548
539
|
};
|
|
549
|
-
function
|
|
540
|
+
function ht(e) {
|
|
550
541
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
551
542
|
}
|
|
552
|
-
var
|
|
553
|
-
function
|
|
554
|
-
return
|
|
543
|
+
var $r = { exports: {} }, br;
|
|
544
|
+
function yt() {
|
|
545
|
+
return br || (br = 1, (function(e) {
|
|
555
546
|
(function() {
|
|
556
547
|
var n = {}.hasOwnProperty;
|
|
557
548
|
function i() {
|
|
@@ -580,14 +571,14 @@ function Nt() {
|
|
|
580
571
|
}
|
|
581
572
|
e.exports ? (i.default = i, e.exports = i) : window.classNames = i;
|
|
582
573
|
})();
|
|
583
|
-
})(
|
|
574
|
+
})($r)), $r.exports;
|
|
584
575
|
}
|
|
585
|
-
var
|
|
586
|
-
const
|
|
576
|
+
var $t = yt();
|
|
577
|
+
const bt = /* @__PURE__ */ ht($t), xt = {
|
|
587
578
|
"purpur-field-error-text": "_purpur-field-error-text_u1cy2_1",
|
|
588
579
|
"purpur-field-error-text--negative": "_purpur-field-error-text--negative_u1cy2_11",
|
|
589
580
|
"purpur-field-error-text__icon": "_purpur-field-error-text__icon_u1cy2_14"
|
|
590
|
-
},
|
|
581
|
+
}, xr = bt.bind(xt), X = "purpur-field-error-text", wt = ({
|
|
591
582
|
children: e,
|
|
592
583
|
className: n,
|
|
593
584
|
negative: i = !1,
|
|
@@ -596,24 +587,24 @@ const Ct = /* @__PURE__ */ St(Ot), Pt = {
|
|
|
596
587
|
}) => /* @__PURE__ */ h(
|
|
597
588
|
"div",
|
|
598
589
|
{
|
|
599
|
-
className:
|
|
600
|
-
[`${
|
|
590
|
+
className: xr(n, X, {
|
|
591
|
+
[`${X}--negative`]: i
|
|
601
592
|
}),
|
|
602
593
|
"aria-live": "assertive",
|
|
603
594
|
"aria-relevant": o,
|
|
604
595
|
...a,
|
|
605
596
|
children: [
|
|
606
|
-
/* @__PURE__ */ s(
|
|
597
|
+
/* @__PURE__ */ s(Lr, { svg: vt, size: "xs", className: xr(`${X}__icon`) }),
|
|
607
598
|
e
|
|
608
599
|
]
|
|
609
600
|
}
|
|
610
601
|
);
|
|
611
|
-
function
|
|
602
|
+
function St(e) {
|
|
612
603
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
613
604
|
}
|
|
614
|
-
var
|
|
615
|
-
function
|
|
616
|
-
return
|
|
605
|
+
var wr = { exports: {} }, Sr;
|
|
606
|
+
function Nt() {
|
|
607
|
+
return Sr || (Sr = 1, (function(e) {
|
|
617
608
|
(function() {
|
|
618
609
|
var n = {}.hasOwnProperty;
|
|
619
610
|
function i() {
|
|
@@ -642,14 +633,14 @@ function At() {
|
|
|
642
633
|
}
|
|
643
634
|
e.exports ? (i.default = i, e.exports = i) : window.classNames = i;
|
|
644
635
|
})();
|
|
645
|
-
})(
|
|
636
|
+
})(wr)), wr.exports;
|
|
646
637
|
}
|
|
647
|
-
var
|
|
648
|
-
const
|
|
638
|
+
var jt = Nt();
|
|
639
|
+
const Ot = /* @__PURE__ */ St(jt), Ct = {
|
|
649
640
|
"purpur-field-helper-text": "_purpur-field-helper-text_11nsh_1",
|
|
650
641
|
"purpur-field-helper-text--disabled": "_purpur-field-helper-text--disabled_11nsh_9",
|
|
651
642
|
"purpur-field-helper-text--negative": "_purpur-field-helper-text--negative_11nsh_12"
|
|
652
|
-
},
|
|
643
|
+
}, Pt = Ot.bind(Ct), Y = "purpur-field-helper-text", zt = ({
|
|
653
644
|
children: e,
|
|
654
645
|
className: n,
|
|
655
646
|
disabled: i,
|
|
@@ -657,18 +648,18 @@ const Et = /* @__PURE__ */ zt(Rt), Mt = {
|
|
|
657
648
|
negative: a,
|
|
658
649
|
...r
|
|
659
650
|
}) => {
|
|
660
|
-
const t =
|
|
661
|
-
[`${
|
|
662
|
-
[`${
|
|
651
|
+
const t = Pt(n, Y, {
|
|
652
|
+
[`${Y}--disabled`]: i,
|
|
653
|
+
[`${Y}--negative`]: a
|
|
663
654
|
});
|
|
664
655
|
return /* @__PURE__ */ s("span", { id: o, className: t, ...r, children: e });
|
|
665
656
|
};
|
|
666
|
-
function
|
|
657
|
+
function qt(e) {
|
|
667
658
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
668
659
|
}
|
|
669
|
-
var
|
|
670
|
-
function
|
|
671
|
-
return
|
|
660
|
+
var Nr = { exports: {} }, jr;
|
|
661
|
+
function At() {
|
|
662
|
+
return jr || (jr = 1, (function(e) {
|
|
672
663
|
(function() {
|
|
673
664
|
var n = {}.hasOwnProperty;
|
|
674
665
|
function i() {
|
|
@@ -697,10 +688,10 @@ function Vt() {
|
|
|
697
688
|
}
|
|
698
689
|
e.exports ? (i.default = i, e.exports = i) : window.classNames = i;
|
|
699
690
|
})();
|
|
700
|
-
})(
|
|
691
|
+
})(Nr)), Nr.exports;
|
|
701
692
|
}
|
|
702
|
-
var
|
|
703
|
-
const
|
|
693
|
+
var Rt = At();
|
|
694
|
+
const Mt = /* @__PURE__ */ qt(Rt), Et = {
|
|
704
695
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
705
696
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
706
697
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -708,70 +699,61 @@ const Bt = /* @__PURE__ */ Dt(Wt), Lt = {
|
|
|
708
699
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
709
700
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
710
701
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
711
|
-
},
|
|
702
|
+
}, kt = Mt.bind(Et), Or = "purpur-icon", Dt = "md", Vt = (e) => e.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), Bt = ({ content: e = "", title: n } = {}) => {
|
|
712
703
|
const i = [
|
|
713
704
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
714
705
|
{ name: "fill", value: "currentColor" },
|
|
715
706
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
716
707
|
n ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
717
708
|
], o = n ? `<title>${n}</title>` : "";
|
|
718
|
-
return `<svg ${
|
|
719
|
-
},
|
|
720
|
-
const r =
|
|
721
|
-
content:
|
|
709
|
+
return `<svg ${Vt(i)}>${o}${e}</svg>`;
|
|
710
|
+
}, Wt = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), nr = ({ svg: e, allyTitle: n, className: i, size: o = Dt, ...a }) => {
|
|
711
|
+
const r = Bt({
|
|
712
|
+
content: Wt(e.svg),
|
|
722
713
|
title: n
|
|
723
|
-
}), t =
|
|
714
|
+
}), t = kt(Or, `${Or}--${o}`, i);
|
|
724
715
|
return /* @__PURE__ */ s("span", { className: t, dangerouslySetInnerHTML: { __html: r }, ...a });
|
|
725
716
|
};
|
|
726
|
-
|
|
727
|
-
const
|
|
717
|
+
nr.displayName = "Icon";
|
|
718
|
+
const Zt = {
|
|
728
719
|
name: "check-circle-filled",
|
|
729
720
|
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>',
|
|
730
721
|
keywords: ["check-circle-filled"],
|
|
731
722
|
category: "status"
|
|
732
|
-
},
|
|
733
|
-
|
|
734
|
-
const
|
|
723
|
+
}, Fr = (e) => /* @__PURE__ */ s(nr, { ...e, svg: Zt });
|
|
724
|
+
Fr.displayName = "IconCheckCircleFilled";
|
|
725
|
+
const Ht = {
|
|
735
726
|
name: "chevron-down",
|
|
736
727
|
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>',
|
|
737
728
|
keywords: ["chevron-down"],
|
|
738
729
|
category: "utility"
|
|
739
|
-
},
|
|
740
|
-
|
|
741
|
-
function
|
|
730
|
+
}, Gr = (e) => /* @__PURE__ */ s(nr, { ...e, svg: Ht });
|
|
731
|
+
Gr.displayName = "IconChevronDown";
|
|
732
|
+
function Cr(e, n) {
|
|
742
733
|
if (typeof e == "function")
|
|
743
734
|
return e(n);
|
|
744
735
|
e != null && (e.current = n);
|
|
745
736
|
}
|
|
746
|
-
function
|
|
737
|
+
function Lt(...e) {
|
|
747
738
|
return (n) => {
|
|
748
739
|
let i = !1;
|
|
749
740
|
const o = e.map((a) => {
|
|
750
|
-
const r =
|
|
741
|
+
const r = Cr(a, n);
|
|
751
742
|
return !i && typeof r == "function" && (i = !0), r;
|
|
752
743
|
});
|
|
753
744
|
if (i)
|
|
754
745
|
return () => {
|
|
755
746
|
for (let a = 0; a < o.length; a++) {
|
|
756
747
|
const r = o[a];
|
|
757
|
-
typeof r == "function" ? r() :
|
|
748
|
+
typeof r == "function" ? r() : Cr(e[a], null);
|
|
758
749
|
}
|
|
759
750
|
};
|
|
760
751
|
};
|
|
761
752
|
}
|
|
762
|
-
var Xt = Symbol.for("react.lazy"), K = l[" use ".trim().toString()];
|
|
763
|
-
function Yt(e) {
|
|
764
|
-
return typeof e == "object" && e !== null && "then" in e;
|
|
765
|
-
}
|
|
766
|
-
function Ur(e) {
|
|
767
|
-
return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === Xt && "_payload" in e && Yt(e._payload);
|
|
768
|
-
}
|
|
769
753
|
// @__NO_SIDE_EFFECTS__
|
|
770
|
-
function
|
|
771
|
-
const n = /* @__PURE__ */
|
|
772
|
-
|
|
773
|
-
Ur(r) && typeof K == "function" && (r = K(r._payload));
|
|
774
|
-
const p = l.Children.toArray(r), g = p.find(ei);
|
|
754
|
+
function Ft(e) {
|
|
755
|
+
const n = /* @__PURE__ */ Gt(e), i = l.forwardRef((o, a) => {
|
|
756
|
+
const { children: r, ...t } = o, p = l.Children.toArray(r), g = p.find(Kt);
|
|
775
757
|
if (g) {
|
|
776
758
|
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);
|
|
777
759
|
return /* @__PURE__ */ s(n, { ...t, ref: a, children: l.isValidElement(c) ? l.cloneElement(c, void 0, f) : null });
|
|
@@ -781,22 +763,22 @@ function Tt(e) {
|
|
|
781
763
|
return i.displayName = `${e}.Slot`, i;
|
|
782
764
|
}
|
|
783
765
|
// @__NO_SIDE_EFFECTS__
|
|
784
|
-
function
|
|
766
|
+
function Gt(e) {
|
|
785
767
|
const n = l.forwardRef((i, o) => {
|
|
786
|
-
|
|
787
|
-
if (
|
|
788
|
-
const t =
|
|
789
|
-
return a.type !== l.Fragment && (p.ref = o ?
|
|
768
|
+
const { children: a, ...r } = i;
|
|
769
|
+
if (l.isValidElement(a)) {
|
|
770
|
+
const t = Ut(a), p = Qt(r, a.props);
|
|
771
|
+
return a.type !== l.Fragment && (p.ref = o ? Lt(o, t) : t), l.cloneElement(a, p);
|
|
790
772
|
}
|
|
791
773
|
return l.Children.count(a) > 1 ? l.Children.only(null) : null;
|
|
792
774
|
});
|
|
793
775
|
return n.displayName = `${e}.SlotClone`, n;
|
|
794
776
|
}
|
|
795
|
-
var
|
|
796
|
-
function
|
|
797
|
-
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
777
|
+
var Jt = Symbol("radix.slottable");
|
|
778
|
+
function Kt(e) {
|
|
779
|
+
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Jt;
|
|
798
780
|
}
|
|
799
|
-
function
|
|
781
|
+
function Qt(e, n) {
|
|
800
782
|
const i = { ...n };
|
|
801
783
|
for (const o in n) {
|
|
802
784
|
const a = e[o], r = n[o];
|
|
@@ -807,11 +789,11 @@ function ti(e, n) {
|
|
|
807
789
|
}
|
|
808
790
|
return { ...e, ...i };
|
|
809
791
|
}
|
|
810
|
-
function
|
|
792
|
+
function Ut(e) {
|
|
811
793
|
let n = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, i = n && "isReactWarning" in n && n.isReactWarning;
|
|
812
794
|
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);
|
|
813
795
|
}
|
|
814
|
-
var
|
|
796
|
+
var Xt = [
|
|
815
797
|
"a",
|
|
816
798
|
"button",
|
|
817
799
|
"div",
|
|
@@ -829,14 +811,14 @@ var ni = [
|
|
|
829
811
|
"span",
|
|
830
812
|
"svg",
|
|
831
813
|
"ul"
|
|
832
|
-
],
|
|
833
|
-
const i = /* @__PURE__ */
|
|
814
|
+
], Yt = Xt.reduce((e, n) => {
|
|
815
|
+
const i = /* @__PURE__ */ Ft(`Primitive.${n}`), o = l.forwardRef((a, r) => {
|
|
834
816
|
const { asChild: t, ...p } = a, g = t ? i : n;
|
|
835
817
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ s(g, { ...p, ref: r });
|
|
836
818
|
});
|
|
837
819
|
return o.displayName = `Primitive.${n}`, { ...e, [n]: o };
|
|
838
|
-
}, {}),
|
|
839
|
-
|
|
820
|
+
}, {}), Tt = "Label", Jr = l.forwardRef((e, n) => /* @__PURE__ */ s(
|
|
821
|
+
Yt.label,
|
|
840
822
|
{
|
|
841
823
|
...e,
|
|
842
824
|
ref: n,
|
|
@@ -845,14 +827,14 @@ var ni = [
|
|
|
845
827
|
}
|
|
846
828
|
}
|
|
847
829
|
));
|
|
848
|
-
|
|
849
|
-
var
|
|
850
|
-
function
|
|
830
|
+
Jr.displayName = Tt;
|
|
831
|
+
var It = Jr;
|
|
832
|
+
function ri(e) {
|
|
851
833
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
852
834
|
}
|
|
853
|
-
var
|
|
854
|
-
function
|
|
855
|
-
return
|
|
835
|
+
var Pr = { exports: {} }, zr;
|
|
836
|
+
function ei() {
|
|
837
|
+
return zr || (zr = 1, (function(e) {
|
|
856
838
|
(function() {
|
|
857
839
|
var n = {}.hasOwnProperty;
|
|
858
840
|
function i() {
|
|
@@ -881,32 +863,32 @@ function li() {
|
|
|
881
863
|
}
|
|
882
864
|
e.exports ? (i.default = i, e.exports = i) : window.classNames = i;
|
|
883
865
|
})();
|
|
884
|
-
})(
|
|
866
|
+
})(Pr)), Pr.exports;
|
|
885
867
|
}
|
|
886
|
-
var
|
|
887
|
-
const
|
|
868
|
+
var ti = ei();
|
|
869
|
+
const ii = /* @__PURE__ */ ri(ti), ni = {
|
|
888
870
|
"purpur-label": "_purpur-label_1x80u_1",
|
|
889
871
|
"purpur-label--negative": "_purpur-label--negative_1x80u_8",
|
|
890
872
|
"purpur-label--disabled": "_purpur-label--disabled_1x80u_11"
|
|
891
|
-
},
|
|
873
|
+
}, ai = ii.bind(ni), T = "purpur-label", pi = ({
|
|
892
874
|
children: e,
|
|
893
875
|
className: n,
|
|
894
876
|
disabled: i,
|
|
895
877
|
negative: o = !1,
|
|
896
878
|
...a
|
|
897
879
|
}) => {
|
|
898
|
-
const r =
|
|
899
|
-
[`${
|
|
900
|
-
[`${
|
|
880
|
+
const r = ai(n, T, {
|
|
881
|
+
[`${T}--disabled`]: i,
|
|
882
|
+
[`${T}--negative`]: o
|
|
901
883
|
});
|
|
902
|
-
return /* @__PURE__ */ s(
|
|
884
|
+
return /* @__PURE__ */ s(It, { className: r, ...a, children: e });
|
|
903
885
|
};
|
|
904
|
-
function
|
|
886
|
+
function oi(e) {
|
|
905
887
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
906
888
|
}
|
|
907
|
-
var
|
|
908
|
-
function
|
|
909
|
-
return
|
|
889
|
+
var qr = { exports: {} }, Ar;
|
|
890
|
+
function si() {
|
|
891
|
+
return Ar || (Ar = 1, (function(e) {
|
|
910
892
|
(function() {
|
|
911
893
|
var n = {}.hasOwnProperty;
|
|
912
894
|
function i() {
|
|
@@ -935,33 +917,33 @@ function mi() {
|
|
|
935
917
|
}
|
|
936
918
|
e.exports ? (i.default = i, e.exports = i) : window.classNames = i;
|
|
937
919
|
})();
|
|
938
|
-
})(
|
|
920
|
+
})(qr)), qr.exports;
|
|
939
921
|
}
|
|
940
|
-
var
|
|
941
|
-
const
|
|
922
|
+
var li = si();
|
|
923
|
+
const ui = /* @__PURE__ */ oi(li), gi = "_rotate_12t9p_1", ci = "_dash_12t9p_1", _i = {
|
|
942
924
|
"purpur-spinner": "_purpur-spinner_12t9p_2",
|
|
943
|
-
rotate:
|
|
925
|
+
rotate: gi,
|
|
944
926
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
|
|
945
927
|
"purpur-spinner--xs": "_purpur-spinner--xs_12t9p_10",
|
|
946
928
|
"purpur-spinner--sm": "_purpur-spinner--sm_12t9p_14",
|
|
947
929
|
"purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
|
|
948
930
|
"purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
|
|
949
931
|
"purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
|
|
950
|
-
dash:
|
|
932
|
+
dash: ci,
|
|
951
933
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
|
|
952
934
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
|
|
953
|
-
},
|
|
935
|
+
}, Rr = ui.bind(_i), M = "purpur-spinner", di = {
|
|
954
936
|
SM: "sm"
|
|
955
|
-
},
|
|
937
|
+
}, Kr = ({
|
|
956
938
|
disabled: e = !1,
|
|
957
939
|
negative: n = !1,
|
|
958
|
-
size: i =
|
|
940
|
+
size: i = di.SM,
|
|
959
941
|
className: o,
|
|
960
942
|
...a
|
|
961
|
-
}) => /* @__PURE__ */ s("div", { className:
|
|
943
|
+
}) => /* @__PURE__ */ s("div", { className: Rr(M, `${M}--${i}`, o), ...a, children: /* @__PURE__ */ s("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ s(
|
|
962
944
|
"circle",
|
|
963
945
|
{
|
|
964
|
-
className:
|
|
946
|
+
className: Rr(`${M}__circle`, {
|
|
965
947
|
[`${M}__circle--disabled`]: e,
|
|
966
948
|
[`${M}__circle--negative`]: n
|
|
967
949
|
}),
|
|
@@ -970,13 +952,13 @@ const hi = /* @__PURE__ */ fi(vi), yi = "_rotate_12t9p_1", $i = "_dash_12t9p_1",
|
|
|
970
952
|
r: "20"
|
|
971
953
|
}
|
|
972
954
|
) }) });
|
|
973
|
-
|
|
974
|
-
function
|
|
955
|
+
Kr.displayName = "Spinner";
|
|
956
|
+
function fi(e) {
|
|
975
957
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
976
958
|
}
|
|
977
|
-
var
|
|
978
|
-
function
|
|
979
|
-
return
|
|
959
|
+
var Mr = { exports: {} }, Er;
|
|
960
|
+
function mi() {
|
|
961
|
+
return Er || (Er = 1, (function(e) {
|
|
980
962
|
(function() {
|
|
981
963
|
var n = {}.hasOwnProperty;
|
|
982
964
|
function i() {
|
|
@@ -1005,30 +987,30 @@ function Si() {
|
|
|
1005
987
|
}
|
|
1006
988
|
e.exports ? (i.default = i, e.exports = i) : window.classNames = i;
|
|
1007
989
|
})();
|
|
1008
|
-
})(
|
|
990
|
+
})(Mr)), Mr.exports;
|
|
1009
991
|
}
|
|
1010
|
-
var
|
|
1011
|
-
const
|
|
1012
|
-
"purpur-select": "_purpur-
|
|
1013
|
-
"purpur-select__label": "_purpur-
|
|
1014
|
-
"purpur-select__field-row": "_purpur-select__field-
|
|
1015
|
-
"purpur-select__frame": "_purpur-
|
|
1016
|
-
"purpur-select__frame--negative": "_purpur-select__frame--
|
|
1017
|
-
"purpur-select__select-container": "_purpur-select__select-
|
|
1018
|
-
"purpur-select__select-container--disabled": "_purpur-select__select-container--
|
|
1019
|
-
"purpur-select__select-container--readonly": "_purpur-select__select-container--
|
|
1020
|
-
"purpur-select__select-container--negative": "_purpur-select__select-container--
|
|
1021
|
-
"purpur-select__select": "_purpur-
|
|
1022
|
-
"purpur-select__select--error": "_purpur-select__select--
|
|
1023
|
-
"purpur-select__select--is-valid": "_purpur-select__select--is-
|
|
1024
|
-
"purpur-select__select--negative": "_purpur-select__select--
|
|
1025
|
-
"purpur-select__end-adornments": "_purpur-select__end-
|
|
1026
|
-
"purpur-select__select-icon": "_purpur-select__select-
|
|
1027
|
-
"purpur-select__select-icon--readonly": "_purpur-select__select-icon--
|
|
1028
|
-
"purpur-select__select-icon--disabled": "_purpur-select__select-icon--
|
|
1029
|
-
"purpur-select__select-icon--negative": "_purpur-select__select-icon--
|
|
1030
|
-
"purpur-select__valid-icon": "_purpur-select__valid-
|
|
1031
|
-
}, N =
|
|
992
|
+
var vi = mi();
|
|
993
|
+
const hi = /* @__PURE__ */ fi(vi), yi = {
|
|
994
|
+
"purpur-select": "_purpur-select_a9qjf_1",
|
|
995
|
+
"purpur-select__label": "_purpur-select__label_a9qjf_7",
|
|
996
|
+
"purpur-select__field-row": "_purpur-select__field-row_a9qjf_12",
|
|
997
|
+
"purpur-select__frame": "_purpur-select__frame_a9qjf_16",
|
|
998
|
+
"purpur-select__frame--negative": "_purpur-select__frame--negative_a9qjf_23",
|
|
999
|
+
"purpur-select__select-container": "_purpur-select__select-container_a9qjf_26",
|
|
1000
|
+
"purpur-select__select-container--disabled": "_purpur-select__select-container--disabled_a9qjf_34",
|
|
1001
|
+
"purpur-select__select-container--readonly": "_purpur-select__select-container--readonly_a9qjf_37",
|
|
1002
|
+
"purpur-select__select-container--negative": "_purpur-select__select-container--negative_a9qjf_40",
|
|
1003
|
+
"purpur-select__select": "_purpur-select__select_a9qjf_26",
|
|
1004
|
+
"purpur-select__select--error": "_purpur-select__select--error_a9qjf_98",
|
|
1005
|
+
"purpur-select__select--is-valid": "_purpur-select__select--is-valid_a9qjf_104",
|
|
1006
|
+
"purpur-select__select--negative": "_purpur-select__select--negative_a9qjf_110",
|
|
1007
|
+
"purpur-select__end-adornments": "_purpur-select__end-adornments_a9qjf_123",
|
|
1008
|
+
"purpur-select__select-icon": "_purpur-select__select-icon_a9qjf_133",
|
|
1009
|
+
"purpur-select__select-icon--readonly": "_purpur-select__select-icon--readonly_a9qjf_136",
|
|
1010
|
+
"purpur-select__select-icon--disabled": "_purpur-select__select-icon--disabled_a9qjf_136",
|
|
1011
|
+
"purpur-select__select-icon--negative": "_purpur-select__select-icon--negative_a9qjf_139",
|
|
1012
|
+
"purpur-select__valid-icon": "_purpur-select__valid-icon_a9qjf_145"
|
|
1013
|
+
}, N = hi.bind(yi), _ = "purpur-select", ar = z(
|
|
1032
1014
|
({
|
|
1033
1015
|
label: e,
|
|
1034
1016
|
options: n,
|
|
@@ -1043,7 +1025,7 @@ const Oi = /* @__PURE__ */ wi(Ni), Ci = {
|
|
|
1043
1025
|
loading: f,
|
|
1044
1026
|
...u
|
|
1045
1027
|
}, x) => {
|
|
1046
|
-
const d = (
|
|
1028
|
+
const d = (C) => g ? `${g}-${C}` : void 0, y = c && !o, j = er(), $ = u.id ?? j, w = a ? `${$}-helper-text` : void 0, O = N(`${_}__select-container`, {
|
|
1047
1029
|
[`${_}__select-container--disabled`]: u.disabled,
|
|
1048
1030
|
[`${_}__select-container--readonly`]: p && !u.disabled,
|
|
1049
1031
|
[`${_}__select-container--negative`]: r
|
|
@@ -1061,7 +1043,7 @@ const Oi = /* @__PURE__ */ wi(Ni), Ci = {
|
|
|
1061
1043
|
}),
|
|
1062
1044
|
children: [
|
|
1063
1045
|
e && /* @__PURE__ */ h(
|
|
1064
|
-
|
|
1046
|
+
pi,
|
|
1065
1047
|
{
|
|
1066
1048
|
htmlFor: $,
|
|
1067
1049
|
className: N(`${_}__label`),
|
|
@@ -1074,7 +1056,7 @@ const Oi = /* @__PURE__ */ wi(Ni), Ci = {
|
|
|
1074
1056
|
]
|
|
1075
1057
|
}
|
|
1076
1058
|
),
|
|
1077
|
-
/* @__PURE__ */ s("div", { className: N(`${_}__field-row`), children: /* @__PURE__ */ h("div", { className:
|
|
1059
|
+
/* @__PURE__ */ s("div", { className: N(`${_}__field-row`), children: /* @__PURE__ */ h("div", { className: O, children: [
|
|
1078
1060
|
/* @__PURE__ */ h(
|
|
1079
1061
|
"select",
|
|
1080
1062
|
{
|
|
@@ -1095,14 +1077,14 @@ const Oi = /* @__PURE__ */ wi(Ni), Ci = {
|
|
|
1095
1077
|
children: [
|
|
1096
1078
|
t && /* @__PURE__ */ s("option", { value: t.value ?? t.label, disabled: !0, children: t.label }),
|
|
1097
1079
|
n.map(
|
|
1098
|
-
(
|
|
1080
|
+
(C, E) => $i(C) ? bi(C, $, E, p) : Qr(C, $, E, p)
|
|
1099
1081
|
)
|
|
1100
1082
|
]
|
|
1101
1083
|
}
|
|
1102
1084
|
),
|
|
1103
1085
|
/* @__PURE__ */ h("div", { className: N(`${_}__end-adornments`), children: [
|
|
1104
1086
|
f ? /* @__PURE__ */ s(
|
|
1105
|
-
|
|
1087
|
+
Kr,
|
|
1106
1088
|
{
|
|
1107
1089
|
disabled: u.disabled,
|
|
1108
1090
|
size: "xxs",
|
|
@@ -1111,7 +1093,7 @@ const Oi = /* @__PURE__ */ wi(Ni), Ci = {
|
|
|
1111
1093
|
},
|
|
1112
1094
|
"spinner"
|
|
1113
1095
|
) : /* @__PURE__ */ s(
|
|
1114
|
-
|
|
1096
|
+
Gr,
|
|
1115
1097
|
{
|
|
1116
1098
|
className: N(`${_}__select-icon`, {
|
|
1117
1099
|
[`${_}__select-icon--disabled`]: u.disabled,
|
|
@@ -1125,7 +1107,7 @@ const Oi = /* @__PURE__ */ wi(Ni), Ci = {
|
|
|
1125
1107
|
"chevron-down-icon"
|
|
1126
1108
|
),
|
|
1127
1109
|
y && /* @__PURE__ */ s(
|
|
1128
|
-
|
|
1110
|
+
Fr,
|
|
1129
1111
|
{
|
|
1130
1112
|
"data-testid": d("valid-icon"),
|
|
1131
1113
|
className: N(`${_}__valid-icon`)
|
|
@@ -1143,7 +1125,7 @@ const Oi = /* @__PURE__ */ wi(Ni), Ci = {
|
|
|
1143
1125
|
)
|
|
1144
1126
|
] }) }),
|
|
1145
1127
|
w && /* @__PURE__ */ s(
|
|
1146
|
-
|
|
1128
|
+
zt,
|
|
1147
1129
|
{
|
|
1148
1130
|
disabled: u.disabled,
|
|
1149
1131
|
"data-testid": d("helper-text"),
|
|
@@ -1152,15 +1134,15 @@ const Oi = /* @__PURE__ */ wi(Ni), Ci = {
|
|
|
1152
1134
|
children: a
|
|
1153
1135
|
}
|
|
1154
1136
|
),
|
|
1155
|
-
o && /* @__PURE__ */ s(
|
|
1137
|
+
o && /* @__PURE__ */ s(wt, { negative: r, "data-testid": d("error-text"), children: o })
|
|
1156
1138
|
]
|
|
1157
1139
|
}
|
|
1158
1140
|
);
|
|
1159
1141
|
}
|
|
1160
|
-
),
|
|
1142
|
+
), $i = (e) => e.hasOwnProperty("options"), bi = (e, n, i, o) => {
|
|
1161
1143
|
const a = `${n}--group--${i}`;
|
|
1162
|
-
return /* @__PURE__ */ s("optgroup", { label: e.label, children: e.options.map((r, t) =>
|
|
1163
|
-
},
|
|
1144
|
+
return /* @__PURE__ */ s("optgroup", { label: e.label, children: e.options.map((r, t) => Qr(r, a, t, o)) }, a);
|
|
1145
|
+
}, Qr = (e, n, i, o) => /* @__PURE__ */ s(
|
|
1164
1146
|
"option",
|
|
1165
1147
|
{
|
|
1166
1148
|
value: e.value ?? e.label,
|
|
@@ -1169,17 +1151,17 @@ const Oi = /* @__PURE__ */ wi(Ni), Ci = {
|
|
|
1169
1151
|
},
|
|
1170
1152
|
`${n}--option--${i}`
|
|
1171
1153
|
);
|
|
1172
|
-
|
|
1173
|
-
const
|
|
1154
|
+
ar.displayName = "Select";
|
|
1155
|
+
const xi = {
|
|
1174
1156
|
"purpur-pagination-page-selector": "_purpur-pagination-page-selector_7pxsw_1",
|
|
1175
1157
|
"purpur-pagination-page-selector__select-container": "_purpur-pagination-page-selector__select-container_7pxsw_6",
|
|
1176
1158
|
"purpur-pagination-page-selector__of-total-pages-label": "_purpur-pagination-page-selector__of-total-pages-label_7pxsw_10"
|
|
1177
|
-
},
|
|
1178
|
-
options:
|
|
1159
|
+
}, wi = (e) => ({
|
|
1160
|
+
options: kr(
|
|
1179
1161
|
() => Array.from({ length: e }, (i, o) => ({ label: `${o + 1}`, value: `${o + 1}` })),
|
|
1180
1162
|
[e]
|
|
1181
1163
|
)
|
|
1182
|
-
}),
|
|
1164
|
+
}), W = q.bind(xi), Z = "purpur-pagination-page-selector", Ur = z(
|
|
1183
1165
|
({
|
|
1184
1166
|
["data-testid"]: e = "purpur-pagination-page-selector",
|
|
1185
1167
|
asLink: n,
|
|
@@ -1194,32 +1176,32 @@ const zi = {
|
|
|
1194
1176
|
pageSelectorLabel: f,
|
|
1195
1177
|
...u
|
|
1196
1178
|
}, x) => {
|
|
1197
|
-
const d =
|
|
1198
|
-
const
|
|
1199
|
-
if (p(
|
|
1200
|
-
const
|
|
1201
|
-
r(
|
|
1179
|
+
const d = er(), y = W(i, Z), { options: j } = wi(t), $ = (w) => {
|
|
1180
|
+
const O = w.target.value ? Number(w.target.value) : 1;
|
|
1181
|
+
if (p(O), n) {
|
|
1182
|
+
const C = a?.(O) ?? "";
|
|
1183
|
+
r(O, C);
|
|
1202
1184
|
}
|
|
1203
1185
|
};
|
|
1204
1186
|
return /* @__PURE__ */ h("div", { className: y, "data-testid": e, ref: x, ...u, children: [
|
|
1205
|
-
/* @__PURE__ */ h("div", { className:
|
|
1206
|
-
/* @__PURE__ */ s(
|
|
1187
|
+
/* @__PURE__ */ h("div", { className: W(`${Z}__select-container`), children: [
|
|
1188
|
+
/* @__PURE__ */ s(A, { children: /* @__PURE__ */ s(Hr, { "data-testid": `${e}-label`, htmlFor: d, children: f }) }),
|
|
1207
1189
|
/* @__PURE__ */ s(
|
|
1208
|
-
|
|
1190
|
+
ar,
|
|
1209
1191
|
{
|
|
1210
|
-
className:
|
|
1192
|
+
className: W(`${Z}__select`),
|
|
1211
1193
|
"data-testid": `${e}-select`,
|
|
1212
1194
|
id: c ?? d,
|
|
1213
1195
|
onChange: $,
|
|
1214
|
-
options:
|
|
1196
|
+
options: j,
|
|
1215
1197
|
value: String(o)
|
|
1216
1198
|
}
|
|
1217
1199
|
)
|
|
1218
1200
|
] }),
|
|
1219
1201
|
/* @__PURE__ */ s(
|
|
1220
|
-
|
|
1202
|
+
ir,
|
|
1221
1203
|
{
|
|
1222
|
-
className:
|
|
1204
|
+
className: W(`${Z}__of-total-pages-label`),
|
|
1223
1205
|
"data-testid": `${e}-of-total-pages`,
|
|
1224
1206
|
children: `${g} ${t}`
|
|
1225
1207
|
}
|
|
@@ -1227,21 +1209,21 @@ const zi = {
|
|
|
1227
1209
|
] });
|
|
1228
1210
|
}
|
|
1229
1211
|
);
|
|
1230
|
-
|
|
1231
|
-
const
|
|
1212
|
+
Ur.displayName = "PaginationPageSelector";
|
|
1213
|
+
const Si = {
|
|
1232
1214
|
"purpur-pagination-page-size-selector": "_purpur-pagination-page-size-selector_11x2p_1",
|
|
1233
1215
|
"purpur-pagination-page-size-selector__select": "_purpur-pagination-page-size-selector__select_11x2p_12",
|
|
1234
1216
|
"purpur-pagination-page-size-selector__items-per-page-label": "_purpur-pagination-page-size-selector__items-per-page-label_11x2p_17",
|
|
1235
1217
|
"purpur-pagination-page-size-selector__items-per-page-label-text": "_purpur-pagination-page-size-selector__items-per-page-label-text_11x2p_27"
|
|
1236
|
-
},
|
|
1237
|
-
options:
|
|
1218
|
+
}, Ni = (e) => ({
|
|
1219
|
+
options: kr(
|
|
1238
1220
|
() => e.map((i) => ({
|
|
1239
1221
|
label: `${i}`,
|
|
1240
1222
|
value: `${i}`
|
|
1241
1223
|
})),
|
|
1242
1224
|
[e]
|
|
1243
1225
|
)
|
|
1244
|
-
}),
|
|
1226
|
+
}), H = q.bind(Si), L = "purpur-pagination-page-size-selector", Xr = z(
|
|
1245
1227
|
({
|
|
1246
1228
|
["data-testid"]: e = "purpur-pagination-page-size-selector",
|
|
1247
1229
|
asLink: n,
|
|
@@ -1254,27 +1236,27 @@ const Ri = {
|
|
|
1254
1236
|
pageSizeLabel: g,
|
|
1255
1237
|
...c
|
|
1256
1238
|
}, f) => {
|
|
1257
|
-
const u =
|
|
1258
|
-
const $ = Number(
|
|
1239
|
+
const u = er(), x = H(o, L), { options: d } = Ni(i), y = (j) => {
|
|
1240
|
+
const $ = Number(j.target.value);
|
|
1259
1241
|
if (t($), n) {
|
|
1260
1242
|
const w = a({ page: 1, pageSize: $ });
|
|
1261
|
-
r ? r({ currentPage: 1, pageSize: $, url: w }) :
|
|
1243
|
+
r ? r({ currentPage: 1, pageSize: $, url: w }) : Wr(w);
|
|
1262
1244
|
}
|
|
1263
1245
|
};
|
|
1264
1246
|
return /* @__PURE__ */ h("div", { className: x, "data-testid": e, ref: f, ...c, children: [
|
|
1265
1247
|
/* @__PURE__ */ s(
|
|
1266
|
-
|
|
1248
|
+
Hr,
|
|
1267
1249
|
{
|
|
1268
|
-
className:
|
|
1250
|
+
className: H(`${L}__items-per-page-label`),
|
|
1269
1251
|
"data-testid": `${e}-item-per-page-label`,
|
|
1270
1252
|
htmlFor: u,
|
|
1271
|
-
children: /* @__PURE__ */ s("span", { className:
|
|
1253
|
+
children: /* @__PURE__ */ s("span", { className: H(`${L}__items-per-page-label-text`), children: g })
|
|
1272
1254
|
}
|
|
1273
1255
|
),
|
|
1274
1256
|
/* @__PURE__ */ s(
|
|
1275
|
-
|
|
1257
|
+
ar,
|
|
1276
1258
|
{
|
|
1277
|
-
className:
|
|
1259
|
+
className: H(`${L}__select`),
|
|
1278
1260
|
"data-testid": `${e}-select`,
|
|
1279
1261
|
id: u,
|
|
1280
1262
|
onChange: y,
|
|
@@ -1285,8 +1267,8 @@ const Ri = {
|
|
|
1285
1267
|
] });
|
|
1286
1268
|
}
|
|
1287
1269
|
);
|
|
1288
|
-
|
|
1289
|
-
const
|
|
1270
|
+
Xr.displayName = "PaginationPageSizeSelector";
|
|
1271
|
+
const ji = {
|
|
1290
1272
|
"purpur-pagination-page-trigger": "_purpur-pagination-page-trigger_1pnyd_1",
|
|
1291
1273
|
"purpur-pagination-page-trigger__trigger-item": "_purpur-pagination-page-trigger__trigger-item_1pnyd_4",
|
|
1292
1274
|
"purpur-pagination-page-trigger__trigger-item--xs": "_purpur-pagination-page-trigger__trigger-item--xs_1pnyd_25",
|
|
@@ -1304,7 +1286,7 @@ const Mi = {
|
|
|
1304
1286
|
"purpur-pagination-page-trigger__trigger-item--expressive-negative": "_purpur-pagination-page-trigger__trigger-item--expressive-negative_1pnyd_121",
|
|
1305
1287
|
"purpur-pagination-page-trigger__trigger-item--page-trigger": "_purpur-pagination-page-trigger__trigger-item--page-trigger_1pnyd_133",
|
|
1306
1288
|
"purpur-pagination-page-trigger__trigger-item--selected": "_purpur-pagination-page-trigger__trigger-item--selected_1pnyd_142"
|
|
1307
|
-
}, F =
|
|
1289
|
+
}, F = q.bind(ji), b = "purpur-pagination-page-trigger", Yr = z(
|
|
1308
1290
|
({
|
|
1309
1291
|
["data-testid"]: e = "purpur-pagination-page-trigger",
|
|
1310
1292
|
linkElement: n,
|
|
@@ -1332,7 +1314,7 @@ const Mi = {
|
|
|
1332
1314
|
"aria-current": g ? "page" : void 0,
|
|
1333
1315
|
"data-testid": `${e}-disabled-link`,
|
|
1334
1316
|
children: [
|
|
1335
|
-
/* @__PURE__ */ s(
|
|
1317
|
+
/* @__PURE__ */ s(A, { children: `${c} ` }),
|
|
1336
1318
|
p
|
|
1337
1319
|
]
|
|
1338
1320
|
}
|
|
@@ -1351,7 +1333,7 @@ const Mi = {
|
|
|
1351
1333
|
href: r(p),
|
|
1352
1334
|
onClick: () => t(p),
|
|
1353
1335
|
children: [
|
|
1354
|
-
/* @__PURE__ */ s(
|
|
1336
|
+
/* @__PURE__ */ s(A, { children: `${c} ` }),
|
|
1355
1337
|
p
|
|
1356
1338
|
]
|
|
1357
1339
|
}
|
|
@@ -1372,29 +1354,29 @@ const Mi = {
|
|
|
1372
1354
|
onClick: () => t(p),
|
|
1373
1355
|
type: "button",
|
|
1374
1356
|
children: [
|
|
1375
|
-
/* @__PURE__ */ s(
|
|
1357
|
+
/* @__PURE__ */ s(A, { children: `${c} ` }),
|
|
1376
1358
|
p
|
|
1377
1359
|
]
|
|
1378
1360
|
}
|
|
1379
1361
|
) });
|
|
1380
1362
|
}
|
|
1381
1363
|
);
|
|
1382
|
-
|
|
1383
|
-
const
|
|
1364
|
+
Yr.displayName = "PaginationPageTrigger";
|
|
1365
|
+
const Oi = {
|
|
1384
1366
|
"purpur-pagination-pages": "_purpur-pagination-pages_2g8is_1"
|
|
1385
|
-
},
|
|
1367
|
+
}, Ci = {
|
|
1386
1368
|
"purpur-pagination-truncation-separator": "_purpur-pagination-truncation-separator_b9cij_1"
|
|
1387
|
-
},
|
|
1369
|
+
}, Pi = q.bind(Ci), zi = "purpur-pagination-truncation-separator", Tr = ({
|
|
1388
1370
|
["data-testid"]: e = "purpur-pagination-truncation-separator",
|
|
1389
1371
|
className: n,
|
|
1390
1372
|
["aria-label"]: i,
|
|
1391
1373
|
...o
|
|
1392
1374
|
}) => {
|
|
1393
|
-
const a =
|
|
1394
|
-
return /* @__PURE__ */ s("li", { className: a, "data-testid": e, ...o, children: /* @__PURE__ */ s(
|
|
1375
|
+
const a = Pi(n, zi);
|
|
1376
|
+
return /* @__PURE__ */ s("li", { className: a, "data-testid": e, ...o, children: /* @__PURE__ */ s(ir, { "aria-label": i, children: "..." }) });
|
|
1395
1377
|
};
|
|
1396
|
-
|
|
1397
|
-
const
|
|
1378
|
+
Tr.displayName = "PaginationTruncationSeparator";
|
|
1379
|
+
const qi = q.bind(Oi), Ai = "purpur-pagination-pages", Ir = z(
|
|
1398
1380
|
({
|
|
1399
1381
|
["data-testid"]: e = "purpur-pagination-pages",
|
|
1400
1382
|
linkElement: n,
|
|
@@ -1408,10 +1390,10 @@ const Wi = A.bind(qi), Bi = "purpur-pagination-pages", ie = z(
|
|
|
1408
1390
|
truncationSeparatorAriaLabel: c,
|
|
1409
1391
|
...f
|
|
1410
1392
|
}, u) => {
|
|
1411
|
-
const x =
|
|
1412
|
-
return /* @__PURE__ */ s("ol", { className: x, "data-testid": e, ref: u, ...f, children: p.flatMap((d, y,
|
|
1413
|
-
const $ = /* @__PURE__ */
|
|
1414
|
-
|
|
1393
|
+
const x = qi(o, Ai);
|
|
1394
|
+
return /* @__PURE__ */ s("ol", { className: x, "data-testid": e, ref: u, ...f, children: p.flatMap((d, y, j) => {
|
|
1395
|
+
const $ = /* @__PURE__ */ se(
|
|
1396
|
+
Yr,
|
|
1415
1397
|
{
|
|
1416
1398
|
...i ? { asLink: !0, hrefGetter: r } : {
|
|
1417
1399
|
asLink: void 0,
|
|
@@ -1426,9 +1408,9 @@ const Wi = A.bind(qi), Bi = "purpur-pagination-pages", ie = z(
|
|
|
1426
1408
|
pageNumber: d
|
|
1427
1409
|
}
|
|
1428
1410
|
);
|
|
1429
|
-
return y === 0 ||
|
|
1411
|
+
return y === 0 || j[y - 1] + 1 === d ? [$] : [
|
|
1430
1412
|
/* @__PURE__ */ s(
|
|
1431
|
-
|
|
1413
|
+
Tr,
|
|
1432
1414
|
{
|
|
1433
1415
|
"data-testid": `${e}-truncation-separator-${d}`,
|
|
1434
1416
|
"aria-label": c
|
|
@@ -1440,8 +1422,8 @@ const Wi = A.bind(qi), Bi = "purpur-pagination-pages", ie = z(
|
|
|
1440
1422
|
}) });
|
|
1441
1423
|
}
|
|
1442
1424
|
);
|
|
1443
|
-
|
|
1444
|
-
const
|
|
1425
|
+
Ir.displayName = "PaginationPages";
|
|
1426
|
+
const Ri = {
|
|
1445
1427
|
"purpur-pagination-step-trigger__trigger-item": "_purpur-pagination-step-trigger__trigger-item_1t19c_1",
|
|
1446
1428
|
"purpur-pagination-step-trigger__trigger-item--xs": "_purpur-pagination-step-trigger__trigger-item--xs_1t19c_22",
|
|
1447
1429
|
"purpur-pagination-step-trigger__trigger-item--icon-only": "_purpur-pagination-step-trigger__trigger-item--icon-only_1t19c_25",
|
|
@@ -1458,7 +1440,7 @@ const Li = {
|
|
|
1458
1440
|
"purpur-pagination-step-trigger__trigger-item--expressive-negative": "_purpur-pagination-step-trigger__trigger-item--expressive-negative_1t19c_118",
|
|
1459
1441
|
"purpur-pagination-step-trigger__trigger-item--step-trigger": "_purpur-pagination-step-trigger__trigger-item--step-trigger_1t19c_130",
|
|
1460
1442
|
"purpur-pagination-step-trigger__trigger-item--step-trigger--not-icon-only": "_purpur-pagination-step-trigger__trigger-item--step-trigger--not-icon-only_1t19c_137"
|
|
1461
|
-
}, G =
|
|
1443
|
+
}, G = q.bind(Ri), m = "purpur-pagination-step-trigger", rr = z(
|
|
1462
1444
|
({
|
|
1463
1445
|
["aria-label"]: e,
|
|
1464
1446
|
["data-testid"]: n = "purpur-pagination-step-trigger",
|
|
@@ -1529,18 +1511,18 @@ const Li = {
|
|
|
1529
1511
|
) });
|
|
1530
1512
|
}
|
|
1531
1513
|
);
|
|
1532
|
-
|
|
1533
|
-
const
|
|
1534
|
-
const [o, a] =
|
|
1535
|
-
return
|
|
1514
|
+
rr.displayName = "PaginationStepTrigger";
|
|
1515
|
+
const Mi = (e, n, i) => {
|
|
1516
|
+
const [o, a] = I([]), [r, t] = I(0);
|
|
1517
|
+
return le(() => {
|
|
1536
1518
|
const p = Math.ceil(e / n);
|
|
1537
|
-
t(p), a(
|
|
1519
|
+
t(p), a(Ei(p, i));
|
|
1538
1520
|
}, [e, n, i]), {
|
|
1539
1521
|
pages: o,
|
|
1540
1522
|
numberOfPages: r
|
|
1541
1523
|
};
|
|
1542
1524
|
};
|
|
1543
|
-
function
|
|
1525
|
+
function Ei(e, n) {
|
|
1544
1526
|
if (e <= 5)
|
|
1545
1527
|
return Array.from({ length: e }, (a, r) => r + 1);
|
|
1546
1528
|
const i = [1, 2, 3];
|
|
@@ -1549,7 +1531,7 @@ function Hi(e, n) {
|
|
|
1549
1531
|
const o = [e - 2, e - 1, e];
|
|
1550
1532
|
return o.includes(n) ? [1, e - 3, ...o] : [1, n - 1, n, n + 1, e];
|
|
1551
1533
|
}
|
|
1552
|
-
const S =
|
|
1534
|
+
const S = q.bind(ke), v = "purpur-pagination", ki = z(
|
|
1553
1535
|
({
|
|
1554
1536
|
["data-testid"]: e = "purpur-pagination",
|
|
1555
1537
|
linkElement: n = "a",
|
|
@@ -1566,25 +1548,25 @@ const S = A.bind(Be), v = "purpur-pagination", Fi = z(
|
|
|
1566
1548
|
pageSelectorId: x,
|
|
1567
1549
|
pageSelectorLabel: d,
|
|
1568
1550
|
pageSize: y = 10,
|
|
1569
|
-
pageSizeLabel:
|
|
1551
|
+
pageSizeLabel: j,
|
|
1570
1552
|
previousButtonAriaLabel: $,
|
|
1571
1553
|
previousButtonText: w,
|
|
1572
|
-
stepNumberPrefix:
|
|
1573
|
-
totalItems:
|
|
1574
|
-
truncationSeparatorAriaLabel:
|
|
1575
|
-
...
|
|
1576
|
-
},
|
|
1577
|
-
const
|
|
1578
|
-
f?.({ currentPage:
|
|
1579
|
-
},
|
|
1580
|
-
|
|
1581
|
-
},
|
|
1582
|
-
p ? p({ currentPage:
|
|
1583
|
-
},
|
|
1554
|
+
stepNumberPrefix: O,
|
|
1555
|
+
totalItems: C,
|
|
1556
|
+
truncationSeparatorAriaLabel: E,
|
|
1557
|
+
...re
|
|
1558
|
+
}, ee) => {
|
|
1559
|
+
const te = S(a, v), [J, ie] = I(y), { pages: K, numberOfPages: k } = Mi(C, J, r), D = !w && !c, V = (P) => {
|
|
1560
|
+
f?.({ currentPage: P, pageSize: y });
|
|
1561
|
+
}, ne = (P) => t?.({ page: P, pageSize: y }) ?? "", ae = (P) => {
|
|
1562
|
+
ie(P), f?.({ currentPage: 1, pageSize: P });
|
|
1563
|
+
}, pe = (P, pr) => {
|
|
1564
|
+
p ? p({ currentPage: P, pageSize: J, url: pr }) : Wr(pr);
|
|
1565
|
+
}, B = i ? { asLink: !0, hrefGetter: ne } : {
|
|
1584
1566
|
asLink: void 0,
|
|
1585
1567
|
hrefGetter: void 0
|
|
1586
|
-
},
|
|
1587
|
-
return k ? /* @__PURE__ */ s(
|
|
1568
|
+
}, oe = i ? "nav" : "div";
|
|
1569
|
+
return k ? /* @__PURE__ */ s(oe, { className: te, "data-testid": e, ref: ee, ...re, children: /* @__PURE__ */ h(
|
|
1588
1570
|
"div",
|
|
1589
1571
|
{
|
|
1590
1572
|
className: S(`${v}__pagination-container`, {
|
|
@@ -1593,9 +1575,9 @@ const S = A.bind(Be), v = "purpur-pagination", Fi = z(
|
|
|
1593
1575
|
children: [
|
|
1594
1576
|
/* @__PURE__ */ h("div", { className: S(`${v}__page-navigation-container`), children: [
|
|
1595
1577
|
/* @__PURE__ */ h(
|
|
1596
|
-
|
|
1578
|
+
rr,
|
|
1597
1579
|
{
|
|
1598
|
-
...
|
|
1580
|
+
...B,
|
|
1599
1581
|
linkElement: n,
|
|
1600
1582
|
"aria-label": $,
|
|
1601
1583
|
className: S(`${v}__step-trigger`),
|
|
@@ -1605,7 +1587,7 @@ const S = A.bind(Be), v = "purpur-pagination", Fi = z(
|
|
|
1605
1587
|
pageToNavigateTo: r - 1,
|
|
1606
1588
|
isIconOnly: D,
|
|
1607
1589
|
children: [
|
|
1608
|
-
/* @__PURE__ */ s(
|
|
1590
|
+
/* @__PURE__ */ s(Dr, { size: "sm" }),
|
|
1609
1591
|
/* @__PURE__ */ s(
|
|
1610
1592
|
"span",
|
|
1611
1593
|
{
|
|
@@ -1615,21 +1597,21 @@ const S = A.bind(Be), v = "purpur-pagination", Fi = z(
|
|
|
1615
1597
|
children: w
|
|
1616
1598
|
}
|
|
1617
1599
|
),
|
|
1618
|
-
r !== 1 && /* @__PURE__ */ s(
|
|
1600
|
+
r !== 1 && /* @__PURE__ */ s(A, { "data-testid": `${e}-previous-step-trigger-hidden-text`, children: `${O} ${r - 1}` })
|
|
1619
1601
|
]
|
|
1620
1602
|
}
|
|
1621
1603
|
),
|
|
1622
1604
|
/* @__PURE__ */ h("div", { className: S(`${v}__page-trigger-container`), children: [
|
|
1623
1605
|
/* @__PURE__ */ s(
|
|
1624
|
-
|
|
1606
|
+
Ur,
|
|
1625
1607
|
{
|
|
1626
|
-
...
|
|
1608
|
+
...B,
|
|
1627
1609
|
className: S(`${v}__page-selector`, {
|
|
1628
|
-
[`${v}__page-selector--visible`]:
|
|
1610
|
+
[`${v}__page-selector--visible`]: K.length > 3
|
|
1629
1611
|
}),
|
|
1630
1612
|
currentPage: r,
|
|
1631
1613
|
"data-testid": `${e}-page-selector`,
|
|
1632
|
-
navigationFunction:
|
|
1614
|
+
navigationFunction: pe,
|
|
1633
1615
|
numberOfPages: k,
|
|
1634
1616
|
onPageChange: V,
|
|
1635
1617
|
outOfLabel: u,
|
|
@@ -1638,26 +1620,26 @@ const S = A.bind(Be), v = "purpur-pagination", Fi = z(
|
|
|
1638
1620
|
}
|
|
1639
1621
|
),
|
|
1640
1622
|
/* @__PURE__ */ s(
|
|
1641
|
-
|
|
1623
|
+
Ir,
|
|
1642
1624
|
{
|
|
1643
|
-
...
|
|
1625
|
+
...B,
|
|
1644
1626
|
linkElement: n,
|
|
1645
1627
|
className: S(`${v}__pages`, {
|
|
1646
|
-
[`${v}__pages--visible`]:
|
|
1628
|
+
[`${v}__pages--visible`]: K.length <= 3
|
|
1647
1629
|
}),
|
|
1648
1630
|
currentPage: r,
|
|
1649
1631
|
"data-testid": `${e}-pages`,
|
|
1650
|
-
stepNumberPrefix:
|
|
1632
|
+
stepNumberPrefix: O,
|
|
1651
1633
|
onPageChange: V,
|
|
1652
|
-
truncationSeparatorAriaLabel:
|
|
1653
|
-
pages:
|
|
1634
|
+
truncationSeparatorAriaLabel: E,
|
|
1635
|
+
pages: K
|
|
1654
1636
|
}
|
|
1655
1637
|
)
|
|
1656
1638
|
] }),
|
|
1657
1639
|
/* @__PURE__ */ h(
|
|
1658
|
-
|
|
1640
|
+
rr,
|
|
1659
1641
|
{
|
|
1660
|
-
...
|
|
1642
|
+
...B,
|
|
1661
1643
|
linkElement: n,
|
|
1662
1644
|
"aria-label": g,
|
|
1663
1645
|
className: S(`${v}__step-trigger`),
|
|
@@ -1676,22 +1658,22 @@ const S = A.bind(Be), v = "purpur-pagination", Fi = z(
|
|
|
1676
1658
|
children: c
|
|
1677
1659
|
}
|
|
1678
1660
|
),
|
|
1679
|
-
r !== k && /* @__PURE__ */ s(
|
|
1680
|
-
/* @__PURE__ */ s(
|
|
1661
|
+
r !== k && /* @__PURE__ */ s(A, { "data-testid": `${e}-next-step-trigger-hidden-text`, children: `${O} ${r + 1}` }),
|
|
1662
|
+
/* @__PURE__ */ s(Vr, { size: "sm" })
|
|
1681
1663
|
]
|
|
1682
1664
|
}
|
|
1683
1665
|
)
|
|
1684
1666
|
] }),
|
|
1685
1667
|
o && /* @__PURE__ */ s("div", { className: S(`${v}__page-size-select-container`), children: /* @__PURE__ */ s(
|
|
1686
|
-
|
|
1668
|
+
Xr,
|
|
1687
1669
|
{
|
|
1688
1670
|
...i ? { asLink: !0, hrefGetter: t, navigationFunction: p } : { asLink: void 0, hrefGetter: void 0 },
|
|
1689
1671
|
availablePageSizes: o,
|
|
1690
1672
|
className: S(`${v}__page-size-selector`),
|
|
1691
1673
|
"data-testid": `${e}-page-size-selector`,
|
|
1692
|
-
onPageSizeChange:
|
|
1693
|
-
pageSize:
|
|
1694
|
-
pageSizeLabel:
|
|
1674
|
+
onPageSizeChange: ae,
|
|
1675
|
+
pageSize: J,
|
|
1676
|
+
pageSizeLabel: j
|
|
1695
1677
|
}
|
|
1696
1678
|
) })
|
|
1697
1679
|
]
|
|
@@ -1699,8 +1681,8 @@ const S = A.bind(Be), v = "purpur-pagination", Fi = z(
|
|
|
1699
1681
|
) }) : null;
|
|
1700
1682
|
}
|
|
1701
1683
|
);
|
|
1702
|
-
|
|
1684
|
+
ki.displayName = "Pagination";
|
|
1703
1685
|
export {
|
|
1704
|
-
|
|
1686
|
+
ki as Pagination
|
|
1705
1687
|
};
|
|
1706
1688
|
//# sourceMappingURL=pagination.es.js.map
|