@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":"list.js","names":[],"sources":["../../../../src/components/tabs/anatomy/list.tsx"],"sourcesContent":["import { classesTabs } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\n\nimport { TabsRootContext } from '../modules/root-context';\n\nexport interface TabsListProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir'> {}\n\nexport default function TabsList(props: TabsListProps) {\n\tconst tabs = use(TabsRootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(tabs.getListProps(), rest, {\n\t\tclassName: classesTabs.list,\n\t});\n\n\treturn element ? element(attributes) : <div {...attributes}>{children}</div>;\n}\n"],"mappings":";;;;;;;AAWA,SAAwB,SAAS,OAAsB;CACtD,MAAM,OAAO,IAAI,gBAAgB;CAEjC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,KAAK,cAAc,EAAE,MAAM,EACxD,WAAW,YAAY,MACvB,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAI,GAAI;EAAa;GAAe"}
|
|
@@ -5,6 +5,7 @@ import { ReactNode } from "react";
|
|
|
5
5
|
interface TabsRootContextProps {
|
|
6
6
|
children: (tabs: ReturnType<typeof useTabs>) => ReactNode;
|
|
7
7
|
}
|
|
8
|
-
declare function
|
|
8
|
+
declare function RootContext(props: TabsRootContextProps): ReactNode;
|
|
9
9
|
//#endregion
|
|
10
|
-
export {
|
|
10
|
+
export { RootContext, TabsRootContextProps };
|
|
11
|
+
//# sourceMappingURL=root-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-context.d.ts","names":[],"sources":["../../../../src/components/tabs/anatomy/root-context.tsx"],"sourcesContent":[],"mappings":";;;;UAKiB,oBAAA;mBACC,kBAAkB,aAAa;AADjD;AAAqC,iBAIb,WAAA,CAJa,KAAA,EAIM,oBAJN,CAAA,EAI0B,SAJ1B"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { TabsRootContext } from "../modules/root-context.js";
|
|
2
|
-
import {
|
|
2
|
+
import { use } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/tabs/anatomy/root-context.tsx
|
|
5
|
-
function
|
|
6
|
-
const tabs =
|
|
5
|
+
function RootContext(props) {
|
|
6
|
+
const tabs = use(TabsRootContext);
|
|
7
7
|
const { children } = props;
|
|
8
8
|
return children(tabs);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
//#endregion
|
|
12
|
-
export {
|
|
12
|
+
export { RootContext as default };
|
|
13
|
+
//# sourceMappingURL=root-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-context.js","names":[],"sources":["../../../../src/components/tabs/anatomy/root-context.tsx"],"sourcesContent":["import { type ReactNode, use } from 'react';\n\nimport { TabsRootContext } from '../modules/root-context';\nimport type { useTabs } from '../modules/use-tabs';\n\nexport interface TabsRootContextProps {\n\tchildren: (tabs: ReturnType<typeof useTabs>) => ReactNode;\n}\n\nexport default function RootContext(props: TabsRootContextProps) {\n\tconst tabs = use(TabsRootContext);\n\n\tconst { children } = props;\n\n\treturn children(tabs);\n}\n"],"mappings":";;;;AASA,SAAwB,YAAY,OAA6B;CAChE,MAAM,OAAO,IAAI,gBAAgB;CAEjC,MAAM,EAAE,aAAa;AAErB,QAAO,SAAS,KAAK"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
3
|
import { useTabs } from "../modules/use-tabs.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime27 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tabs/anatomy/root-provider.d.ts
|
|
7
7
|
interface TabsRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {
|
|
8
8
|
value: ReturnType<typeof useTabs>;
|
|
9
9
|
}
|
|
10
|
-
declare function
|
|
10
|
+
declare function TabsRootProvider(props: TabsRootProviderProps): react_jsx_runtime27.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
|
-
export {
|
|
12
|
+
export { TabsRootProvider, TabsRootProviderProps };
|
|
13
|
+
//# sourceMappingURL=root-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-provider.d.ts","names":[],"sources":["../../../../src/components/tabs/anatomy/root-provider.tsx"],"sourcesContent":[],"mappings":";;;;;;UASiB,qBAAA,SAA8B,yBAAyB;SAChE,kBAAkB;;AADT,iBAIO,gBAAA,CAJe,KAAA,EAIS,qBAJT,CAAA,EAI8B,mBAAA,CAAA,GAAA,CAAA,OAJ9B"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { TabsRootContext } from "../modules/root-context.js";
|
|
2
|
-
import { mergeProps } from "@zag-js/react";
|
|
3
2
|
import { classesTabs } from "@skeletonlabs/skeleton-common";
|
|
3
|
+
import { mergeProps } from "@zag-js/react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tabs/anatomy/root-provider.tsx
|
|
7
|
-
function
|
|
7
|
+
function TabsRootProvider(props) {
|
|
8
8
|
const { element, children, value: tabs,...rest } = props;
|
|
9
9
|
const attributes = mergeProps(tabs.getRootProps(), rest, { className: classesTabs.root });
|
|
10
10
|
return /* @__PURE__ */ jsx(TabsRootContext.Provider, {
|
|
@@ -17,4 +17,5 @@ function root_provider_default(props) {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
//#endregion
|
|
20
|
-
export {
|
|
20
|
+
export { TabsRootProvider as default };
|
|
21
|
+
//# sourceMappingURL=root-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-provider.js","names":[],"sources":["../../../../src/components/tabs/anatomy/root-provider.tsx"],"sourcesContent":["import { classesTabs } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\n\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\n\nimport { TabsRootContext } from '../modules/root-context';\nimport type { useTabs } from '../modules/use-tabs';\n\nexport interface TabsRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {\n\tvalue: ReturnType<typeof useTabs>;\n}\n\nexport default function TabsRootProvider(props: TabsRootProviderProps) {\n\tconst { element, children, value: tabs, ...rest } = props;\n\n\tconst attributes = mergeProps(tabs.getRootProps(), rest, {\n\t\tclassName: classesTabs.root,\n\t});\n\n\treturn (\n\t\t<TabsRootContext.Provider value={tabs}>\n\t\t\t{element ? element(attributes) : <div {...attributes}>{children}</div>}\n\t\t</TabsRootContext.Provider>\n\t);\n}\n"],"mappings":";;;;;;AAaA,SAAwB,iBAAiB,OAA8B;CACtE,MAAM,EAAE,SAAS,UAAU,OAAO,KAAM,GAAG,SAAS;CAEpD,MAAM,aAAa,WAAW,KAAK,cAAc,EAAE,MAAM,EACxD,WAAW,YAAY,MACvB,CAAC;AAEF,QACC,oBAAC,gBAAgB;EAAS,OAAO;YAC/B,UAAU,QAAQ,WAAW,GAAG,oBAAC;GAAI,GAAI;GAAa;IAAe;GAC5C"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
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_runtime26 from "react/jsx-runtime";
|
|
4
4
|
import { Props } from "@zag-js/tabs";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tabs/anatomy/root.d.ts
|
|
7
7
|
interface TabsRootProps extends Omit<Props, 'id'>, PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {}
|
|
8
|
-
declare function
|
|
8
|
+
declare function TabsRoot(props: TabsRootProps): react_jsx_runtime26.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
|
-
export {
|
|
10
|
+
export { TabsRoot, TabsRootProps };
|
|
11
|
+
//# sourceMappingURL=root.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root.d.ts","names":[],"sources":["../../../../src/components/tabs/anatomy/root.tsx"],"sourcesContent":[],"mappings":";;;;;;UAUiB,aAAA,SAAsB,KAAK,cAAc,yBAAyB;iBAE3D,QAAA,QAAgB,gBAAa,mBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { TabsRootContext } from "../modules/root-context.js";
|
|
2
2
|
import { useTabs } from "../modules/use-tabs.js";
|
|
3
|
-
import { mergeProps } from "@zag-js/react";
|
|
4
3
|
import { classesTabs } 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/tabs";
|
|
7
7
|
|
|
8
8
|
//#region src/components/tabs/anatomy/root.tsx
|
|
9
|
-
function
|
|
9
|
+
function TabsRoot(props) {
|
|
10
10
|
const [tabsProps, componentProps] = splitProps(props);
|
|
11
11
|
const { element, children,...rest } = componentProps;
|
|
12
12
|
const tabs = useTabs(tabsProps);
|
|
@@ -21,4 +21,5 @@ function root_default(props) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
//#endregion
|
|
24
|
-
export {
|
|
24
|
+
export { TabsRoot as default };
|
|
25
|
+
//# sourceMappingURL=root.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root.js","names":[],"sources":["../../../../src/components/tabs/anatomy/root.tsx"],"sourcesContent":["import { classesTabs } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { type Props, splitProps } from '@zag-js/tabs';\n\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\n\nimport { TabsRootContext } from '../modules/root-context';\nimport { useTabs } from '../modules/use-tabs';\n\nexport interface TabsRootProps extends Omit<Props, 'id'>, PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {}\n\nexport default function TabsRoot(props: TabsRootProps) {\n\tconst [tabsProps, componentProps] = splitProps(props);\n\tconst { element, children, ...rest } = componentProps;\n\n\tconst tabs = useTabs(tabsProps);\n\n\tconst attributes = mergeProps(tabs.getRootProps(), rest, {\n\t\tclassName: classesTabs.root,\n\t});\n\n\treturn (\n\t\t<TabsRootContext.Provider value={tabs}>\n\t\t\t{element ? element(attributes) : <div {...attributes}>{children}</div>}\n\t\t</TabsRootContext.Provider>\n\t);\n}\n"],"mappings":";;;;;;;;AAYA,SAAwB,SAAS,OAAsB;CACtD,MAAM,CAAC,WAAW,kBAAkB,WAAW,MAAM;CACrD,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,OAAO,QAAQ,UAAU;CAE/B,MAAM,aAAa,WAAW,KAAK,cAAc,EAAE,MAAM,EACxD,WAAW,YAAY,MACvB,CAAC;AAEF,QACC,oBAAC,gBAAgB;EAAS,OAAO;YAC/B,UAAU,QAAQ,WAAW,GAAG,oBAAC;GAAI,GAAI;GAAa;IAAe;GAC5C"}
|
|
@@ -1,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 react94 from "react";
|
|
4
|
+
import * as react_jsx_runtime28 from "react/jsx-runtime";
|
|
5
5
|
import { TriggerProps } from "@zag-js/tabs";
|
|
6
6
|
|
|
7
7
|
//#region src/components/tabs/anatomy/trigger.d.ts
|
|
8
8
|
interface TabsTriggerProps extends TriggerProps, PropsWithElement<'button'>, HTMLAttributes<'button', 'value'> {}
|
|
9
|
-
declare function
|
|
9
|
+
declare function TabsTrigger(props: TabsTriggerProps): string | number | bigint | boolean | Iterable<react94.ReactNode> | Promise<string | number | bigint | boolean | react94.ReactPortal | react94.ReactElement<unknown, string | react94.JSXElementConstructor<any>> | Iterable<react94.ReactNode> | null | undefined> | react_jsx_runtime28.JSX.Element | null | undefined;
|
|
10
10
|
//#endregion
|
|
11
|
-
export {
|
|
11
|
+
export { TabsTrigger, TabsTriggerProps };
|
|
12
|
+
//# sourceMappingURL=trigger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trigger.d.ts","names":[],"sources":["../../../../src/components/tabs/anatomy/trigger.tsx"],"sourcesContent":[],"mappings":";;;;;;;UAUiB,gBAAA,SAAyB,cAAc,4BAA4B;iBAE5D,WAAA,QAAmB,wDAAgB,SAAA,OAAA,CAAA,SAAA,IAAA,6CAAA,OAAA,CAAA,WAAA,GAAA,OAAA,CAAA,+BAAA,OAAA,CAAA,8BAAA,SAAA,OAAA,CAAA,SAAA,wBAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,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 { splitTriggerProps } from "@zag-js/tabs";
|
|
7
7
|
|
|
8
8
|
//#region src/components/tabs/anatomy/trigger.tsx
|
|
9
|
-
function
|
|
10
|
-
const tabs =
|
|
9
|
+
function TabsTrigger(props) {
|
|
10
|
+
const tabs = use(TabsRootContext);
|
|
11
11
|
const [triggerProps, componentProps] = splitTriggerProps(props);
|
|
12
12
|
const { element, children,...rest } = componentProps;
|
|
13
13
|
const attributes = mergeProps(tabs.getTriggerProps(triggerProps), rest, { className: classesTabs.trigger });
|
|
@@ -18,4 +18,5 @@ function trigger_default(props) {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
//#endregion
|
|
21
|
-
export {
|
|
21
|
+
export { TabsTrigger as default };
|
|
22
|
+
//# sourceMappingURL=trigger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trigger.js","names":[],"sources":["../../../../src/components/tabs/anatomy/trigger.tsx"],"sourcesContent":["import { classesTabs } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { splitTriggerProps, type TriggerProps } from '@zag-js/tabs';\nimport { use } from 'react';\n\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\n\nimport { TabsRootContext } from '../modules/root-context';\n\nexport interface TabsTriggerProps extends TriggerProps, PropsWithElement<'button'>, HTMLAttributes<'button', 'value'> {}\n\nexport default function TabsTrigger(props: TabsTriggerProps) {\n\tconst tabs = use(TabsRootContext);\n\n\tconst [triggerProps, componentProps] = splitTriggerProps(props);\n\tconst { element, children, ...rest } = componentProps;\n\n\tconst attributes = mergeProps(tabs.getTriggerProps(triggerProps), rest, {\n\t\tclassName: classesTabs.trigger,\n\t});\n\n\treturn element ? element(attributes) : <button {...attributes}>{children}</button>;\n}\n"],"mappings":";;;;;;;;AAYA,SAAwB,YAAY,OAAyB;CAC5D,MAAM,OAAO,IAAI,gBAAgB;CAEjC,MAAM,CAAC,cAAc,kBAAkB,kBAAkB,MAAM;CAC/D,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,KAAK,gBAAgB,aAAa,EAAE,MAAM,EACvE,WAAW,YAAY,SACvB,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAO,GAAI;EAAa;GAAkB"}
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { TabsContent } from "../anatomy/content.js";
|
|
2
|
+
import { TabsIndicator } from "../anatomy/indicator.js";
|
|
3
|
+
import { TabsList } from "../anatomy/list.js";
|
|
4
|
+
import { TabsRoot } from "../anatomy/root.js";
|
|
5
|
+
import { RootContext } from "../anatomy/root-context.js";
|
|
6
|
+
import { TabsRootProvider } from "../anatomy/root-provider.js";
|
|
7
|
+
import { TabsTrigger } from "../anatomy/trigger.js";
|
|
8
8
|
|
|
9
9
|
//#region src/components/tabs/modules/anatomy.d.ts
|
|
10
|
-
declare const Tabs: typeof
|
|
11
|
-
Provider: typeof
|
|
12
|
-
Context: typeof
|
|
13
|
-
List: typeof
|
|
14
|
-
Trigger: typeof
|
|
15
|
-
Indicator: typeof
|
|
16
|
-
Content: typeof
|
|
10
|
+
declare const Tabs: typeof TabsRoot & {
|
|
11
|
+
Provider: typeof TabsRootProvider;
|
|
12
|
+
Context: typeof RootContext;
|
|
13
|
+
List: typeof TabsList;
|
|
14
|
+
Trigger: typeof TabsTrigger;
|
|
15
|
+
Indicator: typeof TabsIndicator;
|
|
16
|
+
Content: typeof TabsContent;
|
|
17
17
|
};
|
|
18
18
|
//#endregion
|
|
19
|
-
export { Tabs };
|
|
19
|
+
export { Tabs };
|
|
20
|
+
//# sourceMappingURL=anatomy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anatomy.d.ts","names":[],"sources":["../../../../src/components/tabs/modules/anatomy.ts"],"sourcesContent":[],"mappings":";;;;;;;;;cAQa,aAAI;;EAAJ,OAOX,EAAA,kBAAA;EAAA,IAAA,EAAA,eAAA;SAPe,EAAA,kBAAA"}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
1
|
+
import TabsContent from "../anatomy/content.js";
|
|
2
|
+
import TabsIndicator from "../anatomy/indicator.js";
|
|
3
|
+
import TabsList from "../anatomy/list.js";
|
|
4
|
+
import TabsRoot from "../anatomy/root.js";
|
|
5
|
+
import RootContext from "../anatomy/root-context.js";
|
|
6
|
+
import TabsRootProvider from "../anatomy/root-provider.js";
|
|
7
|
+
import TabsTrigger from "../anatomy/trigger.js";
|
|
8
8
|
|
|
9
9
|
//#region src/components/tabs/modules/anatomy.ts
|
|
10
|
-
const Tabs = Object.assign(
|
|
11
|
-
Provider:
|
|
12
|
-
Context:
|
|
13
|
-
List:
|
|
14
|
-
Trigger:
|
|
15
|
-
Indicator:
|
|
16
|
-
Content:
|
|
10
|
+
const Tabs = Object.assign(TabsRoot, {
|
|
11
|
+
Provider: TabsRootProvider,
|
|
12
|
+
Context: RootContext,
|
|
13
|
+
List: TabsList,
|
|
14
|
+
Trigger: TabsTrigger,
|
|
15
|
+
Indicator: TabsIndicator,
|
|
16
|
+
Content: TabsContent
|
|
17
17
|
});
|
|
18
18
|
|
|
19
19
|
//#endregion
|
|
20
|
-
export { Tabs };
|
|
20
|
+
export { Tabs };
|
|
21
|
+
//# sourceMappingURL=anatomy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anatomy.js","names":["Root","RootProvider","List","Trigger","Indicator","Content"],"sources":["../../../../src/components/tabs/modules/anatomy.ts"],"sourcesContent":["import Content from '../anatomy/content';\nimport Indicator from '../anatomy/indicator';\nimport List from '../anatomy/list';\nimport Root from '../anatomy/root';\nimport RootContext from '../anatomy/root-context';\nimport RootProvider from '../anatomy/root-provider';\nimport Trigger from '../anatomy/trigger';\n\nexport const Tabs = Object.assign(Root, {\n\tProvider: RootProvider,\n\tContext: RootContext,\n\tList: List,\n\tTrigger: Trigger,\n\tIndicator: Indicator,\n\tContent: Content,\n});\n"],"mappings":";;;;;;;;;AAQA,MAAa,OAAO,OAAO,OAAOA,UAAM;CACvC,UAAUC;CACV,SAAS;CACT,MAAMC;CACN,SAASC;CACT,WAAWC;CACX,SAASC;CACT,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-context.js","names":[],"sources":["../../../../src/components/tabs/modules/root-context.ts"],"sourcesContent":["import { createContext } from '@/internal/create-context';\n\nimport type { useTabs } from './use-tabs';\n\nexport const TabsRootContext = createContext<ReturnType<typeof useTabs>>();\n"],"mappings":";;;AAIA,MAAa,kBAAkB,eAA2C"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as _zag_js_tabs0 from "@zag-js/tabs";
|
|
3
|
-
import { Props } from "@zag-js/tabs";
|
|
1
|
+
import { Api, Props } from "@zag-js/tabs";
|
|
4
2
|
|
|
5
3
|
//#region src/components/tabs/modules/use-tabs.d.ts
|
|
6
|
-
declare function useTabs(props: Omit<Props, 'id'>):
|
|
4
|
+
declare function useTabs(props: Omit<Props, 'id'>): Api;
|
|
7
5
|
//#endregion
|
|
8
|
-
export { useTabs };
|
|
6
|
+
export { useTabs };
|
|
7
|
+
//# sourceMappingURL=use-tabs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-tabs.d.ts","names":[],"sources":["../../../../src/components/tabs/modules/use-tabs.ts"],"sourcesContent":[],"mappings":";;;iBAIgB,OAAA,QAAe,KAAK,eAAe"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-tabs.js","names":[],"sources":["../../../../src/components/tabs/modules/use-tabs.ts"],"sourcesContent":["import { normalizeProps, useMachine } from '@zag-js/react';\nimport { type Api, connect, machine, type Props } from '@zag-js/tabs';\nimport { useId } from 'react';\n\nexport function useTabs(props: Omit<Props, 'id'>): Api {\n\tconst service = useMachine(machine, {\n\t\tid: useId(),\n\t\t...props,\n\t});\n\treturn connect(service, normalizeProps);\n}\n"],"mappings":";;;;;AAIA,SAAgB,QAAQ,OAA+B;CACtD,MAAM,UAAU,WAAW,SAAS;EACnC,IAAI,OAAO;EACX,GAAG;EACH,CAAC;AACF,QAAO,QAAQ,SAAS,eAAe"}
|
|
@@ -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 react157 from "react";
|
|
4
|
+
import * as react_jsx_runtime49 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/toast/anatomy/action-trigger.d.ts
|
|
7
7
|
interface ToastActionTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
|
|
8
|
-
declare function
|
|
8
|
+
declare function ToastActionTrigger(props: ToastActionTriggerProps): string | number | bigint | boolean | Iterable<react157.ReactNode> | Promise<string | number | bigint | boolean | react157.ReactPortal | react157.ReactElement<unknown, string | react157.JSXElementConstructor<any>> | Iterable<react157.ReactNode> | null | undefined> | react_jsx_runtime49.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
|
-
export {
|
|
10
|
+
export { ToastActionTrigger };
|
|
11
|
+
//# sourceMappingURL=action-trigger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-trigger.d.ts","names":[],"sources":["../../../../src/components/toast/anatomy/action-trigger.tsx"],"sourcesContent":[],"mappings":";;;;;;UASiB,uBAAA,SAAgC,4BAA4B;iBAErD,kBAAA,QAA0B,+DAAuB,SAAA,QAAA,CAAA,SAAA,IAAA,6CAAA,QAAA,CAAA,WAAA,GAAA,QAAA,CAAA,+BAAA,QAAA,CAAA,8BAAA,SAAA,QAAA,CAAA,SAAA,wBAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ToastRootContext } from "../modules/root-context.js";
|
|
2
|
-
import { mergeProps } from "@zag-js/react";
|
|
3
2
|
import { classesToast } 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/toast/anatomy/action-trigger.tsx
|
|
8
|
-
function
|
|
9
|
-
const toast =
|
|
8
|
+
function ToastActionTrigger(props) {
|
|
9
|
+
const toast = use(ToastRootContext);
|
|
10
10
|
const { element, children,...rest } = props;
|
|
11
11
|
const attributes = mergeProps(toast.getActionTriggerProps(), rest, { className: classesToast.actionTrigger });
|
|
12
12
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
@@ -16,4 +16,5 @@ function action_trigger_default(props) {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
//#endregion
|
|
19
|
-
export {
|
|
19
|
+
export { ToastActionTrigger as default };
|
|
20
|
+
//# sourceMappingURL=action-trigger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-trigger.js","names":[],"sources":["../../../../src/components/toast/anatomy/action-trigger.tsx"],"sourcesContent":["import { classesToast } 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 { ToastRootContext } from '../modules/root-context.js';\n\nexport interface ToastActionTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}\n\nexport default function ToastActionTrigger(props: ToastActionTriggerProps) {\n\tconst toast = use(ToastRootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(toast.getActionTriggerProps(), rest, {\n\t\tclassName: classesToast.actionTrigger,\n\t});\n\n\treturn element ? element(attributes) : <button {...attributes}>{children}</button>;\n}\n"],"mappings":";;;;;;;AAWA,SAAwB,mBAAmB,OAAgC;CAC1E,MAAM,QAAQ,IAAI,iBAAiB;CAEnC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,MAAM,uBAAuB,EAAE,MAAM,EAClE,WAAW,aAAa,eACxB,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAO,GAAI;EAAa;GAAkB"}
|
|
@@ -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 react137 from "react";
|
|
4
|
+
import * as react_jsx_runtime42 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/toast/anatomy/close-trigger.d.ts
|
|
7
7
|
interface ToastCloseTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
|
|
8
|
-
declare function
|
|
8
|
+
declare function ToastCloseTrigger(props: ToastCloseTriggerProps): string | number | bigint | boolean | Iterable<react137.ReactNode> | Promise<string | number | bigint | boolean | react137.ReactPortal | react137.ReactElement<unknown, string | react137.JSXElementConstructor<any>> | Iterable<react137.ReactNode> | null | undefined> | react_jsx_runtime42.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
|
-
export {
|
|
10
|
+
export { ToastCloseTrigger, ToastCloseTriggerProps };
|
|
11
|
+
//# sourceMappingURL=close-trigger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"close-trigger.d.ts","names":[],"sources":["../../../../src/components/toast/anatomy/close-trigger.tsx"],"sourcesContent":[],"mappings":";;;;;;UAUiB,sBAAA,SAA+B,4BAA4B;iBAEpD,iBAAA,QAAyB,8DAAsB,SAAA,QAAA,CAAA,SAAA,IAAA,6CAAA,QAAA,CAAA,WAAA,GAAA,QAAA,CAAA,+BAAA,QAAA,CAAA,8BAAA,SAAA,QAAA,CAAA,SAAA,wBAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ToastRootContext } from "../modules/root-context.js";
|
|
2
|
-
import
|
|
3
|
-
import { mergeProps } from "@zag-js/react";
|
|
2
|
+
import X from "../../../internal/components/x.js";
|
|
4
3
|
import { classesToast } from "@skeletonlabs/skeleton-common";
|
|
5
|
-
import {
|
|
4
|
+
import { mergeProps } from "@zag-js/react";
|
|
5
|
+
import { use } from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
|
|
8
8
|
//#region src/components/toast/anatomy/close-trigger.tsx
|
|
9
|
-
function
|
|
10
|
-
const toast =
|
|
11
|
-
const { element, children = /* @__PURE__ */ jsx(
|
|
9
|
+
function ToastCloseTrigger(props) {
|
|
10
|
+
const toast = use(ToastRootContext);
|
|
11
|
+
const { element, children = /* @__PURE__ */ jsx(X, {}),...rest } = props;
|
|
12
12
|
const attributes = mergeProps(toast.getCloseTriggerProps(), rest, { className: classesToast.closeTrigger });
|
|
13
13
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
14
14
|
...attributes,
|
|
@@ -17,4 +17,5 @@ function close_trigger_default(props) {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
//#endregion
|
|
20
|
-
export {
|
|
20
|
+
export { ToastCloseTrigger as default };
|
|
21
|
+
//# sourceMappingURL=close-trigger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"close-trigger.js","names":[],"sources":["../../../../src/components/toast/anatomy/close-trigger.tsx"],"sourcesContent":["import { classesToast } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nimport X from '@/internal/components/x';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\n\nimport { ToastRootContext } from '../modules/root-context.js';\n\nexport interface ToastCloseTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}\n\nexport default function ToastCloseTrigger(props: ToastCloseTriggerProps) {\n\tconst toast = use(ToastRootContext);\n\n\tconst { element, children = <X />, ...rest } = props;\n\n\tconst attributes = mergeProps(toast.getCloseTriggerProps(), rest, {\n\t\tclassName: classesToast.closeTrigger,\n\t});\n\n\treturn element ? element(attributes) : <button {...attributes}>{children}</button>;\n}\n"],"mappings":";;;;;;;;AAYA,SAAwB,kBAAkB,OAA+B;CACxE,MAAM,QAAQ,IAAI,iBAAiB;CAEnC,MAAM,EAAE,SAAS,WAAW,oBAAC,MAAI,CAAE,GAAG,SAAS;CAE/C,MAAM,aAAa,WAAW,MAAM,sBAAsB,EAAE,MAAM,EACjE,WAAW,aAAa,cACxB,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAO,GAAI;EAAa;GAAkB"}
|
|
@@ -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 react142 from "react";
|
|
4
|
+
import * as react_jsx_runtime43 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/toast/anatomy/description.d.ts
|
|
7
7
|
interface ToastDescriptionProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
8
|
-
declare function
|
|
8
|
+
declare function ToastDescription(props: ToastDescriptionProps): string | number | bigint | boolean | Iterable<react142.ReactNode> | Promise<string | number | bigint | boolean | react142.ReactPortal | react142.ReactElement<unknown, string | react142.JSXElementConstructor<any>> | Iterable<react142.ReactNode> | null | undefined> | react_jsx_runtime43.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
|
-
export {
|
|
10
|
+
export { ToastDescription, ToastDescriptionProps };
|
|
11
|
+
//# sourceMappingURL=description.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"description.d.ts","names":[],"sources":["../../../../src/components/toast/anatomy/description.tsx"],"sourcesContent":[],"mappings":";;;;;;UASiB,qBAAA,SAA8B,yBAAyB;iBAEhD,gBAAA,QAAwB,6DAAqB,SAAA,QAAA,CAAA,SAAA,IAAA,6CAAA,QAAA,CAAA,WAAA,GAAA,QAAA,CAAA,+BAAA,QAAA,CAAA,8BAAA,SAAA,QAAA,CAAA,SAAA,wBAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ToastRootContext } from "../modules/root-context.js";
|
|
2
|
-
import { mergeProps } from "@zag-js/react";
|
|
3
2
|
import { classesToast } 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/toast/anatomy/description.tsx
|
|
8
|
-
function
|
|
9
|
-
const toast =
|
|
8
|
+
function ToastDescription(props) {
|
|
9
|
+
const toast = use(ToastRootContext);
|
|
10
10
|
const { element, children,...rest } = props;
|
|
11
11
|
const attributes = mergeProps(toast.getDescriptionProps(), rest, { className: classesToast.description });
|
|
12
12
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -16,4 +16,5 @@ function description_default(props) {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
//#endregion
|
|
19
|
-
export {
|
|
19
|
+
export { ToastDescription as default };
|
|
20
|
+
//# sourceMappingURL=description.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"description.js","names":[],"sources":["../../../../src/components/toast/anatomy/description.tsx"],"sourcesContent":["import { classesToast } 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 { ToastRootContext } from '../modules/root-context';\n\nexport interface ToastDescriptionProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}\n\nexport default function ToastDescription(props: ToastDescriptionProps) {\n\tconst toast = use(ToastRootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(toast.getDescriptionProps(), rest, {\n\t\tclassName: classesToast.description,\n\t});\n\n\treturn element ? element(attributes) : <div {...attributes}>{children}</div>;\n}\n"],"mappings":";;;;;;;AAWA,SAAwB,iBAAiB,OAA8B;CACtE,MAAM,QAAQ,IAAI,iBAAiB;CAEnC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,MAAM,qBAAqB,EAAE,MAAM,EAChE,WAAW,aAAa,aACxB,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAI,GAAI;EAAa;GAAe"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
3
|
import { JSX } from "react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime44 from "react/jsx-runtime";
|
|
5
5
|
import { Props, Store } from "@zag-js/toast";
|
|
6
6
|
|
|
7
7
|
//#region src/components/toast/anatomy/group.d.ts
|
|
@@ -9,6 +9,7 @@ interface ToastGroupProps extends PropsWithElement<'div'>, HTMLAttributes<'div',
|
|
|
9
9
|
toaster: Store;
|
|
10
10
|
children?: (toast: Props) => JSX.Element | null;
|
|
11
11
|
}
|
|
12
|
-
declare function
|
|
12
|
+
declare function ToastGroup(props: ToastGroupProps): react_jsx_runtime44.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
|
-
export {
|
|
14
|
+
export { ToastGroup, ToastGroupProps };
|
|
15
|
+
//# sourceMappingURL=group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group.d.ts","names":[],"sources":["../../../../src/components/toast/anatomy/group.tsx"],"sourcesContent":[],"mappings":";;;;;;;UAWiB,eAAA,SAAwB,yBAAyB;WACxD;qBACU,UAAU,GAAA,CAAI;AAFlC;AAAiC,iBAKT,UAAA,CALS,KAAA,EAKS,eALT,CAAA,EAKwB,mBAAA,CAAA,GAAA,CAAA,OALxB"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ToastGroupContext } from "../modules/group-context.js";
|
|
2
|
-
import { mergeProps, normalizeProps, useMachine } from "@zag-js/react";
|
|
3
2
|
import { classesToast } from "@skeletonlabs/skeleton-common";
|
|
3
|
+
import { mergeProps, normalizeProps, useMachine } from "@zag-js/react";
|
|
4
4
|
import { useId } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { group } from "@zag-js/toast";
|
|
7
7
|
|
|
8
8
|
//#region src/components/toast/anatomy/group.tsx
|
|
9
|
-
function
|
|
9
|
+
function ToastGroup(props) {
|
|
10
10
|
const { element, children, toaster,...rest } = props;
|
|
11
11
|
const service = useMachine(group.machine, {
|
|
12
12
|
id: useId(),
|
|
@@ -24,4 +24,5 @@ function group_default(props) {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
//#endregion
|
|
27
|
-
export {
|
|
27
|
+
export { ToastGroup as default };
|
|
28
|
+
//# sourceMappingURL=group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group.js","names":[],"sources":["../../../../src/components/toast/anatomy/group.tsx"],"sourcesContent":["import { classesToast } from '@skeletonlabs/skeleton-common';\nimport { mergeProps, normalizeProps, useMachine } from '@zag-js/react';\nimport { group, type Props, type Store } from '@zag-js/toast';\nimport type { JSX } from 'react';\nimport { useId } from 'react';\n\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\n\nimport { ToastGroupContext } from '../modules/group-context';\n\nexport interface ToastGroupProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'children'> {\n\ttoaster: Store;\n\tchildren?: (toast: Props) => JSX.Element | null;\n}\n\nexport default function ToastGroup(props: ToastGroupProps) {\n\tconst { element, children, toaster, ...rest } = props;\n\n\tconst service = useMachine(group.machine, {\n\t\tid: useId(),\n\t\tstore: toaster,\n\t});\n\tconst api = group.connect(service, normalizeProps);\n\n\tconst attributes = mergeProps(api.getGroupProps(), rest, {\n\t\tclassName: classesToast.group,\n\t});\n\n\treturn (\n\t\t<ToastGroupContext.Provider value={service}>\n\t\t\t{element ? element(attributes) : <div {...attributes}>{api.getToasts().map((toast) => children?.(toast))}</div>}\n\t\t</ToastGroupContext.Provider>\n\t);\n}\n"],"mappings":";;;;;;;;AAgBA,SAAwB,WAAW,OAAwB;CAC1D,MAAM,EAAE,SAAS,UAAU,QAAS,GAAG,SAAS;CAEhD,MAAM,UAAU,WAAW,MAAM,SAAS;EACzC,IAAI,OAAO;EACX,OAAO;EACP,CAAC;CACF,MAAM,MAAM,MAAM,QAAQ,SAAS,eAAe;CAElD,MAAM,aAAa,WAAW,IAAI,eAAe,EAAE,MAAM,EACxD,WAAW,aAAa,OACxB,CAAC;AAEF,QACC,oBAAC,kBAAkB;EAAS,OAAO;YACjC,UAAU,QAAQ,WAAW,GAAG,oBAAC;GAAI,GAAI;aAAa,IAAI,WAAW,CAAC,KAAK,UAAU,WAAW,MAAM,CAAC;IAAO;GACnF"}
|
|
@@ -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 react147 from "react";
|
|
4
|
+
import * as react_jsx_runtime45 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/toast/anatomy/message.d.ts
|
|
7
7
|
interface ToastMessageProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
8
|
-
declare function
|
|
8
|
+
declare function ToastMessage(props: ToastMessageProps): string | number | bigint | boolean | Iterable<react147.ReactNode> | Promise<string | number | bigint | boolean | react147.ReactPortal | react147.ReactElement<unknown, string | react147.JSXElementConstructor<any>> | Iterable<react147.ReactNode> | null | undefined> | react_jsx_runtime45.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
|
-
export {
|
|
10
|
+
export { ToastMessage, ToastMessageProps };
|
|
11
|
+
//# sourceMappingURL=message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message.d.ts","names":[],"sources":["../../../../src/components/toast/anatomy/message.tsx"],"sourcesContent":[],"mappings":";;;;;;UAMiB,iBAAA,SAA0B,yBAAyB;iBAE5C,YAAA,QAAoB,yDAAiB,SAAA,QAAA,CAAA,SAAA,IAAA,6CAAA,QAAA,CAAA,WAAA,GAAA,QAAA,CAAA,+BAAA,QAAA,CAAA,8BAAA,SAAA,QAAA,CAAA,SAAA,wBAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { mergeProps } from "@zag-js/react";
|
|
2
1
|
import { classesToast } from "@skeletonlabs/skeleton-common";
|
|
2
|
+
import { mergeProps } from "@zag-js/react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/toast/anatomy/message.tsx
|
|
6
|
-
function
|
|
6
|
+
function ToastMessage(props) {
|
|
7
7
|
const { element, children,...rest } = props;
|
|
8
8
|
const attributes = mergeProps(rest, { className: classesToast.message });
|
|
9
9
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -13,4 +13,5 @@ function message_default(props) {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
//#endregion
|
|
16
|
-
export {
|
|
16
|
+
export { ToastMessage as default };
|
|
17
|
+
//# sourceMappingURL=message.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message.js","names":[],"sources":["../../../../src/components/toast/anatomy/message.tsx"],"sourcesContent":["import { classesToast } 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\nexport interface ToastMessageProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}\n\nexport default function ToastMessage(props: ToastMessageProps) {\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(rest, {\n\t\tclassName: classesToast.message,\n\t});\n\n\treturn element ? element(attributes) : <div {...attributes}>{children}</div>;\n}\n"],"mappings":";;;;;AAQA,SAAwB,aAAa,OAA0B;CAC9D,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,MAAM,EACnC,WAAW,aAAa,SACxB,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAI,GAAI;EAAa;GAAe"}
|
|
@@ -5,6 +5,7 @@ import { Api } from "@zag-js/toast";
|
|
|
5
5
|
interface ToastRootContextProps {
|
|
6
6
|
children: (toast: Api) => ReactNode;
|
|
7
7
|
}
|
|
8
|
-
declare function
|
|
8
|
+
declare function ToastRootContextComponent(props: ToastRootContextProps): ReactNode;
|
|
9
9
|
//#endregion
|
|
10
|
-
export {
|
|
10
|
+
export { ToastRootContextComponent, ToastRootContextProps };
|
|
11
|
+
//# sourceMappingURL=root-context.d.ts.map
|