baaz-custom-components 5.0.32 → 5.0.33

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/index.d.mts CHANGED
@@ -108,6 +108,7 @@ type GridProps = {
108
108
  onFilterChange?: (payload: MultiFilterPayload) => void;
109
109
  onApiReady?: (api: IApi) => void;
110
110
  initialFilters?: any[];
111
+ children?: React.ReactNode;
111
112
  };
112
113
  type FilterCondition = ActiveFilter & {
113
114
  id: string;
package/dist/index.d.ts CHANGED
@@ -108,6 +108,7 @@ type GridProps = {
108
108
  onFilterChange?: (payload: MultiFilterPayload) => void;
109
109
  onApiReady?: (api: IApi) => void;
110
110
  initialFilters?: any[];
111
+ children?: React.ReactNode;
111
112
  };
112
113
  type FilterCondition = ActiveFilter & {
113
114
  id: string;
package/dist/index.js CHANGED
@@ -2360,7 +2360,8 @@ var GridHeader = ({
2360
2360
  searchkey = "",
2361
2361
  filterList,
2362
2362
  onFilterChange,
2363
- initialFilters = []
2363
+ initialFilters = [],
2364
+ children
2364
2365
  }) => {
2365
2366
  const [downloadMenu, setDownloadMenu] = (0, import_react6.useState)(false);
2366
2367
  const [searchOpen, setSearchOpen] = (0, import_react6.useState)(false);
@@ -2425,6 +2426,7 @@ var GridHeader = ({
2425
2426
  ] })
2426
2427
  ] })
2427
2428
  ] }),
2429
+ children,
2428
2430
  search && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "relative h-[40px] flex items-center", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2429
2431
  "div",
2430
2432
  {
@@ -2479,7 +2481,8 @@ var Grid = (0, import_react7.forwardRef)(
2479
2481
  fileName,
2480
2482
  fonts,
2481
2483
  onFilterChange,
2482
- initialFilters
2484
+ initialFilters,
2485
+ children
2483
2486
  } = _b, rest = __objRest(_b, [
2484
2487
  "data",
2485
2488
  "columns",
@@ -2492,7 +2495,8 @@ var Grid = (0, import_react7.forwardRef)(
2492
2495
  "fileName",
2493
2496
  "fonts",
2494
2497
  "onFilterChange",
2495
- "initialFilters"
2498
+ "initialFilters",
2499
+ "children"
2496
2500
  ]);
2497
2501
  const apiRef = (0, import_react7.useRef)(null);
2498
2502
  const containerRef = (0, import_react7.useRef)(null);
@@ -2592,7 +2596,8 @@ var Grid = (0, import_react7.forwardRef)(
2592
2596
  searchValue: rest.searchValue,
2593
2597
  filterList: rest.filterList,
2594
2598
  onFilterChange,
2595
- initialFilters
2599
+ initialFilters,
2600
+ children
2596
2601
  }
2597
2602
  ),
2598
2603
  /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "flex-1 w-full overflow-hidden", ref: containerRef, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react_grid.WillowDark, { fonts, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "w-full h-full relative", children: rest.loading ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "absolute inset-0 bg-background/60 backdrop-blur-sm flex items-center justify-center z-10", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "animate-spin rounded-full h-8 w-8 border-2 border-primary border-t-transparent" }) }) : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react_grid.Grid, __spreadProps(__spreadValues({}, rest), { data, columns, init })) }) }) })
package/dist/index.mjs CHANGED
@@ -2335,7 +2335,8 @@ var GridHeader = ({
2335
2335
  searchkey = "",
2336
2336
  filterList,
2337
2337
  onFilterChange,
2338
- initialFilters = []
2338
+ initialFilters = [],
2339
+ children
2339
2340
  }) => {
2340
2341
  const [downloadMenu, setDownloadMenu] = useState7(false);
2341
2342
  const [searchOpen, setSearchOpen] = useState7(false);
@@ -2400,6 +2401,7 @@ var GridHeader = ({
2400
2401
  ] })
2401
2402
  ] })
2402
2403
  ] }),
2404
+ children,
2403
2405
  search && /* @__PURE__ */ jsx24("div", { className: "relative h-[40px] flex items-center", children: /* @__PURE__ */ jsx24(
2404
2406
  "div",
2405
2407
  {
@@ -2454,7 +2456,8 @@ var Grid = forwardRef(
2454
2456
  fileName,
2455
2457
  fonts,
2456
2458
  onFilterChange,
2457
- initialFilters
2459
+ initialFilters,
2460
+ children
2458
2461
  } = _b, rest = __objRest(_b, [
2459
2462
  "data",
2460
2463
  "columns",
@@ -2467,7 +2470,8 @@ var Grid = forwardRef(
2467
2470
  "fileName",
2468
2471
  "fonts",
2469
2472
  "onFilterChange",
2470
- "initialFilters"
2473
+ "initialFilters",
2474
+ "children"
2471
2475
  ]);
2472
2476
  const apiRef = useRef3(null);
2473
2477
  const containerRef = useRef3(null);
@@ -2567,7 +2571,8 @@ var Grid = forwardRef(
2567
2571
  searchValue: rest.searchValue,
2568
2572
  filterList: rest.filterList,
2569
2573
  onFilterChange,
2570
- initialFilters
2574
+ initialFilters,
2575
+ children
2571
2576
  }
2572
2577
  ),
2573
2578
  /* @__PURE__ */ jsx25("div", { className: "flex-1 w-full overflow-hidden", ref: containerRef, children: /* @__PURE__ */ jsx25(WillowDark, { fonts, children: /* @__PURE__ */ jsx25("div", { className: "w-full h-full relative", children: rest.loading ? /* @__PURE__ */ jsx25("div", { className: "absolute inset-0 bg-background/60 backdrop-blur-sm flex items-center justify-center z-10", children: /* @__PURE__ */ jsx25("div", { className: "animate-spin rounded-full h-8 w-8 border-2 border-primary border-t-transparent" }) }) : /* @__PURE__ */ jsx25(SvarGrid, __spreadProps(__spreadValues({}, rest), { data, columns, init })) }) }) })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "baaz-custom-components",
3
- "version": "5.0.32",
3
+ "version": "5.0.33",
4
4
  "private": false,
5
5
  "sideEffects": false,
6
6
  "main": "dist/index.js",