@majoo-ui/react 1.59.6-rc.12 → 1.59.6-rc.14
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/index.esm.js +3 -6
- package/index.umd.js +2 -5
- package/package.json +3 -2
package/index.esm.js
CHANGED
|
@@ -51490,13 +51490,13 @@ const ZoomControl = styled(Flex$1, {
|
|
|
51490
51490
|
cursor: 'pointer',
|
|
51491
51491
|
zIndex: 1800
|
|
51492
51492
|
});
|
|
51493
|
-
const InputSearch =
|
|
51493
|
+
const InputSearch = ({
|
|
51494
51494
|
placeholder,
|
|
51495
51495
|
value,
|
|
51496
51496
|
list,
|
|
51497
51497
|
onChange,
|
|
51498
51498
|
onSelect
|
|
51499
|
-
}
|
|
51499
|
+
}) => jsxs(Box, Object.assign({
|
|
51500
51500
|
css: {
|
|
51501
51501
|
position: 'absolute',
|
|
51502
51502
|
left: 16,
|
|
@@ -51510,7 +51510,6 @@ const InputSearch = /*#__PURE__*/React__default.forwardRef(({
|
|
|
51510
51510
|
}
|
|
51511
51511
|
}, {
|
|
51512
51512
|
children: [jsx(Input, {
|
|
51513
|
-
ref: ref,
|
|
51514
51513
|
placeholder: placeholder,
|
|
51515
51514
|
value: value,
|
|
51516
51515
|
onChange: onChange
|
|
@@ -51557,12 +51556,11 @@ const InputSearch = /*#__PURE__*/React__default.forwardRef(({
|
|
|
51557
51556
|
})
|
|
51558
51557
|
}), void 0)
|
|
51559
51558
|
}), void 0) : jsx(Fragment, {}, void 0)]
|
|
51560
|
-
}), void 0)
|
|
51559
|
+
}), void 0);
|
|
51561
51560
|
function MapPicker(props) {
|
|
51562
51561
|
const {
|
|
51563
51562
|
t
|
|
51564
51563
|
} = useTranslation(['MajooUI/mapPicker', 'translation']);
|
|
51565
|
-
const inputRef = useRef(null);
|
|
51566
51564
|
const mapRef = useRef(null);
|
|
51567
51565
|
const {
|
|
51568
51566
|
css,
|
|
@@ -51850,7 +51848,6 @@ function MapPicker(props) {
|
|
|
51850
51848
|
}, void 0), jsx(ButtonSelect, {}, void 0), jsx(MarkerIcon, {}, void 0), jsx(ChangeView, {
|
|
51851
51849
|
center: [center === null || center === void 0 ? void 0 : center.lat, center === null || center === void 0 ? void 0 : center.lng]
|
|
51852
51850
|
}, void 0), jsx(InputSearch, {
|
|
51853
|
-
ref: inputRef,
|
|
51854
51851
|
list: searchResult,
|
|
51855
51852
|
value: searchQuery,
|
|
51856
51853
|
placeholder: t('searchPlaceholder', 'Cari ...'),
|
package/index.umd.js
CHANGED
|
@@ -51982,7 +51982,7 @@
|
|
|
51982
51982
|
cursor: 'pointer',
|
|
51983
51983
|
zIndex: 1800
|
|
51984
51984
|
});
|
|
51985
|
-
var InputSearch =
|
|
51985
|
+
var InputSearch = function InputSearch(_a) {
|
|
51986
51986
|
var placeholder = _a.placeholder,
|
|
51987
51987
|
value = _a.value,
|
|
51988
51988
|
list = _a.list,
|
|
@@ -52002,7 +52002,6 @@
|
|
|
52002
52002
|
}
|
|
52003
52003
|
}, {
|
|
52004
52004
|
children: [jsxRuntime.jsx(Input, {
|
|
52005
|
-
ref: ref,
|
|
52006
52005
|
placeholder: placeholder,
|
|
52007
52006
|
value: value,
|
|
52008
52007
|
onChange: onChange
|
|
@@ -52052,11 +52051,10 @@
|
|
|
52052
52051
|
}), void 0)
|
|
52053
52052
|
}), void 0) : jsxRuntime.jsx(jsxRuntime.Fragment, {}, void 0)]
|
|
52054
52053
|
}), void 0);
|
|
52055
|
-
}
|
|
52054
|
+
};
|
|
52056
52055
|
function MapPicker(props) {
|
|
52057
52056
|
var _this = this;
|
|
52058
52057
|
var t = reactI18next.useTranslation(['MajooUI/mapPicker', 'translation']).t;
|
|
52059
|
-
var inputRef = React.useRef(null);
|
|
52060
52058
|
var mapRef = React.useRef(null);
|
|
52061
52059
|
var css = props.css,
|
|
52062
52060
|
showBanner = props.showBanner,
|
|
@@ -52401,7 +52399,6 @@
|
|
|
52401
52399
|
}, void 0), jsxRuntime.jsx(ButtonSelect, {}, void 0), jsxRuntime.jsx(MarkerIcon, {}, void 0), jsxRuntime.jsx(ChangeView, {
|
|
52402
52400
|
center: [center === null || center === void 0 ? void 0 : center.lat, center === null || center === void 0 ? void 0 : center.lng]
|
|
52403
52401
|
}, void 0), jsxRuntime.jsx(InputSearch, {
|
|
52404
|
-
ref: inputRef,
|
|
52405
52402
|
list: searchResult,
|
|
52406
52403
|
value: searchQuery,
|
|
52407
52404
|
placeholder: t('searchPlaceholder', 'Cari ...'),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@majoo-ui/react",
|
|
3
|
-
"version": "1.59.6-rc.
|
|
3
|
+
"version": "1.59.6-rc.14",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@majoo-ui/core": "^1.31.3",
|
|
6
6
|
"@majoo-ui/helpers": "^1.30.5",
|
|
@@ -55,7 +55,8 @@
|
|
|
55
55
|
"react-virtual": "^2.10.4",
|
|
56
56
|
"leaflet": "^1.9.4",
|
|
57
57
|
"leaflet-defaulticon-compatibility": "^0.1.2",
|
|
58
|
-
"react-leaflet": "^
|
|
58
|
+
"react-leaflet": ">=3.1.0 <3.2.0 || ^3.2.1",
|
|
59
|
+
"@react-leaflet/core": ">=1.0.0 <1.1.0 || ^1.1.1"
|
|
59
60
|
},
|
|
60
61
|
"main": "./index.umd.js",
|
|
61
62
|
"module": "./index.esm.js",
|