@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
@@ -1,8 +1,10 @@
1
+ import { CSSObjectWithLabel } from 'react-select';
2
+
1
3
  import { css } from '@emotion/react';
2
4
 
3
- import type { WfoTheme } from '@/hooks';
5
+ import type { WfoThemeHelpers } from '@/hooks';
4
6
 
5
- export const getWfoReactSelectStyles = (wfoTheme: WfoTheme) => {
7
+ export const getWfoReactSelectStyles = (wfoTheme: WfoThemeHelpers) => {
6
8
  const { theme } = wfoTheme;
7
9
 
8
10
  const reactSelectInnerComponentStyles = {
@@ -12,20 +14,23 @@ export const getWfoReactSelectStyles = (wfoTheme: WfoTheme) => {
12
14
  ) => ({
13
15
  ...baseStyles,
14
16
  borderBottom: theme.border.thin,
15
- borderColor: theme.colors.lightShade,
16
- backgroundColor: theme.colors.lightestShade,
17
+ borderColor: theme.colors.borderBaseSubdued,
18
+ backgroundColor: theme.colors.backgroundBaseSubdued,
17
19
  color: state.isSelected
18
- ? theme.colors.primaryText
19
- : theme.colors.text,
20
+ ? theme.colors.textPrimary
21
+ : theme.colors.textParagraph,
22
+ '&:active': {
23
+ backgroundColor: theme.colors.backgroundLightPrimary,
24
+ },
20
25
  }),
21
26
  control: (baseStyles: object, state: { isFocused: boolean }) => {
22
27
  return {
23
28
  ...baseStyles,
24
29
  backgroundColor: state.isFocused
25
- ? theme.colors.emptyShade
26
- : theme.colors.lightestShade,
27
- color: theme.colors.text,
28
- border: `1px solid ${theme.colors.lightShade}`,
30
+ ? theme.colors.backgroundBaseNeutral
31
+ : theme.colors.backgroundBaseSubdued,
32
+ color: theme.colors.textParagraph,
33
+ border: `1px solid ${theme.colors.borderBaseSubdued}`,
29
34
  borderColor: 'none',
30
35
  '&:hover': {
31
36
  borderColor: 'none',
@@ -34,7 +39,7 @@ export const getWfoReactSelectStyles = (wfoTheme: WfoTheme) => {
34
39
  },
35
40
  input: (baseStyles: object) => ({
36
41
  ...baseStyles,
37
- color: theme.colors.text,
42
+ color: theme.colors.textParagraph,
38
43
  }),
39
44
  singleValue: (baseStyles: object, state: { isDisabled: boolean }) => {
40
45
  const opacity = state.isDisabled ? 0.6 : 1;
@@ -43,12 +48,30 @@ export const getWfoReactSelectStyles = (wfoTheme: WfoTheme) => {
43
48
  ...baseStyles,
44
49
  opacity,
45
50
  transition,
46
- color: theme.colors.text,
51
+ color: theme.colors.textParagraph,
47
52
  };
48
53
  },
49
54
  menu: (baseStyles: object) => ({
50
55
  ...baseStyles,
51
- backgroundColor: theme.colors.lightestShade,
56
+ backgroundColor: theme.colors.backgroundBasePlain,
57
+ }),
58
+ dropdownIndicator: (
59
+ base: CSSObjectWithLabel,
60
+ state: { isDisabled: boolean },
61
+ ) => ({
62
+ ...base,
63
+ color: state.isDisabled
64
+ ? theme.colors.borderBaseSubdued
65
+ : theme.colors.textDisabled,
66
+ }),
67
+ indicatorSeparator: (
68
+ base: CSSObjectWithLabel,
69
+ state: { isDisabled: boolean },
70
+ ) => ({
71
+ ...base,
72
+ backgroundColor: state.isDisabled
73
+ ? theme.colors.borderBaseSubdued
74
+ : theme.colors.textDisabled,
52
75
  }),
53
76
  };
54
77
 
@@ -1,6 +1,6 @@
1
1
  import { css } from '@emotion/react';
2
2
 
3
- import type { WfoTheme } from '@/hooks';
3
+ import type { WfoThemeHelpers } from '@/hooks';
4
4
 
5
5
  export const getWfoObjectFieldStyles = () => {
6
6
  const wfoObjectFieldStyles = css({
@@ -14,18 +14,18 @@ export const getWfoObjectFieldStyles = () => {
14
14
  };
15
15
  };
16
16
 
17
- export const getCommonFormFieldStyles = ({ theme }: WfoTheme) => {
17
+ export const getCommonFormFieldStyles = ({ theme }: WfoThemeHelpers) => {
18
18
  const formRowStyle = css({
19
19
  marginBottom: theme.base * 2,
20
20
 
21
21
  '.euiText': {
22
- color: theme.colors.text,
22
+ color: theme.colors.textParagraph,
23
23
  },
24
24
  '.euiFormLabel': {
25
- color: theme.colors.text,
25
+ color: theme.colors.textParagraph,
26
26
  cursor: 'text',
27
27
  '&.euiFormLabel-isFocused': {
28
- color: theme.colors.primaryText,
28
+ color: theme.colors.textPrimary,
29
29
  },
30
30
  },
31
31
  '.euiFormRow__labelWrapper': {
@@ -35,7 +35,7 @@ export const getCommonFormFieldStyles = ({ theme }: WfoTheme) => {
35
35
  });
36
36
 
37
37
  const errorStyle = css({
38
- color: theme.colors.dangerText,
38
+ color: theme.colors.textDanger,
39
39
  });
40
40
  return {
41
41
  errorStyle,
@@ -43,7 +43,7 @@ export const getCommonFormFieldStyles = ({ theme }: WfoTheme) => {
43
43
  };
44
44
  };
45
45
 
46
- export const summaryFieldStyles = ({ theme }: WfoTheme) => {
46
+ export const summaryFieldStyles = ({ theme }: WfoThemeHelpers) => {
47
47
  const summaryFieldStyle = css({
48
48
  'div.emailMessage': {
49
49
  td: {
@@ -68,7 +68,7 @@ export const summaryFieldStyles = ({ theme }: WfoTheme) => {
68
68
  },
69
69
  '.label': {
70
70
  fontWeight: 'bold',
71
- color: theme.colors.backgroundBaseSubdued,
71
+ color: theme.colors.backgroundBaseNeutral,
72
72
  backgroundColor: theme.colors.primary,
73
73
  borderRight: `2px solid ${theme.colors.borderBasePlain}`,
74
74
  borderBottom: `1px solid ${theme.colors.borderBasePlain}`,
@@ -163,7 +163,7 @@ export const WfoPathChips: FC<WfoPathChipsProps> = ({
163
163
  key={`arrow-${index}`}
164
164
  type="arrowRight"
165
165
  size="s"
166
- color={theme.colors.mediumShade}
166
+ color={theme.colors.backgroundBaseDisabled}
167
167
  title=""
168
168
  style={{
169
169
  flexShrink: 0,
@@ -20,10 +20,10 @@ export const WfoSelectedPathDisplay: FC<SelectedPathDisplayProps> = ({
20
20
  onClick={onEdit}
21
21
  style={{
22
22
  cursor: 'pointer',
23
- border: `1px solid ${theme.colors.lightShade}`,
23
+ border: `1px solid ${theme.colors.borderBaseSubdued}`,
24
24
  borderRadius: theme.border.radius.medium,
25
25
  padding: `${theme.size.s} ${theme.size.m}`,
26
- backgroundColor: theme.colors.emptyShade,
26
+ backgroundColor: theme.colors.backgroundBaseNeutral,
27
27
  minHeight: '40px',
28
28
  display: 'flex',
29
29
  alignItems: 'center',
@@ -43,7 +43,10 @@ export const WfoSelectedPathDisplay: FC<SelectedPathDisplayProps> = ({
43
43
  responsive={false}
44
44
  >
45
45
  <EuiFlexItem grow={false}>
46
- <EuiText size="s" color={theme.colors.text}>
46
+ <EuiText
47
+ size="s"
48
+ color={theme.colors.textParagraph}
49
+ >
47
50
  {getFieldNameFromFullPath(condition.path)}:
48
51
  </EuiText>
49
52
  </EuiFlexItem>
@@ -52,7 +55,7 @@ export const WfoSelectedPathDisplay: FC<SelectedPathDisplayProps> = ({
52
55
  size="s"
53
56
  style={{
54
57
  backgroundColor:
55
- theme.colors.lightestShade,
58
+ theme.colors.backgroundBasePlain,
56
59
  color: theme.colors.primary,
57
60
  padding: `${theme.size.xxs} ${theme.size.xs}`,
58
61
  borderRadius: theme.border.radius.small,
@@ -64,7 +67,7 @@ export const WfoSelectedPathDisplay: FC<SelectedPathDisplayProps> = ({
64
67
  </EuiFlexItem>
65
68
  </EuiFlexGroup>
66
69
  ) : (
67
- <EuiText size="s" color={theme.colors.text}>
70
+ <EuiText size="s" color={theme.colors.textParagraph}>
68
71
  {condition.path}
69
72
  </EuiText>
70
73
  )}
@@ -226,7 +226,7 @@ export const FilterGroup: FC<FilterGroupProps> = ({
226
226
  <EuiCallOut
227
227
  title={t('emptyGroupTitle')}
228
228
  color="primary"
229
- iconType="iInCircle"
229
+ iconType="info"
230
230
  size="s"
231
231
  >
232
232
  <p>{t('emptyGroupDescription')}</p>
@@ -1,20 +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 getWfoFlushSettingsStyle = (wfoTheme: WfoTheme) => {
6
- const { theme } = wfoTheme;
5
+ export const getWfoFlushSettingsStyle = ({ theme }: WfoThemeHelpers) => {
7
6
  const comboboxStyle = css({
8
7
  // .euiComboBox is needed to override eui styling (more specific)
9
8
  '&.euiComboBox': {
10
9
  '.euiComboBox__inputWrap': {
11
- border: `1px solid ${theme.colors.lightShade}`,
10
+ border: `1px solid ${theme.colors.borderBaseSubdued}`,
12
11
  boxShadow: 'none',
13
- backgroundColor: theme.colors.body,
12
+ backgroundColor: theme.colors.backgroundBasePlain,
14
13
  },
15
14
  '&.euiComboBox-isOpen': {
16
15
  '.euiComboBox__inputWrap': {
17
- backgroundColor: theme.colors.emptyShade,
16
+ backgroundColor: theme.colors.backgroundBaseNeutral,
18
17
  },
19
18
  },
20
19
  },
@@ -41,19 +41,15 @@ export const WfoStartButtonComboBox = ({
41
41
  startWorkflowFilters,
42
42
  }: WfoStartButtonComboBoxProps) => {
43
43
  const [isPopoverOpen, setPopoverOpen] = useState(false);
44
- const { theme, isDarkThemeActive } = useOrchestratorTheme();
44
+ const { theme } = useOrchestratorTheme();
45
45
  const { selectableStyle } = useWithOrchestratorTheme(getStyles);
46
46
 
47
47
  const Button = (
48
48
  <EuiButton
49
49
  onClick={() => setPopoverOpen(!isPopoverOpen)}
50
- iconType={
51
- isProcess
52
- ? 'plus'
53
- : () => <WfoPlusCircleFill color={theme.colors.ghost} />
54
- }
50
+ iconType={() => <WfoPlusCircleFill color={theme.colors.ghost} />}
55
51
  fullWidth={isProcess}
56
- fill={!isProcess || isDarkThemeActive}
52
+ fill
57
53
  >
58
54
  {buttonText}
59
55
  </EuiButton>
@@ -113,6 +109,7 @@ export const WfoStartButtonComboBox = ({
113
109
 
114
110
  return (
115
111
  <EuiPopover
112
+ css={{ display: 'flex' }}
116
113
  initialFocus={`.euiSelectable .euiFieldSearch`}
117
114
  button={Button}
118
115
  isOpen={isPopoverOpen}
@@ -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 getStyles = ({ theme }: WfoTheme) => {
5
+ export const getStyles = ({ 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,10 +1,10 @@
1
1
  import { css } from '@emotion/react';
2
2
 
3
- import { WfoTheme } from '@/hooks';
3
+ import { WfoThemeHelpers } from '@/hooks';
4
4
 
5
5
  const EXPANDED_CONTENT_LEFT_MARGIN = '52px';
6
6
 
7
- export const getSubscriptionActionStyles = ({ theme }: WfoTheme) => {
7
+ export const getSubscriptionActionStyles = ({ theme }: WfoThemeHelpers) => {
8
8
  const clickableStyle = css({
9
9
  '&:hover, & :hover': {
10
10
  cursor: 'pointer',
@@ -33,7 +33,7 @@ export const getSubscriptionActionStyles = ({ theme }: WfoTheme) => {
33
33
 
34
34
  const linkMenuItemStyle = css({
35
35
  '&>:hover': {
36
- backgroundColor: theme.colors.lightestShade,
36
+ backgroundColor: theme.colors.backgroundBasePlain,
37
37
  borderRadius: theme.border.radius.medium,
38
38
  cursor: 'pointer',
39
39
  },
@@ -1,9 +1,8 @@
1
1
  import { css } from '@emotion/react';
2
2
 
3
- import type { WfoTheme } from '@/hooks';
3
+ import type { WfoThemeHelpers } from '@/hooks';
4
4
 
5
- export const getStyles = (wfoTheme: WfoTheme) => {
6
- const { theme, toSecondaryColor } = wfoTheme;
5
+ export const getStyles = ({ theme, toSecondaryColor }: WfoThemeHelpers) => {
7
6
  const iconStyle = css({
8
7
  width: 45,
9
8
  height: 45,
@@ -17,8 +16,8 @@ export const getStyles = (wfoTheme: WfoTheme) => {
17
16
  const iconOutsideCurrentSubscriptionStyle = css([
18
17
  iconStyle,
19
18
  {
20
- backgroundColor: theme.colors.lightShade,
21
- color: theme.colors.darkestShade,
19
+ backgroundColor: theme.colors.borderBaseSubdued,
20
+ color: theme.colors.textParagraph,
22
21
  },
23
22
  ]);
24
23
 
@@ -30,8 +29,8 @@ export const getStyles = (wfoTheme: WfoTheme) => {
30
29
  });
31
30
 
32
31
  const panelStyleOutsideCurrentSubscription = css({
33
- backgroundColor: toSecondaryColor(theme.colors.emptyShade),
34
- border: `dashed 1px ${theme.colors.lightShade}`,
32
+ backgroundColor: toSecondaryColor(theme.colors.backgroundBaseNeutral),
33
+ border: `dashed 1px ${theme.colors.borderBaseSubdued}`,
35
34
  });
36
35
 
37
36
  const rowStyle = css({
@@ -39,9 +38,9 @@ export const getStyles = (wfoTheme: WfoTheme) => {
39
38
  flexDirection: 'row',
40
39
  alignItems: 'flex-start',
41
40
  padding: `${theme.base / 2}px 0`,
42
- borderBottom: `solid 1px ${theme.colors.lightShade}`,
41
+ borderBottom: `solid 1px ${theme.colors.borderBaseSubdued}`,
43
42
  '&:first-child': {
44
- borderTop: `solid 1px ${theme.colors.lightShade}`,
43
+ borderTop: `solid 1px ${theme.colors.borderBaseSubdued}`,
45
44
  },
46
45
  '&:last-child': {
47
46
  borderBottom: 'none',
@@ -53,7 +53,7 @@ export const WfoTargetTypeIcon: FC<WfoTargetTypeIconProps> = ({
53
53
  }) => {
54
54
  const { theme } = useOrchestratorTheme();
55
55
  const backGroundColor = disabled
56
- ? theme.colors.lightShade
56
+ ? theme.colors.borderBaseSubdued
57
57
  : getWorkflowTargetColor(target, theme);
58
58
  const targetLetter = getWorkflowTargetIconContent(target);
59
59
  return (
@@ -66,7 +66,9 @@ export const WfoInSyncCompactIcon: FC<WfoInSyncCompactIconProps> = ({
66
66
  }) => {
67
67
  const { theme } = useOrchestratorTheme();
68
68
 
69
- const color = disabled ? theme.colors.lightShade : theme.colors.danger;
69
+ const color = disabled
70
+ ? theme.colors.borderBaseSubdued
71
+ : theme.colors.danger;
70
72
  const name = 'S';
71
73
  return <Icon targetLetter={name} backgroundColor={color} />;
72
74
  };
@@ -1,8 +1,11 @@
1
1
  import { css } from '@emotion/react';
2
2
 
3
- import { WfoTheme } from '@/hooks';
3
+ import { WfoThemeHelpers } from '@/hooks';
4
4
 
5
- export const getSubscriptionDetailStyles = ({ theme }: WfoTheme) => {
5
+ export const getSubscriptionDetailStyles = ({
6
+ theme,
7
+ isDarkModeActive,
8
+ }: WfoThemeHelpers) => {
6
9
  const productBlockTreeWidth = theme.base * 28;
7
10
 
8
11
  const labelCellStyle = css({
@@ -25,7 +28,9 @@ export const getSubscriptionDetailStyles = ({ theme }: WfoTheme) => {
25
28
  });
26
29
 
27
30
  const tableStyle = css({
28
- backgroundColor: theme.colors.lightestShade,
31
+ backgroundColor: isDarkModeActive
32
+ ? theme.colors.backgroundBasePlain
33
+ : theme.colors.backgroundBaseSubdued,
29
34
  width: '100%',
30
35
  borderRadius: theme.border.radius.medium,
31
36
  marginTop: theme.base / 2,
@@ -37,7 +42,7 @@ export const getSubscriptionDetailStyles = ({ theme }: WfoTheme) => {
37
42
  const workflowTargetStyle = css({ fontWeight: theme.font.weight.bold });
38
43
 
39
44
  const inUseByRelationDetailsStyle = css({
40
- borderColor: theme.colors.lightShade,
45
+ borderColor: theme.colors.borderBaseSubdued,
41
46
  borderStyle: 'solid',
42
47
  borderWidth: 'thin',
43
48
  marginBottom: theme.base / 4,
@@ -103,27 +103,27 @@ describe('flattenArrayProps', () => {
103
103
  });
104
104
 
105
105
  describe('getWorkflowTargetColor', () => {
106
- it('should return successText color for CREATE', () => {
106
+ it('should return textSuccess color for CREATE', () => {
107
107
  const theme = {
108
108
  colors: {
109
- successText: 'successTextColor',
109
+ textSuccess: 'textSuccessColor',
110
110
  },
111
111
  } as EuiThemeComputed;
112
112
 
113
113
  expect(getWorkflowTargetColor(WorkflowTarget.CREATE, theme)).toBe(
114
- 'successTextColor',
114
+ 'textSuccessColor',
115
115
  );
116
116
  });
117
117
 
118
- it('should return primaryText color for MODIFY', () => {
118
+ it('should return textPrimary color for MODIFY', () => {
119
119
  const theme = {
120
120
  colors: {
121
- primaryText: 'primaryTextColor',
121
+ textPrimary: 'textPrimaryColor',
122
122
  },
123
123
  } as EuiThemeComputed;
124
124
 
125
125
  expect(getWorkflowTargetColor(WorkflowTarget.MODIFY, theme)).toBe(
126
- 'primaryTextColor',
126
+ 'textPrimaryColor',
127
127
  );
128
128
  });
129
129
 
@@ -154,14 +154,14 @@ describe('getWorkflowTargetColor', () => {
154
154
  it('should return body color for unknown targets', () => {
155
155
  const theme = {
156
156
  colors: {
157
- body: 'bodyColor',
157
+ backgroundBaseDisabled: 'gray',
158
158
  },
159
159
  } as EuiThemeComputed;
160
160
 
161
161
  // Test with an unknown target
162
162
  expect(
163
163
  getWorkflowTargetColor('UNKNOWN_TARGET' as WorkflowTarget, theme),
164
- ).toBe('bodyColor');
164
+ ).toBe('gray');
165
165
  });
166
166
  });
167
167
 
@@ -68,9 +68,9 @@ export const getWorkflowTargetColor = (
68
68
  // Data returned from graphql can't always be depended on to be lowercase
69
69
  switch (workflowTarget.toLocaleLowerCase()) {
70
70
  case WorkflowTarget.CREATE:
71
- return theme.colors.successText;
71
+ return theme.colors.textSuccess;
72
72
  case WorkflowTarget.MODIFY:
73
- return theme.colors.primaryText;
73
+ return theme.colors.textPrimary;
74
74
  case WorkflowTarget.SYSTEM:
75
75
  case WorkflowTarget.VALIDATE:
76
76
  return theme.colors.warning;
@@ -78,9 +78,9 @@ export const getWorkflowTargetColor = (
78
78
  return theme.colors.accent;
79
79
  case WorkflowTarget.TERMINATE:
80
80
  return theme.colors.danger;
81
+ default:
82
+ return theme.colors.backgroundBaseDisabled;
81
83
  }
82
-
83
- return theme.colors.body;
84
84
  };
85
85
 
86
86
  export const getWorkflowTargetIconContent = (
@@ -35,7 +35,11 @@ export const WfoSummaryCardHeader: FC<WfoSummaryCardHeaderProps> = ({
35
35
 
36
36
  return (
37
37
  <EuiFlexItem grow={0}>
38
- <EuiPanel hasShadow={false} color="subdued" paddingSize="l">
38
+ <EuiPanel
39
+ hasShadow={false}
40
+ css={{ backgroundColor: theme.colors.backgroundBaseSubdued }}
41
+ paddingSize="l"
42
+ >
39
43
  <EuiFlexGroup alignItems="center">
40
44
  <EuiAvatar
41
45
  iconSize="l"
@@ -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 getWfoSummaryCardHeaderStyles = ({ theme }: WfoTheme) => {
5
+ export const getWfoSummaryCardHeaderStyles = ({ theme }: WfoThemeHelpers) => {
6
6
  const avatarStyle = css({
7
7
  maxHeight: theme.base * 3,
8
8
  maxWidth: theme.base * 3,
@@ -37,7 +37,9 @@ export const WfoSummaryCardListItem: FC<WfoSummaryCardListItemProps> = ({
37
37
  <EuiFlexGroup css={listItemContainerStyle} gutterSize="none">
38
38
  <EuiFlexItem>
39
39
  <EuiTextColor
40
- color={url ? theme.colors.link : theme.colors.title}
40
+ color={
41
+ url ? theme.colors.link : theme.colors.textHeading
42
+ }
41
43
  css={listItemTitleStyle}
42
44
  >
43
45
  {title}
@@ -1,14 +1,15 @@
1
1
  import { css } from '@emotion/react';
2
2
 
3
- import { WfoTheme } from '@/hooks';
3
+ import { WfoThemeHelpers } from '@/hooks';
4
4
 
5
- export const getWfoSummaryCardListStyles = ({ theme }: WfoTheme) => {
5
+ export const getWfoSummaryCardListStyles = ({ theme }: WfoThemeHelpers) => {
6
6
  const listContainerStyle = css({
7
7
  display: 'flex',
8
8
  flexDirection: 'column',
9
9
  justifyContent: 'space-between',
10
10
  flexGrow: 1,
11
- borderColor: theme.colors.lightShade,
11
+ borderColor: theme.colors.borderBaseSubdued,
12
+ backgroundColor: theme.colors.backgroundBaseNeutral,
12
13
  });
13
14
 
14
15
  const listHeaderStyle = css({
@@ -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 getWfoSummaryCardsStyles = ({ theme }: WfoTheme) => {
5
+ export const getWfoSummaryCardsStyles = ({ theme }: WfoThemeHelpers) => {
6
6
  const cardContainerStyle = css({
7
7
  height: theme.base * 36,
8
8
  minWidth: theme.base * 25,
@@ -94,7 +94,7 @@ export const WfoAdvancedTable = <T extends object>({
94
94
  css={{ cursor: 'pointer' }}
95
95
  onClick={() => setSelectedDataForDetailModal(row)}
96
96
  >
97
- <WfoArrowsExpand color={theme.colors.mediumShade} />
97
+ <WfoArrowsExpand color={theme.colors.borderBasePlain} />
98
98
  </EuiFlexItem>
99
99
  ),
100
100
  },
@@ -173,7 +173,7 @@ export const WfoAdvancedTable = <T extends object>({
173
173
  <EuiButtonIcon
174
174
  onClick={() => setShowSearchModal(true)}
175
175
  iconSize={'xl'}
176
- iconType={'iInCircle'}
176
+ iconType={'info'}
177
177
  aria-label={t('searchModalTitle')}
178
178
  />
179
179
  )}
@@ -34,7 +34,7 @@ export const WfoFirstPartUUID: FC<WfoFirstUUIDPartProps> = ({
34
34
  <WfoClipboardCopy
35
35
  width={16}
36
36
  height={16}
37
- color={theme.colors.mediumShade}
37
+ color={theme.colors.backgroundBaseDisabled}
38
38
  />
39
39
  </div>
40
40
  )}
@@ -1,10 +1,10 @@
1
1
  import { css } from '@emotion/react';
2
2
 
3
- import { WfoTheme } from '@/hooks';
3
+ import { WfoThemeHelpers } from '@/hooks';
4
4
 
5
5
  export const COPY_ICON_CLASS = 'copyIcon';
6
6
 
7
- export const getStyles = ({ theme }: WfoTheme) => {
7
+ export const getStyles = ({ theme }: WfoThemeHelpers) => {
8
8
  const uuidFieldStyle = css({
9
9
  fontWeight: theme.font.weight.medium,
10
10
  display: 'flex',
@@ -24,7 +24,11 @@ export const WfoSortButton: FC<WfoSortButtonProps> = ({
24
24
  onClick={() => isActive && onClick?.()}
25
25
  >
26
26
  <WfoIconComponent
27
- color={isActive ? theme.colors.title : theme.colors.lightShade}
27
+ color={
28
+ isActive
29
+ ? theme.colors.textHeading
30
+ : theme.colors.borderBaseSubdued
31
+ }
28
32
  />
29
33
  </button>
30
34
  );
@@ -2,9 +2,9 @@ import { tint } from '@elastic/eui';
2
2
  import { css } from '@emotion/react';
3
3
 
4
4
  import { TABLE_ROW_HEIGHT } from '@/components';
5
- import { WfoTheme } from '@/hooks';
5
+ import { WfoThemeHelpers } from '@/hooks';
6
6
 
7
- export const getWfoStatusColorFieldStyles = ({ theme }: WfoTheme) => {
7
+ export const getWfoStatusColorFieldStyles = ({ theme }: WfoThemeHelpers) => {
8
8
  const toStatusColorFieldColor = (color: string) => tint(color, 0.3);
9
9
 
10
10
  const getStatusColorFieldStyle = (color: string) =>
@@ -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 getWfoGroupedTableStyles = ({ theme }: WfoTheme) => {
5
+ export const getWfoGroupedTableStyles = ({ theme }: WfoThemeHelpers) => {
6
6
  // Matches the default width of a EuiButtonIcon component
7
7
  const expandRowButtonWidth = '24px';
8
8
  const marginBetweenButtonAndGroupLabel = theme.size.m;
@@ -10,7 +10,7 @@ export const getWfoGroupedTableStyles = ({ theme }: WfoTheme) => {
10
10
  const innerTableHeaderStyle = css({
11
11
  fontSize: theme.size.m,
12
12
  textAlign: 'left',
13
- backgroundColor: theme.colors.lightestShade,
13
+ backgroundColor: theme.colors.backgroundBaseSubdued,
14
14
  });
15
15
 
16
16
  const expandableRowContainerStyle = css({