@wix/form-public 0.551.0 → 0.552.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/dist/index.cjs CHANGED
@@ -61052,7 +61052,7 @@ ProductList.Description = Description;
61052
61052
  ProductList.Error = Error2;
61053
61053
  var RatingInput = ({ children }) => {
61054
61054
  const { id: id6, value, onChange, disabled, readOnly, required, hasError, onBlur, onFocus, FieldLayout } = useFieldPropsV2();
61055
- const { labelId } = useFieldAttributes();
61055
+ const { labelId, ariaDescribedBy } = useFieldAttributes();
61056
61056
  const handleChange = React172.useCallback((selectedValue) => onChange(Number(selectedValue)), [
61057
61057
  onChange
61058
61058
  ]);
@@ -61065,6 +61065,7 @@ var RatingInput = ({ children }) => {
61065
61065
  renderLabel: () => labelElement,
61066
61066
  renderInput: () => /* @__PURE__ */ React172__default.default.createElement(reactAriaComponents.RadioGroup, {
61067
61067
  "aria-labelledby": labelId,
61068
+ "aria-describedby": ariaDescribedBy,
61068
61069
  value: value ? String(value) : void 0,
61069
61070
  onChange: handleChange,
61070
61071
  isDisabled: disabled,
@@ -61080,7 +61081,7 @@ var RatingInput = ({ children }) => {
61080
61081
  };
61081
61082
  var Ratings = ({ children, className, getReactionLabel }) => {
61082
61083
  const { value, readOnly, hasError } = useFieldPropsV2();
61083
- const { inputId, ariaDescribedBy } = useFieldAttributes();
61084
+ const { inputId } = useFieldAttributes();
61084
61085
  const [hovered, setHovered] = React172.useState();
61085
61086
  const containerRef = React172.useRef(null);
61086
61087
  const ratingElement = findChildOfType(children, Ratings.Rating);
@@ -61095,7 +61096,6 @@ var Ratings = ({ children, className, getReactionLabel }) => {
61095
61096
  return /* @__PURE__ */ React172__default.default.createElement("div", {
61096
61097
  ref: containerRef,
61097
61098
  id: inputId,
61098
- "aria-describedby": ariaDescribedBy,
61099
61099
  className,
61100
61100
  "data-invalid": hasError,
61101
61101
  "data-readonly": readOnly