diff --git a/src/lib/components/ui/Button.svelte b/src/lib/components/ui/Button.svelte index b74c99b5..534dd935 100644 --- a/src/lib/components/ui/Button.svelte +++ b/src/lib/components/ui/Button.svelte @@ -8,7 +8,15 @@ interface Props { /** Button variant style */ - variant?: 'primary' | 'secondary' | 'ghost' | 'text' | 'destructive' | 'notice' | 'subtle' | undefined + variant?: + | 'primary' + | 'secondary' + | 'ghost' + | 'text' + | 'destructive' + | 'notice' + | 'subtle' + | undefined /** Button size */ size?: 'small' | 'medium' | 'large' | 'icon' | undefined /** Whether button is contained */ @@ -119,10 +127,10 @@ {@render leftAccessory()} {:else if hasLeftIcon && !iconOnly && icon} - - - - {/if} + + + + {/if} {#if children && !iconOnly} @@ -137,10 +145,10 @@ {@render rightAccessory()} {:else if hasRightIcon && !iconOnly && icon} - - - - {/if} + + + + {/if} diff --git a/src/lib/components/ui/Input.svelte b/src/lib/components/ui/Input.svelte index b0dc4604..678a9917 100644 --- a/src/lib/components/ui/Input.svelte +++ b/src/lib/components/ui/Input.svelte @@ -112,16 +112,16 @@ {:else} + bind:value + class={inputClasses} + {type} + {placeholder} + {disabled} + {readonly} + {required} + maxlength={maxLength} + {...restProps} + /> {/if} {#if error} @@ -161,16 +161,16 @@ {:else} + bind:value + class={inputClasses} + {type} + {placeholder} + {disabled} + {readonly} + {required} + maxlength={maxLength} + {...restProps} + /> {/if}