@yakad/ui 1.2.112-beta → 1.2.114-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 CHANGED
@@ -1,2 +1,5 @@
1
1
  import React from "react";
2
- export default function Form(props: React.HTMLAttributes<HTMLFormElement>): JSX.Element;
2
+ export interface FormProps extends React.HTMLAttributes<HTMLFormElement> {
3
+ action?: any;
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;AAEvC,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,KAA4C;IACrE,MAAM,gBAAgB,GAAG,cAAc,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,SAAU,CAAC,CAAC;IAEvE,OAAO,CACH,iCAAU,KAAK,EAAE,SAAS,EAAE,gBAAgB,IACvC,KAAK,CAAC,QAAe,CACnB,CACV,CAAC;AACN,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 default function Form(props: React.HTMLAttributes<HTMLFormElement>) {
5
+ export interface FormProps extends React.HTMLAttributes<HTMLFormElement> {
6
+ action?: any;
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
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yakad/ui",
3
- "version": "1.2.112-beta",
3
+ "version": "1.2.114-beta",
4
4
  "description": "UI components for NextJS/React",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {