@thecb/components 11.1.0-beta.2 → 11.1.0-beta.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/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/obligation/Obligation.stories.js +35 -1
- package/src/components/molecules/obligation/modules/PaymentDetailsActions.js +1 -1
package/package.json
CHANGED
|
@@ -173,6 +173,34 @@ const meta = {
|
|
|
173
173
|
type: { summary: "boolean" },
|
|
174
174
|
defaultValue: { summary: false }
|
|
175
175
|
}
|
|
176
|
+
},
|
|
177
|
+
cartEnabled: {
|
|
178
|
+
description: "Whether the obligation is currently set up for cart",
|
|
179
|
+
table: {
|
|
180
|
+
type: { summary: "boolean" },
|
|
181
|
+
defaultValue: { summary: false }
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
cartConfig: {
|
|
185
|
+
description: "TODO",
|
|
186
|
+
table: {
|
|
187
|
+
type: { summary: "object" },
|
|
188
|
+
defaultValue: { summary: undefined }
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
multiCartParams: {
|
|
192
|
+
description: "TODO",
|
|
193
|
+
table: {
|
|
194
|
+
type: { summary: "object" },
|
|
195
|
+
defaultValue: { summary: undefined }
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
isInCart: {
|
|
199
|
+
description: "Whether the obligation is currently in the cart",
|
|
200
|
+
table: {
|
|
201
|
+
type: { summary: "boolean" },
|
|
202
|
+
defaultValue: { summary: false }
|
|
203
|
+
}
|
|
176
204
|
}
|
|
177
205
|
}
|
|
178
206
|
};
|
|
@@ -300,6 +328,7 @@ export const ActiveObligation = {
|
|
|
300
328
|
],
|
|
301
329
|
actions: {
|
|
302
330
|
createPaymentFromProfile: fn(),
|
|
331
|
+
configureMultiCart: fn(),
|
|
303
332
|
addToMultiCart: fn(),
|
|
304
333
|
setDetailedObligation: fn(),
|
|
305
334
|
navigateToDetailedObligation: fn(),
|
|
@@ -367,6 +396,7 @@ export const InactiveObligation = {
|
|
|
367
396
|
],
|
|
368
397
|
actions: {
|
|
369
398
|
createPaymentFromProfile: fn(),
|
|
399
|
+
configureMultiCart: fn(),
|
|
370
400
|
addToMultiCart: fn(),
|
|
371
401
|
setDetailedObligation: fn(),
|
|
372
402
|
navigateToDetailedObligation: fn(),
|
|
@@ -438,6 +468,7 @@ export const CustomerManagementObligation = {
|
|
|
438
468
|
],
|
|
439
469
|
actions: {
|
|
440
470
|
createPaymentFromProfile: fn(),
|
|
471
|
+
configureMultiCart: fn(),
|
|
441
472
|
addToMultiCart: fn(),
|
|
442
473
|
setDetailedObligation: fn(),
|
|
443
474
|
navigateToDetailedObligation: fn(),
|
|
@@ -505,6 +536,7 @@ export const CartEnabledObligation = {
|
|
|
505
536
|
],
|
|
506
537
|
actions: {
|
|
507
538
|
createPaymentFromProfile: fn(),
|
|
539
|
+
configureMultiCart: fn(),
|
|
508
540
|
addToMultiCart: fn(),
|
|
509
541
|
setDetailedObligation: fn(),
|
|
510
542
|
navigateToDetailedObligation: fn(),
|
|
@@ -522,7 +554,9 @@ export const CartEnabledObligation = {
|
|
|
522
554
|
agencyName: "Water",
|
|
523
555
|
isInCustomerManagement: false,
|
|
524
556
|
cartEnabled: true,
|
|
525
|
-
|
|
557
|
+
cartConfig: undefined,
|
|
558
|
+
isInCart: true,
|
|
559
|
+
multiCartParams: undefined
|
|
526
560
|
},
|
|
527
561
|
render: args => (
|
|
528
562
|
<Box minWidth="800px">
|