@sikka/hawa 0.23.2-next → 0.23.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.
Files changed (145) hide show
  1. package/dist/accordion/index.js +30 -2399
  2. package/dist/accordion/index.mjs +19 -461
  3. package/dist/alert/index.mjs +0 -1
  4. package/dist/appStores/index.js +75 -0
  5. package/dist/appStores/index.mjs +38 -0
  6. package/dist/avatar/index.mjs +118 -3
  7. package/dist/backToTop/index.mjs +102 -4
  8. package/dist/badge/index.js +127 -0
  9. package/dist/badge/index.mjs +84 -0
  10. package/dist/blocks/auth/index.js +1173 -3092
  11. package/dist/blocks/auth/index.mjs +16 -10
  12. package/dist/blocks/feedback/index.js +864 -2913
  13. package/dist/blocks/feedback/index.mjs +14 -8
  14. package/dist/blocks/index.js +5714 -5316
  15. package/dist/blocks/index.mjs +390 -45
  16. package/dist/blocks/misc/index.js +634 -2409
  17. package/dist/blocks/misc/index.mjs +14 -8
  18. package/dist/blocks/pricing/index.js +522 -524
  19. package/dist/blocks/pricing/index.mjs +1861 -45
  20. package/dist/breadcrumb/index.js +63 -0
  21. package/dist/breadcrumb/index.mjs +26 -0
  22. package/dist/card/index.mjs +83 -8
  23. package/dist/checkbox/index.mjs +138 -3
  24. package/dist/chip/index.js +129 -0
  25. package/dist/chip/index.mjs +8 -0
  26. package/dist/{chunk-X6PCWJYD.mjs → chunk-2R2QPJT7.mjs} +761 -1104
  27. package/dist/chunk-677VOLD4.mjs +464 -0
  28. package/dist/chunk-72HYR6WB.mjs +88 -0
  29. package/dist/chunk-A25EXELT.mjs +131 -0
  30. package/dist/{chunk-OE27DSIY.mjs → chunk-F6TKEDDP.mjs} +2 -4
  31. package/dist/{chunk-YFC2GSJ6.mjs → chunk-P2O6R3S6.mjs} +66 -5
  32. package/dist/{chunk-GXXX5UB4.mjs → chunk-QGKW5R5F.mjs} +59 -20
  33. package/dist/chunk-TR56G3NM.mjs +2350 -0
  34. package/dist/chunk-UAVBFK53.mjs +346 -0
  35. package/dist/combobox/index.mjs +153 -7
  36. package/dist/dataTable/index.mjs +355 -8
  37. package/dist/elements/index.js +800 -1148
  38. package/dist/elements/index.mjs +1 -11
  39. package/dist/fileDropzone/index.mjs +226 -4
  40. package/dist/index.js +1721 -1721
  41. package/dist/index.mjs +1663 -1663
  42. package/dist/layout/index.js +493 -510
  43. package/dist/layout/index.mjs +1 -1
  44. package/dist/loading/index.mjs +0 -1
  45. package/dist/logos/index.mjs +204 -3
  46. package/dist/navigationMenu/index.mjs +155 -13
  47. package/dist/phoneInput/index.js +2074 -0
  48. package/dist/phoneInput/index.mjs +1776 -0
  49. package/dist/pinInput/index.js +130 -0
  50. package/dist/pinInput/index.mjs +88 -0
  51. package/dist/progress/index.js +71 -0
  52. package/dist/progress/index.mjs +29 -0
  53. package/dist/radio/index.mjs +202 -4
  54. package/dist/scrollArea/index.js +90 -0
  55. package/dist/scrollArea/index.mjs +47 -0
  56. package/dist/select/index.mjs +1 -1
  57. package/dist/sheet/index.mjs +137 -12
  58. package/dist/sortButton/index.mjs +40 -4
  59. package/dist/stopPropagationWrapper/index.js +48 -0
  60. package/dist/stopPropagationWrapper/index.mjs +11 -0
  61. package/dist/switch/index.mjs +79 -3
  62. package/dist/tabs/index.js +1 -1
  63. package/dist/tabs/index.mjs +68 -6
  64. package/dist/textarea/index.mjs +54 -4
  65. package/package.json +2 -2
  66. package/dist/Chip-DJ6ThZc_.d.ts +0 -21
  67. package/dist/Chip-eal8vwDz.d.mts +0 -21
  68. package/dist/accordion/index.d.mts +0 -42
  69. package/dist/accordion/index.d.ts +0 -42
  70. package/dist/alert/index.d.mts +0 -28
  71. package/dist/alert/index.d.ts +0 -28
  72. package/dist/avatar/index.d.mts +0 -15
  73. package/dist/avatar/index.d.ts +0 -15
  74. package/dist/backToTop/index.d.mts +0 -15
  75. package/dist/backToTop/index.d.ts +0 -15
  76. package/dist/button/index.d.mts +0 -16
  77. package/dist/button/index.d.ts +0 -16
  78. package/dist/card/index.d.mts +0 -17
  79. package/dist/card/index.d.ts +0 -17
  80. package/dist/checkbox/index.d.mts +0 -20
  81. package/dist/checkbox/index.d.ts +0 -20
  82. package/dist/chunk-BK5WF7UO.mjs +0 -231
  83. package/dist/chunk-CXWYC6FS.mjs +0 -360
  84. package/dist/chunk-D2USGMDT.mjs +0 -208
  85. package/dist/chunk-DX4SLF2L.mjs +0 -45
  86. package/dist/chunk-ENNSA4VR.mjs +0 -5566
  87. package/dist/chunk-GXSYCLZZ.mjs +0 -158
  88. package/dist/chunk-IQPGAHUR.mjs +0 -107
  89. package/dist/chunk-POT2IP62.mjs +0 -123
  90. package/dist/chunk-TWDZB2VH.mjs +0 -151
  91. package/dist/chunk-VBTYVVA7.mjs +0 -93
  92. package/dist/chunk-VCGW5DIP.mjs +0 -170
  93. package/dist/chunk-X3SMPIA3.mjs +0 -0
  94. package/dist/chunk-XA646BZ2.mjs +0 -143
  95. package/dist/chunk-ZCUUQ5VV.mjs +0 -84
  96. package/dist/combobox/index.d.mts +0 -32
  97. package/dist/combobox/index.d.ts +0 -32
  98. package/dist/command/index.d.mts +0 -48
  99. package/dist/command/index.d.ts +0 -48
  100. package/dist/commonTypes-gbO4hPli.d.mts +0 -7
  101. package/dist/commonTypes-gbO4hPli.d.ts +0 -7
  102. package/dist/dataTable/index.d.mts +0 -39
  103. package/dist/dataTable/index.d.ts +0 -39
  104. package/dist/dialog/index.d.mts +0 -57
  105. package/dist/dialog/index.d.ts +0 -57
  106. package/dist/dropdownMenu/index.d.mts +0 -95
  107. package/dist/dropdownMenu/index.d.ts +0 -95
  108. package/dist/fileDropzone/index.d.mts +0 -37
  109. package/dist/fileDropzone/index.d.ts +0 -37
  110. package/dist/input/index.d.mts +0 -36
  111. package/dist/input/index.d.ts +0 -36
  112. package/dist/label/index.d.mts +0 -12
  113. package/dist/label/index.d.ts +0 -12
  114. package/dist/loading/index.d.mts +0 -15
  115. package/dist/loading/index.d.ts +0 -15
  116. package/dist/logos/index.d.mts +0 -27
  117. package/dist/logos/index.d.ts +0 -27
  118. package/dist/navigationMenu/index.d.mts +0 -39
  119. package/dist/navigationMenu/index.d.ts +0 -39
  120. package/dist/popover/index.d.mts +0 -23
  121. package/dist/popover/index.d.ts +0 -23
  122. package/dist/radio/index.d.mts +0 -28
  123. package/dist/radio/index.d.ts +0 -28
  124. package/dist/select/index.d.mts +0 -43
  125. package/dist/select/index.d.ts +0 -43
  126. package/dist/sheet/index.d.mts +0 -30
  127. package/dist/sheet/index.d.ts +0 -30
  128. package/dist/skeleton/index.d.mts +0 -10
  129. package/dist/skeleton/index.d.ts +0 -10
  130. package/dist/sortButton/index.d.mts +0 -10
  131. package/dist/sortButton/index.d.ts +0 -10
  132. package/dist/splitButton/index.d.mts +0 -15
  133. package/dist/splitButton/index.d.ts +0 -15
  134. package/dist/switch/index.d.mts +0 -12
  135. package/dist/switch/index.d.ts +0 -12
  136. package/dist/table/index.d.mts +0 -21
  137. package/dist/table/index.d.ts +0 -21
  138. package/dist/tabs/index.d.mts +0 -16
  139. package/dist/tabs/index.d.ts +0 -16
  140. package/dist/textarea/index.d.mts +0 -17
  141. package/dist/textarea/index.d.ts +0 -17
  142. package/dist/tooltip/index.d.mts +0 -26
  143. package/dist/tooltip/index.d.ts +0 -26
  144. /package/dist/{chunk-A7OPD7H7.mjs → chunk-B6UCD4GP.mjs} +0 -0
  145. /package/dist/{chunk-O2ALK7UE.mjs → chunk-Z4M72OD3.mjs} +0 -0
@@ -1,17 +1,364 @@
1
1
  import {
2
- DataTable
3
- } from "../chunk-CXWYC6FS.mjs";
4
- import "../chunk-3KRJLV55.mjs";
5
- import "../chunk-XPTZGXC7.mjs";
2
+ Input
3
+ } from "../chunk-3KRJLV55.mjs";
4
+ import {
5
+ Table,
6
+ TableBody,
7
+ TableCell,
8
+ TableHead,
9
+ TableHeader,
10
+ TableRow
11
+ } from "../chunk-XPTZGXC7.mjs";
6
12
  import "../chunk-GDIBR47V.mjs";
7
13
  import "../chunk-Z3JCNSB3.mjs";
8
14
  import "../chunk-VFP56EVG.mjs";
9
15
  import "../chunk-6CLNGID2.mjs";
10
- import "../chunk-J5NJEHQU.mjs";
11
- import "../chunk-C4CBXIG5.mjs";
12
- import "../chunk-SYB66JGL.mjs";
16
+ import {
17
+ Skeleton
18
+ } from "../chunk-J5NJEHQU.mjs";
19
+ import {
20
+ DropdownMenu,
21
+ DropdownMenuCheckboxItem,
22
+ DropdownMenuContent,
23
+ DropdownMenuRoot,
24
+ DropdownMenuTrigger
25
+ } from "../chunk-C4CBXIG5.mjs";
26
+ import {
27
+ Button
28
+ } from "../chunk-SYB66JGL.mjs";
13
29
  import "../chunk-PUQV6URH.mjs";
14
- import "../chunk-TE3BKEXL.mjs";
30
+ import {
31
+ cn
32
+ } from "../chunk-TE3BKEXL.mjs";
33
+
34
+ // components/elements/dataTable/DataTable.tsx
35
+ import * as React from "react";
36
+ import {
37
+ flexRender,
38
+ getCoreRowModel,
39
+ getFilteredRowModel,
40
+ getPaginationRowModel,
41
+ getExpandedRowModel,
42
+ getSortedRowModel,
43
+ useReactTable
44
+ } from "@tanstack/react-table";
45
+ var DataTable = ({
46
+ columns,
47
+ data,
48
+ paginationPosition = "bottom",
49
+ translateFn,
50
+ enableHideColumns,
51
+ enableSearch,
52
+ enableGoTo,
53
+ ...props
54
+ }) => {
55
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
56
+ const [sorting, setSorting] = React.useState(
57
+ props.defaultSort ? [{ id: props.defaultSort, desc: false }] : []
58
+ );
59
+ const [columnFilters, setColumnFilters] = React.useState(
60
+ []
61
+ );
62
+ const [globalFilter, setGlobalFilter] = React.useState("");
63
+ const [expanded, setExpanded] = React.useState({});
64
+ const [columnVisibility, setColumnVisibility] = React.useState({});
65
+ const [rowSelection, setRowSelection] = React.useState({});
66
+ const table = useReactTable({
67
+ data,
68
+ columns,
69
+ onExpandedChange: setExpanded,
70
+ getExpandedRowModel: getExpandedRowModel(),
71
+ onGlobalFilterChange: setGlobalFilter,
72
+ onSortingChange: setSorting,
73
+ onColumnFiltersChange: setColumnFilters,
74
+ getCoreRowModel: getCoreRowModel(),
75
+ getPaginationRowModel: getPaginationRowModel(),
76
+ getSortedRowModel: getSortedRowModel(),
77
+ getFilteredRowModel: getFilteredRowModel(),
78
+ onColumnVisibilityChange: setColumnVisibility,
79
+ onRowSelectionChange: setRowSelection,
80
+ state: {
81
+ sorting,
82
+ columnFilters,
83
+ columnVisibility,
84
+ globalFilter,
85
+ rowSelection,
86
+ expanded
87
+ }
88
+ });
89
+ const pageText = ((_a = props.texts) == null ? void 0 : _a.page) || "page";
90
+ const itemsPerPageOptions = (_b = props.itemsPerPage) == null ? void 0 : _b.map((item) => ({
91
+ label: `${item} / ${pageText}`,
92
+ value: item
93
+ }));
94
+ return /* @__PURE__ */ React.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-col hawa-gap-4" }, (enableSearch || enableHideColumns) && /* @__PURE__ */ React.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-4" }, enableSearch && /* @__PURE__ */ React.createElement(
95
+ Input,
96
+ {
97
+ forceHideHelperText: true,
98
+ placeholder: (_c = props.texts) == null ? void 0 : _c.searchPlaceholder,
99
+ value: globalFilter != null ? globalFilter : "",
100
+ onChange: (event) => setGlobalFilter(event.target.value),
101
+ margin: "none",
102
+ className: "hawa-w-full md:hawa-max-w-sm"
103
+ }
104
+ ), enableHideColumns && /* @__PURE__ */ React.createElement(DropdownMenuRoot, null, /* @__PURE__ */ React.createElement(DropdownMenuTrigger, { asChild: true }, /* @__PURE__ */ React.createElement(
105
+ Button,
106
+ {
107
+ variant: "outline",
108
+ className: "hawa-flex hawa-flex-row hawa-gap-2"
109
+ },
110
+ ((_d = props.texts) == null ? void 0 : _d.columns) || "Columns",
111
+ /* @__PURE__ */ React.createElement(
112
+ "svg",
113
+ {
114
+ "aria-label": "Chevron Down Icon",
115
+ xmlns: "http://www.w3.org/2000/svg",
116
+ width: "24",
117
+ height: "24",
118
+ viewBox: "0 0 24 24",
119
+ fill: "none",
120
+ stroke: "currentColor",
121
+ strokeWidth: "2",
122
+ strokeLinecap: "round",
123
+ strokeLinejoin: "round",
124
+ className: "hawa-icon hawa-rotate-90"
125
+ },
126
+ /* @__PURE__ */ React.createElement("path", { d: "m9 18 6-6-6-6" })
127
+ )
128
+ )), /* @__PURE__ */ React.createElement(
129
+ DropdownMenuContent,
130
+ {
131
+ align: props.direction === "rtl" ? "start" : "end"
132
+ },
133
+ table.getAllColumns().filter((column) => column.getCanHide()).map((column) => {
134
+ return /* @__PURE__ */ React.createElement(
135
+ DropdownMenuCheckboxItem,
136
+ {
137
+ key: column.id,
138
+ checked: column.getIsVisible(),
139
+ onCheckedChange: (value) => column.toggleVisibility(!!value)
140
+ },
141
+ translateFn ? translateFn(column.id) : column.id
142
+ );
143
+ })
144
+ ))), props.isLoading ? /* @__PURE__ */ React.createElement(Skeleton, { className: "hawa-h-[130px] hawa-w-full" }) : /* @__PURE__ */ React.createElement(
145
+ "div",
146
+ {
147
+ className: cn(
148
+ "hawa-flex hawa-w-full hawa-gap-4",
149
+ paginationPosition === "top" ? "hawa-flex-col-reverse" : "hawa-flex-col"
150
+ )
151
+ },
152
+ /* @__PURE__ */ React.createElement("div", { className: "hawa-rounded-md" }, /* @__PURE__ */ React.createElement(Table, null, table.getAllColumns().length > 0 && /* @__PURE__ */ React.createElement(TableHeader, null, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React.createElement(TableRow, { key: headerGroup.id }, headerGroup.headers.map((header) => {
153
+ var _a2;
154
+ let isSortable = (_a2 = header.column.columnDef.meta) == null ? void 0 : _a2.sortable;
155
+ return /* @__PURE__ */ React.createElement(
156
+ TableHead,
157
+ {
158
+ dir: props.direction,
159
+ condensed: props.condensed,
160
+ clickable: Boolean(isSortable),
161
+ key: header.id
162
+ },
163
+ header.isPlaceholder ? null : flexRender(
164
+ header.column.columnDef.header,
165
+ header.getContext()
166
+ )
167
+ );
168
+ })))), /* @__PURE__ */ React.createElement(TableBody, null, ((_e = table.getRowModel().rows) == null ? void 0 : _e.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React.createElement(
169
+ TableRow,
170
+ {
171
+ key: row.id,
172
+ "data-state": row.getIsSelected() && "selected"
173
+ },
174
+ row.getVisibleCells().map((cell) => {
175
+ var _a2;
176
+ return /* @__PURE__ */ React.createElement(
177
+ TableCell,
178
+ {
179
+ dir: props.direction,
180
+ padding: props.condensed ? "condensed" : (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.padding,
181
+ key: cell.id
182
+ },
183
+ flexRender(
184
+ cell.column.columnDef.cell,
185
+ cell.getContext()
186
+ )
187
+ );
188
+ })
189
+ )) : /* @__PURE__ */ React.createElement(TableRow, null, /* @__PURE__ */ React.createElement(
190
+ TableCell,
191
+ {
192
+ colSpan: columns.length,
193
+ className: "hawa-h-24 hawa-text-center"
194
+ },
195
+ (_f = props.texts) == null ? void 0 : _f.noData
196
+ ))))),
197
+ /* @__PURE__ */ React.createElement("div", { className: "hawa-flex hawa-items-center hawa-justify-between" }, !props.showCount && /* @__PURE__ */ React.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm hawa-text-muted-foreground" }), props.showCount && /* @__PURE__ */ React.createElement(
198
+ "div",
199
+ {
200
+ className: "text-sm text-muted-foreground",
201
+ dir: props.direction
202
+ },
203
+ /* @__PURE__ */ React.createElement("span", null, (_g = props.texts) == null ? void 0 : _g.total),
204
+ " ",
205
+ /* @__PURE__ */ React.createElement("span", null, table.getFilteredRowModel().rows.length.toLocaleString())
206
+ ), /* @__PURE__ */ React.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 " }, enableGoTo && /* @__PURE__ */ React.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2" }, /* @__PURE__ */ React.createElement("span", { className: "hawa-text-sm" }, (_h = props.texts) == null ? void 0 : _h.goTo), /* @__PURE__ */ React.createElement(
207
+ "input",
208
+ {
209
+ max: table.getPageCount(),
210
+ min: 0,
211
+ type: "number",
212
+ defaultValue: table.getState().pagination.pageIndex + 1,
213
+ onChange: (e) => {
214
+ let page = Number(e.target.value) - 1;
215
+ const max = table.getPageCount();
216
+ if (!isNaN(page) && Number(page) > max) {
217
+ page = max - 1;
218
+ }
219
+ table.setPageIndex(page);
220
+ },
221
+ className: "hawa-w-16 hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-text-sm"
222
+ }
223
+ )), /* @__PURE__ */ React.createElement(
224
+ DropdownMenu,
225
+ {
226
+ size: "sm",
227
+ width: "sm",
228
+ direction: props.direction,
229
+ items: itemsPerPageOptions || [
230
+ { label: `10 / ${pageText}`, value: 10 },
231
+ { label: `20 / ${pageText}`, value: 20 },
232
+ { label: `30 / ${pageText}`, value: 30 },
233
+ { label: `40 / ${pageText}`, value: 40 },
234
+ { label: `50 / ${pageText}`, value: 50 }
235
+ ],
236
+ trigger: /* @__PURE__ */ React.createElement(
237
+ Button,
238
+ {
239
+ variant: "outline",
240
+ size: "icon",
241
+ className: "hawa-h-fit hawa-w-fit hawa-p-0 hawa-px-2 hawa-py-1 "
242
+ },
243
+ `${table.getState().pagination.pageSize} / ${(_i = props.texts) == null ? void 0 : _i.page}`
244
+ ),
245
+ onItemSelect: (e) => table.setPageSize(Number(e))
246
+ }
247
+ ), table.getPageCount() > 1 && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm " }, /* @__PURE__ */ React.createElement("span", { className: "hawa-flex hawa-items-center hawa-gap-1" }, /* @__PURE__ */ React.createElement("div", null, (_j = props.texts) == null ? void 0 : _j.page), /* @__PURE__ */ React.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-1" }, /* @__PURE__ */ React.createElement("span", { className: "hawa-font-bold" }, table.getState().pagination.pageIndex + 1), /* @__PURE__ */ React.createElement("span", null, (_k = props.texts) == null ? void 0 : _k.of), /* @__PURE__ */ React.createElement("span", { className: "hawa-font-bold" }, table.getPageCount())))), /* @__PURE__ */ React.createElement(
248
+ Button,
249
+ {
250
+ "aria-label": "Next Table Page",
251
+ variant: "outline",
252
+ size: "smallIcon",
253
+ onClick: () => table.setPageIndex(0),
254
+ disabled: !table.getCanPreviousPage(),
255
+ className: cn(
256
+ props.direction === "rtl" && "hawa-rotate-180"
257
+ )
258
+ },
259
+ /* @__PURE__ */ React.createElement(
260
+ "svg",
261
+ {
262
+ xmlns: "http://www.w3.org/2000/svg",
263
+ width: "20",
264
+ height: "20",
265
+ viewBox: "0 0 24 24",
266
+ fill: "none",
267
+ stroke: "currentColor",
268
+ strokeWidth: "2",
269
+ strokeLinecap: "round",
270
+ strokeLinejoin: "round"
271
+ },
272
+ /* @__PURE__ */ React.createElement("path", { d: "m11 17-5-5 5-5" }),
273
+ /* @__PURE__ */ React.createElement("path", { d: "m18 17-5-5 5-5" })
274
+ )
275
+ ), /* @__PURE__ */ React.createElement(
276
+ Button,
277
+ {
278
+ "aria-label": "Previous Table Page",
279
+ variant: "outline",
280
+ size: "smallIcon",
281
+ onClick: () => table.previousPage(),
282
+ disabled: !table.getCanPreviousPage(),
283
+ className: cn(
284
+ props.direction === "rtl" && "hawa-rotate-180"
285
+ )
286
+ },
287
+ /* @__PURE__ */ React.createElement(
288
+ "svg",
289
+ {
290
+ xmlns: "http://www.w3.org/2000/svg",
291
+ width: "20",
292
+ height: "20",
293
+ "aria-label": "Single Chevron Icon",
294
+ viewBox: "0 0 24 24",
295
+ fill: "none",
296
+ stroke: "currentColor",
297
+ strokeWidth: "2",
298
+ strokeLinecap: "round",
299
+ strokeLinejoin: "round"
300
+ },
301
+ /* @__PURE__ */ React.createElement("path", { d: "m15 18-6-6 6-6" })
302
+ )
303
+ ), /* @__PURE__ */ React.createElement(
304
+ Button,
305
+ {
306
+ "aria-label": "Next Table Page",
307
+ variant: "outline",
308
+ size: "smallIcon",
309
+ onClick: () => table.nextPage(),
310
+ disabled: !table.getCanNextPage(),
311
+ className: cn(
312
+ props.direction === "ltr" && "hawa-rotate-180"
313
+ )
314
+ },
315
+ /* @__PURE__ */ React.createElement(
316
+ "svg",
317
+ {
318
+ xmlns: "http://www.w3.org/2000/svg",
319
+ width: "20",
320
+ height: "20",
321
+ "aria-label": "Single Chevron Icon",
322
+ viewBox: "0 0 24 24",
323
+ fill: "none",
324
+ stroke: "currentColor",
325
+ strokeWidth: "2",
326
+ strokeLinecap: "round",
327
+ strokeLinejoin: "round"
328
+ },
329
+ /* @__PURE__ */ React.createElement("path", { d: "m15 18-6-6 6-6" })
330
+ )
331
+ ), /* @__PURE__ */ React.createElement(
332
+ Button,
333
+ {
334
+ "aria-label": "Next Table Page",
335
+ variant: "outline",
336
+ size: "smallIcon",
337
+ onClick: () => table.setPageIndex(table.getPageCount() - 1),
338
+ disabled: !table.getCanNextPage(),
339
+ className: cn(
340
+ props.direction === "ltr" && "hawa-rotate-180"
341
+ )
342
+ },
343
+ /* @__PURE__ */ React.createElement(
344
+ "svg",
345
+ {
346
+ xmlns: "http://www.w3.org/2000/svg",
347
+ width: "20",
348
+ height: "20",
349
+ viewBox: "0 0 24 24",
350
+ fill: "none",
351
+ stroke: "currentColor",
352
+ strokeWidth: "2",
353
+ strokeLinecap: "round",
354
+ strokeLinejoin: "round"
355
+ },
356
+ /* @__PURE__ */ React.createElement("path", { d: "m11 17-5-5 5-5" }),
357
+ /* @__PURE__ */ React.createElement("path", { d: "m18 17-5-5 5-5" })
358
+ )
359
+ ))))
360
+ ));
361
+ };
15
362
  export {
16
363
  DataTable
17
364
  };