infinity-forge 0.6.6 → 0.6.7
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/system/presentation/components/layout/component.d.ts +3 -1
- package/dist/system/presentation/components/layout/component.js +2 -2
- package/dist/system/presentation/components/layout/component.js.map +1 -1
- package/dist/system/presentation/components/layout/menu/components/select-workspace/index.d.ts +14 -1
- package/dist/system/presentation/components/layout/menu/components/select-workspace/index.js +6 -24
- package/dist/system/presentation/components/layout/menu/components/select-workspace/index.js.map +1 -1
- package/dist/system/presentation/components/layout/menu/index.d.ts +1 -1
- package/dist/system/presentation/components/layout/menu/index.js +14 -3
- package/dist/system/presentation/components/layout/menu/index.js.map +1 -1
- package/dist/system/presentation/components/layout/menu/version-01/index.d.ts +4 -1
- package/dist/system/presentation/components/layout/menu/version-01/index.js +3 -2
- package/dist/system/presentation/components/layout/menu/version-01/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
import { WorkSpace } from './menu/components/index.js';
|
|
3
|
+
export declare function Layout({ children, workspaces }: {
|
|
3
4
|
children: React.ReactNode;
|
|
5
|
+
workspaces?: WorkSpace;
|
|
4
6
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -29,8 +29,8 @@ var menu_1 = require("./menu/index.js");
|
|
|
29
29
|
var header_1 = require("./header/index.js");
|
|
30
30
|
var S = __importStar(require("./styles.js"));
|
|
31
31
|
function Layout(_a) {
|
|
32
|
-
var children = _a.children;
|
|
33
|
-
return ((0, jsx_runtime_1.jsxs)(S.Layout, { children: [(0, jsx_runtime_1.jsx)(menu_1.Menu, {}), (0, jsx_runtime_1.jsxs)("div", { className: 'content_layout', children: [(0, jsx_runtime_1.jsx)(header_1.Header, {}), children] })] }));
|
|
32
|
+
var children = _a.children, workspaces = _a.workspaces;
|
|
33
|
+
return ((0, jsx_runtime_1.jsxs)(S.Layout, { children: [(0, jsx_runtime_1.jsx)(menu_1.Menu, { workspaces: workspaces }), (0, jsx_runtime_1.jsxs)("div", { className: 'content_layout', children: [(0, jsx_runtime_1.jsx)(header_1.Header, {}), children] })] }));
|
|
34
34
|
}
|
|
35
35
|
exports.Layout = Layout;
|
|
36
36
|
//# sourceMappingURL=component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../../src/system/presentation/components/layout/component.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA6B;AAC7B,mCAAiC;
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../../src/system/presentation/components/layout/component.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA6B;AAC7B,mCAAiC;AAGjC,0CAA6B;AAE7B,SAAgB,MAAM,CAAC,EAA+E;QAA7E,QAAQ,cAAA,EAAE,UAAU,gBAAA;IAC3C,OAAO,CACL,wBAAC,CAAC,CAAC,MAAM,eACP,uBAAC,WAAI,IAAC,UAAU,EAAE,UAAU,GAAG,EAE/B,iCAAK,SAAS,EAAC,gBAAgB,aAC7B,uBAAC,eAAM,KAAG,EAET,QAAQ,IACL,IACG,CACZ,CAAA;AACH,CAAC;AAZD,wBAYC"}
|
package/dist/system/presentation/components/layout/menu/components/select-workspace/index.d.ts
CHANGED
|
@@ -1 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
type WorkSpaceItem = {
|
|
2
|
+
label: string;
|
|
3
|
+
value: string;
|
|
4
|
+
img: string;
|
|
5
|
+
};
|
|
6
|
+
export type WorkSpace = {
|
|
7
|
+
list: WorkSpaceItem[];
|
|
8
|
+
onChangeWorkSpace?: (workspace: WorkSpaceItem) => void;
|
|
9
|
+
activeWorkspace: WorkSpaceItem['value'];
|
|
10
|
+
};
|
|
11
|
+
export declare function SelectWorkSpace({ workspaces }: {
|
|
12
|
+
workspaces?: WorkSpace;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
package/dist/system/presentation/components/layout/menu/components/select-workspace/index.js
CHANGED
|
@@ -57,30 +57,12 @@ function Item(_a) {
|
|
|
57
57
|
var data = _a.data, props = __rest(_a, ["data"]);
|
|
58
58
|
return ((0, jsx_runtime_1.jsxs)("button", __assign({ className: 'item' }, props.innerProps, { children: [(0, jsx_runtime_1.jsx)(system_1.Avatar, { className: 'avatar', image: data.img }), (0, jsx_runtime_1.jsx)("span", { className: 'font-14-regular', children: data.label })] })));
|
|
59
59
|
}
|
|
60
|
-
function SelectWorkSpace() {
|
|
61
|
-
var
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
label: 'Apple',
|
|
69
|
-
value: 'Apple@apple.com',
|
|
70
|
-
img: 'https://1.bp.blogspot.com/-IHIprxC2Za0/UBg14NttLLI/AAAAAAAAA28/nyBH-GeEX7Y/s1600/white-apple-logo-wallpaper.jpg',
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
label: 'Microsoft',
|
|
74
|
-
value: 'microsofr@microsoft.com',
|
|
75
|
-
img: 'https://ca16c2df-cdn.agilitycms.cloud/Attachments/NewItems/MS-thumbnail_20230620211556_0.jpg',
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
label: 'Google',
|
|
79
|
-
value: 'google@google.com',
|
|
80
|
-
img: 'https://wallpapercave.com/wp/wp2860498.jpg',
|
|
81
|
-
},
|
|
82
|
-
];
|
|
83
|
-
return ((0, jsx_runtime_1.jsx)(S.SelectWorkSpace, { children: (0, jsx_runtime_1.jsx)(react_select_1.default, { menuPlacement: 'auto', options: customOptions, defaultValue: customOptions[0], components: { Option: function (props) { return (0, jsx_runtime_1.jsx)(Item, __assign({}, props)); }, SingleValue: function (props) { return (0, jsx_runtime_1.jsx)(Item, __assign({}, props)); } } }) }));
|
|
60
|
+
function SelectWorkSpace(_a) {
|
|
61
|
+
var workspaces = _a.workspaces;
|
|
62
|
+
if (!(workspaces === null || workspaces === void 0 ? void 0 : workspaces.list) || workspaces.list.length === 0) {
|
|
63
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
|
|
64
|
+
}
|
|
65
|
+
return ((0, jsx_runtime_1.jsx)(S.SelectWorkSpace, { children: (0, jsx_runtime_1.jsx)(react_select_1.default, { menuPlacement: 'auto', options: workspaces.list, onChange: workspaces.onChangeWorkSpace && workspaces.onChangeWorkSpace, defaultValue: workspaces.list.find(function (workspace) { return workspace.value === workspaces.activeWorkspace; }), components: { Option: function (props) { return (0, jsx_runtime_1.jsx)(Item, __assign({}, props)); }, SingleValue: function (props) { return (0, jsx_runtime_1.jsx)(Item, __assign({}, props)); } } }) }));
|
|
84
66
|
}
|
|
85
67
|
exports.SelectWorkSpace = SelectWorkSpace;
|
|
86
68
|
//# sourceMappingURL=index.js.map
|
package/dist/system/presentation/components/layout/menu/components/select-workspace/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/system/presentation/components/layout/menu/components/select-workspace/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8DAAsC;AAEtC,mCAAiC;AAEjC,0CAA6B;AAE7B,SAAS,IAAI,CAAC,EAAkB;IAAhB,IAAA,IAAI,UAAA,EAAK,KAAK,cAAhB,QAAkB,CAAF;IAC5B,OAAO,CACL,6CAAQ,SAAS,EAAC,MAAM,IAAK,KAAK,CAAC,UAAU,eAC3C,uBAAC,eAAM,IAAC,SAAS,EAAC,QAAQ,EAAC,KAAK,EAAE,IAAI,CAAC,GAAG,GAAI,EAE9C,iCAAM,SAAS,EAAC,iBAAiB,YAAE,IAAI,CAAC,KAAK,GAAQ,KAC9C,CACV,CAAA;AACH,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/system/presentation/components/layout/menu/components/select-workspace/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8DAAsC;AAEtC,mCAAiC;AAEjC,0CAA6B;AAE7B,SAAS,IAAI,CAAC,EAAkB;IAAhB,IAAA,IAAI,UAAA,EAAK,KAAK,cAAhB,QAAkB,CAAF;IAC5B,OAAO,CACL,6CAAQ,SAAS,EAAC,MAAM,IAAK,KAAK,CAAC,UAAU,eAC3C,uBAAC,eAAM,IAAC,SAAS,EAAC,QAAQ,EAAC,KAAK,EAAE,IAAI,CAAC,GAAG,GAAI,EAE9C,iCAAM,SAAS,EAAC,iBAAiB,YAAE,IAAI,CAAC,KAAK,GAAQ,KAC9C,CACV,CAAA;AACH,CAAC;AAUD,SAAgB,eAAe,CAAC,EAA0C;QAAxC,UAAU,gBAAA;IAC1C,IAAI,CAAC,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,IAAI,CAAA,IAAI,UAAU,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACtD,OAAO,kDAAK,CAAA;IACd,CAAC;IAED,OAAO,CACL,uBAAC,CAAC,CAAC,eAAe,cAChB,uBAAC,sBAAW,IACV,aAAa,EAAC,MAAM,EACpB,OAAO,EAAE,UAAU,CAAC,IAAI,EACxB,QAAQ,EAAE,UAAU,CAAC,iBAAiB,IAAI,UAAU,CAAC,iBAAiB,EACtE,YAAY,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,UAAC,SAAS,IAAK,OAAA,SAAS,CAAC,KAAK,KAAK,UAAU,CAAC,eAAe,EAA9C,CAA8C,CAAC,EACjG,UAAU,EAAE,EAAE,MAAM,EAAE,UAAC,KAAU,IAAK,OAAA,uBAAC,IAAI,eAAK,KAAK,EAAI,EAAnB,CAAmB,EAAE,WAAW,EAAE,UAAC,KAAK,IAAK,OAAA,uBAAC,IAAI,eAAK,KAAK,EAAI,EAAnB,CAAmB,EAAE,GACxG,GACgB,CACrB,CAAA;AACH,CAAC;AAhBD,0CAgBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function Menu(): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare function Menu(props: any): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +1,25 @@
|
|
|
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
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
14
|
exports.Menu = void 0;
|
|
4
15
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
16
|
var version_01_1 = require("./version-01/index.js");
|
|
6
|
-
function Menu() {
|
|
17
|
+
function Menu(props) {
|
|
7
18
|
var type = 'version01';
|
|
8
19
|
switch (type) {
|
|
9
20
|
case 'version01':
|
|
10
|
-
return (0, jsx_runtime_1.jsx)(version_01_1.MenuVersion01, {});
|
|
11
|
-
default: (0, jsx_runtime_1.jsx)(version_01_1.MenuVersion01, {});
|
|
21
|
+
return (0, jsx_runtime_1.jsx)(version_01_1.MenuVersion01, __assign({}, props));
|
|
22
|
+
default: (0, jsx_runtime_1.jsx)(version_01_1.MenuVersion01, __assign({}, props));
|
|
12
23
|
}
|
|
13
24
|
}
|
|
14
25
|
exports.Menu = Menu;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/components/layout/menu/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/components/layout/menu/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAE5C,SAAgB,IAAI,CAAC,KAAK;IACxB,IAAM,IAAI,GAAG,WAAW,CAAA;IAExB,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,WAAW;YACd,OAAO,uBAAC,0BAAa,eAAK,KAAK,EAAG,CAAA;QAEpC,OAAO,CAAC,CAAC,uBAAC,0BAAa,eAAK,KAAK,EAAG,CAAA;IACtC,CAAC;AACH,CAAC;AATD,oBASC"}
|
|
@@ -28,8 +28,9 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
28
28
|
var system_1 = require("../../../../../../system/index.js");
|
|
29
29
|
var components_1 = require("../components/index.js");
|
|
30
30
|
var S = __importStar(require("./styles.js"));
|
|
31
|
-
function MenuVersion01() {
|
|
32
|
-
|
|
31
|
+
function MenuVersion01(_a) {
|
|
32
|
+
var workspaces = _a.workspaces;
|
|
33
|
+
return ((0, jsx_runtime_1.jsxs)(S.MenuVersion01, { children: [(0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(system_1.Logo, {}), (0, jsx_runtime_1.jsx)(components_1.Menu, {})] }), (0, jsx_runtime_1.jsx)(components_1.SelectWorkSpace, { workspaces: workspaces })] }));
|
|
33
34
|
}
|
|
34
35
|
exports.MenuVersion01 = MenuVersion01;
|
|
35
36
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/components/layout/menu/version-01/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAA+B;AAE/B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/components/layout/menu/version-01/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAA+B;AAE/B,4CAAgE;AAEhE,0CAA6B;AAE7B,SAAgB,aAAa,CAAC,EAA0C;QAAxC,UAAU,gBAAA;IACxC,OAAO,CACL,wBAAC,CAAC,CAAC,aAAa,eACd,4CACE,uBAAC,aAAI,KAAG,EAER,uBAAC,iBAAI,KAAE,IACH,EAEN,uBAAC,4BAAe,IAAC,UAAU,EAAE,UAAU,GAAI,IAC3B,CACnB,CAAA;AACH,CAAC;AAZD,sCAYC"}
|