kitzo 1.1.3 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ npm i kitzo
|
|
|
21
21
|
or
|
|
22
22
|
|
|
23
23
|
```javascript
|
|
24
|
-
<script src="https://cdn.jsdelivr.net/npm/kitzo@1.1.
|
|
24
|
+
<script src="https://cdn.jsdelivr.net/npm/kitzo@1.1.5/dist/kitzo.umd.min.js"></script>
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
> Attach this script tag in the html head tag and you are good to go.
|
|
@@ -56,7 +56,7 @@ kitzo.clippath();
|
|
|
56
56
|
##### Copy API:
|
|
57
57
|
|
|
58
58
|
```javascript
|
|
59
|
-
|
|
59
|
+
kitzo.copy(selector | element, {
|
|
60
60
|
doc: string,
|
|
61
61
|
event: 'click' | 'dblclick' | 'contextmenu' | 'mouseup' | 'touchend',
|
|
62
62
|
});
|
|
@@ -67,7 +67,7 @@ kitzoCopy(selector | element, {
|
|
|
67
67
|
##### Tooltip API:
|
|
68
68
|
|
|
69
69
|
```javascript
|
|
70
|
-
|
|
70
|
+
kitzo.tooltip(selectors | element | NodeList, {
|
|
71
71
|
tooltip: string,
|
|
72
72
|
direction: 'top' | 'right' | 'bottom' | 'left',
|
|
73
73
|
arrow: 'on' | 'off',
|
|
@@ -82,7 +82,7 @@ kitzoTooltip(selectors | element | NodeList, {
|
|
|
82
82
|
##### Ripple API:
|
|
83
83
|
|
|
84
84
|
```javascript
|
|
85
|
-
|
|
85
|
+
kitzo.ripple(selectors | element | NodeList, {
|
|
86
86
|
opacity: number,
|
|
87
87
|
duration: number,
|
|
88
88
|
color: string,
|
|
@@ -95,12 +95,12 @@ kitzoRipple(selectors | element | NodeList, {
|
|
|
95
95
|
##### Debounce API:
|
|
96
96
|
|
|
97
97
|
```javascript
|
|
98
|
-
|
|
98
|
+
kitzo.debounce(callback, delayInMilliseconds);
|
|
99
99
|
```
|
|
100
100
|
|
|
101
101
|
```javascript
|
|
102
102
|
// Log only after typing stops for 500ms
|
|
103
|
-
const logSearch =
|
|
103
|
+
const logSearch = kitzo.debounce((text) => {
|
|
104
104
|
console.log('Searching for:', text);
|
|
105
105
|
}, 500);
|
|
106
106
|
|