@quantaroute/checkout 1.7.2 → 1.7.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/CHANGELOG.md +22 -0
- package/README.md +4 -1
- package/dist/lib/index.d.ts +67 -10
- package/dist/lib/quantaroute-checkout.es.js +159 -139
- package/dist/lib/quantaroute-checkout.umd.js +151 -131
- package/dist/style.css +1 -1
- package/package.json +7 -3
- package/src/components/AddressForm.native.tsx +3 -3
- package/src/components/AddressForm.tsx +3 -3
- package/src/components/CheckoutWidget.tsx +51 -14
- package/src/components/MapPinSelector.native.tsx +14 -9
- package/src/components/MapPinSelector.tsx +43 -15
- package/src/components/PaymentStep.tsx +36 -8
- package/src/core/map-runtime.ts +98 -3
- package/src/core/types.ts +33 -8
- package/src/index.ts +11 -0
- package/src/styles/checkout.css +19 -0
package/src/index.ts
CHANGED
|
@@ -130,10 +130,21 @@ export type {
|
|
|
130
130
|
MapLibreMap,
|
|
131
131
|
MapLibreMarker,
|
|
132
132
|
MapMouseEvent,
|
|
133
|
+
QuantaRouteMapTheme,
|
|
133
134
|
} from './core/map-runtime';
|
|
134
135
|
export {
|
|
135
136
|
DEFAULT_MAP_STYLE_URL,
|
|
137
|
+
QUANTAROUTE_MAP_STYLE_URL,
|
|
138
|
+
QUANTAROUTE_MAP_STYLE_LIGHT_URL,
|
|
139
|
+
QUANTAROUTE_MAP_STYLE_DARK_URL,
|
|
140
|
+
QUANTAROUTE_MAP_STYLES,
|
|
141
|
+
QUANTAROUTE_MAP_STYLES_CATALOG_URL,
|
|
142
|
+
QUANTAROUTE_INDIA_BOUNDARY_URL,
|
|
143
|
+
CARTO_POSITRON_STYLE_URL,
|
|
136
144
|
OPENFREEMAP_POSITRON_STYLE_URL,
|
|
145
|
+
resolveQuantaRouteMapStyle,
|
|
146
|
+
withMapsKey,
|
|
147
|
+
mapsTransformRequest,
|
|
137
148
|
getExternalMapRuntime,
|
|
138
149
|
waitForExternalMapRuntime,
|
|
139
150
|
} from './core/map-runtime';
|
package/src/styles/checkout.css
CHANGED
|
@@ -427,6 +427,25 @@
|
|
|
427
427
|
height: 100%;
|
|
428
428
|
}
|
|
429
429
|
|
|
430
|
+
.qr-map-watermark.maplibregl-ctrl {
|
|
431
|
+
background: transparent;
|
|
432
|
+
box-shadow: none;
|
|
433
|
+
border: 0;
|
|
434
|
+
padding: 0 0 2px 2px;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.qr-map-watermark img {
|
|
438
|
+
display: block;
|
|
439
|
+
width: 28px;
|
|
440
|
+
height: 28px;
|
|
441
|
+
opacity: 0.4;
|
|
442
|
+
filter: none;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
.qr-map-outer .maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show) .maplibregl-ctrl-attrib-inner {
|
|
446
|
+
display: none !important;
|
|
447
|
+
}
|
|
448
|
+
|
|
430
449
|
/* Hide MapLibre's default navigation on small screens */
|
|
431
450
|
@media (max-width: 380px) {
|
|
432
451
|
.maplibregl-ctrl-top-right {
|