@rehagro/ui 1.0.54 → 1.0.55
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.d.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +12 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -821,6 +821,10 @@ type TableColumn<T> = {
|
|
|
821
821
|
width?: string;
|
|
822
822
|
/** Maximum column width (CSS value) */
|
|
823
823
|
maxWidth?: string;
|
|
824
|
+
/** Background color for this column's header cell (overrides headerStyle.backgroundColor) */
|
|
825
|
+
headerBgColor?: string;
|
|
826
|
+
/** Text color for this column's header cell (overrides headerTextStyle.color) */
|
|
827
|
+
headerTextColor?: string;
|
|
824
828
|
/** Text alignment */
|
|
825
829
|
align?: "left" | "center" | "right";
|
|
826
830
|
/** Whether this column is sortable */
|
package/dist/index.d.ts
CHANGED
|
@@ -821,6 +821,10 @@ type TableColumn<T> = {
|
|
|
821
821
|
width?: string;
|
|
822
822
|
/** Maximum column width (CSS value) */
|
|
823
823
|
maxWidth?: string;
|
|
824
|
+
/** Background color for this column's header cell (overrides headerStyle.backgroundColor) */
|
|
825
|
+
headerBgColor?: string;
|
|
826
|
+
/** Text color for this column's header cell (overrides headerTextStyle.color) */
|
|
827
|
+
headerTextColor?: string;
|
|
824
828
|
/** Text alignment */
|
|
825
829
|
align?: "left" | "center" | "right";
|
|
826
830
|
/** Whether this column is sortable */
|
package/dist/index.js
CHANGED
|
@@ -4328,6 +4328,7 @@ function TableInner({
|
|
|
4328
4328
|
style: {
|
|
4329
4329
|
width: column.width,
|
|
4330
4330
|
maxWidth: column.maxWidth,
|
|
4331
|
+
backgroundColor: column.headerBgColor ?? headerStyle?.backgroundColor,
|
|
4331
4332
|
...rowPaddingStyle
|
|
4332
4333
|
},
|
|
4333
4334
|
className: [
|
|
@@ -4338,10 +4339,17 @@ function TableInner({
|
|
|
4338
4339
|
column.sortable ? "rh-cursor-pointer rh-select-none hover:rh-text-text" : ""
|
|
4339
4340
|
].filter(Boolean).join(" "),
|
|
4340
4341
|
onClick: () => handleSort(column),
|
|
4341
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4342
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4343
|
+
"span",
|
|
4344
|
+
{
|
|
4345
|
+
className: "rh-inline-flex rh-items-center",
|
|
4346
|
+
style: column.headerTextColor ? { ...headerTextStyleInline, color: column.headerTextColor } : headerTextStyleInline,
|
|
4347
|
+
children: [
|
|
4348
|
+
column.header,
|
|
4349
|
+
renderSortIcon(column)
|
|
4350
|
+
]
|
|
4351
|
+
}
|
|
4352
|
+
)
|
|
4345
4353
|
},
|
|
4346
4354
|
column.key
|
|
4347
4355
|
))
|