@charlesgomes/leafcode-shared-lib-react 1.0.57 → 1.0.58
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.css +5 -5
- package/dist/index.d.mts +72 -2
- package/dist/index.d.ts +72 -2
- package/dist/index.js +359 -111
- package/dist/index.mjs +354 -105
- package/dist/styles/input.css +128 -0
- package/dist/styles/table.css +5 -5
- package/package.json +5 -2
package/dist/index.css
CHANGED
|
@@ -541,9 +541,9 @@ th {
|
|
|
541
541
|
height: 1.25rem;
|
|
542
542
|
padding: 3px;
|
|
543
543
|
transition: all 0.3s ease-in-out;
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
544
|
+
}
|
|
545
|
+
.close-search:hover {
|
|
546
|
+
background-color: #bf1717;
|
|
547
|
+
color: #fff;
|
|
548
|
+
border-radius: 5rem;
|
|
549
549
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import react__default, { ReactNode as ReactNode$1 } from 'react';
|
|
4
|
+
import { FieldError } from 'react-hook-form';
|
|
3
5
|
import { FilterMatchMode } from 'primereact/api';
|
|
4
6
|
export { FilterMatchMode, FilterOperator } from 'primereact/api';
|
|
5
7
|
export { DataTableProps } from 'primereact/datatable';
|
|
@@ -16,6 +18,74 @@ interface ButtonProps {
|
|
|
16
18
|
}
|
|
17
19
|
declare function Button({ disabled, loading, color, type, onClick, title, ...rest }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
18
20
|
|
|
21
|
+
interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
22
|
+
name: string;
|
|
23
|
+
label?: string | ReactNode$1;
|
|
24
|
+
error?: FieldError;
|
|
25
|
+
placeholder?: string;
|
|
26
|
+
onFocus?: () => void;
|
|
27
|
+
isUppercaseLabel?: boolean;
|
|
28
|
+
isUppercaseText?: boolean;
|
|
29
|
+
validationMode?: "default" | "restricted";
|
|
30
|
+
showPasswordToggle?: boolean;
|
|
31
|
+
fonts?: {
|
|
32
|
+
labelFamily?: string;
|
|
33
|
+
labelWeight?: number | string;
|
|
34
|
+
inputFamily?: string;
|
|
35
|
+
inputWeight?: number | string;
|
|
36
|
+
};
|
|
37
|
+
colors?: {
|
|
38
|
+
label?: string;
|
|
39
|
+
labelBg?: string;
|
|
40
|
+
inputBorder?: string;
|
|
41
|
+
inputBg?: string;
|
|
42
|
+
inputText?: string;
|
|
43
|
+
inputFocusBorder?: string;
|
|
44
|
+
inputPlaceholder?: string;
|
|
45
|
+
inputErrorBorder?: string;
|
|
46
|
+
autofillBoxShadow?: string;
|
|
47
|
+
autofillTextColor?: string;
|
|
48
|
+
autofillColorBorder?: string;
|
|
49
|
+
colorPasswordToggle?: string;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
declare const Input: react.ForwardRefExoticComponent<InputProps & react.RefAttributes<HTMLInputElement>>;
|
|
53
|
+
|
|
54
|
+
interface TextAreaProps {
|
|
55
|
+
name: string;
|
|
56
|
+
label?: string;
|
|
57
|
+
error?: FieldError;
|
|
58
|
+
placeholder?: string;
|
|
59
|
+
onFocus?: () => void;
|
|
60
|
+
isUppercaseText?: boolean;
|
|
61
|
+
isUppercaseLabel?: boolean;
|
|
62
|
+
disabled?: boolean;
|
|
63
|
+
height?: {
|
|
64
|
+
heightTextArea: string;
|
|
65
|
+
};
|
|
66
|
+
fonts?: {
|
|
67
|
+
labelFamily?: string;
|
|
68
|
+
labelWeight?: number | string;
|
|
69
|
+
inputFamily?: string;
|
|
70
|
+
inputWeight?: number | string;
|
|
71
|
+
};
|
|
72
|
+
colors?: {
|
|
73
|
+
label?: string;
|
|
74
|
+
labelBg?: string;
|
|
75
|
+
inputBorder?: string;
|
|
76
|
+
inputBg?: string;
|
|
77
|
+
inputText?: string;
|
|
78
|
+
inputFocusBorder?: string;
|
|
79
|
+
inputPlaceholder?: string;
|
|
80
|
+
inputErrorBorder?: string;
|
|
81
|
+
autofillBoxShadow?: string;
|
|
82
|
+
autofillTextColor?: string;
|
|
83
|
+
autofillColorBorder?: string;
|
|
84
|
+
colorPasswordToggle?: string;
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
declare const TextArea: react__default.ForwardRefExoticComponent<TextAreaProps & react__default.RefAttributes<HTMLTextAreaElement>>;
|
|
88
|
+
|
|
19
89
|
interface Props {
|
|
20
90
|
show: boolean;
|
|
21
91
|
onHide: () => void;
|
|
@@ -155,4 +225,4 @@ declare const getUrlParams: (sortFieldInitial: string, sortOrderInitial: 1 | -1)
|
|
|
155
225
|
type SortingResult = any[];
|
|
156
226
|
declare function buildSortingWithFilters(filters: Record<string, any>, sortField?: string, order?: number): SortingResult;
|
|
157
227
|
|
|
158
|
-
export { Button, type ColumnCustom, CustomFilterElement, DataTableAdvancedFilter, DateFilterTemplate, DateTimeFilterTemplate, type IDataTableProps, type IItemProps, ModalBase, SelectFilterTemplate, ValueFilterTemplate, buildDynamicCampoFilters, buildSortingWithFilters, customMatchModes, getDefaultFilterMatchOptionsDate, getDefaultFilterMatchOptionsEnum, getDefaultFilterMatchOptionsEnumNotNullable, getDefaultFilterMatchOptionsString, getDefaultFilterMatchOptionsStringArray, getUrlParams, mapPrimeToBackendFilters };
|
|
228
|
+
export { Button, type ColumnCustom, CustomFilterElement, DataTableAdvancedFilter, DateFilterTemplate, DateTimeFilterTemplate, type IDataTableProps, type IItemProps, Input, ModalBase, SelectFilterTemplate, TextArea, ValueFilterTemplate, buildDynamicCampoFilters, buildSortingWithFilters, customMatchModes, getDefaultFilterMatchOptionsDate, getDefaultFilterMatchOptionsEnum, getDefaultFilterMatchOptionsEnumNotNullable, getDefaultFilterMatchOptionsString, getDefaultFilterMatchOptionsStringArray, getUrlParams, mapPrimeToBackendFilters };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import react__default, { ReactNode as ReactNode$1 } from 'react';
|
|
4
|
+
import { FieldError } from 'react-hook-form';
|
|
3
5
|
import { FilterMatchMode } from 'primereact/api';
|
|
4
6
|
export { FilterMatchMode, FilterOperator } from 'primereact/api';
|
|
5
7
|
export { DataTableProps } from 'primereact/datatable';
|
|
@@ -16,6 +18,74 @@ interface ButtonProps {
|
|
|
16
18
|
}
|
|
17
19
|
declare function Button({ disabled, loading, color, type, onClick, title, ...rest }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
18
20
|
|
|
21
|
+
interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
22
|
+
name: string;
|
|
23
|
+
label?: string | ReactNode$1;
|
|
24
|
+
error?: FieldError;
|
|
25
|
+
placeholder?: string;
|
|
26
|
+
onFocus?: () => void;
|
|
27
|
+
isUppercaseLabel?: boolean;
|
|
28
|
+
isUppercaseText?: boolean;
|
|
29
|
+
validationMode?: "default" | "restricted";
|
|
30
|
+
showPasswordToggle?: boolean;
|
|
31
|
+
fonts?: {
|
|
32
|
+
labelFamily?: string;
|
|
33
|
+
labelWeight?: number | string;
|
|
34
|
+
inputFamily?: string;
|
|
35
|
+
inputWeight?: number | string;
|
|
36
|
+
};
|
|
37
|
+
colors?: {
|
|
38
|
+
label?: string;
|
|
39
|
+
labelBg?: string;
|
|
40
|
+
inputBorder?: string;
|
|
41
|
+
inputBg?: string;
|
|
42
|
+
inputText?: string;
|
|
43
|
+
inputFocusBorder?: string;
|
|
44
|
+
inputPlaceholder?: string;
|
|
45
|
+
inputErrorBorder?: string;
|
|
46
|
+
autofillBoxShadow?: string;
|
|
47
|
+
autofillTextColor?: string;
|
|
48
|
+
autofillColorBorder?: string;
|
|
49
|
+
colorPasswordToggle?: string;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
declare const Input: react.ForwardRefExoticComponent<InputProps & react.RefAttributes<HTMLInputElement>>;
|
|
53
|
+
|
|
54
|
+
interface TextAreaProps {
|
|
55
|
+
name: string;
|
|
56
|
+
label?: string;
|
|
57
|
+
error?: FieldError;
|
|
58
|
+
placeholder?: string;
|
|
59
|
+
onFocus?: () => void;
|
|
60
|
+
isUppercaseText?: boolean;
|
|
61
|
+
isUppercaseLabel?: boolean;
|
|
62
|
+
disabled?: boolean;
|
|
63
|
+
height?: {
|
|
64
|
+
heightTextArea: string;
|
|
65
|
+
};
|
|
66
|
+
fonts?: {
|
|
67
|
+
labelFamily?: string;
|
|
68
|
+
labelWeight?: number | string;
|
|
69
|
+
inputFamily?: string;
|
|
70
|
+
inputWeight?: number | string;
|
|
71
|
+
};
|
|
72
|
+
colors?: {
|
|
73
|
+
label?: string;
|
|
74
|
+
labelBg?: string;
|
|
75
|
+
inputBorder?: string;
|
|
76
|
+
inputBg?: string;
|
|
77
|
+
inputText?: string;
|
|
78
|
+
inputFocusBorder?: string;
|
|
79
|
+
inputPlaceholder?: string;
|
|
80
|
+
inputErrorBorder?: string;
|
|
81
|
+
autofillBoxShadow?: string;
|
|
82
|
+
autofillTextColor?: string;
|
|
83
|
+
autofillColorBorder?: string;
|
|
84
|
+
colorPasswordToggle?: string;
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
declare const TextArea: react__default.ForwardRefExoticComponent<TextAreaProps & react__default.RefAttributes<HTMLTextAreaElement>>;
|
|
88
|
+
|
|
19
89
|
interface Props {
|
|
20
90
|
show: boolean;
|
|
21
91
|
onHide: () => void;
|
|
@@ -155,4 +225,4 @@ declare const getUrlParams: (sortFieldInitial: string, sortOrderInitial: 1 | -1)
|
|
|
155
225
|
type SortingResult = any[];
|
|
156
226
|
declare function buildSortingWithFilters(filters: Record<string, any>, sortField?: string, order?: number): SortingResult;
|
|
157
227
|
|
|
158
|
-
export { Button, type ColumnCustom, CustomFilterElement, DataTableAdvancedFilter, DateFilterTemplate, DateTimeFilterTemplate, type IDataTableProps, type IItemProps, ModalBase, SelectFilterTemplate, ValueFilterTemplate, buildDynamicCampoFilters, buildSortingWithFilters, customMatchModes, getDefaultFilterMatchOptionsDate, getDefaultFilterMatchOptionsEnum, getDefaultFilterMatchOptionsEnumNotNullable, getDefaultFilterMatchOptionsString, getDefaultFilterMatchOptionsStringArray, getUrlParams, mapPrimeToBackendFilters };
|
|
228
|
+
export { Button, type ColumnCustom, CustomFilterElement, DataTableAdvancedFilter, DateFilterTemplate, DateTimeFilterTemplate, type IDataTableProps, type IItemProps, Input, ModalBase, SelectFilterTemplate, TextArea, ValueFilterTemplate, buildDynamicCampoFilters, buildSortingWithFilters, customMatchModes, getDefaultFilterMatchOptionsDate, getDefaultFilterMatchOptionsEnum, getDefaultFilterMatchOptionsEnumNotNullable, getDefaultFilterMatchOptionsString, getDefaultFilterMatchOptionsStringArray, getUrlParams, mapPrimeToBackendFilters };
|