@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,13 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import { useRatingGroup } from "../modules/use-rating-group.js";
|
|
4
|
+
import * as react_jsx_runtime41 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/rating-group/anatomy/root-provider.d.ts
|
|
7
|
+
interface RatingGroupRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {
|
|
8
|
+
value: ReturnType<typeof useRatingGroup>;
|
|
9
|
+
}
|
|
10
|
+
declare function RatingGroupRootProvider(props: RatingGroupRootProviderProps): react_jsx_runtime41.JSX.Element;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { RatingGroupRootProvider, RatingGroupRootProviderProps };
|
|
13
|
+
//# sourceMappingURL=root-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-provider.d.ts","names":[],"sources":["../../../../src/components/rating-group/anatomy/root-provider.tsx"],"sourcesContent":[],"mappings":";;;;;;UASiB,4BAAA,SAAqC,yBAAyB;SACvE,kBAAkB;;AADT,iBAIO,uBAAA,CAJsB,KAAA,EAIS,4BAJT,CAAA,EAIqC,mBAAA,CAAA,GAAA,CAAA,OAJrC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { RatingGroupRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { classesRatingGroup } from "@skeletonlabs/skeleton-common";
|
|
3
|
+
import { mergeProps } from "@zag-js/react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/rating-group/anatomy/root-provider.tsx
|
|
7
|
+
function RatingGroupRootProvider(props) {
|
|
8
|
+
const { element, children, value: ratingGroup,...rest } = props;
|
|
9
|
+
const attributes = mergeProps(ratingGroup.getRootProps(), rest, { className: classesRatingGroup.root });
|
|
10
|
+
return /* @__PURE__ */ jsx(RatingGroupRootContext.Provider, {
|
|
11
|
+
value: ratingGroup,
|
|
12
|
+
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
13
|
+
...attributes,
|
|
14
|
+
children
|
|
15
|
+
})
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { RatingGroupRootProvider as default };
|
|
21
|
+
//# sourceMappingURL=root-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-provider.js","names":[],"sources":["../../../../src/components/rating-group/anatomy/root-provider.tsx"],"sourcesContent":["import { classesRatingGroup } 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 { RatingGroupRootContext } from '../modules/root-context';\nimport type { useRatingGroup } from '../modules/use-rating-group';\n\nexport interface RatingGroupRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {\n\tvalue: ReturnType<typeof useRatingGroup>;\n}\n\nexport default function RatingGroupRootProvider(props: RatingGroupRootProviderProps) {\n\tconst { element, children, value: ratingGroup, ...rest } = props;\n\n\tconst attributes = mergeProps(ratingGroup.getRootProps(), rest, {\n\t\tclassName: classesRatingGroup.root,\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":";;;;;;AAaA,SAAwB,wBAAwB,OAAqC;CACpF,MAAM,EAAE,SAAS,UAAU,OAAO,YAAa,GAAG,SAAS;CAE3D,MAAM,aAAa,WAAW,YAAY,cAAc,EAAE,MAAM,EAC/D,WAAW,mBAAmB,MAC9B,CAAC;AAEF,QACC,oBAAC,uBAAuB;EAAS,OAAO;YACtC,UAAU,QAAQ,WAAW,GAAG,oBAAC;GAAI,GAAI;GAAa;IAAe;GACrC"}
|
|
@@ -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_runtime17 from "react/jsx-runtime";
|
|
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
|
-
interface RatingGroupRootProps extends
|
|
8
|
-
declare function
|
|
7
|
+
interface RatingGroupRootProps extends Omit<Props, 'id'>, PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {}
|
|
8
|
+
declare function RatingGroupRoot(props: RatingGroupRootProps): react_jsx_runtime40.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
|
-
export {
|
|
10
|
+
export { RatingGroupRoot, RatingGroupRootProps };
|
|
11
|
+
//# sourceMappingURL=root.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root.d.ts","names":[],"sources":["../../../../src/components/rating-group/anatomy/root.tsx"],"sourcesContent":[],"mappings":";;;;;;UAUiB,oBAAA,SACR,KAAK,cACZ,yBACA;iBAEsB,eAAA,QAAuB,uBAAoB,mBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,23 +1,19 @@
|
|
|
1
1
|
import { RatingGroupRootContext } from "../modules/root-context.js";
|
|
2
|
-
import {
|
|
3
|
-
import { mergeProps, normalizeProps, useMachine } from "@zag-js/react";
|
|
2
|
+
import { useRatingGroup } from "../modules/use-rating-group.js";
|
|
4
3
|
import { classesRatingGroup } 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/rating-group";
|
|
7
7
|
|
|
8
8
|
//#region src/components/rating-group/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: classesRatingGroup.root }, restAttributes);
|
|
9
|
+
function RatingGroupRoot(props) {
|
|
10
|
+
const [ratingGroupProps, componentProps] = splitProps(props);
|
|
11
|
+
const { element, children,...rest } = componentProps;
|
|
12
|
+
const ratingGroup = useRatingGroup(ratingGroupProps);
|
|
13
|
+
const attributes = mergeProps(ratingGroup.getRootProps(), rest, { className: classesRatingGroup.root });
|
|
18
14
|
return /* @__PURE__ */ jsx(RatingGroupRootContext.Provider, {
|
|
19
|
-
value:
|
|
20
|
-
children: element ? element(
|
|
15
|
+
value: ratingGroup,
|
|
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 { RatingGroupRoot as default };
|
|
25
|
+
//# sourceMappingURL=root.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root.js","names":[],"sources":["../../../../src/components/rating-group/anatomy/root.tsx"],"sourcesContent":["import { classesRatingGroup } from '@skeletonlabs/skeleton-common';\nimport { type Props, splitProps } from '@zag-js/rating-group';\nimport { mergeProps } from '@zag-js/react';\n\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\n\nimport { RatingGroupRootContext } from '../modules/root-context';\nimport { useRatingGroup } from '../modules/use-rating-group';\n\nexport interface RatingGroupRootProps\n\textends Omit<Props, 'id'>,\n\t\tPropsWithElement<'div'>,\n\t\tHTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {}\n\nexport default function RatingGroupRoot(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(ratingGroup.getRootProps(), rest, {\n\t\tclassName: classesRatingGroup.root,\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":";;;;;;;;AAeA,SAAwB,gBAAgB,OAA6B;CACpE,MAAM,CAAC,kBAAkB,kBAAkB,WAAW,MAAM;CAC5D,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,cAAc,eAAe,iBAAiB;CAEpD,MAAM,aAAa,WAAW,YAAY,cAAc,EAAE,MAAM,EAC/D,WAAW,mBAAmB,MAC9B,CAAC;AAEF,QACC,oBAAC,uBAAuB;EAAS,OAAO;YACtC,UAAU,QAAQ,WAAW,GAAG,oBAAC;GAAI,GAAI;GAAa;IAAe;GACrC"}
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { RatingGroupControl } from "../anatomy/control.js";
|
|
2
|
+
import { RatingGroupHiddenInput } from "../anatomy/hidden-input.js";
|
|
3
|
+
import { RatingGroupItem } from "../anatomy/item.js";
|
|
4
|
+
import { RatingGroupLabel } from "../anatomy/label.js";
|
|
5
|
+
import { RatingGroupRoot } from "../anatomy/root.js";
|
|
6
|
+
import { RatingGroupRootContextComponent } from "../anatomy/root-context.js";
|
|
7
|
+
import { RatingGroupRootProvider } from "../anatomy/root-provider.js";
|
|
8
8
|
|
|
9
9
|
//#region src/components/rating-group/modules/anatomy.d.ts
|
|
10
|
-
declare const RatingGroup: typeof
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
HiddenInput: typeof
|
|
10
|
+
declare const RatingGroup: typeof RatingGroupRoot & {
|
|
11
|
+
Provider: typeof RatingGroupRootProvider;
|
|
12
|
+
Context: typeof RatingGroupRootContextComponent;
|
|
13
|
+
Label: typeof RatingGroupLabel;
|
|
14
|
+
Control: typeof RatingGroupControl;
|
|
15
|
+
Item: typeof RatingGroupItem;
|
|
16
|
+
HiddenInput: typeof RatingGroupHiddenInput;
|
|
17
17
|
};
|
|
18
18
|
//#endregion
|
|
19
|
-
export { RatingGroup };
|
|
19
|
+
export { RatingGroup };
|
|
20
|
+
//# sourceMappingURL=anatomy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anatomy.d.ts","names":[],"sources":["../../../../src/components/rating-group/modules/anatomy.ts"],"sourcesContent":[],"mappings":";;;;;;;;;cAQM,oBAAW;;EAAX,OAAA,EAAA,sCAOJ;EAAA,KAAA,EAAA,uBAAA;SAPe,EAAA,yBAAA"}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
1
|
+
import RatingGroupControl from "../anatomy/control.js";
|
|
2
|
+
import RatingGroupHiddenInput from "../anatomy/hidden-input.js";
|
|
3
|
+
import RatingGroupItem from "../anatomy/item.js";
|
|
4
|
+
import RatingGroupLabel from "../anatomy/label.js";
|
|
5
|
+
import RatingGroupRoot from "../anatomy/root.js";
|
|
6
|
+
import RatingGroupRootContextComponent from "../anatomy/root-context.js";
|
|
7
|
+
import RatingGroupRootProvider from "../anatomy/root-provider.js";
|
|
8
8
|
|
|
9
9
|
//#region src/components/rating-group/modules/anatomy.ts
|
|
10
|
-
const RatingGroup = Object.assign(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
HiddenInput:
|
|
10
|
+
const RatingGroup = Object.assign(RatingGroupRoot, {
|
|
11
|
+
Provider: RatingGroupRootProvider,
|
|
12
|
+
Context: RatingGroupRootContextComponent,
|
|
13
|
+
Label: RatingGroupLabel,
|
|
14
|
+
Control: RatingGroupControl,
|
|
15
|
+
Item: RatingGroupItem,
|
|
16
|
+
HiddenInput: RatingGroupHiddenInput
|
|
17
17
|
});
|
|
18
18
|
|
|
19
19
|
//#endregion
|
|
20
|
-
export { RatingGroup };
|
|
20
|
+
export { RatingGroup };
|
|
21
|
+
//# sourceMappingURL=anatomy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anatomy.js","names":["Root","RootProvider","RootContext","Label","Control","Item","HiddenInput"],"sources":["../../../../src/components/rating-group/modules/anatomy.ts"],"sourcesContent":["import Control from '../anatomy/control';\nimport HiddenInput from '../anatomy/hidden-input';\nimport Item from '../anatomy/item';\nimport Label from '../anatomy/label';\nimport Root from '../anatomy/root';\nimport RootContext from '../anatomy/root-context';\nimport RootProvider from '../anatomy/root-provider';\n\nconst RatingGroup = Object.assign(Root, {\n\tProvider: RootProvider,\n\tContext: RootContext,\n\tLabel: Label,\n\tControl: Control,\n\tItem: Item,\n\tHiddenInput: HiddenInput,\n});\n\nexport { RatingGroup };\n"],"mappings":";;;;;;;;;AAQA,MAAM,cAAc,OAAO,OAAOA,iBAAM;CACvC,UAAUC;CACV,SAASC;CACT,OAAOC;CACP,SAASC;CACT,MAAMC;CACN,aAAaC;CACb,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { createContext } from "
|
|
1
|
+
import { createContext } from "../../../internal/create-context.js";
|
|
2
2
|
|
|
3
3
|
//#region src/components/rating-group/modules/root-context.ts
|
|
4
|
-
const RatingGroupRootContext = createContext(
|
|
4
|
+
const RatingGroupRootContext = createContext();
|
|
5
5
|
|
|
6
6
|
//#endregion
|
|
7
|
-
export { RatingGroupRootContext };
|
|
7
|
+
export { RatingGroupRootContext };
|
|
8
|
+
//# sourceMappingURL=root-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-context.js","names":[],"sources":["../../../../src/components/rating-group/modules/root-context.ts"],"sourcesContent":["import { createContext } from '@/internal/create-context';\n\nimport type { useRatingGroup } from './use-rating-group';\n\nexport const RatingGroupRootContext = createContext<ReturnType<typeof useRatingGroup>>();\n"],"mappings":";;;AAIA,MAAa,yBAAyB,eAAkD"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Api, Props } from "@zag-js/rating-group";
|
|
2
|
+
|
|
3
|
+
//#region src/components/rating-group/modules/use-rating-group.d.ts
|
|
4
|
+
declare function useRatingGroup(props: Omit<Props, 'id'>): Api;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { useRatingGroup };
|
|
7
|
+
//# sourceMappingURL=use-rating-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-rating-group.d.ts","names":[],"sources":["../../../../src/components/rating-group/modules/use-rating-group.ts"],"sourcesContent":[],"mappings":";;;iBAIgB,cAAA,QAAsB,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/rating-group";
|
|
4
|
+
|
|
5
|
+
//#region src/components/rating-group/modules/use-rating-group.ts
|
|
6
|
+
function useRatingGroup(props) {
|
|
7
|
+
const service = useMachine(machine, {
|
|
8
|
+
id: useId(),
|
|
9
|
+
...props
|
|
10
|
+
});
|
|
11
|
+
return connect(service, normalizeProps);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
export { useRatingGroup };
|
|
16
|
+
//# sourceMappingURL=use-rating-group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-rating-group.js","names":[],"sources":["../../../../src/components/rating-group/modules/use-rating-group.ts"],"sourcesContent":["import { type Api, connect, machine, type Props } from '@zag-js/rating-group';\nimport { normalizeProps, useMachine } from '@zag-js/react';\nimport { useId } from 'react';\n\nexport function useRatingGroup(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,eAAe,OAA+B;CAC7D,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 react49 from "react";
|
|
4
|
+
import * as react_jsx_runtime14 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/switch/anatomy/control.d.ts
|
|
7
|
+
interface SwitchControlProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
|
|
8
|
+
declare function SwitchControl(props: SwitchControlProps): string | number | bigint | boolean | Iterable<react49.ReactNode> | Promise<string | number | bigint | boolean | react49.ReactPortal | react49.ReactElement<unknown, string | react49.JSXElementConstructor<any>> | Iterable<react49.ReactNode> | null | undefined> | react_jsx_runtime14.JSX.Element | null | undefined;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { SwitchControl, SwitchControlProps };
|
|
11
|
+
//# sourceMappingURL=control.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control.d.ts","names":[],"sources":["../../../../src/components/switch/anatomy/control.tsx"],"sourcesContent":[],"mappings":";;;;;;UASiB,kBAAA,SAA2B,0BAA0B;iBAE9C,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"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SwitchRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { classesSwitch } from "@skeletonlabs/skeleton-common";
|
|
3
|
+
import { mergeProps } from "@zag-js/react";
|
|
4
|
+
import { use } from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/switch/anatomy/control.tsx
|
|
8
|
+
function SwitchControl(props) {
|
|
9
|
+
const switch_ = use(SwitchRootContext);
|
|
10
|
+
const { element, children,...rest } = props;
|
|
11
|
+
const attributes = mergeProps(switch_.getControlProps(), rest, { className: classesSwitch.control });
|
|
12
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
13
|
+
...attributes,
|
|
14
|
+
children
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { SwitchControl as default };
|
|
20
|
+
//# sourceMappingURL=control.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control.js","names":[],"sources":["../../../../src/components/switch/anatomy/control.tsx"],"sourcesContent":["import { classesSwitch } 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 { SwitchRootContext } from '../modules/root-context';\n\nexport interface SwitchControlProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}\n\nexport default function SwitchControl(props: SwitchControlProps) {\n\tconst switch_ = use(SwitchRootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(switch_.getControlProps(), rest, {\n\t\tclassName: classesSwitch.control,\n\t});\n\n\treturn element ? element(attributes) : <span {...attributes}>{children}</span>;\n}\n"],"mappings":";;;;;;;AAWA,SAAwB,cAAc,OAA2B;CAChE,MAAM,UAAU,IAAI,kBAAkB;CAEtC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,QAAQ,iBAAiB,EAAE,MAAM,EAC9D,WAAW,cAAc,SACzB,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAK,GAAI;EAAa;GAAgB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react54 from "react";
|
|
4
|
+
import * as react_jsx_runtime15 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/switch/anatomy/hidden-input.d.ts
|
|
7
|
+
interface SwitchHiddenInputProps extends PropsWithElement<'input'>, HTMLAttributes<'input', 'children'> {}
|
|
8
|
+
declare function SwitchHiddenInput(props: SwitchHiddenInputProps): string | number | bigint | boolean | Iterable<react54.ReactNode> | Promise<string | number | bigint | boolean | react54.ReactPortal | react54.ReactElement<unknown, string | react54.JSXElementConstructor<any>> | Iterable<react54.ReactNode> | null | undefined> | react_jsx_runtime15.JSX.Element | null | undefined;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { SwitchHiddenInput, SwitchHiddenInputProps };
|
|
11
|
+
//# sourceMappingURL=hidden-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hidden-input.d.ts","names":[],"sources":["../../../../src/components/switch/anatomy/hidden-input.tsx"],"sourcesContent":[],"mappings":";;;;;;UASiB,sBAAA,SAA+B,2BAA2B;iBAEnD,iBAAA,QAAyB,8DAAsB,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"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SwitchRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { classesSwitch } from "@skeletonlabs/skeleton-common";
|
|
3
|
+
import { mergeProps } from "@zag-js/react";
|
|
4
|
+
import { use } from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/switch/anatomy/hidden-input.tsx
|
|
8
|
+
function SwitchHiddenInput(props) {
|
|
9
|
+
const switch_ = use(SwitchRootContext);
|
|
10
|
+
const { element,...rest } = props;
|
|
11
|
+
const attributes = mergeProps(switch_.getHiddenInputProps(), rest, { className: classesSwitch.hiddenInput });
|
|
12
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { SwitchHiddenInput as default };
|
|
17
|
+
//# sourceMappingURL=hidden-input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hidden-input.js","names":[],"sources":["../../../../src/components/switch/anatomy/hidden-input.tsx"],"sourcesContent":["import { classesSwitch } 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 { SwitchRootContext } from '../modules/root-context';\n\nexport interface SwitchHiddenInputProps extends PropsWithElement<'input'>, HTMLAttributes<'input', 'children'> {}\n\nexport default function SwitchHiddenInput(props: SwitchHiddenInputProps) {\n\tconst switch_ = use(SwitchRootContext);\n\n\tconst { element, ...rest } = props;\n\n\tconst attributes = mergeProps(switch_.getHiddenInputProps(), rest, {\n\t\tclassName: classesSwitch.hiddenInput,\n\t});\n\n\treturn element ? element(attributes) : <input {...attributes} />;\n}\n"],"mappings":";;;;;;;AAWA,SAAwB,kBAAkB,OAA+B;CACxE,MAAM,UAAU,IAAI,kBAAkB;CAEtC,MAAM,EAAE,QAAS,GAAG,SAAS;CAE7B,MAAM,aAAa,WAAW,QAAQ,qBAAqB,EAAE,MAAM,EAClE,WAAW,cAAc,aACzB,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC,WAAM,GAAI,aAAc"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react59 from "react";
|
|
4
|
+
import * as react_jsx_runtime16 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/switch/anatomy/label.d.ts
|
|
7
|
+
interface SwitchLabelProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
|
|
8
|
+
declare function SwitchLabel(props: SwitchLabelProps): string | number | bigint | boolean | Iterable<react59.ReactNode> | Promise<string | number | bigint | boolean | react59.ReactPortal | react59.ReactElement<unknown, string | react59.JSXElementConstructor<any>> | Iterable<react59.ReactNode> | null | undefined> | react_jsx_runtime16.JSX.Element | null | undefined;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { SwitchLabel, SwitchLabelProps };
|
|
11
|
+
//# sourceMappingURL=label.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.d.ts","names":[],"sources":["../../../../src/components/switch/anatomy/label.tsx"],"sourcesContent":[],"mappings":";;;;;;UASiB,gBAAA,SAAyB,0BAA0B;iBAE5C,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"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SwitchRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { classesSwitch } from "@skeletonlabs/skeleton-common";
|
|
3
|
+
import { mergeProps } from "@zag-js/react";
|
|
4
|
+
import { use } from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/switch/anatomy/label.tsx
|
|
8
|
+
function SwitchLabel(props) {
|
|
9
|
+
const switch_ = use(SwitchRootContext);
|
|
10
|
+
const { element, children,...rest } = props;
|
|
11
|
+
const attributes = mergeProps(switch_.getLabelProps(), rest, { className: classesSwitch.label });
|
|
12
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
13
|
+
...attributes,
|
|
14
|
+
children
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { SwitchLabel as default };
|
|
20
|
+
//# sourceMappingURL=label.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.js","names":[],"sources":["../../../../src/components/switch/anatomy/label.tsx"],"sourcesContent":["import { classesSwitch } 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 { SwitchRootContext } from '../modules/root-context';\n\nexport interface SwitchLabelProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}\n\nexport default function SwitchLabel(props: SwitchLabelProps) {\n\tconst switch_ = use(SwitchRootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(switch_.getLabelProps(), rest, {\n\t\tclassName: classesSwitch.label,\n\t});\n\n\treturn element ? element(attributes) : <span {...attributes}>{children}</span>;\n}\n"],"mappings":";;;;;;;AAWA,SAAwB,YAAY,OAAyB;CAC5D,MAAM,UAAU,IAAI,kBAAkB;CAEtC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,QAAQ,eAAe,EAAE,MAAM,EAC5D,WAAW,cAAc,OACzB,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAK,GAAI;EAAa;GAAgB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useSwitch } from "../modules/use-switch.js";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/switch/anatomy/root-context.d.ts
|
|
5
|
+
interface SwitchRootContextProps {
|
|
6
|
+
children: (switch_: ReturnType<typeof useSwitch>) => ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare function SwitchRootContextComponent(props: SwitchRootContextProps): ReactNode;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { SwitchRootContextComponent, SwitchRootContextProps };
|
|
11
|
+
//# sourceMappingURL=root-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-context.d.ts","names":[],"sources":["../../../../src/components/switch/anatomy/root-context.tsx"],"sourcesContent":[],"mappings":";;;;UAKiB,sBAAA;sBACI,kBAAkB,eAAe;AADtD;AAAuC,iBAIf,0BAAA,CAJe,KAAA,EAImB,sBAJnB,CAAA,EAIyC,SAJzC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SwitchRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { use } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/switch/anatomy/root-context.tsx
|
|
5
|
+
function SwitchRootContextComponent(props) {
|
|
6
|
+
const switch_ = use(SwitchRootContext);
|
|
7
|
+
const { children } = props;
|
|
8
|
+
return children(switch_);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { SwitchRootContextComponent as default };
|
|
13
|
+
//# sourceMappingURL=root-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-context.js","names":[],"sources":["../../../../src/components/switch/anatomy/root-context.tsx"],"sourcesContent":["import { type ReactNode, use } from 'react';\n\nimport { SwitchRootContext } from '../modules/root-context';\nimport type { useSwitch } from '../modules/use-switch';\n\nexport interface SwitchRootContextProps {\n\tchildren: (switch_: ReturnType<typeof useSwitch>) => ReactNode;\n}\n\nexport default function SwitchRootContextComponent(props: SwitchRootContextProps) {\n\tconst switch_ = use(SwitchRootContext);\n\n\tconst { children } = props;\n\n\treturn children(switch_);\n}\n"],"mappings":";;;;AASA,SAAwB,2BAA2B,OAA+B;CACjF,MAAM,UAAU,IAAI,kBAAkB;CAEtC,MAAM,EAAE,aAAa;AAErB,QAAO,SAAS,QAAQ"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import { useSwitch } from "../modules/use-switch.js";
|
|
4
|
+
import "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/switch/anatomy/root-provider.d.ts
|
|
7
|
+
interface SwitchRootProviderProps extends PropsWithElement<'label'>, HTMLAttributes<'label', 'id' | 'dir'> {
|
|
8
|
+
value: ReturnType<typeof useSwitch>;
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { SwitchRootProviderProps };
|
|
12
|
+
//# sourceMappingURL=root-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-provider.d.ts","names":[],"sources":["../../../../src/components/switch/anatomy/root-provider.tsx"],"sourcesContent":[],"mappings":";;;;;;UASiB,uBAAA,SAAgC,2BAA2B;SACpE,kBAAkB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react_jsx_runtime48 from "react/jsx-runtime";
|
|
4
|
+
import { Props } from "@zag-js/switch";
|
|
5
|
+
|
|
6
|
+
//#region src/components/switch/anatomy/root.d.ts
|
|
7
|
+
interface SwitchRootProps extends Omit<Props, 'id'>, PropsWithElement<'label'>, HTMLAttributes<'label', 'id' | 'dir'> {}
|
|
8
|
+
declare function SwitchRoot(props: SwitchRootProps): react_jsx_runtime48.JSX.Element;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { SwitchRoot };
|
|
11
|
+
//# sourceMappingURL=root.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root.d.ts","names":[],"sources":["../../../../src/components/switch/anatomy/root.tsx"],"sourcesContent":[],"mappings":";;;;;;UAUiB,eAAA,SAAwB,KAAK,cAAc,2BAA2B;iBAE/D,UAAA,QAAkB,kBAAe,mBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { SwitchRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { useSwitch } from "../modules/use-switch.js";
|
|
3
|
+
import { classesSwitch } from "@skeletonlabs/skeleton-common";
|
|
4
|
+
import { mergeProps } from "@zag-js/react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { splitProps } from "@zag-js/switch";
|
|
7
|
+
|
|
8
|
+
//#region src/components/switch/anatomy/root.tsx
|
|
9
|
+
function SwitchRoot(props) {
|
|
10
|
+
const [switchProps, componentProps] = splitProps(props);
|
|
11
|
+
const { element, children,...rest } = componentProps;
|
|
12
|
+
const switch_ = useSwitch(switchProps);
|
|
13
|
+
const attributes = mergeProps(switch_.getRootProps(), rest, { className: classesSwitch.root });
|
|
14
|
+
return /* @__PURE__ */ jsx(SwitchRootContext.Provider, {
|
|
15
|
+
value: switch_,
|
|
16
|
+
children: element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
17
|
+
...attributes,
|
|
18
|
+
children
|
|
19
|
+
})
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { SwitchRoot as default };
|
|
25
|
+
//# sourceMappingURL=root.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root.js","names":[],"sources":["../../../../src/components/switch/anatomy/root.tsx"],"sourcesContent":["import { classesSwitch } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { type Props, splitProps } from '@zag-js/switch';\n\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\n\nimport { SwitchRootContext } from '../modules/root-context';\nimport { useSwitch } from '../modules/use-switch';\n\nexport interface SwitchRootProps extends Omit<Props, 'id'>, PropsWithElement<'label'>, HTMLAttributes<'label', 'id' | 'dir'> {}\n\nexport default function SwitchRoot(props: SwitchRootProps) {\n\tconst [switchProps, componentProps] = splitProps(props);\n\tconst { element, children, ...rest } = componentProps;\n\n\tconst switch_ = useSwitch(switchProps);\n\n\tconst attributes = mergeProps(switch_.getRootProps(), rest, {\n\t\tclassName: classesSwitch.root,\n\t});\n\n\treturn (\n\t\t<SwitchRootContext.Provider value={switch_}>\n\t\t\t{element ? element(attributes) : <label {...attributes}>{children}</label>}\n\t\t</SwitchRootContext.Provider>\n\t);\n}\n"],"mappings":";;;;;;;;AAYA,SAAwB,WAAW,OAAwB;CAC1D,MAAM,CAAC,aAAa,kBAAkB,WAAW,MAAM;CACvD,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,UAAU,UAAU,YAAY;CAEtC,MAAM,aAAa,WAAW,QAAQ,cAAc,EAAE,MAAM,EAC3D,WAAW,cAAc,MACzB,CAAC;AAEF,QACC,oBAAC,kBAAkB;EAAS,OAAO;YACjC,UAAU,QAAQ,WAAW,GAAG,oBAAC;GAAM,GAAI;GAAa;IAAiB;GAC9C"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react64 from "react";
|
|
4
|
+
import * as react_jsx_runtime18 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/switch/anatomy/thumb.d.ts
|
|
7
|
+
interface SwitchThumbProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
|
|
8
|
+
declare function SwitchThumb(props: SwitchThumbProps): string | number | bigint | boolean | Iterable<react64.ReactNode> | Promise<string | number | bigint | boolean | react64.ReactPortal | react64.ReactElement<unknown, string | react64.JSXElementConstructor<any>> | Iterable<react64.ReactNode> | null | undefined> | react_jsx_runtime18.JSX.Element | null | undefined;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { SwitchThumb, SwitchThumbProps };
|
|
11
|
+
//# sourceMappingURL=thumb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"thumb.d.ts","names":[],"sources":["../../../../src/components/switch/anatomy/thumb.tsx"],"sourcesContent":[],"mappings":";;;;;;UASiB,gBAAA,SAAyB,0BAA0B;iBAE5C,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"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SwitchRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { classesSwitch } from "@skeletonlabs/skeleton-common";
|
|
3
|
+
import { mergeProps } from "@zag-js/react";
|
|
4
|
+
import { use } from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/switch/anatomy/thumb.tsx
|
|
8
|
+
function SwitchThumb(props) {
|
|
9
|
+
const switch_ = use(SwitchRootContext);
|
|
10
|
+
const { element, children,...rest } = props;
|
|
11
|
+
const attributes = mergeProps(switch_.getThumbProps(), rest, { className: classesSwitch.thumb });
|
|
12
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
13
|
+
...attributes,
|
|
14
|
+
children
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { SwitchThumb as default };
|
|
20
|
+
//# sourceMappingURL=thumb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"thumb.js","names":[],"sources":["../../../../src/components/switch/anatomy/thumb.tsx"],"sourcesContent":["import { classesSwitch } 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 { SwitchRootContext } from '../modules/root-context';\n\nexport interface SwitchThumbProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}\n\nexport default function SwitchThumb(props: SwitchThumbProps) {\n\tconst switch_ = use(SwitchRootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(switch_.getThumbProps(), rest, {\n\t\tclassName: classesSwitch.thumb,\n\t});\n\n\treturn element ? element(attributes) : <span {...attributes}>{children}</span>;\n}\n"],"mappings":";;;;;;;AAWA,SAAwB,YAAY,OAAyB;CAC5D,MAAM,UAAU,IAAI,kBAAkB;CAEtC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,QAAQ,eAAe,EAAE,MAAM,EAC5D,WAAW,cAAc,OACzB,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAK,GAAI;EAAa;GAAgB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SwitchControl } from "../anatomy/control.js";
|
|
2
|
+
import { SwitchHiddenInput } from "../anatomy/hidden-input.js";
|
|
3
|
+
import { SwitchLabel } from "../anatomy/label.js";
|
|
4
|
+
import { SwitchRootContextComponent } from "../anatomy/root-context.js";
|
|
5
|
+
import { SwitchThumb } from "../anatomy/thumb.js";
|
|
6
|
+
import { SwitchRoot } from "../anatomy/root.js";
|
|
7
|
+
|
|
8
|
+
//#region src/components/switch/modules/anatomy.d.ts
|
|
9
|
+
declare const Switch: typeof SwitchRoot & {
|
|
10
|
+
Context: typeof SwitchRootContextComponent;
|
|
11
|
+
Control: typeof SwitchControl;
|
|
12
|
+
Thumb: typeof SwitchThumb;
|
|
13
|
+
Label: typeof SwitchLabel;
|
|
14
|
+
HiddenInput: typeof SwitchHiddenInput;
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { Switch };
|
|
18
|
+
//# sourceMappingURL=anatomy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anatomy.d.ts","names":[],"sources":["../../../../src/components/switch/modules/anatomy.ts"],"sourcesContent":[],"mappings":";;;;;;;;cAOa,eAAM;;EAAN,OAAA,EAMX,oBAAA;EAAA,KAAA,EAAA,kBAAA;OANiB,EAAA,kBAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import SwitchControl from "../anatomy/control.js";
|
|
2
|
+
import SwitchHiddenInput from "../anatomy/hidden-input.js";
|
|
3
|
+
import SwitchLabel from "../anatomy/label.js";
|
|
4
|
+
import SwitchRoot from "../anatomy/root.js";
|
|
5
|
+
import SwitchRootContextComponent from "../anatomy/root-context.js";
|
|
6
|
+
import SwitchThumb from "../anatomy/thumb.js";
|
|
7
|
+
|
|
8
|
+
//#region src/components/switch/modules/anatomy.ts
|
|
9
|
+
const Switch = Object.assign(SwitchRoot, {
|
|
10
|
+
Context: SwitchRootContextComponent,
|
|
11
|
+
Control: SwitchControl,
|
|
12
|
+
Thumb: SwitchThumb,
|
|
13
|
+
Label: SwitchLabel,
|
|
14
|
+
HiddenInput: SwitchHiddenInput
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { Switch };
|
|
19
|
+
//# sourceMappingURL=anatomy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anatomy.js","names":["Root","RootContext","Control","Thumb","Label","HiddenInput"],"sources":["../../../../src/components/switch/modules/anatomy.ts"],"sourcesContent":["import Control from '../anatomy/control';\nimport HiddenInput from '../anatomy/hidden-input';\nimport Label from '../anatomy/label';\nimport Root from '../anatomy/root';\nimport RootContext from '../anatomy/root-context';\nimport Thumb from '../anatomy/thumb';\n\nexport const Switch = Object.assign(Root, {\n\tContext: RootContext,\n\tControl: Control,\n\tThumb: Thumb,\n\tLabel: Label,\n\tHiddenInput: HiddenInput,\n});\n"],"mappings":";;;;;;;;AAOA,MAAa,SAAS,OAAO,OAAOA,YAAM;CACzC,SAASC;CACT,SAASC;CACT,OAAOC;CACP,OAAOC;CACP,aAAaC;CACb,CAAC"}
|