@svelte-plugins/datepicker
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "@svelte-plugins/datepicker", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"license": "MIT", | ||
@@ -37,3 +37,3 @@ "description": "A simple datepicker component designed for Svelte.", | ||
"deploy": "npx gh-pages -d docs/build", | ||
"lint": "eslint --fix \"src/**/*.{.js,svelte}\"", | ||
"lint": "eslint -c ./.eslintrc.json --fix \"src/**/*.{.js,svelte}\"", | ||
"format": "prettier --write \"src/**/*.{js,json,svelte}\"", | ||
@@ -43,6 +43,6 @@ "test": "vitest --run --coverage" | ||
"devDependencies": { | ||
"@babel/core": "^7.13.1", | ||
"@babel/eslint-parser": "^7.13.10", | ||
"@babel/preset-env": "^7.13.5", | ||
"@babel/runtime": "^7.13.7", | ||
"@babel/core": "^7.23.3", | ||
"@babel/eslint-parser": "^7.23.3", | ||
"@babel/preset-env": "^7.23.3", | ||
"@babel/runtime": "^7.23.4", | ||
"@sveltejs/vite-plugin-svelte": "^3.0.1", | ||
@@ -52,5 +52,5 @@ "@testing-library/jest-dom": "^6.1.4", | ||
"@vitest/coverage-v8": "^0.34.6", | ||
"babel-loader": "^8.2.2", | ||
"eslint": "^7.23.0", | ||
"eslint-plugin-jest": "^24.3.2", | ||
"eslint": "^8.54.0", | ||
"eslint-plugin-svelte": "^2.35.1", | ||
"eslint-plugin-vitest": "^0.3.10", | ||
"husky": "^6.0.0", | ||
@@ -57,0 +57,0 @@ "lint-staged": "^10.5.4", |
@@ -86,3 +86,3 @@ # @svelte-plugins/datepicker | ||
/** | ||
* Common | ||
* Common Variables | ||
*/ | ||
@@ -89,0 +89,0 @@ --datepicker-border-color: #e8e9ea; |
export const clickOutside = (node, config = {}) => { | ||
const options = { include: [], onClickOutside: () => { }, ...config }; | ||
const options = { | ||
include: [], | ||
onClickOutside: () => {}, | ||
...config | ||
}; | ||
@@ -4,0 +8,0 @@ const detect = ({ target }) => { |
@@ -7,3 +7,3 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
<div | ||
class="datepicker svelte-1l0rbmb" | ||
class="datepicker svelte-1nmg4fl" | ||
data-picker-theme="" | ||
@@ -13,17 +13,17 @@ > | ||
<div | ||
class="calendars-container svelte-1l0rbmb" | ||
class="calendars-container svelte-1nmg4fl" | ||
> | ||
<div | ||
class="calendar svelte-1l0rbmb" | ||
class="calendar svelte-1nmg4fl" | ||
> | ||
<header | ||
class="svelte-1l0rbmb" | ||
class="svelte-1nmg4fl" | ||
> | ||
<button | ||
class="svelte-1l0rbmb" | ||
class="svelte-1nmg4fl" | ||
> | ||
<div | ||
aria-label="Previous month" | ||
class="icon-previous-month svelte-1l0rbmb" | ||
class="icon-previous-month svelte-1nmg4fl" | ||
/> | ||
@@ -33,6 +33,6 @@ </button> | ||
<span | ||
class="svelte-1l0rbmb" | ||
class="svelte-1nmg4fl" | ||
> | ||
<div | ||
class="svelte-1l0rbmb" | ||
class="svelte-1nmg4fl" | ||
> | ||
@@ -45,10 +45,10 @@ November | ||
<div | ||
class="years svelte-1l0rbmb" | ||
class="years svelte-1nmg4fl" | ||
> | ||
<button | ||
class="svelte-1l0rbmb" | ||
class="svelte-1nmg4fl" | ||
> | ||
<i | ||
aria-label="Next year" | ||
class="icon-next-year svelte-1l0rbmb" | ||
class="icon-next-year svelte-1nmg4fl" | ||
/> | ||
@@ -58,7 +58,7 @@ </button> | ||
<button | ||
class="svelte-1l0rbmb" | ||
class="svelte-1nmg4fl" | ||
> | ||
<i | ||
aria-label="Previous year" | ||
class="icon-previous-year svelte-1l0rbmb" | ||
class="icon-previous-year svelte-1nmg4fl" | ||
/> | ||
@@ -70,7 +70,7 @@ </button> | ||
<button | ||
class="svelte-1l0rbmb" | ||
class="svelte-1nmg4fl" | ||
> | ||
<div | ||
aria-label="Next month" | ||
class="icon-next-month svelte-1l0rbmb" | ||
class="icon-next-month svelte-1nmg4fl" | ||
/> | ||
@@ -82,6 +82,6 @@ </button> | ||
<div | ||
class="month svelte-1l0rbmb" | ||
class="month svelte-1nmg4fl" | ||
> | ||
<span | ||
class="dow svelte-1l0rbmb" | ||
class="dow svelte-1nmg4fl" | ||
> | ||
@@ -91,3 +91,3 @@ Su | ||
<span | ||
class="dow svelte-1l0rbmb" | ||
class="dow svelte-1nmg4fl" | ||
> | ||
@@ -97,3 +97,3 @@ Mo | ||
<span | ||
class="dow svelte-1l0rbmb" | ||
class="dow svelte-1nmg4fl" | ||
> | ||
@@ -103,3 +103,3 @@ Tu | ||
<span | ||
class="dow svelte-1l0rbmb" | ||
class="dow svelte-1nmg4fl" | ||
> | ||
@@ -109,3 +109,3 @@ We | ||
<span | ||
class="dow svelte-1l0rbmb" | ||
class="dow svelte-1nmg4fl" | ||
> | ||
@@ -115,3 +115,3 @@ Th | ||
<span | ||
class="dow svelte-1l0rbmb" | ||
class="dow svelte-1nmg4fl" | ||
> | ||
@@ -121,3 +121,3 @@ Fr | ||
<span | ||
class="dow svelte-1l0rbmb" | ||
class="dow svelte-1nmg4fl" | ||
> | ||
@@ -130,3 +130,3 @@ Sa | ||
<div | ||
class="date other svelte-1l0rbmb" | ||
class="date other svelte-1nmg4fl" | ||
> | ||
@@ -138,3 +138,3 @@ | ||
<div | ||
class="date other svelte-1l0rbmb" | ||
class="date other svelte-1nmg4fl" | ||
> | ||
@@ -146,3 +146,3 @@ | ||
<div | ||
class="date other svelte-1l0rbmb" | ||
class="date other svelte-1nmg4fl" | ||
> | ||
@@ -154,6 +154,6 @@ | ||
<button | ||
class="date svelte-1l0rbmb first" | ||
class="date svelte-1nmg4fl first" | ||
> | ||
<span | ||
class="svelte-1l0rbmb" | ||
class="svelte-1nmg4fl" | ||
> | ||
@@ -167,6 +167,6 @@ 1 | ||
<button | ||
class="date svelte-1l0rbmb" | ||
class="date svelte-1nmg4fl" | ||
> | ||
<span | ||
class="svelte-1l0rbmb" | ||
class="svelte-1nmg4fl" | ||
> | ||
@@ -180,6 +180,6 @@ 2 | ||
<button | ||
class="date svelte-1l0rbmb" | ||
class="date svelte-1nmg4fl" | ||
> | ||
<span | ||
class="svelte-1l0rbmb" | ||
class="svelte-1nmg4fl" | ||
> | ||
@@ -193,6 +193,6 @@ 3 | ||
<button | ||
class="date svelte-1l0rbmb" | ||
class="date svelte-1nmg4fl" | ||
> | ||
<span | ||
class="svelte-1l0rbmb" | ||
class="svelte-1nmg4fl" | ||
> | ||
@@ -209,6 +209,6 @@ 4 | ||
<button | ||
class="date svelte-1l0rbmb" | ||
class="date svelte-1nmg4fl" | ||
> | ||
<span | ||
class="svelte-1l0rbmb" | ||
class="svelte-1nmg4fl" | ||
> | ||
@@ -222,6 +222,6 @@ 5 | ||
<button | ||
class="date svelte-1l0rbmb" | ||
class="date svelte-1nmg4fl" | ||
> | ||
<span | ||
class="svelte-1l0rbmb" | ||
class="svelte-1nmg4fl" | ||
> | ||
@@ -235,6 +235,6 @@ 6 | ||
<button | ||
class="date svelte-1l0rbmb" | ||
class="date svelte-1nmg4fl" | ||
> | ||
<span | ||
class="svelte-1l0rbmb" | ||
class="svelte-1nmg4fl" | ||
> | ||
@@ -248,6 +248,6 @@ 7 | ||
<button | ||
class="date svelte-1l0rbmb" | ||
class="date svelte-1nmg4fl" | ||
> | ||
<span | ||
class="svelte-1l0rbmb" | ||
class="svelte-1nmg4fl" | ||
> | ||
@@ -261,6 +261,6 @@ 8 | ||
<button | ||
class="date svelte-1l0rbmb" | ||
class="date svelte-1nmg4fl" | ||
> | ||
<span | ||
class="svelte-1l0rbmb" | ||
class="svelte-1nmg4fl" | ||
> | ||
@@ -274,6 +274,6 @@ 9 | ||
<button | ||
class="date svelte-1l0rbmb" | ||
class="date svelte-1nmg4fl" | ||
> | ||
<span | ||
class="svelte-1l0rbmb" | ||
class="svelte-1nmg4fl" | ||
> | ||
@@ -287,6 +287,6 @@ 10 | ||
<button | ||
class="date svelte-1l0rbmb" | ||
class="date svelte-1nmg4fl" | ||
> | ||
<span | ||
class="svelte-1l0rbmb" | ||
class="svelte-1nmg4fl" | ||
> | ||
@@ -303,6 +303,6 @@ 11 | ||
<button | ||
class="date svelte-1l0rbmb" | ||
class="date svelte-1nmg4fl" | ||
> | ||
<span | ||
class="svelte-1l0rbmb" | ||
class="svelte-1nmg4fl" | ||
> | ||
@@ -316,6 +316,6 @@ 12 | ||
<button | ||
class="date svelte-1l0rbmb" | ||
class="date svelte-1nmg4fl" | ||
> | ||
<span | ||
class="svelte-1l0rbmb" | ||
class="svelte-1nmg4fl" | ||
> | ||
@@ -329,6 +329,6 @@ 13 | ||
<button | ||
class="date svelte-1l0rbmb" | ||
class="date svelte-1nmg4fl" | ||
> | ||
<span | ||
class="svelte-1l0rbmb" | ||
class="svelte-1nmg4fl" | ||
> | ||
@@ -342,6 +342,6 @@ 14 | ||
<button | ||
class="date svelte-1l0rbmb" | ||
class="date svelte-1nmg4fl" | ||
> | ||
<span | ||
class="svelte-1l0rbmb" | ||
class="svelte-1nmg4fl" | ||
> | ||
@@ -355,6 +355,6 @@ 15 | ||
<button | ||
class="date svelte-1l0rbmb" | ||
class="date svelte-1nmg4fl" | ||
> | ||
<span | ||
class="svelte-1l0rbmb" | ||
class="svelte-1nmg4fl" | ||
> | ||
@@ -368,6 +368,6 @@ 16 | ||
<button | ||
class="date svelte-1l0rbmb" | ||
class="date svelte-1nmg4fl" | ||
> | ||
<span | ||
class="svelte-1l0rbmb" | ||
class="svelte-1nmg4fl" | ||
> | ||
@@ -381,6 +381,6 @@ 17 | ||
<button | ||
class="date svelte-1l0rbmb" | ||
class="date svelte-1nmg4fl" | ||
> | ||
<span | ||
class="svelte-1l0rbmb" | ||
class="svelte-1nmg4fl" | ||
> | ||
@@ -397,6 +397,6 @@ 18 | ||
<button | ||
class="date svelte-1l0rbmb" | ||
class="date svelte-1nmg4fl" | ||
> | ||
<span | ||
class="svelte-1l0rbmb" | ||
class="svelte-1nmg4fl" | ||
> | ||
@@ -410,6 +410,6 @@ 19 | ||
<button | ||
class="date svelte-1l0rbmb" | ||
class="date svelte-1nmg4fl" | ||
> | ||
<span | ||
class="svelte-1l0rbmb" | ||
class="svelte-1nmg4fl" | ||
> | ||
@@ -423,6 +423,6 @@ 20 | ||
<button | ||
class="date svelte-1l0rbmb" | ||
class="date svelte-1nmg4fl" | ||
> | ||
<span | ||
class="svelte-1l0rbmb" | ||
class="svelte-1nmg4fl" | ||
> | ||
@@ -436,6 +436,6 @@ 21 | ||
<button | ||
class="date svelte-1l0rbmb" | ||
class="date svelte-1nmg4fl" | ||
> | ||
<span | ||
class="svelte-1l0rbmb" | ||
class="svelte-1nmg4fl" | ||
> | ||
@@ -449,6 +449,6 @@ 22 | ||
<button | ||
class="date svelte-1l0rbmb" | ||
class="date svelte-1nmg4fl" | ||
> | ||
<span | ||
class="svelte-1l0rbmb" | ||
class="svelte-1nmg4fl" | ||
> | ||
@@ -462,6 +462,6 @@ 23 | ||
<button | ||
class="date svelte-1l0rbmb today" | ||
class="date svelte-1nmg4fl today" | ||
> | ||
<span | ||
class="svelte-1l0rbmb" | ||
class="svelte-1nmg4fl" | ||
> | ||
@@ -475,6 +475,6 @@ 24 | ||
<button | ||
class="date svelte-1l0rbmb future" | ||
class="date svelte-1nmg4fl future" | ||
> | ||
<span | ||
class="svelte-1l0rbmb" | ||
class="svelte-1nmg4fl" | ||
> | ||
@@ -491,6 +491,6 @@ 25 | ||
<button | ||
class="date svelte-1l0rbmb future" | ||
class="date svelte-1nmg4fl future" | ||
> | ||
<span | ||
class="svelte-1l0rbmb" | ||
class="svelte-1nmg4fl" | ||
> | ||
@@ -504,6 +504,6 @@ 26 | ||
<button | ||
class="date svelte-1l0rbmb future" | ||
class="date svelte-1nmg4fl future" | ||
> | ||
<span | ||
class="svelte-1l0rbmb" | ||
class="svelte-1nmg4fl" | ||
> | ||
@@ -517,6 +517,6 @@ 27 | ||
<button | ||
class="date svelte-1l0rbmb future" | ||
class="date svelte-1nmg4fl future" | ||
> | ||
<span | ||
class="svelte-1l0rbmb" | ||
class="svelte-1nmg4fl" | ||
> | ||
@@ -530,6 +530,6 @@ 28 | ||
<button | ||
class="date svelte-1l0rbmb future" | ||
class="date svelte-1nmg4fl future" | ||
> | ||
<span | ||
class="svelte-1l0rbmb" | ||
class="svelte-1nmg4fl" | ||
> | ||
@@ -543,6 +543,6 @@ 29 | ||
<button | ||
class="date svelte-1l0rbmb future last" | ||
class="date svelte-1nmg4fl future last" | ||
> | ||
<span | ||
class="svelte-1l0rbmb" | ||
class="svelte-1nmg4fl" | ||
> | ||
@@ -556,3 +556,3 @@ 30 | ||
<div | ||
class="date other svelte-1l0rbmb" | ||
class="date other svelte-1nmg4fl" | ||
> | ||
@@ -564,3 +564,3 @@ | ||
<div | ||
class="date other svelte-1l0rbmb" | ||
class="date other svelte-1nmg4fl" | ||
> | ||
@@ -567,0 +567,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
3556
0
269990