@zydon/common 2.5.11 → 2.5.13

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 (76) hide show
  1. package/dist/chunk-2FXBVVBD.js +7 -0
  2. package/dist/chunk-2FXXN6VA.js +8 -0
  3. package/dist/chunk-2QUYG4AQ.js +8 -0
  4. package/dist/chunk-427TWOPH.js +10 -0
  5. package/dist/chunk-6O66AMF6.js +17 -0
  6. package/dist/{chunk-4VAXJ4XM.js → chunk-7WCRRQEW.js} +2 -2
  7. package/dist/{chunk-HZJAUQ3O.js → chunk-AJW3AGOS.js} +1 -1
  8. package/dist/chunk-DXACBPEV.js +9 -0
  9. package/dist/chunk-GJGUIHOL.js +17 -0
  10. package/dist/{chunk-DI3IT446.js → chunk-GVJPNJEL.js} +1 -1
  11. package/dist/{chunk-E4HZJEPW.js → chunk-MZ5WXXHN.js} +1 -1
  12. package/dist/chunk-NV2X5CYP.js +7 -0
  13. package/dist/{chunk-B3PCCRUQ.js → chunk-OYK7T66A.js} +2 -2
  14. package/dist/{chunk-FOOP2WUM.js → chunk-PBNDY7OR.js} +1 -1
  15. package/dist/{chunk-2NMLQNWC.js → chunk-TF3JCVT7.js} +1 -1
  16. package/dist/{chunk-JEAVENIM.js → chunk-X6R4YXWP.js} +1 -1
  17. package/dist/components/Autocomplete/index.js +1 -1
  18. package/dist/components/AutocompleteDetailed/index.js +1 -1
  19. package/dist/components/ColorPickerInput/index.js +1 -1
  20. package/dist/components/DataCards/index.js +1 -1
  21. package/dist/components/DataGrid/index.js +2 -2
  22. package/dist/components/DataView/index.js +3 -3
  23. package/dist/components/DatePicker/index.d.ts +2 -1
  24. package/dist/components/DatePicker/index.js +3 -3
  25. package/dist/components/DateRangeCalendar/index.d.ts +12 -0
  26. package/dist/components/DateRangeCalendar/index.js +7 -0
  27. package/dist/components/DateRangePicker/index.d.ts +2 -1
  28. package/dist/components/DateRangePicker/index.js +2 -2
  29. package/dist/components/DateTimePicker/index.d.ts +2 -1
  30. package/dist/components/DateTimePicker/index.js +3 -3
  31. package/dist/components/DragButton/index.js +1 -1
  32. package/dist/components/DragContainer/index.js +3 -3
  33. package/dist/components/FileUpload/index.js +6 -6
  34. package/dist/components/Incrementer/index.js +2 -2
  35. package/dist/components/InfoCircle/index.js +1 -1
  36. package/dist/components/MaskedInput/index.js +1 -1
  37. package/dist/components/NumberInput/index.js +1 -1
  38. package/dist/components/SearchInput/index.js +1 -1
  39. package/dist/components/SelectableCards/index.js +2 -2
  40. package/dist/components/SwapList/index.js +1 -1
  41. package/dist/components/TimePicker/index.d.ts +2 -1
  42. package/dist/components/TimePicker/index.js +2 -2
  43. package/dist/components/Tooltip/index.d.ts +1 -1
  44. package/dist/components/Tooltip/index.js +1 -1
  45. package/dist/components/form/Address/index.js +5 -5
  46. package/dist/components/form/Autocomplete/index.js +2 -2
  47. package/dist/components/form/AutocompleteDetailed/index.js +1 -1
  48. package/dist/components/form/Codes/index.js +2 -2
  49. package/dist/components/form/ColorPicker/index.js +1 -1
  50. package/dist/components/form/DatePicker/index.js +3 -3
  51. package/dist/components/form/DateRangePicker/index.js +5 -5
  52. package/dist/components/form/DateTimePicker/index.js +3 -3
  53. package/dist/components/form/Field/index.js +1 -1
  54. package/dist/components/form/Incrementer/index.js +2 -2
  55. package/dist/components/form/InputTags/index.js +4 -4
  56. package/dist/components/form/MaskedInput/index.js +2 -2
  57. package/dist/components/form/MultiChipField/index.js +4 -4
  58. package/dist/components/form/NumberInput/index.js +1 -1
  59. package/dist/components/form/Password/index.js +1 -1
  60. package/dist/components/form/SelectableCards/index.js +2 -2
  61. package/dist/components/form/TimePicker/index.js +2 -2
  62. package/dist/components/form/UploadAvatarWithCrop/index.js +3 -3
  63. package/dist/components/form/UploadWithCrop/index.js +4 -4
  64. package/dist/components/form/Webhook/index.js +3 -3
  65. package/dist/components/upload/index.js +6 -6
  66. package/dist/theme/styles/index.d.ts +1 -1
  67. package/package.json +1 -1
  68. package/dist/chunk-5J3V35EQ.js +0 -10
  69. package/dist/chunk-7BK54YIS.js +0 -8
  70. package/dist/chunk-7F56LFN2.js +0 -17
  71. package/dist/chunk-B42VMENU.js +0 -9
  72. package/dist/chunk-IPOTBSM7.js +0 -6
  73. package/dist/chunk-LLMDC6IE.js +0 -17
  74. package/dist/chunk-ORLVNXTG.js +0 -8
  75. package/dist/chunk-YNOYR4WX.js +0 -7
  76. package/dist/{chunk-JTD47UZZ.js → chunk-TQKNFH6W.js} +1 -1
@@ -0,0 +1,7 @@
1
+ import { cloneElement } from 'react';
2
+ import p from '@mui/material/Tooltip';
3
+ import { jsx } from 'react/jsx-runtime';
4
+
5
+ var i=({children:t,...e})=>{let o=t;return jsx(p,{...e,children:cloneElement(o,{style:{userSelect:"none",...o.props.style}})})},T=i;
6
+
7
+ export { T as a };
@@ -0,0 +1,8 @@
1
+ import { forwardRef, useState, useRef, useEffect } from 'react';
2
+ import { NumericFormat } from 'react-number-format';
3
+ import A from '@mui/material/TextField';
4
+ import { jsx } from 'react/jsx-runtime';
5
+
6
+ var c=forwardRef(({decimalScale:s=0,fixedDecimalScale:m=!0,prefix:d,allowNegative:I,minValue:u,maxValue:n=1/0,maxLength:N,value:T,inputProps:b,InputProps:g,size:y,disabled:S,name:t,helperText:h,error:x,fullWidth:R,label:v,required:w,onChange:r,tabIndex:D,placeholder:F,margin:P,className:k,delay:l},E)=>{let[L,V]=useState(Date.now()),e=useRef(null),i=()=>V(Date.now()),q=(z,o)=>{if(!r)return;e.current&&clearTimeout(e.current);let p=()=>{let{floatValue:a}=z,f=a||0;if(u!==void 0&&u>f){r({target:{name:t,value:u},event:o}),i();return}if(a!==void 0&&n<f){r({target:{name:t,value:n},event:o}),i();return}r({target:{name:t,value:a},event:o});};l===0?p():e.current=setTimeout(p,l||1e3);};return useEffect(()=>()=>{e.current&&clearTimeout(e.current);},[]),jsx(NumericFormat,{getInputRef:E,value:T,prefix:d,decimalSeparator:",",thousandSeparator:".",decimalScale:s,fixedDecimalScale:m,autoComplete:"off",allowNegative:I,maxLength:N,onValueChange:q,customInput:A,InputProps:{...g},inputProps:{...b,name:t,tabIndex:D},disabled:S,size:y,helperText:h,error:x,fullWidth:R,label:v,required:w,placeholder:F,margin:P,className:k},L)});c.displayName="NumberInput";var X=c;
7
+
8
+ export { X as a };
@@ -0,0 +1,8 @@
1
+ import { forwardRef, useState } from 'react';
2
+ import { IMaskMixin } from 'react-imask';
3
+ import f from '@mui/material/TextField';
4
+ import { jsx } from 'react/jsx-runtime';
5
+
6
+ var k=IMaskMixin(t=>{let{inputRef:e,"data-value":n,defaultValue:u,tabIndex:p,name:s,...a}=t;return jsx(f,{inputRef:e,fullWidth:!0,...a,inputProps:{...a.inputProps,name:s,tabIndex:p},value:n,"data-testid":"masked-input-wrapper"})}),d=forwardRef(({onChange:t,name:e,...n},u)=>{let[p,s]=useState("");return jsx(k,{inputRef:u,name:e,"data-value":p,...n,onAccept:(a,o)=>{s(a),t({target:{name:e,value:o._unmaskedValue}});}})});d.displayName="MaskedInput";var P=d;
7
+
8
+ export { P as a };
@@ -0,0 +1,10 @@
1
+ import { a } from './chunk-MAK4JF5M.js';
2
+ import { useRef } from 'react';
3
+ import A from '@mui/material/IconButton';
4
+ import c from '@mui/material/InputAdornment';
5
+ import g from '@mui/material/TextField';
6
+ import { jsx, jsxs } from 'react/jsx-runtime';
7
+
8
+ var h=({onSearch:n,onChange:m,trigger:l="click",iconPosition:r="end",tabIndex:d,InputProps:e,iconButtonAriaLabel:I="Buscar",...o})=>{let u=useRef(null),i=jsx(A,{color:"inherit",onClick:()=>{n(u.current?.value);},"aria-label":I,children:jsx(a,{icon:"SEARCH_MAGNIFYING_GLASS",width:20,height:20})});return jsx(g,{inputRef:u,InputProps:{...e,onKeyDown:t=>{t.key==="Enter"&&n(u.current?.value);},...r==="start"?{startAdornment:jsxs(c,{position:r,children:[i,e?.startAdornment]})}:{endAdornment:jsxs(c,{position:r,children:[i,e?.endAdornment]})}},inputProps:{tabIndex:d,name:o.name,...o.inputProps},onChange:t=>{if(l==="change"){n(t.target.value);return}t.target.value===""&&n(""),m&&m(t);},...o})},G=h;
9
+
10
+ export { G as a };
@@ -0,0 +1,17 @@
1
+ import { a } from './chunk-NF42ENKE.js';
2
+ import { b } from './chunk-ILHUUK4X.js';
3
+ import O, { forwardRef, useState, useMemo, useEffect } from 'react';
4
+ import be, { autocompleteClasses } from '@mui/material/Autocomplete';
5
+ import ge from '@mui/material/CircularProgress';
6
+ import he from '@mui/material/TextField';
7
+ import { VariableSizeList } from 'react-window';
8
+ import W from '@mui/material/Typography';
9
+ import oe from '@mui/material/Divider';
10
+ import L from '@mui/material/Stack';
11
+ import re from '@mui/material/Popper';
12
+ import { styled } from '@mui/material/styles';
13
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
14
+
15
+ var H=styled(re)({[`& .${autocompleteClasses.listbox}`]:{boxSizing:"border-box","& ul":{padding:0,margin:0}}}),D=styled(L)(({theme:e})=>({flex:1,width:"100%",gap:6,[e.breakpoints.down("md")]:{flexDirection:"column"},[e.breakpoints.up("md")]:{flexDirection:"row"}})),T=styled(L)(({theme:e})=>({flex:1,maxWidth:"100%",gap:6,[e.breakpoints.up("md")]:{flex:"1 1 calc(50% - 8px)",width:"calc(50% - 8px)",minWidth:"calc(50% - 8px)",maxWidth:"calc(50% - 8px)"}})),R=styled(L)(({theme:e})=>({position:"relative",alignItems:"center",justifyContent:"center",width:68,height:68,borderRadius:8,overflow:"hidden",img:{position:"absolute",width:"100%",height:"100%",objectFit:"cover"},[e.breakpoints.down("sm")]:{display:"none"}}));var ne=({option:e})=>{let t=Object.keys(e).filter(i=>i.startsWith("field")).map((i,s)=>{let a=e[i];if(a&&typeof a=="object"){let m="label"in a?a.label:null,u="value"in a?a.value:null;return jsxs(W,{component:"span",variant:"body2",color:"textPrimary",noWrap:!0,children:[m,": ",u]},`${i}:${s}`)}}),l=e.image?jsx("img",{alt:"Imagem",src:e.image}):jsx(a,{alt:e.label||e.value.toString(),name:e.label||e.value.toString(),sx:{width:68,height:68,borderRadius:1}});return jsxs(Fragment,{children:[jsxs(L,{direction:"row",gap:2,margin:2,children:[jsx(R,{children:l}),jsxs(L,{flex:1,overflow:"hidden",children:[jsxs(W,{variant:"subtitle2",color:"textPrimary",noWrap:!0,flex:1,children:[e.value," - ",e.label]}),t.length>0&&jsxs(D,{width:1,children:[jsxs(T,{children:[t[0]?t[0]:void 0,t[1]?t[1]:void 0]}),(t[2]||t[3])&&jsxs(T,{children:[t[2]?t[2]:void 0,t[3]?t[3]:void 0]})]})]})]}),jsx(oe,{className:"border",sx:{borderStyle:"dashed",position:"absolute",bottom:0,width:1}})]})},S=ne;var N=8,me=e=>{let{data:t,index:l,style:i}=e,s=t[l],a={...i,top:i.top+N,paddingTop:8,display:"block"};return jsx(W,{component:"li",...s.props,noWrap:!0,style:a,children:jsx(S,{...s?.props?.children?.props})})},X=O.createContext({}),B=forwardRef((e,t)=>{let l=O.useContext(X);return jsx("div",{ref:t,...e,...l})});B.displayName="OuterElementType";var pe=e=>{let t=O.useRef(null);return useEffect(()=>{t.current!=null&&t.current.resetAfterIndex(0,!0);},[e]),t},de=forwardRef(function(t,l){let{children:i,"data-item-height":s,...a}=t,m=[];i.forEach(p=>{m.push(p),m.push(...p.children||[]);});let u=m.length,h=s>112?s:112,y=p=>Object.prototype.hasOwnProperty.call(p,"group")?48:h,b=()=>u>8?8*h:m.map(y).reduce((p,c)=>p+c,0),C=pe(u);return jsx("div",{ref:l,children:jsx(X.Provider,{value:a,children:jsx(VariableSizeList,{itemData:m,height:b()+2*N,width:"100%",ref:C,outerElementType:B,innerElementType:"ul",itemSize:p=>y(m[p]),overscanCount:5,itemCount:u,children:me})})})}),J=de;var j=forwardRef(({name:e,label:t,value:l,options:i=[],loading:s,noOptionsText:a="Nenhum resultado encontrado.",loadingText:m="Carregando op\xE7\xF5es...",error:u,helperText:h,placeholder:y,onChange:b$1,groupBy:C,disabled:p,multiple:c,required:G,renderOption:U,tabIndex:V,onSearch:P,onInputChange:w,..._},F)=>{let[q,I]=useState(),K=b("down","md"),Q=o=>o&&typeof o=="object"?o.value.toString():o.toString(),Y=useMemo(()=>c?(Array.isArray(l)?l:[]).reduce((r,A)=>{let E=i.find(ee=>ee.value.toString()===A.toString());return E?[...r,E]:[...r]},[]):i.find(n=>n.value.toString()===l?.toString())||null,[i,l,c]),Z=K&&i[0]?Object.keys(i[0]).length*24:void 0;return jsx(be,{ref:F,value:q||Y,onInputChange:(o,n,r)=>{if(w&&w(o,n,r),r==="input"){P&&P(n),I(n);return}I(void 0);},options:i,loading:s,noOptionsText:a,loadingText:m,disabled:s||p,disableListWrap:!0,PopperComponent:H,ListboxProps:{"data-item-height":Z},ListboxComponent:U?void 0:J,filterOptions:(o,n)=>o.filter(r=>`${r.field1?.value} ${r.field1?.label} ${r.field2?.label} ${r.field2?.value} ${r.field3?.label} ${r.field3?.value} ${r.field4?.label} ${r.field4?.value} ${r.field5?.label} ${r.field5?.value} ${r.label}${r.value}`.toLocaleUpperCase().includes(n.inputValue.toLocaleUpperCase())),onChange:(o,n)=>{if(!n){b$1(c?[]:null);return}if(Array.isArray(n)){b$1(n.map(Q));return}b$1(typeof n=="string"?n.toString():n.value.toString());},renderOption:({key:o,...n},r)=>jsx("li",{...n,style:{display:"block"},children:jsx(S,{option:r})},o),renderGroup:o=>o,groupBy:C,multiple:c,renderInput:o=>jsx(he,{...o,name:e,placeholder:y,fullWidth:!0,error:!!u,helperText:h,label:t,required:G,InputProps:{...o.InputProps,endAdornment:jsxs(Fragment,{children:[s?jsx(ge,{color:"primary",size:20}):null,o.InputProps.endAdornment]})},inputProps:{...o.inputProps,name:e,tabIndex:V}}),..._})});j.displayName="Autocomplete";var Ke=j;
16
+
17
+ export { Ke as a };
@@ -6,10 +6,10 @@ import z from '@mui/material/Typography';
6
6
  import { jsx, jsxs } from 'react/jsx-runtime';
7
7
  import E from '@mui/material/CircularProgress';
8
8
  import i from '@mui/material/IconButton';
9
- import d from '@mui/material/Stack';
9
+ import l from '@mui/material/Stack';
10
10
  import { styled, alpha } from '@mui/material/styles';
11
11
  import { m } from 'framer-motion';
12
12
 
13
- var y=["pdf"],f=["txt"],h=["psd"],I=["doc","docx"],k=["xls","xlsx"],v=["zip","rar","iso"],w=["ai","esp"],C=["ppt","pptx"],F=["wav","aif","mp3","aac"],R=["jpg","jpeg","gif","bmp","png","svg","webp"],T=["m4v","avi","mpg","mp4","webm"];function O(o){let e,t=s(o);switch(o.includes(t)){case f.includes(t):e="txt";break;case v.includes(t):e="zip";break;case F.includes(t):e="audio";break;case R.includes(t):e="image";break;case T.includes(t):e="video";break;case I.includes(t):e="word";break;case k.includes(t):e="excel";break;case C.includes(t):e="powerpoint";break;case y.includes(t):e="pdf";break;case h.includes(t):e="photoshop";break;case w.includes(t):e="illustrator";break;case o?.startsWith("http"):e="image";break;default:e=s(o);}return e}function B(o){let e;switch(O(o)){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 s(o){return o&&o.split(".").pop()||""}function _(o){return o.split("/").pop()}function g(o){return typeof o=="string"?{key:o,preview:o,name:_(o),type:s(o),size:void 0,path:o,lastModified:void 0,lastModifiedDate:void 0}:{key:`key:${o.name}`,name:o.name,size:o.size,path:o.path,type:o.type,preview:o.preview,lastModified:o.lastModified,lastModifiedDate:o.lastModifiedDate}}function U({files:o}){return o.length?jsx(D,{variant:"outlined",sx:{py:1,px:2,mt:3,textAlign:"left",borderStyle:"dashed",borderColor:"error.main",bgcolor:e=>i$1(e.vars.palette.error.mainChannel,.08)},children:o.map(({file:e$1,errors:t})=>{let{path:n,size:l}=g(e$1),m=l?e(l):"";return jsxs(x,{sx:{my:1},children:[jsxs(z,{variant:"subtitle2",noWrap:!0,children:[n," - ",m," "]}),t.map(c=>jsxs(x,{component:"span",sx:{typography:"caption"},children:["- ",c.message]},c.code))]},n)})}):null}var Y=styled(d)({position:"relative",width:"100%",borderRadius:8,overflow:"hidden","&:hover .actions":{display:"flex"}}),oo=styled(d)(({theme:o})=>({display:"none",position:"absolute",alignItems:"center",justifyContent:"center",flexDirection:"row",gap:12,width:"100%",height:"100%",backgroundColor:alpha(o.palette.primary.main,.9),zIndex:999,button:{"&, &:hover, &:focus":{backgroundColor:"#fff"}}})),eo=styled(E)({position:"absolute",width:"100%",height:"100%",zIndex:99,backgroundColor:"#fff",borderRadius:"50%"}),to=styled(i)(({theme:o})=>({position:"relative",zIndex:999,pointerEvents:"auto",bgcolor:alpha(o.palette.grey[900],.72),"&:hover":{backgroundColor:alpha(o.palette.grey[900],.48)}})),ro=styled("div")({position:"relative",zIndex:1,"&:hover":{zIndex:2}}),ao=styled(d)(({theme:o,width:e,isDragging:t})=>({width:e,height:80,alignItems:"center",display:"inline-flex",justifyContent:"center",margin:o.spacing(.5),padding:o.spacing(2,1,2,1),borderRadius:o.spacing(1.25),overflow:"hidden",position:"relative",border:`solid 1px ${o.palette.divider}`,backgroundColor:o.palette.common.white,zIndex:1,transition:"box-shadow 150ms ease-in-out",boxShadow:t?`0 0 0 2px ${o.palette.primary.main}, ${o.customShadows.z8}, inset 0 0 0 1000px ${alpha(o.palette.primary.main,.06)}`:"0px 0px 0px 0px rgba(0, 0, 0, 0)"})),io=styled(m.div)(({theme:o,width:e,isDragging:t})=>({width:e,height:60,alignItems:"center",display:"inline-flex",justifyContent:"center",margin:o.spacing(.5),padding:o.spacing(2),borderRadius:o.spacing(1.25),overflow:"hidden",position:"relative",border:`solid 1px ${o.palette.divider}`,backgroundColor:o.palette.common.white,zIndex:1,transition:"box-shadow 150ms ease-in-out",boxShadow:t?`0 0 0 2px ${o.palette.primary.main}, ${o.customShadows.z8}, inset 0 0 0 1000px ${alpha(o.palette.primary.main,.06)}`:"0px 0px 0px 0px rgba(0, 0, 0, 0)"})),no=styled(i)(({theme:o})=>({width:36,height:36,position:"absolute",top:10,right:10,borderRadius:0,zIndex:1,opacity:0,transition:"opacity 50ms ease-in-out",color:o.palette.error.main,backgroundColor:alpha(o.palette.common.white,.8),"&:hover":{backgroundColor:alpha(o.palette.common.white,.8),opacity:1}})),so=styled(i)(({theme:o})=>({width:24,height:24,position:"absolute",top:18,right:8,borderRadius:12,opacity:1,zIndex:1,transition:"opacity 50ms ease-in-out",color:o.palette.grey[500],backgroundColor:o.palette.common.white,"&:hover":{backgroundColor:o.palette.common.white}})),po=styled(i,{shouldForwardProp:o=>o!=="isMainImage"})(({theme:o,isMainImage:e})=>({color:e?o.palette.secondary.main:o.palette.action.disabled,backgroundColor:o.palette.common.white," &:hover":{backgroundColor:o.palette.common.white},top:4,left:8,padding:o.spacing(.5),border:"1px solid",borderColor:e?o.palette.secondary.main:o.palette.divider})),lo=styled(i)(({theme:o})=>({top:16,right:16,zIndex:9,position:"absolute",color:alpha(o.palette.common.white,.8),bgcolor:alpha(o.palette.grey[900],.72),"&:hover":{bgcolor:alpha(o.palette.grey[900],.48)}})),co=styled(x,{shouldForwardProp:o=>o!=="isDragActive"&&o!=="disabled"&&o!=="hasError"})(({theme:o,isDragActive:e,disabled:t,hasError:n})=>({width:64,height:64,flexShrink:0,display:"flex",borderRadius:1,cursor:"pointer",alignItems:"center",color:o.palette.text.disabled,justifyContent:"center",bgcolor:alpha(o.palette.grey[500],.08),border:`dashed 1px ${alpha(o.palette.grey[500],.16)}`,...e&&{opacity:.72},...t&&{opacity:.48,pointerEvents:"none"},...n&&{color:o.palette.error.main,borderColor:o.palette.error.main,bgcolor:alpha(o.palette.error.main,.08)},"&:hover":{opacity:.72}}));
13
+ var y=["pdf"],f=["txt"],h=["psd"],I=["doc","docx"],k=["xls","xlsx"],v=["zip","rar","iso"],w=["ai","esp"],C=["ppt","pptx"],F=["wav","aif","mp3","aac"],R=["jpg","jpeg","gif","bmp","png","svg","webp"],T=["m4v","avi","mpg","mp4","webm"];function O(o){let e,t=s(o);switch(o.includes(t)){case f.includes(t):e="txt";break;case v.includes(t):e="zip";break;case F.includes(t):e="audio";break;case R.includes(t):e="image";break;case T.includes(t):e="video";break;case I.includes(t):e="word";break;case k.includes(t):e="excel";break;case C.includes(t):e="powerpoint";break;case y.includes(t):e="pdf";break;case h.includes(t):e="photoshop";break;case w.includes(t):e="illustrator";break;case o?.startsWith("http"):e="image";break;default:e=s(o);}return e}function B(o){let e;switch(O(o)){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 s(o){return o&&o.split(".").pop()||""}function _(o){return o.split("/").pop()}function g(o){return typeof o=="string"?{key:o,preview:o,name:_(o),type:s(o),size:void 0,path:o,lastModified:void 0,lastModifiedDate:void 0}:{key:`key:${o.name}`,name:o.name,size:o.size,path:o.path,type:o.type,preview:o.preview,lastModified:o.lastModified,lastModifiedDate:o.lastModifiedDate}}function U({files:o}){return o.length?jsx(D,{variant:"outlined",sx:{py:1,px:2,mt:3,textAlign:"left",borderStyle:"dashed",borderColor:"error.main",bgcolor:e=>i$1(e.vars.palette.error.mainChannel,.08)},children:o.map(({file:e$1,errors:t})=>{let{path:n,size:d}=g(e$1),m=d?e(d):"";return jsxs(x,{sx:{my:1},children:[jsxs(z,{variant:"subtitle2",noWrap:!0,children:[n," - ",m," "]}),t.map(c=>jsxs(x,{component:"span",sx:{typography:"caption"},children:["- ",c.message]},c.code))]},n)})}):null}var Y=styled(l)({position:"relative",width:"100%",borderRadius:8,overflow:"hidden","&:hover .actions":{display:"flex"}}),oo=styled(l)(({theme:o})=>({display:"none",position:"absolute",alignItems:"center",justifyContent:"center",flexDirection:"row",gap:12,width:"100%",height:"100%",backgroundColor:alpha(o.palette.primary.main,.9),zIndex:999,button:{"&, &:hover, &:focus":{backgroundColor:"#fff"}}})),eo=styled(E)({position:"absolute",width:"100%",height:"100%",zIndex:99,backgroundColor:"#fff",borderRadius:"50%"}),to=styled(i)(({theme:o})=>({position:"relative",zIndex:999,pointerEvents:"auto",bgcolor:alpha(o.palette.grey[900],.72),"&:hover":{backgroundColor:alpha(o.palette.grey[900],.48)}})),ro=styled("div")({position:"relative",zIndex:1,userSelect:"none","&:hover":{zIndex:2}}),ao=styled(l)(({theme:o,width:e,isDragging:t})=>({width:e,height:80,alignItems:"center",display:"inline-flex",justifyContent:"center",margin:o.spacing(.5),padding:o.spacing(2,1,2,1),borderRadius:o.spacing(1.25),overflow:"hidden",position:"relative",border:`solid 1px ${o.palette.divider}`,backgroundColor:o.palette.common.white,zIndex:1,transition:"box-shadow 150ms ease-in-out",boxShadow:t?`0 0 0 2px ${o.palette.primary.main}, ${o.customShadows.z8}, inset 0 0 0 1000px ${alpha(o.palette.primary.main,.06)}`:"0px 0px 0px 0px rgba(0, 0, 0, 0)"})),io=styled(m.div)(({theme:o,width:e,isDragging:t})=>({width:e,height:60,alignItems:"center",display:"inline-flex",justifyContent:"center",margin:o.spacing(.5),padding:o.spacing(2),borderRadius:o.spacing(1.25),overflow:"hidden",position:"relative",border:`solid 1px ${o.palette.divider}`,backgroundColor:o.palette.common.white,zIndex:1,transition:"box-shadow 150ms ease-in-out",boxShadow:t?`0 0 0 2px ${o.palette.primary.main}, ${o.customShadows.z8}, inset 0 0 0 1000px ${alpha(o.palette.primary.main,.06)}`:"0px 0px 0px 0px rgba(0, 0, 0, 0)"})),no=styled(i)(({theme:o})=>({width:36,height:36,position:"absolute",top:10,right:10,borderRadius:0,zIndex:1,opacity:0,transition:"opacity 50ms ease-in-out",color:o.palette.error.main,backgroundColor:alpha(o.palette.common.white,.8),"&:hover":{backgroundColor:alpha(o.palette.common.white,.8),opacity:1}})),so=styled(i)(({theme:o})=>({width:24,height:24,position:"absolute",top:18,right:8,borderRadius:12,opacity:1,zIndex:1,transition:"opacity 50ms ease-in-out",color:o.palette.grey[500],backgroundColor:o.palette.common.white,"&:hover":{backgroundColor:o.palette.common.white}})),po=styled(i,{shouldForwardProp:o=>o!=="isMainImage"})(({theme:o,isMainImage:e})=>({color:e?o.palette.secondary.main:o.palette.action.disabled,backgroundColor:o.palette.common.white," &:hover":{backgroundColor:o.palette.common.white},top:4,left:8,padding:o.spacing(.5),border:"1px solid",borderColor:e?o.palette.secondary.main:o.palette.divider})),lo=styled(i)(({theme:o})=>({top:16,right:16,zIndex:9,position:"absolute",color:alpha(o.palette.common.white,.8),bgcolor:alpha(o.palette.grey[900],.72),"&:hover":{bgcolor:alpha(o.palette.grey[900],.48)}})),co=styled(x,{shouldForwardProp:o=>o!=="isDragActive"&&o!=="disabled"&&o!=="hasError"})(({theme:o,isDragActive:e,disabled:t,hasError:n})=>({width:64,height:64,flexShrink:0,display:"flex",borderRadius:1,cursor:"pointer",alignItems:"center",color:o.palette.text.disabled,justifyContent:"center",bgcolor:alpha(o.palette.grey[500],.08),border:`dashed 1px ${alpha(o.palette.grey[500],.16)}`,...e&&{opacity:.72},...t&&{opacity:.48,pointerEvents:"none"},...n&&{color:o.palette.error.main,borderColor:o.palette.error.main,bgcolor:alpha(o.palette.error.main,.08)},"&:hover":{opacity:.72}}));
14
14
 
15
15
  export { O as a, B as b, g as c, Y as d, oo as e, eo as f, to as g, ro as h, ao as i, io as j, no as k, so as l, po as m, lo as n, co as o, U as p };
@@ -9,6 +9,6 @@ import { ChromePicker } from 'react-color';
9
9
  import { styled } from '@mui/material/styles';
10
10
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
11
11
 
12
- var a=styled(ChromePicker)({fontFamily:"inherit",boxShadow:"none"});var b=({value:m,onChangeColor:c,tabIndex:h,...t})=>{let[u,i]=useState(),p=u||m,n=p?"#"+p.replaceAll("#",""):"",e=a$1(),l=(o="")=>{(/^#[0-9a-fA-F]*$/.test(o)||o===""||o==="#")&&c("#"+o.replaceAll("#","")),i(void 0);};return jsxs(Fragment,{children:[jsx(I,{...t,value:n,onChange:o=>l(o.target.value),InputProps:{inputProps:{...t.inputProps,maxLength:7,tabIndex:h},...t.InputProps,startAdornment:jsx(x,{position:"start",sx:{ml:2},children:jsx(P,{edge:"start","aria-label":"Escolher cor",onClick:e.onOpen,children:jsx(g,{sx:{minWidth:24,minHeight:24,backgroundColor:n,borderRadius:.5}})})})}}),jsx(k,{className:"popover-color-picker",open:!!e.open,anchorEl:e.open,onClose:e.onClose,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"center",horizontal:"center"},slotProps:{paper:{style:{borderRadius:8}}},children:jsx(a,{color:n,onChange:({hex:o})=>i(o),onChangeComplete:({hex:o})=>l(o),styles:{default:{picker:{fontFamily:"inherit",boxShadow:"none"}}},disableAlpha:!0})})]})},N=b;
12
+ var a=styled(ChromePicker)({fontFamily:"inherit",boxShadow:"none"});var b=({value:m,onChangeColor:c,tabIndex:h,...t})=>{let[u,i]=useState(),p=u||m,n=p?"#"+p.replaceAll("#",""):"",e=a$1(),l=(o="")=>{(/^#[0-9a-fA-F]*$/.test(o)||o===""||o==="#")&&c("#"+o.replaceAll("#","")),i(void 0);};return jsxs(Fragment,{children:[jsx(I,{...t,value:n,onChange:o=>l(o.target.value),InputProps:{...t.InputProps,startAdornment:jsx(x,{position:"start",sx:{ml:2},children:jsx(P,{edge:"start","aria-label":"Escolher cor",onClick:e.onOpen,children:jsx(g,{sx:{minWidth:24,minHeight:24,backgroundColor:n,borderRadius:.5}})})})},inputProps:{...t.inputProps,maxLength:7,tabIndex:h}}),jsx(k,{className:"popover-color-picker",open:!!e.open,anchorEl:e.open,onClose:e.onClose,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"center",horizontal:"center"},slotProps:{paper:{style:{borderRadius:8}}},children:jsx(a,{color:n,onChange:({hex:o})=>i(o),onChangeComplete:({hex:o})=>l(o),styles:{default:{picker:{fontFamily:"inherit",boxShadow:"none"}}},disableAlpha:!0})})]})},N=b;
13
13
 
14
14
  export { N as a };
@@ -0,0 +1,9 @@
1
+ import { a as a$1 } from './chunk-MAK4JF5M.js';
2
+ import l from '@mui/material/IconButton';
3
+ import p from '@mui/material/Stack';
4
+ import { styled } from '@mui/material/styles';
5
+ import { jsx, jsxs } from 'react/jsx-runtime';
6
+
7
+ var e=styled(l)(({theme:t})=>({position:"absolute",top:0,left:-2,zIndex:1,color:t.palette.grey[500],padding:"22px 5px",userSelect:"none",cursor:"grab","&:active":{cursor:"grabbing"}})),a=styled(p)({flexDirection:"row",alignItems:"center",justifyContent:"center",width:16,height:16,overflow:"hidden",transform:"scale(0.8)"});var s=({disableDrag:t,...i})=>t?null:jsx(e,{className:"dragIcon",disableRipple:!0,"aria-label":"Arrastar para ordenar",...i,children:jsxs(a,{children:[jsx(a$1,{sx:{marginLeft:0},icon:"MORE_BOLD",width:16}),jsx(a$1,{sx:{marginLeft:"-10px"},icon:"MORE_BOLD",width:16})]})}),D=s;
8
+
9
+ export { D as a };
@@ -0,0 +1,17 @@
1
+ import { a } from './chunk-MAK4JF5M.js';
2
+ import { createContext, forwardRef, useContext, useState, useMemo, useRef, useEffect } from 'react';
3
+ import le, { autocompleteClasses } from '@mui/material/Autocomplete';
4
+ import ae from '@mui/material/CircularProgress';
5
+ import ce from '@mui/material/TextField';
6
+ import { VariableSizeList } from 'react-window';
7
+ import K from '@mui/material/ListSubheader';
8
+ import Y from '@mui/material/Stack';
9
+ import { useTheme, styled } from '@mui/material/styles';
10
+ import I from '@mui/material/Typography';
11
+ import ee from '@mui/material/useMediaQuery';
12
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
13
+ import ie from '@mui/material/Popper';
14
+
15
+ var k=8,te=u=>{let{data:o,index:n,style:m}=u,r=o[n],{showValueInLabel:i,key:d,...y}=r[0],l={...m,top:m.top+k,paddingTop:8};return Object.prototype.hasOwnProperty.call(r,"group")?jsx(K,{component:"div",style:l,children:r.group},`list-box-item-group-${d}`):jsx(I,{component:"li",...y,noWrap:!0,style:l,children:jsxs(Y,{component:"div",direction:"row",flex:1,gap:1,justifyContent:"start",children:[r[1].icon&&jsx(a,{icon:r[1].icon}),r[1].label,i&&jsxs(I,{variant:"inherit",color:"grey.400",children:["(",r[1].value,")"]})]})},`list-box-item-${d}`)},z=createContext({}),M=forwardRef((u,o)=>{let n=useContext(z);return jsx("div",{ref:o,...u,...n})});M.displayName="OuterElementType";var re=u=>{let o=useRef(null);return useEffect(()=>{o.current!=null&&o.current.resetAfterIndex(0,!0);},[u]),o},oe=forwardRef(function(o,n){let{children:m,...r}=o,i=[];m.forEach(s=>{i.push(s),i.push(...s.children||[]);});let d=useTheme(),y=ee(d.breakpoints.up("sm")),l=i.length,b=y?36:48,f=s=>Object.prototype.hasOwnProperty.call(s,"group")?48:b,L=()=>l>8?8*b:i.map(f).reduce((s,a)=>s+a,0),P=re(l);return jsx("div",{ref:n,children:jsx(z.Provider,{value:r,children:jsx(VariableSizeList,{itemData:i,height:L()+2*k,width:"100%",ref:P,outerElementType:M,innerElementType:"ul",itemSize:s=>f(i[s]),overscanCount:5,itemCount:l,children:te})})})}),N=oe;var D=styled(ie)({[`& .${autocompleteClasses.listbox}`]:{boxSizing:"border-box","& ul":{padding:0,margin:0}}});var H=forwardRef(({name:u,label:o,value:n,options:m=[],loading:r,noOptionsText:i="Nenhum resultado encontrado.",loadingText:d="Carregando op\xE7\xF5es...",error:y,helperText:l,placeholder:b,onChange:f,groupBy:L,showValueInLabel:P,disabled:s,multiple:a$1,required:X,renderOption:x,tabIndex:J,onInputChange:A,onSearch:v,onBlur:E,InputLabelProps:$,...V},U)=>{let[W,T]=useState(),j=e=>e&&typeof e=="object"?e.value.toString():e.toString(),g=useMemo(()=>a$1?(Array.isArray(n)?n:[]).reduce((p,h)=>{let O=m.find(B=>B.value.toString()===h.toString());return O?[...p,O]:[...p]},[]):m.find(t=>t.value.toString()===n?.toString())||null,[m,n,a$1]);return jsx(le,{ref:U,value:W||g,onInputChange:(e,t,p)=>{if(A&&A(e,t,p),p==="input"){v&&(v(t),T(t));return}T(void 0);},options:m,loading:r,noOptionsText:i,loadingText:d,disabled:r||s,disableListWrap:!0,PopperComponent:D,ListboxComponent:x?void 0:N,filterOptions:(e,t)=>e.filter(p=>`${p.value} ${p.label}`.toLocaleUpperCase().includes(t.inputValue.toLocaleUpperCase())),onChange:(e,t)=>{if(!t){f(a$1?[]:null);return}if(Array.isArray(t)){f(t.map(j));return}f(typeof t=="string"?t.toString():t.value.toString());},onBlur:e=>{E&&E(e),T(void 0);},renderOption:(e,t,p,h)=>x?x(e,t,p,h):[{...e,showValueInLabel:P},t],renderGroup:e=>e,groupBy:L,multiple:a$1,renderInput:e=>jsx(ce,{...e,name:u,placeholder:b,fullWidth:!0,error:!!y,helperText:l,label:o,required:X,InputProps:{...e.InputProps,...!a$1&&{startAdornment:g&&!Array.isArray(g)&&g.icon?jsx(a,{icon:g.icon}):void 0},endAdornment:jsxs(Fragment,{children:[r?jsx(ae,{color:"primary",size:20}):null,e.InputProps.endAdornment]})},inputProps:{...e.inputProps,name:u,tabIndex:J},InputLabelProps:$}),...V})});H.displayName="Autocomplete";var Je=H;
16
+
17
+ export { Je as a };
@@ -1,4 +1,4 @@
1
- import { p, f } from './chunk-4VAXJ4XM.js';
1
+ import { p, f } from './chunk-7WCRRQEW.js';
2
2
  import { a as a$3 } from './chunk-2E4HVMRH.js';
3
3
  import { e } from './chunk-ANAHA3L6.js';
4
4
  import { i } from './chunk-D27ND54J.js';
@@ -1,5 +1,5 @@
1
1
  import { a as a$4 } from './chunk-4ZBE3RNR.js';
2
- import { a as a$1 } from './chunk-5J3V35EQ.js';
2
+ import { a as a$1 } from './chunk-427TWOPH.js';
3
3
  import { a as a$3 } from './chunk-TWGGHTU5.js';
4
4
  import { a as a$2 } from './chunk-26GV7WKC.js';
5
5
  import { a as a$5 } from './chunk-MAK4JF5M.js';
@@ -0,0 +1,7 @@
1
+ import { useFormContext, Controller } from 'react-hook-form';
2
+ import g from '@mui/material/TextField';
3
+ import { jsx } from 'react/jsx-runtime';
4
+
5
+ var C=({name:l,helperText:t,rules:n,onChange:r,tabIndex:u,className:d,id:p,forceShowHelperText:f,...e})=>{let{control:m}=useFormContext();return jsx(Controller,{name:l,control:m,rules:n,render:({field:{ref:F,value:P,...s},fieldState:{error:o}})=>jsx(g,{...s,value:P??"",onChange:a=>{s.onChange(a),r&&r(a);},inputRef:F,fullWidth:!0,error:!!o,helperText:f?t||o?.message:o?.message||t,"data-intercom-target":l,...e,InputLabelProps:{...e.InputLabelProps,htmlFor:p},inputProps:{...e.inputProps,name:l,tabIndex:u,"aria-label":e.label,id:p},className:`field-${l} ${d}`})})},L=C;
6
+
7
+ export { L as a };
@@ -1,8 +1,8 @@
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-4VAXJ4XM.js';
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-7WCRRQEW.js';
2
2
  import { a as a$5 } from './chunk-2E4HVMRH.js';
3
3
  import { a as a$1 } from './chunk-H5L4ARDB.js';
4
4
  import { e } from './chunk-ANAHA3L6.js';
5
- import { a as a$7 } from './chunk-B42VMENU.js';
5
+ import { a as a$7 } from './chunk-DXACBPEV.js';
6
6
  import { x } from './chunk-2P4CXK3O.js';
7
7
  import { a as a$4 } from './chunk-FK7DDO5L.js';
8
8
  import { i, o } from './chunk-D27ND54J.js';
@@ -1,4 +1,4 @@
1
- import { a } from './chunk-LLMDC6IE.js';
1
+ import { a } from './chunk-GJGUIHOL.js';
2
2
  import { useFormContext, Controller } from 'react-hook-form';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
 
@@ -1,4 +1,4 @@
1
- import { a } from './chunk-ORLVNXTG.js';
1
+ import { a } from './chunk-2QUYG4AQ.js';
2
2
  import { useFormContext, Controller } from 'react-hook-form';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
 
@@ -1,4 +1,4 @@
1
- import { a } from './chunk-7BK54YIS.js';
1
+ import { a } from './chunk-2FXXN6VA.js';
2
2
  import { f } from './chunk-ANAHA3L6.js';
3
3
  import { a as a$1 } from './chunk-MAK4JF5M.js';
4
4
  import { forwardRef, useState, useRef, useMemo, useCallback } from 'react';
@@ -1,3 +1,3 @@
1
- export { a as default } from '../../chunk-LLMDC6IE.js';
1
+ export { a as default } from '../../chunk-GJGUIHOL.js';
2
2
  import '../../chunk-MAK4JF5M.js';
3
3
  import '../../chunk-FUB7WQS5.js';
@@ -1,3 +1,3 @@
1
- export { a as default } from '../../chunk-7F56LFN2.js';
1
+ export { a as default } from '../../chunk-6O66AMF6.js';
2
2
  import '../../chunk-NF42ENKE.js';
3
3
  import '../../chunk-ILHUUK4X.js';
@@ -1,2 +1,2 @@
1
- export { a as default } from '../../chunk-HZJAUQ3O.js';
1
+ export { a as default } from '../../chunk-AJW3AGOS.js';
2
2
  import '../../chunk-ORYAES3Q.js';
@@ -1,8 +1,8 @@
1
1
  import { c } from '../../chunk-QQB3DGHT.js';
2
2
  import { a } from '../../chunk-EBTRMUBS.js';
3
- import { a as a$1 } from '../../chunk-FK7DDO5L.js';
4
3
  import { a as a$2 } from '../../chunk-PUR4ARBY.js';
5
4
  import '../../chunk-U26IUEAG.js';
5
+ import { a as a$1 } from '../../chunk-FK7DDO5L.js';
6
6
  import '../../chunk-D27ND54J.js';
7
7
  import dt from '@mui/material/Pagination';
8
8
  import g from '@mui/material/Stack';
@@ -1,5 +1,5 @@
1
- export { a as default } from '../../chunk-JTD47UZZ.js';
2
- import '../../chunk-FK7DDO5L.js';
1
+ export { a as default } from '../../chunk-TQKNFH6W.js';
3
2
  import '../../chunk-PUR4ARBY.js';
4
3
  import '../../chunk-U26IUEAG.js';
4
+ import '../../chunk-FK7DDO5L.js';
5
5
  import '../../chunk-D27ND54J.js';
@@ -1,12 +1,12 @@
1
- import { a as a$5 } from '../../chunk-5J3V35EQ.js';
1
+ import { a as a$5 } from '../../chunk-427TWOPH.js';
2
2
  import { a as a$2 } from '../../chunk-5YJTSVA2.js';
3
3
  import { a as a$6 } from '../../chunk-TWGGHTU5.js';
4
4
  import { a as a$4 } from '../../chunk-HOMGLSVS.js';
5
5
  import { a } from '../../chunk-CFD2VTQ3.js';
6
- import { a as a$9 } from '../../chunk-JTD47UZZ.js';
7
- import { a as a$7 } from '../../chunk-FK7DDO5L.js';
6
+ import { a as a$9 } from '../../chunk-TQKNFH6W.js';
8
7
  import '../../chunk-PUR4ARBY.js';
9
8
  import '../../chunk-U26IUEAG.js';
9
+ import { a as a$7 } from '../../chunk-FK7DDO5L.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-MAK4JF5M.js';
@@ -4,6 +4,7 @@ import { DatePickerProps as DatePickerProps$1 } from '@mui/x-date-pickers-pro';
4
4
  import { Dayjs } from 'dayjs';
5
5
 
6
6
  type DatePickerProps = Omit<DatePickerProps$1<Dayjs>, 'value' | 'onChange'> & {
7
+ name?: string;
7
8
  tabIndex?: number;
8
9
  helperText?: ReactNode;
9
10
  required?: boolean;
@@ -11,6 +12,6 @@ type DatePickerProps = Omit<DatePickerProps$1<Dayjs>, 'value' | 'onChange'> & {
11
12
  onChange(value: Date | null | undefined): void;
12
13
  };
13
14
 
14
- declare const DatePicker: ({ value, onChange, tabIndex, helperText, required, ...other }: DatePickerProps) => react_jsx_runtime.JSX.Element;
15
+ declare const DatePicker: ({ name, value, onChange, tabIndex, helperText, required, ...other }: DatePickerProps) => react_jsx_runtime.JSX.Element;
15
16
 
16
17
  export { DatePicker as default };
@@ -1,7 +1,7 @@
1
1
  import { DatePicker } from '@mui/x-date-pickers-pro';
2
- import s from 'dayjs';
2
+ import P from 'dayjs';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
 
5
- var P=({value:t,onChange:l,tabIndex:e,helperText:i,required:p,...o})=>jsx(DatePicker,{...o,format:"DD/MM/YYYY",value:t?s(t):null,onChange:r=>l(r?r.toDate():null),slotProps:{textField:{...o.slotProps?.textField,required:p,helperText:i,autoComplete:"off",spellCheck:"false",fullWidth:!0,inputProps:{tabIndex:e}},openPickerButton:{tabIndex:e}}}),c=P;
5
+ var f=({name:r,value:e,onChange:l,tabIndex:a,helperText:i,required:p,...t})=>jsx(DatePicker,{...t,format:"DD/MM/YYYY",value:e?P(e):null,onChange:o=>l(o?o.toDate():null),slotProps:{textField:{...t.slotProps?.textField,name:r,required:p,helperText:i,autoComplete:"off",spellCheck:"false",fullWidth:!0},openPickerButton:{tabIndex:a}}}),k=f;
6
6
 
7
- export { c as default };
7
+ export { k as default };
@@ -0,0 +1,12 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { DateRangeCalendarProps as DateRangeCalendarProps$1 } from '@mui/x-date-pickers-pro';
3
+ import { Dayjs } from 'dayjs';
4
+
5
+ type DateRangeCalendarProps = Omit<DateRangeCalendarProps$1<Dayjs>, 'value' | 'onChange'> & {
6
+ value?: [Date | null, Date | null] | undefined;
7
+ onChange(value: [Date | null, Date | null]): void;
8
+ };
9
+
10
+ declare const DateRangeCalendar: ({ value, onChange, ...other }: DateRangeCalendarProps) => react_jsx_runtime.JSX.Element;
11
+
12
+ export { DateRangeCalendar as default };
@@ -0,0 +1,7 @@
1
+ import { DateRangeCalendar } from '@mui/x-date-pickers-pro';
2
+ import n from 'dayjs';
3
+ import { jsx } from 'react/jsx-runtime';
4
+
5
+ var d=({value:a,onChange:e,...t})=>{let o=[a?.[0]?n(a[0]):null,a?.[1]?n(a[1]):null];return jsx(DateRangeCalendar,{...t,value:o,onChange:l=>{e([l[0]?l[0].toDate():null,l[1]?l[1].toDate():null]);}})},j=d;
6
+
7
+ export { j as default };
@@ -8,6 +8,7 @@ type DateRange = {
8
8
  endDate?: Date | null | undefined;
9
9
  };
10
10
  type DateRangePickerProps = Omit<DateRangePickerProps$1<Dayjs>, 'value' | 'onChange'> & {
11
+ name?: string;
11
12
  value?: DateRange;
12
13
  onChange(value?: DateRange): void;
13
14
  tabIndex?: number;
@@ -15,6 +16,6 @@ type DateRangePickerProps = Omit<DateRangePickerProps$1<Dayjs>, 'value' | 'onCha
15
16
  required?: boolean;
16
17
  };
17
18
 
18
- declare const DateRangePicker: ({ label, value, onChange, tabIndex, helperText, required, ...other }: DateRangePickerProps) => react_jsx_runtime.JSX.Element;
19
+ declare const DateRangePicker: ({ name, label, value, onChange, tabIndex, helperText, required, ...other }: DateRangePickerProps) => react_jsx_runtime.JSX.Element;
19
20
 
20
21
  export { DateRangePicker as default };
@@ -1,7 +1,7 @@
1
1
  import { DateRangePicker } from '@mui/x-date-pickers-pro';
2
- import r from 'dayjs';
2
+ import o from 'dayjs';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
 
5
- var p=({label:o,value:t,onChange:l,tabIndex:n,helperText:s,required:D,...a})=>jsx(DateRangePicker,{format:"DD/MM/YYYY",value:[t?.startDate?r(t.startDate):null,t?.endDate?r(t.endDate):null],onChange:e=>l({startDate:e[0]?e[0].toDate():null,endDate:e[1]?e[1].toDate():null}),...a,slotProps:{textField:()=>({...a.slotProps?.textField,required:D,helperText:s,autoComplete:"off",spellCheck:"false",fullWidth:!0,label:o,inputProps:{tabIndex:n}})},sx:{width:1}}),u=p;
5
+ var d=({name:a,label:l,value:e,onChange:n,tabIndex:f,helperText:s,required:D,...r})=>jsx(DateRangePicker,{format:"DD/MM/YYYY",value:[e?.startDate?o(e.startDate):null,e?.endDate?o(e.endDate):null],onChange:t=>n({startDate:t[0]?t[0].toDate():null,endDate:t[1]?t[1].toDate():null}),...r,slotProps:{textField:({position:t})=>({...r.slotProps?.textField,required:D,helperText:s,autoComplete:"off",spellCheck:"false",fullWidth:!0,label:l,name:t==="start"?`${a}Start`:`${a}End`})},sx:{width:1}}),u=d;
6
6
 
7
7
  export { u as default };
@@ -4,6 +4,7 @@ import { DateTimePickerProps as DateTimePickerProps$1 } from '@mui/x-date-picker
4
4
  import { Dayjs } from 'dayjs';
5
5
 
6
6
  type DateTimePickerProps = Omit<DateTimePickerProps$1<Dayjs>, 'value' | 'onChange'> & {
7
+ name?: string;
7
8
  tabIndex?: number;
8
9
  helperText?: ReactNode;
9
10
  required?: boolean;
@@ -11,6 +12,6 @@ type DateTimePickerProps = Omit<DateTimePickerProps$1<Dayjs>, 'value' | 'onChang
11
12
  onChange(value: Date | null | undefined): void;
12
13
  };
13
14
 
14
- declare const DateTimePicker: ({ value, onChange, tabIndex, helperText, required, ...other }: DateTimePickerProps) => react_jsx_runtime.JSX.Element;
15
+ declare const DateTimePicker: ({ name, value, onChange, tabIndex, helperText, required, ...other }: DateTimePickerProps) => react_jsx_runtime.JSX.Element;
15
16
 
16
17
  export { DateTimePicker as default };
@@ -1,7 +1,7 @@
1
1
  import { DateTimePicker } from '@mui/x-date-pickers-pro';
2
- import a from 'dayjs';
2
+ import s from 'dayjs';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
 
5
- var s=({value:e,onChange:i,tabIndex:t,helperText:l,required:m,...o})=>jsx(DateTimePicker,{...o,format:"DD/MM/YYYY HH:mm",value:e?a(e):null,onChange:r=>i(r?r.toDate():null),slotProps:{textField:{...o.slotProps?.textField,required:m,helperText:l,autoComplete:"off",spellCheck:"false",fullWidth:!0,inputProps:{tabIndex:t}},openPickerButton:{tabIndex:t}}}),D=s;
5
+ var P=({name:r,value:e,onChange:i,tabIndex:l,helperText:m,required:a,...t})=>jsx(DateTimePicker,{...t,format:"DD/MM/YYYY HH:mm",value:e?s(e):null,onChange:o=>i(o?o.toDate():null),slotProps:{textField:{...t.slotProps?.textField,name:r,required:a,helperText:m,autoComplete:"off",spellCheck:"false",fullWidth:!0},openPickerButton:{tabIndex:l}}}),c=P;
6
6
 
7
- export { D as default };
7
+ export { c as default };
@@ -1,3 +1,3 @@
1
- export { a as default } from '../../chunk-B42VMENU.js';
1
+ export { a as default } from '../../chunk-DXACBPEV.js';
2
2
  import '../../chunk-MAK4JF5M.js';
3
3
  import '../../chunk-FUB7WQS5.js';
@@ -1,7 +1,7 @@
1
1
  import { x } from '../../chunk-2P4CXK3O.js';
2
- import n from '@mui/material/Box';
2
+ import i from '@mui/material/Box';
3
3
  import { styled, alpha } from '@mui/material/styles';
4
4
 
5
- var a=styled(n,{shouldForwardProp:r=>r!=="transform"&&r!=="transition"&&r!=="isDragging"})(({theme:r,transform:e=null,transition:i="",isDragging:o=!1})=>({transform:x.Transform.toString(e),transition:i,boxShadow:o?`0 0 0 2px ${r.palette.primary.main}, ${r.customShadows.z8}, inset 0 0 0 1000px ${alpha(r.palette.primary.main,.06)}`:void 0,background:r.palette.background.paper,borderRadius:8,zIndex:o?1200:0}));var u=a;
5
+ var a=styled(i,{shouldForwardProp:r=>r!=="transform"&&r!=="transition"&&r!=="isDragging"})(({theme:r,transform:e=null,transition:n="",isDragging:o=!1})=>({transform:x.Transform.toString(e),transition:n,boxShadow:o?`0 0 0 2px ${r.palette.primary.main}, ${r.customShadows.z8}, inset 0 0 0 1000px ${alpha(r.palette.primary.main,.06)}`:void 0,background:r.palette.background.paper,borderRadius:8,userSelect:"none",zIndex:o?1200:0}));var b=a;
6
6
 
7
- export { u as default };
7
+ export { b as default };