@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 +1 -1
- package/src/Switch.svelte +6 -2
package/package.json
CHANGED
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
|
|
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}
|