@skeletonlabs/skeleton-svelte 1.6.0-next.0 → 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/{composed → components}/accordion/anatomy/accordion-content.svelte +9 -2
- package/dist/components/accordion/anatomy/accordion-content.svelte.d.ts +7 -0
- package/dist/{composed → components}/accordion/anatomy/accordion-heading.svelte +14 -1
- package/dist/components/accordion/anatomy/accordion-heading.svelte.d.ts +13 -0
- package/dist/{composed → components}/accordion/anatomy/accordion-indicator.svelte +9 -2
- package/dist/components/accordion/anatomy/accordion-indicator.svelte.d.ts +7 -0
- 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 +45 -0
- package/dist/components/accordion/anatomy/accordion-item.svelte.d.ts +8 -0
- 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 +49 -0
- package/dist/components/accordion/anatomy/accordion-root.svelte.d.ts +8 -0
- package/dist/{composed → components}/accordion/anatomy/accordion-trigger.svelte +9 -2
- package/dist/components/accordion/anatomy/accordion-trigger.svelte.d.ts +7 -0
- package/dist/components/accordion/index.d.ts +11 -0
- package/dist/components/accordion/index.js +1 -0
- package/dist/components/accordion/modules/accordion-anatomy.d.ts +9 -0
- package/dist/{composed/accordion/modules/anatomy.js → components/accordion/modules/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/{composed → components}/avatar/anatomy/avatar-fallback.svelte +8 -2
- package/dist/components/avatar/anatomy/avatar-fallback.svelte.d.ts +7 -0
- package/dist/{composed → components}/avatar/anatomy/avatar-image.svelte +8 -2
- package/dist/components/avatar/anatomy/avatar-image.svelte.d.ts +7 -0
- 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/{composed → components}/avatar/anatomy/avatar-root.svelte +13 -6
- package/dist/components/avatar/anatomy/avatar-root.svelte.d.ts +8 -0
- package/dist/components/avatar/index.d.ts +6 -0
- package/dist/components/avatar/index.js +1 -0
- package/dist/components/avatar/modules/avatar-anatomy.d.ts +5 -0
- package/dist/{composed/avatar/modules/anatomy.js → components/avatar/modules/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.css +2 -0
- package/dist/index.d.ts +4 -21
- package/dist/index.js +4 -29
- 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 +30 -39
- package/dist/components/Accordion/Accordion.svelte +0 -55
- package/dist/components/Accordion/Accordion.svelte.d.ts +0 -5
- package/dist/components/Accordion/AccordionItem.svelte +0 -90
- package/dist/components/Accordion/AccordionItem.svelte.d.ts +0 -5
- package/dist/components/Accordion/context.d.ts +0 -2
- package/dist/components/Accordion/context.js +0 -3
- package/dist/components/Accordion/index.d.ts +0 -4
- package/dist/components/Accordion/index.js +0 -3
- package/dist/components/Accordion/types.d.ts +0 -74
- package/dist/components/Accordion/types.js +0 -1
- package/dist/components/AppBar/AppBar.svelte +0 -72
- package/dist/components/AppBar/AppBar.svelte.d.ts +0 -5
- package/dist/components/AppBar/types.d.ts +0 -61
- package/dist/components/AppBar/types.js +0 -1
- package/dist/components/Avatar/Avatar.svelte +0 -68
- package/dist/components/Avatar/Avatar.svelte.d.ts +0 -5
- package/dist/components/Avatar/types.d.ts +0 -39
- package/dist/components/Avatar/types.js +0 -1
- package/dist/components/Combobox/Combobox.svelte +0 -154
- package/dist/components/Combobox/Combobox.svelte.d.ts +0 -18
- package/dist/components/Combobox/types.d.ts +0 -66
- package/dist/components/Combobox/types.js +0 -1
- package/dist/components/FileUpload/FileUpload.svelte +0 -132
- package/dist/components/FileUpload/FileUpload.svelte.d.ts +0 -5
- package/dist/components/FileUpload/types.d.ts +0 -74
- package/dist/components/FileUpload/types.js +0 -1
- package/dist/components/Modal/Modal.svelte +0 -87
- package/dist/components/Modal/Modal.svelte.d.ts +0 -4
- package/dist/components/Modal/types.d.ts +0 -58
- package/dist/components/Modal/types.js +0 -1
- package/dist/components/Navigation/NavBar.svelte +0 -48
- package/dist/components/Navigation/NavBar.svelte.d.ts +0 -5
- package/dist/components/Navigation/NavRail.svelte +0 -90
- package/dist/components/Navigation/NavRail.svelte.d.ts +0 -5
- package/dist/components/Navigation/NavTile.svelte +0 -87
- package/dist/components/Navigation/NavTile.svelte.d.ts +0 -5
- package/dist/components/Navigation/context.d.ts +0 -2
- package/dist/components/Navigation/context.js +0 -6
- package/dist/components/Navigation/index.d.ts +0 -6
- package/dist/components/Navigation/index.js +0 -4
- package/dist/components/Navigation/types.d.ts +0 -132
- package/dist/components/Navigation/types.js +0 -1
- package/dist/components/Pagination/Pagination.svelte +0 -146
- package/dist/components/Pagination/Pagination.svelte.d.ts +0 -4
- package/dist/components/Pagination/types.d.ts +0 -56
- package/dist/components/Pagination/types.js +0 -1
- package/dist/components/Popover/Popover.svelte +0 -74
- package/dist/components/Popover/Popover.svelte.d.ts +0 -4
- package/dist/components/Popover/types.d.ts +0 -45
- package/dist/components/Popover/types.js +0 -1
- package/dist/components/Progress/Progress.svelte +0 -63
- package/dist/components/Progress/Progress.svelte.d.ts +0 -5
- package/dist/components/Progress/types.d.ts +0 -44
- package/dist/components/Progress/types.js +0 -1
- package/dist/components/ProgressRing/ProgressRing.svelte +0 -98
- package/dist/components/ProgressRing/ProgressRing.svelte.d.ts +0 -5
- package/dist/components/ProgressRing/types.d.ts +0 -56
- package/dist/components/ProgressRing/types.js +0 -1
- package/dist/components/Rating/Rating.svelte +0 -135
- package/dist/components/Rating/Rating.svelte.d.ts +0 -5
- package/dist/components/Rating/index.d.ts +0 -2
- package/dist/components/Rating/index.js +0 -2
- package/dist/components/Rating/types.d.ts +0 -36
- package/dist/components/Rating/types.js +0 -1
- package/dist/components/Segment/Segment.svelte +0 -77
- package/dist/components/Segment/Segment.svelte.d.ts +0 -5
- package/dist/components/Segment/SegmentItem.svelte +0 -40
- package/dist/components/Segment/SegmentItem.svelte.d.ts +0 -5
- package/dist/components/Segment/context.d.ts +0 -2
- package/dist/components/Segment/context.js +0 -6
- package/dist/components/Segment/index.d.ts +0 -4
- package/dist/components/Segment/index.js +0 -3
- package/dist/components/Segment/types.d.ts +0 -64
- package/dist/components/Segment/types.js +0 -1
- package/dist/components/Slider/Slider.svelte +0 -105
- package/dist/components/Slider/Slider.svelte.d.ts +0 -4
- package/dist/components/Slider/types.d.ts +0 -68
- package/dist/components/Slider/types.js +0 -1
- package/dist/components/Switch/Switch.svelte +0 -102
- package/dist/components/Switch/Switch.svelte.d.ts +0 -5
- package/dist/components/Switch/types.d.ts +0 -64
- package/dist/components/Switch/types.js +0 -1
- package/dist/components/Tabs/Tabs.svelte +0 -59
- package/dist/components/Tabs/Tabs.svelte.d.ts +0 -5
- package/dist/components/Tabs/TabsControl.svelte +0 -51
- package/dist/components/Tabs/TabsControl.svelte.d.ts +0 -5
- package/dist/components/Tabs/TabsPanel.svelte +0 -23
- package/dist/components/Tabs/TabsPanel.svelte.d.ts +0 -5
- package/dist/components/Tabs/context.d.ts +0 -2
- package/dist/components/Tabs/context.js +0 -6
- package/dist/components/Tabs/index.d.ts +0 -5
- package/dist/components/Tabs/index.js +0 -4
- package/dist/components/Tabs/types.d.ts +0 -68
- package/dist/components/Tabs/types.js +0 -1
- package/dist/components/TagsInput/TagsInput.svelte +0 -96
- package/dist/components/TagsInput/TagsInput.svelte.d.ts +0 -5
- package/dist/components/TagsInput/types.d.ts +0 -40
- package/dist/components/TagsInput/types.js +0 -1
- package/dist/components/Toast/Toast.svelte +0 -76
- package/dist/components/Toast/Toast.svelte.d.ts +0 -4
- package/dist/components/Toast/Toaster.svelte +0 -72
- package/dist/components/Toast/Toaster.svelte.d.ts +0 -4
- package/dist/components/Toast/create-toaster.d.ts +0 -2
- package/dist/components/Toast/create-toaster.js +0 -4
- package/dist/components/Toast/types.d.ts +0 -47
- package/dist/components/Toast/types.js +0 -1
- package/dist/components/Tooltip/Tooltip.svelte +0 -78
- package/dist/components/Tooltip/Tooltip.svelte.d.ts +0 -4
- package/dist/components/Tooltip/types.d.ts +0 -47
- package/dist/components/Tooltip/types.js +0 -1
- package/dist/composed/accordion/anatomy/accordion-content.svelte.d.ts +0 -4
- package/dist/composed/accordion/anatomy/accordion-heading.svelte.d.ts +0 -4
- package/dist/composed/accordion/anatomy/accordion-indicator.svelte.d.ts +0 -4
- package/dist/composed/accordion/anatomy/accordion-item.svelte +0 -34
- package/dist/composed/accordion/anatomy/accordion-item.svelte.d.ts +0 -4
- package/dist/composed/accordion/anatomy/accordion-root.svelte +0 -39
- package/dist/composed/accordion/anatomy/accordion-root.svelte.d.ts +0 -4
- package/dist/composed/accordion/anatomy/accordion-trigger.svelte.d.ts +0 -4
- package/dist/composed/accordion/index.d.ts +0 -2
- package/dist/composed/accordion/index.js +0 -2
- package/dist/composed/accordion/modules/anatomy.d.ts +0 -8
- package/dist/composed/accordion/modules/context.d.ts +0 -12
- package/dist/composed/accordion/modules/context.js +0 -4
- package/dist/composed/accordion/modules/types.d.ts +0 -29
- package/dist/composed/accordion/modules/types.js +0 -1
- package/dist/composed/avatar/anatomy/avatar-fallback.svelte.d.ts +0 -4
- package/dist/composed/avatar/anatomy/avatar-image.svelte.d.ts +0 -4
- package/dist/composed/avatar/anatomy/avatar-root.svelte.d.ts +0 -4
- package/dist/composed/avatar/index.d.ts +0 -2
- package/dist/composed/avatar/index.js +0 -2
- package/dist/composed/avatar/modules/anatomy.d.ts +0 -5
- package/dist/composed/avatar/modules/context.d.ts +0 -7
- package/dist/composed/avatar/modules/context.js +0 -3
- package/dist/composed/avatar/modules/types.d.ts +0 -14
- package/dist/composed/avatar/modules/types.js +0 -1
- package/dist/composed/index.d.ts +0 -2
- package/dist/composed/index.js +0 -2
- package/dist/internal/create-context-new.d.ts +0 -5
- package/dist/internal/create-context-new.js +0 -13
package/dist/index.css
ADDED
package/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export { default as Pagination } from './components/Pagination/Pagination.svelte';
|
|
6
|
-
export { default as Progress } from './components/Progress/Progress.svelte';
|
|
7
|
-
export { default as ProgressRing } from './components/ProgressRing/ProgressRing.svelte';
|
|
8
|
-
export { default as Navigation } from './components/Navigation/index.js';
|
|
9
|
-
export { default as Segment } from './components/Segment/index.js';
|
|
10
|
-
export { default as Slider } from './components/Slider/Slider.svelte';
|
|
11
|
-
export { default as Switch } from './components/Switch/Switch.svelte';
|
|
12
|
-
export { default as Tabs } from './components/Tabs/index.js';
|
|
13
|
-
export { default as TagsInput } from './components/TagsInput/TagsInput.svelte';
|
|
14
|
-
export { default as Toaster } from './components/Toast/Toaster.svelte';
|
|
15
|
-
export { createToaster } from './components/Toast/create-toaster.js';
|
|
16
|
-
export { default as Rating } from './components/Rating/index.js';
|
|
17
|
-
export type { FileUploadApi } from './components/FileUpload/types.js';
|
|
18
|
-
export { default as Combobox } from './components/Combobox/Combobox.svelte';
|
|
19
|
-
export { default as Popover } from './components/Popover/Popover.svelte';
|
|
20
|
-
export { default as Tooltip } from './components/Tooltip/Tooltip.svelte';
|
|
21
|
-
export { default as Modal } from './components/Modal/Modal.svelte';
|
|
1
|
+
export * from './components/accordion/index.js';
|
|
2
|
+
export * from './components/avatar/index.js';
|
|
3
|
+
export * from './components/rating-group/index.js';
|
|
4
|
+
export * from './components/tabs/index.js';
|
package/dist/index.js
CHANGED
|
@@ -1,29 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
// (See Accordion, Nav, and Tabs for examples)
|
|
6
|
-
// Components
|
|
7
|
-
export { default as Accordion } from './components/Accordion/index.js';
|
|
8
|
-
export { default as AppBar } from './components/AppBar/AppBar.svelte';
|
|
9
|
-
export { default as Avatar } from './components/Avatar/Avatar.svelte';
|
|
10
|
-
export { default as FileUpload } from './components/FileUpload/FileUpload.svelte';
|
|
11
|
-
export { default as Pagination } from './components/Pagination/Pagination.svelte';
|
|
12
|
-
export { default as Progress } from './components/Progress/Progress.svelte';
|
|
13
|
-
export { default as ProgressRing } from './components/ProgressRing/ProgressRing.svelte';
|
|
14
|
-
export { default as Navigation } from './components/Navigation/index.js';
|
|
15
|
-
export { default as Segment } from './components/Segment/index.js';
|
|
16
|
-
export { default as Slider } from './components/Slider/Slider.svelte';
|
|
17
|
-
export { default as Switch } from './components/Switch/Switch.svelte';
|
|
18
|
-
export { default as Tabs } from './components/Tabs/index.js';
|
|
19
|
-
export { default as TagsInput } from './components/TagsInput/TagsInput.svelte';
|
|
20
|
-
export { default as Toaster } from './components/Toast/Toaster.svelte';
|
|
21
|
-
export { createToaster } from './components/Toast/create-toaster.js';
|
|
22
|
-
export { default as Rating } from './components/Rating/index.js';
|
|
23
|
-
// Temporary Features ---
|
|
24
|
-
// The following will be removed or replaced in the future.
|
|
25
|
-
// Popvers
|
|
26
|
-
export { default as Combobox } from './components/Combobox/Combobox.svelte';
|
|
27
|
-
export { default as Popover } from './components/Popover/Popover.svelte';
|
|
28
|
-
export { default as Tooltip } from './components/Tooltip/Tooltip.svelte';
|
|
29
|
-
export { default as Modal } from './components/Modal/Modal.svelte';
|
|
1
|
+
export * from './components/accordion/index.js';
|
|
2
|
+
export * from './components/avatar/index.js';
|
|
3
|
+
export * from './components/rating-group/index.js';
|
|
4
|
+
export * from './components/tabs/index.js';
|
|
@@ -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,67 +1,58 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skeletonlabs/skeleton-svelte",
|
|
3
|
-
"version": "
|
|
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",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
|
+
"style": "./dist/index.css",
|
|
9
10
|
"types": "./dist/index.d.ts",
|
|
10
11
|
"svelte": "./dist/index.js",
|
|
11
12
|
"default": "./dist/index.js"
|
|
12
|
-
},
|
|
13
|
-
"./composed": {
|
|
14
|
-
"types": "./dist/composed/index.d.ts",
|
|
15
|
-
"svelte": "./dist/composed/index.js",
|
|
16
|
-
"default": "./dist/composed/index.js"
|
|
17
13
|
}
|
|
18
14
|
},
|
|
19
15
|
"files": [
|
|
20
|
-
"dist"
|
|
21
|
-
"!dist/**/*.test.*"
|
|
16
|
+
"dist"
|
|
22
17
|
],
|
|
23
18
|
"dependencies": {
|
|
24
|
-
"@zag-js/accordion": "^1.
|
|
25
|
-
"@zag-js/avatar": "^1.
|
|
26
|
-
"@zag-js/combobox": "^1.
|
|
27
|
-
"@zag-js/dialog": "^1.
|
|
28
|
-
"@zag-js/file-upload": "^1.
|
|
29
|
-
"@zag-js/pagination": "^1.
|
|
30
|
-
"@zag-js/popover": "^1.
|
|
31
|
-
"@zag-js/progress": "^1.
|
|
32
|
-
"@zag-js/radio-group": "^1.
|
|
33
|
-
"@zag-js/rating-group": "^1.
|
|
34
|
-
"@zag-js/slider": "^1.
|
|
35
|
-
"@zag-js/svelte": "^1.
|
|
36
|
-
"@zag-js/switch": "^1.
|
|
37
|
-
"@zag-js/tabs": "^1.
|
|
38
|
-
"@zag-js/tags-input": "^1.
|
|
39
|
-
"@zag-js/toast": "^1.
|
|
40
|
-
"@zag-js/tooltip": "^1.
|
|
41
|
-
"@skeletonlabs/skeleton-common": "0.0
|
|
19
|
+
"@zag-js/accordion": "^1.22.1",
|
|
20
|
+
"@zag-js/avatar": "^1.22.1",
|
|
21
|
+
"@zag-js/combobox": "^1.22.1",
|
|
22
|
+
"@zag-js/dialog": "^1.22.1",
|
|
23
|
+
"@zag-js/file-upload": "^1.22.1",
|
|
24
|
+
"@zag-js/pagination": "^1.22.1",
|
|
25
|
+
"@zag-js/popover": "^1.22.1",
|
|
26
|
+
"@zag-js/progress": "^1.22.1",
|
|
27
|
+
"@zag-js/radio-group": "^1.22.1",
|
|
28
|
+
"@zag-js/rating-group": "^1.22.1",
|
|
29
|
+
"@zag-js/slider": "^1.22.1",
|
|
30
|
+
"@zag-js/svelte": "^1.22.1",
|
|
31
|
+
"@zag-js/switch": "^1.22.1",
|
|
32
|
+
"@zag-js/tabs": "^1.22.1",
|
|
33
|
+
"@zag-js/tags-input": "^1.22.1",
|
|
34
|
+
"@zag-js/toast": "^1.22.1",
|
|
35
|
+
"@zag-js/tooltip": "^1.22.1",
|
|
36
|
+
"@skeletonlabs/skeleton-common": "1.0.0-next.2"
|
|
42
37
|
},
|
|
43
38
|
"peerDependencies": {
|
|
44
39
|
"svelte": "^5.20.0"
|
|
45
40
|
},
|
|
46
41
|
"devDependencies": {
|
|
47
|
-
"@sveltejs/
|
|
48
|
-
"@sveltejs/
|
|
49
|
-
"@sveltejs/
|
|
50
|
-
"@
|
|
51
|
-
"@tailwindcss/forms": "^0.5.10",
|
|
52
|
-
"@tailwindcss/vite": "^4.1.11",
|
|
53
|
-
"@testing-library/jest-dom": "^6.6.3",
|
|
42
|
+
"@sveltejs/kit": "^2.37.0",
|
|
43
|
+
"@sveltejs/package": "^2.5.0",
|
|
44
|
+
"@sveltejs/vite-plugin-svelte": "^6.1.3",
|
|
45
|
+
"@testing-library/jest-dom": "^6.8.0",
|
|
54
46
|
"@testing-library/svelte": "^5.2.8",
|
|
55
47
|
"jsdom": "^26.1.0",
|
|
56
48
|
"publint": "^0.3.12",
|
|
57
|
-
"svelte": "^5.
|
|
58
|
-
"svelte-check": "^4.
|
|
59
|
-
"tailwindcss": "^4.1.11",
|
|
49
|
+
"svelte": "^5.38.6",
|
|
50
|
+
"svelte-check": "^4.3.1",
|
|
60
51
|
"tslib": "^2.8.1",
|
|
61
|
-
"typescript": "^5.
|
|
62
|
-
"vite": "^7.
|
|
52
|
+
"typescript": "^5.9.2",
|
|
53
|
+
"vite": "^7.1.3",
|
|
63
54
|
"vitest": "3.2.4",
|
|
64
|
-
"@skeletonlabs/skeleton": "
|
|
55
|
+
"@skeletonlabs/skeleton": "4.0.0-next.1"
|
|
65
56
|
},
|
|
66
57
|
"type": "module",
|
|
67
58
|
"scripts": {
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import * as accordion from '@zag-js/accordion';
|
|
3
|
-
import { useMachine, normalizeProps } from '@zag-js/svelte';
|
|
4
|
-
import { setAccordionContext } from './context.js';
|
|
5
|
-
import type { AccordionProps } from './types.js';
|
|
6
|
-
|
|
7
|
-
// Props
|
|
8
|
-
const {
|
|
9
|
-
animationConfig = {
|
|
10
|
-
duration: 200
|
|
11
|
-
},
|
|
12
|
-
// Root
|
|
13
|
-
base = '',
|
|
14
|
-
padding = '',
|
|
15
|
-
spaceY = 'space-y-2',
|
|
16
|
-
rounded = 'rounded-base',
|
|
17
|
-
width = 'w-full',
|
|
18
|
-
classes = '',
|
|
19
|
-
// Snippets
|
|
20
|
-
children,
|
|
21
|
-
iconOpen,
|
|
22
|
-
iconClosed,
|
|
23
|
-
...zagProps
|
|
24
|
-
}: AccordionProps = $props();
|
|
25
|
-
|
|
26
|
-
// Zag
|
|
27
|
-
const id = $props.id();
|
|
28
|
-
const service = useMachine(accordion.machine, () => ({
|
|
29
|
-
id: id,
|
|
30
|
-
...zagProps
|
|
31
|
-
}));
|
|
32
|
-
const api = $derived(accordion.connect(service, normalizeProps));
|
|
33
|
-
|
|
34
|
-
// Context
|
|
35
|
-
setAccordionContext({
|
|
36
|
-
get api() {
|
|
37
|
-
return api;
|
|
38
|
-
},
|
|
39
|
-
get animationConfig() {
|
|
40
|
-
return animationConfig;
|
|
41
|
-
},
|
|
42
|
-
get iconClosed() {
|
|
43
|
-
return iconClosed;
|
|
44
|
-
},
|
|
45
|
-
get iconOpen() {
|
|
46
|
-
return iconOpen;
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
</script>
|
|
50
|
-
|
|
51
|
-
<!-- @component Divide content into collapsible sections. -->
|
|
52
|
-
|
|
53
|
-
<div class="{base} {padding} {spaceY} {rounded} {width} {classes}" {...api.getRootProps()} data-testid="accordion">
|
|
54
|
-
{@render children?.()}
|
|
55
|
-
</div>
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { slide } from 'svelte/transition';
|
|
3
|
-
import { getAccordionContext } from './context.js';
|
|
4
|
-
import type { AccordionItemProps } from './types.js';
|
|
5
|
-
|
|
6
|
-
// Props
|
|
7
|
-
const {
|
|
8
|
-
headingLevel = 3,
|
|
9
|
-
// Root
|
|
10
|
-
base,
|
|
11
|
-
spaceY,
|
|
12
|
-
classes,
|
|
13
|
-
// Control
|
|
14
|
-
controlBase = 'flex text-start items-center space-x-4 w-full',
|
|
15
|
-
controlHover = 'hover:preset-tonal-primary',
|
|
16
|
-
controlPadding = 'py-2 px-4',
|
|
17
|
-
controlRounded = 'rounded-base',
|
|
18
|
-
controlClasses,
|
|
19
|
-
// Lead
|
|
20
|
-
leadBase = '',
|
|
21
|
-
leadClasses = '',
|
|
22
|
-
// Content
|
|
23
|
-
contentBase = 'flex-1',
|
|
24
|
-
contentClasses = '',
|
|
25
|
-
// Indicator
|
|
26
|
-
indicatorBase = '',
|
|
27
|
-
indicatorClasses = '',
|
|
28
|
-
// Panel
|
|
29
|
-
panelBase,
|
|
30
|
-
panelPadding = 'py-2 px-4',
|
|
31
|
-
panelRounded,
|
|
32
|
-
panelClasses,
|
|
33
|
-
// Snippets
|
|
34
|
-
control,
|
|
35
|
-
lead,
|
|
36
|
-
panel,
|
|
37
|
-
...zagProps
|
|
38
|
-
}: AccordionItemProps = $props();
|
|
39
|
-
|
|
40
|
-
// Context
|
|
41
|
-
const ctx = getAccordionContext();
|
|
42
|
-
</script>
|
|
43
|
-
|
|
44
|
-
<!-- @component A accordion item component. -->
|
|
45
|
-
|
|
46
|
-
<div class="{base} {spaceY} {classes}" {...ctx.api.getItemProps(zagProps)} data-testid="accordion-item">
|
|
47
|
-
<!-- Control -->
|
|
48
|
-
<svelte:element this={`h${headingLevel}`}>
|
|
49
|
-
<button
|
|
50
|
-
class="{controlBase} {controlHover} {controlPadding} {controlRounded} {controlClasses}"
|
|
51
|
-
{...ctx.api.getItemTriggerProps(zagProps)}
|
|
52
|
-
data-testid="accordion-control"
|
|
53
|
-
>
|
|
54
|
-
<!-- Lead -->
|
|
55
|
-
{#if lead}
|
|
56
|
-
<div class="{leadBase} {leadClasses}" data-testid="accordion-lead">{@render lead()}</div>
|
|
57
|
-
{/if}
|
|
58
|
-
<!-- Content -->
|
|
59
|
-
<div class="{contentBase} {contentClasses}" data-testid="accordion-control">
|
|
60
|
-
{@render control()}
|
|
61
|
-
</div>
|
|
62
|
-
<!-- Indicator -->
|
|
63
|
-
<div class="{indicatorBase} {indicatorClasses}" data-testid="accordion-indicator">
|
|
64
|
-
{#if ctx.api.value.includes(zagProps.value)}
|
|
65
|
-
{#if ctx.iconOpen}
|
|
66
|
-
{@render ctx.iconOpen()}
|
|
67
|
-
{:else}
|
|
68
|
-
−
|
|
69
|
-
{/if}
|
|
70
|
-
{:else if ctx.iconClosed}
|
|
71
|
-
{@render ctx.iconClosed()}
|
|
72
|
-
{:else}
|
|
73
|
-
+
|
|
74
|
-
{/if}
|
|
75
|
-
</div>
|
|
76
|
-
</button>
|
|
77
|
-
</svelte:element>
|
|
78
|
-
|
|
79
|
-
<!-- Panel -->
|
|
80
|
-
{#if ctx.api.value.includes(zagProps.value)}
|
|
81
|
-
<div
|
|
82
|
-
class="{panelBase} {panelPadding} {panelRounded} {panelClasses}"
|
|
83
|
-
{...ctx.api.getItemContentProps(zagProps)}
|
|
84
|
-
transition:slide={ctx.animationConfig}
|
|
85
|
-
data-testid="accordion-panel"
|
|
86
|
-
>
|
|
87
|
-
{@render panel?.()}
|
|
88
|
-
</div>
|
|
89
|
-
{/if}
|
|
90
|
-
</div>
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import type { Snippet } from 'svelte';
|
|
2
|
-
import * as accordion from '@zag-js/accordion';
|
|
3
|
-
import type { SlideParams } from 'svelte/transition';
|
|
4
|
-
export interface AccordionContext extends Pick<AccordionProps, 'animationConfig' | 'iconOpen' | 'iconClosed'> {
|
|
5
|
-
api: ReturnType<typeof accordion.connect>;
|
|
6
|
-
}
|
|
7
|
-
export interface AccordionProps extends Omit<accordion.Props, 'id' | 'orientation'> {
|
|
8
|
-
/** The animation configuration */
|
|
9
|
-
animationConfig?: SlideParams;
|
|
10
|
-
/** Sets base styles. */
|
|
11
|
-
base?: string;
|
|
12
|
-
/** Set padding styles. */
|
|
13
|
-
padding?: string;
|
|
14
|
-
/** Set vertical spacing styles. */
|
|
15
|
-
spaceY?: string;
|
|
16
|
-
/** Set border radius styles. */
|
|
17
|
-
rounded?: string;
|
|
18
|
-
/** Set the width styles. */
|
|
19
|
-
width?: string;
|
|
20
|
-
/** Provide arbitrary CSS classes. */
|
|
21
|
-
classes?: string;
|
|
22
|
-
/** The default child slot. */
|
|
23
|
-
children: Snippet;
|
|
24
|
-
/** Set the open state icon. */
|
|
25
|
-
iconOpen?: Snippet;
|
|
26
|
-
/** Set the closed state icon. */
|
|
27
|
-
iconClosed?: Snippet;
|
|
28
|
-
}
|
|
29
|
-
export interface AccordionItemProps extends accordion.ItemProps {
|
|
30
|
-
/** The heading level. */
|
|
31
|
-
headingLevel?: number;
|
|
32
|
-
/** Sets base styles. */
|
|
33
|
-
base?: string;
|
|
34
|
-
/** Set vertical spacing styles. */
|
|
35
|
-
spaceY?: string;
|
|
36
|
-
/** Provide arbitrary CSS classes. */
|
|
37
|
-
classes?: string;
|
|
38
|
-
/** Sets control's base styles. */
|
|
39
|
-
controlBase?: string;
|
|
40
|
-
/** Sets control's the hover styles. */
|
|
41
|
-
controlHover?: string;
|
|
42
|
-
/** Sets control's the padding styles. */
|
|
43
|
-
controlPadding?: string;
|
|
44
|
-
/** Sets control's the border radius styles. */
|
|
45
|
-
controlRounded?: string;
|
|
46
|
-
/** Provide arbitrary CSS classes to the control. */
|
|
47
|
-
controlClasses?: string;
|
|
48
|
-
/** Sets the lead's base styles */
|
|
49
|
-
leadBase?: string;
|
|
50
|
-
/** Provide arbitrary CSS classes to the lead. */
|
|
51
|
-
leadClasses?: string;
|
|
52
|
-
/** Sets the lead's base styles */
|
|
53
|
-
contentBase?: string;
|
|
54
|
-
/** Provide arbitrary CSS classes to the content. */
|
|
55
|
-
contentClasses?: string;
|
|
56
|
-
/** Sets the lead's base styles */
|
|
57
|
-
indicatorBase?: string;
|
|
58
|
-
/** Provide arbitrary CSS classes to the indicator. */
|
|
59
|
-
indicatorClasses?: string;
|
|
60
|
-
/** Set the panel's base styles. */
|
|
61
|
-
panelBase?: string;
|
|
62
|
-
/** Set the panel's padding styles. */
|
|
63
|
-
panelPadding?: string;
|
|
64
|
-
/** Set the panel's border-radius styles. */
|
|
65
|
-
panelRounded?: string;
|
|
66
|
-
/** Provide arbitrary CSS classes to the panel. */
|
|
67
|
-
panelClasses?: string;
|
|
68
|
-
/** The control's default slot. */
|
|
69
|
-
control: Snippet;
|
|
70
|
-
/** The control's lead icon slot. */
|
|
71
|
-
lead?: Snippet;
|
|
72
|
-
/** The panels's default slot. */
|
|
73
|
-
panel?: Snippet;
|
|
74
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import * as accordion from '@zag-js/accordion';
|