ovirt-ui-toolkit 0.0.96 → 0.0.98

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.
@@ -1,4 +1,4 @@
1
- (function(v,S){typeof exports=="object"&&typeof module<"u"?S(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],S):(v=typeof globalThis<"u"?globalThis:v||self,S(v["ovirt-ui-toolkit"]={},v.React))})(this,function(v,S){"use strict";var M={exports:{}},$={};/**
1
+ (function(p,_){typeof exports=="object"&&typeof module<"u"?_(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],_):(p=typeof globalThis<"u"?globalThis:p||self,_(p["ovirt-ui-toolkit"]={},p.React))})(this,function(p,_){"use strict";var Y={exports:{}},A={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var ne;function Ie(){if(ne)return $;ne=1;var n=S,s=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function m(g,h,E){var R,C={},x=null,k=null;E!==void 0&&(x=""+E),h.key!==void 0&&(x=""+h.key),h.ref!==void 0&&(k=h.ref);for(R in h)i.call(h,R)&&!f.hasOwnProperty(R)&&(C[R]=h[R]);if(g&&g.defaultProps)for(R in h=g.defaultProps,h)C[R]===void 0&&(C[R]=h[R]);return{$$typeof:s,type:g,key:x,ref:k,props:C,_owner:l.current}}return $.Fragment=o,$.jsx=m,$.jsxs=m,$}var W={};/**
9
+ */var ne;function Ae(){if(ne)return A;ne=1;var n=_,s=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,c=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function d(b,m,R){var E,x={},w=null,B=null;R!==void 0&&(w=""+R),m.key!==void 0&&(w=""+m.key),m.ref!==void 0&&(B=m.ref);for(E in m)o.call(m,E)&&!u.hasOwnProperty(E)&&(x[E]=m[E]);if(b&&b.defaultProps)for(E in m=b.defaultProps,m)x[E]===void 0&&(x[E]=m[E]);return{$$typeof:s,type:b,key:w,ref:B,props:x,_owner:c.current}}return A.Fragment=i,A.jsx=d,A.jsxs=d,A}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 ae;function $e(){return ae||(ae=1,process.env.NODE_ENV!=="production"&&function(){var n=S,s=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),g=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),k=Symbol.for("react.offscreen"),ue=Symbol.iterator,or="@@iterator";function lr(e){if(e===null||typeof e!="object")return null;var r=ue&&e[ue]||e[or];return typeof r=="function"?r:null}var F=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(e){{for(var r=arguments.length,a=new Array(r>1?r-1:0),c=1;c<r;c++)a[c-1]=arguments[c];cr("error",e,a)}}function cr(e,r,a){{var c=F.ReactDebugCurrentFrame,p=c.getStackAddendum();p!==""&&(r+="%s",a=a.concat([p]));var b=a.map(function(d){return String(d)});b.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,b)}}var ur=!1,fr=!1,dr=!1,vr=!1,pr=!1,fe;fe=Symbol.for("react.module.reference");function mr(e){return!!(typeof e=="string"||typeof e=="function"||e===i||e===f||pr||e===l||e===E||e===R||vr||e===k||ur||fr||dr||typeof e=="object"&&e!==null&&(e.$$typeof===x||e.$$typeof===C||e.$$typeof===m||e.$$typeof===g||e.$$typeof===h||e.$$typeof===fe||e.getModuleId!==void 0))}function hr(e,r,a){var c=e.displayName;if(c)return c;var p=r.displayName||r.name||"";return p!==""?a+"("+p+")":a}function de(e){return e.displayName||"Context"}function O(e){if(e==null)return null;if(typeof e.tag=="number"&&_("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 i:return"Fragment";case o:return"Portal";case f:return"Profiler";case l:return"StrictMode";case E:return"Suspense";case R:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case g:var r=e;return de(r)+".Consumer";case m:var a=e;return de(a._context)+".Provider";case h:return hr(e,e.render,"ForwardRef");case C:var c=e.displayName||null;return c!==null?c:O(e.type)||"Memo";case x:{var p=e,b=p._payload,d=p._init;try{return O(d(b))}catch{return null}}}return null}var P=Object.assign,L=0,ve,pe,me,he,be,ge,xe;function je(){}je.__reactDisabledLog=!0;function br(){{if(L===0){ve=console.log,pe=console.info,me=console.warn,he=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})}L++}}function gr(){{if(L--,L===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:P({},e,{value:ve}),info:P({},e,{value:pe}),warn:P({},e,{value:me}),error:P({},e,{value:he}),group:P({},e,{value:be}),groupCollapsed:P({},e,{value:ge}),groupEnd:P({},e,{value:xe})})}L<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var X=F.ReactCurrentDispatcher,q;function U(e,r,a){{if(q===void 0)try{throw Error()}catch(p){var c=p.stack.trim().match(/\n( *(at )?)/);q=c&&c[1]||""}return`
18
- `+q+e}}var Z=!1,J;{var xr=typeof WeakMap=="function"?WeakMap:Map;J=new xr}function ye(e,r){if(!e||Z)return"";{var a=J.get(e);if(a!==void 0)return a}var c;Z=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var b;b=X.current,X.current=null,br();try{if(r){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(w){c=w}Reflect.construct(e,[],d)}else{try{d.call()}catch(w){c=w}e.call(d.prototype)}}else{try{throw Error()}catch(w){c=w}e()}}catch(w){if(w&&c&&typeof w.stack=="string"){for(var u=w.stack.split(`
19
- `),T=c.stack.split(`
20
- `),j=u.length-1,y=T.length-1;j>=1&&y>=0&&u[j]!==T[y];)y--;for(;j>=1&&y>=0;j--,y--)if(u[j]!==T[y]){if(j!==1||y!==1)do if(j--,y--,y<0||u[j]!==T[y]){var N=`
21
- `+u[j].replace(" at new "," at ");return e.displayName&&N.includes("<anonymous>")&&(N=N.replace("<anonymous>",e.displayName)),typeof e=="function"&&J.set(e,N),N}while(j>=1&&y>=0);break}}}finally{Z=!1,X.current=b,gr(),Error.prepareStackTrace=p}var I=e?e.displayName||e.name:"",D=I?U(I):"";return typeof e=="function"&&J.set(e,D),D}function jr(e,r,a){return ye(e,!1)}function yr(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function G(e,r,a){if(e==null)return"";if(typeof e=="function")return ye(e,yr(e));if(typeof e=="string")return U(e);switch(e){case E:return U("Suspense");case R:return U("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case h:return jr(e.render);case C:return G(e.type,r,a);case x:{var c=e,p=c._payload,b=c._init;try{return G(b(p),r,a)}catch{}}}return""}var Y=Object.prototype.hasOwnProperty,Re={},Ee=F.ReactDebugCurrentFrame;function H(e){if(e){var r=e._owner,a=G(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(a)}else Ee.setExtraStackFrame(null)}function Rr(e,r,a,c,p){{var b=Function.call.bind(Y);for(var d in e)if(b(e,d)){var u=void 0;try{if(typeof e[d]!="function"){var T=Error((c||"React class")+": "+a+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}u=e[d](r,d,c,a,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(j){u=j}u&&!(u instanceof Error)&&(H(p),_("%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).",c||"React class",a,d,typeof u),H(null)),u instanceof Error&&!(u.message in Re)&&(Re[u.message]=!0,H(p),_("Failed %s type: %s",a,u.message),H(null))}}}var Er=Array.isArray;function Q(e){return Er(e)}function _r(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,a=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a}}function Tr(e){try{return _e(e),!1}catch{return!0}}function _e(e){return""+e}function Te(e){if(Tr(e))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",_r(e)),_e(e)}var Ce=F.ReactCurrentOwner,Cr={key:!0,ref:!0,__self:!0,__source:!0},we,Se;function wr(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 Nr(e,r){typeof e.ref=="string"&&Ce.current}function kr(e,r){{var a=function(){we||(we=!0,_("%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))};a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}}function Or(e,r){{var a=function(){Se||(Se=!0,_("%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))};a.isReactWarning=!0,Object.defineProperty(e,"ref",{get:a,configurable:!0})}}var Pr=function(e,r,a,c,p,b,d){var u={$$typeof:s,type:e,key:r,ref:a,props:d,_owner:b};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:c}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:p}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u};function Dr(e,r,a,c,p){{var b,d={},u=null,T=null;a!==void 0&&(Te(a),u=""+a),Sr(r)&&(Te(r.key),u=""+r.key),wr(r)&&(T=r.ref,Nr(r,p));for(b in r)Y.call(r,b)&&!Cr.hasOwnProperty(b)&&(d[b]=r[b]);if(e&&e.defaultProps){var j=e.defaultProps;for(b in j)d[b]===void 0&&(d[b]=j[b])}if(u||T){var y=typeof e=="function"?e.displayName||e.name||"Unknown":e;u&&kr(d,y),T&&Or(d,y)}return Pr(e,u,T,p,c,Ce.current,d)}}var K=F.ReactCurrentOwner,Ne=F.ReactDebugCurrentFrame;function A(e){if(e){var r=e._owner,a=G(e.type,e._source,r?r.type:null);Ne.setExtraStackFrame(a)}else Ne.setExtraStackFrame(null)}var ee;ee=!1;function re(e){return typeof e=="object"&&e!==null&&e.$$typeof===s}function ke(){{if(K.current){var e=O(K.current.type);if(e)return`
17
+ */var ae;function $e(){return ae||(ae=1,process.env.NODE_ENV!=="production"&&function(){var n=_,s=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),b=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),ue=Symbol.iterator,or="@@iterator";function lr(e){if(e===null||typeof e!="object")return null;var r=ue&&e[ue]||e[or];return typeof r=="function"?r:null}var D=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function T(e){{for(var r=arguments.length,a=new Array(r>1?r-1:0),l=1;l<r;l++)a[l-1]=arguments[l];cr("error",e,a)}}function cr(e,r,a){{var l=D.ReactDebugCurrentFrame,h=l.getStackAddendum();h!==""&&(r+="%s",a=a.concat([h]));var g=a.map(function(v){return String(v)});g.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,g)}}var ur=!1,fr=!1,dr=!1,vr=!1,pr=!1,fe;fe=Symbol.for("react.module.reference");function mr(e){return!!(typeof e=="string"||typeof e=="function"||e===o||e===u||pr||e===c||e===R||e===E||vr||e===B||ur||fr||dr||typeof e=="object"&&e!==null&&(e.$$typeof===w||e.$$typeof===x||e.$$typeof===d||e.$$typeof===b||e.$$typeof===m||e.$$typeof===fe||e.getModuleId!==void 0))}function hr(e,r,a){var l=e.displayName;if(l)return l;var h=r.displayName||r.name||"";return h!==""?a+"("+h+")":a}function de(e){return e.displayName||"Context"}function O(e){if(e==null)return null;if(typeof e.tag=="number"&&T("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 i:return"Portal";case u:return"Profiler";case c:return"StrictMode";case R:return"Suspense";case E:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case b:var r=e;return de(r)+".Consumer";case d:var a=e;return de(a._context)+".Provider";case m:return hr(e,e.render,"ForwardRef");case x:var l=e.displayName||null;return l!==null?l:O(e.type)||"Memo";case w:{var h=e,g=h._payload,v=h._init;try{return O(v(g))}catch{return null}}}return null}var k=Object.assign,L=0,ve,pe,me,he,be,ge,xe;function je(){}je.__reactDisabledLog=!0;function br(){{if(L===0){ve=console.log,pe=console.info,me=console.warn,he=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})}L++}}function gr(){{if(L--,L===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:k({},e,{value:ve}),info:k({},e,{value:pe}),warn:k({},e,{value:me}),error:k({},e,{value:he}),group:k({},e,{value:be}),groupCollapsed:k({},e,{value:ge}),groupEnd:k({},e,{value:xe})})}L<0&&T("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var X=D.ReactCurrentDispatcher,Z;function U(e,r,a){{if(Z===void 0)try{throw Error()}catch(h){var l=h.stack.trim().match(/\n( *(at )?)/);Z=l&&l[1]||""}return`
18
+ `+Z+e}}var q=!1,J;{var xr=typeof WeakMap=="function"?WeakMap:Map;J=new xr}function ye(e,r){if(!e||q)return"";{var a=J.get(e);if(a!==void 0)return a}var l;q=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var g;g=X.current,X.current=null,br();try{if(r){var v=function(){throw Error()};if(Object.defineProperty(v.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(v,[])}catch(S){l=S}Reflect.construct(e,[],v)}else{try{v.call()}catch(S){l=S}e.call(v.prototype)}}else{try{throw Error()}catch(S){l=S}e()}}catch(S){if(S&&l&&typeof S.stack=="string"){for(var f=S.stack.split(`
19
+ `),C=l.stack.split(`
20
+ `),j=f.length-1,y=C.length-1;j>=1&&y>=0&&f[j]!==C[y];)y--;for(;j>=1&&y>=0;j--,y--)if(f[j]!==C[y]){if(j!==1||y!==1)do if(j--,y--,y<0||f[j]!==C[y]){var N=`
21
+ `+f[j].replace(" at new "," at ");return e.displayName&&N.includes("<anonymous>")&&(N=N.replace("<anonymous>",e.displayName)),typeof e=="function"&&J.set(e,N),N}while(j>=1&&y>=0);break}}}finally{q=!1,X.current=g,gr(),Error.prepareStackTrace=h}var I=e?e.displayName||e.name:"",P=I?U(I):"";return typeof e=="function"&&J.set(e,P),P}function jr(e,r,a){return ye(e,!1)}function yr(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function G(e,r,a){if(e==null)return"";if(typeof e=="function")return ye(e,yr(e));if(typeof e=="string")return U(e);switch(e){case R:return U("Suspense");case E:return U("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case m:return jr(e.render);case x:return G(e.type,r,a);case w:{var l=e,h=l._payload,g=l._init;try{return G(g(h),r,a)}catch{}}}return""}var W=Object.prototype.hasOwnProperty,Re={},Ee=D.ReactDebugCurrentFrame;function H(e){if(e){var r=e._owner,a=G(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(a)}else Ee.setExtraStackFrame(null)}function Rr(e,r,a,l,h){{var g=Function.call.bind(W);for(var v in e)if(g(e,v)){var f=void 0;try{if(typeof e[v]!="function"){var C=Error((l||"React class")+": "+a+" type `"+v+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[v]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C.name="Invariant Violation",C}f=e[v](r,v,l,a,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(j){f=j}f&&!(f instanceof Error)&&(H(h),T("%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).",l||"React class",a,v,typeof f),H(null)),f instanceof Error&&!(f.message in Re)&&(Re[f.message]=!0,H(h),T("Failed %s type: %s",a,f.message),H(null))}}}var Er=Array.isArray;function Q(e){return Er(e)}function _r(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,a=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a}}function Tr(e){try{return _e(e),!1}catch{return!0}}function _e(e){return""+e}function Te(e){if(Tr(e))return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",_r(e)),_e(e)}var Ce=D.ReactCurrentOwner,Cr={key:!0,ref:!0,__self:!0,__source:!0},we,Se;function wr(e){if(W.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(W.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Nr(e,r){typeof e.ref=="string"&&Ce.current}function Or(e,r){{var a=function(){we||(we=!0,T("%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))};a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}}function kr(e,r){{var a=function(){Se||(Se=!0,T("%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))};a.isReactWarning=!0,Object.defineProperty(e,"ref",{get:a,configurable:!0})}}var Pr=function(e,r,a,l,h,g,v){var f={$$typeof:s,type:e,key:r,ref:a,props:v,_owner:g};return f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(f,"_self",{configurable:!1,enumerable:!1,writable:!1,value:l}),Object.defineProperty(f,"_source",{configurable:!1,enumerable:!1,writable:!1,value:h}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f};function Dr(e,r,a,l,h){{var g,v={},f=null,C=null;a!==void 0&&(Te(a),f=""+a),Sr(r)&&(Te(r.key),f=""+r.key),wr(r)&&(C=r.ref,Nr(r,h));for(g in r)W.call(r,g)&&!Cr.hasOwnProperty(g)&&(v[g]=r[g]);if(e&&e.defaultProps){var j=e.defaultProps;for(g in j)v[g]===void 0&&(v[g]=j[g])}if(f||C){var y=typeof e=="function"?e.displayName||e.name||"Unknown":e;f&&Or(v,y),C&&kr(v,y)}return Pr(e,f,C,h,l,Ce.current,v)}}var K=D.ReactCurrentOwner,Ne=D.ReactDebugCurrentFrame;function F(e){if(e){var r=e._owner,a=G(e.type,e._source,r?r.type:null);Ne.setExtraStackFrame(a)}else Ne.setExtraStackFrame(null)}var ee;ee=!1;function re(e){return typeof e=="object"&&e!==null&&e.$$typeof===s}function Oe(){{if(K.current){var e=O(K.current.type);if(e)return`
22
22
 
23
- Check the render method of \``+e+"`."}return""}}function Fr(e){return""}var Oe={};function Ar(e){{var r=ke();if(!r){var a=typeof e=="string"?e:e.displayName||e.name;a&&(r=`
23
+ Check the render method of \``+e+"`."}return""}}function Fr(e){return""}var ke={};function Ir(e){{var r=Oe();if(!r){var a=typeof e=="string"?e:e.displayName||e.name;a&&(r=`
24
24
 
25
- Check the top-level render call using <`+a+">.")}return r}}function Pe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var a=Ar(r);if(Oe[a])return;Oe[a]=!0;var c="";e&&e._owner&&e._owner!==K.current&&(c=" It was passed a child from "+O(e._owner.type)+"."),A(e),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',a,c),A(null)}}function De(e,r){{if(typeof e!="object")return;if(Q(e))for(var a=0;a<e.length;a++){var c=e[a];re(c)&&Pe(c,r)}else if(re(e))e._store&&(e._store.validated=!0);else if(e){var p=lr(e);if(typeof p=="function"&&p!==e.entries)for(var b=p.call(e),d;!(d=b.next()).done;)re(d.value)&&Pe(d.value,r)}}}function Ir(e){{var r=e.type;if(r==null||typeof r=="string")return;var a;if(typeof r=="function")a=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===h||r.$$typeof===C))a=r.propTypes;else return;if(a){var c=O(r);Rr(a,e.props,"prop",c,e)}else if(r.PropTypes!==void 0&&!ee){ee=!0;var p=O(r);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",p||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function $r(e){{for(var r=Object.keys(e.props),a=0;a<r.length;a++){var c=r[a];if(c!=="children"&&c!=="key"){A(e),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",c),A(null);break}}e.ref!==null&&(A(e),_("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}var Fe={};function Ae(e,r,a,c,p,b){{var d=mr(e);if(!d){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 T=Fr();T?u+=T:u+=ke();var j;e===null?j="null":Q(e)?j="array":e!==void 0&&e.$$typeof===s?(j="<"+(O(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):j=typeof e,_("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",j,u)}var y=Dr(e,r,a,p,b);if(y==null)return y;if(d){var N=r.children;if(N!==void 0)if(c)if(Q(N)){for(var I=0;I<N.length;I++)De(N[I],e);Object.freeze&&Object.freeze(N)}else _("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(N,e)}if(Y.call(r,"key")){var D=O(e),w=Object.keys(r).filter(function(Br){return Br!=="key"}),te=w.length>0?"{key: someKey, "+w.join(": ..., ")+": ...}":"{key: someKey}";if(!Fe[D+te]){var Vr=w.length>0?"{"+w.join(": ..., ")+": ...}":"{}";_(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+a+">.")}return r}}function Pe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var a=Ir(r);if(ke[a])return;ke[a]=!0;var l="";e&&e._owner&&e._owner!==K.current&&(l=" It was passed a child from "+O(e._owner.type)+"."),F(e),T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',a,l),F(null)}}function De(e,r){{if(typeof e!="object")return;if(Q(e))for(var a=0;a<e.length;a++){var l=e[a];re(l)&&Pe(l,r)}else if(re(e))e._store&&(e._store.validated=!0);else if(e){var h=lr(e);if(typeof h=="function"&&h!==e.entries)for(var g=h.call(e),v;!(v=g.next()).done;)re(v.value)&&Pe(v.value,r)}}}function Ar(e){{var r=e.type;if(r==null||typeof r=="string")return;var a;if(typeof r=="function")a=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===m||r.$$typeof===x))a=r.propTypes;else return;if(a){var l=O(r);Rr(a,e.props,"prop",l,e)}else if(r.PropTypes!==void 0&&!ee){ee=!0;var h=O(r);T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",h||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function $r(e){{for(var r=Object.keys(e.props),a=0;a<r.length;a++){var l=r[a];if(l!=="children"&&l!=="key"){F(e),T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",l),F(null);break}}e.ref!==null&&(F(e),T("Invalid attribute `ref` supplied to `React.Fragment`."),F(null))}}var Fe={};function Ie(e,r,a,l,h,g){{var v=mr(e);if(!v){var f="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(f+=" 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 C=Fr();C?f+=C:f+=Oe();var j;e===null?j="null":Q(e)?j="array":e!==void 0&&e.$$typeof===s?(j="<"+(O(e.type)||"Unknown")+" />",f=" Did you accidentally export a JSX literal instead of a component?"):j=typeof e,T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",j,f)}var y=Dr(e,r,a,h,g);if(y==null)return y;if(v){var N=r.children;if(N!==void 0)if(l)if(Q(N)){for(var I=0;I<N.length;I++)De(N[I],e);Object.freeze&&Object.freeze(N)}else T("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(N,e)}if(W.call(r,"key")){var P=O(e),S=Object.keys(r).filter(function(Br){return Br!=="key"}),te=S.length>0?"{key: someKey, "+S.join(": ..., ")+": ...}":"{key: someKey}";if(!Fe[P+te]){var Vr=S.length>0?"{"+S.join(": ..., ")+": ...}":"{}";T(`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} />`,te,D,Vr,D),Fe[D+te]=!0}}return e===i?$r(y):Ir(y),y}}function Wr(e,r,a){return Ae(e,r,a,!0)}function Lr(e,r,a){return Ae(e,r,a,!1)}var Yr=Lr,Mr=Wr;W.Fragment=i,W.jsx=Yr,W.jsxs=Mr}()),W}var se;function We(){return se||(se=1,process.env.NODE_ENV==="production"?M.exports=Ie():M.exports=$e()),M.exports}var t=We();const Le=()=>t.jsx("div",{className:"toolbar-pf"}),ie=({items:n,className:s})=>t.jsx("ol",{className:`breadcrumb ${s||""}`.trim(),children:n.map((o,i)=>t.jsx("li",{className:o.active?"active":"",children:o.active?o.title:t.jsx("a",{href:o.href,children:o.title})},i))}),Ye=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"})]})}),V=({type:n="default",title:s,size:o,label:i,onClick:l,isDisabled:f=!1,children:m,className:g="",isLoading:h=!1})=>{const E=`btn-${n}`,R=o?`btn-${o}`:"",x=`${`btn ${E} ${R}`.trim()} ${g}`.trim();return t.jsx("button",{className:x,type:"button",onClick:l,disabled:f||h,children:t.jsxs("div",{className:"flex items-center justify-center",children:[h&&Ye,m||i," ",s&&t.jsx("span",{children:s})]})})},Me=({children:n,eventKey:s,active:o})=>t.jsx("div",{className:`tab-pane ${o?"active":""}`,id:`${s}-panel`,role:"tabpanel","aria-labelledby":`${s}-tab`,children:n},s),Ve=({activeKey:n,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:i,title:l}})=>t.jsx("li",{className:n===i?"active":"",children:t.jsx("a",{href:`#${i}`,onClick:f=>{f.preventDefault(),s(i)},children:l})},i))}),t.jsx("div",{className:"tabs-container",children:t.jsx("div",{className:"tab-content pf-c-tab-content",children:o.map(({props:{eventKey:i,children:l}})=>t.jsx("div",{className:`tab-pane ${n===i?"active":""}`,id:`${i}-panel`,role:"tabpanel","aria-labelledby":`${i}-tab`,children:l},i))})})]}),Be=S.forwardRef(({id:n,type:s,placeholder:o="",value:i,onChange:l,className:f="form-control",...m},g)=>{const h=`form-control ${f}`;return t.jsx("input",{type:s,id:n,className:h,placeholder:o,value:i,onChange:l,ref:g,...m})}),Ue=({title:n,isOpen:s,onClose:o,children:i,size:l})=>{if(!s)return null;const f=l?`modal-${l}`:"";return t.jsx("div",{className:"modal fade in",style:{display:"block"},tabIndex:-1,role:"dialog",children:t.jsx("div",{className:`modal-dialog ${f}`,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:n})]}),t.jsx("div",{className:"modal-body",children:i})]})})})},Je=({variant:n,children:s,className:o=""})=>{const i={warning:"text-yellow-600",success:"text-green-600",error:"text-red-600"},l=o+" "+i[n]||"";return t.jsx("p",{className:l,children:s})},Ge=({children:n,...s})=>t.jsx("table",{...s,children:n}),He=({children:n,...s})=>t.jsx("tbody",{...s,children:n}),ze=({children:n,...s})=>t.jsx("td",{...s,children:n}),Xe=({children:n,...s})=>t.jsx("th",{...s,children:n}),qe=({children:n,...s})=>t.jsx("thead",{...s,children:n}),Ze=({children:n,...s})=>t.jsx("tr",{...s,children:n}),z=({items:n,selected:s,title:o,isOpen:i,setIsOpen:l,onChange:f,className:m=""})=>{const g=S.useRef(null);S.useEffect(()=>{const x=k=>{g.current&&!g.current.contains(k.target)&&l(!1)};return i&&document.addEventListener("mousedown",x),()=>{document.addEventListener("mousedown",x)}},[i]);const h=x=>{l(!x)},E=x=>{l(!1),f(x)},R=x=>{const k=x.id===s;return t.jsx("li",{onClick:()=>E(x),className:k?"active":"",children:t.jsx("a",{href:"#",children:x.title})},x.id)},C=`btn btn-default dropdown-toggle flex-1 ${m}`;return t.jsxs(t.Fragment,{children:[t.jsx("button",{ref:g,style:{marginLeft:"0px",left:"-1px"},className:C,onClick:()=>h(i),"data-toggle":"dropdown",type:"button",children:t.jsxs("div",{className:"flex items-center justify-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:n.map(R)})]})},Qe=n=>{const[s,o]=S.useState(!1),i=n.selected,l=n.items.find(f=>f.id==i);return n.debug&&(console.log(n),console.log(l)),t.jsx("div",{className:`btn-group ${s?"open":""}`,children:t.jsx(z,{...n,title:(l==null?void 0:l.title)||n.title,setIsOpen:o,isOpen:s})})},oe=({currentPage:n,total:s,onPageChange:o,onNextPage:i,onPrevPage:l,end:f,pageSize:m})=>{const g=Math.ceil(s/m),h=()=>{l?l():n>1&&o(n-1)},E=()=>{i?i():n<g&&o(n+1)};return t.jsxs("div",{children:[t.jsx("span",{children:t.jsxs("span",{className:"pagination-pf-items-current",children:[n," - ",g]})}),t.jsxs("div",{className:"btn-group ml-2",children:[t.jsx("button",{type:"button",className:`btn btn-default ${n===1?"disabled":""}`,disabled:n===1,onClick:h,children:t.jsx("i",{className:"fa fa-angle-left"})}),t.jsx("button",{type:"button",className:`btn btn-default ${n===g?"disabled":""}`,disabled:n===g||f,onClick:E,children:t.jsx("i",{className:"fa fa-angle-right"})})]})]})},B=({children:n,onChange:s,items:o,selected:i,className:l=""})=>{const[f,m]=S.useState(!1);return t.jsx("div",{className:`btn-group ${l} ${f?"open":""}`,children:t.jsxs(t.Fragment,{children:[n,t.jsx(z,{setIsOpen:m,isOpen:f,onChange:s,items:o,selected:i})]})})},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:n,value:s,onRefresh:o})=>{var f;const i=m=>{n(m.data)},l=(f=le.find(m=>m.data===s))==null?void 0:f.id;return t.jsx(B,{className:"flex",items:le,onChange:i,selected:l,children:t.jsx(V,{className:"m-0",type:"default",onClick:o,children:t.jsx("i",{className:"fa fa-refresh"})})})},Ke=({interval:n,page:s,total:o,onRefresh:i,onChangeInterval:l,onPageChange:f,pageSize:m,onNextPage:g,onPrevPage:h,end:E})=>t.jsxs("div",{className:"flex justify-between bg-[#f5f5f5] border border-[#d1d1d1]",children:[t.jsx("div",{className:"m-[5px]",children:t.jsx(ce,{value:n,onChange:l,onRefresh:i})}),t.jsx("div",{className:"m-[5px]",children:t.jsx(oe,{end:E,onNextPage:g,onPrevPage:h,pageSize:m,currentPage:s,total:o,onPageChange:f})})]}),er=({id:n,label:s,isChecked:o=!1,onChange:i,className:l="checkbox",position:f="right"})=>t.jsx("div",{className:l,children:t.jsxs("div",{className:"flex items-center gap-2",children:[f==="left"&&t.jsx("input",{type:"checkbox",id:n,checked:o,onChange:i,className:"cursor-pointer !mt-0"}),t.jsx("label",{htmlFor:n,className:"cursor-pointer !mb-0",children:s}),f==="right"&&t.jsx("input",{type:"checkbox",id:n,checked:o,onChange:i,className:"cursor-pointer !mt-0"})]})}),rr=({placeholder:n="",rows:s=3,maxLength:o,value:i,onChange:l,isDisabled:f=!1,className:m=""})=>{const[g,h]=S.useState(i||""),E=i!==void 0?i:g,R=C=>{const x=C.target.value;l?l(x):h(x)};return t.jsx("textarea",{className:m,placeholder:n,rows:s,maxLength:o,value:E,onChange:R,disabled:f})},tr=({variant:n,title:s,className:o})=>{const i=["success","info","warning","danger"],l=m=>{switch(m){case"success":return"pficon pficon-ok";case"info":return"pficon pficon-info";case"warning":return"pficon pficon-warning-triangle-o";case"danger":return"pficon pficon-error-circle-o";default:return"pficon pficon-info"}};i.includes(n)||(console.warn(`Unsupported alert variant: "${n}". Defaulting to "info".`),n="info");const f=`flex pl-[20px] !static items-center alert alert-${n} ${o||""}`.trim();return t.jsxs("div",{className:f,role:"alert",children:[t.jsx("span",{className:"!static "+l(n)}),t.jsx("div",{className:"ml-5",children:s})]})},nr=({variant:n,children:s,onClick:o})=>{const i=`label label-${n}`,l=o?{tabIndex:0,role:"button","aria-pressed":!1}:{};return t.jsx("span",{className:i,onClick:o,...l,style:{cursor:o?"pointer":void 0},children:s})},ar=n=>{const{label:s,isChecked:o=!1,id:i="radio1",onChange:l,name:f}=n;return t.jsx("div",{className:"radio",children:t.jsxs("label",{htmlFor:i,children:[t.jsx("input",{type:"radio",name:f,id:i,checked:o,onChange:m=>l(m.target.checked)}),s]})})};function sr(n,s){S.useEffect(()=>{if(!n)return;const o=setInterval(()=>{s()},n);return()=>clearInterval(o)},[n])}const ir=()=>t.jsxs("div",{children:[t.jsx(ie,{items:[{title:"Дополнения",active:!0},{title:"Название плагина",href:"#Название плагина"}]}),t.jsx(B,{onChange:()=>{},items:[{id:0,title:"5 сек"},{id:1,title:"10 сек"},{id:2,title:"20 сек"}],children:t.jsx(V,{children:"Hello"})}),t.jsx(B,{onChange:()=>{},items:[{id:0,title:"5 сек"},{id:1,title:"10 сек"},{id:2,title:"20 сек"}],children:t.jsx(V,{children:"Hello"})})]});v.Alert=tr,v.Breadcrumb=ie,v.Button=V,v.Checkbox=er,v.Dropdown=z,v.DropdownSelect=Qe,v.GroupButtonContainer=B,v.HelpText=Je,v.Input=Be,v.Label=nr,v.Modal=Ue,v.Pagination=oe,v.Radio=ar,v.ReloadButton=ce,v.SampleComp=ir,v.Tab=Me,v.Table=Ge,v.TableToolbar=Ke,v.Tabs=Ve,v.Tbody=He,v.Td=ze,v.TextArea=rr,v.Th=Xe,v.Thead=qe,v.ToolbarContainer=Le,v.Tr=Ze,v.useIntervalLoader=sr,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})});
30
+ <%s key={someKey} {...props} />`,te,P,Vr,P),Fe[P+te]=!0}}return e===o?$r(y):Ar(y),y}}function Lr(e,r,a){return Ie(e,r,a,!0)}function Wr(e,r,a){return Ie(e,r,a,!1)}var Yr=Wr,Mr=Lr;$.Fragment=o,$.jsx=Yr,$.jsxs=Mr}()),$}var se;function Le(){return se||(se=1,process.env.NODE_ENV==="production"?Y.exports=Ae():Y.exports=$e()),Y.exports}var t=Le();const We=()=>t.jsx("div",{className:"toolbar-pf"}),ie=({items:n,className:s})=>t.jsx("ol",{className:`breadcrumb ${s||""}`.trim(),children:n.map((i,o)=>t.jsx("li",{className:i.active?"active":"",children:i.active?i.title:t.jsx("a",{href:i.href,children:i.title})},o))}),Ye=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"})]})}),M=({type:n="default",title:s,size:i,label:o,onClick:c,isDisabled:u=!1,children:d,className:b="",isLoading:m=!1})=>{const R=`btn-${n}`,E=i?`btn-${i}`:"",w=`${`btn ${R} ${E}`.trim()} ${b}`.trim();return t.jsx("button",{className:w,type:"button",onClick:c,disabled:u||m,children:t.jsxs("div",{className:"flex items-center justify-center",children:[m&&Ye,d||o," ",s&&t.jsx("span",{children:s})]})})},Me=({children:n,eventKey:s,active:i})=>t.jsx("div",{className:`tab-pane ${i?"active":""}`,id:`${s}-panel`,role:"tabpanel","aria-labelledby":`${s}-tab`,children:n},s),Ve=({activeKey:n,onSelect:s,children:i})=>t.jsxs("div",{className:"tabs-container",children:[t.jsx("ul",{className:"nav nav-tabs",role:"tablist",children:i.map(({props:{eventKey:o,title:c}})=>t.jsx("li",{className:n===o?"active":"",children:t.jsx("a",{href:`#${o}`,onClick:u=>{u.preventDefault(),s(o)},children:c})},o))}),t.jsx("div",{className:"tabs-container",children:t.jsx("div",{className:"tab-content pf-c-tab-content",children:i.map(({props:{eventKey:o,children:c}})=>t.jsx("div",{className:`tab-pane ${n===o?"active":""}`,id:`${o}-panel`,role:"tabpanel","aria-labelledby":`${o}-tab`,children:c},o))})})]}),Be=_.forwardRef(({id:n,type:s,placeholder:i="",value:o,onChange:c,className:u="form-control",...d},b)=>{const m=`form-control ${u}`;return t.jsx("input",{type:s,id:n,className:m,placeholder:i,value:o,onChange:c,ref:b,...d})}),Ue=({title:n,isOpen:s,onClose:i,children:o,size:c})=>{if(!s)return null;const u=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 ${u}`,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:i,"aria-hidden":"true",children:t.jsx("span",{className:"pficon pficon-close"})}),t.jsx("h4",{className:"modal-title",children:n})]}),t.jsx("div",{className:"modal-body",children:o})]})})})},Je=({variant:n,children:s,className:i=""})=>{const o={warning:"text-yellow-600",success:"text-green-600",error:"text-red-600"},c=i+" "+o[n]||"";return t.jsx("p",{className:c,children:s})},Ge=({children:n,...s})=>t.jsx("table",{...s,children:n}),He=({children:n,...s})=>t.jsx("tbody",{...s,children:n}),ze=({children:n,...s})=>t.jsx("td",{...s,children:n}),Xe=({children:n,...s})=>t.jsx("th",{...s,children:n}),Ze=({children:n,...s})=>t.jsx("thead",{...s,children:n}),qe=({children:n,...s})=>t.jsx("tr",{...s,children:n}),z=({items:n,selected:s,title:i,isOpen:o,setIsOpen:c,onChange:u,className:d=""})=>{const b=x=>{c(!x)},m=x=>{c(!1),u(x)},R=x=>{const w=x.id===s;return t.jsx("li",{onClick:()=>m(x),className:w?"active":"",children:t.jsx("a",{href:"#",children:x.title})},x.id)},E=`btn btn-default dropdown-toggle flex-1 ${d}`;return t.jsxs(t.Fragment,{children:[t.jsx("button",{style:{marginLeft:"0px",left:"-1px"},className:E,onClick:()=>b(o),"data-toggle":"dropdown",type:"button",children:t.jsxs("div",{className:"flex items-center justify-center",children:[i&&t.jsx("div",{className:"mr-2",children:i})," ",t.jsx("span",{className:"caret"})," "]})}),t.jsx("ul",{className:"dropdown-menu",role:"menu",children:n.map(R)})]})},Qe=n=>{const[s,i]=_.useState(!1),o=n.selected,c=n.items.find(d=>d.id==o);n.debug&&(console.log(n),console.log(c));const u=_.useRef(null);return _.useEffect(()=>{const d=b=>{console.log(b.target),u.current&&!u.current.contains(b.target)&&i(!1)};return s&&document.addEventListener("mousedown",d),()=>{document.removeEventListener("mousedown",d)}},[s]),t.jsx("div",{className:`btn-group ${s?"open":""}`,ref:u,children:t.jsx(z,{...n,title:(c==null?void 0:c.title)||n.title,setIsOpen:i,isOpen:s})})},oe=({currentPage:n,total:s,onPageChange:i,onNextPage:o,onPrevPage:c,end:u,pageSize:d})=>{const b=Math.ceil(s/d),m=()=>{c?c():n>1&&i(n-1)},R=()=>{o?o():n<b&&i(n+1)};return t.jsxs("div",{children:[t.jsx("span",{children:t.jsxs("span",{className:"pagination-pf-items-current",children:[n," - ",b]})}),t.jsxs("div",{className:"btn-group ml-2",children:[t.jsx("button",{type:"button",className:`btn btn-default ${n===1?"disabled":""}`,disabled:n===1,onClick:m,children:t.jsx("i",{className:"fa fa-angle-left"})}),t.jsx("button",{type:"button",className:`btn btn-default ${n===b?"disabled":""}`,disabled:n===b||u,onClick:R,children:t.jsx("i",{className:"fa fa-angle-right"})})]})]})},V=({children:n,onChange:s,items:i,selected:o,className:c=""})=>{const[u,d]=_.useState(!1),b=_.useRef(null);return _.useEffect(()=>{const m=R=>{console.log(R.target),b.current&&!b.current.contains(R.target)&&d(!1)};return u&&document.addEventListener("mousedown",m),()=>{document.removeEventListener("mousedown",m)}},[u]),t.jsx("div",{className:`btn-group ${c} ${u?"open":""}`,ref:b,children:t.jsxs(t.Fragment,{children:[n,t.jsx(z,{setIsOpen:d,isOpen:u,onChange:s,items:i,selected:o})]})})},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:n,value:s,onRefresh:i})=>{var u;const o=d=>{n(d.data)},c=(u=le.find(d=>d.data===s))==null?void 0:u.id;return t.jsx(V,{className:"flex",items:le,onChange:o,selected:c,children:t.jsxs(M,{className:"m-0",type:"default",onClick:i,children:[" ",t.jsx("i",{className:"fa fa-refresh"})," "]})})},Ke=({interval:n,page:s,total:i,onRefresh:o,onChangeInterval:c,onPageChange:u,pageSize:d,onNextPage:b,onPrevPage:m,end:R})=>t.jsxs("div",{className:"flex justify-between bg-[#f5f5f5] border border-[#d1d1d1]",children:[t.jsx("div",{className:"m-[5px]",children:t.jsx(ce,{value:n,onChange:c,onRefresh:o})}),t.jsx("div",{className:"m-[5px]",children:t.jsx(oe,{end:R,onNextPage:b,onPrevPage:m,pageSize:d,currentPage:s,total:i,onPageChange:u})})]}),er=({id:n,label:s,isChecked:i=!1,onChange:o,className:c="checkbox",position:u="right"})=>t.jsx("div",{className:c,children:t.jsxs("div",{className:"flex items-center gap-2",children:[u==="left"&&t.jsx("input",{type:"checkbox",id:n,checked:i,onChange:o,className:"cursor-pointer !mt-0"}),t.jsx("label",{htmlFor:n,className:"cursor-pointer !mb-0",children:s}),u==="right"&&t.jsx("input",{type:"checkbox",id:n,checked:i,onChange:o,className:"cursor-pointer !mt-0"})]})}),rr=({placeholder:n="",rows:s=3,maxLength:i,value:o,onChange:c,isDisabled:u=!1,className:d=""})=>{const[b,m]=_.useState(o||""),R=o!==void 0?o:b,E=x=>{const w=x.target.value;c?c(w):m(w)};return t.jsx("textarea",{className:d,placeholder:n,rows:s,maxLength:i,value:R,onChange:E,disabled:u})},tr=({variant:n,title:s,className:i})=>{const o=["success","info","warning","danger"],c=d=>{switch(d){case"success":return"pficon pficon-ok";case"info":return"pficon pficon-info";case"warning":return"pficon pficon-warning-triangle-o";case"danger":return"pficon pficon-error-circle-o";default:return"pficon pficon-info"}};o.includes(n)||(console.warn(`Unsupported alert variant: "${n}". Defaulting to "info".`),n="info");const u=`flex pl-[20px] !static items-center alert alert-${n} ${i||""}`.trim();return t.jsxs("div",{className:u,role:"alert",children:[t.jsx("span",{className:"!static "+c(n)}),t.jsx("div",{className:"ml-5",children:s})]})},nr=({variant:n,children:s,onClick:i})=>{const o=`label label-${n}`,c=i?{tabIndex:0,role:"button","aria-pressed":!1}:{};return t.jsx("span",{className:o,onClick:i,...c,style:{cursor:i?"pointer":void 0},children:s})},ar=n=>{const{label:s,isChecked:i=!1,id:o="radio1",onChange:c,name:u}=n;return t.jsx("div",{className:"radio",children:t.jsxs("label",{htmlFor:o,children:[t.jsx("input",{type:"radio",name:u,id:o,checked:i,onChange:d=>c(d.target.checked)}),s]})})};function sr(n,s){_.useEffect(()=>{if(!n)return;const i=setInterval(()=>{s()},n);return()=>clearInterval(i)},[n])}const ir=()=>t.jsxs("div",{children:[t.jsx(ie,{items:[{title:"Дополнения",active:!0},{title:"Название плагина",href:"#Название плагина"}]}),t.jsx(V,{onChange:()=>{},items:[{id:0,title:"5 сек"},{id:1,title:"10 сек"},{id:2,title:"20 сек"}],children:t.jsx(M,{children:"Hello"})}),t.jsx(V,{onChange:()=>{},items:[{id:0,title:"5 сек"},{id:1,title:"10 сек"},{id:2,title:"20 сек"}],children:t.jsx(M,{children:"Hello"})})]});p.Alert=tr,p.Breadcrumb=ie,p.Button=M,p.Checkbox=er,p.Dropdown=z,p.DropdownSelect=Qe,p.GroupButtonContainer=V,p.HelpText=Je,p.Input=Be,p.Label=nr,p.Modal=Ue,p.Pagination=oe,p.Radio=ar,p.ReloadButton=ce,p.SampleComp=ir,p.Tab=Me,p.Table=Ge,p.TableToolbar=Ke,p.Tabs=Ve,p.Tbody=He,p.Td=ze,p.TextArea=rr,p.Th=Xe,p.Thead=Ze,p.ToolbarContainer=We,p.Tr=qe,p.useIntervalLoader=sr,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ovirt-ui-toolkit",
3
- "version": "0.0.96",
3
+ "version": "0.0.98",
4
4
  "type": "module",
5
5
  "main": "./dist/ovirt-ui-toolkit.umd.js",
6
6
  "module": "./dist/ovirt-ui-toolkit.es.js",