@skeletonlabs/skeleton 2.2.0-dev.2457bc93 → 2.2.0-dev.51be6c34

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.
@@ -1,5 +1,6 @@
1
1
  <script>import { onMount } from "svelte";
2
2
  import { modeCurrent, setModeUserPrefers, setModeCurrent, setInitialClassState, getModeOsPrefers } from "./lightswitch.js";
3
+ export let title = "Toggle light or dark mode.";
3
4
  export let bgLight = "bg-surface-50";
4
5
  export let bgDark = "bg-surface-900";
5
6
  export let fillLight = "fill-surface-50";
@@ -64,7 +65,7 @@ $:
64
65
  role="switch"
65
66
  aria-label="Light Switch"
66
67
  aria-checked={$modeCurrent}
67
- title="Toggle {$modeCurrent === true ? 'Dark' : 'Light'} Mode"
68
+ {title}
68
69
  tabindex="0"
69
70
  >
70
71
  <!-- Thumb -->
@@ -2,6 +2,8 @@ import { SvelteComponentTyped } from "svelte";
2
2
  declare const __propDef: {
3
3
  props: {
4
4
  [x: string]: any;
5
+ /** Customize the `title` attribute for the component.*/
6
+ title?: string | undefined;
5
7
  /** Provide classes to set the light background color.*/
6
8
  bgLight?: string | undefined;
7
9
  /** Provide classes to set the dark background color.*/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skeletonlabs/skeleton",
3
- "version": "2.2.0-dev.2457bc93",
3
+ "version": "2.2.0-dev.51be6c34",
4
4
  "description": "A SvelteKit component library.",
5
5
  "author": "endigo9740 <chris@skeletonlabs.dev>",
6
6
  "repository": {