@orchestrator-ui/orchestrator-ui-components 5.2.3 → 5.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orchestrator-ui/orchestrator-ui-components",
3
- "version": "5.2.3",
3
+ "version": "5.2.4",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Library of UI Components used to display the workflow orchestrator frontend",
6
6
  "author": {
@@ -9,14 +9,18 @@ import { camelToHuman } from '@/utils';
9
9
 
10
10
  import { getStyles } from './styles';
11
11
 
12
+ export const KEY_CELL_CLASS_NAME = 'key-cell';
13
+ export const VALUE_CELL_CLASS_NAME = 'value-cell';
14
+
12
15
  export type WfoProductBlockKeyValueRowProps = {
13
16
  fieldValue: FieldValue | RenderableFieldValue;
14
17
  allFieldValues: FieldValue[] | RenderableFieldValue[];
18
+ className?: string;
15
19
  };
16
20
 
17
21
  export const WfoProductBlockKeyValueRow: FC<
18
22
  WfoProductBlockKeyValueRowProps
19
- > = ({ fieldValue, allFieldValues }) => {
23
+ > = ({ fieldValue, allFieldValues, className }) => {
20
24
  const { leftColumnStyle, rowStyle } = useWithOrchestratorTheme(getStyles);
21
25
  const { getOverriddenValue } = useSubscriptionDetailValueOverride();
22
26
 
@@ -36,11 +40,11 @@ export const WfoProductBlockKeyValueRow: FC<
36
40
  };
37
41
 
38
42
  return (
39
- <tr css={rowStyle}>
40
- <td css={leftColumnStyle}>
43
+ <tr className={className} css={rowStyle}>
44
+ <td className={KEY_CELL_CLASS_NAME} css={leftColumnStyle}>
41
45
  <b>{camelToHuman(field)}</b>
42
46
  </td>
43
- <td>
47
+ <td className={VALUE_CELL_CLASS_NAME}>
44
48
  {getOverriddenValue(fieldValue, allFieldValues) ?? (
45
49
  <WfoProductBlockValue value={value} />
46
50
  )}
@@ -1 +1 @@
1
- export const ORCHESTRATOR_UI_LIBRARY_VERSION = '5.2.3';
1
+ export const ORCHESTRATOR_UI_LIBRARY_VERSION = '5.2.4';