@kayord/ui 0.0.23 → 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/alert-dialog/alert-dialog-overlay.svelte.d.ts +1 -1
- package/dist/components/ui/command/command-dialog.svelte.d.ts +38 -0
- package/dist/components/ui/command/command-input.svelte +2 -0
- package/dist/components/ui/context-menu/context-menu-item.svelte.d.ts +1 -4
- 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-content.svelte +2 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte.d.ts +2 -6
- package/dist/components/ui/dropdown-menu/dropdown-menu-label.svelte.d.ts +1 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-group.svelte.d.ts +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte.d.ts +2 -2
- package/dist/components/ui/dropdown-menu/dropdown-menu-separator.svelte.d.ts +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte.d.ts +2 -2
- 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 +2 -1
- 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/hover-card/hover-card-content.svelte +4 -0
- package/dist/components/ui/index.d.ts +23 -20
- package/dist/components/ui/index.js +23 -20
- package/dist/components/ui/menubar/menubar-content.svelte +7 -1
- package/dist/components/ui/menubar/menubar-item.svelte.d.ts +1 -4
- package/dist/components/ui/menubar/menubar-label.svelte.d.ts +1 -0
- package/dist/components/ui/menubar/menubar-sub-content.svelte.d.ts +1 -1
- package/dist/components/ui/menubar/menubar-sub-trigger.svelte.d.ts +3 -8
- 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-content.svelte +2 -0
- 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/table/table-cell.svelte +2 -0
- package/dist/components/ui/table/table-cell.svelte.d.ts +3 -0
- package/dist/components/ui/table/table-header.svelte +7 -1
- package/dist/components/ui/table/table-header.svelte.d.ts +3 -0
- package/dist/components/ui/table/table-row.svelte +2 -0
- package/dist/components/ui/table/table-row.svelte.d.ts +3 -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 -1
- package/dist/components/ui/toggle-group/toggle-group.svelte +1 -2
- package/package.json +30 -26
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
<script>import { Menubar as MenubarPrimitive } from "bits-ui";
|
|
2
2
|
import { cn, flyAndScale } from "../../../utils";
|
|
3
3
|
let className = void 0;
|
|
4
|
-
export let sideOffset =
|
|
4
|
+
export let sideOffset = 8;
|
|
5
|
+
export let alignOffset = -4;
|
|
6
|
+
export let align = "start";
|
|
7
|
+
export let side = "bottom";
|
|
5
8
|
export let transition = flyAndScale;
|
|
6
9
|
export let transitionConfig = void 0;
|
|
7
10
|
export { className as class };
|
|
@@ -11,6 +14,9 @@ export { className as class };
|
|
|
11
14
|
{transition}
|
|
12
15
|
{transitionConfig}
|
|
13
16
|
{sideOffset}
|
|
17
|
+
{align}
|
|
18
|
+
{alignOffset}
|
|
19
|
+
{side}
|
|
14
20
|
class={cn(
|
|
15
21
|
"z-50 min-w-[12rem] rounded-md border bg-popover p-1 text-popover-foreground shadow-md focus:outline-none",
|
|
16
22
|
className
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
2
|
import { Menubar as MenubarPrimitive } from "bits-ui";
|
|
3
3
|
declare const __propDef: {
|
|
4
|
-
props: {
|
|
5
|
-
disabled?: boolean | undefined;
|
|
6
|
-
asChild?: boolean | undefined;
|
|
7
|
-
} & import("bits-ui/dist/internal").HTMLDivAttributes & {
|
|
4
|
+
props: MenubarPrimitive.ItemProps & {
|
|
8
5
|
inset?: boolean | undefined;
|
|
9
6
|
};
|
|
10
7
|
slots: {
|
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
+
import { Menubar as MenubarPrimitive } from "bits-ui";
|
|
2
3
|
declare const __propDef: {
|
|
3
4
|
props: {
|
|
4
5
|
disabled?: boolean | undefined;
|
|
5
6
|
asChild?: boolean | undefined;
|
|
7
|
+
el?: HTMLDivElement | undefined;
|
|
6
8
|
} & import("bits-ui/dist/internal").HTMLDivAttributes & {
|
|
7
9
|
inset?: boolean | undefined;
|
|
8
10
|
};
|
|
9
11
|
slots: {
|
|
10
12
|
default: {};
|
|
11
13
|
};
|
|
12
|
-
events:
|
|
13
|
-
click: import("bits-ui").CustomEventHandler<PointerEvent, HTMLDivElement>;
|
|
14
|
-
keydown: import("bits-ui").CustomEventHandler<KeyboardEvent, HTMLDivElement>;
|
|
15
|
-
focusin: import("bits-ui").CustomEventHandler<FocusEvent, HTMLDivElement>;
|
|
16
|
-
focusout: import("bits-ui").CustomEventHandler<FocusEvent, HTMLDivElement>;
|
|
17
|
-
pointerleave: import("bits-ui").CustomEventHandler<PointerEvent, HTMLDivElement>;
|
|
18
|
-
pointermove: import("bits-ui").CustomEventHandler<PointerEvent, HTMLDivElement>;
|
|
19
|
-
};
|
|
14
|
+
events: MenubarPrimitive.SubTriggerEvents;
|
|
20
15
|
};
|
|
21
16
|
export type MenubarSubTriggerProps = typeof __propDef.props;
|
|
22
17
|
export type MenubarSubTriggerEvents = typeof __propDef.events;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import Root from "./pagination.svelte";
|
|
2
|
+
import Content from "./pagination-content.svelte";
|
|
3
|
+
import Item from "./pagination-item.svelte";
|
|
4
|
+
import Link from "./pagination-link.svelte";
|
|
5
|
+
import PrevButton from "./pagination-prev-button.svelte";
|
|
6
|
+
import NextButton from "./pagination-next-button.svelte";
|
|
7
|
+
import Ellipsis from "./pagination-ellipsis.svelte";
|
|
8
|
+
export { Root, Content, Item, Link, PrevButton, NextButton, Ellipsis, Root as Pagination, Content as PaginationContent, Item as PaginationItem, Link as PaginationLink, PrevButton as PaginationPrevButton, NextButton as PaginationNextButton, Ellipsis as PaginationEllipsis };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Root from "./pagination.svelte";
|
|
2
|
+
import Content from "./pagination-content.svelte";
|
|
3
|
+
import Item from "./pagination-item.svelte";
|
|
4
|
+
import Link from "./pagination-link.svelte";
|
|
5
|
+
import PrevButton from "./pagination-prev-button.svelte";
|
|
6
|
+
import NextButton from "./pagination-next-button.svelte";
|
|
7
|
+
import Ellipsis from "./pagination-ellipsis.svelte";
|
|
8
|
+
export { Root, Content, Item, Link, PrevButton, NextButton, Ellipsis,
|
|
9
|
+
//
|
|
10
|
+
Root as Pagination, Content as PaginationContent, Item as PaginationItem, Link as PaginationLink, PrevButton as PaginationPrevButton, NextButton as PaginationNextButton, Ellipsis as PaginationEllipsis };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import type { HTMLAttributes } from "svelte/elements";
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: HTMLAttributes<HTMLUListElement>;
|
|
5
|
+
events: {
|
|
6
|
+
[evt: string]: CustomEvent<any>;
|
|
7
|
+
};
|
|
8
|
+
slots: {
|
|
9
|
+
default: {};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export type PaginationContentProps = typeof __propDef.props;
|
|
13
|
+
export type PaginationContentEvents = typeof __propDef.events;
|
|
14
|
+
export type PaginationContentSlots = typeof __propDef.slots;
|
|
15
|
+
export default class PaginationContent extends SvelteComponent<PaginationContentProps, PaginationContentEvents, PaginationContentSlots> {
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<script>import { cn } from "../../../utils";
|
|
2
|
+
import { MoreHorizontal } from "lucide-svelte";
|
|
3
|
+
let className = void 0;
|
|
4
|
+
export { className as class };
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<span
|
|
8
|
+
aria-hidden
|
|
9
|
+
class={cn("flex h-9 w-9 items-center justify-center", className)}
|
|
10
|
+
{...$$restProps}
|
|
11
|
+
>
|
|
12
|
+
<MoreHorizontal class="h-4 w-4" />
|
|
13
|
+
<span class="sr-only">More pages</span>
|
|
14
|
+
</span>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import type { HTMLAttributes } from "svelte/elements";
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: HTMLAttributes<HTMLSpanElement>;
|
|
5
|
+
events: {
|
|
6
|
+
[evt: string]: CustomEvent<any>;
|
|
7
|
+
};
|
|
8
|
+
slots: {};
|
|
9
|
+
};
|
|
10
|
+
export type PaginationEllipsisProps = typeof __propDef.props;
|
|
11
|
+
export type PaginationEllipsisEvents = typeof __propDef.events;
|
|
12
|
+
export type PaginationEllipsisSlots = typeof __propDef.slots;
|
|
13
|
+
export default class PaginationEllipsis extends SvelteComponent<PaginationEllipsisProps, PaginationEllipsisEvents, PaginationEllipsisSlots> {
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import type { HTMLAttributes } from "svelte/elements";
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: HTMLAttributes<HTMLLIElement>;
|
|
5
|
+
events: {
|
|
6
|
+
[evt: string]: CustomEvent<any>;
|
|
7
|
+
};
|
|
8
|
+
slots: {
|
|
9
|
+
default: {};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export type PaginationItemProps = typeof __propDef.props;
|
|
13
|
+
export type PaginationItemEvents = typeof __propDef.events;
|
|
14
|
+
export type PaginationItemSlots = typeof __propDef.slots;
|
|
15
|
+
export default class PaginationItem extends SvelteComponent<PaginationItemProps, PaginationItemEvents, PaginationItemSlots> {
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<script>import { Pagination as PaginationPrimitive } from "bits-ui";
|
|
2
|
+
import { cn } from "../../../utils";
|
|
3
|
+
import { buttonVariants } from "../button";
|
|
4
|
+
let className = void 0;
|
|
5
|
+
export let page;
|
|
6
|
+
export let size = "icon";
|
|
7
|
+
export let isActive = false;
|
|
8
|
+
export { className as class };
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<PaginationPrimitive.Page
|
|
12
|
+
bind:page
|
|
13
|
+
class={cn(
|
|
14
|
+
buttonVariants({
|
|
15
|
+
variant: isActive ? "outline" : "ghost",
|
|
16
|
+
size
|
|
17
|
+
}),
|
|
18
|
+
className
|
|
19
|
+
)}
|
|
20
|
+
{...$$restProps}
|
|
21
|
+
on:click
|
|
22
|
+
>
|
|
23
|
+
<slot>{page.value}</slot>
|
|
24
|
+
</PaginationPrimitive.Page>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import { type Props } from "../button";
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: {
|
|
5
|
+
page: import("bits-ui").Page;
|
|
6
|
+
} & {
|
|
7
|
+
asChild?: boolean | undefined;
|
|
8
|
+
el?: HTMLButtonElement | undefined;
|
|
9
|
+
} & import("svelte/elements").HTMLButtonAttributes & Props & {
|
|
10
|
+
isActive: boolean;
|
|
11
|
+
};
|
|
12
|
+
slots: {
|
|
13
|
+
default: {};
|
|
14
|
+
};
|
|
15
|
+
events: {
|
|
16
|
+
click: import("bits-ui").CustomEventHandler<MouseEvent, HTMLDivElement>;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export type PaginationLinkProps = typeof __propDef.props;
|
|
20
|
+
export type PaginationLinkEvents = typeof __propDef.events;
|
|
21
|
+
export type PaginationLinkSlots = typeof __propDef.slots;
|
|
22
|
+
export default class PaginationLink extends SvelteComponent<PaginationLinkProps, PaginationLinkEvents, PaginationLinkSlots> {
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<script>import { Pagination as PaginationPrimitive } from "bits-ui";
|
|
2
|
+
import { Button } from "../button";
|
|
3
|
+
import { cn } from "../../../utils";
|
|
4
|
+
import { ChevronRight } from "lucide-svelte";
|
|
5
|
+
let className = void 0;
|
|
6
|
+
export { className as class };
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<PaginationPrimitive.NextButton asChild let:builder>
|
|
10
|
+
<Button
|
|
11
|
+
variant="ghost"
|
|
12
|
+
class={cn("gap-1 pl-2.5", className)}
|
|
13
|
+
builders={[builder]}
|
|
14
|
+
on:click
|
|
15
|
+
{...$$restProps}
|
|
16
|
+
>
|
|
17
|
+
<span>Next</span>
|
|
18
|
+
<ChevronRight class="h-4 w-4" />
|
|
19
|
+
</Button>
|
|
20
|
+
</PaginationPrimitive.NextButton>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import { Pagination as PaginationPrimitive } from "bits-ui";
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: PaginationPrimitive.NextButtonProps;
|
|
5
|
+
slots: {};
|
|
6
|
+
events: {
|
|
7
|
+
click: import("bits-ui").CustomEventHandler<MouseEvent, HTMLDivElement>;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export type PaginationNextButtonProps = typeof __propDef.props;
|
|
11
|
+
export type PaginationNextButtonEvents = typeof __propDef.events;
|
|
12
|
+
export type PaginationNextButtonSlots = typeof __propDef.slots;
|
|
13
|
+
export default class PaginationNextButton extends SvelteComponent<PaginationNextButtonProps, PaginationNextButtonEvents, PaginationNextButtonSlots> {
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<script>import { Pagination as PaginationPrimitive } from "bits-ui";
|
|
2
|
+
import { Button } from "../button";
|
|
3
|
+
import { cn } from "../../../utils";
|
|
4
|
+
import { ChevronLeft } from "lucide-svelte";
|
|
5
|
+
let className = void 0;
|
|
6
|
+
export { className as class };
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<PaginationPrimitive.PrevButton asChild let:builder>
|
|
10
|
+
<Button
|
|
11
|
+
variant="ghost"
|
|
12
|
+
class={cn("gap-1 pl-2.5", className)}
|
|
13
|
+
builders={[builder]}
|
|
14
|
+
on:click
|
|
15
|
+
{...$$restProps}
|
|
16
|
+
>
|
|
17
|
+
<ChevronLeft class="h-4 w-4" />
|
|
18
|
+
<span>Previous</span>
|
|
19
|
+
</Button>
|
|
20
|
+
</PaginationPrimitive.PrevButton>
|
|
@@ -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;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script>import { Select as SelectPrimitive } from "bits-ui";
|
|
2
2
|
import { cn, flyAndScale } from "../../../utils";
|
|
3
3
|
import { scale } from "svelte/transition";
|
|
4
|
+
export let sideOffset = 4;
|
|
4
5
|
export let inTransition = flyAndScale;
|
|
5
6
|
export let inTransitionConfig = void 0;
|
|
6
7
|
export let outTransition = scale;
|
|
@@ -18,6 +19,7 @@ export { className as class };
|
|
|
18
19
|
{inTransitionConfig}
|
|
19
20
|
{outTransition}
|
|
20
21
|
{outTransitionConfig}
|
|
22
|
+
{sideOffset}
|
|
21
23
|
class={cn(
|
|
22
24
|
"relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md outline-none",
|
|
23
25
|
className
|
|
@@ -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
|
+
}
|
|
@@ -3,6 +3,12 @@ let className = void 0;
|
|
|
3
3
|
export { className as class };
|
|
4
4
|
</script>
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
|
|
7
|
+
<thead
|
|
8
|
+
class={cn("[&_tr]:border-b", className)}
|
|
9
|
+
{...$$restProps}
|
|
10
|
+
on:click
|
|
11
|
+
on:keydown
|
|
12
|
+
>
|
|
7
13
|
<slot />
|
|
8
14
|
</thead>
|
|
@@ -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;
|
|
@@ -4,8 +4,8 @@ declare const __propDef: {
|
|
|
4
4
|
props: {
|
|
5
5
|
value: string;
|
|
6
6
|
disabled?: boolean | undefined;
|
|
7
|
-
} & {
|
|
8
7
|
asChild?: boolean | undefined;
|
|
8
|
+
el?: HTMLButtonElement | undefined;
|
|
9
9
|
} & import("svelte/elements").HTMLButtonAttributes & ToggleVariants;
|
|
10
10
|
events: {
|
|
11
11
|
[evt: string]: CustomEvent<any>;
|