@camunda/camunda-composite-components 0.9.0 → 0.9.2-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.
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/camunda-cloud/camunda-composite-components.git"
6
6
  },
7
- "version": "0.8.1",
7
+ "version": "0.9.1",
8
8
  "scripts": {
9
9
  "clean": "rimraf lib/",
10
10
  "build": "yarn clean && tsc",
@@ -30,10 +30,10 @@
30
30
  "test": "yarn test:ts && yarn test:storybook && yarn test:visual-regression:docker"
31
31
  },
32
32
  "devDependencies": {
33
- "@babel/core": "7.25.2",
34
- "@babel/preset-env": "7.25.4",
35
- "@babel/preset-react": "7.24.7",
36
- "@babel/preset-typescript": "7.24.7",
33
+ "@babel/core": "7.25.7",
34
+ "@babel/preset-env": "7.25.7",
35
+ "@babel/preset-react": "7.25.7",
36
+ "@babel/preset-typescript": "7.25.7",
37
37
  "@carbon/react": "1.55.0",
38
38
  "@mdx-js/react": "3.0.1",
39
39
  "@playwright/test": "1.45.2",
@@ -63,7 +63,7 @@
63
63
  "@typescript-eslint/eslint-plugin": "7.17.0",
64
64
  "@typescript-eslint/parser": "7.17.0",
65
65
  "axe-playwright": "2.0.1",
66
- "babel-loader": "9.1.3",
66
+ "babel-loader": "9.2.1",
67
67
  "conventional-changelog-conventionalcommits": "7.0.2",
68
68
  "copyfiles": "2.4.1",
69
69
  "css-loader": "7.1.0",
@@ -91,7 +91,7 @@
91
91
  "styled-components": "6.1.8",
92
92
  "typescript": "5.4.4",
93
93
  "wait-on": "7.2.0",
94
- "webpack": "5.91.0"
94
+ "webpack": "5.94.0"
95
95
  },
96
96
  "dependencies": {
97
97
  "jwt-decode": "4.0.0",
@@ -17,7 +17,7 @@ export function createAppBarProps(options = {}) {
17
17
  : Boolean(options?.isOpen),
18
18
  elements: options.useElementsFromConfig
19
19
  ? undefined
20
- : options?.elements ?? [
20
+ : (options?.elements ?? [
21
21
  {
22
22
  key: "console",
23
23
  label: "Console",
@@ -70,7 +70,7 @@ export function createAppBarProps(options = {}) {
70
70
  target: "_blank",
71
71
  href: "https://camunda.com/",
72
72
  },
73
- ],
73
+ ]),
74
74
  elementClicked: (element) => console.log(`event coming from the appBarProps: ${element} has been clicked`),
75
75
  };
76
76
  }
@@ -1,16 +1,18 @@
1
1
  import React from "react";
2
- import { Grid, Column, Stack } from "@carbon/react";
2
+ import { Grid, Column, Stack, ActionableNotification, InlineNotification, } from "@carbon/react";
3
3
  import { C3Tabs } from "./c3-tabs/c3-tabs";
4
4
  import { C3Breadcrumb } from "./c3-breadcrumb/c3-breadcrumb";
5
5
  import { DefaultStyleWrapper } from "../styles";
6
6
  const gridStyles = { paddingRight: 0, paddingLeft: 0 };
7
7
  const gridColumnStyles = { marginInline: 0 };
8
- const C3Page = ({ header, tabs, children, isLoading = false, breadcrumbs = { elements: [] }, }) => {
8
+ const C3Page = ({ header, tabs, children, banner, isLoading = false, breadcrumbs = { elements: [] }, }) => {
9
9
  return (React.createElement(DefaultStyleWrapper, null,
10
10
  React.createElement(Grid, { style: gridStyles },
11
11
  React.createElement(Column, { span: 16, style: gridColumnStyles },
12
12
  React.createElement(Stack, { orientation: "vertical", gap: 7 },
13
13
  (breadcrumbs.elements?.length || header) && (React.createElement(C3Breadcrumb, { ...breadcrumbs, title: header?.title, menu: header?.menuItems, tag: header?.tag, loading: isLoading })),
14
+ banner &&
15
+ (banner.action ? (React.createElement(ActionableNotification, { kind: banner.kind, hideCloseButton: true, style: { maxWidth: "100%" }, title: banner.title, subtitle: banner.subtitle, actionButtonLabel: banner.action.label, onActionButtonClick: banner.action.onClick, inline: true, lowContrast: true })) : (React.createElement(InlineNotification, { kind: banner.kind, hideCloseButton: true, title: banner.title, subtitle: banner.subtitle, lowContrast: true }))),
14
16
  tabs && (React.createElement(Stack, { orientation: "vertical", gap: 5 },
15
17
  React.createElement(C3Tabs, { tabs: tabs.list, desiredTabId: tabs?.activeTabId, onTabChange: tabs?.onChange, loading: isLoading }))),
16
18
  children)))));
@@ -13,6 +13,15 @@ export type C3PageProps = {
13
13
  activeTabId?: C3TabsProps["desiredTabId"];
14
14
  onChange?: C3TabsProps["onTabChange"];
15
15
  };
16
+ banner?: {
17
+ kind: any;
18
+ title: any;
19
+ subtitle: any;
20
+ action?: {
21
+ label: string;
22
+ onClick: () => void;
23
+ };
24
+ };
16
25
  children?: React.ReactNode;
17
26
  isLoading?: boolean;
18
27
  };
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/camunda-cloud/camunda-composite-components.git"
6
6
  },
7
- "version": "0.9.0",
7
+ "version": "0.9.2-rc.0",
8
8
  "scripts": {
9
9
  "clean": "rimraf lib/",
10
10
  "build": "yarn clean && tsc",
@@ -30,10 +30,10 @@
30
30
  "test": "yarn test:ts && yarn test:storybook && yarn test:visual-regression:docker"
31
31
  },
32
32
  "devDependencies": {
33
- "@babel/core": "7.25.2",
34
- "@babel/preset-env": "7.25.4",
35
- "@babel/preset-react": "7.24.7",
36
- "@babel/preset-typescript": "7.24.7",
33
+ "@babel/core": "7.25.7",
34
+ "@babel/preset-env": "7.25.7",
35
+ "@babel/preset-react": "7.25.7",
36
+ "@babel/preset-typescript": "7.25.7",
37
37
  "@carbon/react": "1.55.0",
38
38
  "@mdx-js/react": "3.0.1",
39
39
  "@playwright/test": "1.45.2",
@@ -63,7 +63,7 @@
63
63
  "@typescript-eslint/eslint-plugin": "7.17.0",
64
64
  "@typescript-eslint/parser": "7.17.0",
65
65
  "axe-playwright": "2.0.1",
66
- "babel-loader": "9.1.3",
66
+ "babel-loader": "9.2.1",
67
67
  "conventional-changelog-conventionalcommits": "7.0.2",
68
68
  "copyfiles": "2.4.1",
69
69
  "css-loader": "7.1.0",
@@ -91,7 +91,7 @@
91
91
  "styled-components": "6.1.8",
92
92
  "typescript": "5.4.4",
93
93
  "wait-on": "7.2.0",
94
- "webpack": "5.91.0"
94
+ "webpack": "5.94.0"
95
95
  },
96
96
  "dependencies": {
97
97
  "jwt-decode": "4.0.0",