@primer/react 0.0.0-20260309120017 → 0.0.0-20260309122525
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 +3 -1
- package/dist/ActionList/Item.d.ts.map +1 -1
- package/dist/ActionList/Item.js +628 -192
- package/dist/ActionList/List.d.ts.map +1 -1
- package/dist/ActionList/List.js +6 -5
- package/dist/ActionMenu/ActionMenu.d.ts +1 -4
- package/dist/ActionMenu/ActionMenu.d.ts.map +1 -1
- package/dist/ActionMenu/ActionMenu.js +7 -50
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/generated/components.json +0 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @primer/react
|
|
2
2
|
|
|
3
|
-
## 0.0.0-
|
|
3
|
+
## 0.0.0-20260309122525
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
|
|
21
21
|
- [#7624](https://github.com/primer/react/pull/7624) [`f6d4311`](https://github.com/primer/react/commit/f6d431194d217fbb7d456e58bcbbcbb434896fe1) Thanks [@llastflowers](https://github.com/llastflowers)! - Fix FormControl + SelectPanel accessible name to address SR issues
|
|
22
22
|
|
|
23
|
+
- [#7554](https://github.com/primer/react/pull/7554) [`0605db3`](https://github.com/primer/react/commit/0605db3e60d223a7a6bd11f03fae743cbd92fd9e) Thanks [@hectahertz](https://github.com/hectahertz)! - perf(ActionList): memoize context values, menuItemProps, and aria attributes
|
|
24
|
+
|
|
23
25
|
- [#7617](https://github.com/primer/react/pull/7617) [`79c855a`](https://github.com/primer/react/commit/79c855abeb6f46d3fefafb236f00ea65dfcd1ed4) Thanks [@llastflowers](https://github.com/llastflowers)! - Push margin-top of TimelineBody +1px
|
|
24
26
|
|
|
25
27
|
- [#7635](https://github.com/primer/react/pull/7635) [`74762e2`](https://github.com/primer/react/commit/74762e265a44b4fa46fcb4db8fd5194cb81b14c4) Thanks [@iansan5653](https://github.com/iansan5653)! - Fix(useRefObjectAsForwardedRef): fix ref failing to update when target changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../src/ActionList/Item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAA;AAoBrC,KAAK,sBAAsB,GAAG;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B,CAAA;AAwBD,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAEpD,CAAA;
|
|
1
|
+
{"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../src/ActionList/Item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAA;AAoBrC,KAAK,sBAAsB,GAAG;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B,CAAA;AAwBD,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAEpD,CAAA;AAyVD,QAAA,MAAM,IAAI,IApTa,EAAE,SAAS,KAAK,CAAC,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuTjD,CAAA;AAEF,OAAO,EAAC,IAAI,EAAC,CAAA"}
|
package/dist/ActionList/Item.js
CHANGED
|
@@ -142,50 +142,132 @@ const DivItemContainerNoBox = /*#__PURE__*/React.forwardRef((t0, forwardedRef) =
|
|
|
142
142
|
}
|
|
143
143
|
return t2;
|
|
144
144
|
});
|
|
145
|
-
const
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
handleAddItem: _handleAddItem,
|
|
161
|
-
...props
|
|
162
|
-
}, forwardedRef) => {
|
|
145
|
+
const baseSlots = {
|
|
146
|
+
leadingVisual: LeadingVisual,
|
|
147
|
+
trailingVisual: TrailingVisual,
|
|
148
|
+
trailingAction: TrailingAction,
|
|
149
|
+
subItem: SubItem
|
|
150
|
+
};
|
|
151
|
+
const slotsConfig = {
|
|
152
|
+
...baseSlots,
|
|
153
|
+
description: Description
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
// Pre-allocated array for selectableRoles check, avoids per-render allocation
|
|
157
|
+
const selectableRoles = ['menuitemradio', 'menuitemcheckbox', 'option'];
|
|
158
|
+
const listRoleTypes = ['listbox', 'menu', 'list'];
|
|
159
|
+
const UnwrappedItem = (t0, forwardedRef) => {
|
|
163
160
|
var _slots$trailingVisual, _slots$description$pr, _slots$description;
|
|
164
|
-
const
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
161
|
+
const $ = c(161);
|
|
162
|
+
let _PrivateItemWrapper;
|
|
163
|
+
let className;
|
|
164
|
+
let id;
|
|
165
|
+
let inactiveText;
|
|
166
|
+
let loading;
|
|
167
|
+
let onSelectUser;
|
|
168
|
+
let props;
|
|
169
|
+
let role;
|
|
170
|
+
let t1;
|
|
171
|
+
let t2;
|
|
172
|
+
let t3;
|
|
173
|
+
let t4;
|
|
174
|
+
let t5;
|
|
175
|
+
if ($[0] !== t0) {
|
|
176
|
+
const {
|
|
177
|
+
variant: t6,
|
|
178
|
+
size: t7,
|
|
179
|
+
disabled: t8,
|
|
180
|
+
inactiveText: t9,
|
|
181
|
+
selected: t10,
|
|
182
|
+
active: t11,
|
|
183
|
+
onSelect: t12,
|
|
184
|
+
id: t13,
|
|
185
|
+
role: t14,
|
|
186
|
+
loading: t15,
|
|
187
|
+
_PrivateItemWrapper: t16,
|
|
188
|
+
className: t17,
|
|
189
|
+
groupId: _groupId,
|
|
190
|
+
renderItem: _renderItem,
|
|
191
|
+
handleAddItem: _handleAddItem,
|
|
192
|
+
...t18
|
|
193
|
+
} = t0;
|
|
194
|
+
t1 = t6;
|
|
195
|
+
t2 = t7;
|
|
196
|
+
t3 = t8;
|
|
197
|
+
inactiveText = t9;
|
|
198
|
+
t4 = t10;
|
|
199
|
+
t5 = t11;
|
|
200
|
+
onSelectUser = t12;
|
|
201
|
+
id = t13;
|
|
202
|
+
role = t14;
|
|
203
|
+
loading = t15;
|
|
204
|
+
_PrivateItemWrapper = t16;
|
|
205
|
+
className = t17;
|
|
206
|
+
props = t18;
|
|
207
|
+
$[0] = t0;
|
|
208
|
+
$[1] = _PrivateItemWrapper;
|
|
209
|
+
$[2] = className;
|
|
210
|
+
$[3] = id;
|
|
211
|
+
$[4] = inactiveText;
|
|
212
|
+
$[5] = loading;
|
|
213
|
+
$[6] = onSelectUser;
|
|
214
|
+
$[7] = props;
|
|
215
|
+
$[8] = role;
|
|
216
|
+
$[9] = t1;
|
|
217
|
+
$[10] = t2;
|
|
218
|
+
$[11] = t3;
|
|
219
|
+
$[12] = t4;
|
|
220
|
+
$[13] = t5;
|
|
221
|
+
} else {
|
|
222
|
+
_PrivateItemWrapper = $[1];
|
|
223
|
+
className = $[2];
|
|
224
|
+
id = $[3];
|
|
225
|
+
inactiveText = $[4];
|
|
226
|
+
loading = $[5];
|
|
227
|
+
onSelectUser = $[6];
|
|
228
|
+
props = $[7];
|
|
229
|
+
role = $[8];
|
|
230
|
+
t1 = $[9];
|
|
231
|
+
t2 = $[10];
|
|
232
|
+
t3 = $[11];
|
|
233
|
+
t4 = $[12];
|
|
234
|
+
t5 = $[13];
|
|
235
|
+
}
|
|
236
|
+
const variant = t1 === undefined ? "default" : t1;
|
|
237
|
+
const size = t2 === undefined ? "medium" : t2;
|
|
238
|
+
const disabled = t3 === undefined ? false : t3;
|
|
239
|
+
const selected = t4 === undefined ? undefined : t4;
|
|
240
|
+
const active = t5 === undefined ? false : t5;
|
|
241
|
+
const [partialSlots, childrenWithoutSlots] = useSlots(props.children, slotsConfig);
|
|
242
|
+
let t6;
|
|
243
|
+
if ($[14] !== partialSlots) {
|
|
244
|
+
t6 = {
|
|
245
|
+
description: undefined,
|
|
246
|
+
...partialSlots
|
|
247
|
+
};
|
|
248
|
+
$[14] = partialSlots;
|
|
249
|
+
$[15] = t6;
|
|
250
|
+
} else {
|
|
251
|
+
t6 = $[15];
|
|
252
|
+
}
|
|
253
|
+
const slots = t6;
|
|
178
254
|
const {
|
|
179
255
|
container,
|
|
180
256
|
afterSelect,
|
|
181
257
|
selectionAttribute,
|
|
182
258
|
defaultTrailingVisual
|
|
183
259
|
} = React.useContext(ActionListContainerContext);
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
260
|
+
let t7;
|
|
261
|
+
if ($[16] !== defaultTrailingVisual) {
|
|
262
|
+
t7 = defaultTrailingVisual ? /*#__PURE__*/jsx(TrailingVisual, {
|
|
263
|
+
children: defaultTrailingVisual
|
|
264
|
+
}) : null;
|
|
265
|
+
$[16] = defaultTrailingVisual;
|
|
266
|
+
$[17] = t7;
|
|
267
|
+
} else {
|
|
268
|
+
t7 = $[17];
|
|
269
|
+
}
|
|
270
|
+
const wrappedDefaultTrailingVisual = t7;
|
|
189
271
|
const trailingVisual = (_slots$trailingVisual = slots.trailingVisual) !== null && _slots$trailingVisual !== void 0 ? _slots$trailingVisual : wrappedDefaultTrailingVisual;
|
|
190
272
|
const {
|
|
191
273
|
role: listRole,
|
|
@@ -195,57 +277,127 @@ const UnwrappedItem = ({
|
|
|
195
277
|
selectionVariant: groupSelectionVariant
|
|
196
278
|
} = React.useContext(GroupContext);
|
|
197
279
|
const inactive = Boolean(inactiveText);
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
}
|
|
280
|
+
const menuContext = container === "ActionMenu" || container === "SelectPanel" || container === "FilteredActionList";
|
|
281
|
+
let t8;
|
|
282
|
+
if ($[18] !== inactive || $[19] !== listRole) {
|
|
283
|
+
t8 = inactive && !(listRole !== undefined && ["menu", "listbox"].includes(listRole));
|
|
284
|
+
$[18] = inactive;
|
|
285
|
+
$[19] = listRole;
|
|
286
|
+
$[20] = t8;
|
|
287
|
+
} else {
|
|
288
|
+
t8 = $[20];
|
|
289
|
+
}
|
|
290
|
+
const showInactiveIndicator = t8;
|
|
291
|
+
let t9;
|
|
292
|
+
if ($[21] !== onSelectUser) {
|
|
293
|
+
t9 = (event, afterSelect_0) => {
|
|
294
|
+
if (typeof onSelectUser === "function") {
|
|
295
|
+
onSelectUser(event);
|
|
296
|
+
}
|
|
297
|
+
if (event.defaultPrevented) {
|
|
298
|
+
return;
|
|
299
|
+
}
|
|
300
|
+
if (typeof afterSelect_0 === "function") {
|
|
301
|
+
afterSelect_0(event);
|
|
302
|
+
}
|
|
303
|
+
};
|
|
304
|
+
$[21] = onSelectUser;
|
|
305
|
+
$[22] = t9;
|
|
306
|
+
} else {
|
|
307
|
+
t9 = $[22];
|
|
308
|
+
}
|
|
309
|
+
const onSelect = t9;
|
|
208
310
|
const selectionVariant = groupSelectionVariant ? groupSelectionVariant : listSelectionVariant;
|
|
209
|
-
|
|
210
|
-
/** Infer item role based on the container */
|
|
211
311
|
let inferredItemRole;
|
|
212
|
-
if (container ===
|
|
213
|
-
if (selectionVariant ===
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
312
|
+
if (container === "ActionMenu") {
|
|
313
|
+
if (selectionVariant === "single") {
|
|
314
|
+
inferredItemRole = "menuitemradio";
|
|
315
|
+
} else {
|
|
316
|
+
if (selectionVariant === "multiple") {
|
|
317
|
+
inferredItemRole = "menuitemcheckbox";
|
|
318
|
+
} else {
|
|
319
|
+
inferredItemRole = "menuitem";
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
} else {
|
|
323
|
+
if (listRole === "listbox") {
|
|
324
|
+
if (selectionVariant !== undefined && !role) {
|
|
325
|
+
inferredItemRole = "option";
|
|
326
|
+
}
|
|
327
|
+
} else {
|
|
328
|
+
if (listRole === "tablist") {
|
|
329
|
+
inferredItemRole = "tab";
|
|
330
|
+
}
|
|
331
|
+
}
|
|
218
332
|
}
|
|
219
333
|
const itemRole = role || inferredItemRole;
|
|
220
334
|
if (slots.trailingAction) {
|
|
221
|
-
!!menuContext ? process.env.NODE_ENV !== "production" ? invariant(false,
|
|
335
|
+
!!menuContext ? process.env.NODE_ENV !== "production" ? invariant(false, "ActionList.TrailingAction can not be used within a list with an ARIA role of \"menu\" or \"listbox\".") : invariant(false) : void 0;
|
|
222
336
|
}
|
|
223
|
-
|
|
224
|
-
/** Infer the proper selection attribute based on the item's role */
|
|
225
337
|
let inferredSelectionAttribute;
|
|
226
|
-
if (itemRole ===
|
|
338
|
+
if (itemRole === "menuitemradio" || itemRole === "menuitemcheckbox") {
|
|
339
|
+
inferredSelectionAttribute = "aria-checked";
|
|
340
|
+
} else {
|
|
341
|
+
if (itemRole === "option") {
|
|
342
|
+
inferredSelectionAttribute = "aria-selected";
|
|
343
|
+
}
|
|
344
|
+
}
|
|
227
345
|
const itemSelectionAttribute = selectionAttribute || inferredSelectionAttribute;
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
346
|
+
const listItemSemantics = itemRole === "option" || itemRole === "menuitem" || itemRole === "menuitemradio" || itemRole === "menuitemcheckbox" || itemRole === "tab";
|
|
347
|
+
let t10;
|
|
348
|
+
if ($[23] !== inactive || $[24] !== listItemSemantics || $[25] !== listRole) {
|
|
349
|
+
t10 = listRole && listRoleTypes.includes(listRole) || inactive || listItemSemantics;
|
|
350
|
+
$[23] = inactive;
|
|
351
|
+
$[24] = listItemSemantics;
|
|
352
|
+
$[25] = listRole;
|
|
353
|
+
$[26] = t10;
|
|
354
|
+
} else {
|
|
355
|
+
t10 = $[26];
|
|
356
|
+
}
|
|
357
|
+
const listSemantics = t10;
|
|
232
358
|
const buttonSemantics = !listSemantics && !_PrivateItemWrapper;
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
if (disabled || inactive || loading) return;
|
|
239
|
-
if ([' ', 'Enter'].includes(event_1.key)) {
|
|
240
|
-
if (event_1.key === ' ') {
|
|
241
|
-
event_1.preventDefault(); // prevent scrolling on Space
|
|
242
|
-
// immediately reset defaultPrevented once its job is done
|
|
243
|
-
// so as to not disturb the functions that use that event after this
|
|
244
|
-
event_1.defaultPrevented = false;
|
|
359
|
+
let t11;
|
|
360
|
+
if ($[27] !== afterSelect || $[28] !== disabled || $[29] !== inactive || $[30] !== loading || $[31] !== onSelect) {
|
|
361
|
+
t11 = event_0 => {
|
|
362
|
+
if (disabled || inactive || loading) {
|
|
363
|
+
return;
|
|
245
364
|
}
|
|
246
|
-
onSelect(
|
|
247
|
-
}
|
|
248
|
-
|
|
365
|
+
onSelect(event_0, afterSelect);
|
|
366
|
+
};
|
|
367
|
+
$[27] = afterSelect;
|
|
368
|
+
$[28] = disabled;
|
|
369
|
+
$[29] = inactive;
|
|
370
|
+
$[30] = loading;
|
|
371
|
+
$[31] = onSelect;
|
|
372
|
+
$[32] = t11;
|
|
373
|
+
} else {
|
|
374
|
+
t11 = $[32];
|
|
375
|
+
}
|
|
376
|
+
const clickHandler = t11;
|
|
377
|
+
let t12;
|
|
378
|
+
if ($[33] !== afterSelect || $[34] !== disabled || $[35] !== inactive || $[36] !== loading || $[37] !== onSelect) {
|
|
379
|
+
t12 = event_1 => {
|
|
380
|
+
if (disabled || inactive || loading) {
|
|
381
|
+
return;
|
|
382
|
+
}
|
|
383
|
+
if (event_1.key === " " || event_1.key === "Enter") {
|
|
384
|
+
if (event_1.key === " ") {
|
|
385
|
+
event_1.preventDefault();
|
|
386
|
+
event_1.defaultPrevented = false;
|
|
387
|
+
}
|
|
388
|
+
onSelect(event_1, afterSelect);
|
|
389
|
+
}
|
|
390
|
+
};
|
|
391
|
+
$[33] = afterSelect;
|
|
392
|
+
$[34] = disabled;
|
|
393
|
+
$[35] = inactive;
|
|
394
|
+
$[36] = loading;
|
|
395
|
+
$[37] = onSelect;
|
|
396
|
+
$[38] = t12;
|
|
397
|
+
} else {
|
|
398
|
+
t12 = $[38];
|
|
399
|
+
}
|
|
400
|
+
const keyPressHandler = t12;
|
|
249
401
|
const itemId = useId(id);
|
|
250
402
|
const labelId = `${itemId}--label`;
|
|
251
403
|
const inlineDescriptionId = `${itemId}--inline-description`;
|
|
@@ -255,130 +407,414 @@ const UnwrappedItem = ({
|
|
|
255
407
|
const [truncatedText, setTruncatedText] = React.useState(undefined);
|
|
256
408
|
const DefaultItemWrapper = listSemantics ? DivItemContainerNoBox : ButtonItemContainerNoBox;
|
|
257
409
|
const ItemWrapper = _PrivateItemWrapper || DefaultItemWrapper;
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
410
|
+
let t13;
|
|
411
|
+
if ($[39] !== itemRole || $[40] !== itemSelectionAttribute) {
|
|
412
|
+
t13 = itemSelectionAttribute && itemRole && selectableRoles.includes(itemRole);
|
|
413
|
+
$[39] = itemRole;
|
|
414
|
+
$[40] = itemSelectionAttribute;
|
|
415
|
+
$[41] = t13;
|
|
416
|
+
} else {
|
|
417
|
+
t13 = $[41];
|
|
265
418
|
}
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
const descriptionVariant = (_slots$description$pr = (_slots$description = slots.description) === null || _slots$description === void 0 ? void 0 : _slots$description.props.variant) !== null && _slots$description$pr !== void 0 ? _slots$description$pr :
|
|
269
|
-
const
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
419
|
+
const includeSelectionAttribute = t13;
|
|
420
|
+
const focusable = showInactiveIndicator ? true : undefined;
|
|
421
|
+
const descriptionVariant = (_slots$description$pr = (_slots$description = slots.description) === null || _slots$description === void 0 ? void 0 : _slots$description.props.variant) !== null && _slots$description$pr !== void 0 ? _slots$description$pr : "inline";
|
|
422
|
+
const hasTrailingVisualSlot = Boolean(slots.trailingVisual);
|
|
423
|
+
const hasDescriptionSlot = Boolean(slots.description);
|
|
424
|
+
let parts;
|
|
425
|
+
if ($[42] !== descriptionVariant || $[43] !== hasDescriptionSlot || $[44] !== hasTrailingVisualSlot || $[45] !== inlineDescriptionId || $[46] !== labelId || $[47] !== trailingVisualId) {
|
|
426
|
+
parts = [labelId];
|
|
427
|
+
if (hasTrailingVisualSlot) {
|
|
428
|
+
parts.push(trailingVisualId);
|
|
429
|
+
}
|
|
430
|
+
if (hasDescriptionSlot && descriptionVariant === "inline") {
|
|
431
|
+
parts.push(inlineDescriptionId);
|
|
432
|
+
}
|
|
433
|
+
$[42] = descriptionVariant;
|
|
434
|
+
$[43] = hasDescriptionSlot;
|
|
435
|
+
$[44] = hasTrailingVisualSlot;
|
|
436
|
+
$[45] = inlineDescriptionId;
|
|
437
|
+
$[46] = labelId;
|
|
438
|
+
$[47] = trailingVisualId;
|
|
439
|
+
$[48] = parts;
|
|
440
|
+
} else {
|
|
441
|
+
parts = $[48];
|
|
442
|
+
}
|
|
443
|
+
const ariaLabelledBy = parts.join(" ");
|
|
444
|
+
let parts_0;
|
|
445
|
+
if ($[49] !== blockDescriptionId || $[50] !== descriptionVariant || $[51] !== hasDescriptionSlot || $[52] !== inactiveWarningId) {
|
|
446
|
+
parts_0 = [];
|
|
447
|
+
if (hasDescriptionSlot && descriptionVariant === "block") {
|
|
448
|
+
parts_0.push(blockDescriptionId);
|
|
449
|
+
}
|
|
450
|
+
if (inactiveWarningId) {
|
|
451
|
+
parts_0.push(inactiveWarningId);
|
|
452
|
+
}
|
|
453
|
+
$[49] = blockDescriptionId;
|
|
454
|
+
$[50] = descriptionVariant;
|
|
455
|
+
$[51] = hasDescriptionSlot;
|
|
456
|
+
$[52] = inactiveWarningId;
|
|
457
|
+
$[53] = parts_0;
|
|
458
|
+
} else {
|
|
459
|
+
parts_0 = $[53];
|
|
460
|
+
}
|
|
461
|
+
const ariaDescribedBy = parts_0.length > 0 ? parts_0.join(" ") : undefined;
|
|
462
|
+
const t14 = !buttonSemantics ? keyPressHandler : undefined;
|
|
463
|
+
const t15 = disabled ? true : undefined;
|
|
464
|
+
const t16 = inactive ? true : undefined;
|
|
465
|
+
const t17 = loading && !inactive ? true : undefined;
|
|
466
|
+
const t18 = focusable ? undefined : 0;
|
|
467
|
+
let t19;
|
|
468
|
+
if ($[54] !== includeSelectionAttribute || $[55] !== itemSelectionAttribute || $[56] !== selected) {
|
|
469
|
+
t19 = includeSelectionAttribute && {
|
|
279
470
|
[itemSelectionAttribute]: selected
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
471
|
+
};
|
|
472
|
+
$[54] = includeSelectionAttribute;
|
|
473
|
+
$[55] = itemSelectionAttribute;
|
|
474
|
+
$[56] = selected;
|
|
475
|
+
$[57] = t19;
|
|
476
|
+
} else {
|
|
477
|
+
t19 = $[57];
|
|
478
|
+
}
|
|
479
|
+
let t20;
|
|
480
|
+
if ($[58] !== ariaDescribedBy || $[59] !== ariaLabelledBy || $[60] !== clickHandler || $[61] !== itemId || $[62] !== itemRole || $[63] !== t14 || $[64] !== t15 || $[65] !== t16 || $[66] !== t17 || $[67] !== t18 || $[68] !== t19) {
|
|
481
|
+
t20 = {
|
|
482
|
+
onClick: clickHandler,
|
|
483
|
+
onKeyPress: t14,
|
|
484
|
+
"aria-disabled": t15,
|
|
485
|
+
"data-inactive": t16,
|
|
486
|
+
"data-loading": t17,
|
|
487
|
+
tabIndex: t18,
|
|
488
|
+
"aria-labelledby": ariaLabelledBy,
|
|
489
|
+
"aria-describedby": ariaDescribedBy,
|
|
490
|
+
...t19,
|
|
491
|
+
role: itemRole,
|
|
492
|
+
id: itemId
|
|
493
|
+
};
|
|
494
|
+
$[58] = ariaDescribedBy;
|
|
495
|
+
$[59] = ariaLabelledBy;
|
|
496
|
+
$[60] = clickHandler;
|
|
497
|
+
$[61] = itemId;
|
|
498
|
+
$[62] = itemRole;
|
|
499
|
+
$[63] = t14;
|
|
500
|
+
$[64] = t15;
|
|
501
|
+
$[65] = t16;
|
|
502
|
+
$[66] = t17;
|
|
503
|
+
$[67] = t18;
|
|
504
|
+
$[68] = t19;
|
|
505
|
+
$[69] = t20;
|
|
506
|
+
} else {
|
|
507
|
+
t20 = $[69];
|
|
508
|
+
}
|
|
509
|
+
const menuItemProps = t20;
|
|
510
|
+
let t21;
|
|
511
|
+
if ($[70] !== _PrivateItemWrapper || $[71] !== forwardedRef || $[72] !== itemRole || $[73] !== listSemantics || $[74] !== menuItemProps || $[75] !== props) {
|
|
512
|
+
t21 = _PrivateItemWrapper ? {
|
|
513
|
+
role: itemRole ? "none" : undefined,
|
|
514
|
+
...props
|
|
515
|
+
} : listSemantics && {
|
|
516
|
+
...menuItemProps,
|
|
517
|
+
...props,
|
|
518
|
+
ref: forwardedRef
|
|
519
|
+
} || {};
|
|
520
|
+
$[70] = _PrivateItemWrapper;
|
|
521
|
+
$[71] = forwardedRef;
|
|
522
|
+
$[72] = itemRole;
|
|
523
|
+
$[73] = listSemantics;
|
|
524
|
+
$[74] = menuItemProps;
|
|
525
|
+
$[75] = props;
|
|
526
|
+
$[76] = t21;
|
|
527
|
+
} else {
|
|
528
|
+
t21 = $[76];
|
|
529
|
+
}
|
|
530
|
+
const containerProps = t21;
|
|
531
|
+
let t22;
|
|
532
|
+
if ($[77] !== _PrivateItemWrapper || $[78] !== forwardedRef || $[79] !== listSemantics || $[80] !== menuItemProps || $[81] !== props) {
|
|
533
|
+
t22 = _PrivateItemWrapper ? menuItemProps : !listSemantics && {
|
|
534
|
+
...menuItemProps,
|
|
535
|
+
...props,
|
|
536
|
+
ref: forwardedRef
|
|
537
|
+
};
|
|
538
|
+
$[77] = _PrivateItemWrapper;
|
|
539
|
+
$[78] = forwardedRef;
|
|
540
|
+
$[79] = listSemantics;
|
|
541
|
+
$[80] = menuItemProps;
|
|
542
|
+
$[81] = props;
|
|
543
|
+
$[82] = t22;
|
|
544
|
+
} else {
|
|
545
|
+
t22 = $[82];
|
|
546
|
+
}
|
|
547
|
+
const wrapperProps = t22;
|
|
548
|
+
const t23 = Boolean(inactiveText);
|
|
549
|
+
const t24 = buttonSemantics ? setTruncatedText : undefined;
|
|
550
|
+
let t25;
|
|
551
|
+
if ($[83] !== blockDescriptionId || $[84] !== disabled || $[85] !== inlineDescriptionId || $[86] !== size || $[87] !== t23 || $[88] !== t24 || $[89] !== trailingVisualId || $[90] !== variant) {
|
|
552
|
+
t25 = {
|
|
301
553
|
variant,
|
|
302
554
|
size,
|
|
303
555
|
disabled,
|
|
304
|
-
inactive:
|
|
556
|
+
inactive: t23,
|
|
305
557
|
inlineDescriptionId,
|
|
306
558
|
blockDescriptionId,
|
|
307
559
|
trailingVisualId,
|
|
308
|
-
setTruncatedText:
|
|
309
|
-
}
|
|
310
|
-
|
|
560
|
+
setTruncatedText: t24
|
|
561
|
+
};
|
|
562
|
+
$[83] = blockDescriptionId;
|
|
563
|
+
$[84] = disabled;
|
|
564
|
+
$[85] = inlineDescriptionId;
|
|
565
|
+
$[86] = size;
|
|
566
|
+
$[87] = t23;
|
|
567
|
+
$[88] = t24;
|
|
568
|
+
$[89] = trailingVisualId;
|
|
569
|
+
$[90] = variant;
|
|
570
|
+
$[91] = t25;
|
|
571
|
+
} else {
|
|
572
|
+
t25 = $[91];
|
|
573
|
+
}
|
|
574
|
+
const itemContextValue = t25;
|
|
575
|
+
const t26 = listSemantics ? forwardedRef : null;
|
|
576
|
+
const t27 = variant === "danger" ? variant : undefined;
|
|
577
|
+
const t28 = active ? true : undefined;
|
|
578
|
+
const t29 = inactiveText ? true : undefined;
|
|
579
|
+
const t30 = disabled ? true : undefined;
|
|
580
|
+
const t31 = slots.subItem ? true : undefined;
|
|
581
|
+
const t32 = slots.description ? true : false;
|
|
582
|
+
let t33;
|
|
583
|
+
if ($[92] !== className) {
|
|
584
|
+
t33 = clsx(classes.ActionListItem, className);
|
|
585
|
+
$[92] = className;
|
|
586
|
+
$[93] = t33;
|
|
587
|
+
} else {
|
|
588
|
+
t33 = $[93];
|
|
589
|
+
}
|
|
590
|
+
let t34;
|
|
591
|
+
let t35;
|
|
592
|
+
if ($[94] === Symbol.for("react.memo_cache_sentinel")) {
|
|
593
|
+
t34 = {};
|
|
594
|
+
t35 = /*#__PURE__*/jsx("span", {
|
|
595
|
+
className: classes.Spacer
|
|
596
|
+
});
|
|
597
|
+
$[94] = t34;
|
|
598
|
+
$[95] = t35;
|
|
599
|
+
} else {
|
|
600
|
+
t34 = $[94];
|
|
601
|
+
t35 = $[95];
|
|
602
|
+
}
|
|
603
|
+
let t36;
|
|
604
|
+
if ($[96] !== selected) {
|
|
605
|
+
t36 = /*#__PURE__*/jsx(Selection, {
|
|
606
|
+
selected: selected,
|
|
607
|
+
className: classes.LeadingAction
|
|
608
|
+
});
|
|
609
|
+
$[96] = selected;
|
|
610
|
+
$[97] = t36;
|
|
611
|
+
} else {
|
|
612
|
+
t36 = $[97];
|
|
613
|
+
}
|
|
614
|
+
const t37 = showInactiveIndicator ? inactiveText : undefined;
|
|
615
|
+
const t38 = Boolean(slots.leadingVisual);
|
|
616
|
+
let t39;
|
|
617
|
+
if ($[98] !== labelId || $[99] !== loading || $[100] !== slots.leadingVisual || $[101] !== t37 || $[102] !== t38) {
|
|
618
|
+
t39 = /*#__PURE__*/jsx(VisualOrIndicator, {
|
|
619
|
+
inactiveText: t37,
|
|
620
|
+
itemHasLeadingVisual: t38,
|
|
621
|
+
labelId: labelId,
|
|
622
|
+
loading: loading,
|
|
623
|
+
position: "leading",
|
|
624
|
+
children: slots.leadingVisual
|
|
625
|
+
});
|
|
626
|
+
$[98] = labelId;
|
|
627
|
+
$[99] = loading;
|
|
628
|
+
$[100] = slots.leadingVisual;
|
|
629
|
+
$[101] = t37;
|
|
630
|
+
$[102] = t38;
|
|
631
|
+
$[103] = t39;
|
|
632
|
+
} else {
|
|
633
|
+
t39 = $[103];
|
|
634
|
+
}
|
|
635
|
+
const t40 = !!slots.description;
|
|
636
|
+
let t41;
|
|
637
|
+
if ($[104] !== inactive || $[105] !== loading) {
|
|
638
|
+
t41 = loading === true && !inactive && /*#__PURE__*/jsx(VisuallyHidden, {
|
|
639
|
+
children: "Loading"
|
|
640
|
+
});
|
|
641
|
+
$[104] = inactive;
|
|
642
|
+
$[105] = loading;
|
|
643
|
+
$[106] = t41;
|
|
644
|
+
} else {
|
|
645
|
+
t41 = $[106];
|
|
646
|
+
}
|
|
647
|
+
let t42;
|
|
648
|
+
if ($[107] !== childrenWithoutSlots || $[108] !== labelId || $[109] !== t41) {
|
|
649
|
+
t42 = /*#__PURE__*/jsxs("span", {
|
|
650
|
+
id: labelId,
|
|
651
|
+
className: classes.ItemLabel,
|
|
652
|
+
children: [childrenWithoutSlots, t41]
|
|
653
|
+
});
|
|
654
|
+
$[107] = childrenWithoutSlots;
|
|
655
|
+
$[108] = labelId;
|
|
656
|
+
$[109] = t41;
|
|
657
|
+
$[110] = t42;
|
|
658
|
+
} else {
|
|
659
|
+
t42 = $[110];
|
|
660
|
+
}
|
|
661
|
+
let t43;
|
|
662
|
+
if ($[111] !== descriptionVariant || $[112] !== slots.description || $[113] !== t40 || $[114] !== t42) {
|
|
663
|
+
t43 = /*#__PURE__*/jsxs(ConditionalWrapper, {
|
|
664
|
+
if: t40,
|
|
665
|
+
className: classes.ItemDescriptionWrap,
|
|
666
|
+
"data-description-variant": descriptionVariant,
|
|
667
|
+
children: [t42, slots.description]
|
|
668
|
+
});
|
|
669
|
+
$[111] = descriptionVariant;
|
|
670
|
+
$[112] = slots.description;
|
|
671
|
+
$[113] = t40;
|
|
672
|
+
$[114] = t42;
|
|
673
|
+
$[115] = t43;
|
|
674
|
+
} else {
|
|
675
|
+
t43 = $[115];
|
|
676
|
+
}
|
|
677
|
+
const t44 = showInactiveIndicator ? inactiveText : undefined;
|
|
678
|
+
const t45 = Boolean(slots.leadingVisual);
|
|
679
|
+
let t46;
|
|
680
|
+
if ($[116] !== labelId || $[117] !== loading || $[118] !== t44 || $[119] !== t45 || $[120] !== trailingVisual) {
|
|
681
|
+
t46 = /*#__PURE__*/jsx(VisualOrIndicator, {
|
|
682
|
+
inactiveText: t44,
|
|
683
|
+
itemHasLeadingVisual: t45,
|
|
684
|
+
labelId: labelId,
|
|
685
|
+
loading: loading,
|
|
686
|
+
position: "trailing",
|
|
687
|
+
children: trailingVisual
|
|
688
|
+
});
|
|
689
|
+
$[116] = labelId;
|
|
690
|
+
$[117] = loading;
|
|
691
|
+
$[118] = t44;
|
|
692
|
+
$[119] = t45;
|
|
693
|
+
$[120] = trailingVisual;
|
|
694
|
+
$[121] = t46;
|
|
695
|
+
} else {
|
|
696
|
+
t46 = $[121];
|
|
697
|
+
}
|
|
698
|
+
let t47;
|
|
699
|
+
if ($[122] !== inactiveText || $[123] !== inactiveWarningId || $[124] !== showInactiveIndicator) {
|
|
700
|
+
t47 = !showInactiveIndicator && inactiveText ? /*#__PURE__*/jsx("span", {
|
|
701
|
+
className: classes.InactiveWarning,
|
|
702
|
+
id: inactiveWarningId,
|
|
703
|
+
children: inactiveText
|
|
704
|
+
}) : null;
|
|
705
|
+
$[122] = inactiveText;
|
|
706
|
+
$[123] = inactiveWarningId;
|
|
707
|
+
$[124] = showInactiveIndicator;
|
|
708
|
+
$[125] = t47;
|
|
709
|
+
} else {
|
|
710
|
+
t47 = $[125];
|
|
711
|
+
}
|
|
712
|
+
let t48;
|
|
713
|
+
if ($[126] !== t43 || $[127] !== t46 || $[128] !== t47) {
|
|
714
|
+
t48 = /*#__PURE__*/jsxs("span", {
|
|
715
|
+
className: classes.ActionListSubContent,
|
|
716
|
+
"data-component": "ActionList.Item--DividerContainer",
|
|
717
|
+
children: [t43, t46, t47]
|
|
718
|
+
});
|
|
719
|
+
$[126] = t43;
|
|
720
|
+
$[127] = t46;
|
|
721
|
+
$[128] = t47;
|
|
722
|
+
$[129] = t48;
|
|
723
|
+
} else {
|
|
724
|
+
t48 = $[129];
|
|
725
|
+
}
|
|
726
|
+
let t49;
|
|
727
|
+
if ($[130] !== t36 || $[131] !== t39 || $[132] !== t48) {
|
|
728
|
+
t49 = /*#__PURE__*/jsxs(TooltipContext.Provider, {
|
|
729
|
+
value: t34,
|
|
730
|
+
children: [t35, t36, t39, t48]
|
|
731
|
+
});
|
|
732
|
+
$[130] = t36;
|
|
733
|
+
$[131] = t39;
|
|
734
|
+
$[132] = t48;
|
|
735
|
+
$[133] = t49;
|
|
736
|
+
} else {
|
|
737
|
+
t49 = $[133];
|
|
738
|
+
}
|
|
739
|
+
let t50;
|
|
740
|
+
if ($[134] !== ItemWrapper || $[135] !== forwardedRef || $[136] !== size || $[137] !== t49 || $[138] !== wrapperProps) {
|
|
741
|
+
t50 = /*#__PURE__*/jsx(ItemWrapper, {
|
|
742
|
+
...wrapperProps,
|
|
743
|
+
className: classes.ActionListContent,
|
|
744
|
+
"data-size": size,
|
|
745
|
+
ref: forwardedRef,
|
|
746
|
+
children: t49
|
|
747
|
+
});
|
|
748
|
+
$[134] = ItemWrapper;
|
|
749
|
+
$[135] = forwardedRef;
|
|
750
|
+
$[136] = size;
|
|
751
|
+
$[137] = t49;
|
|
752
|
+
$[138] = wrapperProps;
|
|
753
|
+
$[139] = t50;
|
|
754
|
+
} else {
|
|
755
|
+
t50 = $[139];
|
|
756
|
+
}
|
|
757
|
+
let t51;
|
|
758
|
+
if ($[140] !== buttonSemantics || $[141] !== forwardedRef || $[142] !== t50 || $[143] !== truncatedText) {
|
|
759
|
+
t51 = /*#__PURE__*/jsx(ConditionalTooltip, {
|
|
760
|
+
ref: forwardedRef,
|
|
761
|
+
text: truncatedText,
|
|
762
|
+
enabled: buttonSemantics,
|
|
763
|
+
children: t50
|
|
764
|
+
});
|
|
765
|
+
$[140] = buttonSemantics;
|
|
766
|
+
$[141] = forwardedRef;
|
|
767
|
+
$[142] = t50;
|
|
768
|
+
$[143] = truncatedText;
|
|
769
|
+
$[144] = t51;
|
|
770
|
+
} else {
|
|
771
|
+
t51 = $[144];
|
|
772
|
+
}
|
|
773
|
+
const t52 = !inactive && !loading && !menuContext && Boolean(slots.trailingAction) && slots.trailingAction;
|
|
774
|
+
let t53;
|
|
775
|
+
if ($[145] !== containerProps || $[146] !== slots.subItem || $[147] !== t26 || $[148] !== t27 || $[149] !== t28 || $[150] !== t29 || $[151] !== t30 || $[152] !== t31 || $[153] !== t32 || $[154] !== t33 || $[155] !== t51 || $[156] !== t52) {
|
|
776
|
+
t53 = /*#__PURE__*/jsxs("li", {
|
|
311
777
|
...containerProps,
|
|
312
|
-
ref:
|
|
313
|
-
"data-variant":
|
|
314
|
-
"data-active":
|
|
315
|
-
"data-inactive":
|
|
316
|
-
"data-is-disabled":
|
|
317
|
-
"data-has-subitem":
|
|
318
|
-
"data-has-description":
|
|
319
|
-
className:
|
|
320
|
-
children: [
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
"data-description-variant": descriptionVariant,
|
|
352
|
-
children: [/*#__PURE__*/jsxs("span", {
|
|
353
|
-
id: labelId,
|
|
354
|
-
className: classes.ItemLabel,
|
|
355
|
-
children: [childrenWithoutSlots, loading === true && !inactive && /*#__PURE__*/jsx(VisuallyHidden, {
|
|
356
|
-
children: "Loading"
|
|
357
|
-
})]
|
|
358
|
-
}), slots.description]
|
|
359
|
-
}), /*#__PURE__*/jsx(VisualOrIndicator, {
|
|
360
|
-
inactiveText: showInactiveIndicator ? inactiveText : undefined,
|
|
361
|
-
itemHasLeadingVisual: Boolean(slots.leadingVisual),
|
|
362
|
-
labelId: labelId,
|
|
363
|
-
loading: loading,
|
|
364
|
-
position: "trailing",
|
|
365
|
-
children: trailingVisual
|
|
366
|
-
}),
|
|
367
|
-
// If the item is inactive, but it's not in an overlay (e.g. ActionMenu, SelectPanel),
|
|
368
|
-
// render the inactive warning message directly in the item.
|
|
369
|
-
!showInactiveIndicator && inactiveText ? /*#__PURE__*/jsx("span", {
|
|
370
|
-
className: classes.InactiveWarning,
|
|
371
|
-
id: inactiveWarningId,
|
|
372
|
-
children: inactiveText
|
|
373
|
-
}) : null]
|
|
374
|
-
})]
|
|
375
|
-
})
|
|
376
|
-
})
|
|
377
|
-
}), !inactive && !loading && !menuContext && Boolean(slots.trailingAction) && slots.trailingAction, slots.subItem]
|
|
378
|
-
})
|
|
379
|
-
});
|
|
778
|
+
ref: t26,
|
|
779
|
+
"data-variant": t27,
|
|
780
|
+
"data-active": t28,
|
|
781
|
+
"data-inactive": t29,
|
|
782
|
+
"data-is-disabled": t30,
|
|
783
|
+
"data-has-subitem": t31,
|
|
784
|
+
"data-has-description": t32,
|
|
785
|
+
className: t33,
|
|
786
|
+
children: [t51, t52, slots.subItem]
|
|
787
|
+
});
|
|
788
|
+
$[145] = containerProps;
|
|
789
|
+
$[146] = slots.subItem;
|
|
790
|
+
$[147] = t26;
|
|
791
|
+
$[148] = t27;
|
|
792
|
+
$[149] = t28;
|
|
793
|
+
$[150] = t29;
|
|
794
|
+
$[151] = t30;
|
|
795
|
+
$[152] = t31;
|
|
796
|
+
$[153] = t32;
|
|
797
|
+
$[154] = t33;
|
|
798
|
+
$[155] = t51;
|
|
799
|
+
$[156] = t52;
|
|
800
|
+
$[157] = t53;
|
|
801
|
+
} else {
|
|
802
|
+
t53 = $[157];
|
|
803
|
+
}
|
|
804
|
+
let t54;
|
|
805
|
+
if ($[158] !== itemContextValue || $[159] !== t53) {
|
|
806
|
+
t54 = /*#__PURE__*/jsx(ItemContext.Provider, {
|
|
807
|
+
value: itemContextValue,
|
|
808
|
+
children: t53
|
|
809
|
+
});
|
|
810
|
+
$[158] = itemContextValue;
|
|
811
|
+
$[159] = t53;
|
|
812
|
+
$[160] = t54;
|
|
813
|
+
} else {
|
|
814
|
+
t54 = $[160];
|
|
815
|
+
}
|
|
816
|
+
return t54;
|
|
380
817
|
};
|
|
381
|
-
UnwrappedItem.displayName = "UnwrappedItem";
|
|
382
818
|
const Item = Object.assign(fixedForwardRef(UnwrappedItem), {
|
|
383
819
|
displayName: 'ActionList.Item',
|
|
384
820
|
__SLOT__: Symbol('ActionList.Item')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../src/ActionList/List.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../src/ActionList/List.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAA;AAuFrC,QAAA,MAAM,IAAI,GA3Ea,EAAE,SAAS,KAAK,CAAC,WAAW;;;;;;;;;;;;;;;;;;;;oDA2ER,CAAA;AAI3C,OAAO,EAAC,IAAI,EAAC,CAAA"}
|
package/dist/ActionList/List.js
CHANGED
|
@@ -131,6 +131,7 @@ const UnwrappedList = (props, forwardedRef) => {
|
|
|
131
131
|
} else {
|
|
132
132
|
t9 = $[20];
|
|
133
133
|
}
|
|
134
|
+
const listContextValue = t9;
|
|
134
135
|
const t10 = slots.heading;
|
|
135
136
|
let t11;
|
|
136
137
|
if ($[21] !== className) {
|
|
@@ -166,14 +167,14 @@ const UnwrappedList = (props, forwardedRef) => {
|
|
|
166
167
|
t12 = $[32];
|
|
167
168
|
}
|
|
168
169
|
let t13;
|
|
169
|
-
if ($[33] !==
|
|
170
|
+
if ($[33] !== listContextValue || $[34] !== slots.heading || $[35] !== t12) {
|
|
170
171
|
t13 = /*#__PURE__*/jsxs(ListContext.Provider, {
|
|
171
|
-
value:
|
|
172
|
+
value: listContextValue,
|
|
172
173
|
children: [t10, t12]
|
|
173
174
|
});
|
|
174
|
-
$[33] =
|
|
175
|
-
$[34] =
|
|
176
|
-
$[35] =
|
|
175
|
+
$[33] = listContextValue;
|
|
176
|
+
$[34] = slots.heading;
|
|
177
|
+
$[35] = t12;
|
|
177
178
|
$[36] = t13;
|
|
178
179
|
} else {
|
|
179
180
|
t13 = $[36];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { AnchoredOverlayProps } from '../AnchoredOverlay';
|
|
3
3
|
import type { OverlayProps } from '../Overlay';
|
|
4
|
-
import type { ButtonProps
|
|
4
|
+
import type { ButtonProps } from '../Button';
|
|
5
5
|
import type { AnchorPosition } from '@primer/behaviors';
|
|
6
6
|
import type { ForwardRefComponent as PolymorphicForwardRefComponent } from '../utils/polymorphic';
|
|
7
7
|
import type { FCWithSlotMarker, WithSlotMarker } from '../utils/types/Slots';
|
|
@@ -30,8 +30,6 @@ export type ActionMenuAnchorProps = {
|
|
|
30
30
|
} & React.HTMLAttributes<HTMLElement>;
|
|
31
31
|
/** this component is syntactical sugar 🍭 */
|
|
32
32
|
export type ActionMenuButtonProps = ButtonProps;
|
|
33
|
-
/** this component is syntactical sugar 🍭 */
|
|
34
|
-
export type ActionMenuIconButtonProps = IconButtonProps;
|
|
35
33
|
type MenuOverlayProps = Partial<OverlayProps> & Pick<AnchoredOverlayProps, 'align' | 'side' | 'variant' | 'displayInViewport'> & {
|
|
36
34
|
/**
|
|
37
35
|
* Recommended: `ActionList`
|
|
@@ -43,7 +41,6 @@ type MenuOverlayProps = Partial<OverlayProps> & Pick<AnchoredOverlayProps, 'alig
|
|
|
43
41
|
};
|
|
44
42
|
export declare const ActionMenu: React.FC<React.PropsWithChildren<ActionMenuProps>> & import("..").SlotMarker & {
|
|
45
43
|
Button: PolymorphicForwardRefComponent<"button", ButtonProps>;
|
|
46
|
-
IconButton: PolymorphicForwardRefComponent<"button", IconButtonProps>;
|
|
47
44
|
Anchor: WithSlotMarker<React.ForwardRefExoticComponent<{
|
|
48
45
|
children: React.ReactElement<any>;
|
|
49
46
|
id?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionMenu.d.ts","sourceRoot":"","sources":["../../src/ActionMenu/ActionMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ActionMenu.d.ts","sourceRoot":"","sources":["../../src/ActionMenu/ActionMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8D,MAAM,OAAO,CAAA;AAElF,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,oBAAoB,CAAA;AAE5D,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,YAAY,CAAA;AAI5C,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,WAAW,CAAA;AAC1C,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAA;AAIrD,OAAO,KAAK,EAAC,mBAAmB,IAAI,8BAA8B,EAAC,MAAM,sBAAsB,CAAA;AAK/F,OAAO,KAAK,EAAC,gBAAgB,EAAE,cAAc,EAAC,MAAM,sBAAsB,CAAA;AAI1E,MAAM,MAAM,gBAAgB,GAAG,CAC7B,OAAO,EAAE,cAAc,GAAG,eAAe,GAAG,QAAQ,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CAAC,YAAY,CAAC,GAAG,CAAC;aAC5B,MAAM;;;;CA2L4E,CAAA"}
|
|
@@ -1,22 +1,20 @@
|
|
|
1
|
-
import React, { useContext, useState, useEffect,
|
|
1
|
+
import React, { useContext, useState, useEffect, useCallback, useMemo } from 'react';
|
|
2
2
|
import { ChevronRightIcon, TriangleDownIcon } from '@primer/octicons-react';
|
|
3
3
|
import { Divider } from '../ActionList/Divider.js';
|
|
4
4
|
import { ActionListContainerContext } from '../ActionList/ActionListContainerContext.js';
|
|
5
|
-
import { IconButton } from '../Button/IconButton.js';
|
|
6
|
-
import { ButtonComponent } from '../Button/Button.js';
|
|
7
5
|
import { useId } from '../hooks/useId.js';
|
|
8
6
|
import { Tooltip } from '../TooltipV2/Tooltip.js';
|
|
9
7
|
import styles from './ActionMenu.module.css.js';
|
|
10
8
|
import { useResponsiveValue } from '../hooks/useResponsiveValue.js';
|
|
11
9
|
import { isSlot } from '../utils/is-slot.js';
|
|
12
10
|
import { DialogContext } from '../Dialog/Dialog.js';
|
|
13
|
-
import { warning } from '../utils/warning.js';
|
|
14
11
|
import { jsx } from 'react/jsx-runtime';
|
|
15
12
|
import { useProvidedStateOrCreate } from '../hooks/useProvidedStateOrCreate.js';
|
|
16
13
|
import { useProvidedRefOrCreate } from '../hooks/useProvidedRefOrCreate.js';
|
|
17
14
|
import { useMenuKeyboardNavigation } from '../hooks/useMenuKeyboardNavigation.js';
|
|
18
15
|
import { useFeatureFlag } from '../FeatureFlags/useFeatureFlag.js';
|
|
19
16
|
import { AnchoredOverlay } from '../AnchoredOverlay/AnchoredOverlay.js';
|
|
17
|
+
import { ButtonComponent } from '../Button/Button.js';
|
|
20
18
|
|
|
21
19
|
const MenuContext = /*#__PURE__*/React.createContext({
|
|
22
20
|
renderAnchor: null,
|
|
@@ -72,7 +70,7 @@ const Menu = ({
|
|
|
72
70
|
(_parentMenuContext$on = parentMenuContext.onClose) === null || _parentMenuContext$on === void 0 ? void 0 : _parentMenuContext$on.call(parentMenuContext, gesture);
|
|
73
71
|
}
|
|
74
72
|
}, [setCombinedOpenState, parentMenuContext, open, isNarrow]);
|
|
75
|
-
const menuButtonChild = React.Children.toArray(children).find(child => /*#__PURE__*/React.isValidElement(child) && (child.type === MenuButton || child.type ===
|
|
73
|
+
const menuButtonChild = React.Children.toArray(children).find(child => /*#__PURE__*/React.isValidElement(child) && (child.type === MenuButton || child.type === Anchor || isSlot(child, Anchor) || isSlot(child, MenuButton)));
|
|
76
74
|
const menuButtonChildId = /*#__PURE__*/React.isValidElement(menuButtonChild) ? menuButtonChild.props.id : undefined;
|
|
77
75
|
const anchorRef = useProvidedRefOrCreate(externalAnchorRef);
|
|
78
76
|
const anchorId = useId(menuButtonChildId);
|
|
@@ -86,7 +84,7 @@ const Menu = ({
|
|
|
86
84
|
if (child.type === Tooltip || isSlot(child, Tooltip)) {
|
|
87
85
|
// tooltip trigger
|
|
88
86
|
const anchorChildren = child.props.children;
|
|
89
|
-
if (anchorChildren.type === MenuButton || isSlot(anchorChildren, MenuButton)
|
|
87
|
+
if (anchorChildren.type === MenuButton || isSlot(anchorChildren, MenuButton)) {
|
|
90
88
|
// eslint-disable-next-line react-hooks/immutability
|
|
91
89
|
renderAnchor = anchorProps => {
|
|
92
90
|
// We need to attach the anchor props to the tooltip trigger (ActionMenu.Button's grandchild) not the tooltip itself.
|
|
@@ -125,7 +123,7 @@ const Menu = ({
|
|
|
125
123
|
renderAnchor = anchorProps => /*#__PURE__*/React.cloneElement(child, anchorProps);
|
|
126
124
|
}
|
|
127
125
|
return null;
|
|
128
|
-
} else if (child.type === MenuButton || isSlot(child, MenuButton)
|
|
126
|
+
} else if (child.type === MenuButton || isSlot(child, MenuButton)) {
|
|
129
127
|
renderAnchor = anchorProps => /*#__PURE__*/React.cloneElement(child, mergeAnchorHandlers(anchorProps, child.props));
|
|
130
128
|
return null;
|
|
131
129
|
} else {
|
|
@@ -146,15 +144,7 @@ const Menu = ({
|
|
|
146
144
|
children: contents
|
|
147
145
|
});
|
|
148
146
|
};
|
|
149
|
-
Menu.displayName = "Menu";
|
|
150
|
-
// The list is from GitHub's custom-axe-rules https://github.com/github/github/blob/master/app/assets/modules/github/axe-custom-rules.ts#L3
|
|
151
|
-
const interactiveElements = ['a[href]', 'button:not([disabled])', 'summary', 'select', 'input:not([type=hidden])', 'textarea'];
|
|
152
|
-
const isInteractive = element => {
|
|
153
|
-
return interactiveElements.some(selector => element.matches(selector)) || element.hasAttribute('role') && element.getAttribute('role') === 'button';
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
157
|
-
|
|
147
|
+
Menu.displayName = "Menu"; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
158
148
|
const Anchor = /*#__PURE__*/React.forwardRef(({
|
|
159
149
|
children: child,
|
|
160
150
|
...anchorProps
|
|
@@ -163,16 +153,6 @@ const Anchor = /*#__PURE__*/React.forwardRef(({
|
|
|
163
153
|
onOpen,
|
|
164
154
|
isSubmenu
|
|
165
155
|
} = React.useContext(MenuContext);
|
|
166
|
-
const internalRef = useRef(null);
|
|
167
|
-
useEffect(() => {
|
|
168
|
-
if (!(process.env.NODE_ENV !== "production")) return;
|
|
169
|
-
// Skip validation for submenu anchors, where ActionList.Item is a valid anchor
|
|
170
|
-
if (isSubmenu) return;
|
|
171
|
-
if (!internalRef.current) return;
|
|
172
|
-
const anchorElement = internalRef.current;
|
|
173
|
-
const isAnchorInteractive = isInteractive(anchorElement);
|
|
174
|
-
process.env.NODE_ENV !== "production" ? warning(!isAnchorInteractive, 'The `ActionMenu.Anchor` expects a single interactive element that can act as a menu trigger. Consider using a `<button>` or an `IconButton` as the direct child of `ActionMenu.Anchor`, or use `ActionMenu.Button` or `ActionMenu.IconButton` instead.') : void 0;
|
|
175
|
-
}, [isSubmenu]);
|
|
176
156
|
const openSubmenuOnRightArrow = useCallback(event => {
|
|
177
157
|
if (isSubmenu && event.key === 'ArrowRight' && !event.defaultPrevented) onOpen === null || onOpen === void 0 ? void 0 : onOpen('anchor-key-press');
|
|
178
158
|
}, [isSubmenu, onOpen]);
|
|
@@ -200,14 +180,7 @@ const Anchor = /*#__PURE__*/React.forwardRef(({
|
|
|
200
180
|
value: thisActionListContext,
|
|
201
181
|
children: /*#__PURE__*/React.cloneElement(child, {
|
|
202
182
|
...anchorProps,
|
|
203
|
-
ref:
|
|
204
|
-
internalRef.current = node;
|
|
205
|
-
if (typeof anchorRef === 'function') {
|
|
206
|
-
anchorRef(node);
|
|
207
|
-
} else if (anchorRef) {
|
|
208
|
-
anchorRef.current = node;
|
|
209
|
-
}
|
|
210
|
-
},
|
|
183
|
+
ref: anchorRef,
|
|
211
184
|
onClick: onButtonClick,
|
|
212
185
|
onKeyDown: onButtonKeyDown
|
|
213
186
|
})
|
|
@@ -228,20 +201,6 @@ const MenuButton = /*#__PURE__*/React.forwardRef(({
|
|
|
228
201
|
})
|
|
229
202
|
});
|
|
230
203
|
});
|
|
231
|
-
|
|
232
|
-
/** this component is syntactical sugar 🍭 */
|
|
233
|
-
|
|
234
|
-
const MenuIconButton = /*#__PURE__*/React.forwardRef(({
|
|
235
|
-
...props
|
|
236
|
-
}, anchorRef) => {
|
|
237
|
-
return /*#__PURE__*/jsx(Anchor, {
|
|
238
|
-
ref: anchorRef,
|
|
239
|
-
children: /*#__PURE__*/jsx(IconButton, {
|
|
240
|
-
type: "button",
|
|
241
|
-
...props
|
|
242
|
-
})
|
|
243
|
-
});
|
|
244
|
-
});
|
|
245
204
|
const defaultVariant = {
|
|
246
205
|
regular: 'anchored',
|
|
247
206
|
narrow: 'anchored'
|
|
@@ -347,12 +306,10 @@ Overlay.displayName = "Overlay";
|
|
|
347
306
|
Menu.displayName = 'ActionMenu';
|
|
348
307
|
Menu.__SLOT__ = Symbol('ActionMenu');
|
|
349
308
|
MenuButton.__SLOT__ = Symbol('ActionMenu.Button');
|
|
350
|
-
MenuIconButton.__SLOT__ = Symbol('ActionMenu.IconButton');
|
|
351
309
|
Anchor.__SLOT__ = Symbol('ActionMenu.Anchor');
|
|
352
310
|
Overlay.__SLOT__ = Symbol('ActionMenu.Overlay');
|
|
353
311
|
const ActionMenu = Object.assign(Menu, {
|
|
354
312
|
Button: MenuButton,
|
|
355
|
-
IconButton: MenuIconButton,
|
|
356
313
|
Anchor,
|
|
357
314
|
Overlay,
|
|
358
315
|
Divider
|
package/dist/index.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export type { RadioProps } from './Radio';
|
|
|
35
35
|
export { ActionList } from './ActionList';
|
|
36
36
|
export type { ActionListProps, ActionListGroupProps, ActionListItemProps, ActionListLinkItemProps, ActionListDividerProps, ActionListDescriptionProps, ActionListLeadingVisualProps, ActionListTrailingVisualProps, } from './ActionList';
|
|
37
37
|
export { ActionMenu } from './ActionMenu';
|
|
38
|
-
export type { ActionMenuProps, ActionMenuAnchorProps, ActionMenuButtonProps
|
|
38
|
+
export type { ActionMenuProps, ActionMenuAnchorProps, ActionMenuButtonProps } from './ActionMenu';
|
|
39
39
|
export { AnchoredOverlay } from './AnchoredOverlay';
|
|
40
40
|
export type { AnchoredOverlayProps } from './AnchoredOverlay';
|
|
41
41
|
export { default as Autocomplete } from './Autocomplete';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,OAAO,IAAI,KAAK,EAAE,KAAK,eAAe,EAAE,KAAK,gBAAgB,EAAC,MAAM,SAAS,CAAA;AACrF,OAAO,EAAC,OAAO,IAAI,UAAU,EAAC,MAAM,cAAc,CAAA;AAClD,YAAY,EAAC,eAAe,EAAC,MAAM,cAAc,CAAA;AACjD,OAAO,EAAC,OAAO,IAAI,aAAa,EAAE,QAAQ,EAAE,iBAAiB,EAAC,MAAM,iBAAiB,CAAA;AACrF,YAAY,EAAC,kBAAkB,EAAC,MAAM,iBAAiB,CAAA;AAGvD,cAAc,UAAU,CAA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|
-
"passthrough": {
|
|
735
|
-
"element": "IconButton",
|
|
736
|
-
"url": "/react/IconButton"
|
|
737
|
-
}
|
|
738
|
-
},
|
|
739
731
|
{
|
|
740
732
|
"name": "ActionMenu.Anchor",
|
|
741
733
|
"props": [
|
package/package.json
CHANGED