@sjsf/flowbite-theme
Advanced tools
@@ -25,2 +25,2 @@ <script lang="ts" module> | ||
| <Range bind:value {...attributes} /> | ||
| <Range bind:value={() => value ?? 0, (v) => (value = v)} {...attributes} /> |
@@ -25,4 +25,4 @@ <script lang="ts" module> | ||
| <Toggle bind:checked={value} {...attributes}> | ||
| <Toggle bind:checked={() => value ?? false, (v) => (value = v)} {...attributes}> | ||
| {config.title} | ||
| </Toggle> |
@@ -19,9 +19,2 @@ <script lang="ts" module> | ||
| // Recreates behavior of standard checkbox | ||
| $effect(() => { | ||
| if (value === undefined) { | ||
| value = false; | ||
| } | ||
| }); | ||
| const attributes = $derived( | ||
@@ -28,0 +21,0 @@ inputAttributes(ctx, config, handlers, config.uiOptions?.flowbiteCheckbox) |
+5
-5
| { | ||
| "name": "@sjsf/flowbite-theme", | ||
| "version": "2.0.0-next.5", | ||
| "version": "2.0.0-next.6", | ||
| "description": "The flowbite based theme for svelte-jsonschema-form", | ||
@@ -55,3 +55,3 @@ "license": "MIT", | ||
| "peerDependencies": { | ||
| "@sjsf/form": "^2.0.0-next.5", | ||
| "@sjsf/form": "^2.0.0-next.6", | ||
| "flowbite": "^2.5.0", | ||
@@ -85,5 +85,5 @@ "flowbite-svelte": "~0.47.0", | ||
| "vitest": "3.0.9", | ||
| "@sjsf/ajv8-validator": "2.0.0-next.5", | ||
| "@sjsf/form": "2.0.0-next.5", | ||
| "testing": "0.1.0-next.5" | ||
| "@sjsf/ajv8-validator": "2.0.0-next.6", | ||
| "@sjsf/form": "2.0.0-next.6", | ||
| "testing": "0.1.0-next.6" | ||
| }, | ||
@@ -90,0 +90,0 @@ "svelte": "./dist/index.js", |
175283
-0.03%