@twintag/twintag-form 1.2.0 → 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 +13 -13
- package/CHANGELOG.md +12 -0
- package/dev/index.css +32 -32
- package/dist/components/form.d.ts +8 -8
- package/dist/index.d.ts +2 -3
- package/dist/twintag-form.react.js +2294 -2293
- package/dist/twintag-form.webcomponent.js +1 -0
- package/lib/components/form.tsx +79 -79
- package/lib/index.tsx +19 -14
- package/lib/webcomponent.ts +1 -0
- package/package.json +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
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
|
|
6
6
|
transforming...
|
|
7
7
|
[32m✓[39m 2526 modules transformed.
|
|
8
8
|
rendering chunks...
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
|
|
10
|
+
[vite:dts] Start generate declaration files...
|
|
11
11
|
computing gzip size...
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
[
|
|
20
|
-
[39m
|
|
21
|
-
[32m✓ built in
|
|
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 4856ms.
|
|
18
|
+
|
|
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.06 kB[39m[22m[2m │ gzip: 139.99 kB[22m
|
|
21
|
+
[32m✓ built in 10.47s[39m
|
package/CHANGELOG.md
CHANGED
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 {
|
|
1
|
+
import { ForwardRefExoticComponent, ReactNode, RefAttributes } from 'react';
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
import type { FieldValues } from 'react-hook-form';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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 {
|
|
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:
|
|
13
|
+
export declare const Form: ForwardRefExoticComponent<Props & RefAttributes<HTMLFormElement>>;
|
|
15
14
|
export {};
|