@smurfox/proxy-ui 0.1.33 → 0.1.34
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
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { InputVariant, InputRounded } from "../types/index.js";
|
|
2
2
|
type __VLS_Props = {
|
|
3
|
+
modelValue?: string | number;
|
|
3
4
|
type?: string;
|
|
4
5
|
label?: string;
|
|
5
6
|
labelClass?: string;
|
|
@@ -17,7 +18,11 @@ type __VLS_Slots = {} & {
|
|
|
17
18
|
} & {
|
|
18
19
|
endContent?: (props: typeof __VLS_3) => any;
|
|
19
20
|
};
|
|
20
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
|
+
"update:modelValue": (value: string | number) => any;
|
|
23
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
24
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
25
|
+
}>, {
|
|
21
26
|
rounded: InputRounded;
|
|
22
27
|
type: string;
|
|
23
28
|
variant: InputVariant;
|
|
@@ -24,7 +24,11 @@
|
|
|
24
24
|
props.error ? errorVariants[props.variant] : variants[props.variant],
|
|
25
25
|
props.disabled ? 'opacity-70' : ''
|
|
26
26
|
]"
|
|
27
|
+
:value="modelValue"
|
|
27
28
|
:disabled="props.disabled"
|
|
29
|
+
@input="
|
|
30
|
+
emit('update:modelValue', $event.target.value)
|
|
31
|
+
"
|
|
28
32
|
/>
|
|
29
33
|
<!-- endContent -->
|
|
30
34
|
<div
|
|
@@ -62,10 +66,11 @@ const variants = {
|
|
|
62
66
|
secondary: "border border-gray-200 dark:border-white/10 bg-[#EBEBEC] dark:bg-white/20 dark:text-white enabled:hover:bg-[#E0E0E1] dark:enabled:hover:bg-white/30 focus:bg-[#EBEBEC] dark:focus:bg-white/20 focus:ring-2 focus:ring-primary focus:outline-none"
|
|
63
67
|
};
|
|
64
68
|
const errorVariants = {
|
|
65
|
-
default: "border border-danger bg-
|
|
66
|
-
secondary: "border border-danger bg-
|
|
69
|
+
default: "border border-danger bg-danger/10 dark:bg-danger/20 text-black dark:text-white enabled:hover:bg-white/20 dark:enabled:hover:bg-white/20 focus:bg-white dark:focus:bg-white/10 focus:ring-2 focus:ring-danger focus:outline-none",
|
|
70
|
+
secondary: "border border-danger bg-danger/22 dark:bg-danger/10 text-black dark:text-white enabled:hover:bg-[#E0E0E1] dark:enabled:hover:bg-white/30 focus:bg-[#EBEBEC] dark:focus:bg-white/20 focus:ring-2 focus:ring-danger focus:outline-none"
|
|
67
71
|
};
|
|
68
72
|
const props = defineProps({
|
|
73
|
+
modelValue: { type: [String, Number], required: false },
|
|
69
74
|
type: { type: String, required: false, default: "text" },
|
|
70
75
|
label: { type: String, required: false },
|
|
71
76
|
labelClass: { type: String, required: false, default: "text-sm font-semibold" },
|
|
@@ -77,6 +82,7 @@ const props = defineProps({
|
|
|
77
82
|
error: { type: String, required: false },
|
|
78
83
|
disabled: { type: Boolean, required: false, default: false }
|
|
79
84
|
});
|
|
85
|
+
const emit = defineEmits(["update:modelValue"]);
|
|
80
86
|
</script>
|
|
81
87
|
|
|
82
88
|
<style scoped>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { InputVariant, InputRounded } from "../types/index.js";
|
|
2
2
|
type __VLS_Props = {
|
|
3
|
+
modelValue?: string | number;
|
|
3
4
|
type?: string;
|
|
4
5
|
label?: string;
|
|
5
6
|
labelClass?: string;
|
|
@@ -17,7 +18,11 @@ type __VLS_Slots = {} & {
|
|
|
17
18
|
} & {
|
|
18
19
|
endContent?: (props: typeof __VLS_3) => any;
|
|
19
20
|
};
|
|
20
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
|
+
"update:modelValue": (value: string | number) => any;
|
|
23
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
24
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
25
|
+
}>, {
|
|
21
26
|
rounded: InputRounded;
|
|
22
27
|
type: string;
|
|
23
28
|
variant: InputVariant;
|