neogestify-ui-components 2.3.0 → 2.3.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/html/index.js +1 -1
- package/dist/components/html/index.js.map +1 -1
- package/dist/components/html/index.mjs +1 -1
- package/dist/components/html/index.mjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/html/Table.tsx +1 -1
package/dist/index.js
CHANGED
|
@@ -1003,7 +1003,7 @@ function Table({
|
|
|
1003
1003
|
caption && /* @__PURE__ */ jsxRuntime.jsx("caption", { className: "mb-2 text-left text-sm text-gray-500 dark:text-gray-400", children: caption }),
|
|
1004
1004
|
!hideHeader && /* @__PURE__ */ jsxRuntime.jsx("thead", { className: theadCls, children: /* @__PURE__ */ jsxRuntime.jsx("tr", { children: cols.map((col, i) => {
|
|
1005
1005
|
const isSortable = col.sortable && col.key;
|
|
1006
|
-
const activeSort = sortState
|
|
1006
|
+
const activeSort = sortState && col.key && sortState.key === col.key ? sortState.direction : null;
|
|
1007
1007
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1008
1008
|
"th",
|
|
1009
1009
|
{
|