From 1c09d93b41ff92b68d0ba77f6feb89858fd9118c Mon Sep 17 00:00:00 2001 From: static Date: Fri, 24 Jan 2025 16:39:09 +0900 Subject: [PATCH 01/16] =?UTF-8?q?Button=20=EB=B0=8F=20Input=20=EC=BB=B4?= =?UTF-8?q?=ED=8F=AC=EB=84=8C=ED=8A=B8=EB=A5=BC=20atoms=20=EB=94=94?= =?UTF-8?q?=EB=A0=89=ED=84=B0=EB=A6=AC=EB=A1=9C=20=EC=9D=B4=EB=8F=99=20?= =?UTF-8?q?=EB=B0=8F=20=EB=A6=AC=ED=8C=A9=ED=86=A0=EB=A7=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/atoms/buttons/Button.svelte | 35 ++++++++++++++++++ .../atoms/buttons/EntryButton.svelte | 28 ++++++++++++++ .../{ => atoms}/buttons/FloatingButton.svelte | 14 ++----- .../{ => atoms}/buttons/TextButton.svelte | 10 ++--- .../components/{ => atoms}/buttons/index.ts | 0 src/lib/components/atoms/index.ts | 2 + .../{ => atoms}/inputs/CheckBox.svelte | 8 ++-- .../{ => atoms}/inputs/TextInput.svelte | 2 +- .../components/{ => atoms}/inputs/index.ts | 0 src/lib/components/buttons/Button.svelte | 37 ------------------- src/lib/components/buttons/EntryButton.svelte | 30 --------------- src/lib/molecules/SubCategories.svelte | 4 +- src/lib/organisms/Category/Category.svelte | 2 +- src/lib/organisms/CreateCategoryModal.svelte | 9 ++--- .../auth/changePassword/+page.svelte | 5 +-- .../(fullscreen)/auth/login/+page.svelte | 5 +-- .../(fullscreen)/file/[id]/+page.svelte | 4 +- .../file/[id]/AddToCategoryBottomSheet.svelte | 6 ++- .../(fullscreen)/key/export/+page.svelte | 12 ++---- .../export/BeforeContinueBottomSheet.svelte | 8 ++-- .../key/export/BeforeContinueModal.svelte | 15 ++------ .../(fullscreen)/key/generate/+page.svelte | 4 +- .../[[id]]/CategoryMenuBottomSheet.svelte | 6 +-- .../[[id]]/DeleteCategoryModal.svelte | 8 ++-- .../[[id]]/RenameCategoryModal.svelte | 11 +++--- .../(main)/directory/[[id]]/+page.svelte | 2 +- .../directory/[[id]]/CreateBottomSheet.svelte | 6 +-- .../[[id]]/CreateDirectoryModal.svelte | 9 ++--- .../[[id]]/DeleteDirectoryEntryModal.svelte | 8 ++-- .../DirectoryEntryMenuBottomSheet.svelte | 6 +-- .../[[id]]/DuplicateFileModal.svelte | 8 ++-- .../[[id]]/RenameDirectoryEntryModal.svelte | 9 ++--- src/routes/(main)/menu/MenuEntryButton.svelte | 4 +- 33 files changed, 145 insertions(+), 172 deletions(-) create mode 100644 src/lib/components/atoms/buttons/Button.svelte create mode 100644 src/lib/components/atoms/buttons/EntryButton.svelte rename src/lib/components/{ => atoms}/buttons/FloatingButton.svelte (76%) rename src/lib/components/{ => atoms}/buttons/TextButton.svelte (67%) rename src/lib/components/{ => atoms}/buttons/index.ts (100%) create mode 100644 src/lib/components/atoms/index.ts rename src/lib/components/{ => atoms}/inputs/CheckBox.svelte (79%) rename src/lib/components/{ => atoms}/inputs/TextInput.svelte (83%) rename src/lib/components/{ => atoms}/inputs/index.ts (100%) delete mode 100644 src/lib/components/buttons/Button.svelte delete mode 100644 src/lib/components/buttons/EntryButton.svelte diff --git a/src/lib/components/atoms/buttons/Button.svelte b/src/lib/components/atoms/buttons/Button.svelte new file mode 100644 index 0000000..a1b079c --- /dev/null +++ b/src/lib/components/atoms/buttons/Button.svelte @@ -0,0 +1,35 @@ + + + diff --git a/src/lib/components/atoms/buttons/EntryButton.svelte b/src/lib/components/atoms/buttons/EntryButton.svelte new file mode 100644 index 0000000..22e8a16 --- /dev/null +++ b/src/lib/components/atoms/buttons/EntryButton.svelte @@ -0,0 +1,28 @@ + + + diff --git a/src/lib/components/buttons/FloatingButton.svelte b/src/lib/components/atoms/buttons/FloatingButton.svelte similarity index 76% rename from src/lib/components/buttons/FloatingButton.svelte rename to src/lib/components/atoms/buttons/FloatingButton.svelte index 51870c7..499a043 100644 --- a/src/lib/components/buttons/FloatingButton.svelte +++ b/src/lib/components/atoms/buttons/FloatingButton.svelte @@ -1,30 +1,24 @@
-
+
diff --git a/src/lib/components/buttons/index.ts b/src/lib/components/atoms/buttons/index.ts similarity index 100% rename from src/lib/components/buttons/index.ts rename to src/lib/components/atoms/buttons/index.ts diff --git a/src/lib/components/atoms/index.ts b/src/lib/components/atoms/index.ts new file mode 100644 index 0000000..5c96a2a --- /dev/null +++ b/src/lib/components/atoms/index.ts @@ -0,0 +1,2 @@ +export * from "./buttons"; +export * from "./inputs"; diff --git a/src/lib/components/inputs/CheckBox.svelte b/src/lib/components/atoms/inputs/CheckBox.svelte similarity index 79% rename from src/lib/components/inputs/CheckBox.svelte rename to src/lib/components/atoms/inputs/CheckBox.svelte index 6875040..753892f 100644 --- a/src/lib/components/inputs/CheckBox.svelte +++ b/src/lib/components/atoms/inputs/CheckBox.svelte @@ -5,16 +5,18 @@ import IconCheckCircleOutline from "~icons/material-symbols/check-circle-outline"; interface Props { - children: Snippet; checked?: boolean; + children?: Snippet; } - let { children, checked = $bindable(false) }: Props = $props(); + let { checked = $bindable(false), children }: Props = $props();