@form-eng/chakra 1.1.1
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/dist/index.d.mts +91 -0
- package/dist/index.d.ts +91 -0
- package/dist/index.js +832 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +781 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +63 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { IFieldProps, Dictionary } from '@form-eng/core';
|
|
3
|
+
export { DocumentLinksStrings, FieldClassName, GetFieldDataTestId, formatDateTime, getFieldState } from '@form-eng/core';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { FieldError } from 'react-hook-form';
|
|
6
|
+
|
|
7
|
+
interface ITextboxProps {
|
|
8
|
+
ellipsifyTextCharacters?: number;
|
|
9
|
+
placeHolder?: string;
|
|
10
|
+
multiline?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const Textbox: (props: IFieldProps<ITextboxProps>) => react_jsx_runtime.JSX.Element;
|
|
13
|
+
|
|
14
|
+
declare const NumberField: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
15
|
+
|
|
16
|
+
declare const Toggle: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
17
|
+
|
|
18
|
+
interface IDropdownProps {
|
|
19
|
+
placeHolder?: string;
|
|
20
|
+
setDefaultKeyIfOnlyOneOption?: boolean;
|
|
21
|
+
}
|
|
22
|
+
declare const Dropdown: (props: IFieldProps<IDropdownProps>) => react_jsx_runtime.JSX.Element;
|
|
23
|
+
|
|
24
|
+
interface ISimpleDropdownProps {
|
|
25
|
+
dropdownOptions?: string[];
|
|
26
|
+
placeHolder?: string;
|
|
27
|
+
}
|
|
28
|
+
declare const SimpleDropdown: (props: IFieldProps<ISimpleDropdownProps>) => react_jsx_runtime.JSX.Element;
|
|
29
|
+
|
|
30
|
+
declare const MultiSelect: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
31
|
+
|
|
32
|
+
declare const DateControl: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
33
|
+
|
|
34
|
+
interface ISliderProps {
|
|
35
|
+
max?: number;
|
|
36
|
+
min?: number;
|
|
37
|
+
step?: number;
|
|
38
|
+
}
|
|
39
|
+
declare const Slider: (props: IFieldProps<ISliderProps>) => react_jsx_runtime.JSX.Element;
|
|
40
|
+
|
|
41
|
+
declare const RadioGroup: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
42
|
+
|
|
43
|
+
declare const CheckboxGroup: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
44
|
+
|
|
45
|
+
interface ITextareaProps {
|
|
46
|
+
autoAdjustHeight?: boolean;
|
|
47
|
+
numberOfRows?: number;
|
|
48
|
+
ellipsifyTextCharacters?: number;
|
|
49
|
+
additionalInfo?: string;
|
|
50
|
+
maxLimit?: number;
|
|
51
|
+
saveCallback?: () => void;
|
|
52
|
+
renderExtraModalFooter?: () => React.ReactNode;
|
|
53
|
+
}
|
|
54
|
+
declare const Textarea: (props: IFieldProps<ITextareaProps>) => react_jsx_runtime.JSX.Element;
|
|
55
|
+
|
|
56
|
+
declare const DynamicFragment: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
57
|
+
|
|
58
|
+
interface IReadOnlyFieldProps {
|
|
59
|
+
readonly value?: string;
|
|
60
|
+
readonly fieldName?: string;
|
|
61
|
+
readonly labelClassName?: string;
|
|
62
|
+
readonly valueClassName?: string;
|
|
63
|
+
readonly showControlOnSide?: boolean;
|
|
64
|
+
readonly containerClassName?: string;
|
|
65
|
+
readonly ellipsifyTextCharacters?: number;
|
|
66
|
+
}
|
|
67
|
+
declare const ReadOnlyText: React.FunctionComponent<IReadOnlyFieldProps>;
|
|
68
|
+
|
|
69
|
+
declare const ReadOnly: (props: IFieldProps<IReadOnlyFieldProps>) => react_jsx_runtime.JSX.Element;
|
|
70
|
+
|
|
71
|
+
interface IStatusMessageProps {
|
|
72
|
+
id?: string;
|
|
73
|
+
readonly error?: FieldError;
|
|
74
|
+
readonly errorCount?: number;
|
|
75
|
+
readonly savePending?: boolean;
|
|
76
|
+
readonly saving?: boolean;
|
|
77
|
+
}
|
|
78
|
+
declare const StatusMessage: React.FunctionComponent<IStatusMessageProps>;
|
|
79
|
+
|
|
80
|
+
interface IFormLoadingProps {
|
|
81
|
+
loadingShimmerCount?: number;
|
|
82
|
+
loadingFieldShimmerHeight?: number;
|
|
83
|
+
inPanel?: boolean;
|
|
84
|
+
hideTitleShimmer?: boolean;
|
|
85
|
+
}
|
|
86
|
+
declare const FormLoading: (props: IFormLoadingProps) => react_jsx_runtime.JSX.Element;
|
|
87
|
+
|
|
88
|
+
/** Creates the default Chakra UI v3 field registry for use with InjectedFieldProvider */
|
|
89
|
+
declare function createChakraFieldRegistry(): Dictionary<React.JSX.Element>;
|
|
90
|
+
|
|
91
|
+
export { CheckboxGroup, DateControl, Dropdown, DynamicFragment, FormLoading, type IReadOnlyFieldProps, MultiSelect, NumberField as Number, RadioGroup, ReadOnly, ReadOnlyText, SimpleDropdown, Slider, StatusMessage, Textarea, Textbox, Toggle, createChakraFieldRegistry };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { IFieldProps, Dictionary } from '@form-eng/core';
|
|
3
|
+
export { DocumentLinksStrings, FieldClassName, GetFieldDataTestId, formatDateTime, getFieldState } from '@form-eng/core';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { FieldError } from 'react-hook-form';
|
|
6
|
+
|
|
7
|
+
interface ITextboxProps {
|
|
8
|
+
ellipsifyTextCharacters?: number;
|
|
9
|
+
placeHolder?: string;
|
|
10
|
+
multiline?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const Textbox: (props: IFieldProps<ITextboxProps>) => react_jsx_runtime.JSX.Element;
|
|
13
|
+
|
|
14
|
+
declare const NumberField: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
15
|
+
|
|
16
|
+
declare const Toggle: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
17
|
+
|
|
18
|
+
interface IDropdownProps {
|
|
19
|
+
placeHolder?: string;
|
|
20
|
+
setDefaultKeyIfOnlyOneOption?: boolean;
|
|
21
|
+
}
|
|
22
|
+
declare const Dropdown: (props: IFieldProps<IDropdownProps>) => react_jsx_runtime.JSX.Element;
|
|
23
|
+
|
|
24
|
+
interface ISimpleDropdownProps {
|
|
25
|
+
dropdownOptions?: string[];
|
|
26
|
+
placeHolder?: string;
|
|
27
|
+
}
|
|
28
|
+
declare const SimpleDropdown: (props: IFieldProps<ISimpleDropdownProps>) => react_jsx_runtime.JSX.Element;
|
|
29
|
+
|
|
30
|
+
declare const MultiSelect: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
31
|
+
|
|
32
|
+
declare const DateControl: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
33
|
+
|
|
34
|
+
interface ISliderProps {
|
|
35
|
+
max?: number;
|
|
36
|
+
min?: number;
|
|
37
|
+
step?: number;
|
|
38
|
+
}
|
|
39
|
+
declare const Slider: (props: IFieldProps<ISliderProps>) => react_jsx_runtime.JSX.Element;
|
|
40
|
+
|
|
41
|
+
declare const RadioGroup: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
42
|
+
|
|
43
|
+
declare const CheckboxGroup: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
44
|
+
|
|
45
|
+
interface ITextareaProps {
|
|
46
|
+
autoAdjustHeight?: boolean;
|
|
47
|
+
numberOfRows?: number;
|
|
48
|
+
ellipsifyTextCharacters?: number;
|
|
49
|
+
additionalInfo?: string;
|
|
50
|
+
maxLimit?: number;
|
|
51
|
+
saveCallback?: () => void;
|
|
52
|
+
renderExtraModalFooter?: () => React.ReactNode;
|
|
53
|
+
}
|
|
54
|
+
declare const Textarea: (props: IFieldProps<ITextareaProps>) => react_jsx_runtime.JSX.Element;
|
|
55
|
+
|
|
56
|
+
declare const DynamicFragment: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
57
|
+
|
|
58
|
+
interface IReadOnlyFieldProps {
|
|
59
|
+
readonly value?: string;
|
|
60
|
+
readonly fieldName?: string;
|
|
61
|
+
readonly labelClassName?: string;
|
|
62
|
+
readonly valueClassName?: string;
|
|
63
|
+
readonly showControlOnSide?: boolean;
|
|
64
|
+
readonly containerClassName?: string;
|
|
65
|
+
readonly ellipsifyTextCharacters?: number;
|
|
66
|
+
}
|
|
67
|
+
declare const ReadOnlyText: React.FunctionComponent<IReadOnlyFieldProps>;
|
|
68
|
+
|
|
69
|
+
declare const ReadOnly: (props: IFieldProps<IReadOnlyFieldProps>) => react_jsx_runtime.JSX.Element;
|
|
70
|
+
|
|
71
|
+
interface IStatusMessageProps {
|
|
72
|
+
id?: string;
|
|
73
|
+
readonly error?: FieldError;
|
|
74
|
+
readonly errorCount?: number;
|
|
75
|
+
readonly savePending?: boolean;
|
|
76
|
+
readonly saving?: boolean;
|
|
77
|
+
}
|
|
78
|
+
declare const StatusMessage: React.FunctionComponent<IStatusMessageProps>;
|
|
79
|
+
|
|
80
|
+
interface IFormLoadingProps {
|
|
81
|
+
loadingShimmerCount?: number;
|
|
82
|
+
loadingFieldShimmerHeight?: number;
|
|
83
|
+
inPanel?: boolean;
|
|
84
|
+
hideTitleShimmer?: boolean;
|
|
85
|
+
}
|
|
86
|
+
declare const FormLoading: (props: IFormLoadingProps) => react_jsx_runtime.JSX.Element;
|
|
87
|
+
|
|
88
|
+
/** Creates the default Chakra UI v3 field registry for use with InjectedFieldProvider */
|
|
89
|
+
declare function createChakraFieldRegistry(): Dictionary<React.JSX.Element>;
|
|
90
|
+
|
|
91
|
+
export { CheckboxGroup, DateControl, Dropdown, DynamicFragment, FormLoading, type IReadOnlyFieldProps, MultiSelect, NumberField as Number, RadioGroup, ReadOnly, ReadOnlyText, SimpleDropdown, Slider, StatusMessage, Textarea, Textbox, Toggle, createChakraFieldRegistry };
|