Skip to content

Commit

Permalink
push build files [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Jun 26, 2023
1 parent 365958e commit 2f96bd3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/cjs/components/form/PasswordField.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { TextFieldProps } from './TextField';
export interface PasswordFieldProps extends Omit<TextFieldProps, ('type' | 'name' | 'required')> {
export interface PasswordFieldProps extends Omit<TextFieldProps, ('type' | 'name')> {
name?: string;
}
declare const PasswordField: React.FC<PasswordFieldProps>;
Expand Down
2 changes: 1 addition & 1 deletion lib/cjs/components/form/PasswordField.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var yup_1 = require("yup");
var TextField_1 = __importDefault(require("./TextField"));
var PasswordField = function (_a) {
var _b = _a.name, name = _b === void 0 ? 'password' : _b, _c = _a.InputProps, InputProps = _c === void 0 ? {} : _c, _d = _a.validate, validate = _d === void 0 ? (0, yup_1.string)() : _d, otherTextFieldProps = __rest(_a, ["name", "InputProps", "validate"]);
return (react_1.default.createElement(TextField_1.default, __assign({ required: true, type: 'password', name: name, validate: validate, InputProps: __assign(__assign({}, InputProps), { endAdornment: (react_1.default.createElement(material_1.InputAdornment, { position: 'end' },
return (react_1.default.createElement(TextField_1.default, __assign({ type: 'password', name: name, validate: validate, InputProps: __assign(__assign({}, InputProps), { endAdornment: (react_1.default.createElement(material_1.InputAdornment, { position: 'end' },
react_1.default.createElement(icons_material_1.Security, null))) }) }, otherTextFieldProps)));
};
exports.default = PasswordField;
2 changes: 1 addition & 1 deletion lib/esm/components/form/PasswordField.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { TextFieldProps } from './TextField';
export interface PasswordFieldProps extends Omit<TextFieldProps, ('type' | 'name' | 'required')> {
export interface PasswordFieldProps extends Omit<TextFieldProps, ('type' | 'name')> {
name?: string;
}
declare const PasswordField: React.FC<PasswordFieldProps>;
Expand Down
2 changes: 1 addition & 1 deletion lib/esm/components/form/PasswordField.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { string as YupString } from 'yup';
import TextField from './TextField';
var PasswordField = function (_a) {
var _b = _a.name, name = _b === void 0 ? 'password' : _b, _c = _a.InputProps, InputProps = _c === void 0 ? {} : _c, _d = _a.validate, validate = _d === void 0 ? YupString() : _d, otherTextFieldProps = __rest(_a, ["name", "InputProps", "validate"]);
return (React.createElement(TextField, __assign({ required: true, type: 'password', name: name, validate: validate, InputProps: __assign(__assign({}, InputProps), { endAdornment: (React.createElement(InputAdornment, { position: 'end' },
return (React.createElement(TextField, __assign({ type: 'password', name: name, validate: validate, InputProps: __assign(__assign({}, InputProps), { endAdornment: (React.createElement(InputAdornment, { position: 'end' },
React.createElement(SecurityIcon, null))) }) }, otherTextFieldProps)));
};
export default PasswordField;

0 comments on commit 2f96bd3

Please sign in to comment.