svelte-ag 0.0.2-dev.81 → 0.0.2-dev.82
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/lib/components/animated/animated.svelte.d.ts +1 -1
- package/dist/lib/components/animated/animated.svelte.d.ts.map +1 -1
- package/dist/lib/components/carousel/carousel-content.svelte +5 -24
- package/dist/lib/components/carousel/carousel-content.svelte.d.ts +6 -1
- package/dist/lib/components/carousel/carousel-content.svelte.d.ts.map +1 -1
- package/dist/lib/components/carousel/carousel-dots.svelte +1 -3
- package/dist/lib/components/carousel/carousel-dots.svelte.d.ts +6 -1
- package/dist/lib/components/carousel/carousel-dots.svelte.d.ts.map +1 -1
- package/dist/lib/components/carousel/carousel-item.svelte.d.ts +6 -1
- package/dist/lib/components/carousel/carousel-item.svelte.d.ts.map +1 -1
- package/dist/lib/components/carousel/carousel-next.svelte +21 -9
- package/dist/lib/components/carousel/carousel-next.svelte.d.ts +21 -1
- package/dist/lib/components/carousel/carousel-next.svelte.d.ts.map +1 -1
- package/dist/lib/components/carousel/carousel-previous.svelte +21 -9
- package/dist/lib/components/carousel/carousel-previous.svelte.d.ts +21 -1
- package/dist/lib/components/carousel/carousel-previous.svelte.d.ts.map +1 -1
- package/dist/lib/components/carousel/carousel.svelte +21 -1
- package/dist/lib/components/carousel/carousel.svelte.d.ts +2 -1
- package/dist/lib/components/carousel/carousel.svelte.d.ts.map +1 -1
- package/dist/lib/components/carousel/context.d.ts +1 -0
- package/dist/lib/components/carousel/context.d.ts.map +1 -1
- package/dist/lib/components/dnd/Droppable.svelte.d.ts +8 -1
- package/dist/lib/components/dnd/Droppable.svelte.d.ts.map +1 -1
- package/dist/lib/components/dnd/dnd-context.svelte.d.ts +1 -1
- package/dist/lib/components/dnd/dnd-drag-overlay.svelte.d.ts +1 -1
- package/dist/lib/components/dnd/dnd-drag-placeholder.svelte.d.ts +1 -1
- package/dist/lib/components/dnd/dnd-drag-placeholder.svelte.d.ts.map +1 -1
- package/dist/lib/components/dnd/dnd-draghandle.svelte.d.ts +1 -1
- package/dist/lib/components/dnd/dnd-draghandle.svelte.d.ts.map +1 -1
- package/dist/lib/components/dnd/dnd-overlay.svelte.d.ts +11 -3
- package/dist/lib/components/dnd/dnd-overlay.svelte.d.ts.map +1 -1
- package/dist/lib/components/dnd/dnd-sortable-context.svelte.d.ts +1 -1
- package/dist/lib/components/dnd/dnd-sortable-context.svelte.d.ts.map +1 -1
- package/dist/lib/components/dnd/dnd-sortable-item.svelte.d.ts +1 -1
- package/dist/lib/components/dnd/dnd-sortable-item.svelte.d.ts.map +1 -1
- package/dist/lib/components/dnd/example.svelte.d.ts +1 -1
- package/dist/lib/components/dnd/example.svelte.d.ts.map +1 -1
- package/dist/lib/components/form/form-button.svelte.d.ts +2 -1
- package/dist/lib/components/form/form-button.svelte.d.ts.map +1 -1
- package/dist/lib/components/form/form-description.svelte.d.ts +2 -1
- package/dist/lib/components/form/form-description.svelte.d.ts.map +1 -1
- package/dist/lib/components/form/form-element-field.svelte.d.ts +1 -1
- package/dist/lib/components/form/form-field-errors.svelte.d.ts +1 -1
- package/dist/lib/components/form/form-field-errors.svelte.d.ts.map +1 -1
- package/dist/lib/components/form/form-field.svelte.d.ts +1 -1
- package/dist/lib/components/form/form-fieldset.svelte.d.ts +1 -1
- package/dist/lib/components/form/form-label.svelte.d.ts +2 -1
- package/dist/lib/components/form/form-label.svelte.d.ts.map +1 -1
- package/dist/lib/components/form/form-legend.svelte.d.ts +2 -1
- package/dist/lib/components/form/form-legend.svelte.d.ts.map +1 -1
- package/dist/lib/components/form/form.svelte.d.ts +6 -1
- package/dist/lib/components/form/form.svelte.d.ts.map +1 -1
- package/dist/lib/components/gallery/gallery.svelte +67 -0
- package/dist/lib/components/gallery/gallery.svelte.d.ts +35 -0
- package/dist/lib/components/gallery/gallery.svelte.d.ts.map +1 -0
- package/dist/lib/components/gallery/index.d.ts +3 -0
- package/dist/lib/components/gallery/index.d.ts.map +1 -0
- package/dist/lib/components/gallery/index.js +2 -0
- package/dist/lib/components/gallery/utils.d.ts +17 -0
- package/dist/lib/components/gallery/utils.d.ts.map +1 -0
- package/dist/lib/components/gallery/utils.js +94 -0
- package/dist/lib/components/gradient/Gradient.svelte +45 -51
- package/dist/lib/components/gradient/Gradient.svelte.d.ts +10 -1
- package/dist/lib/components/gradient/Gradient.svelte.d.ts.map +1 -1
- package/dist/lib/components/gradient/gradient.frag +43 -0
- package/dist/lib/components/safe/safe.svelte.d.ts +1 -1
- package/dist/lib/components/safe/safe.svelte.d.ts.map +1 -1
- package/dist/lib/components/search/combinations/searchPopover.svelte.d.ts +11 -1
- package/dist/lib/components/search/combinations/searchPopover.svelte.d.ts.map +1 -1
- package/dist/lib/components/search/components/search-empty.svelte.d.ts +2 -1
- package/dist/lib/components/search/components/search-empty.svelte.d.ts.map +1 -1
- package/dist/lib/components/search/components/search-input.svelte.d.ts +2 -1
- package/dist/lib/components/search/components/search-input.svelte.d.ts.map +1 -1
- package/dist/lib/components/search/components/search-list.svelte.d.ts +2 -1
- package/dist/lib/components/search/components/search-list.svelte.d.ts.map +1 -1
- package/dist/lib/components/search/components/search-pagnation.svelte.d.ts +6 -1
- package/dist/lib/components/search/components/search-pagnation.svelte.d.ts.map +1 -1
- package/dist/lib/components/search/components/search.svelte.d.ts +2 -1
- package/dist/lib/components/search/components/search.svelte.d.ts.map +1 -1
- package/dist/lib/components/sidebar/sidebar-content.svelte.d.ts +3 -1
- package/dist/lib/components/sidebar/sidebar-content.svelte.d.ts.map +1 -1
- package/dist/lib/components/sidebar/sidebar-footer.svelte.d.ts +3 -1
- package/dist/lib/components/sidebar/sidebar-footer.svelte.d.ts.map +1 -1
- package/dist/lib/components/sidebar/sidebar-group-action.svelte.d.ts +9 -1
- package/dist/lib/components/sidebar/sidebar-group-action.svelte.d.ts.map +1 -1
- package/dist/lib/components/sidebar/sidebar-group-content.svelte.d.ts +3 -1
- package/dist/lib/components/sidebar/sidebar-group-content.svelte.d.ts.map +1 -1
- package/dist/lib/components/sidebar/sidebar-group-label.svelte.d.ts +9 -1
- package/dist/lib/components/sidebar/sidebar-group-label.svelte.d.ts.map +1 -1
- package/dist/lib/components/sidebar/sidebar-group.svelte.d.ts +3 -1
- package/dist/lib/components/sidebar/sidebar-group.svelte.d.ts.map +1 -1
- package/dist/lib/components/sidebar/sidebar-header.svelte.d.ts +3 -1
- package/dist/lib/components/sidebar/sidebar-header.svelte.d.ts.map +1 -1
- package/dist/lib/components/sidebar/sidebar-input.svelte.d.ts +9 -1
- package/dist/lib/components/sidebar/sidebar-input.svelte.d.ts.map +1 -1
- package/dist/lib/components/sidebar/sidebar-inset.svelte.d.ts +3 -1
- package/dist/lib/components/sidebar/sidebar-inset.svelte.d.ts.map +1 -1
- package/dist/lib/components/sidebar/sidebar-menu-action.svelte.d.ts +10 -1
- package/dist/lib/components/sidebar/sidebar-menu-action.svelte.d.ts.map +1 -1
- package/dist/lib/components/sidebar/sidebar-menu-badge.svelte.d.ts +3 -1
- package/dist/lib/components/sidebar/sidebar-menu-badge.svelte.d.ts.map +1 -1
- package/dist/lib/components/sidebar/sidebar-menu-button.svelte.d.ts +20 -1
- package/dist/lib/components/sidebar/sidebar-menu-button.svelte.d.ts.map +1 -1
- package/dist/lib/components/sidebar/sidebar-menu-item.svelte.d.ts +3 -1
- package/dist/lib/components/sidebar/sidebar-menu-item.svelte.d.ts.map +1 -1
- package/dist/lib/components/sidebar/sidebar-menu-skeleton.svelte.d.ts +6 -1
- package/dist/lib/components/sidebar/sidebar-menu-skeleton.svelte.d.ts.map +1 -1
- package/dist/lib/components/sidebar/sidebar-menu-sub-button.svelte.d.ts +11 -1
- package/dist/lib/components/sidebar/sidebar-menu-sub-button.svelte.d.ts.map +1 -1
- package/dist/lib/components/sidebar/sidebar-menu-sub-item.svelte.d.ts +3 -1
- package/dist/lib/components/sidebar/sidebar-menu-sub-item.svelte.d.ts.map +1 -1
- package/dist/lib/components/sidebar/sidebar-menu-sub.svelte.d.ts +3 -1
- package/dist/lib/components/sidebar/sidebar-menu-sub.svelte.d.ts.map +1 -1
- package/dist/lib/components/sidebar/sidebar-menu.svelte.d.ts +3 -1
- package/dist/lib/components/sidebar/sidebar-menu.svelte.d.ts.map +1 -1
- package/dist/lib/components/sidebar/sidebar-provider.svelte.d.ts +10 -1
- package/dist/lib/components/sidebar/sidebar-provider.svelte.d.ts.map +1 -1
- package/dist/lib/components/sidebar/sidebar-rail.svelte.d.ts +6 -1
- package/dist/lib/components/sidebar/sidebar-rail.svelte.d.ts.map +1 -1
- package/dist/lib/components/sidebar/sidebar-separator.svelte.d.ts +1 -1
- package/dist/lib/components/sidebar/sidebar-separator.svelte.d.ts.map +1 -1
- package/dist/lib/components/sidebar/sidebar-trigger.svelte.d.ts +7 -1
- package/dist/lib/components/sidebar/sidebar-trigger.svelte.d.ts.map +1 -1
- package/dist/lib/components/sidebar/sidebar.svelte.d.ts +8 -1
- package/dist/lib/components/sidebar/sidebar.svelte.d.ts.map +1 -1
- package/dist/lib/components/utilities/arrow/arrow.svelte.d.ts +1 -1
- package/dist/lib/components/utilities/arrow/arrow.svelte.d.ts.map +1 -1
- package/dist/lib/components/utilities/floating-layer/components/floating-layer-anchor.svelte.d.ts +2 -1
- package/dist/lib/components/utilities/floating-layer/components/floating-layer-anchor.svelte.d.ts.map +1 -1
- package/dist/lib/components/utilities/floating-layer/components/floating-layer-arrow.svelte.d.ts +1 -1
- package/dist/lib/components/utilities/floating-layer/components/floating-layer-arrow.svelte.d.ts.map +1 -1
- package/dist/lib/components/utilities/floating-layer/components/floating-layer-content-static.svelte.d.ts +11 -1
- package/dist/lib/components/utilities/floating-layer/components/floating-layer-content-static.svelte.d.ts.map +1 -1
- package/dist/lib/components/utilities/floating-layer/components/floating-layer-content.svelte.d.ts +2 -1
- package/dist/lib/components/utilities/floating-layer/components/floating-layer-content.svelte.d.ts.map +1 -1
- package/dist/lib/components/utilities/floating-layer/components/floating-layer.svelte.d.ts +5 -1
- package/dist/lib/components/utilities/floating-layer/components/floating-layer.svelte.d.ts.map +1 -1
- package/dist/lib/styles/underline.css +10 -0
- package/dist/lib/utils/glsl.d.ts +4 -0
- package/dist/lib/utils/glsl.d.ts.map +1 -0
- package/dist/lib/utils/glsl.js +1 -0
- package/dist/lib/utils/index.d.ts +1 -0
- package/dist/lib/utils/index.d.ts.map +1 -1
- package/dist/lib/utils/index.js +1 -0
- package/dist/routes/+layout.svelte.d.ts +11 -3
- package/dist/routes/+layout.svelte.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/lib/components/carousel/carousel-content.svelte +5 -24
- package/src/lib/components/carousel/carousel-dots.svelte +1 -3
- package/src/lib/components/carousel/carousel-next.svelte +21 -9
- package/src/lib/components/carousel/carousel-previous.svelte +21 -9
- package/src/lib/components/carousel/carousel.svelte +21 -1
- package/src/lib/components/carousel/context.ts +1 -0
- package/src/lib/components/gallery/gallery.svelte +67 -0
- package/src/lib/components/gallery/index.ts +3 -0
- package/src/lib/components/gallery/utils.ts +103 -0
- package/src/lib/components/gradient/Gradient.svelte +45 -51
- package/src/lib/components/gradient/gradient.frag +43 -0
- package/src/lib/styles/underline.css +10 -0
- package/src/lib/utils/glsl.ts +3 -0
- package/src/lib/utils/index.ts +1 -0
|
@@ -59,7 +59,7 @@ export type Props = WithElementRef<HTMLDivAttributes> & {
|
|
|
59
59
|
disableInitialAnimation?: boolean;
|
|
60
60
|
class?: string;
|
|
61
61
|
};
|
|
62
|
-
declare const Animated:
|
|
62
|
+
declare const Animated: import("svelte").Component<Props, {}, "visible">;
|
|
63
63
|
type Animated = ReturnType<typeof Animated>;
|
|
64
64
|
export default Animated;
|
|
65
65
|
//# sourceMappingURL=animated.svelte.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animated.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/animated/animated.svelte.ts"],"names":[],"mappings":"AAGE,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE1D,eA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AgB,CAAC,WAAW,CAAC,CAAC;IAC1C,QAAQ,CAAC,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAC;IACxC,mBAAmB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAwLJ,QAAA,MAAM,QAAQ,kDAAwC,CAAC;AACvD,KAAK,QAAQ,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AAC5C,eAAe,QAAQ,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import emblaCarouselSvelte from 'embla-carousel-svelte';
|
|
3
2
|
import type { WithElementRef } from 'bits-ui';
|
|
4
3
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
5
4
|
import { getEmblaContext } from './context.js';
|
|
@@ -14,31 +13,13 @@
|
|
|
14
13
|
}: WithElementRef<HTMLAttributes<HTMLDivElement>> & { symbol?: symbol } = $props();
|
|
15
14
|
|
|
16
15
|
const emblaCtx = getEmblaContext('<Carousel.Content/>', symbol);
|
|
17
|
-
|
|
18
|
-
// console.log(emblaCtx);
|
|
19
16
|
</script>
|
|
20
17
|
|
|
21
|
-
<!-- svelte-ignore event_directive_deprecated -->
|
|
22
18
|
<div
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
loop: true,
|
|
28
|
-
slides: `[data-embla-slide="${symbol?.description ?? 'default'}"]`,
|
|
29
|
-
...emblaCtx.options,
|
|
30
|
-
axis: emblaCtx.orientation === 'horizontal' ? 'x' : 'y'
|
|
31
|
-
},
|
|
32
|
-
plugins: emblaCtx.plugins
|
|
33
|
-
}}
|
|
34
|
-
on:emblaInit={emblaCtx.onInit}
|
|
19
|
+
bind:this={ref}
|
|
20
|
+
class={cn('flex', emblaCtx.orientation === 'horizontal' ? '-ml-4' : `-mt-4 flex-col`, className)}
|
|
21
|
+
data-embla-container={symbol?.description ?? 'default'}
|
|
22
|
+
{...restProps}
|
|
35
23
|
>
|
|
36
|
-
|
|
37
|
-
bind:this={ref}
|
|
38
|
-
class={cn('flex', emblaCtx.orientation === 'horizontal' ? '-ml-4' : `-mt-4 flex-col`, className)}
|
|
39
|
-
data-embla-container={symbol?.description}
|
|
40
|
-
{...restProps}
|
|
41
|
-
>
|
|
42
|
-
{@render children?.()}
|
|
43
|
-
</div>
|
|
24
|
+
{@render children?.()}
|
|
44
25
|
</div>
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import type { WithElementRef } from 'bits-ui';
|
|
2
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
|
+
type $$ComponentProps = WithElementRef<HTMLAttributes<HTMLDivElement>> & {
|
|
4
|
+
symbol?: symbol;
|
|
5
|
+
};
|
|
6
|
+
declare const CarouselContent: import("svelte").Component<$$ComponentProps, {}, "ref">;
|
|
2
7
|
type CarouselContent = ReturnType<typeof CarouselContent>;
|
|
3
8
|
export default CarouselContent;
|
|
4
9
|
//# sourceMappingURL=carousel-content.svelte.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel-content.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/carousel/carousel-content.svelte.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"carousel-content.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/carousel/carousel-content.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIrD,KAAK,gBAAgB,GAAI,cAAc,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAwB/F,QAAA,MAAM,eAAe,yDAAwC,CAAC;AAC9D,KAAK,eAAe,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAC1D,eAAe,eAAe,CAAC"}
|
|
@@ -7,13 +7,11 @@
|
|
|
7
7
|
let {
|
|
8
8
|
ref = $bindable(null),
|
|
9
9
|
class: className,
|
|
10
|
-
variant = 'outline',
|
|
11
|
-
size = 'icon',
|
|
12
10
|
symbol = undefined,
|
|
13
11
|
...restProps
|
|
14
12
|
}: WithoutChildren<Props> & { symbol?: symbol } = $props();
|
|
15
13
|
|
|
16
|
-
const emblaCtx = getEmblaContext('<Carousel.
|
|
14
|
+
const emblaCtx = getEmblaContext('<Carousel.Dots/>', symbol);
|
|
17
15
|
</script>
|
|
18
16
|
|
|
19
17
|
<div class={cn('flex justify-center gap-1.5', className)}>
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import type { WithoutChildren } from 'bits-ui';
|
|
2
|
+
import { type Props } from '$shadcn/button/index.js';
|
|
3
|
+
type $$ComponentProps = WithoutChildren<Props> & {
|
|
4
|
+
symbol?: symbol;
|
|
5
|
+
};
|
|
6
|
+
declare const CarouselDots: import("svelte").Component<$$ComponentProps, {}, "ref">;
|
|
2
7
|
type CarouselDots = ReturnType<typeof CarouselDots>;
|
|
3
8
|
export default CarouselDots;
|
|
4
9
|
//# sourceMappingURL=carousel-dots.svelte.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel-dots.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/carousel/carousel-dots.svelte.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"carousel-dots.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/carousel/carousel-dots.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG/C,OAAO,EAAU,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAE5D,KAAK,gBAAgB,GAAI,eAAe,CAAC,KAAK,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AA4BvE,QAAA,MAAM,YAAY,yDAAwC,CAAC;AAC3D,KAAK,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACpD,eAAe,YAAY,CAAC"}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import type { WithElementRef } from 'bits-ui';
|
|
2
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
|
+
type $$ComponentProps = WithElementRef<HTMLAttributes<HTMLDivElement>> & {
|
|
4
|
+
symbol?: symbol;
|
|
5
|
+
};
|
|
6
|
+
declare const CarouselItem: import("svelte").Component<$$ComponentProps, {}, "ref">;
|
|
2
7
|
type CarouselItem = ReturnType<typeof CarouselItem>;
|
|
3
8
|
export default CarouselItem;
|
|
4
9
|
//# sourceMappingURL=carousel-item.svelte.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel-item.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/carousel/carousel-item.svelte.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"carousel-item.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/carousel/carousel-item.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIrD,KAAK,gBAAgB,GAAI,cAAc,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAwB/F,QAAA,MAAM,YAAY,yDAAwC,CAAC;AAC3D,KAAK,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACpD,eAAe,YAAY,CAAC"}
|
|
@@ -4,31 +4,43 @@
|
|
|
4
4
|
import { getEmblaContext } from './context.js';
|
|
5
5
|
import { cn } from '$shadcn/utils.js';
|
|
6
6
|
import { Button, type Props } from '$shadcn/button/index.js';
|
|
7
|
+
import { tv, type VariantProps } from 'tailwind-variants';
|
|
7
8
|
|
|
8
9
|
let {
|
|
9
10
|
ref = $bindable(null),
|
|
10
11
|
class: className,
|
|
11
12
|
variant = 'outline',
|
|
12
13
|
size = 'icon',
|
|
14
|
+
position = 'default',
|
|
13
15
|
symbol = undefined,
|
|
16
|
+
onclick,
|
|
14
17
|
...restProps
|
|
15
|
-
}: WithoutChildren<Props> & { symbol?: symbol } = $props();
|
|
18
|
+
}: WithoutChildren<Props> & { symbol?: symbol; position: VariantProps<typeof variants>['variant'] } = $props();
|
|
16
19
|
|
|
17
20
|
const emblaCtx = getEmblaContext('<Carousel.Next/>', symbol);
|
|
21
|
+
const variants = tv({
|
|
22
|
+
base: 'size-8 touch-manipulation rounded-full',
|
|
23
|
+
variants: {
|
|
24
|
+
variant: {
|
|
25
|
+
default:
|
|
26
|
+
emblaCtx.orientation === 'horizontal'
|
|
27
|
+
? 'top-1/2 -right-12 -translate-y-1/2'
|
|
28
|
+
: '-bottom-12 left-1/2 -translate-x-1/2 rotate-90',
|
|
29
|
+
flex: ``
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
});
|
|
18
33
|
</script>
|
|
19
34
|
|
|
20
35
|
<Button
|
|
21
36
|
{variant}
|
|
22
37
|
{size}
|
|
23
|
-
class={cn(
|
|
24
|
-
'absolute size-8 touch-manipulation rounded-full',
|
|
25
|
-
emblaCtx.orientation === 'horizontal'
|
|
26
|
-
? 'top-1/2 -right-12 -translate-y-1/2'
|
|
27
|
-
: '-bottom-12 left-1/2 -translate-x-1/2 rotate-90',
|
|
28
|
-
className
|
|
29
|
-
)}
|
|
38
|
+
class={cn(variants({ variant: position }), className)}
|
|
30
39
|
disabled={!emblaCtx.canScrollNext}
|
|
31
|
-
onclick={
|
|
40
|
+
onclick={(e) => {
|
|
41
|
+
emblaCtx.scrollNext();
|
|
42
|
+
onclick?.(e);
|
|
43
|
+
}}
|
|
32
44
|
onkeydown={emblaCtx.handleKeyDown}
|
|
33
45
|
bind:ref
|
|
34
46
|
{...restProps}
|
|
@@ -1,4 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
import { type Props } from '$shadcn/button/index.js';
|
|
2
|
+
import { type VariantProps } from 'tailwind-variants';
|
|
3
|
+
declare const CarouselNext: import("svelte").Component<Omit<Props, "children"> & {
|
|
4
|
+
symbol?: symbol;
|
|
5
|
+
position: VariantProps<import("tailwind-variants").TVReturnType<{
|
|
6
|
+
variant: {
|
|
7
|
+
default: string;
|
|
8
|
+
flex: string;
|
|
9
|
+
};
|
|
10
|
+
}, undefined, "size-8 touch-manipulation rounded-full", {
|
|
11
|
+
variant: {
|
|
12
|
+
default: string;
|
|
13
|
+
flex: string;
|
|
14
|
+
};
|
|
15
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
16
|
+
variant: {
|
|
17
|
+
default: string;
|
|
18
|
+
flex: string;
|
|
19
|
+
};
|
|
20
|
+
}, undefined, "size-8 touch-manipulation rounded-full", unknown, unknown, undefined>>>["variant"];
|
|
21
|
+
}, {}, "ref">;
|
|
2
22
|
type CarouselNext = ReturnType<typeof CarouselNext>;
|
|
3
23
|
export default CarouselNext;
|
|
4
24
|
//# sourceMappingURL=carousel-next.svelte.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel-next.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/carousel/carousel-next.svelte.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"carousel-next.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/carousel/carousel-next.svelte.ts"],"names":[],"mappings":"AAOA,OAAO,EAAU,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AA8C1D,QAAA,MAAM,YAAY;aAtC8C,MAAM;cAAY,YAAY;;;;;;;;;;;;;;;0FAAiB,CAAC,SAAS,CAAC;aAsChE,CAAC;AAC3D,KAAK,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACpD,eAAe,YAAY,CAAC"}
|
|
@@ -4,31 +4,43 @@
|
|
|
4
4
|
import { getEmblaContext } from './context.js';
|
|
5
5
|
import { cn } from '$shadcn/utils.js';
|
|
6
6
|
import { Button, type Props } from '$shadcn/button/index.js';
|
|
7
|
+
import { type VariantProps, tv } from 'tailwind-variants';
|
|
7
8
|
|
|
8
9
|
let {
|
|
9
10
|
ref = $bindable(null),
|
|
10
11
|
class: className,
|
|
11
12
|
variant = 'outline',
|
|
12
13
|
size = 'icon',
|
|
14
|
+
position = 'default',
|
|
13
15
|
symbol = undefined,
|
|
16
|
+
onclick,
|
|
14
17
|
...restProps
|
|
15
|
-
}: WithoutChildren<Props> & { symbol?: symbol } = $props();
|
|
18
|
+
}: WithoutChildren<Props> & { symbol?: symbol; position: VariantProps<typeof variants>['variant'] } = $props();
|
|
16
19
|
|
|
17
20
|
const emblaCtx = getEmblaContext('<Carousel.Previous/>', symbol);
|
|
21
|
+
const variants = tv({
|
|
22
|
+
base: 'size-8 touch-manipulation rounded-full',
|
|
23
|
+
variants: {
|
|
24
|
+
variant: {
|
|
25
|
+
default:
|
|
26
|
+
emblaCtx.orientation === 'horizontal'
|
|
27
|
+
? 'top-1/2 -left-12 -translate-y-1/2'
|
|
28
|
+
: '-top-12 left-1/2 -translate-x-1/2 rotate-90',
|
|
29
|
+
flex: ``
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
});
|
|
18
33
|
</script>
|
|
19
34
|
|
|
20
35
|
<Button
|
|
21
36
|
{variant}
|
|
22
37
|
{size}
|
|
23
|
-
class={cn(
|
|
24
|
-
'absolute size-8 touch-manipulation rounded-full',
|
|
25
|
-
emblaCtx.orientation === 'horizontal'
|
|
26
|
-
? 'top-1/2 -left-12 -translate-y-1/2'
|
|
27
|
-
: '-top-12 left-1/2 -translate-x-1/2 rotate-90',
|
|
28
|
-
className
|
|
29
|
-
)}
|
|
38
|
+
class={cn(variants({ variant: position }), className)}
|
|
30
39
|
disabled={!emblaCtx.canScrollPrev}
|
|
31
|
-
onclick={
|
|
40
|
+
onclick={(e) => {
|
|
41
|
+
emblaCtx.scrollPrev();
|
|
42
|
+
onclick?.(e);
|
|
43
|
+
}}
|
|
32
44
|
onkeydown={emblaCtx.handleKeyDown}
|
|
33
45
|
{...restProps}
|
|
34
46
|
bind:ref
|
|
@@ -1,4 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
import { type Props } from '$shadcn/button/index.js';
|
|
2
|
+
import { type VariantProps } from 'tailwind-variants';
|
|
3
|
+
declare const CarouselPrevious: import("svelte").Component<Omit<Props, "children"> & {
|
|
4
|
+
symbol?: symbol;
|
|
5
|
+
position: VariantProps<import("tailwind-variants").TVReturnType<{
|
|
6
|
+
variant: {
|
|
7
|
+
default: string;
|
|
8
|
+
flex: string;
|
|
9
|
+
};
|
|
10
|
+
}, undefined, "size-8 touch-manipulation rounded-full", {
|
|
11
|
+
variant: {
|
|
12
|
+
default: string;
|
|
13
|
+
flex: string;
|
|
14
|
+
};
|
|
15
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
16
|
+
variant: {
|
|
17
|
+
default: string;
|
|
18
|
+
flex: string;
|
|
19
|
+
};
|
|
20
|
+
}, undefined, "size-8 touch-manipulation rounded-full", unknown, unknown, undefined>>>["variant"];
|
|
21
|
+
}, {}, "ref">;
|
|
2
22
|
type CarouselPrevious = ReturnType<typeof CarouselPrevious>;
|
|
3
23
|
export default CarouselPrevious;
|
|
4
24
|
//# sourceMappingURL=carousel-previous.svelte.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel-previous.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/carousel/carousel-previous.svelte.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"carousel-previous.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/carousel/carousel-previous.svelte.ts"],"names":[],"mappings":"AAOA,OAAO,EAAU,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,KAAK,YAAY,EAAM,MAAM,mBAAmB,CAAC;AA8C1D,QAAA,MAAM,gBAAgB;aAtC0C,MAAM;cAAY,YAAY;;;;;;;;;;;;;;;0FAAiB,CAAC,SAAS,CAAC;aAsC5D,CAAC;AAC/D,KAAK,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC5D,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { type CarouselAPI, type CarouselProps, type EmblaContext, setEmblaContext } from './context.js';
|
|
3
3
|
import { cn } from '$shadcn/utils.js';
|
|
4
|
+
import emblaCarouselSvelte from 'embla-carousel-svelte';
|
|
4
5
|
|
|
5
6
|
let {
|
|
6
7
|
opts = {},
|
|
@@ -11,6 +12,7 @@
|
|
|
11
12
|
children,
|
|
12
13
|
pointerdown,
|
|
13
14
|
pointerup,
|
|
15
|
+
onSelect: a_onSelect,
|
|
14
16
|
symbol = undefined,
|
|
15
17
|
...restProps
|
|
16
18
|
}: CarouselProps = $props();
|
|
@@ -48,6 +50,7 @@
|
|
|
48
50
|
carouselState.canScrollPrev = api.canScrollPrev();
|
|
49
51
|
carouselState.canScrollNext = api.canScrollNext();
|
|
50
52
|
carouselState.selectedIndex = api.selectedScrollSnap();
|
|
53
|
+
a_onSelect?.(api);
|
|
51
54
|
}
|
|
52
55
|
|
|
53
56
|
function reinit(api: CarouselAPI) {
|
|
@@ -98,6 +101,23 @@
|
|
|
98
101
|
});
|
|
99
102
|
</script>
|
|
100
103
|
|
|
101
|
-
|
|
104
|
+
<!-- svelte-ignore event_directive_deprecated -->
|
|
105
|
+
<div
|
|
106
|
+
class={cn('relative', className)}
|
|
107
|
+
role="region"
|
|
108
|
+
aria-roledescription="carousel"
|
|
109
|
+
{...restProps}
|
|
110
|
+
use:emblaCarouselSvelte={{
|
|
111
|
+
options: {
|
|
112
|
+
container: `[data-embla-container="${symbol?.description ?? 'default'}"]`,
|
|
113
|
+
loop: true,
|
|
114
|
+
slides: `[data-embla-slide="${symbol?.description ?? 'default'}"]`,
|
|
115
|
+
...carouselState.options,
|
|
116
|
+
axis: carouselState.orientation === 'horizontal' ? 'x' : 'y'
|
|
117
|
+
},
|
|
118
|
+
plugins: carouselState.plugins
|
|
119
|
+
}}
|
|
120
|
+
on:emblaInit={carouselState.onInit}
|
|
121
|
+
>
|
|
102
122
|
{@render children?.()}
|
|
103
123
|
</div>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { type CarouselProps } from './context.js';
|
|
2
|
+
declare const Carousel: import("svelte").Component<CarouselProps, {}, "">;
|
|
2
3
|
type Carousel = ReturnType<typeof Carousel>;
|
|
3
4
|
export default Carousel;
|
|
4
5
|
//# sourceMappingURL=carousel.svelte.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/carousel/carousel.svelte.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"carousel.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/carousel/carousel.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,EAAoB,KAAK,aAAa,EAAsC,MAAM,cAAc,CAAC;AA2HxG,QAAA,MAAM,QAAQ,mDAAwC,CAAC;AACvD,KAAK,QAAQ,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AAC5C,eAAe,QAAQ,CAAC"}
|
|
@@ -13,6 +13,7 @@ export type CarouselProps = {
|
|
|
13
13
|
setApi?: (api: CarouselAPI | undefined) => void;
|
|
14
14
|
pointerdown?: (api: CarouselAPI) => void;
|
|
15
15
|
pointerup?: (api: CarouselAPI) => void;
|
|
16
|
+
onSelect?: (api: CarouselAPI) => void;
|
|
16
17
|
orientation?: 'horizontal' | 'vertical';
|
|
17
18
|
} & WithElementRef<HTMLAttributes<HTMLDivElement>>;
|
|
18
19
|
export type EmblaContext = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/carousel/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,KAAK,mBAAmB,MAAM,uBAAuB,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,MAAM,MAAM,WAAW,GACrB,WAAW,CAAC,WAAW,CAAC,uBAAuB,CAAC,eAAe,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,SAAS,CACzF,GAAG,EAAE,WAAW,CAAC,MAAM,WAAW,CAAC,KAChC,IAAI,GACL,WAAW,GACX,KAAK,CAAC;AAEZ,KAAK,mBAAmB,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAElF,MAAM,MAAM,eAAe,GAAG,mBAAmB,CAAC,SAAS,CAAC,CAAC;AAC7D,MAAM,MAAM,eAAe,GAAG,mBAAmB,CAAC,SAAS,CAAC,CAAC;AAI7D,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,GAAG,SAAS,KAAK,IAAI,CAAC;IAChD,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,IAAI,CAAC;IACzC,SAAS,CAAC,E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C;IACvB,aAAa,EAAE,CAAC,CAAC,EAAE,aAAa,KAAK,IAAI,CAAC;IAC1C,OAAO,EAAE,eAAe,CAAC;IACzB,OAAO,EAAE,eAAe,CAAC;IACzB,MAAM,EAAE,CAAC,CAAC,EAAE,WAAW,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAC9C,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAClD,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAIF,wBAAgB,eAAe,CAAC,MAAM,EAAE,YAAY,EAAE,MAAM,GAAE,MAA+B,GAAG,YAAY,CAG3G;AAED,wBAAgB,eAAe,CAAC,IAAI,SAAmB,EAAE,MAAM,GAAE,MAA+B,GAAG,YAAY,CAK9G"}
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { type UseDroppableArguments } from '@dnd-kit-svelte/core';
|
|
2
|
+
import type { ClassValue } from 'clsx';
|
|
3
|
+
import type { Snippet } from 'svelte';
|
|
4
|
+
interface DroppableProps extends UseDroppableArguments {
|
|
5
|
+
children: Snippet;
|
|
6
|
+
class?: ClassValue;
|
|
7
|
+
}
|
|
8
|
+
declare const Droppable: import("svelte").Component<DroppableProps, {}, "">;
|
|
2
9
|
type Droppable = ReturnType<typeof Droppable>;
|
|
3
10
|
export default Droppable;
|
|
4
11
|
//# sourceMappingURL=Droppable.svelte.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Droppable.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/dnd/Droppable.svelte.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Droppable.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/dnd/Droppable.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,EAAgB,KAAK,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAChF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAOpC,UAAU,cAAe,SAAQ,qBAAqB;IACpD,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,UAAU,CAAC;CACpB;AAqBH,QAAA,MAAM,SAAS,oDAAwC,CAAC;AACxD,KAAK,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAC9C,eAAe,SAAS,CAAC"}
|
|
@@ -4,7 +4,7 @@ export type DragPlaceholderProps = {
|
|
|
4
4
|
isDragging: boolean;
|
|
5
5
|
};
|
|
6
6
|
};
|
|
7
|
-
declare const DndDragPlaceholder:
|
|
7
|
+
declare const DndDragPlaceholder: import("svelte").Component<DragPlaceholderProps, {}, "">;
|
|
8
8
|
type DndDragPlaceholder = ReturnType<typeof DndDragPlaceholder>;
|
|
9
9
|
export default DndDragPlaceholder;
|
|
10
10
|
//# sourceMappingURL=dnd-drag-placeholder.svelte.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dnd-drag-placeholder.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/dnd/dnd-drag-placeholder.svelte.ts"],"names":[],"mappings":"AAGE,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE;QAAE,UAAU,EAAE,OAAO,CAAA;KAAE,CAAC;CAChC,CAAC;AAyBJ,QAAA,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"dnd-drag-placeholder.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/dnd/dnd-drag-placeholder.svelte.ts"],"names":[],"mappings":"AAGE,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE;QAAE,UAAU,EAAE,OAAO,CAAA;KAAE,CAAC;CAChC,CAAC;AAyBJ,QAAA,MAAM,kBAAkB,0DAAwC,CAAC;AACjE,KAAK,kBAAkB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAChE,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type DragHandleProps = {
|
|
2
2
|
class?: string;
|
|
3
3
|
};
|
|
4
|
-
declare const DndDraghandle:
|
|
4
|
+
declare const DndDraghandle: import("svelte").Component<DragHandleProps, {}, "">;
|
|
5
5
|
type DndDraghandle = ReturnType<typeof DndDraghandle>;
|
|
6
6
|
export default DndDraghandle;
|
|
7
7
|
//# sourceMappingURL=dnd-draghandle.svelte.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dnd-draghandle.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/dnd/dnd-draghandle.svelte.ts"],"names":[],"mappings":"AAGE,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAqCJ,QAAA,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"dnd-draghandle.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/dnd/dnd-draghandle.svelte.ts"],"names":[],"mappings":"AAGE,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAqCJ,QAAA,MAAM,aAAa,qDAAwC,CAAC;AAC5D,KAAK,aAAa,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AACtD,eAAe,aAAa,CAAC"}
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
export default DndOverlay;
|
|
2
|
-
type DndOverlay = SvelteComponent<
|
|
2
|
+
type DndOverlay = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
3
7
|
$$bindings?: string | undefined;
|
|
4
|
-
}
|
|
5
|
-
declare const DndOverlay: $$__sveltets_2_IsomorphicComponent<
|
|
8
|
+
};
|
|
9
|
+
declare const DndOverlay: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
6
14
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
7
15
|
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
8
16
|
$$bindings?: Bindings;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dnd-overlay.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/dnd/dnd-overlay.svelte.js"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"dnd-overlay.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/dnd/dnd-overlay.svelte.js"],"names":[],"mappings":";;;;;;;;AAcA;;;;mBAAsH;6CATzE,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,QAAQ,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,QAAQ,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,QAAQ,OAAO,OAAO,QAAQ;IAC3L,cAAc,OAAO,QAAQ,EAAE,2BAA2B,CAAC,KAAK,CAAC,GAAG,OAAO,QAAQ,EAAE,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,GAAG;QAAE,UAAU,CAAC,EAAE,QAAQ,CAAA;KAAE,GAAG,OAAO,CAAC;IACjK,WAAW,OAAO,SAAS;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,KAAK,CAAA;KAAC,GAAG,OAAO,GAAG;QAAE,IAAI,CAAC,EAAE,GAAG,CAAC;QAAC,GAAG,CAAC,EAAE,GAAG,CAAA;KAAE,CAAC;IACtG,eAAe,QAAQ,CAAC"}
|
|
@@ -3,7 +3,7 @@ export type SortableContextProps = {
|
|
|
3
3
|
items: string[];
|
|
4
4
|
children: Snippet<[]>;
|
|
5
5
|
};
|
|
6
|
-
declare const DndSortableContext:
|
|
6
|
+
declare const DndSortableContext: import("svelte").Component<SortableContextProps, {}, "">;
|
|
7
7
|
type DndSortableContext = ReturnType<typeof DndSortableContext>;
|
|
8
8
|
export default DndSortableContext;
|
|
9
9
|
//# sourceMappingURL=dnd-sortable-context.svelte.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dnd-sortable-context.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/dnd/dnd-sortable-context.svelte.ts"],"names":[],"mappings":"AAGE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEtC,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;CACvB,CAAC;AAmBJ,QAAA,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"dnd-sortable-context.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/dnd/dnd-sortable-context.svelte.ts"],"names":[],"mappings":"AAGE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEtC,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;CACvB,CAAC;AAmBJ,QAAA,MAAM,kBAAkB,0DAAwC,CAAC;AACjE,KAAK,kBAAkB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAChE,eAAe,kBAAkB,CAAC"}
|
|
@@ -18,7 +18,7 @@ export declare function setItemContext(item: ItemContext): void;
|
|
|
18
18
|
export declare function getItemContext(): ItemContext;
|
|
19
19
|
import type { DraggableAttributes } from '@dnd-kit-svelte/core';
|
|
20
20
|
import type { ReadableBox, WritableBox } from 'svelte-toolbelt';
|
|
21
|
-
declare const DndSortableItem:
|
|
21
|
+
declare const DndSortableItem: import("svelte").Component<SortableItemProps, {}, "">;
|
|
22
22
|
type DndSortableItem = ReturnType<typeof DndSortableItem>;
|
|
23
23
|
export default DndSortableItem;
|
|
24
24
|
//# sourceMappingURL=dnd-sortable-item.svelte.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dnd-sortable-item.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/dnd/dnd-sortable-item.svelte.ts"],"names":[],"mappings":"AAGE,OAAO,KAAK,EAAE,aAAa,EAAY,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAmC,KAAK,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEvE,MAAM,MAAM,sBAAsB,GAAG;IACnC,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG;IAC9C,KAAK,EAAE,OAAO,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC;CAC1C,CAAC;AAIF,MAAM,MAAM,WAAW,GAAG;IACxB,UAAU,EAAE,WAAW,CAAC,mBAAmB,CAAC,CAAC;IAC7C,SAAS,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;IAC5B,aAAa,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;CACzC,CAAC;AAEF,wBAAgB,cAAc,CAAC,IAAI,EAAE,WAAW,QAE/C;AAED,wBAAgB,cAAc,IAAI,WAAW,CAE5C;AAKH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AA+ChE,QAAA,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"dnd-sortable-item.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/dnd/dnd-sortable-item.svelte.ts"],"names":[],"mappings":"AAGE,OAAO,KAAK,EAAE,aAAa,EAAY,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAmC,KAAK,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEvE,MAAM,MAAM,sBAAsB,GAAG;IACnC,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG;IAC9C,KAAK,EAAE,OAAO,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC;CAC1C,CAAC;AAIF,MAAM,MAAM,WAAW,GAAG;IACxB,UAAU,EAAE,WAAW,CAAC,mBAAmB,CAAC,CAAC;IAC7C,SAAS,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;IAC5B,aAAa,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;CACzC,CAAC;AAEF,wBAAgB,cAAc,CAAC,IAAI,EAAE,WAAW,QAE/C;AAED,wBAAgB,cAAc,IAAI,WAAW,CAE5C;AAKH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AA+ChE,QAAA,MAAM,eAAe,uDAAwC,CAAC;AAC9D,KAAK,eAAe,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAC1D,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"example.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/dnd/example.svelte.ts"],"names":[],"mappings":"AAgHA,QAAA,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"example.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/dnd/example.svelte.ts"],"names":[],"mappings":"AAgHA,QAAA,MAAM,OAAO,2DAAwC,CAAC;AACtD,KAAK,OAAO,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;AAC1C,eAAe,OAAO,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import * as Button from '$shadcn/button/index.js';
|
|
2
|
+
declare const FormButton: import("svelte").Component<Button.Props, {}, "ref">;
|
|
2
3
|
type FormButton = ReturnType<typeof FormButton>;
|
|
3
4
|
export default FormButton;
|
|
4
5
|
//# sourceMappingURL=form-button.svelte.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-button.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/form/form-button.svelte.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"form-button.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/form/form-button.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,yBAAyB,CAAC;AA2BlD,QAAA,MAAM,UAAU,qDAAwC,CAAC;AACzD,KAAK,UAAU,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAChD,eAAe,UAAU,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import * as FormPrimitive from "formsnap";
|
|
2
|
+
declare const FormDescription: import("svelte").Component<WithoutChild<FormPrimitive.DescriptionProps>, {}, "ref">;
|
|
2
3
|
type FormDescription = ReturnType<typeof FormDescription>;
|
|
3
4
|
export default FormDescription;
|
|
4
5
|
//# sourceMappingURL=form-description.svelte.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-description.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/form/form-description.svelte.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"form-description.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/form/form-description.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,aAAa,MAAM,UAAU,CAAC;AAkB1C,QAAA,MAAM,eAAe,qFAAwC,CAAC;AAC9D,KAAK,eAAe,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAC1D,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-field-errors.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/form/form-field-errors.svelte.ts"],"names":[],"mappings":"AAoCA,QAAA,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"form-field-errors.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/form/form-field-errors.svelte.ts"],"names":[],"mappings":"AAoCA,QAAA,MAAM,eAAe,4CAAwC,CAAC;AAC9D,KAAK,eAAe,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAC1D,eAAe,eAAe,CAAC"}
|
|
@@ -4,7 +4,7 @@ declare class __sveltets_Render<T extends Record<string, unknown>, U extends For
|
|
|
4
4
|
props(): WithoutChild<FormPrimitive.FieldsetProps<T_1, U_1, any>>;
|
|
5
5
|
events(): {};
|
|
6
6
|
slots(): {};
|
|
7
|
-
bindings():
|
|
7
|
+
bindings(): "ref";
|
|
8
8
|
exports(): {};
|
|
9
9
|
}
|
|
10
10
|
interface $$IsomorphicComponent {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import * as FormPrimitive from "formsnap";
|
|
2
|
+
declare const FormLabel: import("svelte").Component<WithoutChild<FormPrimitive.LabelProps>, {}, "ref">;
|
|
2
3
|
type FormLabel = ReturnType<typeof FormLabel>;
|
|
3
4
|
export default FormLabel;
|
|
4
5
|
//# sourceMappingURL=form-label.svelte.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-label.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/form/form-label.svelte.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"form-label.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/form/form-label.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,aAAa,MAAM,UAAU,CAAC;AA2B1C,QAAA,MAAM,SAAS,+EAAwC,CAAC;AACxD,KAAK,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAC9C,eAAe,SAAS,CAAC"}
|