@kayord/ui 0.3.4 → 0.3.6
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 +14 -4
- package/dist/components/ui/carousel/carousel-content.svelte +16 -0
- package/dist/components/ui/carousel/carousel-content.svelte.d.ts +17 -0
- package/dist/components/ui/carousel/carousel-item.svelte +20 -0
- package/dist/components/ui/carousel/carousel-item.svelte.d.ts +17 -0
- package/dist/components/ui/carousel/carousel-next.svelte +29 -0
- package/dist/components/ui/carousel/carousel-next.svelte.d.ts +15 -0
- package/dist/components/ui/carousel/carousel-previous.svelte +29 -0
- package/dist/components/ui/carousel/carousel-previous.svelte.d.ts +15 -0
- package/dist/components/ui/carousel/carousel.svelte +83 -0
- package/dist/components/ui/carousel/carousel.svelte.d.ts +20 -0
- package/dist/components/ui/carousel/context.d.ts +27 -0
- package/dist/components/ui/carousel/context.js +12 -0
- package/dist/components/ui/carousel/index.d.ts +5 -0
- package/dist/components/ui/carousel/index.js +5 -0
- package/dist/components/ui/form/form-select.svelte.d.ts +1 -1
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.js +1 -0
- package/package.json +21 -20
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<script>import { ArrowDown, ArrowUp } from "lucide-svelte";
|
|
2
|
+
import { fade } from "svelte/transition";
|
|
2
3
|
import { Button, ProgressLoading, Skeleton } from "../../..";
|
|
3
4
|
import { Subscribe, Render } from "svelte-headless-table";
|
|
4
5
|
import * as Table from "../../ui/table";
|
|
@@ -19,6 +20,13 @@ const pageSize = isPagingEnabled ? pluginStates.page.pageSize : void 0;
|
|
|
19
20
|
|
|
20
21
|
<div class="w-full">
|
|
21
22
|
<div class="rounded-md border m-2">
|
|
23
|
+
{#if isLoading}
|
|
24
|
+
<span in:fade={{ duration: 300 }}>
|
|
25
|
+
<ProgressLoading class="h-1" />
|
|
26
|
+
</span>
|
|
27
|
+
{:else}
|
|
28
|
+
<div class="h-1"></div>
|
|
29
|
+
{/if}
|
|
22
30
|
{#if $$slots.header || title.length > 0}
|
|
23
31
|
<div class="rounded-t-md overflow-hidden">
|
|
24
32
|
{#if $$slots.header}
|
|
@@ -33,9 +41,6 @@ const pageSize = isPagingEnabled ? pluginStates.page.pageSize : void 0;
|
|
|
33
41
|
{#if $$slots.subHeader}
|
|
34
42
|
<slot name="subHeader" />
|
|
35
43
|
{/if}
|
|
36
|
-
{#if isLoading}
|
|
37
|
-
<ProgressLoading class="h-1" />
|
|
38
|
-
{/if}
|
|
39
44
|
<Table.Root {...$tableAttrs} class="table-auto">
|
|
40
45
|
{#if !hideHeader}
|
|
41
46
|
<Table.Header>
|
|
@@ -68,7 +73,7 @@ const pageSize = isPagingEnabled ? pluginStates.page.pageSize : void 0;
|
|
|
68
73
|
</Table.Header>
|
|
69
74
|
{/if}
|
|
70
75
|
<Table.Body {...$tableBodyAttrs}>
|
|
71
|
-
{#if isLoading}
|
|
76
|
+
{#if isLoading && $rows.length == 0}
|
|
72
77
|
{#each { length: 5 } as _, i}
|
|
73
78
|
<Table.Row>
|
|
74
79
|
{#each flatColumns as cell}
|
|
@@ -102,6 +107,11 @@ const pageSize = isPagingEnabled ? pluginStates.page.pageSize : void 0;
|
|
|
102
107
|
{/if}
|
|
103
108
|
</Table.Body>
|
|
104
109
|
</Table.Root>
|
|
110
|
+
{#if isLoading}
|
|
111
|
+
<span in:fade={{ duration: 300 }}>
|
|
112
|
+
<ProgressLoading class="h-1" />
|
|
113
|
+
</span>
|
|
114
|
+
{/if}
|
|
105
115
|
</div>
|
|
106
116
|
{#if isPagingEnabled}
|
|
107
117
|
<Pagination.Root count={serverItemCount ?? $rows.length} perPage={$pageSize} let:pages let:currentPage>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<script>import { cn } from "../../../utils.js";
|
|
2
|
+
import { getEmblaContext } from "./context.js";
|
|
3
|
+
let className = void 0;
|
|
4
|
+
export { className as class };
|
|
5
|
+
const { orientation } = getEmblaContext("<Carousel.Content/>");
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<div class="overflow-hidden">
|
|
9
|
+
<div
|
|
10
|
+
class={cn("flex", $orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col", className)}
|
|
11
|
+
data-embla-container=""
|
|
12
|
+
{...$$restProps}
|
|
13
|
+
>
|
|
14
|
+
<slot />
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import type { HTMLAttributes } from "svelte/elements";
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: HTMLAttributes<HTMLDivElement>;
|
|
5
|
+
events: {
|
|
6
|
+
[evt: string]: CustomEvent<any>;
|
|
7
|
+
};
|
|
8
|
+
slots: {
|
|
9
|
+
default: {};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export type CarouselContentProps = typeof __propDef.props;
|
|
13
|
+
export type CarouselContentEvents = typeof __propDef.events;
|
|
14
|
+
export type CarouselContentSlots = typeof __propDef.slots;
|
|
15
|
+
export default class CarouselContent extends SvelteComponent<CarouselContentProps, CarouselContentEvents, CarouselContentSlots> {
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<script>import { cn } from "../../../utils";
|
|
2
|
+
import { getEmblaContext } from "./context.js";
|
|
3
|
+
let className = void 0;
|
|
4
|
+
export { className as class };
|
|
5
|
+
const { orientation } = getEmblaContext("<Carousel.Item/>");
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<div
|
|
9
|
+
role="group"
|
|
10
|
+
aria-roledescription="slide"
|
|
11
|
+
class={cn(
|
|
12
|
+
"min-w-0 shrink-0 grow-0 basis-full",
|
|
13
|
+
$orientation === "horizontal" ? "pl-4" : "pt-4",
|
|
14
|
+
className
|
|
15
|
+
)}
|
|
16
|
+
data-embla-slide=""
|
|
17
|
+
{...$$restProps}
|
|
18
|
+
>
|
|
19
|
+
<slot />
|
|
20
|
+
</div>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import type { HTMLAttributes } from "svelte/elements";
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: HTMLAttributes<HTMLDivElement>;
|
|
5
|
+
events: {
|
|
6
|
+
[evt: string]: CustomEvent<any>;
|
|
7
|
+
};
|
|
8
|
+
slots: {
|
|
9
|
+
default: {};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export type CarouselItemProps = typeof __propDef.props;
|
|
13
|
+
export type CarouselItemEvents = typeof __propDef.events;
|
|
14
|
+
export type CarouselItemSlots = typeof __propDef.slots;
|
|
15
|
+
export default class CarouselItem extends SvelteComponent<CarouselItemProps, CarouselItemEvents, CarouselItemSlots> {
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<script>import { Button, buttonVariants } from "../button/index.js";
|
|
2
|
+
import { cn } from "../../../utils";
|
|
3
|
+
import { ArrowRight } from "lucide-svelte";
|
|
4
|
+
import { getEmblaContext } from "./context.js";
|
|
5
|
+
let className = void 0;
|
|
6
|
+
export { className as class };
|
|
7
|
+
export let variant = "outline";
|
|
8
|
+
export let size = "icon";
|
|
9
|
+
const { orientation, canScrollNext, scrollNext, handleKeyDown } = getEmblaContext("<Carousel.Next/>");
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<Button
|
|
13
|
+
{variant}
|
|
14
|
+
{size}
|
|
15
|
+
class={cn(
|
|
16
|
+
"absolute h-8 w-8 rounded-full touch-manipulation",
|
|
17
|
+
$orientation === "horizontal"
|
|
18
|
+
? "-right-12 top-1/2 -translate-y-1/2"
|
|
19
|
+
: "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
20
|
+
className
|
|
21
|
+
)}
|
|
22
|
+
disabled={!$canScrollNext}
|
|
23
|
+
on:click={scrollNext}
|
|
24
|
+
on:keydown={handleKeyDown}
|
|
25
|
+
{...$$restProps}
|
|
26
|
+
>
|
|
27
|
+
<ArrowRight class="h-4 w-4" />
|
|
28
|
+
<span class="sr-only">Next slide</span>
|
|
29
|
+
</Button>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import { type Props } from "../button/index.js";
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: Props;
|
|
5
|
+
events: {
|
|
6
|
+
[evt: string]: CustomEvent<any>;
|
|
7
|
+
};
|
|
8
|
+
slots: {};
|
|
9
|
+
};
|
|
10
|
+
export type CarouselNextProps = typeof __propDef.props;
|
|
11
|
+
export type CarouselNextEvents = typeof __propDef.events;
|
|
12
|
+
export type CarouselNextSlots = typeof __propDef.slots;
|
|
13
|
+
export default class CarouselNext extends SvelteComponent<CarouselNextProps, CarouselNextEvents, CarouselNextSlots> {
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<script>import { Button, buttonVariants } from "../button/index.js";
|
|
2
|
+
import { cn } from "../../../utils.js";
|
|
3
|
+
import { ArrowLeft } from "lucide-svelte";
|
|
4
|
+
import { getEmblaContext } from "./context.js";
|
|
5
|
+
let className = void 0;
|
|
6
|
+
export { className as class };
|
|
7
|
+
export let variant = "outline";
|
|
8
|
+
export let size = "icon";
|
|
9
|
+
const { orientation, canScrollPrev, scrollPrev, handleKeyDown } = getEmblaContext("<Carousel.Previous/>");
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<Button
|
|
13
|
+
{variant}
|
|
14
|
+
{size}
|
|
15
|
+
class={cn(
|
|
16
|
+
"absolute h-8 w-8 rounded-full touch-manipulation",
|
|
17
|
+
$orientation === "horizontal"
|
|
18
|
+
? "-left-12 top-1/2 -translate-y-1/2"
|
|
19
|
+
: "-top-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
20
|
+
className
|
|
21
|
+
)}
|
|
22
|
+
disabled={!$canScrollPrev}
|
|
23
|
+
on:click={scrollPrev}
|
|
24
|
+
on:keydown={handleKeyDown}
|
|
25
|
+
{...$$restProps}
|
|
26
|
+
>
|
|
27
|
+
<ArrowLeft class="h-4 w-4" />
|
|
28
|
+
<span class="sr-only">Previous slide</span>
|
|
29
|
+
</Button>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import { type Props } from "../button/index.js";
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: Props;
|
|
5
|
+
events: {
|
|
6
|
+
[evt: string]: CustomEvent<any>;
|
|
7
|
+
};
|
|
8
|
+
slots: {};
|
|
9
|
+
};
|
|
10
|
+
export type CarouselPreviousProps = typeof __propDef.props;
|
|
11
|
+
export type CarouselPreviousEvents = typeof __propDef.events;
|
|
12
|
+
export type CarouselPreviousSlots = typeof __propDef.slots;
|
|
13
|
+
export default class CarouselPrevious extends SvelteComponent<CarouselPreviousProps, CarouselPreviousEvents, CarouselPreviousSlots> {
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
<script>import emblaCarouselSvelte from "embla-carousel-svelte";
|
|
2
|
+
import { setEmblaContex } from "./context.js";
|
|
3
|
+
import { cn } from "../../../utils.js";
|
|
4
|
+
import { writable } from "svelte/store";
|
|
5
|
+
import { onDestroy } from "svelte";
|
|
6
|
+
export let opts = {};
|
|
7
|
+
export let plugins = [];
|
|
8
|
+
export let api = void 0;
|
|
9
|
+
export let orientation = "horizontal";
|
|
10
|
+
let className = void 0;
|
|
11
|
+
export { className as class };
|
|
12
|
+
const apiStore = writable(void 0);
|
|
13
|
+
const orientationStore = writable(orientation);
|
|
14
|
+
const canScrollPrev = writable(false);
|
|
15
|
+
const canScrollNext = writable(false);
|
|
16
|
+
$:
|
|
17
|
+
orientationStore.set(orientation);
|
|
18
|
+
function scrollPrev() {
|
|
19
|
+
api?.scrollPrev();
|
|
20
|
+
}
|
|
21
|
+
function scrollNext() {
|
|
22
|
+
api?.scrollNext();
|
|
23
|
+
}
|
|
24
|
+
function onSelect(api2) {
|
|
25
|
+
if (!api2)
|
|
26
|
+
return;
|
|
27
|
+
canScrollPrev.set(api2.canScrollPrev());
|
|
28
|
+
canScrollNext.set(api2.canScrollNext());
|
|
29
|
+
}
|
|
30
|
+
$:
|
|
31
|
+
if (api) {
|
|
32
|
+
onSelect(api);
|
|
33
|
+
api.on("select", onSelect);
|
|
34
|
+
api.on("reInit", onSelect);
|
|
35
|
+
}
|
|
36
|
+
function handleKeyDown(e) {
|
|
37
|
+
if (e.key === "ArrowLeft") {
|
|
38
|
+
e.preventDefault();
|
|
39
|
+
scrollPrev();
|
|
40
|
+
} else if (e.key === "ArrowRight") {
|
|
41
|
+
e.preventDefault();
|
|
42
|
+
scrollNext();
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
setEmblaContex({
|
|
46
|
+
api: apiStore,
|
|
47
|
+
scrollPrev,
|
|
48
|
+
scrollNext,
|
|
49
|
+
orientation: orientationStore,
|
|
50
|
+
canScrollNext,
|
|
51
|
+
canScrollPrev,
|
|
52
|
+
handleKeyDown
|
|
53
|
+
});
|
|
54
|
+
function onInit(event) {
|
|
55
|
+
api = event.detail;
|
|
56
|
+
console.log(api.slideNodes());
|
|
57
|
+
apiStore.set(api);
|
|
58
|
+
}
|
|
59
|
+
onDestroy(() => {
|
|
60
|
+
api?.off("select", onSelect);
|
|
61
|
+
});
|
|
62
|
+
</script>
|
|
63
|
+
|
|
64
|
+
<div
|
|
65
|
+
class={cn("relative", className)}
|
|
66
|
+
use:emblaCarouselSvelte={{
|
|
67
|
+
options: {
|
|
68
|
+
container: "[data-embla-container]",
|
|
69
|
+
slides: "[data-embla-slide]",
|
|
70
|
+
...opts,
|
|
71
|
+
axis: $orientationStore === "horizontal" ? "x" : "y"
|
|
72
|
+
},
|
|
73
|
+
plugins
|
|
74
|
+
}}
|
|
75
|
+
on:emblaInit={onInit}
|
|
76
|
+
on:mouseenter
|
|
77
|
+
on:mouseleave
|
|
78
|
+
role="region"
|
|
79
|
+
aria-roledescription="carousel"
|
|
80
|
+
{...$$restProps}
|
|
81
|
+
>
|
|
82
|
+
<slot />
|
|
83
|
+
</div>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import { type CarouselProps } from "./context.js";
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: CarouselProps;
|
|
5
|
+
events: {
|
|
6
|
+
mouseenter: MouseEvent;
|
|
7
|
+
mouseleave: MouseEvent;
|
|
8
|
+
} & {
|
|
9
|
+
[evt: string]: CustomEvent<any>;
|
|
10
|
+
};
|
|
11
|
+
slots: {
|
|
12
|
+
default: {};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
type CarouselProps_ = typeof __propDef.props;
|
|
16
|
+
export { CarouselProps_ as CarouselProps };
|
|
17
|
+
export type CarouselEvents = typeof __propDef.events;
|
|
18
|
+
export type CarouselSlots = typeof __propDef.slots;
|
|
19
|
+
export default class Carousel extends SvelteComponent<CarouselProps, CarouselEvents, CarouselSlots> {
|
|
20
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/// <reference types="svelte" />
|
|
2
|
+
import type { EmblaCarouselSvelteType } from "embla-carousel-svelte";
|
|
3
|
+
import type emblaCarouselSvelte from "embla-carousel-svelte";
|
|
4
|
+
import type { HTMLAttributes } from "svelte/elements";
|
|
5
|
+
import type { Writable, Readable } from "svelte/store";
|
|
6
|
+
export type CarouselAPI = NonNullable<NonNullable<EmblaCarouselSvelteType["$$_attributes"]>["on:emblaInit"]> extends (evt: CustomEvent<infer CarouselAPI>) => void ? CarouselAPI : never;
|
|
7
|
+
type EmblaCarouselConfig = NonNullable<Parameters<typeof emblaCarouselSvelte>[1]>;
|
|
8
|
+
export type CarouselOptions = EmblaCarouselConfig["options"];
|
|
9
|
+
export type CarouselPlugins = EmblaCarouselConfig["plugins"];
|
|
10
|
+
export type CarouselProps = {
|
|
11
|
+
opts?: CarouselOptions;
|
|
12
|
+
plugins?: CarouselPlugins;
|
|
13
|
+
api?: CarouselAPI;
|
|
14
|
+
orientation?: "horizontal" | "vertical";
|
|
15
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
16
|
+
type EmblaContext = {
|
|
17
|
+
api: Writable<CarouselAPI | undefined>;
|
|
18
|
+
orientation: Writable<"horizontal" | "vertical">;
|
|
19
|
+
scrollNext: () => void;
|
|
20
|
+
scrollPrev: () => void;
|
|
21
|
+
canScrollNext: Readable<boolean>;
|
|
22
|
+
canScrollPrev: Readable<boolean>;
|
|
23
|
+
handleKeyDown: (e: KeyboardEvent) => void;
|
|
24
|
+
};
|
|
25
|
+
export declare function setEmblaContex(config: EmblaContext): EmblaContext;
|
|
26
|
+
export declare function getEmblaContext(name?: string): EmblaContext;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { getContext, hasContext, setContext } from "svelte";
|
|
2
|
+
const EMBLA_CAROUSEL_CONTEXT = Symbol("EMBLA_CAROUSEL_CONTEXT");
|
|
3
|
+
export function setEmblaContex(config) {
|
|
4
|
+
setContext(EMBLA_CAROUSEL_CONTEXT, config);
|
|
5
|
+
return config;
|
|
6
|
+
}
|
|
7
|
+
export function getEmblaContext(name = "This component") {
|
|
8
|
+
if (!hasContext(EMBLA_CAROUSEL_CONTEXT)) {
|
|
9
|
+
throw new Error(`${name} must be used within a <Carousel.Root> component`);
|
|
10
|
+
}
|
|
11
|
+
return getContext(EMBLA_CAROUSEL_CONTEXT);
|
|
12
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as Root } from "./carousel.svelte";
|
|
2
|
+
export { default as Content } from "./carousel-content.svelte";
|
|
3
|
+
export { default as Item } from "./carousel-item.svelte";
|
|
4
|
+
export { default as Previous } from "./carousel-previous.svelte";
|
|
5
|
+
export { default as Next } from "./carousel-next.svelte";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as Root } from "./carousel.svelte";
|
|
2
|
+
export { default as Content } from "./carousel-content.svelte";
|
|
3
|
+
export { default as Item } from "./carousel-item.svelte";
|
|
4
|
+
export { default as Previous } from "./carousel-previous.svelte";
|
|
5
|
+
export { default as Next } from "./carousel-next.svelte";
|
|
@@ -3,8 +3,8 @@ declare const __propDef: {
|
|
|
3
3
|
props: {
|
|
4
4
|
disabled?: boolean | undefined;
|
|
5
5
|
name?: string | undefined;
|
|
6
|
-
required?: boolean | undefined;
|
|
7
6
|
loop?: boolean | undefined;
|
|
7
|
+
required?: boolean | undefined;
|
|
8
8
|
preventScroll?: boolean | undefined;
|
|
9
9
|
closeOnEscape?: boolean | undefined;
|
|
10
10
|
closeOnOutsideClick?: boolean | undefined;
|
|
@@ -7,6 +7,7 @@ export { Badge, type Variant as BadgeVariant, badgeVariants } from "./badge/inde
|
|
|
7
7
|
export { Button, type ButtonEvents, type ButtonProps, buttonVariants } from "./button/index.js";
|
|
8
8
|
export * as Calendar from "./calendar/index.js";
|
|
9
9
|
export * as Card from "./card/index.js";
|
|
10
|
+
export * as Carousel from "./carousel/index.js";
|
|
10
11
|
export { Checkbox } from "./checkbox/index.js";
|
|
11
12
|
export * as Collapsible from "./collapsible/index.js";
|
|
12
13
|
export * as Command from "./command/index.js";
|
|
@@ -7,6 +7,7 @@ export { Badge, badgeVariants } from "./badge/index.js";
|
|
|
7
7
|
export { Button, buttonVariants } from "./button/index.js";
|
|
8
8
|
export * as Calendar from "./calendar/index.js";
|
|
9
9
|
export * as Card from "./card/index.js";
|
|
10
|
+
export * as Carousel from "./carousel/index.js";
|
|
10
11
|
export { Checkbox } from "./checkbox/index.js";
|
|
11
12
|
export * as Collapsible from "./collapsible/index.js";
|
|
12
13
|
export * as Command from "./command/index.js";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kayord/ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.6",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -30,44 +30,45 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@internationalized/date": "^3.5.1",
|
|
33
|
-
"bits-ui": "^0.
|
|
33
|
+
"bits-ui": "^0.15.1",
|
|
34
34
|
"clsx": "^2.1.0",
|
|
35
35
|
"cmdk-sv": "^0.0.13",
|
|
36
|
-
"
|
|
37
|
-
"
|
|
36
|
+
"embla-carousel-svelte": "8.0.0-rc20",
|
|
37
|
+
"formsnap": "^0.4.3",
|
|
38
|
+
"lucide-svelte": "^0.315.0",
|
|
38
39
|
"mode-watcher": "^0.1.2",
|
|
39
40
|
"svelte-headless-table": "^0.18.1",
|
|
40
41
|
"svelte-sonner": "^0.3.11",
|
|
41
|
-
"sveltekit-superforms": "^1.13.
|
|
42
|
-
"tailwind-merge": "^2.2.
|
|
42
|
+
"sveltekit-superforms": "^1.13.4",
|
|
43
|
+
"tailwind-merge": "^2.2.1",
|
|
43
44
|
"tailwind-variants": "^0.1.20",
|
|
44
|
-
"vaul-svelte": "^0.0
|
|
45
|
+
"vaul-svelte": "^0.1.0",
|
|
45
46
|
"zod": "^3.22.4"
|
|
46
47
|
},
|
|
47
48
|
"devDependencies": {
|
|
48
|
-
"@playwright/test": "^1.
|
|
49
|
-
"@sveltejs/adapter-auto": "^3.1.
|
|
50
|
-
"@sveltejs/kit": "^2.
|
|
51
|
-
"@sveltejs/package": "^2.2.
|
|
49
|
+
"@playwright/test": "^1.41.1",
|
|
50
|
+
"@sveltejs/adapter-auto": "^3.1.1",
|
|
51
|
+
"@sveltejs/kit": "^2.5.0",
|
|
52
|
+
"@sveltejs/package": "^2.2.6",
|
|
52
53
|
"@sveltejs/vite-plugin-svelte": "^3.0.1",
|
|
53
|
-
"@typescript-eslint/eslint-plugin": "^6.19.
|
|
54
|
-
"@typescript-eslint/parser": "^6.19.
|
|
55
|
-
"autoprefixer": "^10.4.
|
|
54
|
+
"@typescript-eslint/eslint-plugin": "^6.19.1",
|
|
55
|
+
"@typescript-eslint/parser": "^6.19.1",
|
|
56
|
+
"autoprefixer": "^10.4.17",
|
|
56
57
|
"eslint": "^8.56.0",
|
|
57
58
|
"eslint-config-prettier": "^9.1.0",
|
|
58
59
|
"eslint-plugin-svelte": "^2.35.1",
|
|
59
60
|
"postcss": "^8.4.33",
|
|
60
61
|
"postcss-load-config": "^5.0.2",
|
|
61
|
-
"prettier": "^3.2.
|
|
62
|
+
"prettier": "^3.2.4",
|
|
62
63
|
"prettier-plugin-svelte": "^3.1.2",
|
|
63
64
|
"publint": "^0.2.7",
|
|
64
|
-
"svelte": "^4.2.
|
|
65
|
+
"svelte": "^4.2.9",
|
|
65
66
|
"svelte-check": "^3.6.3",
|
|
66
67
|
"tailwindcss": "^3.4.1",
|
|
67
68
|
"tslib": "^2.6.2",
|
|
68
69
|
"typescript": "^5.3.3",
|
|
69
|
-
"vite": "^5.0.
|
|
70
|
-
"vitest": "^1.2.
|
|
70
|
+
"vite": "^5.0.12",
|
|
71
|
+
"vitest": "^1.2.1"
|
|
71
72
|
},
|
|
72
73
|
"svelte": "./dist/index.js",
|
|
73
74
|
"types": "./dist/index.d.ts",
|
|
@@ -81,8 +82,8 @@
|
|
|
81
82
|
"test": "npm run test:integration && npm run test:unit",
|
|
82
83
|
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
83
84
|
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
|
84
|
-
"lint": "prettier --
|
|
85
|
-
"format": "prettier --
|
|
85
|
+
"lint": "prettier --check . && eslint .",
|
|
86
|
+
"format": "prettier --write .",
|
|
86
87
|
"test:integration": "playwright test",
|
|
87
88
|
"test:unit": "vitest"
|
|
88
89
|
}
|