@functionalcms/svelte-components 3.2.0 → 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 Link from '../Link.svelte';
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, $page, pageItem)}
23
+ aria-current={isSelected(includeSubpagesForSelect, page, pageItem)}
25
24
  class={linkCss}
26
25
  role="none"
27
26
  >
@@ -3,28 +3,30 @@
3
3
  import type { ShowItem } from './ShowItem.js';
4
4
  import { AlignItmes, Justify, Orientation } from '../Styling.js';
5
5
  import { mergedClasses } from '../CssHelper';
6
- let {
7
- items = [],
8
- renderItem,
9
- css = '',
10
- justify = Justify.Between,
11
- alignItems = AlignItmes.Center,
12
- orientation = Orientation.DynamicRow
13
- }: {
6
+
7
+ interface GaleryProps {
14
8
  items: Array<ShowItem>;
15
9
  renderItem: any;
16
10
  css: string;
17
11
  justify: Justify;
18
12
  alignItems: AlignItmes;
19
13
  orientation: Orientation;
20
- } = $props();
21
- // export let items: Array<ShowItem> = [];
22
- // export let css: string = '';
23
- // export let justify: Justify = Justify.Between;
24
- // export let alignItems: AlignItmes = AlignItmes.Center;
25
- // export let orientation: Orientation = Orientation.DynamicRow;
14
+ otherProps: any;
15
+ }
16
+
17
+ let {
18
+ items = [],
19
+ renderItem,
20
+ css = '',
21
+ justify = Justify.Between,
22
+ alignItems = AlignItmes.Center,
23
+ orientation = Orientation.DynamicRow,
24
+ ...otherProps
25
+ }: GaleryProps = $props();
26
26
 
27
27
  let galleryKlasses = mergedClasses('flex', css, `${orientation}`, `${justify}`, `${alignItems}`);
28
+
29
+ console.log(otherProps);
28
30
  </script>
29
31
 
30
32
  <Card css={galleryKlasses}>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@functionalcms/svelte-components",
3
- "version": "3.2.0",
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",