@onsvisual/svelte-components 0.1.41 → 0.1.43

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.
@@ -18,7 +18,7 @@ import { SvelteComponentTyped } from "svelte";
18
18
  declare const __propDef: {
19
19
  props: {
20
20
  compact?: boolean;
21
- selected?: string;
21
+ selected?: string | null;
22
22
  border?: boolean;
23
23
  };
24
24
  events: {
@@ -13,9 +13,9 @@
13
13
  export let border = false;
14
14
  /**
15
15
  * The ID of selected tab (for binding)
16
- * @type {string}
16
+ * @type {string|null}
17
17
  */
18
- export let selected = "";
18
+ export let selected = null;
19
19
 
20
20
  const sections = writable([]);
21
21
  setContext("sections", sections);
@@ -52,7 +52,7 @@
52
52
  data-ga-category="tabs"
53
53
  data-ga-action="Show: {section.title}"
54
54
  data-ga-label="Show: {section.title}"
55
- aria-selected="{section.id === $selected ? 'true' : 'false'}"
55
+ aria-selected="{section.id === selected ? 'true' : 'false'}"
56
56
  on:click|preventDefault="{() => showSection(section.id)}">{section.title}</a
57
57
  >
58
58
  </li>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onsvisual/svelte-components",
3
- "version": "0.1.41",
3
+ "version": "0.1.43",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "homepage": "https://onsvisual.github.io/svelte-components",