@primer/react 0.0.0-20260326220522 → 0.0.0-20260327015143
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 +1 -3
- package/dist/ActionList/Item.js +171 -169
- 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-20260327015143
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -24,8 +24,6 @@
|
|
|
24
24
|
|
|
25
25
|
- [#7631](https://github.com/primer/react/pull/7631) [`0ecaf6f`](https://github.com/primer/react/commit/0ecaf6f64c50235081416515b7d5b6b2e364b33f) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Add test to validate that the `muted` prop is not leaked as a bare DOM attribute on `Link`
|
|
26
26
|
|
|
27
|
-
- [#7706](https://github.com/primer/react/pull/7706) [`730869c`](https://github.com/primer/react/commit/730869c0aa84df51afcf927073c99069ae1b5dc0) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - ActionList.Item: fix inline descriptions being referenced via `aria-labelledby` instead of `aria-describedby`
|
|
28
|
-
|
|
29
27
|
## 38.17.0
|
|
30
28
|
|
|
31
29
|
### Minor Changes
|
package/dist/ActionList/Item.js
CHANGED
|
@@ -158,7 +158,7 @@ const selectableRoles = ['menuitemradio', 'menuitemcheckbox', 'option'];
|
|
|
158
158
|
const listRoleTypes = ['listbox', 'menu', 'list'];
|
|
159
159
|
const UnwrappedItem = (t0, forwardedRef) => {
|
|
160
160
|
var _slots$trailingVisual, _slots$description$pr, _slots$description;
|
|
161
|
-
const $ = c(
|
|
161
|
+
const $ = c(161);
|
|
162
162
|
let _PrivateItemWrapper;
|
|
163
163
|
let className;
|
|
164
164
|
let id;
|
|
@@ -422,39 +422,41 @@ const UnwrappedItem = (t0, forwardedRef) => {
|
|
|
422
422
|
const hasTrailingVisualSlot = Boolean(slots.trailingVisual);
|
|
423
423
|
const hasDescriptionSlot = Boolean(slots.description);
|
|
424
424
|
let parts;
|
|
425
|
-
if ($[42] !==
|
|
425
|
+
if ($[42] !== descriptionVariant || $[43] !== hasDescriptionSlot || $[44] !== hasTrailingVisualSlot || $[45] !== inlineDescriptionId || $[46] !== labelId || $[47] !== trailingVisualId) {
|
|
426
426
|
parts = [labelId];
|
|
427
427
|
if (hasTrailingVisualSlot) {
|
|
428
428
|
parts.push(trailingVisualId);
|
|
429
429
|
}
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
$[
|
|
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;
|
|
434
440
|
} else {
|
|
435
|
-
parts = $[
|
|
441
|
+
parts = $[48];
|
|
436
442
|
}
|
|
437
443
|
const ariaLabelledBy = parts.join(" ");
|
|
438
444
|
let parts_0;
|
|
439
|
-
if ($[
|
|
445
|
+
if ($[49] !== blockDescriptionId || $[50] !== descriptionVariant || $[51] !== hasDescriptionSlot || $[52] !== inactiveWarningId) {
|
|
440
446
|
parts_0 = [];
|
|
441
447
|
if (hasDescriptionSlot && descriptionVariant === "block") {
|
|
442
448
|
parts_0.push(blockDescriptionId);
|
|
443
449
|
}
|
|
444
|
-
if (hasDescriptionSlot && descriptionVariant === "inline") {
|
|
445
|
-
parts_0.push(inlineDescriptionId);
|
|
446
|
-
}
|
|
447
450
|
if (inactiveWarningId) {
|
|
448
451
|
parts_0.push(inactiveWarningId);
|
|
449
452
|
}
|
|
450
|
-
$[
|
|
451
|
-
$[
|
|
452
|
-
$[
|
|
453
|
-
$[
|
|
454
|
-
$[
|
|
455
|
-
$[51] = parts_0;
|
|
453
|
+
$[49] = blockDescriptionId;
|
|
454
|
+
$[50] = descriptionVariant;
|
|
455
|
+
$[51] = hasDescriptionSlot;
|
|
456
|
+
$[52] = inactiveWarningId;
|
|
457
|
+
$[53] = parts_0;
|
|
456
458
|
} else {
|
|
457
|
-
parts_0 = $[
|
|
459
|
+
parts_0 = $[53];
|
|
458
460
|
}
|
|
459
461
|
const ariaDescribedBy = parts_0.length > 0 ? parts_0.join(" ") : undefined;
|
|
460
462
|
const t14 = !buttonSemantics ? keyPressHandler : undefined;
|
|
@@ -463,19 +465,19 @@ const UnwrappedItem = (t0, forwardedRef) => {
|
|
|
463
465
|
const t17 = loading && !inactive ? true : undefined;
|
|
464
466
|
const t18 = focusable ? undefined : 0;
|
|
465
467
|
let t19;
|
|
466
|
-
if ($[
|
|
468
|
+
if ($[54] !== includeSelectionAttribute || $[55] !== itemSelectionAttribute || $[56] !== selected) {
|
|
467
469
|
t19 = includeSelectionAttribute && {
|
|
468
470
|
[itemSelectionAttribute]: selected
|
|
469
471
|
};
|
|
470
|
-
$[
|
|
471
|
-
$[
|
|
472
|
-
$[
|
|
473
|
-
$[
|
|
472
|
+
$[54] = includeSelectionAttribute;
|
|
473
|
+
$[55] = itemSelectionAttribute;
|
|
474
|
+
$[56] = selected;
|
|
475
|
+
$[57] = t19;
|
|
474
476
|
} else {
|
|
475
|
-
t19 = $[
|
|
477
|
+
t19 = $[57];
|
|
476
478
|
}
|
|
477
479
|
let t20;
|
|
478
|
-
if ($[
|
|
480
|
+
if ($[58] !== ariaDescribedBy || $[59] !== ariaLabelledBy || $[60] !== clickHandler || $[61] !== itemId || $[62] !== itemRole || $[63] !== t14 || $[64] !== t15 || $[65] !== t16 || $[66] !== t17 || $[67] !== t18 || $[68] !== t19) {
|
|
479
481
|
t20 = {
|
|
480
482
|
onClick: clickHandler,
|
|
481
483
|
onKeyPress: t14,
|
|
@@ -489,24 +491,24 @@ const UnwrappedItem = (t0, forwardedRef) => {
|
|
|
489
491
|
role: itemRole,
|
|
490
492
|
id: itemId
|
|
491
493
|
};
|
|
492
|
-
$[
|
|
493
|
-
$[
|
|
494
|
-
$[
|
|
495
|
-
$[
|
|
496
|
-
$[
|
|
497
|
-
$[
|
|
498
|
-
$[
|
|
499
|
-
$[
|
|
500
|
-
$[
|
|
501
|
-
$[
|
|
502
|
-
$[
|
|
503
|
-
$[
|
|
504
|
-
} else {
|
|
505
|
-
t20 = $[
|
|
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];
|
|
506
508
|
}
|
|
507
509
|
const menuItemProps = t20;
|
|
508
510
|
let t21;
|
|
509
|
-
if ($[
|
|
511
|
+
if ($[70] !== _PrivateItemWrapper || $[71] !== forwardedRef || $[72] !== itemRole || $[73] !== listSemantics || $[74] !== menuItemProps || $[75] !== props) {
|
|
510
512
|
t21 = _PrivateItemWrapper ? {
|
|
511
513
|
role: itemRole ? "none" : undefined,
|
|
512
514
|
...props
|
|
@@ -515,38 +517,38 @@ const UnwrappedItem = (t0, forwardedRef) => {
|
|
|
515
517
|
...props,
|
|
516
518
|
ref: forwardedRef
|
|
517
519
|
} || {};
|
|
518
|
-
$[
|
|
519
|
-
$[
|
|
520
|
-
$[
|
|
521
|
-
$[
|
|
522
|
-
$[
|
|
523
|
-
$[
|
|
524
|
-
$[
|
|
520
|
+
$[70] = _PrivateItemWrapper;
|
|
521
|
+
$[71] = forwardedRef;
|
|
522
|
+
$[72] = itemRole;
|
|
523
|
+
$[73] = listSemantics;
|
|
524
|
+
$[74] = menuItemProps;
|
|
525
|
+
$[75] = props;
|
|
526
|
+
$[76] = t21;
|
|
525
527
|
} else {
|
|
526
|
-
t21 = $[
|
|
528
|
+
t21 = $[76];
|
|
527
529
|
}
|
|
528
530
|
const containerProps = t21;
|
|
529
531
|
let t22;
|
|
530
|
-
if ($[
|
|
532
|
+
if ($[77] !== _PrivateItemWrapper || $[78] !== forwardedRef || $[79] !== listSemantics || $[80] !== menuItemProps || $[81] !== props) {
|
|
531
533
|
t22 = _PrivateItemWrapper ? menuItemProps : !listSemantics && {
|
|
532
534
|
...menuItemProps,
|
|
533
535
|
...props,
|
|
534
536
|
ref: forwardedRef
|
|
535
537
|
};
|
|
536
|
-
$[
|
|
537
|
-
$[
|
|
538
|
-
$[
|
|
539
|
-
$[
|
|
540
|
-
$[
|
|
541
|
-
$[
|
|
538
|
+
$[77] = _PrivateItemWrapper;
|
|
539
|
+
$[78] = forwardedRef;
|
|
540
|
+
$[79] = listSemantics;
|
|
541
|
+
$[80] = menuItemProps;
|
|
542
|
+
$[81] = props;
|
|
543
|
+
$[82] = t22;
|
|
542
544
|
} else {
|
|
543
|
-
t22 = $[
|
|
545
|
+
t22 = $[82];
|
|
544
546
|
}
|
|
545
547
|
const wrapperProps = t22;
|
|
546
548
|
const t23 = Boolean(inactiveText);
|
|
547
549
|
const t24 = buttonSemantics ? setTruncatedText : undefined;
|
|
548
550
|
let t25;
|
|
549
|
-
if ($[
|
|
551
|
+
if ($[83] !== blockDescriptionId || $[84] !== disabled || $[85] !== inlineDescriptionId || $[86] !== size || $[87] !== t23 || $[88] !== t24 || $[89] !== trailingVisualId || $[90] !== variant) {
|
|
550
552
|
t25 = {
|
|
551
553
|
variant,
|
|
552
554
|
size,
|
|
@@ -557,17 +559,17 @@ const UnwrappedItem = (t0, forwardedRef) => {
|
|
|
557
559
|
trailingVisualId,
|
|
558
560
|
setTruncatedText: t24
|
|
559
561
|
};
|
|
560
|
-
$[
|
|
561
|
-
$[
|
|
562
|
-
$[
|
|
563
|
-
$[
|
|
564
|
-
$[
|
|
565
|
-
$[
|
|
566
|
-
$[
|
|
567
|
-
$[
|
|
568
|
-
$[
|
|
569
|
-
} else {
|
|
570
|
-
t25 = $[
|
|
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];
|
|
571
573
|
}
|
|
572
574
|
const itemContextValue = t25;
|
|
573
575
|
const t26 = listSemantics ? forwardedRef : null;
|
|
@@ -578,41 +580,41 @@ const UnwrappedItem = (t0, forwardedRef) => {
|
|
|
578
580
|
const t31 = slots.subItem ? true : undefined;
|
|
579
581
|
const t32 = slots.description ? true : false;
|
|
580
582
|
let t33;
|
|
581
|
-
if ($[
|
|
583
|
+
if ($[92] !== className) {
|
|
582
584
|
t33 = clsx(classes.ActionListItem, className);
|
|
583
|
-
$[
|
|
584
|
-
$[
|
|
585
|
+
$[92] = className;
|
|
586
|
+
$[93] = t33;
|
|
585
587
|
} else {
|
|
586
|
-
t33 = $[
|
|
588
|
+
t33 = $[93];
|
|
587
589
|
}
|
|
588
590
|
let t34;
|
|
589
591
|
let t35;
|
|
590
|
-
if ($[
|
|
592
|
+
if ($[94] === Symbol.for("react.memo_cache_sentinel")) {
|
|
591
593
|
t34 = {};
|
|
592
594
|
t35 = /*#__PURE__*/jsx("span", {
|
|
593
595
|
className: classes.Spacer
|
|
594
596
|
});
|
|
595
|
-
$[
|
|
596
|
-
$[
|
|
597
|
+
$[94] = t34;
|
|
598
|
+
$[95] = t35;
|
|
597
599
|
} else {
|
|
598
|
-
t34 = $[
|
|
599
|
-
t35 = $[
|
|
600
|
+
t34 = $[94];
|
|
601
|
+
t35 = $[95];
|
|
600
602
|
}
|
|
601
603
|
let t36;
|
|
602
|
-
if ($[
|
|
604
|
+
if ($[96] !== selected) {
|
|
603
605
|
t36 = /*#__PURE__*/jsx(Selection, {
|
|
604
606
|
selected: selected,
|
|
605
607
|
className: classes.LeadingAction
|
|
606
608
|
});
|
|
607
|
-
$[
|
|
608
|
-
$[
|
|
609
|
+
$[96] = selected;
|
|
610
|
+
$[97] = t36;
|
|
609
611
|
} else {
|
|
610
|
-
t36 = $[
|
|
612
|
+
t36 = $[97];
|
|
611
613
|
}
|
|
612
614
|
const t37 = showInactiveIndicator ? inactiveText : undefined;
|
|
613
615
|
const t38 = Boolean(slots.leadingVisual);
|
|
614
616
|
let t39;
|
|
615
|
-
if ($[
|
|
617
|
+
if ($[98] !== labelId || $[99] !== loading || $[100] !== slots.leadingVisual || $[101] !== t37 || $[102] !== t38) {
|
|
616
618
|
t39 = /*#__PURE__*/jsx(VisualOrIndicator, {
|
|
617
619
|
inactiveText: t37,
|
|
618
620
|
itemHasLeadingVisual: t38,
|
|
@@ -621,61 +623,61 @@ const UnwrappedItem = (t0, forwardedRef) => {
|
|
|
621
623
|
position: "leading",
|
|
622
624
|
children: slots.leadingVisual
|
|
623
625
|
});
|
|
624
|
-
$[
|
|
625
|
-
$[
|
|
626
|
-
$[
|
|
627
|
-
$[
|
|
628
|
-
$[
|
|
629
|
-
$[
|
|
626
|
+
$[98] = labelId;
|
|
627
|
+
$[99] = loading;
|
|
628
|
+
$[100] = slots.leadingVisual;
|
|
629
|
+
$[101] = t37;
|
|
630
|
+
$[102] = t38;
|
|
631
|
+
$[103] = t39;
|
|
630
632
|
} else {
|
|
631
|
-
t39 = $[
|
|
633
|
+
t39 = $[103];
|
|
632
634
|
}
|
|
633
635
|
const t40 = !!slots.description;
|
|
634
636
|
let t41;
|
|
635
|
-
if ($[
|
|
637
|
+
if ($[104] !== inactive || $[105] !== loading) {
|
|
636
638
|
t41 = loading === true && !inactive && /*#__PURE__*/jsx(VisuallyHidden, {
|
|
637
639
|
children: "Loading"
|
|
638
640
|
});
|
|
639
|
-
$[
|
|
640
|
-
$[
|
|
641
|
-
$[
|
|
641
|
+
$[104] = inactive;
|
|
642
|
+
$[105] = loading;
|
|
643
|
+
$[106] = t41;
|
|
642
644
|
} else {
|
|
643
|
-
t41 = $[
|
|
645
|
+
t41 = $[106];
|
|
644
646
|
}
|
|
645
647
|
let t42;
|
|
646
|
-
if ($[
|
|
648
|
+
if ($[107] !== childrenWithoutSlots || $[108] !== labelId || $[109] !== t41) {
|
|
647
649
|
t42 = /*#__PURE__*/jsxs("span", {
|
|
648
650
|
id: labelId,
|
|
649
651
|
className: classes.ItemLabel,
|
|
650
652
|
children: [childrenWithoutSlots, t41]
|
|
651
653
|
});
|
|
652
|
-
$[
|
|
653
|
-
$[
|
|
654
|
-
$[
|
|
655
|
-
$[
|
|
654
|
+
$[107] = childrenWithoutSlots;
|
|
655
|
+
$[108] = labelId;
|
|
656
|
+
$[109] = t41;
|
|
657
|
+
$[110] = t42;
|
|
656
658
|
} else {
|
|
657
|
-
t42 = $[
|
|
659
|
+
t42 = $[110];
|
|
658
660
|
}
|
|
659
661
|
let t43;
|
|
660
|
-
if ($[
|
|
662
|
+
if ($[111] !== descriptionVariant || $[112] !== slots.description || $[113] !== t40 || $[114] !== t42) {
|
|
661
663
|
t43 = /*#__PURE__*/jsxs(ConditionalWrapper, {
|
|
662
664
|
if: t40,
|
|
663
665
|
className: classes.ItemDescriptionWrap,
|
|
664
666
|
"data-description-variant": descriptionVariant,
|
|
665
667
|
children: [t42, slots.description]
|
|
666
668
|
});
|
|
667
|
-
$[
|
|
668
|
-
$[
|
|
669
|
-
$[
|
|
670
|
-
$[
|
|
671
|
-
$[
|
|
669
|
+
$[111] = descriptionVariant;
|
|
670
|
+
$[112] = slots.description;
|
|
671
|
+
$[113] = t40;
|
|
672
|
+
$[114] = t42;
|
|
673
|
+
$[115] = t43;
|
|
672
674
|
} else {
|
|
673
|
-
t43 = $[
|
|
675
|
+
t43 = $[115];
|
|
674
676
|
}
|
|
675
677
|
const t44 = showInactiveIndicator ? inactiveText : undefined;
|
|
676
678
|
const t45 = Boolean(slots.leadingVisual);
|
|
677
679
|
let t46;
|
|
678
|
-
if ($[
|
|
680
|
+
if ($[116] !== labelId || $[117] !== loading || $[118] !== t44 || $[119] !== t45 || $[120] !== trailingVisual) {
|
|
679
681
|
t46 = /*#__PURE__*/jsx(VisualOrIndicator, {
|
|
680
682
|
inactiveText: t44,
|
|
681
683
|
itemHasLeadingVisual: t45,
|
|
@@ -684,58 +686,58 @@ const UnwrappedItem = (t0, forwardedRef) => {
|
|
|
684
686
|
position: "trailing",
|
|
685
687
|
children: trailingVisual
|
|
686
688
|
});
|
|
687
|
-
$[
|
|
688
|
-
$[
|
|
689
|
-
$[
|
|
690
|
-
$[
|
|
691
|
-
$[
|
|
692
|
-
$[
|
|
689
|
+
$[116] = labelId;
|
|
690
|
+
$[117] = loading;
|
|
691
|
+
$[118] = t44;
|
|
692
|
+
$[119] = t45;
|
|
693
|
+
$[120] = trailingVisual;
|
|
694
|
+
$[121] = t46;
|
|
693
695
|
} else {
|
|
694
|
-
t46 = $[
|
|
696
|
+
t46 = $[121];
|
|
695
697
|
}
|
|
696
698
|
let t47;
|
|
697
|
-
if ($[
|
|
699
|
+
if ($[122] !== inactiveText || $[123] !== inactiveWarningId || $[124] !== showInactiveIndicator) {
|
|
698
700
|
t47 = !showInactiveIndicator && inactiveText ? /*#__PURE__*/jsx("span", {
|
|
699
701
|
className: classes.InactiveWarning,
|
|
700
702
|
id: inactiveWarningId,
|
|
701
703
|
children: inactiveText
|
|
702
704
|
}) : null;
|
|
703
|
-
$[
|
|
704
|
-
$[
|
|
705
|
-
$[
|
|
706
|
-
$[
|
|
705
|
+
$[122] = inactiveText;
|
|
706
|
+
$[123] = inactiveWarningId;
|
|
707
|
+
$[124] = showInactiveIndicator;
|
|
708
|
+
$[125] = t47;
|
|
707
709
|
} else {
|
|
708
|
-
t47 = $[
|
|
710
|
+
t47 = $[125];
|
|
709
711
|
}
|
|
710
712
|
let t48;
|
|
711
|
-
if ($[
|
|
713
|
+
if ($[126] !== t43 || $[127] !== t46 || $[128] !== t47) {
|
|
712
714
|
t48 = /*#__PURE__*/jsxs("span", {
|
|
713
715
|
className: classes.ActionListSubContent,
|
|
714
716
|
"data-component": "ActionList.Item--DividerContainer",
|
|
715
717
|
children: [t43, t46, t47]
|
|
716
718
|
});
|
|
717
|
-
$[
|
|
718
|
-
$[
|
|
719
|
-
$[
|
|
720
|
-
$[
|
|
719
|
+
$[126] = t43;
|
|
720
|
+
$[127] = t46;
|
|
721
|
+
$[128] = t47;
|
|
722
|
+
$[129] = t48;
|
|
721
723
|
} else {
|
|
722
|
-
t48 = $[
|
|
724
|
+
t48 = $[129];
|
|
723
725
|
}
|
|
724
726
|
let t49;
|
|
725
|
-
if ($[
|
|
727
|
+
if ($[130] !== t36 || $[131] !== t39 || $[132] !== t48) {
|
|
726
728
|
t49 = /*#__PURE__*/jsxs(TooltipContext.Provider, {
|
|
727
729
|
value: t34,
|
|
728
730
|
children: [t35, t36, t39, t48]
|
|
729
731
|
});
|
|
730
|
-
$[
|
|
731
|
-
$[
|
|
732
|
-
$[
|
|
733
|
-
$[
|
|
732
|
+
$[130] = t36;
|
|
733
|
+
$[131] = t39;
|
|
734
|
+
$[132] = t48;
|
|
735
|
+
$[133] = t49;
|
|
734
736
|
} else {
|
|
735
|
-
t49 = $[
|
|
737
|
+
t49 = $[133];
|
|
736
738
|
}
|
|
737
739
|
let t50;
|
|
738
|
-
if ($[
|
|
740
|
+
if ($[134] !== ItemWrapper || $[135] !== forwardedRef || $[136] !== size || $[137] !== t49 || $[138] !== wrapperProps) {
|
|
739
741
|
t50 = /*#__PURE__*/jsx(ItemWrapper, {
|
|
740
742
|
...wrapperProps,
|
|
741
743
|
className: classes.ActionListContent,
|
|
@@ -743,34 +745,34 @@ const UnwrappedItem = (t0, forwardedRef) => {
|
|
|
743
745
|
ref: forwardedRef,
|
|
744
746
|
children: t49
|
|
745
747
|
});
|
|
746
|
-
$[
|
|
747
|
-
$[
|
|
748
|
-
$[
|
|
749
|
-
$[
|
|
750
|
-
$[
|
|
751
|
-
$[
|
|
748
|
+
$[134] = ItemWrapper;
|
|
749
|
+
$[135] = forwardedRef;
|
|
750
|
+
$[136] = size;
|
|
751
|
+
$[137] = t49;
|
|
752
|
+
$[138] = wrapperProps;
|
|
753
|
+
$[139] = t50;
|
|
752
754
|
} else {
|
|
753
|
-
t50 = $[
|
|
755
|
+
t50 = $[139];
|
|
754
756
|
}
|
|
755
757
|
let t51;
|
|
756
|
-
if ($[
|
|
758
|
+
if ($[140] !== buttonSemantics || $[141] !== forwardedRef || $[142] !== t50 || $[143] !== truncatedText) {
|
|
757
759
|
t51 = /*#__PURE__*/jsx(ConditionalTooltip, {
|
|
758
760
|
ref: forwardedRef,
|
|
759
761
|
text: truncatedText,
|
|
760
762
|
enabled: buttonSemantics,
|
|
761
763
|
children: t50
|
|
762
764
|
});
|
|
763
|
-
$[
|
|
764
|
-
$[
|
|
765
|
-
$[
|
|
766
|
-
$[
|
|
767
|
-
$[
|
|
765
|
+
$[140] = buttonSemantics;
|
|
766
|
+
$[141] = forwardedRef;
|
|
767
|
+
$[142] = t50;
|
|
768
|
+
$[143] = truncatedText;
|
|
769
|
+
$[144] = t51;
|
|
768
770
|
} else {
|
|
769
|
-
t51 = $[
|
|
771
|
+
t51 = $[144];
|
|
770
772
|
}
|
|
771
773
|
const t52 = !inactive && !loading && !menuContext && Boolean(slots.trailingAction) && slots.trailingAction;
|
|
772
774
|
let t53;
|
|
773
|
-
if ($[
|
|
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) {
|
|
774
776
|
t53 = /*#__PURE__*/jsxs("li", {
|
|
775
777
|
...containerProps,
|
|
776
778
|
ref: t26,
|
|
@@ -783,33 +785,33 @@ const UnwrappedItem = (t0, forwardedRef) => {
|
|
|
783
785
|
className: t33,
|
|
784
786
|
children: [t51, t52, slots.subItem]
|
|
785
787
|
});
|
|
786
|
-
$[
|
|
787
|
-
$[
|
|
788
|
-
$[
|
|
789
|
-
$[
|
|
790
|
-
$[
|
|
791
|
-
$[
|
|
792
|
-
$[
|
|
793
|
-
$[
|
|
794
|
-
$[
|
|
795
|
-
$[
|
|
796
|
-
$[
|
|
797
|
-
$[
|
|
798
|
-
$[
|
|
799
|
-
} else {
|
|
800
|
-
t53 = $[
|
|
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];
|
|
801
803
|
}
|
|
802
804
|
let t54;
|
|
803
|
-
if ($[
|
|
805
|
+
if ($[158] !== itemContextValue || $[159] !== t53) {
|
|
804
806
|
t54 = /*#__PURE__*/jsx(ItemContext.Provider, {
|
|
805
807
|
value: itemContextValue,
|
|
806
808
|
children: t53
|
|
807
809
|
});
|
|
808
|
-
$[
|
|
809
|
-
$[
|
|
810
|
-
$[
|
|
810
|
+
$[158] = itemContextValue;
|
|
811
|
+
$[159] = t53;
|
|
812
|
+
$[160] = t54;
|
|
811
813
|
} else {
|
|
812
|
-
t54 = $[
|
|
814
|
+
t54 = $[160];
|
|
813
815
|
}
|
|
814
816
|
return t54;
|
|
815
817
|
};
|
package/package.json
CHANGED