@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.
- package/dist/components/custom/loader/Loader.svelte.d.ts +1 -1
- package/dist/components/ui/breadcrumb/breadcrumb-link.svelte +5 -6
- package/dist/components/ui/carousel/carousel.svelte +9 -14
- package/dist/components/ui/pagination/pagination.svelte +1 -2
- package/dist/components/ui/select/select-trigger.svelte +1 -1
- package/package.json +16 -16
|
@@ -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
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
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
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
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();
|
|
@@ -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
|
|
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.
|
|
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.
|
|
37
|
-
"formsnap": "^1.0.
|
|
38
|
-
"lucide-svelte": "^0.
|
|
39
|
-
"mode-watcher": "^0.3.
|
|
40
|
-
"paneforge": "^0.0.
|
|
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.
|
|
51
|
-
"@sveltejs/kit": "^2.5.
|
|
52
|
-
"@sveltejs/package": "^2.3.
|
|
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.
|
|
57
|
-
"@typescript-eslint/parser": "^7.13.
|
|
56
|
+
"@typescript-eslint/eslint-plugin": "^7.13.1",
|
|
57
|
+
"@typescript-eslint/parser": "^7.13.1",
|
|
58
58
|
"autoprefixer": "^10.4.19",
|
|
59
|
-
"eslint": "^9.
|
|
59
|
+
"eslint": "^9.5.0",
|
|
60
60
|
"eslint-config-prettier": "^9.1.0",
|
|
61
|
-
"eslint-plugin-svelte": "^2.
|
|
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.
|
|
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.
|
|
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.
|
|
80
|
+
"packageManager": "pnpm@9.4.0+sha512.f549b8a52c9d2b8536762f99c0722205efc5af913e77835dbccc3b0b0b2ca9e7dc8022b78062c17291c48e88749c70ce88eb5a74f1fa8c4bf5e18bb46c8bd83a",
|
|
81
81
|
"scripts": {
|
|
82
82
|
"dev": "vite dev",
|
|
83
83
|
"build": "vite build && npm run package",
|