@flamingo-stack/openframe-frontend-core 0.0.596 → 0.0.597-2038.5699.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.
- package/dist/{chunk-AVIZUQRW.js → chunk-2OBE3ADQ.js} +2 -2
- package/dist/{chunk-PTXOWFRB.js → chunk-4LCZ3BOU.js} +5 -5
- package/dist/{chunk-IMIR5V6E.cjs → chunk-6XZGGB3F.cjs} +18 -18
- package/dist/{chunk-IMIR5V6E.cjs.map → chunk-6XZGGB3F.cjs.map} +1 -1
- package/dist/{chunk-6EBKO275.js → chunk-7V7NUNGW.js} +2 -2
- package/dist/{chunk-VD3ZAA2O.js → chunk-AVRSKYMG.js} +2 -2
- package/dist/{chunk-4S5E7NOM.cjs → chunk-B3N6SYQT.cjs} +3 -3
- package/dist/{chunk-4S5E7NOM.cjs.map → chunk-B3N6SYQT.cjs.map} +1 -1
- package/dist/{chunk-EQ3DAGD7.cjs → chunk-BUMXIMRT.cjs} +34 -34
- package/dist/{chunk-EQ3DAGD7.cjs.map → chunk-BUMXIMRT.cjs.map} +1 -1
- package/dist/{chunk-R5IWJONE.cjs → chunk-BURTRAEH.cjs} +43 -14
- package/dist/chunk-BURTRAEH.cjs.map +1 -0
- package/dist/{chunk-AYVTVUZT.cjs → chunk-F6WACE6F.cjs} +13 -13
- package/dist/{chunk-AYVTVUZT.cjs.map → chunk-F6WACE6F.cjs.map} +1 -1
- package/dist/{chunk-7L5ROE3Z.js → chunk-GFOCAZ27.js} +2 -2
- package/dist/{chunk-FCNICDWP.cjs → chunk-GXPPCZ33.cjs} +3 -3
- package/dist/{chunk-FCNICDWP.cjs.map → chunk-GXPPCZ33.cjs.map} +1 -1
- package/dist/{chunk-PYWF5JJW.js → chunk-I36X7NO5.js} +5 -5
- package/dist/{chunk-KU3JQWYJ.js → chunk-INV2ORVM.js} +4 -4
- package/dist/{chunk-OEDUVTPT.cjs → chunk-KCEQQWL5.cjs} +4 -4
- package/dist/{chunk-OEDUVTPT.cjs.map → chunk-KCEQQWL5.cjs.map} +1 -1
- package/dist/{chunk-P2SECY3U.js → chunk-KGQRIEN7.js} +4 -4
- package/dist/{chunk-SXVGFJ24.cjs → chunk-LXQVPQKW.cjs} +17 -17
- package/dist/{chunk-SXVGFJ24.cjs.map → chunk-LXQVPQKW.cjs.map} +1 -1
- package/dist/{chunk-SSSZ64YG.js → chunk-LYTSK3H6.js} +2 -2
- package/dist/{chunk-N7SFQMCH.js → chunk-ONZEQ2RE.js} +2 -2
- package/dist/{chunk-OGTXZFFE.cjs → chunk-RLH4FHVB.cjs} +50 -50
- package/dist/{chunk-OGTXZFFE.cjs.map → chunk-RLH4FHVB.cjs.map} +1 -1
- package/dist/{chunk-WRWXND3X.cjs → chunk-U7OPEKX4.cjs} +10 -10
- package/dist/{chunk-WRWXND3X.cjs.map → chunk-U7OPEKX4.cjs.map} +1 -1
- package/dist/{chunk-TRJJMZSQ.js → chunk-USN3VJBT.js} +2 -2
- package/dist/{chunk-MIC4HHVZ.cjs → chunk-VB5N2WXJ.cjs} +17 -17
- package/dist/{chunk-MIC4HHVZ.cjs.map → chunk-VB5N2WXJ.cjs.map} +1 -1
- package/dist/{chunk-GOD47MJM.js → chunk-VRBNOWGS.js} +3 -3
- package/dist/{chunk-B3NX4GZS.cjs → chunk-VSFQTKP5.cjs} +3 -3
- package/dist/{chunk-B3NX4GZS.cjs.map → chunk-VSFQTKP5.cjs.map} +1 -1
- package/dist/{chunk-YNO4DEXK.cjs → chunk-WBC2RLTG.cjs} +4 -4
- package/dist/{chunk-YNO4DEXK.cjs.map → chunk-WBC2RLTG.cjs.map} +1 -1
- package/dist/{chunk-MGBWMZEL.js → chunk-WTLXC2VG.js} +2 -2
- package/dist/{chunk-HFJSBIXL.js → chunk-X7ITBXPK.js} +2 -2
- package/dist/{chunk-MF324FSD.js → chunk-XDLYLQ57.js} +43 -14
- package/dist/chunk-XDLYLQ57.js.map +1 -0
- package/dist/{chunk-DVSTM6QK.cjs → chunk-XOZSL7O2.cjs} +33 -33
- package/dist/{chunk-DVSTM6QK.cjs.map → chunk-XOZSL7O2.cjs.map} +1 -1
- package/dist/{chunk-FV5VGJE6.cjs → chunk-YDFCQREG.cjs} +3 -3
- package/dist/{chunk-FV5VGJE6.cjs.map → chunk-YDFCQREG.cjs.map} +1 -1
- package/dist/components/case-studies/index.cjs +8 -8
- package/dist/components/case-studies/index.js +2 -2
- package/dist/components/contact/index.cjs +3 -3
- package/dist/components/contact/index.js +2 -2
- package/dist/components/docs/index.cjs +6 -6
- package/dist/components/docs/index.js +5 -5
- package/dist/components/embeds/index.cjs +3 -3
- package/dist/components/embeds/index.js +2 -2
- package/dist/components/faq/index.cjs +3 -3
- package/dist/components/faq/index.js +2 -2
- package/dist/components/features/index.cjs +2 -2
- package/dist/components/features/index.js +1 -1
- package/dist/components/help-center-pages/index.cjs +22 -22
- package/dist/components/help-center-pages/index.js +13 -13
- package/dist/components/index.cjs +31 -31
- package/dist/components/index.js +12 -12
- package/dist/components/meeting-scheduler/index.cjs +21 -21
- package/dist/components/meeting-scheduler/index.js +1 -1
- package/dist/components/navigation/index.cjs +5 -5
- package/dist/components/navigation/index.js +4 -4
- package/dist/components/onboarding-guides/index.cjs +5 -5
- package/dist/components/onboarding-guides/index.js +4 -4
- package/dist/components/tickets/index.cjs +6 -6
- package/dist/components/tickets/index.js +5 -5
- package/dist/components/ui/index.cjs +2 -2
- package/dist/components/ui/index.js +1 -1
- package/dist/components/ui/table/table-skeleton.d.ts +13 -0
- package/dist/components/ui/table/table-skeleton.d.ts.map +1 -1
- package/dist/components/ui/table/table.d.ts +1 -1
- package/dist/components/ui/table/table.d.ts.map +1 -1
- package/dist/components/ui/table/types.d.ts +8 -0
- package/dist/components/ui/table/types.d.ts.map +1 -1
- package/dist/index.cjs +6 -6
- package/dist/index.js +5 -5
- package/package.json +1 -1
- package/src/components/ui/table/table-skeleton.tsx +37 -0
- package/src/components/ui/table/table.tsx +18 -15
- package/src/components/ui/table/types.ts +8 -0
- package/dist/chunk-MF324FSD.js.map +0 -1
- package/dist/chunk-R5IWJONE.cjs.map +0 -1
- /package/dist/{chunk-AVIZUQRW.js.map → chunk-2OBE3ADQ.js.map} +0 -0
- /package/dist/{chunk-PTXOWFRB.js.map → chunk-4LCZ3BOU.js.map} +0 -0
- /package/dist/{chunk-6EBKO275.js.map → chunk-7V7NUNGW.js.map} +0 -0
- /package/dist/{chunk-VD3ZAA2O.js.map → chunk-AVRSKYMG.js.map} +0 -0
- /package/dist/{chunk-7L5ROE3Z.js.map → chunk-GFOCAZ27.js.map} +0 -0
- /package/dist/{chunk-PYWF5JJW.js.map → chunk-I36X7NO5.js.map} +0 -0
- /package/dist/{chunk-KU3JQWYJ.js.map → chunk-INV2ORVM.js.map} +0 -0
- /package/dist/{chunk-P2SECY3U.js.map → chunk-KGQRIEN7.js.map} +0 -0
- /package/dist/{chunk-SSSZ64YG.js.map → chunk-LYTSK3H6.js.map} +0 -0
- /package/dist/{chunk-N7SFQMCH.js.map → chunk-ONZEQ2RE.js.map} +0 -0
- /package/dist/{chunk-TRJJMZSQ.js.map → chunk-USN3VJBT.js.map} +0 -0
- /package/dist/{chunk-GOD47MJM.js.map → chunk-VRBNOWGS.js.map} +0 -0
- /package/dist/{chunk-MGBWMZEL.js.map → chunk-WTLXC2VG.js.map} +0 -0
- /package/dist/{chunk-HFJSBIXL.js.map → chunk-X7ITBXPK.js.map} +0 -0
|
@@ -9,7 +9,7 @@ import { CursorPagination } from '../cursor-pagination';
|
|
|
9
9
|
import { TableEmptyState } from './table-empty-state';
|
|
10
10
|
import { TableHeader } from './table-header';
|
|
11
11
|
import { TableRow } from './table-row';
|
|
12
|
-
import {
|
|
12
|
+
import { TableCardSkeleton, TablePlaceholderRows } from './table-skeleton';
|
|
13
13
|
import type { RowAction, TableColumn, TableProps, TableRowData } from './types';
|
|
14
14
|
import { useTableMotion } from './use-table-motion';
|
|
15
15
|
|
|
@@ -102,6 +102,7 @@ export function Table<T = TableRowData>({
|
|
|
102
102
|
loading = false,
|
|
103
103
|
emptyMessage,
|
|
104
104
|
skeletonRows = 10,
|
|
105
|
+
keepHeightWhenEmpty = false,
|
|
105
106
|
className,
|
|
106
107
|
containerClassName,
|
|
107
108
|
headerClassName,
|
|
@@ -269,7 +270,19 @@ export function Table<T = TableRowData>({
|
|
|
269
270
|
hasChevron={Boolean(rowHref)}
|
|
270
271
|
/>
|
|
271
272
|
) : data.length === 0 ? (
|
|
272
|
-
|
|
273
|
+
keepHeightWhenEmpty ? (
|
|
274
|
+
/* Same box as a full page: the placeholders hold the rows' height
|
|
275
|
+
and the empty state floats over them — TOP-aligned, not centred,
|
|
276
|
+
so a 20-row reservation still shows the message above the fold. */
|
|
277
|
+
<div className="relative flex w-full flex-col gap-2">
|
|
278
|
+
<TablePlaceholderRows rows={skeletonRows} compact={compact} />
|
|
279
|
+
<div className="absolute inset-x-0 top-0 flex justify-center">
|
|
280
|
+
<TableEmptyState message={emptyMessage} />
|
|
281
|
+
</div>
|
|
282
|
+
</div>
|
|
283
|
+
) : (
|
|
284
|
+
<TableEmptyState message={emptyMessage} />
|
|
285
|
+
)
|
|
273
286
|
) : (
|
|
274
287
|
<>
|
|
275
288
|
{/* Real data rows. When `animateRowReorder` is on, wrap ONLY these
|
|
@@ -313,19 +326,9 @@ export function Table<T = TableRowData>({
|
|
|
313
326
|
{/* Infinite scroll: sentinel element */}
|
|
314
327
|
{infiniteScroll?.hasNextPage && <div ref={sentinelRef} className="h-1" aria-hidden="true" />}
|
|
315
328
|
{/* Invisible placeholder rows to maintain consistent table height (disabled for infinite scroll) */}
|
|
316
|
-
{!infiniteScroll &&
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
key={`placeholder-${index}`}
|
|
320
|
-
className="pointer-events-none relative overflow-hidden rounded-[6px]"
|
|
321
|
-
aria-hidden="true"
|
|
322
|
-
>
|
|
323
|
-
{/* Desktop placeholder - invisible but takes up space */}
|
|
324
|
-
<div className={cn('hidden items-center gap-4 px-4 py-0 md:flex', ROW_HEIGHT_DESKTOP)} />
|
|
325
|
-
{/* Mobile placeholder - invisible but takes up space */}
|
|
326
|
-
<div className={cn('flex items-center justify-start gap-3 px-3 py-0 md:hidden', ROW_HEIGHT_MOBILE)} />
|
|
327
|
-
</div>
|
|
328
|
-
))}
|
|
329
|
+
{!infiniteScroll && (
|
|
330
|
+
<TablePlaceholderRows rows={Math.max(0, skeletonRows - data.length)} compact={compact} />
|
|
331
|
+
)}
|
|
329
332
|
</>
|
|
330
333
|
)}
|
|
331
334
|
</div>
|
|
@@ -102,6 +102,14 @@ export interface TableProps<T = TableRowData> {
|
|
|
102
102
|
|
|
103
103
|
// Skeleton configuration
|
|
104
104
|
skeletonRows?: number; // Number of skeleton rows to show when loading (default: 10)
|
|
105
|
+
/**
|
|
106
|
+
* Keep the body `skeletonRows` rows tall when there are NO rows: the empty
|
|
107
|
+
* state is centred over invisible placeholder rows instead of collapsing.
|
|
108
|
+
* With `skeletonRows` = the page size, a full page, a short last page, the
|
|
109
|
+
* skeleton and "no results" are all one height — no layout jump on a filter
|
|
110
|
+
* that empties the list. Opt-in: an unpaginated table wants to collapse.
|
|
111
|
+
*/
|
|
112
|
+
keepHeightWhenEmpty?: boolean;
|
|
105
113
|
|
|
106
114
|
// Styling
|
|
107
115
|
className?: string;
|