infinity-forge 6.7.8 → 6.7.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.
Files changed (18) hide show
  1. package/dist/system/components/layout/header/components/menu-right/component.d.ts +2 -6
  2. package/dist/system/components/layout/header/components/menu-right/component.js +12 -1
  3. package/dist/system/components/layout/header/components/menu-right/component.js.map +1 -1
  4. package/dist/system/components/layout/header/components/menu-right/profile/content/index.d.ts +2 -1
  5. package/dist/system/components/layout/header/components/menu-right/profile/content/index.js +4 -3
  6. package/dist/system/components/layout/header/components/menu-right/profile/content/index.js.map +1 -1
  7. package/dist/system/components/layout/header/components/menu-right/profile/content/styles.js +1 -1
  8. package/dist/system/components/layout/header/components/menu-right/profile/content/styles.js.map +1 -1
  9. package/dist/system/components/layout/header/components/menu-right/profile/index.d.ts +2 -3
  10. package/dist/system/components/layout/header/components/menu-right/profile/index.js +13 -3
  11. package/dist/system/components/layout/header/components/menu-right/profile/index.js.map +1 -1
  12. package/dist/system/components/layout/header/version-01/index.d.ts +1 -1
  13. package/dist/system/components/layout/header/version-01/index.js +14 -4
  14. package/dist/system/components/layout/header/version-01/index.js.map +1 -1
  15. package/dist/system/components/layout/interfaces.d.ts +6 -0
  16. package/dist/system/hooks/notifications/use-load-all/index.js +2 -1
  17. package/dist/system/hooks/notifications/use-load-all/index.js.map +1 -1
  18. package/package.json +1 -1
@@ -1,6 +1,2 @@
1
- import { WorkSpace } from '../../../../../../system/index.js';
2
- interface IMenuRight {
3
- workspaces: WorkSpace;
4
- }
5
- export declare function MenuRight(props: IMenuRight): import("react/jsx-runtime").JSX.Element;
6
- export {};
1
+ import { ILayout } from '../../../interfaces.js';
2
+ export declare function MenuRight(props: ILayout): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,15 @@
1
1
  "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
2
13
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
14
  if (k2 === undefined) k2 = k;
4
15
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -39,6 +50,6 @@ var ui_1 = require("../../../../../../ui/index.js");
39
50
  var system_1 = require("../../../../../../system/index.js");
40
51
  var S = __importStar(require("./styles.js"));
41
52
  function MenuRight(props) {
42
- return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'MenuRight', children: (0, jsx_runtime_1.jsxs)(S.MenuRight, { children: [props.workspaces && (0, jsx_runtime_1.jsx)(system_1.SelectWorkSpace, { workspaces: props.workspaces }), (0, jsx_runtime_1.jsx)(system_1.Notifications, {}), (0, jsx_runtime_1.jsx)(system_1.Profile, {})] }) }));
53
+ return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'MenuRight', children: (0, jsx_runtime_1.jsxs)(S.MenuRight, { children: [props.workspaces && (0, jsx_runtime_1.jsx)(system_1.SelectWorkSpace, { workspaces: props.workspaces }), (0, jsx_runtime_1.jsx)(system_1.Notifications, {}), (0, jsx_runtime_1.jsx)(system_1.Profile, __assign({}, props))] }) }));
43
54
  }
44
55
  //# sourceMappingURL=component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../../../../src/system/components/layout/header/components/menu-right/component.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,8BAYC;;AArBD,2BAA4B;AAC5B,mCAA6E;AAE7E,0CAA6B;AAM7B,SAAgB,SAAS,CAAC,KAAiB;IACzC,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,WAAW,YACrB,wBAAC,CAAC,CAAC,SAAS,eACT,KAAK,CAAC,UAAU,IAAI,uBAAC,wBAAe,IAAC,UAAU,EAAE,KAAK,CAAC,UAAU,GAAI,EAEtE,uBAAC,sBAAa,KAAG,EAEjB,uBAAC,gBAAO,KAAG,IACC,GACR,CACT,CAAA;AACH,CAAC"}
1
+ {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../../../../src/system/components/layout/header/components/menu-right/component.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,8BAYC;;AAnBD,2BAA4B;AAC5B,mCAAkE;AAIlE,0CAA6B;AAE7B,SAAgB,SAAS,CAAC,KAAc;IACtC,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,WAAW,YACrB,wBAAC,CAAC,CAAC,SAAS,eACT,KAAK,CAAC,UAAU,IAAI,uBAAC,wBAAe,IAAC,UAAU,EAAE,KAAK,CAAC,UAAU,GAAI,EAEtE,uBAAC,sBAAa,KAAG,EAEjB,uBAAC,gBAAO,eAAK,KAAK,EAAI,IACV,GACR,CACT,CAAA;AACH,CAAC"}
@@ -1 +1,2 @@
1
- export declare function Content(): import("react/jsx-runtime").JSX.Element;
1
+ import { ILayout } from '../../../../../../../../system/components/layout/interfaces.js';
2
+ export declare function Content(props: ILayout): import("react/jsx-runtime").JSX.Element;
@@ -38,8 +38,9 @@ var jsx_runtime_1 = require("react/jsx-runtime");
38
38
  var ui_1 = require("../../../../../../../../ui/index.js");
39
39
  var system_1 = require("../../../../../../../../system/index.js");
40
40
  var S = __importStar(require("./styles.js"));
41
- function Content() {
42
- var _a = (0, system_1.useAuthAdmin)(), user = _a.user, signOut = _a.signOut;
43
- return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'Content', children: (0, jsx_runtime_1.jsxs)(S.Content, { children: [(0, jsx_runtime_1.jsx)("div", { className: 'user-profile', children: (0, jsx_runtime_1.jsxs)("div", { className: 'user-info', children: [(0, jsx_runtime_1.jsx)("h6", { className: 'font-16-semibold', children: user === null || user === void 0 ? void 0 : user.firstName }), (0, jsx_runtime_1.jsx)("p", { className: 'font-14-regular email', children: user === null || user === void 0 ? void 0 : user.emailAddress })] }) }), (0, jsx_runtime_1.jsx)("div", { className: 'divider', children: (0, jsx_runtime_1.jsx)("button", { className: 'sign-out-button font-14-regular', type: 'button', onClick: function () { return signOut(); }, children: "Sair" }) })] }) }));
41
+ function Content(props) {
42
+ var _a, _b;
43
+ var _c = (0, system_1.useAuthAdmin)(), user = _c.user, signOut = _c.signOut;
44
+ return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'Content', children: (0, jsx_runtime_1.jsxs)(S.Content, { children: [(0, jsx_runtime_1.jsx)("div", { className: 'user-profile', children: (0, jsx_runtime_1.jsxs)("div", { className: 'user-info', children: [(0, jsx_runtime_1.jsx)("h6", { className: 'font-16-semibold', children: user === null || user === void 0 ? void 0 : user.firstName }), (0, jsx_runtime_1.jsx)("p", { className: 'font-14-regular email', children: user === null || user === void 0 ? void 0 : user.emailAddress })] }) }), (0, jsx_runtime_1.jsxs)("div", { className: 'divider', children: [(_b = (_a = props === null || props === void 0 ? void 0 : props.profile) === null || _a === void 0 ? void 0 : _a.menus) === null || _b === void 0 ? void 0 : _b.map(function (item) { return ((0, jsx_runtime_1.jsx)("button", { className: ' font-14-regular', type: 'button', onClick: function () { return item.onClick(); }, children: item.title }, item.title)); }), (0, jsx_runtime_1.jsx)("button", { className: 'sign-out-button font-14-regular', type: 'button', onClick: function () { return signOut(); }, children: "Sair" })] })] }) }));
44
45
  }
45
46
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../src/system/components/layout/header/components/menu-right/profile/content/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,0BA0BC;;AA/BD,2BAA4B;AAC5B,mCAAuC;AAEvC,0CAA6B;AAE7B,SAAgB,OAAO;IACf,IAAA,KAAoB,IAAA,qBAAY,GAAE,EAAhC,IAAI,UAAA,EAAE,OAAO,aAAmB,CAAA;IAExC,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,SAAS,YACnB,wBAAC,CAAC,CAAC,OAAO,eACR,gCAAK,SAAS,EAAC,cAAc,YAC3B,iCAAK,SAAS,EAAC,WAAW,aACxB,+BAAI,SAAS,EAAC,kBAAkB,YAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,SAAS,GAAM,EAEvD,8BAAG,SAAS,EAAC,uBAAuB,YAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,YAAY,GAAK,IACzD,GACF,EAEN,gCAAK,SAAS,EAAC,SAAS,YACtB,mCACE,SAAS,EAAC,iCAAiC,EAC3C,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,cAAM,OAAA,OAAO,EAAE,EAAT,CAAS,qBAGjB,GACL,IACI,GACN,CACT,CAAA;AACH,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../src/system/components/layout/header/components/menu-right/profile/content/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,0BAiCC;;AAxCD,2BAA4B;AAC5B,mCAAuC;AAIvC,0CAA6B;AAE7B,SAAgB,OAAO,CAAC,KAAc;;IAC9B,IAAA,KAAoB,IAAA,qBAAY,GAAE,EAAhC,IAAI,UAAA,EAAE,OAAO,aAAmB,CAAA;IAExC,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,SAAS,YACnB,wBAAC,CAAC,CAAC,OAAO,eACR,gCAAK,SAAS,EAAC,cAAc,YAC3B,iCAAK,SAAS,EAAC,WAAW,aACxB,+BAAI,SAAS,EAAC,kBAAkB,YAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,SAAS,GAAM,EAEvD,8BAAG,SAAS,EAAC,uBAAuB,YAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,YAAY,GAAK,IACzD,GACF,EAEN,iCAAK,SAAS,EAAC,SAAS,aACrB,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,OAAO,0CAAE,KAAK,0CAAE,GAAG,CAAC,UAAC,IAAI,IAAK,OAAA,CACpC,mCAEE,SAAS,EAAC,kBAAkB,EAC5B,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,cAAM,OAAA,IAAI,CAAC,OAAO,EAAE,EAAd,CAAc,YAE5B,IAAI,CAAC,KAAK,IALN,IAAI,CAAC,KAAK,CAMR,CACV,EATqC,CASrC,CAAC,EAEF,mCAAQ,SAAS,EAAC,iCAAiC,EAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,cAAM,OAAA,OAAO,EAAE,EAAT,CAAS,qBAEjF,IACL,IACI,GACN,CACT,CAAA;AACH,CAAC"}
@@ -9,6 +9,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.Content = void 0;
11
11
  var styled_components_1 = __importDefault(require("styled-components"));
12
- exports.Content = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n min-width: 22rem;\n text-align: left;\n direction: ltr;\n\n .rtl & {\n direction: rtl;\n text-align: right;\n }\n\n .user-profile {\n display: flex;\n align-items: center;\n border-bottom: 1px solid #d1d5db;\n padding: 1.5rem 1.5rem 1.25rem;\n gap: 1rem;\n }\n\n .user-info {\n h6 {\n font-weight: 600;\n margin: 0 0 2px 0;\n color: #000;\n }\n\n p {\n color: #4b5563;\n }\n\n .email {\n max-width: 260px;\n overflow-x: hidden;\n text-overflow: ellipsis;\n }\n }\n\n .menu {\n display: grid;\n padding: 0.875rem;\n font-weight: 500;\n color: #374151;\n\n a {\n color: #333333;\n }\n }\n\n .menu-item {\n margin: 0.125rem 0;\n display: flex;\n align-items: center;\n border-radius: 0.375rem;\n padding: 1rem;\n text-decoration: none;\n color: inherit;\n\n &:hover,\n &:focus {\n background-color: #f3f4f6;\n }\n }\n\n .sign-out-button {\n width: 100%;\n justify-content: start;\n padding: 0;\n font-weight: 500;\n color: #374151;\n background: none;\n border: none;\n text-align: left;\n\n &:hover,\n &:focus-within {\n color: #1f2937;\n }\n }\n\n .divider {\n border-top: 1px solid #d1d5db;\n transition: background 0.1s ease-in-out;\n\n &:hover,\n &:focus {\n background: #e72e3f;\n\n button {\n color: #fff;\n }\n }\n\n button {\n cursor: pointer;\n padding: 1.25rem 1.5rem;\n }\n }\n"], ["\n width: 100%;\n min-width: 22rem;\n text-align: left;\n direction: ltr;\n\n .rtl & {\n direction: rtl;\n text-align: right;\n }\n\n .user-profile {\n display: flex;\n align-items: center;\n border-bottom: 1px solid #d1d5db;\n padding: 1.5rem 1.5rem 1.25rem;\n gap: 1rem;\n }\n\n .user-info {\n h6 {\n font-weight: 600;\n margin: 0 0 2px 0;\n color: #000;\n }\n\n p {\n color: #4b5563;\n }\n\n .email {\n max-width: 260px;\n overflow-x: hidden;\n text-overflow: ellipsis;\n }\n }\n\n .menu {\n display: grid;\n padding: 0.875rem;\n font-weight: 500;\n color: #374151;\n\n a {\n color: #333333;\n }\n }\n\n .menu-item {\n margin: 0.125rem 0;\n display: flex;\n align-items: center;\n border-radius: 0.375rem;\n padding: 1rem;\n text-decoration: none;\n color: inherit;\n\n &:hover,\n &:focus {\n background-color: #f3f4f6;\n }\n }\n\n .sign-out-button {\n width: 100%;\n justify-content: start;\n padding: 0;\n font-weight: 500;\n color: #374151;\n background: none;\n border: none;\n text-align: left;\n\n &:hover,\n &:focus-within {\n color: #1f2937;\n }\n }\n\n .divider {\n border-top: 1px solid #d1d5db;\n transition: background 0.1s ease-in-out;\n\n &:hover,\n &:focus {\n background: #e72e3f;\n\n button {\n color: #fff;\n }\n }\n\n button {\n cursor: pointer;\n padding: 1.25rem 1.5rem;\n }\n }\n"])));
12
+ exports.Content = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n min-width: 22rem;\n text-align: left;\n direction: ltr;\n\n .rtl & {\n direction: rtl;\n text-align: right;\n }\n\n .user-profile {\n display: flex;\n align-items: center;\n border-bottom: 1px solid #d1d5db;\n padding: 1.5rem 1.5rem 1.25rem;\n gap: 1rem;\n }\n\n .user-info {\n h6 {\n font-weight: 600;\n margin: 0 0 2px 0;\n color: #000;\n }\n\n p {\n color: #4b5563;\n }\n\n .email {\n max-width: 260px;\n overflow-x: hidden;\n text-overflow: ellipsis;\n }\n }\n\n .menu {\n display: grid;\n padding: 0.875rem;\n font-weight: 500;\n color: #374151;\n\n a {\n color: #333333;\n }\n }\n\n .menu-item {\n margin: 0.125rem 0;\n display: flex;\n align-items: center;\n border-radius: 0.375rem;\n padding: 1rem;\n text-decoration: none;\n color: inherit;\n\n &:hover,\n &:focus {\n background-color: #f3f4f6;\n }\n }\n\n .divider {\n border-top: 1px solid #d1d5db;\n transition: background 0.1s ease-in-out;\n\n .sign-out-button {\n &:hover,\n &:focus {\n background: #e72e3f;\n color: #fff;\n }\n }\n\n button {\n width: 100%;\n justify-content: start;\n padding: 0;\n font-weight: 500;\n color: #374151;\n background: none;\n border: none;\n text-align: left;\n\n &:hover,\n &:focus-within {\n background-color: #f9f9f9;\n }\n }\n\n button {\n cursor: pointer;\n padding: 1.25rem 1.5rem;\n }\n }\n"], ["\n width: 100%;\n min-width: 22rem;\n text-align: left;\n direction: ltr;\n\n .rtl & {\n direction: rtl;\n text-align: right;\n }\n\n .user-profile {\n display: flex;\n align-items: center;\n border-bottom: 1px solid #d1d5db;\n padding: 1.5rem 1.5rem 1.25rem;\n gap: 1rem;\n }\n\n .user-info {\n h6 {\n font-weight: 600;\n margin: 0 0 2px 0;\n color: #000;\n }\n\n p {\n color: #4b5563;\n }\n\n .email {\n max-width: 260px;\n overflow-x: hidden;\n text-overflow: ellipsis;\n }\n }\n\n .menu {\n display: grid;\n padding: 0.875rem;\n font-weight: 500;\n color: #374151;\n\n a {\n color: #333333;\n }\n }\n\n .menu-item {\n margin: 0.125rem 0;\n display: flex;\n align-items: center;\n border-radius: 0.375rem;\n padding: 1rem;\n text-decoration: none;\n color: inherit;\n\n &:hover,\n &:focus {\n background-color: #f3f4f6;\n }\n }\n\n .divider {\n border-top: 1px solid #d1d5db;\n transition: background 0.1s ease-in-out;\n\n .sign-out-button {\n &:hover,\n &:focus {\n background: #e72e3f;\n color: #fff;\n }\n }\n\n button {\n width: 100%;\n justify-content: start;\n padding: 0;\n font-weight: 500;\n color: #374151;\n background: none;\n border: none;\n text-align: left;\n\n &:hover,\n &:focus-within {\n background-color: #f9f9f9;\n }\n }\n\n button {\n cursor: pointer;\n padding: 1.25rem 1.5rem;\n }\n }\n"])));
13
13
  var templateObject_1;
14
14
  //# sourceMappingURL=styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../../../src/system/components/layout/header/components/menu-right/profile/content/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,OAAO,GAAG,2BAAM,CAAC,GAAG,8kDAAA,2gDAiGhC,KAAA"}
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../../../src/system/components/layout/header/components/menu-right/profile/content/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,OAAO,GAAG,2BAAM,CAAC,GAAG,ynDAAA,sjDAgGhC,KAAA"}
@@ -1,3 +1,2 @@
1
- export declare function Profile({ buttontext }: {
2
- buttontext?: string;
3
- }): import("react/jsx-runtime").JSX.Element;
1
+ import { ILayout } from '../../../../../../../system/components/layout/interfaces.js';
2
+ export declare function Profile(props: ILayout): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,15 @@
1
1
  "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
2
13
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
14
  if (k2 === undefined) k2 = k;
4
15
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -39,10 +50,9 @@ var ui_1 = require("../../../../../../../ui/index.js");
39
50
  var system_1 = require("../../../../../../../system/index.js");
40
51
  var content_1 = require("./content/index.js");
41
52
  var S = __importStar(require("./styles.js"));
42
- function Profile(_a) {
43
- var buttontext = _a.buttontext;
53
+ function Profile(props) {
44
54
  var user = (0, system_1.useAuthAdmin)().user;
45
55
  var avatarImage = (user === null || user === void 0 ? void 0 : user.avatar) || '/images/default-profile.png';
46
- return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'Profile', children: (0, jsx_runtime_1.jsx)(S.Profile, { id: 'profile-btn', children: (0, jsx_runtime_1.jsx)(ui_1.Tooltip, { idTooltip: 'Profile', bgColor: '#fff', trigger: (0, jsx_runtime_1.jsx)(system_1.Avatar, { image: avatarImage, buttonText: buttontext }), enableArrow: true, content: (0, jsx_runtime_1.jsx)(content_1.Content, {}) }) }) }));
56
+ return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'Profile', children: (0, jsx_runtime_1.jsx)(S.Profile, { id: 'profile-btn', children: (0, jsx_runtime_1.jsx)(ui_1.Tooltip, { idTooltip: 'Profile', bgColor: '#fff', trigger: (0, jsx_runtime_1.jsx)(system_1.Avatar, { image: avatarImage, buttonText: "" }), enableArrow: true, content: (0, jsx_runtime_1.jsx)(content_1.Content, __assign({}, props)) }) }) }));
47
57
  }
48
58
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/system/components/layout/header/components/menu-right/profile/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,0BAkBC;;AAzBD,2BAAqC;AACrC,mCAA+C;AAE/C,qCAAmC;AAEnC,0CAA6B;AAE7B,SAAgB,OAAO,CAAC,EAAuC;QAArC,UAAU,gBAAA;IAC1B,IAAA,IAAI,GAAK,IAAA,qBAAY,GAAE,KAAnB,CAAmB;IAE/B,IAAM,WAAW,GAAG,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,KAAI,6BAA6B,CAAA;IAEjE,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,SAAS,YACnB,uBAAC,CAAC,CAAC,OAAO,IAAC,EAAE,EAAC,aAAa,YACzB,uBAAC,YAAO,IACN,SAAS,EAAC,SAAS,EACnB,OAAO,EAAC,MAAM,EACd,OAAO,EAAE,uBAAC,eAAM,IAAC,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,GAAI,EAC/D,WAAW,QACX,OAAO,EAAE,uBAAC,iBAAO,KAAG,GACpB,GACQ,GACN,CACT,CAAA;AACH,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/system/components/layout/header/components/menu-right/profile/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,0BAkBC;;AA3BD,2BAAqC;AACrC,mCAA+C;AAE/C,qCAAmC;AAInC,0CAA6B;AAE7B,SAAgB,OAAO,CAAC,KAAc;IAC5B,IAAA,IAAI,GAAK,IAAA,qBAAY,GAAE,KAAnB,CAAmB;IAE/B,IAAM,WAAW,GAAG,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,KAAI,6BAA6B,CAAA;IAEjE,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,SAAS,YACnB,uBAAC,CAAC,CAAC,OAAO,IAAC,EAAE,EAAC,aAAa,YACzB,uBAAC,YAAO,IACN,SAAS,EAAC,SAAS,EACnB,OAAO,EAAC,MAAM,EACd,OAAO,EAAE,uBAAC,eAAM,IAAC,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,EAAE,GAAI,EACvD,WAAW,QACX,OAAO,EAAE,uBAAC,iBAAO,eAAK,KAAK,EAAI,GAC/B,GACQ,GACN,CACT,CAAA;AACH,CAAC"}
@@ -1,2 +1,2 @@
1
1
  import { ILayout } from '../../interfaces.js';
2
- export declare function HeaderVersion01({ workspaces, logo }: ILayout): import("react/jsx-runtime").JSX.Element;
2
+ export declare function HeaderVersion01(props: ILayout): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,15 @@
1
1
  "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
2
13
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
14
  if (k2 === undefined) k2 = k;
4
15
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -39,12 +50,11 @@ var ui_1 = require("../../../../../ui/index.js");
39
50
  var system_1 = require("../../../../../system/index.js");
40
51
  var components_1 = require("../components/index.js");
41
52
  var S = __importStar(require("./styles.js"));
42
- function HeaderVersion01(_a) {
43
- var workspaces = _a.workspaces, logo = _a.logo;
44
- var _b = (0, system_1.useMenu)(), settings = _b.settings, setOpenMenu = _b.setOpenMenu;
53
+ function HeaderVersion01(props) {
54
+ var _a = (0, system_1.useMenu)(), settings = _a.settings, setOpenMenu = _a.setOpenMenu;
45
55
  var window = (0, ui_1.useWindow)();
46
56
  var isMobile = (window === null || window === void 0 ? void 0 : window.innerWidth) <= 1024;
47
57
  var showHamburger = isMobile && settings.mode === 'OpenedMenu';
48
- return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'HeaderCarbon', children: (0, jsx_runtime_1.jsx)(S.HeaderVersion01, { id: 'header', children: (0, jsx_runtime_1.jsxs)(ui_1.Container, { children: [(0, jsx_runtime_1.jsx)("div", { className: 'left', children: (0, jsx_runtime_1.jsx)("div", { className: 'logo-wrapper', children: (0, jsx_runtime_1.jsx)(components_1.Logo, { logo: logo }) }) }), (0, jsx_runtime_1.jsxs)("div", { className: 'right', children: [showHamburger && ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'open_menu_button', children: (0, jsx_runtime_1.jsx)("button", { className: 'open_menu', onClick: function () { return setOpenMenu(true); }, type: 'button', children: (0, jsx_runtime_1.jsx)("svg", { xmlns: 'http://www.w3.org/2000/svg', fill: 'none', viewBox: '0 0 24 24', "stroke-width": '2', stroke: 'currentColor', children: (0, jsx_runtime_1.jsx)("path", { strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M3.75 6.75h16.5M3.75 12H12m-8.25 5.25h16.5' }) }) }) })), (0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'search_modal', children: (0, jsx_runtime_1.jsx)(system_1.SearchModal, {}) }), (0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'menu-right', children: (0, jsx_runtime_1.jsx)(system_1.MenuRight, { workspaces: workspaces }) })] })] }) }) }));
58
+ return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'HeaderCarbon', children: (0, jsx_runtime_1.jsx)(S.HeaderVersion01, { id: 'header', children: (0, jsx_runtime_1.jsxs)(ui_1.Container, { children: [(0, jsx_runtime_1.jsx)("div", { className: 'left', children: (0, jsx_runtime_1.jsx)("div", { className: 'logo-wrapper', children: (0, jsx_runtime_1.jsx)(components_1.Logo, { logo: props.logo }) }) }), (0, jsx_runtime_1.jsxs)("div", { className: 'right', children: [showHamburger && ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'open_menu_button', children: (0, jsx_runtime_1.jsx)("button", { className: 'open_menu', onClick: function () { return setOpenMenu(true); }, type: 'button', children: (0, jsx_runtime_1.jsx)("svg", { xmlns: 'http://www.w3.org/2000/svg', fill: 'none', viewBox: '0 0 24 24', "stroke-width": '2', stroke: 'currentColor', children: (0, jsx_runtime_1.jsx)("path", { strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M3.75 6.75h16.5M3.75 12H12m-8.25 5.25h16.5' }) }) }) })), (0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'search_modal', children: (0, jsx_runtime_1.jsx)(system_1.SearchModal, {}) }), (0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'menu-right', children: (0, jsx_runtime_1.jsx)(system_1.MenuRight, __assign({}, props)) })] })] }) }) }));
49
59
  }
50
60
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/system/components/layout/header/version-01/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,0CAmDC;;AA5DD,2BAAkD;AAClD,mCAA0D;AAE1D,4CAAoC;AAIpC,0CAA6B;AAE7B,SAAgB,eAAe,CAAC,EAA6B;QAA3B,UAAU,gBAAA,EAAE,IAAI,UAAA;IAC1C,IAAA,KAA4B,IAAA,gBAAO,GAAE,EAAnC,QAAQ,cAAA,EAAE,WAAW,iBAAc,CAAA;IAE3C,IAAM,MAAM,GAAG,IAAA,cAAS,GAAE,CAAA;IAC1B,IAAM,QAAQ,GAAG,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,UAAU,KAAI,IAAI,CAAA;IAE3C,IAAM,aAAa,GAAG,QAAQ,IAAI,QAAQ,CAAC,IAAI,KAAK,YAAY,CAAA;IAEhE,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,cAAc,YACxB,uBAAC,CAAC,CAAC,eAAe,IAAC,EAAE,EAAC,QAAQ,YAC5B,wBAAC,cAAS,eACR,gCAAK,SAAS,EAAC,MAAM,YACnB,gCAAK,SAAS,EAAC,cAAc,YAC3B,uBAAC,iBAAI,IAAC,IAAI,EAAE,IAAI,GAAI,GAChB,GACF,EAEN,iCAAK,SAAS,EAAC,OAAO,aACnB,aAAa,IAAI,CAChB,uBAAC,UAAK,IAAC,IAAI,EAAC,kBAAkB,YAC5B,mCAAQ,SAAS,EAAC,WAAW,EAAC,OAAO,EAAE,cAAM,OAAA,WAAW,CAAC,IAAI,CAAC,EAAjB,CAAiB,EAAE,IAAI,EAAC,QAAQ,YAC3E,gCACE,KAAK,EAAC,4BAA4B,EAClC,IAAI,EAAC,MAAM,EACX,OAAO,EAAC,WAAW,kBACN,GAAG,EAChB,MAAM,EAAC,cAAc,YAErB,iCACE,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,CAAC,EAAC,4CAA4C,GACxC,GACJ,GACC,GACH,CACT,EAED,uBAAC,UAAK,IAAC,IAAI,EAAC,cAAc,YACxB,uBAAC,oBAAW,KAAG,GACT,EAER,uBAAC,UAAK,IAAC,IAAI,EAAC,YAAY,YACtB,uBAAC,kBAAS,IAAC,UAAU,EAAE,UAAU,GAAI,GAC/B,IACJ,IACI,GACM,GACd,CACT,CAAA;AACH,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/system/components/layout/header/version-01/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,0CAmDC;;AA5DD,2BAAkD;AAClD,mCAA0D;AAE1D,4CAAoC;AAIpC,0CAA6B;AAE7B,SAAgB,eAAe,CAAC,KAAc;IACtC,IAAA,KAA4B,IAAA,gBAAO,GAAE,EAAnC,QAAQ,cAAA,EAAE,WAAW,iBAAc,CAAA;IAE3C,IAAM,MAAM,GAAG,IAAA,cAAS,GAAE,CAAA;IAC1B,IAAM,QAAQ,GAAG,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,UAAU,KAAI,IAAI,CAAA;IAE3C,IAAM,aAAa,GAAG,QAAQ,IAAI,QAAQ,CAAC,IAAI,KAAK,YAAY,CAAA;IAEhE,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,cAAc,YACxB,uBAAC,CAAC,CAAC,eAAe,IAAC,EAAE,EAAC,QAAQ,YAC5B,wBAAC,cAAS,eACR,gCAAK,SAAS,EAAC,MAAM,YACnB,gCAAK,SAAS,EAAC,cAAc,YAC3B,uBAAC,iBAAI,IAAC,IAAI,EAAE,KAAK,CAAC,IAAI,GAAI,GACtB,GACF,EAEN,iCAAK,SAAS,EAAC,OAAO,aACnB,aAAa,IAAI,CAChB,uBAAC,UAAK,IAAC,IAAI,EAAC,kBAAkB,YAC5B,mCAAQ,SAAS,EAAC,WAAW,EAAC,OAAO,EAAE,cAAM,OAAA,WAAW,CAAC,IAAI,CAAC,EAAjB,CAAiB,EAAE,IAAI,EAAC,QAAQ,YAC3E,gCACE,KAAK,EAAC,4BAA4B,EAClC,IAAI,EAAC,MAAM,EACX,OAAO,EAAC,WAAW,kBACN,GAAG,EAChB,MAAM,EAAC,cAAc,YAErB,iCACE,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,CAAC,EAAC,4CAA4C,GACxC,GACJ,GACC,GACH,CACT,EAED,uBAAC,UAAK,IAAC,IAAI,EAAC,cAAc,YACxB,uBAAC,oBAAW,KAAG,GACT,EAER,uBAAC,UAAK,IAAC,IAAI,EAAC,YAAY,YACtB,uBAAC,kBAAS,eAAK,KAAK,EAAI,GAClB,IACJ,IACI,GACM,GACd,CACT,CAAA;AACH,CAAC"}
@@ -6,4 +6,10 @@ export interface ILayout {
6
6
  src?: string;
7
7
  href?: string;
8
8
  };
9
+ profile?: {
10
+ menus?: {
11
+ title: string;
12
+ onClick: () => void;
13
+ }[];
14
+ };
9
15
  }
@@ -40,8 +40,9 @@ exports.useLoadAllNotifications = useLoadAllNotifications;
40
40
  var ui_1 = require("../../../../ui/index.js");
41
41
  var system_1 = require("../../../../system/index.js");
42
42
  function useLoadAllNotifications() {
43
+ var _a;
43
44
  var Configurations = (0, system_1.useInfraInjection)().Configurations;
44
- var isEnable = Configurations.notification.enable;
45
+ var isEnable = (_a = Configurations === null || Configurations === void 0 ? void 0 : Configurations.notification) === null || _a === void 0 ? void 0 : _a.enable;
45
46
  function fetcher() {
46
47
  return __awaiter(this, void 0, void 0, function () {
47
48
  var response, err_1;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/system/hooks/notifications/use-load-all/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,0DA4BC;AA/BD,2BAAoC;AACpC,mCAA2D;AAE3D,SAAgB,uBAAuB;IAC7B,IAAA,cAAc,GAAK,IAAA,0BAAiB,GAAE,eAAxB,CAAwB;IAE9C,IAAM,QAAQ,GAAG,cAAc,CAAC,YAAY,CAAC,MAAM,CAAA;IAEnD,SAAe,OAAO;;;;;;;wBAED,qBAAM,IAAA,QAAG,EAAC;gCACzB,GAAG,EAAE,eAAe;gCACpB,MAAM,EAAE,KAAK;gCACb,IAAI,EAAE,EAAE,QAAQ,EAAE,mBAAmB,EAAE;6BACxC,CAAC,EAAA;;wBAJI,QAAQ,GAAG,SAMhB;wBAED,sBAAO,QAAQ,CAAC,IAAI,EAAA;;;wBAEpB,sBAAO,EAAE,EAAA;;;;;KAEZ;IAED,OAAO,IAAA,aAAQ,EAAC;QACd,QAAQ,EAAE,sBAAsB;QAChC,OAAO,EAAE,OAAO;QAChB,WAAW,EAAE,IAAI;QACjB,OAAO,EAAE,QAAQ;QACjB,QAAQ,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI;KACxB,CAAC,CAAA;AACJ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/system/hooks/notifications/use-load-all/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,0DA4BC;AA/BD,2BAAoC;AACpC,mCAA2D;AAE3D,SAAgB,uBAAuB;;IAC7B,IAAA,cAAc,GAAK,IAAA,0BAAiB,GAAE,eAAxB,CAAwB;IAE9C,IAAM,QAAQ,GAAG,MAAA,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,YAAY,0CAAE,MAAM,CAAA;IAErD,SAAe,OAAO;;;;;;;wBAED,qBAAM,IAAA,QAAG,EAAC;gCACzB,GAAG,EAAE,eAAe;gCACpB,MAAM,EAAE,KAAK;gCACb,IAAI,EAAE,EAAE,QAAQ,EAAE,mBAAmB,EAAE;6BACxC,CAAC,EAAA;;wBAJI,QAAQ,GAAG,SAMhB;wBAED,sBAAO,QAAQ,CAAC,IAAI,EAAA;;;wBAEpB,sBAAO,EAAE,EAAA;;;;;KAEZ;IAED,OAAO,IAAA,aAAQ,EAAC;QACd,QAAQ,EAAE,sBAAsB;QAChC,OAAO,EAAE,OAAO;QAChB,WAAW,EAAE,IAAI;QACjB,OAAO,EAAE,QAAQ;QACjB,QAAQ,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI;KACxB,CAAC,CAAA;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "infinity-forge",
3
- "version": "6.7.8",
3
+ "version": "6.7.9",
4
4
  "description": "codie Library",
5
5
  "main": "./dist/index",
6
6
  "module": "./dist/index",