nuance-ui 0.1.5 → 0.1.7
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/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/email-input.d.vue.ts +22 -0
- package/dist/runtime/components/input/email-input.vue +41 -0
- package/dist/runtime/components/input/email-input.vue.d.ts +22 -0
- package/dist/runtime/components/input/input.d.vue.ts +5 -5
- package/dist/runtime/components/input/input.vue +16 -7
- package/dist/runtime/components/input/input.vue.d.ts +5 -5
- 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 +8 -2
- package/dist/runtime/components/input/number-input.vue +17 -1
- package/dist/runtime/components/input/number-input.vue.d.ts +8 -2
- package/dist/runtime/components/input/password-input.d.vue.ts +19 -1
- package/dist/runtime/components/input/password-input.vue +25 -5
- package/dist/runtime/components/input/password-input.vue.d.ts +19 -1
- package/dist/runtime/components/input/text-input.d.vue.ts +6 -6
- package/dist/runtime/components/input/text-input.vue +14 -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 +10 -9
- 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 +17 -7
- 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
|
@@ -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;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import Box from "../box.vue";
|
|
3
3
|
const { feature, ...rest } = defineProps({
|
|
4
|
-
feature: { type: String, required: false }
|
|
4
|
+
feature: { type: String, required: false },
|
|
5
|
+
is: { type: null, required: false },
|
|
6
|
+
mod: { type: [Object, Array, null], required: false }
|
|
5
7
|
});
|
|
6
8
|
</script>
|
|
7
9
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuance-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "A UI Library for Modern Web Apps, powered by Vue.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"nuxt": "^4.0.0",
|
|
51
|
-
"vue": "^3.
|
|
51
|
+
"vue": "^3.5.0",
|
|
52
52
|
"@nuxtjs/color-mode": "^4.0.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependenciesMeta": {
|