@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.
- package/.turbo/turbo-build.log +4 -4
- package/CHANGELOG.md +6 -0
- package/dist/twintag-form.react.js +3 -2
- package/lib/index.tsx +2 -1
- package/package.json +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @twintag/twintag-form@1.
|
|
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
|
[36mvite v4.4.9 [32mbuilding for production...[36m[39m
|
|
@@ -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
|
|
17
|
+
[vite:dts] Declaration files built in 4856ms.
|
|
18
18
|
|
|
19
19
|
[2mdist/[22m[36mtwintag-form.webcomponent.js [39m[1m[2m119.76 kB[22m[1m[22m[2m │ gzip: 33.52 kB[22m
|
|
20
|
-
[2mdist/[22m[36mtwintag-form.react.js [39m[1m[33m688.
|
|
21
|
-
[32m✓ built in 10.
|
|
20
|
+
[2mdist/[22m[36mtwintag-form.react.js [39m[1m[33m688.06 kB[39m[22m[2m │ gzip: 139.99 kB[22m
|
|
21
|
+
[32m✓ built in 10.47s[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -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((
|
|
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
|
>
|