react-jupiter 6.2.9 → 6.2.11

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.
@@ -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 relative"},
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 w-full !box-border px-3 py-2 text-sm font-normal font-['IranSharp']\n border border-gray-300 rounded-md\n ".concat(
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 ").concat(
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 focus:outline-none transition-colors duration-200\n ").concat(
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/index.js CHANGED
@@ -47,6 +47,12 @@ const
47
47
 
48
48
 
49
49
 
50
+ k=d&&"string"==typeof d&&d.startsWith("text-"),
51
+
52
+
53
+
54
+
55
+
50
56
 
51
57
 
52
58
 
@@ -74,24 +80,34 @@ const
74
80
 
75
81
 
76
82
 
77
- k=(()=>"xs"===h?12:"sm"===h?16:"md"===h?20:"lg"===h?24:"xl"===h?32:"2xl"===h?40:"number"==typeof h?h:20)(),
78
- l=(()=>"white"===d?"white":"black"===d?"#000000":"gray"===d?"#6B7280":"darkGray"===d?"#374151":"darkBlue"===d?"#132A3E":"red"===d?"#EF4444":"green"===d?"#10B981":"yellow"===d?"#F59E0B":"blue"===d?"#3B82F6":d)(),
79
- m=_legacyIcons.legacyIconMap[c]||c,
80
83
 
81
- n=_objectSpread(_objectSpread({},
82
- f),{},{
83
- color:l,
84
- fontSize:k});// Map old color values to new color tokens
85
- // Apply styles and colors
86
84
 
87
- return(/*#__PURE__*/
88
- _react.default.createElement("i",_extends({
89
- ref:b,
85
+ l=(()=>"xs"===h?12:"sm"===h?16:"md"===h?20:"lg"===h?24:"xl"===h?32:"2xl"===h?40:"number"==typeof h?h:20)(),
86
+ m=(()=>{// If it's a Tailwind class, don't return inline color
87
+ if(!k)return"white"===d?"white":"black"===d?"#000000":"gray"===d?"#6B7280":"darkGray"===d?"#374151":"darkBlue"===d?"#132A3E":"red"===d?"#EF4444":"green"===d?"#10B981":"yellow"===d?"#F59E0B":"blue"===d?"#3B82F6":d})(),n=_legacyIcons.legacyIconMap[c]||c,
88
+
89
+ o=_objectSpread(_objectSpread(_objectSpread({},
90
+ f),
91
+ m&&{color:m}),{},{
92
+ fontSize:l}),
93
+
94
+
95
+
96
+ p=(0,_tailwindMerge.twMerge)("ki-".concat(
97
+ i),"ki-".concat(
98
+ n),
99
+ k?d:void 0,
100
+ e
101
+ );// Check if color is a Tailwind class (starts with "text-")
102
+ // Map old color values to new color tokens (for backward compatibility)
103
+ // Apply styles and colors
104
+ // Build className with optional Tailwind color class
105
+ return/*#__PURE__*/_react.default.createElement("i",_extends({ref:b,
90
106
  onClick:g},
91
107
  j,{
92
- className:(0,_tailwindMerge.twMerge)("ki-".concat(i),"ki-".concat(m),e),
93
- style:n})
94
- ))
108
+ className:p,
109
+ style:o})
110
+ )
95
111
 
96
112
  });var _default=exports.default=
97
113
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-jupiter",
3
- "version": "6.2.9",
3
+ "version": "6.2.11",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "keywords": [