@flamingo-stack/openframe-frontend-core 0.0.338 → 0.0.339-snapshot.20260630004216

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 (96) hide show
  1. package/dist/{chunk-FNPF5OQS.cjs → chunk-4K2M2WC4.cjs} +26 -26
  2. package/dist/{chunk-FNPF5OQS.cjs.map → chunk-4K2M2WC4.cjs.map} +1 -1
  3. package/dist/{chunk-JI7EPGRA.js → chunk-53MGSWCC.js} +4 -4
  4. package/dist/{chunk-FGVYJPT4.js → chunk-573LTCRV.js} +2 -2
  5. package/dist/{chunk-GOTCZBP2.js → chunk-7TENQYAJ.js} +2 -2
  6. package/dist/{chunk-IJ2OYHRH.cjs → chunk-BMSJTLGO.cjs} +12 -12
  7. package/dist/{chunk-IJ2OYHRH.cjs.map → chunk-BMSJTLGO.cjs.map} +1 -1
  8. package/dist/{chunk-IBCTHO3A.cjs → chunk-DFFOCQFO.cjs} +5 -5
  9. package/dist/{chunk-IBCTHO3A.cjs.map → chunk-DFFOCQFO.cjs.map} +1 -1
  10. package/dist/{chunk-RSA7DPZN.cjs → chunk-DRO773DG.cjs} +56 -56
  11. package/dist/{chunk-RSA7DPZN.cjs.map → chunk-DRO773DG.cjs.map} +1 -1
  12. package/dist/{chunk-2FDRZIX2.cjs → chunk-ERMMMQET.cjs} +683 -632
  13. package/dist/chunk-ERMMMQET.cjs.map +1 -0
  14. package/dist/{chunk-RLHOSQ7X.cjs → chunk-EXFHHZ2C.cjs} +9 -9
  15. package/dist/{chunk-RLHOSQ7X.cjs.map → chunk-EXFHHZ2C.cjs.map} +1 -1
  16. package/dist/{chunk-GFBCUSFN.js → chunk-GGFJ5OQ3.js} +4 -4
  17. package/dist/{chunk-YHDF4WMG.cjs → chunk-HVYR323G.cjs} +15 -15
  18. package/dist/{chunk-YHDF4WMG.cjs.map → chunk-HVYR323G.cjs.map} +1 -1
  19. package/dist/{chunk-HI367AS3.js → chunk-KE2PMD6A.js} +2 -2
  20. package/dist/{chunk-QJR7QLNW.cjs → chunk-L6YX6D26.cjs} +31 -31
  21. package/dist/{chunk-QJR7QLNW.cjs.map → chunk-L6YX6D26.cjs.map} +1 -1
  22. package/dist/{chunk-HKBV4OJK.js → chunk-MNLQMAY3.js} +2 -2
  23. package/dist/{chunk-3BWH262F.js → chunk-NC3DJLP5.js} +4 -4
  24. package/dist/{chunk-BG44XQB2.js → chunk-NDHQG4I4.js} +90 -39
  25. package/dist/chunk-NDHQG4I4.js.map +1 -0
  26. package/dist/{chunk-N7MH2OSW.js → chunk-OVN265XQ.js} +2 -2
  27. package/dist/{chunk-IVY5R6L2.cjs → chunk-SIK5LBUN.cjs} +25 -25
  28. package/dist/{chunk-IVY5R6L2.cjs.map → chunk-SIK5LBUN.cjs.map} +1 -1
  29. package/dist/{chunk-DPU7VTTV.js → chunk-T4SW6GOR.js} +4 -4
  30. package/dist/{chunk-A4X3DZSS.js → chunk-TOMTBXM7.js} +2 -2
  31. package/dist/{chunk-DPFJPCFL.cjs → chunk-TVCBMR3N.cjs} +7 -7
  32. package/dist/{chunk-DPFJPCFL.cjs.map → chunk-TVCBMR3N.cjs.map} +1 -1
  33. package/dist/{chunk-FDKTAOEO.cjs → chunk-VA3GDVOV.cjs} +37 -37
  34. package/dist/{chunk-FDKTAOEO.cjs.map → chunk-VA3GDVOV.cjs.map} +1 -1
  35. package/dist/{chunk-IOEGV4DP.js → chunk-W7J46YKF.js} +2 -2
  36. package/dist/{chunk-Y2VDAVIX.cjs → chunk-YEB5Z76W.cjs} +62 -62
  37. package/dist/{chunk-Y2VDAVIX.cjs.map → chunk-YEB5Z76W.cjs.map} +1 -1
  38. package/dist/components/case-studies/index.cjs +8 -8
  39. package/dist/components/case-studies/index.js +2 -2
  40. package/dist/components/chat/chat-quick-action-row.d.ts +5 -0
  41. package/dist/components/chat/chat-quick-action-row.d.ts.map +1 -1
  42. package/dist/components/chat/guide-welcome.d.ts +6 -1
  43. package/dist/components/chat/guide-welcome.d.ts.map +1 -1
  44. package/dist/components/chat/index.cjs +2 -2
  45. package/dist/components/chat/index.js +1 -1
  46. package/dist/components/contact/index.cjs +3 -3
  47. package/dist/components/contact/index.js +2 -2
  48. package/dist/components/docs/index.cjs +5 -5
  49. package/dist/components/docs/index.js +4 -4
  50. package/dist/components/embeds/index.cjs +3 -3
  51. package/dist/components/embeds/index.js +2 -2
  52. package/dist/components/faq/index.cjs +3 -3
  53. package/dist/components/faq/index.js +2 -2
  54. package/dist/components/features/index.cjs +2 -2
  55. package/dist/components/features/index.js +1 -1
  56. package/dist/components/help-center-pages/index.cjs +20 -20
  57. package/dist/components/help-center-pages/index.js +11 -11
  58. package/dist/components/index.cjs +121 -121
  59. package/dist/components/index.js +9 -9
  60. package/dist/components/layout/page-layout.d.ts +6 -1
  61. package/dist/components/layout/page-layout.d.ts.map +1 -1
  62. package/dist/components/layout/title-block.d.ts +8 -1
  63. package/dist/components/layout/title-block.d.ts.map +1 -1
  64. package/dist/components/navigation/index.cjs +2 -2
  65. package/dist/components/navigation/index.js +1 -1
  66. package/dist/components/onboarding-guides/index.cjs +5 -5
  67. package/dist/components/onboarding-guides/index.js +4 -4
  68. package/dist/components/related-content/index.cjs +3 -3
  69. package/dist/components/related-content/index.js +2 -2
  70. package/dist/components/tickets/index.cjs +5 -5
  71. package/dist/components/tickets/index.js +4 -4
  72. package/dist/components/ui/index.cjs +2 -2
  73. package/dist/components/ui/index.js +1 -1
  74. package/dist/components/ui/info-card.d.ts.map +1 -1
  75. package/dist/index.cjs +2 -2
  76. package/dist/index.js +1 -1
  77. package/package.json +1 -1
  78. package/src/components/chat/chat-quick-action-row.tsx +9 -0
  79. package/src/components/chat/embeddable-chat.tsx +24 -3
  80. package/src/components/chat/guide-welcome.tsx +10 -1
  81. package/src/components/layout/page-layout.tsx +10 -1
  82. package/src/components/layout/title-block.tsx +56 -5
  83. package/src/components/ui/info-card.tsx +55 -41
  84. package/dist/chunk-2FDRZIX2.cjs.map +0 -1
  85. package/dist/chunk-BG44XQB2.js.map +0 -1
  86. /package/dist/{chunk-JI7EPGRA.js.map → chunk-53MGSWCC.js.map} +0 -0
  87. /package/dist/{chunk-FGVYJPT4.js.map → chunk-573LTCRV.js.map} +0 -0
  88. /package/dist/{chunk-GOTCZBP2.js.map → chunk-7TENQYAJ.js.map} +0 -0
  89. /package/dist/{chunk-GFBCUSFN.js.map → chunk-GGFJ5OQ3.js.map} +0 -0
  90. /package/dist/{chunk-HI367AS3.js.map → chunk-KE2PMD6A.js.map} +0 -0
  91. /package/dist/{chunk-HKBV4OJK.js.map → chunk-MNLQMAY3.js.map} +0 -0
  92. /package/dist/{chunk-3BWH262F.js.map → chunk-NC3DJLP5.js.map} +0 -0
  93. /package/dist/{chunk-N7MH2OSW.js.map → chunk-OVN265XQ.js.map} +0 -0
  94. /package/dist/{chunk-DPU7VTTV.js.map → chunk-T4SW6GOR.js.map} +0 -0
  95. /package/dist/{chunk-A4X3DZSS.js.map → chunk-TOMTBXM7.js.map} +0 -0
  96. /package/dist/{chunk-IOEGV4DP.js.map → chunk-W7J46YKF.js.map} +0 -0
@@ -55,52 +55,66 @@ export function InfoCard({ data, className = '' }: InfoCardProps) {
55
55
  className,
56
56
  )}
57
57
  >
58
- <div className="p-[var(--spacing-system-m)] flex flex-col gap-[var(--spacing-system-s)] items-start w-full">
59
- {data.title && (
60
- <div className="flex items-center gap-[var(--spacing-system-xsf)] self-stretch h-6">
61
- <span className="text-h4 text-ods-text-primary truncate" title={data.title}>
62
- {data.title}
63
- </span>
64
- {data.icon}
65
- </div>
66
- )}
67
-
68
- {/* Subtitle */}
69
- {data.subtitle && (
70
- <div className="text-h4 text-ods-text-secondary truncate self-stretch" title={data.subtitle}>
71
- {data.subtitle}
58
+ {/* Header (title + subtitle) and body (rows + progress) are two groups separated by
59
+ `gap-l`; the title/subtitle stack tightly and the rows use `gap-xs` — matching the ODS
60
+ "Info-card" design. With no title/subtitle, the body is the only group. */}
61
+ <div className="p-[var(--spacing-system-m)] flex flex-col gap-[var(--spacing-system-l)] items-start w-full">
62
+ {(data.title || data.subtitle) && (
63
+ <div className="flex flex-col items-start self-stretch w-full">
64
+ {data.title && (
65
+ <div className="flex items-center gap-[var(--spacing-system-xsf)] self-stretch">
66
+ <span className="text-h4 text-ods-text-primary truncate min-w-0" title={data.title}>
67
+ {data.title}
68
+ </span>
69
+ {data.icon}
70
+ </div>
71
+ )}
72
+ {data.subtitle && (
73
+ <div className="flex items-center gap-[var(--spacing-system-xsf)] self-stretch">
74
+ <span className="text-h4 text-ods-text-secondary truncate min-w-0" title={data.subtitle}>
75
+ {data.subtitle}
76
+ </span>
77
+ {/* Icon lives with the title when present; otherwise it falls to the subtitle so
78
+ subtitle-only cards still render it. */}
79
+ {!data.title && data.icon}
80
+ </div>
81
+ )}
72
82
  </div>
73
83
  )}
74
84
 
75
- {/* Info items */}
76
- {data.items.map((item, index) => {
77
- const values = Array.isArray(item.value) ? item.value : [item.value]
85
+ {(data.items.length > 0 || data.progress) && (
86
+ <div className="flex flex-col gap-[var(--spacing-system-xs)] items-start self-stretch w-full">
87
+ {/* Info items */}
88
+ {data.items.map((item, index) => {
89
+ const values = Array.isArray(item.value) ? item.value : [item.value]
78
90
 
79
- return (
80
- <React.Fragment key={index}>
81
- {values.map((val, valIndex) => (
82
- <InfoCardValueRow
83
- key={`${index}-${valIndex}`}
84
- label={item.label}
85
- value={val}
86
- showLabel={valIndex === 0}
87
- copyable={item.copyable}
88
- icon={valIndex === 0 ? item.icon : undefined}
89
- copyAriaLabel={`Copy ${item.label ?? 'value'} ${valIndex + 1}`}
90
- />
91
- ))}
92
- </React.Fragment>
93
- )
94
- })}
91
+ return (
92
+ <React.Fragment key={index}>
93
+ {values.map((val, valIndex) => (
94
+ <InfoCardValueRow
95
+ key={`${index}-${valIndex}`}
96
+ label={item.label}
97
+ value={val}
98
+ showLabel={valIndex === 0}
99
+ copyable={item.copyable}
100
+ icon={valIndex === 0 ? item.icon : undefined}
101
+ copyAriaLabel={`Copy ${item.label ?? 'value'} ${valIndex + 1}`}
102
+ />
103
+ ))}
104
+ </React.Fragment>
105
+ )
106
+ })}
95
107
 
96
- {/* Progress bar */}
97
- {data.progress && (
98
- <ProgressBar
99
- progress={data.progress.value}
100
- warningThreshold={data.progress.warningThreshold}
101
- criticalThreshold={data.progress.criticalThreshold}
102
- inverted={data.progress.inverted}
103
- />
108
+ {/* Progress bar */}
109
+ {data.progress && (
110
+ <ProgressBar
111
+ progress={data.progress.value}
112
+ warningThreshold={data.progress.warningThreshold}
113
+ criticalThreshold={data.progress.criticalThreshold}
114
+ inverted={data.progress.inverted}
115
+ />
116
+ )}
117
+ </div>
104
118
  )}
105
119
  </div>
106
120