@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/components/table/cell/cell-types/cell-types.interface.d.ts +2 -0
- package/dist/components/table/cell/cell-types/cell-types.interface.d.ts.map +1 -1
- package/dist/components/table/cell/cell.d.ts.map +1 -1
- package/dist/components/table/cell/cell.stories.d.ts +1 -0
- package/dist/components/table/cell/cell.stories.d.ts.map +1 -1
- package/dist/components/table/helper.d.ts +2 -0
- package/dist/components/table/helper.d.ts.map +1 -1
- package/dist/components/table/table.stories-data.d.ts +25 -0
- package/dist/components/table/table.stories-data.d.ts.map +1 -1
- package/dist/global.css +1 -1
- package/dist/index.js +12 -11
- package/package.json +1 -1
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,
|
|
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,
|
|
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
|
-
},
|
|
3740
|
-
width:
|
|
3741
|
-
minWidth:
|
|
3742
|
-
textTransform: t &&
|
|
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:
|
|
3747
|
-
className:
|
|
3748
|
-
style:
|
|
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:
|
|
3754
|
+
columnAlignment: _ == null ? Dr.RIGHT : _,
|
|
3754
3755
|
isHeader: t,
|
|
3755
3756
|
testId: a
|
|
3756
3757
|
})
|
package/package.json
CHANGED