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