infinity-forge 0.12.4 → 0.12.5
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/menu/components/select-workspace/index.d.ts +1 -0
- package/dist/system/presentation/components/layout/menu/components/select-workspace/index.js +3 -3
- package/dist/system/presentation/components/layout/menu/components/select-workspace/index.js.map +1 -1
- package/dist/system/presentation/components/layout/menu/components/select-workspace/styles.js +1 -1
- package/dist/system/presentation/components/layout/menu/components/select-workspace/styles.js.map +1 -1
- package/dist/system/presentation/components/layout/menu/version-01/index.js.map +1 -1
- package/package.json +1 -1
package/dist/system/presentation/components/layout/menu/components/select-workspace/index.js
CHANGED
|
@@ -48,18 +48,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
48
48
|
exports.SelectWorkSpace = void 0;
|
|
49
49
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
50
50
|
var system_1 = require("../../../../../../../system/index.js");
|
|
51
|
-
var S = __importStar(require("./styles.js"));
|
|
52
51
|
var ui_1 = require("../../../../../../../ui/index.js");
|
|
52
|
+
var S = __importStar(require("./styles.js"));
|
|
53
53
|
function Item(_a) {
|
|
54
54
|
var data = _a.data, props = __rest(_a, ["data"]);
|
|
55
|
-
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 })] })));
|
|
55
|
+
return ((0, jsx_runtime_1.jsxs)("button", __assign({ className: 'item' }, props.innerProps, { children: [data.img ? (0, jsx_runtime_1.jsx)(system_1.Avatar, { className: 'avatar', image: data.img }) : (0, jsx_runtime_1.jsx)("div", { className: 'circle' }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("span", { className: 'font-14-regular', children: data.label }), data.subtitle && (0, jsx_runtime_1.jsx)("span", { className: 'font-12-regular subtitulo', children: data.subtitle })] })] })));
|
|
56
56
|
}
|
|
57
57
|
function SelectWorkSpace(_a) {
|
|
58
58
|
var workspaces = _a.workspaces;
|
|
59
59
|
if (!(workspaces === null || workspaces === void 0 ? void 0 : workspaces.list) || workspaces.list.length === 0) {
|
|
60
60
|
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
|
|
61
61
|
}
|
|
62
|
-
return ((0, jsx_runtime_1.jsx)(S.SelectWorkSpace, { children: (0, jsx_runtime_1.jsx)(ui_1.FormHandler, { onChangeForm: { callbackResult: workspaces.onChangeWorkSpace && workspaces.onChangeWorkSpace }, initialData: { workspace: workspaces.activeWorkspace }, children: (0, jsx_runtime_1.jsx)(ui_1.Select, { name: 'workspace', menuPlacement: 'bottom', options: workspaces.list, onlyOneValue: true }) }) }));
|
|
62
|
+
return ((0, jsx_runtime_1.jsx)(S.SelectWorkSpace, { children: (0, jsx_runtime_1.jsx)(ui_1.FormHandler, { onChangeForm: { callbackResult: workspaces.onChangeWorkSpace && workspaces.onChangeWorkSpace }, initialData: { workspace: workspaces.activeWorkspace }, children: (0, jsx_runtime_1.jsx)(ui_1.Select, { name: 'workspace', menuPlacement: 'bottom', options: workspaces.list, onlyOneValue: true, CustomOption: Item }) }) }));
|
|
63
63
|
}
|
|
64
64
|
exports.SelectWorkSpace = SelectWorkSpace;
|
|
65
65
|
//# 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/system/presentation/components/layout/menu/components/select-workspace/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;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AAfD,0CAeC"}
|
package/dist/system/presentation/components/layout/menu/components/select-workspace/styles.js
CHANGED
|
@@ -9,6 +9,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.SelectWorkSpace = void 0;
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
exports.SelectWorkSpace = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n padding: 20px 15px 0 0;\n\n [class*='-Svg'] {\n transition: 0.2s;\n transform: rotate(0);\n fill: #2b2b2b;\n width: 18px;\n }\n\n [class*='indicatorContainer'] {\n padding-right: 15px !important;\n }\n\n [class*='ValueContainer'] {\n height: 60px;\n overflow: visible;\n padding-left: 15px !important;\n display: flex;\n }\n\n [class*='indicatorSeparator'] {\n display: none;\n }\n\n [class*='-placeholder'] {\n color: #2b2b2b;\n font-size: 14px;\n font-weight: 400;\n }\n\n [class*='-menu'] {\n width: 100%;\n max-width: 400px;\n }\n\n [class*='-MenuList'] {\n display: flex;\n flex-direction: column;\n\n .item {\n padding: 5px 15px;\n transition: background 0.2s;\n\n &:hover {\n background: #e1e1e1;\n }\n }\n }\n\n .css-13cymwt-control {\n border: 1px solid #e1e1e1;\n border-radius: 5px;\n cursor: pointer;\n }\n\n .item {\n background: none;\n padding: 0;\n border: 0;\n display: flex;\n width: 100%;\n height: 100%;\n align-items: center;\n gap: 10px;\n cursor: pointer;\n\n .avatar {\n width: 36px;\n height: 36px;\n\n img {\n object-fit: cover !important;\n }\n }\n }\n
|
|
12
|
+
exports.SelectWorkSpace = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n padding: 20px 15px 0 0;\n\n [class*='-Svg'] {\n transition: 0.2s;\n transform: rotate(0);\n fill: #2b2b2b;\n width: 18px;\n }\n\n [class*='indicatorContainer'] {\n padding-right: 15px !important;\n }\n\n [class*='ValueContainer'] {\n height: 60px;\n overflow: visible;\n padding-left: 15px !important;\n display: flex;\n }\n\n [class*='indicatorSeparator'] {\n display: none;\n }\n\n [class*='-placeholder'] {\n color: #2b2b2b;\n font-size: 14px;\n font-weight: 400;\n }\n\n [class*='-menu'] {\n width: 100%;\n max-width: 400px;\n z-index: 9999;\n }\n\n [class*='-MenuList'] {\n display: flex;\n flex-direction: column;\n\n .item {\n padding: 5px 15px;\n transition: background 0.2s;\n\n &:hover {\n background: #e1e1e1;\n }\n }\n }\n\n .css-13cymwt-control {\n border: 1px solid #e1e1e1;\n border-radius: 5px;\n cursor: pointer;\n }\n\n .item {\n background: none;\n padding: 0;\n border: 0;\n display: flex;\n width: 100%;\n height: 100%;\n align-items: center;\n gap: 10px;\n cursor: pointer;\n\n > div {\n display: flex;\n flex-direction: column;\n text-align: start;\n\n .subtitulo {\n color: #828282;\n }\n }\n\n .circle {\n width: 36px;\n height: 36px;\n border-radius: 100rem;\n background-color: #444444;\n }\n\n .avatar {\n width: 36px;\n height: 36px;\n\n img {\n object-fit: cover !important;\n }\n }\n }\n"], ["\n width: 100%;\n padding: 20px 15px 0 0;\n\n [class*='-Svg'] {\n transition: 0.2s;\n transform: rotate(0);\n fill: #2b2b2b;\n width: 18px;\n }\n\n [class*='indicatorContainer'] {\n padding-right: 15px !important;\n }\n\n [class*='ValueContainer'] {\n height: 60px;\n overflow: visible;\n padding-left: 15px !important;\n display: flex;\n }\n\n [class*='indicatorSeparator'] {\n display: none;\n }\n\n [class*='-placeholder'] {\n color: #2b2b2b;\n font-size: 14px;\n font-weight: 400;\n }\n\n [class*='-menu'] {\n width: 100%;\n max-width: 400px;\n z-index: 9999;\n }\n\n [class*='-MenuList'] {\n display: flex;\n flex-direction: column;\n\n .item {\n padding: 5px 15px;\n transition: background 0.2s;\n\n &:hover {\n background: #e1e1e1;\n }\n }\n }\n\n .css-13cymwt-control {\n border: 1px solid #e1e1e1;\n border-radius: 5px;\n cursor: pointer;\n }\n\n .item {\n background: none;\n padding: 0;\n border: 0;\n display: flex;\n width: 100%;\n height: 100%;\n align-items: center;\n gap: 10px;\n cursor: pointer;\n\n > div {\n display: flex;\n flex-direction: column;\n text-align: start;\n\n .subtitulo {\n color: #828282;\n }\n }\n\n .circle {\n width: 36px;\n height: 36px;\n border-radius: 100rem;\n background-color: #444444;\n }\n\n .avatar {\n width: 36px;\n height: 36px;\n\n img {\n object-fit: cover !important;\n }\n }\n }\n"])));
|
|
13
13
|
var templateObject_1;
|
|
14
14
|
//# sourceMappingURL=styles.js.map
|
package/dist/system/presentation/components/layout/menu/components/select-workspace/styles.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../../src/system/presentation/components/layout/menu/components/select-workspace/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,eAAe,GAAG,2BAAM,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../../src/system/presentation/components/layout/menu/components/select-workspace/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,eAAe,GAAG,2BAAM,CAAC,GAAG,6mDAAA,0iDA+FxC,KAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/components/layout/menu/version-01/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAwC;AAExC,4CAAgE;AAEhE,0CAA6B;AAE7B,SAAgB,aAAa,CAAC,EAA0C;QAAxC,UAAU,gBAAA;IAChC,IAAA,YAAY,GAAK,IAAA,gBAAS,GAAE,aAAhB,CAAgB;IAEpC,OAAO,CACL,wBAAC,CAAC,CAAC,aAAa,IAAC,KAAK,EAAE,EAAE,MAAM,EAAE,uBAAgB,YAAY,GAAG,IAAI,MAAG,EAAE,EAAE,EAAE,EAAC,WAAW,aACxF,uBAAC,4BAAe,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/components/layout/menu/version-01/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAwC;AAExC,4CAAgE;AAEhE,0CAA6B;AAE7B,SAAgB,aAAa,CAAC,EAA0C;QAAxC,UAAU,gBAAA;IAChC,IAAA,YAAY,GAAK,IAAA,gBAAS,GAAE,aAAhB,CAAgB;IAEpC,OAAO,CACL,wBAAC,CAAC,CAAC,aAAa,IAAC,KAAK,EAAE,EAAE,MAAM,EAAE,uBAAgB,YAAY,GAAG,IAAI,MAAG,EAAE,EAAE,EAAE,EAAC,WAAW,aACxF,uBAAC,4BAAe,IAAC,UAAU,EAAE,UAAU,GAAI,EAE3C,uBAAC,iBAAI,KAAG,IACQ,CACnB,CAAA;AACH,CAAC;AAVD,sCAUC"}
|