@flamingo-stack/openframe-frontend-core 0.0.596 → 0.0.597-snapshot.20260906135520

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 (119) hide show
  1. package/dist/{chunk-IMIR5V6E.cjs → chunk-2SYX2Z7R.cjs} +18 -18
  2. package/dist/{chunk-IMIR5V6E.cjs.map → chunk-2SYX2Z7R.cjs.map} +1 -1
  3. package/dist/{chunk-WRWXND3X.cjs → chunk-3WSS7C2V.cjs} +10 -10
  4. package/dist/{chunk-WRWXND3X.cjs.map → chunk-3WSS7C2V.cjs.map} +1 -1
  5. package/dist/{chunk-AVIZUQRW.js → chunk-75YW6ET4.js} +2 -2
  6. package/dist/{chunk-PTXOWFRB.js → chunk-BK6CCQG6.js} +5 -5
  7. package/dist/{chunk-B3NX4GZS.cjs → chunk-BPVHDDNY.cjs} +3 -3
  8. package/dist/{chunk-B3NX4GZS.cjs.map → chunk-BPVHDDNY.cjs.map} +1 -1
  9. package/dist/{chunk-DVSTM6QK.cjs → chunk-DAPOBLAK.cjs} +33 -33
  10. package/dist/{chunk-DVSTM6QK.cjs.map → chunk-DAPOBLAK.cjs.map} +1 -1
  11. package/dist/{chunk-EQ3DAGD7.cjs → chunk-DI3SVVY5.cjs} +34 -34
  12. package/dist/{chunk-EQ3DAGD7.cjs.map → chunk-DI3SVVY5.cjs.map} +1 -1
  13. package/dist/{chunk-MF324FSD.js → chunk-GHYFVT52.js} +436 -383
  14. package/dist/chunk-GHYFVT52.js.map +1 -0
  15. package/dist/{chunk-N7SFQMCH.js → chunk-HLPAVYK7.js} +2 -2
  16. package/dist/{chunk-AYVTVUZT.cjs → chunk-HWAYIK4U.cjs} +13 -13
  17. package/dist/{chunk-AYVTVUZT.cjs.map → chunk-HWAYIK4U.cjs.map} +1 -1
  18. package/dist/{chunk-YNO4DEXK.cjs → chunk-JVZVVZOZ.cjs} +4 -4
  19. package/dist/{chunk-YNO4DEXK.cjs.map → chunk-JVZVVZOZ.cjs.map} +1 -1
  20. package/dist/{chunk-GOD47MJM.js → chunk-KHOZ52NR.js} +3 -3
  21. package/dist/{chunk-SSSZ64YG.js → chunk-NIAMPMKV.js} +2 -2
  22. package/dist/{chunk-FCNICDWP.cjs → chunk-P24VPJTT.cjs} +3 -3
  23. package/dist/{chunk-FCNICDWP.cjs.map → chunk-P24VPJTT.cjs.map} +1 -1
  24. package/dist/{chunk-7L5ROE3Z.js → chunk-PTK3CINU.js} +2 -2
  25. package/dist/{chunk-TRJJMZSQ.js → chunk-PX4IPM7Q.js} +2 -2
  26. package/dist/{chunk-4S5E7NOM.cjs → chunk-QD64Q4I2.cjs} +3 -3
  27. package/dist/{chunk-4S5E7NOM.cjs.map → chunk-QD64Q4I2.cjs.map} +1 -1
  28. package/dist/{chunk-R5IWJONE.cjs → chunk-QIKBISZM.cjs} +282 -229
  29. package/dist/chunk-QIKBISZM.cjs.map +1 -0
  30. package/dist/{chunk-VD3ZAA2O.js → chunk-R4UV366K.js} +2 -2
  31. package/dist/{chunk-MGBWMZEL.js → chunk-SE3PVN64.js} +2 -2
  32. package/dist/{chunk-HFJSBIXL.js → chunk-TZPVRWPU.js} +2 -2
  33. package/dist/{chunk-OEDUVTPT.cjs → chunk-UE7OFLLS.cjs} +4 -4
  34. package/dist/{chunk-OEDUVTPT.cjs.map → chunk-UE7OFLLS.cjs.map} +1 -1
  35. package/dist/{chunk-SXVGFJ24.cjs → chunk-UG7JNQZY.cjs} +17 -17
  36. package/dist/{chunk-SXVGFJ24.cjs.map → chunk-UG7JNQZY.cjs.map} +1 -1
  37. package/dist/{chunk-FV5VGJE6.cjs → chunk-V2QK5W3O.cjs} +3 -3
  38. package/dist/{chunk-FV5VGJE6.cjs.map → chunk-V2QK5W3O.cjs.map} +1 -1
  39. package/dist/{chunk-PYWF5JJW.js → chunk-VIRTMRS4.js} +5 -5
  40. package/dist/{chunk-MIC4HHVZ.cjs → chunk-VLJTJAHJ.cjs} +17 -17
  41. package/dist/{chunk-MIC4HHVZ.cjs.map → chunk-VLJTJAHJ.cjs.map} +1 -1
  42. package/dist/{chunk-P2SECY3U.js → chunk-WDWCQD75.js} +4 -4
  43. package/dist/{chunk-KU3JQWYJ.js → chunk-WPN545FW.js} +4 -4
  44. package/dist/{chunk-6EBKO275.js → chunk-XNPAVMPB.js} +2 -2
  45. package/dist/{chunk-OGTXZFFE.cjs → chunk-YWBAIFI2.cjs} +50 -50
  46. package/dist/{chunk-OGTXZFFE.cjs.map → chunk-YWBAIFI2.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 -33
  62. package/dist/components/index.cjs.map +1 -1
  63. package/dist/components/index.js +12 -14
  64. package/dist/components/index.js.map +1 -1
  65. package/dist/components/meeting-scheduler/index.cjs +21 -21
  66. package/dist/components/meeting-scheduler/index.js +1 -1
  67. package/dist/components/navigation/index.cjs +5 -5
  68. package/dist/components/navigation/index.js +4 -4
  69. package/dist/components/onboarding-guides/index.cjs +5 -5
  70. package/dist/components/onboarding-guides/index.js +4 -4
  71. package/dist/components/tickets/index.cjs +6 -6
  72. package/dist/components/tickets/index.js +5 -5
  73. package/dist/components/ui/data-table/data-table-body.d.ts.map +1 -1
  74. package/dist/components/ui/data-table/data-table-skeleton.d.ts +31 -0
  75. package/dist/components/ui/data-table/data-table-skeleton.d.ts.map +1 -1
  76. package/dist/components/ui/index.cjs +2 -4
  77. package/dist/components/ui/index.cjs.map +1 -1
  78. package/dist/components/ui/index.d.ts +1 -1
  79. package/dist/components/ui/index.d.ts.map +1 -1
  80. package/dist/components/ui/index.js +1 -3
  81. package/dist/components/ui/table/index.d.ts +1 -1
  82. package/dist/components/ui/table/index.d.ts.map +1 -1
  83. package/dist/components/ui/table/table-empty-state.d.ts +1 -1
  84. package/dist/components/ui/table/table-empty-state.d.ts.map +1 -1
  85. package/dist/components/ui/table/table-skeleton.d.ts +5 -9
  86. package/dist/components/ui/table/table-skeleton.d.ts.map +1 -1
  87. package/dist/components/ui/table/table.d.ts +1 -1
  88. package/dist/components/ui/table/table.d.ts.map +1 -1
  89. package/dist/components/ui/table/types.d.ts +40 -0
  90. package/dist/components/ui/table/types.d.ts.map +1 -1
  91. package/dist/index.cjs +6 -8
  92. package/dist/index.cjs.map +1 -1
  93. package/dist/index.js +5 -7
  94. package/dist/index.js.map +1 -1
  95. package/package.json +1 -1
  96. package/src/components/ui/data-table/data-table-body.tsx +8 -49
  97. package/src/components/ui/data-table/data-table-skeleton.tsx +100 -0
  98. package/src/components/ui/index.ts +0 -1
  99. package/src/components/ui/table/index.ts +1 -1
  100. package/src/components/ui/table/table-empty-state.tsx +6 -2
  101. package/src/components/ui/table/table-skeleton.tsx +18 -11
  102. package/src/components/ui/table/table.tsx +39 -16
  103. package/src/components/ui/table/types.ts +40 -0
  104. package/dist/chunk-MF324FSD.js.map +0 -1
  105. package/dist/chunk-R5IWJONE.cjs.map +0 -1
  106. /package/dist/{chunk-AVIZUQRW.js.map → chunk-75YW6ET4.js.map} +0 -0
  107. /package/dist/{chunk-PTXOWFRB.js.map → chunk-BK6CCQG6.js.map} +0 -0
  108. /package/dist/{chunk-N7SFQMCH.js.map → chunk-HLPAVYK7.js.map} +0 -0
  109. /package/dist/{chunk-GOD47MJM.js.map → chunk-KHOZ52NR.js.map} +0 -0
  110. /package/dist/{chunk-SSSZ64YG.js.map → chunk-NIAMPMKV.js.map} +0 -0
  111. /package/dist/{chunk-7L5ROE3Z.js.map → chunk-PTK3CINU.js.map} +0 -0
  112. /package/dist/{chunk-TRJJMZSQ.js.map → chunk-PX4IPM7Q.js.map} +0 -0
  113. /package/dist/{chunk-VD3ZAA2O.js.map → chunk-R4UV366K.js.map} +0 -0
  114. /package/dist/{chunk-MGBWMZEL.js.map → chunk-SE3PVN64.js.map} +0 -0
  115. /package/dist/{chunk-HFJSBIXL.js.map → chunk-TZPVRWPU.js.map} +0 -0
  116. /package/dist/{chunk-PYWF5JJW.js.map → chunk-VIRTMRS4.js.map} +0 -0
  117. /package/dist/{chunk-P2SECY3U.js.map → chunk-WDWCQD75.js.map} +0 -0
  118. /package/dist/{chunk-KU3JQWYJ.js.map → chunk-WPN545FW.js.map} +0 -0
  119. /package/dist/{chunk-6EBKO275.js.map → chunk-XNPAVMPB.js.map} +0 -0
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  SoftwareInfo,
10
10
  SoftwareSourceBadge,
11
11
  ToolBadge
12
- } from "./chunk-6EBKO275.js";
12
+ } from "./chunk-XNPAVMPB.js";
13
13
  import {
14
14
  AppHeader,
15
15
  AppLayout,
@@ -28,14 +28,14 @@ import {
28
28
  SlidingSidebar,
29
29
  TicketAlertsButton,
30
30
  TopNavigation
31
- } from "./chunk-GOD47MJM.js";
31
+ } from "./chunk-KHOZ52NR.js";
32
32
  import {
33
33
  MobileNavigationDropdown,
34
34
  MultiLevelNavigation,
35
35
  StickySectionNav,
36
36
  useSectionNavigation
37
- } from "./chunk-MGBWMZEL.js";
38
- import "./chunk-HFJSBIXL.js";
37
+ } from "./chunk-SE3PVN64.js";
38
+ import "./chunk-TZPVRWPU.js";
39
39
  import {
40
40
  ADMIN_APPROVAL_REQUEST_CONTEXT_TYPE,
41
41
  AIEnrichButton,
@@ -107,7 +107,6 @@ import {
107
107
  BreadcrumbPage,
108
108
  BreadcrumbSeparator,
109
109
  BulletList,
110
- COMPACT_ROW_MIN_HEIGHT_PX,
111
110
  CSV_CONTENT_TYPE,
112
111
  CUSTOM_PRESET_KEY,
113
112
  CardLoader,
@@ -599,7 +598,7 @@ import {
599
598
  withFirstTouchAttribution,
600
599
  withWalkthroughOpenParam,
601
600
  writeDismissCookie
602
- } from "./chunk-MF324FSD.js";
601
+ } from "./chunk-GHYFVT52.js";
603
602
  import "./chunk-L2SLFCXP.js";
604
603
  import "./chunk-BJXDHKUX.js";
605
604
  import {
@@ -1831,7 +1830,6 @@ export {
1831
1830
  COMPACT_CARD_TEXT_COL,
1832
1831
  COMPACT_CARD_TITLE,
1833
1832
  COMPACT_CARD_TITLE_ROW,
1834
- COMPACT_ROW_MIN_HEIGHT_PX,
1835
1833
  CONNECTION_STATUS,
1836
1834
  CONTENT_REF_GROUPS,
1837
1835
  CONTEXT_BACK_CLASS,
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/logs-list.tsx","../src/components/log-severity-dot.tsx","../src/types/logs.types.ts","../src/assets/index.ts"],"sourcesContent":["import { type FC, forwardRef, useRef } from 'react';\nimport type { LogsListProps, LogEntry } from '../types/logs.types';\nimport { cn } from '../utils/cn';\nimport { LogSeverityDot } from './log-severity-dot';\nimport { ToolIcon } from './tool-icon';\n\nconst formatTimestamp = (timestamp: string | Date): string => {\n const date = timestamp instanceof Date ? timestamp : new Date(timestamp);\n\n // UTC getters so the timestamp is identical on server (UTC) and client\n // (local) — otherwise React #418 hydration mismatch.\n const year = date.getUTCFullYear();\n const month = String(date.getUTCMonth() + 1).padStart(2, '0');\n const day = String(date.getUTCDate()).padStart(2, '0');\n const hours = String(date.getUTCHours()).padStart(2, '0');\n const minutes = String(date.getUTCMinutes()).padStart(2, '0');\n\n return `${year}/${month}/${day},${hours}:${minutes}`;\n};\n\nconst LogCard: FC<{\n log: LogEntry;\n isLast: boolean;\n showConnector: boolean;\n onClick?: () => void;\n}> = ({ log, isLast, showConnector, onClick }) => {\n return (\n <div className=\"relative\">\n <div\n className={cn(\n 'relative box-border flex w-full items-start gap-3 rounded px-1 py-2',\n 'cursor-pointer transition-colors hover:bg-ods-bg-hover/50',\n )}\n onClick={onClick}\n role=\"button\"\n tabIndex={0}\n onKeyDown={e => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault();\n onClick?.();\n }\n }}\n >\n <LogSeverityDot severity={log.severity} size=\"md\" />\n\n <div className=\"min-w-0 flex-1 space-y-1\">\n <p className=\"text-ods-text-primary text-h6\">{log.title}</p>\n <div className=\"flex items-center gap-2\">\n <p className=\"text-ods-text-secondary text-h5\">{formatTimestamp(log.timestamp)}</p>\n {log.toolType && <ToolIcon toolType={log.toolType} size={16} />}\n </div>\n </div>\n </div>\n\n {showConnector && !isLast && (\n <div\n className=\"absolute left-[15px] w-[2px] bg-ods-border\"\n style={{\n top: '28px',\n bottom: '-10px',\n }}\n aria-hidden=\"true\"\n />\n )}\n </div>\n );\n};\n\nexport const LogsList = forwardRef<HTMLDivElement, LogsListProps>(\n (\n {\n logs,\n maxHeight = '400px',\n showConnector = true,\n onLogClick,\n loading = false,\n emptyMessage = 'No logs to display',\n className,\n },\n ref,\n ) => {\n const containerRef = useRef<HTMLDivElement>(null);\n\n const isFullHeight = maxHeight === '100%';\n\n const getContainerStyles = () => {\n if (isFullHeight) return undefined;\n return { maxHeight, minHeight: '200px' };\n };\n\n const getContainerClasses = () => {\n if (isFullHeight) return 'h-full';\n return '';\n };\n\n if (loading) {\n return (\n <div\n ref={ref}\n className={cn(\n 'rounded-lg border border-ods-border bg-ods-card p-4',\n 'flex items-center justify-center',\n getContainerClasses(),\n className,\n )}\n style={getContainerStyles()}\n >\n <div className=\"text-ods-text-muted text-h6\">Loading logs...</div>\n </div>\n );\n }\n\n if (logs.length === 0) {\n return (\n <div\n ref={ref}\n className={cn(\n 'rounded-lg border border-ods-border bg-ods-card p-4',\n 'flex items-center justify-center',\n getContainerClasses(),\n className,\n )}\n style={getContainerStyles()}\n >\n <div className=\"text-ods-text-muted text-h6\">{emptyMessage}</div>\n </div>\n );\n }\n\n return (\n <div\n ref={ref}\n className={cn(\n 'relative rounded-lg border border-ods-border bg-ods-card',\n 'flex flex-col overflow-hidden',\n getContainerClasses(),\n className,\n )}\n style={getContainerStyles()}\n >\n <div ref={containerRef} className=\"flex-1 overflow-y-auto px-4 py-3\">\n {logs.map((log, index) => (\n <LogCard\n key={log.id}\n log={log}\n isLast={index === logs.length - 1}\n showConnector={showConnector}\n onClick={() => onLogClick?.(log)}\n />\n ))}\n </div>\n </div>\n );\n },\n);\n\nLogsList.displayName = 'LogsList';\n","import { forwardRef } from 'react';\nimport { type LogSeverityDotProps, LOG_SEVERITY_COLORS, LOG_SEVERITY_LABELS } from '../types/logs.types';\nimport { cn } from '../utils/cn';\n\nexport const LogSeverityDot = forwardRef<HTMLDivElement, LogSeverityDotProps>(\n ({ severity, size = 'md', className }, ref) => {\n const sizeClasses = {\n sm: 'w-4 h-4',\n md: 'w-6 h-6',\n lg: 'w-8 h-8',\n };\n\n const dotSizeClasses = {\n sm: 'w-2 h-2',\n md: 'w-3 h-3',\n lg: 'w-4 h-4',\n };\n\n return (\n <div\n ref={ref}\n className={cn('relative flex shrink-0 items-center justify-center', sizeClasses[size], className)}\n aria-label={`${LOG_SEVERITY_LABELS[severity]} severity`}\n >\n <div\n className={cn('rounded-full', dotSizeClasses[size])}\n style={{ backgroundColor: LOG_SEVERITY_COLORS[severity] }}\n />\n </div>\n );\n },\n);\n\nLogSeverityDot.displayName = 'LogSeverityDot';\n","import type { ToolType } from './tool.types';\n\nexport type LogSeverity = 'DEBUG' | 'INFO' | 'WARNING' | 'ERROR' | 'CRITICAL';\n\nexport interface LogEntry {\n id: string;\n ingestDay: string;\n eventType: string;\n severity: LogSeverity;\n title: string;\n timestamp: string | Date;\n toolType?: ToolType;\n toolIcon?: string;\n message?: string;\n metadata?: Record<string, unknown>;\n}\n\nexport interface LogsListProps {\n logs: LogEntry[];\n maxHeight?: string | number;\n showConnector?: boolean;\n onLogClick?: (log: LogEntry) => void;\n loading?: boolean;\n emptyMessage?: string;\n className?: string;\n}\n\nexport interface LogSeverityDotProps {\n severity: LogSeverity;\n size?: 'sm' | 'md' | 'lg';\n className?: string;\n}\n\nexport const LOG_SEVERITY_COLORS: Record<LogSeverity, string> = {\n DEBUG: '#888888',\n INFO: '#888888',\n WARNING: '#e1b32f',\n ERROR: '#f36666',\n CRITICAL: '#b43b3b',\n};\n\nexport const LOG_SEVERITY_LABELS: Record<LogSeverity, string> = {\n DEBUG: 'Debug',\n INFO: 'Info',\n WARNING: 'Warning',\n ERROR: 'Error',\n CRITICAL: 'Critical',\n};\n","// Assets exports\n// Font files and other static assets\n// Platform utilities will be available when needed\n\nexport const assets = {} as const;\nexport * from './fae-avatar';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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IACzC;AAEA,UAAM,sBAAsB,MAAM;AAChC,UAAI,aAAc,QAAO;AACzB,aAAO;AAAA,IACT;AAEA,QAAI,SAAS;AACX,aACE,gBAAAD;AAAA,QAAC;AAAA;AAAA,UACC;AAAA,UACA,WAAW;AAAA,YACT;AAAA,YACA;AAAA,YACA,oBAAoB;AAAA,YACpB;AAAA,UACF;AAAA,UACA,OAAO,mBAAmB;AAAA,UAE1B,0BAAAA,KAAC,SAAI,WAAU,+BAA8B,6BAAe;AAAA;AAAA,MAC9D;AAAA,IAEJ;AAEA,QAAI,KAAK,WAAW,GAAG;AACrB,aACE,gBAAAA;AAAA,QAAC;AAAA;AAAA,UACC;AAAA,UACA,WAAW;AAAA,YACT;AAAA,YACA;AAAA,YACA,oBAAoB;AAAA,YACpB;AAAA,UACF;AAAA,UACA,OAAO,mBAAmB;AAAA,UAE1B,0BAAAA,KAAC,SAAI,WAAU,+BAA+B,wBAAa;AAAA;AAAA,MAC7D;AAAA,IAEJ;AAEA,WACE,gBAAAA;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,WAAW;AAAA,UACT;AAAA,UACA;AAAA,UACA,oBAAoB;AAAA,UACpB;AAAA,QACF;AAAA,QACA,OAAO,mBAAmB;AAAA,QAE1B,0BAAAA,KAAC,SAAI,KAAK,cAAc,WAAU,oCAC/B,eAAK,IAAI,CAAC,KAAK,UACd,gBAAAA;AAAA,UAAC;AAAA;AAAA,YAEC;AAAA,YACA,QAAQ,UAAU,KAAK,SAAS;AAAA,YAChC;AAAA,YACA,SAAS,MAAM,aAAa,GAAG;AAAA;AAAA,UAJ1B,IAAI;AAAA,QAKX,CACD,GACH;AAAA;AAAA,IACF;AAAA,EAEJ;AACF;AAEA,SAAS,cAAc;;;AGxJhB,IAAM,SAAS,CAAC;","names":["forwardRef","jsx","forwardRef"]}
1
+ {"version":3,"sources":["../src/components/logs-list.tsx","../src/components/log-severity-dot.tsx","../src/types/logs.types.ts","../src/assets/index.ts"],"sourcesContent":["import { type FC, forwardRef, useRef } from 'react';\nimport type { LogsListProps, LogEntry } from '../types/logs.types';\nimport { cn } from '../utils/cn';\nimport { LogSeverityDot } from './log-severity-dot';\nimport { ToolIcon } from './tool-icon';\n\nconst formatTimestamp = (timestamp: string | Date): string => {\n const date = timestamp instanceof Date ? timestamp : new Date(timestamp);\n\n // UTC getters so the timestamp is identical on server (UTC) and client\n // (local) — otherwise React #418 hydration mismatch.\n const year = date.getUTCFullYear();\n const month = String(date.getUTCMonth() + 1).padStart(2, '0');\n const day = String(date.getUTCDate()).padStart(2, '0');\n const hours = String(date.getUTCHours()).padStart(2, '0');\n const minutes = String(date.getUTCMinutes()).padStart(2, '0');\n\n return `${year}/${month}/${day},${hours}:${minutes}`;\n};\n\nconst LogCard: FC<{\n log: LogEntry;\n isLast: boolean;\n showConnector: boolean;\n onClick?: () => void;\n}> = ({ log, isLast, showConnector, onClick }) => {\n return (\n <div className=\"relative\">\n <div\n className={cn(\n 'relative box-border flex w-full items-start gap-3 rounded px-1 py-2',\n 'cursor-pointer transition-colors hover:bg-ods-bg-hover/50',\n )}\n onClick={onClick}\n role=\"button\"\n tabIndex={0}\n onKeyDown={e => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault();\n onClick?.();\n }\n }}\n >\n <LogSeverityDot severity={log.severity} size=\"md\" />\n\n <div className=\"min-w-0 flex-1 space-y-1\">\n <p className=\"text-ods-text-primary text-h6\">{log.title}</p>\n <div className=\"flex items-center gap-2\">\n <p className=\"text-ods-text-secondary text-h5\">{formatTimestamp(log.timestamp)}</p>\n {log.toolType && <ToolIcon toolType={log.toolType} size={16} />}\n </div>\n </div>\n </div>\n\n {showConnector && !isLast && (\n <div\n className=\"absolute left-[15px] w-[2px] bg-ods-border\"\n style={{\n top: '28px',\n bottom: '-10px',\n }}\n aria-hidden=\"true\"\n />\n )}\n </div>\n );\n};\n\nexport const LogsList = forwardRef<HTMLDivElement, LogsListProps>(\n (\n {\n logs,\n maxHeight = '400px',\n showConnector = true,\n onLogClick,\n loading = false,\n emptyMessage = 'No logs to display',\n className,\n },\n ref,\n ) => {\n const containerRef = useRef<HTMLDivElement>(null);\n\n const isFullHeight = maxHeight === '100%';\n\n const getContainerStyles = () => {\n if (isFullHeight) return undefined;\n return { maxHeight, minHeight: '200px' };\n };\n\n const getContainerClasses = () => {\n if (isFullHeight) return 'h-full';\n return '';\n };\n\n if (loading) {\n return (\n <div\n ref={ref}\n className={cn(\n 'rounded-lg border border-ods-border bg-ods-card p-4',\n 'flex items-center justify-center',\n getContainerClasses(),\n className,\n )}\n style={getContainerStyles()}\n >\n <div className=\"text-ods-text-muted text-h6\">Loading logs...</div>\n </div>\n );\n }\n\n if (logs.length === 0) {\n return (\n <div\n ref={ref}\n className={cn(\n 'rounded-lg border border-ods-border bg-ods-card p-4',\n 'flex items-center justify-center',\n getContainerClasses(),\n className,\n )}\n style={getContainerStyles()}\n >\n <div className=\"text-ods-text-muted text-h6\">{emptyMessage}</div>\n </div>\n );\n }\n\n return (\n <div\n ref={ref}\n className={cn(\n 'relative rounded-lg border border-ods-border bg-ods-card',\n 'flex flex-col overflow-hidden',\n getContainerClasses(),\n className,\n )}\n style={getContainerStyles()}\n >\n <div ref={containerRef} className=\"flex-1 overflow-y-auto px-4 py-3\">\n {logs.map((log, index) => (\n <LogCard\n key={log.id}\n log={log}\n isLast={index === logs.length - 1}\n showConnector={showConnector}\n onClick={() => onLogClick?.(log)}\n />\n ))}\n </div>\n </div>\n );\n },\n);\n\nLogsList.displayName = 'LogsList';\n","import { forwardRef } from 'react';\nimport { type LogSeverityDotProps, LOG_SEVERITY_COLORS, LOG_SEVERITY_LABELS } from '../types/logs.types';\nimport { cn } from '../utils/cn';\n\nexport const LogSeverityDot = forwardRef<HTMLDivElement, LogSeverityDotProps>(\n ({ severity, size = 'md', className }, ref) => {\n const sizeClasses = {\n sm: 'w-4 h-4',\n md: 'w-6 h-6',\n lg: 'w-8 h-8',\n };\n\n const dotSizeClasses = {\n sm: 'w-2 h-2',\n md: 'w-3 h-3',\n lg: 'w-4 h-4',\n };\n\n return (\n <div\n ref={ref}\n className={cn('relative flex shrink-0 items-center justify-center', sizeClasses[size], className)}\n aria-label={`${LOG_SEVERITY_LABELS[severity]} severity`}\n >\n <div\n className={cn('rounded-full', dotSizeClasses[size])}\n style={{ backgroundColor: LOG_SEVERITY_COLORS[severity] }}\n />\n </div>\n );\n },\n);\n\nLogSeverityDot.displayName = 'LogSeverityDot';\n","import type { ToolType } from './tool.types';\n\nexport type LogSeverity = 'DEBUG' | 'INFO' | 'WARNING' | 'ERROR' | 'CRITICAL';\n\nexport interface LogEntry {\n id: string;\n ingestDay: string;\n eventType: string;\n severity: LogSeverity;\n title: string;\n timestamp: string | Date;\n toolType?: ToolType;\n toolIcon?: string;\n message?: string;\n metadata?: Record<string, unknown>;\n}\n\nexport interface LogsListProps {\n logs: LogEntry[];\n maxHeight?: string | number;\n showConnector?: boolean;\n onLogClick?: (log: LogEntry) => void;\n loading?: boolean;\n emptyMessage?: string;\n className?: string;\n}\n\nexport interface LogSeverityDotProps {\n severity: LogSeverity;\n size?: 'sm' | 'md' | 'lg';\n className?: string;\n}\n\nexport const LOG_SEVERITY_COLORS: Record<LogSeverity, string> = {\n DEBUG: '#888888',\n INFO: '#888888',\n WARNING: '#e1b32f',\n ERROR: '#f36666',\n CRITICAL: '#b43b3b',\n};\n\nexport const LOG_SEVERITY_LABELS: Record<LogSeverity, string> = {\n DEBUG: 'Debug',\n INFO: 'Info',\n WARNING: 'Warning',\n ERROR: 'Error',\n CRITICAL: 'Critical',\n};\n","// Assets exports\n// Font files and other static assets\n// Platform utilities will be available when needed\n\nexport const assets = {} as const;\nexport * from './fae-avatar';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;AAAA,QACC;AAAA,QACA,WAAW;AAAA,UACT;AAAA,UACA;AAAA,UACA,oBAAoB;AAAA,UACpB;AAAA,QACF;AAAA,QACA,OAAO,mBAAmB;AAAA,QAE1B,0BAAAA,KAAC,SAAI,KAAK,cAAc,WAAU,oCAC/B,eAAK,IAAI,CAAC,KAAK,UACd,gBAAAA;AAAA,UAAC;AAAA;AAAA,YAEC;AAAA,YACA,QAAQ,UAAU,KAAK,SAAS;AAAA,YAChC;AAAA,YACA,SAAS,MAAM,aAAa,GAAG;AAAA;AAAA,UAJ1B,IAAI;AAAA,QAKX,CACD,GACH;AAAA;AAAA,IACF;AAAA,EAEJ;AACF;AAEA,SAAS,cAAc;;;AGxJhB,IAAM,SAAS,CAAC;","names":["forwardRef","jsx","forwardRef"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flamingo-stack/openframe-frontend-core",
3
- "version": "0.0.596",
3
+ "version": "0.0.597-snapshot.20260906135520",
4
4
  "description": "Shared design system and components for all Flamingo platforms",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -6,7 +6,7 @@ import type { NoDataProps } from '../no-data';
6
6
  import { useDataTableContext } from './data-table';
7
7
  import { DataTableEmpty } from './data-table-empty';
8
8
  import { DataTableRow } from './data-table-row';
9
- import { DataTableSkeleton, ROW_HEIGHT_DESKTOP, ROW_HEIGHT_MOBILE, ROW_SHELL_CLASSES } from './data-table-skeleton';
9
+ import { DataTableSkeleton, PlaceholderRows, ReservedEmptyState } from './data-table-skeleton';
10
10
 
11
11
  export interface DataTableBodyProps<T = unknown> {
12
12
  /** Show skeleton rows while `loading` is true and data is empty. */
@@ -117,10 +117,13 @@ export function DataTableBody<T = unknown>({
117
117
  // slots here and center the empty state over them.
118
118
  if (minRows) {
119
119
  return (
120
- <div className={cn('relative flex w-full flex-col gap-[var(--spacing-system-xsf)]', className)}>
121
- <PlaceholderRows count={minRows} rowHeightClassName={rowHeightClassName} />
122
- <div className="absolute inset-0 flex items-center justify-center">{empty}</div>
123
- </div>
120
+ <ReservedEmptyState
121
+ count={minRows}
122
+ gapClassName={cn('gap-[var(--spacing-system-xsf)]', className)}
123
+ rowHeightClassName={rowHeightClassName}
124
+ >
125
+ {empty}
126
+ </ReservedEmptyState>
124
127
  );
125
128
  }
126
129
 
@@ -153,47 +156,3 @@ export function DataTableBody<T = unknown>({
153
156
  </div>
154
157
  );
155
158
  }
156
-
157
- /**
158
- * Invisible rows that occupy exactly one row slot each.
159
- *
160
- * THE height reservation for a table whose page is short or empty — both call
161
- * sites use it, so a padded page and an empty one are the same height by
162
- * construction rather than by two matching guesses.
163
- */
164
- function PlaceholderRows({ count, rowHeightClassName }: { count: number; rowHeightClassName?: string }) {
165
- return (
166
- <>
167
- {Array.from({ length: count }).map((_, i) => (
168
- <div
169
- key={`placeholder-${i}`}
170
- // `border-transparent`, not no border: a real row card draws a 1px
171
- // border on each side, so its outer block is the inner height PLUS 2.
172
- // A pad row without one is 2px shorter than the row it stands in for
173
- // — invisible per row, 54px over a 27-row remainder, which is the
174
- // same shift `minRows` exists to prevent.
175
- className={cn(
176
- 'pointer-events-none relative overflow-hidden rounded-md border border-transparent',
177
- // The stated slot height belongs on the CARD, exactly as a real
178
- // row carries it — a real row with a sub-row is taller than its
179
- // cells, so reserving the cells' height here left every pad row
180
- // short by the sub-row.
181
- rowHeightClassName,
182
- )}
183
- aria-hidden="true"
184
- >
185
- <div
186
- className={cn('hidden py-0 md:flex', ROW_SHELL_CLASSES, rowHeightClassName ? 'h-full' : ROW_HEIGHT_DESKTOP)}
187
- />
188
- <div
189
- className={cn(
190
- 'flex justify-start py-0 md:hidden',
191
- ROW_SHELL_CLASSES,
192
- rowHeightClassName ? 'h-full' : ROW_HEIGHT_MOBILE,
193
- )}
194
- />
195
- </div>
196
- ))}
197
- </>
198
- );
199
- }
@@ -1,5 +1,6 @@
1
1
  'use client';
2
2
 
3
+ import type { ReactNode } from 'react';
3
4
  import { cn } from '../../../utils/cn';
4
5
  import { useDataTableContext } from './data-table';
5
6
  import { getHideClasses } from './utils';
@@ -106,3 +107,102 @@ export function DataTableSkeleton({ rows = 10, className, rowClassName, rowHeigh
106
107
  </>
107
108
  );
108
109
  }
110
+
111
+ /**
112
+ * The empty state, floating centred over a full page's worth of reserved row
113
+ * slots. Both table bodies render this — an empty table is exactly when a
114
+ * collapsing one is most visible (the pagination and everything under it jump
115
+ * the moment a filter matches nothing), and two hand-matched copies of the
116
+ * wrapper would drift the way the two placeholder components already had.
117
+ */
118
+ export function ReservedEmptyState({
119
+ count,
120
+ gapClassName,
121
+ rowHeightClassName,
122
+ innerHeightClassName,
123
+ children,
124
+ }: {
125
+ count: number;
126
+ gapClassName: string;
127
+ rowHeightClassName?: string;
128
+ innerHeightClassName?: string;
129
+ children: ReactNode;
130
+ }) {
131
+ return (
132
+ <div className={cn('relative flex w-full flex-col', gapClassName)}>
133
+ <PlaceholderRows
134
+ count={count}
135
+ rowHeightClassName={rowHeightClassName}
136
+ innerHeightClassName={innerHeightClassName}
137
+ />
138
+ {/* `sticky left-0` + `w-screen max-w-full`: hosts wrap tables in a
139
+ horizontal scroller with a forced min-width, and an overlay centred on
140
+ that CANVAS puts the message off-screen on a phone. This centres it on
141
+ the visible area instead, and collapses to plain centring when the
142
+ table is not wider than its container. */}
143
+ <div className="absolute inset-0 flex items-center">
144
+ <div className="sticky left-0 flex w-screen max-w-full justify-center">{children}</div>
145
+ </div>
146
+ </div>
147
+ );
148
+ }
149
+
150
+ /**
151
+ * Invisible rows that occupy exactly one row slot each.
152
+ *
153
+ * THE height reservation for a table whose page is short or empty — every call
154
+ * site uses it (data-table's pad + empty branches AND the legacy `Table`'s), so
155
+ * a padded page and an empty one are the same height by construction rather
156
+ * than by matching guesses in each component.
157
+ */
158
+ export function PlaceholderRows({
159
+ count,
160
+ rowHeightClassName,
161
+ innerHeightClassName,
162
+ }: {
163
+ count: number;
164
+ /** Height on the CARD, as `DataTableRow` carries it. */
165
+ rowHeightClassName?: string;
166
+ /** Height on the INNER row instead — the legacy `Table` puts it there and
167
+ * lets the card's border add the remaining 2px, so its pad rows must too. */
168
+ innerHeightClassName?: string;
169
+ }) {
170
+ return (
171
+ <>
172
+ {Array.from({ length: count }).map((_, i) => (
173
+ <div
174
+ key={`placeholder-${i}`}
175
+ // `border-transparent`, not no border: a real row card draws a 1px
176
+ // border on each side, so its outer block is the inner height PLUS 2.
177
+ // A pad row without one is 2px shorter than the row it stands in for
178
+ // — invisible per row, 54px over a 27-row remainder, which is the
179
+ // same shift `minRows` exists to prevent.
180
+ className={cn(
181
+ 'pointer-events-none relative overflow-hidden rounded-md border border-transparent',
182
+ // The stated slot height belongs on the CARD, exactly as a real
183
+ // row carries it — a real row with a sub-row is taller than its
184
+ // cells, so reserving the cells' height here left every pad row
185
+ // short by the sub-row.
186
+ rowHeightClassName,
187
+ )}
188
+ aria-hidden="true"
189
+ >
190
+ <div
191
+ className={cn(
192
+ 'hidden py-0 md:flex',
193
+ ROW_SHELL_CLASSES,
194
+ innerHeightClassName ?? (rowHeightClassName ? 'h-full' : ROW_HEIGHT_DESKTOP),
195
+ )}
196
+ />
197
+ <div
198
+ className={cn(
199
+ 'flex justify-start py-0 md:hidden',
200
+ ROW_SHELL_CLASSES,
201
+ innerHeightClassName ?? (rowHeightClassName ? 'h-full' : ROW_HEIGHT_MOBILE),
202
+ )}
203
+ />
204
+ </div>
205
+ ))}
206
+ </>
207
+ );
208
+ }
@@ -128,7 +128,6 @@ export * from './content-loader';
128
128
 
129
129
  // Table components
130
130
  export {
131
- COMPACT_ROW_MIN_HEIGHT_PX,
132
131
  Table,
133
132
  TableCardSkeleton,
134
133
  TableCell,
@@ -8,7 +8,7 @@ export { TableDescriptionCell } from './table-description-cell';
8
8
  export { TableEmptyState } from './table-empty-state';
9
9
  export { TableHeader } from './table-header';
10
10
  export { TableRow } from './table-row';
11
- export { COMPACT_ROW_MIN_HEIGHT_PX, ROW_HEIGHT_DESKTOP, ROW_HEIGHT_MOBILE, TableCardSkeleton } from './table-skeleton';
11
+ export { ROW_HEIGHT_DESKTOP, ROW_HEIGHT_MOBILE, TableCardSkeleton } from './table-skeleton';
12
12
  export { TableTimestampCell } from './table-timestamp-cell';
13
13
  export { getHideClasses, isHiddenOnMobile } from './utils';
14
14
 
@@ -6,15 +6,19 @@ import { NoData } from '../no-data';
6
6
  import type { TableEmptyStateProps } from './types';
7
7
 
8
8
  /** @deprecated Use `DataTableEmpty` from `data-table` instead. */
9
- export function TableEmptyState({ message, icon, action, className }: TableEmptyStateProps) {
9
+ export function TableEmptyState({ message, description, emptyState, icon, action, className }: TableEmptyStateProps) {
10
+ // Two vocabularies, one component. `description` is the shipped single-line
11
+ // prop; `emptyState` is the full NoData bag (icon, title, description,
12
+ // actions) and, spread last, wins over both — exactly as in `DataTableBody`.
10
13
  return (
11
14
  <NoData
12
15
  icon={icon ?? <SearchIcon />}
13
16
  title={message ?? 'No results found'}
14
- description={message == null ? 'Try adjusting your search or filters' : undefined}
17
+ description={description ?? (message == null ? 'Try adjusting your search or filters' : undefined)}
15
18
  buttonLabel={action?.label}
16
19
  onButtonClick={action?.onClick}
17
20
  className={cn('py-[var(--spacing-system-xxl)]', className)}
21
+ {...emptyState}
18
22
  />
19
23
  );
20
24
  }
@@ -9,16 +9,12 @@ const ROW_HEIGHT_DESKTOP = 'h-[66px] md:h-[78px]';
9
9
  /**
10
10
  * A `compact` row's floor. Compact rows are content-sized (`py-2`), but every
11
11
  * row in one table renders the same cell shapes, so pinning a minimum makes the
12
- * body's height a function of the ROW COUNT alone — which is what lets a host
13
- * reserve space for a full page and stop the layout jumping between a full
14
- * page, a short last page and the skeleton. The skeleton uses it too, so the
15
- * loading state is exactly as tall as the rows that replace it.
12
+ * body's height a function of the ROW COUNT alone. Hosts do NOT reserve
13
+ * `rows × 56` themselves any more: `skeletonRows` + `minRows` hold
14
+ * a full page's height in every state (placeholders below), and a cell taller
15
+ * than this floor (avatar + two lines) wants a non-compact, fixed-height row.
16
16
  */
17
17
  const COMPACT_ROW_MIN_HEIGHT = 'min-h-[56px]';
18
- /** The same 56, as a number, for hosts reserving `rows x height` of space.
19
- * A LITERAL class above and a literal number here: an interpolated Tailwind
20
- * class is invisible to the scanner and is never generated. */
21
- const COMPACT_ROW_MIN_HEIGHT_PX = 56;
22
18
  const ROW_HEIGHT_MOBILE = 'h-[66px]';
23
19
 
24
20
  /** @deprecated Use `DataTableSkeleton` from `data-table` instead. */
@@ -84,9 +80,20 @@ export function TableCardSkeleton({
84
80
 
85
81
  {/* Mobile Skeleton */}
86
82
  <div
87
- className={cn('flex items-center justify-start gap-3 px-3 py-0 md:hidden', ROW_HEIGHT_MOBILE, rowClassName)}
83
+ className={cn(
84
+ 'flex items-center justify-start gap-3 px-3 md:hidden',
85
+ // Mirror the real row on mobile too: a compact row is
86
+ // content-sized with a floor, a normal row a fixed height.
87
+ // Hard-wiring ROW_HEIGHT_MOBILE made every COMPACT table jump
88
+ // 68px -> 58px per row when the data replaced the skeleton.
89
+ compact ? cn('py-2', COMPACT_ROW_MIN_HEIGHT) : cn('py-0', ROW_HEIGHT_MOBILE),
90
+ rowClassName,
91
+ )}
88
92
  >
89
- <div className="flex min-w-0 flex-1 flex-col justify-center py-3">
93
+ {/* The inner padding is the NON-compact row's; a compact row is
94
+ sized by its own `py-2` + floor, so adding `py-3` here made the
95
+ compact mobile skeleton 78px against a real row's 58. */}
96
+ <div className={cn('flex min-w-0 flex-1 flex-col justify-center', compact ? 'py-0' : 'py-3')}>
90
97
  <div className="mb-2 h-4 w-3/4 rounded bg-ods-bg-surface" />
91
98
  <div className="h-3 w-1/2 rounded bg-ods-bg-surface opacity-60" />
92
99
  </div>
@@ -100,4 +107,4 @@ export function TableCardSkeleton({
100
107
  }
101
108
 
102
109
  /** @deprecated */
103
- export { COMPACT_ROW_MIN_HEIGHT, COMPACT_ROW_MIN_HEIGHT_PX, ROW_HEIGHT_DESKTOP, ROW_HEIGHT_MOBILE };
110
+ export { COMPACT_ROW_MIN_HEIGHT, ROW_HEIGHT_DESKTOP, ROW_HEIGHT_MOBILE };
@@ -6,10 +6,11 @@ import { Chevron02RightIcon } from '../../icons-v2-generated';
6
6
  import { Pagination } from '../../pagination';
7
7
  import { Button } from '../button';
8
8
  import { CursorPagination } from '../cursor-pagination';
9
+ import { PlaceholderRows, ReservedEmptyState } from '../data-table/data-table-skeleton';
9
10
  import { TableEmptyState } from './table-empty-state';
10
11
  import { TableHeader } from './table-header';
11
12
  import { TableRow } from './table-row';
12
- import { ROW_HEIGHT_DESKTOP, ROW_HEIGHT_MOBILE, TableCardSkeleton } from './table-skeleton';
13
+ import { COMPACT_ROW_MIN_HEIGHT, TableCardSkeleton } from './table-skeleton';
13
14
  import type { RowAction, TableColumn, TableProps, TableRowData } from './types';
14
15
  import { useTableMotion } from './use-table-motion';
15
16
 
@@ -102,6 +103,10 @@ export function Table<T = TableRowData>({
102
103
  loading = false,
103
104
  emptyMessage,
104
105
  skeletonRows = 10,
106
+ minRows,
107
+ emptyState,
108
+ keepHeightWhenEmpty,
109
+ emptyDescription,
105
110
  className,
106
111
  containerClassName,
107
112
  headerClassName,
@@ -134,6 +139,14 @@ export function Table<T = TableRowData>({
134
139
  // ONLY when `animateRowReorder` is set, so the default table stays motion-free.
135
140
  const tableMotion = useTableMotion(Boolean(animateRowReorder));
136
141
  const columnsWithActions = injectSyntheticColumns(columns, rowActions, renderRowActions, rowHref, actionsColumnWidth);
142
+
143
+ // ONE resolution of the two vocabularies, so the render below never asks
144
+ // which spelling the caller used. `minRows` is the current one; the two
145
+ // deprecated props shipped a release earlier and hosts pin exact versions,
146
+ // so they keep working rather than silently doing nothing.
147
+ const reservedRows = minRows ?? (keepHeightWhenEmpty ? skeletonRows : undefined);
148
+ const resolvedEmptyState =
149
+ emptyState ?? (emptyDescription ? { title: emptyMessage, description: emptyDescription } : undefined);
137
150
  const getRowHref = (item: T): string | undefined => {
138
151
  if (onRowClick || !rowHref) return undefined;
139
152
  return rowHref(item) ?? undefined;
@@ -269,7 +282,22 @@ export function Table<T = TableRowData>({
269
282
  hasChevron={Boolean(rowHref)}
270
283
  />
271
284
  ) : data.length === 0 ? (
272
- <TableEmptyState message={emptyMessage} />
285
+ /* `minRows` promises a STABLE height, and an empty table is exactly
286
+ when a collapsing one is most visible — the pagination and
287
+ everything under it jump the moment a filter matches nothing. So
288
+ reserve the same slots and centre the empty state over them,
289
+ identically to `DataTableBody`. */
290
+ reservedRows ? (
291
+ <ReservedEmptyState
292
+ count={reservedRows}
293
+ gapClassName="gap-2"
294
+ innerHeightClassName={compact ? COMPACT_ROW_MIN_HEIGHT : undefined}
295
+ >
296
+ <TableEmptyState message={emptyMessage} emptyState={resolvedEmptyState} />
297
+ </ReservedEmptyState>
298
+ ) : (
299
+ <TableEmptyState message={emptyMessage} emptyState={resolvedEmptyState} />
300
+ )
273
301
  ) : (
274
302
  <>
275
303
  {/* Real data rows. When `animateRowReorder` is on, wrap ONLY these
@@ -312,20 +340,15 @@ export function Table<T = TableRowData>({
312
340
  )}
313
341
  {/* Infinite scroll: sentinel element */}
314
342
  {infiniteScroll?.hasNextPage && <div ref={sentinelRef} className="h-1" aria-hidden="true" />}
315
- {/* 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
- ))}
343
+ {/* Invisible placeholder rows to maintain consistent table height
344
+ (disabled for infinite scroll). `minRows` when the host opted
345
+ in, else the legacy pad-to-`skeletonRows`. */}
346
+ {!infiniteScroll && (
347
+ <PlaceholderRows
348
+ count={Math.max(0, (reservedRows ?? skeletonRows) - data.length)}
349
+ innerHeightClassName={compact ? COMPACT_ROW_MIN_HEIGHT : undefined}
350
+ />
351
+ )}
329
352
  </>
330
353
  )}
331
354
  </div>
@@ -1,4 +1,5 @@
1
1
  import type { ElementType, ReactNode } from 'react';
2
+ import type { NoDataProps } from '../no-data';
2
3
 
3
4
  /** @deprecated Use types from `data-table` instead. */
4
5
  export type TailwindBreakpoint = 'md' | 'lg' | 'xl' | '2xl';
@@ -102,6 +103,39 @@ export interface TableProps<T = TableRowData> {
102
103
 
103
104
  // Skeleton configuration
104
105
  skeletonRows?: number; // Number of skeleton rows to show when loading (default: 10)
106
+ /**
107
+ * Keep the table height stable by padding with invisible rows when the page
108
+ * is short, AND by reserving the same slots (empty state centred over them)
109
+ * when it is empty. Typically the page size. Same name and semantics as
110
+ * `DataTableBodyProps.minRows` — ONE vocabulary across both tables.
111
+ *
112
+ * Unset keeps the legacy behaviour: pad to `skeletonRows`, collapse when empty.
113
+ */
114
+ minRows?: number;
115
+ /** Props for the empty state (`NoData`). Overrides `emptyMessage`. Same shape
116
+ * as `DataTableBodyProps.emptyState`.
117
+ *
118
+ * ONE rule, so tables do not each invent their own: pass `emptyMessage` when
119
+ * a title is all you need, `emptyState` when you also want a description,
120
+ * icon or action — never both. */
121
+ emptyState?: NoDataProps;
122
+ /**
123
+ * @deprecated Pass `minRows` (the page size) instead — one vocabulary with
124
+ * `DataTable`.
125
+ *
126
+ * Kept working, not removed: it shipped in 0.0.597 and hosts pin an exact
127
+ * version, so deleting it would make every consumer on that release silently
128
+ * lose its reserved height with nothing failing loudly. Treated as
129
+ * `minRows = skeletonRows`, which is what every call site meant by it.
130
+ */
131
+ keepHeightWhenEmpty?: boolean;
132
+ /**
133
+ * @deprecated Pass `emptyState={{ title, description }}` instead.
134
+ *
135
+ * Kept working for the same reason as `keepHeightWhenEmpty`. Merged UNDER an
136
+ * explicit `emptyState`, so a caller passing both gets the newer one.
137
+ */
138
+ emptyDescription?: string;
105
139
 
106
140
  // Styling
107
141
  className?: string;
@@ -270,6 +304,12 @@ export interface TableCardSkeletonProps {
270
304
  /** @deprecated Use types from `data-table` instead. */
271
305
  export interface TableEmptyStateProps {
272
306
  message?: string;
307
+ /** Second line under the title. Defaults to the generic search/filter hint
308
+ * only when `message` is also absent. */
309
+ description?: string;
310
+ /** Full `NoData` props — overrides `message` AND `description`. Same shape as
311
+ * `DataTableEmpty`. */
312
+ emptyState?: NoDataProps;
273
313
  icon?: ReactNode;
274
314
  action?: {
275
315
  label: string;