flowbite-svelte 0.34.6 → 0.34.7
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.
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
<script>import classNames from 'classnames';
|
|
2
|
-
import GalleryItem from './GalleryItem.svelte';
|
|
3
2
|
export let items = [];
|
|
4
3
|
$: divClass = classNames('grid', $$props.class);
|
|
5
4
|
function init(node) {
|
|
@@ -9,8 +8,10 @@ function init(node) {
|
|
|
9
8
|
</script>
|
|
10
9
|
|
|
11
10
|
<div {...$$restProps} class={divClass} use:init>
|
|
12
|
-
{#each items as
|
|
13
|
-
<
|
|
11
|
+
{#each items as item}
|
|
12
|
+
<slot {item}>
|
|
13
|
+
<div><img src={item.src} alt={item.alt} class='h-auto max-w-full rounded-lg' /></div>
|
|
14
|
+
</slot>
|
|
14
15
|
{:else}
|
|
15
16
|
<slot />
|
|
16
17
|
{/each}
|
package/dist/index.d.ts
CHANGED
|
@@ -46,7 +46,6 @@ export { default as Textarea } from "./forms/Textarea.svelte";
|
|
|
46
46
|
export { default as Toggle } from "./forms/Toggle.svelte";
|
|
47
47
|
export { default as VoiceSearch } from "./forms/VoiceSearch.svelte";
|
|
48
48
|
export { default as Gallery } from "./gallery/Gallery.svelte";
|
|
49
|
-
export { default as GalleryItem } from "./gallery/GalleryItem.svelte";
|
|
50
49
|
export { default as Indicator } from "./indicators/Indicator.svelte";
|
|
51
50
|
export { default as Kbd } from "./kbd/Kbd.svelte";
|
|
52
51
|
export { default as ArrowKeyDown } from "./kbd/ArrowKeyDown.svelte";
|
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@ export { default as Banner } from './banner/Banner.svelte';
|
|
|
18
18
|
export { default as BottomNav } from './bottom-nav/BottomNav.svelte';
|
|
19
19
|
export { default as BottomNavItem } from './bottom-nav/BottomNavItem.svelte';
|
|
20
20
|
export { default as BottomNavHeader } from './bottom-nav/BottomNavHeader.svelte';
|
|
21
|
-
export { default as BottomNavHeaderItem } from './bottom-nav/BottomNavHeaderItem.svelte'
|
|
21
|
+
export { default as BottomNavHeaderItem } from './bottom-nav/BottomNavHeaderItem.svelte';
|
|
22
22
|
|
|
23
23
|
// Breadcrumbs
|
|
24
24
|
export { default as Breadcrumb } from './breadcrumbs/Breadcrumb.svelte';
|
|
@@ -80,8 +80,7 @@ export { default as Toggle } from './forms/Toggle.svelte';
|
|
|
80
80
|
export { default as VoiceSearch } from './forms/VoiceSearch.svelte';
|
|
81
81
|
|
|
82
82
|
// Gallery
|
|
83
|
-
export { default as Gallery } from './gallery/Gallery.svelte'
|
|
84
|
-
export { default as GalleryItem } from './gallery/GalleryItem.svelte'
|
|
83
|
+
export { default as Gallery } from './gallery/Gallery.svelte';
|
|
85
84
|
|
|
86
85
|
// Indicator
|
|
87
86
|
export { default as Indicator } from './indicators/Indicator.svelte';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flowbite-svelte",
|
|
3
|
-
"version": "0.34.
|
|
3
|
+
"version": "0.34.7",
|
|
4
4
|
"description": "Flowbite components for Svelte",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Shinichi Okada",
|
|
@@ -334,10 +334,6 @@
|
|
|
334
334
|
"types": "./dist/gallery/Gallery.svelte.d.ts",
|
|
335
335
|
"svelte": "./dist/gallery/Gallery.svelte"
|
|
336
336
|
},
|
|
337
|
-
"./GalleryItem.svelte": {
|
|
338
|
-
"types": "./dist/gallery/GalleryItem.svelte.d.ts",
|
|
339
|
-
"svelte": "./dist/gallery/GalleryItem.svelte"
|
|
340
|
-
},
|
|
341
337
|
"./ArrowKeyDown.svelte": {
|
|
342
338
|
"types": "./dist/kbd/ArrowKeyDown.svelte.d.ts",
|
|
343
339
|
"svelte": "./dist/kbd/ArrowKeyDown.svelte"
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
declare const __propDef: {
|
|
3
|
-
props: {
|
|
4
|
-
src: string;
|
|
5
|
-
alt?: string | undefined;
|
|
6
|
-
defaultClass?: string | undefined;
|
|
7
|
-
};
|
|
8
|
-
events: {
|
|
9
|
-
[evt: string]: CustomEvent<any>;
|
|
10
|
-
};
|
|
11
|
-
slots: {};
|
|
12
|
-
};
|
|
13
|
-
export type GalleryItemProps = typeof __propDef.props;
|
|
14
|
-
export type GalleryItemEvents = typeof __propDef.events;
|
|
15
|
-
export type GalleryItemSlots = typeof __propDef.slots;
|
|
16
|
-
export default class GalleryItem extends SvelteComponentTyped<GalleryItemProps, GalleryItemEvents, GalleryItemSlots> {
|
|
17
|
-
}
|
|
18
|
-
export {};
|