arengibook 2.4.33 → 2.4.34

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.
Files changed (2) hide show
  1. package/dist/index.js +9 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -12860,6 +12860,15 @@ var DatePicker = function DatePicker(_ref) {
12860
12860
  inputRef.current.dispatchEvent(event);
12861
12861
  }
12862
12862
  };
12863
+ useEffect(function () {
12864
+ if (inputRef.current) {
12865
+ // Créer et déclencher un événement personnalisé
12866
+ var event = new Event('datePickerChange', {
12867
+ bubbles: true
12868
+ });
12869
+ inputRef.current.dispatchEvent(event);
12870
+ }
12871
+ }, [valeur]);
12863
12872
  addLocale(localLanguage, LOCALES[localLanguage]);
12864
12873
  return /*#__PURE__*/React__default.createElement("div", {
12865
12874
  className: fullWidth ? "datepicker-fullwidth flex flex-col gap-1" : "flex flex-col gap-1"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "arengibook",
3
3
  "private": false,
4
- "version": "2.4.33",
4
+ "version": "2.4.34",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
7
7
  "exports": {