next-helios-fe 1.8.55 → 1.8.56

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-helios-fe",
3
- "version": "1.8.55",
3
+ "version": "1.8.56",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -47,7 +47,8 @@ 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 as String) || "").length || 0}/{rest.maxLength}
50
+ {rest.value ? (rest.value as string).length : 0}/
51
+ {rest.maxLength}
51
52
  </span>
52
53
  )}
53
54
  {description && (
@@ -48,7 +48,8 @@ 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 as String) || "").length || 0}/{rest.maxLength}
51
+ {rest.value ? (rest.value as string).length : 0}/
52
+ {rest.maxLength}
52
53
  </span>
53
54
  )}
54
55
  {description && (
@@ -46,7 +46,8 @@ 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 as String) || "").length || 0}/{rest.maxLength}
49
+ {rest.value ? (rest.value as string).length : 0}/
50
+ {rest.maxLength}
50
51
  </span>
51
52
  )}
52
53
  {description && (
@@ -47,7 +47,8 @@ export const Textarea: React.FC<TextareaProps> = ({
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 as String) || "").length || 0}/{rest.maxLength}
50
+ {rest.value ? (rest.value as string).length : 0}/
51
+ {rest.maxLength}
51
52
  </span>
52
53
  )}
53
54
  {description && (