@ttoss/forms 0.14.4 → 0.14.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +7 -2
  2. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -5,7 +5,9 @@ export * from 'react-hook-form';
5
5
  import * as yup from 'yup';
6
6
  export { yup };
7
7
  import * as React from 'react';
8
- import { BoxProps, CheckboxProps, InputProps, RadioProps, SelectProps, TextareaProps } from '@ttoss/ui';
8
+ import { BoxProps, CheckboxProps, RadioProps, SelectProps, TextareaProps } from '@ttoss/ui';
9
+ import * as iconify_icon from 'iconify-icon';
10
+ import * as theme_ui from 'theme-ui';
9
11
 
10
12
  declare const Form: <TFieldValues extends FieldValues = FieldValues>({ children, onSubmit, sx, ...formMethods }: {
11
13
  children?: React.ReactNode;
@@ -31,7 +33,10 @@ declare const FormFieldCheckbox: <TFieldValues extends FieldValues = FieldValues
31
33
  declare const FormFieldInput: <TFieldValues extends FieldValues = FieldValues, TName extends react_hook_form.Path<TFieldValues> = react_hook_form.Path<TFieldValues>>({ label, name, ...inputProps }: {
32
34
  label?: string | undefined;
33
35
  name: TName;
34
- } & InputProps) => JSX.Element;
36
+ } & theme_ui.InputProps & {
37
+ leadingIcon?: React.ReactNode | iconify_icon.IconifyIcon;
38
+ trailingIcon?: React.ReactNode | iconify_icon.IconifyIcon;
39
+ }) => JSX.Element;
35
40
 
36
41
  type FormRadioOption$1 = {
37
42
  value: string | number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/forms",
3
- "version": "0.14.4",
3
+ "version": "0.14.5",
4
4
  "license": "UNLICENSED",
5
5
  "author": "ttoss",
6
6
  "contributors": [
@@ -31,7 +31,7 @@
31
31
  "devDependencies": {
32
32
  "@ttoss/config": "^1.28.2",
33
33
  "@ttoss/test-utils": "^1.20.4",
34
- "@ttoss/ui": "^1.30.4",
34
+ "@ttoss/ui": "^1.30.5",
35
35
  "@types/jest": "^29.4.0",
36
36
  "jest": "^29.4.3",
37
37
  "react": "^18.2.0",
@@ -41,5 +41,5 @@
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "d07df43f2a4a997636e950f5362a7a8090705c99"
44
+ "gitHead": "9a1d05dc6546c74a3f83835e4dcef00bc7040b6b"
45
45
  }