next-helios-fe 1.10.10 → 1.10.12
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/index.js +1 -1
- package/package.json +1 -1
- package/src/components/form/input/email.tsx +3 -2
- package/src/components/form/input/number.tsx +3 -2
- package/src/components/form/input/password.tsx +3 -2
- package/src/components/form/input/range.tsx +1 -1
- package/src/components/form/input/text.tsx +3 -2
- package/src/components/form/other/textarea.tsx +3 -2
package/package.json
CHANGED
|
@@ -47,8 +47,9 @@ export const Email: React.FC<EmailProps> = ({
|
|
|
47
47
|
<div className="flex-1 flex justify-end items-center gap-2">
|
|
48
48
|
{rest.maxLength && (
|
|
49
49
|
<span className="text-sm select-none">
|
|
50
|
-
{rest.value ? (rest.value as string).length : 0}/
|
|
51
|
-
|
|
50
|
+
{`${rest.value ? (rest.value as string).length : 0} / ${
|
|
51
|
+
rest.maxLength
|
|
52
|
+
}`}
|
|
52
53
|
</span>
|
|
53
54
|
)}
|
|
54
55
|
{description && (
|
|
@@ -49,8 +49,9 @@ export const Number: React.FC<NumberProps> = ({
|
|
|
49
49
|
<div className="flex-1 flex justify-end items-center gap-2">
|
|
50
50
|
{(rest.min || rest.max) && (
|
|
51
51
|
<span className="text-sm select-none">
|
|
52
|
-
{rest.min || rest.min === 0 ? rest.min : "∞"}
|
|
53
|
-
|
|
52
|
+
{`${rest.min || rest.min === 0 ? rest.min : "∞"} - ${
|
|
53
|
+
rest.max || rest.max === 0 ? rest.max : "∞"
|
|
54
|
+
}`}
|
|
54
55
|
</span>
|
|
55
56
|
)}
|
|
56
57
|
{description && (
|
|
@@ -48,8 +48,9 @@ export const Password: React.FC<PasswordProps> = ({
|
|
|
48
48
|
<div className="flex-1 flex justify-end items-center gap-2">
|
|
49
49
|
{rest.maxLength && (
|
|
50
50
|
<span className="text-sm select-none">
|
|
51
|
-
{rest.value ? (rest.value as string).length : 0}/
|
|
52
|
-
|
|
51
|
+
{`${rest.value ? (rest.value as string).length : 0} / ${
|
|
52
|
+
rest.maxLength
|
|
53
|
+
}`}
|
|
53
54
|
</span>
|
|
54
55
|
)}
|
|
55
56
|
{description && (
|
|
@@ -44,7 +44,7 @@ export const Range: React.FC<RangeProps> = ({
|
|
|
44
44
|
<div className="flex-1 flex justify-end items-center gap-2">
|
|
45
45
|
{(rest.min || rest.max) && (
|
|
46
46
|
<span className="text-sm select-none">
|
|
47
|
-
{rest.min || 0}
|
|
47
|
+
{`${rest.min || 0} - ${rest.max || 100}`}
|
|
48
48
|
</span>
|
|
49
49
|
)}
|
|
50
50
|
{description && (
|
|
@@ -46,8 +46,9 @@ export const Text: React.FC<TextProps> = ({
|
|
|
46
46
|
<div className="flex-1 flex justify-end items-center gap-2">
|
|
47
47
|
{rest.maxLength && (
|
|
48
48
|
<span className="text-sm select-none">
|
|
49
|
-
{rest.value ? (rest.value as string).length : 0}/
|
|
50
|
-
|
|
49
|
+
{`${rest.value ? (rest.value as string).length : 0} / ${
|
|
50
|
+
rest.maxLength
|
|
51
|
+
}`}
|
|
51
52
|
</span>
|
|
52
53
|
)}
|
|
53
54
|
{description && (
|
|
@@ -87,8 +87,9 @@ export const Textarea: React.FC<TextareaProps> = ({
|
|
|
87
87
|
<div className="flex flex-1 items-center justify-end gap-2">
|
|
88
88
|
{rest.maxLength && (
|
|
89
89
|
<span className="select-none text-sm">
|
|
90
|
-
{rest.value ? (rest.value as string).length : 0}/
|
|
91
|
-
|
|
90
|
+
{`${rest.value ? (rest.value as string).length : 0} / ${
|
|
91
|
+
rest.maxLength
|
|
92
|
+
}`}
|
|
92
93
|
</span>
|
|
93
94
|
)}
|
|
94
95
|
{description && (
|