From 5e901e302e93f729b39414f06351250ddf8123ea Mon Sep 17 00:00:00 2001 From: zernonia Date: Tue, 10 Dec 2024 16:52:47 +0800 Subject: [PATCH] fix: missing export for inject --- packages/core/src/Accordion/index.ts | 1 + packages/core/src/AlertDialog/index.ts | 1 + packages/core/src/Combobox/index.ts | 2 + packages/core/src/Listbox/index.ts | 2 + packages/core/src/Menubar/index.ts | 1 + packages/core/src/NavigationMenu/index.ts | 1 + packages/core/src/RadioGroup/index.ts | 1 + packages/core/src/ScrollArea/index.ts | 1 + packages/core/src/Select/index.ts | 6 ++- packages/core/src/Stepper/index.ts | 45 +++++++++++++++++++---- packages/core/src/TagsInput/index.ts | 39 +++++++++++++++++--- 11 files changed, 85 insertions(+), 15 deletions(-) diff --git a/packages/core/src/Accordion/index.ts b/packages/core/src/Accordion/index.ts index 1d808ec82..4c79681b7 100644 --- a/packages/core/src/Accordion/index.ts +++ b/packages/core/src/Accordion/index.ts @@ -8,6 +8,7 @@ export { } from './AccordionHeader.vue' export { default as AccordionItem, + injectAccordionItemContext, type AccordionItemProps, } from './AccordionItem.vue' export { diff --git a/packages/core/src/AlertDialog/index.ts b/packages/core/src/AlertDialog/index.ts index 6e91e73c1..5a7796860 100644 --- a/packages/core/src/AlertDialog/index.ts +++ b/packages/core/src/AlertDialog/index.ts @@ -12,6 +12,7 @@ export { type AlertDialogPortalProps, } from './AlertDialogPortal.vue' export { + injectAlertDialogContentContext, default as AlertDialogContent, type AlertDialogContentProps, type AlertDialogContentEmits, diff --git a/packages/core/src/Combobox/index.ts b/packages/core/src/Combobox/index.ts index 325266f2c..c2617c115 100644 --- a/packages/core/src/Combobox/index.ts +++ b/packages/core/src/Combobox/index.ts @@ -25,6 +25,7 @@ export { type ComboboxCancelProps, } from './ComboboxCancel.vue' export { + injectComboboxGroupContext, default as ComboboxGroup, type ComboboxGroupProps, } from './ComboboxGroup.vue' @@ -46,6 +47,7 @@ export { type ComboboxVirtualizerProps, } from './ComboboxVirtualizer.vue' export { + injectComboboxItemContext, default as ComboboxItem, type ComboboxItemProps, type ComboboxItemEmits, diff --git a/packages/core/src/Listbox/index.ts b/packages/core/src/Listbox/index.ts index c5bb94596..442645e75 100644 --- a/packages/core/src/Listbox/index.ts +++ b/packages/core/src/Listbox/index.ts @@ -15,6 +15,7 @@ export { type ListboxFilterEmits, } from './ListboxFilter.vue' export { + injectListboxItemContext, default as ListboxItem, type ListboxItemProps, type ListboxItemEmits, @@ -28,6 +29,7 @@ export { type ListboxVirtualizerProps, } from './ListboxVirtualizer.vue' export { + injectListboxGroupContext, default as ListboxGroup, type ListboxGroupProps, } from './ListboxGroup.vue' diff --git a/packages/core/src/Menubar/index.ts b/packages/core/src/Menubar/index.ts index 99ce104f2..bfddd7349 100644 --- a/packages/core/src/Menubar/index.ts +++ b/packages/core/src/Menubar/index.ts @@ -71,6 +71,7 @@ export { type MenubarSubTriggerProps, } from './MenubarSubTrigger.vue' export { + injectMenubarMenuContext, default as MenubarMenu, type MenubarMenuProps, } from './MenubarMenu.vue' diff --git a/packages/core/src/NavigationMenu/index.ts b/packages/core/src/NavigationMenu/index.ts index c14594a15..1abca5ff4 100644 --- a/packages/core/src/NavigationMenu/index.ts +++ b/packages/core/src/NavigationMenu/index.ts @@ -14,6 +14,7 @@ export { type NavigationMenuIndicatorProps, } from './NavigationMenuIndicator.vue' export { + injectNavigationMenuItemContext, default as NavigationMenuItem, type NavigationMenuItemProps, } from './NavigationMenuItem.vue' diff --git a/packages/core/src/RadioGroup/index.ts b/packages/core/src/RadioGroup/index.ts index b25f137fe..d9e8a4b90 100644 --- a/packages/core/src/RadioGroup/index.ts +++ b/packages/core/src/RadioGroup/index.ts @@ -5,6 +5,7 @@ export { type RadioGroupRootEmits, } from './RadioGroupRoot.vue' export { + injectRadioGroupItemContext, default as RadioGroupItem, type RadioGroupItemProps, } from './RadioGroupItem.vue' diff --git a/packages/core/src/ScrollArea/index.ts b/packages/core/src/ScrollArea/index.ts index d24f6f03d..4db03ea9c 100644 --- a/packages/core/src/ScrollArea/index.ts +++ b/packages/core/src/ScrollArea/index.ts @@ -8,6 +8,7 @@ export { type ScrollAreaViewportProps, } from './ScrollAreaViewport.vue' export { + injectScrollAreaScrollbarContext, default as ScrollAreaScrollbar, type ScrollAreaScrollbarProps, } from './ScrollAreaScrollbar.vue' diff --git a/packages/core/src/Select/index.ts b/packages/core/src/Select/index.ts index 5081898e0..295f87fce 100644 --- a/packages/core/src/Select/index.ts +++ b/packages/core/src/Select/index.ts @@ -38,7 +38,11 @@ export { default as SelectGroup, type SelectGroupProps, } from './SelectGroup.vue' -export { default as SelectItem, type SelectItemProps } from './SelectItem.vue' +export { + injectSelectItemContext, + default as SelectItem, + type SelectItemProps, +} from './SelectItem.vue' export { default as SelectItemText, type SelectItemTextProps, diff --git a/packages/core/src/Stepper/index.ts b/packages/core/src/Stepper/index.ts index 85e13f0d2..313b998ae 100644 --- a/packages/core/src/Stepper/index.ts +++ b/packages/core/src/Stepper/index.ts @@ -1,8 +1,37 @@ -export { injectStepperRootContext, default as StepperRoot, type StepperRootProps, type StepperRootEmits } from './StepperRoot.vue' - -export { default as StepperItem, type StepperItemProps } from './StepperItem.vue' -export { default as StepperTrigger, type StepperTriggerProps } from './StepperTrigger.vue' -export { default as StepperDescription, type StepperDescriptionProps } from './StepperDescription.vue' -export { default as StepperTitle, type StepperTitleProps } from './StepperTitle.vue' -export { default as StepperIndicator, type StepperIndicatorProps } from './StepperIndicator.vue' -export { default as StepperSeparator, type StepperSeparatorProps } from './StepperSeparator.vue' +export { + injectStepperRootContext, + default as StepperRoot, + type StepperRootProps, + type StepperRootEmits, +} from './StepperRoot.vue' + +export { + injectStepperItemContext, + default as StepperItem, + type StepperItemProps, +} from './StepperItem.vue' + +export { + default as StepperTrigger, + type StepperTriggerProps, +} from './StepperTrigger.vue' + +export { + default as StepperDescription, + type StepperDescriptionProps, +} from './StepperDescription.vue' + +export { + default as StepperTitle, + type StepperTitleProps, +} from './StepperTitle.vue' + +export { + default as StepperIndicator, + type StepperIndicatorProps, +} from './StepperIndicator.vue' + +export { + default as StepperSeparator, + type StepperSeparatorProps, +} from './StepperSeparator.vue' diff --git a/packages/core/src/TagsInput/index.ts b/packages/core/src/TagsInput/index.ts index 11bc8e27c..0375c5956 100644 --- a/packages/core/src/TagsInput/index.ts +++ b/packages/core/src/TagsInput/index.ts @@ -1,6 +1,33 @@ -export { injectTagsInputRootContext, default as TagsInputRoot, type TagsInputRootProps, type TagsInputRootEmits, type AcceptableInputValue } from './TagsInputRoot.vue' -export { default as TagsInputInput, type TagsInputInputProps } from './TagsInputInput.vue' -export { default as TagsInputItem, type TagsInputItemProps } from './TagsInputItem.vue' -export { default as TagsInputItemText, type TagsInputItemTextProps } from './TagsInputItemText.vue' -export { default as TagsInputItemDelete, type TagsInputItemDeleteProps } from './TagsInputItemDelete.vue' -export { default as TagsInputClear, type TagsInputClearProps } from './TagsInputClear.vue' +export { + injectTagsInputRootContext, + default as TagsInputRoot, + type TagsInputRootProps, + type TagsInputRootEmits, + type AcceptableInputValue, +} from './TagsInputRoot.vue' + +export { + default as TagsInputInput, + type TagsInputInputProps, +} from './TagsInputInput.vue' + +export { + injectTagsInputItemContext, + default as TagsInputItem, + type TagsInputItemProps, +} from './TagsInputItem.vue' + +export { + default as TagsInputItemText, + type TagsInputItemTextProps, +} from './TagsInputItemText.vue' + +export { + default as TagsInputItemDelete, + type TagsInputItemDeleteProps, +} from './TagsInputItemDelete.vue' + +export { + default as TagsInputClear, + type TagsInputClearProps, +} from './TagsInputClear.vue'