tenjin-ui-kit 0.3.30 → 0.3.31
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.
|
@@ -110,7 +110,7 @@ var GroupedSelect = function GroupedSelect(_ref) {
|
|
|
110
110
|
flexGrow: 1
|
|
111
111
|
}
|
|
112
112
|
}, value ? options === null || options === void 0 ? void 0 : (_options$find = options.find(function (opt) {
|
|
113
|
-
return (opt === null || opt === void 0 ? void 0 : opt.
|
|
113
|
+
return (opt === null || opt === void 0 ? void 0 : opt.id) === value;
|
|
114
114
|
})) === null || _options$find === void 0 ? void 0 : _options$find.label : "Select Option"), /*#__PURE__*/React.createElement("div", null, isDropdownOpen ? /*#__PURE__*/React.createElement(_fa.FaCaretUp, null) : /*#__PURE__*/React.createElement(_fa.FaCaretDown, null)))), isDropdownOpen && /*#__PURE__*/(0, _reactDom.createPortal)( /*#__PURE__*/React.createElement("div", {
|
|
115
115
|
style: {
|
|
116
116
|
position: "absolute",
|
|
@@ -160,12 +160,12 @@ var GroupedSelect = function GroupedSelect(_ref) {
|
|
|
160
160
|
semibold: true
|
|
161
161
|
}, pageTitle !== null && pageTitle !== void 0 ? pageTitle : "N/A"), options.map(function (option) {
|
|
162
162
|
return /*#__PURE__*/React.createElement("div", {
|
|
163
|
-
key: option.
|
|
163
|
+
key: option.id,
|
|
164
164
|
onClick: function onClick() {
|
|
165
|
-
return handleOptionClick(option.
|
|
165
|
+
return handleOptionClick(option.id);
|
|
166
166
|
},
|
|
167
167
|
onMouseEnter: function onMouseEnter() {
|
|
168
|
-
return setHoveredOption(option.
|
|
168
|
+
return setHoveredOption(option.id);
|
|
169
169
|
},
|
|
170
170
|
onMouseLeave: function onMouseLeave() {
|
|
171
171
|
return setHoveredOption(null);
|
|
@@ -173,7 +173,7 @@ var GroupedSelect = function GroupedSelect(_ref) {
|
|
|
173
173
|
style: {
|
|
174
174
|
padding: "8px 24px",
|
|
175
175
|
cursor: "pointer",
|
|
176
|
-
backgroundColor: value === option.
|
|
176
|
+
backgroundColor: value === option.id ? "#f0f0f7" : hoveredOption === option.id ? "#f5f5f5" : "transparent"
|
|
177
177
|
}
|
|
178
178
|
}, option.label);
|
|
179
179
|
}));
|