@kaizen/components 0.0.0-canary-03-LOGS-titleblock-20251211222949 → 0.0.0-canary-04-titleblock-logic-20251211225600
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.
|
@@ -46,10 +46,12 @@ var renderCombinedSecondaryOverflowMenu = function (secondaryActions, secondaryO
|
|
|
46
46
|
console.log('this is renderCombinedSecondaryOverflowMenu called');
|
|
47
47
|
var secondaryConverted = secondaryActions ? utils.convertSecondaryActionsToMenuItems(secondaryActions) : [];
|
|
48
48
|
var overflowItems = secondaryOverflowMenuItems !== null && secondaryOverflowMenuItems !== void 0 ? secondaryOverflowMenuItems : [];
|
|
49
|
+
console.log('this is secondaryConverted', secondaryConverted);
|
|
49
50
|
console.log('this is secondaryConverted:', secondaryConverted);
|
|
50
51
|
console.log('this is overflowItems:', overflowItems);
|
|
51
52
|
// Only render if we have at least one secondary action AND at least one overflow item to avoid duplicating single menus
|
|
52
|
-
|
|
53
|
+
// || overflowItems.length === 0
|
|
54
|
+
if (secondaryConverted.length === 0) return undefined;
|
|
53
55
|
var combined = tslib.__spreadArray(tslib.__spreadArray([], secondaryConverted, true), overflowItems, true);
|
|
54
56
|
console.log('this is combined:', combined);
|
|
55
57
|
return React__default.default.createElement("div", {
|
|
@@ -38,10 +38,12 @@ var renderCombinedSecondaryOverflowMenu = function (secondaryActions, secondaryO
|
|
|
38
38
|
console.log('this is renderCombinedSecondaryOverflowMenu called');
|
|
39
39
|
var secondaryConverted = secondaryActions ? convertSecondaryActionsToMenuItems(secondaryActions) : [];
|
|
40
40
|
var overflowItems = secondaryOverflowMenuItems !== null && secondaryOverflowMenuItems !== void 0 ? secondaryOverflowMenuItems : [];
|
|
41
|
+
console.log('this is secondaryConverted', secondaryConverted);
|
|
41
42
|
console.log('this is secondaryConverted:', secondaryConverted);
|
|
42
43
|
console.log('this is overflowItems:', overflowItems);
|
|
43
44
|
// Only render if we have at least one secondary action AND at least one overflow item to avoid duplicating single menus
|
|
44
|
-
|
|
45
|
+
// || overflowItems.length === 0
|
|
46
|
+
if (secondaryConverted.length === 0) return undefined;
|
|
45
47
|
var combined = __spreadArray(__spreadArray([], secondaryConverted, true), overflowItems, true);
|
|
46
48
|
console.log('this is combined:', combined);
|
|
47
49
|
return /*#__PURE__*/React.createElement("div", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kaizen/components",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-04-titleblock-logic-20251211225600",
|
|
4
4
|
"description": "Kaizen component library",
|
|
5
5
|
"author": "Geoffrey Chong <geoff.chong@cultureamp.com>",
|
|
6
6
|
"homepage": "https://cultureamp.design",
|
|
@@ -57,11 +57,13 @@ const renderCombinedSecondaryOverflowMenu = (
|
|
|
57
57
|
? convertSecondaryActionsToMenuItems(secondaryActions)
|
|
58
58
|
: []
|
|
59
59
|
const overflowItems = secondaryOverflowMenuItems ?? []
|
|
60
|
-
|
|
60
|
+
console.log('this is secondaryConverted', secondaryConverted)
|
|
61
61
|
console.log('this is secondaryConverted:', secondaryConverted)
|
|
62
62
|
console.log('this is overflowItems:', overflowItems)
|
|
63
63
|
// Only render if we have at least one secondary action AND at least one overflow item to avoid duplicating single menus
|
|
64
|
-
|
|
64
|
+
|
|
65
|
+
// || overflowItems.length === 0
|
|
66
|
+
if (secondaryConverted.length === 0) return undefined
|
|
65
67
|
const combined = [...secondaryConverted, ...overflowItems]
|
|
66
68
|
console.log('this is combined:', combined)
|
|
67
69
|
return (
|