@skeletonlabs/skeleton-svelte 2.0.0-next.1 → 2.0.0-next.10
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/item-content.svelte +34 -0
- package/dist/components/accordion/anatomy/item-content.svelte.d.ts +8 -0
- package/dist/components/accordion/anatomy/item-content.svelte.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/item-heading.svelte +37 -0
- package/dist/components/accordion/anatomy/item-heading.svelte.d.ts +14 -0
- package/dist/components/accordion/anatomy/item-heading.svelte.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/item-indicator.svelte +30 -0
- package/dist/components/accordion/anatomy/item-indicator.svelte.d.ts +8 -0
- package/dist/components/accordion/anatomy/item-indicator.svelte.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/item-trigger.svelte +34 -0
- package/dist/components/accordion/anatomy/item-trigger.svelte.d.ts +8 -0
- package/dist/components/accordion/anatomy/item-trigger.svelte.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/item.svelte +38 -0
- package/dist/components/accordion/anatomy/item.svelte.d.ts +9 -0
- package/dist/components/accordion/anatomy/item.svelte.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/root-context.svelte +20 -0
- package/dist/components/accordion/anatomy/root-context.svelte.d.ts +9 -0
- package/dist/components/accordion/anatomy/root-context.svelte.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/root-provider.svelte +31 -0
- package/dist/components/accordion/anatomy/root-provider.svelte.d.ts +10 -0
- package/dist/components/accordion/anatomy/root-provider.svelte.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/root.svelte +42 -0
- package/dist/components/accordion/anatomy/root.svelte.d.ts +9 -0
- package/dist/components/accordion/anatomy/root.svelte.d.ts.map +1 -0
- package/dist/components/accordion/index.d.ts +11 -2
- package/dist/components/accordion/index.d.ts.map +1 -0
- package/dist/components/accordion/index.js +2 -2
- package/dist/components/accordion/modules/anatomy.d.ts +9 -7
- package/dist/components/accordion/modules/anatomy.d.ts.map +1 -0
- package/dist/components/accordion/modules/anatomy.js +16 -13
- package/dist/components/accordion/modules/item-context.d.ts +7 -0
- package/dist/components/accordion/modules/item-context.d.ts.map +1 -0
- package/dist/components/accordion/modules/item-context.js +2 -0
- package/dist/components/accordion/modules/root-context.d.ts +6 -0
- package/dist/components/accordion/modules/root-context.d.ts.map +1 -0
- package/dist/components/accordion/modules/root-context.js +2 -0
- package/dist/components/accordion/modules/use-accordion.svelte.d.ts +4 -0
- package/dist/components/accordion/modules/use-accordion.svelte.d.ts.map +1 -0
- package/dist/components/accordion/modules/use-accordion.svelte.js +7 -0
- package/dist/components/app-bar/anatomy/headline.svelte +28 -0
- package/dist/components/app-bar/anatomy/headline.svelte.d.ts +8 -0
- package/dist/components/app-bar/anatomy/headline.svelte.d.ts.map +1 -0
- package/dist/components/app-bar/anatomy/lead.svelte +28 -0
- package/dist/components/app-bar/anatomy/lead.svelte.d.ts +8 -0
- package/dist/components/app-bar/anatomy/lead.svelte.d.ts.map +1 -0
- package/dist/components/app-bar/anatomy/root.svelte +28 -0
- package/dist/components/app-bar/anatomy/root.svelte.d.ts +8 -0
- package/dist/components/app-bar/anatomy/root.svelte.d.ts.map +1 -0
- package/dist/components/app-bar/anatomy/toolbar.svelte +28 -0
- package/dist/components/app-bar/anatomy/toolbar.svelte.d.ts +8 -0
- package/dist/components/app-bar/anatomy/toolbar.svelte.d.ts.map +1 -0
- package/dist/components/app-bar/anatomy/trail.svelte +28 -0
- package/dist/components/app-bar/anatomy/trail.svelte.d.ts +8 -0
- package/dist/components/app-bar/anatomy/trail.svelte.d.ts.map +1 -0
- package/dist/components/app-bar/index.d.ts +7 -0
- package/dist/components/app-bar/index.d.ts.map +1 -0
- package/dist/components/app-bar/index.js +1 -0
- package/dist/components/app-bar/modules/anatomy.d.ts +7 -0
- package/dist/components/app-bar/modules/anatomy.d.ts.map +1 -0
- package/dist/components/app-bar/modules/anatomy.js +11 -0
- package/dist/components/avatar/anatomy/fallback.svelte +32 -0
- package/dist/components/avatar/anatomy/fallback.svelte.d.ts +8 -0
- package/dist/components/avatar/anatomy/fallback.svelte.d.ts.map +1 -0
- package/dist/components/avatar/anatomy/image.svelte +30 -0
- package/dist/components/avatar/anatomy/image.svelte.d.ts +8 -0
- package/dist/components/avatar/anatomy/image.svelte.d.ts.map +1 -0
- package/dist/components/avatar/anatomy/root-context.svelte +20 -0
- package/dist/components/avatar/anatomy/root-context.svelte.d.ts +9 -0
- package/dist/components/avatar/anatomy/root-context.svelte.d.ts.map +1 -0
- package/dist/components/avatar/anatomy/root-provider.svelte +35 -0
- package/dist/components/avatar/anatomy/root-provider.svelte.d.ts +10 -0
- package/dist/components/avatar/anatomy/root-provider.svelte.d.ts.map +1 -0
- package/dist/components/avatar/anatomy/root.svelte +42 -0
- package/dist/components/avatar/anatomy/root.svelte.d.ts +9 -0
- package/dist/components/avatar/anatomy/root.svelte.d.ts.map +1 -0
- package/dist/components/avatar/index.d.ts +8 -2
- package/dist/components/avatar/index.d.ts.map +1 -0
- package/dist/components/avatar/index.js +2 -2
- package/dist/components/avatar/modules/anatomy.d.ts +6 -4
- package/dist/components/avatar/modules/anatomy.d.ts.map +1 -0
- package/dist/components/avatar/modules/anatomy.js +10 -7
- package/dist/components/avatar/modules/root-context.d.ts +6 -0
- package/dist/components/avatar/modules/root-context.d.ts.map +1 -0
- package/dist/components/avatar/modules/root-context.js +2 -0
- package/dist/components/avatar/modules/use-avatar.svelte.d.ts +4 -0
- package/dist/components/avatar/modules/use-avatar.svelte.d.ts.map +1 -0
- package/dist/components/avatar/modules/use-avatar.svelte.js +7 -0
- package/dist/components/dialog/anatomy/backdrop.svelte +30 -0
- package/dist/components/dialog/anatomy/backdrop.svelte.d.ts +8 -0
- package/dist/components/dialog/anatomy/backdrop.svelte.d.ts.map +1 -0
- package/dist/components/dialog/anatomy/close-trigger.svelte +32 -0
- package/dist/components/dialog/anatomy/close-trigger.svelte.d.ts +8 -0
- package/dist/components/dialog/anatomy/close-trigger.svelte.d.ts.map +1 -0
- package/dist/components/dialog/anatomy/content.svelte +32 -0
- package/dist/components/dialog/anatomy/content.svelte.d.ts +8 -0
- package/dist/components/dialog/anatomy/content.svelte.d.ts.map +1 -0
- package/dist/components/dialog/anatomy/description.svelte +32 -0
- package/dist/components/dialog/anatomy/description.svelte.d.ts +8 -0
- package/dist/components/dialog/anatomy/description.svelte.d.ts.map +1 -0
- package/dist/components/dialog/anatomy/positioner.svelte +32 -0
- package/dist/components/dialog/anatomy/positioner.svelte.d.ts +8 -0
- package/dist/components/dialog/anatomy/positioner.svelte.d.ts.map +1 -0
- package/dist/components/dialog/anatomy/root-context.svelte +20 -0
- package/dist/components/dialog/anatomy/root-context.svelte.d.ts +9 -0
- package/dist/components/dialog/anatomy/root-context.svelte.d.ts.map +1 -0
- package/dist/components/dialog/anatomy/root-provider.svelte +20 -0
- package/dist/components/dialog/anatomy/root-provider.svelte.d.ts +9 -0
- package/dist/components/dialog/anatomy/root-provider.svelte.d.ts.map +1 -0
- package/dist/components/dialog/anatomy/root.svelte +27 -0
- package/dist/components/dialog/anatomy/root.svelte.d.ts +8 -0
- package/dist/components/dialog/anatomy/root.svelte.d.ts.map +1 -0
- package/dist/components/dialog/anatomy/title.svelte +32 -0
- package/dist/components/dialog/anatomy/title.svelte.d.ts +8 -0
- package/dist/components/dialog/anatomy/title.svelte.d.ts.map +1 -0
- package/dist/components/dialog/anatomy/trigger.svelte +32 -0
- package/dist/components/dialog/anatomy/trigger.svelte.d.ts +8 -0
- package/dist/components/dialog/anatomy/trigger.svelte.d.ts.map +1 -0
- package/dist/components/dialog/index.d.ts +13 -0
- package/dist/components/dialog/index.d.ts.map +1 -0
- package/dist/components/dialog/index.js +2 -0
- package/dist/components/dialog/modules/anatomy.d.ts +12 -0
- package/dist/components/dialog/modules/anatomy.d.ts.map +1 -0
- package/dist/components/dialog/modules/anatomy.js +21 -0
- package/dist/components/dialog/modules/root-context.d.ts +6 -0
- package/dist/components/dialog/modules/root-context.d.ts.map +1 -0
- package/dist/components/dialog/modules/root-context.js +2 -0
- package/dist/components/dialog/modules/use-dialog.svelte.d.ts +4 -0
- package/dist/components/dialog/modules/use-dialog.svelte.d.ts.map +1 -0
- package/dist/components/dialog/modules/use-dialog.svelte.js +7 -0
- package/dist/components/file-upload/anatomy/dropzone.svelte +33 -0
- package/dist/components/file-upload/anatomy/dropzone.svelte.d.ts +9 -0
- package/dist/components/file-upload/anatomy/dropzone.svelte.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/hidden-input.svelte +30 -0
- package/dist/components/file-upload/anatomy/hidden-input.svelte.d.ts +8 -0
- package/dist/components/file-upload/anatomy/hidden-input.svelte.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/item-delete-trigger.svelte +38 -0
- package/dist/components/file-upload/anatomy/item-delete-trigger.svelte.d.ts +8 -0
- package/dist/components/file-upload/anatomy/item-delete-trigger.svelte.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/item-group.svelte +32 -0
- package/dist/components/file-upload/anatomy/item-group.svelte.d.ts +8 -0
- package/dist/components/file-upload/anatomy/item-group.svelte.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/item-name.svelte +34 -0
- package/dist/components/file-upload/anatomy/item-name.svelte.d.ts +8 -0
- package/dist/components/file-upload/anatomy/item-name.svelte.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/item-size-text.svelte +34 -0
- package/dist/components/file-upload/anatomy/item-size-text.svelte.d.ts +8 -0
- package/dist/components/file-upload/anatomy/item-size-text.svelte.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/item.svelte +38 -0
- package/dist/components/file-upload/anatomy/item.svelte.d.ts +9 -0
- package/dist/components/file-upload/anatomy/item.svelte.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/root-context.svelte +20 -0
- package/dist/components/file-upload/anatomy/root-context.svelte.d.ts +9 -0
- package/dist/components/file-upload/anatomy/root-context.svelte.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/root-provider.svelte +35 -0
- package/dist/components/file-upload/anatomy/root-provider.svelte.d.ts +10 -0
- package/dist/components/file-upload/anatomy/root-provider.svelte.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/root.svelte +42 -0
- package/dist/components/file-upload/anatomy/root.svelte.d.ts +9 -0
- package/dist/components/file-upload/anatomy/root.svelte.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/trigger.svelte +32 -0
- package/dist/components/file-upload/anatomy/trigger.svelte.d.ts +8 -0
- package/dist/components/file-upload/anatomy/trigger.svelte.d.ts.map +1 -0
- package/dist/components/file-upload/index.d.ts +12 -0
- package/dist/components/file-upload/index.d.ts.map +1 -0
- package/dist/components/file-upload/index.js +2 -0
- package/dist/components/file-upload/modules/anatomy.d.ts +13 -0
- package/dist/components/file-upload/modules/anatomy.d.ts.map +1 -0
- package/dist/components/file-upload/modules/anatomy.js +23 -0
- package/dist/components/file-upload/modules/item-context.d.ts +7 -0
- package/dist/components/file-upload/modules/item-context.d.ts.map +1 -0
- package/dist/components/file-upload/modules/item-context.js +2 -0
- package/dist/components/file-upload/modules/root-context.d.ts +6 -0
- package/dist/components/file-upload/modules/root-context.d.ts.map +1 -0
- package/dist/components/file-upload/modules/root-context.js +2 -0
- package/dist/components/file-upload/modules/use-file-upload.svelte.d.ts +4 -0
- package/dist/components/file-upload/modules/use-file-upload.svelte.d.ts.map +1 -0
- package/dist/components/file-upload/modules/use-file-upload.svelte.js +7 -0
- package/dist/components/popover/anatomy/arrow-tip.svelte +32 -0
- package/dist/components/popover/anatomy/arrow-tip.svelte.d.ts +8 -0
- package/dist/components/popover/anatomy/arrow-tip.svelte.d.ts.map +1 -0
- package/dist/components/popover/anatomy/arrow.svelte +32 -0
- package/dist/components/popover/anatomy/arrow.svelte.d.ts +8 -0
- package/dist/components/popover/anatomy/arrow.svelte.d.ts.map +1 -0
- package/dist/components/popover/anatomy/close-trigger.svelte +32 -0
- package/dist/components/popover/anatomy/close-trigger.svelte.d.ts +8 -0
- package/dist/components/popover/anatomy/close-trigger.svelte.d.ts.map +1 -0
- package/dist/components/popover/anatomy/content.svelte +32 -0
- package/dist/components/popover/anatomy/content.svelte.d.ts +8 -0
- package/dist/components/popover/anatomy/content.svelte.d.ts.map +1 -0
- package/dist/components/popover/anatomy/description.svelte +32 -0
- package/dist/components/popover/anatomy/description.svelte.d.ts +8 -0
- package/dist/components/popover/anatomy/description.svelte.d.ts.map +1 -0
- package/dist/components/popover/anatomy/positioner.svelte +34 -0
- package/dist/components/popover/anatomy/positioner.svelte.d.ts +8 -0
- package/dist/components/popover/anatomy/positioner.svelte.d.ts.map +1 -0
- package/dist/components/popover/anatomy/root-context.svelte +20 -0
- package/dist/components/popover/anatomy/root-context.svelte.d.ts +9 -0
- package/dist/components/popover/anatomy/root-context.svelte.d.ts.map +1 -0
- package/dist/components/popover/anatomy/root-provider.svelte +20 -0
- package/dist/components/popover/anatomy/root-provider.svelte.d.ts +9 -0
- package/dist/components/popover/anatomy/root-provider.svelte.d.ts.map +1 -0
- package/dist/components/popover/anatomy/root.svelte +27 -0
- package/dist/components/popover/anatomy/root.svelte.d.ts +8 -0
- package/dist/components/popover/anatomy/root.svelte.d.ts.map +1 -0
- package/dist/components/popover/anatomy/title.svelte +32 -0
- package/dist/components/popover/anatomy/title.svelte.d.ts +8 -0
- package/dist/components/popover/anatomy/title.svelte.d.ts.map +1 -0
- package/dist/components/popover/anatomy/trigger.svelte +32 -0
- package/dist/components/popover/anatomy/trigger.svelte.d.ts +8 -0
- package/dist/components/popover/anatomy/trigger.svelte.d.ts.map +1 -0
- package/dist/components/popover/index.d.ts +12 -0
- package/dist/components/popover/index.d.ts.map +1 -0
- package/dist/components/popover/index.js +2 -0
- package/dist/components/popover/modules/anatomy.d.ts +13 -0
- package/dist/components/popover/modules/anatomy.d.ts.map +1 -0
- package/dist/components/popover/modules/anatomy.js +23 -0
- package/dist/components/popover/modules/root-context.d.ts +6 -0
- package/dist/components/popover/modules/root-context.d.ts.map +1 -0
- package/dist/components/popover/modules/root-context.js +2 -0
- package/dist/components/popover/modules/use-popover.svelte.d.ts +4 -0
- package/dist/components/popover/modules/use-popover.svelte.d.ts.map +1 -0
- package/dist/components/popover/modules/use-popover.svelte.js +7 -0
- package/dist/components/progress-linear/anatomy/label.svelte +32 -0
- package/dist/components/progress-linear/anatomy/label.svelte.d.ts +8 -0
- package/dist/components/progress-linear/anatomy/label.svelte.d.ts.map +1 -0
- package/dist/components/progress-linear/anatomy/range.svelte +32 -0
- package/dist/components/progress-linear/anatomy/range.svelte.d.ts +8 -0
- package/dist/components/progress-linear/anatomy/range.svelte.d.ts.map +1 -0
- package/dist/components/progress-linear/anatomy/root-context.svelte +20 -0
- package/dist/components/progress-linear/anatomy/root-context.svelte.d.ts +9 -0
- package/dist/components/progress-linear/anatomy/root-context.svelte.d.ts.map +1 -0
- package/dist/components/progress-linear/anatomy/root-provider.svelte +35 -0
- package/dist/components/progress-linear/anatomy/root-provider.svelte.d.ts +10 -0
- package/dist/components/progress-linear/anatomy/root-provider.svelte.d.ts.map +1 -0
- package/dist/components/progress-linear/anatomy/root.svelte +42 -0
- package/dist/components/progress-linear/anatomy/root.svelte.d.ts +9 -0
- package/dist/components/progress-linear/anatomy/root.svelte.d.ts.map +1 -0
- package/dist/components/progress-linear/anatomy/track.svelte +32 -0
- package/dist/components/progress-linear/anatomy/track.svelte.d.ts +8 -0
- package/dist/components/progress-linear/anatomy/track.svelte.d.ts.map +1 -0
- package/dist/components/progress-linear/index.d.ts +9 -0
- package/dist/components/progress-linear/index.d.ts.map +1 -0
- package/dist/components/progress-linear/index.js +2 -0
- package/dist/components/progress-linear/modules/anatomy.d.ts +8 -0
- package/dist/components/progress-linear/modules/anatomy.d.ts.map +1 -0
- package/dist/components/progress-linear/modules/anatomy.js +13 -0
- package/dist/components/progress-linear/modules/root-context.d.ts +6 -0
- package/dist/components/progress-linear/modules/root-context.d.ts.map +1 -0
- package/dist/components/progress-linear/modules/root-context.js +2 -0
- package/dist/components/progress-linear/modules/use-progress-linear.svelte.d.ts +4 -0
- package/dist/components/progress-linear/modules/use-progress-linear.svelte.d.ts.map +1 -0
- package/dist/components/progress-linear/modules/use-progress-linear.svelte.js +7 -0
- package/dist/components/rating-group/anatomy/control.svelte +32 -0
- package/dist/components/rating-group/anatomy/control.svelte.d.ts +8 -0
- package/dist/components/rating-group/anatomy/control.svelte.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/hidden-input.svelte +30 -0
- package/dist/components/rating-group/anatomy/hidden-input.svelte.d.ts +8 -0
- package/dist/components/rating-group/anatomy/hidden-input.svelte.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/item.svelte +80 -0
- package/dist/components/rating-group/anatomy/item.svelte.d.ts +28 -0
- package/dist/components/rating-group/anatomy/item.svelte.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/label.svelte +32 -0
- package/dist/components/rating-group/anatomy/label.svelte.d.ts +8 -0
- package/dist/components/rating-group/anatomy/label.svelte.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/root-context.svelte +20 -0
- package/dist/components/rating-group/anatomy/root-context.svelte.d.ts +9 -0
- package/dist/components/rating-group/anatomy/root-context.svelte.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/root-provider.svelte +35 -0
- package/dist/components/rating-group/anatomy/root-provider.svelte.d.ts +10 -0
- package/dist/components/rating-group/anatomy/root-provider.svelte.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/root.svelte +42 -0
- package/dist/components/rating-group/anatomy/root.svelte.d.ts +9 -0
- package/dist/components/rating-group/anatomy/root.svelte.d.ts.map +1 -0
- package/dist/components/rating-group/index.d.ts +10 -0
- package/dist/components/rating-group/index.d.ts.map +1 -0
- package/dist/components/rating-group/index.js +2 -0
- package/dist/components/rating-group/modules/anatomy.d.ts +9 -0
- package/dist/components/rating-group/modules/anatomy.d.ts.map +1 -0
- package/dist/components/rating-group/modules/anatomy.js +15 -0
- package/dist/components/rating-group/modules/root-context.d.ts +6 -0
- package/dist/components/rating-group/modules/root-context.d.ts.map +1 -0
- package/dist/components/rating-group/modules/root-context.js +2 -0
- package/dist/components/rating-group/modules/use-rating-group.svelte.d.ts +4 -0
- package/dist/components/rating-group/modules/use-rating-group.svelte.d.ts.map +1 -0
- package/dist/components/rating-group/modules/use-rating-group.svelte.js +7 -0
- package/dist/components/segmented-control/anatomy/indicator.svelte +30 -0
- package/dist/components/segmented-control/anatomy/indicator.svelte.d.ts +8 -0
- package/dist/components/segmented-control/anatomy/indicator.svelte.d.ts.map +1 -0
- package/dist/components/segmented-control/anatomy/item-hidden-input.svelte +32 -0
- package/dist/components/segmented-control/anatomy/item-hidden-input.svelte.d.ts +8 -0
- package/dist/components/segmented-control/anatomy/item-hidden-input.svelte.d.ts.map +1 -0
- package/dist/components/segmented-control/anatomy/item-text.svelte +34 -0
- package/dist/components/segmented-control/anatomy/item-text.svelte.d.ts +8 -0
- package/dist/components/segmented-control/anatomy/item-text.svelte.d.ts.map +1 -0
- package/dist/components/segmented-control/anatomy/item.svelte +38 -0
- package/dist/components/segmented-control/anatomy/item.svelte.d.ts +9 -0
- package/dist/components/segmented-control/anatomy/item.svelte.d.ts.map +1 -0
- package/dist/components/segmented-control/anatomy/root-context.svelte +20 -0
- package/dist/components/segmented-control/anatomy/root-context.svelte.d.ts +9 -0
- package/dist/components/segmented-control/anatomy/root-context.svelte.d.ts.map +1 -0
- package/dist/components/segmented-control/anatomy/root-provider.svelte +35 -0
- package/dist/components/segmented-control/anatomy/root-provider.svelte.d.ts +10 -0
- package/dist/components/segmented-control/anatomy/root-provider.svelte.d.ts.map +1 -0
- package/dist/components/segmented-control/anatomy/root.svelte +42 -0
- package/dist/components/segmented-control/anatomy/root.svelte.d.ts +9 -0
- package/dist/components/segmented-control/anatomy/root.svelte.d.ts.map +1 -0
- package/dist/components/segmented-control/index.d.ts +10 -0
- package/dist/components/segmented-control/index.d.ts.map +1 -0
- package/dist/components/segmented-control/index.js +2 -0
- package/dist/components/segmented-control/modules/anatomy.d.ts +9 -0
- package/dist/components/segmented-control/modules/anatomy.d.ts.map +1 -0
- package/dist/components/segmented-control/modules/anatomy.js +15 -0
- package/dist/components/segmented-control/modules/item-context.d.ts +7 -0
- package/dist/components/segmented-control/modules/item-context.d.ts.map +1 -0
- package/dist/components/segmented-control/modules/item-context.js +2 -0
- package/dist/components/segmented-control/modules/root-context.d.ts +6 -0
- package/dist/components/segmented-control/modules/root-context.d.ts.map +1 -0
- package/dist/components/segmented-control/modules/root-context.js +2 -0
- package/dist/components/segmented-control/modules/use-segmented-control.svelte.d.ts +4 -0
- package/dist/components/segmented-control/modules/use-segmented-control.svelte.d.ts.map +1 -0
- package/dist/components/segmented-control/modules/use-segmented-control.svelte.js +10 -0
- package/dist/components/switch/anatomy/control.svelte +32 -0
- package/dist/components/switch/anatomy/control.svelte.d.ts +8 -0
- package/dist/components/switch/anatomy/control.svelte.d.ts.map +1 -0
- package/dist/components/switch/anatomy/hidden-input.svelte +30 -0
- package/dist/components/switch/anatomy/hidden-input.svelte.d.ts +8 -0
- package/dist/components/switch/anatomy/hidden-input.svelte.d.ts.map +1 -0
- package/dist/components/switch/anatomy/label.svelte +32 -0
- package/dist/components/switch/anatomy/label.svelte.d.ts +8 -0
- package/dist/components/switch/anatomy/label.svelte.d.ts.map +1 -0
- package/dist/components/switch/anatomy/root-context.svelte +20 -0
- package/dist/components/switch/anatomy/root-context.svelte.d.ts +9 -0
- package/dist/components/switch/anatomy/root-context.svelte.d.ts.map +1 -0
- package/dist/components/switch/anatomy/root-provider.svelte +35 -0
- package/dist/components/switch/anatomy/root-provider.svelte.d.ts +10 -0
- package/dist/components/switch/anatomy/root-provider.svelte.d.ts.map +1 -0
- package/dist/components/switch/anatomy/root.svelte +42 -0
- package/dist/components/switch/anatomy/root.svelte.d.ts +9 -0
- package/dist/components/switch/anatomy/root.svelte.d.ts.map +1 -0
- package/dist/components/switch/anatomy/thumb.svelte +32 -0
- package/dist/components/switch/anatomy/thumb.svelte.d.ts +8 -0
- package/dist/components/switch/anatomy/thumb.svelte.d.ts.map +1 -0
- package/dist/components/switch/index.d.ts +10 -0
- package/dist/components/switch/index.d.ts.map +1 -0
- package/dist/components/switch/index.js +2 -0
- package/dist/components/switch/modules/anatomy.d.ts +9 -0
- package/dist/components/switch/modules/anatomy.d.ts.map +1 -0
- package/dist/components/switch/modules/anatomy.js +15 -0
- package/dist/components/switch/modules/root-context.d.ts +6 -0
- package/dist/components/switch/modules/root-context.d.ts.map +1 -0
- package/dist/components/switch/modules/root-context.js +2 -0
- package/dist/components/switch/modules/use-switch.svelte.d.ts +4 -0
- package/dist/components/switch/modules/use-switch.svelte.d.ts.map +1 -0
- package/dist/components/switch/modules/use-switch.svelte.js +7 -0
- package/dist/components/tabs/anatomy/content.svelte +35 -0
- package/dist/components/tabs/anatomy/content.svelte.d.ts +9 -0
- package/dist/components/tabs/anatomy/content.svelte.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/indicator.svelte +30 -0
- package/dist/components/tabs/anatomy/indicator.svelte.d.ts +8 -0
- package/dist/components/tabs/anatomy/indicator.svelte.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/list.svelte +32 -0
- package/dist/components/tabs/anatomy/list.svelte.d.ts +8 -0
- package/dist/components/tabs/anatomy/list.svelte.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/root-context.svelte +20 -0
- package/dist/components/tabs/anatomy/root-context.svelte.d.ts +9 -0
- package/dist/components/tabs/anatomy/root-context.svelte.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/root-provider.svelte +34 -0
- package/dist/components/tabs/anatomy/root-provider.svelte.d.ts +10 -0
- package/dist/components/tabs/anatomy/root-provider.svelte.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/root.svelte +41 -0
- package/dist/components/tabs/anatomy/root.svelte.d.ts +9 -0
- package/dist/components/tabs/anatomy/root.svelte.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/trigger.svelte +35 -0
- package/dist/components/tabs/anatomy/trigger.svelte.d.ts +9 -0
- package/dist/components/tabs/anatomy/trigger.svelte.d.ts.map +1 -0
- package/dist/components/tabs/index.d.ts +10 -0
- package/dist/components/tabs/index.d.ts.map +1 -0
- package/dist/components/tabs/index.js +2 -0
- package/dist/components/tabs/modules/anatomy.d.ts +9 -0
- package/dist/components/tabs/modules/anatomy.d.ts.map +1 -0
- package/dist/components/tabs/modules/anatomy.js +15 -0
- package/dist/components/tabs/modules/root-context.d.ts +6 -0
- package/dist/components/tabs/modules/root-context.d.ts.map +1 -0
- package/dist/components/tabs/modules/root-context.js +2 -0
- package/dist/components/tabs/modules/use-tabs.svelte.d.ts +4 -0
- package/dist/components/tabs/modules/use-tabs.svelte.d.ts.map +1 -0
- package/dist/components/tabs/modules/use-tabs.svelte.js +7 -0
- package/dist/components/tags-input/anatomy/clear-trigger.svelte +32 -0
- package/dist/components/tags-input/anatomy/clear-trigger.svelte.d.ts +8 -0
- package/dist/components/tags-input/anatomy/clear-trigger.svelte.d.ts.map +1 -0
- package/dist/components/tags-input/anatomy/control.svelte +32 -0
- package/dist/components/tags-input/anatomy/control.svelte.d.ts +8 -0
- package/dist/components/tags-input/anatomy/control.svelte.d.ts.map +1 -0
- package/dist/components/tags-input/anatomy/hidden-input.svelte +30 -0
- package/dist/components/tags-input/anatomy/hidden-input.svelte.d.ts +8 -0
- package/dist/components/tags-input/anatomy/hidden-input.svelte.d.ts.map +1 -0
- package/dist/components/tags-input/anatomy/input.svelte +30 -0
- package/dist/components/tags-input/anatomy/input.svelte.d.ts +8 -0
- package/dist/components/tags-input/anatomy/input.svelte.d.ts.map +1 -0
- package/dist/components/tags-input/anatomy/item-delete-trigger.svelte +38 -0
- package/dist/components/tags-input/anatomy/item-delete-trigger.svelte.d.ts +8 -0
- package/dist/components/tags-input/anatomy/item-delete-trigger.svelte.d.ts.map +1 -0
- package/dist/components/tags-input/anatomy/item-input.svelte +32 -0
- package/dist/components/tags-input/anatomy/item-input.svelte.d.ts +8 -0
- package/dist/components/tags-input/anatomy/item-input.svelte.d.ts.map +1 -0
- package/dist/components/tags-input/anatomy/item-preview.svelte +34 -0
- package/dist/components/tags-input/anatomy/item-preview.svelte.d.ts +8 -0
- package/dist/components/tags-input/anatomy/item-preview.svelte.d.ts.map +1 -0
- package/dist/components/tags-input/anatomy/item-text.svelte +34 -0
- package/dist/components/tags-input/anatomy/item-text.svelte.d.ts +8 -0
- package/dist/components/tags-input/anatomy/item-text.svelte.d.ts.map +1 -0
- package/dist/components/tags-input/anatomy/item.svelte +38 -0
- package/dist/components/tags-input/anatomy/item.svelte.d.ts +9 -0
- package/dist/components/tags-input/anatomy/item.svelte.d.ts.map +1 -0
- package/dist/components/tags-input/anatomy/label.svelte +32 -0
- package/dist/components/tags-input/anatomy/label.svelte.d.ts +8 -0
- package/dist/components/tags-input/anatomy/label.svelte.d.ts.map +1 -0
- package/dist/components/tags-input/anatomy/root-context.svelte +20 -0
- package/dist/components/tags-input/anatomy/root-context.svelte.d.ts +9 -0
- package/dist/components/tags-input/anatomy/root-context.svelte.d.ts.map +1 -0
- package/dist/components/tags-input/anatomy/root-provider.svelte +34 -0
- package/dist/components/tags-input/anatomy/root-provider.svelte.d.ts +10 -0
- package/dist/components/tags-input/anatomy/root-provider.svelte.d.ts.map +1 -0
- package/dist/components/tags-input/anatomy/root.svelte +41 -0
- package/dist/components/tags-input/anatomy/root.svelte.d.ts +9 -0
- package/dist/components/tags-input/anatomy/root.svelte.d.ts.map +1 -0
- package/dist/components/tags-input/index.d.ts +16 -0
- package/dist/components/tags-input/index.d.ts.map +1 -0
- package/dist/components/tags-input/index.js +2 -0
- package/dist/components/tags-input/modules/anatomy.d.ts +15 -0
- package/dist/components/tags-input/modules/anatomy.d.ts.map +1 -0
- package/dist/components/tags-input/modules/anatomy.js +27 -0
- package/dist/components/tags-input/modules/item-context.d.ts +7 -0
- package/dist/components/tags-input/modules/item-context.d.ts.map +1 -0
- package/dist/components/tags-input/modules/item-context.js +2 -0
- package/dist/components/tags-input/modules/root-context.d.ts +6 -0
- package/dist/components/tags-input/modules/root-context.d.ts.map +1 -0
- package/dist/components/tags-input/modules/root-context.js +2 -0
- package/dist/components/tags-input/modules/use-tags-input.svelte.d.ts +4 -0
- package/dist/components/tags-input/modules/use-tags-input.svelte.d.ts.map +1 -0
- package/dist/components/tags-input/modules/use-tags-input.svelte.js +7 -0
- package/dist/components/toast/anatomy/action-trigger.svelte +32 -0
- package/dist/components/toast/anatomy/action-trigger.svelte.d.ts +8 -0
- package/dist/components/toast/anatomy/action-trigger.svelte.d.ts.map +1 -0
- package/dist/components/toast/anatomy/close-trigger.svelte +37 -0
- package/dist/components/toast/anatomy/close-trigger.svelte.d.ts +8 -0
- package/dist/components/toast/anatomy/close-trigger.svelte.d.ts.map +1 -0
- package/dist/components/toast/anatomy/description.svelte +32 -0
- package/dist/components/toast/anatomy/description.svelte.d.ts +8 -0
- package/dist/components/toast/anatomy/description.svelte.d.ts.map +1 -0
- package/dist/components/toast/anatomy/group.svelte +47 -0
- package/dist/components/toast/anatomy/group.svelte.d.ts +12 -0
- package/dist/components/toast/anatomy/group.svelte.d.ts.map +1 -0
- package/dist/components/toast/anatomy/message.svelte +29 -0
- package/dist/components/toast/anatomy/message.svelte.d.ts +8 -0
- package/dist/components/toast/anatomy/message.svelte.d.ts.map +1 -0
- package/dist/components/toast/anatomy/root-context.svelte +21 -0
- package/dist/components/toast/anatomy/root-context.svelte.d.ts +10 -0
- package/dist/components/toast/anatomy/root-context.svelte.d.ts.map +1 -0
- package/dist/components/toast/anatomy/root.svelte +74 -0
- package/dist/components/toast/anatomy/root.svelte.d.ts +10 -0
- package/dist/components/toast/anatomy/root.svelte.d.ts.map +1 -0
- package/dist/components/toast/anatomy/title.svelte +32 -0
- package/dist/components/toast/anatomy/title.svelte.d.ts +8 -0
- package/dist/components/toast/anatomy/title.svelte.d.ts.map +1 -0
- package/dist/components/toast/index.d.ts +10 -0
- package/dist/components/toast/index.d.ts.map +1 -0
- package/dist/components/toast/index.js +2 -0
- package/dist/components/toast/modules/anatomy.d.ts +10 -0
- package/dist/components/toast/modules/anatomy.d.ts.map +1 -0
- package/dist/components/toast/modules/anatomy.js +17 -0
- package/dist/components/toast/modules/group-context.d.ts +7 -0
- package/dist/components/toast/modules/group-context.d.ts.map +1 -0
- package/dist/components/toast/modules/group-context.js +2 -0
- package/dist/components/toast/modules/root-context.d.ts +8 -0
- package/dist/components/toast/modules/root-context.d.ts.map +1 -0
- package/dist/components/toast/modules/root-context.js +2 -0
- package/dist/components/tooltip/anatomy/arrow-tip.svelte +32 -0
- package/dist/components/tooltip/anatomy/arrow-tip.svelte.d.ts +8 -0
- package/dist/components/tooltip/anatomy/arrow-tip.svelte.d.ts.map +1 -0
- package/dist/components/tooltip/anatomy/arrow.svelte +32 -0
- package/dist/components/tooltip/anatomy/arrow.svelte.d.ts +8 -0
- package/dist/components/tooltip/anatomy/arrow.svelte.d.ts.map +1 -0
- package/dist/components/tooltip/anatomy/content.svelte +32 -0
- package/dist/components/tooltip/anatomy/content.svelte.d.ts +8 -0
- package/dist/components/tooltip/anatomy/content.svelte.d.ts.map +1 -0
- package/dist/components/tooltip/anatomy/positioner.svelte +34 -0
- package/dist/components/tooltip/anatomy/positioner.svelte.d.ts +8 -0
- package/dist/components/tooltip/anatomy/positioner.svelte.d.ts.map +1 -0
- package/dist/components/tooltip/anatomy/root-context.svelte +20 -0
- package/dist/components/tooltip/anatomy/root-context.svelte.d.ts +9 -0
- package/dist/components/tooltip/anatomy/root-context.svelte.d.ts.map +1 -0
- package/dist/components/tooltip/anatomy/root-provider.svelte +20 -0
- package/dist/components/tooltip/anatomy/root-provider.svelte.d.ts +9 -0
- package/dist/components/tooltip/anatomy/root-provider.svelte.d.ts.map +1 -0
- package/dist/components/tooltip/anatomy/root.svelte +27 -0
- package/dist/components/tooltip/anatomy/root.svelte.d.ts +8 -0
- package/dist/components/tooltip/anatomy/root.svelte.d.ts.map +1 -0
- package/dist/components/tooltip/anatomy/trigger.svelte +32 -0
- package/dist/components/tooltip/anatomy/trigger.svelte.d.ts +8 -0
- package/dist/components/tooltip/anatomy/trigger.svelte.d.ts.map +1 -0
- package/dist/components/tooltip/index.d.ts +11 -0
- package/dist/components/tooltip/index.d.ts.map +1 -0
- package/dist/components/tooltip/index.js +2 -0
- package/dist/components/tooltip/modules/anatomy.d.ts +10 -0
- package/dist/components/tooltip/modules/anatomy.d.ts.map +1 -0
- package/dist/components/tooltip/modules/anatomy.js +17 -0
- package/dist/components/tooltip/modules/root-context.d.ts +6 -0
- package/dist/components/tooltip/modules/root-context.d.ts.map +1 -0
- package/dist/components/tooltip/modules/root-context.js +2 -0
- package/dist/components/tooltip/modules/use-tooltip.svelte.d.ts +4 -0
- package/dist/components/tooltip/modules/use-tooltip.svelte.d.ts.map +1 -0
- package/dist/components/tooltip/modules/use-tooltip.svelte.js +7 -0
- package/dist/index.d.ts +15 -2
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +14 -2
- package/dist/internal/components/star-empty.svelte +12 -0
- package/dist/internal/components/star-empty.svelte.d.ts +27 -0
- package/dist/internal/components/star-empty.svelte.d.ts.map +1 -0
- package/dist/internal/components/star-full.svelte +12 -0
- package/dist/internal/components/star-full.svelte.d.ts +27 -0
- package/dist/internal/components/star-full.svelte.d.ts.map +1 -0
- package/dist/internal/components/star-half.svelte +19 -0
- package/dist/internal/components/star-half.svelte.d.ts +27 -0
- package/dist/internal/components/star-half.svelte.d.ts.map +1 -0
- package/dist/internal/components/x.svelte +31 -0
- package/dist/internal/components/x.svelte.d.ts +6 -0
- package/dist/internal/components/x.svelte.d.ts.map +1 -0
- package/dist/internal/create-context.d.ts +6 -6
- package/dist/internal/create-context.d.ts.map +1 -0
- package/dist/internal/create-context.js +10 -9
- package/dist/internal/html-attributes.d.ts +3 -0
- package/dist/internal/html-attributes.d.ts.map +1 -0
- package/dist/internal/html-attributes.js +1 -0
- package/dist/internal/props-with-children.d.ts +1 -0
- package/dist/internal/props-with-children.d.ts.map +1 -0
- package/dist/internal/props-with-element.d.ts +8 -4
- package/dist/internal/props-with-element.d.ts.map +1 -0
- package/package.json +36 -39
- package/dist/components/accordion/anatomy/accordion-content.svelte +0 -28
- package/dist/components/accordion/anatomy/accordion-content.svelte.d.ts +0 -4
- package/dist/components/accordion/anatomy/accordion-heading.svelte +0 -25
- package/dist/components/accordion/anatomy/accordion-heading.svelte.d.ts +0 -4
- package/dist/components/accordion/anatomy/accordion-indicator.svelte +0 -28
- package/dist/components/accordion/anatomy/accordion-indicator.svelte.d.ts +0 -4
- package/dist/components/accordion/anatomy/accordion-item.svelte +0 -34
- package/dist/components/accordion/anatomy/accordion-item.svelte.d.ts +0 -4
- package/dist/components/accordion/anatomy/accordion-root.svelte +0 -39
- package/dist/components/accordion/anatomy/accordion-root.svelte.d.ts +0 -4
- package/dist/components/accordion/anatomy/accordion-trigger.svelte +0 -28
- package/dist/components/accordion/anatomy/accordion-trigger.svelte.d.ts +0 -4
- 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/anatomy/avatar-fallback.svelte +0 -27
- package/dist/components/avatar/anatomy/avatar-fallback.svelte.d.ts +0 -4
- package/dist/components/avatar/anatomy/avatar-image.svelte +0 -25
- package/dist/components/avatar/anatomy/avatar-image.svelte.d.ts +0 -4
- package/dist/components/avatar/anatomy/avatar-root.svelte +0 -39
- package/dist/components/avatar/anatomy/avatar-root.svelte.d.ts +0 -4
- 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
- package/dist/internal/test-utils.d.ts +0 -3
- package/dist/internal/test-utils.js +0 -9
|
@@ -0,0 +1,32 @@
|
|
|
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 SwitchLabelProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<script lang="ts">
|
|
9
|
+
import { SwitchRootContext } from '../modules/root-context';
|
|
10
|
+
import { classesSwitch } from '@skeletonlabs/skeleton-common';
|
|
11
|
+
import { mergeProps } from '@zag-js/svelte';
|
|
12
|
+
|
|
13
|
+
const props: SwitchLabelProps = $props();
|
|
14
|
+
|
|
15
|
+
const switch_ = SwitchRootContext.consume();
|
|
16
|
+
|
|
17
|
+
const { element, children, ...rest } = $derived(props);
|
|
18
|
+
|
|
19
|
+
const attributes = $derived(
|
|
20
|
+
mergeProps(switch_().getLabelProps(), rest, {
|
|
21
|
+
class: classesSwitch.label,
|
|
22
|
+
}),
|
|
23
|
+
);
|
|
24
|
+
</script>
|
|
25
|
+
|
|
26
|
+
{#if element}
|
|
27
|
+
{@render element(attributes)}
|
|
28
|
+
{:else}
|
|
29
|
+
<span {...attributes}>
|
|
30
|
+
{@render children?.()}
|
|
31
|
+
</span>
|
|
32
|
+
{/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 SwitchLabelProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {
|
|
4
|
+
}
|
|
5
|
+
declare const Label: import("svelte").Component<SwitchLabelProps, {}, "">;
|
|
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/switch/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,gBAAiB,SAAQ,gBAAgB,CAAC,MAAM,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC;CAAG;AAqC9F,QAAA,MAAM,KAAK,sDAAwC,CAAC;AACpD,KAAK,KAAK,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC;AACtC,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
import type { useSwitch } from '../modules/use-switch.svelte';
|
|
3
|
+
import type { Snippet } from 'svelte';
|
|
4
|
+
|
|
5
|
+
export interface SwitchRootContextProps {
|
|
6
|
+
children: Snippet<[ReturnType<typeof useSwitch>]>;
|
|
7
|
+
}
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<script lang="ts">
|
|
11
|
+
import { SwitchRootContext } from '../modules/root-context';
|
|
12
|
+
|
|
13
|
+
const props: SwitchRootContextProps = $props();
|
|
14
|
+
|
|
15
|
+
const switch_ = SwitchRootContext.consume();
|
|
16
|
+
|
|
17
|
+
const { children } = $derived(props);
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
{@render children(switch_)}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { useSwitch } from '../modules/use-switch.svelte';
|
|
2
|
+
import type { Snippet } from 'svelte';
|
|
3
|
+
export interface SwitchRootContextProps {
|
|
4
|
+
children: Snippet<[ReturnType<typeof useSwitch>]>;
|
|
5
|
+
}
|
|
6
|
+
declare const RootContext: import("svelte").Component<SwitchRootContextProps, {}, "">;
|
|
7
|
+
type RootContext = ReturnType<typeof RootContext>;
|
|
8
|
+
export default RootContext;
|
|
9
|
+
//# sourceMappingURL=root-context.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-context.svelte.d.ts","sourceRoot":"","sources":["../../../../src/components/switch/anatomy/root-context.svelte.ts"],"names":[],"mappings":"AAGC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEtC,MAAM,WAAW,sBAAsB;IACtC,QAAQ,EAAE,OAAO,CAAC,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC;CAClD;AAqBF,QAAA,MAAM,WAAW,4DAAwC,CAAC;AAC1D,KAAK,WAAW,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAClD,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
import type { useSwitch } from '../modules/use-switch.svelte';
|
|
3
|
+
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
4
|
+
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
5
|
+
|
|
6
|
+
export interface SwitchRootProviderProps extends PropsWithElement<'label'>, HTMLAttributes<'label', 'id' | 'dir' | 'form'> {
|
|
7
|
+
value: ReturnType<typeof useSwitch>;
|
|
8
|
+
}
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<script lang="ts">
|
|
12
|
+
import { SwitchRootContext } from '../modules/root-context';
|
|
13
|
+
import { classesSwitch } from '@skeletonlabs/skeleton-common';
|
|
14
|
+
import { mergeProps } from '@zag-js/svelte';
|
|
15
|
+
|
|
16
|
+
const props: SwitchRootProviderProps = $props();
|
|
17
|
+
|
|
18
|
+
const { element, children, value: switch_, ...rest } = $derived(props);
|
|
19
|
+
|
|
20
|
+
const attributes = $derived(
|
|
21
|
+
mergeProps(switch_().getRootProps(), rest, {
|
|
22
|
+
class: classesSwitch.root,
|
|
23
|
+
}),
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
SwitchRootContext.provide(() => switch_());
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
{#if element}
|
|
30
|
+
{@render element(attributes)}
|
|
31
|
+
{:else}
|
|
32
|
+
<label {...attributes}>
|
|
33
|
+
{@render children?.()}
|
|
34
|
+
</label>
|
|
35
|
+
{/if}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { useSwitch } from '../modules/use-switch.svelte';
|
|
2
|
+
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
3
|
+
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
4
|
+
export interface SwitchRootProviderProps extends PropsWithElement<'label'>, HTMLAttributes<'label', 'id' | 'dir' | 'form'> {
|
|
5
|
+
value: ReturnType<typeof useSwitch>;
|
|
6
|
+
}
|
|
7
|
+
declare const RootProvider: import("svelte").Component<SwitchRootProviderProps, {}, "">;
|
|
8
|
+
type RootProvider = ReturnType<typeof RootProvider>;
|
|
9
|
+
export default RootProvider;
|
|
10
|
+
//# sourceMappingURL=root-provider.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-provider.svelte.d.ts","sourceRoot":"","sources":["../../../../src/components/switch/anatomy/root-provider.svelte.ts"],"names":[],"mappings":"AAGC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,MAAM,WAAW,uBAAwB,SAAQ,gBAAgB,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC,OAAO,EAAE,IAAI,GAAG,KAAK,GAAG,MAAM,CAAC;IACzH,KAAK,EAAE,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;CACpC;AAqCF,QAAA,MAAM,YAAY,6DAAwC,CAAC;AAC3D,KAAK,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACpD,eAAe,YAAY,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
|
+
import type { Props } from '@zag-js/switch';
|
|
5
|
+
|
|
6
|
+
export interface SwitchRootProps extends Omit<Props, 'id'>, PropsWithElement<'label'>, HTMLAttributes<'label', 'id' | 'dir' | 'form'> {}
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<script lang="ts">
|
|
10
|
+
import { SwitchRootContext } from '../modules/root-context';
|
|
11
|
+
import { useSwitch } from '../modules/use-switch.svelte';
|
|
12
|
+
import { classesSwitch } from '@skeletonlabs/skeleton-common';
|
|
13
|
+
import { mergeProps } from '@zag-js/svelte';
|
|
14
|
+
import { splitProps } from '@zag-js/switch';
|
|
15
|
+
|
|
16
|
+
const props: SwitchRootProps = $props();
|
|
17
|
+
|
|
18
|
+
const [switchProps, componentProps] = $derived(splitProps(props));
|
|
19
|
+
const { element, children, ...rest } = $derived(componentProps);
|
|
20
|
+
|
|
21
|
+
const id = $props.id();
|
|
22
|
+
const switch_ = useSwitch(() => ({
|
|
23
|
+
id: id,
|
|
24
|
+
...switchProps,
|
|
25
|
+
}));
|
|
26
|
+
|
|
27
|
+
const attributes = $derived(
|
|
28
|
+
mergeProps(switch_().getRootProps(), rest, {
|
|
29
|
+
class: classesSwitch.root,
|
|
30
|
+
}),
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
SwitchRootContext.provide(() => switch_());
|
|
34
|
+
</script>
|
|
35
|
+
|
|
36
|
+
{#if element}
|
|
37
|
+
{@render element(attributes)}
|
|
38
|
+
{:else}
|
|
39
|
+
<label {...attributes}>
|
|
40
|
+
{@render children?.()}
|
|
41
|
+
</label>
|
|
42
|
+
{/if}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
2
|
+
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
3
|
+
import type { Props } from '@zag-js/switch';
|
|
4
|
+
export interface SwitchRootProps extends Omit<Props, 'id'>, PropsWithElement<'label'>, HTMLAttributes<'label', 'id' | 'dir' | 'form'> {
|
|
5
|
+
}
|
|
6
|
+
declare const Root: import("svelte").Component<SwitchRootProps, {}, "">;
|
|
7
|
+
type Root = ReturnType<typeof Root>;
|
|
8
|
+
export default Root;
|
|
9
|
+
//# sourceMappingURL=root.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root.svelte.d.ts","sourceRoot":"","sources":["../../../../src/components/switch/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;AACtE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE5C,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC,OAAO,EAAE,IAAI,GAAG,KAAK,GAAG,MAAM,CAAC;CAAG;AAgDzI,QAAA,MAAM,IAAI,qDAAwC,CAAC;AACnD,KAAK,IAAI,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC;AACpC,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 SwitchThumbProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<script lang="ts">
|
|
9
|
+
import { SwitchRootContext } from '../modules/root-context';
|
|
10
|
+
import { classesSwitch } from '@skeletonlabs/skeleton-common';
|
|
11
|
+
import { mergeProps } from '@zag-js/svelte';
|
|
12
|
+
|
|
13
|
+
const props: SwitchThumbProps = $props();
|
|
14
|
+
|
|
15
|
+
const switch_ = SwitchRootContext.consume();
|
|
16
|
+
|
|
17
|
+
const { element, children, ...rest } = $derived(props);
|
|
18
|
+
|
|
19
|
+
const attributes = $derived(
|
|
20
|
+
mergeProps(switch_().getThumbProps(), rest, {
|
|
21
|
+
class: classesSwitch.thumb,
|
|
22
|
+
}),
|
|
23
|
+
);
|
|
24
|
+
</script>
|
|
25
|
+
|
|
26
|
+
{#if element}
|
|
27
|
+
{@render element(attributes)}
|
|
28
|
+
{:else}
|
|
29
|
+
<span {...attributes}>
|
|
30
|
+
{@render children?.()}
|
|
31
|
+
</span>
|
|
32
|
+
{/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 SwitchThumbProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {
|
|
4
|
+
}
|
|
5
|
+
declare const Thumb: import("svelte").Component<SwitchThumbProps, {}, "">;
|
|
6
|
+
type Thumb = ReturnType<typeof Thumb>;
|
|
7
|
+
export default Thumb;
|
|
8
|
+
//# sourceMappingURL=thumb.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"thumb.svelte.d.ts","sourceRoot":"","sources":["../../../../src/components/switch/anatomy/thumb.svelte.ts"],"names":[],"mappings":"AAGC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,MAAM,WAAW,gBAAiB,SAAQ,gBAAgB,CAAC,MAAM,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC;CAAG;AAqC9F,QAAA,MAAM,KAAK,sDAAwC,CAAC;AACpD,KAAK,KAAK,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC;AACtC,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type { SwitchControlProps } from './anatomy/control.svelte';
|
|
2
|
+
export type { SwitchHiddenInputProps } from './anatomy/hidden-input.svelte';
|
|
3
|
+
export type { SwitchLabelProps } from './anatomy/label.svelte';
|
|
4
|
+
export type { SwitchRootProps } from './anatomy/root.svelte';
|
|
5
|
+
export type { SwitchRootContextProps } from './anatomy/root-context.svelte';
|
|
6
|
+
export type { SwitchRootProviderProps } from './anatomy/root-provider.svelte';
|
|
7
|
+
export type { SwitchThumbProps } from './anatomy/thumb.svelte';
|
|
8
|
+
export { Switch } from './modules/anatomy';
|
|
9
|
+
export { useSwitch } from './modules/use-switch.svelte';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/switch/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,YAAY,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAC5E,YAAY,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,YAAY,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,YAAY,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAC5E,YAAY,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAC9E,YAAY,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const Switch: import("svelte").Component<import("..").SwitchRootProps, {}, ""> & {
|
|
2
|
+
Provider: import("svelte").Component<import("..").SwitchRootProviderProps, {}, "">;
|
|
3
|
+
Context: import("svelte").Component<import("..").SwitchRootContextProps, {}, "">;
|
|
4
|
+
Control: import("svelte").Component<import("..").SwitchControlProps, {}, "">;
|
|
5
|
+
Thumb: import("svelte").Component<import("..").SwitchThumbProps, {}, "">;
|
|
6
|
+
Label: import("svelte").Component<import("..").SwitchLabelProps, {}, "">;
|
|
7
|
+
HiddenInput: import("svelte").Component<import("..").SwitchHiddenInputProps, {}, "">;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=anatomy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anatomy.d.ts","sourceRoot":"","sources":["../../../../src/components/switch/modules/anatomy.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,MAAM;;;;;;;CAOjB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import Control from '../anatomy/control.svelte';
|
|
2
|
+
import HiddenInput from '../anatomy/hidden-input.svelte';
|
|
3
|
+
import Label from '../anatomy/label.svelte';
|
|
4
|
+
import RootContext from '../anatomy/root-context.svelte';
|
|
5
|
+
import RootProvider from '../anatomy/root-provider.svelte';
|
|
6
|
+
import Root from '../anatomy/root.svelte';
|
|
7
|
+
import Thumb from '../anatomy/thumb.svelte';
|
|
8
|
+
export const Switch = Object.assign(Root, {
|
|
9
|
+
Provider: RootProvider,
|
|
10
|
+
Context: RootContext,
|
|
11
|
+
Control: Control,
|
|
12
|
+
Thumb: Thumb,
|
|
13
|
+
Label: Label,
|
|
14
|
+
HiddenInput: HiddenInput,
|
|
15
|
+
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const SwitchRootContext: {
|
|
2
|
+
key: symbol;
|
|
3
|
+
consume(): () => import("@zag-js/switch").Api<import("@zag-js/svelte").PropTypes>;
|
|
4
|
+
provide(value: () => import("@zag-js/switch").Api<import("@zag-js/svelte").PropTypes>): () => import("@zag-js/switch").Api<import("@zag-js/svelte").PropTypes>;
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=root-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-context.d.ts","sourceRoot":"","sources":["../../../../src/components/switch/modules/root-context.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB;;;;CAAgD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-switch.svelte.d.ts","sourceRoot":"","sources":["../../../../src/components/switch/modules/use-switch.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE5E,OAAO,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEjD,wBAAgB,SAAS,CAAC,KAAK,EAAE,KAAK,GAAG,CAAC,MAAM,KAAK,CAAC,GAAG,MAAM,GAAG,CAAC,SAAS,CAAC,CAI5E"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { normalizeProps, useMachine } from '@zag-js/svelte';
|
|
2
|
+
import { connect, machine } from '@zag-js/switch';
|
|
3
|
+
export function useSwitch(props) {
|
|
4
|
+
const service = useMachine(machine, props);
|
|
5
|
+
const switch_ = $derived(connect(service, normalizeProps));
|
|
6
|
+
return () => switch_;
|
|
7
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
3
|
+
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
4
|
+
import type { ContentProps } from '@zag-js/tabs';
|
|
5
|
+
|
|
6
|
+
export interface TabsContentProps extends ContentProps, PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<script lang="ts">
|
|
10
|
+
import { TabsRootContext } from '../modules/root-context';
|
|
11
|
+
import { classesTabs } from '@skeletonlabs/skeleton-common';
|
|
12
|
+
import { mergeProps } from '@zag-js/svelte';
|
|
13
|
+
import { splitContentProps } from '@zag-js/tabs';
|
|
14
|
+
|
|
15
|
+
const props: TabsContentProps = $props();
|
|
16
|
+
|
|
17
|
+
const tabs = TabsRootContext.consume();
|
|
18
|
+
|
|
19
|
+
const [contentProps, componentProps] = $derived(splitContentProps(props));
|
|
20
|
+
const { element, children, ...rest } = $derived(componentProps);
|
|
21
|
+
|
|
22
|
+
const attributes = $derived(
|
|
23
|
+
mergeProps(tabs().getContentProps(contentProps), rest, {
|
|
24
|
+
class: classesTabs.content,
|
|
25
|
+
}),
|
|
26
|
+
);
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
{#if element}
|
|
30
|
+
{@render element(attributes)}
|
|
31
|
+
{:else}
|
|
32
|
+
<div {...attributes}>
|
|
33
|
+
{@render children?.()}
|
|
34
|
+
</div>
|
|
35
|
+
{/if}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
2
|
+
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
3
|
+
import type { ContentProps } from '@zag-js/tabs';
|
|
4
|
+
export interface TabsContentProps extends ContentProps, PropsWithElement<'div'>, HTMLAttributes<'div'> {
|
|
5
|
+
}
|
|
6
|
+
declare const Content: import("svelte").Component<TabsContentProps, {}, "">;
|
|
7
|
+
type Content = ReturnType<typeof Content>;
|
|
8
|
+
export default Content;
|
|
9
|
+
//# sourceMappingURL=content.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.svelte.d.ts","sourceRoot":"","sources":["../../../../src/components/tabs/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;AACtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEjD,MAAM,WAAW,gBAAiB,SAAQ,YAAY,EAAE,gBAAgB,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC;CAAG;AAwC1G,QAAA,MAAM,OAAO,sDAAwC,CAAC;AACtD,KAAK,OAAO,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;AAC1C,eAAe,OAAO,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 TabsIndicatorProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'children'> {}
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<script lang="ts">
|
|
9
|
+
import { TabsRootContext } from '../modules/root-context';
|
|
10
|
+
import { classesTabs } from '@skeletonlabs/skeleton-common';
|
|
11
|
+
import { mergeProps } from '@zag-js/svelte';
|
|
12
|
+
|
|
13
|
+
const props: TabsIndicatorProps = $props();
|
|
14
|
+
|
|
15
|
+
const tabs = TabsRootContext.consume();
|
|
16
|
+
|
|
17
|
+
const { element, ...rest } = $derived(props);
|
|
18
|
+
|
|
19
|
+
const attributes = $derived(
|
|
20
|
+
mergeProps(tabs().getIndicatorProps(), rest, {
|
|
21
|
+
class: classesTabs.indicator,
|
|
22
|
+
}),
|
|
23
|
+
);
|
|
24
|
+
</script>
|
|
25
|
+
|
|
26
|
+
{#if element}
|
|
27
|
+
{@render element(attributes)}
|
|
28
|
+
{:else}
|
|
29
|
+
<div {...attributes}></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 TabsIndicatorProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'children'> {
|
|
4
|
+
}
|
|
5
|
+
declare const Indicator: import("svelte").Component<TabsIndicatorProps, {}, "">;
|
|
6
|
+
type Indicator = ReturnType<typeof Indicator>;
|
|
7
|
+
export default Indicator;
|
|
8
|
+
//# sourceMappingURL=indicator.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"indicator.svelte.d.ts","sourceRoot":"","sources":["../../../../src/components/tabs/anatomy/indicator.svelte.ts"],"names":[],"mappings":"AAGC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,MAAM,WAAW,kBAAmB,SAAQ,gBAAgB,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,KAAK,EAAE,UAAU,CAAC;CAAG;AAmC1G,QAAA,MAAM,SAAS,wDAAwC,CAAC;AACxD,KAAK,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAC9C,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 TabsListProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<script lang="ts">
|
|
9
|
+
import { TabsRootContext } from '../modules/root-context';
|
|
10
|
+
import { classesTabs } from '@skeletonlabs/skeleton-common';
|
|
11
|
+
import { mergeProps } from '@zag-js/svelte';
|
|
12
|
+
|
|
13
|
+
const props: TabsListProps = $props();
|
|
14
|
+
|
|
15
|
+
const tabs = TabsRootContext.consume();
|
|
16
|
+
|
|
17
|
+
const { element, children, ...rest } = $derived(props);
|
|
18
|
+
|
|
19
|
+
const attributes = $derived(
|
|
20
|
+
mergeProps(tabs().getListProps(), rest, {
|
|
21
|
+
class: classesTabs.list,
|
|
22
|
+
}),
|
|
23
|
+
);
|
|
24
|
+
</script>
|
|
25
|
+
|
|
26
|
+
{#if element}
|
|
27
|
+
{@render element(attributes)}
|
|
28
|
+
{:else}
|
|
29
|
+
<div {...attributes}>
|
|
30
|
+
{@render children?.()}
|
|
31
|
+
</div>
|
|
32
|
+
{/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 TabsListProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {
|
|
4
|
+
}
|
|
5
|
+
declare const List: import("svelte").Component<TabsListProps, {}, "">;
|
|
6
|
+
type List = ReturnType<typeof List>;
|
|
7
|
+
export default List;
|
|
8
|
+
//# sourceMappingURL=list.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.svelte.d.ts","sourceRoot":"","sources":["../../../../src/components/tabs/anatomy/list.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,aAAc,SAAQ,gBAAgB,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC;CAAG;AAqCzF,QAAA,MAAM,IAAI,mDAAwC,CAAC;AACnD,KAAK,IAAI,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC;AACpC,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
import type { useTabs } from '../modules/use-tabs.svelte';
|
|
3
|
+
import type { Snippet } from 'svelte';
|
|
4
|
+
|
|
5
|
+
export interface TabsRootContextProps {
|
|
6
|
+
children: Snippet<[ReturnType<typeof useTabs>]>;
|
|
7
|
+
}
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<script lang="ts">
|
|
11
|
+
import { TabsRootContext } from '../modules/root-context';
|
|
12
|
+
|
|
13
|
+
const props: TabsRootContextProps = $props();
|
|
14
|
+
|
|
15
|
+
const tabs = TabsRootContext.consume();
|
|
16
|
+
|
|
17
|
+
const { children } = $derived(props);
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
{@render children(tabs)}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { useTabs } from '../modules/use-tabs.svelte';
|
|
2
|
+
import type { Snippet } from 'svelte';
|
|
3
|
+
export interface TabsRootContextProps {
|
|
4
|
+
children: Snippet<[ReturnType<typeof useTabs>]>;
|
|
5
|
+
}
|
|
6
|
+
declare const RootContext: import("svelte").Component<TabsRootContextProps, {}, "">;
|
|
7
|
+
type RootContext = ReturnType<typeof RootContext>;
|
|
8
|
+
export default RootContext;
|
|
9
|
+
//# sourceMappingURL=root-context.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-context.svelte.d.ts","sourceRoot":"","sources":["../../../../src/components/tabs/anatomy/root-context.svelte.ts"],"names":[],"mappings":"AAGC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEtC,MAAM,WAAW,oBAAoB;IACpC,QAAQ,EAAE,OAAO,CAAC,CAAC,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC;CAChD;AAqBF,QAAA,MAAM,WAAW,0DAAwC,CAAC;AAC1D,KAAK,WAAW,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAClD,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
import type { useTabs } from '../modules/use-tabs.svelte';
|
|
3
|
+
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
4
|
+
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
5
|
+
|
|
6
|
+
export interface TabsRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir'> {
|
|
7
|
+
value: ReturnType<typeof useTabs>;
|
|
8
|
+
}
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<script lang="ts">
|
|
12
|
+
import { TabsRootContext } from '../modules/root-context';
|
|
13
|
+
import { classesTabs } from '@skeletonlabs/skeleton-common';
|
|
14
|
+
import { mergeProps } from '@zag-js/svelte';
|
|
15
|
+
|
|
16
|
+
const props: TabsRootProviderProps = $props();
|
|
17
|
+
const { element, children, value: tabs, ...rest } = $derived(props);
|
|
18
|
+
|
|
19
|
+
const attributes = $derived(
|
|
20
|
+
mergeProps(tabs().getRootProps(), rest, {
|
|
21
|
+
class: classesTabs.root,
|
|
22
|
+
}),
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
TabsRootContext.provide(() => tabs());
|
|
26
|
+
</script>
|
|
27
|
+
|
|
28
|
+
{#if element}
|
|
29
|
+
{@render element(attributes)}
|
|
30
|
+
{:else}
|
|
31
|
+
<div {...attributes}>
|
|
32
|
+
{@render children?.()}
|
|
33
|
+
</div>
|
|
34
|
+
{/if}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { useTabs } from '../modules/use-tabs.svelte';
|
|
2
|
+
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
3
|
+
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
4
|
+
export interface TabsRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir'> {
|
|
5
|
+
value: ReturnType<typeof useTabs>;
|
|
6
|
+
}
|
|
7
|
+
declare const RootProvider: import("svelte").Component<TabsRootProviderProps, {}, "">;
|
|
8
|
+
type RootProvider = ReturnType<typeof RootProvider>;
|
|
9
|
+
export default RootProvider;
|
|
10
|
+
//# sourceMappingURL=root-provider.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-provider.svelte.d.ts","sourceRoot":"","sources":["../../../../src/components/tabs/anatomy/root-provider.svelte.ts"],"names":[],"mappings":"AAGC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,KAAK,EAAE,IAAI,GAAG,KAAK,CAAC;IAC1G,KAAK,EAAE,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;CAClC;AAoCF,QAAA,MAAM,YAAY,2DAAwC,CAAC;AAC3D,KAAK,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACpD,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
3
|
+
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
4
|
+
import type { Props } from '@zag-js/tabs';
|
|
5
|
+
|
|
6
|
+
export interface TabsRootProps extends Omit<Props, 'id'>, PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir'> {}
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<script lang="ts">
|
|
10
|
+
import { TabsRootContext } from '../modules/root-context';
|
|
11
|
+
import { useTabs } from '../modules/use-tabs.svelte';
|
|
12
|
+
import { classesTabs } from '@skeletonlabs/skeleton-common';
|
|
13
|
+
import { mergeProps } from '@zag-js/svelte';
|
|
14
|
+
import { splitProps } from '@zag-js/tabs';
|
|
15
|
+
|
|
16
|
+
const props: TabsRootProps = $props();
|
|
17
|
+
const [tabsProps, componentProps] = $derived(splitProps(props));
|
|
18
|
+
const { element, children, ...rest } = $derived(componentProps);
|
|
19
|
+
|
|
20
|
+
const id = $props.id();
|
|
21
|
+
const tabs = useTabs(() => ({
|
|
22
|
+
id: id,
|
|
23
|
+
...tabsProps,
|
|
24
|
+
}));
|
|
25
|
+
|
|
26
|
+
const attributes = $derived(
|
|
27
|
+
mergeProps(tabs().getRootProps(), rest, {
|
|
28
|
+
class: classesTabs.root,
|
|
29
|
+
}),
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
TabsRootContext.provide(() => tabs());
|
|
33
|
+
</script>
|
|
34
|
+
|
|
35
|
+
{#if element}
|
|
36
|
+
{@render element(attributes)}
|
|
37
|
+
{:else}
|
|
38
|
+
<div {...attributes}>
|
|
39
|
+
{@render children?.()}
|
|
40
|
+
</div>
|
|
41
|
+
{/if}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { HTMLAttributes } from '../../../internal/html-attributes';
|
|
2
|
+
import type { PropsWithElement } from '../../../internal/props-with-element';
|
|
3
|
+
import type { Props } from '@zag-js/tabs';
|
|
4
|
+
export interface TabsRootProps extends Omit<Props, 'id'>, PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir'> {
|
|
5
|
+
}
|
|
6
|
+
declare const Root: import("svelte").Component<TabsRootProps, {}, "">;
|
|
7
|
+
type Root = ReturnType<typeof Root>;
|
|
8
|
+
export default Root;
|
|
9
|
+
//# sourceMappingURL=root.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root.svelte.d.ts","sourceRoot":"","sources":["../../../../src/components/tabs/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;AACtE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,EAAE,gBAAgB,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,KAAK,EAAE,IAAI,GAAG,KAAK,CAAC;CAAG;AA+C1H,QAAA,MAAM,IAAI,mDAAwC,CAAC;AACnD,KAAK,IAAI,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC;AACpC,eAAe,IAAI,CAAC"}
|