@functionalcms/svelte-components 2.13.10 → 2.14.0
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/components/presentation/Carusel.svelte +41 -0
- package/dist/components/presentation/Carusel.svelte.d.ts +19 -0
- package/dist/components/presentation/Carusele.d.ts +5 -0
- package/dist/components/presentation/Carusele.js +5 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/package.json +2 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<script>import { Splide, SplideSlide } from "@splidejs/svelte-splide";
|
|
2
|
+
import "@splidejs/svelte-splide/css";
|
|
3
|
+
export let items = [];
|
|
4
|
+
export let perPage = 1;
|
|
5
|
+
let options = {
|
|
6
|
+
perPage,
|
|
7
|
+
rewind: true
|
|
8
|
+
};
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<Splide class="carusele" aria-label="gallery" {options}>
|
|
12
|
+
{#each items as item}
|
|
13
|
+
<SplideSlide>
|
|
14
|
+
<a href={item.link}>
|
|
15
|
+
<img
|
|
16
|
+
src={item.image}
|
|
17
|
+
alt={item.text}
|
|
18
|
+
/>
|
|
19
|
+
</a>
|
|
20
|
+
</SplideSlide>
|
|
21
|
+
{/each}
|
|
22
|
+
</Splide>
|
|
23
|
+
|
|
24
|
+
<style>
|
|
25
|
+
:global(.carusele) {
|
|
26
|
+
width: 100%;
|
|
27
|
+
}
|
|
28
|
+
:global(.splide__slide) {
|
|
29
|
+
overflow: hidden !important;
|
|
30
|
+
}
|
|
31
|
+
img {
|
|
32
|
+
width:100%;
|
|
33
|
+
height:auto;
|
|
34
|
+
margin: auto;
|
|
35
|
+
}
|
|
36
|
+
a {
|
|
37
|
+
height: 100%;
|
|
38
|
+
display: flex;
|
|
39
|
+
|
|
40
|
+
}
|
|
41
|
+
</style>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import type { CaruseleItem } from "./Carusele";
|
|
3
|
+
import '@splidejs/svelte-splide/css';
|
|
4
|
+
declare const __propDef: {
|
|
5
|
+
props: {
|
|
6
|
+
items?: CaruseleItem[] | undefined;
|
|
7
|
+
perPage?: number | undefined;
|
|
8
|
+
};
|
|
9
|
+
events: {
|
|
10
|
+
[evt: string]: CustomEvent<any>;
|
|
11
|
+
};
|
|
12
|
+
slots: {};
|
|
13
|
+
};
|
|
14
|
+
export type CaruselProps = typeof __propDef.props;
|
|
15
|
+
export type CaruselEvents = typeof __propDef.events;
|
|
16
|
+
export type CaruselSlots = typeof __propDef.slots;
|
|
17
|
+
export default class Carusel extends SvelteComponent<CaruselProps, CaruselEvents, CaruselSlots> {
|
|
18
|
+
}
|
|
19
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,8 @@ import Spacer from './components/Spacer.svelte';
|
|
|
12
12
|
import Well from './components/Well.svelte';
|
|
13
13
|
import Link from './components/Link.svelte';
|
|
14
14
|
import Gallery from './components/presentation/Gallery.svelte';
|
|
15
|
+
import Carusel from './components/presentation/Carusel.svelte';
|
|
16
|
+
import { CaruseleItem } from './components/presentation/Carusel';
|
|
15
17
|
import { convertShowItemsToNavigationItems } from './components/converters/ShowItemToNavigationItems.js';
|
|
16
18
|
import { ShowItem } from './components/presentation/ShowItem.js';
|
|
17
19
|
import { title, suffix } from './stores/title.js';
|
|
@@ -19,4 +21,4 @@ import { pages } from './stores/pages.js';
|
|
|
19
21
|
import { metaDescription, metaKeywords } from './stores/meta.js';
|
|
20
22
|
import { Justify, Placement, Orientation, Position, Sizes, AlignItmes } from './components/Styling.js';
|
|
21
23
|
import { Alert, Avatar, AvatarGroup, Breadcrumb, Button, ButtonGroup, Card, ChoiceInput, Close, Dialog, Disclose, Divider, Drawer, EmptyState, Header, HeaderNav, HeaderNavItem, Icon, IconSvg, Input, InputAddonItem, Loader, Pagination, Progress, Select, Spinner, Switch, Table, Tabs, Tag, Toast, Toasts } from 'agnostic-svelte';
|
|
22
|
-
export { Visiblity, HeaderNavigationItem, DynamicMenu, FlatMenu, ColumnMenu, HamburgerMenu, DefaultLayout, TwoColumnsLayout, Banner, Link, Logo, SimpleFooter, Gallery, Spacer, Well, Justify, Placement, Orientation, AlignItmes, Position, Sizes, ShowItem, convertShowItemsToNavigationItems, title, suffix, pages, metaDescription, metaKeywords, Alert, Avatar, AvatarGroup, Breadcrumb, Button, ButtonGroup, Card, ChoiceInput, Close, Dialog, Disclose, Divider, Drawer, EmptyState, Header, HeaderNav, HeaderNavItem, Icon, IconSvg, Input, InputAddonItem, Loader, Pagination, Progress, Select, Spinner, Switch, Table, Tabs, Tag, Toast, Toasts };
|
|
24
|
+
export { Visiblity, HeaderNavigationItem, DynamicMenu, FlatMenu, ColumnMenu, HamburgerMenu, DefaultLayout, TwoColumnsLayout, Banner, Link, Logo, SimpleFooter, Gallery, Carusel, CaruseleItem, Spacer, Well, Justify, Placement, Orientation, AlignItmes, Position, Sizes, ShowItem, convertShowItemsToNavigationItems, title, suffix, pages, metaDescription, metaKeywords, Alert, Avatar, AvatarGroup, Breadcrumb, Button, ButtonGroup, Card, ChoiceInput, Close, Dialog, Disclose, Divider, Drawer, EmptyState, Header, HeaderNav, HeaderNavItem, Icon, IconSvg, Input, InputAddonItem, Loader, Pagination, Progress, Select, Spinner, Switch, Table, Tabs, Tag, Toast, Toasts };
|
package/dist/index.js
CHANGED
|
@@ -12,6 +12,8 @@ import Spacer from './components/Spacer.svelte';
|
|
|
12
12
|
import Well from './components/Well.svelte';
|
|
13
13
|
import Link from './components/Link.svelte';
|
|
14
14
|
import Gallery from './components/presentation/Gallery.svelte';
|
|
15
|
+
import Carusel from './components/presentation/Carusel.svelte';
|
|
16
|
+
import { CaruseleItem } from './components/presentation/Carusel';
|
|
15
17
|
import { convertShowItemsToNavigationItems } from './components/converters/ShowItemToNavigationItems.js';
|
|
16
18
|
import { ShowItem } from './components/presentation/ShowItem.js';
|
|
17
19
|
import { title, suffix } from './stores/title.js';
|
|
@@ -19,4 +21,4 @@ import { pages } from './stores/pages.js';
|
|
|
19
21
|
import { metaDescription, metaKeywords } from './stores/meta.js';
|
|
20
22
|
import { Justify, Placement, Orientation, Position, Sizes, AlignItmes } from './components/Styling.js';
|
|
21
23
|
import { Alert, Avatar, AvatarGroup, Breadcrumb, Button, ButtonGroup, Card, ChoiceInput, Close, Dialog, Disclose, Divider, Drawer, EmptyState, Header, HeaderNav, HeaderNavItem, Icon, IconSvg, Input, InputAddonItem, Loader, Pagination, Progress, Select, Spinner, Switch, Table, Tabs, Tag, Toast, Toasts } from 'agnostic-svelte';
|
|
22
|
-
export { Visiblity, HeaderNavigationItem, DynamicMenu, FlatMenu, ColumnMenu, HamburgerMenu, DefaultLayout, TwoColumnsLayout, Banner, Link, Logo, SimpleFooter, Gallery, Spacer, Well, Justify, Placement, Orientation, AlignItmes, Position, Sizes, ShowItem, convertShowItemsToNavigationItems, title, suffix, pages, metaDescription, metaKeywords, Alert, Avatar, AvatarGroup, Breadcrumb, Button, ButtonGroup, Card, ChoiceInput, Close, Dialog, Disclose, Divider, Drawer, EmptyState, Header, HeaderNav, HeaderNavItem, Icon, IconSvg, Input, InputAddonItem, Loader, Pagination, Progress, Select, Spinner, Switch, Table, Tabs, Tag, Toast, Toasts };
|
|
24
|
+
export { Visiblity, HeaderNavigationItem, DynamicMenu, FlatMenu, ColumnMenu, HamburgerMenu, DefaultLayout, TwoColumnsLayout, Banner, Link, Logo, SimpleFooter, Gallery, Carusel, CaruseleItem, Spacer, Well, Justify, Placement, Orientation, AlignItmes, Position, Sizes, ShowItem, convertShowItemsToNavigationItems, title, suffix, pages, metaDescription, metaKeywords, Alert, Avatar, AvatarGroup, Breadcrumb, Button, ButtonGroup, Card, ChoiceInput, Close, Dialog, Disclose, Divider, Drawer, EmptyState, Header, HeaderNav, HeaderNavItem, Icon, IconSvg, Input, InputAddonItem, Loader, Pagination, Progress, Select, Spinner, Switch, Table, Tabs, Tag, Toast, Toasts };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@functionalcms/svelte-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.14.0",
|
|
4
4
|
"watch": {
|
|
5
5
|
"build": {
|
|
6
6
|
"patterns": [
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"vite": "^5.0.10"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
+
"@splidejs/svelte-splide": "^0.2.9"
|
|
60
61
|
},
|
|
61
62
|
"svelte": "./dist/index.js",
|
|
62
63
|
"types": "./dist/index.d.ts",
|