oolib 2.92.2 → 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) {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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/dist/icons/index.d.ts
CHANGED
|
@@ -108,6 +108,7 @@ export namespace icons {
|
|
|
108
108
|
export { SlackLogo };
|
|
109
109
|
export { SquareHalf };
|
|
110
110
|
export { SquareHalfBottom };
|
|
111
|
+
export { MagicWand };
|
|
111
112
|
export { OkeGoogleIcon };
|
|
112
113
|
export { LetterH };
|
|
113
114
|
export { IndexIcon };
|
|
@@ -269,6 +270,7 @@ import { ChatText } from "phosphor-react";
|
|
|
269
270
|
import { SlackLogo } from "phosphor-react";
|
|
270
271
|
import { SquareHalf } from "phosphor-react";
|
|
271
272
|
import { SquareHalfBottom } from "phosphor-react";
|
|
273
|
+
import { MagicWand } from "phosphor-react";
|
|
272
274
|
import { OkeGoogleIcon } from "./custom";
|
|
273
275
|
import { LetterH } from "./custom";
|
|
274
276
|
import { IndexIcon } from "./custom";
|
package/dist/icons/index.js
CHANGED
|
@@ -113,6 +113,7 @@ exports.icons = {
|
|
|
113
113
|
SlackLogo: phosphor_react_1.SlackLogo,
|
|
114
114
|
SquareHalf: phosphor_react_1.SquareHalf,
|
|
115
115
|
SquareHalfBottom: phosphor_react_1.SquareHalfBottom,
|
|
116
|
+
MagicWand: phosphor_react_1.MagicWand,
|
|
116
117
|
//custom
|
|
117
118
|
OkeGoogleIcon: custom_1.OkeGoogleIcon,
|
|
118
119
|
LetterH: custom_1.LetterH,
|