oolib 2.12.3 → 2.12.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.
@@ -64,9 +64,9 @@ var tabBarTabStyle2 = (0, styled_components_1.css)(templateObject_9 || (template
64
64
  // border-top: ${({ top }) => top && `0.1rem solid ${greyColor5}`};
65
65
  // border-bottom: ${({ bottom }) => bottom && `0.1rem solid ${greyColor5}`};
66
66
  // `;
67
- exports.TabBarStyled = styled_components_1.default.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n background-color: ", ";\n z-index: 1000;\n"], ["\n background-color: ", ";\n z-index: 1000;\n"])), white);
68
- exports.TabBarContainerStyled = styled_components_1.default.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n width: fit-content;\n"], ["\n width: fit-content;\n"])));
69
- exports.TabBarRowStyled = styled_components_1.default.div(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
67
+ exports.TabBarStyled = styled_components_1.default.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n background-color: ", ";\n z-index: 1000;\n height: 4rem;\n"], ["\n background-color: ", ";\n z-index: 1000;\n height: 4rem;\n"])), white);
68
+ exports.TabBarContainerStyled = styled_components_1.default.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n width: fit-content;\n height: 100%;\n"], ["\n width: fit-content;\n height: 100%;\n"])));
69
+ exports.TabBarRowStyled = styled_components_1.default.div(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n display: flex;\n height: 100%;\n"], ["\n display: flex;\n height: 100%;\n"])));
70
70
  exports.TabBarTabWrapper = styled_components_1.default.div(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (_a) {
71
71
  var tabBarStyle = _a.tabBarStyle;
72
72
  return (tabBarStyle === '1'
@@ -1,8 +1,5 @@
1
- export function UserRoleBadge({ role, value, className, theme: { Roles } }: {
1
+ export function UserRoleBadge({ role, value, className }: {
2
2
  role: any;
3
3
  value: any;
4
4
  className: any;
5
- theme: {
6
- Roles: any;
7
- };
8
5
  }): JSX.Element;
@@ -6,17 +6,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.UserRoleBadge = void 0;
7
7
  var react_1 = __importDefault(require("react"));
8
8
  var icons_1 = require("../../icons");
9
+ var styled_components_1 = require("styled-components");
9
10
  var BadgeAdmin = icons_1.icons.BadgeAdmin, BadgeSuperAdmin = icons_1.icons.BadgeSuperAdmin, BadgeMod = icons_1.icons.BadgeMod, BadgeVetted = icons_1.icons.BadgeVetted;
10
11
  var UserRoleBadge = function (_a) {
11
12
  var _b;
12
- var role = _a.role, value = _a.value, className = _a.className, Roles = _a.theme.Roles;
13
+ var role = _a.role, value = _a.value, className = _a.className;
13
14
  var badges = {
14
15
  BadgeSuperAdmin: BadgeSuperAdmin,
15
16
  BadgeAdmin: BadgeAdmin,
16
17
  BadgeMod: BadgeMod,
17
18
  BadgeVetted: BadgeVetted
18
19
  };
19
- var iconName = (_b = Roles[value || role]) === null || _b === void 0 ? void 0 : _b.badgeIcon;
20
+ var theme = (0, styled_components_1.useTheme)();
21
+ var iconName = (_b = theme._Roles[value || role]) === null || _b === void 0 ? void 0 : _b.badgeIcon;
20
22
  var Icon = iconName && badges[iconName];
21
23
  return (Icon ?
22
24
  react_1.default.createElement("div", { className: className },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "2.12.3",
3
+ "version": "2.12.4",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",