@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
|
@@ -13,7 +13,7 @@ import UAvatar from "./Avatar.vue";
|
|
|
13
13
|
const props = defineProps({
|
|
14
14
|
as: { type: null, required: false },
|
|
15
15
|
label: { type: String, required: false },
|
|
16
|
-
icon: { type: String, required: false },
|
|
16
|
+
icon: { type: [String, Object], required: false },
|
|
17
17
|
avatar: { type: Object, required: false },
|
|
18
18
|
color: { type: null, required: false },
|
|
19
19
|
size: { type: null, required: false },
|
|
@@ -2,7 +2,7 @@ import { Separator } from 'reka-ui';
|
|
|
2
2
|
import type { SeparatorProps as _SeparatorProps } from 'reka-ui';
|
|
3
3
|
import type { AppConfig } from '@nuxt/schema';
|
|
4
4
|
import theme from '#build/ui/separator';
|
|
5
|
-
import type { AvatarProps } from '../types';
|
|
5
|
+
import type { AvatarProps, IconProps } from '../types';
|
|
6
6
|
import type { ComponentConfig } from '../types/tv';
|
|
7
7
|
type Separator = ComponentConfig<typeof theme, AppConfig, 'separator'>;
|
|
8
8
|
export interface SeparatorProps extends Pick<_SeparatorProps, 'decorative'> {
|
|
@@ -17,7 +17,7 @@ export interface SeparatorProps extends Pick<_SeparatorProps, 'decorative'> {
|
|
|
17
17
|
* Display an icon in the middle.
|
|
18
18
|
* @IconifyIcon
|
|
19
19
|
*/
|
|
20
|
-
icon?:
|
|
20
|
+
icon?: IconProps['name'];
|
|
21
21
|
/** Display an avatar in the middle. */
|
|
22
22
|
avatar?: AvatarProps;
|
|
23
23
|
/**
|
|
@@ -43,7 +43,7 @@ export interface SeparatorProps extends Pick<_SeparatorProps, 'decorative'> {
|
|
|
43
43
|
export interface SeparatorSlots {
|
|
44
44
|
default(props?: {}): any;
|
|
45
45
|
}
|
|
46
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SeparatorProps,
|
|
46
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SeparatorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SeparatorProps> & Readonly<{}>, {
|
|
47
47
|
orientation: "horizontal" | "vertical";
|
|
48
48
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, SeparatorSlots>;
|
|
49
49
|
export default _default;
|
|
@@ -6,7 +6,7 @@ export interface SkeletonProps {
|
|
|
6
6
|
as?: any;
|
|
7
7
|
class?: any;
|
|
8
8
|
}
|
|
9
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SkeletonProps,
|
|
9
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SkeletonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
10
10
|
default?: (props: {}) => any;
|
|
11
11
|
}>;
|
|
12
12
|
export default _default;
|
|
@@ -20,7 +20,7 @@ const props = defineProps({
|
|
|
20
20
|
side: { type: null, required: false, default: "right" },
|
|
21
21
|
portal: { type: [Boolean, String], required: false, skipCheck: true, default: true },
|
|
22
22
|
close: { type: [Boolean, Object], required: false, default: true },
|
|
23
|
-
closeIcon: { type: String, required: false },
|
|
23
|
+
closeIcon: { type: [String, Object], required: false },
|
|
24
24
|
dismissible: { type: Boolean, required: false, default: true },
|
|
25
25
|
class: { type: null, required: false },
|
|
26
26
|
ui: { type: null, required: false },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DialogRootProps, DialogRootEmits, DialogContentProps, DialogContentEmits } from 'reka-ui';
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
3
|
import theme from '#build/ui/slideover';
|
|
4
|
-
import type { ButtonProps } from '../types';
|
|
4
|
+
import type { ButtonProps, IconProps } from '../types';
|
|
5
5
|
import type { EmitsToProps } from '../types/utils';
|
|
6
6
|
import type { ComponentConfig } from '../types/tv';
|
|
7
7
|
type Slideover = ComponentConfig<typeof theme, AppConfig, 'slideover'>;
|
|
@@ -41,7 +41,7 @@ export interface SlideoverProps extends DialogRootProps {
|
|
|
41
41
|
* @defaultValue appConfig.ui.icons.close
|
|
42
42
|
* @IconifyIcon
|
|
43
43
|
*/
|
|
44
|
-
closeIcon?:
|
|
44
|
+
closeIcon?: IconProps['name'];
|
|
45
45
|
/**
|
|
46
46
|
* When `false`, the slideover will not close when clicking outside or pressing escape.
|
|
47
47
|
* @defaultValue true
|
|
@@ -81,7 +81,7 @@ export interface SlideoverSlots {
|
|
|
81
81
|
close: () => void;
|
|
82
82
|
}): any;
|
|
83
83
|
}
|
|
84
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SlideoverProps,
|
|
84
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SlideoverProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
85
85
|
"update:open": (value: boolean) => any;
|
|
86
86
|
"after:leave": () => any;
|
|
87
87
|
"after:enter": () => any;
|
|
@@ -27,7 +27,7 @@ const props = defineProps({
|
|
|
27
27
|
step: { type: Number, required: false, default: 1 },
|
|
28
28
|
minStepsBetweenThumbs: { type: Number, required: false }
|
|
29
29
|
});
|
|
30
|
-
const emits = defineEmits(["
|
|
30
|
+
const emits = defineEmits(["change"]);
|
|
31
31
|
const modelValue = defineModel({ type: null });
|
|
32
32
|
const appConfig = useAppConfig();
|
|
33
33
|
const rootProps = useForwardPropsEmits(reactivePick(props, "as", "orientation", "min", "max", "step", "minStepsBetweenThumbs", "inverted"), emits);
|
|
@@ -34,21 +34,20 @@ export interface SliderProps extends Pick<SliderRootProps, 'name' | 'disabled' |
|
|
|
34
34
|
class?: any;
|
|
35
35
|
ui?: Slider['slots'];
|
|
36
36
|
}
|
|
37
|
-
export interface SliderEmits
|
|
38
|
-
|
|
39
|
-
'change': [payload: Event];
|
|
37
|
+
export interface SliderEmits {
|
|
38
|
+
change: [event: Event];
|
|
40
39
|
}
|
|
41
40
|
declare const _default: <T extends number | number[]>(__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
41
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
43
|
-
readonly onChange?: ((
|
|
44
|
-
readonly "onUpdate:modelValue"?: ((
|
|
42
|
+
readonly onChange?: ((event: Event) => any) | undefined;
|
|
43
|
+
readonly "onUpdate:modelValue"?: ((value: T | undefined) => any) | undefined;
|
|
45
44
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onChange" | "onUpdate:modelValue"> & (SliderProps & {
|
|
46
45
|
modelValue?: T;
|
|
47
|
-
}) &
|
|
46
|
+
}) & {}> & import("vue").PublicProps;
|
|
48
47
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
49
48
|
attrs: any;
|
|
50
49
|
slots: {};
|
|
51
|
-
emit: ((
|
|
50
|
+
emit: ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: T | undefined) => void);
|
|
52
51
|
}>) => import("vue").VNode & {
|
|
53
52
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
54
53
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { StepperRootProps, StepperRootEmits } from 'reka-ui';
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
3
|
import theme from '#build/ui/stepper';
|
|
4
|
+
import type { IconProps } from '../types';
|
|
4
5
|
import type { DynamicSlots } from '../types/utils';
|
|
5
6
|
import type { ComponentConfig } from '../types/tv';
|
|
6
7
|
type Stepper = ComponentConfig<typeof theme, AppConfig, 'stepper'>;
|
|
@@ -12,7 +13,7 @@ export interface StepperItem {
|
|
|
12
13
|
/**
|
|
13
14
|
* @IconifyIcon
|
|
14
15
|
*/
|
|
15
|
-
icon?:
|
|
16
|
+
icon?: IconProps['name'];
|
|
16
17
|
content?: string;
|
|
17
18
|
disabled?: boolean;
|
|
18
19
|
class?: any;
|
|
@@ -48,8 +49,8 @@ export interface StepperProps<T extends StepperItem = StepperItem> extends Pick<
|
|
|
48
49
|
ui?: Stepper['slots'];
|
|
49
50
|
}
|
|
50
51
|
export type StepperEmits<T extends StepperItem = StepperItem> = Omit<StepperRootEmits, 'update:modelValue'> & {
|
|
51
|
-
next: [
|
|
52
|
-
prev: [
|
|
52
|
+
next: [value: T];
|
|
53
|
+
prev: [value: T];
|
|
53
54
|
};
|
|
54
55
|
type SlotProps<T extends StepperItem> = (props: {
|
|
55
56
|
item: T;
|
|
@@ -62,12 +63,12 @@ export type StepperSlots<T extends StepperItem = StepperItem> = {
|
|
|
62
63
|
} & DynamicSlots<T>;
|
|
63
64
|
declare const _default: <T extends StepperItem>(__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<{
|
|
64
65
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
65
|
-
readonly onNext?: ((
|
|
66
|
-
readonly onPrev?: ((
|
|
66
|
+
readonly onNext?: ((value: T) => any) | undefined;
|
|
67
|
+
readonly onPrev?: ((value: T) => any) | undefined;
|
|
67
68
|
readonly "onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
|
|
68
69
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue" | "onNext" | "onPrev"> & (StepperProps<T> & {
|
|
69
70
|
modelValue?: string | number;
|
|
70
|
-
}) &
|
|
71
|
+
}) & {}> & import("vue").PublicProps;
|
|
71
72
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
72
73
|
next(): void;
|
|
73
74
|
prev(): void;
|
|
@@ -76,7 +77,7 @@ declare const _default: <T extends StepperItem>(__VLS_props: NonNullable<Awaited
|
|
|
76
77
|
}>): void;
|
|
77
78
|
attrs: any;
|
|
78
79
|
slots: StepperSlots<T>;
|
|
79
|
-
emit: (((evt: "next",
|
|
80
|
+
emit: (((evt: "next", value: T) => void) & ((evt: "prev", value: T) => void)) & ((evt: "update:modelValue", value: string | number | undefined) => void);
|
|
80
81
|
}>) => import("vue").VNode & {
|
|
81
82
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
82
83
|
};
|
|
@@ -16,9 +16,9 @@ const props = defineProps({
|
|
|
16
16
|
color: { type: null, required: false },
|
|
17
17
|
size: { type: null, required: false },
|
|
18
18
|
loading: { type: Boolean, required: false },
|
|
19
|
-
loadingIcon: { type: String, required: false },
|
|
20
|
-
checkedIcon: { type: String, required: false },
|
|
21
|
-
uncheckedIcon: { type: String, required: false },
|
|
19
|
+
loadingIcon: { type: [String, Object], required: false },
|
|
20
|
+
checkedIcon: { type: [String, Object], required: false },
|
|
21
|
+
uncheckedIcon: { type: [String, Object], required: false },
|
|
22
22
|
label: { type: String, required: false },
|
|
23
23
|
description: { type: String, required: false },
|
|
24
24
|
class: { type: null, required: false },
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { SwitchRootProps } from 'reka-ui';
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
3
|
import theme from '#build/ui/switch';
|
|
4
|
+
import type { IconProps } from '../types';
|
|
4
5
|
import type { ComponentConfig } from '../types/tv';
|
|
5
6
|
type Switch = ComponentConfig<typeof theme, AppConfig, 'switch'>;
|
|
6
7
|
export interface SwitchProps extends Pick<SwitchRootProps, 'disabled' | 'id' | 'name' | 'required' | 'value' | 'defaultValue'> {
|
|
@@ -24,24 +25,24 @@ export interface SwitchProps extends Pick<SwitchRootProps, 'disabled' | 'id' | '
|
|
|
24
25
|
* @defaultValue appConfig.ui.icons.loading
|
|
25
26
|
* @IconifyIcon
|
|
26
27
|
*/
|
|
27
|
-
loadingIcon?:
|
|
28
|
+
loadingIcon?: IconProps['name'];
|
|
28
29
|
/**
|
|
29
30
|
* Display an icon when the switch is checked.
|
|
30
31
|
* @IconifyIcon
|
|
31
32
|
*/
|
|
32
|
-
checkedIcon?:
|
|
33
|
+
checkedIcon?: IconProps['name'];
|
|
33
34
|
/**
|
|
34
35
|
* Display an icon when the switch is unchecked.
|
|
35
36
|
* @IconifyIcon
|
|
36
37
|
*/
|
|
37
|
-
uncheckedIcon?:
|
|
38
|
+
uncheckedIcon?: IconProps['name'];
|
|
38
39
|
label?: string;
|
|
39
40
|
description?: string;
|
|
40
41
|
class?: any;
|
|
41
42
|
ui?: Switch['slots'];
|
|
42
43
|
}
|
|
43
44
|
export type SwitchEmits = {
|
|
44
|
-
change: [
|
|
45
|
+
change: [event: Event];
|
|
45
46
|
};
|
|
46
47
|
export interface SwitchSlots {
|
|
47
48
|
label(props: {
|
|
@@ -53,13 +54,13 @@ export interface SwitchSlots {
|
|
|
53
54
|
}
|
|
54
55
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SwitchProps & {
|
|
55
56
|
modelValue?: boolean;
|
|
56
|
-
},
|
|
57
|
-
change: (
|
|
57
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
58
|
+
change: (event: Event) => any;
|
|
58
59
|
"update:modelValue": (value: boolean) => any;
|
|
59
60
|
}, string, import("vue").PublicProps, Readonly<SwitchProps & {
|
|
60
61
|
modelValue?: boolean;
|
|
61
62
|
}> & Readonly<{
|
|
62
|
-
onChange?: ((
|
|
63
|
+
onChange?: ((event: Event) => any) | undefined;
|
|
63
64
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
64
65
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, SwitchSlots>;
|
|
65
66
|
export default _default;
|
|
@@ -315,13 +315,13 @@ defineExpose({
|
|
|
315
315
|
</template>
|
|
316
316
|
|
|
317
317
|
<tr v-else-if="loading && !!slots['loading']">
|
|
318
|
-
<td :colspan="
|
|
318
|
+
<td :colspan="tableApi.getAllLeafColumns().length" :class="ui.loading({ class: props.ui?.loading })">
|
|
319
319
|
<slot name="loading" />
|
|
320
320
|
</td>
|
|
321
321
|
</tr>
|
|
322
322
|
|
|
323
323
|
<tr v-else>
|
|
324
|
-
<td :colspan="
|
|
324
|
+
<td :colspan="tableApi.getAllLeafColumns().length" :class="ui.empty({ class: props.ui?.empty })">
|
|
325
325
|
<slot name="empty">
|
|
326
326
|
{{ empty || t("table.noData") }}
|
|
327
327
|
</slot>
|
|
@@ -184,7 +184,7 @@ declare const _default: <T extends TableData>(__VLS_props: NonNullable<Awaited<t
|
|
|
184
184
|
grouping?: GroupingState;
|
|
185
185
|
expanded?: ExpandedState;
|
|
186
186
|
pagination?: PaginationState;
|
|
187
|
-
}) &
|
|
187
|
+
}) & {}> & import("vue").PublicProps;
|
|
188
188
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
189
189
|
tableRef: Ref<HTMLTableElement | null, HTMLTableElement | null>;
|
|
190
190
|
tableApi: import("@tanstack/table-core").Table<T>;
|
|
@@ -2,7 +2,7 @@ import type { ComponentPublicInstance } from 'vue';
|
|
|
2
2
|
import type { TabsRootProps, TabsRootEmits } from 'reka-ui';
|
|
3
3
|
import type { AppConfig } from '@nuxt/schema';
|
|
4
4
|
import theme from '#build/ui/tabs';
|
|
5
|
-
import type { AvatarProps, BadgeProps } from '../types';
|
|
5
|
+
import type { AvatarProps, BadgeProps, IconProps } from '../types';
|
|
6
6
|
import type { DynamicSlots } from '../types/utils';
|
|
7
7
|
import type { ComponentConfig } from '../types/tv';
|
|
8
8
|
type Tabs = ComponentConfig<typeof theme, AppConfig, 'tabs'>;
|
|
@@ -11,7 +11,7 @@ export interface TabsItem {
|
|
|
11
11
|
/**
|
|
12
12
|
* @IconifyIcon
|
|
13
13
|
*/
|
|
14
|
-
icon?:
|
|
14
|
+
icon?: IconProps['name'];
|
|
15
15
|
avatar?: AvatarProps;
|
|
16
16
|
/**
|
|
17
17
|
* Display a badge on the item.
|
|
@@ -83,7 +83,7 @@ export type TabsSlots<T extends TabsItem = TabsItem> = {
|
|
|
83
83
|
declare const _default: <T extends TabsItem>(__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<{
|
|
84
84
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
85
85
|
readonly "onUpdate:modelValue"?: ((payload: string | number) => any) | undefined;
|
|
86
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & TabsProps<T> &
|
|
86
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & TabsProps<T> & {}> & import("vue").PublicProps;
|
|
87
87
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
88
88
|
triggersRef: import("vue").Ref<ComponentPublicInstance[], ComponentPublicInstance[]>;
|
|
89
89
|
}>): void;
|
|
@@ -36,14 +36,14 @@ const props = defineProps({
|
|
|
36
36
|
modelModifiers: { type: Object, required: false },
|
|
37
37
|
class: { type: null, required: false },
|
|
38
38
|
ui: { type: null, required: false },
|
|
39
|
-
icon: { type: String, required: false },
|
|
39
|
+
icon: { type: [String, Object], required: false },
|
|
40
40
|
avatar: { type: Object, required: false },
|
|
41
41
|
leading: { type: Boolean, required: false },
|
|
42
|
-
leadingIcon: { type: String, required: false },
|
|
42
|
+
leadingIcon: { type: [String, Object], required: false },
|
|
43
43
|
trailing: { type: Boolean, required: false },
|
|
44
|
-
trailingIcon: { type: String, required: false },
|
|
44
|
+
trailingIcon: { type: [String, Object], required: false },
|
|
45
45
|
loading: { type: Boolean, required: false },
|
|
46
|
-
loadingIcon: { type: String, required: false }
|
|
46
|
+
loadingIcon: { type: [String, Object], required: false }
|
|
47
47
|
});
|
|
48
48
|
const emits = defineEmits(["update:modelValue", "blur", "change"]);
|
|
49
49
|
const slots = defineSlots();
|
|
@@ -69,9 +69,12 @@ function updateInput(value) {
|
|
|
69
69
|
if (props.modelModifiers?.number) {
|
|
70
70
|
value = looseToNumber(value);
|
|
71
71
|
}
|
|
72
|
-
if (props.modelModifiers?.
|
|
72
|
+
if (props.modelModifiers?.nullable) {
|
|
73
73
|
value ||= null;
|
|
74
74
|
}
|
|
75
|
+
if (props.modelModifiers?.optional) {
|
|
76
|
+
value ||= void 0;
|
|
77
|
+
}
|
|
75
78
|
modelValue.value = value;
|
|
76
79
|
emitFormInput();
|
|
77
80
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { AppConfig } from '@nuxt/schema';
|
|
2
2
|
import theme from '#build/ui/textarea';
|
|
3
3
|
import type { UseComponentIconsProps } from '../composables/useComponentIcons';
|
|
4
|
+
import type { ModelModifiers } from '../types/input';
|
|
4
5
|
import type { ComponentConfig } from '../types/tv';
|
|
5
6
|
type Textarea = ComponentConfig<typeof theme, AppConfig, 'textarea'>;
|
|
6
7
|
type TextareaValue = string | number | null;
|
|
@@ -38,18 +39,12 @@ export interface TextareaProps<T extends TextareaValue = TextareaValue> extends
|
|
|
38
39
|
highlight?: boolean;
|
|
39
40
|
modelValue?: T;
|
|
40
41
|
defaultValue?: T;
|
|
41
|
-
modelModifiers?:
|
|
42
|
-
string?: boolean;
|
|
43
|
-
number?: boolean;
|
|
44
|
-
trim?: boolean;
|
|
45
|
-
lazy?: boolean;
|
|
46
|
-
nullify?: boolean;
|
|
47
|
-
};
|
|
42
|
+
modelModifiers?: ModelModifiers;
|
|
48
43
|
class?: any;
|
|
49
44
|
ui?: Textarea['slots'];
|
|
50
45
|
}
|
|
51
46
|
export interface TextareaEmits<T extends TextareaValue = TextareaValue> {
|
|
52
|
-
'update:modelValue': [
|
|
47
|
+
'update:modelValue': [value: T];
|
|
53
48
|
'blur': [event: FocusEvent];
|
|
54
49
|
'change': [event: Event];
|
|
55
50
|
}
|
|
@@ -62,14 +57,14 @@ declare const _default: <T extends TextareaValue>(__VLS_props: NonNullable<Await
|
|
|
62
57
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
63
58
|
readonly onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
64
59
|
readonly onChange?: ((event: Event) => any) | undefined;
|
|
65
|
-
readonly "onUpdate:modelValue"?: ((
|
|
66
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onBlur" | "onChange" | "onUpdate:modelValue"> & TextareaProps<T> &
|
|
60
|
+
readonly "onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
61
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onBlur" | "onChange" | "onUpdate:modelValue"> & TextareaProps<T> & {}> & import("vue").PublicProps;
|
|
67
62
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
68
63
|
textareaRef: import("vue").Ref<HTMLTextAreaElement | null, HTMLTextAreaElement | null>;
|
|
69
64
|
}>): void;
|
|
70
65
|
attrs: any;
|
|
71
66
|
slots: TextareaSlots;
|
|
72
|
-
emit: ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue",
|
|
67
|
+
emit: ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: T) => void);
|
|
73
68
|
}>) => import("vue").VNode & {
|
|
74
69
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
75
70
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AppConfig } from '@nuxt/schema';
|
|
2
2
|
import theme from '#build/ui/timeline';
|
|
3
|
-
import type { AvatarProps } from '../types';
|
|
3
|
+
import type { AvatarProps, IconProps } from '../types';
|
|
4
4
|
import type { DynamicSlots } from '../types/utils';
|
|
5
5
|
import type { ComponentConfig } from '../types/tv';
|
|
6
6
|
type Timeline = ComponentConfig<typeof theme, AppConfig, 'timeline'>;
|
|
@@ -8,7 +8,7 @@ export interface TimelineItem {
|
|
|
8
8
|
date?: string;
|
|
9
9
|
title?: string;
|
|
10
10
|
description?: string;
|
|
11
|
-
icon?:
|
|
11
|
+
icon?: IconProps['name'];
|
|
12
12
|
avatar?: AvatarProps;
|
|
13
13
|
value?: string | number;
|
|
14
14
|
slot?: string;
|
|
@@ -57,7 +57,7 @@ declare const _default: <T extends TimelineItem>(__VLS_props: NonNullable<Awaite
|
|
|
57
57
|
readonly "onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
|
|
58
58
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & (TimelineProps<T> & {
|
|
59
59
|
modelValue?: string | number;
|
|
60
|
-
}) &
|
|
60
|
+
}) & {}> & import("vue").PublicProps;
|
|
61
61
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
62
62
|
attrs: any;
|
|
63
63
|
slots: TimelineSlots<T>;
|
|
@@ -17,12 +17,12 @@ const props = defineProps({
|
|
|
17
17
|
as: { type: null, required: false },
|
|
18
18
|
title: { type: [String, Object, Function], required: false },
|
|
19
19
|
description: { type: [String, Object, Function], required: false },
|
|
20
|
-
icon: { type: String, required: false },
|
|
20
|
+
icon: { type: [String, Object], required: false },
|
|
21
21
|
avatar: { type: Object, required: false },
|
|
22
22
|
color: { type: null, required: false },
|
|
23
23
|
orientation: { type: null, required: false, default: "vertical" },
|
|
24
24
|
close: { type: [Boolean, Object], required: false, default: true },
|
|
25
|
-
closeIcon: { type: String, required: false },
|
|
25
|
+
closeIcon: { type: [String, Object], required: false },
|
|
26
26
|
actions: { type: Array, required: false },
|
|
27
27
|
progress: { type: [Boolean, Object], required: false, default: true },
|
|
28
28
|
class: { type: null, required: false },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ToastRootProps, ToastRootEmits } from 'reka-ui';
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
3
|
import theme from '#build/ui/toast';
|
|
4
|
-
import type { AvatarProps, ButtonProps, ProgressProps } from '../types';
|
|
4
|
+
import type { AvatarProps, ButtonProps, IconProps, ProgressProps } from '../types';
|
|
5
5
|
import type { StringOrVNode } from '../types/utils';
|
|
6
6
|
import type { ComponentConfig } from '../types/tv';
|
|
7
7
|
type Toast = ComponentConfig<typeof theme, AppConfig, 'toast'>;
|
|
@@ -16,7 +16,7 @@ export interface ToastProps extends Pick<ToastRootProps, 'defaultOpen' | 'open'
|
|
|
16
16
|
/**
|
|
17
17
|
* @IconifyIcon
|
|
18
18
|
*/
|
|
19
|
-
icon?:
|
|
19
|
+
icon?: IconProps['name'];
|
|
20
20
|
avatar?: AvatarProps;
|
|
21
21
|
/**
|
|
22
22
|
* @defaultValue 'primary'
|
|
@@ -38,7 +38,7 @@ export interface ToastProps extends Pick<ToastRootProps, 'defaultOpen' | 'open'
|
|
|
38
38
|
* @defaultValue appConfig.ui.icons.close
|
|
39
39
|
* @IconifyIcon
|
|
40
40
|
*/
|
|
41
|
-
closeIcon?:
|
|
41
|
+
closeIcon?: IconProps['name'];
|
|
42
42
|
/**
|
|
43
43
|
* Display a list of actions:
|
|
44
44
|
* - under the title and description when orientation is `vertical`
|
|
@@ -30,7 +30,7 @@ export interface ToasterProps extends Omit<ToastProviderProps, 'swipeDirection'>
|
|
|
30
30
|
export interface ToasterSlots {
|
|
31
31
|
default(props?: {}): any;
|
|
32
32
|
}
|
|
33
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ToasterProps,
|
|
33
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ToasterProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToasterProps> & Readonly<{}>, {
|
|
34
34
|
progress: boolean;
|
|
35
35
|
expand: boolean;
|
|
36
36
|
duration: number;
|
|
@@ -42,7 +42,7 @@ export interface TooltipSlots {
|
|
|
42
42
|
}): any;
|
|
43
43
|
content(props?: {}): any;
|
|
44
44
|
}
|
|
45
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<TooltipProps,
|
|
45
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<TooltipProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
46
46
|
"update:open": (value: boolean) => any;
|
|
47
47
|
}, string, import("vue").PublicProps, Readonly<TooltipProps> & Readonly<{
|
|
48
48
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
@@ -17,9 +17,9 @@ const props = defineProps({
|
|
|
17
17
|
size: { type: null, required: false },
|
|
18
18
|
valueKey: { type: null, required: false, default: "value" },
|
|
19
19
|
labelKey: { type: null, required: false, default: "label" },
|
|
20
|
-
trailingIcon: { type: String, required: false },
|
|
21
|
-
expandedIcon: { type: String, required: false },
|
|
22
|
-
collapsedIcon: { type: String, required: false },
|
|
20
|
+
trailingIcon: { type: [String, Object], required: false },
|
|
21
|
+
expandedIcon: { type: [String, Object], required: false },
|
|
22
|
+
collapsedIcon: { type: [String, Object], required: false },
|
|
23
23
|
items: { type: null, required: false },
|
|
24
24
|
modelValue: { type: null, required: false },
|
|
25
25
|
defaultValue: { type: null, required: false },
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { TreeRootProps, TreeRootEmits } from 'reka-ui';
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
3
|
import theme from '#build/ui/tree';
|
|
4
|
+
import type { IconProps } from '../types';
|
|
4
5
|
import type { DynamicSlots, GetItemKeys, GetModelValue, GetModelValueEmits, NestedItem } from '../types/utils';
|
|
5
6
|
import type { ComponentConfig } from '../types/tv';
|
|
6
7
|
type Tree = ComponentConfig<typeof theme, AppConfig, 'tree'>;
|
|
@@ -8,12 +9,12 @@ export type TreeItem = {
|
|
|
8
9
|
/**
|
|
9
10
|
* @IconifyIcon
|
|
10
11
|
*/
|
|
11
|
-
icon?:
|
|
12
|
+
icon?: IconProps['name'];
|
|
12
13
|
label?: string;
|
|
13
14
|
/**
|
|
14
15
|
* @IconifyIcon
|
|
15
16
|
*/
|
|
16
|
-
trailingIcon?:
|
|
17
|
+
trailingIcon?: IconProps['name'];
|
|
17
18
|
defaultExpanded?: boolean;
|
|
18
19
|
disabled?: boolean;
|
|
19
20
|
value?: string;
|
|
@@ -54,19 +55,19 @@ export interface TreeProps<T extends TreeItem[] = TreeItem[], VK extends GetItem
|
|
|
54
55
|
* @defaultValue appConfig.ui.icons.chevronDown
|
|
55
56
|
* @IconifyIcon
|
|
56
57
|
*/
|
|
57
|
-
trailingIcon?:
|
|
58
|
+
trailingIcon?: IconProps['name'];
|
|
58
59
|
/**
|
|
59
60
|
* The icon displayed when a parent node is expanded.
|
|
60
61
|
* @defaultValue appConfig.ui.icons.folderOpen
|
|
61
62
|
* @IconifyIcon
|
|
62
63
|
*/
|
|
63
|
-
expandedIcon?:
|
|
64
|
+
expandedIcon?: IconProps['name'];
|
|
64
65
|
/**
|
|
65
66
|
* The icon displayed when a parent node is collapsed.
|
|
66
67
|
* @defaultValue appConfig.ui.icons.folder
|
|
67
68
|
* @IconifyIcon
|
|
68
69
|
*/
|
|
69
|
-
collapsedIcon?:
|
|
70
|
+
collapsedIcon?: IconProps['name'];
|
|
70
71
|
items?: T;
|
|
71
72
|
/** The controlled value of the Tree. Can be bind as `v-model`. */
|
|
72
73
|
modelValue?: GetModelValue<T, VK, M>;
|
|
@@ -99,13 +100,13 @@ export type TreeSlots<A extends TreeItem[] = TreeItem[], T extends NestedItem<A>
|
|
|
99
100
|
}>;
|
|
100
101
|
declare const _default: <T extends TreeItem[], 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<{
|
|
101
102
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
102
|
-
readonly "onUpdate:modelValue"?: ((
|
|
103
|
+
readonly "onUpdate:modelValue"?: ((value: GetModelValue<T, VK, M>) => any) | undefined;
|
|
103
104
|
readonly "onUpdate:expanded"?: ((val: string[]) => any) | undefined;
|
|
104
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:expanded"> & TreeProps<T, VK, M> &
|
|
105
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:expanded"> & TreeProps<T, VK, M> & {}> & import("vue").PublicProps;
|
|
105
106
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
106
107
|
attrs: any;
|
|
107
108
|
slots: TreeSlots<T, NestedItem<T>>;
|
|
108
|
-
emit: ((evt: "update:modelValue",
|
|
109
|
+
emit: ((evt: "update:modelValue", value: GetModelValue<T, VK, M>) => void) & ((evt: "update:expanded", val: string[]) => void);
|
|
109
110
|
}>) => import("vue").VNode & {
|
|
110
111
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
111
112
|
};
|
|
@@ -36,7 +36,7 @@ export interface UserSlots {
|
|
|
36
36
|
description(props?: {}): any;
|
|
37
37
|
default(props?: {}): any;
|
|
38
38
|
}
|
|
39
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<UserProps,
|
|
39
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<UserProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<UserProps> & Readonly<{}>, {
|
|
40
40
|
orientation: User["variants"]["orientation"];
|
|
41
41
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, UserSlots>;
|
|
42
42
|
export default _default;
|
|
@@ -3,5 +3,5 @@ export interface ColorModeAvatarProps extends /** @vue-ignore */ Omit<AvatarProp
|
|
|
3
3
|
light: string;
|
|
4
4
|
dark: string;
|
|
5
5
|
}
|
|
6
|
-
declare const _default: import("vue").DefineComponent<{},
|
|
6
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
7
|
export default _default;
|
|
@@ -9,7 +9,7 @@ export interface ColorModeButtonProps extends /** @vue-ignore */ Pick<ButtonProp
|
|
|
9
9
|
*/
|
|
10
10
|
variant?: ButtonProps['variant'];
|
|
11
11
|
}
|
|
12
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ColorModeButtonProps,
|
|
12
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ColorModeButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ColorModeButtonProps> & Readonly<{}>, {
|
|
13
13
|
color: ButtonProps["color"];
|
|
14
14
|
variant: ButtonProps["variant"];
|
|
15
15
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
@@ -2,5 +2,5 @@ type __VLS_Props = {
|
|
|
2
2
|
dark: string;
|
|
3
3
|
light: string;
|
|
4
4
|
};
|
|
5
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props,
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
6
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SelectMenuProps } from '@nuxt/ui';
|
|
2
2
|
export interface ColorModeSelectProps extends /** @vue-ignore */ Pick<SelectMenuProps<any>, 'color' | 'variant' | 'size' | 'trailingIcon' | 'selectedIcon' | 'content' | 'arrow' | 'portal' | 'disabled' | 'ui'> {
|
|
3
3
|
}
|
|
4
|
-
declare const _default: import("vue").DefineComponent<ColorModeSelectProps,
|
|
4
|
+
declare const _default: import("vue").DefineComponent<ColorModeSelectProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ColorModeSelectProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
5
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SwitchProps } from '@nuxt/ui';
|
|
2
2
|
export interface ColorModeSwitchProps extends /** @vue-ignore */ Pick<SwitchProps, 'as' | 'color' | 'size' | 'disabled' | 'ui'> {
|
|
3
3
|
}
|
|
4
|
-
declare const _default: import("vue").DefineComponent<ColorModeSwitchProps,
|
|
4
|
+
declare const _default: import("vue").DefineComponent<ColorModeSwitchProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ColorModeSwitchProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
5
|
export default _default;
|
|
@@ -19,7 +19,7 @@ defineOptions({ inheritAttrs: false });
|
|
|
19
19
|
const props = defineProps({
|
|
20
20
|
as: { type: null, required: false, default: "nav" },
|
|
21
21
|
defaultOpen: { type: Boolean, required: false, default: void 0 },
|
|
22
|
-
trailingIcon: { type: String, required: false },
|
|
22
|
+
trailingIcon: { type: [String, Object], required: false },
|
|
23
23
|
color: { type: null, required: false },
|
|
24
24
|
variant: { type: null, required: false },
|
|
25
25
|
highlight: { type: Boolean, required: false, default: false },
|