@orchestrator-ui/orchestrator-ui-components 7.2.0 → 7.2.1

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 (101) hide show
  1. package/.turbo/turbo-build.log +8 -8
  2. package/.turbo/turbo-lint.log +5 -2
  3. package/.turbo/turbo-test.log +9 -9
  4. package/CHANGELOG.md +7 -0
  5. package/dist/index.d.ts +1964 -20
  6. package/dist/index.js +656 -603
  7. package/dist/index.js.map +1 -1
  8. package/package.json +5 -4
  9. package/src/components/WfoAgent/ExportButton/styles.ts +9 -9
  10. package/src/components/WfoAgent/ToolProgress/SetFilterTreeDisplay.styles.ts +5 -5
  11. package/src/components/WfoAgent/ToolProgress/styles.ts +7 -7
  12. package/src/components/WfoAgent/WfoAgentChart/WfoAgentLineChart.tsx +2 -2
  13. package/src/components/WfoAgent/WfoAgentChart/WfoAgentPieChart.tsx +2 -2
  14. package/src/components/WfoBadges/WfoEngineStatusBadge/WfoEngineStatusBadge.tsx +2 -2
  15. package/src/components/WfoBadges/WfoFailedTasksBadge/WfoFailedTasksBadge.tsx +21 -29
  16. package/src/components/WfoBadges/WfoProcessStatusBadge/WfoProcessStatusBadge.tsx +12 -12
  17. package/src/components/WfoBadges/WfoProductBlockBadge/WfoProductBlockBadge.tsx +12 -12
  18. package/src/components/WfoBadges/WfoProductStatusBadge/WfoProductStatusBadge.tsx +8 -8
  19. package/src/components/WfoBadges/WfoSubscriptionStatusBadge/WfoSubscriptionStatusBadge.tsx +8 -8
  20. package/src/components/WfoBadges/WfoSubscriptionSyncStatusBadge/WfoSubscriptionSyncStatusBadge.tsx +5 -4
  21. package/src/components/WfoBadges/WfoWebsocketStatusBadge/styles.ts +5 -3
  22. package/src/components/WfoBadges/WfoWorkflowTargetBadge/WfoWorkflowTargetBadge.tsx +14 -13
  23. package/src/components/WfoButtonComboBox/styles.ts +6 -6
  24. package/src/components/WfoDiff/styles.ts +6 -6
  25. package/src/components/WfoError/WfoError.tsx +1 -1
  26. package/src/components/WfoExpandableField/styles.ts +2 -2
  27. package/src/components/WfoFilterTabs/styles.ts +2 -2
  28. package/src/components/WfoJsonCodeBlock/styles.ts +2 -2
  29. package/src/components/WfoKeyValueTable/WfoValueCell.tsx +1 -1
  30. package/src/components/WfoKeyValueTable/styles.ts +6 -6
  31. package/src/components/WfoLogoSpinner/styles.ts +6 -0
  32. package/src/components/WfoMonacoCodeBlock/WfoMonacoCodeBlock.tsx +7 -7
  33. package/src/components/WfoMonacoCodeBlock/styles.ts +5 -3
  34. package/src/components/WfoNoResults/styles.ts +3 -3
  35. package/src/components/WfoPageTemplate/WfoBreadcrumbs/WfoBreadcrumbs.tsx +1 -1
  36. package/src/components/WfoPageTemplate/WfoPageHeader/WfoHamburgerMenu.tsx +3 -7
  37. package/src/components/WfoPageTemplate/WfoPageHeader/WfoPageHeader.tsx +6 -6
  38. package/src/components/WfoPageTemplate/WfoPageHeader/styles.ts +3 -3
  39. package/src/components/WfoPageTemplate/WfoPageTemplate/WfoPageTemplate.tsx +56 -8
  40. package/src/components/WfoPageTemplate/WfoPageTemplate/styles.ts +4 -4
  41. package/src/components/WfoPageTemplate/WfoSidebar/styles.ts +26 -24
  42. package/src/components/WfoPydanticForm/Footer.tsx +5 -5
  43. package/src/components/WfoPydanticForm/fields/WfoArrayField/WfoArrayField.tsx +4 -3
  44. package/src/components/WfoPydanticForm/fields/WfoArrayField/styles.ts +4 -2
  45. package/src/components/WfoPydanticForm/fields/WfoInteger.tsx +5 -5
  46. package/src/components/WfoPydanticForm/fields/WfoLabel.tsx +1 -1
  47. package/src/components/WfoPydanticForm/fields/WfoReactSelect/styles.ts +36 -13
  48. package/src/components/WfoPydanticForm/fields/styles.ts +8 -8
  49. package/src/components/WfoSearchPage/WfoConditionRow/WfoPathChips.tsx +1 -1
  50. package/src/components/WfoSearchPage/WfoConditionRow/WfoSelectedPathDisplay.tsx +8 -5
  51. package/src/components/WfoSearchPage/WfoFilterGroup/WfoFilterGroup.tsx +1 -1
  52. package/src/components/WfoSettings/styles.ts +5 -6
  53. package/src/components/WfoStartButton/WfoStartButtonComboBox.tsx +4 -7
  54. package/src/components/WfoStartButton/styles.ts +6 -6
  55. package/src/components/WfoSubscription/WfoSubscriptionActions/styles.ts +3 -3
  56. package/src/components/WfoSubscription/WfoSubscriptionProductBlock/styles.ts +8 -9
  57. package/src/components/WfoSubscription/WfoTargetTypeIcon.tsx +4 -2
  58. package/src/components/WfoSubscription/styles.ts +9 -4
  59. package/src/components/WfoSubscription/utils/utils.spec.ts +8 -8
  60. package/src/components/WfoSubscription/utils/utils.ts +4 -4
  61. package/src/components/WfoSummary/WfoSummaryCardHeader/WfoSummaryCardHeader.tsx +5 -1
  62. package/src/components/WfoSummary/WfoSummaryCardHeader/styles.ts +2 -2
  63. package/src/components/WfoSummary/WfoSummaryCardList/WfoSummaryCardListItem.tsx +3 -1
  64. package/src/components/WfoSummary/WfoSummaryCardList/styles.ts +4 -3
  65. package/src/components/WfoSummary/styles.ts +2 -2
  66. package/src/components/WfoTable/WfoAdvancedTable/WfoAdvancedTable.tsx +2 -2
  67. package/src/components/WfoTable/WfoFirstPartUUID/WfoFirstPartUUID.tsx +1 -1
  68. package/src/components/WfoTable/WfoFirstPartUUID/styles.ts +2 -2
  69. package/src/components/WfoTable/WfoSortButtons/WfoSortButton.tsx +5 -1
  70. package/src/components/WfoTable/WfoStatusColorField/styles.ts +2 -2
  71. package/src/components/WfoTable/WfoTable/WfoGroupedTable/styles.ts +3 -3
  72. package/src/components/WfoTable/WfoTable/WfoTable.tsx +9 -3
  73. package/src/components/WfoTable/WfoTable/WfoTableHeaderCell/WfoSortDirectionIcon.tsx +3 -3
  74. package/src/components/WfoTable/WfoTable/WfoTableHeaderCell/styles.ts +10 -10
  75. package/src/components/WfoTable/WfoTable/styles.ts +13 -14
  76. package/src/components/WfoTable/WfoTable/utils.ts +29 -1
  77. package/src/components/WfoTable/WfoTableSettingsModal/styles.ts +6 -6
  78. package/src/components/WfoTable/utils/tableUtils.ts +0 -1
  79. package/src/components/WfoTableCodeBlock/styles.ts +2 -2
  80. package/src/components/WfoTextAnchor/styles.ts +2 -2
  81. package/src/components/WfoTimeline/styles.ts +8 -8
  82. package/src/components/WfoTree/styles.ts +5 -6
  83. package/src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx +6 -2
  84. package/src/components/WfoWorkflowSteps/WfoStepStatusIcon/WfoStepStatusIcon.tsx +12 -9
  85. package/src/components/WfoWorkflowSteps/WfoTraceback/styles.ts +2 -2
  86. package/src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoStepListHeader.tsx +1 -1
  87. package/src/components/WfoWorkflowSteps/styles.ts +9 -6
  88. package/src/components/confirmationDialog/WfoConfirmationDialog.tsx +1 -1
  89. package/src/configuration/version.ts +1 -1
  90. package/src/hooks/useOrchestratorTheme.ts +20 -18
  91. package/src/hooks/useWithOrchestratorTheme.ts +4 -4
  92. package/src/pages/processes/WfoProcessDetail.tsx +3 -3
  93. package/src/pages/processes/WfoProcessListSubscriptionsCell.tsx +1 -1
  94. package/src/pages/processes/WfoProductInformationWithLink.tsx +1 -1
  95. package/src/pages/processes/WfoStartProcessPage.tsx +6 -1
  96. package/src/pages/settings/WfoSettingsPage.tsx +2 -1
  97. package/src/pages/tasks/WfoTasksListPage.tsx +1 -1
  98. package/src/theme/baseStyles/formFieldsBaseStyle.ts +8 -6
  99. package/src/theme/index.ts +1 -1
  100. package/src/theme/wfoThemeModifications.ts +117 -0
  101. package/src/theme/defaultOrchestratorTheme.ts +0 -129
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orchestrator-ui/orchestrator-ui-components",
3
- "version": "7.2.0",
3
+ "version": "7.2.1",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Library of UI Components used to display the workflow orchestrator frontend",
6
6
  "author": {
@@ -39,7 +39,6 @@
39
39
  "@copilotkit/react-ui": "1.10.6",
40
40
  "@copilotkit/runtime": "1.10.6",
41
41
  "@elastic/charts": "^64.1.0",
42
- "@elastic/eui": "101.3.0",
43
42
  "@emotion/css": "^11.11.2",
44
43
  "@emotion/react": "^11.11.4",
45
44
  "@monaco-editor/react": "^4.7.0",
@@ -80,12 +79,14 @@
80
79
  "jest-environment-jsdom": "^30.2.0",
81
80
  "jest-watch-typeahead": "^3.0.1",
82
81
  "tsup": "^8.5.0",
83
- "typescript": "^5.5.2"
82
+ "typescript": "^5.5.2",
83
+ "@elastic/eui": "^111.0.0"
84
84
  },
85
85
  "peerDependencies": {
86
86
  "next": "^15.5.9",
87
87
  "react": "^18.3.1",
88
- "react-dom": "^18.3.1"
88
+ "react-dom": "^18.3.1",
89
+ "@elastic/eui": "^111.0.0"
89
90
  },
90
91
  "type": "module",
91
92
  "main": "./dist/index.js",
@@ -1,8 +1,8 @@
1
1
  import { css } from '@emotion/react';
2
2
 
3
- import { WfoTheme } from '@/hooks';
3
+ import { WfoThemeHelpers } from '@/hooks';
4
4
 
5
- export const getExportButtonStyles = ({ theme }: WfoTheme) => {
5
+ export const getExportButtonStyles = ({ theme }: WfoThemeHelpers) => {
6
6
  const containerStyle = css({
7
7
  marginTop: theme.size.xl,
8
8
  marginBottom: theme.size.xl,
@@ -10,7 +10,7 @@ export const getExportButtonStyles = ({ theme }: WfoTheme) => {
10
10
  });
11
11
 
12
12
  const buttonWrapperStyle = css({
13
- backgroundColor: theme.colors.lightestShade,
13
+ backgroundColor: theme.colors.backgroundBaseNeutral,
14
14
  padding: `${theme.size.xl} ${theme.size.xl}`,
15
15
  border: `${theme.border.width.thin} solid transparent`,
16
16
  display: 'flex',
@@ -21,7 +21,7 @@ export const getExportButtonStyles = ({ theme }: WfoTheme) => {
21
21
  const titleStyle = css({
22
22
  fontSize: theme.size.m,
23
23
  fontWeight: theme.font.weight.semiBold,
24
- color: theme.colors.darkestShade,
24
+ color: theme.colors.textParagraph,
25
25
  });
26
26
 
27
27
  const fileRowStyle = css({
@@ -29,10 +29,10 @@ export const getExportButtonStyles = ({ theme }: WfoTheme) => {
29
29
  alignItems: 'center',
30
30
  justifyContent: 'space-between',
31
31
  gap: theme.size.m,
32
- border: `${theme.border.width.thin} solid ${theme.colors.lightShade}`,
32
+ border: `${theme.border.width.thin} solid ${theme.colors.borderBaseSubdued}`,
33
33
  borderRadius: theme.border.radius.medium,
34
34
  padding: `${theme.size.m} ${theme.size.l}`,
35
- backgroundColor: theme.colors.emptyShade,
35
+ backgroundColor: theme.colors.backgroundBaseNeutral,
36
36
  cursor: 'pointer',
37
37
  });
38
38
 
@@ -41,20 +41,20 @@ export const getExportButtonStyles = ({ theme }: WfoTheme) => {
41
41
  alignItems: 'center',
42
42
  gap: theme.size.m,
43
43
  flex: 1,
44
- color: theme.colors.darkestShade,
44
+ color: theme.colors.textParagraph,
45
45
  });
46
46
 
47
47
  const filenameStyle = css({
48
48
  fontSize: theme.size.m,
49
49
  fontWeight: theme.font.weight.medium,
50
- color: theme.colors.darkestShade,
50
+ color: theme.colors.textParagraph,
51
51
  });
52
52
 
53
53
  const downloadButtonStyle = css({
54
54
  display: 'flex',
55
55
  alignItems: 'center',
56
56
  justifyContent: 'center',
57
- color: theme.colors.darkestShade,
57
+ color: theme.colors.textParagraph,
58
58
  });
59
59
 
60
60
  return {
@@ -1,8 +1,8 @@
1
1
  import { css } from '@emotion/react';
2
2
 
3
- import { WfoTheme } from '@/hooks';
3
+ import { WfoThemeHelpers } from '@/hooks';
4
4
 
5
- export const getFilterDisplayStyles = ({ theme }: WfoTheme) => {
5
+ export const getFilterDisplayStyles = ({ theme }: WfoThemeHelpers) => {
6
6
  const wrapStyle = css({
7
7
  display: 'flex',
8
8
  flexWrap: 'wrap',
@@ -21,18 +21,18 @@ export const getFilterDisplayStyles = ({ theme }: WfoTheme) => {
21
21
  alignItems: 'center',
22
22
  borderRadius: theme.size.xl,
23
23
  border: `1px solid ${theme.border.color}`,
24
- backgroundColor: theme.colors.body,
24
+ backgroundColor: theme.colors.backgroundBasePlain,
25
25
  padding: `${theme.size.s} ${theme.size.m}`,
26
26
  lineHeight: 1.1,
27
27
  gap: theme.size.s,
28
28
  });
29
29
 
30
30
  const groupStyle = css({
31
- border: `1px solid ${theme.colors.lightShade}`,
31
+ border: `1px solid ${theme.colors.borderBaseSubdued}`,
32
32
  borderRadius: theme.border.radius.medium,
33
33
  padding: theme.size.s,
34
34
  margin: theme.size.xs,
35
- backgroundColor: theme.colors.body,
35
+ backgroundColor: theme.colors.backgroundBasePlain,
36
36
  });
37
37
 
38
38
  const operatorStyle = css({
@@ -1,12 +1,12 @@
1
1
  import { css } from '@emotion/react';
2
2
 
3
- import { WfoTheme } from '@/hooks';
3
+ import { WfoThemeHelpers } from '@/hooks';
4
4
 
5
- export const getToolProgressStyles = ({ theme }: WfoTheme) => {
5
+ export const getToolProgressStyles = ({ theme }: WfoThemeHelpers) => {
6
6
  const containerStyle = css({
7
- border: `${theme.border.width.thin} solid ${theme.colors.lightShade}`,
7
+ border: `${theme.border.width.thin} solid ${theme.colors.borderBaseSubdued}`,
8
8
  borderRadius: theme.border.radius.medium,
9
- backgroundColor: theme.colors.emptyShade,
9
+ backgroundColor: theme.colors.backgroundBaseNeutral,
10
10
  transition: `all ${theme.animation.normal} ease`,
11
11
  maxWidth: '50%',
12
12
  marginRight: 'auto',
@@ -16,7 +16,7 @@ export const getToolProgressStyles = ({ theme }: WfoTheme) => {
16
16
  cursor: 'pointer',
17
17
  '&:hover': {
18
18
  borderColor: theme.colors.primary,
19
- backgroundColor: theme.colors.lightestShade,
19
+ backgroundColor: theme.colors.backgroundBasePlain,
20
20
  },
21
21
  });
22
22
 
@@ -30,14 +30,14 @@ export const getToolProgressStyles = ({ theme }: WfoTheme) => {
30
30
  });
31
31
 
32
32
  const expandedContentStyle = css({
33
- borderTop: `${theme.border.width.thin} solid ${theme.colors.lightShade}`,
33
+ borderTop: `${theme.border.width.thin} solid ${theme.colors.borderBaseSubdued}`,
34
34
  padding: `${theme.size.base} ${theme.size.l}`,
35
35
  });
36
36
 
37
37
  const iconSize = 18;
38
38
 
39
39
  const iconStyle = css({
40
- color: theme.colors.subduedText,
40
+ color: theme.colors.textSubdued,
41
41
  });
42
42
 
43
43
  return {
@@ -21,8 +21,8 @@ export type WfoAgentLineChartProps = {
21
21
 
22
22
  export function WfoAgentLineChart({ aggregationData }: WfoAgentLineChartProps) {
23
23
  const { results } = aggregationData;
24
- const { isDarkThemeActive, multiplyByBaseUnit } = useOrchestratorTheme();
25
- const chartBaseTheme = isDarkThemeActive ? DARK_THEME : LIGHT_THEME;
24
+ const { isDarkModeActive, multiplyByBaseUnit } = useOrchestratorTheme();
25
+ const chartBaseTheme = isDarkModeActive ? DARK_THEME : LIGHT_THEME;
26
26
 
27
27
  const firstResult = results[0];
28
28
  const groupKeys = Object.keys(firstResult.group_values);
@@ -23,8 +23,8 @@ export type WfoAgentPieChartProps = {
23
23
 
24
24
  export function WfoAgentPieChart({ aggregationData }: WfoAgentPieChartProps) {
25
25
  const { results } = aggregationData;
26
- const { isDarkThemeActive, multiplyByBaseUnit } = useOrchestratorTheme();
27
- const chartBaseTheme = isDarkThemeActive ? DARK_THEME : LIGHT_THEME;
26
+ const { isDarkModeActive, multiplyByBaseUnit } = useOrchestratorTheme();
27
+ const chartBaseTheme = isDarkModeActive ? DARK_THEME : LIGHT_THEME;
28
28
 
29
29
  const firstResult = results[0];
30
30
  const groupKeys = Object.keys(firstResult.group_values);
@@ -31,8 +31,8 @@ export const WfoEngineStatusBadge = () => {
31
31
 
32
32
  return (
33
33
  <WfoHeaderBadge
34
- color={theme.colors.ghost}
35
- textColor={theme.colors.shadow}
34
+ color={theme.colors.backgroundBaseNeutral}
35
+ textColor={theme.colors.textParagraph}
36
36
  iconType={() => <WfoStatusDotIcon color={engineColor} />}
37
37
  >
38
38
  {engineStatusText}
@@ -30,6 +30,7 @@ const getTaskCountsSummary = (
30
30
  processStatusCounts?.task_counts.inconsistent_data || 0;
31
31
  const apiUnavailable =
32
32
  processStatusCounts?.task_counts.api_unavailable || 0;
33
+
33
34
  return {
34
35
  failed,
35
36
  inconsistentData,
@@ -40,7 +41,7 @@ const getTaskCountsSummary = (
40
41
 
41
42
  const WfoTasksLink = ({ children }: { children: ReactNode }) => (
42
43
  <Link
43
- href={`${PATH_TASKS}`}
44
+ href={PATH_TASKS}
44
45
  onClick={(e) => {
45
46
  e.currentTarget.blur();
46
47
  }}
@@ -78,8 +79,8 @@ export const WfoFailedTasksBadge = () => {
78
79
  <WfoTasksLink>
79
80
  <WfoHeaderBadge
80
81
  css={failedTaskBadgeStyle}
81
- color={theme.colors.ghost}
82
- textColor={theme.colors.shadow}
82
+ color={theme.colors.backgroundBaseNeutral}
83
+ textColor={theme.colors.textParagraph}
83
84
  iconType={() => (
84
85
  <WfoXCircleFill color={theme.colors.danger} />
85
86
  )}
@@ -89,31 +90,22 @@ export const WfoFailedTasksBadge = () => {
89
90
  </WfoTasksLink>
90
91
  </EuiToolTip>
91
92
  );
92
- } else {
93
- return (
94
- <EuiToolTip
95
- position="bottom"
96
- content={
97
- <>
98
- <div>{t('noFailedTasks')}</div>
99
- </>
100
- }
101
- >
102
- <WfoTasksLink>
103
- <WfoHeaderBadge
104
- css={failedTaskBadgeStyle}
105
- color={theme.colors.ghost}
106
- textColor={theme.colors.shadow}
107
- iconType={() => (
108
- <WfoCheckmarkCircleFill
109
- color={theme.colors.success}
110
- />
111
- )}
112
- >
113
- 0
114
- </WfoHeaderBadge>
115
- </WfoTasksLink>
116
- </EuiToolTip>
117
- );
118
93
  }
94
+
95
+ return (
96
+ <EuiToolTip position="bottom" content={<div>{t('noFailedTasks')}</div>}>
97
+ <WfoTasksLink>
98
+ <WfoHeaderBadge
99
+ css={failedTaskBadgeStyle}
100
+ color={theme.colors.backgroundBaseNeutral}
101
+ textColor={theme.colors.textParagraph}
102
+ iconType={() => (
103
+ <WfoCheckmarkCircleFill color={theme.colors.success} />
104
+ )}
105
+ >
106
+ 0
107
+ </WfoHeaderBadge>
108
+ </WfoTasksLink>
109
+ </EuiToolTip>
110
+ );
119
111
  };
@@ -18,37 +18,37 @@ export const WfoProcessStatusBadge: FC<WfoProcessStatusBadgeProps> = ({
18
18
  const {
19
19
  primary,
20
20
  danger,
21
- dangerText,
22
- lightShade,
23
- primaryText,
21
+ textDanger,
22
+ borderBaseSubdued,
23
+ textPrimary,
24
24
  success,
25
- successText,
26
- text,
25
+ textSuccess,
26
+ textParagraph,
27
27
  warning,
28
- warningText,
28
+ textWarning,
29
29
  } = theme.colors;
30
30
 
31
31
  switch (status.toLowerCase()) {
32
32
  case ProcessStatus.COMPLETED:
33
33
  return {
34
34
  badgeColor: toSecondaryColor(success),
35
- textColor: successText,
35
+ textColor: textSuccess,
36
36
  };
37
37
  case ProcessStatus.FAILED:
38
38
  case ProcessStatus.ABORTED:
39
39
  return {
40
40
  badgeColor: toSecondaryColor(danger),
41
- textColor: dangerText,
41
+ textColor: textDanger,
42
42
  };
43
43
  case ProcessStatus.SUSPENDED:
44
44
  return {
45
45
  badgeColor: toSecondaryColor(warning),
46
- textColor: warningText,
46
+ textColor: textWarning,
47
47
  };
48
48
  case ProcessStatus.CREATED:
49
49
  return {
50
- badgeColor: lightShade,
51
- textColor: text,
50
+ badgeColor: borderBaseSubdued,
51
+ textColor: textParagraph,
52
52
  };
53
53
  case ProcessStatus.WAITING:
54
54
  case ProcessStatus.RESUMED:
@@ -58,7 +58,7 @@ export const WfoProcessStatusBadge: FC<WfoProcessStatusBadgeProps> = ({
58
58
  default:
59
59
  return {
60
60
  badgeColor: toSecondaryColor(primary),
61
- textColor: primaryText,
61
+ textColor: textPrimary,
62
62
  };
63
63
  }
64
64
  };
@@ -23,46 +23,46 @@ export function WfoProductBlockBadge({
23
23
  const getBadgeColorFromType = (badgeType: BadgeType) => {
24
24
  const {
25
25
  danger,
26
- dangerText,
27
- lightShade,
26
+ textDanger,
27
+ borderBaseSubdued,
28
28
  primary,
29
- primaryText,
29
+ textPrimary,
30
30
  success,
31
- successText,
32
- text,
31
+ textSuccess,
33
32
  warning,
34
- warningText,
33
+ textWarning,
34
+ textParagraph,
35
35
  } = theme.colors;
36
36
 
37
37
  switch (badgeType) {
38
38
  case BadgeType.RESOURCE_TYPE:
39
39
  return {
40
40
  badgeColor: toSecondaryColor(success),
41
- textColor: successText,
41
+ textColor: textSuccess,
42
42
  };
43
43
  case BadgeType.PRODUCT_BLOCK_TAG:
44
44
  case BadgeType.PRODUCT_BLOCK:
45
45
  return {
46
46
  badgeColor: toSecondaryColor(primary),
47
- textColor: primaryText,
47
+ textColor: textPrimary,
48
48
  };
49
49
  case BadgeType.WORKFLOW:
50
50
  case BadgeType.TASK:
51
51
  case BadgeType.PRODUCT:
52
52
  return {
53
53
  badgeColor: toSecondaryColor(danger),
54
- textColor: dangerText,
54
+ textColor: textDanger,
55
55
  };
56
56
  case BadgeType.FIXED_INPUT:
57
57
  return {
58
58
  badgeColor: toSecondaryColor(warning),
59
- textColor: warningText,
59
+ textColor: textWarning,
60
60
  };
61
61
  case BadgeType.PRODUCT_TAG:
62
62
  default:
63
63
  return {
64
- badgeColor: lightShade,
65
- textColor: text,
64
+ badgeColor: borderBaseSubdued,
65
+ textColor: textParagraph,
66
66
  };
67
67
  }
68
68
  };
@@ -16,29 +16,29 @@ export const WfoProductStatusBadge: FC<WfoProductStatusBadgeProps> = ({
16
16
  const getBadgeColorFromStatus = (status: string) => {
17
17
  const {
18
18
  primary,
19
- darkestShade,
20
- lightShade,
21
- primaryText,
19
+ borderBaseSubdued,
20
+ textPrimary,
21
+ textParagraph,
22
22
  success,
23
- successText,
23
+ textSuccess,
24
24
  } = theme.colors;
25
25
 
26
26
  switch (status.toLowerCase()) {
27
27
  case ProductLifecycleStatus.ACTIVE:
28
28
  return {
29
29
  badgeColor: toSecondaryColor(success),
30
- textColor: successText,
30
+ textColor: textSuccess,
31
31
  };
32
32
  case ProductLifecycleStatus.END_OF_LIFE:
33
33
  return {
34
- badgeColor: lightShade,
35
- textColor: darkestShade,
34
+ badgeColor: borderBaseSubdued,
35
+ textColor: textParagraph,
36
36
  };
37
37
 
38
38
  default:
39
39
  return {
40
40
  badgeColor: toSecondaryColor(primary),
41
- textColor: primaryText,
41
+ textColor: textPrimary,
42
42
  };
43
43
  }
44
44
  };
@@ -17,29 +17,29 @@ export const WfoSubscriptionStatusBadge: FC<
17
17
  const getBadgeColorFromStatus = () => {
18
18
  const {
19
19
  primary,
20
- darkestShade,
21
- lightShade,
22
- primaryText,
20
+ borderBaseSubdued,
21
+ textParagraph,
22
+ textPrimary,
23
23
  success,
24
- successText,
24
+ textSuccess,
25
25
  } = theme.colors;
26
26
 
27
27
  switch (lowerCaseStatus) {
28
28
  case SubscriptionStatus.ACTIVE:
29
29
  return {
30
30
  badgeColor: toSecondaryColor(success),
31
- textColor: successText,
31
+ textColor: textSuccess,
32
32
  };
33
33
  case SubscriptionStatus.TERMINATED:
34
34
  return {
35
- badgeColor: lightShade,
36
- textColor: darkestShade,
35
+ badgeColor: borderBaseSubdued,
36
+ textColor: textParagraph,
37
37
  };
38
38
 
39
39
  default:
40
40
  return {
41
41
  badgeColor: toSecondaryColor(primary),
42
- textColor: primaryText,
42
+ textColor: textPrimary,
43
43
  };
44
44
  }
45
45
  };
@@ -2,7 +2,8 @@ import React, { FC } from 'react';
2
2
 
3
3
  import { useTranslations } from 'next-intl';
4
4
 
5
- import { useOrchestratorTheme } from '../../../hooks';
5
+ import { useOrchestratorTheme } from '@/hooks';
6
+
6
7
  import { WfoBadge } from '../WfoBadge';
7
8
 
8
9
  export type WfoSubscriptionSyncStatusBadgeProps = {
@@ -17,18 +18,18 @@ export const WfoSubscriptionSyncStatusBadge: FC<
17
18
  const t = useTranslations('common');
18
19
 
19
20
  const getBadgePropertiesFromStatus = (insync: boolean) => {
20
- const { danger, dangerText, success, successText } = theme.colors;
21
+ const { danger, textDanger, success, textSuccess } = theme.colors;
21
22
 
22
23
  if (insync) {
23
24
  return {
24
25
  badgeColor: toSecondaryColor(success),
25
- textColor: successText,
26
+ textColor: textSuccess,
26
27
  insyncText: t('insyncTrue'),
27
28
  };
28
29
  } else {
29
30
  return {
30
31
  badgeColor: toSecondaryColor(danger),
31
- textColor: dangerText,
32
+ textColor: textDanger,
32
33
  insyncText: t('insyncFalse'),
33
34
  };
34
35
  }
@@ -1,12 +1,14 @@
1
1
  import { css } from '@emotion/react';
2
2
 
3
- import { WfoTheme } from '@/hooks';
3
+ import { WfoThemeHelpers } from '@/hooks';
4
4
 
5
- export const getStyles = ({ theme }: WfoTheme) => {
5
+ export const getStyles = ({ theme, isDarkModeActive }: WfoThemeHelpers) => {
6
6
  const connectedStyle = css({
7
7
  paddingLeft: theme.base / 2,
8
8
  cursor: 'default',
9
- backgroundColor: theme.colors.ghost,
9
+ backgroundColor: isDarkModeActive
10
+ ? theme.colors.backgroundBaseNeutral
11
+ : theme.colors.ghost,
10
12
  });
11
13
 
12
14
  const disconnectedStyle = css({
@@ -1,7 +1,8 @@
1
1
  import React, { FC } from 'react';
2
2
 
3
- import { useOrchestratorTheme } from '../../../hooks';
4
- import { WorkflowTarget } from '../../../types';
3
+ import { useOrchestratorTheme } from '@/hooks';
4
+ import { WorkflowTarget } from '@/types';
5
+
5
6
  import { WfoBadge } from '../WfoBadge';
6
7
 
7
8
  export type WfoWorkflowTargetBadgeProps = {
@@ -18,47 +19,47 @@ export const WfoWorkflowTargetBadge: FC<WfoWorkflowTargetBadgeProps> = ({
18
19
  const {
19
20
  primary,
20
21
  danger,
21
- dangerText,
22
- primaryText,
22
+ textDanger,
23
+ textPrimary,
23
24
  success,
24
- successText,
25
+ textSuccess,
25
26
  warning,
26
- warningText,
27
+ textWarning,
27
28
  accent,
28
- accentText,
29
+ textAccent,
29
30
  } = theme.colors;
30
31
 
31
32
  switch (_target?.toLowerCase()) {
32
33
  case WorkflowTarget.CREATE:
33
34
  return {
34
35
  badgeColor: toSecondaryColor(success),
35
- textColor: successText,
36
+ textColor: textSuccess,
36
37
  };
37
38
  case WorkflowTarget.MODIFY:
38
39
  return {
39
40
  badgeColor: toSecondaryColor(primary),
40
- textColor: primaryText,
41
+ textColor: textPrimary,
41
42
  };
42
43
  case WorkflowTarget.SYSTEM:
43
44
  case WorkflowTarget.VALIDATE:
44
45
  return {
45
46
  badgeColor: toSecondaryColor(warning),
46
- textColor: warningText,
47
+ textColor: textWarning,
47
48
  };
48
49
  case WorkflowTarget.TERMINATE:
49
50
  return {
50
51
  badgeColor: toSecondaryColor(danger),
51
- textColor: dangerText,
52
+ textColor: textDanger,
52
53
  };
53
54
  case WorkflowTarget.RECONCILE:
54
55
  return {
55
56
  badgeColor: toSecondaryColor(accent),
56
- textColor: accentText,
57
+ textColor: textAccent,
57
58
  };
58
59
  default:
59
60
  return {
60
61
  badgeColor: toSecondaryColor(primary),
61
- textColor: primaryText,
62
+ textColor: textPrimary,
62
63
  };
63
64
  }
64
65
  };
@@ -1,19 +1,19 @@
1
1
  import { css } from '@emotion/react';
2
2
 
3
- import { WfoTheme } from '@/hooks';
3
+ import { WfoThemeHelpers } from '@/hooks';
4
4
 
5
- export const getWfoButtonComboBoxStyles = ({ theme }: WfoTheme) => {
5
+ export const getWfoButtonComboBoxStyles = ({ theme }: WfoThemeHelpers) => {
6
6
  const selectableStyle = css({
7
7
  '.euiFieldSearch': {
8
- backgroundColor: theme.colors.body,
9
- color: theme.colors.text,
8
+ backgroundColor: theme.colors.backgroundBasePlain,
9
+ color: theme.colors.textParagraph,
10
10
  '&:focus': {
11
- backgroundColor: theme.colors.emptyShade,
11
+ backgroundColor: theme.colors.backgroundBaseNeutral,
12
12
  },
13
13
  },
14
14
 
15
15
  '.euiSelectableList .euiSelectableListItem': {
16
- borderColor: theme.colors.lightShade,
16
+ borderColor: theme.colors.borderBaseSubdued,
17
17
  },
18
18
  });
19
19
 
@@ -1,23 +1,23 @@
1
1
  import { shade, tint } from '@elastic/eui';
2
2
  import { css } from '@emotion/react';
3
3
 
4
- import { WfoTheme } from '@/hooks';
4
+ import { WfoThemeHelpers } from '@/hooks';
5
5
 
6
6
  export const getWfoDiffStyles = ({
7
7
  theme,
8
8
  toSecondaryColor,
9
- isDarkThemeActive,
10
- }: WfoTheme) => {
9
+ isDarkModeActive,
10
+ }: WfoThemeHelpers) => {
11
11
  const SHADE_FACTOR = 0.5;
12
12
  const TINT_FACTOR = 0.65;
13
13
 
14
14
  const insertGutterColor = toSecondaryColor(theme.colors.success);
15
- const insertCodeColor = isDarkThemeActive
15
+ const insertCodeColor = isDarkModeActive
16
16
  ? shade(insertGutterColor, SHADE_FACTOR)
17
17
  : tint(insertGutterColor, TINT_FACTOR);
18
18
 
19
19
  const deleteColor = toSecondaryColor(theme.colors.danger);
20
- const deleteSecondaryColor = isDarkThemeActive
20
+ const deleteSecondaryColor = isDarkModeActive
21
21
  ? shade(deleteColor, SHADE_FACTOR)
22
22
  : tint(deleteColor, TINT_FACTOR);
23
23
 
@@ -36,7 +36,7 @@ export const getWfoDiffStyles = ({
36
36
  },
37
37
 
38
38
  '.operator, .punctuation': {
39
- color: theme.colors.text,
39
+ color: theme.colors.textParagraph,
40
40
  },
41
41
  });
42
42