@planningcenter/tapestry-react 2.3.0 → 2.4.0
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/cjs/Scrim/Scrim.js
CHANGED
|
@@ -42,7 +42,7 @@ function Sidebar(_ref) {
|
|
|
42
42
|
}, restProps), (0, _react.jsx)(_reactStickyBox["default"], {
|
|
43
43
|
css: flexColumnCss
|
|
44
44
|
}, _react2.Children.map(children, function (child) {
|
|
45
|
-
if (child && child.type !== Sidebar.List
|
|
45
|
+
if (child && child.type !== Sidebar.List && child.type !== Sidebar.Item) {
|
|
46
46
|
console.warn("Invalid component nesting. " + child.type + " cannot appear as a child of <Sidebar>. Only <Sidebar.List/> or <Sidebar.Item/> may be used.");
|
|
47
47
|
}
|
|
48
48
|
|
package/dist/esm/Scrim/Scrim.js
CHANGED
|
@@ -28,7 +28,7 @@ function Sidebar(_ref) {
|
|
|
28
28
|
}, restProps), jsx(StickyBox, {
|
|
29
29
|
css: flexColumnCss
|
|
30
30
|
}, Children.map(children, function (child) {
|
|
31
|
-
if (child && child.type !== Sidebar.List
|
|
31
|
+
if (child && child.type !== Sidebar.List && child.type !== Sidebar.Item) {
|
|
32
32
|
console.warn("Invalid component nesting. " + child.type + " cannot appear as a child of <Sidebar>. Only <Sidebar.List/> or <Sidebar.Item/> may be used.");
|
|
33
33
|
}
|
|
34
34
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@planningcenter/tapestry-react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "A collection of flexible React components to help you build resilient, accessible user interfaces quickly and effectively.",
|
|
5
5
|
"author": "Front End Systems Engineering <frontend@pco.bz>",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"typescript": "^4.1.5"
|
|
89
89
|
},
|
|
90
90
|
"dependencies": {
|
|
91
|
-
"@planningcenter/icons": "^14.
|
|
91
|
+
"@planningcenter/icons": "^14.11.0",
|
|
92
92
|
"@planningcenter/react-beautiful-dnd": "^13.2.1",
|
|
93
93
|
"@popmotion/popcorn": "^0.4.4",
|
|
94
94
|
"@popperjs/core": "^2.11.6",
|
package/src/Scrim/Scrim.tsx
CHANGED
package/src/Sidebar/Sidebar.js
CHANGED
|
@@ -30,8 +30,9 @@ function Sidebar({ children, ...restProps }: Props) {
|
|
|
30
30
|
<StickyBox css={flexColumnCss}>
|
|
31
31
|
{Children.map(children, (child) => {
|
|
32
32
|
if (
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
child &&
|
|
34
|
+
child.type !== Sidebar.List &&
|
|
35
|
+
child.type !== Sidebar.Item
|
|
35
36
|
) {
|
|
36
37
|
console.warn(
|
|
37
38
|
`Invalid component nesting. ${child.type} cannot appear as a child of <Sidebar>. Only <Sidebar.List/> or <Sidebar.Item/> may be used.`
|
package/src/.DS_Store
DELETED
|
Binary file
|