@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.
@@ -1,8 +1,5 @@
1
-
2
- > @twintag/twintag-form@1.7.2 build /home/runner/work/twintag-admin/twintag-admin/packages/twintag-form
3
- > tsc && vite build
4
-
5
- vite v7.3.2 building client environment for production...
1
+ $ tsc && vite build
2
+ vite v7.3.5 building client environment for production...
6
3
  transforming...
7
4
  ✓ 57 modules transformed.
8
5
  rendering chunks...
@@ -11,12 +8,8 @@ rendering chunks...
11
8
  computing gzip size...
12
9
  dist/webcomponent.js  30.19 kB │ gzip: 5.67 kB
13
10
  dist/index.js 126.49 kB │ gzip: 26.38 kB
14
- [unplugin:dts] Outside emitted: /home/runner/work/twintag-admin/twintag-admin/packages/twintag-form/twind.config.d.ts
15
- [unplugin:dts] Outside emitted: /home/runner/work/twintag-admin/twintag-admin/packages/twintag-form/tailwind.config.d.ts
16
- [unplugin:dts] Outside emitted: /home/runner/work/twintag-admin/twintag-admin/packages/twintag-form/dev/main.d.ts
17
- [unplugin:dts] Outside emitted: /home/runner/work/twintag-admin/twintag-admin/packages/twintag-form/vite.config.d.ts
18
- [unplugin:dts] Declaration files built in 7534ms.
11
+ [unplugin:dts] Declaration files built in 7059ms.
19
12
  
20
13
  dist/webcomponent.cjs 18.98 kB │ gzip: 5.13 kB
21
14
  dist/index.cjs 87.62 kB │ gzip: 22.14 kB
22
- ✓ built in 8.39s
15
+ ✓ built in 7.83s
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, AccordionContent };
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): import("react/jsx-runtime").JSX.Element;
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
  }
@@ -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>(props: FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
7
- declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => import("react/jsx-runtime").JSX.Element;
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< SlotProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
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 { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField, };
86
+ export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField, };
@@ -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, PopoverTrigger, PopoverContent };
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/jsx-runtime").JSX.Element;
12
+ } & WithChildren) => import("react").JSX.Element;
13
13
  export {};
@@ -1 +1 @@
1
- export declare const JsonRenderer: () => import("react/jsx-runtime").JSX.Element;
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;
@@ -0,0 +1,6 @@
1
+ import { TwindConfig, BaseTheme } from '@twind/core';
2
+ import { TailwindTheme } from '@twind/preset-tailwind';
3
+ declare const _default: TwindConfig< BaseTheme & TailwindTheme & {
4
+ extend: never;
5
+ }>;
6
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { UserConfig } from 'vite';
2
+ export declare const __dirname: string;
3
+ declare const _default: UserConfig;
4
+ export default _default;
@@ -74,4 +74,4 @@ const AccordionContent = React.forwardRef<
74
74
 
75
75
  AccordionContent.displayName = AccordionPrimitive.Content.displayName;
76
76
 
77
- export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
77
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
@@ -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
  };
@@ -27,4 +27,4 @@ const PopoverContent = React.forwardRef<
27
27
  });
28
28
  PopoverContent.displayName = PopoverPrimitive.Content.displayName;
29
29
 
30
- export { Popover, PopoverTrigger, PopoverContent };
30
+ export { Popover, PopoverContent, PopoverTrigger };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twintag/twintag-form",
3
- "version": "1.7.2",
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.1.1",
20
- "@r2wc/react-to-web-component": "^2.0.3",
21
- "@radix-ui/react-accordion": "^1.1.2",
22
- "@radix-ui/react-checkbox": "^1.0.4",
23
- "@radix-ui/react-icons": "^1.3.0",
24
- "@radix-ui/react-label": "^2.0.2",
25
- "@radix-ui/react-popover": "^1.0.7",
26
- "@radix-ui/react-radio-group": "^1.1.3",
27
- "@radix-ui/react-slider": "^1.1.2",
28
- "@radix-ui/react-slot": "^1.0.2",
29
- "@radix-ui/react-switch": "^1.0.2",
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.0",
35
- "date-fns": "^3.3.1",
34
+ "clsx": "^2.1.1",
35
+ "date-fns": "^3.6.0",
36
36
  "lucide-react": "0.543.0",
37
- "react": "^19.2.4",
38
- "react-day-picker": "^8.10.0",
39
- "react-dom": "^19.2.4",
40
- "react-hook-form": "^7.50.1",
41
- "tailwind-merge": "^2.2.1",
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
  },