@zydon/common-csr 2.1.19 → 2.1.21

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.19",
2
+ "version": "2.1.21",
3
3
  "name": "@zydon/common-csr",
4
4
  "description": "Zydon common resources for React projects (only Client-Side Rendering (CSR))",
5
5
  "license": "MIT",
@@ -61,12 +61,11 @@
61
61
  "./styles.css": "./dist/index.css"
62
62
  },
63
63
  "devDependencies": {
64
- "@emotion/react": "^11.14.0",
65
- "@emotion/styled": "^11.14.1",
66
- "@mui/material": "^5.18.0",
67
- "@mui/system": "^5.18.0",
68
- "@mui/x-data-grid-premium": "7.22.0",
69
- "@mui/x-license": "^7.29.1",
64
+ "@emotion/react": "^11.13.3",
65
+ "@emotion/styled": "^11.13.0",
66
+ "@mui/material": "^5.16.7",
67
+ "@mui/x-data-grid-premium": "^7.14.0",
68
+ "@mui/x-license": "^7.14.0",
70
69
  "@testing-library/dom": "10.0.0",
71
70
  "@testing-library/jest-dom": "^6.6.3",
72
71
  "@testing-library/react": "^16.1.0",
@@ -79,7 +78,7 @@
79
78
  "@types/react-lazy-load-image-component": "^1.6.4",
80
79
  "@typescript-eslint/eslint-plugin": "^6.4.1",
81
80
  "@typescript-eslint/parser": "^6.4.1",
82
- "@zydon/common": "2.7.83",
81
+ "@zydon/common": "2.7.85",
83
82
  "eslint": "^8.47.0",
84
83
  "eslint-config-prettier": "^9.0.0",
85
84
  "eslint-plugin-jsx-a11y": "^6.10.2",
@@ -120,10 +119,10 @@
120
119
  "react-lazy-load-image-component": "^1.6.2"
121
120
  },
122
121
  "peerDependencies": {
123
- "@emotion/react": "^11.14.0",
124
- "@emotion/styled": "^11.14.1",
125
- "@mui/material": "^5.18.0",
126
- "@mui/x-data-grid-premium": "7.22.0",
122
+ "@emotion/react": "^11.13.3",
123
+ "@emotion/styled": "^11.13.0",
124
+ "@mui/material": "^5.16.7",
125
+ "@mui/x-data-grid-premium": "^7.14.0",
127
126
  "@zydon/common": ">=2.x",
128
127
  "react": "^18.3.1",
129
128
  "react-dom": "^18.3.1",