@camunda/camunda-composite-components 0.1.2-rc.0 → 0.1.3-rc.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/lib/esm/components/c3-empty-state/c3-empty-state.d.ts +0 -1
- package/lib/esm/components/c3-navigation/c3-navigation-actions/c3-action-buttons.js +2 -2
- package/lib/esm/components/c3-navigation/c3-navigation-actions/c3-action-buttons.types.d.ts +6 -3
- package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar-element.d.ts +0 -1
- package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.types.d.ts +0 -1
- package/lib/esm/components/c3-navigation/c3-navigation-sidebar/components.d.ts +2 -3
- package/lib/esm/components/c3-navigation/c3-navigation.d.ts +0 -1
- package/lib/esm/components/c3-navigation/c3-navigation.test.js +4 -0
- package/lib/esm/components/c3-navigation/c3-navigation.types.d.ts +0 -1
- package/lib/esm/components/c3-navigation/story-helpers.d.ts +0 -1
- package/lib/esm/icons/c3-icons.d.ts +0 -1
- package/package.json +19 -19
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { HeaderGlobalAction } from "@carbon/react";
|
|
2
|
+
import React from "react";
|
|
3
3
|
const C3ActionButtons = ({ elements, }) => {
|
|
4
4
|
return (React.createElement(React.Fragment, null, elements.map((actionButton) => {
|
|
5
|
-
if (actionButton
|
|
5
|
+
if ("element" in actionButton) {
|
|
6
6
|
return actionButton.element;
|
|
7
7
|
}
|
|
8
8
|
else {
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { ReactElement } from "react";
|
|
2
|
-
export
|
|
3
|
-
element
|
|
2
|
+
export interface C3ActionButtonElement {
|
|
3
|
+
element: JSX.Element;
|
|
4
|
+
}
|
|
5
|
+
export interface C3ActionButtonSimple {
|
|
4
6
|
label: string;
|
|
5
7
|
icon: ReactElement;
|
|
6
8
|
action: () => void;
|
|
7
|
-
}
|
|
9
|
+
}
|
|
10
|
+
export declare type C3ActionButtonsProps = Array<C3ActionButtonElement | C3ActionButtonSimple>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const SwitcherDivider: import("styled-components").StyledComponent<import("react").FC<import("@carbon/react").SwitcherDividerProps>, any, {}, never>;
|
|
1
|
+
import { SwitcherDivider as CarbonSwitcherDivider } from "@carbon/react";
|
|
2
|
+
export declare const SwitcherDivider: typeof CarbonSwitcherDivider;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { C3NavigationProps } from "./c3-navigation.types";
|
|
3
2
|
export declare const C3Navigation: ({ app, appBar, forwardRef, navbar, orgSideBar, infoSideBar, infoButton, actionButtons, userSideBar, notificationSideBar, }: C3NavigationProps) => JSX.Element;
|
|
@@ -73,4 +73,8 @@ test.describe("Navigation", () => {
|
|
|
73
73
|
await getStory(page, "uishell-c3navigation--acion-button-instead-of-info-bar");
|
|
74
74
|
await expect(page).toHaveScreenshot();
|
|
75
75
|
});
|
|
76
|
+
test("Action button with custom element", async ({ page }) => {
|
|
77
|
+
await getStory(page, "uishell-c3navigation--acion-button-with-custom-element");
|
|
78
|
+
await expect(page).toHaveScreenshot();
|
|
79
|
+
});
|
|
76
80
|
});
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Tag } from "@carbon/react";
|
|
3
2
|
import { Endpoints, Stage } from "../../api/endpoints.const";
|
|
4
3
|
import { C3NavigationAppBarProps, C3NavigationInfoSideBarProps, C3NavigationNotificationsSideBarProps, C3NavigationOrgSideBarProps, C3NavigationUserSideBarProps } from "./c3-navigation-sidebar/c3-navigation-sidebar.types";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { C3NavigationAppProps, C3NavigationElementProps, C3NavigationNavBarProps, C3NavigationProps } from "./c3-navigation.types";
|
|
3
2
|
export declare function createAppProps(): C3NavigationAppProps;
|
|
4
3
|
export declare function createAppBarProps(options?: {
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camunda/camunda-composite-components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3-rc.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"clean": "rimraf lib/",
|
|
6
|
-
"
|
|
7
|
-
"build": "yarn clean && tsc && yarn copy-css-files",
|
|
6
|
+
"build": "yarn clean && tsc",
|
|
8
7
|
"storybook": "storybook dev -p 6006",
|
|
9
8
|
"start": "yarn storybook",
|
|
10
9
|
"build:storybook": "storybook build",
|
|
11
10
|
"serve:storybook": "serve ./storybook-static -p 8081 -n -L",
|
|
11
|
+
"prepare": "husky install",
|
|
12
12
|
"format": "prettier --write .",
|
|
13
13
|
"lint": "eslint src/",
|
|
14
14
|
"lint:fix": "eslint --fix src/",
|
|
15
15
|
"test:ts": "tsc --noEmit --project ./tsconfig.json",
|
|
16
16
|
"test:storybook": "TEST_A11Y=true test-storybook",
|
|
17
17
|
"test:storybook:smoke": "test-storybook",
|
|
18
|
-
"start:docker-storybook": "yarn build:storybook && docker run --rm --network host -v $(pwd):/work/ -w /work/ -it --name c3-visual-regression mcr.microsoft.com/playwright:v1.
|
|
18
|
+
"start:docker-storybook": "yarn build:storybook && docker run --rm --network host -v $(pwd):/work/ -w /work/ -it --name c3-visual-regression mcr.microsoft.com/playwright:v1.37.0 yarn serve:storybook",
|
|
19
19
|
"test:visual-regression": "wait-on http://localhost:8081 && PWTEST_SKIP_TEST_OUTPUT=1 yarn playwright test",
|
|
20
20
|
"test:visual-regression:ui": "yarn test:playwright --ui",
|
|
21
21
|
"report:visual-regression": "yarn playwright show-report",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"test": "yarn test:ts && yarn test:storybook && yarn test:visual-regression:docker"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@babel/core": "7.
|
|
29
|
-
"@babel/preset-env": "7.22.
|
|
30
|
-
"@babel/preset-react": "7.22.
|
|
31
|
-
"@babel/preset-typescript": "7.
|
|
32
|
-
"@carbon/react": "1.
|
|
28
|
+
"@babel/core": "7.22.10",
|
|
29
|
+
"@babel/preset-env": "7.22.10",
|
|
30
|
+
"@babel/preset-react": "7.22.5",
|
|
31
|
+
"@babel/preset-typescript": "7.22.5",
|
|
32
|
+
"@carbon/react": "1.35.0",
|
|
33
33
|
"@mdx-js/react": "1.6.22",
|
|
34
|
-
"@playwright/test": "1.
|
|
34
|
+
"@playwright/test": "1.37.0",
|
|
35
35
|
"@storybook/addon-a11y": "7.0.18",
|
|
36
36
|
"@storybook/addon-actions": "7.0.18",
|
|
37
37
|
"@storybook/addon-docs": "7.0.18",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"@storybook/preset-scss": "1.0.3",
|
|
43
43
|
"@storybook/react": "7.0.18",
|
|
44
44
|
"@storybook/react-webpack5": "7.0.18",
|
|
45
|
-
"@storybook/test-runner": "0.
|
|
46
|
-
"@storybook/testing-library": "0.
|
|
45
|
+
"@storybook/test-runner": "0.13.0",
|
|
46
|
+
"@storybook/testing-library": "0.2.0",
|
|
47
47
|
"@types/carbon-components-react": "7.55.2",
|
|
48
|
-
"@types/event-source-polyfill": "1.0.
|
|
48
|
+
"@types/event-source-polyfill": "1.0.1",
|
|
49
49
|
"@types/node": "18.11.5",
|
|
50
50
|
"@types/react": "18.0.22",
|
|
51
51
|
"@types/react-dom": "18.0.7",
|
|
@@ -62,10 +62,10 @@
|
|
|
62
62
|
"eslint-plugin-prettier": "4.2.1",
|
|
63
63
|
"eslint-plugin-react": "7.31.10",
|
|
64
64
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
65
|
-
"eslint-plugin-storybook": "0.6.
|
|
65
|
+
"eslint-plugin-storybook": "0.6.13",
|
|
66
66
|
"event-source-polyfill": "1.0.31",
|
|
67
|
-
"husky": "8.0.
|
|
68
|
-
"prettier": "2.
|
|
67
|
+
"husky": "8.0.3",
|
|
68
|
+
"prettier": "2.8.8",
|
|
69
69
|
"react": "18.2.0",
|
|
70
70
|
"react-dom": "18.2.0",
|
|
71
71
|
"rimraf": "3.0.2",
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"sass-loader": "13.1.0",
|
|
74
74
|
"serve": "14.2.0",
|
|
75
75
|
"storybook": "7.0.18",
|
|
76
|
-
"style-loader": "3.3.
|
|
77
|
-
"styled-components": "5.3.
|
|
76
|
+
"style-loader": "3.3.3",
|
|
77
|
+
"styled-components": "5.3.11",
|
|
78
78
|
"typescript": "4.8.4",
|
|
79
79
|
"wait-on": "7.0.1"
|
|
80
80
|
},
|
|
@@ -93,5 +93,5 @@
|
|
|
93
93
|
],
|
|
94
94
|
"author": "Camunda",
|
|
95
95
|
"license": "Apache-2.0",
|
|
96
|
-
"packageManager": "yarn@3.
|
|
96
|
+
"packageManager": "yarn@3.6.1"
|
|
97
97
|
}
|