@sikka/hawa 0.14.6-next → 0.14.8-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) {
@@ -6926,7 +6926,7 @@ var SidebarItem = function(_param) {
6926
6926
  if (item.subitems) {
6927
6927
  return /* @__PURE__ */ React59.createElement(AccordionItem2, {
6928
6928
  value: item.value,
6929
- className: "hawa-overflow-x-clip",
6929
+ className: "hawa-overflow-x-clip ",
6930
6930
  dir: direction
6931
6931
  }, /* @__PURE__ */ React59.createElement(AccordionTrigger2, {
6932
6932
  className: cn("hawa-overflow-x-clip hawa-w-full", props.selectedItem === item.value ? "hawa-cursor-default hawa-bg-primary hawa-text-primary-foreground" : "hover:hawa-bg-primary/10 hawa-h-10", item.subitems && item.subitems.some(function(subitem) {
@@ -6934,7 +6934,7 @@ var SidebarItem = function(_param) {
6934
6934
  }) ? "hawa-bg-primary/80 hawa-text-primary-foreground hover:hawa-bg-primary/80" : ""),
6935
6935
  showArrow: isOpen
6936
6936
  }, /* @__PURE__ */ React59.createElement("div", {
6937
- className: cn(!isOpen && "hawa-py-1", "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2")
6937
+ className: cn("hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-h-fit")
6938
6938
  }, item.icon && item.icon, /* @__PURE__ */ React59.createElement("span", {
6939
6939
  className: cn("hawa-transition-all ", isOpen ? "hawa-opacity-100" : "hawa-opacity-0")
6940
6940
  }, item.label))), item.subitems && /* @__PURE__ */ React59.createElement(AccordionContent2, {
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(
@@ -6754,7 +6760,7 @@ var SidebarItem = ({
6754
6760
  AccordionItem2,
6755
6761
  {
6756
6762
  value: item.value,
6757
- className: "hawa-overflow-x-clip",
6763
+ className: "hawa-overflow-x-clip ",
6758
6764
  dir: direction
6759
6765
  },
6760
6766
  /* @__PURE__ */ React59.createElement(
@@ -6773,8 +6779,7 @@ var SidebarItem = ({
6773
6779
  "div",
6774
6780
  {
6775
6781
  className: cn(
6776
- !isOpen && "hawa-py-1",
6777
- "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2"
6782
+ "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-h-fit"
6778
6783
  )
6779
6784
  },
6780
6785
  item.icon && item.icon,
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.8-next",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {