oolib 3.3.2 → 3.4.0

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.
@@ -29,7 +29,10 @@ var useKeyboardControl = function (_a) {
29
29
  */
30
30
  var code = (0, getKeyCode_1.getKeyCode)(e);
31
31
  if (code === 'Enter') {
32
- if (options[focussedOp])
32
+ //skeleton loader options are real entries in the options array while
33
+ //fetch is in flight; selecting one saves a junk value (mouse clicks
34
+ //are already guarded in ListItem)
35
+ if (options[focussedOp] && !options[focussedOp].loading)
33
36
  handleSelect(options[focussedOp]);
34
37
  }
35
38
  else if (code === 'ArrowDown') {
@@ -66,7 +66,7 @@ var ListItem = function (_a) {
66
66
  ;
67
67
  var theme = (0, styled_components_1.useTheme)();
68
68
  var TypoComp = S ? Typo2_1.UI_BODY_SM_DF : Typo2_1.UI_BODY_SM_DF;
69
- var image = option.image, display = option.display, icon = option.icon, desc = option.desc, color = option.color, loading = option.loading, disabled = option.disabled, tooltip = option.tooltip, optionIconAfter = option.iconAfter, iconAfterColor = option.iconAfterColor;
69
+ var image = option.image, display = option.display, icon = option.icon, iconWeight = option.iconWeight, desc = option.desc, color = option.color, loading = option.loading, disabled = option.disabled, tooltip = option.tooltip, optionIconAfter = option.iconAfter, iconAfterColor = option.iconAfterColor;
70
70
  var iconAfter = allOptionsIconAfter || optionIconAfter;
71
71
  var handleClick = function () {
72
72
  if (!loading) {
@@ -106,6 +106,7 @@ var ListItem = function (_a) {
106
106
  (0, genIcon_1.genIcon)({
107
107
  icon: icon,
108
108
  S: S,
109
+ weight: iconWeight,
109
110
  className: "OKE-Dropdown__optionIcon",
110
111
  disabled: disabled
111
112
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "3.3.2",
3
+ "version": "3.4.0",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",