ovirt-ui-toolkit 0.0.50 → 0.0.52

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.
@@ -4,7 +4,7 @@ export interface DropdownItem {
4
4
  title: string;
5
5
  data?: any;
6
6
  }
7
- interface DropdownProps {
7
+ export interface DropdownProps {
8
8
  items: DropdownItem[];
9
9
  title?: string;
10
10
  isDisabled?: boolean;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { DropdownProps } from './Dropdown';
3
+ declare const DropdownSelect: React.FC<DropdownProps>;
4
+ export default DropdownSelect;
package/dist/index.d.ts CHANGED
@@ -13,6 +13,7 @@ export { default as Th } from './components/table/Th';
13
13
  export { default as Thead } from './components/table/Thead';
14
14
  export { default as Tr } from './components/table/Tr';
15
15
  export { default as Dropdown } from './components/dropdown/Dropdown';
16
+ export { default as DropdownSelect } from './components/dropdown/DropdownSelect';
16
17
  export { default as Pagination } from './components/pagination/Pagination';
17
18
  export { default as ReloadButton } from './components/reloadButton/ReloadButtton';
18
19
  export { default as TableToolbar } from './components/tableToolbar/TableToolbar';
@@ -1,4 +1,4 @@
1
- import Oe, { forwardRef as hr, useState as Se, useEffect as mr } from "react";
1
+ import Se, { forwardRef as mr, useState as Q, useEffect as br } from "react";
2
2
  var U = { exports: {} }, A = {};
3
3
  /**
4
4
  * @license React
@@ -9,19 +9,19 @@ var U = { exports: {} }, A = {};
9
9
  * This source code is licensed under the MIT license found in the
10
10
  * LICENSE file in the root directory of this source tree.
11
11
  */
12
- var _e;
13
- function br() {
14
- if (_e) return A;
15
- _e = 1;
16
- var a = Oe, s = Symbol.for("react.element"), l = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, c = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: !0, ref: !0, __self: !0, __source: !0 };
12
+ var Ce;
13
+ function xr() {
14
+ if (Ce) return A;
15
+ Ce = 1;
16
+ var a = Se, s = Symbol.for("react.element"), o = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, c = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: !0, ref: !0, __self: !0, __source: !0 };
17
17
  function h(C, m, T) {
18
18
  var j, b = {}, R = null, W = null;
19
19
  T !== void 0 && (R = "" + T), m.key !== void 0 && (R = "" + m.key), m.ref !== void 0 && (W = m.ref);
20
- for (j in m) o.call(m, j) && !p.hasOwnProperty(j) && (b[j] = m[j]);
20
+ for (j in m) l.call(m, j) && !p.hasOwnProperty(j) && (b[j] = m[j]);
21
21
  if (C && C.defaultProps) for (j in m = C.defaultProps, m) b[j] === void 0 && (b[j] = m[j]);
22
22
  return { $$typeof: s, type: C, key: R, ref: W, props: b, _owner: c.current };
23
23
  }
24
- return A.Fragment = l, A.jsx = h, A.jsxs = h, A;
24
+ return A.Fragment = o, A.jsx = h, A.jsxs = h, A;
25
25
  }
26
26
  var I = {};
27
27
  /**
@@ -33,14 +33,14 @@ var I = {};
33
33
  * This source code is licensed under the MIT license found in the
34
34
  * LICENSE file in the root directory of this source tree.
35
35
  */
36
- var Ce;
37
- function xr() {
38
- return Ce || (Ce = 1, process.env.NODE_ENV !== "production" && function() {
39
- var a = Oe, s = Symbol.for("react.element"), l = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), C = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), Q = Symbol.iterator, Pe = "@@iterator";
40
- function $e(e) {
36
+ var Te;
37
+ function gr() {
38
+ return Te || (Te = 1, process.env.NODE_ENV !== "production" && function() {
39
+ var a = Se, s = Symbol.for("react.element"), o = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), C = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), K = Symbol.iterator, $e = "@@iterator";
40
+ function De(e) {
41
41
  if (e === null || typeof e != "object")
42
42
  return null;
43
- var r = Q && e[Q] || e[Pe];
43
+ var r = K && e[K] || e[$e];
44
44
  return typeof r == "function" ? r : null;
45
45
  }
46
46
  var k = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
@@ -48,10 +48,10 @@ function xr() {
48
48
  {
49
49
  for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
50
50
  n[i - 1] = arguments[i];
51
- De("error", e, n);
51
+ Fe("error", e, n);
52
52
  }
53
53
  }
54
- function De(e, r, n) {
54
+ function Fe(e, r, n) {
55
55
  {
56
56
  var i = k.ReactDebugCurrentFrame, d = i.getStackAddendum();
57
57
  d !== "" && (r += "%s", n = n.concat([d]));
@@ -61,23 +61,23 @@ function xr() {
61
61
  v.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, v);
62
62
  }
63
63
  }
64
- var Fe = !1, Ae = !1, Ie = !1, We = !1, Ye = !1, K;
65
- K = Symbol.for("react.module.reference");
66
- function Ve(e) {
67
- return !!(typeof e == "string" || typeof e == "function" || e === o || e === p || Ye || e === c || e === T || e === j || We || e === W || Fe || Ae || Ie || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === b || e.$$typeof === h || e.$$typeof === C || e.$$typeof === m || // This needs to include all possible module reference object
64
+ var Ae = !1, Ie = !1, We = !1, Ye = !1, Ve = !1, ee;
65
+ ee = Symbol.for("react.module.reference");
66
+ function Me(e) {
67
+ return !!(typeof e == "string" || typeof e == "function" || e === l || e === p || Ve || e === c || e === T || e === j || Ye || e === W || Ae || Ie || We || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === b || e.$$typeof === h || e.$$typeof === C || e.$$typeof === m || // 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
- e.$$typeof === K || e.getModuleId !== void 0));
71
+ e.$$typeof === ee || e.getModuleId !== void 0));
72
72
  }
73
- function Me(e, r, n) {
73
+ function Le(e, r, n) {
74
74
  var i = e.displayName;
75
75
  if (i)
76
76
  return i;
77
77
  var d = r.displayName || r.name || "";
78
78
  return d !== "" ? n + "(" + d + ")" : n;
79
79
  }
80
- function ee(e) {
80
+ function re(e) {
81
81
  return e.displayName || "Context";
82
82
  }
83
83
  function O(e) {
@@ -88,9 +88,9 @@ function xr() {
88
88
  if (typeof e == "string")
89
89
  return e;
90
90
  switch (e) {
91
- case o:
92
- return "Fragment";
93
91
  case l:
92
+ return "Fragment";
93
+ case o:
94
94
  return "Portal";
95
95
  case p:
96
96
  return "Profiler";
@@ -105,12 +105,12 @@ function xr() {
105
105
  switch (e.$$typeof) {
106
106
  case C:
107
107
  var r = e;
108
- return ee(r) + ".Consumer";
108
+ return re(r) + ".Consumer";
109
109
  case h:
110
110
  var n = e;
111
- return ee(n._context) + ".Provider";
111
+ return re(n._context) + ".Provider";
112
112
  case m:
113
- return Me(e, e.render, "ForwardRef");
113
+ return Le(e, e.render, "ForwardRef");
114
114
  case b:
115
115
  var i = e.displayName || null;
116
116
  return i !== null ? i : O(e.type) || "Memo";
@@ -125,18 +125,18 @@ function xr() {
125
125
  }
126
126
  return null;
127
127
  }
128
- var S = Object.assign, D = 0, re, te, ne, ae, se, ie, oe;
129
- function le() {
128
+ var S = Object.assign, D = 0, te, ne, ae, se, ie, oe, le;
129
+ function ce() {
130
130
  }
131
- le.__reactDisabledLog = !0;
132
- function Le() {
131
+ ce.__reactDisabledLog = !0;
132
+ function Ue() {
133
133
  {
134
134
  if (D === 0) {
135
- re = console.log, te = console.info, ne = console.warn, ae = console.error, se = console.group, ie = console.groupCollapsed, oe = console.groupEnd;
135
+ te = console.log, ne = console.info, ae = console.warn, se = console.error, ie = console.group, oe = console.groupCollapsed, le = console.groupEnd;
136
136
  var e = {
137
137
  configurable: !0,
138
138
  enumerable: !0,
139
- value: le,
139
+ value: ce,
140
140
  writable: !0
141
141
  };
142
142
  Object.defineProperties(console, {
@@ -152,7 +152,7 @@ function xr() {
152
152
  D++;
153
153
  }
154
154
  }
155
- function Ue() {
155
+ function Be() {
156
156
  {
157
157
  if (D--, D === 0) {
158
158
  var e = {
@@ -162,25 +162,25 @@ function xr() {
162
162
  };
163
163
  Object.defineProperties(console, {
164
164
  log: S({}, e, {
165
- value: re
165
+ value: te
166
166
  }),
167
167
  info: S({}, e, {
168
- value: te
168
+ value: ne
169
169
  }),
170
170
  warn: S({}, e, {
171
- value: ne
171
+ value: ae
172
172
  }),
173
173
  error: S({}, e, {
174
- value: ae
174
+ value: se
175
175
  }),
176
176
  group: S({}, e, {
177
- value: se
177
+ value: ie
178
178
  }),
179
179
  groupCollapsed: S({}, e, {
180
- value: ie
180
+ value: oe
181
181
  }),
182
182
  groupEnd: S({}, e, {
183
- value: oe
183
+ value: le
184
184
  })
185
185
  });
186
186
  }
@@ -203,10 +203,10 @@ function xr() {
203
203
  }
204
204
  var q = !1, V;
205
205
  {
206
- var Be = typeof WeakMap == "function" ? WeakMap : Map;
207
- V = new Be();
206
+ var Je = typeof WeakMap == "function" ? WeakMap : Map;
207
+ V = new Je();
208
208
  }
209
- function ce(e, r) {
209
+ function ue(e, r) {
210
210
  if (!e || q)
211
211
  return "";
212
212
  {
@@ -219,7 +219,7 @@ function xr() {
219
219
  var d = Error.prepareStackTrace;
220
220
  Error.prepareStackTrace = void 0;
221
221
  var v;
222
- v = B.current, B.current = null, Le();
222
+ v = B.current, B.current = null, Ue();
223
223
  try {
224
224
  if (r) {
225
225
  var f = function() {
@@ -272,15 +272,15 @@ function xr() {
272
272
  }
273
273
  }
274
274
  } finally {
275
- q = !1, B.current = v, Ue(), Error.prepareStackTrace = d;
275
+ q = !1, B.current = v, Be(), Error.prepareStackTrace = d;
276
276
  }
277
277
  var $ = e ? e.displayName || e.name : "", N = $ ? Y($) : "";
278
278
  return typeof e == "function" && V.set(e, N), N;
279
279
  }
280
- function Je(e, r, n) {
281
- return ce(e, !1);
280
+ function qe(e, r, n) {
281
+ return ue(e, !1);
282
282
  }
283
- function qe(e) {
283
+ function ze(e) {
284
284
  var r = e.prototype;
285
285
  return !!(r && r.isReactComponent);
286
286
  }
@@ -288,7 +288,7 @@ function xr() {
288
288
  if (e == null)
289
289
  return "";
290
290
  if (typeof e == "function")
291
- return ce(e, qe(e));
291
+ return ue(e, ze(e));
292
292
  if (typeof e == "string")
293
293
  return Y(e);
294
294
  switch (e) {
@@ -300,7 +300,7 @@ function xr() {
300
300
  if (typeof e == "object")
301
301
  switch (e.$$typeof) {
302
302
  case m:
303
- return Je(e.render);
303
+ return qe(e.render);
304
304
  case b:
305
305
  return M(e.type, r, n);
306
306
  case R: {
@@ -313,15 +313,15 @@ function xr() {
313
313
  }
314
314
  return "";
315
315
  }
316
- var F = Object.prototype.hasOwnProperty, ue = {}, fe = k.ReactDebugCurrentFrame;
316
+ var F = Object.prototype.hasOwnProperty, fe = {}, de = k.ReactDebugCurrentFrame;
317
317
  function L(e) {
318
318
  if (e) {
319
319
  var r = e._owner, n = M(e.type, e._source, r ? r.type : null);
320
- fe.setExtraStackFrame(n);
320
+ de.setExtraStackFrame(n);
321
321
  } else
322
- fe.setExtraStackFrame(null);
322
+ de.setExtraStackFrame(null);
323
323
  }
324
- function ze(e, r, n, i, d) {
324
+ function Ge(e, r, n, i, d) {
325
325
  {
326
326
  var v = Function.call.bind(F);
327
327
  for (var f in e)
@@ -336,41 +336,41 @@ function xr() {
336
336
  } catch (x) {
337
337
  u = x;
338
338
  }
339
- u && !(u instanceof Error) && (L(d), y("%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).", i || "React class", n, f, typeof u), L(null)), u instanceof Error && !(u.message in ue) && (ue[u.message] = !0, L(d), y("Failed %s type: %s", n, u.message), L(null));
339
+ u && !(u instanceof Error) && (L(d), y("%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).", i || "React class", n, f, typeof u), L(null)), u instanceof Error && !(u.message in fe) && (fe[u.message] = !0, L(d), y("Failed %s type: %s", n, u.message), L(null));
340
340
  }
341
341
  }
342
342
  }
343
- var Ge = Array.isArray;
343
+ var He = Array.isArray;
344
344
  function z(e) {
345
- return Ge(e);
345
+ return He(e);
346
346
  }
347
- function He(e) {
347
+ function Xe(e) {
348
348
  {
349
349
  var r = typeof Symbol == "function" && Symbol.toStringTag, n = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
350
350
  return n;
351
351
  }
352
352
  }
353
- function Xe(e) {
353
+ function Ze(e) {
354
354
  try {
355
- return de(e), !1;
355
+ return ve(e), !1;
356
356
  } catch {
357
357
  return !0;
358
358
  }
359
359
  }
360
- function de(e) {
360
+ function ve(e) {
361
361
  return "" + e;
362
362
  }
363
- function ve(e) {
364
- if (Xe(e))
365
- return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", He(e)), de(e);
363
+ function pe(e) {
364
+ if (Ze(e))
365
+ return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Xe(e)), ve(e);
366
366
  }
367
- var pe = k.ReactCurrentOwner, Ze = {
367
+ var he = k.ReactCurrentOwner, Qe = {
368
368
  key: !0,
369
369
  ref: !0,
370
370
  __self: !0,
371
371
  __source: !0
372
- }, he, me;
373
- function Qe(e) {
372
+ }, me, be;
373
+ function Ke(e) {
374
374
  if (F.call(e, "ref")) {
375
375
  var r = Object.getOwnPropertyDescriptor(e, "ref").get;
376
376
  if (r && r.isReactWarning)
@@ -378,7 +378,7 @@ function xr() {
378
378
  }
379
379
  return e.ref !== void 0;
380
380
  }
381
- function Ke(e) {
381
+ function er(e) {
382
382
  if (F.call(e, "key")) {
383
383
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
384
384
  if (r && r.isReactWarning)
@@ -386,13 +386,13 @@ function xr() {
386
386
  }
387
387
  return e.key !== void 0;
388
388
  }
389
- function er(e, r) {
390
- typeof e.ref == "string" && pe.current;
391
- }
392
389
  function rr(e, r) {
390
+ typeof e.ref == "string" && he.current;
391
+ }
392
+ function tr(e, r) {
393
393
  {
394
394
  var n = function() {
395
- he || (he = !0, y("%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));
395
+ me || (me = !0, y("%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));
396
396
  };
397
397
  n.isReactWarning = !0, Object.defineProperty(e, "key", {
398
398
  get: n,
@@ -400,10 +400,10 @@ function xr() {
400
400
  });
401
401
  }
402
402
  }
403
- function tr(e, r) {
403
+ function nr(e, r) {
404
404
  {
405
405
  var n = function() {
406
- me || (me = !0, y("%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));
406
+ be || (be = !0, y("%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));
407
407
  };
408
408
  n.isReactWarning = !0, Object.defineProperty(e, "ref", {
409
409
  get: n,
@@ -411,7 +411,7 @@ function xr() {
411
411
  });
412
412
  }
413
413
  }
414
- var nr = function(e, r, n, i, d, v, f) {
414
+ var ar = function(e, r, n, i, d, v, f) {
415
415
  var u = {
416
416
  // This tag allows us to uniquely identify this as a React Element
417
417
  $$typeof: s,
@@ -440,12 +440,12 @@ function xr() {
440
440
  value: d
441
441
  }), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
442
442
  };
443
- function ar(e, r, n, i, d) {
443
+ function sr(e, r, n, i, d) {
444
444
  {
445
445
  var v, f = {}, u = null, E = null;
446
- n !== void 0 && (ve(n), u = "" + n), Ke(r) && (ve(r.key), u = "" + r.key), Qe(r) && (E = r.ref, er(r, d));
446
+ n !== void 0 && (pe(n), u = "" + n), er(r) && (pe(r.key), u = "" + r.key), Ke(r) && (E = r.ref, rr(r, d));
447
447
  for (v in r)
448
- F.call(r, v) && !Ze.hasOwnProperty(v) && (f[v] = r[v]);
448
+ F.call(r, v) && !Qe.hasOwnProperty(v) && (f[v] = r[v]);
449
449
  if (e && e.defaultProps) {
450
450
  var x = e.defaultProps;
451
451
  for (v in x)
@@ -453,25 +453,25 @@ function xr() {
453
453
  }
454
454
  if (u || E) {
455
455
  var g = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
456
- u && rr(f, g), E && tr(f, g);
456
+ u && tr(f, g), E && nr(f, g);
457
457
  }
458
- return nr(e, u, E, d, i, pe.current, f);
458
+ return ar(e, u, E, d, i, he.current, f);
459
459
  }
460
460
  }
461
- var G = k.ReactCurrentOwner, be = k.ReactDebugCurrentFrame;
461
+ var G = k.ReactCurrentOwner, xe = k.ReactDebugCurrentFrame;
462
462
  function P(e) {
463
463
  if (e) {
464
464
  var r = e._owner, n = M(e.type, e._source, r ? r.type : null);
465
- be.setExtraStackFrame(n);
465
+ xe.setExtraStackFrame(n);
466
466
  } else
467
- be.setExtraStackFrame(null);
467
+ xe.setExtraStackFrame(null);
468
468
  }
469
469
  var H;
470
470
  H = !1;
471
471
  function X(e) {
472
472
  return typeof e == "object" && e !== null && e.$$typeof === s;
473
473
  }
474
- function xe() {
474
+ function ge() {
475
475
  {
476
476
  if (G.current) {
477
477
  var e = O(G.current.type);
@@ -483,13 +483,13 @@ Check the render method of \`` + e + "`.";
483
483
  return "";
484
484
  }
485
485
  }
486
- function sr(e) {
486
+ function ir(e) {
487
487
  return "";
488
488
  }
489
- var ge = {};
490
- function ir(e) {
489
+ var je = {};
490
+ function or(e) {
491
491
  {
492
- var r = xe();
492
+ var r = ge();
493
493
  if (!r) {
494
494
  var n = typeof e == "string" ? e : e.displayName || e.name;
495
495
  n && (r = `
@@ -499,39 +499,39 @@ Check the top-level render call using <` + n + ">.");
499
499
  return r;
500
500
  }
501
501
  }
502
- function je(e, r) {
502
+ function ye(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
- var n = ir(r);
508
- if (ge[n])
507
+ var n = or(r);
508
+ if (je[n])
509
509
  return;
510
- ge[n] = !0;
510
+ je[n] = !0;
511
511
  var i = "";
512
512
  e && e._owner && e._owner !== G.current && (i = " It was passed a child from " + O(e._owner.type) + "."), P(e), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, i), P(null);
513
513
  }
514
514
  }
515
- function ye(e, r) {
515
+ function Ee(e, r) {
516
516
  {
517
517
  if (typeof e != "object")
518
518
  return;
519
519
  if (z(e))
520
520
  for (var n = 0; n < e.length; n++) {
521
521
  var i = e[n];
522
- X(i) && je(i, r);
522
+ X(i) && ye(i, r);
523
523
  }
524
524
  else if (X(e))
525
525
  e._store && (e._store.validated = !0);
526
526
  else if (e) {
527
- var d = $e(e);
527
+ var d = De(e);
528
528
  if (typeof d == "function" && d !== e.entries)
529
529
  for (var v = d.call(e), f; !(f = v.next()).done; )
530
- X(f.value) && je(f.value, r);
530
+ X(f.value) && ye(f.value, r);
531
531
  }
532
532
  }
533
533
  }
534
- function or(e) {
534
+ function lr(e) {
535
535
  {
536
536
  var r = e.type;
537
537
  if (r == null || typeof r == "string")
@@ -547,7 +547,7 @@ Check the top-level render call using <` + n + ">.");
547
547
  return;
548
548
  if (n) {
549
549
  var i = O(r);
550
- ze(n, e.props, "prop", i, e);
550
+ Ge(n, e.props, "prop", i, e);
551
551
  } else if (r.PropTypes !== void 0 && !H) {
552
552
  H = !0;
553
553
  var d = O(r);
@@ -556,7 +556,7 @@ Check the top-level render call using <` + n + ">.");
556
556
  typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
557
557
  }
558
558
  }
559
- function lr(e) {
559
+ function cr(e) {
560
560
  {
561
561
  for (var r = Object.keys(e.props), n = 0; n < r.length; n++) {
562
562
  var i = r[n];
@@ -568,19 +568,19 @@ Check the top-level render call using <` + n + ">.");
568
568
  e.ref !== null && (P(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), P(null));
569
569
  }
570
570
  }
571
- var Ee = {};
572
- function Re(e, r, n, i, d, v) {
571
+ var Re = {};
572
+ function _e(e, r, n, i, d, v) {
573
573
  {
574
- var f = Ve(e);
574
+ var f = Me(e);
575
575
  if (!f) {
576
576
  var u = "";
577
577
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (u += " 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
- var E = sr();
579
- E ? u += E : u += xe();
578
+ var E = ir();
579
+ E ? u += E : u += ge();
580
580
  var x;
581
581
  e === null ? x = "null" : z(e) ? x = "array" : e !== void 0 && e.$$typeof === s ? (x = "<" + (O(e.type) || "Unknown") + " />", u = " Did you accidentally export a JSX literal instead of a component?") : x = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", x, u);
582
582
  }
583
- var g = ar(e, r, n, d, v);
583
+ var g = sr(e, r, n, d, v);
584
584
  if (g == null)
585
585
  return g;
586
586
  if (f) {
@@ -589,46 +589,46 @@ Check the top-level render call using <` + n + ">.");
589
589
  if (i)
590
590
  if (z(w)) {
591
591
  for (var $ = 0; $ < w.length; $++)
592
- ye(w[$], e);
592
+ Ee(w[$], e);
593
593
  Object.freeze && Object.freeze(w);
594
594
  } else
595
595
  y("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
- ye(w, e);
597
+ Ee(w, e);
598
598
  }
599
599
  if (F.call(r, "key")) {
600
- var N = O(e), _ = Object.keys(r).filter(function(pr) {
601
- return pr !== "key";
600
+ var N = O(e), _ = Object.keys(r).filter(function(hr) {
601
+ return hr !== "key";
602
602
  }), Z = _.length > 0 ? "{key: someKey, " + _.join(": ..., ") + ": ...}" : "{key: someKey}";
603
- if (!Ee[N + Z]) {
604
- var vr = _.length > 0 ? "{" + _.join(": ..., ") + ": ...}" : "{}";
603
+ if (!Re[N + Z]) {
604
+ var pr = _.length > 0 ? "{" + _.join(": ..., ") + ": ...}" : "{}";
605
605
  y(`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, N, vr, N), Ee[N + Z] = !0;
610
+ <%s key={someKey} {...props} />`, Z, N, pr, N), Re[N + Z] = !0;
611
611
  }
612
612
  }
613
- return e === o ? lr(g) : or(g), g;
613
+ return e === l ? cr(g) : lr(g), g;
614
614
  }
615
615
  }
616
- function cr(e, r, n) {
617
- return Re(e, r, n, !0);
618
- }
619
616
  function ur(e, r, n) {
620
- return Re(e, r, n, !1);
617
+ return _e(e, r, n, !0);
618
+ }
619
+ function fr(e, r, n) {
620
+ return _e(e, r, n, !1);
621
621
  }
622
- var fr = ur, dr = cr;
623
- I.Fragment = o, I.jsx = fr, I.jsxs = dr;
622
+ var dr = fr, vr = ur;
623
+ I.Fragment = l, I.jsx = dr, I.jsxs = vr;
624
624
  }()), I;
625
625
  }
626
- var Te;
627
- function gr() {
628
- return Te || (Te = 1, process.env.NODE_ENV === "production" ? U.exports = br() : U.exports = xr()), U.exports;
626
+ var we;
627
+ function jr() {
628
+ return we || (we = 1, process.env.NODE_ENV === "production" ? U.exports = xr() : U.exports = gr()), U.exports;
629
629
  }
630
- var t = gr();
631
- const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), jr = ({ items: a, className: s }) => /* @__PURE__ */ t.jsx("ol", { className: `breadcrumb ${s || ""}`.trim(), children: a.map((l, o) => /* @__PURE__ */ t.jsx("li", { className: l.active ? "active" : "", children: l.active ? l.title : /* @__PURE__ */ t.jsx("a", { href: l.href, children: l.title }) }, o)) }), yr = /* @__PURE__ */ t.jsx("span", { className: "loading-spinner mr-2", children: /* @__PURE__ */ t.jsxs(
630
+ var t = jr();
631
+ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), yr = ({ items: a, className: s }) => /* @__PURE__ */ t.jsx("ol", { className: `breadcrumb ${s || ""}`.trim(), children: a.map((o, l) => /* @__PURE__ */ t.jsx("li", { className: o.active ? "active" : "", children: o.active ? o.title : /* @__PURE__ */ t.jsx("a", { href: o.href, children: o.title }) }, l)) }), Er = /* @__PURE__ */ t.jsx("span", { className: "loading-spinner mr-2", children: /* @__PURE__ */ t.jsxs(
632
632
  "svg",
633
633
  {
634
634
  className: "animate-spin h-5 w-5 text-current",
@@ -660,15 +660,15 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), jr =
660
660
  ) }), Ne = ({
661
661
  type: a = "default",
662
662
  title: s,
663
- size: l,
664
- label: o,
663
+ size: o,
664
+ label: l,
665
665
  onClick: c,
666
666
  isDisabled: p = !1,
667
667
  children: h,
668
668
  className: C = "",
669
669
  isLoading: m = !1
670
670
  }) => {
671
- const T = `btn-${a}`, j = l ? `btn-${l}` : "", R = `${`btn ${T} ${j}`.trim()} ${C}`.trim();
671
+ const T = `btn-${a}`, j = o ? `btn-${o}` : "", R = `${`btn ${T} ${j}`.trim()} ${C}`.trim();
672
672
  return /* @__PURE__ */ t.jsx(
673
673
  "button",
674
674
  {
@@ -677,51 +677,51 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), jr =
677
677
  onClick: c,
678
678
  disabled: p || m,
679
679
  children: /* @__PURE__ */ t.jsxs("div", { className: "flex items-center justify-center", children: [
680
- m && yr,
681
- h || o,
680
+ m && Er,
681
+ h || l,
682
682
  " ",
683
683
  s && /* @__PURE__ */ t.jsx("span", { children: s })
684
684
  ] })
685
685
  }
686
686
  );
687
- }, wr = ({ children: a, eventKey: s, active: l }) => /* @__PURE__ */ t.jsx(
687
+ }, wr = ({ children: a, eventKey: s, active: o }) => /* @__PURE__ */ t.jsx(
688
688
  "div",
689
689
  {
690
- className: `tab-pane ${l ? "active" : ""}`,
690
+ className: `tab-pane ${o ? "active" : ""}`,
691
691
  id: `${s}-panel`,
692
692
  role: "tabpanel",
693
693
  "aria-labelledby": `${s}-tab`,
694
694
  children: a
695
695
  },
696
696
  s
697
- ), Or = ({ activeKey: a, onSelect: s, children: l }) => /* @__PURE__ */ t.jsxs("div", { className: "tabs-container", children: [
698
- /* @__PURE__ */ t.jsx("ul", { className: "nav nav-tabs", role: "tablist", children: l.map(({ props: { eventKey: o, title: c } }) => /* @__PURE__ */ t.jsx("li", { className: a === o ? "active" : "", children: /* @__PURE__ */ t.jsx(
697
+ ), Or = ({ activeKey: a, onSelect: s, children: o }) => /* @__PURE__ */ t.jsxs("div", { className: "tabs-container", children: [
698
+ /* @__PURE__ */ t.jsx("ul", { className: "nav nav-tabs", role: "tablist", children: o.map(({ props: { eventKey: l, title: c } }) => /* @__PURE__ */ t.jsx("li", { className: a === l ? "active" : "", children: /* @__PURE__ */ t.jsx(
699
699
  "a",
700
700
  {
701
- href: `#${o}`,
701
+ href: `#${l}`,
702
702
  onClick: (p) => {
703
- p.preventDefault(), s(o);
703
+ p.preventDefault(), s(l);
704
704
  },
705
705
  children: c
706
706
  }
707
- ) }, o)) }),
708
- /* @__PURE__ */ t.jsx("div", { className: "tabs-container", children: /* @__PURE__ */ t.jsx("div", { className: "tab-content pf-c-tab-content", children: l.map(({ props: { eventKey: o, children: c } }) => /* @__PURE__ */ t.jsx(
707
+ ) }, l)) }),
708
+ /* @__PURE__ */ t.jsx("div", { className: "tabs-container", children: /* @__PURE__ */ t.jsx("div", { className: "tab-content pf-c-tab-content", children: o.map(({ props: { eventKey: l, children: c } }) => /* @__PURE__ */ t.jsx(
709
709
  "div",
710
710
  {
711
- className: `tab-pane ${a === o ? "active" : ""}`,
712
- id: `${o}-panel`,
711
+ className: `tab-pane ${a === l ? "active" : ""}`,
712
+ id: `${l}-panel`,
713
713
  role: "tabpanel",
714
- "aria-labelledby": `${o}-tab`,
714
+ "aria-labelledby": `${l}-tab`,
715
715
  children: c
716
716
  },
717
- o
717
+ l
718
718
  )) }) })
719
- ] }), Sr = hr(
719
+ ] }), Sr = mr(
720
720
  ({
721
721
  id: a,
722
722
  type: s,
723
- placeholder: l = "",
724
- value: o,
723
+ placeholder: o = "",
724
+ value: l,
725
725
  onChange: c,
726
726
  className: p = "form-control"
727
727
  }, h) => /* @__PURE__ */ t.jsx(
@@ -730,34 +730,34 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), jr =
730
730
  type: s,
731
731
  id: a,
732
732
  className: p,
733
- placeholder: l,
734
- value: o,
733
+ placeholder: o,
734
+ value: l,
735
735
  onChange: c,
736
736
  ref: h
737
737
  }
738
738
  )
739
- ), Nr = ({ title: a, isOpen: s, onClose: l, children: o, size: c }) => {
739
+ ), Nr = ({ title: a, isOpen: s, onClose: o, children: l, size: c }) => {
740
740
  if (!s) return null;
741
741
  const p = c ? `modal-${c}` : "";
742
742
  return /* @__PURE__ */ t.jsx("div", { className: "modal fade in", style: { display: "block" }, tabIndex: -1, role: "dialog", children: /* @__PURE__ */ t.jsx("div", { className: `modal-dialog ${p}`, role: "document", children: /* @__PURE__ */ t.jsxs("div", { className: "modal-content", children: [
743
743
  /* @__PURE__ */ t.jsxs("div", { className: "modal-header", children: [
744
- /* @__PURE__ */ t.jsx("button", { type: "button", className: "close", onClick: l, "aria-hidden": "true", children: /* @__PURE__ */ t.jsx("span", { className: "pficon pficon-close" }) }),
744
+ /* @__PURE__ */ t.jsx("button", { type: "button", className: "close", onClick: o, "aria-hidden": "true", children: /* @__PURE__ */ t.jsx("span", { className: "pficon pficon-close" }) }),
745
745
  /* @__PURE__ */ t.jsx("h4", { className: "modal-title", children: a })
746
746
  ] }),
747
- /* @__PURE__ */ t.jsx("div", { className: "modal-body", children: o })
747
+ /* @__PURE__ */ t.jsx("div", { className: "modal-body", children: l })
748
748
  ] }) }) });
749
- }, kr = ({ variant: a, children: s, className: l = "" }) => {
750
- const o = {
749
+ }, kr = ({ variant: a, children: s, className: o = "" }) => {
750
+ const l = {
751
751
  warning: "text-yellow-600",
752
752
  success: "text-green-600",
753
753
  error: "text-red-600"
754
- }, c = l + " " + o[a] || "";
754
+ }, c = o + " " + l[a] || "";
755
755
  return /* @__PURE__ */ t.jsx("p", { className: c, children: s });
756
- }, Pr = ({ children: a, ...s }) => /* @__PURE__ */ t.jsx("table", { ...s, children: a }), $r = ({ children: a, ...s }) => /* @__PURE__ */ t.jsx("tbody", { ...s, children: a }), Dr = ({ children: a, ...s }) => /* @__PURE__ */ t.jsx("td", { ...s, children: a }), Fr = ({ children: a, ...s }) => /* @__PURE__ */ t.jsx("th", { ...s, children: a }), Ar = ({ children: a, ...s }) => /* @__PURE__ */ t.jsx("thead", { ...s, children: a }), Ir = ({ children: a, ...s }) => /* @__PURE__ */ t.jsx("tr", { ...s, children: a }), Er = ({
756
+ }, Pr = ({ children: a, ...s }) => /* @__PURE__ */ t.jsx("table", { ...s, children: a }), $r = ({ children: a, ...s }) => /* @__PURE__ */ t.jsx("tbody", { ...s, children: a }), Dr = ({ children: a, ...s }) => /* @__PURE__ */ t.jsx("td", { ...s, children: a }), Fr = ({ children: a, ...s }) => /* @__PURE__ */ t.jsx("th", { ...s, children: a }), Ar = ({ children: a, ...s }) => /* @__PURE__ */ t.jsx("thead", { ...s, children: a }), Ir = ({ children: a, ...s }) => /* @__PURE__ */ t.jsx("tr", { ...s, children: a }), ke = ({
757
757
  items: a,
758
758
  selected: s,
759
- title: l,
760
- isOpen: o,
759
+ title: o,
760
+ isOpen: l,
761
761
  setIsOpen: c,
762
762
  onChange: p,
763
763
  className: h = ""
@@ -784,21 +784,25 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), jr =
784
784
  {
785
785
  style: { marginLeft: "0px", left: "-1px" },
786
786
  className: j,
787
- onClick: () => C(o),
787
+ onClick: () => C(l),
788
788
  "data-toggle": "dropdown",
789
+ type: "button",
789
790
  children: /* @__PURE__ */ t.jsxs("div", { className: "flex items-center", children: [
790
- l && /* @__PURE__ */ t.jsx("div", { className: "mr-2", children: l }),
791
+ o && /* @__PURE__ */ t.jsx("div", { className: "mr-2", children: o }),
791
792
  /* @__PURE__ */ t.jsx("span", { className: "caret" })
792
793
  ] })
793
794
  }
794
795
  ),
795
796
  /* @__PURE__ */ t.jsx("ul", { className: "dropdown-menu", role: "menu", children: a.map(T) })
796
797
  ] });
797
- }, Rr = ({ currentPage: a, total: s, onPageChange: l, pageSize: o }) => {
798
- const c = Math.ceil(s / o), p = () => {
799
- a > 1 && l(a - 1);
798
+ }, Wr = (a) => {
799
+ const [s, o] = Q(!1);
800
+ return console.log("🪚 isOpen:", s), /* @__PURE__ */ t.jsx(ke, { ...a, isOpen: s, setIsOpen: o });
801
+ }, Rr = ({ currentPage: a, total: s, onPageChange: o, pageSize: l }) => {
802
+ const c = Math.ceil(s / l), p = () => {
803
+ a > 1 && o(a - 1);
800
804
  }, h = () => {
801
- a < c && l(a + 1);
805
+ a < c && o(a + 1);
802
806
  };
803
807
  return /* @__PURE__ */ t.jsxs("div", { children: [
804
808
  /* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsxs("span", { className: "pagination-pf-items-current", children: [
@@ -829,44 +833,44 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), jr =
829
833
  )
830
834
  ] })
831
835
  ] });
832
- }, ke = ({
836
+ }, Pe = ({
833
837
  children: a,
834
838
  onChange: s,
835
- items: l,
836
- selected: o
839
+ items: o,
840
+ selected: l
837
841
  }) => {
838
- const [c, p] = Se(!1);
842
+ const [c, p] = Q(!1);
839
843
  return /* @__PURE__ */ t.jsx("div", { className: `btn-group ${c ? "open" : ""}`, children: /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
840
844
  a,
841
845
  /* @__PURE__ */ t.jsx(
842
- Er,
846
+ ke,
843
847
  {
844
848
  setIsOpen: p,
845
849
  isOpen: c,
846
850
  onChange: s,
847
- items: l,
848
- selected: o,
851
+ items: o,
852
+ selected: l,
849
853
  className: "h-[20px]"
850
854
  }
851
855
  )
852
856
  ] }) });
853
- }, we = [
857
+ }, Oe = [
854
858
  { id: 1, title: "5 сек", data: 5e3 },
855
859
  { id: 2, title: "10 сек", data: 1e4 },
856
860
  { id: 3, title: "20 сек", data: 2e4 },
857
861
  { id: 4, title: "30 сек", data: 3e4 },
858
862
  { id: 5, title: "60 сек", data: 6e4 }
859
- ], _r = ({ onChange: a, value: s, onRefresh: l }) => {
863
+ ], _r = ({ onChange: a, value: s, onRefresh: o }) => {
860
864
  var p;
861
- const o = (h) => {
865
+ const l = (h) => {
862
866
  a(h.data);
863
- }, c = (p = we.find((h) => h.data === s)) == null ? void 0 : p.id;
864
- return /* @__PURE__ */ t.jsx(ke, { items: we, onChange: o, selected: c, children: /* @__PURE__ */ t.jsx(Ne, { className: "m-0 h-[20px]", type: "default", onClick: l, children: /* @__PURE__ */ t.jsx("i", { className: "fa fa-refresh" }) }) });
865
- }, Wr = ({
867
+ }, c = (p = Oe.find((h) => h.data === s)) == null ? void 0 : p.id;
868
+ return /* @__PURE__ */ t.jsx(Pe, { items: Oe, onChange: l, selected: c, children: /* @__PURE__ */ t.jsx(Ne, { className: "m-0 h-[20px]", type: "default", onClick: o, children: /* @__PURE__ */ t.jsx("i", { className: "fa fa-refresh" }) }) });
869
+ }, Yr = ({
866
870
  interval: a,
867
871
  page: s,
868
- total: l,
869
- onRefresh: o,
872
+ total: o,
873
+ onRefresh: l,
870
874
  onChangeInterval: c,
871
875
  onPageChange: p,
872
876
  pageSize: h
@@ -876,7 +880,7 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), jr =
876
880
  {
877
881
  value: a,
878
882
  onChange: c,
879
- onRefresh: o
883
+ onRefresh: l
880
884
  }
881
885
  ) }),
882
886
  /* @__PURE__ */ t.jsx("div", { className: "m-[5px]", children: /* @__PURE__ */ t.jsx(
@@ -884,15 +888,15 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), jr =
884
888
  {
885
889
  pageSize: h,
886
890
  currentPage: s,
887
- total: l,
891
+ total: o,
888
892
  onPageChange: p
889
893
  }
890
894
  ) })
891
- ] }), Yr = ({
895
+ ] }), Vr = ({
892
896
  id: a,
893
897
  label: s,
894
- isChecked: l = !1,
895
- onChange: o,
898
+ isChecked: o = !1,
899
+ onChange: l,
896
900
  className: c = "checkbox"
897
901
  }) => /* @__PURE__ */ t.jsx("div", { className: c, children: /* @__PURE__ */ t.jsxs("label", { htmlFor: a, children: [
898
902
  /* @__PURE__ */ t.jsx(
@@ -900,21 +904,21 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), jr =
900
904
  {
901
905
  type: "checkbox",
902
906
  id: a,
903
- checked: l,
904
- onChange: o
907
+ checked: o,
908
+ onChange: l
905
909
  }
906
910
  ),
907
911
  ` ${s}`
908
- ] }) }), Vr = ({
912
+ ] }) }), Mr = ({
909
913
  placeholder: a = "",
910
914
  rows: s = 3,
911
- maxLength: l,
912
- value: o,
915
+ maxLength: o,
916
+ value: l,
913
917
  onChange: c,
914
918
  isDisabled: p = !1,
915
919
  className: h = ""
916
920
  }) => {
917
- const [C, m] = Se(o || ""), T = o !== void 0 ? o : C, j = (b) => {
921
+ const [C, m] = Q(l || ""), T = l !== void 0 ? l : C, j = (b) => {
918
922
  const R = b.target.value;
919
923
  c ? c(R) : m(R);
920
924
  };
@@ -924,29 +928,29 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), jr =
924
928
  className: h,
925
929
  placeholder: a,
926
930
  rows: s,
927
- maxLength: l,
931
+ maxLength: o,
928
932
  value: T,
929
933
  onChange: j,
930
934
  disabled: p
931
935
  }
932
936
  );
933
- }, Mr = ({ variant: a, title: s, className: l }) => {
934
- const o = `alert alert-${a} ${l || ""}`;
935
- return ["success", "info", "warning", "danger"].includes(a) || (console.warn(`Unsupported alert variant: "${a}". Defaulting to "info".`), a = "info"), /* @__PURE__ */ t.jsx("div", { className: o.trim(), role: "alert", children: s });
937
+ }, Lr = ({ variant: a, title: s, className: o }) => {
938
+ const l = `alert alert-${a} ${o || ""}`;
939
+ return ["success", "info", "warning", "danger"].includes(a) || (console.warn(`Unsupported alert variant: "${a}". Defaulting to "info".`), a = "info"), /* @__PURE__ */ t.jsx("div", { className: l.trim(), role: "alert", children: s });
936
940
  };
937
- function Lr(a, s) {
938
- mr(() => {
941
+ function Ur(a, s) {
942
+ br(() => {
939
943
  if (!a)
940
944
  return;
941
- const l = setInterval(() => {
945
+ const o = setInterval(() => {
942
946
  s();
943
947
  }, a);
944
- return () => clearInterval(l);
948
+ return () => clearInterval(o);
945
949
  }, [a]);
946
950
  }
947
- const Ur = () => /* @__PURE__ */ t.jsxs("div", { children: [
951
+ const Br = () => /* @__PURE__ */ t.jsxs("div", { children: [
948
952
  /* @__PURE__ */ t.jsx(
949
- jr,
953
+ yr,
950
954
  {
951
955
  items: [
952
956
  { title: "Дополнения", active: !0 },
@@ -955,7 +959,7 @@ const Ur = () => /* @__PURE__ */ t.jsxs("div", { children: [
955
959
  }
956
960
  ),
957
961
  /* @__PURE__ */ t.jsx(
958
- ke,
962
+ Pe,
959
963
  {
960
964
  onChange: () => {
961
965
  },
@@ -969,27 +973,28 @@ const Ur = () => /* @__PURE__ */ t.jsxs("div", { children: [
969
973
  )
970
974
  ] });
971
975
  export {
972
- Mr as Alert,
973
- jr as Breadcrumb,
976
+ Lr as Alert,
977
+ yr as Breadcrumb,
974
978
  Ne as Button,
975
- Yr as Checkbox,
976
- Er as Dropdown,
979
+ Vr as Checkbox,
980
+ ke as Dropdown,
981
+ Wr as DropdownSelect,
977
982
  kr as HelpText,
978
983
  Sr as Input,
979
984
  Nr as Modal,
980
985
  Rr as Pagination,
981
986
  _r as ReloadButton,
982
- Ur as SampleComp,
987
+ Br as SampleComp,
983
988
  wr as Tab,
984
989
  Pr as Table,
985
- Wr as TableToolbar,
990
+ Yr as TableToolbar,
986
991
  Or as Tabs,
987
992
  $r as Tbody,
988
993
  Dr as Td,
989
- Vr as TextArea,
994
+ Mr as TextArea,
990
995
  Fr as Th,
991
996
  Ar as Thead,
992
997
  Tr as ToolbarContainer,
993
998
  Ir as Tr,
994
- Lr as useIntervalLoader
999
+ Ur as useIntervalLoader
995
1000
  };
@@ -1,4 +1,4 @@
1
- (function(v,O){typeof exports=="object"&&typeof module<"u"?O(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],O):(v=typeof globalThis<"u"?globalThis:v||self,O(v["ovirt-ui-toolkit"]={},v.React))})(this,function(v,O){"use strict";var M={exports:{}},I={};/**
1
+ (function(d,O){typeof exports=="object"&&typeof module<"u"?O(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],O):(d=typeof globalThis<"u"?globalThis:d||self,O(d["ovirt-ui-toolkit"]={},d.React))})(this,function(d,O){"use strict";var M={exports:{}},I={};/**
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 re;function Ie(){if(re)return I;re=1;var a=O,s=Symbol.for("react.element"),l=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,c=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function m(C,b,w){var y,g={},_=null,V=null;w!==void 0&&(_=""+w),b.key!==void 0&&(_=""+b.key),b.ref!==void 0&&(V=b.ref);for(y in b)o.call(b,y)&&!h.hasOwnProperty(y)&&(g[y]=b[y]);if(C&&C.defaultProps)for(y in b=C.defaultProps,b)g[y]===void 0&&(g[y]=b[y]);return{$$typeof:s,type:C,key:_,ref:V,props:g,_owner:c.current}}return I.Fragment=l,I.jsx=m,I.jsxs=m,I}var $={};/**
9
+ */var te;function Ie(){if(te)return I;te=1;var a=O,s=Symbol.for("react.element"),o=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,c=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function m(C,b,w){var y,g={},_=null,V=null;w!==void 0&&(_=""+w),b.key!==void 0&&(_=""+b.key),b.ref!==void 0&&(V=b.ref);for(y in b)l.call(b,y)&&!h.hasOwnProperty(y)&&(g[y]=b[y]);if(C&&C.defaultProps)for(y in b=C.defaultProps,b)g[y]===void 0&&(g[y]=b[y]);return{$$typeof:s,type:C,key:_,ref:V,props:g,_owner:c.current}}return I.Fragment=o,I.jsx=m,I.jsxs=m,I}var $={};/**
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 te;function $e(){return te||(te=1,process.env.NODE_ENV!=="production"&&function(){var a=O,s=Symbol.for("react.element"),l=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),C=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),V=Symbol.for("react.offscreen"),ue=Symbol.iterator,ar="@@iterator";function sr(e){if(e===null||typeof e!="object")return null;var r=ue&&e[ue]||e[ar];return typeof r=="function"?r:null}var D=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(e){{for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];ir("error",e,n)}}function ir(e,r,n){{var i=D.ReactDebugCurrentFrame,d=i.getStackAddendum();d!==""&&(r+="%s",n=n.concat([d]));var p=n.map(function(f){return String(f)});p.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,p)}}var or=!1,lr=!1,cr=!1,ur=!1,fr=!1,fe;fe=Symbol.for("react.module.reference");function dr(e){return!!(typeof e=="string"||typeof e=="function"||e===o||e===h||fr||e===c||e===w||e===y||ur||e===V||or||lr||cr||typeof e=="object"&&e!==null&&(e.$$typeof===_||e.$$typeof===g||e.$$typeof===m||e.$$typeof===C||e.$$typeof===b||e.$$typeof===fe||e.getModuleId!==void 0))}function vr(e,r,n){var i=e.displayName;if(i)return i;var d=r.displayName||r.name||"";return d!==""?n+"("+d+")":n}function de(e){return e.displayName||"Context"}function k(e){if(e==null)return null;if(typeof e.tag=="number"&&R("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 o:return"Fragment";case l:return"Portal";case h:return"Profiler";case c:return"StrictMode";case w:return"Suspense";case y:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case C:var r=e;return de(r)+".Consumer";case m:var n=e;return de(n._context)+".Provider";case b:return vr(e,e.render,"ForwardRef");case g:var i=e.displayName||null;return i!==null?i:k(e.type)||"Memo";case _:{var d=e,p=d._payload,f=d._init;try{return k(f(p))}catch{return null}}}return null}var N=Object.assign,W=0,ve,pe,he,me,be,ge,xe;function je(){}je.__reactDisabledLog=!0;function pr(){{if(W===0){ve=console.log,pe=console.info,he=console.warn,me=console.error,be=console.group,ge=console.groupCollapsed,xe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:je,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}W++}}function hr(){{if(W--,W===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},e,{value:ve}),info:N({},e,{value:pe}),warn:N({},e,{value:he}),error:N({},e,{value:me}),group:N({},e,{value:be}),groupCollapsed:N({},e,{value:ge}),groupEnd:N({},e,{value:xe})})}W<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var G=D.ReactCurrentDispatcher,H;function L(e,r,n){{if(H===void 0)try{throw Error()}catch(d){var i=d.stack.trim().match(/\n( *(at )?)/);H=i&&i[1]||""}return`
18
- `+H+e}}var q=!1,B;{var mr=typeof WeakMap=="function"?WeakMap:Map;B=new mr}function ye(e,r){if(!e||q)return"";{var n=B.get(e);if(n!==void 0)return n}var i;q=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=G.current,G.current=null,pr();try{if(r){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(T){i=T}Reflect.construct(e,[],f)}else{try{f.call()}catch(T){i=T}e.call(f.prototype)}}else{try{throw Error()}catch(T){i=T}e()}}catch(T){if(T&&i&&typeof T.stack=="string"){for(var u=T.stack.split(`
17
+ */var ne;function $e(){return ne||(ne=1,process.env.NODE_ENV!=="production"&&function(){var a=O,s=Symbol.for("react.element"),o=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),C=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),V=Symbol.for("react.offscreen"),ue=Symbol.iterator,sr="@@iterator";function ir(e){if(e===null||typeof e!="object")return null;var r=ue&&e[ue]||e[sr];return typeof r=="function"?r:null}var D=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(e){{for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];or("error",e,n)}}function or(e,r,n){{var i=D.ReactDebugCurrentFrame,v=i.getStackAddendum();v!==""&&(r+="%s",n=n.concat([v]));var p=n.map(function(f){return String(f)});p.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,p)}}var lr=!1,cr=!1,ur=!1,fr=!1,dr=!1,fe;fe=Symbol.for("react.module.reference");function vr(e){return!!(typeof e=="string"||typeof e=="function"||e===l||e===h||dr||e===c||e===w||e===y||fr||e===V||lr||cr||ur||typeof e=="object"&&e!==null&&(e.$$typeof===_||e.$$typeof===g||e.$$typeof===m||e.$$typeof===C||e.$$typeof===b||e.$$typeof===fe||e.getModuleId!==void 0))}function pr(e,r,n){var i=e.displayName;if(i)return i;var v=r.displayName||r.name||"";return v!==""?n+"("+v+")":n}function de(e){return e.displayName||"Context"}function k(e){if(e==null)return null;if(typeof e.tag=="number"&&R("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 l:return"Fragment";case o:return"Portal";case h:return"Profiler";case c:return"StrictMode";case w:return"Suspense";case y:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case C:var r=e;return de(r)+".Consumer";case m:var n=e;return de(n._context)+".Provider";case b:return pr(e,e.render,"ForwardRef");case g:var i=e.displayName||null;return i!==null?i:k(e.type)||"Memo";case _:{var v=e,p=v._payload,f=v._init;try{return k(f(p))}catch{return null}}}return null}var N=Object.assign,W=0,ve,pe,he,me,be,ge,xe;function je(){}je.__reactDisabledLog=!0;function hr(){{if(W===0){ve=console.log,pe=console.info,he=console.warn,me=console.error,be=console.group,ge=console.groupCollapsed,xe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:je,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}W++}}function mr(){{if(W--,W===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},e,{value:ve}),info:N({},e,{value:pe}),warn:N({},e,{value:he}),error:N({},e,{value:me}),group:N({},e,{value:be}),groupCollapsed:N({},e,{value:ge}),groupEnd:N({},e,{value:xe})})}W<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var H=D.ReactCurrentDispatcher,X;function L(e,r,n){{if(X===void 0)try{throw Error()}catch(v){var i=v.stack.trim().match(/\n( *(at )?)/);X=i&&i[1]||""}return`
18
+ `+X+e}}var q=!1,B;{var br=typeof WeakMap=="function"?WeakMap:Map;B=new br}function ye(e,r){if(!e||q)return"";{var n=B.get(e);if(n!==void 0)return n}var i;q=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=H.current,H.current=null,hr();try{if(r){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(T){i=T}Reflect.construct(e,[],f)}else{try{f.call()}catch(T){i=T}e.call(f.prototype)}}else{try{throw Error()}catch(T){i=T}e()}}catch(T){if(T&&i&&typeof T.stack=="string"){for(var u=T.stack.split(`
19
19
  `),E=i.stack.split(`
20
20
  `),x=u.length-1,j=E.length-1;x>=1&&j>=0&&u[x]!==E[j];)j--;for(;x>=1&&j>=0;x--,j--)if(u[x]!==E[j]){if(x!==1||j!==1)do if(x--,j--,j<0||u[x]!==E[j]){var S=`
21
- `+u[x].replace(" at new "," at ");return e.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",e.displayName)),typeof e=="function"&&B.set(e,S),S}while(x>=1&&j>=0);break}}}finally{q=!1,G.current=p,hr(),Error.prepareStackTrace=d}var F=e?e.displayName||e.name:"",P=F?L(F):"";return typeof e=="function"&&B.set(e,P),P}function br(e,r,n){return ye(e,!1)}function gr(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function U(e,r,n){if(e==null)return"";if(typeof e=="function")return ye(e,gr(e));if(typeof e=="string")return L(e);switch(e){case w:return L("Suspense");case y:return L("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case b:return br(e.render);case g:return U(e.type,r,n);case _:{var i=e,d=i._payload,p=i._init;try{return U(p(d),r,n)}catch{}}}return""}var Y=Object.prototype.hasOwnProperty,Re={},Ee=D.ReactDebugCurrentFrame;function J(e){if(e){var r=e._owner,n=U(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(n)}else Ee.setExtraStackFrame(null)}function xr(e,r,n,i,d){{var p=Function.call.bind(Y);for(var f in e)if(p(e,f)){var u=void 0;try{if(typeof e[f]!="function"){var E=Error((i||"React class")+": "+n+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw E.name="Invariant Violation",E}u=e[f](r,f,i,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(x){u=x}u&&!(u instanceof Error)&&(J(d),R("%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).",i||"React class",n,f,typeof u),J(null)),u instanceof Error&&!(u.message in Re)&&(Re[u.message]=!0,J(d),R("Failed %s type: %s",n,u.message),J(null))}}}var jr=Array.isArray;function X(e){return jr(e)}function yr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,n=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function Rr(e){try{return _e(e),!1}catch{return!0}}function _e(e){return""+e}function Te(e){if(Rr(e))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",yr(e)),_e(e)}var Ce=D.ReactCurrentOwner,Er={key:!0,ref:!0,__self:!0,__source:!0},we,Se;function _r(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 Tr(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 Cr(e,r){typeof e.ref=="string"&&Ce.current}function wr(e,r){{var n=function(){we||(we=!0,R("%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))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}}function Sr(e,r){{var n=function(){Se||(Se=!0,R("%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))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}}var Or=function(e,r,n,i,d,p,f){var u={$$typeof:s,type:e,key:r,ref:n,props:f,_owner:p};return u._store={},Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:d}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u};function kr(e,r,n,i,d){{var p,f={},u=null,E=null;n!==void 0&&(Te(n),u=""+n),Tr(r)&&(Te(r.key),u=""+r.key),_r(r)&&(E=r.ref,Cr(r,d));for(p in r)Y.call(r,p)&&!Er.hasOwnProperty(p)&&(f[p]=r[p]);if(e&&e.defaultProps){var x=e.defaultProps;for(p in x)f[p]===void 0&&(f[p]=x[p])}if(u||E){var j=typeof e=="function"?e.displayName||e.name||"Unknown":e;u&&wr(f,j),E&&Sr(f,j)}return Or(e,u,E,d,i,Ce.current,f)}}var Z=D.ReactCurrentOwner,Oe=D.ReactDebugCurrentFrame;function A(e){if(e){var r=e._owner,n=U(e.type,e._source,r?r.type:null);Oe.setExtraStackFrame(n)}else Oe.setExtraStackFrame(null)}var Q;Q=!1;function K(e){return typeof e=="object"&&e!==null&&e.$$typeof===s}function ke(){{if(Z.current){var e=k(Z.current.type);if(e)return`
21
+ `+u[x].replace(" at new "," at ");return e.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",e.displayName)),typeof e=="function"&&B.set(e,S),S}while(x>=1&&j>=0);break}}}finally{q=!1,H.current=p,mr(),Error.prepareStackTrace=v}var F=e?e.displayName||e.name:"",P=F?L(F):"";return typeof e=="function"&&B.set(e,P),P}function gr(e,r,n){return ye(e,!1)}function xr(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function U(e,r,n){if(e==null)return"";if(typeof e=="function")return ye(e,xr(e));if(typeof e=="string")return L(e);switch(e){case w:return L("Suspense");case y:return L("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case b:return gr(e.render);case g:return U(e.type,r,n);case _:{var i=e,v=i._payload,p=i._init;try{return U(p(v),r,n)}catch{}}}return""}var Y=Object.prototype.hasOwnProperty,Re={},Ee=D.ReactDebugCurrentFrame;function J(e){if(e){var r=e._owner,n=U(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(n)}else Ee.setExtraStackFrame(null)}function jr(e,r,n,i,v){{var p=Function.call.bind(Y);for(var f in e)if(p(e,f)){var u=void 0;try{if(typeof e[f]!="function"){var E=Error((i||"React class")+": "+n+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw E.name="Invariant Violation",E}u=e[f](r,f,i,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(x){u=x}u&&!(u instanceof Error)&&(J(v),R("%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).",i||"React class",n,f,typeof u),J(null)),u instanceof Error&&!(u.message in Re)&&(Re[u.message]=!0,J(v),R("Failed %s type: %s",n,u.message),J(null))}}}var yr=Array.isArray;function Z(e){return yr(e)}function Rr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,n=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function Er(e){try{return _e(e),!1}catch{return!0}}function _e(e){return""+e}function Te(e){if(Er(e))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Rr(e)),_e(e)}var Ce=D.ReactCurrentOwner,_r={key:!0,ref:!0,__self:!0,__source:!0},we,Se;function Tr(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 Cr(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 wr(e,r){typeof e.ref=="string"&&Ce.current}function Sr(e,r){{var n=function(){we||(we=!0,R("%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))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}}function Or(e,r){{var n=function(){Se||(Se=!0,R("%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))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}}var kr=function(e,r,n,i,v,p,f){var u={$$typeof:s,type:e,key:r,ref:n,props:f,_owner:p};return u._store={},Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:v}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u};function Nr(e,r,n,i,v){{var p,f={},u=null,E=null;n!==void 0&&(Te(n),u=""+n),Cr(r)&&(Te(r.key),u=""+r.key),Tr(r)&&(E=r.ref,wr(r,v));for(p in r)Y.call(r,p)&&!_r.hasOwnProperty(p)&&(f[p]=r[p]);if(e&&e.defaultProps){var x=e.defaultProps;for(p in x)f[p]===void 0&&(f[p]=x[p])}if(u||E){var j=typeof e=="function"?e.displayName||e.name||"Unknown":e;u&&Sr(f,j),E&&Or(f,j)}return kr(e,u,E,v,i,Ce.current,f)}}var Q=D.ReactCurrentOwner,Oe=D.ReactDebugCurrentFrame;function A(e){if(e){var r=e._owner,n=U(e.type,e._source,r?r.type:null);Oe.setExtraStackFrame(n)}else Oe.setExtraStackFrame(null)}var K;K=!1;function ee(e){return typeof e=="object"&&e!==null&&e.$$typeof===s}function ke(){{if(Q.current){var e=k(Q.current.type);if(e)return`
22
22
 
23
- Check the render method of \``+e+"`."}return""}}function Nr(e){return""}var Ne={};function Pr(e){{var r=ke();if(!r){var n=typeof e=="string"?e:e.displayName||e.name;n&&(r=`
23
+ Check the render method of \``+e+"`."}return""}}function Pr(e){return""}var Ne={};function Dr(e){{var r=ke();if(!r){var n=typeof e=="string"?e:e.displayName||e.name;n&&(r=`
24
24
 
25
- Check the top-level render call using <`+n+">.")}return r}}function Pe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=Pr(r);if(Ne[n])return;Ne[n]=!0;var i="";e&&e._owner&&e._owner!==Z.current&&(i=" It was passed a child from "+k(e._owner.type)+"."),A(e),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,i),A(null)}}function De(e,r){{if(typeof e!="object")return;if(X(e))for(var n=0;n<e.length;n++){var i=e[n];K(i)&&Pe(i,r)}else if(K(e))e._store&&(e._store.validated=!0);else if(e){var d=sr(e);if(typeof d=="function"&&d!==e.entries)for(var p=d.call(e),f;!(f=p.next()).done;)K(f.value)&&Pe(f.value,r)}}}function Dr(e){{var r=e.type;if(r==null||typeof r=="string")return;var n;if(typeof r=="function")n=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===b||r.$$typeof===g))n=r.propTypes;else return;if(n){var i=k(r);xr(n,e.props,"prop",i,e)}else if(r.PropTypes!==void 0&&!Q){Q=!0;var d=k(r);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",d||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ar(e){{for(var r=Object.keys(e.props),n=0;n<r.length;n++){var i=r[n];if(i!=="children"&&i!=="key"){A(e),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),A(null);break}}e.ref!==null&&(A(e),R("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}var Ae={};function Fe(e,r,n,i,d,p){{var f=dr(e);if(!f){var u="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(u+=" 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 E=Nr();E?u+=E:u+=ke();var x;e===null?x="null":X(e)?x="array":e!==void 0&&e.$$typeof===s?(x="<"+(k(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):x=typeof e,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",x,u)}var j=kr(e,r,n,d,p);if(j==null)return j;if(f){var S=r.children;if(S!==void 0)if(i)if(X(S)){for(var F=0;F<S.length;F++)De(S[F],e);Object.freeze&&Object.freeze(S)}else R("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 De(S,e)}if(Y.call(r,"key")){var P=k(e),T=Object.keys(r).filter(function(Mr){return Mr!=="key"}),ee=T.length>0?"{key: someKey, "+T.join(": ..., ")+": ...}":"{key: someKey}";if(!Ae[P+ee]){var Yr=T.length>0?"{"+T.join(": ..., ")+": ...}":"{}";R(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+n+">.")}return r}}function Pe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=Dr(r);if(Ne[n])return;Ne[n]=!0;var i="";e&&e._owner&&e._owner!==Q.current&&(i=" It was passed a child from "+k(e._owner.type)+"."),A(e),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,i),A(null)}}function De(e,r){{if(typeof e!="object")return;if(Z(e))for(var n=0;n<e.length;n++){var i=e[n];ee(i)&&Pe(i,r)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var v=ir(e);if(typeof v=="function"&&v!==e.entries)for(var p=v.call(e),f;!(f=p.next()).done;)ee(f.value)&&Pe(f.value,r)}}}function Ar(e){{var r=e.type;if(r==null||typeof r=="string")return;var n;if(typeof r=="function")n=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===b||r.$$typeof===g))n=r.propTypes;else return;if(n){var i=k(r);jr(n,e.props,"prop",i,e)}else if(r.PropTypes!==void 0&&!K){K=!0;var v=k(r);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",v||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Fr(e){{for(var r=Object.keys(e.props),n=0;n<r.length;n++){var i=r[n];if(i!=="children"&&i!=="key"){A(e),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),A(null);break}}e.ref!==null&&(A(e),R("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}var Ae={};function Fe(e,r,n,i,v,p){{var f=vr(e);if(!f){var u="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(u+=" 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 E=Pr();E?u+=E:u+=ke();var x;e===null?x="null":Z(e)?x="array":e!==void 0&&e.$$typeof===s?(x="<"+(k(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):x=typeof e,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",x,u)}var j=Nr(e,r,n,v,p);if(j==null)return j;if(f){var S=r.children;if(S!==void 0)if(i)if(Z(S)){for(var F=0;F<S.length;F++)De(S[F],e);Object.freeze&&Object.freeze(S)}else R("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 De(S,e)}if(Y.call(r,"key")){var P=k(e),T=Object.keys(r).filter(function(Vr){return Vr!=="key"}),re=T.length>0?"{key: someKey, "+T.join(": ..., ")+": ...}":"{key: someKey}";if(!Ae[P+re]){var Mr=T.length>0?"{"+T.join(": ..., ")+": ...}":"{}";R(`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} />`,ee,P,Yr,P),Ae[P+ee]=!0}}return e===o?Ar(j):Dr(j),j}}function Fr(e,r,n){return Fe(e,r,n,!0)}function Ir(e,r,n){return Fe(e,r,n,!1)}var $r=Ir,Wr=Fr;$.Fragment=o,$.jsx=$r,$.jsxs=Wr}()),$}var ne;function We(){return ne||(ne=1,process.env.NODE_ENV==="production"?M.exports=Ie():M.exports=$e()),M.exports}var t=We();const Ye=()=>t.jsx("div",{className:"toolbar-pf"}),ae=({items:a,className:s})=>t.jsx("ol",{className:`breadcrumb ${s||""}`.trim(),children:a.map((l,o)=>t.jsx("li",{className:l.active?"active":"",children:l.active?l.title:t.jsx("a",{href:l.href,children:l.title})},o))}),Me=t.jsx("span",{className:"loading-spinner mr-2",children:t.jsxs("svg",{className:"animate-spin h-5 w-5 text-current",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[t.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),t.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}),z=({type:a="default",title:s,size:l,label:o,onClick:c,isDisabled:h=!1,children:m,className:C="",isLoading:b=!1})=>{const w=`btn-${a}`,y=l?`btn-${l}`:"",_=`${`btn ${w} ${y}`.trim()} ${C}`.trim();return t.jsx("button",{className:_,type:"button",onClick:c,disabled:h||b,children:t.jsxs("div",{className:"flex items-center justify-center",children:[b&&Me,m||o," ",s&&t.jsx("span",{children:s})]})})},Ve=({children:a,eventKey:s,active:l})=>t.jsx("div",{className:`tab-pane ${l?"active":""}`,id:`${s}-panel`,role:"tabpanel","aria-labelledby":`${s}-tab`,children:a},s),Le=({activeKey:a,onSelect:s,children:l})=>t.jsxs("div",{className:"tabs-container",children:[t.jsx("ul",{className:"nav nav-tabs",role:"tablist",children:l.map(({props:{eventKey:o,title:c}})=>t.jsx("li",{className:a===o?"active":"",children:t.jsx("a",{href:`#${o}`,onClick:h=>{h.preventDefault(),s(o)},children:c})},o))}),t.jsx("div",{className:"tabs-container",children:t.jsx("div",{className:"tab-content pf-c-tab-content",children:l.map(({props:{eventKey:o,children:c}})=>t.jsx("div",{className:`tab-pane ${a===o?"active":""}`,id:`${o}-panel`,role:"tabpanel","aria-labelledby":`${o}-tab`,children:c},o))})})]}),Be=O.forwardRef(({id:a,type:s,placeholder:l="",value:o,onChange:c,className:h="form-control"},m)=>t.jsx("input",{type:s,id:a,className:h,placeholder:l,value:o,onChange:c,ref:m})),Ue=({title:a,isOpen:s,onClose:l,children:o,size:c})=>{if(!s)return null;const h=c?`modal-${c}`:"";return t.jsx("div",{className:"modal fade in",style:{display:"block"},tabIndex:-1,role:"dialog",children:t.jsx("div",{className:`modal-dialog ${h}`,role:"document",children:t.jsxs("div",{className:"modal-content",children:[t.jsxs("div",{className:"modal-header",children:[t.jsx("button",{type:"button",className:"close",onClick:l,"aria-hidden":"true",children:t.jsx("span",{className:"pficon pficon-close"})}),t.jsx("h4",{className:"modal-title",children:a})]}),t.jsx("div",{className:"modal-body",children:o})]})})})},Je=({variant:a,children:s,className:l=""})=>{const o={warning:"text-yellow-600",success:"text-green-600",error:"text-red-600"},c=l+" "+o[a]||"";return t.jsx("p",{className:c,children:s})},ze=({children:a,...s})=>t.jsx("table",{...s,children:a}),Ge=({children:a,...s})=>t.jsx("tbody",{...s,children:a}),He=({children:a,...s})=>t.jsx("td",{...s,children:a}),qe=({children:a,...s})=>t.jsx("th",{...s,children:a}),Xe=({children:a,...s})=>t.jsx("thead",{...s,children:a}),Ze=({children:a,...s})=>t.jsx("tr",{...s,children:a}),se=({items:a,selected:s,title:l,isOpen:o,setIsOpen:c,onChange:h,className:m=""})=>{const C=g=>{c(!g)},b=g=>{c(!1),h(g)},w=g=>{const _=g.id===s;return t.jsx("li",{onClick:()=>b(g),className:_?"active":"",children:t.jsx("a",{href:"#",children:g.title})},g.id)},y=`btn btn-default dropdown-toggle ${m}`;return t.jsxs(t.Fragment,{children:[t.jsx("button",{style:{marginLeft:"0px",left:"-1px"},className:y,onClick:()=>C(o),"data-toggle":"dropdown",children:t.jsxs("div",{className:"flex items-center",children:[l&&t.jsx("div",{className:"mr-2",children:l}),t.jsx("span",{className:"caret"})]})}),t.jsx("ul",{className:"dropdown-menu",role:"menu",children:a.map(w)})]})},ie=({currentPage:a,total:s,onPageChange:l,pageSize:o})=>{const c=Math.ceil(s/o),h=()=>{a>1&&l(a-1)},m=()=>{a<c&&l(a+1)};return t.jsxs("div",{children:[t.jsx("span",{children:t.jsxs("span",{className:"pagination-pf-items-current",children:[a," - ",c]})}),t.jsxs("div",{className:"btn-group ml-2",children:[t.jsx("button",{type:"button",className:`btn btn-default ${a===1?"disabled":""}`,disabled:a===1,onClick:h,children:t.jsx("i",{className:"fa fa-angle-left"})}),t.jsx("button",{type:"button",className:`btn btn-default ${a===c?"disabled":""}`,disabled:a===c,onClick:m,children:t.jsx("i",{className:"fa fa-angle-right"})})]})]})},oe=({children:a,onChange:s,items:l,selected:o})=>{const[c,h]=O.useState(!1);return t.jsx("div",{className:`btn-group ${c?"open":""}`,children:t.jsxs(t.Fragment,{children:[a,t.jsx(se,{setIsOpen:h,isOpen:c,onChange:s,items:l,selected:o,className:"h-[20px]"})]})})},le=[{id:1,title:"5 сек",data:5e3},{id:2,title:"10 сек",data:1e4},{id:3,title:"20 сек",data:2e4},{id:4,title:"30 сек",data:3e4},{id:5,title:"60 сек",data:6e4}],ce=({onChange:a,value:s,onRefresh:l})=>{var h;const o=m=>{a(m.data)},c=(h=le.find(m=>m.data===s))==null?void 0:h.id;return t.jsx(oe,{items:le,onChange:o,selected:c,children:t.jsx(z,{className:"m-0 h-[20px]",type:"default",onClick:l,children:t.jsx("i",{className:"fa fa-refresh"})})})},Qe=({interval:a,page:s,total:l,onRefresh:o,onChangeInterval:c,onPageChange:h,pageSize:m})=>t.jsxs("div",{className:"flex justify-between bg-[#f5f5f5] border border-[#d1d1d1]",children:[t.jsx("div",{className:"m-[5px]",children:t.jsx(ce,{value:a,onChange:c,onRefresh:o})}),t.jsx("div",{className:"m-[5px]",children:t.jsx(ie,{pageSize:m,currentPage:s,total:l,onPageChange:h})})]}),Ke=({id:a,label:s,isChecked:l=!1,onChange:o,className:c="checkbox"})=>t.jsx("div",{className:c,children:t.jsxs("label",{htmlFor:a,children:[t.jsx("input",{type:"checkbox",id:a,checked:l,onChange:o}),` ${s}`]})}),er=({placeholder:a="",rows:s=3,maxLength:l,value:o,onChange:c,isDisabled:h=!1,className:m=""})=>{const[C,b]=O.useState(o||""),w=o!==void 0?o:C,y=g=>{const _=g.target.value;c?c(_):b(_)};return t.jsx("textarea",{className:m,placeholder:a,rows:s,maxLength:l,value:w,onChange:y,disabled:h})},rr=({variant:a,title:s,className:l})=>{const o=`alert alert-${a} ${l||""}`;return["success","info","warning","danger"].includes(a)||(console.warn(`Unsupported alert variant: "${a}". Defaulting to "info".`),a="info"),t.jsx("div",{className:o.trim(),role:"alert",children:s})};function tr(a,s){O.useEffect(()=>{if(!a)return;const l=setInterval(()=>{s()},a);return()=>clearInterval(l)},[a])}const nr=()=>t.jsxs("div",{children:[t.jsx(ae,{items:[{title:"Дополнения",active:!0},{title:"Название плагина",href:"#Название плагина"}]}),t.jsx(oe,{onChange:()=>{},items:[{id:0,title:"5 сек"},{id:1,title:"10 сек"},{id:2,title:"20 сек"}],children:t.jsx(z,{children:"Hello"})})]});v.Alert=rr,v.Breadcrumb=ae,v.Button=z,v.Checkbox=Ke,v.Dropdown=se,v.HelpText=Je,v.Input=Be,v.Modal=Ue,v.Pagination=ie,v.ReloadButton=ce,v.SampleComp=nr,v.Tab=Ve,v.Table=ze,v.TableToolbar=Qe,v.Tabs=Le,v.Tbody=Ge,v.Td=He,v.TextArea=er,v.Th=qe,v.Thead=Xe,v.ToolbarContainer=Ye,v.Tr=Ze,v.useIntervalLoader=tr,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})});
30
+ <%s key={someKey} {...props} />`,re,P,Mr,P),Ae[P+re]=!0}}return e===l?Fr(j):Ar(j),j}}function Ir(e,r,n){return Fe(e,r,n,!0)}function $r(e,r,n){return Fe(e,r,n,!1)}var Wr=$r,Yr=Ir;$.Fragment=l,$.jsx=Wr,$.jsxs=Yr}()),$}var ae;function We(){return ae||(ae=1,process.env.NODE_ENV==="production"?M.exports=Ie():M.exports=$e()),M.exports}var t=We();const Ye=()=>t.jsx("div",{className:"toolbar-pf"}),se=({items:a,className:s})=>t.jsx("ol",{className:`breadcrumb ${s||""}`.trim(),children:a.map((o,l)=>t.jsx("li",{className:o.active?"active":"",children:o.active?o.title:t.jsx("a",{href:o.href,children:o.title})},l))}),Me=t.jsx("span",{className:"loading-spinner mr-2",children:t.jsxs("svg",{className:"animate-spin h-5 w-5 text-current",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[t.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),t.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}),z=({type:a="default",title:s,size:o,label:l,onClick:c,isDisabled:h=!1,children:m,className:C="",isLoading:b=!1})=>{const w=`btn-${a}`,y=o?`btn-${o}`:"",_=`${`btn ${w} ${y}`.trim()} ${C}`.trim();return t.jsx("button",{className:_,type:"button",onClick:c,disabled:h||b,children:t.jsxs("div",{className:"flex items-center justify-center",children:[b&&Me,m||l," ",s&&t.jsx("span",{children:s})]})})},Ve=({children:a,eventKey:s,active:o})=>t.jsx("div",{className:`tab-pane ${o?"active":""}`,id:`${s}-panel`,role:"tabpanel","aria-labelledby":`${s}-tab`,children:a},s),Le=({activeKey:a,onSelect:s,children:o})=>t.jsxs("div",{className:"tabs-container",children:[t.jsx("ul",{className:"nav nav-tabs",role:"tablist",children:o.map(({props:{eventKey:l,title:c}})=>t.jsx("li",{className:a===l?"active":"",children:t.jsx("a",{href:`#${l}`,onClick:h=>{h.preventDefault(),s(l)},children:c})},l))}),t.jsx("div",{className:"tabs-container",children:t.jsx("div",{className:"tab-content pf-c-tab-content",children:o.map(({props:{eventKey:l,children:c}})=>t.jsx("div",{className:`tab-pane ${a===l?"active":""}`,id:`${l}-panel`,role:"tabpanel","aria-labelledby":`${l}-tab`,children:c},l))})})]}),Be=O.forwardRef(({id:a,type:s,placeholder:o="",value:l,onChange:c,className:h="form-control"},m)=>t.jsx("input",{type:s,id:a,className:h,placeholder:o,value:l,onChange:c,ref:m})),Ue=({title:a,isOpen:s,onClose:o,children:l,size:c})=>{if(!s)return null;const h=c?`modal-${c}`:"";return t.jsx("div",{className:"modal fade in",style:{display:"block"},tabIndex:-1,role:"dialog",children:t.jsx("div",{className:`modal-dialog ${h}`,role:"document",children:t.jsxs("div",{className:"modal-content",children:[t.jsxs("div",{className:"modal-header",children:[t.jsx("button",{type:"button",className:"close",onClick:o,"aria-hidden":"true",children:t.jsx("span",{className:"pficon pficon-close"})}),t.jsx("h4",{className:"modal-title",children:a})]}),t.jsx("div",{className:"modal-body",children:l})]})})})},Je=({variant:a,children:s,className:o=""})=>{const l={warning:"text-yellow-600",success:"text-green-600",error:"text-red-600"},c=o+" "+l[a]||"";return t.jsx("p",{className:c,children:s})},ze=({children:a,...s})=>t.jsx("table",{...s,children:a}),Ge=({children:a,...s})=>t.jsx("tbody",{...s,children:a}),He=({children:a,...s})=>t.jsx("td",{...s,children:a}),Xe=({children:a,...s})=>t.jsx("th",{...s,children:a}),qe=({children:a,...s})=>t.jsx("thead",{...s,children:a}),Ze=({children:a,...s})=>t.jsx("tr",{...s,children:a}),G=({items:a,selected:s,title:o,isOpen:l,setIsOpen:c,onChange:h,className:m=""})=>{const C=g=>{c(!g)},b=g=>{c(!1),h(g)},w=g=>{const _=g.id===s;return t.jsx("li",{onClick:()=>b(g),className:_?"active":"",children:t.jsx("a",{href:"#",children:g.title})},g.id)},y=`btn btn-default dropdown-toggle ${m}`;return t.jsxs(t.Fragment,{children:[t.jsx("button",{style:{marginLeft:"0px",left:"-1px"},className:y,onClick:()=>C(l),"data-toggle":"dropdown",type:"button",children:t.jsxs("div",{className:"flex items-center",children:[o&&t.jsx("div",{className:"mr-2",children:o}),t.jsx("span",{className:"caret"})]})}),t.jsx("ul",{className:"dropdown-menu",role:"menu",children:a.map(w)})]})},Qe=a=>{const[s,o]=O.useState(!1);return console.log("🪚 isOpen:",s),t.jsx(G,{...a,isOpen:s,setIsOpen:o})},ie=({currentPage:a,total:s,onPageChange:o,pageSize:l})=>{const c=Math.ceil(s/l),h=()=>{a>1&&o(a-1)},m=()=>{a<c&&o(a+1)};return t.jsxs("div",{children:[t.jsx("span",{children:t.jsxs("span",{className:"pagination-pf-items-current",children:[a," - ",c]})}),t.jsxs("div",{className:"btn-group ml-2",children:[t.jsx("button",{type:"button",className:`btn btn-default ${a===1?"disabled":""}`,disabled:a===1,onClick:h,children:t.jsx("i",{className:"fa fa-angle-left"})}),t.jsx("button",{type:"button",className:`btn btn-default ${a===c?"disabled":""}`,disabled:a===c,onClick:m,children:t.jsx("i",{className:"fa fa-angle-right"})})]})]})},oe=({children:a,onChange:s,items:o,selected:l})=>{const[c,h]=O.useState(!1);return t.jsx("div",{className:`btn-group ${c?"open":""}`,children:t.jsxs(t.Fragment,{children:[a,t.jsx(G,{setIsOpen:h,isOpen:c,onChange:s,items:o,selected:l,className:"h-[20px]"})]})})},le=[{id:1,title:"5 сек",data:5e3},{id:2,title:"10 сек",data:1e4},{id:3,title:"20 сек",data:2e4},{id:4,title:"30 сек",data:3e4},{id:5,title:"60 сек",data:6e4}],ce=({onChange:a,value:s,onRefresh:o})=>{var h;const l=m=>{a(m.data)},c=(h=le.find(m=>m.data===s))==null?void 0:h.id;return t.jsx(oe,{items:le,onChange:l,selected:c,children:t.jsx(z,{className:"m-0 h-[20px]",type:"default",onClick:o,children:t.jsx("i",{className:"fa fa-refresh"})})})},Ke=({interval:a,page:s,total:o,onRefresh:l,onChangeInterval:c,onPageChange:h,pageSize:m})=>t.jsxs("div",{className:"flex justify-between bg-[#f5f5f5] border border-[#d1d1d1]",children:[t.jsx("div",{className:"m-[5px]",children:t.jsx(ce,{value:a,onChange:c,onRefresh:l})}),t.jsx("div",{className:"m-[5px]",children:t.jsx(ie,{pageSize:m,currentPage:s,total:o,onPageChange:h})})]}),er=({id:a,label:s,isChecked:o=!1,onChange:l,className:c="checkbox"})=>t.jsx("div",{className:c,children:t.jsxs("label",{htmlFor:a,children:[t.jsx("input",{type:"checkbox",id:a,checked:o,onChange:l}),` ${s}`]})}),rr=({placeholder:a="",rows:s=3,maxLength:o,value:l,onChange:c,isDisabled:h=!1,className:m=""})=>{const[C,b]=O.useState(l||""),w=l!==void 0?l:C,y=g=>{const _=g.target.value;c?c(_):b(_)};return t.jsx("textarea",{className:m,placeholder:a,rows:s,maxLength:o,value:w,onChange:y,disabled:h})},tr=({variant:a,title:s,className:o})=>{const l=`alert alert-${a} ${o||""}`;return["success","info","warning","danger"].includes(a)||(console.warn(`Unsupported alert variant: "${a}". Defaulting to "info".`),a="info"),t.jsx("div",{className:l.trim(),role:"alert",children:s})};function nr(a,s){O.useEffect(()=>{if(!a)return;const o=setInterval(()=>{s()},a);return()=>clearInterval(o)},[a])}const ar=()=>t.jsxs("div",{children:[t.jsx(se,{items:[{title:"Дополнения",active:!0},{title:"Название плагина",href:"#Название плагина"}]}),t.jsx(oe,{onChange:()=>{},items:[{id:0,title:"5 сек"},{id:1,title:"10 сек"},{id:2,title:"20 сек"}],children:t.jsx(z,{children:"Hello"})})]});d.Alert=tr,d.Breadcrumb=se,d.Button=z,d.Checkbox=er,d.Dropdown=G,d.DropdownSelect=Qe,d.HelpText=Je,d.Input=Be,d.Modal=Ue,d.Pagination=ie,d.ReloadButton=ce,d.SampleComp=ar,d.Tab=Ve,d.Table=ze,d.TableToolbar=Ke,d.Tabs=Le,d.Tbody=Ge,d.Td=He,d.TextArea=rr,d.Th=Xe,d.Thead=qe,d.ToolbarContainer=Ye,d.Tr=Ze,d.useIntervalLoader=nr,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ovirt-ui-toolkit",
3
- "version": "0.0.50",
3
+ "version": "0.0.52",
4
4
  "type": "module",
5
5
  "main": "./dist/ovirt-ui-toolkit.umd.js",
6
6
  "module": "./dist/ovirt-ui-toolkit.es.js",