@functionalcms/svelte-components 3.2.1 → 3.2.3
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.
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
import { mergedClasses } from '../../CssHelper';
|
|
3
3
|
import { Orientation } from '../../Styling';
|
|
4
4
|
|
|
5
|
+
interface Props {
|
|
6
|
+
isAnimated?: boolean;
|
|
7
|
+
isSkinned?: boolean;
|
|
8
|
+
isStacked?: boolean;
|
|
9
|
+
isShadow?: boolean;
|
|
10
|
+
isBorder?: boolean;
|
|
11
|
+
isRounded?: boolean;
|
|
12
|
+
isWrap? : boolean;
|
|
13
|
+
orientation?: Orientation;
|
|
14
|
+
type?: string;
|
|
15
|
+
css?: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
5
18
|
const {
|
|
6
19
|
isAnimated = false,
|
|
7
20
|
isSkinned = true,
|
|
@@ -9,20 +22,11 @@
|
|
|
9
22
|
isShadow = false,
|
|
10
23
|
isBorder = false,
|
|
11
24
|
isRounded = false,
|
|
25
|
+
isWrap = false,
|
|
12
26
|
orientation = Orientation.Column,
|
|
13
27
|
type = '',
|
|
14
28
|
css = ''
|
|
15
|
-
}:
|
|
16
|
-
isAnimated?: boolean,
|
|
17
|
-
isSkinned?: boolean,
|
|
18
|
-
isStacked?: boolean,
|
|
19
|
-
isShadow?: boolean,
|
|
20
|
-
isBorder?: boolean,
|
|
21
|
-
isRounded?: boolean,
|
|
22
|
-
orientation?: Orientation,
|
|
23
|
-
type?: string,
|
|
24
|
-
css?: string,
|
|
25
|
-
} = $props();
|
|
29
|
+
}: Props = $props();
|
|
26
30
|
|
|
27
31
|
let klasses = mergedClasses(
|
|
28
32
|
isSkinned ? 'card' : 'card-base',
|
|
@@ -33,6 +37,7 @@
|
|
|
33
37
|
isBorder ? 'card-border' : '',
|
|
34
38
|
type ? `card-${type}` : '',
|
|
35
39
|
`${orientation}`,
|
|
40
|
+
isWrap ? `card-wrap` : '',
|
|
36
41
|
css ? `${css}` : ''
|
|
37
42
|
);
|
|
38
43
|
</script>
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { type HeaderNavigationItem, isSelected, defaultCss } from './Menu.js';
|
|
3
3
|
import { Orientation } from '../Styling.js';
|
|
4
|
-
import
|
|
5
|
-
import { page } from '$app/stores';
|
|
4
|
+
import { page } from '$app/state';
|
|
6
5
|
import { mergedClasses } from '../CssHelper.js';
|
|
7
6
|
|
|
8
7
|
export let css: { container: string[]; link: string[] } = defaultCss;
|
|
@@ -21,7 +20,7 @@
|
|
|
21
20
|
<ul class={containerCss} role="menu" aria-label="menu">
|
|
22
21
|
{#each localPages as pageItem}
|
|
23
22
|
<li
|
|
24
|
-
aria-current={isSelected(includeSubpagesForSelect,
|
|
23
|
+
aria-current={isSelected(includeSubpagesForSelect, page, pageItem)}
|
|
25
24
|
class={linkCss}
|
|
26
25
|
role="none"
|
|
27
26
|
>
|
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
import type { ShowItem } from './ShowItem.js';
|
|
4
4
|
import { AlignItmes, Justify, Orientation } from '../Styling.js';
|
|
5
5
|
import { mergedClasses } from '../CssHelper';
|
|
6
|
+
|
|
7
|
+
interface GaleryProps {
|
|
8
|
+
items: Array<ShowItem>;
|
|
9
|
+
renderItem: any;
|
|
10
|
+
css: string;
|
|
11
|
+
justify: Justify;
|
|
12
|
+
alignItems: AlignItmes;
|
|
13
|
+
orientation: Orientation;
|
|
14
|
+
otherProps: any;
|
|
15
|
+
}
|
|
16
|
+
|
|
6
17
|
let {
|
|
7
18
|
items = [],
|
|
8
19
|
renderItem,
|
|
@@ -11,20 +22,14 @@
|
|
|
11
22
|
alignItems = AlignItmes.Center,
|
|
12
23
|
orientation = Orientation.DynamicRow,
|
|
13
24
|
...otherProps
|
|
14
|
-
}:
|
|
15
|
-
items: Array<ShowItem>;
|
|
16
|
-
renderItem: any;
|
|
17
|
-
css: string;
|
|
18
|
-
justify: Justify;
|
|
19
|
-
alignItems: AlignItmes;
|
|
20
|
-
orientation: Orientation;
|
|
21
|
-
otherProps: any;
|
|
22
|
-
} = $props();
|
|
25
|
+
}: GaleryProps = $props();
|
|
23
26
|
|
|
24
27
|
let galleryKlasses = mergedClasses('flex', css, `${orientation}`, `${justify}`, `${alignItems}`);
|
|
28
|
+
|
|
29
|
+
console.log(otherProps);
|
|
25
30
|
</script>
|
|
26
31
|
|
|
27
|
-
<Card css={galleryKlasses}
|
|
32
|
+
<Card css={galleryKlasses}>
|
|
28
33
|
{#each items as entry}
|
|
29
34
|
{@render renderItem(entry)}
|
|
30
35
|
{/each}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@functionalcms/svelte-components",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.3",
|
|
4
4
|
"watch": {
|
|
5
5
|
"build": {
|
|
6
6
|
"patterns": [
|
|
@@ -52,7 +52,8 @@
|
|
|
52
52
|
"svelte-check": "^4.0.0",
|
|
53
53
|
"tslib": "^2.6.2",
|
|
54
54
|
"typescript": "^5.0.0",
|
|
55
|
-
"vite": "^5.4.11"
|
|
55
|
+
"vite": "^5.4.11",
|
|
56
|
+
"watch": "^1.0.2"
|
|
56
57
|
},
|
|
57
58
|
"dependencies": {
|
|
58
59
|
"@floating-ui/dom": "^1.6.12",
|
|
@@ -60,13 +61,13 @@
|
|
|
60
61
|
"date-picker-svelte": "^2.14.1",
|
|
61
62
|
"focusable-selectors": "^0.8.4",
|
|
62
63
|
"ioredis": "^5.4.1",
|
|
64
|
+
"marked": "^15.0.5",
|
|
63
65
|
"node-html-parser": "^6.1.12",
|
|
64
66
|
"oauth4webapi": "^2.17.0",
|
|
65
67
|
"rehype-autolink-headings": "^7.1.0",
|
|
66
68
|
"rehype-slug": "^6.0.0",
|
|
67
69
|
"remark-abbr": "^1.4.2",
|
|
68
70
|
"remark-github": "^12.0.0",
|
|
69
|
-
"marked": "^15.0.5",
|
|
70
71
|
"svelte-file-dropzone": "^2.0.9"
|
|
71
72
|
},
|
|
72
73
|
"svelte": "./dist/index.js",
|