nitro-web 0.0.133 → 0.0.134

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.
@@ -208,7 +208,7 @@ export function Table<T extends TableRow>({
208
208
  </div>
209
209
  {/* Tbody rows */}
210
210
  {
211
- rows.map((row: T, i: number) => {
211
+ !isLoading && rows.map((row: T, i: number) => {
212
212
  const isSelected = selectedRowIds.includes(row?._id||'')
213
213
  return (
214
214
  <div
@@ -282,7 +282,7 @@ export function Table<T extends TableRow>({
282
282
  })
283
283
  }
284
284
  {
285
- rows.length == 0 &&
285
+ (isLoading || rows.length == 0) &&
286
286
  <div className='table-row relative'>
287
287
  {
288
288
  columns.map((col, j) => {
@@ -296,8 +296,7 @@ export function Table<T extends TableRow>({
296
296
  >
297
297
  <div
298
298
  className={twMerge(
299
- 'absolute top-0 h-full flex items-center justify-center text-sm',
300
- isLoading ? '' : 'text-gray-500',
299
+ 'absolute top-0 h-full flex items-center justify-center text-sm text-gray-500',
301
300
  col.innerClassName
302
301
  )}
303
302
  >
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nitro-web",
3
- "version": "0.0.133",
3
+ "version": "0.0.134",
4
4
  "repository": "github:boycce/nitro-web",
5
5
  "homepage": "https://boycce.github.io/nitro-web/",
6
6
  "description": "Nitro is a battle-tested, modular base project to turbocharge your projects, styled using Tailwind 🚀",