@kayord/ui 0.6.1 → 0.6.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.
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.js +1 -0
- package/dist/components/ui/input/index.d.ts +1 -1
- package/dist/components/ui/popover/index.d.ts +2 -1
- package/dist/components/ui/popover/index.js +3 -2
- package/dist/components/ui/scroll-area/index.d.ts +3 -0
- package/dist/components/ui/scroll-area/index.js +5 -0
- package/dist/components/ui/scroll-area/scroll-area-scrollbar.svelte +21 -0
- package/dist/components/ui/scroll-area/scroll-area-scrollbar.svelte.d.ts +23 -0
- package/dist/components/ui/scroll-area/scroll-area.svelte +22 -0
- package/package.json +11 -11
|
@@ -33,6 +33,7 @@ export { Skeleton } from "./skeleton/index.js";
|
|
|
33
33
|
export { Slider } from "./slider/index.js";
|
|
34
34
|
export { Toaster } from "./sonner/index.js";
|
|
35
35
|
export { toast } from "svelte-sonner";
|
|
36
|
+
export { ScrollArea } from "./scroll-area/index.js";
|
|
36
37
|
export { Switch } from "./switch/index.js";
|
|
37
38
|
export * as Table from "./table/index.js";
|
|
38
39
|
export * as Tabs from "./tabs/index.js";
|
|
@@ -33,6 +33,7 @@ export { Skeleton } from "./skeleton/index.js";
|
|
|
33
33
|
export { Slider } from "./slider/index.js";
|
|
34
34
|
export { Toaster } from "./sonner/index.js";
|
|
35
35
|
export { toast } from "svelte-sonner";
|
|
36
|
+
export { ScrollArea } from "./scroll-area/index.js";
|
|
36
37
|
export { Switch } from "./switch/index.js";
|
|
37
38
|
export * as Table from "./table/index.js";
|
|
38
39
|
export * as Tabs from "./tabs/index.js";
|
|
@@ -2,4 +2,5 @@ import { Popover as PopoverPrimitive } from "bits-ui";
|
|
|
2
2
|
import Content from "./popover-content.svelte";
|
|
3
3
|
declare const Root: typeof PopoverPrimitive.Root;
|
|
4
4
|
declare const Trigger: typeof PopoverPrimitive.Trigger;
|
|
5
|
-
|
|
5
|
+
declare const Close: typeof PopoverPrimitive.Close;
|
|
6
|
+
export { Root, Content, Trigger, Close, Root as Popover, Content as PopoverContent, Trigger as PopoverTrigger, Close as PopoverClose, };
|
|
@@ -2,6 +2,7 @@ import { Popover as PopoverPrimitive } from "bits-ui";
|
|
|
2
2
|
import Content from "./popover-content.svelte";
|
|
3
3
|
const Root = PopoverPrimitive.Root;
|
|
4
4
|
const Trigger = PopoverPrimitive.Trigger;
|
|
5
|
-
|
|
5
|
+
const Close = PopoverPrimitive.Close;
|
|
6
|
+
export { Root, Content, Trigger, Close,
|
|
6
7
|
//
|
|
7
|
-
Root as Popover, Content as PopoverContent, Trigger as PopoverTrigger, };
|
|
8
|
+
Root as Popover, Content as PopoverContent, Trigger as PopoverTrigger, Close as PopoverClose, };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<script>import { ScrollArea as ScrollAreaPrimitive } from "bits-ui";
|
|
2
|
+
import { cn } from "../../../utils.js";
|
|
3
|
+
let className = void 0;
|
|
4
|
+
export let orientation = "vertical";
|
|
5
|
+
export { className as class };
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<ScrollAreaPrimitive.Scrollbar
|
|
9
|
+
{orientation}
|
|
10
|
+
class={cn(
|
|
11
|
+
"flex touch-none select-none transition-colors",
|
|
12
|
+
orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent p-px",
|
|
13
|
+
orientation === "horizontal" && "h-2.5 w-full border-t border-t-transparent p-px",
|
|
14
|
+
className
|
|
15
|
+
)}
|
|
16
|
+
>
|
|
17
|
+
<slot />
|
|
18
|
+
<ScrollAreaPrimitive.Thumb
|
|
19
|
+
class={cn("relative rounded-full bg-border", orientation === "vertical" && "flex-1")}
|
|
20
|
+
/>
|
|
21
|
+
</ScrollAreaPrimitive.Scrollbar>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
asChild?: boolean | undefined;
|
|
5
|
+
el?: HTMLDivElement | undefined;
|
|
6
|
+
} & {
|
|
7
|
+
orientation: "horizontal" | "vertical";
|
|
8
|
+
} & import("bits-ui/dist/internal").HTMLDivAttributes & {
|
|
9
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
10
|
+
};
|
|
11
|
+
events: {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
};
|
|
14
|
+
slots: {
|
|
15
|
+
default: {};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export type ScrollAreaScrollbarProps = typeof __propDef.props;
|
|
19
|
+
export type ScrollAreaScrollbarEvents = typeof __propDef.events;
|
|
20
|
+
export type ScrollAreaScrollbarSlots = typeof __propDef.slots;
|
|
21
|
+
export default class ScrollAreaScrollbar extends SvelteComponent<ScrollAreaScrollbarProps, ScrollAreaScrollbarEvents, ScrollAreaScrollbarSlots> {
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<script>import { ScrollArea as ScrollAreaPrimitive } from "bits-ui";
|
|
2
|
+
import { cn } from "../../../utils.js";
|
|
3
|
+
import { Scrollbar } from "./index.js";
|
|
4
|
+
let className = void 0;
|
|
5
|
+
export { className as class };
|
|
6
|
+
export let orientation = "vertical";
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<ScrollAreaPrimitive.Root {...$$restProps} class={cn("relative overflow-hidden", className)}>
|
|
10
|
+
<ScrollAreaPrimitive.Viewport class="h-full w-full rounded-[inherit]">
|
|
11
|
+
<ScrollAreaPrimitive.Content>
|
|
12
|
+
<slot />
|
|
13
|
+
</ScrollAreaPrimitive.Content>
|
|
14
|
+
</ScrollAreaPrimitive.Viewport>
|
|
15
|
+
{#if orientation === "vertical" || orientation === "both"}
|
|
16
|
+
<Scrollbar orientation="vertical" />
|
|
17
|
+
{/if}
|
|
18
|
+
{#if orientation === "horizontal" || orientation === "both"}
|
|
19
|
+
<Scrollbar orientation="horizontal" />
|
|
20
|
+
{/if}
|
|
21
|
+
<ScrollAreaPrimitive.Corner />
|
|
22
|
+
</ScrollAreaPrimitive.Root>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kayord/ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.3",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -30,31 +30,31 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@internationalized/date": "^3.5.2",
|
|
33
|
-
"bits-ui": "^0.
|
|
33
|
+
"bits-ui": "^0.19.3",
|
|
34
34
|
"clsx": "^2.1.0",
|
|
35
|
-
"cmdk-sv": "^0.0.
|
|
35
|
+
"cmdk-sv": "^0.0.15",
|
|
36
36
|
"embla-carousel-svelte": "8.0.0",
|
|
37
37
|
"formsnap": "^0.5.1",
|
|
38
|
-
"lucide-svelte": "^0.
|
|
39
|
-
"mode-watcher": "^0.2.
|
|
38
|
+
"lucide-svelte": "^0.344.0",
|
|
39
|
+
"mode-watcher": "^0.2.2",
|
|
40
40
|
"paneforge": "^0.0.2",
|
|
41
41
|
"svelte-headless-table": "^0.18.2",
|
|
42
42
|
"svelte-sonner": "^0.3.19",
|
|
43
|
-
"sveltekit-superforms": "^2.
|
|
43
|
+
"sveltekit-superforms": "^2.7.0",
|
|
44
44
|
"tailwind-merge": "^2.2.1",
|
|
45
45
|
"tailwind-variants": "^0.2.0",
|
|
46
46
|
"vaul-svelte": "^0.2.4",
|
|
47
47
|
"zod": "^3.22.4"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@playwright/test": "^1.42.
|
|
50
|
+
"@playwright/test": "^1.42.1",
|
|
51
51
|
"@sveltejs/adapter-auto": "^3.1.1",
|
|
52
52
|
"@sveltejs/kit": "^2.5.2",
|
|
53
53
|
"@sveltejs/package": "^2.2.7",
|
|
54
54
|
"@sveltejs/vite-plugin-svelte": "^3.0.2",
|
|
55
|
-
"@typescript-eslint/eslint-plugin": "^7.1.
|
|
56
|
-
"@typescript-eslint/parser": "^7.1.
|
|
57
|
-
"autoprefixer": "^10.4.
|
|
55
|
+
"@typescript-eslint/eslint-plugin": "^7.1.1",
|
|
56
|
+
"@typescript-eslint/parser": "^7.1.1",
|
|
57
|
+
"autoprefixer": "^10.4.18",
|
|
58
58
|
"eslint": "^8.57.0",
|
|
59
59
|
"eslint-config-prettier": "^9.1.0",
|
|
60
60
|
"eslint-plugin-svelte": "^2.35.1",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"tailwindcss": "^3.4.1",
|
|
69
69
|
"tslib": "^2.6.2",
|
|
70
70
|
"typescript": "^5.3.3",
|
|
71
|
-
"vite": "^5.1.
|
|
71
|
+
"vite": "^5.1.5",
|
|
72
72
|
"vitest": "^1.3.1"
|
|
73
73
|
},
|
|
74
74
|
"svelte": "./dist/index.js",
|