it-data-nexus-ui-library 2.6.1 → 2.6.2

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 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import{Button as o}from"@mui/material";import{useTheme as i,darken as r,alpha as t}from"@mui/material/styles";import{colours as a}from"../../theme/tokens.mjs";const n={small:{height:32,px:"14px",fontSize:"0.8125rem"},medium:{height:40,px:"20px",fontSize:"0.9375rem"},large:{height:48,px:"28px",fontSize:"1rem"}},m=({size:m="medium",children:s,sx:l,...d})=>{const h="dark"===i().palette.mode,c=h?a.jadeLight:a.jadeDark,p=h?r(a.jadeLight,.3):a.jadeLight,x=h?a.black:a.white,{height:u,px:g,fontSize:f}=n[m];return e(o,{variant:"contained",size:m,sx:[{borderRadius:999,minHeight:u,paddingInline:g,fontSize:f,fontFamily:"inherit",backgroundColor:c,color:x,transition:"color 160ms ease, background-color 160ms ease, box-shadow 160ms ease","&:hover":{backgroundColor:p,color:x,boxShadow:`0 2px 6px ${t(c,.25)}`},"&:active":{boxShadow:`0 1px 3px ${t(c,.15)}`},"&:focus-visible":{outline:`2px solid ${c}`,outlineOffset:3},"&.Mui-disabled":{backgroundColor:t(c,.6),color:h?t(a.black,1):t(a.white,.5),pointerEvents:"auto",cursor:"not-allowed"}},...Array.isArray(l)?l:l?[l]:[]],...d,children:s})};export{m as PrimaryButton};
1
+ import{jsx as e}from"react/jsx-runtime";import{Button as o}from"@mui/material";import{useTheme as i,darken as r,alpha as t}from"@mui/material/styles";import{colours as a}from"../../theme/tokens.mjs";const n={small:{height:28,px:"14px",fontSize:"0.7rem"},medium:{height:40,px:"20px",fontSize:"0.9375rem"},large:{height:48,px:"28px",fontSize:"1rem"}},m=({size:m="medium",children:s,sx:l,...d})=>{const h="dark"===i().palette.mode,c=h?a.jadeLight:a.jadeDark,p=h?r(a.jadeLight,.3):a.jadeLight,x=h?a.black:a.white,{height:u,px:g,fontSize:f}=n[m];return e(o,{variant:"contained",size:m,sx:[{borderRadius:999,minHeight:u,paddingInline:g,fontSize:f,fontFamily:"inherit",backgroundColor:c,color:x,transition:"color 160ms ease, background-color 160ms ease, box-shadow 160ms ease","&:hover":{backgroundColor:p,color:x,boxShadow:`0 2px 6px ${t(c,.25)}`},"&:active":{boxShadow:`0 1px 3px ${t(c,.15)}`},"&:focus-visible":{outline:`2px solid ${c}`,outlineOffset:3},"&.Mui-disabled":{backgroundColor:t(c,.6),color:h?t(a.black,1):t(a.white,.5),pointerEvents:"auto",cursor:"not-allowed"}},...Array.isArray(l)?l:l?[l]:[]],...d,children:s})};export{m as PrimaryButton};
@@ -1 +1 @@
1
- const o="2.6.1";export{o as SAGE_NEXUS_UI_VERSION};
1
+ const o="2.6.2";export{o as SAGE_NEXUS_UI_VERSION};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "it-data-nexus-ui-library",
3
- "version": "2.6.1",
3
+ "version": "2.6.2",
4
4
  "description": "Nexus core components",
5
5
  "license": "ISC",
6
6
  "author": "emsmart-sage",