ovirt-ui-toolkit 0.0.41 → 0.0.43

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,5 +1,5 @@
1
1
  import Se, { forwardRef as pr, useState as ke, useEffect as hr } from "react";
2
- var L = { exports: {} }, F = {};
2
+ var U = { exports: {} }, F = {};
3
3
  /**
4
4
  * @license React
5
5
  * react-jsx-runtime.production.min.js
@@ -152,7 +152,7 @@ function mr() {
152
152
  D++;
153
153
  }
154
154
  }
155
- function Ue() {
155
+ function Le() {
156
156
  {
157
157
  if (D--, D === 0) {
158
158
  var e = {
@@ -203,8 +203,8 @@ function mr() {
203
203
  }
204
204
  var q = !1, V;
205
205
  {
206
- var Le = typeof WeakMap == "function" ? WeakMap : Map;
207
- V = new Le();
206
+ var Ue = typeof WeakMap == "function" ? WeakMap : Map;
207
+ V = new Ue();
208
208
  }
209
209
  function ue(e, r) {
210
210
  if (!e || q)
@@ -272,7 +272,7 @@ function mr() {
272
272
  }
273
273
  }
274
274
  } finally {
275
- q = !1, B.current = v, Ue(), Error.prepareStackTrace = d;
275
+ q = !1, B.current = v, Le(), Error.prepareStackTrace = d;
276
276
  }
277
277
  var $ = e ? e.displayName || e.name : "", k = $ ? Y($) : "";
278
278
  return typeof e == "function" && V.set(e, k), k;
@@ -314,7 +314,7 @@ function mr() {
314
314
  return "";
315
315
  }
316
316
  var A = Object.prototype.hasOwnProperty, fe = {}, de = N.ReactDebugCurrentFrame;
317
- function U(e) {
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
320
  de.setExtraStackFrame(n);
@@ -336,7 +336,7 @@ function mr() {
336
336
  } catch (x) {
337
337
  c = x;
338
338
  }
339
- c && !(c instanceof Error) && (U(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, u, typeof c), U(null)), c instanceof Error && !(c.message in fe) && (fe[c.message] = !0, U(d), y("Failed %s type: %s", n, c.message), U(null));
339
+ c && !(c 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, u, typeof c), L(null)), c instanceof Error && !(c.message in fe) && (fe[c.message] = !0, L(d), y("Failed %s type: %s", n, c.message), L(null));
340
340
  }
341
341
  }
342
342
  }
@@ -625,7 +625,7 @@ React keys must be passed directly to JSX without using spread:
625
625
  }
626
626
  var we;
627
627
  function xr() {
628
- return we || (we = 1, process.env.NODE_ENV === "production" ? L.exports = br() : L.exports = mr()), L.exports;
628
+ return we || (we = 1, process.env.NODE_ENV === "production" ? U.exports = br() : U.exports = mr()), U.exports;
629
629
  }
630
630
  var t = xr();
631
631
  const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), gr = ({ 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)) }), jr = /* @__PURE__ */ t.jsx("span", { className: "loading-spinner mr-2", children: /* @__PURE__ */ t.jsxs(
@@ -677,7 +677,6 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), gr =
677
677
  onClick: f,
678
678
  disabled: p || b,
679
679
  children: /* @__PURE__ */ t.jsxs("div", { className: "flex items-center justify-center", children: [
680
- b && /* @__PURE__ */ t.jsx("span", { children: "hello" }),
681
680
  b && jr,
682
681
  h || o,
683
682
  " ",
@@ -777,7 +776,7 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), gr =
777
776
  {
778
777
  type: "button",
779
778
  disabled: f,
780
- className: "btn btn-default dropdown-toggle",
779
+ className: "btn btn-default dropdown-toggle h-full",
781
780
  onClick: C,
782
781
  children: /* @__PURE__ */ t.jsxs("div", { className: "flex items-center", children: [
783
782
  l && /* @__PURE__ */ t.jsx("div", { className: "mr-2", children: l }),
@@ -909,7 +908,7 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), gr =
909
908
  const o = `alert alert-${a} ${l || ""}`;
910
909
  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 });
911
910
  };
912
- function Ur(a, s) {
911
+ function Lr(a, s) {
913
912
  hr(() => {
914
913
  if (!a)
915
914
  return;
@@ -921,7 +920,7 @@ function Ur(a, s) {
921
920
  }
922
921
  const _r = ({
923
922
  children: a
924
- }) => /* @__PURE__ */ t.jsx("div", { className: "btn-group", children: a }), Lr = () => /* @__PURE__ */ t.jsxs("div", { children: [
923
+ }) => /* @__PURE__ */ t.jsx("div", { className: "btn-group", children: a }), Ur = () => /* @__PURE__ */ t.jsxs("div", { children: [
925
924
  /* @__PURE__ */ t.jsx(
926
925
  gr,
927
926
  {
@@ -947,7 +946,7 @@ export {
947
946
  kr as Modal,
948
947
  Er as Pagination,
949
948
  Rr as ReloadButton,
950
- Lr as SampleComp,
949
+ Ur as SampleComp,
951
950
  wr as Tab,
952
951
  Pr as Table,
953
952
  Wr as TableToolbar,
@@ -959,5 +958,5 @@ export {
959
958
  Fr as Thead,
960
959
  Tr as ToolbarContainer,
961
960
  Ir as Tr,
962
- Ur as useIntervalLoader
961
+ Lr as useIntervalLoader
963
962
  };
@@ -27,4 +27,4 @@ Check the top-level render call using <`+n+">.")}return r}}function Ne(e,r){{if(
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),De[P+ee]=!0}}return e===o?Ar(x):Dr(x),x}}function Ir(e,r,n){return Ae(e,r,n,!0)}function Fr(e,r,n){return Ae(e,r,n,!1)}var $r=Fr,Wr=Ir;$.Fragment=o,$.jsx=$r,$.jsxs=Wr}()),$}var ne;function $e(){return ne||(ne=1,process.env.NODE_ENV==="production"?M.exports=Ie():M.exports=Fe()),M.exports}var t=$e();const We=()=>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))}),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:a="default",title:s,size:l,label:o,onClick:f,isDisabled:h=!1,children:b,className:C="",isLoading:m=!1})=>{const w=`btn-${a}`,y=l?`btn-${l}`:"",_=`${`btn ${w} ${y}`.trim()} ${C}`.trim();return t.jsx("button",{className:_,type:"button",onClick:f,disabled:h||m,children:t.jsxs("div",{className:"flex items-center justify-center",children:[m&&t.jsx("span",{children:"hello"}),m&&Ye,b||o," ",s&&t.jsx("span",{children:s})]})})},Me=({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),Ve=({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:f}})=>t.jsx("li",{className:a===o?"active":"",children:t.jsx("a",{href:`#${o}`,onClick:h=>{h.preventDefault(),s(o)},children:f})},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:f}})=>t.jsx("div",{className:`tab-pane ${a===o?"active":""}`,id:`${o}-panel`,role:"tabpanel","aria-labelledby":`${o}-tab`,children:f},o))})})]}),Be=O.forwardRef(({id:a,type:s,placeholder:l="",value:o,onChange:f,className:h="form-control"},b)=>t.jsx("input",{type:s,id:a,className:h,placeholder:l,value:o,onChange:f,ref:b})),Le=({title:a,isOpen:s,onClose:l,children:o,size:f})=>{if(!s)return null;const h=f?`modal-${f}`:"";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})]})})})},Ue=({variant:a,children:s})=>{const o={warning:"text-yellow-600",success:"text-green-600",error:"text-red-600"}[a]||"";return t.jsx("p",{className:o,children:s})},Je=({children:a,...s})=>t.jsx("table",{...s,children:a}),He=({children:a,...s})=>t.jsx("tbody",{...s,children:a}),ze=({children:a,...s})=>t.jsx("td",{...s,children:a}),Ge=({children:a,...s})=>t.jsx("th",{...s,children:a}),qe=({children:a,...s})=>t.jsx("thead",{...s,children:a}),Xe=({children:a,...s})=>t.jsx("tr",{...s,children:a}),se=({items:a,selected:s,title:l,onChange:o,isDisabled:f})=>{const[h,b]=O.useState(!1),C=()=>{b(g=>!g)},m=g=>{b(!1),o(g)},w=g=>{const _=g.id===s;return t.jsx("li",{onClick:()=>m(g),className:_?"active":"",children:t.jsx("a",{href:"#",children:g.title})},g.id)},y=h?"dropdown open":"dropdown";return t.jsxs("div",{className:y,style:{display:"inline-block"},children:[t.jsx("button",{type:"button",disabled:f,className:"btn btn-default dropdown-toggle",onClick:C,children:t.jsxs("div",{className:"flex items-center",children:[l&&t.jsx("div",{className:"mr-2",children:l}),t.jsx("span",{className:"caret"})]})}),h&&t.jsx("ul",{className:"dropdown-menu",children:a.map(w)})]})},ie=({currentPage:a,total:s,onPageChange:l,pageSize:o})=>{const f=Math.ceil(s/o),h=()=>{a>1&&l(a-1)},b=()=>{a<f&&l(a+1)};return t.jsxs("div",{children:[t.jsx("span",{children:t.jsxs("span",{className:"pagination-pf-items-current",children:[a," - ",f]})}),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===f?"disabled":""}`,disabled:a===f,onClick:b,children:t.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:s,onRefresh:l})=>{var h;const o=b=>{a(b.data)},f=(h=oe.find(b=>b.data===s))==null?void 0:h.id;return t.jsxs("div",{className:"flex",children:[t.jsx(V,{type:"default",onClick:l,children:t.jsx("i",{className:"fa fa-refresh"})}),t.jsx(se,{onChange:o,items:oe,selected:f})]})},Ze=({interval:a,page:s,total:l,onRefresh:o,onChangeInterval:f,onPageChange:h,pageSize:b})=>t.jsxs("div",{className:"flex justify-between bg-[#f5f5f5] border border-[#d1d1d1]",children:[t.jsx("div",{className:"m-[5px]",children:t.jsx(le,{value:a,onChange:f,onRefresh:o})}),t.jsx("div",{className:"m-[5px]",children:t.jsx(ie,{pageSize:b,currentPage:s,total:l,onPageChange:h})})]}),Qe=({id:a,label:s,isChecked:l=!1,onChange:o,className:f="checkbox"})=>t.jsx("div",{className:f,children:t.jsxs("label",{htmlFor:a,children:[t.jsx("input",{type:"checkbox",id:a,checked:l,onChange:o}),` ${s}`]})}),Ke=({placeholder:a="",rows:s=3,maxLength:l,value:o,onChange:f,isDisabled:h=!1,className:b=""})=>{const[C,m]=O.useState(o||""),w=o!==void 0?o:C,y=g=>{const _=g.target.value;f?f(_):m(_)};return t.jsx("textarea",{className:b,placeholder:a,rows:s,maxLength:l,value:w,onChange:y,disabled:h})},er=({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 rr(a,s){O.useEffect(()=>{if(!a)return;const l=setInterval(()=>{s()},a);return()=>clearInterval(l)},[a])}const tr=({children:a})=>t.jsx("div",{className:"btn-group",children:a}),nr=()=>t.jsxs("div",{children:[t.jsx(ae,{items:[{title:"Дополнения",active:!0},{title:"Название плагина",href:"#Название плагина"}]}),t.jsxs(tr,{children:[t.jsx(V,{children:"Hello"}),t.jsx(V,{children:"Hello"})]})]});v.Alert=er,v.Breadcrumb=ae,v.Button=V,v.Checkbox=Qe,v.Dropdown=se,v.HelpText=Ue,v.Input=Be,v.Modal=Le,v.Pagination=ie,v.ReloadButton=le,v.SampleComp=nr,v.Tab=Me,v.Table=Je,v.TableToolbar=Ze,v.Tabs=Ve,v.Tbody=He,v.Td=ze,v.TextArea=Ke,v.Th=Ge,v.Thead=qe,v.ToolbarContainer=We,v.Tr=Xe,v.useIntervalLoader=rr,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})});
30
+ <%s key={someKey} {...props} />`,ee,P,Yr,P),De[P+ee]=!0}}return e===o?Ar(x):Dr(x),x}}function Ir(e,r,n){return Ae(e,r,n,!0)}function Fr(e,r,n){return Ae(e,r,n,!1)}var $r=Fr,Wr=Ir;$.Fragment=o,$.jsx=$r,$.jsxs=Wr}()),$}var ne;function $e(){return ne||(ne=1,process.env.NODE_ENV==="production"?M.exports=Ie():M.exports=Fe()),M.exports}var t=$e();const We=()=>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))}),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:a="default",title:s,size:l,label:o,onClick:f,isDisabled:h=!1,children:b,className:C="",isLoading:m=!1})=>{const w=`btn-${a}`,y=l?`btn-${l}`:"",_=`${`btn ${w} ${y}`.trim()} ${C}`.trim();return t.jsx("button",{className:_,type:"button",onClick:f,disabled:h||m,children:t.jsxs("div",{className:"flex items-center justify-center",children:[m&&Ye,b||o," ",s&&t.jsx("span",{children:s})]})})},Me=({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),Ve=({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:f}})=>t.jsx("li",{className:a===o?"active":"",children:t.jsx("a",{href:`#${o}`,onClick:h=>{h.preventDefault(),s(o)},children:f})},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:f}})=>t.jsx("div",{className:`tab-pane ${a===o?"active":""}`,id:`${o}-panel`,role:"tabpanel","aria-labelledby":`${o}-tab`,children:f},o))})})]}),Be=O.forwardRef(({id:a,type:s,placeholder:l="",value:o,onChange:f,className:h="form-control"},b)=>t.jsx("input",{type:s,id:a,className:h,placeholder:l,value:o,onChange:f,ref:b})),Le=({title:a,isOpen:s,onClose:l,children:o,size:f})=>{if(!s)return null;const h=f?`modal-${f}`:"";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})]})})})},Ue=({variant:a,children:s})=>{const o={warning:"text-yellow-600",success:"text-green-600",error:"text-red-600"}[a]||"";return t.jsx("p",{className:o,children:s})},Je=({children:a,...s})=>t.jsx("table",{...s,children:a}),He=({children:a,...s})=>t.jsx("tbody",{...s,children:a}),ze=({children:a,...s})=>t.jsx("td",{...s,children:a}),Ge=({children:a,...s})=>t.jsx("th",{...s,children:a}),qe=({children:a,...s})=>t.jsx("thead",{...s,children:a}),Xe=({children:a,...s})=>t.jsx("tr",{...s,children:a}),se=({items:a,selected:s,title:l,onChange:o,isDisabled:f})=>{const[h,b]=O.useState(!1),C=()=>{b(g=>!g)},m=g=>{b(!1),o(g)},w=g=>{const _=g.id===s;return t.jsx("li",{onClick:()=>m(g),className:_?"active":"",children:t.jsx("a",{href:"#",children:g.title})},g.id)},y=h?"dropdown open":"dropdown";return t.jsxs("div",{className:y,style:{display:"inline-block"},children:[t.jsx("button",{type:"button",disabled:f,className:"btn btn-default dropdown-toggle h-full",onClick:C,children:t.jsxs("div",{className:"flex items-center",children:[l&&t.jsx("div",{className:"mr-2",children:l}),t.jsx("span",{className:"caret"})]})}),h&&t.jsx("ul",{className:"dropdown-menu",children:a.map(w)})]})},ie=({currentPage:a,total:s,onPageChange:l,pageSize:o})=>{const f=Math.ceil(s/o),h=()=>{a>1&&l(a-1)},b=()=>{a<f&&l(a+1)};return t.jsxs("div",{children:[t.jsx("span",{children:t.jsxs("span",{className:"pagination-pf-items-current",children:[a," - ",f]})}),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===f?"disabled":""}`,disabled:a===f,onClick:b,children:t.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:s,onRefresh:l})=>{var h;const o=b=>{a(b.data)},f=(h=oe.find(b=>b.data===s))==null?void 0:h.id;return t.jsxs("div",{className:"flex",children:[t.jsx(V,{type:"default",onClick:l,children:t.jsx("i",{className:"fa fa-refresh"})}),t.jsx(se,{onChange:o,items:oe,selected:f})]})},Ze=({interval:a,page:s,total:l,onRefresh:o,onChangeInterval:f,onPageChange:h,pageSize:b})=>t.jsxs("div",{className:"flex justify-between bg-[#f5f5f5] border border-[#d1d1d1]",children:[t.jsx("div",{className:"m-[5px]",children:t.jsx(le,{value:a,onChange:f,onRefresh:o})}),t.jsx("div",{className:"m-[5px]",children:t.jsx(ie,{pageSize:b,currentPage:s,total:l,onPageChange:h})})]}),Qe=({id:a,label:s,isChecked:l=!1,onChange:o,className:f="checkbox"})=>t.jsx("div",{className:f,children:t.jsxs("label",{htmlFor:a,children:[t.jsx("input",{type:"checkbox",id:a,checked:l,onChange:o}),` ${s}`]})}),Ke=({placeholder:a="",rows:s=3,maxLength:l,value:o,onChange:f,isDisabled:h=!1,className:b=""})=>{const[C,m]=O.useState(o||""),w=o!==void 0?o:C,y=g=>{const _=g.target.value;f?f(_):m(_)};return t.jsx("textarea",{className:b,placeholder:a,rows:s,maxLength:l,value:w,onChange:y,disabled:h})},er=({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 rr(a,s){O.useEffect(()=>{if(!a)return;const l=setInterval(()=>{s()},a);return()=>clearInterval(l)},[a])}const tr=({children:a})=>t.jsx("div",{className:"btn-group",children:a}),nr=()=>t.jsxs("div",{children:[t.jsx(ae,{items:[{title:"Дополнения",active:!0},{title:"Название плагина",href:"#Название плагина"}]}),t.jsxs(tr,{children:[t.jsx(V,{children:"Hello"}),t.jsx(V,{children:"Hello"})]})]});v.Alert=er,v.Breadcrumb=ae,v.Button=V,v.Checkbox=Qe,v.Dropdown=se,v.HelpText=Ue,v.Input=Be,v.Modal=Le,v.Pagination=ie,v.ReloadButton=le,v.SampleComp=nr,v.Tab=Me,v.Table=Je,v.TableToolbar=Ze,v.Tabs=Ve,v.Tbody=He,v.Td=ze,v.TextArea=Ke,v.Th=Ge,v.Thead=qe,v.ToolbarContainer=We,v.Tr=Xe,v.useIntervalLoader=rr,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.41",
3
+ "version": "0.0.43",
4
4
  "type": "module",
5
5
  "main": "./dist/ovirt-ui-toolkit.umd.js",
6
6
  "module": "./dist/ovirt-ui-toolkit.es.js",