zeus-form-mui 0.1.2 → 0.1.4
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/lib/components/UniversalField.js +0 -1
- package/lib/components/UniversalField.js.map +1 -1
- package/lib/index.js +0 -2
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/UniversalField.tsx +0 -1
- package/src/index.tsx +0 -2
- package/lib/components/NullField.d.ts +0 -3
- package/lib/components/NullField.js +0 -8
- package/lib/components/NullField.js.map +0 -1
- package/src/components/NullField.tsx +0 -2
|
@@ -17,7 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
var material_1 = require("@mui/material");
|
|
18
18
|
var react_1 = __importDefault(require("react"));
|
|
19
19
|
exports.default = (function (props) {
|
|
20
|
-
console.log(props.f.name, props.formObject);
|
|
21
20
|
return (react_1.default.createElement(material_1.TextField, { value: props.formObject.__form__value || '', placeholder: props.f.name.replace(/([A-Z])/g, ' $1').replace(/^./, function (str) {
|
|
22
21
|
return str.toUpperCase();
|
|
23
22
|
}), onChange: function (e) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UniversalField.js","sourceRoot":"","sources":["../../src/components/UniversalField.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAA0C;AAE1C,gDAA0B;AAC1B,mBAAe,UAAC,KAAsB;IAClC,OAAO,
|
|
1
|
+
{"version":3,"file":"UniversalField.js","sourceRoot":"","sources":["../../src/components/UniversalField.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAA0C;AAE1C,gDAA0B;AAC1B,mBAAe,UAAC,KAAsB;IAClC,OAAO,CACH,8BAAC,oBAAS,IACN,KAAK,EAAG,KAAK,CAAC,UAAU,CAAC,aAAoC,IAAI,EAAE,EACnE,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,UAAU,GAAG;YAC5E,OAAO,GAAG,CAAC,WAAW,EAAE,CAAC;QAC7B,CAAC,CAAC,EACF,QAAQ,EAAE,UAAC,CAAC;YACR,KAAK,CAAC,QAAQ,uBACP,KAAK,CAAC,UAAU,KACnB,aAAa,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,IAC/B,CAAC;QACP,CAAC,GACH,CACL,CAAC;AACN,CAAC,EAAC"}
|
package/lib/index.js
CHANGED
|
@@ -19,7 +19,6 @@ var BooleanField_1 = __importDefault(require("./components/BooleanField"));
|
|
|
19
19
|
var EnumField_1 = __importDefault(require("./components/EnumField"));
|
|
20
20
|
var FormField_1 = __importDefault(require("./components/FormField"));
|
|
21
21
|
var FormLabel_1 = __importDefault(require("./components/FormLabel"));
|
|
22
|
-
var NullField_1 = __importDefault(require("./components/NullField"));
|
|
23
22
|
var NumberField_1 = __importDefault(require("./components/NumberField"));
|
|
24
23
|
var ObjectField_1 = __importDefault(require("./components/ObjectField"));
|
|
25
24
|
var UniversalField_1 = __importDefault(require("./components/UniversalField"));
|
|
@@ -32,7 +31,6 @@ function MuiInputForm(props) {
|
|
|
32
31
|
EnumField: EnumField_1.default,
|
|
33
32
|
FormField: FormField_1.default,
|
|
34
33
|
FormLabel: FormLabel_1.default,
|
|
35
|
-
NullField: NullField_1.default,
|
|
36
34
|
NumberField: NumberField_1.default,
|
|
37
35
|
ObjectField: ObjectField_1.default,
|
|
38
36
|
UniversalField: UniversalField_1.default,
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uEAAiD;AACjD,2EAAqD;AACrD,qEAA+C;AAC/C,qEAA+C;AAC/C,qEAA+C;AAC/C,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uEAAiD;AACjD,2EAAqD;AACrD,qEAA+C;AAC/C,qEAA+C;AAC/C,qEAA+C;AAC/C,yEAAmD;AACnD,yEAAmD;AACnD,+EAAyD;AACzD,uCAA6D;AAC7D,gDAA0B;AAE1B,SAAS,YAAY,CAAI,KAA+B;IACpD,OAAO,CACH,8BAAC,qBAAS,eACF,KAAK,IACT,UAAU,EAAE;YACR,UAAU,EAAE,oBAAU;YACtB,YAAY,EAAE,sBAAY;YAC1B,SAAS,EAAE,mBAAS;YACpB,SAAS,EAAE,mBAAS;YACpB,SAAS,EAAE,mBAAS;YACpB,WAAW,EAAE,qBAAW;YACxB,WAAW,EAAE,qBAAW;YACxB,cAAc,EAAE,wBAAc;SACjC,IACH,CACL,CAAC;AACN,CAAC;AAED,kBAAe,YAAY,CAAC"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,6 @@ import { TextField } from '@mui/material';
|
|
|
2
2
|
import { PassedFormProps } from 'zeus-form';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
export default (props: PassedFormProps) => {
|
|
5
|
-
console.log(props.f.name, props.formObject);
|
|
6
5
|
return (
|
|
7
6
|
<TextField
|
|
8
7
|
value={(props.formObject.__form__value as string | undefined) || ''}
|
package/src/index.tsx
CHANGED
|
@@ -3,7 +3,6 @@ import BooleanField from '@/components/BooleanField';
|
|
|
3
3
|
import EnumField from '@/components/EnumField';
|
|
4
4
|
import FormField from '@/components/FormField';
|
|
5
5
|
import FormLabel from '@/components/FormLabel';
|
|
6
|
-
import NullField from '@/components/NullField';
|
|
7
6
|
import NumberField from '@/components/NumberField';
|
|
8
7
|
import ObjectField from '@/components/ObjectField';
|
|
9
8
|
import UniversalField from '@/components/UniversalField';
|
|
@@ -20,7 +19,6 @@ function MuiInputForm<T>(props: InputFormLibraryProps<T>) {
|
|
|
20
19
|
EnumField: EnumField,
|
|
21
20
|
FormField: FormField,
|
|
22
21
|
FormLabel: FormLabel,
|
|
23
|
-
NullField: NullField,
|
|
24
22
|
NumberField: NumberField,
|
|
25
23
|
ObjectField: ObjectField,
|
|
26
24
|
UniversalField: UniversalField,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
var react_1 = __importDefault(require("react"));
|
|
7
|
-
exports.default = (function () { return react_1.default.createElement("div", null, "No value"); });
|
|
8
|
-
//# sourceMappingURL=NullField.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NullField.js","sourceRoot":"","sources":["../../src/components/NullField.tsx"],"names":[],"mappings":";;;;;AAAA,gDAA0B;AAC1B,mBAAe,cAAM,OAAA,sDAAmB,EAAnB,CAAmB,EAAC"}
|