softbuilders-react-video-player 1.1.64 → 1.1.66

Sign up to get free protection for your applications and to get access to all the features.
@@ -29,12 +29,12 @@ const MenuButton = ({ buttonContent, menuContent, close, classContainer, onClick
29
29
  }, [isOpen]);
30
30
  return (_jsxs("div", { className: "sb-relative sb-flex sb-items-end", children: [_jsx("button", { ref: buttonRef, onClick: (e) => {
31
31
  e.stopPropagation();
32
- if (!disablePopUp) {
33
- toggleMenu();
34
- onClick && onClick(e, !isOpen);
35
- }
36
- noteButtonClick && noteButtonClick(isOpen);
37
- }, "aria-haspopup": "true", "aria-expanded": isOpen, "aria-label": "Open menu", children: buttonContent }), isOpen && (_jsx("div", { ref: menuRef, role: "menu", "aria-orientation": "vertical", "aria-labelledby": "Open menu", className: `sb-absolute sb-shadow-lg sb-right-0 sb-bottom-10 ${classContainer}`, children: menuContent }))] }));
32
+ // if (!disablePopUp) {
33
+ toggleMenu();
34
+ onClick && onClick(e, !isOpen);
35
+ // }
36
+ noteButtonClick && noteButtonClick(!isOpen);
37
+ }, "aria-haspopup": "true", "aria-expanded": isOpen, "aria-label": "Open menu", children: buttonContent }), !disablePopUp && isOpen && (_jsx("div", { ref: menuRef, role: "menu", "aria-orientation": "vertical", "aria-labelledby": "Open menu", className: `sb-absolute sb-shadow-lg sb-right-0 sb-bottom-10 ${classContainer}`, children: menuContent }))] }));
38
38
  };
39
39
  export default MenuButton;
40
40
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/MenuButton/index.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAcxE,MAAM,UAAU,GAAG,CAAC,EAClB,aAAa,EACb,WAAW,EACX,KAAK,EACL,cAAc,EACd,OAAO,EACP,WAAW,EACX,eAAe,EACf,YAAY,GAAG,KAAK,GACd,EAAE,EAAE;IACV,MAAM,CAAC,MAAM,EAAE,SAAS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AK,SAAS,EAAC,mCAAmC,aAChD,iBACE,GAAG,EAAE,SAAS,EACd,OAAO,EAAE,CAAC,CAAM,EAAE,EAAE;oBAClB,CAAC,CAAC,eAAe,EAAE,CAAC;oBACpB,IAAI,CAAC,YAAY,EAAE,CAAC;wBAClB,UAAU,EAAE,CAAC;wBACb,OAAO,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;oBACjC,CAAC;oBAED,eAAe,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC;gBAC7C,CAAC,mBACa,MAAM,mBACL,MAAM,gBACV,WAAW,YAErB,aAAa,GACP,EAER,MAAM,IAAI,CACT,cACE,GAAG,EAAE,OAAO,EACZ,IAAI,EAAC,MAAM,sBACM,UAAU,qBACX,WAAW,EAC3B,SAAS,EAAE,oDAAoD,cAAc,EAAE,YAE9E,WAAW,GACR,CACP,IACG,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/MenuButton/index.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAcxE,MAAM,UAAU,GAAG,CAAC,EAClB,aAAa,EACb,WAAW,EACX,KAAK,EACL,cAAc,EACd,OAAO,EACP,WAAW,EACX,eAAe,EACf,YAAY,GAAG,KAAK,GACd,EAAE,EAAE;IACV,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC5C,MAAM,SAAS,GAAG,MAAM,CAA2B,IAAI,CAAC,CAAC;IACzD,MAAM,OAAO,GAAG,MAAM,CAAwB,IAAI,CAAC,CAAC;IAEpD,MAAM,UAAU,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;IAEpD,MAAM,SAAS,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,CAAC,MAAM,CAAC,CAAC;gBAC9C,CAAC,mBACa,MAAM,mBACL,MAAM,gBACV,WAAW,YAErB,aAAa,GACP,EAER,CAAC,YAAY,IAAI,MAAM,IAAI,CAC1B,cACE,GAAG,EAAE,OAAO,EACZ,IAAI,EAAC,MAAM,sBACM,UAAU,qBACX,WAAW,EAC3B,SAAS,EAAE,oDAAoD,cAAc,EAAE,YAE9E,WAAW,GACR,CACP,IACG,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -60,12 +60,12 @@ const MenuButton = ({
60
60
  ref={buttonRef}
61
61
  onClick={(e: any) => {
62
62
  e.stopPropagation();
63
- if (!disablePopUp) {
64
- toggleMenu();
65
- onClick && onClick(e, !isOpen);
66
- }
63
+ // if (!disablePopUp) {
64
+ toggleMenu();
65
+ onClick && onClick(e, !isOpen);
66
+ // }
67
67
 
68
- noteButtonClick && noteButtonClick(isOpen);
68
+ noteButtonClick && noteButtonClick(!isOpen);
69
69
  }}
70
70
  aria-haspopup="true"
71
71
  aria-expanded={isOpen}
@@ -74,7 +74,7 @@ const MenuButton = ({
74
74
  {buttonContent}
75
75
  </button>
76
76
 
77
- {isOpen && (
77
+ {!disablePopUp && isOpen && (
78
78
  <div
79
79
  ref={menuRef}
80
80
  role="menu"
package/dist/index.mjs CHANGED
@@ -641,11 +641,9 @@ var MenuButton = ({
641
641
  ref: buttonRef,
642
642
  onClick: (e) => {
643
643
  e.stopPropagation();
644
- if (!disablePopUp) {
645
- toggleMenu();
646
- onClick && onClick(e, !isOpen);
647
- }
648
- noteButtonClick && noteButtonClick(isOpen);
644
+ toggleMenu();
645
+ onClick && onClick(e, !isOpen);
646
+ noteButtonClick && noteButtonClick(!isOpen);
649
647
  },
650
648
  "aria-haspopup": "true",
651
649
  "aria-expanded": isOpen,
@@ -653,7 +651,7 @@ var MenuButton = ({
653
651
  children: buttonContent
654
652
  }
655
653
  ),
656
- isOpen && /* @__PURE__ */ jsx20(
654
+ !disablePopUp && isOpen && /* @__PURE__ */ jsx20(
657
655
  "div",
658
656
  {
659
657
  ref: menuRef,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "softbuilders-react-video-player",
3
3
  "description": "Standalone video player component",
4
- "version": "1.1.64",
4
+ "version": "1.1.66",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [