@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.
- package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-info-sidebar.js +1 -1
- package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar-element.js +3 -2
- package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.js +2 -1
- package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-org-sidebar.js +2 -1
- package/lib/esm/components/c3-navigation/c3-navigation-sidebar/components.d.ts +3 -0
- package/lib/esm/components/c3-navigation/c3-navigation-sidebar/components.js +5 -0
- package/lib/esm/components/c3-user-configuration/c3-user-configuration-provider.d.ts +9 -3
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
|
-
import { SwitcherDivider } from "
|
|
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, }) => {
|
package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar-element.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Button
|
|
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" }
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
|
-
import { Button, FormLabel
|
|
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;
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import React, { FC, ReactNode } from "react";
|
|
2
|
-
import { Stage } from "../../api/endpoints.const";
|
|
3
|
-
|
|
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;
|