@skeletonlabs/skeleton-svelte 2.0.0-next.4 → 2.0.0-next.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/accordion/anatomy/content.svelte +6 -5
- package/dist/components/accordion/anatomy/content.svelte.d.ts +2 -1
- package/dist/components/accordion/anatomy/content.svelte.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/heading.svelte +3 -3
- package/dist/components/accordion/anatomy/heading.svelte.d.ts +1 -0
- package/dist/components/accordion/anatomy/heading.svelte.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/indicator.svelte +4 -3
- package/dist/components/accordion/anatomy/indicator.svelte.d.ts +2 -1
- package/dist/components/accordion/anatomy/indicator.svelte.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/item.svelte +8 -6
- package/dist/components/accordion/anatomy/item.svelte.d.ts +2 -1
- package/dist/components/accordion/anatomy/item.svelte.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/root-context.svelte +1 -0
- package/dist/components/accordion/anatomy/root-context.svelte.d.ts +1 -0
- package/dist/components/accordion/anatomy/root-context.svelte.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/root-provider.svelte +3 -1
- package/dist/components/accordion/anatomy/root-provider.svelte.d.ts +1 -0
- package/dist/components/accordion/anatomy/root-provider.svelte.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/root.svelte +7 -5
- package/dist/components/accordion/anatomy/root.svelte.d.ts +1 -0
- package/dist/components/accordion/anatomy/root.svelte.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/trigger.svelte +5 -4
- package/dist/components/accordion/anatomy/trigger.svelte.d.ts +1 -0
- package/dist/components/accordion/anatomy/trigger.svelte.d.ts.map +1 -0
- package/dist/components/accordion/index.d.ts +8 -7
- package/dist/components/accordion/index.d.ts.map +1 -0
- package/dist/components/accordion/modules/anatomy.d.ts +1 -0
- package/dist/components/accordion/modules/anatomy.d.ts.map +1 -0
- package/dist/components/accordion/modules/anatomy.js +6 -6
- package/dist/components/accordion/modules/item-context.d.ts +1 -0
- package/dist/components/accordion/modules/item-context.d.ts.map +1 -0
- package/dist/components/accordion/modules/root-context.d.ts +6 -0
- package/dist/components/accordion/modules/root-context.d.ts.map +1 -0
- package/dist/components/accordion/modules/use-accordion.svelte.d.ts +3 -0
- package/dist/components/accordion/modules/use-accordion.svelte.d.ts.map +1 -0
- package/dist/components/accordion/modules/use-accordion.svelte.js +1 -1
- package/dist/components/avatar/anatomy/fallback.svelte +5 -4
- package/dist/components/avatar/anatomy/fallback.svelte.d.ts +2 -1
- package/dist/components/avatar/anatomy/fallback.svelte.d.ts.map +1 -0
- package/dist/components/avatar/anatomy/image.svelte +5 -4
- package/dist/components/avatar/anatomy/image.svelte.d.ts +2 -1
- package/dist/components/avatar/anatomy/image.svelte.d.ts.map +1 -0
- package/dist/components/avatar/anatomy/root-context.svelte +1 -0
- package/dist/components/avatar/anatomy/root-context.svelte.d.ts +1 -0
- package/dist/components/avatar/anatomy/root-context.svelte.d.ts.map +1 -0
- package/dist/components/avatar/anatomy/root-provider.svelte +5 -3
- package/dist/components/avatar/anatomy/root-provider.svelte.d.ts +1 -0
- package/dist/components/avatar/anatomy/root-provider.svelte.d.ts.map +1 -0
- package/dist/components/avatar/anatomy/root.svelte +8 -6
- package/dist/components/avatar/anatomy/root.svelte.d.ts +2 -1
- package/dist/components/avatar/anatomy/root.svelte.d.ts.map +1 -0
- package/dist/components/avatar/index.d.ts +6 -5
- package/dist/components/avatar/index.d.ts.map +1 -0
- package/dist/components/avatar/modules/anatomy.d.ts +1 -0
- package/dist/components/avatar/modules/anatomy.d.ts.map +1 -0
- package/dist/components/avatar/modules/anatomy.js +4 -4
- package/dist/components/avatar/modules/root-context.d.ts +6 -0
- package/dist/components/avatar/modules/root-context.d.ts.map +1 -0
- package/dist/components/avatar/modules/use-avatar.svelte.d.ts +3 -0
- package/dist/components/avatar/modules/use-avatar.svelte.d.ts.map +1 -0
- package/dist/components/avatar/modules/use-avatar.svelte.js +1 -1
- package/dist/components/file-upload/anatomy/dropzone.svelte +35 -0
- package/dist/components/file-upload/anatomy/dropzone.svelte.d.ts +9 -0
- package/dist/components/file-upload/anatomy/dropzone.svelte.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/hidden-input.svelte +31 -0
- package/dist/components/file-upload/anatomy/hidden-input.svelte.d.ts +8 -0
- package/dist/components/file-upload/anatomy/hidden-input.svelte.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/item-delete-trigger.svelte +39 -0
- package/dist/components/file-upload/anatomy/item-delete-trigger.svelte.d.ts +8 -0
- package/dist/components/file-upload/anatomy/item-delete-trigger.svelte.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/item-group.svelte +33 -0
- package/dist/components/file-upload/anatomy/item-group.svelte.d.ts +8 -0
- package/dist/components/file-upload/anatomy/item-group.svelte.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/item-name.svelte +35 -0
- package/dist/components/file-upload/anatomy/item-name.svelte.d.ts +8 -0
- package/dist/components/file-upload/anatomy/item-name.svelte.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/item-size-text.svelte +35 -0
- package/dist/components/file-upload/anatomy/item-size-text.svelte.d.ts +8 -0
- package/dist/components/file-upload/anatomy/item-size-text.svelte.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/item.svelte +39 -0
- package/dist/components/file-upload/anatomy/item.svelte.d.ts +9 -0
- package/dist/components/file-upload/anatomy/item.svelte.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/root-context.svelte +20 -0
- package/dist/components/file-upload/anatomy/root-context.svelte.d.ts +9 -0
- package/dist/components/file-upload/anatomy/root-context.svelte.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/root-provider.svelte +37 -0
- package/dist/components/file-upload/anatomy/root-provider.svelte.d.ts +10 -0
- package/dist/components/file-upload/anatomy/root-provider.svelte.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/root.svelte +44 -0
- package/dist/components/file-upload/anatomy/root.svelte.d.ts +9 -0
- package/dist/components/file-upload/anatomy/root.svelte.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/trigger.svelte +33 -0
- package/dist/components/file-upload/anatomy/trigger.svelte.d.ts +8 -0
- package/dist/components/file-upload/anatomy/trigger.svelte.d.ts.map +1 -0
- package/dist/components/file-upload/index.d.ts +12 -0
- package/dist/components/file-upload/index.d.ts.map +1 -0
- package/dist/components/file-upload/index.js +2 -0
- package/dist/components/file-upload/modules/anatomy.d.ts +13 -0
- package/dist/components/file-upload/modules/anatomy.d.ts.map +1 -0
- package/dist/components/file-upload/modules/anatomy.js +23 -0
- package/dist/components/file-upload/modules/item-context.d.ts +7 -0
- package/dist/components/file-upload/modules/item-context.d.ts.map +1 -0
- package/dist/components/file-upload/modules/item-context.js +2 -0
- package/dist/components/file-upload/modules/root-context.d.ts +6 -0
- package/dist/components/file-upload/modules/root-context.d.ts.map +1 -0
- package/dist/components/file-upload/modules/root-context.js +2 -0
- package/dist/components/file-upload/modules/use-file-upload.svelte.d.ts +3 -0
- package/dist/components/file-upload/modules/use-file-upload.svelte.d.ts.map +1 -0
- package/dist/components/file-upload/modules/use-file-upload.svelte.js +7 -0
- package/dist/components/progress-linear/anatomy/label.svelte +5 -4
- package/dist/components/progress-linear/anatomy/label.svelte.d.ts +2 -1
- package/dist/components/progress-linear/anatomy/label.svelte.d.ts.map +1 -0
- package/dist/components/progress-linear/anatomy/range.svelte +5 -4
- package/dist/components/progress-linear/anatomy/range.svelte.d.ts +2 -1
- package/dist/components/progress-linear/anatomy/range.svelte.d.ts.map +1 -0
- package/dist/components/progress-linear/anatomy/root-context.svelte +1 -0
- package/dist/components/progress-linear/anatomy/root-context.svelte.d.ts +1 -0
- package/dist/components/progress-linear/anatomy/root-context.svelte.d.ts.map +1 -0
- package/dist/components/progress-linear/anatomy/root-provider.svelte +5 -3
- package/dist/components/progress-linear/anatomy/root-provider.svelte.d.ts +1 -0
- package/dist/components/progress-linear/anatomy/root-provider.svelte.d.ts.map +1 -0
- package/dist/components/progress-linear/anatomy/root.svelte +7 -5
- package/dist/components/progress-linear/anatomy/root.svelte.d.ts +2 -1
- package/dist/components/progress-linear/anatomy/root.svelte.d.ts.map +1 -0
- package/dist/components/progress-linear/anatomy/track.svelte +5 -4
- package/dist/components/progress-linear/anatomy/track.svelte.d.ts +2 -1
- package/dist/components/progress-linear/anatomy/track.svelte.d.ts.map +1 -0
- package/dist/components/progress-linear/index.d.ts +6 -5
- package/dist/components/progress-linear/index.d.ts.map +1 -0
- package/dist/components/progress-linear/modules/anatomy.d.ts +1 -0
- package/dist/components/progress-linear/modules/anatomy.d.ts.map +1 -0
- package/dist/components/progress-linear/modules/anatomy.js +3 -3
- package/dist/components/progress-linear/modules/root-context.d.ts +6 -0
- package/dist/components/progress-linear/modules/root-context.d.ts.map +1 -0
- package/dist/components/progress-linear/modules/use-progress-linear.svelte.d.ts +3 -0
- package/dist/components/progress-linear/modules/use-progress-linear.svelte.d.ts.map +1 -0
- package/dist/components/progress-linear/modules/use-progress-linear.svelte.js +1 -1
- package/dist/components/rating-group/anatomy/control.svelte +4 -3
- package/dist/components/rating-group/anatomy/control.svelte.d.ts +1 -0
- package/dist/components/rating-group/anatomy/control.svelte.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/hidden-input.svelte +5 -4
- package/dist/components/rating-group/anatomy/hidden-input.svelte.d.ts +2 -1
- package/dist/components/rating-group/anatomy/hidden-input.svelte.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/item.svelte +10 -7
- package/dist/components/rating-group/anatomy/item.svelte.d.ts +2 -1
- package/dist/components/rating-group/anatomy/item.svelte.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/label.svelte +5 -4
- package/dist/components/rating-group/anatomy/label.svelte.d.ts +2 -1
- package/dist/components/rating-group/anatomy/label.svelte.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/root-context.svelte +1 -0
- package/dist/components/rating-group/anatomy/root-context.svelte.d.ts +1 -0
- package/dist/components/rating-group/anatomy/root-context.svelte.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/root-provider.svelte +6 -4
- package/dist/components/rating-group/anatomy/root-provider.svelte.d.ts +2 -1
- package/dist/components/rating-group/anatomy/root-provider.svelte.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/root.svelte +8 -6
- package/dist/components/rating-group/anatomy/root.svelte.d.ts +2 -1
- package/dist/components/rating-group/anatomy/root.svelte.d.ts.map +1 -0
- package/dist/components/rating-group/index.d.ts +8 -7
- package/dist/components/rating-group/index.d.ts.map +1 -0
- package/dist/components/rating-group/modules/anatomy.d.ts +1 -0
- package/dist/components/rating-group/modules/anatomy.d.ts.map +1 -0
- package/dist/components/rating-group/modules/anatomy.js +6 -6
- package/dist/components/rating-group/modules/root-context.d.ts +6 -0
- package/dist/components/rating-group/modules/root-context.d.ts.map +1 -0
- package/dist/components/rating-group/modules/use-rating-group.svelte.d.ts +3 -0
- package/dist/components/rating-group/modules/use-rating-group.svelte.d.ts.map +1 -0
- package/dist/components/rating-group/modules/use-rating-group.svelte.js +1 -1
- package/dist/components/switch/anatomy/control.svelte +5 -4
- package/dist/components/switch/anatomy/control.svelte.d.ts +2 -1
- package/dist/components/switch/anatomy/control.svelte.d.ts.map +1 -0
- package/dist/components/switch/anatomy/hidden-input.svelte +5 -4
- package/dist/components/switch/anatomy/hidden-input.svelte.d.ts +2 -1
- package/dist/components/switch/anatomy/hidden-input.svelte.d.ts.map +1 -0
- package/dist/components/switch/anatomy/label.svelte +5 -4
- package/dist/components/switch/anatomy/label.svelte.d.ts +2 -1
- package/dist/components/switch/anatomy/label.svelte.d.ts.map +1 -0
- package/dist/components/switch/anatomy/root-context.svelte +1 -0
- package/dist/components/switch/anatomy/root-context.svelte.d.ts +1 -0
- package/dist/components/switch/anatomy/root-context.svelte.d.ts.map +1 -0
- package/dist/components/switch/anatomy/root-provider.svelte +6 -4
- package/dist/components/switch/anatomy/root-provider.svelte.d.ts +2 -1
- package/dist/components/switch/anatomy/root-provider.svelte.d.ts.map +1 -0
- package/dist/components/switch/anatomy/root.svelte +8 -6
- package/dist/components/switch/anatomy/root.svelte.d.ts +2 -1
- package/dist/components/switch/anatomy/root.svelte.d.ts.map +1 -0
- package/dist/components/switch/anatomy/thumb.svelte +5 -4
- package/dist/components/switch/anatomy/thumb.svelte.d.ts +2 -1
- package/dist/components/switch/anatomy/thumb.svelte.d.ts.map +1 -0
- package/dist/components/switch/index.d.ts +7 -6
- package/dist/components/switch/index.d.ts.map +1 -0
- package/dist/components/switch/modules/anatomy.d.ts +1 -0
- package/dist/components/switch/modules/anatomy.d.ts.map +1 -0
- package/dist/components/switch/modules/anatomy.js +5 -5
- package/dist/components/switch/modules/root-context.d.ts +6 -0
- package/dist/components/switch/modules/root-context.d.ts.map +1 -0
- package/dist/components/switch/modules/use-switch.svelte.d.ts +3 -0
- package/dist/components/switch/modules/use-switch.svelte.d.ts.map +1 -0
- package/dist/components/switch/modules/use-switch.svelte.js +1 -1
- package/dist/components/tabs/anatomy/content.svelte +6 -4
- package/dist/components/tabs/anatomy/content.svelte.d.ts +1 -0
- package/dist/components/tabs/anatomy/content.svelte.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/indicator.svelte +5 -4
- package/dist/components/tabs/anatomy/indicator.svelte.d.ts +1 -0
- package/dist/components/tabs/anatomy/indicator.svelte.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/list.svelte +5 -4
- package/dist/components/tabs/anatomy/list.svelte.d.ts +1 -0
- package/dist/components/tabs/anatomy/list.svelte.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/root-context.svelte +1 -0
- package/dist/components/tabs/anatomy/root-context.svelte.d.ts +1 -0
- package/dist/components/tabs/anatomy/root-context.svelte.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/root-provider.svelte +5 -3
- package/dist/components/tabs/anatomy/root-provider.svelte.d.ts +2 -1
- package/dist/components/tabs/anatomy/root-provider.svelte.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/root.svelte +6 -4
- package/dist/components/tabs/anatomy/root.svelte.d.ts +1 -0
- package/dist/components/tabs/anatomy/root.svelte.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/trigger.svelte +6 -4
- package/dist/components/tabs/anatomy/trigger.svelte.d.ts +1 -0
- package/dist/components/tabs/anatomy/trigger.svelte.d.ts.map +1 -0
- package/dist/components/tabs/index.d.ts +7 -6
- package/dist/components/tabs/index.d.ts.map +1 -0
- package/dist/components/tabs/modules/anatomy.d.ts +1 -0
- package/dist/components/tabs/modules/anatomy.d.ts.map +1 -0
- package/dist/components/tabs/modules/anatomy.js +5 -5
- package/dist/components/tabs/modules/root-context.d.ts +6 -0
- package/dist/components/tabs/modules/root-context.d.ts.map +1 -0
- package/dist/components/tabs/modules/use-tabs.svelte.d.ts +3 -0
- package/dist/components/tabs/modules/use-tabs.svelte.d.ts.map +1 -0
- package/dist/components/tabs/modules/use-tabs.svelte.js +1 -1
- package/dist/components/toast/anatomy/action-trigger.svelte +5 -4
- package/dist/components/toast/anatomy/action-trigger.svelte.d.ts +2 -1
- package/dist/components/toast/anatomy/action-trigger.svelte.d.ts.map +1 -0
- package/dist/components/toast/anatomy/close-trigger.svelte +7 -5
- package/dist/components/toast/anatomy/close-trigger.svelte.d.ts +2 -1
- package/dist/components/toast/anatomy/close-trigger.svelte.d.ts.map +1 -0
- package/dist/components/toast/anatomy/description.svelte +5 -4
- package/dist/components/toast/anatomy/description.svelte.d.ts +2 -1
- package/dist/components/toast/anatomy/description.svelte.d.ts.map +1 -0
- package/dist/components/toast/anatomy/group.svelte +9 -7
- package/dist/components/toast/anatomy/group.svelte.d.ts +3 -2
- package/dist/components/toast/anatomy/group.svelte.d.ts.map +1 -0
- package/dist/components/toast/anatomy/message.svelte +4 -4
- package/dist/components/toast/anatomy/message.svelte.d.ts +2 -1
- package/dist/components/toast/anatomy/message.svelte.d.ts.map +1 -0
- package/dist/components/toast/anatomy/root-context.svelte +1 -1
- package/dist/components/toast/anatomy/root-context.svelte.d.ts +2 -1
- package/dist/components/toast/anatomy/root-context.svelte.d.ts.map +1 -0
- package/dist/components/toast/anatomy/root.svelte +9 -7
- package/dist/components/toast/anatomy/root.svelte.d.ts +2 -1
- package/dist/components/toast/anatomy/root.svelte.d.ts.map +1 -0
- package/dist/components/toast/anatomy/title.svelte +5 -4
- package/dist/components/toast/anatomy/title.svelte.d.ts +2 -1
- package/dist/components/toast/anatomy/title.svelte.d.ts.map +1 -0
- package/dist/components/toast/index.d.ts +6 -5
- package/dist/components/toast/index.d.ts.map +1 -0
- package/dist/components/toast/modules/anatomy.d.ts +1 -0
- package/dist/components/toast/modules/anatomy.d.ts.map +1 -0
- package/dist/components/toast/modules/anatomy.js +6 -6
- package/dist/components/toast/modules/group-context.d.ts +1 -0
- package/dist/components/toast/modules/group-context.d.ts.map +1 -0
- package/dist/components/toast/modules/root-context.d.ts +1 -0
- package/dist/components/toast/modules/root-context.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1 -0
- package/dist/internal/components/star-empty.svelte.d.ts +1 -0
- package/dist/internal/components/star-empty.svelte.d.ts.map +1 -0
- package/dist/internal/components/star-full.svelte.d.ts +1 -0
- package/dist/internal/components/star-full.svelte.d.ts.map +1 -0
- package/dist/internal/components/star-half.svelte.d.ts +1 -0
- package/dist/internal/components/star-half.svelte.d.ts.map +1 -0
- package/dist/internal/components/x.svelte.d.ts +1 -0
- package/dist/internal/components/x.svelte.d.ts.map +1 -0
- package/dist/internal/create-context.d.ts +1 -0
- package/dist/internal/create-context.d.ts.map +1 -0
- package/dist/internal/create-context.js +1 -1
- package/dist/internal/html-attributes.d.ts +1 -0
- package/dist/internal/html-attributes.d.ts.map +1 -0
- package/dist/internal/props-with-children.d.ts +1 -0
- package/dist/internal/props-with-children.d.ts.map +1 -0
- package/dist/internal/props-with-element.d.ts +2 -1
- package/dist/internal/props-with-element.d.ts.map +1 -0
- package/package.json +18 -22
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
<script lang="ts" module>
|
|
2
|
-
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
3
2
|
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
3
|
+
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
4
4
|
|
|
5
5
|
export interface AccordionContentProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
8
|
<script lang="ts">
|
|
9
|
-
import { mergeProps } from '@zag-js/svelte';
|
|
10
9
|
import { classesAccordion } from '@skeletonlabs/skeleton-common';
|
|
11
|
-
import {
|
|
10
|
+
import { mergeProps } from '@zag-js/svelte';
|
|
11
|
+
|
|
12
12
|
import { AccordionItemContext } from '../modules/item-context';
|
|
13
|
+
import { AccordionRootContext } from '../modules/root-context';
|
|
13
14
|
|
|
14
15
|
const props: AccordionContentProps = $props();
|
|
15
16
|
|
|
@@ -20,8 +21,8 @@
|
|
|
20
21
|
|
|
21
22
|
const attributes = $derived(
|
|
22
23
|
mergeProps(accordion().getItemContentProps(itemProps()), rest, {
|
|
23
|
-
class: classesAccordion.content
|
|
24
|
-
})
|
|
24
|
+
class: classesAccordion.content,
|
|
25
|
+
}),
|
|
25
26
|
);
|
|
26
27
|
</script>
|
|
27
28
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
2
1
|
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
2
|
+
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
3
3
|
export interface AccordionContentProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {
|
|
4
4
|
}
|
|
5
5
|
declare const Content: import("svelte").Component<AccordionContentProps, {}, "">;
|
|
6
6
|
type Content = ReturnType<typeof Content>;
|
|
7
7
|
export default Content;
|
|
8
|
+
//# sourceMappingURL=content.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.svelte.d.ts","sourceRoot":"","sources":["../../../../src/components/accordion/anatomy/content.svelte.ts"],"names":[],"mappings":"AAGC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC;CAAG;AA0CjG,QAAA,MAAM,OAAO,2DAAwC,CAAC;AACtD,KAAK,OAAO,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;AAC1C,eAAe,OAAO,CAAC"}
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
</script>
|
|
14
14
|
|
|
15
15
|
<script lang="ts">
|
|
16
|
-
import { mergeProps } from '@zag-js/svelte';
|
|
17
16
|
import { classesAccordion } from '@skeletonlabs/skeleton-common';
|
|
17
|
+
import { mergeProps } from '@zag-js/svelte';
|
|
18
18
|
|
|
19
19
|
const props: AccordionHeadingProps = $props();
|
|
20
20
|
const { level = 3, element, children, ...rest } = $derived(props);
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
|
|
24
24
|
const attributes = $derived(
|
|
25
25
|
mergeProps(rest, {
|
|
26
|
-
class: classesAccordion.heading
|
|
27
|
-
})
|
|
26
|
+
class: classesAccordion.heading,
|
|
27
|
+
}),
|
|
28
28
|
);
|
|
29
29
|
</script>
|
|
30
30
|
|
|
@@ -11,3 +11,4 @@ export interface AccordionHeadingProps extends PropsWithElement<'h3'>, HTMLAttri
|
|
|
11
11
|
declare const Heading: import("svelte").Component<AccordionHeadingProps, {}, "">;
|
|
12
12
|
type Heading = ReturnType<typeof Heading>;
|
|
13
13
|
export default Heading;
|
|
14
|
+
//# sourceMappingURL=heading.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"heading.svelte.d.ts","sourceRoot":"","sources":["../../../../src/components/accordion/anatomy/heading.svelte.ts"],"names":[],"mappings":"AAGC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB,CAAC,IAAI,CAAC,EAAE,cAAc,CAAC,IAAI,CAAC;IAC1F;;;;OAIG;IACH,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;CAC9B;AAkCF,QAAA,MAAM,OAAO,2DAAwC,CAAC;AACtD,KAAK,OAAO,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;AAC1C,eAAe,OAAO,CAAC"}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
<script lang="ts" module>
|
|
2
|
-
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
3
2
|
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
3
|
+
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
4
4
|
|
|
5
5
|
export interface AccordionIndicatorProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
8
|
<script lang="ts">
|
|
9
|
-
import { mergeProps } from '@zag-js/svelte';
|
|
10
9
|
import { classesAccordion } from '@skeletonlabs/skeleton-common';
|
|
11
|
-
import {
|
|
10
|
+
import { mergeProps } from '@zag-js/svelte';
|
|
11
|
+
|
|
12
12
|
import { AccordionItemContext } from '../modules/item-context';
|
|
13
|
+
import { AccordionRootContext } from '../modules/root-context';
|
|
13
14
|
|
|
14
15
|
const props: AccordionIndicatorProps = $props();
|
|
15
16
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
2
1
|
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
2
|
+
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
3
3
|
export interface AccordionIndicatorProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {
|
|
4
4
|
}
|
|
5
5
|
declare const Indicator: import("svelte").Component<AccordionIndicatorProps, {}, "">;
|
|
6
6
|
type Indicator = ReturnType<typeof Indicator>;
|
|
7
7
|
export default Indicator;
|
|
8
|
+
//# sourceMappingURL=indicator.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"indicator.svelte.d.ts","sourceRoot":"","sources":["../../../../src/components/accordion/anatomy/indicator.svelte.ts"],"names":[],"mappings":"AAGC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,MAAM,WAAW,uBAAwB,SAAQ,gBAAgB,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC;CAAG;AAsCnG,QAAA,MAAM,SAAS,6DAAwC,CAAC;AACxD,KAAK,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAC9C,eAAe,SAAS,CAAC"}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
<script lang="ts" module>
|
|
2
|
+
import type { ItemProps } from '@zag-js/accordion';
|
|
3
|
+
|
|
2
4
|
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
3
5
|
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
4
|
-
import type { ItemProps } from '@zag-js/accordion';
|
|
5
6
|
|
|
6
7
|
export interface AccordionItemProps extends ItemProps, PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
8
|
</script>
|
|
8
9
|
|
|
9
10
|
<script lang="ts">
|
|
10
|
-
import { mergeProps } from '@zag-js/svelte';
|
|
11
|
-
import { splitItemProps } from '@zag-js/accordion';
|
|
12
11
|
import { classesAccordion } from '@skeletonlabs/skeleton-common';
|
|
13
|
-
import {
|
|
12
|
+
import { splitItemProps } from '@zag-js/accordion';
|
|
13
|
+
import { mergeProps } from '@zag-js/svelte';
|
|
14
|
+
|
|
14
15
|
import { AccordionItemContext } from '../modules/item-context';
|
|
16
|
+
import { AccordionRootContext } from '../modules/root-context';
|
|
15
17
|
|
|
16
18
|
const props: AccordionItemProps = $props();
|
|
17
19
|
|
|
@@ -22,8 +24,8 @@
|
|
|
22
24
|
|
|
23
25
|
const attributes = $derived(
|
|
24
26
|
mergeProps(accordion().getItemProps(itemProps), rest, {
|
|
25
|
-
class: classesAccordion.item
|
|
26
|
-
})
|
|
27
|
+
class: classesAccordion.item,
|
|
28
|
+
}),
|
|
27
29
|
);
|
|
28
30
|
|
|
29
31
|
AccordionItemContext.provide(() => itemProps);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import type { ItemProps } from '@zag-js/accordion';
|
|
1
2
|
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
2
3
|
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
3
|
-
import type { ItemProps } from '@zag-js/accordion';
|
|
4
4
|
export interface AccordionItemProps extends ItemProps, PropsWithElement<'div'>, HTMLAttributes<'div'> {
|
|
5
5
|
}
|
|
6
6
|
declare const Item: import("svelte").Component<AccordionItemProps, {}, "">;
|
|
7
7
|
type Item = ReturnType<typeof Item>;
|
|
8
8
|
export default Item;
|
|
9
|
+
//# sourceMappingURL=item.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item.svelte.d.ts","sourceRoot":"","sources":["../../../../src/components/accordion/anatomy/item.svelte.ts"],"names":[],"mappings":"AAGC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,MAAM,WAAW,kBAAmB,SAAQ,SAAS,EAAE,gBAAgB,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC;CAAG;AA8CzG,QAAA,MAAM,IAAI,wDAAwC,CAAC;AACnD,KAAK,IAAI,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC;AACpC,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-context.svelte.d.ts","sourceRoot":"","sources":["../../../../src/components/accordion/anatomy/root-context.svelte.ts"],"names":[],"mappings":"AAGC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEtC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAEpE,MAAM,WAAW,yBAAyB;IACzC,QAAQ,EAAE,OAAO,CAAC,CAAC,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC;CACrD;AAqBF,QAAA,MAAM,WAAW,+DAAwC,CAAC;AAC1D,KAAK,WAAW,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAClD,eAAe,WAAW,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script lang="ts" module>
|
|
2
2
|
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
3
3
|
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
4
|
+
|
|
4
5
|
import type { useAccordion } from '../modules/use-accordion.svelte';
|
|
5
6
|
|
|
6
7
|
export interface AccordionRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir'> {
|
|
@@ -9,8 +10,9 @@
|
|
|
9
10
|
</script>
|
|
10
11
|
|
|
11
12
|
<script lang="ts">
|
|
12
|
-
import { mergeProps } from '@zag-js/svelte';
|
|
13
13
|
import { classesAccordion } from '@skeletonlabs/skeleton-common';
|
|
14
|
+
import { mergeProps } from '@zag-js/svelte';
|
|
15
|
+
|
|
14
16
|
import { AccordionRootContext } from '../modules/root-context';
|
|
15
17
|
|
|
16
18
|
const props: AccordionRootProviderProps = $props();
|
|
@@ -7,3 +7,4 @@ export interface AccordionRootProviderProps extends PropsWithElement<'div'>, HTM
|
|
|
7
7
|
declare const RootProvider: import("svelte").Component<AccordionRootProviderProps, {}, "">;
|
|
8
8
|
type RootProvider = ReturnType<typeof RootProvider>;
|
|
9
9
|
export default RootProvider;
|
|
10
|
+
//# sourceMappingURL=root-provider.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-provider.svelte.d.ts","sourceRoot":"","sources":["../../../../src/components/accordion/anatomy/root-provider.svelte.ts"],"names":[],"mappings":"AAGC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAEpE,MAAM,WAAW,0BAA2B,SAAQ,gBAAgB,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,KAAK,EAAE,IAAI,GAAG,KAAK,CAAC;IAC/G,KAAK,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;CACvC;AAmCF,QAAA,MAAM,YAAY,gEAAwC,CAAC;AAC3D,KAAK,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACpD,eAAe,YAAY,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script lang="ts" module>
|
|
2
2
|
import type { Props } from '@zag-js/accordion';
|
|
3
|
+
|
|
3
4
|
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
4
5
|
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
5
6
|
|
|
@@ -7,9 +8,10 @@
|
|
|
7
8
|
</script>
|
|
8
9
|
|
|
9
10
|
<script lang="ts">
|
|
10
|
-
import { mergeProps } from '@zag-js/svelte';
|
|
11
|
-
import { splitProps } from '@zag-js/accordion';
|
|
12
11
|
import { classesAccordion } from '@skeletonlabs/skeleton-common';
|
|
12
|
+
import { splitProps } from '@zag-js/accordion';
|
|
13
|
+
import { mergeProps } from '@zag-js/svelte';
|
|
14
|
+
|
|
13
15
|
import { AccordionRootContext } from '../modules/root-context';
|
|
14
16
|
import { useAccordion } from '../modules/use-accordion.svelte';
|
|
15
17
|
|
|
@@ -21,13 +23,13 @@
|
|
|
21
23
|
const id = $props.id();
|
|
22
24
|
const accordion = useAccordion(() => ({
|
|
23
25
|
id: id,
|
|
24
|
-
...accordionProps
|
|
26
|
+
...accordionProps,
|
|
25
27
|
}));
|
|
26
28
|
|
|
27
29
|
const attributes = $derived(
|
|
28
30
|
mergeProps(accordion().getRootProps(), rest, {
|
|
29
|
-
class: classesAccordion.root
|
|
30
|
-
})
|
|
31
|
+
class: classesAccordion.root,
|
|
32
|
+
}),
|
|
31
33
|
);
|
|
32
34
|
|
|
33
35
|
AccordionRootContext.provide(() => accordion());
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root.svelte.d.ts","sourceRoot":"","sources":["../../../../src/components/accordion/anatomy/root.svelte.ts"],"names":[],"mappings":"AAGC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,EAAE,gBAAgB,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,KAAK,EAAE,IAAI,GAAG,KAAK,CAAC;CAAG;AAkD/H,QAAA,MAAM,IAAI,wDAAwC,CAAC;AACnD,KAAK,IAAI,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC;AACpC,eAAe,IAAI,CAAC"}
|
|
@@ -6,10 +6,11 @@
|
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
8
|
<script lang="ts">
|
|
9
|
-
import { mergeProps } from '@zag-js/svelte';
|
|
10
9
|
import { classesAccordion } from '@skeletonlabs/skeleton-common';
|
|
11
|
-
import {
|
|
10
|
+
import { mergeProps } from '@zag-js/svelte';
|
|
11
|
+
|
|
12
12
|
import { AccordionItemContext } from '../modules/item-context';
|
|
13
|
+
import { AccordionRootContext } from '../modules/root-context';
|
|
13
14
|
|
|
14
15
|
const props: AccordionTriggerProps = $props();
|
|
15
16
|
|
|
@@ -20,8 +21,8 @@
|
|
|
20
21
|
|
|
21
22
|
const attributes = $derived(
|
|
22
23
|
mergeProps(accordion().getItemTriggerProps(itemProps()), rest, {
|
|
23
|
-
class: classesAccordion.trigger
|
|
24
|
-
})
|
|
24
|
+
class: classesAccordion.trigger,
|
|
25
|
+
}),
|
|
25
26
|
);
|
|
26
27
|
</script>
|
|
27
28
|
|
|
@@ -5,3 +5,4 @@ export interface AccordionTriggerProps extends PropsWithElement<'button'>, HTMLA
|
|
|
5
5
|
declare const Trigger: import("svelte").Component<AccordionTriggerProps, {}, "">;
|
|
6
6
|
type Trigger = ReturnType<typeof Trigger>;
|
|
7
7
|
export default Trigger;
|
|
8
|
+
//# sourceMappingURL=trigger.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trigger.svelte.d.ts","sourceRoot":"","sources":["../../../../src/components/accordion/anatomy/trigger.svelte.ts"],"names":[],"mappings":"AAGC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB,CAAC,QAAQ,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC;CAAG;AA0CvG,QAAA,MAAM,OAAO,2DAAwC,CAAC;AACtD,KAAK,OAAO,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;AAC1C,eAAe,OAAO,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export type { AccordionContentProps } from './anatomy/content.svelte';
|
|
2
|
+
export type { AccordionHeadingProps } from './anatomy/heading.svelte';
|
|
3
|
+
export type { AccordionIndicatorProps } from './anatomy/indicator.svelte';
|
|
4
|
+
export type { AccordionItemProps } from './anatomy/item.svelte';
|
|
3
5
|
export type { AccordionRootProps } from './anatomy/root.svelte';
|
|
4
|
-
export type { AccordionRootProviderProps } from './anatomy/root-provider.svelte';
|
|
5
6
|
export type { AccordionRootContextProps } from './anatomy/root-context.svelte';
|
|
6
|
-
export type {
|
|
7
|
-
export type { AccordionHeadingProps } from './anatomy/heading.svelte';
|
|
7
|
+
export type { AccordionRootProviderProps } from './anatomy/root-provider.svelte';
|
|
8
8
|
export type { AccordionTriggerProps } from './anatomy/trigger.svelte';
|
|
9
|
-
export
|
|
10
|
-
export
|
|
9
|
+
export { Accordion } from './modules/anatomy';
|
|
10
|
+
export { useAccordion } from './modules/use-accordion.svelte';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACtE,YAAY,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACtE,YAAY,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAC1E,YAAY,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,YAAY,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,YAAY,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC/E,YAAY,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AACjF,YAAY,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -7,3 +7,4 @@ export declare const Accordion: import("svelte").Component<import("../anatomy/ro
|
|
|
7
7
|
Indicator: import("svelte").Component<import("../anatomy/indicator.svelte").AccordionIndicatorProps, {}, "">;
|
|
8
8
|
Content: import("svelte").Component<import("../anatomy/content.svelte").AccordionContentProps, {}, "">;
|
|
9
9
|
};
|
|
10
|
+
//# sourceMappingURL=anatomy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anatomy.d.ts","sourceRoot":"","sources":["../../../../src/components/accordion/modules/anatomy.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS;;;;;;;;CAQpB,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import Content from '../anatomy/content.svelte';
|
|
2
|
+
import Heading from '../anatomy/heading.svelte';
|
|
3
|
+
import Indicator from '../anatomy/indicator.svelte';
|
|
4
|
+
import Item from '../anatomy/item.svelte';
|
|
1
5
|
import Root from '../anatomy/root.svelte';
|
|
2
|
-
import RootProvider from '../anatomy/root-provider.svelte';
|
|
3
6
|
import RootContext from '../anatomy/root-context.svelte';
|
|
4
|
-
import
|
|
5
|
-
import Heading from '../anatomy/heading.svelte';
|
|
7
|
+
import RootProvider from '../anatomy/root-provider.svelte';
|
|
6
8
|
import Trigger from '../anatomy/trigger.svelte';
|
|
7
|
-
import Indicator from '../anatomy/indicator.svelte';
|
|
8
|
-
import Content from '../anatomy/content.svelte';
|
|
9
9
|
export const Accordion = Object.assign(Root, {
|
|
10
10
|
Provider: RootProvider,
|
|
11
11
|
Context: RootContext,
|
|
@@ -13,5 +13,5 @@ export const Accordion = Object.assign(Root, {
|
|
|
13
13
|
Heading: Heading,
|
|
14
14
|
Trigger: Trigger,
|
|
15
15
|
Indicator: Indicator,
|
|
16
|
-
Content: Content
|
|
16
|
+
Content: Content,
|
|
17
17
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item-context.d.ts","sourceRoot":"","sources":["../../../../src/components/accordion/modules/item-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAInD,eAAO,MAAM,oBAAoB;;qBAAuB,SAAS;yBAAT,SAAS,SAAT,SAAS;CAAG,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-context.d.ts","sourceRoot":"","sources":["../../../../src/components/accordion/modules/root-context.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,oBAAoB;;;;CAAmD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-accordion.svelte.d.ts","sourceRoot":"","sources":["../../../../src/components/accordion/modules/use-accordion.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAoB,KAAK,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG3E,wBAAgB,YAAY,CAAC,KAAK,EAAE,KAAK,GAAG,CAAC,MAAM,KAAK,CAAC,GAAG,MAAM,GAAG,CAIpE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { connect, machine } from '@zag-js/accordion';
|
|
2
|
-
import {
|
|
2
|
+
import { normalizeProps, useMachine } from '@zag-js/svelte';
|
|
3
3
|
export function useAccordion(props) {
|
|
4
4
|
const service = useMachine(machine, props);
|
|
5
5
|
const accordion = $derived(connect(service, normalizeProps));
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
<script lang="ts" module>
|
|
2
|
-
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
3
2
|
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
3
|
+
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
4
4
|
|
|
5
5
|
export interface AvatarFallbackProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
8
|
<script lang="ts">
|
|
9
|
-
import { mergeProps } from '@zag-js/svelte';
|
|
10
9
|
import { classesAvatar } from '@skeletonlabs/skeleton-common';
|
|
10
|
+
import { mergeProps } from '@zag-js/svelte';
|
|
11
|
+
|
|
11
12
|
import { AvatarRootContext } from '../modules/root-context';
|
|
12
13
|
|
|
13
14
|
const props: AvatarFallbackProps = $props();
|
|
@@ -18,8 +19,8 @@
|
|
|
18
19
|
|
|
19
20
|
const attributes = $derived(
|
|
20
21
|
mergeProps(avatar().getFallbackProps(), rest, {
|
|
21
|
-
class: classesAvatar.fallback
|
|
22
|
-
})
|
|
22
|
+
class: classesAvatar.fallback,
|
|
23
|
+
}),
|
|
23
24
|
);
|
|
24
25
|
</script>
|
|
25
26
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
2
1
|
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
2
|
+
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
3
3
|
export interface AvatarFallbackProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {
|
|
4
4
|
}
|
|
5
5
|
declare const Fallback: import("svelte").Component<AvatarFallbackProps, {}, "">;
|
|
6
6
|
type Fallback = ReturnType<typeof Fallback>;
|
|
7
7
|
export default Fallback;
|
|
8
|
+
//# sourceMappingURL=fallback.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fallback.svelte.d.ts","sourceRoot":"","sources":["../../../../src/components/avatar/anatomy/fallback.svelte.ts"],"names":[],"mappings":"AAGC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB,CAAC,MAAM,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC;CAAG;AAuCjG,QAAA,MAAM,QAAQ,yDAAwC,CAAC;AACvD,KAAK,QAAQ,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AAC5C,eAAe,QAAQ,CAAC"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
<script lang="ts" module>
|
|
2
|
-
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
3
2
|
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
3
|
+
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
4
4
|
|
|
5
5
|
export interface AvatarImageProps extends PropsWithElement<'img'>, HTMLAttributes<'img'> {}
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
8
|
<script lang="ts">
|
|
9
|
-
import { mergeProps } from '@zag-js/svelte';
|
|
10
9
|
import { classesAvatar } from '@skeletonlabs/skeleton-common';
|
|
10
|
+
import { mergeProps } from '@zag-js/svelte';
|
|
11
|
+
|
|
11
12
|
import { AvatarRootContext } from '../modules/root-context';
|
|
12
13
|
|
|
13
14
|
const props: AvatarImageProps = $props();
|
|
@@ -18,8 +19,8 @@
|
|
|
18
19
|
|
|
19
20
|
const attributes = $derived(
|
|
20
21
|
mergeProps(avatar().getImageProps(), rest, {
|
|
21
|
-
class: classesAvatar.image
|
|
22
|
-
})
|
|
22
|
+
class: classesAvatar.image,
|
|
23
|
+
}),
|
|
23
24
|
);
|
|
24
25
|
</script>
|
|
25
26
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
2
1
|
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
2
|
+
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
3
3
|
export interface AvatarImageProps extends PropsWithElement<'img'>, HTMLAttributes<'img'> {
|
|
4
4
|
}
|
|
5
5
|
declare const Image: import("svelte").Component<AvatarImageProps, {}, "">;
|
|
6
6
|
type Image = ReturnType<typeof Image>;
|
|
7
7
|
export default Image;
|
|
8
|
+
//# sourceMappingURL=image.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image.svelte.d.ts","sourceRoot":"","sources":["../../../../src/components/avatar/anatomy/image.svelte.ts"],"names":[],"mappings":"AAGC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,MAAM,WAAW,gBAAiB,SAAQ,gBAAgB,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC;CAAG;AAqC5F,QAAA,MAAM,KAAK,sDAAwC,CAAC;AACpD,KAAK,KAAK,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC;AACtC,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-context.svelte.d.ts","sourceRoot":"","sources":["../../../../src/components/avatar/anatomy/root-context.svelte.ts"],"names":[],"mappings":"AAGC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEtC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAE9D,MAAM,WAAW,sBAAsB;IACtC,QAAQ,EAAE,OAAO,CAAC,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC;CAClD;AAqBF,QAAA,MAAM,WAAW,4DAAwC,CAAC;AAC1D,KAAK,WAAW,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAClD,eAAe,WAAW,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script lang="ts" module>
|
|
2
2
|
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
3
3
|
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
4
|
+
|
|
4
5
|
import type { useAvatar } from '../modules/use-avatar.svelte';
|
|
5
6
|
|
|
6
7
|
export interface AvatarRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir'> {
|
|
@@ -9,8 +10,9 @@
|
|
|
9
10
|
</script>
|
|
10
11
|
|
|
11
12
|
<script lang="ts">
|
|
12
|
-
import { mergeProps } from '@zag-js/svelte';
|
|
13
13
|
import { classesAvatar } from '@skeletonlabs/skeleton-common';
|
|
14
|
+
import { mergeProps } from '@zag-js/svelte';
|
|
15
|
+
|
|
14
16
|
import { AvatarRootContext } from '../modules/root-context';
|
|
15
17
|
|
|
16
18
|
const props: AvatarRootProviderProps = $props();
|
|
@@ -19,8 +21,8 @@
|
|
|
19
21
|
|
|
20
22
|
const attributes = $derived(
|
|
21
23
|
mergeProps(api().getRootProps(), rest, {
|
|
22
|
-
class: classesAvatar.root
|
|
23
|
-
})
|
|
24
|
+
class: classesAvatar.root,
|
|
25
|
+
}),
|
|
24
26
|
);
|
|
25
27
|
|
|
26
28
|
AvatarRootContext.provide(() => api());
|
|
@@ -7,3 +7,4 @@ export interface AvatarRootProviderProps extends PropsWithElement<'div'>, HTMLAt
|
|
|
7
7
|
declare const RootProvider: import("svelte").Component<AvatarRootProviderProps, {}, "">;
|
|
8
8
|
type RootProvider = ReturnType<typeof RootProvider>;
|
|
9
9
|
export default RootProvider;
|
|
10
|
+
//# sourceMappingURL=root-provider.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-provider.svelte.d.ts","sourceRoot":"","sources":["../../../../src/components/avatar/anatomy/root-provider.svelte.ts"],"names":[],"mappings":"AAGC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAE9D,MAAM,WAAW,uBAAwB,SAAQ,gBAAgB,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,KAAK,EAAE,IAAI,GAAG,KAAK,CAAC;IAC5G,KAAK,EAAE,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;CACpC;AAuCF,QAAA,MAAM,YAAY,6DAAwC,CAAC;AAC3D,KAAK,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACpD,eAAe,YAAY,CAAC"}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
<script lang="ts" module>
|
|
2
|
+
import type { Props } from '@zag-js/avatar';
|
|
3
|
+
|
|
2
4
|
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
3
5
|
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
4
|
-
import type { Props } from '@zag-js/avatar';
|
|
5
6
|
|
|
6
7
|
export interface AvatarRootProps extends Omit<Props, 'id'>, PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir'> {}
|
|
7
8
|
</script>
|
|
8
9
|
|
|
9
10
|
<script lang="ts">
|
|
10
|
-
import { mergeProps } from '@zag-js/svelte';
|
|
11
11
|
import { classesAvatar } from '@skeletonlabs/skeleton-common';
|
|
12
|
-
import { AvatarRootContext } from '../modules/root-context';
|
|
13
12
|
import { splitProps } from '@zag-js/avatar';
|
|
13
|
+
import { mergeProps } from '@zag-js/svelte';
|
|
14
|
+
|
|
15
|
+
import { AvatarRootContext } from '../modules/root-context';
|
|
14
16
|
import { useAvatar } from '../modules/use-avatar.svelte';
|
|
15
17
|
|
|
16
18
|
const props: AvatarRootProps = $props();
|
|
@@ -21,13 +23,13 @@
|
|
|
21
23
|
const id = $props.id();
|
|
22
24
|
const avatar = useAvatar(() => ({
|
|
23
25
|
id: id,
|
|
24
|
-
...avatarProps
|
|
26
|
+
...avatarProps,
|
|
25
27
|
}));
|
|
26
28
|
|
|
27
29
|
const attributes = $derived(
|
|
28
30
|
mergeProps(avatar().getRootProps(), rest, {
|
|
29
|
-
class: classesAvatar.root
|
|
30
|
-
})
|
|
31
|
+
class: classesAvatar.root,
|
|
32
|
+
}),
|
|
31
33
|
);
|
|
32
34
|
|
|
33
35
|
AvatarRootContext.provide(() => avatar());
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import type { Props } from '@zag-js/avatar';
|
|
1
2
|
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
2
3
|
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
3
|
-
import type { Props } from '@zag-js/avatar';
|
|
4
4
|
export interface AvatarRootProps extends Omit<Props, 'id'>, PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir'> {
|
|
5
5
|
}
|
|
6
6
|
declare const Root: import("svelte").Component<AvatarRootProps, {}, "">;
|
|
7
7
|
type Root = ReturnType<typeof Root>;
|
|
8
8
|
export default Root;
|
|
9
|
+
//# sourceMappingURL=root.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root.svelte.d.ts","sourceRoot":"","sources":["../../../../src/components/avatar/anatomy/root.svelte.ts"],"names":[],"mappings":"AAGC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,EAAE,gBAAgB,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,KAAK,EAAE,IAAI,GAAG,KAAK,CAAC;CAAG;AAkD5H,QAAA,MAAM,IAAI,qDAAwC,CAAC;AACnD,KAAK,IAAI,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC;AACpC,eAAe,IAAI,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export type { AvatarFallbackProps } from './anatomy/fallback.svelte';
|
|
2
|
+
export type { AvatarImageProps } from './anatomy/image.svelte';
|
|
3
3
|
export type { AvatarRootProps } from './anatomy/root.svelte';
|
|
4
|
-
export type { AvatarRootProviderProps } from './anatomy/root-provider.svelte';
|
|
5
4
|
export type { AvatarRootContextProps } from './anatomy/root-context.svelte';
|
|
6
|
-
export type {
|
|
7
|
-
export
|
|
5
|
+
export type { AvatarRootProviderProps } from './anatomy/root-provider.svelte';
|
|
6
|
+
export { Avatar } from './modules/anatomy';
|
|
7
|
+
export { useAvatar } from './modules/use-avatar.svelte';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,YAAY,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,YAAY,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,YAAY,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAC5E,YAAY,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC"}
|