impact-ui 3.7.26-alpha.11 → 3.7.26-alpha.13

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impact-ui",
3
- "version": "3.7.26-alpha.11",
3
+ "version": "3.7.26-alpha.13",
4
4
  "description": "Impact Analytics UI library",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -1126,6 +1126,7 @@ $slide-ease: cubic-bezier(0.22, 1, 0.36, 1);
1126
1126
  left: 50%;
1127
1127
  transform: translateX(-50%);
1128
1128
  bottom: 24px;
1129
+ z-index: 999999;
1129
1130
 
1130
1131
  .close-icon-container {
1131
1132
  right: -10px;
@@ -190,6 +190,10 @@ export const KeyboardShortcuts = ({
190
190
  </>
191
191
  )}
192
192
 
193
+ {showTutorialModal && (
194
+ <div aria-hidden="true" className="tutorial-overlay"></div>
195
+ )}
196
+
193
197
  {showTutorialModal && (
194
198
  <TutorialModal
195
199
  setShowTutorialModal={setShowTutorialModal}
@@ -80,8 +80,6 @@ export const TutorialModal = ({
80
80
  const [tutorialStep, setTutorialStep] = useState(0);
81
81
  const step = tutorialSteps[tutorialStep];
82
82
  const [showLottie, setShowLottie] = useState(false);
83
- const [showOverlay, setShowOverlay] = useState(true);
84
- const overlayTimerRef = useRef(null);
85
83
  const modalRef = useRef(null);
86
84
  const [step2Position, setStep2Position] = useState(null);
87
85
 
@@ -106,14 +104,6 @@ export const TutorialModal = ({
106
104
  onSkipClick?.();
107
105
  };
108
106
 
109
- // On mount, fade out overlay after 1 second
110
- useEffect(() => {
111
- overlayTimerRef.current = setTimeout(() => {
112
- setShowOverlay(false);
113
- }, 1000);
114
- return () => clearTimeout(overlayTimerRef.current);
115
- }, []);
116
-
117
107
  useShortcut("mod+b", (e) => {
118
108
  ShortcutManager.getInstance().trigger('sidebar-toggle-mod-b', e);
119
109
  if (tutorialStep === 0) {
@@ -122,12 +112,6 @@ export const TutorialModal = ({
122
112
  setTimeout(() => {
123
113
  setTutorialStep(1);
124
114
  setShowLottie(false);
125
- // Re-show overlay after step transition, then fade out after 1s
126
- clearTimeout(overlayTimerRef.current);
127
- setShowOverlay(true);
128
- overlayTimerRef.current = setTimeout(() => {
129
- setShowOverlay(false);
130
- }, 1000);
131
115
  }, 1000);
132
116
  }, {
133
117
  id: "tutorial-step-0-mod-b",
@@ -143,12 +127,6 @@ export const TutorialModal = ({
143
127
  setTimeout(() => {
144
128
  setTutorialStep(2);
145
129
  setShowLottie(false);
146
- // Re-show overlay after step transition, then fade out after 1s
147
- clearTimeout(overlayTimerRef.current);
148
- setShowOverlay(true);
149
- overlayTimerRef.current = setTimeout(() => {
150
- setShowOverlay(false);
151
- }, 1000);
152
130
  }, 1000);
153
131
  },
154
132
  {
@@ -175,10 +153,6 @@ export const TutorialModal = ({
175
153
 
176
154
  return (
177
155
  <>
178
- <div
179
- aria-hidden="true"
180
- className={`tutorial-overlay${showOverlay ? "" : " overlay--hidden"}`}
181
- ></div>
182
156
  <div
183
157
  ref={modalRef}
184
158
  className={`tutorial-modal-wrapper tutorial-modal--step-${tutorialStep} tutorial-modal--arrow-${step.arrowPosition}${
@@ -460,8 +460,10 @@ function AgGridHeader({
460
460
  >
461
461
  {children}
462
462
  </Tooltip>
463
+
463
464
  </div>
464
465
  )}
466
+ {customIcon && customIcon}
465
467
  {rest?.column?.colDef?.sortable && (
466
468
  <img
467
469
  src={