@twintag/twintag-form 1.7.3 → 1.7.4
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 +3 -7
- package/CHANGELOG.md +6 -0
- package/dist/common/calendar.d.ts +1 -1
- package/dist/common/form.d.ts +5 -4
- package/dist/components/provider.d.ts +1 -1
- package/dist/components/renderer.d.ts +1 -1
- package/dist/dev/main.d.ts +0 -0
- package/dist/tailwind.config.d.ts +54 -0
- package/dist/twind.config.d.ts +6 -0
- package/dist/vite.config.d.ts +4 -0
- package/package.json +19 -19
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
$ tsc && vite build
|
|
2
|
-
[36mvite v7.3.
|
|
2
|
+
[36mvite v7.3.5 [32mbuilding client environment for production...[36m[39m
|
|
3
3
|
transforming...
|
|
4
4
|
[32m✓[39m 57 modules transformed.
|
|
5
5
|
rendering chunks...
|
|
6
6
|
[32m
|
|
7
7
|
[36m[unplugin:dts][32m Start generate declaration files...[39m
|
|
8
8
|
computing gzip size...
|
|
9
|
-
[36m[unplugin:dts][39m [33mOutside emitted:[39m /home/runner/work/twintag-admin/twintag-admin/packages/twintag-form/twind.config.d.ts
|
|
10
9
|
[2mdist/[22m[36mwebcomponent.js [39m[1m[2m 30.19 kB[22m[1m[22m[2m │ gzip: 5.67 kB[22m
|
|
11
10
|
[2mdist/[22m[36mindex.js [39m[1m[2m126.49 kB[22m[1m[22m[2m │ gzip: 26.38 kB[22m
|
|
12
|
-
[36m[unplugin:dts][
|
|
13
|
-
[36m[unplugin:dts][39m [33mOutside emitted:[39m /home/runner/work/twintag-admin/twintag-admin/packages/twintag-form/dev/main.d.ts
|
|
14
|
-
[36m[unplugin:dts][39m [33mOutside emitted:[39m /home/runner/work/twintag-admin/twintag-admin/packages/twintag-form/vite.config.d.ts
|
|
15
|
-
[32m[36m[unplugin:dts][32m Declaration files built in 6865ms.
|
|
11
|
+
[32m[36m[unplugin:dts][32m Declaration files built in 7059ms.
|
|
16
12
|
[39m
|
|
17
13
|
[2mdist/[22m[36mwebcomponent.cjs [39m[1m[2m18.98 kB[22m[1m[22m[2m │ gzip: 5.13 kB[22m
|
|
18
14
|
[2mdist/[22m[36mindex.cjs [39m[1m[2m87.62 kB[22m[1m[22m[2m │ gzip: 22.14 kB[22m
|
|
19
|
-
[32m✓ built in 7.
|
|
15
|
+
[32m✓ built in 7.83s[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @twintag/twintag-form
|
|
2
2
|
|
|
3
|
+
## 1.7.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#521](https://github.com/esoptra/twintag-admin/pull/521) [`b53065c`](https://github.com/esoptra/twintag-admin/commit/b53065cb37747763c8639a359cee3fcbc9978e84) Thanks [@leweyse](https://github.com/leweyse)! - chore: update dependencies
|
|
8
|
+
|
|
3
9
|
## 1.7.3
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -132,7 +132,7 @@ declare const calendarVariants: TVReturnType<{
|
|
|
132
132
|
day_hidden: string;
|
|
133
133
|
}, undefined, unknown, unknown, undefined>>;
|
|
134
134
|
export type CalendarProps = React.ComponentProps<typeof DayPicker> & VariantProps<typeof calendarVariants>;
|
|
135
|
-
declare function Calendar({ size, className, classNames, showOutsideDays, ...props }: CalendarProps):
|
|
135
|
+
declare function Calendar({ size, className, classNames, showOutsideDays, ...props }: CalendarProps): React.JSX.Element;
|
|
136
136
|
declare namespace Calendar {
|
|
137
137
|
var displayName: string;
|
|
138
138
|
}
|
package/dist/common/form.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ControllerProps, FieldPath, FieldValues, FormProviderProps, FieldError } from 'react-hook-form';
|
|
2
2
|
import { VariantProps, TVReturnType } from 'tailwind-variants';
|
|
3
3
|
import { LabelProps } from '@radix-ui/react-label';
|
|
4
|
-
import { SlotProps } from '@radix-ui/react-slot';
|
|
5
4
|
import * as React from 'react';
|
|
6
|
-
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(
|
|
7
|
-
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) =>
|
|
5
|
+
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>({ children, watch, getValues, getFieldState, setError, clearErrors, setValue, setValues, trigger, formState, resetField, reset, handleSubmit, unregister, control, register, setFocus, subscribe, }: FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
6
|
+
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => React.JSX.Element;
|
|
8
7
|
declare const useFormField: () => {
|
|
9
8
|
invalid: boolean;
|
|
10
9
|
isDirty: boolean;
|
|
@@ -49,7 +48,9 @@ declare const FormLabel: React.ForwardRefExoticComponent<Omit<Omit< LabelProps &
|
|
|
49
48
|
base: string;
|
|
50
49
|
};
|
|
51
50
|
}, undefined, string[], unknown, unknown, undefined>>> & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
52
|
-
declare const FormControl: React.ForwardRefExoticComponent<Omit<
|
|
51
|
+
declare const FormControl: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLElement> & {
|
|
52
|
+
children?: React.ReactNode;
|
|
53
|
+
} & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
53
54
|
declare const FormDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & VariantProps< TVReturnType<{
|
|
54
55
|
size: {
|
|
55
56
|
sm: string;
|
|
@@ -9,5 +9,5 @@ export declare const getResetValues: (config: ParsedJsonComponent | ParsedJsonCo
|
|
|
9
9
|
};
|
|
10
10
|
export declare const TwintagFormProvider: ({ variant, size, inputs, components, config, acceptFileType, children, }: Omit<TwintagFormContext, "config" | "resetValues"> & {
|
|
11
11
|
config: RawJsonComponent | RawJsonComponent[];
|
|
12
|
-
} & WithChildren) => import("react
|
|
12
|
+
} & WithChildren) => import("react").JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const JsonRenderer: () => import("react
|
|
1
|
+
export declare const JsonRenderer: () => import("react").JSX.Element;
|
|
File without changes
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
declare const config: {
|
|
2
|
+
content: string[];
|
|
3
|
+
theme: {
|
|
4
|
+
extend: {
|
|
5
|
+
colors: {
|
|
6
|
+
'tf-category': string;
|
|
7
|
+
'tf-label': string;
|
|
8
|
+
'tf-background': string;
|
|
9
|
+
'tf-foreground': string;
|
|
10
|
+
'tf-primary': string;
|
|
11
|
+
'tf-primary-foreground': string;
|
|
12
|
+
'tf-accent': string;
|
|
13
|
+
'tf-accent-foreground': string;
|
|
14
|
+
'tf-destructive': string;
|
|
15
|
+
'tf-destructive-foreground': string;
|
|
16
|
+
'tf-muted': string;
|
|
17
|
+
'tf-muted-foreground': string;
|
|
18
|
+
'tf-input': string;
|
|
19
|
+
'tf-ring': string;
|
|
20
|
+
};
|
|
21
|
+
borderRadius: {
|
|
22
|
+
'tf-lg': string;
|
|
23
|
+
'tf-md': string;
|
|
24
|
+
'tf-sm': string;
|
|
25
|
+
};
|
|
26
|
+
fontFamily: {
|
|
27
|
+
'tf-font': [string, ...string[]];
|
|
28
|
+
};
|
|
29
|
+
keyframes: {
|
|
30
|
+
'accordion-down': {
|
|
31
|
+
from: {
|
|
32
|
+
height: string;
|
|
33
|
+
};
|
|
34
|
+
to: {
|
|
35
|
+
height: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
'accordion-up': {
|
|
39
|
+
from: {
|
|
40
|
+
height: string;
|
|
41
|
+
};
|
|
42
|
+
to: {
|
|
43
|
+
height: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
animation: {
|
|
48
|
+
'accordion-down': string;
|
|
49
|
+
'accordion-up': string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
export default config;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twintag/twintag-form",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.4",
|
|
4
4
|
"author": "Twintag",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -16,29 +16,29 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@heroicons/react": "^2.
|
|
20
|
-
"@r2wc/react-to-web-component": "^2.
|
|
21
|
-
"@radix-ui/react-accordion": "^1.
|
|
22
|
-
"@radix-ui/react-checkbox": "^1.
|
|
23
|
-
"@radix-ui/react-icons": "^1.3.
|
|
24
|
-
"@radix-ui/react-label": "^2.
|
|
25
|
-
"@radix-ui/react-popover": "^1.
|
|
26
|
-
"@radix-ui/react-radio-group": "^1.1
|
|
27
|
-
"@radix-ui/react-slider": "^1.1
|
|
28
|
-
"@radix-ui/react-slot": "^1.0
|
|
29
|
-
"@radix-ui/react-switch": "^1.
|
|
19
|
+
"@heroicons/react": "^2.2.0",
|
|
20
|
+
"@r2wc/react-to-web-component": "^2.1.1",
|
|
21
|
+
"@radix-ui/react-accordion": "^1.2.14",
|
|
22
|
+
"@radix-ui/react-checkbox": "^1.3.5",
|
|
23
|
+
"@radix-ui/react-icons": "^1.3.2",
|
|
24
|
+
"@radix-ui/react-label": "^2.1.10",
|
|
25
|
+
"@radix-ui/react-popover": "^1.1.17",
|
|
26
|
+
"@radix-ui/react-radio-group": "^1.4.1",
|
|
27
|
+
"@radix-ui/react-slider": "^1.4.1",
|
|
28
|
+
"@radix-ui/react-slot": "^1.3.0",
|
|
29
|
+
"@radix-ui/react-switch": "^1.3.1",
|
|
30
30
|
"@twind/core": "^1.1.3",
|
|
31
31
|
"@twind/preset-autoprefix": "^1.0.7",
|
|
32
32
|
"@twind/preset-tailwind": "^1.1.4",
|
|
33
33
|
"@twind/with-web-components": "^1.1.3",
|
|
34
|
-
"clsx": "^2.1.
|
|
35
|
-
"date-fns": "^3.
|
|
34
|
+
"clsx": "^2.1.1",
|
|
35
|
+
"date-fns": "^3.6.0",
|
|
36
36
|
"lucide-react": "0.543.0",
|
|
37
|
-
"react": "^19.2.
|
|
38
|
-
"react-day-picker": "^8.10.
|
|
39
|
-
"react-dom": "^19.2.
|
|
40
|
-
"react-hook-form": "^7.
|
|
41
|
-
"tailwind-merge": "^2.
|
|
37
|
+
"react": "^19.2.7",
|
|
38
|
+
"react-day-picker": "^8.10.2",
|
|
39
|
+
"react-dom": "^19.2.7",
|
|
40
|
+
"react-hook-form": "^7.80.0",
|
|
41
|
+
"tailwind-merge": "^2.6.1",
|
|
42
42
|
"uuid": "^11.1.1"
|
|
43
43
|
},
|
|
44
44
|
"publishConfig": {
|