Socket
Socket
Sign inDemoInstall

rc-calendar

Package Overview
Dependencies
Maintainers
5
Versions
239
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-calendar - npm Package Compare versions

Comparing version 9.7.0 to 9.7.1

1

es/Calendar.js

@@ -44,2 +44,3 @@ import _extends from 'babel-runtime/helpers/extends';

disabledTime: PropTypes.any,
dateRender: PropTypes.func,
renderFooter: PropTypes.func,

@@ -46,0 +47,0 @@ renderSidebar: PropTypes.func,

4

es/calendar/CalendarFooter.js

@@ -65,10 +65,10 @@ import _extends from 'babel-runtime/helpers/extends';

{ className: prefixCls + '-footer-btn' },
extraFooter,
toFragment([nowEl, timePickerBtn, okBtn])
);
}
var cls = cx((_cx = {}, _cx[prefixCls + '-footer'] = true, _cx[prefixCls + '-footer-show-ok'] = okBtn, _cx));
var cls = cx(prefixCls + '-footer', (_cx = {}, _cx[prefixCls + '-footer-show-ok'] = okBtn, _cx));
footerEl = React.createElement(
'div',
{ className: cls },
extraFooter,
footerBtn

@@ -75,0 +75,0 @@ );

@@ -83,6 +83,7 @@ import React from 'react';

var selectClassName = prefixCls + '-' + (monthBeforeYear ? 'my-select' : 'ym-select');
var timeClassName = showTimePicker ? ' ' + prefixCls + '-time-status' : '';
var year = React.createElement(
'a',
{
className: prefixCls + '-year-select',
className: prefixCls + '-year-select' + timeClassName,
role: 'button',

@@ -92,3 +93,3 @@ onClick: showTimePicker ? null : function () {

},
title: locale.yearSelect
title: showTimePicker ? null : locale.yearSelect
},

@@ -100,6 +101,6 @@ value.format(locale.yearFormat)

{
className: prefixCls + '-month-select',
className: prefixCls + '-month-select' + timeClassName,
role: 'button',
onClick: showTimePicker ? null : this.showMonthPanel,
title: locale.monthSelect
title: showTimePicker ? null : locale.monthSelect
},

@@ -113,3 +114,3 @@ locale.monthFormat ? value.format(locale.monthFormat) : localeData.monthsShort(value)

{
className: prefixCls + '-day-select',
className: prefixCls + '-day-select' + timeClassName,
role: 'button'

@@ -161,3 +162,3 @@ },

locale: locale,
defaultValue: value,
value: value,
rootPrefixCls: prefixCls,

@@ -176,3 +177,3 @@ onSelect: this.onMonthSelect,

locale: locale,
defaultValue: value,
value: value,
rootPrefixCls: prefixCls,

@@ -186,3 +187,3 @@ onSelect: this.onYearSelect,

locale: locale,
defaultValue: value,
value: value,
rootPrefixCls: prefixCls,

@@ -189,0 +190,0 @@ onSelect: this.onDecadeSelect

@@ -34,2 +34,3 @@ // Type definitions for rc-calendar 9.6

disabledTime?: (current: Moment) => object;
dateRender?: (current: Moment, value: Moment) => React.ReactNode;
renderFooter?: () => React.ReactNode;

@@ -36,0 +37,0 @@ renderSidebar?: () => React.ReactNode;

@@ -87,2 +87,3 @@ 'use strict';

disabledTime: _propTypes2['default'].any,
dateRender: _propTypes2['default'].func,
renderFooter: _propTypes2['default'].func,

@@ -89,0 +90,0 @@ renderSidebar: _propTypes2['default'].func,

@@ -100,10 +100,10 @@ 'use strict';

{ className: prefixCls + '-footer-btn' },
extraFooter,
(0, _mapSelf2['default'])([nowEl, timePickerBtn, okBtn])
);
}
var cls = (0, _classnames2['default'])((_cx = {}, _cx[prefixCls + '-footer'] = true, _cx[prefixCls + '-footer-show-ok'] = okBtn, _cx));
var cls = (0, _classnames2['default'])(prefixCls + '-footer', (_cx = {}, _cx[prefixCls + '-footer-show-ok'] = okBtn, _cx));
footerEl = _react2['default'].createElement(
'div',
{ className: cls },
extraFooter,
footerBtn

@@ -110,0 +110,0 @@ );

@@ -109,6 +109,7 @@ 'use strict';

var selectClassName = prefixCls + '-' + (monthBeforeYear ? 'my-select' : 'ym-select');
var timeClassName = showTimePicker ? ' ' + prefixCls + '-time-status' : '';
var year = _react2['default'].createElement(
'a',
{
className: prefixCls + '-year-select',
className: prefixCls + '-year-select' + timeClassName,
role: 'button',

@@ -118,3 +119,3 @@ onClick: showTimePicker ? null : function () {

},
title: locale.yearSelect
title: showTimePicker ? null : locale.yearSelect
},

@@ -126,6 +127,6 @@ value.format(locale.yearFormat)

{
className: prefixCls + '-month-select',
className: prefixCls + '-month-select' + timeClassName,
role: 'button',
onClick: showTimePicker ? null : this.showMonthPanel,
title: locale.monthSelect
title: showTimePicker ? null : locale.monthSelect
},

@@ -139,3 +140,3 @@ locale.monthFormat ? value.format(locale.monthFormat) : localeData.monthsShort(value)

{
className: prefixCls + '-day-select',
className: prefixCls + '-day-select' + timeClassName,
role: 'button'

@@ -187,3 +188,3 @@ },

locale: locale,
defaultValue: value,
value: value,
rootPrefixCls: prefixCls,

@@ -202,3 +203,3 @@ onSelect: this.onMonthSelect,

locale: locale,
defaultValue: value,
value: value,
rootPrefixCls: prefixCls,

@@ -212,3 +213,3 @@ onSelect: this.onYearSelect,

locale: locale,
defaultValue: value,
value: value,
rootPrefixCls: prefixCls,

@@ -215,0 +216,0 @@ onSelect: this.onDecadeSelect

{
"name": "rc-calendar",
"version": "9.7.0",
"version": "9.7.1",
"description": "React Calendar",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc