@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.
- package/dist/{chunk-NLKYBYPV.js → chunk-2DTZXXY3.js} +5 -5
- package/dist/{chunk-F7R7J4HK.cjs → chunk-3FTNQDLP.cjs} +5 -5
- package/dist/{chunk-F7R7J4HK.cjs.map → chunk-3FTNQDLP.cjs.map} +1 -1
- package/dist/{chunk-JYHDJD3U.js → chunk-5P74E24M.js} +5 -5
- package/dist/{chunk-BLUL2TE3.js → chunk-6XJS3WU7.js} +2 -2
- package/dist/{chunk-QPAPUIF3.cjs → chunk-7ZEQMFP3.cjs} +30 -30
- package/dist/{chunk-QPAPUIF3.cjs.map → chunk-7ZEQMFP3.cjs.map} +1 -1
- package/dist/{chunk-OKWHWDA3.js → chunk-ANMD7SM4.js} +3 -3
- package/dist/{chunk-TDA355L7.cjs → chunk-BGDYSUA2.cjs} +11 -11
- package/dist/{chunk-TDA355L7.cjs.map → chunk-BGDYSUA2.cjs.map} +1 -1
- package/dist/{chunk-X6G7JIX6.cjs → chunk-BXNSKTEG.cjs} +57 -57
- package/dist/{chunk-X6G7JIX6.cjs.map → chunk-BXNSKTEG.cjs.map} +1 -1
- package/dist/{chunk-N3G3YG3V.cjs → chunk-CM6DNLK7.cjs} +579 -471
- package/dist/chunk-CM6DNLK7.cjs.map +1 -0
- package/dist/{chunk-TOAJWB3V.js → chunk-CWMKY2UJ.js} +3 -3
- package/dist/{chunk-UQEOAPAI.cjs → chunk-E2EGTHYA.cjs} +28 -12
- package/dist/chunk-E2EGTHYA.cjs.map +1 -0
- package/dist/{chunk-YSG26SQ7.cjs → chunk-E7VXPU3R.cjs} +33 -33
- package/dist/{chunk-YSG26SQ7.cjs.map → chunk-E7VXPU3R.cjs.map} +1 -1
- package/dist/{chunk-TOXJS4HN.cjs → chunk-EJGZIYC7.cjs} +6 -6
- package/dist/{chunk-TOXJS4HN.cjs.map → chunk-EJGZIYC7.cjs.map} +1 -1
- package/dist/{chunk-NLYWRJ6J.cjs → chunk-EXEXX34Q.cjs} +28 -28
- package/dist/{chunk-NLYWRJ6J.cjs.map → chunk-EXEXX34Q.cjs.map} +1 -1
- package/dist/{chunk-FP5WYJ3S.js → chunk-FCN2HN6Q.js} +2 -2
- package/dist/{chunk-KIQNMCOO.cjs → chunk-G7NEMLNW.cjs} +10 -10
- package/dist/{chunk-KIQNMCOO.cjs.map → chunk-G7NEMLNW.cjs.map} +1 -1
- package/dist/{chunk-4C3BOBV6.js → chunk-GD7CV2JI.js} +6 -6
- package/dist/{chunk-KKYE3E66.js → chunk-GFWKEWEH.js} +4 -4
- package/dist/{chunk-RU3IKVY2.js → chunk-GXUGYZ6H.js} +27 -11
- package/dist/chunk-GXUGYZ6H.js.map +1 -0
- package/dist/{chunk-FBL32U6S.cjs → chunk-IDMEC4ZK.cjs} +22 -22
- package/dist/{chunk-FBL32U6S.cjs.map → chunk-IDMEC4ZK.cjs.map} +1 -1
- package/dist/{chunk-646YZIUK.js → chunk-IPHA3AQ6.js} +7 -7
- package/dist/{chunk-A6ZMLRBR.js → chunk-J25M43YI.js} +6 -6
- package/dist/{chunk-RJT7I2Y4.cjs → chunk-K26VN65M.cjs} +15 -15
- package/dist/{chunk-RJT7I2Y4.cjs.map → chunk-K26VN65M.cjs.map} +1 -1
- package/dist/{chunk-5WHUUHSH.cjs → chunk-MOC7JLEP.cjs} +80 -80
- package/dist/{chunk-5WHUUHSH.cjs.map → chunk-MOC7JLEP.cjs.map} +1 -1
- package/dist/{chunk-TWE6KYQM.js → chunk-NUU5ZEEG.js} +4 -4
- package/dist/{chunk-GHMTJJCC.cjs → chunk-PIJK3FV6.cjs} +3 -3
- package/dist/{chunk-GHMTJJCC.cjs.map → chunk-PIJK3FV6.cjs.map} +1 -1
- package/dist/{chunk-L6UVTIJP.cjs → chunk-RDEFB354.cjs} +6 -6
- package/dist/{chunk-L6UVTIJP.cjs.map → chunk-RDEFB354.cjs.map} +1 -1
- package/dist/{chunk-7GLJC4EO.cjs → chunk-ROQTWRV7.cjs} +145 -145
- package/dist/{chunk-7GLJC4EO.cjs.map → chunk-ROQTWRV7.cjs.map} +1 -1
- package/dist/{chunk-L3H6VYDB.js → chunk-RROIA6WY.js} +2 -2
- package/dist/{chunk-H6TOSMGU.cjs → chunk-U6B3MM4U.cjs} +20 -20
- package/dist/{chunk-H6TOSMGU.cjs.map → chunk-U6B3MM4U.cjs.map} +1 -1
- package/dist/{chunk-BESOUYM7.cjs → chunk-UKFBPJBK.cjs} +29 -29
- package/dist/{chunk-BESOUYM7.cjs.map → chunk-UKFBPJBK.cjs.map} +1 -1
- package/dist/{chunk-RRGQTQ6T.js → chunk-UUXLDIK3.js} +3 -3
- package/dist/{chunk-UMVCVMCG.js → chunk-VRN5YYD3.js} +3 -3
- package/dist/{chunk-XJ5KH37F.js → chunk-WVRXDGGP.js} +3 -3
- package/dist/{chunk-HIMST6NK.js → chunk-XUNFDRMP.js} +3 -3
- package/dist/{chunk-AJRHEX5D.js → chunk-YCZBCEQO.js} +2577 -2469
- package/dist/chunk-YCZBCEQO.js.map +1 -0
- package/dist/components/case-studies/index.cjs +10 -10
- package/dist/components/case-studies/index.js +4 -4
- package/dist/components/chat/index.cjs +3 -3
- package/dist/components/chat/index.js +2 -2
- package/dist/components/contact/index.cjs +5 -5
- package/dist/components/contact/index.js +4 -4
- package/dist/components/docs/index.cjs +8 -8
- package/dist/components/docs/index.js +7 -7
- package/dist/components/embeds/index.cjs +5 -5
- package/dist/components/embeds/index.js +4 -4
- package/dist/components/faq/index.cjs +5 -5
- package/dist/components/faq/index.js +4 -4
- package/dist/components/features/index.cjs +4 -4
- package/dist/components/features/index.js +3 -3
- package/dist/components/help-center-pages/index.cjs +24 -24
- package/dist/components/help-center-pages/index.js +15 -15
- package/dist/components/index.cjs +57 -53
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +19 -15
- package/dist/components/index.js.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +34 -34
- package/dist/components/meeting-scheduler/index.cjs.map +1 -1
- package/dist/components/meeting-scheduler/index.js +5 -5
- package/dist/components/meeting-scheduler/index.js.map +1 -1
- package/dist/components/navigation/index.cjs +7 -7
- package/dist/components/navigation/index.js +6 -6
- package/dist/components/onboarding-guides/index.cjs +7 -7
- package/dist/components/onboarding-guides/index.js +6 -6
- package/dist/components/related-content/index.cjs +3 -3
- package/dist/components/related-content/index.js +2 -2
- package/dist/components/tickets/index.cjs +8 -8
- package/dist/components/tickets/index.js +7 -7
- package/dist/components/ui/avatar-stack.d.ts +16 -3
- package/dist/components/ui/avatar-stack.d.ts.map +1 -1
- package/dist/components/ui/data-table/data-table-header.d.ts +9 -1
- package/dist/components/ui/data-table/data-table-header.d.ts.map +1 -1
- package/dist/components/ui/data-table/types.d.ts +9 -0
- package/dist/components/ui/data-table/types.d.ts.map +1 -1
- package/dist/components/ui/index.cjs +8 -4
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +7 -3
- package/dist/components/ui/people-cell.d.ts +46 -0
- package/dist/components/ui/people-cell.d.ts.map +1 -0
- package/dist/components/ui/table/table-header.d.ts.map +1 -1
- package/dist/components/ui/table/types.d.ts +7 -0
- package/dist/components/ui/table/types.d.ts.map +1 -1
- package/dist/index.cjs +14 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +13 -7
- package/dist/index.js.map +1 -1
- package/dist/utils/format.d.ts +8 -0
- package/dist/utils/format.d.ts.map +1 -1
- package/dist/utils/index.cjs +5 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +5 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/data-table-header-hint.test.tsx +69 -0
- package/src/components/meeting-scheduler/context-panel.tsx +1 -1
- package/src/components/meeting-scheduler/directory.tsx +1 -1
- package/src/components/ui/__tests__/people-cell.test.tsx +97 -0
- package/src/components/ui/avatar-stack.tsx +40 -13
- package/src/components/ui/data-table/data-table-header.tsx +47 -11
- package/src/components/ui/data-table/types.ts +9 -0
- package/src/components/ui/index.ts +1 -0
- package/src/components/ui/people-cell.tsx +133 -0
- package/src/components/ui/table/__tests__/header-hint.test.tsx +85 -0
- package/src/components/ui/table/table-header.tsx +34 -9
- package/src/components/ui/table/types.ts +7 -0
- package/src/utils/format.ts +13 -0
- package/src/utils/index.ts +1 -0
- package/dist/chunk-AJRHEX5D.js.map +0 -1
- package/dist/chunk-N3G3YG3V.cjs.map +0 -1
- package/dist/chunk-RU3IKVY2.js.map +0 -1
- package/dist/chunk-UQEOAPAI.cjs.map +0 -1
- /package/dist/{chunk-NLKYBYPV.js.map → chunk-2DTZXXY3.js.map} +0 -0
- /package/dist/{chunk-JYHDJD3U.js.map → chunk-5P74E24M.js.map} +0 -0
- /package/dist/{chunk-BLUL2TE3.js.map → chunk-6XJS3WU7.js.map} +0 -0
- /package/dist/{chunk-OKWHWDA3.js.map → chunk-ANMD7SM4.js.map} +0 -0
- /package/dist/{chunk-TOAJWB3V.js.map → chunk-CWMKY2UJ.js.map} +0 -0
- /package/dist/{chunk-FP5WYJ3S.js.map → chunk-FCN2HN6Q.js.map} +0 -0
- /package/dist/{chunk-4C3BOBV6.js.map → chunk-GD7CV2JI.js.map} +0 -0
- /package/dist/{chunk-KKYE3E66.js.map → chunk-GFWKEWEH.js.map} +0 -0
- /package/dist/{chunk-646YZIUK.js.map → chunk-IPHA3AQ6.js.map} +0 -0
- /package/dist/{chunk-A6ZMLRBR.js.map → chunk-J25M43YI.js.map} +0 -0
- /package/dist/{chunk-TWE6KYQM.js.map → chunk-NUU5ZEEG.js.map} +0 -0
- /package/dist/{chunk-L3H6VYDB.js.map → chunk-RROIA6WY.js.map} +0 -0
- /package/dist/{chunk-RRGQTQ6T.js.map → chunk-UUXLDIK3.js.map} +0 -0
- /package/dist/{chunk-UMVCVMCG.js.map → chunk-VRN5YYD3.js.map} +0 -0
- /package/dist/{chunk-XJ5KH37F.js.map → chunk-WVRXDGGP.js.map} +0 -0
- /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
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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;
|
package/src/utils/format.ts
CHANGED
|
@@ -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 });
|