@wix/form-public 0.483.0 → 0.484.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
@@ -51771,10 +51771,11 @@ var Options = ({ children, className }) => {
51771
51771
  isOther: true
51772
51772
  }));
51773
51773
  };
51774
- var OptionInput = ({ className }) => {
51774
+ var OptionInput = ({ className, ...internal }) => {
51775
+ const renderProps = internal;
51775
51776
  return /* @__PURE__ */ React171__default.default.createElement("div", {
51776
51777
  "aria-hidden": "true",
51777
- className
51778
+ className: typeof className === "function" ? className(renderProps) : className
51778
51779
  });
51779
51780
  };
51780
51781
  var OptionLabel = ({ className, ...internal }) => {
@@ -51839,9 +51840,12 @@ var Checkbox2 = ({ children, className, ...internal }) => {
51839
51840
  ref: checkboxRef,
51840
51841
  className,
51841
51842
  "data-hook": `checkbox-${label}`
51842
- }, inputElement, applyInternalProps(labelElement, {
51843
+ }, ({ isSelected, isHovered }) => /* @__PURE__ */ React171__default.default.createElement(React171__default.default.Fragment, null, applyInternalProps(inputElement, {
51844
+ isSelected,
51845
+ isHovered
51846
+ }), applyInternalProps(labelElement, {
51843
51847
  label
51844
- })));
51848
+ }))));
51845
51849
  };
51846
51850
  Checkbox2.Label = OptionLabel;
51847
51851
  Checkbox2.Input = OptionInput;