diff --git a/src/lib/components/atoms/BottomSheet.svelte b/src/lib/components/atoms/BottomSheet.svelte index 088dc63..f23acae 100644 --- a/src/lib/components/atoms/BottomSheet.svelte +++ b/src/lib/components/atoms/BottomSheet.svelte @@ -11,7 +11,7 @@ onclose?: () => void; } - let { children, isOpen = $bindable(), onclose, ...props }: Props = $props(); + let { children, class: className, isOpen = $bindable(), onclose }: Props = $props(); {#if isOpen} @@ -32,7 +32,7 @@ class="flex max-h-[70vh] min-h-[30vh] flex-col rounded-t-2xl bg-white" transition:fly|global={{ y: 100, duration: 200 }} > -
+
{@render children?.()}
diff --git a/src/lib/components/atoms/Modal.svelte b/src/lib/components/atoms/Modal.svelte index 2d100d4..c949ec9 100644 --- a/src/lib/components/atoms/Modal.svelte +++ b/src/lib/components/atoms/Modal.svelte @@ -11,7 +11,7 @@ onclose?: () => void; } - let { children, isOpen = $bindable(), onclose, ...props }: Props = $props(); + let { children, class: className, isOpen = $bindable(), onclose }: Props = $props(); {#if isOpen} @@ -24,7 +24,7 @@ >
-
e.stopPropagation()} class={["rounded-2xl bg-white p-4", props.class]}> +
e.stopPropagation()} class={["rounded-2xl bg-white p-4", className]}> {@render children?.()}
diff --git a/src/lib/components/atoms/buttons/ActionEntryButton.svelte b/src/lib/components/atoms/buttons/ActionEntryButton.svelte index 94e9235..a52cd1d 100644 --- a/src/lib/components/atoms/buttons/ActionEntryButton.svelte +++ b/src/lib/components/atoms/buttons/ActionEntryButton.svelte @@ -13,10 +13,11 @@ let { actionButtonIcon: ActionButtonIcon, + actionButtonClass: actionButtonClassName, children, + class: className, onActionButtonClick, onclick, - ...props }: Props = $props(); @@ -25,7 +26,7 @@
setTimeout(onclick, 100))} - class={["rounded-xl", props.class]} + class={["rounded-xl", className]} >
@@ -40,10 +41,7 @@ setTimeout(onActionButtonClick, 100); } }} - class={[ - "flex-shrink-0 rounded-full p-1 text-lg active:bg-gray-100", - props.actionButtonClass, - ]} + class={["flex-shrink-0 rounded-full p-1 text-lg active:bg-gray-100", actionButtonClassName]} > diff --git a/src/lib/components/atoms/buttons/Button.svelte b/src/lib/components/atoms/buttons/Button.svelte index f05053b..2ec8d98 100644 --- a/src/lib/components/atoms/buttons/Button.svelte +++ b/src/lib/components/atoms/buttons/Button.svelte @@ -9,7 +9,7 @@ onclick?: () => void; } - let { children, color = "primary", onclick, ...props }: Props = $props(); + let { children, class: className, color = "primary", onclick }: Props = $props(); let bgColor = $derived( { @@ -31,7 +31,7 @@ "h-12 min-w-fit rounded-xl p-3 font-medium transition active:scale-95", bgColor, textColor, - props.class, + className, ]} > {@render children?.()} diff --git a/src/lib/components/atoms/buttons/EntryButton.svelte b/src/lib/components/atoms/buttons/EntryButton.svelte index 51f3a80..63926cc 100644 --- a/src/lib/components/atoms/buttons/EntryButton.svelte +++ b/src/lib/components/atoms/buttons/EntryButton.svelte @@ -10,12 +10,12 @@ onclick?: () => void; } - let { children, onclick, ...props }: Props = $props(); + let { children, class: className, onclick }: Props = $props();