calendar-events 0.1.0 → 0.1.2

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.
@@ -33,7 +33,7 @@
33
33
  *
34
34
  * This source code is licensed under the ISC license.
35
35
  * See the LICENSE file in the root directory of this source tree.
36
- */const ve=B("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);function oe({date:e,onPreviousMonth:t,onNextMonth:r}){return d.jsxs("div",{className:"flex items-end py-1 justify-between",children:[d.jsxs("div",{className:"flex items-center gap-4",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("button",{onClick:t,className:"rounded-full h-10 w-10 hover:scale-110 hover:bg-accent flex items-center justify-center transition-all","aria-label":"Mes anterior",children:d.jsx(we,{className:"h-7 w-7 text-muted-foreground"})}),d.jsx("button",{onClick:r,className:"rounded-full h-10 w-10 hover:scale-110 hover:bg-accent flex items-center justify-center transition-all","aria-label":"Mes siguiente",children:d.jsx(ve,{className:"h-7 w-7 text-muted-foreground"})})]}),d.jsxs("p",{className:"capitalize font-medium text-xl flex items-center gap-2",children:[d.jsx(ye,{className:"text-primary size-7"}),e.toLocaleDateString("es-CL",{month:"long",year:"numeric"})]})]}),d.jsxs("div",{className:"border rounded-lg flex",children:[d.jsx("button",{onClick:t,className:"px-2 text-lg font-normal border-r rounded-l-lg hover:bg-accent transition-colors",children:"Mes"}),d.jsx("button",{onClick:r,className:"px-2 text-lg font-normal rounded-r-lg hover:bg-accent transition-colors",children:"Agenda"})]})]})}function ne({label:e}){return d.jsx("div",{className:"text-muted-foreground px-3 text-xs lg:text-md xl:text-lg truncate",children:e})}const Ce=["LUNES","MARTES","MIÉRCOLES","JUEVES","VIERNES","SÁBADO","DOMINGO"];function se(){return d.jsx("div",{className:"grid grid-cols-7 bg-primary/20 rounded h-13 text-lg items-center mt-4 mb-1",children:Ce.map(e=>d.jsx(ne,{label:e},e))})}function ae({event:e,onClickEvent:t}){return d.jsx("button",{className:"text-xs p-2 bg-secondary/20 font-normal w-full justify-start line-clamp-2 overflow-ellipsis text-start rounded-lg italic cursor-pointer hover:bg-secondary/50 hover:scale-101 transition-all",onClick:()=>t==null?void 0:t(e),children:e.title})}function L({day:e,events:t,isToday:r,isOutsideMonth:o=!1,onClickEvent:l,renderEvent:s}){return o?d.jsx("div",{className:"text-muted-foreground p-2 hover:bg-accent/50 h-20 lg:h-27 text-xs",children:e.getDate()}):d.jsxs("div",{className:`p-2 rounded border h-20 lg:h-27 flex flex-col hover:bg-accent/50 ${r?"bg-accent/50 border-primary/50":"border-transparent"}`,children:[d.jsx("div",{className:"font-medium text-xs",children:e.getDate()}),d.jsx("div",{className:"mt-1 flex-1 overflow-y-auto space-y-1 p-1",children:t.map(n=>s?d.jsx("div",{children:s(n)},n.id):d.jsx(ae,{event:n,onClickEvent:l},n.id))})]})}const ke=[{cx:7,cy:13.5},{cx:12,cy:13.5},{cx:17,cy:13.5},{cx:7,cy:17.5},{cx:12,cy:17.5},{cx:17,cy:17.5}],je=.28,Me=2.4;function le({size:e=24,color:t="currentColor",strokeWidth:r=2,className:o,style:l,...s}){const n=me.useId().replace(/:/g,"");return d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round",className:o,style:l,"aria-hidden":"true",...s,children:[d.jsx("style",{children:`
36
+ */const ve=B("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);function oe({date:e,onPreviousMonth:t,onNextMonth:r}){return d.jsxs("div",{className:"flex items-end py-1 justify-between",children:[d.jsxs("div",{className:"flex items-center gap-4",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("button",{onClick:t,className:"rounded-full h-10 w-10 hover:scale-110 hover:bg-accent flex items-center justify-center transition-all","aria-label":"Mes anterior",children:d.jsx(we,{className:"h-7 w-7 text-muted-foreground"})}),d.jsx("button",{onClick:r,className:"rounded-full h-10 w-10 hover:scale-110 hover:bg-accent flex items-center justify-center transition-all","aria-label":"Mes siguiente",children:d.jsx(ve,{className:"h-7 w-7 text-muted-foreground"})})]}),d.jsxs("p",{className:"capitalize font-medium text-xl flex items-center gap-2",children:[d.jsx(ye,{className:"text-primary size-7"}),e.toLocaleDateString("es-CL",{month:"long",year:"numeric"})]})]}),d.jsxs("div",{className:"border rounded-lg flex",children:[d.jsx("button",{onClick:t,className:"px-2 text-lg font-normal border-r rounded-l-lg hover:bg-accent transition-colors",children:"Mes"}),d.jsx("button",{onClick:r,className:"px-2 text-lg font-normal rounded-r-lg hover:bg-accent transition-colors",children:"Agenda"})]})]})}function ne({label:e}){return d.jsx("div",{className:"text-muted-foreground px-3 text-xs lg:text-md xl:text-lg truncate",children:e})}const Ce=["LUNES","MARTES","MIÉRCOLES","JUEVES","VIERNES","SÁBADO","DOMINGO"];function se(){return d.jsx("div",{className:"grid grid-cols-7 bg-primary/20 rounded h-13 text-lg items-center mt-4 mb-1",children:Ce.map(e=>d.jsx(ne,{label:e},e))})}function ae({event:e,onClickEvent:t}){return d.jsx("button",{className:"text-xs p-2 bg-secondary/20 font-normal w-full justify-start line-clamp-2 overflow-ellipsis text-start rounded-lg italic cursor-pointer hover:bg-secondary/50 hover:scale-105 transition-all",onClick:()=>t==null?void 0:t(e),children:e.title})}function L({day:e,events:t,isToday:r,isOutsideMonth:o=!1,onClickEvent:l,renderEvent:s}){return o?d.jsx("div",{className:"text-muted-foreground p-2 hover:bg-accent/50 h-20 lg:h-28 text-xs",children:e.getDate()}):d.jsxs("div",{className:`p-2 rounded border h-20 lg:h-28 flex flex-col hover:bg-accent/50 ${r?"bg-accent/50 border-primary/50":"border-transparent"}`,children:[d.jsx("div",{className:"font-medium text-xs",children:e.getDate()}),d.jsx("div",{className:"mt-1 flex-1 overflow-y-auto space-y-1 p-1",children:t.map(n=>s?d.jsx("div",{children:s(n)},n.id):d.jsx(ae,{event:n,onClickEvent:l},n.id))})]})}const ke=[{cx:7,cy:13.5},{cx:12,cy:13.5},{cx:17,cy:13.5},{cx:7,cy:17.5},{cx:12,cy:17.5},{cx:17,cy:17.5}],je=.28,Me=2.4;function le({size:e=24,color:t="currentColor",strokeWidth:r=2,className:o,style:l,...s}){const n=me.useId().replace(/:/g,"");return d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round",className:o,style:l,"aria-hidden":"true",...s,children:[d.jsx("style",{children:`
37
37
  @keyframes ${n}-pulse {
38
38
  0%, 100% { opacity: 0.12; transform: scale(1); }
39
39
  30% { opacity: 1; transform: scale(1.5); }