@skeletonlabs/skeleton-svelte 2.0.0-next.1 → 2.0.0-next.2
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/accordion-content.svelte +9 -2
- package/dist/components/accordion/anatomy/accordion-content.svelte.d.ts +4 -1
- package/dist/components/accordion/anatomy/accordion-heading.svelte +14 -1
- package/dist/components/accordion/anatomy/accordion-heading.svelte.d.ts +10 -1
- package/dist/components/accordion/anatomy/accordion-indicator.svelte +9 -2
- package/dist/components/accordion/anatomy/accordion-indicator.svelte.d.ts +4 -1
- package/dist/components/accordion/anatomy/accordion-item-context.svelte +17 -0
- package/dist/components/accordion/anatomy/accordion-item-context.svelte.d.ts +9 -0
- package/dist/components/accordion/anatomy/accordion-item.svelte +15 -4
- package/dist/components/accordion/anatomy/accordion-item.svelte.d.ts +5 -1
- package/dist/components/accordion/anatomy/accordion-root-context.svelte +17 -0
- package/dist/components/accordion/anatomy/accordion-root-context.svelte.d.ts +9 -0
- package/dist/components/accordion/anatomy/accordion-root.svelte +16 -6
- package/dist/components/accordion/anatomy/accordion-root.svelte.d.ts +5 -1
- package/dist/components/accordion/anatomy/accordion-trigger.svelte +9 -2
- package/dist/components/accordion/anatomy/accordion-trigger.svelte.d.ts +4 -1
- package/dist/components/accordion/index.d.ts +11 -2
- package/dist/components/accordion/index.js +1 -2
- package/dist/components/accordion/modules/accordion-anatomy.d.ts +9 -0
- package/dist/components/accordion/modules/{anatomy.js → accordion-anatomy.js} +5 -2
- package/dist/components/accordion/modules/accordion-item-context.d.ts +10 -0
- package/dist/components/accordion/modules/accordion-item-context.js +2 -0
- package/dist/components/accordion/modules/accordion-root-context.d.ts +9 -0
- package/dist/components/accordion/modules/accordion-root-context.js +2 -0
- package/dist/components/avatar/anatomy/avatar-fallback.svelte +8 -2
- package/dist/components/avatar/anatomy/avatar-fallback.svelte.d.ts +4 -1
- package/dist/components/avatar/anatomy/avatar-image.svelte +8 -2
- package/dist/components/avatar/anatomy/avatar-image.svelte.d.ts +4 -1
- package/dist/components/avatar/anatomy/avatar-root-context.svelte +17 -0
- package/dist/components/avatar/anatomy/avatar-root-context.svelte.d.ts +9 -0
- package/dist/components/avatar/anatomy/avatar-root.svelte +13 -6
- package/dist/components/avatar/anatomy/avatar-root.svelte.d.ts +5 -1
- package/dist/components/avatar/index.d.ts +6 -2
- package/dist/components/avatar/index.js +1 -2
- package/dist/components/avatar/modules/avatar-anatomy.d.ts +5 -0
- package/dist/components/avatar/modules/{anatomy.js → avatar-anatomy.js} +3 -2
- package/dist/components/avatar/modules/avatar-root-context.d.ts +9 -0
- package/dist/components/avatar/modules/avatar-root-context.js +2 -0
- package/dist/components/rating-group/anatomy/rating-group-control.svelte +31 -0
- package/dist/components/rating-group/anatomy/rating-group-control.svelte.d.ts +7 -0
- package/dist/components/rating-group/anatomy/rating-group-hidden-input.svelte +33 -0
- package/dist/components/rating-group/anatomy/rating-group-hidden-input.svelte.d.ts +7 -0
- package/dist/components/rating-group/anatomy/rating-group-item-context.svelte +17 -0
- package/dist/components/rating-group/anatomy/rating-group-item-context.svelte.d.ts +9 -0
- package/dist/components/rating-group/anatomy/rating-group-item.svelte +89 -0
- package/dist/components/rating-group/anatomy/rating-group-item.svelte.d.ts +27 -0
- package/dist/components/rating-group/anatomy/rating-group-label.svelte +31 -0
- package/dist/components/rating-group/anatomy/rating-group-label.svelte.d.ts +7 -0
- package/dist/components/rating-group/anatomy/rating-group-root-context.svelte +17 -0
- package/dist/components/rating-group/anatomy/rating-group-root-context.svelte.d.ts +9 -0
- package/dist/components/rating-group/anatomy/rating-group-root.svelte +52 -0
- package/dist/components/rating-group/anatomy/rating-group-root.svelte.d.ts +8 -0
- package/dist/components/rating-group/index.d.ts +10 -0
- package/dist/components/rating-group/index.js +1 -0
- package/dist/components/rating-group/modules/rating-group-anatomy.d.ts +8 -0
- package/dist/components/rating-group/modules/rating-group-anatomy.js +15 -0
- package/dist/components/rating-group/modules/rating-group-item-context.d.ts +9 -0
- package/dist/components/rating-group/modules/rating-group-item-context.js +2 -0
- package/dist/components/rating-group/modules/rating-group-root-context.d.ts +9 -0
- package/dist/components/rating-group/modules/rating-group-root-context.js +2 -0
- package/dist/components/tabs/anatomy/tabs-content.svelte +36 -0
- package/dist/components/tabs/anatomy/tabs-content.svelte.d.ts +8 -0
- package/dist/components/tabs/anatomy/tabs-indicator.svelte +31 -0
- package/dist/components/tabs/anatomy/tabs-indicator.svelte.d.ts +7 -0
- package/dist/components/tabs/anatomy/tabs-list.svelte +33 -0
- package/dist/components/tabs/anatomy/tabs-list.svelte.d.ts +7 -0
- package/dist/components/tabs/anatomy/tabs-root-context.svelte +17 -0
- package/dist/components/tabs/anatomy/tabs-root-context.svelte.d.ts +9 -0
- package/dist/components/tabs/anatomy/tabs-root.svelte +49 -0
- package/dist/components/tabs/anatomy/tabs-root.svelte.d.ts +8 -0
- package/dist/components/tabs/anatomy/tabs-trigger.svelte +36 -0
- package/dist/components/tabs/anatomy/tabs-trigger.svelte.d.ts +8 -0
- package/dist/components/tabs/index.d.ts +1 -0
- package/dist/components/tabs/index.js +1 -0
- package/dist/components/tabs/modules/tabs-anatomy.d.ts +7 -0
- package/dist/components/tabs/modules/tabs-anatomy.js +13 -0
- package/dist/components/tabs/modules/tabs-root-context.d.ts +9 -0
- package/dist/components/tabs/modules/tabs-root-context.js +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/internal/components/star-empty.svelte +12 -0
- package/dist/internal/components/star-empty.svelte.d.ts +26 -0
- package/dist/internal/components/star-full.svelte +12 -0
- package/dist/internal/components/star-full.svelte.d.ts +26 -0
- package/dist/internal/components/star-half.svelte +19 -0
- package/dist/internal/components/star-half.svelte.d.ts +26 -0
- package/dist/internal/create-context.d.ts +5 -6
- package/dist/internal/create-context.js +10 -9
- package/dist/internal/props-with-element.d.ts +3 -0
- package/package.json +2 -3
- package/dist/components/accordion/modules/anatomy.d.ts +0 -8
- package/dist/components/accordion/modules/context.d.ts +0 -12
- package/dist/components/accordion/modules/context.js +0 -4
- package/dist/components/accordion/modules/types.d.ts +0 -29
- package/dist/components/accordion/modules/types.js +0 -1
- package/dist/components/avatar/modules/anatomy.d.ts +0 -5
- package/dist/components/avatar/modules/context.d.ts +0 -7
- package/dist/components/avatar/modules/context.js +0 -3
- package/dist/components/avatar/modules/types.d.ts +0 -14
- package/dist/components/avatar/modules/types.js +0 -1
- package/dist/internal/create-context-new.d.ts +0 -5
- package/dist/internal/create-context-new.js +0 -13
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import TabsRoot from '../anatomy/tabs-root.svelte';
|
|
2
|
+
import TabsRootContext from '../anatomy/tabs-root-context.svelte';
|
|
3
|
+
import TabsList from '../anatomy/tabs-list.svelte';
|
|
4
|
+
import TabsTrigger from '../anatomy/tabs-trigger.svelte';
|
|
5
|
+
import TabsIndicator from '../anatomy/tabs-indicator.svelte';
|
|
6
|
+
import TabsContent from '../anatomy/tabs-content.svelte';
|
|
7
|
+
export const Tabs = Object.assign(TabsRoot, {
|
|
8
|
+
Context: TabsRootContext,
|
|
9
|
+
List: TabsList,
|
|
10
|
+
Trigger: TabsTrigger,
|
|
11
|
+
Indicator: TabsIndicator,
|
|
12
|
+
Content: TabsContent
|
|
13
|
+
});
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24" fill="none" stroke="currentColor" stroke-width="1.5">
|
|
2
|
+
<path
|
|
3
|
+
stroke-linecap="round"
|
|
4
|
+
stroke-linejoin="round"
|
|
5
|
+
d="M11.48 3.499a.562.562 0 0 1 1.04 0l2.125 5.111a.563.563 0 0 0 .475.345
|
|
6
|
+
l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 0 0-.182.557
|
|
7
|
+
l1.285 5.385a.562.562 0 0 1-.84.61l-4.725-2.885a.562.562 0 0 0-.586 0
|
|
8
|
+
L6.982 20.54a.562.562 0 0 1-.84-.61l1.285-5.386a.562.562 0 0 0-.182-.557
|
|
9
|
+
l-4.204-3.602a.562.562 0 0 1 .321-.988l5.518-.442a.563.563 0 0 0 .475-.345
|
|
10
|
+
L11.48 3.5Z"
|
|
11
|
+
/>
|
|
12
|
+
</svg>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export default StarEmpty;
|
|
2
|
+
type StarEmpty = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
declare const StarEmpty: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
14
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
15
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
16
|
+
$$bindings?: Bindings;
|
|
17
|
+
} & Exports;
|
|
18
|
+
(internal: unknown, props: {
|
|
19
|
+
$$events?: Events;
|
|
20
|
+
$$slots?: Slots;
|
|
21
|
+
}): Exports & {
|
|
22
|
+
$set?: any;
|
|
23
|
+
$on?: any;
|
|
24
|
+
};
|
|
25
|
+
z_$$bindings?: Bindings;
|
|
26
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24" fill="currentColor">
|
|
2
|
+
<path
|
|
3
|
+
fill-rule="evenodd"
|
|
4
|
+
clip-rule="evenodd"
|
|
5
|
+
d="M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.006
|
|
6
|
+
5.404.434c1.164.093 1.636 1.545.749 2.305l-4.117 3.527
|
|
7
|
+
1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354
|
|
8
|
+
7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273
|
|
9
|
+
-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.434
|
|
10
|
+
2.082-5.005Z"
|
|
11
|
+
/>
|
|
12
|
+
</svg>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export default StarFull;
|
|
2
|
+
type StarFull = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
declare const StarFull: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
14
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
15
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
16
|
+
$$bindings?: Bindings;
|
|
17
|
+
} & Exports;
|
|
18
|
+
(internal: unknown, props: {
|
|
19
|
+
$$events?: Events;
|
|
20
|
+
$$slots?: Slots;
|
|
21
|
+
}): Exports & {
|
|
22
|
+
$set?: any;
|
|
23
|
+
$on?: any;
|
|
24
|
+
};
|
|
25
|
+
z_$$bindings?: Bindings;
|
|
26
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24" fill="none" stroke="currentColor" stroke-width="1.5">
|
|
2
|
+
<defs>
|
|
3
|
+
<linearGradient id="half-fill" x1="0%" y1="0%" x2="100%" y2="0%">
|
|
4
|
+
<stop offset="50%" stop-color="currentColor" />
|
|
5
|
+
<stop offset="50%" stop-color="transparent" />
|
|
6
|
+
</linearGradient>
|
|
7
|
+
</defs>
|
|
8
|
+
<path
|
|
9
|
+
fill="url(#half-fill)"
|
|
10
|
+
stroke-linecap="round"
|
|
11
|
+
stroke-linejoin="round"
|
|
12
|
+
d="M11.48 3.499a.562.562 0 0 1 1.04 0l2.125 5.111a.563.563 0 0 0 .475.345
|
|
13
|
+
l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 0 0-.182.557
|
|
14
|
+
l1.285 5.385a.562.562 0 0 1-.84.61l-4.725-2.885a.562.562 0 0 0-.586 0
|
|
15
|
+
L6.982 20.54a.562.562 0 0 1-.84-.61l1.285-5.386a.562.562 0 0 0-.182-.557
|
|
16
|
+
l-4.204-3.602a.562.562 0 0 1 .321-.988l5.518-.442a.563.563 0 0 0 .475-.345
|
|
17
|
+
L11.48 3.5Z"
|
|
18
|
+
/>
|
|
19
|
+
</svg>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export default StarHalf;
|
|
2
|
+
type StarHalf = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
declare const StarHalf: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
14
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
15
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
16
|
+
$$bindings?: Bindings;
|
|
17
|
+
} & Exports;
|
|
18
|
+
(internal: unknown, props: {
|
|
19
|
+
$$events?: Events;
|
|
20
|
+
$$slots?: Slots;
|
|
21
|
+
}): Exports & {
|
|
22
|
+
$set?: any;
|
|
23
|
+
$on?: any;
|
|
24
|
+
};
|
|
25
|
+
z_$$bindings?: Bindings;
|
|
26
|
+
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare function createContext<T>(defaultValue: T): readonly [(value: T) => T, () => T, symbol];
|
|
1
|
+
export declare function createContext<T>(): {
|
|
2
|
+
key: symbol;
|
|
3
|
+
consume(): T;
|
|
4
|
+
provide(value: T): T;
|
|
5
|
+
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { getContext, setContext } from 'svelte';
|
|
2
|
-
|
|
3
|
-
* Create a context with a default value
|
|
4
|
-
* @param defaultValue The default value that will be returned if the context is not set
|
|
5
|
-
* @returns [set, get, key] The setter, getter and key for the context, the getter returns the default value if the context is not set
|
|
6
|
-
*/
|
|
7
|
-
export function createContext(defaultValue) {
|
|
2
|
+
export function createContext() {
|
|
8
3
|
const key = Symbol();
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
return {
|
|
5
|
+
key: key,
|
|
6
|
+
consume() {
|
|
7
|
+
return getContext(key);
|
|
8
|
+
},
|
|
9
|
+
provide(value) {
|
|
10
|
+
return setContext(key, value);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
12
13
|
}
|
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.2",
|
|
4
4
|
"description": "The Svelte package for Skeleton.",
|
|
5
5
|
"author": "endigo9740 <chris@skeletonlabs.dev>",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -33,13 +33,12 @@
|
|
|
33
33
|
"@zag-js/tags-input": "^1.22.1",
|
|
34
34
|
"@zag-js/toast": "^1.22.1",
|
|
35
35
|
"@zag-js/tooltip": "^1.22.1",
|
|
36
|
-
"@skeletonlabs/skeleton-common": "1.0.0-next.
|
|
36
|
+
"@skeletonlabs/skeleton-common": "1.0.0-next.2"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"svelte": "^5.20.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@sveltejs/adapter-auto": "^6.1.0",
|
|
43
42
|
"@sveltejs/kit": "^2.37.0",
|
|
44
43
|
"@sveltejs/package": "^2.5.0",
|
|
45
44
|
"@sveltejs/vite-plugin-svelte": "^6.1.3",
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
declare const Accordion: import("svelte").Component<import("./types").AccordionRootProps, {}, ""> & {
|
|
2
|
-
Item: import("svelte").Component<import("./types").AccordionItemProps, {}, "">;
|
|
3
|
-
Heading: import("svelte").Component<import("./types").AccordionHeadingProps, {}, "">;
|
|
4
|
-
Trigger: import("svelte").Component<import("./types").AccordionTriggerProps, {}, "">;
|
|
5
|
-
Indicator: import("svelte").Component<import("./types").AccordionIndicatorProps, {}, "">;
|
|
6
|
-
Content: import("svelte").Component<import("./types").AccordionContentProps, {}, "">;
|
|
7
|
-
};
|
|
8
|
-
export { Accordion };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { AccordionItemContext as AccordionItemContextType, AccordionRootContext as AccordionRootContextType } from './types.js';
|
|
2
|
-
declare const AccordionRootContext: {
|
|
3
|
-
key: symbol;
|
|
4
|
-
consume(): AccordionRootContextType;
|
|
5
|
-
provide(value: AccordionRootContextType): AccordionRootContextType;
|
|
6
|
-
};
|
|
7
|
-
declare const AccordionItemContext: {
|
|
8
|
-
key: symbol;
|
|
9
|
-
consume(): AccordionItemContextType;
|
|
10
|
-
provide(value: AccordionItemContextType): AccordionItemContextType;
|
|
11
|
-
};
|
|
12
|
-
export { AccordionRootContext, AccordionItemContext };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import * as accordion from '@zag-js/accordion';
|
|
2
|
-
import type { HTMLAttributes, HTMLButtonAttributes } from 'svelte/elements';
|
|
3
|
-
import type { PropsWithElement } from '../../../internal/props-with-element.js';
|
|
4
|
-
import type { PropsWithChildren } from '../../../internal/props-with-children.js';
|
|
5
|
-
interface AccordionRootProps extends PropsWithElement, PropsWithChildren, Omit<accordion.Props, 'id'>, Omit<HTMLAttributes<HTMLDivElement>, 'id' | 'defaultValue' | 'dir'> {
|
|
6
|
-
}
|
|
7
|
-
interface AccordionItemProps extends PropsWithElement, PropsWithChildren, accordion.ItemProps, HTMLAttributes<HTMLDivElement> {
|
|
8
|
-
}
|
|
9
|
-
interface AccordionHeadingProps extends PropsWithElement, PropsWithChildren, HTMLAttributes<HTMLHeadingElement> {
|
|
10
|
-
/**
|
|
11
|
-
* The level of the heading. This is used to determine the heading level for accessibility purposes.
|
|
12
|
-
*
|
|
13
|
-
* @defaultValue 3
|
|
14
|
-
*/
|
|
15
|
-
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
16
|
-
}
|
|
17
|
-
interface AccordionTriggerProps extends PropsWithElement, PropsWithChildren, HTMLButtonAttributes {
|
|
18
|
-
}
|
|
19
|
-
interface AccordionIndicatorProps extends PropsWithElement, PropsWithChildren, HTMLAttributes<HTMLDivElement> {
|
|
20
|
-
}
|
|
21
|
-
interface AccordionContentProps extends PropsWithElement, PropsWithChildren, HTMLAttributes<HTMLDivElement> {
|
|
22
|
-
}
|
|
23
|
-
interface AccordionRootContext {
|
|
24
|
-
api: accordion.Api;
|
|
25
|
-
}
|
|
26
|
-
interface AccordionItemContext {
|
|
27
|
-
itemProps: accordion.ItemProps;
|
|
28
|
-
}
|
|
29
|
-
export type { AccordionRootProps, AccordionItemProps, AccordionTriggerProps, AccordionHeadingProps, AccordionIndicatorProps, AccordionContentProps, AccordionRootContext, AccordionItemContext };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import * as accordion from '@zag-js/accordion';
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
declare const Avatar: import("svelte").Component<import("./types").AvatarRootProps, {}, ""> & {
|
|
2
|
-
Image: import("svelte").Component<import("./types").AvatarImageProps, {}, "">;
|
|
3
|
-
Fallback: import("svelte").Component<import("./types").AvatarFallbackProps, {}, "">;
|
|
4
|
-
};
|
|
5
|
-
export { Avatar };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as avatar from '@zag-js/avatar';
|
|
2
|
-
import type { HTMLAttributes, HTMLImgAttributes } from 'svelte/elements';
|
|
3
|
-
import type { PropsWithChildren } from '../../../internal/props-with-children.js';
|
|
4
|
-
import type { PropsWithElement } from '../../../internal/props-with-element.js';
|
|
5
|
-
interface AvatarRootProps extends PropsWithElement, PropsWithChildren, Omit<avatar.Props, 'id'>, Omit<HTMLAttributes<HTMLDivElement>, 'id' | 'dir'> {
|
|
6
|
-
}
|
|
7
|
-
interface AvatarImageProps extends PropsWithElement, HTMLImgAttributes {
|
|
8
|
-
}
|
|
9
|
-
interface AvatarFallbackProps extends PropsWithElement, PropsWithChildren, HTMLAttributes<HTMLSpanElement> {
|
|
10
|
-
}
|
|
11
|
-
interface AvatarRootContext {
|
|
12
|
-
api: avatar.Api;
|
|
13
|
-
}
|
|
14
|
-
export type { AvatarRootProps, AvatarImageProps, AvatarFallbackProps, AvatarRootContext };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import * as avatar from '@zag-js/avatar';
|