@zydon/common 2.1.70 → 2.1.72
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.
- package/dist/chunk-2MK3HC7U.js +21 -0
- package/dist/{chunk-RXVJRSTE.js → chunk-4BAL5HQX.js} +2 -2
- package/dist/chunk-63CPL562.js +18 -0
- package/dist/chunk-HRELVSCJ.js +10 -0
- package/dist/chunk-I3WCQOJG.js +16 -0
- package/dist/chunk-MQZWHADG.js +43 -0
- package/dist/{chunk-ZHLD3NJC.js → chunk-OGS2HFSH.js} +2 -10
- package/dist/chunk-PYQSTVMS.js +17 -0
- package/dist/{chunk-U3ISU3GH.js → chunk-UL4XNPI2.js} +2 -2
- package/dist/chunk-ZD4A6AP3.js +13 -0
- package/dist/components/Common/index.js +10 -9
- package/dist/components/DataGrid/index.js +2 -2
- package/dist/components/EmptyContent/index.js +2 -2
- package/dist/components/Label/index.js +4 -4
- package/dist/components/SplashScreen/index.js +3 -3
- package/dist/components/carousel/index.js +9 -9
- package/dist/components/form/UploadAvatarWithCrop/index.js +3 -3
- package/dist/components/form/UploadWithCrop/index.js +3 -3
- package/dist/components/table/index.js +2 -2
- package/dist/components/upload/index.js +7 -7
- package/dist/locales/all-langs.d.ts +119 -0
- package/dist/locales/all-langs.js +1 -0
- package/dist/theme/core/index.js +3 -3
- package/dist/theme/styles/index.d.ts +8 -6
- package/dist/theme/styles/index.js +1 -1
- package/dist/theme/theme-provider.js +6 -5
- package/dist/theme/with-settings/index.js +3 -3
- package/package.json +5 -1
- package/dist/chunk-2ASANKMO.js +0 -17
- package/dist/chunk-53KWNYSW.js +0 -43
- package/dist/chunk-ACBPYYHL.js +0 -18
- package/dist/chunk-D27ND54J.js +0 -16
- package/dist/chunk-WG7AS7QF.js +0 -21
- package/dist/chunk-ZODC2MGF.js +0 -10
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { a } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
1
|
+
import { a } from '../../chunk-ZD4A6AP3.js';
|
|
2
|
+
import '../../chunk-UL4XNPI2.js';
|
|
3
|
+
import '../../chunk-4BAL5HQX.js';
|
|
4
4
|
import '../../chunk-CFVUZ4S5.js';
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import
|
|
5
|
+
import '../../chunk-MQZWHADG.js';
|
|
6
|
+
import '../../chunk-OGS2HFSH.js';
|
|
7
|
+
import { j, i } from '../../chunk-I3WCQOJG.js';
|
|
7
8
|
import { a as a$1 } from '../../chunk-P4KEDWSP.js';
|
|
8
9
|
import '../../chunk-7QYYR6YS.js';
|
|
9
10
|
import { LazyMotion, domMax } from 'framer-motion';
|
|
10
11
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
11
|
-
import
|
|
12
|
+
import $ from '@mui/material/Portal';
|
|
12
13
|
import { styled } from '@mui/material/styles';
|
|
13
14
|
import { Toaster } from 'sonner';
|
|
14
15
|
import 'dayjs/locale/pt-br';
|
|
15
|
-
import
|
|
16
|
+
import w from 'dayjs';
|
|
16
17
|
import { AdapterDayjs } from '@mui/x-date-pickers-pro/AdapterDayjs';
|
|
17
18
|
import { LocalizationProvider } from '@mui/x-date-pickers-pro/LocalizationProvider';
|
|
18
19
|
|
|
19
|
-
var
|
|
20
|
+
var d=({children:t})=>jsx(LazyMotion,{strict:!0,features:domMax,children:t});var o={root:"toaster__root",toast:"toaster__toast",title:"toaster__title",icon:"toaster__icon",iconSvg:"toaster__icon__svg",content:"toaster__content",description:"toaster__description",actionButton:"toaster__action__button",cancelButton:"toaster__cancel__button",closeButton:"toaster__close_button",loadingIcon:"toaster__loading_icon",default:"toaster__default",error:"toaster__error",success:"toaster__success",warning:"toaster__warning",info:"toaster__info",loader:"sonner-loader",loaderVisible:'&[data-visible="true"]',closeBtnVisible:'[data-close-button="true"]'};var p=styled(Toaster)(({theme:t})=>{let n={toastDefault:{padding:t.spacing(1,1,1,1.5),boxShadow:t.customShadows.z8,color:j(t).palette.background.paper,backgroundColor:j(t).palette.text.primary},toastColor:{padding:t.spacing(.5,1,.5,.5),boxShadow:t.customShadows.z8,color:j(t).palette.text.primary,backgroundColor:j(t).palette.background.paper},toastLoader:{padding:t.spacing(.5,1,.5,.5),boxShadow:t.customShadows.z8,color:j(t).palette.text.primary,backgroundColor:j(t).palette.background.paper}},s={top:0,left:0,width:"100%",height:"100%",display:"none",transform:"none",overflow:"hidden",alignItems:"center",position:"relative",borderRadius:"inherit",justifyContent:"center",background:j(t).palette.background.neutral,[`& .${o.loadingIcon}`]:{zIndex:9,width:24,height:24,borderRadius:"50%",animation:"rotate 3s infinite linear",background:`conic-gradient(${i(j(t).palette.text.primaryChannel,0)}, ${i(j(t).palette.text.disabledChannel,.64)})`},[o.loaderVisible]:{display:"flex"}};return {width:300,[`& .${o.toast}`]:{gap:12,width:"100%",minHeight:52,display:"flex",borderRadius:12,alignItems:"center"},[`& .${o.content}`]:{gap:0,flex:"1 1 auto"},[`& .${o.title}`]:{fontSize:t.typography.subtitle2.fontSize},[`& .${o.description}`]:{...t.typography.caption,opacity:.64},[`& .${o.actionButton}`]:{},[`& .${o.cancelButton}`]:{},[`& .${o.closeButton}`]:{top:0,right:0,left:"auto",color:"currentColor",backgroundColor:"transparent",transform:"translate(-6px, 6px)",borderColor:i(j(t).palette.grey["500Channel"],.16),transition:t.transitions.create(["background-color","border-color"]),"&:hover":{borderColor:i(j(t).palette.grey["500Channel"],.24),backgroundColor:i(j(t).palette.grey["500Channel"],.08)}},[`& .${o.icon}`]:{margin:0,width:48,height:48,alignItems:"center",borderRadius:"inherit",justifyContent:"center",alignSelf:"flex-start",[`& .${o.iconSvg}`]:{width:24,height:24,fontSize:0}},"@keyframes rotate":{to:{transform:"rotate(1turn)"}},[`& .${o.default}`]:{...n.toastDefault,[`&:has(${o.closeBtnVisible})`]:{[`& .${o.content}`]:{paddingRight:32}},[`&:has(.${o.loader})`]:n.toastLoader,[`&:has(.${o.loader})`]:n.toastLoader,[`& .${o.loader}`]:s},[`& .${o.error}`]:{...n.toastColor,[`& .${o.icon}`]:{color:j(t).palette.error.main,backgroundColor:i(j(t).palette.error.mainChannel,.08)}},[`& .${o.success}`]:{...n.toastColor,[`& .${o.icon}`]:{color:j(t).palette.success.main,backgroundColor:i(j(t).palette.success.mainChannel,.08)}},[`& .${o.warning}`]:{...n.toastColor,[`& .${o.icon}`]:{color:j(t).palette.warning.main,backgroundColor:i(j(t).palette.warning.mainChannel,.08)}},[`& .${o.info}`]:{...n.toastColor,[`& .${o.icon}`]:{color:j(t).palette.info.main,backgroundColor:i(j(t).palette.info.mainChannel,.08)}}}});var u=()=>jsx($,{container:typeof window<"u"?document.getElementById("snackbar-container-provider"):null,children:jsx(p,{expand:!0,gap:12,closeButton:!0,offset:16,visibleToasts:4,position:"top-right",className:o.root,toastOptions:{unstyled:!0,classNames:{toast:o.toast,icon:o.icon,content:o.content,title:o.title,description:o.description,actionButton:o.actionButton,cancelButton:o.cancelButton,closeButton:o.closeButton,default:o.default,info:o.info,error:o.error,success:o.success,warning:o.warning}},icons:{loading:jsx("span",{className:o.loadingIcon}),info:jsx(a$1,{className:o.iconSvg,icon:"INFO_CIRCLE"}),success:jsx(a$1,{className:o.iconSvg,icon:"CHECK_CIRCLE"}),warning:jsx(a$1,{className:o.iconSvg,icon:"WARNING_TRIANGULE"}),error:jsx(a$1,{className:o.iconSvg,icon:"ALERT_CIRCLE"})}})});var k=({children:t})=>(w.locale("pt-br"),jsx(LocalizationProvider,{dateAdapter:AdapterDayjs,adapterLocale:"pt-br",children:t})),g=k;var P=({primaryColor:t,colorScheme:n,contrast:s,children:f,cssVarPrefix:m})=>jsx(g,{children:jsx(a,{primaryColor:t,colorScheme:n,contrast:s,cssVarPrefix:m,children:jsxs(d,{children:[f,jsx(u,{})]})})}),to=P;
|
|
20
21
|
|
|
21
|
-
export {
|
|
22
|
+
export { to as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as a$1 } from '../../chunk-
|
|
1
|
+
import { a as a$1 } from '../../chunk-HRELVSCJ.js';
|
|
2
2
|
import '../../chunk-ZDHXW74M.js';
|
|
3
3
|
import { a } from '../../chunk-YWEB6IAI.js';
|
|
4
|
-
import '../../chunk-
|
|
4
|
+
import '../../chunk-I3WCQOJG.js';
|
|
5
5
|
import x, { useState } from 'react';
|
|
6
6
|
import { GRID_CHECKBOX_SELECTION_COL_DEF, DataGridPremium, GridToolbarContainer, GridToolbarColumnsButton, GridToolbarFilterButton, GridToolbarDensitySelector, GridToolbarExport, useGridApiContext, useGridRootProps, gridColumnsTotalWidthSelector, gridColumnPositionsSelector } from '@mui/x-data-grid-premium';
|
|
7
7
|
import E from '@mui/material/Box';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { a as default } from '../../chunk-
|
|
1
|
+
export { a as default } from '../../chunk-HRELVSCJ.js';
|
|
2
2
|
import '../../chunk-ZDHXW74M.js';
|
|
3
|
-
import '../../chunk-
|
|
3
|
+
import '../../chunk-I3WCQOJG.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a } from '../../chunk-
|
|
1
|
+
import { j, a } from '../../chunk-I3WCQOJG.js';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
-
import
|
|
3
|
+
import c from '@mui/material/Box';
|
|
4
4
|
import { styled, lighten, useTheme } from '@mui/material/styles';
|
|
5
5
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var p={root:"mnl__label__root",icon:"mnl__label__icon"};var d=styled(c)(({theme:t,ownerState:{color:e,variant:r}})=>{let l={...e==="default"&&{...r==="filled"&&{color:j(t).palette.common.white,backgroundColor:j(t).palette.text.primary,[a.dark]:{color:j(t).palette.grey[800]}},...r==="outlined"&&{backgroundColor:"transparent",color:j(t).palette.text.primary,border:`2px solid ${j(t).palette.text.primary}`},...r==="soft"&&{color:j(t).palette.text.secondary,border:`1px solid ${lighten(t.palette.grey[500],.32)}`},...r==="inverted"&&{color:j(t).palette.grey[800],backgroundColor:j(t).palette.grey[300]}}},a$1={...e!=="default"&&{...r==="filled"&&{color:j(t).palette[e].contrastText,backgroundColor:j(t).palette[e].main},...r==="outlined"&&{backgroundColor:"transparent",color:j(t).palette[e].main,border:`2px solid ${j(t).palette[e].main}`},...r==="soft"&&{color:j(t).palette[e].dark,backgroundColor:lighten(t.palette[e].main,.84),[a.dark]:{color:j(t).palette[e].light}},...r==="inverted"&&{color:j(t).palette[e].darker,backgroundColor:j(t).palette[e].lighter}}};return {height:24,minWidth:24,lineHeight:0,cursor:"default",alignItems:"center",whiteSpace:"nowrap",display:"inline-flex",justifyContent:"center",padding:t.spacing(0,.75),fontSize:t.typography.pxToRem(12),fontWeight:t.typography.fontWeightBold,borderRadius:t.shape.borderRadius*.75,transition:t.transitions.create("all",{duration:t.transitions.duration.shorter}),...l,...a$1}});var S=t=>t.charAt(0).toUpperCase()+t.slice(1),f=forwardRef(({children:t,color:e="default",variant:r="soft",startIcon:l,endIcon:a,sx:g,...b},y)=>{let u=useTheme(),i={width:16,height:16,"& svg, img":{width:1,height:1,objectFit:"cover"}};return jsxs(d,{ref:y,component:"span",className:p.root,ownerState:{color:e,variant:r},sx:{...l&&{pl:.75},...a&&{pr:.75},...g},theme:u,...b,children:[l&&jsx(c,{component:"span",className:p.icon,sx:{mr:.75,...i},children:l}),typeof t=="string"?S(t):t,a&&jsx(c,{component:"span",className:p.icon,sx:{ml:.75,...i},children:a})]})});f.displayName="Label";var V=f;
|
|
8
8
|
|
|
9
|
-
export {
|
|
9
|
+
export { V as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { i } from '../../chunk-
|
|
1
|
+
import { i, j } from '../../chunk-I3WCQOJG.js';
|
|
2
2
|
import e from '@mui/material/Box';
|
|
3
3
|
import { m } from 'framer-motion';
|
|
4
4
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var s=({children:l,sx:n,...p})=>jsx(e,{sx:{overflow:"hidden"},children:jsx(e,{sx:{right:0,width:1,bottom:0,height:1,zIndex:9998,display:"flex",position:"fixed",alignItems:"center",justifyContent:"center",bgcolor:"background.default",...n},...p,children:jsxs(e,{sx:{width:120,height:120,alignItems:"center",position:"relative",display:"inline-flex",justifyContent:"center",...n},...p,children:[jsx(e,{component:m.div,animate:{scale:[1,.9,.9,1,1],opacity:[1,.48,.48,1,1]},transition:{duration:2,repeatDelay:1,repeat:1/0,ease:"easeInOut"},sx:{display:"inline-flex"},children:l}),jsx(e,{component:m.div,animate:{scale:[1.6,1,1,1.6,1.6],rotate:[270,0,0,270,270],opacity:[.25,1,1,1,.25],borderRadius:["25%","25%","50%","50%","25%"]},transition:{ease:"linear",duration:3.2,repeat:1/0},sx:{position:"absolute",width:"calc(100% - 20px)",height:"calc(100% - 20px)",border:i$1=>`solid 3px ${i(j(i$1).palette.primary.darkChannel,.24)}`}}),jsx(e,{component:m.div,animate:{scale:[1,1.2,1.2,1,1],rotate:[0,270,270,0,0],opacity:[1,.25,.25,.25,1],borderRadius:["25%","25%","50%","50%","25%"]},transition:{ease:"linear",duration:3.2,repeat:1/0},sx:{width:1,height:1,position:"absolute",border:i$1=>`solid 8px ${i(j(i$1).palette.primary.darkChannel,.24)}`}})]})})}),f=s;
|
|
7
7
|
|
|
8
|
-
export {
|
|
8
|
+
export { f as default };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { i, a } from '../../chunk-
|
|
1
|
+
import { j, i, a } from '../../chunk-I3WCQOJG.js';
|
|
2
2
|
import { a as a$1 } from '../../chunk-P4KEDWSP.js';
|
|
3
3
|
import '../../chunk-7QYYR6YS.js';
|
|
4
4
|
import { forwardRef, Children, isValidElement, useMemo, useState, useCallback, useEffect, useRef } from 'react';
|
|
5
|
-
import
|
|
5
|
+
import O from '@mui/material/Box';
|
|
6
6
|
import { styled, useTheme } from '@mui/material/styles';
|
|
7
7
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
8
|
+
import Q, { buttonBaseClasses } from '@mui/material/ButtonBase';
|
|
9
|
+
import q from '@mui/material/Stack';
|
|
10
|
+
import Se from '@mui/material/SvgIcon';
|
|
11
|
+
import Be from '@mui/material/NoSsr';
|
|
12
|
+
import Ye from 'embla-carousel-react';
|
|
13
13
|
|
|
14
|
-
var Ge={xs:"(min-width: 0px)",sm:"(min-width: 600px)",md:"(min-width: 900px)",lg:"(min-width: 1200px)",xl:"(min-width: 1536px)"};var c={root:"mnl__carousel__root",container:"mnl__carousel__container",dots:"mnl__carousel__dots",dot:"mnl__carousel__dot",arrows:"mnl__carousel__arrows",arrowsLabel:"mnl__carousel__arrows_label",arrowPrev:"mnl__carousel__btn--prev",arrowNext:"mnl__carousel__btn--next",arrowSvg:"mnl__carousel__btn__svg",slide:"mnl__carousel__slide",slideContent:"mnl__carousel__slide__content",thumbs:"mnl__carousel__thumbs",thumb:"mnl__carousel__thumb",thumbContainer:"mnl__carousel__thumbs__container",thumbImage:"mnl__carousel__thumb__image",progress:"mnl__carousel__progress",progressBar:"mnl__carousel__progress__bar",state:{selected:"state--selected",disabled:"state--disabled"}};var pe=styled(N,{shouldForwardProp:e=>e!=="axis"&&e!=="slideSpacing"})(({axis:e,slideSpacing:o})=>({display:"block",position:"relative",...e==="x"&&{minWidth:0,paddingLeft:o},...e==="y"&&{minHeight:0,paddingTop:o}})),me=styled(N)(()=>({overflow:"hidden",position:"relative",borderRadius:"inherit"}));function w({sx:e,options:o,children:s,...r}){let i=de(o?.slidesToShow);return jsx(pe,{component:"li",axis:o?.axis??"x",slideSpacing:o?.slideSpacing,className:c.slide,sx:{flex:i,...e},...r,children:o?.parallax?jsx(me,{className:c.slideContent,children:jsx("div",{className:"slide__parallax__layer",children:s})}):s})}function de(e){return e&&typeof e=="object"?Object.keys(e).reduce((o,s)=>{let r=e[s];return o[s]=W(r),o},{}):W(e)}function W(e=1){if(typeof e=="string"){if(!(e==="auto"||e.endsWith("%")||e.endsWith("px")))throw new Error("Only accepts values: auto, px, %, or number.");return `0 0 ${e}`}if(typeof e=="number")return `0 0 ${100/e}%`;throw new Error("Invalid value type. Only accepts values: auto, px, %, or number.")}var T=styled(N,{shouldForwardProp:e=>e!=="axis"})(({axis:e})=>({margin:"auto",width:"100%",maxWidth:"100%",overflow:"hidden",position:"relative",...e==="y"&&{height:"100%"}})),I=styled(N,{shouldForwardProp:e=>e!=="axis"&&e!=="slideSpacing"})(({axis:e,slideSpacing:o})=>({display:"flex",backfaceVisibility:"hidden",...e==="x"&&{touchAction:"pan-y pinch-zoom",marginLeft:`calc(${o} * -1)`},...e==="y"&&{height:"100%",flexDirection:"column",touchAction:"pan-x pinch-zoom",marginTop:`calc(${o} * -1)`}}));function io({carousel:e,children:o,sx:s,slotProps:r}){let{mainRef:i,options:a}=e,t=a?.axis??"x",n=a?.slideSpacing??"0px",u=a?.direction??"ltr",p=Children.map(o,l=>{if(isValidElement(l)){let m=l;return jsx(w,{options:e.options,sx:r?.slide,children:l},m.key)}return null});return jsx(T,{sx:s,axis:t,ref:i,dir:u,className:c.root,children:jsx(I,{component:"ul",axis:t,slideSpacing:n,className:c.container,sx:{...e.pluginNames?.includes("autoHeight")&&{alignItems:"flex-start",transition:l=>l.transitions.create(["height"],{easing:l.transitions.easing.easeInOut,duration:l.transitions.duration.shorter})},...r?.container},children:p})})}function Co({options:e,slotProps:o,totalSlides:s,selectedIndex:r,onClickPrev:i,onClickNext:a,disablePrev:t,disableNext:n,sx:u,...p}){return jsxs(Y,{direction:"row",alignItems:"center",display:"inline-flex",className:c.arrows,sx:{gap:.5,zIndex:9,color:"action.active",...u},...p,children:[jsx(h,{variant:"prev",options:e,disabled:t,onClick:i,svgIcon:o?.prevBtn?.svgIcon,svgSize:o?.prevBtn?.svgSize,sx:o?.prevBtn?.sx}),jsx(h,{variant:"next",options:e,disabled:n,onClick:a,svgIcon:o?.nextBtn?.svgIcon,svgSize:o?.prevBtn?.svgSize,sx:o?.prevBtn?.sx})]})}function ho({options:e,slotProps:o,totalSlides:s,selectedIndex:r,onClickPrev:i$1,onClickNext:a,disablePrev:t,disableNext:n,sx:u,...p}){let l=useTheme();return jsxs(Y,{direction:"row",alignItems:"center",display:"inline-flex",className:c.arrows,sx:{p:.5,gap:.25,zIndex:9,borderRadius:1.25,color:"common.white",bgcolor:i(l.vars.palette.grey["900Channel"],.48),...u},...p,children:[jsx(h,{variant:"prev",options:e,disabled:t,onClick:i$1,sx:{p:.75,borderRadius:"inherit",...o?.prevBtn?.sx},svgIcon:o?.prevBtn?.svgIcon,svgSize:o?.prevBtn?.svgSize??16}),jsxs(N,{component:"span",className:c.arrowsLabel,sx:{mx:.5,typography:"subtitle2"},children:[r,"/",s]}),jsx(h,{variant:"next",options:e,disabled:n,onClick:a,sx:{p:.75,borderRadius:"inherit",...o?.nextBtn?.sx},svgIcon:o?.nextBtn?.svgIcon,svgSize:o?.prevBtn?.svgSize??16})]})}function So({options:e,slotProps:o,onClickPrev:s,onClickNext:r,disablePrev:i,disableNext:a$1}){let t={zIndex:9,top:"50%",borderRadius:1.5,position:"absolute",color:"common.white",bgcolor:"text.primary",transform:"translateY(-50%)","&:hover":{opacity:.8},[a.dark]:{color:"grey.800"}};return jsxs(Fragment,{children:[jsx(h,{variant:"prev",options:e,disabled:i,onClick:s,svgIcon:o?.prevBtn?.svgIcon,svgSize:o?.prevBtn?.svgSize,sx:{left:-16,...t,...o?.prevBtn?.sx}}),jsx(h,{variant:"next",options:e,disabled:a$1,onClick:r,svgIcon:o?.nextBtn?.svgIcon,svgSize:o?.nextBtn?.svgSize,sx:{right:-16,...t,...o?.nextBtn?.sx}})]})}function h({sx:e,svgIcon:o,svgSize:s,options:r,variant:i,...a}){let t=i==="prev",n=i==="next",u=o||jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.488 4.43a.75.75 0 0 1 .081 1.058L9.988 12l5.581 6.512a.75.75 0 1 1-1.138.976l-6-7a.75.75 0 0 1 0-.976l6-7a.75.75 0 0 1 1.057-.081",clipRule:"evenodd"}),p=o||jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.512 4.43a.75.75 0 0 1 1.057.082l6 7a.75.75 0 0 1 0 .976l-6 7a.75.75 0 0 1-1.138-.976L14.012 12L8.431 5.488a.75.75 0 0 1 .08-1.057",clipRule:"evenodd"});return jsx(J,{className:t?c.arrowPrev:c.arrowPrev,"aria-label":t?"Prev button":"Next button",sx:{p:1,borderRadius:"50%",boxSizing:"content-box",transition:l=>l.transitions.create(["all"],{easing:l.transitions.easing.sharp,duration:l.transitions.duration.short}),[`&.${buttonBaseClasses.disabled}`]:{opacity:.4},...e,...r?.direction==="rtl"&&{...t&&{right:-16,left:"auto"},...n&&{left:-16,right:"auto"}}},...a,children:jsx(he,{className:c.arrowSvg,sx:{width:s??20,height:s??20,...r?.axis==="y"&&{transform:" rotate(90deg)"},...r?.direction==="rtl"&&{transform:" scaleX(-1)"}},children:t?u:p})})}function To({sx:e,gap:o,slotProps:s,onClickDot:r,scrollSnaps:i$1,selectedIndex:a$1,fallbackCount:t=1,variant:n="circular",fallback:u=!1,...p}){let l=useTheme(),m={number:o??6,rounded:o??2,circular:o??2},d={circular:s?.dot?.size??18,number:s?.dot?.size??28},S=jsx(N,{sx:{height:d.circular,width:`calc(${t*d.circular+m.circular*(t-1)}px )`,...n==="number"&&{height:d.number,width:`calc(${t*d.number+m.number*(t-1)}px )`}}}),f={circular:y=>({width:d.circular,height:d.circular,"&::before":{width:8,height:8,content:'""',opacity:.24,borderRadius:"50%",bgcolor:"primary.main",transition:l.transitions.create(["opacity"],{easing:l.transitions.easing.sharp,duration:l.transitions.duration.short}),...y&&{opacity:1}}}),rounded:y=>({width:d.circular,height:d.circular,"&::before":{width:8,height:8,content:'""',opacity:.24,borderRadius:"50%",bgcolor:"primary.main",transition:l.transitions.create(["width","opacity"],{easing:l.transitions.easing.sharp,duration:l.transitions.duration.short}),...y&&{width:"calc(100% - 4px)",opacity:1,borderRadius:1}}}),number:y=>({width:d.number,height:d.number,borderRadius:"50%",typography:"caption",color:"text.disabled",border:`solid 1px ${i(l.vars.palette.grey["500Channel"],.16)}`,...y&&{color:"common.white",bgcolor:"text.primary",fontWeight:"fontWeightSemiBold",[a.dark]:{color:"grey.800"}}})};return jsx(_e,{fallback:u?S:null,children:jsx(N,{component:"ul",className:c.dots,sx:{zIndex:9,display:"inline-flex",...n==="circular"&&{gap:`${m.circular}px`},...n==="rounded"&&{gap:`${m.rounded}px`},...n==="number"&&{gap:`${m.number}px`},...e},...p,children:i$1.map((y,g)=>{let v=g===a$1;return jsx(N,{component:"li",sx:{display:"inline-flex"},children:jsx(J,{disableRipple:!0,"aria-label":`dot-${g}`,className:c.dot.concat(v?` ${c.state.selected}`:""),onClick:()=>r(g),sx:{...n==="circular"&&f.circular(v),...n==="rounded"&&f.rounded(v),...n==="number"&&f.number(v),[`&.${c.state.selected}`]:{...s?.dot?.selected},...s?.dot?.sx},children:n==="number"&&g+1})},g)})})})}var we=styled(N)(({theme:e})=>({height:6,maxWidth:120,width:"100%",borderRadius:6,overflow:"hidden",position:"relative",color:e.vars.palette.text.primary,backgroundColor:i(e.vars.palette.grey["500Channel"],.2)})),Pe=styled(N)(()=>({top:0,bottom:0,width:"100%",left:"-100%",position:"absolute",backgroundColor:"currentColor"}));function Uo({value:e,sx:o,...s}){return jsx(we,{sx:o,className:c.progress,...s,children:jsx(Pe,{className:c.progressBar,sx:{transform:`translate3d(${e}%, 0px, 0px)`}})})}var Ne=forwardRef(({children:e,slotProps:o,options:s,sx:r,...i},a)=>{let t=s?.axis??"x",n=s?.slideSpacing??"12px",u=Oe(t),p=Children.map(e,l=>{if(isValidElement(l)){let m=l;return jsx(w,{options:{...s,slideSpacing:n},sx:o?.slide,children:l},m.key)}return null});return jsx(T,{ref:a,slideSpacing:void 0,axis:t,className:c.thumbs,sx:{flexShrink:0,...t==="x"&&{p:.5,maxWidth:1},...t==="y"&&{p:.5,maxHeight:1},...!o?.disableMask&&u,...r},...i,children:jsx(I,{component:"ul",axis:t,slideSpacing:n,className:c.thumbContainer,sx:{...o?.container},children:p})})});Ne.displayName="CarouselThumbs";function Go({thumbType:e="image",sx:o,src:s,index:r,selected:i,...a}){return e==="image"&&s?jsx(J,{className:c.thumb,sx:{width:64,height:64,opacity:.48,flexShrink:0,cursor:"pointer",borderRadius:1.25,transition:t=>t.transitions.create(["opacity","box-shadow"],{easing:t.transitions.easing.sharp,duration:t.transitions.duration.short}),...i&&{opacity:1,boxShadow:t=>`0 0 0 2px ${t.vars.palette.primary.main}`},...o},...a,children:jsx(N,{component:"img",alt:`carousel-thumb-${r}`,src:s,className:c.thumbImage,sx:{width:1,height:1,objectFit:"cover",borderRadius:"inherit"}})}):e==="video"?jsx(J,{className:c.thumb,sx:{width:64,height:64,opacity:.48,flexShrink:0,cursor:"pointer",borderRadius:1.25,color:t=>t.vars.palette.primary.main,transition:t=>t.transitions.create(["opacity","box-shadow"],{easing:t.transitions.easing.sharp,duration:t.transitions.duration.short}),...i&&{opacity:1,boxShadow:t=>`0 0 0 2px ${t.vars.palette.primary.main}`},...o},...a,children:jsx(a$1,{icon:"PLAY_CIRCLE",width:32})}):null}function Oe(e){let o=useTheme(),s={zIndex:9,content:'""',position:"absolute"},r=`${o.vars.palette.background.paper} 20%, ${i(o.vars.palette.background.paperChannel,0)} 100%)`;return e==="y"?{"&::before, &::after":{...s,left:0,height:40,width:"100%"},"&::before":{top:-8,background:`linear-gradient(to bottom, ${r}`},"&::after":{bottom:-8,background:`linear-gradient(to top, ${r}`}}:{"&::before, &::after":{...s,top:0,width:40,height:"100%"},"&::before":{left:-8,background:`linear-gradient(to right, ${r}`},"&::after":{right:-8,background:`linear-gradient(to left, ${r}`}}}var A=e=>{let[o,s]=useState(!0),[r,i]=useState(!0),a=useCallback(()=>{e&&e.scrollPrev();},[e]),t=useCallback(()=>{e&&e.scrollNext();},[e]),n=useCallback(u=>{s(!u.canScrollPrev()),i(!u.canScrollNext());},[]);return useEffect(()=>{e&&(n(e),e.on("reInit",n),e.on("select",n));},[e,n]),{disablePrev:o,disableNext:r,onClickPrev:a,onClickNext:t}};function oe(e){let[o,s]=useState(!1),r=useCallback(a=>{let t=e?.plugins()?.autoplay;if(!t)return;(t.options.stopOnInteraction===!1?t.reset:t.stop)(),a();},[e]),i=useCallback(()=>{let a=e?.plugins()?.autoplay;if(!a)return;(a.isPlaying()?a.stop:a.play)();},[e]);return useEffect(()=>{let a=e?.plugins()?.autoplay;a&&(s(a.isPlaying()),e.on("autoplay:play",()=>s(!0)).on("autoplay:stop",()=>s(!1)).on("reInit",()=>s(!1)));},[e]),{isPlaying:o,onTogglePlay:i,onClickAutoplay:r}}function re(e){let[o,s]=useState(!1),r=useCallback(a=>{let t=e?.plugins()?.autoScroll;if(!t)return;(t.options.stopOnInteraction===!1?t.reset:t.stop)(),a();},[e]),i=useCallback(()=>{let a=e?.plugins()?.autoScroll;if(!a)return;(a.isPlaying()?a.stop:a.play)();},[e]);return useEffect(()=>{let a=e?.plugins()?.autoScroll;a&&(s(a.isPlaying()),e.on("autoScroll:play",()=>s(!0)).on("autoScroll:stop",()=>s(!1)).on("reInit",()=>s(!1)));},[e]),{isPlaying:o,onTogglePlay:i,onClickAutoplay:r}}function se(e){let[o,s]=useState(0),[r,i]=useState(0),[a,t]=useState([]),n=useCallback(l=>{e&&e.scrollTo(l);},[e]),u=useCallback(l=>{t(l.scrollSnapList());},[]),p=useCallback(l=>{i(l.selectedScrollSnap()),s(l.scrollSnapList().length);},[]);return useEffect(()=>{e&&(u(e),p(e),e.on("reInit",u),e.on("reInit",p),e.on("select",p));},[e,u,p]),{dotCount:o,scrollSnaps:a,selectedIndex:r,onClickDot:n}}function ne(e,o){let s=useRef(0),r=useRef([]),i=typeof o=="number"?o:.24,a=useCallback(u=>{r.current=u.slideNodes().map(p=>p.querySelector(".slide__parallax__layer"));},[]),t=useCallback(u=>{s.current=i*u.scrollSnapList().length;},[i]),n=useCallback((u,p)=>{let l=u.internalEngine(),m=u.scrollProgress(),d=u.slidesInView(),S=p==="scroll";u.scrollSnapList().forEach((f,y)=>{let g=f-m;l.slideRegistry[y].forEach(k=>{if(S&&!d.includes(k))return;l.options.loop&&l.slideLooper.loopPoints.forEach(D=>{let M=D.target();if(k===D.index&&M!==0){let V=Math.sign(M);V===-1&&(g=f-(1+m)),V===1&&(g=f+(1-m));}});let ce=g*(-1*s.current)*100,U=r.current[k];U&&(U.style.transform=`translateX(${ce}%)`);});});},[]);return useEffect(()=>{!e||!o||(a(e),t(e),n(e),e.on("reInit",a).on("reInit",t).on("reInit",n).on("scroll",n));},[e,n]),null}function le(e){let[o,s]=useState(0),r=useCallback(i=>{let a=Math.max(0,Math.min(1,i.scrollProgress()));s(a*100);},[]);return useEffect(()=>{e&&(r(e),e.on("reInit",r),e.on("scroll",r));},[e,r]),{value:o}}function ue(e,o){let[s,r]=Xe({containScroll:"keepSnaps",dragFree:!0,...o}),[i,a]=useState(0),t=useCallback(u=>{!e||!r||e.scrollTo(u);},[e,r]),n=useCallback(()=>{!e||!r||(a(e.selectedScrollSnap()),r.scrollTo(e.selectedScrollSnap()));},[e,r,a]);return useEffect(()=>{e&&(n(),e.on("select",n),e.on("reInit",n));},[e,n]),{onClickThumb:t,thumbsRef:s,thumbsApi:r,selectedIndex:i}}var vt=(e,o)=>{let[s,r]=Xe(e,o),{disablePrev:i,disableNext:a,onClickPrev:t,onClickNext:n}=A(r),u=o?.map(y=>y.name),p=se(r),l=oe(r),m=re(r),d=le(r),S=ue(r,e?.thumbs);ne(r,e?.parallax);let f=useMemo(()=>u?.includes("autoplay")?{onClickPrev:()=>l.onClickAutoplay(t),onClickNext:()=>l.onClickAutoplay(n)}:u?.includes("autoScroll")?{onClickPrev:()=>m.onClickAutoplay(t),onClickNext:()=>m.onClickAutoplay(n)}:{onClickPrev:t,onClickNext:n},[m,l,n,t,u]);return {options:{...e,...r?.internalEngine().options},pluginNames:u,mainRef:s,mainApi:r,arrows:{disablePrev:i,disableNext:a,onClickPrev:f.onClickPrev,onClickNext:f.onClickNext},dots:p,thumbs:S,progress:d,autoplay:l,autoScroll:m}};
|
|
14
|
+
var Ze={xs:"(min-width: 0px)",sm:"(min-width: 600px)",md:"(min-width: 900px)",lg:"(min-width: 1200px)",xl:"(min-width: 1536px)"};var c={root:"mnl__carousel__root",container:"mnl__carousel__container",dots:"mnl__carousel__dots",dot:"mnl__carousel__dot",arrows:"mnl__carousel__arrows",arrowsLabel:"mnl__carousel__arrows_label",arrowPrev:"mnl__carousel__btn--prev",arrowNext:"mnl__carousel__btn--next",arrowSvg:"mnl__carousel__btn__svg",slide:"mnl__carousel__slide",slideContent:"mnl__carousel__slide__content",thumbs:"mnl__carousel__thumbs",thumb:"mnl__carousel__thumb",thumbContainer:"mnl__carousel__thumbs__container",thumbImage:"mnl__carousel__thumb__image",progress:"mnl__carousel__progress",progressBar:"mnl__carousel__progress__bar",state:{selected:"state--selected",disabled:"state--disabled"}};var me=styled(O,{shouldForwardProp:e=>e!=="axis"&&e!=="slideSpacing"})(({axis:e,slideSpacing:o})=>({display:"block",position:"relative",...e==="x"&&{minWidth:0,paddingLeft:o},...e==="y"&&{minHeight:0,paddingTop:o}})),de=styled(O)(()=>({overflow:"hidden",position:"relative",borderRadius:"inherit"}));function P({sx:e,options:o,children:s,...r}){let i=fe(o?.slidesToShow);return jsx(me,{component:"li",axis:o?.axis??"x",slideSpacing:o?.slideSpacing,className:c.slide,sx:{flex:i,...e},...r,children:o?.parallax?jsx(de,{className:c.slideContent,children:jsx("div",{className:"slide__parallax__layer",children:s})}):s})}function fe(e){return e&&typeof e=="object"?Object.keys(e).reduce((o,s)=>{let r=e[s];return o[s]=H(r),o},{}):H(e)}function H(e=1){if(typeof e=="string"){if(!(e==="auto"||e.endsWith("%")||e.endsWith("px")))throw new Error("Only accepts values: auto, px, %, or number.");return `0 0 ${e}`}if(typeof e=="number")return `0 0 ${100/e}%`;throw new Error("Invalid value type. Only accepts values: auto, px, %, or number.")}var I=styled(O,{shouldForwardProp:e=>e!=="axis"})(({axis:e})=>({margin:"auto",width:"100%",maxWidth:"100%",overflow:"hidden",position:"relative",...e==="y"&&{height:"100%"}})),N=styled(O,{shouldForwardProp:e=>e!=="axis"&&e!=="slideSpacing"})(({axis:e,slideSpacing:o})=>({display:"flex",backfaceVisibility:"hidden",...e==="x"&&{touchAction:"pan-y pinch-zoom",marginLeft:`calc(${o} * -1)`},...e==="y"&&{height:"100%",flexDirection:"column",touchAction:"pan-x pinch-zoom",marginTop:`calc(${o} * -1)`}}));function uo({carousel:e,children:o,sx:s,slotProps:r}){let{mainRef:i,options:n}=e,t=n?.axis??"x",a=n?.slideSpacing??"0px",u=n?.direction??"ltr",p=Children.map(o,l=>{if(isValidElement(l)){let m=l;return jsx(P,{options:e.options,sx:r?.slide,children:l},m.key)}return null});return jsx(I,{sx:s,axis:t,ref:i,dir:u,className:c.root,children:jsx(N,{component:"ul",axis:t,slideSpacing:a,className:c.container,sx:{...e.pluginNames?.includes("autoHeight")&&{alignItems:"flex-start",transition:l=>l.transitions.create(["height"],{easing:l.transitions.easing.easeInOut,duration:l.transitions.duration.shorter})},...r?.container},children:p})})}function So({options:e,slotProps:o,totalSlides:s,selectedIndex:r,onClickPrev:i,onClickNext:n,disablePrev:t,disableNext:a,sx:u,...p}){return jsxs(q,{direction:"row",alignItems:"center",display:"inline-flex",className:c.arrows,sx:{gap:.5,zIndex:9,color:"action.active",...u},...p,children:[jsx(S,{variant:"prev",options:e,disabled:t,onClick:i,svgIcon:o?.prevBtn?.svgIcon,svgSize:o?.prevBtn?.svgSize,sx:o?.prevBtn?.sx}),jsx(S,{variant:"next",options:e,disabled:a,onClick:n,svgIcon:o?.nextBtn?.svgIcon,svgSize:o?.prevBtn?.svgSize,sx:o?.prevBtn?.sx})]})}function _o({options:e,slotProps:o,totalSlides:s,selectedIndex:r,onClickPrev:i$1,onClickNext:n,disablePrev:t,disableNext:a,sx:u,...p}){let l=useTheme();return jsxs(q,{direction:"row",alignItems:"center",display:"inline-flex",className:c.arrows,sx:{p:.5,gap:.25,zIndex:9,borderRadius:1.25,color:"common.white",bgcolor:i(j(l).palette.grey["900Channel"],.48),...u},...p,children:[jsx(S,{variant:"prev",options:e,disabled:t,onClick:i$1,sx:{p:.75,borderRadius:"inherit",...o?.prevBtn?.sx},svgIcon:o?.prevBtn?.svgIcon,svgSize:o?.prevBtn?.svgSize??16}),jsxs(O,{component:"span",className:c.arrowsLabel,sx:{mx:.5,typography:"subtitle2"},children:[r,"/",s]}),jsx(S,{variant:"next",options:e,disabled:a,onClick:n,sx:{p:.75,borderRadius:"inherit",...o?.nextBtn?.sx},svgIcon:o?.nextBtn?.svgIcon,svgSize:o?.prevBtn?.svgSize??16})]})}function vo({options:e,slotProps:o,onClickPrev:s,onClickNext:r,disablePrev:i,disableNext:n}){let t={zIndex:9,top:"50%",borderRadius:1.5,position:"absolute",color:"common.white",bgcolor:"text.primary",transform:"translateY(-50%)","&:hover":{opacity:.8},[a.dark]:{color:"grey.800"}};return jsxs(Fragment,{children:[jsx(S,{variant:"prev",options:e,disabled:i,onClick:s,svgIcon:o?.prevBtn?.svgIcon,svgSize:o?.prevBtn?.svgSize,sx:{left:-16,...t,...o?.prevBtn?.sx}}),jsx(S,{variant:"next",options:e,disabled:n,onClick:r,svgIcon:o?.nextBtn?.svgIcon,svgSize:o?.nextBtn?.svgSize,sx:{right:-16,...t,...o?.nextBtn?.sx}})]})}function S({sx:e,svgIcon:o,svgSize:s,options:r,variant:i,...n}){let t=i==="prev",a=i==="next",u=o||jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.488 4.43a.75.75 0 0 1 .081 1.058L9.988 12l5.581 6.512a.75.75 0 1 1-1.138.976l-6-7a.75.75 0 0 1 0-.976l6-7a.75.75 0 0 1 1.057-.081",clipRule:"evenodd"}),p=o||jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.512 4.43a.75.75 0 0 1 1.057.082l6 7a.75.75 0 0 1 0 .976l-6 7a.75.75 0 0 1-1.138-.976L14.012 12L8.431 5.488a.75.75 0 0 1 .08-1.057",clipRule:"evenodd"});return jsx(Q,{className:t?c.arrowPrev:c.arrowPrev,"aria-label":t?"Prev button":"Next button",sx:{p:1,borderRadius:"50%",boxSizing:"content-box",transition:l=>l.transitions.create(["all"],{easing:l.transitions.easing.sharp,duration:l.transitions.duration.short}),[`&.${buttonBaseClasses.disabled}`]:{opacity:.4},...e,...r?.direction==="rtl"&&{...t&&{right:-16,left:"auto"},...a&&{left:-16,right:"auto"}}},...n,children:jsx(Se,{className:c.arrowSvg,sx:{width:s??20,height:s??20,...r?.axis==="y"&&{transform:" rotate(90deg)"},...r?.direction==="rtl"&&{transform:" scaleX(-1)"}},children:t?u:p})})}function Oo({sx:e,gap:o,slotProps:s,onClickDot:r,scrollSnaps:i$1,selectedIndex:n,fallbackCount:t=1,variant:a$1="circular",fallback:u=!1,...p}){let l=useTheme(),m={number:o??6,rounded:o??2,circular:o??2},d={circular:s?.dot?.size??18,number:s?.dot?.size??28},_=jsx(O,{sx:{height:d.circular,width:`calc(${t*d.circular+m.circular*(t-1)}px )`,...a$1==="number"&&{height:d.number,width:`calc(${t*d.number+m.number*(t-1)}px )`}}}),y={circular:b=>({width:d.circular,height:d.circular,"&::before":{width:8,height:8,content:'""',opacity:.24,borderRadius:"50%",bgcolor:"primary.main",transition:l.transitions.create(["opacity"],{easing:l.transitions.easing.sharp,duration:l.transitions.duration.short}),...b&&{opacity:1}}}),rounded:b=>({width:d.circular,height:d.circular,"&::before":{width:8,height:8,content:'""',opacity:.24,borderRadius:"50%",bgcolor:"primary.main",transition:l.transitions.create(["width","opacity"],{easing:l.transitions.easing.sharp,duration:l.transitions.duration.short}),...b&&{width:"calc(100% - 4px)",opacity:1,borderRadius:1}}}),number:b=>({width:d.number,height:d.number,borderRadius:"50%",typography:"caption",color:"text.disabled",border:`solid 1px ${i(j(l).palette.grey["500Channel"],.16)}`,...b&&{color:"common.white",bgcolor:"text.primary",fontWeight:"fontWeightSemiBold",[a.dark]:{color:"grey.800"}}})};return jsx(Be,{fallback:u?_:null,children:jsx(O,{component:"ul",className:c.dots,sx:{zIndex:9,display:"inline-flex",...a$1==="circular"&&{gap:`${m.circular}px`},...a$1==="rounded"&&{gap:`${m.rounded}px`},...a$1==="number"&&{gap:`${m.number}px`},...e},...p,children:i$1.map((b,x)=>{let v=x===n;return jsx(O,{component:"li",sx:{display:"inline-flex"},children:jsx(Q,{disableRipple:!0,"aria-label":`dot-${x}`,className:c.dot.concat(v?` ${c.state.selected}`:""),onClick:()=>r(x),sx:{...a$1==="circular"&&y.circular(v),...a$1==="rounded"&&y.rounded(v),...a$1==="number"&&y.number(v),[`&.${c.state.selected}`]:{...s?.dot?.selected},...s?.dot?.sx},children:a$1==="number"&&x+1})},x)})})})}var Pe=styled(O)(({theme:e})=>({height:6,maxWidth:120,width:"100%",borderRadius:6,overflow:"hidden",position:"relative",color:j(e).palette.text.primary,backgroundColor:i(j(e).palette.grey["500Channel"],.2)})),ke=styled(O)(()=>({top:0,bottom:0,width:"100%",left:"-100%",position:"absolute",backgroundColor:"currentColor"}));function Fo({value:e,sx:o,...s}){return jsx(Pe,{sx:o,className:c.progress,...s,children:jsx(ke,{className:c.progressBar,sx:{transform:`translate3d(${e}%, 0px, 0px)`}})})}var Oe=forwardRef(({children:e,slotProps:o,options:s,sx:r,...i},n)=>{let t=s?.axis??"x",a=s?.slideSpacing??"12px",u=$e(t),p=Children.map(e,l=>{if(isValidElement(l)){let m=l;return jsx(P,{options:{...s,slideSpacing:a},sx:o?.slide,children:l},m.key)}return null});return jsx(I,{ref:n,slideSpacing:void 0,axis:t,className:c.thumbs,sx:{flexShrink:0,...t==="x"&&{p:.5,maxWidth:1},...t==="y"&&{p:.5,maxHeight:1},...!o?.disableMask&&u,...r},...i,children:jsx(N,{component:"ul",axis:t,slideSpacing:a,className:c.thumbContainer,sx:{...o?.container},children:p})})});Oe.displayName="CarouselThumbs";function et({thumbType:e="image",sx:o,src:s,index:r,selected:i,...n}){return e==="image"&&s?jsx(Q,{className:c.thumb,sx:{width:64,height:64,opacity:.48,flexShrink:0,cursor:"pointer",borderRadius:1.25,transition:t=>t.transitions.create(["opacity","box-shadow"],{easing:t.transitions.easing.sharp,duration:t.transitions.duration.short}),...i&&{opacity:1,boxShadow:t=>`0 0 0 2px ${j(t).palette.primary.main}`},...o},...n,children:jsx(O,{component:"img",alt:`carousel-thumb-${r}`,src:s,className:c.thumbImage,sx:{width:1,height:1,objectFit:"cover",borderRadius:"inherit"}})}):e==="video"?jsx(Q,{className:c.thumb,sx:{width:64,height:64,opacity:.48,flexShrink:0,cursor:"pointer",borderRadius:1.25,color:t=>j(t).palette.primary.main,transition:t=>t.transitions.create(["opacity","box-shadow"],{easing:t.transitions.easing.sharp,duration:t.transitions.duration.short}),...i&&{opacity:1,boxShadow:t=>`0 0 0 2px ${j(t).palette.primary.main}`},...o},...n,children:jsx(a$1,{icon:"PLAY_CIRCLE",width:32})}):null}function $e(e){let o=useTheme(),s={zIndex:9,content:'""',position:"absolute"},r=`${j(o).palette.background.paper} 20%, ${i(j(o).palette.background.paperChannel,0)} 100%)`;return e==="y"?{"&::before, &::after":{...s,left:0,height:40,width:"100%"},"&::before":{top:-8,background:`linear-gradient(to bottom, ${r}`},"&::after":{bottom:-8,background:`linear-gradient(to top, ${r}`}}:{"&::before, &::after":{...s,top:0,width:40,height:"100%"},"&::before":{left:-8,background:`linear-gradient(to right, ${r}`},"&::after":{right:-8,background:`linear-gradient(to left, ${r}`}}}var ee=e=>{let[o,s]=useState(!0),[r,i]=useState(!0),n=useCallback(()=>{e&&e.scrollPrev();},[e]),t=useCallback(()=>{e&&e.scrollNext();},[e]),a=useCallback(u=>{s(!u.canScrollPrev()),i(!u.canScrollNext());},[]);return useEffect(()=>{e&&(a(e),e.on("reInit",a),e.on("select",a));},[e,a]),{disablePrev:o,disableNext:r,onClickPrev:n,onClickNext:t}};function te(e){let[o,s]=useState(!1),r=useCallback(n=>{let t=e?.plugins()?.autoplay;if(!t)return;(t.options.stopOnInteraction===!1?t.reset:t.stop)(),n();},[e]),i=useCallback(()=>{let n=e?.plugins()?.autoplay;if(!n)return;(n.isPlaying()?n.stop:n.play)();},[e]);return useEffect(()=>{let n=e?.plugins()?.autoplay;n&&(s(n.isPlaying()),e.on("autoplay:play",()=>s(!0)).on("autoplay:stop",()=>s(!1)).on("reInit",()=>s(!1)));},[e]),{isPlaying:o,onTogglePlay:i,onClickAutoplay:r}}function se(e){let[o,s]=useState(!1),r=useCallback(n=>{let t=e?.plugins()?.autoScroll;if(!t)return;(t.options.stopOnInteraction===!1?t.reset:t.stop)(),n();},[e]),i=useCallback(()=>{let n=e?.plugins()?.autoScroll;if(!n)return;(n.isPlaying()?n.stop:n.play)();},[e]);return useEffect(()=>{let n=e?.plugins()?.autoScroll;n&&(s(n.isPlaying()),e.on("autoScroll:play",()=>s(!0)).on("autoScroll:stop",()=>s(!1)).on("reInit",()=>s(!1)));},[e]),{isPlaying:o,onTogglePlay:i,onClickAutoplay:r}}function ne(e){let[o,s]=useState(0),[r,i]=useState(0),[n,t]=useState([]),a=useCallback(l=>{e&&e.scrollTo(l);},[e]),u=useCallback(l=>{t(l.scrollSnapList());},[]),p=useCallback(l=>{i(l.selectedScrollSnap()),s(l.scrollSnapList().length);},[]);return useEffect(()=>{e&&(u(e),p(e),e.on("reInit",u),e.on("reInit",p),e.on("select",p));},[e,u,p]),{dotCount:o,scrollSnaps:n,selectedIndex:r,onClickDot:a}}function le(e,o){let s=useRef(0),r=useRef([]),i=typeof o=="number"?o:.24,n=useCallback(u=>{r.current=u.slideNodes().map(p=>p.querySelector(".slide__parallax__layer"));},[]),t=useCallback(u=>{s.current=i*u.scrollSnapList().length;},[i]),a=useCallback((u,p)=>{let l=u.internalEngine(),m=u.scrollProgress(),d=u.slidesInView(),_=p==="scroll";u.scrollSnapList().forEach((y,b)=>{let x=y-m;l.slideRegistry[b].forEach(E=>{if(_&&!d.includes(E))return;l.options.loop&&l.slideLooper.loopPoints.forEach(M=>{let V=M.target();if(E===M.index&&V!==0){let F=Math.sign(V);F===-1&&(x=y-(1+m)),F===1&&(x=y+(1-m));}});let pe=x*(-1*s.current)*100,D=r.current[E];D&&(D.style.transform=`translateX(${pe}%)`);});});},[]);return useEffect(()=>{!e||!o||(n(e),t(e),a(e),e.on("reInit",n).on("reInit",t).on("reInit",a).on("scroll",a));},[e,a]),null}function ie(e){let[o,s]=useState(0),r=useCallback(i=>{let n=Math.max(0,Math.min(1,i.scrollProgress()));s(n*100);},[]);return useEffect(()=>{e&&(r(e),e.on("reInit",r),e.on("scroll",r));},[e,r]),{value:o}}function ce(e,o){let[s,r]=Ye({containScroll:"keepSnaps",dragFree:!0,...o}),[i,n]=useState(0),t=useCallback(u=>{!e||!r||e.scrollTo(u);},[e,r]),a=useCallback(()=>{!e||!r||(n(e.selectedScrollSnap()),r.scrollTo(e.selectedScrollSnap()));},[e,r,n]);return useEffect(()=>{e&&(a(),e.on("select",a),e.on("reInit",a));},[e,a]),{onClickThumb:t,thumbsRef:s,thumbsApi:r,selectedIndex:i}}var kt=(e,o)=>{let[s,r]=Ye(e,o),{disablePrev:i,disableNext:n,onClickPrev:t,onClickNext:a}=ee(r),u=o?.map(b=>b.name),p=ne(r),l=te(r),m=se(r),d=ie(r),_=ce(r,e?.thumbs);le(r,e?.parallax);let y=useMemo(()=>u?.includes("autoplay")?{onClickPrev:()=>l.onClickAutoplay(t),onClickNext:()=>l.onClickAutoplay(a)}:u?.includes("autoScroll")?{onClickPrev:()=>m.onClickAutoplay(t),onClickNext:()=>m.onClickAutoplay(a)}:{onClickPrev:t,onClickNext:a},[m,l,a,t,u]);return {options:{...e,...r?.internalEngine().options},pluginNames:u,mainRef:s,mainApi:r,arrows:{disablePrev:i,disableNext:n,onClickPrev:y.onClickPrev,onClickNext:y.onClickNext},dots:p,thumbs:_,progress:d,autoplay:l,autoScroll:m}};
|
|
15
15
|
|
|
16
|
-
export {
|
|
16
|
+
export { S as ArrowButton, uo as Carousel, So as CarouselArrowBasicButtons, vo as CarouselArrowFloatButtons, _o as CarouselArrowNumberButtons, Oo as CarouselDotButtons, Fo as CarouselProgressBar, P as CarouselSlide, et as CarouselThumb, Oe as CarouselThumbs, N as StyledContainer, I as StyledRoot, Ze as carouselBreakpoints, c as carouselClasses, kt as useCarousel };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { b } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
1
|
+
import { b } from '../../../chunk-63CPL562.js';
|
|
2
|
+
import '../../../chunk-PYQSTVMS.js';
|
|
3
3
|
import '../../../chunk-POYHCRBF.js';
|
|
4
4
|
import '../../../chunk-7K5LEO3G.js';
|
|
5
5
|
import '../../../chunk-T7I256S6.js';
|
|
6
6
|
import '../../../chunk-HIZ3EEIX.js';
|
|
7
|
-
import '../../../chunk-
|
|
7
|
+
import '../../../chunk-I3WCQOJG.js';
|
|
8
8
|
import '../../../chunk-P4KEDWSP.js';
|
|
9
9
|
import '../../../chunk-7QYYR6YS.js';
|
|
10
10
|
import '../../../chunk-KFZEM7KS.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { d as d$1 } from '../../../chunk-
|
|
2
|
-
import { d, e as e$1 } from '../../../chunk-
|
|
1
|
+
import { d as d$1 } from '../../../chunk-2MK3HC7U.js';
|
|
2
|
+
import { d, e as e$1 } from '../../../chunk-PYQSTVMS.js';
|
|
3
3
|
import { a as a$5 } from '../../../chunk-POYHCRBF.js';
|
|
4
4
|
import '../../../chunk-7K5LEO3G.js';
|
|
5
5
|
import '../../../chunk-T7I256S6.js';
|
|
6
6
|
import { e } from '../../../chunk-HIZ3EEIX.js';
|
|
7
7
|
import { a as a$3 } from '../../../chunk-YWEB6IAI.js';
|
|
8
|
-
import '../../../chunk-
|
|
8
|
+
import '../../../chunk-I3WCQOJG.js';
|
|
9
9
|
import { a as a$4 } from '../../../chunk-P4KEDWSP.js';
|
|
10
10
|
import '../../../chunk-7QYYR6YS.js';
|
|
11
11
|
import { a as a$2 } from '../../../chunk-KFZEM7KS.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a } from '../../chunk-
|
|
1
|
+
import { a } from '../../chunk-HRELVSCJ.js';
|
|
2
2
|
import '../../chunk-ZDHXW74M.js';
|
|
3
|
-
import '../../chunk-
|
|
3
|
+
import '../../chunk-I3WCQOJG.js';
|
|
4
4
|
import C from '@mui/material/TableCell';
|
|
5
5
|
import F from '@mui/material/TableRow';
|
|
6
6
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { a as UploadAvatar, b as UploadAvatarWithCrop, b as UploadWithCrop } from '../../chunk-
|
|
2
|
-
export { c as DeleteButton, a as MultiFilePreview, b as SingleFilePreview, d as Upload } from '../../chunk-
|
|
3
|
-
export { c as RejectionFiles } from '../../chunk-
|
|
1
|
+
export { a as UploadAvatar, b as UploadAvatarWithCrop, b as UploadWithCrop } from '../../chunk-63CPL562.js';
|
|
2
|
+
export { c as DeleteButton, a as MultiFilePreview, b as SingleFilePreview, d as Upload } from '../../chunk-2MK3HC7U.js';
|
|
3
|
+
export { c as RejectionFiles } from '../../chunk-PYQSTVMS.js';
|
|
4
4
|
import '../../chunk-POYHCRBF.js';
|
|
5
5
|
import '../../chunk-7K5LEO3G.js';
|
|
6
6
|
import '../../chunk-T7I256S6.js';
|
|
7
7
|
import '../../chunk-HIZ3EEIX.js';
|
|
8
|
-
import { i } from '../../chunk-
|
|
8
|
+
import { i, j } from '../../chunk-I3WCQOJG.js';
|
|
9
9
|
import '../../chunk-P4KEDWSP.js';
|
|
10
10
|
import '../../chunk-7QYYR6YS.js';
|
|
11
11
|
import '../../chunk-KFZEM7KS.js';
|
|
@@ -14,9 +14,9 @@ import '../../chunk-W3MYAMTH.js';
|
|
|
14
14
|
import '../../chunk-CPOHV43Y.js';
|
|
15
15
|
import '../../chunk-ILHUUK4X.js';
|
|
16
16
|
import { useDropzone } from 'react-dropzone';
|
|
17
|
-
import
|
|
17
|
+
import h from '@mui/material/Box';
|
|
18
18
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
19
19
|
|
|
20
|
-
function
|
|
20
|
+
function R({error:a,disabled:t,sx:i$1,...n}){let{getRootProps:l,getInputProps:m,isDragActive:f,isDragReject:s}=useDropzone({disabled:t,...n}),d=s||a;return jsxs(h,{...l(),sx:{width:64,height:64,flexShrink:0,display:"flex",borderRadius:1,cursor:"pointer",alignItems:"center",color:"text.disabled",justifyContent:"center",bgcolor:o=>i(j(o).palette.grey["500Channel"],.08),border:o=>`dashed 1px ${i(j(o).palette.grey["500Channel"],.16)}`,...f&&{opacity:.72},...t&&{opacity:.48,pointerEvents:"none"},...d&&{color:"error.main",borderColor:"error.main",bgcolor:o=>i(j(o).palette.error.mainChannel,.08)},"&:hover":{opacity:.72},...i$1},children:[jsx("input",{...m()}),"Selecionar arquivo"]})}
|
|
21
21
|
|
|
22
|
-
export {
|
|
22
|
+
export { R as UploadBox };
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import * as _mui_material from '@mui/material';
|
|
2
|
+
import * as _mui_x_date_pickers_internals from '@mui/x-date-pickers/internals';
|
|
3
|
+
import * as _mui_x_date_pickers from '@mui/x-date-pickers';
|
|
4
|
+
import * as _mui_x_data_grid from '@mui/x-data-grid';
|
|
5
|
+
|
|
6
|
+
declare const allLangs: {
|
|
7
|
+
value: string;
|
|
8
|
+
label: string;
|
|
9
|
+
countryCode: string;
|
|
10
|
+
adapterLocale: string;
|
|
11
|
+
numberFormat: {
|
|
12
|
+
code: string;
|
|
13
|
+
currency: string;
|
|
14
|
+
};
|
|
15
|
+
systemValue: {
|
|
16
|
+
components: {
|
|
17
|
+
MuiDataGrid: {
|
|
18
|
+
defaultProps: {
|
|
19
|
+
localeText: Partial<_mui_x_data_grid.GridLocaleText>;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
MuiLocalizationProvider: {
|
|
23
|
+
defaultProps: {
|
|
24
|
+
localeText: {
|
|
25
|
+
previousMonth?: string | undefined;
|
|
26
|
+
nextMonth?: string | undefined;
|
|
27
|
+
calendarWeekNumberHeaderLabel?: string | undefined;
|
|
28
|
+
calendarWeekNumberHeaderText?: string | undefined;
|
|
29
|
+
calendarWeekNumberAriaLabelText?: ((weekNumber: number) => string) | undefined;
|
|
30
|
+
calendarWeekNumberText?: ((weekNumber: number) => string) | undefined;
|
|
31
|
+
openPreviousView?: string | undefined;
|
|
32
|
+
openNextView?: string | undefined;
|
|
33
|
+
calendarViewSwitchingButtonAriaLabel?: ((currentView: _mui_x_date_pickers.DateView) => string) | undefined;
|
|
34
|
+
start?: string | undefined;
|
|
35
|
+
end?: string | undefined;
|
|
36
|
+
startDate?: string | undefined;
|
|
37
|
+
startTime?: string | undefined;
|
|
38
|
+
endDate?: string | undefined;
|
|
39
|
+
endTime?: string | undefined;
|
|
40
|
+
cancelButtonLabel?: string | undefined;
|
|
41
|
+
clearButtonLabel?: string | undefined;
|
|
42
|
+
okButtonLabel?: string | undefined;
|
|
43
|
+
todayButtonLabel?: string | undefined;
|
|
44
|
+
clockLabelText?: ((view: _mui_x_date_pickers.TimeView, time: any, utils: _mui_x_date_pickers.MuiPickersAdapter<any, any>, formattedTime?: string | null | undefined) => string) | undefined;
|
|
45
|
+
hoursClockNumberText?: ((hours: string) => string) | undefined;
|
|
46
|
+
minutesClockNumberText?: ((minutes: string) => string) | undefined;
|
|
47
|
+
secondsClockNumberText?: ((seconds: string) => string) | undefined;
|
|
48
|
+
selectViewText?: ((view: _mui_x_date_pickers_internals.TimeViewWithMeridiem) => string) | undefined;
|
|
49
|
+
openDatePickerDialogue?: ((date: any, utils: _mui_x_date_pickers.MuiPickersAdapter<any, any>, formattedDate: string | null) => string) | undefined;
|
|
50
|
+
openTimePickerDialogue?: ((date: any, utils: _mui_x_date_pickers.MuiPickersAdapter<any, any>, formattedTime: string | null) => string) | undefined;
|
|
51
|
+
fieldClearLabel?: string | undefined;
|
|
52
|
+
timeTableLabel?: string | undefined;
|
|
53
|
+
dateTableLabel?: string | undefined;
|
|
54
|
+
fieldYearPlaceholder?: ((params: {
|
|
55
|
+
digitAmount: number;
|
|
56
|
+
format: string;
|
|
57
|
+
}) => string) | undefined;
|
|
58
|
+
fieldMonthPlaceholder?: ((params: {
|
|
59
|
+
contentType: _mui_x_date_pickers.FieldSectionContentType;
|
|
60
|
+
format: string;
|
|
61
|
+
}) => string) | undefined;
|
|
62
|
+
fieldDayPlaceholder?: ((params: {
|
|
63
|
+
format: string;
|
|
64
|
+
}) => string) | undefined;
|
|
65
|
+
fieldWeekDayPlaceholder?: ((params: {
|
|
66
|
+
contentType: _mui_x_date_pickers.FieldSectionContentType;
|
|
67
|
+
format: string;
|
|
68
|
+
}) => string) | undefined;
|
|
69
|
+
fieldHoursPlaceholder?: ((params: {
|
|
70
|
+
format: string;
|
|
71
|
+
}) => string) | undefined;
|
|
72
|
+
fieldMinutesPlaceholder?: ((params: {
|
|
73
|
+
format: string;
|
|
74
|
+
}) => string) | undefined;
|
|
75
|
+
fieldSecondsPlaceholder?: ((params: {
|
|
76
|
+
format: string;
|
|
77
|
+
}) => string) | undefined;
|
|
78
|
+
fieldMeridiemPlaceholder?: ((params: {
|
|
79
|
+
format: string;
|
|
80
|
+
}) => string) | undefined;
|
|
81
|
+
year?: string | undefined;
|
|
82
|
+
month?: string | undefined;
|
|
83
|
+
day?: string | undefined;
|
|
84
|
+
weekDay?: string | undefined;
|
|
85
|
+
hours?: string | undefined;
|
|
86
|
+
minutes?: string | undefined;
|
|
87
|
+
seconds?: string | undefined;
|
|
88
|
+
meridiem?: string | undefined;
|
|
89
|
+
empty?: string | undefined;
|
|
90
|
+
datePickerToolbarTitle?: string | undefined;
|
|
91
|
+
timePickerToolbarTitle?: string | undefined;
|
|
92
|
+
dateTimePickerToolbarTitle?: string | undefined;
|
|
93
|
+
dateRangePickerToolbarTitle?: string | undefined;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
MuiAlert?: {
|
|
98
|
+
defaultProps: Pick<_mui_material.AlertProps, "closeText">;
|
|
99
|
+
} | undefined;
|
|
100
|
+
MuiBreadcrumbs?: {
|
|
101
|
+
defaultProps: Pick<_mui_material.BreadcrumbsProps, "expandText">;
|
|
102
|
+
} | undefined;
|
|
103
|
+
MuiTablePagination?: {
|
|
104
|
+
defaultProps: Pick<_mui_material.TablePaginationProps, "getItemAriaLabel" | "labelDisplayedRows" | "labelRowsPerPage">;
|
|
105
|
+
} | undefined;
|
|
106
|
+
MuiRating?: {
|
|
107
|
+
defaultProps: Pick<_mui_material.RatingProps, "emptyLabelText" | "getLabelText">;
|
|
108
|
+
} | undefined;
|
|
109
|
+
MuiAutocomplete?: {
|
|
110
|
+
defaultProps: Pick<_mui_material.AutocompleteProps<any, any, any, any, "div">, "clearText" | "closeText" | "loadingText" | "noOptionsText" | "openText">;
|
|
111
|
+
} | undefined;
|
|
112
|
+
MuiPagination?: {
|
|
113
|
+
defaultProps: Pick<_mui_material.PaginationProps, "aria-label" | "getItemAriaLabel">;
|
|
114
|
+
} | undefined;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
}[];
|
|
118
|
+
|
|
119
|
+
export { allLangs };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { a as allLangs } from '../chunk-OGS2HFSH.js';
|
package/dist/theme/core/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { b as defaultFont, c as primaryFont, d as secondaryFont, a as shadows, e as typography } from '../../chunk-
|
|
2
|
-
export { m as action, k as background, l as baseAction, n as basePalette, q as colorSchemes, i as common, a as components, r as createShadowColor, s as customShadows, p as darkPalette, h as error, b as grey, e as info, o as lightPalette, c as primary, d as secondary, f as success, j as text, g as warning } from '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
1
|
+
export { b as defaultFont, c as primaryFont, d as secondaryFont, a as shadows, e as typography } from '../../chunk-UL4XNPI2.js';
|
|
2
|
+
export { m as action, k as background, l as baseAction, n as basePalette, q as colorSchemes, i as common, a as components, r as createShadowColor, s as customShadows, p as darkPalette, h as error, b as grey, e as info, o as lightPalette, c as primary, d as secondary, f as success, j as text, g as warning } from '../../chunk-MQZWHADG.js';
|
|
3
|
+
import '../../chunk-I3WCQOJG.js';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as _mui_material_styles_createTypography from '@mui/material/styles/createTypography';
|
|
2
2
|
import * as csstype from 'csstype';
|
|
3
|
+
import * as _mui_material_styles from '@mui/material/styles';
|
|
3
4
|
import { CSSObject, Theme } from '@mui/material/styles';
|
|
4
5
|
|
|
5
6
|
/**
|
|
@@ -11,12 +12,12 @@ declare const hideScrollX: CSSObject;
|
|
|
11
12
|
declare const hideScrollY: CSSObject;
|
|
12
13
|
/**
|
|
13
14
|
* Usage:
|
|
14
|
-
* ...textGradient(`to right, ${theme.
|
|
15
|
+
* ...textGradient(`to right, ${getPalette(theme).palette.text.primary}, ${alpha(getPalette(theme).palette.text.primary, 0.2)}`
|
|
15
16
|
*/
|
|
16
17
|
declare function textGradient(color: string): CSSObject;
|
|
17
18
|
/**
|
|
18
19
|
* Usage:
|
|
19
|
-
* ...borderGradient({ color: `to right, ${theme.
|
|
20
|
+
* ...borderGradient({ color: `to right, ${getPalette(theme).palette.text.primary}, ${alpha(getPalette(theme).palette.text.primary, 0.2)}`, padding: '4px' }),
|
|
20
21
|
*/
|
|
21
22
|
type BorderGradientProps = {
|
|
22
23
|
color?: string;
|
|
@@ -25,7 +26,7 @@ type BorderGradientProps = {
|
|
|
25
26
|
declare function borderGradient(props?: BorderGradientProps): CSSObject;
|
|
26
27
|
/**
|
|
27
28
|
* Usage:
|
|
28
|
-
* ...bgGradient({ color: `to right, ${theme.
|
|
29
|
+
* ...bgGradient({ color: `to right, ${getPalette(theme).palette.grey[900]} 25%, ${varAlpha(getPalette(theme).palette.primary.darkerChannel, 0.88)}`, imgUrl: '/assets/background/overlay.png' }),
|
|
29
30
|
*/
|
|
30
31
|
type BgGradientProps = {
|
|
31
32
|
color: string;
|
|
@@ -34,7 +35,7 @@ type BgGradientProps = {
|
|
|
34
35
|
declare function bgGradient({ color, imgUrl }: BgGradientProps): CSSObject;
|
|
35
36
|
/**
|
|
36
37
|
* Usage:
|
|
37
|
-
* ...bgBlur({ color: `varAlpha(theme.
|
|
38
|
+
* ...bgBlur({ color: `varAlpha(getPalette(theme).palette.background.paperChannel, 0.8)`, imgUrl: '/assets/background/overlay.png', blur: 6 }),
|
|
38
39
|
*/
|
|
39
40
|
type BgBlurProps = {
|
|
40
41
|
color: string;
|
|
@@ -58,7 +59,7 @@ type MaxLineProps = {
|
|
|
58
59
|
declare function maxLine({ line, persistent }: MaxLineProps): CSSObject;
|
|
59
60
|
/**
|
|
60
61
|
* Usage:
|
|
61
|
-
* ...paper({ theme, color: varAlpha(theme.
|
|
62
|
+
* ...paper({ theme, color: varAlpha(getPalette(theme).palette.background.paperChannel, 0.9), dropdown: true }),
|
|
62
63
|
*/
|
|
63
64
|
type PaperProps = {
|
|
64
65
|
theme: Theme;
|
|
@@ -1910,5 +1911,6 @@ declare function createPaletteChannel(hexPalette: Record<string, string>): {
|
|
|
1910
1911
|
* Color with alpha channel
|
|
1911
1912
|
*/
|
|
1912
1913
|
declare function varAlpha(color: string, opacity?: number): string;
|
|
1914
|
+
declare const getPalette: (theme: Theme) => _mui_material_styles.ThemeVars;
|
|
1913
1915
|
|
|
1914
|
-
export { BgBlurProps, BgGradientProps, BorderGradientProps, MaxLineProps, MediaFontSize, bgBlur, bgGradient, borderGradient, createPaletteChannel, hexToRgbChannel, hideScrollX, hideScrollY, maxLine, mediaQueries, menuItem, paper, pxToRem, remToPx, responsiveFontSizes, setFont, stylesMode, textGradient, varAlpha };
|
|
1916
|
+
export { BgBlurProps, BgGradientProps, BorderGradientProps, MaxLineProps, MediaFontSize, bgBlur, bgGradient, borderGradient, createPaletteChannel, getPalette, hexToRgbChannel, hideScrollX, hideScrollY, maxLine, mediaQueries, menuItem, paper, pxToRem, remToPx, responsiveFontSizes, setFont, stylesMode, textGradient, varAlpha };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { p as bgBlur, o as bgGradient, n as borderGradient, h as createPaletteChannel, j as getPalette, g as hexToRgbChannel, k as hideScrollX, l as hideScrollY, q as maxLine, b as mediaQueries, s as menuItem, r as paper, e as pxToRem, d as remToPx, f as responsiveFontSizes, c as setFont, a as stylesMode, m as textGradient, i as varAlpha } from '../../chunk-I3WCQOJG.js';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export { a as default } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { a as default } from '../chunk-ZD4A6AP3.js';
|
|
2
|
+
import '../chunk-UL4XNPI2.js';
|
|
3
|
+
import '../chunk-4BAL5HQX.js';
|
|
4
4
|
import '../chunk-CFVUZ4S5.js';
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-MQZWHADG.js';
|
|
6
|
+
import '../chunk-OGS2HFSH.js';
|
|
7
|
+
import '../chunk-I3WCQOJG.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as buildPrimaryColors, b as updateComponentsWithSettings, a as updateCoreWithSettings } from '../../chunk-
|
|
1
|
+
export { c as buildPrimaryColors, b as updateComponentsWithSettings, a as updateCoreWithSettings } from '../../chunk-4BAL5HQX.js';
|
|
2
2
|
import '../../chunk-CFVUZ4S5.js';
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
3
|
+
import '../../chunk-MQZWHADG.js';
|
|
4
|
+
import '../../chunk-I3WCQOJG.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zydon/common",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.72",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -45,6 +45,10 @@
|
|
|
45
45
|
"import": "./dist/theme/core/index.js",
|
|
46
46
|
"types": "./dist/theme/core/index.d.ts"
|
|
47
47
|
},
|
|
48
|
+
"./locales": {
|
|
49
|
+
"import": "./dist/locales/all-langs.js",
|
|
50
|
+
"types": "./dist/locales/all-langs.d.ts"
|
|
51
|
+
},
|
|
48
52
|
"./theme/styles": {
|
|
49
53
|
"import": "./dist/theme/styles/index.js",
|
|
50
54
|
"types": "./dist/theme/styles/index.d.ts"
|
package/dist/chunk-2ASANKMO.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { e } from './chunk-HIZ3EEIX.js';
|
|
2
|
-
import { i, o } from './chunk-D27ND54J.js';
|
|
3
|
-
import { a } from './chunk-P4KEDWSP.js';
|
|
4
|
-
import B from '@mui/material/Box';
|
|
5
|
-
import J from '@mui/material/Paper';
|
|
6
|
-
import Q from '@mui/material/Typography';
|
|
7
|
-
import P from '@mui/material/ButtonBase';
|
|
8
|
-
import M from '@mui/material/IconButton';
|
|
9
|
-
import { styled, alpha, useTheme } from '@mui/material/styles';
|
|
10
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
11
|
-
import v from '@mui/material/Stack';
|
|
12
|
-
import $ from '@mui/material/Tooltip';
|
|
13
|
-
import ee from '@mui/material/CircularProgress';
|
|
14
|
-
|
|
15
|
-
function k({sx:t,...e}){let o$1=useTheme();return jsx(P,{sx:{p:0,top:0,right:0,width:1,height:1,zIndex:9,opacity:0,position:"absolute",color:"common.white",borderRadius:"inherit",transition:o$1.transitions.create(["opacity"]),"&:hover":{...o({color:i(o$1.vars.palette.grey["900Channel"],.64)}),opacity:1},...t},...e,children:jsx(a,{icon:"ARROW_DOWN_CICLE",width:24})})}function T({sx:t,...e}){return jsx(M,{size:"small",sx:{p:.35,top:4,right:4,position:"absolute",color:"common.white",bgcolor:o=>i(o.vars.palette.grey["900Channel"],.48),"&:hover":{bgcolor:o=>i(o.vars.palette.grey["900Channel"],.72)},...t},...e,children:jsx(a,{icon:"CLOSE_MARK_BUTTON",width:12})})}var s={root:"mnl__file__thumbnail__root",img:"mnl__file__thumbnail__img",icon:"mnl__file__thumbnail__icon",removeBtn:"mnl__file__thumbnail__remove__button",downloadBtn:"mnl__file__thumbnail__download__button"};var E=["pdf"],z=["txt"],L=["psd"],S=["doc","docx"],N=["xls","xlsx"],W=["zip","rar","iso"],j=["ai","esp"],U=["ppt","pptx"],X=["wav","aif","mp3","aac"],G=["jpg","jpeg","gif","bmp","png","svg","webp"],H=["m4v","avi","mpg","mp4","webm"];function u(t){let e,o=d(t);switch(t.includes(o)){case z.includes(o):e="txt";break;case W.includes(o):e="zip";break;case X.includes(o):e="audio";break;case G.includes(o):e="image";break;case H.includes(o):e="video";break;case S.includes(o):e="word";break;case N.includes(o):e="excel";break;case U.includes(o):e="powerpoint";break;case E.includes(o):e="pdf";break;case L.includes(o):e="photoshop";break;case j.includes(o):e="illustrator";break;case t?.startsWith("http"):e="image";break;default:e=d(t);}return e}function C(t){let e;switch(u(t)){case"folder":e="IC_FOLDER";break;case"txt":e="IC_TXT";break;case"zip":e="IC_ZIP";break;case"audio":e="IC_AUDIO";break;case"video":e="IC_VIDEO";break;case"word":e="IC_WORD";break;case"excel":e="IC_EXCEL";break;case"powerpoint":e="IC_POWER_POINT";break;case"pdf":e="IC_PDF";break;case"photoshop":e="IC_PTS";break;case"illustrator":e="IC_AI";break;case"image":e="IC_IMG";break;default:e="IC_FILE";}return e}function d(t){return t&&t.split(".").pop()||""}function V(t){return t.split("/").pop()}function l(t){return typeof t=="string"?{key:t,preview:t,name:V(t),type:d(t),size:void 0,path:t,lastModified:void 0,lastModifiedDate:void 0}:{key:`key:${t.name}`,name:t.name,size:t.size,path:t.path,type:t.type,preview:t.preview,lastModified:t.lastModified,lastModifiedDate:t.lastModifiedDate}}function ge({sx:t,file:e,tooltip:o,onRemove:i,imageView:m,slotProps:r,onDownload:b,...w}){let _=typeof e=="string"?e:URL.createObjectURL(e),{name:O,path:R}=l(e),g=u(R||_),F=jsx(B,{component:"img",src:_,className:s.img,sx:{width:1,height:1,objectFit:"cover",borderRadius:"inherit",...r?.img}}),A=jsx(a,{icon:C(g),sx:{width:32,height:32,flexShrink:0,...t}}),x=jsxs(v,{component:"span",className:s.root,sx:{width:36,height:36,flexShrink:0,borderRadius:1.25,alignItems:"center",position:"relative",display:"inline-flex",justifyContent:"center",...t},...w,children:[g==="image"&&m?F:A,i&&jsx(T,{onClick:i,className:s.removeBtn,sx:r?.removeBtn}),b&&jsx(k,{onClick:b,className:s.downloadBtn,sx:r?.downloadBtn})]});return o?jsx($,{arrow:!0,title:O,slotProps:{popper:{modifiers:[{name:"offset",options:{offset:[0,-12]}}]}},children:x}):x}function Ae({files:t}){return t.length?jsx(J,{variant:"outlined",sx:{py:1,px:2,mt:3,textAlign:"left",borderStyle:"dashed",borderColor:"error.main",bgcolor:e=>i(e.vars.palette.error.mainChannel,.08)},children:t.map(({file:e$1,errors:o})=>{let{path:i,size:m}=l(e$1);return jsxs(B,{sx:{my:1},children:[jsxs(Q,{variant:"subtitle2",noWrap:!0,children:[i," - ",m?e(m):""]}),o.map(r=>jsxs(B,{component:"span",sx:{typography:"caption"},children:["- ",r.message]},r.code))]},i)})}):null}var Le=styled(v)({position:"relative",width:"100%",borderRadius:8,overflow:"hidden","&:hover .actions":{display:"flex"}}),Se=styled(v)(({theme:t})=>({display:"none",position:"absolute",alignItems:"center",justifyContent:"center",flexDirection:"row",gap:12,width:"100%",height:"100%",backgroundColor:alpha(t.palette.primary.main,.9),zIndex:999,button:{"&, &:hover, &:focus":{backgroundColor:"#fff"}}})),Ne=styled(ee)({position:"absolute",width:"100%",height:"100%",zIndex:99,backgroundColor:"#fff",borderRadius:"50%"});
|
|
16
|
-
|
|
17
|
-
export { l as a, ge as b, Ae as c, Le as d, Se as e, Ne as f };
|