nuance-ui 0.1.6 → 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/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 +4 -4
- package/dist/runtime/components/input/input.vue +5 -7
- package/dist/runtime/components/input/input.vue.d.ts +4 -4
- package/dist/runtime/components/input/number-input.d.vue.ts +7 -1
- package/dist/runtime/components/input/number-input.vue +10 -0
- package/dist/runtime/components/input/number-input.vue.d.ts +7 -1
- package/dist/runtime/components/input/password-input.d.vue.ts +19 -1
- package/dist/runtime/components/input/password-input.vue +20 -4
- package/dist/runtime/components/input/password-input.vue.d.ts +19 -1
- package/dist/runtime/components/input/text-input.d.vue.ts +4 -4
- package/dist/runtime/components/input/text-input.vue +9 -3
- package/dist/runtime/components/input/text-input.vue.d.ts +4 -4
- package/dist/runtime/components/input/ui/input-base.vue +2 -2
- package/dist/runtime/components/input/ui/input-wrapper.vue +1 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { TextInputProps } from './index.js';
|
|
2
|
+
declare var __VLS_7: {}, __VLS_19: {}, __VLS_22: {}, __VLS_25: {}, __VLS_28: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
leftSection?: (props: typeof __VLS_7) => any;
|
|
5
|
+
} & {
|
|
6
|
+
rightSection?: (props: typeof __VLS_19) => any;
|
|
7
|
+
} & {
|
|
8
|
+
label?: (props: typeof __VLS_22) => any;
|
|
9
|
+
} & {
|
|
10
|
+
error?: (props: typeof __VLS_25) => any;
|
|
11
|
+
} & {
|
|
12
|
+
description?: (props: typeof __VLS_28) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: import("vue").DefineComponent<TextInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TextInputProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import ActionIcon from "../action-icon/action-icon.vue";
|
|
3
|
+
import TextInput from "./text-input.vue";
|
|
4
|
+
const props = defineProps({
|
|
5
|
+
error: { type: String, required: false },
|
|
6
|
+
description: { type: String, required: false },
|
|
7
|
+
label: { type: String, required: false },
|
|
8
|
+
required: { type: Boolean, required: false },
|
|
9
|
+
radius: { type: String, required: false },
|
|
10
|
+
size: { type: String, required: false },
|
|
11
|
+
variant: { type: String, required: false },
|
|
12
|
+
leftSectionPE: { type: null, required: false },
|
|
13
|
+
rightSectionPE: { type: null, required: false }
|
|
14
|
+
});
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<template>
|
|
18
|
+
<TextInput type='email' v-bind='props'>
|
|
19
|
+
<template #leftSection>
|
|
20
|
+
<slot name='leftSection'>
|
|
21
|
+
<ActionIcon variant='subtle'>
|
|
22
|
+
<Icon name='gravity-ui:at' />
|
|
23
|
+
</ActionIcon>
|
|
24
|
+
</slot>
|
|
25
|
+
</template>
|
|
26
|
+
|
|
27
|
+
<template #rightSection>
|
|
28
|
+
<slot name='rightSection' />
|
|
29
|
+
</template>
|
|
30
|
+
|
|
31
|
+
<template v-if='$slots.label' #label>
|
|
32
|
+
<slot name='label' />
|
|
33
|
+
</template>
|
|
34
|
+
<template v-if='$slots.error' #error>
|
|
35
|
+
<slot name='error' />
|
|
36
|
+
</template>
|
|
37
|
+
<template v-if='$slots.description' #description>
|
|
38
|
+
<slot name='description' />
|
|
39
|
+
</template>
|
|
40
|
+
</TextInput>
|
|
41
|
+
</template>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { TextInputProps } from './index.js';
|
|
2
|
+
declare var __VLS_7: {}, __VLS_19: {}, __VLS_22: {}, __VLS_25: {}, __VLS_28: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
leftSection?: (props: typeof __VLS_7) => any;
|
|
5
|
+
} & {
|
|
6
|
+
rightSection?: (props: typeof __VLS_19) => any;
|
|
7
|
+
} & {
|
|
8
|
+
label?: (props: typeof __VLS_22) => any;
|
|
9
|
+
} & {
|
|
10
|
+
error?: (props: typeof __VLS_25) => any;
|
|
11
|
+
} & {
|
|
12
|
+
description?: (props: typeof __VLS_28) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: import("vue").DefineComponent<TextInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TextInputProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -11,13 +11,13 @@ type __VLS_ModelProps = {
|
|
|
11
11
|
modelValue?: any;
|
|
12
12
|
};
|
|
13
13
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
14
|
-
declare var
|
|
14
|
+
declare var __VLS_11: {}, __VLS_14: {}, __VLS_17: {}, __VLS_20: {}, __VLS_23: {};
|
|
15
15
|
type __VLS_Slots = {} & {
|
|
16
|
-
|
|
16
|
+
leftSection?: (props: typeof __VLS_11) => any;
|
|
17
17
|
} & {
|
|
18
|
-
|
|
18
|
+
rightSection?: (props: typeof __VLS_14) => any;
|
|
19
19
|
} & {
|
|
20
|
-
|
|
20
|
+
label?: (props: typeof __VLS_17) => any;
|
|
21
21
|
} & {
|
|
22
22
|
error?: (props: typeof __VLS_20) => any;
|
|
23
23
|
} & {
|
|
@@ -25,10 +25,6 @@ const uid = id ?? useId();
|
|
|
25
25
|
|
|
26
26
|
<template>
|
|
27
27
|
<InputWrapper :id='uid' v-bind='rest'>
|
|
28
|
-
<template #label>
|
|
29
|
-
<slot name='label' />
|
|
30
|
-
</template>
|
|
31
|
-
|
|
32
28
|
<BaseInput :id='uid' v-model='value' v-bind='$attrs'>
|
|
33
29
|
<template v-if='$slots.leftSection' #leftSection>
|
|
34
30
|
<slot name='leftSection' />
|
|
@@ -38,11 +34,13 @@ const uid = id ?? useId();
|
|
|
38
34
|
</template>
|
|
39
35
|
</BaseInput>
|
|
40
36
|
|
|
41
|
-
<template #
|
|
37
|
+
<template v-if='$slots.label' #label>
|
|
38
|
+
<slot name='label' />
|
|
39
|
+
</template>
|
|
40
|
+
<template v-if='$slots.error' #error>
|
|
42
41
|
<slot name='error' />
|
|
43
42
|
</template>
|
|
44
|
-
|
|
45
|
-
<template #description>
|
|
43
|
+
<template v-if='$slots.description' #description>
|
|
46
44
|
<slot name='description' />
|
|
47
45
|
</template>
|
|
48
46
|
</InputWrapper>
|
|
@@ -11,13 +11,13 @@ type __VLS_ModelProps = {
|
|
|
11
11
|
modelValue?: any;
|
|
12
12
|
};
|
|
13
13
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
14
|
-
declare var
|
|
14
|
+
declare var __VLS_11: {}, __VLS_14: {}, __VLS_17: {}, __VLS_20: {}, __VLS_23: {};
|
|
15
15
|
type __VLS_Slots = {} & {
|
|
16
|
-
|
|
16
|
+
leftSection?: (props: typeof __VLS_11) => any;
|
|
17
17
|
} & {
|
|
18
|
-
|
|
18
|
+
rightSection?: (props: typeof __VLS_14) => any;
|
|
19
19
|
} & {
|
|
20
|
-
|
|
20
|
+
label?: (props: typeof __VLS_17) => any;
|
|
21
21
|
} & {
|
|
22
22
|
error?: (props: typeof __VLS_20) => any;
|
|
23
23
|
} & {
|
|
@@ -15,11 +15,17 @@ type __VLS_ModelProps = {
|
|
|
15
15
|
modelValue?: number;
|
|
16
16
|
};
|
|
17
17
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
18
|
-
declare var __VLS_16: {}, __VLS_19: {};
|
|
18
|
+
declare var __VLS_16: {}, __VLS_19: {}, __VLS_46: {}, __VLS_49: {}, __VLS_52: {};
|
|
19
19
|
type __VLS_Slots = {} & {
|
|
20
20
|
leftSection?: (props: typeof __VLS_16) => any;
|
|
21
21
|
} & {
|
|
22
22
|
rightSection?: (props: typeof __VLS_19) => any;
|
|
23
|
+
} & {
|
|
24
|
+
label?: (props: typeof __VLS_46) => any;
|
|
25
|
+
} & {
|
|
26
|
+
error?: (props: typeof __VLS_49) => any;
|
|
27
|
+
} & {
|
|
28
|
+
description?: (props: typeof __VLS_52) => any;
|
|
23
29
|
};
|
|
24
30
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
31
|
"update:modelValue": (value: number) => any;
|
|
@@ -92,6 +92,16 @@ function handleBlur() {
|
|
|
92
92
|
</slot>
|
|
93
93
|
</template>
|
|
94
94
|
</BaseInput>
|
|
95
|
+
|
|
96
|
+
<template v-if='$slots.label' #label>
|
|
97
|
+
<slot name='label' />
|
|
98
|
+
</template>
|
|
99
|
+
<template v-if='$slots.error' #error>
|
|
100
|
+
<slot name='error' />
|
|
101
|
+
</template>
|
|
102
|
+
<template v-if='$slots.description' #description>
|
|
103
|
+
<slot name='description' />
|
|
104
|
+
</template>
|
|
95
105
|
</InputWrapper>
|
|
96
106
|
</template>
|
|
97
107
|
|
|
@@ -15,11 +15,17 @@ type __VLS_ModelProps = {
|
|
|
15
15
|
modelValue?: number;
|
|
16
16
|
};
|
|
17
17
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
18
|
-
declare var __VLS_16: {}, __VLS_19: {};
|
|
18
|
+
declare var __VLS_16: {}, __VLS_19: {}, __VLS_46: {}, __VLS_49: {}, __VLS_52: {};
|
|
19
19
|
type __VLS_Slots = {} & {
|
|
20
20
|
leftSection?: (props: typeof __VLS_16) => any;
|
|
21
21
|
} & {
|
|
22
22
|
rightSection?: (props: typeof __VLS_19) => any;
|
|
23
|
+
} & {
|
|
24
|
+
label?: (props: typeof __VLS_46) => any;
|
|
25
|
+
} & {
|
|
26
|
+
error?: (props: typeof __VLS_49) => any;
|
|
27
|
+
} & {
|
|
28
|
+
description?: (props: typeof __VLS_52) => any;
|
|
23
29
|
};
|
|
24
30
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
31
|
"update:modelValue": (value: number) => any;
|
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
import type { TextInputProps } from './index.js';
|
|
2
|
-
declare
|
|
2
|
+
declare var __VLS_7: {}, __VLS_27: {}, __VLS_30: {}, __VLS_33: {}, __VLS_36: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
rightSection?: (props: typeof __VLS_7) => any;
|
|
5
|
+
} & {
|
|
6
|
+
leftSection?: (props: typeof __VLS_27) => any;
|
|
7
|
+
} & {
|
|
8
|
+
label?: (props: typeof __VLS_30) => any;
|
|
9
|
+
} & {
|
|
10
|
+
error?: (props: typeof __VLS_33) => any;
|
|
11
|
+
} & {
|
|
12
|
+
description?: (props: typeof __VLS_36) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: import("vue").DefineComponent<TextInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TextInputProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
3
16
|
declare const _default: typeof __VLS_export;
|
|
4
17
|
export default _default;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -23,10 +23,26 @@ const password = ref(true);
|
|
|
23
23
|
right-section-p-e='all'
|
|
24
24
|
>
|
|
25
25
|
<template #rightSection>
|
|
26
|
-
<
|
|
27
|
-
<
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
<slot name='rightSection'>
|
|
27
|
+
<ActionIcon variant='subtle' @click='password = !password'>
|
|
28
|
+
<Icon v-if='password' name='gravity-ui:eye' />
|
|
29
|
+
<Icon v-else name='gravity-ui:eye-slash' />
|
|
30
|
+
</ActionIcon>
|
|
31
|
+
</slot>
|
|
32
|
+
</template>
|
|
33
|
+
|
|
34
|
+
<template v-if='$slots.leftSection' #leftSection>
|
|
35
|
+
<slot name='leftSection' />
|
|
36
|
+
</template>
|
|
37
|
+
|
|
38
|
+
<template v-if='$slots.label' #label>
|
|
39
|
+
<slot name='label' />
|
|
40
|
+
</template>
|
|
41
|
+
<template v-if='$slots.error' #error>
|
|
42
|
+
<slot name='error' />
|
|
43
|
+
</template>
|
|
44
|
+
<template v-if='$slots.description' #description>
|
|
45
|
+
<slot name='description' />
|
|
30
46
|
</template>
|
|
31
47
|
</TextInput>
|
|
32
48
|
</template>
|
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
import type { TextInputProps } from './index.js';
|
|
2
|
-
declare
|
|
2
|
+
declare var __VLS_7: {}, __VLS_27: {}, __VLS_30: {}, __VLS_33: {}, __VLS_36: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
rightSection?: (props: typeof __VLS_7) => any;
|
|
5
|
+
} & {
|
|
6
|
+
leftSection?: (props: typeof __VLS_27) => any;
|
|
7
|
+
} & {
|
|
8
|
+
label?: (props: typeof __VLS_30) => any;
|
|
9
|
+
} & {
|
|
10
|
+
error?: (props: typeof __VLS_33) => any;
|
|
11
|
+
} & {
|
|
12
|
+
description?: (props: typeof __VLS_36) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: import("vue").DefineComponent<TextInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TextInputProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
3
16
|
declare const _default: typeof __VLS_export;
|
|
4
17
|
export default _default;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -5,17 +5,17 @@ type __VLS_ModelProps = {
|
|
|
5
5
|
modelValue?: string | undefined;
|
|
6
6
|
};
|
|
7
7
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
8
|
-
declare var __VLS_11: {}, __VLS_14: {},
|
|
8
|
+
declare var __VLS_11: {}, __VLS_14: {}, __VLS_17: {}, __VLS_20: {}, __VLS_23: {};
|
|
9
9
|
type __VLS_Slots = {} & {
|
|
10
10
|
leftSection?: (props: typeof __VLS_11) => any;
|
|
11
11
|
} & {
|
|
12
12
|
rightSection?: (props: typeof __VLS_14) => any;
|
|
13
13
|
} & {
|
|
14
|
-
label?: (props: typeof
|
|
14
|
+
label?: (props: typeof __VLS_17) => any;
|
|
15
15
|
} & {
|
|
16
|
-
error?: (props: typeof
|
|
16
|
+
error?: (props: typeof __VLS_20) => any;
|
|
17
17
|
} & {
|
|
18
|
-
description?: (props: typeof
|
|
18
|
+
description?: (props: typeof __VLS_23) => any;
|
|
19
19
|
};
|
|
20
20
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
21
|
"update:modelValue": (value: string | undefined) => any;
|
|
@@ -35,8 +35,14 @@ const id = useId();
|
|
|
35
35
|
<slot name='rightSection' />
|
|
36
36
|
</template>
|
|
37
37
|
</BaseInput>
|
|
38
|
-
<
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
<template v-if='$slots.label' #label>
|
|
39
|
+
<slot name='label' />
|
|
40
|
+
</template>
|
|
41
|
+
<template v-if='$slots.error' #error>
|
|
42
|
+
<slot name='error' />
|
|
43
|
+
</template>
|
|
44
|
+
<template v-if='$slots.description' #description>
|
|
45
|
+
<slot name='description' />
|
|
46
|
+
</template>
|
|
41
47
|
</InputWrapper>
|
|
42
48
|
</template>
|
|
@@ -5,17 +5,17 @@ type __VLS_ModelProps = {
|
|
|
5
5
|
modelValue?: string | undefined;
|
|
6
6
|
};
|
|
7
7
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
8
|
-
declare var __VLS_11: {}, __VLS_14: {},
|
|
8
|
+
declare var __VLS_11: {}, __VLS_14: {}, __VLS_17: {}, __VLS_20: {}, __VLS_23: {};
|
|
9
9
|
type __VLS_Slots = {} & {
|
|
10
10
|
leftSection?: (props: typeof __VLS_11) => any;
|
|
11
11
|
} & {
|
|
12
12
|
rightSection?: (props: typeof __VLS_14) => any;
|
|
13
13
|
} & {
|
|
14
|
-
label?: (props: typeof
|
|
14
|
+
label?: (props: typeof __VLS_17) => any;
|
|
15
15
|
} & {
|
|
16
|
-
error?: (props: typeof
|
|
16
|
+
error?: (props: typeof __VLS_20) => any;
|
|
17
17
|
} & {
|
|
18
|
-
description?: (props: typeof
|
|
18
|
+
description?: (props: typeof __VLS_23) => any;
|
|
19
19
|
};
|
|
20
20
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
21
|
"update:modelValue": (value: string | undefined) => any;
|
|
@@ -44,8 +44,8 @@ defineExpose({ ref });
|
|
|
44
44
|
:style
|
|
45
45
|
:class='[$style.root, $attrs?.class]'
|
|
46
46
|
:mod='[{
|
|
47
|
-
"with-left-section": !!$slots
|
|
48
|
-
"with-right-section": !!$slots
|
|
47
|
+
"with-left-section": !!$slots.leftSection,
|
|
48
|
+
"with-right-section": !!$slots.rightSection,
|
|
49
49
|
"variant": api.variant
|
|
50
50
|
}]'
|
|
51
51
|
>
|