@flamingo-stack/openframe-frontend-core 0.0.616 → 0.0.617-snapshot.20260912211033

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 (151) hide show
  1. package/dist/{chunk-NLKYBYPV.js → chunk-2DTZXXY3.js} +5 -5
  2. package/dist/{chunk-F7R7J4HK.cjs → chunk-3FTNQDLP.cjs} +5 -5
  3. package/dist/{chunk-F7R7J4HK.cjs.map → chunk-3FTNQDLP.cjs.map} +1 -1
  4. package/dist/{chunk-JYHDJD3U.js → chunk-5P74E24M.js} +5 -5
  5. package/dist/{chunk-BLUL2TE3.js → chunk-6XJS3WU7.js} +2 -2
  6. package/dist/{chunk-QPAPUIF3.cjs → chunk-7ZEQMFP3.cjs} +30 -30
  7. package/dist/{chunk-QPAPUIF3.cjs.map → chunk-7ZEQMFP3.cjs.map} +1 -1
  8. package/dist/{chunk-OKWHWDA3.js → chunk-ANMD7SM4.js} +3 -3
  9. package/dist/{chunk-TDA355L7.cjs → chunk-BGDYSUA2.cjs} +11 -11
  10. package/dist/{chunk-TDA355L7.cjs.map → chunk-BGDYSUA2.cjs.map} +1 -1
  11. package/dist/{chunk-X6G7JIX6.cjs → chunk-BXNSKTEG.cjs} +57 -57
  12. package/dist/{chunk-X6G7JIX6.cjs.map → chunk-BXNSKTEG.cjs.map} +1 -1
  13. package/dist/{chunk-N3G3YG3V.cjs → chunk-CM6DNLK7.cjs} +579 -471
  14. package/dist/chunk-CM6DNLK7.cjs.map +1 -0
  15. package/dist/{chunk-TOAJWB3V.js → chunk-CWMKY2UJ.js} +3 -3
  16. package/dist/{chunk-UQEOAPAI.cjs → chunk-E2EGTHYA.cjs} +28 -12
  17. package/dist/chunk-E2EGTHYA.cjs.map +1 -0
  18. package/dist/{chunk-YSG26SQ7.cjs → chunk-E7VXPU3R.cjs} +33 -33
  19. package/dist/{chunk-YSG26SQ7.cjs.map → chunk-E7VXPU3R.cjs.map} +1 -1
  20. package/dist/{chunk-TOXJS4HN.cjs → chunk-EJGZIYC7.cjs} +6 -6
  21. package/dist/{chunk-TOXJS4HN.cjs.map → chunk-EJGZIYC7.cjs.map} +1 -1
  22. package/dist/{chunk-NLYWRJ6J.cjs → chunk-EXEXX34Q.cjs} +28 -28
  23. package/dist/{chunk-NLYWRJ6J.cjs.map → chunk-EXEXX34Q.cjs.map} +1 -1
  24. package/dist/{chunk-FP5WYJ3S.js → chunk-FCN2HN6Q.js} +2 -2
  25. package/dist/{chunk-KIQNMCOO.cjs → chunk-G7NEMLNW.cjs} +10 -10
  26. package/dist/{chunk-KIQNMCOO.cjs.map → chunk-G7NEMLNW.cjs.map} +1 -1
  27. package/dist/{chunk-4C3BOBV6.js → chunk-GD7CV2JI.js} +6 -6
  28. package/dist/{chunk-KKYE3E66.js → chunk-GFWKEWEH.js} +4 -4
  29. package/dist/{chunk-RU3IKVY2.js → chunk-GXUGYZ6H.js} +27 -11
  30. package/dist/chunk-GXUGYZ6H.js.map +1 -0
  31. package/dist/{chunk-FBL32U6S.cjs → chunk-IDMEC4ZK.cjs} +22 -22
  32. package/dist/{chunk-FBL32U6S.cjs.map → chunk-IDMEC4ZK.cjs.map} +1 -1
  33. package/dist/{chunk-646YZIUK.js → chunk-IPHA3AQ6.js} +7 -7
  34. package/dist/{chunk-A6ZMLRBR.js → chunk-J25M43YI.js} +6 -6
  35. package/dist/{chunk-RJT7I2Y4.cjs → chunk-K26VN65M.cjs} +15 -15
  36. package/dist/{chunk-RJT7I2Y4.cjs.map → chunk-K26VN65M.cjs.map} +1 -1
  37. package/dist/{chunk-5WHUUHSH.cjs → chunk-MOC7JLEP.cjs} +80 -80
  38. package/dist/{chunk-5WHUUHSH.cjs.map → chunk-MOC7JLEP.cjs.map} +1 -1
  39. package/dist/{chunk-TWE6KYQM.js → chunk-NUU5ZEEG.js} +4 -4
  40. package/dist/{chunk-GHMTJJCC.cjs → chunk-PIJK3FV6.cjs} +3 -3
  41. package/dist/{chunk-GHMTJJCC.cjs.map → chunk-PIJK3FV6.cjs.map} +1 -1
  42. package/dist/{chunk-L6UVTIJP.cjs → chunk-RDEFB354.cjs} +6 -6
  43. package/dist/{chunk-L6UVTIJP.cjs.map → chunk-RDEFB354.cjs.map} +1 -1
  44. package/dist/{chunk-7GLJC4EO.cjs → chunk-ROQTWRV7.cjs} +145 -145
  45. package/dist/{chunk-7GLJC4EO.cjs.map → chunk-ROQTWRV7.cjs.map} +1 -1
  46. package/dist/{chunk-L3H6VYDB.js → chunk-RROIA6WY.js} +2 -2
  47. package/dist/{chunk-H6TOSMGU.cjs → chunk-U6B3MM4U.cjs} +20 -20
  48. package/dist/{chunk-H6TOSMGU.cjs.map → chunk-U6B3MM4U.cjs.map} +1 -1
  49. package/dist/{chunk-BESOUYM7.cjs → chunk-UKFBPJBK.cjs} +29 -29
  50. package/dist/{chunk-BESOUYM7.cjs.map → chunk-UKFBPJBK.cjs.map} +1 -1
  51. package/dist/{chunk-RRGQTQ6T.js → chunk-UUXLDIK3.js} +3 -3
  52. package/dist/{chunk-UMVCVMCG.js → chunk-VRN5YYD3.js} +3 -3
  53. package/dist/{chunk-XJ5KH37F.js → chunk-WVRXDGGP.js} +3 -3
  54. package/dist/{chunk-HIMST6NK.js → chunk-XUNFDRMP.js} +3 -3
  55. package/dist/{chunk-AJRHEX5D.js → chunk-YCZBCEQO.js} +2577 -2469
  56. package/dist/chunk-YCZBCEQO.js.map +1 -0
  57. package/dist/components/case-studies/index.cjs +10 -10
  58. package/dist/components/case-studies/index.js +4 -4
  59. package/dist/components/chat/index.cjs +3 -3
  60. package/dist/components/chat/index.js +2 -2
  61. package/dist/components/contact/index.cjs +5 -5
  62. package/dist/components/contact/index.js +4 -4
  63. package/dist/components/docs/index.cjs +8 -8
  64. package/dist/components/docs/index.js +7 -7
  65. package/dist/components/embeds/index.cjs +5 -5
  66. package/dist/components/embeds/index.js +4 -4
  67. package/dist/components/faq/index.cjs +5 -5
  68. package/dist/components/faq/index.js +4 -4
  69. package/dist/components/features/index.cjs +4 -4
  70. package/dist/components/features/index.js +3 -3
  71. package/dist/components/help-center-pages/index.cjs +24 -24
  72. package/dist/components/help-center-pages/index.js +15 -15
  73. package/dist/components/index.cjs +57 -53
  74. package/dist/components/index.cjs.map +1 -1
  75. package/dist/components/index.js +19 -15
  76. package/dist/components/index.js.map +1 -1
  77. package/dist/components/meeting-scheduler/index.cjs +34 -34
  78. package/dist/components/meeting-scheduler/index.cjs.map +1 -1
  79. package/dist/components/meeting-scheduler/index.js +5 -5
  80. package/dist/components/meeting-scheduler/index.js.map +1 -1
  81. package/dist/components/navigation/index.cjs +7 -7
  82. package/dist/components/navigation/index.js +6 -6
  83. package/dist/components/onboarding-guides/index.cjs +7 -7
  84. package/dist/components/onboarding-guides/index.js +6 -6
  85. package/dist/components/related-content/index.cjs +3 -3
  86. package/dist/components/related-content/index.js +2 -2
  87. package/dist/components/tickets/index.cjs +8 -8
  88. package/dist/components/tickets/index.js +7 -7
  89. package/dist/components/ui/avatar-stack.d.ts +16 -3
  90. package/dist/components/ui/avatar-stack.d.ts.map +1 -1
  91. package/dist/components/ui/data-table/data-table-header.d.ts +9 -1
  92. package/dist/components/ui/data-table/data-table-header.d.ts.map +1 -1
  93. package/dist/components/ui/data-table/types.d.ts +9 -0
  94. package/dist/components/ui/data-table/types.d.ts.map +1 -1
  95. package/dist/components/ui/index.cjs +8 -4
  96. package/dist/components/ui/index.cjs.map +1 -1
  97. package/dist/components/ui/index.d.ts +1 -0
  98. package/dist/components/ui/index.d.ts.map +1 -1
  99. package/dist/components/ui/index.js +7 -3
  100. package/dist/components/ui/people-cell.d.ts +46 -0
  101. package/dist/components/ui/people-cell.d.ts.map +1 -0
  102. package/dist/components/ui/table/table-header.d.ts.map +1 -1
  103. package/dist/components/ui/table/types.d.ts +7 -0
  104. package/dist/components/ui/table/types.d.ts.map +1 -1
  105. package/dist/index.cjs +14 -8
  106. package/dist/index.cjs.map +1 -1
  107. package/dist/index.js +13 -7
  108. package/dist/index.js.map +1 -1
  109. package/dist/utils/format.d.ts +8 -0
  110. package/dist/utils/format.d.ts.map +1 -1
  111. package/dist/utils/index.cjs +5 -0
  112. package/dist/utils/index.cjs.map +1 -1
  113. package/dist/utils/index.d.ts +1 -1
  114. package/dist/utils/index.d.ts.map +1 -1
  115. package/dist/utils/index.js +5 -1
  116. package/dist/utils/index.js.map +1 -1
  117. package/package.json +1 -1
  118. package/src/__tests__/data-table-header-hint.test.tsx +69 -0
  119. package/src/components/meeting-scheduler/context-panel.tsx +1 -1
  120. package/src/components/meeting-scheduler/directory.tsx +1 -1
  121. package/src/components/ui/__tests__/people-cell.test.tsx +97 -0
  122. package/src/components/ui/avatar-stack.tsx +40 -13
  123. package/src/components/ui/data-table/data-table-header.tsx +47 -11
  124. package/src/components/ui/data-table/types.ts +9 -0
  125. package/src/components/ui/index.ts +1 -0
  126. package/src/components/ui/people-cell.tsx +133 -0
  127. package/src/components/ui/table/__tests__/header-hint.test.tsx +85 -0
  128. package/src/components/ui/table/table-header.tsx +34 -9
  129. package/src/components/ui/table/types.ts +7 -0
  130. package/src/utils/format.ts +13 -0
  131. package/src/utils/index.ts +1 -0
  132. package/dist/chunk-AJRHEX5D.js.map +0 -1
  133. package/dist/chunk-N3G3YG3V.cjs.map +0 -1
  134. package/dist/chunk-RU3IKVY2.js.map +0 -1
  135. package/dist/chunk-UQEOAPAI.cjs.map +0 -1
  136. /package/dist/{chunk-NLKYBYPV.js.map → chunk-2DTZXXY3.js.map} +0 -0
  137. /package/dist/{chunk-JYHDJD3U.js.map → chunk-5P74E24M.js.map} +0 -0
  138. /package/dist/{chunk-BLUL2TE3.js.map → chunk-6XJS3WU7.js.map} +0 -0
  139. /package/dist/{chunk-OKWHWDA3.js.map → chunk-ANMD7SM4.js.map} +0 -0
  140. /package/dist/{chunk-TOAJWB3V.js.map → chunk-CWMKY2UJ.js.map} +0 -0
  141. /package/dist/{chunk-FP5WYJ3S.js.map → chunk-FCN2HN6Q.js.map} +0 -0
  142. /package/dist/{chunk-4C3BOBV6.js.map → chunk-GD7CV2JI.js.map} +0 -0
  143. /package/dist/{chunk-KKYE3E66.js.map → chunk-GFWKEWEH.js.map} +0 -0
  144. /package/dist/{chunk-646YZIUK.js.map → chunk-IPHA3AQ6.js.map} +0 -0
  145. /package/dist/{chunk-A6ZMLRBR.js.map → chunk-J25M43YI.js.map} +0 -0
  146. /package/dist/{chunk-TWE6KYQM.js.map → chunk-NUU5ZEEG.js.map} +0 -0
  147. /package/dist/{chunk-L3H6VYDB.js.map → chunk-RROIA6WY.js.map} +0 -0
  148. /package/dist/{chunk-RRGQTQ6T.js.map → chunk-UUXLDIK3.js.map} +0 -0
  149. /package/dist/{chunk-UMVCVMCG.js.map → chunk-VRN5YYD3.js.map} +0 -0
  150. /package/dist/{chunk-XJ5KH37F.js.map → chunk-WVRXDGGP.js.map} +0 -0
  151. /package/dist/{chunk-HIMST6NK.js.map → chunk-XUNFDRMP.js.map} +0 -0
@@ -6,8 +6,12 @@ import { Arrow01DownIcon } from '../../icons-v2-generated/arrows/arrow-01-down-i
6
6
  import { Arrow01UpIcon } from '../../icons-v2-generated/arrows/arrow-01-up-icon';
7
7
  import { SwitchVrIcon } from '../../icons-v2-generated/arrows/switch-vr-icon';
8
8
  import { Checkbox } from '../checkbox';
9
+ import { InfoHint } from '../info-hint';
9
10
  import { TableColumnFilterDropdown } from './table-column-filter-dropdown';
10
11
  import type { TableColumn, TableHeaderProps, TableRowData } from './types';
12
+
13
+ /** The default header label: wraps inside its cell with a balanced split. */
14
+ const TABLE_HEADER_LABEL_CLASS = 'min-w-0 text-balance uppercase text-ods-text-secondary text-h5';
11
15
  import { getHideClasses } from './utils';
12
16
 
13
17
  /** @deprecated Use `DataTableHeader` from `data-table` instead. */
@@ -120,18 +124,23 @@ export function TableHeader<T = TableRowData>({
120
124
  )
121
125
  ) : column.filterable && column.filterOptions && onFilterChange ? (
122
126
  /* Filterable column — label + icon are both inside the dropdown trigger */
123
- <TableColumnFilterDropdown
124
- columnKey={column.key}
125
- columnLabel={column.label}
126
- filterOptions={column.filterOptions}
127
- filters={filters}
128
- onFilterChange={onFilterChange}
129
- />
127
+ <>
128
+ <TableColumnFilterDropdown
129
+ columnKey={column.key}
130
+ columnLabel={column.label}
131
+ filterOptions={column.filterOptions}
132
+ filters={filters}
133
+ onFilterChange={onFilterChange}
134
+ />
135
+ {column.hint ? <InfoHint label={column.label}>{column.hint}</InfoHint> : null}
136
+ </>
130
137
  ) : (
131
138
  /* Non-filterable column — regular label with optional sort */
132
139
  <div
133
140
  className={cn(
134
- 'flex items-center gap-2',
141
+ // `min-w-0` lets the row shrink to its column, so a long label
142
+ // wraps inside the cell instead of forcing the row past it.
143
+ 'flex min-w-0 items-center gap-2',
135
144
  column.sortable && 'cursor-pointer transition-colors hover:text-ods-text-primary',
136
145
  )}
137
146
  onClick={() => handleSort(column)}
@@ -143,7 +152,23 @@ export function TableHeader<T = TableRowData>({
143
152
  </>
144
153
  ) : (
145
154
  <>
146
- <span className="whitespace-nowrap uppercase text-ods-text-secondary text-h5">{column.label}</span>
155
+ {/* Wraps inside the cell, with a BALANCED split — "IMPLEMENTATION
156
+ / OWNERS", never one word stranded on a line of its own. A
157
+ nowrapped label longer than its column paints straight
158
+ across the next column's header. */}
159
+ {column.hint ? (
160
+ /* The hint sits in a LABEL GROUP with the text, pinned to the
161
+ FIRST line (`items-start`): on a label that breaks onto a
162
+ second line it reads beside the opening word instead of
163
+ floating in the gap between the two. Added only when a
164
+ hint exists, so a hint-less header keeps its DOM. */
165
+ <span className="flex min-w-0 items-start gap-[var(--spacing-system-xxs)]">
166
+ <span className={TABLE_HEADER_LABEL_CLASS}>{column.label}</span>
167
+ <InfoHint label={column.label}>{column.hint}</InfoHint>
168
+ </span>
169
+ ) : (
170
+ <span className={TABLE_HEADER_LABEL_CLASS}>{column.label}</span>
171
+ )}
147
172
  {getSortIcon(column)}
148
173
  </>
149
174
  )}
@@ -22,6 +22,13 @@ export interface TableColumn<T = TableRowData> {
22
22
  hideAt?: TailwindBreakpoint | TailwindBreakpoint[];
23
23
  renderCell?: (item: T, column: TableColumn<T>) => ReactNode;
24
24
  renderHeader?: () => ReactNode;
25
+ /**
26
+ * A definition shown in an `InfoHint` beside the header label. The header
27
+ * owns the icon, spacing and accessible name, so a column never needs a
28
+ * hand-rolled `renderHeader` just to explain itself. Ignored when
29
+ * `renderHeader` is set — a custom header owns its whole contents.
30
+ */
31
+ hint?: ReactNode;
25
32
  className?: string;
26
33
  // Sorting
27
34
  sortKey?: string;
@@ -207,6 +207,19 @@ export function personInitials(name?: string | null): string {
207
207
  return nameInitials(name, '', { pick: 'first-last' });
208
208
  }
209
209
 
210
+ /**
211
+ * A PERSON's first name: the first whitespace-delimited word, or `fallback`
212
+ * (default `null`) when there is nothing usable. THE named first-name policy,
213
+ * beside `personInitials`, so a greeting, a byline and a people cell agree on
214
+ * leading whitespace and on an empty name.
215
+ */
216
+ export function personFirstName(name: string | null | undefined): string | null;
217
+ export function personFirstName(name: string | null | undefined, fallback: string): string;
218
+ export function personFirstName(name: string | null | undefined, fallback: string | null = null): string | null {
219
+ const first = (typeof name === 'string' ? name.trim() : '').split(/\s+/)[0];
220
+ return first || fallback;
221
+ }
222
+
210
223
  /** A single leading letter, `?` when there is no name. THE named one-letter policy. */
211
224
  export function singleInitial(name?: string | null): string {
212
225
  return nameInitials(name, '?', { maxLetters: 1 });
@@ -132,6 +132,7 @@ export {
132
132
  formatLargeNumber,
133
133
  formatAbbreviatedNumber,
134
134
  nameInitials,
135
+ personFirstName,
135
136
  personInitials,
136
137
  singleInitial,
137
138
  formatDurationMMSS,