@etsoo/materialui 1.3.16 → 1.3.18

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.
@@ -6,7 +6,7 @@ import { InputField } from "./InputField";
6
6
  * @returns Component
7
7
  */
8
8
  export function NumberInputField(props) {
9
- const { inputStyle = { textAlign: "right" }, min = 0, step = 1, max = 9999999, ...rest } = props;
9
+ const { inputStyle, min = 0, step = 1, max = 9999999, ...rest } = props;
10
10
  return (React.createElement(InputField, { inputProps: {
11
11
  min,
12
12
  step,
@@ -112,5 +112,5 @@ export function OptionGroup(props) {
112
112
  }
113
113
  } })),
114
114
  React.createElement(Box, { paddingLeft: 2, paddingY: "7px", position: outlined ? "absolute" : undefined }, group)),
115
- helperText && React.createElement(FormHelperText, null, helperText)));
115
+ helperText && (React.createElement(FormHelperText, { sx: { marginLeft: 2, marginRight: 2 } }, helperText))));
116
116
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/materialui",
3
- "version": "1.3.16",
3
+ "version": "1.3.18",
4
4
  "description": "TypeScript Material-UI Implementation",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -52,7 +52,7 @@
52
52
  "@emotion/styled": "^11.11.0",
53
53
  "@etsoo/appscript": "^1.4.53",
54
54
  "@etsoo/notificationbase": "^1.1.28",
55
- "@etsoo/react": "^1.7.10",
55
+ "@etsoo/react": "^1.7.11",
56
56
  "@etsoo/shared": "^1.2.12",
57
57
  "@mui/icons-material": "^5.14.9",
58
58
  "@mui/material": "^5.14.9",
@@ -84,7 +84,7 @@
84
84
  "@babel/runtime-corejs3": "^7.22.15",
85
85
  "@testing-library/jest-dom": "^6.1.3",
86
86
  "@testing-library/react": "^14.0.0",
87
- "@types/jest": "^29.5.4",
87
+ "@types/jest": "^29.5.5",
88
88
  "@typescript-eslint/eslint-plugin": "^6.7.0",
89
89
  "@typescript-eslint/parser": "^6.7.0",
90
90
  "jest": "^29.7.0",
@@ -35,13 +35,7 @@ export type NumberInputFieldProps = Omit<
35
35
  * @returns Component
36
36
  */
37
37
  export function NumberInputField(props: NumberInputFieldProps) {
38
- const {
39
- inputStyle = { textAlign: "right" },
40
- min = 0,
41
- step = 1,
42
- max = 9999999,
43
- ...rest
44
- } = props;
38
+ const { inputStyle, min = 0, step = 1, max = 9999999, ...rest } = props;
45
39
 
46
40
  return (
47
41
  <InputField
@@ -320,7 +320,11 @@ export function OptionGroup<
320
320
  {group}
321
321
  </Box>
322
322
  </FormControl>
323
- {helperText && <FormHelperText>{helperText}</FormHelperText>}
323
+ {helperText && (
324
+ <FormHelperText sx={{ marginLeft: 2, marginRight: 2 }}>
325
+ {helperText}
326
+ </FormHelperText>
327
+ )}
324
328
  </React.Fragment>
325
329
  );
326
330
  }