mautourco-components 0.2.169 → 0.2.170

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.
@@ -84,6 +84,11 @@ function PaxSelector(_a) {
84
84
  setInternalData(__assign(__assign({}, internalData), { adults: minAdults, teens: minTeens, children: minChildren, infants: minInfants }));
85
85
  }
86
86
  }, [minAdults, minTeens, minChildren, minInfants]);
87
+ useEffect(function () {
88
+ if (defaultPaxData) {
89
+ setInternalData(defaultPaxData);
90
+ }
91
+ }, [defaultPaxData]);
87
92
  // Manage age arrays in single mode when counts change
88
93
  useEffect(function () {
89
94
  if (!multipleRooms) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mautourco-components",
3
- "version": "0.2.169",
3
+ "version": "0.2.170",
4
4
  "private": false,
5
5
  "description": "Bibliothèque de composants Mautourco pour le redesign",
6
6
  "main": "dist/index.js",
@@ -202,6 +202,12 @@ function PaxSelector({
202
202
  }
203
203
  }, [minAdults, minTeens, minChildren, minInfants]);
204
204
 
205
+ useEffect(() => {
206
+ if (defaultPaxData) {
207
+ setInternalData(defaultPaxData);
208
+ }
209
+ }, [defaultPaxData]);
210
+
205
211
  // Manage age arrays in single mode when counts change
206
212
  useEffect(() => {
207
213
  if (!multipleRooms) {