@loafmarkets/ui 0.1.125 → 0.1.127

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/dist/index.mjs CHANGED
@@ -4940,6 +4940,16 @@ var Header = ({
4940
4940
  return next;
4941
4941
  });
4942
4942
  }, []);
4943
+ useEffect(() => {
4944
+ const handler = () => {
4945
+ if (LoginPopupComponent) {
4946
+ setLoginPopupInitialView("funding");
4947
+ setShowLoginPopup(true);
4948
+ }
4949
+ };
4950
+ window.addEventListener("loaf:open-funding", handler);
4951
+ return () => window.removeEventListener("loaf:open-funding", handler);
4952
+ }, [LoginPopupComponent]);
4943
4953
  const updatePortfolioArrow = useCallback(() => {
4944
4954
  const eye = document.getElementById("portfolio-eye-toggle");
4945
4955
  const pill = portfolioPillRef.current;
@@ -5968,7 +5978,7 @@ var PortfolioEyeButton = styled25.button`
5968
5978
  justify-content: center;
5969
5979
  color: ${(p) => p.$active ? "#D4AF37" : "rgba(255,255,255,0.5)"};
5970
5980
  transition: all 0.2s ease;
5971
- margin-right: 4px;
5981
+ margin-right: 10px;
5972
5982
 
5973
5983
  &:hover {
5974
5984
  background: rgba(212, 175, 55, 0.2);
@@ -5977,7 +5987,7 @@ var PortfolioEyeButton = styled25.button`
5977
5987
 
5978
5988
  @media (max-width: 768px) {
5979
5989
  padding: 4px;
5980
- margin-right: 2px;
5990
+ margin-right: 6px;
5981
5991
  }
5982
5992
  `;
5983
5993
  var DepositButton = styled25.button`
@@ -5990,7 +6000,8 @@ var DepositButton = styled25.button`
5990
6000
  font-weight: 600;
5991
6001
  cursor: pointer;
5992
6002
  transition: background 0.15s;
5993
- margin-right: 6px;
6003
+ margin-left: 4px;
6004
+ margin-right: 12px;
5994
6005
  white-space: nowrap;
5995
6006
 
5996
6007
  &:hover {