@twintag/twintag-form 1.6.2-beta.0 → 1.6.2

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 (46) hide show
  1. package/.turbo/turbo-build.log +22 -0
  2. package/CHANGELOG.md +14 -0
  3. package/dev/index.css +32 -32
  4. package/dist/common/accordion.d.ts +7 -0
  5. package/dist/common/button.d.ts +71 -0
  6. package/dist/common/calendar.d.ts +139 -0
  7. package/dist/common/checkbox.d.ts +4 -0
  8. package/dist/common/form.d.ts +86 -0
  9. package/dist/common/icon.d.ts +8 -0
  10. package/dist/common/input.d.ts +133 -0
  11. package/dist/common/label.d.ts +21 -0
  12. package/dist/common/popover.d.ts +6 -0
  13. package/dist/common/radiogroup.d.ts +5 -0
  14. package/dist/common/slider.d.ts +4 -0
  15. package/dist/common/switch.d.ts +4 -0
  16. package/dist/common/textarea.d.ts +68 -0
  17. package/dist/components/config.d.ts +6 -0
  18. package/dist/components/containers/accordion.d.ts +7 -0
  19. package/dist/components/containers/category.d.ts +8 -0
  20. package/dist/components/fields/checkbox.d.ts +5 -0
  21. package/dist/components/fields/date-picker.d.ts +4 -0
  22. package/dist/components/fields/file.d.ts +5 -0
  23. package/dist/components/fields/input.d.ts +5 -0
  24. package/dist/components/fields/radiogroup.d.ts +7 -0
  25. package/dist/components/fields/submit.d.ts +4 -0
  26. package/dist/components/fields/textarea.d.ts +5 -0
  27. package/dist/components/fields/toggle.d.ts +5 -0
  28. package/dist/components/fields/tri-toggle.d.ts +5 -0
  29. package/dist/components/form.d.ts +9 -0
  30. package/dist/components/input.d.ts +4 -0
  31. package/dist/components/label.d.ts +4 -0
  32. package/dist/components/provider.d.ts +14 -0
  33. package/dist/components/renderer.d.ts +1 -0
  34. package/dist/index.cjs +1 -0
  35. package/dist/index.d.ts +17 -0
  36. package/dist/index.js +4465 -0
  37. package/dist/types/index.d.ts +68 -0
  38. package/dist/utils/data.d.ts +7 -0
  39. package/dist/utils/string.d.ts +3 -0
  40. package/dist/utils/style.d.ts +3 -0
  41. package/dist/webcomponent.cjs +1 -0
  42. package/dist/webcomponent.d.ts +1 -0
  43. package/dist/webcomponent.js +1165 -0
  44. package/lib/webcomponent.ts +2 -3
  45. package/package.json +1 -1
  46. package/vite.config.ts +3 -1
@@ -1,13 +1,12 @@
1
1
  import r2wc from '@r2wc/react-to-web-component';
2
2
  import install from '@twind/with-web-components';
3
3
 
4
- import { Form } from '@twintag/twintag-form/index';
5
-
6
4
  import config from '../twind.config';
5
+ import { Form } from './index';
7
6
 
8
7
  const withTwind = install(config);
9
8
 
10
- const TwintagFormElement = r2wc(Form, {
9
+ export const TwintagFormElement = r2wc(Form, {
11
10
  props: {
12
11
  config: 'json',
13
12
  options: 'json',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twintag/twintag-form",
3
- "version": "1.6.2-beta.0",
3
+ "version": "1.6.2",
4
4
  "author": "Twintag",
5
5
  "type": "module",
6
6
  "exports": {
package/vite.config.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import { fileURLToPath } from 'node:url';
2
+
1
3
  import react from '@vitejs/plugin-react-swc';
2
4
  import { dirname, resolve } from 'pathe';
3
5
  import { defineConfig } from 'vite';
@@ -5,7 +7,7 @@ import dts from 'vite-plugin-dts';
5
7
 
6
8
  import { dependencies, devDependencies } from './package.json';
7
9
 
8
- export const __dirname = dirname(new URL(import.meta.url).pathname);
10
+ export const __dirname = dirname(fileURLToPath(import.meta.url));
9
11
 
10
12
  const externalPackages = [
11
13
  ...Object.keys(dependencies || {}),