@apliteni/apliteni-ui 0.39.0 → 0.39.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/package.json +1 -1
- package/react/dist/index.css +4 -0
- package/react/dist/index.js +18 -2
package/package.json
CHANGED
package/react/dist/index.css
CHANGED
package/react/dist/index.js
CHANGED
|
@@ -899,7 +899,23 @@ function DataTable({
|
|
|
899
899
|
onSortChange?.(next);
|
|
900
900
|
toFirstPage();
|
|
901
901
|
};
|
|
902
|
-
const caret = (k) =>
|
|
902
|
+
const caret = (k) => /* @__PURE__ */ jsxs8(
|
|
903
|
+
"svg",
|
|
904
|
+
{
|
|
905
|
+
className: "rx-caret",
|
|
906
|
+
viewBox: "0 0 24 24",
|
|
907
|
+
fill: "none",
|
|
908
|
+
stroke: "currentColor",
|
|
909
|
+
strokeLinecap: "round",
|
|
910
|
+
strokeLinejoin: "round",
|
|
911
|
+
"aria-hidden": "true",
|
|
912
|
+
focusable: "false",
|
|
913
|
+
children: [
|
|
914
|
+
(sort.key !== k || sort.dir === 1) && /* @__PURE__ */ jsx10("path", { d: sort.key === k ? "m8 14 4-4 4 4" : "m8 9 4-4 4 4" }),
|
|
915
|
+
(sort.key !== k || sort.dir === -1) && /* @__PURE__ */ jsx10("path", { d: sort.key === k ? "m8 10 4 4 4-4" : "m8 15 4 4 4-4" })
|
|
916
|
+
]
|
|
917
|
+
}
|
|
918
|
+
);
|
|
903
919
|
const pageAllOn = selectable && slice.length > 0 && slice.every((r) => selected.has(r.name));
|
|
904
920
|
return /* @__PURE__ */ jsxs8(Fragment2, { children: [
|
|
905
921
|
/* @__PURE__ */ jsx10(
|
|
@@ -937,7 +953,7 @@ function DataTable({
|
|
|
937
953
|
"aria-sort": sort.key === c.key ? sort.dir === 1 ? "ascending" : "descending" : c.sortable && sortIsKnown ? "none" : void 0,
|
|
938
954
|
children: c.sortable ? /* @__PURE__ */ jsxs8("button", { type: "button", className: "rx-sort", onClick: () => onSort(c.key), children: [
|
|
939
955
|
c.label,
|
|
940
|
-
|
|
956
|
+
caret(c.key)
|
|
941
957
|
] }) : c.label
|
|
942
958
|
},
|
|
943
959
|
c.key
|