@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,9 +14,9 @@ import UButton from "./Button.vue";
|
|
|
14
14
|
const props = defineProps({
|
|
15
15
|
as: { type: null, required: false },
|
|
16
16
|
prev: { type: Object, required: false },
|
|
17
|
-
prevIcon: { type: String, required: false },
|
|
17
|
+
prevIcon: { type: [String, Object], required: false },
|
|
18
18
|
next: { type: Object, required: false },
|
|
19
|
-
nextIcon: { type: String, required: false },
|
|
19
|
+
nextIcon: { type: [String, Object], required: false },
|
|
20
20
|
arrows: { type: Boolean, required: false, default: false },
|
|
21
21
|
dots: { type: Boolean, required: false, default: false },
|
|
22
22
|
orientation: { type: null, required: false, default: "horizontal" },
|
|
@@ -26,7 +26,7 @@ const props = defineProps({
|
|
|
26
26
|
autoHeight: { type: [Boolean, Object], required: false, default: false },
|
|
27
27
|
classNames: { type: [Boolean, Object], required: false, default: false },
|
|
28
28
|
fade: { type: [Boolean, Object], required: false, default: false },
|
|
29
|
-
wheelGestures: { type: Boolean, required: false,
|
|
29
|
+
wheelGestures: { type: [Boolean, Object], required: false, default: false },
|
|
30
30
|
class: { type: null, required: false },
|
|
31
31
|
ui: { type: null, required: false },
|
|
32
32
|
align: { type: [String, Function], required: false, default: "center" },
|
|
@@ -8,7 +8,7 @@ import type { ClassNamesOptionsType } from 'embla-carousel-class-names';
|
|
|
8
8
|
import type { FadeOptionsType } from 'embla-carousel-fade';
|
|
9
9
|
import type { WheelGesturesPluginOptions } from 'embla-carousel-wheel-gestures';
|
|
10
10
|
import theme from '#build/ui/carousel';
|
|
11
|
-
import type { ButtonProps } from '../types';
|
|
11
|
+
import type { ButtonProps, IconProps } from '../types';
|
|
12
12
|
import type { ComponentConfig } from '../types/tv';
|
|
13
13
|
type Carousel = ComponentConfig<typeof theme, AppConfig, 'carousel'>;
|
|
14
14
|
interface _CarouselItem {
|
|
@@ -33,7 +33,7 @@ export interface CarouselProps<T extends CarouselItem = CarouselItem> extends Om
|
|
|
33
33
|
* @defaultValue appConfig.ui.icons.arrowLeft
|
|
34
34
|
* @IconifyIcon
|
|
35
35
|
*/
|
|
36
|
-
prevIcon?:
|
|
36
|
+
prevIcon?: IconProps['name'];
|
|
37
37
|
/**
|
|
38
38
|
* Configure the next button when arrows are enabled.
|
|
39
39
|
* @defaultValue { size: 'md', color: 'neutral', variant: 'link' }
|
|
@@ -44,7 +44,7 @@ export interface CarouselProps<T extends CarouselItem = CarouselItem> extends Om
|
|
|
44
44
|
* @defaultValue appConfig.ui.icons.arrowRight
|
|
45
45
|
* @IconifyIcon
|
|
46
46
|
*/
|
|
47
|
-
nextIcon?:
|
|
47
|
+
nextIcon?: IconProps['name'];
|
|
48
48
|
/**
|
|
49
49
|
* Display prev and next buttons to scroll the carousel.
|
|
50
50
|
* @defaultValue false
|
|
@@ -110,7 +110,7 @@ export interface CarouselEmits {
|
|
|
110
110
|
declare const _default: <T extends CarouselItem>(__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<{
|
|
111
111
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
112
112
|
readonly onSelect?: ((selectedIndex: number) => any) | undefined;
|
|
113
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onSelect"> & CarouselProps<T> &
|
|
113
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onSelect"> & CarouselProps<T> & {}> & import("vue").PublicProps;
|
|
114
114
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
115
115
|
emblaRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
116
116
|
emblaApi: import("vue").Ref<EmblaCarouselType | undefined, EmblaCarouselType | undefined>;
|
|
@@ -47,7 +47,7 @@ export interface ChangelogVersionSlots {
|
|
|
47
47
|
actions(props?: {}): any;
|
|
48
48
|
indicator(props?: {}): any;
|
|
49
49
|
}
|
|
50
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChangelogVersionProps,
|
|
50
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChangelogVersionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChangelogVersionProps> & Readonly<{}>, {
|
|
51
51
|
as: any;
|
|
52
52
|
indicator: boolean;
|
|
53
53
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ChangelogVersionSlots>;
|
|
@@ -64,7 +64,7 @@ export interface ChangelogVersionsSlots<T extends ChangelogVersionProps = Change
|
|
|
64
64
|
}): any;
|
|
65
65
|
}
|
|
66
66
|
declare const _default: <T extends ChangelogVersionProps>(__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<{
|
|
67
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & ChangelogVersionsProps<T> &
|
|
67
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & ChangelogVersionsProps<T> & {}> & import("vue").PublicProps;
|
|
68
68
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
69
69
|
attrs: any;
|
|
70
70
|
slots: ChangelogVersionsSlots<T>;
|
|
@@ -14,7 +14,7 @@ import UAvatar from "./Avatar.vue";
|
|
|
14
14
|
import UIcon from "./Icon.vue";
|
|
15
15
|
const props = defineProps({
|
|
16
16
|
as: { type: null, required: false, default: "article" },
|
|
17
|
-
icon: { type: String, required: false },
|
|
17
|
+
icon: { type: [String, Object], required: false },
|
|
18
18
|
avatar: { type: Object, required: false },
|
|
19
19
|
variant: { type: null, required: false },
|
|
20
20
|
side: { type: null, required: false },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AppConfig } from '@nuxt/schema';
|
|
2
2
|
import type { UIMessage } from 'ai';
|
|
3
3
|
import theme from '#build/ui/chat-message';
|
|
4
|
-
import type { AvatarProps, ButtonProps } from '../types';
|
|
4
|
+
import type { AvatarProps, ButtonProps, IconProps } from '../types';
|
|
5
5
|
import type { ComponentConfig } from '../types/tv';
|
|
6
6
|
type ChatMessage = ComponentConfig<typeof theme, AppConfig, 'chatMessage'>;
|
|
7
7
|
export interface ChatMessageProps extends UIMessage {
|
|
@@ -13,7 +13,7 @@ export interface ChatMessageProps extends UIMessage {
|
|
|
13
13
|
/**
|
|
14
14
|
* @IconifyIcon
|
|
15
15
|
*/
|
|
16
|
-
icon?:
|
|
16
|
+
icon?: IconProps['name'];
|
|
17
17
|
avatar?: AvatarProps & {
|
|
18
18
|
[key: string]: any;
|
|
19
19
|
};
|
|
@@ -56,7 +56,7 @@ export interface ChatMessageSlots {
|
|
|
56
56
|
actions: ChatMessageProps['actions'];
|
|
57
57
|
}): any;
|
|
58
58
|
}
|
|
59
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChatMessageProps,
|
|
59
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChatMessageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChatMessageProps> & Readonly<{}>, {
|
|
60
60
|
as: any;
|
|
61
61
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ChatMessageSlots>;
|
|
62
62
|
export default _default;
|
|
@@ -18,7 +18,7 @@ const props = defineProps({
|
|
|
18
18
|
shouldAutoScroll: { type: Boolean, required: false, default: false },
|
|
19
19
|
shouldScrollToBottom: { type: Boolean, required: false, default: true },
|
|
20
20
|
autoScroll: { type: [Boolean, Object], required: false, default: true },
|
|
21
|
-
autoScrollIcon: { type: String, required: false },
|
|
21
|
+
autoScrollIcon: { type: [String, Object], required: false },
|
|
22
22
|
user: { type: Object, required: false },
|
|
23
23
|
assistant: { type: Object, required: false },
|
|
24
24
|
compact: { type: Boolean, required: false },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AppConfig } from '@nuxt/schema';
|
|
2
2
|
import type { UIMessage, ChatStatus } from 'ai';
|
|
3
3
|
import theme from '#build/ui/chat-messages';
|
|
4
|
-
import type { ButtonProps, ChatMessageProps } from '../types';
|
|
4
|
+
import type { ButtonProps, ChatMessageProps, IconProps } from '../types';
|
|
5
5
|
import type { ComponentConfig } from '../types/tv';
|
|
6
6
|
type ChatMessages = ComponentConfig<typeof theme, AppConfig, 'chatMessages'>;
|
|
7
7
|
export interface ChatMessagesProps {
|
|
@@ -28,7 +28,7 @@ export interface ChatMessagesProps {
|
|
|
28
28
|
* @defaultValue appConfig.ui.icons.arrowDown
|
|
29
29
|
* @IconifyIcon
|
|
30
30
|
*/
|
|
31
|
-
autoScrollIcon?:
|
|
31
|
+
autoScrollIcon?: IconProps['name'];
|
|
32
32
|
/**
|
|
33
33
|
* The `user` messages props.
|
|
34
34
|
* `{ side: 'right', variant: 'soft' }`{lang="ts-type"}
|
|
@@ -69,7 +69,7 @@ export interface ChatMessagesSlots {
|
|
|
69
69
|
message: UIMessage;
|
|
70
70
|
}): any;
|
|
71
71
|
}
|
|
72
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChatMessagesProps,
|
|
72
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChatMessagesProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChatMessagesProps> & Readonly<{}>, {
|
|
73
73
|
autoScroll: boolean | Partial<ButtonProps>;
|
|
74
74
|
shouldAutoScroll: boolean;
|
|
75
75
|
shouldScrollToBottom: boolean;
|
|
@@ -15,7 +15,7 @@ export interface ChatPaletteSlots {
|
|
|
15
15
|
default(props?: {}): any;
|
|
16
16
|
prompt(props?: {}): any;
|
|
17
17
|
}
|
|
18
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChatPaletteProps,
|
|
18
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChatPaletteProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChatPaletteProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ChatPaletteSlots>;
|
|
19
19
|
export default _default;
|
|
20
20
|
type __VLS_WithSlots<T, S> = T & {
|
|
21
21
|
new (): {
|
|
@@ -11,16 +11,16 @@ import { tv } from "../utils/tv";
|
|
|
11
11
|
import UButton from "./Button.vue";
|
|
12
12
|
const props = defineProps({
|
|
13
13
|
status: { type: String, required: false, default: "ready" },
|
|
14
|
-
icon: { type: String, required: false },
|
|
14
|
+
icon: { type: [String, Object], required: false },
|
|
15
15
|
color: { type: null, required: false },
|
|
16
16
|
variant: { type: null, required: false },
|
|
17
|
-
streamingIcon: { type: String, required: false },
|
|
17
|
+
streamingIcon: { type: [String, Object], required: false },
|
|
18
18
|
streamingColor: { type: null, required: false, default: "neutral" },
|
|
19
19
|
streamingVariant: { type: null, required: false, default: "subtle" },
|
|
20
|
-
submittedIcon: { type: String, required: false },
|
|
20
|
+
submittedIcon: { type: [String, Object], required: false },
|
|
21
21
|
submittedColor: { type: null, required: false, default: "neutral" },
|
|
22
22
|
submittedVariant: { type: null, required: false, default: "subtle" },
|
|
23
|
-
errorIcon: { type: String, required: false },
|
|
23
|
+
errorIcon: { type: [String, Object], required: false },
|
|
24
24
|
errorColor: { type: null, required: false, default: "error" },
|
|
25
25
|
errorVariant: { type: null, required: false, default: "soft" },
|
|
26
26
|
ui: { type: void 0, required: false },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ChatStatus } from 'ai';
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
3
|
import theme from '#build/ui/chat-prompt-submit';
|
|
4
|
-
import type { ButtonProps, ButtonSlots } from '../types';
|
|
4
|
+
import type { ButtonProps, ButtonSlots, IconProps } from '../types';
|
|
5
5
|
import type { ComponentConfig } from '../types/tv';
|
|
6
6
|
type ChatPromptSubmit = ComponentConfig<typeof theme, AppConfig, 'chatPromptSubmit'>;
|
|
7
7
|
export interface ChatPromptSubmitProps extends /** @vue-ignore */ Pick<ButtonProps, 'size' | 'label'> {
|
|
@@ -11,7 +11,7 @@ export interface ChatPromptSubmitProps extends /** @vue-ignore */ Pick<ButtonPro
|
|
|
11
11
|
* @defaultValue appConfig.ui.icons.arrowUp
|
|
12
12
|
* @IconifyIcon
|
|
13
13
|
*/
|
|
14
|
-
icon?:
|
|
14
|
+
icon?: IconProps['name'];
|
|
15
15
|
/**
|
|
16
16
|
* The color of the button when the status is `ready`.
|
|
17
17
|
* @defaultValue 'primary'
|
|
@@ -27,7 +27,7 @@ export interface ChatPromptSubmitProps extends /** @vue-ignore */ Pick<ButtonPro
|
|
|
27
27
|
* @defaultValue appConfig.ui.icons.stop
|
|
28
28
|
* @IconifyIcon
|
|
29
29
|
*/
|
|
30
|
-
streamingIcon?:
|
|
30
|
+
streamingIcon?: IconProps['name'];
|
|
31
31
|
/**
|
|
32
32
|
* The color of the button when the status is `streaming`.
|
|
33
33
|
* @defaultValue 'neutral'
|
|
@@ -43,7 +43,7 @@ export interface ChatPromptSubmitProps extends /** @vue-ignore */ Pick<ButtonPro
|
|
|
43
43
|
* @defaultValue appConfig.ui.icons.stop
|
|
44
44
|
* @IconifyIcon
|
|
45
45
|
*/
|
|
46
|
-
submittedIcon?:
|
|
46
|
+
submittedIcon?: IconProps['name'];
|
|
47
47
|
/**
|
|
48
48
|
* The color of the button when the status is `submitted`.
|
|
49
49
|
* @defaultValue 'neutral'
|
|
@@ -59,7 +59,7 @@ export interface ChatPromptSubmitProps extends /** @vue-ignore */ Pick<ButtonPro
|
|
|
59
59
|
* @defaultValue appConfig.ui.icons.reload
|
|
60
60
|
* @IconifyIcon
|
|
61
61
|
*/
|
|
62
|
-
errorIcon?:
|
|
62
|
+
errorIcon?: IconProps['name'];
|
|
63
63
|
/**
|
|
64
64
|
* The color of the button when the status is `error`.
|
|
65
65
|
* @defaultValue 'error'
|
|
@@ -77,7 +77,7 @@ export interface ChatPromptSubmitEmits {
|
|
|
77
77
|
stop: [];
|
|
78
78
|
reload: [];
|
|
79
79
|
}
|
|
80
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChatPromptSubmitProps,
|
|
80
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChatPromptSubmitProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
81
81
|
stop: () => any;
|
|
82
82
|
reload: () => any;
|
|
83
83
|
}, string, import("vue").PublicProps, Readonly<ChatPromptSubmitProps> & Readonly<{
|
|
@@ -19,8 +19,8 @@ const props = defineProps({
|
|
|
19
19
|
variant: { type: null, required: false },
|
|
20
20
|
size: { type: null, required: false },
|
|
21
21
|
indicator: { type: null, required: false },
|
|
22
|
-
icon: { type: String, required: false },
|
|
23
|
-
indeterminateIcon: { type: String, required: false },
|
|
22
|
+
icon: { type: [String, Object], required: false },
|
|
23
|
+
indeterminateIcon: { type: [String, Object], required: false },
|
|
24
24
|
class: { type: null, required: false },
|
|
25
25
|
ui: { type: null, required: false },
|
|
26
26
|
disabled: { type: Boolean, required: false },
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { CheckboxRootProps } from 'reka-ui';
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
3
|
import theme from '#build/ui/checkbox';
|
|
4
|
+
import type { IconProps } from '../types';
|
|
4
5
|
import type { ComponentConfig } from '../types/tv';
|
|
5
6
|
type Checkbox = ComponentConfig<typeof theme, AppConfig, 'checkbox'>;
|
|
6
7
|
export interface CheckboxProps extends Pick<CheckboxRootProps, 'disabled' | 'required' | 'name' | 'value' | 'id' | 'defaultValue'> {
|
|
@@ -33,18 +34,18 @@ export interface CheckboxProps extends Pick<CheckboxRootProps, 'disabled' | 'req
|
|
|
33
34
|
* @defaultValue appConfig.ui.icons.check
|
|
34
35
|
* @IconifyIcon
|
|
35
36
|
*/
|
|
36
|
-
icon?:
|
|
37
|
+
icon?: IconProps['name'];
|
|
37
38
|
/**
|
|
38
39
|
* The icon displayed when the checkbox is indeterminate.
|
|
39
40
|
* @defaultValue appConfig.ui.icons.minus
|
|
40
41
|
* @IconifyIcon
|
|
41
42
|
*/
|
|
42
|
-
indeterminateIcon?:
|
|
43
|
+
indeterminateIcon?: IconProps['name'];
|
|
43
44
|
class?: any;
|
|
44
45
|
ui?: Checkbox['slots'];
|
|
45
46
|
}
|
|
46
47
|
export type CheckboxEmits = {
|
|
47
|
-
change: [
|
|
48
|
+
change: [event: Event];
|
|
48
49
|
};
|
|
49
50
|
export interface CheckboxSlots {
|
|
50
51
|
label(props: {
|
|
@@ -56,13 +57,13 @@ export interface CheckboxSlots {
|
|
|
56
57
|
}
|
|
57
58
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CheckboxProps & {
|
|
58
59
|
modelValue?: boolean | "indeterminate";
|
|
59
|
-
},
|
|
60
|
-
change: (
|
|
60
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
61
|
+
change: (event: Event) => any;
|
|
61
62
|
"update:modelValue": (value: boolean | "indeterminate") => any;
|
|
62
63
|
}, string, import("vue").PublicProps, Readonly<CheckboxProps & {
|
|
63
64
|
modelValue?: boolean | "indeterminate";
|
|
64
65
|
}> & Readonly<{
|
|
65
|
-
onChange?: ((
|
|
66
|
+
onChange?: ((event: Event) => any) | undefined;
|
|
66
67
|
"onUpdate:modelValue"?: ((value: boolean | "indeterminate") => any) | undefined;
|
|
67
68
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, CheckboxSlots>;
|
|
68
69
|
export default _default;
|
|
@@ -31,7 +31,7 @@ const props = defineProps({
|
|
|
31
31
|
required: { type: Boolean, required: false },
|
|
32
32
|
color: { type: null, required: false },
|
|
33
33
|
indicator: { type: null, required: false },
|
|
34
|
-
icon: { type: String, required: false }
|
|
34
|
+
icon: { type: [String, Object], required: false }
|
|
35
35
|
});
|
|
36
36
|
const emits = defineEmits(["update:modelValue", "change"]);
|
|
37
37
|
const slots = defineSlots();
|
|
@@ -55,7 +55,7 @@ export interface CheckboxGroupProps<T extends CheckboxGroupItem = CheckboxGroupI
|
|
|
55
55
|
ui?: CheckboxGroup['slots'] & CheckboxProps['ui'];
|
|
56
56
|
}
|
|
57
57
|
export type CheckboxGroupEmits = CheckboxGroupRootEmits & {
|
|
58
|
-
change: [
|
|
58
|
+
change: [event: Event];
|
|
59
59
|
};
|
|
60
60
|
type SlotProps<T extends CheckboxGroupItem> = (props: {
|
|
61
61
|
item: T & {
|
|
@@ -69,13 +69,13 @@ export interface CheckboxGroupSlots<T extends CheckboxGroupItem = CheckboxGroupI
|
|
|
69
69
|
}
|
|
70
70
|
declare const _default: <T extends CheckboxGroupItem>(__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<{
|
|
71
71
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
72
|
-
readonly onChange?: ((
|
|
72
|
+
readonly onChange?: ((event: Event) => any) | undefined;
|
|
73
73
|
readonly "onUpdate:modelValue"?: ((value: import("reka-ui").AcceptableValue[]) => any) | undefined;
|
|
74
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onChange" | "onUpdate:modelValue"> & CheckboxGroupProps<T> &
|
|
74
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onChange" | "onUpdate:modelValue"> & CheckboxGroupProps<T> & {}> & import("vue").PublicProps;
|
|
75
75
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
76
76
|
attrs: any;
|
|
77
77
|
slots: CheckboxGroupSlots<T>;
|
|
78
|
-
emit: ((evt: "change",
|
|
78
|
+
emit: ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: import("reka-ui").AcceptableValue[]) => void);
|
|
79
79
|
}>) => import("vue").VNode & {
|
|
80
80
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
81
81
|
};
|
|
@@ -31,7 +31,7 @@ export interface ChipProps {
|
|
|
31
31
|
ui?: Chip['slots'];
|
|
32
32
|
}
|
|
33
33
|
export interface ChipEmits {
|
|
34
|
-
'update:show': [
|
|
34
|
+
'update:show': [value: boolean];
|
|
35
35
|
}
|
|
36
36
|
export interface ChipSlots {
|
|
37
37
|
default(props?: {}): any;
|
|
@@ -39,7 +39,7 @@ export interface ChipSlots {
|
|
|
39
39
|
}
|
|
40
40
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChipProps & {
|
|
41
41
|
show?: boolean;
|
|
42
|
-
},
|
|
42
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
43
43
|
"update:show": (value: boolean) => any;
|
|
44
44
|
}, string, import("vue").PublicProps, Readonly<ChipProps & {
|
|
45
45
|
show?: boolean;
|
|
@@ -20,7 +20,7 @@ export interface CollapsibleSlots {
|
|
|
20
20
|
}): any;
|
|
21
21
|
content(props?: {}): any;
|
|
22
22
|
}
|
|
23
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CollapsibleProps,
|
|
23
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CollapsibleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
24
|
"update:open": (value: boolean) => any;
|
|
25
25
|
}, string, import("vue").PublicProps, Readonly<CollapsibleProps> & Readonly<{
|
|
26
26
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
@@ -34,7 +34,7 @@ export type ColorPickerProps = {
|
|
|
34
34
|
};
|
|
35
35
|
declare const _default: import("vue").DefineComponent<ColorPickerProps & {
|
|
36
36
|
modelValue?: string;
|
|
37
|
-
},
|
|
37
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
38
38
|
"update:modelValue": (value: string | undefined) => any;
|
|
39
39
|
}, string, import("vue").PublicProps, Readonly<ColorPickerProps & {
|
|
40
40
|
modelValue?: string;
|
|
@@ -24,15 +24,15 @@ import UInput from "./Input.vue";
|
|
|
24
24
|
import UKbd from "./Kbd.vue";
|
|
25
25
|
const props = defineProps({
|
|
26
26
|
as: { type: null, required: false },
|
|
27
|
-
icon: { type: String, required: false },
|
|
28
|
-
selectedIcon: { type: String, required: false },
|
|
29
|
-
trailingIcon: { type: String, required: false },
|
|
27
|
+
icon: { type: [String, Object], required: false },
|
|
28
|
+
selectedIcon: { type: [String, Object], required: false },
|
|
29
|
+
trailingIcon: { type: [String, Object], required: false },
|
|
30
30
|
placeholder: { type: String, required: false },
|
|
31
31
|
autofocus: { type: Boolean, required: false, default: true },
|
|
32
32
|
close: { type: [Boolean, Object], required: false },
|
|
33
|
-
closeIcon: { type: String, required: false },
|
|
33
|
+
closeIcon: { type: [String, Object], required: false },
|
|
34
34
|
back: { type: [Boolean, Object], required: false, default: true },
|
|
35
|
-
backIcon: { type: String, required: false },
|
|
35
|
+
backIcon: { type: [String, Object], required: false },
|
|
36
36
|
groups: { type: Array, required: false },
|
|
37
37
|
fuse: { type: Object, required: false },
|
|
38
38
|
labelKey: { type: String, required: false, default: "label" },
|
|
@@ -45,7 +45,7 @@ const props = defineProps({
|
|
|
45
45
|
highlightOnHover: { type: Boolean, required: false },
|
|
46
46
|
selectionBehavior: { type: String, required: false },
|
|
47
47
|
loading: { type: Boolean, required: false },
|
|
48
|
-
loadingIcon: { type: String, required: false }
|
|
48
|
+
loadingIcon: { type: [String, Object], required: false }
|
|
49
49
|
});
|
|
50
50
|
const emits = defineEmits(["update:modelValue", "highlight", "entryFocus", "leave", "update:open"]);
|
|
51
51
|
const slots = defineSlots();
|
|
@@ -3,7 +3,7 @@ import type { AppConfig } from '@nuxt/schema';
|
|
|
3
3
|
import type { UseFuseOptions } from '@vueuse/integrations/useFuse';
|
|
4
4
|
import theme from '#build/ui/command-palette';
|
|
5
5
|
import type { UseComponentIconsProps } from '../composables/useComponentIcons';
|
|
6
|
-
import type { AvatarProps, ButtonProps, ChipProps, KbdProps, InputProps, LinkProps } from '../types';
|
|
6
|
+
import type { AvatarProps, ButtonProps, ChipProps, KbdProps, InputProps, LinkProps, IconProps } from '../types';
|
|
7
7
|
import type { ComponentConfig } from '../types/tv';
|
|
8
8
|
type CommandPalette = ComponentConfig<typeof theme, AppConfig, 'commandPalette'>;
|
|
9
9
|
export interface CommandPaletteItem extends Omit<LinkProps, 'type' | 'raw' | 'custom'> {
|
|
@@ -13,7 +13,7 @@ export interface CommandPaletteItem extends Omit<LinkProps, 'type' | 'raw' | 'cu
|
|
|
13
13
|
/**
|
|
14
14
|
* @IconifyIcon
|
|
15
15
|
*/
|
|
16
|
-
icon?:
|
|
16
|
+
icon?: IconProps['name'];
|
|
17
17
|
avatar?: AvatarProps;
|
|
18
18
|
chip?: ChipProps;
|
|
19
19
|
kbds?: KbdProps['value'][] | KbdProps[];
|
|
@@ -48,7 +48,7 @@ export interface CommandPaletteGroup<T extends CommandPaletteItem = CommandPalet
|
|
|
48
48
|
* The icon displayed when an item is highlighted.
|
|
49
49
|
* @IconifyIcon
|
|
50
50
|
*/
|
|
51
|
-
highlightedIcon?:
|
|
51
|
+
highlightedIcon?: IconProps['name'];
|
|
52
52
|
}
|
|
53
53
|
export interface CommandPaletteProps<G extends CommandPaletteGroup<T> = CommandPaletteGroup<any>, T extends CommandPaletteItem = CommandPaletteItem> extends Pick<ListboxRootProps, 'multiple' | 'disabled' | 'modelValue' | 'defaultValue' | 'highlightOnHover' | 'selectionBehavior'>, Pick<UseComponentIconsProps, 'loading' | 'loadingIcon'> {
|
|
54
54
|
/**
|
|
@@ -61,19 +61,19 @@ export interface CommandPaletteProps<G extends CommandPaletteGroup<T> = CommandP
|
|
|
61
61
|
* @defaultValue appConfig.ui.icons.search
|
|
62
62
|
* @IconifyIcon
|
|
63
63
|
*/
|
|
64
|
-
icon?:
|
|
64
|
+
icon?: IconProps['name'];
|
|
65
65
|
/**
|
|
66
66
|
* The icon displayed when an item is selected.
|
|
67
67
|
* @defaultValue appConfig.ui.icons.check
|
|
68
68
|
* @IconifyIcon
|
|
69
69
|
*/
|
|
70
|
-
selectedIcon?:
|
|
70
|
+
selectedIcon?: IconProps['name'];
|
|
71
71
|
/**
|
|
72
72
|
* The icon displayed when an item has children.
|
|
73
73
|
* @defaultValue appConfig.ui.icons.chevronRight
|
|
74
74
|
* @IconifyIcon
|
|
75
75
|
*/
|
|
76
|
-
trailingIcon?:
|
|
76
|
+
trailingIcon?: IconProps['name'];
|
|
77
77
|
/**
|
|
78
78
|
* The placeholder text for the input.
|
|
79
79
|
* @defaultValue t('commandPalette.placeholder')
|
|
@@ -96,7 +96,7 @@ export interface CommandPaletteProps<G extends CommandPaletteGroup<T> = CommandP
|
|
|
96
96
|
* @defaultValue appConfig.ui.icons.close
|
|
97
97
|
* @IconifyIcon
|
|
98
98
|
*/
|
|
99
|
-
closeIcon?:
|
|
99
|
+
closeIcon?: IconProps['name'];
|
|
100
100
|
/**
|
|
101
101
|
* Display a button to navigate back in history.
|
|
102
102
|
* `{ size: 'md', color: 'neutral', variant: 'link' }`{lang="ts-type"}
|
|
@@ -108,7 +108,7 @@ export interface CommandPaletteProps<G extends CommandPaletteGroup<T> = CommandP
|
|
|
108
108
|
* @defaultValue appConfig.ui.icons.arrowLeft
|
|
109
109
|
* @IconifyIcon
|
|
110
110
|
*/
|
|
111
|
-
backIcon?:
|
|
111
|
+
backIcon?: IconProps['name'];
|
|
112
112
|
groups?: G[];
|
|
113
113
|
/**
|
|
114
114
|
* Options for [useFuse](https://vueuse.org/integrations/useFuse).
|
|
@@ -175,7 +175,7 @@ declare const _default: <G extends CommandPaletteGroup<T>, T extends CommandPale
|
|
|
175
175
|
readonly onLeave?: ((event: Event) => any) | undefined;
|
|
176
176
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:open" | "onUpdate:modelValue" | "onHighlight" | "onUpdate:searchTerm" | "onEntryFocus" | "onLeave"> & (CommandPaletteProps<G, T> & {
|
|
177
177
|
searchTerm?: string;
|
|
178
|
-
}) &
|
|
178
|
+
}) & {}> & import("vue").PublicProps;
|
|
179
179
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
180
180
|
attrs: any;
|
|
181
181
|
slots: CommandPaletteSlots<G, T>;
|
|
@@ -9,7 +9,7 @@ export interface ContainerProps {
|
|
|
9
9
|
export interface ContainerSlots {
|
|
10
10
|
default(props?: {}): any;
|
|
11
11
|
}
|
|
12
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ContainerProps,
|
|
12
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ContainerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ContainerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ContainerSlots>;
|
|
13
13
|
export default _default;
|
|
14
14
|
type __VLS_WithSlots<T, S> = T & {
|
|
15
15
|
new (): {
|
|
@@ -13,15 +13,16 @@ import UContextMenuContent from "./ContextMenuContent.vue";
|
|
|
13
13
|
const props = defineProps({
|
|
14
14
|
size: { type: null, required: false },
|
|
15
15
|
items: { type: null, required: false },
|
|
16
|
-
checkedIcon: { type: String, required: false },
|
|
17
|
-
loadingIcon: { type: String, required: false },
|
|
18
|
-
externalIcon: { type: [Boolean, String], required: false, default: true },
|
|
16
|
+
checkedIcon: { type: [String, Object], required: false },
|
|
17
|
+
loadingIcon: { type: [String, Object], required: false },
|
|
18
|
+
externalIcon: { type: [Boolean, String, Object], required: false, default: true },
|
|
19
19
|
content: { type: Object, required: false },
|
|
20
20
|
portal: { type: [Boolean, String], required: false, skipCheck: true, default: true },
|
|
21
21
|
labelKey: { type: null, required: false, default: "label" },
|
|
22
22
|
disabled: { type: Boolean, required: false },
|
|
23
23
|
class: { type: null, required: false },
|
|
24
24
|
ui: { type: null, required: false },
|
|
25
|
+
pressOpenDelay: { type: Number, required: false },
|
|
25
26
|
modal: { type: Boolean, required: false, default: true }
|
|
26
27
|
});
|
|
27
28
|
const emits = defineEmits(["update:open"]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ContextMenuRootProps, ContextMenuRootEmits, ContextMenuContentProps, ContextMenuContentEmits } from 'reka-ui';
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
3
|
import theme from '#build/ui/context-menu';
|
|
4
|
-
import type { AvatarProps, KbdProps, LinkProps } from '../types';
|
|
4
|
+
import type { AvatarProps, IconProps, KbdProps, LinkProps } from '../types';
|
|
5
5
|
import type { ArrayOrNested, DynamicSlots, MergeTypes, NestedItem, EmitsToProps } from '../types/utils';
|
|
6
6
|
import type { ComponentConfig } from '../types/tv';
|
|
7
7
|
type ContextMenu = ComponentConfig<typeof theme, AppConfig, 'contextMenu'>;
|
|
@@ -10,7 +10,7 @@ export interface ContextMenuItem extends Omit<LinkProps, 'type' | 'raw' | 'custo
|
|
|
10
10
|
/**
|
|
11
11
|
* @IconifyIcon
|
|
12
12
|
*/
|
|
13
|
-
icon?:
|
|
13
|
+
icon?: IconProps['name'];
|
|
14
14
|
color?: ContextMenu['variants']['color'];
|
|
15
15
|
avatar?: AvatarProps;
|
|
16
16
|
content?: Omit<ContextMenuContentProps, 'as' | 'asChild' | 'forceMount'> & Partial<EmitsToProps<ContextMenuContentEmits>>;
|
|
@@ -44,20 +44,20 @@ export interface ContextMenuProps<T extends ArrayOrNested<ContextMenuItem> = Arr
|
|
|
44
44
|
* @defaultValue appConfig.ui.icons.check
|
|
45
45
|
* @IconifyIcon
|
|
46
46
|
*/
|
|
47
|
-
checkedIcon?:
|
|
47
|
+
checkedIcon?: IconProps['name'];
|
|
48
48
|
/**
|
|
49
49
|
* The icon displayed when an item is loading.
|
|
50
50
|
* @defaultValue appConfig.ui.icons.loading
|
|
51
51
|
* @IconifyIcon
|
|
52
52
|
*/
|
|
53
|
-
loadingIcon?:
|
|
53
|
+
loadingIcon?: IconProps['name'];
|
|
54
54
|
/**
|
|
55
55
|
* The icon displayed when the item is an external link.
|
|
56
56
|
* Set to `false` to hide the external icon.
|
|
57
57
|
* @defaultValue appConfig.ui.icons.external
|
|
58
58
|
* @IconifyIcon
|
|
59
59
|
*/
|
|
60
|
-
externalIcon?: boolean |
|
|
60
|
+
externalIcon?: boolean | IconProps['name'];
|
|
61
61
|
/** The content of the menu. */
|
|
62
62
|
content?: Omit<ContextMenuContentProps, 'as' | 'asChild' | 'forceMount'> & Partial<EmitsToProps<ContextMenuContentEmits>>;
|
|
63
63
|
/**
|
|
@@ -96,7 +96,7 @@ export type ContextMenuSlots<A extends ArrayOrNested<ContextMenuItem> = ArrayOrN
|
|
|
96
96
|
declare const _default: <T extends ArrayOrNested<ContextMenuItem>>(__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<{
|
|
97
97
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
98
98
|
readonly "onUpdate:open"?: ((payload: boolean) => any) | undefined;
|
|
99
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:open"> & ContextMenuProps<T> &
|
|
99
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:open"> & ContextMenuProps<T> & {}> & import("vue").PublicProps;
|
|
100
100
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
101
101
|
attrs: any;
|
|
102
102
|
slots: ContextMenuSlots<T, NestedItem<T>>;
|
|
@@ -23,9 +23,9 @@ const props = defineProps({
|
|
|
23
23
|
portal: { type: [Boolean, String], required: false, skipCheck: true },
|
|
24
24
|
sub: { type: Boolean, required: false },
|
|
25
25
|
labelKey: { type: null, required: true },
|
|
26
|
-
checkedIcon: { type: String, required: false },
|
|
27
|
-
loadingIcon: { type: String, required: false },
|
|
28
|
-
externalIcon: { type: [Boolean, String], required: false },
|
|
26
|
+
checkedIcon: { type: [String, Object], required: false },
|
|
27
|
+
loadingIcon: { type: [String, Object], required: false },
|
|
28
|
+
externalIcon: { type: [Boolean, String, Object], required: false },
|
|
29
29
|
class: { type: null, required: false },
|
|
30
30
|
ui: { type: null, required: true },
|
|
31
31
|
uiOverride: { type: null, required: false },
|
|
@@ -2,7 +2,7 @@ import { ContextMenu } from 'reka-ui/namespaced';
|
|
|
2
2
|
import type { ContextMenuContentProps as RekaContextMenuContentProps } from 'reka-ui';
|
|
3
3
|
import type { AppConfig } from '@nuxt/schema';
|
|
4
4
|
import type theme from '#build/ui/context-menu';
|
|
5
|
-
import type { ContextMenuItem, ContextMenuSlots } from '../types';
|
|
5
|
+
import type { ContextMenuItem, ContextMenuSlots, IconProps } from '../types';
|
|
6
6
|
import type { ArrayOrNested, NestedItem } from '../types/utils';
|
|
7
7
|
import type { ComponentConfig } from '../types/tv';
|
|
8
8
|
type ContextMenu = ComponentConfig<typeof theme, AppConfig, 'contextMenu'>;
|
|
@@ -14,15 +14,15 @@ interface ContextMenuContentProps<T extends ArrayOrNested<ContextMenuItem>> exte
|
|
|
14
14
|
/**
|
|
15
15
|
* @IconifyIcon
|
|
16
16
|
*/
|
|
17
|
-
checkedIcon?:
|
|
17
|
+
checkedIcon?: IconProps['name'];
|
|
18
18
|
/**
|
|
19
19
|
* @IconifyIcon
|
|
20
20
|
*/
|
|
21
|
-
loadingIcon?:
|
|
21
|
+
loadingIcon?: IconProps['name'];
|
|
22
22
|
/**
|
|
23
23
|
* @IconifyIcon
|
|
24
24
|
*/
|
|
25
|
-
externalIcon?: boolean |
|
|
25
|
+
externalIcon?: boolean | IconProps['name'];
|
|
26
26
|
class?: any;
|
|
27
27
|
ui: {
|
|
28
28
|
[K in keyof Required<ContextMenu['slots']>]: (props?: Record<string, any>) => string;
|
|
@@ -36,7 +36,7 @@ declare const _default: <T extends ArrayOrNested<ContextMenuItem>>(__VLS_props:
|
|
|
36
36
|
readonly onFocusOutside?: ((event: import("reka-ui").FocusOutsideEvent) => any) | undefined;
|
|
37
37
|
readonly onInteractOutside?: ((event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any) | undefined;
|
|
38
38
|
readonly onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
39
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onEscapeKeyDown" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside" | "onCloseAutoFocus"> & ContextMenuContentProps<T> &
|
|
39
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onEscapeKeyDown" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside" | "onCloseAutoFocus"> & ContextMenuContentProps<T> & {}> & import("vue").PublicProps;
|
|
40
40
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
41
41
|
attrs: any;
|
|
42
42
|
slots: ContextMenuSlots<T>;
|