@camunda/camunda-composite-components 0.20.2 → 0.20.3

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.
Files changed (88) hide show
  1. package/lib/esm/package.json +27 -28
  2. package/lib/esm/src/api/clusters.js +1 -1
  3. package/lib/esm/src/api/endpoints.const.js +2 -0
  4. package/lib/esm/src/api/help-center.d.ts +1 -1
  5. package/lib/esm/src/api/status.js +1 -1
  6. package/lib/esm/src/assets/c3-icons.d.ts +4 -4
  7. package/lib/esm/src/assets/c3-icons.js +5 -14
  8. package/lib/esm/src/components/c3-app-teaser/app-teaser-cards.d.ts +1 -1
  9. package/lib/esm/src/components/c3-app-teaser/app-teaser-cards.js +10 -19
  10. package/lib/esm/src/components/c3-app-teaser/app-teaster-card.d.ts +1 -1
  11. package/lib/esm/src/components/c3-app-teaser/app-teaster-card.js +4 -8
  12. package/lib/esm/src/components/c3-app-teaser/c3-app-teaser-page.d.ts +1 -1
  13. package/lib/esm/src/components/c3-app-teaser/c3-app-teaser-page.js +2 -2
  14. package/lib/esm/src/components/c3-app-teaser/c3-app-teaser.d.ts +1 -1
  15. package/lib/esm/src/components/c3-app-teaser/c3-app-teaser.js +8 -9
  16. package/lib/esm/src/components/c3-cluster-tag/c3-cluster-tag.d.ts +2 -1
  17. package/lib/esm/src/components/c3-cluster-tag/c3-cluster-tag.js +9 -8
  18. package/lib/esm/src/components/c3-data-table/c3-data-table.js +84 -70
  19. package/lib/esm/src/components/c3-data-table/c3-data-table.types.d.ts +3 -2
  20. package/lib/esm/src/components/c3-data-table/link-button/link-button.js +2 -4
  21. package/lib/esm/src/components/c3-data-table/link-button/link-button.types.d.ts +0 -1
  22. package/lib/esm/src/components/c3-empty-state/c3-empty-state.js +9 -29
  23. package/lib/esm/src/components/c3-help-center/c3-help-center-provider.js +3 -2
  24. package/lib/esm/src/components/c3-help-center/c3-help-center.js +3 -7
  25. package/lib/esm/src/components/c3-help-center/help-center-hint.d.ts +1 -1
  26. package/lib/esm/src/components/c3-help-center/help-center-hint.js +6 -10
  27. package/lib/esm/src/components/c3-help-center/help-center.d.ts +1 -1
  28. package/lib/esm/src/components/c3-help-center/help-center.js +69 -102
  29. package/lib/esm/src/components/c3-help-center/tabs/feedback.js +41 -89
  30. package/lib/esm/src/components/c3-help-center/tabs/tabContent.js +2 -5
  31. package/lib/esm/src/components/c3-help-center/tabs/tabContentSkeleton.js +4 -5
  32. package/lib/esm/src/components/c3-help-center/tile.js +16 -30
  33. package/lib/esm/src/components/c3-navigation/c3-info-button.d.ts +1 -1
  34. package/lib/esm/src/components/c3-navigation/c3-info-button.js +2 -3
  35. package/lib/esm/src/components/c3-navigation/c3-navigation-actions/c3-action-buttons.d.ts +1 -1
  36. package/lib/esm/src/components/c3-navigation/c3-navigation-actions/c3-action-buttons.js +9 -9
  37. package/lib/esm/src/components/c3-navigation/c3-navigation-appbar/c3-navigation-appbar.js +72 -87
  38. package/lib/esm/src/components/c3-navigation/c3-navigation-appbar/components.d.ts +1 -5
  39. package/lib/esm/src/components/c3-navigation/c3-navigation-appbar/components.js +1 -0
  40. package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-info-sidebar.d.ts +1 -1
  41. package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-info-sidebar.js +20 -28
  42. package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar-element.d.ts +1 -1
  43. package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar-element.js +23 -27
  44. package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.d.ts +1 -1
  45. package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.js +29 -37
  46. package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-notification-sidebar.js +18 -24
  47. package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-sidebar-state-provider.js +3 -2
  48. package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-user-sidebar.js +13 -37
  49. package/lib/esm/src/components/c3-navigation/c3-navigation.js +78 -120
  50. package/lib/esm/src/components/c3-navigation/c3-navigation.types.d.ts +5 -6
  51. package/lib/esm/src/components/c3-navigation/c3-notification-provider/c3-notification-container.d.ts +1 -1
  52. package/lib/esm/src/components/c3-navigation/c3-notification-provider/c3-notification-container.js +10 -18
  53. package/lib/esm/src/components/c3-navigation/c3-notification-provider/c3-notification-provider.js +4 -4
  54. package/lib/esm/src/components/c3-navigation/c3-org-name.js +2 -4
  55. package/lib/esm/src/components/c3-navigation/c3-org-sidebar/c3-org-sidebar.js +48 -60
  56. package/lib/esm/src/components/c3-navigation/c3-org-sidebar/components.js +23 -13
  57. package/lib/esm/src/components/c3-navigation/helpers.d.ts +2 -3
  58. package/lib/esm/src/components/c3-navigation/index.d.ts +1 -2
  59. package/lib/esm/src/components/c3-navigation/stories/story-helpers.js +3 -5
  60. package/lib/esm/src/components/c3-navigation/stories/story-templates.d.ts +1 -1
  61. package/lib/esm/src/components/c3-navigation/stories/story-templates.js +23 -29
  62. package/lib/esm/src/components/c3-onboarding-survey/c3-onboarding-survey.js +2 -1
  63. package/lib/esm/src/components/c3-onboarding-survey/elements/dropdownSelect.js +25 -38
  64. package/lib/esm/src/components/c3-onboarding-survey/elements/radioGroupMulti.js +45 -56
  65. package/lib/esm/src/components/c3-onboarding-survey/elements/radioGroupSingle.js +24 -34
  66. package/lib/esm/src/components/c3-onboarding-survey/elements/textField.js +4 -9
  67. package/lib/esm/src/components/c3-onboarding-survey/onboardingModal.d.ts +9 -9
  68. package/lib/esm/src/components/c3-onboarding-survey/onboardingModal.js +31 -42
  69. package/lib/esm/src/components/c3-onboarding-survey/onboardingPage.d.ts +9 -9
  70. package/lib/esm/src/components/c3-onboarding-survey/onboardingPage.js +27 -39
  71. package/lib/esm/src/components/c3-onboarding-survey/onboardingSurvey.js +9 -13
  72. package/lib/esm/src/components/c3-onboarding-survey/step.js +27 -27
  73. package/lib/esm/src/components/c3-page/c3-breadcrumb/c3-breadcrumb.js +8 -17
  74. package/lib/esm/src/components/c3-page/c3-page.js +2 -9
  75. package/lib/esm/src/components/c3-page/c3-tabs/c3-tabs.js +4 -5
  76. package/lib/esm/src/components/c3-responsive-stack/c3-responsive-stack.d.ts +2 -0
  77. package/lib/esm/src/components/c3-responsive-stack/c3-responsive-stack.js +13 -0
  78. package/lib/esm/src/components/c3-user-configuration/c3-profile-provider/c3-profile-provider.d.ts +1 -1
  79. package/lib/esm/src/components/c3-user-configuration/c3-profile-provider/c3-profile-provider.js +5 -4
  80. package/lib/esm/src/components/c3-user-configuration/c3-profile-provider/carbon-theme-provider.js +3 -2
  81. package/lib/esm/src/components/c3-user-configuration/c3-user-configuration-provider.js +3 -4
  82. package/lib/esm/src/contexts/c3-cluster-update-manager.d.ts +1 -1
  83. package/lib/esm/src/contexts/c3-cluster-update-manager.js +3 -2
  84. package/lib/esm/src/hooks/useApi.d.ts +4 -5
  85. package/lib/esm/src/index.d.ts +1 -0
  86. package/lib/esm/src/index.js +1 -0
  87. package/package.json +20 -27
  88. package/README.md +0 -197
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/camunda-composite-components",
3
- "version": "0.20.2",
3
+ "version": "0.20.3",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org/"
@@ -19,20 +19,21 @@
19
19
  "build:all": "pnpm build && pnpm build-storybook",
20
20
  "serve:storybook": "npx --yes serve ./storybook-static -p 6006 -n -L",
21
21
  "prepare": "husky",
22
+ "docker:setup": "pnpm install && npx playwright install",
22
23
  "format": "prettier --write .",
23
24
  "lint": "eslint src/",
24
25
  "lint:fix": "eslint --fix src/",
25
26
  "test:ts": "tsc --noEmit --project ./tsconfig.json",
26
27
  "test:storybook": "TEST_A11Y=true test-storybook",
27
28
  "test:storybook:smoke": "test-storybook",
28
- "start:docker-storybook": "pnpm build-storybook && docker-compose up -d && docker-compose exec c3-visual-regression pnpm serve:storybook",
29
+ "start:docker-storybook": "pnpm build-storybook && docker-compose up -d && docker-compose exec c3-visual-regression pnpm docker:setup && docker-compose exec c3-visual-regression pnpm serve:storybook",
29
30
  "test:visual-regression": "wait-on http://localhost:6006 && pnpm playwright test",
30
31
  "test:visual-regression:ui": "pnpm playwright test --ui",
31
32
  "report:visual-regression": "pnpm playwright show-report",
32
33
  "update:visual-regression": "pnpm playwright test --update-snapshots",
33
34
  "test:visual-regression:docker": "docker exec -it -t c3-visual-regression pnpm test:visual-regression",
34
35
  "update:visual-regression:docker": "docker exec -it -t c3-visual-regression pnpm update:visual-regression",
35
- "test:all": "pnpm test:ts && pnpm serve:storybook & wait-on http://localhost:6006 && pnpm test:storybook && pnpm test:visual-regression:docker",
36
+ "test:all": "pnpm test:ts && pnpm serve:storybook & pnpm wait-on http://localhost:6006 && pnpm test:storybook && pnpm test:visual-regression:docker",
36
37
  "test": "pnpm test:ts"
37
38
  },
38
39
  "devDependencies": {
@@ -40,33 +41,24 @@
40
41
  "@babel/preset-env": "7.25.7",
41
42
  "@babel/preset-react": "7.25.7",
42
43
  "@babel/preset-typescript": "7.25.7",
43
- "@carbon/react": "1.69.0",
44
+ "@carbon/react": "1.90.0",
44
45
  "@mdx-js/react": "3.0.1",
45
46
  "@playwright/test": "1.45.2",
46
- "@storybook/addon-a11y": "8.6.4",
47
- "@storybook/addon-actions": "8.6.4",
48
- "@storybook/addon-docs": "8.6.4",
49
- "@storybook/addon-essentials": "8.6.4",
50
- "@storybook/addon-interactions": "8.6.4",
51
- "@storybook/addon-links": "8.6.4",
52
- "@storybook/addon-mdx-gfm": "8.6.4",
53
- "@storybook/addon-webpack5-compiler-babel": "3.0.3",
54
- "@storybook/blocks": "8.6.4",
47
+ "@storybook/addon-a11y": "9.1.4",
48
+ "@storybook/addon-docs": "^9.1.4",
49
+ "@storybook/addon-links": "9.1.4",
50
+ "@storybook/addon-webpack5-compiler-babel": "3.0.6",
55
51
  "@storybook/preset-scss": "1.0.3",
56
- "@storybook/react": "8.6.4",
57
- "@storybook/react-webpack5": "8.6.4",
58
- "@storybook/test": "8.6.4",
59
- "@storybook/test-runner": "0.19.1",
60
- "@types/carbon-components-react": "7.55.10",
52
+ "@storybook/react-webpack5": "9.1.4",
53
+ "@storybook/test-runner": "0.23.0",
61
54
  "@types/event-source-polyfill": "1.0.5",
55
+ "@types/react": "18.3.12",
56
+ "@types/react-dom": "18.3.2",
62
57
  "@types/mixpanel-browser": "2.49.0",
63
58
  "@types/node": "22.13.14",
64
- "@types/react": "18.0.28",
65
- "@types/react-dom": "18.0.11",
66
- "@types/styled-components": "5.1.34",
67
59
  "@typescript-eslint/eslint-plugin": "7.17.0",
68
60
  "@typescript-eslint/parser": "7.17.0",
69
- "axe-playwright": "2.0.1",
61
+ "axe-playwright": "2.1.0",
70
62
  "babel-loader": "9.2.1",
71
63
  "conventional-changelog-conventionalcommits": "7.0.2",
72
64
  "copyfiles": "2.4.1",
@@ -78,21 +70,22 @@
78
70
  "eslint-plugin-prettier": "5.2.1",
79
71
  "eslint-plugin-react": "7.35.0",
80
72
  "eslint-plugin-react-hooks": "4.6.2",
81
- "eslint-plugin-storybook": "0.8.0",
73
+ "eslint-plugin-storybook": "9.1.4",
82
74
  "event-source-polyfill": "1.0.31",
83
75
  "husky": "9.1.2",
84
76
  "mixpanel-browser": "2.49.0",
85
77
  "prettier": "3.3.3",
86
- "react": "18.2.0",
87
- "react-dom": "18.2.0",
78
+ "react": "19.1.0",
79
+ "react-dom": "19.1.0",
80
+ "react-is": "^19.1.0",
88
81
  "rimraf": "6.0.1",
89
82
  "sass": "1.74.1",
90
83
  "sass-loader": "14.1.1",
91
84
  "serve": "14.2.4",
92
- "storybook": "^8.6.4",
85
+ "storybook": "^9.1.4",
93
86
  "style-loader": "4.0.0",
94
87
  "styled-components": "6.1.8",
95
- "typescript": "4.9.5",
88
+ "typescript": "5.8.3",
96
89
  "wait-on": "8.0.2",
97
90
  "webpack": "5.94.0"
98
91
  },
@@ -115,5 +108,11 @@
115
108
  "/lib"
116
109
  ],
117
110
  "author": "Camunda",
118
- "license": "Apache-2.0"
111
+ "license": "Apache-2.0",
112
+ "pnpm": {
113
+ "overrides": {
114
+ "@types/react": "18.3.12",
115
+ "@types/react-dom": "18.3.2"
116
+ }
117
+ }
119
118
  }
@@ -6,7 +6,7 @@ export class ClustersService {
6
6
  ...options,
7
7
  endpoint: CONSOLE,
8
8
  });
9
- let source = new EventSourcePolyfill(`${baseUrl}/external/events`, {
9
+ const source = new EventSourcePolyfill(`${baseUrl}/external/events`, {
10
10
  headers: {
11
11
  authorization: `Bearer ${options.userToken}`,
12
12
  },
@@ -51,6 +51,7 @@ export function getEndpointByOptions(options) {
51
51
  else if (options.stage) {
52
52
  return getEndpoint(options.stage, options.endpoint);
53
53
  }
54
+ break;
54
55
  case "console":
55
56
  if (options.endpoints?.console) {
56
57
  return options.endpoints.console;
@@ -58,6 +59,7 @@ export function getEndpointByOptions(options) {
58
59
  else if (options.stage) {
59
60
  return getEndpoint(options.stage, options.endpoint);
60
61
  }
62
+ break;
61
63
  }
62
64
  throw new Error(`Missing stage or notifications endpoint`);
63
65
  }
@@ -13,7 +13,7 @@ export declare const getTiles: ({ accessToken, tileConfig, salesPlanType, cluste
13
13
  clusterIds: string[];
14
14
  salesPlanType: string;
15
15
  flags: string[];
16
- signal?: AbortSignal | undefined;
16
+ signal?: AbortSignal;
17
17
  }) => Promise<RequestResponse<WpCardType[]>>;
18
18
  export declare const getOnboardingConfig: ({ camundaAuth, audience, orgId, }: {
19
19
  audience: string;
@@ -22,7 +22,7 @@ export class StatusService {
22
22
  type: "json",
23
23
  responseType: "json",
24
24
  });
25
- let result = resp.result;
25
+ const result = resp.result;
26
26
  if (!resp.success ||
27
27
  !result?.status.indicator ||
28
28
  !result?.status.description) {
@@ -1,5 +1,5 @@
1
1
  import { C3IconProps } from "./c3-icons.types";
2
- export declare const C3AppMenuIcon: ({ size }: C3IconProps) => JSX.Element;
3
- export declare const C3NotificationsUnreadIcon: ({ size }: C3IconProps) => JSX.Element;
4
- export declare const C3BellIcon: ({ size }: C3IconProps) => JSX.Element;
5
- export declare const CamundaLogo: () => JSX.Element;
2
+ export declare const C3AppMenuIcon: ({ size }: C3IconProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const C3NotificationsUnreadIcon: ({ size }: C3IconProps) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const C3BellIcon: ({ size }: C3IconProps) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const CamundaLogo: () => import("react/jsx-runtime").JSX.Element;
@@ -1,14 +1,5 @@
1
- import React from "react";
2
- export const C3AppMenuIcon = ({ size }) => (React.createElement("svg", { width: size, height: size, viewBox: `0 0 ${size} ${size}`, fill: "transparent", xmlns: "http://www.w3.org/2000/svg" },
3
- React.createElement("path", { fill: "transparent", style: { mixBlendMode: "multiply" }, d: "M0 0h20v20H0z" }),
4
- React.createElement("path", { d: "M11.5 1h-3v3h3V1ZM4 1H1v3h3V1Zm15 0h-3v3h3V1Zm-7.5 7.5h-3v3h3v-3ZM4 8.5H1v3h3v-3Zm15 0h-3v3h3v-3ZM11.5 16h-3v3h3v-3ZM4 16H1v3h3v-3Zm15 0h-3v3h3v-3Z" })));
5
- export const C3NotificationsUnreadIcon = ({ size }) => (React.createElement("svg", { width: size, height: size, viewBox: `0 0 ${size} ${size}`, fill: "none", xmlns: "http://www.w3.org/2000/svg" },
6
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.625.857V.625h-1.25v1.282A6.258 6.258 0 0 0 3.75 8.125v2.241l-1.692 1.692a.625.625 0 0 0-.183.442v1.875A.625.625 0 0 0 2.5 15h4.375v.486a3.22 3.22 0 0 0 2.813 3.249 3.129 3.129 0 0 0 3.437-3.11V15H17.5a.624.624 0 0 0 .625-.625V12.5a.625.625 0 0 0-.183-.442l-.939-.939a6.174 6.174 0 0 1-1.46.308l1.332 1.332v.991H3.125v-.991l1.692-1.692A.625.625 0 0 0 5 10.625v-2.5a5 5 0 0 1 4.148-4.927A6.202 6.202 0 0 1 10.625.857Zm5.625 9.235V8.125a6.258 6.258 0 0 0-5.044-6.131 5.003 5.003 0 0 0-.743 1.152A5 5 0 0 1 15 8.125v2.125c.432 0 .85-.055 1.25-.158Zm-4.924 6.859c.351-.352.549-.829.549-1.326V15h-3.75v.625a1.875 1.875 0 0 0 3.2 1.326Z", fill: "$icon-primary" }),
7
- React.createElement("path", { d: "M15 10.25a5 5 0 1 0 0-10 5 5 0 0 0 0 10Z", style: { fill: "var(--cds-link-primary)" } })));
8
- export const C3BellIcon = ({ size }) => (React.createElement("svg", { width: size, height: size, viewBox: `0 0 ${size} ${size}`, fill: "transparent", xmlns: "http://www.w3.org/2000/svg" },
9
- React.createElement("path", { d: "M50.2373 33.7627L45.5 29.0253V22.75C45.4944 18.4134 43.881 14.2329 40.9718 11.0169C38.0626 7.80093 34.0643 5.77786 29.75 5.3389V1.75H26.25V5.3389C21.9357 5.77786 17.9374 7.80093 15.0282 11.0169C12.119 14.2329 10.5056 18.4134 10.5 22.75V29.0253L5.76275 33.7627C5.60018 33.9252 5.47122 34.118 5.38324 34.3303C5.29526 34.5426 5.24998 34.7702 5.25 35V40.25C5.25 40.7141 5.43437 41.1592 5.76256 41.4874C6.09075 41.8156 6.53587 42 7 42H19.25V43.75C19.25 46.0706 20.1719 48.2962 21.8128 49.9372C23.4538 51.5781 25.6794 52.5 28 52.5C30.3206 52.5 32.5462 51.5781 34.1872 49.9372C35.8281 48.2962 36.75 46.0706 36.75 43.75V42H49C49.4641 42 49.9092 41.8156 50.2374 41.4874C50.5656 41.1592 50.75 40.7141 50.75 40.25V35C50.75 34.7702 50.7047 34.5426 50.6168 34.3303C50.5288 34.118 50.3998 33.9252 50.2373 33.7627ZM33.25 43.75C33.25 45.1424 32.6969 46.4777 31.7123 47.4623C30.7277 48.4469 29.3924 49 28 49C26.6076 49 25.2723 48.4469 24.2877 47.4623C23.3031 46.4777 22.75 45.1424 22.75 43.75V42H33.25V43.75Z", fill: "#FF8201" })));
10
- export const CamundaLogo = () => (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" },
11
- React.createElement("title", null, "Camunda logo"),
12
- React.createElement("rect", { width: "24", height: "24", rx: "3", style: { fill: "var(--cds-icon-primary)" } }),
13
- React.createElement("path", { d: "M11.986 15.585c1.824 0 2.762-1.075 2.776-2.967v-1.564h-1.755v1.687c0 .844-.368 1.143-.966 1.143-.585 0-.966-.3-.966-1.143V6.364c0-.843.367-1.17.966-1.156.585 0 .966.326.966 1.17v1.261h1.755V6.496c0-1.891-.94-2.965-2.762-2.965-1.823 0-2.764 1.074-2.776 2.965v6.136c0 1.864.943 2.953 2.762 2.953Z", style: { fill: "var(--cds-text-inverse)" } }),
14
- React.createElement("path", { d: "M14.762 17.312H9.224v3.13h5.538v-3.13Z", fill: "#FC5D0D" })));
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ export const C3AppMenuIcon = ({ size }) => (_jsx(_Fragment, { children: _jsxs("svg", { width: size, height: size, viewBox: `0 0 ${size} ${size}`, fill: "transparent", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { fill: "transparent", style: { mixBlendMode: "multiply" }, d: "M0 0h20v20H0z" }), _jsx("path", { d: "M11.5 1h-3v3h3V1ZM4 1H1v3h3V1Zm15 0h-3v3h3V1Zm-7.5 7.5h-3v3h3v-3ZM4 8.5H1v3h3v-3Zm15 0h-3v3h3v-3ZM11.5 16h-3v3h3v-3ZM4 16H1v3h3v-3Zm15 0h-3v3h3v-3Z" })] }) }));
3
+ export const C3NotificationsUnreadIcon = ({ size }) => (_jsx(_Fragment, { children: _jsxs("svg", { width: size, height: size, viewBox: `0 0 ${size} ${size}`, fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.625.857V.625h-1.25v1.282A6.258 6.258 0 0 0 3.75 8.125v2.241l-1.692 1.692a.625.625 0 0 0-.183.442v1.875A.625.625 0 0 0 2.5 15h4.375v.486a3.22 3.22 0 0 0 2.813 3.249 3.129 3.129 0 0 0 3.437-3.11V15H17.5a.624.624 0 0 0 .625-.625V12.5a.625.625 0 0 0-.183-.442l-.939-.939a6.174 6.174 0 0 1-1.46.308l1.332 1.332v.991H3.125v-.991l1.692-1.692A.625.625 0 0 0 5 10.625v-2.5a5 5 0 0 1 4.148-4.927A6.202 6.202 0 0 1 10.625.857Zm5.625 9.235V8.125a6.258 6.258 0 0 0-5.044-6.131 5.003 5.003 0 0 0-.743 1.152A5 5 0 0 1 15 8.125v2.125c.432 0 .85-.055 1.25-.158Zm-4.924 6.859c.351-.352.549-.829.549-1.326V15h-3.75v.625a1.875 1.875 0 0 0 3.2 1.326Z", fill: "$icon-primary" }), _jsx("path", { d: "M15 10.25a5 5 0 1 0 0-10 5 5 0 0 0 0 10Z", style: { fill: "var(--cds-link-primary)" } })] }) }));
4
+ export const C3BellIcon = ({ size }) => (_jsx(_Fragment, { children: _jsx("svg", { width: size, height: size, viewBox: `0 0 ${size} ${size}`, fill: "transparent", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M50.2373 33.7627L45.5 29.0253V22.75C45.4944 18.4134 43.881 14.2329 40.9718 11.0169C38.0626 7.80093 34.0643 5.77786 29.75 5.3389V1.75H26.25V5.3389C21.9357 5.77786 17.9374 7.80093 15.0282 11.0169C12.119 14.2329 10.5056 18.4134 10.5 22.75V29.0253L5.76275 33.7627C5.60018 33.9252 5.47122 34.118 5.38324 34.3303C5.29526 34.5426 5.24998 34.7702 5.25 35V40.25C5.25 40.7141 5.43437 41.1592 5.76256 41.4874C6.09075 41.8156 6.53587 42 7 42H19.25V43.75C19.25 46.0706 20.1719 48.2962 21.8128 49.9372C23.4538 51.5781 25.6794 52.5 28 52.5C30.3206 52.5 32.5462 51.5781 34.1872 49.9372C35.8281 48.2962 36.75 46.0706 36.75 43.75V42H49C49.4641 42 49.9092 41.8156 50.2374 41.4874C50.5656 41.1592 50.75 40.7141 50.75 40.25V35C50.75 34.7702 50.7047 34.5426 50.6168 34.3303C50.5288 34.118 50.3998 33.9252 50.2373 33.7627ZM33.25 43.75C33.25 45.1424 32.6969 46.4777 31.7123 47.4623C30.7277 48.4469 29.3924 49 28 49C26.6076 49 25.2723 48.4469 24.2877 47.4623C23.3031 46.4777 22.75 45.1424 22.75 43.75V42H33.25V43.75Z", fill: "#FF8201" }) }) }));
5
+ export const CamundaLogo = () => (_jsx(_Fragment, { children: _jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: [_jsx("title", { children: "Camunda logo" }), _jsx("rect", { width: "24", height: "24", rx: "3", style: { fill: "var(--cds-icon-primary)" } }), _jsx("path", { d: "M11.986 15.585c1.824 0 2.762-1.075 2.776-2.967v-1.564h-1.755v1.687c0 .844-.368 1.143-.966 1.143-.585 0-.966-.3-.966-1.143V6.364c0-.843.367-1.17.966-1.156.585 0 .966.326.966 1.17v1.261h1.755V6.496c0-1.891-.94-2.965-2.762-2.965-1.823 0-2.764 1.074-2.776 2.965v6.136c0 1.864.943 2.953 2.762 2.953Z", style: { fill: "var(--cds-text-inverse)" } }), _jsx("path", { d: "M14.762 17.312H9.224v3.13h5.538v-3.13Z", fill: "#FC5D0D" })] }) }));
@@ -12,5 +12,5 @@ type AppTeaserCardsProps = {
12
12
  };
13
13
  subtext: string;
14
14
  };
15
- export declare const AppTeaserCards: ({ title, subtitle, cards, cta, subtext, }: AppTeaserCardsProps) => JSX.Element;
15
+ export declare const AppTeaserCards: ({ title, subtitle, cards, cta, subtext, }: AppTeaserCardsProps) => import("react/jsx-runtime").JSX.Element;
16
16
  export {};
@@ -1,5 +1,6 @@
1
+ import { createElement as _createElement } from "react";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
3
  import { Button, InlineNotification, Stack } from "@carbon/react";
2
- import React from "react";
3
4
  import { AppTeaserCard } from "./app-teaster-card";
4
5
  import { body02 } from "../styles";
5
6
  import styled from "styled-components";
@@ -14,22 +15,12 @@ export const AppTeaserCards = ({ title, subtitle, cards, cta, subtext, }) => {
14
15
  const innerColumns = new Array(cards.length).fill("428px");
15
16
  const gridTemplateColumns = `1fr ${innerColumns.join(" ")} 1fr`;
16
17
  const gridGap = "10px";
17
- return (React.createElement(Stack, { gap: 8 },
18
- React.createElement(Stack, { gap: 4 },
19
- React.createElement("h1", { style: { textAlign: "center" } }, title),
20
- React.createElement(Subtitle, null,
21
- React.createElement("p", null, subtitle))),
22
- React.createElement(Stack, { gap: 5 },
23
- React.createElement("div", { style: {
24
- display: "grid",
25
- justifyContent: "center",
26
- } }, cta.disabled && cta.disabledMessage ? (React.createElement(InlineNotification, { kind: "info", title: cta.disabledMessage, hideCloseButton: true })) : (React.createElement(Button, { id: "teasercards-button", onClick: cta.action, renderIcon: cta.renderIcon, isExpressive: true }, cta.text))),
27
- !cta.disabled && subtext && (React.createElement("div", { style: {
28
- display: "grid",
29
- justifyContent: "center",
30
- fontSize: "14px",
31
- } }, subtext))),
32
- React.createElement(Stack, { gap: 6, orientation: "vertical" },
33
- React.createElement(Stack, { gap: 6 },
34
- React.createElement("div", { style: { display: "grid", gridTemplateColumns, gap: gridGap } }, cards.map((card, index) => (React.createElement(AppTeaserCard, { ...card, key: "teasercardz" + index, grid: { column: index + 2 } }))))))));
18
+ return (_jsxs(Stack, { gap: 8, children: [_jsxs(Stack, { gap: 4, children: [_jsx("h1", { style: { textAlign: "center" }, children: title }), _jsx(Subtitle, { children: _jsx("p", { children: subtitle }) })] }), _jsxs(Stack, { gap: 5, children: [_jsx("div", { style: {
19
+ display: "grid",
20
+ justifyContent: "center",
21
+ }, children: cta.disabled && cta.disabledMessage ? (_jsx(InlineNotification, { kind: "info", title: cta.disabledMessage, hideCloseButton: true })) : (_jsx(Button, { id: "teasercards-button", onClick: cta.action, renderIcon: cta.renderIcon, isExpressive: true, children: cta.text })) }), !cta.disabled && subtext && (_jsx("div", { style: {
22
+ display: "grid",
23
+ justifyContent: "center",
24
+ fontSize: "14px",
25
+ }, children: subtext }))] }), _jsx(Stack, { gap: 6, orientation: "vertical", children: _jsx(Stack, { gap: 6, children: _jsx("div", { style: { display: "grid", gridTemplateColumns, gap: gridGap }, children: cards.map((card, index) => (_createElement(AppTeaserCard, { ...card, key: "teasercardz" + index, grid: { column: index + 2 } }))) }) }) })] }));
35
26
  };
@@ -1,4 +1,4 @@
1
- import { ReactNode } from "react";
1
+ import { type ReactNode } from "react";
2
2
  export type AppTeaserCardProps = {
3
3
  grid?: {
4
4
  column?: number | string;
@@ -1,23 +1,19 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
2
  import { Tile } from "@carbon/react";
2
- import React from "react";
3
3
  import styled from "styled-components";
4
4
  const Description = styled.p `
5
5
  font-size: 15px !important;
6
6
  `;
7
7
  export const AppTeaserCard = (props) => {
8
8
  const gap = 1;
9
- return (React.createElement(Tile, { style: {
9
+ return (_jsx(Tile, { style: {
10
10
  gridColumn: props.grid?.column ?? 1,
11
11
  padding: "16px",
12
12
  height: "100%",
13
- } },
14
- React.createElement("div", { style: {
13
+ }, children: _jsxs("div", { style: {
15
14
  display: "grid",
16
15
  gap: `${gap}rem`,
17
16
  gridTemplateRows: `auto auto 1fr`,
18
17
  height: "100%",
19
- } },
20
- React.createElement("h2", null, props.title),
21
- React.createElement(Description, null, props.description),
22
- React.createElement("img", { src: props.img.path, alt: props.img.altText, style: { alignSelf: "end", width: "100%" } }))));
18
+ }, children: [_jsx("h2", { children: props.title }), _jsx(Description, { children: props.description }), _jsx("img", { src: props.img.path, alt: props.img.altText, style: { alignSelf: "end", width: "100%" } })] }) }));
23
19
  };
@@ -1,4 +1,4 @@
1
- import { FC } from "react";
1
+ import { type FC } from "react";
2
2
  import { C3AppTeaserProps } from "./c3-app-teaser";
3
3
  export type C3AppTeaserPageProps = {
4
4
  appName: C3AppTeaserProps["appName"];
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { C3AppTeaser } from "./c3-app-teaser";
3
3
  import { canCreateCluster, canUpgradePlan, isTrialExpired, } from "../../utils/camunda";
4
4
  import { useC3Profile } from "../c3-user-configuration/c3-profile-provider/c3-profile-provider";
@@ -39,5 +39,5 @@ export const C3AppTeaserPage = ({ appName, redirectToClusters, redirectToCreateC
39
39
  }
40
40
  }
41
41
  };
42
- return activeOrg && appName ? (React.createElement(C3AppTeaser, { appName: appName, canCreateCluster: canCreateCluster(activeOrg), canUpgradePlan: canUpgradePlan(activeOrg), hasTrialExpired: hasTrialExpired, hasSleepingCluster: hasSleepingCluster, onClickCta: onClickCta, pricing: null })) : (React.createElement(Loading, { withOverlay: true }));
42
+ return activeOrg && appName ? (_jsx(C3AppTeaser, { appName: appName, canCreateCluster: canCreateCluster(activeOrg), canUpgradePlan: canUpgradePlan(activeOrg), hasTrialExpired: hasTrialExpired, hasSleepingCluster: hasSleepingCluster, onClickCta: onClickCta, pricing: null })) : (_jsx(Loading, { withOverlay: true }));
43
43
  };
@@ -1,4 +1,4 @@
1
- import { FC } from "react";
1
+ import type { FC } from "react";
2
2
  import { StartingPrice } from "../../api/organizations";
3
3
  export declare const teaserApps: readonly ["tasklist", "operate", "optimize"];
4
4
  export type TeaserApp = (typeof teaserApps)[number];
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Add, Settings } from "@carbon/react/icons";
3
3
  import { AppTeaserCards } from "./app-teaser-cards";
4
4
  import { getReadableAppName } from "../../utils/camunda";
@@ -38,12 +38,11 @@ export const C3AppTeaser = ({ appName: app, hasTrialExpired, hasSleepingCluster,
38
38
  : hasSleepingCluster
39
39
  ? variants.manageClusters
40
40
  : variants.createClusters;
41
- return (React.createElement(DefaultStyleWrapper, null,
42
- React.createElement(AppTeaserCards, { title: variant.title, subtitle: React.createElement(React.Fragment, null, variant.subtitle), subtext: "", cta: {
43
- action: onClickCta,
44
- text: variant.ctaText,
45
- renderIcon: variant.ctaIcon,
46
- disabled: hasTrialExpired ? !canUpgradePlan : !canCreateCluster,
47
- disabledMessage: variant.disabledMessage,
48
- }, cards: appTeaserCardsConfig[app] })));
41
+ return (_jsx(_Fragment, { children: _jsx(DefaultStyleWrapper, { children: _jsx(AppTeaserCards, { title: variant.title, subtitle: _jsx(_Fragment, { children: variant.subtitle }), subtext: "", cta: {
42
+ action: onClickCta,
43
+ text: variant.ctaText,
44
+ renderIcon: variant.ctaIcon,
45
+ disabled: hasTrialExpired ? !canUpgradePlan : !canCreateCluster,
46
+ disabledMessage: variant.disabledMessage,
47
+ }, cards: appTeaserCardsConfig[app] }) }) }));
49
48
  };
@@ -1,5 +1,6 @@
1
1
  import { FC } from "react";
2
2
  import { C3ClusterTagProps, C3ClusterTagWithClusterNameProps, CamundaClusterStage } from "./c3-cluster-tag.types";
3
+ export type TagColor = "green" | "blue" | "purple" | "red" | "cool-gray" | "magenta" | "cyan" | "teal" | "gray" | "warm-gray" | "high-contrast" | "outline";
3
4
  export declare const C3ClusterTagWithClusterName: FC<C3ClusterTagWithClusterNameProps>;
4
5
  export declare const C3ClusterTag: FC<C3ClusterTagProps>;
5
- export declare function getColorForStage(stage: CamundaClusterStage): "blue" | "green" | "purple" | "red" | undefined;
6
+ export declare function getColorForStage(stage: CamundaClusterStage): TagColor | undefined;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { Tag } from "@carbon/react";
3
3
  import { useC3Profile } from "../c3-user-configuration/c3-profile-provider/c3-profile-provider";
4
4
  export const C3ClusterTagWithClusterName = (props) => {
@@ -12,7 +12,8 @@ export const C3ClusterTagWithClusterName = (props) => {
12
12
  const foundCluster = clusters?.find((cluster) => cluster.uuid === props.clusterUuid);
13
13
  clustername = foundCluster?.name;
14
14
  }
15
- let stage, color;
15
+ let color;
16
+ let stage;
16
17
  if ("stage" in props) {
17
18
  stage = props.stage;
18
19
  }
@@ -38,19 +39,19 @@ export const C3ClusterTagWithClusterName = (props) => {
38
39
  label = stage;
39
40
  }
40
41
  if (label && conditionalRendering(stage)) {
41
- return React.createElement(Tag, { type: color }, label);
42
+ return _jsx(Tag, { type: color, children: label });
42
43
  }
43
44
  else {
44
- return React.createElement(React.Fragment, null);
45
+ return _jsx(_Fragment, {});
45
46
  }
46
47
  };
47
48
  export const C3ClusterTag = (props) => {
48
49
  const { clusters } = useC3Profile();
49
- return "stage" in props ? (React.createElement(Tag, { type: getColorForStage(props.stage) }, props.stage)) : "clusterUuid" in props ? (generateFromInput({
50
+ return "stage" in props ? (_jsx(Tag, { type: getColorForStage(props.stage), children: props.stage })) : "clusterUuid" in props ? (generateFromInput({
50
51
  clusterUuid: props.clusterUuid,
51
52
  allClusters: clusters,
52
53
  conditionalRendering: props.conditionalRendering || (() => true),
53
- })) : (React.createElement(React.Fragment, null));
54
+ })) : (_jsx(_Fragment, {}));
54
55
  };
55
56
  function generateFromInput(props) {
56
57
  const foundCluster = props.allClusters?.find((cluster) => cluster.uuid === props.clusterUuid);
@@ -58,9 +59,9 @@ function generateFromInput(props) {
58
59
  foundCluster?.labels?.camunda?.length > 0) {
59
60
  const label = foundCluster.labels.camunda[0];
60
61
  return getColorForStage(label) &&
61
- props.conditionalRendering(label) ? (React.createElement(Tag, { type: getColorForStage(label) }, label)) : (React.createElement(React.Fragment, null));
62
+ props.conditionalRendering(label) ? (_jsx(Tag, { type: getColorForStage(label), children: label })) : (_jsx(_Fragment, {}));
62
63
  }
63
- return React.createElement(React.Fragment, null);
64
+ return _jsx(_Fragment, {});
64
65
  }
65
66
  export function getColorForStage(stage) {
66
67
  switch (stage) {