@kayord/ui 0.14.0 → 0.14.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.
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
<Skeleton class="size-4 rounded-md" data-sidebar="menu-skeleton-icon" />
|
|
29
29
|
{/if}
|
|
30
30
|
<Skeleton
|
|
31
|
-
class="h-4 max-w-
|
|
31
|
+
class="h-4 max-w-(--skeleton-width) flex-1"
|
|
32
32
|
data-sidebar="menu-skeleton-text"
|
|
33
33
|
style="--skeleton-width: {width};"
|
|
34
34
|
/>
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
{#if collapsible === "none"}
|
|
27
27
|
<div
|
|
28
|
-
class={cn("bg-sidebar text-sidebar-foreground flex h-full w-
|
|
28
|
+
class={cn("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", className)}
|
|
29
29
|
bind:this={ref}
|
|
30
30
|
{...restProps}
|
|
31
31
|
>
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
<Sheet.Content
|
|
37
37
|
data-sidebar="sidebar"
|
|
38
38
|
data-mobile="true"
|
|
39
|
-
class="bg-sidebar text-sidebar-foreground w-
|
|
39
|
+
class="bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden"
|
|
40
40
|
style="--sidebar-width: {SIDEBAR_WIDTH_MOBILE};"
|
|
41
41
|
{side}
|
|
42
42
|
>
|
|
@@ -57,24 +57,24 @@
|
|
|
57
57
|
<!-- This is what handles the sidebar gap on desktop -->
|
|
58
58
|
<div
|
|
59
59
|
class={cn(
|
|
60
|
-
"relative h-svh w-
|
|
60
|
+
"relative h-svh w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear",
|
|
61
61
|
"group-data-[collapsible=offcanvas]:w-0",
|
|
62
62
|
"group-data-[side=right]:rotate-180",
|
|
63
63
|
variant === "floating" || variant === "inset"
|
|
64
64
|
? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]"
|
|
65
|
-
: "group-data-[collapsible=icon]:w-
|
|
65
|
+
: "group-data-[collapsible=icon]:w-(--sidebar-width-icon)"
|
|
66
66
|
)}
|
|
67
67
|
></div>
|
|
68
68
|
<div
|
|
69
69
|
class={cn(
|
|
70
|
-
"fixed inset-y-0 z-10 hidden h-svh w-
|
|
70
|
+
"fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
|
|
71
71
|
side === "left"
|
|
72
72
|
? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]"
|
|
73
73
|
: "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
|
|
74
74
|
// Adjust the padding for floating and inset variants.
|
|
75
75
|
variant === "floating" || variant === "inset"
|
|
76
76
|
? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]"
|
|
77
|
-
: "group-data-[collapsible=icon]:w-
|
|
77
|
+
: "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",
|
|
78
78
|
className
|
|
79
79
|
)}
|
|
80
80
|
{...restProps}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kayord/ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.14.
|
|
4
|
+
"version": "0.14.1",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -46,7 +46,6 @@
|
|
|
46
46
|
"vaul-svelte": "1.0.0-next.6"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@kayord/tw-plugin": "^1.0.3",
|
|
50
49
|
"@sveltejs/adapter-auto": "^4.0.0",
|
|
51
50
|
"@sveltejs/kit": "^2.17.2",
|
|
52
51
|
"@sveltejs/package": "^2.3.10",
|
|
@@ -68,7 +67,6 @@
|
|
|
68
67
|
"svelte": "^5.20.4",
|
|
69
68
|
"svelte-check": "^4.1.4",
|
|
70
69
|
"tailwindcss": "^4.0.8",
|
|
71
|
-
"tailwindcss-animate": "^1.0.7",
|
|
72
70
|
"tslib": "^2.8.1",
|
|
73
71
|
"typescript": "^5.7.3",
|
|
74
72
|
"vite": "^6.2.0",
|
|
@@ -91,7 +89,7 @@
|
|
|
91
89
|
"lint": "prettier --check . && eslint .",
|
|
92
90
|
"format": "prettier --write .",
|
|
93
91
|
"test:unit": "vitest",
|
|
94
|
-
"lib": "pnpm dlx shadcn-svelte@next add -a -y -o --no-deps && pnpm format && pnpm version --no-git-tag-version patch",
|
|
92
|
+
"lib": "pnpm dlx shadcn-svelte@next add -a -y -o --no-deps && pnpm format && pnpm version --no-git-tag-version patch && ./tw.sh",
|
|
95
93
|
"next": "./next.sh"
|
|
96
94
|
}
|
|
97
95
|
}
|