@availity/mui-textfield 0.3.2 → 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,32 +2,50 @@
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
+
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)
16
+
17
+ ### Dependency Updates
18
+
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
+
5
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)
6
24
 
7
25
  ### Dependency Updates
8
26
 
9
- * `mui-form-utils` updated to version `0.5.3`
10
- * `mui-button` updated to version `0.5.0`
27
+ - `mui-form-utils` updated to version `0.5.3`
28
+ - `mui-button` updated to version `0.5.0`
29
+
11
30
  ## [0.3.1](https://github.com/Availity/element/compare/@availity/mui-textfield@0.3.0...@availity/mui-textfield@0.3.1) (2023-11-08)
12
31
 
13
32
  ### Dependency Updates
14
33
 
15
- * `mui-form-utils` updated to version `0.5.2`
16
- * `mui-icon` updated to version `0.7.2`
17
- * `mui-button` updated to version `0.4.5`
18
- ## [0.3.0](https://github.com/Availity/element/compare/@availity/mui-textfield@0.2.1...@availity/mui-textfield@0.3.0) (2023-11-08)
34
+ - `mui-form-utils` updated to version `0.5.2`
35
+ - `mui-icon` updated to version `0.7.2`
36
+ - `mui-button` updated to version `0.4.5`
19
37
 
38
+ ## [0.3.0](https://github.com/Availity/element/compare/@availity/mui-textfield@0.2.1...@availity/mui-textfield@0.3.0) (2023-11-08)
20
39
 
21
40
  ### Features
22
41
 
23
- * **mui-datepicker:** add datepicker component ([2efdbf5](https://github.com/Availity/element/commit/2efdbf5112583c4322d588823f0ce0b7227fde6f))
24
- * **mui-datepicker:** update styles for datepicker ([b250d38](https://github.com/Availity/element/commit/b250d382691a83bfc12c066a2d4eeb9af147689f))
25
-
42
+ - **mui-datepicker:** add datepicker component ([2efdbf5](https://github.com/Availity/element/commit/2efdbf5112583c4322d588823f0ce0b7227fde6f))
43
+ - **mui-datepicker:** update styles for datepicker ([b250d38](https://github.com/Availity/element/commit/b250d382691a83bfc12c066a2d4eeb9af147689f))
26
44
 
27
45
  ### Bug Fixes
28
46
 
29
- * **mui-datepicker:** update styles ([1c0aa8a](https://github.com/Availity/element/commit/1c0aa8a3a2ce13df6655561236ebfaacdaceb28e))
30
- * **mui-datepicker:** use updated TextField ([23caa3a](https://github.com/Availity/element/commit/23caa3a0852f0249afb9ca0ef411db106c7049df))
47
+ - **mui-datepicker:** update styles ([1c0aa8a](https://github.com/Availity/element/commit/1c0aa8a3a2ce13df6655561236ebfaacdaceb28e))
48
+ - **mui-datepicker:** use updated TextField ([23caa3a](https://github.com/Availity/element/commit/23caa3a0852f0249afb9ca0ef411db106c7049df))
31
49
 
32
50
  ## [0.2.1](https://github.com/Availity/element/compare/@availity/mui-textfield@0.2.0...@availity/mui-textfield@0.2.1) (2023-11-07)
33
51
 
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.2",
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,8 +32,8 @@
32
32
  "publish:canary": "yarn npm publish --access public --tag canary"
33
33
  },
34
34
  "dependencies": {
35
- "@availity/mui-form-utils": "0.5.3",
36
- "@availity/mui-icon": "0.7.2"
35
+ "@availity/mui-form-utils": "0.6.0",
36
+ "@availity/mui-icon": "0.7.3"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@mui/material": "^5.14.12",
@@ -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}