@pedidopago/ui 1.6.3 → 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,
|
|
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.
|
|
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",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"author": "Pedido Pago",
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@emotion/react": "
|
|
25
|
-
"@emotion/styled": "
|
|
24
|
+
"@emotion/react": "11.4.0",
|
|
25
|
+
"@emotion/styled": "11.3.0",
|
|
26
26
|
"framer-motion": "^4.1.17",
|
|
27
27
|
"phone": "^3.1.33",
|
|
28
28
|
"react": "^17.0.2",
|
|
@@ -41,6 +41,10 @@
|
|
|
41
41
|
"build-storybook": "build-storybook -s public",
|
|
42
42
|
"chromatic": "npx chromatic"
|
|
43
43
|
},
|
|
44
|
+
"peerDependencies": {
|
|
45
|
+
"react": "^17.0.2",
|
|
46
|
+
"react-dom": "^17.0.2"
|
|
47
|
+
},
|
|
44
48
|
"eslintConfig": {
|
|
45
49
|
"extends": [
|
|
46
50
|
"react-app",
|