oolib 2.57.2 → 2.57.3
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.
- package/dist/components/Dropdowns/DropdownMulti/index.d.ts +36 -0
- package/dist/components/Dropdowns/DropdownMulti/index.js +201 -0
- package/dist/components/Dropdowns/DropdownSingle/index.d.ts +37 -0
- package/dist/components/Dropdowns/DropdownSingle/index.js +183 -0
- package/dist/components/Dropdowns/comps/Caret/index.d.ts +6 -0
- package/dist/components/Dropdowns/comps/Caret/index.js +19 -0
- package/dist/components/Dropdowns/comps/Caret/styled.d.ts +2 -0
- package/dist/components/Dropdowns/comps/Caret/styled.js +14 -0
- package/dist/components/Dropdowns/comps/DisplayCompSingle/index.d.ts +5 -0
- package/dist/components/Dropdowns/comps/DisplayCompSingle/index.js +39 -0
- package/dist/components/Dropdowns/comps/NoOptionResultsComp/index.d.ts +3 -0
- package/dist/components/Dropdowns/comps/NoOptionResultsComp/index.js +15 -0
- package/dist/components/Dropdowns/comps/OptionContent/index.d.ts +6 -0
- package/dist/components/Dropdowns/comps/OptionContent/index.js +30 -0
- package/dist/components/Dropdowns/comps/OptionsMulti/index.d.ts +25 -0
- package/dist/components/Dropdowns/comps/OptionsMulti/index.js +173 -0
- package/dist/components/Dropdowns/comps/OptionsShell/index.d.ts +1 -0
- package/dist/components/Dropdowns/comps/OptionsShell/index.js +81 -0
- package/dist/components/Dropdowns/comps/OptionsShell/styled.d.ts +1 -0
- package/dist/components/Dropdowns/comps/OptionsShell/styled.js +17 -0
- package/dist/components/Dropdowns/comps/OptionsSingle/index.d.ts +24 -0
- package/dist/components/Dropdowns/comps/OptionsSingle/index.js +117 -0
- package/dist/components/Dropdowns/comps/OptionsSingle/styled.d.ts +2 -0
- package/dist/components/Dropdowns/comps/OptionsSingle/styled.js +71 -0
- package/dist/components/Dropdowns/comps/SelectDropdown/index.d.ts +14 -0
- package/dist/components/Dropdowns/comps/SelectDropdown/index.js +56 -0
- package/dist/components/Dropdowns/comps/SelectDropdown/styled.d.ts +1 -0
- package/dist/components/Dropdowns/comps/SelectDropdown/styled.js +61 -0
- package/dist/components/Dropdowns/comps/SelectTagsInput/index.d.ts +15 -0
- package/dist/components/Dropdowns/comps/SelectTagsInput/index.js +113 -0
- package/dist/components/Dropdowns/comps/SelectTagsInput/styled.d.ts +2 -0
- package/dist/components/Dropdowns/comps/SelectTagsInput/styled.js +54 -0
- package/dist/components/Dropdowns/handlers/index.d.ts +15 -0
- package/dist/components/Dropdowns/handlers/index.js +50 -0
- package/dist/components/Dropdowns/styled.d.ts +2 -0
- package/dist/components/Dropdowns/styled.js +39 -0
- package/dist/components/Dropdowns/utils/genIcon.d.ts +1 -0
- package/dist/components/Dropdowns/utils/genIcon.js +17 -0
- package/dist/components/Dropdowns/utils/genLinkOrText.d.ts +1 -0
- package/dist/components/Dropdowns/utils/genLinkOrText.js +48 -0
- package/dist/components/Dropdowns/utils/genProfileImg.d.ts +7 -0
- package/dist/components/Dropdowns/utils/genProfileImg.js +36 -0
- package/dist/components/Dropdowns/utils/genTagComp.d.ts +1 -0
- package/dist/components/Dropdowns/utils/genTagComp.js +27 -0
- package/dist/components/Dropdowns/utils/generateOptions.d.ts +5 -0
- package/dist/components/Dropdowns/utils/generateOptions.js +19 -0
- package/dist/components/Dropdowns/utils/getAllOptionsFns/genMonthsArray.d.ts +1 -0
- package/dist/components/Dropdowns/utils/getAllOptionsFns/genMonthsArray.js +40 -0
- package/dist/components/Dropdowns/utils/getAllOptionsFns/genYearsArray.d.ts +4 -0
- package/dist/components/Dropdowns/utils/getAllOptionsFns/genYearsArray.js +11 -0
- package/dist/components/Dropdowns/utils/getAllOptionsFns/getLanguagesArray.d.ts +4 -0
- package/dist/components/Dropdowns/utils/getAllOptionsFns/getLanguagesArray.js +62 -0
- package/dist/components/Dropdowns/utils/getAllOptionsFns/index.d.ts +1 -0
- package/dist/components/Dropdowns/utils/getAllOptionsFns/index.js +19 -0
- package/dist/components/Dropdowns/utils/getValue.d.ts +12 -0
- package/dist/components/Dropdowns/utils/getValue.js +29 -0
- package/dist/components/Dropdowns/utils/keywordSearchOptions.d.ts +6 -0
- package/dist/components/Dropdowns/utils/keywordSearchOptions.js +18 -0
- package/dist/components/Dropdowns/utils/setDropdownSelectText.d.ts +12 -0
- package/dist/components/Dropdowns/utils/setDropdownSelectText.js +19 -0
- package/dist/components/Dropdowns/utils/useCreateDropdownRefs.d.ts +5 -0
- package/dist/components/Dropdowns/utils/useCreateDropdownRefs.js +15 -0
- package/dist/components/Dropdowns/utils/useHideShowOptions.d.ts +5 -0
- package/dist/components/Dropdowns/utils/useHideShowOptions.js +20 -0
- package/dist/components/Dropdowns/utils/useKeyboardControl.d.ts +12 -0
- package/dist/components/Dropdowns/utils/useKeyboardControl.js +73 -0
- package/dist/components/Dropdowns/utils/useSearchString.d.ts +4 -0
- package/dist/components/Dropdowns/utils/useSearchString.js +20 -0
- package/dist/components/Dropdowns/utils/useSetYOrientation.d.ts +9 -0
- package/dist/components/Dropdowns/utils/useSetYOrientation.js +46 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +5 -1
- package/package.json +1 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* if value has been saved as a string ( tci usecase )
|
|
4
|
+
* then the appropriate option needs to be found and set as
|
|
5
|
+
* value in the format of { display: ..., value: ... }
|
|
6
|
+
*
|
|
7
|
+
* Because thats the only format our dropdowns understand
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.getValue_MULTI = exports.getValue_SINGLE = void 0;
|
|
11
|
+
var getAllOptionsFns_1 = require("./getAllOptionsFns");
|
|
12
|
+
var getValue_SINGLE = function (_a) {
|
|
13
|
+
var _b;
|
|
14
|
+
var valueProp = _a.valueProp, optionsFn = _a.optionsFn, options = _a.options, theme = _a.theme;
|
|
15
|
+
return !!valueProp === true && typeof valueProp === 'string'
|
|
16
|
+
? (optionsFn ? (_b = (0, getAllOptionsFns_1.getAllOptionsFns)(theme))[optionsFn.fn].apply(_b, (optionsFn.args || [])) : options).find(function (d) { return d.value === valueProp; })
|
|
17
|
+
: valueProp;
|
|
18
|
+
};
|
|
19
|
+
exports.getValue_SINGLE = getValue_SINGLE;
|
|
20
|
+
var getValue_MULTI = function (_a) {
|
|
21
|
+
var valueProp = _a.valueProp, optionsFn = _a.optionsFn, options = _a.options, theme = _a.theme;
|
|
22
|
+
return !!valueProp === true && valueProp.every(function (v) { return typeof v === 'string'; })
|
|
23
|
+
? valueProp.map(function (vProp) {
|
|
24
|
+
var _a;
|
|
25
|
+
return (optionsFn ? (_a = (0, getAllOptionsFns_1.getAllOptionsFns)(theme))[optionsFn.fn].apply(_a, (optionsFn.args || [])) : options).find(function (d) { return d.value === vProp; });
|
|
26
|
+
})
|
|
27
|
+
: valueProp;
|
|
28
|
+
};
|
|
29
|
+
exports.getValue_MULTI = getValue_MULTI;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.keywordSearchOptions = void 0;
|
|
4
|
+
var isStringMatch_1 = require("../../../utils/isStringMatch");
|
|
5
|
+
var keywordSearchOptions = function (_a) {
|
|
6
|
+
var options = _a.options, searchString = _a.searchString, searchFieldsConfig = _a.searchFieldsConfig, setFilteredOptionsInParent = _a.setFilteredOptionsInParent;
|
|
7
|
+
if (options.some(function (d) { return d.loading === true; }))
|
|
8
|
+
return options; //if any of the options are still loading, then dont even try to do this filter thing
|
|
9
|
+
//else
|
|
10
|
+
var toReturn = options.filter(function (d) {
|
|
11
|
+
return (0, isStringMatch_1.isStringMatch)({ data: d, toMatchPath: searchFieldsConfig || 'display', subString: searchString });
|
|
12
|
+
});
|
|
13
|
+
//we want to track filtered options only if a search is being conducted
|
|
14
|
+
//this will help us to select the most relevant option if user hits 'enter' instead of clicking on option.
|
|
15
|
+
setFilteredOptionsInParent && searchString && setFilteredOptionsInParent(toReturn);
|
|
16
|
+
return toReturn;
|
|
17
|
+
};
|
|
18
|
+
exports.keywordSearchOptions = keywordSearchOptions;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export function setDropdownSelectText({ placeholder, disableSelectTextUpdate, value, isTagsStyle }: {
|
|
2
|
+
placeholder: any;
|
|
3
|
+
disableSelectTextUpdate: any;
|
|
4
|
+
value: any;
|
|
5
|
+
isTagsStyle: any;
|
|
6
|
+
}): {
|
|
7
|
+
display: any;
|
|
8
|
+
desc?: undefined;
|
|
9
|
+
} | {
|
|
10
|
+
display: any;
|
|
11
|
+
desc: any;
|
|
12
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setDropdownSelectText = void 0;
|
|
4
|
+
var setDropdownSelectText = function (_a) {
|
|
5
|
+
var placeholder = _a.placeholder, disableSelectTextUpdate = _a.disableSelectTextUpdate, value = _a.value, isTagsStyle = _a.isTagsStyle;
|
|
6
|
+
if (disableSelectTextUpdate)
|
|
7
|
+
return { display: placeholder || "Select" };
|
|
8
|
+
if (!value ||
|
|
9
|
+
(Array.isArray(value) && value.length === 0))
|
|
10
|
+
return { display: placeholder || "Select" }; //else
|
|
11
|
+
// we dont show 'x' selected or the selected text in tagsStyle
|
|
12
|
+
if (!isTagsStyle) {
|
|
13
|
+
return {
|
|
14
|
+
display: Array.isArray(value) ? "".concat(value.length, " Selected") : value.display,
|
|
15
|
+
desc: value.desc
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
exports.setDropdownSelectText = setDropdownSelectText;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useCreateDropdownRefs = void 0;
|
|
4
|
+
var react_1 = require("react");
|
|
5
|
+
var useCreateDropdownRefs = function () {
|
|
6
|
+
var selectRef = (0, react_1.useRef)(null);
|
|
7
|
+
var dropdownRef = (0, react_1.useRef)(null);
|
|
8
|
+
var searchInputRef = (0, react_1.useRef)(null);
|
|
9
|
+
return {
|
|
10
|
+
selectRef: selectRef,
|
|
11
|
+
searchInputRef: searchInputRef,
|
|
12
|
+
dropdownRef: dropdownRef
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
exports.useCreateDropdownRefs = useCreateDropdownRefs;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useHideShowOptions = void 0;
|
|
4
|
+
var react_1 = require("react");
|
|
5
|
+
var useHideShowOptions = function (options) {
|
|
6
|
+
if (options === void 0) { options = {}; }
|
|
7
|
+
var broadcastShowOptions = options.broadcastShowOptions;
|
|
8
|
+
var _a = (0, react_1.useState)(false), showOptions = _a[0], setShowOptions = _a[1];
|
|
9
|
+
var handleHideOptions = function () {
|
|
10
|
+
setShowOptions(false);
|
|
11
|
+
};
|
|
12
|
+
var handleShowOptions = function () { return setShowOptions(true); };
|
|
13
|
+
var isFirstMount = (0, react_1.useRef)(true);
|
|
14
|
+
(0, react_1.useEffect)(function () {
|
|
15
|
+
!isFirstMount.current && broadcastShowOptions && broadcastShowOptions(showOptions);
|
|
16
|
+
}, [showOptions]);
|
|
17
|
+
(0, react_1.useEffect)(function () { return isFirstMount.current = false; }, []);
|
|
18
|
+
return { showOptions: showOptions, handleHideOptions: handleHideOptions, handleShowOptions: handleShowOptions };
|
|
19
|
+
};
|
|
20
|
+
exports.useHideShowOptions = useHideShowOptions;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export function useKeyboardControl({ showOptions, handleHideOptions, optionsWrapperRef, handleSelect, options, searchString, id }: {
|
|
2
|
+
showOptions: any;
|
|
3
|
+
handleHideOptions: any;
|
|
4
|
+
optionsWrapperRef: any;
|
|
5
|
+
handleSelect: any;
|
|
6
|
+
options: any;
|
|
7
|
+
searchString: any;
|
|
8
|
+
id: any;
|
|
9
|
+
}): {
|
|
10
|
+
scrollFocussedOpIntoView: (el: any) => void;
|
|
11
|
+
focussedOp: any;
|
|
12
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useKeyboardControl = void 0;
|
|
4
|
+
var react_1 = require("react");
|
|
5
|
+
var getKeyCode_1 = require("../../../utils/getKeyCode");
|
|
6
|
+
var useKeyboardControl = function (_a) {
|
|
7
|
+
var showOptions = _a.showOptions, handleHideOptions = _a.handleHideOptions, optionsWrapperRef = _a.optionsWrapperRef, handleSelect = _a.handleSelect, options = _a.options, searchString = _a.searchString, id = _a.id;
|
|
8
|
+
var _b = (0, react_1.useState)(-1), focussedOp = _b[0], setFocussedOp = _b[1];
|
|
9
|
+
// if search string is not empty, then reset focussedOp to first op
|
|
10
|
+
// else set it to minus 1
|
|
11
|
+
(0, react_1.useEffect)(function () {
|
|
12
|
+
if ((searchString === null || searchString === void 0 ? void 0 : searchString.length) > 0)
|
|
13
|
+
setFocussedOp(0);
|
|
14
|
+
else if (focussedOp !== -1)
|
|
15
|
+
setFocussedOp(-1);
|
|
16
|
+
}, [searchString]);
|
|
17
|
+
(0, react_1.useEffect)(function () {
|
|
18
|
+
//update only when options are shut
|
|
19
|
+
if (!showOptions)
|
|
20
|
+
setFocussedOp(-1);
|
|
21
|
+
}, [showOptions]);
|
|
22
|
+
(0, react_1.useEffect)(function () {
|
|
23
|
+
var handleKeyDown = function (e) {
|
|
24
|
+
if (!showOptions)
|
|
25
|
+
return;
|
|
26
|
+
/**
|
|
27
|
+
* dont prevent default outside the condition, else
|
|
28
|
+
* all other key actions stop working..
|
|
29
|
+
*/
|
|
30
|
+
var code = (0, getKeyCode_1.getKeyCode)(e);
|
|
31
|
+
if (code === 'Enter') {
|
|
32
|
+
if (options[focussedOp])
|
|
33
|
+
handleSelect(options[focussedOp]);
|
|
34
|
+
}
|
|
35
|
+
else if (code === 'ArrowDown') {
|
|
36
|
+
if (showOptions)
|
|
37
|
+
e.preventDefault(); //basically disabled page scroll by arrow keys
|
|
38
|
+
focussedOp !== options.length - 1 && setFocussedOp(function (p) { return p + 1; });
|
|
39
|
+
}
|
|
40
|
+
else if (code === 'ArrowUp') {
|
|
41
|
+
if (showOptions)
|
|
42
|
+
e.preventDefault(); //basically disabled page scroll by arrow keys
|
|
43
|
+
focussedOp !== -1 && setFocussedOp(function (p) { return p - 1; });
|
|
44
|
+
}
|
|
45
|
+
else if (code === 'Escape' /*esc*/) {
|
|
46
|
+
handleHideOptions();
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
window.addEventListener('keydown', handleKeyDown);
|
|
50
|
+
return function () { return window.removeEventListener('keydown', handleKeyDown); };
|
|
51
|
+
});
|
|
52
|
+
var scrollFocussedOpIntoView = function (el) {
|
|
53
|
+
var _a = el.getBoundingClientRect(), elBottom = _a.bottom, elTop = _a.top;
|
|
54
|
+
var _b = optionsWrapperRef.current.getBoundingClientRect(), opsWrapperBottom = _b.bottom, opsWrapperTop = _b.top;
|
|
55
|
+
if (elBottom > opsWrapperBottom) {
|
|
56
|
+
el.scrollIntoView({
|
|
57
|
+
behaviour: 'smooth',
|
|
58
|
+
block: 'nearest',
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
else if (elTop < opsWrapperTop) {
|
|
62
|
+
el.scrollIntoView({
|
|
63
|
+
behaviour: 'smooth',
|
|
64
|
+
block: 'nearest',
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
return {
|
|
69
|
+
scrollFocussedOpIntoView: scrollFocussedOpIntoView,
|
|
70
|
+
focussedOp: focussedOp
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
exports.useKeyboardControl = useKeyboardControl;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useSearchString = void 0;
|
|
4
|
+
var react_1 = require("react");
|
|
5
|
+
var useSearchString = function (_a) {
|
|
6
|
+
var
|
|
7
|
+
// showOptions,
|
|
8
|
+
searchStringInParent = _a.searchStringInParent, setSearchStringInParent = _a.setSearchStringInParent;
|
|
9
|
+
var _b = (0, react_1.useState)(searchStringInParent || ""), searchString = _b[0], _setSearchString = _b[1];
|
|
10
|
+
var setSearchString = function (string) {
|
|
11
|
+
_setSearchString(string);
|
|
12
|
+
setSearchStringInParent && setSearchStringInParent(string);
|
|
13
|
+
};
|
|
14
|
+
// useEffect(() => {
|
|
15
|
+
// if(searchStringInParent !== searchString){
|
|
16
|
+
// }
|
|
17
|
+
// }, [searchStringInParent]); /**if value is changed from outside the dropdown by the parent, then search string needs to be updated */
|
|
18
|
+
return [searchString, setSearchString];
|
|
19
|
+
};
|
|
20
|
+
exports.useSearchString = useSearchString;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export function useSetYOrientation({ showOptions, optionsRef, relativeToRef, enabled }: {
|
|
2
|
+
showOptions: any;
|
|
3
|
+
optionsRef: any;
|
|
4
|
+
relativeToRef: any;
|
|
5
|
+
enabled: any;
|
|
6
|
+
}): {
|
|
7
|
+
yOrientation: any;
|
|
8
|
+
};
|
|
9
|
+
export function handleSetYOrientation(elemRef: any, anchorRef: any, setYOrientation: any): void;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.handleSetYOrientation = exports.useSetYOrientation = void 0;
|
|
4
|
+
var react_1 = require("react");
|
|
5
|
+
var useScroll_1 = require("../../../utils/customHooks/useScroll");
|
|
6
|
+
var useSetYOrientation = function (_a) {
|
|
7
|
+
var showOptions = _a.showOptions, optionsRef = _a.optionsRef, relativeToRef = _a.relativeToRef, enabled = _a.enabled;
|
|
8
|
+
var _b = (0, react_1.useState)("bottom"), yOrientation = _b[0], setYOrientation = _b[1];
|
|
9
|
+
var _handleSetYOrientation = function () {
|
|
10
|
+
if (!enabled)
|
|
11
|
+
return;
|
|
12
|
+
(0, exports.handleSetYOrientation)(optionsRef, relativeToRef, setYOrientation);
|
|
13
|
+
};
|
|
14
|
+
(0, useScroll_1.useScroll)(_handleSetYOrientation, { detectScrollInAllDivs: true });
|
|
15
|
+
(0, react_1.useLayoutEffect)(function () {
|
|
16
|
+
if (showOptions) {
|
|
17
|
+
_handleSetYOrientation(); //set y orientation
|
|
18
|
+
}
|
|
19
|
+
}, [showOptions]);
|
|
20
|
+
return { yOrientation: yOrientation };
|
|
21
|
+
};
|
|
22
|
+
exports.useSetYOrientation = useSetYOrientation;
|
|
23
|
+
var handleSetYOrientation = function (elemRef, anchorRef, setYOrientation) {
|
|
24
|
+
if (!anchorRef.current || !elemRef.current)
|
|
25
|
+
return;
|
|
26
|
+
// - - we calculate the bottom edge y pos of the options, if it opens downward
|
|
27
|
+
var viewportHeight = window.innerHeight;
|
|
28
|
+
var _a = anchorRef.current.getBoundingClientRect(), anchorPoint_YPos_BOTTOM = _a.bottom, anchorPoint_YPos_TOP = _a.top;
|
|
29
|
+
var elemHeight = elemRef.current.getBoundingClientRect().height;
|
|
30
|
+
var elemBottomEdge = anchorPoint_YPos_BOTTOM + elemHeight;
|
|
31
|
+
// - - then we calculate the top edge y pos of the options, if it opens upward
|
|
32
|
+
var elemTopEdge = anchorPoint_YPos_TOP - elemHeight;
|
|
33
|
+
// - - if bottom is not popping out of the screen, set open downward (default)
|
|
34
|
+
if (elemBottomEdge < viewportHeight) {
|
|
35
|
+
setYOrientation("bottom");
|
|
36
|
+
}
|
|
37
|
+
// - - if both of them are popping out the screen, then set open downward (default)
|
|
38
|
+
else if (elemBottomEdge >= viewportHeight && elemTopEdge <= 0) {
|
|
39
|
+
setYOrientation("bottom");
|
|
40
|
+
}
|
|
41
|
+
// - - only one option left, bottom is popping out of screen, but top is NOT. so set open upward
|
|
42
|
+
else {
|
|
43
|
+
setYOrientation("top");
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
exports.handleSetYOrientation = handleSetYOrientation;
|
package/dist/index.d.ts
CHANGED
|
@@ -37,5 +37,7 @@ export { default as DatePicker } from "./components/DatePicker";
|
|
|
37
37
|
export { default as DateRangePicker } from "./components/DateRangePicker";
|
|
38
38
|
export { BarChart } from "./components/dataViz/comps/BarChart";
|
|
39
39
|
export { TextLoader } from "./components/LoadersAndProgress/TextLoader";
|
|
40
|
+
export { DropdownSingle } from "./components/Dropdowns/DropdownSingle";
|
|
41
|
+
export { DropdownMulti } from "./components/Dropdowns/DropdownMulti";
|
|
40
42
|
export { HintsProvider } from "./components/Hints/contextApi";
|
|
41
43
|
export { LoaderCircle, ProgressBar, LoaderCircle as Loader, LoaderOverlay } from "./components/LoadersAndProgress";
|
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
17
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.HintsProvider = exports.TextLoader = exports.BarChart = exports.DateRangePicker = exports.DatePicker = exports.PageScrollIndicator = exports.HomeCover = exports.EmptyStates = exports.ModalSmall = exports.ModalLarge = exports.ModalConfirm = exports.SkeletonLoader = exports.Divider = exports.PercentCompletedPie = exports.Accordion = exports.ActionMenu = exports.Tooltip = exports.OKELink = exports.UserRoleBadge = exports.Section = exports.LoaderOverlay = exports.Loader = exports.ProgressBar = exports.LoaderCircle = exports.icons = exports.colors = exports.GlobalStyles = void 0;
|
|
20
|
+
exports.HintsProvider = exports.DropdownMulti = exports.DropdownSingle = exports.TextLoader = exports.BarChart = exports.DateRangePicker = exports.DatePicker = exports.PageScrollIndicator = exports.HomeCover = exports.EmptyStates = exports.ModalSmall = exports.ModalLarge = exports.ModalConfirm = exports.SkeletonLoader = exports.Divider = exports.PercentCompletedPie = exports.Accordion = exports.ActionMenu = exports.Tooltip = exports.OKELink = exports.UserRoleBadge = exports.Section = exports.LoaderOverlay = exports.Loader = exports.ProgressBar = exports.LoaderCircle = exports.icons = exports.colors = exports.GlobalStyles = void 0;
|
|
21
21
|
//css and styling related ( styled-components )
|
|
22
22
|
var globalStyles_1 = require("./globalStyles");
|
|
23
23
|
Object.defineProperty(exports, "GlobalStyles", { enumerable: true, get: function () { return globalStyles_1.GlobalStyles; } });
|
|
@@ -87,6 +87,10 @@ var BarChart_1 = require("./components/dataViz/comps/BarChart");
|
|
|
87
87
|
Object.defineProperty(exports, "BarChart", { enumerable: true, get: function () { return BarChart_1.BarChart; } });
|
|
88
88
|
var TextLoader_1 = require("./components/LoadersAndProgress/TextLoader");
|
|
89
89
|
Object.defineProperty(exports, "TextLoader", { enumerable: true, get: function () { return TextLoader_1.TextLoader; } });
|
|
90
|
+
var DropdownSingle_1 = require("./components/Dropdowns/DropdownSingle");
|
|
91
|
+
Object.defineProperty(exports, "DropdownSingle", { enumerable: true, get: function () { return DropdownSingle_1.DropdownSingle; } });
|
|
92
|
+
var DropdownMulti_1 = require("./components/Dropdowns/DropdownMulti");
|
|
93
|
+
Object.defineProperty(exports, "DropdownMulti", { enumerable: true, get: function () { return DropdownMulti_1.DropdownMulti; } });
|
|
90
94
|
////// context
|
|
91
95
|
var contextApi_1 = require("./components/Hints/contextApi");
|
|
92
96
|
Object.defineProperty(exports, "HintsProvider", { enumerable: true, get: function () { return contextApi_1.HintsProvider; } });
|