diff --git a/src/lib/components/BottomSheet.svelte b/src/lib/components/BottomSheet.svelte index a283957..0ee943a 100644 --- a/src/lib/components/BottomSheet.svelte +++ b/src/lib/components/BottomSheet.svelte @@ -1,7 +1,7 @@ {#if isOpen}
(isOpen = false))} class="fixed inset-0 z-10 bg-black bg-opacity-50" transition:fade={{ duration: 100 }} > - +
-
e.stopPropagation()} class="rounded-2xl bg-white p-4"> +
e.stopPropagation()} class={["rounded-2xl bg-white p-4", props.class]}> {@render children?.()}
diff --git a/src/lib/components/atoms/buttons/FloatingButton.svelte b/src/lib/components/atoms/buttons/FloatingButton.svelte index 499a043..924b086 100644 --- a/src/lib/components/atoms/buttons/FloatingButton.svelte +++ b/src/lib/components/atoms/buttons/FloatingButton.svelte @@ -1,7 +1,7 @@ + +
+ {@render children?.()} +
diff --git a/src/lib/components/atoms/divs/BottomDiv.svelte b/src/lib/components/atoms/divs/BottomDiv.svelte new file mode 100644 index 0000000..74386b3 --- /dev/null +++ b/src/lib/components/atoms/divs/BottomDiv.svelte @@ -0,0 +1,15 @@ + + +
+ {@render children?.()} +
diff --git a/src/lib/components/atoms/divs/index.ts b/src/lib/components/atoms/divs/index.ts new file mode 100644 index 0000000..0044d60 --- /dev/null +++ b/src/lib/components/atoms/divs/index.ts @@ -0,0 +1,2 @@ +export { default as AdaptiveDiv } from "./AdaptiveDiv.svelte"; +export { default as BottomDiv } from "./BottomDiv.svelte"; diff --git a/src/lib/components/atoms/index.ts b/src/lib/components/atoms/index.ts index 5c96a2a..a977f53 100644 --- a/src/lib/components/atoms/index.ts +++ b/src/lib/components/atoms/index.ts @@ -1,2 +1,4 @@ export * from "./buttons"; +export * from "./divs"; export * from "./inputs"; +export { default as Modal } from "./Modal.svelte"; diff --git a/src/lib/components/atoms/inputs/TextInput.svelte b/src/lib/components/atoms/inputs/TextInput.svelte index f30c331..9da684a 100644 --- a/src/lib/components/atoms/inputs/TextInput.svelte +++ b/src/lib/components/atoms/inputs/TextInput.svelte @@ -1,26 +1,31 @@ -
- - - +
+
+ + + +