@majoo-ui/react 1.59.11-rc.6 → 1.59.12-rc.1

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.
@@ -41,6 +41,10 @@ export interface MapPickerProps {
41
41
  * Marker Click event handler.
42
42
  */
43
43
  onMarkerClick?: () => void;
44
+ /**
45
+ * Custom radius.
46
+ */
47
+ radius?: number;
44
48
  }
45
49
  export interface InputMapPickerProps {
46
50
  /**
@@ -80,4 +84,8 @@ export interface InputMapPickerProps {
80
84
  * on Marker click event handle
81
85
  */
82
86
  onMarkerClick: () => void;
87
+ /**
88
+ * Custom radius.
89
+ */
90
+ radius?: number;
83
91
  }
package/index.esm.js CHANGED
@@ -38,7 +38,7 @@ import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
38
38
  import { EditableInput, ColorWrap, Saturation, Hue, Alpha, Swatch } from 'react-color/lib/components/common';
39
39
  import * as color from 'react-color/lib/helpers/color';
40
40
  import StepWizard$1 from 'react-step-wizard';
41
- import { MapContainer, TileLayer, useMapEvents } from '@monsonjeremy/react-leaflet';
41
+ import { MapContainer, Circle, TileLayer, useMapEvents } from '@monsonjeremy/react-leaflet';
42
42
  import 'leaflet/dist/leaflet.css';
43
43
  import 'leaflet-defaulticon-compatibility/dist/leaflet-defaulticon-compatibility.css';
44
44
  import 'leaflet-defaulticon-compatibility';
@@ -52192,6 +52192,7 @@ function MapPicker(props) {
52192
52192
  css,
52193
52193
  showBanner,
52194
52194
  bannerDescription,
52195
+ radius,
52195
52196
  value,
52196
52197
  onChange,
52197
52198
  onMarkerClick
@@ -52469,7 +52470,14 @@ function MapPicker(props) {
52469
52470
  height: '441px'
52470
52471
  }
52471
52472
  }, {
52472
- children: [jsx(TileLayer, {
52473
+ children: [radius && jsx(Circle, {
52474
+ center: [center === null || center === void 0 ? void 0 : center.lat, center === null || center === void 0 ? void 0 : center.lng],
52475
+ radius: radius,
52476
+ pathOptions: {
52477
+ color: colors$8.bgGreen,
52478
+ fillColor: colors$8.bgGreen
52479
+ }
52480
+ }, void 0), jsx(TileLayer, {
52473
52481
  url: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
52474
52482
  }, void 0), jsx(ButtonSelect, {}, void 0), jsx(MarkerIcon, {}, void 0), jsx(ChangeView, {
52475
52483
  center: [center === null || center === void 0 ? void 0 : center.lat, center === null || center === void 0 ? void 0 : center.lng]
@@ -52556,6 +52564,7 @@ function InputMapPicker(props) {
52556
52564
  placeholder,
52557
52565
  showBanner,
52558
52566
  bannerDescription,
52567
+ radius,
52559
52568
  value,
52560
52569
  onChange,
52561
52570
  onMarkerClick
@@ -52665,7 +52674,8 @@ function InputMapPicker(props) {
52665
52674
  bannerDescription: bannerDescription,
52666
52675
  value: value,
52667
52676
  onChange: handleChange,
52668
- onMarkerClick: handleMarkerClick
52677
+ onMarkerClick: handleMarkerClick,
52678
+ radius: radius
52669
52679
  }, void 0)
52670
52680
  }), void 0)]
52671
52681
  }), void 0)]
package/index.umd.js CHANGED
@@ -52717,6 +52717,7 @@
52717
52717
  var css = props.css,
52718
52718
  showBanner = props.showBanner,
52719
52719
  bannerDescription = props.bannerDescription,
52720
+ radius = props.radius,
52720
52721
  value = props.value,
52721
52722
  onChange = props.onChange,
52722
52723
  onMarkerClick = props.onMarkerClick;
@@ -53054,7 +53055,14 @@
53054
53055
  height: '441px'
53055
53056
  }
53056
53057
  }, {
53057
- children: [jsxRuntime.jsx(reactLeaflet.TileLayer, {
53058
+ children: [radius && jsxRuntime.jsx(reactLeaflet.Circle, {
53059
+ center: [center === null || center === void 0 ? void 0 : center.lat, center === null || center === void 0 ? void 0 : center.lng],
53060
+ radius: radius,
53061
+ pathOptions: {
53062
+ color: colors$8.bgGreen,
53063
+ fillColor: colors$8.bgGreen
53064
+ }
53065
+ }, void 0), jsxRuntime.jsx(reactLeaflet.TileLayer, {
53058
53066
  url: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
53059
53067
  }, void 0), jsxRuntime.jsx(ButtonSelect, {}, void 0), jsxRuntime.jsx(MarkerIcon, {}, void 0), jsxRuntime.jsx(ChangeView, {
53060
53068
  center: [center === null || center === void 0 ? void 0 : center.lat, center === null || center === void 0 ? void 0 : center.lng]
@@ -53146,6 +53154,7 @@
53146
53154
  placeholder = props.placeholder,
53147
53155
  showBanner = props.showBanner,
53148
53156
  bannerDescription = props.bannerDescription,
53157
+ radius = props.radius,
53149
53158
  value = props.value,
53150
53159
  onChange = props.onChange,
53151
53160
  onMarkerClick = props.onMarkerClick;
@@ -53273,7 +53282,8 @@
53273
53282
  bannerDescription: bannerDescription,
53274
53283
  value: value,
53275
53284
  onChange: handleChange,
53276
- onMarkerClick: handleMarkerClick
53285
+ onMarkerClick: handleMarkerClick,
53286
+ radius: radius
53277
53287
  }, void 0)
53278
53288
  }), void 0)]
53279
53289
  }), void 0)]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@majoo-ui/react",
3
- "version": "1.59.11-rc.6",
3
+ "version": "1.59.12-rc.1",
4
4
  "dependencies": {
5
5
  "@majoo-ui/core": "^1.31.3",
6
6
  "@majoo-ui/helpers": "^1.30.5",