oolib 2.92.3 → 2.92.4

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.
@@ -92,6 +92,7 @@ var OptionsMulti = function (_a) {
92
92
  JSON.stringify(options),
93
93
  value,
94
94
  ]);
95
+ console.log({ selectedOptions: selectedOptions });
95
96
  var _b = (0, useKeyboardControl_1.useKeyboardControl)({
96
97
  showOptions: showOptions,
97
98
  optionsWrapperRef: optionsRef,
@@ -117,16 +118,19 @@ var OptionsMulti = function (_a) {
117
118
  borderBottom: "1px solid ".concat(greyColor40),
118
119
  } },
119
120
  react_1.default.createElement(Typo_1.LABEL, { invert: invert, style: { padding: "2rem", paddingBottom: 0 }, color: colors_1.colors.greyColor70 }, "selected"),
120
- selectedOptions.map(function (d) { return (react_1.default.createElement(styled_1.StyledOption, { invert: invert, key: d.value, isSelected: opIsSelected(d), S: S, onClick: function (e) {
121
- if (!d.loading) {
122
- handleSelect(d);
123
- setSearchString("");
124
- setSearchBarFocus(true); //refocus on searchbar after select
125
- }
126
- },
127
- //this is important cuz if we dont, then the option will have the light blue background of the 'selected' state
128
- //is a bit hacky, but will do for now.
129
- style: { backgroundColor: invert ? colors_1.colors.greyColor90 : white } }, createOption(d))); })));
121
+ selectedOptions.map(function (d) {
122
+ console.log({ d: d });
123
+ return (react_1.default.createElement(styled_1.StyledOption, { invert: invert, key: d.value, isSelected: opIsSelected(d), S: S, onClick: function (e) {
124
+ if (!d.loading) {
125
+ handleSelect(d);
126
+ setSearchString("");
127
+ setSearchBarFocus(true); //refocus on searchbar after select
128
+ }
129
+ },
130
+ //this is important cuz if we dont, then the option will have the light blue background of the 'selected' state
131
+ //is a bit hacky, but will do for now.
132
+ style: { backgroundColor: invert ? colors_1.colors.greyColor90 : white } }, createOption(d)));
133
+ })));
130
134
  };
131
135
  var genSearchBar = function () { return (react_1.default.createElement("div", { style: {
132
136
  position: "sticky",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "2.92.3",
3
+ "version": "2.92.4",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",