@twintag/twintag-form 1.7.2 → 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 +4 -11
- package/CHANGELOG.md +12 -2
- package/dist/common/accordion.d.ts +1 -1
- package/dist/common/calendar.d.ts +1 -1
- package/dist/common/form.d.ts +6 -5
- package/dist/common/popover.d.ts +1 -1
- 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/lib/common/accordion.tsx +1 -1
- package/lib/common/form.tsx +4 -4
- package/lib/common/popover.tsx +1 -1
- package/package.json +19 -27
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
> tsc && vite build
|
|
4
|
-
|
|
5
|
-
[36mvite v7.3.2 [32mbuilding client environment for production...[36m[39m
|
|
1
|
+
$ tsc && vite build
|
|
2
|
+
[36mvite v7.3.5 [32mbuilding client environment for production...[36m[39m
|
|
6
3
|
transforming...
|
|
7
4
|
[32m✓[39m 57 modules transformed.
|
|
8
5
|
rendering chunks...
|
|
@@ -11,12 +8,8 @@ rendering chunks...
|
|
|
11
8
|
computing gzip size...
|
|
12
9
|
[2mdist/[22m[36mwebcomponent.js [39m[1m[2m 30.19 kB[22m[1m[22m[2m │ gzip: 5.67 kB[22m
|
|
13
10
|
[2mdist/[22m[36mindex.js [39m[1m[2m126.49 kB[22m[1m[22m[2m │ gzip: 26.38 kB[22m
|
|
14
|
-
[36m[unplugin:dts][
|
|
15
|
-
[36m[unplugin:dts][39m [33mOutside emitted:[39m /home/runner/work/twintag-admin/twintag-admin/packages/twintag-form/tailwind.config.d.ts
|
|
16
|
-
[36m[unplugin:dts][39m [33mOutside emitted:[39m /home/runner/work/twintag-admin/twintag-admin/packages/twintag-form/dev/main.d.ts
|
|
17
|
-
[36m[unplugin:dts][39m [33mOutside emitted:[39m /home/runner/work/twintag-admin/twintag-admin/packages/twintag-form/vite.config.d.ts
|
|
18
|
-
[32m[36m[unplugin:dts][32m Declaration files built in 7534ms.
|
|
11
|
+
[32m[36m[unplugin:dts][32m Declaration files built in 7059ms.
|
|
19
12
|
[39m
|
|
20
13
|
[2mdist/[22m[36mwebcomponent.cjs [39m[1m[2m18.98 kB[22m[1m[22m[2m │ gzip: 5.13 kB[22m
|
|
21
14
|
[2mdist/[22m[36mindex.cjs [39m[1m[2m87.62 kB[22m[1m[22m[2m │ gzip: 22.14 kB[22m
|
|
22
|
-
[32m✓ built in
|
|
15
|
+
[32m✓ built in 7.83s[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
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
|
+
|
|
9
|
+
## 1.7.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#479](https://github.com/esoptra/twintag-admin/pull/479) [`ef37712`](https://github.com/esoptra/twintag-admin/commit/ef377126de5b8848b68f7d173810785fbc900d1d) Thanks [@leweyse](https://github.com/leweyse)! - chore: repository maintenance
|
|
14
|
+
|
|
3
15
|
## 1.7.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -190,7 +202,6 @@
|
|
|
190
202
|
### Minor Changes
|
|
191
203
|
|
|
192
204
|
- b7c2725: Update
|
|
193
|
-
|
|
194
205
|
- feat: editor.
|
|
195
206
|
- fix: refinements to integrate components to editor.
|
|
196
207
|
- fix: update `twintag-json-renderer` to accept editor output format.
|
|
@@ -219,7 +230,6 @@
|
|
|
219
230
|
### Minor Changes
|
|
220
231
|
|
|
221
232
|
- 133bddb: Categories
|
|
222
|
-
|
|
223
233
|
- feat: category component.
|
|
224
234
|
- fix: add `FC` as components' type.
|
|
225
235
|
- fix: update stories.
|
|
@@ -4,4 +4,4 @@ declare const Accordion: React.ForwardRefExoticComponent<(AccordionPrimitive.Acc
|
|
|
4
4
|
declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
6
6
|
declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
-
export { Accordion, AccordionItem, AccordionTrigger
|
|
7
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
|
|
@@ -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;
|
|
@@ -82,4 +83,4 @@ declare const FormMessage: React.ForwardRefExoticComponent<React.HTMLAttributes<
|
|
|
82
83
|
base: string;
|
|
83
84
|
};
|
|
84
85
|
}, undefined, "font-medium text-tf-destructive", unknown, unknown, undefined>>> & React.RefAttributes<HTMLParagraphElement>>;
|
|
85
|
-
export {
|
|
86
|
+
export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField, };
|
package/dist/common/popover.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
|
3
3
|
declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
4
4
|
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
5
|
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
-
export { Popover,
|
|
6
|
+
export { Popover, PopoverContent, PopoverTrigger };
|
|
@@ -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/lib/common/accordion.tsx
CHANGED
|
@@ -74,4 +74,4 @@ const AccordionContent = React.forwardRef<
|
|
|
74
74
|
|
|
75
75
|
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
76
76
|
|
|
77
|
-
export { Accordion, AccordionItem, AccordionTrigger
|
|
77
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
|
package/lib/common/form.tsx
CHANGED
|
@@ -215,12 +215,12 @@ const FormMessage = React.forwardRef<
|
|
|
215
215
|
FormMessage.displayName = 'FormMessage';
|
|
216
216
|
|
|
217
217
|
export {
|
|
218
|
-
useFormField,
|
|
219
218
|
Form,
|
|
220
|
-
FormItem,
|
|
221
|
-
FormLabel,
|
|
222
219
|
FormControl,
|
|
223
220
|
FormDescription,
|
|
224
|
-
FormMessage,
|
|
225
221
|
FormField,
|
|
222
|
+
FormItem,
|
|
223
|
+
FormLabel,
|
|
224
|
+
FormMessage,
|
|
225
|
+
useFormField,
|
|
226
226
|
};
|
package/lib/common/popover.tsx
CHANGED
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,39 +16,31 @@
|
|
|
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
|
-
"devDependencies": {
|
|
45
|
-
"@twind/with-react": "^1.1.3",
|
|
46
|
-
"@vitejs/plugin-react-swc": "^4.1.0",
|
|
47
|
-
"vite": "^7.3.2",
|
|
48
|
-
"unplugin-dts": "^1.0.0",
|
|
49
|
-
"tsconfig": "0.0.0",
|
|
50
|
-
"twintag-types": "0.6.0"
|
|
51
|
-
},
|
|
52
44
|
"publishConfig": {
|
|
53
45
|
"access": "public"
|
|
54
46
|
},
|