fuma 1.0.2 → 1.0.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.
@@ -8,6 +8,7 @@
8
8
 
9
9
  let klass = ''
10
10
  export { klass as class }
11
+ export let defaultMode: 'dark' | 'light' | 'system' | undefined = undefined
11
12
 
12
13
  onMount(() => {
13
14
  const [html] = document.getElementsByTagName('html')
@@ -25,7 +26,7 @@
25
26
  $: path = $mode === 'light' ? mdiWhiteBalanceSunny : mdiWeatherNight
26
27
  </script>
27
28
 
28
- <ModeWatcher defaultMode="light" />
29
+ <ModeWatcher {defaultMode} />
29
30
 
30
31
  <slot {toggleMode} {path}>
31
32
  <button class="btn btn-square btn-sm {klass}" on:click={toggleMode}>
@@ -3,6 +3,7 @@ import { toggleMode } from 'mode-watcher';
3
3
  declare const __propDef: {
4
4
  props: {
5
5
  class?: string | undefined;
6
+ defaultMode?: 'dark' | 'light' | 'system' | undefined;
6
7
  children?: import("svelte").Snippet<[{
7
8
  toggleMode: typeof toggleMode;
8
9
  path: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fuma",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "My fullstack material build with sveltekit, daisyui, zod, prisma, lucia",
5
5
  "author": {
6
6
  "name": "Jonas Voisard",