@twintag/twintag-form 1.7.3 → 1.7.5

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,19 +1,15 @@
1
1
  $ tsc && vite build
2
- vite v7.3.2 building client environment for production...
2
+ vite v7.3.5 building client environment for production...
3
3
  transforming...
4
4
  ✓ 57 modules transformed.
5
5
  rendering chunks...
6
6
  
7
7
  [unplugin:dts] Start generate declaration files...
8
8
  computing gzip size...
9
- [unplugin:dts] Outside emitted: /home/runner/work/twintag-admin/twintag-admin/packages/twintag-form/twind.config.d.ts
10
9
  dist/webcomponent.js  30.19 kB │ gzip: 5.67 kB
11
10
  dist/index.js 126.49 kB │ gzip: 26.38 kB
12
- [unplugin:dts] Outside emitted: /home/runner/work/twintag-admin/twintag-admin/packages/twintag-form/tailwind.config.d.ts
13
- [unplugin:dts] Outside emitted: /home/runner/work/twintag-admin/twintag-admin/packages/twintag-form/dev/main.d.ts
14
- [unplugin:dts] Outside emitted: /home/runner/work/twintag-admin/twintag-admin/packages/twintag-form/vite.config.d.ts
15
- [unplugin:dts] Declaration files built in 6865ms.
11
+ [unplugin:dts] Declaration files built in 7016ms.
16
12
  
17
13
  dist/webcomponent.cjs 18.98 kB │ gzip: 5.13 kB
18
14
  dist/index.cjs 87.62 kB │ gzip: 22.14 kB
19
- ✓ built in 7.64s
15
+ ✓ built in 7.84s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @twintag/twintag-form
2
2
 
3
+ ## 1.7.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#524](https://github.com/esoptra/twintag-admin/pull/524) [`7a14c51`](https://github.com/esoptra/twintag-admin/commit/7a14c51ddd3bec55078809477288405f68085664) Thanks [@leweyse](https://github.com/leweyse)! - chore: move `react` to `peerDependencies`
8
+
9
+ ## 1.7.4
10
+
11
+ ### Patch Changes
12
+
13
+ - [#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
14
+
3
15
  ## 1.7.3
4
16
 
5
17
  ### 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): 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;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twintag/twintag-form",
3
- "version": "1.7.3",
3
+ "version": "1.7.5",
4
4
  "author": "Twintag",
5
5
  "type": "module",
6
6
  "exports": {
@@ -16,31 +16,33 @@
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-day-picker": "^8.10.2",
38
+ "react-hook-form": "^7.80.0",
39
+ "tailwind-merge": "^2.6.1",
42
40
  "uuid": "^11.1.1"
43
41
  },
42
+ "peerDependencies": {
43
+ "react": "^19.0.0",
44
+ "react-dom": "^19.0.0"
45
+ },
44
46
  "publishConfig": {
45
47
  "access": "public"
46
48
  },