beca-ui 0.1.39-beta.2 → 0.1.40-beta.1

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/dist/beca-ui.js +12 -14
  2. package/package.json +1 -1
package/dist/beca-ui.js CHANGED
@@ -90789,22 +90789,20 @@ const ResizableTitle = (a) => {
90789
90789
  }, C(ne);
90790
90790
  }, U = T.map((oe, ce) => ({
90791
90791
  ...oe,
90792
- title: ({ sortColumns: ne }) => {
90793
- if (typeof (oe == null ? void 0 : oe.title) == "string") {
90794
- const K = oe.title.toString(), q = ne == null ? void 0 : ne.find(
90795
- ({ column: $ }) => $.key === oe.key
90796
- );
90797
- return /* @__PURE__ */ jsxs("div", { className: "sort-column-title", children: [
90798
- /* @__PURE__ */ jsx("span", { children: K }),
90799
- q && q.order ? /* @__PURE__ */ jsx("span", { className: "sort-column-icon", children: q.order === "ascend" ? /* @__PURE__ */ jsx(AscendingIcon, {}) : /* @__PURE__ */ jsx(DescendingIcon, {}) }) : oe.sorter ? /* @__PURE__ */ jsx("span", { className: "sort-column-icon", children: /* @__PURE__ */ jsx(SorterIcon, {}) }) : null
90800
- ] });
90801
- } else
90802
- return /* @__PURE__ */ jsx("div", { children: oe == null ? void 0 : oe.title });
90803
- },
90792
+ title: typeof (oe == null ? void 0 : oe.title) == "string" ? ({ sortColumns: ne }) => {
90793
+ var $;
90794
+ const K = ($ = oe == null ? void 0 : oe.title) == null ? void 0 : $.toString(), q = ne == null ? void 0 : ne.find(
90795
+ ({ column: te }) => te.key === oe.key
90796
+ );
90797
+ return /* @__PURE__ */ jsxs("div", { className: "sort-column-title", children: [
90798
+ /* @__PURE__ */ jsx("span", { children: K }),
90799
+ q && q.order ? /* @__PURE__ */ jsx("span", { className: "sort-column-icon", children: q.order === "ascend" ? /* @__PURE__ */ jsx(AscendingIcon, {}) : /* @__PURE__ */ jsx(DescendingIcon, {}) }) : oe.sorter ? /* @__PURE__ */ jsx("span", { className: "sort-column-icon", children: /* @__PURE__ */ jsx(SorterIcon, {}) }) : null
90800
+ ] });
90801
+ } : oe == null ? void 0 : oe.title,
90804
90802
  onHeaderCell: M ? (ne) => ({
90805
- width: ne.width,
90803
+ ...ne,
90806
90804
  onResize: (q, { size: $ }) => j(ce, $)
90807
- }) : void 0
90805
+ }) : oe.onHeaderCell
90808
90806
  }));
90809
90807
  useEffect(() => {
90810
90808
  C(m);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "beca-ui",
3
- "version": "0.1.39-beta.2",
3
+ "version": "0.1.40-beta.1",
4
4
  "description": "Becawork UI",
5
5
  "license": "MIT",
6
6
  "author": {