@zydon/common-csr 2.1.18 → 2.1.20

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.
@@ -3,13 +3,13 @@ import g from '@mui/material/Stack';
3
3
  import F from '@zydon/common/components/IconButton';
4
4
  import L from '@zydon/common/components/Portal';
5
5
  import { memo } from 'react';
6
- import x from '@mui/material/Link';
6
+ import u from '@mui/material/Link';
7
7
  import d from '@mui/material/Typography';
8
8
  import S from '@zydon/common/components/Icon';
9
- import h from '@mui/material/Breadcrumbs';
9
+ import y from '@mui/material/Breadcrumbs';
10
10
  import { styled, alpha } from '@mui/material/styles';
11
11
  import { jsxs, jsx } from 'react/jsx-runtime';
12
12
 
13
- var m=styled(h)(({theme:o})=>({"& .MuiBreadcrumbs-separator":{marginLeft:o.spacing(-1),marginRight:o.spacing(-1)}}));var b=({title:o,breadcrumbs:r})=>jsxs(g,{children:[jsx(d,{variant:"subtitle1",fontSize:"subtitle1.fontSize",color:"text.primary",children:o}),r&&jsx(m,{"aria-label":"breadcrumb",separator:jsx(S,{icon:"CHEVRON_RIGHT",width:18,color:"text.secondary"}),children:r.map((t,a)=>a===r.length-1||t.path===""?jsx(d,{variant:"caption",fontWeight:400,color:t.path===""?"text.disabled":void 0,children:t.label},t.label):jsx(x,{href:t.path,underline:"hover",variant:"caption",fontWeight:400,color:"text.secondary",children:t.label},t.label))})]}),l=memo(b);var s=styled(g)(({theme:o})=>({width:"100%",height:"fit-content",minHeight:71,flexDirection:"row",alignItems:"center",padding:o.spacing(0,3),gap:o.spacing(2),borderBottom:`1px solid ${o.palette.divider}`,zIndex:9,backgroundColor:o.palette.background.paper}));var P=({...o})=>jsx(s,{position:"sticky",top:0,...o,children:jsx(g,{flexGrow:1,width:"100%",id:n})}),B=P;var f=styled(g)(({theme:o})=>({flexDirection:"row",alignItems:"center",gap:o.spacing(1),color:o.palette.text.secondary,[o.breakpoints.up("md")]:{gap:o.spacing(3)},[o.breakpoints.down("md")]:{"& button, & a":{textIndent:"-9999em",fontSize:0,minWidth:36,maxWidth:36,height:36,width:36,overflow:"hidden","& .MuiButton-icon":{margin:0}},"& a":{border:`1px solid ${alpha(o.palette.grey[500],.2)}`}}}));var n="CONFIGS_HEADER",W=({children:o,backPath:r,title:t,breadcrumbs:a,actions:p})=>jsx(L,{container:n,children:jsxs(g,{direction:"row",alignItems:"center",justifyContent:"space-between",gap:1,children:[jsxs(g,{direction:"row",alignItems:"center",gap:1,children:[r&&jsx(F,{component:Link,to:r,label:"Voltar",icon:"CHEVRON_LEFT",color:"text.primary",size:"small"}),jsx(l,{title:t,breadcrumbs:a}),o]}),p&&jsx(f,{children:p})]})}),fo=W;
13
+ var m=styled(y)(({theme:o})=>({"& .MuiBreadcrumbs-separator":{marginLeft:o.spacing(-1),marginRight:o.spacing(-1)}}));var b=({title:o,breadcrumbs:r})=>jsxs(g,{children:[jsx(d,{variant:"subtitle1",fontSize:"subtitle1.fontSize",color:"text.primary",children:o}),r&&jsx(m,{"aria-label":"breadcrumb",separator:jsx(S,{icon:"CHEVRON_RIGHT",width:18,color:"text.secondary"}),children:r.map((t,a)=>a===r.length-1||t.path===""?jsx(d,{variant:"caption",fontWeight:400,color:t.path===""?"text.disabled":void 0,children:t.label},t.label):jsx(u,{href:t.path,underline:"hover",variant:"caption",fontWeight:400,color:"text.secondary",children:t.label},t.label))})]}),l=memo(b);var s=styled(g)(({theme:o})=>({width:"100%",height:"fit-content",minHeight:71,flexDirection:"row",alignItems:"center",padding:o.spacing(0,3),gap:o.spacing(2),borderBottom:`1px solid ${o.palette.divider}`,zIndex:9,backgroundColor:o.palette.background.paper}));var P=({...o})=>jsx(s,{position:"sticky",top:"var(--sticky-header-height, 64px)",...o,children:jsx(g,{flexGrow:1,width:"100%",id:n})}),B=P;var f=styled(g)(({theme:o})=>({flexDirection:"row",alignItems:"center",gap:o.spacing(1),color:o.palette.text.secondary,[o.breakpoints.up("md")]:{gap:o.spacing(3)},[o.breakpoints.down("md")]:{"& button, & a":{textIndent:"-9999em",fontSize:0,minWidth:36,maxWidth:36,height:36,width:36,overflow:"hidden","& .MuiButton-icon":{margin:0}},"& a":{border:`1px solid ${alpha(o.palette.grey[500],.2)}`}}}));var n="CONFIGS_HEADER",W=({children:o,backPath:r,title:t,breadcrumbs:a,actions:p})=>jsx(L,{container:n,children:jsxs(g,{direction:"row",alignItems:"center",justifyContent:"space-between",gap:1,children:[jsxs(g,{direction:"row",alignItems:"center",gap:1,children:[r&&jsx(F,{component:Link,to:r,label:"Voltar",icon:"CHEVRON_LEFT",color:"text.primary",size:"small"}),jsx(l,{title:t,breadcrumbs:a}),o]}),p&&jsx(f,{children:p})]})}),fo=W;
14
14
 
15
15
  export { n as CONFIGS_HEADER, B as Header, fo as default };
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.1.18",
2
+ "version": "2.1.20",
3
3
  "name": "@zydon/common-csr",
4
4
  "description": "Zydon common resources for React projects (only Client-Side Rendering (CSR))",
5
5
  "license": "MIT",
@@ -62,10 +62,10 @@
62
62
  },
63
63
  "devDependencies": {
64
64
  "@emotion/react": "^11.14.0",
65
- "@emotion/styled": "^11.14.0",
65
+ "@emotion/styled": "^11.14.1",
66
66
  "@mui/material": "^5.18.0",
67
67
  "@mui/system": "^5.18.0",
68
- "@mui/x-data-grid-premium": "^7.29.12",
68
+ "@mui/x-data-grid-premium": "7.22.0",
69
69
  "@mui/x-license": "^7.29.1",
70
70
  "@testing-library/dom": "10.0.0",
71
71
  "@testing-library/jest-dom": "^6.6.3",
@@ -79,7 +79,7 @@
79
79
  "@types/react-lazy-load-image-component": "^1.6.4",
80
80
  "@typescript-eslint/eslint-plugin": "^6.4.1",
81
81
  "@typescript-eslint/parser": "^6.4.1",
82
- "@zydon/common": "2.7.82",
82
+ "@zydon/common": "2.7.83",
83
83
  "eslint": "^8.47.0",
84
84
  "eslint-config-prettier": "^9.0.0",
85
85
  "eslint-plugin-jsx-a11y": "^6.10.2",
@@ -121,9 +121,9 @@
121
121
  },
122
122
  "peerDependencies": {
123
123
  "@emotion/react": "^11.14.0",
124
- "@emotion/styled": "^11.14.0",
124
+ "@emotion/styled": "^11.14.1",
125
125
  "@mui/material": "^5.18.0",
126
- "@mui/x-data-grid-premium": "^7.29.12",
126
+ "@mui/x-data-grid-premium": "7.22.0",
127
127
  "@zydon/common": ">=2.x",
128
128
  "react": "^18.3.1",
129
129
  "react-dom": "^18.3.1",