@rebilly/instruments 9.47.3 → 9.49.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/CHANGELOG.md CHANGED
@@ -1 +1,6 @@
1
- ## [9.47.3](https://github.com/Rebilly/rebilly/compare/instruments/core-v9.47.2...instruments/core-v9.47.3) (2024-05-23)
1
+ ## [9.49.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v9.48.0...instruments/core-v9.49.0) (2024-05-24)
2
+
3
+
4
+ ### Features
5
+
6
+ * **api-metadata, rebilly-js-sdk:** Update resources based on latest api definitions ([#5470](https://github.com/Rebilly/rebilly/issues/5470)) ([36041c5](https://github.com/Rebilly/rebilly/commit/36041c594e012fdcc307b660592daec4b3094bbd))
package/dist/index.js CHANGED
@@ -16670,10 +16670,14 @@ class DataInstance {
16670
16670
  (product) => product.requiresShipping
16671
16671
  );
16672
16672
  }
16673
+ get hasPurchaseData() {
16674
+ return this.isPayment || this.inPurchase || this.isDepositTransaction;
16675
+ }
16673
16676
  toPostmatesModel() {
16674
16677
  return JSON.parse(
16675
16678
  JSON.stringify({
16676
16679
  ...this,
16680
+ hasPurchaseData: this.hasPurchaseData,
16677
16681
  amountAndCurrency: this.amountAndCurrency,
16678
16682
  isPayment: this.isPayment,
16679
16683
  isInvoice: this.isInvoice,
@@ -26379,6 +26383,24 @@ const properties = {
26379
26383
  value: "#CD5C5C"
26380
26384
  }
26381
26385
  },
26386
+ colorSuccess: {
26387
+ fallback: {
26388
+ type: "static",
26389
+ value: "#22BC32"
26390
+ }
26391
+ },
26392
+ colorSuccessMuted: {
26393
+ fallback: {
26394
+ type: "static",
26395
+ value: "#DDF5E0"
26396
+ }
26397
+ },
26398
+ colorSuccessDark: {
26399
+ fallback: {
26400
+ type: "static",
26401
+ value: "#0C4112"
26402
+ }
26403
+ },
26382
26404
  /** Base Fonts */
26383
26405
  fontFamily: {
26384
26406
  fallback: {
@@ -27411,6 +27433,7 @@ const vars = (theme2) => `
27411
27433
  --rebilly-fontSizeS: calc(var(--rebilly-fontSizeBase) * var(--rebilly-fontScaleFactorS));
27412
27434
  --rebilly-fontLineHeightS: calc(var(--rebilly-fontSizeS) * 1);
27413
27435
 
27436
+ --rebilly-fontSizeXs: calc(var(--rebilly-fontSizeS) * var(--rebilly-fontScaleFactorS));
27414
27437
  --rebilly-fontSizeL: calc(var(--rebilly-fontSizeBase) * var(--rebilly-fontScaleFactor));
27415
27438
  --rebilly-fontLineHeightL: calc(var(--rebilly-fontLineHeightBase) * 2);
27416
27439
  --rebilly-fontMarginTopL: 0;