@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.
Files changed (100) hide show
  1. package/dist/{chunk-AVIZUQRW.js → chunk-2OBE3ADQ.js} +2 -2
  2. package/dist/{chunk-PTXOWFRB.js → chunk-4LCZ3BOU.js} +5 -5
  3. package/dist/{chunk-IMIR5V6E.cjs → chunk-6XZGGB3F.cjs} +18 -18
  4. package/dist/{chunk-IMIR5V6E.cjs.map → chunk-6XZGGB3F.cjs.map} +1 -1
  5. package/dist/{chunk-6EBKO275.js → chunk-7V7NUNGW.js} +2 -2
  6. package/dist/{chunk-VD3ZAA2O.js → chunk-AVRSKYMG.js} +2 -2
  7. package/dist/{chunk-4S5E7NOM.cjs → chunk-B3N6SYQT.cjs} +3 -3
  8. package/dist/{chunk-4S5E7NOM.cjs.map → chunk-B3N6SYQT.cjs.map} +1 -1
  9. package/dist/{chunk-EQ3DAGD7.cjs → chunk-BUMXIMRT.cjs} +34 -34
  10. package/dist/{chunk-EQ3DAGD7.cjs.map → chunk-BUMXIMRT.cjs.map} +1 -1
  11. package/dist/{chunk-R5IWJONE.cjs → chunk-BURTRAEH.cjs} +43 -14
  12. package/dist/chunk-BURTRAEH.cjs.map +1 -0
  13. package/dist/{chunk-AYVTVUZT.cjs → chunk-F6WACE6F.cjs} +13 -13
  14. package/dist/{chunk-AYVTVUZT.cjs.map → chunk-F6WACE6F.cjs.map} +1 -1
  15. package/dist/{chunk-7L5ROE3Z.js → chunk-GFOCAZ27.js} +2 -2
  16. package/dist/{chunk-FCNICDWP.cjs → chunk-GXPPCZ33.cjs} +3 -3
  17. package/dist/{chunk-FCNICDWP.cjs.map → chunk-GXPPCZ33.cjs.map} +1 -1
  18. package/dist/{chunk-PYWF5JJW.js → chunk-I36X7NO5.js} +5 -5
  19. package/dist/{chunk-KU3JQWYJ.js → chunk-INV2ORVM.js} +4 -4
  20. package/dist/{chunk-OEDUVTPT.cjs → chunk-KCEQQWL5.cjs} +4 -4
  21. package/dist/{chunk-OEDUVTPT.cjs.map → chunk-KCEQQWL5.cjs.map} +1 -1
  22. package/dist/{chunk-P2SECY3U.js → chunk-KGQRIEN7.js} +4 -4
  23. package/dist/{chunk-SXVGFJ24.cjs → chunk-LXQVPQKW.cjs} +17 -17
  24. package/dist/{chunk-SXVGFJ24.cjs.map → chunk-LXQVPQKW.cjs.map} +1 -1
  25. package/dist/{chunk-SSSZ64YG.js → chunk-LYTSK3H6.js} +2 -2
  26. package/dist/{chunk-N7SFQMCH.js → chunk-ONZEQ2RE.js} +2 -2
  27. package/dist/{chunk-OGTXZFFE.cjs → chunk-RLH4FHVB.cjs} +50 -50
  28. package/dist/{chunk-OGTXZFFE.cjs.map → chunk-RLH4FHVB.cjs.map} +1 -1
  29. package/dist/{chunk-WRWXND3X.cjs → chunk-U7OPEKX4.cjs} +10 -10
  30. package/dist/{chunk-WRWXND3X.cjs.map → chunk-U7OPEKX4.cjs.map} +1 -1
  31. package/dist/{chunk-TRJJMZSQ.js → chunk-USN3VJBT.js} +2 -2
  32. package/dist/{chunk-MIC4HHVZ.cjs → chunk-VB5N2WXJ.cjs} +17 -17
  33. package/dist/{chunk-MIC4HHVZ.cjs.map → chunk-VB5N2WXJ.cjs.map} +1 -1
  34. package/dist/{chunk-GOD47MJM.js → chunk-VRBNOWGS.js} +3 -3
  35. package/dist/{chunk-B3NX4GZS.cjs → chunk-VSFQTKP5.cjs} +3 -3
  36. package/dist/{chunk-B3NX4GZS.cjs.map → chunk-VSFQTKP5.cjs.map} +1 -1
  37. package/dist/{chunk-YNO4DEXK.cjs → chunk-WBC2RLTG.cjs} +4 -4
  38. package/dist/{chunk-YNO4DEXK.cjs.map → chunk-WBC2RLTG.cjs.map} +1 -1
  39. package/dist/{chunk-MGBWMZEL.js → chunk-WTLXC2VG.js} +2 -2
  40. package/dist/{chunk-HFJSBIXL.js → chunk-X7ITBXPK.js} +2 -2
  41. package/dist/{chunk-MF324FSD.js → chunk-XDLYLQ57.js} +43 -14
  42. package/dist/chunk-XDLYLQ57.js.map +1 -0
  43. package/dist/{chunk-DVSTM6QK.cjs → chunk-XOZSL7O2.cjs} +33 -33
  44. package/dist/{chunk-DVSTM6QK.cjs.map → chunk-XOZSL7O2.cjs.map} +1 -1
  45. package/dist/{chunk-FV5VGJE6.cjs → chunk-YDFCQREG.cjs} +3 -3
  46. package/dist/{chunk-FV5VGJE6.cjs.map → chunk-YDFCQREG.cjs.map} +1 -1
  47. package/dist/components/case-studies/index.cjs +8 -8
  48. package/dist/components/case-studies/index.js +2 -2
  49. package/dist/components/contact/index.cjs +3 -3
  50. package/dist/components/contact/index.js +2 -2
  51. package/dist/components/docs/index.cjs +6 -6
  52. package/dist/components/docs/index.js +5 -5
  53. package/dist/components/embeds/index.cjs +3 -3
  54. package/dist/components/embeds/index.js +2 -2
  55. package/dist/components/faq/index.cjs +3 -3
  56. package/dist/components/faq/index.js +2 -2
  57. package/dist/components/features/index.cjs +2 -2
  58. package/dist/components/features/index.js +1 -1
  59. package/dist/components/help-center-pages/index.cjs +22 -22
  60. package/dist/components/help-center-pages/index.js +13 -13
  61. package/dist/components/index.cjs +31 -31
  62. package/dist/components/index.js +12 -12
  63. package/dist/components/meeting-scheduler/index.cjs +21 -21
  64. package/dist/components/meeting-scheduler/index.js +1 -1
  65. package/dist/components/navigation/index.cjs +5 -5
  66. package/dist/components/navigation/index.js +4 -4
  67. package/dist/components/onboarding-guides/index.cjs +5 -5
  68. package/dist/components/onboarding-guides/index.js +4 -4
  69. package/dist/components/tickets/index.cjs +6 -6
  70. package/dist/components/tickets/index.js +5 -5
  71. package/dist/components/ui/index.cjs +2 -2
  72. package/dist/components/ui/index.js +1 -1
  73. package/dist/components/ui/table/table-skeleton.d.ts +13 -0
  74. package/dist/components/ui/table/table-skeleton.d.ts.map +1 -1
  75. package/dist/components/ui/table/table.d.ts +1 -1
  76. package/dist/components/ui/table/table.d.ts.map +1 -1
  77. package/dist/components/ui/table/types.d.ts +8 -0
  78. package/dist/components/ui/table/types.d.ts.map +1 -1
  79. package/dist/index.cjs +6 -6
  80. package/dist/index.js +5 -5
  81. package/package.json +1 -1
  82. package/src/components/ui/table/table-skeleton.tsx +37 -0
  83. package/src/components/ui/table/table.tsx +18 -15
  84. package/src/components/ui/table/types.ts +8 -0
  85. package/dist/chunk-MF324FSD.js.map +0 -1
  86. package/dist/chunk-R5IWJONE.cjs.map +0 -1
  87. /package/dist/{chunk-AVIZUQRW.js.map → chunk-2OBE3ADQ.js.map} +0 -0
  88. /package/dist/{chunk-PTXOWFRB.js.map → chunk-4LCZ3BOU.js.map} +0 -0
  89. /package/dist/{chunk-6EBKO275.js.map → chunk-7V7NUNGW.js.map} +0 -0
  90. /package/dist/{chunk-VD3ZAA2O.js.map → chunk-AVRSKYMG.js.map} +0 -0
  91. /package/dist/{chunk-7L5ROE3Z.js.map → chunk-GFOCAZ27.js.map} +0 -0
  92. /package/dist/{chunk-PYWF5JJW.js.map → chunk-I36X7NO5.js.map} +0 -0
  93. /package/dist/{chunk-KU3JQWYJ.js.map → chunk-INV2ORVM.js.map} +0 -0
  94. /package/dist/{chunk-P2SECY3U.js.map → chunk-KGQRIEN7.js.map} +0 -0
  95. /package/dist/{chunk-SSSZ64YG.js.map → chunk-LYTSK3H6.js.map} +0 -0
  96. /package/dist/{chunk-N7SFQMCH.js.map → chunk-ONZEQ2RE.js.map} +0 -0
  97. /package/dist/{chunk-TRJJMZSQ.js.map → chunk-USN3VJBT.js.map} +0 -0
  98. /package/dist/{chunk-GOD47MJM.js.map → chunk-VRBNOWGS.js.map} +0 -0
  99. /package/dist/{chunk-MGBWMZEL.js.map → chunk-WTLXC2VG.js.map} +0 -0
  100. /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 { ROW_HEIGHT_DESKTOP, ROW_HEIGHT_MOBILE, TableCardSkeleton } from './table-skeleton';
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
- <TableEmptyState message={emptyMessage} />
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
- Array.from({ length: Math.max(0, skeletonRows - data.length) }).map((_, index) => (
318
- <div
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;