@oliasoft-open-source/react-ui-library 6.0.0-beta-5 → 6.0.1-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.
package/dist/index.js CHANGED
@@ -3203,8 +3203,8 @@ var Tr = /* @__PURE__ */ function(e) {
3203
3203
  centerAligned: ""
3204
3204
  }, n = !1) => {
3205
3205
  if (!e) return null;
3206
- let { bodyAlignment: r, headerAlignment: i, isHeader: a } = e;
3207
- switch (a && i ? i : r) {
3206
+ let { bodyAlignment: r, headerAlignment: i, textAlign: a, isHeader: o } = e;
3207
+ switch (a || (o && i ? i : r)) {
3208
3208
  case Dr.LEFT: return n ? Dr.LEFT : t.leftAligned;
3209
3209
  case Dr.RIGHT: return n ? Dr.RIGHT : t.rightAligned;
3210
3210
  case Dr.CENTER: return n ? Dr.CENTER : t.centerAligned;
@@ -3732,25 +3732,26 @@ var Tr = /* @__PURE__ */ function(e) {
3732
3732
  }({}), dc = ({ cell: e, isHeader: t, columnHeaderAlignment: n, columnAlignment: r = Dr.LEFT, width: i, testId: a }) => {
3733
3733
  var o;
3734
3734
  if (!e) return null;
3735
- let { style: s, colSpan: c, rowSpan: l, width: u } = e, d = p(null), f = {
3735
+ let { style: s, colSpan: c, rowSpan: l, width: u, textAlign: d } = e, f = p(null), m = {
3736
3736
  bodyAlignment: r,
3737
3737
  headerAlignment: n,
3738
+ textAlign: d,
3738
3739
  isHeader: t
3739
- }, m = Is(f, X), h = Is(f, X, !0), _ = e.type === uc.INPUT || e.type === uc.NUMBER_INPUT || e.type === uc.SELECT || e.type === uc.POPOVER ? X.inputCell : e.type === uc.SLIDER ? X.sliderCell : e.type === uc.CHECKBOX || e.type === uc.RADIO ? X.checkBoxCell : e.type === uc.ACTIONS ? X.actionsCell : X.staticCell, v = g(X.cell, _, e.hasSort ? X.sortingCell : null, m, e.breakWord ? X.breakWord : ""), y = (o = u == null ? i : u) == null ? void 0 : o, b = e.type === uc.STATIC || !e.type, x = {
3740
- width: y,
3741
- minWidth: y,
3742
- textTransform: t && b ? kr.CAPITALIZE : void 0,
3740
+ }, h = Is(m, X), _ = Is(m, X, !0), v = e.type === uc.INPUT || e.type === uc.NUMBER_INPUT || e.type === uc.SELECT || e.type === uc.POPOVER ? X.inputCell : e.type === uc.SLIDER ? X.sliderCell : e.type === uc.CHECKBOX || e.type === uc.RADIO ? X.checkBoxCell : e.type === uc.ACTIONS ? X.actionsCell : X.staticCell, y = g(X.cell, v, e.hasSort ? X.sortingCell : null, h, e.breakWord ? X.breakWord : ""), b = (o = u == null ? i : u) == null ? void 0 : o, x = e.type === uc.STATIC || !e.type, S = {
3741
+ width: b,
3742
+ minWidth: b,
3743
+ textTransform: t && x ? kr.CAPITALIZE : void 0,
3743
3744
  ...s
3744
3745
  };
3745
3746
  return /* @__PURE__ */ z(t ? "th" : "td", {
3746
- ref: d,
3747
- className: v,
3748
- style: x,
3747
+ ref: f,
3748
+ className: y,
3749
+ style: S,
3749
3750
  colSpan: c,
3750
3751
  rowSpan: l,
3751
3752
  children: /* @__PURE__ */ z(lc, {
3752
3753
  cell: e,
3753
- columnAlignment: h == null ? Dr.RIGHT : h,
3754
+ columnAlignment: _ == null ? Dr.RIGHT : _,
3754
3755
  isHeader: t,
3755
3756
  testId: a
3756
3757
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "6.0.0-beta-5",
3
+ "version": "6.0.1-beta-1",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
6
6
  "bugs": {