@xelto.npm/xc2-lib 0.0.37 → 0.0.39
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/cjs/index.js +19 -21
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/Inputs/textfield/TextField.d.ts +3 -35
- package/dist/cjs/types/components/Inputs/textfield/TextFieldProps.d.ts +18 -0
- package/dist/esm/index.js +19 -21
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Inputs/textfield/TextField.d.ts +3 -35
- package/dist/esm/types/components/Inputs/textfield/TextFieldProps.d.ts +18 -0
- package/dist/index.d.ts +20 -33
- package/package.json +1 -1
|
@@ -1,37 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { FunctionComponent } from "react";
|
|
2
|
+
import { TextFieldProps } from "./TextFieldProps";
|
|
3
3
|
export declare const StyledTextField: import("@emotion/styled").StyledComponent<import("@mui/material/TextField").TextFieldProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
4
|
-
declare const TextField:
|
|
5
|
-
({ label, error, icon, disabled, fluid, type, min, max, small, helperText, value, onChange, onBlur, forwardedRef, endAdornment, ...props }: {
|
|
6
|
-
[x: string]: any;
|
|
7
|
-
label?: string | undefined;
|
|
8
|
-
error?: boolean | undefined;
|
|
9
|
-
icon?: string | undefined;
|
|
10
|
-
disabled?: boolean | undefined;
|
|
11
|
-
fluid?: boolean | undefined;
|
|
12
|
-
type?: string | undefined;
|
|
13
|
-
min?: string | undefined;
|
|
14
|
-
max?: string | undefined;
|
|
15
|
-
small?: boolean | undefined;
|
|
16
|
-
helperText?: string | undefined;
|
|
17
|
-
value?: string | undefined;
|
|
18
|
-
onChange?: ((event: React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>) => null) | undefined;
|
|
19
|
-
onBlur?: ((event: React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>) => null) | undefined;
|
|
20
|
-
forwardedRef?: null | undefined;
|
|
21
|
-
endAdornment?: string | undefined;
|
|
22
|
-
}): JSX.Element;
|
|
23
|
-
propTypes: {
|
|
24
|
-
label: propTypes.Requireable<string>;
|
|
25
|
-
icon: propTypes.Requireable<string>;
|
|
26
|
-
type: propTypes.Requireable<string>;
|
|
27
|
-
fluid: propTypes.Requireable<boolean>;
|
|
28
|
-
helperText: propTypes.Requireable<string>;
|
|
29
|
-
min: propTypes.Requireable<string>;
|
|
30
|
-
max: propTypes.Requireable<string>;
|
|
31
|
-
error: propTypes.Requireable<boolean>;
|
|
32
|
-
disabled: propTypes.Requireable<boolean>;
|
|
33
|
-
endAdornment: propTypes.Requireable<string>;
|
|
34
|
-
small: propTypes.Requireable<boolean>;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
4
|
+
declare const TextField: FunctionComponent<TextFieldProps>;
|
|
37
5
|
export default TextField;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface TextFieldProps {
|
|
3
|
+
label: string;
|
|
4
|
+
error: boolean;
|
|
5
|
+
icon: string;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
fluid: boolean;
|
|
8
|
+
type: string;
|
|
9
|
+
min: string;
|
|
10
|
+
max: string;
|
|
11
|
+
small: boolean;
|
|
12
|
+
helperText?: string;
|
|
13
|
+
value: string;
|
|
14
|
+
onChange?: React.ChangeEventHandler<HTMLTextAreaElement | HTMLInputElement>;
|
|
15
|
+
onBlur?: React.ChangeEventHandler<HTMLTextAreaElement | HTMLInputElement>;
|
|
16
|
+
forwardedRef?: null;
|
|
17
|
+
endAdornment?: string;
|
|
18
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import propTypes from 'prop-types';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
+
import { FunctionComponent } from 'react';
|
|
4
5
|
|
|
5
6
|
declare const AppTileComponent: ({ header, description, illustrationName, forwardedRef, isBigType, size, color }: {
|
|
6
7
|
header: any;
|
|
@@ -112,38 +113,24 @@ declare const DatePicker: {
|
|
|
112
113
|
};
|
|
113
114
|
};
|
|
114
115
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
propTypes: {
|
|
135
|
-
label: propTypes.Requireable<string>;
|
|
136
|
-
icon: propTypes.Requireable<string>;
|
|
137
|
-
type: propTypes.Requireable<string>;
|
|
138
|
-
fluid: propTypes.Requireable<boolean>;
|
|
139
|
-
helperText: propTypes.Requireable<string>;
|
|
140
|
-
min: propTypes.Requireable<string>;
|
|
141
|
-
max: propTypes.Requireable<string>;
|
|
142
|
-
error: propTypes.Requireable<boolean>;
|
|
143
|
-
disabled: propTypes.Requireable<boolean>;
|
|
144
|
-
endAdornment: propTypes.Requireable<string>;
|
|
145
|
-
small: propTypes.Requireable<boolean>;
|
|
146
|
-
};
|
|
147
|
-
};
|
|
116
|
+
interface TextFieldProps {
|
|
117
|
+
label: string;
|
|
118
|
+
error: boolean;
|
|
119
|
+
icon: string;
|
|
120
|
+
disabled: boolean;
|
|
121
|
+
fluid: boolean;
|
|
122
|
+
type: string;
|
|
123
|
+
min: string;
|
|
124
|
+
max: string;
|
|
125
|
+
small: boolean;
|
|
126
|
+
helperText?: string;
|
|
127
|
+
value: string;
|
|
128
|
+
onChange?: React.ChangeEventHandler<HTMLTextAreaElement | HTMLInputElement>;
|
|
129
|
+
onBlur?: React.ChangeEventHandler<HTMLTextAreaElement | HTMLInputElement>;
|
|
130
|
+
forwardedRef?: null;
|
|
131
|
+
endAdornment?: string;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
declare const TextField: FunctionComponent<TextFieldProps>;
|
|
148
135
|
|
|
149
136
|
export { AppTileComponent as AppTile, BottomBarComponent as BottomBar, BottomInfoBar, CustomButtonComponent as Button, CheckboxComponent as Checkbox, DatePicker, Icon, IconButtonComponent as IconButton, Illustration, Logo, TextField, TypographyComponent as Typography };
|