@thecb/components 11.1.12-beta.4 → 11.1.13-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,39 +2,18 @@ import React from "react";
2
2
  import { equals } from "ramda";
3
3
  import { FormInput } from "../../atoms/form-layouts";
4
4
  import { displayCurrency } from "../../../util/general";
5
- import { Stack, Detail, Text } from "../../atoms";
6
- import { themeComponent } from "../../../util/themeUtils";
7
- import { fallbackValues } from "./PartialAmountField.theme";
5
+ import Text from "../../atoms/text";
6
+
8
7
  const PartialAmountField = ({
9
8
  lineItem,
10
9
  field,
11
10
  showErrors,
12
11
  errorMessages,
13
12
  moneyFormat,
14
- fieldActions,
15
- themeValues
13
+ fieldActions
16
14
  }) => (
17
15
  <FormInput
18
16
  labelTextWhenNoError={lineItem.description}
19
- labelDisplayOverride={
20
- <Stack childGap="0px">
21
- <Detail
22
- as="h3"
23
- variant={themeValues.detailVariant}
24
- weight={themeValues.weightTitle}
25
- >
26
- <span>{lineItem.description}</span>
27
- </Detail>
28
- <Detail
29
- id={lineItem.subDescription}
30
- as="p"
31
- variant={themeValues.detailVariant}
32
- weight="400"
33
- >
34
- {lineItem.subDescription}
35
- </Detail>
36
- </Stack>
37
- }
38
17
  key={lineItem.id}
39
18
  field={field}
40
19
  fieldActions={fieldActions}
@@ -67,12 +46,4 @@ function arePropsEqual(prevProps, nextProps) {
67
46
  );
68
47
  }
69
48
 
70
- export default React.memo(
71
- themeComponent(
72
- PartialAmountField,
73
- "PartialAmountField",
74
- fallbackValues,
75
- "default"
76
- ),
77
- arePropsEqual
78
- );
49
+ export default React.memo(PartialAmountField, arePropsEqual);
Binary file
@@ -1,7 +0,0 @@
1
- const weightTitle = { default: "600", small: "400" };
2
- const detailVariant = { default: "large", small: "small" };
3
-
4
- export const fallbackValues = {
5
- weightTitle,
6
- detailVariant
7
- };