@kayord/ui 3.0.7 → 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.
@@ -1,15 +1,18 @@
1
1
  <script lang="ts">
2
- import type { ComponentProps } from "svelte";
2
+ import { Pagination as PaginationPrimitive } from "bits-ui";
3
3
  import { cn } from "../../../utils.js";
4
- import { PaginationLink } from "./index.js";
4
+ import { buttonVariants } from "../button/index.js";
5
5
  import ChevronRightIcon from "@lucide/svelte/icons/chevron-right";
6
6
 
7
- type PaginationNextProps = ComponentProps<typeof PaginationLink>;
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
- <PaginationLink aria-label="Go to next page" size="default" class={cn("pr-1.5!", className)} {...restProps}>
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
- </PaginationLink>
18
+ </PaginationPrimitive.NextButton>
@@ -1,15 +1,4 @@
1
- declare const PaginationNext: import("svelte").Component<Omit<{
2
- page: import("bits-ui").Page;
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 type { ComponentProps } from "svelte";
2
+ import { Pagination as PaginationPrimitive } from "bits-ui";
3
3
  import { cn } from "../../../utils.js";
4
- import { PaginationLink } from "./index.js";
4
+ import { buttonVariants } from "../button/index.js";
5
5
  import ChevronLeftIcon from "@lucide/svelte/icons/chevron-left";
6
6
 
7
- type PaginationPreviousProps = ComponentProps<typeof PaginationLink>;
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
- <PaginationLink aria-label="Go to previous page" size="default" class={cn("pl-1.5!", className)} {...restProps}>
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
- </PaginationLink>
18
+ </PaginationPrimitive.PrevButton>
@@ -1,15 +1,4 @@
1
- declare const PaginationPrevious: import("svelte").Component<Omit<{
2
- page: import("bits-ui").Page;
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;
@@ -1,4 +1,4 @@
1
- export declare const SIDEBAR_COOKIE_NAME = "sidebar:state";
1
+ export declare const SIDEBAR_COOKIE_NAME = "sidebar_state";
2
2
  export declare const SIDEBAR_COOKIE_MAX_AGE: number;
3
3
  export declare const SIDEBAR_WIDTH = "16rem";
4
4
  export declare const SIDEBAR_WIDTH_MOBILE = "18rem";
@@ -1,4 +1,4 @@
1
- export const SIDEBAR_COOKIE_NAME = "sidebar:state";
1
+ export const SIDEBAR_COOKIE_NAME = "sidebar_state";
2
2
  export const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
3
3
  export const SIDEBAR_WIDTH = "16rem";
4
4
  export const SIDEBAR_WIDTH_MOBILE = "18rem";
@@ -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-[0_0_0_1px_hsl(var(--sidebar-border))] hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]",
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.7",
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.1",
117
- "@lucide/svelte": "^1.14.0",
116
+ "@internationalized/date": "^3.12.2",
117
+ "@lucide/svelte": "^1.17.0",
118
118
  "@sveltejs/adapter-auto": "^7.0.1",
119
- "@sveltejs/kit": "^2.59.1",
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.5",
126
- "@vitest/browser-playwright": "^4.1.5",
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.3.0",
130
+ "eslint": "^10.4.0",
131
131
  "eslint-config-prettier": "^10.1.8",
132
- "eslint-plugin-svelte": "^3.17.1",
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": "^3.5.1",
139
+ "prettier-plugin-svelte": "3.5.2",
140
140
  "prettier-plugin-tailwindcss": "^0.8.0",
141
- "publint": "^0.3.20",
141
+ "publint": "^0.3.21",
142
142
  "runed": "^0.37.1",
143
- "svelte": "5.55.5",
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.59.2",
151
+ "typescript-eslint": "^8.60.0",
152
152
  "vaul-svelte": "1.0.0-next.7",
153
- "vite": "^8.0.11",
154
- "vitest": "^4.1.5",
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
  }