ovirt-ui-toolkit 0.0.6 → 0.0.8
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/components/switch/Input.d.ts +11 -0
- package/dist/components/table/Table.d.ts +6 -0
- package/dist/components/table/Tbody.d.ts +6 -0
- package/dist/components/table/Td.d.ts +6 -0
- package/dist/components/table/Th.d.ts +6 -0
- package/dist/components/table/Thead.d.ts +6 -0
- package/dist/components/table/Tr.d.ts +6 -0
- package/dist/index.d.ts +12 -8
- package/dist/ovirt-ui-toolkit.es.js +250 -236
- package/dist/ovirt-ui-toolkit.umd.js +10 -10
- package/package.json +1 -1
- /package/dist/components/{Button → button}/Button.d.ts +0 -0
- /package/dist/components/{HelpText → helpText}/HelpText.d.ts +0 -0
- /package/dist/components/{Input → input}/Input.d.ts +0 -0
- /package/dist/components/{Modal → modal}/Modal.d.ts +0 -0
- /package/dist/components/{Tab → tab}/Tab.d.ts +0 -0
- /package/dist/components/{Tab → tab}/Tabs.d.ts +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface InputProps {
|
|
3
|
+
id: string;
|
|
4
|
+
type: 'text' | 'email' | 'password' | 'number' | 'date' | 'search';
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
value?: string | number;
|
|
7
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const Input: React.FC<InputProps>;
|
|
11
|
+
export default Input;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
export { default as Button } from './components/
|
|
2
|
-
export { default as Tab } from './components/
|
|
3
|
-
export { default as Tabs } from './components/
|
|
4
|
-
export { default as Input } from './components/
|
|
5
|
-
export { default as Modal } from './components/
|
|
1
|
+
export { default as Button } from './components/button/Button';
|
|
2
|
+
export { default as Tab } from './components/tab/Tab';
|
|
3
|
+
export { default as Tabs } from './components/tab/Tabs';
|
|
4
|
+
export { default as Input } from './components/input/Input';
|
|
5
|
+
export { default as Modal } from './components/modal/Modal';
|
|
6
|
+
export { default as HelpText } from './components/helpText/HelpText';
|
|
7
|
+
export { default as Table } from './components/table/Table';
|
|
8
|
+
export { default as Tbody } from './components/table/Tbody';
|
|
9
|
+
export { default as Td } from './components/table/Td';
|
|
10
|
+
export { default as Th } from './components/table/Th';
|
|
11
|
+
export { default as Thead } from './components/table/Thead';
|
|
12
|
+
export { default as Tr } from './components/table/Tr';
|
|
6
13
|
export { default as SampleComp } from './Test';
|
|
7
|
-
export type Foo = {
|
|
8
|
-
foo: string;
|
|
9
|
-
};
|
|
@@ -13,15 +13,15 @@ var je;
|
|
|
13
13
|
function fr() {
|
|
14
14
|
if (je) return A;
|
|
15
15
|
je = 1;
|
|
16
|
-
var
|
|
17
|
-
function O(j,
|
|
18
|
-
var
|
|
19
|
-
T !== void 0 && (S = "" + T),
|
|
20
|
-
for (
|
|
21
|
-
if (j && j.defaultProps) for (
|
|
22
|
-
return { $$typeof:
|
|
16
|
+
var l = Oe, a = Symbol.for("react.element"), p = Symbol.for("react.fragment"), f = Object.prototype.hasOwnProperty, m = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, R = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
|
+
function O(j, b, T) {
|
|
18
|
+
var y, x = {}, S = null, W = null;
|
|
19
|
+
T !== void 0 && (S = "" + T), b.key !== void 0 && (S = "" + b.key), b.ref !== void 0 && (W = b.ref);
|
|
20
|
+
for (y in b) f.call(b, y) && !R.hasOwnProperty(y) && (x[y] = b[y]);
|
|
21
|
+
if (j && j.defaultProps) for (y in b = j.defaultProps, b) x[y] === void 0 && (x[y] = b[y]);
|
|
22
|
+
return { $$typeof: a, type: j, key: S, ref: W, props: x, _owner: m.current };
|
|
23
23
|
}
|
|
24
|
-
return A.Fragment =
|
|
24
|
+
return A.Fragment = p, A.jsx = O, A.jsxs = O, A;
|
|
25
25
|
}
|
|
26
26
|
var I = {};
|
|
27
27
|
/**
|
|
@@ -36,46 +36,46 @@ var I = {};
|
|
|
36
36
|
var Te;
|
|
37
37
|
function dr() {
|
|
38
38
|
return Te || (Te = 1, process.env.NODE_ENV !== "production" && function() {
|
|
39
|
-
var
|
|
40
|
-
function
|
|
39
|
+
var l = Oe, a = Symbol.for("react.element"), p = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), O = Symbol.for("react.provider"), j = Symbol.for("react.context"), b = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), Q = Symbol.iterator, Se = "@@iterator";
|
|
40
|
+
function we(e) {
|
|
41
41
|
if (e === null || typeof e != "object")
|
|
42
42
|
return null;
|
|
43
43
|
var r = Q && e[Q] || e[Se];
|
|
44
44
|
return typeof r == "function" ? r : null;
|
|
45
45
|
}
|
|
46
|
-
var k =
|
|
46
|
+
var k = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47
47
|
function h(e) {
|
|
48
48
|
{
|
|
49
|
-
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0),
|
|
50
|
-
t[
|
|
51
|
-
|
|
49
|
+
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
50
|
+
t[n - 1] = arguments[n];
|
|
51
|
+
Pe("error", e, t);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Pe(e, r, t) {
|
|
55
55
|
{
|
|
56
|
-
var
|
|
57
|
-
|
|
58
|
-
var
|
|
59
|
-
return String(
|
|
56
|
+
var n = k.ReactDebugCurrentFrame, u = n.getStackAddendum();
|
|
57
|
+
u !== "" && (r += "%s", t = t.concat([u]));
|
|
58
|
+
var c = t.map(function(o) {
|
|
59
|
+
return String(o);
|
|
60
60
|
});
|
|
61
|
-
|
|
61
|
+
c.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, c);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
var ke = !1, $e = !1, De = !1, Fe = !1, Ne = !1, K;
|
|
65
65
|
K = Symbol.for("react.module.reference");
|
|
66
66
|
function Ae(e) {
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
67
|
+
return !!(typeof e == "string" || typeof e == "function" || e === f || e === R || Ne || e === m || e === T || e === y || Fe || e === W || ke || $e || De || typeof e == "object" && e !== null && (e.$$typeof === S || e.$$typeof === x || e.$$typeof === O || e.$$typeof === j || e.$$typeof === b || // This needs to include all possible module reference object
|
|
68
68
|
// types supported by any Flight configuration anywhere since
|
|
69
69
|
// we don't know which Flight build this will end up being used
|
|
70
70
|
// with.
|
|
71
71
|
e.$$typeof === K || e.getModuleId !== void 0));
|
|
72
72
|
}
|
|
73
73
|
function Ie(e, r, t) {
|
|
74
|
-
var
|
|
75
|
-
if (
|
|
76
|
-
return
|
|
77
|
-
var
|
|
78
|
-
return
|
|
74
|
+
var n = e.displayName;
|
|
75
|
+
if (n)
|
|
76
|
+
return n;
|
|
77
|
+
var u = r.displayName || r.name || "";
|
|
78
|
+
return u !== "" ? t + "(" + u + ")" : t;
|
|
79
79
|
}
|
|
80
80
|
function ee(e) {
|
|
81
81
|
return e.displayName || "Context";
|
|
@@ -88,17 +88,17 @@ function dr() {
|
|
|
88
88
|
if (typeof e == "string")
|
|
89
89
|
return e;
|
|
90
90
|
switch (e) {
|
|
91
|
-
case
|
|
91
|
+
case f:
|
|
92
92
|
return "Fragment";
|
|
93
|
-
case
|
|
93
|
+
case p:
|
|
94
94
|
return "Portal";
|
|
95
|
-
case
|
|
95
|
+
case R:
|
|
96
96
|
return "Profiler";
|
|
97
97
|
case m:
|
|
98
98
|
return "StrictMode";
|
|
99
99
|
case T:
|
|
100
100
|
return "Suspense";
|
|
101
|
-
case
|
|
101
|
+
case y:
|
|
102
102
|
return "SuspenseList";
|
|
103
103
|
}
|
|
104
104
|
if (typeof e == "object")
|
|
@@ -109,15 +109,15 @@ function dr() {
|
|
|
109
109
|
case O:
|
|
110
110
|
var t = e;
|
|
111
111
|
return ee(t._context) + ".Provider";
|
|
112
|
-
case
|
|
112
|
+
case b:
|
|
113
113
|
return Ie(e, e.render, "ForwardRef");
|
|
114
114
|
case x:
|
|
115
|
-
var
|
|
116
|
-
return
|
|
115
|
+
var n = e.displayName || null;
|
|
116
|
+
return n !== null ? n : C(e.type) || "Memo";
|
|
117
117
|
case S: {
|
|
118
|
-
var
|
|
118
|
+
var u = e, c = u._payload, o = u._init;
|
|
119
119
|
try {
|
|
120
|
-
return C(
|
|
120
|
+
return C(o(c));
|
|
121
121
|
} catch {
|
|
122
122
|
return null;
|
|
123
123
|
}
|
|
@@ -125,14 +125,14 @@ function dr() {
|
|
|
125
125
|
}
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
128
|
-
var
|
|
128
|
+
var w = Object.assign, F = 0, re, te, ne, ae, ie, oe, se;
|
|
129
129
|
function le() {
|
|
130
130
|
}
|
|
131
131
|
le.__reactDisabledLog = !0;
|
|
132
132
|
function We() {
|
|
133
133
|
{
|
|
134
134
|
if (F === 0) {
|
|
135
|
-
re = console.log, te = console.info,
|
|
135
|
+
re = console.log, te = console.info, ne = console.warn, ae = console.error, ie = console.group, oe = console.groupCollapsed, se = console.groupEnd;
|
|
136
136
|
var e = {
|
|
137
137
|
configurable: !0,
|
|
138
138
|
enumerable: !0,
|
|
@@ -161,25 +161,25 @@ function dr() {
|
|
|
161
161
|
writable: !0
|
|
162
162
|
};
|
|
163
163
|
Object.defineProperties(console, {
|
|
164
|
-
log:
|
|
164
|
+
log: w({}, e, {
|
|
165
165
|
value: re
|
|
166
166
|
}),
|
|
167
|
-
info:
|
|
167
|
+
info: w({}, e, {
|
|
168
168
|
value: te
|
|
169
169
|
}),
|
|
170
|
-
warn:
|
|
171
|
-
value: ae
|
|
172
|
-
}),
|
|
173
|
-
error: P({}, e, {
|
|
170
|
+
warn: w({}, e, {
|
|
174
171
|
value: ne
|
|
175
172
|
}),
|
|
176
|
-
|
|
173
|
+
error: w({}, e, {
|
|
174
|
+
value: ae
|
|
175
|
+
}),
|
|
176
|
+
group: w({}, e, {
|
|
177
177
|
value: ie
|
|
178
178
|
}),
|
|
179
|
-
groupCollapsed:
|
|
179
|
+
groupCollapsed: w({}, e, {
|
|
180
180
|
value: oe
|
|
181
181
|
}),
|
|
182
|
-
groupEnd:
|
|
182
|
+
groupEnd: w({}, e, {
|
|
183
183
|
value: se
|
|
184
184
|
})
|
|
185
185
|
});
|
|
@@ -193,9 +193,9 @@ function dr() {
|
|
|
193
193
|
if (J === void 0)
|
|
194
194
|
try {
|
|
195
195
|
throw Error();
|
|
196
|
-
} catch (
|
|
197
|
-
var
|
|
198
|
-
J =
|
|
196
|
+
} catch (u) {
|
|
197
|
+
var n = u.stack.trim().match(/\n( *(at )?)/);
|
|
198
|
+
J = n && n[1] || "";
|
|
199
199
|
}
|
|
200
200
|
return `
|
|
201
201
|
` + J + e;
|
|
@@ -214,68 +214,68 @@ function dr() {
|
|
|
214
214
|
if (t !== void 0)
|
|
215
215
|
return t;
|
|
216
216
|
}
|
|
217
|
-
var
|
|
217
|
+
var n;
|
|
218
218
|
q = !0;
|
|
219
|
-
var
|
|
219
|
+
var u = Error.prepareStackTrace;
|
|
220
220
|
Error.prepareStackTrace = void 0;
|
|
221
|
-
var
|
|
222
|
-
|
|
221
|
+
var c;
|
|
222
|
+
c = B.current, B.current = null, We();
|
|
223
223
|
try {
|
|
224
224
|
if (r) {
|
|
225
|
-
var
|
|
225
|
+
var o = function() {
|
|
226
226
|
throw Error();
|
|
227
227
|
};
|
|
228
|
-
if (Object.defineProperty(
|
|
228
|
+
if (Object.defineProperty(o.prototype, "props", {
|
|
229
229
|
set: function() {
|
|
230
230
|
throw Error();
|
|
231
231
|
}
|
|
232
232
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
233
233
|
try {
|
|
234
|
-
Reflect.construct(
|
|
235
|
-
} catch (
|
|
236
|
-
|
|
234
|
+
Reflect.construct(o, []);
|
|
235
|
+
} catch (E) {
|
|
236
|
+
n = E;
|
|
237
237
|
}
|
|
238
|
-
Reflect.construct(e, [],
|
|
238
|
+
Reflect.construct(e, [], o);
|
|
239
239
|
} else {
|
|
240
240
|
try {
|
|
241
|
-
|
|
242
|
-
} catch (
|
|
243
|
-
|
|
241
|
+
o.call();
|
|
242
|
+
} catch (E) {
|
|
243
|
+
n = E;
|
|
244
244
|
}
|
|
245
|
-
e.call(
|
|
245
|
+
e.call(o.prototype);
|
|
246
246
|
}
|
|
247
247
|
} else {
|
|
248
248
|
try {
|
|
249
249
|
throw Error();
|
|
250
|
-
} catch (
|
|
251
|
-
|
|
250
|
+
} catch (E) {
|
|
251
|
+
n = E;
|
|
252
252
|
}
|
|
253
253
|
e();
|
|
254
254
|
}
|
|
255
|
-
} catch (
|
|
256
|
-
if (
|
|
257
|
-
for (var
|
|
258
|
-
`), g =
|
|
259
|
-
`),
|
|
260
|
-
|
|
261
|
-
for (;
|
|
262
|
-
if (
|
|
263
|
-
if (
|
|
255
|
+
} catch (E) {
|
|
256
|
+
if (E && n && typeof E.stack == "string") {
|
|
257
|
+
for (var i = E.stack.split(`
|
|
258
|
+
`), g = n.stack.split(`
|
|
259
|
+
`), d = i.length - 1, v = g.length - 1; d >= 1 && v >= 0 && i[d] !== g[v]; )
|
|
260
|
+
v--;
|
|
261
|
+
for (; d >= 1 && v >= 0; d--, v--)
|
|
262
|
+
if (i[d] !== g[v]) {
|
|
263
|
+
if (d !== 1 || v !== 1)
|
|
264
264
|
do
|
|
265
|
-
if (
|
|
266
|
-
var
|
|
267
|
-
` +
|
|
268
|
-
return e.displayName &&
|
|
265
|
+
if (d--, v--, v < 0 || i[d] !== g[v]) {
|
|
266
|
+
var _ = `
|
|
267
|
+
` + i[d].replace(" at new ", " at ");
|
|
268
|
+
return e.displayName && _.includes("<anonymous>") && (_ = _.replace("<anonymous>", e.displayName)), typeof e == "function" && L.set(e, _), _;
|
|
269
269
|
}
|
|
270
|
-
while (
|
|
270
|
+
while (d >= 1 && v >= 0);
|
|
271
271
|
break;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
} finally {
|
|
275
|
-
q = !1, B.current =
|
|
275
|
+
q = !1, B.current = c, Ye(), Error.prepareStackTrace = u;
|
|
276
276
|
}
|
|
277
|
-
var D = e ? e.displayName || e.name : "",
|
|
278
|
-
return typeof e == "function" && L.set(e,
|
|
277
|
+
var D = e ? e.displayName || e.name : "", P = D ? Y(D) : "";
|
|
278
|
+
return typeof e == "function" && L.set(e, P), P;
|
|
279
279
|
}
|
|
280
280
|
function Me(e, r, t) {
|
|
281
281
|
return ue(e, !1);
|
|
@@ -294,19 +294,19 @@ function dr() {
|
|
|
294
294
|
switch (e) {
|
|
295
295
|
case T:
|
|
296
296
|
return Y("Suspense");
|
|
297
|
-
case
|
|
297
|
+
case y:
|
|
298
298
|
return Y("SuspenseList");
|
|
299
299
|
}
|
|
300
300
|
if (typeof e == "object")
|
|
301
301
|
switch (e.$$typeof) {
|
|
302
|
-
case
|
|
302
|
+
case b:
|
|
303
303
|
return Me(e.render);
|
|
304
304
|
case x:
|
|
305
305
|
return M(e.type, r, t);
|
|
306
306
|
case S: {
|
|
307
|
-
var
|
|
307
|
+
var n = e, u = n._payload, c = n._init;
|
|
308
308
|
try {
|
|
309
|
-
return M(
|
|
309
|
+
return M(c(u), r, t);
|
|
310
310
|
} catch {
|
|
311
311
|
}
|
|
312
312
|
}
|
|
@@ -321,22 +321,22 @@ function dr() {
|
|
|
321
321
|
} else
|
|
322
322
|
fe.setExtraStackFrame(null);
|
|
323
323
|
}
|
|
324
|
-
function Ue(e, r, t,
|
|
324
|
+
function Ue(e, r, t, n, u) {
|
|
325
325
|
{
|
|
326
|
-
var
|
|
327
|
-
for (var
|
|
328
|
-
if (
|
|
329
|
-
var
|
|
326
|
+
var c = Function.call.bind(N);
|
|
327
|
+
for (var o in e)
|
|
328
|
+
if (c(e, o)) {
|
|
329
|
+
var i = void 0;
|
|
330
330
|
try {
|
|
331
|
-
if (typeof e[
|
|
332
|
-
var g = Error((
|
|
331
|
+
if (typeof e[o] != "function") {
|
|
332
|
+
var g = 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
333
|
throw g.name = "Invariant Violation", g;
|
|
334
334
|
}
|
|
335
|
-
|
|
336
|
-
} catch (
|
|
337
|
-
|
|
335
|
+
i = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
|
+
} catch (d) {
|
|
337
|
+
i = d;
|
|
338
338
|
}
|
|
339
|
-
|
|
339
|
+
i && !(i instanceof Error) && (V(u), h("%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 i), V(null)), i instanceof Error && !(i.message in ce) && (ce[i.message] = !0, V(u), h("Failed %s type: %s", t, i.message), V(null));
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
@@ -378,7 +378,7 @@ function dr() {
|
|
|
378
378
|
}
|
|
379
379
|
return e.ref !== void 0;
|
|
380
380
|
}
|
|
381
|
-
function
|
|
381
|
+
function He(e) {
|
|
382
382
|
if (N.call(e, "key")) {
|
|
383
383
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
384
384
|
if (r && r.isReactWarning)
|
|
@@ -386,7 +386,7 @@ function dr() {
|
|
|
386
386
|
}
|
|
387
387
|
return e.key !== void 0;
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function Xe(e, r) {
|
|
390
390
|
typeof e.ref == "string" && pe.current;
|
|
391
391
|
}
|
|
392
392
|
function Ze(e, r) {
|
|
@@ -411,51 +411,51 @@ function dr() {
|
|
|
411
411
|
});
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
var Ke = function(e, r, t,
|
|
415
|
-
var
|
|
414
|
+
var Ke = function(e, r, t, n, u, c, o) {
|
|
415
|
+
var i = {
|
|
416
416
|
// This tag allows us to uniquely identify this as a React Element
|
|
417
|
-
$$typeof:
|
|
417
|
+
$$typeof: a,
|
|
418
418
|
// Built-in properties that belong on the element
|
|
419
419
|
type: e,
|
|
420
420
|
key: r,
|
|
421
421
|
ref: t,
|
|
422
|
-
props:
|
|
422
|
+
props: o,
|
|
423
423
|
// Record the component responsible for creating this element.
|
|
424
|
-
_owner:
|
|
424
|
+
_owner: c
|
|
425
425
|
};
|
|
426
|
-
return
|
|
426
|
+
return i._store = {}, Object.defineProperty(i._store, "validated", {
|
|
427
427
|
configurable: !1,
|
|
428
428
|
enumerable: !1,
|
|
429
429
|
writable: !0,
|
|
430
430
|
value: !1
|
|
431
|
-
}), Object.defineProperty(
|
|
431
|
+
}), Object.defineProperty(i, "_self", {
|
|
432
432
|
configurable: !1,
|
|
433
433
|
enumerable: !1,
|
|
434
434
|
writable: !1,
|
|
435
|
-
value:
|
|
436
|
-
}), Object.defineProperty(
|
|
435
|
+
value: n
|
|
436
|
+
}), Object.defineProperty(i, "_source", {
|
|
437
437
|
configurable: !1,
|
|
438
438
|
enumerable: !1,
|
|
439
439
|
writable: !1,
|
|
440
|
-
value:
|
|
441
|
-
}), Object.freeze && (Object.freeze(
|
|
440
|
+
value: u
|
|
441
|
+
}), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
|
|
442
442
|
};
|
|
443
|
-
function er(e, r, t,
|
|
443
|
+
function er(e, r, t, n, u) {
|
|
444
444
|
{
|
|
445
|
-
var
|
|
446
|
-
t !== void 0 && (ve(t),
|
|
447
|
-
for (
|
|
448
|
-
N.call(r,
|
|
445
|
+
var c, o = {}, i = null, g = null;
|
|
446
|
+
t !== void 0 && (ve(t), i = "" + t), He(r) && (ve(r.key), i = "" + r.key), ze(r) && (g = r.ref, Xe(r, u));
|
|
447
|
+
for (c in r)
|
|
448
|
+
N.call(r, c) && !Ge.hasOwnProperty(c) && (o[c] = r[c]);
|
|
449
449
|
if (e && e.defaultProps) {
|
|
450
|
-
var
|
|
451
|
-
for (
|
|
452
|
-
|
|
450
|
+
var d = e.defaultProps;
|
|
451
|
+
for (c in d)
|
|
452
|
+
o[c] === void 0 && (o[c] = d[c]);
|
|
453
453
|
}
|
|
454
|
-
if (
|
|
455
|
-
var
|
|
456
|
-
|
|
454
|
+
if (i || g) {
|
|
455
|
+
var v = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
456
|
+
i && Ze(o, v), g && Qe(o, v);
|
|
457
457
|
}
|
|
458
|
-
return Ke(e,
|
|
458
|
+
return Ke(e, i, g, u, n, pe.current, o);
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
461
|
var z = k.ReactCurrentOwner, he = k.ReactDebugCurrentFrame;
|
|
@@ -466,10 +466,10 @@ function dr() {
|
|
|
466
466
|
} else
|
|
467
467
|
he.setExtraStackFrame(null);
|
|
468
468
|
}
|
|
469
|
-
var
|
|
470
|
-
|
|
471
|
-
function
|
|
472
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
469
|
+
var H;
|
|
470
|
+
H = !1;
|
|
471
|
+
function X(e) {
|
|
472
|
+
return typeof e == "object" && e !== null && e.$$typeof === a;
|
|
473
473
|
}
|
|
474
474
|
function ge() {
|
|
475
475
|
{
|
|
@@ -486,7 +486,7 @@ Check the render method of \`` + e + "`.";
|
|
|
486
486
|
function rr(e) {
|
|
487
487
|
return "";
|
|
488
488
|
}
|
|
489
|
-
var
|
|
489
|
+
var ye = {};
|
|
490
490
|
function tr(e) {
|
|
491
491
|
{
|
|
492
492
|
var r = ge();
|
|
@@ -499,39 +499,39 @@ Check the top-level render call using <` + t + ">.");
|
|
|
499
499
|
return r;
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function Ee(e, r) {
|
|
503
503
|
{
|
|
504
504
|
if (!e._store || e._store.validated || e.key != null)
|
|
505
505
|
return;
|
|
506
506
|
e._store.validated = !0;
|
|
507
507
|
var t = tr(r);
|
|
508
|
-
if (
|
|
508
|
+
if (ye[t])
|
|
509
509
|
return;
|
|
510
|
-
|
|
511
|
-
var
|
|
512
|
-
e && e._owner && e._owner !== z.current && (
|
|
510
|
+
ye[t] = !0;
|
|
511
|
+
var n = "";
|
|
512
|
+
e && e._owner && e._owner !== z.current && (n = " It was passed a child from " + C(e._owner.type) + "."), $(e), h('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), $(null);
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function Re(e, r) {
|
|
516
516
|
{
|
|
517
517
|
if (typeof e != "object")
|
|
518
518
|
return;
|
|
519
519
|
if (G(e))
|
|
520
520
|
for (var t = 0; t < e.length; t++) {
|
|
521
|
-
var
|
|
522
|
-
|
|
521
|
+
var n = e[t];
|
|
522
|
+
X(n) && Ee(n, r);
|
|
523
523
|
}
|
|
524
|
-
else if (
|
|
524
|
+
else if (X(e))
|
|
525
525
|
e._store && (e._store.validated = !0);
|
|
526
526
|
else if (e) {
|
|
527
|
-
var
|
|
528
|
-
if (typeof
|
|
529
|
-
for (var
|
|
530
|
-
|
|
527
|
+
var u = we(e);
|
|
528
|
+
if (typeof u == "function" && u !== e.entries)
|
|
529
|
+
for (var c = u.call(e), o; !(o = c.next()).done; )
|
|
530
|
+
X(o.value) && Ee(o.value, r);
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function nr(e) {
|
|
535
535
|
{
|
|
536
536
|
var r = e.type;
|
|
537
537
|
if (r == null || typeof r == "string")
|
|
@@ -539,78 +539,78 @@ Check the top-level render call using <` + t + ">.");
|
|
|
539
539
|
var t;
|
|
540
540
|
if (typeof r == "function")
|
|
541
541
|
t = r.propTypes;
|
|
542
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
|
542
|
+
else if (typeof r == "object" && (r.$$typeof === b || // Note: Memo only checks outer props here.
|
|
543
543
|
// Inner props are checked in the reconciler.
|
|
544
544
|
r.$$typeof === x))
|
|
545
545
|
t = r.propTypes;
|
|
546
546
|
else
|
|
547
547
|
return;
|
|
548
548
|
if (t) {
|
|
549
|
-
var
|
|
550
|
-
Ue(t, e.props, "prop",
|
|
551
|
-
} else if (r.PropTypes !== void 0 && !
|
|
552
|
-
|
|
553
|
-
var
|
|
554
|
-
h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
549
|
+
var n = C(r);
|
|
550
|
+
Ue(t, e.props, "prop", n, e);
|
|
551
|
+
} else if (r.PropTypes !== void 0 && !H) {
|
|
552
|
+
H = !0;
|
|
553
|
+
var u = C(r);
|
|
554
|
+
h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", u || "Unknown");
|
|
555
555
|
}
|
|
556
556
|
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function ar(e) {
|
|
560
560
|
{
|
|
561
561
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
562
|
-
var
|
|
563
|
-
if (
|
|
564
|
-
$(e), h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
|
562
|
+
var n = r[t];
|
|
563
|
+
if (n !== "children" && n !== "key") {
|
|
564
|
+
$(e), h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), $(null);
|
|
565
565
|
break;
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
568
|
e.ref !== null && ($(e), h("Invalid attribute `ref` supplied to `React.Fragment`."), $(null));
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
var
|
|
572
|
-
function xe(e, r, t,
|
|
571
|
+
var _e = {};
|
|
572
|
+
function xe(e, r, t, n, u, c) {
|
|
573
573
|
{
|
|
574
|
-
var
|
|
575
|
-
if (!
|
|
576
|
-
var
|
|
577
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
574
|
+
var o = Ae(e);
|
|
575
|
+
if (!o) {
|
|
576
|
+
var i = "";
|
|
577
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (i += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
578
578
|
var g = rr();
|
|
579
|
-
g ?
|
|
580
|
-
var
|
|
581
|
-
e === null ?
|
|
579
|
+
g ? i += g : i += ge();
|
|
580
|
+
var d;
|
|
581
|
+
e === null ? d = "null" : G(e) ? d = "array" : e !== void 0 && e.$$typeof === a ? (d = "<" + (C(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : d = typeof e, h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", d, i);
|
|
582
582
|
}
|
|
583
|
-
var
|
|
584
|
-
if (
|
|
585
|
-
return
|
|
586
|
-
if (
|
|
587
|
-
var
|
|
588
|
-
if (
|
|
589
|
-
if (
|
|
590
|
-
if (G(
|
|
591
|
-
for (var D = 0; D <
|
|
592
|
-
|
|
593
|
-
Object.freeze && Object.freeze(
|
|
583
|
+
var v = er(e, r, t, u, c);
|
|
584
|
+
if (v == null)
|
|
585
|
+
return v;
|
|
586
|
+
if (o) {
|
|
587
|
+
var _ = r.children;
|
|
588
|
+
if (_ !== void 0)
|
|
589
|
+
if (n)
|
|
590
|
+
if (G(_)) {
|
|
591
|
+
for (var D = 0; D < _.length; D++)
|
|
592
|
+
Re(_[D], e);
|
|
593
|
+
Object.freeze && Object.freeze(_);
|
|
594
594
|
} else
|
|
595
595
|
h("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
596
596
|
else
|
|
597
|
-
|
|
597
|
+
Re(_, e);
|
|
598
598
|
}
|
|
599
599
|
if (N.call(r, "key")) {
|
|
600
|
-
var
|
|
600
|
+
var P = C(e), E = Object.keys(r).filter(function(cr) {
|
|
601
601
|
return cr !== "key";
|
|
602
|
-
}), Z =
|
|
603
|
-
if (!
|
|
604
|
-
var ur =
|
|
602
|
+
}), Z = E.length > 0 ? "{key: someKey, " + E.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
603
|
+
if (!_e[P + Z]) {
|
|
604
|
+
var ur = E.length > 0 ? "{" + E.join(": ..., ") + ": ...}" : "{}";
|
|
605
605
|
h(`A props object containing a "key" prop is being spread into JSX:
|
|
606
606
|
let props = %s;
|
|
607
607
|
<%s {...props} />
|
|
608
608
|
React keys must be passed directly to JSX without using spread:
|
|
609
609
|
let props = %s;
|
|
610
|
-
<%s key={someKey} {...props} />`, Z,
|
|
610
|
+
<%s key={someKey} {...props} />`, Z, P, ur, P), _e[P + Z] = !0;
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
|
-
return e ===
|
|
613
|
+
return e === f ? ar(v) : nr(v), v;
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
616
|
function ir(e, r, t) {
|
|
@@ -620,100 +620,107 @@ React keys must be passed directly to JSX without using spread:
|
|
|
620
620
|
return xe(e, r, t, !1);
|
|
621
621
|
}
|
|
622
622
|
var sr = or, lr = ir;
|
|
623
|
-
I.Fragment =
|
|
623
|
+
I.Fragment = f, I.jsx = sr, I.jsxs = lr;
|
|
624
624
|
}()), I;
|
|
625
625
|
}
|
|
626
626
|
var Ce;
|
|
627
627
|
function vr() {
|
|
628
628
|
return Ce || (Ce = 1, process.env.NODE_ENV === "production" ? U.exports = fr() : U.exports = dr()), U.exports;
|
|
629
629
|
}
|
|
630
|
-
var
|
|
630
|
+
var s = vr();
|
|
631
631
|
const pr = ({
|
|
632
|
-
type:
|
|
633
|
-
title:
|
|
634
|
-
size:
|
|
635
|
-
label:
|
|
632
|
+
type: l = "default",
|
|
633
|
+
title: a,
|
|
634
|
+
size: p,
|
|
635
|
+
label: f,
|
|
636
636
|
onClick: m,
|
|
637
|
-
isDisabled:
|
|
637
|
+
isDisabled: R = !1,
|
|
638
638
|
children: O,
|
|
639
639
|
className: j = ""
|
|
640
640
|
}) => {
|
|
641
|
-
const
|
|
642
|
-
return /* @__PURE__ */
|
|
641
|
+
const b = `btn-${l}`, T = p ? `btn-${p}` : "", x = `${`btn ${b} ${T}`.trim()} ${j}`.trim();
|
|
642
|
+
return /* @__PURE__ */ s.jsx(
|
|
643
643
|
"button",
|
|
644
644
|
{
|
|
645
645
|
className: x,
|
|
646
646
|
type: "button",
|
|
647
647
|
onClick: m,
|
|
648
|
-
disabled:
|
|
649
|
-
children: /* @__PURE__ */
|
|
650
|
-
O ||
|
|
648
|
+
disabled: R,
|
|
649
|
+
children: /* @__PURE__ */ s.jsxs("div", { className: "flex items-center", children: [
|
|
650
|
+
O || f,
|
|
651
651
|
" ",
|
|
652
|
-
|
|
652
|
+
a
|
|
653
653
|
] })
|
|
654
654
|
}
|
|
655
655
|
);
|
|
656
|
-
}, hr = ({ children:
|
|
656
|
+
}, hr = ({ children: l, eventKey: a, active: p }) => /* @__PURE__ */ s.jsx(
|
|
657
657
|
"div",
|
|
658
658
|
{
|
|
659
|
-
className: `tab-pane ${
|
|
660
|
-
id: `${
|
|
659
|
+
className: `tab-pane ${p ? "active" : ""}`,
|
|
660
|
+
id: `${a}-panel`,
|
|
661
661
|
role: "tabpanel",
|
|
662
|
-
"aria-labelledby": `${
|
|
663
|
-
children:
|
|
662
|
+
"aria-labelledby": `${a}-tab`,
|
|
663
|
+
children: l
|
|
664
664
|
},
|
|
665
|
-
|
|
666
|
-
), gr = ({ activeKey:
|
|
667
|
-
/* @__PURE__ */
|
|
665
|
+
a
|
|
666
|
+
), gr = ({ activeKey: l, onSelect: a, children: p }) => /* @__PURE__ */ s.jsxs("div", { className: "tabs-container", children: [
|
|
667
|
+
/* @__PURE__ */ s.jsx("ul", { className: "nav nav-tabs", role: "tablist", children: p.map(({ props: { eventKey: f, title: m } }) => /* @__PURE__ */ s.jsx("li", { className: l === f ? "active" : "", children: /* @__PURE__ */ s.jsx(
|
|
668
668
|
"a",
|
|
669
669
|
{
|
|
670
|
-
href: `#${
|
|
671
|
-
onClick: (
|
|
672
|
-
|
|
670
|
+
href: `#${f}`,
|
|
671
|
+
onClick: (R) => {
|
|
672
|
+
R.preventDefault(), a(f);
|
|
673
673
|
},
|
|
674
674
|
children: m
|
|
675
675
|
}
|
|
676
|
-
) },
|
|
677
|
-
/* @__PURE__ */
|
|
676
|
+
) }, f)) }),
|
|
677
|
+
/* @__PURE__ */ s.jsx("div", { className: "tabs-container", children: /* @__PURE__ */ s.jsx("div", { className: "tab-content pf-c-tab-content", children: p.map(({ props: { eventKey: f, children: m } }) => /* @__PURE__ */ s.jsx(
|
|
678
678
|
"div",
|
|
679
679
|
{
|
|
680
|
-
className: `tab-pane ${
|
|
681
|
-
id: `${
|
|
680
|
+
className: `tab-pane ${l === f ? "active" : ""}`,
|
|
681
|
+
id: `${f}-panel`,
|
|
682
682
|
role: "tabpanel",
|
|
683
|
-
"aria-labelledby": `${
|
|
683
|
+
"aria-labelledby": `${f}-tab`,
|
|
684
684
|
children: m
|
|
685
685
|
},
|
|
686
|
-
|
|
686
|
+
f
|
|
687
687
|
)) }) })
|
|
688
|
-
] }),
|
|
689
|
-
id:
|
|
690
|
-
type:
|
|
691
|
-
placeholder:
|
|
692
|
-
value:
|
|
688
|
+
] }), yr = ({
|
|
689
|
+
id: l,
|
|
690
|
+
type: a,
|
|
691
|
+
placeholder: p = "",
|
|
692
|
+
value: f,
|
|
693
693
|
onChange: m,
|
|
694
|
-
className:
|
|
695
|
-
}) => /* @__PURE__ */
|
|
694
|
+
className: R = "form-control"
|
|
695
|
+
}) => /* @__PURE__ */ s.jsx(
|
|
696
696
|
"input",
|
|
697
697
|
{
|
|
698
|
-
type:
|
|
699
|
-
id:
|
|
700
|
-
className:
|
|
701
|
-
placeholder:
|
|
702
|
-
value:
|
|
698
|
+
type: a,
|
|
699
|
+
id: l,
|
|
700
|
+
className: R,
|
|
701
|
+
placeholder: p,
|
|
702
|
+
value: f,
|
|
703
703
|
onChange: m
|
|
704
704
|
}
|
|
705
|
-
),
|
|
706
|
-
if (!
|
|
707
|
-
const
|
|
708
|
-
return /* @__PURE__ */
|
|
709
|
-
/* @__PURE__ */
|
|
710
|
-
/* @__PURE__ */
|
|
711
|
-
/* @__PURE__ */
|
|
705
|
+
), Er = ({ title: l, isOpen: a, onClose: p, children: f, size: m }) => {
|
|
706
|
+
if (!a) return null;
|
|
707
|
+
const R = m ? `modal-${m}` : "";
|
|
708
|
+
return /* @__PURE__ */ s.jsx("div", { className: "modal fade in", style: { display: "block" }, tabIndex: -1, role: "dialog", children: /* @__PURE__ */ s.jsx("div", { className: `modal-dialog ${R}`, role: "document", children: /* @__PURE__ */ s.jsxs("div", { className: "modal-content", children: [
|
|
709
|
+
/* @__PURE__ */ s.jsxs("div", { className: "modal-header", children: [
|
|
710
|
+
/* @__PURE__ */ s.jsx("button", { type: "button", className: "close", onClick: p, "aria-hidden": "true", children: /* @__PURE__ */ s.jsx("span", { className: "pficon pficon-close" }) }),
|
|
711
|
+
/* @__PURE__ */ s.jsx("h4", { className: "modal-title", children: l })
|
|
712
712
|
] }),
|
|
713
|
-
/* @__PURE__ */
|
|
713
|
+
/* @__PURE__ */ s.jsx("div", { className: "modal-body", children: f })
|
|
714
714
|
] }) }) });
|
|
715
|
-
},
|
|
716
|
-
|
|
715
|
+
}, Rr = ({ variant: l, children: a }) => {
|
|
716
|
+
const f = {
|
|
717
|
+
warning: "text-yellow-600",
|
|
718
|
+
success: "text-green-600",
|
|
719
|
+
error: "text-red-600"
|
|
720
|
+
}[l] || "";
|
|
721
|
+
return /* @__PURE__ */ s.jsx("p", { className: f, children: a });
|
|
722
|
+
}, _r = ({ children: l, ...a }) => /* @__PURE__ */ s.jsx("table", { ...a, children: l }), xr = ({ children: l, ...a }) => /* @__PURE__ */ s.jsx("tbody", { ...a, children: l }), jr = ({ children: l, ...a }) => /* @__PURE__ */ s.jsx("td", { ...a, children: l }), Tr = ({ children: l, ...a }) => /* @__PURE__ */ s.jsx("th", { ...a, children: l }), Cr = ({ children: l, ...a }) => /* @__PURE__ */ s.jsx("thead", { ...a, children: l }), Or = ({ children: l, ...a }) => /* @__PURE__ */ s.jsx("tr", { ...a, children: l }), br = ({ items: l }) => /* @__PURE__ */ s.jsx("ol", { className: "breadcrumb", children: l.map((a, p) => /* @__PURE__ */ s.jsx("li", { className: a.active ? "active" : "", children: a.active ? a.title : /* @__PURE__ */ s.jsx("a", { href: a.href, children: a.title }) }, p)) }), Sr = () => /* @__PURE__ */ s.jsxs("div", { children: [
|
|
723
|
+
/* @__PURE__ */ s.jsx(
|
|
717
724
|
br,
|
|
718
725
|
{
|
|
719
726
|
items: [
|
|
@@ -722,13 +729,20 @@ const pr = ({
|
|
|
722
729
|
]
|
|
723
730
|
}
|
|
724
731
|
),
|
|
725
|
-
/* @__PURE__ */
|
|
732
|
+
/* @__PURE__ */ s.jsx(pr, { children: "Hello" })
|
|
726
733
|
] });
|
|
727
734
|
export {
|
|
728
735
|
pr as Button,
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
736
|
+
Rr as HelpText,
|
|
737
|
+
yr as Input,
|
|
738
|
+
Er as Modal,
|
|
739
|
+
Sr as SampleComp,
|
|
732
740
|
hr as Tab,
|
|
733
|
-
|
|
741
|
+
_r as Table,
|
|
742
|
+
gr as Tabs,
|
|
743
|
+
xr as Tbody,
|
|
744
|
+
jr as Td,
|
|
745
|
+
Tr as Th,
|
|
746
|
+
Cr as Thead,
|
|
747
|
+
Or as Tr
|
|
734
748
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(p,D){typeof exports=="object"&&typeof module<"u"?D(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],D):(p=typeof globalThis<"u"?globalThis:p||self,D(p["ovirt-ui-toolkit"]={},p.React))})(this,function(p,D){"use strict";var M={exports:{}},A={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var ee;function we(){if(ee)return A;ee=1;var
|
|
9
|
+
*/var ee;function we(){if(ee)return A;ee=1;var l=D,a=Symbol.for("react.element"),b=Symbol.for("react.fragment"),f=Object.prototype.hasOwnProperty,m=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,_={key:!0,ref:!0,__self:!0,__source:!0};function S(x,h,C){var E,j={},P=null,L=null;C!==void 0&&(P=""+C),h.key!==void 0&&(P=""+h.key),h.ref!==void 0&&(L=h.ref);for(E in h)f.call(h,E)&&!_.hasOwnProperty(E)&&(j[E]=h[E]);if(x&&x.defaultProps)for(E in h=x.defaultProps,h)j[E]===void 0&&(j[E]=h[E]);return{$$typeof:a,type:x,key:P,ref:L,props:j,_owner:m.current}}return A.Fragment=b,A.jsx=S,A.jsxs=S,A}var I={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,17 +14,17 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var re;function ke(){return re||(re=1,process.env.NODE_ENV!=="production"&&function(){var
|
|
18
|
-
`+G+e}}var
|
|
19
|
-
`),
|
|
20
|
-
`),
|
|
21
|
-
`+
|
|
17
|
+
*/var re;function ke(){return re||(re=1,process.env.NODE_ENV!=="production"&&function(){var l=D,a=Symbol.for("react.element"),b=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),x=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),ae=Symbol.iterator,qe="@@iterator";function Ge(e){if(e===null||typeof e!="object")return null;var r=ae&&e[ae]||e[qe];return typeof r=="function"?r:null}var F=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];He("error",e,t)}}function He(e,r,t){{var n=F.ReactDebugCurrentFrame,u=n.getStackAddendum();u!==""&&(r+="%s",t=t.concat([u]));var c=t.map(function(o){return String(o)});c.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,c)}}var ze=!1,Xe=!1,Ze=!1,Qe=!1,Ke=!1,ie;ie=Symbol.for("react.module.reference");function er(e){return!!(typeof e=="string"||typeof e=="function"||e===f||e===_||Ke||e===m||e===C||e===E||Qe||e===L||ze||Xe||Ze||typeof e=="object"&&e!==null&&(e.$$typeof===P||e.$$typeof===j||e.$$typeof===S||e.$$typeof===x||e.$$typeof===h||e.$$typeof===ie||e.getModuleId!==void 0))}function rr(e,r,t){var n=e.displayName;if(n)return n;var u=r.displayName||r.name||"";return u!==""?t+"("+u+")":t}function oe(e){return e.displayName||"Context"}function O(e){if(e==null)return null;if(typeof e.tag=="number"&&g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case f:return"Fragment";case b:return"Portal";case _:return"Profiler";case m:return"StrictMode";case C:return"Suspense";case E:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case x:var r=e;return oe(r)+".Consumer";case S:var t=e;return oe(t._context)+".Provider";case h:return rr(e,e.render,"ForwardRef");case j:var n=e.displayName||null;return n!==null?n:O(e.type)||"Memo";case P:{var u=e,c=u._payload,o=u._init;try{return O(o(c))}catch{return null}}}return null}var w=Object.assign,W=0,se,le,ue,ce,fe,de,ve;function pe(){}pe.__reactDisabledLog=!0;function tr(){{if(W===0){se=console.log,le=console.info,ue=console.warn,ce=console.error,fe=console.group,de=console.groupCollapsed,ve=console.groupEnd;var e={configurable:!0,enumerable:!0,value:pe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}W++}}function nr(){{if(W--,W===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:w({},e,{value:se}),info:w({},e,{value:le}),warn:w({},e,{value:ue}),error:w({},e,{value:ce}),group:w({},e,{value:fe}),groupCollapsed:w({},e,{value:de}),groupEnd:w({},e,{value:ve})})}W<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var q=F.ReactCurrentDispatcher,G;function V(e,r,t){{if(G===void 0)try{throw Error()}catch(u){var n=u.stack.trim().match(/\n( *(at )?)/);G=n&&n[1]||""}return`
|
|
18
|
+
`+G+e}}var H=!1,U;{var ar=typeof WeakMap=="function"?WeakMap:Map;U=new ar}function be(e,r){if(!e||H)return"";{var t=U.get(e);if(t!==void 0)return t}var n;H=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var c;c=q.current,q.current=null,tr();try{if(r){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(R){n=R}Reflect.construct(e,[],o)}else{try{o.call()}catch(R){n=R}e.call(o.prototype)}}else{try{throw Error()}catch(R){n=R}e()}}catch(R){if(R&&n&&typeof R.stack=="string"){for(var i=R.stack.split(`
|
|
19
|
+
`),y=n.stack.split(`
|
|
20
|
+
`),d=i.length-1,v=y.length-1;d>=1&&v>=0&&i[d]!==y[v];)v--;for(;d>=1&&v>=0;d--,v--)if(i[d]!==y[v]){if(d!==1||v!==1)do if(d--,v--,v<0||i[d]!==y[v]){var T=`
|
|
21
|
+
`+i[d].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&U.set(e,T),T}while(d>=1&&v>=0);break}}}finally{H=!1,q.current=c,nr(),Error.prepareStackTrace=u}var $=e?e.displayName||e.name:"",k=$?V($):"";return typeof e=="function"&&U.set(e,k),k}function ir(e,r,t){return be(e,!1)}function or(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function B(e,r,t){if(e==null)return"";if(typeof e=="function")return be(e,or(e));if(typeof e=="string")return V(e);switch(e){case C:return V("Suspense");case E:return V("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case h:return ir(e.render);case j:return B(e.type,r,t);case P:{var n=e,u=n._payload,c=n._init;try{return B(c(u),r,t)}catch{}}}return""}var Y=Object.prototype.hasOwnProperty,he={},me=F.ReactDebugCurrentFrame;function J(e){if(e){var r=e._owner,t=B(e.type,e._source,r?r.type:null);me.setExtraStackFrame(t)}else me.setExtraStackFrame(null)}function sr(e,r,t,n,u){{var c=Function.call.bind(Y);for(var o in e)if(c(e,o)){var i=void 0;try{if(typeof e[o]!="function"){var y=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`.");throw y.name="Invariant Violation",y}i=e[o](r,o,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(d){i=d}i&&!(i instanceof Error)&&(J(u),g("%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 i),J(null)),i instanceof Error&&!(i.message in he)&&(he[i.message]=!0,J(u),g("Failed %s type: %s",t,i.message),J(null))}}}var lr=Array.isArray;function z(e){return lr(e)}function ur(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function cr(e){try{return ge(e),!1}catch{return!0}}function ge(e){return""+e}function ye(e){if(cr(e))return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ur(e)),ge(e)}var Ee=F.ReactCurrentOwner,fr={key:!0,ref:!0,__self:!0,__source:!0},Re,_e;function dr(e){if(Y.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function vr(e){if(Y.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function pr(e,r){typeof e.ref=="string"&&Ee.current}function br(e,r){{var t=function(){Re||(Re=!0,g("%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))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function hr(e,r){{var t=function(){_e||(_e=!0,g("%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))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var mr=function(e,r,t,n,u,c,o){var i={$$typeof:a,type:e,key:r,ref:t,props:o,_owner:c};return i._store={},Object.defineProperty(i._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(i,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(i,"_source",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.freeze&&(Object.freeze(i.props),Object.freeze(i)),i};function gr(e,r,t,n,u){{var c,o={},i=null,y=null;t!==void 0&&(ye(t),i=""+t),vr(r)&&(ye(r.key),i=""+r.key),dr(r)&&(y=r.ref,pr(r,u));for(c in r)Y.call(r,c)&&!fr.hasOwnProperty(c)&&(o[c]=r[c]);if(e&&e.defaultProps){var d=e.defaultProps;for(c in d)o[c]===void 0&&(o[c]=d[c])}if(i||y){var v=typeof e=="function"?e.displayName||e.name||"Unknown":e;i&&br(o,v),y&&hr(o,v)}return mr(e,i,y,u,n,Ee.current,o)}}var X=F.ReactCurrentOwner,Te=F.ReactDebugCurrentFrame;function N(e){if(e){var r=e._owner,t=B(e.type,e._source,r?r.type:null);Te.setExtraStackFrame(t)}else Te.setExtraStackFrame(null)}var Z;Z=!1;function Q(e){return typeof e=="object"&&e!==null&&e.$$typeof===a}function je(){{if(X.current){var e=O(X.current.type);if(e)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+e+"`."}return""}}function
|
|
23
|
+
Check the render method of \``+e+"`."}return""}}function yr(e){return""}var xe={};function Er(e){{var r=je();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+t+">.")}return r}}function Ce(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=
|
|
25
|
+
Check the top-level render call using <`+t+">.")}return r}}function Ce(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=Er(r);if(xe[t])return;xe[t]=!0;var n="";e&&e._owner&&e._owner!==X.current&&(n=" It was passed a child from "+O(e._owner.type)+"."),N(e),g('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),N(null)}}function Oe(e,r){{if(typeof e!="object")return;if(z(e))for(var t=0;t<e.length;t++){var n=e[t];Q(n)&&Ce(n,r)}else if(Q(e))e._store&&(e._store.validated=!0);else if(e){var u=Ge(e);if(typeof u=="function"&&u!==e.entries)for(var c=u.call(e),o;!(o=c.next()).done;)Q(o.value)&&Ce(o.value,r)}}}function Rr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===h||r.$$typeof===j))t=r.propTypes;else return;if(t){var n=O(r);sr(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!Z){Z=!0;var u=O(r);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",u||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function _r(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){N(e),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),N(null);break}}e.ref!==null&&(N(e),g("Invalid attribute `ref` supplied to `React.Fragment`."),N(null))}}var Se={};function Pe(e,r,t,n,u,c){{var o=er(e);if(!o){var i="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(i+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var y=yr();y?i+=y:i+=je();var d;e===null?d="null":z(e)?d="array":e!==void 0&&e.$$typeof===a?(d="<"+(O(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):d=typeof e,g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",d,i)}var v=gr(e,r,t,u,c);if(v==null)return v;if(o){var T=r.children;if(T!==void 0)if(n)if(z(T)){for(var $=0;$<T.length;$++)Oe(T[$],e);Object.freeze&&Object.freeze(T)}else g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Oe(T,e)}if(Y.call(r,"key")){var k=O(e),R=Object.keys(r).filter(function(Sr){return Sr!=="key"}),K=R.length>0?"{key: someKey, "+R.join(": ..., ")+": ...}":"{key: someKey}";if(!Se[k+K]){var Or=R.length>0?"{"+R.join(": ..., ")+": ...}":"{}";g(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,K,k,
|
|
30
|
+
<%s key={someKey} {...props} />`,K,k,Or,k),Se[k+K]=!0}}return e===f?_r(v):Rr(v),v}}function Tr(e,r,t){return Pe(e,r,t,!0)}function jr(e,r,t){return Pe(e,r,t,!1)}var xr=jr,Cr=Tr;I.Fragment=f,I.jsx=xr,I.jsxs=Cr}()),I}var te;function De(){return te||(te=1,process.env.NODE_ENV==="production"?M.exports=we():M.exports=ke()),M.exports}var s=De();const ne=({type:l="default",title:a,size:b,label:f,onClick:m,isDisabled:_=!1,children:S,className:x=""})=>{const h=`btn-${l}`,C=b?`btn-${b}`:"",j=`${`btn ${h} ${C}`.trim()} ${x}`.trim();return s.jsx("button",{className:j,type:"button",onClick:m,disabled:_,children:s.jsxs("div",{className:"flex items-center",children:[S||f," ",a]})})},Fe=({children:l,eventKey:a,active:b})=>s.jsx("div",{className:`tab-pane ${b?"active":""}`,id:`${a}-panel`,role:"tabpanel","aria-labelledby":`${a}-tab`,children:l},a),Ne=({activeKey:l,onSelect:a,children:b})=>s.jsxs("div",{className:"tabs-container",children:[s.jsx("ul",{className:"nav nav-tabs",role:"tablist",children:b.map(({props:{eventKey:f,title:m}})=>s.jsx("li",{className:l===f?"active":"",children:s.jsx("a",{href:`#${f}`,onClick:_=>{_.preventDefault(),a(f)},children:m})},f))}),s.jsx("div",{className:"tabs-container",children:s.jsx("div",{className:"tab-content pf-c-tab-content",children:b.map(({props:{eventKey:f,children:m}})=>s.jsx("div",{className:`tab-pane ${l===f?"active":""}`,id:`${f}-panel`,role:"tabpanel","aria-labelledby":`${f}-tab`,children:m},f))})})]}),$e=({id:l,type:a,placeholder:b="",value:f,onChange:m,className:_="form-control"})=>s.jsx("input",{type:a,id:l,className:_,placeholder:b,value:f,onChange:m}),Ae=({title:l,isOpen:a,onClose:b,children:f,size:m})=>{if(!a)return null;const _=m?`modal-${m}`:"";return s.jsx("div",{className:"modal fade in",style:{display:"block"},tabIndex:-1,role:"dialog",children:s.jsx("div",{className:`modal-dialog ${_}`,role:"document",children:s.jsxs("div",{className:"modal-content",children:[s.jsxs("div",{className:"modal-header",children:[s.jsx("button",{type:"button",className:"close",onClick:b,"aria-hidden":"true",children:s.jsx("span",{className:"pficon pficon-close"})}),s.jsx("h4",{className:"modal-title",children:l})]}),s.jsx("div",{className:"modal-body",children:f})]})})})},Ie=({variant:l,children:a})=>{const f={warning:"text-yellow-600",success:"text-green-600",error:"text-red-600"}[l]||"";return s.jsx("p",{className:f,children:a})},We=({children:l,...a})=>s.jsx("table",{...a,children:l}),Ye=({children:l,...a})=>s.jsx("tbody",{...a,children:l}),Me=({children:l,...a})=>s.jsx("td",{...a,children:l}),Le=({children:l,...a})=>s.jsx("th",{...a,children:l}),Ve=({children:l,...a})=>s.jsx("thead",{...a,children:l}),Ue=({children:l,...a})=>s.jsx("tr",{...a,children:l}),Be=({items:l})=>s.jsx("ol",{className:"breadcrumb",children:l.map((a,b)=>s.jsx("li",{className:a.active?"active":"",children:a.active?a.title:s.jsx("a",{href:a.href,children:a.title})},b))}),Je=()=>s.jsxs("div",{children:[s.jsx(Be,{items:[{title:"Дополнения",active:!0},{title:"Название плагина",href:"#Название плагина"}]}),s.jsx(ne,{children:"Hello"})]});p.Button=ne,p.HelpText=Ie,p.Input=$e,p.Modal=Ae,p.SampleComp=Je,p.Tab=Fe,p.Table=We,p.Tabs=Ne,p.Tbody=Ye,p.Td=Me,p.Th=Le,p.Thead=Ve,p.Tr=Ue,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|