nuance-ui 0.1.4 → 0.1.6
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/README.md +6 -0
- package/dist/module.json +1 -1
- package/dist/runtime/components/action-icon/action-icon-group.d.vue.ts +1 -1
- package/dist/runtime/components/action-icon/action-icon-group.vue +3 -1
- package/dist/runtime/components/action-icon/action-icon-group.vue.d.ts +1 -1
- package/dist/runtime/components/action-icon/action-icon-section.d.vue.ts +1 -1
- package/dist/runtime/components/action-icon/action-icon-section.vue +3 -1
- package/dist/runtime/components/action-icon/action-icon-section.vue.d.ts +1 -1
- package/dist/runtime/components/action-icon/action-icon.vue +1 -1
- package/dist/runtime/components/app-shell/app-shell-section.d.vue.ts +1 -1
- package/dist/runtime/components/app-shell/app-shell-section.vue +3 -1
- package/dist/runtime/components/app-shell/app-shell-section.vue.d.ts +1 -1
- package/dist/runtime/components/app-shell/app-shell.d.vue.ts +1 -1
- package/dist/runtime/components/app-shell/app-shell.vue +3 -1
- package/dist/runtime/components/app-shell/app-shell.vue.d.ts +1 -1
- package/dist/runtime/components/background-image.d.vue.ts +1 -1
- package/dist/runtime/components/background-image.vue +3 -1
- package/dist/runtime/components/background-image.vue.d.ts +1 -1
- package/dist/runtime/components/button/button-group.d.vue.ts +1 -1
- package/dist/runtime/components/button/button-group.vue +3 -1
- package/dist/runtime/components/button/button-group.vue.d.ts +1 -1
- package/dist/runtime/components/button/button.d.vue.ts +1 -1
- package/dist/runtime/components/button/button.vue +3 -1
- package/dist/runtime/components/button/button.vue.d.ts +1 -1
- package/dist/runtime/components/button/unstyled-button.d.vue.ts +3 -2
- package/dist/runtime/components/button/unstyled-button.vue +3 -2
- package/dist/runtime/components/button/unstyled-button.vue.d.ts +3 -2
- package/dist/runtime/components/card/card-section.d.vue.ts +1 -1
- package/dist/runtime/components/card/card-section.vue +3 -1
- package/dist/runtime/components/card/card-section.vue.d.ts +1 -1
- package/dist/runtime/components/card/card.d.vue.ts +1 -1
- package/dist/runtime/components/card/card.vue +6 -1
- package/dist/runtime/components/card/card.vue.d.ts +1 -1
- package/dist/runtime/components/checkbox/checkbox-group.d.vue.ts +1 -1
- package/dist/runtime/components/checkbox/checkbox-group.vue +9 -1
- package/dist/runtime/components/checkbox/checkbox-group.vue.d.ts +1 -1
- package/dist/runtime/components/checkbox/checkbox.d.vue.ts +1 -1
- package/dist/runtime/components/checkbox/checkbox.vue +11 -2
- package/dist/runtime/components/checkbox/checkbox.vue.d.ts +1 -1
- package/dist/runtime/components/checkbox/lib/card.context.d.ts +1 -1
- package/dist/runtime/components/checkbox/lib/card.context.js +3 -4
- package/dist/runtime/components/checkbox/lib/group.context.d.ts +1 -1
- package/dist/runtime/components/checkbox/lib/group.context.js +3 -4
- package/dist/runtime/components/chip/chip.vue +2 -2
- package/dist/runtime/components/combobox/combobox-empty.d.vue.ts +1 -1
- package/dist/runtime/components/combobox/combobox-empty.vue +5 -2
- package/dist/runtime/components/combobox/combobox-empty.vue.d.ts +1 -1
- package/dist/runtime/components/combobox/combobox-group.d.vue.ts +1 -1
- package/dist/runtime/components/combobox/combobox-group.vue +2 -0
- package/dist/runtime/components/combobox/combobox-group.vue.d.ts +1 -1
- package/dist/runtime/components/combobox/combobox-option-list.d.vue.ts +1 -1
- package/dist/runtime/components/combobox/combobox-option-list.vue +3 -1
- package/dist/runtime/components/combobox/combobox-option-list.vue.d.ts +1 -1
- package/dist/runtime/components/combobox/combobox-option.d.vue.ts +1 -1
- package/dist/runtime/components/combobox/combobox-option.vue +2 -0
- package/dist/runtime/components/combobox/combobox-option.vue.d.ts +1 -1
- package/dist/runtime/components/combobox/combobox-root.d.vue.ts +1 -1
- package/dist/runtime/components/combobox/combobox-root.vue +14 -1
- package/dist/runtime/components/combobox/combobox-root.vue.d.ts +1 -1
- package/dist/runtime/components/container.d.vue.ts +1 -1
- package/dist/runtime/components/container.vue +3 -1
- package/dist/runtime/components/container.vue.d.ts +1 -1
- package/dist/runtime/components/dialog/dialog-header.d.vue.ts +1 -1
- package/dist/runtime/components/dialog/dialog-header.vue +5 -2
- package/dist/runtime/components/dialog/dialog-header.vue.d.ts +1 -1
- package/dist/runtime/components/dialog/dialog-root.d.vue.ts +1 -1
- package/dist/runtime/components/dialog/dialog-root.vue +3 -1
- package/dist/runtime/components/dialog/dialog-root.vue.d.ts +1 -1
- package/dist/runtime/components/dialog/dialog-title.d.vue.ts +1 -1
- package/dist/runtime/components/dialog/dialog-title.vue +16 -1
- package/dist/runtime/components/dialog/dialog-title.vue.d.ts +1 -1
- package/dist/runtime/components/drawer/drawer-header.d.vue.ts +1 -1
- package/dist/runtime/components/drawer/drawer-header.vue +4 -1
- package/dist/runtime/components/drawer/drawer-header.vue.d.ts +1 -1
- package/dist/runtime/components/drawer/drawer-root.d.vue.ts +2 -1
- package/dist/runtime/components/drawer/drawer-root.vue +11 -1
- package/dist/runtime/components/drawer/drawer-root.vue.d.ts +2 -1
- package/dist/runtime/components/drawer/drawer-title.d.vue.ts +1 -1
- package/dist/runtime/components/drawer/drawer-title.vue +16 -1
- package/dist/runtime/components/drawer/drawer-title.vue.d.ts +1 -1
- package/dist/runtime/components/input/input.d.vue.ts +1 -1
- package/dist/runtime/components/input/input.vue +11 -0
- package/dist/runtime/components/input/input.vue.d.ts +1 -1
- package/dist/runtime/components/input/lib/input-wrapper.context.d.ts +2 -2
- package/dist/runtime/components/input/lib/input-wrapper.context.js +4 -5
- package/dist/runtime/components/input/number-input.d.vue.ts +1 -1
- package/dist/runtime/components/input/number-input.vue +7 -1
- package/dist/runtime/components/input/number-input.vue.d.ts +1 -1
- package/dist/runtime/components/input/password-input.vue +5 -1
- package/dist/runtime/components/input/text-input.d.vue.ts +6 -6
- package/dist/runtime/components/input/text-input.vue +8 -4
- package/dist/runtime/components/input/text-input.vue.d.ts +6 -6
- package/dist/runtime/components/input/ui/input-base.d.vue.ts +4 -3
- package/dist/runtime/components/input/ui/input-base.vue +8 -7
- package/dist/runtime/components/input/ui/input-base.vue.d.ts +4 -3
- package/dist/runtime/components/input/ui/input-inline.d.vue.ts +1 -1
- package/dist/runtime/components/input/ui/input-inline.vue +3 -1
- package/dist/runtime/components/input/ui/input-inline.vue.d.ts +1 -1
- package/dist/runtime/components/input/ui/input-wrapper.d.vue.ts +2 -2
- package/dist/runtime/components/input/ui/input-wrapper.vue +16 -6
- package/dist/runtime/components/input/ui/input-wrapper.vue.d.ts +2 -2
- package/dist/runtime/components/link/link-button.d.vue.ts +1 -1
- package/dist/runtime/components/link/link-button.vue +18 -1
- package/dist/runtime/components/link/link-button.vue.d.ts +1 -1
- package/dist/runtime/components/link/link.d.vue.ts +1 -1
- package/dist/runtime/components/link/link.vue +17 -1
- package/dist/runtime/components/link/link.vue.d.ts +1 -1
- package/dist/runtime/components/modal/modal-header.d.vue.ts +1 -1
- package/dist/runtime/components/modal/modal-header.vue +4 -1
- package/dist/runtime/components/modal/modal-header.vue.d.ts +1 -1
- package/dist/runtime/components/modal/modal-root.d.vue.ts +2 -1
- package/dist/runtime/components/modal/modal-root.vue +11 -1
- package/dist/runtime/components/modal/modal-root.vue.d.ts +2 -1
- package/dist/runtime/components/modal/modal-title.d.vue.ts +1 -1
- package/dist/runtime/components/modal/modal-title.vue +16 -1
- package/dist/runtime/components/modal/modal-title.vue.d.ts +1 -1
- package/dist/runtime/components/nav-link/nav-link.d.vue.ts +1 -1
- package/dist/runtime/components/nav-link/nav-link.vue +2 -0
- package/dist/runtime/components/nav-link/nav-link.vue.d.ts +1 -1
- package/dist/runtime/components/paper.d.vue.ts +1 -1
- package/dist/runtime/components/paper.vue +3 -1
- package/dist/runtime/components/paper.vue.d.ts +1 -1
- package/dist/runtime/components/select/select.d.vue.ts +5 -2
- package/dist/runtime/components/select/select.vue +13 -1
- package/dist/runtime/components/select/select.vue.d.ts +5 -2
- package/dist/runtime/components/tabs/tabs-list.d.vue.ts +1 -1
- package/dist/runtime/components/tabs/tabs-list.vue +3 -1
- package/dist/runtime/components/tabs/tabs-list.vue.d.ts +1 -1
- package/dist/runtime/components/tabs/tabs-panel.d.vue.ts +1 -1
- package/dist/runtime/components/tabs/tabs-panel.vue +3 -1
- package/dist/runtime/components/tabs/tabs-panel.vue.d.ts +1 -1
- package/dist/runtime/components/tabs/tabs-root.d.vue.ts +1 -1
- package/dist/runtime/components/tabs/tabs-root.vue +3 -1
- package/dist/runtime/components/tabs/tabs-root.vue.d.ts +1 -1
- package/dist/runtime/components/text.d.vue.ts +1 -1
- package/dist/runtime/components/text.vue +3 -1
- package/dist/runtime/components/text.vue.d.ts +1 -1
- package/dist/runtime/components/textarea.d.vue.ts +1 -1
- package/dist/runtime/components/textarea.vue +15 -2
- package/dist/runtime/components/textarea.vue.d.ts +1 -1
- package/dist/runtime/components/title.d.vue.ts +1 -1
- package/dist/runtime/components/title.vue +13 -1
- package/dist/runtime/components/title.vue.d.ts +1 -1
- package/dist/runtime/components/visually-hidden/visually-hidden-input.d.vue.ts +1 -1
- package/dist/runtime/components/visually-hidden/visually-hidden-input.vue +4 -1
- package/dist/runtime/components/visually-hidden/visually-hidden-input.vue.d.ts +1 -1
- package/dist/runtime/components/visually-hidden/visually-hidden.d.vue.ts +1 -1
- package/dist/runtime/components/visually-hidden/visually-hidden.vue +3 -1
- package/dist/runtime/components/visually-hidden/visually-hidden.vue.d.ts +1 -1
- package/package.json +2 -2
|
@@ -4,7 +4,7 @@ import { computed, useId } from "vue";
|
|
|
4
4
|
import { useProvideInputWrapper } from "../lib/input-wrapper.context";
|
|
5
5
|
import InputLabel from "./input-label.vue";
|
|
6
6
|
const {
|
|
7
|
-
id
|
|
7
|
+
id,
|
|
8
8
|
error,
|
|
9
9
|
description,
|
|
10
10
|
label,
|
|
@@ -18,13 +18,23 @@ const {
|
|
|
18
18
|
description: { type: String, required: false },
|
|
19
19
|
label: { type: String, required: false },
|
|
20
20
|
required: { type: Boolean, required: false },
|
|
21
|
-
|
|
21
|
+
id: { type: [String, null], required: false },
|
|
22
|
+
radius: { type: String, required: false },
|
|
23
|
+
size: { type: String, required: false },
|
|
24
|
+
variant: { type: String, required: false },
|
|
25
|
+
multiline: { type: Boolean, required: false },
|
|
26
|
+
resize: { type: null, required: false },
|
|
27
|
+
leftSectionPE: { type: null, required: false },
|
|
28
|
+
rightSectionPE: { type: null, required: false }
|
|
22
29
|
});
|
|
23
|
-
const
|
|
30
|
+
const uid = id ?? useId();
|
|
24
31
|
useProvideInputWrapper({
|
|
25
|
-
id,
|
|
26
|
-
|
|
32
|
+
id: uid,
|
|
33
|
+
error,
|
|
34
|
+
description,
|
|
35
|
+
label,
|
|
27
36
|
required,
|
|
37
|
+
variant,
|
|
28
38
|
size,
|
|
29
39
|
radius,
|
|
30
40
|
...props
|
|
@@ -39,7 +49,7 @@ const style = computed(() => ({
|
|
|
39
49
|
<div :style :class='$style.root'>
|
|
40
50
|
<InputLabel
|
|
41
51
|
:data-v-hidden='!label || !$slots.label || null'
|
|
42
|
-
:for='
|
|
52
|
+
:for='uid'
|
|
43
53
|
:class='$style.label'
|
|
44
54
|
:size
|
|
45
55
|
:required
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { WrapperContext } from '../lib/input-wrapper.context.js';
|
|
2
|
-
|
|
3
|
-
export interface InputWrapperProps extends /* @vue-ignore */ WrapperContext, InputLabelProps {
|
|
2
|
+
export interface InputWrapperProps extends WrapperContext {
|
|
4
3
|
error?: string;
|
|
5
4
|
description?: string;
|
|
6
5
|
label?: string;
|
|
6
|
+
required?: boolean;
|
|
7
7
|
}
|
|
8
8
|
declare var __VLS_5: {}, __VLS_7: {}, __VLS_9: {}, __VLS_11: {};
|
|
9
9
|
type __VLS_Slots = {} & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NuxtLinkProps } from '#app';
|
|
2
2
|
import type { ButtonProps } from '../button/index.js';
|
|
3
|
-
export interface LinkButtonProps extends
|
|
3
|
+
export interface LinkButtonProps extends Omit<NuxtLinkProps, 'href' | 'custom'>, ButtonProps {
|
|
4
4
|
}
|
|
5
5
|
declare var __VLS_15: {}, __VLS_17: {}, __VLS_20: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
@@ -2,6 +2,21 @@
|
|
|
2
2
|
import Button from "../button/button.vue";
|
|
3
3
|
import { extractNuxtLinkProps } from "./lib";
|
|
4
4
|
const props = defineProps({
|
|
5
|
+
to: { type: null, required: false },
|
|
6
|
+
external: { type: Boolean, required: false },
|
|
7
|
+
target: { type: [String, Object, null], required: false },
|
|
8
|
+
rel: { type: [String, Object, null], required: false },
|
|
9
|
+
noRel: { type: Boolean, required: false },
|
|
10
|
+
prefetchedClass: { type: String, required: false },
|
|
11
|
+
prefetch: { type: Boolean, required: false },
|
|
12
|
+
prefetchOn: { type: [String, Object], required: false },
|
|
13
|
+
noPrefetch: { type: Boolean, required: false },
|
|
14
|
+
trailingSlash: { type: String, required: false },
|
|
15
|
+
activeClass: { type: String, required: false },
|
|
16
|
+
exactActiveClass: { type: String, required: false },
|
|
17
|
+
ariaCurrentValue: { type: String, required: false },
|
|
18
|
+
viewTransition: { type: Boolean, required: false },
|
|
19
|
+
replace: { type: Boolean, required: false },
|
|
5
20
|
size: { type: null, required: false },
|
|
6
21
|
variant: { type: String, required: false },
|
|
7
22
|
gradient: { type: Object, required: false },
|
|
@@ -12,7 +27,9 @@ const props = defineProps({
|
|
|
12
27
|
leftSectionPE: { type: null, required: false },
|
|
13
28
|
leftSectionProps: { type: Object, required: false },
|
|
14
29
|
rightSectionPE: { type: null, required: false },
|
|
15
|
-
rightSectionProps: { type: Object, required: false }
|
|
30
|
+
rightSectionProps: { type: Object, required: false },
|
|
31
|
+
is: { type: null, required: false },
|
|
32
|
+
mod: { type: [Object, Array, null], required: false }
|
|
16
33
|
});
|
|
17
34
|
const { link, rest } = extractNuxtLinkProps(props);
|
|
18
35
|
</script>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NuxtLinkProps } from '#app';
|
|
2
2
|
import type { ButtonProps } from '../button/index.js';
|
|
3
|
-
export interface LinkButtonProps extends
|
|
3
|
+
export interface LinkButtonProps extends Omit<NuxtLinkProps, 'href' | 'custom'>, ButtonProps {
|
|
4
4
|
}
|
|
5
5
|
declare var __VLS_15: {}, __VLS_17: {}, __VLS_20: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NuxtLinkProps } from '#app';
|
|
2
2
|
import type { TextProps } from '../text.vue.js';
|
|
3
|
-
export interface LinkProps extends
|
|
3
|
+
export interface LinkProps extends Omit<NuxtLinkProps, 'href' | 'custom'>, Omit<TextProps, 'is'> {
|
|
4
4
|
underline?: boolean;
|
|
5
5
|
}
|
|
6
6
|
declare var __VLS_14: {};
|
|
@@ -4,6 +4,21 @@ import Text from "../text.vue";
|
|
|
4
4
|
import { extractNuxtLinkProps } from "./lib";
|
|
5
5
|
const props = defineProps({
|
|
6
6
|
underline: { type: Boolean, required: false },
|
|
7
|
+
to: { type: null, required: false },
|
|
8
|
+
external: { type: Boolean, required: false },
|
|
9
|
+
target: { type: [String, Object, null], required: false },
|
|
10
|
+
rel: { type: [String, Object, null], required: false },
|
|
11
|
+
noRel: { type: Boolean, required: false },
|
|
12
|
+
prefetchedClass: { type: String, required: false },
|
|
13
|
+
prefetch: { type: Boolean, required: false },
|
|
14
|
+
prefetchOn: { type: [String, Object], required: false },
|
|
15
|
+
noPrefetch: { type: Boolean, required: false },
|
|
16
|
+
trailingSlash: { type: String, required: false },
|
|
17
|
+
activeClass: { type: String, required: false },
|
|
18
|
+
exactActiveClass: { type: String, required: false },
|
|
19
|
+
ariaCurrentValue: { type: String, required: false },
|
|
20
|
+
viewTransition: { type: Boolean, required: false },
|
|
21
|
+
replace: { type: Boolean, required: false },
|
|
7
22
|
size: { type: null, required: false },
|
|
8
23
|
lineClamp: { type: Number, required: false },
|
|
9
24
|
truncate: { type: [String, Boolean], required: false },
|
|
@@ -14,7 +29,8 @@ const props = defineProps({
|
|
|
14
29
|
fz: { type: null, required: false },
|
|
15
30
|
lh: { type: String, required: false },
|
|
16
31
|
fw: { type: null, required: false },
|
|
17
|
-
c: { type: null, required: false }
|
|
32
|
+
c: { type: null, required: false },
|
|
33
|
+
mod: { type: [Object, Array, null], required: false }
|
|
18
34
|
});
|
|
19
35
|
const { link, rest } = extractNuxtLinkProps(props);
|
|
20
36
|
</script>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NuxtLinkProps } from '#app';
|
|
2
2
|
import type { TextProps } from '../text.vue.js';
|
|
3
|
-
export interface LinkProps extends
|
|
3
|
+
export interface LinkProps extends Omit<NuxtLinkProps, 'href' | 'custom'>, Omit<TextProps, 'is'> {
|
|
4
4
|
underline?: boolean;
|
|
5
5
|
}
|
|
6
6
|
declare var __VLS_14: {};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import DialogHeader from "../dialog/dialog-header.vue";
|
|
3
|
-
const props = defineProps({
|
|
3
|
+
const props = defineProps({
|
|
4
|
+
is: { type: null, required: false },
|
|
5
|
+
mod: { type: [Object, Array, null], required: false }
|
|
6
|
+
});
|
|
4
7
|
</script>
|
|
5
8
|
|
|
6
9
|
<template>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { DialogModel, DialogRootProps } from '../dialog/index.js';
|
|
2
|
-
|
|
2
|
+
type OmittedDialogRootProps = Omit<DialogRootProps, 'modal' | 'closeOnClickOutside' | 'rootClass' | 'withoutOverlay'>;
|
|
3
|
+
export interface ModalRootProps extends OmittedDialogRootProps {
|
|
3
4
|
/** If set, the modal is centered vertically @default `false` */
|
|
4
5
|
centered?: boolean;
|
|
5
6
|
/** If set, the modal takes the entire screen @default `false` */
|
|
@@ -9,7 +9,17 @@ const {
|
|
|
9
9
|
...rest
|
|
10
10
|
} = defineProps({
|
|
11
11
|
centered: { type: Boolean, required: false },
|
|
12
|
-
fullScreen: { type: Boolean, required: false }
|
|
12
|
+
fullScreen: { type: Boolean, required: false },
|
|
13
|
+
withinPortal: { type: Boolean, required: false },
|
|
14
|
+
yOffset: { type: null, required: false },
|
|
15
|
+
xOffset: { type: null, required: false },
|
|
16
|
+
radius: { type: [String, Number], required: false },
|
|
17
|
+
size: { type: String, required: false },
|
|
18
|
+
shadow: { type: String, required: false },
|
|
19
|
+
padding: { type: [String, Number], required: false },
|
|
20
|
+
transition: { type: String, required: false },
|
|
21
|
+
is: { type: null, required: false },
|
|
22
|
+
mod: { type: [Object, Array, null], required: false }
|
|
13
23
|
});
|
|
14
24
|
defineEmits(["open", "close"]);
|
|
15
25
|
const opened = defineModel("open", { type: Boolean, ...{ default: false } });
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { DialogModel, DialogRootProps } from '../dialog/index.js';
|
|
2
|
-
|
|
2
|
+
type OmittedDialogRootProps = Omit<DialogRootProps, 'modal' | 'closeOnClickOutside' | 'rootClass' | 'withoutOverlay'>;
|
|
3
|
+
export interface ModalRootProps extends OmittedDialogRootProps {
|
|
3
4
|
/** If set, the modal is centered vertically @default `false` */
|
|
4
5
|
centered?: boolean;
|
|
5
6
|
/** If set, the modal takes the entire screen @default `false` */
|
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import DialogTitle from "../dialog/dialog-title.vue";
|
|
3
|
-
const props = defineProps({
|
|
3
|
+
const props = defineProps({
|
|
4
|
+
order: { type: String, required: false },
|
|
5
|
+
textWrap: { type: String, required: false },
|
|
6
|
+
size: { type: null, required: false },
|
|
7
|
+
lineClamp: { type: Number, required: false },
|
|
8
|
+
truncate: { type: [String, Boolean], required: false },
|
|
9
|
+
inline: { type: Boolean, required: false },
|
|
10
|
+
inherit: { type: Boolean, required: false },
|
|
11
|
+
gradient: { type: Object, required: false },
|
|
12
|
+
variant: { type: String, required: false },
|
|
13
|
+
fz: { type: null, required: false },
|
|
14
|
+
lh: { type: String, required: false },
|
|
15
|
+
fw: { type: null, required: false },
|
|
16
|
+
c: { type: null, required: false },
|
|
17
|
+
mod: { type: [Object, Array, null], required: false }
|
|
18
|
+
});
|
|
4
19
|
</script>
|
|
5
20
|
|
|
6
21
|
<template>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { NuanceColor } from '@nui/types';
|
|
2
2
|
import type { NuxtLinkProps } from 'nuxt/app';
|
|
3
3
|
import type { BoxProps } from '../box.vue.js';
|
|
4
|
-
export interface NavLinkProps extends
|
|
4
|
+
export interface NavLinkProps extends BoxProps, Omit<NuxtLinkProps, 'href' | 'custom'> {
|
|
5
5
|
/** Link description, displayed below the label */
|
|
6
6
|
description?: string;
|
|
7
7
|
/** Determines whether the link should have active styles @default `false` */
|
|
@@ -12,6 +12,8 @@ const props = defineProps({
|
|
|
12
12
|
noWrap: { type: Boolean, required: false },
|
|
13
13
|
disabled: { type: Boolean, required: false },
|
|
14
14
|
variant: { type: String, required: false },
|
|
15
|
+
is: { type: null, required: false },
|
|
16
|
+
mod: { type: [Object, Array, null], required: false },
|
|
15
17
|
to: { type: null, required: false },
|
|
16
18
|
external: { type: Boolean, required: false },
|
|
17
19
|
target: { type: [String, Object, null], required: false },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { NuanceColor } from '@nui/types';
|
|
2
2
|
import type { NuxtLinkProps } from 'nuxt/app';
|
|
3
3
|
import type { BoxProps } from '../box.vue.js';
|
|
4
|
-
export interface NavLinkProps extends
|
|
4
|
+
export interface NavLinkProps extends BoxProps, Omit<NuxtLinkProps, 'href' | 'custom'> {
|
|
5
5
|
/** Link description, displayed below the label */
|
|
6
6
|
description?: string;
|
|
7
7
|
/** Determines whether the link should have active styles @default `false` */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NuanceRadius, NuanceShadow } from '@nui/types';
|
|
2
2
|
import type { BoxProps } from './box.vue.js';
|
|
3
|
-
export interface PaperProps extends
|
|
3
|
+
export interface PaperProps extends BoxProps {
|
|
4
4
|
shadow?: NuanceShadow;
|
|
5
5
|
radius?: NuanceRadius;
|
|
6
6
|
withBorder?: boolean;
|
|
@@ -5,7 +5,9 @@ import Box from "./box.vue";
|
|
|
5
5
|
const { is, mod, radius, shadow, withBorder } = defineProps({
|
|
6
6
|
shadow: { type: String, required: false },
|
|
7
7
|
radius: { type: [String, Number], required: false },
|
|
8
|
-
withBorder: { type: Boolean, required: false }
|
|
8
|
+
withBorder: { type: Boolean, required: false },
|
|
9
|
+
is: { type: null, required: false },
|
|
10
|
+
mod: { type: [Object, Array, null], required: false }
|
|
9
11
|
});
|
|
10
12
|
const style = computed(() => ({
|
|
11
13
|
"--paper-radius": radius && getRadius(radius),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NuanceRadius, NuanceShadow } from '@nui/types';
|
|
2
2
|
import type { BoxProps } from './box.vue.js';
|
|
3
|
-
export interface PaperProps extends
|
|
3
|
+
export interface PaperProps extends BoxProps {
|
|
4
4
|
shadow?: NuanceShadow;
|
|
5
5
|
radius?: NuanceRadius;
|
|
6
6
|
withBorder?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ComboboxData, ComboboxItem, ComboboxItemExt
|
|
1
|
+
import type { ComboboxData, ComboboxItem, ComboboxItemExt } from '../combobox/index.js';
|
|
2
2
|
import type { InputProps } from '../input/index.js';
|
|
3
|
-
export interface SelectProps<Value extends string = string, Ext extends ComboboxItemExt = object> extends
|
|
3
|
+
export interface SelectProps<Value extends string = string, Ext extends ComboboxItemExt = object> extends Omit<InputProps, 'modelValue' | 'multiline' | 'resize' | 'is' | 'id'> {
|
|
4
4
|
data: ComboboxData<Value, Ext>;
|
|
5
5
|
/** Determines whether the select should be searchable @default `false` */
|
|
6
6
|
searchable?: boolean;
|
|
@@ -14,6 +14,9 @@ export interface SelectProps<Value extends string = string, Ext extends Combobox
|
|
|
14
14
|
allowDeselect?: boolean;
|
|
15
15
|
/** If set, the clear button is displayed in the right section when the component has value @default `false` */
|
|
16
16
|
limit?: number;
|
|
17
|
+
/** Props passed down to the underlying `ScrollArea` component in the dropdown */
|
|
18
|
+
/** Input autocomplete attribute */
|
|
19
|
+
autoComplete?: string;
|
|
17
20
|
}
|
|
18
21
|
declare const __VLS_export: <Value extends string = string, Ext extends ComboboxItemExt = object>(__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<{
|
|
19
22
|
props: __VLS_PrettifyLocal<(SelectProps<Value, Ext> & {
|
|
@@ -27,7 +27,19 @@ const {
|
|
|
27
27
|
nothingFoundMessage: { type: String, required: false },
|
|
28
28
|
allowDeselect: { type: Boolean, required: false },
|
|
29
29
|
limit: { type: Number, required: false },
|
|
30
|
-
autoComplete: { type: String, required: false }
|
|
30
|
+
autoComplete: { type: String, required: false },
|
|
31
|
+
withAria: { type: Boolean, required: false },
|
|
32
|
+
error: { type: String, required: false },
|
|
33
|
+
description: { type: String, required: false },
|
|
34
|
+
label: { type: String, required: false },
|
|
35
|
+
required: { type: Boolean, required: false },
|
|
36
|
+
radius: { type: String, required: false },
|
|
37
|
+
size: { type: String, required: false },
|
|
38
|
+
variant: { type: String, required: false },
|
|
39
|
+
leftSectionPE: { type: null, required: false },
|
|
40
|
+
rightSectionPE: { type: null, required: false },
|
|
41
|
+
readonly: { type: Boolean, required: false },
|
|
42
|
+
disabled: { type: Boolean, required: false }
|
|
31
43
|
});
|
|
32
44
|
const emit = defineEmits(["clear", "select", "open", "close", "submit"]);
|
|
33
45
|
const opened = defineModel("open", { type: Boolean, ...{ default: false } });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ComboboxData, ComboboxItem, ComboboxItemExt
|
|
1
|
+
import type { ComboboxData, ComboboxItem, ComboboxItemExt } from '../combobox/index.js';
|
|
2
2
|
import type { InputProps } from '../input/index.js';
|
|
3
|
-
export interface SelectProps<Value extends string = string, Ext extends ComboboxItemExt = object> extends
|
|
3
|
+
export interface SelectProps<Value extends string = string, Ext extends ComboboxItemExt = object> extends Omit<InputProps, 'modelValue' | 'multiline' | 'resize' | 'is' | 'id'> {
|
|
4
4
|
data: ComboboxData<Value, Ext>;
|
|
5
5
|
/** Determines whether the select should be searchable @default `false` */
|
|
6
6
|
searchable?: boolean;
|
|
@@ -14,6 +14,9 @@ export interface SelectProps<Value extends string = string, Ext extends Combobox
|
|
|
14
14
|
allowDeselect?: boolean;
|
|
15
15
|
/** If set, the clear button is displayed in the right section when the component has value @default `false` */
|
|
16
16
|
limit?: number;
|
|
17
|
+
/** Props passed down to the underlying `ScrollArea` component in the dropdown */
|
|
18
|
+
/** Input autocomplete attribute */
|
|
19
|
+
autoComplete?: string;
|
|
17
20
|
}
|
|
18
21
|
declare const __VLS_export: <Value extends string = string, Ext extends ComboboxItemExt = object>(__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<{
|
|
19
22
|
props: __VLS_PrettifyLocal<(SelectProps<Value, Ext> & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CSSProperties } from 'vue';
|
|
2
2
|
import type { BoxProps } from '../box.vue.js';
|
|
3
|
-
export interface TabsListProps extends
|
|
3
|
+
export interface TabsListProps extends BoxProps {
|
|
4
4
|
grow?: boolean;
|
|
5
5
|
justify?: CSSProperties['justify-content'];
|
|
6
6
|
}
|
|
@@ -5,7 +5,9 @@ import { useTabsState } from "./lib";
|
|
|
5
5
|
import css from "./tabs.module.css";
|
|
6
6
|
const { is = "header", mod, grow, justify } = defineProps({
|
|
7
7
|
grow: { type: Boolean, required: false },
|
|
8
|
-
justify: { type: null, required: false }
|
|
8
|
+
justify: { type: null, required: false },
|
|
9
|
+
is: { type: null, required: false },
|
|
10
|
+
mod: { type: [Object, Array, null], required: false }
|
|
9
11
|
});
|
|
10
12
|
const ctx = useTabsState();
|
|
11
13
|
const style = computed(() => ({ "--tabs-justify": justify }));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CSSProperties } from 'vue';
|
|
2
2
|
import type { BoxProps } from '../box.vue.js';
|
|
3
|
-
export interface TabsListProps extends
|
|
3
|
+
export interface TabsListProps extends BoxProps {
|
|
4
4
|
grow?: boolean;
|
|
5
5
|
justify?: CSSProperties['justify-content'];
|
|
6
6
|
}
|
|
@@ -3,7 +3,9 @@ import Box from "../box.vue";
|
|
|
3
3
|
import { useTabsState } from "./lib";
|
|
4
4
|
import css from "./tabs.module.css";
|
|
5
5
|
const { is = "section", mod, value } = defineProps({
|
|
6
|
-
value: { type: String, required: true }
|
|
6
|
+
value: { type: String, required: true },
|
|
7
|
+
is: { type: null, required: false },
|
|
8
|
+
mod: { type: [Object, Array, null], required: false }
|
|
7
9
|
});
|
|
8
10
|
const ctx = useTabsState();
|
|
9
11
|
</script>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NuanceColor, NuanceRadius } from '@nui/types';
|
|
2
2
|
import type { BoxProps } from '../box.vue.js';
|
|
3
|
-
export interface TabsRootProps extends
|
|
3
|
+
export interface TabsRootProps extends BoxProps {
|
|
4
4
|
defaultTab?: string;
|
|
5
5
|
/** Tabs orientation, `'horizontal'` by default */
|
|
6
6
|
orientation?: 'vertical' | 'horizontal';
|
|
@@ -28,7 +28,9 @@ const {
|
|
|
28
28
|
radius: { type: [String, Number], required: false },
|
|
29
29
|
inverted: { type: Boolean, required: false },
|
|
30
30
|
keepMounted: { type: Boolean, required: false },
|
|
31
|
-
id: { type: String, required: false }
|
|
31
|
+
id: { type: String, required: false },
|
|
32
|
+
is: { type: null, required: false },
|
|
33
|
+
mod: { type: [Object, Array, null], required: false }
|
|
32
34
|
});
|
|
33
35
|
const VALUE_ERROR = "component was rendered with invalid value or without value";
|
|
34
36
|
const uid = id ?? useId();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NuanceColor, NuanceRadius } from '@nui/types';
|
|
2
2
|
import type { BoxProps } from '../box.vue.js';
|
|
3
|
-
export interface TabsRootProps extends
|
|
3
|
+
export interface TabsRootProps extends BoxProps {
|
|
4
4
|
defaultTab?: string;
|
|
5
5
|
/** Tabs orientation, `'horizontal'` by default */
|
|
6
6
|
orientation?: 'vertical' | 'horizontal';
|
|
@@ -3,7 +3,7 @@ import type { CSSProperties } from 'vue';
|
|
|
3
3
|
import type { BoxProps } from './box.vue.js';
|
|
4
4
|
type TitleOrder = 1 | 2 | 3 | 4 | 5 | 6;
|
|
5
5
|
type TextTruncate = 'end' | 'start' | boolean;
|
|
6
|
-
export interface TextProps extends
|
|
6
|
+
export interface TextProps extends BoxProps {
|
|
7
7
|
/** Controls `font-size` and `line-height`, `'md'` by default */
|
|
8
8
|
size?: NuanceSize | `h${TitleOrder}` | string;
|
|
9
9
|
/** Number of lines after which Text will be truncated */
|
|
@@ -29,7 +29,9 @@ const {
|
|
|
29
29
|
fz: { type: null, required: false },
|
|
30
30
|
lh: { type: String, required: false },
|
|
31
31
|
fw: { type: null, required: false },
|
|
32
|
-
c: { type: null, required: false }
|
|
32
|
+
c: { type: null, required: false },
|
|
33
|
+
is: { type: null, required: false },
|
|
34
|
+
mod: { type: [Object, Array, null], required: false }
|
|
33
35
|
});
|
|
34
36
|
const _mod = computed(() => [
|
|
35
37
|
{
|
|
@@ -3,7 +3,7 @@ import type { CSSProperties } from 'vue';
|
|
|
3
3
|
import type { BoxProps } from './box.vue.js';
|
|
4
4
|
type TitleOrder = 1 | 2 | 3 | 4 | 5 | 6;
|
|
5
5
|
type TextTruncate = 'end' | 'start' | boolean;
|
|
6
|
-
export interface TextProps extends
|
|
6
|
+
export interface TextProps extends BoxProps {
|
|
7
7
|
/** Controls `font-size` and `line-height`, `'md'` by default */
|
|
8
8
|
size?: NuanceSize | `h${TitleOrder}` | string;
|
|
9
9
|
/** Number of lines after which Text will be truncated */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { InputWrapperProps } from './input/index.js';
|
|
2
|
-
export interface TextareaProps extends
|
|
2
|
+
export interface TextareaProps extends InputWrapperProps {
|
|
3
3
|
}
|
|
4
4
|
type __VLS_Props = TextareaProps;
|
|
5
5
|
type __VLS_ModelProps = {
|
|
@@ -3,7 +3,20 @@ import { useTextareaAutosize } from "@vueuse/core";
|
|
|
3
3
|
import { useId, useTemplateRef } from "vue";
|
|
4
4
|
import InputBase from "./input/ui/input-base.vue";
|
|
5
5
|
import InputWrapper from "./input/ui/input-wrapper.vue";
|
|
6
|
-
const props = defineProps({
|
|
6
|
+
const { id: uid, ...props } = defineProps({
|
|
7
|
+
error: { type: String, required: false },
|
|
8
|
+
description: { type: String, required: false },
|
|
9
|
+
label: { type: String, required: false },
|
|
10
|
+
required: { type: Boolean, required: false },
|
|
11
|
+
id: { type: [String, null], required: false },
|
|
12
|
+
radius: { type: String, required: false },
|
|
13
|
+
size: { type: String, required: false },
|
|
14
|
+
variant: { type: String, required: false },
|
|
15
|
+
multiline: { type: Boolean, required: false },
|
|
16
|
+
resize: { type: null, required: false },
|
|
17
|
+
leftSectionPE: { type: null, required: false },
|
|
18
|
+
rightSectionPE: { type: null, required: false }
|
|
19
|
+
});
|
|
7
20
|
const modelValue = defineModel({ type: String });
|
|
8
21
|
const inputRef = useTemplateRef("inputRef");
|
|
9
22
|
const { input } = useTextareaAutosize({
|
|
@@ -11,7 +24,7 @@ const { input } = useTextareaAutosize({
|
|
|
11
24
|
styleProp: "minHeight",
|
|
12
25
|
element: inputRef.value?.ref
|
|
13
26
|
});
|
|
14
|
-
const id = useId();
|
|
27
|
+
const id = uid ?? useId();
|
|
15
28
|
</script>
|
|
16
29
|
|
|
17
30
|
<template>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { InputWrapperProps } from './input/index.js';
|
|
2
|
-
export interface TextareaProps extends
|
|
2
|
+
export interface TextareaProps extends InputWrapperProps {
|
|
3
3
|
}
|
|
4
4
|
type __VLS_Props = TextareaProps;
|
|
5
5
|
type __VLS_ModelProps = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TextProps } from './text.vue.js';
|
|
2
|
-
export interface TitleProps extends
|
|
2
|
+
export interface TitleProps extends Omit<TextProps, 'is'> {
|
|
3
3
|
order?: '1' | '2' | '3' | '4' | '5' | '6';
|
|
4
4
|
textWrap?: 'wrap' | 'nowrap' | 'balance' | 'pretty' | 'stable';
|
|
5
5
|
}
|
|
@@ -8,7 +8,19 @@ const {
|
|
|
8
8
|
...rest
|
|
9
9
|
} = defineProps({
|
|
10
10
|
order: { type: String, required: false },
|
|
11
|
-
textWrap: { type: String, required: false }
|
|
11
|
+
textWrap: { type: String, required: false },
|
|
12
|
+
size: { type: null, required: false },
|
|
13
|
+
lineClamp: { type: Number, required: false },
|
|
14
|
+
truncate: { type: [String, Boolean], required: false },
|
|
15
|
+
inline: { type: Boolean, required: false },
|
|
16
|
+
inherit: { type: Boolean, required: false },
|
|
17
|
+
gradient: { type: Object, required: false },
|
|
18
|
+
variant: { type: String, required: false },
|
|
19
|
+
fz: { type: null, required: false },
|
|
20
|
+
lh: { type: String, required: false },
|
|
21
|
+
fw: { type: null, required: false },
|
|
22
|
+
c: { type: null, required: false },
|
|
23
|
+
mod: { type: [Object, Array, null], required: false }
|
|
12
24
|
});
|
|
13
25
|
const style = computed(() => ({ "--title-text-wrap": textWrap }));
|
|
14
26
|
</script>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TextProps } from './text.vue.js';
|
|
2
|
-
export interface TitleProps extends
|
|
2
|
+
export interface TitleProps extends Omit<TextProps, 'is'> {
|
|
3
3
|
order?: '1' | '2' | '3' | '4' | '5' | '6';
|
|
4
4
|
textWrap?: 'wrap' | 'nowrap' | 'balance' | 'pretty' | 'stable';
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { VisuallyHiddenProps } from './visually-hidden.vue.js';
|
|
2
|
-
export interface VisuallyHiddenInputProps extends
|
|
2
|
+
export interface VisuallyHiddenInputProps extends VisuallyHiddenProps {
|
|
3
3
|
name: string;
|
|
4
4
|
required?: boolean;
|
|
5
5
|
disabled?: boolean;
|
|
@@ -3,7 +3,10 @@ import VisuallyHidden from "./visually-hidden.vue";
|
|
|
3
3
|
const props = defineProps({
|
|
4
4
|
name: { type: String, required: true },
|
|
5
5
|
required: { type: Boolean, required: false },
|
|
6
|
-
disabled: { type: Boolean, required: false }
|
|
6
|
+
disabled: { type: Boolean, required: false },
|
|
7
|
+
feature: { type: String, required: false },
|
|
8
|
+
is: { type: null, required: false },
|
|
9
|
+
mod: { type: [Object, Array, null], required: false }
|
|
7
10
|
});
|
|
8
11
|
const value = defineModel({ type: null });
|
|
9
12
|
</script>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { VisuallyHiddenProps } from './visually-hidden.vue.js';
|
|
2
|
-
export interface VisuallyHiddenInputProps extends
|
|
2
|
+
export interface VisuallyHiddenInputProps extends VisuallyHiddenProps {
|
|
3
3
|
name: string;
|
|
4
4
|
required?: boolean;
|
|
5
5
|
disabled?: boolean;
|