react-jupiter 6.2.8 → 6.2.10
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/form-v7/errorMsg.js
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
const ErrorMsg=(a)=>{let{errorMessage:b=""}=a;return(
|
|
7
7
|
b)?/*#__PURE__*/
|
|
8
8
|
|
|
9
|
-
_react.default.createElement(
|
|
10
|
-
_react.default.createElement(_icon.default,{name:"error",color:"red",size:"sm"
|
|
9
|
+
_react.default.createElement("div",{className:"flex items-center gap-2"},/*#__PURE__*/
|
|
10
|
+
_react.default.createElement(_icon.default,{name:"error",color:"red",size:"sm"}),/*#__PURE__*/
|
|
11
11
|
_react.default.createElement(_typography.Text,{bold:!0,size:10,color:"red","data-test":"error-message"},
|
|
12
12
|
b
|
|
13
13
|
)
|
|
@@ -74,7 +74,8 @@ name:a,
|
|
|
74
74
|
control:c,
|
|
75
75
|
rules:{required:!!j&&"\u0627\u06CC\u0646 \u0641\u06CC\u0644\u062F \u0627\u062C\u0628\u0627\u0631\u06CC \u0627\u0633\u062A"},
|
|
76
76
|
render:(c)=>{var e;let{field:{onChange:j,onBlur:k,value:m,ref:q},fieldState:i}=c;return(/*#__PURE__*/
|
|
77
|
-
_react.default.createElement("div",{className:"flex flex-col gap-1.5
|
|
77
|
+
_react.default.createElement("div",{className:"flex flex-col gap-1.5"},/*#__PURE__*/
|
|
78
|
+
_react.default.createElement("div",{className:"relative"},
|
|
78
79
|
"password"===d&&/*#__PURE__*/
|
|
79
80
|
_react.default.createElement(_index.PasswordIcon,{
|
|
80
81
|
name:p?"visibility-off":"visibility",
|
|
@@ -88,13 +89,13 @@ cursor:"pointer",position:"absolute",top:"50%",left:"10px",transform:"translateY
|
|
|
88
89
|
_react.default.createElement("input",_extends({
|
|
89
90
|
id:f||"".concat(d,"-").concat(a.split(" ").join("")),
|
|
90
91
|
name:a,
|
|
91
|
-
className:(0,_tailwindMerge.twMerge)("\n
|
|
92
|
+
className:(0,_tailwindMerge.twMerge)("\n w-full !box-border px-3 py-2 text-sm font-normal font-['IranSharp']\n border border-gray-300 rounded-md\n ".concat(
|
|
92
93
|
|
|
93
94
|
|
|
94
|
-
l?"text-right":"text-left","\n
|
|
95
|
-
h?"bg-gray-100 text-gray-500 border-transparent cursor-not-allowed":"bg-white text-gray-900 hover:border-gray-400 focus:border-blue-500 focus:ring-1 focus:ring-blue-500","\n
|
|
95
|
+
l?"text-right":"text-left","\n ").concat(
|
|
96
|
+
h?"bg-gray-100 text-gray-500 border-transparent cursor-not-allowed":"bg-white text-gray-900 hover:border-gray-400 focus:border-blue-500 focus:ring-1 focus:ring-blue-500","\n focus:outline-none transition-colors duration-200\n ").concat(
|
|
96
97
|
|
|
97
|
-
"password"===d?"pr-3 pl-10":"px-3","\n
|
|
98
|
+
"password"===d?"pr-3 pl-10":"px-3","\n "),
|
|
98
99
|
o),
|
|
99
100
|
type:p?"text":d,
|
|
100
101
|
placeholder:g,
|
|
@@ -112,6 +113,7 @@ j(a)
|
|
|
112
113
|
},
|
|
113
114
|
onFocus:this.handleFocus,
|
|
114
115
|
readOnly:n})
|
|
116
|
+
)
|
|
115
117
|
),/*#__PURE__*/
|
|
116
118
|
_react.default.createElement(_errorMsg.default,{errorMessage:i&&(null===(e=i.error)||void 0===e?void 0:e.message)})
|
|
117
119
|
))}}
|
package/icon/legacyIcons.js
CHANGED
|
@@ -83,8 +83,8 @@ dialpad:"abstract-29",
|
|
|
83
83
|
drafts:"clipboard",
|
|
84
84
|
email:"directbox-default",
|
|
85
85
|
equalizer:"chart-simple",
|
|
86
|
-
"error-outline":"information-
|
|
87
|
-
error:"information-
|
|
86
|
+
"error-outline":"information-2",
|
|
87
|
+
error:"information-2",
|
|
88
88
|
event:"calendar-2",
|
|
89
89
|
"exit-to-app":"exit-left",
|
|
90
90
|
"expand-less":"up",
|