@uxf/form 11.68.0 → 11.68.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.
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Currency, Money } from "@uxf/core/money";
|
|
2
2
|
import { FormControlProps } from "@uxf/ui/types";
|
|
3
3
|
import React, { ReactNode } from "react";
|
|
4
|
-
import { FieldValues
|
|
4
|
+
import { FieldValues } from "react-hook-form";
|
|
5
|
+
import { ControlProps } from "../types";
|
|
5
6
|
export type MoneyInputValue = Money | null;
|
|
6
|
-
export type MoneyInputProps<FormData extends FieldValues> = Omit<
|
|
7
|
+
export type MoneyInputProps<FormData extends FieldValues> = Omit<ControlProps<FormData>, "defaultValue"> & Omit<FormControlProps<MoneyInputValue>, "value" | "onChange"> & {
|
|
7
8
|
id?: string;
|
|
8
9
|
requiredMessage?: string;
|
|
9
10
|
defaultCurrency?: Currency;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uxf/form",
|
|
3
|
-
"version": "11.68.
|
|
3
|
+
"version": "11.68.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@uxf/ui": "11.
|
|
19
|
+
"@uxf/ui": "11.68.2",
|
|
20
20
|
"coordinate-parser": "1.0.7",
|
|
21
21
|
"dayjs": "1.11.13",
|
|
22
22
|
"react-hook-form": "7.53.0"
|