@react-fabric/form 1.0.0-beta.49 → 1.0.0-beta.51

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.
@@ -4,7 +4,7 @@ export interface ControllerProps {
4
4
  * field name
5
5
  */
6
6
  name?: string;
7
- children: ReactElement | ((props: {
7
+ children: ReactElement<KeyValue> | ((props: {
8
8
  name: string;
9
9
  error?: string;
10
10
  checked: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type RefProp } from "@react-fabric/core/dist/types/types";
3
2
  interface CheckboxProps extends RefProp<HTMLInputElement> {
4
3
  /**
@@ -15,7 +15,7 @@ export interface ColorProps {
15
15
  /**
16
16
  * color value
17
17
  */
18
- value?: string;
18
+ value?: string | null;
19
19
  /**
20
20
  * change handler
21
21
  */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type ChildrenProp, type CssProp } from "@react-fabric/core/dist/types/types";
3
2
  export interface FieldProps extends ChildrenProp, CssProp {
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type RefProp } from "@react-fabric/core/dist/types/types";
3
2
  export interface RadioProps extends RefProp<HTMLInputElement> {
4
3
  name?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type ChildrenProp, type CssProp } from "@react-fabric/core/dist/types/types";
3
2
  import { type Radio } from "./Radio";
4
3
  export interface RadioGroupProps extends ChildrenProp<typeof Radio>, CssProp {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type ColorType, type RefProp } from "@react-fabric/core/dist/types/types";
3
2
  export interface SwitchProps extends RefProp<HTMLInputElement> {
4
3
  /**
@@ -18,7 +18,7 @@ type RangerConfig = {
18
18
  steps: number[];
19
19
  });
20
20
  export declare const useRanger: (opts: RangerConfig) => {
21
- trackElRef: import("react").RefObject<HTMLDivElement>;
21
+ trackElRef: import("react").RefObject<HTMLDivElement | null>;
22
22
  activeHandleIndex: number | undefined;
23
23
  ticks: {
24
24
  key: number;
@@ -33,7 +33,7 @@ export declare const useRanger: (opts: RangerConfig) => {
33
33
  value: number;
34
34
  active: boolean;
35
35
  props: {
36
- ref: import("react").RefObject<HTMLDivElement>;
36
+ ref: import("react").RefObject<HTMLDivElement | null>;
37
37
  onMouseDownCapture: (e: ME) => void;
38
38
  onTouchStartCapture: (e: TE) => void;
39
39
  } | {
@@ -27,20 +27,10 @@ export declare const useSelect: ({ options, value, defaultOpen, autoComplete, mu
27
27
  onSelect?: (item: AnyObject) => void;
28
28
  onChange?: (value: AnyObject) => void;
29
29
  }) => {
30
- state: State | {
31
- value: any;
32
- activeIndex: null;
33
- selectedIndex: any;
34
- multiple: boolean;
35
- emptyValue: AnyObject;
36
- open: boolean;
37
- loading: boolean;
38
- query?: string | undefined;
39
- items: AnyObject[];
40
- };
41
- listRef: import("react").MutableRefObject<HTMLElement[]>;
42
- focusableRef: import("react").RefObject<HTMLElement>;
43
- listContentRef: import("react").MutableRefObject<any[]>;
30
+ state: State;
31
+ listRef: import("react").RefObject<HTMLElement[]>;
32
+ focusableRef: import("react").RefObject<HTMLElement | null>;
33
+ listContentRef: import("react").RefObject<any[]>;
44
34
  handleChange: (value?: AnyObject) => void;
45
35
  handleRemove: (index?: number) => void;
46
36
  handleQuery: (query: string) => void;
@@ -4,7 +4,7 @@ export interface InputProps<V = string> extends TestProps {
4
4
  /**
5
5
  * value
6
6
  */
7
- value?: V;
7
+ value?: V | null;
8
8
  /**
9
9
  * change handler
10
10
  */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type Elements } from "@react-fabric/core/dist/types/types";
3
2
  import { type DateLike } from "@react-fabric/date";
4
3
  export declare enum DATA_TYPES {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-fabric/form",
3
- "version": "1.0.0-beta.49",
3
+ "version": "1.0.0-beta.51",
4
4
  "description": "RUF: Form package",
5
5
  "author": "Adarsh Pastakia <adarshpastakia@outlook.com>",
6
6
  "license": "MIT",
@@ -41,19 +41,19 @@
41
41
  "@dnd-kit/utilities": "^3.2.2",
42
42
  "@floating-ui/react": "^0.27.9",
43
43
  "@hookform/resolvers": "^3.9.0",
44
- "@react-fabric/core": "^1.0.0-beta.49",
45
- "@react-fabric/date": "^1.0.0-beta.49",
46
- "@react-fabric/utilities": "^1.0.0-beta.49",
44
+ "@react-fabric/core": "^1.0.0-beta.51",
45
+ "@react-fabric/date": "^1.0.0-beta.51",
46
+ "@react-fabric/utilities": "^1.0.0-beta.50",
47
47
  "classnames": "^2.5.1",
48
48
  "color": "^4.2.3",
49
49
  "react-color": "^2.19.3",
50
50
  "react-hook-form": "^7.52.1"
51
51
  },
52
52
  "peerDependencies": {
53
- "i18next": "^23.15.1",
53
+ "i18next": "^25.2.1",
54
54
  "react": "^19.0.0",
55
55
  "react-dom": "^19.0.0",
56
- "react-i18next": "^15.0.2"
56
+ "react-i18next": "^15.5.2"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@types/axios": "^0.14.0",
@@ -63,5 +63,5 @@
63
63
  "node": ">=18.12.0",
64
64
  "npm": ">=8.19.0"
65
65
  },
66
- "gitHead": "29b3ed65e9f9687d738dd7c6facdb9fedafb4219"
66
+ "gitHead": "a1b04de4663045f82992bff2aef8db26608eac74"
67
67
  }
@@ -35,7 +35,7 @@ export interface ControllerProps {
35
35
  */
36
36
  name?: string;
37
37
  children:
38
- | ReactElement
38
+ | ReactElement<KeyValue>
39
39
  | ((props: {
40
40
  name: string;
41
41
  error?: string;
@@ -49,7 +49,7 @@ export interface ColorProps {
49
49
  /**
50
50
  * color value
51
51
  */
52
- value?: string;
52
+ value?: string | null;
53
53
  /**
54
54
  * change handler
55
55
  */
@@ -31,7 +31,7 @@ export interface InputProps<V = string> extends TestProps {
31
31
  /**
32
32
  * value
33
33
  */
34
- value?: V;
34
+ value?: V | null;
35
35
  /**
36
36
  * change handler
37
37
  */