@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.
@@ -30,7 +30,7 @@ var Scrim = /*#__PURE__*/React.forwardRef(function (props, _ref) {
30
30
  zIndex: 10000,
31
31
  overflow: "auto" // @ts-ignore
32
32
  ,
33
- backgroundColor: "hsla(0,0%,0%,0.74)"
33
+ backgroundColor: "hsla(0,0%,0%,0.4)"
34
34
  }, props));
35
35
  });
36
36
  exports.Scrim = Scrim;
@@ -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 || child && child.type !== Sidebar.Item) {
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
 
@@ -18,7 +18,7 @@ var Scrim = /*#__PURE__*/React.forwardRef(function (props, _ref) {
18
18
  zIndex: 10000,
19
19
  overflow: "auto" // @ts-ignore
20
20
  ,
21
- backgroundColor: "hsla(0,0%,0%,0.74)"
21
+ backgroundColor: "hsla(0,0%,0%,0.4)"
22
22
  }, props));
23
23
  });
24
24
  export { Scrim };
@@ -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 || child && child.type !== Sidebar.Item) {
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.0",
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.0.0",
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",
@@ -26,7 +26,7 @@ const Scrim = React.forwardRef(function (props: ScrimProps, _ref: any) {
26
26
  zIndex={10000}
27
27
  overflow="auto"
28
28
  // @ts-ignore
29
- backgroundColor="hsla(0,0%,0%,0.74)"
29
+ backgroundColor="hsla(0,0%,0%,0.4)"
30
30
  {...props}
31
31
  />
32
32
  )
@@ -30,8 +30,9 @@ function Sidebar({ children, ...restProps }: Props) {
30
30
  <StickyBox css={flexColumnCss}>
31
31
  {Children.map(children, (child) => {
32
32
  if (
33
- (child && child.type !== Sidebar.List) ||
34
- (child && child.type !== Sidebar.Item)
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