kitzo 2.0.19 → 2.0.20
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 +1 -1
- package/dist/kitzo.esm.js +5 -2
- package/dist/kitzo.umd.js +5 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ npm i kitzo
|
|
|
25
25
|
or
|
|
26
26
|
|
|
27
27
|
```javascript
|
|
28
|
-
<script src="https://cdn.jsdelivr.net/npm/kitzo@2.0.
|
|
28
|
+
<script src="https://cdn.jsdelivr.net/npm/kitzo@2.0.20/dist/kitzo.umd.min.js"></script>
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
> Attach this script tag in the html head tag and you are good to go.
|
package/dist/kitzo.esm.js
CHANGED
|
@@ -404,10 +404,12 @@ function clippathStyles() {
|
|
|
404
404
|
clip-path: circle(0 at var(--kitzo-clippath-pos-x) var(--kitzo-clippath-pos-y));
|
|
405
405
|
transition: var(--kitzo-clippath-transition);
|
|
406
406
|
}
|
|
407
|
-
|
|
408
407
|
.kitzo-clippath-div.show {
|
|
409
408
|
opacity: 1;
|
|
410
409
|
clip-path: circle(var(--kitzo-clippath-size) at var(--kitzo-clippath-pos-x) var(--kitzo-clippath-pos-y));
|
|
410
|
+
}
|
|
411
|
+
[data-kitzo-clippath] * {
|
|
412
|
+
pointer-events: none !important;
|
|
411
413
|
}`;
|
|
412
414
|
}
|
|
413
415
|
|
|
@@ -505,7 +507,7 @@ function clippath(element, config = {}) {
|
|
|
505
507
|
clippathDiv.style.setProperty('--kitzo-clippath-transition', smooth ? 'clip-path 150ms ease-out, opacity 150ms' : 'none');
|
|
506
508
|
clippathDiv.style.setProperty('--kitzo-clippath-size', getClippathSize(clippathSize));
|
|
507
509
|
|
|
508
|
-
const { borderRadius, font, letterSpacing, lineHeight, border, boxSizing, padding } = window.getComputedStyle(btn);
|
|
510
|
+
const { borderRadius, font, letterSpacing, lineHeight, border, boxSizing, padding, display } = window.getComputedStyle(btn);
|
|
509
511
|
|
|
510
512
|
Object.assign(clippathDiv.style, {
|
|
511
513
|
backgroundColor: '#01c2b8',
|
|
@@ -517,6 +519,7 @@ function clippath(element, config = {}) {
|
|
|
517
519
|
border,
|
|
518
520
|
boxSizing,
|
|
519
521
|
padding,
|
|
522
|
+
display,
|
|
520
523
|
...style,
|
|
521
524
|
});
|
|
522
525
|
|
package/dist/kitzo.umd.js
CHANGED
|
@@ -410,10 +410,12 @@
|
|
|
410
410
|
clip-path: circle(0 at var(--kitzo-clippath-pos-x) var(--kitzo-clippath-pos-y));
|
|
411
411
|
transition: var(--kitzo-clippath-transition);
|
|
412
412
|
}
|
|
413
|
-
|
|
414
413
|
.kitzo-clippath-div.show {
|
|
415
414
|
opacity: 1;
|
|
416
415
|
clip-path: circle(var(--kitzo-clippath-size) at var(--kitzo-clippath-pos-x) var(--kitzo-clippath-pos-y));
|
|
416
|
+
}
|
|
417
|
+
[data-kitzo-clippath] * {
|
|
418
|
+
pointer-events: none !important;
|
|
417
419
|
}`;
|
|
418
420
|
}
|
|
419
421
|
|
|
@@ -511,7 +513,7 @@
|
|
|
511
513
|
clippathDiv.style.setProperty('--kitzo-clippath-transition', smooth ? 'clip-path 150ms ease-out, opacity 150ms' : 'none');
|
|
512
514
|
clippathDiv.style.setProperty('--kitzo-clippath-size', getClippathSize(clippathSize));
|
|
513
515
|
|
|
514
|
-
const { borderRadius, font, letterSpacing, lineHeight, border, boxSizing, padding } = window.getComputedStyle(btn);
|
|
516
|
+
const { borderRadius, font, letterSpacing, lineHeight, border, boxSizing, padding, display } = window.getComputedStyle(btn);
|
|
515
517
|
|
|
516
518
|
Object.assign(clippathDiv.style, {
|
|
517
519
|
backgroundColor: '#01c2b8',
|
|
@@ -523,6 +525,7 @@
|
|
|
523
525
|
border,
|
|
524
526
|
boxSizing,
|
|
525
527
|
padding,
|
|
528
|
+
display,
|
|
526
529
|
...style,
|
|
527
530
|
});
|
|
528
531
|
|