@rokkit/core 1.0.0-next.21 → 1.0.0-next.22

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rokkit/core",
3
- "version": "1.0.0-next.21",
3
+ "version": "1.0.0-next.22",
4
4
  "description": "Core components, actions and stores for svelte apps.",
5
5
  "author": "Jerry Thomas <me@jerrythomas.name>",
6
6
  "license": "MIT",
package/src/Switch.svelte CHANGED
@@ -29,7 +29,11 @@
29
29
  <error>Items should be an array with at least two items.</error>
30
30
  {:else}
31
31
  <!-- svelte-ignore a11y-no-noninteractive-tabindex -->
32
- <toggle class="flex items-center {className}" class:compact tabindex="0">
32
+ <toggle-switch
33
+ class="flex items-center {className}"
34
+ class:compact
35
+ tabindex="0"
36
+ >
33
37
  {#each items as item, index (item)}
34
38
  {@const component = useComponent ? getComponent(item, fields) : null}
35
39
  <!-- svelte-ignore a11y-click-events-have-key-events -->
@@ -46,5 +50,5 @@
46
50
  {/if}
47
51
  </item>
48
52
  {/each}
49
- </toggle>
53
+ </toggle-switch>
50
54
  {/if}