@zendeskgarden/container-menu
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -599,2 +599,3 @@ /** | ||
win.document.removeEventListener('click', handleMenuBlur, true); | ||
win.document.removeEventListener('keydown', handleMenuKeyDown, true); | ||
}; | ||
@@ -652,6 +653,6 @@ }, [controlledIsExpanded, handleMenuBlur, handleMenuKeyDown, environment]); | ||
'data-garden-container-id': 'containers.menu.trigger', | ||
'data-garden-container-version': '0.2.0', | ||
'data-garden-container-version': '0.2.1', | ||
ref: triggerRef, | ||
id: triggerId, | ||
'aria-expanded': state.isExpanded, | ||
'aria-expanded': controlledIsExpanded, | ||
'aria-haspopup': true, | ||
@@ -665,3 +666,3 @@ disabled, | ||
}; | ||
}, [triggerRef, state.isExpanded, handleTriggerClick, handleTriggerKeyDown, triggerId]); | ||
}, [triggerRef, controlledIsExpanded, handleTriggerClick, handleTriggerKeyDown, triggerId]); | ||
const getMenuProps = React.useCallback(function (_temp2) { | ||
@@ -679,3 +680,3 @@ let { | ||
'data-garden-container-id': 'containers.menu', | ||
'data-garden-container-version': '0.2.0', | ||
'data-garden-container-version': '0.2.1', | ||
'aria-labelledby': triggerId, | ||
@@ -695,3 +696,3 @@ tabIndex: -1, | ||
'data-garden-container-id': 'containers.menu.separator', | ||
'data-garden-container-version': '0.2.0', | ||
'data-garden-container-version': '0.2.1', | ||
role: role === null ? undefined : role | ||
@@ -708,3 +709,3 @@ }; | ||
'data-garden-container-id': 'containers.menu.item_group', | ||
'data-garden-container-version': '0.2.0', | ||
'data-garden-container-version': '0.2.1', | ||
role: role === null ? undefined : role | ||
@@ -740,3 +741,3 @@ }; | ||
'data-garden-container-id': 'containers.menu.item', | ||
'data-garden-container-version': '0.2.0', | ||
'data-garden-container-version': '0.2.1', | ||
'aria-selected': undefined, | ||
@@ -743,0 +744,0 @@ 'aria-checked': selected, |
@@ -597,2 +597,3 @@ /** | ||
win.document.removeEventListener('click', handleMenuBlur, true); | ||
win.document.removeEventListener('keydown', handleMenuKeyDown, true); | ||
}; | ||
@@ -650,6 +651,6 @@ }, [controlledIsExpanded, handleMenuBlur, handleMenuKeyDown, environment]); | ||
'data-garden-container-id': 'containers.menu.trigger', | ||
'data-garden-container-version': '0.2.0', | ||
'data-garden-container-version': '0.2.1', | ||
ref: triggerRef, | ||
id: triggerId, | ||
'aria-expanded': state.isExpanded, | ||
'aria-expanded': controlledIsExpanded, | ||
'aria-haspopup': true, | ||
@@ -663,3 +664,3 @@ disabled, | ||
}; | ||
}, [triggerRef, state.isExpanded, handleTriggerClick, handleTriggerKeyDown, triggerId]); | ||
}, [triggerRef, controlledIsExpanded, handleTriggerClick, handleTriggerKeyDown, triggerId]); | ||
const getMenuProps = useCallback(function (_temp2) { | ||
@@ -677,3 +678,3 @@ let { | ||
'data-garden-container-id': 'containers.menu', | ||
'data-garden-container-version': '0.2.0', | ||
'data-garden-container-version': '0.2.1', | ||
'aria-labelledby': triggerId, | ||
@@ -693,3 +694,3 @@ tabIndex: -1, | ||
'data-garden-container-id': 'containers.menu.separator', | ||
'data-garden-container-version': '0.2.0', | ||
'data-garden-container-version': '0.2.1', | ||
role: role === null ? undefined : role | ||
@@ -706,3 +707,3 @@ }; | ||
'data-garden-container-id': 'containers.menu.item_group', | ||
'data-garden-container-version': '0.2.0', | ||
'data-garden-container-version': '0.2.1', | ||
role: role === null ? undefined : role | ||
@@ -738,3 +739,3 @@ }; | ||
'data-garden-container-id': 'containers.menu.item', | ||
'data-garden-container-version': '0.2.0', | ||
'data-garden-container-version': '0.2.1', | ||
'aria-selected': undefined, | ||
@@ -741,0 +742,0 @@ 'aria-checked': selected, |
{ | ||
"name": "@zendeskgarden/container-menu", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Containers relating to Menu in the Garden Design System", | ||
@@ -24,4 +24,4 @@ "license": "Apache-2.0", | ||
"@babel/runtime": "^7.8.4", | ||
"@zendeskgarden/container-selection": "^3.0.2", | ||
"@zendeskgarden/container-utilities": "^1.0.8" | ||
"@zendeskgarden/container-selection": "^3.0.5", | ||
"@zendeskgarden/container-utilities": "^1.0.11" | ||
}, | ||
@@ -47,3 +47,3 @@ "peerDependencies": { | ||
"zendeskgarden:src": "src/index.ts", | ||
"gitHead": "014474b642773f9a4f7c847b4791fa01ff324c43" | ||
"gitHead": "af1a1b1239291534b23c89b7697f88d3844fcb2f" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
73150
1787