@kayord/ui 0.13.0 → 0.13.2
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.d.ts +4 -4
- package/dist/components/custom/data-table/DataTableActions.svelte.d.ts +2 -2
- package/dist/components/custom/data-table/DataTableCheckbox.svelte.d.ts +4 -4
- package/dist/components/custom/data-table/DataTableHeader.svelte.d.ts +3 -3
- package/dist/components/custom/data-table/Pagination.svelte.d.ts +3 -3
- package/dist/components/custom/data-table/VisibilitySelect.svelte.d.ts +3 -3
- package/dist/components/custom/loader/Loader.svelte.d.ts +6 -6
- package/dist/components/custom/progress-loading/ProgressLoading.svelte.d.ts +3 -3
- package/dist/components/custom/theme-switch/ThemeSwitch.svelte.d.ts +2 -2
- package/dist/components/ui/badge/badge.svelte.d.ts +2 -2
- package/dist/components/ui/breadcrumb/breadcrumb-link.svelte.d.ts +3 -3
- package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte.d.ts +10 -10
- package/dist/components/ui/menubar/menubar-content.svelte.d.ts +10 -10
- package/package.json +16 -16
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
type
|
|
1
|
+
import { type ColumnDef, type Table as TableType } from "@tanstack/table-core";
|
|
2
|
+
import type { Snippet } from "svelte";
|
|
3
|
+
interface Props<T> {
|
|
2
4
|
table: TableType<T>;
|
|
3
5
|
columns: ColumnDef<T>[];
|
|
4
6
|
isLoading?: boolean;
|
|
@@ -14,9 +16,7 @@ type Props<T> = {
|
|
|
14
16
|
class?: string;
|
|
15
17
|
headerClass?: string;
|
|
16
18
|
disableUISorting?: boolean;
|
|
17
|
-
}
|
|
18
|
-
import { type ColumnDef, type Table as TableType } from "@tanstack/table-core";
|
|
19
|
-
import type { Snippet } from "svelte";
|
|
19
|
+
}
|
|
20
20
|
declare class __sveltets_Render<T> {
|
|
21
21
|
props(): Props<T>;
|
|
22
22
|
events(): {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { Checkbox } from "../../ui/checkbox";
|
|
2
|
+
import type { ComponentProps } from "svelte";
|
|
3
|
+
interface Props extends ComponentProps<typeof Checkbox> {
|
|
2
4
|
checked?: boolean;
|
|
3
5
|
indeterminate?: boolean;
|
|
4
6
|
class?: string;
|
|
5
|
-
}
|
|
6
|
-
import { Checkbox } from "../../ui/checkbox";
|
|
7
|
-
import type { ComponentProps } from "svelte";
|
|
7
|
+
}
|
|
8
8
|
declare const DataTableCheckbox: import("svelte").Component<Props, {}, "">;
|
|
9
9
|
type DataTableCheckbox = ReturnType<typeof DataTableCheckbox>;
|
|
10
10
|
export default DataTableCheckbox;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
type
|
|
1
|
+
import { type Header, type Table as TypeType } from "@tanstack/table-core";
|
|
2
|
+
interface Props<T> {
|
|
2
3
|
header: Header<T, unknown>;
|
|
3
4
|
table: TypeType<T>;
|
|
4
5
|
disableUISorting?: boolean;
|
|
5
|
-
}
|
|
6
|
-
import { type Header, type Table as TypeType } from "@tanstack/table-core";
|
|
6
|
+
}
|
|
7
7
|
declare class __sveltets_Render<T> {
|
|
8
8
|
props(): Props<T>;
|
|
9
9
|
events(): {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
type
|
|
1
|
+
import type { Table } from "@tanstack/table-core";
|
|
2
|
+
interface Props<T> {
|
|
2
3
|
table: Table<T>;
|
|
3
4
|
canChangePageSize?: boolean;
|
|
4
|
-
}
|
|
5
|
-
import type { Table } from "@tanstack/table-core";
|
|
5
|
+
}
|
|
6
6
|
declare class __sveltets_Render<T> {
|
|
7
7
|
props(): Props<T>;
|
|
8
8
|
events(): {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
type
|
|
1
|
+
import type { ComponentProps } from "svelte";
|
|
2
|
+
import { type Icon } from "lucide-svelte";
|
|
3
|
+
interface LoaderIconProps extends Omit<ComponentProps<Icon>, "iconNode"> {
|
|
2
4
|
isLoading?: boolean;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
+
}
|
|
6
|
+
interface Props {
|
|
5
7
|
class?: string | undefined | null;
|
|
6
8
|
isLoading?: boolean;
|
|
7
9
|
iconProps?: LoaderIconProps;
|
|
8
|
-
}
|
|
9
|
-
import type { ComponentProps } from "svelte";
|
|
10
|
-
import { type Icon } from "lucide-svelte";
|
|
10
|
+
}
|
|
11
11
|
declare const Loader: import("svelte").Component<Props, {
|
|
12
12
|
class: string | null | undefined;
|
|
13
13
|
}, "">;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
type
|
|
1
|
+
import { type ProgressRootProps } from "bits-ui";
|
|
2
|
+
interface Props {
|
|
2
3
|
class?: ProgressRootProps["class"];
|
|
3
4
|
[key: string]: any;
|
|
4
|
-
}
|
|
5
|
-
import { type ProgressRootProps } from "bits-ui";
|
|
5
|
+
}
|
|
6
6
|
declare const ProgressLoading: import("svelte").Component<Props, {}, "">;
|
|
7
7
|
type ProgressLoading = ReturnType<typeof ProgressLoading>;
|
|
8
8
|
export default ProgressLoading;
|
|
@@ -50,11 +50,11 @@ export declare const badgeVariants: import("tailwind-variants").TVReturnType<{
|
|
|
50
50
|
};
|
|
51
51
|
}>, unknown, unknown, undefined>>;
|
|
52
52
|
export type BadgeVariant = VariantProps<typeof badgeVariants>["variant"];
|
|
53
|
+
import type { WithElementRef } from "bits-ui";
|
|
54
|
+
import type { HTMLAnchorAttributes } from "svelte/elements";
|
|
53
55
|
type $$ComponentProps = WithElementRef<HTMLAnchorAttributes> & {
|
|
54
56
|
variant?: BadgeVariant;
|
|
55
57
|
};
|
|
56
|
-
import type { WithElementRef } from "bits-ui";
|
|
57
|
-
import type { HTMLAnchorAttributes } from "svelte/elements";
|
|
58
58
|
declare const Badge: import("svelte").Component<$$ComponentProps, {}, "ref">;
|
|
59
59
|
type Badge = ReturnType<typeof Badge>;
|
|
60
60
|
export default Badge;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import type { HTMLAnchorAttributes } from "svelte/elements";
|
|
2
|
+
import type { Snippet } from "svelte";
|
|
3
|
+
import type { WithElementRef } from "bits-ui";
|
|
1
4
|
type $$ComponentProps = WithElementRef<HTMLAnchorAttributes> & {
|
|
2
5
|
child?: Snippet<[{
|
|
3
6
|
props: HTMLAnchorAttributes;
|
|
4
7
|
}]>;
|
|
5
8
|
};
|
|
6
|
-
import type { HTMLAnchorAttributes } from "svelte/elements";
|
|
7
|
-
import type { Snippet } from "svelte";
|
|
8
|
-
import type { WithElementRef } from "bits-ui";
|
|
9
9
|
declare const BreadcrumbLink: import("svelte").Component<$$ComponentProps, {}, "ref">;
|
|
10
10
|
type BreadcrumbLink = ReturnType<typeof BreadcrumbLink>;
|
|
11
11
|
export default BreadcrumbLink;
|
|
@@ -16,15 +16,15 @@ declare const DropdownMenuContent: import("svelte").Component<{
|
|
|
16
16
|
align?: import("bits-ui/dist/bits/utilities/floating-layer/useFloatingLayer.svelte").Align | undefined;
|
|
17
17
|
side?: import("bits-ui/dist/bits/utilities/floating-layer/useFloatingLayer.svelte").Side | undefined;
|
|
18
18
|
sideOffset?: number | undefined;
|
|
19
|
-
alignOffset?: number | undefined;
|
|
19
|
+
alignOffset?: number | undefined | undefined;
|
|
20
20
|
arrowPadding?: number | undefined;
|
|
21
|
-
avoidCollisions?: boolean | undefined;
|
|
21
|
+
avoidCollisions?: boolean | undefined | undefined;
|
|
22
22
|
collisionBoundary?: import("bits-ui/dist/internal/types").Arrayable<import("bits-ui/dist/bits/utilities/floating-layer/useFloatingLayer.svelte").Boundary> | undefined;
|
|
23
23
|
collisionPadding?: (number | Partial<Record<import("bits-ui/dist/bits/utilities/floating-layer/useFloatingLayer.svelte").Side, number>>) | undefined;
|
|
24
|
-
sticky?:
|
|
24
|
+
sticky?: "partial" | "always" | undefined;
|
|
25
25
|
hideWhenDetached?: boolean | undefined;
|
|
26
|
-
updatePositionStrategy?:
|
|
27
|
-
strategy?: "absolute" | "fixed" | undefined;
|
|
26
|
+
updatePositionStrategy?: "optimized" | "always" | undefined;
|
|
27
|
+
strategy?: "absolute" | "fixed" | undefined | undefined;
|
|
28
28
|
customAnchor?: (string | HTMLElement | import("bits-ui/dist/internal/floating-svelte/types").Measurable | null) | undefined;
|
|
29
29
|
child?: import("svelte").Snippet<[import("bits-ui/dist/bits/menu/types").MenuContentSnippetProps & {
|
|
30
30
|
props: Record<string, unknown>;
|
|
@@ -49,15 +49,15 @@ declare const DropdownMenuContent: import("svelte").Component<{
|
|
|
49
49
|
align?: import("bits-ui/dist/bits/utilities/floating-layer/useFloatingLayer.svelte").Align | undefined;
|
|
50
50
|
side?: import("bits-ui/dist/bits/utilities/floating-layer/useFloatingLayer.svelte").Side | undefined;
|
|
51
51
|
sideOffset?: number | undefined;
|
|
52
|
-
alignOffset?: number | undefined;
|
|
52
|
+
alignOffset?: number | undefined | undefined;
|
|
53
53
|
arrowPadding?: number | undefined;
|
|
54
|
-
avoidCollisions?: boolean | undefined;
|
|
54
|
+
avoidCollisions?: boolean | undefined | undefined;
|
|
55
55
|
collisionBoundary?: import("bits-ui/dist/internal/types").Arrayable<import("bits-ui/dist/bits/utilities/floating-layer/useFloatingLayer.svelte").Boundary> | undefined;
|
|
56
56
|
collisionPadding?: (number | Partial<Record<import("bits-ui/dist/bits/utilities/floating-layer/useFloatingLayer.svelte").Side, number>>) | undefined;
|
|
57
|
-
sticky?:
|
|
57
|
+
sticky?: "partial" | "always" | undefined;
|
|
58
58
|
hideWhenDetached?: boolean | undefined;
|
|
59
|
-
updatePositionStrategy?:
|
|
60
|
-
strategy?: "absolute" | "fixed" | undefined;
|
|
59
|
+
updatePositionStrategy?: "optimized" | "always" | undefined;
|
|
60
|
+
strategy?: "absolute" | "fixed" | undefined | undefined;
|
|
61
61
|
customAnchor?: (string | HTMLElement | import("bits-ui/dist/internal/floating-svelte/types").Measurable | null) | undefined;
|
|
62
62
|
child?: import("svelte").Snippet<[import("bits-ui/dist/bits/menu/types").MenuContentSnippetProps & {
|
|
63
63
|
props: Record<string, unknown>;
|
|
@@ -16,15 +16,15 @@ declare const MenubarContent: import("svelte").Component<{
|
|
|
16
16
|
align?: import("bits-ui/dist/bits/utilities/floating-layer/useFloatingLayer.svelte").Align | undefined;
|
|
17
17
|
side?: import("bits-ui/dist/bits/utilities/floating-layer/useFloatingLayer.svelte").Side | undefined;
|
|
18
18
|
sideOffset?: number | undefined;
|
|
19
|
-
alignOffset?: number | undefined;
|
|
19
|
+
alignOffset?: number | undefined | undefined;
|
|
20
20
|
arrowPadding?: number | undefined;
|
|
21
|
-
avoidCollisions?: boolean | undefined;
|
|
21
|
+
avoidCollisions?: boolean | undefined | undefined;
|
|
22
22
|
collisionBoundary?: import("bits-ui/dist/internal/types").Arrayable<import("bits-ui/dist/bits/utilities/floating-layer/useFloatingLayer.svelte").Boundary> | undefined;
|
|
23
23
|
collisionPadding?: (number | Partial<Record<import("bits-ui/dist/bits/utilities/floating-layer/useFloatingLayer.svelte").Side, number>>) | undefined;
|
|
24
|
-
sticky?:
|
|
24
|
+
sticky?: "partial" | "always" | undefined;
|
|
25
25
|
hideWhenDetached?: boolean | undefined;
|
|
26
|
-
updatePositionStrategy?:
|
|
27
|
-
strategy?: "absolute" | "fixed" | undefined;
|
|
26
|
+
updatePositionStrategy?: "optimized" | "always" | undefined;
|
|
27
|
+
strategy?: "absolute" | "fixed" | undefined | undefined;
|
|
28
28
|
customAnchor?: (string | HTMLElement | import("bits-ui/dist/internal/floating-svelte/types").Measurable | null) | undefined;
|
|
29
29
|
child?: import("svelte").Snippet<[import("bits-ui/dist/bits/menu/types").MenuContentSnippetProps & {
|
|
30
30
|
props: Record<string, unknown>;
|
|
@@ -49,15 +49,15 @@ declare const MenubarContent: import("svelte").Component<{
|
|
|
49
49
|
align?: import("bits-ui/dist/bits/utilities/floating-layer/useFloatingLayer.svelte").Align | undefined;
|
|
50
50
|
side?: import("bits-ui/dist/bits/utilities/floating-layer/useFloatingLayer.svelte").Side | undefined;
|
|
51
51
|
sideOffset?: number | undefined;
|
|
52
|
-
alignOffset?: number | undefined;
|
|
52
|
+
alignOffset?: number | undefined | undefined;
|
|
53
53
|
arrowPadding?: number | undefined;
|
|
54
|
-
avoidCollisions?: boolean | undefined;
|
|
54
|
+
avoidCollisions?: boolean | undefined | undefined;
|
|
55
55
|
collisionBoundary?: import("bits-ui/dist/internal/types").Arrayable<import("bits-ui/dist/bits/utilities/floating-layer/useFloatingLayer.svelte").Boundary> | undefined;
|
|
56
56
|
collisionPadding?: (number | Partial<Record<import("bits-ui/dist/bits/utilities/floating-layer/useFloatingLayer.svelte").Side, number>>) | undefined;
|
|
57
|
-
sticky?:
|
|
57
|
+
sticky?: "partial" | "always" | undefined;
|
|
58
58
|
hideWhenDetached?: boolean | undefined;
|
|
59
|
-
updatePositionStrategy?:
|
|
60
|
-
strategy?: "absolute" | "fixed" | undefined;
|
|
59
|
+
updatePositionStrategy?: "optimized" | "always" | undefined;
|
|
60
|
+
strategy?: "absolute" | "fixed" | undefined | undefined;
|
|
61
61
|
customAnchor?: (string | HTMLElement | import("bits-ui/dist/internal/floating-svelte/types").Measurable | null) | undefined;
|
|
62
62
|
child?: import("svelte").Snippet<[import("bits-ui/dist/bits/menu/types").MenuContentSnippetProps & {
|
|
63
63
|
props: Record<string, unknown>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kayord/ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.13.
|
|
4
|
+
"version": "0.13.2",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -33,54 +33,54 @@
|
|
|
33
33
|
"zod": "^3.23.8"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@internationalized/date": "^3.
|
|
37
|
-
"bits-ui": "1.0.0-next.
|
|
36
|
+
"@internationalized/date": "^3.6.0",
|
|
37
|
+
"bits-ui": "1.0.0-next.64",
|
|
38
38
|
"clsx": "^2.1.1",
|
|
39
|
-
"embla-carousel-svelte": "8.
|
|
39
|
+
"embla-carousel-svelte": "8.5.1",
|
|
40
40
|
"formsnap": "2.0.0-next.1",
|
|
41
41
|
"mode-watcher": "^0.5.0",
|
|
42
42
|
"paneforge": "1.0.0-next.1",
|
|
43
43
|
"svelte-sonner": "^0.3.28",
|
|
44
|
-
"tailwind-merge": "^2.5.
|
|
44
|
+
"tailwind-merge": "^2.5.5",
|
|
45
45
|
"tailwind-variants": "^0.3.0",
|
|
46
46
|
"vaul-svelte": "1.0.0-next.3"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@kayord/tw-plugin": "^1.0.3",
|
|
50
50
|
"@sveltejs/adapter-auto": "^3.3.1",
|
|
51
|
-
"@sveltejs/kit": "^2.8.
|
|
51
|
+
"@sveltejs/kit": "^2.8.4",
|
|
52
52
|
"@sveltejs/package": "^2.3.7",
|
|
53
53
|
"@sveltejs/vite-plugin-svelte": "^4.0.1",
|
|
54
54
|
"@testing-library/jest-dom": "^6.6.3",
|
|
55
55
|
"@testing-library/svelte": "^5.2.6",
|
|
56
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
57
|
-
"@typescript-eslint/parser": "^8.
|
|
56
|
+
"@typescript-eslint/eslint-plugin": "^8.16.0",
|
|
57
|
+
"@typescript-eslint/parser": "^8.16.0",
|
|
58
58
|
"autoprefixer": "^10.4.20",
|
|
59
59
|
"eslint": "^9.15.0",
|
|
60
60
|
"eslint-config-prettier": "^9.1.0",
|
|
61
61
|
"eslint-plugin-svelte": "^2.46.0",
|
|
62
62
|
"happy-dom": "^15.11.6",
|
|
63
|
-
"lucide-svelte": "^0.
|
|
63
|
+
"lucide-svelte": "^0.461.0",
|
|
64
64
|
"postcss": "^8.4.49",
|
|
65
|
-
"prettier": "^3.
|
|
66
|
-
"prettier-plugin-svelte": "^3.2
|
|
65
|
+
"prettier": "^3.4.1",
|
|
66
|
+
"prettier-plugin-svelte": "^3.3.2",
|
|
67
67
|
"prettier-plugin-tailwindcss": "^0.6.9",
|
|
68
68
|
"publint": "^0.2.12",
|
|
69
|
-
"svelte": "^5.2.
|
|
70
|
-
"svelte-check": "^4.0
|
|
69
|
+
"svelte": "^5.2.8",
|
|
70
|
+
"svelte-check": "^4.1.0",
|
|
71
71
|
"tailwindcss": "^3.4.15",
|
|
72
72
|
"tailwindcss-animate": "^1.0.7",
|
|
73
73
|
"tslib": "^2.8.1",
|
|
74
|
-
"typescript": "^5.
|
|
74
|
+
"typescript": "^5.7.2",
|
|
75
75
|
"vite": "^5.4.11",
|
|
76
|
-
"vitest": "^2.1.
|
|
76
|
+
"vitest": "^2.1.6",
|
|
77
77
|
"zod": "^3.23.8"
|
|
78
78
|
},
|
|
79
79
|
"svelte": "./dist/index.js",
|
|
80
80
|
"types": "./dist/index.d.ts",
|
|
81
81
|
"main": "./dist/index.js",
|
|
82
82
|
"type": "module",
|
|
83
|
-
"packageManager": "pnpm@9.14.
|
|
83
|
+
"packageManager": "pnpm@9.14.2+sha512.6e2baf77d06b9362294152c851c4f278ede37ab1eba3a55fda317a4a17b209f4dbb973fb250a77abc463a341fcb1f17f17cfa24091c4eb319cda0d9b84278387",
|
|
84
84
|
"scripts": {
|
|
85
85
|
"dev": "vite dev",
|
|
86
86
|
"build": "vite build && npm run package",
|