@zydon/common 2.5.72 → 2.5.74
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-XM3B2QEF.js +11 -0
- package/dist/chunk-XSNVHQNH.js +5 -0
- package/dist/chunk-ZFSIWZQI.js +7 -0
- package/dist/components/AvatarButton/index.d.ts +23 -0
- package/dist/components/AvatarButton/index.js +17 -0
- package/dist/components/CardBrandText/index.js +1 -1
- package/dist/components/Common/index.js +2 -2
- package/dist/components/DataView/index.js +1 -1
- package/dist/components/EasyCropModal/index.js +2 -2
- package/dist/components/FileUpload/index.js +3 -3
- package/dist/components/ThemeToggle/index.js +1 -1
- package/dist/components/WebhookCard/index.js +1 -1
- package/dist/components/form/Address/index.js +1 -1
- package/dist/components/form/UploadAvatarWithCrop/index.js +2 -2
- package/dist/components/form/UploadWithCrop/index.js +3 -3
- package/dist/components/upload/index.js +4 -4
- package/dist/theme/enhanced-theme-provider.js +2 -2
- package/dist/theme/settings-provider.js +1 -1
- package/dist/theme/styles/index.d.ts +1 -1
- package/dist/utils/flagCard.js +1 -1
- package/package.json +2 -1
- package/dist/chunk-42S2A5ST.js +0 -7
- package/dist/chunk-7KQMMZCF.js +0 -11
- package/dist/chunk-IOM423QH.js +0 -3
- package/dist/{chunk-F7LZTG5Z.js → chunk-6PZBE3PS.js} +2 -2
- package/dist/{chunk-L6LOPBWU.js → chunk-CHPWVARV.js} +1 -1
- package/dist/{chunk-M7BY6VXI.js → chunk-KMFICXI2.js} +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { b as b$1, a as a$1 } from './chunk-FHG3IGXY.js';
|
|
2
|
+
import { a } from './chunk-GUFT6XPG.js';
|
|
3
|
+
import { c, b } from './chunk-ZFSIWZQI.js';
|
|
4
|
+
import { useMemo } from 'react';
|
|
5
|
+
import f from '@mui/material/CssBaseline';
|
|
6
|
+
import { Experimental_CssVarsProvider } from '@mui/material/styles';
|
|
7
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
8
|
+
|
|
9
|
+
var S=({children:a$2,cssVarPrefix:o,enableSystemTheme:t=!0})=>{let{settings:e}=b(),r=useMemo(()=>b$1(a[1].systemValue,{primaryColor:e.primaryColor,colorScheme:e.colorScheme,contrast:e.contrast,navLayout:e.navLayout,navColor:e.navColor,compactLayout:e.compactLayout,fontFamily:e.fontFamily},o),[e,o]),i=useMemo(()=>{let s={theme:r,defaultMode:t?"system":e.colorScheme,defaultColorScheme:e.colorScheme,modeStorageKey:a$1.modeStorageKey,...t&&{colorSchemeStorageKey:`${a$1.modeStorageKey}-scheme`}};return console.log("\u{1F3A8} EnhancedThemeProvider Config:",{enableSystemTheme:t,settingsColorScheme:e.colorScheme,defaultMode:s.defaultMode,defaultColorScheme:s.defaultColorScheme,modeStorageKey:s.modeStorageKey}),s},[r,e.colorScheme,t]);return jsxs(Experimental_CssVarsProvider,{...i,children:[jsx(f,{}),a$2]})},p=({children:a,defaultSettings:o,storageKey:t="b2b-theme-settings",cssVarPrefix:e,enableSystemTheme:r=!0})=>{let i=useMemo(()=>({primaryColor:"#4E5BEC",fontFamily:"Public Sans",compactLayout:!0,colorScheme:"light",contrast:"default",navColor:"integrate",navLayout:"vertical",...o}),[o]);return jsx(c,{defaultSettings:i,storageKey:t,children:jsx(S,{cssVarPrefix:e,enableSystemTheme:r,children:a})})},K=({primaryColor:a,children:o,colorScheme:t="light",contrast:e="default",cssVarPrefix:r})=>jsx(p,{defaultSettings:{primaryColor:a,colorScheme:t,contrast:e},cssVarPrefix:r,enableSystemTheme:!1,children:o});
|
|
10
|
+
|
|
11
|
+
export { p as a, K as b };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import a from 'card-validator';
|
|
2
|
+
|
|
3
|
+
var s=e=>{let{card:r}=a.number(e);if(!r)return "GENERIC";switch(r.type){case"visa":return "VISA";case"mastercard":return "MASTERCARD";case"american-express":return "AMEX";case"discover":return "DISCOVER";case"diners-club":return "DINERSCLUB";case"jcb":return "JCB";case"unionpay":return "UNIONPAY";case"maestro":return "MAESTRO";case"hipercard":return "HIPERCARD";case"elo":return "ELO";default:return "GENERIC"}};
|
|
4
|
+
|
|
5
|
+
export { s as a };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { a } from './chunk-QQDMA4TE.js';
|
|
2
|
+
import { createContext, useContext, useCallback, useMemo } from 'react';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
var P=createContext(void 0),b=()=>{let a=useContext(P);if(!a)throw new Error("useSettingsContext deve ser usado dentro de um SettingsProvider");return a},R=({children:a$1,defaultSettings:i,storageKey:c="theme-settings"})=>{let[r,t]=a(c,i),d=useCallback(()=>typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",[]),h=useCallback(()=>{let e=r.colorScheme==="light"?"dark":"light";t(o=>({...o,colorScheme:e}));},[r.colorScheme,t]),s=useCallback(e=>{t(o=>({...o,colorScheme:e}));},[t]),l=useCallback(e=>{t(o=>({...o,primaryColor:e}));},[t]),m=useCallback(e=>{t(o=>({...o,contrast:e}));},[t]),C=useCallback(e=>{t(o=>({...o,fontFamily:e}));},[t]),u=useCallback(e=>{t(o=>({...o,navLayout:e}));},[t]),S=useCallback(e=>{t(o=>({...o,navColor:e}));},[t]),p=useCallback(e=>{t(o=>({...o,compactLayout:e}));},[t]),v=useCallback(()=>{t(i);},[i,t]),y=useMemo(()=>JSON.stringify(r)!==JSON.stringify(i),[r,i]),x=useCallback(()=>{let e=d();r.colorScheme!==e&&s(e);},[d,r.colorScheme,s]),f=useCallback(()=>{if(typeof window<"u"&&window.matchMedia){let e=window.matchMedia("(prefers-color-scheme: dark)"),o=()=>x();return e.addEventListener("change",o),()=>e.removeEventListener("change",o)}return ()=>{}},[x]);useMemo(()=>f(),[f]);let L=useMemo(()=>(console.log("\u2699\uFE0F SettingsProvider Context:",{settings:r,storageKey:c,defaultSettings:i}),{settings:r,onToggleMode:h,onChangeMode:s,onChangePrimaryColor:l,onChangeContrast:m,onChangeFontFamily:C,onChangeNavLayout:u,onChangeNavColor:S,onChangeCompactLayout:p,onResetSettings:v,canReset:y}),[r,c,i,h,s,l,m,C,u,S,p,v,y]);return jsx(P.Provider,{value:L,children:a$1})};
|
|
6
|
+
|
|
7
|
+
export { P as a, b, R as c };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { Icon } from '../../types/icon.js';
|
|
3
|
+
|
|
4
|
+
interface AvatarButtonProps {
|
|
5
|
+
name: string;
|
|
6
|
+
email: string;
|
|
7
|
+
src?: string;
|
|
8
|
+
content?: React.ReactNode;
|
|
9
|
+
menuItems?: {
|
|
10
|
+
icon: keyof typeof Icon;
|
|
11
|
+
label: string;
|
|
12
|
+
onClick?: () => void;
|
|
13
|
+
component?: React.ElementType;
|
|
14
|
+
to?: string;
|
|
15
|
+
}[];
|
|
16
|
+
subContent?: React.ReactNode;
|
|
17
|
+
logout: () => void;
|
|
18
|
+
loadingLogout?: boolean;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare const AvatarButton: ({ name, email, src, content, menuItems, subContent, logout, loadingLogout, }: AvatarButtonProps) => react_jsx_runtime.JSX.Element;
|
|
22
|
+
|
|
23
|
+
export { AvatarButton as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { a } from '../../chunk-HOMGLSVS.js';
|
|
2
|
+
import { a as a$3 } from '../../chunk-P26W2RT7.js';
|
|
3
|
+
import '../../chunk-QGFD5EQE.js';
|
|
4
|
+
import { a as a$2 } from '../../chunk-NF42ENKE.js';
|
|
5
|
+
import { a as a$1 } from '../../chunk-ORYAES3Q.js';
|
|
6
|
+
import L from '@mui/material/Avatar';
|
|
7
|
+
import d from '@mui/material/Divider';
|
|
8
|
+
import s from '@mui/material/Stack';
|
|
9
|
+
import c from '@mui/material/Typography';
|
|
10
|
+
import T from '@mui/lab/LoadingButton';
|
|
11
|
+
import P from '@mui/material/Button';
|
|
12
|
+
import { styled, alpha } from '@mui/material/styles';
|
|
13
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
14
|
+
|
|
15
|
+
var b=styled(s)({width:40,height:40,alignItems:"center",justifyContent:"center",borderRadius:"50%",border:"2px solid #1C1C1C",cursor:"pointer"}),x=styled(a)(({theme:o})=>({width:322,marginTop:20,"& .MuiPopover-paper":{width:540,padding:0,backgroundColor:o.palette.common.white,borderRadius:o.spacing(1),backgroundImage:"none"}})),I=styled(s)(({theme:o})=>({alignItems:"center",justifyContent:"center",gap:o.spacing(1.5),padding:o.spacing(3),backgroundColor:alpha(o.palette.primary.main,.04)})),i=styled(s)(({theme:o})=>({alignItems:"flex-start",padding:o.spacing(1.5,2.5)})),h=styled(P)(({theme:o})=>({width:"100%",alignItems:"flex-start",justifyContent:"flex-start",color:o.palette.text.primary})),w=styled(s)(({theme:o})=>({display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:o.spacing(2),cursor:"pointer"})),p=styled(s)(({theme:o})=>({alignItems:"center",gap:o.spacing(1),color:o.palette.text.secondary,textAlign:"center","&:hover":{color:o.palette.primary.main}})),k=styled(T)(({theme:o})=>({width:"100%",alignItems:"flex-start",justifyContent:"flex-start",color:o.palette.error.main}));var _=({name:o,email:z,src:A,content:m,menuItems:g,subContent:f,logout:B,loadingLogout:y})=>{let u=a$1();return jsxs(Fragment,{children:[jsx(b,{"data-testid":"avatar-trigger-button",children:jsx(a$2,{alt:o,name:o,src:A,onClick:u.onOpen,"data-testid":"avatar-trigger",sx:{maxWidth:34,maxHeight:34}})}),jsxs(x,{open:u.open,onClose:u.onClose,arrow:"top-right",disableRestoreFocus:!0,"data-testid":"avatar-menu",children:[jsxs(I,{"data-testid":"avatar-account",children:[jsx(L,{sx:{bgcolor:"success.lighter",color:"success.main",width:60,height:60},"data-testid":"avatar-initials",children:o.slice(0,2).toUpperCase()}),jsxs(s,{alignItems:"center",textAlign:"center",children:[jsx(c,{variant:"subtitle1",fontSize:"subtitle1.fontSize",color:"text.primary",children:o}),jsx(c,{variant:"body2",fontSize:"subtitle1.fontSize",color:"text.secondary",children:z})]})]}),jsx(d,{}),m&&jsxs(Fragment,{children:[jsx(i,{"data-testid":"avatar-content",children:m}),jsx(d,{})]}),g&&jsxs(Fragment,{children:[jsx(i,{"data-testid":"avatar-menu-items",children:g.map(r=>jsx(h,{"data-testid":`avatar-menu-item-${r.label.toLowerCase().replace(/\s+/g,"-")}`,startIcon:jsx(a$3,{icon:r.icon,color:"text.primary"}),size:"small",...r.component&&{component:r.component,to:r.to},...r.onClick&&{onClick:r.onClick},children:jsxs(s,{width:"100%",direction:"row",alignItems:"center",justifyContent:"space-between",children:[r.label,jsx(a$3,{icon:"ARROW_RIGHT_SIMPLE",color:"text.primary"})]})},r.label))}),jsx(d,{})]}),f&&jsxs(Fragment,{children:[jsx(i,{"data-testid":"avatar-subcontent",children:f}),jsx(d,{})]}),jsx(i,{"data-testid":"avatar-resources",children:jsxs(w,{children:[jsxs(p,{"data-testid":"resource-discord",onClick:()=>window.open("https://discord.gg/HMpBbABGVW","_blank"),children:[jsx(a$3,{icon:"DISCORD",color:"primary.main"}),jsx(c,{variant:"caption",fontSize:"caption.fontSize",children:"Comunidade"})]}),jsxs(p,{"data-testid":"resource-youtube",onClick:()=>window.open("https://youtube.com/playlist?list=PLqv8txNiT9o_LReCh5wKPiQaeBTg2Q1i3&si=3nGSAU3AdcPwoa-R","_blank","noopener noreferrer"),children:[jsx(a$3,{icon:"YOUTUBE",color:"primary.main"}),jsx(c,{variant:"caption",fontSize:"caption.fontSize",children:"Videos"})]}),jsxs(p,{"data-testid":"resource-ajuda",onClick:()=>window.open("https://ajuda.zydon.com.br","_blank","noopener noreferrer"),children:[jsx(a$3,{icon:"HELP_CIRCLE",color:"primary.main"}),jsx(c,{variant:"caption",fontSize:"caption.fontSize",children:"Ajuda"})]}),jsxs(p,{"data-testid":"resource-docs",onClick:()=>window.open("https://docs.zydon.com.br","_blank","noopener noreferrer"),children:[jsx(a$3,{icon:"CODE_FOLDER",color:"primary.main"}),jsx(c,{variant:"caption",fontSize:"caption.fontSize",children:"Docs"})]})]})}),jsx(d,{}),jsx(i,{children:jsx(k,{"data-testid":"logout-button",startIcon:jsx(a$3,{icon:"LOGOUT_02"}),size:"small",onClick:B,loading:y,children:y?"Saindo...":"Sair"})})]})]})},Y=_;
|
|
16
|
+
|
|
17
|
+
export { Y as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as a$1 } from '../../chunk-
|
|
1
|
+
import { a as a$1 } from '../../chunk-XSNVHQNH.js';
|
|
2
2
|
import '../../chunk-7F7UOLDE.js';
|
|
3
3
|
|
|
4
4
|
var a={["VISA"]:"Visa",["MASTERCARD"]:"Mastercard",["AMEX"]:"American Express",["DISCOVER"]:"Discover",["DINERSCLUB"]:"Diners Club",["JCB"]:"JCB",["UNIONPAY"]:"UnionPay",["MAESTRO"]:"Maestro",["CIRRUS"]:"Cirrus",["HIPER"]:"Hiper",["HIPERCARD"]:"Hipercard",["ELO"]:"Elo",["PIX"]:"PIX",["PAYPAL"]:"PayPal",["GPAY"]:"GPay",["APPLEPAY"]:"Apple Pay",["AMAZONPAY"]:"Amazon Pay",["MERCADOPAY"]:"Mercado Pay",["GENERIC"]:"Gen\xE9rico"},A=({number:P})=>{let e=a$1(P);return a[e]||a["GENERIC"]},C=A;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as a$2 } from '../../chunk-5FUXMHIG.js';
|
|
2
|
-
import { a } from '../../chunk-
|
|
2
|
+
import { a } from '../../chunk-XM3B2QEF.js';
|
|
3
3
|
import '../../chunk-FHG3IGXY.js';
|
|
4
4
|
import '../../chunk-SO64ZYQB.js';
|
|
5
5
|
import '../../chunk-BH5YHBAI.js';
|
|
@@ -7,7 +7,7 @@ import '../../chunk-OSDHZZEM.js';
|
|
|
7
7
|
import '../../chunk-CFVUZ4S5.js';
|
|
8
8
|
import '../../chunk-FDP5MHVS.js';
|
|
9
9
|
import '../../chunk-GUFT6XPG.js';
|
|
10
|
-
import '../../chunk-
|
|
10
|
+
import '../../chunk-ZFSIWZQI.js';
|
|
11
11
|
import { i } from '../../chunk-D27ND54J.js';
|
|
12
12
|
import { a as a$1 } from '../../chunk-P26W2RT7.js';
|
|
13
13
|
import '../../chunk-QGFD5EQE.js';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { a as a$5 } from '../../chunk-IIEO3BCA.js';
|
|
2
|
-
import { a as a$4 } from '../../chunk-HOMGLSVS.js';
|
|
3
2
|
import { a as a$2 } from '../../chunk-5YJTSVA2.js';
|
|
4
3
|
import { a as a$6 } from '../../chunk-TWGGHTU5.js';
|
|
5
4
|
import { a } from '../../chunk-CFD2VTQ3.js';
|
|
@@ -7,6 +6,7 @@ import { a as a$9 } from '../../chunk-VATTN5CP.js';
|
|
|
7
6
|
import '../../chunk-2KKOITAB.js';
|
|
8
7
|
import '../../chunk-U26IUEAG.js';
|
|
9
8
|
import { a as a$7 } from '../../chunk-FK7DDO5L.js';
|
|
9
|
+
import { a as a$4 } from '../../chunk-HOMGLSVS.js';
|
|
10
10
|
import '../../chunk-D27ND54J.js';
|
|
11
11
|
import { a as a$8 } from '../../chunk-26GV7WKC.js';
|
|
12
12
|
import { a as a$1 } from '../../chunk-P26W2RT7.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { a as default } from '../../chunk-
|
|
2
|
-
import '../../chunk-7AZX7L27.js';
|
|
1
|
+
export { a as default } from '../../chunk-KMFICXI2.js';
|
|
3
2
|
import '../../chunk-SQSJYHRY.js';
|
|
3
|
+
import '../../chunk-7AZX7L27.js';
|
|
4
4
|
import '../../chunk-P26W2RT7.js';
|
|
5
5
|
import '../../chunk-QGFD5EQE.js';
|
|
6
6
|
import '../../chunk-ILHUUK4X.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { a as a$5 } from '../../chunk-H5L4ARDB.js';
|
|
2
2
|
import { e } from '../../chunk-ANAHA3L6.js';
|
|
3
3
|
import { a as a$3 } from '../../chunk-2FXBVVBD.js';
|
|
4
|
-
import { a as a$6 } from '../../chunk-
|
|
4
|
+
import { a as a$6 } from '../../chunk-KMFICXI2.js';
|
|
5
|
+
import '../../chunk-SQSJYHRY.js';
|
|
5
6
|
import '../../chunk-7AZX7L27.js';
|
|
6
7
|
import { a } from '../../chunk-LGJ5FXTF.js';
|
|
7
|
-
import '../../chunk-SQSJYHRY.js';
|
|
8
|
-
import { a as a$2 } from '../../chunk-HFGUHKFW.js';
|
|
9
8
|
import { x } from '../../chunk-2P4CXK3O.js';
|
|
9
|
+
import { a as a$2 } from '../../chunk-HFGUHKFW.js';
|
|
10
10
|
import { a as a$7 } from '../../chunk-FK7DDO5L.js';
|
|
11
11
|
import { j } from '../../chunk-DMQW3LDF.js';
|
|
12
12
|
import { a as a$4 } from '../../chunk-P26W2RT7.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { d } from '../../chunk-WUQSPJPN.js';
|
|
2
2
|
import { a as a$3 } from '../../chunk-UA7OPAW7.js';
|
|
3
|
-
import { a } from '../../chunk-HOMGLSVS.js';
|
|
4
3
|
import { a as a$2 } from '../../chunk-CFD2VTQ3.js';
|
|
4
|
+
import { a } from '../../chunk-HOMGLSVS.js';
|
|
5
5
|
import '../../chunk-D27ND54J.js';
|
|
6
6
|
import { a as a$4 } from '../../chunk-P26W2RT7.js';
|
|
7
7
|
import '../../chunk-QGFD5EQE.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as a$2 } from '../../../chunk-NV2X5CYP.js';
|
|
2
1
|
import { a as a$1 } from '../../../chunk-TF3JCVT7.js';
|
|
2
|
+
import { a as a$2 } from '../../../chunk-NV2X5CYP.js';
|
|
3
3
|
import { a as a$3 } from '../../../chunk-EHLA5PK2.js';
|
|
4
4
|
import '../../../chunk-2QUYG4AQ.js';
|
|
5
5
|
import '../../../chunk-ODJ3QETP.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b } from '../../../chunk-
|
|
1
|
+
import { b } from '../../../chunk-CHPWVARV.js';
|
|
2
2
|
import '../../../chunk-ISYQXE75.js';
|
|
3
|
-
import '../../../chunk-ANAHA3L6.js';
|
|
4
3
|
import '../../../chunk-4U55ITNC.js';
|
|
4
|
+
import '../../../chunk-ANAHA3L6.js';
|
|
5
5
|
import '../../../chunk-SQSJYHRY.js';
|
|
6
6
|
import '../../../chunk-RQ5Q6X5Y.js';
|
|
7
7
|
import '../../../chunk-D27ND54J.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { e } from '../../../chunk-
|
|
1
|
+
import { e } from '../../../chunk-6PZBE3PS.js';
|
|
2
2
|
import '../../../chunk-ISYQXE75.js';
|
|
3
|
+
import '../../../chunk-4U55ITNC.js';
|
|
3
4
|
import '../../../chunk-H5L4ARDB.js';
|
|
4
5
|
import '../../../chunk-ANAHA3L6.js';
|
|
5
|
-
import '../../../chunk-4U55ITNC.js';
|
|
6
6
|
import '../../../chunk-SQSJYHRY.js';
|
|
7
7
|
import '../../../chunk-RQ5Q6X5Y.js';
|
|
8
|
-
import '../../../chunk-HFGUHKFW.js';
|
|
9
8
|
import '../../../chunk-2P4CXK3O.js';
|
|
9
|
+
import '../../../chunk-HFGUHKFW.js';
|
|
10
10
|
import '../../../chunk-FK7DDO5L.js';
|
|
11
11
|
import '../../../chunk-D27ND54J.js';
|
|
12
12
|
import { a } from '../../../chunk-GA4A5P3S.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { a as UploadAvatar, b as UploadAvatarWithCrop } from '../../chunk-
|
|
2
|
-
export { c as DeleteButton, a as MultiFilePreview, b as SingleFilePreview, d as Upload, e as UploadWithCrop } from '../../chunk-
|
|
1
|
+
export { a as UploadAvatar, b as UploadAvatarWithCrop } from '../../chunk-CHPWVARV.js';
|
|
2
|
+
export { c as DeleteButton, a as MultiFilePreview, b as SingleFilePreview, d as Upload, e as UploadWithCrop } from '../../chunk-6PZBE3PS.js';
|
|
3
3
|
import { o } from '../../chunk-ISYQXE75.js';
|
|
4
4
|
export { p as RejectionFiles } from '../../chunk-ISYQXE75.js';
|
|
5
|
+
import '../../chunk-4U55ITNC.js';
|
|
5
6
|
import '../../chunk-H5L4ARDB.js';
|
|
6
7
|
import '../../chunk-ANAHA3L6.js';
|
|
7
|
-
import '../../chunk-4U55ITNC.js';
|
|
8
8
|
import '../../chunk-SQSJYHRY.js';
|
|
9
9
|
import '../../chunk-RQ5Q6X5Y.js';
|
|
10
|
-
import '../../chunk-HFGUHKFW.js';
|
|
11
10
|
import '../../chunk-2P4CXK3O.js';
|
|
11
|
+
import '../../chunk-HFGUHKFW.js';
|
|
12
12
|
import '../../chunk-FK7DDO5L.js';
|
|
13
13
|
import '../../chunk-D27ND54J.js';
|
|
14
14
|
import '../../chunk-X24QANPC.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as CompatibleThemeProvider, a as EnhancedThemeProvider } from '../chunk-
|
|
1
|
+
export { b as CompatibleThemeProvider, a as EnhancedThemeProvider } from '../chunk-XM3B2QEF.js';
|
|
2
2
|
import '../chunk-FHG3IGXY.js';
|
|
3
3
|
import '../chunk-SO64ZYQB.js';
|
|
4
4
|
import '../chunk-BH5YHBAI.js';
|
|
@@ -6,7 +6,7 @@ import '../chunk-OSDHZZEM.js';
|
|
|
6
6
|
import '../chunk-CFVUZ4S5.js';
|
|
7
7
|
import '../chunk-FDP5MHVS.js';
|
|
8
8
|
import '../chunk-GUFT6XPG.js';
|
|
9
|
-
export { b as useSettingsContext } from '../chunk-
|
|
9
|
+
export { b as useSettingsContext } from '../chunk-ZFSIWZQI.js';
|
|
10
10
|
import '../chunk-D27ND54J.js';
|
|
11
11
|
import '../chunk-QQDMA4TE.js';
|
|
12
12
|
import '../chunk-Z2TDWMRU.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as SettingsContext, c as SettingsProvider, b as useSettingsContext } from '../chunk-
|
|
1
|
+
export { a as SettingsContext, c as SettingsProvider, b as useSettingsContext } from '../chunk-ZFSIWZQI.js';
|
|
2
2
|
import '../chunk-QQDMA4TE.js';
|
|
3
3
|
import '../chunk-Z2TDWMRU.js';
|
|
4
4
|
import '../chunk-4INDXVIX.js';
|
|
@@ -443,7 +443,7 @@ declare function paper({ theme, color, dropdown }: PaperProps): {
|
|
|
443
443
|
wordWrap?: csstype.Property.WordWrap | readonly NonNullable<csstype.Property.WordWrap | undefined>[] | readonly csstype.Property.WordWrap[] | undefined;
|
|
444
444
|
writingMode?: csstype.Property.WritingMode | readonly NonNullable<csstype.Property.WritingMode | undefined>[] | readonly csstype.Property.WritingMode[] | undefined;
|
|
445
445
|
zIndex?: csstype.Property.ZIndex | readonly NonNullable<csstype.Property.ZIndex | undefined>[] | readonly ((string & {}) | csstype.Globals | "auto")[] | undefined;
|
|
446
|
-
zoom?: csstype.Property.Zoom | readonly NonNullable<csstype.Property.Zoom | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal"
|
|
446
|
+
zoom?: csstype.Property.Zoom | readonly NonNullable<csstype.Property.Zoom | undefined>[] | readonly ("reset" | (string & {}) | csstype.Globals | "normal")[] | undefined;
|
|
447
447
|
all?: csstype.Globals | readonly NonNullable<csstype.Globals | undefined>[] | readonly csstype.Globals[] | undefined;
|
|
448
448
|
animation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal" | "reverse" | "auto" | "none" | "both" | "alternate" | "alternate-reverse" | "backwards" | "forwards" | "infinite" | "paused" | "running" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start" | "linear")[] | undefined;
|
|
449
449
|
animationRange?: csstype.Property.AnimationRange<string | number> | readonly NonNullable<csstype.Property.AnimationRange<string | number> | undefined>[] | readonly (string | (string & {}))[] | undefined;
|
package/dist/utils/flagCard.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { a as getFlagCard } from '../chunk-
|
|
1
|
+
export { a as getFlagCard } from '../chunk-XSNVHQNH.js';
|
|
2
2
|
import '../chunk-7F7UOLDE.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zydon/common",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.74",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -140,6 +140,7 @@
|
|
|
140
140
|
"@dnd-kit/modifiers": "^9.0.0",
|
|
141
141
|
"@dnd-kit/sortable": "^10.0.0",
|
|
142
142
|
"browser-image-compression": "^2.0.2",
|
|
143
|
+
"card-validator": "^10.0.3",
|
|
143
144
|
"color": "^4.2.3",
|
|
144
145
|
"dayjs": "^1.11.13",
|
|
145
146
|
"embla-carousel": "^8.2.0",
|
package/dist/chunk-42S2A5ST.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { a } from './chunk-QQDMA4TE.js';
|
|
2
|
-
import { createContext, useContext, useCallback, useMemo } from 'react';
|
|
3
|
-
import { jsx } from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
var x=createContext(void 0),b=()=>{let a=useContext(x);if(!a)throw new Error("useSettingsContext deve ser usado dentro de um SettingsProvider");return a},R=({children:a$1,defaultSettings:i,storageKey:P="theme-settings"})=>{let[r,t]=a(P,i),g=useCallback(()=>typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",[]),d=useCallback(()=>{let e=r.colorScheme==="light"?"dark":"light";t(o=>({...o,colorScheme:e}));},[r.colorScheme,t]),s=useCallback(e=>{t(o=>({...o,colorScheme:e}));},[t]),h=useCallback(e=>{t(o=>({...o,primaryColor:e}));},[t]),l=useCallback(e=>{t(o=>({...o,contrast:e}));},[t]),m=useCallback(e=>{t(o=>({...o,fontFamily:e}));},[t]),C=useCallback(e=>{t(o=>({...o,navLayout:e}));},[t]),u=useCallback(e=>{t(o=>({...o,navColor:e}));},[t]),S=useCallback(e=>{t(o=>({...o,compactLayout:e}));},[t]),p=useCallback(()=>{t(i);},[i,t]),v=useMemo(()=>JSON.stringify(r)!==JSON.stringify(i),[r,i]),y=useCallback(()=>{let e=g();r.colorScheme!==e&&s(e);},[g,r.colorScheme,s]),f=useCallback(()=>{if(typeof window<"u"&&window.matchMedia){let e=window.matchMedia("(prefers-color-scheme: dark)"),o=()=>y();return e.addEventListener("change",o),()=>e.removeEventListener("change",o)}return ()=>{}},[y]);useMemo(()=>f(),[f]);let L=useMemo(()=>({settings:r,onToggleMode:d,onChangeMode:s,onChangePrimaryColor:h,onChangeContrast:l,onChangeFontFamily:m,onChangeNavLayout:C,onChangeNavColor:u,onChangeCompactLayout:S,onResetSettings:p,canReset:v}),[r,d,s,h,l,m,C,u,S,p,v]);return jsx(x.Provider,{value:L,children:a$1})};
|
|
6
|
-
|
|
7
|
-
export { x as a, b, R as c };
|
package/dist/chunk-7KQMMZCF.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { b as b$1, a as a$1 } from './chunk-FHG3IGXY.js';
|
|
2
|
-
import { a } from './chunk-GUFT6XPG.js';
|
|
3
|
-
import { c, b } from './chunk-42S2A5ST.js';
|
|
4
|
-
import { useMemo } from 'react';
|
|
5
|
-
import d from '@mui/material/CssBaseline';
|
|
6
|
-
import { Experimental_CssVarsProvider } from '@mui/material/styles';
|
|
7
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
8
|
-
|
|
9
|
-
var u=({children:a$2,cssVarPrefix:t,enableSystemTheme:r=!0})=>{let{settings:e}=b(),o=useMemo(()=>b$1(a[1].systemValue,{primaryColor:e.primaryColor,colorScheme:e.colorScheme,contrast:e.contrast,navLayout:e.navLayout,navColor:e.navColor,compactLayout:e.compactLayout,fontFamily:e.fontFamily},t),[e,t]),i=useMemo(()=>({theme:o,defaultMode:r?"system":e.colorScheme,defaultColorScheme:e.colorScheme,modeStorageKey:a$1.modeStorageKey,...r&&{colorSchemeStorageKey:`${a$1.modeStorageKey}-scheme`}}),[o,e.colorScheme,r]);return jsxs(Experimental_CssVarsProvider,{...i,children:[jsx(d,{}),a$2]})},f=({children:a,defaultSettings:t,storageKey:r="b2b-theme-settings",cssVarPrefix:e,enableSystemTheme:o=!0})=>{let i=useMemo(()=>({primaryColor:"#4E5BEC",fontFamily:"Public Sans",compactLayout:!0,colorScheme:"light",contrast:"default",navColor:"integrate",navLayout:"vertical",...t}),[t]);return jsx(c,{defaultSettings:i,storageKey:r,children:jsx(u,{cssVarPrefix:e,enableSystemTheme:o,children:a})})},E=({primaryColor:a,children:t,colorScheme:r="light",contrast:e="default",cssVarPrefix:o})=>jsx(f,{defaultSettings:{primaryColor:a,colorScheme:r,contrast:e},cssVarPrefix:o,enableSystemTheme:!1,children:t});
|
|
10
|
-
|
|
11
|
-
export { f as a, E as b };
|
package/dist/chunk-IOM423QH.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
var e=r=>{let t=r.replace(/[\s-]/g,"");return /^4/.test(t)?"VISA":/^5[1-5]/.test(t)?"MASTERCARD":/^3[47]/.test(t)?"AMEX":/^6(?:011|5)/.test(t)?"DISCOVER":/^3(?:0|6|8)/.test(t)?"DINERSCLUB":/^35/.test(t)?"JCB":/^62|^81/.test(t)?"UNIONPAY":/^6(?:22|4|5)/.test(t)?"UNIONPAY":/^(50(0[0-9]|1[0-9]|2[0-9])|5[6-8]|6[3-7])/.test(t)?"MAESTRO":/^606282|^637/.test(t)?"HIPERCARD":/^(4011|4312|4389|4514|4576|5041|5066|5067|509|6277|6362|6363|650[4-8]|6516|655[089])/.test(t)?"ELO":"GENERIC"};
|
|
2
|
-
|
|
3
|
-
export { e as a };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { c, g, p, n, d, e as e$1, a as a$6, b, h, i as i$1, l, m as m$1, j as j$1, k } from './chunk-ISYQXE75.js';
|
|
2
|
+
import { a as a$5 } from './chunk-4U55ITNC.js';
|
|
2
3
|
import { a as a$1 } from './chunk-H5L4ARDB.js';
|
|
3
4
|
import { e } from './chunk-ANAHA3L6.js';
|
|
4
|
-
import { a as a$5 } from './chunk-4U55ITNC.js';
|
|
5
|
-
import { a as a$7 } from './chunk-HFGUHKFW.js';
|
|
6
5
|
import { x } from './chunk-2P4CXK3O.js';
|
|
6
|
+
import { a as a$7 } from './chunk-HFGUHKFW.js';
|
|
7
7
|
import { a as a$4 } from './chunk-FK7DDO5L.js';
|
|
8
8
|
import { i, o } from './chunk-D27ND54J.js';
|
|
9
9
|
import { a as a$2 } from './chunk-X24QANPC.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p, f } from './chunk-ISYQXE75.js';
|
|
2
|
-
import { e } from './chunk-ANAHA3L6.js';
|
|
3
2
|
import { a as a$3 } from './chunk-4U55ITNC.js';
|
|
3
|
+
import { e } from './chunk-ANAHA3L6.js';
|
|
4
4
|
import { i } from './chunk-D27ND54J.js';
|
|
5
5
|
import { a as a$1 } from './chunk-X24QANPC.js';
|
|
6
6
|
import { a } from './chunk-P26W2RT7.js';
|