@skeletonlabs/skeleton-react 2.0.0-next.1 → 2.0.0-next.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/anatomy/item-content.d.ts +12 -0
- package/dist/components/accordion/anatomy/item-content.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/item-content.js +22 -0
- package/dist/components/accordion/anatomy/item-content.js.map +1 -0
- package/dist/components/accordion/anatomy/item-heading.d.ts +19 -0
- package/dist/components/accordion/anatomy/item-heading.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/item-heading.js +18 -0
- package/dist/components/accordion/anatomy/item-heading.js.map +1 -0
- package/dist/components/accordion/anatomy/item-indicator.d.ts +12 -0
- package/dist/components/accordion/anatomy/item-indicator.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/item-indicator.js +22 -0
- package/dist/components/accordion/anatomy/item-indicator.js.map +1 -0
- package/dist/components/accordion/anatomy/item-trigger.d.ts +12 -0
- package/dist/components/accordion/anatomy/item-trigger.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/item-trigger.js +22 -0
- package/dist/components/accordion/anatomy/item-trigger.js.map +1 -0
- package/dist/components/accordion/anatomy/item.d.ts +12 -0
- package/dist/components/accordion/anatomy/item.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/item.js +26 -0
- package/dist/components/accordion/anatomy/item.js.map +1 -0
- package/dist/components/accordion/anatomy/root-context.d.ts +11 -0
- package/dist/components/accordion/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/root-context.js +13 -0
- package/dist/components/accordion/anatomy/root-context.js.map +1 -0
- package/dist/components/accordion/anatomy/root-provider.d.ts +13 -0
- package/dist/components/accordion/anatomy/root-provider.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/root-provider.js +21 -0
- package/dist/components/accordion/anatomy/root-provider.js.map +1 -0
- package/dist/components/accordion/anatomy/root.d.ts +11 -0
- package/dist/components/accordion/anatomy/root.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/root.js +25 -0
- package/dist/components/accordion/anatomy/root.js.map +1 -0
- package/dist/components/accordion/index.js +4 -0
- package/dist/components/accordion/modules/anatomy.d.ts +22 -0
- package/dist/components/accordion/modules/anatomy.d.ts.map +1 -0
- package/dist/components/accordion/modules/anatomy.js +23 -0
- package/dist/components/accordion/modules/anatomy.js.map +1 -0
- package/dist/components/accordion/modules/item-context.js +8 -0
- package/dist/components/accordion/modules/item-context.js.map +1 -0
- package/dist/components/accordion/modules/root-context.js +9 -0
- package/dist/components/accordion/modules/root-context.js.map +1 -0
- package/dist/components/accordion/modules/use-accordion.d.ts +8 -0
- package/dist/components/accordion/modules/use-accordion.d.ts.map +1 -0
- package/dist/components/accordion/modules/use-accordion.js +16 -0
- package/dist/components/accordion/modules/use-accordion.js.map +1 -0
- package/dist/components/app-bar/anatomy/headline.d.ts +11 -0
- package/dist/components/app-bar/anatomy/headline.d.ts.map +1 -0
- package/dist/components/app-bar/anatomy/headline.js +17 -0
- package/dist/components/app-bar/anatomy/headline.js.map +1 -0
- package/dist/components/app-bar/anatomy/lead.d.ts +11 -0
- package/dist/components/app-bar/anatomy/lead.d.ts.map +1 -0
- package/dist/components/app-bar/anatomy/lead.js +17 -0
- package/dist/components/app-bar/anatomy/lead.js.map +1 -0
- package/dist/components/app-bar/anatomy/root.d.ts +11 -0
- package/dist/components/app-bar/anatomy/root.d.ts.map +1 -0
- package/dist/components/app-bar/anatomy/root.js +17 -0
- package/dist/components/app-bar/anatomy/root.js.map +1 -0
- package/dist/components/app-bar/anatomy/toolbar.d.ts +11 -0
- package/dist/components/app-bar/anatomy/toolbar.d.ts.map +1 -0
- package/dist/components/app-bar/anatomy/toolbar.js +17 -0
- package/dist/components/app-bar/anatomy/toolbar.js.map +1 -0
- package/dist/components/app-bar/anatomy/trail.d.ts +11 -0
- package/dist/components/app-bar/anatomy/trail.d.ts.map +1 -0
- package/dist/components/app-bar/anatomy/trail.js +17 -0
- package/dist/components/app-bar/anatomy/trail.js.map +1 -0
- package/dist/components/app-bar/index.js +3 -0
- package/dist/components/app-bar/modules/anatomy.d.ts +16 -0
- package/dist/components/app-bar/modules/anatomy.d.ts.map +1 -0
- package/dist/components/app-bar/modules/anatomy.js +17 -0
- package/dist/components/app-bar/modules/anatomy.js.map +1 -0
- package/dist/components/avatar/anatomy/fallback.d.ts +11 -0
- package/dist/components/avatar/anatomy/fallback.d.ts.map +1 -0
- package/dist/components/avatar/anatomy/fallback.js +20 -0
- package/dist/components/avatar/anatomy/fallback.js.map +1 -0
- package/dist/components/avatar/anatomy/image.d.ts +11 -0
- package/dist/components/avatar/anatomy/image.d.ts.map +1 -0
- package/dist/components/avatar/anatomy/image.js +17 -0
- package/dist/components/avatar/anatomy/image.js.map +1 -0
- package/dist/components/avatar/anatomy/root-context.d.ts +11 -0
- package/dist/components/avatar/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/avatar/anatomy/root-context.js +13 -0
- package/dist/components/avatar/anatomy/root-context.js.map +1 -0
- package/dist/components/avatar/anatomy/root-provider.d.ts +13 -0
- package/dist/components/avatar/anatomy/root-provider.d.ts.map +1 -0
- package/dist/components/avatar/anatomy/root-provider.js +21 -0
- package/dist/components/avatar/anatomy/root-provider.js.map +1 -0
- package/dist/components/avatar/anatomy/root.d.ts +11 -0
- package/dist/components/avatar/anatomy/root.d.ts.map +1 -0
- package/dist/components/avatar/anatomy/root.js +25 -0
- package/dist/components/avatar/anatomy/root.js.map +1 -0
- package/dist/components/avatar/index.js +4 -0
- package/dist/components/avatar/modules/anatomy.d.ts +16 -0
- package/dist/components/avatar/modules/anatomy.d.ts.map +1 -0
- package/dist/components/avatar/modules/anatomy.js +17 -0
- package/dist/components/avatar/modules/anatomy.js.map +1 -0
- package/dist/components/avatar/modules/root-context.js +8 -0
- package/dist/components/avatar/modules/root-context.js.map +1 -0
- package/dist/components/avatar/modules/use-avatar.d.ts +8 -0
- package/dist/components/avatar/modules/use-avatar.d.ts.map +1 -0
- package/dist/components/avatar/modules/use-avatar.js +16 -0
- package/dist/components/avatar/modules/use-avatar.js.map +1 -0
- package/dist/components/dialog/anatomy/backdrop.d.ts +11 -0
- package/dist/components/dialog/anatomy/backdrop.d.ts.map +1 -0
- package/dist/components/dialog/anatomy/backdrop.js +17 -0
- package/dist/components/dialog/anatomy/backdrop.js.map +1 -0
- package/dist/components/dialog/anatomy/close-trigger.d.ts +11 -0
- package/dist/components/dialog/anatomy/close-trigger.d.ts.map +1 -0
- package/dist/components/dialog/anatomy/close-trigger.js +20 -0
- package/dist/components/dialog/anatomy/close-trigger.js.map +1 -0
- package/dist/components/dialog/anatomy/content.d.ts +11 -0
- package/dist/components/dialog/anatomy/content.d.ts.map +1 -0
- package/dist/components/dialog/anatomy/content.js +20 -0
- package/dist/components/dialog/anatomy/content.js.map +1 -0
- package/dist/components/dialog/anatomy/description.d.ts +11 -0
- package/dist/components/dialog/anatomy/description.d.ts.map +1 -0
- package/dist/components/dialog/anatomy/description.js +20 -0
- package/dist/components/dialog/anatomy/description.js.map +1 -0
- package/dist/components/dialog/anatomy/positioner.d.ts +11 -0
- package/dist/components/dialog/anatomy/positioner.d.ts.map +1 -0
- package/dist/components/dialog/anatomy/positioner.js +20 -0
- package/dist/components/dialog/anatomy/positioner.js.map +1 -0
- package/dist/components/dialog/anatomy/root-context.d.ts +11 -0
- package/dist/components/dialog/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/dialog/anatomy/root-context.js +13 -0
- package/dist/components/dialog/anatomy/root-context.js.map +1 -0
- package/dist/components/dialog/anatomy/root-provider.d.ts +12 -0
- package/dist/components/dialog/anatomy/root-provider.d.ts.map +1 -0
- package/dist/components/dialog/anatomy/root-provider.js +15 -0
- package/dist/components/dialog/anatomy/root-provider.js.map +1 -0
- package/dist/components/dialog/anatomy/root.d.ts +10 -0
- package/dist/components/dialog/anatomy/root.d.ts.map +1 -0
- package/dist/components/dialog/anatomy/root.js +20 -0
- package/dist/components/dialog/anatomy/root.js.map +1 -0
- package/dist/components/dialog/anatomy/title.d.ts +11 -0
- package/dist/components/dialog/anatomy/title.d.ts.map +1 -0
- package/dist/components/dialog/anatomy/title.js +20 -0
- package/dist/components/dialog/anatomy/title.js.map +1 -0
- package/dist/components/dialog/anatomy/trigger.d.ts +11 -0
- package/dist/components/dialog/anatomy/trigger.d.ts.map +1 -0
- package/dist/components/dialog/anatomy/trigger.js +20 -0
- package/dist/components/dialog/anatomy/trigger.js.map +1 -0
- package/dist/components/dialog/index.js +4 -0
- package/dist/components/dialog/modules/anatomy.d.ts +26 -0
- package/dist/components/dialog/modules/anatomy.d.ts.map +1 -0
- package/dist/components/dialog/modules/anatomy.js +27 -0
- package/dist/components/dialog/modules/anatomy.js.map +1 -0
- package/dist/components/dialog/modules/root-context.js +8 -0
- package/dist/components/dialog/modules/root-context.js.map +1 -0
- package/dist/components/dialog/modules/use-dialog.d.ts +8 -0
- package/dist/components/dialog/modules/use-dialog.d.ts.map +1 -0
- package/dist/components/dialog/modules/use-dialog.js +16 -0
- package/dist/components/dialog/modules/use-dialog.js.map +1 -0
- package/dist/components/file-upload/anatomy/dropzone.d.ts +11 -0
- package/dist/components/file-upload/anatomy/dropzone.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/dropzone.js +20 -0
- package/dist/components/file-upload/anatomy/dropzone.js.map +1 -0
- package/dist/components/file-upload/anatomy/hidden-input.d.ts +11 -0
- package/dist/components/file-upload/anatomy/hidden-input.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/hidden-input.js +17 -0
- package/dist/components/file-upload/anatomy/hidden-input.js.map +1 -0
- package/dist/components/file-upload/anatomy/item-delete-trigger.d.ts +11 -0
- package/dist/components/file-upload/anatomy/item-delete-trigger.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/item-delete-trigger.js +22 -0
- package/dist/components/file-upload/anatomy/item-delete-trigger.js.map +1 -0
- package/dist/components/file-upload/anatomy/item-group.d.ts +11 -0
- package/dist/components/file-upload/anatomy/item-group.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/item-group.js +20 -0
- package/dist/components/file-upload/anatomy/item-group.js.map +1 -0
- package/dist/components/file-upload/anatomy/item-name.d.ts +11 -0
- package/dist/components/file-upload/anatomy/item-name.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/item-name.js +22 -0
- package/dist/components/file-upload/anatomy/item-name.js.map +1 -0
- package/dist/components/file-upload/anatomy/item-size-text.d.ts +11 -0
- package/dist/components/file-upload/anatomy/item-size-text.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/item-size-text.js +22 -0
- package/dist/components/file-upload/anatomy/item-size-text.js.map +1 -0
- package/dist/components/file-upload/anatomy/item.d.ts +11 -0
- package/dist/components/file-upload/anatomy/item.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/item.js +26 -0
- package/dist/components/file-upload/anatomy/item.js.map +1 -0
- package/dist/components/file-upload/anatomy/root-context.d.ts +11 -0
- package/dist/components/file-upload/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/root-context.js +13 -0
- package/dist/components/file-upload/anatomy/root-context.js.map +1 -0
- package/dist/components/file-upload/anatomy/root-provider.d.ts +13 -0
- package/dist/components/file-upload/anatomy/root-provider.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/root-provider.js +21 -0
- package/dist/components/file-upload/anatomy/root-provider.js.map +1 -0
- package/dist/components/file-upload/anatomy/root.d.ts +11 -0
- package/dist/components/file-upload/anatomy/root.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/root.js +25 -0
- package/dist/components/file-upload/anatomy/root.js.map +1 -0
- package/dist/components/file-upload/anatomy/trigger.d.ts +11 -0
- package/dist/components/file-upload/anatomy/trigger.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/trigger.js +20 -0
- package/dist/components/file-upload/anatomy/trigger.js.map +1 -0
- package/dist/components/file-upload/index.js +4 -0
- package/dist/components/file-upload/modules/anatomy.d.ts +28 -0
- package/dist/components/file-upload/modules/anatomy.d.ts.map +1 -0
- package/dist/components/file-upload/modules/anatomy.js +29 -0
- package/dist/components/file-upload/modules/anatomy.js.map +1 -0
- package/dist/components/file-upload/modules/item-context.js +8 -0
- package/dist/components/file-upload/modules/item-context.js.map +1 -0
- package/dist/components/file-upload/modules/root-context.js +8 -0
- package/dist/components/file-upload/modules/root-context.js.map +1 -0
- package/dist/components/file-upload/modules/use-file-upload.d.ts +8 -0
- package/dist/components/file-upload/modules/use-file-upload.d.ts.map +1 -0
- package/dist/components/file-upload/modules/use-file-upload.js +16 -0
- package/dist/components/file-upload/modules/use-file-upload.js.map +1 -0
- package/dist/components/popover/anatomy/arrow-tip.d.ts +11 -0
- package/dist/components/popover/anatomy/arrow-tip.d.ts.map +1 -0
- package/dist/components/popover/anatomy/arrow-tip.js +20 -0
- package/dist/components/popover/anatomy/arrow-tip.js.map +1 -0
- package/dist/components/popover/anatomy/arrow.d.ts +11 -0
- package/dist/components/popover/anatomy/arrow.d.ts.map +1 -0
- package/dist/components/popover/anatomy/arrow.js +20 -0
- package/dist/components/popover/anatomy/arrow.js.map +1 -0
- package/dist/components/popover/anatomy/close-trigger.d.ts +11 -0
- package/dist/components/popover/anatomy/close-trigger.d.ts.map +1 -0
- package/dist/components/popover/anatomy/close-trigger.js +20 -0
- package/dist/components/popover/anatomy/close-trigger.js.map +1 -0
- package/dist/components/popover/anatomy/content.d.ts +11 -0
- package/dist/components/popover/anatomy/content.d.ts.map +1 -0
- package/dist/components/popover/anatomy/content.js +20 -0
- package/dist/components/popover/anatomy/content.js.map +1 -0
- package/dist/components/popover/anatomy/description.d.ts +11 -0
- package/dist/components/popover/anatomy/description.d.ts.map +1 -0
- package/dist/components/popover/anatomy/description.js +20 -0
- package/dist/components/popover/anatomy/description.js.map +1 -0
- package/dist/components/popover/anatomy/positioner.d.ts +10 -0
- package/dist/components/popover/anatomy/positioner.d.ts.map +1 -0
- package/dist/components/popover/anatomy/positioner.js +21 -0
- package/dist/components/popover/anatomy/positioner.js.map +1 -0
- package/dist/components/popover/anatomy/root-context.d.ts +11 -0
- package/dist/components/popover/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/popover/anatomy/root-context.js +13 -0
- package/dist/components/popover/anatomy/root-context.js.map +1 -0
- package/dist/components/popover/anatomy/root-provider.d.ts +12 -0
- package/dist/components/popover/anatomy/root-provider.d.ts.map +1 -0
- package/dist/components/popover/anatomy/root-provider.js +15 -0
- package/dist/components/popover/anatomy/root-provider.js.map +1 -0
- package/dist/components/popover/anatomy/root.d.ts +10 -0
- package/dist/components/popover/anatomy/root.d.ts.map +1 -0
- package/dist/components/popover/anatomy/root.js +20 -0
- package/dist/components/popover/anatomy/root.js.map +1 -0
- package/dist/components/popover/anatomy/title.d.ts +11 -0
- package/dist/components/popover/anatomy/title.d.ts.map +1 -0
- package/dist/components/popover/anatomy/title.js +20 -0
- package/dist/components/popover/anatomy/title.js.map +1 -0
- package/dist/components/popover/anatomy/trigger.d.ts +12 -0
- package/dist/components/popover/anatomy/trigger.d.ts.map +1 -0
- package/dist/components/popover/anatomy/trigger.js +20 -0
- package/dist/components/popover/anatomy/trigger.js.map +1 -0
- package/dist/components/popover/index.js +4 -0
- package/dist/components/popover/modules/anatomy.d.ts +28 -0
- package/dist/components/popover/modules/anatomy.d.ts.map +1 -0
- package/dist/components/popover/modules/anatomy.js +29 -0
- package/dist/components/popover/modules/anatomy.js.map +1 -0
- package/dist/components/popover/modules/root-context.js +8 -0
- package/dist/components/popover/modules/root-context.js.map +1 -0
- package/dist/components/popover/modules/use-popover.d.ts +8 -0
- package/dist/components/popover/modules/use-popover.d.ts.map +1 -0
- package/dist/components/popover/modules/use-popover.js +16 -0
- package/dist/components/popover/modules/use-popover.js.map +1 -0
- package/dist/components/progress-linear/anatomy/label.d.ts +11 -0
- package/dist/components/progress-linear/anatomy/label.d.ts.map +1 -0
- package/dist/components/progress-linear/anatomy/label.js +20 -0
- package/dist/components/progress-linear/anatomy/label.js.map +1 -0
- package/dist/components/progress-linear/anatomy/range.d.ts +11 -0
- package/dist/components/progress-linear/anatomy/range.d.ts.map +1 -0
- package/dist/components/progress-linear/anatomy/range.js +17 -0
- package/dist/components/progress-linear/anatomy/range.js.map +1 -0
- package/dist/components/progress-linear/anatomy/root-context.d.ts +11 -0
- package/dist/components/progress-linear/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/progress-linear/anatomy/root-context.js +13 -0
- package/dist/components/progress-linear/anatomy/root-context.js.map +1 -0
- package/dist/components/progress-linear/anatomy/root-provider.d.ts +13 -0
- package/dist/components/progress-linear/anatomy/root-provider.d.ts.map +1 -0
- package/dist/components/progress-linear/anatomy/root-provider.js +21 -0
- package/dist/components/progress-linear/anatomy/root-provider.js.map +1 -0
- package/dist/components/progress-linear/anatomy/root.d.ts +11 -0
- package/dist/components/progress-linear/anatomy/root.d.ts.map +1 -0
- package/dist/components/progress-linear/anatomy/root.js +25 -0
- package/dist/components/progress-linear/anatomy/root.js.map +1 -0
- package/dist/components/progress-linear/anatomy/track.d.ts +11 -0
- package/dist/components/progress-linear/anatomy/track.d.ts.map +1 -0
- package/dist/components/progress-linear/anatomy/track.js +20 -0
- package/dist/components/progress-linear/anatomy/track.js.map +1 -0
- package/dist/components/progress-linear/index.js +4 -0
- package/dist/components/progress-linear/modules/anatomy.d.ts +18 -0
- package/dist/components/progress-linear/modules/anatomy.d.ts.map +1 -0
- package/dist/components/progress-linear/modules/anatomy.js +19 -0
- package/dist/components/progress-linear/modules/anatomy.js.map +1 -0
- package/dist/components/progress-linear/modules/root-context.js +8 -0
- package/dist/components/progress-linear/modules/root-context.js.map +1 -0
- package/dist/components/progress-linear/modules/use-progress-linear.d.ts +8 -0
- package/dist/components/progress-linear/modules/use-progress-linear.d.ts.map +1 -0
- package/dist/components/progress-linear/modules/use-progress-linear.js +16 -0
- package/dist/components/progress-linear/modules/use-progress-linear.js.map +1 -0
- package/dist/components/rating-group/anatomy/control.d.ts +11 -0
- package/dist/components/rating-group/anatomy/control.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/control.js +20 -0
- package/dist/components/rating-group/anatomy/control.js.map +1 -0
- package/dist/components/rating-group/anatomy/hidden-input.d.ts +11 -0
- package/dist/components/rating-group/anatomy/hidden-input.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/hidden-input.js +17 -0
- package/dist/components/rating-group/anatomy/hidden-input.js.map +1 -0
- package/dist/components/rating-group/anatomy/item.d.ts +32 -0
- package/dist/components/rating-group/anatomy/item.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/item.js +26 -0
- package/dist/components/rating-group/anatomy/item.js.map +1 -0
- package/dist/components/rating-group/anatomy/label.d.ts +11 -0
- package/dist/components/rating-group/anatomy/label.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/label.js +20 -0
- package/dist/components/rating-group/anatomy/label.js.map +1 -0
- package/dist/components/rating-group/anatomy/root-context.d.ts +11 -0
- package/dist/components/rating-group/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/root-context.js +13 -0
- package/dist/components/rating-group/anatomy/root-context.js.map +1 -0
- package/dist/components/rating-group/anatomy/root-provider.d.ts +13 -0
- package/dist/components/rating-group/anatomy/root-provider.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/root-provider.js +21 -0
- package/dist/components/rating-group/anatomy/root-provider.js.map +1 -0
- package/dist/components/rating-group/anatomy/root.d.ts +11 -0
- package/dist/components/rating-group/anatomy/root.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/root.js +25 -0
- package/dist/components/rating-group/anatomy/root.js.map +1 -0
- package/dist/components/rating-group/index.js +4 -0
- package/dist/components/rating-group/modules/anatomy.d.ts +20 -0
- package/dist/components/rating-group/modules/anatomy.d.ts.map +1 -0
- package/dist/components/rating-group/modules/anatomy.js +21 -0
- package/dist/components/rating-group/modules/anatomy.js.map +1 -0
- package/dist/components/rating-group/modules/root-context.js +8 -0
- package/dist/components/rating-group/modules/root-context.js.map +1 -0
- package/dist/components/rating-group/modules/use-rating-group.d.ts +8 -0
- package/dist/components/rating-group/modules/use-rating-group.d.ts.map +1 -0
- package/dist/components/rating-group/modules/use-rating-group.js +16 -0
- package/dist/components/rating-group/modules/use-rating-group.js.map +1 -0
- package/dist/components/segmented-control/anatomy/indicator.d.ts +11 -0
- package/dist/components/segmented-control/anatomy/indicator.d.ts.map +1 -0
- package/dist/components/segmented-control/anatomy/indicator.js +17 -0
- package/dist/components/segmented-control/anatomy/indicator.js.map +1 -0
- package/dist/components/segmented-control/anatomy/item-hidden-input.d.ts +11 -0
- package/dist/components/segmented-control/anatomy/item-hidden-input.d.ts.map +1 -0
- package/dist/components/segmented-control/anatomy/item-hidden-input.js +19 -0
- package/dist/components/segmented-control/anatomy/item-hidden-input.js.map +1 -0
- package/dist/components/segmented-control/anatomy/item-text.d.ts +11 -0
- package/dist/components/segmented-control/anatomy/item-text.d.ts.map +1 -0
- package/dist/components/segmented-control/anatomy/item-text.js +22 -0
- package/dist/components/segmented-control/anatomy/item-text.js.map +1 -0
- package/dist/components/segmented-control/anatomy/item.d.ts +11 -0
- package/dist/components/segmented-control/anatomy/item.d.ts.map +1 -0
- package/dist/components/segmented-control/anatomy/item.js +26 -0
- package/dist/components/segmented-control/anatomy/item.js.map +1 -0
- package/dist/components/segmented-control/anatomy/root-context.d.ts +11 -0
- package/dist/components/segmented-control/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/segmented-control/anatomy/root-context.js +13 -0
- package/dist/components/segmented-control/anatomy/root-context.js.map +1 -0
- package/dist/components/segmented-control/anatomy/root-provider.d.ts +13 -0
- package/dist/components/segmented-control/anatomy/root-provider.d.ts.map +1 -0
- package/dist/components/segmented-control/anatomy/root-provider.js +21 -0
- package/dist/components/segmented-control/anatomy/root-provider.js.map +1 -0
- package/dist/components/segmented-control/anatomy/root.d.ts +11 -0
- package/dist/components/segmented-control/anatomy/root.d.ts.map +1 -0
- package/dist/components/segmented-control/anatomy/root.js +25 -0
- package/dist/components/segmented-control/anatomy/root.js.map +1 -0
- package/dist/components/segmented-control/index.js +4 -0
- package/dist/components/segmented-control/modules/anatomy.d.ts +20 -0
- package/dist/components/segmented-control/modules/anatomy.d.ts.map +1 -0
- package/dist/components/segmented-control/modules/anatomy.js +21 -0
- package/dist/components/segmented-control/modules/anatomy.js.map +1 -0
- package/dist/components/segmented-control/modules/item-context.js +8 -0
- package/dist/components/segmented-control/modules/item-context.js.map +1 -0
- package/dist/components/segmented-control/modules/root-context.js +8 -0
- package/dist/components/segmented-control/modules/root-context.js.map +1 -0
- package/dist/components/segmented-control/modules/use-segmented-control.d.ts +8 -0
- package/dist/components/segmented-control/modules/use-segmented-control.d.ts.map +1 -0
- package/dist/components/segmented-control/modules/use-segmented-control.js +17 -0
- package/dist/components/segmented-control/modules/use-segmented-control.js.map +1 -0
- package/dist/components/switch/anatomy/control.d.ts +11 -0
- package/dist/components/switch/anatomy/control.d.ts.map +1 -0
- package/dist/components/switch/anatomy/control.js +20 -0
- package/dist/components/switch/anatomy/control.js.map +1 -0
- package/dist/components/switch/anatomy/hidden-input.d.ts +11 -0
- package/dist/components/switch/anatomy/hidden-input.d.ts.map +1 -0
- package/dist/components/switch/anatomy/hidden-input.js +17 -0
- package/dist/components/switch/anatomy/hidden-input.js.map +1 -0
- package/dist/components/switch/anatomy/label.d.ts +11 -0
- package/dist/components/switch/anatomy/label.d.ts.map +1 -0
- package/dist/components/switch/anatomy/label.js +20 -0
- package/dist/components/switch/anatomy/label.js.map +1 -0
- package/dist/components/switch/anatomy/root-context.d.ts +11 -0
- package/dist/components/switch/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/switch/anatomy/root-context.js +13 -0
- package/dist/components/switch/anatomy/root-context.js.map +1 -0
- package/dist/components/switch/anatomy/root-provider.d.ts +13 -0
- package/dist/components/switch/anatomy/root-provider.d.ts.map +1 -0
- package/dist/components/switch/anatomy/root-provider.js +21 -0
- package/dist/components/switch/anatomy/root-provider.js.map +1 -0
- package/dist/components/switch/anatomy/root.d.ts +11 -0
- package/dist/components/switch/anatomy/root.d.ts.map +1 -0
- package/dist/components/switch/anatomy/root.js +25 -0
- package/dist/components/switch/anatomy/root.js.map +1 -0
- package/dist/components/switch/anatomy/thumb.d.ts +11 -0
- package/dist/components/switch/anatomy/thumb.d.ts.map +1 -0
- package/dist/components/switch/anatomy/thumb.js +20 -0
- package/dist/components/switch/anatomy/thumb.js.map +1 -0
- package/dist/components/switch/index.js +4 -0
- package/dist/components/switch/modules/anatomy.d.ts +20 -0
- package/dist/components/switch/modules/anatomy.d.ts.map +1 -0
- package/dist/components/switch/modules/anatomy.js +21 -0
- package/dist/components/switch/modules/anatomy.js.map +1 -0
- package/dist/components/switch/modules/root-context.js +8 -0
- package/dist/components/switch/modules/root-context.js.map +1 -0
- package/dist/components/switch/modules/use-switch.d.ts +8 -0
- package/dist/components/switch/modules/use-switch.d.ts.map +1 -0
- package/dist/components/switch/modules/use-switch.js +16 -0
- package/dist/components/switch/modules/use-switch.js.map +1 -0
- package/dist/components/tabs/anatomy/content.d.ts +12 -0
- package/dist/components/tabs/anatomy/content.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/content.js +22 -0
- package/dist/components/tabs/anatomy/content.js.map +1 -0
- package/dist/components/tabs/anatomy/indicator.d.ts +11 -0
- package/dist/components/tabs/anatomy/indicator.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/indicator.js +17 -0
- package/dist/components/tabs/anatomy/indicator.js.map +1 -0
- package/dist/components/tabs/anatomy/list.d.ts +11 -0
- package/dist/components/tabs/anatomy/list.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/list.js +20 -0
- package/dist/components/tabs/anatomy/list.js.map +1 -0
- package/dist/components/tabs/anatomy/root-context.d.ts +11 -0
- package/dist/components/tabs/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/root-context.js +13 -0
- package/dist/components/tabs/anatomy/root-context.js.map +1 -0
- package/dist/components/tabs/anatomy/root-provider.d.ts +13 -0
- package/dist/components/tabs/anatomy/root-provider.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/root-provider.js +21 -0
- package/dist/components/tabs/anatomy/root-provider.js.map +1 -0
- package/dist/components/tabs/anatomy/root.d.ts +11 -0
- package/dist/components/tabs/anatomy/root.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/root.js +25 -0
- package/dist/components/tabs/anatomy/root.js.map +1 -0
- package/dist/components/tabs/anatomy/trigger.d.ts +12 -0
- package/dist/components/tabs/anatomy/trigger.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/trigger.js +22 -0
- package/dist/components/tabs/anatomy/trigger.js.map +1 -0
- package/dist/components/tabs/index.js +4 -0
- package/dist/components/tabs/modules/anatomy.d.ts +20 -0
- package/dist/components/tabs/modules/anatomy.d.ts.map +1 -0
- package/dist/components/tabs/modules/anatomy.js +21 -0
- package/dist/components/tabs/modules/anatomy.js.map +1 -0
- package/dist/components/tabs/modules/root-context.js +8 -0
- package/dist/components/tabs/modules/root-context.js.map +1 -0
- package/dist/components/tabs/modules/use-tabs.d.ts +8 -0
- package/dist/components/tabs/modules/use-tabs.d.ts.map +1 -0
- package/dist/components/tabs/modules/use-tabs.js +16 -0
- package/dist/components/tabs/modules/use-tabs.js.map +1 -0
- package/dist/components/tags-input/anatomy/clear-trigger.d.ts +11 -0
- package/dist/components/tags-input/anatomy/clear-trigger.d.ts.map +1 -0
- package/dist/components/tags-input/anatomy/clear-trigger.js +20 -0
- package/dist/components/tags-input/anatomy/clear-trigger.js.map +1 -0
- package/dist/components/tags-input/anatomy/control.d.ts +11 -0
- package/dist/components/tags-input/anatomy/control.d.ts.map +1 -0
- package/dist/components/tags-input/anatomy/control.js +20 -0
- package/dist/components/tags-input/anatomy/control.js.map +1 -0
- package/dist/components/tags-input/anatomy/hidden-input.d.ts +11 -0
- package/dist/components/tags-input/anatomy/hidden-input.d.ts.map +1 -0
- package/dist/components/tags-input/anatomy/hidden-input.js +17 -0
- package/dist/components/tags-input/anatomy/hidden-input.js.map +1 -0
- package/dist/components/tags-input/anatomy/input.d.ts +11 -0
- package/dist/components/tags-input/anatomy/input.d.ts.map +1 -0
- package/dist/components/tags-input/anatomy/input.js +17 -0
- package/dist/components/tags-input/anatomy/input.js.map +1 -0
- package/dist/components/tags-input/anatomy/item-delete-trigger.d.ts +11 -0
- package/dist/components/tags-input/anatomy/item-delete-trigger.d.ts.map +1 -0
- package/dist/components/tags-input/anatomy/item-delete-trigger.js +22 -0
- package/dist/components/tags-input/anatomy/item-delete-trigger.js.map +1 -0
- package/dist/components/tags-input/anatomy/item-input.d.ts +11 -0
- package/dist/components/tags-input/anatomy/item-input.d.ts.map +1 -0
- package/dist/components/tags-input/anatomy/item-input.js +19 -0
- package/dist/components/tags-input/anatomy/item-input.js.map +1 -0
- package/dist/components/tags-input/anatomy/item-preview.d.ts +11 -0
- package/dist/components/tags-input/anatomy/item-preview.d.ts.map +1 -0
- package/dist/components/tags-input/anatomy/item-preview.js +22 -0
- package/dist/components/tags-input/anatomy/item-preview.js.map +1 -0
- package/dist/components/tags-input/anatomy/item-text.d.ts +11 -0
- package/dist/components/tags-input/anatomy/item-text.d.ts.map +1 -0
- package/dist/components/tags-input/anatomy/item-text.js +22 -0
- package/dist/components/tags-input/anatomy/item-text.js.map +1 -0
- package/dist/components/tags-input/anatomy/item.d.ts +11 -0
- package/dist/components/tags-input/anatomy/item.d.ts.map +1 -0
- package/dist/components/tags-input/anatomy/item.js +26 -0
- package/dist/components/tags-input/anatomy/item.js.map +1 -0
- package/dist/components/tags-input/anatomy/label.d.ts +11 -0
- package/dist/components/tags-input/anatomy/label.d.ts.map +1 -0
- package/dist/components/tags-input/anatomy/label.js +20 -0
- package/dist/components/tags-input/anatomy/label.js.map +1 -0
- package/dist/components/tags-input/anatomy/root-context.d.ts +11 -0
- package/dist/components/tags-input/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/tags-input/anatomy/root-context.js +13 -0
- package/dist/components/tags-input/anatomy/root-context.js.map +1 -0
- package/dist/components/tags-input/anatomy/root-provider.d.ts +13 -0
- package/dist/components/tags-input/anatomy/root-provider.d.ts.map +1 -0
- package/dist/components/tags-input/anatomy/root-provider.js +21 -0
- package/dist/components/tags-input/anatomy/root-provider.js.map +1 -0
- package/dist/components/tags-input/anatomy/root.d.ts +11 -0
- package/dist/components/tags-input/anatomy/root.d.ts.map +1 -0
- package/dist/components/tags-input/anatomy/root.js +25 -0
- package/dist/components/tags-input/anatomy/root.js.map +1 -0
- package/dist/components/tags-input/index.js +4 -0
- package/dist/components/tags-input/modules/anatomy.d.ts +32 -0
- package/dist/components/tags-input/modules/anatomy.d.ts.map +1 -0
- package/dist/components/tags-input/modules/anatomy.js +33 -0
- package/dist/components/tags-input/modules/anatomy.js.map +1 -0
- package/dist/components/tags-input/modules/item-context.js +8 -0
- package/dist/components/tags-input/modules/item-context.js.map +1 -0
- package/dist/components/tags-input/modules/root-context.js +8 -0
- package/dist/components/tags-input/modules/root-context.js.map +1 -0
- package/dist/components/tags-input/modules/use-tags-input.d.ts +8 -0
- package/dist/components/tags-input/modules/use-tags-input.d.ts.map +1 -0
- package/dist/components/tags-input/modules/use-tags-input.js +16 -0
- package/dist/components/tags-input/modules/use-tags-input.js.map +1 -0
- package/dist/components/toast/anatomy/action-trigger.d.ts +11 -0
- package/dist/components/toast/anatomy/action-trigger.d.ts.map +1 -0
- package/dist/components/toast/anatomy/action-trigger.js +20 -0
- package/dist/components/toast/anatomy/action-trigger.js.map +1 -0
- package/dist/components/toast/anatomy/close-trigger.d.ts +11 -0
- package/dist/components/toast/anatomy/close-trigger.d.ts.map +1 -0
- package/dist/components/toast/anatomy/close-trigger.js +21 -0
- package/dist/components/toast/anatomy/close-trigger.js.map +1 -0
- package/dist/components/toast/anatomy/description.d.ts +11 -0
- package/dist/components/toast/anatomy/description.d.ts.map +1 -0
- package/dist/components/toast/anatomy/description.js +20 -0
- package/dist/components/toast/anatomy/description.js.map +1 -0
- package/dist/components/toast/anatomy/group.d.ts +15 -0
- package/dist/components/toast/anatomy/group.d.ts.map +1 -0
- package/dist/components/toast/anatomy/group.js +28 -0
- package/dist/components/toast/anatomy/group.js.map +1 -0
- package/dist/components/toast/anatomy/message.d.ts +11 -0
- package/dist/components/toast/anatomy/message.d.ts.map +1 -0
- package/dist/components/toast/anatomy/message.js +17 -0
- package/dist/components/toast/anatomy/message.js.map +1 -0
- package/dist/components/toast/anatomy/root-context.d.ts +12 -0
- package/dist/components/toast/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/toast/anatomy/root-context.js +13 -0
- package/dist/components/toast/anatomy/root-context.js.map +1 -0
- package/dist/components/toast/anatomy/root.d.ts +13 -0
- package/dist/components/toast/anatomy/root.d.ts.map +1 -0
- package/dist/components/toast/anatomy/root.js +58 -0
- package/dist/components/toast/anatomy/root.js.map +1 -0
- package/dist/components/toast/anatomy/title.d.ts +11 -0
- package/dist/components/toast/anatomy/title.d.ts.map +1 -0
- package/dist/components/toast/anatomy/title.js +20 -0
- package/dist/components/toast/anatomy/title.js.map +1 -0
- package/dist/components/toast/index.d.ts +10 -0
- package/dist/components/toast/index.js +4 -0
- package/dist/components/toast/modules/anatomy.d.ts +22 -0
- package/dist/components/toast/modules/anatomy.d.ts.map +1 -0
- package/dist/components/toast/modules/anatomy.js +23 -0
- package/dist/components/toast/modules/anatomy.js.map +1 -0
- package/dist/components/toast/modules/group-context.js +8 -0
- package/dist/components/toast/modules/group-context.js.map +1 -0
- package/dist/components/toast/modules/root-context.js +8 -0
- package/dist/components/toast/modules/root-context.js.map +1 -0
- package/dist/components/tooltip/anatomy/arrow-tip.d.ts +11 -0
- package/dist/components/tooltip/anatomy/arrow-tip.d.ts.map +1 -0
- package/dist/components/tooltip/anatomy/arrow-tip.js +20 -0
- package/dist/components/tooltip/anatomy/arrow-tip.js.map +1 -0
- package/dist/components/tooltip/anatomy/arrow.d.ts +11 -0
- package/dist/components/tooltip/anatomy/arrow.d.ts.map +1 -0
- package/dist/components/tooltip/anatomy/arrow.js +20 -0
- package/dist/components/tooltip/anatomy/arrow.js.map +1 -0
- package/dist/components/tooltip/anatomy/content.d.ts +11 -0
- package/dist/components/tooltip/anatomy/content.d.ts.map +1 -0
- package/dist/components/tooltip/anatomy/content.js +20 -0
- package/dist/components/tooltip/anatomy/content.js.map +1 -0
- package/dist/components/tooltip/anatomy/positioner.d.ts +10 -0
- package/dist/components/tooltip/anatomy/positioner.d.ts.map +1 -0
- package/dist/components/tooltip/anatomy/positioner.js +20 -0
- package/dist/components/tooltip/anatomy/positioner.js.map +1 -0
- package/dist/components/tooltip/anatomy/root-context.d.ts +11 -0
- package/dist/components/tooltip/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/tooltip/anatomy/root-context.js +13 -0
- package/dist/components/tooltip/anatomy/root-context.js.map +1 -0
- package/dist/components/tooltip/anatomy/root-provider.d.ts +12 -0
- package/dist/components/tooltip/anatomy/root-provider.d.ts.map +1 -0
- package/dist/components/tooltip/anatomy/root-provider.js +15 -0
- package/dist/components/tooltip/anatomy/root-provider.js.map +1 -0
- package/dist/components/tooltip/anatomy/root.d.ts +10 -0
- package/dist/components/tooltip/anatomy/root.d.ts.map +1 -0
- package/dist/components/tooltip/anatomy/root.js +19 -0
- package/dist/components/tooltip/anatomy/root.js.map +1 -0
- package/dist/components/tooltip/anatomy/trigger.d.ts +11 -0
- package/dist/components/tooltip/anatomy/trigger.d.ts.map +1 -0
- package/dist/components/tooltip/anatomy/trigger.js +20 -0
- package/dist/components/tooltip/anatomy/trigger.js.map +1 -0
- package/dist/components/tooltip/index.js +4 -0
- package/dist/components/tooltip/modules/anatomy.d.ts +22 -0
- package/dist/components/tooltip/modules/anatomy.d.ts.map +1 -0
- package/dist/components/tooltip/modules/anatomy.js +23 -0
- package/dist/components/tooltip/modules/anatomy.js.map +1 -0
- package/dist/components/tooltip/modules/root-context.js +8 -0
- package/dist/components/tooltip/modules/root-context.js.map +1 -0
- package/dist/components/tooltip/modules/use-tooltip.d.ts +8 -0
- package/dist/components/tooltip/modules/use-tooltip.d.ts.map +1 -0
- package/dist/components/tooltip/modules/use-tooltip.js +16 -0
- package/dist/components/tooltip/modules/use-tooltip.js.map +1 -0
- package/dist/index.d.ts +137 -85
- package/dist/index.js +42 -162
- package/dist/internal/components/star-empty.js +23 -0
- package/dist/internal/components/star-empty.js.map +1 -0
- package/dist/internal/components/star-full.js +21 -0
- package/dist/internal/components/star-full.js.map +1 -0
- package/dist/internal/components/star-half.js +37 -0
- package/dist/internal/components/star-half.js.map +1 -0
- package/dist/internal/components/x.js +26 -0
- package/dist/internal/components/x.js.map +1 -0
- package/dist/internal/create-context.js +10 -0
- package/dist/internal/create-context.js.map +1 -0
- package/dist/internal/html-attributes.d.ts +7 -0
- package/dist/internal/html-attributes.d.ts.map +1 -0
- package/dist/internal/props-with-element.d.ts +13 -0
- package/dist/internal/props-with-element.d.ts.map +1 -0
- package/package.json +36 -30
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SwitchRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { use } from "react";
|
|
3
|
+
import { mergeProps } from "@zag-js/react";
|
|
4
|
+
import { classesSwitch } from "@skeletonlabs/skeleton-common";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/switch/anatomy/label.tsx
|
|
8
|
+
function Label(props) {
|
|
9
|
+
const switch_ = use(SwitchRootContext);
|
|
10
|
+
const { element, children,...rest } = props;
|
|
11
|
+
const attributes = mergeProps(switch_.getLabelProps(), rest, { className: classesSwitch.label });
|
|
12
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
13
|
+
...attributes,
|
|
14
|
+
children
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { Label as default };
|
|
20
|
+
//# sourceMappingURL=label.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.js","names":[],"sources":["../../../../src/components/switch/anatomy/label.tsx"],"sourcesContent":["import { SwitchRootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesSwitch } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface SwitchLabelProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}\n\nexport default function Label(props: SwitchLabelProps) {\n\tconst switch_ = use(SwitchRootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(switch_.getLabelProps(), rest, {\n\t\tclassName: classesSwitch.label,\n\t});\n\n\treturn element ? element(attributes) : <span {...attributes}>{children}</span>;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,MAAM,OAAyB;CACtD,MAAM,UAAU,IAAI,kBAAkB;CAEtC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,QAAQ,eAAe,EAAE,MAAM,EAC5D,WAAW,cAAc,OACzB,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAK,GAAI;EAAa;GAAgB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useSwitch } from "../modules/use-switch.js";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/switch/anatomy/root-context.d.ts
|
|
5
|
+
interface SwitchRootContextProps {
|
|
6
|
+
children: (switch_: ReturnType<typeof useSwitch>) => ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare function RootContext(props: SwitchRootContextProps): ReactNode;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { RootContext, SwitchRootContextProps };
|
|
11
|
+
//# sourceMappingURL=root-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-context.d.ts","names":[],"sources":["../../../../src/components/switch/anatomy/root-context.tsx"],"sourcesContent":[],"mappings":";;;;UAKiB,sBAAA;sBACI,kBAAkB,eAAe;AADtD;AAAuC,iBAIf,WAAA,CAJe,KAAA,EAII,sBAJJ,CAAA,EAI0B,SAJ1B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SwitchRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { use } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/switch/anatomy/root-context.tsx
|
|
5
|
+
function RootContext(props) {
|
|
6
|
+
const switch_ = use(SwitchRootContext);
|
|
7
|
+
const { children } = props;
|
|
8
|
+
return children(switch_);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { RootContext as default };
|
|
13
|
+
//# sourceMappingURL=root-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-context.js","names":[],"sources":["../../../../src/components/switch/anatomy/root-context.tsx"],"sourcesContent":["import { SwitchRootContext } from '../modules/root-context';\nimport type { useSwitch } from '../modules/use-switch';\nimport { use } from 'react';\nimport type { ReactNode } from 'react';\n\nexport interface SwitchRootContextProps {\n\tchildren: (switch_: ReturnType<typeof useSwitch>) => ReactNode;\n}\n\nexport default function RootContext(props: SwitchRootContextProps) {\n\tconst switch_ = use(SwitchRootContext);\n\n\tconst { children } = props;\n\n\treturn children(switch_);\n}\n"],"mappings":";;;;AASA,SAAwB,YAAY,OAA+B;CAClE,MAAM,UAAU,IAAI,kBAAkB;CAEtC,MAAM,EAAE,aAAa;AAErB,QAAO,SAAS,QAAQ"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import { useSwitch } from "../modules/use-switch.js";
|
|
4
|
+
import * as react_jsx_runtime60 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/switch/anatomy/root-provider.d.ts
|
|
7
|
+
interface SwitchRootProviderProps extends PropsWithElement<'label'>, HTMLAttributes<'label', 'id' | 'dir'> {
|
|
8
|
+
value: ReturnType<typeof useSwitch>;
|
|
9
|
+
}
|
|
10
|
+
declare function RootProvider(props: SwitchRootProviderProps): react_jsx_runtime60.JSX.Element;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { RootProvider, SwitchRootProviderProps };
|
|
13
|
+
//# sourceMappingURL=root-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-provider.d.ts","names":[],"sources":["../../../../src/components/switch/anatomy/root-provider.tsx"],"sourcesContent":[],"mappings":";;;;;;UAOiB,uBAAA,SAAgC,2BAA2B;SACpE,kBAAkB;;AADT,iBAIO,YAAA,CAJiB,KAAA,EAIG,uBAJH,CAAA,EAI0B,mBAAA,CAAA,GAAA,CAAA,OAJ1B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SwitchRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { mergeProps } from "@zag-js/react";
|
|
3
|
+
import { classesSwitch } from "@skeletonlabs/skeleton-common";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/switch/anatomy/root-provider.tsx
|
|
7
|
+
function RootProvider(props) {
|
|
8
|
+
const { element, children, value: switch_,...rest } = props;
|
|
9
|
+
const attributes = mergeProps(switch_.getRootProps(), rest, { className: classesSwitch.root });
|
|
10
|
+
return /* @__PURE__ */ jsx(SwitchRootContext.Provider, {
|
|
11
|
+
value: switch_,
|
|
12
|
+
children: element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
13
|
+
...attributes,
|
|
14
|
+
children
|
|
15
|
+
})
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { RootProvider as default };
|
|
21
|
+
//# sourceMappingURL=root-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-provider.js","names":[],"sources":["../../../../src/components/switch/anatomy/root-provider.tsx"],"sourcesContent":["import { SwitchRootContext } from '../modules/root-context';\nimport type { useSwitch } from '../modules/use-switch';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesSwitch } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\n\nexport interface SwitchRootProviderProps extends PropsWithElement<'label'>, HTMLAttributes<'label', 'id' | 'dir'> {\n\tvalue: ReturnType<typeof useSwitch>;\n}\n\nexport default function RootProvider(props: SwitchRootProviderProps) {\n\tconst { element, children, value: switch_, ...rest } = props;\n\n\tconst attributes = mergeProps(switch_.getRootProps(), rest, {\n\t\tclassName: classesSwitch.root,\n\t});\n\n\treturn (\n\t\t<SwitchRootContext.Provider value={switch_}>\n\t\t\t{element ? element(attributes) : <label {...attributes}>{children}</label>}\n\t\t</SwitchRootContext.Provider>\n\t);\n}\n"],"mappings":";;;;;;AAWA,SAAwB,aAAa,OAAgC;CACpE,MAAM,EAAE,SAAS,UAAU,OAAO,QAAS,GAAG,SAAS;CAEvD,MAAM,aAAa,WAAW,QAAQ,cAAc,EAAE,MAAM,EAC3D,WAAW,cAAc,MACzB,CAAC;AAEF,QACC,oBAAC,kBAAkB;EAAS,OAAO;YACjC,UAAU,QAAQ,WAAW,GAAG,oBAAC;GAAM,GAAI;GAAa;IAAiB;GAC9C"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react_jsx_runtime97 from "react/jsx-runtime";
|
|
4
|
+
import { Props } from "@zag-js/switch";
|
|
5
|
+
|
|
6
|
+
//#region src/components/switch/anatomy/root.d.ts
|
|
7
|
+
interface SwitchRootProps extends Omit<Props, 'id'>, PropsWithElement<'label'>, HTMLAttributes<'label', 'id' | 'dir'> {}
|
|
8
|
+
declare function Root(props: SwitchRootProps): react_jsx_runtime97.JSX.Element;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { Root };
|
|
11
|
+
//# sourceMappingURL=root.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root.d.ts","names":[],"sources":["../../../../src/components/switch/anatomy/root.tsx"],"sourcesContent":[],"mappings":";;;;;;UASiB,eAAA,SAAwB,KAAK,cAAc,2BAA2B;iBAE/D,IAAA,QAAY,kBAAe,mBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { SwitchRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { useSwitch } from "../modules/use-switch.js";
|
|
3
|
+
import { mergeProps } from "@zag-js/react";
|
|
4
|
+
import { classesSwitch } from "@skeletonlabs/skeleton-common";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { splitProps } from "@zag-js/switch";
|
|
7
|
+
|
|
8
|
+
//#region src/components/switch/anatomy/root.tsx
|
|
9
|
+
function Root(props) {
|
|
10
|
+
const [switchProps, componentProps] = splitProps(props);
|
|
11
|
+
const { element, children,...rest } = componentProps;
|
|
12
|
+
const switch_ = useSwitch(switchProps);
|
|
13
|
+
const attributes = mergeProps(switch_.getRootProps(), rest, { className: classesSwitch.root });
|
|
14
|
+
return /* @__PURE__ */ jsx(SwitchRootContext.Provider, {
|
|
15
|
+
value: switch_,
|
|
16
|
+
children: element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
17
|
+
...attributes,
|
|
18
|
+
children
|
|
19
|
+
})
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { Root as default };
|
|
25
|
+
//# sourceMappingURL=root.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root.js","names":[],"sources":["../../../../src/components/switch/anatomy/root.tsx"],"sourcesContent":["import { SwitchRootContext } from '../modules/root-context';\nimport { useSwitch } from '../modules/use-switch';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesSwitch } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { splitProps } from '@zag-js/switch';\nimport type { Props } from '@zag-js/switch';\n\nexport interface SwitchRootProps extends Omit<Props, 'id'>, PropsWithElement<'label'>, HTMLAttributes<'label', 'id' | 'dir'> {}\n\nexport default function Root(props: SwitchRootProps) {\n\tconst [switchProps, componentProps] = splitProps(props);\n\tconst { element, children, ...rest } = componentProps;\n\n\tconst switch_ = useSwitch(switchProps);\n\n\tconst attributes = mergeProps(switch_.getRootProps(), rest, {\n\t\tclassName: classesSwitch.root,\n\t});\n\n\treturn (\n\t\t<SwitchRootContext.Provider value={switch_}>\n\t\t\t{element ? element(attributes) : <label {...attributes}>{children}</label>}\n\t\t</SwitchRootContext.Provider>\n\t);\n}\n"],"mappings":";;;;;;;;AAWA,SAAwB,KAAK,OAAwB;CACpD,MAAM,CAAC,aAAa,kBAAkB,WAAW,MAAM;CACvD,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,UAAU,UAAU,YAAY;CAEtC,MAAM,aAAa,WAAW,QAAQ,cAAc,EAAE,MAAM,EAC3D,WAAW,cAAc,MACzB,CAAC;AAEF,QACC,oBAAC,kBAAkB;EAAS,OAAO;YACjC,UAAU,QAAQ,WAAW,GAAG,oBAAC;GAAM,GAAI;GAAa;IAAiB;GAC9C"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react197 from "react";
|
|
4
|
+
import * as react_jsx_runtime61 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/switch/anatomy/thumb.d.ts
|
|
7
|
+
interface SwitchThumbProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
|
|
8
|
+
declare function Thumb(props: SwitchThumbProps): string | number | bigint | boolean | Iterable<react197.ReactNode> | Promise<string | number | bigint | boolean | react197.ReactPortal | react197.ReactElement<unknown, string | react197.JSXElementConstructor<any>> | Iterable<react197.ReactNode> | null | undefined> | react_jsx_runtime61.JSX.Element | null | undefined;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { SwitchThumbProps, Thumb };
|
|
11
|
+
//# sourceMappingURL=thumb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"thumb.d.ts","names":[],"sources":["../../../../src/components/switch/anatomy/thumb.tsx"],"sourcesContent":[],"mappings":";;;;;;UAOiB,gBAAA,SAAyB,0BAA0B;iBAE5C,KAAA,QAAa,wDAAgB,SAAA,QAAA,CAAA,SAAA,IAAA,6CAAA,QAAA,CAAA,WAAA,GAAA,QAAA,CAAA,+BAAA,QAAA,CAAA,8BAAA,SAAA,QAAA,CAAA,SAAA,wBAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SwitchRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { use } from "react";
|
|
3
|
+
import { mergeProps } from "@zag-js/react";
|
|
4
|
+
import { classesSwitch } from "@skeletonlabs/skeleton-common";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/switch/anatomy/thumb.tsx
|
|
8
|
+
function Thumb(props) {
|
|
9
|
+
const switch_ = use(SwitchRootContext);
|
|
10
|
+
const { element, children,...rest } = props;
|
|
11
|
+
const attributes = mergeProps(switch_.getThumbProps(), rest, { className: classesSwitch.thumb });
|
|
12
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
13
|
+
...attributes,
|
|
14
|
+
children
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { Thumb as default };
|
|
20
|
+
//# sourceMappingURL=thumb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"thumb.js","names":[],"sources":["../../../../src/components/switch/anatomy/thumb.tsx"],"sourcesContent":["import { SwitchRootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesSwitch } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface SwitchThumbProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}\n\nexport default function Thumb(props: SwitchThumbProps) {\n\tconst switch_ = use(SwitchRootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(switch_.getThumbProps(), rest, {\n\t\tclassName: classesSwitch.thumb,\n\t});\n\n\treturn element ? element(attributes) : <span {...attributes}>{children}</span>;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,MAAM,OAAyB;CACtD,MAAM,UAAU,IAAI,kBAAkB;CAEtC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,QAAQ,eAAe,EAAE,MAAM,EAC5D,WAAW,cAAc,OACzB,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAK,GAAI;EAAa;GAAgB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Control } from "../anatomy/control.js";
|
|
2
|
+
import { HiddenInput } from "../anatomy/hidden-input.js";
|
|
3
|
+
import { Label } from "../anatomy/label.js";
|
|
4
|
+
import { RootContext } from "../anatomy/root-context.js";
|
|
5
|
+
import { RootProvider } from "../anatomy/root-provider.js";
|
|
6
|
+
import { Thumb } from "../anatomy/thumb.js";
|
|
7
|
+
import { Root } from "../anatomy/root.js";
|
|
8
|
+
|
|
9
|
+
//#region src/components/switch/modules/anatomy.d.ts
|
|
10
|
+
declare const Switch: typeof Root & {
|
|
11
|
+
Provider: typeof RootProvider;
|
|
12
|
+
Context: typeof RootContext;
|
|
13
|
+
Control: typeof Control;
|
|
14
|
+
Thumb: typeof Thumb;
|
|
15
|
+
Label: typeof Label;
|
|
16
|
+
HiddenInput: typeof HiddenInput;
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { Switch };
|
|
20
|
+
//# sourceMappingURL=anatomy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anatomy.d.ts","names":[],"sources":["../../../../src/components/switch/modules/anatomy.ts"],"sourcesContent":[],"mappings":";;;;;;;;;cAQa,eAAM;;EAAN,OAAA,EAOX,kBAAA;EAAA,OAAA,EAAA,cAAA;OAPiB,EAAA,YAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import Control from "../anatomy/control.js";
|
|
2
|
+
import HiddenInput from "../anatomy/hidden-input.js";
|
|
3
|
+
import Label from "../anatomy/label.js";
|
|
4
|
+
import Root from "../anatomy/root.js";
|
|
5
|
+
import RootContext from "../anatomy/root-context.js";
|
|
6
|
+
import RootProvider from "../anatomy/root-provider.js";
|
|
7
|
+
import Thumb from "../anatomy/thumb.js";
|
|
8
|
+
|
|
9
|
+
//#region src/components/switch/modules/anatomy.ts
|
|
10
|
+
const Switch = Object.assign(Root, {
|
|
11
|
+
Provider: RootProvider,
|
|
12
|
+
Context: RootContext,
|
|
13
|
+
Control,
|
|
14
|
+
Thumb,
|
|
15
|
+
Label,
|
|
16
|
+
HiddenInput
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { Switch };
|
|
21
|
+
//# sourceMappingURL=anatomy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anatomy.js","names":[],"sources":["../../../../src/components/switch/modules/anatomy.ts"],"sourcesContent":["import Control from '../anatomy/control';\nimport HiddenInput from '../anatomy/hidden-input';\nimport Label from '../anatomy/label';\nimport Root from '../anatomy/root';\nimport RootContext from '../anatomy/root-context';\nimport RootProvider from '../anatomy/root-provider';\nimport Thumb from '../anatomy/thumb';\n\nexport const Switch = Object.assign(Root, {\n\tProvider: RootProvider,\n\tContext: RootContext,\n\tControl: Control,\n\tThumb: Thumb,\n\tLabel: Label,\n\tHiddenInput: HiddenInput,\n});\n"],"mappings":";;;;;;;;;AAQA,MAAa,SAAS,OAAO,OAAO,MAAM;CACzC,UAAU;CACV,SAAS;CACA;CACF;CACA;CACM;CACb,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-context.js","names":[],"sources":["../../../../src/components/switch/modules/root-context.ts"],"sourcesContent":["import type { useSwitch } from './use-switch';\nimport { createContext } from '@/internal/create-context';\n\nexport const SwitchRootContext = createContext<ReturnType<typeof useSwitch>>();\n"],"mappings":";;;AAGA,MAAa,oBAAoB,eAA6C"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PropTypes } from "@zag-js/react";
|
|
2
|
+
import { Api, Props } from "@zag-js/switch";
|
|
3
|
+
|
|
4
|
+
//#region src/components/switch/modules/use-switch.d.ts
|
|
5
|
+
declare function useSwitch(props?: Omit<Props, 'id'>): Api<PropTypes>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { useSwitch };
|
|
8
|
+
//# sourceMappingURL=use-switch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-switch.d.ts","names":[],"sources":["../../../../src/components/switch/modules/use-switch.ts"],"sourcesContent":[],"mappings":";;;;iBAKgB,SAAA,SAAiB,KAAK,eAAoB,IAAI"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useId } from "react";
|
|
2
|
+
import { normalizeProps, useMachine } from "@zag-js/react";
|
|
3
|
+
import { connect, machine } from "@zag-js/switch";
|
|
4
|
+
|
|
5
|
+
//#region src/components/switch/modules/use-switch.ts
|
|
6
|
+
function useSwitch(props = {}) {
|
|
7
|
+
const service = useMachine(machine, {
|
|
8
|
+
id: useId(),
|
|
9
|
+
...props
|
|
10
|
+
});
|
|
11
|
+
return connect(service, normalizeProps);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
export { useSwitch };
|
|
16
|
+
//# sourceMappingURL=use-switch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-switch.js","names":[],"sources":["../../../../src/components/switch/modules/use-switch.ts"],"sourcesContent":["import { normalizeProps, useMachine, type PropTypes } from '@zag-js/react';\nimport { connect, machine } from '@zag-js/switch';\nimport type { Api, Props } from '@zag-js/switch';\nimport { useId } from 'react';\n\nexport function useSwitch(props: Omit<Props, 'id'> = {}): Api<PropTypes> {\n\tconst service = useMachine(machine, {\n\t\tid: useId(),\n\t\t...props,\n\t});\n\treturn connect(service, normalizeProps);\n}\n"],"mappings":";;;;;AAKA,SAAgB,UAAU,QAA2B,EAAE,EAAkB;CACxE,MAAM,UAAU,WAAW,SAAS;EACnC,IAAI,OAAO;EACX,GAAG;EACH,CAAC;AACF,QAAO,QAAQ,SAAS,eAAe"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react282 from "react";
|
|
4
|
+
import * as react_jsx_runtime83 from "react/jsx-runtime";
|
|
5
|
+
import { ContentProps } from "@zag-js/tabs";
|
|
6
|
+
|
|
7
|
+
//#region src/components/tabs/anatomy/content.d.ts
|
|
8
|
+
interface TabsContentProps extends ContentProps, PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
9
|
+
declare function Content(props: TabsContentProps): string | number | bigint | boolean | Iterable<react282.ReactNode> | Promise<string | number | bigint | boolean | react282.ReactPortal | react282.ReactElement<unknown, string | react282.JSXElementConstructor<any>> | Iterable<react282.ReactNode> | null | undefined> | react_jsx_runtime83.JSX.Element | null | undefined;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { Content, TabsContentProps };
|
|
12
|
+
//# sourceMappingURL=content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.d.ts","names":[],"sources":["../../../../src/components/tabs/anatomy/content.tsx"],"sourcesContent":[],"mappings":";;;;;;;UASiB,gBAAA,SAAyB,cAAc,yBAAyB;iBAEzD,OAAA,QAAe,wDAAgB,SAAA,QAAA,CAAA,SAAA,IAAA,6CAAA,QAAA,CAAA,WAAA,GAAA,QAAA,CAAA,+BAAA,QAAA,CAAA,8BAAA,SAAA,QAAA,CAAA,SAAA,wBAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { TabsRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { use } from "react";
|
|
3
|
+
import { mergeProps } from "@zag-js/react";
|
|
4
|
+
import { classesTabs } from "@skeletonlabs/skeleton-common";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { splitContentProps } from "@zag-js/tabs";
|
|
7
|
+
|
|
8
|
+
//#region src/components/tabs/anatomy/content.tsx
|
|
9
|
+
function Content(props) {
|
|
10
|
+
const tabs = use(TabsRootContext);
|
|
11
|
+
const [contentProps, componentProps] = splitContentProps(props);
|
|
12
|
+
const { element, children,...rest } = componentProps;
|
|
13
|
+
const attributes = mergeProps(tabs.getContentProps(contentProps), rest, { className: classesTabs.content });
|
|
14
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
15
|
+
...attributes,
|
|
16
|
+
children
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { Content as default };
|
|
22
|
+
//# sourceMappingURL=content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.js","names":[],"sources":["../../../../src/components/tabs/anatomy/content.tsx"],"sourcesContent":["import { TabsRootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesTabs } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { splitContentProps } from '@zag-js/tabs';\nimport type { ContentProps } from '@zag-js/tabs';\nimport { use } from 'react';\n\nexport interface TabsContentProps extends ContentProps, PropsWithElement<'div'>, HTMLAttributes<'div'> {}\n\nexport default function Content(props: TabsContentProps) {\n\tconst tabs = use(TabsRootContext);\n\n\tconst [contentProps, componentProps] = splitContentProps(props);\n\tconst { element, children, ...rest } = componentProps;\n\n\tconst attributes = mergeProps(tabs.getContentProps(contentProps), rest, {\n\t\tclassName: classesTabs.content,\n\t});\n\n\treturn element ? element(attributes) : <div {...attributes}>{children}</div>;\n}\n"],"mappings":";;;;;;;;AAWA,SAAwB,QAAQ,OAAyB;CACxD,MAAM,OAAO,IAAI,gBAAgB;CAEjC,MAAM,CAAC,cAAc,kBAAkB,kBAAkB,MAAM;CAC/D,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,KAAK,gBAAgB,aAAa,EAAE,MAAM,EACvE,WAAW,YAAY,SACvB,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAI,GAAI;EAAa;GAAe"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react287 from "react";
|
|
4
|
+
import * as react_jsx_runtime84 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/tabs/anatomy/indicator.d.ts
|
|
7
|
+
interface TabsIndicatorProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'children'> {}
|
|
8
|
+
declare function Indicator(props: TabsIndicatorProps): string | number | bigint | boolean | Iterable<react287.ReactNode> | Promise<string | number | bigint | boolean | react287.ReactPortal | react287.ReactElement<unknown, string | react287.JSXElementConstructor<any>> | Iterable<react287.ReactNode> | null | undefined> | react_jsx_runtime84.JSX.Element | null | undefined;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { Indicator, TabsIndicatorProps };
|
|
11
|
+
//# sourceMappingURL=indicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"indicator.d.ts","names":[],"sources":["../../../../src/components/tabs/anatomy/indicator.tsx"],"sourcesContent":[],"mappings":";;;;;;UAOiB,kBAAA,SAA2B,yBAAyB;iBAE7C,SAAA,QAAiB,0DAAkB,SAAA,QAAA,CAAA,SAAA,IAAA,6CAAA,QAAA,CAAA,WAAA,GAAA,QAAA,CAAA,+BAAA,QAAA,CAAA,8BAAA,SAAA,QAAA,CAAA,SAAA,wBAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TabsRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { use } from "react";
|
|
3
|
+
import { mergeProps } from "@zag-js/react";
|
|
4
|
+
import { classesTabs } from "@skeletonlabs/skeleton-common";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/tabs/anatomy/indicator.tsx
|
|
8
|
+
function Indicator(props) {
|
|
9
|
+
const tabs = use(TabsRootContext);
|
|
10
|
+
const { element,...rest } = props;
|
|
11
|
+
const attributes = mergeProps(tabs.getIndicatorProps(), rest, { className: classesTabs.indicator });
|
|
12
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("div", { ...attributes });
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { Indicator as default };
|
|
17
|
+
//# sourceMappingURL=indicator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"indicator.js","names":[],"sources":["../../../../src/components/tabs/anatomy/indicator.tsx"],"sourcesContent":["import { TabsRootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesTabs } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface TabsIndicatorProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'children'> {}\n\nexport default function Indicator(props: TabsIndicatorProps) {\n\tconst tabs = use(TabsRootContext);\n\n\tconst { element, ...rest } = props;\n\n\tconst attributes = mergeProps(tabs.getIndicatorProps(), rest, {\n\t\tclassName: classesTabs.indicator,\n\t});\n\n\treturn element ? element(attributes) : <div {...attributes} />;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,UAAU,OAA2B;CAC5D,MAAM,OAAO,IAAI,gBAAgB;CAEjC,MAAM,EAAE,QAAS,GAAG,SAAS;CAE7B,MAAM,aAAa,WAAW,KAAK,mBAAmB,EAAE,MAAM,EAC7D,WAAW,YAAY,WACvB,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC,SAAI,GAAI,aAAc"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react292 from "react";
|
|
4
|
+
import * as react_jsx_runtime85 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/tabs/anatomy/list.d.ts
|
|
7
|
+
interface TabsListProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir'> {}
|
|
8
|
+
declare function List(props: TabsListProps): string | number | bigint | boolean | Iterable<react292.ReactNode> | Promise<string | number | bigint | boolean | react292.ReactPortal | react292.ReactElement<unknown, string | react292.JSXElementConstructor<any>> | Iterable<react292.ReactNode> | null | undefined> | react_jsx_runtime85.JSX.Element | null | undefined;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { List, TabsListProps };
|
|
11
|
+
//# sourceMappingURL=list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.d.ts","names":[],"sources":["../../../../src/components/tabs/anatomy/list.tsx"],"sourcesContent":[],"mappings":";;;;;;UAOiB,aAAA,SAAsB,yBAAyB;iBAExC,IAAA,QAAY,qDAAa,SAAA,QAAA,CAAA,SAAA,IAAA,6CAAA,QAAA,CAAA,WAAA,GAAA,QAAA,CAAA,+BAAA,QAAA,CAAA,8BAAA,SAAA,QAAA,CAAA,SAAA,wBAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { TabsRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { use } from "react";
|
|
3
|
+
import { mergeProps } from "@zag-js/react";
|
|
4
|
+
import { classesTabs } from "@skeletonlabs/skeleton-common";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/tabs/anatomy/list.tsx
|
|
8
|
+
function List(props) {
|
|
9
|
+
const tabs = use(TabsRootContext);
|
|
10
|
+
const { element, children,...rest } = props;
|
|
11
|
+
const attributes = mergeProps(tabs.getListProps(), rest, { className: classesTabs.list });
|
|
12
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
13
|
+
...attributes,
|
|
14
|
+
children
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { List as default };
|
|
20
|
+
//# sourceMappingURL=list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.js","names":[],"sources":["../../../../src/components/tabs/anatomy/list.tsx"],"sourcesContent":["import { TabsRootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesTabs } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface TabsListProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir'> {}\n\nexport default function List(props: TabsListProps) {\n\tconst tabs = use(TabsRootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(tabs.getListProps(), rest, {\n\t\tclassName: classesTabs.list,\n\t});\n\n\treturn element ? element(attributes) : <div {...attributes}>{children}</div>;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,KAAK,OAAsB;CAClD,MAAM,OAAO,IAAI,gBAAgB;CAEjC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,KAAK,cAAc,EAAE,MAAM,EACxD,WAAW,YAAY,MACvB,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAI,GAAI;EAAa;GAAe"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useTabs } from "../modules/use-tabs.js";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/tabs/anatomy/root-context.d.ts
|
|
5
|
+
interface TabsRootContextProps {
|
|
6
|
+
children: (tabs: ReturnType<typeof useTabs>) => ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare function RootContext(props: TabsRootContextProps): ReactNode;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { RootContext, TabsRootContextProps };
|
|
11
|
+
//# sourceMappingURL=root-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-context.d.ts","names":[],"sources":["../../../../src/components/tabs/anatomy/root-context.tsx"],"sourcesContent":[],"mappings":";;;;UAKiB,oBAAA;mBACC,kBAAkB,aAAa;AADjD;AAAqC,iBAIb,WAAA,CAJa,KAAA,EAIM,oBAJN,CAAA,EAI0B,SAJ1B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TabsRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { use } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/tabs/anatomy/root-context.tsx
|
|
5
|
+
function RootContext(props) {
|
|
6
|
+
const tabs = use(TabsRootContext);
|
|
7
|
+
const { children } = props;
|
|
8
|
+
return children(tabs);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { RootContext as default };
|
|
13
|
+
//# sourceMappingURL=root-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-context.js","names":[],"sources":["../../../../src/components/tabs/anatomy/root-context.tsx"],"sourcesContent":["import { TabsRootContext } from '../modules/root-context';\nimport type { useTabs } from '../modules/use-tabs';\nimport { use } from 'react';\nimport type { ReactNode } from 'react';\n\nexport interface TabsRootContextProps {\n\tchildren: (tabs: ReturnType<typeof useTabs>) => ReactNode;\n}\n\nexport default function RootContext(props: TabsRootContextProps) {\n\tconst tabs = use(TabsRootContext);\n\n\tconst { children } = props;\n\n\treturn children(tabs);\n}\n"],"mappings":";;;;AASA,SAAwB,YAAY,OAA6B;CAChE,MAAM,OAAO,IAAI,gBAAgB;CAEjC,MAAM,EAAE,aAAa;AAErB,QAAO,SAAS,KAAK"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import { useTabs } from "../modules/use-tabs.js";
|
|
4
|
+
import * as react_jsx_runtime87 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/tabs/anatomy/root-provider.d.ts
|
|
7
|
+
interface TabsRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {
|
|
8
|
+
value: ReturnType<typeof useTabs>;
|
|
9
|
+
}
|
|
10
|
+
declare function RootProvider(props: TabsRootProviderProps): react_jsx_runtime87.JSX.Element;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { RootProvider, TabsRootProviderProps };
|
|
13
|
+
//# sourceMappingURL=root-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-provider.d.ts","names":[],"sources":["../../../../src/components/tabs/anatomy/root-provider.tsx"],"sourcesContent":[],"mappings":";;;;;;UAOiB,qBAAA,SAA8B,yBAAyB;SAChE,kBAAkB;;AADT,iBAIO,YAAA,CAJe,KAAA,EAIK,qBAJL,CAAA,EAI0B,mBAAA,CAAA,GAAA,CAAA,OAJ1B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { TabsRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { mergeProps } from "@zag-js/react";
|
|
3
|
+
import { classesTabs } from "@skeletonlabs/skeleton-common";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/tabs/anatomy/root-provider.tsx
|
|
7
|
+
function RootProvider(props) {
|
|
8
|
+
const { element, children, value: tabs,...rest } = props;
|
|
9
|
+
const attributes = mergeProps(tabs.getRootProps(), rest, { className: classesTabs.root });
|
|
10
|
+
return /* @__PURE__ */ jsx(TabsRootContext.Provider, {
|
|
11
|
+
value: tabs,
|
|
12
|
+
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
13
|
+
...attributes,
|
|
14
|
+
children
|
|
15
|
+
})
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { RootProvider as default };
|
|
21
|
+
//# sourceMappingURL=root-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-provider.js","names":[],"sources":["../../../../src/components/tabs/anatomy/root-provider.tsx"],"sourcesContent":["import { TabsRootContext } from '../modules/root-context';\nimport type { useTabs } from '../modules/use-tabs';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesTabs } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\n\nexport interface TabsRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {\n\tvalue: ReturnType<typeof useTabs>;\n}\n\nexport default function RootProvider(props: TabsRootProviderProps) {\n\tconst { element, children, value: tabs, ...rest } = props;\n\n\tconst attributes = mergeProps(tabs.getRootProps(), rest, {\n\t\tclassName: classesTabs.root,\n\t});\n\n\treturn (\n\t\t<TabsRootContext.Provider value={tabs}>\n\t\t\t{element ? element(attributes) : <div {...attributes}>{children}</div>}\n\t\t</TabsRootContext.Provider>\n\t);\n}\n"],"mappings":";;;;;;AAWA,SAAwB,aAAa,OAA8B;CAClE,MAAM,EAAE,SAAS,UAAU,OAAO,KAAM,GAAG,SAAS;CAEpD,MAAM,aAAa,WAAW,KAAK,cAAc,EAAE,MAAM,EACxD,WAAW,YAAY,MACvB,CAAC;AAEF,QACC,oBAAC,gBAAgB;EAAS,OAAO;YAC/B,UAAU,QAAQ,WAAW,GAAG,oBAAC;GAAI,GAAI;GAAa;IAAe;GAC5C"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react_jsx_runtime86 from "react/jsx-runtime";
|
|
4
|
+
import { Props } from "@zag-js/tabs";
|
|
5
|
+
|
|
6
|
+
//#region src/components/tabs/anatomy/root.d.ts
|
|
7
|
+
interface TabsRootProps extends Omit<Props, 'id'>, PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {}
|
|
8
|
+
declare function Root(props: TabsRootProps): react_jsx_runtime86.JSX.Element;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { Root, TabsRootProps };
|
|
11
|
+
//# sourceMappingURL=root.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root.d.ts","names":[],"sources":["../../../../src/components/tabs/anatomy/root.tsx"],"sourcesContent":[],"mappings":";;;;;;UASiB,aAAA,SAAsB,KAAK,cAAc,yBAAyB;iBAE3D,IAAA,QAAY,gBAAa,mBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { TabsRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { useTabs } from "../modules/use-tabs.js";
|
|
3
|
+
import { mergeProps } from "@zag-js/react";
|
|
4
|
+
import { classesTabs } from "@skeletonlabs/skeleton-common";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { splitProps } from "@zag-js/tabs";
|
|
7
|
+
|
|
8
|
+
//#region src/components/tabs/anatomy/root.tsx
|
|
9
|
+
function Root(props) {
|
|
10
|
+
const [tabsProps, componentProps] = splitProps(props);
|
|
11
|
+
const { element, children,...rest } = componentProps;
|
|
12
|
+
const tabs = useTabs(tabsProps);
|
|
13
|
+
const attributes = mergeProps(tabs.getRootProps(), rest, { className: classesTabs.root });
|
|
14
|
+
return /* @__PURE__ */ jsx(TabsRootContext.Provider, {
|
|
15
|
+
value: tabs,
|
|
16
|
+
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
17
|
+
...attributes,
|
|
18
|
+
children
|
|
19
|
+
})
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { Root as default };
|
|
25
|
+
//# sourceMappingURL=root.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root.js","names":[],"sources":["../../../../src/components/tabs/anatomy/root.tsx"],"sourcesContent":["import { TabsRootContext } from '../modules/root-context';\nimport { useTabs } from '../modules/use-tabs';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesTabs } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { splitProps } from '@zag-js/tabs';\nimport type { Props } from '@zag-js/tabs';\n\nexport interface TabsRootProps extends Omit<Props, 'id'>, PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {}\n\nexport default function Root(props: TabsRootProps) {\n\tconst [tabsProps, componentProps] = splitProps(props);\n\tconst { element, children, ...rest } = componentProps;\n\n\tconst tabs = useTabs(tabsProps);\n\n\tconst attributes = mergeProps(tabs.getRootProps(), rest, {\n\t\tclassName: classesTabs.root,\n\t});\n\n\treturn (\n\t\t<TabsRootContext.Provider value={tabs}>\n\t\t\t{element ? element(attributes) : <div {...attributes}>{children}</div>}\n\t\t</TabsRootContext.Provider>\n\t);\n}\n"],"mappings":";;;;;;;;AAWA,SAAwB,KAAK,OAAsB;CAClD,MAAM,CAAC,WAAW,kBAAkB,WAAW,MAAM;CACrD,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,OAAO,QAAQ,UAAU;CAE/B,MAAM,aAAa,WAAW,KAAK,cAAc,EAAE,MAAM,EACxD,WAAW,YAAY,MACvB,CAAC;AAEF,QACC,oBAAC,gBAAgB;EAAS,OAAO;YAC/B,UAAU,QAAQ,WAAW,GAAG,oBAAC;GAAI,GAAI;GAAa;IAAe;GAC5C"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react297 from "react";
|
|
4
|
+
import * as react_jsx_runtime88 from "react/jsx-runtime";
|
|
5
|
+
import { TriggerProps } from "@zag-js/tabs";
|
|
6
|
+
|
|
7
|
+
//#region src/components/tabs/anatomy/trigger.d.ts
|
|
8
|
+
interface TabsTriggerProps extends TriggerProps, PropsWithElement<'button'>, HTMLAttributes<'button', 'value'> {}
|
|
9
|
+
declare function Trigger(props: TabsTriggerProps): string | number | bigint | boolean | Iterable<react297.ReactNode> | Promise<string | number | bigint | boolean | react297.ReactPortal | react297.ReactElement<unknown, string | react297.JSXElementConstructor<any>> | Iterable<react297.ReactNode> | null | undefined> | react_jsx_runtime88.JSX.Element | null | undefined;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { TabsTriggerProps, Trigger };
|
|
12
|
+
//# sourceMappingURL=trigger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trigger.d.ts","names":[],"sources":["../../../../src/components/tabs/anatomy/trigger.tsx"],"sourcesContent":[],"mappings":";;;;;;;UASiB,gBAAA,SAAyB,cAAc,4BAA4B;iBAE5D,OAAA,QAAe,wDAAgB,SAAA,QAAA,CAAA,SAAA,IAAA,6CAAA,QAAA,CAAA,WAAA,GAAA,QAAA,CAAA,+BAAA,QAAA,CAAA,8BAAA,SAAA,QAAA,CAAA,SAAA,wBAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|