tenjin-ui-kit 0.3.28 → 0.3.30

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.
@@ -95,7 +95,7 @@ var AuthenticationProvider = function AuthenticationProvider(_ref) {
95
95
  };
96
96
  }();
97
97
  var redirectToLogin = function redirectToLogin() {
98
- var redirectUrl = process.env.NODE_ENV === "production" ? location.pathname : "".concat(window.location.protocol, "//").concat(window.location.hostname, ":").concat(window.location.port).concat(location.pathname);
98
+ var redirectUrl = process.env.NODE_ENV === "production" ? "".concat(location.pathname).concat(window.location.search) : "".concat(window.location.protocol, "//").concat(window.location.hostname, ":").concat(window.location.port).concat(location.pathname).concat(window.location.search);
99
99
  window.location.href = process.env.REACT_APP_LOGIN_URL + "?redirect_url=".concat(encodeURIComponent(redirectUrl));
100
100
  };
101
101
  var clearTokenFromSearchParams = function clearTokenFromSearchParams() {
@@ -44,6 +44,10 @@ var GroupedSelect = function GroupedSelect(_ref) {
44
44
  _React$useState6 = _slicedToArray(_React$useState5, 2),
45
45
  value = _React$useState6[0],
46
46
  setValue = _React$useState6[1];
47
+ var _React$useState7 = React.useState(null),
48
+ _React$useState8 = _slicedToArray(_React$useState7, 2),
49
+ hoveredOption = _React$useState8[0],
50
+ setHoveredOption = _React$useState8[1];
47
51
  var groupOptionsByPageTitle = function groupOptionsByPageTitle(options) {
48
52
  var grouped = {};
49
53
  options.forEach(function (option) {
@@ -149,9 +153,10 @@ var GroupedSelect = function GroupedSelect(_ref) {
149
153
  key: pageTitle
150
154
  }, /*#__PURE__*/React.createElement(_text.default, {
151
155
  style: {
152
- padding: "5px 10px",
153
- backgroundColor: "#f5f5f5"
156
+ padding: "5px 10px"
157
+ // backgroundColor: "#f5f5f5",
154
158
  },
159
+
155
160
  semibold: true
156
161
  }, pageTitle !== null && pageTitle !== void 0 ? pageTitle : "N/A"), options.map(function (option) {
157
162
  return /*#__PURE__*/React.createElement("div", {
@@ -159,10 +164,16 @@ var GroupedSelect = function GroupedSelect(_ref) {
159
164
  onClick: function onClick() {
160
165
  return handleOptionClick(option.value);
161
166
  },
167
+ onMouseEnter: function onMouseEnter() {
168
+ return setHoveredOption(option.value);
169
+ },
170
+ onMouseLeave: function onMouseLeave() {
171
+ return setHoveredOption(null);
172
+ },
162
173
  style: {
163
174
  padding: "8px 24px",
164
175
  cursor: "pointer",
165
- borderBottom: "1px solid #f0f0f0"
176
+ backgroundColor: value === option.value ? "#f0f0f7" : hoveredOption === option.value ? "#f5f5f5" : "transparent"
166
177
  }
167
178
  }, option.label);
168
179
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tenjin-ui-kit",
3
- "version": "0.3.28",
3
+ "version": "0.3.30",
4
4
  "repository": {
5
5
  "url": "https://gitlab.com/yethi/react/tenjin-ui-kit.git"
6
6
  },