@camunda/camunda-composite-components 0.0.35-rc1 → 0.0.35-rc3

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.
@@ -1,5 +1,5 @@
1
1
  import React, { useState } from "react";
2
- import { SwitcherDivider } from "@carbon/react";
2
+ import { SwitcherDivider } from "./components";
3
3
  import { Help } from "@carbon/react/icons";
4
4
  import C3NavigationSideBar from "./c3-navigation-sidebar";
5
5
  const C3InfoSidebar = ({ sideBar, }) => {
@@ -1,5 +1,6 @@
1
- import { Button, SwitcherDivider } from "@carbon/react";
1
+ import { Button } from "@carbon/react";
2
2
  import React, { useEffect, useRef, useState } from "react";
3
+ import { SwitcherDivider } from "./components";
3
4
  const C3NavigationSidebarElement = (props) => {
4
5
  const sideBarElementRef = useRef(null);
5
6
  const [isOverflown, setIsOverflown] = useState(false);
@@ -10,7 +11,7 @@ const C3NavigationSidebarElement = (props) => {
10
11
  return (React.createElement(React.Fragment, null,
11
12
  props.element.preceedingDivider && React.createElement(SwitcherDivider, null),
12
13
  React.createElement(Button, { style: {
13
- width: "16rem",
14
+ width: "calc(16rem - 2px)",
14
15
  ...(props.index === 0 &&
15
16
  (!("elements" in props.sideBar) || !props.sideBar.elements)
16
17
  ? { marginTop: "1.5rem" }
@@ -13,7 +13,8 @@ const C3NavigationSideBar = (props) => {
13
13
  display: "grid",
14
14
  gridAutoFlow: "row",
15
15
  gridAutoRows: "max-content 1fr",
16
- overflow: "auto",
16
+ overflowY: "auto",
17
+ overflowX: "hidden",
17
18
  } },
18
19
  React.createElement(Stack, null,
19
20
  children,
@@ -1,7 +1,8 @@
1
1
  import React, { useState } from "react";
2
- import { Button, FormLabel, SwitcherDivider } from "@carbon/react";
2
+ import { Button, FormLabel } from "@carbon/react";
3
3
  import { Enterprise } from "@carbon/react/icons";
4
4
  import C3NavigationSideBar from "./c3-navigation-sidebar";
5
+ import { SwitcherDivider } from "./components";
5
6
  const C3OrgSidebar = ({ sideBar }) => {
6
7
  const { customElements, isOpen, ...sideBarProps } = sideBar;
7
8
  const activeOrganization = sideBar.customElements?.activeOrganization;
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../../../../src/carbon.d.ts" />
2
+ /// <reference types="react" />
3
+ export declare const SwitcherDivider: import("styled-components").StyledComponent<import("react").FC<import("@carbon/react").SwitcherDividerProps>, any, {}, never>;
@@ -0,0 +1,5 @@
1
+ import { SwitcherDivider as CarbonSwitcherDivider } from "@carbon/react";
2
+ import styled from "styled-components";
3
+ export const SwitcherDivider = styled(CarbonSwitcherDivider) `
4
+ margin: auto;
5
+ `;
@@ -1,11 +1,17 @@
1
1
  import React, { FC, ReactNode } from "react";
2
- import { Stage } from "../../api/endpoints.const";
3
- export declare type C3UserConfiguration = {
4
- stage: Stage;
2
+ import { Endpoints, Stage } from "../../api/endpoints.const";
3
+ declare type C3UserConfigurationBase = {
5
4
  activeOrganizationId: string;
6
5
  userToken: string;
7
6
  getNewUserToken: () => Promise<string>;
8
7
  };
8
+ declare type C3UserConfigurationWithEndpoints = C3UserConfigurationBase & {
9
+ endpoints: Endpoints;
10
+ };
11
+ declare type C3UserConfigurationWithStage = C3UserConfigurationBase & {
12
+ stage: Stage;
13
+ };
14
+ export declare type C3UserConfiguration = C3UserConfigurationWithEndpoints | C3UserConfigurationWithStage;
9
15
  export declare const C3UserConfigurationContext: React.Context<C3UserConfiguration | null>;
10
16
  declare const C3UserConfigurationProvider: FC<C3UserConfiguration & {
11
17
  children?: ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/camunda-composite-components",
3
- "version": "0.0.35-rc1",
3
+ "version": "0.0.35-rc3",
4
4
  "scripts": {
5
5
  "clean": "rimraf lib/",
6
6
  "copy-css-files": "copyfiles -u 1 src/components/**/*.css lib/esm",