@zimyo/ui 1.6.4 → 1.7.0

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
- "use strict";var e=require("react/jsx-runtime"),r=require("@mui/material"),t=require("@mui/material/CardContent"),n=require("@mui/material/CardMedia"),i=function(){return i=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e},i.apply(this,arguments)};function o(e,r,t){if(t||2===arguments.length)for(var n,i=0,o=r.length;i<o;i++)!n&&i in r||(n||(n=Array.prototype.slice.call(r,0,i)),n[i]=r[i]);return e.concat(n||Array.prototype.slice.call(r))}"function"==typeof SuppressedError&&SuppressedError;var a=function(r){var n=r.children,i=r.sx;return e.jsx(t,{sx:i,children:n})},l=Object.assign(function(t){var n,o=t.children,a=t.sx,l=void 0===a?{}:a,c=t.elevation,d=void 0===c?1:c,s=t.variant,u=void 0===s?"elevated":s,p=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]])}return t}(t,["children","sx","elevation","variant"]),v=r.useTheme();return e.jsx(r.Card,i({elevation:"elevated"===u?d:0,variant:"outlined"===u?"outlined":"elevation",sx:i({borderRadius:(null===(n=v.radius)||void 0===n?void 0:n.sm)||8,border:"bordered"===u?"1px solid ".concat(v.palette.divider):"none",overflow:"hidden",backgroundColor:v.palette.background.paper},l)},p,{children:o}))},{Header:function(t){var n=t.title,i=t.subtitle,o=t.action;return e.jsx(r.CardHeader,{title:"string"==typeof n?e.jsx(r.Typography,{variant:"h6",fontWeight:600,children:n}):n,subheader:"string"==typeof i?e.jsx(r.Typography,{variant:"body2",color:"text.secondary",children:i}):i,action:o})},Content:a,Body:a,Actions:function(t){var n=t.children,i=t.sx;return e.jsx(r.CardActions,{sx:i,children:n})},Image:function(r){var t=r.src,i=r.height,o=void 0===i?160:i,a=r.alt,l=void 0===a?"card image":a;return e.jsx(n,{component:"img",height:o,image:t,alt:l})},Skeleton:function(t){var n=t.lines,i=void 0===n?3:n;return e.jsxs(r.Box,{p:2,children:[e.jsx(r.Skeleton,{variant:"rectangular",height:140}),o([],Array(i),!0).map(function(t,n){return e.jsx(r.Skeleton,{variant:"text",height:20,sx:{mt:1}},n)})]})}});module.exports=l;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("@mui/material"),t=require("@mui/material/CardContent"),n=require("@mui/material/CardMedia"),i=function(){return i=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e},i.apply(this,arguments)};function o(e,r,t){if(t||2===arguments.length)for(var n,i=0,o=r.length;i<o;i++)!n&&i in r||(n||(n=Array.prototype.slice.call(r,0,i)),n[i]=r[i]);return e.concat(n||Array.prototype.slice.call(r))}"function"==typeof SuppressedError&&SuppressedError;var a=function(r){var n=r.children,i=r.sx;return e.jsx(t,{sx:i,children:n})},l=Object.assign(function(t){var n,o=t.children,a=t.sx,l=void 0===a?{}:a,c=t.elevation,d=void 0===c?1:c,s=t.variant,u=void 0===s?"elevated":s,p=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]])}return t}(t,["children","sx","elevation","variant"]),v=r.useTheme();return e.jsx(r.Card,i({elevation:"elevated"===u?d:0,variant:"outlined"===u?"outlined":"elevation",sx:i({borderRadius:(null===(n=v.radius)||void 0===n?void 0:n.sm)||8,border:"bordered"===u?"1px solid ".concat(v.palette.divider):"none",overflow:"hidden",backgroundColor:v.palette.background.paper},l)},p,{children:o}))},{Header:function(t){var n=t.title,i=t.subtitle,o=t.action;return e.jsx(r.CardHeader,{title:"string"==typeof n?e.jsx(r.Typography,{variant:"h6",fontWeight:600,children:n}):n,subheader:"string"==typeof i?e.jsx(r.Typography,{variant:"body2",color:"text.secondary",children:i}):i,action:o})},Content:a,Body:a,Actions:function(t){var n=t.children,i=t.sx;return e.jsx(r.CardActions,{sx:i,children:n})},Image:function(r){var t=r.src,i=r.height,o=void 0===i?160:i,a=r.alt,l=void 0===a?"card image":a;return e.jsx(n,{component:"img",height:o,image:t,alt:l})},Skeleton:function(t){var n=t.lines,i=void 0===n?3:n;return e.jsxs(r.Box,{p:2,children:[e.jsx(r.Skeleton,{variant:"rectangular",height:140}),o([],Array(i),!0).map(function(t,n){return e.jsx(r.Skeleton,{variant:"text",height:20,sx:{mt:1}},n)})]})}});exports.default=l;