@longline/aqua-ui 1.0.147 → 1.0.149
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/inputs/DateInput/Body.js
CHANGED
|
@@ -52,7 +52,7 @@ var BodyBase = React.forwardRef(function (props, ref) {
|
|
|
52
52
|
var handleYear = function (year) {
|
|
53
53
|
date.setFullYear(year);
|
|
54
54
|
};
|
|
55
|
-
return (React.createElement("div", __assign({ style: props.styles.popper }, props.attributes.popper, { className: props.className, tabIndex: -1, ref: ref, onMouseDown: function (e) {
|
|
55
|
+
return (React.createElement("div", __assign({ style: props.styles.popper }, props.attributes.popper, { className: props.className, tabIndex: -1, ref: ref, onMouseDown: function (e) { return e.stopPropagation(); } }),
|
|
56
56
|
React.createElement(Navbar, { date: date, onPrevYear: handlePrevYear, onNextYear: handleNextYear, onPrevMonth: handlePrevMonth, onNextMonth: handleNextMonth, onMonth: handleMonth, onYear: handleYear }),
|
|
57
57
|
React.createElement(Calendar, { date: date, selectedDate: props.value, nofuture: props.nofuture, onClick: handleDayClick })));
|
|
58
58
|
});
|
package/map/Map/Map.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { MapMouseEvent, Map as OriginalMap } from 'mapbox-gl';
|
|
3
3
|
import { ViewState } from 'react-map-gl';
|
|
4
|
+
import { PaddingOptions } from 'react-map-gl/dist/esm/types';
|
|
4
5
|
interface IProps {
|
|
5
6
|
/** @ignore */
|
|
6
7
|
children?: React.ReactNode;
|
|
@@ -37,6 +38,11 @@ interface IProps {
|
|
|
37
38
|
* @default 0
|
|
38
39
|
*/
|
|
39
40
|
bearing?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Initial padding.
|
|
43
|
+
* @default 0,0,0,0
|
|
44
|
+
*/
|
|
45
|
+
padding?: PaddingOptions;
|
|
40
46
|
/**
|
|
41
47
|
* If set, water is clipped at given elevation.
|
|
42
48
|
* A value of `1` generally works.
|
package/map/Map/Map.js
CHANGED
|
@@ -82,7 +82,7 @@ var MapBase = function (props) {
|
|
|
82
82
|
zoom: props.zoom,
|
|
83
83
|
pitch: props.pitch,
|
|
84
84
|
bearing: props.bearing,
|
|
85
|
-
padding: { top: 0, bottom: 0, left: 0, right: 0 }
|
|
85
|
+
padding: props.padding || { top: 0, bottom: 0, left: 0, right: 0 }
|
|
86
86
|
}), viewState = _a[0], setViewState = _a[1];
|
|
87
87
|
// TODO: REMOVE THIS!
|
|
88
88
|
// React.useEffect(() => {
|