@vechain/vechain-kit 1.9.0 → 1.9.2

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.d.cts CHANGED
@@ -3393,7 +3393,7 @@ type Props$o = {
3393
3393
  onClose: () => void;
3394
3394
  wallet: Wallet;
3395
3395
  };
3396
- declare const AccountMainContent: ({ setCurrentContent, wallet }: Props$o) => react_jsx_runtime.JSX.Element;
3396
+ declare const AccountMainContent: ({ setCurrentContent, wallet, onClose, }: Props$o) => react_jsx_runtime.JSX.Element;
3397
3397
 
3398
3398
  type Props$n = {
3399
3399
  setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
@@ -3673,12 +3673,13 @@ declare const ActionButton: ({ leftIcon, rightIcon, title, onClick, leftImage, h
3673
3673
  type Props$d = {
3674
3674
  wallet: Wallet;
3675
3675
  setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
3676
+ onClose: () => void;
3676
3677
  size?: string;
3677
3678
  onClick?: () => void;
3678
3679
  mt?: number;
3679
3680
  style?: StackProps;
3680
3681
  };
3681
- declare const AccountSelector: ({ wallet, size, onClick, mt, style, setCurrentContent, }: Props$d) => react_jsx_runtime.JSX.Element;
3682
+ declare const AccountSelector: ({ wallet, size, onClick, mt, style, setCurrentContent, onClose, }: Props$d) => react_jsx_runtime.JSX.Element;
3682
3683
 
3683
3684
  declare const BalanceSection: ({ mb, mt, onAssetsClick, }: {
3684
3685
  mb?: number;
package/dist/index.d.ts CHANGED
@@ -3393,7 +3393,7 @@ type Props$o = {
3393
3393
  onClose: () => void;
3394
3394
  wallet: Wallet;
3395
3395
  };
3396
- declare const AccountMainContent: ({ setCurrentContent, wallet }: Props$o) => react_jsx_runtime.JSX.Element;
3396
+ declare const AccountMainContent: ({ setCurrentContent, wallet, onClose, }: Props$o) => react_jsx_runtime.JSX.Element;
3397
3397
 
3398
3398
  type Props$n = {
3399
3399
  setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
@@ -3673,12 +3673,13 @@ declare const ActionButton: ({ leftIcon, rightIcon, title, onClick, leftImage, h
3673
3673
  type Props$d = {
3674
3674
  wallet: Wallet;
3675
3675
  setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
3676
+ onClose: () => void;
3676
3677
  size?: string;
3677
3678
  onClick?: () => void;
3678
3679
  mt?: number;
3679
3680
  style?: StackProps;
3680
3681
  };
3681
- declare const AccountSelector: ({ wallet, size, onClick, mt, style, setCurrentContent, }: Props$d) => react_jsx_runtime.JSX.Element;
3682
+ declare const AccountSelector: ({ wallet, size, onClick, mt, style, setCurrentContent, onClose, }: Props$d) => react_jsx_runtime.JSX.Element;
3682
3683
 
3683
3684
  declare const BalanceSection: ({ mb, mt, onAssetsClick, }: {
3684
3685
  mb?: number;
package/dist/index.js CHANGED
@@ -4804,7 +4804,7 @@ var AddressDisplay = ({
4804
4804
 
4805
4805
  // package.json
4806
4806
  var package_default = {
4807
- version: "1.9.0"};
4807
+ version: "1.9.2"};
4808
4808
  var VersionFooter = ({ ...props }) => {
4809
4809
  const { darkMode: isDark } = useVeChainKitConfig();
4810
4810
  return /* @__PURE__ */ jsxs(
@@ -4920,7 +4920,7 @@ var BaseModal = ({
4920
4920
  closeOnOverlayClick = true,
4921
4921
  blockScrollOnMount = false,
4922
4922
  allowExternalFocus = false,
4923
- backdropFilter,
4923
+ backdropFilter = "blur(5px)",
4924
4924
  isCloseable = true
4925
4925
  }) => {
4926
4926
  const [isDesktop] = useMediaQuery("(min-width: 768px)");
@@ -11249,7 +11249,11 @@ var ModalSettingsButton = ({
11249
11249
  }
11250
11250
  );
11251
11251
  };
11252
- var AccountMainContent = ({ setCurrentContent, wallet }) => {
11252
+ var AccountMainContent = ({
11253
+ setCurrentContent,
11254
+ wallet,
11255
+ onClose
11256
+ }) => {
11253
11257
  const { t } = useTranslation();
11254
11258
  const { network } = useVeChainKitConfig();
11255
11259
  return /* @__PURE__ */ jsxs(ScrollToTopWrapper, { children: [
@@ -11313,7 +11317,8 @@ var AccountMainContent = ({ setCurrentContent, wallet }) => {
11313
11317
  setCurrentContent("profile");
11314
11318
  },
11315
11319
  wallet,
11316
- setCurrentContent
11320
+ setCurrentContent,
11321
+ onClose
11317
11322
  }
11318
11323
  ),
11319
11324
  /* @__PURE__ */ jsx(
@@ -11480,7 +11485,8 @@ var AccountSelector = ({
11480
11485
  onClick,
11481
11486
  mt,
11482
11487
  style,
11483
- setCurrentContent
11488
+ setCurrentContent,
11489
+ onClose
11484
11490
  }) => {
11485
11491
  const [copied, setCopied] = useState(false);
11486
11492
  const { disconnect } = useWallet();
@@ -11497,6 +11503,7 @@ var AccountSelector = ({
11497
11503
  Analytics.auth.trackAuth("disconnect_initiated");
11498
11504
  disconnect();
11499
11505
  Analytics.auth.logoutCompleted();
11506
+ onClose();
11500
11507
  };
11501
11508
  return /* @__PURE__ */ jsxs(
11502
11509
  HStack,