@trackunit/custom-field-components 0.0.329 → 0.0.331
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/index.cjs +1 -1
- package/index.js +1 -1
- package/package.json +5 -5
- package/src/CustomField.d.ts +1 -1
package/index.cjs
CHANGED
|
@@ -292,7 +292,7 @@ const getPhoneNumberValidationRules = (definition) => {
|
|
|
292
292
|
* @param validation A validation object that contains the register, setValue and formState
|
|
293
293
|
* @param unitPreference A unit preference that can be used to override the default unit preference
|
|
294
294
|
* @param fieldId An optional Id to override the definition.key
|
|
295
|
-
* @returns { JSX.Element }
|
|
295
|
+
* @returns { JSX.Element } A JSX.Element or null if the field definition is undefined
|
|
296
296
|
*/
|
|
297
297
|
const useCustomFieldResolver = (field, validation, unitPreference = "SI", fieldId) => {
|
|
298
298
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4;
|
package/index.js
CHANGED
|
@@ -269,7 +269,7 @@ const getPhoneNumberValidationRules = (definition) => {
|
|
|
269
269
|
* @param validation A validation object that contains the register, setValue and formState
|
|
270
270
|
* @param unitPreference A unit preference that can be used to override the default unit preference
|
|
271
271
|
* @param fieldId An optional Id to override the definition.key
|
|
272
|
-
* @returns { JSX.Element }
|
|
272
|
+
* @returns { JSX.Element } A JSX.Element or null if the field definition is undefined
|
|
273
273
|
*/
|
|
274
274
|
const useCustomFieldResolver = (field, validation, unitPreference = "SI", fieldId) => {
|
|
275
275
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4;
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/custom-field-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.331",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@trackunit/iris-app-runtime-core": "0.3.
|
|
7
|
+
"@trackunit/iris-app-runtime-core": "0.3.38",
|
|
8
8
|
"@trackunit/iris-app-runtime-core-api": "0.3.32",
|
|
9
|
-
"@trackunit/react-components": "0.1.
|
|
10
|
-
"@trackunit/react-core-contexts-test": "0.1.
|
|
11
|
-
"@trackunit/react-form-components": "0.0.
|
|
9
|
+
"@trackunit/react-components": "0.1.87",
|
|
10
|
+
"@trackunit/react-core-contexts-test": "0.1.56",
|
|
11
|
+
"@trackunit/react-form-components": "0.0.25",
|
|
12
12
|
"@trackunit/tailwind-styled-components": "0.0.56",
|
|
13
13
|
"libphonenumber-js": "1.10.30",
|
|
14
14
|
"react": "18.2.0",
|
package/src/CustomField.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export interface ICustomFieldValidation {
|
|
|
26
26
|
* @param validation A validation object that contains the register, setValue and formState
|
|
27
27
|
* @param unitPreference A unit preference that can be used to override the default unit preference
|
|
28
28
|
* @param fieldId An optional Id to override the definition.key
|
|
29
|
-
* @returns { JSX.Element }
|
|
29
|
+
* @returns { JSX.Element } A JSX.Element or null if the field definition is undefined
|
|
30
30
|
*/
|
|
31
31
|
export declare const useCustomFieldResolver: (field: ValueAndDefinition, validation: ICustomFieldValidation, unitPreference?: UnitPreference, fieldId?: string) => JSX.Element | null;
|
|
32
32
|
/**
|