@xleddyl/443-components-vue 0.16.2 → 0.16.3
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.
|
@@ -9,9 +9,9 @@ import {
|
|
|
9
9
|
import { THEME_KEY } from "../internal/keys.mjs";
|
|
10
10
|
export { THEME_STORAGE_KEY, isThemePreference } from "../internal/core/theme.mjs";
|
|
11
11
|
export const themeOptions = [
|
|
12
|
-
{ value: "system", label: "System", icon: "computer-desktop" },
|
|
13
12
|
{ value: "light", label: "Light", icon: "sun" },
|
|
14
|
-
{ value: "dark", label: "Dark", icon: "moon" }
|
|
13
|
+
{ value: "dark", label: "Dark", icon: "moon" },
|
|
14
|
+
{ value: "system", label: "System", icon: "computer-desktop" }
|
|
15
15
|
];
|
|
16
16
|
export function provideTheme(store) {
|
|
17
17
|
provide(THEME_KEY, store);
|
|
@@ -4,7 +4,7 @@ import { DARK_SCHEME_QUERY, isClient } from "./env.mjs";
|
|
|
4
4
|
import { bindPreference, resolvePreferences } from "./preferences.mjs";
|
|
5
5
|
import { createStoredRef } from "./storage.mjs";
|
|
6
6
|
export const THEME_STORAGE_KEY = "k-theme";
|
|
7
|
-
export const THEME_ORDER = ["
|
|
7
|
+
export const THEME_ORDER = ["light", "dark", "system"];
|
|
8
8
|
export function isThemePreference(value) {
|
|
9
9
|
return THEME_ORDER.includes(value);
|
|
10
10
|
}
|
package/package.json
CHANGED