New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

reactjs-calendar-date-picker

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reactjs-calendar-date-picker - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

104

dist/index.es.js

@@ -1,3 +0,3 @@

import Ne, { useRef as Fe, useState as Ie, useEffect as Ae, Fragment as lr } from "react";
var le = { exports: {} }, z = {};
import Ne, { useRef as Fe, useState as Ie, useEffect as Ae, Fragment as cr } from "react";
var ce = { exports: {} }, z = {};
/**

@@ -62,6 +62,6 @@ * @license React

i !== "" && (r += "%s", t = t.concat([i]));
var c = t.map(function(o) {
var l = t.map(function(o) {
return String(o);
});
c.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, c);
l.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, l);
}

@@ -123,5 +123,5 @@ }

case O: {
var i = e, c = i._payload, o = i._init;
var i = e, l = i._payload, o = i._init;
try {
return b(o(c));
return b(o(l));
} catch {

@@ -227,4 +227,4 @@ return null;

Error.prepareStackTrace = void 0;
var c;
c = te.current, te.current = null, $e();
var l;
l = te.current, te.current = null, $e();
try {

@@ -282,3 +282,3 @@ if (r) {

} finally {
ae = !1, te.current = c, Ye(), Error.prepareStackTrace = i;
ae = !1, te.current = l, Ye(), Error.prepareStackTrace = i;
}

@@ -315,5 +315,5 @@ var Y = e ? e.displayName || e.name : "", ke = Y ? X(Y) : "";

case O: {
var n = e, i = n._payload, c = n._init;
var n = e, i = n._payload, l = n._init;
try {
return Q(c(i), r, t);
return Q(l(i), r, t);
} catch {

@@ -335,5 +335,5 @@ }

{
var c = Function.call.bind(ee);
var l = Function.call.bind(ee);
for (var o in e)
if (c(e, o)) {
if (l(e, o)) {
var a = void 0;

@@ -428,3 +428,3 @@ try {

}
var er = function(e, r, t, n, i, c, o) {
var er = function(e, r, t, n, i, l, o) {
var a = {

@@ -439,3 +439,3 @@ // This tag allows us to uniquely identify this as a React Element

// Record the component responsible for creating this element.
_owner: c
_owner: l
};

@@ -461,10 +461,10 @@ return a._store = {}, Object.defineProperty(a._store, "validated", {

{
var c, o = {}, a = null, R = null;
var l, o = {}, a = null, R = null;
t !== void 0 && (xe(t), a = "" + t), Ke(r) && (xe(r.key), a = "" + r.key), He(r) && (R = r.ref, Xe(r, i));
for (c in r)
ee.call(r, c) && !ze.hasOwnProperty(c) && (o[c] = r[c]);
for (l in r)
ee.call(r, l) && !ze.hasOwnProperty(l) && (o[l] = r[l]);
if (e && e.defaultProps) {
var d = e.defaultProps;
for (c in d)
o[c] === void 0 && (o[c] = d[c]);
for (l in d)
o[l] === void 0 && (o[l] = d[l]);
}

@@ -488,3 +488,3 @@ if (a || R) {

ue = !1;
function ce(e) {
function le(e) {
return typeof e == "object" && e !== null && e.$$typeof === S;

@@ -548,5 +548,5 @@ }

var n = e[t];
ce(n) && Oe(n, r);
le(n) && Oe(n, r);
}
else if (ce(e))
else if (le(e))
e._store && (e._store.validated = !0);

@@ -556,4 +556,4 @@ else if (e) {

if (typeof i == "function" && i !== e.entries)
for (var c = i.call(e), o; !(o = c.next()).done; )
ce(o.value) && Oe(o.value, r);
for (var l = i.call(e), o; !(o = l.next()).done; )
le(o.value) && Oe(o.value, r);
}

@@ -599,3 +599,3 @@ }

}
function Pe(e, r, t, n, i, c) {
function Pe(e, r, t, n, i, l) {
{

@@ -611,3 +611,3 @@ var o = P(e);

}
var p = rr(e, r, t, i, c);
var p = rr(e, r, t, i, l);
if (p == null)

@@ -637,8 +637,8 @@ return p;

}
var ur = sr, cr = ir;
H.Fragment = f, H.jsx = ur, H.jsxs = cr;
var ur = sr, lr = ir;
H.Fragment = f, H.jsx = ur, H.jsxs = lr;
}()), H;
}
process.env.NODE_ENV === "production" ? le.exports = fr() : le.exports = dr();
var l = le.exports;
process.env.NODE_ENV === "production" ? ce.exports = fr() : ce.exports = dr();
var c = ce.exports;
const pr = (W) => {

@@ -710,3 +710,3 @@ const { reservedDays: S = [], onChange: V } = W, f = Fe(0), _ = Fe(0), [A, M] = Ie([]), [u, h] = Ie(/* @__PURE__ */ new Date()), F = [

P.push(
/* @__PURE__ */ l.jsx(
/* @__PURE__ */ c.jsx(
"div",

@@ -727,3 +727,3 @@ {

S.includes(parseInt(D)) && (j += " reserved"), P.push(
/* @__PURE__ */ l.jsx(
/* @__PURE__ */ c.jsx(
"div",

@@ -743,3 +743,3 @@ {

P.push(
/* @__PURE__ */ l.jsx(
/* @__PURE__ */ c.jsx(
"div",

@@ -778,5 +778,5 @@ {

};
return /* @__PURE__ */ l.jsxs("div", { className: "calendar", children: [
/* @__PURE__ */ l.jsxs("div", { className: "month", children: [
/* @__PURE__ */ l.jsx("i", { onClick: I, className: "prev", children: /* @__PURE__ */ l.jsx(
return /* @__PURE__ */ c.jsxs("div", { className: "calendar", children: [
/* @__PURE__ */ c.jsxs("div", { className: "month", children: [
/* @__PURE__ */ c.jsx("i", { onClick: I, className: "prev", children: /* @__PURE__ */ c.jsx(
"svg",

@@ -790,10 +790,10 @@ {

viewBox: "0 0 59.414 59.414",
children: /* @__PURE__ */ l.jsx("polygon", { points: "45.268,1.414 43.854,0 14.146,29.707 43.854,59.414 45.268,58 16.975,29.707 " })
children: /* @__PURE__ */ c.jsx("polygon", { points: "45.268,1.414 43.854,0 14.146,29.707 43.854,59.414 45.268,58 16.975,29.707 " })
}
) }),
/* @__PURE__ */ l.jsxs("div", { className: "date", children: [
/* @__PURE__ */ l.jsx("h1", { children: F[u.getMonth()] }),
/* @__PURE__ */ l.jsx("p", { children: (/* @__PURE__ */ new Date()).toDateString() })
/* @__PURE__ */ c.jsxs("div", { className: "date", children: [
/* @__PURE__ */ c.jsx("h1", { children: F[u.getMonth()] }),
/* @__PURE__ */ c.jsx("p", { children: (/* @__PURE__ */ new Date()).toDateString() })
] }),
/* @__PURE__ */ l.jsx("i", { onClick: m, className: "next", children: /* @__PURE__ */ l.jsx(
/* @__PURE__ */ c.jsx("i", { onClick: m, className: "next", children: /* @__PURE__ */ c.jsx(
"svg",

@@ -807,16 +807,16 @@ {

viewBox: "0 0 59.414 59.414",
children: /* @__PURE__ */ l.jsx("polygon", { points: "15.561,0 14.146,1.414 42.439,29.707 14.146,58 15.561,59.414 45.268,29.707 " })
children: /* @__PURE__ */ c.jsx("polygon", { points: "15.561,0 14.146,1.414 42.439,29.707 14.146,58 15.561,59.414 45.268,29.707 " })
}
) })
] }),
/* @__PURE__ */ l.jsxs("div", { className: "weekdays", children: [
/* @__PURE__ */ l.jsx("div", { children: "Sun" }),
/* @__PURE__ */ l.jsx("div", { children: "Mon" }),
/* @__PURE__ */ l.jsx("div", { children: "Tue" }),
/* @__PURE__ */ l.jsx("div", { children: "Wed" }),
/* @__PURE__ */ l.jsx("div", { children: "Thu" }),
/* @__PURE__ */ l.jsx("div", { children: "Fri" }),
/* @__PURE__ */ l.jsx("div", { children: "Sat" })
/* @__PURE__ */ c.jsxs("div", { className: "weekdays", children: [
/* @__PURE__ */ c.jsx("div", { children: "Sun" }),
/* @__PURE__ */ c.jsx("div", { children: "Mon" }),
/* @__PURE__ */ c.jsx("div", { children: "Tue" }),
/* @__PURE__ */ c.jsx("div", { children: "Wed" }),
/* @__PURE__ */ c.jsx("div", { children: "Thu" }),
/* @__PURE__ */ c.jsx("div", { children: "Fri" }),
/* @__PURE__ */ c.jsx("div", { children: "Sat" })
] }),
/* @__PURE__ */ l.jsx("div", { className: "days", children: A.map((s) => /* @__PURE__ */ l.jsx(lr, { children: s }, s.props.id)) })
/* @__PURE__ */ c.jsx("div", { className: "days", children: A.map((s) => /* @__PURE__ */ c.jsx(cr, { children: s }, s.props.id)) })
] });

@@ -823,0 +823,0 @@ };

@@ -27,3 +27,3 @@ (function(_,M){typeof exports=="object"&&typeof module<"u"?module.exports=M(require("react")):typeof define=="function"&&define.amd?define(["react"],M):(_=typeof globalThis<"u"?globalThis:_||self,_["reactjs-calendar-date-picker"]=M(_.React))})(this,function(_){"use strict";var M={exports:{}},B={};/**

Check the top-level render call using <`+t+">.")}return r}}function ke(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=tr(r);if(Pe[t])return;Pe[t]=!0;var n="";e&&e._owner&&e._owner!==ce.current&&(n=" It was passed a child from "+b(e._owner.type)+"."),V(e),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),V(null)}}function Fe(e,r){{if(typeof e!="object")return;if(se(e))for(var t=0;t<e.length;t++){var n=e[t];fe(n)&&ke(n,r)}else if(fe(e))e._store&&(e._store.validated=!0);else if(e){var i=H(e);if(typeof i=="function"&&i!==e.entries)for(var c=i.call(e),o;!(o=c.next()).done;)fe(o.value)&&ke(o.value,r)}}}function nr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===h||r.$$typeof===j))t=r.propTypes;else return;if(t){var n=b(r);Be(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!le){le=!0;var i=b(r);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ar(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){V(e),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),V(null);break}}e.ref!==null&&(V(e),g("Invalid attribute `ref` supplied to `React.Fragment`."),V(null))}}function Ie(e,r,t,n,i,c){{var o=k(e);if(!o){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var R=rr(i);R?a+=R:a+=De();var d;e===null?d="null":se(e)?d="array":e!==void 0&&e.$$typeof===O?(d="<"+(b(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):d=typeof e,g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",d,a)}var p=er(e,r,t,i,c);if(p==null)return p;if(o){var S=r.children;if(S!==void 0)if(n)if(se(S)){for(var U=0;U<S.length;U++)Fe(S[U],e);Object.freeze&&Object.freeze(S)}else g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Fe(S,e)}return e===f?ar(p):nr(p),p}}function or(e,r,t){return Ie(e,r,t,!0)}function ir(e,r,t){return Ie(e,r,t,!1)}var sr=ir,ur=or;$.Fragment=f,$.jsx=sr,$.jsxs=ur}()),$}process.env.NODE_ENV==="production"?M.exports=Me():M.exports=Le();var l=M.exports;const cr="";return J=>{const{reservedDays:O=[],onChange:G}=J,f=_.useRef(0),x=_.useRef(0),[L,N]=_.useState([]),[u,h]=_.useState(new Date),I=["January","February","March","April","May","June","July","August","September","October","November","December"];_.useEffect(()=>H(),[]),_.useEffect(()=>Z(),[L]);const m=s=>{var v=document.querySelectorAll(`.${s}`);[].forEach.call(v,y=>{y.classList.remove(s)})},j=()=>{const s=document.querySelector(".from");s&&s.classList.remove("from")},D=()=>{const s=document.querySelector(".to");s&&s.classList.remove("to")},Y=s=>{if(!O)return!1;let v=!1,y=!1;return O.forEach(T=>{T>=f.current&&T<=parseInt(s)&&(v=!0)}),(f.current&&v||O.includes(parseInt(s)))&&(y=!0,f.current=0,x.current=0,j(),D(),m("lights")),y},W=s=>{const v=s.target.id,y=document.getElementById(v),T=f.current&&parseInt(v)-f.current<0;Y(v)||((x.current||T)&&(f.current=0,x.current=0,D(),j(),m("lights")),f.current&&!T?y.classList.contains("from")?(f.current=0,y.classList.remove("from")):(x.current=parseInt(v),y.classList.add("to"),Z()):(f.current=parseInt(v),y.classList.add("from")),G({from:f.current,to:x.current}))},z=(s,v)=>{const T=new Date(u.getFullYear(),v,s).getTime();let w="";return T===f.current?w="from":T===x.current&&(w="to"),{num:T.toString(),cls:w}},H=()=>{u.setDate(1),h(u);const s=new Date(u.getFullYear(),u.getMonth()+1,0).getDate(),v=new Date(u.getFullYear(),u.getMonth(),0).getDate(),y=u.getDay(),w=7-new Date(u.getFullYear(),u.getMonth()+1,0).getDay()-1;let k=[];for(let E=y;E>0;E--){const P=v-E+1,{num:b,cls:C}=z(P,u.getMonth()-1);k.push(l.jsx("div",{id:b,onMouseOver:K,onClick:W,className:`prev-date ${C}`,children:P}))}for(let E=1;E<=s;E++){const{num:P,cls:b}=z(E,u.getMonth());let C=E===new Date().getDate()&&u.getMonth()===new Date().getMonth()?"today":"day";O.includes(parseInt(P))&&(C+=" reserved"),k.push(l.jsx("div",{id:P,onMouseOver:K,onClick:W,className:`${C} ${b}`,children:E}))}for(let E=1;E<=w;E++){const{num:P,cls:b}=z(E,u.getMonth()+1);k.push(l.jsx("div",{id:P,onMouseOver:K,onClick:W,className:`next-date ${b}`,children:E}))}N(k)},A=()=>{u.setMonth(u.getMonth()-1),H()},g=()=>{u.setMonth(u.getMonth()+1),H()},K=s=>{if(m("light"),!f.current||x.current)return;const y=parseInt(s.target.id),T=f.current;for(let w=T;w<=y;w+=864e5){const k=document.getElementById(w.toString());if(O.includes(w))return;k&&k.classList.add("light")}},Z=()=>{if(!(!f.current||!x.current))for(let s=f.current;s<=x.current;s+=864e5){const v=document.getElementById(s.toString());v&&v.classList.add("lights")}};return l.jsxs("div",{className:"calendar",children:[l.jsxs("div",{className:"month",children:[l.jsx("i",{onClick:A,className:"prev",children:l.jsx("svg",{fill:"#000000",height:"28px",width:"28px",version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 59.414 59.414",children:l.jsx("polygon",{points:"45.268,1.414 43.854,0 14.146,29.707 43.854,59.414 45.268,58 16.975,29.707 "})})}),l.jsxs("div",{className:"date",children:[l.jsx("h1",{children:I[u.getMonth()]}),l.jsx("p",{children:new Date().toDateString()})]}),l.jsx("i",{onClick:g,className:"next",children:l.jsx("svg",{fill:"#000000",height:"28px",width:"28px",version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 59.414 59.414",children:l.jsx("polygon",{points:"15.561,0 14.146,1.414 42.439,29.707 14.146,58 15.561,59.414 45.268,29.707 "})})})]}),l.jsxs("div",{className:"weekdays",children:[l.jsx("div",{children:"Sun"}),l.jsx("div",{children:"Mon"}),l.jsx("div",{children:"Tue"}),l.jsx("div",{children:"Wed"}),l.jsx("div",{children:"Thu"}),l.jsx("div",{children:"Fri"}),l.jsx("div",{children:"Sat"})]}),l.jsx("div",{className:"days",children:L.map(s=>l.jsx(_.Fragment,{children:s},s.props.id))})]})}});
Check the top-level render call using <`+t+">.")}return r}}function ke(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=tr(r);if(Pe[t])return;Pe[t]=!0;var n="";e&&e._owner&&e._owner!==ce.current&&(n=" It was passed a child from "+b(e._owner.type)+"."),V(e),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),V(null)}}function Fe(e,r){{if(typeof e!="object")return;if(se(e))for(var t=0;t<e.length;t++){var n=e[t];fe(n)&&ke(n,r)}else if(fe(e))e._store&&(e._store.validated=!0);else if(e){var i=H(e);if(typeof i=="function"&&i!==e.entries)for(var c=i.call(e),o;!(o=c.next()).done;)fe(o.value)&&ke(o.value,r)}}}function nr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===h||r.$$typeof===j))t=r.propTypes;else return;if(t){var n=b(r);Be(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!le){le=!0;var i=b(r);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ar(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){V(e),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),V(null);break}}e.ref!==null&&(V(e),g("Invalid attribute `ref` supplied to `React.Fragment`."),V(null))}}function Ie(e,r,t,n,i,c){{var o=k(e);if(!o){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var R=rr(i);R?a+=R:a+=De();var d;e===null?d="null":se(e)?d="array":e!==void 0&&e.$$typeof===O?(d="<"+(b(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):d=typeof e,g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",d,a)}var p=er(e,r,t,i,c);if(p==null)return p;if(o){var S=r.children;if(S!==void 0)if(n)if(se(S)){for(var U=0;U<S.length;U++)Fe(S[U],e);Object.freeze&&Object.freeze(S)}else g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Fe(S,e)}return e===f?ar(p):nr(p),p}}function or(e,r,t){return Ie(e,r,t,!0)}function ir(e,r,t){return Ie(e,r,t,!1)}var sr=ir,ur=or;$.Fragment=f,$.jsx=sr,$.jsxs=ur}()),$}process.env.NODE_ENV==="production"?M.exports=Me():M.exports=Le();var l=M.exports;return J=>{const{reservedDays:O=[],onChange:G}=J,f=_.useRef(0),x=_.useRef(0),[L,N]=_.useState([]),[u,h]=_.useState(new Date),I=["January","February","March","April","May","June","July","August","September","October","November","December"];_.useEffect(()=>H(),[]),_.useEffect(()=>Z(),[L]);const m=s=>{var v=document.querySelectorAll(`.${s}`);[].forEach.call(v,y=>{y.classList.remove(s)})},j=()=>{const s=document.querySelector(".from");s&&s.classList.remove("from")},D=()=>{const s=document.querySelector(".to");s&&s.classList.remove("to")},Y=s=>{if(!O)return!1;let v=!1,y=!1;return O.forEach(T=>{T>=f.current&&T<=parseInt(s)&&(v=!0)}),(f.current&&v||O.includes(parseInt(s)))&&(y=!0,f.current=0,x.current=0,j(),D(),m("lights")),y},W=s=>{const v=s.target.id,y=document.getElementById(v),T=f.current&&parseInt(v)-f.current<0;Y(v)||((x.current||T)&&(f.current=0,x.current=0,D(),j(),m("lights")),f.current&&!T?y.classList.contains("from")?(f.current=0,y.classList.remove("from")):(x.current=parseInt(v),y.classList.add("to"),Z()):(f.current=parseInt(v),y.classList.add("from")),G({from:f.current,to:x.current}))},z=(s,v)=>{const T=new Date(u.getFullYear(),v,s).getTime();let w="";return T===f.current?w="from":T===x.current&&(w="to"),{num:T.toString(),cls:w}},H=()=>{u.setDate(1),h(u);const s=new Date(u.getFullYear(),u.getMonth()+1,0).getDate(),v=new Date(u.getFullYear(),u.getMonth(),0).getDate(),y=u.getDay(),w=7-new Date(u.getFullYear(),u.getMonth()+1,0).getDay()-1;let k=[];for(let E=y;E>0;E--){const P=v-E+1,{num:b,cls:C}=z(P,u.getMonth()-1);k.push(l.jsx("div",{id:b,onMouseOver:K,onClick:W,className:`prev-date ${C}`,children:P}))}for(let E=1;E<=s;E++){const{num:P,cls:b}=z(E,u.getMonth());let C=E===new Date().getDate()&&u.getMonth()===new Date().getMonth()?"today":"day";O.includes(parseInt(P))&&(C+=" reserved"),k.push(l.jsx("div",{id:P,onMouseOver:K,onClick:W,className:`${C} ${b}`,children:E}))}for(let E=1;E<=w;E++){const{num:P,cls:b}=z(E,u.getMonth()+1);k.push(l.jsx("div",{id:P,onMouseOver:K,onClick:W,className:`next-date ${b}`,children:E}))}N(k)},A=()=>{u.setMonth(u.getMonth()-1),H()},g=()=>{u.setMonth(u.getMonth()+1),H()},K=s=>{if(m("light"),!f.current||x.current)return;const y=parseInt(s.target.id),T=f.current;for(let w=T;w<=y;w+=864e5){const k=document.getElementById(w.toString());if(O.includes(w))return;k&&k.classList.add("light")}},Z=()=>{if(!(!f.current||!x.current))for(let s=f.current;s<=x.current;s+=864e5){const v=document.getElementById(s.toString());v&&v.classList.add("lights")}};return l.jsxs("div",{className:"calendar",children:[l.jsxs("div",{className:"month",children:[l.jsx("i",{onClick:A,className:"prev",children:l.jsx("svg",{fill:"#000000",height:"28px",width:"28px",version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 59.414 59.414",children:l.jsx("polygon",{points:"45.268,1.414 43.854,0 14.146,29.707 43.854,59.414 45.268,58 16.975,29.707 "})})}),l.jsxs("div",{className:"date",children:[l.jsx("h1",{children:I[u.getMonth()]}),l.jsx("p",{children:new Date().toDateString()})]}),l.jsx("i",{onClick:g,className:"next",children:l.jsx("svg",{fill:"#000000",height:"28px",width:"28px",version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 59.414 59.414",children:l.jsx("polygon",{points:"15.561,0 14.146,1.414 42.439,29.707 14.146,58 15.561,59.414 45.268,29.707 "})})})]}),l.jsxs("div",{className:"weekdays",children:[l.jsx("div",{children:"Sun"}),l.jsx("div",{children:"Mon"}),l.jsx("div",{children:"Tue"}),l.jsx("div",{children:"Wed"}),l.jsx("div",{children:"Thu"}),l.jsx("div",{children:"Fri"}),l.jsx("div",{children:"Sat"})]}),l.jsx("div",{className:"days",children:L.map(s=>l.jsx(_.Fragment,{children:s},s.props.id))})]})}});
//# sourceMappingURL=index.umd.js.map

@@ -6,3 +6,3 @@ {

"private": false,
"version": "0.0.6",
"version": "0.0.7",
"type": "module",

@@ -9,0 +9,0 @@ "main": "dist/index.umd.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc