Skip to content

Commit ec20279

Browse files
Updated exporting of components. Form component added.
1 parent 352f07c commit ec20279

File tree

3 files changed

+28
-4
lines changed

3 files changed

+28
-4
lines changed

packages/simplr-forms-dom/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "simplr-validation",
3-
"version": "4.0.0-alpha",
2+
"name": "simplr-forms-dom",
3+
"version": "4.0.0-pre-alpha.6",
44
"description": "DOM components for simplr-forms.",
55
"main": "dist/simplr-forms-dom.js",
66
"types": "@types/index.d.ts",
@@ -33,7 +33,7 @@
3333
"dependencies": {
3434
"@types/react": "^15.0.21",
3535
"react": "^15.5.4",
36-
"simplr-forms-core": "4.0.0-alpha"
36+
"simplr-forms-core": "^4.0.0-pre-alpha.3"
3737
},
3838
"jest": {
3939
"setupTestFrameworkScriptFile": "./node_modules/jest-enzyme/lib/index.js",
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
}
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
export * from "./text";
1+
import * as Form from "./form";
2+
import * as Text from "./text";
3+
4+
export {
5+
Form,
6+
Text
7+
};

0 commit comments

Comments
 (0)