oolib 2.170.7 → 2.170.9
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.
|
@@ -150,11 +150,11 @@ function DropdownMulti(_a) {
|
|
|
150
150
|
react_1.default.createElement(DisplayCompSingle_1.DisplayCompSingle, { value: v, invert: invert, injectComma: i !== value.length - 1, S: S }))); })));
|
|
151
151
|
};
|
|
152
152
|
var _f = (0, react_1.useState)(false), focusSelectTagsInput = _f[0], setFocusSelectTagsInput = _f[1];
|
|
153
|
-
var genSelectTagsInput = function (
|
|
154
|
-
if (
|
|
155
|
-
return (react_1.default.createElement(SelectTagsInput_1.SelectTagsInput,
|
|
153
|
+
var genSelectTagsInput = function (ops) {
|
|
154
|
+
if (ops === void 0) { ops = {}; }
|
|
155
|
+
return (react_1.default.createElement(SelectTagsInput_1.SelectTagsInput, { id: id, value: value, invert: invert, handleSelect: handleSelect, searchString: searchString,
|
|
156
156
|
setSearchString: setSearchString,
|
|
157
|
-
single_multi: "multi", placeholder: placeholder, focusSelectTagsInput: focusSelectTagsInput, setFocusSelectTagsInput: setFocusSelectTagsInput, showOptions: showOptions, S: S, disabled: disabled
|
|
157
|
+
single_multi: "multi", placeholder: placeholder, focusSelectTagsInput: focusSelectTagsInput, setFocusSelectTagsInput: setFocusSelectTagsInput, showOptions: showOptions, S: S, disabled: disabled, style: ops.style }));
|
|
158
158
|
};
|
|
159
159
|
var genInputComp = function () {
|
|
160
160
|
// const SelectComp = isTagsStyle ? SelectTagsInput : SelectDropdown
|
|
@@ -130,9 +130,12 @@ function DropdownSingle(_a) {
|
|
|
130
130
|
setFilteredOptionsInParent: setFilteredOptionsInParent,
|
|
131
131
|
});
|
|
132
132
|
}, [optionsProp, optionsFn === null || optionsFn === void 0 ? void 0 : optionsFn.fn, searchString]);
|
|
133
|
-
var genSelectTagsInput = function () {
|
|
134
|
-
|
|
135
|
-
|
|
133
|
+
var genSelectTagsInput = function (ops) {
|
|
134
|
+
if (ops === void 0) { ops = {}; }
|
|
135
|
+
return (react_1.default.createElement(SelectTagsInput_1.SelectTagsInput, { id: id, value: value, invert: invert, handleSelect: handleSelect, searchString: searchString, setSearchString: setSearchString, single_multi: 'single', placeholder: placeholder, S: S, disabled: disabled, showOptions: showOptions, S: S, style: ops.style
|
|
136
|
+
// forceFocus, comp is expecting this
|
|
137
|
+
}));
|
|
138
|
+
};
|
|
136
139
|
var genInputComp = function () {
|
|
137
140
|
return (react_1.default.createElement(styled_1.StyledDropdownRefWrapper, { ref: dropdownRef, id: "StyledDropdownRefWrapper" },
|
|
138
141
|
react_1.default.createElement("div", { ref: selectRef, className: "OKE-Dropdown__Select-wrapper", onClick: disabled ? function () { } : function () {
|
|
@@ -142,7 +145,7 @@ function DropdownSingle(_a) {
|
|
|
142
145
|
} }, isTagsStyle ? genSelectTagsInput() : (react_1.default.createElement(SelectDropdown_1.SelectDropdown, { invert: invert, value: value, placeholder: placeholder, genCustomSelectComp: genCustomSelectComp, selectClassName: selectClassName, selectStyleOverride: selectStyleOverride, showOptions: showOptions, disableSelectTextUpdate: disableSelectTextUpdate, selectConfig: selectConfig, S: S, disabled: disabled }))),
|
|
143
146
|
react_1.default.createElement(OptionsSingle_1.OptionsSingle, { searchbarPlaceholder: searchbarPlaceholder, observerRef: observerRef, lightboxHeight: lightboxHeight, lightboxStyle: lightboxStyle, optionsAnchor: optionsAnchor, searchString: searchString, setSearchString: setSearchString, id: id, optionsClassName: optionsClassName, label: label, value: value, relativeToRef: selectRef, invert: invert, showOptions: showOptions, handleHideOptions: handleHideOptions, handleSelect: handleSelect, options: options, optionsFn: optionsFn, optionsModalLabel: optionsModalLabel,
|
|
144
147
|
//combobox specific
|
|
145
|
-
isSearchable: isTagsStyle ? false : isSearchable, alignDropdown: alignDropdown, genCreateTagButton: genCreateTagButton, SelectComp: isTagsStyle && genSelectTagsInput(), S: S, popOutOfOverflowHiddenParent: popOutOfOverflowHiddenParent })));
|
|
148
|
+
isSearchable: isTagsStyle ? false : isSearchable, alignDropdown: alignDropdown, genCreateTagButton: genCreateTagButton, SelectComp: isTagsStyle && genSelectTagsInput({ style: { position: 'sticky', top: 0, zIndex: 1000 } }), S: S, popOutOfOverflowHiddenParent: popOutOfOverflowHiddenParent })));
|
|
146
149
|
};
|
|
147
150
|
var genDisplayComp = function () {
|
|
148
151
|
if (!value)
|
|
@@ -47,7 +47,7 @@ var OptionsAnimateWrapper_1 = require("./comps/OptionsAnimateWrapper");
|
|
|
47
47
|
var styled_components_1 = require("styled-components");
|
|
48
48
|
var DefaultMobileShell = function (_a) {
|
|
49
49
|
var children = _a.children;
|
|
50
|
-
return (react_1.default.createElement("div", { style: { top: 0, left: 0, height: '100dvh', width: '100dvw', position: 'fixed', zIndex: '100000000', background: 'rgba(0,0,0,0.5)', display: 'flex', flexDirection: 'column', justifyContent: 'flex-end' } }));
|
|
50
|
+
return (react_1.default.createElement("div", { style: { top: 0, left: 0, height: '100dvh', width: '100dvw', position: 'fixed', zIndex: '100000000', background: 'rgba(0,0,0,0.5)', display: 'flex', flexDirection: 'column', justifyContent: 'flex-end' } }, children));
|
|
51
51
|
};
|
|
52
52
|
exports.OptionsShell = react_1.default.forwardRef(function (_a, ref) {
|
|
53
53
|
var yOrientation = _a.yOrientation, lightboxHeight = _a.lightboxHeight, lightboxStyle = _a.lightboxStyle, options = _a.options, optionsAnchor = _a.optionsAnchor, showOptions = _a.showOptions, handleHideOptions = _a.handleHideOptions, children = _a.children, SelectComp = _a.SelectComp, label = _a.label, optionsModalLabel = _a.optionsModalLabel, invert = _a.invert, showDoneButton = _a.showDoneButton, _b = _a.popOutOfOverflowHiddenParent, popOutOfOverflowHiddenParent = _b === void 0 ? false : _b, relativeToRef = _a.relativeToRef, S = _a.S, alignDropdown = _a.alignDropdown;
|
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export * from "./v2/components/cards/CardContent";
|
|
|
20
20
|
export * from "./v2/components/cards/ListContent";
|
|
21
21
|
export * from "./v2/components/Tags";
|
|
22
22
|
export * from "./v2/components/ImagePlaceholder";
|
|
23
|
+
export * from "./v2/components/Buttons";
|
|
23
24
|
export { colors } from "./themes";
|
|
24
25
|
export { icons } from "./icons";
|
|
25
26
|
export { Section } from "./components/Section";
|
package/dist/index.js
CHANGED
|
@@ -182,7 +182,7 @@ __exportStar(require("./v2/components/cards/ListContent"), exports);
|
|
|
182
182
|
__exportStar(require("./v2/components/Tags"), exports);
|
|
183
183
|
__exportStar(require("./v2/components/ImagePlaceholder"), exports);
|
|
184
184
|
// 2 imports available
|
|
185
|
-
|
|
185
|
+
__exportStar(require("./v2/components/Buttons"), exports);
|
|
186
186
|
var TabBar_1 = require("./v2/components/TabBar");
|
|
187
187
|
Object.defineProperty(exports, "TabBarV2", { enumerable: true, get: function () { return TabBar_1.TabBarStyle1; } });
|
|
188
188
|
var themes_2 = require("./v2/themes");
|