@artaio/arta-browser
Advanced tools
Comparing version 2.9.3-fixes-ci-and-pending038bddcebe8a6d451f2c916a417b98c4e79cb8b1 to 2.9.4-add-backdrop72cde9bc5f6b74ebbea4e133e6113ca295d73401
@@ -94,6 +94,6 @@ "use strict"; | ||
}, [shipmentId]); | ||
return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)("div", __assign({ class: "artajs" }, { children: (0, jsx_runtime_1.jsx)("div", __assign({ style: style, class: "artajs__drawer ".concat(position === 'left' | ||
? 'artajs__drawer__left' | ||
: 'artajs__drawer__right') }, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ class: "artajs__tracking__out__wrapper" }, { children: [(0, jsx_runtime_1.jsx)(DrawerHeader_1.DrawerHeader, { title: config.text.header.title, onClose: onClose }), shipment != null ? (packageId ? ((0, jsx_runtime_1.jsx)(PackageEvents_1.PackageEvents, { shipment: shipment, config: config, packageId: packageId, setPackageId: setPackageId })) : ((0, jsx_runtime_1.jsxs)("div", __assign({ class: "artajs__tracking__body" }, { children: [(0, jsx_runtime_1.jsx)(Timeline_1.Timeline, { shipment: shipment, config: config }), (0, jsx_runtime_1.jsx)("div", { class: "artajs__tracking__timeline__divider" }), hasActiveException(shipment) && ((0, jsx_runtime_1.jsx)(ShipmentException_1.ShipmentException, { shipment: shipment, config: config })), (0, jsx_runtime_1.jsx)(TrackingTop_1.TrackingTop, { config: config, shipment: shipment }), (0, jsx_runtime_1.jsx)(ShipToFrom_1.ShipToFrom, { config: config, shipment: shipment }), packagesWithObjects.map(function (pkg, index) { return ((0, jsx_runtime_1.jsx)(Package_1.Package, { title: "#".concat(index + 1), pkg: pkg, shipment: shipment, config: config, setPackageId: setPackageId })); }), shipment.insurance_policy != null && (0, jsx_runtime_1.jsx)(DrawerInsurance_1.DrawerInsurance, {}), (0, jsx_runtime_1.jsx)(Summary_1.Summary, { config: config, shipment: shipment }), (0, jsx_runtime_1.jsx)(DrawerFooter_1.DrawerFooter, {})] })))) : ((0, jsx_runtime_1.jsxs)("div", __assign({ class: "artajs__tracking__body" }, { children: [(0, jsx_runtime_1.jsx)("div", { class: "artajs__drawer__loading" }), (0, jsx_runtime_1.jsx)(DrawerFooter_1.DrawerFooter, {})] })))] })) })) })) })); | ||
return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsxs)("div", __assign({ class: "artajs" }, { children: [config.style.backdropEnabled && (0, jsx_runtime_1.jsx)("div", { onClick: onClose, style: style, class: "artajs__drawer__backdrop" }), (0, jsx_runtime_1.jsx)("div", __assign({ style: style, class: "artajs__drawer ".concat(position === 'left' | ||
? 'artajs__drawer__left' | ||
: 'artajs__drawer__right') }, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ class: "artajs__tracking__out__wrapper" }, { children: [(0, jsx_runtime_1.jsx)(DrawerHeader_1.DrawerHeader, { title: config.text.header.title, onClose: onClose }), shipment != null ? (packageId ? ((0, jsx_runtime_1.jsx)(PackageEvents_1.PackageEvents, { shipment: shipment, config: config, packageId: packageId, setPackageId: setPackageId })) : ((0, jsx_runtime_1.jsxs)("div", __assign({ class: "artajs__tracking__body" }, { children: [(0, jsx_runtime_1.jsx)(Timeline_1.Timeline, { shipment: shipment, config: config }), (0, jsx_runtime_1.jsx)("div", { class: "artajs__tracking__timeline__divider" }), hasActiveException(shipment) && ((0, jsx_runtime_1.jsx)(ShipmentException_1.ShipmentException, { shipment: shipment, config: config })), (0, jsx_runtime_1.jsx)(TrackingTop_1.TrackingTop, { config: config, shipment: shipment }), (0, jsx_runtime_1.jsx)(ShipToFrom_1.ShipToFrom, { config: config, shipment: shipment }), packagesWithObjects.map(function (pkg, index) { return ((0, jsx_runtime_1.jsx)(Package_1.Package, { title: "#".concat(index + 1), pkg: pkg, shipment: shipment, config: config, setPackageId: setPackageId })); }), shipment.insurance_policy != null && (0, jsx_runtime_1.jsx)(DrawerInsurance_1.DrawerInsurance, {}), (0, jsx_runtime_1.jsx)(Summary_1.Summary, { config: config, shipment: shipment }), (0, jsx_runtime_1.jsx)(DrawerFooter_1.DrawerFooter, {})] })))) : ((0, jsx_runtime_1.jsxs)("div", __assign({ class: "artajs__tracking__body" }, { children: [(0, jsx_runtime_1.jsx)("div", { class: "artajs__drawer__loading" }), (0, jsx_runtime_1.jsx)(DrawerFooter_1.DrawerFooter, {})] })))] })) }))] })) })); | ||
}; | ||
exports.TrackingDrawer = TrackingDrawer; |
@@ -49,2 +49,3 @@ import { DestinationFullTextConfig } from './components/Destination'; | ||
'--location-flex': string; | ||
'--backdrop-color': string; | ||
}; | ||
@@ -51,0 +52,0 @@ export declare function isSmallMobile(): boolean; |
@@ -97,2 +97,3 @@ "use strict"; | ||
'--location-flex': config.style.variant === 'default' ? '1 0 0' : '0 1 auto', | ||
'--backdrop-color': config.style.backdropColor, | ||
}; | ||
@@ -99,0 +100,0 @@ }; |
@@ -52,2 +52,4 @@ import { ArtaJsFullConfig } from './arta'; | ||
fontSize: number; | ||
backdropEnabled: boolean; | ||
backdropColor: string; | ||
}; | ||
@@ -54,0 +56,0 @@ text: { |
@@ -24,2 +24,4 @@ "use strict"; | ||
fontSize: 14, | ||
backdropEnabled: true, | ||
backdropColor: 'rgba(0, 0, 0, 0.5)', | ||
}, | ||
@@ -26,0 +28,0 @@ text: { |
{ | ||
"name": "@artaio/arta-browser", | ||
"version": "2.9.3-fixes-ci-and-pending038bddcebe8a6d451f2c916a417b98c4e79cb8b1", | ||
"version": "2.9.4-add-backdrop72cde9bc5f6b74ebbea4e133e6113ca295d73401", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "source": "lib/index.ts", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
441064
6028