@skeletonlabs/skeleton-react 2.0.0-next.12 → 2.0.0-next.14
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/README.md +7 -22
- package/dist/components/accordion/anatomy/item-content.d.ts +2 -3
- package/dist/components/accordion/anatomy/item-content.d.ts.map +1 -1
- package/dist/components/accordion/anatomy/item-content.js +4 -4
- package/dist/components/accordion/anatomy/item-content.js.map +1 -1
- package/dist/components/accordion/anatomy/item-heading.d.ts +2 -4
- package/dist/components/accordion/anatomy/item-heading.d.ts.map +1 -1
- package/dist/components/accordion/anatomy/item-indicator.d.ts +2 -3
- package/dist/components/accordion/anatomy/item-indicator.d.ts.map +1 -1
- package/dist/components/accordion/anatomy/item-indicator.js +4 -4
- package/dist/components/accordion/anatomy/item-indicator.js.map +1 -1
- package/dist/components/accordion/anatomy/item-trigger.d.ts +2 -3
- package/dist/components/accordion/anatomy/item-trigger.d.ts.map +1 -1
- package/dist/components/accordion/anatomy/item-trigger.js +4 -4
- package/dist/components/accordion/anatomy/item-trigger.js.map +1 -1
- package/dist/components/accordion/anatomy/item.d.ts +2 -2
- package/dist/components/accordion/anatomy/item.d.ts.map +1 -1
- package/dist/components/accordion/anatomy/item.js +4 -4
- package/dist/components/accordion/anatomy/item.js.map +1 -1
- package/dist/components/accordion/anatomy/root-context.d.ts +1 -1
- package/dist/components/accordion/anatomy/root-context.js +4 -4
- package/dist/components/accordion/anatomy/root-context.js.map +1 -1
- package/dist/components/accordion/anatomy/root-provider.d.ts +3 -3
- package/dist/components/accordion/anatomy/root-provider.d.ts.map +1 -1
- package/dist/components/accordion/anatomy/root-provider.js +2 -2
- package/dist/components/accordion/anatomy/root-provider.js.map +1 -1
- package/dist/components/accordion/anatomy/root.d.ts +2 -2
- package/dist/components/accordion/anatomy/root.d.ts.map +1 -1
- package/dist/components/accordion/anatomy/root.js +3 -3
- package/dist/components/accordion/anatomy/root.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/{use-accordion.d.ts → provider.d.ts} +2 -2
- package/dist/components/accordion/modules/provider.d.ts.map +1 -0
- package/dist/components/accordion/modules/{use-accordion.js → provider.js} +2 -2
- package/dist/components/accordion/modules/provider.js.map +1 -0
- package/dist/components/accordion/modules/root-context.js +2 -2
- package/dist/components/accordion/modules/root-context.js.map +1 -1
- package/dist/components/app-bar/anatomy/headline.d.ts +2 -3
- package/dist/components/app-bar/anatomy/headline.d.ts.map +1 -1
- package/dist/components/app-bar/anatomy/lead.d.ts +2 -3
- package/dist/components/app-bar/anatomy/lead.d.ts.map +1 -1
- package/dist/components/app-bar/anatomy/root.d.ts +2 -3
- package/dist/components/app-bar/anatomy/root.d.ts.map +1 -1
- package/dist/components/app-bar/anatomy/toolbar.d.ts +2 -3
- package/dist/components/app-bar/anatomy/toolbar.d.ts.map +1 -1
- package/dist/components/app-bar/anatomy/trail.d.ts +2 -3
- package/dist/components/app-bar/anatomy/trail.d.ts.map +1 -1
- package/dist/components/avatar/anatomy/fallback.d.ts +2 -3
- package/dist/components/avatar/anatomy/fallback.d.ts.map +1 -1
- package/dist/components/avatar/anatomy/fallback.js +2 -2
- package/dist/components/avatar/anatomy/fallback.js.map +1 -1
- package/dist/components/avatar/anatomy/image.d.ts +2 -3
- package/dist/components/avatar/anatomy/image.d.ts.map +1 -1
- package/dist/components/avatar/anatomy/image.js +2 -2
- package/dist/components/avatar/anatomy/image.js.map +1 -1
- package/dist/components/avatar/anatomy/root-context.d.ts +3 -3
- package/dist/components/avatar/anatomy/root-context.d.ts.map +1 -1
- package/dist/components/avatar/anatomy/root-context.js +4 -4
- package/dist/components/avatar/anatomy/root-context.js.map +1 -1
- package/dist/components/avatar/anatomy/root-provider.d.ts +3 -3
- package/dist/components/avatar/anatomy/root-provider.d.ts.map +1 -1
- package/dist/components/avatar/anatomy/root-provider.js +2 -2
- package/dist/components/avatar/anatomy/root-provider.js.map +1 -1
- 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 +3 -3
- package/dist/components/avatar/anatomy/root.js.map +1 -1
- package/dist/components/avatar/modules/anatomy.d.ts +2 -2
- package/dist/components/avatar/modules/anatomy.d.ts.map +1 -1
- package/dist/components/avatar/modules/anatomy.js +2 -2
- package/dist/components/avatar/modules/anatomy.js.map +1 -1
- package/dist/components/avatar/modules/{use-avatar.d.ts → provider.d.ts} +2 -2
- package/dist/components/avatar/modules/provider.d.ts.map +1 -0
- package/dist/components/avatar/modules/{use-avatar.js → provider.js} +2 -2
- package/dist/components/avatar/modules/provider.js.map +1 -0
- package/dist/components/avatar/modules/root-context.js +2 -2
- package/dist/components/avatar/modules/root-context.js.map +1 -1
- package/dist/components/combobox/anatomy/content.d.ts +2 -3
- package/dist/components/combobox/anatomy/content.d.ts.map +1 -1
- package/dist/components/combobox/anatomy/content.js +2 -2
- package/dist/components/combobox/anatomy/content.js.map +1 -1
- package/dist/components/combobox/anatomy/control.d.ts +2 -3
- package/dist/components/combobox/anatomy/control.d.ts.map +1 -1
- package/dist/components/combobox/anatomy/control.js +2 -2
- package/dist/components/combobox/anatomy/control.js.map +1 -1
- package/dist/components/combobox/anatomy/input.d.ts +2 -3
- package/dist/components/combobox/anatomy/input.d.ts.map +1 -1
- package/dist/components/combobox/anatomy/input.js +2 -2
- package/dist/components/combobox/anatomy/input.js.map +1 -1
- package/dist/components/combobox/anatomy/item-group-label.d.ts +2 -3
- package/dist/components/combobox/anatomy/item-group-label.d.ts.map +1 -1
- package/dist/components/combobox/anatomy/item-group-label.js +4 -4
- package/dist/components/combobox/anatomy/item-group-label.js.map +1 -1
- package/dist/components/combobox/anatomy/item-group.d.ts +2 -2
- package/dist/components/combobox/anatomy/item-group.d.ts.map +1 -1
- package/dist/components/combobox/anatomy/item-group.js +4 -4
- package/dist/components/combobox/anatomy/item-group.js.map +1 -1
- package/dist/components/combobox/anatomy/item-indicator.d.ts +2 -3
- package/dist/components/combobox/anatomy/item-indicator.d.ts.map +1 -1
- package/dist/components/combobox/anatomy/item-indicator.js +4 -4
- package/dist/components/combobox/anatomy/item-indicator.js.map +1 -1
- package/dist/components/combobox/anatomy/item-text.d.ts +2 -3
- package/dist/components/combobox/anatomy/item-text.d.ts.map +1 -1
- package/dist/components/combobox/anatomy/item-text.js +4 -4
- package/dist/components/combobox/anatomy/item-text.js.map +1 -1
- package/dist/components/combobox/anatomy/item.d.ts +2 -2
- package/dist/components/combobox/anatomy/item.d.ts.map +1 -1
- package/dist/components/combobox/anatomy/item.js +4 -4
- package/dist/components/combobox/anatomy/item.js.map +1 -1
- package/dist/components/combobox/anatomy/label.d.ts +2 -3
- package/dist/components/combobox/anatomy/label.d.ts.map +1 -1
- package/dist/components/combobox/anatomy/label.js +2 -2
- package/dist/components/combobox/anatomy/label.js.map +1 -1
- package/dist/components/combobox/anatomy/positioner.d.ts +2 -3
- package/dist/components/combobox/anatomy/positioner.d.ts.map +1 -1
- package/dist/components/combobox/anatomy/positioner.js +2 -2
- package/dist/components/combobox/anatomy/positioner.js.map +1 -1
- package/dist/components/combobox/anatomy/root-context.d.ts +1 -1
- package/dist/components/combobox/anatomy/root-context.js +4 -4
- package/dist/components/combobox/anatomy/root-context.js.map +1 -1
- package/dist/components/combobox/anatomy/root-provider.d.ts +3 -3
- package/dist/components/combobox/anatomy/root-provider.d.ts.map +1 -1
- package/dist/components/combobox/anatomy/root-provider.js +2 -2
- package/dist/components/combobox/anatomy/root-provider.js.map +1 -1
- package/dist/components/combobox/anatomy/root.d.ts +2 -2
- package/dist/components/combobox/anatomy/root.d.ts.map +1 -1
- package/dist/components/combobox/anatomy/root.js +3 -3
- package/dist/components/combobox/anatomy/root.js.map +1 -1
- package/dist/components/combobox/anatomy/trigger.d.ts +2 -3
- package/dist/components/combobox/anatomy/trigger.d.ts.map +1 -1
- package/dist/components/combobox/anatomy/trigger.js +2 -2
- package/dist/components/combobox/anatomy/trigger.js.map +1 -1
- package/dist/components/combobox/modules/item-context.js +2 -2
- package/dist/components/combobox/modules/item-context.js.map +1 -1
- package/dist/components/combobox/modules/item-group-context.js +2 -2
- package/dist/components/combobox/modules/item-group-context.js.map +1 -1
- package/dist/components/combobox/modules/{use-combobox.d.ts → provider.d.ts} +2 -2
- package/dist/components/combobox/modules/provider.d.ts.map +1 -0
- package/dist/components/combobox/modules/{use-combobox.js → provider.js} +2 -2
- package/dist/components/combobox/modules/provider.js.map +1 -0
- package/dist/components/combobox/modules/root-context.js +2 -2
- package/dist/components/combobox/modules/root-context.js.map +1 -1
- package/dist/components/dialog/anatomy/backdrop.d.ts +2 -3
- package/dist/components/dialog/anatomy/backdrop.d.ts.map +1 -1
- package/dist/components/dialog/anatomy/backdrop.js +2 -2
- package/dist/components/dialog/anatomy/backdrop.js.map +1 -1
- package/dist/components/dialog/anatomy/close-trigger.d.ts +2 -3
- package/dist/components/dialog/anatomy/close-trigger.d.ts.map +1 -1
- package/dist/components/dialog/anatomy/close-trigger.js +2 -2
- package/dist/components/dialog/anatomy/close-trigger.js.map +1 -1
- package/dist/components/dialog/anatomy/content.d.ts +2 -3
- package/dist/components/dialog/anatomy/content.d.ts.map +1 -1
- package/dist/components/dialog/anatomy/content.js +2 -2
- package/dist/components/dialog/anatomy/content.js.map +1 -1
- package/dist/components/dialog/anatomy/description.d.ts +2 -3
- package/dist/components/dialog/anatomy/description.d.ts.map +1 -1
- package/dist/components/dialog/anatomy/description.js +2 -2
- package/dist/components/dialog/anatomy/description.js.map +1 -1
- package/dist/components/dialog/anatomy/positioner.d.ts +2 -3
- package/dist/components/dialog/anatomy/positioner.d.ts.map +1 -1
- package/dist/components/dialog/anatomy/positioner.js +2 -2
- package/dist/components/dialog/anatomy/positioner.js.map +1 -1
- package/dist/components/dialog/anatomy/root-context.d.ts +1 -1
- package/dist/components/dialog/anatomy/root-context.js +4 -4
- package/dist/components/dialog/anatomy/root-context.js.map +1 -1
- package/dist/components/dialog/anatomy/root-provider.d.ts +3 -3
- package/dist/components/dialog/anatomy/root-provider.d.ts.map +1 -1
- package/dist/components/dialog/anatomy/root-provider.js +2 -2
- package/dist/components/dialog/anatomy/root-provider.js.map +1 -1
- package/dist/components/dialog/anatomy/root.d.ts +2 -2
- package/dist/components/dialog/anatomy/root.d.ts.map +1 -1
- package/dist/components/dialog/anatomy/root.js +3 -3
- package/dist/components/dialog/anatomy/root.js.map +1 -1
- package/dist/components/dialog/anatomy/title.d.ts +2 -3
- package/dist/components/dialog/anatomy/title.d.ts.map +1 -1
- package/dist/components/dialog/anatomy/title.js +2 -2
- package/dist/components/dialog/anatomy/title.js.map +1 -1
- package/dist/components/dialog/anatomy/trigger.d.ts +2 -3
- package/dist/components/dialog/anatomy/trigger.d.ts.map +1 -1
- package/dist/components/dialog/anatomy/trigger.js +2 -2
- package/dist/components/dialog/anatomy/trigger.js.map +1 -1
- package/dist/components/dialog/modules/{use-dialog.d.ts → provider.d.ts} +2 -2
- package/dist/components/dialog/modules/provider.d.ts.map +1 -0
- package/dist/components/dialog/modules/{use-dialog.js → provider.js} +2 -2
- package/dist/components/dialog/modules/provider.js.map +1 -0
- package/dist/components/dialog/modules/root-context.js +2 -2
- package/dist/components/dialog/modules/root-context.js.map +1 -1
- package/dist/components/file-upload/anatomy/dropzone.d.ts +2 -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 +2 -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 +2 -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 +6 -6
- package/dist/components/file-upload/anatomy/item-delete-trigger.js.map +1 -1
- package/dist/components/file-upload/anatomy/item-group.d.ts +2 -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 +2 -3
- package/dist/components/file-upload/anatomy/item-name.d.ts.map +1 -1
- package/dist/components/file-upload/anatomy/item-name.js +4 -4
- package/dist/components/file-upload/anatomy/item-name.js.map +1 -1
- package/dist/components/file-upload/anatomy/item-size-text.d.ts +2 -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 +4 -4
- 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.js +4 -4
- package/dist/components/file-upload/anatomy/item.js.map +1 -1
- package/dist/components/file-upload/anatomy/root-context.d.ts +1 -1
- package/dist/components/file-upload/anatomy/root-context.js +4 -4
- package/dist/components/file-upload/anatomy/root-context.js.map +1 -1
- package/dist/components/file-upload/anatomy/root-provider.d.ts +3 -3
- package/dist/components/file-upload/anatomy/root-provider.js +2 -2
- 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.js +3 -3
- package/dist/components/file-upload/anatomy/root.js.map +1 -1
- package/dist/components/file-upload/anatomy/trigger.d.ts +2 -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 +2 -2
- package/dist/components/file-upload/modules/item-context.js.map +1 -1
- package/dist/components/file-upload/modules/{use-file-upload.d.ts → provider.d.ts} +2 -2
- package/dist/components/file-upload/modules/provider.d.ts.map +1 -0
- package/dist/components/file-upload/modules/{use-file-upload.js → provider.js} +2 -2
- package/dist/components/file-upload/modules/provider.js.map +1 -0
- package/dist/components/file-upload/modules/root-context.js +2 -2
- package/dist/components/file-upload/modules/root-context.js.map +1 -1
- package/dist/components/popover/anatomy/arrow-tip.d.ts +2 -3
- package/dist/components/popover/anatomy/arrow-tip.d.ts.map +1 -1
- package/dist/components/popover/anatomy/arrow-tip.js +2 -2
- package/dist/components/popover/anatomy/arrow-tip.js.map +1 -1
- package/dist/components/popover/anatomy/arrow.d.ts +2 -3
- package/dist/components/popover/anatomy/arrow.d.ts.map +1 -1
- package/dist/components/popover/anatomy/arrow.js +2 -2
- package/dist/components/popover/anatomy/arrow.js.map +1 -1
- package/dist/components/popover/anatomy/close-trigger.d.ts +2 -3
- package/dist/components/popover/anatomy/close-trigger.d.ts.map +1 -1
- package/dist/components/popover/anatomy/close-trigger.js +2 -2
- package/dist/components/popover/anatomy/close-trigger.js.map +1 -1
- package/dist/components/popover/anatomy/content.d.ts +2 -3
- package/dist/components/popover/anatomy/content.d.ts.map +1 -1
- package/dist/components/popover/anatomy/content.js +2 -2
- package/dist/components/popover/anatomy/content.js.map +1 -1
- package/dist/components/popover/anatomy/description.d.ts +2 -3
- package/dist/components/popover/anatomy/description.d.ts.map +1 -1
- package/dist/components/popover/anatomy/description.js +2 -2
- package/dist/components/popover/anatomy/description.js.map +1 -1
- package/dist/components/popover/anatomy/positioner.d.ts +2 -2
- package/dist/components/popover/anatomy/positioner.d.ts.map +1 -1
- package/dist/components/popover/anatomy/positioner.js +6 -7
- package/dist/components/popover/anatomy/positioner.js.map +1 -1
- package/dist/components/popover/anatomy/root-context.d.ts +1 -1
- package/dist/components/popover/anatomy/root-context.js +4 -4
- package/dist/components/popover/anatomy/root-context.js.map +1 -1
- package/dist/components/popover/anatomy/root-provider.d.ts +3 -3
- package/dist/components/popover/anatomy/root-provider.d.ts.map +1 -1
- package/dist/components/popover/anatomy/root-provider.js +2 -2
- package/dist/components/popover/anatomy/root-provider.js.map +1 -1
- package/dist/components/popover/anatomy/root.d.ts +2 -2
- package/dist/components/popover/anatomy/root.d.ts.map +1 -1
- package/dist/components/popover/anatomy/root.js +3 -3
- package/dist/components/popover/anatomy/root.js.map +1 -1
- package/dist/components/popover/anatomy/title.d.ts +2 -3
- package/dist/components/popover/anatomy/title.d.ts.map +1 -1
- package/dist/components/popover/anatomy/title.js +2 -2
- package/dist/components/popover/anatomy/title.js.map +1 -1
- package/dist/components/popover/anatomy/trigger.d.ts +2 -3
- package/dist/components/popover/anatomy/trigger.d.ts.map +1 -1
- package/dist/components/popover/anatomy/trigger.js +2 -2
- package/dist/components/popover/anatomy/trigger.js.map +1 -1
- package/dist/components/popover/modules/{use-popover.d.ts → provider.d.ts} +2 -2
- package/dist/components/popover/modules/provider.d.ts.map +1 -0
- package/dist/components/popover/modules/{use-popover.js → provider.js} +2 -2
- package/dist/components/popover/modules/provider.js.map +1 -0
- package/dist/components/popover/modules/root-context.js +2 -2
- package/dist/components/popover/modules/root-context.js.map +1 -1
- package/dist/components/portal/anatomy/root.d.ts +22 -0
- package/dist/components/portal/anatomy/root.d.ts.map +1 -0
- package/dist/components/portal/anatomy/root.js +14 -0
- package/dist/components/portal/anatomy/root.js.map +1 -0
- package/dist/components/portal/modules/anatomy.d.ts +7 -0
- package/dist/components/portal/modules/anatomy.d.ts.map +1 -0
- package/dist/components/portal/modules/anatomy.js +8 -0
- package/dist/components/portal/modules/anatomy.js.map +1 -0
- package/dist/components/progress-linear/anatomy/label.d.ts +2 -3
- package/dist/components/progress-linear/anatomy/label.d.ts.map +1 -1
- package/dist/components/progress-linear/anatomy/label.js +2 -2
- package/dist/components/progress-linear/anatomy/label.js.map +1 -1
- package/dist/components/progress-linear/anatomy/range.d.ts +2 -3
- package/dist/components/progress-linear/anatomy/range.d.ts.map +1 -1
- package/dist/components/progress-linear/anatomy/range.js +2 -2
- package/dist/components/progress-linear/anatomy/range.js.map +1 -1
- package/dist/components/progress-linear/anatomy/root-context.d.ts +1 -1
- package/dist/components/progress-linear/anatomy/root-context.js +4 -4
- 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.js +2 -2
- package/dist/components/progress-linear/anatomy/root-provider.js.map +1 -1
- package/dist/components/progress-linear/anatomy/root.d.ts +2 -2
- 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 +2 -3
- package/dist/components/progress-linear/anatomy/track.d.ts.map +1 -1
- package/dist/components/progress-linear/anatomy/track.js +2 -2
- package/dist/components/progress-linear/anatomy/track.js.map +1 -1
- package/dist/components/progress-linear/modules/{use-progress-linear.d.ts → provider.d.ts} +2 -2
- package/dist/components/progress-linear/modules/provider.d.ts.map +1 -0
- package/dist/components/progress-linear/modules/{use-progress-linear.js → provider.js} +2 -2
- package/dist/components/progress-linear/modules/provider.js.map +1 -0
- package/dist/components/progress-linear/modules/root-context.js +2 -2
- package/dist/components/progress-linear/modules/root-context.js.map +1 -1
- package/dist/components/rating-group/anatomy/control.d.ts +2 -3
- package/dist/components/rating-group/anatomy/control.d.ts.map +1 -1
- package/dist/components/rating-group/anatomy/control.js +2 -2
- package/dist/components/rating-group/anatomy/control.js.map +1 -1
- package/dist/components/rating-group/anatomy/hidden-input.d.ts +2 -3
- package/dist/components/rating-group/anatomy/hidden-input.d.ts.map +1 -1
- package/dist/components/rating-group/anatomy/hidden-input.js +2 -2
- package/dist/components/rating-group/anatomy/hidden-input.js.map +1 -1
- package/dist/components/rating-group/anatomy/item.d.ts +2 -3
- package/dist/components/rating-group/anatomy/item.d.ts.map +1 -1
- package/dist/components/rating-group/anatomy/item.js +2 -2
- package/dist/components/rating-group/anatomy/item.js.map +1 -1
- package/dist/components/rating-group/anatomy/label.d.ts +2 -3
- package/dist/components/rating-group/anatomy/label.d.ts.map +1 -1
- package/dist/components/rating-group/anatomy/label.js +2 -2
- package/dist/components/rating-group/anatomy/label.js.map +1 -1
- package/dist/components/rating-group/anatomy/root-context.d.ts +1 -1
- package/dist/components/rating-group/anatomy/root-context.js +4 -4
- 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.js +2 -2
- package/dist/components/rating-group/anatomy/root-provider.js.map +1 -1
- package/dist/components/rating-group/anatomy/root.d.ts +2 -2
- 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/{use-rating-group.d.ts → provider.d.ts} +2 -2
- package/dist/components/rating-group/modules/provider.d.ts.map +1 -0
- package/dist/components/rating-group/modules/{use-rating-group.js → provider.js} +2 -2
- package/dist/components/rating-group/modules/provider.js.map +1 -0
- package/dist/components/rating-group/modules/root-context.js +2 -2
- package/dist/components/rating-group/modules/root-context.js.map +1 -1
- package/dist/components/segmented-control/anatomy/indicator.d.ts +2 -3
- package/dist/components/segmented-control/anatomy/indicator.d.ts.map +1 -1
- package/dist/components/segmented-control/anatomy/indicator.js +2 -2
- package/dist/components/segmented-control/anatomy/indicator.js.map +1 -1
- package/dist/components/segmented-control/anatomy/item-hidden-input.d.ts +2 -3
- package/dist/components/segmented-control/anatomy/item-hidden-input.d.ts.map +1 -1
- package/dist/components/segmented-control/anatomy/item-hidden-input.js +4 -4
- package/dist/components/segmented-control/anatomy/item-hidden-input.js.map +1 -1
- package/dist/components/segmented-control/anatomy/item-text.d.ts +2 -3
- package/dist/components/segmented-control/anatomy/item-text.d.ts.map +1 -1
- package/dist/components/segmented-control/anatomy/item-text.js +4 -4
- package/dist/components/segmented-control/anatomy/item-text.js.map +1 -1
- package/dist/components/segmented-control/anatomy/item.d.ts +2 -2
- package/dist/components/segmented-control/anatomy/item.js +4 -4
- package/dist/components/segmented-control/anatomy/item.js.map +1 -1
- package/dist/components/segmented-control/anatomy/root-context.d.ts +1 -1
- package/dist/components/segmented-control/anatomy/root-context.js +4 -4
- package/dist/components/segmented-control/anatomy/root-context.js.map +1 -1
- package/dist/components/segmented-control/anatomy/root-provider.d.ts +3 -3
- package/dist/components/segmented-control/anatomy/root-provider.js +2 -2
- package/dist/components/segmented-control/anatomy/root-provider.js.map +1 -1
- package/dist/components/segmented-control/anatomy/root.d.ts +2 -2
- package/dist/components/segmented-control/anatomy/root.js +3 -3
- package/dist/components/segmented-control/anatomy/root.js.map +1 -1
- package/dist/components/segmented-control/modules/item-context.js +2 -2
- package/dist/components/segmented-control/modules/item-context.js.map +1 -1
- package/dist/components/segmented-control/modules/{use-segmented-control.d.ts → provider.d.ts} +2 -2
- package/dist/components/segmented-control/modules/provider.d.ts.map +1 -0
- package/dist/components/segmented-control/modules/{use-segmented-control.js → provider.js} +2 -2
- package/dist/components/segmented-control/modules/provider.js.map +1 -0
- package/dist/components/segmented-control/modules/root-context.js +2 -2
- package/dist/components/segmented-control/modules/root-context.js.map +1 -1
- package/dist/components/slider/anatomy/control.d.ts +2 -3
- package/dist/components/slider/anatomy/control.d.ts.map +1 -1
- package/dist/components/slider/anatomy/control.js +2 -2
- package/dist/components/slider/anatomy/control.js.map +1 -1
- package/dist/components/slider/anatomy/hidden-input.d.ts +2 -3
- package/dist/components/slider/anatomy/hidden-input.d.ts.map +1 -1
- package/dist/components/slider/anatomy/hidden-input.js +4 -4
- package/dist/components/slider/anatomy/hidden-input.js.map +1 -1
- package/dist/components/slider/anatomy/label.d.ts +2 -3
- package/dist/components/slider/anatomy/label.d.ts.map +1 -1
- package/dist/components/slider/anatomy/label.js +2 -2
- package/dist/components/slider/anatomy/label.js.map +1 -1
- package/dist/components/slider/anatomy/marker-group.d.ts +2 -3
- package/dist/components/slider/anatomy/marker-group.d.ts.map +1 -1
- package/dist/components/slider/anatomy/marker-group.js +2 -2
- package/dist/components/slider/anatomy/marker-group.js.map +1 -1
- package/dist/components/slider/anatomy/marker.d.ts +2 -3
- package/dist/components/slider/anatomy/marker.d.ts.map +1 -1
- package/dist/components/slider/anatomy/marker.js +2 -2
- package/dist/components/slider/anatomy/marker.js.map +1 -1
- package/dist/components/slider/anatomy/range.d.ts +2 -3
- package/dist/components/slider/anatomy/range.d.ts.map +1 -1
- package/dist/components/slider/anatomy/range.js +2 -2
- package/dist/components/slider/anatomy/range.js.map +1 -1
- package/dist/components/slider/anatomy/root-context.d.ts +3 -3
- package/dist/components/slider/anatomy/root-context.d.ts.map +1 -1
- package/dist/components/slider/anatomy/root-context.js +4 -4
- package/dist/components/slider/anatomy/root-context.js.map +1 -1
- package/dist/components/slider/anatomy/root-provider.d.ts +3 -3
- package/dist/components/slider/anatomy/root-provider.js +2 -2
- package/dist/components/slider/anatomy/root-provider.js.map +1 -1
- package/dist/components/slider/anatomy/root.d.ts +2 -2
- package/dist/components/slider/anatomy/root.js +3 -3
- package/dist/components/slider/anatomy/root.js.map +1 -1
- package/dist/components/slider/anatomy/thumb.d.ts +2 -2
- package/dist/components/slider/anatomy/thumb.js +4 -4
- package/dist/components/slider/anatomy/thumb.js.map +1 -1
- package/dist/components/slider/anatomy/track.d.ts +2 -3
- package/dist/components/slider/anatomy/track.d.ts.map +1 -1
- package/dist/components/slider/anatomy/track.js +2 -2
- package/dist/components/slider/anatomy/track.js.map +1 -1
- package/dist/components/slider/anatomy/value-text.d.ts +2 -3
- package/dist/components/slider/anatomy/value-text.d.ts.map +1 -1
- package/dist/components/slider/anatomy/value-text.js +2 -2
- package/dist/components/slider/anatomy/value-text.js.map +1 -1
- package/dist/components/slider/modules/anatomy.d.ts +2 -2
- package/dist/components/slider/modules/anatomy.d.ts.map +1 -1
- package/dist/components/slider/modules/anatomy.js +2 -2
- package/dist/components/slider/modules/anatomy.js.map +1 -1
- package/dist/components/slider/modules/{use-slider.d.ts → provider.d.ts} +2 -2
- package/dist/components/slider/modules/provider.d.ts.map +1 -0
- package/dist/components/slider/modules/{use-slider.js → provider.js} +2 -2
- package/dist/components/slider/modules/provider.js.map +1 -0
- package/dist/components/slider/modules/root-context.js +2 -2
- package/dist/components/slider/modules/root-context.js.map +1 -1
- package/dist/components/slider/modules/thumb-context.js +2 -2
- package/dist/components/slider/modules/thumb-context.js.map +1 -1
- package/dist/components/switch/anatomy/control.d.ts +2 -3
- package/dist/components/switch/anatomy/control.d.ts.map +1 -1
- package/dist/components/switch/anatomy/control.js +2 -2
- package/dist/components/switch/anatomy/control.js.map +1 -1
- package/dist/components/switch/anatomy/hidden-input.d.ts +2 -3
- package/dist/components/switch/anatomy/hidden-input.d.ts.map +1 -1
- package/dist/components/switch/anatomy/hidden-input.js +2 -2
- package/dist/components/switch/anatomy/hidden-input.js.map +1 -1
- package/dist/components/switch/anatomy/label.d.ts +2 -3
- package/dist/components/switch/anatomy/label.d.ts.map +1 -1
- package/dist/components/switch/anatomy/label.js +2 -2
- package/dist/components/switch/anatomy/label.js.map +1 -1
- package/dist/components/switch/anatomy/root-context.d.ts +1 -1
- package/dist/components/switch/anatomy/root-context.js +4 -4
- package/dist/components/switch/anatomy/root-context.js.map +1 -1
- package/dist/components/switch/anatomy/root-provider.d.ts +3 -3
- package/dist/components/switch/anatomy/root-provider.js +2 -2
- package/dist/components/switch/anatomy/root-provider.js.map +1 -1
- package/dist/components/switch/anatomy/root.d.ts +2 -2
- 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 +2 -3
- package/dist/components/switch/anatomy/thumb.d.ts.map +1 -1
- package/dist/components/switch/anatomy/thumb.js +2 -2
- package/dist/components/switch/anatomy/thumb.js.map +1 -1
- package/dist/components/switch/modules/{use-switch.d.ts → provider.d.ts} +2 -2
- package/dist/components/switch/modules/provider.d.ts.map +1 -0
- package/dist/components/switch/modules/{use-switch.js → provider.js} +2 -2
- package/dist/components/switch/modules/provider.js.map +1 -0
- package/dist/components/switch/modules/root-context.js +2 -2
- package/dist/components/switch/modules/root-context.js.map +1 -1
- package/dist/components/tabs/anatomy/content.d.ts +2 -3
- package/dist/components/tabs/anatomy/content.d.ts.map +1 -1
- package/dist/components/tabs/anatomy/content.js +2 -2
- package/dist/components/tabs/anatomy/content.js.map +1 -1
- package/dist/components/tabs/anatomy/indicator.d.ts +2 -3
- package/dist/components/tabs/anatomy/indicator.d.ts.map +1 -1
- package/dist/components/tabs/anatomy/indicator.js +2 -2
- package/dist/components/tabs/anatomy/indicator.js.map +1 -1
- package/dist/components/tabs/anatomy/list.d.ts +2 -3
- package/dist/components/tabs/anatomy/list.d.ts.map +1 -1
- package/dist/components/tabs/anatomy/list.js +2 -2
- package/dist/components/tabs/anatomy/list.js.map +1 -1
- package/dist/components/tabs/anatomy/root-context.d.ts +1 -1
- package/dist/components/tabs/anatomy/root-context.js +4 -4
- 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.js +2 -2
- package/dist/components/tabs/anatomy/root-provider.js.map +1 -1
- package/dist/components/tabs/anatomy/root.d.ts +2 -2
- 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 +2 -3
- package/dist/components/tabs/anatomy/trigger.d.ts.map +1 -1
- package/dist/components/tabs/anatomy/trigger.js +2 -2
- package/dist/components/tabs/anatomy/trigger.js.map +1 -1
- package/dist/components/tabs/modules/{use-tabs.d.ts → provider.d.ts} +2 -2
- package/dist/components/tabs/modules/provider.d.ts.map +1 -0
- package/dist/components/tabs/modules/{use-tabs.js → provider.js} +2 -2
- package/dist/components/tabs/modules/{use-tabs.js.map → provider.js.map} +1 -1
- package/dist/components/tabs/modules/root-context.js +2 -2
- package/dist/components/tabs/modules/root-context.js.map +1 -1
- package/dist/components/tags-input/anatomy/clear-trigger.d.ts +2 -3
- package/dist/components/tags-input/anatomy/clear-trigger.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/clear-trigger.js +2 -2
- package/dist/components/tags-input/anatomy/clear-trigger.js.map +1 -1
- package/dist/components/tags-input/anatomy/control.d.ts +2 -3
- package/dist/components/tags-input/anatomy/control.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/control.js +2 -2
- package/dist/components/tags-input/anatomy/control.js.map +1 -1
- package/dist/components/tags-input/anatomy/hidden-input.d.ts +2 -3
- package/dist/components/tags-input/anatomy/hidden-input.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/hidden-input.js +2 -2
- package/dist/components/tags-input/anatomy/hidden-input.js.map +1 -1
- package/dist/components/tags-input/anatomy/input.d.ts +2 -3
- package/dist/components/tags-input/anatomy/input.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/input.js +2 -2
- package/dist/components/tags-input/anatomy/input.js.map +1 -1
- package/dist/components/tags-input/anatomy/item-delete-trigger.d.ts +2 -3
- package/dist/components/tags-input/anatomy/item-delete-trigger.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/item-delete-trigger.js +6 -6
- package/dist/components/tags-input/anatomy/item-delete-trigger.js.map +1 -1
- package/dist/components/tags-input/anatomy/item-input.d.ts +2 -3
- package/dist/components/tags-input/anatomy/item-input.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/item-input.js +4 -4
- package/dist/components/tags-input/anatomy/item-input.js.map +1 -1
- package/dist/components/tags-input/anatomy/item-preview.d.ts +2 -3
- package/dist/components/tags-input/anatomy/item-preview.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/item-preview.js +4 -4
- package/dist/components/tags-input/anatomy/item-preview.js.map +1 -1
- package/dist/components/tags-input/anatomy/item-text.d.ts +2 -3
- package/dist/components/tags-input/anatomy/item-text.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/item-text.js +4 -4
- package/dist/components/tags-input/anatomy/item-text.js.map +1 -1
- package/dist/components/tags-input/anatomy/item.d.ts +2 -2
- package/dist/components/tags-input/anatomy/item.js +4 -4
- package/dist/components/tags-input/anatomy/item.js.map +1 -1
- package/dist/components/tags-input/anatomy/label.d.ts +2 -3
- package/dist/components/tags-input/anatomy/label.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/label.js +2 -2
- package/dist/components/tags-input/anatomy/label.js.map +1 -1
- package/dist/components/tags-input/anatomy/root-context.d.ts +1 -1
- package/dist/components/tags-input/anatomy/root-context.js +4 -4
- package/dist/components/tags-input/anatomy/root-context.js.map +1 -1
- package/dist/components/tags-input/anatomy/root-provider.d.ts +3 -3
- package/dist/components/tags-input/anatomy/root-provider.js +2 -2
- package/dist/components/tags-input/anatomy/root-provider.js.map +1 -1
- package/dist/components/tags-input/anatomy/root.d.ts +2 -2
- package/dist/components/tags-input/anatomy/root.js +3 -3
- package/dist/components/tags-input/anatomy/root.js.map +1 -1
- package/dist/components/tags-input/modules/item-context.js +2 -2
- package/dist/components/tags-input/modules/item-context.js.map +1 -1
- package/dist/components/tags-input/modules/{use-tags-input.d.ts → provider.d.ts} +2 -2
- package/dist/components/tags-input/modules/provider.d.ts.map +1 -0
- package/dist/components/tags-input/modules/{use-tags-input.js → provider.js} +2 -2
- package/dist/components/tags-input/modules/provider.js.map +1 -0
- package/dist/components/tags-input/modules/root-context.js +2 -2
- package/dist/components/tags-input/modules/root-context.js.map +1 -1
- package/dist/components/toast/anatomy/action-trigger.d.ts +2 -3
- package/dist/components/toast/anatomy/action-trigger.d.ts.map +1 -1
- package/dist/components/toast/anatomy/action-trigger.js +2 -2
- package/dist/components/toast/anatomy/action-trigger.js.map +1 -1
- package/dist/components/toast/anatomy/close-trigger.d.ts +2 -3
- package/dist/components/toast/anatomy/close-trigger.d.ts.map +1 -1
- package/dist/components/toast/anatomy/close-trigger.js +2 -2
- package/dist/components/toast/anatomy/close-trigger.js.map +1 -1
- package/dist/components/toast/anatomy/description.d.ts +2 -3
- package/dist/components/toast/anatomy/description.d.ts.map +1 -1
- package/dist/components/toast/anatomy/description.js +2 -2
- package/dist/components/toast/anatomy/description.js.map +1 -1
- package/dist/components/toast/anatomy/group.d.ts +2 -2
- package/dist/components/toast/anatomy/group.js +2 -2
- package/dist/components/toast/anatomy/group.js.map +1 -1
- package/dist/components/toast/anatomy/message.d.ts +2 -3
- package/dist/components/toast/anatomy/message.d.ts.map +1 -1
- package/dist/components/toast/anatomy/root-context.js +4 -4
- 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.js +5 -5
- package/dist/components/toast/anatomy/root.js.map +1 -1
- package/dist/components/toast/anatomy/title.d.ts +2 -3
- package/dist/components/toast/anatomy/title.d.ts.map +1 -1
- package/dist/components/toast/anatomy/title.js +2 -2
- package/dist/components/toast/anatomy/title.js.map +1 -1
- package/dist/components/toast/modules/group-context.js +2 -2
- package/dist/components/toast/modules/group-context.js.map +1 -1
- package/dist/components/toast/modules/root-context.js +2 -2
- package/dist/components/toast/modules/root-context.js.map +1 -1
- package/dist/components/tooltip/anatomy/arrow-tip.d.ts +2 -3
- package/dist/components/tooltip/anatomy/arrow-tip.d.ts.map +1 -1
- package/dist/components/tooltip/anatomy/arrow-tip.js +2 -2
- package/dist/components/tooltip/anatomy/arrow-tip.js.map +1 -1
- package/dist/components/tooltip/anatomy/arrow.d.ts +2 -3
- package/dist/components/tooltip/anatomy/arrow.d.ts.map +1 -1
- package/dist/components/tooltip/anatomy/arrow.js +2 -2
- package/dist/components/tooltip/anatomy/arrow.js.map +1 -1
- package/dist/components/tooltip/anatomy/content.d.ts +2 -3
- package/dist/components/tooltip/anatomy/content.d.ts.map +1 -1
- package/dist/components/tooltip/anatomy/content.js +2 -2
- package/dist/components/tooltip/anatomy/content.js.map +1 -1
- package/dist/components/tooltip/anatomy/positioner.d.ts +2 -2
- package/dist/components/tooltip/anatomy/positioner.d.ts.map +1 -1
- package/dist/components/tooltip/anatomy/positioner.js +2 -2
- package/dist/components/tooltip/anatomy/positioner.js.map +1 -1
- package/dist/components/tooltip/anatomy/root-context.d.ts +1 -1
- package/dist/components/tooltip/anatomy/root-context.js +4 -4
- package/dist/components/tooltip/anatomy/root-context.js.map +1 -1
- package/dist/components/tooltip/anatomy/root-provider.d.ts +3 -3
- package/dist/components/tooltip/anatomy/root-provider.d.ts.map +1 -1
- package/dist/components/tooltip/anatomy/root-provider.js +2 -2
- package/dist/components/tooltip/anatomy/root-provider.js.map +1 -1
- package/dist/components/tooltip/anatomy/root.d.ts +2 -2
- package/dist/components/tooltip/anatomy/root.d.ts.map +1 -1
- package/dist/components/tooltip/anatomy/root.js +3 -3
- package/dist/components/tooltip/anatomy/root.js.map +1 -1
- package/dist/components/tooltip/anatomy/trigger.d.ts +2 -3
- package/dist/components/tooltip/anatomy/trigger.d.ts.map +1 -1
- package/dist/components/tooltip/anatomy/trigger.js +2 -2
- package/dist/components/tooltip/anatomy/trigger.js.map +1 -1
- package/dist/components/tooltip/modules/{use-tooltip.d.ts → provider.d.ts} +2 -2
- package/dist/components/tooltip/modules/provider.d.ts.map +1 -0
- package/dist/components/tooltip/modules/{use-tooltip.js → provider.js} +2 -2
- package/dist/components/tooltip/modules/provider.js.map +1 -0
- package/dist/components/tooltip/modules/root-context.js +2 -2
- package/dist/components/tooltip/modules/root-context.js.map +1 -1
- package/dist/index.d.ts +17 -15
- package/dist/index.js +16 -15
- package/dist/internal/props-with-element.d.ts +2 -2
- package/dist/internal/props-with-element.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/components/accordion/modules/use-accordion.d.ts.map +0 -1
- package/dist/components/accordion/modules/use-accordion.js.map +0 -1
- package/dist/components/avatar/modules/use-avatar.d.ts.map +0 -1
- package/dist/components/avatar/modules/use-avatar.js.map +0 -1
- package/dist/components/combobox/modules/use-combobox.d.ts.map +0 -1
- package/dist/components/combobox/modules/use-combobox.js.map +0 -1
- package/dist/components/dialog/modules/use-dialog.d.ts.map +0 -1
- package/dist/components/dialog/modules/use-dialog.js.map +0 -1
- package/dist/components/file-upload/modules/use-file-upload.d.ts.map +0 -1
- package/dist/components/file-upload/modules/use-file-upload.js.map +0 -1
- package/dist/components/popover/modules/use-popover.d.ts.map +0 -1
- package/dist/components/popover/modules/use-popover.js.map +0 -1
- package/dist/components/progress-linear/modules/use-progress-linear.d.ts.map +0 -1
- package/dist/components/progress-linear/modules/use-progress-linear.js.map +0 -1
- package/dist/components/rating-group/modules/use-rating-group.d.ts.map +0 -1
- package/dist/components/rating-group/modules/use-rating-group.js.map +0 -1
- package/dist/components/segmented-control/modules/use-segmented-control.d.ts.map +0 -1
- package/dist/components/segmented-control/modules/use-segmented-control.js.map +0 -1
- package/dist/components/slider/modules/use-slider.d.ts.map +0 -1
- package/dist/components/slider/modules/use-slider.js.map +0 -1
- package/dist/components/switch/modules/use-switch.d.ts.map +0 -1
- package/dist/components/switch/modules/use-switch.js.map +0 -1
- package/dist/components/tabs/modules/use-tabs.d.ts.map +0 -1
- package/dist/components/tags-input/modules/use-tags-input.d.ts.map +0 -1
- package/dist/components/tags-input/modules/use-tags-input.js.map +0 -1
- package/dist/components/tooltip/modules/use-tooltip.d.ts.map +0 -1
- package/dist/components/tooltip/modules/use-tooltip.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backdrop.d.ts","names":[],"sources":["../../../../src/components/dialog/anatomy/backdrop.tsx"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"backdrop.d.ts","names":[],"sources":["../../../../src/components/dialog/anatomy/backdrop.tsx"],"sourcesContent":[],"mappings":";;;;;UAOiB,mBAAA,SAA4B,yBAAyB;iBAE9C,QAAA,QAAgB,sBAAmB,OAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RootContext } from "../modules/root-context.js";
|
|
2
2
|
import { use } from "react";
|
|
3
3
|
import { mergeProps } from "@zag-js/react";
|
|
4
4
|
import { classesDialog } from "@skeletonlabs/skeleton-common";
|
|
@@ -6,7 +6,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
6
6
|
|
|
7
7
|
//#region src/components/dialog/anatomy/backdrop.tsx
|
|
8
8
|
function Backdrop(props) {
|
|
9
|
-
const dialog = use(
|
|
9
|
+
const dialog = use(RootContext);
|
|
10
10
|
const { element,...rest } = props;
|
|
11
11
|
const attributes = mergeProps(dialog.getBackdropProps(), { className: classesDialog.backdrop }, rest);
|
|
12
12
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", { ...attributes });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backdrop.js","names":[],"sources":["../../../../src/components/dialog/anatomy/backdrop.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"backdrop.js","names":[],"sources":["../../../../src/components/dialog/anatomy/backdrop.tsx"],"sourcesContent":["import { RootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesDialog } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface DialogBackdropProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'children'> {}\n\nexport default function Backdrop(props: DialogBackdropProps) {\n\tconst dialog = use(RootContext);\n\n\tconst { element, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\tdialog.getBackdropProps(),\n\t\t{\n\t\t\tclassName: classesDialog.backdrop,\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <div {...attributes} />;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,SAAS,OAA4B;CAC5D,MAAM,SAAS,IAAI,YAAY;CAE/B,MAAM,EAAE,QAAS,GAAG,SAAS;CAE7B,MAAM,aAAa,WAClB,OAAO,kBAAkB,EACzB,EACC,WAAW,cAAc,UACzB,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC,SAAI,GAAI,aAAc"}
|
|
@@ -1,11 +1,10 @@
|
|
|
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 react_jsx_runtime8 from "react/jsx-runtime";
|
|
3
|
+
import * as react19 from "react";
|
|
5
4
|
|
|
6
5
|
//#region src/components/dialog/anatomy/close-trigger.d.ts
|
|
7
6
|
interface DialogCloseTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
|
|
8
|
-
declare function CloseTrigger(props: DialogCloseTriggerProps):
|
|
7
|
+
declare function CloseTrigger(props: DialogCloseTriggerProps): react19.JSX.Element;
|
|
9
8
|
//#endregion
|
|
10
9
|
export { CloseTrigger, DialogCloseTriggerProps };
|
|
11
10
|
//# sourceMappingURL=close-trigger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"close-trigger.d.ts","names":[],"sources":["../../../../src/components/dialog/anatomy/close-trigger.tsx"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"close-trigger.d.ts","names":[],"sources":["../../../../src/components/dialog/anatomy/close-trigger.tsx"],"sourcesContent":[],"mappings":";;;;;UAOiB,uBAAA,SAAgC,4BAA4B;iBAErD,YAAA,QAAoB,0BAAuB,OAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RootContext } from "../modules/root-context.js";
|
|
2
2
|
import { use } from "react";
|
|
3
3
|
import { mergeProps } from "@zag-js/react";
|
|
4
4
|
import { classesDialog } from "@skeletonlabs/skeleton-common";
|
|
@@ -6,7 +6,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
6
6
|
|
|
7
7
|
//#region src/components/dialog/anatomy/close-trigger.tsx
|
|
8
8
|
function CloseTrigger(props) {
|
|
9
|
-
const dialog = use(
|
|
9
|
+
const dialog = use(RootContext);
|
|
10
10
|
const { element, children,...rest } = props;
|
|
11
11
|
const attributes = mergeProps(dialog.getCloseTriggerProps(), { className: classesDialog.closeTrigger }, rest);
|
|
12
12
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"close-trigger.js","names":[],"sources":["../../../../src/components/dialog/anatomy/close-trigger.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"close-trigger.js","names":[],"sources":["../../../../src/components/dialog/anatomy/close-trigger.tsx"],"sourcesContent":["import { RootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesDialog } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface DialogCloseTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}\n\nexport default function CloseTrigger(props: DialogCloseTriggerProps) {\n\tconst dialog = use(RootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\tdialog.getCloseTriggerProps(),\n\t\t{\n\t\t\tclassName: classesDialog.closeTrigger,\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <button {...attributes}>{children}</button>;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,aAAa,OAAgC;CACpE,MAAM,SAAS,IAAI,YAAY;CAE/B,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAClB,OAAO,sBAAsB,EAC7B,EACC,WAAW,cAAc,cACzB,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAO,GAAI;EAAa;GAAkB"}
|
|
@@ -1,11 +1,10 @@
|
|
|
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 react_jsx_runtime9 from "react/jsx-runtime";
|
|
3
|
+
import * as react20 from "react";
|
|
5
4
|
|
|
6
5
|
//#region src/components/dialog/anatomy/content.d.ts
|
|
7
6
|
interface DialogContentProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
8
|
-
declare function Content(props: DialogContentProps):
|
|
7
|
+
declare function Content(props: DialogContentProps): react20.JSX.Element;
|
|
9
8
|
//#endregion
|
|
10
9
|
export { Content, DialogContentProps };
|
|
11
10
|
//# sourceMappingURL=content.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.d.ts","names":[],"sources":["../../../../src/components/dialog/anatomy/content.tsx"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"content.d.ts","names":[],"sources":["../../../../src/components/dialog/anatomy/content.tsx"],"sourcesContent":[],"mappings":";;;;;UAOiB,kBAAA,SAA2B,yBAAyB;iBAE7C,OAAA,QAAe,qBAAkB,OAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RootContext } from "../modules/root-context.js";
|
|
2
2
|
import { use } from "react";
|
|
3
3
|
import { mergeProps } from "@zag-js/react";
|
|
4
4
|
import { classesDialog } from "@skeletonlabs/skeleton-common";
|
|
@@ -6,7 +6,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
6
6
|
|
|
7
7
|
//#region src/components/dialog/anatomy/content.tsx
|
|
8
8
|
function Content(props) {
|
|
9
|
-
const dialog = use(
|
|
9
|
+
const dialog = use(RootContext);
|
|
10
10
|
const { element, children,...rest } = props;
|
|
11
11
|
const attributes = mergeProps(dialog.getContentProps(), { className: classesDialog.content }, rest);
|
|
12
12
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.js","names":[],"sources":["../../../../src/components/dialog/anatomy/content.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"content.js","names":[],"sources":["../../../../src/components/dialog/anatomy/content.tsx"],"sourcesContent":["import { RootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesDialog } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface DialogContentProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}\n\nexport default function Content(props: DialogContentProps) {\n\tconst dialog = use(RootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\tdialog.getContentProps(),\n\t\t{\n\t\t\tclassName: classesDialog.content,\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <div {...attributes}>{children}</div>;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,QAAQ,OAA2B;CAC1D,MAAM,SAAS,IAAI,YAAY;CAE/B,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAClB,OAAO,iBAAiB,EACxB,EACC,WAAW,cAAc,SACzB,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAI,GAAI;EAAa;GAAe"}
|
|
@@ -1,11 +1,10 @@
|
|
|
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 react_jsx_runtime10 from "react/jsx-runtime";
|
|
3
|
+
import * as react21 from "react";
|
|
5
4
|
|
|
6
5
|
//#region src/components/dialog/anatomy/description.d.ts
|
|
7
6
|
interface DialogDescriptionProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
8
|
-
declare function Description(props: DialogDescriptionProps):
|
|
7
|
+
declare function Description(props: DialogDescriptionProps): react21.JSX.Element;
|
|
9
8
|
//#endregion
|
|
10
9
|
export { Description, DialogDescriptionProps };
|
|
11
10
|
//# sourceMappingURL=description.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"description.d.ts","names":[],"sources":["../../../../src/components/dialog/anatomy/description.tsx"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"description.d.ts","names":[],"sources":["../../../../src/components/dialog/anatomy/description.tsx"],"sourcesContent":[],"mappings":";;;;;UAOiB,sBAAA,SAA+B,yBAAyB;iBAEjD,WAAA,QAAmB,yBAAsB,OAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RootContext } from "../modules/root-context.js";
|
|
2
2
|
import { use } from "react";
|
|
3
3
|
import { mergeProps } from "@zag-js/react";
|
|
4
4
|
import { classesDialog } from "@skeletonlabs/skeleton-common";
|
|
@@ -6,7 +6,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
6
6
|
|
|
7
7
|
//#region src/components/dialog/anatomy/description.tsx
|
|
8
8
|
function Description(props) {
|
|
9
|
-
const dialog = use(
|
|
9
|
+
const dialog = use(RootContext);
|
|
10
10
|
const { element, children,...rest } = props;
|
|
11
11
|
const attributes = mergeProps(dialog.getDescriptionProps(), { className: classesDialog.description }, rest);
|
|
12
12
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"description.js","names":[],"sources":["../../../../src/components/dialog/anatomy/description.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"description.js","names":[],"sources":["../../../../src/components/dialog/anatomy/description.tsx"],"sourcesContent":["import { RootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesDialog } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface DialogDescriptionProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}\n\nexport default function Description(props: DialogDescriptionProps) {\n\tconst dialog = use(RootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\tdialog.getDescriptionProps(),\n\t\t{\n\t\t\tclassName: classesDialog.description,\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <div {...attributes}>{children}</div>;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,YAAY,OAA+B;CAClE,MAAM,SAAS,IAAI,YAAY;CAE/B,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAClB,OAAO,qBAAqB,EAC5B,EACC,WAAW,cAAc,aACzB,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAI,GAAI;EAAa;GAAe"}
|
|
@@ -1,11 +1,10 @@
|
|
|
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 react_jsx_runtime11 from "react/jsx-runtime";
|
|
3
|
+
import * as react22 from "react";
|
|
5
4
|
|
|
6
5
|
//#region src/components/dialog/anatomy/positioner.d.ts
|
|
7
6
|
interface DialogPositionerProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
8
|
-
declare function Positioner(props: DialogPositionerProps):
|
|
7
|
+
declare function Positioner(props: DialogPositionerProps): react22.JSX.Element;
|
|
9
8
|
//#endregion
|
|
10
9
|
export { DialogPositionerProps, Positioner };
|
|
11
10
|
//# sourceMappingURL=positioner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"positioner.d.ts","names":[],"sources":["../../../../src/components/dialog/anatomy/positioner.tsx"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"positioner.d.ts","names":[],"sources":["../../../../src/components/dialog/anatomy/positioner.tsx"],"sourcesContent":[],"mappings":";;;;;UAOiB,qBAAA,SAA8B,yBAAyB;iBAEhD,UAAA,QAAkB,wBAAqB,OAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RootContext } from "../modules/root-context.js";
|
|
2
2
|
import { use } from "react";
|
|
3
3
|
import { mergeProps } from "@zag-js/react";
|
|
4
4
|
import { classesDialog } from "@skeletonlabs/skeleton-common";
|
|
@@ -6,7 +6,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
6
6
|
|
|
7
7
|
//#region src/components/dialog/anatomy/positioner.tsx
|
|
8
8
|
function Positioner(props) {
|
|
9
|
-
const dialog = use(
|
|
9
|
+
const dialog = use(RootContext);
|
|
10
10
|
const { element, children,...rest } = props;
|
|
11
11
|
const attributes = mergeProps(dialog.getPositionerProps(), { className: classesDialog.positioner }, rest);
|
|
12
12
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"positioner.js","names":[],"sources":["../../../../src/components/dialog/anatomy/positioner.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"positioner.js","names":[],"sources":["../../../../src/components/dialog/anatomy/positioner.tsx"],"sourcesContent":["import { RootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesDialog } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface DialogPositionerProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}\n\nexport default function Positioner(props: DialogPositionerProps) {\n\tconst dialog = use(RootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\tdialog.getPositionerProps(),\n\t\t{\n\t\t\tclassName: classesDialog.positioner,\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <div {...attributes}>{children}</div>;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,WAAW,OAA8B;CAChE,MAAM,SAAS,IAAI,YAAY;CAE/B,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAClB,OAAO,oBAAoB,EAC3B,EACC,WAAW,cAAc,YACzB,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAI,GAAI;EAAa;GAAe"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RootContext } from "../modules/root-context.js";
|
|
2
2
|
import { use } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/dialog/anatomy/root-context.tsx
|
|
5
|
-
function RootContext(props) {
|
|
6
|
-
const dialog = use(
|
|
5
|
+
function RootContext$1(props) {
|
|
6
|
+
const dialog = use(RootContext);
|
|
7
7
|
const { children } = props;
|
|
8
8
|
return children(dialog);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
//#endregion
|
|
12
|
-
export { RootContext as default };
|
|
12
|
+
export { RootContext$1 as default };
|
|
13
13
|
//# sourceMappingURL=root-context.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root-context.js","names":[],"sources":["../../../../src/components/dialog/anatomy/root-context.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"root-context.js","names":["RootContext","RootContext_"],"sources":["../../../../src/components/dialog/anatomy/root-context.tsx"],"sourcesContent":["import type { useDialog } from '../modules/provider';\nimport { RootContext as RootContext_ } from '../modules/root-context';\nimport { type ReactNode, use } from 'react';\n\nexport interface DialogRootContextProps {\n\tchildren: (dialog: ReturnType<typeof useDialog>) => ReactNode;\n}\n\nexport default function RootContext(props: DialogRootContextProps) {\n\tconst dialog = use(RootContext_);\n\n\tconst { children } = props;\n\n\treturn children(dialog);\n}\n"],"mappings":";;;;AAQA,SAAwBA,cAAY,OAA+B;CAClE,MAAM,SAAS,IAAIC,YAAa;CAEhC,MAAM,EAAE,aAAa;AAErB,QAAO,SAAS,OAAO"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { useDialog } from "../modules/
|
|
1
|
+
import { useDialog } from "../modules/provider.js";
|
|
2
2
|
import { PropsWithChildren } from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/dialog/anatomy/root-provider.d.ts
|
|
6
6
|
interface DialogRootProviderProps extends PropsWithChildren {
|
|
7
7
|
value: ReturnType<typeof useDialog>;
|
|
8
8
|
}
|
|
9
|
-
declare function RootProvider(props: DialogRootProviderProps):
|
|
9
|
+
declare function RootProvider(props: DialogRootProviderProps): react_jsx_runtime9.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { DialogRootProviderProps, RootProvider };
|
|
12
12
|
//# sourceMappingURL=root-provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root-provider.d.ts","names":[],"sources":["../../../../src/components/dialog/anatomy/root-provider.tsx"],"sourcesContent":[],"mappings":";;;;;UAIiB,uBAAA,SAAgC;SACzC,kBAAkB;;AADT,iBAIO,YAAA,CAJiB,KAAA,EAIG,uBAJH,CAAA,EAI0B,
|
|
1
|
+
{"version":3,"file":"root-provider.d.ts","names":[],"sources":["../../../../src/components/dialog/anatomy/root-provider.tsx"],"sourcesContent":[],"mappings":";;;;;UAIiB,uBAAA,SAAgC;SACzC,kBAAkB;;AADT,iBAIO,YAAA,CAJiB,KAAA,EAIG,uBAJH,CAAA,EAI0B,kBAAA,CAAA,GAAA,CAAA,OAJ1B"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RootContext } from "../modules/root-context.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/dialog/anatomy/root-provider.tsx
|
|
5
5
|
function RootProvider(props) {
|
|
6
6
|
const { children, value: dialog } = props;
|
|
7
|
-
return /* @__PURE__ */ jsx(
|
|
7
|
+
return /* @__PURE__ */ jsx(RootContext.Provider, {
|
|
8
8
|
value: dialog,
|
|
9
9
|
children
|
|
10
10
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root-provider.js","names":[],"sources":["../../../../src/components/dialog/anatomy/root-provider.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"root-provider.js","names":[],"sources":["../../../../src/components/dialog/anatomy/root-provider.tsx"],"sourcesContent":["import type { useDialog } from '../modules/provider';\nimport { RootContext } from '../modules/root-context';\nimport type { PropsWithChildren } from 'react';\n\nexport interface DialogRootProviderProps extends PropsWithChildren {\n\tvalue: ReturnType<typeof useDialog>;\n}\n\nexport default function RootProvider(props: DialogRootProviderProps) {\n\tconst { children, value: dialog } = props;\n\n\treturn <RootContext.Provider value={dialog}>{children}</RootContext.Provider>;\n}\n"],"mappings":";;;;AAQA,SAAwB,aAAa,OAAgC;CACpE,MAAM,EAAE,UAAU,OAAO,WAAW;AAEpC,QAAO,oBAAC,YAAY;EAAS,OAAO;EAAS;GAAgC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { PropsWithChildren } from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
3
3
|
import { Props } from "@zag-js/dialog";
|
|
4
4
|
|
|
5
5
|
//#region src/components/dialog/anatomy/root.d.ts
|
|
6
6
|
interface DialogRootProps extends PropsWithChildren, Omit<Props, 'id'> {}
|
|
7
|
-
declare function Root(props: DialogRootProps):
|
|
7
|
+
declare function Root(props: DialogRootProps): react_jsx_runtime8.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { DialogRootProps, Root };
|
|
10
10
|
//# sourceMappingURL=root.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root.d.ts","names":[],"sources":["../../../../src/components/dialog/anatomy/root.tsx"],"sourcesContent":[],"mappings":";;;;;UAKiB,eAAA,SAAwB,mBAAmB,KAAK;iBAEzC,IAAA,QAAY,kBAAe,
|
|
1
|
+
{"version":3,"file":"root.d.ts","names":[],"sources":["../../../../src/components/dialog/anatomy/root.tsx"],"sourcesContent":[],"mappings":";;;;;UAKiB,eAAA,SAAwB,mBAAmB,KAAK;iBAEzC,IAAA,QAAY,kBAAe,kBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useDialog } from "../modules/
|
|
1
|
+
import { RootContext } from "../modules/root-context.js";
|
|
2
|
+
import { useDialog } from "../modules/provider.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { splitProps } from "@zag-js/dialog";
|
|
@@ -9,7 +9,7 @@ function Root(props) {
|
|
|
9
9
|
const [dialogProps, componentProps] = splitProps(props);
|
|
10
10
|
const { children } = componentProps;
|
|
11
11
|
const dialog = useDialog(dialogProps);
|
|
12
|
-
return /* @__PURE__ */ jsx(
|
|
12
|
+
return /* @__PURE__ */ jsx(RootContext.Provider, {
|
|
13
13
|
value: dialog,
|
|
14
14
|
children
|
|
15
15
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root.js","names":[],"sources":["../../../../src/components/dialog/anatomy/root.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"root.js","names":[],"sources":["../../../../src/components/dialog/anatomy/root.tsx"],"sourcesContent":["import { useDialog } from '../modules/provider';\nimport { RootContext } from '../modules/root-context';\nimport { type Props, splitProps } from '@zag-js/dialog';\nimport { type PropsWithChildren } from 'react';\n\nexport interface DialogRootProps extends PropsWithChildren, Omit<Props, 'id'> {}\n\nexport default function Root(props: DialogRootProps) {\n\tconst [dialogProps, componentProps] = splitProps(props);\n\tconst { children } = componentProps;\n\n\tconst dialog = useDialog(dialogProps);\n\n\treturn <RootContext.Provider value={dialog}>{children}</RootContext.Provider>;\n}\n"],"mappings":";;;;;;;AAOA,SAAwB,KAAK,OAAwB;CACpD,MAAM,CAAC,aAAa,kBAAkB,WAAW,MAAM;CACvD,MAAM,EAAE,aAAa;CAErB,MAAM,SAAS,UAAU,YAAY;AAErC,QAAO,oBAAC,YAAY;EAAS,OAAO;EAAS;GAAgC"}
|
|
@@ -1,11 +1,10 @@
|
|
|
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 react_jsx_runtime14 from "react/jsx-runtime";
|
|
3
|
+
import * as react23 from "react";
|
|
5
4
|
|
|
6
5
|
//#region src/components/dialog/anatomy/title.d.ts
|
|
7
6
|
interface DialogTitleProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
8
|
-
declare function Title(props: DialogTitleProps):
|
|
7
|
+
declare function Title(props: DialogTitleProps): react23.JSX.Element;
|
|
9
8
|
//#endregion
|
|
10
9
|
export { DialogTitleProps, Title };
|
|
11
10
|
//# sourceMappingURL=title.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"title.d.ts","names":[],"sources":["../../../../src/components/dialog/anatomy/title.tsx"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"title.d.ts","names":[],"sources":["../../../../src/components/dialog/anatomy/title.tsx"],"sourcesContent":[],"mappings":";;;;;UAOiB,gBAAA,SAAyB,yBAAyB;iBAE3C,KAAA,QAAa,mBAAgB,OAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RootContext } from "../modules/root-context.js";
|
|
2
2
|
import { use } from "react";
|
|
3
3
|
import { mergeProps } from "@zag-js/react";
|
|
4
4
|
import { classesDialog } from "@skeletonlabs/skeleton-common";
|
|
@@ -6,7 +6,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
6
6
|
|
|
7
7
|
//#region src/components/dialog/anatomy/title.tsx
|
|
8
8
|
function Title(props) {
|
|
9
|
-
const dialog = use(
|
|
9
|
+
const dialog = use(RootContext);
|
|
10
10
|
const { element, children,...rest } = props;
|
|
11
11
|
const attributes = mergeProps(dialog.getTitleProps(), { className: classesDialog.title }, rest);
|
|
12
12
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"title.js","names":[],"sources":["../../../../src/components/dialog/anatomy/title.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"title.js","names":[],"sources":["../../../../src/components/dialog/anatomy/title.tsx"],"sourcesContent":["import { RootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesDialog } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface DialogTitleProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}\n\nexport default function Title(props: DialogTitleProps) {\n\tconst dialog = use(RootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\tdialog.getTitleProps(),\n\t\t{\n\t\t\tclassName: classesDialog.title,\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <div {...attributes}>{children}</div>;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,MAAM,OAAyB;CACtD,MAAM,SAAS,IAAI,YAAY;CAE/B,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAClB,OAAO,eAAe,EACtB,EACC,WAAW,cAAc,OACzB,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAI,GAAI;EAAa;GAAe"}
|
|
@@ -1,11 +1,10 @@
|
|
|
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 react_jsx_runtime15 from "react/jsx-runtime";
|
|
3
|
+
import * as react24 from "react";
|
|
5
4
|
|
|
6
5
|
//#region src/components/dialog/anatomy/trigger.d.ts
|
|
7
6
|
interface DialogTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
|
|
8
|
-
declare function Trigger(props: DialogTriggerProps):
|
|
7
|
+
declare function Trigger(props: DialogTriggerProps): react24.JSX.Element;
|
|
9
8
|
//#endregion
|
|
10
9
|
export { DialogTriggerProps, Trigger };
|
|
11
10
|
//# sourceMappingURL=trigger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger.d.ts","names":[],"sources":["../../../../src/components/dialog/anatomy/trigger.tsx"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"trigger.d.ts","names":[],"sources":["../../../../src/components/dialog/anatomy/trigger.tsx"],"sourcesContent":[],"mappings":";;;;;UAOiB,kBAAA,SAA2B,4BAA4B;iBAEhD,OAAA,QAAe,qBAAkB,OAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RootContext } from "../modules/root-context.js";
|
|
2
2
|
import { use } from "react";
|
|
3
3
|
import { mergeProps } from "@zag-js/react";
|
|
4
4
|
import { classesDialog } from "@skeletonlabs/skeleton-common";
|
|
@@ -6,7 +6,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
6
6
|
|
|
7
7
|
//#region src/components/dialog/anatomy/trigger.tsx
|
|
8
8
|
function Trigger(props) {
|
|
9
|
-
const dialog = use(
|
|
9
|
+
const dialog = use(RootContext);
|
|
10
10
|
const { element, children,...rest } = props;
|
|
11
11
|
const attributes = mergeProps(dialog.getTriggerProps(), { className: classesDialog.trigger }, rest);
|
|
12
12
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger.js","names":[],"sources":["../../../../src/components/dialog/anatomy/trigger.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"trigger.js","names":[],"sources":["../../../../src/components/dialog/anatomy/trigger.tsx"],"sourcesContent":["import { RootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesDialog } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface DialogTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}\n\nexport default function Trigger(props: DialogTriggerProps) {\n\tconst dialog = use(RootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\tdialog.getTriggerProps(),\n\t\t{\n\t\t\tclassName: classesDialog.trigger,\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <button {...attributes}>{children}</button>;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,QAAQ,OAA2B;CAC1D,MAAM,SAAS,IAAI,YAAY;CAE/B,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAClB,OAAO,iBAAiB,EACxB,EACC,WAAW,cAAc,SACzB,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAO,GAAI;EAAa;GAAkB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PropTypes } from "@zag-js/react";
|
|
2
2
|
import { Api, Props } from "@zag-js/dialog";
|
|
3
3
|
|
|
4
|
-
//#region src/components/dialog/modules/
|
|
4
|
+
//#region src/components/dialog/modules/provider.d.ts
|
|
5
5
|
declare function useDialog(props?: Omit<Props, 'id'>): Api<PropTypes>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { useDialog };
|
|
8
|
-
//# sourceMappingURL=
|
|
8
|
+
//# sourceMappingURL=provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.d.ts","names":[],"sources":["../../../../src/components/dialog/modules/provider.ts"],"sourcesContent":[],"mappings":";;;;iBAIgB,SAAA,SAAiB,KAAK,eAAoB,IAAI"}
|
|
@@ -2,7 +2,7 @@ import { useId } from "react";
|
|
|
2
2
|
import { normalizeProps, useMachine } from "@zag-js/react";
|
|
3
3
|
import { connect, machine } from "@zag-js/dialog";
|
|
4
4
|
|
|
5
|
-
//#region src/components/dialog/modules/
|
|
5
|
+
//#region src/components/dialog/modules/provider.ts
|
|
6
6
|
function useDialog(props = {}) {
|
|
7
7
|
const service = useMachine(machine, {
|
|
8
8
|
id: useId(),
|
|
@@ -13,4 +13,4 @@ function useDialog(props = {}) {
|
|
|
13
13
|
|
|
14
14
|
//#endregion
|
|
15
15
|
export { useDialog };
|
|
16
|
-
//# sourceMappingURL=
|
|
16
|
+
//# sourceMappingURL=provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.js","names":[],"sources":["../../../../src/components/dialog/modules/provider.ts"],"sourcesContent":["import { type Api, connect, machine, type Props } from '@zag-js/dialog';\nimport { normalizeProps, useMachine, type PropTypes } from '@zag-js/react';\nimport { useId } from 'react';\n\nexport function useDialog(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":";;;;;AAIA,SAAgB,UAAU,QAA2B,EAAE,EAAkB;CACxE,MAAM,UAAU,WAAW,SAAS;EACnC,IAAI,OAAO;EACX,GAAG;EACH,CAAC;AACF,QAAO,QAAQ,SAAS,eAAe"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createContext } from "../../../internal/create-context.js";
|
|
2
2
|
|
|
3
3
|
//#region src/components/dialog/modules/root-context.ts
|
|
4
|
-
const
|
|
4
|
+
const RootContext = createContext();
|
|
5
5
|
|
|
6
6
|
//#endregion
|
|
7
|
-
export {
|
|
7
|
+
export { RootContext };
|
|
8
8
|
//# sourceMappingURL=root-context.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root-context.js","names":[],"sources":["../../../../src/components/dialog/modules/root-context.ts"],"sourcesContent":["import type { useDialog } from './
|
|
1
|
+
{"version":3,"file":"root-context.js","names":[],"sources":["../../../../src/components/dialog/modules/root-context.ts"],"sourcesContent":["import type { useDialog } from './provider';\nimport { createContext } from '@/internal/create-context';\n\nexport const RootContext = createContext<ReturnType<typeof useDialog>>();\n"],"mappings":";;;AAGA,MAAa,cAAc,eAA6C"}
|
|
@@ -1,11 +1,10 @@
|
|
|
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 react_jsx_runtime17 from "react/jsx-runtime";
|
|
3
|
+
import * as react25 from "react";
|
|
5
4
|
|
|
6
5
|
//#region src/components/file-upload/anatomy/dropzone.d.ts
|
|
7
6
|
interface FileUploadDropzoneProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
8
|
-
declare function Dropzone(props: FileUploadDropzoneProps):
|
|
7
|
+
declare function Dropzone(props: FileUploadDropzoneProps): react25.JSX.Element;
|
|
9
8
|
//#endregion
|
|
10
9
|
export { Dropzone, FileUploadDropzoneProps };
|
|
11
10
|
//# sourceMappingURL=dropzone.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropzone.d.ts","names":[],"sources":["../../../../src/components/file-upload/anatomy/dropzone.tsx"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dropzone.d.ts","names":[],"sources":["../../../../src/components/file-upload/anatomy/dropzone.tsx"],"sourcesContent":[],"mappings":";;;;;UAOiB,uBAAA,SAAgC,yBAAyB;iBAElD,QAAA,QAAgB,0BAAuB,OAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RootContext } from "../modules/root-context.js";
|
|
2
2
|
import { use } from "react";
|
|
3
3
|
import { mergeProps } from "@zag-js/react";
|
|
4
4
|
import { classesFileUpload } from "@skeletonlabs/skeleton-common";
|
|
@@ -6,7 +6,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
6
6
|
|
|
7
7
|
//#region src/components/file-upload/anatomy/dropzone.tsx
|
|
8
8
|
function Dropzone(props) {
|
|
9
|
-
const fileUpload = use(
|
|
9
|
+
const fileUpload = use(RootContext);
|
|
10
10
|
const { element, children,...rest } = props;
|
|
11
11
|
const attributes = mergeProps(fileUpload.getDropzoneProps(), { className: classesFileUpload.dropzone }, rest);
|
|
12
12
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropzone.js","names":[],"sources":["../../../../src/components/file-upload/anatomy/dropzone.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"dropzone.js","names":[],"sources":["../../../../src/components/file-upload/anatomy/dropzone.tsx"],"sourcesContent":["import { RootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesFileUpload } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface FileUploadDropzoneProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}\n\nexport default function Dropzone(props: FileUploadDropzoneProps) {\n\tconst fileUpload = use(RootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\tfileUpload.getDropzoneProps(),\n\t\t{\n\t\t\tclassName: classesFileUpload.dropzone,\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <div {...attributes}>{children}</div>;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,SAAS,OAAgC;CAChE,MAAM,aAAa,IAAI,YAAY;CAEnC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAClB,WAAW,kBAAkB,EAC7B,EACC,WAAW,kBAAkB,UAC7B,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAI,GAAI;EAAa;GAAe"}
|
|
@@ -1,11 +1,10 @@
|
|
|
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 react_jsx_runtime16 from "react/jsx-runtime";
|
|
3
|
+
import * as react26 from "react";
|
|
5
4
|
|
|
6
5
|
//#region src/components/file-upload/anatomy/hidden-input.d.ts
|
|
7
6
|
interface FileUploadHiddenInputProps extends PropsWithElement<'input'>, Omit<HTMLAttributes<'input'>, 'children'> {}
|
|
8
|
-
declare function HiddenInput(props: FileUploadHiddenInputProps):
|
|
7
|
+
declare function HiddenInput(props: FileUploadHiddenInputProps): react26.JSX.Element;
|
|
9
8
|
//#endregion
|
|
10
9
|
export { FileUploadHiddenInputProps, HiddenInput };
|
|
11
10
|
//# sourceMappingURL=hidden-input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hidden-input.d.ts","names":[],"sources":["../../../../src/components/file-upload/anatomy/hidden-input.tsx"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hidden-input.d.ts","names":[],"sources":["../../../../src/components/file-upload/anatomy/hidden-input.tsx"],"sourcesContent":[],"mappings":";;;;;UAOiB,0BAAA,SAAmC,2BAA2B,KAAK;iBAE5D,WAAA,QAAmB,6BAA0B,OAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RootContext } from "../modules/root-context.js";
|
|
2
2
|
import { use } from "react";
|
|
3
3
|
import { mergeProps } from "@zag-js/react";
|
|
4
4
|
import { classesFileUpload } from "@skeletonlabs/skeleton-common";
|
|
@@ -6,7 +6,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
6
6
|
|
|
7
7
|
//#region src/components/file-upload/anatomy/hidden-input.tsx
|
|
8
8
|
function HiddenInput(props) {
|
|
9
|
-
const fileUpload = use(
|
|
9
|
+
const fileUpload = use(RootContext);
|
|
10
10
|
const { element,...rest } = props;
|
|
11
11
|
const attributes = mergeProps(fileUpload.getHiddenInputProps(), { className: classesFileUpload.hiddenInput }, rest);
|
|
12
12
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hidden-input.js","names":[],"sources":["../../../../src/components/file-upload/anatomy/hidden-input.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"hidden-input.js","names":[],"sources":["../../../../src/components/file-upload/anatomy/hidden-input.tsx"],"sourcesContent":["import { RootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesFileUpload } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface FileUploadHiddenInputProps extends PropsWithElement<'input'>, Omit<HTMLAttributes<'input'>, 'children'> {}\n\nexport default function HiddenInput(props: FileUploadHiddenInputProps) {\n\tconst fileUpload = use(RootContext);\n\n\tconst { element, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\tfileUpload.getHiddenInputProps(),\n\t\t{\n\t\t\tclassName: classesFileUpload.hiddenInput,\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <input {...attributes} />;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,YAAY,OAAmC;CACtE,MAAM,aAAa,IAAI,YAAY;CAEnC,MAAM,EAAE,QAAS,GAAG,SAAS;CAE7B,MAAM,aAAa,WAClB,WAAW,qBAAqB,EAChC,EACC,WAAW,kBAAkB,aAC7B,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC,WAAM,GAAI,aAAc"}
|