lapikit 0.1.12 → 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/accordion/accordion.css +2 -2
- package/dist/components/alert/alert.css +2 -2
- package/dist/components/appbar/appbar.css +2 -2
- package/dist/components/button/button.css +1 -0
- package/dist/components/button/button.svelte +1 -0
- package/dist/components/card/card.css +2 -2
- 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/dropdown/dropdown.css +2 -2
- package/dist/components/icon/icon.css +1 -1
- package/dist/components/list/list.css +1 -0
- package/dist/components/list/modules/list-item.svelte +1 -0
- package/dist/components/popover/popover.css +2 -2
- package/dist/components/separator/separator.css +1 -1
- package/dist/components/toolbar/toolbar.css +2 -2
- package/dist/components/tooltip/tooltip.css +2 -2
- 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
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
border-radius: var(--shape, var(--accordion-radius, var(--kit-radius-md)));
|
|
50
50
|
color: var(--on, var(--accordion-color, var(--kit-on-container)));
|
|
51
51
|
background-color: var(--base, var(--accordion-background, var(--kit-container)));
|
|
52
|
-
transition:
|
|
52
|
+
/* transition:
|
|
53
53
|
color 0.5s,
|
|
54
|
-
background-color 0.5s;
|
|
54
|
+
background-color 0.5s; */
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
.kit-accordion .kit-accordion-item > button,
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
color: var(--alert-color);
|
|
16
16
|
background-color: var(--alert-background);
|
|
17
17
|
border-radius: var(--alert-radius);
|
|
18
|
-
transition:
|
|
18
|
+
/* transition:
|
|
19
19
|
color 0.5s,
|
|
20
|
-
background-color 0.5s;
|
|
20
|
+
background-color 0.5s; */
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.kit-alert .kit-alert--underlay {
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
color: var(--appbar-color);
|
|
16
16
|
background-color: var(--appbar-background);
|
|
17
17
|
border-color: var(--appbar-background);
|
|
18
|
-
transition:
|
|
18
|
+
/* transition:
|
|
19
19
|
color 0.5s,
|
|
20
20
|
border-color 0.5s,
|
|
21
|
-
background-color 0.5s;
|
|
21
|
+
background-color 0.5s; */
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
/* wrapper */
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
flex-direction: column;
|
|
12
12
|
text-align: start;
|
|
13
13
|
overflow: hidden;
|
|
14
|
-
transition:
|
|
14
|
+
/* transition:
|
|
15
15
|
color 0.5s,
|
|
16
|
-
background-color 0.5s;
|
|
16
|
+
background-color 0.5s; */
|
|
17
17
|
padding-top: var(--card-spacing-x);
|
|
18
18
|
padding-bottom: var(--card-spacing-x);
|
|
19
19
|
padding-right: var(--card-spacing-y);
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
width: auto;
|
|
20
20
|
pointer-events: none;
|
|
21
21
|
overflow-wrap: break-word;
|
|
22
|
-
transition:
|
|
22
|
+
/* transition:
|
|
23
23
|
color 0.5s,
|
|
24
24
|
border-color 0.5s,
|
|
25
|
-
background-color 0.5s;
|
|
25
|
+
background-color 0.5s; */
|
|
26
26
|
box-shadow: 0px 16px 29px -10px color-mix(in oklab, var(--kit-scrim) 60%, transparent);
|
|
27
27
|
}
|
|
28
28
|
|
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
|
}
|