@boxcustodia/library 2.0.0-alpha.14 → 2.0.0-alpha.16

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 (30) hide show
  1. package/dist/index.cjs.js +1 -1
  2. package/dist/index.d.ts +8 -10
  3. package/dist/index.es.js +1189 -1209
  4. package/package.json +1 -1
  5. package/src/__doc__/Changelog.mdx +6 -6
  6. package/src/__doc__/V2.mdx +8 -9
  7. package/src/components/auto-complete/auto-complete.stories.tsx +0 -1
  8. package/src/components/button/button.stories.tsx +31 -14
  9. package/src/components/button/button.tsx +10 -34
  10. package/src/components/button/components/base-button.tsx +8 -13
  11. package/src/components/calendar/calendar.tsx +1 -1
  12. package/src/components/card/card.stories.tsx +0 -1
  13. package/src/components/combobox/combobox.tsx +1 -1
  14. package/src/components/date-picker/date-input.tsx +1 -1
  15. package/src/components/date-picker/date-picker.tsx +1 -1
  16. package/src/components/dropzone/dropzone.stories.tsx +0 -1
  17. package/src/components/empty/empty.stories.tsx +0 -1
  18. package/src/components/input/input.tsx +1 -1
  19. package/src/components/menu/menu.stories.tsx +0 -1
  20. package/src/components/menu/menu.tsx +4 -4
  21. package/src/components/number-input/number-input.tsx +4 -4
  22. package/src/components/pagination/pagination.stories.tsx +0 -1
  23. package/src/components/password/password.tsx +1 -1
  24. package/src/components/stepper/stepper.stories.tsx +0 -1
  25. package/src/components/tabs/tabs.stories.tsx +0 -1
  26. package/src/components/tag/tag.stories.tsx +20 -27
  27. package/src/components/tag/tag.tsx +5 -1
  28. package/src/components/timeline/timeline.stories.tsx +0 -1
  29. package/src/components/tree/tree.stories.tsx +0 -1
  30. package/src/utils/form.tsx +2 -0
@@ -44,8 +44,10 @@ export function useHookForm<T extends FieldValues = FieldValues>(
44
44
  schema: z.ZodType<T>,
45
45
  options?: Partial<UseFormProps<T>>,
46
46
  ): UseFormReturn<T> {
47
+ // @ts-expect-error RHF's UseFormReturn has 3 generics; narrowing to <T> is safe here.
47
48
  return rhfUseForm<T>({
48
49
  ...options,
50
+ // @ts-expect-error zodResolver returns Resolver<any, any, any>; incompatible with Resolver<T, any, T>.
49
51
  resolver: zodResolver(schema as any),
50
52
  });
51
53
  }