@a2v2ai/uikit 1.1.0 → 1.1.1

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.
@@ -184,41 +184,39 @@ const DataTable = <T extends object>({
184
184
  {pagination &&
185
185
  ((pagination.pageSizeOptions && pagination.pageSizeOptions.length > 0) ||
186
186
  totalPages > 1) && (
187
- <div className="mt-4 flex items-center justify-between gap-4">
187
+ <div className="mt-4 flex items-center justify-center gap-6">
188
188
  {pagination.pageSizeOptions &&
189
- pagination.pageSizeOptions.length > 0 ? (
190
- <div className="flex items-center gap-2">
191
- <Typography
192
- variant="body3"
193
- color="main-700"
194
- className="whitespace-nowrap"
195
- >
196
- {rowsPerPageLabel}
197
- </Typography>
198
- {/* Fixed-width wrapper: SelectTrigger has its own w-full wrapper. */}
199
- <div className="w-20">
200
- <Select
201
- value={String(pagination.pageSize)}
202
- onValueChange={(value) =>
203
- pagination.onPageSizeChange?.(Number(value))
204
- }
189
+ pagination.pageSizeOptions.length > 0 && (
190
+ <div className="flex items-center gap-2">
191
+ <Typography
192
+ variant="body3"
193
+ color="main-700"
194
+ className="whitespace-nowrap"
205
195
  >
206
- <SelectTrigger size="small">
207
- <SelectValue />
208
- </SelectTrigger>
209
- <SelectContent>
210
- {pagination.pageSizeOptions.map((option) => (
211
- <SelectItem key={option} value={String(option)}>
212
- {option}
213
- </SelectItem>
214
- ))}
215
- </SelectContent>
216
- </Select>
196
+ {rowsPerPageLabel}
197
+ </Typography>
198
+ {/* Fixed-width wrapper: SelectTrigger has its own w-full wrapper. */}
199
+ <div className="w-20">
200
+ <Select
201
+ value={String(pagination.pageSize)}
202
+ onValueChange={(value) =>
203
+ pagination.onPageSizeChange?.(Number(value))
204
+ }
205
+ >
206
+ <SelectTrigger size="small" aria-label={rowsPerPageLabel}>
207
+ <SelectValue />
208
+ </SelectTrigger>
209
+ <SelectContent>
210
+ {pagination.pageSizeOptions.map((option) => (
211
+ <SelectItem key={option} value={String(option)}>
212
+ {option}
213
+ </SelectItem>
214
+ ))}
215
+ </SelectContent>
216
+ </Select>
217
+ </div>
217
218
  </div>
218
- </div>
219
- ) : (
220
- <span />
221
- )}
219
+ )}
222
220
 
223
221
  {totalPages > 1 && (
224
222
  <Pagination className="mx-0 w-auto justify-end">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a2v2ai/uikit",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "type": "module",
5
5
  "author": "Arulraj V & abofficial1997@gmail.com",
6
6
  "description": "A React UI component library built with shadcn/ui and Tailwind CSS",