@skeletonlabs/skeleton-react 1.5.0-next.0 → 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.css +2 -0
- package/dist/index.d.ts +137 -17
- package/dist/index.js +42 -17
- 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 +41 -37
- package/dist/components/Accordion/Accordion.d.ts +0 -7
- package/dist/components/Accordion/Accordion.js +0 -62
- package/dist/components/Accordion/context.d.ts +0 -4
- package/dist/components/Accordion/context.js +0 -10
- package/dist/components/Accordion/types.d.ts +0 -73
- package/dist/components/Accordion/types.js +0 -2
- package/dist/components/AppBar/AppBar.d.ts +0 -9
- package/dist/components/AppBar/AppBar.js +0 -52
- package/dist/components/AppBar/types.d.ts +0 -63
- package/dist/components/AppBar/types.js +0 -1
- package/dist/components/Avatar/Avatar.d.ts +0 -3
- package/dist/components/Avatar/Avatar.js +0 -28
- package/dist/components/Avatar/types.d.ts +0 -36
- package/dist/components/Avatar/types.js +0 -1
- package/dist/components/FileUpload/FileUpload.d.ts +0 -3
- package/dist/components/FileUpload/FileUpload.js +0 -41
- package/dist/components/FileUpload/types.d.ts +0 -73
- package/dist/components/FileUpload/types.js +0 -1
- package/dist/components/Navigation/Navigation.d.ts +0 -10
- package/dist/components/Navigation/Navigation.js +0 -92
- package/dist/components/Navigation/context.d.ts +0 -2
- package/dist/components/Navigation/context.js +0 -7
- package/dist/components/Navigation/types.d.ts +0 -132
- package/dist/components/Navigation/types.js +0 -2
- package/dist/components/Pagination/Pagination.d.ts +0 -3
- package/dist/components/Pagination/Pagination.js +0 -39
- package/dist/components/Pagination/types.d.ts +0 -56
- package/dist/components/Pagination/types.js +0 -1
- package/dist/components/Progress/Progress.d.ts +0 -3
- package/dist/components/Progress/Progress.js +0 -28
- package/dist/components/Progress/types.d.ts +0 -44
- package/dist/components/Progress/types.js +0 -1
- package/dist/components/ProgressRing/ProgressRing.d.ts +0 -3
- package/dist/components/ProgressRing/ProgressRing.js +0 -34
- package/dist/components/ProgressRing/types.d.ts +0 -53
- package/dist/components/ProgressRing/types.js +0 -1
- package/dist/components/Rating/Rating.d.ts +0 -3
- package/dist/components/Rating/Rating.js +0 -50
- package/dist/components/Rating/types.d.ts +0 -36
- package/dist/components/Rating/types.js +0 -1
- package/dist/components/Segment/Segment.d.ts +0 -5
- package/dist/components/Segment/Segment.js +0 -58
- package/dist/components/Segment/context.d.ts +0 -2
- package/dist/components/Segment/context.js +0 -5
- package/dist/components/Segment/types.d.ts +0 -59
- package/dist/components/Segment/types.js +0 -2
- package/dist/components/Slider/Slider.d.ts +0 -3
- package/dist/components/Slider/Slider.js +0 -39
- package/dist/components/Slider/types.d.ts +0 -66
- package/dist/components/Slider/types.js +0 -1
- package/dist/components/Switch/Switch.d.ts +0 -3
- package/dist/components/Switch/Switch.js +0 -40
- package/dist/components/Switch/types.d.ts +0 -62
- package/dist/components/Switch/types.js +0 -1
- package/dist/components/Tabs/Tabs.d.ts +0 -12
- package/dist/components/Tabs/Tabs.js +0 -80
- package/dist/components/Tabs/context.d.ts +0 -2
- package/dist/components/Tabs/context.js +0 -5
- package/dist/components/Tabs/types.d.ts +0 -64
- package/dist/components/Tabs/types.js +0 -1
- package/dist/components/TagsInput/TagsInput.d.ts +0 -3
- package/dist/components/TagsInput/TagsInput.js +0 -39
- package/dist/components/TagsInput/types.d.ts +0 -40
- package/dist/components/TagsInput/types.js +0 -1
- package/dist/components/Toast/Toast.d.ts +0 -2
- package/dist/components/Toast/Toast.js +0 -49
- package/dist/components/Toast/Toaster.d.ts +0 -2
- package/dist/components/Toast/Toaster.js +0 -28
- package/dist/components/Toast/create-toaster.d.ts +0 -2
- package/dist/components/Toast/create-toaster.js +0 -4
- package/dist/components/Toast/types.d.ts +0 -46
- package/dist/components/Toast/types.js +0 -1
- package/dist/composed/accordion/anatomy/accordion-content.d.ts +0 -2
- package/dist/composed/accordion/anatomy/accordion-content.js +0 -15
- package/dist/composed/accordion/anatomy/accordion-heading.d.ts +0 -2
- package/dist/composed/accordion/anatomy/accordion-heading.js +0 -11
- package/dist/composed/accordion/anatomy/accordion-indicator.d.ts +0 -2
- package/dist/composed/accordion/anatomy/accordion-indicator.js +0 -14
- package/dist/composed/accordion/anatomy/accordion-item.d.ts +0 -2
- package/dist/composed/accordion/anatomy/accordion-item.js +0 -16
- package/dist/composed/accordion/anatomy/accordion-root.d.ts +0 -2
- package/dist/composed/accordion/anatomy/accordion-root.js +0 -20
- package/dist/composed/accordion/anatomy/accordion-trigger.d.ts +0 -2
- package/dist/composed/accordion/anatomy/accordion-trigger.js +0 -15
- package/dist/composed/accordion/index.d.ts +0 -2
- package/dist/composed/accordion/index.js +0 -2
- package/dist/composed/accordion/modules/anatomy.d.ts +0 -14
- package/dist/composed/accordion/modules/anatomy.js +0 -14
- package/dist/composed/accordion/modules/context.d.ts +0 -4
- package/dist/composed/accordion/modules/context.js +0 -5
- package/dist/composed/accordion/modules/types.d.ts +0 -28
- package/dist/composed/accordion/modules/types.js +0 -1
- package/dist/composed/avatar/anatomy/avatar-fallback.d.ts +0 -2
- package/dist/composed/avatar/anatomy/avatar-fallback.js +0 -14
- package/dist/composed/avatar/anatomy/avatar-image.d.ts +0 -2
- package/dist/composed/avatar/anatomy/avatar-image.js +0 -14
- package/dist/composed/avatar/anatomy/avatar-root.d.ts +0 -2
- package/dist/composed/avatar/anatomy/avatar-root.js +0 -20
- package/dist/composed/avatar/index.d.ts +0 -2
- package/dist/composed/avatar/index.js +0 -2
- package/dist/composed/avatar/modules/anatomy.d.ts +0 -8
- package/dist/composed/avatar/modules/anatomy.js +0 -8
- package/dist/composed/avatar/modules/context.d.ts +0 -3
- package/dist/composed/avatar/modules/context.js +0 -3
- package/dist/composed/avatar/modules/types.d.ts +0 -13
- package/dist/composed/avatar/modules/types.js +0 -1
- package/dist/composed/index.d.ts +0 -2
- package/dist/composed/index.js +0 -2
- package/dist/internal/props-with-child.d.ts +0 -7
- package/dist/internal/props-with-child.js +0 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { createContext } from "../../../internal/create-context.js";
|
|
2
|
+
|
|
3
|
+
//#region src/components/rating-group/modules/root-context.ts
|
|
4
|
+
const RatingGroupRootContext = createContext();
|
|
5
|
+
|
|
6
|
+
//#endregion
|
|
7
|
+
export { RatingGroupRootContext };
|
|
8
|
+
//# sourceMappingURL=root-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-context.js","names":[],"sources":["../../../../src/components/rating-group/modules/root-context.ts"],"sourcesContent":["import type { useRatingGroup } from './use-rating-group';\nimport { createContext } from '@/internal/create-context';\n\nexport const RatingGroupRootContext = createContext<ReturnType<typeof useRatingGroup>>();\n"],"mappings":";;;AAGA,MAAa,yBAAyB,eAAkD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PropTypes } from "@zag-js/react";
|
|
2
|
+
import { Api, Props } from "@zag-js/rating-group";
|
|
3
|
+
|
|
4
|
+
//#region src/components/rating-group/modules/use-rating-group.d.ts
|
|
5
|
+
declare function useRatingGroup(props?: Omit<Props, 'id'>): Api<PropTypes>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { useRatingGroup };
|
|
8
|
+
//# sourceMappingURL=use-rating-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-rating-group.d.ts","names":[],"sources":["../../../../src/components/rating-group/modules/use-rating-group.ts"],"sourcesContent":[],"mappings":";;;;iBAKgB,cAAA,SAAsB,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/rating-group";
|
|
4
|
+
|
|
5
|
+
//#region src/components/rating-group/modules/use-rating-group.ts
|
|
6
|
+
function useRatingGroup(props = {}) {
|
|
7
|
+
const service = useMachine(machine, {
|
|
8
|
+
id: useId(),
|
|
9
|
+
...props
|
|
10
|
+
});
|
|
11
|
+
return connect(service, normalizeProps);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
export { useRatingGroup };
|
|
16
|
+
//# sourceMappingURL=use-rating-group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-rating-group.js","names":[],"sources":["../../../../src/components/rating-group/modules/use-rating-group.ts"],"sourcesContent":["import { connect, machine } from '@zag-js/rating-group';\nimport type { Api, Props } from '@zag-js/rating-group';\nimport { normalizeProps, useMachine, type PropTypes } from '@zag-js/react';\nimport { useId } from 'react';\n\nexport function useRatingGroup(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,eAAe,QAA2B,EAAE,EAAkB;CAC7E,MAAM,UAAU,WAAW,SAAS;EACnC,IAAI,OAAO;EACX,GAAG;EACH,CAAC;AACF,QAAO,QAAQ,SAAS,eAAe"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react172 from "react";
|
|
4
|
+
import * as react_jsx_runtime54 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/segmented-control/anatomy/indicator.d.ts
|
|
7
|
+
interface SegmentedControlIndicatorProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'children'> {}
|
|
8
|
+
declare function Indicator(props: SegmentedControlIndicatorProps): string | number | bigint | boolean | Iterable<react172.ReactNode> | Promise<string | number | bigint | boolean | react172.ReactPortal | react172.ReactElement<unknown, string | react172.JSXElementConstructor<any>> | Iterable<react172.ReactNode> | null | undefined> | react_jsx_runtime54.JSX.Element | null | undefined;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { Indicator, SegmentedControlIndicatorProps };
|
|
11
|
+
//# sourceMappingURL=indicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"indicator.d.ts","names":[],"sources":["../../../../src/components/segmented-control/anatomy/indicator.tsx"],"sourcesContent":[],"mappings":";;;;;;UAOiB,8BAAA,SAAuC,yBAAyB;iBAEzD,SAAA,QAAiB,sEAA8B,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 { SegmentedControlRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { use } from "react";
|
|
3
|
+
import { mergeProps } from "@zag-js/react";
|
|
4
|
+
import { classesSegmentedControl } from "@skeletonlabs/skeleton-common";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/segmented-control/anatomy/indicator.tsx
|
|
8
|
+
function Indicator(props) {
|
|
9
|
+
const segmentedControl = use(SegmentedControlRootContext);
|
|
10
|
+
const { element,...rest } = props;
|
|
11
|
+
const attributes = mergeProps(segmentedControl.getIndicatorProps(), rest, { className: classesSegmentedControl.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/segmented-control/anatomy/indicator.tsx"],"sourcesContent":["import { SegmentedControlRootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesSegmentedControl } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface SegmentedControlIndicatorProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'children'> {}\n\nexport default function Indicator(props: SegmentedControlIndicatorProps) {\n\tconst segmentedControl = use(SegmentedControlRootContext);\n\n\tconst { element, ...rest } = props;\n\n\tconst attributes = mergeProps(segmentedControl.getIndicatorProps(), rest, {\n\t\tclassName: classesSegmentedControl.indicator,\n\t});\n\n\treturn element ? element(attributes) : <div {...attributes} />;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,UAAU,OAAuC;CACxE,MAAM,mBAAmB,IAAI,4BAA4B;CAEzD,MAAM,EAAE,QAAS,GAAG,SAAS;CAE7B,MAAM,aAAa,WAAW,iBAAiB,mBAAmB,EAAE,MAAM,EACzE,WAAW,wBAAwB,WACnC,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 react124 from "react";
|
|
4
|
+
import * as react_jsx_runtime37 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/segmented-control/anatomy/item-hidden-input.d.ts
|
|
7
|
+
interface SegmentedControlItemHiddenInputProps extends PropsWithElement<'input'>, HTMLAttributes<'input', 'children'> {}
|
|
8
|
+
declare function ItemHiddenInput(props: SegmentedControlItemHiddenInputProps): string | number | bigint | boolean | Iterable<react124.ReactNode> | Promise<string | number | bigint | boolean | react124.ReactPortal | react124.ReactElement<unknown, string | react124.JSXElementConstructor<any>> | Iterable<react124.ReactNode> | null | undefined> | react_jsx_runtime37.JSX.Element | null | undefined;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { ItemHiddenInput, SegmentedControlItemHiddenInputProps };
|
|
11
|
+
//# sourceMappingURL=item-hidden-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item-hidden-input.d.ts","names":[],"sources":["../../../../src/components/segmented-control/anatomy/item-hidden-input.tsx"],"sourcesContent":[],"mappings":";;;;;;UAQiB,oCAAA,SAA6C,2BAA2B;iBAEjE,eAAA,QAAuB,4EAAoC,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,19 @@
|
|
|
1
|
+
import { SegmentedControlRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { SegmentedControlItemContext } from "../modules/item-context.js";
|
|
3
|
+
import { use } from "react";
|
|
4
|
+
import { mergeProps } from "@zag-js/react";
|
|
5
|
+
import { classesSegmentedControl } from "@skeletonlabs/skeleton-common";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
|
|
8
|
+
//#region src/components/segmented-control/anatomy/item-hidden-input.tsx
|
|
9
|
+
function ItemHiddenInput(props) {
|
|
10
|
+
const segmentedControl = use(SegmentedControlRootContext);
|
|
11
|
+
const itemProps = use(SegmentedControlItemContext);
|
|
12
|
+
const { element,...rest } = props;
|
|
13
|
+
const attributes = mergeProps(segmentedControl.getItemHiddenInputProps(itemProps), rest, { className: classesSegmentedControl.itemHiddenInput });
|
|
14
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { ItemHiddenInput as default };
|
|
19
|
+
//# sourceMappingURL=item-hidden-input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item-hidden-input.js","names":[],"sources":["../../../../src/components/segmented-control/anatomy/item-hidden-input.tsx"],"sourcesContent":["import { SegmentedControlItemContext } from '../modules/item-context';\nimport { SegmentedControlRootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesSegmentedControl } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface SegmentedControlItemHiddenInputProps extends PropsWithElement<'input'>, HTMLAttributes<'input', 'children'> {}\n\nexport default function ItemHiddenInput(props: SegmentedControlItemHiddenInputProps) {\n\tconst segmentedControl = use(SegmentedControlRootContext);\n\tconst itemProps = use(SegmentedControlItemContext);\n\n\tconst { element, ...rest } = props;\n\n\tconst attributes = mergeProps(segmentedControl.getItemHiddenInputProps(itemProps), rest, {\n\t\tclassName: classesSegmentedControl.itemHiddenInput,\n\t});\n\n\treturn element ? element(attributes) : <input {...attributes} />;\n}\n"],"mappings":";;;;;;;;AAUA,SAAwB,gBAAgB,OAA6C;CACpF,MAAM,mBAAmB,IAAI,4BAA4B;CACzD,MAAM,YAAY,IAAI,4BAA4B;CAElD,MAAM,EAAE,QAAS,GAAG,SAAS;CAE7B,MAAM,aAAa,WAAW,iBAAiB,wBAAwB,UAAU,EAAE,MAAM,EACxF,WAAW,wBAAwB,iBACnC,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC,WAAM,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 react177 from "react";
|
|
4
|
+
import * as react_jsx_runtime56 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/segmented-control/anatomy/item-text.d.ts
|
|
7
|
+
interface SegmentedControlItemTextProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
|
|
8
|
+
declare function ItemText(props: SegmentedControlItemTextProps): string | number | bigint | boolean | Iterable<react177.ReactNode> | Promise<string | number | bigint | boolean | react177.ReactPortal | react177.ReactElement<unknown, string | react177.JSXElementConstructor<any>> | Iterable<react177.ReactNode> | null | undefined> | react_jsx_runtime56.JSX.Element | null | undefined;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { ItemText, SegmentedControlItemTextProps };
|
|
11
|
+
//# sourceMappingURL=item-text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item-text.d.ts","names":[],"sources":["../../../../src/components/segmented-control/anatomy/item-text.tsx"],"sourcesContent":[],"mappings":";;;;;;UAQiB,6BAAA,SAAsC,0BAA0B;iBAEzD,QAAA,QAAgB,qEAA6B,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 { SegmentedControlRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { SegmentedControlItemContext } from "../modules/item-context.js";
|
|
3
|
+
import { use } from "react";
|
|
4
|
+
import { mergeProps } from "@zag-js/react";
|
|
5
|
+
import { classesSegmentedControl } from "@skeletonlabs/skeleton-common";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
|
|
8
|
+
//#region src/components/segmented-control/anatomy/item-text.tsx
|
|
9
|
+
function ItemText(props) {
|
|
10
|
+
const segmentedControl = use(SegmentedControlRootContext);
|
|
11
|
+
const itemProps = use(SegmentedControlItemContext);
|
|
12
|
+
const { element, children,...rest } = props;
|
|
13
|
+
const attributes = mergeProps(segmentedControl.getItemTextProps(itemProps), rest, { className: classesSegmentedControl.itemText });
|
|
14
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
15
|
+
...attributes,
|
|
16
|
+
children
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { ItemText as default };
|
|
22
|
+
//# sourceMappingURL=item-text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item-text.js","names":[],"sources":["../../../../src/components/segmented-control/anatomy/item-text.tsx"],"sourcesContent":["import { SegmentedControlItemContext } from '../modules/item-context';\nimport { SegmentedControlRootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesSegmentedControl } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface SegmentedControlItemTextProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}\n\nexport default function ItemText(props: SegmentedControlItemTextProps) {\n\tconst segmentedControl = use(SegmentedControlRootContext);\n\tconst itemProps = use(SegmentedControlItemContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(segmentedControl.getItemTextProps(itemProps), rest, {\n\t\tclassName: classesSegmentedControl.itemText,\n\t});\n\n\treturn element ? element(attributes) : <span {...attributes}>{children}</span>;\n}\n"],"mappings":";;;;;;;;AAUA,SAAwB,SAAS,OAAsC;CACtE,MAAM,mBAAmB,IAAI,4BAA4B;CACzD,MAAM,YAAY,IAAI,4BAA4B;CAElD,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,iBAAiB,iBAAiB,UAAU,EAAE,MAAM,EACjF,WAAW,wBAAwB,UACnC,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAK,GAAI;EAAa;GAAgB"}
|
|
@@ -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_runtime55 from "react/jsx-runtime";
|
|
4
|
+
import { ItemProps } from "@zag-js/radio-group";
|
|
5
|
+
|
|
6
|
+
//#region src/components/segmented-control/anatomy/item.d.ts
|
|
7
|
+
interface SegmentedControlItemProps extends ItemProps, PropsWithElement<'label'>, HTMLAttributes<'label'> {}
|
|
8
|
+
declare function Item(props: SegmentedControlItemProps): react_jsx_runtime55.JSX.Element;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { Item, SegmentedControlItemProps };
|
|
11
|
+
//# sourceMappingURL=item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item.d.ts","names":[],"sources":["../../../../src/components/segmented-control/anatomy/item.tsx"],"sourcesContent":[],"mappings":";;;;;;UASiB,yBAAA,SAAkC,WAAW,2BAA2B;iBAEjE,IAAA,QAAY,4BAAyB,mBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { SegmentedControlRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { SegmentedControlItemContext } from "../modules/item-context.js";
|
|
3
|
+
import { use } from "react";
|
|
4
|
+
import { mergeProps } from "@zag-js/react";
|
|
5
|
+
import { classesSegmentedControl } from "@skeletonlabs/skeleton-common";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import { splitItemProps } from "@zag-js/radio-group";
|
|
8
|
+
|
|
9
|
+
//#region src/components/segmented-control/anatomy/item.tsx
|
|
10
|
+
function Item(props) {
|
|
11
|
+
const segmentedControl = use(SegmentedControlRootContext);
|
|
12
|
+
const [itemProps, componentProps] = splitItemProps(props);
|
|
13
|
+
const { element, children,...rest } = componentProps;
|
|
14
|
+
const attributes = mergeProps(segmentedControl.getItemProps(itemProps), rest, { className: classesSegmentedControl.item });
|
|
15
|
+
return /* @__PURE__ */ jsx(SegmentedControlItemContext.Provider, {
|
|
16
|
+
value: itemProps,
|
|
17
|
+
children: element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
18
|
+
...attributes,
|
|
19
|
+
children
|
|
20
|
+
})
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
export { Item as default };
|
|
26
|
+
//# sourceMappingURL=item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item.js","names":[],"sources":["../../../../src/components/segmented-control/anatomy/item.tsx"],"sourcesContent":["import { SegmentedControlItemContext } from '../modules/item-context';\nimport { SegmentedControlRootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesSegmentedControl } from '@skeletonlabs/skeleton-common';\nimport { splitItemProps, type ItemProps } from '@zag-js/radio-group';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface SegmentedControlItemProps extends ItemProps, PropsWithElement<'label'>, HTMLAttributes<'label'> {}\n\nexport default function Item(props: SegmentedControlItemProps) {\n\tconst segmentedControl = use(SegmentedControlRootContext);\n\n\tconst [itemProps, componentProps] = splitItemProps(props);\n\tconst { element, children, ...rest } = componentProps;\n\n\tconst attributes = mergeProps(segmentedControl.getItemProps(itemProps), rest, {\n\t\tclassName: classesSegmentedControl.item,\n\t});\n\n\treturn (\n\t\t<SegmentedControlItemContext.Provider value={itemProps}>\n\t\t\t{element ? element(attributes) : <label {...attributes}>{children}</label>}\n\t\t</SegmentedControlItemContext.Provider>\n\t);\n}\n"],"mappings":";;;;;;;;;AAWA,SAAwB,KAAK,OAAkC;CAC9D,MAAM,mBAAmB,IAAI,4BAA4B;CAEzD,MAAM,CAAC,WAAW,kBAAkB,eAAe,MAAM;CACzD,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,iBAAiB,aAAa,UAAU,EAAE,MAAM,EAC7E,WAAW,wBAAwB,MACnC,CAAC;AAEF,QACC,oBAAC,4BAA4B;EAAS,OAAO;YAC3C,UAAU,QAAQ,WAAW,GAAG,oBAAC;GAAM,GAAI;GAAa;IAAiB;GACpC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useSegmentedControl } from "../modules/use-segmented-control.js";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/segmented-control/anatomy/root-context.d.ts
|
|
5
|
+
interface SegmentedControlRootContextProps {
|
|
6
|
+
children: (ratingGroup: ReturnType<typeof useSegmentedControl>) => ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare function RootContext(props: SegmentedControlRootContextProps): ReactNode;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { RootContext, SegmentedControlRootContextProps };
|
|
11
|
+
//# sourceMappingURL=root-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-context.d.ts","names":[],"sources":["../../../../src/components/segmented-control/anatomy/root-context.tsx"],"sourcesContent":[],"mappings":";;;;UAKiB,gCAAA;0BACQ,kBAAkB,yBAAyB;AADpE;AAAiD,iBAIzB,WAAA,CAJyB,KAAA,EAIN,gCAJM,CAAA,EAI0B,SAJ1B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SegmentedControlRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { use } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/segmented-control/anatomy/root-context.tsx
|
|
5
|
+
function RootContext(props) {
|
|
6
|
+
const segmentedControl = use(SegmentedControlRootContext);
|
|
7
|
+
const { children } = props;
|
|
8
|
+
return children(segmentedControl);
|
|
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/segmented-control/anatomy/root-context.tsx"],"sourcesContent":["import { SegmentedControlRootContext } from '../modules/root-context';\nimport type { useSegmentedControl } from '../modules/use-segmented-control';\nimport { use } from 'react';\nimport type { ReactNode } from 'react';\n\nexport interface SegmentedControlRootContextProps {\n\tchildren: (ratingGroup: ReturnType<typeof useSegmentedControl>) => ReactNode;\n}\n\nexport default function RootContext(props: SegmentedControlRootContextProps) {\n\tconst segmentedControl = use(SegmentedControlRootContext);\n\n\tconst { children } = props;\n\n\treturn children(segmentedControl);\n}\n"],"mappings":";;;;AASA,SAAwB,YAAY,OAAyC;CAC5E,MAAM,mBAAmB,IAAI,4BAA4B;CAEzD,MAAM,EAAE,aAAa;AAErB,QAAO,SAAS,iBAAiB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import { useSegmentedControl } from "../modules/use-segmented-control.js";
|
|
4
|
+
import * as react_jsx_runtime53 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/segmented-control/anatomy/root-provider.d.ts
|
|
7
|
+
interface SegmentedControlRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {
|
|
8
|
+
value: ReturnType<typeof useSegmentedControl>;
|
|
9
|
+
}
|
|
10
|
+
declare function RootProvider(props: SegmentedControlRootProviderProps): react_jsx_runtime53.JSX.Element;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { RootProvider, SegmentedControlRootProviderProps };
|
|
13
|
+
//# sourceMappingURL=root-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-provider.d.ts","names":[],"sources":["../../../../src/components/segmented-control/anatomy/root-provider.tsx"],"sourcesContent":[],"mappings":";;;;;;UAOiB,iCAAA,SAA0C,yBAAyB;SAC5E,kBAAkB;;AADT,iBAIO,YAAA,CAJP,KAAkC,EAIP,iCAJO,CAAA,EAI0B,mBAAA,CAAA,GAAA,CAAA,OAJ1B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SegmentedControlRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { mergeProps } from "@zag-js/react";
|
|
3
|
+
import { classesSegmentedControl } from "@skeletonlabs/skeleton-common";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/segmented-control/anatomy/root-provider.tsx
|
|
7
|
+
function RootProvider(props) {
|
|
8
|
+
const { element, children, value: segmentedControl,...rest } = props;
|
|
9
|
+
const attributes = mergeProps(segmentedControl.getRootProps(), rest, { className: classesSegmentedControl.root });
|
|
10
|
+
return /* @__PURE__ */ jsx(SegmentedControlRootContext.Provider, {
|
|
11
|
+
value: segmentedControl,
|
|
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/segmented-control/anatomy/root-provider.tsx"],"sourcesContent":["import { SegmentedControlRootContext } from '../modules/root-context';\nimport type { useSegmentedControl } from '../modules/use-segmented-control';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesSegmentedControl } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\n\nexport interface SegmentedControlRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {\n\tvalue: ReturnType<typeof useSegmentedControl>;\n}\n\nexport default function RootProvider(props: SegmentedControlRootProviderProps) {\n\tconst { element, children, value: segmentedControl, ...rest } = props;\n\n\tconst attributes = mergeProps(segmentedControl.getRootProps(), rest, {\n\t\tclassName: classesSegmentedControl.root,\n\t});\n\n\treturn (\n\t\t<SegmentedControlRootContext.Provider value={segmentedControl}>\n\t\t\t{element ? element(attributes) : <div {...attributes}>{children}</div>}\n\t\t</SegmentedControlRootContext.Provider>\n\t);\n}\n"],"mappings":";;;;;;AAWA,SAAwB,aAAa,OAA0C;CAC9E,MAAM,EAAE,SAAS,UAAU,OAAO,iBAAkB,GAAG,SAAS;CAEhE,MAAM,aAAa,WAAW,iBAAiB,cAAc,EAAE,MAAM,EACpE,WAAW,wBAAwB,MACnC,CAAC;AAEF,QACC,oBAAC,4BAA4B;EAAS,OAAO;YAC3C,UAAU,QAAQ,WAAW,GAAG,oBAAC;GAAI,GAAI;GAAa;IAAe;GAChC"}
|
|
@@ -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_runtime52 from "react/jsx-runtime";
|
|
4
|
+
import { Props } from "@zag-js/radio-group";
|
|
5
|
+
|
|
6
|
+
//#region src/components/segmented-control/anatomy/root.d.ts
|
|
7
|
+
interface SegmentedControlRootProps extends Omit<Props, 'id'>, PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {}
|
|
8
|
+
declare function Root(props: SegmentedControlRootProps): react_jsx_runtime52.JSX.Element;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { Root, SegmentedControlRootProps };
|
|
11
|
+
//# sourceMappingURL=root.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root.d.ts","names":[],"sources":["../../../../src/components/segmented-control/anatomy/root.tsx"],"sourcesContent":[],"mappings":";;;;;;UASiB,yBAAA,SACR,KAAK,cACZ,yBACA;iBAEsB,IAAA,QAAY,4BAAyB,mBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { SegmentedControlRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { useSegmentedControl } from "../modules/use-segmented-control.js";
|
|
3
|
+
import { mergeProps } from "@zag-js/react";
|
|
4
|
+
import { classesSegmentedControl } from "@skeletonlabs/skeleton-common";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { splitProps } from "@zag-js/radio-group";
|
|
7
|
+
|
|
8
|
+
//#region src/components/segmented-control/anatomy/root.tsx
|
|
9
|
+
function Root(props) {
|
|
10
|
+
const [segmentedControlProps, componentProps] = splitProps(props);
|
|
11
|
+
const { element, children,...rest } = componentProps;
|
|
12
|
+
const segmentedControl = useSegmentedControl(segmentedControlProps);
|
|
13
|
+
const attributes = mergeProps(segmentedControl.getRootProps(), rest, { className: classesSegmentedControl.root });
|
|
14
|
+
return /* @__PURE__ */ jsx(SegmentedControlRootContext.Provider, {
|
|
15
|
+
value: segmentedControl,
|
|
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/segmented-control/anatomy/root.tsx"],"sourcesContent":["import { SegmentedControlRootContext } from '../modules/root-context';\nimport { useSegmentedControl } from '../modules/use-segmented-control';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesSegmentedControl } from '@skeletonlabs/skeleton-common';\nimport { splitProps } from '@zag-js/radio-group';\nimport type { Props } from '@zag-js/radio-group';\nimport { mergeProps } from '@zag-js/react';\n\nexport interface SegmentedControlRootProps\n\textends Omit<Props, 'id'>,\n\t\tPropsWithElement<'div'>,\n\t\tHTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {}\n\nexport default function Root(props: SegmentedControlRootProps) {\n\tconst [segmentedControlProps, componentProps] = splitProps(props);\n\tconst { element, children, ...rest } = componentProps;\n\n\tconst segmentedControl = useSegmentedControl(segmentedControlProps);\n\n\tconst attributes = mergeProps(segmentedControl.getRootProps(), rest, {\n\t\tclassName: classesSegmentedControl.root,\n\t});\n\n\treturn (\n\t\t<SegmentedControlRootContext.Provider value={segmentedControl}>\n\t\t\t{element ? element(attributes) : <div {...attributes}>{children}</div>}\n\t\t</SegmentedControlRootContext.Provider>\n\t);\n}\n"],"mappings":";;;;;;;;AAcA,SAAwB,KAAK,OAAkC;CAC9D,MAAM,CAAC,uBAAuB,kBAAkB,WAAW,MAAM;CACjE,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,mBAAmB,oBAAoB,sBAAsB;CAEnE,MAAM,aAAa,WAAW,iBAAiB,cAAc,EAAE,MAAM,EACpE,WAAW,wBAAwB,MACnC,CAAC;AAEF,QACC,oBAAC,4BAA4B;EAAS,OAAO;YAC3C,UAAU,QAAQ,WAAW,GAAG,oBAAC;GAAI,GAAI;GAAa;IAAe;GAChC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Indicator } from "../anatomy/indicator.js";
|
|
2
|
+
import { Item } from "../anatomy/item.js";
|
|
3
|
+
import { ItemHiddenInput } from "../anatomy/item-hidden-input.js";
|
|
4
|
+
import { ItemText } from "../anatomy/item-text.js";
|
|
5
|
+
import { Root } from "../anatomy/root.js";
|
|
6
|
+
import { RootContext } from "../anatomy/root-context.js";
|
|
7
|
+
import { RootProvider } from "../anatomy/root-provider.js";
|
|
8
|
+
|
|
9
|
+
//#region src/components/segmented-control/modules/anatomy.d.ts
|
|
10
|
+
declare const SegmentedControl: typeof Root & {
|
|
11
|
+
Provider: typeof RootProvider;
|
|
12
|
+
Context: typeof RootContext;
|
|
13
|
+
Indicator: typeof Indicator;
|
|
14
|
+
Item: typeof Item;
|
|
15
|
+
ItemText: typeof ItemText;
|
|
16
|
+
ItemHiddenInput: typeof ItemHiddenInput;
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { SegmentedControl };
|
|
20
|
+
//# sourceMappingURL=anatomy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anatomy.d.ts","names":[],"sources":["../../../../src/components/segmented-control/modules/anatomy.ts"],"sourcesContent":[],"mappings":";;;;;;;;;cAQa,yBAAgB;;EAAhB,OAAA,EAAA,kBAOX;EAAA,SAAA,EAAA,gBAAA;MAP2B,EAAA,WAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import Indicator from "../anatomy/indicator.js";
|
|
2
|
+
import Item from "../anatomy/item.js";
|
|
3
|
+
import ItemHiddenInput from "../anatomy/item-hidden-input.js";
|
|
4
|
+
import ItemText from "../anatomy/item-text.js";
|
|
5
|
+
import Root from "../anatomy/root.js";
|
|
6
|
+
import RootContext from "../anatomy/root-context.js";
|
|
7
|
+
import RootProvider from "../anatomy/root-provider.js";
|
|
8
|
+
|
|
9
|
+
//#region src/components/segmented-control/modules/anatomy.ts
|
|
10
|
+
const SegmentedControl = Object.assign(Root, {
|
|
11
|
+
Provider: RootProvider,
|
|
12
|
+
Context: RootContext,
|
|
13
|
+
Indicator,
|
|
14
|
+
Item,
|
|
15
|
+
ItemText,
|
|
16
|
+
ItemHiddenInput
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { SegmentedControl };
|
|
21
|
+
//# sourceMappingURL=anatomy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anatomy.js","names":[],"sources":["../../../../src/components/segmented-control/modules/anatomy.ts"],"sourcesContent":["import Indicator from '../anatomy/indicator';\nimport Item from '../anatomy/item';\nimport ItemHiddenInput from '../anatomy/item-hidden-input';\nimport ItemText from '../anatomy/item-text';\nimport Root from '../anatomy/root';\nimport RootContext from '../anatomy/root-context';\nimport RootProvider from '../anatomy/root-provider';\n\nexport const SegmentedControl = Object.assign(Root, {\n\tProvider: RootProvider,\n\tContext: RootContext,\n\tIndicator: Indicator,\n\tItem: Item,\n\tItemText: ItemText,\n\tItemHiddenInput: ItemHiddenInput,\n});\n"],"mappings":";;;;;;;;;AAQA,MAAa,mBAAmB,OAAO,OAAO,MAAM;CACnD,UAAU;CACV,SAAS;CACE;CACL;CACI;CACO;CACjB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { createContext } from "../../../internal/create-context.js";
|
|
2
|
+
|
|
3
|
+
//#region src/components/segmented-control/modules/item-context.ts
|
|
4
|
+
const SegmentedControlItemContext = createContext();
|
|
5
|
+
|
|
6
|
+
//#endregion
|
|
7
|
+
export { SegmentedControlItemContext };
|
|
8
|
+
//# sourceMappingURL=item-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item-context.js","names":[],"sources":["../../../../src/components/segmented-control/modules/item-context.ts"],"sourcesContent":["import { createContext } from '@/internal/create-context';\nimport type { ItemProps } from '@zag-js/radio-group';\n\nexport const SegmentedControlItemContext = createContext<ItemProps>();\n"],"mappings":";;;AAGA,MAAa,8BAA8B,eAA0B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { createContext } from "../../../internal/create-context.js";
|
|
2
|
+
|
|
3
|
+
//#region src/components/segmented-control/modules/root-context.ts
|
|
4
|
+
const SegmentedControlRootContext = createContext();
|
|
5
|
+
|
|
6
|
+
//#endregion
|
|
7
|
+
export { SegmentedControlRootContext };
|
|
8
|
+
//# sourceMappingURL=root-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-context.js","names":[],"sources":["../../../../src/components/segmented-control/modules/root-context.ts"],"sourcesContent":["import type { useSegmentedControl } from './use-segmented-control';\nimport { createContext } from '@/internal/create-context';\n\nexport const SegmentedControlRootContext = createContext<ReturnType<typeof useSegmentedControl>>();\n"],"mappings":";;;AAGA,MAAa,8BAA8B,eAAuD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PropTypes } from "@zag-js/react";
|
|
2
|
+
import { Api, Props } from "@zag-js/radio-group";
|
|
3
|
+
|
|
4
|
+
//#region src/components/segmented-control/modules/use-segmented-control.d.ts
|
|
5
|
+
declare function useSegmentedControl(props?: Omit<Props, 'id'>): Api<PropTypes>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { useSegmentedControl };
|
|
8
|
+
//# sourceMappingURL=use-segmented-control.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-segmented-control.d.ts","names":[],"sources":["../../../../src/components/segmented-control/modules/use-segmented-control.ts"],"sourcesContent":[],"mappings":";;;;iBAKgB,mBAAA,SAA2B,KAAK,eAAoB,IAAI"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { useId } from "react";
|
|
2
|
+
import { normalizeProps, useMachine } from "@zag-js/react";
|
|
3
|
+
import { connect, machine } from "@zag-js/radio-group";
|
|
4
|
+
|
|
5
|
+
//#region src/components/segmented-control/modules/use-segmented-control.ts
|
|
6
|
+
function useSegmentedControl(props = {}) {
|
|
7
|
+
const service = useMachine(machine, {
|
|
8
|
+
id: useId(),
|
|
9
|
+
orientation: "horizontal",
|
|
10
|
+
...props
|
|
11
|
+
});
|
|
12
|
+
return connect(service, normalizeProps);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { useSegmentedControl };
|
|
17
|
+
//# sourceMappingURL=use-segmented-control.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-segmented-control.js","names":[],"sources":["../../../../src/components/segmented-control/modules/use-segmented-control.ts"],"sourcesContent":["import { connect, machine } from '@zag-js/radio-group';\nimport type { Api, Props } from '@zag-js/radio-group';\nimport { normalizeProps, useMachine, type PropTypes } from '@zag-js/react';\nimport { useId } from 'react';\n\nexport function useSegmentedControl(props: Omit<Props, 'id'> = {}): Api<PropTypes> {\n\tconst service = useMachine(machine, {\n\t\tid: useId(),\n\t\torientation: 'horizontal',\n\t\t...props,\n\t});\n\treturn connect(service, normalizeProps);\n}\n"],"mappings":";;;;;AAKA,SAAgB,oBAAoB,QAA2B,EAAE,EAAkB;CAClF,MAAM,UAAU,WAAW,SAAS;EACnC,IAAI,OAAO;EACX,aAAa;EACb,GAAG;EACH,CAAC;AACF,QAAO,QAAQ,SAAS,eAAe"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react182 from "react";
|
|
4
|
+
import * as react_jsx_runtime57 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/switch/anatomy/control.d.ts
|
|
7
|
+
interface SwitchControlProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
|
|
8
|
+
declare function Control(props: SwitchControlProps): string | number | bigint | boolean | Iterable<react182.ReactNode> | Promise<string | number | bigint | boolean | react182.ReactPortal | react182.ReactElement<unknown, string | react182.JSXElementConstructor<any>> | Iterable<react182.ReactNode> | null | undefined> | react_jsx_runtime57.JSX.Element | null | undefined;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { Control, SwitchControlProps };
|
|
11
|
+
//# sourceMappingURL=control.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control.d.ts","names":[],"sources":["../../../../src/components/switch/anatomy/control.tsx"],"sourcesContent":[],"mappings":";;;;;;UAOiB,kBAAA,SAA2B,0BAA0B;iBAE9C,OAAA,QAAe,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,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/control.tsx
|
|
8
|
+
function Control(props) {
|
|
9
|
+
const switch_ = use(SwitchRootContext);
|
|
10
|
+
const { element, children,...rest } = props;
|
|
11
|
+
const attributes = mergeProps(switch_.getControlProps(), rest, { className: classesSwitch.control });
|
|
12
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
13
|
+
...attributes,
|
|
14
|
+
children
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { Control as default };
|
|
20
|
+
//# sourceMappingURL=control.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control.js","names":[],"sources":["../../../../src/components/switch/anatomy/control.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 SwitchControlProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}\n\nexport default function Control(props: SwitchControlProps) {\n\tconst switch_ = use(SwitchRootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(switch_.getControlProps(), rest, {\n\t\tclassName: classesSwitch.control,\n\t});\n\n\treturn element ? element(attributes) : <span {...attributes}>{children}</span>;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,QAAQ,OAA2B;CAC1D,MAAM,UAAU,IAAI,kBAAkB;CAEtC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,QAAQ,iBAAiB,EAAE,MAAM,EAC9D,WAAW,cAAc,SACzB,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAK,GAAI;EAAa;GAAgB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react187 from "react";
|
|
4
|
+
import * as react_jsx_runtime58 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/switch/anatomy/hidden-input.d.ts
|
|
7
|
+
interface SwitchHiddenInputProps extends PropsWithElement<'input'>, HTMLAttributes<'input', 'children'> {}
|
|
8
|
+
declare function HiddenInput(props: SwitchHiddenInputProps): string | number | bigint | boolean | Iterable<react187.ReactNode> | Promise<string | number | bigint | boolean | react187.ReactPortal | react187.ReactElement<unknown, string | react187.JSXElementConstructor<any>> | Iterable<react187.ReactNode> | null | undefined> | react_jsx_runtime58.JSX.Element | null | undefined;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { HiddenInput, SwitchHiddenInputProps };
|
|
11
|
+
//# sourceMappingURL=hidden-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hidden-input.d.ts","names":[],"sources":["../../../../src/components/switch/anatomy/hidden-input.tsx"],"sourcesContent":[],"mappings":";;;;;;UAOiB,sBAAA,SAA+B,2BAA2B;iBAEnD,WAAA,QAAmB,8DAAsB,SAAA,QAAA,CAAA,SAAA,IAAA,6CAAA,QAAA,CAAA,WAAA,GAAA,QAAA,CAAA,+BAAA,QAAA,CAAA,8BAAA,SAAA,QAAA,CAAA,SAAA,wBAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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/hidden-input.tsx
|
|
8
|
+
function HiddenInput(props) {
|
|
9
|
+
const switch_ = use(SwitchRootContext);
|
|
10
|
+
const { element,...rest } = props;
|
|
11
|
+
const attributes = mergeProps(switch_.getHiddenInputProps(), rest, { className: classesSwitch.hiddenInput });
|
|
12
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { HiddenInput as default };
|
|
17
|
+
//# sourceMappingURL=hidden-input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hidden-input.js","names":[],"sources":["../../../../src/components/switch/anatomy/hidden-input.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 SwitchHiddenInputProps extends PropsWithElement<'input'>, HTMLAttributes<'input', 'children'> {}\n\nexport default function HiddenInput(props: SwitchHiddenInputProps) {\n\tconst switch_ = use(SwitchRootContext);\n\n\tconst { element, ...rest } = props;\n\n\tconst attributes = mergeProps(switch_.getHiddenInputProps(), rest, {\n\t\tclassName: classesSwitch.hiddenInput,\n\t});\n\n\treturn element ? element(attributes) : <input {...attributes} />;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,YAAY,OAA+B;CAClE,MAAM,UAAU,IAAI,kBAAkB;CAEtC,MAAM,EAAE,QAAS,GAAG,SAAS;CAE7B,MAAM,aAAa,WAAW,QAAQ,qBAAqB,EAAE,MAAM,EAClE,WAAW,cAAc,aACzB,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC,WAAM,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 react192 from "react";
|
|
4
|
+
import * as react_jsx_runtime59 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/switch/anatomy/label.d.ts
|
|
7
|
+
interface SwitchLabelProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
|
|
8
|
+
declare function Label(props: SwitchLabelProps): string | number | bigint | boolean | Iterable<react192.ReactNode> | Promise<string | number | bigint | boolean | react192.ReactPortal | react192.ReactElement<unknown, string | react192.JSXElementConstructor<any>> | Iterable<react192.ReactNode> | null | undefined> | react_jsx_runtime59.JSX.Element | null | undefined;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { Label, SwitchLabelProps };
|
|
11
|
+
//# sourceMappingURL=label.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.d.ts","names":[],"sources":["../../../../src/components/switch/anatomy/label.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"}
|