@colletdev/svelte 0.1.3 → 0.1.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colletdev/svelte",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Svelte 5 wrappers for Collet Rust/WASM UI components",
5
5
  "type": "module",
6
6
  "svelte": "./src/index.ts",
@@ -21,7 +21,16 @@
21
21
  "@colletdev/core": ">=0.1.0",
22
22
  "svelte": ">=5.0.0"
23
23
  },
24
- "keywords": ["svelte", "svelte5", "runes", "web-components", "rust", "wasm", "ui", "collet"],
24
+ "keywords": [
25
+ "svelte",
26
+ "svelte5",
27
+ "runes",
28
+ "web-components",
29
+ "rust",
30
+ "wasm",
31
+ "ui",
32
+ "collet"
33
+ ],
25
34
  "author": "Dan",
26
35
  "license": "MIT",
27
36
  "sideEffects": false,
package/src/elements.d.ts CHANGED
@@ -349,8 +349,10 @@ declare module 'svelte/elements' {
349
349
  size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
350
350
  showInfo?: boolean;
351
351
  showPrevNext?: boolean;
352
+ variant?: string;
352
353
  prevLabel?: string;
353
354
  nextLabel?: string;
355
+ loadMoreLabel?: string;
354
356
  pageSizeOptions?: string;
355
357
  };
356
358
  'cx-popover': {
@@ -11,12 +11,14 @@
11
11
  size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
12
12
  showInfo?: boolean;
13
13
  showPrevNext?: boolean;
14
+ variant?: string;
14
15
  prevLabel?: string;
15
16
  nextLabel?: string;
17
+ loadMoreLabel?: string;
16
18
  pageSizeOptions?: string;
17
19
  }
18
20
 
19
- let { id, currentPage, pageSize, totalItems, label, size, showInfo, showPrevNext, prevLabel, nextLabel, pageSizeOptions }: Props = $props();
21
+ let { id, currentPage, pageSize, totalItems, label, size, showInfo, showPrevNext, variant, prevLabel, nextLabel, loadMoreLabel, pageSizeOptions }: Props = $props();
20
22
 
21
23
  let el: HTMLElement;
22
24
 
@@ -34,7 +36,9 @@
34
36
  size={typeof size === 'object' && size != null ? JSON.stringify(size) : size}
35
37
  show-info={showInfo || undefined}
36
38
  show-prev-next={showPrevNext || undefined}
39
+ variant={typeof variant === 'object' && variant != null ? JSON.stringify(variant) : variant}
37
40
  prev-label={typeof prevLabel === 'object' && prevLabel != null ? JSON.stringify(prevLabel) : prevLabel}
38
41
  next-label={typeof nextLabel === 'object' && nextLabel != null ? JSON.stringify(nextLabel) : nextLabel}
42
+ load-more-label={typeof loadMoreLabel === 'object' && loadMoreLabel != null ? JSON.stringify(loadMoreLabel) : loadMoreLabel}
39
43
  page-size-options={typeof pageSizeOptions === 'object' && pageSizeOptions != null ? JSON.stringify(pageSizeOptions) : pageSizeOptions}
40
44
  />
@@ -10,8 +10,10 @@ interface PaginationProps {
10
10
  size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
11
11
  showInfo?: boolean;
12
12
  showPrevNext?: boolean;
13
+ variant?: string;
13
14
  prevLabel?: string;
14
15
  nextLabel?: string;
16
+ loadMoreLabel?: string;
15
17
  pageSizeOptions?: string;
16
18
  }
17
19