Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@chakra-ui/menu

Package Overview
Dependencies
Maintainers
4
Versions
556
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chakra-ui/menu - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

18

CHANGELOG.md
# Change Log
## 1.0.3
### Patch Changes
- [`5bff79a1`](https://github.com/chakra-ui/chakra-ui/commit/5bff79a1ba6989d279fc432d5040c72cd75b392e)
Thanks [@jmiazga](https://github.com/jmiazga)! - Updated framer-motion
peerDependencies to v3
- Updated dependencies
[[`5bff79a1`](https://github.com/chakra-ui/chakra-ui/commit/5bff79a1ba6989d279fc432d5040c72cd75b392e),
[`e73878ee`](https://github.com/chakra-ui/chakra-ui/commit/e73878ee686c11d3f94ad6ac61b19ae9508d75a5)]:
- @chakra-ui/transition@1.0.3
- @chakra-ui/utils@1.0.2
- @chakra-ui/clickable@1.0.2
- @chakra-ui/hooks@1.0.2
- @chakra-ui/popper@1.0.2
- @chakra-ui/descendant@1.0.2
## 1.0.2

@@ -4,0 +22,0 @@

16

dist/cjs/menu.js

@@ -56,3 +56,3 @@ "use strict";

var StyledMenuButton = /*#__PURE__*/(0, _system.forwardRef)(function StyledMenuButton(props, ref) {
var StyledMenuButton = /*#__PURE__*/(0, _system.forwardRef)(function (props, ref) {
var styles = (0, _system.useStyles)();

@@ -75,3 +75,3 @@ return /*#__PURE__*/React.createElement(_system.chakra.button, _extends({

var MenuButton = /*#__PURE__*/(0, _system.forwardRef)(function MenuButton(props, ref) {
var MenuButton = /*#__PURE__*/(0, _system.forwardRef)(function (props, ref) {
var children = props.children,

@@ -121,3 +121,3 @@ As = props.as,

var Motion = (0, _system.chakra)(_framerMotion.motion.div);
var MenuList = /*#__PURE__*/(0, _system.forwardRef)(function MenuList(props, ref) {
var MenuList = /*#__PURE__*/(0, _system.forwardRef)(function (props, ref) {
var _styles$list;

@@ -157,3 +157,3 @@

var StyledMenuItem = /*#__PURE__*/(0, _system.forwardRef)(function StyledMenuItem(props, ref) {
var StyledMenuItem = /*#__PURE__*/(0, _system.forwardRef)(function (props, ref) {
var type = props.type,

@@ -190,3 +190,3 @@ rest = _objectWithoutPropertiesLoose(props, ["type"]);

});
var MenuItem = /*#__PURE__*/(0, _system.forwardRef)(function MenuItem(props, ref) {
var MenuItem = /*#__PURE__*/(0, _system.forwardRef)(function (props, ref) {
var icon = props.icon,

@@ -231,3 +231,3 @@ _props$iconSpacing = props.iconSpacing,

var MenuItemOption = /*#__PURE__*/(0, _system.forwardRef)(function MenuItemOption(props, ref) {
var MenuItemOption = /*#__PURE__*/(0, _system.forwardRef)(function (props, ref) {
var icon = props.icon,

@@ -274,3 +274,3 @@ _props$iconSpacing2 = props.iconSpacing,

var MenuGroup = /*#__PURE__*/(0, _system.forwardRef)(function MenuGroup(props, ref) {
var MenuGroup = /*#__PURE__*/(0, _system.forwardRef)(function (props, ref) {
var title = props.title,

@@ -300,3 +300,3 @@ children = props.children,

var MenuCommand = /*#__PURE__*/(0, _system.forwardRef)(function MenuCommand(props, ref) {
var MenuCommand = /*#__PURE__*/(0, _system.forwardRef)(function (props, ref) {
var styles = (0, _system.useStyles)();

@@ -303,0 +303,0 @@ return /*#__PURE__*/React.createElement(_system.chakra.span, _extends({

@@ -79,3 +79,3 @@ "use strict";

if (isOpen && closeOnBlur && !((_buttonRef$current = buttonRef.current) == null ? void 0 : _buttonRef$current.contains(event.target))) {
if (isOpen && closeOnBlur && !((_buttonRef$current = buttonRef.current) != null && _buttonRef$current.contains(event.target))) {
onClose();

@@ -82,0 +82,0 @@ }

@@ -43,3 +43,3 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }

var StyledMenuButton = /*#__PURE__*/forwardRef(function StyledMenuButton(props, ref) {
var StyledMenuButton = /*#__PURE__*/forwardRef((props, ref) => {
var styles = useStyles();

@@ -62,3 +62,3 @@ return /*#__PURE__*/React.createElement(chakra.button, _extends({

export var MenuButton = /*#__PURE__*/forwardRef(function MenuButton(props, ref) {
export var MenuButton = /*#__PURE__*/forwardRef((props, ref) => {
var {

@@ -108,3 +108,3 @@ as: As

var Motion = chakra(motion.div);
export var MenuList = /*#__PURE__*/forwardRef(function MenuList(props, ref) {
export var MenuList = /*#__PURE__*/forwardRef((props, ref) => {
var _styles$list;

@@ -143,3 +143,3 @@

var StyledMenuItem = /*#__PURE__*/forwardRef(function StyledMenuItem(props, ref) {
var StyledMenuItem = /*#__PURE__*/forwardRef((props, ref) => {
var {

@@ -178,3 +178,3 @@ type

});
export var MenuItem = /*#__PURE__*/forwardRef(function MenuItem(props, ref) {
export var MenuItem = /*#__PURE__*/forwardRef((props, ref) => {
var {

@@ -217,3 +217,3 @@ icon,

export var MenuItemOption = /*#__PURE__*/forwardRef(function MenuItemOption(props, ref) {
export var MenuItemOption = /*#__PURE__*/forwardRef((props, ref) => {
var {

@@ -260,3 +260,3 @@ icon,

export var MenuGroup = /*#__PURE__*/forwardRef(function MenuGroup(props, ref) {
export var MenuGroup = /*#__PURE__*/forwardRef((props, ref) => {
var {

@@ -287,3 +287,3 @@ title,

export var MenuCommand = /*#__PURE__*/forwardRef(function MenuCommand(props, ref) {
export var MenuCommand = /*#__PURE__*/forwardRef((props, ref) => {
var styles = useStyles();

@@ -290,0 +290,0 @@ return /*#__PURE__*/React.createElement(chakra.span, _extends({

@@ -49,3 +49,3 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }

if (isOpen && closeOnBlur && !((_buttonRef$current = buttonRef.current) == null ? void 0 : _buttonRef$current.contains(event.target))) {
if (isOpen && closeOnBlur && !((_buttonRef$current = buttonRef.current) != null && _buttonRef$current.contains(event.target))) {
onClose();

@@ -52,0 +52,0 @@ }

{
"name": "@chakra-ui/menu",
"version": "1.0.2",
"version": "1.0.3",
"description": "A React component to render accessible menus",

@@ -57,12 +57,12 @@ "keywords": [

"dependencies": {
"@chakra-ui/clickable": "1.0.1",
"@chakra-ui/descendant": "1.0.1",
"@chakra-ui/hooks": "1.0.1",
"@chakra-ui/popper": "1.0.1",
"@chakra-ui/transition": "1.0.2",
"@chakra-ui/utils": "1.0.1"
"@chakra-ui/clickable": "1.0.2",
"@chakra-ui/descendant": "1.0.2",
"@chakra-ui/hooks": "1.0.2",
"@chakra-ui/popper": "1.0.2",
"@chakra-ui/transition": "1.0.3",
"@chakra-ui/utils": "1.0.2"
},
"devDependencies": {
"@chakra-ui/system": "1.0.1",
"framer-motion": "^2.9.4",
"@chakra-ui/system": "1.1.0",
"framer-motion": "3.0.0",
"react": "^17.0.1"

@@ -72,5 +72,5 @@ },

"@chakra-ui/system": ">=1.0.0",
"framer-motion": "^2.9.4",
"framer-motion": ">=3.0.0",
"react": "16.x || 17.x"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc