@simpoobusiness/sdk 1.0.1 → 1.0.2

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/esm/index.js CHANGED
@@ -28751,7 +28751,7 @@ function PaginationComponent({ showBulkActions = true, meta, }) {
28751
28751
  }, [meta?.per_page]);
28752
28752
  return (jsxs("div", { className: cn("flex items-center justify-between gap-4 flex-wrap", meta && meta?.total > 0 ? null : "hidden"), children: [showBulkActions ? (jsxs("div", { className: "flex items-center gap-2.5 shrink-0", children: [jsxs(DropdownMenu, { children: [jsx$1(DropdownMenuTrigger, { asChild: true, children: jsxs("button", { className: "rounded-md h-9 flex items-center justify-between p-3 font-semibold text-xs text-gray-600 outline-none border border-gray-300 gap-2.5 ", children: [perview, jsx$1("span", { className: "rotate-90", children: icons.arrow })] }) }), jsx$1(DropdownMenuContent, { align: "center", className: "flex flex-col gap-2.5 rounded-xl border-gray-200 py-2.5", children: rowsPerPage.map((count, index) => (jsx$1(DropdownMenuItem, { className: `capitalize focus:bg-primary_light rounded-md focus:text-primary font-semibold text-sm cursor-pointer px-[15px] flex items-center gap-[5px] ${perview === count
28753
28753
  ? "bg-primary_light text-primary"
28754
- : "text-gray-700"} `, onClick: () => dispatch(setPerview(count)), children: count }, index))) })] }), jsxs("p", { className: "font-normal text-gray-600 text-[15px]", children: ["Showing ", meta?.from, " - ", meta?.to, " of ", meta?.total] })] })) : null, jsx$1(Pagination, { count: meta?.last_page, page: meta?.current_page, shape: "rounded", color: "primary", onChange: handleChange })] }));
28754
+ : "text-gray-700"} `, onClick: () => dispatch(setPerview(count)), children: count }, index))) })] }), jsxs("p", { className: "font-normal text-gray-600 text-[15px]", children: ["Showing ", meta?.from, " - ", meta?.to, " of ", meta?.total] })] })) : null, jsx$1(Pagination, { count: meta?.last_page || 1, page: meta?.current_page ?? 1, shape: "rounded", color: "primary", onChange: handleChange })] }));
28755
28755
  }
28756
28756
 
28757
28757
  function ItemEmpty({ props = {} }) {
@@ -28780,12 +28780,12 @@ accordionData, hasAccordion, bodyRowClass, tableContainerClass, firstCellClass,
28780
28780
  .fill(null)
28781
28781
  .map((_, index) => (jsx$1(React__default.Fragment, { children: table.getHeaderGroups().map((headerGroup) => (jsx$1(TableRow, { className: cn("border-gray-300 hover:!bg-gray-100 rounded-xl"), children: headerGroup.headers.map((header) => {
28782
28782
  return (jsx$1(TableCell, { children: jsx$1(Skeleton, { className: "w-full h-6 rounded-lg" }) }, header.id));
28783
- }) }, headerGroup.id))) }, index)))) : table?.getRowModel().rows?.length ? (table?.getRowModel().rows.map((row, i) => (jsx$1(Fragment, { children: jsx$1(TableRow, { onClick: () => toggleAccordion(i, row.original), "data-state": row.getIsSelected() && "selected", className: `border-gray-300 hover:!bg-gray-100 data-[state=selected]:bg-gray-100 ${bodyRowClass} `, children: row.getVisibleCells().map((cell, index) => (jsx$1(TableCell, { className: cn("text-gray-500 text-sm font-bold", tbCellClass, index === 0 && firstCellClass, index === row.getVisibleCells().length - 1 &&
28783
+ }) }, headerGroup.id))) }, index)))) : table?.getRowModel().rows?.length ? (table?.getRowModel().rows.map((row, i) => (jsx$1(React__default.Fragment, { children: jsx$1(TableRow, { onClick: () => toggleAccordion(i, row.original), "data-state": row.getIsSelected() && "selected", className: `border-gray-300 hover:!bg-gray-100 data-[state=selected]:bg-gray-100 ${bodyRowClass} `, children: row.getVisibleCells().map((cell, index) => (jsx$1(TableCell, { className: cn("text-gray-500 text-sm font-bold", tbCellClass, index === 0 && firstCellClass, index === row.getVisibleCells().length - 1 &&
28784
28784
  lastCellClass), children: jsxs("div", { className: "flex", children: [hasAccordion &&
28785
28785
  showAccordionDropdown &&
28786
28786
  index === 0 && (jsx$1("div", { className: "cursor-pointer inline", children: jsx$1("div", { className: `transform transition-transform duration-200 ${openRowIndex === i
28787
28787
  ? "-rotate-90"
28788
- : "rotate-90"}`, children: icons.arrow }) })), " ", jsx$1("div", { children: flexRender(cell.column.columnDef.cell, cell.getContext()) })] }) }, cell.id))) }, row.id) })))) : (jsx$1(TableRow, { children: jsx$1(TableCell, { colSpan: columns.length, className: "h-24 text-center hover:bg-gray-100", children: emptyData ? (jsx$1(ItemEmpty, { props: emptyProps })) : ("No results found.") }) })) })] }) }), showPaginate && (jsx$1(PaginationComponent, { showBulkActions: showBulkActions, meta: meta }))] }));
28788
+ : "rotate-90"}`, children: icons.arrow }) })), " ", jsx$1("div", { children: flexRender(cell.column.columnDef.cell, cell.getContext()) })] }) }, cell.id))) }, row.id) }, row.id)))) : (jsx$1(TableRow, { children: jsx$1(TableCell, { colSpan: columns.length, className: "h-24 text-center hover:bg-gray-100", children: emptyData ? (jsx$1(ItemEmpty, { props: emptyProps })) : ("No results found.") }) })) })] }) }), showPaginate && (jsx$1(PaginationComponent, { showBulkActions: showBulkActions, meta: meta }))] }));
28789
28789
  }
28790
28790
 
28791
28791
  function formatToCurrency(value, currency = "NGN", locale = "en-NG") {
@@ -29399,7 +29399,7 @@ const InventoryTable = () => {
29399
29399
  if (item.images?.length > 0) {
29400
29400
  return item.images[0].image;
29401
29401
  }
29402
- return "./../../../assets/images/placeholder-image.svg";
29402
+ return "../../../assets/images/placeholder-image.svg";
29403
29403
  };
29404
29404
  return {
29405
29405
  item_description: item?.name,