@skeletonlabs/skeleton-react 2.0.0-next.3 → 2.0.0-next.5
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/content.d.ts +8 -5
- package/dist/components/accordion/anatomy/content.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/content.js +11 -10
- package/dist/components/accordion/anatomy/content.js.map +1 -0
- package/dist/components/accordion/anatomy/heading.d.ts +8 -5
- package/dist/components/accordion/anatomy/heading.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/heading.js +7 -6
- package/dist/components/accordion/anatomy/heading.js.map +1 -0
- package/dist/components/accordion/anatomy/indicator.d.ts +8 -5
- package/dist/components/accordion/anatomy/indicator.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/indicator.js +11 -10
- package/dist/components/accordion/anatomy/indicator.js.map +1 -0
- package/dist/components/accordion/anatomy/item.d.ts +7 -5
- package/dist/components/accordion/anatomy/item.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/item.js +12 -14
- package/dist/components/accordion/anatomy/item.js.map +1 -0
- package/dist/components/accordion/anatomy/root-context.d.ts +5 -4
- package/dist/components/accordion/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/root-context.js +7 -5
- package/dist/components/accordion/anatomy/root-context.js.map +1 -0
- package/dist/components/accordion/anatomy/root-provider.d.ts +12 -0
- package/dist/components/accordion/anatomy/root-provider.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/root.d.ts +6 -5
- package/dist/components/accordion/anatomy/root.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/root.js +12 -15
- package/dist/components/accordion/anatomy/root.js.map +1 -0
- package/dist/components/accordion/anatomy/trigger.d.ts +8 -5
- package/dist/components/accordion/anatomy/trigger.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/trigger.js +11 -10
- package/dist/components/accordion/anatomy/trigger.js.map +1 -0
- package/dist/components/accordion/index.js +1 -0
- package/dist/components/accordion/modules/anatomy.d.ts +16 -17
- package/dist/components/accordion/modules/anatomy.d.ts.map +1 -0
- package/dist/components/accordion/modules/anatomy.js +16 -17
- package/dist/components/accordion/modules/anatomy.js.map +1 -0
- package/dist/components/accordion/modules/item-context.js +2 -1
- package/dist/components/accordion/modules/item-context.js.map +1 -0
- package/dist/components/accordion/modules/root-context.js +4 -3
- package/dist/components/accordion/modules/root-context.js.map +1 -0
- package/dist/components/accordion/modules/use-accordion.d.ts +7 -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/avatar/anatomy/fallback.d.ts +7 -5
- package/dist/components/avatar/anatomy/fallback.d.ts.map +1 -0
- package/dist/components/avatar/anatomy/fallback.js +9 -8
- package/dist/components/avatar/anatomy/fallback.js.map +1 -0
- package/dist/components/avatar/anatomy/image.d.ts +7 -5
- package/dist/components/avatar/anatomy/image.d.ts.map +1 -0
- package/dist/components/avatar/anatomy/image.js +9 -8
- package/dist/components/avatar/anatomy/image.js.map +1 -0
- package/dist/components/avatar/anatomy/root-context.d.ts +5 -4
- package/dist/components/avatar/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/avatar/anatomy/root-context.js +7 -5
- package/dist/components/avatar/anatomy/root-context.js.map +1 -0
- package/dist/components/avatar/anatomy/root-provider.d.ts +12 -0
- package/dist/components/avatar/anatomy/root-provider.d.ts.map +1 -0
- package/dist/components/avatar/anatomy/root.d.ts +6 -5
- package/dist/components/avatar/anatomy/root.d.ts.map +1 -0
- package/dist/components/avatar/anatomy/root.js +12 -15
- package/dist/components/avatar/anatomy/root.js.map +1 -0
- package/dist/components/avatar/index.js +1 -0
- package/dist/components/avatar/modules/anatomy.d.ts +10 -9
- package/dist/components/avatar/modules/anatomy.d.ts.map +1 -0
- package/dist/components/avatar/modules/anatomy.js +10 -9
- package/dist/components/avatar/modules/anatomy.js.map +1 -0
- package/dist/components/avatar/modules/root-context.js +4 -3
- package/dist/components/avatar/modules/root-context.js.map +1 -0
- package/dist/components/avatar/modules/use-avatar.d.ts +7 -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/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 +7 -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/progress-linear/anatomy/label.d.ts +7 -5
- package/dist/components/progress-linear/anatomy/label.d.ts.map +1 -0
- package/dist/components/progress-linear/anatomy/label.js +9 -8
- package/dist/components/progress-linear/anatomy/label.js.map +1 -0
- package/dist/components/progress-linear/anatomy/range.d.ts +7 -5
- package/dist/components/progress-linear/anatomy/range.d.ts.map +1 -0
- package/dist/components/progress-linear/anatomy/range.js +9 -8
- package/dist/components/progress-linear/anatomy/range.js.map +1 -0
- package/dist/components/progress-linear/anatomy/root-context.d.ts +5 -4
- package/dist/components/progress-linear/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/progress-linear/anatomy/root-context.js +7 -5
- 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 +6 -5
- package/dist/components/progress-linear/anatomy/root.d.ts.map +1 -0
- package/dist/components/progress-linear/anatomy/root.js +12 -15
- package/dist/components/progress-linear/anatomy/root.js.map +1 -0
- package/dist/components/progress-linear/anatomy/track.d.ts +7 -5
- package/dist/components/progress-linear/anatomy/track.d.ts.map +1 -0
- package/dist/components/progress-linear/anatomy/track.js +9 -8
- package/dist/components/progress-linear/anatomy/track.js.map +1 -0
- package/dist/components/progress-linear/index.js +1 -0
- package/dist/components/progress-linear/modules/anatomy.d.ts +14 -11
- package/dist/components/progress-linear/modules/anatomy.d.ts.map +1 -0
- package/dist/components/progress-linear/modules/anatomy.js +14 -11
- package/dist/components/progress-linear/modules/anatomy.js.map +1 -0
- package/dist/components/progress-linear/modules/root-context.js +4 -3
- package/dist/components/progress-linear/modules/root-context.js.map +1 -0
- package/dist/components/progress-linear/modules/use-progress-linear.d.ts +7 -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 +7 -5
- package/dist/components/rating-group/anatomy/control.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/control.js +9 -8
- package/dist/components/rating-group/anatomy/control.js.map +1 -0
- package/dist/components/rating-group/anatomy/hidden-input.d.ts +7 -5
- package/dist/components/rating-group/anatomy/hidden-input.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/hidden-input.js +9 -8
- package/dist/components/rating-group/anatomy/hidden-input.js.map +1 -0
- package/dist/components/rating-group/anatomy/item.d.ts +8 -5
- package/dist/components/rating-group/anatomy/item.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/item.js +15 -18
- package/dist/components/rating-group/anatomy/item.js.map +1 -0
- package/dist/components/rating-group/anatomy/label.d.ts +7 -5
- package/dist/components/rating-group/anatomy/label.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/label.js +9 -8
- package/dist/components/rating-group/anatomy/label.js.map +1 -0
- package/dist/components/rating-group/anatomy/root-context.d.ts +5 -4
- package/dist/components/rating-group/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/root-context.js +7 -5
- 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 +6 -5
- package/dist/components/rating-group/anatomy/root.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/root.js +12 -15
- package/dist/components/rating-group/anatomy/root.js.map +1 -0
- package/dist/components/rating-group/index.js +1 -0
- package/dist/components/rating-group/modules/anatomy.d.ts +16 -15
- package/dist/components/rating-group/modules/anatomy.d.ts.map +1 -0
- package/dist/components/rating-group/modules/anatomy.js +16 -15
- package/dist/components/rating-group/modules/anatomy.js.map +1 -0
- package/dist/components/rating-group/modules/root-context.js +4 -3
- package/dist/components/rating-group/modules/root-context.js.map +1 -0
- package/dist/components/rating-group/modules/use-rating-group.d.ts +7 -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/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 +12 -0
- package/dist/components/switch/anatomy/root-provider.d.ts.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 +18 -0
- package/dist/components/switch/modules/anatomy.d.ts.map +1 -0
- package/dist/components/switch/modules/anatomy.js +19 -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 +7 -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 +7 -5
- package/dist/components/tabs/anatomy/content.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/content.js +10 -9
- package/dist/components/tabs/anatomy/content.js.map +1 -0
- package/dist/components/tabs/anatomy/indicator.d.ts +7 -5
- package/dist/components/tabs/anatomy/indicator.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/indicator.js +9 -8
- package/dist/components/tabs/anatomy/indicator.js.map +1 -0
- package/dist/components/tabs/anatomy/list.d.ts +7 -5
- package/dist/components/tabs/anatomy/list.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/list.js +9 -8
- package/dist/components/tabs/anatomy/list.js.map +1 -0
- package/dist/components/tabs/anatomy/root-context.d.ts +5 -4
- package/dist/components/tabs/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/root-context.js +7 -5
- 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 +6 -5
- package/dist/components/tabs/anatomy/root.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/root.js +12 -15
- package/dist/components/tabs/anatomy/root.js.map +1 -0
- package/dist/components/tabs/anatomy/trigger.d.ts +7 -5
- package/dist/components/tabs/anatomy/trigger.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/trigger.js +10 -9
- package/dist/components/tabs/anatomy/trigger.js.map +1 -0
- package/dist/components/tabs/index.js +1 -0
- package/dist/components/tabs/modules/anatomy.d.ts +16 -13
- package/dist/components/tabs/modules/anatomy.d.ts.map +1 -0
- package/dist/components/tabs/modules/anatomy.js +16 -13
- package/dist/components/tabs/modules/anatomy.js.map +1 -0
- package/dist/components/tabs/modules/root-context.js +4 -3
- package/dist/components/tabs/modules/root-context.js.map +1 -0
- package/dist/components/tabs/modules/use-tabs.d.ts +7 -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/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 +11 -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/index.d.ts +56 -25
- package/dist/index.js +14 -1
- package/dist/internal/components/star-empty.js +3 -2
- package/dist/internal/components/star-empty.js.map +1 -0
- package/dist/internal/components/star-full.js +3 -2
- package/dist/internal/components/star-full.js.map +1 -0
- package/dist/internal/components/star-half.js +3 -2
- package/dist/internal/components/star-half.js.map +1 -0
- package/dist/internal/components/x.js +21 -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 +6 -6
- package/dist/internal/props-with-element.d.ts.map +1 -0
- package/package.json +11 -15
- package/dist/components/accordion/anatomy/item-context.d.ts +0 -10
- package/dist/components/accordion/anatomy/item-context.js +0 -11
- package/dist/components/accordion/modules/item-context.d.ts +0 -10
- package/dist/components/accordion/modules/root-context.d.ts +0 -9
- package/dist/components/avatar/modules/root-context.d.ts +0 -9
- package/dist/components/progress-linear/modules/root-context.d.ts +0 -9
- package/dist/components/rating-group/anatomy/item-context.d.ts +0 -10
- package/dist/components/rating-group/anatomy/item-context.js +0 -11
- package/dist/components/rating-group/modules/item-context.d.ts +0 -9
- package/dist/components/rating-group/modules/item-context.js +0 -7
- package/dist/components/rating-group/modules/root-context.d.ts +0 -9
- package/dist/components/tabs/modules/root-context.d.ts +0 -9
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-context.js","names":[],"sources":["../../../../src/components/switch/modules/root-context.ts"],"sourcesContent":["import { createContext } from '@/internal/create-context';\n\nimport type { useSwitch } from './use-switch';\n\nexport const SwitchRootContext = createContext<ReturnType<typeof useSwitch>>();\n"],"mappings":";;;AAIA,MAAa,oBAAoB,eAA6C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-switch.d.ts","names":[],"sources":["../../../../src/components/switch/modules/use-switch.ts"],"sourcesContent":[],"mappings":";;;iBAIgB,SAAA,QAAiB,KAAK,eAAe"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { normalizeProps, useMachine } from "@zag-js/react";
|
|
2
|
+
import { useId } from "react";
|
|
3
|
+
import { connect, machine } from "@zag-js/switch";
|
|
4
|
+
|
|
5
|
+
//#region src/components/switch/modules/use-switch.ts
|
|
6
|
+
function useSwitch(props) {
|
|
7
|
+
const service = useMachine(machine, {
|
|
8
|
+
id: useId(),
|
|
9
|
+
...props
|
|
10
|
+
});
|
|
11
|
+
return connect(service, normalizeProps);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
export { useSwitch };
|
|
16
|
+
//# sourceMappingURL=use-switch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-switch.js","names":[],"sources":["../../../../src/components/switch/modules/use-switch.ts"],"sourcesContent":["import { normalizeProps, useMachine } from '@zag-js/react';\nimport { type Api, connect, machine, type Props } from '@zag-js/switch';\nimport { useId } from 'react';\n\nexport function useSwitch(props: Omit<Props, 'id'>): Api {\n\tconst service = useMachine(machine, {\n\t\tid: useId(),\n\t\t...props,\n\t});\n\treturn connect(service, normalizeProps);\n}\n"],"mappings":";;;;;AAIA,SAAgB,UAAU,OAA+B;CACxD,MAAM,UAAU,WAAW,SAAS;EACnC,IAAI,OAAO;EACX,GAAG;EACH,CAAC;AACF,QAAO,QAAQ,SAAS,eAAe"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
1
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
2
|
-
import
|
|
3
|
-
import * as
|
|
3
|
+
import * as react79 from "react";
|
|
4
|
+
import * as react_jsx_runtime23 from "react/jsx-runtime";
|
|
4
5
|
import { ContentProps } from "@zag-js/tabs";
|
|
5
6
|
|
|
6
7
|
//#region src/components/tabs/anatomy/content.d.ts
|
|
7
|
-
interface TabsContentProps extends
|
|
8
|
-
declare function
|
|
8
|
+
interface TabsContentProps extends ContentProps, PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
9
|
+
declare function TabsContent(props: TabsContentProps): string | number | bigint | boolean | Iterable<react79.ReactNode> | Promise<string | number | bigint | boolean | react79.ReactPortal | react79.ReactElement<unknown, string | react79.JSXElementConstructor<any>> | Iterable<react79.ReactNode> | null | undefined> | react_jsx_runtime23.JSX.Element | null | undefined;
|
|
9
10
|
//#endregion
|
|
10
|
-
export {
|
|
11
|
+
export { TabsContent, TabsContentProps };
|
|
12
|
+
//# sourceMappingURL=content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.d.ts","names":[],"sources":["../../../../src/components/tabs/anatomy/content.tsx"],"sourcesContent":[],"mappings":";;;;;;;UAUiB,gBAAA,SAAyB,cAAc,yBAAyB;iBAEzD,WAAA,QAAmB,wDAAgB,SAAA,OAAA,CAAA,SAAA,IAAA,6CAAA,OAAA,CAAA,WAAA,GAAA,OAAA,CAAA,+BAAA,OAAA,CAAA,8BAAA,SAAA,OAAA,CAAA,SAAA,wBAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import { TabsRootContext } from "../modules/root-context.js";
|
|
2
|
-
import { useContext } from "react";
|
|
3
|
-
import { mergeProps } from "@zag-js/react";
|
|
4
2
|
import { classesTabs } from "@skeletonlabs/skeleton-common";
|
|
3
|
+
import { mergeProps } from "@zag-js/react";
|
|
4
|
+
import { use } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { splitContentProps } from "@zag-js/tabs";
|
|
7
7
|
|
|
8
8
|
//#region src/components/tabs/anatomy/content.tsx
|
|
9
|
-
function
|
|
10
|
-
const
|
|
11
|
-
const [
|
|
12
|
-
const { element, children,...
|
|
13
|
-
const attributes = mergeProps(
|
|
14
|
-
return element ? element(
|
|
9
|
+
function TabsContent(props) {
|
|
10
|
+
const tabs = use(TabsRootContext);
|
|
11
|
+
const [contentProps, componentProps] = splitContentProps(props);
|
|
12
|
+
const { element, children,...rest } = componentProps;
|
|
13
|
+
const attributes = mergeProps(tabs.getContentProps(contentProps), rest, { className: classesTabs.content });
|
|
14
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
15
15
|
...attributes,
|
|
16
16
|
children
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
//#endregion
|
|
21
|
-
export {
|
|
21
|
+
export { TabsContent as default };
|
|
22
|
+
//# sourceMappingURL=content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.js","names":[],"sources":["../../../../src/components/tabs/anatomy/content.tsx"],"sourcesContent":["import { classesTabs } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { type ContentProps, splitContentProps } from '@zag-js/tabs';\nimport { use } from 'react';\n\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\n\nimport { TabsRootContext } from '../modules/root-context';\n\nexport interface TabsContentProps extends ContentProps, PropsWithElement<'div'>, HTMLAttributes<'div'> {}\n\nexport default function TabsContent(props: TabsContentProps) {\n\tconst tabs = use(TabsRootContext);\n\n\tconst [contentProps, componentProps] = splitContentProps(props);\n\tconst { element, children, ...rest } = componentProps;\n\n\tconst attributes = mergeProps(tabs.getContentProps(contentProps), rest, {\n\t\tclassName: classesTabs.content,\n\t});\n\n\treturn element ? element(attributes) : <div {...attributes}>{children}</div>;\n}\n"],"mappings":";;;;;;;;AAYA,SAAwB,YAAY,OAAyB;CAC5D,MAAM,OAAO,IAAI,gBAAgB;CAEjC,MAAM,CAAC,cAAc,kBAAkB,kBAAkB,MAAM;CAC/D,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,KAAK,gBAAgB,aAAa,EAAE,MAAM,EACvE,WAAW,YAAY,SACvB,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAI,GAAI;EAAa;GAAe"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
1
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
2
|
-
import
|
|
3
|
-
import * as
|
|
3
|
+
import * as react84 from "react";
|
|
4
|
+
import * as react_jsx_runtime24 from "react/jsx-runtime";
|
|
4
5
|
|
|
5
6
|
//#region src/components/tabs/anatomy/indicator.d.ts
|
|
6
|
-
interface TabsIndicatorProps extends PropsWithElement
|
|
7
|
-
declare function
|
|
7
|
+
interface TabsIndicatorProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'children'> {}
|
|
8
|
+
declare function TabsIndicator(props: TabsIndicatorProps): string | number | bigint | boolean | Iterable<react84.ReactNode> | Promise<string | number | bigint | boolean | react84.ReactPortal | react84.ReactElement<unknown, string | react84.JSXElementConstructor<any>> | Iterable<react84.ReactNode> | null | undefined> | react_jsx_runtime24.JSX.Element | null | undefined;
|
|
8
9
|
//#endregion
|
|
9
|
-
export {
|
|
10
|
+
export { TabsIndicator, TabsIndicatorProps };
|
|
11
|
+
//# sourceMappingURL=indicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"indicator.d.ts","names":[],"sources":["../../../../src/components/tabs/anatomy/indicator.tsx"],"sourcesContent":[],"mappings":";;;;;;UASiB,kBAAA,SAA2B,yBAAyB;iBAE7C,aAAA,QAAqB,0DAAkB,SAAA,OAAA,CAAA,SAAA,IAAA,6CAAA,OAAA,CAAA,WAAA,GAAA,OAAA,CAAA,+BAAA,OAAA,CAAA,8BAAA,SAAA,OAAA,CAAA,SAAA,wBAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { TabsRootContext } from "../modules/root-context.js";
|
|
2
|
-
import { useContext } from "react";
|
|
3
|
-
import { mergeProps } from "@zag-js/react";
|
|
4
2
|
import { classesTabs } from "@skeletonlabs/skeleton-common";
|
|
3
|
+
import { mergeProps } from "@zag-js/react";
|
|
4
|
+
import { use } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/components/tabs/anatomy/indicator.tsx
|
|
8
|
-
function
|
|
9
|
-
const
|
|
10
|
-
const { element,...
|
|
11
|
-
const attributes = mergeProps(
|
|
12
|
-
return element ? element(
|
|
8
|
+
function TabsIndicator(props) {
|
|
9
|
+
const tabs = use(TabsRootContext);
|
|
10
|
+
const { element,...rest } = props;
|
|
11
|
+
const attributes = mergeProps(tabs.getIndicatorProps(), rest, { className: classesTabs.indicator });
|
|
12
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("div", { ...attributes });
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
//#endregion
|
|
16
|
-
export {
|
|
16
|
+
export { TabsIndicator as default };
|
|
17
|
+
//# sourceMappingURL=indicator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"indicator.js","names":[],"sources":["../../../../src/components/tabs/anatomy/indicator.tsx"],"sourcesContent":["import { classesTabs } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\n\nimport { TabsRootContext } from '../modules/root-context';\n\nexport interface TabsIndicatorProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'children'> {}\n\nexport default function TabsIndicator(props: TabsIndicatorProps) {\n\tconst tabs = use(TabsRootContext);\n\n\tconst { element, ...rest } = props;\n\n\tconst attributes = mergeProps(tabs.getIndicatorProps(), rest, {\n\t\tclassName: classesTabs.indicator,\n\t});\n\n\treturn element ? element(attributes) : <div {...attributes}></div>;\n}\n"],"mappings":";;;;;;;AAWA,SAAwB,cAAc,OAA2B;CAChE,MAAM,OAAO,IAAI,gBAAgB;CAEjC,MAAM,EAAE,QAAS,GAAG,SAAS;CAE7B,MAAM,aAAa,WAAW,KAAK,mBAAmB,EAAE,MAAM,EAC7D,WAAW,YAAY,WACvB,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC,SAAI,GAAI,aAAkB"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
1
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
2
|
-
import
|
|
3
|
-
import * as
|
|
3
|
+
import * as react89 from "react";
|
|
4
|
+
import * as react_jsx_runtime25 from "react/jsx-runtime";
|
|
4
5
|
|
|
5
6
|
//#region src/components/tabs/anatomy/list.d.ts
|
|
6
|
-
interface TabsListProps extends PropsWithElement
|
|
7
|
-
declare function
|
|
7
|
+
interface TabsListProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir'> {}
|
|
8
|
+
declare function TabsList(props: TabsListProps): string | number | bigint | boolean | Iterable<react89.ReactNode> | Promise<string | number | bigint | boolean | react89.ReactPortal | react89.ReactElement<unknown, string | react89.JSXElementConstructor<any>> | Iterable<react89.ReactNode> | null | undefined> | react_jsx_runtime25.JSX.Element | null | undefined;
|
|
8
9
|
//#endregion
|
|
9
|
-
export {
|
|
10
|
+
export { TabsList, TabsListProps };
|
|
11
|
+
//# sourceMappingURL=list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.d.ts","names":[],"sources":["../../../../src/components/tabs/anatomy/list.tsx"],"sourcesContent":[],"mappings":";;;;;;UASiB,aAAA,SAAsB,yBAAyB;iBAExC,QAAA,QAAgB,qDAAa,SAAA,OAAA,CAAA,SAAA,IAAA,6CAAA,OAAA,CAAA,WAAA,GAAA,OAAA,CAAA,+BAAA,OAAA,CAAA,8BAAA,SAAA,OAAA,CAAA,SAAA,wBAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { TabsRootContext } from "../modules/root-context.js";
|
|
2
|
-
import { useContext } from "react";
|
|
3
|
-
import { mergeProps } from "@zag-js/react";
|
|
4
2
|
import { classesTabs } from "@skeletonlabs/skeleton-common";
|
|
3
|
+
import { mergeProps } from "@zag-js/react";
|
|
4
|
+
import { use } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/components/tabs/anatomy/list.tsx
|
|
8
|
-
function
|
|
9
|
-
const
|
|
10
|
-
const { element, children,...
|
|
11
|
-
const attributes = mergeProps(
|
|
12
|
-
return element ? element(
|
|
8
|
+
function TabsList(props) {
|
|
9
|
+
const tabs = use(TabsRootContext);
|
|
10
|
+
const { element, children,...rest } = props;
|
|
11
|
+
const attributes = mergeProps(tabs.getListProps(), rest, { className: classesTabs.list });
|
|
12
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
13
13
|
...attributes,
|
|
14
14
|
children
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
//#endregion
|
|
19
|
-
export {
|
|
19
|
+
export { TabsList as default };
|
|
20
|
+
//# sourceMappingURL=list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.js","names":[],"sources":["../../../../src/components/tabs/anatomy/list.tsx"],"sourcesContent":["import { classesTabs } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\n\nimport { TabsRootContext } from '../modules/root-context';\n\nexport interface TabsListProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir'> {}\n\nexport default function TabsList(props: TabsListProps) {\n\tconst tabs = use(TabsRootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(tabs.getListProps(), rest, {\n\t\tclassName: classesTabs.list,\n\t});\n\n\treturn element ? element(attributes) : <div {...attributes}>{children}</div>;\n}\n"],"mappings":";;;;;;;AAWA,SAAwB,SAAS,OAAsB;CACtD,MAAM,OAAO,IAAI,gBAAgB;CAEjC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,KAAK,cAAc,EAAE,MAAM,EACxD,WAAW,YAAY,MACvB,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAI,GAAI;EAAa;GAAe"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useTabs } from "../modules/use-tabs.js";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/tabs/anatomy/root-context.d.ts
|
|
5
5
|
interface TabsRootContextProps {
|
|
6
|
-
children: (
|
|
6
|
+
children: (tabs: ReturnType<typeof useTabs>) => ReactNode;
|
|
7
7
|
}
|
|
8
|
-
declare function
|
|
8
|
+
declare function RootContext(props: TabsRootContextProps): ReactNode;
|
|
9
9
|
//#endregion
|
|
10
|
-
export {
|
|
10
|
+
export { RootContext, TabsRootContextProps };
|
|
11
|
+
//# sourceMappingURL=root-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-context.d.ts","names":[],"sources":["../../../../src/components/tabs/anatomy/root-context.tsx"],"sourcesContent":[],"mappings":";;;;UAKiB,oBAAA;mBACC,kBAAkB,aAAa;AADjD;AAAqC,iBAIb,WAAA,CAJa,KAAA,EAIM,oBAJN,CAAA,EAI0B,SAJ1B"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { TabsRootContext } from "../modules/root-context.js";
|
|
2
|
-
import {
|
|
2
|
+
import { use } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/tabs/anatomy/root-context.tsx
|
|
5
|
-
function
|
|
6
|
-
const
|
|
7
|
-
|
|
5
|
+
function RootContext(props) {
|
|
6
|
+
const tabs = use(TabsRootContext);
|
|
7
|
+
const { children } = props;
|
|
8
|
+
return children(tabs);
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
//#endregion
|
|
11
|
-
export {
|
|
12
|
+
export { RootContext as default };
|
|
13
|
+
//# sourceMappingURL=root-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-context.js","names":[],"sources":["../../../../src/components/tabs/anatomy/root-context.tsx"],"sourcesContent":["import { type ReactNode, use } from 'react';\n\nimport { TabsRootContext } from '../modules/root-context';\nimport type { useTabs } from '../modules/use-tabs';\n\nexport interface TabsRootContextProps {\n\tchildren: (tabs: ReturnType<typeof useTabs>) => ReactNode;\n}\n\nexport default function RootContext(props: TabsRootContextProps) {\n\tconst tabs = use(TabsRootContext);\n\n\tconst { children } = props;\n\n\treturn children(tabs);\n}\n"],"mappings":";;;;AASA,SAAwB,YAAY,OAA6B;CAChE,MAAM,OAAO,IAAI,gBAAgB;CAEjC,MAAM,EAAE,aAAa;AAErB,QAAO,SAAS,KAAK"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import { useTabs } from "../modules/use-tabs.js";
|
|
4
|
+
import * as react_jsx_runtime27 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/tabs/anatomy/root-provider.d.ts
|
|
7
|
+
interface TabsRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {
|
|
8
|
+
value: ReturnType<typeof useTabs>;
|
|
9
|
+
}
|
|
10
|
+
declare function TabsRootProvider(props: TabsRootProviderProps): react_jsx_runtime27.JSX.Element;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { TabsRootProvider, TabsRootProviderProps };
|
|
13
|
+
//# sourceMappingURL=root-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-provider.d.ts","names":[],"sources":["../../../../src/components/tabs/anatomy/root-provider.tsx"],"sourcesContent":[],"mappings":";;;;;;UASiB,qBAAA,SAA8B,yBAAyB;SAChE,kBAAkB;;AADT,iBAIO,gBAAA,CAJe,KAAA,EAIS,qBAJT,CAAA,EAI8B,mBAAA,CAAA,GAAA,CAAA,OAJ9B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { TabsRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { classesTabs } from "@skeletonlabs/skeleton-common";
|
|
3
|
+
import { mergeProps } from "@zag-js/react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/tabs/anatomy/root-provider.tsx
|
|
7
|
+
function TabsRootProvider(props) {
|
|
8
|
+
const { element, children, value: tabs,...rest } = props;
|
|
9
|
+
const attributes = mergeProps(tabs.getRootProps(), rest, { className: classesTabs.root });
|
|
10
|
+
return /* @__PURE__ */ jsx(TabsRootContext.Provider, {
|
|
11
|
+
value: tabs,
|
|
12
|
+
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
13
|
+
...attributes,
|
|
14
|
+
children
|
|
15
|
+
})
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { TabsRootProvider as default };
|
|
21
|
+
//# sourceMappingURL=root-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-provider.js","names":[],"sources":["../../../../src/components/tabs/anatomy/root-provider.tsx"],"sourcesContent":["import { classesTabs } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\n\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\n\nimport { TabsRootContext } from '../modules/root-context';\nimport type { useTabs } from '../modules/use-tabs';\n\nexport interface TabsRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {\n\tvalue: ReturnType<typeof useTabs>;\n}\n\nexport default function TabsRootProvider(props: TabsRootProviderProps) {\n\tconst { element, children, value: tabs, ...rest } = props;\n\n\tconst attributes = mergeProps(tabs.getRootProps(), rest, {\n\t\tclassName: classesTabs.root,\n\t});\n\n\treturn (\n\t\t<TabsRootContext.Provider value={tabs}>\n\t\t\t{element ? element(attributes) : <div {...attributes}>{children}</div>}\n\t\t</TabsRootContext.Provider>\n\t);\n}\n"],"mappings":";;;;;;AAaA,SAAwB,iBAAiB,OAA8B;CACtE,MAAM,EAAE,SAAS,UAAU,OAAO,KAAM,GAAG,SAAS;CAEpD,MAAM,aAAa,WAAW,KAAK,cAAc,EAAE,MAAM,EACxD,WAAW,YAAY,MACvB,CAAC;AAEF,QACC,oBAAC,gBAAgB;EAAS,OAAO;YAC/B,UAAU,QAAQ,WAAW,GAAG,oBAAC;GAAI,GAAI;GAAa;IAAe;GAC5C"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
1
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
2
|
-
import
|
|
3
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import * as react_jsx_runtime26 from "react/jsx-runtime";
|
|
4
4
|
import { Props } from "@zag-js/tabs";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tabs/anatomy/root.d.ts
|
|
7
|
-
interface TabsRootProps extends
|
|
8
|
-
declare function
|
|
7
|
+
interface TabsRootProps extends Omit<Props, 'id'>, PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {}
|
|
8
|
+
declare function TabsRoot(props: TabsRootProps): react_jsx_runtime26.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
|
-
export {
|
|
10
|
+
export { TabsRoot, TabsRootProps };
|
|
11
|
+
//# sourceMappingURL=root.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root.d.ts","names":[],"sources":["../../../../src/components/tabs/anatomy/root.tsx"],"sourcesContent":[],"mappings":";;;;;;UAUiB,aAAA,SAAsB,KAAK,cAAc,yBAAyB;iBAE3D,QAAA,QAAgB,gBAAa,mBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,23 +1,19 @@
|
|
|
1
1
|
import { TabsRootContext } from "../modules/root-context.js";
|
|
2
|
-
import {
|
|
3
|
-
import { mergeProps, normalizeProps, useMachine } from "@zag-js/react";
|
|
2
|
+
import { useTabs } from "../modules/use-tabs.js";
|
|
4
3
|
import { classesTabs } from "@skeletonlabs/skeleton-common";
|
|
4
|
+
import { mergeProps } from "@zag-js/react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
import {
|
|
6
|
+
import { splitProps } from "@zag-js/tabs";
|
|
7
7
|
|
|
8
8
|
//#region src/components/tabs/anatomy/root.tsx
|
|
9
|
-
function
|
|
10
|
-
const [
|
|
11
|
-
const { element, children,...
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
...machineProps
|
|
15
|
-
});
|
|
16
|
-
const api = connect(service, normalizeProps);
|
|
17
|
-
const attributes = mergeProps(api.getRootProps(), { className: classesTabs.root }, restAttributes);
|
|
9
|
+
function TabsRoot(props) {
|
|
10
|
+
const [tabsProps, componentProps] = splitProps(props);
|
|
11
|
+
const { element, children,...rest } = componentProps;
|
|
12
|
+
const tabs = useTabs(tabsProps);
|
|
13
|
+
const attributes = mergeProps(tabs.getRootProps(), rest, { className: classesTabs.root });
|
|
18
14
|
return /* @__PURE__ */ jsx(TabsRootContext.Provider, {
|
|
19
|
-
value:
|
|
20
|
-
children: element ? element(
|
|
15
|
+
value: tabs,
|
|
16
|
+
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
21
17
|
...attributes,
|
|
22
18
|
children
|
|
23
19
|
})
|
|
@@ -25,4 +21,5 @@ function root_default(props) {
|
|
|
25
21
|
}
|
|
26
22
|
|
|
27
23
|
//#endregion
|
|
28
|
-
export {
|
|
24
|
+
export { TabsRoot as default };
|
|
25
|
+
//# sourceMappingURL=root.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root.js","names":[],"sources":["../../../../src/components/tabs/anatomy/root.tsx"],"sourcesContent":["import { classesTabs } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { type Props, splitProps } from '@zag-js/tabs';\n\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\n\nimport { TabsRootContext } from '../modules/root-context';\nimport { useTabs } from '../modules/use-tabs';\n\nexport interface TabsRootProps extends Omit<Props, 'id'>, PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {}\n\nexport default function TabsRoot(props: TabsRootProps) {\n\tconst [tabsProps, componentProps] = splitProps(props);\n\tconst { element, children, ...rest } = componentProps;\n\n\tconst tabs = useTabs(tabsProps);\n\n\tconst attributes = mergeProps(tabs.getRootProps(), rest, {\n\t\tclassName: classesTabs.root,\n\t});\n\n\treturn (\n\t\t<TabsRootContext.Provider value={tabs}>\n\t\t\t{element ? element(attributes) : <div {...attributes}>{children}</div>}\n\t\t</TabsRootContext.Provider>\n\t);\n}\n"],"mappings":";;;;;;;;AAYA,SAAwB,SAAS,OAAsB;CACtD,MAAM,CAAC,WAAW,kBAAkB,WAAW,MAAM;CACrD,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,OAAO,QAAQ,UAAU;CAE/B,MAAM,aAAa,WAAW,KAAK,cAAc,EAAE,MAAM,EACxD,WAAW,YAAY,MACvB,CAAC;AAEF,QACC,oBAAC,gBAAgB;EAAS,OAAO;YAC/B,UAAU,QAAQ,WAAW,GAAG,oBAAC;GAAI,GAAI;GAAa;IAAe;GAC5C"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
1
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
2
|
-
import
|
|
3
|
-
import * as
|
|
3
|
+
import * as react94 from "react";
|
|
4
|
+
import * as react_jsx_runtime28 from "react/jsx-runtime";
|
|
4
5
|
import { TriggerProps } from "@zag-js/tabs";
|
|
5
6
|
|
|
6
7
|
//#region src/components/tabs/anatomy/trigger.d.ts
|
|
7
|
-
interface TabsTriggerProps extends
|
|
8
|
-
declare function
|
|
8
|
+
interface TabsTriggerProps extends TriggerProps, PropsWithElement<'button'>, HTMLAttributes<'button', 'value'> {}
|
|
9
|
+
declare function TabsTrigger(props: TabsTriggerProps): string | number | bigint | boolean | Iterable<react94.ReactNode> | Promise<string | number | bigint | boolean | react94.ReactPortal | react94.ReactElement<unknown, string | react94.JSXElementConstructor<any>> | Iterable<react94.ReactNode> | null | undefined> | react_jsx_runtime28.JSX.Element | null | undefined;
|
|
9
10
|
//#endregion
|
|
10
|
-
export {
|
|
11
|
+
export { TabsTrigger, TabsTriggerProps };
|
|
12
|
+
//# sourceMappingURL=trigger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trigger.d.ts","names":[],"sources":["../../../../src/components/tabs/anatomy/trigger.tsx"],"sourcesContent":[],"mappings":";;;;;;;UAUiB,gBAAA,SAAyB,cAAc,4BAA4B;iBAE5D,WAAA,QAAmB,wDAAgB,SAAA,OAAA,CAAA,SAAA,IAAA,6CAAA,OAAA,CAAA,WAAA,GAAA,OAAA,CAAA,+BAAA,OAAA,CAAA,8BAAA,SAAA,OAAA,CAAA,SAAA,wBAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import { TabsRootContext } from "../modules/root-context.js";
|
|
2
|
-
import { useContext } from "react";
|
|
3
|
-
import { mergeProps } from "@zag-js/react";
|
|
4
2
|
import { classesTabs } from "@skeletonlabs/skeleton-common";
|
|
3
|
+
import { mergeProps } from "@zag-js/react";
|
|
4
|
+
import { use } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { splitTriggerProps } from "@zag-js/tabs";
|
|
7
7
|
|
|
8
8
|
//#region src/components/tabs/anatomy/trigger.tsx
|
|
9
|
-
function
|
|
10
|
-
const
|
|
11
|
-
const [
|
|
12
|
-
const { element, children,...
|
|
13
|
-
const attributes = mergeProps(
|
|
14
|
-
return element ? element(
|
|
9
|
+
function TabsTrigger(props) {
|
|
10
|
+
const tabs = use(TabsRootContext);
|
|
11
|
+
const [triggerProps, componentProps] = splitTriggerProps(props);
|
|
12
|
+
const { element, children,...rest } = componentProps;
|
|
13
|
+
const attributes = mergeProps(tabs.getTriggerProps(triggerProps), rest, { className: classesTabs.trigger });
|
|
14
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
15
15
|
...attributes,
|
|
16
16
|
children
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
//#endregion
|
|
21
|
-
export {
|
|
21
|
+
export { TabsTrigger as default };
|
|
22
|
+
//# sourceMappingURL=trigger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trigger.js","names":[],"sources":["../../../../src/components/tabs/anatomy/trigger.tsx"],"sourcesContent":["import { classesTabs } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { splitTriggerProps, type TriggerProps } from '@zag-js/tabs';\nimport { use } from 'react';\n\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\n\nimport { TabsRootContext } from '../modules/root-context';\n\nexport interface TabsTriggerProps extends TriggerProps, PropsWithElement<'button'>, HTMLAttributes<'button', 'value'> {}\n\nexport default function TabsTrigger(props: TabsTriggerProps) {\n\tconst tabs = use(TabsRootContext);\n\n\tconst [triggerProps, componentProps] = splitTriggerProps(props);\n\tconst { element, children, ...rest } = componentProps;\n\n\tconst attributes = mergeProps(tabs.getTriggerProps(triggerProps), rest, {\n\t\tclassName: classesTabs.trigger,\n\t});\n\n\treturn element ? element(attributes) : <button {...attributes}>{children}</button>;\n}\n"],"mappings":";;;;;;;;AAYA,SAAwB,YAAY,OAAyB;CAC5D,MAAM,OAAO,IAAI,gBAAgB;CAEjC,MAAM,CAAC,cAAc,kBAAkB,kBAAkB,MAAM;CAC/D,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,KAAK,gBAAgB,aAAa,EAAE,MAAM,EACvE,WAAW,YAAY,SACvB,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAO,GAAI;EAAa;GAAkB"}
|
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { TabsContent } from "../anatomy/content.js";
|
|
2
|
+
import { TabsIndicator } from "../anatomy/indicator.js";
|
|
3
|
+
import { TabsList } from "../anatomy/list.js";
|
|
4
|
+
import { TabsRoot } from "../anatomy/root.js";
|
|
5
|
+
import { RootContext } from "../anatomy/root-context.js";
|
|
6
|
+
import { TabsRootProvider } from "../anatomy/root-provider.js";
|
|
7
|
+
import { TabsTrigger } from "../anatomy/trigger.js";
|
|
7
8
|
|
|
8
9
|
//#region src/components/tabs/modules/anatomy.d.ts
|
|
9
|
-
declare const Tabs: typeof
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
declare const Tabs: typeof TabsRoot & {
|
|
11
|
+
Provider: typeof TabsRootProvider;
|
|
12
|
+
Context: typeof RootContext;
|
|
13
|
+
List: typeof TabsList;
|
|
14
|
+
Trigger: typeof TabsTrigger;
|
|
15
|
+
Indicator: typeof TabsIndicator;
|
|
16
|
+
Content: typeof TabsContent;
|
|
15
17
|
};
|
|
16
18
|
//#endregion
|
|
17
|
-
export { Tabs };
|
|
19
|
+
export { Tabs };
|
|
20
|
+
//# sourceMappingURL=anatomy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anatomy.d.ts","names":[],"sources":["../../../../src/components/tabs/modules/anatomy.ts"],"sourcesContent":[],"mappings":";;;;;;;;;cAQa,aAAI;;EAAJ,OAOX,EAAA,kBAAA;EAAA,IAAA,EAAA,eAAA;SAPe,EAAA,kBAAA"}
|
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
1
|
+
import TabsContent from "../anatomy/content.js";
|
|
2
|
+
import TabsIndicator from "../anatomy/indicator.js";
|
|
3
|
+
import TabsList from "../anatomy/list.js";
|
|
4
|
+
import TabsRoot from "../anatomy/root.js";
|
|
5
|
+
import RootContext from "../anatomy/root-context.js";
|
|
6
|
+
import TabsRootProvider from "../anatomy/root-provider.js";
|
|
7
|
+
import TabsTrigger from "../anatomy/trigger.js";
|
|
7
8
|
|
|
8
9
|
//#region src/components/tabs/modules/anatomy.ts
|
|
9
|
-
const Tabs = Object.assign(
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
const Tabs = Object.assign(TabsRoot, {
|
|
11
|
+
Provider: TabsRootProvider,
|
|
12
|
+
Context: RootContext,
|
|
13
|
+
List: TabsList,
|
|
14
|
+
Trigger: TabsTrigger,
|
|
15
|
+
Indicator: TabsIndicator,
|
|
16
|
+
Content: TabsContent
|
|
15
17
|
});
|
|
16
18
|
|
|
17
19
|
//#endregion
|
|
18
|
-
export { Tabs };
|
|
20
|
+
export { Tabs };
|
|
21
|
+
//# sourceMappingURL=anatomy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anatomy.js","names":["Root","RootProvider","List","Trigger","Indicator","Content"],"sources":["../../../../src/components/tabs/modules/anatomy.ts"],"sourcesContent":["import Content from '../anatomy/content';\nimport Indicator from '../anatomy/indicator';\nimport List from '../anatomy/list';\nimport Root from '../anatomy/root';\nimport RootContext from '../anatomy/root-context';\nimport RootProvider from '../anatomy/root-provider';\nimport Trigger from '../anatomy/trigger';\n\nexport const Tabs = Object.assign(Root, {\n\tProvider: RootProvider,\n\tContext: RootContext,\n\tList: List,\n\tTrigger: Trigger,\n\tIndicator: Indicator,\n\tContent: Content,\n});\n"],"mappings":";;;;;;;;;AAQA,MAAa,OAAO,OAAO,OAAOA,UAAM;CACvC,UAAUC;CACV,SAAS;CACT,MAAMC;CACN,SAASC;CACT,WAAWC;CACX,SAASC;CACT,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { createContext } from "
|
|
1
|
+
import { createContext } from "../../../internal/create-context.js";
|
|
2
2
|
|
|
3
3
|
//#region src/components/tabs/modules/root-context.ts
|
|
4
|
-
const TabsRootContext = createContext(
|
|
4
|
+
const TabsRootContext = createContext();
|
|
5
5
|
|
|
6
6
|
//#endregion
|
|
7
|
-
export { TabsRootContext };
|
|
7
|
+
export { TabsRootContext };
|
|
8
|
+
//# sourceMappingURL=root-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-context.js","names":[],"sources":["../../../../src/components/tabs/modules/root-context.ts"],"sourcesContent":["import { createContext } from '@/internal/create-context';\n\nimport type { useTabs } from './use-tabs';\n\nexport const TabsRootContext = createContext<ReturnType<typeof useTabs>>();\n"],"mappings":";;;AAIA,MAAa,kBAAkB,eAA2C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-tabs.d.ts","names":[],"sources":["../../../../src/components/tabs/modules/use-tabs.ts"],"sourcesContent":[],"mappings":";;;iBAIgB,OAAA,QAAe,KAAK,eAAe"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { normalizeProps, useMachine } from "@zag-js/react";
|
|
2
|
+
import { useId } from "react";
|
|
3
|
+
import { connect, machine } from "@zag-js/tabs";
|
|
4
|
+
|
|
5
|
+
//#region src/components/tabs/modules/use-tabs.ts
|
|
6
|
+
function useTabs(props) {
|
|
7
|
+
const service = useMachine(machine, {
|
|
8
|
+
id: useId(),
|
|
9
|
+
...props
|
|
10
|
+
});
|
|
11
|
+
return connect(service, normalizeProps);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
export { useTabs };
|
|
16
|
+
//# sourceMappingURL=use-tabs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-tabs.js","names":[],"sources":["../../../../src/components/tabs/modules/use-tabs.ts"],"sourcesContent":["import { normalizeProps, useMachine } from '@zag-js/react';\nimport { type Api, connect, machine, type Props } from '@zag-js/tabs';\nimport { useId } from 'react';\n\nexport function useTabs(props: Omit<Props, 'id'>): Api {\n\tconst service = useMachine(machine, {\n\t\tid: useId(),\n\t\t...props,\n\t});\n\treturn connect(service, normalizeProps);\n}\n"],"mappings":";;;;;AAIA,SAAgB,QAAQ,OAA+B;CACtD,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 react157 from "react";
|
|
4
|
+
import * as react_jsx_runtime49 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/toast/anatomy/action-trigger.d.ts
|
|
7
|
+
interface ToastActionTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
|
|
8
|
+
declare function ToastActionTrigger(props: ToastActionTriggerProps): 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_runtime49.JSX.Element | null | undefined;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { ToastActionTrigger };
|
|
11
|
+
//# sourceMappingURL=action-trigger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-trigger.d.ts","names":[],"sources":["../../../../src/components/toast/anatomy/action-trigger.tsx"],"sourcesContent":[],"mappings":";;;;;;UASiB,uBAAA,SAAgC,4BAA4B;iBAErD,kBAAA,QAA0B,+DAAuB,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"}
|