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.4 to 1.2.5

744

dist/index.js

@@ -18,14 +18,14 @@ import './styles/style.css';

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

@@ -42,17 +42,17 @@ var z = {};

*/
var Le;
var Be;
function Rr() {
return Le || (Le = 1, process.env.NODE_ENV !== "production" && function() {
var t = Je, l = Symbol.for("react.element"), a = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), i = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), R = Symbol.iterator, T = "@@iterator";
return Be || (Be = 1, process.env.NODE_ENV !== "production" && function() {
var t = Je, l = Symbol.for("react.element"), o = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), d = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), a = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), D = Symbol.iterator, _ = "@@iterator";
function k(e) {
if (e === null || typeof e != "object")
return null;
var r = R && e[R] || e[T];
var r = D && e[D] || e[_];
return typeof r == "function" ? r : null;
}
var P = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function w(e) {
var w = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function S(e) {
{
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), f = 1; f < r; f++)
n[f - 1] = arguments[f];
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), s = 1; s < r; s++)
n[s - 1] = arguments[s];
ae("error", e, n);

@@ -63,8 +63,8 @@ }

{
var f = P.ReactDebugCurrentFrame, g = f.getStackAddendum();
g !== "" && (r += "%s", n = n.concat([g]));
var _ = n.map(function(h) {
return String(h);
var s = w.ReactDebugCurrentFrame, b = s.getStackAddendum();
b !== "" && (r += "%s", n = n.concat([b]));
var E = n.map(function(p) {
return String(p);
});
_.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, _);
E.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, E);
}

@@ -75,3 +75,3 @@ }

function M(e) {
return !!(typeof e == "string" || typeof e == "function" || e === o || e === y || se || e === p || e === E || e === u || ie || e === b || Ee || H || oe || typeof e == "object" && e !== null && (e.$$typeof === m || e.$$typeof === i || e.$$typeof === s || e.$$typeof === c || e.$$typeof === d || // This needs to include all possible module reference object
return !!(typeof e == "string" || typeof e == "function" || e === i || e === y || se || e === d || e === m || e === f || ie || e === g || Ee || H || oe || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === u || e.$$typeof === h || e.$$typeof === a || e.$$typeof === c || // This needs to include all possible module reference object
// types supported by any Flight configuration anywhere since

@@ -83,7 +83,7 @@ // we don't know which Flight build this will end up being used

function A(e, r, n) {
var f = e.displayName;
if (f)
return f;
var g = r.displayName || r.name || "";
return g !== "" ? n + "(" + g + ")" : n;
var s = e.displayName;
if (s)
return s;
var b = r.displayName || r.name || "";
return b !== "" ? n + "(" + b + ")" : n;
}

@@ -93,6 +93,6 @@ function Y(e) {

}
function F(e) {
function C(e) {
if (e == null)
return null;
if (typeof e.tag == "number" && w("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" && S("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;

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

switch (e) {
case i:
return "Fragment";
case o:
return "Fragment";
case a:
return "Portal";
case y:
return "Profiler";
case p:
case d:
return "StrictMode";
case E:
case m:
return "Suspense";
case u:
case f:
return "SuspenseList";

@@ -118,17 +118,17 @@ }

switch (e.$$typeof) {
case c:
case a:
var r = e;
return Y(r) + ".Consumer";
case s:
case h:
var n = e;
return Y(n._context) + ".Provider";
case d:
case c:
return A(e, e.render, "ForwardRef");
case i:
var f = e.displayName || null;
return f !== null ? f : F(e.type) || "Memo";
case m: {
var g = e, _ = g._payload, h = g._init;
case u:
var s = e.displayName || null;
return s !== null ? s : C(e.type) || "Memo";
case R: {
var b = e, E = b._payload, p = b._init;
try {
return F(h(_));
return C(p(E));
} catch {

@@ -141,3 +141,3 @@ return null;

}
var C = Object.assign, N = 0, G, K, X, _e, Re, De, Se;
var O = Object.assign, N = 0, G, K, X, _e, Re, De, Se;
function Te() {

@@ -178,21 +178,21 @@ }

Object.defineProperties(console, {
log: C({}, e, {
log: O({}, e, {
value: G
}),
info: C({}, e, {
info: O({}, e, {
value: K
}),
warn: C({}, e, {
warn: O({}, e, {
value: X
}),
error: C({}, e, {
error: O({}, e, {
value: _e
}),
group: C({}, e, {
group: O({}, e, {
value: Re
}),
groupCollapsed: C({}, e, {
groupCollapsed: O({}, e, {
value: De
}),
groupEnd: C({}, e, {
groupEnd: O({}, e, {
value: Se

@@ -202,6 +202,6 @@ })

}
N < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
N < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
}
var fe = P.ReactCurrentDispatcher, ce;
var fe = w.ReactCurrentDispatcher, ce;
function Z(e, r, n) {

@@ -212,5 +212,5 @@ {

throw Error();
} catch (g) {
var f = g.stack.trim().match(/\n( *(at )?)/);
ce = f && f[1] || "";
} catch (b) {
var s = b.stack.trim().match(/\n( *(at )?)/);
ce = s && s[1] || "";
}

@@ -234,14 +234,14 @@ return `

}
var f;
var s;
ue = !0;
var g = Error.prepareStackTrace;
var b = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var _;
_ = fe.current, fe.current = null, ze();
var E;
E = fe.current, fe.current = null, ze();
try {
if (r) {
var h = function() {
var p = function() {
throw Error();
};
if (Object.defineProperty(h.prototype, "props", {
if (Object.defineProperty(p.prototype, "props", {
set: function() {

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

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

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

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

@@ -276,17 +276,17 @@ e();

} catch (I) {
if (I && f && typeof I.stack == "string") {
if (I && s && typeof I.stack == "string") {
for (var v = I.stack.split(`
`), O = f.stack.split(`
`), D = v.length - 1, S = O.length - 1; D >= 1 && S >= 0 && v[D] !== O[S]; )
S--;
for (; D >= 1 && S >= 0; D--, S--)
if (v[D] !== O[S]) {
if (D !== 1 || S !== 1)
`), j = s.stack.split(`
`), T = v.length - 1, x = j.length - 1; T >= 1 && x >= 0 && v[T] !== j[x]; )
x--;
for (; T >= 1 && x >= 0; T--, x--)
if (v[T] !== j[x]) {
if (T !== 1 || x !== 1)
do
if (D--, S--, S < 0 || v[D] !== O[S]) {
var j = `
` + v[D].replace(" at new ", " at ");
return e.displayName && j.includes("<anonymous>") && (j = j.replace("<anonymous>", e.displayName)), typeof e == "function" && Q.set(e, j), j;
if (T--, x--, x < 0 || v[T] !== j[x]) {
var P = `
` + v[T].replace(" at new ", " at ");
return e.displayName && P.includes("<anonymous>") && (P = P.replace("<anonymous>", e.displayName)), typeof e == "function" && Q.set(e, P), P;
}
while (D >= 1 && S >= 0);
while (T >= 1 && x >= 0);
break;

@@ -296,5 +296,5 @@ }

} finally {
ue = !1, fe.current = _, He(), Error.prepareStackTrace = g;
ue = !1, fe.current = E, He(), Error.prepareStackTrace = b;
}
var L = e ? e.displayName || e.name : "", Ye = L ? Z(L) : "";
var B = e ? e.displayName || e.name : "", Ye = B ? Z(B) : "";
return typeof e == "function" && Q.set(e, Ye), Ye;

@@ -317,5 +317,5 @@ }

switch (e) {
case E:
case m:
return Z("Suspense");
case u:
case f:
return Z("SuspenseList");

@@ -325,10 +325,10 @@ }

switch (e.$$typeof) {
case d:
case c:
return Ke(e.render);
case i:
case u:
return ee(e.type, r, n);
case m: {
var f = e, g = f._payload, _ = f._init;
case R: {
var s = e, b = s._payload, E = s._init;
try {
return ee(_(g), r, n);
return ee(E(b), r, n);
} catch {

@@ -340,3 +340,3 @@ }

}
var re = Object.prototype.hasOwnProperty, we = {}, Fe = P.ReactDebugCurrentFrame;
var re = Object.prototype.hasOwnProperty, we = {}, Fe = w.ReactDebugCurrentFrame;
function te(e) {

@@ -349,18 +349,18 @@ if (e) {

}
function Ze(e, r, n, f, g) {
function Ze(e, r, n, s, b) {
{
var _ = Function.call.bind(re);
for (var h in e)
if (_(e, h)) {
var E = Function.call.bind(re);
for (var p in e)
if (E(e, p)) {
var v = void 0;
try {
if (typeof e[h] != "function") {
var O = Error((f || "React class") + ": " + n + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw O.name = "Invariant Violation", O;
if (typeof e[p] != "function") {
var j = Error((s || "React class") + ": " + n + " 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 j.name = "Invariant Violation", j;
}
v = e[h](r, h, f, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (D) {
v = D;
v = e[p](r, p, s, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (T) {
v = T;
}
v && !(v instanceof Error) && (te(g), w("%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", n, h, typeof v), te(null)), v instanceof Error && !(v.message in we) && (we[v.message] = !0, te(g), w("Failed %s type: %s", n, v.message), te(null));
v && !(v instanceof Error) && (te(b), S("%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", n, p, typeof v), te(null)), v instanceof Error && !(v.message in we) && (we[v.message] = !0, te(b), S("Failed %s type: %s", n, v.message), te(null));
}

@@ -370,3 +370,3 @@ }

var Qe = Array.isArray;
function de(e) {
function ve(e) {
return Qe(e);

@@ -392,5 +392,5 @@ }

if (rr(e))
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", er(e)), Ce(e);
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", er(e)), Ce(e);
}
var U = P.ReactCurrentOwner, tr = {
var U = w.ReactCurrentOwner, tr = {
key: !0,

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

__source: !0
}, je, ke, ve;
ve = {};
}, je, ke, de;
de = {};
function nr(e) {

@@ -421,4 +421,4 @@ if (re.call(e, "ref")) {

if (typeof e.ref == "string" && U.current && r && U.current.stateNode !== r) {
var n = F(U.current.type);
ve[n] || (w('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', F(U.current.type), e.ref), ve[n] = !0);
var n = C(U.current.type);
de[n] || (S('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', C(U.current.type), e.ref), de[n] = !0);
}

@@ -429,3 +429,3 @@ }

var n = function() {
je || (je = !0, w("%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));
je || (je = !0, S("%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));
};

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

var n = function() {
ke || (ke = !0, w("%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));
ke || (ke = !0, S("%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));
};

@@ -450,3 +450,3 @@ n.isReactWarning = !0, Object.defineProperty(e, "ref", {

}
var sr = function(e, r, n, f, g, _, h) {
var sr = function(e, r, n, s, b, E, p) {
var v = {

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

ref: n,
props: h,
props: p,
// Record the component responsible for creating this element.
_owner: _
_owner: E
};

@@ -473,3 +473,3 @@ return v._store = {}, Object.defineProperty(v._store, "validated", {

writable: !1,
value: f
value: s
}), Object.defineProperty(v, "_source", {

@@ -479,24 +479,24 @@ configurable: !1,

writable: !1,
value: g
value: b
}), Object.freeze && (Object.freeze(v.props), Object.freeze(v)), v;
};
function fr(e, r, n, f, g) {
function fr(e, r, n, s, b) {
{
var _, h = {}, v = null, O = null;
n !== void 0 && (Oe(n), v = "" + n), lr(r) && (Oe(r.key), v = "" + r.key), nr(r) && (O = r.ref, ar(r, g));
for (_ in r)
re.call(r, _) && !tr.hasOwnProperty(_) && (h[_] = r[_]);
var E, p = {}, v = null, j = null;
n !== void 0 && (Oe(n), v = "" + n), lr(r) && (Oe(r.key), v = "" + r.key), nr(r) && (j = r.ref, ar(r, b));
for (E in r)
re.call(r, E) && !tr.hasOwnProperty(E) && (p[E] = r[E]);
if (e && e.defaultProps) {
var D = e.defaultProps;
for (_ in D)
h[_] === void 0 && (h[_] = D[_]);
var T = e.defaultProps;
for (E in T)
p[E] === void 0 && (p[E] = T[E]);
}
if (v || O) {
var S = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
v && or(h, S), O && ir(h, S);
if (v || j) {
var x = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
v && or(p, x), j && ir(p, x);
}
return sr(e, v, O, g, f, U.current, h);
return sr(e, v, j, b, s, U.current, p);
}
}
var pe = P.ReactCurrentOwner, Pe = P.ReactDebugCurrentFrame;
var pe = w.ReactCurrentOwner, Pe = w.ReactDebugCurrentFrame;
function W(e) {

@@ -517,3 +517,3 @@ if (e) {

if (pe.current) {
var e = F(pe.current.type);
var e = C(pe.current.type);
if (e)

@@ -560,4 +560,4 @@ return `

Me[n] = !0;
var f = "";
e && e._owner && e._owner !== pe.current && (f = " It was passed a child from " + F(e._owner.type) + "."), W(e), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, f), W(null);
var s = "";
e && e._owner && e._owner !== pe.current && (s = " It was passed a child from " + C(e._owner.type) + "."), W(e), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, s), W(null);
}

@@ -569,6 +569,6 @@ }

return;
if (de(e))
if (ve(e))
for (var n = 0; n < e.length; n++) {
var f = e[n];
ye(f) && Ie(f, r);
var s = e[n];
ye(s) && Ie(s, r);
}

@@ -578,10 +578,10 @@ else if (ye(e))

else if (e) {
var g = k(e);
if (typeof g == "function" && g !== e.entries)
for (var _ = g.call(e), h; !(h = _.next()).done; )
ye(h.value) && Ie(h.value, r);
var b = k(e);
if (typeof b == "function" && b !== e.entries)
for (var E = b.call(e), p; !(p = E.next()).done; )
ye(p.value) && Ie(p.value, r);
}
}
}
function dr(e) {
function vr(e) {
{

@@ -594,5 +594,5 @@ var r = e.type;

n = r.propTypes;
else if (typeof r == "object" && (r.$$typeof === d || // 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 === i))
r.$$typeof === u))
n = r.propTypes;

@@ -602,52 +602,52 @@ else

if (n) {
var f = F(r);
Ze(n, e.props, "prop", f, e);
var s = C(r);
Ze(n, e.props, "prop", s, e);
} else if (r.PropTypes !== void 0 && !he) {
he = !0;
var g = F(r);
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", g || "Unknown");
var b = C(r);
S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", b || "Unknown");
}
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
}
}
function vr(e) {
function dr(e) {
{
for (var r = Object.keys(e.props), n = 0; n < r.length; n++) {
var f = r[n];
if (f !== "children" && f !== "key") {
W(e), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", f), W(null);
var s = r[n];
if (s !== "children" && s !== "key") {
W(e), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", s), W(null);
break;
}
}
e.ref !== null && (W(e), w("Invalid attribute `ref` supplied to `React.Fragment`."), W(null));
e.ref !== null && (W(e), S("Invalid attribute `ref` supplied to `React.Fragment`."), W(null));
}
}
function Ne(e, r, n, f, g, _) {
function Ne(e, r, n, s, b, E) {
{
var h = M(e);
if (!h) {
var p = M(e);
if (!p) {
var v = "";
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (v += " 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 O = cr(g);
O ? v += O : v += Ae();
var D;
e === null ? D = "null" : de(e) ? D = "array" : e !== void 0 && e.$$typeof === l ? (D = "<" + (F(e.type) || "Unknown") + " />", v = " Did you accidentally export a JSX literal instead of a component?") : D = typeof e, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", D, v);
var j = cr(b);
j ? v += j : v += Ae();
var T;
e === null ? T = "null" : ve(e) ? T = "array" : e !== void 0 && e.$$typeof === l ? (T = "<" + (C(e.type) || "Unknown") + " />", v = " Did you accidentally export a JSX literal instead of a component?") : T = typeof e, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", T, v);
}
var S = fr(e, r, n, g, _);
if (S == null)
return S;
if (h) {
var j = r.children;
if (j !== void 0)
if (f)
if (de(j)) {
for (var L = 0; L < j.length; L++)
$e(j[L], e);
Object.freeze && Object.freeze(j);
var x = fr(e, r, n, b, E);
if (x == null)
return x;
if (p) {
var P = r.children;
if (P !== void 0)
if (s)
if (ve(P)) {
for (var B = 0; B < P.length; B++)
$e(P[B], e);
Object.freeze && Object.freeze(P);
} else
w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
S("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
$e(j, e);
$e(P, e);
}
return e === o ? vr(S) : dr(S), S;
return e === i ? dr(x) : vr(x), x;
}

@@ -662,12 +662,12 @@ }

var yr = hr, br = pr;
z.Fragment = o, z.jsx = yr, z.jsxs = br;
z.Fragment = i, z.jsx = yr, z.jsxs = br;
}()), z;
}
process.env.NODE_ENV === "production" ? be.exports = _r() : be.exports = Rr();
var x = be.exports;
function ge({ children: t, textColor: l, style: a, colSpan: o, hide: p, ...y }) {
return /* @__PURE__ */ x.jsx("td", { className: "calendar-label", style: a, colSpan: o, ...y, children: p ? void 0 : /* @__PURE__ */ x.jsx("span", { className: "calendar-label-text", "aria-hidden": "true", style: { color: l }, children: t }) });
var F = be.exports;
function ge({ children: t, textColor: l, style: o, colSpan: i, hide: d, ...y }) {
return /* @__PURE__ */ F.jsx("td", { className: "calendar-label", style: o, colSpan: i, ...y, children: d ? void 0 : /* @__PURE__ */ F.jsx("span", { className: "calendar-label-text", "aria-hidden": "true", style: { color: l }, children: t }) });
}
const Dr = {
//light themes
// light themes
empty: {

@@ -785,3 +785,17 @@ level0: "#ffffff",

},
//dark themes
emoji_positive: {
level0: "🫥",
level1: "😢",
level2: "😞",
level3: "🙂",
level4: "😃"
},
emoji_negative: {
level0: "😃",
level1: "🙂",
level2: "😕",
level3: "😢",
level4: "🫥"
},
// dark themes
dark_empty: {

@@ -908,3 +922,3 @@ level0: "#000000",

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

@@ -922,112 +936,112 @@ Feb: "February",

Dec: "December"
}, o = t.toString().split(" ");
}, i = t.toString().split(" ");
return {
year: o[3],
month: a[o[1]],
day: parseInt(o[2], 10),
date: l[o[0]]
year: i[3],
month: o[i[1]],
day: parseInt(i[2], 10),
date: l[i[0]]
};
}, Lr = (t) => t.reduce((l, a) => l + a, 0), xr = (t) => {
}, Br = (t) => t.reduce((l, o) => l + o, 0), xr = (t) => {
const l = Tr(new Date(t));
return `${l.date}, ${l.month} ${l.day}, ${l.year}`;
}, Be = (t, l, a) => `${t}-${String(l + 1).padStart(2, "0")}-${String(a).padStart(2, "0")}`, wr = (t, l, a) => `${t}-${String(l).padStart(2, "0")}-${String(a).padStart(2, "0")}`, ne = (t) => ({ year: +t.slice(0, 4), month: +t.slice(5, 7), day: +t.slice(8, 10) }), B = (t) => +t.slice(0, 4), Ve = (t) => +t.slice(5, 7), Br = (t) => +t.slice(8, 10), Fr = (t = J()) => t % 4 === 0 && t % 100 !== 0 || t % 400 === 0, me = (t = J()) => [31, Fr(t) ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Cr = (t) => new Date(t).getDay(), V = (t = J()) => new Date(t, 0, 1).getDay(), Vr = (t) => new Date(t).getDay(), J = () => (/* @__PURE__ */ new Date()).getFullYear(), Jr = (t = J(), l, a) => {
const o = me(t), p = V(t), y = [];
let s = p;
for (let c = 0; c < 12; c++) {
const d = o[c];
let E = 0;
for (let u = 0; u < d; u++)
s === 0 && E++, s = (s + 1) % 7;
c === 0 && p !== 0 && E++, y.push(E);
}, Le = (t, l, o) => `${t}-${String(l + 1).padStart(2, "0")}-${String(o).padStart(2, "0")}`, wr = (t, l, o) => `${t}-${String(l).padStart(2, "0")}-${String(o).padStart(2, "0")}`, ne = (t) => ({ year: +t.slice(0, 4), month: +t.slice(5, 7), day: +t.slice(8, 10) }), L = (t) => +t.slice(0, 4), Ve = (t) => +t.slice(5, 7), Lr = (t) => +t.slice(8, 10), Fr = (t = J()) => t % 4 === 0 && t % 100 !== 0 || t % 400 === 0, me = (t = J()) => [31, Fr(t) ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Cr = (t) => new Date(t).getDay(), V = (t = J()) => new Date(t, 0, 1).getDay(), Vr = (t) => new Date(t).getDay(), J = () => (/* @__PURE__ */ new Date()).getFullYear(), Jr = (t = J(), l, o) => {
const i = me(t), d = V(t), y = [];
let h = d;
for (let a = 0; a < 12; a++) {
const c = i[a];
let m = 0;
for (let f = 0; f < c; f++)
h === 0 && m++, h = (h + 1) % 7;
a === 0 && d !== 0 && m++, y.push(m);
}
return t !== l && p !== 0 && l !== a && (y[0] -= 1), y;
return t !== l && d !== 0 && l !== o && (y[0] -= 1), y;
}, Or = (t) => {
const l = /* @__PURE__ */ new Map();
return t.forEach((a) => {
Object.keys(a).forEach((o) => {
l.set(o, a[o]);
return t.forEach((o) => {
Object.keys(o).forEach((i) => {
l.set(i, o[i]);
});
}), l;
}, jr = (t) => typeof t == "string" ? Dr[t] : t, kr = (t, l) => {
let a = 0;
for (let o = t; o <= l; ++o)
a += Ue(t, o === t);
return new Array(7).fill(0).map(() => new Array(a).fill(0));
let o = 0;
for (let i = t; i <= l; ++i)
o += Ue(t, i === t);
return new Array(7).fill(0).map(() => new Array(o).fill(0));
}, Pr = (t, l) => {
let a = 0;
for (let o = t; o <= l; ++o)
a += Ue(t, o === t);
return new Array(7).fill("").map(() => new Array(a).fill(""));
let o = 0;
for (let i = t; i <= l; ++i)
o += Ue(t, i === t);
return new Array(7).fill("").map(() => new Array(o).fill(""));
}, Ue = (t, l) => {
const a = V(t);
return l || a === 0 ? 53 : 52;
}, Ar = (t, l, a) => {
const o = B(t), p = B(l), y = kr(o, p);
let s = 0, c = 1;
for (let d = o; d <= p; ++d) {
const E = a ? V(d) : (V(d) + 6) % 7, u = me(d);
let i = 0, m = 1, b = E;
for (; i < 12; ) {
for (let R = 0; R < u[i]; ++R)
y[b % 7][~~(b / 7) + s] = c, b++, m++, c++;
m > u[i] && (m = 1, i++);
const o = V(t);
return l || o === 0 ? 53 : 52;
}, Ar = (t, l, o) => {
const i = L(t), d = L(l), y = kr(i, d);
let h = 0, a = 1;
for (let c = i; c <= d; ++c) {
const m = o ? V(c) : (V(c) + 6) % 7, f = me(c);
let u = 0, R = 1, g = m;
for (; u < 12; ) {
for (let D = 0; D < f[u]; ++D)
y[g % 7][~~(g / 7) + h] = a, g++, R++, a++;
R > f[u] && (R = 1, u++);
}
s += ~~(b / 7);
h += ~~(g / 7);
}
return y;
}, qe = (t, l, a) => {
const o = B(t), p = B(l), y = Pr(o, p);
let s = 0;
for (let c = o; c <= p; ++c) {
const d = a ? V(c) : (V(c) + 6) % 7, E = me(c);
let u = 0, i = 1, m = d;
for (; u < 12; ) {
for (let b = 0; b < E[u]; ++b) {
const R = wr(c, u + 1, i);
y[m % 7][~~(m / 7) + s] = R, m++, i++;
}, qe = (t, l, o) => {
const i = L(t), d = L(l), y = Pr(i, d);
let h = 0;
for (let a = i; a <= d; ++a) {
const c = o ? V(a) : (V(a) + 6) % 7, m = me(a);
let f = 0, u = 1, R = c;
for (; f < 12; ) {
for (let g = 0; g < m[f]; ++g) {
const D = wr(a, f + 1, u);
y[R % 7][~~(R / 7) + h] = D, R++, u++;
}
i > E[u] && (i = 1, u++);
u > m[f] && (u = 1, f++);
}
s += ~~(m / 7);
h += ~~(R / 7);
}
return y;
}, le = (t, l, a) => {
const o = `${t}-01-01`, p = Mr(o, l), y = Ar(o, l, a);
for (let s = 0; s < y.length; ++s)
for (let c = 0; c < y[s].length; ++c)
if (p === y[s][c])
return { row: s, col: c };
}, le = (t, l, o) => {
const i = `${t}-01-01`, d = Mr(i, l), y = Ar(i, l, o);
for (let h = 0; h < y.length; ++h)
for (let a = 0; a < y[h].length; ++a)
if (d === y[h][a])
return { row: h, col: a };
return { row: 0, col: 0 };
}, Mr = (t, l) => {
const a = new Date(t);
return (new Date(l).getTime() - a.getTime()) / (1e3 * 60 * 60 * 24) + 1;
}, Ir = (t, l, a, o) => {
const { row: p, col: y } = le(
B(t),
const o = new Date(t);
return (new Date(l).getTime() - o.getTime()) / (1e3 * 60 * 60 * 24) + 1;
}, Ir = (t, l, o, i) => {
const { row: d, col: y } = le(
L(t),
t,
o
), { col: s } = le(B(t), l, o), c = [], d = [];
let E = -1, u = 0;
for (let i = y; i <= s; ++i)
i === y ? u = Ve(a[p][i]) - 1 : u = Ve(a[0][i]) - 1, u !== E && (c.push(Sr[u]), E = u, d.push(0)), d[d.length - 1]++;
return { months: c, colSpans: d };
i
), { col: h } = le(L(t), l, i), a = [], c = [];
let m = -1, f = 0;
for (let u = y; u <= h; ++u)
u === y ? f = Ve(o[d][u]) - 1 : f = Ve(o[0][u]) - 1, f !== m && (a.push(Sr[f]), m = f, c.push(0)), c[c.length - 1]++;
return { months: a, colSpans: c };
};
function $r({ start: t, end: l, textColor: a, startsOnSunday: o, cy: p }) {
const y = qe(t, l, o), { day: s } = ne(t), { year: c, month: d, day: E } = ne(l), u = Cr(`${c}-${d}-01`), { months: i, colSpans: m } = Ir(t, l, y, o);
return /* @__PURE__ */ x.jsx("thead", { children: /* @__PURE__ */ x.jsxs("tr", { children: [
/* @__PURE__ */ x.jsx(ge, { textColor: a, style: { width: "4em", fontSize: p }, colSpan: 1, children: " " }),
i.map((b, R) => {
let T = m[R];
m.length === 1 && m[0] === 1 ? T++ : i.length > 1 && E < 10 && u !== 0 && R === i.length - 2 ? T-- : i.length > 1 && E < 10 && u !== 0 && R === i.length - 1 && T++;
const k = R === 0 && i.length > 1 && T === 1 && s >= 19;
return /* @__PURE__ */ x.jsx(
function $r({ start: t, end: l, textColor: o, startsOnSunday: i, cy: d }) {
const y = qe(t, l, i), { day: h } = ne(t), { year: a, month: c, day: m } = ne(l), f = Cr(`${a}-${c}-01`), { months: u, colSpans: R } = Ir(t, l, y, i);
return /* @__PURE__ */ F.jsx("thead", { children: /* @__PURE__ */ F.jsxs("tr", { children: [
/* @__PURE__ */ F.jsx(ge, { textColor: o, style: { width: "4em", fontSize: d }, colSpan: 1, children: " " }),
u.map((g, D) => {
let _ = R[D];
R.length === 1 && R[0] === 1 ? _++ : u.length > 1 && m < 10 && f !== 0 && D === u.length - 2 ? _-- : u.length > 1 && m < 10 && f !== 0 && D === u.length - 1 && _++;
const k = D === 0 && u.length > 1 && _ === 1 && h >= 19;
return /* @__PURE__ */ F.jsx(
ge,
{
textColor: a,
style: { fontSize: p },
colSpan: T,
textColor: o,
style: { fontSize: d },
colSpan: _,
hide: k,
children: b
children: g
},
R
D
);

@@ -1037,48 +1051,59 @@ })

}
function Nr({ themeProps: t, dataLevel: l, style: a, dataTooltip: o, tooltipSize: p, ...y }) {
const s = gr(null), [c, d] = mr(-10), E = (i) => {
if (!i)
function Nr({
theme: t,
themeProps: l,
dataLevel: o,
style: i,
dataTooltip: d,
tooltipSize: y,
...h
}) {
const a = gr(null), [c, m] = mr(-10), f = (g) => {
if (!g)
return 0;
let m = 0;
return i.childNodes.forEach((b) => {
b.nodeType === Node.ELEMENT_NODE && window.getComputedStyle(b).display !== "none" && m++;
}), m;
}, u = (i) => {
if (!i || !i.parentNode)
let D = 0;
return g.childNodes.forEach((_) => {
_.nodeType === Node.ELEMENT_NODE && window.getComputedStyle(_).display !== "none" && D++;
}), D;
}, u = (g) => {
if (!g || !g.parentNode)
return -1;
const m = Array.from(i.parentNode.childNodes);
let b = 0;
for (let R = 0; R < i.cellIndex; R++)
m[R].style.display !== "none" && b++;
return b;
const D = Array.from(g.parentNode.childNodes);
let _ = 0;
for (let k = 0; k < g.cellIndex; k++)
D[k].style.display !== "none" && _++;
return _;
};
return Er(() => {
const i = () => {
var m;
if (s.current) {
const b = E((m = s.current) == null ? void 0 : m.parentNode), R = u(s.current);
if (b) {
let T = -10;
const k = R / b;
k > 0.9 ? T = Math.max(~~(s.current.cellIndex * -150) / b, -150) : k > 0.8 ? T = Math.max(~~(s.current.cellIndex * -130) / b, -140) : k > 0.66 ? T = Math.max(~~(s.current.cellIndex * -120) / b, -120) : k > 0.33 ? T = Math.max(~~(s.current.cellIndex * -100) / b, -100) : k > 0.2 ? T = Math.max(~~(s.current.cellIndex * -70) / b, -70) : T = Math.max(~~(s.current.cellIndex * -50) * 5 / b, -50), d(T);
Er(() => {
const g = () => {
var D;
if (a.current) {
const _ = f((D = a.current) == null ? void 0 : D.parentNode), k = u(a.current);
if (_) {
let w = -10;
const S = k / _;
S > 0.9 ? w = Math.max(~~(a.current.cellIndex * -150) / _, -150) : S > 0.8 ? w = Math.max(~~(a.current.cellIndex * -130) / _, -140) : S > 0.66 ? w = Math.max(~~(a.current.cellIndex * -120) / _, -120) : S > 0.33 ? w = Math.max(~~(a.current.cellIndex * -100) / _, -100) : S > 0.2 ? w = Math.max(~~(a.current.cellIndex * -70) / _, -70) : w = Math.max(~~(a.current.cellIndex * -50) * 5 / _, -50), m(w);
}
}
};
return s.current && s.current.addEventListener("mouseover", i), () => {
s.current && s.current.removeEventListener("mouseover", i);
return a.current && a.current.addEventListener("mouseover", g), () => {
a.current && a.current.removeEventListener("mouseover", g);
};
}, []), /* @__PURE__ */ x.jsx(
}, []);
const R = (g) => g === "emoji_positive" || g === "emoji_negative";
return /* @__PURE__ */ F.jsx(
"td",
{
ref: s,
ref: a,
className: "calendar-cell top half-arrow",
style: {
...a,
backgroundColor: t[`level${l}`],
...i,
backgroundColor: R(t) ? "transparent" : l[`level${o}`],
"--tooltip-offset": `${c}px`,
fontSize: p
fontSize: y
},
"data-tooltip": o,
"data-level": l,
...y
"data-tooltip": d,
"data-level": o,
...h,
children: R(t) ? l[`level${o}`] : void 0
}

@@ -1090,18 +1115,18 @@ );

start: l,
end: a,
textColor: o,
startsOnSunday: p,
end: o,
textColor: i,
startsOnSunday: d,
includeBoundary: y,
cx: s,
cy: c,
cr: d,
theme: E,
onClick: u
cx: h,
cy: a,
cr: c,
theme: m,
onClick: f
}) {
const { year: i, day: m } = ne(l), { day: b } = ne(a), { row: R, col: T } = le(i, l, p), { row: k, col: P } = le(i, a, p), w = p ? ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"] : ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], ae = qe(l, a, p), H = ((M) => jr(M))(E), oe = Or(t), ie = (M, A) => A < T || A > P, se = (M, A) => A === T && M < R || A === P && M > k, $ = () => T === P || b - m <= 7;
return /* @__PURE__ */ x.jsx("tbody", { children: w.map((M, A) => /* @__PURE__ */ x.jsxs("tr", { children: [
/* @__PURE__ */ x.jsx(ge, { tabIndex: 0, textColor: o, style: { textAlign: "right", fontSize: c, lineHeight: 0 }, children: M }),
ae[A].map((Y, F) => {
if (P === 0 && F === 1)
return /* @__PURE__ */ x.jsx(
const { year: u, day: R } = ne(l), { day: g } = ne(o), { row: D, col: _ } = le(u, l, d), { row: k, col: w } = le(u, o, d), S = d ? ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"] : ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], ae = qe(l, o, d), H = ((M) => jr(M))(m), oe = Or(t), ie = (M, A) => A < _ || A > w, se = (M, A) => A === _ && M < D || A === w && M > k, $ = () => _ === w || g - R <= 7;
return /* @__PURE__ */ F.jsx("tbody", { children: S.map((M, A) => /* @__PURE__ */ F.jsxs("tr", { children: [
/* @__PURE__ */ F.jsx(ge, { tabIndex: 0, textColor: i, style: { textAlign: "right", fontSize: a, lineHeight: 0 }, children: M }),
ae[A].map((Y, C) => {
if (w === 0 && C === 1)
return /* @__PURE__ */ F.jsx(
"td",

@@ -1111,6 +1136,6 @@ {

padding: 0,
width: $() ? s : 0,
height: $() ? c : 0,
width: $() ? h : 0,
height: $() ? a : 0,
outline: "none",
borderRadius: d,
borderRadius: c,
outlineOffset: "-1px",

@@ -1120,8 +1145,8 @@ shapeRendering: "geometricPrecision"

},
F
C
);
if (ie(A, F))
return /* @__PURE__ */ x.jsx("td", { style: { padding: "0", display: "none" } }, F);
if (se(A, F))
return /* @__PURE__ */ x.jsx(
if (ie(A, C))
return /* @__PURE__ */ F.jsx("td", { style: { padding: "0", display: "none" } }, C);
if (se(A, C))
return /* @__PURE__ */ F.jsx(
"td",

@@ -1131,6 +1156,6 @@ {

padding: 0,
width: $() ? s : 0,
height: $() ? c : 0,
width: $() ? h : 0,
height: $() ? a : 0,
outline: y ? `1px solid ${H.level0}` : "none",
borderRadius: d,
borderRadius: c,
outlineOffset: "-1px",

@@ -1140,24 +1165,25 @@ shapeRendering: "geometricPrecision"

},
F
C
);
const C = oe.get(Y), N = xr(Y), G = (K) => {
const O = oe.get(Y), N = xr(Y), G = (K) => {
const X = {
date: Y,
data: C == null ? void 0 : C.data
data: O == null ? void 0 : O.data
};
u && u(K, X);
f && f(K, X);
};
return /* @__PURE__ */ x.jsx(
return /* @__PURE__ */ F.jsx(
Nr,
{
tabIndex: -1,
style: { width: s, height: c, borderRadius: d },
dataLevel: C !== void 0 ? C.level : 0,
"data-content": JSON.stringify(C == null ? void 0 : C.data),
style: { width: h, height: a, borderRadius: c },
dataLevel: O !== void 0 ? O.level : 0,
"data-content": JSON.stringify(O == null ? void 0 : O.data),
dataTooltip: N,
tooltipSize: c,
tooltipSize: a,
theme: m,
themeProps: H,
onClick: G
},
F
C
);

@@ -1169,18 +1195,18 @@ })

data: t = [],
start: l = Be(J(), 0, 1),
end: a = Be(J(), 11, 31),
textColor: o = "#000",
startsOnSunday: p = !0,
start: l = Le(J(), 0, 1),
end: o = Le(J(), 11, 31),
textColor: i = "#000",
startsOnSunday: d = !0,
includeBoundary: y = !0,
cx: s = 10,
cy: c = 10,
cr: d = 2,
theme: E = "grass",
onCellClick: u = () => {
cx: h = 10,
cy: a = 10,
cr: c = 2,
theme: m = "grass",
onCellClick: f = () => {
},
style: i
style: u
}) {
return /* @__PURE__ */ x.jsx("div", { className: "container", style: i, children: /* @__PURE__ */ x.jsxs("table", { children: [
/* @__PURE__ */ x.jsx($r, { start: l, end: a, textColor: o, startsOnSunday: p, cy: c }),
/* @__PURE__ */ x.jsx(
return /* @__PURE__ */ F.jsx("div", { className: "container", style: u, children: /* @__PURE__ */ F.jsxs("table", { children: [
/* @__PURE__ */ F.jsx($r, { start: l, end: o, textColor: i, startsOnSunday: d, cy: a }),
/* @__PURE__ */ F.jsx(
Yr,

@@ -1190,11 +1216,11 @@ {

start: l,
end: a,
textColor: o,
startsOnSunday: p,
end: o,
textColor: i,
startsOnSunday: d,
includeBoundary: y,
cx: s,
cy: c,
cr: d,
theme: E,
onClick: u
cx: h,
cy: a,
cr: c,
theme: m,
onClick: f
}

@@ -1207,7 +1233,7 @@ )

jr as createTheme,
Lr as getArraySum,
Br as getArraySum,
Jr as getColumnSpansForYears,
J as getCurrentYear,
Tr as getDateDetails,
Be as getDateString,
Le as getDateString,
xr as getDateTooltip,

@@ -1223,6 +1249,6 @@ qe as getDayArray,

ne as parseDateFromDateString,
Br as parseDayFromDateString,
Lr as parseDayFromDateString,
Or as parseInputData,
Ve as parseMonthFromDateString,
B as parseYearFromDateString
L as parseYearFromDateString
};

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

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

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

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

@@ -113,0 +113,0 @@ */

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

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

@@ -127,3 +127,3 @@ # react-contribution-calendar

// Replace `theme` attribute with belows
<ContributionCalendar data={[]} theme={'grass'} />
<ContributionCalendar theme={'grass'} />
```

@@ -133,2 +133,6 @@

#### `empty`
<img src="./images/empty.png" alt="empty" with=600 />
#### `grass`

@@ -138,2 +142,10 @@

#### `cherry`
<img src="./images/cherry.png" alt="cherry" with=600 />
#### `cherry_blossom`
<img src="./images/cherry_blossom.png" alt="cherry_blossom" with=600 />
#### `pink`

@@ -143,2 +155,10 @@

#### `ocean`
<img src="./images/ocean.png" alt="ocean" with=600 />
#### `sky`
<img src="./images/sky.png" alt="sky" with=600 />
#### `halloween`

@@ -152,26 +172,58 @@

#### `cherry`
#### `purquoise`
<img src="./images/cherry.png" alt="cherry" with=600 />
<img src="./images/purquoise.png" alt="purquoise" with=600 />
#### `cherry_blossom`
#### `mustard`
<img src="./images/cherry_blossom.png" alt="cherry_blossom" with=600 />
<img src="./images/mustard.png" alt="mustard" with=600 />
#### `sky`
#### `gray`
<img src="./images/sky.png" alt="sky" with=600 />
<img src="./images/gray.png" alt="gray" with=600 />
#### `purquoise`
#### `vomit`
<img src="./images/purquoise.png" alt="purquoise" with=600 />
<img src="./images/vomit.png" alt="vomit" with=600 />
#### `blue_pop`
#### `neonpunk`
<img src="./images/blue_pop.png" alt="blue_pop" with=600 />
<img src="./images/neonpunk.png" alt="neonpunk" with=600 />
#### `mustard`
#### `citypop`
<img src="./images/mustard.png" alt="mustard" with=600 />
<img src="./images/citypop.png" alt="citypop" with=600 />
#### `coral`
<img src="./images/coral.png" alt="coral" with=600 />
#### `emoji_positive`
<img src="./images/emoji_positive.png" alt="emoji_positive" with=600 />
```tsx
emoji_positive: {
level0: '🫥',
level1: '😢',
level2: '😞',
level3: '🙂',
level4: '😃',
},
```
#### `emoji_negative`
<img src="./images/emoji_negative.png" alt="emoji_negative" with=600 />
```tsx
emoji_negative: {
level0: '😃',
level1: '🙂',
level2: '😕',
level3: '😢',
level4: '🫥',
},
```
<br />

@@ -181,2 +233,6 @@

#### `dark_empty`
<img src="./images/dark_empty.png" alt="dark_empty" with=600 />
#### `dark_grass`

@@ -186,2 +242,10 @@

#### `dark_cherry`
<img src="./images/dark_cherry.png" alt="dark_cherry" with=600 />
#### `dark_cherry_blossom`
<img src="./images/dark_cherry_blossom.png" alt="dark_cherry_blossom" with=600 />
#### `dark_pink`

@@ -191,2 +255,10 @@

#### `dark_ocean`
<img src="./images/dark_ocean.png" alt="dark_ocean" with=600 />
#### `dark_sky`
<img src="./images/dark_sky.png" alt="dark_sky" with=600 />
#### `dark_halloween`

@@ -200,10 +272,14 @@

#### `dark_blue`
#### `dark_purquoise`
<img src="./images/dark_blue.png" alt="dark_blue" with=600 />
<img src="./images/dark_purquoise.png" alt="dark_purquoise" with=600 />
#### `dark_ocean`
#### `dark_mustard`
<img src="./images/dark_ocean.png" alt="dark_ocean" with=600 />
<img src="./images/dark_mustard.png" alt="dark_mustard" with=600 />
#### `dark_gray`
<img src="./images/dark_gray.png" alt="dark_gray" with=600 />
#### `dark_vomit`

@@ -213,2 +289,14 @@

#### `dark_neonpunk`
<img src="./images/dark_neonpunk.png" alt="dark_neonpunk" with=600 />
#### `dark_citypop`
<img src="./images/dark_citypop.png" alt="dark_citypop" with=600 />
#### `dark_coral`
<img src="./images/dark_coral.png" alt="dark_coral" with=600 />
<br />

@@ -231,3 +319,3 @@

return <ContributionCalendar data={[]} theme={customTheme} />
return <ContributionCalendar theme={customTheme} />
}

@@ -244,3 +332,2 @@ ```

<ContributionCalendar
data={[]}
theme={{

@@ -247,0 +334,0 @@ /* Assign theme properties directly */

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