@mint-ui/map 0.7.1-beta → 0.7.2-beta

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.
@@ -6,6 +6,7 @@ export interface MapControlWrapperProps {
6
6
  height?: string | number;
7
7
  positionHorizontal?: AlignHorizontal;
8
8
  positionVertical?: AlignVertical;
9
+ disablePointerEvent?: boolean;
9
10
  }
10
11
  /**
11
12
  * Mint Map 컴포넌트
@@ -14,5 +15,5 @@ export interface MapControlWrapperProps {
14
15
  *
15
16
  * @returns {JSX.Element} JSX
16
17
  */
17
- export declare function MapControlWrapper({ width, height, positionHorizontal, positionVertical, children }: PropsWithChildren<MapControlWrapperProps>): JSX.Element;
18
+ export declare function MapControlWrapper({ width, height, positionHorizontal, positionVertical, disablePointerEvent, children }: PropsWithChildren<MapControlWrapperProps>): JSX.Element;
18
19
  export {};
@@ -29,6 +29,7 @@ function MapControlWrapper(_a) {
29
29
  positionHorizontal = _d === void 0 ? 'left' : _d,
30
30
  _e = _a.positionVertical,
31
31
  positionVertical = _e === void 0 ? 'top' : _e,
32
+ disablePointerEvent = _a.disablePointerEvent,
32
33
  children = _a.children;
33
34
  return React__default["default"].createElement("div", {
34
35
  className: cn('mint-map-control-wrapper-container'),
@@ -40,7 +41,8 @@ function MapControlWrapper(_a) {
40
41
  className: cn('mint-map-control-wrapper'),
41
42
  style: {
42
43
  width: width,
43
- height: height
44
+ height: height,
45
+ pointerEvents: disablePointerEvent === true ? 'none' : 'auto'
44
46
  }
45
47
  }, children));
46
48
  }
@@ -6,8 +6,8 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
6
6
 
7
7
  var styleInject__default = /*#__PURE__*/_interopDefaultLegacy(styleInject);
8
8
 
9
- var css_248z = ".MintMapWrapper-module_mint-map-control-wrapper-container__DONh7 {\n position: absolute;\n width: 100%;\n height: 100%;\n display: flex;\n pointer-events: none;\n z-index: 101;\n}\n\n.MintMapWrapper-module_mint-map-control-wrapper__DDb4y {\n pointer-events: auto;\n}\n\n.MintMapWrapper-module_mint-map-overlay-wrapper__Jn4wV {\n position: absolute;\n z-index: 1;\n}";
10
- var styles = {"mint-map-control-wrapper-container":"MintMapWrapper-module_mint-map-control-wrapper-container__DONh7","mint-map-control-wrapper":"MintMapWrapper-module_mint-map-control-wrapper__DDb4y","mint-map-overlay-wrapper":"MintMapWrapper-module_mint-map-overlay-wrapper__Jn4wV"};
9
+ var css_248z = ".MintMapWrapper-module_mint-map-control-wrapper-container__DONh7 {\n position: absolute;\n width: 100%;\n height: 100%;\n display: flex;\n pointer-events: none;\n z-index: 101;\n}\n\n.MintMapWrapper-module_mint-map-overlay-wrapper__Jn4wV {\n position: absolute;\n z-index: 1;\n}";
10
+ var styles = {"mint-map-control-wrapper-container":"MintMapWrapper-module_mint-map-control-wrapper-container__DONh7","mint-map-overlay-wrapper":"MintMapWrapper-module_mint-map-overlay-wrapper__Jn4wV"};
11
11
  styleInject__default["default"](css_248z);
12
12
 
13
13
  module.exports = styles;
package/dist/index.es.js CHANGED
@@ -5164,8 +5164,8 @@ function LoadingImage(_a) {
5164
5164
  }))));
5165
5165
  }
5166
5166
 
5167
- var css_248z = ".MintMapWrapper-module_mint-map-control-wrapper-container__DONh7 {\n position: absolute;\n width: 100%;\n height: 100%;\n display: flex;\n pointer-events: none;\n z-index: 101;\n}\n\n.MintMapWrapper-module_mint-map-control-wrapper__DDb4y {\n pointer-events: auto;\n}\n\n.MintMapWrapper-module_mint-map-overlay-wrapper__Jn4wV {\n position: absolute;\n z-index: 1;\n}";
5168
- var styles = {"mint-map-control-wrapper-container":"MintMapWrapper-module_mint-map-control-wrapper-container__DONh7","mint-map-control-wrapper":"MintMapWrapper-module_mint-map-control-wrapper__DDb4y","mint-map-overlay-wrapper":"MintMapWrapper-module_mint-map-overlay-wrapper__Jn4wV"};
5167
+ var css_248z = ".MintMapWrapper-module_mint-map-control-wrapper-container__DONh7 {\n position: absolute;\n width: 100%;\n height: 100%;\n display: flex;\n pointer-events: none;\n z-index: 101;\n}\n\n.MintMapWrapper-module_mint-map-overlay-wrapper__Jn4wV {\n position: absolute;\n z-index: 1;\n}";
5168
+ var styles = {"mint-map-control-wrapper-container":"MintMapWrapper-module_mint-map-control-wrapper-container__DONh7","mint-map-overlay-wrapper":"MintMapWrapper-module_mint-map-overlay-wrapper__Jn4wV"};
5169
5169
  styleInject(css_248z);
5170
5170
 
5171
5171
  var cn = classNames.bind(styles);
@@ -5186,6 +5186,7 @@ function MapControlWrapper(_a) {
5186
5186
  positionHorizontal = _d === void 0 ? 'left' : _d,
5187
5187
  _e = _a.positionVertical,
5188
5188
  positionVertical = _e === void 0 ? 'top' : _e,
5189
+ disablePointerEvent = _a.disablePointerEvent,
5189
5190
  children = _a.children;
5190
5191
  return React.createElement("div", {
5191
5192
  className: cn('mint-map-control-wrapper-container'),
@@ -5197,7 +5198,8 @@ function MapControlWrapper(_a) {
5197
5198
  className: cn('mint-map-control-wrapper'),
5198
5199
  style: {
5199
5200
  width: width,
5200
- height: height
5201
+ height: height,
5202
+ pointerEvents: disablePointerEvent === true ? 'none' : 'auto'
5201
5203
  }
5202
5204
  }, children));
5203
5205
  }
package/dist/index.umd.js CHANGED
@@ -5168,8 +5168,8 @@
5168
5168
  }))));
5169
5169
  }
5170
5170
 
5171
- var css_248z = ".MintMapWrapper-module_mint-map-control-wrapper-container__DONh7 {\n position: absolute;\n width: 100%;\n height: 100%;\n display: flex;\n pointer-events: none;\n z-index: 101;\n}\n\n.MintMapWrapper-module_mint-map-control-wrapper__DDb4y {\n pointer-events: auto;\n}\n\n.MintMapWrapper-module_mint-map-overlay-wrapper__Jn4wV {\n position: absolute;\n z-index: 1;\n}";
5172
- var styles = {"mint-map-control-wrapper-container":"MintMapWrapper-module_mint-map-control-wrapper-container__DONh7","mint-map-control-wrapper":"MintMapWrapper-module_mint-map-control-wrapper__DDb4y","mint-map-overlay-wrapper":"MintMapWrapper-module_mint-map-overlay-wrapper__Jn4wV"};
5171
+ var css_248z = ".MintMapWrapper-module_mint-map-control-wrapper-container__DONh7 {\n position: absolute;\n width: 100%;\n height: 100%;\n display: flex;\n pointer-events: none;\n z-index: 101;\n}\n\n.MintMapWrapper-module_mint-map-overlay-wrapper__Jn4wV {\n position: absolute;\n z-index: 1;\n}";
5172
+ var styles = {"mint-map-control-wrapper-container":"MintMapWrapper-module_mint-map-control-wrapper-container__DONh7","mint-map-overlay-wrapper":"MintMapWrapper-module_mint-map-overlay-wrapper__Jn4wV"};
5173
5173
  styleInject__default["default"](css_248z);
5174
5174
 
5175
5175
  var cn = classNames__default["default"].bind(styles);
@@ -5190,6 +5190,7 @@
5190
5190
  positionHorizontal = _d === void 0 ? 'left' : _d,
5191
5191
  _e = _a.positionVertical,
5192
5192
  positionVertical = _e === void 0 ? 'top' : _e,
5193
+ disablePointerEvent = _a.disablePointerEvent,
5193
5194
  children = _a.children;
5194
5195
  return React__default["default"].createElement("div", {
5195
5196
  className: cn('mint-map-control-wrapper-container'),
@@ -5201,7 +5202,8 @@
5201
5202
  className: cn('mint-map-control-wrapper'),
5202
5203
  style: {
5203
5204
  width: width,
5204
- height: height
5205
+ height: height,
5206
+ pointerEvents: disablePointerEvent === true ? 'none' : 'auto'
5205
5207
  }
5206
5208
  }, children));
5207
5209
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mint-ui/map",
3
- "version": "0.7.1-beta",
3
+ "version": "0.7.2-beta",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "browser": "./dist/index.umd.js",