@uxf/form 11.78.0 → 11.80.0
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.
- package/multi-select/multi-select.d.ts +3 -2
- package/package.json +4 -4
- package/translations.d.ts +14 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SelectableId } from "@uxf/core/types";
|
|
2
|
+
import { MultiSelectProps as UIMultiSelectProps, MultiSelectValue as UIMultiSelectValue } from "@uxf/ui/multi-select";
|
|
2
3
|
import React from "react";
|
|
3
4
|
import { FieldValues } from "react-hook-form";
|
|
4
5
|
import { ControlProps } from "../types";
|
|
@@ -6,7 +7,7 @@ export type ComboProps<FormData extends FieldValues> = ControlProps<FormData> &
|
|
|
6
7
|
onChange?: UIMultiSelectProps["onChange"];
|
|
7
8
|
requiredMessage?: string;
|
|
8
9
|
};
|
|
9
|
-
export type MultiSelectValue<
|
|
10
|
+
export type MultiSelectValue<T extends SelectableId> = UIMultiSelectValue<T>;
|
|
10
11
|
export declare function MultiSelect<FormData extends Record<string, any>>(props: ComboProps<FormData>): React.JSX.Element;
|
|
11
12
|
export declare namespace MultiSelect {
|
|
12
13
|
var displayName: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uxf/form",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.80.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
},
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@uxf/core": "11.
|
|
20
|
-
"@uxf/core-react": "11.
|
|
21
|
-
"@uxf/ui": "11.
|
|
19
|
+
"@uxf/core": "11.80.0",
|
|
20
|
+
"@uxf/core-react": "11.80.0",
|
|
21
|
+
"@uxf/ui": "11.80.0",
|
|
22
22
|
"coordinate-parser": "1.0.7",
|
|
23
23
|
"dayjs": "1.11.13",
|
|
24
24
|
"react-hook-form": "7.53.0"
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { TranslationsPaths } from "@uxf/core-react/translations/types";
|
|
2
|
+
import formTranslations from "@uxf/form/translations/translations";
|
|
3
|
+
import uiTranslations from "@uxf/ui/translations/translations";
|
|
4
|
+
|
|
5
|
+
type formTypes = typeof formTranslations;
|
|
6
|
+
type uiTypes = typeof uiTranslations;
|
|
7
|
+
|
|
8
|
+
type TranslationsKeys = TranslationsPaths<formTypes & uiTypes>;
|
|
9
|
+
|
|
10
|
+
type TypeSafeTranslate = (key: TranslationsKeys, options?: Record<string, any>) => string;
|
|
11
|
+
|
|
12
|
+
declare module "@uxf/core-react/translations" {
|
|
13
|
+
export function useUxfTranslation(): TypeSafeTranslate;
|
|
14
|
+
}
|