@form-eng/mantine 1.5.2 → 1.6.0
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/README.md +1 -1
- package/dist/index.d.mts +49 -3
- package/dist/index.d.ts +49 -3
- package/dist/index.js +645 -33
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +622 -25
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -2
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Mantine v7 field components for [@form-eng/core](https://www.npmjs.com/package/@form-eng/core).
|
|
4
4
|
|
|
5
|
-
This package provides
|
|
5
|
+
This package provides 28 field types using **Mantine v7** components. Includes 18 native Mantine components (Rating, Autocomplete, DateTimePicker, FileInput, ColorInput for Tier 2) and 10 semantic HTML fallbacks.
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { IFieldProps, Dictionary } from '@form-eng/core';
|
|
2
|
+
import { IFieldProps, IRatingConfig, IDateTimeConfig, IDateRangeConfig, IPhoneInputConfig, IFileUploadConfig, Dictionary } from '@form-eng/core';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { FieldError } from 'react-hook-form';
|
|
5
|
-
export { DocumentLinksStrings, FieldClassName, GetFieldDataTestId, formatDateTime } from '@form-eng/core/adapter-utils';
|
|
5
|
+
export { DocumentLinksStrings, FieldClassName, GetFieldDataTestId, formatDateTime, getFieldState } from '@form-eng/core/adapter-utils';
|
|
6
6
|
|
|
7
7
|
interface ITextboxProps {
|
|
8
8
|
ellipsifyTextCharacters?: number;
|
|
@@ -52,6 +52,30 @@ declare const Textarea: (props: IFieldProps<ITextareaProps>) => react_jsx_runtim
|
|
|
52
52
|
|
|
53
53
|
declare const DynamicFragment: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
54
54
|
|
|
55
|
+
declare const Rating: (props: IFieldProps<IRatingConfig>) => react_jsx_runtime.JSX.Element;
|
|
56
|
+
|
|
57
|
+
declare const Autocomplete: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
58
|
+
|
|
59
|
+
declare const DateTime: (props: IFieldProps<IDateTimeConfig>) => react_jsx_runtime.JSX.Element;
|
|
60
|
+
|
|
61
|
+
declare const DateRange: (props: IFieldProps<IDateRangeConfig>) => react_jsx_runtime.JSX.Element;
|
|
62
|
+
|
|
63
|
+
declare const PhoneInput: (props: IFieldProps<IPhoneInputConfig>) => react_jsx_runtime.JSX.Element;
|
|
64
|
+
|
|
65
|
+
declare const FileUpload: (props: IFieldProps<IFileUploadConfig>) => react_jsx_runtime.JSX.Element;
|
|
66
|
+
|
|
67
|
+
declare const ColorPicker: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
68
|
+
|
|
69
|
+
declare const MultiSelectSearch: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
70
|
+
|
|
71
|
+
interface IStatusDropdownProps {
|
|
72
|
+
placeHolder?: string;
|
|
73
|
+
statusColors?: Dictionary<string>;
|
|
74
|
+
}
|
|
75
|
+
declare const StatusDropdown: (props: IFieldProps<IStatusDropdownProps>) => react_jsx_runtime.JSX.Element;
|
|
76
|
+
|
|
77
|
+
declare const DocumentLinks: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
78
|
+
|
|
55
79
|
interface IReadOnlyFieldProps {
|
|
56
80
|
readonly value?: string;
|
|
57
81
|
readonly fieldName?: string;
|
|
@@ -65,6 +89,28 @@ declare const ReadOnlyText: React.FunctionComponent<IReadOnlyFieldProps>;
|
|
|
65
89
|
|
|
66
90
|
declare const ReadOnly: (props: IFieldProps<IReadOnlyFieldProps>) => react_jsx_runtime.JSX.Element;
|
|
67
91
|
|
|
92
|
+
declare const ReadOnlyArray: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
93
|
+
|
|
94
|
+
interface IReadOnlyDateTimeProps {
|
|
95
|
+
isListView?: boolean;
|
|
96
|
+
hidetimeStamp?: boolean;
|
|
97
|
+
}
|
|
98
|
+
declare const ReadOnlyDateTime: (props: IFieldProps<IReadOnlyDateTimeProps>) => react_jsx_runtime.JSX.Element;
|
|
99
|
+
|
|
100
|
+
interface IReadOnlyCumulativeNumberProps extends IReadOnlyFieldProps {
|
|
101
|
+
dependencyFields?: string[];
|
|
102
|
+
}
|
|
103
|
+
declare const ReadOnlyCumulativeNumber: (props: IFieldProps<IReadOnlyCumulativeNumberProps>) => react_jsx_runtime.JSX.Element;
|
|
104
|
+
|
|
105
|
+
declare const ReadOnlyRichText: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
106
|
+
|
|
107
|
+
interface IReadOnlyWithButtonProps extends IReadOnlyFieldProps {
|
|
108
|
+
containerClassName?: string;
|
|
109
|
+
buttonText?: string;
|
|
110
|
+
onButtonClick?: () => void;
|
|
111
|
+
}
|
|
112
|
+
declare const ReadOnlyWithButton: (props: IFieldProps<IReadOnlyWithButtonProps>) => react_jsx_runtime.JSX.Element;
|
|
113
|
+
|
|
68
114
|
interface IStatusMessageProps {
|
|
69
115
|
id?: string;
|
|
70
116
|
readonly error?: FieldError;
|
|
@@ -85,4 +131,4 @@ declare const FormLoading: (props: IFormLoadingProps) => react_jsx_runtime.JSX.E
|
|
|
85
131
|
/** Creates the default Mantine v7 field registry for use with InjectedFieldProvider */
|
|
86
132
|
declare function createMantineFieldRegistry(): Dictionary<React.JSX.Element>;
|
|
87
133
|
|
|
88
|
-
export { CheckboxGroup, DateControl, Dropdown, DynamicFragment, FormLoading, type IReadOnlyFieldProps, MultiSelect, NumberField as Number, RadioGroup, ReadOnly, ReadOnlyText, SimpleDropdown, Slider, StatusMessage, Textarea, Textbox, Toggle, createMantineFieldRegistry };
|
|
134
|
+
export { Autocomplete, CheckboxGroup, ColorPicker, DateControl, DateRange, DateTime, DocumentLinks, Dropdown, DynamicFragment, FileUpload, FormLoading, type IReadOnlyFieldProps, MultiSelect, MultiSelectSearch, NumberField as Number, PhoneInput, RadioGroup, Rating, ReadOnly, ReadOnlyArray, ReadOnlyCumulativeNumber, ReadOnlyDateTime, ReadOnlyRichText, ReadOnlyText, ReadOnlyWithButton, SimpleDropdown, Slider, StatusDropdown, StatusMessage, Textarea, Textbox, Toggle, createMantineFieldRegistry };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { IFieldProps, Dictionary } from '@form-eng/core';
|
|
2
|
+
import { IFieldProps, IRatingConfig, IDateTimeConfig, IDateRangeConfig, IPhoneInputConfig, IFileUploadConfig, Dictionary } from '@form-eng/core';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { FieldError } from 'react-hook-form';
|
|
5
|
-
export { DocumentLinksStrings, FieldClassName, GetFieldDataTestId, formatDateTime } from '@form-eng/core/adapter-utils';
|
|
5
|
+
export { DocumentLinksStrings, FieldClassName, GetFieldDataTestId, formatDateTime, getFieldState } from '@form-eng/core/adapter-utils';
|
|
6
6
|
|
|
7
7
|
interface ITextboxProps {
|
|
8
8
|
ellipsifyTextCharacters?: number;
|
|
@@ -52,6 +52,30 @@ declare const Textarea: (props: IFieldProps<ITextareaProps>) => react_jsx_runtim
|
|
|
52
52
|
|
|
53
53
|
declare const DynamicFragment: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
54
54
|
|
|
55
|
+
declare const Rating: (props: IFieldProps<IRatingConfig>) => react_jsx_runtime.JSX.Element;
|
|
56
|
+
|
|
57
|
+
declare const Autocomplete: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
58
|
+
|
|
59
|
+
declare const DateTime: (props: IFieldProps<IDateTimeConfig>) => react_jsx_runtime.JSX.Element;
|
|
60
|
+
|
|
61
|
+
declare const DateRange: (props: IFieldProps<IDateRangeConfig>) => react_jsx_runtime.JSX.Element;
|
|
62
|
+
|
|
63
|
+
declare const PhoneInput: (props: IFieldProps<IPhoneInputConfig>) => react_jsx_runtime.JSX.Element;
|
|
64
|
+
|
|
65
|
+
declare const FileUpload: (props: IFieldProps<IFileUploadConfig>) => react_jsx_runtime.JSX.Element;
|
|
66
|
+
|
|
67
|
+
declare const ColorPicker: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
68
|
+
|
|
69
|
+
declare const MultiSelectSearch: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
70
|
+
|
|
71
|
+
interface IStatusDropdownProps {
|
|
72
|
+
placeHolder?: string;
|
|
73
|
+
statusColors?: Dictionary<string>;
|
|
74
|
+
}
|
|
75
|
+
declare const StatusDropdown: (props: IFieldProps<IStatusDropdownProps>) => react_jsx_runtime.JSX.Element;
|
|
76
|
+
|
|
77
|
+
declare const DocumentLinks: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
78
|
+
|
|
55
79
|
interface IReadOnlyFieldProps {
|
|
56
80
|
readonly value?: string;
|
|
57
81
|
readonly fieldName?: string;
|
|
@@ -65,6 +89,28 @@ declare const ReadOnlyText: React.FunctionComponent<IReadOnlyFieldProps>;
|
|
|
65
89
|
|
|
66
90
|
declare const ReadOnly: (props: IFieldProps<IReadOnlyFieldProps>) => react_jsx_runtime.JSX.Element;
|
|
67
91
|
|
|
92
|
+
declare const ReadOnlyArray: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
93
|
+
|
|
94
|
+
interface IReadOnlyDateTimeProps {
|
|
95
|
+
isListView?: boolean;
|
|
96
|
+
hidetimeStamp?: boolean;
|
|
97
|
+
}
|
|
98
|
+
declare const ReadOnlyDateTime: (props: IFieldProps<IReadOnlyDateTimeProps>) => react_jsx_runtime.JSX.Element;
|
|
99
|
+
|
|
100
|
+
interface IReadOnlyCumulativeNumberProps extends IReadOnlyFieldProps {
|
|
101
|
+
dependencyFields?: string[];
|
|
102
|
+
}
|
|
103
|
+
declare const ReadOnlyCumulativeNumber: (props: IFieldProps<IReadOnlyCumulativeNumberProps>) => react_jsx_runtime.JSX.Element;
|
|
104
|
+
|
|
105
|
+
declare const ReadOnlyRichText: (props: IFieldProps<{}>) => react_jsx_runtime.JSX.Element;
|
|
106
|
+
|
|
107
|
+
interface IReadOnlyWithButtonProps extends IReadOnlyFieldProps {
|
|
108
|
+
containerClassName?: string;
|
|
109
|
+
buttonText?: string;
|
|
110
|
+
onButtonClick?: () => void;
|
|
111
|
+
}
|
|
112
|
+
declare const ReadOnlyWithButton: (props: IFieldProps<IReadOnlyWithButtonProps>) => react_jsx_runtime.JSX.Element;
|
|
113
|
+
|
|
68
114
|
interface IStatusMessageProps {
|
|
69
115
|
id?: string;
|
|
70
116
|
readonly error?: FieldError;
|
|
@@ -85,4 +131,4 @@ declare const FormLoading: (props: IFormLoadingProps) => react_jsx_runtime.JSX.E
|
|
|
85
131
|
/** Creates the default Mantine v7 field registry for use with InjectedFieldProvider */
|
|
86
132
|
declare function createMantineFieldRegistry(): Dictionary<React.JSX.Element>;
|
|
87
133
|
|
|
88
|
-
export { CheckboxGroup, DateControl, Dropdown, DynamicFragment, FormLoading, type IReadOnlyFieldProps, MultiSelect, NumberField as Number, RadioGroup, ReadOnly, ReadOnlyText, SimpleDropdown, Slider, StatusMessage, Textarea, Textbox, Toggle, createMantineFieldRegistry };
|
|
134
|
+
export { Autocomplete, CheckboxGroup, ColorPicker, DateControl, DateRange, DateTime, DocumentLinks, Dropdown, DynamicFragment, FileUpload, FormLoading, type IReadOnlyFieldProps, MultiSelect, MultiSelectSearch, NumberField as Number, PhoneInput, RadioGroup, Rating, ReadOnly, ReadOnlyArray, ReadOnlyCumulativeNumber, ReadOnlyDateTime, ReadOnlyRichText, ReadOnlyText, ReadOnlyWithButton, SimpleDropdown, Slider, StatusDropdown, StatusMessage, Textarea, Textbox, Toggle, createMantineFieldRegistry };
|