@trackunit/custom-field-components 0.0.222 → 0.0.224
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.js +258 -2753
- package/package.json +6 -6
- package/src/BooleanCustomField.stories.d.ts +0 -15
- package/src/DropdownCustomField.stories.d.ts +0 -15
- package/src/mocks.d.ts +0 -19
- package/src/test/config/jest.setup.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/custom-field-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.224",
|
|
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.
|
|
8
|
-
"@trackunit/react-components": "0.1.
|
|
7
|
+
"@trackunit/react-core-contexts-test": "0.1.14",
|
|
8
|
+
"@trackunit/react-components": "0.1.11",
|
|
9
9
|
"react": "18.2.0",
|
|
10
10
|
"react-hook-form": "7.40.0",
|
|
11
|
-
"@trackunit/iris-app-runtime-core": "0.3.
|
|
12
|
-
"@trackunit/iris-app-runtime-core-api": "0.3.
|
|
13
|
-
"@trackunit/tailwind-styled-components": "0.0.
|
|
11
|
+
"@trackunit/iris-app-runtime-core": "0.3.6",
|
|
12
|
+
"@trackunit/iris-app-runtime-core-api": "0.3.5",
|
|
13
|
+
"@trackunit/tailwind-styled-components": "0.0.51",
|
|
14
14
|
"react-select": "5.7.0",
|
|
15
15
|
"libphonenumber-js": "1.10.14"
|
|
16
16
|
},
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ComponentMeta } from "@storybook/react";
|
|
3
|
-
declare const _default: ComponentMeta<({ defaultValue, dataTestId, onChange, value, id, setValue, register, validationRules, disabled, label, tip, isInvalid, errorMessage, helpAddon, maxLength, helpText, ...rest }: import("./BooleanCustomField").BooleanCustomFieldProps) => JSX.Element>;
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const Playground: ({ id, label, color, defaultValue, value, dataTestId, disabled, description, ...props }: {
|
|
6
|
-
[x: string]: any;
|
|
7
|
-
id: any;
|
|
8
|
-
label: any;
|
|
9
|
-
color: any;
|
|
10
|
-
defaultValue: any;
|
|
11
|
-
value: any;
|
|
12
|
-
dataTestId: any;
|
|
13
|
-
disabled: any;
|
|
14
|
-
description: any;
|
|
15
|
-
}) => JSX.Element;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ComponentMeta } from "@storybook/react";
|
|
3
|
-
declare const _default: ComponentMeta<({ defaultValue, dataTestId, onChange, onBlur, id, disabled, allValues, multiSelect, register, validationRules, setValue, label, tip, errorMessage, helpText, isInvalid, helpAddon, }: import("./DropdownCustomField").DropdownCustomFieldProps) => JSX.Element>;
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const Playground: ({ id, label, color, defaultValue, dataTestId, disabled, description, multiSelect, ...props }: {
|
|
6
|
-
[x: string]: any;
|
|
7
|
-
id: any;
|
|
8
|
-
label: any;
|
|
9
|
-
color: any;
|
|
10
|
-
defaultValue: any;
|
|
11
|
-
dataTestId: any;
|
|
12
|
-
disabled: any;
|
|
13
|
-
description: any;
|
|
14
|
-
multiSelect: any;
|
|
15
|
-
}) => JSX.Element;
|
package/src/mocks.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { BooleanFieldDefinition, DateFieldDefinition, DropDownFieldDefinition, NumberFieldDefinition, StringFieldDefinition, ValueAndDefinition, WebAddressFieldDefinition } from "@trackunit/iris-app-runtime-core-api";
|
|
2
|
-
import { FieldValues, FormState, UseFormRegister, UseFormSetValue } from "react-hook-form";
|
|
3
|
-
export declare const getValidationRules: () => Promise<{
|
|
4
|
-
register: UseFormRegister<FieldValues>;
|
|
5
|
-
formState: FormState<FieldValues>;
|
|
6
|
-
setValue: UseFormSetValue<FieldValues>;
|
|
7
|
-
}>;
|
|
8
|
-
export declare const stringFieldDefinition: StringFieldDefinition;
|
|
9
|
-
export declare const stringField: ValueAndDefinition;
|
|
10
|
-
export declare const numberFieldDefinition: NumberFieldDefinition;
|
|
11
|
-
export declare const numberField: ValueAndDefinition;
|
|
12
|
-
export declare const dateFieldDefinition: DateFieldDefinition;
|
|
13
|
-
export declare const dateField: ValueAndDefinition;
|
|
14
|
-
export declare const webAddressFieldDefinition: WebAddressFieldDefinition;
|
|
15
|
-
export declare const webAddressField: ValueAndDefinition;
|
|
16
|
-
export declare const booleanFieldDefinition: BooleanFieldDefinition;
|
|
17
|
-
export declare const booleanField: ValueAndDefinition;
|
|
18
|
-
export declare const dropDownFieldDefinition: DropDownFieldDefinition;
|
|
19
|
-
export declare const dropdownField: ValueAndDefinition;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|