Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-contribution-calendar

Package Overview
Dependencies
Maintainers
2
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-contribution-calendar - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

701

dist/index.js
import './styles/style.css';
import Ve, { useRef as hr, useState as gr, useEffect as mr } from "react";
var pe = { exports: {} }, q = {};
var pe = { exports: {} }, G = {};
/**

@@ -16,18 +16,18 @@ * @license React

if (Ye)
return q;
return G;
Ye = 1;
var n = Ve, l = Symbol.for("react.element"), a = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, v = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 };
function o(d, p, y) {
var f, b = {}, _ = null, m = null;
y !== void 0 && (_ = "" + y), p.key !== void 0 && (_ = "" + p.key), p.ref !== void 0 && (m = p.ref);
for (f in p)
i.call(p, f) && !g.hasOwnProperty(f) && (b[f] = p[f]);
if (d && d.defaultProps)
for (f in p = d.defaultProps, p)
b[f] === void 0 && (b[f] = p[f]);
return { $$typeof: l, type: d, key: _, ref: m, props: b, _owner: v.current };
var n = Ve, l = Symbol.for("react.element"), o = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, y = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 };
function s(u, c, _) {
var v, f = {}, E = null, b = null;
_ !== void 0 && (E = "" + _), c.key !== void 0 && (E = "" + c.key), c.ref !== void 0 && (b = c.ref);
for (v in c)
a.call(c, v) && !g.hasOwnProperty(v) && (f[v] = c[v]);
if (u && u.defaultProps)
for (v in c = u.defaultProps, c)
f[v] === void 0 && (f[v] = c[v]);
return { $$typeof: l, type: u, key: E, ref: b, props: f, _owner: y.current };
}
return q.Fragment = a, q.jsx = o, q.jsxs = o, q;
return G.Fragment = o, G.jsx = s, G.jsxs = s, G;
}
var G = {};
var H = {};
/**

@@ -45,44 +45,44 @@ * @license React

return We || (We = 1, process.env.NODE_ENV !== "production" && function() {
var n = Ve, l = Symbol.for("react.element"), a = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), d = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), w = Symbol.iterator, F = "@@iterator";
var n = Ve, l = Symbol.for("react.element"), o = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), u = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), S = Symbol.iterator, F = "@@iterator";
function k(e) {
if (e === null || typeof e != "object")
return null;
var r = w && e[w] || e[F];
var r = S && e[S] || e[F];
return typeof r == "function" ? r : null;
}
var N = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function T(e) {
var $ = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function D(e) {
{
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), s = 1; s < r; s++)
t[s - 1] = arguments[s];
te("error", e, t);
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
t[i - 1] = arguments[i];
z("error", e, t);
}
}
function te(e, r, t) {
function z(e, r, t) {
{
var s = N.ReactDebugCurrentFrame, h = s.getStackAddendum();
var i = $.ReactDebugCurrentFrame, h = i.getStackAddendum();
h !== "" && (r += "%s", t = t.concat([h]));
var E = t.map(function(u) {
return String(u);
var m = t.map(function(p) {
return String(p);
});
E.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, E);
m.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, m);
}
}
var ne = !1, le = !1, P = !1, O = !1, V = !1, $;
$ = Symbol.for("react.module.reference");
function A(e) {
return !!(typeof e == "string" || typeof e == "function" || e === i || e === g || V || e === v || e === y || e === f || O || e === m || ne || le || P || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === b || e.$$typeof === o || e.$$typeof === d || e.$$typeof === p || // This needs to include all possible module reference object
var ne = !1, le = !1, ae = !1, P = !1, O = !1, B;
B = Symbol.for("react.module.reference");
function N(e) {
return !!(typeof e == "string" || typeof e == "function" || e === a || e === g || O || e === y || e === _ || e === v || P || e === b || ne || le || ae || typeof e == "object" && e !== null && (e.$$typeof === E || e.$$typeof === f || e.$$typeof === s || e.$$typeof === u || e.$$typeof === c || // This needs to include all possible module reference object
// types supported by any Flight configuration anywhere since
// we don't know which Flight build this will end up being used
// with.
e.$$typeof === $ || e.getModuleId !== void 0));
e.$$typeof === B || e.getModuleId !== void 0));
}
function ae(e, r, t) {
var s = e.displayName;
if (s)
return s;
function A(e, r, t) {
var i = e.displayName;
if (i)
return i;
var h = r.displayName || r.name || "";
return h !== "" ? t + "(" + h + ")" : t;
}
function H(e) {
function K(e) {
return e.displayName || "Context";

@@ -93,3 +93,3 @@ }

return null;
if (typeof e.tag == "number" && T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
if (typeof e.tag == "number" && D("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
return e.displayName || e.name || null;

@@ -99,13 +99,13 @@ if (typeof e == "string")

switch (e) {
case i:
case a:
return "Fragment";
case a:
case o:
return "Portal";
case g:
return "Profiler";
case v:
case y:
return "StrictMode";
case y:
case _:
return "Suspense";
case f:
case v:
return "SuspenseList";

@@ -115,17 +115,17 @@ }

switch (e.$$typeof) {
case d:
case u:
var r = e;
return H(r) + ".Consumer";
case o:
return K(r) + ".Consumer";
case s:
var t = e;
return H(t._context) + ".Provider";
case p:
return ae(e, e.render, "ForwardRef");
case b:
var s = e.displayName || null;
return s !== null ? s : j(e.type) || "Memo";
case _: {
var h = e, E = h._payload, u = h._init;
return K(t._context) + ".Provider";
case c:
return A(e, e.render, "ForwardRef");
case f:
var i = e.displayName || null;
return i !== null ? i : j(e.type) || "Memo";
case E: {
var h = e, m = h._payload, p = h._init;
try {
return j(u(E));
return j(p(m));
} catch {

@@ -138,9 +138,9 @@ return null;

}
var M = Object.assign, J = 0, he, ge, me, Ee, _e, Re, xe;
function Se() {
var M = Object.assign, Y = 0, he, ge, me, Ee, _e, Re, xe;
function Te() {
}
Se.__reactDisabledLog = !0;
Te.__reactDisabledLog = !0;
function qe() {
{
if (J === 0) {
if (Y === 0) {
he = console.log, ge = console.info, me = console.warn, Ee = console.error, _e = console.group, Re = console.groupCollapsed, xe = console.groupEnd;

@@ -150,3 +150,3 @@ var e = {

enumerable: !0,
value: Se,
value: Te,
writable: !0

@@ -164,3 +164,3 @@ };

}
J++;
Y++;
}

@@ -170,3 +170,3 @@ }

{
if (J--, J === 0) {
if (Y--, Y === 0) {
var e = {

@@ -201,7 +201,7 @@ configurable: !0,

}
J < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
Y < 0 && D("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
}
var oe = N.ReactCurrentDispatcher, ie;
function z(e, r, t) {
var oe = $.ReactCurrentDispatcher, ie;
function X(e, r, t) {
{

@@ -212,4 +212,4 @@ if (ie === void 0)

} catch (h) {
var s = h.stack.trim().match(/\n( *(at )?)/);
ie = s && s[1] || "";
var i = h.stack.trim().match(/\n( *(at )?)/);
ie = i && i[1] || "";
}

@@ -220,27 +220,27 @@ return `

}
var se = !1, K;
var se = !1, Z;
{
var He = typeof WeakMap == "function" ? WeakMap : Map;
K = new He();
Z = new He();
}
function Te(e, r) {
function Se(e, r) {
if (!e || se)
return "";
{
var t = K.get(e);
var t = Z.get(e);
if (t !== void 0)
return t;
}
var s;
var i;
se = !0;
var h = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var E;
E = oe.current, oe.current = null, qe();
var m;
m = oe.current, oe.current = null, qe();
try {
if (r) {
var u = function() {
var p = function() {
throw Error();
};
if (Object.defineProperty(u.prototype, "props", {
if (Object.defineProperty(p.prototype, "props", {
set: function() {

@@ -251,14 +251,14 @@ throw Error();

try {
Reflect.construct(u, []);
Reflect.construct(p, []);
} catch (I) {
s = I;
i = I;
}
Reflect.construct(e, [], u);
Reflect.construct(e, [], p);
} else {
try {
u.call();
p.call();
} catch (I) {
s = I;
i = I;
}
e.call(u.prototype);
e.call(p.prototype);
}

@@ -269,3 +269,3 @@ } else {

} catch (I) {
s = I;
i = I;
}

@@ -275,15 +275,15 @@ e();

} catch (I) {
if (I && s && typeof I.stack == "string") {
for (var c = I.stack.split(`
`), D = s.stack.split(`
`), R = c.length - 1, x = D.length - 1; R >= 1 && x >= 0 && c[R] !== D[x]; )
if (I && i && typeof I.stack == "string") {
for (var d = I.stack.split(`
`), w = i.stack.split(`
`), R = d.length - 1, x = w.length - 1; R >= 1 && x >= 0 && d[R] !== w[x]; )
x--;
for (; R >= 1 && x >= 0; R--, x--)
if (c[R] !== D[x]) {
if (d[R] !== w[x]) {
if (R !== 1 || x !== 1)
do
if (R--, x--, x < 0 || c[R] !== D[x]) {
if (R--, x--, x < 0 || d[R] !== w[x]) {
var C = `
` + c[R].replace(" at new ", " at ");
return e.displayName && C.includes("<anonymous>") && (C = C.replace("<anonymous>", e.displayName)), typeof e == "function" && K.set(e, C), C;
` + d[R].replace(" at new ", " at ");
return e.displayName && C.includes("<anonymous>") && (C = C.replace("<anonymous>", e.displayName)), typeof e == "function" && Z.set(e, C), C;
}

@@ -295,9 +295,9 @@ while (R >= 1 && x >= 0);

} finally {
se = !1, oe.current = E, Ge(), Error.prepareStackTrace = h;
se = !1, oe.current = m, Ge(), Error.prepareStackTrace = h;
}
var B = e ? e.displayName || e.name : "", Ne = B ? z(B) : "";
return typeof e == "function" && K.set(e, Ne), Ne;
var V = e ? e.displayName || e.name : "", Ne = V ? X(V) : "";
return typeof e == "function" && Z.set(e, Ne), Ne;
}
function ze(e, r, t) {
return Te(e, !1);
return Se(e, !1);
}

@@ -308,25 +308,25 @@ function Ke(e) {

}
function X(e, r, t) {
function Q(e, r, t) {
if (e == null)
return "";
if (typeof e == "function")
return Te(e, Ke(e));
return Se(e, Ke(e));
if (typeof e == "string")
return z(e);
return X(e);
switch (e) {
case y:
return z("Suspense");
case f:
return z("SuspenseList");
case _:
return X("Suspense");
case v:
return X("SuspenseList");
}
if (typeof e == "object")
switch (e.$$typeof) {
case p:
case c:
return ze(e.render);
case b:
return X(e.type, r, t);
case _: {
var s = e, h = s._payload, E = s._init;
case f:
return Q(e.type, r, t);
case E: {
var i = e, h = i._payload, m = i._init;
try {
return X(E(h), r, t);
return Q(m(h), r, t);
} catch {

@@ -338,6 +338,6 @@ }

}
var Z = Object.prototype.hasOwnProperty, De = {}, we = N.ReactDebugCurrentFrame;
function Q(e) {
var ee = Object.prototype.hasOwnProperty, De = {}, we = $.ReactDebugCurrentFrame;
function re(e) {
if (e) {
var r = e._owner, t = X(e.type, e._source, r ? r.type : null);
var r = e._owner, t = Q(e.type, e._source, r ? r.type : null);
we.setExtraStackFrame(t);

@@ -347,18 +347,18 @@ } else

}
function Xe(e, r, t, s, h) {
function Xe(e, r, t, i, h) {
{
var E = Function.call.bind(Z);
for (var u in e)
if (E(e, u)) {
var c = void 0;
var m = Function.call.bind(ee);
for (var p in e)
if (m(e, p)) {
var d = void 0;
try {
if (typeof e[u] != "function") {
var D = Error((s || "React class") + ": " + t + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw D.name = "Invariant Violation", D;
if (typeof e[p] != "function") {
var w = Error((i || "React class") + ": " + t + " type `" + p + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[p] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw w.name = "Invariant Violation", w;
}
c = e[u](r, u, s, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
d = e[p](r, p, i, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (R) {
c = R;
d = R;
}
c && !(c instanceof Error) && (Q(h), T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", s || "React class", t, u, typeof c), Q(null)), c instanceof Error && !(c.message in De) && (De[c.message] = !0, Q(h), T("Failed %s type: %s", t, c.message), Q(null));
d && !(d instanceof Error) && (re(h), D("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", i || "React class", t, p, typeof d), re(null)), d instanceof Error && !(d.message in De) && (De[d.message] = !0, re(h), D("Failed %s type: %s", t, d.message), re(null));
}

@@ -389,5 +389,5 @@ }

if (er(e))
return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Qe(e)), Fe(e);
return D("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Qe(e)), Fe(e);
}
var U = N.ReactCurrentOwner, rr = {
var q = $.ReactCurrentOwner, rr = {
key: !0,

@@ -400,3 +400,3 @@ ref: !0,

function tr(e) {
if (Z.call(e, "ref")) {
if (ee.call(e, "ref")) {
var r = Object.getOwnPropertyDescriptor(e, "ref").get;

@@ -409,3 +409,3 @@ if (r && r.isReactWarning)

function nr(e) {
if (Z.call(e, "key")) {
if (ee.call(e, "key")) {
var r = Object.getOwnPropertyDescriptor(e, "key").get;

@@ -418,5 +418,5 @@ if (r && r.isReactWarning)

function lr(e, r) {
if (typeof e.ref == "string" && U.current && r && U.current.stateNode !== r) {
var t = j(U.current.type);
ce[t] || (T('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', j(U.current.type), e.ref), ce[t] = !0);
if (typeof e.ref == "string" && q.current && r && q.current.stateNode !== r) {
var t = j(q.current.type);
ce[t] || (D('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', j(q.current.type), e.ref), ce[t] = !0);
}

@@ -427,3 +427,3 @@ }

var t = function() {
Oe || (Oe = !0, T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
Oe || (Oe = !0, D("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
};

@@ -439,3 +439,3 @@ t.isReactWarning = !0, Object.defineProperty(e, "key", {

var t = function() {
je || (je = !0, T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
je || (je = !0, D("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
};

@@ -448,4 +448,4 @@ t.isReactWarning = !0, Object.defineProperty(e, "ref", {

}
var ir = function(e, r, t, s, h, E, u) {
var c = {
var ir = function(e, r, t, i, h, m, p) {
var d = {
// This tag allows us to uniquely identify this as a React Element

@@ -457,7 +457,7 @@ $$typeof: l,

ref: t,
props: u,
props: p,
// Record the component responsible for creating this element.
_owner: E
_owner: m
};
return c._store = {}, Object.defineProperty(c._store, "validated", {
return d._store = {}, Object.defineProperty(d._store, "validated", {
configurable: !1,

@@ -467,8 +467,8 @@ enumerable: !1,

value: !1
}), Object.defineProperty(c, "_self", {
}), Object.defineProperty(d, "_self", {
configurable: !1,
enumerable: !1,
writable: !1,
value: s
}), Object.defineProperty(c, "_source", {
value: i
}), Object.defineProperty(d, "_source", {
configurable: !1,

@@ -478,26 +478,26 @@ enumerable: !1,

value: h
}), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
}), Object.freeze && (Object.freeze(d.props), Object.freeze(d)), d;
};
function sr(e, r, t, s, h) {
function sr(e, r, t, i, h) {
{
var E, u = {}, c = null, D = null;
t !== void 0 && (Ce(t), c = "" + t), nr(r) && (Ce(r.key), c = "" + r.key), tr(r) && (D = r.ref, lr(r, h));
for (E in r)
Z.call(r, E) && !rr.hasOwnProperty(E) && (u[E] = r[E]);
var m, p = {}, d = null, w = null;
t !== void 0 && (Ce(t), d = "" + t), nr(r) && (Ce(r.key), d = "" + r.key), tr(r) && (w = r.ref, lr(r, h));
for (m in r)
ee.call(r, m) && !rr.hasOwnProperty(m) && (p[m] = r[m]);
if (e && e.defaultProps) {
var R = e.defaultProps;
for (E in R)
u[E] === void 0 && (u[E] = R[E]);
for (m in R)
p[m] === void 0 && (p[m] = R[m]);
}
if (c || D) {
if (d || w) {
var x = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
c && ar(u, x), D && or(u, x);
d && ar(p, x), w && or(p, x);
}
return ir(e, c, D, h, s, U.current, u);
return ir(e, d, w, h, i, q.current, p);
}
}
var ue = N.ReactCurrentOwner, ke = N.ReactDebugCurrentFrame;
function W(e) {
var ue = $.ReactCurrentOwner, ke = $.ReactDebugCurrentFrame;
function L(e) {
if (e) {
var r = e._owner, t = X(e.type, e._source, r ? r.type : null);
var r = e._owner, t = Q(e.type, e._source, r ? r.type : null);
ke.setExtraStackFrame(t);

@@ -557,4 +557,4 @@ } else

Ae[t] = !0;
var s = "";
e && e._owner && e._owner !== ue.current && (s = " It was passed a child from " + j(e._owner.type) + "."), W(e), T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, s), W(null);
var i = "";
e && e._owner && e._owner !== ue.current && (i = " It was passed a child from " + j(e._owner.type) + "."), L(e), D('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, i), L(null);
}

@@ -568,4 +568,4 @@ }

for (var t = 0; t < e.length; t++) {
var s = e[t];
de(s) && Me(s, r);
var i = e[t];
de(i) && Me(i, r);
}

@@ -577,4 +577,4 @@ else if (de(e))

if (typeof h == "function" && h !== e.entries)
for (var E = h.call(e), u; !(u = E.next()).done; )
de(u.value) && Me(u.value, r);
for (var m = h.call(e), p; !(p = m.next()).done; )
de(p.value) && Me(p.value, r);
}

@@ -591,5 +591,5 @@ }

t = r.propTypes;
else if (typeof r == "object" && (r.$$typeof === p || // Note: Memo only checks outer props here.
else if (typeof r == "object" && (r.$$typeof === c || // Note: Memo only checks outer props here.
// Inner props are checked in the reconciler.
r.$$typeof === b))
r.$$typeof === f))
t = r.propTypes;

@@ -599,10 +599,10 @@ else

if (t) {
var s = j(r);
Xe(t, e.props, "prop", s, e);
var i = j(r);
Xe(t, e.props, "prop", i, e);
} else if (r.PropTypes !== void 0 && !ve) {
ve = !0;
var h = j(r);
T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", h || "Unknown");
D("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", h || "Unknown");
}
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && D("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
}

@@ -613,39 +613,39 @@ }

for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
var s = r[t];
if (s !== "children" && s !== "key") {
W(e), T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", s), W(null);
var i = r[t];
if (i !== "children" && i !== "key") {
L(e), D("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), L(null);
break;
}
}
e.ref !== null && (W(e), T("Invalid attribute `ref` supplied to `React.Fragment`."), W(null));
e.ref !== null && (L(e), D("Invalid attribute `ref` supplied to `React.Fragment`."), L(null));
}
}
function $e(e, r, t, s, h, E) {
function $e(e, r, t, i, h, m) {
{
var u = A(e);
if (!u) {
var c = "";
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (c += " 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 D = fr(h);
D ? c += D : c += Pe();
var p = N(e);
if (!p) {
var d = "";
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (d += " 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 w = fr(h);
w ? d += w : d += Pe();
var R;
e === null ? R = "null" : fe(e) ? R = "array" : e !== void 0 && e.$$typeof === l ? (R = "<" + (j(e.type) || "Unknown") + " />", c = " Did you accidentally export a JSX literal instead of a component?") : R = typeof e, T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, c);
e === null ? R = "null" : fe(e) ? R = "array" : e !== void 0 && e.$$typeof === l ? (R = "<" + (j(e.type) || "Unknown") + " />", d = " Did you accidentally export a JSX literal instead of a component?") : R = typeof e, D("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, d);
}
var x = sr(e, r, t, h, E);
var x = sr(e, r, t, h, m);
if (x == null)
return x;
if (u) {
if (p) {
var C = r.children;
if (C !== void 0)
if (s)
if (i)
if (fe(C)) {
for (var B = 0; B < C.length; B++)
Ie(C[B], e);
for (var V = 0; V < C.length; V++)
Ie(C[V], e);
Object.freeze && Object.freeze(C);
} else
T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
D("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
Ie(C, e);
}
return e === i ? vr(x) : ur(x), x;
return e === a ? vr(x) : ur(x), x;
}

@@ -660,11 +660,11 @@ }

var yr = pr, br = dr;
G.Fragment = i, G.jsx = yr, G.jsxs = br;
}()), G;
H.Fragment = a, H.jsx = yr, H.jsxs = br;
}()), H;
}
process.env.NODE_ENV === "production" ? pe.exports = Er() : pe.exports = _r();
var S = pe.exports;
function ye({ children: n, textColor: l, style: a, colSpan: i, ...v }) {
return /* @__PURE__ */ S.jsxs("td", { className: "calendar-label", style: a, colSpan: i, ...v, children: [
/* @__PURE__ */ S.jsx("span", { className: "sr-only", children: n }),
/* @__PURE__ */ S.jsx("span", { className: "calendar-label-text", "aria-hidden": "true", style: { color: l }, children: n })
var T = pe.exports;
function ye({ children: n, textColor: l, style: o, colSpan: a, ...y }) {
return /* @__PURE__ */ T.jsxs("td", { className: "calendar-label", style: o, colSpan: a, ...y, children: [
/* @__PURE__ */ T.jsx("span", { className: "sr-only", children: n }),
/* @__PURE__ */ T.jsx("span", { className: "calendar-label-text", "aria-hidden": "true", style: { color: l }, children: n })
] });

@@ -899,3 +899,3 @@ }

}
}, xr = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], Sr = (n = /* @__PURE__ */ new Date()) => {
}, xr = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], Tr = (n = /* @__PURE__ */ new Date()) => {
const l = {

@@ -909,3 +909,3 @@ Sun: "Sunday",

Sat: "Saturday"
}, a = {
}, o = {
Jan: "January",

@@ -923,143 +923,147 @@ Feb: "February",

Dec: "December"
}, i = n.toString().split(" ");
}, a = n.toString().split(" ");
return {
year: i[3],
month: a[i[1]],
day: parseInt(i[2], 10),
date: l[i[0]]
year: a[3],
month: o[a[1]],
day: parseInt(a[2], 10),
date: l[a[0]]
};
}, Tr = (n) => {
const l = Sr(new Date(n));
}, Sr = (n) => {
const l = Tr(new Date(n));
return `${l.date}, ${l.month} ${l.day}, ${l.year}`;
}, Be = (n, l, a) => `${n}-${String(l + 1).padStart(2, "0")}-${String(a).padStart(2, "0")}`, Dr = (n, l, a) => `${n}-${String(l).padStart(2, "0")}-${String(a).padStart(2, "0")}`, Y = (n) => +n.slice(0, 4), Le = (n) => +n.slice(5, 7), Yr = (n) => +n.slice(8, 10), wr = (n = L()) => n % 4 === 0 && n % 100 !== 0 || n % 400 === 0, be = (n = L()) => [31, wr(n) ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], re = (n = L()) => new Date(n, 0, 1).getDay(), Wr = (n) => new Date(n).getDay(), L = () => (/* @__PURE__ */ new Date()).getFullYear(), Br = (n = L(), l, a) => {
const i = be(n), v = re(n), g = [];
let o = v;
for (let d = 0; d < 12; d++) {
const p = i[d];
let y = 0;
for (let f = 0; f < p; f++)
o === 0 && y++, o = (o + 1) % 7;
d === 0 && v !== 0 && y++, g.push(y);
}, Be = (n, l, o) => `${n}-${String(l + 1).padStart(2, "0")}-${String(o).padStart(2, "0")}`, Dr = (n, l, o) => `${n}-${String(l).padStart(2, "0")}-${String(o).padStart(2, "0")}`, W = (n) => +n.slice(0, 4), Le = (n) => +n.slice(5, 7), Yr = (n) => +n.slice(8, 10), wr = (n = U()) => n % 4 === 0 && n % 100 !== 0 || n % 400 === 0, be = (n = U()) => [31, wr(n) ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], J = (n = U()) => new Date(n, 0, 1).getDay(), Wr = (n) => new Date(n).getDay(), U = () => (/* @__PURE__ */ new Date()).getFullYear(), Br = (n = U(), l, o) => {
const a = be(n), y = J(n), g = [];
let s = y;
for (let u = 0; u < 12; u++) {
const c = a[u];
let _ = 0;
for (let v = 0; v < c; v++)
s === 0 && _++, s = (s + 1) % 7;
u === 0 && y !== 0 && _++, g.push(_);
}
return n !== l && v !== 0 && l !== a && (g[0] -= 1), g;
return n !== l && y !== 0 && l !== o && (g[0] -= 1), g;
}, Fr = (n) => {
const l = /* @__PURE__ */ new Map();
return n.forEach((a) => {
Object.keys(a).forEach((i) => {
l.set(i, a[i]);
return n.forEach((o) => {
Object.keys(o).forEach((a) => {
l.set(a, o[a]);
});
}), l;
}, Cr = (n) => typeof n == "string" ? Rr[n] : n, Or = (n, l) => {
let a = 0;
for (let i = n; i <= l; ++i)
a += Je(n, i === n);
return new Array(7).fill(0).map(() => new Array(a).fill(0));
let o = 0;
for (let a = n; a <= l; ++a)
o += Je(n, a === n);
return new Array(7).fill(0).map(() => new Array(o).fill(0));
}, jr = (n, l) => {
let a = 0;
for (let i = n; i <= l; ++i)
a += Je(n, i === n);
return new Array(7).fill("").map(() => new Array(a).fill(""));
let o = 0;
for (let a = n; a <= l; ++a)
o += Je(n, a === n);
return new Array(7).fill("").map(() => new Array(o).fill(""));
}, Je = (n, l) => {
const a = re(n);
return l || a === 0 ? 53 : 52;
}, kr = (n, l) => {
const a = Y(n), i = Y(l), v = Or(a, i);
let g = 0, o = 1;
for (let d = a; d <= i; ++d) {
const p = re(d), y = be(d);
let f = 0, b = 1, _ = p;
const o = J(n);
return l || o === 0 ? 53 : 52;
}, kr = (n, l, o) => {
const a = W(n), y = W(l), g = Or(a, y);
let s = 0, u = 1;
for (let c = a; c <= y; ++c) {
const _ = o ? J(c) : (J(c) + 6) % 7, v = be(c);
let f = 0, E = 1, b = _;
for (; f < 12; ) {
for (let m = 0; m < y[f]; ++m)
v[_ % 7][~~(_ / 7) + g] = o, _++, b++, o++;
b > y[f] && (b = 1, f++);
for (let S = 0; S < v[f]; ++S)
g[b % 7][~~(b / 7) + s] = u, b++, E++, u++;
E > v[f] && (E = 1, f++);
}
g += ~~(_ / 7);
s += ~~(b / 7);
}
return v;
}, Ue = (n, l) => {
const a = Y(n), i = Y(l), v = jr(a, i);
let g = 0;
for (let o = a; o <= i; ++o) {
const d = re(o), p = be(o);
let y = 0, f = 1, b = d;
for (; y < 12; ) {
for (let _ = 0; _ < p[y]; ++_) {
const m = Dr(o, y + 1, f);
v[b % 7][~~(b / 7) + g] = m, b++, f++;
return g;
}, Ue = (n, l, o) => {
const a = W(n), y = W(l), g = jr(a, y);
let s = 0;
for (let u = a; u <= y; ++u) {
const c = o ? J(u) : (J(u) + 6) % 7, _ = be(u);
let v = 0, f = 1, E = c;
for (; v < 12; ) {
for (let b = 0; b < _[v]; ++b) {
const S = Dr(u, v + 1, f);
g[E % 7][~~(E / 7) + s] = S, E++, f++;
}
f > p[y] && (f = 1, y++);
f > _[v] && (f = 1, v++);
}
g += ~~(b / 7);
s += ~~(E / 7);
}
return v;
}, ee = (n, l) => {
const a = `${n}-01-01`, i = Pr(a, l), v = kr(a, l);
for (let g = 0; g < v.length; ++g)
for (let o = 0; o < v[g].length; ++o)
if (i === v[g][o])
return { row: g, col: o };
return g;
}, te = (n, l, o) => {
const a = `${n}-01-01`, y = Pr(a, l), g = kr(a, l, o);
for (let s = 0; s < g.length; ++s)
for (let u = 0; u < g[s].length; ++u)
if (y === g[s][u])
return { row: s, col: u };
return { row: 0, col: 0 };
}, Pr = (n, l) => {
const a = new Date(n);
return (new Date(l).getTime() - a.getTime()) / (1e3 * 60 * 60 * 24) + 1;
}, Ar = (n, l, a) => {
const { row: i, col: v } = ee(Y(n), n), { col: g } = ee(Y(n), l), o = [], d = [];
let p = -1, y = 0;
for (let f = v; f <= g; ++f)
f === v ? y = Le(a[i][f]) - 1 : y = Le(a[0][f]) - 1, y !== p && (o.push(xr[y]), p = y, d.push(0)), d[d.length - 1]++;
return { months: o, colSpans: d };
const o = new Date(n);
return (new Date(l).getTime() - o.getTime()) / (1e3 * 60 * 60 * 24) + 1;
}, Ar = (n, l, o, a) => {
const { row: y, col: g } = te(
W(n),
n,
a
), { col: s } = te(W(n), l, a), u = [], c = [];
let _ = -1, v = 0;
for (let f = g; f <= s; ++f)
f === g ? v = Le(o[y][f]) - 1 : v = Le(o[0][f]) - 1, v !== _ && (u.push(xr[v]), _ = v, c.push(0)), c[c.length - 1]++;
return { months: u, colSpans: c };
};
function Mr({ start: n, end: l, textColor: a }) {
const i = Ue(n, l), { months: v, colSpans: g } = Ar(n, l, i);
return /* @__PURE__ */ S.jsx("thead", { children: /* @__PURE__ */ S.jsxs("tr", { children: [
/* @__PURE__ */ S.jsx(ye, { textColor: a, style: { width: "3.5em" }, colSpan: 1, children: " " }),
v.map((o, d) => /* @__PURE__ */ S.jsx(ye, { textColor: a, colSpan: g[d], children: o }, d))
function Mr({ start: n, end: l, textColor: o, startsOnSunday: a }) {
const y = Ue(n, l, a), { months: g, colSpans: s } = Ar(n, l, y, a);
return /* @__PURE__ */ T.jsx("thead", { children: /* @__PURE__ */ T.jsxs("tr", { children: [
/* @__PURE__ */ T.jsx(ye, { textColor: o, style: { width: "3.5em" }, colSpan: 1, children: " " }),
g.map((u, c) => /* @__PURE__ */ T.jsx(ye, { textColor: o, colSpan: s[c], children: u }, c))
] }) });
}
function Ir({ themeProps: n, dataLevel: l, style: a, children: i, dataTooltip: v, ...g }) {
const o = hr(null), [d, p] = gr(-10), y = (b) => {
if (!b)
function Ir({ themeProps: n, dataLevel: l, style: o, children: a, dataTooltip: y, ...g }) {
const s = hr(null), [u, c] = gr(-10), _ = (f) => {
if (!f)
return 0;
let _ = 0;
return b.childNodes.forEach((m) => {
m.nodeType === Node.ELEMENT_NODE && window.getComputedStyle(m).display !== "none" && _++;
}), _;
}, f = (b) => {
if (!b || !b.parentNode)
let E = 0;
return f.childNodes.forEach((b) => {
b.nodeType === Node.ELEMENT_NODE && window.getComputedStyle(b).display !== "none" && E++;
}), E;
}, v = (f) => {
if (!f || !f.parentNode)
return -1;
const _ = Array.from(b.parentNode.childNodes);
let m = 0;
for (let w = 0; w < b.cellIndex; w++)
_[w].style.display !== "none" && m++;
return m;
const E = Array.from(f.parentNode.childNodes);
let b = 0;
for (let S = 0; S < f.cellIndex; S++)
E[S].style.display !== "none" && b++;
return b;
};
return mr(() => {
const b = () => {
var _;
if (o.current) {
const m = y((_ = o.current) == null ? void 0 : _.parentNode), w = f(o.current);
if (m) {
const f = () => {
var E;
if (s.current) {
const b = _((E = s.current) == null ? void 0 : E.parentNode), S = v(s.current);
if (b) {
let F = -10;
const k = w / m;
k > 0.9 ? F = Math.max(~~(o.current.cellIndex * -150) / m, -160) : k > 0.8 ? F = Math.max(~~(o.current.cellIndex * -130) / m, -130) : k > 0.66 ? F = Math.max(~~(o.current.cellIndex * -110) / m, -120) : k > 0.5 ? F = Math.max(~~(o.current.cellIndex * -90) / m, -110) : k > 0.33 ? F = Math.max(~~(o.current.cellIndex * -40) / m, -90) : k > 0.2 ? F = Math.min(~~(o.current.cellIndex * -15) / m, -40) : F = Math.min(~~(o.current.cellIndex * -7) / m, -10), p(F);
const k = S / b;
k > 0.9 ? F = Math.max(~~(s.current.cellIndex * -140) / b, -160) : k > 0.8 ? F = Math.max(~~(s.current.cellIndex * -130) / b, -130) : k > 0.66 ? F = Math.max(~~(s.current.cellIndex * -110) / b, -120) : k > 0.5 ? F = Math.max(~~(s.current.cellIndex * -90) / b, -110) : k > 0.33 ? F = Math.max(~~(s.current.cellIndex * -40) / b, -90) : k > 0.2 ? F = Math.min(~~(s.current.cellIndex * -15) / b, -40) : F = Math.min(~~(s.current.cellIndex * -7) / b, -10), c(F);
}
}
};
return o.current && o.current.addEventListener("mouseover", b), () => {
o.current && o.current.removeEventListener("mouseover", b);
return s.current && s.current.addEventListener("mouseover", f), () => {
s.current && s.current.removeEventListener("mouseover", f);
};
}, []), /* @__PURE__ */ S.jsx(
}, []), /* @__PURE__ */ T.jsx(
"td",
{
ref: o,
ref: s,
className: "calendar-cell top half-arrow",
style: {
...a,
...o,
backgroundColor: n[`level${l}`],
"--tooltip-offset": `${d}px`
"--tooltip-offset": `${u}px`
},
"data-tooltip": v,
"data-tooltip": y,
"data-level": l,
...g,
children: /* @__PURE__ */ S.jsx("span", { className: "sr-only", children: i })
children: /* @__PURE__ */ T.jsx("span", { className: "sr-only", children: a })
}

@@ -1071,19 +1075,20 @@ );

start: l,
end: a,
textColor: i,
theme: v,
end: o,
textColor: a,
startsOnSunday: y,
includeBoundary: g,
cx: o,
cy: d,
cr: p,
onClick: y
cx: s,
cy: u,
cr: c,
theme: _,
onClick: v
}) {
const f = Y(l), { row: b, col: _ } = ee(f, l), { row: m, col: w } = ee(f, a), F = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], k = Ue(l, a), T = ((P) => Cr(P))(v), te = Fr(n), ne = (P, O) => O < _ || O > w, le = (P, O) => O === _ && P < b || O === w && P > m;
return /* @__PURE__ */ S.jsx("tbody", { children: F.map((P, O) => /* @__PURE__ */ S.jsxs("tr", { children: [
/* @__PURE__ */ S.jsx(ye, { tabIndex: 0, textColor: i, style: { textAlign: "inherit" }, children: P }),
k[O].map((V, $) => {
if (ne(O, $))
return /* @__PURE__ */ S.jsx("td", { style: { padding: "0", display: "none" } }, $);
if (le(O, $))
return /* @__PURE__ */ S.jsx(
const f = W(l), { row: E, col: b } = te(f, l, y), { row: S, col: F } = te(f, o, y), k = y ? ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"] : ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], $ = Ue(l, o, y), z = ((P) => Cr(P))(_), ne = Fr(n), le = (P, O) => O < b || O > F, ae = (P, O) => O === b && P < E || O === F && P > S;
return /* @__PURE__ */ T.jsx("tbody", { children: k.map((P, O) => /* @__PURE__ */ T.jsxs("tr", { children: [
/* @__PURE__ */ T.jsx(ye, { tabIndex: 0, textColor: a, style: { textAlign: "inherit" }, children: P }),
$[O].map((B, N) => {
if (le(O, N))
return /* @__PURE__ */ T.jsx("td", { style: { padding: "0", display: "none" } }, N);
if (ae(O, N))
return /* @__PURE__ */ T.jsx(
"td",

@@ -1093,4 +1098,4 @@ {

padding: 0,
outline: g ? `1px solid ${T.level0}` : "none",
borderRadius: p,
outline: g ? `1px solid ${z.level0}` : "none",
borderRadius: c,
outlineOffset: "-1px",

@@ -1100,23 +1105,23 @@ shapeRendering: "geometricPrecision"

},
$
N
);
const A = te.get(V), ae = Tr(V), H = (j) => {
const M = {
date: V,
const A = ne.get(B), K = Sr(B), j = (M) => {
const Y = {
date: B,
data: A == null ? void 0 : A.data
};
y && y(j, M);
v && v(M, Y);
};
return /* @__PURE__ */ S.jsx(
return /* @__PURE__ */ T.jsx(
Ir,
{
tabIndex: -1,
style: { width: o, height: d, borderRadius: p },
style: { width: s, height: u, borderRadius: c },
dataLevel: A !== void 0 ? A.level : 0,
"data-content": JSON.stringify(A == null ? void 0 : A.data),
dataTooltip: ae,
themeProps: T,
onClick: H
dataTooltip: K,
themeProps: z,
onClick: j
},
$
N
);

@@ -1128,29 +1133,31 @@ })

data: n = [],
textColor: l = "#000",
theme: a = "grass",
start: i = Be(L(), 0, 1),
end: v = Be(L(), 11, 31),
start: l = Be(U(), 0, 1),
end: o = Be(U(), 11, 31),
textColor: a = "#000",
startsOnSunday: y = !0,
includeBoundary: g = !0,
cx: o = 10,
cy: d = 10,
cr: p = 2,
onCellClick: y = () => {
cx: s = 10,
cy: u = 10,
cr: c = 2,
theme: _ = "grass",
onCellClick: v = () => {
},
style: f
}) {
return /* @__PURE__ */ S.jsx("div", { className: "container", style: f, children: /* @__PURE__ */ S.jsxs("table", { children: [
/* @__PURE__ */ S.jsx(Mr, { textColor: l, start: i, end: v }),
/* @__PURE__ */ S.jsx(
return /* @__PURE__ */ T.jsx("div", { className: "container", style: f, children: /* @__PURE__ */ T.jsxs("table", { children: [
/* @__PURE__ */ T.jsx(Mr, { start: l, end: o, textColor: a, startsOnSunday: y }),
/* @__PURE__ */ T.jsx(
$r,
{
data: n,
textColor: l,
theme: a,
start: i,
end: v,
start: l,
end: o,
textColor: a,
startsOnSunday: y,
includeBoundary: g,
cx: o,
cy: d,
cr: p,
onClick: y
cx: s,
cy: u,
cr: c,
theme: _,
onClick: v
}

@@ -1164,12 +1171,12 @@ )

Br as getColumnSpansForYears,
L as getCurrentYear,
Sr as getDateDetails,
U as getCurrentYear,
Tr as getDateDetails,
Be as getDateString,
Tr as getDateTooltip,
Sr as getDateTooltip,
Ue as getDayArray,
Wr as getDayIndexOfMonth,
Pr as getDaysBetween,
re as getFirstDayIndexOfYear,
J as getFirstDayIndexOfYear,
Ar as getMonthsAndColSpans,
ee as getRowAndColumnIndexFromDate,
te as getRowAndColumnIndexFromDate,
wr as isLeapYear,

@@ -1179,3 +1186,3 @@ Yr as parseDayFromDateString,

Le as parseMonthFromDateString,
Y as parseYearFromDateString
W as parseYearFromDateString
};

@@ -1,2 +0,2 @@

// Type definitions for react-contribution-calendar 1.2.0
// Type definitions for react-contribution-calendar 1.2.1
// Project: https://github.com/seiwon-yaehee/react-contribution-calendar

@@ -40,2 +40,7 @@ // Definitions by: Seiwon Park <https://github.com/SeiwonPark>

/**
* Whether to set calendar start on Sunday or not, defaults to `true`.
* If set to false, the week will start on Monday.
*/
startsOnSunday?: boolean
/**
* Whether to include the boundary column or not, defaults to `true`.

@@ -68,6 +73,6 @@ */

/**
* `ContributionCalendar` is a React component that renders data contributions over time,
* `ContributionCalendar` is a React component that renders data contributions over time,
* similar to the contribution graph seen on GitHub profiles.
*
* This calendar displays data in cells, with varying color intensities based on the value
* This calendar displays data in cells, with varying color intensities based on the value
* of each data point. The appearance and behavior of the calendar can be customized using

@@ -107,3 +112,3 @@ * the provided props.

*
* @version 1.2.0
* @version 1.2.1
* @see {@link https://github.com/seiwon-yaehee/react-contribution-calendar#apis}

@@ -110,0 +115,0 @@ */

{
"name": "react-contribution-calendar",
"description": "A GitHub-like contribution calendar component for React",
"version": "1.2.0",
"version": "1.2.1",
"type": "module",

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

@@ -63,2 +63,3 @@ # react-contribution-calendar

textColor="#000000"
startsOnSunday={true}
includeBoundary={true}

@@ -105,3 +106,4 @@ theme="grass"

- **`textColor`**: Optional. The color of indexes. String color code format.
- **`includeBoundary`**: Optional. Whethere to include the boundary cells in the starting or ending date column, defaults to `true`.
- **`startsOnSunday`**: Optional. Whether to start the calendar on Sunday or not, defaults to `true`. If set to false, calendar will start on Monday.
- **`includeBoundary`**: Optional. Whether to include the boundary cells in the starting or ending date column, defaults to `true`.
- **`theme`**: Optional. A string that represents a predefined theme name, or an object with custom theme colors. Defaults to `grass`.

@@ -108,0 +110,0 @@ - **`cx`**: Optional. The pixel size of width of each cell, defaults to `10`.

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