@junyiacademy/ui-test 1.5.13 → 1.5.16
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/declarations/libs/ui/src/utils/Capitalize.d.ts +1 -1
- package/dist/libs/.DS_Store +0 -0
- package/dist/libs/ui/.DS_Store +0 -0
- package/dist/libs/ui/src/.DS_Store +0 -0
- package/dist/libs/ui/src/lib/text-field/TextField.js +11 -1
- package/dist/libs/ui/src/utils/Capitalize.js +1 -1
- package/package.json +5 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function capitalize(string: any):
|
|
1
|
+
export default function capitalize(string: any): string;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -9,6 +9,7 @@ const TextField_1 = require("@mui/material/TextField");
|
|
|
9
9
|
const Input_1 = require("@mui/material/Input");
|
|
10
10
|
const InputLabel_1 = require("@mui/material/InputLabel");
|
|
11
11
|
const OutlinedInput_1 = require("@mui/material/OutlinedInput");
|
|
12
|
+
const FormHelperText_1 = require("@mui/material/FormHelperText");
|
|
12
13
|
//utils
|
|
13
14
|
const Capitalize_1 = tslib_1.__importDefault(require("../../utils/Capitalize"));
|
|
14
15
|
// self-defined-components
|
|
@@ -52,7 +53,16 @@ const TextField = (props) => {
|
|
|
52
53
|
var _a;
|
|
53
54
|
const hasEndAdornment = !!((_a = props === null || props === void 0 ? void 0 : props.InputProps) === null || _a === void 0 ? void 0 : _a.endAdornment);
|
|
54
55
|
const { InputLabelProps, InputProps } = props, otherProps = tslib_1.__rest(props, ["InputLabelProps", "InputProps"]);
|
|
55
|
-
return (react_1.default.createElement(StyledTextField, Object.assign({ InputLabelProps: Object.assign(Object.assign({}, InputLabelProps), { shrink: hasEndAdornment ? true : undefined }),
|
|
56
|
+
return (react_1.default.createElement(StyledTextField, Object.assign({ InputLabelProps: Object.assign(Object.assign({}, InputLabelProps), { shrink: hasEndAdornment ? true : undefined }), FormHelperTextProps: {
|
|
57
|
+
sx: (theme) => ({
|
|
58
|
+
[`&.${FormHelperText_1.formHelperTextClasses.root}`]: {
|
|
59
|
+
marginLeft: 0,
|
|
60
|
+
[`&.${Input_1.inputClasses.error}`]: {
|
|
61
|
+
color: theme.palette.error.main,
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
}),
|
|
65
|
+
}, InputProps: Object.assign({}, InputProps) }, otherProps)));
|
|
56
66
|
};
|
|
57
67
|
exports.TextField = TextField;
|
|
58
68
|
exports.default = exports.TextField;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
function capitalize(string) {
|
|
4
|
-
return string.charAt(0).toUpperCase()
|
|
4
|
+
return `${string.charAt(0).toUpperCase()}${string.slice(1)}`;
|
|
5
5
|
}
|
|
6
6
|
exports.default = capitalize;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@junyiacademy/ui-test",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.16",
|
|
4
4
|
"description": "junyiacademy ui library",
|
|
5
5
|
"main": "./dist/libs/ui/src/index.js",
|
|
6
6
|
"typings": "./declarations/libs/ui/src/index.d.ts",
|
|
@@ -17,14 +17,13 @@
|
|
|
17
17
|
"access": "public"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@emotion/react": "11.
|
|
21
|
-
"@emotion/styled": "11.
|
|
22
|
-
"@mui/icons-material": "5.2
|
|
23
|
-
"@mui/material": "5.2
|
|
20
|
+
"@emotion/react": "11.9.0",
|
|
21
|
+
"@emotion/styled": "11.8.1",
|
|
22
|
+
"@mui/icons-material": "5.6.2",
|
|
23
|
+
"@mui/material": "5.6.2",
|
|
24
24
|
"react": "17.0.2"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@types/lodash": "^4.14.179",
|
|
28
27
|
"typescript": "~4.1.4"
|
|
29
28
|
}
|
|
30
29
|
}
|