@junyiacademy/ui-test 1.5.11 → 1.5.12

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.
@@ -12,7 +12,7 @@ const OutlinedInput_1 = require("@mui/material/OutlinedInput");
12
12
  //utils
13
13
  const lodash_1 = tslib_1.__importDefault(require("lodash"));
14
14
  // self-defined-components
15
- const StyledTextField = styles_1.styled(material_1.TextField)(({ color = 'primary', theme }) => ({
15
+ const StyledTextField = styles_1.styled(material_1.TextField)(({ label, color = 'primary', theme }) => ({
16
16
  [`& .${InputLabel_1.inputLabelClasses.error}`]: {
17
17
  [`&:not(.${InputLabel_1.inputLabelClasses.shrink})`]: {
18
18
  color: theme.palette.text.secondary,
@@ -42,6 +42,11 @@ const StyledTextField = styles_1.styled(material_1.TextField)(({ color = 'primar
42
42
  borderColor: theme.palette[color].main,
43
43
  },
44
44
  },
45
+ [`& .${OutlinedInput_1.outlinedInputClasses.notchedOutline}`]: {
46
+ '& > legend': {
47
+ maxWidth: label === '' && 0,
48
+ },
49
+ },
45
50
  }));
46
51
  const TextField = (props) => {
47
52
  var _a;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junyiacademy/ui-test",
3
- "version": "1.5.11",
3
+ "version": "1.5.12",
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",