@availity/mui-textfield 0.4.3 → 0.5.1

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/CHANGELOG.md CHANGED
@@ -2,6 +2,22 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.5.1](https://github.com/Availity/element/compare/@availity/mui-textfield@0.5.0...@availity/mui-textfield@0.5.1) (2023-12-14)
6
+
7
+ ### Dependency Updates
8
+
9
+ * `mui-form-utils` updated to version `0.7.1`
10
+ ## [0.5.0](https://github.com/Availity/element/compare/@availity/mui-textfield@0.4.3...@availity/mui-textfield@0.5.0) (2023-12-14)
11
+
12
+ ### Dependency Updates
13
+
14
+ * `mui-form-utils` updated to version `0.7.0`
15
+
16
+ ### Features
17
+
18
+ * add form story ([11d1f6c](https://github.com/Availity/element/commit/11d1f6c6191540bf02ff42d4056ac553eecc8c73))
19
+ * **mui-textfield:** pass aria-required to inputProps ([3c7e497](https://github.com/Availity/element/commit/3c7e4976348ac8649b1accbff7e6f9a9f3c01bd8))
20
+
5
21
  ## [0.4.3](https://github.com/Availity/element/compare/@availity/mui-textfield@0.4.2...@availity/mui-textfield@0.4.3) (2023-12-04)
6
22
 
7
23
  ### Dependency Updates
@@ -14,16 +30,17 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/s
14
30
 
15
31
  ### Dependency Updates
16
32
 
17
- * `mui-form-utils` updated to version `0.6.1`
33
+ - `mui-form-utils` updated to version `0.6.1`
34
+
18
35
  ## [0.4.0](https://github.com/Availity/element/compare/@availity/mui-textfield@0.3.3...@availity/mui-textfield@0.4.0) (2023-11-22)
19
36
 
20
37
  ### Dependency Updates
21
38
 
22
- * `mui-form-utils` updated to version `0.6.0`
39
+ - `mui-form-utils` updated to version `0.6.0`
23
40
 
24
41
  ### Features
25
42
 
26
- * **mui-textfield:** swap required for aria-required ([0e3ced6](https://github.com/Availity/element/commit/0e3ced6c55b69edc2bfa5f27cb7aeb9abe616b6d))
43
+ - **mui-textfield:** swap required for aria-required ([0e3ced6](https://github.com/Availity/element/commit/0e3ced6c55b69edc2bfa5f27cb7aeb9abe616b6d))
27
44
 
28
45
  ## [0.3.3](https://github.com/Availity/element/compare/@availity/mui-textfield@0.3.2...@availity/mui-textfield@0.3.3) (2023-11-16)
29
46
 
package/dist/index.js CHANGED
@@ -36,10 +36,11 @@ var import_TextField = __toESM(require("@mui/material/TextField"));
36
36
  var import_mui_form_utils = require("@availity/mui-form-utils");
37
37
  var import_jsx_runtime = require("react/jsx-runtime");
38
38
  var TextField = (0, import_react.forwardRef)((props, ref) => {
39
- const { InputProps: InputProps2, helpTopicId, InputLabelProps, FormHelperTextProps: FormHelperTextProps2, required, SelectProps: SelectProps2, ...rest } = props;
39
+ const { InputProps: InputProps2, helpTopicId, InputLabelProps, FormHelperTextProps: FormHelperTextProps2, required, SelectProps: SelectProps2, inputProps, ...rest } = props;
40
40
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_TextField.default, {
41
41
  ...rest,
42
- InputProps: { "aria-required": required, ...InputProps2, ...import_mui_form_utils.InputPropOverrides },
42
+ inputProps: { "aria-required": required, ...inputProps },
43
+ InputProps: { ...InputProps2, ...import_mui_form_utils.InputPropOverrides },
43
44
  InputLabelProps: { component: import_mui_form_utils.FormLabel, helpTopicId, required, shrink: true, ...InputLabelProps },
44
45
  FormHelperTextProps: { component: import_mui_form_utils.FormHelperText, ...FormHelperTextProps2 },
45
46
  SelectProps: { ...SelectProps2, ...import_mui_form_utils.SelectPropOverrides },
package/dist/index.mjs CHANGED
@@ -9,10 +9,11 @@ import {
9
9
  } from "@availity/mui-form-utils";
10
10
  import { jsx } from "react/jsx-runtime";
11
11
  var TextField = forwardRef((props, ref) => {
12
- const { InputProps: InputProps2, helpTopicId, InputLabelProps, FormHelperTextProps: FormHelperTextProps2, required, SelectProps: SelectProps2, ...rest } = props;
12
+ const { InputProps: InputProps2, helpTopicId, InputLabelProps, FormHelperTextProps: FormHelperTextProps2, required, SelectProps: SelectProps2, inputProps, ...rest } = props;
13
13
  return /* @__PURE__ */ jsx(MuiTextField, {
14
14
  ...rest,
15
- InputProps: { "aria-required": required, ...InputProps2, ...InputPropOverrides },
15
+ inputProps: { "aria-required": required, ...inputProps },
16
+ InputProps: { ...InputProps2, ...InputPropOverrides },
16
17
  InputLabelProps: { component: FormLabel, helpTopicId, required, shrink: true, ...InputLabelProps },
17
18
  FormHelperTextProps: { component: FormHelperText, ...FormHelperTextProps2 },
18
19
  SelectProps: { ...SelectProps2, ...SelectPropOverrides },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@availity/mui-textfield",
3
- "version": "0.4.3",
3
+ "version": "0.5.1",
4
4
  "description": "Availity MUI Textfield Component - part of the @availity/element design system",
5
5
  "keywords": [
6
6
  "react",
@@ -32,7 +32,7 @@
32
32
  "publish:canary": "yarn npm publish --access public --tag canary"
33
33
  },
34
34
  "dependencies": {
35
- "@availity/mui-form-utils": "0.6.2",
35
+ "@availity/mui-form-utils": "0.7.1",
36
36
  "@availity/mui-icon": "0.7.3"
37
37
  },
38
38
  "devDependencies": {
@@ -22,12 +22,14 @@ export type TextFieldProps = {
22
22
  Omit<MuiTextFieldProps, 'fullWidth' | 'variant'>;
23
23
 
24
24
  export const TextField = forwardRef<HTMLDivElement | HTMLInputElement, TextFieldProps>((props, ref) => {
25
- const { InputProps, helpTopicId, InputLabelProps, FormHelperTextProps, required, SelectProps, ...rest } = props;
25
+ const { InputProps, helpTopicId, InputLabelProps, FormHelperTextProps, required, SelectProps, inputProps, ...rest } =
26
+ props;
26
27
 
27
28
  return (
28
29
  <MuiTextField
29
30
  {...rest}
30
- InputProps={{ 'aria-required': required, ...InputProps, ...InputPropOverrides }}
31
+ inputProps={{ 'aria-required': required, ...inputProps }}
32
+ InputProps={{ ...InputProps, ...InputPropOverrides }}
31
33
  InputLabelProps={{ component: FormLabel, helpTopicId: helpTopicId, required, shrink: true, ...InputLabelProps }}
32
34
  FormHelperTextProps={{ component: FormHelperText, ...FormHelperTextProps }}
33
35
  SelectProps={{ ...SelectProps, ...SelectPropOverrides }}