diff --git a/packages/primevue/src/accordioncontent/AccordionContent.d.ts b/packages/primevue/src/accordioncontent/AccordionContent.d.ts index 0dde98afd..dd2ea960e 100755 --- a/packages/primevue/src/accordioncontent/AccordionContent.d.ts +++ b/packages/primevue/src/accordioncontent/AccordionContent.d.ts @@ -10,7 +10,7 @@ import type { DefineComponent, DesignToken, EmitFn, GlobalComponentConstructor, PassThrough } from '@primevue/core'; import type { ComponentHooks } from '@primevue/core/basecomponent'; import type { PassThroughOptions } from 'primevue/passthrough'; -import { VNode } from 'vue'; +import type { Component, VNode } from 'vue'; export declare type AccordionContentPassThroughOptionType = AccordionContentPassThroughAttributes | ((options: AccordionContentPassThroughMethodOptions) => AccordionContentPassThroughAttributes | string) | string | null | undefined; @@ -80,7 +80,7 @@ export interface AccordionContentProps { * Use to change the HTML tag of root element. * @defaultValue DIV */ - as?: string | undefined; + as?: string | Component | undefined; /** * When enabled, it changes the default rendered element for the one passed as a child element. * @defaultValue false diff --git a/packages/primevue/src/accordioncontent/BaseAccordionContent.vue b/packages/primevue/src/accordioncontent/BaseAccordionContent.vue index 23d75e7c5..0208b99b0 100644 --- a/packages/primevue/src/accordioncontent/BaseAccordionContent.vue +++ b/packages/primevue/src/accordioncontent/BaseAccordionContent.vue @@ -7,7 +7,7 @@ export default { extends: BaseComponent, props: { as: { - type: String, + type: [String, Object], default: 'DIV' }, asChild: { diff --git a/packages/primevue/src/accordionheader/AccordionHeader.d.ts b/packages/primevue/src/accordionheader/AccordionHeader.d.ts index f8e6089c6..cb5ed1535 100755 --- a/packages/primevue/src/accordionheader/AccordionHeader.d.ts +++ b/packages/primevue/src/accordionheader/AccordionHeader.d.ts @@ -10,7 +10,7 @@ import type { DefineComponent, DesignToken, EmitFn, GlobalComponentConstructor, PassThrough } from '@primevue/core'; import type { ComponentHooks } from '@primevue/core/basecomponent'; import type { PassThroughOptions } from 'primevue/passthrough'; -import { VNode } from 'vue'; +import type { Component, VNode } from 'vue'; export declare type AccordionHeaderPassThroughOptionType = AccordionHeaderPassThroughAttributes | ((options: AccordionHeaderPassThroughMethodOptions) => AccordionHeaderPassThroughAttributes | string) | string | null | undefined; @@ -76,7 +76,7 @@ export interface AccordionHeaderProps { * Use to change the HTML tag of root element. * @defaultValue BUTTON */ - as?: string | undefined; + as?: string | Component | undefined; /** * When enabled, it changes the default rendered element for the one passed as a child element. * @defaultValue false diff --git a/packages/primevue/src/accordionheader/BaseAccordionHeader.vue b/packages/primevue/src/accordionheader/BaseAccordionHeader.vue index d21a147cd..7fe885b17 100644 --- a/packages/primevue/src/accordionheader/BaseAccordionHeader.vue +++ b/packages/primevue/src/accordionheader/BaseAccordionHeader.vue @@ -7,7 +7,7 @@ export default { extends: BaseComponent, props: { as: { - type: String, + type: [String, Object], default: 'BUTTON' }, asChild: { diff --git a/packages/primevue/src/accordionpanel/AccordionPanel.d.ts b/packages/primevue/src/accordionpanel/AccordionPanel.d.ts index d92d320f7..5cb2953b1 100755 --- a/packages/primevue/src/accordionpanel/AccordionPanel.d.ts +++ b/packages/primevue/src/accordionpanel/AccordionPanel.d.ts @@ -10,7 +10,7 @@ import type { DefineComponent, DesignToken, EmitFn, GlobalComponentConstructor, PassThrough } from '@primevue/core'; import type { ComponentHooks } from '@primevue/core/basecomponent'; import type { PassThroughOptions } from 'primevue/passthrough'; -import { VNode } from 'vue'; +import type { Component, VNode } from 'vue'; export declare type AccordionPanelPassThroughOptionType = AccordionPanelPassThroughAttributes | ((options: AccordionPanelPassThroughMethodOptions) => AccordionPanelPassThroughAttributes | string) | string | null | undefined; @@ -81,7 +81,7 @@ export interface AccordionPanelProps { * Use to change the HTML tag of root element. * @defaultValue DIV */ - as?: string | undefined; + as?: string | Component | undefined; /** * When enabled, it changes the default rendered element for the one passed as a child element. * @defaultValue false diff --git a/packages/primevue/src/accordionpanel/BaseAccordionPanel.vue b/packages/primevue/src/accordionpanel/BaseAccordionPanel.vue index eea329df2..001817c9b 100644 --- a/packages/primevue/src/accordionpanel/BaseAccordionPanel.vue +++ b/packages/primevue/src/accordionpanel/BaseAccordionPanel.vue @@ -15,7 +15,7 @@ export default { default: false }, as: { - type: String, + type: [String, Object], default: 'DIV' }, asChild: { diff --git a/packages/primevue/src/button/Button.d.ts b/packages/primevue/src/button/Button.d.ts index 3b309f6f1..c5b1f30da 100755 --- a/packages/primevue/src/button/Button.d.ts +++ b/packages/primevue/src/button/Button.d.ts @@ -10,7 +10,7 @@ import type { DefineComponent, DesignToken, EmitFn, GlobalComponentConstructor, HintedString, PassThrough } from '@primevue/core'; import type { ComponentHooks } from '@primevue/core/basecomponent'; import type { PassThroughOptions } from 'primevue/passthrough'; -import { ButtonHTMLAttributes, VNode } from 'vue'; +import type { ButtonHTMLAttributes, Component, VNode } from 'vue'; export declare type ButtonPassThroughOptionType = ButtonPassThroughAttributes | ((options: ButtonPassThroughMethodOptions) => ButtonPassThroughAttributes | string) | string | null | undefined; @@ -133,7 +133,7 @@ export interface ButtonProps extends ButtonHTMLAttributes { * Use to change the HTML tag of root element. * @defaultValue BUTTON */ - as?: string | undefined; + as?: string | Component | undefined; /** * When enabled, it changes the default rendered element for the one passed as a child element. * @defaultValue false diff --git a/packages/primevue/src/step/BaseStep.vue b/packages/primevue/src/step/BaseStep.vue index 57ba3939a..d3f3ba573 100644 --- a/packages/primevue/src/step/BaseStep.vue +++ b/packages/primevue/src/step/BaseStep.vue @@ -19,7 +19,7 @@ export default { default: false }, as: { - type: String, + type: [String, Object], default: 'DIV' } }, diff --git a/packages/primevue/src/step/Step.d.ts b/packages/primevue/src/step/Step.d.ts index 6128ebd39..d6bde4f42 100644 --- a/packages/primevue/src/step/Step.d.ts +++ b/packages/primevue/src/step/Step.d.ts @@ -10,7 +10,7 @@ import type { DefineComponent, DesignToken, EmitFn, GlobalComponentConstructor, PassThrough } from '@primevue/core'; import type { ComponentHooks } from '@primevue/core/basecomponent'; import type { PassThroughOptions } from 'primevue/passthrough'; -import { VNode } from 'vue'; +import type { Component, VNode } from 'vue'; export declare type StepPassThroughOptionType = StepPassThroughAttributes | ((options: StepPassThroughMethodOptions) => StepPassThroughAttributes | string) | string | null | undefined; @@ -93,7 +93,7 @@ export interface StepProps { * Use to change the HTML tag of root element. * @defaultValue BUTTON */ - as?: string | undefined; + as?: string | Component | undefined; /** * When enabled, it changes the default rendered element for the one passed as a child element. * @defaultValue false diff --git a/packages/primevue/src/steppanel/BaseStepPanel.vue b/packages/primevue/src/steppanel/BaseStepPanel.vue index 2d4030eba..c55e6f64c 100644 --- a/packages/primevue/src/steppanel/BaseStepPanel.vue +++ b/packages/primevue/src/steppanel/BaseStepPanel.vue @@ -15,7 +15,7 @@ export default { default: false }, as: { - type: String, + type: [String, Object], default: 'DIV' } }, diff --git a/packages/primevue/src/steppanel/StepPanel.d.ts b/packages/primevue/src/steppanel/StepPanel.d.ts index b86d57496..6ed85caec 100644 --- a/packages/primevue/src/steppanel/StepPanel.d.ts +++ b/packages/primevue/src/steppanel/StepPanel.d.ts @@ -10,7 +10,7 @@ import type { DefineComponent, DesignToken, EmitFn, GlobalComponentConstructor, PassThrough } from '@primevue/core'; import type { ComponentHooks } from '@primevue/core/basecomponent'; import type { PassThroughOptions } from 'primevue/passthrough'; -import { VNode } from 'vue'; +import type { Component, VNode } from 'vue'; export declare type StepPanelPassThroughOptionType = StepPanelPassThroughAttributes | ((options: StepPanelPassThroughMethodOptions) => StepPanelPassThroughAttributes | string) | string | null | undefined; @@ -72,7 +72,7 @@ export interface StepPanelProps { * Use to change the HTML tag of root element. * @defaultValue BUTTON */ - as?: string | undefined; + as?: string | Component | undefined; /** * When enabled, it changes the default rendered element for the one passed as a child element. * @defaultValue false diff --git a/packages/primevue/src/tab/BaseTab.vue b/packages/primevue/src/tab/BaseTab.vue index 15050b3fb..2a801d123 100644 --- a/packages/primevue/src/tab/BaseTab.vue +++ b/packages/primevue/src/tab/BaseTab.vue @@ -15,7 +15,7 @@ export default { default: false }, as: { - type: String, + type: [String, Object], default: 'BUTTON' }, asChild: { diff --git a/packages/primevue/src/tab/Tab.d.ts b/packages/primevue/src/tab/Tab.d.ts index f90c8f9c3..9a422978f 100755 --- a/packages/primevue/src/tab/Tab.d.ts +++ b/packages/primevue/src/tab/Tab.d.ts @@ -10,7 +10,7 @@ import type { DefineComponent, DesignToken, EmitFn, GlobalComponentConstructor, PassThrough } from '@primevue/core'; import type { ComponentHooks } from '@primevue/core/basecomponent'; import type { PassThroughOptions } from 'primevue/passthrough'; -import { VNode } from 'vue'; +import type { Component, VNode } from 'vue'; export declare type TabPassThroughOptionType = TabPassThroughAttributes | ((options: TabPassThroughMethodOptions) => TabPassThroughAttributes | string) | string | null | undefined; @@ -81,7 +81,7 @@ export interface TabProps { * Use to change the HTML tag of root element. * @defaultValue BUTTON */ - as?: string | undefined; + as?: string | Component | undefined; /** * When enabled, it changes the default rendered element for the one passed as a child element. * @defaultValue false diff --git a/packages/primevue/src/tabpanel/BaseTabPanel.vue b/packages/primevue/src/tabpanel/BaseTabPanel.vue index 084dcec14..eba74e8c3 100644 --- a/packages/primevue/src/tabpanel/BaseTabPanel.vue +++ b/packages/primevue/src/tabpanel/BaseTabPanel.vue @@ -12,7 +12,7 @@ export default { default: undefined }, as: { - type: String, + type: [String, Object], default: 'DIV' }, asChild: { diff --git a/packages/primevue/src/tabpanel/TabPanel.d.ts b/packages/primevue/src/tabpanel/TabPanel.d.ts index 0f47c26ed..307da7fa6 100755 --- a/packages/primevue/src/tabpanel/TabPanel.d.ts +++ b/packages/primevue/src/tabpanel/TabPanel.d.ts @@ -10,7 +10,7 @@ import type { DefineComponent, DesignToken, EmitFn, GlobalComponentConstructor, PassThrough } from '@primevue/core'; import type { ComponentHooks } from '@primevue/core/basecomponent'; import type { PassThroughOptions } from 'primevue/passthrough'; -import { AnchorHTMLAttributes, HTMLAttributes, LiHTMLAttributes, VNode } from 'vue'; +import type { AnchorHTMLAttributes, Component, HTMLAttributes, LiHTMLAttributes, VNode } from 'vue'; export declare type TabPanelPassThroughOptionType = TabPanelPassThroughAttributes | ((options: TabPanelPassThroughMethodOptions) => TabPanelPassThroughAttributes | string) | string | null | undefined; @@ -96,7 +96,7 @@ export interface TabPanelProps { * Use to change the HTML tag of root element. * @defaultValue DIV */ - as?: string | undefined; + as?: string | Component | undefined; /** * When enabled, it changes the default rendered element for the one passed as a child element. * @defaultValue false