@skeletonlabs/skeleton-svelte 2.0.0-next.15 → 2.0.0-next.17
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/file-upload/anatomy/label.svelte +36 -0
- package/dist/components/file-upload/anatomy/label.svelte.d.ts +8 -0
- package/dist/components/file-upload/anatomy/label.svelte.d.ts.map +1 -0
- package/dist/components/file-upload/index.d.ts +2 -0
- package/dist/components/file-upload/index.d.ts.map +1 -1
- package/dist/components/file-upload/modules/anatomy.d.ts +2 -1
- package/dist/components/file-upload/modules/anatomy.d.ts.map +1 -1
- package/dist/components/file-upload/modules/anatomy.js +2 -0
- package/dist/components/navigation/anatomy/content.svelte +36 -0
- package/dist/components/navigation/anatomy/content.svelte.d.ts +8 -0
- package/dist/components/navigation/anatomy/content.svelte.d.ts.map +1 -0
- package/dist/components/navigation/anatomy/footer.svelte +36 -0
- package/dist/components/navigation/anatomy/footer.svelte.d.ts +8 -0
- package/dist/components/navigation/anatomy/footer.svelte.d.ts.map +1 -0
- package/dist/components/navigation/anatomy/group.svelte +36 -0
- package/dist/components/navigation/anatomy/group.svelte.d.ts +8 -0
- package/dist/components/navigation/anatomy/group.svelte.d.ts.map +1 -0
- package/dist/components/navigation/anatomy/header.svelte +36 -0
- package/dist/components/navigation/anatomy/header.svelte.d.ts +8 -0
- package/dist/components/navigation/anatomy/header.svelte.d.ts.map +1 -0
- package/dist/components/navigation/anatomy/label.svelte +36 -0
- package/dist/components/navigation/anatomy/label.svelte.d.ts +8 -0
- package/dist/components/navigation/anatomy/label.svelte.d.ts.map +1 -0
- package/dist/components/navigation/anatomy/menu.svelte +36 -0
- package/dist/components/navigation/anatomy/menu.svelte.d.ts +8 -0
- package/dist/components/navigation/anatomy/menu.svelte.d.ts.map +1 -0
- package/dist/components/navigation/anatomy/root.svelte +42 -0
- package/dist/components/navigation/anatomy/root.svelte.d.ts +14 -0
- package/dist/components/navigation/anatomy/root.svelte.d.ts.map +1 -0
- package/dist/components/navigation/index.d.ts +9 -0
- package/dist/components/navigation/index.d.ts.map +1 -0
- package/dist/components/navigation/index.js +1 -0
- package/dist/components/navigation/modules/anatomy.d.ts +9 -0
- package/dist/components/navigation/modules/anatomy.d.ts.map +1 -0
- package/dist/components/navigation/modules/anatomy.js +15 -0
- package/dist/components/navigation/modules/root-context.d.ts +7 -0
- package/dist/components/navigation/modules/root-context.d.ts.map +1 -0
- package/dist/components/navigation/modules/root-context.js +2 -0
- package/dist/components/segmented-control/anatomy/control.svelte +30 -0
- package/dist/components/segmented-control/anatomy/control.svelte.d.ts +8 -0
- package/dist/components/segmented-control/anatomy/control.svelte.d.ts.map +1 -0
- package/dist/components/segmented-control/anatomy/label.svelte +34 -0
- package/dist/components/segmented-control/anatomy/label.svelte.d.ts +8 -0
- package/dist/components/segmented-control/anatomy/label.svelte.d.ts.map +1 -0
- package/dist/components/segmented-control/index.d.ts +2 -0
- package/dist/components/segmented-control/index.d.ts.map +1 -1
- package/dist/components/segmented-control/modules/anatomy.d.ts +2 -0
- package/dist/components/segmented-control/modules/anatomy.d.ts.map +1 -1
- package/dist/components/segmented-control/modules/anatomy.js +4 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
3
|
+
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
4
|
+
|
|
5
|
+
export interface FileUploadLabelProps extends PropsWithElement<'label'>, HTMLAttributes<'label'> {}
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<script lang="ts">
|
|
9
|
+
import { RootContext } from '../modules/root-context';
|
|
10
|
+
import { classesFileUpload } from '@skeletonlabs/skeleton-common';
|
|
11
|
+
import { mergeProps } from '@zag-js/svelte';
|
|
12
|
+
|
|
13
|
+
const props: FileUploadLabelProps = $props();
|
|
14
|
+
|
|
15
|
+
const fileUpload = RootContext.consume();
|
|
16
|
+
|
|
17
|
+
const { element, children, ...rest } = $derived(props);
|
|
18
|
+
|
|
19
|
+
const attributes = $derived(
|
|
20
|
+
mergeProps(
|
|
21
|
+
fileUpload().getLabelProps(),
|
|
22
|
+
{
|
|
23
|
+
class: classesFileUpload.label,
|
|
24
|
+
},
|
|
25
|
+
rest,
|
|
26
|
+
),
|
|
27
|
+
);
|
|
28
|
+
</script>
|
|
29
|
+
|
|
30
|
+
{#if element}
|
|
31
|
+
{@render element(attributes)}
|
|
32
|
+
{:else}
|
|
33
|
+
<label {...attributes}>
|
|
34
|
+
{@render children?.()}
|
|
35
|
+
</label>
|
|
36
|
+
{/if}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
2
|
+
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
3
|
+
export interface FileUploadLabelProps extends PropsWithElement<'label'>, HTMLAttributes<'label'> {
|
|
4
|
+
}
|
|
5
|
+
declare const Label: import("svelte").Component<FileUploadLabelProps, {}, "">;
|
|
6
|
+
type Label = ReturnType<typeof Label>;
|
|
7
|
+
export default Label;
|
|
8
|
+
//# sourceMappingURL=label.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.svelte.d.ts","sourceRoot":"","sources":["../../../../src/components/file-upload/anatomy/label.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,oBAAqB,SAAQ,gBAAgB,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC;CAAG;AAyCpG,QAAA,MAAM,KAAK,0DAAwC,CAAC;AACpD,KAAK,KAAK,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC;AACtC,eAAe,KAAK,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export type { FileUploadDropzoneProps } from './anatomy/dropzone.svelte';
|
|
2
|
+
export type { FileUploadHiddenInputProps } from './anatomy/hidden-input.svelte';
|
|
2
3
|
export type { FileUploadItemProps } from './anatomy/item.svelte';
|
|
3
4
|
export type { FileUploadItemDeleteTriggerProps } from './anatomy/item-delete-trigger.svelte';
|
|
4
5
|
export type { FileUploadItemGroupProps } from './anatomy/item-group.svelte';
|
|
5
6
|
export type { FileUploadItemNameProps } from './anatomy/item-name.svelte';
|
|
7
|
+
export type { FileUploadLabelProps } from './anatomy/label.svelte';
|
|
6
8
|
export type { FileUploadRootProps } from './anatomy/root.svelte';
|
|
7
9
|
export type { FileUploadRootContextProps } from './anatomy/root-context.svelte';
|
|
8
10
|
export type { FileUploadRootProviderProps } from './anatomy/root-provider.svelte';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/file-upload/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,YAAY,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,YAAY,EAAE,gCAAgC,EAAE,MAAM,sCAAsC,CAAC;AAC7F,YAAY,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAC5E,YAAY,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAC1E,YAAY,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,YAAY,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAChF,YAAY,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AAClF,YAAY,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/file-upload/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,YAAY,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAChF,YAAY,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,YAAY,EAAE,gCAAgC,EAAE,MAAM,sCAAsC,CAAC;AAC7F,YAAY,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAC5E,YAAY,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAC1E,YAAY,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,YAAY,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,YAAY,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAChF,YAAY,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AAClF,YAAY,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export declare const FileUpload: import("svelte").Component<import("..").FileUploadRootProps, {}, ""> & {
|
|
2
2
|
Provider: import("svelte").Component<import("..").FileUploadRootProviderProps, {}, "">;
|
|
3
3
|
Context: import("svelte").Component<import("..").FileUploadRootContextProps, {}, "">;
|
|
4
|
+
Label: import("svelte").Component<import("..").FileUploadLabelProps, {}, "">;
|
|
4
5
|
Dropzone: import("svelte").Component<import("..").FileUploadDropzoneProps, {}, "">;
|
|
5
6
|
Trigger: import("svelte").Component<import("..").FileUploadTriggerProps, {}, "">;
|
|
6
|
-
HiddenInput: import("svelte").Component<import("
|
|
7
|
+
HiddenInput: import("svelte").Component<import("..").FileUploadHiddenInputProps, {}, "">;
|
|
7
8
|
ItemGroup: import("svelte").Component<import("..").FileUploadItemGroupProps, {}, "">;
|
|
8
9
|
Item: import("svelte").Component<import("..").FileUploadItemProps, {}, "">;
|
|
9
10
|
ItemName: import("svelte").Component<import("..").FileUploadItemNameProps, {}, "">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anatomy.d.ts","sourceRoot":"","sources":["../../../../src/components/file-upload/modules/anatomy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"anatomy.d.ts","sourceRoot":"","sources":["../../../../src/components/file-upload/modules/anatomy.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,UAAU;;;;;;;;;;;;CAYrB,CAAC"}
|
|
@@ -5,6 +5,7 @@ import ItemGroup from '../anatomy/item-group.svelte';
|
|
|
5
5
|
import ItemName from '../anatomy/item-name.svelte';
|
|
6
6
|
import ItemSizeText from '../anatomy/item-size-text.svelte';
|
|
7
7
|
import Item from '../anatomy/item.svelte';
|
|
8
|
+
import Label from '../anatomy/label.svelte';
|
|
8
9
|
import RootContext from '../anatomy/root-context.svelte';
|
|
9
10
|
import RootProvider from '../anatomy/root-provider.svelte';
|
|
10
11
|
import Root from '../anatomy/root.svelte';
|
|
@@ -12,6 +13,7 @@ import Trigger from '../anatomy/trigger.svelte';
|
|
|
12
13
|
export const FileUpload = Object.assign(Root, {
|
|
13
14
|
Provider: RootProvider,
|
|
14
15
|
Context: RootContext,
|
|
16
|
+
Label: Label,
|
|
15
17
|
Dropzone: Dropzone,
|
|
16
18
|
Trigger: Trigger,
|
|
17
19
|
HiddenInput: HiddenInput,
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
3
|
+
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
4
|
+
|
|
5
|
+
export interface NavigationContentProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<script lang="ts">
|
|
9
|
+
import { RootContext } from '../modules/root-context';
|
|
10
|
+
import { classesNavigation } from '@skeletonlabs/skeleton-common';
|
|
11
|
+
import { mergeProps } from '@zag-js/svelte';
|
|
12
|
+
|
|
13
|
+
const props: NavigationContentProps = $props();
|
|
14
|
+
|
|
15
|
+
const navigation = RootContext.consume();
|
|
16
|
+
|
|
17
|
+
const { element, children, ...rest } = $derived(props);
|
|
18
|
+
|
|
19
|
+
const attributes = $derived(
|
|
20
|
+
mergeProps(
|
|
21
|
+
{
|
|
22
|
+
'data-layout': navigation().layout,
|
|
23
|
+
class: classesNavigation.content,
|
|
24
|
+
},
|
|
25
|
+
rest,
|
|
26
|
+
),
|
|
27
|
+
);
|
|
28
|
+
</script>
|
|
29
|
+
|
|
30
|
+
{#if element}
|
|
31
|
+
{@render element(attributes)}
|
|
32
|
+
{:else}
|
|
33
|
+
<div {...attributes}>
|
|
34
|
+
{@render children?.()}
|
|
35
|
+
</div>
|
|
36
|
+
{/if}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
2
|
+
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
3
|
+
export interface NavigationContentProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {
|
|
4
|
+
}
|
|
5
|
+
declare const Content: import("svelte").Component<NavigationContentProps, {}, "">;
|
|
6
|
+
type Content = ReturnType<typeof Content>;
|
|
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/navigation/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,sBAAuB,SAAQ,gBAAgB,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC;CAAG;AAyClG,QAAA,MAAM,OAAO,4DAAwC,CAAC;AACtD,KAAK,OAAO,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;AAC1C,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
3
|
+
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
4
|
+
|
|
5
|
+
export interface NavigationFooterProps extends PropsWithElement<'footer'>, HTMLAttributes<'footer'> {}
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<script lang="ts">
|
|
9
|
+
import { RootContext } from '../modules/root-context';
|
|
10
|
+
import { classesNavigation } from '@skeletonlabs/skeleton-common';
|
|
11
|
+
import { mergeProps } from '@zag-js/svelte';
|
|
12
|
+
|
|
13
|
+
const props: NavigationFooterProps = $props();
|
|
14
|
+
|
|
15
|
+
const navigation = RootContext.consume();
|
|
16
|
+
|
|
17
|
+
const { element, children, ...rest } = $derived(props);
|
|
18
|
+
|
|
19
|
+
const attributes = $derived(
|
|
20
|
+
mergeProps(
|
|
21
|
+
{
|
|
22
|
+
'data-layout': navigation().layout,
|
|
23
|
+
class: classesNavigation.footer,
|
|
24
|
+
},
|
|
25
|
+
rest,
|
|
26
|
+
),
|
|
27
|
+
);
|
|
28
|
+
</script>
|
|
29
|
+
|
|
30
|
+
{#if element}
|
|
31
|
+
{@render element(attributes)}
|
|
32
|
+
{:else}
|
|
33
|
+
<footer {...attributes}>
|
|
34
|
+
{@render children?.()}
|
|
35
|
+
</footer>
|
|
36
|
+
{/if}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
2
|
+
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
3
|
+
export interface NavigationFooterProps extends PropsWithElement<'footer'>, HTMLAttributes<'footer'> {
|
|
4
|
+
}
|
|
5
|
+
declare const Footer: import("svelte").Component<NavigationFooterProps, {}, "">;
|
|
6
|
+
type Footer = ReturnType<typeof Footer>;
|
|
7
|
+
export default Footer;
|
|
8
|
+
//# sourceMappingURL=footer.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"footer.svelte.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/anatomy/footer.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;AAyCvG,QAAA,MAAM,MAAM,2DAAwC,CAAC;AACrD,KAAK,MAAM,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC;AACxC,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
3
|
+
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
4
|
+
|
|
5
|
+
export interface NavigationGroupProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<script lang="ts">
|
|
9
|
+
import { RootContext } from '../modules/root-context';
|
|
10
|
+
import { classesNavigation } from '@skeletonlabs/skeleton-common';
|
|
11
|
+
import { mergeProps } from '@zag-js/svelte';
|
|
12
|
+
|
|
13
|
+
const props: NavigationGroupProps = $props();
|
|
14
|
+
|
|
15
|
+
const navigation = RootContext.consume();
|
|
16
|
+
|
|
17
|
+
const { element, children, ...rest } = $derived(props);
|
|
18
|
+
|
|
19
|
+
const attributes = $derived(
|
|
20
|
+
mergeProps(
|
|
21
|
+
{
|
|
22
|
+
'data-layout': navigation().layout,
|
|
23
|
+
class: classesNavigation.group,
|
|
24
|
+
},
|
|
25
|
+
rest,
|
|
26
|
+
),
|
|
27
|
+
);
|
|
28
|
+
</script>
|
|
29
|
+
|
|
30
|
+
{#if element}
|
|
31
|
+
{@render element(attributes)}
|
|
32
|
+
{:else}
|
|
33
|
+
<div {...attributes}>
|
|
34
|
+
{@render children?.()}
|
|
35
|
+
</div>
|
|
36
|
+
{/if}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
2
|
+
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
3
|
+
export interface NavigationGroupProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {
|
|
4
|
+
}
|
|
5
|
+
declare const Group: import("svelte").Component<NavigationGroupProps, {}, "">;
|
|
6
|
+
type Group = ReturnType<typeof Group>;
|
|
7
|
+
export default Group;
|
|
8
|
+
//# sourceMappingURL=group.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group.svelte.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/anatomy/group.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,oBAAqB,SAAQ,gBAAgB,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC;CAAG;AAyChG,QAAA,MAAM,KAAK,0DAAwC,CAAC;AACpD,KAAK,KAAK,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC;AACtC,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
3
|
+
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
4
|
+
|
|
5
|
+
export interface NavigationHeaderProps extends PropsWithElement<'header'>, HTMLAttributes<'header'> {}
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<script lang="ts">
|
|
9
|
+
import { RootContext } from '../modules/root-context';
|
|
10
|
+
import { classesNavigation } from '@skeletonlabs/skeleton-common';
|
|
11
|
+
import { mergeProps } from '@zag-js/svelte';
|
|
12
|
+
|
|
13
|
+
const props: NavigationHeaderProps = $props();
|
|
14
|
+
|
|
15
|
+
const navigation = RootContext.consume();
|
|
16
|
+
|
|
17
|
+
const { element, children, ...rest } = $derived(props);
|
|
18
|
+
|
|
19
|
+
const attributes = $derived(
|
|
20
|
+
mergeProps(
|
|
21
|
+
{
|
|
22
|
+
'data-layout': navigation().layout,
|
|
23
|
+
class: classesNavigation.header,
|
|
24
|
+
},
|
|
25
|
+
rest,
|
|
26
|
+
),
|
|
27
|
+
);
|
|
28
|
+
</script>
|
|
29
|
+
|
|
30
|
+
{#if element}
|
|
31
|
+
{@render element(attributes)}
|
|
32
|
+
{:else}
|
|
33
|
+
<header {...attributes}>
|
|
34
|
+
{@render children?.()}
|
|
35
|
+
</header>
|
|
36
|
+
{/if}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
2
|
+
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
3
|
+
export interface NavigationHeaderProps extends PropsWithElement<'header'>, HTMLAttributes<'header'> {
|
|
4
|
+
}
|
|
5
|
+
declare const Header: import("svelte").Component<NavigationHeaderProps, {}, "">;
|
|
6
|
+
type Header = ReturnType<typeof Header>;
|
|
7
|
+
export default Header;
|
|
8
|
+
//# sourceMappingURL=header.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header.svelte.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/anatomy/header.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;AAyCvG,QAAA,MAAM,MAAM,2DAAwC,CAAC;AACrD,KAAK,MAAM,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC;AACxC,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
3
|
+
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
4
|
+
|
|
5
|
+
export interface NavigationLabelProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<script lang="ts">
|
|
9
|
+
import { RootContext } from '../modules/root-context';
|
|
10
|
+
import { classesNavigation } from '@skeletonlabs/skeleton-common';
|
|
11
|
+
import { mergeProps } from '@zag-js/svelte';
|
|
12
|
+
|
|
13
|
+
const props: NavigationLabelProps = $props();
|
|
14
|
+
|
|
15
|
+
const navigation = RootContext.consume();
|
|
16
|
+
|
|
17
|
+
const { element, children, ...rest } = $derived(props);
|
|
18
|
+
|
|
19
|
+
const attributes = $derived(
|
|
20
|
+
mergeProps(
|
|
21
|
+
{
|
|
22
|
+
'data-layout': navigation().layout,
|
|
23
|
+
class: classesNavigation.label,
|
|
24
|
+
},
|
|
25
|
+
rest,
|
|
26
|
+
),
|
|
27
|
+
);
|
|
28
|
+
</script>
|
|
29
|
+
|
|
30
|
+
{#if element}
|
|
31
|
+
{@render element(attributes)}
|
|
32
|
+
{:else}
|
|
33
|
+
<div {...attributes}>
|
|
34
|
+
{@render children?.()}
|
|
35
|
+
</div>
|
|
36
|
+
{/if}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
2
|
+
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
3
|
+
export interface NavigationLabelProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {
|
|
4
|
+
}
|
|
5
|
+
declare const Label: import("svelte").Component<NavigationLabelProps, {}, "">;
|
|
6
|
+
type Label = ReturnType<typeof Label>;
|
|
7
|
+
export default Label;
|
|
8
|
+
//# sourceMappingURL=label.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.svelte.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/anatomy/label.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,oBAAqB,SAAQ,gBAAgB,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC;CAAG;AAyChG,QAAA,MAAM,KAAK,0DAAwC,CAAC;AACpD,KAAK,KAAK,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC;AACtC,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
3
|
+
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
4
|
+
|
|
5
|
+
export interface NavigationMenuProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<script lang="ts">
|
|
9
|
+
import { RootContext } from '../modules/root-context';
|
|
10
|
+
import { classesNavigation } from '@skeletonlabs/skeleton-common';
|
|
11
|
+
import { mergeProps } from '@zag-js/svelte';
|
|
12
|
+
|
|
13
|
+
const props: NavigationMenuProps = $props();
|
|
14
|
+
|
|
15
|
+
const navigation = RootContext.consume();
|
|
16
|
+
|
|
17
|
+
const { element, children, ...rest } = $derived(props);
|
|
18
|
+
|
|
19
|
+
const attributes = $derived(
|
|
20
|
+
mergeProps(
|
|
21
|
+
{
|
|
22
|
+
'data-layout': navigation().layout,
|
|
23
|
+
class: classesNavigation.menu,
|
|
24
|
+
},
|
|
25
|
+
rest,
|
|
26
|
+
),
|
|
27
|
+
);
|
|
28
|
+
</script>
|
|
29
|
+
|
|
30
|
+
{#if element}
|
|
31
|
+
{@render element(attributes)}
|
|
32
|
+
{:else}
|
|
33
|
+
<div {...attributes}>
|
|
34
|
+
{@render children?.()}
|
|
35
|
+
</div>
|
|
36
|
+
{/if}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
2
|
+
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
3
|
+
export interface NavigationMenuProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {
|
|
4
|
+
}
|
|
5
|
+
declare const Menu: import("svelte").Component<NavigationMenuProps, {}, "">;
|
|
6
|
+
type Menu = ReturnType<typeof Menu>;
|
|
7
|
+
export default Menu;
|
|
8
|
+
//# sourceMappingURL=menu.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu.svelte.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/anatomy/menu.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,KAAK,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC;CAAG;AAyC/F,QAAA,MAAM,IAAI,yDAAwC,CAAC;AACnD,KAAK,IAAI,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC;AACpC,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
3
|
+
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
4
|
+
|
|
5
|
+
export interface NavigationRootProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {
|
|
6
|
+
/**
|
|
7
|
+
* Sets the data-layout attribute, which modifies the visual presentation of the component set.
|
|
8
|
+
*
|
|
9
|
+
* @default bar
|
|
10
|
+
* */
|
|
11
|
+
layout?: 'bar' | 'rail' | 'sidebar';
|
|
12
|
+
}
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<script lang="ts">
|
|
16
|
+
import { RootContext } from '../modules/root-context';
|
|
17
|
+
import { classesNavigation } from '@skeletonlabs/skeleton-common';
|
|
18
|
+
import { mergeProps } from '@zag-js/svelte';
|
|
19
|
+
|
|
20
|
+
const props: NavigationRootProps = $props();
|
|
21
|
+
const { layout = 'bar', element, children, ...rest } = $derived(props);
|
|
22
|
+
|
|
23
|
+
const attributes = $derived(
|
|
24
|
+
mergeProps(
|
|
25
|
+
{
|
|
26
|
+
'data-layout': layout,
|
|
27
|
+
class: classesNavigation.root,
|
|
28
|
+
},
|
|
29
|
+
rest,
|
|
30
|
+
),
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
RootContext.provide(() => ({ layout }));
|
|
34
|
+
</script>
|
|
35
|
+
|
|
36
|
+
{#if element}
|
|
37
|
+
{@render element(attributes)}
|
|
38
|
+
{:else}
|
|
39
|
+
<div {...attributes}>
|
|
40
|
+
{@render children?.()}
|
|
41
|
+
</div>
|
|
42
|
+
{/if}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
2
|
+
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
3
|
+
export interface NavigationRootProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {
|
|
4
|
+
/**
|
|
5
|
+
* Sets the data-layout attribute, which modifies the visual presentation of the component set.
|
|
6
|
+
*
|
|
7
|
+
* @default bar
|
|
8
|
+
* */
|
|
9
|
+
layout?: 'bar' | 'rail' | 'sidebar';
|
|
10
|
+
}
|
|
11
|
+
declare const Root: import("svelte").Component<NavigationRootProps, {}, "">;
|
|
12
|
+
type Root = ReturnType<typeof Root>;
|
|
13
|
+
export default Root;
|
|
14
|
+
//# sourceMappingURL=root.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root.svelte.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/anatomy/root.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,KAAK,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC;IAC1F;;;;SAIK;IACL,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,SAAS,CAAC;CACpC;AAwCF,QAAA,MAAM,IAAI,yDAAwC,CAAC;AACnD,KAAK,IAAI,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC;AACpC,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type { NavigationRootProps } from './anatomy/root.svelte';
|
|
2
|
+
export type { NavigationMenuProps } from './anatomy/menu.svelte';
|
|
3
|
+
export type { NavigationHeaderProps } from './anatomy/header.svelte';
|
|
4
|
+
export type { NavigationContentProps } from './anatomy/content.svelte';
|
|
5
|
+
export type { NavigationFooterProps } from './anatomy/footer.svelte';
|
|
6
|
+
export type { NavigationGroupProps } from './anatomy/group.svelte';
|
|
7
|
+
export type { NavigationLabelProps } from './anatomy/label.svelte';
|
|
8
|
+
export { Navigation } from './modules/anatomy';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,YAAY,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,YAAY,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,YAAY,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,YAAY,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,YAAY,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,YAAY,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Navigation } from './modules/anatomy';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const Navigation: import("svelte").Component<import("..").NavigationRootProps, {}, ""> & {
|
|
2
|
+
Header: import("svelte").Component<import("..").NavigationHeaderProps, {}, "">;
|
|
3
|
+
Content: import("svelte").Component<import("..").NavigationContentProps, {}, "">;
|
|
4
|
+
Group: import("svelte").Component<import("..").NavigationGroupProps, {}, "">;
|
|
5
|
+
Label: import("svelte").Component<import("..").NavigationLabelProps, {}, "">;
|
|
6
|
+
Menu: import("svelte").Component<import("..").NavigationMenuProps, {}, "">;
|
|
7
|
+
Footer: import("svelte").Component<import("..").NavigationFooterProps, {}, "">;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=anatomy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anatomy.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/modules/anatomy.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,UAAU;;;;;;;CAOrB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import Content from '../anatomy/content.svelte';
|
|
2
|
+
import Footer from '../anatomy/footer.svelte';
|
|
3
|
+
import Group from '../anatomy/group.svelte';
|
|
4
|
+
import Header from '../anatomy/header.svelte';
|
|
5
|
+
import Label from '../anatomy/label.svelte';
|
|
6
|
+
import Menu from '../anatomy/menu.svelte';
|
|
7
|
+
import Root from '../anatomy/root.svelte';
|
|
8
|
+
export const Navigation = Object.assign(Root, {
|
|
9
|
+
Header: Header,
|
|
10
|
+
Content: Content,
|
|
11
|
+
Group: Group,
|
|
12
|
+
Label: Label,
|
|
13
|
+
Menu: Menu,
|
|
14
|
+
Footer: Footer,
|
|
15
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { NavigationRootProps } from '../anatomy/root.svelte';
|
|
2
|
+
export declare const RootContext: {
|
|
3
|
+
key: symbol;
|
|
4
|
+
consume(): () => Pick<NavigationRootProps, "layout">;
|
|
5
|
+
provide(value: () => Pick<NavigationRootProps, "layout">): () => Pick<NavigationRootProps, "layout">;
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=root-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-context.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/modules/root-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAGlE,eAAO,MAAM,WAAW;;qBAAuB,IAAI,CAAC,mBAAmB,EAAE,QAAQ,CAAC;yBAAnC,IAAI,CAAC,mBAAmB,EAAE,QAAQ,CAAC,SAAnC,IAAI,CAAC,mBAAmB,EAAE,QAAQ,CAAC;CAAG,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
3
|
+
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
4
|
+
|
|
5
|
+
export interface SegmentedControlControlProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<script lang="ts">
|
|
9
|
+
import { classesSegmentedControl } from '@skeletonlabs/skeleton-common';
|
|
10
|
+
import { mergeProps } from '@zag-js/svelte';
|
|
11
|
+
|
|
12
|
+
const props: SegmentedControlControlProps = $props();
|
|
13
|
+
|
|
14
|
+
const { element, children, ...rest } = $derived(props);
|
|
15
|
+
|
|
16
|
+
const attributes = $derived(
|
|
17
|
+
mergeProps(
|
|
18
|
+
{
|
|
19
|
+
class: classesSegmentedControl.control,
|
|
20
|
+
},
|
|
21
|
+
rest,
|
|
22
|
+
),
|
|
23
|
+
);
|
|
24
|
+
</script>
|
|
25
|
+
|
|
26
|
+
{#if element}
|
|
27
|
+
{@render element(attributes)}
|
|
28
|
+
{:else}
|
|
29
|
+
<div {...attributes}>{@render children?.()}</div>
|
|
30
|
+
{/if}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
2
|
+
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
3
|
+
export interface SegmentedControlControlProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {
|
|
4
|
+
}
|
|
5
|
+
declare const Control: import("svelte").Component<SegmentedControlControlProps, {}, "">;
|
|
6
|
+
type Control = ReturnType<typeof Control>;
|
|
7
|
+
export default Control;
|
|
8
|
+
//# sourceMappingURL=control.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control.svelte.d.ts","sourceRoot":"","sources":["../../../../src/components/segmented-control/anatomy/control.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,4BAA6B,SAAQ,gBAAgB,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC;CAAG;AAkCxG,QAAA,MAAM,OAAO,kEAAwC,CAAC;AACtD,KAAK,OAAO,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;AAC1C,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
3
|
+
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
4
|
+
|
|
5
|
+
export interface SegmentedControlLabelProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<script lang="ts">
|
|
9
|
+
import { RootContext } from '../modules/root-context';
|
|
10
|
+
import { classesSegmentedControl } from '@skeletonlabs/skeleton-common';
|
|
11
|
+
import { mergeProps } from '@zag-js/svelte';
|
|
12
|
+
|
|
13
|
+
const props: SegmentedControlLabelProps = $props();
|
|
14
|
+
|
|
15
|
+
const segmentedControl = RootContext.consume();
|
|
16
|
+
|
|
17
|
+
const { element, children, ...rest } = $derived(props);
|
|
18
|
+
|
|
19
|
+
const attributes = $derived(
|
|
20
|
+
mergeProps(
|
|
21
|
+
segmentedControl().getLabelProps(),
|
|
22
|
+
{
|
|
23
|
+
class: classesSegmentedControl.label,
|
|
24
|
+
},
|
|
25
|
+
rest,
|
|
26
|
+
),
|
|
27
|
+
);
|
|
28
|
+
</script>
|
|
29
|
+
|
|
30
|
+
{#if element}
|
|
31
|
+
{@render element(attributes)}
|
|
32
|
+
{:else}
|
|
33
|
+
<span {...attributes}>{@render children?.()}</span>
|
|
34
|
+
{/if}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
2
|
+
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
3
|
+
export interface SegmentedControlLabelProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {
|
|
4
|
+
}
|
|
5
|
+
declare const Label: import("svelte").Component<SegmentedControlLabelProps, {}, "">;
|
|
6
|
+
type Label = ReturnType<typeof Label>;
|
|
7
|
+
export default Label;
|
|
8
|
+
//# sourceMappingURL=label.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.svelte.d.ts","sourceRoot":"","sources":["../../../../src/components/segmented-control/anatomy/label.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,0BAA2B,SAAQ,gBAAgB,CAAC,MAAM,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC;CAAG;AAuCxG,QAAA,MAAM,KAAK,gEAAwC,CAAC;AACpD,KAAK,KAAK,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC;AACtC,eAAe,KAAK,CAAC"}
|
|
@@ -3,6 +3,8 @@ export { useSegmentedControl } from './modules/provider.svelte';
|
|
|
3
3
|
export type { SegmentedControlRootProps } from './anatomy/root.svelte';
|
|
4
4
|
export type { SegmentedControlRootContextProps } from './anatomy/root-context.svelte';
|
|
5
5
|
export type { SegmentedControlRootProviderProps } from './anatomy/root-provider.svelte';
|
|
6
|
+
export type { SegmentedControlLabelProps } from './anatomy/label.svelte';
|
|
7
|
+
export type { SegmentedControlControlProps } from './anatomy/control.svelte';
|
|
6
8
|
export type { SegmentedControlIndicatorProps } from './anatomy/indicator.svelte';
|
|
7
9
|
export type { SegmentedControlItemProps } from './anatomy/item.svelte';
|
|
8
10
|
export type { SegmentedControlItemTextProps } from './anatomy/item-text.svelte';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/segmented-control/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,YAAY,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AACvE,YAAY,EAAE,gCAAgC,EAAE,MAAM,+BAA+B,CAAC;AACtF,YAAY,EAAE,iCAAiC,EAAE,MAAM,gCAAgC,CAAC;AACxF,YAAY,EAAE,8BAA8B,EAAE,MAAM,4BAA4B,CAAC;AACjF,YAAY,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AACvE,YAAY,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAChF,YAAY,EAAE,oCAAoC,EAAE,MAAM,oCAAoC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/segmented-control/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,YAAY,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AACvE,YAAY,EAAE,gCAAgC,EAAE,MAAM,+BAA+B,CAAC;AACtF,YAAY,EAAE,iCAAiC,EAAE,MAAM,gCAAgC,CAAC;AACxF,YAAY,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AACzE,YAAY,EAAE,4BAA4B,EAAE,MAAM,0BAA0B,CAAC;AAC7E,YAAY,EAAE,8BAA8B,EAAE,MAAM,4BAA4B,CAAC;AACjF,YAAY,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AACvE,YAAY,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAChF,YAAY,EAAE,oCAAoC,EAAE,MAAM,oCAAoC,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export declare const SegmentedControl: import("svelte").Component<import("..").SegmentedControlRootProps, {}, ""> & {
|
|
2
2
|
Provider: import("svelte").Component<import("..").SegmentedControlRootProviderProps, {}, "">;
|
|
3
3
|
Context: import("svelte").Component<import("..").SegmentedControlRootContextProps, {}, "">;
|
|
4
|
+
Label: import("svelte").Component<import("..").SegmentedControlLabelProps, {}, "">;
|
|
5
|
+
Control: import("svelte").Component<import("..").SegmentedControlControlProps, {}, "">;
|
|
4
6
|
Indicator: import("svelte").Component<import("..").SegmentedControlIndicatorProps, {}, "">;
|
|
5
7
|
Item: import("svelte").Component<import("..").SegmentedControlItemProps, {}, "">;
|
|
6
8
|
ItemText: import("svelte").Component<import("..").SegmentedControlItemTextProps, {}, "">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anatomy.d.ts","sourceRoot":"","sources":["../../../../src/components/segmented-control/modules/anatomy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"anatomy.d.ts","sourceRoot":"","sources":["../../../../src/components/segmented-control/modules/anatomy.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,gBAAgB;;;;;;;;;CAS3B,CAAC"}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
+
import Control from '../anatomy/control.svelte';
|
|
1
2
|
import Indicator from '../anatomy/indicator.svelte';
|
|
2
3
|
import ItemHiddenInput from '../anatomy/item-hidden-input.svelte';
|
|
3
4
|
import ItemText from '../anatomy/item-text.svelte';
|
|
4
5
|
import Item from '../anatomy/item.svelte';
|
|
6
|
+
import Label from '../anatomy/label.svelte';
|
|
5
7
|
import RootContext from '../anatomy/root-context.svelte';
|
|
6
8
|
import RootProvider from '../anatomy/root-provider.svelte';
|
|
7
9
|
import Root from '../anatomy/root.svelte';
|
|
8
10
|
export const SegmentedControl = Object.assign(Root, {
|
|
9
11
|
Provider: RootProvider,
|
|
10
12
|
Context: RootContext,
|
|
13
|
+
Label: Label,
|
|
14
|
+
Control: Control,
|
|
11
15
|
Indicator: Indicator,
|
|
12
16
|
Item: Item,
|
|
13
17
|
ItemText: ItemText,
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from './components/avatar/index';
|
|
|
4
4
|
export * from './components/combobox/index';
|
|
5
5
|
export * from './components/dialog/index';
|
|
6
6
|
export * from './components/file-upload/index';
|
|
7
|
+
export * from './components/navigation/index';
|
|
7
8
|
export * from './components/popover/index';
|
|
8
9
|
export * from './components/portal/index';
|
|
9
10
|
export * from './components/progress-linear/index';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oCAAoC,CAAC;AACnD,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC;AACrD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAE3C,cAAc,6BAA6B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oCAAoC,CAAC;AACnD,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC;AACrD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAE3C,cAAc,6BAA6B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -4,6 +4,7 @@ export * from './components/avatar/index';
|
|
|
4
4
|
export * from './components/combobox/index';
|
|
5
5
|
export * from './components/dialog/index';
|
|
6
6
|
export * from './components/file-upload/index';
|
|
7
|
+
export * from './components/navigation/index';
|
|
7
8
|
export * from './components/popover/index';
|
|
8
9
|
export * from './components/portal/index';
|
|
9
10
|
export * from './components/progress-linear/index';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skeletonlabs/skeleton-svelte",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.17",
|
|
4
4
|
"description": "The Svelte package for Skeleton.",
|
|
5
5
|
"author": "endigo9740 <chris@skeletonlabs.dev>",
|
|
6
6
|
"repository": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@zag-js/tags-input": "1.24.2",
|
|
39
39
|
"@zag-js/toast": "1.24.2",
|
|
40
40
|
"@zag-js/tooltip": "1.24.2",
|
|
41
|
-
"@skeletonlabs/skeleton-common": "1.0.0-next.
|
|
41
|
+
"@skeletonlabs/skeleton-common": "1.0.0-next.13"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"svelte": "^5.29.0"
|