@cashub/ui 0.47.0 → 0.48.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/TabList.js +38 -26
- package/Tab/TabPanel.js +13 -20
- package/Tab/TabTab.js +36 -24
- package/Tab/index.js +15 -1
- 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 +13 -18
- package/VerticalTab/TabPanel.js +16 -20
- package/VerticalTab/TabTab.js +40 -21
- package/VerticalTab/VerticalTab.js +8 -4
- package/alert/Alert.js +12 -5
- package/animate/Collapse.js +5 -7
- package/animate/Loader.js +18 -7
- package/animate/PulseRing.js +18 -5
- package/animate/Spinner.js +8 -3
- package/backdrop/BaseBackdrop.js +9 -3
- package/backdrop/LoadingBackdrop.js +7 -3
- package/backdrop/ModalBackdrop.js +5 -3
- package/badge/Badge.js +15 -3
- package/badge/BadgeDot.js +8 -3
- package/badge/BadgeFill.js +24 -6
- package/badge/BadgeWithText.js +13 -3
- package/billing/BarChart.js +1 -1
- package/breadcrumb/Breadcrumb.js +42 -3
- package/button/Button.js +88 -20
- package/button/ButtonGroup.js +33 -9
- package/button/IconButton.js +37 -10
- package/button/ScrollToTopButton.js +12 -4
- package/callout/Callout.js +37 -8
- package/chart/BarChart.js +10 -17
- package/chart/DoughnutChart.js +34 -20
- package/chart/LineChart.js +11 -18
- package/chart/SingleBarChart.js +22 -5
- package/chart/utils/centerTextPlugin.js +2 -2
- package/chart/utils/customTooltip.js +7 -7
- package/chart/utils/htmlLegendPlugin.js +1 -1
- package/container/FlexContainer.js +15 -7
- package/cropper/Cropper.js +1 -2
- package/datetimePicker/DatePicker.js +80 -26
- package/datetimePicker/DatePickerV2.js +95 -36
- package/datetimePicker/DatetimePicker.js +174 -11
- package/datetimePicker/DatetimePickerV2.js +87 -33
- package/datetimePicker/DatetimePickerV3.js +174 -11
- package/datetimePicker/TimeInput.js +35 -10
- package/datetimePicker/TimePicker.js +77 -22
- package/datetimePicker/TimePickerStyle.js +53 -3
- package/datetimePicker/TimePickerV2.js +54 -21
- package/datetimePicker/accordion/Month.js +93 -16
- package/datetimePicker/accordion/Year.js +96 -18
- package/datetimePicker/hooks/useChangeNumber.js +3 -6
- package/datetimePicker/hooks/useDecrease.js +3 -6
- package/datetimePicker/hooks/useIncrease.js +3 -6
- package/datetimePicker/subComponent/Accordion.js +101 -20
- package/descriptionList/DescriptionDetail.js +15 -4
- package/descriptionList/DescriptionList.js +12 -4
- package/descriptionList/DescriptionTerm.js +5 -3
- package/divider/Divider.js +15 -6
- package/dropdown/DropdownButtonOption.js +22 -6
- package/dropdown/DropdownContent.js +29 -15
- package/dropdown/DropdownDivOption.js +17 -3
- package/dropdown/DropdownLinkOption.js +14 -3
- package/dropdown/DropdownToggle.js +7 -15
- package/dropzone/FileDropzone.js +121 -22
- package/dropzone/ImageDropzone.js +83 -14
- package/dropzone/subComponent/Message.js +11 -4
- package/figure/IconFigure.js +16 -7
- package/figure/ImageFigure.js +19 -6
- package/file/HiddenFileInput.js +3 -3
- package/form/Checkbox.js +74 -13
- package/form/Fieldset.js +9 -3
- package/form/FormItem.js +10 -5
- package/form/Input.js +40 -7
- package/form/Label.js +34 -10
- package/form/MutedText.js +8 -4
- package/form/PasswordInput.js +20 -13
- package/form/RadioButton.js +55 -8
- package/form/SearchSelect.js +64 -12
- package/form/Searchbox.js +45 -19
- package/form/Slider.js +28 -10
- package/form/SwitchButton.js +48 -14
- package/form/Textarea.js +30 -3
- package/form/TreeView.js +13 -6
- package/grid/Column.js +23 -10
- package/grid/Grid.js +14 -6
- package/heading/Heading1.js +8 -4
- package/heading/Heading2.js +11 -5
- package/heading/Heading3.js +20 -8
- package/iconbox/ApplicationIconBox.js +48 -12
- package/iconbox/IconBox.js +31 -7
- package/iconbox/IconBoxV2.js +33 -8
- package/iconbox/subComponent/IconBoxFigure.js +17 -9
- package/iconbox/subComponent/IconBoxImage.js +21 -8
- package/image/ImageFluid.js +7 -3
- package/image/UploadImage.js +66 -18
- package/index.js +8 -1
- package/jsoneditor/JsonEditor.js +121 -15
- package/keyframe/Pulse.js +13 -3
- package/keyframe/Spin.js +5 -3
- package/layout/Aside.js +30 -5
- package/layout/Backdrop.js +8 -4
- package/layout/Container.js +21 -5
- package/layout/Footer.js +26 -7
- package/link/LinkSpan.js +37 -19
- package/map/GoogleMap.js +3 -7
- package/map/GoogleReverseGeolocation.js +6 -3
- package/map/LeafletMap.js +2 -2
- package/map/subComponent/GoogleMapContainer.js +16 -4
- package/map/subComponent/GoogleMapPopup.js +7 -10
- package/map/subComponent/GoogleMapWrapper.js +8 -15
- package/map/subComponent/LeafletDrawControl.js +9 -7
- package/map/subComponent/LeafletMapContainer.js +159 -4
- package/modal/StateModal.js +49 -28
- package/modal/TitleModal.js +70 -29
- package/package.json +1 -1
- package/page/Disclaimer.js +119 -3
- package/paginate/Paginate.js +54 -12
- package/popover/Popover.js +30 -25
- package/qrcode/QRCode.js +20 -6
- package/qrcode/QRCodeContainter.js +12 -4
- package/ribbon/Ribbon.js +29 -4
- package/section/Section.js +68 -20
- package/section/SectionBody.js +29 -8
- package/section/SectionHeader.js +36 -11
- package/section/SectionToolbar.js +9 -3
- package/section/SectionToolbarItem.js +8 -3
- package/select/InputSelect.js +16 -23
- package/select/Select.js +112 -43
- package/select/subComponent/Checkbox.js +24 -5
- package/select/subComponent/Footer.js +4 -3
- package/select/subComponent/ListBox.js +12 -5
- package/select/subComponent/Option.js +27 -7
- package/select/subComponent/OptionGroup.js +13 -3
- package/select/subComponent/Options.js +18 -5
- package/select/subComponent/SearchBox.js +34 -12
- package/select/subComponent/SelectedMultipleTags.js +21 -3
- package/select/subComponent/SelectedMultipleText.js +19 -4
- package/select/subComponent/SelectedSingle.js +7 -3
- package/styles/GlobalStyle.js +156 -45
- package/styles/mixin/backgroundColor.js +16 -8
- package/styles/mixin/borderColor.js +13 -7
- package/styles/mixin/color.js +13 -7
- package/styles/mixin/colorOnBackground.js +13 -7
- package/styles/mixin/inputPlaceholder.js +20 -3
- package/styles/mixin/media.js +5 -3
- package/styles/mixin/rounded.js +10 -6
- package/styles/mixin/scrollbar.js +13 -3
- package/styles/theme/dark.theme.js +15 -14
- package/styles/theme/light.theme.js +15 -14
- package/styles/theme/white.theme.js +15 -14
- package/table/GridTable.js +71 -33
- package/table/ImageBox.js +15 -5
- package/table/InfiniteGridTable.js +92 -46
- package/table/PermissionTable.js +32 -10
- package/table/SimpleGridTable.js +143 -0
- package/table/Table.js +198 -48
- package/table/__mock__/columns.js +1 -1
- package/table/index.js +7 -0
- package/table/subComponent/BaseTableHeadCell.js +37 -8
- package/table/subComponent/GridTableFooter.js +10 -4
- package/table/subComponent/GridTableHeadCell.js +6 -4
- package/table/subComponent/Resizer.js +19 -4
- package/table/subComponent/TableFooter.js +15 -6
- package/table/subComponent/TableFooterInfo.js +4 -3
- package/table/subComponent/TableFooterPager.js +19 -6
- package/table/subComponent/TableHeadCell.js +9 -3
- package/table/subComponent/TableSort.js +17 -7
- package/tagify/TagifyStyle.js +49 -3
- package/tagify/Tags.js +37 -21
- package/tagify/templates/getCreateButtonTemplate.js +5 -2
- package/text/Paragraph.js +50 -12
- package/timeline/Timeline.js +94 -17
- package/toast/CustomToastContainer.js +35 -3
- package/toast/MessageContainer.js +22 -4
- package/tooltip/Tooltip.js +47 -19
- package/treeView/TreeViewV2.js +1 -1
- package/treeView/TreeflexStyle.js +38 -3
- package/wizard/Wizard.js +115 -6
package/image/UploadImage.js
CHANGED
|
@@ -15,11 +15,8 @@ var _HiddenFileInput = _interopRequireDefault(require("../file/HiddenFileInput")
|
|
|
15
15
|
var _ImageFigure = _interopRequireDefault(require("../figure/ImageFigure"));
|
|
16
16
|
var _ImageFluid = _interopRequireDefault(require("./ImageFluid"));
|
|
17
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
|
19
18
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
20
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
21
19
|
const UploadImage = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
22
|
-
var _ref$current;
|
|
23
20
|
let {
|
|
24
21
|
id,
|
|
25
22
|
src,
|
|
@@ -166,37 +163,88 @@ const UploadImage = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
166
163
|
onClick: handleAvatarRemove,
|
|
167
164
|
roundedCircle: roundedCircle,
|
|
168
165
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_fa.FaTimes, {})
|
|
169
|
-
}), allowClear && src && ref && !
|
|
166
|
+
}), allowClear && src && ref && !ref.current?.files?.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(RemoveIcon, {
|
|
170
167
|
onClick: onClear,
|
|
171
168
|
roundedCircle: roundedCircle,
|
|
172
169
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_fa.FaTimes, {})
|
|
173
170
|
})]
|
|
174
171
|
});
|
|
175
172
|
});
|
|
176
|
-
const Wrapper = (0, _styledComponents.default)(_ImageFigure.default)
|
|
177
|
-
|
|
173
|
+
const Wrapper = (0, _styledComponents.default)(_ImageFigure.default)`
|
|
174
|
+
position: relative;
|
|
175
|
+
padding: var(--spacing-xs);
|
|
176
|
+
`;
|
|
177
|
+
const ButtonGroup = _styledComponents.default.div`
|
|
178
|
+
position: absolute;
|
|
179
|
+
top: -16px;
|
|
180
|
+
right: -12px;
|
|
181
|
+
|
|
182
|
+
${_ref2 => {
|
|
178
183
|
let {
|
|
179
184
|
rounded
|
|
180
185
|
} = _ref2;
|
|
181
|
-
return rounded &&
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
186
|
+
return rounded && `
|
|
187
|
+
top: 0;
|
|
188
|
+
right: 0;
|
|
189
|
+
`;
|
|
190
|
+
}}
|
|
191
|
+
`;
|
|
192
|
+
const ActionButton = _styledComponents.default.button`
|
|
193
|
+
display: inline-flex;
|
|
194
|
+
justify-content: center;
|
|
195
|
+
align-items: center;
|
|
196
|
+
cursor: pointer;
|
|
197
|
+
width: 32px;
|
|
198
|
+
height: 32px;
|
|
199
|
+
border: none;
|
|
200
|
+
`;
|
|
201
|
+
const CropButton = (0, _styledComponents.default)(ActionButton)`
|
|
202
|
+
color: var(--font-on-primary);
|
|
203
|
+
background: var(--color-primary);
|
|
204
|
+
border-radius: var(--border-radius);
|
|
205
|
+
|
|
206
|
+
${_ref3 => {
|
|
185
207
|
let {
|
|
186
208
|
roundedCircle
|
|
187
209
|
} = _ref3;
|
|
188
|
-
return roundedCircle &&
|
|
189
|
-
|
|
190
|
-
|
|
210
|
+
return roundedCircle && `
|
|
211
|
+
position: relative;
|
|
212
|
+
top: -16px;
|
|
213
|
+
`;
|
|
214
|
+
}}
|
|
215
|
+
`;
|
|
216
|
+
const ModifyButton = (0, _styledComponents.default)(ActionButton)`
|
|
217
|
+
color: var(--font-on-primary);
|
|
218
|
+
background: var(--color-primary);
|
|
219
|
+
border-radius: var(--border-radius);
|
|
220
|
+
margin-left: var(--spacing-xs);
|
|
221
|
+
|
|
222
|
+
${_ref4 => {
|
|
191
223
|
let {
|
|
192
224
|
roundedCircle
|
|
193
225
|
} = _ref4;
|
|
194
|
-
return roundedCircle &&
|
|
195
|
-
|
|
196
|
-
|
|
226
|
+
return roundedCircle && `
|
|
227
|
+
position: relative;
|
|
228
|
+
top: 4px;
|
|
229
|
+
`;
|
|
230
|
+
}}
|
|
231
|
+
`;
|
|
232
|
+
const RemoveIcon = (0, _styledComponents.default)(ActionButton)`
|
|
233
|
+
position: absolute;
|
|
234
|
+
color: var(--font-on-danger);
|
|
235
|
+
background: var(--color-danger);
|
|
236
|
+
border-radius: var(--border-radius);
|
|
237
|
+
bottom: -12px;
|
|
238
|
+
right: -12px;
|
|
239
|
+
|
|
240
|
+
${_ref5 => {
|
|
197
241
|
let {
|
|
198
242
|
roundedCircle
|
|
199
243
|
} = _ref5;
|
|
200
|
-
return roundedCircle &&
|
|
201
|
-
|
|
244
|
+
return roundedCircle && `
|
|
245
|
+
bottom: 0;
|
|
246
|
+
right: 4px;
|
|
247
|
+
`;
|
|
248
|
+
}}
|
|
249
|
+
`;
|
|
202
250
|
var _default = exports.default = UploadImage;
|
package/index.js
CHANGED
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
var _exportNames = {
|
|
7
7
|
Dropdown: true,
|
|
8
8
|
Tab: true,
|
|
9
|
+
TabV2: true,
|
|
9
10
|
VerticalTab: true
|
|
10
11
|
};
|
|
11
12
|
Object.defineProperty(exports, "Dropdown", {
|
|
@@ -20,6 +21,12 @@ Object.defineProperty(exports, "Tab", {
|
|
|
20
21
|
return _Tab.default;
|
|
21
22
|
}
|
|
22
23
|
});
|
|
24
|
+
Object.defineProperty(exports, "TabV2", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _Tab.TabV2;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
23
30
|
Object.defineProperty(exports, "VerticalTab", {
|
|
24
31
|
enumerable: true,
|
|
25
32
|
get: function () {
|
|
@@ -470,7 +477,7 @@ Object.keys(_table).forEach(function (key) {
|
|
|
470
477
|
}
|
|
471
478
|
});
|
|
472
479
|
});
|
|
473
|
-
var _Tab =
|
|
480
|
+
var _Tab = _interopRequireWildcard(require("./Tab"));
|
|
474
481
|
var _tagify = require("./tagify");
|
|
475
482
|
Object.keys(_tagify).forEach(function (key) {
|
|
476
483
|
if (key === "default" || key === "__esModule") return;
|
package/jsoneditor/JsonEditor.js
CHANGED
|
@@ -12,25 +12,131 @@ require("jsoneditor-react/es/editor.min.css");
|
|
|
12
12
|
require("brace/mode/json");
|
|
13
13
|
require("brace/theme/github");
|
|
14
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
var _templateObject;
|
|
16
15
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
18
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
21
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
22
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
23
|
-
function _objectDestructuringEmpty(t) { if (null == t) throw new TypeError("Cannot destructure " + t); }
|
|
24
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
25
16
|
const JsonEditor = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
26
|
-
let
|
|
17
|
+
let {
|
|
18
|
+
...props
|
|
19
|
+
} = _ref;
|
|
27
20
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Wrapper, {
|
|
28
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsoneditorReact.JsonEditor,
|
|
29
|
-
ref: ref
|
|
30
|
-
|
|
21
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsoneditorReact.JsonEditor, {
|
|
22
|
+
ref: ref,
|
|
23
|
+
...props,
|
|
31
24
|
ace: _brace.default
|
|
32
|
-
})
|
|
25
|
+
})
|
|
33
26
|
});
|
|
34
27
|
});
|
|
35
|
-
const Wrapper = _styledComponents.default.div
|
|
28
|
+
const Wrapper = _styledComponents.default.div`
|
|
29
|
+
.jsoneditor {
|
|
30
|
+
border: 0;
|
|
31
|
+
|
|
32
|
+
div.jsoneditor-tree {
|
|
33
|
+
background: transparent;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
div.jsoneditor td.jsoneditor-tree {
|
|
38
|
+
vertical-align: middle;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.jsoneditor-popover,
|
|
42
|
+
.jsoneditor-schema-error,
|
|
43
|
+
div.jsoneditor th,
|
|
44
|
+
div.jsoneditor td,
|
|
45
|
+
div.jsoneditor textarea,
|
|
46
|
+
div.jsoneditor select,
|
|
47
|
+
div.jsoneditor-field,
|
|
48
|
+
div.jsoneditor-value,
|
|
49
|
+
pre.jsoneditor-preview {
|
|
50
|
+
font-size: var(--font-body1);
|
|
51
|
+
color: var(--font-on-background);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
div.jsoneditor select {
|
|
55
|
+
background: var(--color-background1);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
div {
|
|
59
|
+
&.jsoneditor-readonly {
|
|
60
|
+
color: var(--font-on-background);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&.jsoneditor-value.jsoneditor-number {
|
|
64
|
+
color: var(--color-danger);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&.jsoneditor-field.jsoneditor-empty::after,
|
|
68
|
+
&.jsoneditor-value.jsoneditor-empty::after {
|
|
69
|
+
font-size: var(--font-body1);
|
|
70
|
+
color: var(--font-on-background);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&.jsoneditor-field[contenteditable='true']:focus,
|
|
74
|
+
&.jsoneditor-field[contenteditable='true']:hover,
|
|
75
|
+
&.jsoneditor-value[contenteditable='true']:focus,
|
|
76
|
+
&.jsoneditor-value[contenteditable='true']:hover,
|
|
77
|
+
&.jsoneditor-field.jsoneditor-highlight,
|
|
78
|
+
&.jsoneditor-value.jsoneditor-highlight {
|
|
79
|
+
background-color: transparent;
|
|
80
|
+
border: var(--border-width) solid var(--border-color);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&.jsoneditor-empty {
|
|
84
|
+
border-color: transparent;
|
|
85
|
+
border-style: none;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&.jsoneditor-tree button.jsoneditor-button {
|
|
89
|
+
filter: invert(100%) sepia(0%) saturate(2%) hue-rotate(78deg)
|
|
90
|
+
brightness(104%) contrast(101%);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&.jsoneditor-tree button.jsoneditor-button:focus {
|
|
94
|
+
background-color: transparent;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// ace editor
|
|
99
|
+
.ace_editor.ace-jsoneditor {
|
|
100
|
+
border-radius: 8px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.ace_gutter {
|
|
104
|
+
background: rgb(59, 57, 87) !important;
|
|
105
|
+
color: #ffffff !important;
|
|
106
|
+
z-index: 0;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.ace-jsoneditor .ace_gutter-active-line {
|
|
110
|
+
background: #00001d;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.ace_content {
|
|
114
|
+
background: rgb(76, 72, 110);
|
|
115
|
+
z-index: 0;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.ace-jsoneditor .ace_marker-layer .ace_active-line {
|
|
119
|
+
background: #00001d;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.ace-jsoneditor .ace_text-layer {
|
|
123
|
+
color: #fff;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.ace-jsoneditor .ace_variable {
|
|
127
|
+
color: #fff;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.ace-jsoneditor .ace_string {
|
|
131
|
+
color: #11d8cd;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.ace-jsoneditor .ace_cursor {
|
|
135
|
+
border-left: 2px solid #fff;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.ace_hidden-cursors .ace_cursor {
|
|
139
|
+
opacity: 0.5;
|
|
140
|
+
}
|
|
141
|
+
`;
|
|
36
142
|
var _default = exports.default = JsonEditor;
|
package/keyframe/Pulse.js
CHANGED
|
@@ -5,7 +5,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = require("styled-components");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
const Pulse = (0, _styledComponents.keyframes)`
|
|
9
|
+
0% {
|
|
10
|
+
transform: scale(0.1, 0.1);
|
|
11
|
+
opacity: 0;
|
|
12
|
+
}
|
|
13
|
+
10% {
|
|
14
|
+
opacity: 1;
|
|
15
|
+
}
|
|
16
|
+
100% {
|
|
17
|
+
transform: scale(1.2, 1.2);
|
|
18
|
+
opacity: 0;
|
|
19
|
+
}
|
|
20
|
+
`;
|
|
11
21
|
var _default = exports.default = Pulse;
|
package/keyframe/Spin.js
CHANGED
|
@@ -5,7 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = require("styled-components");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
const Spin = (0, _styledComponents.keyframes)`
|
|
9
|
+
to {
|
|
10
|
+
transform: rotate(360deg);
|
|
11
|
+
}
|
|
12
|
+
`;
|
|
11
13
|
var _default = exports.default = Spin;
|
package/layout/Aside.js
CHANGED
|
@@ -9,15 +9,40 @@ var _header = _interopRequireDefault(require("../styles/config/header.style"));
|
|
|
9
9
|
var _sidebar = _interopRequireDefault(require("../styles/config/sidebar.style"));
|
|
10
10
|
var _media = _interopRequireDefault(require("../styles/mixin/media"));
|
|
11
11
|
var _bgAside = _interopRequireDefault(require("../assets/images/bg-aside.png"));
|
|
12
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
13
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
13
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
15
14
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
const Aside = _styledComponents.default.aside`
|
|
16
|
+
width: ${_ref => {
|
|
18
17
|
let {
|
|
19
18
|
$display
|
|
20
19
|
} = _ref;
|
|
21
|
-
return $display ?
|
|
22
|
-
}
|
|
20
|
+
return $display ? `${_sidebar.default.open.width}` : `${_sidebar.default.close.width}`;
|
|
21
|
+
}};
|
|
22
|
+
|
|
23
|
+
padding-top: var(--spacing-s);
|
|
24
|
+
height: calc(100vh - ${_header.default.height} - var(--spacing));
|
|
25
|
+
background: url(${_bgAside.default}), var(--color-background2);
|
|
26
|
+
background-size: 356px 436px;
|
|
27
|
+
background-repeat: no-repeat;
|
|
28
|
+
background-position: bottom;
|
|
29
|
+
border-top-right-radius: var(--border-radius);
|
|
30
|
+
position: fixed;
|
|
31
|
+
top: calc(${_header.default.height} + var(--spacing));
|
|
32
|
+
transition: width 0.2s;
|
|
33
|
+
z-index: 60;
|
|
34
|
+
|
|
35
|
+
${_media.default.tablet`
|
|
36
|
+
height: 100%;
|
|
37
|
+
top: 0;
|
|
38
|
+
padding-top:0;
|
|
39
|
+
border-top-right-radius:0;
|
|
40
|
+
left: 0;
|
|
41
|
+
box-shadow: var(--box-shadow);
|
|
42
|
+
|
|
43
|
+
${props => props.$display === false && (0, _styledComponents.css)`
|
|
44
|
+
left: -${_sidebar.default.open.width};
|
|
45
|
+
`}
|
|
46
|
+
`};
|
|
47
|
+
`;
|
|
23
48
|
var _default = exports.default = Aside;
|
package/layout/Backdrop.js
CHANGED
|
@@ -7,13 +7,17 @@ exports.default = void 0;
|
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
8
|
var _backdrop = require("../backdrop");
|
|
9
9
|
var _media = _interopRequireDefault(require("../styles/mixin/media"));
|
|
10
|
-
var _templateObject, _templateObject2;
|
|
11
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
const Backdrop = (0, _styledComponents.default)(_backdrop.BaseBackdrop)`
|
|
12
|
+
visibility: hidden;
|
|
13
|
+
|
|
14
|
+
${_media.default.tablet`
|
|
15
|
+
visibility: ${_ref => {
|
|
14
16
|
let {
|
|
15
17
|
$display
|
|
16
18
|
} = _ref;
|
|
17
19
|
return $display === true ? 'visible' : 'hidden';
|
|
18
|
-
}
|
|
20
|
+
}};
|
|
21
|
+
`}
|
|
22
|
+
`;
|
|
19
23
|
var _default = exports.default = Backdrop;
|
package/layout/Container.js
CHANGED
|
@@ -8,16 +8,32 @@ var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
|
8
8
|
var _header = _interopRequireDefault(require("../styles/config/header.style"));
|
|
9
9
|
var _sidebar = _interopRequireDefault(require("../styles/config/sidebar.style"));
|
|
10
10
|
var _media = _interopRequireDefault(require("../styles/mixin/media"));
|
|
11
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
12
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
14
13
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
const Container = _styledComponents.default.div`
|
|
15
|
+
transition: 0.3s;
|
|
16
|
+
width: 100%;
|
|
17
|
+
padding: calc(${_header.default.height} + var(--spacing)) var(--spacing)
|
|
18
|
+
var(--spacing);
|
|
19
|
+
|
|
20
|
+
${_ref => {
|
|
17
21
|
let {
|
|
18
22
|
hasSidebar,
|
|
19
23
|
$display
|
|
20
24
|
} = _ref;
|
|
21
|
-
return hasSidebar === true && (0, _styledComponents.css)
|
|
22
|
-
|
|
25
|
+
return hasSidebar === true && (0, _styledComponents.css)`
|
|
26
|
+
width: calc(
|
|
27
|
+
100% -
|
|
28
|
+
${$display === true ? _sidebar.default.open.width : _sidebar.default.close.width}
|
|
29
|
+
);
|
|
30
|
+
margin-left: ${$display === true ? _sidebar.default.open.width : _sidebar.default.close.width};
|
|
31
|
+
|
|
32
|
+
${_media.default.tablet`
|
|
33
|
+
width: 100%;
|
|
34
|
+
margin-left: 0;
|
|
35
|
+
`}
|
|
36
|
+
`;
|
|
37
|
+
}}
|
|
38
|
+
`;
|
|
23
39
|
var _default = exports.default = Container;
|
package/layout/Footer.js
CHANGED
|
@@ -7,20 +7,39 @@ exports.default = void 0;
|
|
|
7
7
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
8
8
|
var _sidebar = _interopRequireDefault(require("../styles/config/sidebar.style"));
|
|
9
9
|
var _media = _interopRequireDefault(require("../styles/mixin/media"));
|
|
10
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
11
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
11
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
12
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
const Footer = _styledComponents.default.footer`
|
|
14
|
+
transition: 0.3s;
|
|
15
|
+
border-top: var(--border-width) solid var(--border-color);
|
|
16
|
+
color: var(--font-on-mute);
|
|
17
|
+
height: 64px;
|
|
18
|
+
line-height: 64px;
|
|
19
|
+
font-size: var(--font-body2);
|
|
20
|
+
padding: 0 var(--spacing);
|
|
21
|
+
|
|
22
|
+
${_ref => {
|
|
16
23
|
let {
|
|
17
24
|
hasSidebar
|
|
18
25
|
} = _ref;
|
|
19
|
-
return hasSidebar === true && (0, _styledComponents.css)
|
|
20
|
-
|
|
26
|
+
return hasSidebar === true && (0, _styledComponents.css)`
|
|
27
|
+
margin: 0 var(--spacing) 0 calc(var(--spacing) + ${_sidebar.default.close.width});
|
|
28
|
+
|
|
29
|
+
${_media.default.tablet`
|
|
30
|
+
margin:0 ;
|
|
31
|
+
`}
|
|
32
|
+
`;
|
|
33
|
+
}}
|
|
34
|
+
|
|
35
|
+
${_ref2 => {
|
|
21
36
|
let {
|
|
22
37
|
$display
|
|
23
38
|
} = _ref2;
|
|
24
|
-
return $display && (0, _styledComponents.css)
|
|
25
|
-
|
|
39
|
+
return $display && (0, _styledComponents.css)`
|
|
40
|
+
margin: 0 var(--spacing) 0
|
|
41
|
+
calc(var(--spacing) + ${_sidebar.default.open.width});
|
|
42
|
+
`;
|
|
43
|
+
}}
|
|
44
|
+
`;
|
|
26
45
|
var _default = exports.default = Footer;
|
package/link/LinkSpan.js
CHANGED
|
@@ -6,25 +6,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
8
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
|
-
var _templateObject;
|
|
10
|
-
const _excluded = ["children"];
|
|
11
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
13
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
16
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
17
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
18
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
19
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
20
10
|
const LinkSpan = _ref => {
|
|
21
11
|
let {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Link,
|
|
12
|
+
children,
|
|
13
|
+
...props
|
|
14
|
+
} = _ref;
|
|
15
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Link, {
|
|
16
|
+
...props,
|
|
26
17
|
children: children
|
|
27
|
-
})
|
|
18
|
+
});
|
|
28
19
|
};
|
|
29
20
|
const Link = _styledComponents.default.span.attrs(props => {
|
|
30
21
|
return {
|
|
@@ -32,20 +23,47 @@ const Link = _styledComponents.default.span.attrs(props => {
|
|
|
32
23
|
color: props.light ? 'var(--font-on-background)' : 'rgba(255, 255, 255, 0.5)',
|
|
33
24
|
borderColor: props.light ? 'var(--border-color)' : '#3e5fff'
|
|
34
25
|
};
|
|
35
|
-
})
|
|
26
|
+
})`
|
|
27
|
+
font-size: ${_ref2 => {
|
|
36
28
|
let {
|
|
37
29
|
fontSize
|
|
38
30
|
} = _ref2;
|
|
39
31
|
return fontSize;
|
|
40
|
-
}
|
|
32
|
+
}};
|
|
33
|
+
line-height: 1.5;
|
|
34
|
+
font-weight: 500;
|
|
35
|
+
color: ${_ref3 => {
|
|
41
36
|
let {
|
|
42
37
|
color
|
|
43
38
|
} = _ref3;
|
|
44
39
|
return color;
|
|
45
|
-
}
|
|
40
|
+
}};
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
position: relative;
|
|
43
|
+
display: inline-block;
|
|
44
|
+
|
|
45
|
+
&:after {
|
|
46
|
+
display: block;
|
|
47
|
+
content: '';
|
|
48
|
+
position: absolute;
|
|
49
|
+
bottom: 0;
|
|
50
|
+
top: 1rem;
|
|
51
|
+
left: 0;
|
|
52
|
+
width: 0%;
|
|
53
|
+
transition: width 0.3s ease;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&:hover {
|
|
57
|
+
&:after {
|
|
58
|
+
width: 100%;
|
|
59
|
+
border-bottom: 1px solid ${_ref4 => {
|
|
46
60
|
let {
|
|
47
61
|
borderColor
|
|
48
62
|
} = _ref4;
|
|
49
63
|
return borderColor;
|
|
50
|
-
}
|
|
64
|
+
}};
|
|
65
|
+
opacity: 0.75;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
`;
|
|
51
69
|
var _default = exports.default = LinkSpan;
|
package/map/GoogleMap.js
CHANGED
|
@@ -16,11 +16,6 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
16
16
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
17
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
18
18
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
19
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
22
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
23
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
24
19
|
const GoogleMap = _ref => {
|
|
25
20
|
let {
|
|
26
21
|
apiKey,
|
|
@@ -84,10 +79,11 @@ const GoogleMap = _ref => {
|
|
|
84
79
|
lng: longitude
|
|
85
80
|
});
|
|
86
81
|
}
|
|
87
|
-
validLocations.push(
|
|
82
|
+
validLocations.push({
|
|
83
|
+
...location,
|
|
88
84
|
latitude,
|
|
89
85
|
longitude
|
|
90
|
-
})
|
|
86
|
+
});
|
|
91
87
|
});
|
|
92
88
|
|
|
93
89
|
// pass all checking
|
|
@@ -11,9 +11,7 @@ var _GoogleMapContainer = _interopRequireDefault(require("./subComponent/GoogleM
|
|
|
11
11
|
var _Searchbox = _interopRequireDefault(require("../form/Searchbox"));
|
|
12
12
|
var _map_icon = _interopRequireDefault(require("../assets/icons/map_icon4.png"));
|
|
13
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
-
var _templateObject;
|
|
15
14
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
17
15
|
const GoogleReverseGeolocation = _ref => {
|
|
18
16
|
let {
|
|
19
17
|
apiKey,
|
|
@@ -193,5 +191,10 @@ const Map = _ref2 => {
|
|
|
193
191
|
})]
|
|
194
192
|
});
|
|
195
193
|
};
|
|
196
|
-
const MapSearchBoxControl = _styledComponents.default.div
|
|
194
|
+
const MapSearchBoxControl = _styledComponents.default.div`
|
|
195
|
+
position: absolute;
|
|
196
|
+
top: var(--spacing-s);
|
|
197
|
+
right: var(--spacing-s);
|
|
198
|
+
z-index: 1;
|
|
199
|
+
`;
|
|
197
200
|
var _default = exports.default = GoogleReverseGeolocation;
|
package/map/LeafletMap.js
CHANGED
|
@@ -59,7 +59,7 @@ const LeafletMap = _ref => {
|
|
|
59
59
|
}
|
|
60
60
|
const tooltips = event.target._panes.popupPane.getElementsByClassName('leaflet-draw-tooltip');
|
|
61
61
|
for (let index = 0; index < tooltips.length; index += 1) {
|
|
62
|
-
tooltips[index].textContent =
|
|
62
|
+
tooltips[index].textContent = `Radius: ${parseInt(radius, 10)}`;
|
|
63
63
|
}
|
|
64
64
|
if (eventHandlers.edit) {
|
|
65
65
|
eventHandlers.edit(radius);
|
|
@@ -154,7 +154,7 @@ const LeafletMap = _ref => {
|
|
|
154
154
|
maxClusterRadius: 120,
|
|
155
155
|
iconCreateFunction: cluster => {
|
|
156
156
|
return _leaflet.default.divIcon({
|
|
157
|
-
html:
|
|
157
|
+
html: `<div><span>${cluster.getChildCount()}</span></div>`,
|
|
158
158
|
className: 'marker-cluster',
|
|
159
159
|
iconSize: _leaflet.default.point(40, 40)
|
|
160
160
|
});
|