@cashub/ui-elv 1.0.0
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/Tab/Tab.js +28 -0
- package/Tab/TabList.js +167 -0
- package/Tab/TabPanel.js +49 -0
- package/Tab/TabTab.js +105 -0
- package/Tab/index.js +30 -0
- package/Tab/subComponent/TabContext.js +9 -0
- package/Tab/subComponent/TabListV2.js +25 -0
- package/Tab/subComponent/TabPanelV2.js +52 -0
- package/Tab/subComponent/TabTabV2.js +63 -0
- package/VerticalTab/TabList.js +27 -0
- package/VerticalTab/TabPanel.js +52 -0
- package/VerticalTab/TabTab.js +70 -0
- package/VerticalTab/VerticalTab.js +41 -0
- package/VerticalTab/index.js +16 -0
- package/VerticalTab/subComponent/TabContext.js +9 -0
- package/alert/Alert.js +29 -0
- package/alert/index.js +13 -0
- package/animate/Collapse.js +71 -0
- package/animate/Loader.js +58 -0
- package/animate/NumberCounter.js +51 -0
- package/animate/PulseRing.js +35 -0
- package/animate/Spinner.js +18 -0
- package/animate/index.js +41 -0
- package/assets/css/autocomplete.css +16 -0
- package/assets/css/font.css +4 -0
- package/assets/css/global.css +2 -0
- package/assets/font/helvetica/Helvetica.ttf +0 -0
- package/assets/font/nanumGothic/NanumGothic-Bold.ttf +0 -0
- package/assets/font/nanumGothic/NanumGothic-ExtraBold.ttf +0 -0
- package/assets/font/nanumGothic/NanumGothic-Regular.ttf +0 -0
- package/assets/icons/app-management.png +0 -0
- package/assets/icons/burger-black.png +0 -0
- package/assets/icons/burger-white.png +0 -0
- package/assets/icons/burger.png +0 -0
- package/assets/icons/file.svg +1 -0
- package/assets/icons/map_icon1.png +0 -0
- package/assets/icons/map_icon4.png +0 -0
- package/assets/images/bg-aside.png +0 -0
- package/assets/images/bg-chart-circle.png +0 -0
- package/assets/images/bg-chart-triangle.png +0 -0
- package/assets/images/cashub-logo-only.png +0 -0
- package/assets/images/default-user.jpg +0 -0
- package/assets/images/logo-cashub.png +0 -0
- package/assets/images/map.png +0 -0
- package/assets/images/qrcode.png +0 -0
- package/backdrop/BaseBackdrop.js +18 -0
- package/backdrop/LoadingBackdrop.js +17 -0
- package/backdrop/ModalBackdrop.js +15 -0
- package/backdrop/index.js +27 -0
- package/badge/Badge.js +26 -0
- package/badge/BadgeDot.js +18 -0
- package/badge/BadgeFill.js +49 -0
- package/badge/BadgeFillTriangle.js +147 -0
- package/badge/BadgeWithText.js +31 -0
- package/badge/index.js +41 -0
- package/billing/BarChart.js +51 -0
- package/billing/Grid.js +45 -0
- package/billing/Header2.js +25 -0
- package/billing/Header3.js +37 -0
- package/billing/Paragraph.js +33 -0
- package/billing/ParagraphGroup.js +22 -0
- package/billing/ParagraphText.js +26 -0
- package/billing/Section.js +50 -0
- package/billing/SectionBody.js +17 -0
- package/billing/SectionHeader.js +26 -0
- package/billing/__stories__/BarChart.stories.js_bak +46 -0
- package/billing/__stories__/Grid.stories.js_bak +57 -0
- package/billing/__stories__/Header2.stories.js_bak +62 -0
- package/billing/__stories__/Header3.stories.js_bak +69 -0
- package/billing/__stories__/Paragraph.stories.js_bak +84 -0
- package/billing/__stories__/ParagraphGroup.stories.js_bak +68 -0
- package/billing/__stories__/ParagraphText.stories.js_bak +64 -0
- package/billing/__stories__/Section.stories.js_bak +115 -0
- package/billing/__stories__/SectionBody.stories.js_bak +62 -0
- package/billing/__stories__/SectionHeader.stories.js-bak +68 -0
- package/breadcrumb/Breadcrumb.js +78 -0
- package/breadcrumb/index.js +13 -0
- package/button/Button.js +154 -0
- package/button/ButtonGroup.js +61 -0
- package/button/IconButton.js +72 -0
- package/button/ScrollToTopButton.js +54 -0
- package/button/index.js +34 -0
- package/callout/Callout.js +52 -0
- package/callout/index.js +13 -0
- package/chart/BarChart.js +148 -0
- package/chart/DoughnutChart.js +118 -0
- package/chart/LineChart.js +146 -0
- package/chart/SingleBarChart.js +42 -0
- package/chart/index.js +52 -0
- package/chart/utils/centerTextPlugin.js +62 -0
- package/chart/utils/customTooltip.js +94 -0
- package/chart/utils/htmlLegendPlugin.js +89 -0
- package/chart/utils/index.js +27 -0
- package/chart/utils/padEmptyChartBar.js +53 -0
- package/chart/utils/yAxisTopTitlePlugin.js +49 -0
- package/container/FlexContainer.js +40 -0
- package/container/index.js +13 -0
- package/cropper/Cropper.js +54 -0
- package/cropper/CropperModalHandler.js +41 -0
- package/cropper/index.js +20 -0
- package/cropper/subComponent/CropImageModal.js +79 -0
- package/datetimePicker/DatePicker.js +363 -0
- package/datetimePicker/DatePickerV2.js +407 -0
- package/datetimePicker/DatetimePicker.js +240 -0
- package/datetimePicker/DatetimePickerV2.js +395 -0
- package/datetimePicker/DatetimePickerV3.js +279 -0
- package/datetimePicker/TimeInput.js +56 -0
- package/datetimePicker/TimePicker.js +317 -0
- package/datetimePicker/TimePickerStyle.js +64 -0
- package/datetimePicker/TimePickerV2.js +208 -0
- package/datetimePicker/accordion/Month.js +254 -0
- package/datetimePicker/accordion/Year.js +284 -0
- package/datetimePicker/hooks/index.js +27 -0
- package/datetimePicker/hooks/useChangeNumber.js +42 -0
- package/datetimePicker/hooks/useDecrease.js +38 -0
- package/datetimePicker/hooks/useIncrease.js +38 -0
- package/datetimePicker/index.js +69 -0
- package/datetimePicker/provider/constant.js +43 -0
- package/datetimePicker/subComponent/Accordion.js +373 -0
- package/datetimePicker/subComponent/CustomTimeInput.js +47 -0
- package/datetimePicker/subComponent/DateTimePickerContext.js +9 -0
- package/datetimePicker/utils/GMTDate.js +15 -0
- package/datetimePicker/utils/pad.js +13 -0
- package/datetimePicker/utils/toUTC0.js +13 -0
- package/descriptionList/DescriptionDetail.js +28 -0
- package/descriptionList/DescriptionList.js +25 -0
- package/descriptionList/DescriptionTerm.js +14 -0
- package/descriptionList/index.js +27 -0
- package/divider/Divider.js +31 -0
- package/divider/index.js +13 -0
- package/dropdown/Dropdown.js +55 -0
- package/dropdown/DropdownButtonOption.js +43 -0
- package/dropdown/DropdownContent.js +90 -0
- package/dropdown/DropdownDivOption.js +26 -0
- package/dropdown/DropdownItem.js +26 -0
- package/dropdown/DropdownLinkOption.js +24 -0
- package/dropdown/DropdownToggle.js +38 -0
- package/dropdown/index.js +42 -0
- package/dropdown/subComponent/DropdownContext.js +9 -0
- package/dropzone/FileDropzone.js +479 -0
- package/dropzone/ImageDropzone.js +334 -0
- package/dropzone/index.js +20 -0
- package/dropzone/subComponent/Message.js +26 -0
- package/figure/IconFigure.js +42 -0
- package/figure/ImageFigure.js +38 -0
- package/figure/index.js +20 -0
- package/file/HiddenFileInput.js +15 -0
- package/file/index.js +13 -0
- package/form/Checkbox.js +166 -0
- package/form/Fieldset.js +18 -0
- package/form/FormItem.js +22 -0
- package/form/Input.js +66 -0
- package/form/Label.js +61 -0
- package/form/MutedText.js +21 -0
- package/form/PasswordInput.js +47 -0
- package/form/RadioButton.js +103 -0
- package/form/SearchSelect.js +181 -0
- package/form/Searchbox.js +98 -0
- package/form/Slider.js +46 -0
- package/form/SwitchButton.js +105 -0
- package/form/Textarea.js +41 -0
- package/form/TreeView.js +73 -0
- package/form/index.js +104 -0
- package/grid/Column.js +46 -0
- package/grid/Grid.js +35 -0
- package/grid/index.js +20 -0
- package/heading/Heading1.js +21 -0
- package/heading/Heading2.js +28 -0
- package/heading/Heading3.js +49 -0
- package/heading/index.js +27 -0
- package/helmet/Helmet.js +23 -0
- package/helmet/index.js +20 -0
- package/iconbox/ApplicationIconBox.js +81 -0
- package/iconbox/IconBox.js +67 -0
- package/iconbox/IconBoxV2.js +72 -0
- package/iconbox/index.js +27 -0
- package/iconbox/subComponent/IconBoxFigure.js +50 -0
- package/iconbox/subComponent/IconBoxImage.js +42 -0
- package/image/ImageFluid.js +17 -0
- package/image/UploadImage.js +250 -0
- package/image/index.js +20 -0
- package/index.js +568 -0
- package/jsoneditor/JsonEditor.js +142 -0
- package/jsoneditor/index.js +13 -0
- package/keyframe/Pulse.js +21 -0
- package/keyframe/Spin.js +13 -0
- package/layout/Aside.js +48 -0
- package/layout/AsideHeader.jsx +27 -0
- package/layout/Backdrop.js +23 -0
- package/layout/Container.js +39 -0
- package/layout/Footer.js +45 -0
- package/layout/Header.jsx +55 -0
- package/layout/Layout.jsx +84 -0
- package/layout/Logo.jsx +17 -0
- package/layout/MenuIcon.jsx +27 -0
- package/layout/Sidebar.jsx +271 -0
- package/layout/index.js +13 -0
- package/link/LinkSpan.js +69 -0
- package/link/index.js +13 -0
- package/map/GoogleMap.js +448 -0
- package/map/GoogleReverseGeolocation.js +200 -0
- package/map/LeafletMap.js +231 -0
- package/map/LeafletReverseGeolocation.js +101 -0
- package/map/index.js +34 -0
- package/map/subComponent/BasicLeafletMap.js +34 -0
- package/map/subComponent/GoogleMapContainer.js +29 -0
- package/map/subComponent/GoogleMapPopup.js +109 -0
- package/map/subComponent/GoogleMapWrapper.js +40 -0
- package/map/subComponent/LeafletDrawControl.js +127 -0
- package/map/subComponent/LeafletMapContainer.js +173 -0
- package/map/subComponent/MapSearchBoxControl.js +54 -0
- package/modal/StateModal.js +178 -0
- package/modal/TitleModal.js +250 -0
- package/modal/index.js +20 -0
- package/package.json +54 -0
- package/page/Disclaimer.js +128 -0
- package/page/index.js +13 -0
- package/paginate/Paginate.js +137 -0
- package/paginate/index.js +13 -0
- package/popover/Popover.js +91 -0
- package/popover/index.js +13 -0
- package/qrcode/QRCode.js +58 -0
- package/qrcode/QRCodeContainter.js +34 -0
- package/qrcode/index.js +20 -0
- package/ribbon/Ribbon.js +42 -0
- package/ribbon/index.js +13 -0
- package/section/Section.js +133 -0
- package/section/SectionBody.js +52 -0
- package/section/SectionHeader.js +70 -0
- package/section/SectionToolbar.js +18 -0
- package/section/SectionToolbarItem.js +17 -0
- package/section/index.js +41 -0
- package/select/InputSelect.js +270 -0
- package/select/Select.js +818 -0
- package/select/index.js +20 -0
- package/select/subComponent/Checkbox.js +48 -0
- package/select/subComponent/Footer.js +13 -0
- package/select/subComponent/ListBox.js +30 -0
- package/select/subComponent/Option.js +45 -0
- package/select/subComponent/OptionGroup.js +23 -0
- package/select/subComponent/Options.js +32 -0
- package/select/subComponent/SearchBox.js +58 -0
- package/select/subComponent/SelectedMultipleCount.js +39 -0
- package/select/subComponent/SelectedMultipleTags.js +54 -0
- package/select/subComponent/SelectedMultipleText.js +70 -0
- package/select/subComponent/SelectedSingle.js +17 -0
- package/styles/GlobalStyle.js +334 -0
- package/styles/config/breakpoint.style.js +13 -0
- package/styles/config/header.style.js +10 -0
- package/styles/config/sidebar.style.js +17 -0
- package/styles/index.js +20 -0
- package/styles/mixin/backgroundColor.js +44 -0
- package/styles/mixin/borderColor.js +37 -0
- package/styles/mixin/color.js +37 -0
- package/styles/mixin/colorOnBackground.js +37 -0
- package/styles/mixin/inputPlaceholder.js +30 -0
- package/styles/mixin/media.js +21 -0
- package/styles/mixin/rounded.js +30 -0
- package/styles/mixin/scrollbar.js +32 -0
- package/styles/theme/dark.theme.js +97 -0
- package/styles/theme/light.theme.js +97 -0
- package/styles/theme/white.theme.js +97 -0
- package/styles/themes.js +16 -0
- package/table/GridTable.js +336 -0
- package/table/ImageBox.js +45 -0
- package/table/InfiniteGridTable.js +403 -0
- package/table/PermissionTable.js +64 -0
- package/table/SimpleGridTable.js +143 -0
- package/table/Table.js +568 -0
- package/table/__mock__/columns.js +70 -0
- package/table/__mock__/data.js +536 -0
- package/table/hooks/index.js +20 -0
- package/table/hooks/useCalculateDataRange.js +28 -0
- package/table/hooks/useGenerateSort.js +39 -0
- package/table/index.js +48 -0
- package/table/subComponent/BaseTableHeadCell.js +62 -0
- package/table/subComponent/GridTableFooter.js +24 -0
- package/table/subComponent/GridTableHeadCell.js +20 -0
- package/table/subComponent/Resizer.js +77 -0
- package/table/subComponent/TableFooter.js +31 -0
- package/table/subComponent/TableFooterInfo.js +13 -0
- package/table/subComponent/TableFooterPager.js +33 -0
- package/table/subComponent/TableHeadCell.js +19 -0
- package/table/subComponent/TableSort.js +38 -0
- package/tagify/TagifyStyle.js +60 -0
- package/tagify/Tags.js +56 -0
- package/tagify/index.js +27 -0
- package/tagify/templates/getCreateButtonTemplate.js +18 -0
- package/text/Paragraph.js +86 -0
- package/text/index.js +13 -0
- package/timeline/Timeline.js +139 -0
- package/timeline/index.js +13 -0
- package/toast/CustomToastContainer.js +45 -0
- package/toast/MessageContainer.js +51 -0
- package/toast/index.js +36 -0
- package/toast/show.js +39 -0
- package/toast/style.css +1 -0
- package/tooltip/Tooltip.js +140 -0
- package/tooltip/index.js +13 -0
- package/treeView/TreeViewV2.js +38 -0
- package/treeView/TreeflexStyle.js +49 -0
- package/treeView/index.js +20 -0
- package/wizard/Wizard.js +251 -0
- package/wizard/index.js +13 -0
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
+
var _GoogleMapWrapper = _interopRequireDefault(require("./subComponent/GoogleMapWrapper"));
|
|
10
|
+
var _GoogleMapContainer = _interopRequireDefault(require("./subComponent/GoogleMapContainer"));
|
|
11
|
+
var _Searchbox = _interopRequireDefault(require("../form/Searchbox"));
|
|
12
|
+
var _map_icon = _interopRequireDefault(require("../assets/icons/map_icon4.png"));
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
const GoogleReverseGeolocation = _ref => {
|
|
16
|
+
let {
|
|
17
|
+
apiKey,
|
|
18
|
+
children,
|
|
19
|
+
defaultLatlng,
|
|
20
|
+
changeLatlng,
|
|
21
|
+
onChoose,
|
|
22
|
+
onSearch,
|
|
23
|
+
onError
|
|
24
|
+
} = _ref;
|
|
25
|
+
const [markerLatLng, setMarkerLatLng] = (0, _react.useState)(defaultLatlng);
|
|
26
|
+
const handleChangeLatlng = latlng => {
|
|
27
|
+
setMarkerLatLng(latlng);
|
|
28
|
+
changeLatlng(latlng);
|
|
29
|
+
};
|
|
30
|
+
const confirmChooseLocation = async callback => {
|
|
31
|
+
if (markerLatLng.lat && markerLatLng.lng) {
|
|
32
|
+
try {
|
|
33
|
+
const address = await onChoose(markerLatLng);
|
|
34
|
+
if (address) {
|
|
35
|
+
callback({
|
|
36
|
+
address
|
|
37
|
+
});
|
|
38
|
+
} else {
|
|
39
|
+
callback({
|
|
40
|
+
error: 'ReverseGeo'
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
} catch (error) {
|
|
44
|
+
callback(error);
|
|
45
|
+
}
|
|
46
|
+
} else {
|
|
47
|
+
callback({
|
|
48
|
+
error: 'PleaseChooseLocation'
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
53
|
+
children: children(/*#__PURE__*/(0, _jsxRuntime.jsx)(_GoogleMapWrapper.default, {
|
|
54
|
+
apiKey: apiKey,
|
|
55
|
+
height: 512,
|
|
56
|
+
zoom: 3,
|
|
57
|
+
markerLatLng: markerLatLng,
|
|
58
|
+
handleChangeLatlng: handleChangeLatlng,
|
|
59
|
+
onSearch: onSearch,
|
|
60
|
+
onError: onError,
|
|
61
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Map, {})
|
|
62
|
+
}), confirmChooseLocation)
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
const Map = _ref2 => {
|
|
66
|
+
let {
|
|
67
|
+
height,
|
|
68
|
+
zoom,
|
|
69
|
+
markerLatLng,
|
|
70
|
+
handleChangeLatlng,
|
|
71
|
+
onSearch,
|
|
72
|
+
onError
|
|
73
|
+
} = _ref2;
|
|
74
|
+
const ref = (0, _react.useRef)(null);
|
|
75
|
+
const [map, setMap] = (0, _react.useState)();
|
|
76
|
+
const options = (0, _react.useMemo)(() => {
|
|
77
|
+
return {
|
|
78
|
+
zoom,
|
|
79
|
+
center: {
|
|
80
|
+
lat: 1,
|
|
81
|
+
lng: 1
|
|
82
|
+
},
|
|
83
|
+
scrollwheel: true,
|
|
84
|
+
zoomControl: true,
|
|
85
|
+
zoomControlOptions: {
|
|
86
|
+
position: window.google.maps.ControlPosition.LEFT_TOP
|
|
87
|
+
},
|
|
88
|
+
mapTypeControl: false,
|
|
89
|
+
scaleControl: false,
|
|
90
|
+
streetViewControl: false,
|
|
91
|
+
rotateControl: false,
|
|
92
|
+
fullscreenControl: false,
|
|
93
|
+
minZoom: 3,
|
|
94
|
+
restriction: {
|
|
95
|
+
latLngBounds: {
|
|
96
|
+
east: 179.9999,
|
|
97
|
+
north: 85,
|
|
98
|
+
south: -85,
|
|
99
|
+
west: -179.9999
|
|
100
|
+
},
|
|
101
|
+
strictBounds: true
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
}, [zoom]);
|
|
105
|
+
const handleError = errorCode => {
|
|
106
|
+
if (onError) {
|
|
107
|
+
onError(errorCode);
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
const handleSearch = async address => {
|
|
111
|
+
try {
|
|
112
|
+
const latlng = await onSearch(address);
|
|
113
|
+
if (latlng) {
|
|
114
|
+
map.setZoom(15);
|
|
115
|
+
map.panTo(latlng);
|
|
116
|
+
handleChangeLatlng(latlng);
|
|
117
|
+
} else {
|
|
118
|
+
handleError('NO_RESULT');
|
|
119
|
+
}
|
|
120
|
+
} catch (error) {
|
|
121
|
+
handleError(error.message);
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
// setup map
|
|
126
|
+
(0, _react.useEffect)(() => {
|
|
127
|
+
if (map) {
|
|
128
|
+
map.setOptions(options);
|
|
129
|
+
}
|
|
130
|
+
}, [map, options]);
|
|
131
|
+
|
|
132
|
+
// click to choose location
|
|
133
|
+
(0, _react.useEffect)(() => {
|
|
134
|
+
if (map) {
|
|
135
|
+
map.addListener('click', event => {
|
|
136
|
+
handleChangeLatlng(event.latLng.toJSON());
|
|
137
|
+
});
|
|
138
|
+
return () => {
|
|
139
|
+
window.google.maps.event.clearListeners(map, 'click');
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
}, [map, handleChangeLatlng]);
|
|
143
|
+
|
|
144
|
+
// render marker cluster
|
|
145
|
+
(0, _react.useEffect)(() => {
|
|
146
|
+
if (map && markerLatLng.lat && markerLatLng.lng) {
|
|
147
|
+
const marker = new window.google.maps.Marker({
|
|
148
|
+
icon: {
|
|
149
|
+
url: _map_icon.default,
|
|
150
|
+
scaledSize: new window.google.maps.Size(40, 50)
|
|
151
|
+
},
|
|
152
|
+
position: markerLatLng
|
|
153
|
+
});
|
|
154
|
+
marker.setMap(map);
|
|
155
|
+
return () => {
|
|
156
|
+
marker.setMap(null);
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
}, [map, markerLatLng]);
|
|
160
|
+
(0, _react.useEffect)(() => {
|
|
161
|
+
if (ref.current && !map) {
|
|
162
|
+
setMap(new window.google.maps.Map(ref.current, {}));
|
|
163
|
+
}
|
|
164
|
+
}, [map, options]);
|
|
165
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
166
|
+
style: {
|
|
167
|
+
position: 'relative'
|
|
168
|
+
},
|
|
169
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(MapSearchBoxControl, {
|
|
170
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Searchbox.default, {
|
|
171
|
+
onSearch: handleSearch,
|
|
172
|
+
autoFocus: true
|
|
173
|
+
})
|
|
174
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GoogleMapContainer.default, {
|
|
175
|
+
ref: ref,
|
|
176
|
+
height: height,
|
|
177
|
+
tabIndex: "0",
|
|
178
|
+
onClick: event => {
|
|
179
|
+
event.target.focus();
|
|
180
|
+
},
|
|
181
|
+
onFocus: () => {
|
|
182
|
+
map.setOptions({
|
|
183
|
+
scrollwheel: true
|
|
184
|
+
});
|
|
185
|
+
},
|
|
186
|
+
onBlur: () => {
|
|
187
|
+
map.setOptions({
|
|
188
|
+
scrollwheel: false
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
})]
|
|
192
|
+
});
|
|
193
|
+
};
|
|
194
|
+
const MapSearchBoxControl = _styledComponents.default.div`
|
|
195
|
+
position: absolute;
|
|
196
|
+
top: var(--spacing-s);
|
|
197
|
+
right: var(--spacing-s);
|
|
198
|
+
z-index: 1;
|
|
199
|
+
`;
|
|
200
|
+
var _default = exports.default = GoogleReverseGeolocation;
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _leaflet = _interopRequireDefault(require("leaflet"));
|
|
9
|
+
var _reactLeaflet = require("react-leaflet");
|
|
10
|
+
var _reactLeafletMarkercluster = _interopRequireDefault(require("react-leaflet-markercluster"));
|
|
11
|
+
require("leaflet/dist/leaflet.css");
|
|
12
|
+
require("react-leaflet-markercluster/dist/styles.min.css");
|
|
13
|
+
var _BasicLeafletMap = _interopRequireDefault(require("./subComponent/BasicLeafletMap"));
|
|
14
|
+
var _LeafletDrawControl = _interopRequireDefault(require("./subComponent/LeafletDrawControl"));
|
|
15
|
+
var _map_icon = _interopRequireDefault(require("../assets/icons/map_icon1.png"));
|
|
16
|
+
var _map_icon2 = _interopRequireDefault(require("../assets/icons/map_icon4.png"));
|
|
17
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
19
|
+
const LeafletMap = _ref => {
|
|
20
|
+
let {
|
|
21
|
+
height = 512,
|
|
22
|
+
zoom = 10,
|
|
23
|
+
data = {
|
|
24
|
+
defaultPosition: null,
|
|
25
|
+
position: null,
|
|
26
|
+
locations: []
|
|
27
|
+
},
|
|
28
|
+
geoFence = false,
|
|
29
|
+
geoFenceOptions = {},
|
|
30
|
+
onError,
|
|
31
|
+
customPopup,
|
|
32
|
+
checkPrimaryLocation
|
|
33
|
+
} = _ref;
|
|
34
|
+
const [hasError, setHasError] = (0, _react.useState)(true);
|
|
35
|
+
const [validLocations, setValidLocations] = (0, _react.useState)([]);
|
|
36
|
+
const [validBound, setValidBound] = (0, _react.useState)([]);
|
|
37
|
+
const [markers, setMarkers] = (0, _react.useState)([]);
|
|
38
|
+
const drawControlRef = (0, _react.useRef)();
|
|
39
|
+
const handleError = (0, _react.useCallback)(errorCode => {
|
|
40
|
+
if (onError) {
|
|
41
|
+
onError(errorCode);
|
|
42
|
+
}
|
|
43
|
+
}, [onError]);
|
|
44
|
+
const handleMountedDrawControl = (0, _react.useCallback)(control => {
|
|
45
|
+
drawControlRef.current = control;
|
|
46
|
+
if (geoFenceOptions.editable) {
|
|
47
|
+
drawControlRef.current.enableEdit();
|
|
48
|
+
}
|
|
49
|
+
}, [geoFenceOptions.editable]);
|
|
50
|
+
const handleEditResizeDraw = (0, _react.useCallback)(event => {
|
|
51
|
+
const {
|
|
52
|
+
minRadius,
|
|
53
|
+
eventHandlers
|
|
54
|
+
} = geoFenceOptions;
|
|
55
|
+
const radius = event.layer.getRadius();
|
|
56
|
+
if (minRadius && radius < minRadius) {
|
|
57
|
+
event.layer.setRadius(minRadius);
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
const tooltips = event.target._panes.popupPane.getElementsByClassName('leaflet-draw-tooltip');
|
|
61
|
+
for (let index = 0; index < tooltips.length; index += 1) {
|
|
62
|
+
tooltips[index].textContent = `Radius: ${parseInt(radius, 10)}`;
|
|
63
|
+
}
|
|
64
|
+
if (eventHandlers.edit) {
|
|
65
|
+
eventHandlers.edit(radius);
|
|
66
|
+
}
|
|
67
|
+
}, [geoFenceOptions]);
|
|
68
|
+
const handleEditMoveDraw = (0, _react.useCallback)(event => {
|
|
69
|
+
const {
|
|
70
|
+
eventHandlers
|
|
71
|
+
} = geoFenceOptions;
|
|
72
|
+
if (eventHandlers.drag) {
|
|
73
|
+
eventHandlers.drag(event.layer.getLatLng());
|
|
74
|
+
}
|
|
75
|
+
}, [geoFenceOptions]);
|
|
76
|
+
(0, _react.useEffect)(() => {
|
|
77
|
+
const {
|
|
78
|
+
defaultPosition,
|
|
79
|
+
position,
|
|
80
|
+
locations
|
|
81
|
+
} = data;
|
|
82
|
+
const arrLatLngs = [];
|
|
83
|
+
const bounds = [];
|
|
84
|
+
const markers = [];
|
|
85
|
+
if (!position && !defaultPosition) {
|
|
86
|
+
handleError('NO_COORDINATES');
|
|
87
|
+
setHasError(true);
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
locations.forEach((location, index) => {
|
|
91
|
+
const {
|
|
92
|
+
latitude,
|
|
93
|
+
longitude
|
|
94
|
+
} = location;
|
|
95
|
+
if (!latitude && latitude !== 0 || !longitude && longitude !== 0 || latitude === 0 && longitude === 0 || latitude === '0' && longitude === '0') {
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// prevent duplicate LatLngBounds
|
|
100
|
+
if (!bounds.some(LatLng => {
|
|
101
|
+
return latitude === LatLng[0] && longitude === LatLng[1];
|
|
102
|
+
})) {
|
|
103
|
+
bounds.push([latitude, longitude]);
|
|
104
|
+
}
|
|
105
|
+
arrLatLngs.push([latitude, longitude]);
|
|
106
|
+
let popupContent = null;
|
|
107
|
+
if (customPopup) {
|
|
108
|
+
popupContent = /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactLeaflet.Popup, {
|
|
109
|
+
maxWidth: 400,
|
|
110
|
+
closeButton: false,
|
|
111
|
+
children: customPopup(location)
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
let Icon = _leaflet.default.icon({
|
|
115
|
+
iconUrl: _map_icon2.default,
|
|
116
|
+
iconSize: [40, 50]
|
|
117
|
+
});
|
|
118
|
+
if (checkPrimaryLocation && checkPrimaryLocation(location)) {
|
|
119
|
+
Icon = _leaflet.default.icon({
|
|
120
|
+
iconUrl: _map_icon.default,
|
|
121
|
+
iconSize: [40, 50]
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
markers.push(/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactLeaflet.Marker, {
|
|
125
|
+
position: [latitude, longitude],
|
|
126
|
+
icon: Icon,
|
|
127
|
+
children: popupContent
|
|
128
|
+
}, index));
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
// pass all checking
|
|
132
|
+
setHasError(false);
|
|
133
|
+
setValidLocations(arrLatLngs);
|
|
134
|
+
setValidBound(bounds);
|
|
135
|
+
setMarkers(markers);
|
|
136
|
+
}, [data, handleError, customPopup, checkPrimaryLocation]);
|
|
137
|
+
(0, _react.useEffect)(() => {
|
|
138
|
+
if (drawControlRef.current && geoFenceOptions.editable) {
|
|
139
|
+
drawControlRef.current.enableEdit();
|
|
140
|
+
}
|
|
141
|
+
}, [geoFenceOptions.editable]);
|
|
142
|
+
if (!hasError) {
|
|
143
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_BasicLeafletMap.default, {
|
|
144
|
+
height: height,
|
|
145
|
+
zoom: zoom,
|
|
146
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(MapInteractor, {
|
|
147
|
+
zoom: zoom,
|
|
148
|
+
locations: validLocations,
|
|
149
|
+
bounds: validBound,
|
|
150
|
+
markers: markers,
|
|
151
|
+
defaultPosition: data.defaultPosition,
|
|
152
|
+
position: data.position
|
|
153
|
+
}), markers.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactLeafletMarkercluster.default, {
|
|
154
|
+
maxClusterRadius: 120,
|
|
155
|
+
iconCreateFunction: cluster => {
|
|
156
|
+
return _leaflet.default.divIcon({
|
|
157
|
+
html: `<div><span>${cluster.getChildCount()}</span></div>`,
|
|
158
|
+
className: 'marker-cluster',
|
|
159
|
+
iconSize: _leaflet.default.point(40, 40)
|
|
160
|
+
});
|
|
161
|
+
},
|
|
162
|
+
children: markers
|
|
163
|
+
}), geoFence && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactLeaflet.FeatureGroup, {
|
|
164
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_LeafletDrawControl.default, {
|
|
165
|
+
draw: false,
|
|
166
|
+
edit: {
|
|
167
|
+
edit: false,
|
|
168
|
+
remove: false
|
|
169
|
+
},
|
|
170
|
+
onMounted: handleMountedDrawControl,
|
|
171
|
+
onEditResize: handleEditResizeDraw,
|
|
172
|
+
onEditMove: handleEditMoveDraw
|
|
173
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactLeaflet.Circle, {
|
|
174
|
+
center: [geoFenceOptions.latitude, geoFenceOptions.longitude],
|
|
175
|
+
radius: geoFenceOptions.radius,
|
|
176
|
+
pathOptions: {
|
|
177
|
+
stroke: false,
|
|
178
|
+
fillColor: 'var(--color-primary)',
|
|
179
|
+
fillOpacity: 0.5
|
|
180
|
+
}
|
|
181
|
+
})]
|
|
182
|
+
})]
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {});
|
|
186
|
+
};
|
|
187
|
+
const MapInteractor = _ref2 => {
|
|
188
|
+
let {
|
|
189
|
+
zoom,
|
|
190
|
+
locations,
|
|
191
|
+
bounds,
|
|
192
|
+
markers,
|
|
193
|
+
defaultPosition,
|
|
194
|
+
position
|
|
195
|
+
} = _ref2;
|
|
196
|
+
const map = (0, _reactLeaflet.useMapEvents)({
|
|
197
|
+
click: event => {
|
|
198
|
+
event.originalEvent.stopPropagation();
|
|
199
|
+
},
|
|
200
|
+
focus: () => {
|
|
201
|
+
map.scrollWheelZoom.enable();
|
|
202
|
+
},
|
|
203
|
+
blur: () => {
|
|
204
|
+
map.scrollWheelZoom.disable();
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
(0, _react.useEffect)(() => {
|
|
208
|
+
if (bounds.length === 1) {
|
|
209
|
+
map.setView(bounds[0]);
|
|
210
|
+
} else if (locations.length > 0) {
|
|
211
|
+
map.fitBounds(bounds);
|
|
212
|
+
|
|
213
|
+
// check current view has marker, if not set view to first marker
|
|
214
|
+
const currentBounds = map.getBounds();
|
|
215
|
+
const found = locations.find(LatLng => {
|
|
216
|
+
const tmpLat = parseFloat(LatLng[0]);
|
|
217
|
+
const tmpLng = parseFloat(LatLng[1]);
|
|
218
|
+
if (Number.isNaN(tmpLat) || Number.isNaN(tmpLng)) return false;
|
|
219
|
+
return currentBounds.contains([tmpLat, tmpLng]);
|
|
220
|
+
});
|
|
221
|
+
if (!found) {
|
|
222
|
+
map.setView(locations[0]);
|
|
223
|
+
}
|
|
224
|
+
} else {
|
|
225
|
+
map.setView([position && position.latitude || defaultPosition.latitude, position && position.longitude || defaultPosition.longitude]);
|
|
226
|
+
}
|
|
227
|
+
map.setZoom(zoom);
|
|
228
|
+
}, [map, zoom, locations, bounds, markers, defaultPosition, position]);
|
|
229
|
+
return null;
|
|
230
|
+
};
|
|
231
|
+
var _default = exports.default = LeafletMap;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _leaflet = _interopRequireDefault(require("leaflet"));
|
|
9
|
+
var _reactLeaflet = require("react-leaflet");
|
|
10
|
+
var _BasicLeafletMap = _interopRequireDefault(require("./subComponent/BasicLeafletMap"));
|
|
11
|
+
var _MapSearchBoxControl = _interopRequireDefault(require("./subComponent/MapSearchBoxControl"));
|
|
12
|
+
var _map_icon = _interopRequireDefault(require("../assets/icons/map_icon4.png"));
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
const LeafletReverseGeolocation = _ref => {
|
|
16
|
+
let {
|
|
17
|
+
children,
|
|
18
|
+
defaultLatlng,
|
|
19
|
+
changeLatlng,
|
|
20
|
+
onChoose,
|
|
21
|
+
onSearch,
|
|
22
|
+
onError
|
|
23
|
+
} = _ref;
|
|
24
|
+
const [markerLatLng, setMarkerLatLng] = (0, _react.useState)(defaultLatlng);
|
|
25
|
+
const Icon = (0, _react.useMemo)(() => {
|
|
26
|
+
return _leaflet.default.icon({
|
|
27
|
+
iconUrl: _map_icon.default,
|
|
28
|
+
iconSize: [40, 50]
|
|
29
|
+
});
|
|
30
|
+
}, []);
|
|
31
|
+
const handleChangeLatlng = latlng => {
|
|
32
|
+
setMarkerLatLng(latlng);
|
|
33
|
+
changeLatlng(latlng);
|
|
34
|
+
};
|
|
35
|
+
const confirmChooseLocation = async callback => {
|
|
36
|
+
if (markerLatLng.lat && markerLatLng.lng) {
|
|
37
|
+
try {
|
|
38
|
+
const address = await onChoose(markerLatLng);
|
|
39
|
+
if (address) {
|
|
40
|
+
callback({
|
|
41
|
+
address
|
|
42
|
+
});
|
|
43
|
+
} else {
|
|
44
|
+
callback({
|
|
45
|
+
error: 'ReverseGeo'
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
} catch (error) {
|
|
49
|
+
callback(error);
|
|
50
|
+
}
|
|
51
|
+
} else {
|
|
52
|
+
callback({
|
|
53
|
+
error: 'PleaseChooseLocation'
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
const Map = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_BasicLeafletMap.default, {
|
|
58
|
+
height: 500,
|
|
59
|
+
zoom: 10,
|
|
60
|
+
scrollWheelZoom: true,
|
|
61
|
+
children: [markerLatLng.lat && markerLatLng.lng && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactLeaflet.Marker, {
|
|
62
|
+
position: [markerLatLng.lat, markerLatLng.lng],
|
|
63
|
+
icon: Icon
|
|
64
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(MapInteractor, {
|
|
65
|
+
changeLatlng: handleChangeLatlng
|
|
66
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_MapSearchBoxControl.default, {
|
|
67
|
+
changeLatlng: handleChangeLatlng,
|
|
68
|
+
onSearch: onSearch,
|
|
69
|
+
onError: onError
|
|
70
|
+
})]
|
|
71
|
+
});
|
|
72
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
73
|
+
children: children(Map, confirmChooseLocation)
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
const MapInteractor = _ref2 => {
|
|
77
|
+
let {
|
|
78
|
+
changeLatlng
|
|
79
|
+
} = _ref2;
|
|
80
|
+
const map = (0, _reactLeaflet.useMapEvents)({
|
|
81
|
+
click: event => {
|
|
82
|
+
const {
|
|
83
|
+
lat,
|
|
84
|
+
lng
|
|
85
|
+
} = event.latlng;
|
|
86
|
+
changeLatlng({
|
|
87
|
+
lat: lat.toString(),
|
|
88
|
+
lng: lng.toString()
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
(0, _react.useEffect)(() => {
|
|
93
|
+
const bounds = _leaflet.default.latLngBounds([[90, 180], [-90, -180]]);
|
|
94
|
+
const wantedZoom = map.getBoundsZoom(bounds, true);
|
|
95
|
+
const center = bounds.getCenter();
|
|
96
|
+
map.setView(center);
|
|
97
|
+
map.setZoom(wantedZoom);
|
|
98
|
+
}, [map]);
|
|
99
|
+
return null;
|
|
100
|
+
};
|
|
101
|
+
var _default = exports.default = LeafletReverseGeolocation;
|
package/map/index.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "GoogleMap", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _GoogleMap.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "GoogleReverseGeolocation", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _GoogleReverseGeolocation.default;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "LeafletMap", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _LeafletMap.default;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "LeafletReverseGeolocation", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _LeafletReverseGeolocation.default;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
var _LeafletMap = _interopRequireDefault(require("./LeafletMap"));
|
|
31
|
+
var _LeafletReverseGeolocation = _interopRequireDefault(require("./LeafletReverseGeolocation"));
|
|
32
|
+
var _GoogleMap = _interopRequireDefault(require("./GoogleMap"));
|
|
33
|
+
var _GoogleReverseGeolocation = _interopRequireDefault(require("./GoogleReverseGeolocation"));
|
|
34
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _LeafletMapContainer = _interopRequireDefault(require("./LeafletMapContainer"));
|
|
8
|
+
var _reactLeaflet = require("react-leaflet");
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
const BasicLeafletMap = _ref => {
|
|
12
|
+
let {
|
|
13
|
+
height,
|
|
14
|
+
zoom,
|
|
15
|
+
scrollWheelZoom = false,
|
|
16
|
+
children
|
|
17
|
+
} = _ref;
|
|
18
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_LeafletMapContainer.default, {
|
|
19
|
+
height: height,
|
|
20
|
+
center: [1, 1],
|
|
21
|
+
zoom: zoom,
|
|
22
|
+
scrollWheelZoom: scrollWheelZoom,
|
|
23
|
+
maxBounds: [[-90, -180], [90, 180]],
|
|
24
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactLeaflet.TileLayer, {
|
|
25
|
+
attribution: "Map data \xA9 <a href=\"https://www.openstreetmap.org/\">OpenStreetMap</a> contributors",
|
|
26
|
+
url: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
|
|
27
|
+
minZoom: 3,
|
|
28
|
+
maxZoom: 20,
|
|
29
|
+
noWrap: true,
|
|
30
|
+
bounds: [[-90, -180], [90, 180]]
|
|
31
|
+
}), children]
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
var _default = exports.default = BasicLeafletMap;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
const GoogleMapContainer = _styledComponents.default.div`
|
|
10
|
+
height: ${_ref => {
|
|
11
|
+
let {
|
|
12
|
+
height
|
|
13
|
+
} = _ref;
|
|
14
|
+
return height;
|
|
15
|
+
}}px;
|
|
16
|
+
border: 1px solid transparent;
|
|
17
|
+
border-radius: var(--border-radius);
|
|
18
|
+
|
|
19
|
+
&:focus {
|
|
20
|
+
border-color: var(--border-color);
|
|
21
|
+
box-shadow: var(--box-shadow);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.google-popup-content-wrapper {
|
|
25
|
+
position: absolute;
|
|
26
|
+
transform: translate(-50%, -100%);
|
|
27
|
+
}
|
|
28
|
+
`;
|
|
29
|
+
var _default = exports.default = GoogleMapContainer;
|