From 7a5ba5ea4aec0704070cfe8d63ba504a07d88cc6 Mon Sep 17 00:00:00 2001
From: ivarlovlie <git@ivarlovlie.no>
Date: Sat, 1 Oct 2022 16:44:31 +0800
Subject: feat: Functionality complete public sites

---
 apps/kit/src/lib/components/button.svelte | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

(limited to 'apps/kit/src/lib/components/button.svelte')

diff --git a/apps/kit/src/lib/components/button.svelte b/apps/kit/src/lib/components/button.svelte
index 95dba5c..323c7ad 100644
--- a/apps/kit/src/lib/components/button.svelte
+++ b/apps/kit/src/lib/components/button.svelte
@@ -13,7 +13,7 @@
     export let tabindex: string | undefined = undefined;
     export let style: string | undefined = undefined;
     export let title: string | undefined = undefined;
-    export let disabled = false;
+    export let disabled: boolean | null = false;
     export let href: string | undefined = undefined;
     export let text: string;
     export let loading = false;
@@ -78,8 +78,9 @@
         on:click
         class="{sizeClasses} {kindClasses} {loading
             ? 'disabled:'
-            : ''} {$$restProps.class ??
-            ''} {fullWidth ? 'w-full justify-center': ''} inline-flex items-center border font-medium rounded shadow-sm focus:outline-none focus:ring-2"
+            : ''} {$$restProps.class ?? ''} {fullWidth
+            ? 'w-full justify-center'
+            : ''} inline-flex items-center border font-medium rounded shadow-sm focus:outline-none focus:ring-2"
     >
         {#if loading}
             <Spinner class={spinnerTextClasses + " " + spinnerMarginClasses} />
@@ -89,8 +90,9 @@
 {:else}
     <button
         {...shared_props}
-        class="{sizeClasses} {kindClasses} {$$restProps.class ??
-            ''} {fullWidth ? 'w-full justify-center': ''} inline-flex items-center border font-medium rounded shadow-sm focus:outline-none focus:ring-2"
+        class="{sizeClasses} {kindClasses} {$$restProps.class ?? ''} {fullWidth
+            ? 'w-full justify-center'
+            : ''} inline-flex items-center border font-medium rounded shadow-sm focus:outline-none focus:ring-2"
     >
         {#if loading}
             <Spinner class={spinnerTextClasses + " " + spinnerMarginClasses} />
-- 
cgit v1.3

