@thecb/components 11.1.0-beta.4 → 11.1.0-beta.6
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 +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/obligation/Obligation.stories.js +7 -5
- package/src/components/molecules/obligation/modules/PaymentDetailsActions.js +2 -2
package/package.json
CHANGED
|
@@ -175,28 +175,30 @@ const meta = {
|
|
|
175
175
|
}
|
|
176
176
|
},
|
|
177
177
|
cartEnabled: {
|
|
178
|
-
description: "Whether the obligation is currently set up for cart",
|
|
178
|
+
description: "Whether the obligation is currently set up for cart.",
|
|
179
179
|
table: {
|
|
180
180
|
type: { summary: "boolean" },
|
|
181
181
|
defaultValue: { summary: false }
|
|
182
182
|
}
|
|
183
183
|
},
|
|
184
184
|
cartConfig: {
|
|
185
|
-
description:
|
|
185
|
+
description:
|
|
186
|
+
"The configuration for the cart. Used in the configureMultiCart action.",
|
|
186
187
|
table: {
|
|
187
188
|
type: { summary: "object" },
|
|
188
189
|
defaultValue: { summary: undefined }
|
|
189
190
|
}
|
|
190
191
|
},
|
|
191
192
|
multiCartParams: {
|
|
192
|
-
description:
|
|
193
|
+
description:
|
|
194
|
+
"The parameters to be used when adding items to multi cart. Used in the addToMultiCart action.",
|
|
193
195
|
table: {
|
|
194
196
|
type: { summary: "object" },
|
|
195
197
|
defaultValue: { summary: undefined }
|
|
196
198
|
}
|
|
197
199
|
},
|
|
198
200
|
isInCart: {
|
|
199
|
-
description: "Whether the obligation is currently in the cart",
|
|
201
|
+
description: "Whether the obligation is currently in the cart.",
|
|
200
202
|
table: {
|
|
201
203
|
type: { summary: "boolean" },
|
|
202
204
|
defaultValue: { summary: false }
|
|
@@ -554,7 +556,7 @@ export const CartEnabledObligation = {
|
|
|
554
556
|
agencyName: "Water",
|
|
555
557
|
isInCustomerManagement: false,
|
|
556
558
|
cartEnabled: true,
|
|
557
|
-
cartConfig:
|
|
559
|
+
cartConfig: {},
|
|
558
560
|
isInCart: true,
|
|
559
561
|
multiCartParams: undefined
|
|
560
562
|
},
|
|
@@ -178,7 +178,7 @@ const PaymentDetailsActions = ({
|
|
|
178
178
|
text={text}
|
|
179
179
|
variant={variant}
|
|
180
180
|
dataQa={text}
|
|
181
|
-
disabled={disableActions}
|
|
181
|
+
disabled={disableActions || isInCart}
|
|
182
182
|
/>
|
|
183
183
|
</Box>
|
|
184
184
|
)}
|
|
@@ -192,7 +192,7 @@ const PaymentDetailsActions = ({
|
|
|
192
192
|
variant={variant}
|
|
193
193
|
dataQa={text}
|
|
194
194
|
extraStyles={isMobile && `flex-grow: 1; width: 100%; margin: 0;`}
|
|
195
|
-
disabled={disableActions}
|
|
195
|
+
disabled={disableActions || isInCart}
|
|
196
196
|
/>
|
|
197
197
|
</Box>
|
|
198
198
|
)}
|