@skeletonlabs/skeleton-react 2.0.0-next.4 → 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} +8 -7
- 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} +4 -3
- 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} +8 -7
- 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} +8 -7
- package/dist/components/accordion/anatomy/item-trigger.js.map +1 -0
- package/dist/components/accordion/anatomy/item.d.ts +5 -4
- package/dist/components/accordion/anatomy/item.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/item.js +6 -5
- package/dist/components/accordion/anatomy/item.js.map +1 -0
- package/dist/components/accordion/anatomy/root-context.d.ts +3 -2
- package/dist/components/accordion/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/root-context.js +5 -4
- package/dist/components/accordion/anatomy/root-context.js.map +1 -0
- package/dist/components/accordion/anatomy/root-provider.d.ts +4 -2
- package/dist/components/accordion/anatomy/root-provider.d.ts.map +1 -0
- 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 +4 -3
- package/dist/components/accordion/anatomy/root.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/root.js +4 -3
- package/dist/components/accordion/anatomy/root.js.map +1 -0
- package/dist/components/accordion/modules/anatomy.d.ts +18 -15
- package/dist/components/accordion/modules/anatomy.d.ts.map +1 -0
- package/dist/components/accordion/modules/anatomy.js +18 -15
- package/dist/components/accordion/modules/anatomy.js.map +1 -0
- package/dist/components/accordion/modules/item-context.js +4 -3
- package/dist/components/accordion/modules/item-context.js.map +1 -0
- package/dist/components/accordion/modules/root-context.js +3 -1
- package/dist/components/accordion/modules/root-context.js.map +1 -0
- package/dist/components/accordion/modules/use-accordion.d.ts +5 -5
- package/dist/components/accordion/modules/use-accordion.d.ts.map +1 -0
- package/dist/components/accordion/modules/use-accordion.js +4 -3
- package/dist/components/accordion/modules/use-accordion.js.map +1 -0
- package/dist/components/avatar/anatomy/fallback.d.ts +5 -4
- package/dist/components/avatar/anatomy/fallback.d.ts.map +1 -0
- package/dist/components/avatar/anatomy/fallback.js +5 -4
- package/dist/components/avatar/anatomy/fallback.js.map +1 -0
- package/dist/components/avatar/anatomy/image.d.ts +5 -4
- package/dist/components/avatar/anatomy/image.d.ts.map +1 -0
- package/dist/components/avatar/anatomy/image.js +5 -4
- package/dist/components/avatar/anatomy/image.js.map +1 -0
- package/dist/components/avatar/anatomy/root-context.d.ts +3 -2
- package/dist/components/avatar/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/avatar/anatomy/root-context.js +5 -4
- package/dist/components/avatar/anatomy/root-context.js.map +1 -0
- package/dist/components/avatar/anatomy/root-provider.d.ts +4 -2
- package/dist/components/avatar/anatomy/root-provider.d.ts.map +1 -0
- 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 +4 -3
- package/dist/components/avatar/anatomy/root.d.ts.map +1 -0
- package/dist/components/avatar/anatomy/root.js +3 -2
- package/dist/components/avatar/anatomy/root.js.map +1 -0
- package/dist/components/avatar/index.js +1 -0
- package/dist/components/avatar/modules/anatomy.d.ts +12 -9
- package/dist/components/avatar/modules/anatomy.d.ts.map +1 -0
- package/dist/components/avatar/modules/anatomy.js +12 -9
- package/dist/components/avatar/modules/anatomy.js.map +1 -0
- package/dist/components/avatar/modules/root-context.js +2 -1
- package/dist/components/avatar/modules/root-context.js.map +1 -0
- package/dist/components/avatar/modules/use-avatar.d.ts +5 -5
- package/dist/components/avatar/modules/use-avatar.d.ts.map +1 -0
- package/dist/components/avatar/modules/use-avatar.js +4 -3
- package/dist/components/avatar/modules/use-avatar.js.map +1 -0
- package/dist/components/file-upload/anatomy/dropzone.d.ts +11 -0
- package/dist/components/file-upload/anatomy/dropzone.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/dropzone.js +20 -0
- package/dist/components/file-upload/anatomy/dropzone.js.map +1 -0
- package/dist/components/file-upload/anatomy/hidden-input.d.ts +11 -0
- package/dist/components/file-upload/anatomy/hidden-input.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/hidden-input.js +17 -0
- package/dist/components/file-upload/anatomy/hidden-input.js.map +1 -0
- package/dist/components/file-upload/anatomy/item-delete-trigger.d.ts +11 -0
- package/dist/components/file-upload/anatomy/item-delete-trigger.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/item-delete-trigger.js +22 -0
- package/dist/components/file-upload/anatomy/item-delete-trigger.js.map +1 -0
- package/dist/components/file-upload/anatomy/item-group.d.ts +11 -0
- package/dist/components/file-upload/anatomy/item-group.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/item-group.js +20 -0
- package/dist/components/file-upload/anatomy/item-group.js.map +1 -0
- package/dist/components/file-upload/anatomy/item-name.d.ts +11 -0
- package/dist/components/file-upload/anatomy/item-name.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/item-name.js +22 -0
- package/dist/components/file-upload/anatomy/item-name.js.map +1 -0
- package/dist/components/file-upload/anatomy/item-size-text.d.ts +11 -0
- package/dist/components/file-upload/anatomy/item-size-text.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/item-size-text.js +22 -0
- package/dist/components/file-upload/anatomy/item-size-text.js.map +1 -0
- package/dist/components/file-upload/anatomy/item.d.ts +11 -0
- package/dist/components/file-upload/anatomy/item.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/item.js +26 -0
- package/dist/components/file-upload/anatomy/item.js.map +1 -0
- package/dist/components/file-upload/anatomy/root-context.d.ts +11 -0
- package/dist/components/file-upload/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/root-context.js +13 -0
- package/dist/components/file-upload/anatomy/root-context.js.map +1 -0
- package/dist/components/file-upload/anatomy/root-provider.d.ts +13 -0
- package/dist/components/file-upload/anatomy/root-provider.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/root-provider.js +21 -0
- package/dist/components/file-upload/anatomy/root-provider.js.map +1 -0
- package/dist/components/file-upload/anatomy/root.d.ts +11 -0
- package/dist/components/file-upload/anatomy/root.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/root.js +25 -0
- package/dist/components/file-upload/anatomy/root.js.map +1 -0
- package/dist/components/file-upload/anatomy/trigger.d.ts +11 -0
- package/dist/components/file-upload/anatomy/trigger.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/trigger.js +20 -0
- package/dist/components/file-upload/anatomy/trigger.js.map +1 -0
- package/dist/components/file-upload/index.js +4 -0
- package/dist/components/file-upload/modules/anatomy.d.ts +28 -0
- package/dist/components/file-upload/modules/anatomy.d.ts.map +1 -0
- package/dist/components/file-upload/modules/anatomy.js +29 -0
- package/dist/components/file-upload/modules/anatomy.js.map +1 -0
- package/dist/components/file-upload/modules/item-context.js +8 -0
- package/dist/components/file-upload/modules/item-context.js.map +1 -0
- package/dist/components/file-upload/modules/root-context.js +8 -0
- package/dist/components/file-upload/modules/root-context.js.map +1 -0
- package/dist/components/file-upload/modules/use-file-upload.d.ts +8 -0
- package/dist/components/file-upload/modules/use-file-upload.d.ts.map +1 -0
- package/dist/components/file-upload/modules/use-file-upload.js +16 -0
- package/dist/components/file-upload/modules/use-file-upload.js.map +1 -0
- 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 +5 -4
- package/dist/components/progress-linear/anatomy/label.d.ts.map +1 -0
- package/dist/components/progress-linear/anatomy/label.js +5 -4
- package/dist/components/progress-linear/anatomy/label.js.map +1 -0
- package/dist/components/progress-linear/anatomy/range.d.ts +5 -4
- package/dist/components/progress-linear/anatomy/range.d.ts.map +1 -0
- package/dist/components/progress-linear/anatomy/range.js +5 -4
- package/dist/components/progress-linear/anatomy/range.js.map +1 -0
- package/dist/components/progress-linear/anatomy/root-context.d.ts +3 -2
- package/dist/components/progress-linear/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/progress-linear/anatomy/root-context.js +5 -4
- package/dist/components/progress-linear/anatomy/root-context.js.map +1 -0
- package/dist/components/progress-linear/anatomy/root-provider.d.ts +4 -3
- package/dist/components/progress-linear/anatomy/root-provider.d.ts.map +1 -0
- package/dist/components/progress-linear/anatomy/root-provider.js +3 -2
- package/dist/components/progress-linear/anatomy/root-provider.js.map +1 -0
- package/dist/components/progress-linear/anatomy/root.d.ts +4 -3
- package/dist/components/progress-linear/anatomy/root.d.ts.map +1 -0
- package/dist/components/progress-linear/anatomy/root.js +3 -2
- package/dist/components/progress-linear/anatomy/root.js.map +1 -0
- package/dist/components/progress-linear/anatomy/track.d.ts +5 -4
- package/dist/components/progress-linear/anatomy/track.d.ts.map +1 -0
- package/dist/components/progress-linear/anatomy/track.js +5 -4
- package/dist/components/progress-linear/anatomy/track.js.map +1 -0
- package/dist/components/progress-linear/modules/anatomy.d.ts +14 -13
- package/dist/components/progress-linear/modules/anatomy.d.ts.map +1 -0
- package/dist/components/progress-linear/modules/anatomy.js +14 -13
- package/dist/components/progress-linear/modules/anatomy.js.map +1 -0
- package/dist/components/progress-linear/modules/root-context.js +2 -1
- package/dist/components/progress-linear/modules/root-context.js.map +1 -0
- package/dist/components/progress-linear/modules/use-progress-linear.d.ts +5 -5
- package/dist/components/progress-linear/modules/use-progress-linear.d.ts.map +1 -0
- package/dist/components/progress-linear/modules/use-progress-linear.js +4 -3
- package/dist/components/progress-linear/modules/use-progress-linear.js.map +1 -0
- package/dist/components/rating-group/anatomy/control.d.ts +5 -4
- package/dist/components/rating-group/anatomy/control.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/control.js +5 -4
- package/dist/components/rating-group/anatomy/control.js.map +1 -0
- package/dist/components/rating-group/anatomy/hidden-input.d.ts +5 -4
- package/dist/components/rating-group/anatomy/hidden-input.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/hidden-input.js +5 -4
- package/dist/components/rating-group/anatomy/hidden-input.js.map +1 -0
- package/dist/components/rating-group/anatomy/item.d.ts +5 -4
- package/dist/components/rating-group/anatomy/item.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/item.js +9 -8
- package/dist/components/rating-group/anatomy/item.js.map +1 -0
- package/dist/components/rating-group/anatomy/label.d.ts +5 -4
- package/dist/components/rating-group/anatomy/label.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/label.js +5 -4
- package/dist/components/rating-group/anatomy/label.js.map +1 -0
- package/dist/components/rating-group/anatomy/root-context.d.ts +3 -2
- package/dist/components/rating-group/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/root-context.js +5 -4
- package/dist/components/rating-group/anatomy/root-context.js.map +1 -0
- package/dist/components/rating-group/anatomy/root-provider.d.ts +4 -3
- package/dist/components/rating-group/anatomy/root-provider.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/root-provider.js +3 -2
- package/dist/components/rating-group/anatomy/root-provider.js.map +1 -0
- package/dist/components/rating-group/anatomy/root.d.ts +4 -3
- package/dist/components/rating-group/anatomy/root.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/root.js +3 -2
- package/dist/components/rating-group/anatomy/root.js.map +1 -0
- package/dist/components/rating-group/modules/anatomy.d.ts +16 -15
- package/dist/components/rating-group/modules/anatomy.d.ts.map +1 -0
- package/dist/components/rating-group/modules/anatomy.js +16 -15
- package/dist/components/rating-group/modules/anatomy.js.map +1 -0
- package/dist/components/rating-group/modules/root-context.js +2 -1
- package/dist/components/rating-group/modules/root-context.js.map +1 -0
- package/dist/components/rating-group/modules/use-rating-group.d.ts +5 -5
- package/dist/components/rating-group/modules/use-rating-group.d.ts.map +1 -0
- package/dist/components/rating-group/modules/use-rating-group.js +4 -3
- package/dist/components/rating-group/modules/use-rating-group.js.map +1 -0
- package/dist/components/switch/anatomy/control.d.ts +5 -4
- package/dist/components/switch/anatomy/control.d.ts.map +1 -0
- package/dist/components/switch/anatomy/control.js +5 -4
- package/dist/components/switch/anatomy/control.js.map +1 -0
- package/dist/components/switch/anatomy/hidden-input.d.ts +5 -4
- package/dist/components/switch/anatomy/hidden-input.d.ts.map +1 -0
- package/dist/components/switch/anatomy/hidden-input.js +5 -4
- package/dist/components/switch/anatomy/hidden-input.js.map +1 -0
- package/dist/components/switch/anatomy/label.d.ts +5 -4
- package/dist/components/switch/anatomy/label.d.ts.map +1 -0
- package/dist/components/switch/anatomy/label.js +5 -4
- package/dist/components/switch/anatomy/label.js.map +1 -0
- package/dist/components/switch/anatomy/root-context.d.ts +3 -2
- package/dist/components/switch/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/switch/anatomy/root-context.js +5 -4
- package/dist/components/switch/anatomy/root-context.js.map +1 -0
- package/dist/components/switch/anatomy/root-provider.d.ts +4 -2
- package/dist/components/switch/anatomy/root-provider.d.ts.map +1 -0
- 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 +4 -3
- package/dist/components/switch/anatomy/root.d.ts.map +1 -0
- package/dist/components/switch/anatomy/root.js +3 -2
- package/dist/components/switch/anatomy/root.js.map +1 -0
- package/dist/components/switch/anatomy/thumb.d.ts +5 -4
- package/dist/components/switch/anatomy/thumb.d.ts.map +1 -0
- package/dist/components/switch/anatomy/thumb.js +5 -4
- package/dist/components/switch/anatomy/thumb.js.map +1 -0
- package/dist/components/switch/modules/anatomy.d.ts +16 -13
- package/dist/components/switch/modules/anatomy.d.ts.map +1 -0
- package/dist/components/switch/modules/anatomy.js +16 -13
- package/dist/components/switch/modules/anatomy.js.map +1 -0
- package/dist/components/switch/modules/root-context.js +2 -1
- package/dist/components/switch/modules/root-context.js.map +1 -0
- package/dist/components/switch/modules/use-switch.d.ts +5 -5
- package/dist/components/switch/modules/use-switch.d.ts.map +1 -0
- package/dist/components/switch/modules/use-switch.js +4 -3
- package/dist/components/switch/modules/use-switch.js.map +1 -0
- package/dist/components/tabs/anatomy/content.d.ts +5 -4
- package/dist/components/tabs/anatomy/content.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/content.js +5 -4
- package/dist/components/tabs/anatomy/content.js.map +1 -0
- package/dist/components/tabs/anatomy/indicator.d.ts +5 -4
- package/dist/components/tabs/anatomy/indicator.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/indicator.js +5 -4
- package/dist/components/tabs/anatomy/indicator.js.map +1 -0
- package/dist/components/tabs/anatomy/list.d.ts +5 -4
- package/dist/components/tabs/anatomy/list.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/list.js +5 -4
- package/dist/components/tabs/anatomy/list.js.map +1 -0
- package/dist/components/tabs/anatomy/root-context.d.ts +3 -2
- package/dist/components/tabs/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/root-context.js +5 -4
- package/dist/components/tabs/anatomy/root-context.js.map +1 -0
- package/dist/components/tabs/anatomy/root-provider.d.ts +4 -3
- package/dist/components/tabs/anatomy/root-provider.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/root-provider.js +3 -2
- package/dist/components/tabs/anatomy/root-provider.js.map +1 -0
- package/dist/components/tabs/anatomy/root.d.ts +4 -3
- package/dist/components/tabs/anatomy/root.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/root.js +3 -2
- package/dist/components/tabs/anatomy/root.js.map +1 -0
- package/dist/components/tabs/anatomy/trigger.d.ts +5 -4
- package/dist/components/tabs/anatomy/trigger.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/trigger.js +5 -4
- package/dist/components/tabs/anatomy/trigger.js.map +1 -0
- package/dist/components/tabs/modules/anatomy.d.ts +16 -15
- package/dist/components/tabs/modules/anatomy.d.ts.map +1 -0
- package/dist/components/tabs/modules/anatomy.js +16 -15
- package/dist/components/tabs/modules/anatomy.js.map +1 -0
- package/dist/components/tabs/modules/root-context.js +2 -1
- package/dist/components/tabs/modules/root-context.js.map +1 -0
- package/dist/components/tabs/modules/use-tabs.d.ts +5 -5
- package/dist/components/tabs/modules/use-tabs.d.ts.map +1 -0
- package/dist/components/tabs/modules/use-tabs.js +4 -3
- package/dist/components/tabs/modules/use-tabs.js.map +1 -0
- 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 +5 -4
- package/dist/components/toast/anatomy/action-trigger.d.ts.map +1 -0
- package/dist/components/toast/anatomy/action-trigger.js +5 -4
- package/dist/components/toast/anatomy/action-trigger.js.map +1 -0
- package/dist/components/toast/anatomy/close-trigger.d.ts +5 -4
- package/dist/components/toast/anatomy/close-trigger.d.ts.map +1 -0
- package/dist/components/toast/anatomy/close-trigger.js +7 -6
- package/dist/components/toast/anatomy/close-trigger.js.map +1 -0
- package/dist/components/toast/anatomy/description.d.ts +5 -4
- package/dist/components/toast/anatomy/description.d.ts.map +1 -0
- package/dist/components/toast/anatomy/description.js +5 -4
- package/dist/components/toast/anatomy/description.js.map +1 -0
- package/dist/components/toast/anatomy/group.d.ts +4 -3
- package/dist/components/toast/anatomy/group.d.ts.map +1 -0
- package/dist/components/toast/anatomy/group.js +4 -3
- package/dist/components/toast/anatomy/group.js.map +1 -0
- package/dist/components/toast/anatomy/message.d.ts +5 -4
- package/dist/components/toast/anatomy/message.d.ts.map +1 -0
- package/dist/components/toast/anatomy/message.js +3 -2
- package/dist/components/toast/anatomy/message.js.map +1 -0
- package/dist/components/toast/anatomy/root-context.d.ts +5 -3
- package/dist/components/toast/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/toast/anatomy/root-context.js +5 -4
- package/dist/components/toast/anatomy/root-context.js.map +1 -0
- package/dist/components/toast/anatomy/root.d.ts +4 -3
- package/dist/components/toast/anatomy/root.d.ts.map +1 -0
- package/dist/components/toast/anatomy/root.js +7 -6
- package/dist/components/toast/anatomy/root.js.map +1 -0
- package/dist/components/toast/anatomy/title.d.ts +5 -4
- package/dist/components/toast/anatomy/title.d.ts.map +1 -0
- package/dist/components/toast/anatomy/title.js +5 -4
- package/dist/components/toast/anatomy/title.js.map +1 -0
- package/dist/components/toast/index.d.ts +4 -4
- package/dist/components/toast/modules/anatomy.d.ts +18 -17
- package/dist/components/toast/modules/anatomy.d.ts.map +1 -0
- package/dist/components/toast/modules/anatomy.js +18 -17
- package/dist/components/toast/modules/anatomy.js.map +1 -0
- package/dist/components/toast/modules/group-context.js +2 -1
- package/dist/components/toast/modules/group-context.js.map +1 -0
- package/dist/components/toast/modules/root-context.js +2 -1
- package/dist/components/toast/modules/root-context.js.map +1 -0
- 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 +80 -30
- package/dist/index.js +14 -1
- package/dist/internal/components/star-empty.js +3 -2
- package/dist/internal/components/star-empty.js.map +1 -0
- package/dist/internal/components/star-full.js +3 -2
- package/dist/internal/components/star-full.js.map +1 -0
- package/dist/internal/components/star-half.js +3 -2
- package/dist/internal/components/star-half.js.map +1 -0
- package/dist/internal/components/x.js +10 -4
- package/dist/internal/components/x.js.map +1 -0
- package/dist/internal/create-context.js +3 -2
- package/dist/internal/create-context.js.map +1 -0
- package/dist/internal/html-attributes.d.ts +2 -1
- package/dist/internal/html-attributes.d.ts.map +1 -0
- package/dist/internal/props-with-element.d.ts +2 -1
- package/dist/internal/props-with-element.d.ts.map +1 -0
- package/package.json +29 -29
- package/dist/components/accordion/anatomy/content.d.ts +0 -11
- package/dist/components/accordion/anatomy/heading.d.ts +0 -18
- package/dist/components/accordion/anatomy/indicator.d.ts +0 -11
- package/dist/components/accordion/anatomy/trigger.d.ts +0 -11
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ToastRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { use } from "react";
|
|
2
3
|
import { mergeProps } from "@zag-js/react";
|
|
3
4
|
import { classesToast } from "@skeletonlabs/skeleton-common";
|
|
4
|
-
import { useContext } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/components/toast/anatomy/action-trigger.tsx
|
|
8
|
-
function
|
|
9
|
-
const toast =
|
|
8
|
+
function ActionTrigger(props) {
|
|
9
|
+
const toast = use(ToastRootContext);
|
|
10
10
|
const { element, children,...rest } = props;
|
|
11
11
|
const attributes = mergeProps(toast.getActionTriggerProps(), rest, { className: classesToast.actionTrigger });
|
|
12
12
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
@@ -16,4 +16,5 @@ function action_trigger_default(props) {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
//#endregion
|
|
19
|
-
export {
|
|
19
|
+
export { ActionTrigger as default };
|
|
20
|
+
//# sourceMappingURL=action-trigger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-trigger.js","names":[],"sources":["../../../../src/components/toast/anatomy/action-trigger.tsx"],"sourcesContent":["import { ToastRootContext } from '../modules/root-context.js';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesToast } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface ToastActionTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}\n\nexport default function ActionTrigger(props: ToastActionTriggerProps) {\n\tconst toast = use(ToastRootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(toast.getActionTriggerProps(), rest, {\n\t\tclassName: classesToast.actionTrigger,\n\t});\n\n\treturn element ? element(attributes) : <button {...attributes}>{children}</button>;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,cAAc,OAAgC;CACrE,MAAM,QAAQ,IAAI,iBAAiB;CAEnC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,MAAM,uBAAuB,EAAE,MAAM,EAClE,WAAW,aAAa,eACxB,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAO,GAAI;EAAa;GAAkB"}
|
|
@@ -1,10 +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 react124 from "react";
|
|
4
|
+
import * as react_jsx_runtime37 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/toast/anatomy/close-trigger.d.ts
|
|
7
7
|
interface ToastCloseTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
|
|
8
|
-
declare function
|
|
8
|
+
declare function CloseTrigger(props: ToastCloseTriggerProps): string | number | bigint | boolean | Iterable<react124.ReactNode> | Promise<string | number | bigint | boolean | react124.ReactPortal | react124.ReactElement<unknown, string | react124.JSXElementConstructor<any>> | Iterable<react124.ReactNode> | null | undefined> | react_jsx_runtime37.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
|
-
export {
|
|
10
|
+
export { CloseTrigger, ToastCloseTriggerProps };
|
|
11
|
+
//# sourceMappingURL=close-trigger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"close-trigger.d.ts","names":[],"sources":["../../../../src/components/toast/anatomy/close-trigger.tsx"],"sourcesContent":[],"mappings":";;;;;;UAQiB,sBAAA,SAA+B,4BAA4B;iBAEpD,YAAA,QAAoB,8DAAsB,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,14 +1,14 @@
|
|
|
1
1
|
import { ToastRootContext } from "../modules/root-context.js";
|
|
2
|
-
import
|
|
2
|
+
import X from "../../../internal/components/x.js";
|
|
3
|
+
import { use } from "react";
|
|
3
4
|
import { mergeProps } from "@zag-js/react";
|
|
4
5
|
import { classesToast } from "@skeletonlabs/skeleton-common";
|
|
5
|
-
import { useContext } from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
|
|
8
8
|
//#region src/components/toast/anatomy/close-trigger.tsx
|
|
9
|
-
function
|
|
10
|
-
const toast =
|
|
11
|
-
const { element, children = /* @__PURE__ */ jsx(
|
|
9
|
+
function CloseTrigger(props) {
|
|
10
|
+
const toast = use(ToastRootContext);
|
|
11
|
+
const { element, children = /* @__PURE__ */ jsx(X, {}),...rest } = props;
|
|
12
12
|
const attributes = mergeProps(toast.getCloseTriggerProps(), rest, { className: classesToast.closeTrigger });
|
|
13
13
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
14
14
|
...attributes,
|
|
@@ -17,4 +17,5 @@ function close_trigger_default(props) {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
//#endregion
|
|
20
|
-
export {
|
|
20
|
+
export { CloseTrigger as default };
|
|
21
|
+
//# sourceMappingURL=close-trigger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"close-trigger.js","names":[],"sources":["../../../../src/components/toast/anatomy/close-trigger.tsx"],"sourcesContent":["import { ToastRootContext } from '../modules/root-context.js';\nimport X from '@/internal/components/x';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesToast } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface ToastCloseTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}\n\nexport default function CloseTrigger(props: ToastCloseTriggerProps) {\n\tconst toast = use(ToastRootContext);\n\n\tconst { element, children = <X />, ...rest } = props;\n\n\tconst attributes = mergeProps(toast.getCloseTriggerProps(), rest, {\n\t\tclassName: classesToast.closeTrigger,\n\t});\n\n\treturn element ? element(attributes) : <button {...attributes}>{children}</button>;\n}\n"],"mappings":";;;;;;;;AAUA,SAAwB,aAAa,OAA+B;CACnE,MAAM,QAAQ,IAAI,iBAAiB;CAEnC,MAAM,EAAE,SAAS,WAAW,oBAAC,MAAI,CAAE,GAAG,SAAS;CAE/C,MAAM,aAAa,WAAW,MAAM,sBAAsB,EAAE,MAAM,EACjE,WAAW,aAAa,cACxB,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAO,GAAI;EAAa;GAAkB"}
|
|
@@ -1,10 +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 react129 from "react";
|
|
4
|
+
import * as react_jsx_runtime38 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/toast/anatomy/description.d.ts
|
|
7
7
|
interface ToastDescriptionProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
8
|
-
declare function
|
|
8
|
+
declare function Description(props: ToastDescriptionProps): string | number | bigint | boolean | Iterable<react129.ReactNode> | Promise<string | number | bigint | boolean | react129.ReactPortal | react129.ReactElement<unknown, string | react129.JSXElementConstructor<any>> | Iterable<react129.ReactNode> | null | undefined> | react_jsx_runtime38.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
|
-
export {
|
|
10
|
+
export { Description, ToastDescriptionProps };
|
|
11
|
+
//# sourceMappingURL=description.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"description.d.ts","names":[],"sources":["../../../../src/components/toast/anatomy/description.tsx"],"sourcesContent":[],"mappings":";;;;;;UAOiB,qBAAA,SAA8B,yBAAyB;iBAEhD,WAAA,QAAmB,6DAAqB,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 { ToastRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { use } from "react";
|
|
2
3
|
import { mergeProps } from "@zag-js/react";
|
|
3
4
|
import { classesToast } from "@skeletonlabs/skeleton-common";
|
|
4
|
-
import { useContext } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/components/toast/anatomy/description.tsx
|
|
8
|
-
function
|
|
9
|
-
const toast =
|
|
8
|
+
function Description(props) {
|
|
9
|
+
const toast = use(ToastRootContext);
|
|
10
10
|
const { element, children,...rest } = props;
|
|
11
11
|
const attributes = mergeProps(toast.getDescriptionProps(), rest, { className: classesToast.description });
|
|
12
12
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -16,4 +16,5 @@ function description_default(props) {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
//#endregion
|
|
19
|
-
export {
|
|
19
|
+
export { Description as default };
|
|
20
|
+
//# sourceMappingURL=description.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"description.js","names":[],"sources":["../../../../src/components/toast/anatomy/description.tsx"],"sourcesContent":["import { ToastRootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesToast } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface ToastDescriptionProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}\n\nexport default function Description(props: ToastDescriptionProps) {\n\tconst toast = use(ToastRootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(toast.getDescriptionProps(), rest, {\n\t\tclassName: classesToast.description,\n\t});\n\n\treturn element ? element(attributes) : <div {...attributes}>{children}</div>;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,YAAY,OAA8B;CACjE,MAAM,QAAQ,IAAI,iBAAiB;CAEnC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,MAAM,qBAAqB,EAAE,MAAM,EAChE,WAAW,aAAa,aACxB,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAI,GAAI;EAAa;GAAe"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
3
|
import { JSX } from "react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime39 from "react/jsx-runtime";
|
|
5
5
|
import { Props, Store } from "@zag-js/toast";
|
|
6
6
|
|
|
7
7
|
//#region src/components/toast/anatomy/group.d.ts
|
|
@@ -9,6 +9,7 @@ interface ToastGroupProps extends PropsWithElement<'div'>, HTMLAttributes<'div',
|
|
|
9
9
|
toaster: Store;
|
|
10
10
|
children?: (toast: Props) => JSX.Element | null;
|
|
11
11
|
}
|
|
12
|
-
declare function
|
|
12
|
+
declare function Group(props: ToastGroupProps): react_jsx_runtime39.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
|
-
export {
|
|
14
|
+
export { Group, ToastGroupProps };
|
|
15
|
+
//# sourceMappingURL=group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group.d.ts","names":[],"sources":["../../../../src/components/toast/anatomy/group.tsx"],"sourcesContent":[],"mappings":";;;;;;;UAUiB,eAAA,SAAwB,yBAAyB;WACxD;qBACU,UAAU,GAAA,CAAI;AAFlC;AAAiC,iBAKT,KAAA,CALS,KAAA,EAKI,eALJ,CAAA,EAKmB,mBAAA,CAAA,GAAA,CAAA,OALnB"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ToastGroupContext } from "../modules/group-context.js";
|
|
2
|
+
import { useId } from "react";
|
|
2
3
|
import { mergeProps, normalizeProps, useMachine } from "@zag-js/react";
|
|
3
4
|
import { classesToast } from "@skeletonlabs/skeleton-common";
|
|
4
|
-
import { useId } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { group } from "@zag-js/toast";
|
|
7
7
|
|
|
8
8
|
//#region src/components/toast/anatomy/group.tsx
|
|
9
|
-
function
|
|
9
|
+
function Group(props) {
|
|
10
10
|
const { element, children, toaster,...rest } = props;
|
|
11
11
|
const service = useMachine(group.machine, {
|
|
12
12
|
id: useId(),
|
|
@@ -24,4 +24,5 @@ function group_default(props) {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
//#endregion
|
|
27
|
-
export {
|
|
27
|
+
export { Group as default };
|
|
28
|
+
//# sourceMappingURL=group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group.js","names":[],"sources":["../../../../src/components/toast/anatomy/group.tsx"],"sourcesContent":["import { ToastGroupContext } from '../modules/group-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesToast } from '@skeletonlabs/skeleton-common';\nimport { mergeProps, normalizeProps, useMachine } from '@zag-js/react';\nimport { group } from '@zag-js/toast';\nimport type { Props, Store } from '@zag-js/toast';\nimport type { JSX } from 'react';\nimport { useId } from 'react';\n\nexport interface ToastGroupProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'children'> {\n\ttoaster: Store;\n\tchildren?: (toast: Props) => JSX.Element | null;\n}\n\nexport default function Group(props: ToastGroupProps) {\n\tconst { element, children, toaster, ...rest } = props;\n\n\tconst service = useMachine(group.machine, {\n\t\tid: useId(),\n\t\tstore: toaster,\n\t});\n\tconst api = group.connect(service, normalizeProps);\n\n\tconst attributes = mergeProps(api.getGroupProps(), rest, {\n\t\tclassName: classesToast.group,\n\t});\n\n\treturn (\n\t\t<ToastGroupContext.Provider value={service}>\n\t\t\t{element ? element(attributes) : <div {...attributes}>{api.getToasts().map((toast) => children?.(toast))}</div>}\n\t\t</ToastGroupContext.Provider>\n\t);\n}\n"],"mappings":";;;;;;;;AAeA,SAAwB,MAAM,OAAwB;CACrD,MAAM,EAAE,SAAS,UAAU,QAAS,GAAG,SAAS;CAEhD,MAAM,UAAU,WAAW,MAAM,SAAS;EACzC,IAAI,OAAO;EACX,OAAO;EACP,CAAC;CACF,MAAM,MAAM,MAAM,QAAQ,SAAS,eAAe;CAElD,MAAM,aAAa,WAAW,IAAI,eAAe,EAAE,MAAM,EACxD,WAAW,aAAa,OACxB,CAAC;AAEF,QACC,oBAAC,kBAAkB;EAAS,OAAO;YACjC,UAAU,QAAQ,WAAW,GAAG,oBAAC;GAAI,GAAI;aAAa,IAAI,WAAW,CAAC,KAAK,UAAU,WAAW,MAAM,CAAC;IAAO;GACnF"}
|
|
@@ -1,10 +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 react134 from "react";
|
|
4
|
+
import * as react_jsx_runtime40 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/toast/anatomy/message.d.ts
|
|
7
7
|
interface ToastMessageProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
8
|
-
declare function
|
|
8
|
+
declare function Message(props: ToastMessageProps): string | number | bigint | boolean | Iterable<react134.ReactNode> | Promise<string | number | bigint | boolean | react134.ReactPortal | react134.ReactElement<unknown, string | react134.JSXElementConstructor<any>> | Iterable<react134.ReactNode> | null | undefined> | react_jsx_runtime40.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
|
-
export {
|
|
10
|
+
export { Message, ToastMessageProps };
|
|
11
|
+
//# sourceMappingURL=message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message.d.ts","names":[],"sources":["../../../../src/components/toast/anatomy/message.tsx"],"sourcesContent":[],"mappings":";;;;;;UAKiB,iBAAA,SAA0B,yBAAyB;iBAE5C,OAAA,QAAe,yDAAiB,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"}
|
|
@@ -3,7 +3,7 @@ import { classesToast } from "@skeletonlabs/skeleton-common";
|
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/toast/anatomy/message.tsx
|
|
6
|
-
function
|
|
6
|
+
function Message(props) {
|
|
7
7
|
const { element, children,...rest } = props;
|
|
8
8
|
const attributes = mergeProps(rest, { className: classesToast.message });
|
|
9
9
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -13,4 +13,5 @@ function message_default(props) {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
//#endregion
|
|
16
|
-
export {
|
|
16
|
+
export { Message as default };
|
|
17
|
+
//# sourceMappingURL=message.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message.js","names":[],"sources":["../../../../src/components/toast/anatomy/message.tsx"],"sourcesContent":["import type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesToast } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\n\nexport interface ToastMessageProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}\n\nexport default function Message(props: ToastMessageProps) {\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(rest, {\n\t\tclassName: classesToast.message,\n\t});\n\n\treturn element ? element(attributes) : <div {...attributes}>{children}</div>;\n}\n"],"mappings":";;;;;AAOA,SAAwB,QAAQ,OAA0B;CACzD,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,MAAM,EACnC,WAAW,aAAa,SACxB,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAI,GAAI;EAAa;GAAe"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
+
import { PropTypes } from "@zag-js/react";
|
|
2
3
|
import { Api } from "@zag-js/toast";
|
|
3
4
|
|
|
4
5
|
//#region src/components/toast/anatomy/root-context.d.ts
|
|
5
6
|
interface ToastRootContextProps {
|
|
6
|
-
children: (toast: Api) => ReactNode;
|
|
7
|
+
children: (toast: Api<PropTypes>) => ReactNode;
|
|
7
8
|
}
|
|
8
|
-
declare function
|
|
9
|
+
declare function RootContext(props: ToastRootContextProps): ReactNode;
|
|
9
10
|
//#endregion
|
|
10
|
-
export {
|
|
11
|
+
export { RootContext, ToastRootContextProps };
|
|
12
|
+
//# sourceMappingURL=root-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-context.d.ts","names":[],"sources":["../../../../src/components/toast/anatomy/root-context.tsx"],"sourcesContent":[],"mappings":";;;;;UAMiB,qBAAA;oBACE,IAAI,eAAe;AADtC;AAAsC,iBAId,WAAA,CAJc,KAAA,EAIK,qBAJL,CAAA,EAI0B,SAJ1B"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { ToastRootContext } from "../modules/root-context.js";
|
|
2
|
-
import {
|
|
2
|
+
import { use } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/toast/anatomy/root-context.tsx
|
|
5
|
-
function
|
|
6
|
-
const toast =
|
|
5
|
+
function RootContext(props) {
|
|
6
|
+
const toast = use(ToastRootContext);
|
|
7
7
|
const { children } = props;
|
|
8
8
|
return children(toast);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
//#endregion
|
|
12
|
-
export {
|
|
12
|
+
export { RootContext as default };
|
|
13
|
+
//# sourceMappingURL=root-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-context.js","names":[],"sources":["../../../../src/components/toast/anatomy/root-context.tsx"],"sourcesContent":["import { ToastRootContext } from '../modules/root-context';\nimport type { PropTypes } from '@zag-js/react';\nimport type { Api } from '@zag-js/toast';\nimport { use } from 'react';\nimport type { ReactNode } from 'react';\n\nexport interface ToastRootContextProps {\n\tchildren: (toast: Api<PropTypes>) => ReactNode;\n}\n\nexport default function RootContext(props: ToastRootContextProps) {\n\tconst toast = use(ToastRootContext);\n\n\tconst { children } = props;\n\n\treturn children(toast);\n}\n"],"mappings":";;;;AAUA,SAAwB,YAAY,OAA8B;CACjE,MAAM,QAAQ,IAAI,iBAAiB;CAEnC,MAAM,EAAE,aAAa;AAErB,QAAO,SAAS,MAAM"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime41 from "react/jsx-runtime";
|
|
4
4
|
import { Options } from "@zag-js/toast";
|
|
5
5
|
|
|
6
6
|
//#region src/components/toast/anatomy/root.d.ts
|
|
7
7
|
interface ToastRootProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir'> {
|
|
8
8
|
toast: Omit<Options, 'id' | 'parent'>;
|
|
9
9
|
}
|
|
10
|
-
declare function
|
|
10
|
+
declare function Root(props: ToastRootProps): react_jsx_runtime41.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
|
-
export {
|
|
12
|
+
export { Root, ToastRootProps };
|
|
13
|
+
//# sourceMappingURL=root.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root.d.ts","names":[],"sources":["../../../../src/components/toast/anatomy/root.tsx"],"sourcesContent":[],"mappings":";;;;;;UAUiB,cAAA,SAAuB,yBAAyB;SACzD,KAAK;;AADI,iBAIO,IAAA,CAJQ,KAAA,EAII,cAJJ,CAAA,EAIkB,mBAAA,CAAA,GAAA,CAAA,OAJlB"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ToastRootContext } from "../modules/root-context.js";
|
|
2
2
|
import { ToastGroupContext } from "../modules/group-context.js";
|
|
3
|
+
import { use, useId } from "react";
|
|
3
4
|
import { mergeProps, normalizeProps, useMachine } from "@zag-js/react";
|
|
4
5
|
import { classesToast } from "@skeletonlabs/skeleton-common";
|
|
5
|
-
import {
|
|
6
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { connect, machine } from "@zag-js/toast";
|
|
8
8
|
|
|
9
9
|
//#region src/components/toast/anatomy/root.tsx
|
|
10
|
-
function
|
|
11
|
-
const group$1 =
|
|
10
|
+
function Root(props) {
|
|
11
|
+
const group$1 = use(ToastGroupContext);
|
|
12
12
|
const { element, children, toast: toastProps,...rest } = props;
|
|
13
13
|
const service = useMachine(machine, {
|
|
14
14
|
id: useId(),
|
|
@@ -17,7 +17,7 @@ function root_default(props) {
|
|
|
17
17
|
});
|
|
18
18
|
const toast = connect(service, normalizeProps);
|
|
19
19
|
const attributes = mergeProps(toast.getRootProps(), rest, { className: classesToast.root });
|
|
20
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs(ToastRootContext.Provider, {
|
|
20
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs(ToastRootContext.Provider, {
|
|
21
21
|
value: toast,
|
|
22
22
|
children: [
|
|
23
23
|
/* @__PURE__ */ jsx("div", { ...toast.getGhostBeforeProps() }),
|
|
@@ -54,4 +54,5 @@ function root_default(props) {
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
//#endregion
|
|
57
|
-
export {
|
|
57
|
+
export { Root as default };
|
|
58
|
+
//# sourceMappingURL=root.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root.js","names":["group"],"sources":["../../../../src/components/toast/anatomy/root.tsx"],"sourcesContent":["import { ToastGroupContext } from '../modules/group-context';\nimport { ToastRootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesToast } from '@skeletonlabs/skeleton-common';\nimport { mergeProps, normalizeProps, useMachine } from '@zag-js/react';\nimport { connect, machine } from '@zag-js/toast';\nimport type { Options } from '@zag-js/toast';\nimport { use, useId } from 'react';\n\nexport interface ToastRootProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir'> {\n\ttoast: Omit<Options, 'id' | 'parent'>;\n}\n\nexport default function Root(props: ToastRootProps) {\n\tconst group = use(ToastGroupContext);\n\n\tconst { element, children, toast: toastProps, ...rest } = props;\n\n\tconst service = useMachine(machine, {\n\t\tid: useId(),\n\t\tparent: group,\n\t\t...toastProps,\n\t});\n\tconst toast = connect(service, normalizeProps);\n\n\tconst attributes = mergeProps(toast.getRootProps(), rest, {\n\t\tclassName: classesToast.root,\n\t});\n\n\treturn (\n\t\t<>\n\t\t\t<ToastRootContext.Provider value={toast}>\n\t\t\t\t<div {...toast.getGhostBeforeProps()} />\n\t\t\t\t{element ? element(attributes) : <div {...attributes}>{children}</div>}\n\t\t\t\t<div {...toast.getGhostAfterProps()} />\n\t\t\t</ToastRootContext.Provider>\n\t\t\t<style>{`\n [data-part='root'] {\n translate: var(--x) var(--y);\n scale: var(--scale);\n z-index: var(--z-index);\n height: var(--height);\t\n opacity: var(--opacity);\n will-change: translate, opacity, scale;\n }\n [data-part='root'] {\n transition:\n translate 400ms,\n scale 400ms,\n opacity 400ms;\n transition-timing-function: cubic-bezier(0.21, 1.02, 0.73, 1);\n }\n [data-part='root'][data-state='closed'] {\n transition:\n translate 400ms,\n scale 400ms,\n opacity 200ms;\n transition-timing-function: cubic-bezier(0.06, 0.71, 0.55, 1);\n }\n `}</style>\n\t\t</>\n\t);\n}\n"],"mappings":";;;;;;;;;AAcA,SAAwB,KAAK,OAAuB;CACnD,MAAMA,UAAQ,IAAI,kBAAkB;CAEpC,MAAM,EAAE,SAAS,UAAU,OAAO,WAAY,GAAG,SAAS;CAE1D,MAAM,UAAU,WAAW,SAAS;EACnC,IAAI,OAAO;EACX,QAAQA;EACR,GAAG;EACH,CAAC;CACF,MAAM,QAAQ,QAAQ,SAAS,eAAe;CAE9C,MAAM,aAAa,WAAW,MAAM,cAAc,EAAE,MAAM,EACzD,WAAW,aAAa,MACxB,CAAC;AAEF,QACC,8CACC,qBAAC,iBAAiB;EAAS,OAAO;;GACjC,oBAAC,SAAI,GAAI,MAAM,qBAAqB,GAAI;GACvC,UAAU,QAAQ,WAAW,GAAG,oBAAC;IAAI,GAAI;IAAa;KAAe;GACtE,oBAAC,SAAI,GAAI,MAAM,oBAAoB,GAAI;;GACZ,EAC5B,oBAAC,qBAAO;;;;;;;;;;;;;;;;;;;;;;;gBAuBW,IACjB"}
|
|
@@ -1,10 +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 react139 from "react";
|
|
4
|
+
import * as react_jsx_runtime42 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/toast/anatomy/title.d.ts
|
|
7
7
|
interface ToastTitleProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
8
|
-
declare function
|
|
8
|
+
declare function Title(props: ToastTitleProps): string | number | bigint | boolean | Iterable<react139.ReactNode> | Promise<string | number | bigint | boolean | react139.ReactPortal | react139.ReactElement<unknown, string | react139.JSXElementConstructor<any>> | Iterable<react139.ReactNode> | null | undefined> | react_jsx_runtime42.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
|
-
export {
|
|
10
|
+
export { Title, ToastTitleProps };
|
|
11
|
+
//# sourceMappingURL=title.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"title.d.ts","names":[],"sources":["../../../../src/components/toast/anatomy/title.tsx"],"sourcesContent":[],"mappings":";;;;;;UAOiB,eAAA,SAAwB,yBAAyB;iBAE1C,KAAA,QAAa,uDAAe,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 { ToastRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { use } from "react";
|
|
2
3
|
import { mergeProps } from "@zag-js/react";
|
|
3
4
|
import { classesToast } from "@skeletonlabs/skeleton-common";
|
|
4
|
-
import { useContext } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/components/toast/anatomy/title.tsx
|
|
8
|
-
function
|
|
9
|
-
const toast =
|
|
8
|
+
function Title(props) {
|
|
9
|
+
const toast = use(ToastRootContext);
|
|
10
10
|
const { element, children,...rest } = props;
|
|
11
11
|
const attributes = mergeProps(toast.getTitleProps(), rest, { className: classesToast.title });
|
|
12
12
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -16,4 +16,5 @@ function title_default(props) {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
//#endregion
|
|
19
|
-
export {
|
|
19
|
+
export { Title as default };
|
|
20
|
+
//# sourceMappingURL=title.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"title.js","names":[],"sources":["../../../../src/components/toast/anatomy/title.tsx"],"sourcesContent":["import { ToastRootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesToast } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface ToastTitleProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}\n\nexport default function Title(props: ToastTitleProps) {\n\tconst toast = use(ToastRootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(toast.getTitleProps(), rest, {\n\t\tclassName: classesToast.title,\n\t});\n\n\treturn element ? element(attributes) : <div {...attributes}>{children}</div>;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,MAAM,OAAwB;CACrD,MAAM,QAAQ,IAAI,iBAAiB;CAEnC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,MAAM,eAAe,EAAE,MAAM,EAC1D,WAAW,aAAa,OACxB,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAI,GAAI;EAAa;GAAe"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ToastCloseTriggerProps } from "./anatomy/close-trigger.js";
|
|
2
|
+
import { ToastDescriptionProps } from "./anatomy/description.js";
|
|
3
3
|
import { ToastGroupProps } from "./anatomy/group.js";
|
|
4
4
|
import { ToastMessageProps } from "./anatomy/message.js";
|
|
5
|
+
import { ToastRootProps } from "./anatomy/root.js";
|
|
6
|
+
import { ToastRootContextProps } from "./anatomy/root-context.js";
|
|
5
7
|
import { ToastTitleProps } from "./anatomy/title.js";
|
|
6
|
-
import { ToastDescriptionProps } from "./anatomy/description.js";
|
|
7
|
-
import { ToastCloseTriggerProps } from "./anatomy/close-trigger.js";
|
|
8
8
|
import { Toast } from "./modules/anatomy.js";
|
|
9
9
|
import { createStore as createToaster } from "@zag-js/toast";
|
|
10
10
|
export { createToaster };
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { CloseTrigger } from "../anatomy/close-trigger.js";
|
|
2
|
+
import { Description } from "../anatomy/description.js";
|
|
3
|
+
import { Group } from "../anatomy/group.js";
|
|
4
|
+
import { Message } from "../anatomy/message.js";
|
|
5
|
+
import { Root } from "../anatomy/root.js";
|
|
6
|
+
import { RootContext } from "../anatomy/root-context.js";
|
|
7
|
+
import { Title } from "../anatomy/title.js";
|
|
8
|
+
import { ActionTrigger } from "../anatomy/action-trigger.js";
|
|
9
9
|
|
|
10
10
|
//#region src/components/toast/modules/anatomy.d.ts
|
|
11
|
-
declare const Toast: typeof
|
|
12
|
-
Context: typeof
|
|
13
|
-
Group: typeof
|
|
14
|
-
Message: typeof
|
|
15
|
-
Title: typeof
|
|
16
|
-
Description: typeof
|
|
17
|
-
ActionTrigger: typeof
|
|
18
|
-
CloseTrigger: typeof
|
|
11
|
+
declare const Toast: typeof Root & {
|
|
12
|
+
Context: typeof RootContext;
|
|
13
|
+
Group: typeof Group;
|
|
14
|
+
Message: typeof Message;
|
|
15
|
+
Title: typeof Title;
|
|
16
|
+
Description: typeof Description;
|
|
17
|
+
ActionTrigger: typeof ActionTrigger;
|
|
18
|
+
CloseTrigger: typeof CloseTrigger;
|
|
19
19
|
};
|
|
20
20
|
//#endregion
|
|
21
|
-
export { Toast };
|
|
21
|
+
export { Toast };
|
|
22
|
+
//# sourceMappingURL=anatomy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anatomy.d.ts","names":[],"sources":["../../../../src/components/toast/modules/anatomy.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;cASa,cAAK;;EAAL,KAAA,EAAA,YAQX;EAAA,OAAA,EAAA,cAAA;OARgB,EAAA,YAAA"}
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
1
|
+
import ActionTrigger from "../anatomy/action-trigger.js";
|
|
2
|
+
import CloseTrigger from "../anatomy/close-trigger.js";
|
|
3
|
+
import Description from "../anatomy/description.js";
|
|
4
|
+
import Group from "../anatomy/group.js";
|
|
5
|
+
import Message from "../anatomy/message.js";
|
|
6
|
+
import Root from "../anatomy/root.js";
|
|
7
|
+
import RootContext from "../anatomy/root-context.js";
|
|
8
|
+
import Title from "../anatomy/title.js";
|
|
9
9
|
|
|
10
10
|
//#region src/components/toast/modules/anatomy.ts
|
|
11
|
-
const Toast = Object.assign(
|
|
12
|
-
Context:
|
|
13
|
-
Group
|
|
14
|
-
Message
|
|
15
|
-
Title
|
|
16
|
-
Description
|
|
17
|
-
ActionTrigger
|
|
18
|
-
CloseTrigger
|
|
11
|
+
const Toast = Object.assign(Root, {
|
|
12
|
+
Context: RootContext,
|
|
13
|
+
Group,
|
|
14
|
+
Message,
|
|
15
|
+
Title,
|
|
16
|
+
Description,
|
|
17
|
+
ActionTrigger,
|
|
18
|
+
CloseTrigger
|
|
19
19
|
});
|
|
20
20
|
|
|
21
21
|
//#endregion
|
|
22
|
-
export { Toast };
|
|
22
|
+
export { Toast };
|
|
23
|
+
//# sourceMappingURL=anatomy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anatomy.js","names":[],"sources":["../../../../src/components/toast/modules/anatomy.ts"],"sourcesContent":["import ActionTrigger from '../anatomy/action-trigger';\nimport CloseTrigger from '../anatomy/close-trigger';\nimport Description from '../anatomy/description';\nimport Group from '../anatomy/group';\nimport Message from '../anatomy/message';\nimport Root from '../anatomy/root';\nimport RootContext from '../anatomy/root-context';\nimport Title from '../anatomy/title';\n\nexport const Toast = Object.assign(Root, {\n\tContext: RootContext,\n\tGroup: Group,\n\tMessage: Message,\n\tTitle: Title,\n\tDescription: Description,\n\tActionTrigger: ActionTrigger,\n\tCloseTrigger: CloseTrigger,\n});\n"],"mappings":";;;;;;;;;;AASA,MAAa,QAAQ,OAAO,OAAO,MAAM;CACxC,SAAS;CACF;CACE;CACF;CACM;CACE;CACD;CACd,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group-context.js","names":[],"sources":["../../../../src/components/toast/modules/group-context.ts"],"sourcesContent":["import { createContext } from '@/internal/create-context';\nimport type { GroupService } from '@zag-js/toast';\n\nexport const ToastGroupContext = createContext<GroupService>();\n"],"mappings":";;;AAGA,MAAa,oBAAoB,eAA6B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-context.js","names":[],"sources":["../../../../src/components/toast/modules/root-context.ts"],"sourcesContent":["import { createContext } from '@/internal/create-context';\nimport type { PropTypes } from '@zag-js/react';\nimport type { Api } from '@zag-js/toast';\n\nexport const ToastRootContext = createContext<Api<PropTypes>>();\n"],"mappings":";;;AAIA,MAAa,mBAAmB,eAA+B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react24 from "react";
|
|
4
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/tooltip/anatomy/arrow-tip.d.ts
|
|
7
|
+
interface TooltipArrowTipProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
8
|
+
declare function ArrowTip(props: TooltipArrowTipProps): string | number | bigint | boolean | Iterable<react24.ReactNode> | Promise<string | number | bigint | boolean | react24.ReactPortal | react24.ReactElement<unknown, string | react24.JSXElementConstructor<any>> | Iterable<react24.ReactNode> | null | undefined> | react_jsx_runtime6.JSX.Element | null | undefined;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { ArrowTip, TooltipArrowTipProps };
|
|
11
|
+
//# sourceMappingURL=arrow-tip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arrow-tip.d.ts","names":[],"sources":["../../../../src/components/tooltip/anatomy/arrow-tip.tsx"],"sourcesContent":[],"mappings":";;;;;;UAOiB,oBAAA,SAA6B,yBAAyB;iBAE/C,QAAA,QAAgB,4DAAoB,SAAA,OAAA,CAAA,SAAA,IAAA,6CAAA,OAAA,CAAA,WAAA,GAAA,OAAA,CAAA,+BAAA,OAAA,CAAA,8BAAA,SAAA,OAAA,CAAA,SAAA,wBAAA,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { TooltipRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { use } from "react";
|
|
3
|
+
import { mergeProps } from "@zag-js/react";
|
|
4
|
+
import { classesTooltip } from "@skeletonlabs/skeleton-common";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/tooltip/anatomy/arrow-tip.tsx
|
|
8
|
+
function ArrowTip(props) {
|
|
9
|
+
const tooltip = use(TooltipRootContext);
|
|
10
|
+
const { element, children,...rest } = props;
|
|
11
|
+
const attributes = mergeProps(tooltip.getArrowTipProps(), rest, { className: classesTooltip.arrowTip });
|
|
12
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
13
|
+
...attributes,
|
|
14
|
+
children
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { ArrowTip as default };
|
|
20
|
+
//# sourceMappingURL=arrow-tip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arrow-tip.js","names":[],"sources":["../../../../src/components/tooltip/anatomy/arrow-tip.tsx"],"sourcesContent":["import { TooltipRootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesTooltip } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface TooltipArrowTipProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}\n\nexport default function ArrowTip(props: TooltipArrowTipProps) {\n\tconst tooltip = use(TooltipRootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(tooltip.getArrowTipProps(), rest, {\n\t\tclassName: classesTooltip.arrowTip,\n\t});\n\n\treturn element ? element(attributes) : <div {...attributes}>{children}</div>;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,SAAS,OAA6B;CAC7D,MAAM,UAAU,IAAI,mBAAmB;CAEvC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,QAAQ,kBAAkB,EAAE,MAAM,EAC/D,WAAW,eAAe,UAC1B,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAI,GAAI;EAAa;GAAe"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react19 from "react";
|
|
4
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/tooltip/anatomy/arrow.d.ts
|
|
7
|
+
interface TooltipArrowProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
8
|
+
declare function Arrow(props: TooltipArrowProps): string | number | bigint | boolean | Iterable<react19.ReactNode> | Promise<string | number | bigint | boolean | react19.ReactPortal | react19.ReactElement<unknown, string | react19.JSXElementConstructor<any>> | Iterable<react19.ReactNode> | null | undefined> | react_jsx_runtime5.JSX.Element | null | undefined;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { Arrow, TooltipArrowProps };
|
|
11
|
+
//# sourceMappingURL=arrow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arrow.d.ts","names":[],"sources":["../../../../src/components/tooltip/anatomy/arrow.tsx"],"sourcesContent":[],"mappings":";;;;;;UAOiB,iBAAA,SAA0B,yBAAyB;iBAE5C,KAAA,QAAa,yDAAiB,SAAA,OAAA,CAAA,SAAA,IAAA,6CAAA,OAAA,CAAA,WAAA,GAAA,OAAA,CAAA,+BAAA,OAAA,CAAA,8BAAA,SAAA,OAAA,CAAA,SAAA,wBAAA,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|