Comparing version 0.1.3 to 0.1.4
declare const template: string | ||
export default template |
{ | ||
"name": "clocklet", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "An opinionated clock-style vanilla-js timepicker", | ||
@@ -24,3 +24,3 @@ "repository": "luncheon/clocklet", | ||
"watch:css": "rimraf css/ && mkdirp css/ && stylus -w -o css/ src/style/", | ||
"build:demo": "rimraf .docs/ docs/demo.html && pug -o .docs/ src/demo/demo.pug -O {cdnBaseUrl:'..'} && pug -o docs/ src/demo/demo.pug -O {cdnBaseUrl:'https://cdn.jsdelivr.net/npm/clocklet@0.1.3'}", | ||
"build:demo": "rimraf .docs/ docs/demo.html && pug -o .docs/ src/demo/demo.pug -O {cdnBaseUrl:'..'} && pug -o docs/ src/demo/demo.pug -O {cdnBaseUrl:'https://cdn.jsdelivr.net/npm/clocklet@0.1.4'}", | ||
"watch:demo": "rimraf .docs/ docs/demo.html && pug -w -o .docs/ src/demo/demo.pug -O {cdnBaseUrl:'..'}" | ||
@@ -27,0 +27,0 @@ }, |
@@ -19,6 +19,3 @@ # <a name="clocklet" href="#clocklet" style="pointer-events:none">![Clocklet](https://luncheon.github.io/clocklet/docs/logo.png)</a> | ||
* Support up/down arrow key to increment/decrement | ||
* Declarative usage | ||
1\. Load the stylesheet | ||
2\. Load the script | ||
3\. Add `"data-clocklet"` attribute to time input elements | ||
* Declarative usage | ||
* Vanilla JS - no need jQuery or any other frameworks | ||
@@ -29,3 +26,3 @@ * Lightweight (CSS + JS ~ 7kB gzipped) | ||
### via npm with a module bundler | ||
### via npm (with a module bundler) | ||
@@ -44,7 +41,18 @@ ```bash | ||
```html | ||
<link rel="https://cdn.jsdelivr.net/npm/clocklet@0.1.3/css/clocklet.min.css"> | ||
<script src="https://cdn.jsdelivr.net/npm/clocklet@0.1.3"></script> | ||
<link rel="https://cdn.jsdelivr.net/npm/clocklet@0.1.4/css/clocklet.min.css"> | ||
<script src="https://cdn.jsdelivr.net/npm/clocklet@0.1.4"></script> | ||
<script>/* `window.clocklet` object is available */</script> | ||
``` | ||
## Usage | ||
Place `<input>` elements having `data-clocklet` attribute (either before or after loading the clocklet script). | ||
When these elements get focused, the timepicker popups. | ||
```html | ||
<input data-clocklet> | ||
``` | ||
## Options | ||
@@ -51,0 +59,0 @@ |
@@ -0,0 +0,0 @@ import { __assign } from 'tslib' |
@@ -0,0 +0,0 @@ import adjustOnArrowKeys from 'lenientime/es/input-helpers/adjust-on-arrow-keys' |
@@ -0,0 +0,0 @@ export function getClockletData(element: Element, attributeName: string) { |
@@ -0,0 +0,0 @@ import isTouchDevice from './is-touch-device' |
@@ -0,0 +0,0 @@ export function dispatchCustomEvent(target: EventTarget, type: string, bubbles: boolean, cancelable: boolean, detail?: any) { |
export default matchMedia('(hover: none)').matches |
@@ -0,0 +0,0 @@ export interface ClockletOptions { |
declare const template: string | ||
export default template |
@@ -0,0 +0,0 @@ import Lenientime from 'lenientime/es/core/lenientime' |
@@ -0,0 +0,0 @@ (function (global, factory) { |
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 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 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 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 not supported yet
Sorry, the diff of this file is not supported yet
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
164491
2251
156