@saas-ui/forms 0.7.4 → 0.7.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/array-field.d.ts +4 -1
  3. package/dist/array-field.d.ts.map +1 -1
  4. package/dist/auto-form.d.ts +1 -0
  5. package/dist/auto-form.d.ts.map +1 -1
  6. package/dist/display-field.d.ts.map +1 -1
  7. package/dist/display-if.d.ts +4 -1
  8. package/dist/display-if.d.ts.map +1 -1
  9. package/dist/field.d.ts.map +1 -1
  10. package/dist/fields.d.ts.map +1 -1
  11. package/dist/form.d.ts +1 -0
  12. package/dist/form.d.ts.map +1 -1
  13. package/dist/index.js +1 -1
  14. package/dist/index.js.map +1 -1
  15. package/dist/index.modern.js +1 -1
  16. package/dist/index.modern.js.map +1 -1
  17. package/dist/layout.d.ts +4 -1
  18. package/dist/layout.d.ts.map +1 -1
  19. package/dist/object-field.d.ts.map +1 -1
  20. package/dist/submit-button.d.ts.map +1 -1
  21. package/dist/zod/index.js +1 -1
  22. package/dist/zod/index.js.map +1 -1
  23. package/dist/zod/index.modern.js +1 -1
  24. package/dist/zod/index.modern.js.map +1 -1
  25. package/dist/zod/{index.d.ts → zod/src/index.d.ts} +0 -0
  26. package/dist/zod/{index.d.ts.map → zod/src/index.d.ts.map} +0 -0
  27. package/dist/zod/{zod-resolver.d.ts → zod/src/zod-resolver.d.ts} +0 -0
  28. package/dist/zod/{zod-resolver.d.ts.map → zod/src/zod-resolver.d.ts.map} +0 -0
  29. package/package.json +2 -1
  30. package/src/array-field.tsx +33 -1
  31. package/src/auto-form.tsx +9 -1
  32. package/src/display-field.tsx +9 -0
  33. package/src/display-if.tsx +5 -0
  34. package/src/field.tsx +6 -0
  35. package/src/fields.tsx +5 -0
  36. package/src/form.tsx +8 -0
  37. package/src/layout.tsx +13 -1
  38. package/src/object-field.tsx +5 -0
  39. package/src/submit-button.tsx +5 -0
  40. package/zod/package.json +1 -0
@@ -5,6 +5,7 @@ import { useFormContext } from 'react-hook-form'
5
5
  import { Button, ButtonProps } from '@saas-ui/button'
6
6
 
7
7
  import { forwardRef } from '@chakra-ui/system'
8
+ import { __DEV__ } from '@chakra-ui/utils'
8
9
 
9
10
  export interface SubmitButtonProps extends ButtonProps {
10
11
  /**
@@ -52,3 +53,7 @@ SubmitButton.defaultProps = {
52
53
  disableIfUntouched: false,
53
54
  disableIfInvalid: false,
54
55
  }
56
+
57
+ if (__DEV__) {
58
+ SubmitButton.displayName = 'SubmitButton'
59
+ }
package/zod/package.json CHANGED
@@ -21,6 +21,7 @@
21
21
  "author": "Eelco Wiersma <eelco@appulse.nl>",
22
22
  "license": "MIT",
23
23
  "peerDependencies": {
24
+ "@chakra-ui/utils": "^1.10.4",
24
25
  "@hookform/resolvers": "^2.8.3",
25
26
  "react-hook-form": "^7.22.0",
26
27
  "zod": "^3.14.4"