@thecb/components 11.1.6-beta.0 → 11.1.7-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.
- package/dist/index.cjs.js +12 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +12 -6
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/collapsible-section/CollapsibleSection.js +1 -1
- package/src/components/molecules/obligation/Obligation.js +4 -1
- package/src/components/molecules/obligation/Obligation.stories.js +2 -1
- package/src/components/molecules/obligation/modules/InactiveControlsModule.js +13 -10
- package/src/components/atoms/.DS_Store +0 -0
package/package.json
CHANGED
|
@@ -37,7 +37,7 @@ const CollapsibleSection = ({
|
|
|
37
37
|
const numChildren = typeof children === "Array" ? children.length : 1;
|
|
38
38
|
const label =
|
|
39
39
|
name !== "" ? name : !customTitle ? title : "collapsible section";
|
|
40
|
-
const id = `${label?.replaceAll
|
|
40
|
+
const id = `${label?.replaceAll(" ", "-")?.toLowerCase()}-${index}`;
|
|
41
41
|
|
|
42
42
|
const wrapper = {
|
|
43
43
|
open: {
|
|
@@ -45,7 +45,8 @@ const Obligation = ({
|
|
|
45
45
|
cartConfig = undefined,
|
|
46
46
|
multiCartParams = undefined,
|
|
47
47
|
isInCart = false,
|
|
48
|
-
isLoading = false
|
|
48
|
+
isLoading = false,
|
|
49
|
+
showRemoveButton = true
|
|
49
50
|
}) => {
|
|
50
51
|
/*
|
|
51
52
|
The value of obligations is always an array. It can contain:
|
|
@@ -345,6 +346,7 @@ const Obligation = ({
|
|
|
345
346
|
subDescription={subDescription}
|
|
346
347
|
allowedPaymentInstruments={allowedPaymentInstruments}
|
|
347
348
|
disableActions={isInCustomerManagement}
|
|
349
|
+
showRemoveButton={showRemoveButton}
|
|
348
350
|
/>
|
|
349
351
|
)}
|
|
350
352
|
</Cluster>
|
|
@@ -368,6 +370,7 @@ const Obligation = ({
|
|
|
368
370
|
subDescription={subDescription}
|
|
369
371
|
allowedPaymentInstruments={allowedPaymentInstruments}
|
|
370
372
|
disableActions={isInCustomerManagement}
|
|
373
|
+
showRemoveButton={showRemoveButton}
|
|
371
374
|
/>
|
|
372
375
|
)}
|
|
373
376
|
</Stack>
|
|
@@ -420,7 +420,8 @@ export const InactiveObligation = {
|
|
|
420
420
|
inactive: true,
|
|
421
421
|
inactiveLookupInput: undefined,
|
|
422
422
|
inactiveLookupTitle: "Health Service System",
|
|
423
|
-
inactiveLookupValue: "012856"
|
|
423
|
+
inactiveLookupValue: "012856",
|
|
424
|
+
showRemoveButton: true
|
|
424
425
|
},
|
|
425
426
|
render: args => (
|
|
426
427
|
<Box minWidth="800px">
|
|
@@ -22,7 +22,8 @@ const InactiveControlsModule = ({
|
|
|
22
22
|
description,
|
|
23
23
|
subDescription,
|
|
24
24
|
allowedPaymentInstruments,
|
|
25
|
-
disableActions = false
|
|
25
|
+
disableActions = false,
|
|
26
|
+
showRemoveButton = true
|
|
26
27
|
}) => {
|
|
27
28
|
const [modalOpen, toggleModal] = useState(false);
|
|
28
29
|
const { deleteObligationAssoc } = actions;
|
|
@@ -63,15 +64,17 @@ const InactiveControlsModule = ({
|
|
|
63
64
|
/>
|
|
64
65
|
</Box>
|
|
65
66
|
)}
|
|
66
|
-
|
|
67
|
-
<
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
67
|
+
{showRemoveButton && (
|
|
68
|
+
<Box padding="0" extraStyles={`flex-grow: 1;`}>
|
|
69
|
+
<RemoveAccountModalModule
|
|
70
|
+
agencyName={agencyName}
|
|
71
|
+
removeAccount={disableActions ? noop : handleRemoveAccount}
|
|
72
|
+
accountType={configType === "ACCOUNT" ? "Account" : "Property"}
|
|
73
|
+
isMobile={isMobile}
|
|
74
|
+
disableActions={disableActions}
|
|
75
|
+
/>
|
|
76
|
+
</Box>
|
|
77
|
+
)}
|
|
75
78
|
</Cluster>
|
|
76
79
|
</Box>
|
|
77
80
|
);
|
|
Binary file
|