diff --git a/README.md b/README.md
index 33570f6e..1e61f87d 100644
--- a/README.md
+++ b/README.md
@@ -95,7 +95,8 @@ Displays a complete, interactive calendar.
|defaultActiveStartDate|The beginning of a period that shall be displayed by default. If you wish to use React-Calendar in a controlled way, use `activeStartDate` instead.|(today)|`new Date(2017, 0, 1)`|
|defaultValue|Calendar value that shall be selected initially. Can be either one value or an array of two values. If you wish to use React-Calendar in a controlled way, use `value` instead.|n/a|
- Date: `new Date()`
- An array of dates: `[new Date(2017, 0, 1), new Date(2017, 7, 1)]`|
|defaultView|Determines which calendar view shall be opened initially. Does not disable navigation. Can be `"month"`, `"year"`, `"decade"` or `"century"`. If you wish to use React-Calendar in a controlled way, use `view` instead.|The most detailed view allowed|`"year"`|
-|formatLongDate|Function called to override default formatting of day tiles. Can be used to use your own formatting function.|(default formatter)|`(locale, date) => formatDate(date, 'dd MMM YYYY')`|
+|formatDay|Function called to override default formatting of day tile labels. Can be used to use your own formatting function.|(default formatter)|`(locale, date) => formatDate(date, 'dd')`|
+|formatLongDate|Function called to override default formatting of day tile `abbr` labels. Can be used to use your own formatting function.|(default formatter)|`(locale, date) => formatDate(date, 'dd MMM YYYY')`|
|formatMonth|Function called to override default formatting of month names. Can be used to use your own formatting function.|(default formatter)|`(locale, date) => formatDate(date, 'MMM')`|
|formatMonthYear|Function called to override default formatting of months and years. Can be used to use your own formatting function.|(default formatter)|`(locale, date) => formatDate(date, 'MMMM YYYY')`|
|formatShortWeekday|Function called to override default formatting of weekday names. Can be used to use your own formatting function.|(default formatter)|`(locale, date) => formatDate(date, 'dd')`|
diff --git a/src/Calendar.jsx b/src/Calendar.jsx
index 76098958..38ab385a 100644
--- a/src/Calendar.jsx
+++ b/src/Calendar.jsx
@@ -523,6 +523,7 @@ export default class Calendar extends Component {
}
case 'month': {
const {
+ formatDay,
formatLongDate,
formatShortWeekday,
onClickWeekNumber,
@@ -536,6 +537,7 @@ export default class Calendar extends Component {
return (
{
expect(navigation.prop('formatYear')).toBe(formatYear);
});
+ it('passes formatDay to MonthView component', () => {
+ const formatDay = () => 'Day';
+ const component = shallow(
+ ,
+ );
+
+ const monthView = component.find('MonthView');
+
+ expect(monthView.prop('formatDay')).toBe(formatDay);
+ });
+
it('passes formatLongDate to MonthView component', () => {
const formatLongDate = () => 'Long date';
const component = shallow(
diff --git a/src/MonthView.spec.jsx b/src/MonthView.spec.jsx
index 539b66a5..f2776866 100644
--- a/src/MonthView.spec.jsx
+++ b/src/MonthView.spec.jsx
@@ -219,6 +219,21 @@ describe('MonthView', () => {
expect(days.prop('calendarType')).toBe('US');
});
+ it('passes formatDay flag to Days component', () => {
+ const formatDay = () => 'Day';
+
+ const component = shallow(
+ ,
+ );
+
+ const days = component.find('Days');
+
+ expect(days.prop('formatDay')).toBe(formatDay);
+ });
+
it('passes formatLongDate flag to Days component', () => {
const formatLongDate = () => 'Long date';
diff --git a/src/MonthView/Day.jsx b/src/MonthView/Day.jsx
index 968e5600..b85f1156 100644
--- a/src/MonthView/Day.jsx
+++ b/src/MonthView/Day.jsx
@@ -1,23 +1,27 @@
import React from 'react';
import PropTypes from 'prop-types';
-import { getDate, getDayStart, getDayEnd } from '@wojtekmaj/date-utils';
+import { getDayStart, getDayEnd } from '@wojtekmaj/date-utils';
import Tile from '../Tile';
import { isWeekend } from '../shared/dates';
-import { formatLongDate as defaultFormatLongDate } from '../shared/dateFormatter';
+import {
+ formatDay as defaultFormatDay,
+ formatLongDate as defaultFormatLongDate,
+} from '../shared/dateFormatter';
import { tileProps } from '../shared/propTypes';
const className = 'react-calendar__month-view__days__day';
export default function Day({
+ formatDay = defaultFormatDay,
formatLongDate = defaultFormatLongDate,
calendarType,
classes,
currentMonthIndex,
...otherProps
}) {
- const { date } = otherProps;
+ const { date, locale } = otherProps;
return (
- {getDate(date)}
+ {formatDay(locale, date)}
);
}
@@ -41,5 +45,6 @@ export default function Day({
Day.propTypes = {
...tileProps,
currentMonthIndex: PropTypes.number.isRequired,
+ formatDay: PropTypes.func,
formatLongDate: PropTypes.func,
};
diff --git a/src/MonthView/Day.spec.jsx b/src/MonthView/Day.spec.jsx
index 3cc6c081..4d529b8c 100644
--- a/src/MonthView/Day.spec.jsx
+++ b/src/MonthView/Day.spec.jsx
@@ -210,6 +210,28 @@ describe('Day', () => {
expect(testContent).toHaveLength(1);
});
+ it('uses formatDay if given', () => {
+ const locale = 'en-US';
+ const date = new Date(2018, 0, 1);
+ const formatDay = jest.fn();
+ formatDay.mockReturnValue('Mock format');
+
+ const component = mount(
+ ,
+ );
+
+ const tile = component.find('Tile');
+
+ expect(formatDay).toHaveBeenCalled();
+ expect(formatDay).toHaveBeenCalledWith(locale, date);
+ expect(tile.text()).toBe('Mock format');
+ });
+
it('uses formatLongDate if given', () => {
const locale = 'en-US';
const date = new Date(2018, 0, 1);
diff --git a/src/shared/dateFormatter.js b/src/shared/dateFormatter.js
index 3abd8f8d..9bad2403 100644
--- a/src/shared/dateFormatter.js
+++ b/src/shared/dateFormatter.js
@@ -23,17 +23,19 @@ function getSafeFormatter(options) {
}
const formatDateOptions = { day: 'numeric', month: 'numeric', year: 'numeric' };
+const formatDayOptions = { day: 'numeric' };
const formatLongDateOptions = { day: 'numeric', month: 'long', year: 'numeric' };
const formatMonthOptions = { month: 'long' };
const formatMonthYearOptions = { month: 'long', year: 'numeric' };
-const formatYearOptions = { year: 'numeric' };
const formatShortWeekdayOptions = { weekday: 'short' };
const formatWeekdayOptions = { weekday: 'long' };
+const formatYearOptions = { year: 'numeric' };
export const formatDate = getSafeFormatter(formatDateOptions);
+export const formatDay = getSafeFormatter(formatDayOptions);
export const formatLongDate = getSafeFormatter(formatLongDateOptions);
export const formatMonth = getSafeFormatter(formatMonthOptions);
export const formatMonthYear = getSafeFormatter(formatMonthYearOptions);
-export const formatYear = getSafeFormatter(formatYearOptions);
export const formatShortWeekday = getSafeFormatter(formatShortWeekdayOptions);
export const formatWeekday = getSafeFormatter(formatWeekdayOptions);
+export const formatYear = getSafeFormatter(formatYearOptions);
diff --git a/test/yarn.lock b/test/yarn.lock
index f3ebc26c..a17e5718 100644
--- a/test/yarn.lock
+++ b/test/yarn.lock
@@ -2001,24 +2001,38 @@ __metadata:
languageName: node
linkType: hard
-"@wojtekmaj/enzyme-adapter-react-17@npm:^0.3.1":
- version: 0.3.2
- resolution: "@wojtekmaj/enzyme-adapter-react-17@npm:0.3.2"
+"@wojtekmaj/enzyme-adapter-react-17@npm:^0.6.0":
+ version: 0.6.1
+ resolution: "@wojtekmaj/enzyme-adapter-react-17@npm:0.6.1"
dependencies:
- enzyme-adapter-utils: ^1.13.1
- enzyme-shallow-equal: ^1.0.4
- has: ^1.0.3
+ "@wojtekmaj/enzyme-adapter-utils": ^0.1.0
+ enzyme-shallow-equal: ^1.0.0
+ has: ^1.0.0
object.assign: ^4.1.0
- object.values: ^1.1.1
- prop-types: ^15.7.2
- react-is: ^16.13.1
- react-test-renderer: ^17.0.0-0
- semver: ^5.7.0
+ object.values: ^1.1.0
+ prop-types: ^15.7.0
+ react-is: ^17.0.0
+ react-test-renderer: ^17.0.0
peerDependencies:
enzyme: ^3.0.0
react: ^17.0.0-0
react-dom: ^17.0.0-0
- checksum: 859a1237a0b878100fd9f41c6e0a33780aa4c494fea797b073e8e81b82a14747ee7744d99b8abafeef45654409f210da26b2fd1cd1faa3dd72fbbefe4e86db6b
+ checksum: 5ffce75cd5ecdf7074060a374cefb586f8dc07808768cf0163b67462d20e9f784b3a65b0e27ea93953ced3af37182779c7847608e6d3933726d53e7fd7d34fa5
+ languageName: node
+ linkType: hard
+
+"@wojtekmaj/enzyme-adapter-utils@npm:^0.1.0":
+ version: 0.1.0
+ resolution: "@wojtekmaj/enzyme-adapter-utils@npm:0.1.0"
+ dependencies:
+ function.prototype.name: ^1.1.0
+ has: ^1.0.0
+ object.assign: ^4.1.0
+ object.fromentries: ^2.0.0
+ prop-types: ^15.7.0
+ peerDependencies:
+ react: ^17.0.0-0
+ checksum: adeda98a41e93a9197938ed7c112cfcb5b50817420e93591f0913e1f6d06d2907d4b36d7c3e3abfa086cd7d0e79412b1a48cf040bd45e586674af8a855e2d87b
languageName: node
linkType: hard
@@ -2104,25 +2118,6 @@ __metadata:
languageName: node
linkType: hard
-"airbnb-prop-types@npm:^2.16.0":
- version: 2.16.0
- resolution: "airbnb-prop-types@npm:2.16.0"
- dependencies:
- array.prototype.find: ^2.1.1
- function.prototype.name: ^1.1.2
- is-regex: ^1.1.0
- object-is: ^1.1.2
- object.assign: ^4.1.0
- object.entries: ^1.1.2
- prop-types: ^15.7.2
- prop-types-exact: ^1.2.0
- react-is: ^16.13.1
- peerDependencies:
- react: ^0.14 || ^15.0.0 || ^16.0.0-alpha
- checksum: 41b34cf2d25ce1d26da9490970a54e59efd6811e3b455d7e3975e248a11f4af9f360e620761638b35c9c8b6befea41d12086c3e0048716e8d60e13ed36415307
- languageName: node
- linkType: hard
-
"ajv-errors@npm:^1.0.0":
version: 1.0.1
resolution: "ajv-errors@npm:1.0.1"
@@ -2364,16 +2359,6 @@ __metadata:
languageName: node
linkType: hard
-"array.prototype.find@npm:^2.1.1":
- version: 2.1.1
- resolution: "array.prototype.find@npm:2.1.1"
- dependencies:
- define-properties: ^1.1.3
- es-abstract: ^1.17.4
- checksum: e786d414ee389739899a95ed06d857c965c8cf1c324e5dcf498c805fc07ca798f49850aecbf18e51eaf8d62e7dd485646104c4a060ca5198bb982b4b9dc375ea
- languageName: node
- linkType: hard
-
"array.prototype.flat@npm:^1.2.3":
version: 1.2.3
resolution: "array.prototype.flat@npm:1.2.3"
@@ -2830,6 +2815,16 @@ __metadata:
languageName: node
linkType: hard
+"call-bind@npm:^1.0.0, call-bind@npm:^1.0.2":
+ version: 1.0.2
+ resolution: "call-bind@npm:1.0.2"
+ dependencies:
+ function-bind: ^1.1.1
+ get-intrinsic: ^1.0.2
+ checksum: 18cc6107a1f028247f2b505dae73ad1c63b737addfcd43ff75159f072c5c827300c1fb66f26ee0ec70fc2fdd005ce68d65c05a2a34b74bab08c3b1921954ada9
+ languageName: node
+ linkType: hard
+
"callsites@npm:^3.0.0":
version: 3.1.0
resolution: "callsites@npm:3.1.0"
@@ -3859,23 +3854,7 @@ __metadata:
languageName: node
linkType: hard
-"enzyme-adapter-utils@npm:^1.13.1":
- version: 1.13.1
- resolution: "enzyme-adapter-utils@npm:1.13.1"
- dependencies:
- airbnb-prop-types: ^2.16.0
- function.prototype.name: ^1.1.2
- object.assign: ^4.1.0
- object.fromentries: ^2.0.2
- prop-types: ^15.7.2
- semver: ^5.7.1
- peerDependencies:
- react: 0.13.x || 0.14.x || ^15.0.0-0 || ^16.0.0-0
- checksum: 0c818df1fa72f02dd81d37ae1bb77b9040f46a3ab51b4970fe80e5e37315332fcf5d2d95edd65a56e4100fa895dc31b0d77febd6acc9f62bbf3dd0e3ce957b2d
- languageName: node
- linkType: hard
-
-"enzyme-shallow-equal@npm:^1.0.1, enzyme-shallow-equal@npm:^1.0.4":
+"enzyme-shallow-equal@npm:^1.0.0, enzyme-shallow-equal@npm:^1.0.1":
version: 1.0.4
resolution: "enzyme-shallow-equal@npm:1.0.4"
dependencies:
@@ -3944,7 +3923,7 @@ __metadata:
languageName: node
linkType: hard
-"es-abstract@npm:^1.17.0, es-abstract@npm:^1.17.0-next.1, es-abstract@npm:^1.17.4, es-abstract@npm:^1.17.5":
+"es-abstract@npm:^1.17.0, es-abstract@npm:^1.17.0-next.1, es-abstract@npm:^1.17.5":
version: 1.17.6
resolution: "es-abstract@npm:1.17.6"
dependencies:
@@ -3983,6 +3962,30 @@ __metadata:
languageName: node
linkType: hard
+"es-abstract@npm:^1.18.0-next.2":
+ version: 1.18.0
+ resolution: "es-abstract@npm:1.18.0"
+ dependencies:
+ call-bind: ^1.0.2
+ es-to-primitive: ^1.2.1
+ function-bind: ^1.1.1
+ get-intrinsic: ^1.1.1
+ has: ^1.0.3
+ has-symbols: ^1.0.2
+ is-callable: ^1.2.3
+ is-negative-zero: ^2.0.1
+ is-regex: ^1.1.2
+ is-string: ^1.0.5
+ object-inspect: ^1.9.0
+ object-keys: ^1.1.1
+ object.assign: ^4.1.2
+ string.prototype.trimend: ^1.0.4
+ string.prototype.trimstart: ^1.0.4
+ unbox-primitive: ^1.0.0
+ checksum: 019fa7c51e10532cd07ca3aa9b76e4c6ad6f421e15064205d144da08da54f8fc057edc262f6f95775e0b249ecbb753b497050dd75ab69a3c1c89cb9b734e42ca
+ languageName: node
+ linkType: hard
+
"es-module-lexer@npm:^0.4.0":
version: 0.4.1
resolution: "es-module-lexer@npm:0.4.1"
@@ -4801,6 +4804,18 @@ fsevents@^2.1.2:
languageName: node
linkType: hard
+"function.prototype.name@npm:^1.1.0":
+ version: 1.1.4
+ resolution: "function.prototype.name@npm:1.1.4"
+ dependencies:
+ call-bind: ^1.0.2
+ define-properties: ^1.1.3
+ es-abstract: ^1.18.0-next.2
+ functions-have-names: ^1.2.2
+ checksum: 7c24246177c3f9a91f8ef0954807483d3e5b77ab2bcbcc700cd0bea0718dde1a125d9c9229a2e61b10dc70ef21baa1e6e37d903f4f520f58da89b8d37c7b6527
+ languageName: node
+ linkType: hard
+
"function.prototype.name@npm:^1.1.2":
version: 1.1.2
resolution: "function.prototype.name@npm:1.1.2"
@@ -4826,6 +4841,13 @@ fsevents@^2.1.2:
languageName: node
linkType: hard
+"functions-have-names@npm:^1.2.2":
+ version: 1.2.2
+ resolution: "functions-have-names@npm:1.2.2"
+ checksum: 6a23873b0cae65983ee6fa935a6e42299df014f66dac598a8c2baeec4f0f95c22f324abf2e9a2c306f0708cda4b2c84dd767238b5733fa51eb78bc6e5aafd1d8
+ languageName: node
+ linkType: hard
+
"gauge@npm:~2.7.3":
version: 2.7.4
resolution: "gauge@npm:2.7.4"
@@ -4856,6 +4878,17 @@ fsevents@^2.1.2:
languageName: node
linkType: hard
+"get-intrinsic@npm:^1.0.2, get-intrinsic@npm:^1.1.1":
+ version: 1.1.1
+ resolution: "get-intrinsic@npm:1.1.1"
+ dependencies:
+ function-bind: ^1.1.1
+ has: ^1.0.3
+ has-symbols: ^1.0.1
+ checksum: acf1506f25a32a194cfc5c19d33835756080d970eb6e29a8a3852380106df981acef7bb9ac2002689437235221f24bcbdc1e3532b9bcacd7ff3621091fafe607
+ languageName: node
+ linkType: hard
+
"get-package-type@npm:^0.1.0":
version: 0.1.0
resolution: "get-package-type@npm:0.1.0"
@@ -5013,6 +5046,13 @@ fsevents@^2.1.2:
languageName: node
linkType: hard
+"has-bigints@npm:^1.0.1":
+ version: 1.0.1
+ resolution: "has-bigints@npm:1.0.1"
+ checksum: 1074b644f5f2c319fc31af00fe2f81b6e21e204bb46da70ff7b970fe65c56f504e697fe6b41823ba679bd4111840482a83327d3432b8d670a684da4087ed074b
+ languageName: node
+ linkType: hard
+
"has-flag@npm:^3.0.0":
version: 3.0.0
resolution: "has-flag@npm:3.0.0"
@@ -5034,6 +5074,13 @@ fsevents@^2.1.2:
languageName: node
linkType: hard
+"has-symbols@npm:^1.0.2":
+ version: 1.0.2
+ resolution: "has-symbols@npm:1.0.2"
+ checksum: 1b73928752fa9ca993fa48f7b3832c95ea408c0ec635b2d6cbaf011b94a7e6a704a9254ae6d8ecc913d4dd92f2ff760dc43aad7c7e790ddb3f627005614d8e28
+ languageName: node
+ linkType: hard
+
"has-unicode@npm:^2.0.0":
version: 2.0.1
resolution: "has-unicode@npm:2.0.1"
@@ -5080,7 +5127,7 @@ fsevents@^2.1.2:
languageName: node
linkType: hard
-"has@npm:^1.0.3":
+"has@npm:^1.0.0, has@npm:^1.0.3":
version: 1.0.3
resolution: "has@npm:1.0.3"
dependencies:
@@ -5485,6 +5532,13 @@ fsevents@^2.1.2:
languageName: node
linkType: hard
+"is-bigint@npm:^1.0.1":
+ version: 1.0.1
+ resolution: "is-bigint@npm:1.0.1"
+ checksum: dd132ab80f389d6968315d491706c5dbb3f6c4bf35b64085d74895e7f3516123ab1bcf6a9a83a63cfede688f44550a08713ed37f3ae9153afe8d0cf569a8b956
+ languageName: node
+ linkType: hard
+
"is-binary-path@npm:^1.0.0":
version: 1.0.1
resolution: "is-binary-path@npm:1.0.1"
@@ -5501,6 +5555,15 @@ fsevents@^2.1.2:
languageName: node
linkType: hard
+"is-boolean-object@npm:^1.1.0":
+ version: 1.1.0
+ resolution: "is-boolean-object@npm:1.1.0"
+ dependencies:
+ call-bind: ^1.0.0
+ checksum: 1d6047a022aa49cdf8580ac8b3d6d25da0d33a65ae00142bec2ba95c6c889de84693a0ef5acc9eabb59ba9e66fb473f47fa589ec22dd8e7ef8d88b6774e3adc6
+ languageName: node
+ linkType: hard
+
"is-buffer@npm:^1.1.5":
version: 1.1.6
resolution: "is-buffer@npm:1.1.6"
@@ -5515,6 +5578,13 @@ fsevents@^2.1.2:
languageName: node
linkType: hard
+"is-callable@npm:^1.2.3":
+ version: 1.2.3
+ resolution: "is-callable@npm:1.2.3"
+ checksum: 8180a1c4e227e204e199ff355c4f24a80f74536898e16716583aa6a09167f2cceecc188cea750a2f3ae3b163577691595ae8d22bf7bb94b4bbb9fbdfea1bc5c3
+ languageName: node
+ linkType: hard
+
"is-ci@npm:^2.0.0":
version: 2.0.0
resolution: "is-ci@npm:2.0.0"
@@ -5669,6 +5739,13 @@ fsevents@^2.1.2:
languageName: node
linkType: hard
+"is-negative-zero@npm:^2.0.1":
+ version: 2.0.1
+ resolution: "is-negative-zero@npm:2.0.1"
+ checksum: e2160af9a6fad7027bbd513e1efe9a99c780bb6af688e61e6b71084b5893f976241ca081e1ed8c18222d391ea3c1c0771cd23ab322be107150b66faf03d6ecbd
+ languageName: node
+ linkType: hard
+
"is-number-object@npm:^1.0.4":
version: 1.0.4
resolution: "is-number-object@npm:1.0.4"
@@ -5749,6 +5826,16 @@ fsevents@^2.1.2:
languageName: node
linkType: hard
+"is-regex@npm:^1.1.2":
+ version: 1.1.2
+ resolution: "is-regex@npm:1.1.2"
+ dependencies:
+ call-bind: ^1.0.2
+ has-symbols: ^1.0.1
+ checksum: 5e2f80f495f5297d1295730820a4be31f3848ca92357cfef1b2a61c09fe0fcd3f68c34f3042a5b81885e249cd50eac8efac472ad6da7ecb497bb2d7bad402a9a
+ languageName: node
+ linkType: hard
+
"is-stream@npm:^1.1.0":
version: 1.1.0
resolution: "is-stream@npm:1.1.0"
@@ -5777,7 +5864,7 @@ fsevents@^2.1.2:
languageName: node
linkType: hard
-"is-symbol@npm:^1.0.2":
+"is-symbol@npm:^1.0.2, is-symbol@npm:^1.0.3":
version: 1.0.3
resolution: "is-symbol@npm:1.0.3"
dependencies:
@@ -7440,6 +7527,13 @@ fsevents@^2.1.2:
languageName: node
linkType: hard
+"object-inspect@npm:^1.9.0":
+ version: 1.9.0
+ resolution: "object-inspect@npm:1.9.0"
+ checksum: 63b412167d716e332b3233090a9e8cc7951479a6971629fb8a3d00135a2329136c697fbd2f56e48bb132928f01bd0f8c5fe2d7386222f217228ca697b8c3932a
+ languageName: node
+ linkType: hard
+
"object-is@npm:^1.0.1, object-is@npm:^1.0.2, object-is@npm:^1.1.2":
version: 1.1.2
resolution: "object-is@npm:1.1.2"
@@ -7478,6 +7572,18 @@ fsevents@^2.1.2:
languageName: node
linkType: hard
+"object.assign@npm:^4.1.2":
+ version: 4.1.2
+ resolution: "object.assign@npm:4.1.2"
+ dependencies:
+ call-bind: ^1.0.0
+ define-properties: ^1.1.3
+ has-symbols: ^1.0.1
+ object-keys: ^1.1.1
+ checksum: a5855cc6db3f64606c41ceb97cb9847e667d8240889d771d65638244be1d35c2e2ccb5762f437bb76abf4e98ab4634a9d302380398121cee288a44dce5028f54
+ languageName: node
+ linkType: hard
+
"object.entries@npm:^1.1.1, object.entries@npm:^1.1.2":
version: 1.1.2
resolution: "object.entries@npm:1.1.2"
@@ -7489,6 +7595,18 @@ fsevents@^2.1.2:
languageName: node
linkType: hard
+"object.fromentries@npm:^2.0.0":
+ version: 2.0.4
+ resolution: "object.fromentries@npm:2.0.4"
+ dependencies:
+ call-bind: ^1.0.2
+ define-properties: ^1.1.3
+ es-abstract: ^1.18.0-next.2
+ has: ^1.0.3
+ checksum: 9e02d109f6f63dda78715e43fcbd80941491e56ee771a5d21da93e271859f43b0db15e26e0b945989a6a6ee0ba480ca57b047cd331a71e4c4251d44517e0649c
+ languageName: node
+ linkType: hard
+
"object.fromentries@npm:^2.0.2":
version: 2.0.2
resolution: "object.fromentries@npm:2.0.2"
@@ -7510,6 +7628,18 @@ fsevents@^2.1.2:
languageName: node
linkType: hard
+"object.values@npm:^1.1.0":
+ version: 1.1.3
+ resolution: "object.values@npm:1.1.3"
+ dependencies:
+ call-bind: ^1.0.2
+ define-properties: ^1.1.3
+ es-abstract: ^1.18.0-next.2
+ has: ^1.0.3
+ checksum: 31111fe8b8dfe7c3326ae8729eae542dc32d5705339b9b63d89d4a2f766641bfe8989744bd4771c65a7ca0dff281800e99640262c2e82daa97079143a86b3e0b
+ languageName: node
+ linkType: hard
+
"object.values@npm:^1.1.1":
version: 1.1.1
resolution: "object.values@npm:1.1.1"
@@ -8125,18 +8255,7 @@ fsevents@^2.1.2:
languageName: node
linkType: hard
-"prop-types-exact@npm:^1.2.0":
- version: 1.2.0
- resolution: "prop-types-exact@npm:1.2.0"
- dependencies:
- has: ^1.0.3
- object.assign: ^4.1.0
- reflect.ownkeys: ^0.2.0
- checksum: e88625c05e5248a74b15e8f8291acfd04d801b69294b95f8bc4bb55f01007b6d174694889c2c0a9ecd43dfc73da08ee7cf66f99686cb8732b8b1fb16a6b94c77
- languageName: node
- linkType: hard
-
-"prop-types@npm:^15.6.0, prop-types@npm:^15.6.2, prop-types@npm:^15.7.2":
+"prop-types@npm:^15.6.0, prop-types@npm:^15.6.2, prop-types@npm:^15.7.0, prop-types@npm:^15.7.2":
version: 15.7.2
resolution: "prop-types@npm:15.7.2"
dependencies:
@@ -8326,7 +8445,7 @@ fsevents@^2.1.2:
"@babel/preset-env": ^7.9.0
"@babel/preset-react": ^7.9.0
"@wojtekmaj/date-utils": ^1.0.2
- "@wojtekmaj/enzyme-adapter-react-17": ^0.3.1
+ "@wojtekmaj/enzyme-adapter-react-17": ^0.6.0
babel-eslint: ^10.0.0
enzyme: ^3.10.0
eslint: ^7.12.0
@@ -8365,13 +8484,20 @@ fsevents@^2.1.2:
languageName: node
linkType: hard
-"react-is@npm:^16.13.1, react-is@npm:^16.8.1":
+"react-is@npm:^16.8.1":
version: 16.13.1
resolution: "react-is@npm:16.13.1"
checksum: 11bcf1267a314a522615f626f3ce3727a3a24cdbf61c4d452add3550a7875326669631326cfb1ba3e92b6f72244c32ffecf93ad21c0cad8455d3e169d0e3f060
languageName: node
linkType: hard
+"react-is@npm:^17.0.0, react-is@npm:^17.0.2":
+ version: 17.0.2
+ resolution: "react-is@npm:17.0.2"
+ checksum: 3eff23f410d40ab9bc5177f147a92c7f42c356a21ecea340e0554566956d67e5e1ba56f26cc7fa22339ac3c7151744177bd6305eaa26d3cbf15f354358c9d9b6
+ languageName: node
+ linkType: hard
+
"react-refresh@npm:^0.8.3":
version: 0.8.3
resolution: "react-refresh@npm:0.8.3"
@@ -8391,17 +8517,17 @@ fsevents@^2.1.2:
languageName: node
linkType: hard
-"react-test-renderer@npm:^17.0.0-0":
- version: 17.0.1
- resolution: "react-test-renderer@npm:17.0.1"
+"react-test-renderer@npm:^17.0.0":
+ version: 17.0.2
+ resolution: "react-test-renderer@npm:17.0.2"
dependencies:
object-assign: ^4.1.1
- react-is: ^17.0.1
+ react-is: ^17.0.2
react-shallow-renderer: ^16.13.1
- scheduler: ^0.20.1
+ scheduler: ^0.20.2
peerDependencies:
- react: 17.0.1
- checksum: 6ec269430beea4356180d90868a9959399781a03ae8de6a29f2edc29d6ca41432653d4103991467ebcc47be5bd2d9197789411e913da66369c2aa2f13311105f
+ react: 17.0.2
+ checksum: 9e79031ad20f9c20941aec1eda32d39eb558e9130740013e5a7b53367cf0eb8f7505c8034fec7da47cdcd80b254f20f1311c250bb586323bec7fbf7d97a90a1e
languageName: node
linkType: hard
@@ -8512,13 +8638,6 @@ fsevents@^2.1.2:
languageName: node
linkType: hard
-"reflect.ownkeys@npm:^0.2.0":
- version: 0.2.0
- resolution: "reflect.ownkeys@npm:0.2.0"
- checksum: 580e5d1e7fa8bc306af4cb6eb2aaf56defead6b441eeacf052ba849c9b6f1d841ce8910c8c71bd0a9408e59c92df532edc3b451a704f50367b802f85511cf83b
- languageName: node
- linkType: hard
-
"regenerate-unicode-properties@npm:^8.2.0":
version: 8.2.0
resolution: "regenerate-unicode-properties@npm:8.2.0"
@@ -8918,6 +9037,16 @@ fsevents@^2.1.2:
languageName: node
linkType: hard
+"scheduler@npm:^0.20.2":
+ version: 0.20.2
+ resolution: "scheduler@npm:0.20.2"
+ dependencies:
+ loose-envify: ^1.1.0
+ object-assign: ^4.1.1
+ checksum: 2ba121e53e8a438394598612ec9a8f465b39157042f912d2dd5956af643e0d45ec6937ae4eeb0a807d1945b209515263aed12fc3bca95c7a027ec2a54e76b399
+ languageName: node
+ linkType: hard
+
"schema-utils@npm:^1.0.0":
version: 1.0.0
resolution: "schema-utils@npm:1.0.0"
@@ -8967,7 +9096,7 @@ fsevents@^2.1.2:
languageName: node
linkType: hard
-"semver@npm:2 || 3 || 4 || 5, semver@npm:^5.4.1, semver@npm:^5.5.0, semver@npm:^5.6.0, semver@npm:^5.7.0, semver@npm:^5.7.1":
+"semver@npm:2 || 3 || 4 || 5, semver@npm:^5.4.1, semver@npm:^5.5.0, semver@npm:^5.6.0":
version: 5.7.1
resolution: "semver@npm:5.7.1"
bin:
@@ -9525,6 +9654,16 @@ fsevents@^2.1.2:
languageName: node
linkType: hard
+"string.prototype.trimend@npm:^1.0.4":
+ version: 1.0.4
+ resolution: "string.prototype.trimend@npm:1.0.4"
+ dependencies:
+ call-bind: ^1.0.2
+ define-properties: ^1.1.3
+ checksum: ea8793bee1104362587e6a0fab2cb48e76548423d8ac95847284f9f6ef6a11338cf47114e8ec1c2a9519cce55cfa8d19fc8e26413937c3e804a768ec43ebe38e
+ languageName: node
+ linkType: hard
+
"string.prototype.trimstart@npm:^1.0.1":
version: 1.0.1
resolution: "string.prototype.trimstart@npm:1.0.1"
@@ -9535,6 +9674,16 @@ fsevents@^2.1.2:
languageName: node
linkType: hard
+"string.prototype.trimstart@npm:^1.0.4":
+ version: 1.0.4
+ resolution: "string.prototype.trimstart@npm:1.0.4"
+ dependencies:
+ call-bind: ^1.0.2
+ define-properties: ^1.1.3
+ checksum: dd2c994af9b9194c7ce9d94e30b8f8bbe30ec95ada94534a71d63df2964a200c8d2264378252a5047a5f1cf805e8216911d78d16b22d5db7b0abcdbbb2d24b4a
+ languageName: node
+ linkType: hard
+
"string_decoder@npm:^1.1.1":
version: 1.3.0
resolution: "string_decoder@npm:1.3.0"
@@ -9998,6 +10147,18 @@ fsevents@^2.1.2:
languageName: node
linkType: hard
+"unbox-primitive@npm:^1.0.0":
+ version: 1.0.1
+ resolution: "unbox-primitive@npm:1.0.1"
+ dependencies:
+ function-bind: ^1.1.1
+ has-bigints: ^1.0.1
+ has-symbols: ^1.0.2
+ which-boxed-primitive: ^1.0.2
+ checksum: aa944f1ecfec638b841b331383d0b80edc40855271ecc213c1aa736096d8d0b39ba25b64d102f56c597521db9cd3f0ddbcb97a0f760c240ab584e94e457518c1
+ languageName: node
+ linkType: hard
+
"unicode-canonical-property-names-ecmascript@npm:^1.0.4":
version: 1.0.4
resolution: "unicode-canonical-property-names-ecmascript@npm:1.0.4"
@@ -10479,6 +10640,19 @@ fsevents@^2.1.2:
languageName: node
linkType: hard
+"which-boxed-primitive@npm:^1.0.2":
+ version: 1.0.2
+ resolution: "which-boxed-primitive@npm:1.0.2"
+ dependencies:
+ is-bigint: ^1.0.1
+ is-boolean-object: ^1.1.0
+ is-number-object: ^1.0.4
+ is-string: ^1.0.5
+ is-symbol: ^1.0.3
+ checksum: 771ef43357afbba9febf2da4867b2971ada0a5126227f9b7926751525e3721f7f5f3722f8c60af67881714d9a82a98ed686f1768490cfb2cd40518df5f2e056e
+ languageName: node
+ linkType: hard
+
"which-module@npm:^2.0.0":
version: 2.0.0
resolution: "which-module@npm:2.0.0"