@sikka/hawa 0.42.1-next → 0.42.3-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/combobox/index.js +1 -1
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs +1 -1
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/command/index.js +1 -1
- package/dist/command/index.js.map +1 -1
- package/dist/command/index.mjs +1 -1
- package/dist/command/index.mjs.map +1 -1
- package/dist/dataTable/index.js +11 -11
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +11 -11
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/dialog/index.js +1 -1
- package/dist/dialog/index.js.map +1 -1
- package/dist/dialog/index.mjs +1 -1
- package/dist/dialog/index.mjs.map +1 -1
- package/dist/elements/index.js +12 -12
- package/dist/elements/index.mjs +12 -12
- package/dist/index.css +134 -0
- package/dist/index.js +12 -12
- package/dist/index.mjs +12 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -2361,7 +2361,7 @@ var DialogFooter = ({
|
|
2361
2361
|
"div",
|
2362
2362
|
{
|
2363
2363
|
className: cn(
|
2364
|
-
"hawa-flex hawa-flex-col
|
2364
|
+
"hawa-flex hawa-flex-col xs:hawa-flex-row sm:hawa-justify-end hawa-gap-2",
|
2365
2365
|
className
|
2366
2366
|
),
|
2367
2367
|
...props
|
@@ -3308,7 +3308,7 @@ var DataTable = ({
|
|
3308
3308
|
enableGoTo,
|
3309
3309
|
...props
|
3310
3310
|
}) => {
|
3311
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
|
3311
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
|
3312
3312
|
const [sorting, setSorting] = React24.useState(
|
3313
3313
|
props.defaultSort ? [{ id: props.defaultSort, desc: false }] : []
|
3314
3314
|
);
|
@@ -3498,7 +3498,7 @@ var DataTable = ({
|
|
3498
3498
|
) : column.id
|
3499
3499
|
);
|
3500
3500
|
})
|
3501
|
-
))), enableFiltering && /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex-row hawa-gap-2 hawa-flex" }, (
|
3501
|
+
))), enableFiltering && ((_e = props.filters) == null ? void 0 : _e.length) && /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex-row hawa-gap-2 hawa-flex" }, (_f = props.filters) == null ? void 0 : _f.map((filter) => {
|
3502
3502
|
return /* @__PURE__ */ React24.createElement(
|
3503
3503
|
Button,
|
3504
3504
|
{
|
@@ -3553,7 +3553,7 @@ var DataTable = ({
|
|
3553
3553
|
header.getContext()
|
3554
3554
|
)
|
3555
3555
|
);
|
3556
|
-
})))), /* @__PURE__ */ React24.createElement(TableBody, null, ((
|
3556
|
+
})))), /* @__PURE__ */ React24.createElement(TableBody, null, ((_g = table.getRowModel().rows) == null ? void 0 : _g.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React24.createElement(
|
3557
3557
|
TableRow,
|
3558
3558
|
{
|
3559
3559
|
key: row.id,
|
@@ -3585,7 +3585,7 @@ var DataTable = ({
|
|
3585
3585
|
colSpan: columns.length,
|
3586
3586
|
className: "hawa-h-24 hawa-text-center"
|
3587
3587
|
},
|
3588
|
-
(
|
3588
|
+
(_h = props.texts) == null ? void 0 : _h.noData
|
3589
3589
|
))))),
|
3590
3590
|
/* @__PURE__ */ React24.createElement(
|
3591
3591
|
"div",
|
@@ -3602,7 +3602,7 @@ var DataTable = ({
|
|
3602
3602
|
className: "hawa-text-muted-foreground hawa-text-sm",
|
3603
3603
|
dir: props.direction
|
3604
3604
|
},
|
3605
|
-
/* @__PURE__ */ React24.createElement("span", null, (
|
3605
|
+
/* @__PURE__ */ React24.createElement("span", null, (_i = props.texts) == null ? void 0 : _i.total),
|
3606
3606
|
" ",
|
3607
3607
|
/* @__PURE__ */ React24.createElement("span", null, table.getFilteredRowModel().rows.length.toLocaleString())
|
3608
3608
|
), props.showCount && table.getFilteredSelectedRowModel().rows.length > 0 && props.showSelectionCount && /* @__PURE__ */ React24.createElement("div", { className: "hawa-w-[0.5px] hawa-mx-2 hawa-bg-red-500 hawa-h-full" }), table.getFilteredSelectedRowModel().rows.length > 0 && props.showSelectionCount && /* @__PURE__ */ React24.createElement(
|
@@ -3613,11 +3613,11 @@ var DataTable = ({
|
|
3613
3613
|
},
|
3614
3614
|
table.getFilteredSelectedRowModel().rows.length,
|
3615
3615
|
" ",
|
3616
|
-
(
|
3616
|
+
(_j = props.texts) == null ? void 0 : _j.of,
|
3617
3617
|
" ",
|
3618
3618
|
table.getFilteredRowModel().rows.length,
|
3619
3619
|
" ",
|
3620
|
-
(
|
3620
|
+
(_k = props.texts) == null ? void 0 : _k.selectedRows
|
3621
3621
|
)), table.getFilteredSelectedRowModel().rows.length > 0 && /* @__PURE__ */ React24.createElement("div", { className: "" }, /* @__PURE__ */ React24.createElement(
|
3622
3622
|
DropdownMenu,
|
3623
3623
|
{
|
@@ -3630,10 +3630,10 @@ var DataTable = ({
|
|
3630
3630
|
table.getFilteredSelectedRowModel().rows
|
3631
3631
|
)
|
3632
3632
|
})),
|
3633
|
-
trigger: /* @__PURE__ */ React24.createElement(Button, { size: "xs" }, ((
|
3633
|
+
trigger: /* @__PURE__ */ React24.createElement(Button, { size: "xs" }, ((_l = props.texts) == null ? void 0 : _l.bulkAction) || "Bulk Action")
|
3634
3634
|
}
|
3635
3635
|
))) : null,
|
3636
|
-
/* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-row hawa-items-center hawa-gap-2 hawa-bg--500 tablet:hawa-w-fit hawa-justify-between" }, enableGoTo && /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2" }, /* @__PURE__ */ React24.createElement("span", { className: "hawa-text-sm" }, (
|
3636
|
+
/* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-row hawa-items-center hawa-gap-2 hawa-bg--500 tablet:hawa-w-fit hawa-justify-between" }, enableGoTo && /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2" }, /* @__PURE__ */ React24.createElement("span", { className: "hawa-text-sm" }, (_m = props.texts) == null ? void 0 : _m.goTo), /* @__PURE__ */ React24.createElement(
|
3637
3637
|
"input",
|
3638
3638
|
{
|
3639
3639
|
max: table.getPageCount(),
|
@@ -3670,11 +3670,11 @@ var DataTable = ({
|
|
3670
3670
|
size: "icon",
|
3671
3671
|
className: "hawa-h-fit hawa-w-fit hawa-p-0 hawa-px-2 hawa-py-1 hawa-whitespace-nowrap"
|
3672
3672
|
},
|
3673
|
-
`${table.getState().pagination.pageSize} / ${(
|
3673
|
+
`${table.getState().pagination.pageSize} / ${(_n = props.texts) == null ? void 0 : _n.page}`
|
3674
3674
|
),
|
3675
3675
|
onItemSelect: (e) => table.setPageSize(Number(e))
|
3676
3676
|
}
|
3677
|
-
), table.getPageCount() > 1 && /* @__PURE__ */ React24.createElement("div", { className: "hawa-bg--500 hawa-flex hawa-flex-row hawa-gap-2" }, /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-bg--500 hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm" }, /* @__PURE__ */ React24.createElement("span", { className: "hawa-flex hawa-items-center hawa-gap-1" }, /* @__PURE__ */ React24.createElement("div", null, (
|
3677
|
+
), table.getPageCount() > 1 && /* @__PURE__ */ React24.createElement("div", { className: "hawa-bg--500 hawa-flex hawa-flex-row hawa-gap-2" }, /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-bg--500 hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm" }, /* @__PURE__ */ React24.createElement("span", { className: "hawa-flex hawa-items-center hawa-gap-1" }, /* @__PURE__ */ React24.createElement("div", null, (_o = props.texts) == null ? void 0 : _o.page), /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-1" }, /* @__PURE__ */ React24.createElement("span", { className: "hawa-font-bold" }, table.getState().pagination.pageIndex + 1), /* @__PURE__ */ React24.createElement("span", null, (_p = props.texts) == null ? void 0 : _p.of), /* @__PURE__ */ React24.createElement("span", { className: "hawa-font-bold" }, table.getPageCount())))), /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-2 hawa-items-center hawa-bg--500" }, /* @__PURE__ */ React24.createElement(
|
3678
3678
|
Button,
|
3679
3679
|
{
|
3680
3680
|
"aria-label": "Next Table Page",
|
package/dist/index.mjs
CHANGED
@@ -2109,7 +2109,7 @@ var DialogFooter = ({
|
|
2109
2109
|
"div",
|
2110
2110
|
{
|
2111
2111
|
className: cn(
|
2112
|
-
"hawa-flex hawa-flex-col
|
2112
|
+
"hawa-flex hawa-flex-col xs:hawa-flex-row sm:hawa-justify-end hawa-gap-2",
|
2113
2113
|
className
|
2114
2114
|
),
|
2115
2115
|
...props
|
@@ -3064,7 +3064,7 @@ var DataTable = ({
|
|
3064
3064
|
enableGoTo,
|
3065
3065
|
...props
|
3066
3066
|
}) => {
|
3067
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
|
3067
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
|
3068
3068
|
const [sorting, setSorting] = React24.useState(
|
3069
3069
|
props.defaultSort ? [{ id: props.defaultSort, desc: false }] : []
|
3070
3070
|
);
|
@@ -3254,7 +3254,7 @@ var DataTable = ({
|
|
3254
3254
|
) : column.id
|
3255
3255
|
);
|
3256
3256
|
})
|
3257
|
-
))), enableFiltering && /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex-row hawa-gap-2 hawa-flex" }, (
|
3257
|
+
))), enableFiltering && ((_e = props.filters) == null ? void 0 : _e.length) && /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex-row hawa-gap-2 hawa-flex" }, (_f = props.filters) == null ? void 0 : _f.map((filter) => {
|
3258
3258
|
return /* @__PURE__ */ React24.createElement(
|
3259
3259
|
Button,
|
3260
3260
|
{
|
@@ -3309,7 +3309,7 @@ var DataTable = ({
|
|
3309
3309
|
header.getContext()
|
3310
3310
|
)
|
3311
3311
|
);
|
3312
|
-
})))), /* @__PURE__ */ React24.createElement(TableBody, null, ((
|
3312
|
+
})))), /* @__PURE__ */ React24.createElement(TableBody, null, ((_g = table.getRowModel().rows) == null ? void 0 : _g.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React24.createElement(
|
3313
3313
|
TableRow,
|
3314
3314
|
{
|
3315
3315
|
key: row.id,
|
@@ -3341,7 +3341,7 @@ var DataTable = ({
|
|
3341
3341
|
colSpan: columns.length,
|
3342
3342
|
className: "hawa-h-24 hawa-text-center"
|
3343
3343
|
},
|
3344
|
-
(
|
3344
|
+
(_h = props.texts) == null ? void 0 : _h.noData
|
3345
3345
|
))))),
|
3346
3346
|
/* @__PURE__ */ React24.createElement(
|
3347
3347
|
"div",
|
@@ -3358,7 +3358,7 @@ var DataTable = ({
|
|
3358
3358
|
className: "hawa-text-muted-foreground hawa-text-sm",
|
3359
3359
|
dir: props.direction
|
3360
3360
|
},
|
3361
|
-
/* @__PURE__ */ React24.createElement("span", null, (
|
3361
|
+
/* @__PURE__ */ React24.createElement("span", null, (_i = props.texts) == null ? void 0 : _i.total),
|
3362
3362
|
" ",
|
3363
3363
|
/* @__PURE__ */ React24.createElement("span", null, table.getFilteredRowModel().rows.length.toLocaleString())
|
3364
3364
|
), props.showCount && table.getFilteredSelectedRowModel().rows.length > 0 && props.showSelectionCount && /* @__PURE__ */ React24.createElement("div", { className: "hawa-w-[0.5px] hawa-mx-2 hawa-bg-red-500 hawa-h-full" }), table.getFilteredSelectedRowModel().rows.length > 0 && props.showSelectionCount && /* @__PURE__ */ React24.createElement(
|
@@ -3369,11 +3369,11 @@ var DataTable = ({
|
|
3369
3369
|
},
|
3370
3370
|
table.getFilteredSelectedRowModel().rows.length,
|
3371
3371
|
" ",
|
3372
|
-
(
|
3372
|
+
(_j = props.texts) == null ? void 0 : _j.of,
|
3373
3373
|
" ",
|
3374
3374
|
table.getFilteredRowModel().rows.length,
|
3375
3375
|
" ",
|
3376
|
-
(
|
3376
|
+
(_k = props.texts) == null ? void 0 : _k.selectedRows
|
3377
3377
|
)), table.getFilteredSelectedRowModel().rows.length > 0 && /* @__PURE__ */ React24.createElement("div", { className: "" }, /* @__PURE__ */ React24.createElement(
|
3378
3378
|
DropdownMenu,
|
3379
3379
|
{
|
@@ -3386,10 +3386,10 @@ var DataTable = ({
|
|
3386
3386
|
table.getFilteredSelectedRowModel().rows
|
3387
3387
|
)
|
3388
3388
|
})),
|
3389
|
-
trigger: /* @__PURE__ */ React24.createElement(Button, { size: "xs" }, ((
|
3389
|
+
trigger: /* @__PURE__ */ React24.createElement(Button, { size: "xs" }, ((_l = props.texts) == null ? void 0 : _l.bulkAction) || "Bulk Action")
|
3390
3390
|
}
|
3391
3391
|
))) : null,
|
3392
|
-
/* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-row hawa-items-center hawa-gap-2 hawa-bg--500 tablet:hawa-w-fit hawa-justify-between" }, enableGoTo && /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2" }, /* @__PURE__ */ React24.createElement("span", { className: "hawa-text-sm" }, (
|
3392
|
+
/* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-row hawa-items-center hawa-gap-2 hawa-bg--500 tablet:hawa-w-fit hawa-justify-between" }, enableGoTo && /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2" }, /* @__PURE__ */ React24.createElement("span", { className: "hawa-text-sm" }, (_m = props.texts) == null ? void 0 : _m.goTo), /* @__PURE__ */ React24.createElement(
|
3393
3393
|
"input",
|
3394
3394
|
{
|
3395
3395
|
max: table.getPageCount(),
|
@@ -3426,11 +3426,11 @@ var DataTable = ({
|
|
3426
3426
|
size: "icon",
|
3427
3427
|
className: "hawa-h-fit hawa-w-fit hawa-p-0 hawa-px-2 hawa-py-1 hawa-whitespace-nowrap"
|
3428
3428
|
},
|
3429
|
-
`${table.getState().pagination.pageSize} / ${(
|
3429
|
+
`${table.getState().pagination.pageSize} / ${(_n = props.texts) == null ? void 0 : _n.page}`
|
3430
3430
|
),
|
3431
3431
|
onItemSelect: (e) => table.setPageSize(Number(e))
|
3432
3432
|
}
|
3433
|
-
), table.getPageCount() > 1 && /* @__PURE__ */ React24.createElement("div", { className: "hawa-bg--500 hawa-flex hawa-flex-row hawa-gap-2" }, /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-bg--500 hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm" }, /* @__PURE__ */ React24.createElement("span", { className: "hawa-flex hawa-items-center hawa-gap-1" }, /* @__PURE__ */ React24.createElement("div", null, (
|
3433
|
+
), table.getPageCount() > 1 && /* @__PURE__ */ React24.createElement("div", { className: "hawa-bg--500 hawa-flex hawa-flex-row hawa-gap-2" }, /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-bg--500 hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm" }, /* @__PURE__ */ React24.createElement("span", { className: "hawa-flex hawa-items-center hawa-gap-1" }, /* @__PURE__ */ React24.createElement("div", null, (_o = props.texts) == null ? void 0 : _o.page), /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-1" }, /* @__PURE__ */ React24.createElement("span", { className: "hawa-font-bold" }, table.getState().pagination.pageIndex + 1), /* @__PURE__ */ React24.createElement("span", null, (_p = props.texts) == null ? void 0 : _p.of), /* @__PURE__ */ React24.createElement("span", { className: "hawa-font-bold" }, table.getPageCount())))), /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-2 hawa-items-center hawa-bg--500" }, /* @__PURE__ */ React24.createElement(
|
3434
3434
|
Button,
|
3435
3435
|
{
|
3436
3436
|
"aria-label": "Next Table Page",
|