@twintag/twintag-form 1.2.1 → 1.3.0

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,5 +1,5 @@
1
1
 
2
- > @twintag/twintag-form@1.2.1 build C:\Users\daryl\Desktop\twintag-projects\twintag-admin\packages\twintag-form
2
+ > @twintag/twintag-form@1.3.0 build C:\Users\daryl\Desktop\twintag-projects\twintag-admin\packages\twintag-form
3
3
  > tsc && vite build
4
4
 
5
5
  vite v4.4.9 building for production...
@@ -14,8 +14,8 @@ computing gzip size...
14
14
  [vite:dts] Outside emitted: C:/Users/daryl/Desktop/twintag-projects/twintag-admin/packages/twintag-form/prettier.config.d.mts
15
15
  [vite:dts] Outside emitted: C:/Users/daryl/Desktop/twintag-projects/twintag-admin/packages/twintag-form/dev/main.d.ts
16
16
  [vite:dts] Outside emitted: C:/Users/daryl/Desktop/twintag-projects/twintag-admin/packages/twintag-form/vite.config.d.ts
17
- [vite:dts] Declaration files built in 4789ms.
17
+ [vite:dts] Declaration files built in 4856ms.
18
18
 
19
19
  dist/twintag-form.webcomponent.js 119.76 kB │ gzip: 33.52 kB
20
- dist/twintag-form.react.js 688.05 kB │ gzip: 139.98 kB
21
- ✓ built in 10.27s
20
+ dist/twintag-form.react.js 688.06 kB │ gzip: 139.99 kB
21
+ ✓ built in 10.47s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @twintag/twintag-form
2
2
 
3
+ ## 1.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - fix: add missing `ref` (form)
8
+
3
9
  ## 1.2.1
4
10
 
5
11
  ### Patch Changes
@@ -21915,12 +21915,13 @@ const za = (e, t) => {
21915
21915
  ) });
21916
21916
  }
21917
21917
  ), b$ = we(
21918
- ({ config: e, options: t }) => /* @__PURE__ */ k.jsx(f8, { variant: t == null ? void 0 : t.variant, components: QR, children: /* @__PURE__ */ k.jsx(
21918
+ ({ config: e, options: t }, r) => /* @__PURE__ */ k.jsx(f8, { variant: t == null ? void 0 : t.variant, components: QR, children: /* @__PURE__ */ k.jsx(
21919
21919
  l$,
21920
21920
  {
21921
+ ref: r,
21921
21922
  defaultValues: t == null ? void 0 : t.defaultValues,
21922
21923
  resetOnSubmit: t == null ? void 0 : t.resetOnSubmit,
21923
- children: e.map((r, n) => /* @__PURE__ */ k.jsx(c$, { config: r }, n))
21924
+ children: e.map((n, a) => /* @__PURE__ */ k.jsx(c$, { config: n }, a))
21924
21925
  }
21925
21926
  ) })
21926
21927
  );
package/lib/index.tsx CHANGED
@@ -18,10 +18,11 @@ type Props = {
18
18
  };
19
19
 
20
20
  export const Form = forwardRef<HTMLFormElement, Props>(
21
- ({ config, options }) => {
21
+ ({ config, options }, ref) => {
22
22
  return (
23
23
  <TwintagFormProvider variant={options?.variant} components={components}>
24
24
  <TwintagForm
25
+ ref={ref}
25
26
  defaultValues={options?.defaultValues}
26
27
  resetOnSubmit={options?.resetOnSubmit}
27
28
  >
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twintag/twintag-form",
3
- "version": "1.2.1",
3
+ "version": "1.3.0",
4
4
  "author": "Twintag",
5
5
  "type": "module",
6
6
  "exports": {