oolib 2.185.4 → 2.187.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.
|
@@ -35,6 +35,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.LoaderOverlay = void 0;
|
|
37
37
|
var react_1 = __importStar(require("react"));
|
|
38
|
+
var react_dom_1 = require("react-dom");
|
|
38
39
|
var themes_1 = require("../../../themes");
|
|
39
40
|
var LoaderCircle_1 = require("../LoaderCircle");
|
|
40
41
|
/**
|
|
@@ -46,7 +47,7 @@ var LoaderCircle_1 = require("../LoaderCircle");
|
|
|
46
47
|
*/
|
|
47
48
|
var LoaderOverlay = function (_a) {
|
|
48
49
|
var loaderText = _a.loaderText;
|
|
49
|
-
return (react_1.default.createElement(react_1.Fragment, null,
|
|
50
|
+
return ((0, react_dom_1.createPortal)(react_1.default.createElement(react_1.Fragment, null,
|
|
50
51
|
react_1.default.createElement("div", { style: {
|
|
51
52
|
position: 'fixed',
|
|
52
53
|
width: '100vw',
|
|
@@ -57,6 +58,6 @@ var LoaderOverlay = function (_a) {
|
|
|
57
58
|
left: 0,
|
|
58
59
|
zIndex: 1000000,
|
|
59
60
|
} },
|
|
60
|
-
react_1.default.createElement(LoaderCircle_1.LoaderCircle, { text: loaderText || "Generating Template...", isBlock: true, invert: true }))));
|
|
61
|
+
react_1.default.createElement(LoaderCircle_1.LoaderCircle, { text: loaderText || "Generating Template...", isBlock: true, invert: true }))), document.getElementById("loader-root")));
|
|
61
62
|
};
|
|
62
63
|
exports.LoaderOverlay = LoaderOverlay;
|
|
@@ -90,7 +90,7 @@ exports.default = {
|
|
|
90
90
|
};
|
|
91
91
|
var TabBar_ = function (args) {
|
|
92
92
|
var options = [
|
|
93
|
-
{ display: "display 1", value: "value1", icon: 'Funnel' },
|
|
93
|
+
{ display: "display 1", value: "value1", icon: 'Funnel', message: "new" },
|
|
94
94
|
{ display: "display 2", value: "value2", icon: 'ListDashes' },
|
|
95
95
|
{ display: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.", value: "value3" },
|
|
96
96
|
{ display: "display 3", value: "value4" },
|
|
@@ -26,6 +26,7 @@ var Typo2_1 = require("../Typo2");
|
|
|
26
26
|
var phosphor_react_1 = require("phosphor-react");
|
|
27
27
|
var colors_1 = require("../../themes/colors");
|
|
28
28
|
var icons_1 = require("../../../icons");
|
|
29
|
+
var __1 = require("../../..");
|
|
29
30
|
var Base = function (_a) {
|
|
30
31
|
var id = _a.id, options = _a.options, valueProp = _a.value, onChange = _a.onChange, style = _a.style, errorTabs = _a.errorTabs, disabledTabs = _a.disabledTabs, _b = _a.tabBarStyle, tabBarStyle = _b === void 0 ? '1' : _b, saveValueAsString = _a.saveValueAsString, _c = _a.black, black = _c === void 0 ? false : _c, M = _a.M, S = _a.S, _size = _a.size //use any one of these 3
|
|
31
32
|
;
|
|
@@ -55,7 +56,11 @@ var Base = function (_a) {
|
|
|
55
56
|
react_1.default.createElement(index_styled_1.TabBarTabStyled, { size: size, active: tabIsActive, error: tabHasError, disabled: tabIsDisabled, tabBarStyle: tabBarStyle, onClick: function () { return handleClick(op); }, black: black },
|
|
56
57
|
react_1.default.createElement("div", { style: { display: 'flex', alignItems: 'center', gap: '0.4rem' } },
|
|
57
58
|
op.icon && genIconInTab(op.icon),
|
|
58
|
-
op.display &&
|
|
59
|
+
op.display &&
|
|
60
|
+
react_1.default.createElement(index_styled_1.STYLED_TYPO, { capitalize: true }, op.display),
|
|
61
|
+
op.message &&
|
|
62
|
+
react_1.default.createElement("div", { style: { background: __1.colors2.black, padding: "0.3rem 0.5rem", borderRadius: "2px" } },
|
|
63
|
+
react_1.default.createElement(Typo2_1.UI_TAG, { style: { color: __1.colors2.white } }, op.message))),
|
|
59
64
|
tabHasError && react_1.default.createElement(index_styled_1.StyledDot, { active: tabIsActive, error: tabHasError, tabBarStyle: tabBarStyle }))));
|
|
60
65
|
}))),
|
|
61
66
|
!scrollIsAtEnd && (react_1.default.createElement(index_styled_1.StyledDirectionButtons, { right: true },
|
|
@@ -62,7 +62,7 @@ exports.wrapperStyles = {
|
|
|
62
62
|
exports.tabStyles = {
|
|
63
63
|
style1: (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n border-radius: 6px;\n background-color: ", ";\n color: ", ";\n \n ", " \n \n &:active {\n background-color: ", " ;\n color: ", " ;\n }\n \n &:hover {\n background-color: ", ";\n color: ", ";\n border-radius: 6px;\n } \n \n ", "\n "], ["\n border-radius: 6px;\n background-color: ", ";\n color: ", ";\n \n ", " \n \n &:active {\n background-color: ", " ;\n color: ", " ;\n }\n \n &:hover {\n background-color: ", ";\n color: ", ";\n border-radius: 6px;\n } \n \n ", "\n "])), function (_a) {
|
|
64
64
|
var active = _a.active, disabled = _a.disabled, colors = _a.theme.colors;
|
|
65
|
-
return active ? (0, getDynamicColors_1.getSecondaryContainer)(colors)
|
|
65
|
+
return active ? (0, getDynamicColors_1.getSecondaryContainer)(colors) : white;
|
|
66
66
|
}, function (_a) {
|
|
67
67
|
var active = _a.active, disabled = _a.disabled, colors = _a.theme.colors;
|
|
68
68
|
return disabled ? grey40 : active ? (0, getDynamicColors_1.getOnSecondary)(colors) || onSecondary : grey80;
|
|
@@ -71,16 +71,16 @@ exports.tabStyles = {
|
|
|
71
71
|
return disabled && (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n cursor: not-allowed;\n color: ", ";\n "], ["\n cursor: not-allowed;\n color: ", ";\n "])), grey40);
|
|
72
72
|
}, function (_a) {
|
|
73
73
|
var disabled = _a.disabled, colors = _a.theme.colors;
|
|
74
|
-
return disabled ? grey40 : (0, getDynamicColors_1.getSecondaryContainer)(colors)
|
|
74
|
+
return disabled ? grey40 : (0, getDynamicColors_1.getSecondaryContainer)(colors);
|
|
75
75
|
}, function (_a) {
|
|
76
76
|
var colors = _a.theme.colors;
|
|
77
|
-
return (0, getDynamicColors_1.getOnSecondary)(colors)
|
|
77
|
+
return (0, getDynamicColors_1.getOnSecondary)(colors);
|
|
78
78
|
}, function (_a) {
|
|
79
|
-
var disabled = _a.disabled;
|
|
80
|
-
return disabled ? white : grey10;
|
|
79
|
+
var disabled = _a.disabled, active = _a.active;
|
|
80
|
+
return disabled ? white : active ? (0, getDynamicColors_1.getSecondaryContainer)(themes_1.colors) : grey10;
|
|
81
81
|
}, function (_a) {
|
|
82
82
|
var disabled = _a.disabled, colors = _a.theme.colors;
|
|
83
|
-
return disabled ? grey40 : (0, getDynamicColors_1.getOnSecondary)(colors)
|
|
83
|
+
return disabled ? grey40 : (0, getDynamicColors_1.getOnSecondary)(colors);
|
|
84
84
|
}, (0, mixins_1.transition)("color"))
|
|
85
85
|
};
|
|
86
86
|
exports.TabBarStyled = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n background-color: ", ";\n z-index: 1000;\n height: ", ";\n"], ["\n background-color: ", ";\n z-index: 1000;\n height: ", ";\n"])), white, function (_a) {
|