sveltekit-ui 1.1.18 → 1.1.19
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.
|
@@ -16,10 +16,19 @@ export function create_chart_manager(config) {
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
function gen_color(
|
|
19
|
+
function gen_color(
|
|
20
|
+
l,
|
|
21
|
+
c,
|
|
22
|
+
h,
|
|
23
|
+
o = 16,
|
|
24
|
+
is_theme_based = true,
|
|
25
|
+
dark_l_offset = 0,
|
|
26
|
+
is_dark_theme = true,
|
|
27
|
+
is_safari = false
|
|
28
|
+
) {
|
|
20
29
|
const l_try = l + dark_l_offset
|
|
21
30
|
const l_limited = l_try > 16 ? 16 : l_try < 1 ? 1 : l_try
|
|
22
|
-
const l_corrected =
|
|
31
|
+
const l_corrected = is_dark_theme ? l_limited : l
|
|
23
32
|
return color_var(l_corrected, c, h, o, is_theme_based, is_safari)
|
|
24
33
|
}
|
|
25
34
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sveltekit-ui",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.19",
|
|
4
4
|
"description": "A SvelteKit UI component library for building modern web applications",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"context-filter-polyfill": "^0.3.23",
|
|
21
21
|
"qr-code-styling": "^1.9.2",
|
|
22
|
-
"svelte": "^5.
|
|
22
|
+
"svelte": "^5.46.0"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@sveltejs/kit": "^2.22.2"
|
|
@@ -16,10 +16,19 @@ export function create_chart_manager(config) {
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
function gen_color(
|
|
19
|
+
function gen_color(
|
|
20
|
+
l,
|
|
21
|
+
c,
|
|
22
|
+
h,
|
|
23
|
+
o = 16,
|
|
24
|
+
is_theme_based = true,
|
|
25
|
+
dark_l_offset = 0,
|
|
26
|
+
is_dark_theme = true,
|
|
27
|
+
is_safari = false
|
|
28
|
+
) {
|
|
20
29
|
const l_try = l + dark_l_offset
|
|
21
30
|
const l_limited = l_try > 16 ? 16 : l_try < 1 ? 1 : l_try
|
|
22
|
-
const l_corrected =
|
|
31
|
+
const l_corrected = is_dark_theme ? l_limited : l
|
|
23
32
|
return color_var(l_corrected, c, h, o, is_theme_based, is_safari)
|
|
24
33
|
}
|
|
25
34
|
|