@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "11.1.0-beta.2",
3
+ "version": "11.1.0-beta.4",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -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
- isInCart: false
557
+ cartConfig: undefined,
558
+ isInCart: true,
559
+ multiCartParams: undefined
526
560
  },
527
561
  render: args => (
528
562
  <Box minWidth="800px">
@@ -67,7 +67,7 @@ const PaymentDetailsActions = ({
67
67
  };
68
68
  const variant = cartEnabled
69
69
  ? isInCart
70
- ? "greenPrimry"
70
+ ? "greenPrimary"
71
71
  : "secondary"
72
72
  : isMobile
73
73
  ? "smallSecondary"