oolib 2.19.5 → 2.19.6
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/ActionMenu/index.d.ts +2 -1
- package/dist/components/ActionMenu/index.js +10 -1
- package/dist/components/ActionMenu/styled.js +1 -1
- package/dist/components/PercentCompletedPie/index.d.ts +5 -0
- package/dist/components/{PercentCompletedPi → PercentCompletedPie}/index.js +4 -4
- package/dist/components/{PercentCompletedPi → PercentCompletedPie}/styled.d.ts +0 -0
- package/dist/components/{PercentCompletedPi → PercentCompletedPie}/styled.js +3 -3
- package/dist/components/TabBar/index.js +5 -3
- package/dist/components/TabBar/index.styled.js +6 -3
- package/dist/components/ToggleButton/index.js +3 -4
- package/dist/components/ToggleButton/styled.d.ts +1 -0
- package/dist/components/ToggleButton/styled.js +11 -3
- package/dist/icons/index.d.ts +22 -16
- package/dist/icons/index.js +11 -8
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/package.json +1 -1
- package/dist/components/PercentCompletedPi/index.d.ts +0 -5
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export function ActionMenu({ icon, invert, actions, align, iconSize, ButtonComp: _ButtonComp }: {
|
|
1
|
+
export function ActionMenu({ icon, invert, actions, align, iconSize, ButtonComp: _ButtonComp, setShowActions: setShowActionsInParent }: {
|
|
2
2
|
icon?: string;
|
|
3
3
|
invert: any;
|
|
4
4
|
actions: any;
|
|
5
5
|
align?: string;
|
|
6
6
|
iconSize?: string;
|
|
7
7
|
ButtonComp?: string;
|
|
8
|
+
setShowActions: any;
|
|
8
9
|
}): JSX.Element;
|
|
@@ -38,12 +38,13 @@ exports.ActionMenu = void 0;
|
|
|
38
38
|
var react_1 = __importStar(require("react"));
|
|
39
39
|
var ButtonComps = __importStar(require("../Buttons"));
|
|
40
40
|
var Typo_1 = require("../Typo");
|
|
41
|
+
var icons_1 = require("../../icons");
|
|
41
42
|
var utils_1 = require("./utils");
|
|
42
43
|
var styled_1 = require("./styled");
|
|
43
44
|
var ActionMenu = function (_a) {
|
|
44
45
|
var _b, _c;
|
|
45
46
|
var _d = _a.icon, icon = _d === void 0 ? 'DotsThree' : _d, //most likely will never change
|
|
46
|
-
invert = _a.invert, actions = _a.actions, _e = _a.align, align = _e === void 0 ? 'right' : _e, _f = _a.iconSize, iconSize = _f === void 0 ? 'S' : _f, _g = _a.ButtonComp, _ButtonComp = _g === void 0 ? 'ButtonGhost' : _g;
|
|
47
|
+
invert = _a.invert, actions = _a.actions, _e = _a.align, align = _e === void 0 ? 'right' : _e, _f = _a.iconSize, iconSize = _f === void 0 ? 'S' : _f, _g = _a.ButtonComp, _ButtonComp = _g === void 0 ? 'ButtonGhost' : _g, setShowActionsInParent = _a.setShowActions;
|
|
47
48
|
var actionMenuRef = (0, react_1.useRef)(null);
|
|
48
49
|
var optionsWrapperRef = (0, react_1.useRef)(null);
|
|
49
50
|
var _h = (0, react_1.useState)(false), showActions = _h[0], setShowActions = _h[1];
|
|
@@ -52,6 +53,13 @@ var ActionMenu = function (_a) {
|
|
|
52
53
|
return null;
|
|
53
54
|
var getOpsRect = function () { var _a; return (_a = optionsWrapperRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect(); };
|
|
54
55
|
var ButtonComp = ButtonComps[_ButtonComp];
|
|
56
|
+
var genOptionIcon = function (iconName) {
|
|
57
|
+
var IconComp = icons_1.icons[iconName];
|
|
58
|
+
return react_1.default.createElement(IconComp, { size: 16 });
|
|
59
|
+
};
|
|
60
|
+
(0, react_1.useEffect)(function () {
|
|
61
|
+
setShowActionsInParent && setShowActionsInParent(showActions);
|
|
62
|
+
}, [showActions]);
|
|
55
63
|
return (react_1.default.createElement(styled_1.StyledActionMenu, { ref: actionMenuRef },
|
|
56
64
|
react_1.default.createElement(ButtonComp, { icon: icon, iconSize: iconSize, invert: invert, onClick: function (e) {
|
|
57
65
|
e.stopPropagation();
|
|
@@ -69,6 +77,7 @@ var ActionMenu = function (_a) {
|
|
|
69
77
|
action.onClick && action.onClick(ev);
|
|
70
78
|
setShowActions(false);
|
|
71
79
|
}, key: action.display, invert: invert }),
|
|
80
|
+
action.icon && genOptionIcon(action.icon),
|
|
72
81
|
react_1.default.createElement(Typo_1.SANS_2, null, action.display)));
|
|
73
82
|
})))));
|
|
74
83
|
};
|
|
@@ -74,7 +74,7 @@ exports.StyledOptionsWrapper = styled_components_1.default.div(templateObject_9
|
|
|
74
74
|
var invert = _a.invert;
|
|
75
75
|
return (invert ? greyColor80 : white);
|
|
76
76
|
});
|
|
77
|
-
exports.StyledOption = styled_components_1.default.button(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n white-space: nowrap;\n border: none;\n cursor: pointer;\n width: 100%;\n text-align: left;\n padding: 0.25rem 1.2rem;\n background-color: transparent;\n color: ", ";\n ", ";\n &:hover {\n background-color: ", ";\n }\n"], ["\n white-space: nowrap;\n border: none;\n cursor: pointer;\n width: 100%;\n text-align: left;\n padding: 0.25rem 1.2rem;\n background-color: transparent;\n color: ", ";\n ", ";\n &:hover {\n background-color: ", ";\n }\n"])), function (_a) {
|
|
77
|
+
exports.StyledOption = styled_components_1.default.button(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n white-space: nowrap;\n border: none;\n cursor: pointer;\n width: 100%;\n display: flex;\n align-items: center;\n gap: 0.5rem;\n text-align: left;\n padding: 0.25rem 1.2rem;\n background-color: transparent;\n color: ", ";\n ", ";\n &:hover {\n background-color: ", ";\n }\n"], ["\n white-space: nowrap;\n border: none;\n cursor: pointer;\n width: 100%;\n display: flex;\n align-items: center;\n gap: 0.5rem;\n text-align: left;\n padding: 0.25rem 1.2rem;\n background-color: transparent;\n color: ", ";\n ", ";\n &:hover {\n background-color: ", ";\n }\n"])), function (_a) {
|
|
78
78
|
var invert = _a.invert;
|
|
79
79
|
return (invert ? white : greyColor100);
|
|
80
80
|
}, (0, mixins_1.transition)("background-color"), function (_a) {
|
|
@@ -3,12 +3,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.PercentCompletedPie = void 0;
|
|
7
7
|
var react_1 = __importDefault(require("react"));
|
|
8
8
|
var Typo_1 = require("../Typo");
|
|
9
9
|
var styled_1 = require("./styled");
|
|
10
|
-
function
|
|
11
|
-
var percent = _a.percent, _b = _a.size, size = _b === void 0 ?
|
|
10
|
+
function PercentCompletedPie(_a) {
|
|
11
|
+
var percent = _a.percent, _b = _a.size, size = _b === void 0 ? 24 : _b, label = _a.label;
|
|
12
12
|
var perUnit = 1.8;
|
|
13
13
|
var transform = "rotate(".concat(parseInt(percent) * perUnit, "deg)");
|
|
14
14
|
return (react_1.default.createElement(styled_1.StyledContainer, null,
|
|
@@ -21,4 +21,4 @@ function PercentCompletedPi(_a) {
|
|
|
21
21
|
react_1.default.createElement(styled_1.StyledFill, { size: size, transform: transform, className: "fill fix" })))),
|
|
22
22
|
(label === null || label === void 0 ? void 0 : label.show) && react_1.default.createElement(Typo_1.LABEL, null, "".concat(percent).concat(label.suffix || ''))));
|
|
23
23
|
}
|
|
24
|
-
exports.
|
|
24
|
+
exports.PercentCompletedPie = PercentCompletedPie;
|
|
File without changes
|
|
@@ -13,7 +13,7 @@ var utilsOolib_1 = require("../../utilsOolib");
|
|
|
13
13
|
exports.StyledContainer = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n gap: 1rem;\n align-items: center;\n"], ["\n display: flex;\n gap: 1rem;\n align-items: center;\n"])));
|
|
14
14
|
exports.StyledWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border-radius: 50%;\n ", "\n background-color: ", ";\n"], ["\n border-radius: 50%;\n ", "\n background-color: ", ";\n"])), function (_a) {
|
|
15
15
|
var size = _a.size;
|
|
16
|
-
return "\n width: ".concat(size, ";\n height: ").concat(size, "; \n ");
|
|
16
|
+
return "\n width: ".concat(size, "px;\n height: ").concat(size, "px; \n ");
|
|
17
17
|
}, function (_a) {
|
|
18
18
|
var theme = _a.theme;
|
|
19
19
|
return (0, utilsOolib_1.getPrimaryColor40)(theme.colors);
|
|
@@ -21,11 +21,11 @@ exports.StyledWrapper = styled_components_1.default.div(templateObject_2 || (tem
|
|
|
21
21
|
exports.StyledCircle = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: relative;\n"], ["\n position: relative;\n"])));
|
|
22
22
|
exports.StyledMask = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n ", "\n position: absolute;\n border-radius: 50%;\n \n"], ["\n ", "\n position: absolute;\n border-radius: 50%;\n \n"])), function (_a) {
|
|
23
23
|
var size = _a.size, transform = _a.transform;
|
|
24
|
-
return "\n ".concat(transform ? "transform: ".concat(transform) : '', ";\n width: ").concat(size, ";\n height: ").concat(size, "; \n clip: rect(0px, ").concat(size, ", ").concat(size, ", ").concat((parseFloat(size
|
|
24
|
+
return "\n ".concat(transform ? "transform: ".concat(transform) : '', ";\n width: ").concat(size, "px;\n height: ").concat(size, "px; \n clip: rect(0px, ").concat(size, "px, ").concat(size, "px, ").concat((parseFloat(size) / 2) + 'px', ");\n ");
|
|
25
25
|
});
|
|
26
26
|
exports.StyledFill = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n ", "\n border-radius: 50%;\n position: absolute;\n background-color: ", ";\n"], ["\n ", "\n border-radius: 50%;\n position: absolute;\n background-color: ", ";\n"])), function (_a) {
|
|
27
27
|
var size = _a.size, transform = _a.transform;
|
|
28
|
-
return "\n transform: ".concat(transform, ";\n width: ").concat(size, ";\n height: ").concat(size, "; \n clip: rect(0px, ").concat((parseFloat(size
|
|
28
|
+
return "\n transform: ".concat(transform, ";\n width: ").concat(size, "px;\n height: ").concat(size, "px; \n clip: rect(0px, ").concat((parseFloat(size) / 2) + 'px', ", ").concat(size, "px, 0px);\n ");
|
|
29
29
|
}, function (_a) {
|
|
30
30
|
var theme = _a.theme;
|
|
31
31
|
return (0, utilsOolib_1.getPrimaryColor100)(theme.colors);
|
|
@@ -19,18 +19,20 @@ var react_1 = __importDefault(require("react"));
|
|
|
19
19
|
var Typo_1 = require("../Typo");
|
|
20
20
|
var index_styled_1 = require("./index.styled");
|
|
21
21
|
var Base = function (_a) {
|
|
22
|
-
var id = _a.id, options = _a.options, valueProp = _a.value, onChange = _a.onChange, style = _a.style, errorTabs = _a.errorTabs, _b = _a.tabBarStyle, tabBarStyle = _b === void 0 ? '1' : _b, saveValueAsString = _a.saveValueAsString
|
|
22
|
+
var id = _a.id, options = _a.options, valueProp = _a.value, onChange = _a.onChange, style = _a.style, errorTabs = _a.errorTabs, _b = _a.tabBarStyle, tabBarStyle = _b === void 0 ? '1' : _b, saveValueAsString = _a.saveValueAsString, M = _a.M, S = _a.S, _size = _a.size //use any one of these 3
|
|
23
|
+
;
|
|
24
|
+
var size = _size || (S ? 'S' : 'M'); //defaults to M
|
|
23
25
|
var value = saveValueAsString ? options.find(function (d) { return d.value === valueProp; }) : valueProp;
|
|
24
26
|
var handleClick = function (v) {
|
|
25
27
|
onChange && onChange(id, saveValueAsString ? v.value : v);
|
|
26
28
|
};
|
|
27
|
-
return (react_1.default.createElement(index_styled_1.TabBarStyled, { style: style },
|
|
29
|
+
return (react_1.default.createElement(index_styled_1.TabBarStyled, { size: size, style: style },
|
|
28
30
|
react_1.default.createElement(index_styled_1.TabBarContainerStyled, { id: id },
|
|
29
31
|
react_1.default.createElement(index_styled_1.TabBarRowStyled, { id: id }, options.map(function (op) {
|
|
30
32
|
var tabHasError = errorTabs && errorTabs.some(function (tab) { return tab.value === op.value; });
|
|
31
33
|
var tabIsActive = value && op.value === value.value;
|
|
32
34
|
return (react_1.default.createElement(index_styled_1.TabBarTabWrapper, { tabBarStyle: tabBarStyle, key: op.value, active: tabIsActive, error: tabHasError },
|
|
33
|
-
react_1.default.createElement(index_styled_1.TabBarTabStyled, { active: tabIsActive, error: tabHasError, tabBarStyle: tabBarStyle, onClick: function () { return handleClick(op); } },
|
|
35
|
+
react_1.default.createElement(index_styled_1.TabBarTabStyled, { size: size, active: tabIsActive, error: tabHasError, tabBarStyle: tabBarStyle, onClick: function () { return handleClick(op); } },
|
|
34
36
|
react_1.default.createElement(Typo_1.SANS_2, { semibold: tabBarStyle === "1" }, op.display))));
|
|
35
37
|
})))));
|
|
36
38
|
};
|
|
@@ -73,16 +73,19 @@ var tabBarTabStyle2 = (0, styled_components_1.css)(templateObject_10 || (templat
|
|
|
73
73
|
// border-top: ${({ top }) => top && `0.1rem solid ${greyColor5}`};
|
|
74
74
|
// border-bottom: ${({ bottom }) => bottom && `0.1rem solid ${greyColor5}`};
|
|
75
75
|
// `;
|
|
76
|
-
exports.TabBarStyled = styled_components_1.default.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n background-color: ", ";\n z-index: 1000;\n height:
|
|
76
|
+
exports.TabBarStyled = styled_components_1.default.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n background-color: ", ";\n z-index: 1000;\n height: ", ";\n \n"], ["\n background-color: ", ";\n z-index: 1000;\n height: ", ";\n \n"])), white, function (_a) {
|
|
77
|
+
var size = _a.size;
|
|
78
|
+
return size === 'S' ? '3rem' : '4rem';
|
|
79
|
+
});
|
|
77
80
|
exports.TabBarContainerStyled = styled_components_1.default.div(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n width: fit-content;\n height: 100%;\n"], ["\n width: fit-content;\n height: 100%;\n"])));
|
|
78
81
|
exports.TabBarRowStyled = styled_components_1.default.div(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n display: flex;\n height: 100%;\n"], ["\n display: flex;\n height: 100%;\n"])));
|
|
79
|
-
exports.TabBarTabWrapper = styled_components_1.default.div(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (_a) {
|
|
82
|
+
exports.TabBarTabWrapper = styled_components_1.default.div(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n ", "\n display: flex;\n align-items: center;\n"], ["\n ", "\n display: flex;\n align-items: center;\n"])), function (_a) {
|
|
80
83
|
var tabBarStyle = _a.tabBarStyle;
|
|
81
84
|
return tabBarStyle === "1"
|
|
82
85
|
? tabBarWrapperStyle1
|
|
83
86
|
: tabBarStyle === "2" && tabBarWrapperStyle2;
|
|
84
87
|
});
|
|
85
|
-
exports.TabBarTabStyled = styled_components_1.default.button(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n padding: 0
|
|
88
|
+
exports.TabBarTabStyled = styled_components_1.default.button(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n padding: 0 2rem;\n cursor: pointer;\n color: ", ";\n background-color: ", ";\n\n border: 0;\n :hover {\n background-color: ", ";\n }\n\n ", "\n"], ["\n padding: 0 2rem;\n cursor: pointer;\n color: ", ";\n background-color: ", ";\n\n border: 0;\n :hover {\n background-color: ", ";\n }\n\n ", "\n"])), greyColor100, none, none, function (_a) {
|
|
86
89
|
var tabBarStyle = _a.tabBarStyle;
|
|
87
90
|
return tabBarStyle === "1"
|
|
88
91
|
? tabBarTabStyle1
|
|
@@ -16,7 +16,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.SingleToggleButton = exports.ToggleButton = void 0;
|
|
18
18
|
var react_1 = __importDefault(require("react"));
|
|
19
|
-
var Typo_1 = require("../Typo");
|
|
20
19
|
var BlockLabel_1 = require("../BlockLabel");
|
|
21
20
|
var _EXPORTS_1 = require("../../utils/_EXPORTS");
|
|
22
21
|
var themes_1 = require("../../themes");
|
|
@@ -47,10 +46,10 @@ function ToggleButton(_a) {
|
|
|
47
46
|
return (react_1.default.createElement("div", null,
|
|
48
47
|
react_1.default.createElement(BlockLabel_1.BlockLabel, __assign({}, (0, _EXPORTS_1.getBlockLabelProps)(props))),
|
|
49
48
|
react_1.default.createElement(styled_1.StyledToggleWrraper, null,
|
|
50
|
-
react_1.default.createElement(
|
|
49
|
+
react_1.default.createElement(styled_1.STYLED_LABEL, __assign({}, { lineHeight: 1, color: leftOptionColor, invert: invert }), options[0].display),
|
|
51
50
|
react_1.default.createElement(styled_1.StyledButtonSlider, { invert: invert, disabled: disabled, onClick: handleClick },
|
|
52
51
|
react_1.default.createElement(styled_1.StyledToggleButton, { invert: invert, disabled: disabled, direction: isLeftOptionActive ? "left" : "right" })),
|
|
53
|
-
react_1.default.createElement(
|
|
52
|
+
react_1.default.createElement(styled_1.STYLED_LABEL, __assign({}, { invert: invert, color: rightOptionColor, lineHeight: 1 }), options[1].display))));
|
|
54
53
|
}
|
|
55
54
|
exports.ToggleButton = ToggleButton;
|
|
56
55
|
function SingleToggleButton(_a) {
|
|
@@ -70,6 +69,6 @@ function SingleToggleButton(_a) {
|
|
|
70
69
|
react_1.default.createElement(styled_1.StyledToggleWrraper, null,
|
|
71
70
|
react_1.default.createElement(styled_1.StyledButtonSlider, { inactive: isInactive, disabled: disabled, invert: invert, onClick: handleClick },
|
|
72
71
|
react_1.default.createElement(styled_1.StyledToggleButton, { direction: isInactive ? "left" : "right", inactive: isInactive, disabled: disabled, invert: invert })),
|
|
73
|
-
react_1.default.createElement(
|
|
72
|
+
react_1.default.createElement(styled_1.STYLED_LABEL, __assign({}, { invert: invert, color: labelColor, lineHeight: 1 }), option.display))));
|
|
74
73
|
}
|
|
75
74
|
exports.SingleToggleButton = SingleToggleButton;
|
|
@@ -7,11 +7,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
7
7
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
8
|
};
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.StyledToggleButton = exports.StyledButtonSlider = exports.StyledToggleWrraper = void 0;
|
|
10
|
+
exports.STYLED_LABEL = exports.StyledToggleButton = exports.StyledButtonSlider = exports.StyledToggleWrraper = void 0;
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
12
|
var mixins_1 = require("../../themes/mixins");
|
|
13
13
|
var utilsOolib_1 = require("../../utilsOolib");
|
|
14
14
|
var themes_1 = require("../../themes");
|
|
15
|
+
var Typo_1 = require("../Typo");
|
|
15
16
|
var white = themes_1.colors.white, greyColor10 = themes_1.colors.greyColor10, greyColor80 = themes_1.colors.greyColor80, greyColor70 = themes_1.colors.greyColor70, greyColor100 = themes_1.colors.greyColor100, greyColor40 = themes_1.colors.greyColor40;
|
|
16
17
|
exports.StyledToggleWrraper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n /* justify-content: center; */\n align-items: center;\n gap: 1rem;\n"], ["\n display: flex;\n /* justify-content: center; */\n align-items: center;\n gap: 1rem;\n"])));
|
|
17
18
|
exports.StyledButtonSlider = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n width: 4rem;\n height: 2rem;\n user-select: none;\n position: relative;\n \n border-radius: 1rem;\n cursor: ", ";\n background-color: ", ";\n\n &:hover {\n background-color: ", ";\n }\n\n ", "\n"], ["\n width: 4rem;\n height: 2rem;\n user-select: none;\n position: relative;\n \n border-radius: 1rem;\n cursor: ", ";\n background-color: ", ";\n\n &:hover {\n background-color: ", ";\n }\n\n ", "\n"])), function (_a) {
|
|
@@ -28,7 +29,7 @@ exports.StyledButtonSlider = styled_components_1.default.div(templateObject_2 ||
|
|
|
28
29
|
var colors = _a.theme.colors, inactive = _a.inactive, disabled = _a.disabled;
|
|
29
30
|
return !disabled && (inactive ? greyColor40 : (0, utilsOolib_1.getPrimaryColorText)(colors));
|
|
30
31
|
}, (0, mixins_1.transition)('background-color'));
|
|
31
|
-
exports.StyledToggleButton = styled_components_1.default.button(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n width: 2rem;\n height: 2rem;\n background-color: ", ";\n outline: none;\n ", ";\n border-radius: 50%;\n cursor: ", ";\n border: 2px solid; \n border-color: ", ";\n
|
|
32
|
+
exports.StyledToggleButton = styled_components_1.default.button(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n width: 2rem;\n height: 2rem;\n background-color: ", ";\n outline: none;\n ", ";\n border-radius: 50%;\n cursor: ", ";\n border: 2px solid; \n border-color: ", ";\n position: absolute;\n top: 0;\n left: ", ";\n \n"], ["\n width: 2rem;\n height: 2rem;\n background-color: ", ";\n outline: none;\n ", ";\n border-radius: 50%;\n cursor: ", ";\n border: 2px solid; \n border-color: ", ";\n position: absolute;\n top: 0;\n left: ", ";\n \n"])), function (_a) {
|
|
32
33
|
var invert = _a.invert;
|
|
33
34
|
return invert ? greyColor100 : white;
|
|
34
35
|
}, (0, mixins_1.transition)('border-color', 'left 0.2s'), function (_a) {
|
|
@@ -45,4 +46,11 @@ exports.StyledToggleButton = styled_components_1.default.button(templateObject_3
|
|
|
45
46
|
var direction = _a.direction;
|
|
46
47
|
return direction === 'left' ? '0' : 'calc(100% - 2rem)';
|
|
47
48
|
});
|
|
48
|
-
|
|
49
|
+
exports.STYLED_LABEL = (0, styled_components_1.default)(Typo_1.LABEL)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\ncolor: ", ";\nline-height: ", ";\n", "\n"], ["\ncolor: ", ";\nline-height: ", ";\n", "\n"])), function (_a) {
|
|
50
|
+
var color = _a.color;
|
|
51
|
+
return color;
|
|
52
|
+
}, function (_a) {
|
|
53
|
+
var lineHeight = _a.lineHeight;
|
|
54
|
+
return lineHeight;
|
|
55
|
+
}, (0, mixins_1.transition)('color'));
|
|
56
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
package/dist/icons/index.d.ts
CHANGED
|
@@ -67,14 +67,6 @@ export namespace icons {
|
|
|
67
67
|
export { TextBolder };
|
|
68
68
|
export { TextItalic };
|
|
69
69
|
export { TextUnderline };
|
|
70
|
-
export { OkeGoogleIcon };
|
|
71
|
-
export { LetterH };
|
|
72
|
-
export { IndexIcon };
|
|
73
|
-
export { LanguageIcon };
|
|
74
|
-
export { BadgeAdmin };
|
|
75
|
-
export { BadgeSuperAdmin };
|
|
76
|
-
export { BadgeMod };
|
|
77
|
-
export { BadgeVetted };
|
|
78
70
|
export { ArrowRight };
|
|
79
71
|
export { Sliders };
|
|
80
72
|
export { Faders };
|
|
@@ -83,6 +75,17 @@ export namespace icons {
|
|
|
83
75
|
export { SortAscending };
|
|
84
76
|
export { Crosshair };
|
|
85
77
|
export { MicrophoneStage };
|
|
78
|
+
export { File };
|
|
79
|
+
export { FolderSimple };
|
|
80
|
+
export { FolderSimpleStar };
|
|
81
|
+
export { OkeGoogleIcon };
|
|
82
|
+
export { LetterH };
|
|
83
|
+
export { IndexIcon };
|
|
84
|
+
export { LanguageIcon };
|
|
85
|
+
export { BadgeAdmin };
|
|
86
|
+
export { BadgeSuperAdmin };
|
|
87
|
+
export { BadgeMod };
|
|
88
|
+
export { BadgeVetted };
|
|
86
89
|
export { IndiaFlag };
|
|
87
90
|
export { KenyaFlag };
|
|
88
91
|
}
|
|
@@ -154,14 +157,6 @@ import { TextHThree } from "phosphor-react";
|
|
|
154
157
|
import { TextBolder } from "phosphor-react";
|
|
155
158
|
import { TextItalic } from "phosphor-react";
|
|
156
159
|
import { TextUnderline } from "phosphor-react";
|
|
157
|
-
import { OkeGoogleIcon } from "./custom";
|
|
158
|
-
import { LetterH } from "./custom";
|
|
159
|
-
import { IndexIcon } from "./custom";
|
|
160
|
-
import { LanguageIcon } from "./custom";
|
|
161
|
-
import { BadgeAdmin } from "./custom";
|
|
162
|
-
import { BadgeSuperAdmin } from "./custom";
|
|
163
|
-
import { BadgeMod } from "./custom";
|
|
164
|
-
import { BadgeVetted } from "./custom";
|
|
165
160
|
import { ArrowRight } from "phosphor-react";
|
|
166
161
|
import { Sliders } from "phosphor-react";
|
|
167
162
|
import { Faders } from "phosphor-react";
|
|
@@ -170,5 +165,16 @@ import { SortDescending } from "phosphor-react";
|
|
|
170
165
|
import { SortAscending } from "phosphor-react";
|
|
171
166
|
import { Crosshair } from "phosphor-react";
|
|
172
167
|
import { MicrophoneStage } from "phosphor-react";
|
|
168
|
+
import { File } from "phosphor-react";
|
|
169
|
+
import { FolderSimple } from "phosphor-react";
|
|
170
|
+
import { FolderSimpleStar } from "phosphor-react";
|
|
171
|
+
import { OkeGoogleIcon } from "./custom";
|
|
172
|
+
import { LetterH } from "./custom";
|
|
173
|
+
import { IndexIcon } from "./custom";
|
|
174
|
+
import { LanguageIcon } from "./custom";
|
|
175
|
+
import { BadgeAdmin } from "./custom";
|
|
176
|
+
import { BadgeSuperAdmin } from "./custom";
|
|
177
|
+
import { BadgeMod } from "./custom";
|
|
178
|
+
import { BadgeVetted } from "./custom";
|
|
173
179
|
import { IndiaFlag } from "./custom";
|
|
174
180
|
import { KenyaFlag } from "./custom";
|
package/dist/icons/index.js
CHANGED
|
@@ -72,14 +72,6 @@ exports.icons = {
|
|
|
72
72
|
TextBolder: phosphor_react_1.TextBolder,
|
|
73
73
|
TextItalic: phosphor_react_1.TextItalic,
|
|
74
74
|
TextUnderline: phosphor_react_1.TextUnderline,
|
|
75
|
-
OkeGoogleIcon: custom_1.OkeGoogleIcon,
|
|
76
|
-
LetterH: custom_1.LetterH,
|
|
77
|
-
IndexIcon: custom_1.IndexIcon,
|
|
78
|
-
LanguageIcon: custom_1.LanguageIcon,
|
|
79
|
-
BadgeAdmin: custom_1.BadgeAdmin,
|
|
80
|
-
BadgeSuperAdmin: custom_1.BadgeSuperAdmin,
|
|
81
|
-
BadgeMod: custom_1.BadgeMod,
|
|
82
|
-
BadgeVetted: custom_1.BadgeVetted,
|
|
83
75
|
ArrowRight: phosphor_react_1.ArrowRight,
|
|
84
76
|
Sliders: phosphor_react_1.Sliders,
|
|
85
77
|
Faders: phosphor_react_1.Faders,
|
|
@@ -88,6 +80,17 @@ exports.icons = {
|
|
|
88
80
|
SortAscending: phosphor_react_1.SortAscending,
|
|
89
81
|
Crosshair: phosphor_react_1.Crosshair,
|
|
90
82
|
MicrophoneStage: phosphor_react_1.MicrophoneStage,
|
|
83
|
+
File: phosphor_react_1.File,
|
|
84
|
+
FolderSimple: phosphor_react_1.FolderSimple,
|
|
85
|
+
FolderSimpleStar: phosphor_react_1.FolderSimpleStar,
|
|
86
|
+
OkeGoogleIcon: custom_1.OkeGoogleIcon,
|
|
87
|
+
LetterH: custom_1.LetterH,
|
|
88
|
+
IndexIcon: custom_1.IndexIcon,
|
|
89
|
+
LanguageIcon: custom_1.LanguageIcon,
|
|
90
|
+
BadgeAdmin: custom_1.BadgeAdmin,
|
|
91
|
+
BadgeSuperAdmin: custom_1.BadgeSuperAdmin,
|
|
92
|
+
BadgeMod: custom_1.BadgeMod,
|
|
93
|
+
BadgeVetted: custom_1.BadgeVetted,
|
|
91
94
|
IndiaFlag: custom_1.IndiaFlag,
|
|
92
95
|
KenyaFlag: custom_1.KenyaFlag
|
|
93
96
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,6 @@ export { UserRoleBadge } from "./components/UserRoleBadge";
|
|
|
20
20
|
export { OKELink } from "./components/OKELink";
|
|
21
21
|
export { Tooltip } from "./components/Tooltip";
|
|
22
22
|
export { ActionMenu } from "./components/ActionMenu";
|
|
23
|
-
export {
|
|
23
|
+
export { PercentCompletedPie } from "./components/PercentCompletedPie";
|
|
24
24
|
export { Divider } from "./components/Divider";
|
|
25
25
|
export { CircleLoader, ProgressBar, CircleLoader as Loader } from "./components/LoadersAndProgressBars";
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.Divider = exports.
|
|
17
|
+
exports.Divider = exports.PercentCompletedPie = exports.ActionMenu = exports.Tooltip = exports.OKELink = exports.UserRoleBadge = exports.Section = exports.Loader = exports.ProgressBar = exports.CircleLoader = exports.icons = exports.colors = exports.GlobalStyles = void 0;
|
|
18
18
|
//css and styling related ( styled-components )
|
|
19
19
|
var globalStyles_1 = require("./globalStyles");
|
|
20
20
|
Object.defineProperty(exports, "GlobalStyles", { enumerable: true, get: function () { return globalStyles_1.GlobalStyles; } });
|
|
@@ -52,8 +52,8 @@ var Tooltip_1 = require("./components/Tooltip");
|
|
|
52
52
|
Object.defineProperty(exports, "Tooltip", { enumerable: true, get: function () { return Tooltip_1.Tooltip; } });
|
|
53
53
|
var ActionMenu_1 = require("./components/ActionMenu");
|
|
54
54
|
Object.defineProperty(exports, "ActionMenu", { enumerable: true, get: function () { return ActionMenu_1.ActionMenu; } });
|
|
55
|
-
var
|
|
56
|
-
Object.defineProperty(exports, "
|
|
55
|
+
var PercentCompletedPie_1 = require("./components/PercentCompletedPie");
|
|
56
|
+
Object.defineProperty(exports, "PercentCompletedPie", { enumerable: true, get: function () { return PercentCompletedPie_1.PercentCompletedPie; } });
|
|
57
57
|
var Divider_1 = require("./components/Divider");
|
|
58
58
|
Object.defineProperty(exports, "Divider", { enumerable: true, get: function () { return Divider_1.Divider; } });
|
|
59
59
|
//utility functions
|
package/package.json
CHANGED