@cyber-harbour/ui 1.0.33 → 1.0.34
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.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/Core/RowActionsMenu/RowActionsMenu.tsx +2 -0
package/dist/index.js
CHANGED
|
@@ -541,7 +541,7 @@
|
|
|
541
541
|
cursor: not-allowed;
|
|
542
542
|
}
|
|
543
543
|
`}}
|
|
544
|
-
`;var Y7=t(({size:e="small",disabled:o,className:s,positions:l=["bottom"],align:c="end",items:a})=>{let x=br.useRef(null),{isOpen:u,closeMenu:b,toggleMenu:p}=po(),C=W1.useTheme();return jsxRuntime.jsx(reactTinyPopover.Popover,{padding:C.contextMenu.padding,isOpen:u,positions:l,align:c,onClickOutside:b,content:jsxRuntime.jsx(w0,{children:a.map(({label:k,onClick:P,color:w},z)=>jsxRuntime.jsx(Be,{variant:"empty",color:w,fullWidth:true,size:e,onClick:()=>{P(),b();},children:k},`row-action-${z}`))}),containerStyle:{backgroundColor:C.colors.background,border:`1px solid ${C.colors.stroke.light}`,boxShadow:"0px 0px 10px 0px rgba(0, 0, 0, 0.25)",borderRadius:"5px",zIndex:"9999"},children:jsxRuntime.jsx(y0,{ref:x,onClick:p,$disabled:o,$size:e,className:s,type:"button",disabled:o,children:jsxRuntime.jsx(te,{width:C.rowActionsMenu.icon.size,height:C.rowActionsMenu.icon.size})})})},"RowActionsMenu"),y0=W1.styled.button`
|
|
544
|
+
`;var Y7=t(({size:e="small",disabled:o,className:s,positions:l=["bottom"],align:c="end",items:a})=>{let x=br.useRef(null),{isOpen:u,closeMenu:b,toggleMenu:p}=po(),C=W1.useTheme();return jsxRuntime.jsx(reactTinyPopover.Popover,{padding:C.contextMenu.padding,isOpen:u,positions:l,align:c,onClickOutside:b,content:jsxRuntime.jsx(w0,{children:a.map(({label:k,onClick:P,color:w},z)=>jsxRuntime.jsx(Be,{variant:"empty",color:w,fullWidth:true,size:e,py:10,px:5,onClick:()=>{P(),b();},children:k},`row-action-${z}`))}),containerStyle:{backgroundColor:C.colors.background,border:`1px solid ${C.colors.stroke.light}`,boxShadow:"0px 0px 10px 0px rgba(0, 0, 0, 0.25)",borderRadius:"5px",zIndex:"9999"},children:jsxRuntime.jsx(y0,{ref:x,onClick:p,$disabled:o,$size:e,className:s,type:"button",disabled:o,children:jsxRuntime.jsx(te,{width:C.rowActionsMenu.icon.size,height:C.rowActionsMenu.icon.size})})})},"RowActionsMenu"),y0=W1.styled.button`
|
|
545
545
|
${({$size:e,$disabled:o,theme:s})=>{let l=R(s,e);return `
|
|
546
546
|
background: ${s.rowActionsMenu.button.default.background};
|
|
547
547
|
color: ${s.rowActionsMenu.button.default.text};
|