@yakad/ui 1.2.112-beta → 1.2.113-beta
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/form/form.d.ts +4 -1
- package/form/form.js +1 -1
- package/form/form.js.map +1 -1
- package/form/form.tsx +6 -2
- package/package.json +1 -1
package/form/form.d.ts
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export
|
|
2
|
+
export interface FormProps extends React.HTMLAttributes<HTMLFormElement> {
|
|
3
|
+
action?: string;
|
|
4
|
+
}
|
|
5
|
+
export default function Form(props: FormProps): JSX.Element;
|
package/form/form.js
CHANGED
|
@@ -3,6 +3,6 @@ import { joinClassNames } from "@yakad/lib";
|
|
|
3
3
|
import styles from "./form.module.css";
|
|
4
4
|
export default function Form(props) {
|
|
5
5
|
const joinedClassNames = joinClassNames(styles.form, props.className);
|
|
6
|
-
return (React.createElement("form", { ...props, className: joinedClassNames }, props.children));
|
|
6
|
+
return (React.createElement("form", { ...props, action: props.action, className: joinedClassNames }, props.children));
|
|
7
7
|
}
|
|
8
8
|
//# sourceMappingURL=form.js.map
|
package/form/form.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.js","sourceRoot":"","sources":["form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAc,MAAM,YAAY,CAAC;AACxD,OAAO,MAAM,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"form.js","sourceRoot":"","sources":["form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAc,MAAM,YAAY,CAAC;AACxD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAMvC,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,KAAgB;IACzC,MAAM,gBAAgB,GAAG,cAAc,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,SAAU,CAAC,CAAC;IAEvE,OAAO,CACH,iCAAU,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,SAAS,EAAE,gBAAgB,IAC7D,KAAK,CAAC,QAAe,CACnB,CACV,CAAC;AACN,CAAC"}
|
package/form/form.tsx
CHANGED
|
@@ -2,11 +2,15 @@ import React from "react";
|
|
|
2
2
|
import { joinClassNames, joinStyles } from "@yakad/lib";
|
|
3
3
|
import styles from "./form.module.css";
|
|
4
4
|
|
|
5
|
-
export
|
|
5
|
+
export interface FormProps extends React.HTMLAttributes<HTMLFormElement> {
|
|
6
|
+
action?: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export default function Form(props: FormProps) {
|
|
6
10
|
const joinedClassNames = joinClassNames(styles.form, props.className!);
|
|
7
11
|
|
|
8
12
|
return (
|
|
9
|
-
<form {...props} className={joinedClassNames}>
|
|
13
|
+
<form {...props} action={props.action} className={joinedClassNames}>
|
|
10
14
|
{props.children as any}
|
|
11
15
|
</form>
|
|
12
16
|
);
|