@trackunit/custom-field-components 0.0.175 → 0.0.177

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.
@@ -40,5 +40,9 @@ export interface DateCustomFieldProps extends Omit<DateFieldProps, "label">, For
40
40
  * @memberof DateCustomFieldProps
41
41
  */
42
42
  isInvalid?: boolean;
43
+ /**
44
+ * The label for the Date.
45
+ */
46
+ title?: string;
43
47
  }
44
48
  export declare const DateCustomField: (props: DateCustomFieldProps) => JSX.Element;
package/index.js CHANGED
@@ -1902,7 +1902,7 @@ const DateCustomField = props => {
1902
1902
  helpAddon: props.helpAddon || null,
1903
1903
  helpText: props.errorMessage || props.helpText,
1904
1904
  onChange: onChangeHandler,
1905
- label: undefined,
1905
+ label: props.title,
1906
1906
  defaultValue: defaultValue
1907
1907
  }));
1908
1908
  };
@@ -2677,7 +2677,8 @@ const useCustomFieldResolver = (field, validation, unitPreference = "SI", fieldI
2677
2677
  validationRules: rules,
2678
2678
  helpText: description,
2679
2679
  errorMessage: errorMessage,
2680
- setValue: validation.setValue
2680
+ setValue: validation.setValue,
2681
+ title: field.definition.title || ""
2681
2682
  }, key);
2682
2683
  }
2683
2684
 
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@trackunit/custom-field-components",
3
- "version": "0.0.175",
3
+ "version": "0.0.177",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "dependencies": {
7
7
  "@trackunit/react-core-contexts-test": "0.0.50",
8
- "@trackunit/react-components": "0.0.184",
8
+ "@trackunit/react-components": "0.0.185",
9
9
  "react": "17.0.2",
10
10
  "react-hook-form": "^7.36.1",
11
11
  "@trackunit/iris-app-runtime-core": "0.0.79",