@longline/aqua-ui 1.0.304 → 1.0.309
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/map/Map/Map.d.ts +2 -1
- package/map/Map/Map.js +1 -1
- package/package.json +1 -1
- package/services/Dialog/DialogContent.js +15 -5
package/map/Map/Map.d.ts
CHANGED
|
@@ -127,9 +127,10 @@ interface IMapProps {
|
|
|
127
127
|
*/
|
|
128
128
|
onMouseLeave?: (e: MapMouseEvent) => void;
|
|
129
129
|
}
|
|
130
|
+
declare const ViewStateContext: React.Context<ViewState>;
|
|
130
131
|
declare const useViewState: () => ViewState;
|
|
131
132
|
declare const Map: {
|
|
132
133
|
({ longitude, latitude, zoom, pitch, bearing, logoPosition, interactiveLayerIds, noRotate, preserveDrawingBuffer, minZoom, maxZoom, fadeDuration, doubleClickZoom, ...props }: IMapProps): React.JSX.Element;
|
|
133
134
|
displayName: string;
|
|
134
135
|
};
|
|
135
|
-
export { Map, IMapProps, useViewState };
|
|
136
|
+
export { Map, IMapProps, useViewState, ViewStateContext };
|
package/map/Map/Map.js
CHANGED
|
@@ -233,5 +233,5 @@ var Map = function (_a) {
|
|
|
233
233
|
return React.createElement(MapBase, __assign({ longitude: longitude, latitude: latitude, zoom: zoom, pitch: pitch, bearing: bearing, logoPosition: logoPosition, interactiveLayerIds: interactiveLayerIds, noRotate: noRotate, preserveDrawingBuffer: preserveDrawingBuffer, minZoom: minZoom, maxZoom: maxZoom, fadeDuration: fadeDuration, doubleClickZoom: doubleClickZoom }, props));
|
|
234
234
|
};
|
|
235
235
|
Map.displayName = 'Map';
|
|
236
|
-
export { Map, useViewState };
|
|
236
|
+
export { Map, useViewState, ViewStateContext };
|
|
237
237
|
var templateObject_1;
|
package/package.json
CHANGED
|
@@ -25,17 +25,27 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
25
25
|
return t;
|
|
26
26
|
};
|
|
27
27
|
import * as React from 'react';
|
|
28
|
-
import styled
|
|
28
|
+
import styled from 'styled-components';
|
|
29
|
+
import { OverlayScrollbarsComponent } from 'overlayscrollbars-react';
|
|
29
30
|
var DialogContentBase = function (props) {
|
|
30
|
-
return React.createElement("div", { className: props.className },
|
|
31
|
+
return React.createElement("div", { className: props.className },
|
|
32
|
+
React.createElement(OverlayScrollbarsComponent, { defer: true, options: { scrollbars: { theme: 'os-theme-light', autoHide: 'leave' } }, style: {
|
|
33
|
+
position: "absolute",
|
|
34
|
+
left: 0,
|
|
35
|
+
top: 0,
|
|
36
|
+
right: 0,
|
|
37
|
+
bottom: 0,
|
|
38
|
+
padding: props.nopadding ? 0 : "0 20px 24px 20px",
|
|
39
|
+
overflowY: "auto",
|
|
40
|
+
} }, props.children));
|
|
31
41
|
};
|
|
32
|
-
var DialogContentStyled = styled(DialogContentBase)(
|
|
42
|
+
var DialogContentStyled = styled(DialogContentBase)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n max-height: ", "vh;\n"], ["\n position: relative;\n max-height: ", "vh;\n"
|
|
33
43
|
/**
|
|
34
44
|
* `Dialog.Content` is a content block for a `Dialog` component. The content
|
|
35
45
|
* will auto-scroll when it is taller than 70% of the viewport. This percentage
|
|
36
46
|
* can be adjusted with the `maxHeight` prop.
|
|
37
47
|
*/
|
|
38
|
-
])), function (p) { return
|
|
48
|
+
])), function (p) { return p.maxHeight; });
|
|
39
49
|
/**
|
|
40
50
|
* `Dialog.Content` is a content block for a `Dialog` component. The content
|
|
41
51
|
* will auto-scroll when it is taller than 70% of the viewport. This percentage
|
|
@@ -47,4 +57,4 @@ var DialogContent = function (_a) {
|
|
|
47
57
|
};
|
|
48
58
|
DialogContent.displayName = "Dialog.Content";
|
|
49
59
|
export { DialogContent };
|
|
50
|
-
var templateObject_1
|
|
60
|
+
var templateObject_1;
|