@elvia/elvis-box
Advanced tools
Comparing version 0.0.1-beta.1 to 0.0.1-beta.2
@@ -7,2 +7,3 @@ /* | ||
import styled from 'styled-components'; | ||
import { useFocusTrap } from './useFocusTrap'; | ||
const ElviaColors = { | ||
@@ -73,6 +74,10 @@ elviaCharge: '#29d305', | ||
hasBorder = false, | ||
hasFocusTrap = false, | ||
webcomponent | ||
}) => { | ||
const boxContentWrapper = useRef(null); | ||
const boxContent = useRef(null); | ||
const boxTitle = useRef(null); | ||
const boxTitle = useRef(null); // console.log(hasFocusTrap); | ||
hasFocusTrap && useFocusTrap(boxContentWrapper); | ||
useEffect(() => { | ||
@@ -98,6 +103,8 @@ if (!webcomponent) { | ||
hasBorder: hasBorder, | ||
isColored: isColored | ||
isColored: isColored, | ||
ref: boxContentWrapper | ||
}, isColored && /*#__PURE__*/React.createElement(BoxColoredLine, null), content), !content && /*#__PURE__*/React.createElement(BoxContent, { | ||
hasBorder: hasBorder, | ||
isColored: isColored | ||
isColored: isColored, | ||
ref: boxContentWrapper | ||
}, isColored && /*#__PURE__*/React.createElement(BoxColoredLine, null), /*#__PURE__*/React.createElement("div", { | ||
@@ -104,0 +111,0 @@ ref: boxContent |
{ | ||
"name": "@elvia/elvis-box", | ||
"version": "0.0.1-beta.1", | ||
"version": "0.0.1-beta.2", | ||
"description": "", | ||
@@ -16,2 +16,2 @@ "main": "web_component.js", | ||
} | ||
} | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
10
11608
399
1