tenjin-ui-kit 0.3.32 → 0.3.34

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.value) === value;
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.value,
163
+ key: option === null || option === void 0 ? void 0 : option.id,
164
164
  onClick: function onClick() {
165
- return handleOptionClick(option.value);
165
+ return handleOptionClick(option.id);
166
166
  },
167
167
  onMouseEnter: function onMouseEnter() {
168
- return setHoveredOption(option.value);
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.value ? "#f0f0f7" : hoveredOption === option.value ? "#f5f5f5" : "transparent"
176
+ backgroundColor: value === (option === null || option === void 0 ? void 0 : option.id) ? "#f0f0f7" : hoveredOption === (option === null || option === void 0 ? void 0 : option.id) ? "#f5f5f5" : "transparent"
177
177
  }
178
178
  }, option.label);
179
179
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tenjin-ui-kit",
3
- "version": "0.3.32",
3
+ "version": "0.3.34",
4
4
  "repository": {
5
5
  "url": "https://gitlab.com/yethi/react/tenjin-ui-kit.git"
6
6
  },