lapikit 0.1.13 → 0.1.14
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/dist/components/button/button.css +1 -0
- package/dist/components/button/button.svelte +1 -0
- package/dist/components/card/card.svelte +1 -0
- package/dist/components/chip/chip.css +1 -0
- package/dist/components/chip/chip.svelte +1 -0
- package/dist/components/list/list.css +1 -0
- package/dist/components/list/modules/list-item.svelte +1 -0
- package/dist/internal/ripple.d.ts +1 -0
- package/dist/internal/ripple.js +3 -0
- package/dist/style/animation.css +2 -0
- package/dist/style/parser/color.js +2 -2
- package/package.json +1 -1
package/dist/internal/ripple.js
CHANGED
|
@@ -26,6 +26,9 @@ export function ripple(el, options = {}) {
|
|
|
26
26
|
if (options.duration && options.duration < 0) {
|
|
27
27
|
options.duration = undefined;
|
|
28
28
|
}
|
|
29
|
+
if (options.component) {
|
|
30
|
+
rippleContainer.style.setProperty('--ripple-radius', `var(--${options.component}-radius)`);
|
|
31
|
+
}
|
|
29
32
|
if (options.color) {
|
|
30
33
|
rippleContainer.style.setProperty('--ripple-color', options.color);
|
|
31
34
|
}
|
package/dist/style/animation.css
CHANGED
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
transition: 0.6s;
|
|
30
30
|
-webkit-animation: lapikit-ripple var(--ripple-duration, 0.4s) cubic-bezier(0.4, 0, 0.2, 1);
|
|
31
31
|
animation: lapikit-ripple var(--ripple-duration, 0.4s) cubic-bezier(0.4, 0, 0.2, 1);
|
|
32
|
+
border-radius: var(--ripple-radius);
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
.kit-ripple--center {
|
|
@@ -47,6 +48,7 @@
|
|
|
47
48
|
background: none;
|
|
48
49
|
pointer-events: none;
|
|
49
50
|
z-index: 999;
|
|
51
|
+
border-radius: var(--ripple-radius);
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
@keyframes lapikit-ripple {
|
|
@@ -38,7 +38,7 @@ export const colors = (config) => {
|
|
|
38
38
|
}
|
|
39
39
|
cssVariables += `}\n`;
|
|
40
40
|
cssVariables += `.${inversed} {\n`;
|
|
41
|
-
cssVariables += `color-scheme: ${
|
|
41
|
+
cssVariables += `color-scheme: ${inversed};\n`;
|
|
42
42
|
for (const [colorName, colorValue] of Object.entries(schemes[inversed])) {
|
|
43
43
|
cssVariables += `--kit-${colorName}: ${colorValue};\n`;
|
|
44
44
|
}
|
|
@@ -56,7 +56,7 @@ export const colors = (config) => {
|
|
|
56
56
|
}
|
|
57
57
|
cssVariables += `}\n`;
|
|
58
58
|
cssVariables += `.${inversed} {\n`;
|
|
59
|
-
cssVariables += `color-scheme: ${
|
|
59
|
+
cssVariables += `color-scheme: ${inversed};\n`;
|
|
60
60
|
for (const [colorName, colorValue] of Object.entries(schemes[inversed])) {
|
|
61
61
|
cssVariables += `--kit-${colorName}: ${colorValue};\n`;
|
|
62
62
|
}
|