@irbags/ui-kit 1.0.1-alpha.31 → 1.0.1-alpha.33
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
|
@@ -4,7 +4,8 @@ const props = defineProps({
|
|
|
4
4
|
modelValue: { type: [String, Number, null], required: true },
|
|
5
5
|
placeholder: { type: String, required: true },
|
|
6
6
|
type: { type: String, required: false, default: "text" },
|
|
7
|
-
config: { type: Object, required: false }
|
|
7
|
+
config: { type: Object, required: false },
|
|
8
|
+
styleLabel: { type: String, required: false }
|
|
8
9
|
});
|
|
9
10
|
const emit = defineEmits(["update:modelValue"]);
|
|
10
11
|
const value = computed({
|
|
@@ -17,7 +18,8 @@ const value = computed({
|
|
|
17
18
|
|
|
18
19
|
<template>
|
|
19
20
|
<label class="relative">
|
|
20
|
-
<span class="text-base opacity-0 max-lg:text-xs tracking-tight max-lg:tracking-tighter font-medium"
|
|
21
|
+
<span class="text-base opacity-0 max-lg:text-xs tracking-tight max-lg:tracking-tighter font-medium"
|
|
22
|
+
:class="[styleLabel]">
|
|
21
23
|
{{ value || placeholder }}
|
|
22
24
|
</span>
|
|
23
25
|
<IBGInput v-model="value" :type="type" :placeholder="placeholder" :ui="config?.ui" class="absolute inset-0" />
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import type { InputProps } from
|
|
1
|
+
import type { InputProps } from "#ui/types";
|
|
2
2
|
export interface ResizebleInputProps {
|
|
3
|
-
|
|
3
|
+
/** Значение */
|
|
4
4
|
modelValue: string | number | null;
|
|
5
|
-
|
|
5
|
+
/** Подсказка */
|
|
6
6
|
placeholder: string;
|
|
7
|
-
|
|
8
|
-
type?:
|
|
9
|
-
|
|
7
|
+
/** Тип инпута */
|
|
8
|
+
type?: "text" | "number" | "password" | "email";
|
|
9
|
+
/** Конфиг */
|
|
10
10
|
config?: InputProps;
|
|
11
|
+
/** Стили для label */
|
|
12
|
+
styleLabel?: string;
|
|
11
13
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@irbags/ui-kit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.1-alpha.
|
|
4
|
+
"version": "1.0.1-alpha.33",
|
|
5
5
|
"packageManager": "pnpm@10.14.0+sha512.ad27a79641b49c3e481a16a805baa71817a04bbe06a38d17e60e2eaee83f6a146c6a688125f5792e48dd5ba30e7da52a5cda4c3992b9ccf333f9ce223af84748",
|
|
6
6
|
"description": "IRBAGS UI Kit",
|
|
7
7
|
"license": "MIT",
|