react-jupiter 6.2.10 → 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.
Files changed (2) hide show
  1. package/icon/index.js +30 -14
  2. package/package.json +1 -1
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.10",
3
+ "version": "6.2.11",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "keywords": [