@primer/react 0.0.0-20260219201217 → 0.0.0-20260219212149

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/CHANGELOG.md CHANGED
@@ -1,9 +1,11 @@
1
1
  # @primer/react
2
2
 
3
- ## 0.0.0-20260219201217
3
+ ## 0.0.0-20260219212149
4
4
 
5
5
  ### Patch Changes
6
6
 
7
+ - [#7529](https://github.com/primer/react/pull/7529) [`7b11c23`](https://github.com/primer/react/commit/7b11c23088e9887608d28b8198f3370425f4cd8a) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Add keyboard-accessible tooltip for truncated ActionList.Description
8
+
7
9
  - Fake entry to force publishing
8
10
 
9
11
  ## 38.13.0
@@ -1 +1 @@
1
- {"version":3,"file":"Description.d.ts","sourceRoot":"","sources":["../../src/ActionList/Description.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAA;AAE1D,MAAM,MAAM,0BAA0B,GAAG;IACvC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAA;IAE5B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;IAC3B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,gBAAgB,CAAC,KAAK,CAAC,iBAAiB,CAAC,0BAA0B,CAAC,CAgD7F,CAAA"}
1
+ {"version":3,"file":"Description.d.ts","sourceRoot":"","sources":["../../src/ActionList/Description.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAA;AAE1D,MAAM,MAAM,0BAA0B,GAAG;IACvC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAA;IAE5B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;IAC3B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,gBAAgB,CAAC,KAAK,CAAC,iBAAiB,CAAC,0BAA0B,CAAC,CAuE7F,CAAA"}
@@ -7,7 +7,7 @@ import { jsx } from 'react/jsx-runtime';
7
7
  import Truncate from '../Truncate/Truncate.js';
8
8
 
9
9
  const Description = t0 => {
10
- const $ = c(26);
10
+ const $ = c(31);
11
11
  let className;
12
12
  let props;
13
13
  let style;
@@ -37,7 +37,8 @@ const Description = t0 => {
37
37
  const variant = t1 === undefined ? "inline" : t1;
38
38
  const {
39
39
  blockDescriptionId,
40
- inlineDescriptionId
40
+ inlineDescriptionId,
41
+ setTruncatedText
41
42
  } = React.useContext(ItemContext);
42
43
  const containerRef = React.useRef(null);
43
44
  const [computedTitle, setComputedTitle] = React.useState("");
@@ -65,66 +66,101 @@ const Description = t0 => {
65
66
  }
66
67
  React.useEffect(t2, t3);
67
68
  const effectiveTitle = typeof props.children === "string" ? props.children : computedTitle;
69
+ let t4;
70
+ let t5;
71
+ if ($[11] !== effectiveTitle || $[12] !== setTruncatedText || $[13] !== truncate) {
72
+ t4 = () => {
73
+ if (!truncate || !containerRef.current || !setTruncatedText) {
74
+ return;
75
+ }
76
+ const isContentTruncated = function isContentTruncated() {
77
+ const el = containerRef.current;
78
+ if (!el) {
79
+ return false;
80
+ }
81
+ return el.scrollWidth > el.clientWidth;
82
+ };
83
+ setTruncatedText(isContentTruncated() ? effectiveTitle : undefined);
84
+ const observer = new ResizeObserver(() => {
85
+ setTruncatedText(isContentTruncated() ? effectiveTitle : undefined);
86
+ });
87
+ observer.observe(containerRef.current);
88
+ return () => {
89
+ observer.disconnect();
90
+ };
91
+ };
92
+ t5 = [truncate, effectiveTitle, setTruncatedText];
93
+ $[11] = effectiveTitle;
94
+ $[12] = setTruncatedText;
95
+ $[13] = truncate;
96
+ $[14] = t4;
97
+ $[15] = t5;
98
+ } else {
99
+ t4 = $[14];
100
+ t5 = $[15];
101
+ }
102
+ React.useEffect(t4, t5);
68
103
  if (variant === "block" || !truncate) {
69
- const t4 = variant === "block" ? blockDescriptionId : inlineDescriptionId;
70
- let t5;
71
- if ($[11] !== className) {
72
- t5 = clsx(className, classes.Description);
73
- $[11] = className;
74
- $[12] = t5;
104
+ const t6 = variant === "block" ? blockDescriptionId : inlineDescriptionId;
105
+ let t7;
106
+ if ($[16] !== className) {
107
+ t7 = clsx(className, classes.Description);
108
+ $[16] = className;
109
+ $[17] = t7;
75
110
  } else {
76
- t5 = $[12];
111
+ t7 = $[17];
77
112
  }
78
- let t6;
79
- if ($[13] !== props.children || $[14] !== style || $[15] !== t4 || $[16] !== t5) {
80
- t6 = /*#__PURE__*/jsx("span", {
81
- id: t4,
82
- className: t5,
113
+ let t8;
114
+ if ($[18] !== props.children || $[19] !== style || $[20] !== t6 || $[21] !== t7) {
115
+ t8 = /*#__PURE__*/jsx("span", {
116
+ id: t6,
117
+ className: t7,
83
118
  style: style,
84
119
  "data-component": "ActionList.Description",
85
120
  children: props.children
86
121
  });
87
- $[13] = props.children;
88
- $[14] = style;
89
- $[15] = t4;
90
- $[16] = t5;
91
- $[17] = t6;
122
+ $[18] = props.children;
123
+ $[19] = style;
124
+ $[20] = t6;
125
+ $[21] = t7;
126
+ $[22] = t8;
92
127
  } else {
93
- t6 = $[17];
128
+ t8 = $[22];
94
129
  }
95
- return t6;
130
+ return t8;
96
131
  } else {
97
- let t4;
98
- if ($[18] !== className) {
99
- t4 = clsx(className, classes.Description);
100
- $[18] = className;
101
- $[19] = t4;
132
+ let t6;
133
+ if ($[23] !== className) {
134
+ t6 = clsx(className, classes.Description);
135
+ $[23] = className;
136
+ $[24] = t6;
102
137
  } else {
103
- t4 = $[19];
138
+ t6 = $[24];
104
139
  }
105
- let t5;
106
- if ($[20] !== effectiveTitle || $[21] !== inlineDescriptionId || $[22] !== props.children || $[23] !== style || $[24] !== t4) {
107
- t5 = /*#__PURE__*/jsx(Truncate, {
140
+ const t7 = setTruncatedText ? "" : effectiveTitle;
141
+ let t8;
142
+ if ($[25] !== inlineDescriptionId || $[26] !== props.children || $[27] !== style || $[28] !== t6 || $[29] !== t7) {
143
+ t8 = /*#__PURE__*/jsx(Truncate, {
108
144
  ref: containerRef,
109
145
  id: inlineDescriptionId,
110
- className: t4,
146
+ className: t6,
111
147
  style: style,
112
- title: effectiveTitle,
148
+ title: t7,
113
149
  inline: true,
114
150
  maxWidth: "100%",
115
151
  "data-component": "ActionList.Description",
116
152
  children: props.children
117
153
  });
118
- $[20] = effectiveTitle;
119
- $[21] = inlineDescriptionId;
120
- $[22] = props.children;
121
- $[23] = style;
122
- $[24] = t4;
123
- $[25] = t5;
154
+ $[25] = inlineDescriptionId;
155
+ $[26] = props.children;
156
+ $[27] = style;
157
+ $[28] = t6;
158
+ $[29] = t7;
159
+ $[30] = t8;
124
160
  } else {
125
- t5 = $[25];
161
+ t8 = $[30];
126
162
  }
127
- return t5;
163
+ return t8;
128
164
  }
129
165
  };
130
166
  Description.__SLOT__ = Symbol('ActionList.Description');
@@ -1 +1 @@
1
- {"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../src/ActionList/Item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAA;AAmBrC,KAAK,sBAAsB,GAAG;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAEpD,CAAA;AA0SD,QAAA,MAAM,IAAI,IAlRa,EAAE,SAAS,KAAK,CAAC,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqRjD,CAAA;AAEF,OAAO,EAAC,IAAI,EAAC,CAAA"}
1
+ {"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../src/ActionList/Item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAA;AAqBrC,KAAK,sBAAsB,GAAG;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B,CAAA;AA0BD,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAEpD,CAAA;AAkTD,QAAA,MAAM,IAAI,IA1Ra,EAAE,SAAS,KAAK,CAAC,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6RjD,CAAA;AAEF,OAAO,EAAC,IAAI,EAAC,CAAA"}
@@ -15,8 +15,44 @@ import VisuallyHidden from '../_VisuallyHidden.js';
15
15
  import classes from './ActionList.module.css.js';
16
16
  import { clsx } from 'clsx';
17
17
  import { fixedForwardRef } from '../utils/modern-polymorphic.js';
18
+ import { TooltipContext, Tooltip } from '../TooltipV2/Tooltip.js';
18
19
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
19
20
 
21
+ /**
22
+ * Stable wrapper that keeps Tooltip in the tree for button-semantic items
23
+ * to avoid remount cycles when truncation state changes.
24
+ * For non-button-semantic items, renders children directly.
25
+ */
26
+ function ConditionalTooltip(t0) {
27
+ const $ = c(4);
28
+ const {
29
+ text,
30
+ enabled,
31
+ children
32
+ } = t0;
33
+ if (!enabled) {
34
+ return children;
35
+ }
36
+ const t1 = text || "";
37
+ const t2 = !text;
38
+ let t3;
39
+ if ($[0] !== children || $[1] !== t1 || $[2] !== t2) {
40
+ t3 = /*#__PURE__*/jsx(Tooltip, {
41
+ text: t1,
42
+ direction: "e",
43
+ delay: "medium",
44
+ _privateDisableTooltip: t2,
45
+ children: children
46
+ });
47
+ $[0] = children;
48
+ $[1] = t1;
49
+ $[2] = t2;
50
+ $[3] = t3;
51
+ } else {
52
+ t3 = $[3];
53
+ }
54
+ return t3;
55
+ }
20
56
  const SubItem = t0 => {
21
57
  const $ = c(2);
22
58
  const {
@@ -218,6 +254,7 @@ const UnwrappedItem = ({
218
254
  const blockDescriptionId = `${itemId}--block-description`;
219
255
  const trailingVisualId = `${itemId}--trailing-visual`;
220
256
  const inactiveWarningId = inactive && !showInactiveIndicator ? `${itemId}--warning-message` : undefined;
257
+ const [truncatedText, setTruncatedText] = React.useState(undefined);
221
258
  const DefaultItemWrapper = listSemantics ? DivItemContainerNoBox : ButtonItemContainerNoBox;
222
259
  const ItemWrapper = _PrivateItemWrapper || DefaultItemWrapper;
223
260
 
@@ -238,8 +275,8 @@ const UnwrappedItem = ({
238
275
  'data-inactive': inactive ? true : undefined,
239
276
  'data-loading': loading && !inactive ? true : undefined,
240
277
  tabIndex: focusable ? undefined : 0,
241
- 'aria-labelledby': `${labelId} ${slots.trailingVisual ? trailingVisualId : ''} ${slots.description && descriptionVariant === 'inline' ? inlineDescriptionId : ''}`,
242
- 'aria-describedby': [slots.description && descriptionVariant === 'block' ? blockDescriptionId : undefined, inactiveWarningId !== null && inactiveWarningId !== void 0 ? inactiveWarningId : undefined].filter(String).join(' ').trim() || undefined,
278
+ 'aria-labelledby': `${labelId} ${slots.trailingVisual ? trailingVisualId : ''}`,
279
+ 'aria-describedby': [slots.description && descriptionVariant === 'block' ? blockDescriptionId : undefined, slots.description && descriptionVariant === 'inline' ? inlineDescriptionId : undefined, inactiveWarningId !== null && inactiveWarningId !== void 0 ? inactiveWarningId : undefined].filter(String).join(' ').trim() || undefined,
243
280
  ...(includeSelectionAttribute && {
244
281
  [itemSelectionAttribute]: selected
245
282
  }),
@@ -269,68 +306,76 @@ const UnwrappedItem = ({
269
306
  inactive: Boolean(inactiveText),
270
307
  inlineDescriptionId,
271
308
  blockDescriptionId,
272
- trailingVisualId
309
+ trailingVisualId,
310
+ setTruncatedText: buttonSemantics ? setTruncatedText : undefined
273
311
  },
274
- children: /*#__PURE__*/jsxs("li", {
275
- ...containerProps,
276
- ref: listSemantics ? forwardedRef : null,
277
- "data-variant": variant === 'danger' ? variant : undefined,
278
- "data-active": active ? true : undefined,
279
- "data-inactive": inactiveText ? true : undefined,
280
- "data-is-disabled": disabled ? true : undefined,
281
- "data-has-subitem": slots.subItem ? true : undefined,
282
- "data-has-description": slots.description ? true : false,
283
- className: clsx(classes.ActionListItem, className),
284
- children: [/*#__PURE__*/jsxs(ItemWrapper, {
285
- ...wrapperProps,
286
- className: classes.ActionListContent,
287
- "data-size": size
288
- // @ts-ignore: ItemWrapper is polymorphic and the ref type depends on the rendered element ('button' or 'li')
289
- ,
290
- ref: forwardedRef,
291
- children: [/*#__PURE__*/jsx("span", {
292
- className: classes.Spacer
293
- }), /*#__PURE__*/jsx(Selection, {
294
- selected: selected,
295
- className: classes.LeadingAction
296
- }), /*#__PURE__*/jsx(VisualOrIndicator, {
297
- inactiveText: showInactiveIndicator ? inactiveText : undefined,
298
- itemHasLeadingVisual: Boolean(slots.leadingVisual),
299
- labelId: labelId,
300
- loading: loading,
301
- position: "leading",
302
- children: slots.leadingVisual
303
- }), /*#__PURE__*/jsxs("span", {
304
- className: classes.ActionListSubContent,
305
- "data-component": "ActionList.Item--DividerContainer",
306
- children: [/*#__PURE__*/jsxs(ConditionalWrapper, {
307
- if: !!slots.description,
308
- className: classes.ItemDescriptionWrap,
309
- "data-description-variant": descriptionVariant,
310
- children: [/*#__PURE__*/jsxs("span", {
311
- id: labelId,
312
- className: classes.ItemLabel,
313
- children: [childrenWithoutSlots, loading === true && !inactive && /*#__PURE__*/jsx(VisuallyHidden, {
314
- children: "Loading"
315
- })]
316
- }), slots.description]
317
- }), /*#__PURE__*/jsx(VisualOrIndicator, {
318
- inactiveText: showInactiveIndicator ? inactiveText : undefined,
319
- itemHasLeadingVisual: Boolean(slots.leadingVisual),
320
- labelId: labelId,
321
- loading: loading,
322
- position: "trailing",
323
- children: trailingVisual
324
- }),
325
- // If the item is inactive, but it's not in an overlay (e.g. ActionMenu, SelectPanel),
326
- // render the inactive warning message directly in the item.
327
- !showInactiveIndicator && inactiveText ? /*#__PURE__*/jsx("span", {
328
- className: classes.InactiveWarning,
329
- id: inactiveWarningId,
330
- children: inactiveText
331
- }) : null]
332
- })]
333
- }), !inactive && !loading && !menuContext && Boolean(slots.trailingAction) && slots.trailingAction, slots.subItem]
312
+ children: /*#__PURE__*/jsx(ConditionalTooltip, {
313
+ text: truncatedText,
314
+ enabled: buttonSemantics,
315
+ children: /*#__PURE__*/jsx("li", {
316
+ ...containerProps,
317
+ ref: listSemantics ? forwardedRef : null,
318
+ "data-variant": variant === 'danger' ? variant : undefined,
319
+ "data-active": active ? true : undefined,
320
+ "data-inactive": inactiveText ? true : undefined,
321
+ "data-is-disabled": disabled ? true : undefined,
322
+ "data-has-subitem": slots.subItem ? true : undefined,
323
+ "data-has-description": slots.description ? true : false,
324
+ className: clsx(classes.ActionListItem, className),
325
+ children: /*#__PURE__*/jsxs(TooltipContext.Provider, {
326
+ value: {},
327
+ children: [/*#__PURE__*/jsxs(ItemWrapper, {
328
+ ...wrapperProps,
329
+ className: classes.ActionListContent,
330
+ "data-size": size
331
+ // @ts-ignore: ItemWrapper is polymorphic and the ref type depends on the rendered element ('button' or 'li')
332
+ ,
333
+ ref: forwardedRef,
334
+ children: [/*#__PURE__*/jsx("span", {
335
+ className: classes.Spacer
336
+ }), /*#__PURE__*/jsx(Selection, {
337
+ selected: selected,
338
+ className: classes.LeadingAction
339
+ }), /*#__PURE__*/jsx(VisualOrIndicator, {
340
+ inactiveText: showInactiveIndicator ? inactiveText : undefined,
341
+ itemHasLeadingVisual: Boolean(slots.leadingVisual),
342
+ labelId: labelId,
343
+ loading: loading,
344
+ position: "leading",
345
+ children: slots.leadingVisual
346
+ }), /*#__PURE__*/jsxs("span", {
347
+ className: classes.ActionListSubContent,
348
+ "data-component": "ActionList.Item--DividerContainer",
349
+ children: [/*#__PURE__*/jsxs(ConditionalWrapper, {
350
+ if: !!slots.description,
351
+ className: classes.ItemDescriptionWrap,
352
+ "data-description-variant": descriptionVariant,
353
+ children: [/*#__PURE__*/jsxs("span", {
354
+ id: labelId,
355
+ className: classes.ItemLabel,
356
+ children: [childrenWithoutSlots, loading === true && !inactive && /*#__PURE__*/jsx(VisuallyHidden, {
357
+ children: "Loading"
358
+ })]
359
+ }), slots.description]
360
+ }), /*#__PURE__*/jsx(VisualOrIndicator, {
361
+ inactiveText: showInactiveIndicator ? inactiveText : undefined,
362
+ itemHasLeadingVisual: Boolean(slots.leadingVisual),
363
+ labelId: labelId,
364
+ loading: loading,
365
+ position: "trailing",
366
+ children: trailingVisual
367
+ }),
368
+ // If the item is inactive, but it's not in an overlay (e.g. ActionMenu, SelectPanel),
369
+ // render the inactive warning message directly in the item.
370
+ !showInactiveIndicator && inactiveText ? /*#__PURE__*/jsx("span", {
371
+ className: classes.InactiveWarning,
372
+ id: inactiveWarningId,
373
+ children: inactiveText
374
+ }) : null]
375
+ })]
376
+ }), !inactive && !loading && !menuContext && Boolean(slots.trailingAction) && slots.trailingAction, slots.subItem]
377
+ })
378
+ })
334
379
  })
335
380
  });
336
381
  };
@@ -77,6 +77,7 @@ export type ItemContext = Pick<ActionListItemProps<React.ElementType>, 'variant'
77
77
  blockDescriptionId?: string;
78
78
  trailingVisualId?: string;
79
79
  inactive?: boolean;
80
+ setTruncatedText?: (text: string | undefined) => void;
80
81
  };
81
82
  export declare const ItemContext: React.Context<ItemContext>;
82
83
  export declare const getVariantStyles: (variant: ActionListItemProps<React.ElementType>["variant"], disabled: ActionListItemProps<React.ElementType>["disabled"], inactive?: boolean) => {
@@ -1 +1 @@
1
- {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/ActionList/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAA;AAC5C,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,6BAA6B,CAAA;AAIjE,KAAK,y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AO,GAAG,kBAAkB,GAAG,MAAM,CAAA;IAC/C;;OAEG;IACH,gBAAgB,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,UAAU,CAAA;IAClD;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC,CACH,CAAA;AAED,KAAK,YAAY,GAAG,IAAI,CACtB,eAAe,CAAC,KAAK,CAAC,WAAW,CAAC,EAClC,SAAS,GAAG,kBAAkB,GAAG,cAAc,GAAG,MAAM,CACzD,GAAG;IACF,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,WAAW,6BAAwC,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@primer/react",
3
3
  "type": "module",
4
- "version": "0.0.0-20260219201217",
4
+ "version": "0.0.0-20260219212149",
5
5
  "description": "An implementation of GitHub's Primer Design System using React",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",