@skeletonlabs/skeleton-react 4.0.0-next.24 → 4.0.0-next.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/anatomy/item-content.d.ts +2 -2
- package/dist/components/accordion/anatomy/item-content.d.ts.map +1 -1
- package/dist/components/accordion/anatomy/item-indicator.d.ts +2 -2
- package/dist/components/accordion/anatomy/item-indicator.d.ts.map +1 -1
- package/dist/components/accordion/anatomy/item-trigger.d.ts +2 -2
- package/dist/components/accordion/anatomy/item-trigger.d.ts.map +1 -1
- package/dist/components/accordion/anatomy/item.d.ts +2 -2
- package/dist/components/accordion/anatomy/item.d.ts.map +1 -1
- package/dist/components/accordion/anatomy/root-provider.d.ts +2 -2
- package/dist/components/accordion/anatomy/root-provider.d.ts.map +1 -1
- package/dist/components/accordion/anatomy/root.d.ts +2 -2
- package/dist/components/accordion/anatomy/root.d.ts.map +1 -1
- package/dist/components/app-bar/anatomy/headline.d.ts +2 -2
- package/dist/components/app-bar/anatomy/lead.d.ts +2 -2
- package/dist/components/app-bar/anatomy/root.d.ts +2 -2
- package/dist/components/app-bar/anatomy/toolbar.d.ts +2 -2
- package/dist/components/app-bar/anatomy/trail.d.ts +2 -2
- package/dist/components/avatar/anatomy/fallback.d.ts +2 -2
- package/dist/components/avatar/anatomy/fallback.d.ts.map +1 -1
- package/dist/components/avatar/anatomy/image.d.ts +2 -2
- package/dist/components/avatar/anatomy/image.d.ts.map +1 -1
- package/dist/components/avatar/anatomy/root-provider.d.ts +2 -2
- package/dist/components/avatar/anatomy/root-provider.d.ts.map +1 -1
- package/dist/components/avatar/anatomy/root.d.ts +2 -2
- package/dist/components/avatar/anatomy/root.d.ts.map +1 -1
- package/dist/components/combobox/anatomy/content.d.ts +2 -2
- package/dist/components/combobox/anatomy/content.d.ts.map +1 -1
- package/dist/components/combobox/anatomy/control.d.ts +2 -2
- package/dist/components/combobox/anatomy/input.d.ts +2 -2
- package/dist/components/combobox/anatomy/item-group-label.d.ts +2 -2
- package/dist/components/combobox/anatomy/item-group.d.ts +2 -2
- package/dist/components/combobox/anatomy/item-group.d.ts.map +1 -1
- package/dist/components/combobox/anatomy/item-indicator.d.ts +2 -2
- package/dist/components/combobox/anatomy/item-text.d.ts +2 -2
- package/dist/components/combobox/anatomy/item.d.ts +2 -2
- package/dist/components/combobox/anatomy/item.d.ts.map +1 -1
- package/dist/components/combobox/anatomy/label.d.ts +2 -2
- package/dist/components/combobox/anatomy/positioner.d.ts +2 -2
- package/dist/components/combobox/anatomy/root-provider.d.ts +2 -2
- package/dist/components/combobox/anatomy/root-provider.d.ts.map +1 -1
- package/dist/components/combobox/anatomy/root.d.ts +2 -2
- package/dist/components/combobox/anatomy/root.d.ts.map +1 -1
- package/dist/components/combobox/anatomy/trigger.d.ts +2 -2
- package/dist/components/date-picker/anatomy/content.d.ts +2 -2
- package/dist/components/date-picker/anatomy/content.d.ts.map +1 -1
- package/dist/components/date-picker/anatomy/control.d.ts +2 -2
- package/dist/components/date-picker/anatomy/control.d.ts.map +1 -1
- package/dist/components/date-picker/anatomy/input.d.ts +2 -2
- package/dist/components/date-picker/anatomy/input.d.ts.map +1 -1
- package/dist/components/date-picker/anatomy/label.d.ts +2 -2
- package/dist/components/date-picker/anatomy/label.d.ts.map +1 -1
- package/dist/components/date-picker/anatomy/month-select.d.ts +2 -2
- package/dist/components/date-picker/anatomy/month-select.d.ts.map +1 -1
- package/dist/components/date-picker/anatomy/next-trigger.d.ts +2 -2
- package/dist/components/date-picker/anatomy/next-trigger.d.ts.map +1 -1
- package/dist/components/date-picker/anatomy/positioner.d.ts +2 -2
- package/dist/components/date-picker/anatomy/positioner.d.ts.map +1 -1
- package/dist/components/date-picker/anatomy/preset-trigger.d.ts +3 -2
- package/dist/components/date-picker/anatomy/preset-trigger.d.ts.map +1 -1
- package/dist/components/date-picker/anatomy/preset-trigger.js +22 -0
- package/dist/components/date-picker/anatomy/preset-trigger.js.map +1 -0
- package/dist/components/date-picker/anatomy/prev-trigger.d.ts +2 -2
- package/dist/components/date-picker/anatomy/prev-trigger.d.ts.map +1 -1
- package/dist/components/date-picker/anatomy/range-text.d.ts +2 -2
- package/dist/components/date-picker/anatomy/range-text.d.ts.map +1 -1
- package/dist/components/date-picker/anatomy/root-provider.d.ts +2 -2
- package/dist/components/date-picker/anatomy/root-provider.d.ts.map +1 -1
- package/dist/components/date-picker/anatomy/root.d.ts +2 -2
- package/dist/components/date-picker/anatomy/root.d.ts.map +1 -1
- package/dist/components/date-picker/anatomy/table-body.d.ts +2 -2
- package/dist/components/date-picker/anatomy/table-body.d.ts.map +1 -1
- package/dist/components/date-picker/anatomy/table-cell-trigger.d.ts +2 -2
- package/dist/components/date-picker/anatomy/table-cell-trigger.d.ts.map +1 -1
- package/dist/components/date-picker/anatomy/table-cell.d.ts +2 -2
- package/dist/components/date-picker/anatomy/table-head.d.ts +2 -2
- package/dist/components/date-picker/anatomy/table-head.d.ts.map +1 -1
- package/dist/components/date-picker/anatomy/table-header.d.ts +2 -2
- package/dist/components/date-picker/anatomy/table-header.d.ts.map +1 -1
- package/dist/components/date-picker/anatomy/table-row.d.ts +2 -2
- package/dist/components/date-picker/anatomy/table-row.d.ts.map +1 -1
- package/dist/components/date-picker/anatomy/table.d.ts +2 -2
- package/dist/components/date-picker/anatomy/table.d.ts.map +1 -1
- package/dist/components/date-picker/anatomy/trigger.d.ts +2 -2
- package/dist/components/date-picker/anatomy/trigger.d.ts.map +1 -1
- package/dist/components/date-picker/anatomy/view-control.d.ts +2 -2
- package/dist/components/date-picker/anatomy/view-control.d.ts.map +1 -1
- package/dist/components/date-picker/anatomy/view-trigger.d.ts +2 -2
- package/dist/components/date-picker/anatomy/view-trigger.d.ts.map +1 -1
- package/dist/components/date-picker/anatomy/view.d.ts +2 -2
- package/dist/components/date-picker/anatomy/year-select.d.ts +2 -2
- package/dist/components/date-picker/anatomy/year-select.d.ts.map +1 -1
- package/dist/components/date-picker/modules/anatomy.d.ts +2 -0
- package/dist/components/date-picker/modules/anatomy.d.ts.map +1 -1
- package/dist/components/date-picker/modules/anatomy.js +2 -0
- package/dist/components/date-picker/modules/anatomy.js.map +1 -1
- package/dist/components/dialog/anatomy/backdrop.d.ts +2 -2
- package/dist/components/dialog/anatomy/backdrop.d.ts.map +1 -1
- package/dist/components/dialog/anatomy/close-trigger.d.ts +2 -2
- package/dist/components/dialog/anatomy/close-trigger.d.ts.map +1 -1
- package/dist/components/dialog/anatomy/content.d.ts +2 -2
- package/dist/components/dialog/anatomy/content.d.ts.map +1 -1
- package/dist/components/dialog/anatomy/description.d.ts +2 -2
- package/dist/components/dialog/anatomy/description.d.ts.map +1 -1
- package/dist/components/dialog/anatomy/positioner.d.ts +2 -2
- package/dist/components/dialog/anatomy/positioner.d.ts.map +1 -1
- package/dist/components/dialog/anatomy/root-provider.d.ts +2 -2
- package/dist/components/dialog/anatomy/root-provider.d.ts.map +1 -1
- package/dist/components/dialog/anatomy/root.d.ts +2 -2
- package/dist/components/dialog/anatomy/root.d.ts.map +1 -1
- package/dist/components/dialog/anatomy/title.d.ts +2 -2
- package/dist/components/dialog/anatomy/title.d.ts.map +1 -1
- package/dist/components/dialog/anatomy/trigger.d.ts +2 -2
- package/dist/components/file-upload/anatomy/dropzone.d.ts +2 -2
- package/dist/components/file-upload/anatomy/hidden-input.d.ts +2 -2
- package/dist/components/file-upload/anatomy/item-delete-trigger.d.ts +2 -2
- package/dist/components/file-upload/anatomy/item-group.d.ts +2 -2
- package/dist/components/file-upload/anatomy/item-name.d.ts +2 -2
- package/dist/components/file-upload/anatomy/item-size-text.d.ts +2 -2
- package/dist/components/file-upload/anatomy/item.d.ts +2 -2
- package/dist/components/file-upload/anatomy/item.d.ts.map +1 -1
- package/dist/components/file-upload/anatomy/label.d.ts +2 -2
- package/dist/components/file-upload/anatomy/root-provider.d.ts +2 -2
- package/dist/components/file-upload/anatomy/root-provider.d.ts.map +1 -1
- package/dist/components/file-upload/anatomy/root.d.ts +2 -2
- package/dist/components/file-upload/anatomy/root.d.ts.map +1 -1
- package/dist/components/file-upload/anatomy/trigger.d.ts +2 -2
- package/dist/components/listbox/anatomy/content.d.ts +10 -0
- package/dist/components/listbox/anatomy/content.d.ts.map +1 -0
- package/dist/components/listbox/anatomy/content.js +20 -0
- package/dist/components/listbox/anatomy/content.js.map +1 -0
- package/dist/components/listbox/anatomy/input.d.ts +10 -0
- package/dist/components/listbox/anatomy/input.d.ts.map +1 -0
- package/dist/components/listbox/anatomy/input.js +17 -0
- package/dist/components/listbox/anatomy/input.js.map +1 -0
- package/dist/components/listbox/anatomy/item-group-label.d.ts +11 -0
- package/dist/components/listbox/anatomy/item-group-label.d.ts.map +1 -0
- package/dist/components/listbox/anatomy/item-group-label.js +27 -0
- package/dist/components/listbox/anatomy/item-group-label.js.map +1 -0
- package/dist/components/listbox/anatomy/item-group.d.ts +11 -0
- package/dist/components/listbox/anatomy/item-group.d.ts.map +1 -0
- package/dist/components/listbox/anatomy/item-group.js +29 -0
- package/dist/components/listbox/anatomy/item-group.js.map +1 -0
- package/dist/components/listbox/anatomy/item-indicator.d.ts +10 -0
- package/dist/components/listbox/anatomy/item-indicator.d.ts.map +1 -0
- package/dist/components/listbox/anatomy/item-indicator.js +23 -0
- package/dist/components/listbox/anatomy/item-indicator.js.map +1 -0
- package/dist/components/listbox/anatomy/item-text.d.ts +10 -0
- package/dist/components/listbox/anatomy/item-text.d.ts.map +1 -0
- package/dist/components/listbox/anatomy/item-text.js +22 -0
- package/dist/components/listbox/anatomy/item-text.js.map +1 -0
- package/dist/components/listbox/anatomy/item.d.ts +11 -0
- package/dist/components/listbox/anatomy/item.d.ts.map +1 -0
- package/dist/components/listbox/anatomy/item.js +26 -0
- package/dist/components/listbox/anatomy/item.js.map +1 -0
- package/dist/components/listbox/anatomy/label.d.ts +10 -0
- package/dist/components/listbox/anatomy/label.d.ts.map +1 -0
- package/dist/components/listbox/anatomy/label.js +20 -0
- package/dist/components/listbox/anatomy/label.js.map +1 -0
- package/dist/components/listbox/anatomy/root-context.d.ts +11 -0
- package/dist/components/listbox/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/listbox/anatomy/root-context.js +13 -0
- package/dist/components/listbox/anatomy/root-context.js.map +1 -0
- package/dist/components/listbox/anatomy/root-provider.d.ts +13 -0
- package/dist/components/listbox/anatomy/root-provider.d.ts.map +1 -0
- package/dist/components/listbox/anatomy/root-provider.js +21 -0
- package/dist/components/listbox/anatomy/root-provider.js.map +1 -0
- package/dist/components/listbox/anatomy/root.d.ts +11 -0
- package/dist/components/listbox/anatomy/root.d.ts.map +1 -0
- package/dist/components/listbox/anatomy/root.js +25 -0
- package/dist/components/listbox/anatomy/root.js.map +1 -0
- package/dist/components/listbox/modules/anatomy.d.ts +28 -0
- package/dist/components/listbox/modules/anatomy.d.ts.map +1 -0
- package/dist/components/listbox/modules/anatomy.js +29 -0
- package/dist/components/listbox/modules/anatomy.js.map +1 -0
- package/dist/components/listbox/modules/item-context.js +8 -0
- package/dist/components/listbox/modules/item-context.js.map +1 -0
- package/dist/components/listbox/modules/item-group-context.js +8 -0
- package/dist/components/listbox/modules/item-group-context.js.map +1 -0
- package/dist/components/listbox/modules/provider.d.ts +8 -0
- package/dist/components/listbox/modules/provider.d.ts.map +1 -0
- package/dist/components/listbox/modules/provider.js +16 -0
- package/dist/components/listbox/modules/provider.js.map +1 -0
- package/dist/components/listbox/modules/root-context.js +8 -0
- package/dist/components/listbox/modules/root-context.js.map +1 -0
- package/dist/components/navigation/anatomy/content.d.ts +2 -2
- package/dist/components/navigation/anatomy/footer.d.ts +2 -2
- package/dist/components/navigation/anatomy/group.d.ts +2 -2
- package/dist/components/navigation/anatomy/header.d.ts +2 -2
- package/dist/components/navigation/anatomy/label.d.ts +2 -2
- package/dist/components/navigation/anatomy/menu.d.ts +2 -2
- package/dist/components/navigation/anatomy/root.d.ts +2 -2
- package/dist/components/navigation/anatomy/root.d.ts.map +1 -1
- package/dist/components/pagination/anatomy/ellipsis.d.ts +2 -2
- package/dist/components/pagination/anatomy/item.d.ts +2 -2
- package/dist/components/pagination/anatomy/next-trigger.d.ts +2 -2
- package/dist/components/pagination/anatomy/prev-trigger.d.ts +2 -2
- package/dist/components/pagination/anatomy/root-provider.d.ts +2 -2
- package/dist/components/pagination/anatomy/root-provider.d.ts.map +1 -1
- package/dist/components/pagination/anatomy/root.d.ts +2 -2
- package/dist/components/pagination/anatomy/root.d.ts.map +1 -1
- package/dist/components/popover/anatomy/arrow-tip.d.ts +3 -3
- package/dist/components/popover/anatomy/arrow.d.ts +3 -3
- package/dist/components/popover/anatomy/close-trigger.d.ts +2 -2
- package/dist/components/popover/anatomy/content.d.ts +2 -2
- package/dist/components/popover/anatomy/description.d.ts +2 -2
- package/dist/components/popover/anatomy/positioner.d.ts +2 -2
- package/dist/components/popover/anatomy/root-provider.d.ts +2 -2
- package/dist/components/popover/anatomy/root-provider.d.ts.map +1 -1
- package/dist/components/popover/anatomy/root.d.ts +2 -2
- package/dist/components/popover/anatomy/root.d.ts.map +1 -1
- package/dist/components/popover/anatomy/title.d.ts +2 -2
- package/dist/components/popover/anatomy/trigger.d.ts +2 -2
- package/dist/components/popover/modules/anatomy.d.ts +1 -1
- package/dist/components/portal/anatomy/root.d.ts +2 -2
- package/dist/components/portal/anatomy/root.d.ts.map +1 -1
- package/dist/components/progress/anatomy/circle-range.d.ts +2 -2
- package/dist/components/progress/anatomy/circle-track.d.ts +2 -2
- package/dist/components/progress/anatomy/circle.d.ts +2 -2
- package/dist/components/progress/anatomy/label.d.ts +2 -2
- package/dist/components/progress/anatomy/range.d.ts +2 -2
- package/dist/components/progress/anatomy/root-provider.d.ts +2 -2
- package/dist/components/progress/anatomy/root.d.ts +2 -2
- package/dist/components/progress/anatomy/track.d.ts +2 -2
- package/dist/components/progress/anatomy/value-text.d.ts +2 -2
- package/dist/components/rating-group/anatomy/control.d.ts +2 -2
- package/dist/components/rating-group/anatomy/hidden-input.d.ts +2 -2
- package/dist/components/rating-group/anatomy/item.d.ts +2 -2
- package/dist/components/rating-group/anatomy/label.d.ts +2 -2
- package/dist/components/rating-group/anatomy/root-provider.d.ts +2 -2
- package/dist/components/rating-group/anatomy/root.d.ts +2 -2
- package/dist/components/segmented-control/anatomy/control.d.ts +2 -2
- package/dist/components/segmented-control/anatomy/indicator.d.ts +2 -2
- package/dist/components/segmented-control/anatomy/item-hidden-input.d.ts +2 -2
- package/dist/components/segmented-control/anatomy/item-text.d.ts +2 -2
- package/dist/components/segmented-control/anatomy/item.d.ts +2 -2
- package/dist/components/segmented-control/anatomy/label.d.ts +2 -2
- package/dist/components/segmented-control/anatomy/root-provider.d.ts +2 -2
- package/dist/components/segmented-control/anatomy/root.d.ts +2 -2
- package/dist/components/slider/anatomy/control.d.ts +2 -2
- package/dist/components/slider/anatomy/hidden-input.d.ts +2 -2
- package/dist/components/slider/anatomy/label.d.ts +2 -2
- package/dist/components/slider/anatomy/marker-group.d.ts +2 -2
- package/dist/components/slider/anatomy/marker-group.d.ts.map +1 -1
- package/dist/components/slider/anatomy/marker.d.ts +2 -2
- package/dist/components/slider/anatomy/range.d.ts +2 -2
- package/dist/components/slider/anatomy/root-provider.d.ts +2 -2
- package/dist/components/slider/anatomy/root.d.ts +2 -2
- package/dist/components/slider/anatomy/thumb.d.ts +2 -2
- package/dist/components/slider/anatomy/track.d.ts +2 -2
- package/dist/components/slider/anatomy/value-text.d.ts +2 -2
- package/dist/components/switch/anatomy/control.d.ts +2 -2
- package/dist/components/switch/anatomy/control.d.ts.map +1 -1
- package/dist/components/switch/anatomy/hidden-input.d.ts +2 -2
- package/dist/components/switch/anatomy/hidden-input.d.ts.map +1 -1
- package/dist/components/switch/anatomy/label.d.ts +2 -2
- package/dist/components/switch/anatomy/label.d.ts.map +1 -1
- package/dist/components/switch/anatomy/root-provider.d.ts +2 -2
- package/dist/components/switch/anatomy/root.d.ts +3 -3
- package/dist/components/switch/anatomy/thumb.d.ts +2 -2
- package/dist/components/switch/anatomy/thumb.d.ts.map +1 -1
- package/dist/components/tabs/anatomy/content.d.ts +2 -2
- package/dist/components/tabs/anatomy/content.d.ts.map +1 -1
- package/dist/components/tabs/anatomy/indicator.d.ts +2 -2
- package/dist/components/tabs/anatomy/indicator.d.ts.map +1 -1
- package/dist/components/tabs/anatomy/list.d.ts +2 -2
- package/dist/components/tabs/anatomy/list.d.ts.map +1 -1
- package/dist/components/tabs/anatomy/root-provider.d.ts +2 -2
- package/dist/components/tabs/anatomy/root.d.ts +2 -2
- package/dist/components/tabs/anatomy/trigger.d.ts +2 -2
- package/dist/components/tabs/anatomy/trigger.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/clear-trigger.d.ts +2 -2
- package/dist/components/tags-input/anatomy/clear-trigger.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/control.d.ts +2 -2
- package/dist/components/tags-input/anatomy/control.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/hidden-input.d.ts +2 -2
- package/dist/components/tags-input/anatomy/hidden-input.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/input.d.ts +2 -2
- package/dist/components/tags-input/anatomy/input.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/item-delete-trigger.d.ts +2 -2
- package/dist/components/tags-input/anatomy/item-delete-trigger.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/item-input.d.ts +2 -2
- package/dist/components/tags-input/anatomy/item-input.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/item-preview.d.ts +2 -2
- package/dist/components/tags-input/anatomy/item-preview.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/item-text.d.ts +2 -2
- package/dist/components/tags-input/anatomy/item-text.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/item.d.ts +2 -2
- package/dist/components/tags-input/anatomy/label.d.ts +2 -2
- package/dist/components/tags-input/anatomy/label.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/root-provider.d.ts +2 -2
- package/dist/components/tags-input/anatomy/root.d.ts +2 -2
- package/dist/components/toast/anatomy/action-trigger.d.ts +3 -3
- package/dist/components/toast/anatomy/action-trigger.d.ts.map +1 -1
- package/dist/components/toast/anatomy/close-trigger.d.ts +2 -2
- package/dist/components/toast/anatomy/close-trigger.d.ts.map +1 -1
- package/dist/components/toast/anatomy/description.d.ts +2 -2
- package/dist/components/toast/anatomy/description.d.ts.map +1 -1
- package/dist/components/toast/anatomy/group.d.ts +2 -2
- package/dist/components/toast/anatomy/message.d.ts +2 -2
- package/dist/components/toast/anatomy/message.d.ts.map +1 -1
- package/dist/components/toast/anatomy/root.d.ts +2 -2
- package/dist/components/toast/anatomy/title.d.ts +2 -2
- package/dist/components/toast/anatomy/title.d.ts.map +1 -1
- package/dist/components/toast/index.d.ts +1 -0
- package/dist/components/tooltip/anatomy/arrow-tip.d.ts +2 -2
- package/dist/components/tooltip/anatomy/arrow-tip.d.ts.map +1 -1
- package/dist/components/tooltip/anatomy/arrow.d.ts +2 -2
- package/dist/components/tooltip/anatomy/arrow.d.ts.map +1 -1
- package/dist/components/tooltip/anatomy/content.d.ts +2 -2
- package/dist/components/tooltip/anatomy/content.d.ts.map +1 -1
- package/dist/components/tooltip/anatomy/positioner.d.ts +2 -2
- package/dist/components/tooltip/anatomy/root-provider.d.ts +2 -2
- package/dist/components/tooltip/anatomy/root.d.ts +2 -2
- package/dist/components/tooltip/anatomy/trigger.d.ts +2 -2
- package/dist/components/tooltip/anatomy/trigger.d.ts.map +1 -1
- package/dist/components/tree-view/anatomy/branch-content.d.ts +10 -0
- package/dist/components/tree-view/anatomy/branch-content.d.ts.map +1 -0
- package/dist/components/tree-view/anatomy/branch-content.js +22 -0
- package/dist/components/tree-view/anatomy/branch-content.js.map +1 -0
- package/dist/components/tree-view/anatomy/branch-control.d.ts +10 -0
- package/dist/components/tree-view/anatomy/branch-control.d.ts.map +1 -0
- package/dist/components/tree-view/anatomy/branch-control.js +22 -0
- package/dist/components/tree-view/anatomy/branch-control.js.map +1 -0
- package/dist/components/tree-view/anatomy/branch-indent-guide.d.ts +10 -0
- package/dist/components/tree-view/anatomy/branch-indent-guide.d.ts.map +1 -0
- package/dist/components/tree-view/anatomy/branch-indent-guide.js +22 -0
- package/dist/components/tree-view/anatomy/branch-indent-guide.js.map +1 -0
- package/dist/components/tree-view/anatomy/branch-indicator.d.ts +10 -0
- package/dist/components/tree-view/anatomy/branch-indicator.d.ts.map +1 -0
- package/dist/components/tree-view/anatomy/branch-indicator.js +23 -0
- package/dist/components/tree-view/anatomy/branch-indicator.js.map +1 -0
- package/dist/components/tree-view/anatomy/branch-text.d.ts +10 -0
- package/dist/components/tree-view/anatomy/branch-text.d.ts.map +1 -0
- package/dist/components/tree-view/anatomy/branch-text.js +22 -0
- package/dist/components/tree-view/anatomy/branch-text.js.map +1 -0
- package/dist/components/tree-view/anatomy/branch.d.ts +10 -0
- package/dist/components/tree-view/anatomy/branch.d.ts.map +1 -0
- package/dist/components/tree-view/anatomy/branch.js +22 -0
- package/dist/components/tree-view/anatomy/branch.js.map +1 -0
- package/dist/components/tree-view/anatomy/item.d.ts +10 -0
- package/dist/components/tree-view/anatomy/item.d.ts.map +1 -0
- package/dist/components/tree-view/anatomy/item.js +22 -0
- package/dist/components/tree-view/anatomy/item.js.map +1 -0
- package/dist/components/tree-view/anatomy/label.d.ts +17 -0
- package/dist/components/tree-view/anatomy/label.d.ts.map +1 -0
- package/dist/components/tree-view/anatomy/label.js +21 -0
- package/dist/components/tree-view/anatomy/label.js.map +1 -0
- package/dist/components/tree-view/anatomy/node-provider.d.ts +12 -0
- package/dist/components/tree-view/anatomy/node-provider.d.ts.map +1 -0
- package/dist/components/tree-view/anatomy/node-provider.js +15 -0
- package/dist/components/tree-view/anatomy/node-provider.js.map +1 -0
- package/dist/components/tree-view/anatomy/root-context.d.ts +11 -0
- package/dist/components/tree-view/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/tree-view/anatomy/root-context.js +13 -0
- package/dist/components/tree-view/anatomy/root-context.js.map +1 -0
- package/dist/components/tree-view/anatomy/root-provider.d.ts +13 -0
- package/dist/components/tree-view/anatomy/root-provider.d.ts.map +1 -0
- package/dist/components/tree-view/anatomy/root-provider.js +21 -0
- package/dist/components/tree-view/anatomy/root-provider.js.map +1 -0
- package/dist/components/tree-view/anatomy/root.d.ts +11 -0
- package/dist/components/tree-view/anatomy/root.d.ts.map +1 -0
- package/dist/components/tree-view/anatomy/root.js +25 -0
- package/dist/components/tree-view/anatomy/root.js.map +1 -0
- package/dist/components/tree-view/anatomy/tree.d.ts +10 -0
- package/dist/components/tree-view/anatomy/tree.d.ts.map +1 -0
- package/dist/components/tree-view/anatomy/tree.js +20 -0
- package/dist/components/tree-view/anatomy/tree.js.map +1 -0
- package/dist/components/tree-view/modules/anatomy.d.ts +32 -0
- package/dist/components/tree-view/modules/anatomy.d.ts.map +1 -0
- package/dist/components/tree-view/modules/anatomy.js +33 -0
- package/dist/components/tree-view/modules/anatomy.js.map +1 -0
- package/dist/components/tree-view/modules/create-tree-view-collection.d.ts +8 -0
- package/dist/components/tree-view/modules/create-tree-view-collection.d.ts.map +1 -0
- package/dist/components/tree-view/modules/create-tree-view-collection.js +10 -0
- package/dist/components/tree-view/modules/create-tree-view-collection.js.map +1 -0
- package/dist/components/tree-view/modules/node-context.js +8 -0
- package/dist/components/tree-view/modules/node-context.js.map +1 -0
- package/dist/components/tree-view/modules/provider.d.ts +8 -0
- package/dist/components/tree-view/modules/provider.d.ts.map +1 -0
- package/dist/components/tree-view/modules/provider.js +16 -0
- package/dist/components/tree-view/modules/provider.js.map +1 -0
- package/dist/components/tree-view/modules/root-context.js +8 -0
- package/dist/components/tree-view/modules/root-context.js.map +1 -0
- package/dist/index.d.ts +34 -1
- package/dist/index.js +6 -1
- package/package.json +10 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arrow.d.ts","names":[],"sources":["../../../../src/components/tooltip/anatomy/arrow.tsx"],"sourcesContent":[],"mappings":";;;;;UAOiB,iBAAA,SAA0B,yBAAyB;iBAE5C,KAAA,QAAa,oBAAiB,
|
|
1
|
+
{"version":3,"file":"arrow.d.ts","names":[],"sources":["../../../../src/components/tooltip/anatomy/arrow.tsx"],"sourcesContent":[],"mappings":";;;;;UAOiB,iBAAA,SAA0B,yBAAyB;iBAE5C,KAAA,QAAa,oBAAiB,QAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
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 react125 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tooltip/anatomy/content.d.ts
|
|
6
6
|
interface TooltipContentProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
-
declare function Content(props: TooltipContentProps):
|
|
7
|
+
declare function Content(props: TooltipContentProps): react125.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Content, TooltipContentProps };
|
|
10
10
|
//# sourceMappingURL=content.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.d.ts","names":[],"sources":["../../../../src/components/tooltip/anatomy/content.tsx"],"sourcesContent":[],"mappings":";;;;;UAOiB,mBAAA,SAA4B,yBAAyB;iBAE9C,OAAA,QAAe,sBAAmB,
|
|
1
|
+
{"version":3,"file":"content.d.ts","names":[],"sources":["../../../../src/components/tooltip/anatomy/content.tsx"],"sourcesContent":[],"mappings":";;;;;UAOiB,mBAAA,SAA4B,yBAAyB;iBAE9C,OAAA,QAAe,sBAAmB,QAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
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_runtime46 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tooltip/anatomy/positioner.d.ts
|
|
6
6
|
interface TooltipPositionerProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
-
declare function Positioner(props: TooltipPositionerProps):
|
|
7
|
+
declare function Positioner(props: TooltipPositionerProps): react_jsx_runtime46.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Positioner, TooltipPositionerProps };
|
|
10
10
|
//# sourceMappingURL=positioner.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { useTooltip } from "../modules/provider.js";
|
|
2
2
|
import { PropsWithChildren } from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime48 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tooltip/anatomy/root-provider.d.ts
|
|
6
6
|
interface TooltipRootProviderProps extends PropsWithChildren {
|
|
7
7
|
value: ReturnType<typeof useTooltip>;
|
|
8
8
|
}
|
|
9
|
-
declare function RootProvider(props: TooltipRootProviderProps):
|
|
9
|
+
declare function RootProvider(props: TooltipRootProviderProps): react_jsx_runtime48.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { RootProvider, TooltipRootProviderProps };
|
|
12
12
|
//# sourceMappingURL=root-provider.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { PropsWithChildren } from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime47 from "react/jsx-runtime";
|
|
3
3
|
import { Props } from "@zag-js/tooltip";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tooltip/anatomy/root.d.ts
|
|
6
6
|
interface TooltipRootProps extends PropsWithChildren, Omit<Props, 'id'> {}
|
|
7
|
-
declare function Root(props: TooltipRootProps):
|
|
7
|
+
declare function Root(props: TooltipRootProps): react_jsx_runtime47.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Root, TooltipRootProps };
|
|
10
10
|
//# sourceMappingURL=root.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
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 react126 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tooltip/anatomy/trigger.d.ts
|
|
6
6
|
interface TooltipTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
|
|
7
|
-
declare function Trigger(props: TooltipTriggerProps):
|
|
7
|
+
declare function Trigger(props: TooltipTriggerProps): react126.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { TooltipTriggerProps, Trigger };
|
|
10
10
|
//# sourceMappingURL=trigger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger.d.ts","names":[],"sources":["../../../../src/components/tooltip/anatomy/trigger.tsx"],"sourcesContent":[],"mappings":";;;;;UAOiB,mBAAA,SAA4B,4BAA4B;iBAEjD,OAAA,QAAe,sBAAmB,
|
|
1
|
+
{"version":3,"file":"trigger.d.ts","names":[],"sources":["../../../../src/components/tooltip/anatomy/trigger.tsx"],"sourcesContent":[],"mappings":";;;;;UAOiB,mBAAA,SAA4B,4BAA4B;iBAEjD,OAAA,QAAe,sBAAmB,QAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react133 from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/tree-view/anatomy/branch-content.d.ts
|
|
6
|
+
interface TreeViewBranchContentProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
+
declare function BranchContent(props: TreeViewBranchContentProps): react133.JSX.Element;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { BranchContent, TreeViewBranchContentProps };
|
|
10
|
+
//# sourceMappingURL=branch-content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"branch-content.d.ts","names":[],"sources":["../../../../src/components/tree-view/anatomy/branch-content.tsx"],"sourcesContent":[],"mappings":";;;;;UAQiB,0BAAA,SAAmC,yBAAyB;iBAErD,aAAA,QAAqB,6BAA0B,QAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { NodeContext } from "../modules/node-context.js";
|
|
2
|
+
import { RootContext } from "../modules/root-context.js";
|
|
3
|
+
import { use } from "react";
|
|
4
|
+
import { mergeProps } from "@zag-js/react";
|
|
5
|
+
import { classesTreeView } from "@skeletonlabs/skeleton-common";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
|
|
8
|
+
//#region src/components/tree-view/anatomy/branch-content.tsx
|
|
9
|
+
function BranchContent(props) {
|
|
10
|
+
const treeView = use(RootContext);
|
|
11
|
+
const nodeProps = use(NodeContext);
|
|
12
|
+
const { element, children,...rest } = props;
|
|
13
|
+
const attributes = mergeProps(treeView.getBranchContentProps(nodeProps), { className: classesTreeView.branchContent }, rest);
|
|
14
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
15
|
+
...attributes,
|
|
16
|
+
children
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { BranchContent as default };
|
|
22
|
+
//# sourceMappingURL=branch-content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"branch-content.js","names":[],"sources":["../../../../src/components/tree-view/anatomy/branch-content.tsx"],"sourcesContent":["import { NodeContext } from '../modules/node-context';\nimport { RootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesTreeView } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface TreeViewBranchContentProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}\n\nexport default function BranchContent(props: TreeViewBranchContentProps) {\n\tconst treeView = use(RootContext);\n\tconst nodeProps = use(NodeContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\ttreeView.getBranchContentProps(nodeProps),\n\t\t{\n\t\t\tclassName: classesTreeView.branchContent,\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <div {...attributes}>{children}</div>;\n}\n"],"mappings":";;;;;;;;AAUA,SAAwB,cAAc,OAAmC;CACxE,MAAM,WAAW,IAAI,YAAY;CACjC,MAAM,YAAY,IAAI,YAAY;CAElC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAClB,SAAS,sBAAsB,UAAU,EACzC,EACC,WAAW,gBAAgB,eAC3B,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAI,GAAI;EAAa;GAAe"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react130 from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/tree-view/anatomy/branch-control.d.ts
|
|
6
|
+
interface TreeViewBranchControlProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
+
declare function BranchControl(props: TreeViewBranchControlProps): react130.JSX.Element;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { BranchControl, TreeViewBranchControlProps };
|
|
10
|
+
//# sourceMappingURL=branch-control.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"branch-control.d.ts","names":[],"sources":["../../../../src/components/tree-view/anatomy/branch-control.tsx"],"sourcesContent":[],"mappings":";;;;;UAQiB,0BAAA,SAAmC,yBAAyB;iBAErD,aAAA,QAAqB,6BAA0B,QAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { NodeContext } from "../modules/node-context.js";
|
|
2
|
+
import { RootContext } from "../modules/root-context.js";
|
|
3
|
+
import { use } from "react";
|
|
4
|
+
import { mergeProps } from "@zag-js/react";
|
|
5
|
+
import { classesTreeView } from "@skeletonlabs/skeleton-common";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
|
|
8
|
+
//#region src/components/tree-view/anatomy/branch-control.tsx
|
|
9
|
+
function BranchControl(props) {
|
|
10
|
+
const treeView = use(RootContext);
|
|
11
|
+
const nodeProps = use(NodeContext);
|
|
12
|
+
const { element, children,...rest } = props;
|
|
13
|
+
const attributes = mergeProps(treeView.getBranchControlProps(nodeProps), { className: classesTreeView.branchControl }, rest);
|
|
14
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
15
|
+
...attributes,
|
|
16
|
+
children
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { BranchControl as default };
|
|
22
|
+
//# sourceMappingURL=branch-control.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"branch-control.js","names":[],"sources":["../../../../src/components/tree-view/anatomy/branch-control.tsx"],"sourcesContent":["import { NodeContext } from '../modules/node-context';\nimport { RootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesTreeView } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface TreeViewBranchControlProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}\n\nexport default function BranchControl(props: TreeViewBranchControlProps) {\n\tconst treeView = use(RootContext);\n\tconst nodeProps = use(NodeContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\ttreeView.getBranchControlProps(nodeProps),\n\t\t{\n\t\t\tclassName: classesTreeView.branchControl,\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <div {...attributes}>{children}</div>;\n}\n"],"mappings":";;;;;;;;AAUA,SAAwB,cAAc,OAAmC;CACxE,MAAM,WAAW,IAAI,YAAY;CACjC,MAAM,YAAY,IAAI,YAAY;CAElC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAClB,SAAS,sBAAsB,UAAU,EACzC,EACC,WAAW,gBAAgB,eAC3B,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAI,GAAI;EAAa;GAAe"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react134 from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/tree-view/anatomy/branch-indent-guide.d.ts
|
|
6
|
+
interface TreeViewBranchIndentGuideProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
+
declare function BranchIndentGuide(props: TreeViewBranchIndentGuideProps): react134.JSX.Element;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { BranchIndentGuide, TreeViewBranchIndentGuideProps };
|
|
10
|
+
//# sourceMappingURL=branch-indent-guide.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"branch-indent-guide.d.ts","names":[],"sources":["../../../../src/components/tree-view/anatomy/branch-indent-guide.tsx"],"sourcesContent":[],"mappings":";;;;;UAQiB,8BAAA,SAAuC,yBAAyB;iBAEzD,iBAAA,QAAyB,iCAA8B,QAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { NodeContext } from "../modules/node-context.js";
|
|
2
|
+
import { RootContext } from "../modules/root-context.js";
|
|
3
|
+
import { use } from "react";
|
|
4
|
+
import { mergeProps } from "@zag-js/react";
|
|
5
|
+
import { classesTreeView } from "@skeletonlabs/skeleton-common";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
|
|
8
|
+
//#region src/components/tree-view/anatomy/branch-indent-guide.tsx
|
|
9
|
+
function BranchIndentGuide(props) {
|
|
10
|
+
const treeView = use(RootContext);
|
|
11
|
+
const nodeProps = use(NodeContext);
|
|
12
|
+
const { element, children,...rest } = props;
|
|
13
|
+
const attributes = mergeProps(treeView.getBranchIndentGuideProps(nodeProps), { className: classesTreeView.branchIndentGuide }, rest);
|
|
14
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
15
|
+
...attributes,
|
|
16
|
+
children
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { BranchIndentGuide as default };
|
|
22
|
+
//# sourceMappingURL=branch-indent-guide.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"branch-indent-guide.js","names":[],"sources":["../../../../src/components/tree-view/anatomy/branch-indent-guide.tsx"],"sourcesContent":["import { NodeContext } from '../modules/node-context';\nimport { RootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesTreeView } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface TreeViewBranchIndentGuideProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}\n\nexport default function BranchIndentGuide(props: TreeViewBranchIndentGuideProps) {\n\tconst treeView = use(RootContext);\n\tconst nodeProps = use(NodeContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\ttreeView.getBranchIndentGuideProps(nodeProps),\n\t\t{\n\t\t\tclassName: classesTreeView.branchIndentGuide,\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <div {...attributes}>{children}</div>;\n}\n"],"mappings":";;;;;;;;AAUA,SAAwB,kBAAkB,OAAuC;CAChF,MAAM,WAAW,IAAI,YAAY;CACjC,MAAM,YAAY,IAAI,YAAY;CAElC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAClB,SAAS,0BAA0B,UAAU,EAC7C,EACC,WAAW,gBAAgB,mBAC3B,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAI,GAAI;EAAa;GAAe"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react132 from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/tree-view/anatomy/branch-indicator.d.ts
|
|
6
|
+
interface TreeViewBranchIndicatorProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
|
|
7
|
+
declare function BranchIndicator(props: TreeViewBranchIndicatorProps): react132.JSX.Element;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { BranchIndicator, TreeViewBranchIndicatorProps };
|
|
10
|
+
//# sourceMappingURL=branch-indicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"branch-indicator.d.ts","names":[],"sources":["../../../../src/components/tree-view/anatomy/branch-indicator.tsx"],"sourcesContent":[],"mappings":";;;;;UAUiB,4BAAA,SAAqC,0BAA0B;iBAExD,eAAA,QAAuB,+BAA4B,QAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import ChevronRight from "../../../internal/components/chevron-right.js";
|
|
2
|
+
import { NodeContext } from "../modules/node-context.js";
|
|
3
|
+
import { RootContext } from "../modules/root-context.js";
|
|
4
|
+
import { use } from "react";
|
|
5
|
+
import { mergeProps } from "@zag-js/react";
|
|
6
|
+
import { classesTreeView } from "@skeletonlabs/skeleton-common";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
|
|
9
|
+
//#region src/components/tree-view/anatomy/branch-indicator.tsx
|
|
10
|
+
function BranchIndicator(props) {
|
|
11
|
+
const treeView = use(RootContext);
|
|
12
|
+
const nodeProps = use(NodeContext);
|
|
13
|
+
const { element, children = /* @__PURE__ */ jsx(ChevronRight, { className: "size-4" }),...rest } = props;
|
|
14
|
+
const attributes = mergeProps(treeView.getBranchIndicatorProps(nodeProps), { className: classesTreeView.branchIndicator }, rest);
|
|
15
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
16
|
+
...attributes,
|
|
17
|
+
children
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { BranchIndicator as default };
|
|
23
|
+
//# sourceMappingURL=branch-indicator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"branch-indicator.js","names":[],"sources":["../../../../src/components/tree-view/anatomy/branch-indicator.tsx"],"sourcesContent":["// oxlint-disable-next-line no-unused-vars\nimport { NodeContext } from '../modules/node-context';\nimport { RootContext } from '../modules/root-context';\nimport ChevronRight from '@/internal/components/chevron-right';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesTreeView } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface TreeViewBranchIndicatorProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}\n\nexport default function BranchIndicator(props: TreeViewBranchIndicatorProps) {\n\tconst treeView = use(RootContext);\n\tconst nodeProps = use(NodeContext);\n\n\tconst { element, children = <ChevronRight className=\"size-4\" />, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\ttreeView.getBranchIndicatorProps(nodeProps),\n\t\t{\n\t\t\tclassName: classesTreeView.branchIndicator,\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <span {...attributes}>{children}</span>;\n}\n"],"mappings":";;;;;;;;;AAYA,SAAwB,gBAAgB,OAAqC;CAC5E,MAAM,WAAW,IAAI,YAAY;CACjC,MAAM,YAAY,IAAI,YAAY;CAElC,MAAM,EAAE,SAAS,WAAW,oBAAC,gBAAa,WAAU,WAAW,CAAE,GAAG,SAAS;CAE7E,MAAM,aAAa,WAClB,SAAS,wBAAwB,UAAU,EAC3C,EACC,WAAW,gBAAgB,iBAC3B,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAK,GAAI;EAAa;GAAgB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react131 from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/tree-view/anatomy/branch-text.d.ts
|
|
6
|
+
interface TreeViewBranchTextProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
|
|
7
|
+
declare function BranchText(props: TreeViewBranchTextProps): react131.JSX.Element;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { BranchText, TreeViewBranchTextProps };
|
|
10
|
+
//# sourceMappingURL=branch-text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"branch-text.d.ts","names":[],"sources":["../../../../src/components/tree-view/anatomy/branch-text.tsx"],"sourcesContent":[],"mappings":";;;;;UAQiB,uBAAA,SAAgC,0BAA0B;iBAEnD,UAAA,QAAkB,0BAAuB,QAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { NodeContext } from "../modules/node-context.js";
|
|
2
|
+
import { RootContext } from "../modules/root-context.js";
|
|
3
|
+
import { use } from "react";
|
|
4
|
+
import { mergeProps } from "@zag-js/react";
|
|
5
|
+
import { classesTreeView } from "@skeletonlabs/skeleton-common";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
|
|
8
|
+
//#region src/components/tree-view/anatomy/branch-text.tsx
|
|
9
|
+
function BranchText(props) {
|
|
10
|
+
const treeView = use(RootContext);
|
|
11
|
+
const nodeProps = use(NodeContext);
|
|
12
|
+
const { element, children,...rest } = props;
|
|
13
|
+
const attributes = mergeProps(treeView.getBranchTextProps(nodeProps), { className: classesTreeView.branchText }, rest);
|
|
14
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
15
|
+
...attributes,
|
|
16
|
+
children
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { BranchText as default };
|
|
22
|
+
//# sourceMappingURL=branch-text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"branch-text.js","names":[],"sources":["../../../../src/components/tree-view/anatomy/branch-text.tsx"],"sourcesContent":["import { NodeContext } from '../modules/node-context';\nimport { RootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesTreeView } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface TreeViewBranchTextProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}\n\nexport default function BranchText(props: TreeViewBranchTextProps) {\n\tconst treeView = use(RootContext);\n\tconst nodeProps = use(NodeContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\ttreeView.getBranchTextProps(nodeProps),\n\t\t{\n\t\t\tclassName: classesTreeView.branchText,\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <span {...attributes}>{children}</span>;\n}\n"],"mappings":";;;;;;;;AAUA,SAAwB,WAAW,OAAgC;CAClE,MAAM,WAAW,IAAI,YAAY;CACjC,MAAM,YAAY,IAAI,YAAY;CAElC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAClB,SAAS,mBAAmB,UAAU,EACtC,EACC,WAAW,gBAAgB,YAC3B,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAK,GAAI;EAAa;GAAgB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react129 from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/tree-view/anatomy/branch.d.ts
|
|
6
|
+
interface TreeViewBranchProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
+
declare function Branch(props: TreeViewBranchProps): react129.JSX.Element;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { Branch, TreeViewBranchProps };
|
|
10
|
+
//# sourceMappingURL=branch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"branch.d.ts","names":[],"sources":["../../../../src/components/tree-view/anatomy/branch.tsx"],"sourcesContent":[],"mappings":";;;;;UAQiB,mBAAA,SAA4B,yBAAyB;iBAE9C,MAAA,QAAc,sBAAmB,QAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { NodeContext } from "../modules/node-context.js";
|
|
2
|
+
import { RootContext } from "../modules/root-context.js";
|
|
3
|
+
import { use } from "react";
|
|
4
|
+
import { mergeProps } from "@zag-js/react";
|
|
5
|
+
import { classesTreeView } from "@skeletonlabs/skeleton-common";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
|
|
8
|
+
//#region src/components/tree-view/anatomy/branch.tsx
|
|
9
|
+
function Branch(props) {
|
|
10
|
+
const treeView = use(RootContext);
|
|
11
|
+
const nodeProps = use(NodeContext);
|
|
12
|
+
const { element, children,...rest } = props;
|
|
13
|
+
const attributes = mergeProps(treeView.getBranchProps(nodeProps), { className: classesTreeView.branch }, rest);
|
|
14
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
15
|
+
...attributes,
|
|
16
|
+
children
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { Branch as default };
|
|
22
|
+
//# sourceMappingURL=branch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"branch.js","names":[],"sources":["../../../../src/components/tree-view/anatomy/branch.tsx"],"sourcesContent":["import { NodeContext } from '../modules/node-context';\nimport { RootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesTreeView } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface TreeViewBranchProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}\n\nexport default function Branch(props: TreeViewBranchProps) {\n\tconst treeView = use(RootContext);\n\tconst nodeProps = use(NodeContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\ttreeView.getBranchProps(nodeProps),\n\t\t{\n\t\t\tclassName: classesTreeView.branch,\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <div {...attributes}>{children}</div>;\n}\n"],"mappings":";;;;;;;;AAUA,SAAwB,OAAO,OAA4B;CAC1D,MAAM,WAAW,IAAI,YAAY;CACjC,MAAM,YAAY,IAAI,YAAY;CAElC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAClB,SAAS,eAAe,UAAU,EAClC,EACC,WAAW,gBAAgB,QAC3B,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAI,GAAI;EAAa;GAAe"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react128 from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/tree-view/anatomy/item.d.ts
|
|
6
|
+
interface TreeViewItemProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
+
declare function Item(props: TreeViewItemProps): react128.JSX.Element;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { Item, TreeViewItemProps };
|
|
10
|
+
//# sourceMappingURL=item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item.d.ts","names":[],"sources":["../../../../src/components/tree-view/anatomy/item.tsx"],"sourcesContent":[],"mappings":";;;;;UAQiB,iBAAA,SAA0B,yBAAyB;iBAE5C,IAAA,QAAY,oBAAiB,QAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { NodeContext } from "../modules/node-context.js";
|
|
2
|
+
import { RootContext } from "../modules/root-context.js";
|
|
3
|
+
import { use } from "react";
|
|
4
|
+
import { mergeProps } from "@zag-js/react";
|
|
5
|
+
import { classesTreeView } from "@skeletonlabs/skeleton-common";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
|
|
8
|
+
//#region src/components/tree-view/anatomy/item.tsx
|
|
9
|
+
function Item(props) {
|
|
10
|
+
const treeView = use(RootContext);
|
|
11
|
+
const nodeProps = use(NodeContext);
|
|
12
|
+
const { element, children,...rest } = props;
|
|
13
|
+
const attributes = mergeProps(treeView.getItemProps(nodeProps), { className: classesTreeView.item }, rest);
|
|
14
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
15
|
+
...attributes,
|
|
16
|
+
children
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { Item as default };
|
|
22
|
+
//# sourceMappingURL=item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item.js","names":[],"sources":["../../../../src/components/tree-view/anatomy/item.tsx"],"sourcesContent":["import { NodeContext } from '../modules/node-context';\nimport { RootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesTreeView } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface TreeViewItemProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}\n\nexport default function Item(props: TreeViewItemProps) {\n\tconst treeView = use(RootContext);\n\tconst nodeProps = use(NodeContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\ttreeView.getItemProps(nodeProps),\n\t\t{\n\t\t\tclassName: classesTreeView.item,\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <div {...attributes}>{children}</div>;\n}\n"],"mappings":";;;;;;;;AAUA,SAAwB,KAAK,OAA0B;CACtD,MAAM,WAAW,IAAI,YAAY;CACjC,MAAM,YAAY,IAAI,YAAY;CAElC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAClB,SAAS,aAAa,UAAU,EAChC,EACC,WAAW,gBAAgB,MAC3B,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAI,GAAI;EAAa;GAAe"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import { JSX } from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/tree-view/anatomy/label.d.ts
|
|
6
|
+
interface TreeViewLabelProps extends PropsWithElement<'h3'>, HTMLAttributes<'h3'> {
|
|
7
|
+
/**
|
|
8
|
+
* The level of the heading.
|
|
9
|
+
*
|
|
10
|
+
* @defaultValue 3
|
|
11
|
+
*/
|
|
12
|
+
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
13
|
+
}
|
|
14
|
+
declare function Label(props: TreeViewLabelProps): JSX.Element;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { Label, TreeViewLabelProps };
|
|
17
|
+
//# sourceMappingURL=label.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.d.ts","names":[],"sources":["../../../../src/components/tree-view/anatomy/label.tsx"],"sourcesContent":[],"mappings":";;;;;UAOiB,kBAAA,SAA2B,wBAAwB;;AAApE;;;;EAAkF,KAAA,CAAA,EAAA,CAAA,GAAA,CAAA,GAAA,CAAA,GAAA,CAAA,GAAA,CAAA,GAAA,CAAA;AAOjF;AAE4B,iBAAL,KAAA,CAAK,KAAA,EAAQ,kBAAR,CAAA,EAA0B,GAAA,CAAA,OAA1B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { RootContext } from "../modules/root-context.js";
|
|
2
|
+
import { use } from "react";
|
|
3
|
+
import { mergeProps } from "@zag-js/react";
|
|
4
|
+
import { classesTreeView } from "@skeletonlabs/skeleton-common";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/tree-view/anatomy/label.tsx
|
|
8
|
+
function Label(props) {
|
|
9
|
+
const treeView = use(RootContext);
|
|
10
|
+
const { element, children, level = 3,...rest } = props;
|
|
11
|
+
const attributes = mergeProps(treeView.getLabelProps(), { className: classesTreeView.label }, rest);
|
|
12
|
+
const Tag = `h${level}`;
|
|
13
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx(Tag, {
|
|
14
|
+
...attributes,
|
|
15
|
+
children
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { Label as default };
|
|
21
|
+
//# sourceMappingURL=label.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.js","names":["Tag: keyof JSX.IntrinsicElements"],"sources":["../../../../src/components/tree-view/anatomy/label.tsx"],"sourcesContent":["import { RootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesTreeView } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use, type JSX } from 'react';\n\nexport interface TreeViewLabelProps extends PropsWithElement<'h3'>, HTMLAttributes<'h3'> {\n\t/**\n\t * The level of the heading.\n\t *\n\t * @defaultValue 3\n\t */\n\tlevel?: 1 | 2 | 3 | 4 | 5 | 6;\n}\n\nexport default function Label(props: TreeViewLabelProps) {\n\tconst treeView = use(RootContext);\n\n\tconst { element, children, level = 3, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\ttreeView.getLabelProps(),\n\t\t{\n\t\t\tclassName: classesTreeView.label,\n\t\t},\n\t\trest,\n\t);\n\n\tconst Tag: keyof JSX.IntrinsicElements = `h${level}`;\n\n\treturn element ? element(attributes) : <Tag {...attributes}>{children}</Tag>;\n}\n"],"mappings":";;;;;;;AAgBA,SAAwB,MAAM,OAA2B;CACxD,MAAM,WAAW,IAAI,YAAY;CAEjC,MAAM,EAAE,SAAS,UAAU,QAAQ,EAAG,GAAG,SAAS;CAElD,MAAM,aAAa,WAClB,SAAS,eAAe,EACxB,EACC,WAAW,gBAAgB,OAC3B,EACD,KACA;CAED,MAAMA,MAAmC,IAAI;AAE7C,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAI,GAAI;EAAa;GAAe"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PropsWithChildren } from "react";
|
|
2
|
+
import * as react_jsx_runtime51 from "react/jsx-runtime";
|
|
3
|
+
import { NodeProps } from "@zag-js/tree-view";
|
|
4
|
+
|
|
5
|
+
//#region src/components/tree-view/anatomy/node-provider.d.ts
|
|
6
|
+
interface TreeViewNodeProviderProps extends PropsWithChildren {
|
|
7
|
+
value: NodeProps;
|
|
8
|
+
}
|
|
9
|
+
declare function NodeProvider(props: TreeViewNodeProviderProps): react_jsx_runtime51.JSX.Element;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { NodeProvider, TreeViewNodeProviderProps };
|
|
12
|
+
//# sourceMappingURL=node-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-provider.d.ts","names":[],"sources":["../../../../src/components/tree-view/anatomy/node-provider.tsx"],"sourcesContent":[],"mappings":";;;;;UAIiB,yBAAA,SAAkC;SAC3C;;AADS,iBAIO,YAAA,CAJmB,KAAA,EAIC,yBAJD,CAAA,EAI0B,mBAAA,CAAA,GAAA,CAAA,OAJ1B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { NodeContext } from "../modules/node-context.js";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/tree-view/anatomy/node-provider.tsx
|
|
5
|
+
function NodeProvider(props) {
|
|
6
|
+
const { children, value: nodeProps } = props;
|
|
7
|
+
return /* @__PURE__ */ jsx(NodeContext.Provider, {
|
|
8
|
+
value: nodeProps,
|
|
9
|
+
children
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { NodeProvider as default };
|
|
15
|
+
//# sourceMappingURL=node-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-provider.js","names":[],"sources":["../../../../src/components/tree-view/anatomy/node-provider.tsx"],"sourcesContent":["import { NodeContext } from '../modules/node-context';\nimport type { NodeProps } from '@zag-js/tree-view';\nimport type { PropsWithChildren } from 'react';\n\nexport interface TreeViewNodeProviderProps extends PropsWithChildren {\n\tvalue: NodeProps;\n}\n\nexport default function NodeProvider(props: TreeViewNodeProviderProps) {\n\tconst { children, value: nodeProps } = props;\n\n\treturn <NodeContext.Provider value={nodeProps}>{children}</NodeContext.Provider>;\n}\n"],"mappings":";;;;AAQA,SAAwB,aAAa,OAAkC;CACtE,MAAM,EAAE,UAAU,OAAO,cAAc;AAEvC,QAAO,oBAAC,YAAY;EAAS,OAAO;EAAY;GAAgC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useTreeView } from "../modules/provider.js";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/tree-view/anatomy/root-context.d.ts
|
|
5
|
+
interface TreeViewRootContextProps {
|
|
6
|
+
children: (treeView: ReturnType<typeof useTreeView>) => ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare function RootContext(props: TreeViewRootContextProps): ReactNode;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { RootContext, TreeViewRootContextProps };
|
|
11
|
+
//# sourceMappingURL=root-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-context.d.ts","names":[],"sources":["../../../../src/components/tree-view/anatomy/root-context.tsx"],"sourcesContent":[],"mappings":";;;;UAKiB,wBAAA;uBACK,kBAAkB,iBAAiB;AADzD;AAAyC,iBAIjB,WAAA,CAJiB,KAAA,EAIE,wBAJF,CAAA,EAI0B,SAJ1B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RootContext } from "../modules/root-context.js";
|
|
2
|
+
import { use } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/tree-view/anatomy/root-context.tsx
|
|
5
|
+
function RootContext$1(props) {
|
|
6
|
+
const treeView = use(RootContext);
|
|
7
|
+
const { children } = props;
|
|
8
|
+
return children(treeView);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { RootContext$1 as default };
|
|
13
|
+
//# sourceMappingURL=root-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-context.js","names":["RootContext","RootContext_"],"sources":["../../../../src/components/tree-view/anatomy/root-context.tsx"],"sourcesContent":["import type { useTreeView } from '../modules/provider';\nimport { RootContext as RootContext_ } from '../modules/root-context';\nimport { use } from 'react';\nimport type { ReactNode } from 'react';\n\nexport interface TreeViewRootContextProps {\n\tchildren: (treeView: ReturnType<typeof useTreeView>) => ReactNode;\n}\n\nexport default function RootContext(props: TreeViewRootContextProps) {\n\tconst treeView = use(RootContext_);\n\n\tconst { children } = props;\n\n\treturn children(treeView);\n}\n"],"mappings":";;;;AASA,SAAwBA,cAAY,OAAiC;CACpE,MAAM,WAAW,IAAIC,YAAa;CAElC,MAAM,EAAE,aAAa;AAErB,QAAO,SAAS,SAAS"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import { useTreeView } from "../modules/provider.js";
|
|
4
|
+
import * as react_jsx_runtime50 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/tree-view/anatomy/root-provider.d.ts
|
|
7
|
+
interface TreeViewRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {
|
|
8
|
+
value: ReturnType<typeof useTreeView>;
|
|
9
|
+
}
|
|
10
|
+
declare function RootProvider(props: TreeViewRootProviderProps): react_jsx_runtime50.JSX.Element;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { RootProvider, TreeViewRootProviderProps };
|
|
13
|
+
//# sourceMappingURL=root-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-provider.d.ts","names":[],"sources":["../../../../src/components/tree-view/anatomy/root-provider.tsx"],"sourcesContent":[],"mappings":";;;;;;UAOiB,yBAAA,SAAkC,yBAAyB;SACpE,kBAAkB;;AADT,iBAIO,YAAA,CAJmB,KAAA,EAIC,yBAJD,CAAA,EAI0B,mBAAA,CAAA,GAAA,CAAA,OAJ1B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { RootContext } from "../modules/root-context.js";
|
|
2
|
+
import { mergeProps } from "@zag-js/react";
|
|
3
|
+
import { classesTreeView } from "@skeletonlabs/skeleton-common";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/tree-view/anatomy/root-provider.tsx
|
|
7
|
+
function RootProvider(props) {
|
|
8
|
+
const { element, children, value: treeView,...rest } = props;
|
|
9
|
+
const attributes = mergeProps(treeView.getRootProps(), { className: classesTreeView.root }, rest);
|
|
10
|
+
return /* @__PURE__ */ jsx(RootContext.Provider, {
|
|
11
|
+
value: treeView,
|
|
12
|
+
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
13
|
+
...attributes,
|
|
14
|
+
children
|
|
15
|
+
})
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { RootProvider as default };
|
|
21
|
+
//# sourceMappingURL=root-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-provider.js","names":[],"sources":["../../../../src/components/tree-view/anatomy/root-provider.tsx"],"sourcesContent":["import type { useTreeView } from '../modules/provider';\nimport { RootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesTreeView } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\n\nexport interface TreeViewRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {\n\tvalue: ReturnType<typeof useTreeView>;\n}\n\nexport default function RootProvider(props: TreeViewRootProviderProps) {\n\tconst { element, children, value: treeView, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\ttreeView.getRootProps(),\n\t\t{\n\t\t\tclassName: classesTreeView.root,\n\t\t},\n\t\trest,\n\t);\n\n\treturn (\n\t\t<RootContext.Provider value={treeView}>{element ? element(attributes) : <div {...attributes}>{children}</div>}</RootContext.Provider>\n\t);\n}\n"],"mappings":";;;;;;AAWA,SAAwB,aAAa,OAAkC;CACtE,MAAM,EAAE,SAAS,UAAU,OAAO,SAAU,GAAG,SAAS;CAExD,MAAM,aAAa,WAClB,SAAS,cAAc,EACvB,EACC,WAAW,gBAAgB,MAC3B,EACD,KACA;AAED,QACC,oBAAC,YAAY;EAAS,OAAO;YAAW,UAAU,QAAQ,WAAW,GAAG,oBAAC;GAAI,GAAI;GAAa;IAAe;GAAwB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react_jsx_runtime49 from "react/jsx-runtime";
|
|
4
|
+
import { Props } from "@zag-js/tree-view";
|
|
5
|
+
|
|
6
|
+
//#region src/components/tree-view/anatomy/root.d.ts
|
|
7
|
+
interface TreeViewRootProps extends Omit<Props, 'id'>, PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {}
|
|
8
|
+
declare function Root(props: TreeViewRootProps): react_jsx_runtime49.JSX.Element;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { Root, TreeViewRootProps };
|
|
11
|
+
//# sourceMappingURL=root.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root.d.ts","names":[],"sources":["../../../../src/components/tree-view/anatomy/root.tsx"],"sourcesContent":[],"mappings":";;;;;;UASiB,iBAAA,SACR,KAAK,cACZ,yBACA;iBAEsB,IAAA,QAAY,oBAAiB,mBAAA,CAAA,GAAA,CAAA"}
|