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