infinity-forge 0.29.2 → 0.29.3
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/ui/components/form/checkbox/index.js +1 -1
- package/dist/ui/components/form/checkbox/index.js.map +1 -1
- package/dist/ui/components/sidebar/index.js +1 -1
- package/dist/ui/components/sidebar/index.js.map +1 -1
- package/dist/ui/components/sidebar/styles.d.ts +4 -4
- package/dist/ui/components/sidebar/styles.js +2 -2
- package/dist/ui/components/sidebar/styles.js.map +1 -1
- package/package.json +1 -1
|
@@ -44,7 +44,7 @@ function InputCheckbox(props) {
|
|
|
44
44
|
var _a = (0, formik_1.useField)({ name: props.name }), field = _a[0], _ = _a[1], helpers = _a[2];
|
|
45
45
|
(0, react_1.useEffect)(function () {
|
|
46
46
|
if (field.value === undefined) {
|
|
47
|
-
helpers.setValue([]);
|
|
47
|
+
helpers.setValue(['']);
|
|
48
48
|
}
|
|
49
49
|
}, [field.value]);
|
|
50
50
|
return ((0, jsx_runtime_1.jsx)(input_control_1.InputControl, __assign({}, props, { name: props.name, children: (0, jsx_runtime_1.jsx)(S.InputCheckbox, { children: (0, jsx_runtime_1.jsx)("div", { className: 'list-radios', children: props.options.map(function (option, index) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/checkbox/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAwC;AACxC,iCAAiC;AAEjC,kDAA+C;AAE/C,0CAA6B;AAQ7B,SAAgB,aAAa,CAAC,KAAyB;IAC/C,IAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/checkbox/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAwC;AACxC,iCAAiC;AAEjC,kDAA+C;AAE/C,0CAA6B;AAQ7B,SAAgB,aAAa,CAAC,KAAyB;IAC/C,IAAA,KAAsB,IAAA,iBAAQ,EAAC,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,EAAnD,KAAK,QAAA,EAAE,CAAC,QAAA,EAAE,OAAO,QAAkC,CAAA;IAE1D,IAAA,iBAAS,EAAC;QACR,IAAI,KAAK,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;YAC9B,OAAO,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;QACxB,CAAC;IACH,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAA;IAEjB,OAAO,CACL,uBAAC,4BAAY,eAAK,KAAK,IAAE,IAAI,EAAE,KAAK,CAAC,IAAI,YACvC,uBAAC,CAAC,CAAC,aAAa,cACd,gCAAK,SAAS,EAAC,aAAa,YACzB,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,UAAC,MAAM,EAAE,KAAK;;oBAAK,OAAA,CACpC,mCAA0B,OAAO,EAAE,KAAK,CAAC,IAAI,GAAG,KAAK,aACnD,2CACE,EAAE,EAAE,KAAK,CAAC,IAAI,GAAG,KAAK,IAClB,KAAK,IACT,OAAO,EAAE,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,KAAK,0CAAE,IAAI,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,KAAK,MAAM,CAAC,KAAK,EAAlB,CAAkB,CAAC,EACtD,IAAI,EAAC,UAAU,EACf,KAAK,EAAE,MAAM,CAAC,KAAK,IACnB,EACD,MAAM,CAAC,KAAK,KARH,MAAM,CAAC,KAAK,CAShB,CACT,CAAA;iBAAA,CAAC,GACE,GACU,IACL,CAChB,CAAA;AACH,CAAC;AA7BD,sCA6BC"}
|
|
@@ -40,7 +40,7 @@ function SideBar(_a) {
|
|
|
40
40
|
function handleContentClick(event) {
|
|
41
41
|
event.stopPropagation();
|
|
42
42
|
}
|
|
43
|
-
return react_dom_1.default.createPortal((0, jsx_runtime_1.jsx)(S.SideBar, { overlay: overlay, open: open, maxWidth: maxWidth, direction: direction, onClick: handleClose, children: (0, jsx_runtime_1.jsx)("div", { onClick: handleContentClick, className: 'content', children: open && children }) }), document.body);
|
|
43
|
+
return react_dom_1.default.createPortal((0, jsx_runtime_1.jsx)(S.SideBar, { "$overlay": overlay, "$open": open, "$maxWidth": maxWidth, "$direction": direction, onClick: handleClose, children: (0, jsx_runtime_1.jsx)("div", { onClick: handleContentClick, className: 'content', children: open && children }) }), document.body);
|
|
44
44
|
}
|
|
45
45
|
exports.SideBar = SideBar;
|
|
46
46
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/components/sidebar/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wDAAgC;AAIhC,0CAA6B;AAE7B,SAAgB,OAAO,CAAC,EAA6E;QAA3E,QAAQ,cAAA,EAAE,QAAQ,cAAA,EAAE,IAAI,UAAA,EAAE,OAAO,aAAA,EAAE,iBAAmB,EAAnB,SAAS,mBAAG,OAAO,KAAA,EAAE,OAAO,aAAA;IACvF,SAAS,WAAW;QAClB,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO,CAAC,KAAK,CAAC,CAAA;QAChB,CAAC;IACH,CAAC;IAED,SAAS,kBAAkB,CAAC,KAAmD;QAC7E,KAAK,CAAC,eAAe,EAAE,CAAA;IACzB,CAAC;IAED,OAAO,mBAAQ,CAAC,YAAY,CAC1B,uBAAC,CAAC,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/components/sidebar/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wDAAgC;AAIhC,0CAA6B;AAE7B,SAAgB,OAAO,CAAC,EAA6E;QAA3E,QAAQ,cAAA,EAAE,QAAQ,cAAA,EAAE,IAAI,UAAA,EAAE,OAAO,aAAA,EAAE,iBAAmB,EAAnB,SAAS,mBAAG,OAAO,KAAA,EAAE,OAAO,aAAA;IACvF,SAAS,WAAW;QAClB,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO,CAAC,KAAK,CAAC,CAAA;QAChB,CAAC;IACH,CAAC;IAED,SAAS,kBAAkB,CAAC,KAAmD;QAC7E,KAAK,CAAC,eAAe,EAAE,CAAA;IACzB,CAAC;IAED,OAAO,mBAAQ,CAAC,YAAY,CAC1B,uBAAC,CAAC,CAAC,OAAO,gBAAW,OAAO,WAAS,IAAI,eAAa,QAAQ,gBAAc,SAAS,EAAE,OAAO,EAAE,WAAW,YACzG,gCAAK,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAC,SAAS,YAClD,IAAI,IAAI,QAAQ,GACb,GACI,EACZ,QAAQ,CAAC,IAAI,CACd,CAAA;AACH,CAAC;AAnBD,0BAmBC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
interface IStyledSideBar {
|
|
3
|
-
open: boolean;
|
|
4
|
-
maxWidth: string;
|
|
5
|
-
overlay?: boolean;
|
|
6
|
-
direction?: 'left' | 'right';
|
|
3
|
+
$open: boolean;
|
|
4
|
+
$maxWidth: string;
|
|
5
|
+
$overlay?: boolean;
|
|
6
|
+
$direction?: 'left' | 'right';
|
|
7
7
|
}
|
|
8
8
|
export declare const SideBar: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
9
9
|
ref?: import("react").Ref<HTMLElement>;
|
|
@@ -9,8 +9,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.SideBar = void 0;
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
exports.SideBar = (0, styled_components_1.default)('aside')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n position: fixed;\n z-index: 99999;\n top: 0;\n height: 100vh;\n min-height: 100vh;\n transition: width 0.3s ease-in-out;\n width: ", ";\n max-width: ", ";\n ", "\n\n .content {\n transition: transform 0.3s ease-in-out !important;\n overflow: hidden;\n background-color: #fff;\n box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;\n height: 100%;\n width: 100%;\n margin: ", ";\n position: relative;\n z-index: 999999;\n max-width: ", ";\n transform: ", ";\n\n > div {\n padding: 15px;\n }\n }\n"], ["\n width: 100%;\n position: fixed;\n z-index: 99999;\n top: 0;\n height: 100vh;\n min-height: 100vh;\n transition: width 0.3s ease-in-out;\n width: ", ";\n max-width: ", ";\n ", "\n\n .content {\n transition: transform 0.3s ease-in-out !important;\n overflow: hidden;\n background-color: #fff;\n box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;\n height: 100%;\n width: 100%;\n margin: ", ";\n position: relative;\n z-index: 999999;\n max-width: ", ";\n transform: ", ";\n\n > div {\n padding: 15px;\n }\n }\n"])), function (props) { return (props
|
|
13
|
-
return props
|
|
12
|
+
exports.SideBar = (0, styled_components_1.default)('aside')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n position: fixed;\n z-index: 99999;\n top: 0;\n height: 100vh;\n min-height: 100vh;\n transition: width 0.3s ease-in-out;\n width: ", ";\n max-width: ", ";\n ", "\n\n .content {\n transition: transform 0.3s ease-in-out !important;\n overflow: hidden;\n background-color: #fff;\n box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;\n height: 100%;\n width: 100%;\n margin: ", ";\n position: relative;\n z-index: 999999;\n max-width: ", ";\n transform: ", ";\n\n > div {\n padding: 15px;\n }\n }\n"], ["\n width: 100%;\n position: fixed;\n z-index: 99999;\n top: 0;\n height: 100vh;\n min-height: 100vh;\n transition: width 0.3s ease-in-out;\n width: ", ";\n max-width: ", ";\n ", "\n\n .content {\n transition: transform 0.3s ease-in-out !important;\n overflow: hidden;\n background-color: #fff;\n box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;\n height: 100%;\n width: 100%;\n margin: ", ";\n position: relative;\n z-index: 999999;\n max-width: ", ";\n transform: ", ";\n\n > div {\n padding: 15px;\n }\n }\n"])), function (props) { return (props.$open ? (props.$overlay ? '100vw' : props.$maxWidth) : '0px'); }, function (props) { return (props.$maxWidth ? '100%' : props.$maxWidth); }, function (props) { return (props.$direction === 'right' ? "right: 0;" : 'left: 0;'); }, function (props) { return (props.$direction === 'left' ? '0 auto 0 0' : '0 0 0 auto'); }, function (props) { return props.$maxWidth; }, function (props) {
|
|
13
|
+
return props.$open ? 'translateX(0)' : props.$direction === 'right' ? 'translateX(100%)' : 'translateX(-100%)';
|
|
14
14
|
});
|
|
15
15
|
var templateObject_1;
|
|
16
16
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/ui/components/sidebar/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AASzB,QAAA,OAAO,GAAG,IAAA,2BAAM,EAAC,OAAO,CAAC,snBAAgB,8JAQ3C,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/ui/components/sidebar/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AASzB,QAAA,OAAO,GAAG,IAAA,2BAAM,EAAC,OAAO,CAAC,snBAAgB,8JAQ3C,EAA+E,kBAC3E,EAAuD,OAClE,EAAoE,mOAS1D,EAAsE,mEAGnE,EAA0B,oBAC1B,EAC4F,sDAM5G,KAtBU,UAAC,KAAK,IAAK,OAAA,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EAApE,CAAoE,EAC3E,UAAC,KAAK,IAAK,OAAA,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,EAA5C,CAA4C,EAClE,UAAC,KAAK,IAAK,OAAA,CAAC,KAAK,CAAC,UAAU,KAAK,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC,EAAzD,CAAyD,EAS1D,UAAC,KAAK,IAAK,OAAA,CAAC,KAAK,CAAC,UAAU,KAAK,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,EAA3D,CAA2D,EAGnE,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,SAAS,EAAf,CAAe,EAC1B,UAAC,KAAK;IACjB,OAAA,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,KAAK,OAAO,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,mBAAmB;AAAvG,CAAuG,EAM5G"}
|