@sikka/hawa 0.14.6-next → 0.14.7-next

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.js CHANGED
@@ -5415,7 +5415,7 @@ var DataTable = function(_param) {
5415
5415
  }, /* @__PURE__ */ React40.createElement("path", {
5416
5416
  d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"
5417
5417
  })))), /* @__PURE__ */ React40.createElement(DropdownMenuContent, {
5418
- align: "end"
5418
+ align: props.direction === "rtl" ? "start" : "end"
5419
5419
  }, table.getAllColumns().filter(function(column) {
5420
5420
  return column.getCanHide();
5421
5421
  }).map(function(column) {
package/dist/index.mjs CHANGED
@@ -5101,17 +5101,23 @@ var DataTable = ({
5101
5101
  },
5102
5102
  /* @__PURE__ */ React40.createElement("path", { d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z" })
5103
5103
  )
5104
- )), /* @__PURE__ */ React40.createElement(DropdownMenuContent, { align: "end" }, table.getAllColumns().filter((column) => column.getCanHide()).map((column) => {
5105
- return /* @__PURE__ */ React40.createElement(
5106
- DropdownMenuCheckboxItem,
5107
- {
5108
- key: column.id,
5109
- checked: column.getIsVisible(),
5110
- onCheckedChange: (value) => column.toggleVisibility(!!value)
5111
- },
5112
- translateFn ? translateFn(column.id) : column.id
5113
- );
5114
- })))), props.isLoading ? /* @__PURE__ */ React40.createElement(Skeleton, { className: "hawa-h-[130px] hawa-w-full" }) : /* @__PURE__ */ React40.createElement(
5104
+ )), /* @__PURE__ */ React40.createElement(
5105
+ DropdownMenuContent,
5106
+ {
5107
+ align: props.direction === "rtl" ? "start" : "end"
5108
+ },
5109
+ table.getAllColumns().filter((column) => column.getCanHide()).map((column) => {
5110
+ return /* @__PURE__ */ React40.createElement(
5111
+ DropdownMenuCheckboxItem,
5112
+ {
5113
+ key: column.id,
5114
+ checked: column.getIsVisible(),
5115
+ onCheckedChange: (value) => column.toggleVisibility(!!value)
5116
+ },
5117
+ translateFn ? translateFn(column.id) : column.id
5118
+ );
5119
+ })
5120
+ ))), props.isLoading ? /* @__PURE__ */ React40.createElement(Skeleton, { className: "hawa-h-[130px] hawa-w-full" }) : /* @__PURE__ */ React40.createElement(
5115
5121
  "div",
5116
5122
  {
5117
5123
  className: cn(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.14.6-next",
3
+ "version": "0.14.7-next",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {