@artaio/arta-browser
Advanced tools
Comparing version 2.14.0 to 2.15.0-tracking-pill-contrast934ac6b27b2a666c1eace102cdf740688071e8bf
@@ -13,4 +13,4 @@ import { EstimateBody, EstimateFullConfig } from './estimateConfig'; | ||
close(): void; | ||
onClose(e: any): void; | ||
onClose(e: MouseEvent): void; | ||
validate(): Promise<undefined>; | ||
} |
@@ -68,3 +68,4 @@ "use strict"; | ||
Estimate.prototype.render = function () { | ||
(0, preact_1.render)((0, jsx_runtime_1.jsx)(Modal_1.Modal, { onClose: this.onClose.bind(this), estimateBody: this.estimateBody, config: this.config }), this.el); | ||
var _a; | ||
(0, preact_1.render)((0, jsx_runtime_1.jsx)(Modal_1.Modal, { onClose: (_a = this.config.onClose) !== null && _a !== void 0 ? _a : this.onClose.bind(this), estimateBody: this.estimateBody, config: this.config }), this.el); | ||
}; | ||
@@ -71,0 +72,0 @@ Estimate.prototype.close = function () { |
@@ -19,2 +19,3 @@ import { ArtaJsFullConfig } from './arta'; | ||
export interface EstimateConfig { | ||
onClose?: (e: MouseEvent) => void; | ||
style: { | ||
@@ -21,0 +22,0 @@ color: { |
@@ -13,4 +13,4 @@ import type { TrackingFullConfig } from './trackingConfig'; | ||
close(): void; | ||
onClose(e: any): void; | ||
onClose(e: MouseEvent): void; | ||
validate(): Promise<undefined>; | ||
} |
@@ -72,3 +72,4 @@ "use strict"; | ||
Tracking.prototype.render = function () { | ||
(0, preact_1.render)((0, jsx_runtime_1.jsx)(TrackingDrawer_1.TrackingDrawer, { shipmentId: this.shipmentId, config: this.config, onClose: this.onClose.bind(this) }), this.el); | ||
var _a; | ||
(0, preact_1.render)((0, jsx_runtime_1.jsx)(TrackingDrawer_1.TrackingDrawer, { shipmentId: this.shipmentId, config: this.config, onClose: (_a = this.config.onClose) !== null && _a !== void 0 ? _a : this.onClose.bind(this) }), this.el); | ||
}; | ||
@@ -75,0 +76,0 @@ Tracking.prototype.close = function () { |
@@ -41,2 +41,3 @@ import { ArtaJsFullConfig } from './arta'; | ||
export interface TrackingConfig { | ||
onClose?: (e: MouseEvent) => void; | ||
navigation: { | ||
@@ -43,0 +44,0 @@ shipmentExceptionMailTo: string; |
@@ -90,3 +90,3 @@ "use strict"; | ||
textColor: '#202020', | ||
backgroundColor: '#D2D2D2', | ||
backgroundColor: '#E7E7E7', | ||
text: 'Unknown', | ||
@@ -96,3 +96,3 @@ }, | ||
textColor: '#202020', | ||
backgroundColor: '#D2D2D2', | ||
backgroundColor: '#E7E7E7', | ||
text: 'Pending', | ||
@@ -102,7 +102,7 @@ }, | ||
textColor: '#202020', | ||
backgroundColor: '#D2D2D2', | ||
backgroundColor: '#E7E7E7', | ||
text: 'Not Found', | ||
}, | ||
transit: { | ||
textColor: '#379464', | ||
textColor: '#276947', | ||
backgroundColor: '#EFF8F3', | ||
@@ -112,3 +112,3 @@ text: 'In Transit', | ||
out_for_delivery: { | ||
textColor: '#379464', | ||
textColor: '#276947', | ||
backgroundColor: '#EFF8F3', | ||
@@ -123,14 +123,14 @@ text: 'Out for Delivery', | ||
undelivered: { | ||
textColor: '#772424', | ||
backgroundColor: '#FEF9F9', | ||
textColor: '#8C8984', | ||
backgroundColor: '#E7E7E7', | ||
text: 'Undelivered', | ||
}, | ||
exception: { | ||
textColor: '#976315', | ||
backgroundColor: '#FEF6E9', | ||
textColor: '#875706', | ||
backgroundColor: '#FEF9F9', | ||
text: 'Exception', | ||
}, | ||
expired: { | ||
textColor: '#772424', | ||
backgroundColor: '#FEF9F9', | ||
textColor: '#8C8984', | ||
backgroundColor: '#E7E7E7', | ||
text: 'Expired', | ||
@@ -137,0 +137,0 @@ }, |
{ | ||
"name": "@artaio/arta-browser", | ||
"version": "2.14.0", | ||
"version": "2.15.0-tracking-pill-contrast934ac6b27b2a666c1eace102cdf740688071e8bf", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "source": "lib/index.ts", |
Sorry, the diff of this file is too big to display
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
450115
6270
1