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

@yamada-ui/portal

Package Overview
Dependencies
Maintainers
1
Versions
560
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yamada-ui/portal - npm Package Compare versions

Comparing version 0.0.0-dev-20230606151107 to 0.0.0-dev-20230701130255

dist/chunk-KGUBDA64.mjs

1

dist/index.d.ts
export { Portal, PortalProps } from './portal.js';
export { PortalProvider, usePortal } from './portal-provider.js';
export { DefaultPortal } from './default-portal.js';

@@ -4,0 +3,0 @@ export { ContainerPortal } from './container-portal.js';

@@ -25,5 +25,3 @@ "use strict";

DefaultPortal: () => DefaultPortal,
Portal: () => Portal,
PortalProvider: () => PortalProvider,
usePortal: () => usePortal
Portal: () => Portal
});

@@ -40,2 +38,7 @@ module.exports = __toCommonJS(src_exports);

// src/default-portal.tsx
var import_utils2 = require("@yamada-ui/utils");
var import_react = require("react");
var import_react_dom = require("react-dom");
// src/portal-provider.tsx

@@ -49,5 +52,2 @@ var import_utils = require("@yamada-ui/utils");

// src/default-portal.tsx
var import_utils2 = require("@yamada-ui/utils");
var import_react = require("react");
var import_react_dom = require("react-dom");
var import_jsx_runtime2 = require("react/jsx-runtime");

@@ -123,5 +123,3 @@ var DefaultPortal = ({

DefaultPortal,
Portal,
PortalProvider,
usePortal
Portal
});
import * as react_jsx_runtime from 'react/jsx-runtime';
import { RefObject, ReactNode } from 'react';
type PortalProps = {
containerRef?: React.RefObject<HTMLElement | null>;
children: React.ReactNode;
/**
* The `ref` to the component where the portal will be attached to.
*/
containerRef?: RefObject<HTMLElement | null>;
children: ReactNode;
/**
* If `true`, the portal will check if it is within a parent portal
* and append itself to the parent's portal node.
* This provides nesting for portals.
*
* If `false`, the portal will always append to `document.body`
* regardless of nesting. It is used to opt out of portal nesting.
*
* @default true
*/
appendToParentPortal?: boolean;

@@ -7,0 +21,0 @@ };

@@ -27,2 +27,7 @@ "use strict";

// src/default-portal.tsx
var import_utils2 = require("@yamada-ui/utils");
var import_react = require("react");
var import_react_dom = require("react-dom");
// src/portal-provider.tsx

@@ -36,5 +41,2 @@ var import_utils = require("@yamada-ui/utils");

// src/default-portal.tsx
var import_utils2 = require("@yamada-ui/utils");
var import_react = require("react");
var import_react_dom = require("react-dom");
var import_jsx_runtime = require("react/jsx-runtime");

@@ -41,0 +43,0 @@ var DefaultPortal = ({

{
"name": "@yamada-ui/portal",
"version": "0.0.0-dev-20230606151107",
"version": "0.0.0-dev-20230701130255",
"description": "Yamada UI portal component",

@@ -38,3 +38,3 @@ "keywords": [

"dependencies": {
"@yamada-ui/utils": "0.0.0-dev-20230606151107"
"@yamada-ui/utils": "0.1.1"
},

@@ -41,0 +41,0 @@ "devDependencies": {

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