New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-jewish-datepicker

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-jewish-datepicker - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

39

build/index.es.js

@@ -17,6 +17,43 @@ function ___$insertStyle(css) {

import { __rest, __assign } from 'tslib';
import { createElement, useState } from 'react';
import { convertToHebrew, IsJewishDatesEqual, getPrevMonth, getJewishMonths, getJewishYears, getNextMonth, isValidDate, getGregDate, getJewishMonth, getWeekdays } from 'jewish-dates-core';
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var __assign = function() {
__assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
function __rest(s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
}
___$insertStyle(".reactJewishDatePicker {\n --color: #333;\n --backgroundColor: #e6e6e6;\n height: 25px;\n position: relative;\n display: grid;\n font-family: arial;\n margin-bottom: 5px;\n}\n.reactJewishDatePicker .selectedDate {\n padding: 3px 10px;\n border: 1px solid var(--color);\n}\n.reactJewishDatePicker .monthWrapper {\n background-color: #fff;\n border: 1px solid #d6d9dd;\n position: absolute;\n top: 25px;\n right: 0;\n z-index: 1;\n display: none;\n box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);\n}\n.reactJewishDatePicker .monthWrapper.open {\n display: grid;\n}\n.reactJewishDatePicker.isHebrew {\n direction: rtl;\n}\n.reactJewishDatePicker.isHebrew .monthWrapper {\n right: auto;\n left: 0;\n}\n.reactJewishDatePicker .navigation {\n display: grid;\n grid-template-columns: 22px 138px 22px;\n justify-content: space-between;\n height: 22px;\n}\n.reactJewishDatePicker .navigation .arrowRight,\n.reactJewishDatePicker .navigation .arrowLeft {\n display: grid;\n align-items: center;\n justify-content: center;\n}\n.reactJewishDatePicker .navigation .arrowRight span,\n.reactJewishDatePicker .navigation .arrowLeft span {\n border: solid black;\n border-width: 0 2px 2px 0;\n padding: 1px;\n transform: rotate(-45deg);\n -webkit-transform: rotate(-45deg);\n cursor: pointer;\n width: 6px;\n height: 6px;\n}\n.reactJewishDatePicker .navigation .arrowRight:hover,\n.reactJewishDatePicker .navigation .arrowLeft:hover {\n background-color: var(--backgroundColor);\n}\n.reactJewishDatePicker .navigation .arrowLeft span {\n transform: rotate(135deg);\n -webkit-transform: rotate(135deg);\n}\n.reactJewishDatePicker .navigation .monthYearSelection {\n display: grid;\n grid-template-columns: auto auto;\n}\n.reactJewishDatePicker .navigation .monthYearSelection select {\n border: 0px;\n outline: 0px;\n}\n.reactJewishDatePicker .navigation .monthYearSelection select:hover {\n cursor: pointer;\n background-color: var(--backgroundColor);\n}\n.reactJewishDatePicker .navigation .monthYearSelection option {\n background-color: #fff;\n}\n.reactJewishDatePicker.isHebrew .navigation .arrowLeft span {\n transform: rotate(-45deg);\n -webkit-transform: rotate(-45deg);\n}\n.reactJewishDatePicker.isHebrew .navigation .arrowRight span {\n transform: rotate(135deg);\n -webkit-transform: rotate(135deg);\n}\n.reactJewishDatePicker .month {\n color: var(--color);\n grid-template-columns: repeat(7, 1fr);\n z-index: 2;\n background-color: white;\n display: grid;\n width: 250px;\n height: 210px;\n}\n.reactJewishDatePicker .weekday,\n.reactJewishDatePicker .day {\n display: grid;\n align-items: center;\n justify-content: center;\n user-select: none;\n border-radius: 7px;\n cursor: pointer;\n}\n.reactJewishDatePicker .day:hover {\n background-color: var(--backgroundColor);\n}\n.reactJewishDatePicker .weekday {\n color: #000;\n font-weight: bold;\n}\n.reactJewishDatePicker .otherMonth {\n background: #fff;\n color: #777;\n}\n.reactJewishDatePicker .selectedDay {\n background: cornflowerblue;\n color: #fff;\n}");

@@ -23,0 +60,0 @@

@@ -23,6 +23,43 @@ 'use strict';

var tslib = require('tslib');
var React = require('react');
var jewishDatesCore = require('jewish-dates-core');
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var __assign = function() {
__assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
function __rest(s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
}
___$insertStyle(".reactJewishDatePicker {\n --color: #333;\n --backgroundColor: #e6e6e6;\n height: 25px;\n position: relative;\n display: grid;\n font-family: arial;\n margin-bottom: 5px;\n}\n.reactJewishDatePicker .selectedDate {\n padding: 3px 10px;\n border: 1px solid var(--color);\n}\n.reactJewishDatePicker .monthWrapper {\n background-color: #fff;\n border: 1px solid #d6d9dd;\n position: absolute;\n top: 25px;\n right: 0;\n z-index: 1;\n display: none;\n box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);\n}\n.reactJewishDatePicker .monthWrapper.open {\n display: grid;\n}\n.reactJewishDatePicker.isHebrew {\n direction: rtl;\n}\n.reactJewishDatePicker.isHebrew .monthWrapper {\n right: auto;\n left: 0;\n}\n.reactJewishDatePicker .navigation {\n display: grid;\n grid-template-columns: 22px 138px 22px;\n justify-content: space-between;\n height: 22px;\n}\n.reactJewishDatePicker .navigation .arrowRight,\n.reactJewishDatePicker .navigation .arrowLeft {\n display: grid;\n align-items: center;\n justify-content: center;\n}\n.reactJewishDatePicker .navigation .arrowRight span,\n.reactJewishDatePicker .navigation .arrowLeft span {\n border: solid black;\n border-width: 0 2px 2px 0;\n padding: 1px;\n transform: rotate(-45deg);\n -webkit-transform: rotate(-45deg);\n cursor: pointer;\n width: 6px;\n height: 6px;\n}\n.reactJewishDatePicker .navigation .arrowRight:hover,\n.reactJewishDatePicker .navigation .arrowLeft:hover {\n background-color: var(--backgroundColor);\n}\n.reactJewishDatePicker .navigation .arrowLeft span {\n transform: rotate(135deg);\n -webkit-transform: rotate(135deg);\n}\n.reactJewishDatePicker .navigation .monthYearSelection {\n display: grid;\n grid-template-columns: auto auto;\n}\n.reactJewishDatePicker .navigation .monthYearSelection select {\n border: 0px;\n outline: 0px;\n}\n.reactJewishDatePicker .navigation .monthYearSelection select:hover {\n cursor: pointer;\n background-color: var(--backgroundColor);\n}\n.reactJewishDatePicker .navigation .monthYearSelection option {\n background-color: #fff;\n}\n.reactJewishDatePicker.isHebrew .navigation .arrowLeft span {\n transform: rotate(-45deg);\n -webkit-transform: rotate(-45deg);\n}\n.reactJewishDatePicker.isHebrew .navigation .arrowRight span {\n transform: rotate(135deg);\n -webkit-transform: rotate(135deg);\n}\n.reactJewishDatePicker .month {\n color: var(--color);\n grid-template-columns: repeat(7, 1fr);\n z-index: 2;\n background-color: white;\n display: grid;\n width: 250px;\n height: 210px;\n}\n.reactJewishDatePicker .weekday,\n.reactJewishDatePicker .day {\n display: grid;\n align-items: center;\n justify-content: center;\n user-select: none;\n border-radius: 7px;\n cursor: pointer;\n}\n.reactJewishDatePicker .day:hover {\n background-color: var(--backgroundColor);\n}\n.reactJewishDatePicker .weekday {\n color: #000;\n font-weight: bold;\n}\n.reactJewishDatePicker .otherMonth {\n background: #fff;\n color: #777;\n}\n.reactJewishDatePicker .selectedDay {\n background: cornflowerblue;\n color: #fff;\n}");

@@ -39,3 +76,3 @@

var handleClick = function () {
var isHebrew = props.isHebrew, selectedDay = props.selectedDay, isCurrentMonth = props.isCurrentMonth, day = props.day, dayjsDate = props.dayjsDate, basicJewishDay = tslib.__rest(props, ["isHebrew", "selectedDay", "isCurrentMonth", "day", "dayjsDate"]);
var isHebrew = props.isHebrew, selectedDay = props.selectedDay, isCurrentMonth = props.isCurrentMonth, day = props.day, dayjsDate = props.dayjsDate, basicJewishDay = __rest(props, ["isHebrew", "selectedDay", "isCurrentMonth", "day", "dayjsDate"]);
props === null || props === void 0 ? void 0 : props.onClick(basicJewishDay);

@@ -118,3 +155,3 @@ };

jewishMonth.days.map(function (day, index) {
return React.createElement(Day, tslib.__assign({ key: index }, day, { onClick: handleClick, selectedDay: selectedDay, isHebrew: props.isHebrew }));
return React.createElement(Day, __assign({ key: index }, day, { onClick: handleClick, selectedDay: selectedDay, isHebrew: props.isHebrew }));
})))));

@@ -121,0 +158,0 @@ };

5

package.json
{
"name": "react-jewish-datepicker",
"version": "1.0.4",
"version": "1.0.5",
"description": "React jewish datepicker",

@@ -39,4 +39,3 @@ "main": "build/index.js",

"rollup-plugin-sass": "^1.2.2",
"rollup-plugin-typescript2": "^0.27.1",
"tslib": "^2.0.0"
"rollup-plugin-typescript2": "^0.27.1"
},

@@ -43,0 +42,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

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