@pedidopago/ui 1.6.4 → 1.6.5

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CheckboxInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,mBAAmB,EAKpB,MAAM,OAAO,CAAC;AAOf,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAErE,QAAA,MAAM,aAAa,+JA2ElB,CAAC;AAIF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CheckboxInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,mBAAmB,EAMpB,MAAM,OAAO,CAAC;AAOf,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAErE,QAAA,MAAM,aAAa,+JA8ElB,CAAC;AAIF,eAAe,aAAa,CAAC"}
@@ -71,6 +71,9 @@ var CheckboxInput = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
71
71
  }
72
72
  };
73
73
  }, [checked]);
74
+ (0, _react.useEffect)(function () {
75
+ _setChecked(defaultIsChecked || false);
76
+ }, [defaultIsChecked]);
74
77
 
75
78
  function handleChange(e) {
76
79
  if (e !== null && e !== void 0 && e.currentTarget) {
@@ -99,7 +102,6 @@ var CheckboxInput = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
99
102
  type: "checkbox",
100
103
  id: id,
101
104
  color: color,
102
- defaultChecked: defaultIsChecked,
103
105
  checked: checked,
104
106
  onChange: handleChange,
105
107
  disabled: isDisabled
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pedidopago/ui",
3
- "version": "1.6.4",
3
+ "version": "1.6.5",
4
4
  "description": "Quick build beatiful Pedido Pago apps",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",