@skeletonlabs/skeleton-react 2.0.0-next.10 → 2.0.0-next.12
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 +3 -3
- package/dist/components/accordion/anatomy/item-content.d.ts.map +1 -1
- package/dist/components/accordion/anatomy/item-content.js +1 -1
- package/dist/components/accordion/anatomy/item-content.js.map +1 -1
- package/dist/components/accordion/anatomy/item-heading.d.ts +3 -3
- package/dist/components/accordion/anatomy/item-heading.d.ts.map +1 -1
- package/dist/components/accordion/anatomy/item-heading.js +1 -1
- package/dist/components/accordion/anatomy/item-heading.js.map +1 -1
- package/dist/components/accordion/anatomy/item-indicator.d.ts +3 -3
- package/dist/components/accordion/anatomy/item-indicator.d.ts.map +1 -1
- package/dist/components/accordion/anatomy/item-indicator.js +1 -1
- package/dist/components/accordion/anatomy/item-indicator.js.map +1 -1
- package/dist/components/accordion/anatomy/item-trigger.d.ts +3 -3
- package/dist/components/accordion/anatomy/item-trigger.d.ts.map +1 -1
- package/dist/components/accordion/anatomy/item-trigger.js +1 -1
- package/dist/components/accordion/anatomy/item-trigger.js.map +1 -1
- package/dist/components/accordion/anatomy/item.d.ts +2 -2
- package/dist/components/accordion/anatomy/item.d.ts.map +1 -1
- package/dist/components/accordion/anatomy/item.js +1 -1
- package/dist/components/accordion/anatomy/item.js.map +1 -1
- package/dist/components/accordion/anatomy/root-provider.d.ts +2 -2
- package/dist/components/accordion/anatomy/root-provider.js +1 -1
- package/dist/components/accordion/anatomy/root-provider.js.map +1 -1
- package/dist/components/accordion/anatomy/root.d.ts +2 -2
- package/dist/components/accordion/anatomy/root.js +1 -1
- package/dist/components/accordion/anatomy/root.js.map +1 -1
- package/dist/components/accordion/modules/root-context.js +0 -1
- package/dist/components/accordion/modules/root-context.js.map +1 -1
- package/dist/components/app-bar/anatomy/headline.d.ts +3 -3
- package/dist/components/app-bar/anatomy/headline.d.ts.map +1 -1
- package/dist/components/app-bar/anatomy/headline.js +1 -1
- package/dist/components/app-bar/anatomy/headline.js.map +1 -1
- package/dist/components/app-bar/anatomy/lead.d.ts +3 -3
- package/dist/components/app-bar/anatomy/lead.d.ts.map +1 -1
- package/dist/components/app-bar/anatomy/lead.js +1 -1
- package/dist/components/app-bar/anatomy/lead.js.map +1 -1
- package/dist/components/app-bar/anatomy/root.d.ts +3 -3
- package/dist/components/app-bar/anatomy/root.d.ts.map +1 -1
- package/dist/components/app-bar/anatomy/root.js +1 -1
- package/dist/components/app-bar/anatomy/root.js.map +1 -1
- package/dist/components/app-bar/anatomy/toolbar.d.ts +3 -3
- package/dist/components/app-bar/anatomy/toolbar.d.ts.map +1 -1
- package/dist/components/app-bar/anatomy/toolbar.js +1 -1
- package/dist/components/app-bar/anatomy/toolbar.js.map +1 -1
- package/dist/components/app-bar/anatomy/trail.d.ts +3 -3
- package/dist/components/app-bar/anatomy/trail.d.ts.map +1 -1
- package/dist/components/app-bar/anatomy/trail.js +1 -1
- package/dist/components/app-bar/anatomy/trail.js.map +1 -1
- package/dist/components/avatar/anatomy/fallback.d.ts +3 -3
- package/dist/components/avatar/anatomy/fallback.d.ts.map +1 -1
- package/dist/components/avatar/anatomy/fallback.js +1 -1
- package/dist/components/avatar/anatomy/fallback.js.map +1 -1
- package/dist/components/avatar/anatomy/image.d.ts +3 -3
- package/dist/components/avatar/anatomy/image.d.ts.map +1 -1
- package/dist/components/avatar/anatomy/image.js +1 -1
- package/dist/components/avatar/anatomy/image.js.map +1 -1
- package/dist/components/avatar/anatomy/root-provider.d.ts +2 -2
- package/dist/components/avatar/anatomy/root-provider.js +1 -1
- package/dist/components/avatar/anatomy/root-provider.js.map +1 -1
- package/dist/components/avatar/anatomy/root.d.ts +2 -2
- package/dist/components/avatar/anatomy/root.js +1 -1
- package/dist/components/avatar/anatomy/root.js.map +1 -1
- package/dist/components/combobox/anatomy/content.d.ts +11 -0
- package/dist/components/combobox/anatomy/content.d.ts.map +1 -0
- package/dist/components/combobox/anatomy/content.js +20 -0
- package/dist/components/combobox/anatomy/content.js.map +1 -0
- package/dist/components/combobox/anatomy/control.d.ts +11 -0
- package/dist/components/combobox/anatomy/control.d.ts.map +1 -0
- package/dist/components/combobox/anatomy/control.js +20 -0
- package/dist/components/combobox/anatomy/control.js.map +1 -0
- package/dist/components/combobox/anatomy/input.d.ts +11 -0
- package/dist/components/combobox/anatomy/input.d.ts.map +1 -0
- package/dist/components/combobox/anatomy/input.js +17 -0
- package/dist/components/combobox/anatomy/input.js.map +1 -0
- package/dist/components/combobox/anatomy/item-group-label.d.ts +12 -0
- package/dist/components/combobox/anatomy/item-group-label.d.ts.map +1 -0
- package/dist/components/combobox/anatomy/item-group-label.js +27 -0
- package/dist/components/combobox/anatomy/item-group-label.js.map +1 -0
- package/dist/components/combobox/anatomy/item-group.d.ts +11 -0
- package/dist/components/combobox/anatomy/item-group.d.ts.map +1 -0
- package/dist/components/combobox/anatomy/item-group.js +29 -0
- package/dist/components/combobox/anatomy/item-group.js.map +1 -0
- package/dist/components/combobox/anatomy/item-indicator.d.ts +11 -0
- package/dist/components/combobox/anatomy/item-indicator.d.ts.map +1 -0
- package/dist/components/combobox/anatomy/item-indicator.js +23 -0
- package/dist/components/combobox/anatomy/item-indicator.js.map +1 -0
- package/dist/components/combobox/anatomy/item-text.d.ts +11 -0
- package/dist/components/combobox/anatomy/item-text.d.ts.map +1 -0
- package/dist/components/combobox/anatomy/item-text.js +22 -0
- package/dist/components/combobox/anatomy/item-text.js.map +1 -0
- package/dist/components/combobox/anatomy/item.d.ts +11 -0
- package/dist/components/combobox/anatomy/item.d.ts.map +1 -0
- package/dist/components/combobox/anatomy/item.js +26 -0
- package/dist/components/combobox/anatomy/item.js.map +1 -0
- package/dist/components/combobox/anatomy/label.d.ts +11 -0
- package/dist/components/combobox/anatomy/label.d.ts.map +1 -0
- package/dist/components/combobox/anatomy/label.js +20 -0
- package/dist/components/combobox/anatomy/label.js.map +1 -0
- package/dist/components/combobox/anatomy/positioner.d.ts +11 -0
- package/dist/components/combobox/anatomy/positioner.d.ts.map +1 -0
- package/dist/components/combobox/anatomy/positioner.js +20 -0
- package/dist/components/combobox/anatomy/positioner.js.map +1 -0
- package/dist/components/combobox/anatomy/root-context.d.ts +11 -0
- package/dist/components/combobox/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/combobox/anatomy/root-context.js +13 -0
- package/dist/components/combobox/anatomy/root-context.js.map +1 -0
- package/dist/components/combobox/anatomy/root-provider.d.ts +13 -0
- package/dist/components/combobox/anatomy/root-provider.d.ts.map +1 -0
- package/dist/components/combobox/anatomy/root-provider.js +21 -0
- package/dist/components/combobox/anatomy/root-provider.js.map +1 -0
- package/dist/components/combobox/anatomy/root.d.ts +11 -0
- package/dist/components/combobox/anatomy/root.d.ts.map +1 -0
- package/dist/components/combobox/anatomy/root.js +25 -0
- package/dist/components/combobox/anatomy/root.js.map +1 -0
- package/dist/components/combobox/anatomy/trigger.d.ts +11 -0
- package/dist/components/combobox/anatomy/trigger.d.ts.map +1 -0
- package/dist/components/combobox/anatomy/trigger.js +21 -0
- package/dist/components/combobox/anatomy/trigger.js.map +1 -0
- package/dist/components/combobox/modules/anatomy.d.ts +34 -0
- package/dist/components/combobox/modules/anatomy.d.ts.map +1 -0
- package/dist/components/combobox/modules/anatomy.js +35 -0
- package/dist/components/combobox/modules/anatomy.js.map +1 -0
- package/dist/components/combobox/modules/item-context.js +8 -0
- package/dist/components/combobox/modules/item-context.js.map +1 -0
- package/dist/components/combobox/modules/item-group-context.js +8 -0
- package/dist/components/combobox/modules/item-group-context.js.map +1 -0
- package/dist/components/combobox/modules/root-context.js +8 -0
- package/dist/components/combobox/modules/root-context.js.map +1 -0
- package/dist/components/combobox/modules/use-combobox.d.ts +8 -0
- package/dist/components/combobox/modules/use-combobox.d.ts.map +1 -0
- package/dist/components/combobox/modules/use-combobox.js +16 -0
- package/dist/components/combobox/modules/use-combobox.js.map +1 -0
- package/dist/components/dialog/anatomy/backdrop.d.ts +3 -3
- package/dist/components/dialog/anatomy/backdrop.d.ts.map +1 -1
- package/dist/components/dialog/anatomy/backdrop.js +1 -1
- package/dist/components/dialog/anatomy/backdrop.js.map +1 -1
- package/dist/components/dialog/anatomy/close-trigger.d.ts +3 -3
- package/dist/components/dialog/anatomy/close-trigger.d.ts.map +1 -1
- package/dist/components/dialog/anatomy/close-trigger.js +1 -1
- package/dist/components/dialog/anatomy/close-trigger.js.map +1 -1
- package/dist/components/dialog/anatomy/content.d.ts +3 -3
- package/dist/components/dialog/anatomy/content.d.ts.map +1 -1
- package/dist/components/dialog/anatomy/content.js +1 -1
- package/dist/components/dialog/anatomy/content.js.map +1 -1
- package/dist/components/dialog/anatomy/description.d.ts +3 -3
- package/dist/components/dialog/anatomy/description.d.ts.map +1 -1
- package/dist/components/dialog/anatomy/description.js +1 -1
- package/dist/components/dialog/anatomy/description.js.map +1 -1
- package/dist/components/dialog/anatomy/positioner.d.ts +3 -3
- package/dist/components/dialog/anatomy/positioner.d.ts.map +1 -1
- package/dist/components/dialog/anatomy/positioner.js +1 -1
- package/dist/components/dialog/anatomy/positioner.js.map +1 -1
- package/dist/components/dialog/anatomy/root-provider.d.ts +2 -2
- package/dist/components/dialog/anatomy/root.d.ts +2 -2
- package/dist/components/dialog/anatomy/title.d.ts +3 -3
- package/dist/components/dialog/anatomy/title.d.ts.map +1 -1
- package/dist/components/dialog/anatomy/title.js +1 -1
- package/dist/components/dialog/anatomy/title.js.map +1 -1
- package/dist/components/dialog/anatomy/trigger.d.ts +3 -3
- package/dist/components/dialog/anatomy/trigger.d.ts.map +1 -1
- package/dist/components/dialog/anatomy/trigger.js +1 -1
- package/dist/components/dialog/anatomy/trigger.js.map +1 -1
- package/dist/components/file-upload/anatomy/dropzone.d.ts +3 -3
- package/dist/components/file-upload/anatomy/dropzone.js +1 -1
- package/dist/components/file-upload/anatomy/dropzone.js.map +1 -1
- package/dist/components/file-upload/anatomy/hidden-input.d.ts +3 -3
- package/dist/components/file-upload/anatomy/hidden-input.js +1 -1
- package/dist/components/file-upload/anatomy/hidden-input.js.map +1 -1
- package/dist/components/file-upload/anatomy/item-delete-trigger.d.ts +3 -3
- package/dist/components/file-upload/anatomy/item-delete-trigger.js +1 -1
- package/dist/components/file-upload/anatomy/item-delete-trigger.js.map +1 -1
- package/dist/components/file-upload/anatomy/item-group.d.ts +3 -3
- package/dist/components/file-upload/anatomy/item-group.js +1 -1
- package/dist/components/file-upload/anatomy/item-group.js.map +1 -1
- package/dist/components/file-upload/anatomy/item-name.d.ts +3 -3
- package/dist/components/file-upload/anatomy/item-name.js +1 -1
- package/dist/components/file-upload/anatomy/item-name.js.map +1 -1
- package/dist/components/file-upload/anatomy/item-size-text.d.ts +3 -3
- package/dist/components/file-upload/anatomy/item-size-text.js +1 -1
- package/dist/components/file-upload/anatomy/item-size-text.js.map +1 -1
- package/dist/components/file-upload/anatomy/item.d.ts +2 -2
- package/dist/components/file-upload/anatomy/item.js +1 -1
- package/dist/components/file-upload/anatomy/item.js.map +1 -1
- package/dist/components/file-upload/anatomy/root-provider.d.ts +2 -2
- package/dist/components/file-upload/anatomy/root-provider.js +1 -1
- package/dist/components/file-upload/anatomy/root-provider.js.map +1 -1
- package/dist/components/file-upload/anatomy/root.d.ts +2 -2
- package/dist/components/file-upload/anatomy/root.js +1 -1
- package/dist/components/file-upload/anatomy/root.js.map +1 -1
- package/dist/components/file-upload/anatomy/trigger.d.ts +3 -3
- package/dist/components/file-upload/anatomy/trigger.d.ts.map +1 -1
- package/dist/components/file-upload/anatomy/trigger.js +1 -1
- package/dist/components/file-upload/anatomy/trigger.js.map +1 -1
- package/dist/components/popover/anatomy/arrow-tip.d.ts +3 -3
- package/dist/components/popover/anatomy/arrow-tip.d.ts.map +1 -1
- package/dist/components/popover/anatomy/arrow-tip.js +1 -1
- package/dist/components/popover/anatomy/arrow-tip.js.map +1 -1
- package/dist/components/popover/anatomy/arrow.d.ts +3 -3
- package/dist/components/popover/anatomy/arrow.d.ts.map +1 -1
- package/dist/components/popover/anatomy/arrow.js +1 -1
- package/dist/components/popover/anatomy/arrow.js.map +1 -1
- package/dist/components/popover/anatomy/close-trigger.d.ts +3 -3
- package/dist/components/popover/anatomy/close-trigger.d.ts.map +1 -1
- package/dist/components/popover/anatomy/close-trigger.js +1 -1
- package/dist/components/popover/anatomy/close-trigger.js.map +1 -1
- package/dist/components/popover/anatomy/content.d.ts +3 -3
- package/dist/components/popover/anatomy/content.d.ts.map +1 -1
- package/dist/components/popover/anatomy/content.js +1 -1
- package/dist/components/popover/anatomy/content.js.map +1 -1
- package/dist/components/popover/anatomy/description.d.ts +3 -3
- package/dist/components/popover/anatomy/description.d.ts.map +1 -1
- package/dist/components/popover/anatomy/description.js +1 -1
- package/dist/components/popover/anatomy/description.js.map +1 -1
- package/dist/components/popover/anatomy/positioner.d.ts +2 -2
- package/dist/components/popover/anatomy/positioner.d.ts.map +1 -1
- package/dist/components/popover/anatomy/positioner.js +1 -1
- package/dist/components/popover/anatomy/positioner.js.map +1 -1
- package/dist/components/popover/anatomy/root-provider.d.ts +2 -2
- package/dist/components/popover/anatomy/root-provider.d.ts.map +1 -1
- package/dist/components/popover/anatomy/root.d.ts +2 -2
- package/dist/components/popover/anatomy/root.d.ts.map +1 -1
- package/dist/components/popover/anatomy/title.d.ts +3 -3
- package/dist/components/popover/anatomy/title.d.ts.map +1 -1
- package/dist/components/popover/anatomy/title.js +1 -1
- package/dist/components/popover/anatomy/title.js.map +1 -1
- package/dist/components/popover/anatomy/trigger.d.ts +3 -3
- package/dist/components/popover/anatomy/trigger.d.ts.map +1 -1
- package/dist/components/popover/anatomy/trigger.js +1 -1
- package/dist/components/popover/anatomy/trigger.js.map +1 -1
- package/dist/components/progress-linear/anatomy/label.d.ts +3 -3
- package/dist/components/progress-linear/anatomy/label.js +1 -1
- package/dist/components/progress-linear/anatomy/label.js.map +1 -1
- package/dist/components/progress-linear/anatomy/range.d.ts +3 -3
- package/dist/components/progress-linear/anatomy/range.js +1 -1
- package/dist/components/progress-linear/anatomy/range.js.map +1 -1
- package/dist/components/progress-linear/anatomy/root-provider.d.ts +2 -2
- package/dist/components/progress-linear/anatomy/root-provider.js +1 -1
- package/dist/components/progress-linear/anatomy/root-provider.js.map +1 -1
- package/dist/components/progress-linear/anatomy/root.d.ts +2 -2
- package/dist/components/progress-linear/anatomy/root.js +1 -1
- package/dist/components/progress-linear/anatomy/root.js.map +1 -1
- package/dist/components/progress-linear/anatomy/track.d.ts +3 -3
- package/dist/components/progress-linear/anatomy/track.js +1 -1
- package/dist/components/progress-linear/anatomy/track.js.map +1 -1
- package/dist/components/rating-group/anatomy/control.d.ts +3 -3
- package/dist/components/rating-group/anatomy/control.js +1 -1
- package/dist/components/rating-group/anatomy/control.js.map +1 -1
- package/dist/components/rating-group/anatomy/hidden-input.d.ts +3 -3
- package/dist/components/rating-group/anatomy/hidden-input.js +1 -1
- package/dist/components/rating-group/anatomy/hidden-input.js.map +1 -1
- package/dist/components/rating-group/anatomy/item.d.ts +3 -3
- package/dist/components/rating-group/anatomy/item.js +2 -2
- package/dist/components/rating-group/anatomy/item.js.map +1 -1
- package/dist/components/rating-group/anatomy/label.d.ts +3 -3
- package/dist/components/rating-group/anatomy/label.js +1 -1
- package/dist/components/rating-group/anatomy/label.js.map +1 -1
- package/dist/components/rating-group/anatomy/root-provider.d.ts +2 -2
- package/dist/components/rating-group/anatomy/root-provider.js +1 -1
- package/dist/components/rating-group/anatomy/root-provider.js.map +1 -1
- package/dist/components/rating-group/anatomy/root.d.ts +2 -2
- package/dist/components/rating-group/anatomy/root.js +1 -1
- package/dist/components/rating-group/anatomy/root.js.map +1 -1
- package/dist/components/segmented-control/anatomy/indicator.d.ts +3 -3
- package/dist/components/segmented-control/anatomy/indicator.js +1 -1
- package/dist/components/segmented-control/anatomy/indicator.js.map +1 -1
- package/dist/components/segmented-control/anatomy/item-hidden-input.d.ts +3 -3
- package/dist/components/segmented-control/anatomy/item-hidden-input.js +1 -1
- package/dist/components/segmented-control/anatomy/item-hidden-input.js.map +1 -1
- package/dist/components/segmented-control/anatomy/item-text.d.ts +3 -3
- package/dist/components/segmented-control/anatomy/item-text.js +1 -1
- package/dist/components/segmented-control/anatomy/item-text.js.map +1 -1
- package/dist/components/segmented-control/anatomy/item.d.ts +2 -2
- package/dist/components/segmented-control/anatomy/item.js +1 -1
- package/dist/components/segmented-control/anatomy/item.js.map +1 -1
- package/dist/components/segmented-control/anatomy/root-provider.d.ts +2 -2
- package/dist/components/segmented-control/anatomy/root-provider.js +1 -1
- package/dist/components/segmented-control/anatomy/root-provider.js.map +1 -1
- package/dist/components/segmented-control/anatomy/root.d.ts +2 -2
- package/dist/components/segmented-control/anatomy/root.js +1 -1
- package/dist/components/segmented-control/anatomy/root.js.map +1 -1
- package/dist/components/slider/anatomy/control.d.ts +11 -0
- package/dist/components/slider/anatomy/control.d.ts.map +1 -0
- package/dist/components/slider/anatomy/control.js +20 -0
- package/dist/components/slider/anatomy/control.js.map +1 -0
- package/dist/components/slider/anatomy/hidden-input.d.ts +11 -0
- package/dist/components/slider/anatomy/hidden-input.d.ts.map +1 -0
- package/dist/components/slider/anatomy/hidden-input.js +19 -0
- package/dist/components/slider/anatomy/hidden-input.js.map +1 -0
- package/dist/components/slider/anatomy/label.d.ts +11 -0
- package/dist/components/slider/anatomy/label.d.ts.map +1 -0
- package/dist/components/slider/anatomy/label.js +20 -0
- package/dist/components/slider/anatomy/label.js.map +1 -0
- package/dist/components/slider/anatomy/marker-group.d.ts +11 -0
- package/dist/components/slider/anatomy/marker-group.d.ts.map +1 -0
- package/dist/components/slider/anatomy/marker-group.js +20 -0
- package/dist/components/slider/anatomy/marker-group.js.map +1 -0
- package/dist/components/slider/anatomy/marker.d.ts +12 -0
- package/dist/components/slider/anatomy/marker.d.ts.map +1 -0
- package/dist/components/slider/anatomy/marker.js +20 -0
- package/dist/components/slider/anatomy/marker.js.map +1 -0
- package/dist/components/slider/anatomy/range.d.ts +11 -0
- package/dist/components/slider/anatomy/range.d.ts.map +1 -0
- package/dist/components/slider/anatomy/range.js +20 -0
- package/dist/components/slider/anatomy/range.js.map +1 -0
- package/dist/components/slider/anatomy/root-context.d.ts +11 -0
- package/dist/components/slider/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/slider/anatomy/root-context.js +13 -0
- package/dist/components/slider/anatomy/root-context.js.map +1 -0
- package/dist/components/slider/anatomy/root-provider.d.ts +13 -0
- package/dist/components/slider/anatomy/root-provider.d.ts.map +1 -0
- package/dist/components/slider/anatomy/root-provider.js +21 -0
- package/dist/components/slider/anatomy/root-provider.js.map +1 -0
- package/dist/components/slider/anatomy/root.d.ts +11 -0
- package/dist/components/slider/anatomy/root.d.ts.map +1 -0
- package/dist/components/slider/anatomy/root.js +25 -0
- package/dist/components/slider/anatomy/root.js.map +1 -0
- package/dist/components/slider/anatomy/thumb.d.ts +11 -0
- package/dist/components/slider/anatomy/thumb.d.ts.map +1 -0
- package/dist/components/slider/anatomy/thumb.js +26 -0
- package/dist/components/slider/anatomy/thumb.js.map +1 -0
- package/dist/components/slider/anatomy/track.d.ts +11 -0
- package/dist/components/slider/anatomy/track.d.ts.map +1 -0
- package/dist/components/slider/anatomy/track.js +20 -0
- package/dist/components/slider/anatomy/track.js.map +1 -0
- package/dist/components/slider/anatomy/value-text.d.ts +11 -0
- package/dist/components/slider/anatomy/value-text.d.ts.map +1 -0
- package/dist/components/slider/anatomy/value-text.js +20 -0
- package/dist/components/slider/anatomy/value-text.js.map +1 -0
- package/dist/components/slider/modules/anatomy.d.ts +30 -0
- package/dist/components/slider/modules/anatomy.d.ts.map +1 -0
- package/dist/components/slider/modules/anatomy.js +31 -0
- package/dist/components/slider/modules/anatomy.js.map +1 -0
- package/dist/components/slider/modules/root-context.js +8 -0
- package/dist/components/slider/modules/root-context.js.map +1 -0
- package/dist/components/slider/modules/thumb-context.js +8 -0
- package/dist/components/slider/modules/thumb-context.js.map +1 -0
- package/dist/components/slider/modules/use-slider.d.ts +8 -0
- package/dist/components/slider/modules/use-slider.d.ts.map +1 -0
- package/dist/components/slider/modules/use-slider.js +16 -0
- package/dist/components/slider/modules/use-slider.js.map +1 -0
- package/dist/components/switch/anatomy/control.d.ts +3 -3
- package/dist/components/switch/anatomy/control.d.ts.map +1 -1
- package/dist/components/switch/anatomy/control.js +1 -1
- package/dist/components/switch/anatomy/control.js.map +1 -1
- package/dist/components/switch/anatomy/hidden-input.d.ts +3 -3
- package/dist/components/switch/anatomy/hidden-input.d.ts.map +1 -1
- package/dist/components/switch/anatomy/hidden-input.js +1 -1
- package/dist/components/switch/anatomy/hidden-input.js.map +1 -1
- package/dist/components/switch/anatomy/label.d.ts +3 -3
- package/dist/components/switch/anatomy/label.js +1 -1
- package/dist/components/switch/anatomy/label.js.map +1 -1
- package/dist/components/switch/anatomy/root-provider.d.ts +2 -2
- package/dist/components/switch/anatomy/root-provider.js +1 -1
- package/dist/components/switch/anatomy/root-provider.js.map +1 -1
- package/dist/components/switch/anatomy/root.d.ts +2 -2
- package/dist/components/switch/anatomy/root.d.ts.map +1 -1
- package/dist/components/switch/anatomy/root.js +1 -1
- package/dist/components/switch/anatomy/root.js.map +1 -1
- package/dist/components/switch/anatomy/thumb.d.ts +3 -3
- package/dist/components/switch/anatomy/thumb.js +1 -1
- package/dist/components/switch/anatomy/thumb.js.map +1 -1
- package/dist/components/tabs/anatomy/content.d.ts +3 -3
- package/dist/components/tabs/anatomy/content.js +1 -1
- package/dist/components/tabs/anatomy/content.js.map +1 -1
- package/dist/components/tabs/anatomy/indicator.d.ts +3 -3
- package/dist/components/tabs/anatomy/indicator.js +1 -1
- package/dist/components/tabs/anatomy/indicator.js.map +1 -1
- package/dist/components/tabs/anatomy/list.d.ts +3 -3
- package/dist/components/tabs/anatomy/list.js +1 -1
- package/dist/components/tabs/anatomy/list.js.map +1 -1
- package/dist/components/tabs/anatomy/root-provider.d.ts +2 -2
- package/dist/components/tabs/anatomy/root-provider.js +1 -1
- package/dist/components/tabs/anatomy/root-provider.js.map +1 -1
- package/dist/components/tabs/anatomy/root.d.ts +2 -2
- package/dist/components/tabs/anatomy/root.js +1 -1
- package/dist/components/tabs/anatomy/root.js.map +1 -1
- package/dist/components/tabs/anatomy/trigger.d.ts +3 -3
- package/dist/components/tabs/anatomy/trigger.js +1 -1
- package/dist/components/tabs/anatomy/trigger.js.map +1 -1
- package/dist/components/tags-input/anatomy/clear-trigger.d.ts +3 -3
- package/dist/components/tags-input/anatomy/clear-trigger.js +1 -1
- package/dist/components/tags-input/anatomy/clear-trigger.js.map +1 -1
- package/dist/components/tags-input/anatomy/control.d.ts +3 -3
- package/dist/components/tags-input/anatomy/control.js +1 -1
- package/dist/components/tags-input/anatomy/control.js.map +1 -1
- package/dist/components/tags-input/anatomy/hidden-input.d.ts +3 -3
- package/dist/components/tags-input/anatomy/hidden-input.js +1 -1
- package/dist/components/tags-input/anatomy/hidden-input.js.map +1 -1
- package/dist/components/tags-input/anatomy/input.d.ts +3 -3
- package/dist/components/tags-input/anatomy/input.js +1 -1
- package/dist/components/tags-input/anatomy/input.js.map +1 -1
- package/dist/components/tags-input/anatomy/item-delete-trigger.d.ts +3 -3
- package/dist/components/tags-input/anatomy/item-delete-trigger.js +1 -1
- package/dist/components/tags-input/anatomy/item-delete-trigger.js.map +1 -1
- package/dist/components/tags-input/anatomy/item-input.d.ts +3 -3
- package/dist/components/tags-input/anatomy/item-input.js +1 -1
- package/dist/components/tags-input/anatomy/item-input.js.map +1 -1
- package/dist/components/tags-input/anatomy/item-preview.d.ts +3 -3
- package/dist/components/tags-input/anatomy/item-preview.js +1 -1
- package/dist/components/tags-input/anatomy/item-preview.js.map +1 -1
- package/dist/components/tags-input/anatomy/item-text.d.ts +3 -3
- package/dist/components/tags-input/anatomy/item-text.js +1 -1
- package/dist/components/tags-input/anatomy/item-text.js.map +1 -1
- package/dist/components/tags-input/anatomy/item.d.ts +2 -2
- package/dist/components/tags-input/anatomy/item.js +1 -1
- package/dist/components/tags-input/anatomy/item.js.map +1 -1
- package/dist/components/tags-input/anatomy/label.d.ts +3 -3
- package/dist/components/tags-input/anatomy/label.js +1 -1
- package/dist/components/tags-input/anatomy/label.js.map +1 -1
- package/dist/components/tags-input/anatomy/root-provider.d.ts +2 -2
- package/dist/components/tags-input/anatomy/root-provider.js +1 -1
- package/dist/components/tags-input/anatomy/root-provider.js.map +1 -1
- package/dist/components/tags-input/anatomy/root.d.ts +2 -2
- package/dist/components/tags-input/anatomy/root.js +1 -1
- package/dist/components/tags-input/anatomy/root.js.map +1 -1
- package/dist/components/toast/anatomy/action-trigger.d.ts +3 -3
- package/dist/components/toast/anatomy/action-trigger.d.ts.map +1 -1
- package/dist/components/toast/anatomy/action-trigger.js +1 -1
- package/dist/components/toast/anatomy/action-trigger.js.map +1 -1
- package/dist/components/toast/anatomy/close-trigger.d.ts +3 -3
- package/dist/components/toast/anatomy/close-trigger.js +1 -1
- package/dist/components/toast/anatomy/close-trigger.js.map +1 -1
- package/dist/components/toast/anatomy/description.d.ts +3 -3
- package/dist/components/toast/anatomy/description.js +1 -1
- package/dist/components/toast/anatomy/description.js.map +1 -1
- package/dist/components/toast/anatomy/group.d.ts +2 -2
- package/dist/components/toast/anatomy/group.js +1 -1
- package/dist/components/toast/anatomy/group.js.map +1 -1
- package/dist/components/toast/anatomy/message.d.ts +3 -3
- package/dist/components/toast/anatomy/message.js +1 -1
- package/dist/components/toast/anatomy/message.js.map +1 -1
- package/dist/components/toast/anatomy/root.d.ts +2 -2
- package/dist/components/toast/anatomy/root.js +1 -1
- package/dist/components/toast/anatomy/root.js.map +1 -1
- package/dist/components/toast/anatomy/title.d.ts +3 -3
- package/dist/components/toast/anatomy/title.js +1 -1
- package/dist/components/toast/anatomy/title.js.map +1 -1
- package/dist/components/tooltip/anatomy/arrow-tip.d.ts +3 -3
- package/dist/components/tooltip/anatomy/arrow-tip.d.ts.map +1 -1
- package/dist/components/tooltip/anatomy/arrow-tip.js +1 -1
- package/dist/components/tooltip/anatomy/arrow-tip.js.map +1 -1
- package/dist/components/tooltip/anatomy/arrow.d.ts +3 -3
- package/dist/components/tooltip/anatomy/arrow.d.ts.map +1 -1
- package/dist/components/tooltip/anatomy/arrow.js +1 -1
- package/dist/components/tooltip/anatomy/arrow.js.map +1 -1
- package/dist/components/tooltip/anatomy/content.d.ts +3 -3
- package/dist/components/tooltip/anatomy/content.d.ts.map +1 -1
- package/dist/components/tooltip/anatomy/content.js +1 -1
- package/dist/components/tooltip/anatomy/content.js.map +1 -1
- package/dist/components/tooltip/anatomy/positioner.d.ts +2 -2
- package/dist/components/tooltip/anatomy/positioner.d.ts.map +1 -1
- package/dist/components/tooltip/anatomy/positioner.js +1 -1
- package/dist/components/tooltip/anatomy/positioner.js.map +1 -1
- package/dist/components/tooltip/anatomy/root-provider.d.ts +2 -2
- package/dist/components/tooltip/anatomy/root-provider.d.ts.map +1 -1
- package/dist/components/tooltip/anatomy/root.d.ts +2 -2
- package/dist/components/tooltip/anatomy/root.d.ts.map +1 -1
- package/dist/components/tooltip/anatomy/trigger.d.ts +3 -3
- package/dist/components/tooltip/anatomy/trigger.d.ts.map +1 -1
- package/dist/components/tooltip/anatomy/trigger.js +1 -1
- package/dist/components/tooltip/anatomy/trigger.js.map +1 -1
- package/dist/hooks/use-list-collection.d.ts +7 -0
- package/dist/hooks/use-list-collection.d.ts.map +1 -0
- package/dist/hooks/use-list-collection.js +10 -0
- package/dist/hooks/use-list-collection.js.map +1 -0
- package/dist/index.d.ts +32 -1
- package/dist/index.js +6 -14
- package/dist/internal/components/check.js +26 -0
- package/dist/internal/components/check.js.map +1 -0
- package/dist/internal/components/chevron-down.js +21 -0
- package/dist/internal/components/chevron-down.js.map +1 -0
- package/dist/internal/components/x.js +2 -2
- package/dist/internal/components/x.js.map +1 -1
- package/package.json +11 -6
- package/dist/components/accordion/index.js +0 -4
- package/dist/components/app-bar/index.js +0 -3
- package/dist/components/avatar/index.js +0 -4
- package/dist/components/dialog/index.js +0 -4
- package/dist/components/file-upload/index.js +0 -4
- package/dist/components/popover/index.js +0 -4
- package/dist/components/progress-linear/index.js +0 -4
- package/dist/components/rating-group/index.js +0 -4
- package/dist/components/segmented-control/index.js +0 -4
- package/dist/components/switch/index.js +0 -4
- package/dist/components/tabs/index.js +0 -4
- package/dist/components/tags-input/index.js +0 -4
- package/dist/components/tooltip/index.js +0 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react139 from "react";
|
|
4
4
|
import { ReactNode } from "react";
|
|
5
|
-
import * as
|
|
5
|
+
import * as react_jsx_runtime38 from "react/jsx-runtime";
|
|
6
6
|
import { ItemProps } from "@zag-js/rating-group";
|
|
7
7
|
|
|
8
8
|
//#region src/components/rating-group/anatomy/item.d.ts
|
|
@@ -26,7 +26,7 @@ interface RatingGroupItemProps extends ItemProps, PropsWithElement<'span'>, HTML
|
|
|
26
26
|
*/
|
|
27
27
|
full?: ReactNode;
|
|
28
28
|
}
|
|
29
|
-
declare function Item(props: RatingGroupItemProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean |
|
|
29
|
+
declare function Item(props: RatingGroupItemProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react139.ReactPortal | react139.ReactElement<unknown, string | react139.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime38.JSX.Element | null | undefined;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { Item, RatingGroupItemProps };
|
|
32
32
|
//# sourceMappingURL=item.d.ts.map
|
|
@@ -4,7 +4,7 @@ import StarFull from "../../../internal/components/star-full.js";
|
|
|
4
4
|
import StarHalf from "../../../internal/components/star-half.js";
|
|
5
5
|
import { use } from "react";
|
|
6
6
|
import { mergeProps } from "@zag-js/react";
|
|
7
|
-
import {
|
|
7
|
+
import { classesRatingGroup } from "@skeletonlabs/skeleton-common";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
import { splitItemProps } from "@zag-js/rating-group";
|
|
10
10
|
|
|
@@ -14,7 +14,7 @@ function Item(props) {
|
|
|
14
14
|
const [itemProps, componentProps] = splitItemProps(props);
|
|
15
15
|
const { element, children, empty = /* @__PURE__ */ jsx(StarEmpty, {}), half = /* @__PURE__ */ jsx(StarHalf, {}), full = /* @__PURE__ */ jsx(StarFull, {}),...rest } = componentProps;
|
|
16
16
|
const itemState = ratingGroup.getItemState(itemProps);
|
|
17
|
-
const attributes = mergeProps(ratingGroup.getItemProps(itemProps),
|
|
17
|
+
const attributes = mergeProps(ratingGroup.getItemProps(itemProps), { className: classesRatingGroup.item }, rest);
|
|
18
18
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
19
19
|
...attributes,
|
|
20
20
|
children: children ? children : !itemState.highlighted ? empty : itemState.half ? half : full
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.js","names":[],"sources":["../../../../src/components/rating-group/anatomy/item.tsx"],"sourcesContent":["import { RatingGroupRootContext } from '../modules/root-context';\nimport StarEmpty from '@/internal/components/star-empty';\nimport StarFull from '@/internal/components/star-full';\nimport StarHalf from '@/internal/components/star-half';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport {
|
|
1
|
+
{"version":3,"file":"item.js","names":[],"sources":["../../../../src/components/rating-group/anatomy/item.tsx"],"sourcesContent":["import { RatingGroupRootContext } from '../modules/root-context';\nimport StarEmpty from '@/internal/components/star-empty';\nimport StarFull from '@/internal/components/star-full';\nimport StarHalf from '@/internal/components/star-half';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesRatingGroup } from '@skeletonlabs/skeleton-common';\nimport { splitItemProps } from '@zag-js/rating-group';\nimport type { ItemProps } from '@zag-js/rating-group';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\nimport type { ReactNode } from 'react';\n\nexport interface RatingGroupItemProps extends ItemProps, PropsWithElement<'span'>, HTMLAttributes<'span', 'id' | 'dir'> {\n\t/**\n\t * The content to render when the item is in the empty state.\n\t *\n\t * @default StarEmpty (SVG)\n\t */\n\tempty?: ReactNode;\n\t/**\n\t * The content to render when the item is in the half state.\n\t *\n\t * @default StarHalf (SVG)\n\t */\n\thalf?: ReactNode;\n\t/**\n\t * The content to render when the item is in the full state.\n\t *\n\t * @default StarFull (SVG)\n\t */\n\tfull?: ReactNode;\n}\n\nexport default function Item(props: RatingGroupItemProps) {\n\tconst ratingGroup = use(RatingGroupRootContext);\n\n\tconst [itemProps, componentProps] = splitItemProps(props);\n\tconst { element, children, empty = <StarEmpty />, half = <StarHalf />, full = <StarFull />, ...rest } = componentProps;\n\n\tconst itemState = ratingGroup.getItemState(itemProps);\n\n\tconst attributes = mergeProps(\n\t\tratingGroup.getItemProps(itemProps),\n\t\t{\n\t\t\tclassName: classesRatingGroup.item,\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? (\n\t\telement(attributes)\n\t) : (\n\t\t<div {...attributes}>{children ? children : !itemState.highlighted ? empty : itemState.half ? half : full}</div>\n\t);\n}\n"],"mappings":";;;;;;;;;;;AAkCA,SAAwB,KAAK,OAA6B;CACzD,MAAM,cAAc,IAAI,uBAAuB;CAE/C,MAAM,CAAC,WAAW,kBAAkB,eAAe,MAAM;CACzD,MAAM,EAAE,SAAS,UAAU,QAAQ,oBAAC,cAAY,EAAE,OAAO,oBAAC,aAAW,EAAE,OAAO,oBAAC,aAAW,CAAE,GAAG,SAAS;CAExG,MAAM,YAAY,YAAY,aAAa,UAAU;CAErD,MAAM,aAAa,WAClB,YAAY,aAAa,UAAU,EACnC,EACC,WAAW,mBAAmB,MAC9B,EACD,KACA;AAED,QAAO,UACN,QAAQ,WAAW,GAEnB,oBAAC;EAAI,GAAI;YAAa,WAAW,WAAW,CAAC,UAAU,cAAc,QAAQ,UAAU,OAAO,OAAO;GAAW"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as react142 from "react";
|
|
4
|
+
import * as react_jsx_runtime39 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/rating-group/anatomy/label.d.ts
|
|
7
7
|
interface RatingGroupLabelProps extends PropsWithElement<'label'>, HTMLAttributes<'label', 'id' | 'dir'> {}
|
|
8
|
-
declare function Label(props: RatingGroupLabelProps): string | number | bigint | boolean | Iterable<
|
|
8
|
+
declare function Label(props: RatingGroupLabelProps): string | number | bigint | boolean | Iterable<react142.ReactNode> | Promise<string | number | bigint | boolean | react142.ReactPortal | react142.ReactElement<unknown, string | react142.JSXElementConstructor<any>> | Iterable<react142.ReactNode> | null | undefined> | react_jsx_runtime39.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Label, RatingGroupLabelProps };
|
|
11
11
|
//# sourceMappingURL=label.d.ts.map
|
|
@@ -8,7 +8,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
8
8
|
function Label(props) {
|
|
9
9
|
const ratingGroup = use(RatingGroupRootContext);
|
|
10
10
|
const { element, children,...rest } = props;
|
|
11
|
-
const attributes = mergeProps(ratingGroup.getLabelProps(),
|
|
11
|
+
const attributes = mergeProps(ratingGroup.getLabelProps(), { className: classesRatingGroup.label }, rest);
|
|
12
12
|
return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
13
13
|
...attributes,
|
|
14
14
|
children
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label.js","names":[],"sources":["../../../../src/components/rating-group/anatomy/label.tsx"],"sourcesContent":["import { RatingGroupRootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesRatingGroup } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface RatingGroupLabelProps extends PropsWithElement<'label'>, HTMLAttributes<'label', 'id' | 'dir'> {}\n\nexport default function Label(props: RatingGroupLabelProps) {\n\tconst ratingGroup = use(RatingGroupRootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(
|
|
1
|
+
{"version":3,"file":"label.js","names":[],"sources":["../../../../src/components/rating-group/anatomy/label.tsx"],"sourcesContent":["import { RatingGroupRootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesRatingGroup } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface RatingGroupLabelProps extends PropsWithElement<'label'>, HTMLAttributes<'label', 'id' | 'dir'> {}\n\nexport default function Label(props: RatingGroupLabelProps) {\n\tconst ratingGroup = use(RatingGroupRootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\tratingGroup.getLabelProps(),\n\t\t{\n\t\t\tclassName: classesRatingGroup.label,\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <label {...attributes}>{children}</label>;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,MAAM,OAA8B;CAC3D,MAAM,cAAc,IAAI,uBAAuB;CAE/C,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAClB,YAAY,eAAe,EAC3B,EACC,WAAW,mBAAmB,OAC9B,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAM,GAAI;EAAa;GAAiB"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
3
|
import { useRatingGroup } from "../modules/use-rating-group.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime41 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/rating-group/anatomy/root-provider.d.ts
|
|
7
7
|
interface RatingGroupRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {
|
|
8
8
|
value: ReturnType<typeof useRatingGroup>;
|
|
9
9
|
}
|
|
10
|
-
declare function RootProvider(props: RatingGroupRootProviderProps):
|
|
10
|
+
declare function RootProvider(props: RatingGroupRootProviderProps): react_jsx_runtime41.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { RatingGroupRootProviderProps, RootProvider };
|
|
13
13
|
//# sourceMappingURL=root-provider.d.ts.map
|
|
@@ -6,7 +6,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
6
6
|
//#region src/components/rating-group/anatomy/root-provider.tsx
|
|
7
7
|
function RootProvider(props) {
|
|
8
8
|
const { element, children, value: ratingGroup,...rest } = props;
|
|
9
|
-
const attributes = mergeProps(ratingGroup.getRootProps(),
|
|
9
|
+
const attributes = mergeProps(ratingGroup.getRootProps(), { className: classesRatingGroup.root }, rest);
|
|
10
10
|
return /* @__PURE__ */ jsx(RatingGroupRootContext.Provider, {
|
|
11
11
|
value: ratingGroup,
|
|
12
12
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root-provider.js","names":[],"sources":["../../../../src/components/rating-group/anatomy/root-provider.tsx"],"sourcesContent":["import { RatingGroupRootContext } from '../modules/root-context';\nimport type { useRatingGroup } from '../modules/use-rating-group';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesRatingGroup } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\n\nexport interface RatingGroupRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {\n\tvalue: ReturnType<typeof useRatingGroup>;\n}\n\nexport default function RootProvider(props: RatingGroupRootProviderProps) {\n\tconst { element, children, value: ratingGroup, ...rest } = props;\n\n\tconst attributes = mergeProps(
|
|
1
|
+
{"version":3,"file":"root-provider.js","names":[],"sources":["../../../../src/components/rating-group/anatomy/root-provider.tsx"],"sourcesContent":["import { RatingGroupRootContext } from '../modules/root-context';\nimport type { useRatingGroup } from '../modules/use-rating-group';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesRatingGroup } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\n\nexport interface RatingGroupRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {\n\tvalue: ReturnType<typeof useRatingGroup>;\n}\n\nexport default function RootProvider(props: RatingGroupRootProviderProps) {\n\tconst { element, children, value: ratingGroup, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\tratingGroup.getRootProps(),\n\t\t{\n\t\t\tclassName: classesRatingGroup.root,\n\t\t},\n\t\trest,\n\t);\n\n\treturn (\n\t\t<RatingGroupRootContext.Provider value={ratingGroup}>\n\t\t\t{element ? element(attributes) : <div {...attributes}>{children}</div>}\n\t\t</RatingGroupRootContext.Provider>\n\t);\n}\n"],"mappings":";;;;;;AAWA,SAAwB,aAAa,OAAqC;CACzE,MAAM,EAAE,SAAS,UAAU,OAAO,YAAa,GAAG,SAAS;CAE3D,MAAM,aAAa,WAClB,YAAY,cAAc,EAC1B,EACC,WAAW,mBAAmB,MAC9B,EACD,KACA;AAED,QACC,oBAAC,uBAAuB;EAAS,OAAO;YACtC,UAAU,QAAQ,WAAW,GAAG,oBAAC;GAAI,GAAI;GAAa;IAAe;GACrC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime40 from "react/jsx-runtime";
|
|
4
4
|
import { Props } from "@zag-js/rating-group";
|
|
5
5
|
|
|
6
6
|
//#region src/components/rating-group/anatomy/root.d.ts
|
|
7
7
|
interface RatingGroupRootProps extends Omit<Props, 'id'>, PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {}
|
|
8
|
-
declare function Root(props: RatingGroupRootProps):
|
|
8
|
+
declare function Root(props: RatingGroupRootProps): react_jsx_runtime40.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { RatingGroupRootProps, Root };
|
|
11
11
|
//# sourceMappingURL=root.d.ts.map
|
|
@@ -10,7 +10,7 @@ function Root(props) {
|
|
|
10
10
|
const [ratingGroupProps, componentProps] = splitProps(props);
|
|
11
11
|
const { element, children,...rest } = componentProps;
|
|
12
12
|
const ratingGroup = useRatingGroup(ratingGroupProps);
|
|
13
|
-
const attributes = mergeProps(ratingGroup.getRootProps(),
|
|
13
|
+
const attributes = mergeProps(ratingGroup.getRootProps(), { className: classesRatingGroup.root }, rest);
|
|
14
14
|
return /* @__PURE__ */ jsx(RatingGroupRootContext.Provider, {
|
|
15
15
|
value: ratingGroup,
|
|
16
16
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root.js","names":[],"sources":["../../../../src/components/rating-group/anatomy/root.tsx"],"sourcesContent":["import { RatingGroupRootContext } from '../modules/root-context';\nimport { useRatingGroup } from '../modules/use-rating-group';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesRatingGroup } from '@skeletonlabs/skeleton-common';\nimport { splitProps } from '@zag-js/rating-group';\nimport type { Props } from '@zag-js/rating-group';\nimport { mergeProps } from '@zag-js/react';\n\nexport interface RatingGroupRootProps\n\textends Omit<Props, 'id'>,\n\t\tPropsWithElement<'div'>,\n\t\tHTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {}\n\nexport default function Root(props: RatingGroupRootProps) {\n\tconst [ratingGroupProps, componentProps] = splitProps(props);\n\tconst { element, children, ...rest } = componentProps;\n\n\tconst ratingGroup = useRatingGroup(ratingGroupProps);\n\n\tconst attributes = mergeProps(
|
|
1
|
+
{"version":3,"file":"root.js","names":[],"sources":["../../../../src/components/rating-group/anatomy/root.tsx"],"sourcesContent":["import { RatingGroupRootContext } from '../modules/root-context';\nimport { useRatingGroup } from '../modules/use-rating-group';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesRatingGroup } from '@skeletonlabs/skeleton-common';\nimport { splitProps } from '@zag-js/rating-group';\nimport type { Props } from '@zag-js/rating-group';\nimport { mergeProps } from '@zag-js/react';\n\nexport interface RatingGroupRootProps\n\textends Omit<Props, 'id'>,\n\t\tPropsWithElement<'div'>,\n\t\tHTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {}\n\nexport default function Root(props: RatingGroupRootProps) {\n\tconst [ratingGroupProps, componentProps] = splitProps(props);\n\tconst { element, children, ...rest } = componentProps;\n\n\tconst ratingGroup = useRatingGroup(ratingGroupProps);\n\n\tconst attributes = mergeProps(\n\t\tratingGroup.getRootProps(),\n\t\t{\n\t\t\tclassName: classesRatingGroup.root,\n\t\t},\n\t\trest,\n\t);\n\n\treturn (\n\t\t<RatingGroupRootContext.Provider value={ratingGroup}>\n\t\t\t{element ? element(attributes) : <div {...attributes}>{children}</div>}\n\t\t</RatingGroupRootContext.Provider>\n\t);\n}\n"],"mappings":";;;;;;;;AAcA,SAAwB,KAAK,OAA6B;CACzD,MAAM,CAAC,kBAAkB,kBAAkB,WAAW,MAAM;CAC5D,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,cAAc,eAAe,iBAAiB;CAEpD,MAAM,aAAa,WAClB,YAAY,cAAc,EAC1B,EACC,WAAW,mBAAmB,MAC9B,EACD,KACA;AAED,QACC,oBAAC,uBAAuB;EAAS,OAAO;YACtC,UAAU,QAAQ,WAAW,GAAG,oBAAC;GAAI,GAAI;GAAa;IAAe;GACrC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as react147 from "react";
|
|
4
|
+
import * as react_jsx_runtime44 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/segmented-control/anatomy/indicator.d.ts
|
|
7
7
|
interface SegmentedControlIndicatorProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'children'> {}
|
|
8
|
-
declare function Indicator(props: SegmentedControlIndicatorProps): string | number | bigint | boolean | Iterable<
|
|
8
|
+
declare function Indicator(props: SegmentedControlIndicatorProps): string | number | bigint | boolean | Iterable<react147.ReactNode> | Promise<string | number | bigint | boolean | react147.ReactPortal | react147.ReactElement<unknown, string | react147.JSXElementConstructor<any>> | Iterable<react147.ReactNode> | null | undefined> | react_jsx_runtime44.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Indicator, SegmentedControlIndicatorProps };
|
|
11
11
|
//# sourceMappingURL=indicator.d.ts.map
|
|
@@ -8,7 +8,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
8
8
|
function Indicator(props) {
|
|
9
9
|
const segmentedControl = use(SegmentedControlRootContext);
|
|
10
10
|
const { element,...rest } = props;
|
|
11
|
-
const attributes = mergeProps(segmentedControl.getIndicatorProps(),
|
|
11
|
+
const attributes = mergeProps(segmentedControl.getIndicatorProps(), { className: classesSegmentedControl.indicator }, rest);
|
|
12
12
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", { ...attributes });
|
|
13
13
|
}
|
|
14
14
|
|
|
@@ -1 +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(
|
|
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(\n\t\tsegmentedControl.getIndicatorProps(),\n\t\t{\n\t\t\tclassName: classesSegmentedControl.indicator,\n\t\t},\n\t\trest,\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,WAClB,iBAAiB,mBAAmB,EACpC,EACC,WAAW,wBAAwB,WACnC,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC,SAAI,GAAI,aAAc"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as react157 from "react";
|
|
4
|
+
import * as react_jsx_runtime47 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/segmented-control/anatomy/item-hidden-input.d.ts
|
|
7
7
|
interface SegmentedControlItemHiddenInputProps extends PropsWithElement<'input'>, HTMLAttributes<'input', 'children'> {}
|
|
8
|
-
declare function ItemHiddenInput(props: SegmentedControlItemHiddenInputProps): string | number | bigint | boolean | Iterable<
|
|
8
|
+
declare function ItemHiddenInput(props: SegmentedControlItemHiddenInputProps): string | number | bigint | boolean | Iterable<react157.ReactNode> | Promise<string | number | bigint | boolean | react157.ReactPortal | react157.ReactElement<unknown, string | react157.JSXElementConstructor<any>> | Iterable<react157.ReactNode> | null | undefined> | react_jsx_runtime47.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { ItemHiddenInput, SegmentedControlItemHiddenInputProps };
|
|
11
11
|
//# sourceMappingURL=item-hidden-input.d.ts.map
|
|
@@ -10,7 +10,7 @@ function ItemHiddenInput(props) {
|
|
|
10
10
|
const segmentedControl = use(SegmentedControlRootContext);
|
|
11
11
|
const itemProps = use(SegmentedControlItemContext);
|
|
12
12
|
const { element,...rest } = props;
|
|
13
|
-
const attributes = mergeProps(segmentedControl.getItemHiddenInputProps(itemProps),
|
|
13
|
+
const attributes = mergeProps(segmentedControl.getItemHiddenInputProps(itemProps), { className: classesSegmentedControl.itemHiddenInput }, rest);
|
|
14
14
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -1 +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(
|
|
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(\n\t\tsegmentedControl.getItemHiddenInputProps(itemProps),\n\t\t{\n\t\t\tclassName: classesSegmentedControl.itemHiddenInput,\n\t\t},\n\t\trest,\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,WAClB,iBAAiB,wBAAwB,UAAU,EACnD,EACC,WAAW,wBAAwB,iBACnC,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC,WAAM,GAAI,aAAc"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as react152 from "react";
|
|
4
|
+
import * as react_jsx_runtime46 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/segmented-control/anatomy/item-text.d.ts
|
|
7
7
|
interface SegmentedControlItemTextProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
|
|
8
|
-
declare function ItemText(props: SegmentedControlItemTextProps): string | number | bigint | boolean | Iterable<
|
|
8
|
+
declare function ItemText(props: SegmentedControlItemTextProps): string | number | bigint | boolean | Iterable<react152.ReactNode> | Promise<string | number | bigint | boolean | react152.ReactPortal | react152.ReactElement<unknown, string | react152.JSXElementConstructor<any>> | Iterable<react152.ReactNode> | null | undefined> | react_jsx_runtime46.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { ItemText, SegmentedControlItemTextProps };
|
|
11
11
|
//# sourceMappingURL=item-text.d.ts.map
|
|
@@ -10,7 +10,7 @@ function ItemText(props) {
|
|
|
10
10
|
const segmentedControl = use(SegmentedControlRootContext);
|
|
11
11
|
const itemProps = use(SegmentedControlItemContext);
|
|
12
12
|
const { element, children,...rest } = props;
|
|
13
|
-
const attributes = mergeProps(segmentedControl.getItemTextProps(itemProps),
|
|
13
|
+
const attributes = mergeProps(segmentedControl.getItemTextProps(itemProps), { className: classesSegmentedControl.itemText }, rest);
|
|
14
14
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
15
15
|
...attributes,
|
|
16
16
|
children
|
|
@@ -1 +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(
|
|
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(\n\t\tsegmentedControl.getItemTextProps(itemProps),\n\t\t{\n\t\t\tclassName: classesSegmentedControl.itemText,\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <span {...attributes}>{children}</span>;\n}\n"],"mappings":";;;;;;;;AAUA,SAAwB,SAAS,OAAsC;CACtE,MAAM,mBAAmB,IAAI,4BAA4B;CACzD,MAAM,YAAY,IAAI,4BAA4B;CAElD,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAClB,iBAAiB,iBAAiB,UAAU,EAC5C,EACC,WAAW,wBAAwB,UACnC,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAK,GAAI;EAAa;GAAgB"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime45 from "react/jsx-runtime";
|
|
4
4
|
import { ItemProps } from "@zag-js/radio-group";
|
|
5
5
|
|
|
6
6
|
//#region src/components/segmented-control/anatomy/item.d.ts
|
|
7
7
|
interface SegmentedControlItemProps extends ItemProps, PropsWithElement<'label'>, HTMLAttributes<'label'> {}
|
|
8
|
-
declare function Item(props: SegmentedControlItemProps):
|
|
8
|
+
declare function Item(props: SegmentedControlItemProps): react_jsx_runtime45.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Item, SegmentedControlItemProps };
|
|
11
11
|
//# sourceMappingURL=item.d.ts.map
|
|
@@ -11,7 +11,7 @@ function Item(props) {
|
|
|
11
11
|
const segmentedControl = use(SegmentedControlRootContext);
|
|
12
12
|
const [itemProps, componentProps] = splitItemProps(props);
|
|
13
13
|
const { element, children,...rest } = componentProps;
|
|
14
|
-
const attributes = mergeProps(segmentedControl.getItemProps(itemProps),
|
|
14
|
+
const attributes = mergeProps(segmentedControl.getItemProps(itemProps), { className: classesSegmentedControl.item }, rest);
|
|
15
15
|
return /* @__PURE__ */ jsx(SegmentedControlItemContext.Provider, {
|
|
16
16
|
value: itemProps,
|
|
17
17
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
@@ -1 +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(
|
|
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(\n\t\tsegmentedControl.getItemProps(itemProps),\n\t\t{\n\t\t\tclassName: classesSegmentedControl.item,\n\t\t},\n\t\trest,\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,WAClB,iBAAiB,aAAa,UAAU,EACxC,EACC,WAAW,wBAAwB,MACnC,EACD,KACA;AAED,QACC,oBAAC,4BAA4B;EAAS,OAAO;YAC3C,UAAU,QAAQ,WAAW,GAAG,oBAAC;GAAM,GAAI;GAAa;IAAiB;GACpC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
3
|
import { useSegmentedControl } from "../modules/use-segmented-control.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime43 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/segmented-control/anatomy/root-provider.d.ts
|
|
7
7
|
interface SegmentedControlRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {
|
|
8
8
|
value: ReturnType<typeof useSegmentedControl>;
|
|
9
9
|
}
|
|
10
|
-
declare function RootProvider(props: SegmentedControlRootProviderProps):
|
|
10
|
+
declare function RootProvider(props: SegmentedControlRootProviderProps): react_jsx_runtime43.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { RootProvider, SegmentedControlRootProviderProps };
|
|
13
13
|
//# sourceMappingURL=root-provider.d.ts.map
|
|
@@ -6,7 +6,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
6
6
|
//#region src/components/segmented-control/anatomy/root-provider.tsx
|
|
7
7
|
function RootProvider(props) {
|
|
8
8
|
const { element, children, value: segmentedControl,...rest } = props;
|
|
9
|
-
const attributes = mergeProps(segmentedControl.getRootProps(),
|
|
9
|
+
const attributes = mergeProps(segmentedControl.getRootProps(), { className: classesSegmentedControl.root }, rest);
|
|
10
10
|
return /* @__PURE__ */ jsx(SegmentedControlRootContext.Provider, {
|
|
11
11
|
value: segmentedControl,
|
|
12
12
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1 +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(
|
|
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(\n\t\tsegmentedControl.getRootProps(),\n\t\t{\n\t\t\tclassName: classesSegmentedControl.root,\n\t\t},\n\t\trest,\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,WAClB,iBAAiB,cAAc,EAC/B,EACC,WAAW,wBAAwB,MACnC,EACD,KACA;AAED,QACC,oBAAC,4BAA4B;EAAS,OAAO;YAC3C,UAAU,QAAQ,WAAW,GAAG,oBAAC;GAAI,GAAI;GAAa;IAAe;GAChC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime42 from "react/jsx-runtime";
|
|
4
4
|
import { Props } from "@zag-js/radio-group";
|
|
5
5
|
|
|
6
6
|
//#region src/components/segmented-control/anatomy/root.d.ts
|
|
7
7
|
interface SegmentedControlRootProps extends Omit<Props, 'id'>, PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {}
|
|
8
|
-
declare function Root(props: SegmentedControlRootProps):
|
|
8
|
+
declare function Root(props: SegmentedControlRootProps): react_jsx_runtime42.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Root, SegmentedControlRootProps };
|
|
11
11
|
//# sourceMappingURL=root.d.ts.map
|
|
@@ -10,7 +10,7 @@ function Root(props) {
|
|
|
10
10
|
const [segmentedControlProps, componentProps] = splitProps(props);
|
|
11
11
|
const { element, children,...rest } = componentProps;
|
|
12
12
|
const segmentedControl = useSegmentedControl(segmentedControlProps);
|
|
13
|
-
const attributes = mergeProps(segmentedControl.getRootProps(),
|
|
13
|
+
const attributes = mergeProps(segmentedControl.getRootProps(), { className: classesSegmentedControl.root }, rest);
|
|
14
14
|
return /* @__PURE__ */ jsx(SegmentedControlRootContext.Provider, {
|
|
15
15
|
value: segmentedControl,
|
|
16
16
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1 +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(
|
|
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(\n\t\tsegmentedControl.getRootProps(),\n\t\t{\n\t\t\tclassName: classesSegmentedControl.root,\n\t\t},\n\t\trest,\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,WAClB,iBAAiB,cAAc,EAC/B,EACC,WAAW,wBAAwB,MACnC,EACD,KACA;AAED,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 react187 from "react";
|
|
4
|
+
import * as react_jsx_runtime56 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/slider/anatomy/control.d.ts
|
|
7
|
+
interface SliderControlProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
8
|
+
declare function Control(props: SliderControlProps): 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_runtime56.JSX.Element | null | undefined;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { Control, SliderControlProps };
|
|
11
|
+
//# sourceMappingURL=control.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control.d.ts","names":[],"sources":["../../../../src/components/slider/anatomy/control.tsx"],"sourcesContent":[],"mappings":";;;;;;UAOiB,kBAAA,SAA2B,yBAAyB;iBAE7C,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 { SliderRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { use } from "react";
|
|
3
|
+
import { mergeProps } from "@zag-js/react";
|
|
4
|
+
import { classesSlider } from "@skeletonlabs/skeleton-common";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/slider/anatomy/control.tsx
|
|
8
|
+
function Control(props) {
|
|
9
|
+
const slider = use(SliderRootContext);
|
|
10
|
+
const { element, children,...rest } = props;
|
|
11
|
+
const attributes = mergeProps(slider.getControlProps(), { className: classesSlider.control }, rest);
|
|
12
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
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/slider/anatomy/control.tsx"],"sourcesContent":["import { SliderRootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesSlider } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface SliderControlProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}\n\nexport default function Control(props: SliderControlProps) {\n\tconst slider = use(SliderRootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\tslider.getControlProps(),\n\t\t{\n\t\t\tclassName: classesSlider.control,\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <div {...attributes}>{children}</div>;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,QAAQ,OAA2B;CAC1D,MAAM,SAAS,IAAI,kBAAkB;CAErC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAClB,OAAO,iBAAiB,EACxB,EACC,WAAW,cAAc,SACzB,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAI,GAAI;EAAa;GAAe"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react167 from "react";
|
|
4
|
+
import * as react_jsx_runtime52 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/slider/anatomy/hidden-input.d.ts
|
|
7
|
+
interface SliderHiddenInputProps extends PropsWithElement<'input'>, HTMLAttributes<'input', 'children'> {}
|
|
8
|
+
declare function HiddenInput(props: SliderHiddenInputProps): string | number | bigint | boolean | Iterable<react167.ReactNode> | Promise<string | number | bigint | boolean | react167.ReactPortal | react167.ReactElement<unknown, string | react167.JSXElementConstructor<any>> | Iterable<react167.ReactNode> | null | undefined> | react_jsx_runtime52.JSX.Element | null | undefined;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { HiddenInput, SliderHiddenInputProps };
|
|
11
|
+
//# sourceMappingURL=hidden-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hidden-input.d.ts","names":[],"sources":["../../../../src/components/slider/anatomy/hidden-input.tsx"],"sourcesContent":[],"mappings":";;;;;;UAQiB,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,19 @@
|
|
|
1
|
+
import { SliderRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { SliderThumbContext } from "../modules/thumb-context.js";
|
|
3
|
+
import { use } from "react";
|
|
4
|
+
import { mergeProps } from "@zag-js/react";
|
|
5
|
+
import { classesSlider } from "@skeletonlabs/skeleton-common";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
|
|
8
|
+
//#region src/components/slider/anatomy/hidden-input.tsx
|
|
9
|
+
function HiddenInput(props) {
|
|
10
|
+
const slider = use(SliderRootContext);
|
|
11
|
+
const thumbProps = use(SliderThumbContext);
|
|
12
|
+
const { element,...rest } = props;
|
|
13
|
+
const attributes = mergeProps(slider.getHiddenInputProps(thumbProps), { className: classesSlider.hiddenInput }, rest);
|
|
14
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { HiddenInput as default };
|
|
19
|
+
//# sourceMappingURL=hidden-input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hidden-input.js","names":[],"sources":["../../../../src/components/slider/anatomy/hidden-input.tsx"],"sourcesContent":["import { SliderRootContext } from '../modules/root-context';\nimport { SliderThumbContext } from '../modules/thumb-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesSlider } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface SliderHiddenInputProps extends PropsWithElement<'input'>, HTMLAttributes<'input', 'children'> {}\n\nexport default function HiddenInput(props: SliderHiddenInputProps) {\n\tconst slider = use(SliderRootContext);\n\tconst thumbProps = use(SliderThumbContext);\n\n\tconst { element, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\tslider.getHiddenInputProps(thumbProps),\n\t\t{\n\t\t\tclassName: classesSlider.hiddenInput,\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <input {...attributes} />;\n}\n"],"mappings":";;;;;;;;AAUA,SAAwB,YAAY,OAA+B;CAClE,MAAM,SAAS,IAAI,kBAAkB;CACrC,MAAM,aAAa,IAAI,mBAAmB;CAE1C,MAAM,EAAE,QAAS,GAAG,SAAS;CAE7B,MAAM,aAAa,WAClB,OAAO,oBAAoB,WAAW,EACtC,EACC,WAAW,cAAc,aACzB,EACD,KACA;AAED,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_runtime54 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/slider/anatomy/label.d.ts
|
|
7
|
+
interface SliderLabelProps extends PropsWithElement<'label'>, HTMLAttributes<'label'> {}
|
|
8
|
+
declare function Label(props: SliderLabelProps): 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_runtime54.JSX.Element | null | undefined;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { Label, SliderLabelProps };
|
|
11
|
+
//# sourceMappingURL=label.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.d.ts","names":[],"sources":["../../../../src/components/slider/anatomy/label.tsx"],"sourcesContent":[],"mappings":";;;;;;UAOiB,gBAAA,SAAyB,2BAA2B;iBAE7C,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 { SliderRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { use } from "react";
|
|
3
|
+
import { mergeProps } from "@zag-js/react";
|
|
4
|
+
import { classesSlider } from "@skeletonlabs/skeleton-common";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/slider/anatomy/label.tsx
|
|
8
|
+
function Label(props) {
|
|
9
|
+
const slider = use(SliderRootContext);
|
|
10
|
+
const { element, children,...rest } = props;
|
|
11
|
+
const attributes = mergeProps(slider.getLabelProps(), { className: classesSlider.label }, rest);
|
|
12
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
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/slider/anatomy/label.tsx"],"sourcesContent":["import { SliderRootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesSlider } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface SliderLabelProps extends PropsWithElement<'label'>, HTMLAttributes<'label'> {}\n\nexport default function Label(props: SliderLabelProps) {\n\tconst slider = use(SliderRootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\tslider.getLabelProps(),\n\t\t{\n\t\t\tclassName: classesSlider.label,\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <label {...attributes}>{children}</label>;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,MAAM,OAAyB;CACtD,MAAM,SAAS,IAAI,kBAAkB;CAErC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAClB,OAAO,eAAe,EACtB,EACC,WAAW,cAAc,OACzB,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAM,GAAI;EAAa;GAAiB"}
|
|
@@ -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_runtime57 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/slider/anatomy/marker-group.d.ts
|
|
7
|
+
interface SliderMarkerGroupProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
8
|
+
declare function MarkerGroup(props: SliderMarkerGroupProps): 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_runtime57.JSX.Element | null | undefined;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { MarkerGroup, SliderMarkerGroupProps };
|
|
11
|
+
//# sourceMappingURL=marker-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marker-group.d.ts","names":[],"sources":["../../../../src/components/slider/anatomy/marker-group.tsx"],"sourcesContent":[],"mappings":";;;;;;UAOiB,sBAAA,SAA+B,yBAAyB;iBAEjD,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,20 @@
|
|
|
1
|
+
import { SliderRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { use } from "react";
|
|
3
|
+
import { mergeProps } from "@zag-js/react";
|
|
4
|
+
import { classesSlider } from "@skeletonlabs/skeleton-common";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/slider/anatomy/marker-group.tsx
|
|
8
|
+
function MarkerGroup(props) {
|
|
9
|
+
const slider = use(SliderRootContext);
|
|
10
|
+
const { element, children,...rest } = props;
|
|
11
|
+
const attributes = mergeProps(slider.getMarkerGroupProps(), { className: classesSlider.markerGroup }, rest);
|
|
12
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
13
|
+
...attributes,
|
|
14
|
+
children
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { MarkerGroup as default };
|
|
20
|
+
//# sourceMappingURL=marker-group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marker-group.js","names":[],"sources":["../../../../src/components/slider/anatomy/marker-group.tsx"],"sourcesContent":["import { SliderRootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesSlider } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface SliderMarkerGroupProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}\n\nexport default function MarkerGroup(props: SliderMarkerGroupProps) {\n\tconst slider = use(SliderRootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\tslider.getMarkerGroupProps(),\n\t\t{\n\t\t\tclassName: classesSlider.markerGroup,\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <div {...attributes}>{children}</div>;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,YAAY,OAA+B;CAClE,MAAM,SAAS,IAAI,kBAAkB;CAErC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAClB,OAAO,qBAAqB,EAC5B,EACC,WAAW,cAAc,aACzB,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAI,GAAI;EAAa;GAAe"}
|