@velkymx/vibeui 0.6.0 → 0.7.0

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.
@@ -0,0 +1,14 @@
1
+ import { ColorMode } from '../types';
2
+ export declare function useColorMode(): {
3
+ colorMode: import('vue').Ref<ColorMode, ColorMode>;
4
+ setColorMode: (mode: ColorMode) => void;
5
+ toggleColorMode: () => void;
6
+ initColorMode: () => void;
7
+ clearColorMode: () => void;
8
+ };
9
+ /**
10
+ * For testing only — not re-exported from the package index.
11
+ * Resets singleton state and removes the storage key.
12
+ * Must be called in beforeEach to guarantee clean state between tests.
13
+ */
14
+ export declare function _resetColorMode(): void;
package/dist/index.d.ts CHANGED
@@ -3,4 +3,5 @@ export * from './components';
3
3
  export * from './types';
4
4
  export * from './composables/useFormValidation';
5
5
  export { useId } from './composables/useId';
6
+ export { useColorMode } from './composables/useColorMode';
6
7
  export default VibeUIPlugin;
package/dist/types.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export type ColorMode = 'light' | 'dark' | 'auto';
1
2
  export type Variant = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark';
2
3
  export type Size = 'sm' | 'lg';
3
4
  export type ButtonType = 'button' | 'submit' | 'reset';