ovirt-ui-toolkit 0.0.121 → 0.0.123
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.
|
@@ -3187,7 +3187,9 @@ const _n = ({
|
|
|
3187
3187
|
className: a = ""
|
|
3188
3188
|
}) => {
|
|
3189
3189
|
if (!t) return null;
|
|
3190
|
-
const f = l.document.body.clientWidth, p = l.document.body.clientHeight, g = Math.max(0, (f - i) / 2), h = Math.max(0, (p - o) / 2)
|
|
3190
|
+
const f = l.document.body.clientWidth, p = l.document.body.clientHeight, g = Math.max(0, (f - i) / 2), h = Math.max(0, (p - o) / 2);
|
|
3191
|
+
console.log(f, p, g, h);
|
|
3192
|
+
const [y, S] = $e({
|
|
3191
3193
|
width: i,
|
|
3192
3194
|
height: o,
|
|
3193
3195
|
x: g,
|
|
@@ -61,4 +61,4 @@ Valid keys: `+JSON.stringify(Object.keys(S),null," "));var O=ce(I,Y,W,$,k+"."+Y
|
|
|
61
61
|
|
|
62
62
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
63
63
|
and limitations under the License.
|
|
64
|
-
***************************************************************************** */var tt=function(r,n){return tt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},tt(r,n)};function kr(r,n){tt(r,n);function t(){this.constructor=r}r.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}var ae=function(){return ae=Object.assign||function(n){for(var t,e=1,i=arguments.length;e<i;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},ae.apply(this,arguments)};function Ir(r,n){var t={};for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&n.indexOf(e)<0&&(t[e]=r[e]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,e=Object.getOwnPropertySymbols(r);i<e.length;i++)n.indexOf(e[i])<0&&Object.prototype.propertyIsEnumerable.call(r,e[i])&&(t[e[i]]=r[e[i]]);return t}var Fr={width:"auto",height:"auto",display:"inline-block",position:"absolute",top:0,left:0},Lr=function(r){return{bottom:r,bottomLeft:r,bottomRight:r,left:r,right:r,top:r,topLeft:r,topRight:r}},Hr=(function(r){kr(n,r);function n(t){var e=r.call(this,t)||this;return e.resizingPosition={x:0,y:0},e.offsetFromParent={left:0,top:0},e.resizableElement={current:null},e.originalPosition={x:0,y:0},e.state={resizing:!1,bounds:{top:0,right:0,bottom:0,left:0},maxWidth:t.maxWidth,maxHeight:t.maxHeight},e.onResizeStart=e.onResizeStart.bind(e),e.onResize=e.onResize.bind(e),e.onResizeStop=e.onResizeStop.bind(e),e.onDragStart=e.onDragStart.bind(e),e.onDrag=e.onDrag.bind(e),e.onDragStop=e.onDragStop.bind(e),e.getMaxSizesFromProps=e.getMaxSizesFromProps.bind(e),e}return n.prototype.componentDidMount=function(){this.updateOffsetFromParent();var t=this.offsetFromParent,e=t.left,i=t.top,o=this.getDraggablePosition(),l=o.x,a=o.y;this.draggable.setState({x:l-e,y:a-i}),this.forceUpdate()},n.prototype.getDraggablePosition=function(){var t=this.draggable.state,e=t.x,i=t.y;return{x:e,y:i}},n.prototype.getParent=function(){return this.resizable&&this.resizable.parentNode},n.prototype.getParentSize=function(){return this.resizable.getParentSize()},n.prototype.getMaxSizesFromProps=function(){var t=typeof this.props.maxWidth>"u"?Number.MAX_SAFE_INTEGER:this.props.maxWidth,e=typeof this.props.maxHeight>"u"?Number.MAX_SAFE_INTEGER:this.props.maxHeight;return{maxWidth:t,maxHeight:e}},n.prototype.getSelfElement=function(){return this.resizable&&this.resizable.resizable},n.prototype.getOffsetHeight=function(t){var e=this.props.scale;switch(this.props.bounds){case"window":return window.innerHeight/e;case"body":return document.body.offsetHeight/e;default:return t.offsetHeight}},n.prototype.getOffsetWidth=function(t){var e=this.props.scale;switch(this.props.bounds){case"window":return window.innerWidth/e;case"body":return document.body.offsetWidth/e;default:return t.offsetWidth}},n.prototype.onDragStart=function(t,e){this.props.onDragStart&&this.props.onDragStart(t,e);var i=this.getDraggablePosition();if(this.originalPosition=i,!!this.props.bounds){var o=this.getParent(),l=this.props.scale,a;if(this.props.bounds==="parent")a=o;else if(this.props.bounds==="body"){var f=o.getBoundingClientRect(),h=f.left,g=f.top,p=document.body.getBoundingClientRect(),y=-(h-o.offsetLeft*l-p.left)/l,x=-(g-o.offsetTop*l-p.top)/l,T=(document.body.offsetWidth-this.resizable.size.width*l)/l+y,P=(document.body.offsetHeight-this.resizable.size.height*l)/l+x;return this.setState({bounds:{top:x,right:T,bottom:P,left:y}})}else if(this.props.bounds==="window"){if(!this.resizable)return;var _=o.getBoundingClientRect(),b=_.left,d=_.top,v=-(b-o.offsetLeft*l)/l,w=-(d-o.offsetTop*l)/l,T=(window.innerWidth-this.resizable.size.width*l)/l+v,P=(window.innerHeight-this.resizable.size.height*l)/l+w;return this.setState({bounds:{top:w,right:T,bottom:P,left:v}})}else typeof this.props.bounds=="string"?a=document.querySelector(this.props.bounds):this.props.bounds instanceof HTMLElement&&(a=this.props.bounds);if(!(!(a instanceof HTMLElement)||!(o instanceof HTMLElement))){var c=a.getBoundingClientRect(),j=c.left,u=c.top,m=o.getBoundingClientRect(),C=m.left,N=m.top,G=(j-C)/l,A=u-N;if(this.resizable){this.updateOffsetFromParent();var X=this.offsetFromParent;this.setState({bounds:{top:A-X.top,right:G+(a.offsetWidth-this.resizable.size.width)-X.left/l,bottom:A+(a.offsetHeight-this.resizable.size.height)-X.top,left:G-X.left/l}})}}}},n.prototype.onDrag=function(t,e){if(this.props.onDrag){var i=this.offsetFromParent,o=i.left,l=i.top;if(!this.props.dragAxis||this.props.dragAxis==="both")return this.props.onDrag(t,ae(ae({},e),{x:e.x+o,y:e.y+l}));if(this.props.dragAxis==="x")return this.props.onDrag(t,ae(ae({},e),{x:e.x+o,y:this.originalPosition.y+l,deltaY:0}));if(this.props.dragAxis==="y")return this.props.onDrag(t,ae(ae({},e),{x:this.originalPosition.x+o,y:e.y+l,deltaX:0}))}},n.prototype.onDragStop=function(t,e){if(this.props.onDragStop){var i=this.offsetFromParent,o=i.left,l=i.top;if(!this.props.dragAxis||this.props.dragAxis==="both")return this.props.onDragStop(t,ae(ae({},e),{x:e.x+o,y:e.y+l}));if(this.props.dragAxis==="x")return this.props.onDragStop(t,ae(ae({},e),{x:e.x+o,y:this.originalPosition.y+l,deltaY:0}));if(this.props.dragAxis==="y")return this.props.onDragStop(t,ae(ae({},e),{x:this.originalPosition.x+o,y:e.y+l,deltaX:0}))}},n.prototype.onResizeStart=function(t,e,i){t.stopPropagation(),this.setState({resizing:!0});var o=this.props.scale,l=this.offsetFromParent,a=this.getDraggablePosition();if(this.resizingPosition={x:a.x+l.left,y:a.y+l.top},this.originalPosition=a,this.props.bounds){var f=this.getParent(),h=void 0;this.props.bounds==="parent"?h=f:this.props.bounds==="body"?h=document.body:this.props.bounds==="window"?h=window:typeof this.props.bounds=="string"?h=document.querySelector(this.props.bounds):this.props.bounds instanceof HTMLElement&&(h=this.props.bounds);var g=this.getSelfElement();if(g instanceof Element&&(h instanceof HTMLElement||h===window)&&f instanceof HTMLElement){var p=this.getMaxSizesFromProps(),y=p.maxWidth,x=p.maxHeight,T=this.getParentSize();if(y&&typeof y=="string")if(y.endsWith("%")){var P=Number(y.replace("%",""))/100;y=T.width*P}else y.endsWith("px")&&(y=Number(y.replace("px","")));if(x&&typeof x=="string")if(x.endsWith("%")){var P=Number(x.replace("%",""))/100;x=T.height*P}else x.endsWith("px")&&(x=Number(x.replace("px","")));var _=g.getBoundingClientRect(),b=_.left,d=_.top,v=this.props.bounds==="window"?{left:0,top:0}:h.getBoundingClientRect(),w=v.left,c=v.top,j=this.getOffsetWidth(h),u=this.getOffsetHeight(h),m=e.toLowerCase().endsWith("left"),C=e.toLowerCase().endsWith("right"),N=e.startsWith("top"),G=e.startsWith("bottom");if((m||N)&&this.resizable){var A=(b-w)/o+this.resizable.size.width;this.setState({maxWidth:A>Number(y)?y:A})}if(C||this.props.lockAspectRatio&&!m&&!N){var A=j+(w-b)/o;this.setState({maxWidth:A>Number(y)?y:A})}if((N||m)&&this.resizable){var A=(d-c)/o+this.resizable.size.height;this.setState({maxHeight:A>Number(x)?x:A})}if(G||this.props.lockAspectRatio&&!N&&!m){var A=u+(c-d)/o;this.setState({maxHeight:A>Number(x)?x:A})}}}else this.setState({maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight});this.props.onResizeStart&&this.props.onResizeStart(t,e,i)},n.prototype.onResize=function(t,e,i,o){var l=this,a={x:this.originalPosition.x,y:this.originalPosition.y},f=-o.width,h=-o.height,g=["top","left","topLeft","bottomLeft","topRight"];g.includes(e)&&(e==="bottomLeft"?a.x+=f:(e==="topRight"||(a.x+=f),a.y+=h));var p=this.draggable.state;(a.x!==p.x||a.y!==p.y)&&je.flushSync(function(){l.draggable.setState(a)}),this.updateOffsetFromParent();var y=this.offsetFromParent,x=this.getDraggablePosition().x+y.left,T=this.getDraggablePosition().y+y.top;this.resizingPosition={x,y:T},this.props.onResize&&this.props.onResize(t,e,i,o,{x,y:T})},n.prototype.onResizeStop=function(t,e,i,o){this.setState({resizing:!1});var l=this.getMaxSizesFromProps(),a=l.maxWidth,f=l.maxHeight;this.setState({maxWidth:a,maxHeight:f}),this.props.onResizeStop&&this.props.onResizeStop(t,e,i,o,this.resizingPosition)},n.prototype.updateSize=function(t){this.resizable&&this.resizable.updateSize({width:t.width,height:t.height})},n.prototype.updatePosition=function(t){this.draggable.setState(t)},n.prototype.updateOffsetFromParent=function(){var t=this.props.scale,e=this.getParent(),i=this.getSelfElement();if(!e||i===null)return{top:0,left:0};var o=e.getBoundingClientRect(),l=o.left,a=o.top,f=i.getBoundingClientRect(),h=this.getDraggablePosition(),g=e.scrollLeft,p=e.scrollTop;this.offsetFromParent={left:f.left-l+g-h.x*t,top:f.top-a+p-h.y*t}},n.prototype.render=function(){var t=this,e=this.props,i=e.disableDragging,o=e.style,l=e.dragHandleClassName,a=e.position,f=e.onMouseDown,h=e.onMouseUp,g=e.dragAxis,p=e.dragGrid,y=e.bounds,x=e.enableUserSelectHack,T=e.cancel,P=e.children;e.onResizeStart,e.onResize,e.onResizeStop,e.onDragStart,e.onDrag,e.onDragStop;var _=e.resizeHandleStyles,b=e.resizeHandleClasses,d=e.resizeHandleComponent,v=e.enableResizing,w=e.resizeGrid,c=e.resizeHandleWrapperClass,j=e.resizeHandleWrapperStyle,u=e.scale,m=e.allowAnyClick,C=e.dragPositionOffset,N=Ir(e,["disableDragging","style","dragHandleClassName","position","onMouseDown","onMouseUp","dragAxis","dragGrid","bounds","enableUserSelectHack","cancel","children","onResizeStart","onResize","onResizeStop","onDragStart","onDrag","onDragStop","resizeHandleStyles","resizeHandleClasses","resizeHandleComponent","enableResizing","resizeGrid","resizeHandleWrapperClass","resizeHandleWrapperStyle","scale","allowAnyClick","dragPositionOffset"]),G=this.props.default?ae({},this.props.default):void 0;delete N.default;var A=i||l?{cursor:"auto"}:{cursor:"move"},X=ae(ae(ae({},Fr),A),o),te=this.offsetFromParent,le=te.left,re=te.top,ue;a&&(ue={x:a.x-le,y:a.y-re});var de=this.state.resizing?void 0:ue,pe=this.state.resizing?"both":g;return ee.createElement(Pr,{ref:function(S){S&&(t.draggable=S)},handle:l?".".concat(l):void 0,defaultPosition:G,onMouseDown:f,onMouseUp:h,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,axis:pe,disabled:i,grid:p,bounds:y?this.state.bounds:void 0,position:de,enableUserSelectHack:x,cancel:T,scale:u,allowAnyClick:m,nodeRef:this.resizableElement,positionOffset:C},ee.createElement(Wr,ae({},N,{ref:function(S){S&&(t.resizable=S,t.resizableElement.current=S.resizable)},defaultSize:G,size:this.props.size,enable:typeof v=="boolean"?Lr(v):v,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,style:X,minWidth:this.props.minWidth,minHeight:this.props.minHeight,maxWidth:this.state.resizing?this.state.maxWidth:this.props.maxWidth,maxHeight:this.state.resizing?this.state.maxHeight:this.props.maxHeight,grid:w,handleWrapperClass:c,handleWrapperStyle:j,lockAspectRatio:this.props.lockAspectRatio,lockAspectRatioExtraWidth:this.props.lockAspectRatioExtraWidth,lockAspectRatioExtraHeight:this.props.lockAspectRatioExtraHeight,handleStyles:_,handleClasses:b,handleComponent:d,scale:this.props.scale}),P))},n.defaultProps={maxWidth:Number.MAX_SAFE_INTEGER,maxHeight:Number.MAX_SAFE_INTEGER,scale:1,onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},onDragStart:function(){},onDrag:function(){},onDragStop:function(){}},n})(ee.PureComponent);const Yr=({children:r,title:n,isOpen:t,onClose:e=()=>{},initialWidth:i=500,initialHeight:o=650,win:l=window,className:a=""})=>{if(!t)return null;const f=l.document.body.clientWidth,h=l.document.body.clientHeight,g=Math.max(0,(f-i)/2),p=Math.max(0,(h-o)/2),[y,x]=ee.useState({width:i,height:o,x:g,y:p}),T=(_,b)=>{x(d=>({...d,x:b.x,y:b.y}))},P=(_,b,d,v,w)=>{x({width:parseInt(d.style.width,10)||i,height:parseInt(d.style.height,10)||o,x:w.x,y:w.y})};return R.jsx("div",{style:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",zIndex:9999},className:"center",children:R.jsx(Hr,{size:{width:y.width,height:y.height},position:{x:y.x,y:y.y},onDragStop:T,onResizeStop:P,minWidth:300,minHeight:100,bounds:"window",className:"float-modal-rnd",dragHandleClassName:"p-header",children:R.jsxs("div",{className:"p-modal "+a,children:[R.jsxs("div",{className:"p-header",children:[R.jsx("div",{children:n}),R.jsx("button",{type:"button",className:"close",onClick:e,"aria-label":"Close modal",children:R.jsx("span",{className:"pficon pficon-close"})})]}),R.jsx("div",{className:"p-body min-h-0",children:r})]})})})},Br=({variant:r,children:n,className:t=""})=>{const e={warning:"text-yellow-600",success:"text-green-600",error:"text-red-600"},i=t+" "+e[r]||"";return R.jsx("p",{className:i,children:n})},Ur=({children:r,...n})=>R.jsx("table",{...n,children:r}),Xr=({children:r,...n})=>R.jsx("tbody",{...n,children:r}),$r=({children:r,...n})=>R.jsx("td",{...n,children:r}),qr=({children:r,...n})=>R.jsx("th",{...n,children:r}),Vr=({children:r,...n})=>R.jsx("thead",{...n,children:r}),Gr=({children:r,...n})=>R.jsx("tr",{...n,children:r}),rt=({items:r,selected:n,title:t,isDisabled:e,isOpen:i,setIsOpen:o,onChange:l,className:a=""})=>{const f=y=>{o(!y)},h=y=>{o(!1),l(y)},g=y=>{const x=y.id===n;return R.jsx("li",{onClick:()=>h(y),className:x?"active":"",children:R.jsx("a",{href:"#",children:y.title})},y.id)},p=`btn btn-default dropdown-toggle flex-1 ${a}`;return R.jsxs(R.Fragment,{children:[R.jsx("button",{style:{marginLeft:"0px",left:"-1px"},className:p,disabled:e,onClick:()=>f(i),"data-toggle":"dropdown",type:"button",children:R.jsxs("div",{className:"flex items-center justify-center gap-2 h-full min-h-[20px]",children:[t&&R.jsx("div",{className:"mr-1",children:t}),R.jsx("span",{className:"caret inline-block align-middle"})]})}),R.jsx("ul",{className:"dropdown-menu",role:"menu",children:r.map(g)})]})},Jr=r=>{const[n,t]=ee.useState(!1),e=r.selected,i=r.items.find(l=>l.id==e);r.debug&&(console.log(r),console.log(i));const o=ee.useRef(null);return ee.useEffect(()=>{const l=a=>{o.current&&!o.current.contains(a.target)&&t(!1)};return n&&document.addEventListener("mousedown",l),()=>{document.removeEventListener("mousedown",l)}},[n]),R.jsx("div",{className:`btn-group ${n?"open":""}`,ref:o,children:R.jsx(rt,{...r,title:(i==null?void 0:i.title)||r.title,setIsOpen:t,isOpen:n})})},Yt=({currentPage:r,total:n,onPageChange:t,onNextPage:e,onPrevPage:i,end:o,pageSize:l})=>{const a=Math.ceil(n/l),f=()=>{i?i():r>1&&t(r-1)},h=()=>{e?e():r<a&&t(r+1)};return R.jsxs("div",{children:[R.jsx("span",{children:R.jsxs("span",{className:"pagination-pf-items-current",children:[r," - ",a]})}),R.jsxs("div",{className:"btn-group ml-2",children:[R.jsx("button",{type:"button",className:`btn btn-default ${r===1?"disabled":""}`,disabled:r===1,onClick:f,children:R.jsx("i",{className:"fa fa-angle-left"})}),R.jsx("button",{type:"button",className:`btn btn-default ${r===a?"disabled":""}`,disabled:r===a||o,onClick:h,children:R.jsx("i",{className:"fa fa-angle-right"})})]})]})},Be=({children:r,onChange:n,items:t,selected:e,className:i=""})=>{const[o,l]=ee.useState(!1),a=ee.useRef(null);return ee.useEffect(()=>{const f=h=>{a.current&&!a.current.contains(h.target)&&l(!1)};return o&&document.addEventListener("mousedown",f),()=>{document.removeEventListener("mousedown",f)}},[o]),R.jsx("div",{className:`relative ${i} ${o?"open":""}`,ref:a,children:R.jsxs(R.Fragment,{children:[r,R.jsx(rt,{setIsOpen:l,isOpen:o,onChange:n,items:t,selected:e})]})})},Kr=[{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}],Bt=({items:r=Kr,onChange:n,value:t,onRefresh:e})=>{var l;const i=a=>{n(a.data)},o=(l=r.find(a=>a.data===t))==null?void 0:l.id;return R.jsx(Be,{className:"flex",items:r,onChange:i,selected:o,children:R.jsxs(Ne,{className:"m-0",type:"default",onClick:e,children:[" ",R.jsx("i",{className:"fa fa-refresh"})," "]})})},Zr=({interval:r,page:n,itemsReload:t,total:e,onRefresh:i,onChangeInterval:o,onPageChange:l,pageSize:a,onNextPage:f,onPrevPage:h,end:g})=>R.jsxs("div",{className:"flex justify-between bg-[#f5f5f5] border border-[#d1d1d1]",children:[R.jsx("div",{className:"m-[5px]",children:R.jsx(Bt,{items:t,value:r,onChange:o,onRefresh:i})}),R.jsx("div",{className:"m-[5px]",children:R.jsx(Yt,{end:g,onNextPage:f,onPrevPage:h,pageSize:a,currentPage:n,total:e,onPageChange:l})})]}),Qr=({id:r,label:n,isChecked:t=!1,isDisabled:e=!1,onChange:i,className:o="checkbox",position:l="right"})=>R.jsx("div",{className:o,children:R.jsxs("div",{className:"flex items-center gap-2",children:[l==="left"&&R.jsx("input",{type:"checkbox",id:r,checked:t,onChange:i,disabled:e,className:"cursor-pointer !mt-0"}),R.jsx("label",{htmlFor:r,className:"cursor-pointer !mb-0","aria-disabled":e,children:n}),l==="right"&&R.jsx("input",{type:"checkbox",id:r,checked:t,onChange:i,disabled:e,className:"cursor-pointer !mt-0"})]})}),en=({placeholder:r="",rows:n=3,maxLength:t,value:e,onChange:i,isDisabled:o=!1,className:l=""})=>{const[a,f]=ee.useState(e||""),h=e!==void 0?e:a,g=p=>{const y=p.target.value;i?i(y):f(y)};return R.jsx("textarea",{className:l,placeholder:r,rows:n,maxLength:t,value:h,onChange:g,disabled:o})},tn=({variant:r,title:n,className:t})=>{const e=["success","info","warning","danger"],i=l=>{switch(l){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"}};e.includes(r)||(console.warn(`Unsupported alert variant: "${r}". Defaulting to "info".`),r="info");const o=`flex pl-[20px] !static items-center alert alert-${r} ${t||""}`.trim();return R.jsxs("div",{className:o,role:"alert",children:[R.jsx("span",{className:"!static "+i(r)}),R.jsx("div",{className:"ml-5",children:n})]})},rn=({variant:r,children:n,onClick:t})=>{const e=`label label-${r}`,i=t?{tabIndex:0,role:"button","aria-pressed":!1}:{};return R.jsx("span",{className:e,onClick:t,...i,style:{cursor:t?"pointer":void 0},children:n})},nn=r=>{const{label:n,isChecked:t=!1,id:e="radio1",onChange:i,name:o}=r;return R.jsx("div",{className:"radio",children:R.jsxs("label",{htmlFor:e,children:[R.jsx("input",{type:"radio",name:o,id:e,checked:t,onChange:l=>i(l.target.checked)}),n]})})};function on(r,n){ee.useEffect(()=>{if(!r)return;const t=setInterval(()=>{n()},r);return()=>clearInterval(t)},[r])}const sn=()=>R.jsxs("div",{children:[R.jsx(ft,{items:[{title:"Дополнения",active:!0},{title:"Название плагина",href:"#Название плагина"}]}),R.jsx(Be,{onChange:()=>{},items:[{id:0,title:"5 сек"},{id:1,title:"10 сек"},{id:2,title:"20 сек"}],children:R.jsx(Ne,{children:"Hello"})}),R.jsx(Be,{onChange:()=>{},items:[{id:0,title:"5 сек"},{id:1,title:"10 сек"},{id:2,title:"20 сек"}],children:R.jsx(Ne,{children:"Hello"})})]});U.Alert=tn,U.Breadcrumb=ft,U.Button=Ne,U.Checkbox=Qr,U.Dropdown=rt,U.DropdownSelect=Jr,U.FloatModal=Yr,U.GroupButtonContainer=Be,U.HelpText=Br,U.Input=hr,U.Label=rn,U.Modal=pr,U.Pagination=Yt,U.Radio=nn,U.ReloadButton=Bt,U.SampleComp=sn,U.Tab=fr,U.Table=Ur,U.TableToolbar=Zr,U.Tabs=dr,U.Tbody=Xr,U.Td=$r,U.TextArea=en,U.Th=qr,U.Thead=Vr,U.ToolbarContainer=ur,U.Tr=Gr,U.useIntervalLoader=on,Object.defineProperty(U,Symbol.toStringTag,{value:"Module"})}));
|
|
64
|
+
***************************************************************************** */var tt=function(r,n){return tt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},tt(r,n)};function kr(r,n){tt(r,n);function t(){this.constructor=r}r.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}var ae=function(){return ae=Object.assign||function(n){for(var t,e=1,i=arguments.length;e<i;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},ae.apply(this,arguments)};function Ir(r,n){var t={};for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&n.indexOf(e)<0&&(t[e]=r[e]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,e=Object.getOwnPropertySymbols(r);i<e.length;i++)n.indexOf(e[i])<0&&Object.prototype.propertyIsEnumerable.call(r,e[i])&&(t[e[i]]=r[e[i]]);return t}var Fr={width:"auto",height:"auto",display:"inline-block",position:"absolute",top:0,left:0},Lr=function(r){return{bottom:r,bottomLeft:r,bottomRight:r,left:r,right:r,top:r,topLeft:r,topRight:r}},Hr=(function(r){kr(n,r);function n(t){var e=r.call(this,t)||this;return e.resizingPosition={x:0,y:0},e.offsetFromParent={left:0,top:0},e.resizableElement={current:null},e.originalPosition={x:0,y:0},e.state={resizing:!1,bounds:{top:0,right:0,bottom:0,left:0},maxWidth:t.maxWidth,maxHeight:t.maxHeight},e.onResizeStart=e.onResizeStart.bind(e),e.onResize=e.onResize.bind(e),e.onResizeStop=e.onResizeStop.bind(e),e.onDragStart=e.onDragStart.bind(e),e.onDrag=e.onDrag.bind(e),e.onDragStop=e.onDragStop.bind(e),e.getMaxSizesFromProps=e.getMaxSizesFromProps.bind(e),e}return n.prototype.componentDidMount=function(){this.updateOffsetFromParent();var t=this.offsetFromParent,e=t.left,i=t.top,o=this.getDraggablePosition(),l=o.x,a=o.y;this.draggable.setState({x:l-e,y:a-i}),this.forceUpdate()},n.prototype.getDraggablePosition=function(){var t=this.draggable.state,e=t.x,i=t.y;return{x:e,y:i}},n.prototype.getParent=function(){return this.resizable&&this.resizable.parentNode},n.prototype.getParentSize=function(){return this.resizable.getParentSize()},n.prototype.getMaxSizesFromProps=function(){var t=typeof this.props.maxWidth>"u"?Number.MAX_SAFE_INTEGER:this.props.maxWidth,e=typeof this.props.maxHeight>"u"?Number.MAX_SAFE_INTEGER:this.props.maxHeight;return{maxWidth:t,maxHeight:e}},n.prototype.getSelfElement=function(){return this.resizable&&this.resizable.resizable},n.prototype.getOffsetHeight=function(t){var e=this.props.scale;switch(this.props.bounds){case"window":return window.innerHeight/e;case"body":return document.body.offsetHeight/e;default:return t.offsetHeight}},n.prototype.getOffsetWidth=function(t){var e=this.props.scale;switch(this.props.bounds){case"window":return window.innerWidth/e;case"body":return document.body.offsetWidth/e;default:return t.offsetWidth}},n.prototype.onDragStart=function(t,e){this.props.onDragStart&&this.props.onDragStart(t,e);var i=this.getDraggablePosition();if(this.originalPosition=i,!!this.props.bounds){var o=this.getParent(),l=this.props.scale,a;if(this.props.bounds==="parent")a=o;else if(this.props.bounds==="body"){var f=o.getBoundingClientRect(),h=f.left,g=f.top,p=document.body.getBoundingClientRect(),y=-(h-o.offsetLeft*l-p.left)/l,x=-(g-o.offsetTop*l-p.top)/l,T=(document.body.offsetWidth-this.resizable.size.width*l)/l+y,P=(document.body.offsetHeight-this.resizable.size.height*l)/l+x;return this.setState({bounds:{top:x,right:T,bottom:P,left:y}})}else if(this.props.bounds==="window"){if(!this.resizable)return;var _=o.getBoundingClientRect(),b=_.left,d=_.top,v=-(b-o.offsetLeft*l)/l,w=-(d-o.offsetTop*l)/l,T=(window.innerWidth-this.resizable.size.width*l)/l+v,P=(window.innerHeight-this.resizable.size.height*l)/l+w;return this.setState({bounds:{top:w,right:T,bottom:P,left:v}})}else typeof this.props.bounds=="string"?a=document.querySelector(this.props.bounds):this.props.bounds instanceof HTMLElement&&(a=this.props.bounds);if(!(!(a instanceof HTMLElement)||!(o instanceof HTMLElement))){var c=a.getBoundingClientRect(),j=c.left,u=c.top,m=o.getBoundingClientRect(),C=m.left,N=m.top,G=(j-C)/l,A=u-N;if(this.resizable){this.updateOffsetFromParent();var X=this.offsetFromParent;this.setState({bounds:{top:A-X.top,right:G+(a.offsetWidth-this.resizable.size.width)-X.left/l,bottom:A+(a.offsetHeight-this.resizable.size.height)-X.top,left:G-X.left/l}})}}}},n.prototype.onDrag=function(t,e){if(this.props.onDrag){var i=this.offsetFromParent,o=i.left,l=i.top;if(!this.props.dragAxis||this.props.dragAxis==="both")return this.props.onDrag(t,ae(ae({},e),{x:e.x+o,y:e.y+l}));if(this.props.dragAxis==="x")return this.props.onDrag(t,ae(ae({},e),{x:e.x+o,y:this.originalPosition.y+l,deltaY:0}));if(this.props.dragAxis==="y")return this.props.onDrag(t,ae(ae({},e),{x:this.originalPosition.x+o,y:e.y+l,deltaX:0}))}},n.prototype.onDragStop=function(t,e){if(this.props.onDragStop){var i=this.offsetFromParent,o=i.left,l=i.top;if(!this.props.dragAxis||this.props.dragAxis==="both")return this.props.onDragStop(t,ae(ae({},e),{x:e.x+o,y:e.y+l}));if(this.props.dragAxis==="x")return this.props.onDragStop(t,ae(ae({},e),{x:e.x+o,y:this.originalPosition.y+l,deltaY:0}));if(this.props.dragAxis==="y")return this.props.onDragStop(t,ae(ae({},e),{x:this.originalPosition.x+o,y:e.y+l,deltaX:0}))}},n.prototype.onResizeStart=function(t,e,i){t.stopPropagation(),this.setState({resizing:!0});var o=this.props.scale,l=this.offsetFromParent,a=this.getDraggablePosition();if(this.resizingPosition={x:a.x+l.left,y:a.y+l.top},this.originalPosition=a,this.props.bounds){var f=this.getParent(),h=void 0;this.props.bounds==="parent"?h=f:this.props.bounds==="body"?h=document.body:this.props.bounds==="window"?h=window:typeof this.props.bounds=="string"?h=document.querySelector(this.props.bounds):this.props.bounds instanceof HTMLElement&&(h=this.props.bounds);var g=this.getSelfElement();if(g instanceof Element&&(h instanceof HTMLElement||h===window)&&f instanceof HTMLElement){var p=this.getMaxSizesFromProps(),y=p.maxWidth,x=p.maxHeight,T=this.getParentSize();if(y&&typeof y=="string")if(y.endsWith("%")){var P=Number(y.replace("%",""))/100;y=T.width*P}else y.endsWith("px")&&(y=Number(y.replace("px","")));if(x&&typeof x=="string")if(x.endsWith("%")){var P=Number(x.replace("%",""))/100;x=T.height*P}else x.endsWith("px")&&(x=Number(x.replace("px","")));var _=g.getBoundingClientRect(),b=_.left,d=_.top,v=this.props.bounds==="window"?{left:0,top:0}:h.getBoundingClientRect(),w=v.left,c=v.top,j=this.getOffsetWidth(h),u=this.getOffsetHeight(h),m=e.toLowerCase().endsWith("left"),C=e.toLowerCase().endsWith("right"),N=e.startsWith("top"),G=e.startsWith("bottom");if((m||N)&&this.resizable){var A=(b-w)/o+this.resizable.size.width;this.setState({maxWidth:A>Number(y)?y:A})}if(C||this.props.lockAspectRatio&&!m&&!N){var A=j+(w-b)/o;this.setState({maxWidth:A>Number(y)?y:A})}if((N||m)&&this.resizable){var A=(d-c)/o+this.resizable.size.height;this.setState({maxHeight:A>Number(x)?x:A})}if(G||this.props.lockAspectRatio&&!N&&!m){var A=u+(c-d)/o;this.setState({maxHeight:A>Number(x)?x:A})}}}else this.setState({maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight});this.props.onResizeStart&&this.props.onResizeStart(t,e,i)},n.prototype.onResize=function(t,e,i,o){var l=this,a={x:this.originalPosition.x,y:this.originalPosition.y},f=-o.width,h=-o.height,g=["top","left","topLeft","bottomLeft","topRight"];g.includes(e)&&(e==="bottomLeft"?a.x+=f:(e==="topRight"||(a.x+=f),a.y+=h));var p=this.draggable.state;(a.x!==p.x||a.y!==p.y)&&je.flushSync(function(){l.draggable.setState(a)}),this.updateOffsetFromParent();var y=this.offsetFromParent,x=this.getDraggablePosition().x+y.left,T=this.getDraggablePosition().y+y.top;this.resizingPosition={x,y:T},this.props.onResize&&this.props.onResize(t,e,i,o,{x,y:T})},n.prototype.onResizeStop=function(t,e,i,o){this.setState({resizing:!1});var l=this.getMaxSizesFromProps(),a=l.maxWidth,f=l.maxHeight;this.setState({maxWidth:a,maxHeight:f}),this.props.onResizeStop&&this.props.onResizeStop(t,e,i,o,this.resizingPosition)},n.prototype.updateSize=function(t){this.resizable&&this.resizable.updateSize({width:t.width,height:t.height})},n.prototype.updatePosition=function(t){this.draggable.setState(t)},n.prototype.updateOffsetFromParent=function(){var t=this.props.scale,e=this.getParent(),i=this.getSelfElement();if(!e||i===null)return{top:0,left:0};var o=e.getBoundingClientRect(),l=o.left,a=o.top,f=i.getBoundingClientRect(),h=this.getDraggablePosition(),g=e.scrollLeft,p=e.scrollTop;this.offsetFromParent={left:f.left-l+g-h.x*t,top:f.top-a+p-h.y*t}},n.prototype.render=function(){var t=this,e=this.props,i=e.disableDragging,o=e.style,l=e.dragHandleClassName,a=e.position,f=e.onMouseDown,h=e.onMouseUp,g=e.dragAxis,p=e.dragGrid,y=e.bounds,x=e.enableUserSelectHack,T=e.cancel,P=e.children;e.onResizeStart,e.onResize,e.onResizeStop,e.onDragStart,e.onDrag,e.onDragStop;var _=e.resizeHandleStyles,b=e.resizeHandleClasses,d=e.resizeHandleComponent,v=e.enableResizing,w=e.resizeGrid,c=e.resizeHandleWrapperClass,j=e.resizeHandleWrapperStyle,u=e.scale,m=e.allowAnyClick,C=e.dragPositionOffset,N=Ir(e,["disableDragging","style","dragHandleClassName","position","onMouseDown","onMouseUp","dragAxis","dragGrid","bounds","enableUserSelectHack","cancel","children","onResizeStart","onResize","onResizeStop","onDragStart","onDrag","onDragStop","resizeHandleStyles","resizeHandleClasses","resizeHandleComponent","enableResizing","resizeGrid","resizeHandleWrapperClass","resizeHandleWrapperStyle","scale","allowAnyClick","dragPositionOffset"]),G=this.props.default?ae({},this.props.default):void 0;delete N.default;var A=i||l?{cursor:"auto"}:{cursor:"move"},X=ae(ae(ae({},Fr),A),o),te=this.offsetFromParent,le=te.left,re=te.top,ue;a&&(ue={x:a.x-le,y:a.y-re});var de=this.state.resizing?void 0:ue,pe=this.state.resizing?"both":g;return ee.createElement(Pr,{ref:function(S){S&&(t.draggable=S)},handle:l?".".concat(l):void 0,defaultPosition:G,onMouseDown:f,onMouseUp:h,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,axis:pe,disabled:i,grid:p,bounds:y?this.state.bounds:void 0,position:de,enableUserSelectHack:x,cancel:T,scale:u,allowAnyClick:m,nodeRef:this.resizableElement,positionOffset:C},ee.createElement(Wr,ae({},N,{ref:function(S){S&&(t.resizable=S,t.resizableElement.current=S.resizable)},defaultSize:G,size:this.props.size,enable:typeof v=="boolean"?Lr(v):v,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,style:X,minWidth:this.props.minWidth,minHeight:this.props.minHeight,maxWidth:this.state.resizing?this.state.maxWidth:this.props.maxWidth,maxHeight:this.state.resizing?this.state.maxHeight:this.props.maxHeight,grid:w,handleWrapperClass:c,handleWrapperStyle:j,lockAspectRatio:this.props.lockAspectRatio,lockAspectRatioExtraWidth:this.props.lockAspectRatioExtraWidth,lockAspectRatioExtraHeight:this.props.lockAspectRatioExtraHeight,handleStyles:_,handleClasses:b,handleComponent:d,scale:this.props.scale}),P))},n.defaultProps={maxWidth:Number.MAX_SAFE_INTEGER,maxHeight:Number.MAX_SAFE_INTEGER,scale:1,onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},onDragStart:function(){},onDrag:function(){},onDragStop:function(){}},n})(ee.PureComponent);const Yr=({children:r,title:n,isOpen:t,onClose:e=()=>{},initialWidth:i=500,initialHeight:o=650,win:l=window,className:a=""})=>{if(!t)return null;const f=l.document.body.clientWidth,h=l.document.body.clientHeight,g=Math.max(0,(f-i)/2),p=Math.max(0,(h-o)/2);console.log(f,h,g,p);const[y,x]=ee.useState({width:i,height:o,x:g,y:p}),T=(_,b)=>{x(d=>({...d,x:b.x,y:b.y}))},P=(_,b,d,v,w)=>{x({width:parseInt(d.style.width,10)||i,height:parseInt(d.style.height,10)||o,x:w.x,y:w.y})};return R.jsx("div",{style:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",zIndex:9999},className:"center",children:R.jsx(Hr,{size:{width:y.width,height:y.height},position:{x:y.x,y:y.y},onDragStop:T,onResizeStop:P,minWidth:300,minHeight:100,bounds:"window",className:"float-modal-rnd",dragHandleClassName:"p-header",children:R.jsxs("div",{className:"p-modal "+a,children:[R.jsxs("div",{className:"p-header",children:[R.jsx("div",{children:n}),R.jsx("button",{type:"button",className:"close",onClick:e,"aria-label":"Close modal",children:R.jsx("span",{className:"pficon pficon-close"})})]}),R.jsx("div",{className:"p-body min-h-0",children:r})]})})})},Br=({variant:r,children:n,className:t=""})=>{const e={warning:"text-yellow-600",success:"text-green-600",error:"text-red-600"},i=t+" "+e[r]||"";return R.jsx("p",{className:i,children:n})},Ur=({children:r,...n})=>R.jsx("table",{...n,children:r}),Xr=({children:r,...n})=>R.jsx("tbody",{...n,children:r}),$r=({children:r,...n})=>R.jsx("td",{...n,children:r}),qr=({children:r,...n})=>R.jsx("th",{...n,children:r}),Vr=({children:r,...n})=>R.jsx("thead",{...n,children:r}),Gr=({children:r,...n})=>R.jsx("tr",{...n,children:r}),rt=({items:r,selected:n,title:t,isDisabled:e,isOpen:i,setIsOpen:o,onChange:l,className:a=""})=>{const f=y=>{o(!y)},h=y=>{o(!1),l(y)},g=y=>{const x=y.id===n;return R.jsx("li",{onClick:()=>h(y),className:x?"active":"",children:R.jsx("a",{href:"#",children:y.title})},y.id)},p=`btn btn-default dropdown-toggle flex-1 ${a}`;return R.jsxs(R.Fragment,{children:[R.jsx("button",{style:{marginLeft:"0px",left:"-1px"},className:p,disabled:e,onClick:()=>f(i),"data-toggle":"dropdown",type:"button",children:R.jsxs("div",{className:"flex items-center justify-center gap-2 h-full min-h-[20px]",children:[t&&R.jsx("div",{className:"mr-1",children:t}),R.jsx("span",{className:"caret inline-block align-middle"})]})}),R.jsx("ul",{className:"dropdown-menu",role:"menu",children:r.map(g)})]})},Jr=r=>{const[n,t]=ee.useState(!1),e=r.selected,i=r.items.find(l=>l.id==e);r.debug&&(console.log(r),console.log(i));const o=ee.useRef(null);return ee.useEffect(()=>{const l=a=>{o.current&&!o.current.contains(a.target)&&t(!1)};return n&&document.addEventListener("mousedown",l),()=>{document.removeEventListener("mousedown",l)}},[n]),R.jsx("div",{className:`btn-group ${n?"open":""}`,ref:o,children:R.jsx(rt,{...r,title:(i==null?void 0:i.title)||r.title,setIsOpen:t,isOpen:n})})},Yt=({currentPage:r,total:n,onPageChange:t,onNextPage:e,onPrevPage:i,end:o,pageSize:l})=>{const a=Math.ceil(n/l),f=()=>{i?i():r>1&&t(r-1)},h=()=>{e?e():r<a&&t(r+1)};return R.jsxs("div",{children:[R.jsx("span",{children:R.jsxs("span",{className:"pagination-pf-items-current",children:[r," - ",a]})}),R.jsxs("div",{className:"btn-group ml-2",children:[R.jsx("button",{type:"button",className:`btn btn-default ${r===1?"disabled":""}`,disabled:r===1,onClick:f,children:R.jsx("i",{className:"fa fa-angle-left"})}),R.jsx("button",{type:"button",className:`btn btn-default ${r===a?"disabled":""}`,disabled:r===a||o,onClick:h,children:R.jsx("i",{className:"fa fa-angle-right"})})]})]})},Be=({children:r,onChange:n,items:t,selected:e,className:i=""})=>{const[o,l]=ee.useState(!1),a=ee.useRef(null);return ee.useEffect(()=>{const f=h=>{a.current&&!a.current.contains(h.target)&&l(!1)};return o&&document.addEventListener("mousedown",f),()=>{document.removeEventListener("mousedown",f)}},[o]),R.jsx("div",{className:`relative ${i} ${o?"open":""}`,ref:a,children:R.jsxs(R.Fragment,{children:[r,R.jsx(rt,{setIsOpen:l,isOpen:o,onChange:n,items:t,selected:e})]})})},Kr=[{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}],Bt=({items:r=Kr,onChange:n,value:t,onRefresh:e})=>{var l;const i=a=>{n(a.data)},o=(l=r.find(a=>a.data===t))==null?void 0:l.id;return R.jsx(Be,{className:"flex",items:r,onChange:i,selected:o,children:R.jsxs(Ne,{className:"m-0",type:"default",onClick:e,children:[" ",R.jsx("i",{className:"fa fa-refresh"})," "]})})},Zr=({interval:r,page:n,itemsReload:t,total:e,onRefresh:i,onChangeInterval:o,onPageChange:l,pageSize:a,onNextPage:f,onPrevPage:h,end:g})=>R.jsxs("div",{className:"flex justify-between bg-[#f5f5f5] border border-[#d1d1d1]",children:[R.jsx("div",{className:"m-[5px]",children:R.jsx(Bt,{items:t,value:r,onChange:o,onRefresh:i})}),R.jsx("div",{className:"m-[5px]",children:R.jsx(Yt,{end:g,onNextPage:f,onPrevPage:h,pageSize:a,currentPage:n,total:e,onPageChange:l})})]}),Qr=({id:r,label:n,isChecked:t=!1,isDisabled:e=!1,onChange:i,className:o="checkbox",position:l="right"})=>R.jsx("div",{className:o,children:R.jsxs("div",{className:"flex items-center gap-2",children:[l==="left"&&R.jsx("input",{type:"checkbox",id:r,checked:t,onChange:i,disabled:e,className:"cursor-pointer !mt-0"}),R.jsx("label",{htmlFor:r,className:"cursor-pointer !mb-0","aria-disabled":e,children:n}),l==="right"&&R.jsx("input",{type:"checkbox",id:r,checked:t,onChange:i,disabled:e,className:"cursor-pointer !mt-0"})]})}),en=({placeholder:r="",rows:n=3,maxLength:t,value:e,onChange:i,isDisabled:o=!1,className:l=""})=>{const[a,f]=ee.useState(e||""),h=e!==void 0?e:a,g=p=>{const y=p.target.value;i?i(y):f(y)};return R.jsx("textarea",{className:l,placeholder:r,rows:n,maxLength:t,value:h,onChange:g,disabled:o})},tn=({variant:r,title:n,className:t})=>{const e=["success","info","warning","danger"],i=l=>{switch(l){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"}};e.includes(r)||(console.warn(`Unsupported alert variant: "${r}". Defaulting to "info".`),r="info");const o=`flex pl-[20px] !static items-center alert alert-${r} ${t||""}`.trim();return R.jsxs("div",{className:o,role:"alert",children:[R.jsx("span",{className:"!static "+i(r)}),R.jsx("div",{className:"ml-5",children:n})]})},rn=({variant:r,children:n,onClick:t})=>{const e=`label label-${r}`,i=t?{tabIndex:0,role:"button","aria-pressed":!1}:{};return R.jsx("span",{className:e,onClick:t,...i,style:{cursor:t?"pointer":void 0},children:n})},nn=r=>{const{label:n,isChecked:t=!1,id:e="radio1",onChange:i,name:o}=r;return R.jsx("div",{className:"radio",children:R.jsxs("label",{htmlFor:e,children:[R.jsx("input",{type:"radio",name:o,id:e,checked:t,onChange:l=>i(l.target.checked)}),n]})})};function on(r,n){ee.useEffect(()=>{if(!r)return;const t=setInterval(()=>{n()},r);return()=>clearInterval(t)},[r])}const sn=()=>R.jsxs("div",{children:[R.jsx(ft,{items:[{title:"Дополнения",active:!0},{title:"Название плагина",href:"#Название плагина"}]}),R.jsx(Be,{onChange:()=>{},items:[{id:0,title:"5 сек"},{id:1,title:"10 сек"},{id:2,title:"20 сек"}],children:R.jsx(Ne,{children:"Hello"})}),R.jsx(Be,{onChange:()=>{},items:[{id:0,title:"5 сек"},{id:1,title:"10 сек"},{id:2,title:"20 сек"}],children:R.jsx(Ne,{children:"Hello"})})]});U.Alert=tn,U.Breadcrumb=ft,U.Button=Ne,U.Checkbox=Qr,U.Dropdown=rt,U.DropdownSelect=Jr,U.FloatModal=Yr,U.GroupButtonContainer=Be,U.HelpText=Br,U.Input=hr,U.Label=rn,U.Modal=pr,U.Pagination=Yt,U.Radio=nn,U.ReloadButton=Bt,U.SampleComp=sn,U.Tab=fr,U.Table=Ur,U.TableToolbar=Zr,U.Tabs=dr,U.Tbody=Xr,U.Td=$r,U.TextArea=en,U.Th=qr,U.Thead=Vr,U.ToolbarContainer=ur,U.Tr=Gr,U.useIntervalLoader=on,Object.defineProperty(U,Symbol.toStringTag,{value:"Module"})}));
|