infinity-forge 0.33.1 → 0.33.2
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/data/index.d.ts +1 -0
- package/dist/system/presentation/components/data/index.js +1 -1
- package/dist/system/presentation/components/data/index.js.map +1 -1
- package/dist/system/presentation/components/data/tab/component.d.ts +2 -0
- package/dist/system/presentation/components/data/tab/component.js +38 -0
- package/dist/system/presentation/components/data/tab/component.js.map +1 -0
- package/dist/system/presentation/components/data/tab/index.d.ts +2 -2
- package/dist/system/presentation/components/data/tab/index.js +4 -23
- package/dist/system/presentation/components/data/tab/index.js.map +1 -1
- package/dist/system/presentation/components/data/tab/interfaces.d.ts +5 -8
- package/dist/system/presentation/components/data/tab/interfaces.js.map +1 -1
- package/dist/system/presentation/components/data/tab/styles.js +1 -1
- package/dist/system/presentation/components/data/tab/styles.js.map +1 -1
- package/package.json +2 -1
|
@@ -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
|
-
|
|
17
|
+
__exportStar(require("./tab/index.js"), exports);
|
|
18
18
|
__exportStar(require("./chat/index.js"), exports);
|
|
19
19
|
__exportStar(require("./logo/index.js"), exports);
|
|
20
20
|
__exportStar(require("./avatar/index.js"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/system/presentation/components/data/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/system/presentation/components/data/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAqB;AACrB,yCAAsB;AACtB,yCAAsB;AACtB,2CAAwB;AACxB,4CAAyB;AACzB,4CAAyB;AACzB,4CAAyB;AACzB,4CAAyB;AACzB,gDAA6B;AAC7B,mDAAgC;AAChC,iDAA8B;AAC9B,iDAA8B;AAC9B,kDAA+B;AAC/B,mDAAgC;AAChC,qDAAkC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.Tab = void 0;
|
|
27
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
+
var react_1 = require("@nextui-org/react");
|
|
29
|
+
var ui_1 = require("../../../../../ui/index.js");
|
|
30
|
+
var S = __importStar(require("./styles.js"));
|
|
31
|
+
function Tab(_a) {
|
|
32
|
+
var tabs = _a.tabs;
|
|
33
|
+
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: "Tab", children: (0, jsx_runtime_1.jsx)(S.Tab, { children: (0, jsx_runtime_1.jsx)(react_1.Tabs, { children: tabs.map(function (tab) {
|
|
34
|
+
return ((0, jsx_runtime_1.jsx)(react_1.Tab, { title: (0, jsx_runtime_1.jsx)("div", { className: "flex items-center space-x-2", children: (0, jsx_runtime_1.jsx)("span", { children: tab.title }) }), children: (0, jsx_runtime_1.jsx)("div", { className: "content", children: tab.content }) }, tab.key));
|
|
35
|
+
}) }) }) }));
|
|
36
|
+
}
|
|
37
|
+
exports.Tab = Tab;
|
|
38
|
+
//# sourceMappingURL=component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/components/data/tab/component.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAyD;AACzD,2BAA6B;AAI7B,0CAA8B;AAE9B,SAAgB,GAAG,CAAC,EAAmB;QAAjB,IAAI,UAAA;IACxB,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,KAAK,YACf,uBAAC,CAAC,CAAC,GAAG,cACJ,uBAAC,YAAI,cACF,IAAI,CAAC,GAAG,CAAC,UAAC,GAAG;oBACZ,OAAO,CACL,uBAAC,WAAO,IAEN,KAAK,EACH,gCAAK,SAAS,EAAC,6BAA6B,YAC1C,2CAAO,GAAG,CAAC,KAAK,GAAQ,GACpB,YAGR,gCAAK,SAAS,EAAC,SAAS,YAAE,GAAG,CAAC,OAAO,GAAO,IAPvC,GAAG,CAAC,GAAG,CAQJ,CACX,CAAC;gBACJ,CAAC,CAAC,GACG,GACD,GACF,CACT,CAAC;AACJ,CAAC;AAvBD,kBAuBC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
export * from "./component.js";
|
|
2
|
+
export * from "./interfaces.js";
|
|
@@ -10,29 +10,10 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
11
|
o[k2] = m[k];
|
|
12
12
|
}));
|
|
13
|
-
var
|
|
14
|
-
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
24
15
|
};
|
|
25
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
var ui_1 = require("../../../../../ui/index.js");
|
|
29
|
-
var S = __importStar(require("./styles.js"));
|
|
30
|
-
function Tab(_a) {
|
|
31
|
-
var tabs = _a.tabs;
|
|
32
|
-
if (!tabs) {
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'Tab', children: (0, jsx_runtime_1.jsx)(S.Tab, {}) }));
|
|
36
|
-
}
|
|
37
|
-
exports.Tab = Tab;
|
|
17
|
+
__exportStar(require("./component.js"), exports);
|
|
18
|
+
__exportStar(require("./interfaces.js"), exports);
|
|
38
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/components/data/tab/index.
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/components/data/tab/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2B;AAC3B,+CAA4B"}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
type TabItem = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
content: JSX.Element | string;
|
|
7
|
-
};
|
|
2
|
+
export type TabItem = {
|
|
3
|
+
key: string;
|
|
4
|
+
title: string;
|
|
5
|
+
content: JSX.Element;
|
|
8
6
|
};
|
|
9
7
|
export interface ITabProps {
|
|
10
|
-
tabs: TabItem;
|
|
8
|
+
tabs: TabItem[];
|
|
11
9
|
}
|
|
12
|
-
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/components/data/tab/interfaces.
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/components/data/tab/interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -9,6 +9,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.Tab = void 0;
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
exports.Tab = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n border: 1px solid #e1e1e1;\n border-radius: 5px;\n\n > div:first-child {\n background: #f2f2f2;\n padding: 5px 20px;\n\n button + button {\n margin-left: 2.6vw;\n }\n\n button {\n border: none;\n background: none;\n font-size: 14px;\n height: 40px;\n border-radius: 5px;\n padding: 0 15px;\n color: #2b2b2b;\n cursor: pointer;\n outline: none;\n\n &[data-selected='true'] {\n background-color: #e1e1e1;\n }\n }\n }\n\n .content {\n padding: 15px 20px;\n }\n"], ["\n width: 100%;\n border: 1px solid #e1e1e1;\n border-radius: 5px;\n\n > div:first-child {\n background: #f2f2f2;\n padding: 5px 20px;\n\n button + button {\n margin-left: 2.6vw;\n }\n\n button {\n border: none;\n background: none;\n font-size: 14px;\n height: 40px;\n border-radius: 5px;\n padding: 0 15px;\n color: #2b2b2b;\n cursor: pointer;\n outline: none;\n\n &[data-selected='true'] {\n background-color: #e1e1e1;\n }\n }\n }\n\n .content {\n padding: 15px 20px;\n }\n"])));
|
|
12
|
+
exports.Tab = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n border: 1px solid #e1e1e1;\n border-radius: 5px;\n\n * {\n transition: 0.3s;\n }\n\n > div:first-child {\n background: #f2f2f2;\n padding: 5px 20px;\n\n button + button {\n margin-left: 2.6vw;\n }\n\n button {\n border: none;\n background: none;\n font-size: 14px;\n height: 40px;\n border-radius: 5px;\n padding: 0 15px;\n color: #2b2b2b;\n cursor: pointer;\n outline: none;\n\n &[data-selected='true'] {\n background-color: #e1e1e1;\n }\n }\n }\n\n .content {\n padding: 15px 20px;\n }\n"], ["\n width: 100%;\n border: 1px solid #e1e1e1;\n border-radius: 5px;\n\n * {\n transition: 0.3s;\n }\n\n > div:first-child {\n background: #f2f2f2;\n padding: 5px 20px;\n\n button + button {\n margin-left: 2.6vw;\n }\n\n button {\n border: none;\n background: none;\n font-size: 14px;\n height: 40px;\n border-radius: 5px;\n padding: 0 15px;\n color: #2b2b2b;\n cursor: pointer;\n outline: none;\n\n &[data-selected='true'] {\n background-color: #e1e1e1;\n }\n }\n }\n\n .content {\n padding: 15px 20px;\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/presentation/components/data/tab/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,GAAG,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/components/data/tab/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,GAAG,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,oqBAAA,imBAqC/B,KAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "infinity-forge",
|
|
3
|
-
"version": "0.33.
|
|
3
|
+
"version": "0.33.2",
|
|
4
4
|
"description": "codie Library",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"typescript": "^5.4.5"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
+
"@nextui-org/react": "^2.3.6",
|
|
46
47
|
"@react-input/mask": "^1.0.21",
|
|
47
48
|
"@types/react-date-range": "^1.4.9",
|
|
48
49
|
"@types/styled-components": "^5.1.34",
|