@kayord/ui 3.0.8 → 3.0.9
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/ui/pagination/pagination-next.svelte +10 -7
- package/dist/components/ui/pagination/pagination-next.svelte.d.ts +2 -13
- package/dist/components/ui/pagination/pagination-previous.svelte +10 -7
- package/dist/components/ui/pagination/pagination-previous.svelte.d.ts +2 -13
- package/dist/components/ui/sidebar/sidebar-menu-button.svelte +1 -1
- package/package.json +14 -14
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import
|
|
2
|
+
import { Pagination as PaginationPrimitive } from "bits-ui";
|
|
3
3
|
import { cn } from "../../../utils.js";
|
|
4
|
-
import {
|
|
4
|
+
import { buttonVariants } from "../button/index.js";
|
|
5
5
|
import ChevronRightIcon from "@lucide/svelte/icons/chevron-right";
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
let { class: className, ...restProps }: PaginationNextProps = $props();
|
|
7
|
+
let { ref = $bindable(null), class: className, ...restProps }: PaginationPrimitive.NextButtonProps = $props();
|
|
10
8
|
</script>
|
|
11
9
|
|
|
12
|
-
<
|
|
10
|
+
<PaginationPrimitive.NextButton
|
|
11
|
+
bind:ref
|
|
12
|
+
aria-label="Go to next page"
|
|
13
|
+
class={cn(buttonVariants({ variant: "ghost", size: "default" }), "pr-1.5!", className)}
|
|
14
|
+
{...restProps}
|
|
15
|
+
>
|
|
13
16
|
<span class="cn-pagination-next-text hidden sm:block">Next</span>
|
|
14
17
|
<ChevronRightIcon data-icon="inline-end" />
|
|
15
|
-
</
|
|
18
|
+
</PaginationPrimitive.NextButton>
|
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}, "child" | "children"> & {
|
|
4
|
-
child?: import("svelte").Snippet<[{
|
|
5
|
-
props: Record<string, unknown>;
|
|
6
|
-
}]> | undefined;
|
|
7
|
-
children?: import("svelte").Snippet<[]> | undefined;
|
|
8
|
-
style?: import("bits-ui").StyleProperties | string | null | undefined;
|
|
9
|
-
ref?: HTMLElement | null | undefined;
|
|
10
|
-
} & import("bits-ui").Without<import("bits-ui").BitsPrimitiveButtonAttributes, import("bits-ui").PaginationPagePropsWithoutHTML> & {
|
|
11
|
-
size?: import("../button/button.svelte.js").ButtonSize;
|
|
12
|
-
isActive: boolean;
|
|
13
|
-
}, {}, "">;
|
|
1
|
+
import { Pagination as PaginationPrimitive } from "bits-ui";
|
|
2
|
+
declare const PaginationNext: import("svelte").Component<PaginationPrimitive.NextButtonProps, {}, "ref">;
|
|
14
3
|
type PaginationNext = ReturnType<typeof PaginationNext>;
|
|
15
4
|
export default PaginationNext;
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import
|
|
2
|
+
import { Pagination as PaginationPrimitive } from "bits-ui";
|
|
3
3
|
import { cn } from "../../../utils.js";
|
|
4
|
-
import {
|
|
4
|
+
import { buttonVariants } from "../button/index.js";
|
|
5
5
|
import ChevronLeftIcon from "@lucide/svelte/icons/chevron-left";
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
let { class: className, ...restProps }: PaginationPreviousProps = $props();
|
|
7
|
+
let { ref = $bindable(null), class: className, ...restProps }: PaginationPrimitive.PrevButtonProps = $props();
|
|
10
8
|
</script>
|
|
11
9
|
|
|
12
|
-
<
|
|
10
|
+
<PaginationPrimitive.PrevButton
|
|
11
|
+
bind:ref
|
|
12
|
+
aria-label="Go to previous page"
|
|
13
|
+
class={cn(buttonVariants({ variant: "ghost", size: "default" }), "pl-1.5!", className)}
|
|
14
|
+
{...restProps}
|
|
15
|
+
>
|
|
13
16
|
<ChevronLeftIcon data-icon="inline-start" />
|
|
14
17
|
<span class="cn-pagination-previous-text hidden sm:block">Previous</span>
|
|
15
|
-
</
|
|
18
|
+
</PaginationPrimitive.PrevButton>
|
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}, "child" | "children"> & {
|
|
4
|
-
child?: import("svelte").Snippet<[{
|
|
5
|
-
props: Record<string, unknown>;
|
|
6
|
-
}]> | undefined;
|
|
7
|
-
children?: import("svelte").Snippet<[]> | undefined;
|
|
8
|
-
style?: import("bits-ui").StyleProperties | string | null | undefined;
|
|
9
|
-
ref?: HTMLElement | null | undefined;
|
|
10
|
-
} & import("bits-ui").Without<import("bits-ui").BitsPrimitiveButtonAttributes, import("bits-ui").PaginationPagePropsWithoutHTML> & {
|
|
11
|
-
size?: import("../button/button.svelte.js").ButtonSize;
|
|
12
|
-
isActive: boolean;
|
|
13
|
-
}, {}, "">;
|
|
1
|
+
import { Pagination as PaginationPrimitive } from "bits-ui";
|
|
2
|
+
declare const PaginationPrevious: import("svelte").Component<PaginationPrimitive.PrevButtonProps, {}, "ref">;
|
|
14
3
|
type PaginationPrevious = ReturnType<typeof PaginationPrevious>;
|
|
15
4
|
export default PaginationPrevious;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
variant: {
|
|
8
8
|
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
|
|
9
9
|
outline:
|
|
10
|
-
"bg-background hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shadow-[
|
|
10
|
+
"bg-background hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shadow-[0_0_0_1px_var(--sidebar-border)] hover:shadow-[0_0_0_1px_var(--sidebar-accent)]",
|
|
11
11
|
},
|
|
12
12
|
size: {
|
|
13
13
|
default: "h-8 text-sm",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kayord/ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.9",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/kayordDX/ui"
|
|
@@ -113,34 +113,34 @@
|
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@eslint/compat": "^2.1.0",
|
|
115
115
|
"@eslint/js": "^10.0.1",
|
|
116
|
-
"@internationalized/date": "^3.12.
|
|
117
|
-
"@lucide/svelte": "^1.
|
|
116
|
+
"@internationalized/date": "^3.12.2",
|
|
117
|
+
"@lucide/svelte": "^1.17.0",
|
|
118
118
|
"@sveltejs/adapter-auto": "^7.0.1",
|
|
119
|
-
"@sveltejs/kit": "^2.
|
|
119
|
+
"@sveltejs/kit": "^2.61.1",
|
|
120
120
|
"@sveltejs/package": "^2.5.7",
|
|
121
121
|
"@sveltejs/vite-plugin-svelte": "7.1.2",
|
|
122
122
|
"@tailwindcss/vite": "^4.3.0",
|
|
123
123
|
"@types/d3-scale": "^4.0.9",
|
|
124
124
|
"@types/d3-shape": "^3.1.8",
|
|
125
|
-
"@vitest/browser": "^4.1.
|
|
126
|
-
"@vitest/browser-playwright": "^4.1.
|
|
125
|
+
"@vitest/browser": "^4.1.7",
|
|
126
|
+
"@vitest/browser-playwright": "^4.1.7",
|
|
127
127
|
"d3-scale": "^4.0.2",
|
|
128
128
|
"d3-shape": "^3.2.0",
|
|
129
129
|
"embla-carousel-svelte": "^8.6.0",
|
|
130
|
-
"eslint": "^10.
|
|
130
|
+
"eslint": "^10.4.0",
|
|
131
131
|
"eslint-config-prettier": "^10.1.8",
|
|
132
|
-
"eslint-plugin-svelte": "^3.
|
|
132
|
+
"eslint-plugin-svelte": "^3.18.0",
|
|
133
133
|
"formsnap": "^2.0.1",
|
|
134
134
|
"globals": "^17.6.0",
|
|
135
135
|
"layerchart": "2.0.0-next.62",
|
|
136
136
|
"mode-watcher": "^1.1.0",
|
|
137
137
|
"paneforge": "^1.0.2",
|
|
138
138
|
"prettier": "^3.8.3",
|
|
139
|
-
"prettier-plugin-svelte": "
|
|
139
|
+
"prettier-plugin-svelte": "3.5.2",
|
|
140
140
|
"prettier-plugin-tailwindcss": "^0.8.0",
|
|
141
141
|
"publint": "^0.3.21",
|
|
142
142
|
"runed": "^0.37.1",
|
|
143
|
-
"svelte": "5.55.
|
|
143
|
+
"svelte": "5.55.10",
|
|
144
144
|
"svelte-check": "^4.4.8",
|
|
145
145
|
"svelte-sonner": "^1.1.1",
|
|
146
146
|
"sveltekit-superforms": "^2.30.1",
|
|
@@ -148,10 +148,10 @@
|
|
|
148
148
|
"tslib": "^2.8.1",
|
|
149
149
|
"tw-animate-css": "1.4.0",
|
|
150
150
|
"typescript": "^6.0.3",
|
|
151
|
-
"typescript-eslint": "^8.
|
|
151
|
+
"typescript-eslint": "^8.60.0",
|
|
152
152
|
"vaul-svelte": "1.0.0-next.7",
|
|
153
|
-
"vite": "^8.0.
|
|
154
|
-
"vitest": "^4.1.
|
|
153
|
+
"vite": "^8.0.14",
|
|
154
|
+
"vitest": "^4.1.7",
|
|
155
155
|
"vitest-browser-svelte": "^2.1.1",
|
|
156
156
|
"zod": "4.4.3"
|
|
157
157
|
},
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
"format": "prettier --write .",
|
|
172
172
|
"test:unit": "vitest run",
|
|
173
173
|
"test:coverage": "vitest run --coverage",
|
|
174
|
-
"lib": "pnpm dlx shadcn-svelte@latest add -a -y -o --no-deps && pnpm format && pnpm version --no-git-tag-version patch",
|
|
174
|
+
"lib": "pnpm dlx shadcn-svelte@latest add -a -y -o --no-deps && pnpm format && pnpm version --no-git-checks --no-git-tag-version patch",
|
|
175
175
|
"next": "./next.sh"
|
|
176
176
|
}
|
|
177
177
|
}
|