@availity/mui-textfield 0.3.3 → 0.4.0

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,13 +2,24 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.4.0](https://github.com/Availity/element/compare/@availity/mui-textfield@0.3.3...@availity/mui-textfield@0.4.0) (2023-11-22)
6
+
7
+ ### Dependency Updates
8
+
9
+ * `mui-form-utils` updated to version `0.6.0`
10
+
11
+ ### Features
12
+
13
+ * **mui-textfield:** swap required for aria-required ([0e3ced6](https://github.com/Availity/element/commit/0e3ced6c55b69edc2bfa5f27cb7aeb9abe616b6d))
14
+
5
15
  ## [0.3.3](https://github.com/Availity/element/compare/@availity/mui-textfield@0.3.2...@availity/mui-textfield@0.3.3) (2023-11-16)
6
16
 
7
17
  ### Dependency Updates
8
18
 
9
- * `mui-form-utils` updated to version `0.5.4`
10
- * `mui-icon` updated to version `0.7.3`
11
- * `mui-button` updated to version `0.5.1`
19
+ - `mui-form-utils` updated to version `0.5.4`
20
+ - `mui-icon` updated to version `0.7.3`
21
+ - `mui-button` updated to version `0.5.1`
22
+
12
23
  ## [0.3.2](https://github.com/Availity/element/compare/@availity/mui-textfield@0.3.1...@availity/mui-textfield@0.3.2) (2023-11-08)
13
24
 
14
25
  ### Dependency Updates
package/dist/index.js CHANGED
@@ -36,11 +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, SelectProps: SelectProps2, ...rest } = props;
39
+ const { InputProps: InputProps2, helpTopicId, InputLabelProps, FormHelperTextProps: FormHelperTextProps2, required, SelectProps: SelectProps2, ...rest } = props;
40
40
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_TextField.default, {
41
41
  ...rest,
42
- InputProps: { ...InputProps2, ...import_mui_form_utils.InputPropOverrides },
43
- InputLabelProps: { component: import_mui_form_utils.FormLabel, helpTopicId, shrink: true, ...InputLabelProps },
42
+ InputProps: { "aria-required": required, ...InputProps2, ...import_mui_form_utils.InputPropOverrides },
43
+ InputLabelProps: { component: import_mui_form_utils.FormLabel, helpTopicId, required, shrink: true, ...InputLabelProps },
44
44
  FormHelperTextProps: { component: import_mui_form_utils.FormHelperText, ...FormHelperTextProps2 },
45
45
  SelectProps: { ...SelectProps2, ...import_mui_form_utils.SelectPropOverrides },
46
46
  ref
package/dist/index.mjs CHANGED
@@ -9,11 +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, SelectProps: SelectProps2, ...rest } = props;
12
+ const { InputProps: InputProps2, helpTopicId, InputLabelProps, FormHelperTextProps: FormHelperTextProps2, required, SelectProps: SelectProps2, ...rest } = props;
13
13
  return /* @__PURE__ */ jsx(MuiTextField, {
14
14
  ...rest,
15
- InputProps: { ...InputProps2, ...InputPropOverrides },
16
- InputLabelProps: { component: FormLabel, helpTopicId, shrink: true, ...InputLabelProps },
15
+ InputProps: { "aria-required": required, ...InputProps2, ...InputPropOverrides },
16
+ InputLabelProps: { component: FormLabel, helpTopicId, required, shrink: true, ...InputLabelProps },
17
17
  FormHelperTextProps: { component: FormHelperText, ...FormHelperTextProps2 },
18
18
  SelectProps: { ...SelectProps2, ...SelectPropOverrides },
19
19
  ref
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@availity/mui-textfield",
3
- "version": "0.3.3",
3
+ "version": "0.4.0",
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.5.4",
35
+ "@availity/mui-form-utils": "0.6.0",
36
36
  "@availity/mui-icon": "0.7.3"
37
37
  },
38
38
  "devDependencies": {
@@ -20,13 +20,13 @@ export type TextFieldProps = {
20
20
  Omit<MuiTextFieldProps, 'variant'>;
21
21
 
22
22
  export const TextField = forwardRef<HTMLDivElement | HTMLInputElement, TextFieldProps>((props, ref) => {
23
- const { InputProps, helpTopicId, InputLabelProps, FormHelperTextProps, SelectProps, ...rest } = props;
23
+ const { InputProps, helpTopicId, InputLabelProps, FormHelperTextProps, required, SelectProps, ...rest } = props;
24
24
 
25
25
  return (
26
26
  <MuiTextField
27
27
  {...rest}
28
- InputProps={{ ...InputProps, ...InputPropOverrides }}
29
- InputLabelProps={{ component: FormLabel, helpTopicId: helpTopicId, shrink: true, ...InputLabelProps }}
28
+ InputProps={{ 'aria-required': required, ...InputProps, ...InputPropOverrides }}
29
+ InputLabelProps={{ component: FormLabel, helpTopicId: helpTopicId, required, shrink: true, ...InputLabelProps }}
30
30
  FormHelperTextProps={{ component: FormHelperText, ...FormHelperTextProps }}
31
31
  SelectProps={{ ...SelectProps, ...SelectPropOverrides }}
32
32
  ref={ref}