@zydon/common 2.2.73 → 2.2.75

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,10 +1,11 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
+ import { IconButtonProps } from '@mui/material/IconButton';
3
4
 
4
- interface MoreMenuProps {
5
+ interface MoreMenuProps extends IconButtonProps {
5
6
  actions: ReactNode;
6
7
  }
7
8
 
8
- declare const MoreMenu: ({ actions }: MoreMenuProps) => react_jsx_runtime.JSX.Element;
9
+ declare const MoreMenu: ({ actions, ...other }: MoreMenuProps) => react_jsx_runtime.JSX.Element;
9
10
 
10
11
  export { MoreMenu as default };
@@ -2,10 +2,10 @@ import { a as a$2 } from '../../chunk-HOMGLSVS.js';
2
2
  import { a as a$1 } from '../../chunk-65BFOPWC.js';
3
3
  import '../../chunk-MJDYB33S.js';
4
4
  import { a } from '../../chunk-ORYAES3Q.js';
5
- import u from '@mui/material/IconButton';
6
- import c from '@mui/material/Stack';
5
+ import c from '@mui/material/IconButton';
6
+ import M from '@mui/material/Stack';
7
7
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
8
8
 
9
- var M=({actions:p})=>{let{open:r,onClose:m,onOpen:i}=a();return jsxs(Fragment,{children:[jsx(u,{color:r?"inherit":"default",onClick:i,children:jsx(a$1,{icon:"MORE_BOLD"})}),jsx(a$2,{open:r,onClose:m,arrow:"right-top",children:jsx(c,{component:"ul",gap:.5,minWidth:160,children:p})})]})},k=M;
9
+ var f=({actions:p,...m})=>{let{open:r,onClose:i,onOpen:u}=a();return jsxs(Fragment,{children:[jsx(c,{...m,color:r?"inherit":"default",onClick:u,children:jsx(a$1,{icon:"MORE_BOLD"})}),jsx(a$2,{open:r,onClose:i,arrow:"right-top",children:jsx(M,{component:"ul",gap:.5,minWidth:160,children:p})})]})},v=f;
10
10
 
11
- export { k as default };
11
+ export { v as default };
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ElementType } from 'react';
3
3
 
4
- declare const loadable: (Component: ElementType) => (props: any) => react_jsx_runtime.JSX.Element;
4
+ declare const loadable: (LazyComponent: ElementType) => (props: Record<string, unknown>) => react_jsx_runtime.JSX.Element;
5
5
 
6
6
  export { loadable as default };
@@ -1,7 +1,7 @@
1
- import { a as a$1 } from '../chunk-FK7DDO5L.js';
2
- import { Suspense } from 'react';
1
+ import { a } from '../chunk-FK7DDO5L.js';
2
+ import { Suspense, useEffect, Component } from 'react';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
 
5
- var a=r=>function(l){return jsx(Suspense,{fallback:jsx(a$1,{}),children:jsx(r,{...l})})},m=a;
5
+ var t=class extends Component{constructor(r){super(r),this.state={hasError:!1};}static getDerivedStateFromError(r){return {hasError:!0}}componentDidCatch(r,e){console.error("Error caught in error boundary:",r,e);}render(){return this.state.hasError?this.props.fallback||jsx("h1",{children:"Something went wrong."}):this.props.children}},s=t;var i=()=>(useEffect(()=>{window.location.reload();},[]),null),p=a$1=>function(e){return jsx(s,{fallback:jsx(i,{}),children:jsx(Suspense,{fallback:jsx(a,{}),children:jsx(a$1,{...e})})})},R=p;
6
6
 
7
- export { m as default };
7
+ export { R as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zydon/common",
3
- "version": "2.2.73",
3
+ "version": "2.2.75",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",