@cashub/ui 0.48.1 → 0.48.3
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 +26 -38
- package/Tab/TabPanel.js +20 -13
- package/Tab/TabTab.js +24 -36
- package/Tab/index.js +6 -3
- package/Tab/subComponent/TabListV2.js +18 -11
- package/Tab/subComponent/TabPanelV2.js +20 -16
- package/Tab/subComponent/TabTabV2.js +21 -33
- package/VerticalTab/TabList.js +18 -13
- package/VerticalTab/TabPanel.js +20 -16
- package/VerticalTab/TabTab.js +21 -40
- package/VerticalTab/VerticalTab.js +4 -8
- package/alert/Alert.js +5 -12
- package/animate/Collapse.js +7 -5
- package/animate/Loader.js +7 -18
- package/animate/PulseRing.js +5 -18
- package/animate/Spinner.js +3 -8
- package/backdrop/BaseBackdrop.js +3 -9
- package/backdrop/LoadingBackdrop.js +3 -7
- package/backdrop/ModalBackdrop.js +3 -5
- package/badge/Badge.js +3 -15
- package/badge/BadgeDot.js +3 -8
- package/badge/BadgeFill.js +6 -24
- package/badge/BadgeWithText.js +3 -13
- package/billing/BarChart.js +1 -1
- package/breadcrumb/Breadcrumb.js +3 -42
- package/button/Button.js +20 -88
- package/button/ButtonGroup.js +9 -33
- package/button/IconButton.js +10 -37
- package/button/ScrollToTopButton.js +4 -12
- package/callout/Callout.js +8 -37
- package/chart/BarChart.js +17 -10
- package/chart/DoughnutChart.js +20 -34
- package/chart/LineChart.js +34 -11
- package/chart/SingleBarChart.js +5 -22
- package/chart/utils/centerTextPlugin.js +2 -2
- package/chart/utils/customTooltip.js +14 -8
- package/chart/utils/htmlLegendPlugin.js +1 -1
- package/chart/utils/yAxisTopTitlePlugin.js +49 -0
- package/container/FlexContainer.js +7 -15
- package/cropper/Cropper.js +2 -1
- package/datetimePicker/DatePicker.js +26 -80
- package/datetimePicker/DatePickerV2.js +36 -95
- package/datetimePicker/DatetimePicker.js +11 -174
- package/datetimePicker/DatetimePickerV2.js +33 -87
- package/datetimePicker/DatetimePickerV3.js +11 -174
- package/datetimePicker/TimeInput.js +10 -35
- package/datetimePicker/TimePicker.js +22 -77
- package/datetimePicker/TimePickerStyle.js +3 -53
- package/datetimePicker/TimePickerV2.js +21 -54
- package/datetimePicker/accordion/Month.js +16 -93
- package/datetimePicker/accordion/Year.js +18 -96
- package/datetimePicker/hooks/useChangeNumber.js +6 -3
- package/datetimePicker/hooks/useDecrease.js +6 -3
- package/datetimePicker/hooks/useIncrease.js +6 -3
- package/datetimePicker/subComponent/Accordion.js +20 -101
- package/descriptionList/DescriptionDetail.js +4 -15
- package/descriptionList/DescriptionList.js +4 -12
- package/descriptionList/DescriptionTerm.js +3 -5
- package/divider/Divider.js +6 -15
- package/dropdown/DropdownButtonOption.js +6 -22
- package/dropdown/DropdownContent.js +15 -29
- package/dropdown/DropdownDivOption.js +3 -17
- package/dropdown/DropdownLinkOption.js +3 -14
- package/dropdown/DropdownToggle.js +15 -7
- package/dropzone/FileDropzone.js +22 -121
- package/dropzone/ImageDropzone.js +14 -83
- package/dropzone/subComponent/Message.js +4 -11
- package/figure/IconFigure.js +7 -16
- package/figure/ImageFigure.js +6 -19
- package/file/HiddenFileInput.js +3 -3
- package/form/Checkbox.js +13 -74
- package/form/Fieldset.js +3 -9
- package/form/FormItem.js +5 -10
- package/form/Input.js +7 -40
- package/form/Label.js +10 -34
- package/form/MutedText.js +4 -8
- package/form/PasswordInput.js +13 -20
- package/form/RadioButton.js +8 -55
- package/form/SearchSelect.js +12 -64
- package/form/Searchbox.js +19 -45
- package/form/Slider.js +10 -28
- package/form/SwitchButton.js +14 -48
- package/form/Textarea.js +3 -30
- package/form/TreeView.js +6 -13
- package/grid/Column.js +10 -23
- package/grid/Grid.js +6 -14
- package/heading/Heading1.js +4 -8
- package/heading/Heading2.js +5 -11
- package/heading/Heading3.js +8 -20
- package/iconbox/ApplicationIconBox.js +12 -48
- package/iconbox/IconBox.js +7 -31
- package/iconbox/IconBoxV2.js +8 -33
- package/iconbox/subComponent/IconBoxFigure.js +9 -17
- package/iconbox/subComponent/IconBoxImage.js +8 -21
- package/image/ImageFluid.js +3 -7
- package/image/UploadImage.js +18 -66
- package/jsoneditor/JsonEditor.js +15 -121
- package/keyframe/Pulse.js +3 -13
- package/keyframe/Spin.js +3 -5
- package/layout/Aside.js +5 -30
- package/layout/Backdrop.js +4 -8
- package/layout/Container.js +5 -21
- package/layout/Footer.js +7 -26
- package/link/LinkSpan.js +19 -37
- package/map/GoogleMap.js +7 -3
- package/map/GoogleReverseGeolocation.js +3 -6
- package/map/LeafletMap.js +2 -2
- package/map/subComponent/GoogleMapContainer.js +4 -16
- package/map/subComponent/GoogleMapPopup.js +10 -7
- package/map/subComponent/GoogleMapWrapper.js +15 -8
- package/map/subComponent/LeafletDrawControl.js +7 -9
- package/map/subComponent/LeafletMapContainer.js +4 -159
- package/modal/StateModal.js +28 -49
- package/modal/TitleModal.js +29 -70
- package/package.json +1 -1
- package/page/Disclaimer.js +3 -119
- package/paginate/Paginate.js +12 -54
- package/popover/Popover.js +25 -30
- package/qrcode/QRCode.js +6 -20
- package/qrcode/QRCodeContainter.js +4 -12
- package/ribbon/Ribbon.js +4 -29
- package/section/Section.js +20 -68
- package/section/SectionBody.js +8 -29
- package/section/SectionHeader.js +11 -36
- package/section/SectionToolbar.js +3 -9
- package/section/SectionToolbarItem.js +3 -8
- package/select/InputSelect.js +23 -16
- package/select/Select.js +43 -112
- package/select/subComponent/Checkbox.js +5 -24
- package/select/subComponent/Footer.js +3 -4
- package/select/subComponent/ListBox.js +5 -12
- package/select/subComponent/Option.js +7 -27
- package/select/subComponent/OptionGroup.js +3 -13
- package/select/subComponent/Options.js +5 -18
- package/select/subComponent/SearchBox.js +12 -34
- package/select/subComponent/SelectedMultipleTags.js +3 -21
- package/select/subComponent/SelectedMultipleText.js +4 -20
- package/select/subComponent/SelectedSingle.js +3 -7
- package/styles/GlobalStyle.js +45 -156
- package/styles/mixin/backgroundColor.js +8 -16
- package/styles/mixin/borderColor.js +7 -13
- package/styles/mixin/color.js +7 -13
- package/styles/mixin/colorOnBackground.js +7 -13
- package/styles/mixin/inputPlaceholder.js +3 -20
- package/styles/mixin/media.js +3 -5
- package/styles/mixin/rounded.js +6 -10
- package/styles/mixin/scrollbar.js +3 -13
- package/styles/theme/dark.theme.js +14 -15
- package/styles/theme/light.theme.js +14 -15
- package/styles/theme/white.theme.js +14 -15
- package/table/GridTable.js +33 -71
- package/table/ImageBox.js +5 -15
- package/table/InfiniteGridTable.js +46 -92
- package/table/PermissionTable.js +10 -32
- package/table/SimpleGridTable.js +17 -52
- package/table/Table.js +48 -198
- package/table/__mock__/columns.js +1 -1
- package/table/subComponent/BaseTableHeadCell.js +8 -37
- package/table/subComponent/GridTableFooter.js +4 -10
- package/table/subComponent/GridTableHeadCell.js +4 -6
- package/table/subComponent/Resizer.js +4 -19
- package/table/subComponent/TableFooter.js +6 -15
- package/table/subComponent/TableFooterInfo.js +3 -4
- package/table/subComponent/TableFooterPager.js +6 -19
- package/table/subComponent/TableHeadCell.js +3 -9
- package/table/subComponent/TableSort.js +7 -17
- package/tagify/TagifyStyle.js +3 -49
- package/tagify/Tags.js +21 -37
- package/tagify/templates/getCreateButtonTemplate.js +2 -5
- package/text/Paragraph.js +12 -50
- package/timeline/Timeline.js +17 -94
- package/toast/CustomToastContainer.js +3 -35
- package/toast/MessageContainer.js +4 -22
- package/tooltip/Tooltip.js +19 -47
- package/treeView/TreeViewV2.js +1 -1
- package/treeView/TreeflexStyle.js +3 -38
- package/wizard/Wizard.js +6 -115
package/image/UploadImage.js
CHANGED
|
@@ -15,8 +15,11 @@ 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;
|
|
18
19
|
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) } })); }
|
|
19
21
|
const UploadImage = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
22
|
+
var _ref$current;
|
|
20
23
|
let {
|
|
21
24
|
id,
|
|
22
25
|
src,
|
|
@@ -163,88 +166,37 @@ const UploadImage = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
163
166
|
onClick: handleAvatarRemove,
|
|
164
167
|
roundedCircle: roundedCircle,
|
|
165
168
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_fa.FaTimes, {})
|
|
166
|
-
}), allowClear && src && ref && !ref.current
|
|
169
|
+
}), allowClear && src && ref && !((_ref$current = ref.current) !== null && _ref$current !== void 0 && (_ref$current = _ref$current.files) !== null && _ref$current !== void 0 && _ref$current.length) > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(RemoveIcon, {
|
|
167
170
|
onClick: onClear,
|
|
168
171
|
roundedCircle: roundedCircle,
|
|
169
172
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_fa.FaTimes, {})
|
|
170
173
|
})]
|
|
171
174
|
});
|
|
172
175
|
});
|
|
173
|
-
const Wrapper = (0, _styledComponents.default)(_ImageFigure.default)
|
|
174
|
-
position:
|
|
175
|
-
padding: var(--spacing-xs);
|
|
176
|
-
`;
|
|
177
|
-
const ButtonGroup = _styledComponents.default.div`
|
|
178
|
-
position: absolute;
|
|
179
|
-
top: -16px;
|
|
180
|
-
right: -12px;
|
|
181
|
-
|
|
182
|
-
${_ref2 => {
|
|
176
|
+
const Wrapper = (0, _styledComponents.default)(_ImageFigure.default)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n padding: var(--spacing-xs);\n"])));
|
|
177
|
+
const ButtonGroup = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: absolute;\n top: -16px;\n right: -12px;\n\n ", "\n"])), _ref2 => {
|
|
183
178
|
let {
|
|
184
179
|
rounded
|
|
185
180
|
} = _ref2;
|
|
186
|
-
return rounded &&
|
|
187
|
-
|
|
188
|
-
|
|
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 => {
|
|
181
|
+
return rounded && "\n top: 0;\n right: 0;\n ";
|
|
182
|
+
});
|
|
183
|
+
const ActionButton = _styledComponents.default.button(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: inline-flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n width: 32px;\n height: 32px;\n border: none;\n"])));
|
|
184
|
+
const CropButton = (0, _styledComponents.default)(ActionButton)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n color: var(--font-on-primary);\n background: var(--color-primary);\n border-radius: var(--border-radius);\n\n ", "\n"])), _ref3 => {
|
|
207
185
|
let {
|
|
208
186
|
roundedCircle
|
|
209
187
|
} = _ref3;
|
|
210
|
-
return roundedCircle &&
|
|
211
|
-
|
|
212
|
-
|
|
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 => {
|
|
188
|
+
return roundedCircle && "\n position: relative;\n top: -16px;\n ";
|
|
189
|
+
});
|
|
190
|
+
const ModifyButton = (0, _styledComponents.default)(ActionButton)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n color: var(--font-on-primary);\n background: var(--color-primary);\n border-radius: var(--border-radius);\n margin-left: var(--spacing-xs);\n\n ", "\n"])), _ref4 => {
|
|
223
191
|
let {
|
|
224
192
|
roundedCircle
|
|
225
193
|
} = _ref4;
|
|
226
|
-
return roundedCircle &&
|
|
227
|
-
|
|
228
|
-
|
|
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 => {
|
|
194
|
+
return roundedCircle && "\n position: relative;\n top: 4px;\n ";
|
|
195
|
+
});
|
|
196
|
+
const RemoveIcon = (0, _styledComponents.default)(ActionButton)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n position: absolute;\n color: var(--font-on-danger);\n background: var(--color-danger);\n border-radius: var(--border-radius);\n bottom: -12px;\n right: -12px;\n\n ", "\n"])), _ref5 => {
|
|
241
197
|
let {
|
|
242
198
|
roundedCircle
|
|
243
199
|
} = _ref5;
|
|
244
|
-
return roundedCircle &&
|
|
245
|
-
|
|
246
|
-
right: 4px;
|
|
247
|
-
`;
|
|
248
|
-
}}
|
|
249
|
-
`;
|
|
200
|
+
return roundedCircle && "\n bottom: 0;\n right: 4px;\n ";
|
|
201
|
+
});
|
|
250
202
|
var _default = exports.default = UploadImage;
|
package/jsoneditor/JsonEditor.js
CHANGED
|
@@ -12,131 +12,25 @@ 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;
|
|
15
16
|
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); }
|
|
16
25
|
const JsonEditor = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
17
|
-
let {
|
|
18
|
-
...props
|
|
19
|
-
} = _ref;
|
|
26
|
+
let props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
20
27
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Wrapper, {
|
|
21
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsoneditorReact.JsonEditor, {
|
|
22
|
-
ref: ref
|
|
23
|
-
|
|
28
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsoneditorReact.JsonEditor, _objectSpread(_objectSpread({
|
|
29
|
+
ref: ref
|
|
30
|
+
}, props), {}, {
|
|
24
31
|
ace: _brace.default
|
|
25
|
-
})
|
|
32
|
+
}))
|
|
26
33
|
});
|
|
27
34
|
});
|
|
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
|
-
`;
|
|
35
|
+
const Wrapper = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .jsoneditor {\n border: 0;\n\n div.jsoneditor-tree {\n background: transparent;\n }\n }\n\n div.jsoneditor td.jsoneditor-tree {\n vertical-align: middle;\n }\n\n .jsoneditor-popover,\n .jsoneditor-schema-error,\n div.jsoneditor th,\n div.jsoneditor td,\n div.jsoneditor textarea,\n div.jsoneditor select,\n div.jsoneditor-field,\n div.jsoneditor-value,\n pre.jsoneditor-preview {\n font-size: var(--font-body1);\n color: var(--font-on-background);\n }\n\n div.jsoneditor select {\n background: var(--color-background1);\n }\n\n div {\n &.jsoneditor-readonly {\n color: var(--font-on-background);\n }\n\n &.jsoneditor-value.jsoneditor-number {\n color: var(--color-danger);\n }\n\n &.jsoneditor-field.jsoneditor-empty::after,\n &.jsoneditor-value.jsoneditor-empty::after {\n font-size: var(--font-body1);\n color: var(--font-on-background);\n }\n\n &.jsoneditor-field[contenteditable='true']:focus,\n &.jsoneditor-field[contenteditable='true']:hover,\n &.jsoneditor-value[contenteditable='true']:focus,\n &.jsoneditor-value[contenteditable='true']:hover,\n &.jsoneditor-field.jsoneditor-highlight,\n &.jsoneditor-value.jsoneditor-highlight {\n background-color: transparent;\n border: var(--border-width) solid var(--border-color);\n }\n\n &.jsoneditor-empty {\n border-color: transparent;\n border-style: none;\n }\n\n &.jsoneditor-tree button.jsoneditor-button {\n filter: invert(100%) sepia(0%) saturate(2%) hue-rotate(78deg)\n brightness(104%) contrast(101%);\n }\n\n &.jsoneditor-tree button.jsoneditor-button:focus {\n background-color: transparent;\n }\n }\n\n // ace editor\n .ace_editor.ace-jsoneditor {\n border-radius: 8px;\n }\n\n .ace_gutter {\n background: rgb(59, 57, 87) !important;\n color: #ffffff !important;\n z-index: 0;\n }\n\n .ace-jsoneditor .ace_gutter-active-line {\n background: #00001d;\n }\n\n .ace_content {\n background: rgb(76, 72, 110);\n z-index: 0;\n }\n\n .ace-jsoneditor .ace_marker-layer .ace_active-line {\n background: #00001d;\n }\n\n .ace-jsoneditor .ace_text-layer {\n color: #fff;\n }\n\n .ace-jsoneditor .ace_variable {\n color: #fff;\n }\n\n .ace-jsoneditor .ace_string {\n color: #11d8cd;\n }\n\n .ace-jsoneditor .ace_cursor {\n border-left: 2px solid #fff;\n }\n\n .ace_hidden-cursors .ace_cursor {\n opacity: 0.5;\n }\n"])));
|
|
142
36
|
var _default = exports.default = JsonEditor;
|
package/keyframe/Pulse.js
CHANGED
|
@@ -5,17 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = require("styled-components");
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
`;
|
|
8
|
+
var _templateObject;
|
|
9
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
10
|
+
const Pulse = (0, _styledComponents.keyframes)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% {\n transform: scale(0.1, 0.1);\n opacity: 0;\n }\n 10% {\n opacity: 1;\n }\n 100% {\n transform: scale(1.2, 1.2);\n opacity: 0;\n }\n"])));
|
|
21
11
|
var _default = exports.default = Pulse;
|
package/keyframe/Spin.js
CHANGED
|
@@ -5,9 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = require("styled-components");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
transform: rotate(360deg);
|
|
11
|
-
}
|
|
12
|
-
`;
|
|
8
|
+
var _templateObject;
|
|
9
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
10
|
+
const Spin = (0, _styledComponents.keyframes)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n to {\n transform: rotate(360deg);\n }\n"])));
|
|
13
11
|
var _default = exports.default = Spin;
|
package/layout/Aside.js
CHANGED
|
@@ -9,40 +9,15 @@ 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;
|
|
12
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
14
|
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
15
|
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
|
-
width:
|
|
16
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
17
|
+
const Aside = _styledComponents.default.aside(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: ", ";\n\n padding-top: var(--spacing-s);\n height: calc(100vh - ", " - var(--spacing));\n background: url(", "), var(--color-background2);\n background-size: 356px 436px;\n background-repeat: no-repeat;\n background-position: bottom;\n border-top-right-radius: var(--border-radius);\n position: fixed;\n top: calc(", " + var(--spacing));\n transition: width 0.2s;\n z-index: 60;\n\n ", ";\n"])), _ref => {
|
|
17
18
|
let {
|
|
18
19
|
$display
|
|
19
20
|
} = _ref;
|
|
20
|
-
return $display ?
|
|
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
|
-
`;
|
|
21
|
+
return $display ? "".concat(_sidebar.default.open.width) : "".concat(_sidebar.default.close.width);
|
|
22
|
+
}, _header.default.height, _bgAside.default, _header.default.height, _media.default.tablet(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n height: 100%;\n top: 0;\n padding-top:0;\n border-top-right-radius:0;\n left: 0;\n box-shadow: var(--box-shadow);\n \n ", "\n "])), props => props.$display === false && (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n left: -", ";\n "])), _sidebar.default.open.width)));
|
|
48
23
|
var _default = exports.default = Aside;
|
package/layout/Backdrop.js
CHANGED
|
@@ -7,17 +7,13 @@ 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;
|
|
10
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
-
|
|
12
|
-
visibility: hidden
|
|
13
|
-
|
|
14
|
-
${_media.default.tablet`
|
|
15
|
-
visibility: ${_ref => {
|
|
12
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
13
|
+
const Backdrop = (0, _styledComponents.default)(_backdrop.BaseBackdrop)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n visibility: hidden;\n\n ", "\n"])), _media.default.tablet(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n visibility: ", ";\n "])), _ref => {
|
|
16
14
|
let {
|
|
17
15
|
$display
|
|
18
16
|
} = _ref;
|
|
19
17
|
return $display === true ? 'visible' : 'hidden';
|
|
20
|
-
}
|
|
21
|
-
`}
|
|
22
|
-
`;
|
|
18
|
+
}));
|
|
23
19
|
var _default = exports.default = Backdrop;
|
package/layout/Container.js
CHANGED
|
@@ -8,32 +8,16 @@ 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;
|
|
11
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
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); }
|
|
13
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; }
|
|
14
|
-
|
|
15
|
-
transition: 0.3s
|
|
16
|
-
width: 100%;
|
|
17
|
-
padding: calc(${_header.default.height} + var(--spacing)) var(--spacing)
|
|
18
|
-
var(--spacing);
|
|
19
|
-
|
|
20
|
-
${_ref => {
|
|
15
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
16
|
+
const Container = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n transition: 0.3s;\n width: 100%;\n padding: calc(", " + var(--spacing)) var(--spacing)\n var(--spacing);\n\n ", "\n"])), _header.default.height, _ref => {
|
|
21
17
|
let {
|
|
22
18
|
hasSidebar,
|
|
23
19
|
$display
|
|
24
20
|
} = _ref;
|
|
25
|
-
return hasSidebar === true && (0, _styledComponents.css)
|
|
26
|
-
|
|
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
|
-
`;
|
|
21
|
+
return hasSidebar === true && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: calc(\n 100% -\n ", "\n );\n margin-left: ", ";\n\n ", "\n "])), $display === true ? _sidebar.default.open.width : _sidebar.default.close.width, $display === true ? _sidebar.default.open.width : _sidebar.default.close.width, _media.default.tablet(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: 100%;\n margin-left: 0;\n "]))));
|
|
22
|
+
});
|
|
39
23
|
var _default = exports.default = Container;
|
package/layout/Footer.js
CHANGED
|
@@ -7,39 +7,20 @@ 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;
|
|
10
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
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); }
|
|
12
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; }
|
|
13
|
-
|
|
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 => {
|
|
14
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
15
|
+
const Footer = _styledComponents.default.footer(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n transition: 0.3s;\n border-top: var(--border-width) solid var(--border-color);\n color: var(--font-on-mute);\n height: 64px;\n line-height: 64px;\n font-size: var(--font-body2);\n padding: 0 var(--spacing);\n\n ", "\n\n ", "\n"])), _ref => {
|
|
23
16
|
let {
|
|
24
17
|
hasSidebar
|
|
25
18
|
} = _ref;
|
|
26
|
-
return hasSidebar === true && (0, _styledComponents.css)
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
${_media.default.tablet`
|
|
30
|
-
margin:0 ;
|
|
31
|
-
`}
|
|
32
|
-
`;
|
|
33
|
-
}}
|
|
34
|
-
|
|
35
|
-
${_ref2 => {
|
|
19
|
+
return hasSidebar === true && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin: 0 var(--spacing) 0 calc(var(--spacing) + ", ");\n\n ", "\n "])), _sidebar.default.close.width, _media.default.tablet(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin:0 ;\n "]))));
|
|
20
|
+
}, _ref2 => {
|
|
36
21
|
let {
|
|
37
22
|
$display
|
|
38
23
|
} = _ref2;
|
|
39
|
-
return $display && (0, _styledComponents.css)
|
|
40
|
-
|
|
41
|
-
calc(var(--spacing) + ${_sidebar.default.open.width});
|
|
42
|
-
`;
|
|
43
|
-
}}
|
|
44
|
-
`;
|
|
24
|
+
return $display && (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin: 0 var(--spacing) 0\n calc(var(--spacing) + ", ");\n "])), _sidebar.default.open.width);
|
|
25
|
+
});
|
|
45
26
|
var _default = exports.default = Footer;
|
package/link/LinkSpan.js
CHANGED
|
@@ -6,16 +6,25 @@ 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"];
|
|
9
11
|
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; }
|
|
10
20
|
const LinkSpan = _ref => {
|
|
11
21
|
let {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Link, {
|
|
16
|
-
...props,
|
|
22
|
+
children
|
|
23
|
+
} = _ref,
|
|
24
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
25
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Link, _objectSpread(_objectSpread({}, props), {}, {
|
|
17
26
|
children: children
|
|
18
|
-
});
|
|
27
|
+
}));
|
|
19
28
|
};
|
|
20
29
|
const Link = _styledComponents.default.span.attrs(props => {
|
|
21
30
|
return {
|
|
@@ -23,47 +32,20 @@ const Link = _styledComponents.default.span.attrs(props => {
|
|
|
23
32
|
color: props.light ? 'var(--font-on-background)' : 'rgba(255, 255, 255, 0.5)',
|
|
24
33
|
borderColor: props.light ? 'var(--border-color)' : '#3e5fff'
|
|
25
34
|
};
|
|
26
|
-
})
|
|
27
|
-
font-size: ${_ref2 => {
|
|
35
|
+
})(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n font-size: ", ";\n line-height: 1.5;\n font-weight: 500;\n color: ", ";\n cursor: pointer;\n position: relative;\n display: inline-block;\n\n &:after {\n display: block;\n content: '';\n position: absolute;\n bottom: 0;\n top: 1rem;\n left: 0;\n width: 0%;\n transition: width 0.3s ease;\n }\n\n &:hover {\n &:after {\n width: 100%;\n border-bottom: 1px solid ", ";\n opacity: 0.75;\n }\n }\n"])), _ref2 => {
|
|
28
36
|
let {
|
|
29
37
|
fontSize
|
|
30
38
|
} = _ref2;
|
|
31
39
|
return fontSize;
|
|
32
|
-
}
|
|
33
|
-
line-height: 1.5;
|
|
34
|
-
font-weight: 500;
|
|
35
|
-
color: ${_ref3 => {
|
|
40
|
+
}, _ref3 => {
|
|
36
41
|
let {
|
|
37
42
|
color
|
|
38
43
|
} = _ref3;
|
|
39
44
|
return color;
|
|
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 => {
|
|
45
|
+
}, _ref4 => {
|
|
60
46
|
let {
|
|
61
47
|
borderColor
|
|
62
48
|
} = _ref4;
|
|
63
49
|
return borderColor;
|
|
64
|
-
}
|
|
65
|
-
opacity: 0.75;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
`;
|
|
50
|
+
});
|
|
69
51
|
var _default = exports.default = LinkSpan;
|
package/map/GoogleMap.js
CHANGED
|
@@ -16,6 +16,11 @@ 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); }
|
|
19
24
|
const GoogleMap = _ref => {
|
|
20
25
|
let {
|
|
21
26
|
apiKey,
|
|
@@ -79,11 +84,10 @@ const GoogleMap = _ref => {
|
|
|
79
84
|
lng: longitude
|
|
80
85
|
});
|
|
81
86
|
}
|
|
82
|
-
validLocations.push({
|
|
83
|
-
...location,
|
|
87
|
+
validLocations.push(_objectSpread(_objectSpread({}, location), {}, {
|
|
84
88
|
latitude,
|
|
85
89
|
longitude
|
|
86
|
-
});
|
|
90
|
+
}));
|
|
87
91
|
});
|
|
88
92
|
|
|
89
93
|
// pass all checking
|
|
@@ -11,7 +11,9 @@ 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;
|
|
14
15
|
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) } })); }
|
|
15
17
|
const GoogleReverseGeolocation = _ref => {
|
|
16
18
|
let {
|
|
17
19
|
apiKey,
|
|
@@ -191,10 +193,5 @@ const Map = _ref2 => {
|
|
|
191
193
|
})]
|
|
192
194
|
});
|
|
193
195
|
};
|
|
194
|
-
const MapSearchBoxControl = _styledComponents.default.div
|
|
195
|
-
position: absolute;
|
|
196
|
-
top: var(--spacing-s);
|
|
197
|
-
right: var(--spacing-s);
|
|
198
|
-
z-index: 1;
|
|
199
|
-
`;
|
|
196
|
+
const MapSearchBoxControl = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n top: var(--spacing-s);\n right: var(--spacing-s);\n z-index: 1;\n"])));
|
|
200
197
|
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: ".concat(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>".concat(cluster.getChildCount(), "</span></div>"),
|
|
158
158
|
className: 'marker-cluster',
|
|
159
159
|
iconSize: _leaflet.default.point(40, 40)
|
|
160
160
|
});
|
|
@@ -5,25 +5,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
+
var _templateObject;
|
|
8
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
-
|
|
10
|
-
height:
|
|
10
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
11
|
+
const GoogleMapContainer = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n height: ", "px;\n border: 1px solid transparent;\n border-radius: var(--border-radius);\n\n &:focus {\n border-color: var(--border-color);\n box-shadow: var(--box-shadow);\n }\n\n .google-popup-content-wrapper {\n position: absolute;\n transform: translate(-50%, -100%);\n }\n"])), _ref => {
|
|
11
12
|
let {
|
|
12
13
|
height
|
|
13
14
|
} = _ref;
|
|
14
15
|
return height;
|
|
15
|
-
}
|
|
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
|
-
`;
|
|
16
|
+
});
|
|
29
17
|
var _default = exports.default = GoogleMapContainer;
|