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.3.5 to 1.4.0

1194

dist/index.js
import './styles/style.css';
import qe, { useRef as Rr, useState as Tr, useEffect as Sr } from "react";
var De = { exports: {} }, z = {};
/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var Ve;
function wr() {
if (Ve)
return z;
Ve = 1;
var r = qe, n = Symbol.for("react.element"), i = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, d = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, v = { key: !0, ref: !0, __self: !0, __source: !0 };
function p(s, o, g) {
var c, u = {}, _ = null, T = null;
g !== void 0 && (_ = "" + g), o.key !== void 0 && (_ = "" + o.key), o.ref !== void 0 && (T = o.ref);
for (c in o)
a.call(o, c) && !v.hasOwnProperty(c) && (u[c] = o[c]);
if (s && s.defaultProps)
for (c in o = s.defaultProps, o)
u[c] === void 0 && (u[c] = o[c]);
return { $$typeof: n, type: s, key: _, ref: T, props: u, _owner: d.current };
}
return z.Fragment = i, z.jsx = p, z.jsxs = p, z;
import { jsx as u, jsxs as N } from "react/jsx-runtime";
import { useRef as le, useState as te, useEffect as ne } from "react";
function B({ children: e, textColor: l, style: n, colSpan: t, hide: a, ...s }) {
return /* @__PURE__ */ u("td", { className: "calendar-label", style: n, colSpan: t, ...s, children: a ? void 0 : /* @__PURE__ */ u("span", { className: "calendar-label-text", "aria-hidden": "true", style: { color: l }, children: e }) });
}
var q = {};
/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var Be;
function xr() {
return Be || (Be = 1, process.env.NODE_ENV !== "production" && function() {
var r = qe, n = Symbol.for("react.element"), i = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), d = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), p = Symbol.for("react.provider"), s = Symbol.for("react.context"), o = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), y = Symbol.iterator, S = "@@iterator";
function C(e) {
if (e === null || typeof e != "object")
return null;
var t = y && e[y] || e[S];
return typeof t == "function" ? t : null;
}
var O = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function R(e) {
{
for (var t = arguments.length, l = new Array(t > 1 ? t - 1 : 0), f = 1; f < t; f++)
l[f - 1] = arguments[f];
J("error", e, l);
}
}
function J(e, t, l) {
{
var f = O.ReactDebugCurrentFrame, m = f.getStackAddendum();
m !== "" && (t += "%s", l = l.concat([m]));
var D = l.map(function(b) {
return String(b);
});
D.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, D);
}
}
var G = !1, K = !1, ue = !1, de = !1, ve = !1, X;
X = Symbol.for("react.module.reference");
function I(e) {
return !!(typeof e == "string" || typeof e == "function" || e === a || e === v || ve || e === d || e === g || e === c || de || e === T || G || K || ue || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === u || e.$$typeof === p || e.$$typeof === s || e.$$typeof === o || // 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 === X || e.getModuleId !== void 0));
}
function Se(e, t, l) {
var f = e.displayName;
if (f)
return f;
var m = t.displayName || t.name || "";
return m !== "" ? l + "(" + m + ")" : l;
}
function Z(e) {
return e.displayName || "Context";
}
function w(e) {
if (e == null)
return null;
if (typeof e.tag == "number" && R("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;
if (typeof e == "string")
return e;
switch (e) {
case a:
return "Fragment";
case i:
return "Portal";
case v:
return "Profiler";
case d:
return "StrictMode";
case g:
return "Suspense";
case c:
return "SuspenseList";
}
if (typeof e == "object")
switch (e.$$typeof) {
case s:
var t = e;
return Z(t) + ".Consumer";
case p:
var l = e;
return Z(l._context) + ".Provider";
case o:
return Se(e, e.render, "ForwardRef");
case u:
var f = e.displayName || null;
return f !== null ? f : w(e.type) || "Memo";
case _: {
var m = e, D = m._payload, b = m._init;
try {
return w(b(D));
} catch {
return null;
}
}
}
return null;
}
var x = Object.assign, M = 0, P, $, Q, ee, re, te, we;
function xe() {
}
xe.__reactDisabledLog = !0;
function Ze() {
{
if (M === 0) {
P = console.log, $ = console.info, Q = console.warn, ee = console.error, re = console.group, te = console.groupCollapsed, we = console.groupEnd;
var e = {
configurable: !0,
enumerable: !0,
value: xe,
writable: !0
};
Object.defineProperties(console, {
info: e,
log: e,
warn: e,
error: e,
group: e,
groupCollapsed: e,
groupEnd: e
});
}
M++;
}
}
function Qe() {
{
if (M--, M === 0) {
var e = {
configurable: !0,
enumerable: !0,
writable: !0
};
Object.defineProperties(console, {
log: x({}, e, {
value: P
}),
info: x({}, e, {
value: $
}),
warn: x({}, e, {
value: Q
}),
error: x({}, e, {
value: ee
}),
group: x({}, e, {
value: re
}),
groupCollapsed: x({}, e, {
value: te
}),
groupEnd: x({}, e, {
value: we
})
});
}
M < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
}
var pe = O.ReactCurrentDispatcher, he;
function ne(e, t, l) {
{
if (he === void 0)
try {
throw Error();
} catch (m) {
var f = m.stack.trim().match(/\n( *(at )?)/);
he = f && f[1] || "";
}
return `
` + he + e;
}
}
var ye = !1, le;
{
var er = typeof WeakMap == "function" ? WeakMap : Map;
le = new er();
}
function Fe(e, t) {
if (!e || ye)
return "";
{
var l = le.get(e);
if (l !== void 0)
return l;
}
var f;
ye = !0;
var m = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var D;
D = pe.current, pe.current = null, Ze();
try {
if (t) {
var b = function() {
throw Error();
};
if (Object.defineProperty(b.prototype, "props", {
set: function() {
throw Error();
}
}), typeof Reflect == "object" && Reflect.construct) {
try {
Reflect.construct(b, []);
} catch (N) {
f = N;
}
Reflect.construct(e, [], b);
} else {
try {
b.call();
} catch (N) {
f = N;
}
e.call(b.prototype);
}
} else {
try {
throw Error();
} catch (N) {
f = N;
}
e();
}
} catch (N) {
if (N && f && typeof N.stack == "string") {
for (var h = N.stack.split(`
`), k = f.stack.split(`
`), F = h.length - 1, j = k.length - 1; F >= 1 && j >= 0 && h[F] !== k[j]; )
j--;
for (; F >= 1 && j >= 0; F--, j--)
if (h[F] !== k[j]) {
if (F !== 1 || j !== 1)
do
if (F--, j--, j < 0 || h[F] !== k[j]) {
var A = `
` + h[F].replace(" at new ", " at ");
return e.displayName && A.includes("<anonymous>") && (A = A.replace("<anonymous>", e.displayName)), typeof e == "function" && le.set(e, A), A;
}
while (F >= 1 && j >= 0);
break;
}
}
} finally {
ye = !1, pe.current = D, Qe(), Error.prepareStackTrace = m;
}
var W = e ? e.displayName || e.name : "", Le = W ? ne(W) : "";
return typeof e == "function" && le.set(e, Le), Le;
}
function rr(e, t, l) {
return Fe(e, !1);
}
function tr(e) {
var t = e.prototype;
return !!(t && t.isReactComponent);
}
function ae(e, t, l) {
if (e == null)
return "";
if (typeof e == "function")
return Fe(e, tr(e));
if (typeof e == "string")
return ne(e);
switch (e) {
case g:
return ne("Suspense");
case c:
return ne("SuspenseList");
}
if (typeof e == "object")
switch (e.$$typeof) {
case o:
return rr(e.render);
case u:
return ae(e.type, t, l);
case _: {
var f = e, m = f._payload, D = f._init;
try {
return ae(D(m), t, l);
} catch {
}
}
}
return "";
}
var oe = Object.prototype.hasOwnProperty, je = {}, Ce = O.ReactDebugCurrentFrame;
function ie(e) {
if (e) {
var t = e._owner, l = ae(e.type, e._source, t ? t.type : null);
Ce.setExtraStackFrame(l);
} else
Ce.setExtraStackFrame(null);
}
function nr(e, t, l, f, m) {
{
var D = Function.call.bind(oe);
for (var b in e)
if (D(e, b)) {
var h = void 0;
try {
if (typeof e[b] != "function") {
var k = Error((f || "React class") + ": " + l + " type `" + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[b] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw k.name = "Invariant Violation", k;
}
h = e[b](t, b, f, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (F) {
h = F;
}
h && !(h instanceof Error) && (ie(m), R("%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).", f || "React class", l, b, typeof h), ie(null)), h instanceof Error && !(h.message in je) && (je[h.message] = !0, ie(m), R("Failed %s type: %s", l, h.message), ie(null));
}
}
}
var lr = Array.isArray;
function ge(e) {
return lr(e);
}
function ar(e) {
{
var t = typeof Symbol == "function" && Symbol.toStringTag, l = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
return l;
}
}
function or(e) {
try {
return Oe(e), !1;
} catch {
return !0;
}
}
function Oe(e) {
return "" + e;
}
function ke(e) {
if (or(e))
return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ar(e)), Oe(e);
}
var U = O.ReactCurrentOwner, ir = {
key: !0,
ref: !0,
__self: !0,
__source: !0
}, Pe, Ae, be;
be = {};
function sr(e) {
if (oe.call(e, "ref")) {
var t = Object.getOwnPropertyDescriptor(e, "ref").get;
if (t && t.isReactWarning)
return !1;
}
return e.ref !== void 0;
}
function fr(e) {
if (oe.call(e, "key")) {
var t = Object.getOwnPropertyDescriptor(e, "key").get;
if (t && t.isReactWarning)
return !1;
}
return e.key !== void 0;
}
function cr(e, t) {
if (typeof e.ref == "string" && U.current && t && U.current.stateNode !== t) {
var l = w(U.current.type);
be[l] || (R('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', w(U.current.type), e.ref), be[l] = !0);
}
}
function ur(e, t) {
{
var l = function() {
Pe || (Pe = !0, R("%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)", t));
};
l.isReactWarning = !0, Object.defineProperty(e, "key", {
get: l,
configurable: !0
});
}
}
function dr(e, t) {
{
var l = function() {
Ae || (Ae = !0, R("%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)", t));
};
l.isReactWarning = !0, Object.defineProperty(e, "ref", {
get: l,
configurable: !0
});
}
}
var vr = function(e, t, l, f, m, D, b) {
var h = {
// This tag allows us to uniquely identify this as a React Element
$$typeof: n,
// Built-in properties that belong on the element
type: e,
key: t,
ref: l,
props: b,
// Record the component responsible for creating this element.
_owner: D
};
return h._store = {}, Object.defineProperty(h._store, "validated", {
configurable: !1,
enumerable: !1,
writable: !0,
value: !1
}), Object.defineProperty(h, "_self", {
configurable: !1,
enumerable: !1,
writable: !1,
value: f
}), Object.defineProperty(h, "_source", {
configurable: !1,
enumerable: !1,
writable: !1,
value: m
}), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
};
function pr(e, t, l, f, m) {
{
var D, b = {}, h = null, k = null;
l !== void 0 && (ke(l), h = "" + l), fr(t) && (ke(t.key), h = "" + t.key), sr(t) && (k = t.ref, cr(t, m));
for (D in t)
oe.call(t, D) && !ir.hasOwnProperty(D) && (b[D] = t[D]);
if (e && e.defaultProps) {
var F = e.defaultProps;
for (D in F)
b[D] === void 0 && (b[D] = F[D]);
}
if (h || k) {
var j = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
h && ur(b, j), k && dr(b, j);
}
return vr(e, h, k, m, f, U.current, b);
}
}
var me = O.ReactCurrentOwner, $e = O.ReactDebugCurrentFrame;
function Y(e) {
if (e) {
var t = e._owner, l = ae(e.type, e._source, t ? t.type : null);
$e.setExtraStackFrame(l);
} else
$e.setExtraStackFrame(null);
}
var Ee;
Ee = !1;
function _e(e) {
return typeof e == "object" && e !== null && e.$$typeof === n;
}
function Me() {
{
if (me.current) {
var e = w(me.current.type);
if (e)
return `
Check the render method of \`` + e + "`.";
}
return "";
}
}
function hr(e) {
{
if (e !== void 0) {
var t = e.fileName.replace(/^.*[\\\/]/, ""), l = e.lineNumber;
return `
Check your code at ` + t + ":" + l + ".";
}
return "";
}
}
var Ne = {};
function yr(e) {
{
var t = Me();
if (!t) {
var l = typeof e == "string" ? e : e.displayName || e.name;
l && (t = `
Check the top-level render call using <` + l + ">.");
}
return t;
}
}
function Ie(e, t) {
{
if (!e._store || e._store.validated || e.key != null)
return;
e._store.validated = !0;
var l = yr(t);
if (Ne[l])
return;
Ne[l] = !0;
var f = "";
e && e._owner && e._owner !== me.current && (f = " It was passed a child from " + w(e._owner.type) + "."), Y(e), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', l, f), Y(null);
}
}
function Ye(e, t) {
{
if (typeof e != "object")
return;
if (ge(e))
for (var l = 0; l < e.length; l++) {
var f = e[l];
_e(f) && Ie(f, t);
}
else if (_e(e))
e._store && (e._store.validated = !0);
else if (e) {
var m = C(e);
if (typeof m == "function" && m !== e.entries)
for (var D = m.call(e), b; !(b = D.next()).done; )
_e(b.value) && Ie(b.value, t);
}
}
}
function gr(e) {
{
var t = e.type;
if (t == null || typeof t == "string")
return;
var l;
if (typeof t == "function")
l = t.propTypes;
else if (typeof t == "object" && (t.$$typeof === o || // Note: Memo only checks outer props here.
// Inner props are checked in the reconciler.
t.$$typeof === u))
l = t.propTypes;
else
return;
if (l) {
var f = w(t);
nr(l, e.props, "prop", f, e);
} else if (t.PropTypes !== void 0 && !Ee) {
Ee = !0;
var m = w(t);
R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", m || "Unknown");
}
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
}
}
function br(e) {
{
for (var t = Object.keys(e.props), l = 0; l < t.length; l++) {
var f = t[l];
if (f !== "children" && f !== "key") {
Y(e), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", f), Y(null);
break;
}
}
e.ref !== null && (Y(e), R("Invalid attribute `ref` supplied to `React.Fragment`."), Y(null));
}
}
function We(e, t, l, f, m, D) {
{
var b = I(e);
if (!b) {
var h = "";
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (h += " 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 k = hr(m);
k ? h += k : h += Me();
var F;
e === null ? F = "null" : ge(e) ? F = "array" : e !== void 0 && e.$$typeof === n ? (F = "<" + (w(e.type) || "Unknown") + " />", h = " Did you accidentally export a JSX literal instead of a component?") : F = typeof e, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", F, h);
}
var j = pr(e, t, l, m, D);
if (j == null)
return j;
if (b) {
var A = t.children;
if (A !== void 0)
if (f)
if (ge(A)) {
for (var W = 0; W < A.length; W++)
Ye(A[W], e);
Object.freeze && Object.freeze(A);
} else
R("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
Ye(A, e);
}
return e === a ? br(j) : gr(j), j;
}
}
function mr(e, t, l) {
return We(e, t, l, !0);
}
function Er(e, t, l) {
return We(e, t, l, !1);
}
var _r = Er, Dr = mr;
q.Fragment = a, q.jsx = _r, q.jsxs = Dr;
}()), q;
}
process.env.NODE_ENV === "production" ? De.exports = wr() : De.exports = xr();
var E = De.exports;
function Re({ children: r, textColor: n, style: i, colSpan: a, hide: d, ...v }) {
return /* @__PURE__ */ E.jsx("td", { className: "calendar-label", style: i, colSpan: a, ...v, children: d ? void 0 : /* @__PURE__ */ E.jsx("span", { className: "calendar-label-text", "aria-hidden": "true", style: { color: n }, children: r }) });
}
const Fr = {
const re = {
// light themes

@@ -874,4 +248,4 @@ empty: {

}
}, jr = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], Cr = (r = /* @__PURE__ */ new Date()) => {
const n = {
}, oe = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], ae = (e = /* @__PURE__ */ new Date()) => {
const l = {
Sun: "Sunday",

@@ -884,3 +258,3 @@ Mon: "Monday",

Sat: "Saturday"
}, i = {
}, n = {
Jan: "January",

@@ -898,109 +272,109 @@ Feb: "February",

Dec: "December"
}, a = r.toString().split(" ");
}, t = e.toString().split(" ");
return {
year: a[3],
month: i[a[1]],
day: parseInt(a[2], 10),
date: n[a[0]]
year: t[3],
month: n[t[1]],
day: parseInt(t[2], 10),
date: l[t[0]]
};
}, qr = (r) => r.reduce((n, i) => n + i, 0), Or = (r) => {
const n = Cr(new Date(r));
return `${n.date}, ${n.month} ${n.day}, ${n.year}`;
}, Je = (r, n, i) => `${r}-${String(n + 1).padStart(2, "0")}-${String(i).padStart(2, "0")}`, kr = (r, n, i) => `${r}-${String(n).padStart(2, "0")}-${String(i).padStart(2, "0")}`, se = (r) => ({ year: +r.slice(0, 4), month: +r.slice(5, 7), day: +r.slice(8, 10) }), L = (r) => +r.slice(0, 4), Ue = (r) => +r.slice(5, 7), Hr = (r) => +r.slice(8, 10), Pr = (r = B()) => r % 4 === 0 && r % 100 !== 0 || r % 400 === 0, Te = (r = B()) => [31, Pr(r) ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Ar = (r) => new Date(r).getDay(), V = (r = B()) => new Date(r, 0, 1).getDay(), Gr = (r) => new Date(r).getDay(), B = () => (/* @__PURE__ */ new Date()).getFullYear(), Kr = (r = B(), n, i) => {
const a = Te(r), d = V(r), v = [];
let p = d;
for (let s = 0; s < 12; s++) {
const o = a[s];
let g = 0;
for (let c = 0; c < o; c++)
p === 0 && g++, p = (p + 1) % 7;
s === 0 && d !== 0 && g++, v.push(g);
}, Te = (e) => e.reduce((l, n) => l + n, 0), se = (e) => {
const l = ae(new Date(e));
return `${l.date}, ${l.month} ${l.day}, ${l.year}`;
}, J = (e, l, n) => `${e}-${String(l + 1).padStart(2, "0")}-${String(n).padStart(2, "0")}`, ie = (e, l, n) => `${e}-${String(l).padStart(2, "0")}-${String(n).padStart(2, "0")}`, _ = (e) => ({ year: +e.slice(0, 4), month: +e.slice(5, 7), day: +e.slice(8, 10) }), M = (e) => +e.slice(0, 4), z = (e) => +e.slice(5, 7), Ee = (e) => +e.slice(8, 10), ce = (e = E()) => e % 4 === 0 && e % 100 !== 0 || e % 400 === 0, Y = (e = E()) => [31, ce(e) ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], fe = (e) => new Date(e).getDay(), T = (e = E()) => new Date(e, 0, 1).getDay(), Ne = (e) => new Date(e).getDay(), E = () => (/* @__PURE__ */ new Date()).getFullYear(), ke = (e = E(), l, n) => {
const t = Y(e), a = T(e), s = [];
let i = a;
for (let o = 0; o < 12; o++) {
const r = t[o];
let v = 0;
for (let d = 0; d < r; d++)
i === 0 && v++, i = (i + 1) % 7;
o === 0 && a !== 0 && v++, s.push(v);
}
return r !== n && d !== 0 && n !== i && (v[0] -= 1), v;
}, $r = (r) => {
const n = /* @__PURE__ */ new Map();
return r.forEach((i) => {
Object.keys(i).forEach((a) => {
n.set(a, i[a]);
return e !== l && a !== 0 && l !== n && (s[0] -= 1), s;
}, de = (e) => {
const l = /* @__PURE__ */ new Map();
return e.forEach((n) => {
Object.keys(n).forEach((t) => {
l.set(t, n[t]);
});
}), n;
}, He = (r) => typeof r == "string" ? Fr[r] : r, Mr = (r, n) => {
let i = 0;
for (let a = r; a <= n; ++a)
i += Ge(r, a === r);
return new Array(7).fill(0).map(() => new Array(i).fill(0));
}, Nr = (r, n) => {
let i = 0;
for (let a = r; a <= n; ++a)
i += Ge(r, a === r);
return new Array(7).fill("").map(() => new Array(i).fill(""));
}, Ge = (r, n) => {
const i = V(r);
return n || i === 0 ? 53 : 52;
}, Ir = (r, n, i) => {
const a = L(r), d = L(n), v = Mr(a, d);
let p = 0, s = 1;
for (let o = a; o <= d; ++o) {
const g = i ? V(o) : (V(o) + 6) % 7, c = Te(o);
let u = 0, _ = 1, T = g;
for (; u < 12; ) {
for (let y = 0; y < c[u]; ++y)
v[T % 7][~~(T / 7) + p] = s, T++, _++, s++;
_ > c[u] && (_ = 1, u++);
}), l;
}, L = (e) => typeof e == "string" ? re[e] : e, ve = (e, l) => {
let n = 0;
for (let t = e; t <= l; ++t)
n += V(e, t === e);
return new Array(7).fill(0).map(() => new Array(n).fill(0));
}, ue = (e, l) => {
let n = 0;
for (let t = e; t <= l; ++t)
n += V(e, t === e);
return new Array(7).fill("").map(() => new Array(n).fill(""));
}, V = (e, l) => {
const n = T(e);
return l || n === 0 ? 53 : 52;
}, he = (e, l, n) => {
const t = M(e), a = M(l), s = ve(t, a);
let i = 0, o = 1;
for (let r = t; r <= a; ++r) {
const v = n ? T(r) : (T(r) + 6) % 7, d = Y(r);
let f = 0, y = 1, p = v;
for (; f < 12; ) {
for (let c = 0; c < d[f]; ++c)
s[p % 7][~~(p / 7) + i] = o, p++, y++, o++;
y > d[f] && (y = 1, f++);
}
p += ~~(T / 7);
i += ~~(p / 7);
}
return v;
}, Ke = (r, n, i) => {
const a = L(r), d = L(n), v = Nr(a, d);
let p = 0;
for (let s = a; s <= d; ++s) {
const o = i ? V(s) : (V(s) + 6) % 7, g = Te(s);
let c = 0, u = 1, _ = o;
for (; c < 12; ) {
for (let T = 0; T < g[c]; ++T) {
const y = kr(s, c + 1, u);
v[_ % 7][~~(_ / 7) + p] = y, _++, u++;
return s;
}, W = (e, l, n) => {
const t = M(e), a = M(l), s = ue(t, a);
let i = 0;
for (let o = t; o <= a; ++o) {
const r = n ? T(o) : (T(o) + 6) % 7, v = Y(o);
let d = 0, f = 1, y = r;
for (; d < 12; ) {
for (let p = 0; p < v[d]; ++p) {
const c = ie(o, d + 1, f);
s[y % 7][~~(y / 7) + i] = c, y++, f++;
}
u > g[c] && (u = 1, c++);
f > v[d] && (f = 1, d++);
}
p += ~~(_ / 7);
i += ~~(y / 7);
}
return v;
}, fe = (r, n, i) => {
const a = `${r}-01-01`, d = Yr(a, n), v = Ir(a, n, i);
for (let p = 0; p < v.length; ++p)
for (let s = 0; s < v[p].length; ++s)
if (d === v[p][s])
return { row: p, col: s };
return s;
}, A = (e, l, n) => {
const t = `${e}-01-01`, a = ye(t, l), s = he(t, l, n);
for (let i = 0; i < s.length; ++i)
for (let o = 0; o < s[i].length; ++o)
if (a === s[i][o])
return { row: i, col: o };
return { row: 0, col: 0 };
}, Yr = (r, n) => Math.abs(new Date(r).getTime() - new Date(n).getTime()) / (1e3 * 60 * 60 * 24) + 1, Xe = (r, n, i, a) => {
const { row: d, col: v } = fe(
L(r),
r,
a
), { col: p } = fe(L(r), n, a), s = [], o = [];
let g = -1, c = 0;
for (let u = v; u <= p; ++u)
u === v ? c = Ue(i[d][u]) - 1 : c = Ue(i[0][u]) - 1, c !== g && (s.push(jr[c]), g = c, o.push(0)), o[o.length - 1]++;
return { months: s, colSpans: o };
}, ye = (e, l) => Math.abs(new Date(e).getTime() - new Date(l).getTime()) / (1e3 * 60 * 60 * 24) + 1, H = (e, l, n, t) => {
const { row: a, col: s } = A(
M(e),
e,
t
), { col: i } = A(M(e), l, t), o = [], r = [];
let v = -1, d = 0;
for (let f = s; f <= i; ++f)
f === s ? d = z(n[a][f]) - 1 : d = z(n[0][f]) - 1, d !== v && (o.push(oe[d]), v = d, r.push(0)), r[r.length - 1]++;
return { months: o, colSpans: r };
};
function Wr({ start: r, end: n, textColor: i, startsOnSunday: a, cy: d }) {
const v = Ke(r, n, a), { day: p } = se(r), { year: s, month: o, day: g } = se(n), c = Ar(`${s}-${o}-01`), { months: u, colSpans: _ } = Xe(r, n, v, a);
return /* @__PURE__ */ E.jsx("thead", { children: /* @__PURE__ */ E.jsxs("tr", { children: [
/* @__PURE__ */ E.jsx(Re, { className: "day-of-the-week", textColor: i, style: { fontSize: d }, colSpan: 1, children: " " }),
u.map((T, y) => {
let S = _[y];
_.length === 1 && _[0] === 1 ? S++ : u.length > 1 && g < 14 && c !== 0 && y === u.length - 2 ? S-- : (u.length > 1 && g < 14 && c !== 0 && y === u.length - 1 || u.length > 1 && g < 14 && y === u.length - 1) && S++;
const C = y === 0 && u.length > 1 && S <= 1 && p >= 21;
return /* @__PURE__ */ E.jsx(
Re,
function pe({ start: e, end: l, textColor: n, startsOnSunday: t, cy: a }) {
const s = W(e, l, t), { day: i } = _(e), { year: o, month: r, day: v } = _(l), d = fe(`${o}-${r}-01`), { months: f, colSpans: y } = H(e, l, s, t);
return /* @__PURE__ */ u("thead", { children: /* @__PURE__ */ N("tr", { children: [
/* @__PURE__ */ u(B, { className: "day-of-the-week", textColor: n, style: { fontSize: a }, colSpan: 1, children: " " }),
f.map((p, c) => {
let h = y[c];
y.length === 1 && y[0] === 1 ? h++ : f.length > 1 && v < 14 && d !== 0 && c === f.length - 2 ? h-- : (f.length > 1 && v < 14 && d !== 0 && c === f.length - 1 || f.length > 1 && v < 14 && c === f.length - 1) && h++;
const g = c === 0 && f.length > 1 && h <= 1 && i >= 21;
return /* @__PURE__ */ u(
B,
{
textColor: i,
style: { fontSize: d },
colSpan: S,
hide: C,
children: T
textColor: n,
style: { fontSize: a },
colSpan: h,
hide: g,
children: p
},
y
c
);

@@ -1010,89 +384,89 @@ })

}
function Lr({
cx: r,
theme: n,
themeProps: i,
dataLevel: a,
style: d,
dataTooltip: v,
tooltipSize: p,
...s
function ge({
cx: e,
theme: l,
themeProps: n,
dataLevel: t,
style: a,
dataTooltip: s,
tooltipSize: i,
...o
}) {
const o = Rr(null), [g, c] = Tr(-10), u = (y) => {
if (!y)
const r = le(null), [v, d] = te(-10), f = (c) => {
if (!c)
return 0;
let S = 0;
return y.childNodes.forEach((C) => {
C.nodeType === Node.ELEMENT_NODE && window.getComputedStyle(C).display !== "none" && S++;
}), S;
}, _ = (y) => {
if (!y || !y.parentNode)
let h = 0;
return c.childNodes.forEach((g) => {
g.nodeType === Node.ELEMENT_NODE && window.getComputedStyle(g).display !== "none" && h++;
}), h;
}, y = (c) => {
if (!c || !c.parentNode)
return -1;
const S = Array.from(y.parentNode.childNodes);
let C = 0;
for (let O = 0; O < y.cellIndex; O++)
S[O].style.display !== "none" && C++;
return C;
const h = Array.from(c.parentNode.childNodes);
let g = 0;
for (let S = 0; S < c.cellIndex; S++)
h[S].style.display !== "none" && g++;
return g;
};
Sr(() => {
const y = () => {
var S;
if (o.current) {
const C = u((S = o.current) == null ? void 0 : S.parentNode), O = _(o.current);
if (C) {
let R = -10;
O / C > 0.33 ? R = Math.max(~~(o.current.cellIndex * -9 * r) / C, -9 * r) : R = Math.max(~~o.current.cellIndex * -30 * r / C, -10), c(R);
ne(() => {
const c = () => {
var h;
if (r.current) {
const g = f((h = r.current) == null ? void 0 : h.parentNode), S = y(r.current);
if (g) {
let m = -10;
S / g > 0.33 ? m = Math.max(~~(r.current.cellIndex * -9 * e) / g, -9 * e) : m = Math.max(~~r.current.cellIndex * -30 * e / g, -10), d(m);
}
}
};
return o.current && o.current.addEventListener("mouseover", y), () => {
o.current && o.current.removeEventListener("mouseover", y);
return r.current && r.current.addEventListener("mouseover", c), () => {
r.current && r.current.removeEventListener("mouseover", c);
};
}, []);
const T = (y) => {
const S = typeof y == "string" ? !1 : y.isTextTheme || !1;
return y === "emoji_positive" || y === "emoji_negative" || S;
const p = (c) => {
const h = typeof c == "string" ? !1 : c.isTextTheme || !1;
return c === "emoji_positive" || c === "emoji_negative" || h;
};
return /* @__PURE__ */ E.jsx(
return /* @__PURE__ */ u(
"td",
{
ref: o,
ref: r,
className: "calendar-cell top half-arrow",
style: {
...d,
outline: T(n) ? "transparent" : "1px solid rgba(27, 31, 35, 0.06)",
backgroundColor: T(n) ? "transparent" : i[`level${a}`],
"--tooltip-offset": `${g}px`,
fontSize: p
...a,
outline: p(l) ? "transparent" : "1px solid rgba(27, 31, 35, 0.06)",
backgroundColor: p(l) ? "transparent" : n[`level${t}`],
"--tooltip-offset": `${v}px`,
fontSize: i
},
"data-tooltip": v,
"data-level": a,
...s,
children: T(n) ? i[`level${a}`] : void 0
"data-tooltip": s,
"data-level": t,
...o,
children: p(l) ? n[`level${t}`] : void 0
}
);
}
function Vr({
data: r,
start: n,
end: i,
daysOfTheWeek: a,
textColor: d,
startsOnSunday: v,
includeBoundary: p,
cx: s,
cy: o,
cr: g,
theme: c,
onClick: u
function be({
data: e,
start: l,
end: n,
daysOfTheWeek: t,
textColor: a,
startsOnSunday: s,
includeBoundary: i,
cx: o,
cy: r,
cr: v,
theme: d,
onClick: f
}) {
const { year: _, day: T } = se(n), { day: y } = se(i), { row: S, col: C } = fe(_, n, v), { row: O, col: R } = fe(_, i, v), J = Ke(n, i, v), { colSpans: G } = Xe(n, i, J, v), K = He(c), ue = $r(r), de = (w, x) => x == R + 1 && G[G.length - 1] === 1, ve = (w, x) => x < C || x > R, X = (w, x) => x === C && w < S || x === R && w > O, I = () => C === R || y - T <= 7, Z = v ? a : (() => {
const w = [...a];
return w.push(w.shift() || ""), w;
const { year: y, day: p } = _(l), { day: c } = _(n), { row: h, col: g } = A(y, l, s), { row: S, col: m } = A(y, n, s), O = W(l, n, s), { colSpans: j } = H(l, n, O, s), x = L(d), P = de(e), q = (D, b) => b == m + 1 && j[j.length - 1] === 1, X = (D, b) => b < g || b > m, G = (D, b) => b === g && D < h || b === m && D > S, $ = () => g === m || c - p <= 7, K = s ? t : (() => {
const D = [...t];
return D.push(D.shift() || ""), D;
})();
return /* @__PURE__ */ E.jsx("tbody", { children: Z.map((w, x) => /* @__PURE__ */ E.jsxs("tr", { children: [
/* @__PURE__ */ E.jsx(Re, { tabIndex: 0, textColor: d, style: { textAlign: "left", fontSize: o, lineHeight: 0 }, children: w }),
J[x].map((M, P) => {
if (R === 0 && P === 1)
return /* @__PURE__ */ E.jsx(
return /* @__PURE__ */ u("tbody", { children: K.map((D, b) => /* @__PURE__ */ N("tr", { children: [
/* @__PURE__ */ u(B, { tabIndex: 0, textColor: a, style: { textAlign: "left", fontSize: r, lineHeight: 0 }, children: D }),
O[b].map((I, F) => {
if (m === 0 && F === 1)
return /* @__PURE__ */ u(
"td",

@@ -1102,6 +476,6 @@ {

padding: 0,
width: I() ? s : 0,
height: I() ? o : 0,
width: $() ? o : 0,
height: $() ? r : 0,
outline: "none",
borderRadius: g,
borderRadius: v,
outlineOffset: "-1px",

@@ -1111,8 +485,8 @@ shapeRendering: "geometricPrecision"

},
P
F
);
if (de(x, P))
return /* @__PURE__ */ E.jsx("td", { style: { padding: "0", display: "block" } }, P);
if (X(x, P))
return /* @__PURE__ */ E.jsx(
if (q(b, F))
return /* @__PURE__ */ u("td", { style: { padding: "0", display: "block" } }, F);
if (G(b, F))
return /* @__PURE__ */ u(
"td",

@@ -1122,6 +496,6 @@ {

padding: 0,
width: I() ? s : 0,
height: I() ? o : 0,
outline: p ? `1px solid ${K.level0}` : "none",
borderRadius: g,
width: $() ? o : 0,
height: $() ? r : 0,
outline: i ? `1px solid ${x.level0}` : "none",
borderRadius: v,
outlineOffset: "-1px",

@@ -1131,130 +505,130 @@ shapeRendering: "geometricPrecision"

},
P
F
);
if (ve(x, P))
return /* @__PURE__ */ E.jsx("td", { style: { padding: "0", display: "none" } }, P);
const $ = ue.get(M), Q = Or(M), ee = (re) => {
const te = {
date: M,
data: $ == null ? void 0 : $.data
if (X(b, F))
return /* @__PURE__ */ u("td", { style: { padding: "0", display: "none" } }, F);
const w = P.get(I), Q = se(I), U = (Z) => {
const ee = {
date: I,
data: w == null ? void 0 : w.data
};
u && u(re, te);
f && f(Z, ee);
};
return /* @__PURE__ */ E.jsx(
Lr,
return /* @__PURE__ */ u(
ge,
{
cx: s,
cx: o,
tabIndex: -1,
style: { width: s, height: o, borderRadius: g },
dataLevel: $ !== void 0 ? $.level : 0,
"data-content": JSON.stringify($ == null ? void 0 : $.data),
style: { width: o, height: r, borderRadius: v },
dataLevel: w !== void 0 ? w.level : 0,
"data-content": JSON.stringify(w == null ? void 0 : w.data),
dataTooltip: Q,
tooltipSize: o,
theme: c,
themeProps: K,
onClick: ee
tooltipSize: r,
theme: d,
themeProps: x,
onClick: U
},
P
F
);
})
] }, `${w}-${x}`)) });
] }, `${D}-${b}`)) });
}
function Br({ textColor: r, cx: n, cy: i, theme: a }) {
const d = He(a), v = `4px ${n + 72}px 0 0`, p = (o) => {
const g = typeof o == "string" ? !1 : o.isTextTheme || !1;
return o === "emoji_positive" || o === "emoji_negative" || g;
}, s = (o, g) => p(o) ? { width: n, height: i, fontSize: n } : { width: n, height: i, backgroundColor: d[`level${g}`], outline: "1px solid #1b1f230f" };
return /* @__PURE__ */ E.jsx("div", { className: "description", style: { padding: v }, children: /* @__PURE__ */ E.jsxs("div", { className: "themes", children: [
/* @__PURE__ */ E.jsx("span", { style: { color: r, fontSize: n }, children: "Less" }),
/* @__PURE__ */ E.jsx("div", { className: "cell", style: { ...s(a, 0) }, children: p(a) ? d.level0 : void 0 }),
/* @__PURE__ */ E.jsx("div", { className: "cell", style: { ...s(a, 1) }, children: p(a) ? d.level1 : void 0 }),
/* @__PURE__ */ E.jsx("div", { className: "cell", style: { ...s(a, 2) }, children: p(a) ? d.level2 : void 0 }),
/* @__PURE__ */ E.jsx("div", { className: "cell", style: { ...s(a, 3) }, children: p(a) ? d.level3 : void 0 }),
/* @__PURE__ */ E.jsx("div", { className: "cell", style: { ...s(a, 4) }, children: p(a) ? d.level4 : void 0 }),
/* @__PURE__ */ E.jsx("span", { style: { color: r, fontSize: n }, children: "More" })
function De({ textColor: e, cx: l, cy: n, theme: t }) {
const a = L(t), s = `4px ${l + 72}px 0 0`, i = (r) => {
const v = typeof r == "string" ? !1 : r.isTextTheme || !1;
return r === "emoji_positive" || r === "emoji_negative" || v;
}, o = (r, v) => i(r) ? { width: l, height: n, fontSize: l } : { width: l, height: n, backgroundColor: a[`level${v}`], outline: "1px solid #1b1f230f" };
return /* @__PURE__ */ u("div", { className: "description", style: { padding: s }, children: /* @__PURE__ */ N("div", { className: "themes", children: [
/* @__PURE__ */ u("span", { style: { color: e, fontSize: l }, children: "Less" }),
/* @__PURE__ */ u("div", { className: "cell", style: { ...o(t, 0) }, children: i(t) ? a.level0 : void 0 }),
/* @__PURE__ */ u("div", { className: "cell", style: { ...o(t, 1) }, children: i(t) ? a.level1 : void 0 }),
/* @__PURE__ */ u("div", { className: "cell", style: { ...o(t, 2) }, children: i(t) ? a.level2 : void 0 }),
/* @__PURE__ */ u("div", { className: "cell", style: { ...o(t, 3) }, children: i(t) ? a.level3 : void 0 }),
/* @__PURE__ */ u("div", { className: "cell", style: { ...o(t, 4) }, children: i(t) ? a.level4 : void 0 }),
/* @__PURE__ */ u("span", { style: { color: e, fontSize: l }, children: "More" })
] }) });
}
const ce = (r, n) => {
const i = new Error(n);
return i.name = r, i;
const C = (e, l) => {
const n = new Error(l);
return n.name = e, n;
};
var H = /* @__PURE__ */ ((r) => (r.Number = "Number Error", r.String = "String Error", r.Date = "Date Error", r))(H || {});
const ze = (r) => {
if (!/^\d{4}-\d{2}-\d{2}$/.test(r))
throw ce(H.Date, `Invalid date string ${r}. The date string should be 'YYYY-MM-DD' format.`);
var k = /* @__PURE__ */ ((e) => (e.Number = "Number Error", e.String = "String Error", e.Date = "Date Error", e))(k || {});
const R = (e) => {
if (!/^\d{4}-\d{2}-\d{2}$/.test(e))
throw C(k.Date, `Invalid date string ${e}. The date string should be 'YYYY-MM-DD' format.`);
try {
return new Date(r).toISOString().slice(0, 10) === r;
return new Date(e).toISOString().slice(0, 10) === e;
} catch {
throw ce(H.Date, `Invalid date string ${r}. Please check the date.`);
throw C(k.Date, `Invalid date string ${e}. Please check the date.`);
}
}, Jr = (r, n) => {
if (r > n)
throw ce(H.Date, "The starting date should be earlier than the ending date.");
}, Ur = (r) => {
if (r.length !== 7)
throw ce(H.Number, "The length of the `daysOfTheWeek` should be exact 7.");
}, me = (e, l) => {
if (e > l)
throw C(k.Date, "The starting date should be earlier than the ending date.");
}, Fe = (e) => {
if (e.length !== 7)
throw C(k.Number, "The length of the `daysOfTheWeek` should be exact 7.");
};
function Xr({
data: r = [],
start: n = Je(B(), 0, 1),
end: i = Je(B(), 11, 31),
daysOfTheWeek: a = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
textColor: d = "#1f2328",
startsOnSunday: v = !0,
includeBoundary: p = !0,
cx: s = 10,
cy: o = 10,
cr: g = 2,
theme: c = "grass",
onCellClick: u = (y, S) => console.log(S),
scroll: _ = !1,
style: T
function $e({
data: e = [],
start: l = J(E(), 0, 1),
end: n = J(E(), 11, 31),
daysOfTheWeek: t = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
textColor: a = "#1f2328",
startsOnSunday: s = !0,
includeBoundary: i = !0,
cx: o = 10,
cy: r = 10,
cr: v = 2,
theme: d = "grass",
onCellClick: f = (c, h) => console.log(h),
scroll: y = !1,
style: p
}) {
const y = `0 ${s + 70}px 0 ${s + 10}px`;
return ze(n), ze(i), Jr(n, i), Ur(a), /* @__PURE__ */ E.jsxs("div", { className: "container", style: T, children: [
/* @__PURE__ */ E.jsx("div", { className: "calendar", style: { padding: y, overflowX: _ ? "scroll" : "clip" }, children: /* @__PURE__ */ E.jsxs("table", { children: [
/* @__PURE__ */ E.jsx(Wr, { start: n, end: i, textColor: d, startsOnSunday: v, cy: o }),
/* @__PURE__ */ E.jsx(
Vr,
const c = `0 ${o + 70}px 0 ${o + 10}px`;
return R(l), R(n), me(l, n), Fe(t), /* @__PURE__ */ N("div", { className: "container", style: p, children: [
/* @__PURE__ */ u("div", { className: "calendar", style: { padding: c, overflowX: y ? "scroll" : "clip" }, children: /* @__PURE__ */ N("table", { children: [
/* @__PURE__ */ u(pe, { start: l, end: n, textColor: a, startsOnSunday: s, cy: r }),
/* @__PURE__ */ u(
be,
{
data: r,
start: n,
end: i,
daysOfTheWeek: a,
textColor: d,
startsOnSunday: v,
includeBoundary: p,
cx: s,
cy: o,
cr: g,
theme: c,
onClick: u
data: e,
start: l,
end: n,
daysOfTheWeek: t,
textColor: a,
startsOnSunday: s,
includeBoundary: i,
cx: o,
cy: r,
cr: v,
theme: d,
onClick: f
}
)
] }) }),
/* @__PURE__ */ E.jsx(Br, { textColor: d, cx: s, cy: o, theme: c })
/* @__PURE__ */ u(De, { textColor: a, cx: o, cy: r, theme: d })
] });
}
export {
Xr as ContributionCalendar,
He as createTheme,
qr as getArraySum,
Kr as getColumnSpansForYears,
B as getCurrentYear,
Cr as getDateDetails,
Je as getDateString,
Or as getDateTooltip,
Ke as getDayArray,
Ar as getDayIndexFromDateString,
Gr as getDayIndexOfMonth,
Yr as getDaysBetween,
V as getFirstDayIndexOfYear,
Xe as getMonthsAndColSpans,
fe as getRowAndColumnIndexFromDate,
Pr as isLeapYear,
se as parseDateFromDateString,
Hr as parseDayFromDateString,
$r as parseInputData,
Ue as parseMonthFromDateString,
L as parseYearFromDateString
$e as ContributionCalendar,
L as createTheme,
Te as getArraySum,
ke as getColumnSpansForYears,
E as getCurrentYear,
ae as getDateDetails,
J as getDateString,
se as getDateTooltip,
W as getDayArray,
fe as getDayIndexFromDateString,
Ne as getDayIndexOfMonth,
ye as getDaysBetween,
T as getFirstDayIndexOfYear,
H as getMonthsAndColSpans,
A as getRowAndColumnIndexFromDate,
ce as isLeapYear,
_ as parseDateFromDateString,
Ee as parseDayFromDateString,
de as parseInputData,
z as parseMonthFromDateString,
M as parseYearFromDateString
};

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

// Type definitions for react-contribution-calendar 1.3.5
// Type definitions for react-contribution-calendar 1.4.0
// Project: https://github.com/SeiwonPark/react-contribution-calendar

@@ -199,3 +199,3 @@ // Definitions by: Seiwon Park <https://github.com/SeiwonPark>

*
* @version 1.3.5
* @version 1.4.0
* @see {@link https://github.com/SeiwonPark/react-contribution-calendar#apis}

@@ -202,0 +202,0 @@ */

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

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

@@ -22,3 +22,4 @@ # react-contribution-calendar

[Live Demo](https://codepen.io/yaeheechoe/pen/wvRwJbP)
- [codepen](https://codepen.io/yaeheechoe/pen/wvRwJbP)
- [codesandbox](https://codesandbox.io/p/sandbox/react-contribution-calendar-sxn32g)

@@ -25,0 +26,0 @@ <br/>

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