flowbite-svelte 0.34.4 → 0.34.5
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.
- package/dist/forms/FloatingLabelInput.svelte +1 -0
- package/dist/forms/FloatingLabelInput.svelte.d.ts +1 -0
- package/dist/gallery/Gallery.svelte +14 -6
- package/dist/gallery/Gallery.svelte.d.ts +3 -2
- package/dist/gallery/GalleryItem.svelte +5 -5
- package/dist/gallery/GalleryItem.svelte.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
<script>import classNames from 'classnames';
|
|
2
|
-
|
|
3
|
-
export let
|
|
4
|
-
|
|
2
|
+
import GalleryItem from './GalleryItem.svelte';
|
|
3
|
+
export let items = [];
|
|
4
|
+
$: divClass = classNames('grid', $$props.class);
|
|
5
|
+
function init(node) {
|
|
6
|
+
if (getComputedStyle(node).gap === 'normal')
|
|
7
|
+
node.style.gap = 'inherit';
|
|
8
|
+
}
|
|
5
9
|
</script>
|
|
6
10
|
|
|
7
|
-
<div class=
|
|
8
|
-
|
|
9
|
-
|
|
11
|
+
<div {...$$restProps} class={divClass} use:init>
|
|
12
|
+
{#each items as { src, alt }}
|
|
13
|
+
<GalleryItem {src} {alt} />
|
|
14
|
+
{:else}
|
|
15
|
+
<slot />
|
|
16
|
+
{/each}
|
|
17
|
+
</div>
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import type { ImgType } from '../types';
|
|
2
3
|
declare const __propDef: {
|
|
3
4
|
props: {
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
items?: ImgType[] | undefined;
|
|
6
7
|
};
|
|
7
8
|
events: {
|
|
8
9
|
[evt: string]: CustomEvent<any>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
<script>export let src
|
|
2
|
-
export let alt =
|
|
3
|
-
export let
|
|
1
|
+
<script>export let src;
|
|
2
|
+
export let alt = undefined;
|
|
3
|
+
export let defaultClass = 'h-auto max-w-full rounded-lg';
|
|
4
4
|
</script>
|
|
5
5
|
|
|
6
6
|
<div>
|
|
7
|
-
<img class=
|
|
8
|
-
</div>
|
|
7
|
+
<img class={defaultClass} {src} {alt} />
|
|
8
|
+
</div>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
-
src
|
|
4
|
+
src: string;
|
|
5
5
|
alt?: string | undefined;
|
|
6
|
-
|
|
6
|
+
defaultClass?: string | undefined;
|
|
7
7
|
};
|
|
8
8
|
events: {
|
|
9
9
|
[evt: string]: CustomEvent<any>;
|