react-contribution-calendar
Advanced tools
Comparing version 1.1.0 to 1.1.1
import './styles/style.css'; | ||
import Ie from "react"; | ||
var oe = { exports: {} }, B = {}; | ||
import Ne from "react"; | ||
var ie = { exports: {} }, W = {}; | ||
/** | ||
@@ -13,21 +13,21 @@ * @license React | ||
*/ | ||
var Pe; | ||
var Ae; | ||
function hr() { | ||
if (Pe) | ||
return B; | ||
Pe = 1; | ||
var n = Ie, a = Symbol.for("react.element"), i = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, v = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: !0, ref: !0, __self: !0, __source: !0 }; | ||
function y(_, b, h) { | ||
var c, d = {}, m = null, D = null; | ||
h !== void 0 && (m = "" + h), b.key !== void 0 && (m = "" + b.key), b.ref !== void 0 && (D = b.ref); | ||
for (c in b) | ||
l.call(b, c) && !p.hasOwnProperty(c) && (d[c] = b[c]); | ||
if (_ && _.defaultProps) | ||
for (c in b = _.defaultProps, b) | ||
d[c] === void 0 && (d[c] = b[c]); | ||
return { $$typeof: a, type: _, key: m, ref: D, props: d, _owner: v.current }; | ||
if (Ae) | ||
return W; | ||
Ae = 1; | ||
var n = Ne, l = Symbol.for("react.element"), a = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, u = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 }; | ||
function d(p, h, b) { | ||
var f, E = {}, F = null, x = null; | ||
b !== void 0 && (F = "" + b), h.key !== void 0 && (F = "" + h.key), h.ref !== void 0 && (x = h.ref); | ||
for (f in h) | ||
o.call(h, f) && !y.hasOwnProperty(f) && (E[f] = h[f]); | ||
if (p && p.defaultProps) | ||
for (f in h = p.defaultProps, h) | ||
E[f] === void 0 && (E[f] = h[f]); | ||
return { $$typeof: l, type: p, key: F, ref: x, props: E, _owner: u.current }; | ||
} | ||
return B.Fragment = i, B.jsx = y, B.jsxs = y, B; | ||
return W.Fragment = a, W.jsx = d, W.jsxs = d, W; | ||
} | ||
var L = {}; | ||
var B = {}; | ||
/** | ||
@@ -42,26 +42,26 @@ * @license React | ||
*/ | ||
var Ae; | ||
var Me; | ||
function gr() { | ||
return Ae || (Ae = 1, process.env.NODE_ENV !== "production" && function() { | ||
var n = Ie, a = Symbol.for("react.element"), i = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), y = Symbol.for("react.provider"), _ = Symbol.for("react.context"), b = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), D = Symbol.for("react.offscreen"), J = Symbol.iterator, M = "@@iterator"; | ||
function j(e) { | ||
return Me || (Me = 1, process.env.NODE_ENV !== "production" && function() { | ||
var n = Ne, l = Symbol.for("react.element"), a = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), p = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), F = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), L = Symbol.iterator, X = "@@iterator"; | ||
function Z(e) { | ||
if (e === null || typeof e != "object") | ||
return null; | ||
var r = J && e[J] || e[M]; | ||
var r = L && e[L] || e[X]; | ||
return typeof r == "function" ? r : null; | ||
} | ||
var O = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
function E(e) { | ||
var T = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
function m(e) { | ||
{ | ||
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++) | ||
t[o - 1] = arguments[o]; | ||
V("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]; | ||
J("error", e, t); | ||
} | ||
} | ||
function V(e, r, t) { | ||
function J(e, r, t) { | ||
{ | ||
var o = O.ReactDebugCurrentFrame, u = o.getStackAddendum(); | ||
u !== "" && (r += "%s", t = t.concat([u])); | ||
var g = t.map(function(f) { | ||
return String(f); | ||
var i = T.ReactDebugCurrentFrame, v = i.getStackAddendum(); | ||
v !== "" && (r += "%s", t = t.concat([v])); | ||
var g = t.map(function(c) { | ||
return String(c); | ||
}); | ||
@@ -71,25 +71,25 @@ g.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, g); | ||
} | ||
var k = !1, We = !1, Be = !1, Le = !1, Je = !1, fe; | ||
fe = Symbol.for("react.module.reference"); | ||
var j = !1, k = !1, Be = !1, Le = !1, Je = !1, ce; | ||
ce = Symbol.for("react.module.reference"); | ||
function Ve(e) { | ||
return !!(typeof e == "string" || typeof e == "function" || e === l || e === p || Je || e === v || e === h || e === c || Le || e === D || k || We || Be || typeof e == "object" && e !== null && (e.$$typeof === m || e.$$typeof === d || e.$$typeof === y || e.$$typeof === _ || e.$$typeof === b || // This needs to include all possible module reference object | ||
return !!(typeof e == "string" || typeof e == "function" || e === o || e === y || Je || e === u || e === b || e === f || Le || e === x || j || k || Be || typeof e == "object" && e !== null && (e.$$typeof === F || e.$$typeof === E || e.$$typeof === d || e.$$typeof === p || e.$$typeof === h || // 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 === fe || e.getModuleId !== void 0)); | ||
e.$$typeof === ce || e.getModuleId !== void 0)); | ||
} | ||
function Ue(e, r, t) { | ||
var o = e.displayName; | ||
if (o) | ||
return o; | ||
var u = r.displayName || r.name || ""; | ||
return u !== "" ? t + "(" + u + ")" : t; | ||
var i = e.displayName; | ||
if (i) | ||
return i; | ||
var v = r.displayName || r.name || ""; | ||
return v !== "" ? t + "(" + v + ")" : t; | ||
} | ||
function ce(e) { | ||
function ue(e) { | ||
return e.displayName || "Context"; | ||
} | ||
function T(e) { | ||
function C(e) { | ||
if (e == null) | ||
return null; | ||
if (typeof e.tag == "number" && E("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" && m("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 l: | ||
case o: | ||
return "Fragment"; | ||
case i: | ||
case a: | ||
return "Portal"; | ||
case p: | ||
case y: | ||
return "Profiler"; | ||
case v: | ||
case u: | ||
return "StrictMode"; | ||
case h: | ||
case b: | ||
return "Suspense"; | ||
case c: | ||
case f: | ||
return "SuspenseList"; | ||
@@ -115,17 +115,17 @@ } | ||
switch (e.$$typeof) { | ||
case _: | ||
case p: | ||
var r = e; | ||
return ce(r) + ".Consumer"; | ||
case y: | ||
return ue(r) + ".Consumer"; | ||
case d: | ||
var t = e; | ||
return ce(t._context) + ".Provider"; | ||
case b: | ||
return ue(t._context) + ".Provider"; | ||
case h: | ||
return Ue(e, e.render, "ForwardRef"); | ||
case d: | ||
var o = e.displayName || null; | ||
return o !== null ? o : T(e.type) || "Memo"; | ||
case m: { | ||
var u = e, g = u._payload, f = u._init; | ||
case E: | ||
var i = e.displayName || null; | ||
return i !== null ? i : C(e.type) || "Memo"; | ||
case F: { | ||
var v = e, g = v._payload, c = v._init; | ||
try { | ||
return T(f(g)); | ||
return C(c(g)); | ||
} catch { | ||
@@ -138,14 +138,14 @@ return null; | ||
} | ||
var P = Object.assign, N = 0, ue, ve, de, pe, ye, be, he; | ||
function ge() { | ||
var P = Object.assign, N = 0, ve, de, pe, ye, be, he, ge; | ||
function me() { | ||
} | ||
ge.__reactDisabledLog = !0; | ||
me.__reactDisabledLog = !0; | ||
function qe() { | ||
{ | ||
if (N === 0) { | ||
ue = console.log, ve = console.info, de = console.warn, pe = console.error, ye = console.group, be = console.groupCollapsed, he = console.groupEnd; | ||
ve = console.log, de = console.info, pe = console.warn, ye = console.error, be = console.group, he = console.groupCollapsed, ge = console.groupEnd; | ||
var e = { | ||
configurable: !0, | ||
enumerable: !0, | ||
value: ge, | ||
value: me, | ||
writable: !0 | ||
@@ -176,66 +176,66 @@ }; | ||
log: P({}, e, { | ||
value: ue | ||
value: ve | ||
}), | ||
info: P({}, e, { | ||
value: ve | ||
value: de | ||
}), | ||
warn: P({}, e, { | ||
value: de | ||
value: pe | ||
}), | ||
error: P({}, e, { | ||
value: pe | ||
value: ye | ||
}), | ||
group: P({}, e, { | ||
value: ye | ||
value: be | ||
}), | ||
groupCollapsed: P({}, e, { | ||
value: be | ||
value: he | ||
}), | ||
groupEnd: P({}, e, { | ||
value: he | ||
value: ge | ||
}) | ||
}); | ||
} | ||
N < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue."); | ||
N < 0 && m("disabledDepth fell below zero. This is a bug in React. Please file an issue."); | ||
} | ||
} | ||
var Z = O.ReactCurrentDispatcher, Q; | ||
function U(e, r, t) { | ||
var Q = T.ReactCurrentDispatcher, ee; | ||
function V(e, r, t) { | ||
{ | ||
if (Q === void 0) | ||
if (ee === void 0) | ||
try { | ||
throw Error(); | ||
} catch (u) { | ||
var o = u.stack.trim().match(/\n( *(at )?)/); | ||
Q = o && o[1] || ""; | ||
} catch (v) { | ||
var i = v.stack.trim().match(/\n( *(at )?)/); | ||
ee = i && i[1] || ""; | ||
} | ||
return ` | ||
` + Q + e; | ||
` + ee + e; | ||
} | ||
} | ||
var ee = !1, q; | ||
var re = !1, U; | ||
{ | ||
var ze = typeof WeakMap == "function" ? WeakMap : Map; | ||
q = new ze(); | ||
var He = typeof WeakMap == "function" ? WeakMap : Map; | ||
U = new He(); | ||
} | ||
function me(e, r) { | ||
if (!e || ee) | ||
function Ee(e, r) { | ||
if (!e || re) | ||
return ""; | ||
{ | ||
var t = q.get(e); | ||
var t = U.get(e); | ||
if (t !== void 0) | ||
return t; | ||
} | ||
var o; | ||
ee = !0; | ||
var u = Error.prepareStackTrace; | ||
var i; | ||
re = !0; | ||
var v = Error.prepareStackTrace; | ||
Error.prepareStackTrace = void 0; | ||
var g; | ||
g = Z.current, Z.current = null, qe(); | ||
g = Q.current, Q.current = null, qe(); | ||
try { | ||
if (r) { | ||
var f = function() { | ||
var c = function() { | ||
throw Error(); | ||
}; | ||
if (Object.defineProperty(f.prototype, "props", { | ||
if (Object.defineProperty(c.prototype, "props", { | ||
set: function() { | ||
@@ -246,14 +246,14 @@ throw Error(); | ||
try { | ||
Reflect.construct(f, []); | ||
} catch (C) { | ||
o = C; | ||
Reflect.construct(c, []); | ||
} catch (O) { | ||
i = O; | ||
} | ||
Reflect.construct(e, [], f); | ||
Reflect.construct(e, [], c); | ||
} else { | ||
try { | ||
f.call(); | ||
} catch (C) { | ||
o = C; | ||
c.call(); | ||
} catch (O) { | ||
i = O; | ||
} | ||
e.call(f.prototype); | ||
e.call(c.prototype); | ||
} | ||
@@ -263,23 +263,23 @@ } else { | ||
throw Error(); | ||
} catch (C) { | ||
o = C; | ||
} catch (O) { | ||
i = O; | ||
} | ||
e(); | ||
} | ||
} catch (C) { | ||
if (C && o && typeof C.stack == "string") { | ||
for (var s = C.stack.split(` | ||
`), w = o.stack.split(` | ||
`), R = s.length - 1, S = w.length - 1; R >= 1 && S >= 0 && s[R] !== w[S]; ) | ||
S--; | ||
for (; R >= 1 && S >= 0; R--, S--) | ||
if (s[R] !== w[S]) { | ||
if (R !== 1 || S !== 1) | ||
} catch (O) { | ||
if (O && i && typeof O.stack == "string") { | ||
for (var s = O.stack.split(` | ||
`), D = i.stack.split(` | ||
`), _ = s.length - 1, R = D.length - 1; _ >= 1 && R >= 0 && s[_] !== D[R]; ) | ||
R--; | ||
for (; _ >= 1 && R >= 0; _--, R--) | ||
if (s[_] !== D[R]) { | ||
if (_ !== 1 || R !== 1) | ||
do | ||
if (R--, S--, S < 0 || s[R] !== w[S]) { | ||
var x = ` | ||
` + s[R].replace(" at new ", " at "); | ||
return e.displayName && x.includes("<anonymous>") && (x = x.replace("<anonymous>", e.displayName)), typeof e == "function" && q.set(e, x), x; | ||
if (_--, R--, R < 0 || s[_] !== D[R]) { | ||
var w = ` | ||
` + s[_].replace(" at new ", " at "); | ||
return e.displayName && w.includes("<anonymous>") && (w = w.replace("<anonymous>", e.displayName)), typeof e == "function" && U.set(e, w), w; | ||
} | ||
while (R >= 1 && S >= 0); | ||
while (_ >= 1 && R >= 0); | ||
break; | ||
@@ -289,9 +289,9 @@ } | ||
} finally { | ||
ee = !1, Z.current = g, Ge(), Error.prepareStackTrace = u; | ||
re = !1, Q.current = g, Ge(), Error.prepareStackTrace = v; | ||
} | ||
var I = e ? e.displayName || e.name : "", ke = I ? U(I) : ""; | ||
return typeof e == "function" && q.set(e, ke), ke; | ||
var I = e ? e.displayName || e.name : "", Pe = I ? V(I) : ""; | ||
return typeof e == "function" && U.set(e, Pe), Pe; | ||
} | ||
function He(e, r, t) { | ||
return me(e, !1); | ||
function ze(e, r, t) { | ||
return Ee(e, !1); | ||
} | ||
@@ -302,25 +302,25 @@ function Ke(e) { | ||
} | ||
function G(e, r, t) { | ||
function q(e, r, t) { | ||
if (e == null) | ||
return ""; | ||
if (typeof e == "function") | ||
return me(e, Ke(e)); | ||
return Ee(e, Ke(e)); | ||
if (typeof e == "string") | ||
return U(e); | ||
return V(e); | ||
switch (e) { | ||
case h: | ||
return U("Suspense"); | ||
case c: | ||
return U("SuspenseList"); | ||
case b: | ||
return V("Suspense"); | ||
case f: | ||
return V("SuspenseList"); | ||
} | ||
if (typeof e == "object") | ||
switch (e.$$typeof) { | ||
case b: | ||
return He(e.render); | ||
case d: | ||
return G(e.type, r, t); | ||
case m: { | ||
var o = e, u = o._payload, g = o._init; | ||
case h: | ||
return ze(e.render); | ||
case E: | ||
return q(e.type, r, t); | ||
case F: { | ||
var i = e, v = i._payload, g = i._init; | ||
try { | ||
return G(g(u), r, t); | ||
return q(g(v), r, t); | ||
} catch { | ||
@@ -332,26 +332,26 @@ } | ||
} | ||
var z = Object.prototype.hasOwnProperty, Ee = {}, _e = O.ReactDebugCurrentFrame; | ||
var G = Object.prototype.hasOwnProperty, _e = {}, Re = T.ReactDebugCurrentFrame; | ||
function H(e) { | ||
if (e) { | ||
var r = e._owner, t = G(e.type, e._source, r ? r.type : null); | ||
_e.setExtraStackFrame(t); | ||
var r = e._owner, t = q(e.type, e._source, r ? r.type : null); | ||
Re.setExtraStackFrame(t); | ||
} else | ||
_e.setExtraStackFrame(null); | ||
Re.setExtraStackFrame(null); | ||
} | ||
function Xe(e, r, t, o, u) { | ||
function Xe(e, r, t, i, v) { | ||
{ | ||
var g = Function.call.bind(z); | ||
for (var f in e) | ||
if (g(e, f)) { | ||
var g = Function.call.bind(G); | ||
for (var c in e) | ||
if (g(e, c)) { | ||
var s = void 0; | ||
try { | ||
if (typeof e[f] != "function") { | ||
var w = Error((o || "React class") + ": " + t + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); | ||
throw w.name = "Invariant Violation", w; | ||
if (typeof e[c] != "function") { | ||
var D = Error((i || "React class") + ": " + t + " type `" + c + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[c] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); | ||
throw D.name = "Invariant Violation", D; | ||
} | ||
s = e[f](r, f, o, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); | ||
} catch (R) { | ||
s = R; | ||
s = e[c](r, c, i, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); | ||
} catch (_) { | ||
s = _; | ||
} | ||
s && !(s instanceof Error) && (H(u), E("%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).", o || "React class", t, f, typeof s), H(null)), s instanceof Error && !(s.message in Ee) && (Ee[s.message] = !0, H(u), E("Failed %s type: %s", t, s.message), H(null)); | ||
s && !(s instanceof Error) && (H(v), m("%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, c, typeof s), H(null)), s instanceof Error && !(s.message in _e) && (_e[s.message] = !0, H(v), m("Failed %s type: %s", t, s.message), H(null)); | ||
} | ||
@@ -361,3 +361,3 @@ } | ||
var Ze = Array.isArray; | ||
function re(e) { | ||
function te(e) { | ||
return Ze(e); | ||
@@ -373,3 +373,3 @@ } | ||
try { | ||
return Re(e), !1; | ||
return Se(e), !1; | ||
} catch { | ||
@@ -379,10 +379,10 @@ return !0; | ||
} | ||
function Re(e) { | ||
function Se(e) { | ||
return "" + e; | ||
} | ||
function Se(e) { | ||
function Fe(e) { | ||
if (er(e)) | ||
return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Qe(e)), Re(e); | ||
return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Qe(e)), Se(e); | ||
} | ||
var W = O.ReactCurrentOwner, rr = { | ||
var Y = T.ReactCurrentOwner, rr = { | ||
key: !0, | ||
@@ -392,6 +392,6 @@ ref: !0, | ||
__source: !0 | ||
}, Fe, we, te; | ||
te = {}; | ||
}, Te, De, ne; | ||
ne = {}; | ||
function tr(e) { | ||
if (z.call(e, "ref")) { | ||
if (G.call(e, "ref")) { | ||
var r = Object.getOwnPropertyDescriptor(e, "ref").get; | ||
@@ -404,3 +404,3 @@ if (r && r.isReactWarning) | ||
function nr(e) { | ||
if (z.call(e, "key")) { | ||
if (G.call(e, "key")) { | ||
var r = Object.getOwnPropertyDescriptor(e, "key").get; | ||
@@ -412,12 +412,12 @@ if (r && r.isReactWarning) | ||
} | ||
function ar(e, r) { | ||
if (typeof e.ref == "string" && W.current && r && W.current.stateNode !== r) { | ||
var t = T(W.current.type); | ||
te[t] || (E('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', T(W.current.type), e.ref), te[t] = !0); | ||
function lr(e, r) { | ||
if (typeof e.ref == "string" && Y.current && r && Y.current.stateNode !== r) { | ||
var t = C(Y.current.type); | ||
ne[t] || (m('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(Y.current.type), e.ref), ne[t] = !0); | ||
} | ||
} | ||
function lr(e, r) { | ||
function ar(e, r) { | ||
{ | ||
var t = function() { | ||
Fe || (Fe = !0, E("%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)); | ||
Te || (Te = !0, m("%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)); | ||
}; | ||
@@ -433,3 +433,3 @@ t.isReactWarning = !0, Object.defineProperty(e, "key", { | ||
var t = function() { | ||
we || (we = !0, E("%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)); | ||
De || (De = !0, m("%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)); | ||
}; | ||
@@ -442,6 +442,6 @@ t.isReactWarning = !0, Object.defineProperty(e, "ref", { | ||
} | ||
var ir = function(e, r, t, o, u, g, f) { | ||
var ir = function(e, r, t, i, v, g, c) { | ||
var s = { | ||
// This tag allows us to uniquely identify this as a React Element | ||
$$typeof: a, | ||
$$typeof: l, | ||
// Built-in properties that belong on the element | ||
@@ -451,3 +451,3 @@ type: e, | ||
ref: t, | ||
props: f, | ||
props: c, | ||
// Record the component responsible for creating this element. | ||
@@ -465,3 +465,3 @@ _owner: g | ||
writable: !1, | ||
value: o | ||
value: i | ||
}), Object.defineProperty(s, "_source", { | ||
@@ -471,40 +471,40 @@ configurable: !1, | ||
writable: !1, | ||
value: u | ||
value: v | ||
}), Object.freeze && (Object.freeze(s.props), Object.freeze(s)), s; | ||
}; | ||
function sr(e, r, t, o, u) { | ||
function sr(e, r, t, i, v) { | ||
{ | ||
var g, f = {}, s = null, w = null; | ||
t !== void 0 && (Se(t), s = "" + t), nr(r) && (Se(r.key), s = "" + r.key), tr(r) && (w = r.ref, ar(r, u)); | ||
var g, c = {}, s = null, D = null; | ||
t !== void 0 && (Fe(t), s = "" + t), nr(r) && (Fe(r.key), s = "" + r.key), tr(r) && (D = r.ref, lr(r, v)); | ||
for (g in r) | ||
z.call(r, g) && !rr.hasOwnProperty(g) && (f[g] = r[g]); | ||
G.call(r, g) && !rr.hasOwnProperty(g) && (c[g] = r[g]); | ||
if (e && e.defaultProps) { | ||
var R = e.defaultProps; | ||
for (g in R) | ||
f[g] === void 0 && (f[g] = R[g]); | ||
var _ = e.defaultProps; | ||
for (g in _) | ||
c[g] === void 0 && (c[g] = _[g]); | ||
} | ||
if (s || w) { | ||
var S = typeof e == "function" ? e.displayName || e.name || "Unknown" : e; | ||
s && lr(f, S), w && or(f, S); | ||
if (s || D) { | ||
var R = typeof e == "function" ? e.displayName || e.name || "Unknown" : e; | ||
s && ar(c, R), D && or(c, R); | ||
} | ||
return ir(e, s, w, u, o, W.current, f); | ||
return ir(e, s, D, v, i, Y.current, c); | ||
} | ||
} | ||
var ne = O.ReactCurrentOwner, xe = O.ReactDebugCurrentFrame; | ||
function $(e) { | ||
var le = T.ReactCurrentOwner, we = T.ReactDebugCurrentFrame; | ||
function M(e) { | ||
if (e) { | ||
var r = e._owner, t = G(e.type, e._source, r ? r.type : null); | ||
xe.setExtraStackFrame(t); | ||
var r = e._owner, t = q(e.type, e._source, r ? r.type : null); | ||
we.setExtraStackFrame(t); | ||
} else | ||
xe.setExtraStackFrame(null); | ||
we.setExtraStackFrame(null); | ||
} | ||
var ae; | ||
ae = !1; | ||
function le(e) { | ||
return typeof e == "object" && e !== null && e.$$typeof === a; | ||
function oe(e) { | ||
return typeof e == "object" && e !== null && e.$$typeof === l; | ||
} | ||
function De() { | ||
function xe() { | ||
{ | ||
if (ne.current) { | ||
var e = T(ne.current.type); | ||
if (le.current) { | ||
var e = C(le.current.type); | ||
if (e) | ||
@@ -529,6 +529,6 @@ return ` | ||
} | ||
var Te = {}; | ||
var Ce = {}; | ||
function cr(e) { | ||
{ | ||
var r = De(); | ||
var r = xe(); | ||
if (!r) { | ||
@@ -543,3 +543,3 @@ var t = typeof e == "string" ? e : e.displayName || e.name; | ||
} | ||
function Ce(e, r) { | ||
function Oe(e, r) { | ||
{ | ||
@@ -550,25 +550,25 @@ if (!e._store || e._store.validated || e.key != null) | ||
var t = cr(r); | ||
if (Te[t]) | ||
if (Ce[t]) | ||
return; | ||
Te[t] = !0; | ||
var o = ""; | ||
e && e._owner && e._owner !== ne.current && (o = " It was passed a child from " + T(e._owner.type) + "."), $(e), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, o), $(null); | ||
Ce[t] = !0; | ||
var i = ""; | ||
e && e._owner && e._owner !== le.current && (i = " It was passed a child from " + C(e._owner.type) + "."), M(e), m('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), M(null); | ||
} | ||
} | ||
function Oe(e, r) { | ||
function je(e, r) { | ||
{ | ||
if (typeof e != "object") | ||
return; | ||
if (re(e)) | ||
if (te(e)) | ||
for (var t = 0; t < e.length; t++) { | ||
var o = e[t]; | ||
le(o) && Ce(o, r); | ||
var i = e[t]; | ||
oe(i) && Oe(i, r); | ||
} | ||
else if (le(e)) | ||
else if (oe(e)) | ||
e._store && (e._store.validated = !0); | ||
else if (e) { | ||
var u = j(e); | ||
if (typeof u == "function" && u !== e.entries) | ||
for (var g = u.call(e), f; !(f = g.next()).done; ) | ||
le(f.value) && Ce(f.value, r); | ||
var v = Z(e); | ||
if (typeof v == "function" && v !== e.entries) | ||
for (var g = v.call(e), c; !(c = g.next()).done; ) | ||
oe(c.value) && Oe(c.value, r); | ||
} | ||
@@ -585,5 +585,5 @@ } | ||
t = r.propTypes; | ||
else if (typeof r == "object" && (r.$$typeof === b || // Note: Memo only checks outer props here. | ||
else if (typeof r == "object" && (r.$$typeof === h || // Note: Memo only checks outer props here. | ||
// Inner props are checked in the reconciler. | ||
r.$$typeof === d)) | ||
r.$$typeof === E)) | ||
t = r.propTypes; | ||
@@ -593,10 +593,10 @@ else | ||
if (t) { | ||
var o = T(r); | ||
Xe(t, e.props, "prop", o, e); | ||
var i = C(r); | ||
Xe(t, e.props, "prop", i, e); | ||
} else if (r.PropTypes !== void 0 && !ae) { | ||
ae = !0; | ||
var u = T(r); | ||
E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", u || "Unknown"); | ||
var v = C(r); | ||
m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", v || "Unknown"); | ||
} | ||
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); | ||
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); | ||
} | ||
@@ -607,57 +607,57 @@ } | ||
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) { | ||
var o = r[t]; | ||
if (o !== "children" && o !== "key") { | ||
$(e), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", o), $(null); | ||
var i = r[t]; | ||
if (i !== "children" && i !== "key") { | ||
M(e), m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), M(null); | ||
break; | ||
} | ||
} | ||
e.ref !== null && ($(e), E("Invalid attribute `ref` supplied to `React.Fragment`."), $(null)); | ||
e.ref !== null && (M(e), m("Invalid attribute `ref` supplied to `React.Fragment`."), M(null)); | ||
} | ||
} | ||
function je(e, r, t, o, u, g) { | ||
function ke(e, r, t, i, v, g) { | ||
{ | ||
var f = Ve(e); | ||
if (!f) { | ||
var c = Ve(e); | ||
if (!c) { | ||
var s = ""; | ||
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (s += " 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(u); | ||
w ? s += w : s += De(); | ||
var R; | ||
e === null ? R = "null" : re(e) ? R = "array" : e !== void 0 && e.$$typeof === a ? (R = "<" + (T(e.type) || "Unknown") + " />", s = " Did you accidentally export a JSX literal instead of a component?") : R = typeof e, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, s); | ||
var D = fr(v); | ||
D ? s += D : s += xe(); | ||
var _; | ||
e === null ? _ = "null" : te(e) ? _ = "array" : e !== void 0 && e.$$typeof === l ? (_ = "<" + (C(e.type) || "Unknown") + " />", s = " Did you accidentally export a JSX literal instead of a component?") : _ = typeof e, m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _, s); | ||
} | ||
var S = sr(e, r, t, u, g); | ||
if (S == null) | ||
return S; | ||
if (f) { | ||
var x = r.children; | ||
if (x !== void 0) | ||
if (o) | ||
if (re(x)) { | ||
for (var I = 0; I < x.length; I++) | ||
Oe(x[I], e); | ||
Object.freeze && Object.freeze(x); | ||
var R = sr(e, r, t, v, g); | ||
if (R == null) | ||
return R; | ||
if (c) { | ||
var w = r.children; | ||
if (w !== void 0) | ||
if (i) | ||
if (te(w)) { | ||
for (var I = 0; I < w.length; I++) | ||
je(w[I], e); | ||
Object.freeze && Object.freeze(w); | ||
} else | ||
E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."); | ||
m("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 | ||
Oe(x, e); | ||
je(w, e); | ||
} | ||
return e === l ? vr(S) : ur(S), S; | ||
return e === o ? vr(R) : ur(R), R; | ||
} | ||
} | ||
function dr(e, r, t) { | ||
return je(e, r, t, !0); | ||
return ke(e, r, t, !0); | ||
} | ||
function pr(e, r, t) { | ||
return je(e, r, t, !1); | ||
return ke(e, r, t, !1); | ||
} | ||
var yr = pr, br = dr; | ||
L.Fragment = l, L.jsx = yr, L.jsxs = br; | ||
}()), L; | ||
B.Fragment = o, B.jsx = yr, B.jsxs = br; | ||
}()), B; | ||
} | ||
process.env.NODE_ENV === "production" ? oe.exports = hr() : oe.exports = gr(); | ||
var F = oe.exports; | ||
function ie({ children: n, textColor: a, style: i, colSpan: l, ...v }) { | ||
return /* @__PURE__ */ F.jsxs("td", { className: "calendar-label", style: i, colSpan: l, ...v, children: [ | ||
/* @__PURE__ */ F.jsx("span", { className: "sr-only", children: n }), | ||
/* @__PURE__ */ F.jsx("span", { className: "calendar-label-text", "aria-hidden": "true", style: { color: a }, children: n }) | ||
process.env.NODE_ENV === "production" ? ie.exports = hr() : ie.exports = gr(); | ||
var S = ie.exports; | ||
function se({ children: n, textColor: l, style: a, colSpan: o, ...u }) { | ||
return /* @__PURE__ */ S.jsxs("td", { className: "calendar-label", style: a, colSpan: o, ...u, 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 }) | ||
] }); | ||
@@ -892,4 +892,4 @@ } | ||
} | ||
}, kr = (n = /* @__PURE__ */ new Date()) => { | ||
const a = { | ||
}, Er = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], Ar = (n = /* @__PURE__ */ new Date()) => { | ||
const l = { | ||
Sun: "Sunday", | ||
@@ -902,3 +902,3 @@ Mon: "Monday", | ||
Sat: "Saturday" | ||
}, i = { | ||
}, a = { | ||
Jan: "January", | ||
@@ -916,117 +916,116 @@ Feb: "February", | ||
Dec: "December" | ||
}, l = n.toString().split(" "); | ||
}, o = n.toString().split(" "); | ||
return { | ||
year: l[3], | ||
month: i[l[1]], | ||
day: parseInt(l[2], 10), | ||
date: a[l[0]] | ||
year: o[3], | ||
month: a[o[1]], | ||
day: parseInt(o[2], 10), | ||
date: l[o[0]] | ||
}; | ||
}, Me = (n, a, i) => `${n}-${String(a + 1).padStart(2, "0")}-${String(i).padStart(2, "0")}`, Er = (n, a, i) => `${n}-${String(a).padStart(2, "0")}-${String(i).padStart(2, "0")}`, A = (n) => +n.slice(0, 4), $e = (n) => +n.slice(5, 7), Pr = (n) => +n.slice(8, 10), _r = (n = Y()) => n % 4 === 0 && n % 100 !== 0 || n % 400 === 0, se = (n = Y()) => [31, _r(n) ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], X = (n = Y()) => new Date(n, 0, 1).getDay(), Ar = (n) => new Date(n).getDay(), Y = () => (/* @__PURE__ */ new Date()).getFullYear(), Mr = (n = Y(), a, i) => { | ||
const l = se(n), v = X(n), p = []; | ||
let y = v; | ||
for (let _ = 0; _ < 12; _++) { | ||
const b = l[_]; | ||
let h = 0; | ||
for (let c = 0; c < b; c++) | ||
y === 0 && h++, y = (y + 1) % 7; | ||
_ === 0 && v !== 0 && h++, p.push(h); | ||
}, Ie = (n, l, a) => `${n}-${String(l + 1).padStart(2, "0")}-${String(a).padStart(2, "0")}`, _r = (n, l, a) => `${n}-${String(l).padStart(2, "0")}-${String(a).padStart(2, "0")}`, A = (n) => +n.slice(0, 4), $e = (n) => +n.slice(5, 7), Mr = (n) => +n.slice(8, 10), Rr = (n = $()) => n % 4 === 0 && n % 100 !== 0 || n % 400 === 0, fe = (n = $()) => [31, Rr(n) ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], K = (n = $()) => new Date(n, 0, 1).getDay(), Ir = (n) => new Date(n).getDay(), $ = () => (/* @__PURE__ */ new Date()).getFullYear(), $r = (n = $(), l, a) => { | ||
const o = fe(n), u = K(n), y = []; | ||
let d = u; | ||
for (let p = 0; p < 12; p++) { | ||
const h = o[p]; | ||
let b = 0; | ||
for (let f = 0; f < h; f++) | ||
d === 0 && b++, d = (d + 1) % 7; | ||
p === 0 && u !== 0 && b++, y.push(b); | ||
} | ||
return n !== a && v !== 0 && a !== i && (p[0] -= 1), p; | ||
}, Rr = (n) => { | ||
const a = /* @__PURE__ */ new Map(); | ||
return n.forEach((i) => { | ||
Object.keys(i).forEach((l) => { | ||
a.set(l, i[l]); | ||
return n !== l && u !== 0 && l !== a && (y[0] -= 1), y; | ||
}, Sr = (n) => { | ||
const l = /* @__PURE__ */ new Map(); | ||
return n.forEach((a) => { | ||
Object.keys(a).forEach((o) => { | ||
l.set(o, a[o]); | ||
}); | ||
}), a; | ||
}, Sr = (n) => typeof n == "string" ? mr[n] : n, Fr = (n, a) => { | ||
let i = 0; | ||
for (let l = n; l <= a; ++l) | ||
i += Ye(n, l === n); | ||
return new Array(7).fill(0).map(() => new Array(i).fill(0)); | ||
}, wr = (n, a) => { | ||
let i = 0; | ||
for (let l = n; l <= a; ++l) | ||
i += Ye(n, l === n); | ||
return new Array(7).fill("").map(() => new Array(i).fill("")); | ||
}, Ye = (n, a) => { | ||
const i = X(n); | ||
return a || i === 0 ? 53 : 52; | ||
}, xr = (n, a) => { | ||
const i = A(n), l = A(a), v = Fr(i, l); | ||
let p = 0, y = 1; | ||
for (let _ = i; _ <= l; ++_) { | ||
const b = X(_), h = se(_); | ||
let c = 0, d = 1, m = b; | ||
for (; c < 12; ) { | ||
for (let D = 0; D < h[c]; ++D) | ||
v[m % 7][~~(m / 7) + p] = y, m++, d++, y++; | ||
d > h[c] && (d = 1, c++); | ||
}), l; | ||
}, Fr = (n) => typeof n == "string" ? mr[n] : n, Tr = (n, l) => { | ||
let a = 0; | ||
for (let o = n; o <= l; ++o) | ||
a += Ye(n, o === n); | ||
return new Array(7).fill(0).map(() => new Array(a).fill(0)); | ||
}, Dr = (n, l) => { | ||
let a = 0; | ||
for (let o = n; o <= l; ++o) | ||
a += Ye(n, o === n); | ||
return new Array(7).fill("").map(() => new Array(a).fill("")); | ||
}, Ye = (n, l) => { | ||
const a = K(n); | ||
return l || a === 0 ? 53 : 52; | ||
}, wr = (n, l) => { | ||
const a = A(n), o = A(l), u = Tr(a, o); | ||
let y = 0, d = 1; | ||
for (let p = a; p <= o; ++p) { | ||
const h = K(p), b = fe(p); | ||
let f = 0, E = 1, F = h; | ||
for (; f < 12; ) { | ||
for (let x = 0; x < b[f]; ++x) | ||
u[F % 7][~~(F / 7) + y] = d, F++, E++, d++; | ||
E > b[f] && (E = 1, f++); | ||
} | ||
p += ~~(m / 7); | ||
y += ~~(F / 7); | ||
} | ||
return v; | ||
}, Ne = (n, a) => { | ||
const i = A(n), l = A(a), v = wr(i, l); | ||
let p = 0; | ||
for (let y = i; y <= l; ++y) { | ||
const _ = X(y), b = se(y); | ||
let h = 0, c = 1, d = _; | ||
for (; h < 12; ) { | ||
for (let m = 0; m < b[h]; ++m) { | ||
const D = Er(y, h + 1, c); | ||
v[d % 7][~~(d / 7) + p] = D, d++, c++; | ||
return u; | ||
}, We = (n, l) => { | ||
const a = A(n), o = A(l), u = Dr(a, o); | ||
let y = 0; | ||
for (let d = a; d <= o; ++d) { | ||
const p = K(d), h = fe(d); | ||
let b = 0, f = 1, E = p; | ||
for (; b < 12; ) { | ||
for (let F = 0; F < h[b]; ++F) { | ||
const x = _r(d, b + 1, f); | ||
u[E % 7][~~(E / 7) + y] = x, E++, f++; | ||
} | ||
c > b[h] && (c = 1, h++); | ||
f > h[b] && (f = 1, b++); | ||
} | ||
p += ~~(d / 7); | ||
y += ~~(E / 7); | ||
} | ||
return v; | ||
}, K = (n, a) => { | ||
const i = `${n}-01-01`, l = Dr(i, a), v = xr(i, a); | ||
for (let p = 0; p < v.length; ++p) | ||
for (let y = 0; y < v[p].length; ++y) | ||
if (l === v[p][y]) | ||
return { row: p, col: y }; | ||
return u; | ||
}, z = (n, l) => { | ||
const a = `${n}-01-01`, o = xr(a, l), u = wr(a, l); | ||
for (let y = 0; y < u.length; ++y) | ||
for (let d = 0; d < u[y].length; ++d) | ||
if (o === u[y][d]) | ||
return { row: y, col: d }; | ||
return { row: 0, col: 0 }; | ||
}, Dr = (n, a) => { | ||
const i = new Date(n); | ||
return (new Date(a).getTime() - i.getTime()) / (1e3 * 60 * 60 * 24) + 1; | ||
}, xr = (n, l) => { | ||
const a = new Date(n); | ||
return (new Date(l).getTime() - a.getTime()) / (1e3 * 60 * 60 * 24) + 1; | ||
}, Cr = (n, l, a) => { | ||
const { row: o, col: u } = z(A(n), n), { col: y } = z(A(n), l), d = [], p = []; | ||
let h = -1, b = 0; | ||
for (let f = u; f <= y; ++f) | ||
f === u ? b = $e(a[o][f]) - 1 : b = $e(a[0][f]) - 1, b !== h && (d.push(Er[b]), h = b, p.push(0)), p[p.length - 1]++; | ||
return { months: d, colSpans: p }; | ||
}; | ||
function Tr({ start: n, end: a, textColor: i }) { | ||
const l = Ne(n, a), { row: v, col: p } = K(A(n), n), { col: y } = K(A(n), a), _ = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], b = [], h = []; | ||
let c = -1; | ||
for (let d = p; d <= y; ++d) { | ||
let m = 0; | ||
d === p ? m = $e(l[v][d]) - 1 : m = $e(l[0][d]) - 1, m !== c && (b.push(_[m]), c = m, h.push(0)), h[h.length - 1]++; | ||
} | ||
return /* @__PURE__ */ F.jsx("thead", { children: /* @__PURE__ */ F.jsxs("tr", { children: [ | ||
/* @__PURE__ */ F.jsx(ie, { textColor: i, style: { width: "40px" }, colSpan: 1, children: " " }), | ||
b.map((d, m) => /* @__PURE__ */ F.jsx(ie, { textColor: i, colSpan: h[m], children: d }, m)) | ||
function Or({ start: n, end: l, textColor: a }) { | ||
const o = We(n, l), { months: u, colSpans: y } = Cr(n, l, o); | ||
return /* @__PURE__ */ S.jsx("thead", { children: /* @__PURE__ */ S.jsxs("tr", { children: [ | ||
/* @__PURE__ */ S.jsx(se, { textColor: a, style: { width: "40px" }, colSpan: 1, children: " " }), | ||
u.map((d, p) => /* @__PURE__ */ S.jsx(se, { textColor: a, colSpan: y[p], children: d }, p)) | ||
] }) }); | ||
} | ||
function Cr({ children: n, style: a, dataTooltip: i, dataLevel: l, themeProps: v, ...p }) { | ||
return /* @__PURE__ */ F.jsx( | ||
function jr({ children: n, style: l, dataTooltip: a, dataLevel: o, themeProps: u, ...y }) { | ||
return /* @__PURE__ */ S.jsx( | ||
"td", | ||
{ | ||
className: "calendar-cell top half-arrow", | ||
style: { ...a, backgroundColor: v[`level${l}`] }, | ||
"data-tooltip": i, | ||
"data-level": l, | ||
...p, | ||
children: /* @__PURE__ */ F.jsx("span", { className: "sr-only", children: n }) | ||
style: { ...l, backgroundColor: u[`level${o}`] }, | ||
"data-tooltip": a, | ||
"data-level": o, | ||
...y, | ||
children: /* @__PURE__ */ S.jsx("span", { className: "sr-only", children: n }) | ||
} | ||
); | ||
} | ||
function Or({ data: n, start: a, end: i, textColor: l, theme: v }) { | ||
const p = A(a), { row: y, col: _ } = K(p, a), { row: b, col: h } = K(p, i), c = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], d = Ne(a, i), D = ((M) => Sr(M))(v), J = Rr(n); | ||
return /* @__PURE__ */ F.jsx("tbody", { children: c.map((M, j) => /* @__PURE__ */ F.jsxs("tr", { children: [ | ||
/* @__PURE__ */ F.jsx(ie, { tabIndex: 0, textColor: l, style: { textAlign: "inherit" }, children: M }), | ||
d[j].map((O, E) => { | ||
if (!O) | ||
return /* @__PURE__ */ F.jsx("td", { style: { padding: "0", display: "none" } }, E); | ||
if (E < _ || E > h) | ||
return /* @__PURE__ */ F.jsx("td", { style: { padding: "0", display: "none" } }, E); | ||
if (E === _ && j < y || E === h && j > b) | ||
return /* @__PURE__ */ F.jsx( | ||
function kr({ data: n, start: l, end: a, textColor: o, theme: u }) { | ||
const y = A(l), { row: d, col: p } = z(y, l), { row: h, col: b } = z(y, a), f = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], E = We(l, a), x = ((T) => Fr(T))(u), L = Sr(n), X = (T, m) => !E[T][m] || m < p || m > b, Z = (T, m) => m === p && T < d || m === b && T > h; | ||
return /* @__PURE__ */ S.jsx("tbody", { children: f.map((T, m) => /* @__PURE__ */ S.jsxs("tr", { children: [ | ||
/* @__PURE__ */ S.jsx(se, { tabIndex: 0, textColor: o, style: { textAlign: "inherit" }, children: T }), | ||
E[m].map((J, j) => { | ||
if (X(m, j)) | ||
return /* @__PURE__ */ S.jsx("td", { style: { padding: "0", display: "none" } }, j); | ||
if (Z(m, j)) | ||
return /* @__PURE__ */ S.jsx( | ||
"td", | ||
@@ -1042,7 +1041,7 @@ { | ||
}, | ||
E | ||
j | ||
); | ||
const V = d[j][E], k = J.get(V); | ||
return /* @__PURE__ */ F.jsx( | ||
Cr, | ||
const k = L.get(J); | ||
return /* @__PURE__ */ S.jsx( | ||
jr, | ||
{ | ||
@@ -1053,40 +1052,40 @@ tabIndex: -1, | ||
"data-content": JSON.stringify(k == null ? void 0 : k.data), | ||
dataTooltip: V, | ||
themeProps: D | ||
dataTooltip: J, | ||
themeProps: x | ||
}, | ||
E | ||
j | ||
); | ||
}) | ||
] }, M)) }); | ||
] }, T)) }); | ||
} | ||
function $r({ | ||
function Nr({ | ||
data: n = [], | ||
textColor: a = "#fff", | ||
theme: i = "grass", | ||
start: l = Me(Y(), 0, 1), | ||
end: v = Me(Y(), 11, 31) | ||
textColor: l = "#000", | ||
theme: a = "grass", | ||
start: o = Ie($(), 0, 1), | ||
end: u = Ie($(), 11, 31) | ||
}) { | ||
return /* @__PURE__ */ F.jsx("div", { className: "container", children: /* @__PURE__ */ F.jsxs("table", { children: [ | ||
/* @__PURE__ */ F.jsx(Tr, { textColor: a, start: l, end: v }), | ||
/* @__PURE__ */ F.jsx(Or, { data: n, textColor: a, theme: i, start: l, end: v }) | ||
return /* @__PURE__ */ S.jsx("div", { className: "container", children: /* @__PURE__ */ S.jsxs("table", { children: [ | ||
/* @__PURE__ */ S.jsx(Or, { textColor: l, start: o, end: u }), | ||
/* @__PURE__ */ S.jsx(kr, { data: n, textColor: l, theme: a, start: o, end: u }) | ||
] }) }); | ||
} | ||
export { | ||
$r as ContributionCalendar, | ||
Sr as createTheme, | ||
Ne as fillDayArray, | ||
xr as fillIndexArray, | ||
Mr as getColumnSpansForYears, | ||
Y as getCurrentYear, | ||
kr as getDateDetails, | ||
Me as getDateString, | ||
Ar as getDayIndexOfMonth, | ||
Dr as getDaysBetween, | ||
X as getFirstDayIndexOfYear, | ||
K as getRowAndColumnIndexFromDate, | ||
_r as isLeapYear, | ||
Pr as parseDayFromDateString, | ||
Rr as parseInputData, | ||
Nr as ContributionCalendar, | ||
Fr as createTheme, | ||
$r as getColumnSpansForYears, | ||
$ as getCurrentYear, | ||
Ar as getDateDetails, | ||
Ie as getDateString, | ||
We as getDayArray, | ||
Ir as getDayIndexOfMonth, | ||
xr as getDaysBetween, | ||
K as getFirstDayIndexOfYear, | ||
Cr as getMonthsAndColSpans, | ||
z as getRowAndColumnIndexFromDate, | ||
Rr as isLeapYear, | ||
Mr as parseDayFromDateString, | ||
Sr as parseInputData, | ||
$e as parseMonthFromDateString, | ||
A as parseYearFromDateString | ||
}; |
@@ -1,2 +0,2 @@ | ||
// Type definitions for react-contribution-calendar 1.1.0 | ||
// Type definitions for react-contribution-calendar 1.1.1 | ||
// Project: https://github.com/seiwon-yaehee/react-contribution-calendar | ||
@@ -18,3 +18,3 @@ // Definitions by: Seiwon Park <https://github.com/SeiwonPark> | ||
/** | ||
* This is for attributes of <ContributionCalendar /> function component. | ||
* This is for attributes of <ContributionCalendar /> functional component. | ||
*/ | ||
@@ -27,7 +27,9 @@ export interface ContributionCalendarProps { | ||
/** | ||
* Start date of calendar, defaults to 1st January of current year. | ||
* The starting date of calendar, defaults to 1st January of current year. | ||
* To set `start` date, `end` date should be provided as well. | ||
*/ | ||
start?: string | ||
/** | ||
* End date of calendar, defaults to 31st December of current year. | ||
* The ending date of calendar, defaults to 31st December of current year. | ||
* To set `end` date, `start` date should be provided as well. | ||
*/ | ||
@@ -34,0 +36,0 @@ end?: string |
{ | ||
"name": "react-contribution-calendar", | ||
"description": "A GitHub-like contribution calendar component for React", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
67376
1272