react-jupiter 5.9.16 → 5.9.17

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.
@@ -23,6 +23,7 @@
23
23
 
24
24
 
25
25
 
26
+
26
27
 
27
28
 
28
29
  var TextInput=function(a){var
@@ -36,9 +37,10 @@ b=
36
37
 
37
38
 
38
39
 
39
- a.type,c=a.label,d=a.htmlElementName,e=a.id,f=a.placeholder,g=a.disabled,h=a.description,i=a.errorMessage,j=a.register,k=
40
- (0,_react.useState)(""),l=_slicedToArray(k,2),m=l[0],n=l[1],o=
41
- (0,_react.useState)(!1),p=_slicedToArray(o,2),q=p[0],r=p[1];
40
+
41
+ a.type,c=a.label,d=a.htmlElementName,e=a.id,f=a.placeholder,g=a.disabled,h=a.description,i=a.errorMessage,j=a.register,k=a.required,l=
42
+ (0,_react.useState)(""),m=_slicedToArray(l,2),n=m[0],o=m[1],p=
43
+ (0,_react.useState)(!1),q=_slicedToArray(p,2),r=q[0],s=q[1];
42
44
 
43
45
 
44
46
 
@@ -69,20 +71,21 @@ h),/*#__PURE__*/
69
71
  _react.default.createElement(_index.Input,_extends({
70
72
  id:e||"".concat(b,"-").concat(d.split(" ").join("")),
71
73
  name:d,
72
- type:q||"text"===b?"text":"password",
74
+ type:r||"text"===b?"text":"password",
73
75
  placeholder:f,
74
- value:m},
76
+ value:n},
75
77
  j(d,{
76
- onChange:function(a){n(a.target.value)},
78
+ onChange:function(a){o(a.target.value)},
77
79
  onFocus:function(a){a.target.setSelectionRange(0,0)},
78
- disabled:g
80
+ disabled:g,
81
+ required:!!k&&"\u0627\u06CC\u0646 \u0641\u06CC\u0644\u062F \u0627\u0644\u0632\u0627\u0645\u06CC \u0627\u0633\u062A"
79
82
  }))),
80
83
 
81
84
  "password"===b&&/*#__PURE__*/
82
85
  _react.default.createElement(_index.PasswordIcon,{
83
- name:q?"visibility-off":"visibility",
84
- color:q?"blue":"gray",
85
- onClick:function(){r(!q)}})),/*#__PURE__*/
86
+ name:r?"visibility-off":"visibility",
87
+ color:r?"blue":"gray",
88
+ onClick:function(){s(!r)}})),/*#__PURE__*/
86
89
 
87
90
 
88
91
 
@@ -99,7 +102,8 @@ placeholder:null,
99
102
  disabled:!1,
100
103
  description:null,
101
104
  errorMessage:"",
102
- register:null
105
+ register:null,
106
+ required:!1
103
107
  };var _default=
104
108
 
105
109
  TextInput;exports.default=_default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-jupiter",
3
- "version": "5.9.16",
3
+ "version": "5.9.17",
4
4
  "main": "./index.js",
5
5
  "license": "MIT",
6
6
  "keywords": [