@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apliteni/apliteni-ui",
3
- "version": "0.39.0",
3
+ "version": "0.39.1",
4
4
  "workspaces": [
5
5
  "react"
6
6
  ],
@@ -99,5 +99,9 @@
99
99
  }
100
100
  .rx-caret {
101
101
  margin-left: 2px;
102
+ width: 16px;
103
+ height: 16px;
104
+ flex-shrink: 0;
105
+ stroke-width: 2.4;
102
106
  color: var(--muted);
103
107
  }
@@ -899,7 +899,23 @@ function DataTable({
899
899
  onSortChange?.(next);
900
900
  toFirstPage();
901
901
  };
902
- const caret = (k) => sort.key === k ? sort.dir === 1 ? " \u25B2" : " \u25BC" : " \u2195";
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
- /* @__PURE__ */ jsx10("span", { className: "rx-caret", "aria-hidden": "true", children: caret(c.key) })
956
+ caret(c.key)
941
957
  ] }) : c.label
942
958
  },
943
959
  c.key