@gleich/ui 1.3.5 → 1.3.7
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/scrolling.svelte +4 -1
- package/dist/scrolling.svelte.d.ts +1 -0
- package/dist/styles.css +2 -2
- package/package.json +20 -20
package/dist/scrolling.svelte
CHANGED
|
@@ -6,12 +6,14 @@
|
|
|
6
6
|
delay = 2,
|
|
7
7
|
speed = 15,
|
|
8
8
|
pauseOnHover = true,
|
|
9
|
+
center = true,
|
|
9
10
|
children
|
|
10
11
|
}: {
|
|
11
12
|
gap?: number;
|
|
12
13
|
delay?: number;
|
|
13
14
|
speed?: number;
|
|
14
15
|
pauseOnHover?: boolean;
|
|
16
|
+
center?: boolean;
|
|
15
17
|
children: Snippet;
|
|
16
18
|
} = $props();
|
|
17
19
|
|
|
@@ -31,6 +33,7 @@
|
|
|
31
33
|
style:--gradient-width={overflowing ? '10px' : '0px'}
|
|
32
34
|
style:--gap={overflowing ? `${gap}px` : '0px'}
|
|
33
35
|
style:--hover-state={pauseOnHover ? 'paused' : 'play'}
|
|
36
|
+
style:--marquee-justify-content={center ? 'center' : 'flex-start'}
|
|
34
37
|
>
|
|
35
38
|
<div
|
|
36
39
|
class={`marquee ${overflowing ? 'scroll-animation' : ''}`}
|
|
@@ -83,7 +86,7 @@
|
|
|
83
86
|
display: flex;
|
|
84
87
|
flex-direction: row;
|
|
85
88
|
align-items: center;
|
|
86
|
-
justify-content:
|
|
89
|
+
justify-content: var(--marquee-justify-content);
|
|
87
90
|
padding-right: var(--gap);
|
|
88
91
|
}
|
|
89
92
|
|
package/dist/styles.css
CHANGED
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
|
|
33
33
|
@media (prefers-color-scheme: light) {
|
|
34
34
|
:root {
|
|
35
|
-
--box-shadow-color: rgb(
|
|
36
|
-
--box-shadow: 0px 3px
|
|
35
|
+
--box-shadow-color: rgb(202, 202, 202);
|
|
36
|
+
--box-shadow: 0px 3px 10px var(--box-shadow-color);
|
|
37
37
|
|
|
38
38
|
--button-background: rgb(238, 238, 238);
|
|
39
39
|
--button-foreground: black;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gleich/ui",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.7",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"packageManager": "pnpm@10.11.0",
|
|
6
6
|
"scripts": {
|
|
@@ -36,25 +36,25 @@
|
|
|
36
36
|
"svelte": "^5.0.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@eslint/compat": "^1.
|
|
40
|
-
"@eslint/js": "^9.
|
|
41
|
-
"@sveltejs/adapter-cloudflare": "^7.
|
|
42
|
-
"@sveltejs/kit": "^2.
|
|
43
|
-
"@sveltejs/package": "^2.
|
|
44
|
-
"@sveltejs/vite-plugin-svelte": "^
|
|
45
|
-
"eslint": "^9.
|
|
46
|
-
"eslint-config-prettier": "^10.1.
|
|
47
|
-
"eslint-plugin-svelte": "^3.
|
|
48
|
-
"globals": "^16.
|
|
49
|
-
"prettier": "^3.
|
|
50
|
-
"prettier-plugin-svelte": "^3.
|
|
51
|
-
"publint": "^0.3.
|
|
52
|
-
"svelte": "^5.
|
|
53
|
-
"svelte-check": "^4.
|
|
54
|
-
"typescript": "^5.
|
|
55
|
-
"typescript-eslint": "^8.
|
|
56
|
-
"vite": "^
|
|
57
|
-
"wrangler": "^4.
|
|
39
|
+
"@eslint/compat": "^1.4.0",
|
|
40
|
+
"@eslint/js": "^9.37.0",
|
|
41
|
+
"@sveltejs/adapter-cloudflare": "^7.2.4",
|
|
42
|
+
"@sveltejs/kit": "^2.43.8",
|
|
43
|
+
"@sveltejs/package": "^2.5.4",
|
|
44
|
+
"@sveltejs/vite-plugin-svelte": "^6.2.1",
|
|
45
|
+
"eslint": "^9.37.0",
|
|
46
|
+
"eslint-config-prettier": "^10.1.8",
|
|
47
|
+
"eslint-plugin-svelte": "^3.12.4",
|
|
48
|
+
"globals": "^16.4.0",
|
|
49
|
+
"prettier": "^3.6.2",
|
|
50
|
+
"prettier-plugin-svelte": "^3.4.0",
|
|
51
|
+
"publint": "^0.3.13",
|
|
52
|
+
"svelte": "^5.39.8",
|
|
53
|
+
"svelte-check": "^4.3.2",
|
|
54
|
+
"typescript": "^5.9.3",
|
|
55
|
+
"typescript-eslint": "^8.45.0",
|
|
56
|
+
"vite": "^7.1.9",
|
|
57
|
+
"wrangler": "^4.42.0"
|
|
58
58
|
},
|
|
59
59
|
"keywords": [
|
|
60
60
|
"svelte"
|