@kayord/ui 2.0.4 → 2.0.5

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.
@@ -92,6 +92,8 @@
92
92
  replaceState: true,
93
93
  keepFocus: true,
94
94
  noScroll: true,
95
+ }).catch(() => {
96
+ // Ignore navigation errors in test environments
95
97
  });
96
98
  }
97
99
  });
@@ -2,7 +2,7 @@
2
2
  import { type VariantProps, tv } from "tailwind-variants";
3
3
 
4
4
  export const badgeVariants = tv({
5
- base: "focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden whitespace-nowrap rounded-md border px-2 py-0.5 text-xs font-medium transition-[color,box-shadow] focus-visible:ring-[3px] [&>svg]:pointer-events-none [&>svg]:size-3",
5
+ base: "focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden whitespace-nowrap rounded-full border px-2 py-0.5 text-xs font-medium transition-[color,box-shadow] focus-visible:ring-[3px] [&>svg]:pointer-events-none [&>svg]:size-3",
6
6
  variants: {
7
7
  variant: {
8
8
  default: "bg-primary text-primary-foreground [a&]:hover:bg-primary/90 border-transparent",
@@ -6,7 +6,7 @@ export declare const badgeVariants: import("tailwind-variants").TVReturnType<{
6
6
  destructive: string;
7
7
  outline: string;
8
8
  };
9
- }, undefined, "focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden whitespace-nowrap rounded-md border px-2 py-0.5 text-xs font-medium transition-[color,box-shadow] focus-visible:ring-[3px] [&>svg]:pointer-events-none [&>svg]:size-3", {
9
+ }, undefined, "focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden whitespace-nowrap rounded-full border px-2 py-0.5 text-xs font-medium transition-[color,box-shadow] focus-visible:ring-[3px] [&>svg]:pointer-events-none [&>svg]:size-3", {
10
10
  variant: {
11
11
  default: string;
12
12
  secondary: string;
@@ -20,7 +20,7 @@ export declare const badgeVariants: import("tailwind-variants").TVReturnType<{
20
20
  destructive: string;
21
21
  outline: string;
22
22
  };
23
- }, undefined, "focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden whitespace-nowrap rounded-md border px-2 py-0.5 text-xs font-medium transition-[color,box-shadow] focus-visible:ring-[3px] [&>svg]:pointer-events-none [&>svg]:size-3", unknown, unknown, undefined>>;
23
+ }, undefined, "focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden whitespace-nowrap rounded-full border px-2 py-0.5 text-xs font-medium transition-[color,box-shadow] focus-visible:ring-[3px] [&>svg]:pointer-events-none [&>svg]:size-3", unknown, unknown, undefined>>;
24
24
  export type BadgeVariant = VariantProps<typeof badgeVariants>["variant"];
25
25
  import type { HTMLAnchorAttributes } from "svelte/elements";
26
26
  import { type WithElementRef } from "../../../utils.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kayord/ui",
3
3
  "private": false,
4
- "version": "2.0.4",
4
+ "version": "2.0.5",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",
@@ -101,27 +101,25 @@
101
101
  }
102
102
  },
103
103
  "dependencies": {
104
- "bits-ui": "2.14.0",
104
+ "bits-ui": "2.14.1",
105
105
  "clsx": "^2.1.1",
106
106
  "tailwind-merge": "^3.3.1",
107
107
  "tailwind-variants": "^3.1.1"
108
108
  },
109
109
  "devDependencies": {
110
110
  "@internationalized/date": "^3.10.0",
111
- "@lucide/svelte": "^0.546.0",
111
+ "@lucide/svelte": "^0.548.0",
112
112
  "@sveltejs/adapter-auto": "^7.0.0",
113
- "@sveltejs/kit": "^2.47.2",
113
+ "@sveltejs/kit": "^2.48.2",
114
114
  "@sveltejs/package": "^2.5.4",
115
115
  "@sveltejs/vite-plugin-svelte": "^6.2.1",
116
- "@tailwindcss/vite": "^4.1.15",
117
- "@testing-library/jest-dom": "^6.9.1",
118
- "@testing-library/svelte": "^5.2.8",
119
- "@testing-library/user-event": "^14.6.1",
116
+ "@tailwindcss/vite": "^4.1.16",
120
117
  "@types/d3-scale": "^4.0.9",
121
118
  "@types/d3-shape": "^3.1.7",
122
119
  "@typescript-eslint/eslint-plugin": "^8.46.2",
123
120
  "@typescript-eslint/parser": "^8.46.2",
124
- "@vitest/coverage-v8": "3.2.4",
121
+ "@vitest/browser": "^4.0.1",
122
+ "@vitest/browser-playwright": "^4.0.1",
125
123
  "d3-scale": "^4.0.2",
126
124
  "d3-shape": "^3.2.0",
127
125
  "embla-carousel-svelte": "^8.6.0",
@@ -129,7 +127,6 @@
129
127
  "eslint-config-prettier": "^10.1.8",
130
128
  "eslint-plugin-svelte": "^3.12.5",
131
129
  "formsnap": "^2.0.1",
132
- "jsdom": "^27.0.1",
133
130
  "layerchart": "2.0.0-next.40",
134
131
  "mode-watcher": "^1.1.0",
135
132
  "paneforge": "^1.0.2",
@@ -137,17 +134,18 @@
137
134
  "prettier-plugin-svelte": "^3.4.0",
138
135
  "prettier-plugin-tailwindcss": "^0.7.1",
139
136
  "publint": "^0.3.15",
140
- "svelte": "5.41.1",
137
+ "svelte": "5.42.3",
141
138
  "svelte-check": "^4.3.3",
142
139
  "svelte-sonner": "^1.0.5",
143
140
  "sveltekit-superforms": "^2.28.0",
144
- "tailwindcss": "^4.1.15",
141
+ "tailwindcss": "^4.1.16",
145
142
  "tslib": "^2.8.1",
146
143
  "tw-animate-css": "1.4.0",
147
144
  "typescript": "^5.9.3",
148
145
  "vaul-svelte": "1.0.0-next.7",
149
- "vite": "^7.1.11",
150
- "vitest": "^3.2.4",
146
+ "vite": "^7.1.12",
147
+ "vitest": "^4.0.4",
148
+ "vitest-browser-svelte": "^2.0.0",
151
149
  "zod": "4.1.12"
152
150
  },
153
151
  "svelte": "./dist/index.js",
@@ -156,10 +154,10 @@
156
154
  "type": "module",
157
155
  "scripts": {
158
156
  "dev": "vite dev",
159
- "build": "vite build && npm run package",
157
+ "build": "vite build && pnpm package",
160
158
  "preview": "vite preview",
161
159
  "package": "svelte-kit sync && svelte-package && publint",
162
- "test": "npm run test:unit",
160
+ "test": "pnpm test:unit",
163
161
  "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
164
162
  "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
165
163
  "lint": "prettier --check . && eslint .",