@dhis2-ui/calendar 8.11.0 → 8.11.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -50,7 +50,15 @@ const CalendarTable = _ref => {
50
50
 
51
51
  exports.CalendarTable = CalendarTable;
52
52
  CalendarTable.propTypes = {
53
- calendarWeekDays: _propTypes.default.arrayOf(_propTypes.default.string),
53
+ calendarWeekDays: _propTypes.default.arrayOf(_propTypes.default.arrayOf(_propTypes.default.shape({
54
+ calendarDate: _propTypes.default.string,
55
+ isInCurrentMonth: _propTypes.default.bool,
56
+ isSelected: _propTypes.default.bool,
57
+ isToday: _propTypes.default.bool,
58
+ label: _propTypes.default.string,
59
+ zdt: _propTypes.default.object,
60
+ onClick: _propTypes.default.func
61
+ }).isRequired).isRequired).isRequired,
54
62
  cellSize: _propTypes.default.string,
55
63
  weekDayLabels: _propTypes.default.arrayOf(_propTypes.default.string),
56
64
  width: _propTypes.default.string
@@ -33,7 +33,15 @@ export const CalendarTable = _ref => {
33
33
  }, [".calendar-table.__jsx-style-dynamic-selector{border:none;border-collapse:collapse;width:100%;margin-block:".concat(spacers.dp4, ";}"), ".calendar-table.__jsx-style-dynamic-selector tr.__jsx-style-dynamic-selector,.calendar-table.__jsx-style-dynamic-selector td.__jsx-style-dynamic-selector{border:none;}", ".calendar-table-wrapper.__jsx-style-dynamic-selector{padding-inline:".concat(spacers.dp4, ";}")]));
34
34
  };
35
35
  CalendarTable.propTypes = {
36
- calendarWeekDays: PropTypes.arrayOf(PropTypes.string),
36
+ calendarWeekDays: PropTypes.arrayOf(PropTypes.arrayOf(PropTypes.shape({
37
+ calendarDate: PropTypes.string,
38
+ isInCurrentMonth: PropTypes.bool,
39
+ isSelected: PropTypes.bool,
40
+ isToday: PropTypes.bool,
41
+ label: PropTypes.string,
42
+ zdt: PropTypes.object,
43
+ onClick: PropTypes.func
44
+ }).isRequired).isRequired).isRequired,
37
45
  cellSize: PropTypes.string,
38
46
  weekDayLabels: PropTypes.arrayOf(PropTypes.string),
39
47
  width: PropTypes.string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2-ui/calendar",
3
- "version": "8.11.0",
3
+ "version": "8.11.2",
4
4
  "description": "UI Calendar",
5
5
  "repository": {
6
6
  "type": "git",
@@ -31,14 +31,14 @@
31
31
  "styled-jsx": "^4"
32
32
  },
33
33
  "dependencies": {
34
- "@dhis2-ui/card": "8.11.0",
35
- "@dhis2-ui/input": "8.11.0",
36
- "@dhis2-ui/layer": "8.11.0",
37
- "@dhis2-ui/popper": "8.11.0",
34
+ "@dhis2-ui/card": "8.11.2",
35
+ "@dhis2-ui/input": "8.11.2",
36
+ "@dhis2-ui/layer": "8.11.2",
37
+ "@dhis2-ui/popper": "8.11.2",
38
38
  "@dhis2/multi-calendar-dates": "1.0.0-alpha.18",
39
39
  "@dhis2/prop-types": "^3.1.2",
40
- "@dhis2/ui-constants": "8.11.0",
41
- "@dhis2/ui-icons": "8.11.0",
40
+ "@dhis2/ui-constants": "8.11.2",
41
+ "@dhis2/ui-icons": "8.11.2",
42
42
  "classnames": "^2.3.1",
43
43
  "prop-types": "^15.7.2"
44
44
  },