@sikka/hawa 0.14.5-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 +2 -2
- package/dist/index.mjs +18 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5390,7 +5390,7 @@ var DataTable = function(_param) {
|
|
|
5390
5390
|
});
|
|
5391
5391
|
return /* @__PURE__ */ React40.createElement("div", {
|
|
5392
5392
|
className: "hawa-flex hawa-w-full hawa-flex-col hawa-gap-4"
|
|
5393
|
-
}, enableSearch || enableHideColumns && /* @__PURE__ */ React40.createElement("div", {
|
|
5393
|
+
}, (enableSearch || enableHideColumns) && /* @__PURE__ */ React40.createElement("div", {
|
|
5394
5394
|
className: "hawa-flex hawa-items-center hawa-flex-row hawa-gap-4"
|
|
5395
5395
|
}, enableSearch && /* @__PURE__ */ React40.createElement(Input, {
|
|
5396
5396
|
forceHideHelperText: true,
|
|
@@ -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
|
@@ -5073,7 +5073,7 @@ var DataTable = ({
|
|
|
5073
5073
|
label: `${item} / ${pageText}`,
|
|
5074
5074
|
value: item
|
|
5075
5075
|
}));
|
|
5076
|
-
return /* @__PURE__ */ React40.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-col hawa-gap-4" }, enableSearch || enableHideColumns && /* @__PURE__ */ React40.createElement("div", { className: "hawa-flex hawa-items-center hawa-flex-row hawa-gap-4" }, enableSearch && /* @__PURE__ */ React40.createElement(
|
|
5076
|
+
return /* @__PURE__ */ React40.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-col hawa-gap-4" }, (enableSearch || enableHideColumns) && /* @__PURE__ */ React40.createElement("div", { className: "hawa-flex hawa-items-center hawa-flex-row hawa-gap-4" }, enableSearch && /* @__PURE__ */ React40.createElement(
|
|
5077
5077
|
Input,
|
|
5078
5078
|
{
|
|
5079
5079
|
forceHideHelperText: true,
|
|
@@ -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(
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
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(
|