@skeletonlabs/skeleton-react 2.0.0-next.4 → 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 +5 -4
- package/dist/components/accordion/anatomy/content.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/content.js +8 -7
- package/dist/components/accordion/anatomy/content.js.map +1 -0
- package/dist/components/accordion/anatomy/heading.d.ts +5 -4
- package/dist/components/accordion/anatomy/heading.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/heading.js +4 -3
- package/dist/components/accordion/anatomy/heading.js.map +1 -0
- package/dist/components/accordion/anatomy/indicator.d.ts +5 -4
- package/dist/components/accordion/anatomy/indicator.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/indicator.js +8 -7
- package/dist/components/accordion/anatomy/indicator.js.map +1 -0
- package/dist/components/accordion/anatomy/item.d.ts +5 -4
- package/dist/components/accordion/anatomy/item.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/item.js +8 -7
- package/dist/components/accordion/anatomy/item.js.map +1 -0
- package/dist/components/accordion/anatomy/root-context.d.ts +3 -2
- package/dist/components/accordion/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/root-context.js +5 -4
- package/dist/components/accordion/anatomy/root-context.js.map +1 -0
- package/dist/components/accordion/anatomy/root-provider.d.ts +2 -1
- package/dist/components/accordion/anatomy/root-provider.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/root.d.ts +4 -3
- package/dist/components/accordion/anatomy/root.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/root.js +5 -4
- package/dist/components/accordion/anatomy/root.js.map +1 -0
- package/dist/components/accordion/anatomy/trigger.d.ts +5 -4
- package/dist/components/accordion/anatomy/trigger.d.ts.map +1 -0
- package/dist/components/accordion/anatomy/trigger.js +8 -7
- package/dist/components/accordion/anatomy/trigger.js.map +1 -0
- package/dist/components/accordion/modules/anatomy.d.ts +16 -15
- package/dist/components/accordion/modules/anatomy.d.ts.map +1 -0
- package/dist/components/accordion/modules/anatomy.js +16 -15
- 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 +2 -1
- package/dist/components/accordion/modules/root-context.js.map +1 -0
- package/dist/components/accordion/modules/use-accordion.d.ts +4 -5
- package/dist/components/accordion/modules/use-accordion.d.ts.map +1 -0
- package/dist/components/accordion/modules/use-accordion.js +3 -2
- package/dist/components/accordion/modules/use-accordion.js.map +1 -0
- package/dist/components/avatar/anatomy/fallback.d.ts +5 -4
- package/dist/components/avatar/anatomy/fallback.d.ts.map +1 -0
- package/dist/components/avatar/anatomy/fallback.js +6 -5
- package/dist/components/avatar/anatomy/fallback.js.map +1 -0
- package/dist/components/avatar/anatomy/image.d.ts +5 -4
- package/dist/components/avatar/anatomy/image.d.ts.map +1 -0
- package/dist/components/avatar/anatomy/image.js +6 -5
- package/dist/components/avatar/anatomy/image.js.map +1 -0
- package/dist/components/avatar/anatomy/root-context.d.ts +3 -2
- package/dist/components/avatar/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/avatar/anatomy/root-context.js +5 -4
- package/dist/components/avatar/anatomy/root-context.js.map +1 -0
- package/dist/components/avatar/anatomy/root-provider.d.ts +2 -1
- package/dist/components/avatar/anatomy/root-provider.d.ts.map +1 -0
- package/dist/components/avatar/anatomy/root.d.ts +4 -3
- package/dist/components/avatar/anatomy/root.d.ts.map +1 -0
- package/dist/components/avatar/anatomy/root.js +4 -3
- 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 +2 -1
- package/dist/components/avatar/modules/root-context.js.map +1 -0
- package/dist/components/avatar/modules/use-avatar.d.ts +4 -5
- package/dist/components/avatar/modules/use-avatar.d.ts.map +1 -0
- package/dist/components/avatar/modules/use-avatar.js +2 -1
- 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 +5 -4
- package/dist/components/progress-linear/anatomy/label.d.ts.map +1 -0
- package/dist/components/progress-linear/anatomy/label.js +6 -5
- package/dist/components/progress-linear/anatomy/label.js.map +1 -0
- package/dist/components/progress-linear/anatomy/range.d.ts +5 -4
- package/dist/components/progress-linear/anatomy/range.d.ts.map +1 -0
- package/dist/components/progress-linear/anatomy/range.js +6 -5
- package/dist/components/progress-linear/anatomy/range.js.map +1 -0
- package/dist/components/progress-linear/anatomy/root-context.d.ts +3 -2
- package/dist/components/progress-linear/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/progress-linear/anatomy/root-context.js +5 -4
- package/dist/components/progress-linear/anatomy/root-context.js.map +1 -0
- package/dist/components/progress-linear/anatomy/root-provider.d.ts +4 -3
- package/dist/components/progress-linear/anatomy/root-provider.d.ts.map +1 -0
- package/dist/components/progress-linear/anatomy/root-provider.js +4 -3
- package/dist/components/progress-linear/anatomy/root-provider.js.map +1 -0
- package/dist/components/progress-linear/anatomy/root.d.ts +4 -3
- package/dist/components/progress-linear/anatomy/root.d.ts.map +1 -0
- package/dist/components/progress-linear/anatomy/root.js +4 -3
- package/dist/components/progress-linear/anatomy/root.js.map +1 -0
- package/dist/components/progress-linear/anatomy/track.d.ts +5 -4
- package/dist/components/progress-linear/anatomy/track.d.ts.map +1 -0
- package/dist/components/progress-linear/anatomy/track.js +6 -5
- package/dist/components/progress-linear/anatomy/track.js.map +1 -0
- package/dist/components/progress-linear/modules/anatomy.d.ts +14 -13
- package/dist/components/progress-linear/modules/anatomy.d.ts.map +1 -0
- package/dist/components/progress-linear/modules/anatomy.js +14 -13
- package/dist/components/progress-linear/modules/anatomy.js.map +1 -0
- package/dist/components/progress-linear/modules/root-context.js +2 -1
- package/dist/components/progress-linear/modules/root-context.js.map +1 -0
- package/dist/components/progress-linear/modules/use-progress-linear.d.ts +4 -5
- package/dist/components/progress-linear/modules/use-progress-linear.d.ts.map +1 -0
- package/dist/components/progress-linear/modules/use-progress-linear.js +2 -1
- package/dist/components/progress-linear/modules/use-progress-linear.js.map +1 -0
- package/dist/components/rating-group/anatomy/control.d.ts +5 -4
- package/dist/components/rating-group/anatomy/control.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/control.js +6 -5
- package/dist/components/rating-group/anatomy/control.js.map +1 -0
- package/dist/components/rating-group/anatomy/hidden-input.d.ts +5 -4
- package/dist/components/rating-group/anatomy/hidden-input.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/hidden-input.js +6 -5
- package/dist/components/rating-group/anatomy/hidden-input.js.map +1 -0
- package/dist/components/rating-group/anatomy/item.d.ts +5 -4
- package/dist/components/rating-group/anatomy/item.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/item.js +10 -9
- package/dist/components/rating-group/anatomy/item.js.map +1 -0
- package/dist/components/rating-group/anatomy/label.d.ts +5 -4
- package/dist/components/rating-group/anatomy/label.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/label.js +6 -5
- package/dist/components/rating-group/anatomy/label.js.map +1 -0
- package/dist/components/rating-group/anatomy/root-context.d.ts +3 -2
- package/dist/components/rating-group/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/root-context.js +5 -4
- package/dist/components/rating-group/anatomy/root-context.js.map +1 -0
- package/dist/components/rating-group/anatomy/root-provider.d.ts +4 -3
- package/dist/components/rating-group/anatomy/root-provider.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/root-provider.js +4 -3
- package/dist/components/rating-group/anatomy/root-provider.js.map +1 -0
- package/dist/components/rating-group/anatomy/root.d.ts +4 -3
- package/dist/components/rating-group/anatomy/root.d.ts.map +1 -0
- package/dist/components/rating-group/anatomy/root.js +4 -3
- package/dist/components/rating-group/anatomy/root.js.map +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 +2 -1
- package/dist/components/rating-group/modules/root-context.js.map +1 -0
- package/dist/components/rating-group/modules/use-rating-group.d.ts +4 -5
- package/dist/components/rating-group/modules/use-rating-group.d.ts.map +1 -0
- package/dist/components/rating-group/modules/use-rating-group.js +2 -1
- package/dist/components/rating-group/modules/use-rating-group.js.map +1 -0
- package/dist/components/switch/anatomy/control.d.ts +5 -4
- package/dist/components/switch/anatomy/control.d.ts.map +1 -0
- package/dist/components/switch/anatomy/control.js +6 -5
- package/dist/components/switch/anatomy/control.js.map +1 -0
- package/dist/components/switch/anatomy/hidden-input.d.ts +5 -4
- package/dist/components/switch/anatomy/hidden-input.d.ts.map +1 -0
- package/dist/components/switch/anatomy/hidden-input.js +6 -5
- package/dist/components/switch/anatomy/hidden-input.js.map +1 -0
- package/dist/components/switch/anatomy/label.d.ts +5 -4
- package/dist/components/switch/anatomy/label.d.ts.map +1 -0
- package/dist/components/switch/anatomy/label.js +6 -5
- package/dist/components/switch/anatomy/label.js.map +1 -0
- package/dist/components/switch/anatomy/root-context.d.ts +3 -2
- package/dist/components/switch/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/switch/anatomy/root-context.js +5 -4
- package/dist/components/switch/anatomy/root-context.js.map +1 -0
- package/dist/components/switch/anatomy/root-provider.d.ts +2 -1
- package/dist/components/switch/anatomy/root-provider.d.ts.map +1 -0
- package/dist/components/switch/anatomy/root.d.ts +4 -3
- package/dist/components/switch/anatomy/root.d.ts.map +1 -0
- package/dist/components/switch/anatomy/root.js +4 -3
- package/dist/components/switch/anatomy/root.js.map +1 -0
- package/dist/components/switch/anatomy/thumb.d.ts +5 -4
- package/dist/components/switch/anatomy/thumb.d.ts.map +1 -0
- package/dist/components/switch/anatomy/thumb.js +6 -5
- package/dist/components/switch/anatomy/thumb.js.map +1 -0
- package/dist/components/switch/modules/anatomy.d.ts +14 -13
- package/dist/components/switch/modules/anatomy.d.ts.map +1 -0
- package/dist/components/switch/modules/anatomy.js +14 -13
- package/dist/components/switch/modules/anatomy.js.map +1 -0
- package/dist/components/switch/modules/root-context.js +2 -1
- package/dist/components/switch/modules/root-context.js.map +1 -0
- package/dist/components/switch/modules/use-switch.d.ts +4 -5
- package/dist/components/switch/modules/use-switch.d.ts.map +1 -0
- package/dist/components/switch/modules/use-switch.js +2 -1
- package/dist/components/switch/modules/use-switch.js.map +1 -0
- package/dist/components/tabs/anatomy/content.d.ts +5 -4
- package/dist/components/tabs/anatomy/content.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/content.js +6 -5
- package/dist/components/tabs/anatomy/content.js.map +1 -0
- package/dist/components/tabs/anatomy/indicator.d.ts +5 -4
- package/dist/components/tabs/anatomy/indicator.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/indicator.js +6 -5
- package/dist/components/tabs/anatomy/indicator.js.map +1 -0
- package/dist/components/tabs/anatomy/list.d.ts +5 -4
- package/dist/components/tabs/anatomy/list.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/list.js +6 -5
- package/dist/components/tabs/anatomy/list.js.map +1 -0
- package/dist/components/tabs/anatomy/root-context.d.ts +3 -2
- package/dist/components/tabs/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/root-context.js +5 -4
- package/dist/components/tabs/anatomy/root-context.js.map +1 -0
- package/dist/components/tabs/anatomy/root-provider.d.ts +4 -3
- package/dist/components/tabs/anatomy/root-provider.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/root-provider.js +4 -3
- package/dist/components/tabs/anatomy/root-provider.js.map +1 -0
- package/dist/components/tabs/anatomy/root.d.ts +4 -3
- package/dist/components/tabs/anatomy/root.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/root.js +4 -3
- package/dist/components/tabs/anatomy/root.js.map +1 -0
- package/dist/components/tabs/anatomy/trigger.d.ts +5 -4
- package/dist/components/tabs/anatomy/trigger.d.ts.map +1 -0
- package/dist/components/tabs/anatomy/trigger.js +6 -5
- package/dist/components/tabs/anatomy/trigger.js.map +1 -0
- package/dist/components/tabs/modules/anatomy.d.ts +16 -15
- package/dist/components/tabs/modules/anatomy.d.ts.map +1 -0
- package/dist/components/tabs/modules/anatomy.js +16 -15
- package/dist/components/tabs/modules/anatomy.js.map +1 -0
- package/dist/components/tabs/modules/root-context.js +2 -1
- package/dist/components/tabs/modules/root-context.js.map +1 -0
- package/dist/components/tabs/modules/use-tabs.d.ts +4 -5
- package/dist/components/tabs/modules/use-tabs.d.ts.map +1 -0
- package/dist/components/tabs/modules/use-tabs.js +2 -1
- package/dist/components/tabs/modules/use-tabs.js.map +1 -0
- package/dist/components/toast/anatomy/action-trigger.d.ts +5 -4
- package/dist/components/toast/anatomy/action-trigger.d.ts.map +1 -0
- package/dist/components/toast/anatomy/action-trigger.js +6 -5
- package/dist/components/toast/anatomy/action-trigger.js.map +1 -0
- package/dist/components/toast/anatomy/close-trigger.d.ts +5 -4
- package/dist/components/toast/anatomy/close-trigger.d.ts.map +1 -0
- package/dist/components/toast/anatomy/close-trigger.js +8 -7
- package/dist/components/toast/anatomy/close-trigger.js.map +1 -0
- package/dist/components/toast/anatomy/description.d.ts +5 -4
- package/dist/components/toast/anatomy/description.d.ts.map +1 -0
- package/dist/components/toast/anatomy/description.js +6 -5
- package/dist/components/toast/anatomy/description.js.map +1 -0
- package/dist/components/toast/anatomy/group.d.ts +4 -3
- package/dist/components/toast/anatomy/group.d.ts.map +1 -0
- package/dist/components/toast/anatomy/group.js +4 -3
- package/dist/components/toast/anatomy/group.js.map +1 -0
- package/dist/components/toast/anatomy/message.d.ts +5 -4
- package/dist/components/toast/anatomy/message.d.ts.map +1 -0
- package/dist/components/toast/anatomy/message.js +4 -3
- package/dist/components/toast/anatomy/message.js.map +1 -0
- package/dist/components/toast/anatomy/root-context.d.ts +3 -2
- package/dist/components/toast/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/toast/anatomy/root-context.js +5 -4
- package/dist/components/toast/anatomy/root-context.js.map +1 -0
- package/dist/components/toast/anatomy/root.d.ts +4 -3
- package/dist/components/toast/anatomy/root.d.ts.map +1 -0
- package/dist/components/toast/anatomy/root.js +6 -5
- package/dist/components/toast/anatomy/root.js.map +1 -0
- package/dist/components/toast/anatomy/title.d.ts +5 -4
- package/dist/components/toast/anatomy/title.d.ts.map +1 -0
- package/dist/components/toast/anatomy/title.js +6 -5
- package/dist/components/toast/anatomy/title.js.map +1 -0
- package/dist/components/toast/index.d.ts +4 -4
- package/dist/components/toast/modules/anatomy.d.ts +18 -17
- package/dist/components/toast/modules/anatomy.d.ts.map +1 -0
- package/dist/components/toast/modules/anatomy.js +18 -17
- package/dist/components/toast/modules/anatomy.js.map +1 -0
- package/dist/components/toast/modules/group-context.js +2 -1
- package/dist/components/toast/modules/group-context.js.map +1 -0
- package/dist/components/toast/modules/root-context.js +2 -1
- package/dist/components/toast/modules/root-context.js.map +1 -0
- package/dist/index.d.ts +43 -29
- package/dist/index.js +5 -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 +3 -2
- package/dist/internal/components/x.js.map +1 -0
- package/dist/internal/create-context.js +2 -1
- package/dist/internal/create-context.js.map +1 -0
- package/dist/internal/html-attributes.d.ts +2 -1
- package/dist/internal/html-attributes.d.ts.map +1 -0
- package/dist/internal/props-with-element.d.ts +2 -1
- package/dist/internal/props-with-element.d.ts.map +1 -0
- package/package.json +11 -15
|
@@ -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 @@
|
|
|
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"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as react49 from "react";
|
|
4
|
+
import * as react_jsx_runtime14 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/switch/anatomy/control.d.ts
|
|
7
7
|
interface SwitchControlProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
|
|
8
|
-
declare function
|
|
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
9
|
//#endregion
|
|
10
|
-
export {
|
|
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"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { SwitchRootContext } from "../modules/root-context.js";
|
|
2
|
-
import { mergeProps } from "@zag-js/react";
|
|
3
2
|
import { classesSwitch } from "@skeletonlabs/skeleton-common";
|
|
4
|
-
import {
|
|
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/switch/anatomy/control.tsx
|
|
8
|
-
function
|
|
9
|
-
const switch_ =
|
|
8
|
+
function SwitchControl(props) {
|
|
9
|
+
const switch_ = use(SwitchRootContext);
|
|
10
10
|
const { element, children,...rest } = props;
|
|
11
11
|
const attributes = mergeProps(switch_.getControlProps(), rest, { className: classesSwitch.control });
|
|
12
12
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
@@ -16,4 +16,5 @@ function control_default(props) {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
//#endregion
|
|
19
|
-
export {
|
|
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"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as react54 from "react";
|
|
4
|
+
import * as react_jsx_runtime15 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/switch/anatomy/hidden-input.d.ts
|
|
7
7
|
interface SwitchHiddenInputProps extends PropsWithElement<'input'>, HTMLAttributes<'input', 'children'> {}
|
|
8
|
-
declare function
|
|
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
9
|
//#endregion
|
|
10
|
-
export {
|
|
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"}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { SwitchRootContext } from "../modules/root-context.js";
|
|
2
|
-
import { mergeProps } from "@zag-js/react";
|
|
3
2
|
import { classesSwitch } from "@skeletonlabs/skeleton-common";
|
|
4
|
-
import {
|
|
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/switch/anatomy/hidden-input.tsx
|
|
8
|
-
function
|
|
9
|
-
const switch_ =
|
|
8
|
+
function SwitchHiddenInput(props) {
|
|
9
|
+
const switch_ = use(SwitchRootContext);
|
|
10
10
|
const { element,...rest } = props;
|
|
11
11
|
const attributes = mergeProps(switch_.getHiddenInputProps(), rest, { className: classesSwitch.hiddenInput });
|
|
12
12
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
//#endregion
|
|
16
|
-
export {
|
|
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"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as react59 from "react";
|
|
4
|
+
import * as react_jsx_runtime16 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/switch/anatomy/label.d.ts
|
|
7
7
|
interface SwitchLabelProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
|
|
8
|
-
declare function
|
|
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
9
|
//#endregion
|
|
10
|
-
export {
|
|
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"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { SwitchRootContext } from "../modules/root-context.js";
|
|
2
|
-
import { mergeProps } from "@zag-js/react";
|
|
3
2
|
import { classesSwitch } from "@skeletonlabs/skeleton-common";
|
|
4
|
-
import {
|
|
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/switch/anatomy/label.tsx
|
|
8
|
-
function
|
|
9
|
-
const switch_ =
|
|
8
|
+
function SwitchLabel(props) {
|
|
9
|
+
const switch_ = use(SwitchRootContext);
|
|
10
10
|
const { element, children,...rest } = props;
|
|
11
11
|
const attributes = mergeProps(switch_.getLabelProps(), rest, { className: classesSwitch.label });
|
|
12
12
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
@@ -16,4 +16,5 @@ function label_default(props) {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
//#endregion
|
|
19
|
-
export {
|
|
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"}
|
|
@@ -5,6 +5,7 @@ import { ReactNode } from "react";
|
|
|
5
5
|
interface SwitchRootContextProps {
|
|
6
6
|
children: (switch_: ReturnType<typeof useSwitch>) => ReactNode;
|
|
7
7
|
}
|
|
8
|
-
declare function
|
|
8
|
+
declare function SwitchRootContextComponent(props: SwitchRootContextProps): ReactNode;
|
|
9
9
|
//#endregion
|
|
10
|
-
export {
|
|
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"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { SwitchRootContext } from "../modules/root-context.js";
|
|
2
|
-
import {
|
|
2
|
+
import { use } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/switch/anatomy/root-context.tsx
|
|
5
|
-
function
|
|
6
|
-
const switch_ =
|
|
5
|
+
function SwitchRootContextComponent(props) {
|
|
6
|
+
const switch_ = use(SwitchRootContext);
|
|
7
7
|
const { children } = props;
|
|
8
8
|
return children(switch_);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
//#endregion
|
|
12
|
-
export {
|
|
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 @@
|
|
|
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"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime48 from "react/jsx-runtime";
|
|
4
4
|
import { Props } from "@zag-js/switch";
|
|
5
5
|
|
|
6
6
|
//#region src/components/switch/anatomy/root.d.ts
|
|
7
7
|
interface SwitchRootProps extends Omit<Props, 'id'>, PropsWithElement<'label'>, HTMLAttributes<'label', 'id' | 'dir'> {}
|
|
8
|
-
declare function
|
|
8
|
+
declare function SwitchRoot(props: SwitchRootProps): react_jsx_runtime48.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
|
-
export {
|
|
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"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { SwitchRootContext } from "../modules/root-context.js";
|
|
2
2
|
import { useSwitch } from "../modules/use-switch.js";
|
|
3
|
-
import { mergeProps } from "@zag-js/react";
|
|
4
3
|
import { classesSwitch } from "@skeletonlabs/skeleton-common";
|
|
4
|
+
import { mergeProps } from "@zag-js/react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { splitProps } from "@zag-js/switch";
|
|
7
7
|
|
|
8
8
|
//#region src/components/switch/anatomy/root.tsx
|
|
9
|
-
function
|
|
9
|
+
function SwitchRoot(props) {
|
|
10
10
|
const [switchProps, componentProps] = splitProps(props);
|
|
11
11
|
const { element, children,...rest } = componentProps;
|
|
12
12
|
const switch_ = useSwitch(switchProps);
|
|
@@ -21,4 +21,5 @@ function root_default(props) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
//#endregion
|
|
24
|
-
export {
|
|
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"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as react64 from "react";
|
|
4
|
+
import * as react_jsx_runtime18 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/switch/anatomy/thumb.d.ts
|
|
7
7
|
interface SwitchThumbProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
|
|
8
|
-
declare function
|
|
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
9
|
//#endregion
|
|
10
|
-
export {
|
|
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"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { SwitchRootContext } from "../modules/root-context.js";
|
|
2
|
-
import { mergeProps } from "@zag-js/react";
|
|
3
2
|
import { classesSwitch } from "@skeletonlabs/skeleton-common";
|
|
4
|
-
import {
|
|
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/switch/anatomy/thumb.tsx
|
|
8
|
-
function
|
|
9
|
-
const switch_ =
|
|
8
|
+
function SwitchThumb(props) {
|
|
9
|
+
const switch_ = use(SwitchRootContext);
|
|
10
10
|
const { element, children,...rest } = props;
|
|
11
11
|
const attributes = mergeProps(switch_.getThumbProps(), rest, { className: classesSwitch.thumb });
|
|
12
12
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
@@ -16,4 +16,5 @@ function thumb_default(props) {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
//#endregion
|
|
19
|
-
export {
|
|
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"}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
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
7
|
|
|
8
8
|
//#region src/components/switch/modules/anatomy.d.ts
|
|
9
|
-
declare const Switch: typeof
|
|
10
|
-
Context: typeof
|
|
11
|
-
Control: typeof
|
|
12
|
-
Thumb: typeof
|
|
13
|
-
Label: typeof
|
|
14
|
-
HiddenInput: typeof
|
|
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
15
|
};
|
|
16
16
|
//#endregion
|
|
17
|
-
export { Switch };
|
|
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"}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
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
7
|
|
|
8
8
|
//#region src/components/switch/modules/anatomy.ts
|
|
9
|
-
const Switch = Object.assign(
|
|
10
|
-
Context:
|
|
11
|
-
Control:
|
|
12
|
-
Thumb:
|
|
13
|
-
Label:
|
|
14
|
-
HiddenInput:
|
|
9
|
+
const Switch = Object.assign(SwitchRoot, {
|
|
10
|
+
Context: SwitchRootContextComponent,
|
|
11
|
+
Control: SwitchControl,
|
|
12
|
+
Thumb: SwitchThumb,
|
|
13
|
+
Label: SwitchLabel,
|
|
14
|
+
HiddenInput: SwitchHiddenInput
|
|
15
15
|
});
|
|
16
16
|
|
|
17
17
|
//#endregion
|
|
18
|
-
export { Switch };
|
|
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"}
|
|
@@ -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"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as _zag_js_switch0 from "@zag-js/switch";
|
|
3
|
-
import { Props } from "@zag-js/switch";
|
|
1
|
+
import { Api, Props } from "@zag-js/switch";
|
|
4
2
|
|
|
5
3
|
//#region src/components/switch/modules/use-switch.d.ts
|
|
6
|
-
declare function useSwitch(props: Omit<Props, 'id'>):
|
|
4
|
+
declare function useSwitch(props: Omit<Props, 'id'>): Api;
|
|
7
5
|
//#endregion
|
|
8
|
-
export { useSwitch };
|
|
6
|
+
export { useSwitch };
|
|
7
|
+
//# sourceMappingURL=use-switch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-switch.d.ts","names":[],"sources":["../../../../src/components/switch/modules/use-switch.ts"],"sourcesContent":[],"mappings":";;;iBAIgB,SAAA,QAAiB,KAAK,eAAe"}
|
|
@@ -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,11 +1,12 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as react79 from "react";
|
|
4
|
+
import * as react_jsx_runtime23 from "react/jsx-runtime";
|
|
5
5
|
import { ContentProps } from "@zag-js/tabs";
|
|
6
6
|
|
|
7
7
|
//#region src/components/tabs/anatomy/content.d.ts
|
|
8
8
|
interface TabsContentProps extends ContentProps, PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
9
|
-
declare function
|
|
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;
|
|
10
10
|
//#endregion
|
|
11
|
-
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,13 +1,13 @@
|
|
|
1
1
|
import { TabsRootContext } from "../modules/root-context.js";
|
|
2
|
-
import { mergeProps } from "@zag-js/react";
|
|
3
2
|
import { classesTabs } from "@skeletonlabs/skeleton-common";
|
|
4
|
-
import {
|
|
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 tabs =
|
|
9
|
+
function TabsContent(props) {
|
|
10
|
+
const tabs = use(TabsRootContext);
|
|
11
11
|
const [contentProps, componentProps] = splitContentProps(props);
|
|
12
12
|
const { element, children,...rest } = componentProps;
|
|
13
13
|
const attributes = mergeProps(tabs.getContentProps(contentProps), rest, { className: classesTabs.content });
|
|
@@ -18,4 +18,5 @@ function content_default(props) {
|
|
|
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,10 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as react84 from "react";
|
|
4
|
+
import * as react_jsx_runtime24 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tabs/anatomy/indicator.d.ts
|
|
7
7
|
interface TabsIndicatorProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'children'> {}
|
|
8
|
-
declare function
|
|
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;
|
|
9
9
|
//#endregion
|
|
10
|
-
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 { mergeProps } from "@zag-js/react";
|
|
3
2
|
import { classesTabs } from "@skeletonlabs/skeleton-common";
|
|
4
|
-
import {
|
|
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 tabs =
|
|
8
|
+
function TabsIndicator(props) {
|
|
9
|
+
const tabs = use(TabsRootContext);
|
|
10
10
|
const { element,...rest } = props;
|
|
11
11
|
const attributes = mergeProps(tabs.getIndicatorProps(), rest, { className: classesTabs.indicator });
|
|
12
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,10 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as react89 from "react";
|
|
4
|
+
import * as react_jsx_runtime25 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tabs/anatomy/list.d.ts
|
|
7
7
|
interface TabsListProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir'> {}
|
|
8
|
-
declare function
|
|
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;
|
|
9
9
|
//#endregion
|
|
10
|
-
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,12 +1,12 @@
|
|
|
1
1
|
import { TabsRootContext } from "../modules/root-context.js";
|
|
2
|
-
import { mergeProps } from "@zag-js/react";
|
|
3
2
|
import { classesTabs } from "@skeletonlabs/skeleton-common";
|
|
4
|
-
import {
|
|
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 tabs =
|
|
8
|
+
function TabsList(props) {
|
|
9
|
+
const tabs = use(TabsRootContext);
|
|
10
10
|
const { element, children,...rest } = props;
|
|
11
11
|
const attributes = mergeProps(tabs.getListProps(), rest, { className: classesTabs.list });
|
|
12
12
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -16,4 +16,5 @@ function list_default(props) {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
//#endregion
|
|
19
|
-
export {
|
|
19
|
+
export { TabsList as default };
|
|
20
|
+
//# sourceMappingURL=list.js.map
|