@kayord/ui 0.18.0 → 0.18.3

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,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { Command as CommandPrimitive } from "bits-ui";
2
+ import { Command as CommandPrimitive, useId } from "bits-ui";
3
3
  import { cn } from "../../../utils.js";
4
4
 
5
5
  let {
@@ -7,13 +7,19 @@
7
7
  class: className,
8
8
  children,
9
9
  heading,
10
+ value,
10
11
  ...restProps
11
12
  }: CommandPrimitive.GroupProps & {
12
13
  heading?: string;
13
14
  } = $props();
14
15
  </script>
15
16
 
16
- <CommandPrimitive.Group class={cn("text-foreground overflow-hidden p-1", className)} bind:ref {...restProps}>
17
+ <CommandPrimitive.Group
18
+ class={cn("text-foreground overflow-hidden p-1", className)}
19
+ bind:ref
20
+ value={value ?? heading ?? `----${useId()}`}
21
+ {...restProps}
22
+ >
17
23
  {#if heading}
18
24
  <CommandPrimitive.GroupHeading class="text-muted-foreground px-2 py-1.5 text-xs font-medium">
19
25
  {heading}
@@ -7,7 +7,7 @@
7
7
 
8
8
  <CommandPrimitive.LinkItem
9
9
  class={cn(
10
- "aria-selected:bg-accent aria-selected:text-accent-foreground relative flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
10
+ "aria-selected:bg-accent aria-selected:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
11
11
  className
12
12
  )}
13
13
  bind:ref
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kayord/ui",
3
3
  "private": false,
4
- "version": "0.18.0",
4
+ "version": "0.18.3",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",
@@ -34,51 +34,51 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@internationalized/date": "^3.8.0",
37
- "bits-ui": "1.3.19",
37
+ "bits-ui": "1.4.8",
38
38
  "clsx": "^2.1.1",
39
39
  "embla-carousel-svelte": "8.6.0",
40
40
  "formsnap": "2.0.1",
41
- "mode-watcher": "^1.0.2",
41
+ "mode-watcher": "^1.0.7",
42
42
  "paneforge": "1.0.0-next.5",
43
- "svelte-sonner": "^0.3.28",
44
- "tailwind-merge": "^3.2.0",
43
+ "svelte-sonner": "^1.0.1",
44
+ "tailwind-merge": "^3.3.0",
45
45
  "tailwind-variants": "^1.0.0",
46
46
  "vaul-svelte": "1.0.0-next.7"
47
47
  },
48
48
  "devDependencies": {
49
- "@lucide/svelte": "^0.501.0",
50
- "@sveltejs/adapter-auto": "^6.0.0",
51
- "@sveltejs/kit": "^2.20.7",
49
+ "@lucide/svelte": "^0.510.0",
50
+ "@sveltejs/adapter-auto": "^6.0.1",
51
+ "@sveltejs/kit": "^2.21.0",
52
52
  "@sveltejs/package": "^2.3.11",
53
53
  "@sveltejs/vite-plugin-svelte": "^5.0.3",
54
- "@tailwindcss/vite": "^4.1.4",
54
+ "@tailwindcss/vite": "^4.1.6",
55
55
  "@testing-library/jest-dom": "^6.6.3",
56
56
  "@testing-library/svelte": "^5.2.7",
57
- "@typescript-eslint/eslint-plugin": "^8.30.1",
58
- "@typescript-eslint/parser": "^8.30.1",
59
- "eslint": "^9.25.0",
60
- "eslint-config-prettier": "^10.1.2",
61
- "eslint-plugin-svelte": "^3.5.1",
62
- "happy-dom": "^17.4.4",
57
+ "@typescript-eslint/eslint-plugin": "^8.32.1",
58
+ "@typescript-eslint/parser": "^8.32.1",
59
+ "eslint": "^9.26.0",
60
+ "eslint-config-prettier": "^10.1.5",
61
+ "eslint-plugin-svelte": "^3.6.0",
62
+ "happy-dom": "^17.4.7",
63
63
  "prettier": "^3.5.3",
64
- "prettier-plugin-svelte": "^3.3.3",
64
+ "prettier-plugin-svelte": "^3.4.0",
65
65
  "prettier-plugin-tailwindcss": "^0.6.11",
66
66
  "publint": "^0.3.12",
67
- "svelte": "^5.28.1",
68
- "svelte-check": "^4.1.6",
69
- "tailwindcss": "^4.1.4",
67
+ "svelte": "^5.28.6",
68
+ "svelte-check": "^4.2.0",
69
+ "tailwindcss": "^4.1.6",
70
70
  "tslib": "^2.8.1",
71
- "tw-animate-css": "1.2.7",
71
+ "tw-animate-css": "1.2.9",
72
72
  "typescript": "^5.8.3",
73
- "vite": "^6.3.2",
74
- "vitest": "^3.1.1",
75
- "zod": "^3.24.3"
73
+ "vite": "^6.3.5",
74
+ "vitest": "^3.1.3",
75
+ "zod": "^3.24.4"
76
76
  },
77
77
  "svelte": "./dist/index.js",
78
78
  "types": "./dist/index.d.ts",
79
79
  "main": "./dist/index.js",
80
80
  "type": "module",
81
- "packageManager": "pnpm@10.8.1+sha512.c50088ba998c67b8ca8c99df8a5e02fd2ae2e2b29aaf238feaa9e124248d3f48f9fb6db2424949ff901cffbb5e0f0cc1ad6aedb602cd29450751d11c35023677",
81
+ "packageManager": "pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977",
82
82
  "scripts": {
83
83
  "dev": "vite dev",
84
84
  "build": "vite build && npm run package",