@twintag/twintag-form 1.6.2-beta.1 → 1.7.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.
Files changed (57) hide show
  1. package/.turbo/turbo-build.log +16 -16
  2. package/CHANGELOG.md +241 -221
  3. package/README.md +407 -407
  4. package/dev/index.css +32 -32
  5. package/dev/main.tsx +461 -460
  6. package/dist/common/button.d.ts +0 -1
  7. package/dist/common/form.d.ts +0 -1
  8. package/dist/common/icon.d.ts +0 -1
  9. package/dist/common/input.d.ts +0 -1
  10. package/dist/common/label.d.ts +0 -1
  11. package/dist/common/textarea.d.ts +0 -1
  12. package/dist/components/config.d.ts +0 -1
  13. package/dist/components/containers/accordion.d.ts +1 -2
  14. package/dist/components/containers/category.d.ts +0 -1
  15. package/dist/components/fields/checkbox.d.ts +0 -1
  16. package/dist/components/fields/file.d.ts +0 -1
  17. package/dist/components/fields/input.d.ts +0 -1
  18. package/dist/components/fields/radiogroup.d.ts +0 -1
  19. package/dist/components/fields/submit.d.ts +0 -1
  20. package/dist/components/fields/textarea.d.ts +0 -1
  21. package/dist/components/fields/toggle.d.ts +0 -1
  22. package/dist/components/fields/tri-toggle.d.ts +0 -1
  23. package/dist/components/form.d.ts +0 -1
  24. package/dist/components/input.d.ts +0 -1
  25. package/dist/components/label.d.ts +0 -1
  26. package/dist/components/provider.d.ts +1 -2
  27. package/dist/index.cjs +1 -1
  28. package/dist/index.d.ts +0 -1
  29. package/dist/index.js +1437 -1601
  30. package/dist/types/index.d.ts +0 -1
  31. package/dist/utils/data.d.ts +0 -1
  32. package/dist/utils/style.d.ts +0 -1
  33. package/dist/webcomponent.cjs +1 -1
  34. package/dist/webcomponent.js +1118 -1104
  35. package/lib/common/icon.tsx +2 -1
  36. package/lib/components/config.tsx +1 -0
  37. package/lib/components/containers/accordion.tsx +3 -2
  38. package/lib/components/containers/category.tsx +1 -1
  39. package/lib/components/fields/checkbox.tsx +3 -6
  40. package/lib/components/fields/date-picker.tsx +151 -154
  41. package/lib/components/fields/file.tsx +81 -84
  42. package/lib/components/fields/input.tsx +67 -70
  43. package/lib/components/fields/radiogroup.tsx +3 -6
  44. package/lib/components/fields/submit.tsx +1 -0
  45. package/lib/components/fields/textarea.tsx +69 -72
  46. package/lib/components/fields/toggle.tsx +3 -6
  47. package/lib/components/fields/tri-toggle.tsx +3 -4
  48. package/lib/components/input.tsx +2 -1
  49. package/lib/components/label.tsx +1 -0
  50. package/lib/components/provider.tsx +163 -162
  51. package/lib/components/renderer.tsx +2 -1
  52. package/lib/index.tsx +46 -45
  53. package/lib/types/index.ts +102 -102
  54. package/lib/webcomponent.ts +1 -2
  55. package/package.json +9 -10
  56. package/prettier.config.mjs +1 -17
  57. package/vite.config.ts +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twintag/twintag-form",
3
- "version": "1.6.2-beta.1",
3
+ "version": "1.7.0",
4
4
  "author": "Twintag",
5
5
  "type": "module",
6
6
  "exports": {
@@ -33,10 +33,10 @@
33
33
  "@twind/with-web-components": "^1.1.3",
34
34
  "clsx": "^2.1.0",
35
35
  "date-fns": "^3.3.1",
36
- "lucide-react": "^0.269.0",
37
- "react": "^18.2.0",
36
+ "lucide-react": "0.543.0",
37
+ "react": "^19.2.4",
38
38
  "react-day-picker": "^8.10.0",
39
- "react-dom": "^18.2.0",
39
+ "react-dom": "^19.2.4",
40
40
  "react-hook-form": "^7.50.1",
41
41
  "tailwind-merge": "^2.2.1",
42
42
  "uuid": "^9.0.1"
@@ -44,11 +44,11 @@
44
44
  "devDependencies": {
45
45
  "@twind/with-react": "^1.1.3",
46
46
  "@types/uuid": "^9.0.7",
47
- "@vitejs/plugin-react-swc": "^3.6.0",
48
- "vite": "^5.2.11",
49
- "vite-plugin-dts": "^3.9.1",
47
+ "@vitejs/plugin-react-swc": "^4.1.0",
48
+ "vite": "^7.3.2",
49
+ "vite-plugin-dts": "^4.5.4",
50
50
  "tsconfig": "0.0.0",
51
- "twintag-types": "0.4.0"
51
+ "twintag-types": "0.6.0"
52
52
  },
53
53
  "publishConfig": {
54
54
  "access": "public"
@@ -56,7 +56,6 @@
56
56
  "scripts": {
57
57
  "dev": "vite",
58
58
  "build": "tsc && vite build",
59
- "format": "prettier --write \"**/*.{ts,md,tsx,cjs,mjs,json,html}\" --ignore-path ../../.gitignore",
60
- "format:check": "prettier --check \"**/*.{ts,md,tsx,cjs,mjs,json,html}\" --ignore-path ../../.gitignore"
59
+ "format": "prettier --write \"**/*.{ts,md,tsx,cjs,mjs,json,html}\" --ignore-path ../../.gitignore"
61
60
  }
62
61
  }
@@ -1,26 +1,10 @@
1
1
  import baseConfig from '../../prettier.config.mjs';
2
2
 
3
3
  /**
4
- * @type {import('prettier').Config & import('prettier-plugin-tailwindcss').PluginOptions &
5
- * import("@ianvs/prettier-plugin-sort-imports").PluginConfig}
4
+ * @type {import('prettier').Config & import('prettier-plugin-tailwindcss').PluginOptions
6
5
  */
7
6
  const config = {
8
7
  ...baseConfig,
9
- importOrder: [
10
- '<TYPES>^react$',
11
- '<TYPES>',
12
- '<TYPES>^@/.*$',
13
- '<TYPES>^[./]',
14
- '',
15
- '^zod$',
16
- '^react$',
17
- '<THIRD_PARTY_MODULES>',
18
- '',
19
- '^@twintag/twintag-form/.*$',
20
- '^@/.*$',
21
- '',
22
- '^[./]',
23
- ],
24
8
  };
25
9
 
26
10
  export default config;
package/vite.config.ts CHANGED
@@ -1,6 +1,7 @@
1
+ import { fileURLToPath } from 'node:url';
2
+
1
3
  import react from '@vitejs/plugin-react-swc';
2
4
  import { dirname, resolve } from 'pathe';
3
- import { fileURLToPath } from 'node:url'
4
5
  import { defineConfig } from 'vite';
5
6
  import dts from 'vite-plugin-dts';
6
7