@kayord/ui 0.1.0 → 0.2.0
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/data-table/DataTable.svelte +134 -0
- package/dist/components/custom/data-table/DataTable.svelte.d.ts +24 -0
- package/dist/components/custom/data-table/DataTableActions.svelte +23 -0
- package/dist/components/custom/data-table/DataTableActions.svelte.d.ts +16 -0
- package/dist/components/custom/data-table/data.d.ts +7 -0
- package/dist/components/custom/data-table/data.js +410 -0
- package/dist/components/custom/data-table/index.d.ts +2 -0
- package/dist/components/custom/data-table/index.js +2 -0
- package/dist/components/custom/index.d.ts +1 -0
- package/dist/components/custom/index.js +1 -0
- package/dist/components/custom/loader/Loader.svelte.d.ts +1 -2
- package/dist/components/ui/command/command-dialog.svelte.d.ts +38 -0
- package/dist/components/ui/context-menu/context-menu-label.svelte.d.ts +1 -0
- package/dist/components/ui/context-menu/context-menu-sub-trigger.svelte.d.ts +1 -0
- package/dist/components/ui/drawer/drawer-content.svelte +20 -0
- package/dist/components/ui/drawer/drawer-content.svelte.d.ts +17 -0
- package/dist/components/ui/drawer/drawer-description.svelte +14 -0
- package/dist/components/ui/drawer/drawer-description.svelte.d.ts +16 -0
- package/dist/components/ui/drawer/drawer-footer.svelte +13 -0
- package/dist/components/ui/drawer/drawer-footer.svelte.d.ts +19 -0
- package/dist/components/ui/drawer/drawer-header.svelte +13 -0
- package/dist/components/ui/drawer/drawer-header.svelte.d.ts +19 -0
- package/dist/components/ui/drawer/drawer-overlay.svelte +14 -0
- package/dist/components/ui/drawer/drawer-overlay.svelte.d.ts +17 -0
- package/dist/components/ui/drawer/drawer-title.svelte +14 -0
- package/dist/components/ui/drawer/drawer-title.svelte.d.ts +16 -0
- package/dist/components/ui/drawer/drawer.svelte +14 -0
- package/dist/components/ui/drawer/drawer.svelte.d.ts +17 -0
- package/dist/components/ui/drawer/index.d.ts +11 -0
- package/dist/components/ui/drawer/index.js +14 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-label.svelte.d.ts +1 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte.d.ts +1 -0
- package/dist/components/ui/form/form-select-trigger.svelte.d.ts +1 -0
- package/dist/components/ui/form/form-select.svelte.d.ts +35 -0
- package/dist/components/ui/index.d.ts +3 -0
- package/dist/components/ui/index.js +3 -0
- package/dist/components/ui/menubar/menubar-label.svelte.d.ts +1 -0
- package/dist/components/ui/menubar/menubar-sub-trigger.svelte.d.ts +1 -0
- package/dist/components/ui/pagination/index.d.ts +8 -0
- package/dist/components/ui/pagination/index.js +10 -0
- package/dist/components/ui/pagination/pagination-content.svelte +8 -0
- package/dist/components/ui/pagination/pagination-content.svelte.d.ts +17 -0
- package/dist/components/ui/pagination/pagination-ellipsis.svelte +14 -0
- package/dist/components/ui/pagination/pagination-ellipsis.svelte.d.ts +15 -0
- package/dist/components/ui/pagination/pagination-item.svelte +8 -0
- package/dist/components/ui/pagination/pagination-item.svelte.d.ts +17 -0
- package/dist/components/ui/pagination/pagination-link.svelte +24 -0
- package/dist/components/ui/pagination/pagination-link.svelte.d.ts +24 -0
- package/dist/components/ui/pagination/pagination-next-button.svelte +20 -0
- package/dist/components/ui/pagination/pagination-next-button.svelte.d.ts +15 -0
- package/dist/components/ui/pagination/pagination-prev-button.svelte +20 -0
- package/dist/components/ui/pagination/pagination-prev-button.svelte.d.ts +15 -0
- package/dist/components/ui/pagination/pagination.svelte +30 -0
- package/dist/components/ui/pagination/pagination.svelte.d.ts +22 -0
- package/dist/components/ui/select/index.d.ts +1 -1
- package/dist/components/ui/select/index.js +1 -1
- package/dist/components/ui/select/select.svelte.d.ts +16 -0
- package/dist/components/ui/sheet/sheet-content.svelte.d.ts +1 -0
- package/dist/components/ui/sonner/index.d.ts +1 -0
- package/dist/components/ui/sonner/index.js +1 -0
- package/dist/components/ui/sonner/sonner.svelte +21 -0
- package/dist/components/ui/sonner/sonner.svelte.d.ts +15 -0
- package/dist/components/ui/toggle/toggle.svelte.d.ts +1 -0
- package/dist/components/ui/toggle-group/toggle-group-item.svelte.d.ts +1 -0
- package/package.json +24 -20
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import { Pagination as PaginationPrimitive } from "bits-ui";
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: PaginationPrimitive.PrevButtonProps;
|
|
5
|
+
slots: {};
|
|
6
|
+
events: {
|
|
7
|
+
click: import("bits-ui").CustomEventHandler<MouseEvent, HTMLDivElement>;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export type PaginationPrevButtonProps = typeof __propDef.props;
|
|
11
|
+
export type PaginationPrevButtonEvents = typeof __propDef.events;
|
|
12
|
+
export type PaginationPrevButtonSlots = typeof __propDef.slots;
|
|
13
|
+
export default class PaginationPrevButton extends SvelteComponent<PaginationPrevButtonProps, PaginationPrevButtonEvents, PaginationPrevButtonSlots> {
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<script>import { Pagination as PaginationPrimitive } from "bits-ui";
|
|
2
|
+
import { cn } from "../../../utils";
|
|
3
|
+
let className = void 0;
|
|
4
|
+
export let count = 0;
|
|
5
|
+
export let perPage = 10;
|
|
6
|
+
export let page = 1;
|
|
7
|
+
export let siblingCount = 1;
|
|
8
|
+
export { className as class };
|
|
9
|
+
$:
|
|
10
|
+
currentPage = page;
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<PaginationPrimitive.Root
|
|
14
|
+
{count}
|
|
15
|
+
{perPage}
|
|
16
|
+
{siblingCount}
|
|
17
|
+
bind:page
|
|
18
|
+
let:builder
|
|
19
|
+
let:pages
|
|
20
|
+
let:range
|
|
21
|
+
asChild
|
|
22
|
+
{...$$restProps}
|
|
23
|
+
>
|
|
24
|
+
<nav
|
|
25
|
+
{...builder}
|
|
26
|
+
class={cn("mx-auto flex flex-col w-full items-center", className)}
|
|
27
|
+
>
|
|
28
|
+
<slot {pages} {range} {currentPage} />
|
|
29
|
+
</nav>
|
|
30
|
+
</PaginationPrimitive.Root>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import { Pagination as PaginationPrimitive } from "bits-ui";
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: PaginationPrimitive.Props;
|
|
5
|
+
slots: {
|
|
6
|
+
default: {
|
|
7
|
+
pages: any[];
|
|
8
|
+
range: {
|
|
9
|
+
start: number;
|
|
10
|
+
end: number;
|
|
11
|
+
};
|
|
12
|
+
currentPage: number | undefined;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
events: PaginationPrimitive.Events;
|
|
16
|
+
};
|
|
17
|
+
export type PaginationProps = typeof __propDef.props;
|
|
18
|
+
export type PaginationEvents = typeof __propDef.events;
|
|
19
|
+
export type PaginationSlots = typeof __propDef.slots;
|
|
20
|
+
export default class Pagination extends SvelteComponent<PaginationProps, PaginationEvents, PaginationSlots> {
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Select as SelectPrimitive } from "bits-ui";
|
|
2
|
-
import Root from "./select.svelte";
|
|
3
2
|
import Label from "./select-label.svelte";
|
|
4
3
|
import Item from "./select-item.svelte";
|
|
5
4
|
import Content from "./select-content.svelte";
|
|
6
5
|
import Trigger from "./select-trigger.svelte";
|
|
7
6
|
import Separator from "./select-separator.svelte";
|
|
7
|
+
declare const Root: typeof SelectPrimitive.Root;
|
|
8
8
|
declare const Group: typeof SelectPrimitive.Group;
|
|
9
9
|
declare const Input: typeof SelectPrimitive.Input;
|
|
10
10
|
declare const Value: typeof SelectPrimitive.Value;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Select as SelectPrimitive } from "bits-ui";
|
|
2
|
-
import Root from "./select.svelte";
|
|
3
2
|
import Label from "./select-label.svelte";
|
|
4
3
|
import Item from "./select-item.svelte";
|
|
5
4
|
import Content from "./select-content.svelte";
|
|
6
5
|
import Trigger from "./select-trigger.svelte";
|
|
7
6
|
import Separator from "./select-separator.svelte";
|
|
7
|
+
const Root = SelectPrimitive.Root;
|
|
8
8
|
const Group = SelectPrimitive.Group;
|
|
9
9
|
const Input = SelectPrimitive.Input;
|
|
10
10
|
const Value = SelectPrimitive.Value;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: any;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {
|
|
8
|
+
default: {};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export type SelectProps = typeof __propDef.props;
|
|
12
|
+
export type SelectEvents = typeof __propDef.events;
|
|
13
|
+
export type SelectSlots = typeof __propDef.slots;
|
|
14
|
+
export default class Select extends SvelteComponent<SelectProps, SelectEvents, SelectSlots> {
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -9,6 +9,7 @@ declare const __propDef: {
|
|
|
9
9
|
outTransition?: import("bits-ui/dist/internal").Transition | undefined;
|
|
10
10
|
outTransitionConfig?: any;
|
|
11
11
|
asChild?: boolean | undefined;
|
|
12
|
+
el?: HTMLDivElement | undefined;
|
|
12
13
|
} & import("bits-ui/dist/internal").HTMLDivAttributes & {
|
|
13
14
|
side?: Side;
|
|
14
15
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Toaster } from "./sonner.svelte";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Toaster } from "./sonner.svelte";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<script>import {
|
|
2
|
+
Toaster as Sonner
|
|
3
|
+
} from "svelte-sonner";
|
|
4
|
+
import { mode } from "mode-watcher";
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<Sonner
|
|
8
|
+
theme={$mode}
|
|
9
|
+
class="toaster group"
|
|
10
|
+
toastOptions={{
|
|
11
|
+
classes: {
|
|
12
|
+
toast: "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",
|
|
13
|
+
description: "group-[.toast]:text-muted-foreground",
|
|
14
|
+
actionButton:
|
|
15
|
+
"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",
|
|
16
|
+
cancelButton:
|
|
17
|
+
"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"
|
|
18
|
+
}
|
|
19
|
+
}}
|
|
20
|
+
{...$$restProps}
|
|
21
|
+
/>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import { type ToasterProps as SonnerProps } from "svelte-sonner";
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: SonnerProps;
|
|
5
|
+
events: {
|
|
6
|
+
[evt: string]: CustomEvent<any>;
|
|
7
|
+
};
|
|
8
|
+
slots: {};
|
|
9
|
+
};
|
|
10
|
+
type SonnerProps_ = typeof __propDef.props;
|
|
11
|
+
export { SonnerProps_ as SonnerProps };
|
|
12
|
+
export type SonnerEvents = typeof __propDef.events;
|
|
13
|
+
export type SonnerSlots = typeof __propDef.slots;
|
|
14
|
+
export default class Sonner extends SvelteComponent<SonnerProps, SonnerEvents, SonnerSlots> {
|
|
15
|
+
}
|
|
@@ -7,6 +7,7 @@ declare const __propDef: {
|
|
|
7
7
|
pressed?: boolean | undefined;
|
|
8
8
|
onPressedChange?: import("bits-ui/dist/internal").OnChangeFn<boolean> | undefined;
|
|
9
9
|
asChild?: boolean | undefined;
|
|
10
|
+
el?: HTMLButtonElement | undefined;
|
|
10
11
|
} & import("svelte/elements").HTMLButtonAttributes & {
|
|
11
12
|
variant?: Variant;
|
|
12
13
|
size?: Size;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kayord/ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.2.0",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -21,40 +21,44 @@
|
|
|
21
21
|
"svelte": "^4.0.0"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"bits-ui": "^0.
|
|
25
|
-
"clsx": "^2.
|
|
24
|
+
"bits-ui": "^0.13.0",
|
|
25
|
+
"clsx": "^2.1.0",
|
|
26
26
|
"cmdk-sv": "^0.0.12",
|
|
27
|
-
"formsnap": "^0.4.
|
|
28
|
-
"lucide-svelte": "^0.
|
|
27
|
+
"formsnap": "^0.4.2",
|
|
28
|
+
"lucide-svelte": "^0.303.0",
|
|
29
29
|
"mode-watcher": "^0.1.2",
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"tailwind-
|
|
30
|
+
"svelte-sonner": "^0.3.9",
|
|
31
|
+
"sveltekit-superforms": "^1.13.1",
|
|
32
|
+
"tailwind-merge": "^2.2.0",
|
|
33
|
+
"tailwind-variants": "^0.1.19",
|
|
34
|
+
"vaul-svelte": "^0.0.4",
|
|
33
35
|
"zod": "^3.22.4"
|
|
34
36
|
},
|
|
35
37
|
"devDependencies": {
|
|
36
38
|
"@playwright/test": "^1.40.1",
|
|
37
|
-
"@sveltejs/adapter-auto": "^
|
|
38
|
-
"@sveltejs/kit": "^
|
|
39
|
-
"@sveltejs/package": "^2.2.
|
|
40
|
-
"@
|
|
41
|
-
"@typescript-eslint/
|
|
39
|
+
"@sveltejs/adapter-auto": "^3.0.1",
|
|
40
|
+
"@sveltejs/kit": "^2.0.6",
|
|
41
|
+
"@sveltejs/package": "^2.2.5",
|
|
42
|
+
"@sveltejs/vite-plugin-svelte": "^3.0.0",
|
|
43
|
+
"@typescript-eslint/eslint-plugin": "^6.17.0",
|
|
44
|
+
"@typescript-eslint/parser": "^6.17.0",
|
|
42
45
|
"autoprefixer": "^10.4.16",
|
|
43
|
-
"eslint": "^8.
|
|
46
|
+
"eslint": "^8.56.0",
|
|
44
47
|
"eslint-config-prettier": "^9.1.0",
|
|
45
48
|
"eslint-plugin-svelte": "^2.35.1",
|
|
46
49
|
"postcss": "^8.4.32",
|
|
47
50
|
"postcss-load-config": "^5.0.2",
|
|
48
|
-
"prettier": "^3.1.
|
|
51
|
+
"prettier": "^3.1.1",
|
|
49
52
|
"prettier-plugin-svelte": "^3.1.2",
|
|
50
|
-
"publint": "^0.2.
|
|
53
|
+
"publint": "^0.2.7",
|
|
51
54
|
"svelte": "^4.2.8",
|
|
52
55
|
"svelte-check": "^3.6.2",
|
|
53
|
-
"
|
|
56
|
+
"svelte-headless-table": "^0.18.0",
|
|
57
|
+
"tailwindcss": "^3.4.0",
|
|
54
58
|
"tslib": "^2.6.2",
|
|
55
|
-
"typescript": "^5.3.
|
|
56
|
-
"vite": "^5.0.
|
|
57
|
-
"vitest": "^1.
|
|
59
|
+
"typescript": "^5.3.3",
|
|
60
|
+
"vite": "^5.0.10",
|
|
61
|
+
"vitest": "^1.1.1"
|
|
58
62
|
},
|
|
59
63
|
"svelte": "./dist/index.js",
|
|
60
64
|
"types": "./dist/index.d.ts",
|