@cashub/ui 0.48.6 → 0.48.7
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 +27 -22
- package/chart/DoughnutChart.js +20 -34
- package/chart/LineChart.js +21 -13
- package/chart/SingleBarChart.js +5 -22
- package/chart/utils/centerTextPlugin.js +2 -2
- package/chart/utils/customTooltip.js +8 -8
- package/chart/utils/htmlLegendPlugin.js +1 -1
- package/chart/utils/yAxisTopTitlePlugin.js +1 -1
- 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
|
@@ -4,6 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
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; }
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
9
|
+
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); }
|
|
7
10
|
// custom popup
|
|
8
11
|
// https://developers.google.com/maps/documentation/javascript/examples/overlay-popup
|
|
9
12
|
class GoogleMapPopup {
|
|
@@ -11,10 +14,6 @@ class GoogleMapPopup {
|
|
|
11
14
|
// wrap class to prevent cannot reference maps during runtime
|
|
12
15
|
// because google map library will load after render map only
|
|
13
16
|
class MapPopup extends window.google.maps.OverlayView {
|
|
14
|
-
position;
|
|
15
|
-
containerDiv;
|
|
16
|
-
offset = 16;
|
|
17
|
-
justRendered = false;
|
|
18
17
|
constructor() {
|
|
19
18
|
let {
|
|
20
19
|
maxWidth,
|
|
@@ -23,10 +22,14 @@ class GoogleMapPopup {
|
|
|
23
22
|
super();
|
|
24
23
|
|
|
25
24
|
// This zero-height div is positioned at the bottom of the tip.
|
|
25
|
+
_defineProperty(this, "position", void 0);
|
|
26
|
+
_defineProperty(this, "containerDiv", void 0);
|
|
27
|
+
_defineProperty(this, "offset", 16);
|
|
28
|
+
_defineProperty(this, "justRendered", false);
|
|
26
29
|
this.containerDiv = document.createElement('div');
|
|
27
30
|
this.containerDiv.classList.add('google-popup-content-wrapper');
|
|
28
31
|
if (maxWidth) {
|
|
29
|
-
this.containerDiv.style.maxWidth =
|
|
32
|
+
this.containerDiv.style.maxWidth = "".concat(maxWidth, "px");
|
|
30
33
|
}
|
|
31
34
|
if (offset) {
|
|
32
35
|
this.offset = offset;
|
|
@@ -57,8 +60,8 @@ class GoogleMapPopup {
|
|
|
57
60
|
this.fitMap();
|
|
58
61
|
this.justRendered = false;
|
|
59
62
|
}
|
|
60
|
-
this.containerDiv.style.left =
|
|
61
|
-
this.containerDiv.style.top =
|
|
63
|
+
this.containerDiv.style.left = "".concat(divPosition.x, "px");
|
|
64
|
+
this.containerDiv.style.top = "".concat(divPosition.y - this.offset, "px");
|
|
62
65
|
}
|
|
63
66
|
}
|
|
64
67
|
setPosition(position) {
|
|
@@ -7,13 +7,21 @@ exports.default = void 0;
|
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _reactWrapper = require("@googlemaps/react-wrapper");
|
|
9
9
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
const _excluded = ["children", "apiKey", "onError"];
|
|
11
|
+
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; }
|
|
12
|
+
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; }
|
|
13
|
+
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; }
|
|
14
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
15
|
+
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); }
|
|
16
|
+
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; }
|
|
17
|
+
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
18
|
const GoogleMapWrapper = _ref => {
|
|
11
19
|
let {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
20
|
+
children,
|
|
21
|
+
apiKey,
|
|
22
|
+
onError
|
|
23
|
+
} = _ref,
|
|
24
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
17
25
|
const render = status => {
|
|
18
26
|
switch (status) {
|
|
19
27
|
case _reactWrapper.Status.LOADING:
|
|
@@ -31,10 +39,9 @@ const GoogleMapWrapper = _ref => {
|
|
|
31
39
|
style: {
|
|
32
40
|
position: 'relative'
|
|
33
41
|
},
|
|
34
|
-
children: /*#__PURE__*/(0, _react.cloneElement)(children, {
|
|
35
|
-
...props,
|
|
42
|
+
children: /*#__PURE__*/(0, _react.cloneElement)(children, _objectSpread(_objectSpread({}, props), {}, {
|
|
36
43
|
onError
|
|
37
|
-
})
|
|
44
|
+
}))
|
|
38
45
|
});
|
|
39
46
|
};
|
|
40
47
|
var _default = exports.default = GoogleMapWrapper;
|
|
@@ -13,8 +13,11 @@ var _fastDeepEqual = _interopRequireDefault(require("fast-deep-equal"));
|
|
|
13
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
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); }
|
|
15
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; }
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
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; }
|
|
17
|
+
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; }
|
|
18
|
+
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; }
|
|
19
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
20
|
+
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); } // eslint-disable-line
|
|
18
21
|
const eventHandlers = {
|
|
19
22
|
onEdited: 'draw:edited',
|
|
20
23
|
onDrawStart: 'draw:drawstart',
|
|
@@ -106,18 +109,13 @@ const createDrawElement = (props, layerContainer) => {
|
|
|
106
109
|
};
|
|
107
110
|
if (draw !== undefined) {
|
|
108
111
|
if (typeof draw === 'object') {
|
|
109
|
-
options.draw = {
|
|
110
|
-
...draw
|
|
111
|
-
};
|
|
112
|
+
options.draw = _objectSpread({}, draw);
|
|
112
113
|
} else {
|
|
113
114
|
options.draw = draw;
|
|
114
115
|
}
|
|
115
116
|
}
|
|
116
117
|
if (edit) {
|
|
117
|
-
options.edit = {
|
|
118
|
-
...options.edit,
|
|
119
|
-
...edit
|
|
120
|
-
};
|
|
118
|
+
options.edit = _objectSpread(_objectSpread({}, options.edit), edit);
|
|
121
119
|
}
|
|
122
120
|
if (position) {
|
|
123
121
|
options.position = position;
|
|
@@ -6,168 +6,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
8
|
var _reactLeaflet = require("react-leaflet");
|
|
9
|
+
var _templateObject;
|
|
9
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
-
|
|
11
|
-
width: 100
|
|
12
|
-
height: ${_ref => {
|
|
11
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
12
|
+
const LeafletMapContainer = (0, _styledComponents.default)(_reactLeaflet.MapContainer)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n height: ", "px;\n border: 1px solid transparent;\n border-radius: var(--border-radius);\n z-index: 1;\n\n &:focus {\n border-color: var(--border-color);\n box-shadow: var(--box-shadow);\n }\n\n .leaflet-control-container {\n .leaflet-control-zoom {\n box-shadow: var(--box-shadow);\n border-radius: var(--border-radius);\n\n a {\n background: transparent;\n border-bottom: 1px solid var(--border-color);\n color: var(--font-on-background);\n\n &:last-child {\n border-bottom: none;\n }\n\n &.leaflet-disabled {\n opacity: 0.5;\n }\n }\n }\n\n .leaflet-draw {\n box-shadow: var(--box-shadow);\n border-radius: var(--border-radius);\n\n a {\n background-color: var(--color-background1);\n }\n\n .leaflet-draw-draw-polyline {\n background-position: -3px -3px;\n }\n\n .leaflet-draw-draw-polygon {\n background-position: -32px -3px;\n }\n\n .leaflet-draw-draw-rectangle {\n background-position: -63px -3px;\n }\n\n .leaflet-draw-draw-circle {\n background-position: -93px -3px;\n }\n\n .leaflet-draw-draw-marker {\n background-position: -123px -3px;\n }\n\n .leaflet-draw-draw-circlemarker {\n background-position: -273px -3px;\n }\n\n .leaflet-draw-edit-edit {\n background-position: -213px -3px;\n }\n\n .leaflet-draw-edit-remove {\n background-position: -243px -3px;\n }\n }\n\n .leaflet-left .leaflet-control {\n margin-left: var(--spacing-s);\n }\n\n .leaflet-right .leaflet-control {\n margin-right: var(--spacing-s);\n }\n\n .leaflet-top .leaflet-control {\n margin-top: var(--spacing-s);\n }\n\n .leaflet-control {\n font-weight: bold;\n background: var(--color-background1);\n\n &.leaflet-control-attribution {\n background: var(--color-white);\n color: var(--color-dark);\n margin: 0;\n }\n }\n }\n\n .leaflet-edit-move {\n border-radius: 50px;\n border-color: var(--border-color);\n }\n\n .leaflet-edit-resize {\n border-radius: 50px;\n border-color: var(--border-color);\n }\n\n &.leaflet-touch {\n .leaflet-bar {\n border: none;\n\n a {\n width: 24px;\n height: 24px;\n line-height: 24px;\n }\n }\n\n .leaflet-left .leaflet-control {\n margin-left: var(--spacing-s);\n }\n\n .leaflet-right .leaflet-control {\n margin-right: var(--spacing-s);\n }\n\n .leaflet-top .leaflet-control {\n margin-top: var(--spacing-s);\n }\n }\n\n .marker-cluster {\n background: var(--color-primary) a1;\n\n div {\n background: var(--color-primary);\n color: var(--font-on-primary);\n }\n }\n\n .leaflet-popup-content-wrapper {\n background: transparent;\n box-shadow: unset;\n }\n\n .leaflet-popup-content p {\n margin: 0;\n margin-bottom: var(--spacing-s);\n }\n\n .leaflet-popup-tip {\n display: none;\n }\n\n .sr-only {\n display: none;\n }\n"])), _ref => {
|
|
13
13
|
let {
|
|
14
14
|
height
|
|
15
15
|
} = _ref;
|
|
16
16
|
return height;
|
|
17
|
-
}
|
|
18
|
-
border: 1px solid transparent;
|
|
19
|
-
border-radius: var(--border-radius);
|
|
20
|
-
z-index: 1;
|
|
21
|
-
|
|
22
|
-
&:focus {
|
|
23
|
-
border-color: var(--border-color);
|
|
24
|
-
box-shadow: var(--box-shadow);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.leaflet-control-container {
|
|
28
|
-
.leaflet-control-zoom {
|
|
29
|
-
box-shadow: var(--box-shadow);
|
|
30
|
-
border-radius: var(--border-radius);
|
|
31
|
-
|
|
32
|
-
a {
|
|
33
|
-
background: transparent;
|
|
34
|
-
border-bottom: 1px solid var(--border-color);
|
|
35
|
-
color: var(--font-on-background);
|
|
36
|
-
|
|
37
|
-
&:last-child {
|
|
38
|
-
border-bottom: none;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
&.leaflet-disabled {
|
|
42
|
-
opacity: 0.5;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.leaflet-draw {
|
|
48
|
-
box-shadow: var(--box-shadow);
|
|
49
|
-
border-radius: var(--border-radius);
|
|
50
|
-
|
|
51
|
-
a {
|
|
52
|
-
background-color: var(--color-background1);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.leaflet-draw-draw-polyline {
|
|
56
|
-
background-position: -3px -3px;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.leaflet-draw-draw-polygon {
|
|
60
|
-
background-position: -32px -3px;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.leaflet-draw-draw-rectangle {
|
|
64
|
-
background-position: -63px -3px;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.leaflet-draw-draw-circle {
|
|
68
|
-
background-position: -93px -3px;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.leaflet-draw-draw-marker {
|
|
72
|
-
background-position: -123px -3px;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.leaflet-draw-draw-circlemarker {
|
|
76
|
-
background-position: -273px -3px;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.leaflet-draw-edit-edit {
|
|
80
|
-
background-position: -213px -3px;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.leaflet-draw-edit-remove {
|
|
84
|
-
background-position: -243px -3px;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.leaflet-left .leaflet-control {
|
|
89
|
-
margin-left: var(--spacing-s);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.leaflet-right .leaflet-control {
|
|
93
|
-
margin-right: var(--spacing-s);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.leaflet-top .leaflet-control {
|
|
97
|
-
margin-top: var(--spacing-s);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.leaflet-control {
|
|
101
|
-
font-weight: bold;
|
|
102
|
-
background: var(--color-background1);
|
|
103
|
-
|
|
104
|
-
&.leaflet-control-attribution {
|
|
105
|
-
background: var(--color-white);
|
|
106
|
-
color: var(--color-dark);
|
|
107
|
-
margin: 0;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.leaflet-edit-move {
|
|
113
|
-
border-radius: 50px;
|
|
114
|
-
border-color: var(--border-color);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.leaflet-edit-resize {
|
|
118
|
-
border-radius: 50px;
|
|
119
|
-
border-color: var(--border-color);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
&.leaflet-touch {
|
|
123
|
-
.leaflet-bar {
|
|
124
|
-
border: none;
|
|
125
|
-
|
|
126
|
-
a {
|
|
127
|
-
width: 24px;
|
|
128
|
-
height: 24px;
|
|
129
|
-
line-height: 24px;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.leaflet-left .leaflet-control {
|
|
134
|
-
margin-left: var(--spacing-s);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.leaflet-right .leaflet-control {
|
|
138
|
-
margin-right: var(--spacing-s);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.leaflet-top .leaflet-control {
|
|
142
|
-
margin-top: var(--spacing-s);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.marker-cluster {
|
|
147
|
-
background: var(--color-primary) a1;
|
|
148
|
-
|
|
149
|
-
div {
|
|
150
|
-
background: var(--color-primary);
|
|
151
|
-
color: var(--font-on-primary);
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.leaflet-popup-content-wrapper {
|
|
156
|
-
background: transparent;
|
|
157
|
-
box-shadow: unset;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.leaflet-popup-content p {
|
|
161
|
-
margin: 0;
|
|
162
|
-
margin-bottom: var(--spacing-s);
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.leaflet-popup-tip {
|
|
166
|
-
display: none;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.sr-only {
|
|
170
|
-
display: none;
|
|
171
|
-
}
|
|
172
|
-
`;
|
|
17
|
+
});
|
|
173
18
|
var _default = exports.default = LeafletMapContainer;
|
package/modal/StateModal.js
CHANGED
|
@@ -15,14 +15,24 @@ var _ButtonGroup = _interopRequireDefault(require("../button/ButtonGroup"));
|
|
|
15
15
|
var _Button = _interopRequireDefault(require("../button/Button"));
|
|
16
16
|
var _ModalBackdrop = _interopRequireDefault(require("../backdrop/ModalBackdrop"));
|
|
17
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
19
|
+
const _excluded = ["onClose"];
|
|
18
20
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
19
21
|
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); }
|
|
20
22
|
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; }
|
|
23
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
24
|
+
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; }
|
|
25
|
+
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; }
|
|
26
|
+
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; }
|
|
27
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
28
|
+
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); }
|
|
29
|
+
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; }
|
|
30
|
+
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; }
|
|
21
31
|
const StateModal = _ref => {
|
|
22
32
|
let {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
33
|
+
onClose
|
|
34
|
+
} = _ref,
|
|
35
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
26
36
|
const rootElement = (0, _utils.appendElementTo)('StateModalContainer');
|
|
27
37
|
const Container = document.createElement('div');
|
|
28
38
|
rootElement.appendChild(Container);
|
|
@@ -32,10 +42,9 @@ const StateModal = _ref => {
|
|
|
32
42
|
Container.remove();
|
|
33
43
|
if (onClose) onClose();
|
|
34
44
|
};
|
|
35
|
-
_reactDom.default.render(/*#__PURE__*/(0, _jsxRuntime.jsx)(ModalContent, {
|
|
36
|
-
...props,
|
|
45
|
+
_reactDom.default.render(/*#__PURE__*/(0, _jsxRuntime.jsx)(ModalContent, _objectSpread(_objectSpread({}, props), {}, {
|
|
37
46
|
onClose: handleClose
|
|
38
|
-
}), Container);
|
|
47
|
+
})), Container);
|
|
39
48
|
};
|
|
40
49
|
const ModalContent = _ref2 => {
|
|
41
50
|
let {
|
|
@@ -74,7 +83,7 @@ const ModalContent = _ref2 => {
|
|
|
74
83
|
ref: refWrapper,
|
|
75
84
|
onClick: handleDismiss,
|
|
76
85
|
role: "dialog",
|
|
77
|
-
"aria-labelledby":
|
|
86
|
+
"aria-labelledby": "".concat(id, "-Title"),
|
|
78
87
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(Container, {
|
|
79
88
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(Body, {
|
|
80
89
|
type: type,
|
|
@@ -87,16 +96,14 @@ const ModalContent = _ref2 => {
|
|
|
87
96
|
})]
|
|
88
97
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ButtonGroup.default, {
|
|
89
98
|
alignRight: true,
|
|
90
|
-
children: [showCancelButton === true && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
warning: true
|
|
96
|
-
}),
|
|
99
|
+
children: [showCancelButton === true && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, _objectSpread(_objectSpread(_objectSpread({}, cancelButtonType === 'danger' && {
|
|
100
|
+
danger: true
|
|
101
|
+
}), cancelButtonType === 'warning' && {
|
|
102
|
+
warning: true
|
|
103
|
+
}), {}, {
|
|
97
104
|
onClick: handleCancel,
|
|
98
105
|
children: cancelButtonText || 'Cancel'
|
|
99
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
|
|
106
|
+
})), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
|
|
100
107
|
success: true,
|
|
101
108
|
onClick: handleConfirm,
|
|
102
109
|
children: confirmButtonText || 'Confirm'
|
|
@@ -105,28 +112,9 @@ const ModalContent = _ref2 => {
|
|
|
105
112
|
})
|
|
106
113
|
});
|
|
107
114
|
};
|
|
108
|
-
const Wrapper = (0, _styledComponents.default)(_ModalBackdrop.default)
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
const Container = _styledComponents.default.div`
|
|
112
|
-
width: 500px;
|
|
113
|
-
max-width: 90%;
|
|
114
|
-
background: var(--color-background2);
|
|
115
|
-
box-shadow: var(--box-shadow);
|
|
116
|
-
padding: var(--spacing);
|
|
117
|
-
border-radius: var(--border-radius);
|
|
118
|
-
color: var(--font-on-background);
|
|
119
|
-
border: var(--border-width) solid var(--border-color);
|
|
120
|
-
text-align: center;
|
|
121
|
-
`;
|
|
122
|
-
const Body = _styledComponents.default.div`
|
|
123
|
-
margin-bottom: var(--spacing);
|
|
124
|
-
|
|
125
|
-
> svg {
|
|
126
|
-
font-size: 120px;
|
|
127
|
-
margin-bottom: var(--spacing);
|
|
128
|
-
|
|
129
|
-
${_ref3 => {
|
|
115
|
+
const Wrapper = (0, _styledComponents.default)(_ModalBackdrop.default)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n z-index: 90;\n"])));
|
|
116
|
+
const Container = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 500px;\n max-width: 90%;\n background: var(--color-background2);\n box-shadow: var(--box-shadow);\n padding: var(--spacing);\n border-radius: var(--border-radius);\n color: var(--font-on-background);\n border: var(--border-width) solid var(--border-color);\n text-align: center;\n"])));
|
|
117
|
+
const Body = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-bottom: var(--spacing);\n\n > svg {\n font-size: 120px;\n margin-bottom: var(--spacing);\n\n ", "\n }\n"])), _ref3 => {
|
|
130
118
|
let {
|
|
131
119
|
type
|
|
132
120
|
} = _ref3;
|
|
@@ -139,16 +127,7 @@ const Body = _styledComponents.default.div`
|
|
|
139
127
|
default:
|
|
140
128
|
return 'color: var(--color-success);';
|
|
141
129
|
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
const Title = _styledComponents.default.h2`
|
|
146
|
-
font-size: var(--font-body1);
|
|
147
|
-
font-weight: var(--font-bold);
|
|
148
|
-
margin-bottom: var(--spacing-s);
|
|
149
|
-
`;
|
|
150
|
-
const Message = _styledComponents.default.p`
|
|
151
|
-
font-size: var(--font-body1);
|
|
152
|
-
white-space: pre-line;
|
|
153
|
-
`;
|
|
130
|
+
});
|
|
131
|
+
const Title = _styledComponents.default.h2(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n font-size: var(--font-body1);\n font-weight: var(--font-bold);\n margin-bottom: var(--spacing-s);\n"])));
|
|
132
|
+
const Message = _styledComponents.default.p(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n font-size: var(--font-body1);\n white-space: pre-line;\n"])));
|
|
154
133
|
var _default = exports.default = StateModal;
|
package/modal/TitleModal.js
CHANGED
|
@@ -15,9 +15,19 @@ var _scrollbar = _interopRequireDefault(require("../styles/mixin/scrollbar"));
|
|
|
15
15
|
var _Heading = _interopRequireDefault(require("../heading/Heading3"));
|
|
16
16
|
var _ModalBackdrop = _interopRequireDefault(require("../backdrop/ModalBackdrop"));
|
|
17
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
|
|
19
|
+
const _excluded = ["children"];
|
|
18
20
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
19
21
|
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); }
|
|
20
22
|
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; }
|
|
23
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
24
|
+
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; }
|
|
25
|
+
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; }
|
|
26
|
+
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; }
|
|
27
|
+
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; }
|
|
28
|
+
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; }
|
|
29
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
30
|
+
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); }
|
|
21
31
|
const TitleModal = props => {
|
|
22
32
|
const rootElement = (0, _utils.appendElementTo)('TitleModalContainer');
|
|
23
33
|
const Container = document.createElement('div');
|
|
@@ -45,11 +55,10 @@ const TitleModal = props => {
|
|
|
45
55
|
const methods = {
|
|
46
56
|
close: handleClose
|
|
47
57
|
};
|
|
48
|
-
_reactDom.default.render(/*#__PURE__*/(0, _jsxRuntime.jsx)(ModalContent, {
|
|
49
|
-
...props,
|
|
58
|
+
_reactDom.default.render(/*#__PURE__*/(0, _jsxRuntime.jsx)(ModalContent, _objectSpread(_objectSpread({}, props), {}, {
|
|
50
59
|
onClose: handleClose,
|
|
51
60
|
methods: methods
|
|
52
|
-
}), Container);
|
|
61
|
+
})), Container);
|
|
53
62
|
};
|
|
54
63
|
const ModalContent = _ref => {
|
|
55
64
|
let {
|
|
@@ -100,9 +109,9 @@ const ModalHeader = _ref2 => {
|
|
|
100
109
|
};
|
|
101
110
|
const ModalBody = /*#__PURE__*/(0, _react.forwardRef)((_ref3, ref) => {
|
|
102
111
|
let {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
112
|
+
children
|
|
113
|
+
} = _ref3,
|
|
114
|
+
props = _objectWithoutProperties(_ref3, _excluded);
|
|
106
115
|
const ownRef = (0, _react.useRef)(null);
|
|
107
116
|
const bodyRef = (0, _hooks.useForkRef)(ownRef, ref);
|
|
108
117
|
const recalculateHeight = (0, _react.useCallback)(() => {
|
|
@@ -118,18 +127,18 @@ const ModalBody = /*#__PURE__*/(0, _react.forwardRef)((_ref3, ref) => {
|
|
|
118
127
|
if (ModalFooterElement) {
|
|
119
128
|
needSubtractHeight += ModalFooterElement.offsetHeight;
|
|
120
129
|
}
|
|
121
|
-
ModalBodyElement.style.maxHeight =
|
|
130
|
+
ModalBodyElement.style.maxHeight = "calc(90vh - ".concat(needSubtractHeight, "px)");
|
|
122
131
|
}, []);
|
|
123
132
|
(0, _react.useEffect)(() => {
|
|
124
133
|
recalculateHeight();
|
|
125
134
|
window.addEventListener('resize', recalculateHeight);
|
|
126
135
|
return () => window.removeEventListener('resize', recalculateHeight);
|
|
127
136
|
}, [recalculateHeight]);
|
|
128
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Body, {
|
|
129
|
-
ref: bodyRef
|
|
130
|
-
|
|
137
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Body, _objectSpread(_objectSpread({
|
|
138
|
+
ref: bodyRef
|
|
139
|
+
}, props), {}, {
|
|
131
140
|
children: children
|
|
132
|
-
});
|
|
141
|
+
}));
|
|
133
142
|
});
|
|
134
143
|
ModalBody.displayName = 'ModalBody';
|
|
135
144
|
const ModalFooter = _ref4 => {
|
|
@@ -140,18 +149,8 @@ const ModalFooter = _ref4 => {
|
|
|
140
149
|
children: children
|
|
141
150
|
});
|
|
142
151
|
};
|
|
143
|
-
const Wrapper = (0, _styledComponents.default)(_ModalBackdrop.default)
|
|
144
|
-
|
|
145
|
-
`;
|
|
146
|
-
const Container = _styledComponents.default.div`
|
|
147
|
-
position: relative;
|
|
148
|
-
border-radius: var(--border-radius);
|
|
149
|
-
background: var(--color-background2);
|
|
150
|
-
box-shadow: var(--box-shadow);
|
|
151
|
-
border: var(--border-width) solid var(--border-color);
|
|
152
|
-
width: 100%;
|
|
153
|
-
|
|
154
|
-
${_ref5 => {
|
|
152
|
+
const Wrapper = (0, _styledComponents.default)(_ModalBackdrop.default)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n z-index: 80;\n"])));
|
|
153
|
+
const Container = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: relative;\n border-radius: var(--border-radius);\n background: var(--color-background2);\n box-shadow: var(--box-shadow);\n border: var(--border-width) solid var(--border-color);\n width: 100%;\n\n ", "\n\n ", "\n\n ", "\n"])), _ref5 => {
|
|
155
154
|
let {
|
|
156
155
|
size
|
|
157
156
|
} = _ref5;
|
|
@@ -167,10 +166,7 @@ const Container = _styledComponents.default.div`
|
|
|
167
166
|
default:
|
|
168
167
|
break;
|
|
169
168
|
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
${_media.default.tablet`
|
|
173
|
-
${_ref6 => {
|
|
169
|
+
}, _media.default.tablet(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n ", "\n "])), _ref6 => {
|
|
174
170
|
let {
|
|
175
171
|
size
|
|
176
172
|
} = _ref6;
|
|
@@ -185,11 +181,7 @@ const Container = _styledComponents.default.div`
|
|
|
185
181
|
default:
|
|
186
182
|
break;
|
|
187
183
|
}
|
|
188
|
-
}
|
|
189
|
-
`}
|
|
190
|
-
|
|
191
|
-
${_media.default.mobile`
|
|
192
|
-
${_ref7 => {
|
|
184
|
+
}), _media.default.mobile(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n ", "\n "])), _ref7 => {
|
|
193
185
|
let {
|
|
194
186
|
size
|
|
195
187
|
} = _ref7;
|
|
@@ -201,48 +193,15 @@ const Container = _styledComponents.default.div`
|
|
|
201
193
|
default:
|
|
202
194
|
break;
|
|
203
195
|
}
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
const Header = _styledComponents.default.div`
|
|
208
|
-
display: flex;
|
|
209
|
-
align-items: center;
|
|
210
|
-
padding: var(--spacing-s) 56px var(--spacing-s) var(--spacing-s);
|
|
211
|
-
border-bottom: var(--border-width) solid var(--border-color);
|
|
212
|
-
min-height: 64px;
|
|
213
|
-
color: var(--font-on-background);
|
|
214
|
-
|
|
215
|
-
> svg {
|
|
216
|
-
position: absolute;
|
|
217
|
-
top: 24px;
|
|
218
|
-
right: calc(12px + var(--spacing));
|
|
219
|
-
color: var(--font-on-mute);
|
|
220
|
-
font-size: var(--font-body1);
|
|
221
|
-
cursor: pointer;
|
|
222
|
-
}
|
|
223
|
-
`;
|
|
224
|
-
const Body = _styledComponents.default.div`
|
|
225
|
-
padding: var(--spacing);
|
|
226
|
-
overflow-y: auto;
|
|
227
|
-
overflow-x: hidden;
|
|
228
|
-
|
|
229
|
-
${_scrollbar.default}
|
|
230
|
-
|
|
231
|
-
${_ref8 => {
|
|
196
|
+
}));
|
|
197
|
+
const Header = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n padding: var(--spacing-s) 56px var(--spacing-s) var(--spacing-s);\n border-bottom: var(--border-width) solid var(--border-color);\n min-height: 64px;\n color: var(--font-on-background);\n\n > svg {\n position: absolute;\n top: 24px;\n right: calc(12px + var(--spacing));\n color: var(--font-on-mute);\n font-size: var(--font-body1);\n cursor: pointer;\n }\n"])));
|
|
198
|
+
const Body = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n padding: var(--spacing);\n overflow-y: auto;\n overflow-x: hidden;\n\n ", "\n\n ", "\n"])), _scrollbar.default, _ref8 => {
|
|
232
199
|
let {
|
|
233
200
|
noPaddingBottom
|
|
234
201
|
} = _ref8;
|
|
235
202
|
return noPaddingBottom && 'padding-bottom: 0;';
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
const Footer = _styledComponents.default.div`
|
|
239
|
-
display: flex;
|
|
240
|
-
justify-content: flex-end;
|
|
241
|
-
padding: 0 var(--spacing);
|
|
242
|
-
border-top: var(--border-width) solid var(--border-color);
|
|
243
|
-
height: 64px;
|
|
244
|
-
line-height: 64px;
|
|
245
|
-
`;
|
|
203
|
+
});
|
|
204
|
+
const Footer = _styledComponents.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: flex-end;\n padding: 0 var(--spacing);\n border-top: var(--border-width) solid var(--border-color);\n height: 64px;\n line-height: 64px;\n"])));
|
|
246
205
|
var _default = exports.default = Object.assign(TitleModal, {
|
|
247
206
|
Header: ModalHeader,
|
|
248
207
|
Body: ModalBody,
|