@skeletonlabs/skeleton 2.6.0-dev.8e61daab → 2.6.0-dev.f67521b0
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.
|
@@ -4,6 +4,7 @@ export let max = 100;
|
|
|
4
4
|
export let height = "h-2";
|
|
5
5
|
export let rounded = "rounded-token";
|
|
6
6
|
export let transition = "transition-[width]";
|
|
7
|
+
export let animIndeterminate = "anim-indeterminate";
|
|
7
8
|
export let meter = "bg-surface-900-50-token";
|
|
8
9
|
export let track = "bg-surface-200-700-token";
|
|
9
10
|
export let labelledby = "";
|
|
@@ -14,7 +15,7 @@ $:
|
|
|
14
15
|
$:
|
|
15
16
|
indeterminate = value === void 0 || value < 0;
|
|
16
17
|
$:
|
|
17
|
-
classesIndeterminate = indeterminate ?
|
|
18
|
+
classesIndeterminate = indeterminate ? animIndeterminate : "";
|
|
18
19
|
$:
|
|
19
20
|
classesTrack = `${cTrack} ${track} ${height} ${rounded} ${$$props.class ?? ""}`;
|
|
20
21
|
$:
|
|
@@ -36,12 +37,12 @@ $:
|
|
|
36
37
|
</div>
|
|
37
38
|
|
|
38
39
|
<style>
|
|
39
|
-
.
|
|
40
|
+
.anim-indeterminate {
|
|
40
41
|
transform-origin: 0% 50%;
|
|
41
|
-
animation:
|
|
42
|
+
animation: anim-indeterminate 2s infinite linear;
|
|
42
43
|
}
|
|
43
44
|
/* prettier-ignore */
|
|
44
|
-
@keyframes
|
|
45
|
+
@keyframes anim-indeterminate {
|
|
45
46
|
0% { transform: translateX(0) scaleX(0); }
|
|
46
47
|
40% { transform: translateX(0) scaleX(0.4); }
|
|
47
48
|
100% { transform: translateX(100%) scaleX(0.5); }
|
|
@@ -14,6 +14,8 @@ declare const __propDef: {
|
|
|
14
14
|
rounded?: string | undefined;
|
|
15
15
|
/** Provide classes to set the meter transition styles.*/
|
|
16
16
|
transition?: string | undefined;
|
|
17
|
+
/** Provide classes to replace the default animation styles.*/
|
|
18
|
+
animIndeterminate?: string | undefined;
|
|
17
19
|
/** Sets the base classes of the meter element.*/
|
|
18
20
|
meter?: string | undefined;
|
|
19
21
|
/** Sets the base classes of the track element.*/
|