@availity/mui-controlled-form 0.2.1 → 0.2.2

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,13 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.2.2](https://github.com/Availity/element/compare/@availity/mui-controlled-form@0.2.1...@availity/mui-controlled-form@0.2.2) (2025-02-04)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **mui-controlled-form:** forward required from controlled text field to text field ([c223248](https://github.com/Availity/element/commit/c223248ec4a970ebb078d170d7d9fec74e02dbdc))
11
+
5
12
  ## [0.2.1](https://github.com/Availity/element/compare/@availity/mui-controlled-form@0.2.0...@availity/mui-controlled-form@0.2.1) (2025-02-04)
6
13
 
7
14
 
package/README.md CHANGED
@@ -12,7 +12,7 @@ This package extends the Element's Form components with [react-hook-form](https:
12
12
 
13
13
  Live demo and documentation in our [Storybook](https://availity.github.io/element/?path=/docs/form-components-controlled-form-introduction--docs)
14
14
 
15
- Availity standards for design and usage can be found in the [Availity Design Guide](https://zeroheight.com/2e36e50c7)
15
+ Availity standards for design and usage can be found in the [Availity Design Guide](https://design.availity.com/2e36e50c7)
16
16
 
17
17
  ## Installation
18
18
 
package/dist/index.js CHANGED
@@ -845,7 +845,9 @@ var ControlledTextField = (_a) => {
845
845
  const errorMessage = (_a2 = errors[name]) == null ? void 0 : _a2.message;
846
846
  return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
847
847
  import_mui_textfield.TextField,
848
- __spreadProps(__spreadValues(__spreadValues({}, rest), register(name, {
848
+ __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, rest), {
849
+ required: !!required
850
+ }), register(name, {
849
851
  required,
850
852
  maxLength,
851
853
  minLength,
package/dist/index.mjs CHANGED
@@ -811,7 +811,9 @@ var ControlledTextField = (_a) => {
811
811
  const errorMessage = (_a2 = errors[name]) == null ? void 0 : _a2.message;
812
812
  return /* @__PURE__ */ jsx12(
813
813
  TextField,
814
- __spreadProps(__spreadValues(__spreadValues({}, rest), register(name, {
814
+ __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, rest), {
815
+ required: !!required
816
+ }), register(name, {
815
817
  required,
816
818
  maxLength,
817
819
  minLength,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@availity/mui-controlled-form",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Availity MUI ControlledForm Component - part of the @availity/element design system",
5
5
  "keywords": [
6
6
  "react",
@@ -34,6 +34,7 @@ export const ControlledTextField = ({
34
34
  return (
35
35
  <TextField
36
36
  {...rest}
37
+ required={!!required}
37
38
  {...register(name, {
38
39
  required,
39
40
  maxLength,