@yamada-ui/portal
Advanced tools
Comparing version 0.0.0-dev-20230606151107 to 0.0.0-dev-20230701130255
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24092
22
600
+ Added@yamada-ui/utils@0.1.1(transitive)
- Removed@yamada-ui/utils@0.0.0-dev-20230606151107(transitive)
Updated@yamada-ui/utils@0.1.1