@abdellatifui/react 3.2.86 → 3.2.88

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/dist/nextgen.d.ts CHANGED
@@ -1284,6 +1284,7 @@ declare interface TableProps_2 {
1284
1284
  ready?: boolean;
1285
1285
  multiple?: boolean;
1286
1286
  autoHideSpinner?: boolean;
1287
+ enableSidebar?: boolean;
1287
1288
  aggridProps?: Partial<AgGridReactProps>;
1288
1289
  className?: string;
1289
1290
  topbar?: boolean;
package/dist/nextgen.js CHANGED
@@ -27451,6 +27451,7 @@ const TableComponent = (props) => {
27451
27451
  aggridProps = {},
27452
27452
  enablePagination = true,
27453
27453
  cellGrid = false,
27454
+ enableSidebar = false,
27454
27455
  enableRowStream = false,
27455
27456
  showCellTextInTopBar = true,
27456
27457
  pageSize,
@@ -27937,7 +27938,7 @@ const TableComponent = (props) => {
27937
27938
  ...aggridProps
27938
27939
  }
27939
27940
  ) }),
27940
- /* @__PURE__ */ jsxRuntimeExports.jsx(TableSidebar, { ref: sideBarRef, gridRef, api: ref })
27941
+ enableSidebar && /* @__PURE__ */ jsxRuntimeExports.jsx(TableSidebar, { ref: sideBarRef, gridRef, api: ref })
27941
27942
  ] })
27942
27943
  ]
27943
27944
  }
@@ -28475,6 +28476,7 @@ const ShadcnTabs = forwardRef((props, ref) => {
28475
28476
  useEffect(() => {
28476
28477
  if (tabs?.length > 0) {
28477
28478
  tabs.map((tab) => {
28479
+ if (!tab.value) tab.value = useRandomId();
28478
28480
  if (tab?.default) {
28479
28481
  setDefaultTab(tab?.value);
28480
28482
  onChange({ event: null, ...tab, currentTab: defaultTab, props, ref }, tab.value);
@@ -28566,17 +28568,15 @@ const ShadcnTabs = forwardRef((props, ref) => {
28566
28568
  ]
28567
28569
  }
28568
28570
  ) }),
28569
- body && _tabs?.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cn(
28570
- "w-full h-fit relative",
28571
- theme === "modern" ? "border border-gray-200/60 rounded-md bg-white/50 backdrop-blur-sm p-4 mt-3 shadow-sm" : "border-solid border border-gray-200 p-1 my-1 rounded bg-[#fafafa]",
28572
- bodyClassName
28573
- ), children: _tabs?.map?.((tab) => {
28571
+ body && _tabs?.length > 0 && _tabs?.map((tab) => {
28574
28572
  const id2 = useRandomId();
28575
28573
  tab.tabs = _tabs;
28576
28574
  tab.props = props;
28577
- if (!tab.value) tab.value = id2;
28578
- return /* @__PURE__ */ jsxRuntimeExports.jsx(TabsContent, { id: id2, value: tab.value, theme, className: "m-0 p-0", children: tab?.content || /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {}) }, id2);
28579
- }) })
28575
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Activity, { mode: tab?.value == defaultTab ? "visible" : "hidden", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cn(
28576
+ "w-full p-0 m-0",
28577
+ bodyClassName
28578
+ ), children: tab?.content }) }, id2);
28579
+ })
28580
28580
  ] });
28581
28581
  });
28582
28582
  const TTextArea = forwardRef((props, ref) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@abdellatifui/react",
3
3
  "private": false,
4
- "version": "3.2.86",
4
+ "version": "3.2.88",
5
5
  "type": "module",
6
6
  "types": "dist/nextgen.d.ts",
7
7
  "files": [