@skeletonlabs/skeleton-react 2.0.0-next.5 → 2.0.0-next.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/anatomy/item-content.d.ts +12 -0
- package/dist/components/accordion/anatomy/item-content.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/{content.js → item-content.js} +6 -6
- package/dist/components/accordion/anatomy/item-content.js.map +1 -0
- package/dist/components/accordion/anatomy/item-heading.d.ts +19 -0
- package/dist/components/accordion/anatomy/item-heading.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/{heading.js → item-heading.js} +5 -5
- package/dist/components/accordion/anatomy/item-heading.js.map +1 -0
- package/dist/components/accordion/anatomy/item-indicator.d.ts +12 -0
- package/dist/components/accordion/anatomy/item-indicator.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/{indicator.js → item-indicator.js} +6 -6
- package/dist/components/accordion/anatomy/item-indicator.js.map +1 -0
- package/dist/components/accordion/anatomy/item-trigger.d.ts +12 -0
- package/dist/components/accordion/anatomy/item-trigger.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/{trigger.js → item-trigger.js} +6 -6
- package/dist/components/accordion/anatomy/item-trigger.js.map +1 -0
- package/dist/components/accordion/anatomy/item.d.ts +3 -3
- package/dist/components/accordion/anatomy/item.d.ts.map +1 -1
- package/dist/components/accordion/anatomy/item.js +5 -5
- package/dist/components/accordion/anatomy/item.js.map +1 -1
- package/dist/components/accordion/anatomy/root-context.js.map +1 -1
- package/dist/components/accordion/anatomy/root-provider.d.ts +3 -2
- package/dist/components/accordion/anatomy/root-provider.d.ts.map +1 -1
- package/dist/components/accordion/anatomy/root-provider.js +21 -0
- package/dist/components/accordion/anatomy/root-provider.js.map +1 -0
- package/dist/components/accordion/anatomy/root.d.ts +3 -3
- package/dist/components/accordion/anatomy/root.d.ts.map +1 -1
- package/dist/components/accordion/anatomy/root.js +5 -5
- package/dist/components/accordion/anatomy/root.js.map +1 -1
- package/dist/components/accordion/modules/anatomy.d.ts +14 -12
- package/dist/components/accordion/modules/anatomy.d.ts.map +1 -1
- package/dist/components/accordion/modules/anatomy.js +14 -12
- package/dist/components/accordion/modules/anatomy.js.map +1 -1
- package/dist/components/accordion/modules/item-context.js +2 -2
- package/dist/components/accordion/modules/item-context.js.map +1 -1
- package/dist/components/accordion/modules/root-context.js +1 -0
- package/dist/components/accordion/modules/root-context.js.map +1 -1
- package/dist/components/accordion/modules/use-accordion.d.ts +2 -1
- package/dist/components/accordion/modules/use-accordion.d.ts.map +1 -1
- package/dist/components/accordion/modules/use-accordion.js +2 -2
- package/dist/components/accordion/modules/use-accordion.js.map +1 -1
- package/dist/components/avatar/anatomy/fallback.d.ts +4 -4
- package/dist/components/avatar/anatomy/fallback.d.ts.map +1 -1
- package/dist/components/avatar/anatomy/fallback.js +4 -4
- package/dist/components/avatar/anatomy/fallback.js.map +1 -1
- package/dist/components/avatar/anatomy/image.d.ts +4 -4
- package/dist/components/avatar/anatomy/image.d.ts.map +1 -1
- package/dist/components/avatar/anatomy/image.js +4 -4
- package/dist/components/avatar/anatomy/image.js.map +1 -1
- package/dist/components/avatar/anatomy/root-context.js.map +1 -1
- package/dist/components/avatar/anatomy/root-provider.d.ts +3 -2
- package/dist/components/avatar/anatomy/root-provider.d.ts.map +1 -1
- package/dist/components/avatar/anatomy/root-provider.js +21 -0
- package/dist/components/avatar/anatomy/root-provider.js.map +1 -0
- package/dist/components/avatar/anatomy/root.d.ts +2 -2
- package/dist/components/avatar/anatomy/root.d.ts.map +1 -1
- package/dist/components/avatar/anatomy/root.js +1 -1
- package/dist/components/avatar/anatomy/root.js.map +1 -1
- package/dist/components/avatar/modules/anatomy.d.ts +6 -4
- package/dist/components/avatar/modules/anatomy.d.ts.map +1 -1
- package/dist/components/avatar/modules/anatomy.js +6 -4
- package/dist/components/avatar/modules/anatomy.js.map +1 -1
- package/dist/components/avatar/modules/root-context.js.map +1 -1
- package/dist/components/avatar/modules/use-avatar.d.ts +2 -1
- package/dist/components/avatar/modules/use-avatar.d.ts.map +1 -1
- package/dist/components/avatar/modules/use-avatar.js +2 -2
- package/dist/components/avatar/modules/use-avatar.js.map +1 -1
- package/dist/components/file-upload/anatomy/dropzone.d.ts +3 -3
- package/dist/components/file-upload/anatomy/dropzone.d.ts.map +1 -1
- package/dist/components/file-upload/anatomy/dropzone.js +2 -2
- package/dist/components/file-upload/anatomy/dropzone.js.map +1 -1
- package/dist/components/file-upload/anatomy/hidden-input.d.ts +3 -3
- package/dist/components/file-upload/anatomy/hidden-input.d.ts.map +1 -1
- package/dist/components/file-upload/anatomy/hidden-input.js +2 -2
- package/dist/components/file-upload/anatomy/hidden-input.js.map +1 -1
- package/dist/components/file-upload/anatomy/item-delete-trigger.d.ts +3 -3
- package/dist/components/file-upload/anatomy/item-delete-trigger.d.ts.map +1 -1
- package/dist/components/file-upload/anatomy/item-delete-trigger.js +4 -4
- package/dist/components/file-upload/anatomy/item-delete-trigger.js.map +1 -1
- package/dist/components/file-upload/anatomy/item-group.d.ts +3 -3
- package/dist/components/file-upload/anatomy/item-group.d.ts.map +1 -1
- package/dist/components/file-upload/anatomy/item-group.js +2 -2
- package/dist/components/file-upload/anatomy/item-group.js.map +1 -1
- package/dist/components/file-upload/anatomy/item-name.d.ts +3 -3
- package/dist/components/file-upload/anatomy/item-name.d.ts.map +1 -1
- package/dist/components/file-upload/anatomy/item-name.js +2 -2
- package/dist/components/file-upload/anatomy/item-name.js.map +1 -1
- package/dist/components/file-upload/anatomy/item-size-text.d.ts +3 -3
- package/dist/components/file-upload/anatomy/item-size-text.d.ts.map +1 -1
- package/dist/components/file-upload/anatomy/item-size-text.js +2 -2
- package/dist/components/file-upload/anatomy/item-size-text.js.map +1 -1
- package/dist/components/file-upload/anatomy/item.d.ts +2 -2
- package/dist/components/file-upload/anatomy/item.d.ts.map +1 -1
- package/dist/components/file-upload/anatomy/item.js +2 -2
- package/dist/components/file-upload/anatomy/item.js.map +1 -1
- package/dist/components/file-upload/anatomy/root-context.js.map +1 -1
- package/dist/components/file-upload/anatomy/root-provider.d.ts +2 -2
- package/dist/components/file-upload/anatomy/root-provider.d.ts.map +1 -1
- package/dist/components/file-upload/anatomy/root-provider.js +1 -1
- package/dist/components/file-upload/anatomy/root-provider.js.map +1 -1
- package/dist/components/file-upload/anatomy/root.d.ts +2 -2
- package/dist/components/file-upload/anatomy/root.d.ts.map +1 -1
- package/dist/components/file-upload/anatomy/root.js +1 -1
- package/dist/components/file-upload/anatomy/root.js.map +1 -1
- package/dist/components/file-upload/anatomy/trigger.d.ts +3 -3
- package/dist/components/file-upload/anatomy/trigger.d.ts.map +1 -1
- package/dist/components/file-upload/anatomy/trigger.js +2 -2
- package/dist/components/file-upload/anatomy/trigger.js.map +1 -1
- package/dist/components/file-upload/modules/item-context.js.map +1 -1
- package/dist/components/file-upload/modules/root-context.js.map +1 -1
- package/dist/components/file-upload/modules/use-file-upload.d.ts +2 -1
- package/dist/components/file-upload/modules/use-file-upload.d.ts.map +1 -1
- package/dist/components/file-upload/modules/use-file-upload.js +1 -1
- package/dist/components/file-upload/modules/use-file-upload.js.map +1 -1
- package/dist/components/popover/anatomy/arrow-tip.d.ts +11 -0
- package/dist/components/popover/anatomy/arrow-tip.d.ts.map +1 -0
- package/dist/components/popover/anatomy/arrow-tip.js +20 -0
- package/dist/components/popover/anatomy/arrow-tip.js.map +1 -0
- package/dist/components/popover/anatomy/arrow.d.ts +11 -0
- package/dist/components/popover/anatomy/arrow.d.ts.map +1 -0
- package/dist/components/popover/anatomy/arrow.js +20 -0
- package/dist/components/popover/anatomy/arrow.js.map +1 -0
- package/dist/components/popover/anatomy/close-trigger.d.ts +11 -0
- package/dist/components/popover/anatomy/close-trigger.d.ts.map +1 -0
- package/dist/components/popover/anatomy/close-trigger.js +20 -0
- package/dist/components/popover/anatomy/close-trigger.js.map +1 -0
- package/dist/components/popover/anatomy/content.d.ts +11 -0
- package/dist/components/popover/anatomy/content.d.ts.map +1 -0
- package/dist/components/popover/anatomy/content.js +20 -0
- package/dist/components/popover/anatomy/content.js.map +1 -0
- package/dist/components/popover/anatomy/description.d.ts +11 -0
- package/dist/components/popover/anatomy/description.d.ts.map +1 -0
- package/dist/components/popover/anatomy/description.js +20 -0
- package/dist/components/popover/anatomy/description.js.map +1 -0
- package/dist/components/popover/anatomy/positioner.d.ts +10 -0
- package/dist/components/popover/anatomy/positioner.d.ts.map +1 -0
- package/dist/components/popover/anatomy/positioner.js +21 -0
- package/dist/components/popover/anatomy/positioner.js.map +1 -0
- package/dist/components/popover/anatomy/root-context.d.ts +11 -0
- package/dist/components/popover/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/popover/anatomy/root-context.js +13 -0
- package/dist/components/popover/anatomy/root-context.js.map +1 -0
- package/dist/components/popover/anatomy/root-provider.d.ts +12 -0
- package/dist/components/popover/anatomy/root-provider.d.ts.map +1 -0
- package/dist/components/popover/anatomy/root-provider.js +15 -0
- package/dist/components/popover/anatomy/root-provider.js.map +1 -0
- package/dist/components/popover/anatomy/root.d.ts +10 -0
- package/dist/components/popover/anatomy/root.d.ts.map +1 -0
- package/dist/components/popover/anatomy/root.js +20 -0
- package/dist/components/popover/anatomy/root.js.map +1 -0
- package/dist/components/popover/anatomy/title.d.ts +11 -0
- package/dist/components/popover/anatomy/title.d.ts.map +1 -0
- package/dist/components/popover/anatomy/title.js +20 -0
- package/dist/components/popover/anatomy/title.js.map +1 -0
- package/dist/components/popover/anatomy/trigger.d.ts +12 -0
- package/dist/components/popover/anatomy/trigger.d.ts.map +1 -0
- package/dist/components/popover/anatomy/trigger.js +20 -0
- package/dist/components/popover/anatomy/trigger.js.map +1 -0
- package/dist/components/popover/index.js +4 -0
- package/dist/components/popover/modules/anatomy.d.ts +28 -0
- package/dist/components/popover/modules/anatomy.d.ts.map +1 -0
- package/dist/components/popover/modules/anatomy.js +29 -0
- package/dist/components/popover/modules/anatomy.js.map +1 -0
- package/dist/components/popover/modules/root-context.js +8 -0
- package/dist/components/popover/modules/root-context.js.map +1 -0
- package/dist/components/popover/modules/use-popover.d.ts +8 -0
- package/dist/components/popover/modules/use-popover.d.ts.map +1 -0
- package/dist/components/popover/modules/use-popover.js +16 -0
- package/dist/components/popover/modules/use-popover.js.map +1 -0
- package/dist/components/progress-linear/anatomy/label.d.ts +4 -4
- package/dist/components/progress-linear/anatomy/label.d.ts.map +1 -1
- package/dist/components/progress-linear/anatomy/label.js +4 -4
- package/dist/components/progress-linear/anatomy/label.js.map +1 -1
- package/dist/components/progress-linear/anatomy/range.d.ts +4 -4
- package/dist/components/progress-linear/anatomy/range.d.ts.map +1 -1
- package/dist/components/progress-linear/anatomy/range.js +4 -4
- package/dist/components/progress-linear/anatomy/range.js.map +1 -1
- package/dist/components/progress-linear/anatomy/root-context.d.ts +2 -2
- package/dist/components/progress-linear/anatomy/root-context.d.ts.map +1 -1
- package/dist/components/progress-linear/anatomy/root-context.js +2 -2
- package/dist/components/progress-linear/anatomy/root-context.js.map +1 -1
- package/dist/components/progress-linear/anatomy/root-provider.d.ts +3 -3
- package/dist/components/progress-linear/anatomy/root-provider.d.ts.map +1 -1
- package/dist/components/progress-linear/anatomy/root-provider.js +3 -3
- package/dist/components/progress-linear/anatomy/root-provider.js.map +1 -1
- package/dist/components/progress-linear/anatomy/root.d.ts +3 -3
- package/dist/components/progress-linear/anatomy/root.d.ts.map +1 -1
- package/dist/components/progress-linear/anatomy/root.js +3 -3
- package/dist/components/progress-linear/anatomy/root.js.map +1 -1
- package/dist/components/progress-linear/anatomy/track.d.ts +4 -4
- package/dist/components/progress-linear/anatomy/track.d.ts.map +1 -1
- package/dist/components/progress-linear/anatomy/track.js +4 -4
- package/dist/components/progress-linear/anatomy/track.js.map +1 -1
- package/dist/components/progress-linear/modules/anatomy.d.ts +12 -12
- package/dist/components/progress-linear/modules/anatomy.d.ts.map +1 -1
- package/dist/components/progress-linear/modules/anatomy.js +12 -12
- package/dist/components/progress-linear/modules/anatomy.js.map +1 -1
- package/dist/components/progress-linear/modules/root-context.js.map +1 -1
- package/dist/components/progress-linear/modules/use-progress-linear.d.ts +2 -1
- package/dist/components/progress-linear/modules/use-progress-linear.d.ts.map +1 -1
- package/dist/components/progress-linear/modules/use-progress-linear.js +2 -2
- package/dist/components/progress-linear/modules/use-progress-linear.js.map +1 -1
- package/dist/components/rating-group/anatomy/control.d.ts +4 -4
- package/dist/components/rating-group/anatomy/control.d.ts.map +1 -1
- package/dist/components/rating-group/anatomy/control.js +4 -4
- package/dist/components/rating-group/anatomy/control.js.map +1 -1
- package/dist/components/rating-group/anatomy/hidden-input.d.ts +4 -4
- package/dist/components/rating-group/anatomy/hidden-input.d.ts.map +1 -1
- package/dist/components/rating-group/anatomy/hidden-input.js +4 -4
- package/dist/components/rating-group/anatomy/hidden-input.js.map +1 -1
- package/dist/components/rating-group/anatomy/item.d.ts +4 -4
- package/dist/components/rating-group/anatomy/item.d.ts.map +1 -1
- package/dist/components/rating-group/anatomy/item.js +4 -4
- package/dist/components/rating-group/anatomy/item.js.map +1 -1
- package/dist/components/rating-group/anatomy/label.d.ts +4 -4
- package/dist/components/rating-group/anatomy/label.d.ts.map +1 -1
- package/dist/components/rating-group/anatomy/label.js +4 -4
- package/dist/components/rating-group/anatomy/label.js.map +1 -1
- package/dist/components/rating-group/anatomy/root-context.d.ts +2 -2
- package/dist/components/rating-group/anatomy/root-context.d.ts.map +1 -1
- package/dist/components/rating-group/anatomy/root-context.js +2 -2
- package/dist/components/rating-group/anatomy/root-context.js.map +1 -1
- package/dist/components/rating-group/anatomy/root-provider.d.ts +3 -3
- package/dist/components/rating-group/anatomy/root-provider.d.ts.map +1 -1
- package/dist/components/rating-group/anatomy/root-provider.js +3 -3
- package/dist/components/rating-group/anatomy/root-provider.js.map +1 -1
- package/dist/components/rating-group/anatomy/root.d.ts +3 -3
- package/dist/components/rating-group/anatomy/root.d.ts.map +1 -1
- package/dist/components/rating-group/anatomy/root.js +3 -3
- package/dist/components/rating-group/anatomy/root.js.map +1 -1
- package/dist/components/rating-group/modules/anatomy.d.ts +14 -14
- package/dist/components/rating-group/modules/anatomy.d.ts.map +1 -1
- package/dist/components/rating-group/modules/anatomy.js +14 -14
- package/dist/components/rating-group/modules/anatomy.js.map +1 -1
- package/dist/components/rating-group/modules/root-context.js.map +1 -1
- package/dist/components/rating-group/modules/use-rating-group.d.ts +2 -1
- package/dist/components/rating-group/modules/use-rating-group.d.ts.map +1 -1
- package/dist/components/rating-group/modules/use-rating-group.js +2 -2
- package/dist/components/rating-group/modules/use-rating-group.js.map +1 -1
- package/dist/components/switch/anatomy/control.d.ts +4 -4
- package/dist/components/switch/anatomy/control.d.ts.map +1 -1
- package/dist/components/switch/anatomy/control.js +4 -4
- package/dist/components/switch/anatomy/control.js.map +1 -1
- package/dist/components/switch/anatomy/hidden-input.d.ts +4 -4
- package/dist/components/switch/anatomy/hidden-input.d.ts.map +1 -1
- package/dist/components/switch/anatomy/hidden-input.js +4 -4
- package/dist/components/switch/anatomy/hidden-input.js.map +1 -1
- package/dist/components/switch/anatomy/label.d.ts +4 -4
- package/dist/components/switch/anatomy/label.d.ts.map +1 -1
- package/dist/components/switch/anatomy/label.js +4 -4
- package/dist/components/switch/anatomy/label.js.map +1 -1
- package/dist/components/switch/anatomy/root-context.d.ts +2 -2
- package/dist/components/switch/anatomy/root-context.d.ts.map +1 -1
- package/dist/components/switch/anatomy/root-context.js +2 -2
- package/dist/components/switch/anatomy/root-context.js.map +1 -1
- package/dist/components/switch/anatomy/root-provider.d.ts +3 -2
- package/dist/components/switch/anatomy/root-provider.d.ts.map +1 -1
- package/dist/components/switch/anatomy/root-provider.js +21 -0
- package/dist/components/switch/anatomy/root-provider.js.map +1 -0
- package/dist/components/switch/anatomy/root.d.ts +3 -3
- package/dist/components/switch/anatomy/root.d.ts.map +1 -1
- package/dist/components/switch/anatomy/root.js +3 -3
- package/dist/components/switch/anatomy/root.js.map +1 -1
- package/dist/components/switch/anatomy/thumb.d.ts +4 -4
- package/dist/components/switch/anatomy/thumb.d.ts.map +1 -1
- package/dist/components/switch/anatomy/thumb.js +4 -4
- package/dist/components/switch/anatomy/thumb.js.map +1 -1
- package/dist/components/switch/modules/anatomy.d.ts +14 -12
- package/dist/components/switch/modules/anatomy.d.ts.map +1 -1
- package/dist/components/switch/modules/anatomy.js +14 -12
- package/dist/components/switch/modules/anatomy.js.map +1 -1
- package/dist/components/switch/modules/root-context.js.map +1 -1
- package/dist/components/switch/modules/use-switch.d.ts +2 -1
- package/dist/components/switch/modules/use-switch.d.ts.map +1 -1
- package/dist/components/switch/modules/use-switch.js +2 -2
- package/dist/components/switch/modules/use-switch.js.map +1 -1
- package/dist/components/tabs/anatomy/content.d.ts +4 -4
- package/dist/components/tabs/anatomy/content.d.ts.map +1 -1
- package/dist/components/tabs/anatomy/content.js +4 -4
- package/dist/components/tabs/anatomy/content.js.map +1 -1
- package/dist/components/tabs/anatomy/indicator.d.ts +4 -4
- package/dist/components/tabs/anatomy/indicator.d.ts.map +1 -1
- package/dist/components/tabs/anatomy/indicator.js +4 -4
- package/dist/components/tabs/anatomy/indicator.js.map +1 -1
- package/dist/components/tabs/anatomy/list.d.ts +4 -4
- package/dist/components/tabs/anatomy/list.d.ts.map +1 -1
- package/dist/components/tabs/anatomy/list.js +4 -4
- package/dist/components/tabs/anatomy/list.js.map +1 -1
- package/dist/components/tabs/anatomy/root-context.js.map +1 -1
- package/dist/components/tabs/anatomy/root-provider.d.ts +3 -3
- package/dist/components/tabs/anatomy/root-provider.d.ts.map +1 -1
- package/dist/components/tabs/anatomy/root-provider.js +3 -3
- package/dist/components/tabs/anatomy/root-provider.js.map +1 -1
- package/dist/components/tabs/anatomy/root.d.ts +3 -3
- package/dist/components/tabs/anatomy/root.d.ts.map +1 -1
- package/dist/components/tabs/anatomy/root.js +3 -3
- package/dist/components/tabs/anatomy/root.js.map +1 -1
- package/dist/components/tabs/anatomy/trigger.d.ts +4 -4
- package/dist/components/tabs/anatomy/trigger.d.ts.map +1 -1
- package/dist/components/tabs/anatomy/trigger.js +4 -4
- package/dist/components/tabs/anatomy/trigger.js.map +1 -1
- package/dist/components/tabs/modules/anatomy.d.ts +12 -12
- package/dist/components/tabs/modules/anatomy.d.ts.map +1 -1
- package/dist/components/tabs/modules/anatomy.js +12 -12
- package/dist/components/tabs/modules/anatomy.js.map +1 -1
- package/dist/components/tabs/modules/root-context.js.map +1 -1
- package/dist/components/tabs/modules/use-tabs.d.ts +2 -1
- package/dist/components/tabs/modules/use-tabs.d.ts.map +1 -1
- package/dist/components/tabs/modules/use-tabs.js +2 -2
- package/dist/components/tabs/modules/use-tabs.js.map +1 -1
- package/dist/components/tags-input/anatomy/clear-trigger.d.ts +11 -0
- package/dist/components/tags-input/anatomy/clear-trigger.d.ts.map +1 -0
- package/dist/components/tags-input/anatomy/clear-trigger.js +20 -0
- package/dist/components/tags-input/anatomy/clear-trigger.js.map +1 -0
- package/dist/components/tags-input/anatomy/control.d.ts +11 -0
- package/dist/components/tags-input/anatomy/control.d.ts.map +1 -0
- package/dist/components/tags-input/anatomy/control.js +20 -0
- package/dist/components/tags-input/anatomy/control.js.map +1 -0
- package/dist/components/tags-input/anatomy/hidden-input.d.ts +11 -0
- package/dist/components/tags-input/anatomy/hidden-input.d.ts.map +1 -0
- package/dist/components/tags-input/anatomy/hidden-input.js +17 -0
- package/dist/components/tags-input/anatomy/hidden-input.js.map +1 -0
- package/dist/components/tags-input/anatomy/input.d.ts +11 -0
- package/dist/components/tags-input/anatomy/input.d.ts.map +1 -0
- package/dist/components/tags-input/anatomy/input.js +17 -0
- package/dist/components/tags-input/anatomy/input.js.map +1 -0
- package/dist/components/tags-input/anatomy/item-delete-trigger.d.ts +11 -0
- package/dist/components/tags-input/anatomy/item-delete-trigger.d.ts.map +1 -0
- package/dist/components/tags-input/anatomy/item-delete-trigger.js +22 -0
- package/dist/components/tags-input/anatomy/item-delete-trigger.js.map +1 -0
- package/dist/components/tags-input/anatomy/item-input.d.ts +11 -0
- package/dist/components/tags-input/anatomy/item-input.d.ts.map +1 -0
- package/dist/components/tags-input/anatomy/item-input.js +19 -0
- package/dist/components/tags-input/anatomy/item-input.js.map +1 -0
- package/dist/components/tags-input/anatomy/item-preview.d.ts +11 -0
- package/dist/components/tags-input/anatomy/item-preview.d.ts.map +1 -0
- package/dist/components/tags-input/anatomy/item-preview.js +22 -0
- package/dist/components/tags-input/anatomy/item-preview.js.map +1 -0
- package/dist/components/tags-input/anatomy/item-text.d.ts +11 -0
- package/dist/components/tags-input/anatomy/item-text.d.ts.map +1 -0
- package/dist/components/tags-input/anatomy/item-text.js +22 -0
- package/dist/components/tags-input/anatomy/item-text.js.map +1 -0
- package/dist/components/tags-input/anatomy/item.d.ts +11 -0
- package/dist/components/tags-input/anatomy/item.d.ts.map +1 -0
- package/dist/components/tags-input/anatomy/item.js +26 -0
- package/dist/components/tags-input/anatomy/item.js.map +1 -0
- package/dist/components/tags-input/anatomy/label.d.ts +11 -0
- package/dist/components/tags-input/anatomy/label.d.ts.map +1 -0
- package/dist/components/tags-input/anatomy/label.js +20 -0
- package/dist/components/tags-input/anatomy/label.js.map +1 -0
- package/dist/components/tags-input/anatomy/root-context.d.ts +11 -0
- package/dist/components/tags-input/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/tags-input/anatomy/root-context.js +13 -0
- package/dist/components/tags-input/anatomy/root-context.js.map +1 -0
- package/dist/components/tags-input/anatomy/root-provider.d.ts +13 -0
- package/dist/components/tags-input/anatomy/root-provider.d.ts.map +1 -0
- package/dist/components/tags-input/anatomy/root-provider.js +21 -0
- package/dist/components/tags-input/anatomy/root-provider.js.map +1 -0
- package/dist/components/tags-input/anatomy/root.d.ts +11 -0
- package/dist/components/tags-input/anatomy/root.d.ts.map +1 -0
- package/dist/components/tags-input/anatomy/root.js +25 -0
- package/dist/components/tags-input/anatomy/root.js.map +1 -0
- package/dist/components/tags-input/index.js +4 -0
- package/dist/components/tags-input/modules/anatomy.d.ts +32 -0
- package/dist/components/tags-input/modules/anatomy.d.ts.map +1 -0
- package/dist/components/tags-input/modules/anatomy.js +33 -0
- package/dist/components/tags-input/modules/anatomy.js.map +1 -0
- package/dist/components/tags-input/modules/item-context.js +8 -0
- package/dist/components/tags-input/modules/item-context.js.map +1 -0
- package/dist/components/tags-input/modules/root-context.js +8 -0
- package/dist/components/tags-input/modules/root-context.js.map +1 -0
- package/dist/components/tags-input/modules/use-tags-input.d.ts +8 -0
- package/dist/components/tags-input/modules/use-tags-input.d.ts.map +1 -0
- package/dist/components/tags-input/modules/use-tags-input.js +16 -0
- package/dist/components/tags-input/modules/use-tags-input.js.map +1 -0
- package/dist/components/toast/anatomy/action-trigger.d.ts +4 -4
- package/dist/components/toast/anatomy/action-trigger.d.ts.map +1 -1
- package/dist/components/toast/anatomy/action-trigger.js +4 -4
- package/dist/components/toast/anatomy/action-trigger.js.map +1 -1
- package/dist/components/toast/anatomy/close-trigger.d.ts +4 -4
- package/dist/components/toast/anatomy/close-trigger.d.ts.map +1 -1
- package/dist/components/toast/anatomy/close-trigger.js +4 -4
- package/dist/components/toast/anatomy/close-trigger.js.map +1 -1
- package/dist/components/toast/anatomy/description.d.ts +4 -4
- package/dist/components/toast/anatomy/description.d.ts.map +1 -1
- package/dist/components/toast/anatomy/description.js +4 -4
- package/dist/components/toast/anatomy/description.js.map +1 -1
- package/dist/components/toast/anatomy/group.d.ts +3 -3
- package/dist/components/toast/anatomy/group.d.ts.map +1 -1
- package/dist/components/toast/anatomy/group.js +4 -4
- package/dist/components/toast/anatomy/group.js.map +1 -1
- package/dist/components/toast/anatomy/message.d.ts +4 -4
- package/dist/components/toast/anatomy/message.d.ts.map +1 -1
- package/dist/components/toast/anatomy/message.js +3 -3
- package/dist/components/toast/anatomy/message.js.map +1 -1
- package/dist/components/toast/anatomy/root-context.d.ts +4 -3
- package/dist/components/toast/anatomy/root-context.d.ts.map +1 -1
- package/dist/components/toast/anatomy/root-context.js +2 -2
- package/dist/components/toast/anatomy/root-context.js.map +1 -1
- package/dist/components/toast/anatomy/root.d.ts +2 -2
- package/dist/components/toast/anatomy/root.d.ts.map +1 -1
- package/dist/components/toast/anatomy/root.js +4 -4
- package/dist/components/toast/anatomy/root.js.map +1 -1
- package/dist/components/toast/anatomy/title.d.ts +4 -4
- package/dist/components/toast/anatomy/title.d.ts.map +1 -1
- package/dist/components/toast/anatomy/title.js +4 -4
- package/dist/components/toast/anatomy/title.js.map +1 -1
- package/dist/components/toast/modules/anatomy.d.ts +14 -14
- package/dist/components/toast/modules/anatomy.d.ts.map +1 -1
- package/dist/components/toast/modules/anatomy.js +14 -14
- package/dist/components/toast/modules/anatomy.js.map +1 -1
- package/dist/components/toast/modules/group-context.js.map +1 -1
- package/dist/components/toast/modules/root-context.js.map +1 -1
- package/dist/components/tooltip/anatomy/arrow-tip.d.ts +11 -0
- package/dist/components/tooltip/anatomy/arrow-tip.d.ts.map +1 -0
- package/dist/components/tooltip/anatomy/arrow-tip.js +20 -0
- package/dist/components/tooltip/anatomy/arrow-tip.js.map +1 -0
- package/dist/components/tooltip/anatomy/arrow.d.ts +11 -0
- package/dist/components/tooltip/anatomy/arrow.d.ts.map +1 -0
- package/dist/components/tooltip/anatomy/arrow.js +20 -0
- package/dist/components/tooltip/anatomy/arrow.js.map +1 -0
- package/dist/components/tooltip/anatomy/content.d.ts +11 -0
- package/dist/components/tooltip/anatomy/content.d.ts.map +1 -0
- package/dist/components/tooltip/anatomy/content.js +20 -0
- package/dist/components/tooltip/anatomy/content.js.map +1 -0
- package/dist/components/tooltip/anatomy/positioner.d.ts +10 -0
- package/dist/components/tooltip/anatomy/positioner.d.ts.map +1 -0
- package/dist/components/tooltip/anatomy/positioner.js +20 -0
- package/dist/components/tooltip/anatomy/positioner.js.map +1 -0
- package/dist/components/tooltip/anatomy/root-context.d.ts +11 -0
- package/dist/components/tooltip/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/tooltip/anatomy/root-context.js +13 -0
- package/dist/components/tooltip/anatomy/root-context.js.map +1 -0
- package/dist/components/tooltip/anatomy/root-provider.d.ts +12 -0
- package/dist/components/tooltip/anatomy/root-provider.d.ts.map +1 -0
- package/dist/components/tooltip/anatomy/root-provider.js +15 -0
- package/dist/components/tooltip/anatomy/root-provider.js.map +1 -0
- package/dist/components/tooltip/anatomy/root.d.ts +10 -0
- package/dist/components/tooltip/anatomy/root.d.ts.map +1 -0
- package/dist/components/tooltip/anatomy/root.js +19 -0
- package/dist/components/tooltip/anatomy/root.js.map +1 -0
- package/dist/components/tooltip/anatomy/trigger.d.ts +11 -0
- package/dist/components/tooltip/anatomy/trigger.d.ts.map +1 -0
- package/dist/components/tooltip/anatomy/trigger.js +20 -0
- package/dist/components/tooltip/anatomy/trigger.js.map +1 -0
- package/dist/components/tooltip/index.js +4 -0
- package/dist/components/tooltip/modules/anatomy.d.ts +22 -0
- package/dist/components/tooltip/modules/anatomy.d.ts.map +1 -0
- package/dist/components/tooltip/modules/anatomy.js +23 -0
- package/dist/components/tooltip/modules/anatomy.js.map +1 -0
- package/dist/components/tooltip/modules/root-context.js +8 -0
- package/dist/components/tooltip/modules/root-context.js.map +1 -0
- package/dist/components/tooltip/modules/use-tooltip.d.ts +8 -0
- package/dist/components/tooltip/modules/use-tooltip.d.ts.map +1 -0
- package/dist/components/tooltip/modules/use-tooltip.js +16 -0
- package/dist/components/tooltip/modules/use-tooltip.js.map +1 -0
- package/dist/index.d.ts +41 -5
- package/dist/index.js +10 -1
- package/dist/internal/components/x.js +8 -3
- package/dist/internal/components/x.js.map +1 -1
- package/dist/internal/create-context.js +1 -1
- package/dist/internal/create-context.js.map +1 -1
- package/dist/internal/props-with-element.d.ts.map +1 -1
- package/package.json +29 -25
- package/dist/components/accordion/anatomy/content.d.ts +0 -12
- package/dist/components/accordion/anatomy/content.d.ts.map +0 -1
- package/dist/components/accordion/anatomy/content.js.map +0 -1
- package/dist/components/accordion/anatomy/heading.d.ts +0 -19
- package/dist/components/accordion/anatomy/heading.d.ts.map +0 -1
- package/dist/components/accordion/anatomy/heading.js.map +0 -1
- package/dist/components/accordion/anatomy/indicator.d.ts +0 -12
- package/dist/components/accordion/anatomy/indicator.d.ts.map +0 -1
- package/dist/components/accordion/anatomy/indicator.js.map +0 -1
- package/dist/components/accordion/anatomy/trigger.d.ts +0 -12
- package/dist/components/accordion/anatomy/trigger.d.ts.map +0 -1
- package/dist/components/accordion/anatomy/trigger.js.map +0 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react209 from "react";
|
|
4
|
+
import { PropsWithChildren } from "react";
|
|
5
|
+
import * as react_jsx_runtime62 from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/accordion/anatomy/item-content.d.ts
|
|
8
|
+
interface AccordionItemContentProps extends PropsWithChildren, PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
9
|
+
declare function ItemContent(props: AccordionItemContentProps): string | number | bigint | boolean | Iterable<react209.ReactNode> | Promise<string | number | bigint | boolean | react209.ReactPortal | react209.ReactElement<unknown, string | react209.JSXElementConstructor<any>> | Iterable<react209.ReactNode> | null | undefined> | react_jsx_runtime62.JSX.Element | null | undefined;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { AccordionItemContentProps, ItemContent };
|
|
12
|
+
//# sourceMappingURL=item-content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item-content.d.ts","names":[],"sources":["../../../../src/components/accordion/anatomy/item-content.tsx"],"sourcesContent":[],"mappings":";;;;;;;UASiB,yBAAA,SAAkC,mBAAmB,yBAAyB;iBAEvE,WAAA,QAAmB,iEAAyB,SAAA,QAAA,CAAA,SAAA,IAAA,6CAAA,QAAA,CAAA,WAAA,GAAA,QAAA,CAAA,+BAAA,QAAA,CAAA,8BAAA,SAAA,QAAA,CAAA,SAAA,wBAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { AccordionItemContext } from "../modules/item-context.js";
|
|
2
2
|
import { AccordionRootContext } from "../modules/root-context.js";
|
|
3
|
-
import { classesAccordion } from "@skeletonlabs/skeleton-common";
|
|
4
|
-
import { mergeProps } from "@zag-js/react";
|
|
5
3
|
import { use } from "react";
|
|
4
|
+
import { mergeProps } from "@zag-js/react";
|
|
5
|
+
import { classesAccordion } from "@skeletonlabs/skeleton-common";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
|
|
8
|
-
//#region src/components/accordion/anatomy/content.tsx
|
|
9
|
-
function
|
|
8
|
+
//#region src/components/accordion/anatomy/item-content.tsx
|
|
9
|
+
function ItemContent(props) {
|
|
10
10
|
const accordion = use(AccordionRootContext);
|
|
11
11
|
const itemProps = use(AccordionItemContext);
|
|
12
12
|
const { element, children,...rest } = props;
|
|
@@ -18,5 +18,5 @@ function AccordionContent(props) {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
//#endregion
|
|
21
|
-
export {
|
|
22
|
-
//# sourceMappingURL=content.js.map
|
|
21
|
+
export { ItemContent as default };
|
|
22
|
+
//# sourceMappingURL=item-content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item-content.js","names":[],"sources":["../../../../src/components/accordion/anatomy/item-content.tsx"],"sourcesContent":["import { AccordionItemContext } from '../modules/item-context.js';\nimport { AccordionRootContext } from '../modules/root-context.js';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesAccordion } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\nimport type { PropsWithChildren } from 'react';\n\nexport interface AccordionItemContentProps extends PropsWithChildren, PropsWithElement<'div'>, HTMLAttributes<'div'> {}\n\nexport default function ItemContent(props: AccordionItemContentProps) {\n\tconst accordion = use(AccordionRootContext);\n\tconst itemProps = use(AccordionItemContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(accordion.getItemContentProps(itemProps), rest, {\n\t\tclassName: classesAccordion.content,\n\t});\n\n\treturn element ? element(attributes) : <div {...attributes}>{children}</div>;\n}\n"],"mappings":";;;;;;;;AAWA,SAAwB,YAAY,OAAkC;CACrE,MAAM,YAAY,IAAI,qBAAqB;CAC3C,MAAM,YAAY,IAAI,qBAAqB;CAE3C,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,UAAU,oBAAoB,UAAU,EAAE,MAAM,EAC7E,WAAW,iBAAiB,SAC5B,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAI,GAAI;EAAa;GAAe"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react214 from "react";
|
|
4
|
+
import { PropsWithChildren } from "react";
|
|
5
|
+
import * as react_jsx_runtime63 from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/accordion/anatomy/item-heading.d.ts
|
|
8
|
+
interface AccordionItemHeadingProps extends PropsWithChildren, PropsWithElement<'h3'>, HTMLAttributes<'h3'> {
|
|
9
|
+
/**
|
|
10
|
+
* The level of the heading.
|
|
11
|
+
*
|
|
12
|
+
* @default 3
|
|
13
|
+
*/
|
|
14
|
+
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
15
|
+
}
|
|
16
|
+
declare function ItemHeading(props: AccordionItemHeadingProps): string | number | bigint | boolean | Iterable<react214.ReactNode> | Promise<string | number | bigint | boolean | react214.ReactPortal | react214.ReactElement<unknown, string | react214.JSXElementConstructor<any>> | Iterable<react214.ReactNode> | null | undefined> | react_jsx_runtime63.JSX.Element | null | undefined;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { AccordionItemHeadingProps, ItemHeading };
|
|
19
|
+
//# sourceMappingURL=item-heading.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item-heading.d.ts","names":[],"sources":["../../../../src/components/accordion/anatomy/item-heading.tsx"],"sourcesContent":[],"mappings":";;;;;;;UAMiB,yBAAA,SAAkC,mBAAmB,wBAAwB;;;;AAA9F;;OAAmD,CAAA,EAAA,CAAA,GAAA,CAAA,GAAA,CAAA,GAAA,CAAA,GAAA,CAAA,GAAA,CAAA;;AAA2C,iBAStE,WAAA,CATsE,KAAA,EASnD,yBATmD,CAAA,EAAA,MAAA,GAAA,MAAA,GAAA,MAAA,GAAA,OAAA,GAS1B,QAT0B,CAS1B,QAAA,CAAA,SAAA,CAT0B,GAS1B,OAT0B,CAAA,MAAA,GAAA,MAAA,GAAA,MAAA,GAAA,OAAA,GAS1B,QAAA,CAAA,WAAA,GAAA,QAAA,CAAA,YAT0B,CAAA,OAAA,EAAA,MAAA,GAS1B,QAAA,CAAA,qBAT0B,CAAA,GAAA,CAAA,CAAA,GAS1B,QAT0B,CAS1B,QAAA,CAAA,SAAA,CAT0B,GAAA,IAAA,GAAA,SAAA,CAAA,GAS1B,mBAAA,CAAA,GAAA,CAAA,OAAA,GAT0B,IAAA,GAAA,SAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { classesAccordion } from "@skeletonlabs/skeleton-common";
|
|
2
1
|
import { mergeProps } from "@zag-js/react";
|
|
2
|
+
import { classesAccordion } from "@skeletonlabs/skeleton-common";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
|
|
5
|
-
//#region src/components/accordion/anatomy/heading.tsx
|
|
6
|
-
function
|
|
5
|
+
//#region src/components/accordion/anatomy/item-heading.tsx
|
|
6
|
+
function ItemHeading(props) {
|
|
7
7
|
const { level = 3, element, children,...rest } = props;
|
|
8
8
|
const Tag = `h${level}`;
|
|
9
9
|
const attributes = mergeProps(rest, { className: classesAccordion.heading });
|
|
@@ -14,5 +14,5 @@ function AccordionHeading(props) {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
//#endregion
|
|
17
|
-
export {
|
|
18
|
-
//# sourceMappingURL=heading.js.map
|
|
17
|
+
export { ItemHeading as default };
|
|
18
|
+
//# sourceMappingURL=item-heading.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item-heading.js","names":["Tag: keyof JSX.IntrinsicElements"],"sources":["../../../../src/components/accordion/anatomy/item-heading.tsx"],"sourcesContent":["import type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesAccordion } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport type { JSX, PropsWithChildren } from 'react';\n\nexport interface AccordionItemHeadingProps extends PropsWithChildren, PropsWithElement<'h3'>, HTMLAttributes<'h3'> {\n\t/**\n\t * The level of the heading.\n\t *\n\t * @default 3\n\t */\n\tlevel?: 1 | 2 | 3 | 4 | 5 | 6;\n}\n\nexport default function ItemHeading(props: AccordionItemHeadingProps) {\n\tconst { level = 3, element, children, ...rest } = props;\n\n\tconst Tag: keyof JSX.IntrinsicElements = `h${level}`;\n\n\tconst attributes = mergeProps(rest, {\n\t\tclassName: classesAccordion.heading,\n\t});\n\n\treturn element ? element(attributes) : <Tag {...attributes}>{children}</Tag>;\n}\n"],"mappings":";;;;;AAeA,SAAwB,YAAY,OAAkC;CACrE,MAAM,EAAE,QAAQ,GAAG,SAAS,SAAU,GAAG,SAAS;CAElD,MAAMA,MAAmC,IAAI;CAE7C,MAAM,aAAa,WAAW,MAAM,EACnC,WAAW,iBAAiB,SAC5B,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAI,GAAI;EAAa;GAAe"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react219 from "react";
|
|
4
|
+
import { PropsWithChildren } from "react";
|
|
5
|
+
import * as react_jsx_runtime64 from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/accordion/anatomy/item-indicator.d.ts
|
|
8
|
+
interface AccordionItemIndicatorProps extends PropsWithChildren, PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
9
|
+
declare function ItemIndicator(props: AccordionItemIndicatorProps): string | number | bigint | boolean | Iterable<react219.ReactNode> | Promise<string | number | bigint | boolean | react219.ReactPortal | react219.ReactElement<unknown, string | react219.JSXElementConstructor<any>> | Iterable<react219.ReactNode> | null | undefined> | react_jsx_runtime64.JSX.Element | null | undefined;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { AccordionItemIndicatorProps, ItemIndicator };
|
|
12
|
+
//# sourceMappingURL=item-indicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item-indicator.d.ts","names":[],"sources":["../../../../src/components/accordion/anatomy/item-indicator.tsx"],"sourcesContent":[],"mappings":";;;;;;;UASiB,2BAAA,SAAoC,mBAAmB,yBAAyB;iBAEzE,aAAA,QAAqB,mEAA2B,SAAA,QAAA,CAAA,SAAA,IAAA,6CAAA,QAAA,CAAA,WAAA,GAAA,QAAA,CAAA,+BAAA,QAAA,CAAA,8BAAA,SAAA,QAAA,CAAA,SAAA,wBAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { AccordionItemContext } from "../modules/item-context.js";
|
|
2
2
|
import { AccordionRootContext } from "../modules/root-context.js";
|
|
3
|
-
import { classesAccordion } from "@skeletonlabs/skeleton-common";
|
|
4
|
-
import { mergeProps } from "@zag-js/react";
|
|
5
3
|
import { use } from "react";
|
|
4
|
+
import { mergeProps } from "@zag-js/react";
|
|
5
|
+
import { classesAccordion } from "@skeletonlabs/skeleton-common";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
|
|
8
|
-
//#region src/components/accordion/anatomy/indicator.tsx
|
|
9
|
-
function
|
|
8
|
+
//#region src/components/accordion/anatomy/item-indicator.tsx
|
|
9
|
+
function ItemIndicator(props) {
|
|
10
10
|
const accordion = use(AccordionRootContext);
|
|
11
11
|
const itemProps = use(AccordionItemContext);
|
|
12
12
|
const { element, children,...rest } = props;
|
|
@@ -18,5 +18,5 @@ function AccordionIndicator(props) {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
//#endregion
|
|
21
|
-
export {
|
|
22
|
-
//# sourceMappingURL=indicator.js.map
|
|
21
|
+
export { ItemIndicator as default };
|
|
22
|
+
//# sourceMappingURL=item-indicator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item-indicator.js","names":[],"sources":["../../../../src/components/accordion/anatomy/item-indicator.tsx"],"sourcesContent":["import { AccordionItemContext } from '../modules/item-context';\nimport { AccordionRootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesAccordion } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\nimport type { PropsWithChildren } from 'react';\n\nexport interface AccordionItemIndicatorProps extends PropsWithChildren, PropsWithElement<'div'>, HTMLAttributes<'div'> {}\n\nexport default function ItemIndicator(props: AccordionItemIndicatorProps) {\n\tconst accordion = use(AccordionRootContext);\n\tconst itemProps = use(AccordionItemContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(accordion.getItemIndicatorProps(itemProps), rest, {\n\t\tclassName: classesAccordion.indicator,\n\t});\n\n\treturn element ? element(attributes) : <div {...attributes}>{children}</div>;\n}\n"],"mappings":";;;;;;;;AAWA,SAAwB,cAAc,OAAoC;CACzE,MAAM,YAAY,IAAI,qBAAqB;CAC3C,MAAM,YAAY,IAAI,qBAAqB;CAE3C,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,UAAU,sBAAsB,UAAU,EAAE,MAAM,EAC/E,WAAW,iBAAiB,WAC5B,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAI,GAAI;EAAa;GAAe"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react224 from "react";
|
|
4
|
+
import { PropsWithChildren } from "react";
|
|
5
|
+
import * as react_jsx_runtime68 from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/accordion/anatomy/item-trigger.d.ts
|
|
8
|
+
interface AccordionItemTriggerProps extends PropsWithChildren, PropsWithElement<'button'>, HTMLAttributes<'button'> {}
|
|
9
|
+
declare function ItemTrigger(props: AccordionItemTriggerProps): string | number | bigint | boolean | Iterable<react224.ReactNode> | Promise<string | number | bigint | boolean | react224.ReactPortal | react224.ReactElement<unknown, string | react224.JSXElementConstructor<any>> | Iterable<react224.ReactNode> | null | undefined> | react_jsx_runtime68.JSX.Element | null | undefined;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { AccordionItemTriggerProps, ItemTrigger };
|
|
12
|
+
//# sourceMappingURL=item-trigger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item-trigger.d.ts","names":[],"sources":["../../../../src/components/accordion/anatomy/item-trigger.tsx"],"sourcesContent":[],"mappings":";;;;;;;UASiB,yBAAA,SAAkC,mBAAmB,4BAA4B;iBAE1E,WAAA,QAAmB,iEAAyB,SAAA,QAAA,CAAA,SAAA,IAAA,6CAAA,QAAA,CAAA,WAAA,GAAA,QAAA,CAAA,+BAAA,QAAA,CAAA,8BAAA,SAAA,QAAA,CAAA,SAAA,wBAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { AccordionItemContext } from "../modules/item-context.js";
|
|
2
2
|
import { AccordionRootContext } from "../modules/root-context.js";
|
|
3
|
-
import { classesAccordion } from "@skeletonlabs/skeleton-common";
|
|
4
|
-
import { mergeProps } from "@zag-js/react";
|
|
5
3
|
import { use } from "react";
|
|
4
|
+
import { mergeProps } from "@zag-js/react";
|
|
5
|
+
import { classesAccordion } from "@skeletonlabs/skeleton-common";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
|
|
8
|
-
//#region src/components/accordion/anatomy/trigger.tsx
|
|
9
|
-
function
|
|
8
|
+
//#region src/components/accordion/anatomy/item-trigger.tsx
|
|
9
|
+
function ItemTrigger(props) {
|
|
10
10
|
const accordion = use(AccordionRootContext);
|
|
11
11
|
const itemProps = use(AccordionItemContext);
|
|
12
12
|
const { element, children,...rest } = props;
|
|
@@ -18,5 +18,5 @@ function AccordionTrigger(props) {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
//#endregion
|
|
21
|
-
export {
|
|
22
|
-
//# sourceMappingURL=trigger.js.map
|
|
21
|
+
export { ItemTrigger as default };
|
|
22
|
+
//# sourceMappingURL=item-trigger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item-trigger.js","names":[],"sources":["../../../../src/components/accordion/anatomy/item-trigger.tsx"],"sourcesContent":["import { AccordionItemContext } from '../modules/item-context';\nimport { AccordionRootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesAccordion } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\nimport type { PropsWithChildren } from 'react';\n\nexport interface AccordionItemTriggerProps extends PropsWithChildren, PropsWithElement<'button'>, HTMLAttributes<'button'> {}\n\nexport default function ItemTrigger(props: AccordionItemTriggerProps) {\n\tconst accordion = use(AccordionRootContext);\n\tconst itemProps = use(AccordionItemContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(accordion.getItemTriggerProps(itemProps), rest, {\n\t\tclassName: classesAccordion.trigger,\n\t});\n\n\treturn element ? element(attributes) : <button {...attributes}>{children}</button>;\n}\n"],"mappings":";;;;;;;;AAWA,SAAwB,YAAY,OAAkC;CACrE,MAAM,YAAY,IAAI,qBAAqB;CAC3C,MAAM,YAAY,IAAI,qBAAqB;CAE3C,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,UAAU,oBAAoB,UAAU,EAAE,MAAM,EAC7E,WAAW,iBAAiB,SAC5B,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAO,GAAI;EAAa;GAAkB"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
3
|
import { PropsWithChildren } from "react";
|
|
4
|
-
import * as react_jsx_runtime32 from "react/jsx-runtime";
|
|
5
4
|
import { ItemProps } from "@zag-js/accordion";
|
|
5
|
+
import * as react_jsx_runtime65 from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/components/accordion/anatomy/item.d.ts
|
|
8
8
|
interface AccordionItemProps extends ItemProps, PropsWithChildren, PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
9
|
-
declare function
|
|
9
|
+
declare function Item(props: AccordionItemProps): react_jsx_runtime65.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
|
-
export {
|
|
11
|
+
export { AccordionItemProps, Item };
|
|
12
12
|
//# sourceMappingURL=item.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.d.ts","names":[],"sources":["../../../../src/components/accordion/anatomy/item.tsx"],"sourcesContent":[],"mappings":";;;;;;;UAWiB,kBAAA,SAA2B,WAAW,mBAAmB,yBAAyB;iBAE3E,
|
|
1
|
+
{"version":3,"file":"item.d.ts","names":[],"sources":["../../../../src/components/accordion/anatomy/item.tsx"],"sourcesContent":[],"mappings":";;;;;;;UAWiB,kBAAA,SAA2B,WAAW,mBAAmB,yBAAyB;iBAE3E,IAAA,QAAY,qBAAkB,mBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { AccordionItemContext } from "../modules/item-context.js";
|
|
2
2
|
import { AccordionRootContext } from "../modules/root-context.js";
|
|
3
|
-
import { classesAccordion } from "@skeletonlabs/skeleton-common";
|
|
4
|
-
import { mergeProps } from "@zag-js/react";
|
|
5
3
|
import { use } from "react";
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
4
|
import { splitItemProps } from "@zag-js/accordion";
|
|
5
|
+
import { mergeProps } from "@zag-js/react";
|
|
6
|
+
import { classesAccordion } from "@skeletonlabs/skeleton-common";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
|
|
9
9
|
//#region src/components/accordion/anatomy/item.tsx
|
|
10
|
-
function
|
|
10
|
+
function Item(props) {
|
|
11
11
|
const accordion = use(AccordionRootContext);
|
|
12
12
|
const [itemProps, componentProps] = splitItemProps(props);
|
|
13
13
|
const { element, children,...rest } = componentProps;
|
|
@@ -22,5 +22,5 @@ function AccordionItem(props) {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
//#endregion
|
|
25
|
-
export {
|
|
25
|
+
export { Item as default };
|
|
26
26
|
//# sourceMappingURL=item.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.js","names":[],"sources":["../../../../src/components/accordion/anatomy/item.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"item.js","names":[],"sources":["../../../../src/components/accordion/anatomy/item.tsx"],"sourcesContent":["import { AccordionItemContext } from '../modules/item-context';\nimport { AccordionRootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesAccordion } from '@skeletonlabs/skeleton-common';\nimport { splitItemProps } from '@zag-js/accordion';\nimport type { ItemProps } from '@zag-js/accordion';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\nimport type { PropsWithChildren } from 'react';\n\nexport interface AccordionItemProps extends ItemProps, PropsWithChildren, PropsWithElement<'div'>, HTMLAttributes<'div'> {}\n\nexport default function Item(props: AccordionItemProps) {\n\tconst accordion = use(AccordionRootContext);\n\n\tconst [itemProps, componentProps] = splitItemProps(props);\n\tconst { element, children, ...rest } = componentProps;\n\n\tconst attributes = mergeProps(accordion.getItemProps(itemProps), rest, {\n\t\tclassName: classesAccordion.item,\n\t});\n\n\treturn (\n\t\t<AccordionItemContext.Provider value={itemProps}>\n\t\t\t{element ? element(attributes) : <div {...attributes}>{children}</div>}\n\t\t</AccordionItemContext.Provider>\n\t);\n}\n"],"mappings":";;;;;;;;;AAaA,SAAwB,KAAK,OAA2B;CACvD,MAAM,YAAY,IAAI,qBAAqB;CAE3C,MAAM,CAAC,WAAW,kBAAkB,eAAe,MAAM;CACzD,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,UAAU,aAAa,UAAU,EAAE,MAAM,EACtE,WAAW,iBAAiB,MAC5B,CAAC;AAEF,QACC,oBAAC,qBAAqB;EAAS,OAAO;YACpC,UAAU,QAAQ,WAAW,GAAG,oBAAC;GAAI,GAAI;GAAa;IAAe;GACvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root-context.js","names":[],"sources":["../../../../src/components/accordion/anatomy/root-context.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"root-context.js","names":[],"sources":["../../../../src/components/accordion/anatomy/root-context.tsx"],"sourcesContent":["import { AccordionRootContext } from '../modules/root-context';\nimport type { useAccordion } from '../modules/use-accordion';\nimport { use } from 'react';\nimport type { ReactNode } from 'react';\n\nexport interface AccordionRootContextProps {\n\tchildren: (accordion: ReturnType<typeof useAccordion>) => ReactNode;\n}\n\nexport default function RootContext(props: AccordionRootContextProps) {\n\tconst accordion = use(AccordionRootContext);\n\n\tconst { children } = props;\n\n\treturn children(accordion);\n}\n"],"mappings":";;;;AASA,SAAwB,YAAY,OAAkC;CACrE,MAAM,YAAY,IAAI,qBAAqB;CAE3C,MAAM,EAAE,aAAa;AAErB,QAAO,SAAS,UAAU"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
3
|
import { useAccordion } from "../modules/use-accordion.js";
|
|
4
|
-
import "react/jsx-runtime";
|
|
4
|
+
import * as react_jsx_runtime67 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/accordion/anatomy/root-provider.d.ts
|
|
7
7
|
interface AccordionRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {
|
|
8
8
|
value: ReturnType<typeof useAccordion>;
|
|
9
9
|
}
|
|
10
|
+
declare function RootProvider(props: AccordionRootProviderProps): react_jsx_runtime67.JSX.Element;
|
|
10
11
|
//#endregion
|
|
11
|
-
export { AccordionRootProviderProps };
|
|
12
|
+
export { AccordionRootProviderProps, RootProvider };
|
|
12
13
|
//# sourceMappingURL=root-provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root-provider.d.ts","names":[],"sources":["../../../../src/components/accordion/anatomy/root-provider.tsx"],"sourcesContent":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"root-provider.d.ts","names":[],"sources":["../../../../src/components/accordion/anatomy/root-provider.tsx"],"sourcesContent":[],"mappings":";;;;;;UAOiB,0BAAA,SAAmC,yBAAyB;SACrE,kBAAkB;;AADT,iBAIO,YAAA,CAJoB,KAAA,EAIA,0BAJA,CAAA,EAI0B,mBAAA,CAAA,GAAA,CAAA,OAJ1B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AccordionRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { mergeProps } from "@zag-js/react";
|
|
3
|
+
import { classesAccordion } from "@skeletonlabs/skeleton-common";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/accordion/anatomy/root-provider.tsx
|
|
7
|
+
function RootProvider(props) {
|
|
8
|
+
const { element, children, value: accordion,...rest } = props;
|
|
9
|
+
const attributes = mergeProps(accordion.getRootProps(), rest, { className: classesAccordion.root });
|
|
10
|
+
return /* @__PURE__ */ jsx(AccordionRootContext.Provider, {
|
|
11
|
+
value: accordion,
|
|
12
|
+
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
13
|
+
...attributes,
|
|
14
|
+
children
|
|
15
|
+
})
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { RootProvider as default };
|
|
21
|
+
//# sourceMappingURL=root-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-provider.js","names":[],"sources":["../../../../src/components/accordion/anatomy/root-provider.tsx"],"sourcesContent":["import { AccordionRootContext } from '../modules/root-context';\nimport type { useAccordion } from '../modules/use-accordion';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesAccordion } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\n\nexport interface AccordionRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {\n\tvalue: ReturnType<typeof useAccordion>;\n}\n\nexport default function RootProvider(props: AccordionRootProviderProps) {\n\tconst { element, children, value: accordion, ...rest } = props;\n\n\tconst attributes = mergeProps(accordion.getRootProps(), rest, {\n\t\tclassName: classesAccordion.root,\n\t});\n\n\treturn (\n\t\t<AccordionRootContext.Provider value={accordion}>\n\t\t\t{element ? element(attributes) : <div {...attributes}>{children}</div>}\n\t\t</AccordionRootContext.Provider>\n\t);\n}\n"],"mappings":";;;;;;AAWA,SAAwB,aAAa,OAAmC;CACvE,MAAM,EAAE,SAAS,UAAU,OAAO,UAAW,GAAG,SAAS;CAEzD,MAAM,aAAa,WAAW,UAAU,cAAc,EAAE,MAAM,EAC7D,WAAW,iBAAiB,MAC5B,CAAC;AAEF,QACC,oBAAC,qBAAqB;EAAS,OAAO;YACpC,UAAU,QAAQ,WAAW,GAAG,oBAAC;GAAI,GAAI;GAAa;IAAe;GACvC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as react_jsx_runtime33 from "react/jsx-runtime";
|
|
4
3
|
import { Props } from "@zag-js/accordion";
|
|
4
|
+
import * as react_jsx_runtime66 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/accordion/anatomy/root.d.ts
|
|
7
7
|
interface AccordionRootProps extends Omit<Props, 'id'>, PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {}
|
|
8
|
-
declare function
|
|
8
|
+
declare function Root(props: AccordionRootProps): react_jsx_runtime66.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
|
-
export {
|
|
10
|
+
export { AccordionRootProps, Root };
|
|
11
11
|
//# sourceMappingURL=root.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root.d.ts","names":[],"sources":["../../../../src/components/accordion/anatomy/root.tsx"],"sourcesContent":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"root.d.ts","names":[],"sources":["../../../../src/components/accordion/anatomy/root.tsx"],"sourcesContent":[],"mappings":";;;;;;UASiB,kBAAA,SACR,KAAK,cACZ,yBACA;iBAEsB,IAAA,QAAY,qBAAkB,mBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { AccordionRootContext } from "../modules/root-context.js";
|
|
2
1
|
import { useAccordion } from "../modules/use-accordion.js";
|
|
3
|
-
import {
|
|
2
|
+
import { AccordionRootContext } from "../modules/root-context.js";
|
|
3
|
+
import { splitProps } from "@zag-js/accordion";
|
|
4
4
|
import { mergeProps } from "@zag-js/react";
|
|
5
|
+
import { classesAccordion } from "@skeletonlabs/skeleton-common";
|
|
5
6
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
import { splitProps } from "@zag-js/accordion";
|
|
7
7
|
|
|
8
8
|
//#region src/components/accordion/anatomy/root.tsx
|
|
9
|
-
function
|
|
9
|
+
function Root(props) {
|
|
10
10
|
const [accordionProps, componentProps] = splitProps(props);
|
|
11
11
|
const { element, children,...rest } = componentProps;
|
|
12
12
|
const accordion = useAccordion(accordionProps);
|
|
@@ -21,5 +21,5 @@ function AccordionRoot(props) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
//#endregion
|
|
24
|
-
export {
|
|
24
|
+
export { Root as default };
|
|
25
25
|
//# sourceMappingURL=root.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root.js","names":[],"sources":["../../../../src/components/accordion/anatomy/root.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"root.js","names":[],"sources":["../../../../src/components/accordion/anatomy/root.tsx"],"sourcesContent":["import { AccordionRootContext } from '../modules/root-context';\nimport { useAccordion } from '../modules/use-accordion';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesAccordion } from '@skeletonlabs/skeleton-common';\nimport { splitProps } from '@zag-js/accordion';\nimport type { Props } from '@zag-js/accordion';\nimport { mergeProps } from '@zag-js/react';\n\nexport interface AccordionRootProps\n\textends Omit<Props, 'id'>,\n\t\tPropsWithElement<'div'>,\n\t\tHTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {}\n\nexport default function Root(props: AccordionRootProps) {\n\tconst [accordionProps, componentProps] = splitProps(props);\n\tconst { element, children, ...rest } = componentProps;\n\n\tconst accordion = useAccordion(accordionProps);\n\n\tconst attributes = mergeProps(accordion.getRootProps(), rest, {\n\t\tclassName: classesAccordion.root,\n\t});\n\n\treturn (\n\t\t<AccordionRootContext.Provider value={accordion}>\n\t\t\t{element ? element(attributes) : <div {...attributes}>{children}</div>}\n\t\t</AccordionRootContext.Provider>\n\t);\n}\n"],"mappings":";;;;;;;;AAcA,SAAwB,KAAK,OAA2B;CACvD,MAAM,CAAC,gBAAgB,kBAAkB,WAAW,MAAM;CAC1D,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,YAAY,aAAa,eAAe;CAE9C,MAAM,aAAa,WAAW,UAAU,cAAc,EAAE,MAAM,EAC7D,WAAW,iBAAiB,MAC5B,CAAC;AAEF,QACC,oBAAC,qBAAqB;EAAS,OAAO;YACpC,UAAU,QAAQ,WAAW,GAAG,oBAAC;GAAI,GAAI;GAAa;IAAe;GACvC"}
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { ItemContent } from "../anatomy/item-content.js";
|
|
2
|
+
import { ItemHeading } from "../anatomy/item-heading.js";
|
|
3
|
+
import { ItemIndicator } from "../anatomy/item-indicator.js";
|
|
4
|
+
import { Item } from "../anatomy/item.js";
|
|
5
|
+
import { Root } from "../anatomy/root.js";
|
|
6
6
|
import { RootContext } from "../anatomy/root-context.js";
|
|
7
|
-
import {
|
|
7
|
+
import { RootProvider } from "../anatomy/root-provider.js";
|
|
8
|
+
import { ItemTrigger } from "../anatomy/item-trigger.js";
|
|
8
9
|
|
|
9
10
|
//#region src/components/accordion/modules/anatomy.d.ts
|
|
10
|
-
declare const Accordion: typeof
|
|
11
|
+
declare const Accordion: typeof Root & {
|
|
12
|
+
Provider: typeof RootProvider;
|
|
11
13
|
Context: typeof RootContext;
|
|
12
|
-
Item: typeof
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
Item: typeof Item;
|
|
15
|
+
ItemHeading: typeof ItemHeading;
|
|
16
|
+
ItemTrigger: typeof ItemTrigger;
|
|
17
|
+
ItemIndicator: typeof ItemIndicator;
|
|
18
|
+
ItemContent: typeof ItemContent;
|
|
17
19
|
};
|
|
18
20
|
//#endregion
|
|
19
21
|
export { Accordion };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anatomy.d.ts","names":[],"sources":["../../../../src/components/accordion/modules/anatomy.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"anatomy.d.ts","names":[],"sources":["../../../../src/components/accordion/modules/anatomy.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;cASa,kBAAS;;EAAT,OAAA,EAAA,kBAQX;EAAA,IAAA,EAAA,WAAA;aARoB,EAAA,kBAAA"}
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import Item from "../anatomy/item.js";
|
|
2
|
+
import ItemContent from "../anatomy/item-content.js";
|
|
3
|
+
import ItemHeading from "../anatomy/item-heading.js";
|
|
4
|
+
import ItemIndicator from "../anatomy/item-indicator.js";
|
|
5
|
+
import ItemTrigger from "../anatomy/item-trigger.js";
|
|
6
|
+
import Root from "../anatomy/root.js";
|
|
6
7
|
import RootContext from "../anatomy/root-context.js";
|
|
7
|
-
import
|
|
8
|
+
import RootProvider from "../anatomy/root-provider.js";
|
|
8
9
|
|
|
9
10
|
//#region src/components/accordion/modules/anatomy.ts
|
|
10
|
-
const Accordion = Object.assign(
|
|
11
|
+
const Accordion = Object.assign(Root, {
|
|
12
|
+
Provider: RootProvider,
|
|
11
13
|
Context: RootContext,
|
|
12
|
-
Item
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
Item,
|
|
15
|
+
ItemHeading,
|
|
16
|
+
ItemTrigger,
|
|
17
|
+
ItemIndicator,
|
|
18
|
+
ItemContent
|
|
17
19
|
});
|
|
18
20
|
|
|
19
21
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anatomy.js","names":[
|
|
1
|
+
{"version":3,"file":"anatomy.js","names":[],"sources":["../../../../src/components/accordion/modules/anatomy.ts"],"sourcesContent":["import Item from '../anatomy/item';\nimport ItemContent from '../anatomy/item-content';\nimport ItemHeading from '../anatomy/item-heading';\nimport ItemIndicator from '../anatomy/item-indicator';\nimport ItemTrigger from '../anatomy/item-trigger';\nimport Root from '../anatomy/root';\nimport RootContext from '../anatomy/root-context';\nimport RootProvider from '../anatomy/root-provider';\n\nexport const Accordion = Object.assign(Root, {\n\tProvider: RootProvider,\n\tContext: RootContext,\n\tItem: Item,\n\tItemHeading: ItemHeading,\n\tItemTrigger: ItemTrigger,\n\tItemIndicator: ItemIndicator,\n\tItemContent: ItemContent,\n});\n"],"mappings":";;;;;;;;;;AASA,MAAa,YAAY,OAAO,OAAO,MAAM;CAC5C,UAAU;CACV,SAAS;CACH;CACO;CACA;CACE;CACF;CACb,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { createContext } from "
|
|
1
|
+
import { createContext } from "../../../internal/create-context.js";
|
|
2
2
|
|
|
3
3
|
//#region src/components/accordion/modules/item-context.ts
|
|
4
|
-
const AccordionItemContext = createContext(
|
|
4
|
+
const AccordionItemContext = createContext();
|
|
5
5
|
|
|
6
6
|
//#endregion
|
|
7
7
|
export { AccordionItemContext };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item-context.js","names":[],"sources":["../../../../src/components/accordion/modules/item-context.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"item-context.js","names":[],"sources":["../../../../src/components/accordion/modules/item-context.ts"],"sourcesContent":["import { createContext } from '@/internal/create-context';\nimport type { ItemProps } from '@zag-js/accordion';\n\nexport const AccordionItemContext = createContext<ItemProps>();\n"],"mappings":";;;AAGA,MAAa,uBAAuB,eAA0B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root-context.js","names":[],"sources":["../../../../src/components/accordion/modules/root-context.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"root-context.js","names":[],"sources":["../../../../src/components/accordion/modules/root-context.ts"],"sourcesContent":["import { useAccordion } from './use-accordion';\nimport { createContext } from '@/internal/create-context';\n\nexport const AccordionRootContext = createContext<ReturnType<typeof useAccordion>>();\n"],"mappings":";;;;AAGA,MAAa,uBAAuB,eAAgD"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Api, Props } from "@zag-js/accordion";
|
|
2
|
+
import { PropTypes } from "@zag-js/react";
|
|
2
3
|
|
|
3
4
|
//#region src/components/accordion/modules/use-accordion.d.ts
|
|
4
|
-
declare function useAccordion(props
|
|
5
|
+
declare function useAccordion(props?: Omit<Props, 'id'>): Api<PropTypes>;
|
|
5
6
|
//#endregion
|
|
6
7
|
export { useAccordion };
|
|
7
8
|
//# sourceMappingURL=use-accordion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-accordion.d.ts","names":[],"sources":["../../../../src/components/accordion/modules/use-accordion.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-accordion.d.ts","names":[],"sources":["../../../../src/components/accordion/modules/use-accordion.ts"],"sourcesContent":[],"mappings":";;;;iBAKgB,YAAA,SAAoB,KAAK,eAAoB,IAAI"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { normalizeProps, useMachine } from "@zag-js/react";
|
|
2
1
|
import { useId } from "react";
|
|
3
2
|
import { connect, machine } from "@zag-js/accordion";
|
|
3
|
+
import { normalizeProps, useMachine } from "@zag-js/react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/accordion/modules/use-accordion.ts
|
|
6
|
-
function useAccordion(props) {
|
|
6
|
+
function useAccordion(props = {}) {
|
|
7
7
|
const service = useMachine(machine, {
|
|
8
8
|
id: useId(),
|
|
9
9
|
...props
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-accordion.js","names":[],"sources":["../../../../src/components/accordion/modules/use-accordion.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"use-accordion.js","names":[],"sources":["../../../../src/components/accordion/modules/use-accordion.ts"],"sourcesContent":["import { connect, machine } from '@zag-js/accordion';\nimport type { Api, Props } from '@zag-js/accordion';\nimport { normalizeProps, useMachine, type PropTypes } from '@zag-js/react';\nimport { useId } from 'react';\n\nexport function useAccordion(props: Omit<Props, 'id'> = {}): Api<PropTypes> {\n\tconst service = useMachine(machine, {\n\t\tid: useId(),\n\t\t...props,\n\t});\n\treturn connect(service, normalizeProps);\n}\n"],"mappings":";;;;;AAKA,SAAgB,aAAa,QAA2B,EAAE,EAAkB;CAC3E,MAAM,UAAU,WAAW,SAAS;EACnC,IAAI,OAAO;EACX,GAAG;EACH,CAAC;AACF,QAAO,QAAQ,SAAS,eAAe"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as react199 from "react";
|
|
4
|
+
import * as react_jsx_runtime58 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/avatar/anatomy/fallback.d.ts
|
|
7
7
|
interface AvatarFallbackProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
|
|
8
|
-
declare function
|
|
8
|
+
declare function Fallback(props: AvatarFallbackProps): string | number | bigint | boolean | Iterable<react199.ReactNode> | Promise<string | number | bigint | boolean | react199.ReactPortal | react199.ReactElement<unknown, string | react199.JSXElementConstructor<any>> | Iterable<react199.ReactNode> | null | undefined> | react_jsx_runtime58.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
|
-
export {
|
|
10
|
+
export { AvatarFallbackProps, Fallback };
|
|
11
11
|
//# sourceMappingURL=fallback.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fallback.d.ts","names":[],"sources":["../../../../src/components/avatar/anatomy/fallback.tsx"],"sourcesContent":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"fallback.d.ts","names":[],"sources":["../../../../src/components/avatar/anatomy/fallback.tsx"],"sourcesContent":[],"mappings":";;;;;;UAOiB,mBAAA,SAA4B,0BAA0B;iBAE/C,QAAA,QAAgB,2DAAmB,SAAA,QAAA,CAAA,SAAA,IAAA,6CAAA,QAAA,CAAA,WAAA,GAAA,QAAA,CAAA,+BAAA,QAAA,CAAA,8BAAA,SAAA,QAAA,CAAA,SAAA,wBAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { AvatarRootContext } from "../modules/root-context.js";
|
|
2
|
-
import { classesAvatar } from "@skeletonlabs/skeleton-common";
|
|
3
|
-
import { mergeProps } from "@zag-js/react";
|
|
4
2
|
import { use } from "react";
|
|
3
|
+
import { mergeProps } from "@zag-js/react";
|
|
4
|
+
import { classesAvatar } from "@skeletonlabs/skeleton-common";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/components/avatar/anatomy/fallback.tsx
|
|
8
|
-
function
|
|
8
|
+
function Fallback(props) {
|
|
9
9
|
const avatar = use(AvatarRootContext);
|
|
10
10
|
const { element, children,...rest } = props;
|
|
11
11
|
const attributes = mergeProps(avatar.getFallbackProps(), rest, { className: classesAvatar.fallback });
|
|
@@ -16,5 +16,5 @@ function AvatarFallback(props) {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
//#endregion
|
|
19
|
-
export {
|
|
19
|
+
export { Fallback as default };
|
|
20
20
|
//# sourceMappingURL=fallback.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fallback.js","names":[],"sources":["../../../../src/components/avatar/anatomy/fallback.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"fallback.js","names":[],"sources":["../../../../src/components/avatar/anatomy/fallback.tsx"],"sourcesContent":["import { AvatarRootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesAvatar } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface AvatarFallbackProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}\n\nexport default function Fallback(props: AvatarFallbackProps) {\n\tconst avatar = use(AvatarRootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(avatar.getFallbackProps(), rest, {\n\t\tclassName: classesAvatar.fallback,\n\t});\n\n\treturn element ? element(attributes) : <span {...attributes}>{children}</span>;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,SAAS,OAA4B;CAC5D,MAAM,SAAS,IAAI,kBAAkB;CAErC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,OAAO,kBAAkB,EAAE,MAAM,EAC9D,WAAW,cAAc,UACzB,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAK,GAAI;EAAa;GAAgB"}
|