@skeletonlabs/skeleton-svelte 4.1.5 → 4.2.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.
@@ -0,0 +1,36 @@
1
+ <script lang="ts" module>
2
+ import type { HTMLAttributes } from '../../../internal/html-attributes.js';
3
+ import type { PropsWithElement } from '../../../internal/props-with-element.js';
4
+
5
+ export interface PaginationFirstTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
6
+ </script>
7
+
8
+ <script lang="ts">
9
+ import { RootContext } from '../modules/root-context.js';
10
+ import { classesPagination } from '@skeletonlabs/skeleton-common';
11
+ import { mergeProps } from '@zag-js/svelte';
12
+
13
+ const props: PaginationFirstTriggerProps = $props();
14
+
15
+ const pagination = RootContext.consume();
16
+
17
+ const { element, children, ...rest } = $derived(props);
18
+
19
+ const attributes = $derived(
20
+ mergeProps(
21
+ {
22
+ class: classesPagination.firstTrigger,
23
+ onclick: () => pagination().goToFirstPage(),
24
+ },
25
+ rest,
26
+ ),
27
+ );
28
+ </script>
29
+
30
+ {#if element}
31
+ {@render element(attributes)}
32
+ {:else}
33
+ <button {...attributes}>
34
+ {@render children?.()}
35
+ </button>
36
+ {/if}
@@ -0,0 +1,8 @@
1
+ import type { HTMLAttributes } from '../../../internal/html-attributes.js';
2
+ import type { PropsWithElement } from '../../../internal/props-with-element.js';
3
+ export interface PaginationFirstTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {
4
+ }
5
+ declare const FirstTrigger: import("svelte").Component<PaginationFirstTriggerProps, {}, "">;
6
+ type FirstTrigger = ReturnType<typeof FirstTrigger>;
7
+ export default FirstTrigger;
8
+ //# sourceMappingURL=first-trigger.svelte.d.ts.map
@@ -0,0 +1,36 @@
1
+ <script lang="ts" module>
2
+ import type { HTMLAttributes } from '../../../internal/html-attributes.js';
3
+ import type { PropsWithElement } from '../../../internal/props-with-element.js';
4
+
5
+ export interface PaginationLastTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
6
+ </script>
7
+
8
+ <script lang="ts">
9
+ import { RootContext } from '../modules/root-context.js';
10
+ import { classesPagination } from '@skeletonlabs/skeleton-common';
11
+ import { mergeProps } from '@zag-js/svelte';
12
+
13
+ const props: PaginationLastTriggerProps = $props();
14
+
15
+ const pagination = RootContext.consume();
16
+
17
+ const { element, children, ...rest } = $derived(props);
18
+
19
+ const attributes = $derived(
20
+ mergeProps(
21
+ {
22
+ class: classesPagination.lastTrigger,
23
+ onclick: () => pagination().goToLastPage(),
24
+ },
25
+ rest,
26
+ ),
27
+ );
28
+ </script>
29
+
30
+ {#if element}
31
+ {@render element(attributes)}
32
+ {:else}
33
+ <button {...attributes}>
34
+ {@render children?.()}
35
+ </button>
36
+ {/if}
@@ -0,0 +1,8 @@
1
+ import type { HTMLAttributes } from '../../../internal/html-attributes.js';
2
+ import type { PropsWithElement } from '../../../internal/props-with-element.js';
3
+ export interface PaginationLastTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {
4
+ }
5
+ declare const LastTrigger: import("svelte").Component<PaginationLastTriggerProps, {}, "">;
6
+ type LastTrigger = ReturnType<typeof LastTrigger>;
7
+ export default LastTrigger;
8
+ //# sourceMappingURL=last-trigger.svelte.d.ts.map
@@ -18,9 +18,9 @@
18
18
 
19
19
  const attributes = $derived(
20
20
  mergeProps(
21
- pagination().getNextTriggerProps(),
22
21
  {
23
22
  class: classesPagination.nextTrigger,
23
+ onclick: pagination().getNextTriggerProps(),
24
24
  },
25
25
  rest,
26
26
  ),
@@ -7,4 +7,6 @@ export type { PaginationItemProps } from './anatomy/item.svelte';
7
7
  export type { PaginationRootContextProps } from './anatomy/root-context.svelte';
8
8
  export type { PaginationRootProps } from './anatomy/root.svelte';
9
9
  export type { PaginationEllipsisProps } from './anatomy/ellipsis.svelte';
10
+ export type { PaginationFirstTriggerProps } from './anatomy/first-trigger.svelte';
11
+ export type { PaginationLastTriggerProps } from './anatomy/last-trigger.svelte';
10
12
  //# sourceMappingURL=index.d.ts.map
@@ -1,9 +1,11 @@
1
1
  export declare const Pagination: import("svelte").Component<import("../anatomy/root.svelte").PaginationRootProps, {}, ""> & {
2
2
  Provider: import("svelte").Component<import("../anatomy/root-provider.svelte").PaginationRootProviderProps, {}, "">;
3
3
  Context: import("svelte").Component<import("../anatomy/root-context.svelte").PaginationRootContextProps, {}, "">;
4
+ FirstTrigger: import("svelte").Component<import("../anatomy/first-trigger.svelte").PaginationFirstTriggerProps, {}, "">;
4
5
  PrevTrigger: import("svelte").Component<import("../anatomy/prev-trigger.svelte").PaginationPrevTriggerProps, {}, "">;
5
6
  Item: import("svelte").Component<import("../anatomy/item.svelte").PaginationItemProps, {}, "">;
6
7
  Ellipsis: import("svelte").Component<import("../anatomy/ellipsis.svelte").PaginationEllipsisProps, {}, "">;
7
8
  NextTrigger: import("svelte").Component<import("../anatomy/next-trigger.svelte").PaginationNextTriggerProps, {}, "">;
9
+ LastTrigger: import("svelte").Component<import("../anatomy/last-trigger.svelte").PaginationLastTriggerProps, {}, "">;
8
10
  };
9
11
  //# sourceMappingURL=anatomy.d.ts.map
@@ -1,5 +1,7 @@
1
1
  import Ellipsis from '../anatomy/ellipsis.svelte';
2
+ import FirstTrigger from '../anatomy/first-trigger.svelte';
2
3
  import Item from '../anatomy/item.svelte';
4
+ import LastTrigger from '../anatomy/last-trigger.svelte';
3
5
  import NextTrigger from '../anatomy/next-trigger.svelte';
4
6
  import PrevTrigger from '../anatomy/prev-trigger.svelte';
5
7
  import RootContext from '../anatomy/root-context.svelte';
@@ -8,8 +10,10 @@ import Root from '../anatomy/root.svelte';
8
10
  export const Pagination = Object.assign(Root, {
9
11
  Provider: RootProvider,
10
12
  Context: RootContext,
13
+ FirstTrigger: FirstTrigger,
11
14
  PrevTrigger: PrevTrigger,
12
15
  Item: Item,
13
16
  Ellipsis: Ellipsis,
14
17
  NextTrigger: NextTrigger,
18
+ LastTrigger: LastTrigger,
15
19
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skeletonlabs/skeleton-svelte",
3
- "version": "4.1.5",
3
+ "version": "4.2.0",
4
4
  "description": "The Svelte package for Skeleton.",
5
5
  "author": "endigo9740 <chris@skeletonlabs.dev>",
6
6
  "repository": {
@@ -22,47 +22,47 @@
22
22
  ],
23
23
  "sideEffects": false,
24
24
  "dependencies": {
25
- "@zag-js/accordion": "1.26.3",
26
- "@zag-js/avatar": "1.26.3",
27
- "@zag-js/collapsible": "1.26.3",
28
- "@zag-js/collection": "1.26.3",
29
- "@zag-js/combobox": "1.26.3",
30
- "@zag-js/date-picker": "1.26.3",
31
- "@zag-js/dialog": "1.26.3",
32
- "@zag-js/file-upload": "1.26.3",
33
- "@zag-js/listbox": "1.26.3",
34
- "@zag-js/pagination": "1.26.3",
35
- "@zag-js/popover": "1.26.3",
36
- "@zag-js/progress": "1.26.3",
37
- "@zag-js/radio-group": "1.26.3",
38
- "@zag-js/rating-group": "1.26.3",
39
- "@zag-js/slider": "1.26.3",
40
- "@zag-js/svelte": "1.26.3",
41
- "@zag-js/switch": "1.26.3",
42
- "@zag-js/tabs": "1.26.3",
43
- "@zag-js/tags-input": "1.26.3",
44
- "@zag-js/toast": "1.26.3",
45
- "@zag-js/toggle-group": "1.26.3",
46
- "@zag-js/tooltip": "1.26.3",
47
- "@zag-js/tree-view": "1.26.3",
48
- "@skeletonlabs/skeleton-common": "4.1.5"
25
+ "@zag-js/accordion": "1.26.4",
26
+ "@zag-js/avatar": "1.26.4",
27
+ "@zag-js/collapsible": "1.26.4",
28
+ "@zag-js/collection": "1.26.4",
29
+ "@zag-js/combobox": "1.26.4",
30
+ "@zag-js/date-picker": "1.26.4",
31
+ "@zag-js/dialog": "1.26.4",
32
+ "@zag-js/file-upload": "1.26.4",
33
+ "@zag-js/listbox": "1.26.4",
34
+ "@zag-js/pagination": "1.26.4",
35
+ "@zag-js/popover": "1.26.4",
36
+ "@zag-js/progress": "1.26.4",
37
+ "@zag-js/radio-group": "1.26.4",
38
+ "@zag-js/rating-group": "1.26.4",
39
+ "@zag-js/slider": "1.26.4",
40
+ "@zag-js/svelte": "1.26.4",
41
+ "@zag-js/switch": "1.26.4",
42
+ "@zag-js/tabs": "1.26.4",
43
+ "@zag-js/tags-input": "1.26.4",
44
+ "@zag-js/toast": "1.26.4",
45
+ "@zag-js/toggle-group": "1.26.4",
46
+ "@zag-js/tooltip": "1.26.4",
47
+ "@zag-js/tree-view": "1.26.4",
48
+ "@skeletonlabs/skeleton-common": "4.2.0"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "svelte": "^5.29.0"
52
52
  },
53
53
  "devDependencies": {
54
- "@sveltejs/kit": "2.47.1",
54
+ "@sveltejs/kit": "2.47.3",
55
55
  "@sveltejs/package": "2.5.4",
56
56
  "@sveltejs/vite-plugin-svelte": "6.2.1",
57
57
  "@testing-library/jest-dom": "6.9.1",
58
58
  "@testing-library/svelte": "5.2.8",
59
59
  "jsdom": "27.0.1",
60
- "svelte": "5.41.0",
60
+ "svelte": "5.42.2",
61
61
  "svelte-check": "4.3.3",
62
62
  "typescript": "5.9.3",
63
63
  "vite": "7.1.10",
64
64
  "vitest": "3.2.4",
65
- "@skeletonlabs/skeleton": "4.1.5"
65
+ "@skeletonlabs/skeleton": "4.2.0"
66
66
  },
67
67
  "license": "MIT",
68
68
  "type": "module",