@pnkx-lib/ui 1.9.263 → 1.9.265

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.
Files changed (2) hide show
  1. package/es/ui/index.js +13 -7
  2. package/package.json +1 -1
package/es/ui/index.js CHANGED
@@ -5008,7 +5008,7 @@ const DropListActions = ({
5008
5008
  };
5009
5009
  const renderContentPopover = () => {
5010
5010
  return /* @__PURE__ */ jsx("div", { className: "flex flex-col", children: !isEmpty(listIcon) && listIcon?.map(
5011
- (item, index) => item?.showTitle && /* @__PURE__ */ jsxs(
5011
+ (item, index) => item?.showTitle && IsShow(item?.arrShow) && /* @__PURE__ */ jsxs(
5012
5012
  "button",
5013
5013
  {
5014
5014
  className: twMerge(
@@ -5034,7 +5034,7 @@ const DropListActions = ({
5034
5034
  });
5035
5035
  },
5036
5036
  children: [
5037
- IsShow(item?.arrShow) ? item.iconDropList : item.iconDisable,
5037
+ item.iconDropList,
5038
5038
  /* @__PURE__ */ jsx("span", { children: item.name || "" })
5039
5039
  ]
5040
5040
  },
@@ -5043,7 +5043,15 @@ const DropListActions = ({
5043
5043
  ) });
5044
5044
  };
5045
5045
  //! Render
5046
- return /* @__PURE__ */ jsx("div", { className: "w-full flex justify-center items-center", children: /* @__PURE__ */ jsx(Popover, { placement: "bottom", content: renderContentPopover(), children: /* @__PURE__ */ jsx("div", { className: "p-2 border-[#BDE3FF] rounded-full border cursor-pointer", children: /* @__PURE__ */ jsx(MoreIcon, { fill: "#007BE5" }) }) }) });
5046
+ return /* @__PURE__ */ jsx("div", { className: "w-full flex justify-center items-center", children: /* @__PURE__ */ jsx(
5047
+ Popover,
5048
+ {
5049
+ placement: "bottom",
5050
+ content: renderContentPopover(),
5051
+ trigger: "click",
5052
+ children: /* @__PURE__ */ jsx("div", { className: "p-1 border-[#BDE3FF] rounded-full border cursor-pointer", children: /* @__PURE__ */ jsx(MoreIcon, { fill: "#007BE5" }) })
5053
+ }
5054
+ ) });
5047
5055
  };
5048
5056
 
5049
5057
  const BulkActions = ({
@@ -5185,7 +5193,6 @@ const BulkActions = ({
5185
5193
  handleSubmit: () => {
5186
5194
  }
5187
5195
  });
5188
- console.log("typeBulkaction", typeBulkaction);
5189
5196
  //! Function
5190
5197
  const renderBulkActions = () => {
5191
5198
  switch (typeBulkaction) {
@@ -5484,7 +5491,7 @@ const Table = ({
5484
5491
  onDoubleClick: handleDoubleClickRow(record, onDoubleClickRow)
5485
5492
  }),
5486
5493
  locale: {
5487
- emptyText: /* @__PURE__ */ jsx(EmptyTable, {})
5494
+ emptyText: loading ? null : /* @__PURE__ */ jsx(EmptyTable, {})
5488
5495
  },
5489
5496
  scroll: { y: tableHeight },
5490
5497
  size,
@@ -5498,8 +5505,7 @@ const Table = ({
5498
5505
  pageSize: filters?.size,
5499
5506
  total: totalItems,
5500
5507
  onChange: (page) => onChangePage(page),
5501
- onShowSizeChange: (_, size2) => onChangePageSize(size2),
5502
- size
5508
+ onShowSizeChange: (_, size2) => onChangePageSize(size2)
5503
5509
  }
5504
5510
  )
5505
5511
  ]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pnkx-lib/ui",
3
3
  "private": false,
4
- "version": "1.9.263",
4
+ "version": "1.9.265",
5
5
  "type": "module",
6
6
  "main": "./es/index.js",
7
7
  "module": "./es/index.js",