mood-ui 0.7.0 → 0.7.1
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/mood-ui.cjs +3 -3
- package/dist/mood-ui.cjs.map +1 -1
- package/dist/mood-ui.mjs +1215 -1211
- package/dist/mood-ui.mjs.map +1 -1
- package/dist/types/composables/useColorMode.d.ts +2 -2
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* the side effect of toggling the `.dark` class on `<html>` runs exactly once
|
|
9
9
|
* when the mode (or the OS preference while in `'system'`) changes.
|
|
10
10
|
*/
|
|
11
|
-
export type ColorMode =
|
|
11
|
+
export type ColorMode = "light" | "dark" | "system";
|
|
12
12
|
export declare function useColorMode(): {
|
|
13
13
|
/** The raw chosen mode: `'light' | 'dark' | 'system'`. */
|
|
14
14
|
mode: import('vue').Ref<ColorMode, ColorMode>;
|
|
@@ -25,4 +25,4 @@ export declare function useColorMode(): {
|
|
|
25
25
|
* Resolves any `ColorMode` to a concrete `'light' | 'dark'` without touching
|
|
26
26
|
* the global singleton. Used by scoped providers to pick `data-modo-theme`.
|
|
27
27
|
*/
|
|
28
|
-
export declare function resolveColorMode(m: ColorMode):
|
|
28
|
+
export declare function resolveColorMode(m: ColorMode): "light" | "dark";
|