@r2digisolutions/components 0.25.13 → 0.25.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
description?: string;
|
|
7
7
|
icon?: Snippet;
|
|
8
8
|
action?: Snippet;
|
|
9
|
+
/** Heading level of the title, to keep the page outline in order. Default 3. */
|
|
10
|
+
headingLevel?: 2 | 3 | 4 | 5 | 6;
|
|
9
11
|
class?: string;
|
|
10
12
|
}
|
|
11
13
|
|
|
@@ -14,6 +16,7 @@
|
|
|
14
16
|
description = 'There are no items to display right now.',
|
|
15
17
|
icon,
|
|
16
18
|
action,
|
|
19
|
+
headingLevel = 3,
|
|
17
20
|
class: className = ''
|
|
18
21
|
}: EmptyStateProps = $props();
|
|
19
22
|
</script>
|
|
@@ -35,7 +38,9 @@
|
|
|
35
38
|
{/if}
|
|
36
39
|
</div>
|
|
37
40
|
|
|
38
|
-
<
|
|
41
|
+
<svelte:element this={`h${headingLevel}`} class="text-base font-semibold text-primary mb-1"
|
|
42
|
+
>{title}</svelte:element
|
|
43
|
+
>
|
|
39
44
|
{#if description}
|
|
40
45
|
<p class="text-xs text-muted max-w-sm leading-relaxed mb-5">{description}</p>
|
|
41
46
|
{/if}
|
|
@@ -4,6 +4,8 @@ interface EmptyStateProps {
|
|
|
4
4
|
description?: string;
|
|
5
5
|
icon?: Snippet;
|
|
6
6
|
action?: Snippet;
|
|
7
|
+
/** Heading level of the title, to keep the page outline in order. Default 3. */
|
|
8
|
+
headingLevel?: 2 | 3 | 4 | 5 | 6;
|
|
7
9
|
class?: string;
|
|
8
10
|
}
|
|
9
11
|
declare const EmptyState: import("svelte").Component<EmptyStateProps, {}, "">;
|