@trackunit/custom-field-components 0.0.230 → 0.0.231

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/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@trackunit/custom-field-components",
3
- "version": "0.0.230",
3
+ "version": "0.0.231",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "dependencies": {
7
- "@trackunit/react-core-contexts-test": "0.1.16",
8
- "@trackunit/react-components": "0.1.17",
7
+ "@trackunit/react-core-contexts-test": "0.1.17",
8
+ "@trackunit/react-components": "0.1.18",
9
9
  "react": "18.2.0",
10
10
  "react-hook-form": "7.40.0",
11
- "@trackunit/iris-app-runtime-core": "0.3.7",
12
- "@trackunit/iris-app-runtime-core-api": "0.3.6",
11
+ "@trackunit/iris-app-runtime-core": "0.3.8",
12
+ "@trackunit/iris-app-runtime-core-api": "0.3.7",
13
13
  "@trackunit/tailwind-styled-components": "0.0.51",
14
14
  "react-select": "5.7.0",
15
15
  "libphonenumber-js": "1.10.18"
@@ -88,7 +88,7 @@ export interface DropdownCustomFieldProps extends FormGroupExposedProps {
88
88
  */
89
89
  isInvalid?: boolean;
90
90
  }
91
- declare type OnChange = (event?: React.ChangeEvent<HTMLInputElement>) => void;
92
- declare type OnBlur = (event: React.FocusEvent<HTMLDivElement>) => void;
91
+ type OnChange = (event?: React.ChangeEvent<HTMLInputElement>) => void;
92
+ type OnBlur = (event: React.FocusEvent<HTMLDivElement>) => void;
93
93
  export declare const DropdownCustomField: ({ defaultValue, dataTestId, onChange, onBlur, id, disabled, allValues, multiSelect, register, validationRules, setValue, label, tip, errorMessage, helpText, isInvalid, helpAddon, }: DropdownCustomFieldProps) => JSX.Element;
94
94
  export {};
@@ -1 +1 @@
1
- export declare type UnitPreference = "SI" | "US_CUSTOMARY";
1
+ export type UnitPreference = "SI" | "US_CUSTOMARY";
@@ -1,6 +1,6 @@
1
1
  import { BooleanFieldDefinition, DateFieldDefinition, DropDownFieldDefinition, EmailFieldDefinition, NumberFieldDefinition, PhoneNumberFieldDefinition, StringFieldDefinition, WebAddressFieldDefinition } from "@trackunit/iris-app-runtime-core-api";
2
2
  import { RegisterOptions } from "react-hook-form";
3
- export declare type ValidationRules = RegisterOptions;
3
+ export type ValidationRules = RegisterOptions;
4
4
  export declare const getWebAddressValidationRules: (definition: WebAddressFieldDefinition) => ValidationRules;
5
5
  export declare const getNumberValidationRules: (definition: NumberFieldDefinition) => ValidationRules;
6
6
  export declare const getStringValidationRules: (definition: StringFieldDefinition) => ValidationRules;
package/src/types.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  import { FormGroupProps } from "@trackunit/react-components";
2
- export declare type FormGroupExposedProps = Pick<FormGroupProps, "label" | "tip" | "helpText" | "helpAddon">;
2
+ export type FormGroupExposedProps = Pick<FormGroupProps, "label" | "tip" | "helpText" | "helpAddon">;