From b39a4162a41184df559ac5ebe4ce8ccbcedf7d23 Mon Sep 17 00:00:00 2001 From: Julien Chaumond Date: Wed, 15 Nov 2023 17:27:13 +0100 Subject: [PATCH] rm Dropdown --- .../lib/components/Dropdown/Dropdown.svelte | 75 ------------------- .../DropdownEntry/DropdownEntry.svelte | 44 ----------- .../DropdownMenu/DropdownMenu.svelte | 68 ----------------- 3 files changed, 187 deletions(-) delete mode 100644 js/src/lib/components/Dropdown/Dropdown.svelte delete mode 100644 js/src/lib/components/DropdownEntry/DropdownEntry.svelte delete mode 100644 js/src/lib/components/DropdownMenu/DropdownMenu.svelte diff --git a/js/src/lib/components/Dropdown/Dropdown.svelte b/js/src/lib/components/Dropdown/Dropdown.svelte deleted file mode 100644 index 5ba5132ee..000000000 --- a/js/src/lib/components/Dropdown/Dropdown.svelte +++ /dev/null @@ -1,75 +0,0 @@ - - -
- - - - - {#if isOpen} - (isOpen = false)} - > - - {#if $$slots.menu} - - {:else} - {#each entries as entry} - - {/each} - {/if} - - {/if} - -
diff --git a/js/src/lib/components/DropdownEntry/DropdownEntry.svelte b/js/src/lib/components/DropdownEntry/DropdownEntry.svelte deleted file mode 100644 index 73ef1b7f1..000000000 --- a/js/src/lib/components/DropdownEntry/DropdownEntry.svelte +++ /dev/null @@ -1,44 +0,0 @@ - - -
  • - { - if (type === "submit") { - e.stopPropagation(); - } - onClick(e); - }} - type={element === "button" ? type : undefined} - > - - {#if $$slots.default} - - {:else} - {#if icon} - - {/if} - {label} - {/if} - -
  • diff --git a/js/src/lib/components/DropdownMenu/DropdownMenu.svelte b/js/src/lib/components/DropdownMenu/DropdownMenu.svelte deleted file mode 100644 index a77bcb147..000000000 --- a/js/src/lib/components/DropdownMenu/DropdownMenu.svelte +++ /dev/null @@ -1,68 +0,0 @@ - - - - - -
    -
      - -
    -