@kayord/ui 1.1.0 → 1.1.1
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 {
|
|
2
|
+
import { SunIcon, MoonIcon } from "@lucide/svelte";
|
|
3
3
|
import { toggleMode } from "mode-watcher";
|
|
4
4
|
import { Button } from "../../ui/button/index.js";
|
|
5
5
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
</script>
|
|
12
12
|
|
|
13
13
|
<Button onclick={toggleMode} {variant} size="icon">
|
|
14
|
-
<
|
|
15
|
-
<
|
|
14
|
+
<SunIcon class="scale-100 rotate-0 !transition-all dark:scale-0 dark:-rotate-90" />
|
|
15
|
+
<MoonIcon class="absolute scale-0 rotate-90 !transition-all dark:scale-100 dark:rotate-0" />
|
|
16
16
|
<span class="sr-only">Toggle theme</span>
|
|
17
17
|
</Button>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {
|
|
2
|
+
import { SunIcon, MoonIcon } from "@lucide/svelte";
|
|
3
3
|
import { resetMode, setMode } from "mode-watcher";
|
|
4
4
|
import * as DropdownMenu from "../../ui/dropdown-menu/index.js";
|
|
5
5
|
import { buttonVariants } from "../../ui/button/index.js";
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
|
|
14
14
|
<DropdownMenu.Root>
|
|
15
15
|
<DropdownMenu.Trigger class={buttonVariants({ variant, size: "icon" })}>
|
|
16
|
-
<
|
|
17
|
-
<
|
|
16
|
+
<SunIcon class="scale-100 rotate-0 !transition-all dark:scale-0 dark:-rotate-90" />
|
|
17
|
+
<MoonIcon class="absolute scale-0 rotate-90 !transition-all dark:scale-100 dark:rotate-0" />
|
|
18
18
|
<span class="sr-only">Toggle theme</span>
|
|
19
19
|
</DropdownMenu.Trigger>
|
|
20
20
|
<DropdownMenu.Content align="end">
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kayord/ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.1",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@lucide/svelte": "^0.525.0",
|
|
51
51
|
"@sveltejs/adapter-auto": "^6.0.1",
|
|
52
|
-
"@sveltejs/kit": "^2.
|
|
52
|
+
"@sveltejs/kit": "^2.25.1",
|
|
53
53
|
"@sveltejs/package": "^2.4.0",
|
|
54
54
|
"@sveltejs/vite-plugin-svelte": "^6.1.0",
|
|
55
55
|
"@tailwindcss/vite": "^4.1.11",
|
|
@@ -71,14 +71,14 @@
|
|
|
71
71
|
"prettier-plugin-svelte": "^3.4.0",
|
|
72
72
|
"prettier-plugin-tailwindcss": "^0.6.14",
|
|
73
73
|
"publint": "^0.3.12",
|
|
74
|
-
"svelte": "5.36.
|
|
75
|
-
"svelte-check": "^4.
|
|
74
|
+
"svelte": "5.36.7",
|
|
75
|
+
"svelte-check": "^4.3.0",
|
|
76
76
|
"sveltekit-superforms": "^2.27.1",
|
|
77
77
|
"tailwindcss": "^4.1.11",
|
|
78
78
|
"tslib": "^2.8.1",
|
|
79
79
|
"tw-animate-css": "1.3.5",
|
|
80
80
|
"typescript": "^5.8.3",
|
|
81
|
-
"vite": "^7.0.
|
|
81
|
+
"vite": "^7.0.5",
|
|
82
82
|
"vitest": "^3.2.4",
|
|
83
83
|
"zod": "^4.0.5"
|
|
84
84
|
},
|