@soyfri/shared-library 1.3.4 → 1.3.7
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/cjs/components/Input/Input.cjs +1 -1
- package/cjs/components/Select/Select.cjs +1 -1
- package/cjs/components/gallery/Gallery.cjs +2 -0
- package/cjs/components/gallery/Gallery.cjs.map +1 -0
- package/cjs/components/gallery/GalleryLightbox.cjs +2 -0
- package/cjs/components/gallery/GalleryLightbox.cjs.map +1 -0
- package/cjs/components/gallery/GalleryMain.cjs +2 -0
- package/cjs/components/gallery/GalleryMain.cjs.map +1 -0
- package/cjs/components/gallery/GalleryThumbnails.cjs +2 -0
- package/cjs/components/gallery/GalleryThumbnails.cjs.map +1 -0
- package/cjs/components/gallery.cjs +2 -0
- package/cjs/components/gallery.cjs.map +1 -0
- package/cjs/node_modules/@mui/icons-material/esm/ArrowBackIosNew.cjs +2 -0
- package/cjs/node_modules/@mui/icons-material/esm/ArrowBackIosNew.cjs.map +1 -0
- package/cjs/node_modules/@mui/icons-material/esm/ArrowForwardIos.cjs +2 -0
- package/cjs/node_modules/@mui/icons-material/esm/ArrowForwardIos.cjs.map +1 -0
- package/cjs/node_modules/@mui/icons-material/esm/Fullscreen.cjs +2 -0
- package/cjs/node_modules/@mui/icons-material/esm/Fullscreen.cjs.map +1 -0
- package/cjs/node_modules/@mui/icons-material/esm/KeyboardArrowDown.cjs +2 -0
- package/cjs/node_modules/@mui/icons-material/esm/KeyboardArrowDown.cjs.map +1 -0
- package/cjs/node_modules/@mui/icons-material/esm/KeyboardArrowUp.cjs +2 -0
- package/cjs/node_modules/@mui/icons-material/esm/KeyboardArrowUp.cjs.map +1 -0
- package/cjs/node_modules/@mui/icons-material/esm/RestartAlt.cjs +2 -0
- package/cjs/node_modules/@mui/icons-material/esm/RestartAlt.cjs.map +1 -0
- package/cjs/node_modules/@mui/icons-material/esm/RotateLeft.cjs +2 -0
- package/cjs/node_modules/@mui/icons-material/esm/RotateLeft.cjs.map +1 -0
- package/cjs/node_modules/@mui/icons-material/esm/RotateRight.cjs +2 -0
- package/cjs/node_modules/@mui/icons-material/esm/RotateRight.cjs.map +1 -0
- package/cjs/node_modules/@mui/icons-material/esm/ZoomIn.cjs +2 -0
- package/cjs/node_modules/@mui/icons-material/esm/ZoomIn.cjs.map +1 -0
- package/cjs/node_modules/@mui/icons-material/esm/ZoomOut.cjs +2 -0
- package/cjs/node_modules/@mui/icons-material/esm/ZoomOut.cjs.map +1 -0
- package/components/gallery/index.ts +1 -0
- package/esm/components/Input/Input.d.ts +4 -4
- package/esm/components/Input/Input.js +1 -1
- package/esm/components/Select/Select.d.ts +20 -4
- package/esm/components/Select/Select.js +1 -1
- package/esm/components/gallery/Gallery.d.ts +12 -0
- package/esm/components/gallery/Gallery.definition.d.ts +1 -0
- package/esm/components/gallery/Gallery.js +2 -0
- package/esm/components/gallery/Gallery.js.map +1 -0
- package/esm/components/gallery/Gallery.stories.d.ts +6 -0
- package/esm/components/gallery/GalleryLightbox.d.ts +20 -0
- package/esm/components/gallery/GalleryLightbox.js +2 -0
- package/esm/components/gallery/GalleryLightbox.js.map +1 -0
- package/esm/components/gallery/GalleryMain.d.ts +12 -0
- package/esm/components/gallery/GalleryMain.js +2 -0
- package/esm/components/gallery/GalleryMain.js.map +1 -0
- package/esm/components/gallery/GalleryThumbnails.d.ts +17 -0
- package/esm/components/gallery/GalleryThumbnails.js +2 -0
- package/esm/components/gallery/GalleryThumbnails.js.map +1 -0
- package/esm/components/gallery/index.d.ts +1 -0
- package/esm/components/gallery.js +2 -0
- package/esm/components/gallery.js.map +1 -0
- package/esm/node_modules/@mui/icons-material/esm/ArrowBackIosNew.js +2 -0
- package/esm/node_modules/@mui/icons-material/esm/ArrowBackIosNew.js.map +1 -0
- package/esm/node_modules/@mui/icons-material/esm/ArrowForwardIos.js +2 -0
- package/esm/node_modules/@mui/icons-material/esm/ArrowForwardIos.js.map +1 -0
- package/esm/node_modules/@mui/icons-material/esm/Fullscreen.js +2 -0
- package/esm/node_modules/@mui/icons-material/esm/Fullscreen.js.map +1 -0
- package/esm/node_modules/@mui/icons-material/esm/KeyboardArrowDown.js +2 -0
- package/esm/node_modules/@mui/icons-material/esm/KeyboardArrowDown.js.map +1 -0
- package/esm/node_modules/@mui/icons-material/esm/KeyboardArrowUp.js +2 -0
- package/esm/node_modules/@mui/icons-material/esm/KeyboardArrowUp.js.map +1 -0
- package/esm/node_modules/@mui/icons-material/esm/RestartAlt.js +2 -0
- package/esm/node_modules/@mui/icons-material/esm/RestartAlt.js.map +1 -0
- package/esm/node_modules/@mui/icons-material/esm/RotateLeft.js +2 -0
- package/esm/node_modules/@mui/icons-material/esm/RotateLeft.js.map +1 -0
- package/esm/node_modules/@mui/icons-material/esm/RotateRight.js +2 -0
- package/esm/node_modules/@mui/icons-material/esm/RotateRight.js.map +1 -0
- package/esm/node_modules/@mui/icons-material/esm/ZoomIn.js +2 -0
- package/esm/node_modules/@mui/icons-material/esm/ZoomIn.js.map +1 -0
- package/esm/node_modules/@mui/icons-material/esm/ZoomOut.js +2 -0
- package/esm/node_modules/@mui/icons-material/esm/ZoomOut.js.map +1 -0
- package/package.json +6 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.cjs"),t=require("../../_virtual/jsx-runtime.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.cjs"),t=require("../../_virtual/jsx-runtime.cjs"),r=require("react"),n=require("@mui/material"),o=require("../../node_modules/react-hook-form/dist/index.esm.cjs");const i=require("../../node_modules/@mui/system/esm/styled/styled.cjs")(n.TextField)((({theme:e})=>({"& .MuiInputBase-root":{maxHeight:"34px",padding:"8px 10px",borderRadius:"10px",display:"flex",alignItems:"center",fontSize:"14px"},"& .MuiInputBase-input":{padding:"0 !important",height:"18px",display:"flex",alignItems:"center",marginTop:"-4px"},"& .MuiInputLabel-root":{top:"50%",transform:"translate(14px, -50%)","&.MuiInputLabel-shrink":{transform:"translate(1px, -200%) scale(0.75)",fontSize:"16px !important","> legend":{display:"none"}}},"& .MuiInputLabel-root.Mui-error":{top:"25%"},"& .MuiInputBase-root > fieldset > legend":{display:"none"},"& .MuiOutlinedInput-notchedOutline":{border:"0.7px solid",borderColor:"#e0e0e0"}}))),s=r.forwardRef(((r,n)=>{var{type:s="text",variant:a="outlined",min:l,max:u,inputProps:p,slotProps:d,value:m,onChange:x}=r,c=e.__rest(r,["type","variant","min","max","inputProps","slotProps","value","onChange"]);const g="control"in c&&void 0!==c.control,v=Object.assign({},p);"number"===s&&(v.min=void 0!==l?l:Number.NEGATIVE_INFINITY,void 0!==u&&(v.max=u));const f=Object.assign(Object.assign({},d),{htmlInput:Object.assign(Object.assign({},null==d?void 0:d.htmlInput),v)}),h=(e,t)=>{const r=e.target.value;let n;"number"===s?(n=""===r||"-"===r?r:parseFloat(r),isNaN(n)&&""!==r&&"-"!==r&&(n=r)):n=r,g?null==t||t(n):null==x||x(n)};if(g){const e=c;return t.jsxRuntimeExports.jsx(o.Controller,{name:e.name,control:e.control,rules:e.validation,render:({field:e,fieldState:{error:r}})=>{var n;return t.jsxRuntimeExports.jsx(i,Object.assign({fullWidth:!0,value:null!==(n=e.value)&&void 0!==n?n:"",onChange:t=>h(t,e.onChange),onBlur:e.onBlur,type:s,variant:a,slotProps:f,inputRef:e.ref,error:!!r,helperText:null==r?void 0:r.message},c))}})}{const e=c;return t.jsxRuntimeExports.jsx(i,Object.assign({fullWidth:!0,name:e.name,value:null!=m?m:"",onChange:e=>h(e),type:s,variant:a,slotProps:f,inputRef:n,error:e.error,helperText:e.helperText},c))}}));exports.Input=s,exports.default=s;
|
|
2
2
|
//# sourceMappingURL=Input.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/jsx-runtime.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.cjs"),t=require("../../_virtual/jsx-runtime.cjs"),n=require("react"),r=require("@mui/material"),i=require("../../node_modules/@mui/icons-material/esm/Clear.cjs"),s=require("../../node_modules/@mui/icons-material/esm/Check.cjs"),o=require("../../node_modules/react-hook-form/dist/index.esm.cjs"),l=require("../../node_modules/@mui/system/esm/styled/styled.cjs");function a(e){return null}a.displayName="Option";const u=l(r.Select)((({theme:e})=>({"& .MuiInputBase-root":{maxHeight:"4px",padding:"8px 10px",borderRadius:"10px",display:"flex",alignItems:"center",fontSize:"14px"},"& .MuiSelect-select":{padding:"0 !important",height:"28px !important",display:"flex",alignItems:"center",marginLeft:"8px"},"& .MuiOutlinedInput-notchedOutline":{marginBottom:"-4px !important",borderRadius:"10px"},"& .MuiSelect-icon":{top:"50%",transform:"translateY(-50%)"},"& .MuiOutlinedInput-notchedOutline > legend":{display:"none"}}))),p=l(r.InputLabel)((({theme:e})=>({"&.MuiInputLabel-root":{top:"50%",transform:"translate(14px, -50%)"},"&.MuiInputLabel-shrink":{transform:"translate(1px, -200%) scale(0.75)",fontSize:"16px","> legend":{display:"none"}},"&.MuiInputLabel-animated":{"&.MuiInputLabel-shrink":{display:"block"}}}))),d=l(r.OutlinedInput)((({theme:e})=>({"& .MuiInputBase-root":{maxHeight:"34px",padding:"8px 10px",borderRadius:"10px",display:"flex",alignItems:"center",fontSize:"14px"," & > .MuiAvatar-img":{width:"14px",height:"14px"}},"& .MuiInputBase-input":{padding:"0 !important",height:"18px",display:"flex",alignItems:"center"},"& .MuiOutlinedInput-notchedOutline":{border:"0.7px solid",borderColor:"#e0e0e0"}})));function x(l){const{label:a,options:x=[],value:c,onChange:m,defaultValue:h,size:g="medium",multiple:j=!1,filterable:f=!1,placeholder:b,children:y,maxHeight:v=300,maxWidth:R,maxChipsToShow:E=3,renderChipLabel:M,chipVariant:C="outlined",loadOptions:I,loadingMessage:O="Cargando opciones...",noOptionsMessage:_="No hay opciones",debounceTimeout:S=300,disabled:T=!1,error:k=!1,helperText:L}=l,B=e.__rest(l,["label","options","value","onChange","defaultValue","size","multiple","filterable","placeholder","children","maxHeight","maxWidth","maxChipsToShow","renderChipLabel","chipVariant","loadOptions","loadingMessage","noOptionsMessage","debounceTimeout","disabled","error","helperText"]),w="control"in B&&void 0!==B.control,z=n.useMemo((()=>{var e;if(1===n.Children.count(y)){const t=n.Children.only(y);if(n.isValidElement(t)&&"Option"===(null===(e=t.type)||void 0===e?void 0:e.displayName))return t.props.children}return null}),[y]),[q,P]=n.useState(""),[V,W]=n.useState([]),[A,H]=n.useState(!1),F=n.useRef(null),N=n.useRef(null),D="function"==typeof I,K=D?V:x;n.useEffect((()=>{D&&(F.current&&clearTimeout(F.current),q?(H(!0),F.current=window.setTimeout((()=>{I(q).then((e=>{W(e)})).finally((()=>{H(!1),N.current&&N.current.focus()}))}),S)):(W([]),H(!1),N.current&&N.current.focus()))}),[q,D,I,S]);const Y=n.useMemo((()=>D?K:f&&q?K.filter((e=>e.label.toLowerCase().includes(q.toLowerCase()))):K),[q,f,K,D]),$=n.useMemo((()=>{const e={};return Y.forEach((t=>{const n=t.group||"__default";e[n]||(e[n]=[]),e[n].push(t)})),e}),[Y]),G=e=>{var n;if(!e||Array.isArray(e)&&0===e.length)return t.jsxRuntimeExports.jsx(r.Typography,{sx:{color:"text.disabled"},children:b||""});if(!j){const t=K.find((t=>t.value===e));return M&&t?M(t):null!==(n=null==t?void 0:t.label)&&void 0!==n?n:String(e)}const s=e,o=s.slice(0,E),l=s.length-E;return t.jsxRuntimeExports.jsxs(r.Box,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:[o.map((e=>{const n=K.find((t=>t.value===e));if(!n)return null;return t.jsxRuntimeExports.jsx(r.Chip,{variant:C,color:"primary",label:M?M(n):n.label,avatar:n.img?t.jsxRuntimeExports.jsx(r.Avatar,{sx:{"& > .MuiAvatar-root, .MuiChip-avatar":{backgroundColor:"red"}},src:n.img}):void 0,onDelete:()=>(e=>{const t=c.filter((t=>t!==e));null==m||m(t)})(e),deleteIcon:t.jsxRuntimeExports.jsx(i,{sx:{fontSize:"12px !important"}}),sx:{height:"27px",marginTop:"1px"}},e)})),l>0&&t.jsxRuntimeExports.jsx(r.Chip,{sx:{height:"27px",marginTop:"0px"},label:`+${l} más`,variant:C})]})},J=n.useMemo((()=>{const e=[];return(f||D)&&e.push(t.jsxRuntimeExports.jsx(r.ListSubheader,{sx:{px:2,pt:1,pb:1,backgroundColor:"background.paper",zIndex:1,position:"sticky",top:0},children:t.jsxRuntimeExports.jsx(r.TextField,{inputRef:N,placeholder:"Buscar...",variant:"standard",size:"small",fullWidth:!0,value:q,onChange:e=>P(e.target.value),inputProps:{autoFocus:!0},onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation()})},"search-header")),A?e.push(t.jsxRuntimeExports.jsx(r.MenuItem,{disabled:!0,children:t.jsxRuntimeExports.jsxs(r.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[t.jsxRuntimeExports.jsx(r.CircularProgress,{size:20}),t.jsxRuntimeExports.jsx(r.Typography,{children:O})]})},"loading-message")):0===Object.keys($).length||1===Object.keys($).length&&$.__default&&0===$.__default.length?e.push(t.jsxRuntimeExports.jsx(r.MenuItem,{disabled:!0,children:t.jsxRuntimeExports.jsx(r.Typography,{children:_})},"no-options-message")):Object.entries($).forEach((([n,i])=>{"__default"!==n&&e.push(t.jsxRuntimeExports.jsx(r.ListSubheader,{disableSticky:!0,children:n},n)),i.forEach((n=>{const i=j?null==c?void 0:c.includes(n.value):c===n.value;e.push(t.jsxRuntimeExports.jsxs(r.MenuItem,{value:n.value,disabled:n.disabled,selected:i,children:[t.jsxRuntimeExports.jsx(r.ListItemIcon,{sx:{minWidth:32},children:i&&t.jsxRuntimeExports.jsx(s,{sx:{color:"green"}})}),z?z(n):n.label]},n.value))}))})),e}),[$,z,f,D,q,A,O,_,j,c]),Q=a&&!b,U=(e,t)=>{const n=e.target.value;w?null==t||t(n):null==m||m(n)},X="control"in B&&void 0!==B.control,Z=(e,n,i,s)=>t.jsxRuntimeExports.jsxs(r.FormControl,{fullWidth:!0,size:g,error:k,disabled:T,children:[Q&&t.jsxRuntimeExports.jsx(p,{children:a}),t.jsxRuntimeExports.jsxs(r.Box,{sx:{width:"100%",display:"grid",marginBottom:"10px",marginTop:"10px"},children:[t.jsxRuntimeExports.jsx(u,Object.assign({label:a,value:null!=e?e:j?[]:"",defaultValue:h,multiple:j,onChange:n,onBlur:i,renderValue:G,displayEmpty:!0,input:t.jsxRuntimeExports.jsx(d,{label:a}),disabled:T,MenuProps:{PaperProps:{style:{maxHeight:v,maxWidth:R}}},inputRef:s},B,{children:J})),L&&t.jsxRuntimeExports.jsx(r.Typography,{variant:"caption",color:"error",sx:{mt:1},children:L})]})]});if(X){const e=B;return t.jsxRuntimeExports.jsx(o.Controller,{name:e.name,control:e.control,rules:e.validation,render:({field:e,fieldState:{error:t}})=>Z(e.value,(t=>U(t,e.onChange)),e.onBlur,e.ref)})}return Z(c,(e=>U(e)))}exports.Option=a,exports.Select=x,exports.default=x;
|
|
2
2
|
//# sourceMappingURL=Select.cjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/jsx-runtime.cjs"),t=require("react"),r=require("@mui/material"),i=require("./GalleryThumbnails.cjs"),s=require("./GalleryMain.cjs"),n=require("./GalleryLightbox.cjs");const a=({items:a,maxWidth:o="600px"})=>{const u=r.useMediaQuery("(max-width:700px)"),[l,x]=t.useState(0),[m,c]=t.useState(!1),[d,h]=t.useState(1),[p,j]=t.useState(0),y=t.useRef(null),[b,v]=t.useState(0),w=u?3:5,f=()=>{x((e=>0===e?a.length-1:e-1))},g=()=>{x((e=>e===a.length-1?0:e+1))};return t.useEffect((()=>{if(!m)return;const e=e=>{switch(e.key){case"ArrowLeft":f();break;case"ArrowRight":g();break;case"Escape":c(!1)}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[m,a.length]),t.useEffect((()=>{var e;m&&"video"===(null===(e=a[l])||void 0===e?void 0:e.type)&&y.current&&(y.current.currentTime=0,y.current.play()),h(1),j(0)}),[m,l,a]),e.jsxRuntimeExports.jsxs(r.Stack,{direction:u?"column":"row",gap:3,sx:{maxWidth:o,mx:"auto",minHeight:300},children:[e.jsxRuntimeExports.jsx(i.GalleryThumbnails,{items:a,selectedIdx:l,onSelect:x,thumbStartIdx:b,THUMB_VISIBLE_COUNT:w,handleThumbUp:()=>{v((e=>Math.max(0,e-1)))},handleThumbDown:()=>{v((e=>Math.min(a.length-w,e+1)))},isMobile:u}),e.jsxRuntimeExports.jsx(s.GalleryMain,{item:a[l],onOpenLightbox:()=>c(!0),isMobile:u}),e.jsxRuntimeExports.jsx(n.GalleryLightbox,{open:m,onClose:()=>c(!1),item:a[l],handlePrev:f,handleNext:g,zoom:d,setZoom:h,rotation:p,setRotation:j,videoRef:y})]})};exports.Gallery=a,exports.default=a;
|
|
2
|
+
//# sourceMappingURL=Gallery.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Gallery.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var t=require("../../_virtual/jsx-runtime.cjs"),e=require("@mui/material"),s=require("../../node_modules/@mui/icons-material/esm/ArrowBackIosNew.cjs"),i=require("../../node_modules/@mui/icons-material/esm/ArrowForwardIos.cjs"),o=require("../../node_modules/@mui/icons-material/esm/ZoomIn.cjs"),n=require("../../node_modules/@mui/icons-material/esm/ZoomOut.cjs"),r=require("../../node_modules/@mui/icons-material/esm/RotateLeft.cjs"),x=require("../../node_modules/@mui/icons-material/esm/RotateRight.cjs"),a=require("../../node_modules/@mui/icons-material/esm/RestartAlt.cjs"),u=require("../../node_modules/@mui/icons-material/esm/Close.cjs"),l=require("../Button/Button.cjs");exports.GalleryLightbox=({open:m,onClose:c,item:j,handlePrev:d,handleNext:p,zoom:h,setZoom:R,rotation:E,setRotation:g,videoRef:C})=>t.jsxRuntimeExports.jsxs(e.Dialog,{open:m,onClose:c,fullWidth:!0,maxWidth:"lg",children:[t.jsxRuntimeExports.jsxs(e.DialogContent,{sx:{minHeight:431,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:2},children:[t.jsxRuntimeExports.jsxs(e.Stack,{direction:"row",justifyContent:"space-between",alignItems:"center",width:"100%",children:[t.jsxRuntimeExports.jsx(e.IconButton,{onClick:d,children:t.jsxRuntimeExports.jsx(s,{})}),t.jsxRuntimeExports.jsx(e.Typography,{variant:"subtitle1",fontWeight:600,sx:{flex:1,textAlign:"center"},children:j.title}),t.jsxRuntimeExports.jsx(e.IconButton,{onClick:p,children:t.jsxRuntimeExports.jsx(i,{})})]}),"video"===j.type?t.jsxRuntimeExports.jsx(e.Box,{component:"video",ref:C,src:j.url,controls:!0,autoPlay:!0,sx:{width:"100%",maxWidth:"900px",maxHeight:"70vh",objectFit:"contain",bgcolor:"#000",borderRadius:1}},j.url):t.jsxRuntimeExports.jsx(e.Box,{component:"img",src:j.url,alt:j.title,sx:{transform:`scale(${h}) rotate(${E}deg)`,transition:"transform 0.2s ease",width:"100%",maxWidth:"900px",maxHeight:"70vh",objectFit:"contain",borderRadius:1}})]}),t.jsxRuntimeExports.jsxs(e.DialogActions,{sx:{display:"flex",justifyContent:"space-between",flexWrap:"wrap",gap:1},children:[t.jsxRuntimeExports.jsxs(e.Stack,{direction:"row",spacing:1,children:[t.jsxRuntimeExports.jsx(l.Button,{variant:"outlined",startIcon:t.jsxRuntimeExports.jsx(o,{}),onClick:()=>R((t=>t+.25)),children:"Zoom +"}),t.jsxRuntimeExports.jsx(l.Button,{variant:"outlined",startIcon:t.jsxRuntimeExports.jsx(n,{}),onClick:()=>R((t=>Math.max(.25,t-.25))),children:"Zoom −"})]}),t.jsxRuntimeExports.jsxs(e.Stack,{direction:"row",spacing:1,children:[t.jsxRuntimeExports.jsx(l.Button,{variant:"outlined",onClick:()=>g((t=>t-90)),children:t.jsxRuntimeExports.jsx(r,{})}),t.jsxRuntimeExports.jsx(l.Button,{variant:"outlined",onClick:()=>g((t=>t+90)),children:t.jsxRuntimeExports.jsx(x,{})})]}),t.jsxRuntimeExports.jsx(l.Button,{variant:"outlined",startIcon:t.jsxRuntimeExports.jsx(a,{}),onClick:()=>{R(1),g(0)},children:"Reset"}),t.jsxRuntimeExports.jsx(l.Button,{variant:"contained",startIcon:t.jsxRuntimeExports.jsx(u,{}),onClick:c,children:"Cerrar"})]})]});
|
|
2
|
+
//# sourceMappingURL=GalleryLightbox.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GalleryLightbox.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var e=require("../../_virtual/jsx-runtime.cjs"),t=require("@mui/material"),o=require("../../node_modules/@mui/icons-material/esm/Fullscreen.cjs");exports.GalleryMain=({item:i,onOpenLightbox:s,isMobile:r})=>e.jsxRuntimeExports.jsxs(t.Box,{sx:{width:r?"80%":"100%",maxHeight:431,maxWidth:r?"80%":"100%",display:"flex",justifyContent:"center",alignItems:"center",position:"relative",borderRadius:1,bgcolor:"#f8f9fa",overflow:"hidden",mx:"auto"},children:[e.jsxRuntimeExports.jsx(t.Box,{sx:{width:"100%",height:"100%",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"},onClick:s,children:"video"===i.type?e.jsxRuntimeExports.jsx(t.Box,{component:"video",controls:!0,src:i.url,sx:{width:"100%",height:"100%",objectFit:"contain",bgcolor:"#000",borderRadius:1}}):e.jsxRuntimeExports.jsx(t.Box,{component:"img",src:i.url,alt:i.title,sx:{width:"100%",height:"100%",objectFit:"contain",borderRadius:1}})}),e.jsxRuntimeExports.jsx(t.IconButton,{onClick:s,sx:{position:"absolute",top:16,right:16,bgcolor:"#1976d2","&:hover":{bgcolor:"#1565c0"},boxShadow:2},children:e.jsxRuntimeExports.jsx(o,{sx:{color:"#fff"}})})]});
|
|
2
|
+
//# sourceMappingURL=GalleryMain.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GalleryMain.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var e=require("../../_virtual/jsx-runtime.cjs"),s=require("@mui/material"),i=require("../../node_modules/@mui/icons-material/esm/KeyboardArrowUp.cjs"),r=require("../../node_modules/@mui/icons-material/esm/KeyboardArrowDown.cjs"),o=require("../../node_modules/@mui/icons-material/esm/KeyboardArrowLeft.cjs"),t=require("../../node_modules/@mui/icons-material/esm/KeyboardArrowRight.cjs");exports.GalleryThumbnails=({items:n,selectedIdx:l,onSelect:x,thumbStartIdx:m,THUMB_VISIBLE_COUNT:d,handleThumbUp:u,handleThumbDown:a,isMobile:c})=>e.jsxRuntimeExports.jsxs(s.Box,{sx:{display:"flex",flexDirection:c?"row":"column",alignItems:"center",minWidth:70,width:70,borderRadius:1,bgcolor:"#f8f9fa",boxSizing:"border-box",py:1,mb:c?2:0,px:c?1:0},children:[e.jsxRuntimeExports.jsx(s.IconButton,{size:"small",onClick:u,disabled:0===m,sx:{mb:c?0:1,mr:c?1:0},children:c?e.jsxRuntimeExports.jsx(o,{}):e.jsxRuntimeExports.jsx(i,{})}),n.slice(m,m+d).map(((i,r)=>{const o=m+r;return e.jsxRuntimeExports.jsx(s.Box,{onClick:()=>x(o),sx:{cursor:"pointer",width:60,height:60,borderRadius:1,border:l===o?"2px solid #1976d2":"2px solid #eee",overflow:"hidden",bgcolor:"#eee",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,m:c?"0 4px":"4px 0"},children:e.jsxRuntimeExports.jsx(s.Box,{component:"img",src:i.thumbnail,alt:i.title,sx:{width:"100%",height:"100%",objectFit:"cover"}})},o)})),e.jsxRuntimeExports.jsx(s.IconButton,{size:"small",onClick:a,disabled:m+d>=n.length,sx:{mt:c?0:1,ml:c?1:0},children:c?e.jsxRuntimeExports.jsx(t,{}):e.jsxRuntimeExports.jsx(r,{})})]});
|
|
2
|
+
//# sourceMappingURL=GalleryThumbnails.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GalleryThumbnails.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gallery.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var e=require("../../../../_virtual/jsx-runtime.cjs"),r=require("../../material/esm/utils/createSvgIcon.cjs")(e.jsxRuntimeExports.jsx("path",{d:"M17.77 3.77 16 2 6 12l10 10 1.77-1.77L9.54 12z"}),"ArrowBackIosNew");module.exports=r;
|
|
2
|
+
//# sourceMappingURL=ArrowBackIosNew.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrowBackIosNew.cjs","sources":["../../../../../../node_modules/@mui/icons-material/esm/ArrowBackIosNew.js"],"sourcesContent":["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M17.77 3.77 16 2 6 12l10 10 1.77-1.77L9.54 12z\"\n}), 'ArrowBackIosNew');"],"names":["ArrowBackIosNewIcon","createSvgIcon","_jsx","jsxRuntimeExports","jsx","d"],"mappings":"mEAIAA,uDAAeC,CAA2BC,EAAIC,kBAAAC,IAAC,OAAQ,CACrDC,EAAG,mDACD","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var r=require("../../../../_virtual/jsx-runtime.cjs"),e=require("../../material/esm/utils/createSvgIcon.cjs")(r.jsxRuntimeExports.jsx("path",{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"}),"ArrowForwardIos");module.exports=e;
|
|
2
|
+
//# sourceMappingURL=ArrowForwardIos.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrowForwardIos.cjs","sources":["../../../../../../node_modules/@mui/icons-material/esm/ArrowForwardIos.js"],"sourcesContent":["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z\"\n}), 'ArrowForwardIos');"],"names":["ArrowForwardIosIcon","createSvgIcon","_jsx","jsxRuntimeExports","jsx","d"],"mappings":"mEAIAA,uDAAeC,CAA2BC,EAAIC,kBAAAC,IAAC,OAAQ,CACrDC,EAAG,mDACD","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var e=require("../../../../_virtual/jsx-runtime.cjs"),r=require("../../material/esm/utils/createSvgIcon.cjs")(e.jsxRuntimeExports.jsx("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"}),"Fullscreen");module.exports=r;
|
|
2
|
+
//# sourceMappingURL=Fullscreen.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Fullscreen.cjs","sources":["../../../../../../node_modules/@mui/icons-material/esm/Fullscreen.js"],"sourcesContent":["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z\"\n}), 'Fullscreen');"],"names":["FullscreenIcon","createSvgIcon","_jsx","jsxRuntimeExports","jsx","d"],"mappings":"mEAIAA,uDAAeC,CAA2BC,EAAIC,kBAAAC,IAAC,OAAQ,CACrDC,EAAG,yEACD","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var r=require("../../../../_virtual/jsx-runtime.cjs"),e=require("../../material/esm/utils/createSvgIcon.cjs")(r.jsxRuntimeExports.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");module.exports=e;
|
|
2
|
+
//# sourceMappingURL=KeyboardArrowDown.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KeyboardArrowDown.cjs","sources":["../../../../../../node_modules/@mui/icons-material/esm/KeyboardArrowDown.js"],"sourcesContent":["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z\"\n}), 'KeyboardArrowDown');"],"names":["KeyboardArrowDownIcon","createSvgIcon","_jsx","jsxRuntimeExports","jsx","d"],"mappings":"mEAIAA,uDAAeC,CAA2BC,EAAIC,kBAAAC,IAAC,OAAQ,CACrDC,EAAG,kDACD","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var r=require("../../../../_virtual/jsx-runtime.cjs"),e=require("../../material/esm/utils/createSvgIcon.cjs")(r.jsxRuntimeExports.jsx("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");module.exports=e;
|
|
2
|
+
//# sourceMappingURL=KeyboardArrowUp.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KeyboardArrowUp.cjs","sources":["../../../../../../node_modules/@mui/icons-material/esm/KeyboardArrowUp.js"],"sourcesContent":["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z\"\n}), 'KeyboardArrowUp');"],"names":["KeyboardArrowUpIcon","createSvgIcon","_jsx","jsxRuntimeExports","jsx","d"],"mappings":"mEAIAA,uDAAeC,CAA2BC,EAAIC,kBAAAC,IAAC,OAAQ,CACrDC,EAAG,mDACD","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var e=require("../../../../_virtual/jsx-runtime.cjs"),t=require("../../material/esm/utils/createSvgIcon.cjs")(e.jsxRuntimeExports.jsx("path",{d:"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8m-6 8c0-1.65.67-3.15 1.76-4.24L6.34 7.34C4.9 8.79 4 10.79 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91"}),"RestartAlt");module.exports=t;
|
|
2
|
+
//# sourceMappingURL=RestartAlt.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RestartAlt.cjs","sources":["../../../../../../node_modules/@mui/icons-material/esm/RestartAlt.js"],"sourcesContent":["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8m-6 8c0-1.65.67-3.15 1.76-4.24L6.34 7.34C4.9 8.79 4 10.79 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91\"\n}), 'RestartAlt');"],"names":["RestartAltIcon","createSvgIcon","_jsx","jsxRuntimeExports","jsx","d"],"mappings":"mEAIAA,uDAAeC,CAA2BC,EAAIC,kBAAAC,IAAC,OAAQ,CACrDC,EAAG,kOACD","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var e=require("../../../../_virtual/jsx-runtime.cjs"),t=require("../../material/esm/utils/createSvgIcon.cjs")(e.jsxRuntimeExports.jsx("path",{d:"M7.11 8.53 5.7 7.11C4.8 8.27 4.24 9.61 4.07 11h2.02c.14-.87.49-1.72 1.02-2.47M6.09 13H4.07c.17 1.39.72 2.73 1.62 3.89l1.41-1.42c-.52-.75-.87-1.59-1.01-2.47m1.01 5.32c1.16.9 2.51 1.44 3.9 1.61V17.9c-.87-.15-1.71-.49-2.46-1.03zM13 4.07V1L8.45 5.55 13 10V6.09c2.84.48 5 2.94 5 5.91s-2.16 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93s-3.05-7.44-7-7.93"}),"RotateLeft");module.exports=t;
|
|
2
|
+
//# sourceMappingURL=RotateLeft.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RotateLeft.cjs","sources":["../../../../../../node_modules/@mui/icons-material/esm/RotateLeft.js"],"sourcesContent":["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M7.11 8.53 5.7 7.11C4.8 8.27 4.24 9.61 4.07 11h2.02c.14-.87.49-1.72 1.02-2.47M6.09 13H4.07c.17 1.39.72 2.73 1.62 3.89l1.41-1.42c-.52-.75-.87-1.59-1.01-2.47m1.01 5.32c1.16.9 2.51 1.44 3.9 1.61V17.9c-.87-.15-1.71-.49-2.46-1.03zM13 4.07V1L8.45 5.55 13 10V6.09c2.84.48 5 2.94 5 5.91s-2.16 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93s-3.05-7.44-7-7.93\"\n}), 'RotateLeft');"],"names":["RotateLeftIcon","createSvgIcon","_jsx","jsxRuntimeExports","jsx","d"],"mappings":"mEAIAA,uDAAeC,CAA2BC,EAAIC,kBAAAC,IAAC,OAAQ,CACrDC,EAAG,2VACD","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var e=require("../../../../_virtual/jsx-runtime.cjs"),t=require("../../material/esm/utils/createSvgIcon.cjs")(e.jsxRuntimeExports.jsx("path",{d:"M15.55 5.55 11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10zM19.93 11c-.17-1.39-.72-2.73-1.62-3.89l-1.42 1.42c.54.75.88 1.6 1.02 2.47zM13 17.9v2.02c1.39-.17 2.74-.71 3.9-1.61l-1.44-1.44c-.75.54-1.59.89-2.46 1.03m3.89-2.42 1.42 1.41c.9-1.16 1.45-2.5 1.62-3.89h-2.02c-.14.87-.48 1.72-1.02 2.48"}),"RotateRight");module.exports=t;
|
|
2
|
+
//# sourceMappingURL=RotateRight.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RotateRight.cjs","sources":["../../../../../../node_modules/@mui/icons-material/esm/RotateRight.js"],"sourcesContent":["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M15.55 5.55 11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10zM19.93 11c-.17-1.39-.72-2.73-1.62-3.89l-1.42 1.42c.54.75.88 1.6 1.02 2.47zM13 17.9v2.02c1.39-.17 2.74-.71 3.9-1.61l-1.44-1.44c-.75.54-1.59.89-2.46 1.03m3.89-2.42 1.42 1.41c.9-1.16 1.45-2.5 1.62-3.89h-2.02c-.14.87-.48 1.72-1.02 2.48\"\n}), 'RotateRight');"],"names":["RotateRightIcon","createSvgIcon","_jsx","jsxRuntimeExports","jsx","d"],"mappings":"mEAIAA,uDAAeC,CAA2BC,EAAIC,kBAAAC,IAAC,OAAQ,CACrDC,EAAG,2VACD","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var e=require("../../../../_virtual/jsx-runtime.cjs"),s=require("../../material/esm/utils/createSvgIcon.cjs")([e.jsxRuntimeExports.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"},"0"),e.jsxRuntimeExports.jsx("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2z"},"1")],"ZoomIn");module.exports=s;
|
|
2
|
+
//# sourceMappingURL=ZoomIn.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ZoomIn.cjs","sources":["../../../../../../node_modules/@mui/icons-material/esm/ZoomIn.js"],"sourcesContent":["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon([/*#__PURE__*/_jsx(\"path\", {\n d: \"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14\"\n}, \"0\"), /*#__PURE__*/_jsx(\"path\", {\n d: \"M12 10h-2v2H9v-2H7V9h2V7h1v2h2z\"\n}, \"1\")], 'ZoomIn');"],"names":["ZoomInIcon","createSvgIcon","_jsx","jsxRuntimeExports","jsx","d"],"mappings":"mEAIAA,uDAAeC,CAAc,CAAcC,EAAIC,kBAAAC,IAAC,OAAQ,CACtDC,EAAG,qOACF,KAAmBH,EAAIC,kBAAAC,IAAC,OAAQ,CACjCC,EAAG,mCACF,MAAO","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var e=require("../../../../_virtual/jsx-runtime.cjs"),r=require("../../material/esm/utils/createSvgIcon.cjs")(e.jsxRuntimeExports.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14M7 9h5v1H7z"}),"ZoomOut");module.exports=r;
|
|
2
|
+
//# sourceMappingURL=ZoomOut.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ZoomOut.cjs","sources":["../../../../../../node_modules/@mui/icons-material/esm/ZoomOut.js"],"sourcesContent":["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14M7 9h5v1H7z\"\n}), 'ZoomOut');"],"names":["ZoomOutIcon","createSvgIcon","_jsx","jsxRuntimeExports","jsx","d"],"mappings":"mEAIAA,uDAAeC,CAA2BC,EAAIC,kBAAAC,IAAC,OAAQ,CACrDC,EAAG,iPACD","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../esm/components/gallery';
|
|
@@ -20,13 +20,13 @@ interface RHFInputProps extends BaseInputProps {
|
|
|
20
20
|
value?: string | number;
|
|
21
21
|
onChange?: (value: string | number) => void;
|
|
22
22
|
}
|
|
23
|
-
interface
|
|
24
|
-
name?:
|
|
23
|
+
interface StandardInputPropsWithOptionalName extends BaseInputProps {
|
|
24
|
+
name?: string;
|
|
25
25
|
control?: never;
|
|
26
26
|
validation?: never;
|
|
27
27
|
value: string | number;
|
|
28
28
|
onChange: (value: string | number) => void;
|
|
29
29
|
}
|
|
30
|
-
export type InputProps = RHFInputProps |
|
|
31
|
-
export declare const Input: React.ForwardRefExoticComponent<(Omit<RHFInputProps, "ref"> | Omit<
|
|
30
|
+
export type InputProps = RHFInputProps | StandardInputPropsWithOptionalName;
|
|
31
|
+
export declare const Input: React.ForwardRefExoticComponent<(Omit<RHFInputProps, "ref"> | Omit<StandardInputPropsWithOptionalName, "ref">) & React.RefAttributes<HTMLInputElement>>;
|
|
32
32
|
export default Input;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as e}from"../../_virtual/_tslib.js";import{j as t}from"../../_virtual/jsx-runtime.js";import{forwardRef as n}from"react";import{TextField as r}from"@mui/material";import{Controller as o}from"../../node_modules/react-hook-form/dist/index.esm.js";import i from"../../node_modules/@mui/system/esm/styled/styled.js";const a=i(r)((({theme:e})=>({"& .MuiInputBase-root":{maxHeight:"34px",padding:"8px 10px",borderRadius:"10px",display:"flex",alignItems:"center",fontSize:"14px"},"& .MuiInputBase-input":{padding:"0 !important",height:"18px",display:"flex",alignItems:"center",marginTop:"-4px"},"& .MuiInputLabel-root":{top:"50%",transform:"translate(14px, -50%)","&.MuiInputLabel-shrink":{transform:"translate(1px, -200%) scale(0.75)",fontSize:"16px !important","> legend":{display:"none"}}},"& .MuiInputBase-root > fieldset > legend":{display:"none"},"& .MuiOutlinedInput-notchedOutline":{border:"0.7px solid",borderColor:"#e0e0e0"}}))),l=n(((n,r)=>{var{type:i="text",variant:l="outlined",min:s,max:p,inputProps:u,slotProps:m,value:d,onChange:x}=n,c=e(n,["type","variant","min","max","inputProps","slotProps","value","onChange"]);const f="
|
|
1
|
+
import{__rest as e}from"../../_virtual/_tslib.js";import{j as t}from"../../_virtual/jsx-runtime.js";import{forwardRef as n}from"react";import{TextField as r}from"@mui/material";import{Controller as o}from"../../node_modules/react-hook-form/dist/index.esm.js";import i from"../../node_modules/@mui/system/esm/styled/styled.js";const a=i(r)((({theme:e})=>({"& .MuiInputBase-root":{maxHeight:"34px",padding:"8px 10px",borderRadius:"10px",display:"flex",alignItems:"center",fontSize:"14px"},"& .MuiInputBase-input":{padding:"0 !important",height:"18px",display:"flex",alignItems:"center",marginTop:"-4px"},"& .MuiInputLabel-root":{top:"50%",transform:"translate(14px, -50%)","&.MuiInputLabel-shrink":{transform:"translate(1px, -200%) scale(0.75)",fontSize:"16px !important","> legend":{display:"none"}}},"& .MuiInputLabel-root.Mui-error":{top:"25%"},"& .MuiInputBase-root > fieldset > legend":{display:"none"},"& .MuiOutlinedInput-notchedOutline":{border:"0.7px solid",borderColor:"#e0e0e0"}}))),l=n(((n,r)=>{var{type:i="text",variant:l="outlined",min:s,max:p,inputProps:u,slotProps:m,value:d,onChange:x}=n,c=e(n,["type","variant","min","max","inputProps","slotProps","value","onChange"]);const f="control"in c&&void 0!==c.control,g=Object.assign({},u);"number"===i&&(g.min=void 0!==s?s:Number.NEGATIVE_INFINITY,void 0!==p&&(g.max=p));const v=Object.assign(Object.assign({},m),{htmlInput:Object.assign(Object.assign({},null==m?void 0:m.htmlInput),g)}),h=(e,t)=>{const n=e.target.value;let r;"number"===i?(r=""===n||"-"===n?n:parseFloat(n),isNaN(r)&&""!==n&&"-"!==n&&(r=n)):r=n,f?null==t||t(r):null==x||x(r)};if(f){const e=c;return t.jsx(o,{name:e.name,control:e.control,rules:e.validation,render:({field:e,fieldState:{error:n}})=>{var r;return t.jsx(a,Object.assign({fullWidth:!0,value:null!==(r=e.value)&&void 0!==r?r:"",onChange:t=>h(t,e.onChange),onBlur:e.onBlur,type:i,variant:l,slotProps:v,inputRef:e.ref,error:!!n,helperText:null==n?void 0:n.message},c))}})}{const e=c;return t.jsx(a,Object.assign({fullWidth:!0,name:e.name,value:null!=d?d:"",onChange:e=>h(e),type:i,variant:l,slotProps:v,inputRef:r,error:e.error,helperText:e.helperText},c))}}));export{l as Input,l as default};
|
|
2
2
|
//# sourceMappingURL=Input.js.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { ReactElement } from 'react';
|
|
2
|
+
import { Control, RegisterOptions } from 'react-hook-form';
|
|
2
3
|
export interface SelectOption {
|
|
3
4
|
value: string | number;
|
|
4
5
|
label: string;
|
|
@@ -9,12 +10,10 @@ export interface SelectOption {
|
|
|
9
10
|
}
|
|
10
11
|
type RenderOptionItem = (item: SelectOption) => React.ReactNode;
|
|
11
12
|
type RenderChipLabel = (item: SelectOption) => React.ReactNode;
|
|
12
|
-
|
|
13
|
+
interface BaseSelectProps<TValue extends SelectOption['value'] = SelectOption['value']> {
|
|
13
14
|
label?: string;
|
|
14
15
|
options?: SelectOption[];
|
|
15
|
-
value?: TValue | TValue[];
|
|
16
16
|
defaultValue?: TValue | TValue[];
|
|
17
|
-
onChange: (val: TValue | TValue[]) => void;
|
|
18
17
|
size?: 'small' | 'medium';
|
|
19
18
|
multiple?: boolean;
|
|
20
19
|
filterable?: boolean;
|
|
@@ -32,7 +31,24 @@ export interface SelectProps<TValue extends SelectOption['value'] = SelectOption
|
|
|
32
31
|
noOptionsMessage?: React.ReactNode;
|
|
33
32
|
debounceTimeout?: number;
|
|
34
33
|
disabled?: boolean;
|
|
34
|
+
error?: boolean;
|
|
35
|
+
helperText?: string;
|
|
36
|
+
}
|
|
37
|
+
interface RHFSelectProps<TValue extends SelectOption['value'] = SelectOption['value']> extends BaseSelectProps<TValue> {
|
|
38
|
+
name: string;
|
|
39
|
+
control: Control<any>;
|
|
40
|
+
validation?: RegisterOptions;
|
|
41
|
+
value?: TValue | TValue[];
|
|
42
|
+
onChange?: (val: TValue | TValue[]) => void;
|
|
43
|
+
}
|
|
44
|
+
interface StandardSelectProps<TValue extends SelectOption['value'] = SelectOption['value']> extends BaseSelectProps<TValue> {
|
|
45
|
+
name?: string;
|
|
46
|
+
control?: never;
|
|
47
|
+
validation?: never;
|
|
48
|
+
value: TValue | TValue[];
|
|
49
|
+
onChange: (val: TValue | TValue[]) => void;
|
|
35
50
|
}
|
|
51
|
+
export type SelectProps<TValue extends SelectOption['value'] = SelectOption['value']> = RHFSelectProps<TValue> | StandardSelectProps<TValue>;
|
|
36
52
|
export interface OptionProps {
|
|
37
53
|
children: RenderOptionItem;
|
|
38
54
|
}
|
|
@@ -40,5 +56,5 @@ export declare function Option(_props: OptionProps): null;
|
|
|
40
56
|
export declare namespace Option {
|
|
41
57
|
var displayName: string;
|
|
42
58
|
}
|
|
43
|
-
export declare function Select<TValue extends SelectOption['value'] = SelectOption['value']>(
|
|
59
|
+
export declare function Select<TValue extends SelectOption['value'] = SelectOption['value']>(props: SelectProps<TValue>): import("react/jsx-runtime").JSX.Element;
|
|
44
60
|
export default Select;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{__rest as e}from"../../_virtual/_tslib.js";import{j as t}from"../../_virtual/jsx-runtime.js";import n,{useMemo as i,isValidElement as l,useState as r,useRef as a,useEffect as o}from"react";import{Select as s,InputLabel as d,OutlinedInput as u,ListSubheader as p,TextField as c,MenuItem as m,Box as h,CircularProgress as x,Typography as g,ListItemIcon as f,FormControl as b,Chip as j,Avatar as v}from"@mui/material";import y from"../../node_modules/@mui/icons-material/esm/Clear.js";import C from"../../node_modules/@mui/icons-material/esm/Check.js";import{Controller as M}from"../../node_modules/react-hook-form/dist/index.esm.js";import I from"../../node_modules/@mui/system/esm/styled/styled.js";function O(e){return null}O.displayName="Option";const _=I(s)((({theme:e})=>({"& .MuiInputBase-root":{maxHeight:"4px",padding:"8px 10px",borderRadius:"10px",display:"flex",alignItems:"center",fontSize:"14px"},"& .MuiSelect-select":{padding:"0 !important",height:"28px !important",display:"flex",alignItems:"center",marginLeft:"8px"},"& .MuiOutlinedInput-notchedOutline":{marginBottom:"-4px !important",borderRadius:"10px"},"& .MuiSelect-icon":{top:"50%",transform:"translateY(-50%)"},"& .MuiOutlinedInput-notchedOutline > legend":{display:"none"}}))),k=I(d)((({theme:e})=>({"&.MuiInputLabel-root":{top:"50%",transform:"translate(14px, -50%)"},"&.MuiInputLabel-shrink":{transform:"translate(1px, -200%) scale(0.75)",fontSize:"16px","> legend":{display:"none"}},"&.MuiInputLabel-animated":{"&.MuiInputLabel-shrink":{display:"block"}}}))),S=I(u)((({theme:e})=>({"& .MuiInputBase-root":{maxHeight:"34px",padding:"8px 10px",borderRadius:"10px",display:"flex",alignItems:"center",fontSize:"14px"," & > .MuiAvatar-img":{width:"14px",height:"14px"}},"& .MuiInputBase-input":{padding:"0 !important",height:"18px",display:"flex",alignItems:"center"},"& .MuiOutlinedInput-notchedOutline":{border:"0.7px solid",borderColor:"#e0e0e0"}})));function T(s){const{label:d,options:u=[],value:I,onChange:O,defaultValue:T,size:w="medium",multiple:z=!1,filterable:L=!1,placeholder:B,children:W,maxHeight:P=300,maxWidth:V,maxChipsToShow:H=3,renderChipLabel:R,chipVariant:A="outlined",loadOptions:E,loadingMessage:N="Cargando opciones...",noOptionsMessage:D="No hay opciones",debounceTimeout:F=300,disabled:K=!1,error:Y=!1,helperText:$}=s,q=e(s,["label","options","value","onChange","defaultValue","size","multiple","filterable","placeholder","children","maxHeight","maxWidth","maxChipsToShow","renderChipLabel","chipVariant","loadOptions","loadingMessage","noOptionsMessage","debounceTimeout","disabled","error","helperText"]),G="control"in q&&void 0!==q.control,J=i((()=>{var e;if(1===n.Children.count(W)){const t=n.Children.only(W);if(l(t)&&"Option"===(null===(e=t.type)||void 0===e?void 0:e.displayName))return t.props.children}return null}),[W]),[Q,U]=r(""),[X,Z]=r([]),[ee,te]=r(!1),ne=a(null),ie=a(null),le="function"==typeof E,re=le?X:u;o((()=>{le&&(ne.current&&clearTimeout(ne.current),Q?(te(!0),ne.current=window.setTimeout((()=>{E(Q).then((e=>{Z(e)})).finally((()=>{te(!1),ie.current&&ie.current.focus()}))}),F)):(Z([]),te(!1),ie.current&&ie.current.focus()))}),[Q,le,E,F]);const ae=i((()=>le?re:L&&Q?re.filter((e=>e.label.toLowerCase().includes(Q.toLowerCase()))):re),[Q,L,re,le]),oe=i((()=>{const e={};return ae.forEach((t=>{const n=t.group||"__default";e[n]||(e[n]=[]),e[n].push(t)})),e}),[ae]),se=e=>{var n;if(!e||Array.isArray(e)&&0===e.length)return t.jsx(g,{sx:{color:"text.disabled"},children:B||""});if(!z){const t=re.find((t=>t.value===e));return R&&t?R(t):null!==(n=null==t?void 0:t.label)&&void 0!==n?n:String(e)}const i=e,l=i.slice(0,H),r=i.length-H;return t.jsxs(h,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:[l.map((e=>{const n=re.find((t=>t.value===e));if(!n)return null;return t.jsx(j,{variant:A,color:"primary",label:R?R(n):n.label,avatar:n.img?t.jsx(v,{sx:{"& > .MuiAvatar-root, .MuiChip-avatar":{backgroundColor:"red"}},src:n.img}):void 0,onDelete:()=>(e=>{const t=I.filter((t=>t!==e));null==O||O(t)})(e),deleteIcon:t.jsx(y,{sx:{fontSize:"12px !important"}}),sx:{height:"27px",marginTop:"1px"}},e)})),r>0&&t.jsx(j,{sx:{height:"27px",marginTop:"0px"},label:`+${r} más`,variant:A})]})},de=i((()=>{const e=[];return(L||le)&&e.push(t.jsx(p,{sx:{px:2,pt:1,pb:1,backgroundColor:"background.paper",zIndex:1,position:"sticky",top:0},children:t.jsx(c,{inputRef:ie,placeholder:"Buscar...",variant:"standard",size:"small",fullWidth:!0,value:Q,onChange:e=>U(e.target.value),inputProps:{autoFocus:!0},onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation()})},"search-header")),ee?e.push(t.jsx(m,{disabled:!0,children:t.jsxs(h,{sx:{display:"flex",alignItems:"center",gap:1},children:[t.jsx(x,{size:20}),t.jsx(g,{children:N})]})},"loading-message")):0===Object.keys(oe).length||1===Object.keys(oe).length&&oe.__default&&0===oe.__default.length?e.push(t.jsx(m,{disabled:!0,children:t.jsx(g,{children:D})},"no-options-message")):Object.entries(oe).forEach((([n,i])=>{"__default"!==n&&e.push(t.jsx(p,{disableSticky:!0,children:n},n)),i.forEach((n=>{const i=z?null==I?void 0:I.includes(n.value):I===n.value;e.push(t.jsxs(m,{value:n.value,disabled:n.disabled,selected:i,children:[t.jsx(f,{sx:{minWidth:32},children:i&&t.jsx(C,{sx:{color:"green"}})}),J?J(n):n.label]},n.value))}))})),e}),[oe,J,L,le,Q,ee,N,D,z,I]),ue=d&&!B,pe=(e,t)=>{const n=e.target.value;G?null==t||t(n):null==O||O(n)},ce="control"in q&&void 0!==q.control,me=(e,n,i,l)=>t.jsxs(b,{fullWidth:!0,size:w,error:Y,disabled:K,children:[ue&&t.jsx(k,{children:d}),t.jsxs(h,{sx:{width:"100%",display:"grid",marginBottom:"10px",marginTop:"10px"},children:[t.jsx(_,Object.assign({label:d,value:null!=e?e:z?[]:"",defaultValue:T,multiple:z,onChange:n,onBlur:i,renderValue:se,displayEmpty:!0,input:t.jsx(S,{label:d}),disabled:K,MenuProps:{PaperProps:{style:{maxHeight:P,maxWidth:V}}},inputRef:l},q,{children:de})),$&&t.jsx(g,{variant:"caption",color:"error",sx:{mt:1},children:$})]})]});if(ce){const e=q;return t.jsx(M,{name:e.name,control:e.control,rules:e.validation,render:({field:e,fieldState:{error:t}})=>me(e.value,(t=>pe(t,e.onChange)),e.onBlur,e.ref)})}return me(I,(e=>pe(e)))}export{O as Option,T as Select,T as default};
|
|
2
2
|
//# sourceMappingURL=Select.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface Props {
|
|
3
|
+
items: Array<{
|
|
4
|
+
url: string;
|
|
5
|
+
type: "image" | "video" | string;
|
|
6
|
+
title: string;
|
|
7
|
+
thumbnail: string;
|
|
8
|
+
}>;
|
|
9
|
+
maxWidth?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const Gallery: React.FC<Props>;
|
|
12
|
+
export default Gallery;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DefaultGalleryDefinition: string;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{j as e}from"../../_virtual/jsx-runtime.js";import{useState as t,useRef as r,useEffect as o}from"react";import{useMediaQuery as i,Stack as n}from"@mui/material";import{GalleryThumbnails as a}from"./GalleryThumbnails.js";import{GalleryMain as m}from"./GalleryMain.js";import{GalleryLightbox as s}from"./GalleryLightbox.js";const l=({items:l,maxWidth:d="600px"})=>{const h=i("(max-width:700px)"),[u,x]=t(0),[c,p]=t(!1),[w,b]=t(1),[f,j]=t(0),v=r(null),[g,y]=t(0),L=h?3:5,M=()=>{x((e=>0===e?l.length-1:e-1))},T=()=>{x((e=>e===l.length-1?0:e+1))};return o((()=>{if(!c)return;const e=e=>{switch(e.key){case"ArrowLeft":M();break;case"ArrowRight":T();break;case"Escape":p(!1)}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[c,l.length]),o((()=>{var e;c&&"video"===(null===(e=l[u])||void 0===e?void 0:e.type)&&v.current&&(v.current.currentTime=0,v.current.play()),b(1),j(0)}),[c,u,l]),e.jsxs(n,{direction:h?"column":"row",gap:3,sx:{maxWidth:d,mx:"auto",minHeight:300},children:[e.jsx(a,{items:l,selectedIdx:u,onSelect:x,thumbStartIdx:g,THUMB_VISIBLE_COUNT:L,handleThumbUp:()=>{y((e=>Math.max(0,e-1)))},handleThumbDown:()=>{y((e=>Math.min(l.length-L,e+1)))},isMobile:h}),e.jsx(m,{item:l[u],onOpenLightbox:()=>p(!0),isMobile:h}),e.jsx(s,{open:c,onClose:()=>p(!1),item:l[u],handlePrev:M,handleNext:T,zoom:w,setZoom:b,rotation:f,setRotation:j,videoRef:v})]})};export{l as Gallery,l as default};
|
|
2
|
+
//# sourceMappingURL=Gallery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Gallery.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface Props {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
item: {
|
|
6
|
+
url: string;
|
|
7
|
+
type: "image" | "video" | string;
|
|
8
|
+
title: string;
|
|
9
|
+
thumbnail: string;
|
|
10
|
+
};
|
|
11
|
+
handlePrev: () => void;
|
|
12
|
+
handleNext: () => void;
|
|
13
|
+
zoom: number;
|
|
14
|
+
setZoom: React.Dispatch<React.SetStateAction<number>>;
|
|
15
|
+
rotation: number;
|
|
16
|
+
setRotation: React.Dispatch<React.SetStateAction<number>>;
|
|
17
|
+
videoRef?: React.RefObject<HTMLVideoElement | null>;
|
|
18
|
+
}
|
|
19
|
+
export declare const GalleryLightbox: ({ open, onClose, item, handlePrev, handleNext, zoom, setZoom, rotation, setRotation, videoRef, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{j as o}from"../../_virtual/jsx-runtime.js";import{Dialog as e,DialogContent as t,Stack as i,IconButton as s,Typography as n,Box as r,DialogActions as a}from"@mui/material";import m from"../../node_modules/@mui/icons-material/esm/ArrowBackIosNew.js";import l from"../../node_modules/@mui/icons-material/esm/ArrowForwardIos.js";import c from"../../node_modules/@mui/icons-material/esm/ZoomIn.js";import d from"../../node_modules/@mui/icons-material/esm/ZoomOut.js";import x from"../../node_modules/@mui/icons-material/esm/RotateLeft.js";import j from"../../node_modules/@mui/icons-material/esm/RotateRight.js";import u from"../../node_modules/@mui/icons-material/esm/RestartAlt.js";import h from"../../node_modules/@mui/icons-material/esm/Close.js";import{Button as p}from"../Button/Button.js";const f=({open:f,onClose:g,item:C,handlePrev:v,handleNext:w,zoom:k,setZoom:I,rotation:R,setRotation:_,videoRef:b})=>o.jsxs(e,{open:f,onClose:g,fullWidth:!0,maxWidth:"lg",children:[o.jsxs(t,{sx:{minHeight:431,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:2},children:[o.jsxs(i,{direction:"row",justifyContent:"space-between",alignItems:"center",width:"100%",children:[o.jsx(s,{onClick:v,children:o.jsx(m,{})}),o.jsx(n,{variant:"subtitle1",fontWeight:600,sx:{flex:1,textAlign:"center"},children:C.title}),o.jsx(s,{onClick:w,children:o.jsx(l,{})})]}),"video"===C.type?o.jsx(r,{component:"video",ref:b,src:C.url,controls:!0,autoPlay:!0,sx:{width:"100%",maxWidth:"900px",maxHeight:"70vh",objectFit:"contain",bgcolor:"#000",borderRadius:1}},C.url):o.jsx(r,{component:"img",src:C.url,alt:C.title,sx:{transform:`scale(${k}) rotate(${R}deg)`,transition:"transform 0.2s ease",width:"100%",maxWidth:"900px",maxHeight:"70vh",objectFit:"contain",borderRadius:1}})]}),o.jsxs(a,{sx:{display:"flex",justifyContent:"space-between",flexWrap:"wrap",gap:1},children:[o.jsxs(i,{direction:"row",spacing:1,children:[o.jsx(p,{variant:"outlined",startIcon:o.jsx(c,{}),onClick:()=>I((o=>o+.25)),children:"Zoom +"}),o.jsx(p,{variant:"outlined",startIcon:o.jsx(d,{}),onClick:()=>I((o=>Math.max(.25,o-.25))),children:"Zoom −"})]}),o.jsxs(i,{direction:"row",spacing:1,children:[o.jsx(p,{variant:"outlined",onClick:()=>_((o=>o-90)),children:o.jsx(x,{})}),o.jsx(p,{variant:"outlined",onClick:()=>_((o=>o+90)),children:o.jsx(j,{})})]}),o.jsx(p,{variant:"outlined",startIcon:o.jsx(u,{}),onClick:()=>{I(1),_(0)},children:"Reset"}),o.jsx(p,{variant:"contained",startIcon:o.jsx(h,{}),onClick:g,children:"Cerrar"})]})]});export{f as GalleryLightbox};
|
|
2
|
+
//# sourceMappingURL=GalleryLightbox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GalleryLightbox.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
item: {
|
|
3
|
+
url: string;
|
|
4
|
+
type: "image" | "video" | string;
|
|
5
|
+
title: string;
|
|
6
|
+
thumbnail: string;
|
|
7
|
+
};
|
|
8
|
+
onOpenLightbox: () => void;
|
|
9
|
+
isMobile: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const GalleryMain: ({ item, onOpenLightbox, isMobile }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{j as o}from"../../_virtual/jsx-runtime.js";import{Box as i,IconButton as t}from"@mui/material";import e from"../../node_modules/@mui/icons-material/esm/Fullscreen.js";const r=({item:r,onOpenLightbox:s,isMobile:n})=>o.jsxs(i,{sx:{width:n?"80%":"100%",maxHeight:431,maxWidth:n?"80%":"100%",display:"flex",justifyContent:"center",alignItems:"center",position:"relative",borderRadius:1,bgcolor:"#f8f9fa",overflow:"hidden",mx:"auto"},children:[o.jsx(i,{sx:{width:"100%",height:"100%",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"},onClick:s,children:"video"===r.type?o.jsx(i,{component:"video",controls:!0,src:r.url,sx:{width:"100%",height:"100%",objectFit:"contain",bgcolor:"#000",borderRadius:1}}):o.jsx(i,{component:"img",src:r.url,alt:r.title,sx:{width:"100%",height:"100%",objectFit:"contain",borderRadius:1}})}),o.jsx(t,{onClick:s,sx:{position:"absolute",top:16,right:16,bgcolor:"#1976d2","&:hover":{bgcolor:"#1565c0"},boxShadow:2},children:o.jsx(e,{sx:{color:"#fff"}})})]});export{r as GalleryMain};
|
|
2
|
+
//# sourceMappingURL=GalleryMain.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GalleryMain.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
items: Array<{
|
|
3
|
+
url: string;
|
|
4
|
+
type: string;
|
|
5
|
+
title: string;
|
|
6
|
+
thumbnail: string;
|
|
7
|
+
}>;
|
|
8
|
+
selectedIdx: number;
|
|
9
|
+
onSelect: (idx: number) => void;
|
|
10
|
+
thumbStartIdx: number;
|
|
11
|
+
THUMB_VISIBLE_COUNT: number;
|
|
12
|
+
handleThumbUp: () => void;
|
|
13
|
+
handleThumbDown: () => void;
|
|
14
|
+
isMobile: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const GalleryThumbnails: ({ items, selectedIdx, onSelect, thumbStartIdx, THUMB_VISIBLE_COUNT, handleThumbUp, handleThumbDown, isMobile, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{j as e}from"../../_virtual/jsx-runtime.js";import{Box as o,IconButton as i}from"@mui/material";import r from"../../node_modules/@mui/icons-material/esm/KeyboardArrowUp.js";import s from"../../node_modules/@mui/icons-material/esm/KeyboardArrowDown.js";import m from"../../node_modules/@mui/icons-material/esm/KeyboardArrowLeft.js";import t from"../../node_modules/@mui/icons-material/esm/KeyboardArrowRight.js";const l=({items:l,selectedIdx:d,onSelect:n,thumbStartIdx:a,THUMB_VISIBLE_COUNT:x,handleThumbUp:c,handleThumbDown:b,isMobile:h})=>e.jsxs(o,{sx:{display:"flex",flexDirection:h?"row":"column",alignItems:"center",minWidth:70,width:70,borderRadius:1,bgcolor:"#f8f9fa",boxSizing:"border-box",py:1,mb:h?2:0,px:h?1:0},children:[e.jsx(i,{size:"small",onClick:c,disabled:0===a,sx:{mb:h?0:1,mr:h?1:0},children:h?e.jsx(m,{}):e.jsx(r,{})}),l.slice(a,a+x).map(((i,r)=>{const s=a+r;return e.jsx(o,{onClick:()=>n(s),sx:{cursor:"pointer",width:60,height:60,borderRadius:1,border:d===s?"2px solid #1976d2":"2px solid #eee",overflow:"hidden",bgcolor:"#eee",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,m:h?"0 4px":"4px 0"},children:e.jsx(o,{component:"img",src:i.thumbnail,alt:i.title,sx:{width:"100%",height:"100%",objectFit:"cover"}})},s)})),e.jsx(i,{size:"small",onClick:b,disabled:a+x>=l.length,sx:{mt:h?0:1,ml:h?1:0},children:h?e.jsx(t,{}):e.jsx(s,{})})]});export{l as GalleryThumbnails};
|
|
2
|
+
//# sourceMappingURL=GalleryThumbnails.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GalleryThumbnails.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Gallery } from './Gallery';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gallery.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrowBackIosNew.js","sources":["../../../../../../node_modules/@mui/icons-material/esm/ArrowBackIosNew.js"],"sourcesContent":["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M17.77 3.77 16 2 6 12l10 10 1.77-1.77L9.54 12z\"\n}), 'ArrowBackIosNew');"],"names":["ArrowBackIosNewIcon","createSvgIcon","_jsx","jsx","d"],"mappings":"iHAIA,IAAAA,EAAeC,EAA2BC,EAAIC,IAAC,OAAQ,CACrDC,EAAG,mDACD","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrowForwardIos.js","sources":["../../../../../../node_modules/@mui/icons-material/esm/ArrowForwardIos.js"],"sourcesContent":["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z\"\n}), 'ArrowForwardIos');"],"names":["ArrowForwardIosIcon","createSvgIcon","_jsx","jsx","d"],"mappings":"iHAIA,IAAAA,EAAeC,EAA2BC,EAAIC,IAAC,OAAQ,CACrDC,EAAG,mDACD","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{j as r}from"../../../../_virtual/jsx-runtime.js";import t from"../../material/esm/utils/createSvgIcon.js";var a=t(r.jsx("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"}),"Fullscreen");export{a as default};
|
|
2
|
+
//# sourceMappingURL=Fullscreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Fullscreen.js","sources":["../../../../../../node_modules/@mui/icons-material/esm/Fullscreen.js"],"sourcesContent":["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z\"\n}), 'Fullscreen');"],"names":["FullscreenIcon","createSvgIcon","_jsx","jsx","d"],"mappings":"iHAIA,IAAAA,EAAeC,EAA2BC,EAAIC,IAAC,OAAQ,CACrDC,EAAG,yEACD","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KeyboardArrowDown.js","sources":["../../../../../../node_modules/@mui/icons-material/esm/KeyboardArrowDown.js"],"sourcesContent":["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z\"\n}), 'KeyboardArrowDown');"],"names":["KeyboardArrowDownIcon","createSvgIcon","_jsx","jsx","d"],"mappings":"iHAIA,IAAAA,EAAeC,EAA2BC,EAAIC,IAAC,OAAQ,CACrDC,EAAG,kDACD","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KeyboardArrowUp.js","sources":["../../../../../../node_modules/@mui/icons-material/esm/KeyboardArrowUp.js"],"sourcesContent":["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z\"\n}), 'KeyboardArrowUp');"],"names":["KeyboardArrowUpIcon","createSvgIcon","_jsx","jsx","d"],"mappings":"iHAIA,IAAAA,EAAeC,EAA2BC,EAAIC,IAAC,OAAQ,CACrDC,EAAG,mDACD","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{j as t}from"../../../../_virtual/jsx-runtime.js";import r from"../../material/esm/utils/createSvgIcon.js";var a=r(t.jsx("path",{d:"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8m-6 8c0-1.65.67-3.15 1.76-4.24L6.34 7.34C4.9 8.79 4 10.79 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91"}),"RestartAlt");export{a as default};
|
|
2
|
+
//# sourceMappingURL=RestartAlt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RestartAlt.js","sources":["../../../../../../node_modules/@mui/icons-material/esm/RestartAlt.js"],"sourcesContent":["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8m-6 8c0-1.65.67-3.15 1.76-4.24L6.34 7.34C4.9 8.79 4 10.79 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91\"\n}), 'RestartAlt');"],"names":["RestartAltIcon","createSvgIcon","_jsx","jsx","d"],"mappings":"iHAIA,IAAAA,EAAeC,EAA2BC,EAAIC,IAAC,OAAQ,CACrDC,EAAG,kOACD","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{j as t}from"../../../../_virtual/jsx-runtime.js";import a from"../../material/esm/utils/createSvgIcon.js";var r=a(t.jsx("path",{d:"M7.11 8.53 5.7 7.11C4.8 8.27 4.24 9.61 4.07 11h2.02c.14-.87.49-1.72 1.02-2.47M6.09 13H4.07c.17 1.39.72 2.73 1.62 3.89l1.41-1.42c-.52-.75-.87-1.59-1.01-2.47m1.01 5.32c1.16.9 2.51 1.44 3.9 1.61V17.9c-.87-.15-1.71-.49-2.46-1.03zM13 4.07V1L8.45 5.55 13 10V6.09c2.84.48 5 2.94 5 5.91s-2.16 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93s-3.05-7.44-7-7.93"}),"RotateLeft");export{r as default};
|
|
2
|
+
//# sourceMappingURL=RotateLeft.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RotateLeft.js","sources":["../../../../../../node_modules/@mui/icons-material/esm/RotateLeft.js"],"sourcesContent":["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M7.11 8.53 5.7 7.11C4.8 8.27 4.24 9.61 4.07 11h2.02c.14-.87.49-1.72 1.02-2.47M6.09 13H4.07c.17 1.39.72 2.73 1.62 3.89l1.41-1.42c-.52-.75-.87-1.59-1.01-2.47m1.01 5.32c1.16.9 2.51 1.44 3.9 1.61V17.9c-.87-.15-1.71-.49-2.46-1.03zM13 4.07V1L8.45 5.55 13 10V6.09c2.84.48 5 2.94 5 5.91s-2.16 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93s-3.05-7.44-7-7.93\"\n}), 'RotateLeft');"],"names":["RotateLeftIcon","createSvgIcon","_jsx","jsx","d"],"mappings":"iHAIA,IAAAA,EAAeC,EAA2BC,EAAIC,IAAC,OAAQ,CACrDC,EAAG,2VACD","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{j as t}from"../../../../_virtual/jsx-runtime.js";import a from"../../material/esm/utils/createSvgIcon.js";var r=a(t.jsx("path",{d:"M15.55 5.55 11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10zM19.93 11c-.17-1.39-.72-2.73-1.62-3.89l-1.42 1.42c.54.75.88 1.6 1.02 2.47zM13 17.9v2.02c1.39-.17 2.74-.71 3.9-1.61l-1.44-1.44c-.75.54-1.59.89-2.46 1.03m3.89-2.42 1.42 1.41c.9-1.16 1.45-2.5 1.62-3.89h-2.02c-.14.87-.48 1.72-1.02 2.48"}),"RotateRight");export{r as default};
|
|
2
|
+
//# sourceMappingURL=RotateRight.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RotateRight.js","sources":["../../../../../../node_modules/@mui/icons-material/esm/RotateRight.js"],"sourcesContent":["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M15.55 5.55 11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10zM19.93 11c-.17-1.39-.72-2.73-1.62-3.89l-1.42 1.42c.54.75.88 1.6 1.02 2.47zM13 17.9v2.02c1.39-.17 2.74-.71 3.9-1.61l-1.44-1.44c-.75.54-1.59.89-2.46 1.03m3.89-2.42 1.42 1.41c.9-1.16 1.45-2.5 1.62-3.89h-2.02c-.14.87-.48 1.72-1.02 2.48\"\n}), 'RotateRight');"],"names":["RotateRightIcon","createSvgIcon","_jsx","jsx","d"],"mappings":"iHAIA,IAAAA,EAAeC,EAA2BC,EAAIC,IAAC,OAAQ,CACrDC,EAAG,2VACD","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{j as t}from"../../../../_virtual/jsx-runtime.js";import a from"../../material/esm/utils/createSvgIcon.js";var r=a([t.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"},"0"),t.jsx("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2z"},"1")],"ZoomIn");export{r as default};
|
|
2
|
+
//# sourceMappingURL=ZoomIn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ZoomIn.js","sources":["../../../../../../node_modules/@mui/icons-material/esm/ZoomIn.js"],"sourcesContent":["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon([/*#__PURE__*/_jsx(\"path\", {\n d: \"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14\"\n}, \"0\"), /*#__PURE__*/_jsx(\"path\", {\n d: \"M12 10h-2v2H9v-2H7V9h2V7h1v2h2z\"\n}, \"1\")], 'ZoomIn');"],"names":["ZoomInIcon","createSvgIcon","_jsx","jsx","d"],"mappings":"iHAIA,IAAAA,EAAeC,EAAc,CAAcC,EAAIC,IAAC,OAAQ,CACtDC,EAAG,qOACF,KAAmBF,EAAIC,IAAC,OAAQ,CACjCC,EAAG,mCACF,MAAO","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{j as t}from"../../../../_virtual/jsx-runtime.js";import r from"../../material/esm/utils/createSvgIcon.js";var a=r(t.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14M7 9h5v1H7z"}),"ZoomOut");export{a as default};
|
|
2
|
+
//# sourceMappingURL=ZoomOut.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ZoomOut.js","sources":["../../../../../../node_modules/@mui/icons-material/esm/ZoomOut.js"],"sourcesContent":["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14M7 9h5v1H7z\"\n}), 'ZoomOut');"],"names":["ZoomOutIcon","createSvgIcon","_jsx","jsx","d"],"mappings":"iHAIA,IAAAA,EAAeC,EAA2BC,EAAIC,IAAC,OAAQ,CACrDC,EAAG,iPACD","x_google_ignoreList":[0]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soyfri/shared-library",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -51,6 +51,11 @@
|
|
|
51
51
|
"require": "./cjs/components/stepper.cjs",
|
|
52
52
|
"types": "./esm/components/stepper/stepper.d.ts"
|
|
53
53
|
},
|
|
54
|
+
"./components/gallery": {
|
|
55
|
+
"import": "./esm/components/gallery.js",
|
|
56
|
+
"require": "./cjs/components/gallery.cjs",
|
|
57
|
+
"types": "./esm/components/gallery/gallery.d.ts"
|
|
58
|
+
},
|
|
54
59
|
"./components/Table": {
|
|
55
60
|
"import": "./esm/components/Table.js",
|
|
56
61
|
"require": "./cjs/components/Table.cjs",
|