svelte-ag 0.0.2-dev.81 → 0.0.2-dev.83
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 +16 -30
- 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 +3 -2
- package/src/lib/components/animated/animated.svelte +16 -30
- 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
|
@@ -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"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import * as FormPrimitive from "formsnap";
|
|
2
|
+
declare const FormLegend: import("svelte").Component<WithoutChild<FormPrimitive.LegendProps>, {}, "ref">;
|
|
2
3
|
type FormLegend = ReturnType<typeof FormLegend>;
|
|
3
4
|
export default FormLegend;
|
|
4
5
|
//# sourceMappingURL=form-legend.svelte.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-legend.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/form/form-legend.svelte.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"form-legend.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/form/form-legend.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,aAAa,MAAM,UAAU,CAAC;AAkB1C,QAAA,MAAM,UAAU,gFAAwC,CAAC;AACzD,KAAK,UAAU,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAChD,eAAe,UAAU,CAAC"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
export type FormContext = SuperForm<any>;
|
|
2
2
|
export declare function setFormContext(form: FormContext): void;
|
|
3
3
|
export declare function getFormContext(): FormContext;
|
|
4
|
+
import type { WithElementRef } from 'bits-ui';
|
|
5
|
+
import type { HTMLFormAttributes } from 'svelte/elements';
|
|
4
6
|
import type { SuperForm } from 'sveltekit-superforms';
|
|
5
|
-
|
|
7
|
+
type $$ComponentProps = WithElementRef<HTMLFormAttributes> & {
|
|
8
|
+
form: SuperForm<any>;
|
|
9
|
+
};
|
|
10
|
+
declare const Form: import("svelte").Component<$$ComponentProps, {}, "ref">;
|
|
6
11
|
type Form = ReturnType<typeof Form>;
|
|
7
12
|
export default Form;
|
|
8
13
|
//# sourceMappingURL=form.svelte.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/form/form.svelte.ts"],"names":[],"mappings":"AAIE,MAAM,MAAM,WAAW,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC;AAEzC,wBAAgB,cAAc,CAAC,IAAI,EAAE,WAAW,QAE/C;AAED,wBAAgB,cAAc,IAAI,WAAW,CAE5C;
|
|
1
|
+
{"version":3,"file":"form.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/form/form.svelte.ts"],"names":[],"mappings":"AAIE,MAAM,MAAM,WAAW,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC;AAEzC,wBAAgB,cAAc,CAAC,IAAI,EAAE,WAAW,QAE/C;AAED,wBAAgB,cAAc,IAAI,WAAW,CAE5C;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAG9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAErD,KAAK,gBAAgB,GAAI,cAAc,CAAC,kBAAkB,CAAC,GAAG;IAAE,IAAI,EAAE,SAAS,CAAC,GAAG,CAAC,CAAA;CAAE,CAAC;AA6BxF,QAAA,MAAM,IAAI,yDAAwC,CAAC;AACnD,KAAK,IAAI,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC;AACpC,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
<!-- src/lib/components/pages/GALLERY.svelte -->
|
|
2
|
+
<script lang="ts" generics="Item">
|
|
3
|
+
import { onMount, type Snippet } from 'svelte';
|
|
4
|
+
import { containerSize, cn, type HTMLDivAttributes } from '../../utils/index.js';
|
|
5
|
+
import type { Size } from './utils.js';
|
|
6
|
+
import { packGrid, styleForSize } from './utils.js';
|
|
7
|
+
import type { WithElementRef } from 'bits-ui';
|
|
8
|
+
|
|
9
|
+
let {
|
|
10
|
+
images = $bindable(),
|
|
11
|
+
ref = $bindable(),
|
|
12
|
+
class: className,
|
|
13
|
+
child,
|
|
14
|
+
...restProps
|
|
15
|
+
}: WithElementRef<HTMLDivAttributes> & {
|
|
16
|
+
images: { large: Item[]; medium: Item[]; small: Item[] };
|
|
17
|
+
child: Snippet<[{ props: { style: string }; item: Item; index: number }]>;
|
|
18
|
+
} = $props();
|
|
19
|
+
|
|
20
|
+
type ItemWithSize = Item & { size: Size };
|
|
21
|
+
|
|
22
|
+
let numCols = $state(4);
|
|
23
|
+
|
|
24
|
+
onMount(() => {
|
|
25
|
+
containerSize((size) => {
|
|
26
|
+
let cols = 2;
|
|
27
|
+
if (size.width > 640) {
|
|
28
|
+
cols = 3;
|
|
29
|
+
}
|
|
30
|
+
if (size.width > 768) {
|
|
31
|
+
cols = 4;
|
|
32
|
+
}
|
|
33
|
+
numCols = cols;
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
let large = $derived(images.large.map((img) => ({ ...img, size: 'L' as Size })));
|
|
38
|
+
let medium = $derived(images.medium.map((img) => ({ ...img, size: 'M' as Size })));
|
|
39
|
+
let small = $derived(images.small.map((img) => ({ ...img, size: 'S' as Size })));
|
|
40
|
+
|
|
41
|
+
// $effect.pre(() => {
|
|
42
|
+
// allItems = packGrid($state.snapshot(small), $state.snapshot(medium), $state.snapshot(large), numCols);
|
|
43
|
+
// });
|
|
44
|
+
|
|
45
|
+
let allItems = $derived(
|
|
46
|
+
packGrid($state.snapshot(small), $state.snapshot(medium), $state.snapshot(large), numCols)
|
|
47
|
+
) as ItemWithSize[];
|
|
48
|
+
|
|
49
|
+
export { allItems };
|
|
50
|
+
</script>
|
|
51
|
+
|
|
52
|
+
<div
|
|
53
|
+
bind:this={ref}
|
|
54
|
+
class={cn(
|
|
55
|
+
`
|
|
56
|
+
@vsm:grid-cols-3
|
|
57
|
+
@vmd:grid-cols-4
|
|
58
|
+
grid grid-cols-2 gap-2
|
|
59
|
+
`,
|
|
60
|
+
className
|
|
61
|
+
)}
|
|
62
|
+
{...restProps}
|
|
63
|
+
>
|
|
64
|
+
{#each allItems as o, i (i)}
|
|
65
|
+
{@render child({ props: { style: styleForSize(o.size) }, item: o, index: i })}
|
|
66
|
+
{/each}
|
|
67
|
+
</div>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type Snippet } from 'svelte';
|
|
2
|
+
import { type HTMLDivAttributes } from '../../utils/index.js';
|
|
3
|
+
declare class __sveltets_Render<Item> {
|
|
4
|
+
props(): HTMLDivAttributes & {
|
|
5
|
+
ref?: HTMLElement | null | undefined;
|
|
6
|
+
} & {
|
|
7
|
+
images: {
|
|
8
|
+
large: Item[];
|
|
9
|
+
medium: Item[];
|
|
10
|
+
small: Item[];
|
|
11
|
+
};
|
|
12
|
+
child: Snippet<[{
|
|
13
|
+
props: {
|
|
14
|
+
style: string;
|
|
15
|
+
};
|
|
16
|
+
item: Item;
|
|
17
|
+
index: number;
|
|
18
|
+
}]>;
|
|
19
|
+
};
|
|
20
|
+
events(): {};
|
|
21
|
+
slots(): {};
|
|
22
|
+
bindings(): "ref" | "images";
|
|
23
|
+
exports(): {};
|
|
24
|
+
}
|
|
25
|
+
interface $$IsomorphicComponent {
|
|
26
|
+
new <Item>(options: import('svelte').ComponentConstructorOptions<ReturnType<__sveltets_Render<Item>['props']>>): import('svelte').SvelteComponent<ReturnType<__sveltets_Render<Item>['props']>, ReturnType<__sveltets_Render<Item>['events']>, ReturnType<__sveltets_Render<Item>['slots']>> & {
|
|
27
|
+
$$bindings?: ReturnType<__sveltets_Render<Item>['bindings']>;
|
|
28
|
+
} & ReturnType<__sveltets_Render<Item>['exports']>;
|
|
29
|
+
<Item>(internal: unknown, props: ReturnType<__sveltets_Render<Item>['props']> & {}): ReturnType<__sveltets_Render<Item>['exports']>;
|
|
30
|
+
z_$$bindings?: ReturnType<__sveltets_Render<any>['bindings']>;
|
|
31
|
+
}
|
|
32
|
+
declare const Gallery: $$IsomorphicComponent;
|
|
33
|
+
type Gallery<Item> = InstanceType<typeof Gallery<Item>>;
|
|
34
|
+
export default Gallery;
|
|
35
|
+
//# sourceMappingURL=gallery.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gallery.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/gallery/gallery.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,EAAW,KAAK,OAAO,EAAE,MAAM,QAAQ,CAAC;AAC/C,OAAO,EAAqB,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAuE5E,cAAM,iBAAiB,CAAC,IAAI;IACxB,KAAK;;;;;;;;;;uBA5D6B,MAAM;;;mBAAuB,MAAM;;;IA+DrE,MAAM;IAGN,KAAK;IAGL,QAAQ;IACR,OAAO;CACV;AAED,UAAU,qBAAqB;IAC3B,KAAK,IAAI,EAAE,OAAO,EAAE,OAAO,QAAQ,EAAE,2BAA2B,CAAC,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG;QAAE,UAAU,CAAC,EAAE,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,CAAC,CAAA;KAAE,GAAG,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;IACjZ,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,GAAG,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;IACpI,YAAY,CAAC,EAAE,UAAU,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;CACjE;AACD,QAAA,MAAM,OAAO,EAAE,qBAAmC,CAAC;AACjC,KAAK,OAAO,CAAC,IAAI,IAAI,YAAY,CAAC,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AAC1D,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/gallery/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,kBAAkB,CAAC;AAEvC,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type Size = 'S' | 'M' | 'L';
|
|
2
|
+
/**
|
|
3
|
+
* Gets the style statement for a particular size
|
|
4
|
+
*/
|
|
5
|
+
export declare function styleForSize(size: Size): string;
|
|
6
|
+
/**
|
|
7
|
+
* Packs images of different sizes into a grid layout
|
|
8
|
+
* @param small Array of small-sized items to place in grid
|
|
9
|
+
* @param medium Array of medium-sized items to place in grid
|
|
10
|
+
* @param large Array of large-sized items to place in grid
|
|
11
|
+
* @param cols Number of columns in the grid
|
|
12
|
+
* @returns Array of items arranged in optimal grid order
|
|
13
|
+
*/
|
|
14
|
+
export declare function packGrid<Item extends {
|
|
15
|
+
size: Size;
|
|
16
|
+
}>(small: Item[], medium: Item[], large: Item[], cols?: number): Item[];
|
|
17
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/gallery/utils.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AASnC;;GAEG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,IAAI,UAEtC;AAED;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,IAAI,SAAS;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,IAAI,SAAI,GAAG,IAAI,EAAE,CA8EpH"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
const w = { S: 1, M: 1, L: 2 };
|
|
2
|
+
const h = { S: 1, M: 2, L: 3 };
|
|
3
|
+
function imageSize(size) {
|
|
4
|
+
return [w[size], h[size]];
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Gets the style statement for a particular size
|
|
8
|
+
*/
|
|
9
|
+
export function styleForSize(size) {
|
|
10
|
+
return `grid-column: span ${imageSize(size)[0]}; grid-row: span ${imageSize(size)[1]};`;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Packs images of different sizes into a grid layout
|
|
14
|
+
* @param small Array of small-sized items to place in grid
|
|
15
|
+
* @param medium Array of medium-sized items to place in grid
|
|
16
|
+
* @param large Array of large-sized items to place in grid
|
|
17
|
+
* @param cols Number of columns in the grid
|
|
18
|
+
* @returns Array of items arranged in optimal grid order
|
|
19
|
+
*/
|
|
20
|
+
export function packGrid(small, medium, large, cols = 4) {
|
|
21
|
+
const result = [];
|
|
22
|
+
// Create a 2D grid to track occupied cells (32 rows max, adjustable column width)
|
|
23
|
+
const occ = Array.from({ length: 32 }, () => Array(cols).fill(false));
|
|
24
|
+
let r = 0, // Current row
|
|
25
|
+
c = 0, // Current column
|
|
26
|
+
lastSize = null; // Track last placed item size for variety
|
|
27
|
+
// Check if we still have any items to place
|
|
28
|
+
const hasStock = () => small.length || medium.length || large.length;
|
|
29
|
+
// Organize items by size for easy access
|
|
30
|
+
const pool = { S: small, M: medium, L: large };
|
|
31
|
+
// Dynamic preference ordering strategy for visual variety
|
|
32
|
+
// After placing one size, prefer different sizes next for better distribution
|
|
33
|
+
const pref = (prev) => {
|
|
34
|
+
if (prev === 'L')
|
|
35
|
+
return ['S', 'M', 'L']; // After large, prefer small
|
|
36
|
+
if (prev === 'S')
|
|
37
|
+
return ['L', 'M', 'S']; // After small, prefer large
|
|
38
|
+
if (prev === 'M')
|
|
39
|
+
return ['S', 'L', 'M']; // After medium, prefer small
|
|
40
|
+
return ['L', 'M', 'S']; // Initial preference (start with large items)
|
|
41
|
+
};
|
|
42
|
+
while (hasStock()) {
|
|
43
|
+
// Skip already occupied cells
|
|
44
|
+
while (occ[r]?.[c]) {
|
|
45
|
+
// Move to next row if end of column reached
|
|
46
|
+
if (++c === cols) {
|
|
47
|
+
c = 0;
|
|
48
|
+
r++;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
// Check if item of given size can fit at current position
|
|
52
|
+
const fits = (size) => {
|
|
53
|
+
// Check if item would extend beyond right edge
|
|
54
|
+
if (c + w[size] > cols)
|
|
55
|
+
return false;
|
|
56
|
+
// Check if all required cells are unoccupied
|
|
57
|
+
for (let y = 0; y < h[size]; y++)
|
|
58
|
+
for (let x = 0; x < w[size]; x++)
|
|
59
|
+
if (occ[r + y]?.[c + x])
|
|
60
|
+
return false;
|
|
61
|
+
return true;
|
|
62
|
+
};
|
|
63
|
+
let chosen;
|
|
64
|
+
// Try to place items in preferred size order
|
|
65
|
+
for (const sz of pref(lastSize)) {
|
|
66
|
+
if (pool[sz].length && fits(sz)) {
|
|
67
|
+
chosen = pool[sz].shift();
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
if (!chosen) {
|
|
72
|
+
// If no item fits at current position, move to next cell
|
|
73
|
+
if (++c === cols) {
|
|
74
|
+
c = 0;
|
|
75
|
+
r++;
|
|
76
|
+
}
|
|
77
|
+
continue;
|
|
78
|
+
}
|
|
79
|
+
// Mark grid cells as occupied based on item dimensions
|
|
80
|
+
const sx = w[chosen.size], sy = h[chosen.size];
|
|
81
|
+
for (let y = 0; y < sy; y++)
|
|
82
|
+
for (let x = 0; x < sx; x++)
|
|
83
|
+
occ[r + y][c + x] = true;
|
|
84
|
+
result.push(chosen);
|
|
85
|
+
lastSize = chosen.size; // Remember this size for next preference calculation
|
|
86
|
+
c += sx; // Move cursor past the placed item
|
|
87
|
+
// Move to next row if needed
|
|
88
|
+
if (c === cols) {
|
|
89
|
+
c = 0;
|
|
90
|
+
r++;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
return result;
|
|
94
|
+
}
|
|
@@ -1,66 +1,60 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { WebGlShader } from 'svader';
|
|
3
|
+
import type { Vec2, Vec4 } from '../../utils/glsl.js';
|
|
4
|
+
import fragment from './gradient.frag?raw';
|
|
5
|
+
import { cn } from '../../utils';
|
|
6
|
+
import type { BitsPrimitiveDivAttributes } from 'bits-ui';
|
|
3
7
|
|
|
4
8
|
let {
|
|
9
|
+
class: className,
|
|
5
10
|
center,
|
|
6
11
|
edge,
|
|
7
12
|
noise,
|
|
8
|
-
centerPos = [
|
|
9
|
-
radius = [
|
|
10
|
-
}:
|
|
13
|
+
centerPos = [0.5, 0.5],
|
|
14
|
+
radius = [1.0, 1.0]
|
|
15
|
+
}: BitsPrimitiveDivAttributes & {
|
|
16
|
+
center: Vec4;
|
|
17
|
+
edge: Vec4;
|
|
18
|
+
noise: number;
|
|
19
|
+
centerPos?: Vec2;
|
|
20
|
+
radius?: Vec2;
|
|
21
|
+
} = $props();
|
|
11
22
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
out vec4 fragColor;
|
|
17
|
-
|
|
18
|
-
uniform vec2 u_resolution;
|
|
19
|
-
uniform vec2 u_offset;
|
|
20
|
-
|
|
21
|
-
// Pseudo-random number between 0 and 1 generator
|
|
22
|
-
float dither(vec2 pos) {
|
|
23
|
-
return fract(sin(dot(pos, vec2(12.9898, 78.233))) * 43758.5453);
|
|
23
|
+
function toRgba(color: Vec4): string {
|
|
24
|
+
const [r, g, b, a] = color.map((c) => Math.round(c * 255));
|
|
25
|
+
return `rgba(${r}, ${g}, ${b}, ${color[3].toFixed(3)})`;
|
|
24
26
|
}
|
|
25
|
-
|
|
26
|
-
void main() {
|
|
27
|
-
vec2 fragPos = gl_FragCoord.xy + u_offset;
|
|
28
27
|
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
let fallbackBackground = $derived.by(() => {
|
|
29
|
+
// Convert Vec4 colors to rgba() CSS strings
|
|
30
|
+
const centerColorRgba = toRgba(center);
|
|
31
|
+
const edgeColorRgba = toRgba(edge);
|
|
31
32
|
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
const posX = centerPos[0] * 100;
|
|
34
|
+
const posY = centerPos[1] * 100;
|
|
34
35
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
// float t = d / maxDist;
|
|
36
|
+
const sizeX = radius[0] * 100;
|
|
37
|
+
const sizeY = radius[1] * 100;
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
vec2 norm = diff / radiusPx;
|
|
42
|
-
float t = length(norm);
|
|
43
|
-
|
|
44
|
-
// Dither strength (1/255 ~ 8-bit step size)
|
|
45
|
-
float noise = (dither(gl_FragCoord.xy) - 0.5) * ( ${noise} / 255.0);
|
|
46
|
-
|
|
47
|
-
vec4 c1 = vec4(${center}); // center
|
|
48
|
-
vec4 c2 = vec4(${edge}); // edge
|
|
49
|
-
|
|
50
|
-
fragColor = mix(c1, c2, clamp(t + noise, 0.0, 1.0));
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
`;
|
|
39
|
+
return `radial-gradient(ellipse ${sizeX}% ${sizeY}% at ${posX}% ${posY}%, ${centerColorRgba}, ${edgeColorRgba})`;
|
|
40
|
+
});
|
|
54
41
|
</script>
|
|
55
42
|
|
|
56
|
-
<
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
{
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
43
|
+
<div class={cn('h-full w-full', className)}>
|
|
44
|
+
<WebGlShader
|
|
45
|
+
width="100%"
|
|
46
|
+
height="100%"
|
|
47
|
+
code={fragment}
|
|
48
|
+
parameters={[
|
|
49
|
+
{ name: 'u_resolution', value: 'resolution' },
|
|
50
|
+
{ name: 'u_offset', value: 'offset' },
|
|
51
|
+
{ name: 'u_centerPos', type: 'vec2', value: centerPos },
|
|
52
|
+
{ name: 'u_radius', type: 'vec2', value: radius },
|
|
53
|
+
{ name: 'u_noise', type: 'float', value: noise },
|
|
54
|
+
{ name: 'u_centerColor', type: 'vec4', value: center },
|
|
55
|
+
{ name: 'u_edgeColor', type: 'vec4', value: edge }
|
|
56
|
+
]}
|
|
57
|
+
>
|
|
58
|
+
<div style="background: {fallbackBackground};" class="fallback size-full"></div>
|
|
59
|
+
</WebGlShader>
|
|
60
|
+
</div>
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Vec2, Vec4 } from '../../utils/glsl.js';
|
|
2
|
+
import type { BitsPrimitiveDivAttributes } from 'bits-ui';
|
|
3
|
+
type $$ComponentProps = BitsPrimitiveDivAttributes & {
|
|
4
|
+
center: Vec4;
|
|
5
|
+
edge: Vec4;
|
|
6
|
+
noise: number;
|
|
7
|
+
centerPos?: Vec2;
|
|
8
|
+
radius?: Vec2;
|
|
9
|
+
};
|
|
10
|
+
declare const Gradient: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
2
11
|
type Gradient = ReturnType<typeof Gradient>;
|
|
3
12
|
export default Gradient;
|
|
4
13
|
//# sourceMappingURL=Gradient.svelte.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Gradient.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/gradient/Gradient.svelte.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Gradient.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/gradient/Gradient.svelte.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAGjD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAEzD,KAAK,gBAAgB,GAAI,0BAA0B,GAAG;IACnD,MAAM,EAAE,IAAI,CAAC;IACb,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,MAAM,CAAC,EAAE,IAAI,CAAC;CACf,CAAC;AAqDJ,QAAA,MAAM,QAAQ,sDAAwC,CAAC;AACvD,KAAK,QAAQ,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AAC5C,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
#version 300 es
|
|
2
|
+
|
|
3
|
+
precision highp float;
|
|
4
|
+
|
|
5
|
+
out vec4 fragColor;
|
|
6
|
+
|
|
7
|
+
uniform vec2 u_resolution;
|
|
8
|
+
uniform vec2 u_offset;
|
|
9
|
+
|
|
10
|
+
uniform vec2 u_centerPos;
|
|
11
|
+
uniform vec2 u_radius;
|
|
12
|
+
uniform float u_noise;
|
|
13
|
+
uniform vec4 u_centerColor;
|
|
14
|
+
uniform vec4 u_edgeColor;
|
|
15
|
+
|
|
16
|
+
// Pseudo-random number between 0 and 1 generator
|
|
17
|
+
float dither(vec2 pos) {
|
|
18
|
+
return fract(sin(dot(pos, vec2(12.9898, 78.233))) * 43758.5453);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
void main() {
|
|
22
|
+
vec2 fragPos = gl_FragCoord.xy + u_offset;
|
|
23
|
+
|
|
24
|
+
vec2 centerPx = u_centerPos * u_resolution;
|
|
25
|
+
vec2 radiusPx = u_radius * u_resolution;
|
|
26
|
+
|
|
27
|
+
// Calculate distance from the center of the canvas
|
|
28
|
+
float d = distance(fragPos, u_resolution / 2.0);
|
|
29
|
+
|
|
30
|
+
// Calculate max distance from center to corner of the canvas
|
|
31
|
+
float maxDist = length(u_resolution / 2.0);
|
|
32
|
+
// float t = d / maxDist;
|
|
33
|
+
|
|
34
|
+
// compute “stretched” distance
|
|
35
|
+
vec2 diff = fragPos - centerPx;
|
|
36
|
+
vec2 norm = diff / radiusPx;
|
|
37
|
+
float t = length(norm);
|
|
38
|
+
|
|
39
|
+
// Dither strength (1/255 ~ 8-bit step size)
|
|
40
|
+
float noise = (dither(gl_FragCoord.xy) - 0.5) * (u_noise / 255.0);
|
|
41
|
+
|
|
42
|
+
fragColor = mix(u_centerColor, u_edgeColor, clamp(t + noise, 0.0, 1.0));
|
|
43
|
+
}
|
|
@@ -3,7 +3,7 @@ import type { WithElementRef } from 'svelte-toolbelt';
|
|
|
3
3
|
export type Props = WithElementRef<HTMLDivAttributes> & {
|
|
4
4
|
links?: boolean;
|
|
5
5
|
};
|
|
6
|
-
declare const Safe:
|
|
6
|
+
declare const Safe: import("svelte").Component<Props, {}, "">;
|
|
7
7
|
type Safe = ReturnType<typeof Safe>;
|
|
8
8
|
export default Safe;
|
|
9
9
|
//# sourceMappingURL=safe.svelte.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"safe.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/safe/safe.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,EAAM,KAAK,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGpD,MAAM,MAAM,KAAK,GAAG,cAAc,CAAC,iBAAiB,CAAC,GAAG;IACtD,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAqBJ,QAAA,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"safe.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/safe/safe.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,EAAM,KAAK,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGpD,MAAM,MAAM,KAAK,GAAG,cAAc,CAAC,iBAAiB,CAAC,GAAG;IACtD,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAqBJ,QAAA,MAAM,IAAI,2CAAwC,CAAC;AACnD,KAAK,IAAI,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC;AACpC,eAAe,IAAI,CAAC"}
|
|
@@ -7,7 +7,17 @@ export type SearchPopoverProps = {
|
|
|
7
7
|
} & Omit<PopoverTriggerProps, 'value'>;
|
|
8
8
|
import { Search } from '../index.js';
|
|
9
9
|
import type { PopoverTriggerProps } from 'bits-ui';
|
|
10
|
-
declare const SearchPopover:
|
|
10
|
+
declare const SearchPopover: import("svelte").Component<SearchPopoverProps, {
|
|
11
|
+
focus: () => void;
|
|
12
|
+
searchPagnation: ({
|
|
13
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
14
|
+
$set?(props: Partial<Search.PagnationProps>): void;
|
|
15
|
+
} & {
|
|
16
|
+
activeItems: (import("../types.js").Item & {
|
|
17
|
+
score?: number;
|
|
18
|
+
})[];
|
|
19
|
+
}) | null;
|
|
20
|
+
}, "value" | "perPage">;
|
|
11
21
|
type SearchPopover = ReturnType<typeof SearchPopover>;
|
|
12
22
|
export default SearchPopover;
|
|
13
23
|
//# sourceMappingURL=searchPopover.svelte.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchPopover.svelte.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/search/combinations/searchPopover.svelte.ts"],"names":[],"mappings":"AAGE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;IAC3C,IAAI,EAAE,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAC/B,KAAK,EAAE,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;CACrC,GAAG,IAAI,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;AAGzC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAGrC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AA0DnD,QAAA,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"searchPopover.svelte.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/search/combinations/searchPopover.svelte.ts"],"names":[],"mappings":"AAGE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;IAC3C,IAAI,EAAE,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAC/B,KAAK,EAAE,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;CACrC,GAAG,IAAI,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;AAGzC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAGrC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AA0DnD,QAAA,MAAM,aAAa;;;;;;;;;;uBAAwC,CAAC;AAC5D,KAAK,aAAa,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AACtD,eAAe,aAAa,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import type { SearchEmptyProps } from '../types';
|
|
2
|
+
declare const SearchEmpty: import("svelte").Component<SearchEmptyProps, {}, "ref">;
|
|
2
3
|
type SearchEmpty = ReturnType<typeof SearchEmpty>;
|
|
3
4
|
export default SearchEmpty;
|
|
4
5
|
//# sourceMappingURL=search-empty.svelte.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-empty.svelte.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/search/components/search-empty.svelte.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"search-empty.svelte.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/search/components/search-empty.svelte.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAoCjD,QAAA,MAAM,WAAW,yDAAwC,CAAC;AAC1D,KAAK,WAAW,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAClD,eAAe,WAAW,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import type { SearchInputProps } from '../types';
|
|
2
|
+
declare const SearchInput: import("svelte").Component<SearchInputProps, {}, "value" | "ref">;
|
|
2
3
|
type SearchInput = ReturnType<typeof SearchInput>;
|
|
3
4
|
export default SearchInput;
|
|
4
5
|
//# sourceMappingURL=search-input.svelte.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-input.svelte.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/search/components/search-input.svelte.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"search-input.svelte.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/search/components/search-input.svelte.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAuDjD,QAAA,MAAM,WAAW,mEAAwC,CAAC;AAC1D,KAAK,WAAW,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAClD,eAAe,WAAW,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import type { SearchListProps } from '../types';
|
|
2
|
+
declare const SearchList: import("svelte").Component<SearchListProps, {}, "ref">;
|
|
2
3
|
type SearchList = ReturnType<typeof SearchList>;
|
|
3
4
|
export default SearchList;
|
|
4
5
|
//# sourceMappingURL=search-list.svelte.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-list.svelte.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/search/components/search-list.svelte.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"search-list.svelte.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/search/components/search-list.svelte.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAmDhD,QAAA,MAAM,UAAU,wDAAwC,CAAC;AACzD,KAAK,UAAU,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAChD,eAAe,UAAU,CAAC"}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import type { SearchPagnationProps } from '../types';
|
|
2
|
+
declare const SearchPagnation: import("svelte").Component<SearchPagnationProps, {
|
|
3
|
+
activeItems: (import("../types").Item & {
|
|
4
|
+
score?: number;
|
|
5
|
+
})[];
|
|
6
|
+
}, "page" | "ref" | "perPage">;
|
|
2
7
|
type SearchPagnation = ReturnType<typeof SearchPagnation>;
|
|
3
8
|
export default SearchPagnation;
|
|
4
9
|
//# sourceMappingURL=search-pagnation.svelte.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-pagnation.svelte.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/search/components/search-pagnation.svelte.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"search-pagnation.svelte.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/search/components/search-pagnation.svelte.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AA6ErD,QAAA,MAAM,eAAe;;;;8BAAwC,CAAC;AAC9D,KAAK,eAAe,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAC1D,eAAe,eAAe,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import type { SearchProps } from '../types';
|
|
2
|
+
declare const Search: import("svelte").Component<SearchProps, {}, "value" | "ref" | "items" | "searchWith">;
|
|
2
3
|
type Search = ReturnType<typeof Search>;
|
|
3
4
|
export default Search;
|
|
4
5
|
//# sourceMappingURL=search.svelte.d.ts.map
|