@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,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { RootContext } from "../modules/root-context.js";
|
|
2
|
+
import { ItemGroupContext } from "../modules/item-group-context.js";
|
|
3
3
|
import { use, useId } from "react";
|
|
4
4
|
import { mergeProps } from "@zag-js/react";
|
|
5
5
|
import { classesCombobox } from "@skeletonlabs/skeleton-common";
|
|
@@ -8,14 +8,14 @@ import { splitItemGroupProps } from "@zag-js/combobox";
|
|
|
8
8
|
|
|
9
9
|
//#region src/components/combobox/anatomy/item-group.tsx
|
|
10
10
|
function ItemGroup(props) {
|
|
11
|
-
const combobox = use(
|
|
11
|
+
const combobox = use(RootContext);
|
|
12
12
|
const [itemGroupProps, componentProps] = splitItemGroupProps({
|
|
13
13
|
id: useId(),
|
|
14
14
|
...props
|
|
15
15
|
});
|
|
16
16
|
const { element, children,...rest } = componentProps;
|
|
17
17
|
const attributes = mergeProps(combobox.getItemGroupProps(itemGroupProps), { className: classesCombobox.itemGroup }, rest);
|
|
18
|
-
return /* @__PURE__ */ jsx(
|
|
18
|
+
return /* @__PURE__ */ jsx(ItemGroupContext.Provider, {
|
|
19
19
|
value: itemGroupProps,
|
|
20
20
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
21
21
|
...attributes,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item-group.js","names":[],"sources":["../../../../src/components/combobox/anatomy/item-group.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"item-group.js","names":[],"sources":["../../../../src/components/combobox/anatomy/item-group.tsx"],"sourcesContent":["import { ItemGroupContext } from '../modules/item-group-context';\nimport { RootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesCombobox } from '@skeletonlabs/skeleton-common';\nimport { type ItemGroupProps, splitItemGroupProps } from '@zag-js/combobox';\nimport { mergeProps } from '@zag-js/react';\nimport { use, useId } from 'react';\n\nexport interface ComboboxItemGroupProps extends Omit<ItemGroupProps, 'id'>, PropsWithElement<'div'>, Omit<HTMLAttributes<'div'>, 'id'> {}\n\nexport default function ItemGroup(props: ComboboxItemGroupProps) {\n\tconst combobox = use(RootContext);\n\n\tconst [itemGroupProps, componentProps] = splitItemGroupProps({\n\t\tid: useId(),\n\t\t...props,\n\t});\n\tconst { element, children, ...rest } = componentProps;\n\n\tconst attributes = mergeProps(\n\t\tcombobox.getItemGroupProps(itemGroupProps),\n\t\t{\n\t\t\tclassName: classesCombobox.itemGroup,\n\t\t},\n\t\trest,\n\t);\n\n\treturn (\n\t\t<ItemGroupContext.Provider value={itemGroupProps}>\n\t\t\t{element ? element(attributes) : <div {...attributes}>{children}</div>}\n\t\t</ItemGroupContext.Provider>\n\t);\n}\n"],"mappings":";;;;;;;;;AAWA,SAAwB,UAAU,OAA+B;CAChE,MAAM,WAAW,IAAI,YAAY;CAEjC,MAAM,CAAC,gBAAgB,kBAAkB,oBAAoB;EAC5D,IAAI,OAAO;EACX,GAAG;EACH,CAAC;CACF,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAClB,SAAS,kBAAkB,eAAe,EAC1C,EACC,WAAW,gBAAgB,WAC3B,EACD,KACA;AAED,QACC,oBAAC,iBAAiB;EAAS,OAAO;YAChC,UAAU,QAAQ,WAAW,GAAG,oBAAC;GAAI,GAAI;GAAa;IAAe;GAC3C"}
|
|
@@ -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_runtime105 from "react/jsx-runtime";
|
|
3
|
+
import * as react13 from "react";
|
|
5
4
|
|
|
6
5
|
//#region src/components/combobox/anatomy/item-indicator.d.ts
|
|
7
6
|
interface ComboboxItemIndicatorProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
8
|
-
declare function ItemIndicator(props: ComboboxItemIndicatorProps):
|
|
7
|
+
declare function ItemIndicator(props: ComboboxItemIndicatorProps): react13.JSX.Element;
|
|
9
8
|
//#endregion
|
|
10
9
|
export { ComboboxItemIndicatorProps, ItemIndicator };
|
|
11
10
|
//# sourceMappingURL=item-indicator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item-indicator.d.ts","names":[],"sources":["../../../../src/components/combobox/anatomy/item-indicator.tsx"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"item-indicator.d.ts","names":[],"sources":["../../../../src/components/combobox/anatomy/item-indicator.tsx"],"sourcesContent":[],"mappings":";;;;;UASiB,0BAAA,SAAmC,yBAAyB;iBAErD,aAAA,QAAqB,6BAA0B,OAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { RootContext } from "../modules/root-context.js";
|
|
2
|
+
import { ItemContext } from "../modules/item-context.js";
|
|
3
3
|
import Check from "../../../internal/components/check.js";
|
|
4
4
|
import { use } from "react";
|
|
5
5
|
import { mergeProps } from "@zag-js/react";
|
|
@@ -8,8 +8,8 @@ import { jsx } from "react/jsx-runtime";
|
|
|
8
8
|
|
|
9
9
|
//#region src/components/combobox/anatomy/item-indicator.tsx
|
|
10
10
|
function ItemIndicator(props) {
|
|
11
|
-
const combobox = use(
|
|
12
|
-
const itemProps = use(
|
|
11
|
+
const combobox = use(RootContext);
|
|
12
|
+
const itemProps = use(ItemContext);
|
|
13
13
|
const { element, children = /* @__PURE__ */ jsx(Check, { className: "size-4" }),...rest } = props;
|
|
14
14
|
const attributes = mergeProps(combobox.getItemIndicatorProps(itemProps), { className: classesCombobox.itemIndicator }, rest);
|
|
15
15
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item-indicator.js","names":[],"sources":["../../../../src/components/combobox/anatomy/item-indicator.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"item-indicator.js","names":[],"sources":["../../../../src/components/combobox/anatomy/item-indicator.tsx"],"sourcesContent":["import { ItemContext } from '../modules/item-context';\nimport { RootContext } from '../modules/root-context';\nimport Check from '@/internal/components/check';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesCombobox } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface ComboboxItemIndicatorProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}\n\nexport default function ItemIndicator(props: ComboboxItemIndicatorProps) {\n\tconst combobox = use(RootContext);\n\tconst itemProps = use(ItemContext);\n\n\tconst { element, children = <Check className=\"size-4\" />, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\tcombobox.getItemIndicatorProps(itemProps),\n\t\t{\n\t\t\tclassName: classesCombobox.itemIndicator,\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <div {...attributes}>{children}</div>;\n}\n"],"mappings":";;;;;;;;;AAWA,SAAwB,cAAc,OAAmC;CACxE,MAAM,WAAW,IAAI,YAAY;CACjC,MAAM,YAAY,IAAI,YAAY;CAElC,MAAM,EAAE,SAAS,WAAW,oBAAC,SAAM,WAAU,WAAW,CAAE,GAAG,SAAS;CAEtE,MAAM,aAAa,WAClB,SAAS,sBAAsB,UAAU,EACzC,EACC,WAAW,gBAAgB,eAC3B,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_runtime106 from "react/jsx-runtime";
|
|
3
|
+
import * as react14 from "react";
|
|
5
4
|
|
|
6
5
|
//#region src/components/combobox/anatomy/item-text.d.ts
|
|
7
6
|
interface ComboboxItemTextProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
|
|
8
|
-
declare function ItemText(props: ComboboxItemTextProps):
|
|
7
|
+
declare function ItemText(props: ComboboxItemTextProps): react14.JSX.Element;
|
|
9
8
|
//#endregion
|
|
10
9
|
export { ComboboxItemTextProps, ItemText };
|
|
11
10
|
//# sourceMappingURL=item-text.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item-text.d.ts","names":[],"sources":["../../../../src/components/combobox/anatomy/item-text.tsx"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"item-text.d.ts","names":[],"sources":["../../../../src/components/combobox/anatomy/item-text.tsx"],"sourcesContent":[],"mappings":";;;;;UAQiB,qBAAA,SAA8B,0BAA0B;iBAEjD,QAAA,QAAgB,wBAAqB,OAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { RootContext } from "../modules/root-context.js";
|
|
2
|
+
import { ItemContext } from "../modules/item-context.js";
|
|
3
3
|
import { use } from "react";
|
|
4
4
|
import { mergeProps } from "@zag-js/react";
|
|
5
5
|
import { classesCombobox } from "@skeletonlabs/skeleton-common";
|
|
@@ -7,8 +7,8 @@ import { jsx } from "react/jsx-runtime";
|
|
|
7
7
|
|
|
8
8
|
//#region src/components/combobox/anatomy/item-text.tsx
|
|
9
9
|
function ItemText(props) {
|
|
10
|
-
const combobox = use(
|
|
11
|
-
const itemProps = use(
|
|
10
|
+
const combobox = use(RootContext);
|
|
11
|
+
const itemProps = use(ItemContext);
|
|
12
12
|
const { element, children,...rest } = props;
|
|
13
13
|
const attributes = mergeProps(combobox.getItemTextProps(itemProps), { className: classesCombobox.itemText }, rest);
|
|
14
14
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item-text.js","names":[],"sources":["../../../../src/components/combobox/anatomy/item-text.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"item-text.js","names":[],"sources":["../../../../src/components/combobox/anatomy/item-text.tsx"],"sourcesContent":["import { ItemContext } from '../modules/item-context';\nimport { RootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesCombobox } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface ComboboxItemTextProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}\n\nexport default function ItemText(props: ComboboxItemTextProps) {\n\tconst combobox = use(RootContext);\n\tconst itemProps = use(ItemContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\tcombobox.getItemTextProps(itemProps),\n\t\t{\n\t\t\tclassName: classesCombobox.itemText,\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <span {...attributes}>{children}</span>;\n}\n"],"mappings":";;;;;;;;AAUA,SAAwB,SAAS,OAA8B;CAC9D,MAAM,WAAW,IAAI,YAAY;CACjC,MAAM,YAAY,IAAI,YAAY;CAElC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAClB,SAAS,iBAAiB,UAAU,EACpC,EACC,WAAW,gBAAgB,UAC3B,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAK,GAAI;EAAa;GAAgB"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
4
4
|
import { ItemProps } from "@zag-js/combobox";
|
|
5
5
|
|
|
6
6
|
//#region src/components/combobox/anatomy/item.d.ts
|
|
7
7
|
interface ComboboxItemProps extends ItemProps, PropsWithElement<'li'>, HTMLAttributes<'li'> {}
|
|
8
|
-
declare function Item(props: ComboboxItemProps):
|
|
8
|
+
declare function Item(props: ComboboxItemProps): react_jsx_runtime5.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { ComboboxItemProps, Item };
|
|
11
11
|
//# sourceMappingURL=item.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.d.ts","names":[],"sources":["../../../../src/components/combobox/anatomy/item.tsx"],"sourcesContent":[],"mappings":";;;;;;UASiB,iBAAA,SAA0B,WAAW,wBAAwB;iBAEtD,IAAA,QAAY,oBAAiB,
|
|
1
|
+
{"version":3,"file":"item.d.ts","names":[],"sources":["../../../../src/components/combobox/anatomy/item.tsx"],"sourcesContent":[],"mappings":";;;;;;UASiB,iBAAA,SAA0B,WAAW,wBAAwB;iBAEtD,IAAA,QAAY,oBAAiB,kBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { RootContext } from "../modules/root-context.js";
|
|
2
|
+
import { ItemContext } from "../modules/item-context.js";
|
|
3
3
|
import { use } from "react";
|
|
4
4
|
import { mergeProps } from "@zag-js/react";
|
|
5
5
|
import { classesCombobox } from "@skeletonlabs/skeleton-common";
|
|
@@ -8,11 +8,11 @@ import { splitItemProps } from "@zag-js/combobox";
|
|
|
8
8
|
|
|
9
9
|
//#region src/components/combobox/anatomy/item.tsx
|
|
10
10
|
function Item(props) {
|
|
11
|
-
const combobox = use(
|
|
11
|
+
const combobox = use(RootContext);
|
|
12
12
|
const [itemProps, componentProps] = splitItemProps(props);
|
|
13
13
|
const { element, children,...rest } = componentProps;
|
|
14
14
|
const attributes = mergeProps(combobox.getItemProps(itemProps), { className: classesCombobox.item }, rest);
|
|
15
|
-
return /* @__PURE__ */ jsx(
|
|
15
|
+
return /* @__PURE__ */ jsx(ItemContext.Provider, {
|
|
16
16
|
value: itemProps,
|
|
17
17
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("li", {
|
|
18
18
|
...attributes,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.js","names":[],"sources":["../../../../src/components/combobox/anatomy/item.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"item.js","names":[],"sources":["../../../../src/components/combobox/anatomy/item.tsx"],"sourcesContent":["import { ItemContext } from '../modules/item-context';\nimport { RootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesCombobox } from '@skeletonlabs/skeleton-common';\nimport { type ItemProps, splitItemProps } from '@zag-js/combobox';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface ComboboxItemProps extends ItemProps, PropsWithElement<'li'>, HTMLAttributes<'li'> {}\n\nexport default function Item(props: ComboboxItemProps) {\n\tconst combobox = use(RootContext);\n\n\tconst [itemProps, componentProps] = splitItemProps(props);\n\tconst { element, children, ...rest } = componentProps;\n\n\tconst attributes = mergeProps(\n\t\tcombobox.getItemProps(itemProps),\n\t\t{\n\t\t\tclassName: classesCombobox.item,\n\t\t},\n\t\trest,\n\t);\n\n\treturn (\n\t\t<ItemContext.Provider value={itemProps}>{element ? element(attributes) : <li {...attributes}>{children}</li>}</ItemContext.Provider>\n\t);\n}\n"],"mappings":";;;;;;;;;AAWA,SAAwB,KAAK,OAA0B;CACtD,MAAM,WAAW,IAAI,YAAY;CAEjC,MAAM,CAAC,WAAW,kBAAkB,eAAe,MAAM;CACzD,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAClB,SAAS,aAAa,UAAU,EAChC,EACC,WAAW,gBAAgB,MAC3B,EACD,KACA;AAED,QACC,oBAAC,YAAY;EAAS,OAAO;YAAY,UAAU,QAAQ,WAAW,GAAG,oBAAC;GAAG,GAAI;GAAa;IAAc;GAAwB"}
|
|
@@ -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_runtime107 from "react/jsx-runtime";
|
|
3
|
+
import * as react15 from "react";
|
|
5
4
|
|
|
6
5
|
//#region src/components/combobox/anatomy/label.d.ts
|
|
7
6
|
interface ComboboxLabelProps extends PropsWithElement<'label'>, HTMLAttributes<'label'> {}
|
|
8
|
-
declare function Label(props: ComboboxLabelProps):
|
|
7
|
+
declare function Label(props: ComboboxLabelProps): react15.JSX.Element;
|
|
9
8
|
//#endregion
|
|
10
9
|
export { ComboboxLabelProps, Label };
|
|
11
10
|
//# sourceMappingURL=label.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label.d.ts","names":[],"sources":["../../../../src/components/combobox/anatomy/label.tsx"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"label.d.ts","names":[],"sources":["../../../../src/components/combobox/anatomy/label.tsx"],"sourcesContent":[],"mappings":";;;;;UAOiB,kBAAA,SAA2B,2BAA2B;iBAE/C,KAAA,QAAa,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 { classesCombobox } from "@skeletonlabs/skeleton-common";
|
|
@@ -6,7 +6,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
6
6
|
|
|
7
7
|
//#region src/components/combobox/anatomy/label.tsx
|
|
8
8
|
function Label(props) {
|
|
9
|
-
const combobox = use(
|
|
9
|
+
const combobox = use(RootContext);
|
|
10
10
|
const { element, children,...rest } = props;
|
|
11
11
|
const attributes = mergeProps(combobox.getLabelProps(), { className: classesCombobox.label }, rest);
|
|
12
12
|
return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label.js","names":[],"sources":["../../../../src/components/combobox/anatomy/label.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"label.js","names":[],"sources":["../../../../src/components/combobox/anatomy/label.tsx"],"sourcesContent":["import { RootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesCombobox } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface ComboboxLabelProps extends PropsWithElement<'label'>, HTMLAttributes<'label'> {}\n\nexport default function Label(props: ComboboxLabelProps) {\n\tconst combobox = use(RootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\tcombobox.getLabelProps(),\n\t\t{\n\t\t\tclassName: classesCombobox.label,\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <label {...attributes}>{children}</label>;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,MAAM,OAA2B;CACxD,MAAM,WAAW,IAAI,YAAY;CAEjC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAClB,SAAS,eAAe,EACxB,EACC,WAAW,gBAAgB,OAC3B,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAM,GAAI;EAAa;GAAiB"}
|
|
@@ -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_runtime108 from "react/jsx-runtime";
|
|
3
|
+
import * as react16 from "react";
|
|
5
4
|
|
|
6
5
|
//#region src/components/combobox/anatomy/positioner.d.ts
|
|
7
6
|
interface ComboboxPositionerProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
8
|
-
declare function Positioner(props: ComboboxPositionerProps):
|
|
7
|
+
declare function Positioner(props: ComboboxPositionerProps): react16.JSX.Element;
|
|
9
8
|
//#endregion
|
|
10
9
|
export { ComboboxPositionerProps, Positioner };
|
|
11
10
|
//# sourceMappingURL=positioner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"positioner.d.ts","names":[],"sources":["../../../../src/components/combobox/anatomy/positioner.tsx"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"positioner.d.ts","names":[],"sources":["../../../../src/components/combobox/anatomy/positioner.tsx"],"sourcesContent":[],"mappings":";;;;;UAOiB,uBAAA,SAAgC,yBAAyB;iBAElD,UAAA,QAAkB,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 { classesCombobox } from "@skeletonlabs/skeleton-common";
|
|
@@ -6,7 +6,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
6
6
|
|
|
7
7
|
//#region src/components/combobox/anatomy/positioner.tsx
|
|
8
8
|
function Positioner(props) {
|
|
9
|
-
const combobox = use(
|
|
9
|
+
const combobox = use(RootContext);
|
|
10
10
|
const { element, children,...rest } = props;
|
|
11
11
|
const attributes = mergeProps(combobox.getPositionerProps(), { className: classesCombobox.positioner }, rest);
|
|
12
12
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"positioner.js","names":[],"sources":["../../../../src/components/combobox/anatomy/positioner.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"positioner.js","names":[],"sources":["../../../../src/components/combobox/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 { classesCombobox } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface ComboboxPositionerProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}\n\nexport default function Positioner(props: ComboboxPositionerProps) {\n\tconst combobox = use(RootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\tcombobox.getPositionerProps(),\n\t\t{\n\t\t\tclassName: classesCombobox.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,OAAgC;CAClE,MAAM,WAAW,IAAI,YAAY;CAEjC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAClB,SAAS,oBAAoB,EAC7B,EACC,WAAW,gBAAgB,YAC3B,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/combobox/anatomy/root-context.tsx
|
|
5
|
-
function RootContext(props) {
|
|
6
|
-
const combobox = use(
|
|
5
|
+
function RootContext$1(props) {
|
|
6
|
+
const combobox = use(RootContext);
|
|
7
7
|
const { children } = props;
|
|
8
8
|
return children(combobox);
|
|
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/combobox/anatomy/root-context.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"root-context.js","names":["RootContext","RootContext_"],"sources":["../../../../src/components/combobox/anatomy/root-context.tsx"],"sourcesContent":["import type { useCombobox } from '../modules/provider';\nimport { RootContext as RootContext_ } from '../modules/root-context';\nimport { type ReactNode, use } from 'react';\n\nexport interface ComboboxRootContextProps {\n\tchildren: (combobox: ReturnType<typeof useCombobox>) => ReactNode;\n}\n\nexport default function RootContext(props: ComboboxRootContextProps) {\n\tconst combobox = use(RootContext_);\n\n\tconst { children } = props;\n\n\treturn children(combobox);\n}\n"],"mappings":";;;;AAQA,SAAwBA,cAAY,OAAiC;CACpE,MAAM,WAAW,IAAIC,YAAa;CAElC,MAAM,EAAE,aAAa;AAErB,QAAO,SAAS,SAAS"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import { useCombobox } from "../modules/
|
|
4
|
-
import * as
|
|
3
|
+
import { useCombobox } from "../modules/provider.js";
|
|
4
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/combobox/anatomy/root-provider.d.ts
|
|
7
7
|
interface ComboboxRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue' | 'onSelect'> {
|
|
8
8
|
value: ReturnType<typeof useCombobox>;
|
|
9
9
|
}
|
|
10
|
-
declare function RootProvider(props: ComboboxRootProviderProps):
|
|
10
|
+
declare function RootProvider(props: ComboboxRootProviderProps): react_jsx_runtime7.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { ComboboxRootProviderProps, RootProvider };
|
|
13
13
|
//# sourceMappingURL=root-provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root-provider.d.ts","names":[],"sources":["../../../../src/components/combobox/anatomy/root-provider.tsx"],"sourcesContent":[],"mappings":";;;;;;UAOiB,yBAAA,SACR,yBACP;SACM,kBAAkB;;AAHT,iBAMO,YAAA,CALvB,KAAA,EAK2C,yBAL3C,CAAA,EAKoE,
|
|
1
|
+
{"version":3,"file":"root-provider.d.ts","names":[],"sources":["../../../../src/components/combobox/anatomy/root-provider.tsx"],"sourcesContent":[],"mappings":";;;;;;UAOiB,yBAAA,SACR,yBACP;SACM,kBAAkB;;AAHT,iBAMO,YAAA,CALvB,KAAA,EAK2C,yBAL3C,CAAA,EAKoE,kBAAA,CAAA,GAAA,CAAA,OALpE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RootContext } from "../modules/root-context.js";
|
|
2
2
|
import { mergeProps } from "@zag-js/react";
|
|
3
3
|
import { classesCombobox } from "@skeletonlabs/skeleton-common";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -7,7 +7,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
7
7
|
function RootProvider(props) {
|
|
8
8
|
const { element, children, value: combobox,...rest } = props;
|
|
9
9
|
const attributes = mergeProps(combobox.getRootProps(), { className: classesCombobox.root }, rest);
|
|
10
|
-
return /* @__PURE__ */ jsx(
|
|
10
|
+
return /* @__PURE__ */ jsx(RootContext.Provider, {
|
|
11
11
|
value: combobox,
|
|
12
12
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
13
13
|
...attributes,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root-provider.js","names":[],"sources":["../../../../src/components/combobox/anatomy/root-provider.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"root-provider.js","names":[],"sources":["../../../../src/components/combobox/anatomy/root-provider.tsx"],"sourcesContent":["import { useCombobox } from '../modules/provider';\nimport { RootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesCombobox } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\n\nexport interface ComboboxRootProviderProps\n\textends PropsWithElement<'div'>,\n\t\tHTMLAttributes<'div', 'id' | 'dir' | 'defaultValue' | 'onSelect'> {\n\tvalue: ReturnType<typeof useCombobox>;\n}\n\nexport default function RootProvider(props: ComboboxRootProviderProps) {\n\tconst { element, children, value: combobox, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\tcombobox.getRootProps(),\n\t\t{\n\t\t\tclassName: classesCombobox.root,\n\t\t},\n\t\trest,\n\t);\n\n\treturn (\n\t\t<RootContext.Provider value={combobox}>{element ? element(attributes) : <div {...attributes}>{children}</div>}</RootContext.Provider>\n\t);\n}\n"],"mappings":";;;;;;AAaA,SAAwB,aAAa,OAAkC;CACtE,MAAM,EAAE,SAAS,UAAU,OAAO,SAAU,GAAG,SAAS;CAExD,MAAM,aAAa,WAClB,SAAS,cAAc,EACvB,EACC,WAAW,gBAAgB,MAC3B,EACD,KACA;AAED,QACC,oBAAC,YAAY;EAAS,OAAO;YAAW,UAAU,QAAQ,WAAW,GAAG,oBAAC;GAAI,GAAI;GAAa;IAAe;GAAwB"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
4
4
|
import { Props } from "@zag-js/combobox";
|
|
5
5
|
|
|
6
6
|
//#region src/components/combobox/anatomy/root.d.ts
|
|
7
7
|
interface ComboboxRootProps extends Omit<Props, 'id'>, PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue' | 'onSelect'> {}
|
|
8
|
-
declare function Root(props: ComboboxRootProps):
|
|
8
|
+
declare function Root(props: ComboboxRootProps): react_jsx_runtime6.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { ComboboxRootProps, Root };
|
|
11
11
|
//# sourceMappingURL=root.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root.d.ts","names":[],"sources":["../../../../src/components/combobox/anatomy/root.tsx"],"sourcesContent":[],"mappings":";;;;;;UAQiB,iBAAA,SACR,KAAK,cACZ,yBACA;iBAEsB,IAAA,QAAY,oBAAiB,
|
|
1
|
+
{"version":3,"file":"root.d.ts","names":[],"sources":["../../../../src/components/combobox/anatomy/root.tsx"],"sourcesContent":[],"mappings":";;;;;;UAQiB,iBAAA,SACR,KAAK,cACZ,yBACA;iBAEsB,IAAA,QAAY,oBAAiB,kBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useCombobox } from "../modules/
|
|
1
|
+
import { RootContext } from "../modules/root-context.js";
|
|
2
|
+
import { useCombobox } from "../modules/provider.js";
|
|
3
3
|
import { mergeProps } from "@zag-js/react";
|
|
4
4
|
import { classesCombobox } from "@skeletonlabs/skeleton-common";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -11,7 +11,7 @@ function Root(props) {
|
|
|
11
11
|
const { element, children,...rest } = componentProps;
|
|
12
12
|
const combobox = useCombobox(comboboxProps);
|
|
13
13
|
const attributes = mergeProps(combobox.getRootProps(), { className: classesCombobox.root }, rest);
|
|
14
|
-
return /* @__PURE__ */ jsx(
|
|
14
|
+
return /* @__PURE__ */ jsx(RootContext.Provider, {
|
|
15
15
|
value: combobox,
|
|
16
16
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
17
17
|
...attributes,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root.js","names":[],"sources":["../../../../src/components/combobox/anatomy/root.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"root.js","names":[],"sources":["../../../../src/components/combobox/anatomy/root.tsx"],"sourcesContent":["import { useCombobox } from '../modules/provider';\nimport { RootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesCombobox } from '@skeletonlabs/skeleton-common';\nimport { type Props, splitProps } from '@zag-js/combobox';\nimport { mergeProps } from '@zag-js/react';\n\nexport interface ComboboxRootProps\n\textends Omit<Props, 'id'>,\n\t\tPropsWithElement<'div'>,\n\t\tHTMLAttributes<'div', 'id' | 'dir' | 'defaultValue' | 'onSelect'> {}\n\nexport default function Root(props: ComboboxRootProps) {\n\tconst [comboboxProps, componentProps] = splitProps(props);\n\tconst { element, children, ...rest } = componentProps;\n\n\tconst combobox = useCombobox(comboboxProps);\n\n\tconst attributes = mergeProps(\n\t\tcombobox.getRootProps(),\n\t\t{\n\t\t\tclassName: classesCombobox.root,\n\t\t},\n\t\trest,\n\t);\n\n\treturn (\n\t\t<RootContext.Provider value={combobox}>{element ? element(attributes) : <div {...attributes}>{children}</div>}</RootContext.Provider>\n\t);\n}\n"],"mappings":";;;;;;;;AAaA,SAAwB,KAAK,OAA0B;CACtD,MAAM,CAAC,eAAe,kBAAkB,WAAW,MAAM;CACzD,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,WAAW,YAAY,cAAc;CAE3C,MAAM,aAAa,WAClB,SAAS,cAAc,EACvB,EACC,WAAW,gBAAgB,MAC3B,EACD,KACA;AAED,QACC,oBAAC,YAAY;EAAS,OAAO;YAAW,UAAU,QAAQ,WAAW,GAAG,oBAAC;GAAI,GAAI;GAAa;IAAe;GAAwB"}
|
|
@@ -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_runtime111 from "react/jsx-runtime";
|
|
3
|
+
import * as react17 from "react";
|
|
5
4
|
|
|
6
5
|
//#region src/components/combobox/anatomy/trigger.d.ts
|
|
7
6
|
interface ComboboxTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
|
|
8
|
-
declare function Trigger(props: ComboboxTriggerProps):
|
|
7
|
+
declare function Trigger(props: ComboboxTriggerProps): react17.JSX.Element;
|
|
9
8
|
//#endregion
|
|
10
9
|
export { ComboboxTriggerProps, Trigger };
|
|
11
10
|
//# sourceMappingURL=trigger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger.d.ts","names":[],"sources":["../../../../src/components/combobox/anatomy/trigger.tsx"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"trigger.d.ts","names":[],"sources":["../../../../src/components/combobox/anatomy/trigger.tsx"],"sourcesContent":[],"mappings":";;;;;UAQiB,oBAAA,SAA6B,4BAA4B;iBAElD,OAAA,QAAe,uBAAoB,OAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RootContext } from "../modules/root-context.js";
|
|
2
2
|
import ChevronDown from "../../../internal/components/chevron-down.js";
|
|
3
3
|
import { use } from "react";
|
|
4
4
|
import { mergeProps } from "@zag-js/react";
|
|
@@ -7,7 +7,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
7
7
|
|
|
8
8
|
//#region src/components/combobox/anatomy/trigger.tsx
|
|
9
9
|
function Trigger(props) {
|
|
10
|
-
const combobox = use(
|
|
10
|
+
const combobox = use(RootContext);
|
|
11
11
|
const { element, children = /* @__PURE__ */ jsx(ChevronDown, {}),...rest } = props;
|
|
12
12
|
const attributes = mergeProps(combobox.getTriggerProps(), { className: classesCombobox.trigger }, rest);
|
|
13
13
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger.js","names":["ChevronDownIcon"],"sources":["../../../../src/components/combobox/anatomy/trigger.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"trigger.js","names":["ChevronDownIcon"],"sources":["../../../../src/components/combobox/anatomy/trigger.tsx"],"sourcesContent":["import { RootContext } from '../modules/root-context';\nimport ChevronDownIcon from '@/internal/components/chevron-down';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesCombobox } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface ComboboxTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}\n\nexport default function Trigger(props: ComboboxTriggerProps) {\n\tconst combobox = use(RootContext);\n\n\tconst { element, children = <ChevronDownIcon />, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\tcombobox.getTriggerProps(),\n\t\t{\n\t\t\tclassName: classesCombobox.trigger,\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <button {...attributes}>{children}</button>;\n}\n"],"mappings":";;;;;;;;AAUA,SAAwB,QAAQ,OAA6B;CAC5D,MAAM,WAAW,IAAI,YAAY;CAEjC,MAAM,EAAE,SAAS,WAAW,oBAACA,gBAAkB,CAAE,GAAG,SAAS;CAE7D,MAAM,aAAa,WAClB,SAAS,iBAAiB,EAC1B,EACC,WAAW,gBAAgB,SAC3B,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAO,GAAI;EAAa;GAAkB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createContext } from "../../../internal/create-context.js";
|
|
2
2
|
|
|
3
3
|
//#region src/components/combobox/modules/item-context.ts
|
|
4
|
-
const
|
|
4
|
+
const ItemContext = createContext();
|
|
5
5
|
|
|
6
6
|
//#endregion
|
|
7
|
-
export {
|
|
7
|
+
export { ItemContext };
|
|
8
8
|
//# sourceMappingURL=item-context.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item-context.js","names":[],"sources":["../../../../src/components/combobox/modules/item-context.ts"],"sourcesContent":["import { createContext } from '@/internal/create-context';\nimport type { ItemProps } from '@zag-js/combobox';\n\nexport const
|
|
1
|
+
{"version":3,"file":"item-context.js","names":[],"sources":["../../../../src/components/combobox/modules/item-context.ts"],"sourcesContent":["import { createContext } from '@/internal/create-context';\nimport type { ItemProps } from '@zag-js/combobox';\n\nexport const ItemContext = createContext<ItemProps>();\n"],"mappings":";;;AAGA,MAAa,cAAc,eAA0B"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createContext } from "../../../internal/create-context.js";
|
|
2
2
|
|
|
3
3
|
//#region src/components/combobox/modules/item-group-context.ts
|
|
4
|
-
const
|
|
4
|
+
const ItemGroupContext = createContext();
|
|
5
5
|
|
|
6
6
|
//#endregion
|
|
7
|
-
export {
|
|
7
|
+
export { ItemGroupContext };
|
|
8
8
|
//# sourceMappingURL=item-group-context.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item-group-context.js","names":[],"sources":["../../../../src/components/combobox/modules/item-group-context.ts"],"sourcesContent":["import { createContext } from '@/internal/create-context';\nimport type { ItemGroupProps } from '@zag-js/combobox';\n\nexport const
|
|
1
|
+
{"version":3,"file":"item-group-context.js","names":[],"sources":["../../../../src/components/combobox/modules/item-group-context.ts"],"sourcesContent":["import { createContext } from '@/internal/create-context';\nimport type { ItemGroupProps } from '@zag-js/combobox';\n\nexport const ItemGroupContext = createContext<ItemGroupProps>();\n"],"mappings":";;;AAGA,MAAa,mBAAmB,eAA+B"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PropTypes } from "@zag-js/react";
|
|
2
2
|
import { Api, Props } from "@zag-js/combobox";
|
|
3
3
|
|
|
4
|
-
//#region src/components/combobox/modules/
|
|
4
|
+
//#region src/components/combobox/modules/provider.d.ts
|
|
5
5
|
declare function useCombobox(props?: Omit<Props, 'id'>): Api<PropTypes>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { useCombobox };
|
|
8
|
-
//# sourceMappingURL=
|
|
8
|
+
//# sourceMappingURL=provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.d.ts","names":[],"sources":["../../../../src/components/combobox/modules/provider.ts"],"sourcesContent":[],"mappings":";;;;iBAIgB,WAAA,SAAmB,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/combobox";
|
|
4
4
|
|
|
5
|
-
//#region src/components/combobox/modules/
|
|
5
|
+
//#region src/components/combobox/modules/provider.ts
|
|
6
6
|
function useCombobox(props = {}) {
|
|
7
7
|
const service = useMachine(machine, {
|
|
8
8
|
id: useId(),
|
|
@@ -13,4 +13,4 @@ function useCombobox(props = {}) {
|
|
|
13
13
|
|
|
14
14
|
//#endregion
|
|
15
15
|
export { useCombobox };
|
|
16
|
-
//# sourceMappingURL=
|
|
16
|
+
//# sourceMappingURL=provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.js","names":[],"sources":["../../../../src/components/combobox/modules/provider.ts"],"sourcesContent":["import { type Api, connect, machine, type Props } from '@zag-js/combobox';\nimport { normalizeProps, useMachine, type PropTypes } from '@zag-js/react';\nimport { useId } from 'react';\n\nexport function useCombobox(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,YAAY,QAA2B,EAAE,EAAkB;CAC1E,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/combobox/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/combobox/modules/root-context.ts"],"sourcesContent":["import type { useCombobox } from './
|
|
1
|
+
{"version":3,"file":"root-context.js","names":[],"sources":["../../../../src/components/combobox/modules/root-context.ts"],"sourcesContent":["import type { useCombobox } from './provider';\nimport { createContext } from '@/internal/create-context';\n\nexport const RootContext = createContext<ReturnType<typeof useCombobox>>();\n"],"mappings":";;;AAGA,MAAa,cAAc,eAA+C"}
|
|
@@ -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_runtime7 from "react/jsx-runtime";
|
|
3
|
+
import * as react18 from "react";
|
|
5
4
|
|
|
6
5
|
//#region src/components/dialog/anatomy/backdrop.d.ts
|
|
7
6
|
interface DialogBackdropProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'children'> {}
|
|
8
|
-
declare function Backdrop(props: DialogBackdropProps):
|
|
7
|
+
declare function Backdrop(props: DialogBackdropProps): react18.JSX.Element;
|
|
9
8
|
//#endregion
|
|
10
9
|
export { Backdrop, DialogBackdropProps };
|
|
11
10
|
//# sourceMappingURL=backdrop.d.ts.map
|