@gyramais/gyra-design 0.1.13 → 0.1.14

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.
@@ -33,5 +33,5 @@ object-assign
33
33
  * This source code is licensed under the MIT license found in the
34
34
  * LICENSE file in the root directory of this source tree.
35
35
  */
36
- function(e,t){const r=un(e,t);return"production"!==process.env.NODE_ENV?(...t)=>{const n="string"==typeof e?`"${e}"`:"component";return 0===t.length?console.error([`MUI: Seems like you called \`styled(${n})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n")):t.some((e=>void 0===e))&&console.error(`MUI: the styled(${n})(...args) API requires all its args to be defined.`),r(...t)}:r}(e,J({shouldForwardProp:h,label:y},p)),v=(n,...o)=>{const a=o?o.map((e=>{if("function"==typeof e&&e.__emotion_real!==e)return n=>No({styledArg:e,props:n,defaultTheme:r,themeId:t});if(Z(e)){let t,r=e;return e&&e.variants&&(t=e.variants,delete r.variants,r=r=>{let n=e;return wo(r,Oo(t),t).forEach((e=>{n=ee(n,e)})),n}),r}return e})):[];let l=n;if(Z(n)){let e;n&&n.variants&&(e=n.variants,delete l.variants,l=t=>{let r=n;return wo(t,Oo(e),e).forEach((e=>{r=ee(r,e)})),r})}else"function"==typeof n&&n.__emotion_real!==n&&(l=e=>No({styledArg:n,props:e,defaultTheme:r,themeId:t}));s&&f&&a.push((e=>{const n=ko(J({},e,{defaultTheme:r,themeId:t})),o=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(s,n);if(o){const t={};return Object.entries(o).forEach((([r,o])=>{t[r]="function"==typeof o?o(J({},e,{theme:n})):o})),f(e,t)}return null})),s&&!d&&a.push((e=>{const n=ko(J({},e,{defaultTheme:r,themeId:t}));return((e,t,r,n)=>{var o;const i=null==r||null==(o=r.components)||null==(o=o[n])?void 0:o.variants;return wo(e,t,i)})(e,((e,t)=>{let r=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants),Oo(r)})(s,n),n,s)})),m||a.push(i);const u=a.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");l=[...n,...e],l.raw=[...n.raw,...e]}const p=g(l,...a);if("production"!==process.env.NODE_ENV){let t;s&&(t=`${s}${Me(c||"")}`),void 0===t&&(t=`Styled(${function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Re(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Ae.ForwardRef:return Ie(e,e.render,"ForwardRef");case Ae.Memo:return Ie(e,e.type,"memo");default:return}}}(e)})`),p.displayName=t}return e.muiName&&(p.muiName=e.muiName),p};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:ui,defaultTheme:li,rootShouldForwardProp:e=>Eo(e)&&"classes"!==e});function pi(e){return et("MuiSvgIcon",e)}!function(e,t,r="Mui"){const n={};t.forEach((t=>{n[t]=et(e,t,r)}))}("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const di=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],mi=e=>{const{color:t,fontSize:r,classes:n}=e;return function(e,t,r){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}({root:["root","inherit"!==t&&`color${Me(t)}`,`fontSize${Me(r)}`]},pi,n)},yi=fi("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${Me(r.color)}`],t[`fontSize${Me(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,i,a,s,c,l,u,f,p,d,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(c=s.pxToRem)?void 0:c.call(s,24))||"1.5rem",large:(null==(l=e.typography)||null==(u=l.pxToRem)?void 0:u.call(l,35))||"2.1875rem"}[t.fontSize],color:null!=(f=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?f:{action:null==(d=(e.vars||e).palette)||null==(d=d.action)?void 0:d.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),hi=e.forwardRef((function(t,r){const n=function({props:e,name:t}){return Co({props:e,name:t,defaultTheme:li,themeId:ui})}({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:l="svg",fontSize:u="medium",htmlColor:f,inheritViewBox:p=!1,titleAccess:d,viewBox:m="0 0 24 24"}=n,y=tt(n,di),h=e.isValidElement(o)&&"svg"===o.type,g=J({},n,{color:a,component:l,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:m,hasSvgAsChild:h}),v={};p||(v.viewBox=m);const b=mi(g);return s(yi,J({as:l,className:nt(b.root,i),focusable:"false",color:f,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:r},v,y,h&&o.props,{ownerState:g,children:[h?o.props.children:o,d?c("title",{children:d}):null]}))}));"production"!==process.env.NODE_ENV&&(hi.propTypes={children:ke.node,classes:ke.object,className:ke.string,color:ke.oneOfType([ke.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),ke.string]),component:ke.elementType,fontSize:ke.oneOfType([ke.oneOf(["inherit","large","medium","small"]),ke.string]),htmlColor:ke.string,inheritViewBox:ke.bool,shapeRendering:ke.string,sx:ke.oneOfType([ke.arrayOf(ke.oneOfType([ke.func,ke.object,ke.bool])),ke.func,ke.object]),titleAccess:ke.string,viewBox:ke.string}),hi.muiName="SvgIcon";const gi={configure:e=>{"production"!==process.env.NODE_ENV&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join("\n")),Ze.configure(e)}};var vi,bi=Object.freeze({__proto__:null,capitalize:Me,createChainedFunction:function(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))},createSvgIcon:function(t,r){function n(e,n){return c(hi,J({"data-testid":`${r}Icon`,ref:n},e,{children:t}))}return"production"!==process.env.NODE_ENV&&(n.displayName=`${r}Icon`),n.muiName=hi.muiName,e.memo(e.forwardRef(n))},debounce:function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n},deprecatedPropType:function(e,t){return"production"===process.env.NODE_ENV?()=>null:(e,r,n,o,i)=>{const a=n||"<<anonymous>>",s=i||r;return void 0!==e[r]?new Error(`The ${o} \`${s}\` of \`${a}\` is deprecated. ${t}`):null}},isMuiElement:function(t,r){var n,o;return e.isValidElement(t)&&-1!==r.indexOf(null!=(n=t.type.muiName)?n:null==(o=t.type)||null==(o=o._payload)||null==(o=o.value)?void 0:o.muiName)},ownerDocument:De,ownerWindow:function(e){return De(e).defaultView||window},requirePropFactory:function(e,t){if("production"===process.env.NODE_ENV)return()=>null;const r=t?J({},t.propTypes):null;return t=>(n,o,i,a,s,...c)=>{const l=s||o,u=null==r?void 0:r[l];if(u){const e=u(n,o,i,a,s,...c);if(e)return e}return void 0===n[o]||n[t]?null:new Error(`The prop \`${l}\` of \`${e}\` can only be used together with the \`${t}\` prop.`)}},setRef:Ve,unstable_ClassNameGenerator:gi,unstable_useEnhancedEffect:ze,unstable_useId:function(t){if(void 0!==Ue){const e=Ue();return null!=t?t:e}return function(t){const[r,n]=e.useState(t),o=t||r;return e.useEffect((()=>{null==r&&(Fe+=1,n(`mui-${Fe}`))}),[r]),o}(t)},unsupportedProp:function(e,t,r,n,o){if("production"===process.env.NODE_ENV)return null;const i=o||t;return void 0!==e[t]?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null},useControlled:function({controlled:t,default:r,name:n,state:o="value"}){const{current:i}=e.useRef(void 0!==t),[a,s]=e.useState(r),c=i?t:a;if("production"!==process.env.NODE_ENV){e.useEffect((()=>{i!==(void 0!==t)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${o} state of ${n} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join("\n"))}),[o,n,t]);const{current:a}=e.useRef(r);e.useEffect((()=>{i||a===r||console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join("\n"))}),[JSON.stringify(r)])}return[c,e.useCallback((e=>{i||s(e)}),[])]},useEventCallback:function(t){const r=e.useRef(t);return ze((()=>{r.current=t})),e.useRef(((...e)=>(0,r.current)(...e))).current},useForkRef:function(...t){return e.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{Ve(t,e)}))}),t)},useIsFocusVisible:function(){const t=e.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Ge,!0),t.addEventListener("mousedown",Ke,!0),t.addEventListener("pointerdown",Ke,!0),t.addEventListener("touchstart",Ke,!0),t.addEventListener("visibilitychange",qe,!0))}),[]),r=e.useRef(!1);return{isFocusVisibleRef:r,onFocus:function(e){return!!Ye(e)&&(r.current=!0,!0)},onBlur:function(){return!!r.current&&(Be=!0,window.clearTimeout(Le),Le=window.setTimeout((()=>{Be=!1}),100),r.current=!1,!0)},ref:t}}}),Oi=u(bi);var wi=Y;Object.defineProperty(K,"__esModule",{value:!0});var Ei=K.default=void 0,xi=wi((vi||(vi=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Oi}(X)),X)),Si=a;Ei=K.default=(0,xi.default)((0,Si.jsx)("path",{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"}),"ArrowForwardIos");var ki=function(e){var r=e.id,n=e.className,o=e.collapsed,i=void 0!==o&&o,a=e.onCollapse;return t.createElement(Ei,{id:r,className:d("gyramais-collapse-icon",i?"collapsed":"",n),onClick:function(){return null==a?void 0:a(!i)}})},_i=function(e){var r=e.id,n=e.className,o=e.columns,i=void 0===o?1:o,a=e.gap,s=void 0===a?0:a,c=e.align,l=void 0===c?"start":c,u=e.children;return t.createElement("div",{id:r,className:d("gyramais-row","gyramais-row-columns-".concat(i),"gyramais-row-align-".concat(l),"gyramais-row-mobile-gap-".concat("number"==typeof s?s:"object"==typeof s&&!Array.isArray(s)&&s.mobile),"object"==typeof s&&!Array.isArray(s)&&s.tablet?"gyramais-row-tablet-gap-".concat(s.tablet):"","object"==typeof s&&!Array.isArray(s)&&s.desktop?"gyramais-row-desktop-gap-".concat(s.desktop):"","object"==typeof s&&!Array.isArray(s)&&s.wide?"gyramais-row-wide-gap-".concat(s.wide):"",n)},u)},Ni=function(e){var r=e.id,n=e.className,o=e.span,i=void 0===o?1:o,a=e.onClick,s=e.children;return t.createElement("div",{id:r,className:d("gyramais-col","gyramais-col-mobile-span-".concat("number"==typeof i?i:"object"==typeof i&&!Array.isArray(i)&&i.mobile),"object"==typeof i&&!Array.isArray(i)&&i.tablet?"gyramais-col-tablet-span-".concat(i.tablet):"","object"==typeof i&&!Array.isArray(i)&&i.desktop?"gyramais-col-desktop-span-".concat(i.desktop):"","object"==typeof i&&!Array.isArray(i)&&i.wide?"gyramais-col-wide-span-".concat(i.wide):"",n),onClick:a},s)},$i=function(e){var r=e.id,n=e.type,a=void 0===n?"shadow":n,s=e.className,c=e.title,l=e.disabled,u=e.loading,f=e.collapsible,p=e.defaultCollapsed,y=e.onClick,h=e.headerContent,g=e.children,v=o(f&&p),b=v[0],O=v[1],w=i((function(){return!!(c||f||h)}),[c,f,h]);return t.createElement("div",{id:r,className:d("gyramais-card",a?"gyramais-card-".concat(a):"",u?"gyramais-card-loading":"",l?"gyramais-card-disabled":"",s),onClick:l?function(){}:y},(c||f||h)&&t.createElement("div",{className:"gyramais-card-header"},t.createElement(_i,{columns:2,align:"center"},(c||f)&&t.createElement(Ni,{span:h?1:2,className:"gyramais-card-header-left ".concat(f?"with-collapse":""),onClick:function(){l||f&&O(!b)}},c&&t.createElement("h5",{className:"gyramais-card-header-title"},c),f&&t.createElement(ki,{collapsed:b})),h&&t.createElement(Ni,{span:c||f?1:2,className:"gyramais-card-header-right"},h))),t.createElement(G,{collapsed:b},t.createElement("div",{className:"gyramais-card-content ".concat(g?"with-content":""," ").concat(w?"with-title":"")},u&&t.createElement("div",{className:"gyramais-card-loading"},t.createElement(m,{size:40})),g)))};export{$i as Card};
36
+ function(e,t){const r=un(e,t);return"production"!==process.env.NODE_ENV?(...t)=>{const n="string"==typeof e?`"${e}"`:"component";return 0===t.length?console.error([`MUI: Seems like you called \`styled(${n})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n")):t.some((e=>void 0===e))&&console.error(`MUI: the styled(${n})(...args) API requires all its args to be defined.`),r(...t)}:r}(e,J({shouldForwardProp:h,label:y},p)),v=(n,...o)=>{const a=o?o.map((e=>{if("function"==typeof e&&e.__emotion_real!==e)return n=>No({styledArg:e,props:n,defaultTheme:r,themeId:t});if(Z(e)){let t,r=e;return e&&e.variants&&(t=e.variants,delete r.variants,r=r=>{let n=e;return wo(r,Oo(t),t).forEach((e=>{n=ee(n,e)})),n}),r}return e})):[];let l=n;if(Z(n)){let e;n&&n.variants&&(e=n.variants,delete l.variants,l=t=>{let r=n;return wo(t,Oo(e),e).forEach((e=>{r=ee(r,e)})),r})}else"function"==typeof n&&n.__emotion_real!==n&&(l=e=>No({styledArg:n,props:e,defaultTheme:r,themeId:t}));s&&f&&a.push((e=>{const n=ko(J({},e,{defaultTheme:r,themeId:t})),o=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(s,n);if(o){const t={};return Object.entries(o).forEach((([r,o])=>{t[r]="function"==typeof o?o(J({},e,{theme:n})):o})),f(e,t)}return null})),s&&!d&&a.push((e=>{const n=ko(J({},e,{defaultTheme:r,themeId:t}));return((e,t,r,n)=>{var o;const i=null==r||null==(o=r.components)||null==(o=o[n])?void 0:o.variants;return wo(e,t,i)})(e,((e,t)=>{let r=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants),Oo(r)})(s,n),n,s)})),m||a.push(i);const u=a.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");l=[...n,...e],l.raw=[...n.raw,...e]}const p=g(l,...a);if("production"!==process.env.NODE_ENV){let t;s&&(t=`${s}${Me(c||"")}`),void 0===t&&(t=`Styled(${function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Re(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Ae.ForwardRef:return Ie(e,e.render,"ForwardRef");case Ae.Memo:return Ie(e,e.type,"memo");default:return}}}(e)})`),p.displayName=t}return e.muiName&&(p.muiName=e.muiName),p};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:ui,defaultTheme:li,rootShouldForwardProp:e=>Eo(e)&&"classes"!==e});function pi(e){return et("MuiSvgIcon",e)}!function(e,t,r="Mui"){const n={};t.forEach((t=>{n[t]=et(e,t,r)}))}("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const di=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],mi=e=>{const{color:t,fontSize:r,classes:n}=e;return function(e,t,r){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}({root:["root","inherit"!==t&&`color${Me(t)}`,`fontSize${Me(r)}`]},pi,n)},yi=fi("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${Me(r.color)}`],t[`fontSize${Me(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,i,a,s,c,l,u,f,p,d,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(c=s.pxToRem)?void 0:c.call(s,24))||"1.5rem",large:(null==(l=e.typography)||null==(u=l.pxToRem)?void 0:u.call(l,35))||"2.1875rem"}[t.fontSize],color:null!=(f=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?f:{action:null==(d=(e.vars||e).palette)||null==(d=d.action)?void 0:d.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),hi=e.forwardRef((function(t,r){const n=function({props:e,name:t}){return Co({props:e,name:t,defaultTheme:li,themeId:ui})}({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:l="svg",fontSize:u="medium",htmlColor:f,inheritViewBox:p=!1,titleAccess:d,viewBox:m="0 0 24 24"}=n,y=tt(n,di),h=e.isValidElement(o)&&"svg"===o.type,g=J({},n,{color:a,component:l,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:m,hasSvgAsChild:h}),v={};p||(v.viewBox=m);const b=mi(g);return s(yi,J({as:l,className:nt(b.root,i),focusable:"false",color:f,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:r},v,y,h&&o.props,{ownerState:g,children:[h?o.props.children:o,d?c("title",{children:d}):null]}))}));"production"!==process.env.NODE_ENV&&(hi.propTypes={children:ke.node,classes:ke.object,className:ke.string,color:ke.oneOfType([ke.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),ke.string]),component:ke.elementType,fontSize:ke.oneOfType([ke.oneOf(["inherit","large","medium","small"]),ke.string]),htmlColor:ke.string,inheritViewBox:ke.bool,shapeRendering:ke.string,sx:ke.oneOfType([ke.arrayOf(ke.oneOfType([ke.func,ke.object,ke.bool])),ke.func,ke.object]),titleAccess:ke.string,viewBox:ke.string}),hi.muiName="SvgIcon";const gi={configure:e=>{"production"!==process.env.NODE_ENV&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join("\n")),Ze.configure(e)}};var vi,bi=Object.freeze({__proto__:null,capitalize:Me,createChainedFunction:function(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))},createSvgIcon:function(t,r){function n(e,n){return c(hi,J({"data-testid":`${r}Icon`,ref:n},e,{children:t}))}return"production"!==process.env.NODE_ENV&&(n.displayName=`${r}Icon`),n.muiName=hi.muiName,e.memo(e.forwardRef(n))},debounce:function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n},deprecatedPropType:function(e,t){return"production"===process.env.NODE_ENV?()=>null:(e,r,n,o,i)=>{const a=n||"<<anonymous>>",s=i||r;return void 0!==e[r]?new Error(`The ${o} \`${s}\` of \`${a}\` is deprecated. ${t}`):null}},isMuiElement:function(t,r){var n,o;return e.isValidElement(t)&&-1!==r.indexOf(null!=(n=t.type.muiName)?n:null==(o=t.type)||null==(o=o._payload)||null==(o=o.value)?void 0:o.muiName)},ownerDocument:De,ownerWindow:function(e){return De(e).defaultView||window},requirePropFactory:function(e,t){if("production"===process.env.NODE_ENV)return()=>null;const r=t?J({},t.propTypes):null;return t=>(n,o,i,a,s,...c)=>{const l=s||o,u=null==r?void 0:r[l];if(u){const e=u(n,o,i,a,s,...c);if(e)return e}return void 0===n[o]||n[t]?null:new Error(`The prop \`${l}\` of \`${e}\` can only be used together with the \`${t}\` prop.`)}},setRef:Ve,unstable_ClassNameGenerator:gi,unstable_useEnhancedEffect:ze,unstable_useId:function(t){if(void 0!==Ue){const e=Ue();return null!=t?t:e}return function(t){const[r,n]=e.useState(t),o=t||r;return e.useEffect((()=>{null==r&&(Fe+=1,n(`mui-${Fe}`))}),[r]),o}(t)},unsupportedProp:function(e,t,r,n,o){if("production"===process.env.NODE_ENV)return null;const i=o||t;return void 0!==e[t]?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null},useControlled:function({controlled:t,default:r,name:n,state:o="value"}){const{current:i}=e.useRef(void 0!==t),[a,s]=e.useState(r),c=i?t:a;if("production"!==process.env.NODE_ENV){e.useEffect((()=>{i!==(void 0!==t)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${o} state of ${n} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join("\n"))}),[o,n,t]);const{current:a}=e.useRef(r);e.useEffect((()=>{i||a===r||console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join("\n"))}),[JSON.stringify(r)])}return[c,e.useCallback((e=>{i||s(e)}),[])]},useEventCallback:function(t){const r=e.useRef(t);return ze((()=>{r.current=t})),e.useRef(((...e)=>(0,r.current)(...e))).current},useForkRef:function(...t){return e.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{Ve(t,e)}))}),t)},useIsFocusVisible:function(){const t=e.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Ge,!0),t.addEventListener("mousedown",Ke,!0),t.addEventListener("pointerdown",Ke,!0),t.addEventListener("touchstart",Ke,!0),t.addEventListener("visibilitychange",qe,!0))}),[]),r=e.useRef(!1);return{isFocusVisibleRef:r,onFocus:function(e){return!!Ye(e)&&(r.current=!0,!0)},onBlur:function(){return!!r.current&&(Be=!0,window.clearTimeout(Le),Le=window.setTimeout((()=>{Be=!1}),100),r.current=!1,!0)},ref:t}}}),Oi=u(bi);var wi=Y;Object.defineProperty(K,"__esModule",{value:!0});var Ei=K.default=void 0,xi=wi((vi||(vi=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Oi}(X)),X)),Si=a;Ei=K.default=(0,xi.default)((0,Si.jsx)("path",{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"}),"ArrowForwardIos");var ki=function(e){var r=e.id,n=e.className,o=e.collapsed,i=void 0!==o&&o,a=e.onCollapse;return t.createElement(Ei,{id:r,className:d("gyramais-collapse-icon",i?"collapsed":"",n),onClick:function(){return null==a?void 0:a(!i)}})},_i=function(e){var r=e.id,n=e.className,o=e.columns,i=void 0===o?1:o,a=e.gap,s=void 0===a?0:a,c=e.align,l=void 0===c?"start":c,u=e.children;return t.createElement("div",{id:r,className:d("gyramais-row","gyramais-row-columns-".concat(i),"gyramais-row-align-".concat(l),"gyramais-row-mobile-gap-".concat("number"==typeof s?s:"object"==typeof s&&!Array.isArray(s)&&s.mobile),"object"==typeof s&&!Array.isArray(s)&&s.tablet?"gyramais-row-tablet-gap-".concat(s.tablet):"","object"==typeof s&&!Array.isArray(s)&&s.desktop?"gyramais-row-desktop-gap-".concat(s.desktop):"","object"==typeof s&&!Array.isArray(s)&&s.wide?"gyramais-row-wide-gap-".concat(s.wide):"",n)},u)},Ni=function(e){var r=e.id,n=e.className,o=e.span,i=e.onClick,a=e.children;return t.createElement("div",{id:r,className:d("gyramais-col","gyramais-col-mobile-span-".concat("number"==typeof o?o:"object"==typeof o&&!Array.isArray(o)&&o.mobile),"object"!=typeof o||Array.isArray(o)||void 0===o.tablet?"":"gyramais-col-tablet-span-".concat(o.tablet),"object"!=typeof o||Array.isArray(o)||void 0===o.desktop?"":"gyramais-col-desktop-span-".concat(o.desktop),"object"!=typeof o||Array.isArray(o)||void 0===o.wide?"":"gyramais-col-wide-span-".concat(o.wide),n?"".concat(n,"-container"):""),onClick:i},t.createElement("div",{className:d("gyramais-col-content",n)},a))},$i=function(e){var r=e.id,n=e.type,a=void 0===n?"shadow":n,s=e.className,c=e.title,l=e.disabled,u=e.loading,f=e.collapsible,p=e.defaultCollapsed,y=e.onClick,h=e.headerContent,g=e.children,v=o(f&&p),b=v[0],O=v[1],w=i((function(){return!!(c||f||h)}),[c,f,h]);return t.createElement("div",{id:r,className:d("gyramais-card",a?"gyramais-card-".concat(a):"",u?"gyramais-card-loading":"",l?"gyramais-card-disabled":"",s),onClick:l?function(){}:y},(c||f||h)&&t.createElement("div",{className:"gyramais-card-header"},t.createElement(_i,{columns:2,align:"center"},(c||f)&&t.createElement(Ni,{span:h?1:2,className:"gyramais-card-header-left ".concat(f?"with-collapse":""),onClick:function(){l||f&&O(!b)}},c&&t.createElement("h5",{className:"gyramais-card-header-title"},c),f&&t.createElement(ki,{collapsed:b})),h&&t.createElement(Ni,{span:c||f?1:2,className:"gyramais-card-header-right"},h))),t.createElement(G,{collapsed:b},t.createElement("div",{className:"gyramais-card-content ".concat(g?"with-content":""," ").concat(w?"with-title":"")},u&&t.createElement("div",{className:"gyramais-card-loading"},t.createElement(m,{size:40})),g)))};export{$i as Card};
37
37
  //# sourceMappingURL=index.js.map