Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sd-calendar

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sd-calendar - npm Package Compare versions

Comparing version 9.15.1 to 9.15.2

es/icons/LeftArrow.js

33

es/calendar/CalendarHeader.js

@@ -12,2 +12,5 @@ import _classCallCheck from 'babel-runtime/helpers/classCallCheck';

import LeftArrow from '../icons/LeftArrow';
import RightArrow from '../icons/RightArrow';
function goMonth(direction) {

@@ -118,14 +121,22 @@ var next = this.props.value.clone();

{ style: { position: 'relative' } },
showIf(enablePrev && !showTimePicker, React.createElement('a', {
className: prefixCls + '-prev-month-btn',
role: 'button',
onClick: this.previousMonth,
title: locale.previousMonth
})),
showIf(enablePrev && !showTimePicker, React.createElement(
'a',
{
className: prefixCls + '-prev-month-btn',
role: 'button',
onClick: this.previousMonth,
title: locale.previousMonth
},
React.createElement(LeftArrow, null)
)),
this.monthYearElement(showTimePicker),
showIf(enableNext && !showTimePicker, React.createElement('a', {
className: prefixCls + '-next-month-btn',
onClick: this.nextMonth,
title: locale.nextMonth
}))
showIf(enableNext && !showTimePicker, React.createElement(
'a',
{
className: prefixCls + '-next-month-btn',
onClick: this.nextMonth,
title: locale.nextMonth
},
React.createElement(RightArrow, null)
))
),

@@ -132,0 +143,0 @@ panel

@@ -9,2 +9,5 @@ import _classCallCheck from 'babel-runtime/helpers/classCallCheck';

import LeftArrow from '../icons/LeftArrow';
import RightArrow from '../icons/RightArrow';
function goYear(direction) {

@@ -88,11 +91,15 @@ var next = this.state.value.clone();

{ className: prefixCls + '-header' },
React.createElement('a', {
className: prefixCls + '-prev-year-btn',
role: 'button',
onClick: this.previousYear,
title: locale.previousYear
}),
React.createElement(
'a',
{
className: prefixCls + '-prev-year-btn',
role: 'button',
onClick: this.previousYear,
title: locale.previousYear
},
React.createElement(LeftArrow, null)
),
React.createElement(
'a',
{
className: prefixCls + '-year-select',

@@ -114,8 +121,12 @@ role: 'button',

),
React.createElement('a', {
className: prefixCls + '-next-year-btn',
role: 'button',
onClick: this.nextYear,
title: locale.nextYear
})
React.createElement(
'a',
{
className: prefixCls + '-next-year-btn',
role: 'button',
onClick: this.nextYear,
title: locale.nextYear
},
React.createElement(RightArrow, null)
)
),

@@ -122,0 +133,0 @@ React.createElement(

@@ -11,2 +11,5 @@ import _classCallCheck from 'babel-runtime/helpers/classCallCheck';

import LeftArrow from '../icons/LeftArrow';
import RightArrow from '../icons/RightArrow';
function goYear(direction) {

@@ -81,11 +84,15 @@ var value = this.state.value.clone();

{ className: prefixCls + '-header' },
React.createElement('a', {
className: prefixCls + '-prev-year-btn',
role: 'button',
onClick: this.previousYear,
title: locale.previousYear
}),
React.createElement(
'a',
{
className: prefixCls + '-prev-year-btn',
role: 'button',
onClick: this.previousYear,
title: locale.previousYear
},
React.createElement(LeftArrow, null)
),
React.createElement(
'a',
{
className: prefixCls + '-decade-select',

@@ -107,8 +114,12 @@ role: 'button',

),
React.createElement('a', {
className: prefixCls + '-next-year-btn',
role: 'button',
onClick: this.nextYear,
title: locale.nextYear
})
React.createElement(
'a',
{
className: prefixCls + '-next-year-btn',
role: 'button',
onClick: this.nextYear,
title: locale.nextYear
},
React.createElement(RightArrow, null)
)
),

@@ -115,0 +126,0 @@ React.createElement(

@@ -32,5 +32,4 @@ import _extends from 'babel-runtime/helpers/extends';

export function getMonthName(month) {
var locale = month.locale();
var localeData = month.localeData();
return localeData[locale === 'zh-cn' ? 'months' : 'monthsShort'](month);
return localeData['months'](month);
}

@@ -37,0 +36,0 @@

@@ -7,2 +7,6 @@ import _classCallCheck from 'babel-runtime/helpers/classCallCheck';

import classnames from 'classnames';
import LeftArrow from '../icons/LeftArrow';
import RightArrow from '../icons/RightArrow';
var ROW = 4;

@@ -129,11 +133,15 @@ var COL = 3;

{ className: prefixCls + '-header' },
React.createElement('a', {
className: prefixCls + '-prev-decade-btn',
role: 'button',
onClick: this.previousDecade,
title: locale.previousDecade
}),
React.createElement(
'a',
{
className: prefixCls + '-prev-decade-btn',
role: 'button',
onClick: this.previousDecade,
title: locale.previousDecade
},
React.createElement(LeftArrow, null)
),
React.createElement(
'a',
{
className: prefixCls + '-decade-select',

@@ -157,8 +165,12 @@ role: 'button',

),
React.createElement('a', {
className: prefixCls + '-next-decade-btn',
role: 'button',
onClick: this.nextDecade,
title: locale.nextDecade
})
React.createElement(
'a',
{
className: prefixCls + '-next-decade-btn',
role: 'button',
onClick: this.nextDecade,
title: locale.nextDecade
},
React.createElement(RightArrow, null)
)
),

@@ -165,0 +177,0 @@ React.createElement(

@@ -45,2 +45,10 @@ 'use strict';

var _LeftArrow = require('../icons/LeftArrow');
var _LeftArrow2 = _interopRequireDefault(_LeftArrow);
var _RightArrow = require('../icons/RightArrow');
var _RightArrow2 = _interopRequireDefault(_RightArrow);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

@@ -153,14 +161,22 @@

{ style: { position: 'relative' } },
showIf(enablePrev && !showTimePicker, _react2['default'].createElement('a', {
className: prefixCls + '-prev-month-btn',
role: 'button',
onClick: this.previousMonth,
title: locale.previousMonth
})),
showIf(enablePrev && !showTimePicker, _react2['default'].createElement(
'a',
{
className: prefixCls + '-prev-month-btn',
role: 'button',
onClick: this.previousMonth,
title: locale.previousMonth
},
_react2['default'].createElement(_LeftArrow2['default'], null)
)),
this.monthYearElement(showTimePicker),
showIf(enableNext && !showTimePicker, _react2['default'].createElement('a', {
className: prefixCls + '-next-month-btn',
onClick: this.nextMonth,
title: locale.nextMonth
}))
showIf(enableNext && !showTimePicker, _react2['default'].createElement(
'a',
{
className: prefixCls + '-next-month-btn',
onClick: this.nextMonth,
title: locale.nextMonth
},
_react2['default'].createElement(_RightArrow2['default'], null)
))
),

@@ -167,0 +183,0 @@ panel

@@ -31,2 +31,10 @@ 'use strict';

var _LeftArrow = require('../icons/LeftArrow');
var _LeftArrow2 = _interopRequireDefault(_LeftArrow);
var _RightArrow = require('../icons/RightArrow');
var _RightArrow2 = _interopRequireDefault(_RightArrow);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

@@ -112,11 +120,15 @@

{ className: prefixCls + '-header' },
_react2['default'].createElement('a', {
className: prefixCls + '-prev-year-btn',
role: 'button',
onClick: this.previousYear,
title: locale.previousYear
}),
_react2['default'].createElement(
'a',
{
className: prefixCls + '-prev-year-btn',
role: 'button',
onClick: this.previousYear,
title: locale.previousYear
},
_react2['default'].createElement(_LeftArrow2['default'], null)
),
_react2['default'].createElement(
'a',
{
className: prefixCls + '-year-select',

@@ -138,8 +150,12 @@ role: 'button',

),
_react2['default'].createElement('a', {
className: prefixCls + '-next-year-btn',
role: 'button',
onClick: this.nextYear,
title: locale.nextYear
})
_react2['default'].createElement(
'a',
{
className: prefixCls + '-next-year-btn',
role: 'button',
onClick: this.nextYear,
title: locale.nextYear
},
_react2['default'].createElement(_RightArrow2['default'], null)
)
),

@@ -146,0 +162,0 @@ _react2['default'].createElement(

@@ -37,2 +37,10 @@ 'use strict';

var _LeftArrow = require('../icons/LeftArrow');
var _LeftArrow2 = _interopRequireDefault(_LeftArrow);
var _RightArrow = require('../icons/RightArrow');
var _RightArrow2 = _interopRequireDefault(_RightArrow);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

@@ -109,11 +117,15 @@

{ className: prefixCls + '-header' },
_react2['default'].createElement('a', {
className: prefixCls + '-prev-year-btn',
role: 'button',
onClick: this.previousYear,
title: locale.previousYear
}),
_react2['default'].createElement(
'a',
{
className: prefixCls + '-prev-year-btn',
role: 'button',
onClick: this.previousYear,
title: locale.previousYear
},
_react2['default'].createElement(_LeftArrow2['default'], null)
),
_react2['default'].createElement(
'a',
{
className: prefixCls + '-decade-select',

@@ -135,8 +147,12 @@ role: 'button',

),
_react2['default'].createElement('a', {
className: prefixCls + '-next-year-btn',
role: 'button',
onClick: this.nextYear,
title: locale.nextYear
})
_react2['default'].createElement(
'a',
{
className: prefixCls + '-next-year-btn',
role: 'button',
onClick: this.nextYear,
title: locale.nextYear
},
_react2['default'].createElement(_RightArrow2['default'], null)
)
),

@@ -143,0 +159,0 @@ _react2['default'].createElement(

@@ -54,5 +54,4 @@ 'use strict';

function getMonthName(month) {
var locale = month.locale();
var localeData = month.localeData();
return localeData[locale === 'zh-cn' ? 'months' : 'monthsShort'](month);
return localeData['months'](month);
}

@@ -59,0 +58,0 @@

@@ -29,2 +29,10 @@ 'use strict';

var _LeftArrow = require('../icons/LeftArrow');
var _LeftArrow2 = _interopRequireDefault(_LeftArrow);
var _RightArrow = require('../icons/RightArrow');
var _RightArrow2 = _interopRequireDefault(_RightArrow);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

@@ -153,11 +161,15 @@

{ className: prefixCls + '-header' },
_react2['default'].createElement('a', {
className: prefixCls + '-prev-decade-btn',
role: 'button',
onClick: this.previousDecade,
title: locale.previousDecade
}),
_react2['default'].createElement(
'a',
{
className: prefixCls + '-prev-decade-btn',
role: 'button',
onClick: this.previousDecade,
title: locale.previousDecade
},
_react2['default'].createElement(_LeftArrow2['default'], null)
),
_react2['default'].createElement(
'a',
{
className: prefixCls + '-decade-select',

@@ -181,8 +193,12 @@ role: 'button',

),
_react2['default'].createElement('a', {
className: prefixCls + '-next-decade-btn',
role: 'button',
onClick: this.nextDecade,
title: locale.nextDecade
})
_react2['default'].createElement(
'a',
{
className: prefixCls + '-next-decade-btn',
role: 'button',
onClick: this.nextDecade,
title: locale.nextDecade
},
_react2['default'].createElement(_RightArrow2['default'], null)
)
),

@@ -189,0 +205,0 @@ _react2['default'].createElement(

{
"name": "sd-calendar",
"version": "9.15.1",
"version": "9.15.2",
"description": "React Calendar",

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

Sorry, the diff of this file is not supported yet

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