@nualang/nualang-ui-components 0.1.1294 → 0.1.1295

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.
@@ -270,6 +270,7 @@ function ResponsiveTabs({
270
270
  localStorage.setItem(`creator-discuss-tour-completed`, "true");
271
271
  }
272
272
  };
273
+ const activeFabs = fabs.flat().filter(fab => fab.tabIndex === value);
273
274
  return /*#__PURE__*/_jsxs("div", {
274
275
  className: classes.root,
275
276
  children: [appbar ? /*#__PURE__*/_jsx(AppBar, {
@@ -286,15 +287,12 @@ function ResponsiveTabs({
286
287
  index: i,
287
288
  children: Child
288
289
  }, i) : null), /*#__PURE__*/_jsx(FabContainer, {
289
- children: fabs.map(btns => btns.map((fab, idx) => fab.link ? /*#__PURE__*/_jsx(Link, {
290
+ children: activeFabs.map(fab => fab.link ? /*#__PURE__*/_jsx(Link, {
290
291
  to: fab.link,
291
292
  id: fab.id,
292
293
  children: /*#__PURE__*/_jsx(Zoom, {
293
- in: value === fab.tabIndex,
294
+ in: true,
294
295
  timeout: transitionDuration,
295
- style: {
296
- transitionDelay: `${value === fab.tabIndex ? transitionDuration.exit : 0}ms`
297
- },
298
296
  unmountOnExit: true,
299
297
  children: /*#__PURE__*/_jsx(Tooltip, {
300
298
  title: fab.disabled ? t("no_members_tooltip") : fab.title,
@@ -308,12 +306,9 @@ function ResponsiveTabs({
308
306
  })
309
307
  })
310
308
  })
311
- }, idx) : /*#__PURE__*/_jsx(Zoom, {
312
- in: value === fab.tabIndex,
309
+ }, fab.id) : /*#__PURE__*/_jsx(Zoom, {
310
+ in: true,
313
311
  timeout: transitionDuration,
314
- style: {
315
- transitionDelay: `${value === fab.tabIndex ? transitionDuration.exit : 0}ms`
316
- },
317
312
  unmountOnExit: true,
318
313
  children: /*#__PURE__*/_jsx(Tooltip, {
319
314
  title: fab.disabled ? t("no_members_tooltip") : fab.title,
@@ -329,7 +324,7 @@ function ResponsiveTabs({
329
324
  })
330
325
  })
331
326
  })
332
- }, idx)))
327
+ }, fab.id))
333
328
  }), run && /*#__PURE__*/_jsx(Joyride, {
334
329
  callback: handleJoyrideCallback,
335
330
  continuous: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nualang/nualang-ui-components",
3
- "version": "0.1.1294",
3
+ "version": "0.1.1295",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -21,7 +21,7 @@
21
21
  "@hookform/resolvers": "^3.6.0",
22
22
  "@json2csv/plainjs": "^7.0.1",
23
23
  "@nualang/avatars": "2.0.3",
24
- "@nualang/nualang-api-and-queries": "^1.1.21",
24
+ "@nualang/nualang-api-and-queries": "^1.1.22",
25
25
  "@stripe/react-stripe-js": "^2.1.1",
26
26
  "@stripe/stripe-js": "^1.54.2",
27
27
  "ajv-keywords": "^3.5.2",