@twintag/twintag-form 1.2.0 → 1.2.1

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
1
 
2
- > @twintag/twintag-form@1.2.0 build /home/runner/work/twintag-admin/twintag-admin/packages/twintag-form
2
+ > @twintag/twintag-form@1.2.1 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...
6
6
  transforming...
7
7
  ✓ 2526 modules transformed.
8
8
  rendering chunks...
9
- 
10
- [vite:dts] Start generate declaration files...
9
+
10
+ [vite:dts] Start generate declaration files...
11
11
  computing gzip size...
12
- [vite:dts] Outside emitted: /home/runner/work/twintag-admin/twintag-admin/packages/twintag-form/tailwind.config.d.ts
13
- [vite:dts] Outside emitted: /home/runner/work/twintag-admin/twintag-admin/packages/twintag-form/.eslintrc.d.cts
14
- [vite:dts] Outside emitted: /home/runner/work/twintag-admin/twintag-admin/packages/twintag-form/prettier.config.d.mts
15
- dist/twintag-form.webcomponent.js 119.72 kB │ gzip: 33.49 kB
16
- dist/twintag-form.react.js 687.86 kB │ gzip: 139.95 kB
17
- [vite:dts] Outside emitted: /home/runner/work/twintag-admin/twintag-admin/packages/twintag-form/dev/main.d.ts
18
- [vite:dts] Outside emitted: /home/runner/work/twintag-admin/twintag-admin/packages/twintag-form/vite.config.d.ts
19
- [vite:dts] Declaration files built in 7394ms.
20
- 
21
- ✓ built in 14.10s
12
+ [vite:dts] Outside emitted: C:/Users/daryl/Desktop/twintag-projects/twintag-admin/packages/twintag-form/tailwind.config.d.ts
13
+ [vite:dts] Outside emitted: C:/Users/daryl/Desktop/twintag-projects/twintag-admin/packages/twintag-form/.eslintrc.d.cts
14
+ [vite:dts] Outside emitted: C:/Users/daryl/Desktop/twintag-projects/twintag-admin/packages/twintag-form/prettier.config.d.mts
15
+ [vite:dts] Outside emitted: C:/Users/daryl/Desktop/twintag-projects/twintag-admin/packages/twintag-form/dev/main.d.ts
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.
18
+
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
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @twintag/twintag-form
2
2
 
3
+ ## 1.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 2a66cb3: fix: allow `ref` for React usage
8
+
3
9
  ## 1.2.0
4
10
 
5
11
  ### Minor Changes
package/dev/index.css CHANGED
@@ -1,32 +1,32 @@
1
- @import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
2
-
3
- @tailwind base;
4
- @tailwind components;
5
- @tailwind utilities;
6
-
7
- :root {
8
- --tf-label: 222.2 47.4% 11.2%;
9
- --tf-category: 222.2 47.4% 11.2%;
10
-
11
- --tf-background: 0 0% 100%;
12
- --tf-foreground: 0 0% 0%;
13
-
14
- --tf-muted: 210 40% 96.1%;
15
- --tf-muted-foreground: 215.4 16.3% 46.9%;
16
-
17
- --tf-primary: 210 40% 98%;
18
- --tf-primary-foreground: 222.2 47.4% 11.2%;
19
-
20
- --tf-accent: 222.2 47.4% 11.2%;
21
- --tf-accent-foreground: 210 40% 96.1%;
22
-
23
- --tf-destructive: 0 100% 50%;
24
- --tf-destructive-foreground: 210 40% 98%;
25
-
26
- --tf-input: 214.3 31.8% 91.4%;
27
- --tf-ring: 215 20.2% 65.1%;
28
-
29
- --tf-radius: 0.5rem;
30
-
31
- --tf-font: 'Roboto', sans-serif;
32
- }
1
+ @import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
2
+
3
+ @tailwind base;
4
+ @tailwind components;
5
+ @tailwind utilities;
6
+
7
+ :root {
8
+ --tf-label: 222.2 47.4% 11.2%;
9
+ --tf-category: 222.2 47.4% 11.2%;
10
+
11
+ --tf-background: 0 0% 100%;
12
+ --tf-foreground: 0 0% 0%;
13
+
14
+ --tf-muted: 210 40% 96.1%;
15
+ --tf-muted-foreground: 215.4 16.3% 46.9%;
16
+
17
+ --tf-primary: 210 40% 98%;
18
+ --tf-primary-foreground: 222.2 47.4% 11.2%;
19
+
20
+ --tf-accent: 222.2 47.4% 11.2%;
21
+ --tf-accent-foreground: 210 40% 96.1%;
22
+
23
+ --tf-destructive: 0 100% 50%;
24
+ --tf-destructive-foreground: 210 40% 98%;
25
+
26
+ --tf-input: 214.3 31.8% 91.4%;
27
+ --tf-ring: 215 20.2% 65.1%;
28
+
29
+ --tf-radius: 0.5rem;
30
+
31
+ --tf-font: 'Roboto', sans-serif;
32
+ }
@@ -1,9 +1,9 @@
1
- import { JSX } from 'react/jsx-runtime';
1
+ import { ForwardRefExoticComponent, ReactNode, RefAttributes } from 'react';
2
+ /// <reference types="react" />
2
3
  import type { FieldValues } from 'react-hook-form';
3
- import type { WithChildren } from 'twintag-types/dom';
4
- type Props = {
5
- defaultValues?: FieldValues;
6
- resetOnSubmit?: boolean;
7
- } & WithChildren;
8
- export declare const TwintagForm: ({ defaultValues, resetOnSubmit, children, }: Props) => JSX.Element;
9
- export {};
4
+ export declare const TwintagForm: ForwardRefExoticComponent<{
5
+ defaultValues?: FieldValues | undefined;
6
+ resetOnSubmit?: boolean | undefined;
7
+ } & {
8
+ children?: ReactNode;
9
+ } & RefAttributes<HTMLFormElement>>;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import { JSX } from 'react/jsx-runtime';
2
- import type { ComponentProps } from 'react';
1
+ import { ForwardRefExoticComponent, RefAttributes, ComponentProps } from 'react';
3
2
  import type { RawJsonComponent } from './types';
4
3
  import { TwintagForm } from './components/form';
5
4
  import { TwintagFormProvider } from './provider';
@@ -11,5 +10,5 @@ type Props = {
11
10
  resetOnSubmit?: boolean;
12
11
  }>;
13
12
  };
14
- export declare const Form: ({ config, options }: Props) => JSX.Element;
13
+ export declare const Form: ForwardRefExoticComponent<Props & RefAttributes<HTMLFormElement>>;
15
14
  export {};