@oneplatformdev/ui 0.0.1-beta.36 → 0.0.1-beta.37

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.
@@ -1,21 +1,21 @@
1
- import { jsx as r, jsxs as c } from "react/jsx-runtime";
2
- import { FormField as d, FormItem as F, FormLabel as a, FormMessage as i } from "./Form.mjs";
3
- const x = (e) => {
4
- const { form: n, name: m, label: o, render: t, ...l } = e;
1
+ import { jsx as r, jsxs as a } from "react/jsx-runtime";
2
+ import { FormField as d, FormItem as i, FormLabel as F, FormMessage as p } from "./Form.mjs";
3
+ const b = (e) => {
4
+ const { form: n, name: m, label: o, render: t, containerProps: l = {}, ...s } = e;
5
5
  return /* @__PURE__ */ r(
6
6
  d,
7
7
  {
8
8
  control: n.control,
9
9
  name: m,
10
- render: (s) => /* @__PURE__ */ c(F, { children: [
11
- !!o && /* @__PURE__ */ r(a, { children: o }),
12
- t(s),
13
- /* @__PURE__ */ r(i, {})
10
+ render: (c) => /* @__PURE__ */ a(i, { ...l, children: [
11
+ !!o && /* @__PURE__ */ r(F, { children: o }),
12
+ t(c),
13
+ /* @__PURE__ */ r(p, {})
14
14
  ] }),
15
- ...l
15
+ ...s
16
16
  }
17
17
  );
18
18
  };
19
19
  export {
20
- x as FormRenderControl
20
+ b as FormRenderControl
21
21
  };
@@ -14,5 +14,6 @@ export interface FormRenderControlProps<Data extends FieldValues> {
14
14
  name: FieldPath<Data>;
15
15
  label?: string;
16
16
  render: FormRenderProps<Data>;
17
+ containerProps?: React.HTMLAttributes<HTMLDivElement>;
17
18
  }
18
- export type FormRenderControlExtendProps<Data extends FieldValues> = Pick<FormRenderControlProps<Data>, 'form' | 'name' | 'label'>;
19
+ export type FormRenderControlExtendProps<Data extends FieldValues> = Omit<FormRenderControlProps<Data>, 'render'>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneplatformdev/ui",
3
- "version": "0.0.1-beta.36",
3
+ "version": "0.0.1-beta.37",
4
4
  "description": "UI React Components.",
5
5
  "author": "One Platform Development Team",
6
6
  "keywords": [