@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.
@@ -1,37 +1,5 @@
1
- import * as React from 'react';
2
- import propTypes from "prop-types";
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
- declare const TextField: {
116
- ({ label, error, icon, disabled, fluid, type, min, max, small, helperText, value, onChange, onBlur, forwardedRef, endAdornment, ...props }: {
117
- [x: string]: any;
118
- label?: string | undefined;
119
- error?: boolean | undefined;
120
- icon?: string | undefined;
121
- disabled?: boolean | undefined;
122
- fluid?: boolean | undefined;
123
- type?: string | undefined;
124
- min?: string | undefined;
125
- max?: string | undefined;
126
- small?: boolean | undefined;
127
- helperText?: string | undefined;
128
- value?: string | undefined;
129
- onChange?: ((event: React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>) => null) | undefined;
130
- onBlur?: ((event: React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>) => null) | undefined;
131
- forwardedRef?: null | undefined;
132
- endAdornment?: string | undefined;
133
- }): JSX.Element;
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xelto.npm/xc2-lib",
3
- "version": "0.0.37",
3
+ "version": "0.0.39",
4
4
  "author": "XELTO",
5
5
  "description": "React component library based on MUI",
6
6
  "license": "ISC",