@vectara/vectara-ui 15.9.0 → 15.9.1

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.
@@ -46,19 +46,17 @@ export const VuiDrawer = (_a) => {
46
46
  (_a = returnFocusElRef.current) === null || _a === void 0 ? void 0 : _a.focus();
47
47
  returnFocusElRef.current = null;
48
48
  setShowTransition(false);
49
+ // Wait for the transition to complete before unmounting.
50
+ // This duration should match the CSS transition speed.
51
+ window.setTimeout(() => {
52
+ setIsContentVisible(false);
53
+ }, 200);
49
54
  }
50
55
  }, [isOpen]);
51
56
  // Allow contents to respond to blur events before unmounting.
52
57
  const onCloseDelayed = () => {
53
58
  window.setTimeout(() => {
54
- // First remove the transition class to trigger the exit animation.
55
- setShowTransition(false);
56
59
  onClose === null || onClose === void 0 ? void 0 : onClose();
57
- // Wait for the transition to complete before unmounting.
58
- // This duration should match the CSS transition speed.
59
- window.setTimeout(() => {
60
- setIsContentVisible(false);
61
- }, 200);
62
60
  }, 0);
63
61
  };
64
62
  // Handle outside clicks, but ignore clicks on notifications.
@@ -46,19 +46,17 @@ export const VuiModal = (_a) => {
46
46
  (_a = returnFocusElRef.current) === null || _a === void 0 ? void 0 : _a.focus();
47
47
  returnFocusElRef.current = null;
48
48
  setShowTransition(false);
49
+ // Wait for the transition to complete before unmounting.
50
+ // This duration should match the CSS transition speed.
51
+ window.setTimeout(() => {
52
+ setIsContentVisible(false);
53
+ }, 200);
49
54
  }
50
55
  }, [isOpen]);
51
56
  // Allow contents to respond to blur events before unmounting.
52
57
  const onCloseDelayed = () => {
53
58
  window.setTimeout(() => {
54
- // First remove the transition class to trigger the exit animation.
55
- setShowTransition(false);
56
59
  onClose === null || onClose === void 0 ? void 0 : onClose();
57
- // Wait for the transition to complete before unmounting.
58
- // This duration should match the CSS transition speed.
59
- window.setTimeout(() => {
60
- setIsContentVisible(false);
61
- }, 200);
62
60
  }, 0);
63
61
  };
64
62
  const containerClasses = classNames("vuiModalContainer", {
@@ -133,6 +133,11 @@ export const VuiPopover = (_a) => {
133
133
  (_a = returnFocusElRef.current) === null || _a === void 0 ? void 0 : _a.focus();
134
134
  returnFocusElRef.current = null;
135
135
  setShowTransition(false);
136
+ // Wait for the transition to complete before unmounting.
137
+ // This duration should match the CSS transition speed.
138
+ window.setTimeout(() => {
139
+ setIsContentVisible(false);
140
+ }, 200);
136
141
  }
137
142
  }, [isOpen]);
138
143
  // Allow contents to respond to blur events before unmounting, and also
@@ -140,14 +145,7 @@ export const VuiPopover = (_a) => {
140
145
  // outside of the popover.
141
146
  const onCloseDelayed = () => {
142
147
  window.setTimeout(() => {
143
- // First remove the transition class to trigger the exit animation.
144
- setShowTransition(false);
145
148
  setIsOpen(false);
146
- // Wait for the transition to complete before unmounting.
147
- // This duration should match the CSS transition speed.
148
- window.setTimeout(() => {
149
- setIsContentVisible(false);
150
- }, 200);
151
149
  }, 0);
152
150
  };
153
151
  // Always keep menu position up to date. If we tried to cache this inside
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vectara/vectara-ui",
3
- "version": "15.9.0",
3
+ "version": "15.9.1",
4
4
  "homepage": "./",
5
5
  "description": "Vectara's design system, codified as a React and Sass component library",
6
6
  "author": "Vectara",