@camunda/camunda-composite-components 0.0.20 → 0.0.21

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/README.md CHANGED
@@ -26,7 +26,7 @@ Pushing to `main` will update the storybook available under [github page](https:
26
26
  Example for navbar:
27
27
 
28
28
  ```tsx
29
- import { C3NavigationElementProps } from "@camunda-cloud/camunda-composite-components"
29
+ import { C3NavigationElementProps } from "@camunda/camunda-composite-components"
30
30
 
31
31
  // ...
32
32
 
@@ -197,7 +197,8 @@ const C3NavigationSideBar = (props) => {
197
197
  };
198
198
  export const C3Navigation = ({ app, appBar, forwardRef, navbar, orgSideBar, infoSideBar, userSideBar, }) => {
199
199
  const isLargeScreen = useMediaQuery(`(min-width: ${BREAKPOINT_LG_WIDTH}`);
200
- const displayAppBar = (appBar.elements?.length ?? 0) > 0 || !isLargeScreen;
200
+ const appBarElementsLength = appBar.elements?.length ?? 0;
201
+ const displayAppBar = appBarElementsLength > 0 || (!isLargeScreen && navbar.elements.length > 0);
201
202
  const inverseThemeClassName = useInverseThemeClassName();
202
203
  return (React.createElement(HeaderContainer, { render: () => {
203
204
  return (React.createElement(Header, { "aria-label": app.ariaLabel },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/camunda-composite-components",
3
- "version": "0.0.20",
3
+ "version": "0.0.21",
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "storybook": "start-storybook -p 6006",