@nuxt/ui 4.0.0-alpha.0 → 4.0.0-alpha.1
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/.nuxt/ui/changelog-version.ts +1 -1
- package/.nuxt/ui/changelog-versions.ts +2 -2
- package/README.md +10 -10
- package/dist/module.json +2 -2
- package/dist/module.mjs +3 -3
- package/dist/runtime/components/Accordion.vue +1 -1
- package/dist/runtime/components/Accordion.vue.d.ts +5 -4
- package/dist/runtime/components/Alert.vue +2 -2
- package/dist/runtime/components/Alert.vue.d.ts +4 -4
- package/dist/runtime/components/App.vue +1 -1
- package/dist/runtime/components/App.vue.d.ts +1 -1
- package/dist/runtime/components/AuthForm.vue +1 -1
- package/dist/runtime/components/AuthForm.vue.d.ts +3 -3
- package/dist/runtime/components/Avatar.vue +1 -1
- package/dist/runtime/components/Avatar.vue.d.ts +3 -3
- package/dist/runtime/components/AvatarGroup.vue.d.ts +1 -1
- package/dist/runtime/components/Badge.vue +3 -3
- package/dist/runtime/components/Badge.vue.d.ts +1 -1
- package/dist/runtime/components/Banner.vue +2 -2
- package/dist/runtime/components/Banner.vue.d.ts +4 -4
- package/dist/runtime/components/BlogPost.vue.d.ts +1 -1
- package/dist/runtime/components/BlogPosts.vue.d.ts +1 -1
- package/dist/runtime/components/Breadcrumb.vue +1 -1
- package/dist/runtime/components/Breadcrumb.vue.d.ts +4 -4
- package/dist/runtime/components/Button.vue +4 -4
- package/dist/runtime/components/Button.vue.d.ts +1 -1
- package/dist/runtime/components/Calendar.vue +5 -5
- package/dist/runtime/components/Calendar.vue.d.ts +8 -7
- package/dist/runtime/components/Card.vue.d.ts +1 -1
- package/dist/runtime/components/Carousel.vue +3 -3
- package/dist/runtime/components/Carousel.vue.d.ts +4 -4
- package/dist/runtime/components/ChangelogVersion.vue.d.ts +1 -1
- package/dist/runtime/components/ChangelogVersions.vue.d.ts +1 -1
- package/dist/runtime/components/ChatMessage.vue +1 -1
- package/dist/runtime/components/ChatMessage.vue.d.ts +3 -3
- package/dist/runtime/components/ChatMessages.vue +1 -1
- package/dist/runtime/components/ChatMessages.vue.d.ts +3 -3
- package/dist/runtime/components/ChatPalette.vue.d.ts +1 -1
- package/dist/runtime/components/ChatPromptSubmit.vue +4 -4
- package/dist/runtime/components/ChatPromptSubmit.vue.d.ts +6 -6
- package/dist/runtime/components/Checkbox.vue +2 -2
- package/dist/runtime/components/Checkbox.vue.d.ts +7 -6
- package/dist/runtime/components/CheckboxGroup.vue +1 -1
- package/dist/runtime/components/CheckboxGroup.vue.d.ts +4 -4
- package/dist/runtime/components/Chip.vue.d.ts +2 -2
- package/dist/runtime/components/Collapsible.vue.d.ts +1 -1
- package/dist/runtime/components/ColorPicker.vue.d.ts +1 -1
- package/dist/runtime/components/CommandPalette.vue +6 -6
- package/dist/runtime/components/CommandPalette.vue.d.ts +9 -9
- package/dist/runtime/components/Container.vue.d.ts +1 -1
- package/dist/runtime/components/ContextMenu.vue +4 -3
- package/dist/runtime/components/ContextMenu.vue.d.ts +6 -6
- package/dist/runtime/components/ContextMenuContent.vue +3 -3
- package/dist/runtime/components/ContextMenuContent.vue.d.ts +5 -5
- package/dist/runtime/components/DashboardGroup.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardNavbar.vue +1 -1
- package/dist/runtime/components/DashboardNavbar.vue.d.ts +3 -3
- package/dist/runtime/components/DashboardPanel.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardResizeHandle.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardSearch.vue +3 -3
- package/dist/runtime/components/DashboardSearch.vue.d.ts +4 -4
- package/dist/runtime/components/DashboardSearchButton.vue +1 -1
- package/dist/runtime/components/DashboardSearchButton.vue.d.ts +3 -3
- package/dist/runtime/components/DashboardSidebar.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardSidebarCollapse.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardSidebarToggle.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardToolbar.vue.d.ts +1 -1
- package/dist/runtime/components/Drawer.vue.d.ts +1 -1
- package/dist/runtime/components/DropdownMenu.vue +3 -3
- package/dist/runtime/components/DropdownMenu.vue.d.ts +6 -6
- package/dist/runtime/components/DropdownMenuContent.vue +3 -3
- package/dist/runtime/components/DropdownMenuContent.vue.d.ts +5 -5
- package/dist/runtime/components/Error.vue.d.ts +1 -1
- package/dist/runtime/components/FieldGroup.vue.d.ts +1 -1
- package/dist/runtime/components/FileUpload.vue +4 -4
- package/dist/runtime/components/FileUpload.vue.d.ts +9 -10
- package/dist/runtime/components/Footer.vue.d.ts +1 -1
- package/dist/runtime/components/FooterColumns.vue.d.ts +3 -3
- package/dist/runtime/components/Form.vue +2 -2
- package/dist/runtime/components/Form.vue.d.ts +7 -7
- package/dist/runtime/components/FormField.vue +2 -2
- package/dist/runtime/components/FormField.vue.d.ts +1 -1
- package/dist/runtime/components/Header.vue.d.ts +1 -1
- package/dist/runtime/components/Icon.vue +3 -2
- package/dist/runtime/components/Icon.vue.d.ts +2 -2
- package/dist/runtime/components/Input.vue +8 -5
- package/dist/runtime/components/Input.vue.d.ts +6 -11
- package/dist/runtime/components/InputMenu.vue +7 -7
- package/dist/runtime/components/InputMenu.vue.d.ts +14 -14
- package/dist/runtime/components/InputNumber.vue +12 -6
- package/dist/runtime/components/InputNumber.vue.d.ts +13 -9
- package/dist/runtime/components/InputTags.vue +5 -5
- package/dist/runtime/components/InputTags.vue.d.ts +3 -2
- package/dist/runtime/components/Kbd.vue.d.ts +1 -1
- package/dist/runtime/components/Link.vue.d.ts +1 -1
- package/dist/runtime/components/LinkBase.vue.d.ts +1 -1
- package/dist/runtime/components/Main.vue.d.ts +1 -1
- package/dist/runtime/components/Marquee.vue.d.ts +1 -1
- package/dist/runtime/components/Modal.vue +1 -1
- package/dist/runtime/components/Modal.vue.d.ts +3 -3
- package/dist/runtime/components/NavigationMenu.vue +2 -2
- package/dist/runtime/components/NavigationMenu.vue.d.ts +6 -6
- package/dist/runtime/components/OverlayProvider.vue.d.ts +1 -1
- package/dist/runtime/components/Page.vue.d.ts +1 -1
- package/dist/runtime/components/PageAnchors.vue.d.ts +3 -3
- package/dist/runtime/components/PageAside.vue.d.ts +1 -1
- package/dist/runtime/components/PageBody.vue.d.ts +1 -1
- package/dist/runtime/components/PageCTA.vue.d.ts +1 -1
- package/dist/runtime/components/PageCard.vue +1 -1
- package/dist/runtime/components/PageCard.vue.d.ts +3 -3
- package/dist/runtime/components/PageColumns.vue.d.ts +1 -1
- package/dist/runtime/components/PageFeature.vue +1 -1
- package/dist/runtime/components/PageFeature.vue.d.ts +3 -3
- package/dist/runtime/components/PageGrid.vue.d.ts +1 -1
- package/dist/runtime/components/PageHeader.vue.d.ts +1 -1
- package/dist/runtime/components/PageHero.vue.d.ts +1 -1
- package/dist/runtime/components/PageLinks.vue.d.ts +3 -3
- package/dist/runtime/components/PageList.vue.d.ts +1 -1
- package/dist/runtime/components/PageLogos.vue.d.ts +1 -1
- package/dist/runtime/components/PageSection.vue +1 -1
- package/dist/runtime/components/PageSection.vue.d.ts +3 -3
- package/dist/runtime/components/Pagination.vue +5 -5
- package/dist/runtime/components/Pagination.vue.d.ts +7 -7
- package/dist/runtime/components/PinInput.vue.d.ts +6 -6
- package/dist/runtime/components/Popover.vue.d.ts +1 -1
- package/dist/runtime/components/PricingPlan.vue.d.ts +3 -3
- package/dist/runtime/components/PricingPlans.vue.d.ts +1 -1
- package/dist/runtime/components/PricingTable.vue.d.ts +1 -1
- package/dist/runtime/components/Progress.vue.d.ts +1 -1
- package/dist/runtime/components/RadioGroup.vue.d.ts +4 -4
- package/dist/runtime/components/Select.vue +5 -5
- package/dist/runtime/components/Select.vue.d.ts +13 -13
- package/dist/runtime/components/SelectMenu.vue +5 -5
- package/dist/runtime/components/SelectMenu.vue.d.ts +13 -13
- package/dist/runtime/components/Separator.vue +1 -1
- package/dist/runtime/components/Separator.vue.d.ts +3 -3
- package/dist/runtime/components/Skeleton.vue.d.ts +1 -1
- package/dist/runtime/components/Slideover.vue +1 -1
- package/dist/runtime/components/Slideover.vue.d.ts +3 -3
- package/dist/runtime/components/Slider.vue +1 -1
- package/dist/runtime/components/Slider.vue.d.ts +6 -7
- package/dist/runtime/components/Stepper.vue.d.ts +8 -7
- package/dist/runtime/components/Switch.vue +3 -3
- package/dist/runtime/components/Switch.vue.d.ts +8 -7
- package/dist/runtime/components/Table.vue +2 -2
- package/dist/runtime/components/Table.vue.d.ts +1 -1
- package/dist/runtime/components/Tabs.vue.d.ts +3 -3
- package/dist/runtime/components/Textarea.vue +8 -5
- package/dist/runtime/components/Textarea.vue.d.ts +6 -11
- package/dist/runtime/components/Timeline.vue.d.ts +3 -3
- package/dist/runtime/components/Toast.vue +2 -2
- package/dist/runtime/components/Toast.vue.d.ts +3 -3
- package/dist/runtime/components/Toaster.vue.d.ts +1 -1
- package/dist/runtime/components/Tooltip.vue.d.ts +1 -1
- package/dist/runtime/components/Tree.vue +3 -3
- package/dist/runtime/components/Tree.vue.d.ts +9 -8
- package/dist/runtime/components/User.vue.d.ts +1 -1
- package/dist/runtime/components/color-mode/ColorModeAvatar.vue.d.ts +1 -1
- package/dist/runtime/components/color-mode/ColorModeButton.vue.d.ts +1 -1
- package/dist/runtime/components/color-mode/ColorModeImage.vue.d.ts +1 -1
- package/dist/runtime/components/color-mode/ColorModeSelect.vue.d.ts +1 -1
- package/dist/runtime/components/color-mode/ColorModeSwitch.vue.d.ts +1 -1
- package/dist/runtime/components/content/ContentNavigation.vue +1 -1
- package/dist/runtime/components/content/ContentNavigation.vue.d.ts +5 -5
- package/dist/runtime/components/content/ContentSearch.vue +3 -3
- package/dist/runtime/components/content/ContentSearch.vue.d.ts +7 -7
- package/dist/runtime/components/content/ContentSearchButton.vue +1 -1
- package/dist/runtime/components/content/ContentSearchButton.vue.d.ts +3 -3
- package/dist/runtime/components/content/ContentSurround.vue +2 -2
- package/dist/runtime/components/content/ContentSurround.vue.d.ts +5 -4
- package/dist/runtime/components/content/ContentToc.vue +1 -1
- package/dist/runtime/components/content/ContentToc.vue.d.ts +3 -2
- package/dist/runtime/components/locale/LocaleSelect.vue.d.ts +1 -1
- package/dist/runtime/components/prose/A.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Accordion.vue.d.ts +1 -1
- package/dist/runtime/components/prose/AccordionItem.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Badge.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Blockquote.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Callout.vue +1 -1
- package/dist/runtime/components/prose/Callout.vue.d.ts +3 -3
- package/dist/runtime/components/prose/Card.vue +1 -1
- package/dist/runtime/components/prose/Card.vue.d.ts +3 -3
- package/dist/runtime/components/prose/CardGroup.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Code.vue.d.ts +1 -1
- package/dist/runtime/components/prose/CodeCollapse.vue +1 -1
- package/dist/runtime/components/prose/CodeCollapse.vue.d.ts +3 -2
- package/dist/runtime/components/prose/CodeGroup.vue.d.ts +1 -1
- package/dist/runtime/components/prose/CodeIcon.vue +1 -1
- package/dist/runtime/components/prose/CodeIcon.vue.d.ts +3 -2
- package/dist/runtime/components/prose/CodePreview.vue.d.ts +1 -1
- package/dist/runtime/components/prose/CodeTree.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Collapsible.vue +1 -1
- package/dist/runtime/components/prose/Collapsible.vue.d.ts +3 -2
- package/dist/runtime/components/prose/Em.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Field.vue.d.ts +1 -1
- package/dist/runtime/components/prose/FieldGroup.vue.d.ts +1 -1
- package/dist/runtime/components/prose/H1.vue.d.ts +1 -1
- package/dist/runtime/components/prose/H2.vue.d.ts +1 -1
- package/dist/runtime/components/prose/H3.vue.d.ts +1 -1
- package/dist/runtime/components/prose/H4.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Hr.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Icon.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Img.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Kbd.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Li.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Ol.vue.d.ts +1 -1
- package/dist/runtime/components/prose/P.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Pre.vue +1 -1
- package/dist/runtime/components/prose/Pre.vue.d.ts +3 -2
- package/dist/runtime/components/prose/Script.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Steps.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Strong.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Table.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Tabs.vue.d.ts +1 -1
- package/dist/runtime/components/prose/TabsItem.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Tbody.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Td.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Th.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Thead.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Tr.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Ul.vue.d.ts +1 -1
- package/dist/runtime/components/prose/callout/Caution.vue.d.ts +1 -1
- package/dist/runtime/components/prose/callout/Note.vue.d.ts +1 -1
- package/dist/runtime/components/prose/callout/Tip.vue.d.ts +1 -1
- package/dist/runtime/components/prose/callout/Warning.vue.d.ts +1 -1
- package/dist/runtime/composables/useComponentIcons.d.ts +5 -5
- package/dist/runtime/composables/useFormField.d.ts +2 -1
- package/dist/runtime/composables/useFormField.js +1 -0
- package/dist/runtime/index.css +1 -1
- package/dist/runtime/inertia/components/Link.vue +3 -0
- package/dist/runtime/inertia/components/Link.vue.d.ts +1 -1
- package/dist/runtime/inertia/components/LinkBase.vue.d.ts +1 -1
- package/dist/runtime/types/form.d.ts +3 -3
- package/dist/runtime/types/input.d.ts +8 -0
- package/dist/runtime/types/input.js +0 -0
- package/dist/runtime/types/utils.d.ts +1 -1
- package/dist/runtime/utils/index.d.ts +1 -0
- package/dist/runtime/utils/index.js +30 -1
- package/dist/runtime/utils/tv.d.ts +1 -1
- package/dist/runtime/vue/components/Icon.vue +3 -2
- package/dist/runtime/vue/components/Icon.vue.d.ts +3 -2
- package/dist/runtime/vue/components/Link.vue.d.ts +1 -1
- package/dist/runtime/vue/components/color-mode/ColorModeButton.vue.d.ts +1 -1
- package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue.d.ts +1 -1
- package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue.d.ts +1 -1
- package/dist/shared/{ui.DT-jTZu1.mjs → ui.BEZXPd3d.mjs} +3 -3
- package/dist/unplugin.mjs +12 -4
- package/dist/vite.mjs +1 -1
- package/package.json +20 -22
|
@@ -14,7 +14,7 @@ import UIcon from "./Icon.vue";
|
|
|
14
14
|
defineOptions({ inheritAttrs: false });
|
|
15
15
|
const props = defineProps({
|
|
16
16
|
as: { type: null, required: false },
|
|
17
|
-
icon: { type: String, required: false },
|
|
17
|
+
icon: { type: [String, Object], required: false },
|
|
18
18
|
title: { type: String, required: false },
|
|
19
19
|
description: { type: String, required: false },
|
|
20
20
|
orientation: { type: null, required: false, default: "vertical" },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AppConfig } from '@nuxt/schema';
|
|
2
2
|
import theme from '#build/ui/page-card';
|
|
3
|
-
import type { LinkProps } from '../types';
|
|
3
|
+
import type { IconProps, LinkProps } from '../types';
|
|
4
4
|
import type { ComponentConfig } from '../types/tv';
|
|
5
5
|
type PageCard = ComponentConfig<typeof theme, AppConfig, 'pageCard'>;
|
|
6
6
|
export interface PageCardProps {
|
|
@@ -13,7 +13,7 @@ export interface PageCardProps {
|
|
|
13
13
|
* The icon displayed above the title.
|
|
14
14
|
* @IconifyIcon
|
|
15
15
|
*/
|
|
16
|
-
icon?:
|
|
16
|
+
icon?: IconProps['name'];
|
|
17
17
|
title?: string;
|
|
18
18
|
description?: string;
|
|
19
19
|
/**
|
|
@@ -61,7 +61,7 @@ export interface PageCardSlots {
|
|
|
61
61
|
footer(props?: {}): any;
|
|
62
62
|
default(props?: {}): any;
|
|
63
63
|
}
|
|
64
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PageCardProps,
|
|
64
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PageCardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PageCardProps> & Readonly<{}>, {
|
|
65
65
|
orientation: PageCard["variants"]["orientation"];
|
|
66
66
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, PageCardSlots>;
|
|
67
67
|
export default _default;
|
|
@@ -9,7 +9,7 @@ export interface PageColumnsProps {
|
|
|
9
9
|
export interface PageColumnsSlots {
|
|
10
10
|
default(props?: {}): any;
|
|
11
11
|
}
|
|
12
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PageColumnsProps,
|
|
12
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PageColumnsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PageColumnsProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, PageColumnsSlots>;
|
|
13
13
|
export default _default;
|
|
14
14
|
type __VLS_WithSlots<T, S> = T & {
|
|
15
15
|
new (): {
|
|
@@ -13,7 +13,7 @@ import UIcon from "./Icon.vue";
|
|
|
13
13
|
defineOptions({ inheritAttrs: false });
|
|
14
14
|
const props = defineProps({
|
|
15
15
|
as: { type: null, required: false },
|
|
16
|
-
icon: { type: String, required: false },
|
|
16
|
+
icon: { type: [String, Object], required: false },
|
|
17
17
|
title: { type: String, required: false },
|
|
18
18
|
description: { type: String, required: false },
|
|
19
19
|
orientation: { type: null, required: false, default: "horizontal" },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AppConfig } from '@nuxt/schema';
|
|
2
2
|
import theme from '#build/ui/page-feature';
|
|
3
|
-
import type { LinkProps } from '../types';
|
|
3
|
+
import type { IconProps, LinkProps } from '../types';
|
|
4
4
|
import type { ComponentConfig } from '../types/tv';
|
|
5
5
|
type PageFeature = ComponentConfig<typeof theme, AppConfig, 'pageFeature'>;
|
|
6
6
|
export interface PageFeatureProps {
|
|
@@ -13,7 +13,7 @@ export interface PageFeatureProps {
|
|
|
13
13
|
* The icon displayed next to the title when `orientation` is `horizontal` and above the title when `orientation` is `vertical`.
|
|
14
14
|
* @IconifyIcon
|
|
15
15
|
*/
|
|
16
|
-
icon?:
|
|
16
|
+
icon?: IconProps['name'];
|
|
17
17
|
title?: string;
|
|
18
18
|
description?: string;
|
|
19
19
|
/**
|
|
@@ -33,7 +33,7 @@ export interface PageFeatureSlots {
|
|
|
33
33
|
description(props?: {}): any;
|
|
34
34
|
default(props?: {}): any;
|
|
35
35
|
}
|
|
36
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PageFeatureProps,
|
|
36
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PageFeatureProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PageFeatureProps> & Readonly<{}>, {
|
|
37
37
|
orientation: PageFeature["variants"]["orientation"];
|
|
38
38
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, PageFeatureSlots>;
|
|
39
39
|
export default _default;
|
|
@@ -9,7 +9,7 @@ export interface PageGridProps {
|
|
|
9
9
|
export interface PageGridSlots {
|
|
10
10
|
default(props?: {}): any;
|
|
11
11
|
}
|
|
12
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PageGridProps,
|
|
12
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PageGridProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PageGridProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, PageGridSlots>;
|
|
13
13
|
export default _default;
|
|
14
14
|
type __VLS_WithSlots<T, S> = T & {
|
|
15
15
|
new (): {
|
|
@@ -27,7 +27,7 @@ export interface PageHeaderSlots {
|
|
|
27
27
|
links(props?: {}): any;
|
|
28
28
|
default(props?: {}): any;
|
|
29
29
|
}
|
|
30
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PageHeaderProps,
|
|
30
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PageHeaderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PageHeaderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, PageHeaderSlots>;
|
|
31
31
|
export default _default;
|
|
32
32
|
type __VLS_WithSlots<T, S> = T & {
|
|
33
33
|
new (): {
|
|
@@ -42,7 +42,7 @@ export interface PageHeroSlots {
|
|
|
42
42
|
default(props?: {}): any;
|
|
43
43
|
bottom(props?: {}): any;
|
|
44
44
|
}
|
|
45
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PageHeroProps,
|
|
45
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PageHeroProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PageHeroProps> & Readonly<{}>, {
|
|
46
46
|
orientation: PageHero["variants"]["orientation"];
|
|
47
47
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, PageHeroSlots>;
|
|
48
48
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AppConfig } from '@nuxt/schema';
|
|
2
2
|
import theme from '#build/ui/page-links';
|
|
3
|
-
import type { LinkProps } from '../types';
|
|
3
|
+
import type { IconProps, LinkProps } from '../types';
|
|
4
4
|
import type { ComponentConfig } from '../types/tv';
|
|
5
5
|
type PageLinks = ComponentConfig<typeof theme, AppConfig, 'pageLinks'>;
|
|
6
6
|
export interface PageLink extends Omit<LinkProps, 'custom'> {
|
|
@@ -8,7 +8,7 @@ export interface PageLink extends Omit<LinkProps, 'custom'> {
|
|
|
8
8
|
/**
|
|
9
9
|
* @IconifyIcon
|
|
10
10
|
*/
|
|
11
|
-
icon?:
|
|
11
|
+
icon?: IconProps['name'];
|
|
12
12
|
class?: any;
|
|
13
13
|
ui?: Pick<PageLinks['slots'], 'item' | 'link' | 'linkLabel' | 'linkLabelExternalIcon' | 'linkLeadingIcon'>;
|
|
14
14
|
}
|
|
@@ -35,7 +35,7 @@ export interface PageLinksSlots<T extends PageLink = PageLink> {
|
|
|
35
35
|
'link-trailing': SlotProps<T>;
|
|
36
36
|
}
|
|
37
37
|
declare const _default: <T extends PageLink>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
38
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & PageLinksProps<T> &
|
|
38
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & PageLinksProps<T> & {}> & import("vue").PublicProps;
|
|
39
39
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
40
40
|
attrs: any;
|
|
41
41
|
slots: PageLinksSlots<T>;
|
|
@@ -10,7 +10,7 @@ export interface PageListProps {
|
|
|
10
10
|
export interface PageListSlots {
|
|
11
11
|
default(props?: {}): any;
|
|
12
12
|
}
|
|
13
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PageListProps,
|
|
13
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PageListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PageListProps> & Readonly<{}>, {
|
|
14
14
|
divide: boolean;
|
|
15
15
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, PageListSlots>;
|
|
16
16
|
export default _default;
|
|
@@ -22,7 +22,7 @@ export interface PageLogosProps {
|
|
|
22
22
|
export interface PageLogosSlots {
|
|
23
23
|
default(props?: {}): any;
|
|
24
24
|
}
|
|
25
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PageLogosProps,
|
|
25
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PageLogosProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PageLogosProps> & Readonly<{}>, {
|
|
26
26
|
marquee: boolean | MarqueeProps;
|
|
27
27
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, PageLogosSlots>;
|
|
28
28
|
export default _default;
|
|
@@ -14,7 +14,7 @@ import UButton from "./Button.vue";
|
|
|
14
14
|
const props = defineProps({
|
|
15
15
|
as: { type: null, required: false, default: "section" },
|
|
16
16
|
headline: { type: String, required: false },
|
|
17
|
-
icon: { type: String, required: false },
|
|
17
|
+
icon: { type: [String, Object], required: false },
|
|
18
18
|
title: { type: String, required: false },
|
|
19
19
|
description: { type: String, required: false },
|
|
20
20
|
links: { type: Array, required: false },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AppConfig } from '@nuxt/schema';
|
|
2
2
|
import theme from '#build/ui/page-section';
|
|
3
|
-
import type { ButtonProps, PageFeatureProps } from '../types';
|
|
3
|
+
import type { ButtonProps, IconProps, PageFeatureProps } from '../types';
|
|
4
4
|
import type { ComponentConfig } from '../types/tv';
|
|
5
5
|
type PageSection = ComponentConfig<typeof theme, AppConfig, 'pageSection'>;
|
|
6
6
|
export interface PageSectionProps {
|
|
@@ -17,7 +17,7 @@ export interface PageSectionProps {
|
|
|
17
17
|
* The icon displayed above the title.
|
|
18
18
|
* @IconifyIcon
|
|
19
19
|
*/
|
|
20
|
-
icon?:
|
|
20
|
+
icon?: IconProps['name'];
|
|
21
21
|
title?: string;
|
|
22
22
|
description?: string;
|
|
23
23
|
/**
|
|
@@ -56,7 +56,7 @@ export interface PageSectionSlots {
|
|
|
56
56
|
default(props?: {}): any;
|
|
57
57
|
bottom(props?: {}): any;
|
|
58
58
|
}
|
|
59
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PageSectionProps,
|
|
59
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PageSectionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PageSectionProps> & Readonly<{}>, {
|
|
60
60
|
as: any;
|
|
61
61
|
orientation: PageSection["variants"]["orientation"];
|
|
62
62
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, PageSectionSlots>;
|
|
@@ -12,11 +12,11 @@ import { tv } from "../utils/tv";
|
|
|
12
12
|
import UButton from "./Button.vue";
|
|
13
13
|
const props = defineProps({
|
|
14
14
|
as: { type: null, required: false },
|
|
15
|
-
firstIcon: { type: String, required: false },
|
|
16
|
-
prevIcon: { type: String, required: false },
|
|
17
|
-
nextIcon: { type: String, required: false },
|
|
18
|
-
lastIcon: { type: String, required: false },
|
|
19
|
-
ellipsisIcon: { type: String, required: false },
|
|
15
|
+
firstIcon: { type: [String, Object], required: false },
|
|
16
|
+
prevIcon: { type: [String, Object], required: false },
|
|
17
|
+
nextIcon: { type: [String, Object], required: false },
|
|
18
|
+
lastIcon: { type: [String, Object], required: false },
|
|
19
|
+
ellipsisIcon: { type: [String, Object], required: false },
|
|
20
20
|
color: { type: null, required: false, default: "neutral" },
|
|
21
21
|
variant: { type: null, required: false, default: "outline" },
|
|
22
22
|
activeColor: { type: null, required: false, default: "primary" },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PaginationRootProps, PaginationRootEmits } from 'reka-ui';
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
3
|
import theme from '#build/ui/pagination';
|
|
4
|
-
import type { ButtonProps } from '../types';
|
|
4
|
+
import type { ButtonProps, IconProps } from '../types';
|
|
5
5
|
import type { ComponentConfig } from '../types/tv';
|
|
6
6
|
type Pagination = ComponentConfig<typeof theme, AppConfig, 'pagination'>;
|
|
7
7
|
export interface PaginationProps extends Partial<Pick<PaginationRootProps, 'defaultPage' | 'disabled' | 'itemsPerPage' | 'page' | 'showEdges' | 'siblingCount' | 'total'>> {
|
|
@@ -15,31 +15,31 @@ export interface PaginationProps extends Partial<Pick<PaginationRootProps, 'defa
|
|
|
15
15
|
* @defaultValue appConfig.ui.icons.chevronDoubleLeft
|
|
16
16
|
* @IconifyIcon
|
|
17
17
|
*/
|
|
18
|
-
firstIcon?:
|
|
18
|
+
firstIcon?: IconProps['name'];
|
|
19
19
|
/**
|
|
20
20
|
* The icon to use for the previous page control.
|
|
21
21
|
* @defaultValue appConfig.ui.icons.chevronLeft
|
|
22
22
|
* @IconifyIcon
|
|
23
23
|
*/
|
|
24
|
-
prevIcon?:
|
|
24
|
+
prevIcon?: IconProps['name'];
|
|
25
25
|
/**
|
|
26
26
|
* The icon to use for the next page control.
|
|
27
27
|
* @defaultValue appConfig.ui.icons.chevronRight
|
|
28
28
|
* @IconifyIcon
|
|
29
29
|
*/
|
|
30
|
-
nextIcon?:
|
|
30
|
+
nextIcon?: IconProps['name'];
|
|
31
31
|
/**
|
|
32
32
|
* The icon to use for the last page control.
|
|
33
33
|
* @defaultValue appConfig.ui.icons.chevronDoubleRight
|
|
34
34
|
* @IconifyIcon
|
|
35
35
|
*/
|
|
36
|
-
lastIcon?:
|
|
36
|
+
lastIcon?: IconProps['name'];
|
|
37
37
|
/**
|
|
38
38
|
* The icon to use for the ellipsis control.
|
|
39
39
|
* @defaultValue appConfig.ui.icons.ellipsis
|
|
40
40
|
* @IconifyIcon
|
|
41
41
|
*/
|
|
42
|
-
ellipsisIcon?:
|
|
42
|
+
ellipsisIcon?: IconProps['name'];
|
|
43
43
|
/**
|
|
44
44
|
* The color of the pagination controls.
|
|
45
45
|
* @defaultValue 'neutral'
|
|
@@ -95,7 +95,7 @@ export interface PaginationSlots {
|
|
|
95
95
|
index: number;
|
|
96
96
|
}): any;
|
|
97
97
|
}
|
|
98
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PaginationProps,
|
|
98
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PaginationProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
99
99
|
"update:page": (value: number) => any;
|
|
100
100
|
}, string, import("vue").PublicProps, Readonly<PaginationProps> & Readonly<{
|
|
101
101
|
"onUpdate:page"?: ((value: number) => any) | undefined;
|
|
@@ -35,22 +35,22 @@ export interface PinInputProps<T extends PinInputType = 'text'> extends Pick<Pin
|
|
|
35
35
|
ui?: PinInput['slots'];
|
|
36
36
|
}
|
|
37
37
|
export type PinInputEmits<T extends PinInputType = 'text'> = PinInputRootEmits<T> & {
|
|
38
|
-
change: [
|
|
39
|
-
blur: [
|
|
38
|
+
change: [event: Event];
|
|
39
|
+
blur: [event: Event];
|
|
40
40
|
};
|
|
41
41
|
declare const _default: <T extends PinInputType>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
42
42
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
43
|
-
readonly onBlur?: ((
|
|
44
|
-
readonly onChange?: ((
|
|
43
|
+
readonly onBlur?: ((event: Event) => any) | undefined;
|
|
44
|
+
readonly onChange?: ((event: Event) => any) | undefined;
|
|
45
45
|
readonly "onUpdate:modelValue"?: ((value: [T] extends ["number"] ? number[] : string[]) => any) | undefined;
|
|
46
46
|
readonly onComplete?: ((value: [T] extends ["number"] ? number[] : string[]) => any) | undefined;
|
|
47
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onBlur" | "onChange" | "onUpdate:modelValue" | "onComplete"> & PinInputProps<T> &
|
|
47
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onBlur" | "onChange" | "onUpdate:modelValue" | "onComplete"> & PinInputProps<T> & {}> & import("vue").PublicProps;
|
|
48
48
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
49
49
|
inputsRef: import("vue").Ref<ComponentPublicInstance[], ComponentPublicInstance[]>;
|
|
50
50
|
}>): void;
|
|
51
51
|
attrs: any;
|
|
52
52
|
slots: {};
|
|
53
|
-
emit: ((evt: "blur",
|
|
53
|
+
emit: ((evt: "blur", event: Event) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: [T] extends ["number"] ? number[] : string[]) => void) & ((evt: "complete", value: [T] extends ["number"] ? number[] : string[]) => void);
|
|
54
54
|
}>) => import("vue").VNode & {
|
|
55
55
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
56
56
|
};
|
|
@@ -50,7 +50,7 @@ export interface PopoverSlots {
|
|
|
50
50
|
content(props?: {}): any;
|
|
51
51
|
anchor(props?: {}): any;
|
|
52
52
|
}
|
|
53
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PopoverProps,
|
|
53
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PopoverProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
54
54
|
"update:open": (value: boolean) => any;
|
|
55
55
|
"close:prevent": () => any;
|
|
56
56
|
}, string, import("vue").PublicProps, Readonly<PopoverProps> & Readonly<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AppConfig } from '@nuxt/schema';
|
|
2
2
|
import theme from '#build/ui/pricing-plan';
|
|
3
|
-
import type { BadgeProps, ButtonProps } from '../types';
|
|
3
|
+
import type { BadgeProps, ButtonProps, IconProps } from '../types';
|
|
4
4
|
import type { ComponentConfig } from '../types/tv';
|
|
5
5
|
type PricingPlan = ComponentConfig<typeof theme, AppConfig, 'pricingPlan'>;
|
|
6
6
|
type PricingPlanFeature = {
|
|
@@ -9,7 +9,7 @@ type PricingPlanFeature = {
|
|
|
9
9
|
* @defaultValue appConfig.ui.icons.success
|
|
10
10
|
* @IconifyIcon
|
|
11
11
|
*/
|
|
12
|
-
icon?:
|
|
12
|
+
icon?: IconProps['name'];
|
|
13
13
|
};
|
|
14
14
|
export interface PricingPlanProps {
|
|
15
15
|
/**
|
|
@@ -101,7 +101,7 @@ export interface PricingPlanSlots {
|
|
|
101
101
|
tagline(props?: {}): any;
|
|
102
102
|
terms(props?: {}): any;
|
|
103
103
|
}
|
|
104
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PricingPlanProps,
|
|
104
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PricingPlanProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PricingPlanProps> & Readonly<{}>, {
|
|
105
105
|
orientation: PricingPlan["variants"]["orientation"];
|
|
106
106
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, PricingPlanSlots>;
|
|
107
107
|
export default _default;
|
|
@@ -31,7 +31,7 @@ export interface PricingPlansProps {
|
|
|
31
31
|
export interface PricingPlansSlots {
|
|
32
32
|
default(props?: {}): any;
|
|
33
33
|
}
|
|
34
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PricingPlansProps,
|
|
34
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PricingPlansProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PricingPlansProps> & Readonly<{}>, {
|
|
35
35
|
orientation: PricingPlans["variants"]["orientation"];
|
|
36
36
|
scale: boolean;
|
|
37
37
|
compact: boolean;
|
|
@@ -91,7 +91,7 @@ export type PricingTableSlots<T extends PricingTableTier = PricingTableTier> = {
|
|
|
91
91
|
}) => any;
|
|
92
92
|
} & DynamicSlots<T, 'title' | 'description' | 'badge' | 'button' | 'billing' | 'discount' | 'price'> & FeatureDynamicSlots<PricingTableSectionFeature<T>, 'title' | 'value'> & SectionDynamicSlots<PricingTableSection<T>, 'title'>;
|
|
93
93
|
declare const _default: <T extends PricingTableTier>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
94
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & PricingTableProps<T> &
|
|
94
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & PricingTableProps<T> & {}> & import("vue").PublicProps;
|
|
95
95
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
96
96
|
attrs: any;
|
|
97
97
|
slots: PricingTableSlots<T>;
|
|
@@ -47,7 +47,7 @@ export type ProgressSlots = {
|
|
|
47
47
|
step: number;
|
|
48
48
|
}) => any;
|
|
49
49
|
};
|
|
50
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProgressProps,
|
|
50
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProgressProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
51
51
|
"update:modelValue": (value: string[] | undefined) => any;
|
|
52
52
|
"update:max": (value: number) => any;
|
|
53
53
|
}, string, import("vue").PublicProps, Readonly<ProgressProps> & Readonly<{
|
|
@@ -63,7 +63,7 @@ export interface RadioGroupProps<T extends RadioGroupItem = RadioGroupItem> exte
|
|
|
63
63
|
ui?: RadioGroup['slots'];
|
|
64
64
|
}
|
|
65
65
|
export type RadioGroupEmits = RadioGroupRootEmits & {
|
|
66
|
-
change: [
|
|
66
|
+
change: [event: Event];
|
|
67
67
|
};
|
|
68
68
|
type NormalizeItem<T extends RadioGroupItem> = Exclude<T & {
|
|
69
69
|
id: string;
|
|
@@ -79,13 +79,13 @@ export interface RadioGroupSlots<T extends RadioGroupItem = RadioGroupItem> {
|
|
|
79
79
|
}
|
|
80
80
|
declare const _default: <T extends RadioGroupItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
81
81
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
82
|
-
readonly onChange?: ((
|
|
82
|
+
readonly onChange?: ((event: Event) => any) | undefined;
|
|
83
83
|
readonly "onUpdate:modelValue"?: ((payload: string) => any) | undefined;
|
|
84
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onChange" | "onUpdate:modelValue"> & RadioGroupProps<T> &
|
|
84
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onChange" | "onUpdate:modelValue"> & RadioGroupProps<T> & {}> & import("vue").PublicProps;
|
|
85
85
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
86
86
|
attrs: any;
|
|
87
87
|
slots: RadioGroupSlots<T>;
|
|
88
|
-
emit: ((evt: "change",
|
|
88
|
+
emit: ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", payload: string) => void);
|
|
89
89
|
}>) => import("vue").VNode & {
|
|
90
90
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
91
91
|
};
|
|
@@ -24,8 +24,8 @@ const props = defineProps({
|
|
|
24
24
|
color: { type: null, required: false },
|
|
25
25
|
variant: { type: null, required: false },
|
|
26
26
|
size: { type: null, required: false },
|
|
27
|
-
trailingIcon: { type: String, required: false },
|
|
28
|
-
selectedIcon: { type: String, required: false },
|
|
27
|
+
trailingIcon: { type: [String, Object], required: false },
|
|
28
|
+
selectedIcon: { type: [String, Object], required: false },
|
|
29
29
|
content: { type: Object, required: false },
|
|
30
30
|
arrow: { type: [Boolean, Object], required: false },
|
|
31
31
|
portal: { type: [Boolean, String], required: false, skipCheck: true, default: true },
|
|
@@ -46,13 +46,13 @@ const props = defineProps({
|
|
|
46
46
|
disabled: { type: Boolean, required: false },
|
|
47
47
|
name: { type: String, required: false },
|
|
48
48
|
required: { type: Boolean, required: false },
|
|
49
|
-
icon: { type: String, required: false },
|
|
49
|
+
icon: { type: [String, Object], required: false },
|
|
50
50
|
avatar: { type: Object, required: false },
|
|
51
51
|
leading: { type: Boolean, required: false },
|
|
52
|
-
leadingIcon: { type: String, required: false },
|
|
52
|
+
leadingIcon: { type: [String, Object], required: false },
|
|
53
53
|
trailing: { type: Boolean, required: false },
|
|
54
54
|
loading: { type: Boolean, required: false },
|
|
55
|
-
loadingIcon: { type: String, required: false }
|
|
55
|
+
loadingIcon: { type: [String, Object], required: false }
|
|
56
56
|
});
|
|
57
57
|
const emits = defineEmits(["update:open", "change", "blur", "focus", "update:modelValue"]);
|
|
58
58
|
const slots = defineSlots();
|
|
@@ -2,7 +2,7 @@ import type { SelectRootProps, SelectRootEmits, SelectContentProps, SelectConten
|
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
3
|
import theme from '#build/ui/select';
|
|
4
4
|
import type { UseComponentIconsProps } from '../composables/useComponentIcons';
|
|
5
|
-
import type { AvatarProps, ChipProps } from '../types';
|
|
5
|
+
import type { AvatarProps, ChipProps, IconProps } from '../types';
|
|
6
6
|
import type { AcceptableValue, ArrayOrNested, GetItemKeys, GetModelValue, GetModelValueEmits, NestedItem, EmitsToProps } from '../types/utils';
|
|
7
7
|
import type { ComponentConfig } from '../types/tv';
|
|
8
8
|
type Select = ComponentConfig<typeof theme, AppConfig, 'select'>;
|
|
@@ -11,7 +11,7 @@ interface SelectItemBase {
|
|
|
11
11
|
/**
|
|
12
12
|
* @IconifyIcon
|
|
13
13
|
*/
|
|
14
|
-
icon?:
|
|
14
|
+
icon?: IconProps['name'];
|
|
15
15
|
avatar?: AvatarProps;
|
|
16
16
|
chip?: ChipProps;
|
|
17
17
|
/**
|
|
@@ -48,13 +48,13 @@ export interface SelectProps<T extends ArrayOrNested<SelectItem> = ArrayOrNested
|
|
|
48
48
|
* @defaultValue appConfig.ui.icons.chevronDown
|
|
49
49
|
* @IconifyIcon
|
|
50
50
|
*/
|
|
51
|
-
trailingIcon?:
|
|
51
|
+
trailingIcon?: IconProps['name'];
|
|
52
52
|
/**
|
|
53
53
|
* The icon displayed when an item is selected.
|
|
54
54
|
* @defaultValue appConfig.ui.icons.check
|
|
55
55
|
* @IconifyIcon
|
|
56
56
|
*/
|
|
57
|
-
selectedIcon?:
|
|
57
|
+
selectedIcon?: IconProps['name'];
|
|
58
58
|
/**
|
|
59
59
|
* The content of the menu.
|
|
60
60
|
* @defaultValue { side: 'bottom', sideOffset: 8, collisionPadding: 8, position: 'popper' }
|
|
@@ -95,9 +95,9 @@ export interface SelectProps<T extends ArrayOrNested<SelectItem> = ArrayOrNested
|
|
|
95
95
|
ui?: Select['slots'];
|
|
96
96
|
}
|
|
97
97
|
export type SelectEmits<A extends ArrayOrNested<SelectItem>, VK extends GetItemKeys<A> | undefined, M extends boolean> = Omit<SelectRootEmits, 'update:modelValue'> & {
|
|
98
|
-
change: [
|
|
99
|
-
blur: [
|
|
100
|
-
focus: [
|
|
98
|
+
change: [event: Event];
|
|
99
|
+
blur: [event: FocusEvent];
|
|
100
|
+
focus: [event: FocusEvent];
|
|
101
101
|
} & GetModelValueEmits<A, VK, M>;
|
|
102
102
|
type SlotProps<T extends SelectItem> = (props: {
|
|
103
103
|
item: T;
|
|
@@ -131,12 +131,12 @@ export interface SelectSlots<A extends ArrayOrNested<SelectItem> = ArrayOrNested
|
|
|
131
131
|
}
|
|
132
132
|
declare const _default: <T extends ArrayOrNested<SelectItem>, VK extends GetItemKeys<T> = "value", M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
133
133
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
134
|
-
readonly onBlur?: ((
|
|
135
|
-
readonly onChange?: ((
|
|
136
|
-
readonly onFocus?: ((
|
|
134
|
+
readonly onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
135
|
+
readonly onChange?: ((event: Event) => any) | undefined;
|
|
136
|
+
readonly onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
137
137
|
readonly "onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
138
|
-
readonly "onUpdate:modelValue"?: ((
|
|
139
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onFocus" | "onBlur" | "onChange" | "onUpdate:open" | "onUpdate:modelValue"> & SelectProps<T, VK, M> &
|
|
138
|
+
readonly "onUpdate:modelValue"?: ((value: GetModelValue<T, VK, M>) => any) | undefined;
|
|
139
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onFocus" | "onBlur" | "onChange" | "onUpdate:open" | "onUpdate:modelValue"> & SelectProps<T, VK, M> & {}> & import("vue").PublicProps;
|
|
140
140
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
141
141
|
triggerRef: import("vue").Ref<({
|
|
142
142
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -244,7 +244,7 @@ declare const _default: <T extends ArrayOrNested<SelectItem>, VK extends GetItem
|
|
|
244
244
|
}>): void;
|
|
245
245
|
attrs: any;
|
|
246
246
|
slots: SelectSlots<T, VK, M, NestedItem<T>>;
|
|
247
|
-
emit: ((evt: "blur",
|
|
247
|
+
emit: ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: GetModelValue<T, VK, M>) => void);
|
|
248
248
|
}>) => import("vue").VNode & {
|
|
249
249
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
250
250
|
};
|
|
@@ -28,8 +28,8 @@ const props = defineProps({
|
|
|
28
28
|
variant: { type: null, required: false },
|
|
29
29
|
size: { type: null, required: false },
|
|
30
30
|
required: { type: Boolean, required: false },
|
|
31
|
-
trailingIcon: { type: String, required: false },
|
|
32
|
-
selectedIcon: { type: String, required: false },
|
|
31
|
+
trailingIcon: { type: [String, Object], required: false },
|
|
32
|
+
selectedIcon: { type: [String, Object], required: false },
|
|
33
33
|
content: { type: Object, required: false },
|
|
34
34
|
arrow: { type: [Boolean, Object], required: false },
|
|
35
35
|
portal: { type: [Boolean, String], required: false, skipCheck: true, default: true },
|
|
@@ -54,13 +54,13 @@ const props = defineProps({
|
|
|
54
54
|
resetSearchTermOnBlur: { type: Boolean, required: false, default: true },
|
|
55
55
|
resetSearchTermOnSelect: { type: Boolean, required: false, default: true },
|
|
56
56
|
highlightOnHover: { type: Boolean, required: false },
|
|
57
|
-
icon: { type: String, required: false },
|
|
57
|
+
icon: { type: [String, Object], required: false },
|
|
58
58
|
avatar: { type: Object, required: false },
|
|
59
59
|
leading: { type: Boolean, required: false },
|
|
60
|
-
leadingIcon: { type: String, required: false },
|
|
60
|
+
leadingIcon: { type: [String, Object], required: false },
|
|
61
61
|
trailing: { type: Boolean, required: false },
|
|
62
62
|
loading: { type: Boolean, required: false },
|
|
63
|
-
loadingIcon: { type: String, required: false }
|
|
63
|
+
loadingIcon: { type: [String, Object], required: false }
|
|
64
64
|
});
|
|
65
65
|
const emits = defineEmits(["update:open", "change", "blur", "focus", "create", "highlight", "update:modelValue"]);
|
|
66
66
|
const slots = defineSlots();
|
|
@@ -2,7 +2,7 @@ import type { ComboboxRootProps, ComboboxRootEmits, ComboboxContentProps, Combob
|
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
3
|
import theme from '#build/ui/select-menu';
|
|
4
4
|
import type { UseComponentIconsProps } from '../composables/useComponentIcons';
|
|
5
|
-
import type { AvatarProps, ChipProps, InputProps } from '../types';
|
|
5
|
+
import type { AvatarProps, ChipProps, IconProps, InputProps } from '../types';
|
|
6
6
|
import type { AcceptableValue, ArrayOrNested, GetItemKeys, GetModelValue, GetModelValueEmits, NestedItem, EmitsToProps } from '../types/utils';
|
|
7
7
|
import type { ComponentConfig } from '../types/tv';
|
|
8
8
|
type SelectMenu = ComponentConfig<typeof theme, AppConfig, 'selectMenu'>;
|
|
@@ -11,7 +11,7 @@ interface _SelectMenuItem {
|
|
|
11
11
|
/**
|
|
12
12
|
* @IconifyIcon
|
|
13
13
|
*/
|
|
14
|
-
icon?:
|
|
14
|
+
icon?: IconProps['name'];
|
|
15
15
|
avatar?: AvatarProps;
|
|
16
16
|
chip?: ChipProps;
|
|
17
17
|
/**
|
|
@@ -55,13 +55,13 @@ export interface SelectMenuProps<T extends ArrayOrNested<SelectMenuItem> = Array
|
|
|
55
55
|
* @defaultValue appConfig.ui.icons.chevronDown
|
|
56
56
|
* @IconifyIcon
|
|
57
57
|
*/
|
|
58
|
-
trailingIcon?:
|
|
58
|
+
trailingIcon?: IconProps['name'];
|
|
59
59
|
/**
|
|
60
60
|
* The icon displayed when an item is selected.
|
|
61
61
|
* @defaultValue appConfig.ui.icons.check
|
|
62
62
|
* @IconifyIcon
|
|
63
63
|
*/
|
|
64
|
-
selectedIcon?:
|
|
64
|
+
selectedIcon?: IconProps['name'];
|
|
65
65
|
/**
|
|
66
66
|
* The content of the menu.
|
|
67
67
|
* @defaultValue { side: 'bottom', sideOffset: 8, collisionPadding: 8, position: 'popper' }
|
|
@@ -121,9 +121,9 @@ export interface SelectMenuProps<T extends ArrayOrNested<SelectMenuItem> = Array
|
|
|
121
121
|
ui?: SelectMenu['slots'];
|
|
122
122
|
}
|
|
123
123
|
export type SelectMenuEmits<A extends ArrayOrNested<SelectMenuItem>, VK extends GetItemKeys<A> | undefined, M extends boolean> = Pick<ComboboxRootEmits, 'update:open'> & {
|
|
124
|
-
change: [
|
|
125
|
-
blur: [
|
|
126
|
-
focus: [
|
|
124
|
+
change: [event: Event];
|
|
125
|
+
blur: [event: FocusEvent];
|
|
126
|
+
focus: [event: FocusEvent];
|
|
127
127
|
create: [item: string];
|
|
128
128
|
/** Event handler when highlighted element changes. */
|
|
129
129
|
highlight: [
|
|
@@ -171,12 +171,12 @@ export interface SelectMenuSlots<A extends ArrayOrNested<SelectMenuItem> = Array
|
|
|
171
171
|
}
|
|
172
172
|
declare const _default: <T extends ArrayOrNested<SelectMenuItem>, VK extends GetItemKeys<T> | undefined = undefined, M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
173
173
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
174
|
-
readonly onBlur?: ((
|
|
175
|
-
readonly onChange?: ((
|
|
176
|
-
readonly onFocus?: ((
|
|
174
|
+
readonly onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
175
|
+
readonly onChange?: ((event: Event) => any) | undefined;
|
|
176
|
+
readonly onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
177
177
|
readonly onCreate?: ((item: string) => any) | undefined;
|
|
178
178
|
readonly "onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
179
|
-
readonly "onUpdate:modelValue"?: ((
|
|
179
|
+
readonly "onUpdate:modelValue"?: ((value: GetModelValue<T, VK, M>) => any) | undefined;
|
|
180
180
|
readonly onHighlight?: ((payload: {
|
|
181
181
|
ref: HTMLElement;
|
|
182
182
|
value: GetModelValue<T, VK, M>;
|
|
@@ -184,7 +184,7 @@ declare const _default: <T extends ArrayOrNested<SelectMenuItem>, VK extends Get
|
|
|
184
184
|
readonly "onUpdate:searchTerm"?: ((value: string) => any) | undefined;
|
|
185
185
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onFocus" | "onBlur" | "onChange" | "onUpdate:open" | "onUpdate:modelValue" | "onCreate" | "onHighlight" | "onUpdate:searchTerm"> & (SelectMenuProps<T, VK, M> & {
|
|
186
186
|
searchTerm?: string;
|
|
187
|
-
}) &
|
|
187
|
+
}) & {}> & import("vue").PublicProps;
|
|
188
188
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
189
189
|
triggerRef: import("vue").Ref<({
|
|
190
190
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -290,7 +290,7 @@ declare const _default: <T extends ArrayOrNested<SelectMenuItem>, VK extends Get
|
|
|
290
290
|
}>): void;
|
|
291
291
|
attrs: any;
|
|
292
292
|
slots: SelectMenuSlots<T, VK, M, NestedItem<T>>;
|
|
293
|
-
emit: (((evt: "blur",
|
|
293
|
+
emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "create", item: string) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: GetModelValue<T, VK, M>) => void) & ((evt: "highlight", payload: {
|
|
294
294
|
ref: HTMLElement;
|
|
295
295
|
value: GetModelValue<T, VK, M>;
|
|
296
296
|
} | undefined) => void)) & ((evt: "update:searchTerm", value: string) => void);
|