mautourco-components 0.2.81 → 0.2.82

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.
@@ -29,8 +29,10 @@ var CarBookingCard = function (_a) {
29
29
  var dropdownRef = useRef(null);
30
30
  var panelRef = useRef(null);
31
31
  // Synchronize internal isSelected state with the state prop when it changes from parent
32
+ // Also reset isHovered to prevent text staying as "Remove" when state changes
32
33
  useEffect(function () {
33
34
  setIsSelected(state === 'selected');
35
+ setIsHovered(false);
34
36
  }, [state]);
35
37
  var resolvedShowSupplement = showSupplement !== null && showSupplement !== void 0 ? showSupplement : Boolean(supplements.length > 0 && transfers.length > 0);
36
38
  var hasSupplementsSelected = selectedSupplements.some(function (s) { return s.value > 0; });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mautourco-components",
3
- "version": "0.2.81",
3
+ "version": "0.2.82",
4
4
  "private": false,
5
5
  "description": "Bibliothèque de composants Mautourco pour le redesign",
6
6
  "main": "dist/index.js",
@@ -107,8 +107,10 @@ const CarBookingCard: React.FC<CarBookingCardProps> = ({
107
107
  const panelRef = useRef<HTMLDivElement>(null);
108
108
 
109
109
  // Synchronize internal isSelected state with the state prop when it changes from parent
110
+ // Also reset isHovered to prevent text staying as "Remove" when state changes
110
111
  useEffect(() => {
111
112
  setIsSelected(state === 'selected');
113
+ setIsHovered(false);
112
114
  }, [state]);
113
115
 
114
116
  const resolvedShowSupplement =