@panneau/list-calendar 4.0.0 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/es/index.js +1 -3
  2. package/package.json +8 -8
package/es/index.js CHANGED
@@ -3,7 +3,7 @@ import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
3
3
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
4
4
  import classNames from 'classnames';
5
5
  import { parseISO, toDate, startOfWeek, addWeeks, addMonths, endOfWeek, addDays, compareAsc, compareDesc, format } from 'date-fns';
6
- import React, { useState, useMemo, useCallback, useEffect } from 'react';
6
+ import { useState, useMemo, useCallback, useEffect } from 'react';
7
7
  import { useIntl, FormattedDate } from 'react-intl';
8
8
  import Button from '@panneau/element-button';
9
9
  import Icon from '@panneau/element-icon';
@@ -105,7 +105,6 @@ function CalendarList(_ref) {
105
105
  }, [intl]);
106
106
  var datesArray = [];
107
107
  if (mode === 'weekly') {
108
- // eslint-disable-next-line no-plusplus
109
108
  for (var i = 0; i < 7; i++) {
110
109
  var dte = addDays(activeWeekStart, i);
111
110
  datesArray.push(dte);
@@ -114,7 +113,6 @@ function CalendarList(_ref) {
114
113
  var firstDayOfActualMonth = new Date(activeYear, activeMonth, 1).getDay();
115
114
  var dayBeforeDiff = firstDayOfActualMonth === 0 ? 6 : firstDayOfActualMonth;
116
115
  var gridMax = 35;
117
- // eslint-disable-next-line no-plusplus
118
116
  for (var _i = 1 - dayBeforeDiff; _i <= gridMax; _i++) {
119
117
  datesArray.push(new Date(activeYear, activeMonth, _i));
120
118
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/list-calendar",
3
- "version": "4.0.0",
3
+ "version": "4.0.2",
4
4
  "description": "Calendar list",
5
5
  "keywords": [
6
6
  "javascript"
@@ -51,12 +51,12 @@
51
51
  },
52
52
  "dependencies": {
53
53
  "@babel/runtime": "^7.12.5",
54
- "@panneau/core": "^4.0.0",
55
- "@panneau/element-button": "^4.0.0",
56
- "@panneau/element-card": "^4.0.0",
57
- "@panneau/element-icon": "^4.0.0",
58
- "@panneau/element-loading": "^4.0.0",
59
- "@panneau/themes": "^4.0.0",
54
+ "@panneau/core": "^4.0.2",
55
+ "@panneau/element-button": "^4.0.2",
56
+ "@panneau/element-card": "^4.0.2",
57
+ "@panneau/element-icon": "^4.0.2",
58
+ "@panneau/element-loading": "^4.0.2",
59
+ "@panneau/themes": "^4.0.2",
60
60
  "classnames": "^2.5.1",
61
61
  "date-fns": "^3.3.1",
62
62
  "lodash-es": "^4.17.21",
@@ -67,5 +67,5 @@
67
67
  "publishConfig": {
68
68
  "access": "public"
69
69
  },
70
- "gitHead": "2cca874e0388b4a20c39aadb205c0e67d5a946fc"
70
+ "gitHead": "53ad0f27e467992c23158732e0f7d39d8615780b"
71
71
  }