welcome-ui 9.0.0-alpha.2 → 9.0.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/README.md +47 -3
- package/dist/2W3RN7C5-bkX-rIa3.js +61 -0
- package/dist/4I4MLMKD-BLxAidnq.js +43 -0
- package/dist/Accordion.js +6 -6
- package/dist/Alert.js +1 -1
- package/dist/AspectRatio.js +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/{4CMBR7SL-Dhp8uJop.js → B7UTNDHN-BlIblHCu.js} +59 -59
- package/dist/Badge.js +1 -1
- package/dist/Breadcrumb.css +1 -1
- package/dist/Breadcrumb.js +27 -27
- package/dist/Button.js +2 -2
- package/dist/ButtonGroup.js +1 -1
- package/dist/Card.js +1 -1
- package/dist/Checkbox.css +1 -1
- package/dist/Checkbox.js +22 -22
- package/dist/CloseButton.js +3 -3
- package/dist/{SYRFVSLH-CHNUB1rW.js → DSAASPLT-BaaCUKsb.js} +7 -7
- package/dist/DatePicker.js +5 -5
- package/dist/DateTimePicker.js +2 -2
- package/dist/Drawer.css +1 -1
- package/dist/Drawer.js +67 -67
- package/dist/DropdownMenu.js +261 -259
- package/dist/Field.js +1 -1
- package/dist/FieldGroup.js +1 -1
- package/dist/FileDrop.js +194 -221
- package/dist/FileUpload.js +2 -2
- package/dist/GVVKDT6A-bET6V7Py.js +724 -0
- package/dist/Hint.js +1 -1
- package/dist/{Icon-BisRi8B3.js → Icon-EG7O4YwD.js} +1 -1
- package/dist/Icon.js +12 -12
- package/dist/InputText.js +1 -1
- package/dist/{ASMQKSDT-SH1qSiMi.js → KPUWHTQJ-D2TPji47.js} +30 -30
- package/dist/Label.js +3 -3
- package/dist/Link.css +1 -1
- package/dist/Link.js +27 -27
- package/dist/Loader.js +1 -1
- package/dist/Logo.js +1 -1
- package/dist/Modal.js +10 -10
- package/dist/{JC64G2H7-DPy9R0De.js → NI3IVY7K-Ztb3-XAv.js} +571 -571
- package/dist/{P4IRICAX-7kH4HzWI.js → NMGNQVTG-C6TqBngP.js} +5 -5
- package/dist/{LVA2YJMS-NUHCRwFZ.js → OE2EFRVA-C3721cM3.js} +316 -315
- package/dist/{ITI7HKP4-C5xLpoVY.js → OLVWQA7U-DysaSaZj.js} +59 -59
- package/dist/Pagination.css +1 -1
- package/dist/Pagination.js +81 -73
- package/dist/PasswordInput.js +17 -18
- package/dist/Popover.js +14 -14
- package/dist/{YV4JVR4I-CVFstk2K.js → RTNCFSKZ-qpPg689E.js} +75 -73
- package/dist/Radio.css +1 -1
- package/dist/Radio.js +29 -29
- package/dist/RadioGroup.js +21 -21
- package/dist/RadioTab.js +2 -2
- package/dist/{P2CTZE2T-D1TepwxQ.js → SBSPVDDI-DJKkC1eb.js} +43 -43
- package/dist/{NLEBE274-B4zy25kL.js → SQZLCNLX-CHDXnZ16.js} +16 -16
- package/dist/Search.js +2 -2
- package/dist/Select.js +170 -181
- package/dist/Slider.js +1 -1
- package/dist/Swiper.css +1 -1
- package/dist/Swiper.js +151 -151
- package/dist/{VGCJ63VH-CVhs4PYt.js → T22PY7TE-C1N0q8Kn.js} +109 -109
- package/dist/Table.js +1 -1
- package/dist/Tabs.js +303 -308
- package/dist/Tag.js +3 -3
- package/dist/Text.js +1 -1
- package/dist/Textarea.js +1 -1
- package/dist/TimePicker.js +2 -2
- package/dist/Toast.js +1 -1
- package/dist/Toggle.js +2 -2
- package/dist/Tooltip.js +72 -72
- package/dist/VariantIcon.js +3 -3
- package/dist/WelcomeLoader.js +1 -1
- package/dist/XCKGTAUF-DkxWCbaW.js +25 -0
- package/dist/Y67KZUMI-DFEgrUv2.js +15 -0
- package/dist/{AXB53BZF-BHeessqV.js → ZTXFEM5L-CkrIQCN1.js} +7 -7
- package/dist/{field-icon-size-Du58qHNC.js → field-icon-size-Z5NulTSk.js} +216 -224
- package/dist/{index-5rXezknO.js → index-BC2bF45u.js} +1 -1
- package/dist/{index-C8GsqBDe.js → index-BeetbagJ.js} +1 -1
- package/dist/{index-BJLXLdM3.js → index-Bt79XJ8R.js} +1 -1
- package/dist/{index-Dcq5gh3E.js → index-BtwrJ6N4.js} +1 -1
- package/dist/{index-DL4-ut3P.js → index-CCASZBtz.js} +1 -1
- package/dist/{index-lbUBMgHp.js → index-CPqDZeah.js} +2 -2
- package/dist/{index-CTgip19b.js → index-CQEPCbEE.js} +1 -1
- package/dist/{index-CnxSNAPH.js → index-Crpe9CvH.js} +1 -1
- package/dist/{index-CWVOLBDY.js → index-D5a8Oe6k.js} +1 -1
- package/dist/{index-C1jjVTAc.js → index-D8dq-I5s.js} +1 -1
- package/dist/{index-Cvtm6uuS.js → index-DkwTwo3z.js} +1 -1
- package/dist/{index-BG2aV9o8.js → index-DnO8yBVT.js} +1 -1
- package/dist/index.css +0 -0
- package/dist/tslib.es6-DpB4Y59c.js +683 -0
- package/dist/types/components/Pagination/index.d.ts +1 -2
- package/dist/types/components/Pagination/types.d.ts +5 -2
- package/dist/types/components/PasswordInput/ToggleButton.d.ts +1 -1
- package/dist/types/components/PasswordInput/types.d.ts +1 -1
- package/dist/types/components/Tabs/components/TabList/index.d.ts +1 -1
- package/dist/types/components/Tabs/index.d.ts +1 -1
- package/dist/types/components/Tabs/types.d.ts +1 -2
- package/dist/types/components/Tabs/utils.d.ts +1 -2
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/theme/index.d.ts +0 -0
- package/dist/types/utils/useForkRef.d.ts +7 -1
- package/dist/useForkRef-D807AV7D.js +22 -0
- package/dist/{utils-BNMgUIHQ.js → utils-BpbIqM56.js} +1 -1
- package/dist/utils.js +2 -2
- package/package.json +5 -5
- package/dist/BYC7LY2E-DbSoi9cN.js +0 -673
- package/dist/KUU7WJ55-CsIy9XMu.js +0 -61
- package/dist/MTZPJQMC-D_TnSwZf.js +0 -15
- package/dist/QYJ6MIDR-Dm7lYMh6.js +0 -43
- package/dist/X5NMLKT6-PeY306ft.js +0 -25
- package/dist/index--0U5Rubs.js +0 -644
- /package/dist/{index-PAaZGbyz.js → index-CdiHdiVB.js} +0 -0
|
@@ -0,0 +1,683 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { g as Se } from "./index-CdiHdiVB.js";
|
|
3
|
+
var V = { exports: {} }, N = { exports: {} }, g = {}, ue;
|
|
4
|
+
function _e() {
|
|
5
|
+
if (ue) return g;
|
|
6
|
+
ue = 1;
|
|
7
|
+
var o = typeof Symbol == "function" && Symbol.for, R = o ? Symbol.for("react.element") : 60103, d = o ? Symbol.for("react.portal") : 60106, a = o ? Symbol.for("react.fragment") : 60107, _ = o ? Symbol.for("react.strict_mode") : 60108, i = o ? Symbol.for("react.profiler") : 60114, T = o ? Symbol.for("react.provider") : 60109, f = o ? Symbol.for("react.context") : 60110, P = o ? Symbol.for("react.async_mode") : 60111, E = o ? Symbol.for("react.concurrent_mode") : 60111, s = o ? Symbol.for("react.forward_ref") : 60112, m = o ? Symbol.for("react.suspense") : 60113, w = o ? Symbol.for("react.suspense_list") : 60120, C = o ? Symbol.for("react.memo") : 60115, M = o ? Symbol.for("react.lazy") : 60116, x = o ? Symbol.for("react.block") : 60121, I = o ? Symbol.for("react.fundamental") : 60117, q = o ? Symbol.for("react.responder") : 60118, F = o ? Symbol.for("react.scope") : 60119;
|
|
8
|
+
function j(t) {
|
|
9
|
+
if (typeof t == "object" && t !== null) {
|
|
10
|
+
var k = t.$$typeof;
|
|
11
|
+
switch (k) {
|
|
12
|
+
case R:
|
|
13
|
+
switch (t = t.type, t) {
|
|
14
|
+
case P:
|
|
15
|
+
case E:
|
|
16
|
+
case a:
|
|
17
|
+
case i:
|
|
18
|
+
case _:
|
|
19
|
+
case m:
|
|
20
|
+
return t;
|
|
21
|
+
default:
|
|
22
|
+
switch (t = t && t.$$typeof, t) {
|
|
23
|
+
case f:
|
|
24
|
+
case s:
|
|
25
|
+
case M:
|
|
26
|
+
case C:
|
|
27
|
+
case T:
|
|
28
|
+
return t;
|
|
29
|
+
default:
|
|
30
|
+
return k;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
case d:
|
|
34
|
+
return k;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function A(t) {
|
|
39
|
+
return j(t) === E;
|
|
40
|
+
}
|
|
41
|
+
return g.AsyncMode = P, g.ConcurrentMode = E, g.ContextConsumer = f, g.ContextProvider = T, g.Element = R, g.ForwardRef = s, g.Fragment = a, g.Lazy = M, g.Memo = C, g.Portal = d, g.Profiler = i, g.StrictMode = _, g.Suspense = m, g.isAsyncMode = function(t) {
|
|
42
|
+
return A(t) || j(t) === P;
|
|
43
|
+
}, g.isConcurrentMode = A, g.isContextConsumer = function(t) {
|
|
44
|
+
return j(t) === f;
|
|
45
|
+
}, g.isContextProvider = function(t) {
|
|
46
|
+
return j(t) === T;
|
|
47
|
+
}, g.isElement = function(t) {
|
|
48
|
+
return typeof t == "object" && t !== null && t.$$typeof === R;
|
|
49
|
+
}, g.isForwardRef = function(t) {
|
|
50
|
+
return j(t) === s;
|
|
51
|
+
}, g.isFragment = function(t) {
|
|
52
|
+
return j(t) === a;
|
|
53
|
+
}, g.isLazy = function(t) {
|
|
54
|
+
return j(t) === M;
|
|
55
|
+
}, g.isMemo = function(t) {
|
|
56
|
+
return j(t) === C;
|
|
57
|
+
}, g.isPortal = function(t) {
|
|
58
|
+
return j(t) === d;
|
|
59
|
+
}, g.isProfiler = function(t) {
|
|
60
|
+
return j(t) === i;
|
|
61
|
+
}, g.isStrictMode = function(t) {
|
|
62
|
+
return j(t) === _;
|
|
63
|
+
}, g.isSuspense = function(t) {
|
|
64
|
+
return j(t) === m;
|
|
65
|
+
}, g.isValidElementType = function(t) {
|
|
66
|
+
return typeof t == "string" || typeof t == "function" || t === a || t === E || t === i || t === _ || t === m || t === w || typeof t == "object" && t !== null && (t.$$typeof === M || t.$$typeof === C || t.$$typeof === T || t.$$typeof === f || t.$$typeof === s || t.$$typeof === I || t.$$typeof === q || t.$$typeof === F || t.$$typeof === x);
|
|
67
|
+
}, g.typeOf = j, g;
|
|
68
|
+
}
|
|
69
|
+
var S = {}, fe;
|
|
70
|
+
function Oe() {
|
|
71
|
+
return fe || (fe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
72
|
+
var o = typeof Symbol == "function" && Symbol.for, R = o ? Symbol.for("react.element") : 60103, d = o ? Symbol.for("react.portal") : 60106, a = o ? Symbol.for("react.fragment") : 60107, _ = o ? Symbol.for("react.strict_mode") : 60108, i = o ? Symbol.for("react.profiler") : 60114, T = o ? Symbol.for("react.provider") : 60109, f = o ? Symbol.for("react.context") : 60110, P = o ? Symbol.for("react.async_mode") : 60111, E = o ? Symbol.for("react.concurrent_mode") : 60111, s = o ? Symbol.for("react.forward_ref") : 60112, m = o ? Symbol.for("react.suspense") : 60113, w = o ? Symbol.for("react.suspense_list") : 60120, C = o ? Symbol.for("react.memo") : 60115, M = o ? Symbol.for("react.lazy") : 60116, x = o ? Symbol.for("react.block") : 60121, I = o ? Symbol.for("react.fundamental") : 60117, q = o ? Symbol.for("react.responder") : 60118, F = o ? Symbol.for("react.scope") : 60119;
|
|
73
|
+
function j(r) {
|
|
74
|
+
return typeof r == "string" || typeof r == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
75
|
+
r === a || r === E || r === i || r === _ || r === m || r === w || typeof r == "object" && r !== null && (r.$$typeof === M || r.$$typeof === C || r.$$typeof === T || r.$$typeof === f || r.$$typeof === s || r.$$typeof === I || r.$$typeof === q || r.$$typeof === F || r.$$typeof === x);
|
|
76
|
+
}
|
|
77
|
+
function A(r) {
|
|
78
|
+
if (typeof r == "object" && r !== null) {
|
|
79
|
+
var D = r.$$typeof;
|
|
80
|
+
switch (D) {
|
|
81
|
+
case R:
|
|
82
|
+
var B = r.type;
|
|
83
|
+
switch (B) {
|
|
84
|
+
case P:
|
|
85
|
+
case E:
|
|
86
|
+
case a:
|
|
87
|
+
case i:
|
|
88
|
+
case _:
|
|
89
|
+
case m:
|
|
90
|
+
return B;
|
|
91
|
+
default:
|
|
92
|
+
var se = B && B.$$typeof;
|
|
93
|
+
switch (se) {
|
|
94
|
+
case f:
|
|
95
|
+
case s:
|
|
96
|
+
case M:
|
|
97
|
+
case C:
|
|
98
|
+
case T:
|
|
99
|
+
return se;
|
|
100
|
+
default:
|
|
101
|
+
return D;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
case d:
|
|
105
|
+
return D;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
var t = P, k = E, H = f, J = T, X = R, G = s, U = a, K = M, Z = C, L = d, Q = i, Y = _, W = m, z = !1;
|
|
110
|
+
function ee(r) {
|
|
111
|
+
return z || (z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), e(r) || A(r) === P;
|
|
112
|
+
}
|
|
113
|
+
function e(r) {
|
|
114
|
+
return A(r) === E;
|
|
115
|
+
}
|
|
116
|
+
function n(r) {
|
|
117
|
+
return A(r) === f;
|
|
118
|
+
}
|
|
119
|
+
function y(r) {
|
|
120
|
+
return A(r) === T;
|
|
121
|
+
}
|
|
122
|
+
function l(r) {
|
|
123
|
+
return typeof r == "object" && r !== null && r.$$typeof === R;
|
|
124
|
+
}
|
|
125
|
+
function c(r) {
|
|
126
|
+
return A(r) === s;
|
|
127
|
+
}
|
|
128
|
+
function v(r) {
|
|
129
|
+
return A(r) === a;
|
|
130
|
+
}
|
|
131
|
+
function u(r) {
|
|
132
|
+
return A(r) === M;
|
|
133
|
+
}
|
|
134
|
+
function p(r) {
|
|
135
|
+
return A(r) === C;
|
|
136
|
+
}
|
|
137
|
+
function b(r) {
|
|
138
|
+
return A(r) === d;
|
|
139
|
+
}
|
|
140
|
+
function O(r) {
|
|
141
|
+
return A(r) === i;
|
|
142
|
+
}
|
|
143
|
+
function h(r) {
|
|
144
|
+
return A(r) === _;
|
|
145
|
+
}
|
|
146
|
+
function $(r) {
|
|
147
|
+
return A(r) === m;
|
|
148
|
+
}
|
|
149
|
+
S.AsyncMode = t, S.ConcurrentMode = k, S.ContextConsumer = H, S.ContextProvider = J, S.Element = X, S.ForwardRef = G, S.Fragment = U, S.Lazy = K, S.Memo = Z, S.Portal = L, S.Profiler = Q, S.StrictMode = Y, S.Suspense = W, S.isAsyncMode = ee, S.isConcurrentMode = e, S.isContextConsumer = n, S.isContextProvider = y, S.isElement = l, S.isForwardRef = c, S.isFragment = v, S.isLazy = u, S.isMemo = p, S.isPortal = b, S.isProfiler = O, S.isStrictMode = h, S.isSuspense = $, S.isValidElementType = j, S.typeOf = A;
|
|
150
|
+
}()), S;
|
|
151
|
+
}
|
|
152
|
+
var le;
|
|
153
|
+
function Ee() {
|
|
154
|
+
return le || (le = 1, process.env.NODE_ENV === "production" ? N.exports = _e() : N.exports = Oe()), N.exports;
|
|
155
|
+
}
|
|
156
|
+
var re, pe;
|
|
157
|
+
function Pe() {
|
|
158
|
+
if (pe) return re;
|
|
159
|
+
pe = 1;
|
|
160
|
+
var o = Object.getOwnPropertySymbols, R = Object.prototype.hasOwnProperty, d = Object.prototype.propertyIsEnumerable;
|
|
161
|
+
function a(i) {
|
|
162
|
+
if (i == null)
|
|
163
|
+
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
164
|
+
return Object(i);
|
|
165
|
+
}
|
|
166
|
+
function _() {
|
|
167
|
+
try {
|
|
168
|
+
if (!Object.assign)
|
|
169
|
+
return !1;
|
|
170
|
+
var i = new String("abc");
|
|
171
|
+
if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5")
|
|
172
|
+
return !1;
|
|
173
|
+
for (var T = {}, f = 0; f < 10; f++)
|
|
174
|
+
T["_" + String.fromCharCode(f)] = f;
|
|
175
|
+
var P = Object.getOwnPropertyNames(T).map(function(s) {
|
|
176
|
+
return T[s];
|
|
177
|
+
});
|
|
178
|
+
if (P.join("") !== "0123456789")
|
|
179
|
+
return !1;
|
|
180
|
+
var E = {};
|
|
181
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(s) {
|
|
182
|
+
E[s] = s;
|
|
183
|
+
}), Object.keys(Object.assign({}, E)).join("") === "abcdefghijklmnopqrst";
|
|
184
|
+
} catch {
|
|
185
|
+
return !1;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
return re = _() ? Object.assign : function(i, T) {
|
|
189
|
+
for (var f, P = a(i), E, s = 1; s < arguments.length; s++) {
|
|
190
|
+
f = Object(arguments[s]);
|
|
191
|
+
for (var m in f)
|
|
192
|
+
R.call(f, m) && (P[m] = f[m]);
|
|
193
|
+
if (o) {
|
|
194
|
+
E = o(f);
|
|
195
|
+
for (var w = 0; w < E.length; w++)
|
|
196
|
+
d.call(f, E[w]) && (P[E[w]] = f[E[w]]);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
return P;
|
|
200
|
+
}, re;
|
|
201
|
+
}
|
|
202
|
+
var te, ye;
|
|
203
|
+
function ce() {
|
|
204
|
+
if (ye) return te;
|
|
205
|
+
ye = 1;
|
|
206
|
+
var o = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
207
|
+
return te = o, te;
|
|
208
|
+
}
|
|
209
|
+
var ne, de;
|
|
210
|
+
function ge() {
|
|
211
|
+
return de || (de = 1, ne = Function.call.bind(Object.prototype.hasOwnProperty)), ne;
|
|
212
|
+
}
|
|
213
|
+
var oe, ve;
|
|
214
|
+
function Re() {
|
|
215
|
+
if (ve) return oe;
|
|
216
|
+
ve = 1;
|
|
217
|
+
var o = function() {
|
|
218
|
+
};
|
|
219
|
+
if (process.env.NODE_ENV !== "production") {
|
|
220
|
+
var R = /* @__PURE__ */ ce(), d = {}, a = /* @__PURE__ */ ge();
|
|
221
|
+
o = function(i) {
|
|
222
|
+
var T = "Warning: " + i;
|
|
223
|
+
typeof console < "u" && console.error(T);
|
|
224
|
+
try {
|
|
225
|
+
throw new Error(T);
|
|
226
|
+
} catch {
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
function _(i, T, f, P, E) {
|
|
231
|
+
if (process.env.NODE_ENV !== "production") {
|
|
232
|
+
for (var s in i)
|
|
233
|
+
if (a(i, s)) {
|
|
234
|
+
var m;
|
|
235
|
+
try {
|
|
236
|
+
if (typeof i[s] != "function") {
|
|
237
|
+
var w = Error(
|
|
238
|
+
(P || "React class") + ": " + f + " type `" + s + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[s] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
239
|
+
);
|
|
240
|
+
throw w.name = "Invariant Violation", w;
|
|
241
|
+
}
|
|
242
|
+
m = i[s](T, s, P, f, null, R);
|
|
243
|
+
} catch (M) {
|
|
244
|
+
m = M;
|
|
245
|
+
}
|
|
246
|
+
if (m && !(m instanceof Error) && o(
|
|
247
|
+
(P || "React class") + ": type specification of " + f + " `" + s + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof m + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
248
|
+
), m instanceof Error && !(m.message in d)) {
|
|
249
|
+
d[m.message] = !0;
|
|
250
|
+
var C = E ? E() : "";
|
|
251
|
+
o(
|
|
252
|
+
"Failed " + f + " type: " + m.message + (C ?? "")
|
|
253
|
+
);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
return _.resetWarningCache = function() {
|
|
259
|
+
process.env.NODE_ENV !== "production" && (d = {});
|
|
260
|
+
}, oe = _, oe;
|
|
261
|
+
}
|
|
262
|
+
var ie, be;
|
|
263
|
+
function xe() {
|
|
264
|
+
if (be) return ie;
|
|
265
|
+
be = 1;
|
|
266
|
+
var o = Ee(), R = Pe(), d = /* @__PURE__ */ ce(), a = /* @__PURE__ */ ge(), _ = /* @__PURE__ */ Re(), i = function() {
|
|
267
|
+
};
|
|
268
|
+
process.env.NODE_ENV !== "production" && (i = function(f) {
|
|
269
|
+
var P = "Warning: " + f;
|
|
270
|
+
typeof console < "u" && console.error(P);
|
|
271
|
+
try {
|
|
272
|
+
throw new Error(P);
|
|
273
|
+
} catch {
|
|
274
|
+
}
|
|
275
|
+
});
|
|
276
|
+
function T() {
|
|
277
|
+
return null;
|
|
278
|
+
}
|
|
279
|
+
return ie = function(f, P) {
|
|
280
|
+
var E = typeof Symbol == "function" && Symbol.iterator, s = "@@iterator";
|
|
281
|
+
function m(e) {
|
|
282
|
+
var n = e && (E && e[E] || e[s]);
|
|
283
|
+
if (typeof n == "function")
|
|
284
|
+
return n;
|
|
285
|
+
}
|
|
286
|
+
var w = "<<anonymous>>", C = {
|
|
287
|
+
array: q("array"),
|
|
288
|
+
bigint: q("bigint"),
|
|
289
|
+
bool: q("boolean"),
|
|
290
|
+
func: q("function"),
|
|
291
|
+
number: q("number"),
|
|
292
|
+
object: q("object"),
|
|
293
|
+
string: q("string"),
|
|
294
|
+
symbol: q("symbol"),
|
|
295
|
+
any: F(),
|
|
296
|
+
arrayOf: j,
|
|
297
|
+
element: A(),
|
|
298
|
+
elementType: t(),
|
|
299
|
+
instanceOf: k,
|
|
300
|
+
node: G(),
|
|
301
|
+
objectOf: J,
|
|
302
|
+
oneOf: H,
|
|
303
|
+
oneOfType: X,
|
|
304
|
+
shape: K,
|
|
305
|
+
exact: Z
|
|
306
|
+
};
|
|
307
|
+
function M(e, n) {
|
|
308
|
+
return e === n ? e !== 0 || 1 / e === 1 / n : e !== e && n !== n;
|
|
309
|
+
}
|
|
310
|
+
function x(e, n) {
|
|
311
|
+
this.message = e, this.data = n && typeof n == "object" ? n : {}, this.stack = "";
|
|
312
|
+
}
|
|
313
|
+
x.prototype = Error.prototype;
|
|
314
|
+
function I(e) {
|
|
315
|
+
if (process.env.NODE_ENV !== "production")
|
|
316
|
+
var n = {}, y = 0;
|
|
317
|
+
function l(v, u, p, b, O, h, $) {
|
|
318
|
+
if (b = b || w, h = h || p, $ !== d) {
|
|
319
|
+
if (P) {
|
|
320
|
+
var r = new Error(
|
|
321
|
+
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
322
|
+
);
|
|
323
|
+
throw r.name = "Invariant Violation", r;
|
|
324
|
+
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
325
|
+
var D = b + ":" + p;
|
|
326
|
+
!n[D] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
327
|
+
y < 3 && (i(
|
|
328
|
+
"You are manually calling a React.PropTypes validation function for the `" + h + "` prop on `" + b + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
329
|
+
), n[D] = !0, y++);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
return u[p] == null ? v ? u[p] === null ? new x("The " + O + " `" + h + "` is marked as required " + ("in `" + b + "`, but its value is `null`.")) : new x("The " + O + " `" + h + "` is marked as required in " + ("`" + b + "`, but its value is `undefined`.")) : null : e(u, p, b, O, h);
|
|
333
|
+
}
|
|
334
|
+
var c = l.bind(null, !1);
|
|
335
|
+
return c.isRequired = l.bind(null, !0), c;
|
|
336
|
+
}
|
|
337
|
+
function q(e) {
|
|
338
|
+
function n(y, l, c, v, u, p) {
|
|
339
|
+
var b = y[l], O = Y(b);
|
|
340
|
+
if (O !== e) {
|
|
341
|
+
var h = W(b);
|
|
342
|
+
return new x(
|
|
343
|
+
"Invalid " + v + " `" + u + "` of type " + ("`" + h + "` supplied to `" + c + "`, expected ") + ("`" + e + "`."),
|
|
344
|
+
{ expectedType: e }
|
|
345
|
+
);
|
|
346
|
+
}
|
|
347
|
+
return null;
|
|
348
|
+
}
|
|
349
|
+
return I(n);
|
|
350
|
+
}
|
|
351
|
+
function F() {
|
|
352
|
+
return I(T);
|
|
353
|
+
}
|
|
354
|
+
function j(e) {
|
|
355
|
+
function n(y, l, c, v, u) {
|
|
356
|
+
if (typeof e != "function")
|
|
357
|
+
return new x("Property `" + u + "` of component `" + c + "` has invalid PropType notation inside arrayOf.");
|
|
358
|
+
var p = y[l];
|
|
359
|
+
if (!Array.isArray(p)) {
|
|
360
|
+
var b = Y(p);
|
|
361
|
+
return new x("Invalid " + v + " `" + u + "` of type " + ("`" + b + "` supplied to `" + c + "`, expected an array."));
|
|
362
|
+
}
|
|
363
|
+
for (var O = 0; O < p.length; O++) {
|
|
364
|
+
var h = e(p, O, c, v, u + "[" + O + "]", d);
|
|
365
|
+
if (h instanceof Error)
|
|
366
|
+
return h;
|
|
367
|
+
}
|
|
368
|
+
return null;
|
|
369
|
+
}
|
|
370
|
+
return I(n);
|
|
371
|
+
}
|
|
372
|
+
function A() {
|
|
373
|
+
function e(n, y, l, c, v) {
|
|
374
|
+
var u = n[y];
|
|
375
|
+
if (!f(u)) {
|
|
376
|
+
var p = Y(u);
|
|
377
|
+
return new x("Invalid " + c + " `" + v + "` of type " + ("`" + p + "` supplied to `" + l + "`, expected a single ReactElement."));
|
|
378
|
+
}
|
|
379
|
+
return null;
|
|
380
|
+
}
|
|
381
|
+
return I(e);
|
|
382
|
+
}
|
|
383
|
+
function t() {
|
|
384
|
+
function e(n, y, l, c, v) {
|
|
385
|
+
var u = n[y];
|
|
386
|
+
if (!o.isValidElementType(u)) {
|
|
387
|
+
var p = Y(u);
|
|
388
|
+
return new x("Invalid " + c + " `" + v + "` of type " + ("`" + p + "` supplied to `" + l + "`, expected a single ReactElement type."));
|
|
389
|
+
}
|
|
390
|
+
return null;
|
|
391
|
+
}
|
|
392
|
+
return I(e);
|
|
393
|
+
}
|
|
394
|
+
function k(e) {
|
|
395
|
+
function n(y, l, c, v, u) {
|
|
396
|
+
if (!(y[l] instanceof e)) {
|
|
397
|
+
var p = e.name || w, b = ee(y[l]);
|
|
398
|
+
return new x("Invalid " + v + " `" + u + "` of type " + ("`" + b + "` supplied to `" + c + "`, expected ") + ("instance of `" + p + "`."));
|
|
399
|
+
}
|
|
400
|
+
return null;
|
|
401
|
+
}
|
|
402
|
+
return I(n);
|
|
403
|
+
}
|
|
404
|
+
function H(e) {
|
|
405
|
+
if (!Array.isArray(e))
|
|
406
|
+
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
407
|
+
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
408
|
+
) : i("Invalid argument supplied to oneOf, expected an array.")), T;
|
|
409
|
+
function n(y, l, c, v, u) {
|
|
410
|
+
for (var p = y[l], b = 0; b < e.length; b++)
|
|
411
|
+
if (M(p, e[b]))
|
|
412
|
+
return null;
|
|
413
|
+
var O = JSON.stringify(e, function($, r) {
|
|
414
|
+
var D = W(r);
|
|
415
|
+
return D === "symbol" ? String(r) : r;
|
|
416
|
+
});
|
|
417
|
+
return new x("Invalid " + v + " `" + u + "` of value `" + String(p) + "` " + ("supplied to `" + c + "`, expected one of " + O + "."));
|
|
418
|
+
}
|
|
419
|
+
return I(n);
|
|
420
|
+
}
|
|
421
|
+
function J(e) {
|
|
422
|
+
function n(y, l, c, v, u) {
|
|
423
|
+
if (typeof e != "function")
|
|
424
|
+
return new x("Property `" + u + "` of component `" + c + "` has invalid PropType notation inside objectOf.");
|
|
425
|
+
var p = y[l], b = Y(p);
|
|
426
|
+
if (b !== "object")
|
|
427
|
+
return new x("Invalid " + v + " `" + u + "` of type " + ("`" + b + "` supplied to `" + c + "`, expected an object."));
|
|
428
|
+
for (var O in p)
|
|
429
|
+
if (a(p, O)) {
|
|
430
|
+
var h = e(p, O, c, v, u + "." + O, d);
|
|
431
|
+
if (h instanceof Error)
|
|
432
|
+
return h;
|
|
433
|
+
}
|
|
434
|
+
return null;
|
|
435
|
+
}
|
|
436
|
+
return I(n);
|
|
437
|
+
}
|
|
438
|
+
function X(e) {
|
|
439
|
+
if (!Array.isArray(e))
|
|
440
|
+
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), T;
|
|
441
|
+
for (var n = 0; n < e.length; n++) {
|
|
442
|
+
var y = e[n];
|
|
443
|
+
if (typeof y != "function")
|
|
444
|
+
return i(
|
|
445
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + z(y) + " at index " + n + "."
|
|
446
|
+
), T;
|
|
447
|
+
}
|
|
448
|
+
function l(c, v, u, p, b) {
|
|
449
|
+
for (var O = [], h = 0; h < e.length; h++) {
|
|
450
|
+
var $ = e[h], r = $(c, v, u, p, b, d);
|
|
451
|
+
if (r == null)
|
|
452
|
+
return null;
|
|
453
|
+
r.data && a(r.data, "expectedType") && O.push(r.data.expectedType);
|
|
454
|
+
}
|
|
455
|
+
var D = O.length > 0 ? ", expected one of type [" + O.join(", ") + "]" : "";
|
|
456
|
+
return new x("Invalid " + p + " `" + b + "` supplied to " + ("`" + u + "`" + D + "."));
|
|
457
|
+
}
|
|
458
|
+
return I(l);
|
|
459
|
+
}
|
|
460
|
+
function G() {
|
|
461
|
+
function e(n, y, l, c, v) {
|
|
462
|
+
return L(n[y]) ? null : new x("Invalid " + c + " `" + v + "` supplied to " + ("`" + l + "`, expected a ReactNode."));
|
|
463
|
+
}
|
|
464
|
+
return I(e);
|
|
465
|
+
}
|
|
466
|
+
function U(e, n, y, l, c) {
|
|
467
|
+
return new x(
|
|
468
|
+
(e || "React class") + ": " + n + " type `" + y + "." + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + c + "`."
|
|
469
|
+
);
|
|
470
|
+
}
|
|
471
|
+
function K(e) {
|
|
472
|
+
function n(y, l, c, v, u) {
|
|
473
|
+
var p = y[l], b = Y(p);
|
|
474
|
+
if (b !== "object")
|
|
475
|
+
return new x("Invalid " + v + " `" + u + "` of type `" + b + "` " + ("supplied to `" + c + "`, expected `object`."));
|
|
476
|
+
for (var O in e) {
|
|
477
|
+
var h = e[O];
|
|
478
|
+
if (typeof h != "function")
|
|
479
|
+
return U(c, v, u, O, W(h));
|
|
480
|
+
var $ = h(p, O, c, v, u + "." + O, d);
|
|
481
|
+
if ($)
|
|
482
|
+
return $;
|
|
483
|
+
}
|
|
484
|
+
return null;
|
|
485
|
+
}
|
|
486
|
+
return I(n);
|
|
487
|
+
}
|
|
488
|
+
function Z(e) {
|
|
489
|
+
function n(y, l, c, v, u) {
|
|
490
|
+
var p = y[l], b = Y(p);
|
|
491
|
+
if (b !== "object")
|
|
492
|
+
return new x("Invalid " + v + " `" + u + "` of type `" + b + "` " + ("supplied to `" + c + "`, expected `object`."));
|
|
493
|
+
var O = R({}, y[l], e);
|
|
494
|
+
for (var h in O) {
|
|
495
|
+
var $ = e[h];
|
|
496
|
+
if (a(e, h) && typeof $ != "function")
|
|
497
|
+
return U(c, v, u, h, W($));
|
|
498
|
+
if (!$)
|
|
499
|
+
return new x(
|
|
500
|
+
"Invalid " + v + " `" + u + "` key `" + h + "` supplied to `" + c + "`.\nBad object: " + JSON.stringify(y[l], null, " ") + `
|
|
501
|
+
Valid keys: ` + JSON.stringify(Object.keys(e), null, " ")
|
|
502
|
+
);
|
|
503
|
+
var r = $(p, h, c, v, u + "." + h, d);
|
|
504
|
+
if (r)
|
|
505
|
+
return r;
|
|
506
|
+
}
|
|
507
|
+
return null;
|
|
508
|
+
}
|
|
509
|
+
return I(n);
|
|
510
|
+
}
|
|
511
|
+
function L(e) {
|
|
512
|
+
switch (typeof e) {
|
|
513
|
+
case "number":
|
|
514
|
+
case "string":
|
|
515
|
+
case "undefined":
|
|
516
|
+
return !0;
|
|
517
|
+
case "boolean":
|
|
518
|
+
return !e;
|
|
519
|
+
case "object":
|
|
520
|
+
if (Array.isArray(e))
|
|
521
|
+
return e.every(L);
|
|
522
|
+
if (e === null || f(e))
|
|
523
|
+
return !0;
|
|
524
|
+
var n = m(e);
|
|
525
|
+
if (n) {
|
|
526
|
+
var y = n.call(e), l;
|
|
527
|
+
if (n !== e.entries) {
|
|
528
|
+
for (; !(l = y.next()).done; )
|
|
529
|
+
if (!L(l.value))
|
|
530
|
+
return !1;
|
|
531
|
+
} else
|
|
532
|
+
for (; !(l = y.next()).done; ) {
|
|
533
|
+
var c = l.value;
|
|
534
|
+
if (c && !L(c[1]))
|
|
535
|
+
return !1;
|
|
536
|
+
}
|
|
537
|
+
} else
|
|
538
|
+
return !1;
|
|
539
|
+
return !0;
|
|
540
|
+
default:
|
|
541
|
+
return !1;
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
function Q(e, n) {
|
|
545
|
+
return e === "symbol" ? !0 : n ? n["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && n instanceof Symbol : !1;
|
|
546
|
+
}
|
|
547
|
+
function Y(e) {
|
|
548
|
+
var n = typeof e;
|
|
549
|
+
return Array.isArray(e) ? "array" : e instanceof RegExp ? "object" : Q(n, e) ? "symbol" : n;
|
|
550
|
+
}
|
|
551
|
+
function W(e) {
|
|
552
|
+
if (typeof e > "u" || e === null)
|
|
553
|
+
return "" + e;
|
|
554
|
+
var n = Y(e);
|
|
555
|
+
if (n === "object") {
|
|
556
|
+
if (e instanceof Date)
|
|
557
|
+
return "date";
|
|
558
|
+
if (e instanceof RegExp)
|
|
559
|
+
return "regexp";
|
|
560
|
+
}
|
|
561
|
+
return n;
|
|
562
|
+
}
|
|
563
|
+
function z(e) {
|
|
564
|
+
var n = W(e);
|
|
565
|
+
switch (n) {
|
|
566
|
+
case "array":
|
|
567
|
+
case "object":
|
|
568
|
+
return "an " + n;
|
|
569
|
+
case "boolean":
|
|
570
|
+
case "date":
|
|
571
|
+
case "regexp":
|
|
572
|
+
return "a " + n;
|
|
573
|
+
default:
|
|
574
|
+
return n;
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
function ee(e) {
|
|
578
|
+
return !e.constructor || !e.constructor.name ? w : e.constructor.name;
|
|
579
|
+
}
|
|
580
|
+
return C.checkPropTypes = _, C.resetWarningCache = _.resetWarningCache, C.PropTypes = C, C;
|
|
581
|
+
}, ie;
|
|
582
|
+
}
|
|
583
|
+
var ae, he;
|
|
584
|
+
function we() {
|
|
585
|
+
if (he) return ae;
|
|
586
|
+
he = 1;
|
|
587
|
+
var o = /* @__PURE__ */ ce();
|
|
588
|
+
function R() {
|
|
589
|
+
}
|
|
590
|
+
function d() {
|
|
591
|
+
}
|
|
592
|
+
return d.resetWarningCache = R, ae = function() {
|
|
593
|
+
function a(T, f, P, E, s, m) {
|
|
594
|
+
if (m !== o) {
|
|
595
|
+
var w = new Error(
|
|
596
|
+
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
597
|
+
);
|
|
598
|
+
throw w.name = "Invariant Violation", w;
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
a.isRequired = a;
|
|
602
|
+
function _() {
|
|
603
|
+
return a;
|
|
604
|
+
}
|
|
605
|
+
var i = {
|
|
606
|
+
array: a,
|
|
607
|
+
bigint: a,
|
|
608
|
+
bool: a,
|
|
609
|
+
func: a,
|
|
610
|
+
number: a,
|
|
611
|
+
object: a,
|
|
612
|
+
string: a,
|
|
613
|
+
symbol: a,
|
|
614
|
+
any: a,
|
|
615
|
+
arrayOf: _,
|
|
616
|
+
element: a,
|
|
617
|
+
elementType: a,
|
|
618
|
+
instanceOf: _,
|
|
619
|
+
node: a,
|
|
620
|
+
objectOf: _,
|
|
621
|
+
oneOf: _,
|
|
622
|
+
oneOfType: _,
|
|
623
|
+
shape: _,
|
|
624
|
+
exact: _,
|
|
625
|
+
checkPropTypes: d,
|
|
626
|
+
resetWarningCache: R
|
|
627
|
+
};
|
|
628
|
+
return i.PropTypes = i, i;
|
|
629
|
+
}, ae;
|
|
630
|
+
}
|
|
631
|
+
var me;
|
|
632
|
+
function Ce() {
|
|
633
|
+
if (me) return V.exports;
|
|
634
|
+
if (me = 1, process.env.NODE_ENV !== "production") {
|
|
635
|
+
var o = Ee(), R = !0;
|
|
636
|
+
V.exports = /* @__PURE__ */ xe()(o.isElement, R);
|
|
637
|
+
} else
|
|
638
|
+
V.exports = /* @__PURE__ */ we()();
|
|
639
|
+
return V.exports;
|
|
640
|
+
}
|
|
641
|
+
var Ae = /* @__PURE__ */ Ce();
|
|
642
|
+
const Ie = /* @__PURE__ */ Se(Ae);
|
|
643
|
+
var Te = function() {
|
|
644
|
+
return Te = Object.assign || function(R) {
|
|
645
|
+
for (var d, a = 1, _ = arguments.length; a < _; a++) {
|
|
646
|
+
d = arguments[a];
|
|
647
|
+
for (var i in d) Object.prototype.hasOwnProperty.call(d, i) && (R[i] = d[i]);
|
|
648
|
+
}
|
|
649
|
+
return R;
|
|
650
|
+
}, Te.apply(this, arguments);
|
|
651
|
+
};
|
|
652
|
+
function $e(o, R, d, a) {
|
|
653
|
+
function _(i) {
|
|
654
|
+
return i instanceof d ? i : new d(function(T) {
|
|
655
|
+
T(i);
|
|
656
|
+
});
|
|
657
|
+
}
|
|
658
|
+
return new (d || (d = Promise))(function(i, T) {
|
|
659
|
+
function f(s) {
|
|
660
|
+
try {
|
|
661
|
+
E(a.next(s));
|
|
662
|
+
} catch (m) {
|
|
663
|
+
T(m);
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
function P(s) {
|
|
667
|
+
try {
|
|
668
|
+
E(a.throw(s));
|
|
669
|
+
} catch (m) {
|
|
670
|
+
T(m);
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
function E(s) {
|
|
674
|
+
s.done ? i(s.value) : _(s.value).then(f, P);
|
|
675
|
+
}
|
|
676
|
+
E((a = a.apply(o, R || [])).next());
|
|
677
|
+
});
|
|
678
|
+
}
|
|
679
|
+
export {
|
|
680
|
+
Ie as P,
|
|
681
|
+
$e as _,
|
|
682
|
+
Te as a
|
|
683
|
+
};
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { PaginationProps } from './types';
|
|
3
|
-
export declare const Pagination:
|
|
2
|
+
export declare const Pagination: import('react').ForwardRefExoticComponent<Omit<PaginationProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ForwardRefProps } from '../../utils';
|
|
2
2
|
export interface PaginationOptions {
|
|
3
|
+
buttonNextProps?: React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
4
|
+
buttonPrevProps?: React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
3
5
|
dataTestId?: string;
|
|
4
6
|
getHref?: (page: number | string) => string;
|
|
7
|
+
listProps?: React.OlHTMLAttributes<HTMLOListElement>;
|
|
5
8
|
onChange: (page: number | string) => void;
|
|
6
9
|
page: number;
|
|
7
10
|
pageCount: number;
|
|
8
11
|
rangeDisplay?: number;
|
|
9
12
|
}
|
|
10
|
-
export type PaginationProps =
|
|
13
|
+
export type PaginationProps = ForwardRefProps<PaginationOptions, 'nav'>;
|