File tree Expand file tree Collapse file tree 3 files changed +28
-4
lines changed
packages/simplr-forms-dom Expand file tree Collapse file tree 3 files changed +28
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " simplr-validation " ,
3
- "version" : " 4.0.0-alpha" ,
2
+ "name" : " simplr-forms-dom " ,
3
+ "version" : " 4.0.0-pre- alpha.6 " ,
4
4
"description" : " DOM components for simplr-forms." ,
5
5
"main" : " dist/simplr-forms-dom.js" ,
6
6
"types" : " @types/index.d.ts" ,
33
33
"dependencies" : {
34
34
"@types/react" : " ^15.0.21" ,
35
35
"react" : " ^15.5.4" ,
36
- "simplr-forms-core" : " 4.0.0-alpha"
36
+ "simplr-forms-core" : " ^ 4.0.0-pre- alpha.3 "
37
37
},
38
38
"jest" : {
39
39
"setupTestFrameworkScriptFile" : " ./node_modules/jest-enzyme/lib/index.js" ,
Original file line number Diff line number Diff line change
1
+ import * as React from "react" ;
2
+ import { Abstractions as CoreAbstractions , Contracts as CoreContracts } from "simplr-forms-core" ;
3
+
4
+ export interface Props extends CoreContracts . FormProps , React . HTMLProps < HTMLFormElement > {
5
+
6
+ }
7
+
8
+ export interface FormProps extends Props {
9
+
10
+ }
11
+
12
+ export class Form extends CoreAbstractions . BaseForm < FormProps , { } > {
13
+ render ( ) {
14
+ return < form >
15
+ { this . props . children }
16
+ </ form > ;
17
+ }
18
+ }
Original file line number Diff line number Diff line change 1
- export * from "./text" ;
1
+ import * as Form from "./form" ;
2
+ import * as Text from "./text" ;
3
+
4
+ export {
5
+ Form ,
6
+ Text
7
+ } ;
You can’t perform that action at this time.
0 commit comments