ovirt-ui-toolkit 0.0.6 → 0.0.7
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/index.d.ts +1 -3
- package/dist/ovirt-ui-toolkit.es.js +100 -92
- package/dist/ovirt-ui-toolkit.umd.js +7 -7
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,5 @@ export { default as Tab } from './components/Tab/Tab';
|
|
|
3
3
|
export { default as Tabs } from './components/Tab/Tabs';
|
|
4
4
|
export { default as Input } from './components/Input/Input';
|
|
5
5
|
export { default as Modal } from './components/Modal/Modal';
|
|
6
|
+
export { default as HelpText } from './components/HelpText/HelpText';
|
|
6
7
|
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,
|
|
16
|
+
var v = Oe, u = Symbol.for("react.element"), p = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, m = v.__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
18
|
var E, x = {}, S = null, W = null;
|
|
19
|
-
T !== void 0 && (S = "" + T),
|
|
20
|
-
for (E in
|
|
21
|
-
if (j && j.defaultProps) for (E in
|
|
19
|
+
T !== void 0 && (S = "" + T), b.key !== void 0 && (S = "" + b.key), b.ref !== void 0 && (W = b.ref);
|
|
20
|
+
for (E in b) c.call(b, E) && !R.hasOwnProperty(E) && (x[E] = b[E]);
|
|
21
|
+
if (j && j.defaultProps) for (E in b = j.defaultProps, b) x[E] === void 0 && (x[E] = b[E]);
|
|
22
22
|
return { $$typeof: u, 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,22 +36,22 @@ 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 v = Oe, u = Symbol.for("react.element"), p = Symbol.for("react.portal"), c = 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"), E = 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 = v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47
47
|
function h(e) {
|
|
48
48
|
{
|
|
49
49
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
|
|
50
50
|
t[a - 1] = arguments[a];
|
|
51
|
-
|
|
51
|
+
Pe("error", e, t);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Pe(e, r, t) {
|
|
55
55
|
{
|
|
56
56
|
var a = k.ReactDebugCurrentFrame, o = a.getStackAddendum();
|
|
57
57
|
o !== "" && (r += "%s", t = t.concat([o]));
|
|
@@ -64,7 +64,7 @@ function dr() {
|
|
|
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 === c || e ===
|
|
67
|
+
return !!(typeof e == "string" || typeof e == "function" || e === c || e === R || Ne || e === m || e === T || e === E || 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.
|
|
@@ -90,9 +90,9 @@ function dr() {
|
|
|
90
90
|
switch (e) {
|
|
91
91
|
case c:
|
|
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";
|
|
@@ -109,7 +109,7 @@ 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
115
|
var a = e.displayName || null;
|
|
@@ -125,7 +125,7 @@ function dr() {
|
|
|
125
125
|
}
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
128
|
-
var
|
|
128
|
+
var w = Object.assign, F = 0, re, te, ae, ne, ie, oe, se;
|
|
129
129
|
function le() {
|
|
130
130
|
}
|
|
131
131
|
le.__reactDisabledLog = !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:
|
|
170
|
+
warn: w({}, e, {
|
|
171
171
|
value: ae
|
|
172
172
|
}),
|
|
173
|
-
error:
|
|
173
|
+
error: w({}, e, {
|
|
174
174
|
value: ne
|
|
175
175
|
}),
|
|
176
|
-
group:
|
|
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
|
});
|
|
@@ -232,29 +232,29 @@ function dr() {
|
|
|
232
232
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
233
233
|
try {
|
|
234
234
|
Reflect.construct(i, []);
|
|
235
|
-
} catch (
|
|
236
|
-
a =
|
|
235
|
+
} catch (y) {
|
|
236
|
+
a = y;
|
|
237
237
|
}
|
|
238
238
|
Reflect.construct(e, [], i);
|
|
239
239
|
} else {
|
|
240
240
|
try {
|
|
241
241
|
i.call();
|
|
242
|
-
} catch (
|
|
243
|
-
a =
|
|
242
|
+
} catch (y) {
|
|
243
|
+
a = y;
|
|
244
244
|
}
|
|
245
245
|
e.call(i.prototype);
|
|
246
246
|
}
|
|
247
247
|
} else {
|
|
248
248
|
try {
|
|
249
249
|
throw Error();
|
|
250
|
-
} catch (
|
|
251
|
-
a =
|
|
250
|
+
} catch (y) {
|
|
251
|
+
a = y;
|
|
252
252
|
}
|
|
253
253
|
e();
|
|
254
254
|
}
|
|
255
|
-
} catch (
|
|
256
|
-
if (
|
|
257
|
-
for (var n =
|
|
255
|
+
} catch (y) {
|
|
256
|
+
if (y && a && typeof y.stack == "string") {
|
|
257
|
+
for (var n = y.stack.split(`
|
|
258
258
|
`), g = a.stack.split(`
|
|
259
259
|
`), f = n.length - 1, d = g.length - 1; f >= 1 && d >= 0 && n[f] !== g[d]; )
|
|
260
260
|
d--;
|
|
@@ -263,9 +263,9 @@ function dr() {
|
|
|
263
263
|
if (f !== 1 || d !== 1)
|
|
264
264
|
do
|
|
265
265
|
if (f--, d--, d < 0 || n[f] !== g[d]) {
|
|
266
|
-
var
|
|
266
|
+
var _ = `
|
|
267
267
|
` + n[f].replace(" at new ", " at ");
|
|
268
|
-
return e.displayName &&
|
|
268
|
+
return e.displayName && _.includes("<anonymous>") && (_ = _.replace("<anonymous>", e.displayName)), typeof e == "function" && L.set(e, _), _;
|
|
269
269
|
}
|
|
270
270
|
while (f >= 1 && d >= 0);
|
|
271
271
|
break;
|
|
@@ -274,8 +274,8 @@ function dr() {
|
|
|
274
274
|
} finally {
|
|
275
275
|
q = !1, B.current = s, Ye(), Error.prepareStackTrace = o;
|
|
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);
|
|
@@ -299,7 +299,7 @@ function dr() {
|
|
|
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);
|
|
@@ -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) {
|
|
@@ -443,7 +443,7 @@ function dr() {
|
|
|
443
443
|
function er(e, r, t, a, o) {
|
|
444
444
|
{
|
|
445
445
|
var s, i = {}, n = null, g = null;
|
|
446
|
-
t !== void 0 && (ve(t), n = "" + t),
|
|
446
|
+
t !== void 0 && (ve(t), n = "" + t), He(r) && (ve(r.key), n = "" + r.key), ze(r) && (g = r.ref, Xe(r, o));
|
|
447
447
|
for (s in r)
|
|
448
448
|
N.call(r, s) && !Ge.hasOwnProperty(s) && (i[s] = r[s]);
|
|
449
449
|
if (e && e.defaultProps) {
|
|
@@ -466,9 +466,9 @@ function dr() {
|
|
|
466
466
|
} else
|
|
467
467
|
he.setExtraStackFrame(null);
|
|
468
468
|
}
|
|
469
|
-
var
|
|
470
|
-
|
|
471
|
-
function
|
|
469
|
+
var H;
|
|
470
|
+
H = !1;
|
|
471
|
+
function X(e) {
|
|
472
472
|
return typeof e == "object" && e !== null && e.$$typeof === u;
|
|
473
473
|
}
|
|
474
474
|
function ge() {
|
|
@@ -499,7 +499,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
499
499
|
return r;
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function ye(e, r) {
|
|
503
503
|
{
|
|
504
504
|
if (!e._store || e._store.validated || e.key != null)
|
|
505
505
|
return;
|
|
@@ -512,22 +512,22 @@ Check the top-level render call using <` + t + ">.");
|
|
|
512
512
|
e && e._owner && e._owner !== z.current && (a = " 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, a), $(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
521
|
var a = e[t];
|
|
522
|
-
|
|
522
|
+
X(a) && ye(a, 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 o =
|
|
527
|
+
var o = we(e);
|
|
528
528
|
if (typeof o == "function" && o !== e.entries)
|
|
529
529
|
for (var s = o.call(e), i; !(i = s.next()).done; )
|
|
530
|
-
|
|
530
|
+
X(i.value) && ye(i.value, r);
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
}
|
|
@@ -539,7 +539,7 @@ 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;
|
|
@@ -548,8 +548,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
548
548
|
if (t) {
|
|
549
549
|
var a = C(r);
|
|
550
550
|
Ue(t, e.props, "prop", a, e);
|
|
551
|
-
} else if (r.PropTypes !== void 0 && !
|
|
552
|
-
|
|
551
|
+
} else if (r.PropTypes !== void 0 && !H) {
|
|
552
|
+
H = !0;
|
|
553
553
|
var o = C(r);
|
|
554
554
|
h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
|
|
555
555
|
}
|
|
@@ -568,7 +568,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
568
568
|
e.ref !== null && ($(e), h("Invalid attribute `ref` supplied to `React.Fragment`."), $(null));
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
var
|
|
571
|
+
var _e = {};
|
|
572
572
|
function xe(e, r, t, a, o, s) {
|
|
573
573
|
{
|
|
574
574
|
var i = Ae(e);
|
|
@@ -584,30 +584,30 @@ Check the top-level render call using <` + t + ">.");
|
|
|
584
584
|
if (d == null)
|
|
585
585
|
return d;
|
|
586
586
|
if (i) {
|
|
587
|
-
var
|
|
588
|
-
if (
|
|
587
|
+
var _ = r.children;
|
|
588
|
+
if (_ !== void 0)
|
|
589
589
|
if (a)
|
|
590
|
-
if (G(
|
|
591
|
-
for (var D = 0; D <
|
|
592
|
-
|
|
593
|
-
Object.freeze && Object.freeze(
|
|
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), y = Object.keys(r).filter(function(cr) {
|
|
601
601
|
return cr !== "key";
|
|
602
|
-
}), Z =
|
|
603
|
-
if (!
|
|
604
|
-
var ur =
|
|
602
|
+
}), Z = y.length > 0 ? "{key: someKey, " + y.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
603
|
+
if (!_e[P + Z]) {
|
|
604
|
+
var ur = y.length > 0 ? "{" + y.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
613
|
return e === c ? nr(d) : ar(d), d;
|
|
@@ -629,23 +629,23 @@ function vr() {
|
|
|
629
629
|
}
|
|
630
630
|
var l = vr();
|
|
631
631
|
const pr = ({
|
|
632
|
-
type:
|
|
632
|
+
type: v = "default",
|
|
633
633
|
title: u,
|
|
634
|
-
size:
|
|
634
|
+
size: p,
|
|
635
635
|
label: c,
|
|
636
636
|
onClick: m,
|
|
637
|
-
isDisabled:
|
|
637
|
+
isDisabled: R = !1,
|
|
638
638
|
children: O,
|
|
639
639
|
className: j = ""
|
|
640
640
|
}) => {
|
|
641
|
-
const
|
|
641
|
+
const b = `btn-${v}`, T = p ? `btn-${p}` : "", x = `${`btn ${b} ${T}`.trim()} ${j}`.trim();
|
|
642
642
|
return /* @__PURE__ */ l.jsx(
|
|
643
643
|
"button",
|
|
644
644
|
{
|
|
645
645
|
className: x,
|
|
646
646
|
type: "button",
|
|
647
647
|
onClick: m,
|
|
648
|
-
disabled:
|
|
648
|
+
disabled: R,
|
|
649
649
|
children: /* @__PURE__ */ l.jsxs("div", { className: "flex items-center", children: [
|
|
650
650
|
O || c,
|
|
651
651
|
" ",
|
|
@@ -653,31 +653,31 @@ const pr = ({
|
|
|
653
653
|
] })
|
|
654
654
|
}
|
|
655
655
|
);
|
|
656
|
-
}, hr = ({ children:
|
|
656
|
+
}, hr = ({ children: v, eventKey: u, active: p }) => /* @__PURE__ */ l.jsx(
|
|
657
657
|
"div",
|
|
658
658
|
{
|
|
659
|
-
className: `tab-pane ${
|
|
659
|
+
className: `tab-pane ${p ? "active" : ""}`,
|
|
660
660
|
id: `${u}-panel`,
|
|
661
661
|
role: "tabpanel",
|
|
662
662
|
"aria-labelledby": `${u}-tab`,
|
|
663
|
-
children:
|
|
663
|
+
children: v
|
|
664
664
|
},
|
|
665
665
|
u
|
|
666
|
-
), gr = ({ activeKey:
|
|
667
|
-
/* @__PURE__ */ l.jsx("ul", { className: "nav nav-tabs", role: "tablist", children:
|
|
666
|
+
), gr = ({ activeKey: v, onSelect: u, children: p }) => /* @__PURE__ */ l.jsxs("div", { className: "tabs-container", children: [
|
|
667
|
+
/* @__PURE__ */ l.jsx("ul", { className: "nav nav-tabs", role: "tablist", children: p.map(({ props: { eventKey: c, title: m } }) => /* @__PURE__ */ l.jsx("li", { className: v === c ? "active" : "", children: /* @__PURE__ */ l.jsx(
|
|
668
668
|
"a",
|
|
669
669
|
{
|
|
670
670
|
href: `#${c}`,
|
|
671
|
-
onClick: (
|
|
672
|
-
|
|
671
|
+
onClick: (R) => {
|
|
672
|
+
R.preventDefault(), u(c);
|
|
673
673
|
},
|
|
674
674
|
children: m
|
|
675
675
|
}
|
|
676
676
|
) }, c)) }),
|
|
677
|
-
/* @__PURE__ */ l.jsx("div", { className: "tabs-container", children: /* @__PURE__ */ l.jsx("div", { className: "tab-content pf-c-tab-content", children:
|
|
677
|
+
/* @__PURE__ */ l.jsx("div", { className: "tabs-container", children: /* @__PURE__ */ l.jsx("div", { className: "tab-content pf-c-tab-content", children: p.map(({ props: { eventKey: c, children: m } }) => /* @__PURE__ */ l.jsx(
|
|
678
678
|
"div",
|
|
679
679
|
{
|
|
680
|
-
className: `tab-pane ${
|
|
680
|
+
className: `tab-pane ${v === c ? "active" : ""}`,
|
|
681
681
|
id: `${c}-panel`,
|
|
682
682
|
role: "tabpanel",
|
|
683
683
|
"aria-labelledby": `${c}-tab`,
|
|
@@ -686,33 +686,40 @@ const pr = ({
|
|
|
686
686
|
c
|
|
687
687
|
)) }) })
|
|
688
688
|
] }), Er = ({
|
|
689
|
-
id:
|
|
689
|
+
id: v,
|
|
690
690
|
type: u,
|
|
691
|
-
placeholder:
|
|
691
|
+
placeholder: p = "",
|
|
692
692
|
value: c,
|
|
693
693
|
onChange: m,
|
|
694
|
-
className:
|
|
694
|
+
className: R = "form-control"
|
|
695
695
|
}) => /* @__PURE__ */ l.jsx(
|
|
696
696
|
"input",
|
|
697
697
|
{
|
|
698
698
|
type: u,
|
|
699
|
-
id:
|
|
700
|
-
className:
|
|
701
|
-
placeholder:
|
|
699
|
+
id: v,
|
|
700
|
+
className: R,
|
|
701
|
+
placeholder: p,
|
|
702
702
|
value: c,
|
|
703
703
|
onChange: m
|
|
704
704
|
}
|
|
705
|
-
),
|
|
705
|
+
), yr = ({ title: v, isOpen: u, onClose: p, children: c, size: m }) => {
|
|
706
706
|
if (!u) return null;
|
|
707
|
-
const
|
|
708
|
-
return /* @__PURE__ */ l.jsx("div", { className: "modal fade in", style: { display: "block" }, tabIndex: -1, role: "dialog", children: /* @__PURE__ */ l.jsx("div", { className: `modal-dialog ${
|
|
707
|
+
const R = m ? `modal-${m}` : "";
|
|
708
|
+
return /* @__PURE__ */ l.jsx("div", { className: "modal fade in", style: { display: "block" }, tabIndex: -1, role: "dialog", children: /* @__PURE__ */ l.jsx("div", { className: `modal-dialog ${R}`, role: "document", children: /* @__PURE__ */ l.jsxs("div", { className: "modal-content", children: [
|
|
709
709
|
/* @__PURE__ */ l.jsxs("div", { className: "modal-header", children: [
|
|
710
|
-
/* @__PURE__ */ l.jsx("button", { type: "button", className: "close", onClick:
|
|
711
|
-
/* @__PURE__ */ l.jsx("h4", { className: "modal-title", children:
|
|
710
|
+
/* @__PURE__ */ l.jsx("button", { type: "button", className: "close", onClick: p, "aria-hidden": "true", children: /* @__PURE__ */ l.jsx("span", { className: "pficon pficon-close" }) }),
|
|
711
|
+
/* @__PURE__ */ l.jsx("h4", { className: "modal-title", children: v })
|
|
712
712
|
] }),
|
|
713
713
|
/* @__PURE__ */ l.jsx("div", { className: "modal-body", children: c })
|
|
714
714
|
] }) }) });
|
|
715
|
-
},
|
|
715
|
+
}, Rr = ({ variant: v, children: u }) => {
|
|
716
|
+
const c = {
|
|
717
|
+
warning: "text-yellow-600",
|
|
718
|
+
success: "text-green-600",
|
|
719
|
+
error: "text-red-600"
|
|
720
|
+
}[v] || "";
|
|
721
|
+
return /* @__PURE__ */ l.jsx("p", { className: c, children: u });
|
|
722
|
+
}, br = ({ items: v }) => /* @__PURE__ */ l.jsx("ol", { className: "breadcrumb", children: v.map((u, p) => /* @__PURE__ */ l.jsx("li", { className: u.active ? "active" : "", children: u.active ? u.title : /* @__PURE__ */ l.jsx("a", { href: u.href, children: u.title }) }, p)) }), _r = () => /* @__PURE__ */ l.jsxs("div", { children: [
|
|
716
723
|
/* @__PURE__ */ l.jsx(
|
|
717
724
|
br,
|
|
718
725
|
{
|
|
@@ -726,8 +733,9 @@ const pr = ({
|
|
|
726
733
|
] });
|
|
727
734
|
export {
|
|
728
735
|
pr as Button,
|
|
736
|
+
Rr as HelpText,
|
|
729
737
|
Er as Input,
|
|
730
|
-
|
|
738
|
+
yr as Modal,
|
|
731
739
|
_r as SampleComp,
|
|
732
740
|
hr as Tab,
|
|
733
741
|
gr as Tabs
|
|
@@ -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 v=D,u=Symbol.for("react.element"),p=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,m=v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,_={key:!0,ref:!0,__self:!0,__source:!0};function S(T,b,C){var y,x={},P=null,L=null;C!==void 0&&(P=""+C),b.key!==void 0&&(P=""+b.key),b.ref!==void 0&&(L=b.ref);for(y in b)c.call(b,y)&&!_.hasOwnProperty(y)&&(x[y]=b[y]);if(T&&T.defaultProps)for(y in b=T.defaultProps,b)x[y]===void 0&&(x[y]=b[y]);return{$$typeof:u,type:T,key:P,ref:L,props:x,_owner:m.current}}return A.Fragment=p,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
|
|
17
|
+
*/var re;function ke(){return re||(re=1,process.env.NODE_ENV!=="production"&&function(){var v=D,u=Symbol.for("react.element"),p=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),T=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),ae=Symbol.iterator,Me="@@iterator";function Le(e){if(e===null||typeof e!="object")return null;var r=ae&&e[ae]||e[Me];return typeof r=="function"?r:null}var F=v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function h(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Ve("error",e,t)}}function Ve(e,r,t){{var n=F.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var s=t.map(function(i){return String(i)});s.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,s)}}var Ue=!1,Be=!1,Je=!1,qe=!1,Ge=!1,ie;ie=Symbol.for("react.module.reference");function He(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===_||Ge||e===m||e===C||e===y||qe||e===L||Ue||Be||Je||typeof e=="object"&&e!==null&&(e.$$typeof===P||e.$$typeof===x||e.$$typeof===S||e.$$typeof===T||e.$$typeof===b||e.$$typeof===ie||e.getModuleId!==void 0))}function ze(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function oe(e){return e.displayName||"Context"}function O(e){if(e==null)return null;if(typeof e.tag=="number"&&h("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 c:return"Fragment";case p:return"Portal";case _:return"Profiler";case m:return"StrictMode";case C:return"Suspense";case y:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case T:var r=e;return oe(r)+".Consumer";case S:var t=e;return oe(t._context)+".Provider";case b:return ze(e,e.render,"ForwardRef");case x:var n=e.displayName||null;return n!==null?n:O(e.type)||"Memo";case P:{var o=e,s=o._payload,i=o._init;try{return O(i(s))}catch{return null}}}return null}var w=Object.assign,W=0,se,le,ue,ce,fe,de,ve;function pe(){}pe.__reactDisabledLog=!0;function Xe(){{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 Ze(){{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&&h("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(o){var n=o.stack.trim().match(/\n( *(at )?)/);G=n&&n[1]||""}return`
|
|
18
|
+
`+G+e}}var H=!1,U;{var Qe=typeof WeakMap=="function"?WeakMap:Map;U=new Qe}function be(e,r){if(!e||H)return"";{var t=U.get(e);if(t!==void 0)return t}var n;H=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var s;s=q.current,q.current=null,Xe();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(E){n=E}Reflect.construct(e,[],i)}else{try{i.call()}catch(E){n=E}e.call(i.prototype)}}else{try{throw Error()}catch(E){n=E}e()}}catch(E){if(E&&n&&typeof E.stack=="string"){for(var a=E.stack.split(`
|
|
19
19
|
`),g=n.stack.split(`
|
|
20
20
|
`),f=a.length-1,d=g.length-1;f>=1&&d>=0&&a[f]!==g[d];)d--;for(;f>=1&&d>=0;f--,d--)if(a[f]!==g[d]){if(f!==1||d!==1)do if(f--,d--,d<0||a[f]!==g[d]){var j=`
|
|
21
|
-
`+a[f].replace(" at new "," at ");return e.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),typeof e=="function"&&U.set(e,j),j}while(f>=1&&d>=0);break}}}finally{
|
|
21
|
+
`+a[f].replace(" at new "," at ");return e.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),typeof e=="function"&&U.set(e,j),j}while(f>=1&&d>=0);break}}}finally{H=!1,q.current=s,Ze(),Error.prepareStackTrace=o}var $=e?e.displayName||e.name:"",k=$?V($):"";return typeof e=="function"&&U.set(e,k),k}function Ke(e,r,t){return be(e,!1)}function er(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,er(e));if(typeof e=="string")return V(e);switch(e){case C:return V("Suspense");case y:return V("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case b:return Ke(e.render);case x:return B(e.type,r,t);case P:{var n=e,o=n._payload,s=n._init;try{return B(s(o),r,t)}catch{}}}return""}var Y=Object.prototype.hasOwnProperty,me={},he=F.ReactDebugCurrentFrame;function J(e){if(e){var r=e._owner,t=B(e.type,e._source,r?r.type:null);he.setExtraStackFrame(t)}else he.setExtraStackFrame(null)}function rr(e,r,t,n,o){{var s=Function.call.bind(Y);for(var i in e)if(s(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var g=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(f){a=f}a&&!(a instanceof Error)&&(J(o),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,i,typeof a),J(null)),a instanceof Error&&!(a.message in me)&&(me[a.message]=!0,J(o),h("Failed %s type: %s",t,a.message),J(null))}}}var tr=Array.isArray;function z(e){return tr(e)}function nr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function ar(e){try{return ge(e),!1}catch{return!0}}function ge(e){return""+e}function ye(e){if(ar(e))return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",nr(e)),ge(e)}var Ee=F.ReactCurrentOwner,ir={key:!0,ref:!0,__self:!0,__source:!0},Re,_e;function or(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 sr(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 lr(e,r){typeof e.ref=="string"&&Ee.current}function ur(e,r){{var t=function(){Re||(Re=!0,h("%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 cr(e,r){{var t=function(){_e||(_e=!0,h("%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 fr=function(e,r,t,n,o,s,i){var a={$$typeof:u,type:e,key:r,ref:t,props:i,_owner:s};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function dr(e,r,t,n,o){{var s,i={},a=null,g=null;t!==void 0&&(ye(t),a=""+t),sr(r)&&(ye(r.key),a=""+r.key),or(r)&&(g=r.ref,lr(r,o));for(s in r)Y.call(r,s)&&!ir.hasOwnProperty(s)&&(i[s]=r[s]);if(e&&e.defaultProps){var f=e.defaultProps;for(s in f)i[s]===void 0&&(i[s]=f[s])}if(a||g){var d=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&ur(i,d),g&&cr(i,d)}return fr(e,a,g,o,n,Ee.current,i)}}var X=F.ReactCurrentOwner,je=F.ReactDebugCurrentFrame;function N(e){if(e){var r=e._owner,t=B(e.type,e._source,r?r.type:null);je.setExtraStackFrame(t)}else je.setExtraStackFrame(null)}var Z;Z=!1;function Q(e){return typeof e=="object"&&e!==null&&e.$$typeof===u}function xe(){{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 vr(e){return""}var Te={};function pr(e){{var r=xe();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=pr(r);if(Te[t])return;Te[t]=!0;var n="";e&&e._owner&&e._owner!==X.current&&(n=" It was passed a child from "+O(e._owner.type)+"."),N(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),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 o=Le(e);if(typeof o=="function"&&o!==e.entries)for(var s=o.call(e),i;!(i=s.next()).done;)Q(i.value)&&Ce(i.value,r)}}}function br(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===b||r.$$typeof===x))t=r.propTypes;else return;if(t){var n=O(r);rr(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!Z){Z=!0;var o=O(r);h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function mr(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),h("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),h("Invalid attribute `ref` supplied to `React.Fragment`."),N(null))}}var Se={};function Pe(e,r,t,n,o,s){{var i=He(e);if(!i){var a="";(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.");var g=vr();g?a+=g:a+=xe();var f;e===null?f="null":z(e)?f="array":e!==void 0&&e.$$typeof===u?(f="<"+(O(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):f=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",f,a)}var d=dr(e,r,t,o,s);if(d==null)return d;if(i){var j=r.children;if(j!==void 0)if(n)if(z(j)){for(var $=0;$<j.length;$++)Oe(j[$],e);Object.freeze&&Object.freeze(j)}else 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.");else Oe(j,e)}if(Y.call(r,"key")){var k=O(e),E=Object.keys(r).filter(function(_r){return _r!=="key"}),K=E.length>0?"{key: someKey, "+E.join(": ..., ")+": ...}":"{key: someKey}";if(!Se[k+K]){var Rr=E.length>0?"{"+E.join(": ..., ")+": ...}":"{}";h(`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,Rr,k),Se[k+K]=!0}}return e===c?mr(d):br(d),d}}function hr(e,r,t){return Pe(e,r,t,!0)}function gr(e,r,t){return Pe(e,r,t,!1)}var yr=gr,Er=hr;I.Fragment=c,I.jsx=yr,I.jsxs=Er}()),I}var te;function De(){return te||(te=1,process.env.NODE_ENV==="production"?M.exports=we():M.exports=ke()),M.exports}var l=De();const ne=({type:v="default",title:u,size:p,label:c,onClick:m,isDisabled:_=!1,children:S,className:T=""})=>{const b=`btn-${v}`,C=p?`btn-${p}`:"",x=`${`btn ${b} ${C}`.trim()} ${T}`.trim();return l.jsx("button",{className:x,type:"button",onClick:m,disabled:_,children:l.jsxs("div",{className:"flex items-center",children:[S||c," ",u]})})},Fe=({children:v,eventKey:u,active:p})=>l.jsx("div",{className:`tab-pane ${p?"active":""}`,id:`${u}-panel`,role:"tabpanel","aria-labelledby":`${u}-tab`,children:v},u),Ne=({activeKey:v,onSelect:u,children:p})=>l.jsxs("div",{className:"tabs-container",children:[l.jsx("ul",{className:"nav nav-tabs",role:"tablist",children:p.map(({props:{eventKey:c,title:m}})=>l.jsx("li",{className:v===c?"active":"",children:l.jsx("a",{href:`#${c}`,onClick:_=>{_.preventDefault(),u(c)},children:m})},c))}),l.jsx("div",{className:"tabs-container",children:l.jsx("div",{className:"tab-content pf-c-tab-content",children:p.map(({props:{eventKey:c,children:m}})=>l.jsx("div",{className:`tab-pane ${v===c?"active":""}`,id:`${c}-panel`,role:"tabpanel","aria-labelledby":`${c}-tab`,children:m},c))})})]}),$e=({id:v,type:u,placeholder:p="",value:c,onChange:m,className:_="form-control"})=>l.jsx("input",{type:u,id:v,className:_,placeholder:p,value:c,onChange:m}),Ae=({title:v,isOpen:u,onClose:p,children:c,size:m})=>{if(!u)return null;const _=m?`modal-${m}`:"";return l.jsx("div",{className:"modal fade in",style:{display:"block"},tabIndex:-1,role:"dialog",children:l.jsx("div",{className:`modal-dialog ${_}`,role:"document",children:l.jsxs("div",{className:"modal-content",children:[l.jsxs("div",{className:"modal-header",children:[l.jsx("button",{type:"button",className:"close",onClick:p,"aria-hidden":"true",children:l.jsx("span",{className:"pficon pficon-close"})}),l.jsx("h4",{className:"modal-title",children:v})]}),l.jsx("div",{className:"modal-body",children:c})]})})})},Ie=({variant:v,children:u})=>{const c={warning:"text-yellow-600",success:"text-green-600",error:"text-red-600"}[v]||"";return l.jsx("p",{className:c,children:u})},We=({items:v})=>l.jsx("ol",{className:"breadcrumb",children:v.map((u,p)=>l.jsx("li",{className:u.active?"active":"",children:u.active?u.title:l.jsx("a",{href:u.href,children:u.title})},p))}),Ye=()=>l.jsxs("div",{children:[l.jsx(We,{items:[{title:"Дополнения",active:!0},{title:"Название плагина",href:"#Название плагина"}]}),l.jsx(ne,{children:"Hello"})]});R.Button=ne,R.HelpText=Ie,R.Input=$e,R.Modal=Ae,R.SampleComp=Ye,R.Tab=Fe,R.Tabs=Ne,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
|