ovirt-ui-toolkit 0.0.28 → 0.0.30

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