@s_mart/dropzone 9.2.2 → 10.0.0-beta.11

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.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -1
  2. package/package.json +28 -24
package/dist/index.mjs CHANGED
@@ -102,7 +102,7 @@ import{styled as P}from"@mui/material";import{colorPalette as B}from"@s_mart/tok
102
102
  display: flex;
103
103
  align-items: center;
104
104
  justify-content: space-between;
105
- `;import{Tooltip as Ve,Typography as ie}from"@mui/material";import{IconButton as Oe,LIcon as ae}from"@s_mart/core";import{lineTimes as Xe}from"@s_mart/regular-icons";import{colorPalette as le}from"@s_mart/tokens";import{useMemo as ee}from"react";import{lineFile as Ce,linePicture as Le,lineXMLFile as we}from"@s_mart/light-icons";import{lineFileCertificate as Pe}from"@s_mart/regular-icons";var Y=e=>{switch(e){case"application/xml":case"text/xml":return we;case"image/gif":case"image/jpeg":case"image/png":case"image/svg":case"image/webp":return Le;case"application/pkcs12":return Pe;default:return Ce}},H=e=>{let t="";return e<1024?t=`${e} Bytes`:e<1024*1024?t=`${(e/1024).toFixed(2)} KB`:e<1024*1024*1024&&(t=`${(e/1024/1024).toFixed(2)} MB`),t};var oe=({filesInfo:e})=>{let t=ee(()=>e.map(o=>({name:o.name,fileSize:H(o.size),icon:Y(o.type)})),[e]),r=ee(()=>({totalSize:H(e.reduce((o,n)=>o+n.size,0)),totalFilesLabel:e.length===1?"1 arquivo":`${e.length} arquivos`}),[e]);return{files:t,headerInfo:r}};import{Tooltip as He}from"@mui/material";import q from"@mui/utils/deepmerge";import{IconButton as Se,LIcon as Ee}from"@s_mart/core";import{lineTimes as Me}from"@s_mart/regular-icons";import{jsx as O}from"react/jsx-runtime";var U={headerCleartooltip:{title:"Remover todos"},headerClearIconButton:{variant:"text",color:"neutral",sx:{borderRadius:50}},headerClearLicon:{icon:Me,removeMargin:!0}},V={clone:!1},te=({onClick:e,slotProps:t})=>{let r=q(U.headerCleartooltip,t?.headerCleartooltip,V),o=q(U.headerClearIconButton,t?.headerClearIconButton,V),n=q(U.headerClearLicon,t?.headerClearLicon,V);return O(He,{...r,children:O(Se,{...o,onClick:e,children:O(Ee,{...n})})})};import{styled as Ie}from"@mui/material";var re=Ie("div")({display:"flex",justifyContent:"space-between",alignItems:"center",paddingBlock:"0.5rem"});import{Typography as Re}from"@mui/material";import Ae from"@mui/utils/deepmerge";import{useMemo as ke}from"react";import{Fragment as Ue,jsx as R}from"react/jsx-runtime";var $e={headerTitle:{variant:"titleXXS"}},Be={headerTitleContent:e=>R(qe,{...e})},qe=e=>{let t=`${e.filesLengthLabel}`;return e.showFilesSize&&(t+=` - ${e.filesTotalSize}`),R(Ue,{children:t})},ne=e=>{let t=e.slots?.headerTitleContent??Be.headerTitleContent,r=ke(()=>Ae($e.headerTitle,{...e,...e.slotProps?.headerTitle}),[e.filesLengthLabel,e.filesTotalSize,e]);return R(Re,{...r,children:R(t,{...r})})};var A={Container:re,Title:ne,ClearButton:te};import{jsx as y,jsxs as X}from"react/jsx-runtime";var se=({filesInfo:e,onRemoveFile:t,onRemoveAllFiles:r,slotProps:o,slots:n,showFilesSize:p})=>{let{files:d,headerInfo:a}=oe({filesInfo:e});return d.length===0?null:X(J,{...o?.listContainer,children:[X(A.Container,{children:[y(A.Title,{slots:n,slotProps:o?.header,filesLengthLabel:a.totalFilesLabel,filesTotalSize:a.totalSize,showFilesSize:p}),y(A.ClearButton,{onClick:r})]}),d.map((l,u)=>y(Ve,{title:l.name,children:X(W,{...o?.listItem,children:[y(ae,{icon:l.icon,removeMargin:!0,size:"24px"}),p&&y(ie,{variant:"titleXXS",color:le.neutral[600],whiteSpace:"nowrap",children:l.fileSize}),y(ie,{variant:"titleXXS",color:le.neutral[600],overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",textAlign:"center",children:l.name}),y(Oe,{variant:"text",color:"neutral",sx:{borderRadius:50},onClick:()=>t(u),children:y(ae,{icon:Xe,removeMargin:!0})})]})},`${l.name}-${u}`))]})};import{CircularProgress as pe,Stack as Z,Typography as k}from"@mui/material";import{LIcon as Ze}from"@s_mart/core";import{lineFileUpload as _e}from"@s_mart/regular-icons";import{jsx as b,jsxs as S}from"react/jsx-runtime";var de=({placeholder:e,isProcessingZip:t})=>t?S("div",{children:[S(Z,{id:"dropzone-upload-info",direction:"row",sx:{gap:1,alignItems:"center"},children:[b(pe,{sx:{color:"white"},size:24}),b(k,{variant:"titleSM",color:"white",children:"Descompactando zip..."})]}),S(Z,{id:"dropzone-upload-more-label",direction:"row",sx:{gap:1,alignItems:"center"},children:[b(pe,{sx:{color:"white"},size:12}),b(k,{variant:"bodySM",sx:{fontWeight:700},children:"Descompactando zip..."})]})]}):S("div",{children:[S(Z,{id:"dropzone-upload-info",direction:"row",sx:{gap:1,alignItems:"center"},children:[b(Ze,{icon:_e,size:"48px",color:"white",removeMargin:!0}),b(k,{variant:"titleSM",color:"white",children:e})]}),b(k,{id:"dropzone-upload-more-label",variant:"bodySM",sx:{fontWeight:700},children:"Carregar mais arquivos"})]});import{useCallback as E,useEffect as Qe,useMemo as Je,useRef as me,useState as G}from"react";var ce=async(e,t)=>{let r=[];for(let o of e.items){if(o.kind!=="file")continue;if(typeof o.webkitGetAsEntry=="function"){let p=o.webkitGetAsEntry();if(p===null)continue;let d=await je(p);r.push(...d);continue}let n=o.getAsFile();n&&r.push(n)}return t!==void 0&&(r=Ne(r,t)),r},je=e=>new Promise((t,r)=>{let o=0,n=[];p(e);function p(a){Ke(a)?(o++,a.file(l=>{o--,n.push(l),o===0&&t(n)})):Ge(a)&&d(a.createReader())}function d(a){o++,a.readEntries(function(l){o--;for(let u of l)p(u);o===0&&t(n)})}}),Ge=e=>e.isDirectory,Ke=e=>e.isFile,Ne=(e,t)=>{let r=[],o=t.split(",");for(let n of e){let p=`.${n.name.split(".").pop()?.toLowerCase()}`;o.includes(p)&&r.push(n)}return r};var _=e=>{e.stopPropagation(),e.preventDefault()},j=e=>{e.dataTransfer.dropEffect="link",_(e)};var ue=({onChange:e,filterOnDrop:t,maxSize:r,maxFiles:o,accept:n,onError:p,onWarning:d})=>{let[a,l]=G([]),[u,z]=G(!1),[C,L]=G(!1),x=me(null),s=me(!1),h=E(async i=>{L(!0);let m=[],{BlobReader:g,BlobWriter:f,ZipReader:M}=await import("@zip.js/zip.js").catch(()=>{throw new Error("Fa\xE7a a instala\xE7\xE3o da biblioteca @zip.js/zip.js para utilizar o Dropzone.")}),w=new g(i),D=new M(w);try{let T=await D.getEntries();for(let I of T){if(I.directory||I.getData===void 0)continue;let Te=await I.getData(new f),be=new File([Te],I.filename);m.push(be)}}catch(T){p?.("Ocorreu um erro ao processar o arquivo compactado.",T)}finally{L(!1),await D.close()}return m},[p]),c=E(async i=>{if(!n)return i;let m=[];for(let g of i){let f=`.${g.name.split(".").pop()?.toLocaleLowerCase()}`;if(!n.split(",").includes(f)){d?.(`O arquivo "${g.name}" n\xE3o \xE9 valido, extens\xF5es aceitas ${n}`);continue}if(f===".zip"){let w=await h(g);if(!w.length)continue;let D=await c(w);D.length&&m.push(...D);continue}m.push(g)}return m},[n,d,h]),F=E(async i=>{let m=await t?.(i)??i,g=await c(m);l(f=>{if(o!==void 0&&f.length+g.length>o)return d?.(`Quantidade m\xE1xima de arquivos ${o} alcan\xE7ada`),f;if(r!==void 0){let M=f.reduce((D,T)=>D+T.size,0),w=g.reduce((D,T)=>D+T.size,0);if(M+w>r)return d?.(`O arquivo \xE9 muito grande, O tamanho m\xE1ximo permitido \xE9 ${H(r)}`),f}return f!==void 0?[...f,...g]:g}),s.current=!0},[t,o,r,d,c]),De=async i=>{if(i.target.files){let m=[...i.target.files];F(m)}},ye=E(i=>{x.current?.value&&(x.current.value=""),l(m=>m?.filter((g,f)=>f!==i))},[]),ve=E(()=>{x.current?.value&&(x.current.value=""),l([])},[]),xe=Je(()=>a?.map(i=>({size:i.size,type:i.type,name:i.name}))??[],[a]),Fe=n?`${n.toUpperCase()},${n.toLowerCase()}`:void 0;return Qe(()=>{s.current&&e(a)},[a,e]),{inputRef:x,isDragging:u,filesInfo:xe,treatedAccept:Fe,isProcessingZip:C,handleRemoveFile:ye,handleRemoveAllFiles:ve,handleChangeFiles:De,handleDragEnter:i=>{j(i),z(!0)},handleDragLeave:i=>{j(i),z(!1)},handleDrop:async i=>{_(i),z(!1);let m=await ce(i.dataTransfer,n);F(m)}}};import{jsx as $,jsxs as fe}from"react/jsx-runtime";var We=e=>{let{inputRef:t,filesInfo:r,treatedAccept:o,handleChangeFiles:n,handleRemoveFile:p,handleRemoveAllFiles:d,handleDragEnter:a,handleDragLeave:l,handleDrop:u,isDragging:z,isProcessingZip:C}=ue(e),L=e.placeholder??"Pressione para carregar os arquivos";return fe(K,{onDragOver:a,...e.slotProps?.root,children:[$(N,{"data-is-dragging":z,onDrop:u,onDragLeave:l,...e.slotProps?.overlay}),$(se,{filesInfo:r,onRemoveFile:p,onRemoveAllFiles:d,showFilesSize:e.showFilesSize,slotProps:e.slotProps,slots:e.slots}),fe(Q,{htmlFor:"dropzone","data-max-files":e.maxFiles,"data-has-files":!!r.length,"data-is-processing-zip":C,...e.slotProps?.labelContainer,children:[$(de,{placeholder:L,isProcessingZip:C}),$("input",{ref:t,id:"dropzone",type:"file",accept:o,hidden:!0,onChange:n,multiple:e.maxFiles===void 0||e.maxFiles>1})]})]})};import{useEffect as eo,useState as oo}from"react";import{Dropzone as to,FileItem as ro}from"@dropzone-ui/react";import{LIcon as no}from"@s_mart/core";import{Tooltip as io,Typography as ao}from"@mui/material";import{lineTimes as lo}from"@s_mart/regular-icons";import{styled as Ye}from"@mui/material";import{colorPalette as ge}from"@s_mart/tokens";var he=Ye("button")`
105
+ `;import{Tooltip as Ve,Typography as ie}from"@mui/material";import{IconButton as Oe,LIcon as ae}from"@s_mart/core";import{lineTimes as Xe}from"@s_mart/regular-icons";import{colorPalette as le}from"@s_mart/tokens";import{useMemo as ee}from"react";import{lineFile as Ce,linePicture as Le,lineXMLFile as we}from"@s_mart/light-icons";import{lineFileCertificate as Pe}from"@s_mart/regular-icons";var Y=e=>{switch(e){case"application/xml":case"text/xml":return we;case"image/gif":case"image/jpeg":case"image/png":case"image/svg":case"image/webp":return Le;case"application/pkcs12":return Pe;default:return Ce}},H=e=>{let t="";return e<1024?t=`${e} Bytes`:e<1024*1024?t=`${(e/1024).toFixed(2)} KB`:e<1024*1024*1024&&(t=`${(e/1024/1024).toFixed(2)} MB`),t};var oe=({filesInfo:e})=>{let t=ee(()=>e.map(o=>({name:o.name,fileSize:H(o.size),icon:Y(o.type)})),[e]),r=ee(()=>({totalSize:H(e.reduce((o,n)=>o+n.size,0)),totalFilesLabel:e.length===1?"1 arquivo":`${e.length} arquivos`}),[e]);return{files:t,headerInfo:r}};import{Tooltip as He}from"@mui/material";import q from"@mui/utils/deepmerge";import{IconButton as Se,LIcon as Ee}from"@s_mart/core";import{lineTimes as Me}from"@s_mart/regular-icons";import{jsx as O}from"react/jsx-runtime";var U={headerCleartooltip:{title:"Remover todos"},headerClearIconButton:{variant:"text",color:"neutral",sx:{borderRadius:50}},headerClearLicon:{icon:Me,removeMargin:!0}},V={clone:!1},te=({onClick:e,slotProps:t})=>{let r=q(U.headerCleartooltip,t?.headerCleartooltip,V),o=q(U.headerClearIconButton,t?.headerClearIconButton,V),n=q(U.headerClearLicon,t?.headerClearLicon,V);return O(He,{...r,children:O(Se,{...o,onClick:e,children:O(Ee,{...n})})})};import{styled as Ie}from"@mui/material";var re=Ie("div")({display:"flex",justifyContent:"space-between",alignItems:"center",paddingBlock:"0.5rem"});import{Typography as Re}from"@mui/material";import Ae from"@mui/utils/deepmerge";import{useMemo as ke}from"react";import{Fragment as Ue,jsx as R}from"react/jsx-runtime";var $e={headerTitle:{variant:"titleXXS"}},Be={headerTitleContent:e=>R(qe,{...e})},qe=e=>{let t=`${e.filesLengthLabel}`;return e.showFilesSize&&(t+=` - ${e.filesTotalSize}`),R(Ue,{children:t})},ne=e=>{let t=e.slots?.headerTitleContent??Be.headerTitleContent,r=ke(()=>Ae($e.headerTitle,{...e,...e.slotProps?.headerTitle}),[e.filesLengthLabel,e.filesTotalSize,e]);return R(Re,{...r,children:R(t,{...r})})};var A={Container:re,Title:ne,ClearButton:te};import{jsx as y,jsxs as X}from"react/jsx-runtime";var se=({filesInfo:e,onRemoveFile:t,onRemoveAllFiles:r,slotProps:o,slots:n,showFilesSize:p})=>{let{files:d,headerInfo:a}=oe({filesInfo:e});return d.length===0?null:X(J,{...o?.listContainer,children:[X(A.Container,{children:[y(A.Title,{slots:n,slotProps:o?.header,filesLengthLabel:a.totalFilesLabel,filesTotalSize:a.totalSize,showFilesSize:p}),y(A.ClearButton,{onClick:r})]}),d.map((l,u)=>y(Ve,{title:l.name,children:X(W,{...o?.listItem,children:[y(ae,{icon:l.icon,removeMargin:!0,size:"24px"}),p&&y(ie,{variant:"titleXXS",color:le.neutral[600],whiteSpace:"nowrap",children:l.fileSize}),y(ie,{variant:"titleXXS",sx:{color:le.neutral[600],overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",textAlign:"center"},children:l.name}),y(Oe,{variant:"text",color:"neutral",sx:{borderRadius:50},onClick:()=>t(u),children:y(ae,{icon:Xe,removeMargin:!0})})]})},`${l.name}-${u}`))]})};import{CircularProgress as pe,Stack as Z,Typography as k}from"@mui/material";import{LIcon as Ze}from"@s_mart/core";import{lineFileUpload as _e}from"@s_mart/regular-icons";import{jsx as b,jsxs as S}from"react/jsx-runtime";var de=({placeholder:e,isProcessingZip:t})=>t?S("div",{children:[S(Z,{id:"dropzone-upload-info",sx:{gap:1,alignItems:"center",direction:"row"},children:[b(pe,{sx:{color:"white"},size:24}),b(k,{variant:"titleSM",color:"white",children:"Descompactando zip..."})]}),S(Z,{id:"dropzone-upload-more-label",sx:{gap:1,alignItems:"center",direction:"row"},children:[b(pe,{sx:{color:"white"},size:12}),b(k,{variant:"bodySM",sx:{fontWeight:700},children:"Descompactando zip..."})]})]}):S("div",{children:[S(Z,{id:"dropzone-upload-info",sx:{gap:1,alignItems:"center",direction:"row"},children:[b(Ze,{icon:_e,size:"48px",color:"white",removeMargin:!0}),b(k,{variant:"titleSM",color:"white",children:e})]}),b(k,{id:"dropzone-upload-more-label",variant:"bodySM",sx:{fontWeight:700},children:"Carregar mais arquivos"})]});import{useCallback as E,useEffect as Qe,useMemo as Je,useRef as me,useState as G}from"react";var ce=async(e,t)=>{let r=[];for(let o of e.items){if(o.kind!=="file")continue;if(typeof o.webkitGetAsEntry=="function"){let p=o.webkitGetAsEntry();if(p===null)continue;let d=await je(p);r.push(...d);continue}let n=o.getAsFile();n&&r.push(n)}return t!==void 0&&(r=Ne(r,t)),r},je=e=>new Promise((t,r)=>{let o=0,n=[];p(e);function p(a){Ke(a)?(o++,a.file(l=>{o--,n.push(l),o===0&&t(n)})):Ge(a)&&d(a.createReader())}function d(a){o++,a.readEntries(function(l){o--;for(let u of l)p(u);o===0&&t(n)})}}),Ge=e=>e.isDirectory,Ke=e=>e.isFile,Ne=(e,t)=>{let r=[],o=t.split(",");for(let n of e){let p=`.${n.name.split(".").pop()?.toLowerCase()}`;o.includes(p)&&r.push(n)}return r};var _=e=>{e.stopPropagation(),e.preventDefault()},j=e=>{e.dataTransfer.dropEffect="link",_(e)};var ue=({onChange:e,filterOnDrop:t,maxSize:r,maxFiles:o,accept:n,onError:p,onWarning:d})=>{let[a,l]=G([]),[u,z]=G(!1),[C,L]=G(!1),x=me(null),s=me(!1),h=E(async i=>{L(!0);let m=[],{BlobReader:g,BlobWriter:f,ZipReader:M}=await import("@zip.js/zip.js").catch(()=>{throw new Error("Fa\xE7a a instala\xE7\xE3o da biblioteca @zip.js/zip.js para utilizar o Dropzone.")}),w=new g(i),D=new M(w);try{let T=await D.getEntries();for(let I of T){if(I.directory||I.getData===void 0)continue;let Te=await I.getData(new f),be=new File([Te],I.filename);m.push(be)}}catch(T){p?.("Ocorreu um erro ao processar o arquivo compactado.",T)}finally{L(!1),await D.close()}return m},[p]),c=E(async i=>{if(!n)return i;let m=[];for(let g of i){let f=`.${g.name.split(".").pop()?.toLocaleLowerCase()}`;if(!n.split(",").includes(f)){d?.(`O arquivo "${g.name}" n\xE3o \xE9 valido, extens\xF5es aceitas ${n}`);continue}if(f===".zip"){let w=await h(g);if(!w.length)continue;let D=await c(w);D.length&&m.push(...D);continue}m.push(g)}return m},[n,d,h]),F=E(async i=>{let m=await t?.(i)??i,g=await c(m);l(f=>{if(o!==void 0&&f.length+g.length>o)return d?.(`Quantidade m\xE1xima de arquivos ${o} alcan\xE7ada`),f;if(r!==void 0){let M=f.reduce((D,T)=>D+T.size,0),w=g.reduce((D,T)=>D+T.size,0);if(M+w>r)return d?.(`O arquivo \xE9 muito grande, O tamanho m\xE1ximo permitido \xE9 ${H(r)}`),f}return f!==void 0?[...f,...g]:g}),s.current=!0},[t,o,r,d,c]),De=async i=>{if(i.target.files){let m=[...i.target.files];F(m)}},ye=E(i=>{x.current?.value&&(x.current.value=""),l(m=>m?.filter((g,f)=>f!==i))},[]),ve=E(()=>{x.current?.value&&(x.current.value=""),l([])},[]),xe=Je(()=>a?.map(i=>({size:i.size,type:i.type,name:i.name}))??[],[a]),Fe=n?`${n.toUpperCase()},${n.toLowerCase()}`:void 0;return Qe(()=>{s.current&&e(a)},[a,e]),{inputRef:x,isDragging:u,filesInfo:xe,treatedAccept:Fe,isProcessingZip:C,handleRemoveFile:ye,handleRemoveAllFiles:ve,handleChangeFiles:De,handleDragEnter:i=>{j(i),z(!0)},handleDragLeave:i=>{j(i),z(!1)},handleDrop:async i=>{_(i),z(!1);let m=await ce(i.dataTransfer,n);F(m)}}};import{jsx as $,jsxs as fe}from"react/jsx-runtime";var We=e=>{let{inputRef:t,filesInfo:r,treatedAccept:o,handleChangeFiles:n,handleRemoveFile:p,handleRemoveAllFiles:d,handleDragEnter:a,handleDragLeave:l,handleDrop:u,isDragging:z,isProcessingZip:C}=ue(e),L=e.placeholder??"Pressione para carregar os arquivos";return fe(K,{onDragOver:a,...e.slotProps?.root,children:[$(N,{"data-is-dragging":z,onDrop:u,onDragLeave:l,...e.slotProps?.overlay}),$(se,{filesInfo:r,onRemoveFile:p,onRemoveAllFiles:d,showFilesSize:e.showFilesSize,slotProps:e.slotProps,slots:e.slots}),fe(Q,{htmlFor:"dropzone","data-max-files":e.maxFiles,"data-has-files":!!r.length,"data-is-processing-zip":C,...e.slotProps?.labelContainer,children:[$(de,{placeholder:L,isProcessingZip:C}),$("input",{ref:t,id:"dropzone",type:"file",accept:o,hidden:!0,onChange:n,multiple:e.maxFiles===void 0||e.maxFiles>1})]})]})};import{useEffect as eo,useState as oo}from"react";import{Dropzone as to,FileItem as ro}from"@dropzone-ui/react";import{LIcon as no}from"@s_mart/core";import{Tooltip as io,Typography as ao}from"@mui/material";import{lineTimes as lo}from"@s_mart/regular-icons";import{styled as Ye}from"@mui/material";import{colorPalette as ge}from"@s_mart/tokens";var he=Ye("button")`
106
106
  display: flex;
107
107
  align-items: center;
108
108
  justify-content: center;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@s_mart/dropzone",
3
- "version": "9.2.2",
3
+ "version": "10.0.0-beta.11",
4
4
  "main": "./dist/index.mjs",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.mts",
@@ -11,43 +11,47 @@
11
11
  ],
12
12
  "dependencies": {
13
13
  "@dropzone-ui/react": "^6.7.20",
14
- "@mui/utils": "^6.4.3",
14
+ "@mui/utils": "^7.2.0",
15
+ "react-is": "^18.3.1",
15
16
  "tsup": "8.0.2"
16
17
  },
17
18
  "peerDependencies": {
18
19
  "@emotion/react": "^11.11.4",
19
20
  "@emotion/styled": "^11.13.0",
20
- "@mui/material": "^6.1.3",
21
- "@mui/system": "^6.4.0",
22
- "@types/node": ">=20.0.0",
23
- "@types/react": ">=18.3.12",
24
- "@types/react-dom": ">=18.3.1",
21
+ "@mui/material": "^7.2.0",
22
+ "@mui/system": "^7.2.0",
23
+ "@types/node": ">=22.15.17",
24
+ "@types/react": "^18.3.12",
25
+ "@types/react-dom": "^18.3.1",
25
26
  "@zip.js/zip.js": "^2.7.54",
26
27
  "axios": "^1.6.7",
27
- "react": ">=18.3.1",
28
- "react-dom": ">=18.3.1",
28
+ "react": "^18.3.1",
29
+ "react-dom": "^18.3.1",
29
30
  "typescript": ">=5.4.2",
30
- "@s_mart/core": "9.1.6",
31
- "@s_mart/light-icons": "6.0.10",
32
- "@s_mart/regular-icons": "6.0.10",
33
- "@s_mart/tokens": "5.1.1"
31
+ "@s_mart/core": "10.0.0-beta.12",
32
+ "@s_mart/tokens": "6.0.0-beta.0",
33
+ "@s_mart/light-icons": "6.0.10-beta.1",
34
+ "@s_mart/regular-icons": "6.0.11-beta.0"
34
35
  },
35
36
  "devDependencies": {
36
37
  "@emotion/react": "^11.11.4",
37
38
  "@emotion/styled": "^11.13.0",
38
- "@mui/material": "^6.1.3",
39
- "@mui/system": "^6.4.0",
40
- "@types/node": ">=20.0.0",
41
- "@types/react": ">=18.3.12",
42
- "@types/react-dom": ">=18.3.1",
39
+ "@mui/material": "^7.2.0",
40
+ "@mui/system": "^7.2.0",
41
+ "@types/node": ">=22.15.17",
42
+ "@types/react": "^18.3.12",
43
+ "@types/react-dom": "^18.3.1",
43
44
  "@zip.js/zip.js": "^2.7.54",
44
- "react": ">=18.3.1",
45
- "react-dom": ">=18.3.1",
45
+ "react": "^18.3.1",
46
+ "react-dom": "^18.3.1",
46
47
  "typescript": ">=5.4.2",
47
- "@s_mart/core": "9.1.6",
48
- "@s_mart/light-icons": "6.0.10",
49
- "@s_mart/regular-icons": "6.0.10",
50
- "@s_mart/tokens": "5.1.1"
48
+ "@s_mart/core": "10.0.0-beta.12",
49
+ "@s_mart/light-icons": "6.0.10-beta.1",
50
+ "@s_mart/regular-icons": "6.0.11-beta.0",
51
+ "@s_mart/tokens": "6.0.0-beta.0"
52
+ },
53
+ "overrides": {
54
+ "react-is": "^18.3.1"
51
55
  },
52
56
  "scripts": {
53
57
  "build": "tsup src/index.tsx --minify --format esm --dts --external react",