infinity-forge 0.3.5 → 0.3.6
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/README.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
<!-- {
|
|
2
|
+
"include": ["src/**/*"],
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"lib": ["es2021", "dom"],
|
|
5
|
+
"types": ["reflect-metadata", "node"],
|
|
6
|
+
"experimentalDecorators": true,
|
|
7
|
+
"emitDecoratorMetadata": true,
|
|
8
|
+
"jsx": "react-jsx",
|
|
9
|
+
"baseUrl": "./src",
|
|
10
|
+
"outDir": "./dist",
|
|
11
|
+
"declaration": true,
|
|
12
|
+
"sourceMap": true,
|
|
13
|
+
"paths": {
|
|
14
|
+
"@/*": ["./*"]
|
|
15
|
+
},
|
|
16
|
+
"esModuleInterop": true,
|
|
17
|
+
"moduleResolution": "node",
|
|
18
|
+
"skipLibCheck": true
|
|
19
|
+
},
|
|
20
|
+
"afterDeclarations": true
|
|
21
|
+
} -->
|
|
22
|
+
|
|
1
23
|
{
|
|
2
24
|
"include": ["src/**/*"],
|
|
3
25
|
"compilerOptions": {
|
|
@@ -17,7 +17,7 @@ var formik_1 = require("formik");
|
|
|
17
17
|
var semantic_ui_react_1 = require("semantic-ui-react");
|
|
18
18
|
var input_control_1 = require("../input-control/index.js");
|
|
19
19
|
function InputSwitch(props) {
|
|
20
|
-
var field = (0, formik_1.useField)({ name: props.name })[0];
|
|
20
|
+
var field = (0, formik_1.useField)({ name: props.name, type: "checkbox" })[0];
|
|
21
21
|
return ((0, jsx_runtime_1.jsx)(input_control_1.InputControl, __assign({}, props, { children: (0, jsx_runtime_1.jsx)(semantic_ui_react_1.Checkbox, __assign({ toggle: true }, field, { id: props.name })) })));
|
|
22
22
|
}
|
|
23
23
|
exports.InputSwitch = InputSwitch;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/input-switch/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,iCAAiC;AAEjC,uDAA4C;AAC5C,kDAA+C;AAI/C,SAAgB,WAAW,CAAC,KAAiB;IACpC,IAAA,KAAK,GAAI,IAAA,iBAAQ,EAAC,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/input-switch/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,iCAAiC;AAEjC,uDAA4C;AAC5C,kDAA+C;AAI/C,SAAgB,WAAW,CAAC,KAAiB;IACpC,IAAA,KAAK,GAAI,IAAA,iBAAQ,EAAC,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,GAApD,CAAoD;IAEhE,OAAO,CACL,uBAAC,4BAAY,eAAK,KAAK,cACrB,uBAAC,4BAAQ,aAAC,MAAM,UAAK,KAAK,IAAE,EAAE,EAAE,KAAK,CAAC,IAAI,IAAI,IACjC,CAChB,CAAA;AACH,CAAC;AARD,kCAQC"}
|