Skip to content

Commit

Permalink
feat(update): sync with upstream repo
Browse files Browse the repository at this point in the history
  • Loading branch information
fs-nathan committed Apr 16, 2024
1 parent 42c3877 commit 08bba3d
Show file tree
Hide file tree
Showing 29 changed files with 5,767 additions and 5,923 deletions.
608 changes: 293 additions & 315 deletions dist/react-big-calendar.esm.js

Large diffs are not rendered by default.

719 changes: 324 additions & 395 deletions dist/react-big-calendar.js

Large diffs are not rendered by default.

9,691 changes: 4,810 additions & 4,881 deletions dist/react-big-calendar.min.js

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions lib/BackgroundCells.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ var _helpers = require('./utils/helpers')
var _selection = require('./utils/selection')
var _Selection = _interopRequireWildcard(require('./Selection'))
var BackgroundCells = /*#__PURE__*/ (function (_React$Component) {
;(0, _inherits2.default)(BackgroundCells, _React$Component)
function BackgroundCells(props, context) {
var _this
;(0, _classCallCheck2.default)(this, BackgroundCells)
Expand All @@ -40,7 +39,8 @@ var BackgroundCells = /*#__PURE__*/ (function (_React$Component) {
_this.containerRef = /*#__PURE__*/ (0, _react.createRef)()
return _this
}
;(0, _createClass2.default)(BackgroundCells, [
;(0, _inherits2.default)(BackgroundCells, _React$Component)
return (0, _createClass2.default)(BackgroundCells, [
{
key: 'componentDidMount',
value: function componentDidMount() {
Expand Down Expand Up @@ -243,6 +243,5 @@ var BackgroundCells = /*#__PURE__*/ (function (_React$Component) {
},
},
])
return BackgroundCells
})(_react.default.Component)
var _default = (exports.default = BackgroundCells)
5 changes: 2 additions & 3 deletions lib/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ function isValidView(view, _ref) {
return names.indexOf(view) !== -1
}
var Calendar = /*#__PURE__*/ (function (_React$Component) {
;(0, _inherits2.default)(Calendar, _React$Component)
function Calendar() {
var _this
;(0, _classCallCheck2.default)(this, Calendar)
Expand Down Expand Up @@ -248,7 +247,8 @@ var Calendar = /*#__PURE__*/ (function (_React$Component) {
}
return _this
}
;(0, _createClass2.default)(
;(0, _inherits2.default)(Calendar, _React$Component)
return (0, _createClass2.default)(
Calendar,
[
{
Expand Down Expand Up @@ -447,7 +447,6 @@ var Calendar = /*#__PURE__*/ (function (_React$Component) {
},
]
)
return Calendar
})(_react.default.Component)
Calendar.defaultProps = {
events: [],
Expand Down
5 changes: 2 additions & 3 deletions lib/DateContentRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ var DateSlotMetrics = _interopRequireWildcard(
)
var _EventRowCustom = _interopRequireDefault(require('./EventRowCustom'))
var DateContentRow = /*#__PURE__*/ (function (_React$Component) {
;(0, _inherits2.default)(DateContentRow, _React$Component)
function DateContentRow() {
var _this
;(0, _classCallCheck2.default)(this, DateContentRow)
Expand Down Expand Up @@ -152,7 +151,8 @@ var DateContentRow = /*#__PURE__*/ (function (_React$Component) {
_this.slotMetrics = DateSlotMetrics.getSlotMetrics()
return _this
}
;(0, _createClass2.default)(DateContentRow, [
;(0, _inherits2.default)(DateContentRow, _React$Component)
return (0, _createClass2.default)(DateContentRow, [
{
key: 'getRowLimit',
value: function getRowLimit() {
Expand Down Expand Up @@ -300,7 +300,6 @@ var DateContentRow = /*#__PURE__*/ (function (_React$Component) {
},
},
])
return DateContentRow
})(_react.default.Component)
DateContentRow.defaultProps = {
minRows: 0,
Expand Down
11 changes: 11 additions & 0 deletions lib/DateHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Object.defineProperty(exports, '__esModule', {
value: true,
})
exports.default = void 0
var _propTypes = _interopRequireDefault(require('prop-types'))
var _react = _interopRequireDefault(require('react'))
var DateHeader = function DateHeader(_ref) {
var label = _ref.label,
Expand All @@ -25,4 +26,14 @@ var DateHeader = function DateHeader(_ref) {
label
)
}
DateHeader.propTypes =
process.env.NODE_ENV !== 'production'
? {
label: _propTypes.default.node,
date: _propTypes.default.instanceOf(Date),
drilldownView: _propTypes.default.string,
onDrillDown: _propTypes.default.func,
isOffRange: _propTypes.default.bool,
}
: {}
var _default = (exports.default = DateHeader)
5 changes: 2 additions & 3 deletions lib/Day.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ var _excluded = [
'enableAutoScroll',
]
var Day = /*#__PURE__*/ (function (_React$Component) {
;(0, _inherits2.default)(Day, _React$Component)
function Day() {
;(0, _classCallCheck2.default)(this, Day)
return (0, _callSuper2.default)(this, Day, arguments)
}
;(0, _createClass2.default)(Day, [
;(0, _inherits2.default)(Day, _React$Component)
return (0, _createClass2.default)(Day, [
{
key: 'render',
value: function render() {
Expand Down Expand Up @@ -88,7 +88,6 @@ var Day = /*#__PURE__*/ (function (_React$Component) {
},
},
])
return Day
})(_react.default.Component)
Day.range = function (date, _ref) {
var localizer = _ref.localizer
Expand Down
Loading

0 comments on commit 08bba3d

Please sign in to comment.