diff --git a/src/lib/components/list/Avatar.svelte b/src/lib/components/list/Avatar.svelte index 68c062ba..4e427a8b 100644 --- a/src/lib/components/list/Avatar.svelte +++ b/src/lib/components/list/Avatar.svelte @@ -1,9 +1,123 @@ + + - +{#if src} + + {#if loaded} + + {:else if failed} + {#if $$slots.placeholder} + + {:else} + + {/if} + {:else if loading} + + {/if} + + + +{:else if initials} + + {initials} + +{/if} diff --git a/src/lib/components/list/Content.svelte b/src/lib/components/list/Content.svelte index 7d670cb8..75d80865 100644 --- a/src/lib/components/list/Content.svelte +++ b/src/lib/components/list/Content.svelte @@ -1,11 +1,21 @@ -
+
diff --git a/src/lib/components/list/Description.svelte b/src/lib/components/list/Description.svelte index f23dc22d..429829a2 100644 --- a/src/lib/components/list/Description.svelte +++ b/src/lib/components/list/Description.svelte @@ -1,10 +1,20 @@ -

+

diff --git a/src/lib/components/list/Extra.svelte b/src/lib/components/list/Extra.svelte index 41134101..25e0a00b 100644 --- a/src/lib/components/list/Extra.svelte +++ b/src/lib/components/list/Extra.svelte @@ -1,5 +1,10 @@ -{icon} +{icon} diff --git a/src/lib/components/list/Item.svelte b/src/lib/components/list/Item.svelte index 9c3b7356..ffd6e669 100644 --- a/src/lib/components/list/Item.svelte +++ b/src/lib/components/list/Item.svelte @@ -3,6 +3,11 @@ import { LIST_CONTEXT_ID } from './List.svelte'; import { useContext } from '../../utils/useContext'; import { getContext } from 'svelte'; + import { get_current_component } from 'svelte/internal'; + import { forwardEventsBuilder, useActions, type ActionArray } from '../../actions'; + export let use: ActionArray = []; + import { exclude } from '../../utils/exclude'; + const forwardEvents = forwardEventsBuilder(get_current_component()); useContext({ context_id: LIST_CONTEXT_ID, @@ -18,7 +23,12 @@ $: finalClass = twMerge(defaultClass, $$props.class); -
  • +
  • diff --git a/src/lib/components/list/Leading.svelte b/src/lib/components/list/Leading.svelte index 03750cb3..4d1121f0 100644 --- a/src/lib/components/list/Leading.svelte +++ b/src/lib/components/list/Leading.svelte @@ -1,11 +1,21 @@ -
    +
    diff --git a/src/lib/components/list/List.svelte b/src/lib/components/list/List.svelte index 755aeecc..95670dbe 100644 --- a/src/lib/components/list/List.svelte +++ b/src/lib/components/list/List.svelte @@ -5,6 +5,11 @@ -
      +
      diff --git a/src/lib/components/list/Placeholder.svelte b/src/lib/components/list/Placeholder.svelte new file mode 100644 index 00000000..9a3f293e --- /dev/null +++ b/src/lib/components/list/Placeholder.svelte @@ -0,0 +1,77 @@ + + +
      + {#if $$slots.icon || $$slots.default} + + + {:else} + + {/if} +
      + + diff --git a/src/lib/components/list/Title.svelte b/src/lib/components/list/Title.svelte index bcf1b9f7..edb1dc54 100644 --- a/src/lib/components/list/Title.svelte +++ b/src/lib/components/list/Title.svelte @@ -1,10 +1,20 @@ -

      +