@kayord/ui 0.8.18 → 0.8.19

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.
@@ -7,7 +7,7 @@ declare const __propDef: {
7
7
  size?: string | number | undefined;
8
8
  strokeWidth?: string | number | undefined;
9
9
  absoluteStrokeWidth?: boolean | undefined;
10
- iconNode: import("lucide-svelte").IconNode;
10
+ iconNode?: import("lucide-svelte").IconNode | undefined;
11
11
  }, "iconNode"> & {
12
12
  isLoading?: boolean | undefined;
13
13
  };
@@ -5,12 +5,11 @@ export let asChild = false;
5
5
  let className = void 0;
6
6
  export { className as class };
7
7
  let attrs;
8
- $:
9
- attrs = {
10
- class: cn("transition-colors hover:text-foreground", className),
11
- href,
12
- ...$$restProps
13
- };
8
+ $: attrs = {
9
+ class: cn("transition-colors hover:text-foreground", className),
10
+ href,
11
+ ...$$restProps
12
+ };
14
13
  </script>
15
14
 
16
15
  {#if asChild}
@@ -16,12 +16,9 @@ const optionsStore = writable(opts);
16
16
  const pluginStore = writable(plugins);
17
17
  const scrollSnapsStore = writable([]);
18
18
  const selectedIndexStore = writable(0);
19
- $:
20
- orientationStore.set(orientation);
21
- $:
22
- pluginStore.set(plugins);
23
- $:
24
- optionsStore.set(opts);
19
+ $: orientationStore.set(orientation);
20
+ $: pluginStore.set(plugins);
21
+ $: optionsStore.set(opts);
25
22
  function scrollPrev() {
26
23
  api?.scrollPrev();
27
24
  }
@@ -32,17 +29,15 @@ function scrollTo(index, jump) {
32
29
  api?.scrollTo(index, jump);
33
30
  }
34
31
  function onSelect(api2) {
35
- if (!api2)
36
- return;
32
+ if (!api2) return;
37
33
  canScrollPrev.set(api2.canScrollPrev());
38
34
  canScrollNext.set(api2.canScrollNext());
39
35
  }
40
- $:
41
- if (api) {
42
- onSelect(api);
43
- api.on("select", onSelect);
44
- api.on("reInit", onSelect);
45
- }
36
+ $: if (api) {
37
+ onSelect(api);
38
+ api.on("select", onSelect);
39
+ api.on("reInit", onSelect);
40
+ }
46
41
  function handleKeyDown(e) {
47
42
  if (e.key === "ArrowLeft") {
48
43
  e.preventDefault();
@@ -6,8 +6,7 @@ export let perPage = 10;
6
6
  export let page = 1;
7
7
  export let siblingCount = 1;
8
8
  export { className as class };
9
- $:
10
- currentPage = page;
9
+ $: currentPage = page;
11
10
  </script>
12
11
 
13
12
  <PaginationPrimitive.Root
@@ -7,7 +7,7 @@ export { className as class };
7
7
 
8
8
  <SelectPrimitive.Trigger
9
9
  class={cn(
10
- "flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
10
+ "flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 aria-[invalid]:border-destructive [&>span]:line-clamp-1 data-[placeholder]:[&>span]:text-muted-foreground",
11
11
  className
12
12
  )}
13
13
  {...$$restProps}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kayord/ui",
3
3
  "private": false,
4
- "version": "0.8.18",
4
+ "version": "0.8.19",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",
@@ -33,11 +33,11 @@
33
33
  "bits-ui": "^0.21.10",
34
34
  "clsx": "^2.1.1",
35
35
  "cmdk-sv": "^0.0.17",
36
- "embla-carousel-svelte": "8.1.3",
37
- "formsnap": "^1.0.0",
38
- "lucide-svelte": "^0.394.0",
39
- "mode-watcher": "^0.3.0",
40
- "paneforge": "^0.0.4",
36
+ "embla-carousel-svelte": "8.1.5",
37
+ "formsnap": "^1.0.1",
38
+ "lucide-svelte": "^0.395.0",
39
+ "mode-watcher": "^0.3.1",
40
+ "paneforge": "^0.0.5",
41
41
  "svelte-headless-table": "^0.18.2",
42
42
  "svelte-sonner": "^0.3.24",
43
43
  "sveltekit-superforms": "^2.15.1",
@@ -47,18 +47,18 @@
47
47
  "zod": "^3.23.8"
48
48
  },
49
49
  "devDependencies": {
50
- "@sveltejs/adapter-auto": "^3.2.1",
51
- "@sveltejs/kit": "^2.5.10",
52
- "@sveltejs/package": "^2.3.1",
50
+ "@sveltejs/adapter-auto": "^3.2.2",
51
+ "@sveltejs/kit": "^2.5.16",
52
+ "@sveltejs/package": "^2.3.2",
53
53
  "@sveltejs/vite-plugin-svelte": "^3.1.1",
54
54
  "@testing-library/jest-dom": "^6.4.6",
55
55
  "@testing-library/svelte": "^5.1.0",
56
- "@typescript-eslint/eslint-plugin": "^7.13.0",
57
- "@typescript-eslint/parser": "^7.13.0",
56
+ "@typescript-eslint/eslint-plugin": "^7.13.1",
57
+ "@typescript-eslint/parser": "^7.13.1",
58
58
  "autoprefixer": "^10.4.19",
59
- "eslint": "^9.4.0",
59
+ "eslint": "^9.5.0",
60
60
  "eslint-config-prettier": "^9.1.0",
61
- "eslint-plugin-svelte": "^2.39.3",
61
+ "eslint-plugin-svelte": "^2.40.0",
62
62
  "happy-dom": "^14.12.0",
63
63
  "postcss": "^8.4.38",
64
64
  "postcss-load-config": "^5.1.0",
@@ -66,18 +66,18 @@
66
66
  "prettier-plugin-svelte": "^3.2.4",
67
67
  "publint": "^0.2.8",
68
68
  "svelte": "^4.2.18",
69
- "svelte-check": "^3.8.0",
69
+ "svelte-check": "^3.8.1",
70
70
  "tailwindcss": "^3.4.4",
71
71
  "tslib": "^2.6.3",
72
72
  "typescript": "^5.4.5",
73
- "vite": "^5.2.13",
73
+ "vite": "^5.3.1",
74
74
  "vitest": "^1.6.0"
75
75
  },
76
76
  "svelte": "./dist/index.js",
77
77
  "types": "./dist/index.d.ts",
78
78
  "main": "./dist/index.js",
79
79
  "type": "module",
80
- "packageManager": "pnpm@9.3.0+sha512.ee7b93e0c2bd11409c6424f92b866f31d3ea1bef5fbe47d3c7500cdc3c9668833d2e55681ad66df5b640c61fa9dc25d546efa54d76d7f8bf54b13614ac293631",
80
+ "packageManager": "pnpm@9.4.0+sha512.f549b8a52c9d2b8536762f99c0722205efc5af913e77835dbccc3b0b0b2ca9e7dc8022b78062c17291c48e88749c70ce88eb5a74f1fa8c4bf5e18bb46c8bd83a",
81
81
  "scripts": {
82
82
  "dev": "vite dev",
83
83
  "build": "vite build && npm run package",