@aveonline/ui-react 0.0.1-alpha.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 +105 -0
- package/dist/assets/index.53932362.css +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/img/brand-logo-basic.svg +23 -0
- package/dist/img/brand-logo-five.svg +54 -0
- package/dist/img/brand-logo-four.svg +17 -0
- package/dist/img/brand-logo-one.svg +25 -0
- package/dist/img/brand-logo-three.svg +25 -0
- package/dist/img/brand-logo-two.svg +15 -0
- package/dist/img/brand-logo-white.svg +12 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/postcss.config.js +14 -0
- package/dist/reset.css +273 -0
- package/dist/tailwind.config.js +224 -0
- package/dist/tailwind.css +1 -0
- package/dist/tokens.css +147 -0
- package/dist/ui-react.mjs +646 -0
- package/dist/ui-react.umd.js +28 -0
- package/dist/vite-env.d.ts +1 -0
- package/package.json +71 -0
|
@@ -0,0 +1,646 @@
|
|
|
1
|
+
import Ce from "react";
|
|
2
|
+
var M = { exports: {} }, A = {};
|
|
3
|
+
/**
|
|
4
|
+
* @license React
|
|
5
|
+
* react-jsx-runtime.production.min.js
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
var Re;
|
|
13
|
+
function ur() {
|
|
14
|
+
if (Re)
|
|
15
|
+
return A;
|
|
16
|
+
Re = 1;
|
|
17
|
+
var m = Ce, E = Symbol.for("react.element"), j = Symbol.for("react.fragment"), h = Object.prototype.hasOwnProperty, O = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, C = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
+
function k(_, l, P) {
|
|
19
|
+
var v, b = {}, R = null, $ = null;
|
|
20
|
+
P !== void 0 && (R = "" + P), l.key !== void 0 && (R = "" + l.key), l.ref !== void 0 && ($ = l.ref);
|
|
21
|
+
for (v in l)
|
|
22
|
+
h.call(l, v) && !C.hasOwnProperty(v) && (b[v] = l[v]);
|
|
23
|
+
if (_ && _.defaultProps)
|
|
24
|
+
for (v in l = _.defaultProps, l)
|
|
25
|
+
b[v] === void 0 && (b[v] = l[v]);
|
|
26
|
+
return { $$typeof: E, type: _, key: R, ref: $, props: b, _owner: O.current };
|
|
27
|
+
}
|
|
28
|
+
return A.Fragment = j, A.jsx = k, A.jsxs = k, A;
|
|
29
|
+
}
|
|
30
|
+
var I = {};
|
|
31
|
+
/**
|
|
32
|
+
* @license React
|
|
33
|
+
* react-jsx-runtime.development.js
|
|
34
|
+
*
|
|
35
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
36
|
+
*
|
|
37
|
+
* This source code is licensed under the MIT license found in the
|
|
38
|
+
* LICENSE file in the root directory of this source tree.
|
|
39
|
+
*/
|
|
40
|
+
var Te;
|
|
41
|
+
function sr() {
|
|
42
|
+
return Te || (Te = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
+
var m = Ce, E = Symbol.for("react.element"), j = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), O = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), k = Symbol.for("react.provider"), _ = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), $ = Symbol.for("react.offscreen"), X = Symbol.iterator, Pe = "@@iterator";
|
|
44
|
+
function Se(e) {
|
|
45
|
+
if (e === null || typeof e != "object")
|
|
46
|
+
return null;
|
|
47
|
+
var r = X && e[X] || e[Pe];
|
|
48
|
+
return typeof r == "function" ? r : null;
|
|
49
|
+
}
|
|
50
|
+
var S = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
|
+
function c(e) {
|
|
52
|
+
{
|
|
53
|
+
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
54
|
+
t[n - 1] = arguments[n];
|
|
55
|
+
we("error", e, t);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
function we(e, r, t) {
|
|
59
|
+
{
|
|
60
|
+
var n = S.ReactDebugCurrentFrame, i = n.getStackAddendum();
|
|
61
|
+
i !== "" && (r += "%s", t = t.concat([i]));
|
|
62
|
+
var u = t.map(function(o) {
|
|
63
|
+
return String(o);
|
|
64
|
+
});
|
|
65
|
+
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
var xe = !1, je = !1, ke = !1, Fe = !1, De = !1, Z;
|
|
69
|
+
Z = Symbol.for("react.module.reference");
|
|
70
|
+
function Ae(e) {
|
|
71
|
+
return !!(typeof e == "string" || typeof e == "function" || e === h || e === C || De || e === O || e === P || e === v || Fe || e === $ || xe || je || ke || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === b || e.$$typeof === k || e.$$typeof === _ || e.$$typeof === l || e.$$typeof === Z || e.getModuleId !== void 0));
|
|
72
|
+
}
|
|
73
|
+
function Ie(e, r, t) {
|
|
74
|
+
var n = e.displayName;
|
|
75
|
+
if (n)
|
|
76
|
+
return n;
|
|
77
|
+
var i = r.displayName || r.name || "";
|
|
78
|
+
return i !== "" ? t + "(" + i + ")" : t;
|
|
79
|
+
}
|
|
80
|
+
function Q(e) {
|
|
81
|
+
return e.displayName || "Context";
|
|
82
|
+
}
|
|
83
|
+
function y(e) {
|
|
84
|
+
if (e == null)
|
|
85
|
+
return null;
|
|
86
|
+
if (typeof e.tag == "number" && c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
87
|
+
return e.displayName || e.name || null;
|
|
88
|
+
if (typeof e == "string")
|
|
89
|
+
return e;
|
|
90
|
+
switch (e) {
|
|
91
|
+
case h:
|
|
92
|
+
return "Fragment";
|
|
93
|
+
case j:
|
|
94
|
+
return "Portal";
|
|
95
|
+
case C:
|
|
96
|
+
return "Profiler";
|
|
97
|
+
case O:
|
|
98
|
+
return "StrictMode";
|
|
99
|
+
case P:
|
|
100
|
+
return "Suspense";
|
|
101
|
+
case v:
|
|
102
|
+
return "SuspenseList";
|
|
103
|
+
}
|
|
104
|
+
if (typeof e == "object")
|
|
105
|
+
switch (e.$$typeof) {
|
|
106
|
+
case _:
|
|
107
|
+
var r = e;
|
|
108
|
+
return Q(r) + ".Consumer";
|
|
109
|
+
case k:
|
|
110
|
+
var t = e;
|
|
111
|
+
return Q(t._context) + ".Provider";
|
|
112
|
+
case l:
|
|
113
|
+
return Ie(e, e.render, "ForwardRef");
|
|
114
|
+
case b:
|
|
115
|
+
var n = e.displayName || null;
|
|
116
|
+
return n !== null ? n : y(e.type) || "Memo";
|
|
117
|
+
case R: {
|
|
118
|
+
var i = e, u = i._payload, o = i._init;
|
|
119
|
+
try {
|
|
120
|
+
return y(o(u));
|
|
121
|
+
} catch {
|
|
122
|
+
return null;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return null;
|
|
127
|
+
}
|
|
128
|
+
var T = Object.assign, F = 0, ee, re, te, ne, ae, oe, ie;
|
|
129
|
+
function ue() {
|
|
130
|
+
}
|
|
131
|
+
ue.__reactDisabledLog = !0;
|
|
132
|
+
function $e() {
|
|
133
|
+
{
|
|
134
|
+
if (F === 0) {
|
|
135
|
+
ee = console.log, re = console.info, te = console.warn, ne = console.error, ae = console.group, oe = console.groupCollapsed, ie = console.groupEnd;
|
|
136
|
+
var e = {
|
|
137
|
+
configurable: !0,
|
|
138
|
+
enumerable: !0,
|
|
139
|
+
value: ue,
|
|
140
|
+
writable: !0
|
|
141
|
+
};
|
|
142
|
+
Object.defineProperties(console, {
|
|
143
|
+
info: e,
|
|
144
|
+
log: e,
|
|
145
|
+
warn: e,
|
|
146
|
+
error: e,
|
|
147
|
+
group: e,
|
|
148
|
+
groupCollapsed: e,
|
|
149
|
+
groupEnd: e
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
F++;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
function We() {
|
|
156
|
+
{
|
|
157
|
+
if (F--, F === 0) {
|
|
158
|
+
var e = {
|
|
159
|
+
configurable: !0,
|
|
160
|
+
enumerable: !0,
|
|
161
|
+
writable: !0
|
|
162
|
+
};
|
|
163
|
+
Object.defineProperties(console, {
|
|
164
|
+
log: T({}, e, {
|
|
165
|
+
value: ee
|
|
166
|
+
}),
|
|
167
|
+
info: T({}, e, {
|
|
168
|
+
value: re
|
|
169
|
+
}),
|
|
170
|
+
warn: T({}, e, {
|
|
171
|
+
value: te
|
|
172
|
+
}),
|
|
173
|
+
error: T({}, e, {
|
|
174
|
+
value: ne
|
|
175
|
+
}),
|
|
176
|
+
group: T({}, e, {
|
|
177
|
+
value: ae
|
|
178
|
+
}),
|
|
179
|
+
groupCollapsed: T({}, e, {
|
|
180
|
+
value: oe
|
|
181
|
+
}),
|
|
182
|
+
groupEnd: T({}, e, {
|
|
183
|
+
value: ie
|
|
184
|
+
})
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
F < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
var U = S.ReactCurrentDispatcher, B;
|
|
191
|
+
function W(e, r, t) {
|
|
192
|
+
{
|
|
193
|
+
if (B === void 0)
|
|
194
|
+
try {
|
|
195
|
+
throw Error();
|
|
196
|
+
} catch (i) {
|
|
197
|
+
var n = i.stack.trim().match(/\n( *(at )?)/);
|
|
198
|
+
B = n && n[1] || "";
|
|
199
|
+
}
|
|
200
|
+
return `
|
|
201
|
+
` + B + e;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
var q = !1, Y;
|
|
205
|
+
{
|
|
206
|
+
var Ye = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
+
Y = new Ye();
|
|
208
|
+
}
|
|
209
|
+
function se(e, r) {
|
|
210
|
+
if (!e || q)
|
|
211
|
+
return "";
|
|
212
|
+
{
|
|
213
|
+
var t = Y.get(e);
|
|
214
|
+
if (t !== void 0)
|
|
215
|
+
return t;
|
|
216
|
+
}
|
|
217
|
+
var n;
|
|
218
|
+
q = !0;
|
|
219
|
+
var i = Error.prepareStackTrace;
|
|
220
|
+
Error.prepareStackTrace = void 0;
|
|
221
|
+
var u;
|
|
222
|
+
u = U.current, U.current = null, $e();
|
|
223
|
+
try {
|
|
224
|
+
if (r) {
|
|
225
|
+
var o = function() {
|
|
226
|
+
throw Error();
|
|
227
|
+
};
|
|
228
|
+
if (Object.defineProperty(o.prototype, "props", {
|
|
229
|
+
set: function() {
|
|
230
|
+
throw Error();
|
|
231
|
+
}
|
|
232
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
233
|
+
try {
|
|
234
|
+
Reflect.construct(o, []);
|
|
235
|
+
} catch (g) {
|
|
236
|
+
n = g;
|
|
237
|
+
}
|
|
238
|
+
Reflect.construct(e, [], o);
|
|
239
|
+
} else {
|
|
240
|
+
try {
|
|
241
|
+
o.call();
|
|
242
|
+
} catch (g) {
|
|
243
|
+
n = g;
|
|
244
|
+
}
|
|
245
|
+
e.call(o.prototype);
|
|
246
|
+
}
|
|
247
|
+
} else {
|
|
248
|
+
try {
|
|
249
|
+
throw Error();
|
|
250
|
+
} catch (g) {
|
|
251
|
+
n = g;
|
|
252
|
+
}
|
|
253
|
+
e();
|
|
254
|
+
}
|
|
255
|
+
} catch (g) {
|
|
256
|
+
if (g && n && typeof g.stack == "string") {
|
|
257
|
+
for (var a = g.stack.split(`
|
|
258
|
+
`), d = n.stack.split(`
|
|
259
|
+
`), s = a.length - 1, f = d.length - 1; s >= 1 && f >= 0 && a[s] !== d[f]; )
|
|
260
|
+
f--;
|
|
261
|
+
for (; s >= 1 && f >= 0; s--, f--)
|
|
262
|
+
if (a[s] !== d[f]) {
|
|
263
|
+
if (s !== 1 || f !== 1)
|
|
264
|
+
do
|
|
265
|
+
if (s--, f--, f < 0 || a[s] !== d[f]) {
|
|
266
|
+
var p = `
|
|
267
|
+
` + a[s].replace(" at new ", " at ");
|
|
268
|
+
return e.displayName && p.includes("<anonymous>") && (p = p.replace("<anonymous>", e.displayName)), typeof e == "function" && Y.set(e, p), p;
|
|
269
|
+
}
|
|
270
|
+
while (s >= 1 && f >= 0);
|
|
271
|
+
break;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
} finally {
|
|
275
|
+
q = !1, U.current = u, We(), Error.prepareStackTrace = i;
|
|
276
|
+
}
|
|
277
|
+
var x = e ? e.displayName || e.name : "", _e = x ? W(x) : "";
|
|
278
|
+
return typeof e == "function" && Y.set(e, _e), _e;
|
|
279
|
+
}
|
|
280
|
+
function Ne(e, r, t) {
|
|
281
|
+
return se(e, !1);
|
|
282
|
+
}
|
|
283
|
+
function Le(e) {
|
|
284
|
+
var r = e.prototype;
|
|
285
|
+
return !!(r && r.isReactComponent);
|
|
286
|
+
}
|
|
287
|
+
function N(e, r, t) {
|
|
288
|
+
if (e == null)
|
|
289
|
+
return "";
|
|
290
|
+
if (typeof e == "function")
|
|
291
|
+
return se(e, Le(e));
|
|
292
|
+
if (typeof e == "string")
|
|
293
|
+
return W(e);
|
|
294
|
+
switch (e) {
|
|
295
|
+
case P:
|
|
296
|
+
return W("Suspense");
|
|
297
|
+
case v:
|
|
298
|
+
return W("SuspenseList");
|
|
299
|
+
}
|
|
300
|
+
if (typeof e == "object")
|
|
301
|
+
switch (e.$$typeof) {
|
|
302
|
+
case l:
|
|
303
|
+
return Ne(e.render);
|
|
304
|
+
case b:
|
|
305
|
+
return N(e.type, r, t);
|
|
306
|
+
case R: {
|
|
307
|
+
var n = e, i = n._payload, u = n._init;
|
|
308
|
+
try {
|
|
309
|
+
return N(u(i), r, t);
|
|
310
|
+
} catch {
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
return "";
|
|
315
|
+
}
|
|
316
|
+
var L = Object.prototype.hasOwnProperty, fe = {}, le = S.ReactDebugCurrentFrame;
|
|
317
|
+
function V(e) {
|
|
318
|
+
if (e) {
|
|
319
|
+
var r = e._owner, t = N(e.type, e._source, r ? r.type : null);
|
|
320
|
+
le.setExtraStackFrame(t);
|
|
321
|
+
} else
|
|
322
|
+
le.setExtraStackFrame(null);
|
|
323
|
+
}
|
|
324
|
+
function Ve(e, r, t, n, i) {
|
|
325
|
+
{
|
|
326
|
+
var u = Function.call.bind(L);
|
|
327
|
+
for (var o in e)
|
|
328
|
+
if (u(e, o)) {
|
|
329
|
+
var a = void 0;
|
|
330
|
+
try {
|
|
331
|
+
if (typeof e[o] != "function") {
|
|
332
|
+
var d = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
333
|
+
throw d.name = "Invariant Violation", d;
|
|
334
|
+
}
|
|
335
|
+
a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
|
+
} catch (s) {
|
|
337
|
+
a = s;
|
|
338
|
+
}
|
|
339
|
+
a && !(a instanceof Error) && (V(i), c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, o, typeof a), V(null)), a instanceof Error && !(a.message in fe) && (fe[a.message] = !0, V(i), c("Failed %s type: %s", t, a.message), V(null));
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
var Me = Array.isArray;
|
|
344
|
+
function J(e) {
|
|
345
|
+
return Me(e);
|
|
346
|
+
}
|
|
347
|
+
function Ue(e) {
|
|
348
|
+
{
|
|
349
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
350
|
+
return t;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
function Be(e) {
|
|
354
|
+
try {
|
|
355
|
+
return ce(e), !1;
|
|
356
|
+
} catch {
|
|
357
|
+
return !0;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
function ce(e) {
|
|
361
|
+
return "" + e;
|
|
362
|
+
}
|
|
363
|
+
function de(e) {
|
|
364
|
+
if (Be(e))
|
|
365
|
+
return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ue(e)), ce(e);
|
|
366
|
+
}
|
|
367
|
+
var D = S.ReactCurrentOwner, qe = {
|
|
368
|
+
key: !0,
|
|
369
|
+
ref: !0,
|
|
370
|
+
__self: !0,
|
|
371
|
+
__source: !0
|
|
372
|
+
}, ve, pe, G;
|
|
373
|
+
G = {};
|
|
374
|
+
function Je(e) {
|
|
375
|
+
if (L.call(e, "ref")) {
|
|
376
|
+
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
377
|
+
if (r && r.isReactWarning)
|
|
378
|
+
return !1;
|
|
379
|
+
}
|
|
380
|
+
return e.ref !== void 0;
|
|
381
|
+
}
|
|
382
|
+
function Ge(e) {
|
|
383
|
+
if (L.call(e, "key")) {
|
|
384
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
385
|
+
if (r && r.isReactWarning)
|
|
386
|
+
return !1;
|
|
387
|
+
}
|
|
388
|
+
return e.key !== void 0;
|
|
389
|
+
}
|
|
390
|
+
function ze(e, r) {
|
|
391
|
+
if (typeof e.ref == "string" && D.current && r && D.current.stateNode !== r) {
|
|
392
|
+
var t = y(D.current.type);
|
|
393
|
+
G[t] || (c('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', y(D.current.type), e.ref), G[t] = !0);
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
function Ke(e, r) {
|
|
397
|
+
{
|
|
398
|
+
var t = function() {
|
|
399
|
+
ve || (ve = !0, c("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
400
|
+
};
|
|
401
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
402
|
+
get: t,
|
|
403
|
+
configurable: !0
|
|
404
|
+
});
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
function He(e, r) {
|
|
408
|
+
{
|
|
409
|
+
var t = function() {
|
|
410
|
+
pe || (pe = !0, c("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
411
|
+
};
|
|
412
|
+
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
413
|
+
get: t,
|
|
414
|
+
configurable: !0
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
var Xe = function(e, r, t, n, i, u, o) {
|
|
419
|
+
var a = {
|
|
420
|
+
$$typeof: E,
|
|
421
|
+
type: e,
|
|
422
|
+
key: r,
|
|
423
|
+
ref: t,
|
|
424
|
+
props: o,
|
|
425
|
+
_owner: u
|
|
426
|
+
};
|
|
427
|
+
return a._store = {}, Object.defineProperty(a._store, "validated", {
|
|
428
|
+
configurable: !1,
|
|
429
|
+
enumerable: !1,
|
|
430
|
+
writable: !0,
|
|
431
|
+
value: !1
|
|
432
|
+
}), Object.defineProperty(a, "_self", {
|
|
433
|
+
configurable: !1,
|
|
434
|
+
enumerable: !1,
|
|
435
|
+
writable: !1,
|
|
436
|
+
value: n
|
|
437
|
+
}), Object.defineProperty(a, "_source", {
|
|
438
|
+
configurable: !1,
|
|
439
|
+
enumerable: !1,
|
|
440
|
+
writable: !1,
|
|
441
|
+
value: i
|
|
442
|
+
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
443
|
+
};
|
|
444
|
+
function Ze(e, r, t, n, i) {
|
|
445
|
+
{
|
|
446
|
+
var u, o = {}, a = null, d = null;
|
|
447
|
+
t !== void 0 && (de(t), a = "" + t), Ge(r) && (de(r.key), a = "" + r.key), Je(r) && (d = r.ref, ze(r, i));
|
|
448
|
+
for (u in r)
|
|
449
|
+
L.call(r, u) && !qe.hasOwnProperty(u) && (o[u] = r[u]);
|
|
450
|
+
if (e && e.defaultProps) {
|
|
451
|
+
var s = e.defaultProps;
|
|
452
|
+
for (u in s)
|
|
453
|
+
o[u] === void 0 && (o[u] = s[u]);
|
|
454
|
+
}
|
|
455
|
+
if (a || d) {
|
|
456
|
+
var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
457
|
+
a && Ke(o, f), d && He(o, f);
|
|
458
|
+
}
|
|
459
|
+
return Xe(e, a, d, i, n, D.current, o);
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
var z = S.ReactCurrentOwner, be = S.ReactDebugCurrentFrame;
|
|
463
|
+
function w(e) {
|
|
464
|
+
if (e) {
|
|
465
|
+
var r = e._owner, t = N(e.type, e._source, r ? r.type : null);
|
|
466
|
+
be.setExtraStackFrame(t);
|
|
467
|
+
} else
|
|
468
|
+
be.setExtraStackFrame(null);
|
|
469
|
+
}
|
|
470
|
+
var K;
|
|
471
|
+
K = !1;
|
|
472
|
+
function H(e) {
|
|
473
|
+
return typeof e == "object" && e !== null && e.$$typeof === E;
|
|
474
|
+
}
|
|
475
|
+
function ye() {
|
|
476
|
+
{
|
|
477
|
+
if (z.current) {
|
|
478
|
+
var e = y(z.current.type);
|
|
479
|
+
if (e)
|
|
480
|
+
return `
|
|
481
|
+
|
|
482
|
+
Check the render method of \`` + e + "`.";
|
|
483
|
+
}
|
|
484
|
+
return "";
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
function Qe(e) {
|
|
488
|
+
{
|
|
489
|
+
if (e !== void 0) {
|
|
490
|
+
var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
|
|
491
|
+
return `
|
|
492
|
+
|
|
493
|
+
Check your code at ` + r + ":" + t + ".";
|
|
494
|
+
}
|
|
495
|
+
return "";
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
var ge = {};
|
|
499
|
+
function er(e) {
|
|
500
|
+
{
|
|
501
|
+
var r = ye();
|
|
502
|
+
if (!r) {
|
|
503
|
+
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
504
|
+
t && (r = `
|
|
505
|
+
|
|
506
|
+
Check the top-level render call using <` + t + ">.");
|
|
507
|
+
}
|
|
508
|
+
return r;
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
function me(e, r) {
|
|
512
|
+
{
|
|
513
|
+
if (!e._store || e._store.validated || e.key != null)
|
|
514
|
+
return;
|
|
515
|
+
e._store.validated = !0;
|
|
516
|
+
var t = er(r);
|
|
517
|
+
if (ge[t])
|
|
518
|
+
return;
|
|
519
|
+
ge[t] = !0;
|
|
520
|
+
var n = "";
|
|
521
|
+
e && e._owner && e._owner !== z.current && (n = " It was passed a child from " + y(e._owner.type) + "."), w(e), c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), w(null);
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
function he(e, r) {
|
|
525
|
+
{
|
|
526
|
+
if (typeof e != "object")
|
|
527
|
+
return;
|
|
528
|
+
if (J(e))
|
|
529
|
+
for (var t = 0; t < e.length; t++) {
|
|
530
|
+
var n = e[t];
|
|
531
|
+
H(n) && me(n, r);
|
|
532
|
+
}
|
|
533
|
+
else if (H(e))
|
|
534
|
+
e._store && (e._store.validated = !0);
|
|
535
|
+
else if (e) {
|
|
536
|
+
var i = Se(e);
|
|
537
|
+
if (typeof i == "function" && i !== e.entries)
|
|
538
|
+
for (var u = i.call(e), o; !(o = u.next()).done; )
|
|
539
|
+
H(o.value) && me(o.value, r);
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
function rr(e) {
|
|
544
|
+
{
|
|
545
|
+
var r = e.type;
|
|
546
|
+
if (r == null || typeof r == "string")
|
|
547
|
+
return;
|
|
548
|
+
var t;
|
|
549
|
+
if (typeof r == "function")
|
|
550
|
+
t = r.propTypes;
|
|
551
|
+
else if (typeof r == "object" && (r.$$typeof === l || r.$$typeof === b))
|
|
552
|
+
t = r.propTypes;
|
|
553
|
+
else
|
|
554
|
+
return;
|
|
555
|
+
if (t) {
|
|
556
|
+
var n = y(r);
|
|
557
|
+
Ve(t, e.props, "prop", n, e);
|
|
558
|
+
} else if (r.PropTypes !== void 0 && !K) {
|
|
559
|
+
K = !0;
|
|
560
|
+
var i = y(r);
|
|
561
|
+
c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
|
|
562
|
+
}
|
|
563
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
function tr(e) {
|
|
567
|
+
{
|
|
568
|
+
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
569
|
+
var n = r[t];
|
|
570
|
+
if (n !== "children" && n !== "key") {
|
|
571
|
+
w(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), w(null);
|
|
572
|
+
break;
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
e.ref !== null && (w(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), w(null));
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
function Ee(e, r, t, n, i, u) {
|
|
579
|
+
{
|
|
580
|
+
var o = Ae(e);
|
|
581
|
+
if (!o) {
|
|
582
|
+
var a = "";
|
|
583
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
584
|
+
var d = Qe(i);
|
|
585
|
+
d ? a += d : a += ye();
|
|
586
|
+
var s;
|
|
587
|
+
e === null ? s = "null" : J(e) ? s = "array" : e !== void 0 && e.$$typeof === E ? (s = "<" + (y(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
|
|
588
|
+
}
|
|
589
|
+
var f = Ze(e, r, t, i, u);
|
|
590
|
+
if (f == null)
|
|
591
|
+
return f;
|
|
592
|
+
if (o) {
|
|
593
|
+
var p = r.children;
|
|
594
|
+
if (p !== void 0)
|
|
595
|
+
if (n)
|
|
596
|
+
if (J(p)) {
|
|
597
|
+
for (var x = 0; x < p.length; x++)
|
|
598
|
+
he(p[x], e);
|
|
599
|
+
Object.freeze && Object.freeze(p);
|
|
600
|
+
} else
|
|
601
|
+
c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
602
|
+
else
|
|
603
|
+
he(p, e);
|
|
604
|
+
}
|
|
605
|
+
return e === h ? tr(f) : rr(f), f;
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
function nr(e, r, t) {
|
|
609
|
+
return Ee(e, r, t, !0);
|
|
610
|
+
}
|
|
611
|
+
function ar(e, r, t) {
|
|
612
|
+
return Ee(e, r, t, !1);
|
|
613
|
+
}
|
|
614
|
+
var or = ar, ir = nr;
|
|
615
|
+
I.Fragment = h, I.jsx = or, I.jsxs = ir;
|
|
616
|
+
}()), I;
|
|
617
|
+
}
|
|
618
|
+
(function(m) {
|
|
619
|
+
process.env.NODE_ENV === "production" ? m.exports = ur() : m.exports = sr();
|
|
620
|
+
})(M);
|
|
621
|
+
const fr = M.exports.Fragment, Oe = M.exports.jsx, lr = M.exports.jsxs, dr = ({
|
|
622
|
+
primary: m = !1,
|
|
623
|
+
size: E = "medium",
|
|
624
|
+
backgroundColor: j,
|
|
625
|
+
label: h,
|
|
626
|
+
...O
|
|
627
|
+
}) => {
|
|
628
|
+
const C = m ? "storybook-button--primary" : "storybook-button--secondary";
|
|
629
|
+
return /* @__PURE__ */ lr(fr, {
|
|
630
|
+
children: [/* @__PURE__ */ Oe("button", {
|
|
631
|
+
type: "button",
|
|
632
|
+
className: ["storybook-button", `storybook-button--${E}`, C].join(" "),
|
|
633
|
+
style: {
|
|
634
|
+
backgroundColor: j
|
|
635
|
+
},
|
|
636
|
+
...O,
|
|
637
|
+
children: h
|
|
638
|
+
}), /* @__PURE__ */ Oe("p", {
|
|
639
|
+
className: "text-letter-disabled",
|
|
640
|
+
children: "test"
|
|
641
|
+
})]
|
|
642
|
+
});
|
|
643
|
+
};
|
|
644
|
+
export {
|
|
645
|
+
dr as Button
|
|
646
|
+
};
|