@cashub/ui 0.21.0 → 0.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Tab/Tab.js +9 -13
- package/Tab/TabList.js +14 -32
- package/Tab/TabPanel.js +21 -58
- package/Tab/TabTab.js +20 -40
- package/Tab/index.js +2 -10
- package/Tab/subComponent/TabContext.js +2 -5
- package/animate/Collapse.js +26 -53
- package/animate/Loader.js +21 -26
- package/animate/NumberCounter.js +22 -44
- package/animate/PulseRing.js +9 -21
- package/animate/Spinner.js +2 -10
- package/animate/index.js +5 -11
- package/backdrop/BaseBackdrop.js +2 -9
- package/backdrop/LoadingBackdrop.js +2 -9
- package/backdrop/ModalBackdrop.js +2 -9
- package/backdrop/index.js +3 -7
- package/badge/Badge.js +2 -11
- package/badge/BadgeDot.js +2 -10
- package/badge/BadgeFill.js +15 -20
- package/badge/BadgeWithText.js +6 -13
- package/badge/index.js +4 -9
- package/billing/BarChart.js +10 -17
- package/billing/Grid.js +11 -15
- package/billing/Header2.js +6 -9
- package/billing/Header3.js +9 -16
- package/billing/Paragraph.js +8 -14
- package/billing/ParagraphGroup.js +6 -9
- package/billing/ParagraphText.js +7 -12
- package/billing/Section.js +13 -23
- package/billing/SectionBody.js +5 -8
- package/billing/SectionHeader.js +7 -12
- package/breadcrumb/Breadcrumb.js +11 -21
- package/breadcrumb/index.js +1 -3
- package/button/Button.js +41 -38
- package/button/ButtonGroup.js +21 -18
- package/button/IconButton.js +29 -29
- package/button/ScrollToTopButton.js +12 -39
- package/button/index.js +4 -9
- package/callout/Callout.js +13 -26
- package/callout/index.js +1 -3
- package/chart/BarChart.js +28 -53
- package/chart/DoughnutChart.js +23 -62
- package/chart/LineChart.js +33 -55
- package/chart/SingleBarChart.js +11 -17
- package/chart/index.js +5 -12
- package/chart/utils/customTooltip.js +26 -43
- package/chart/utils/htmlLegendPlugin.js +24 -30
- package/chart/utils/index.js +3 -7
- package/chart/utils/padEmptyChartBar.js +24 -22
- package/container/FlexContainer.js +9 -12
- package/container/index.js +1 -3
- package/cropper/Cropper.js +21 -34
- package/cropper/CropperModalHandler.js +15 -21
- package/cropper/index.js +2 -5
- package/cropper/subComponent/CropImageModal.js +23 -58
- package/datetimePicker/DatePicker.js +103 -217
- package/datetimePicker/DatePickerV2.js +116 -221
- package/datetimePicker/DatetimePicker.js +27 -48
- package/datetimePicker/DatetimePickerV2.js +115 -231
- package/datetimePicker/TimeInput.js +9 -22
- package/datetimePicker/TimePicker.js +94 -151
- package/datetimePicker/TimePickerStyle.js +2 -9
- package/datetimePicker/accordion/Month.js +70 -90
- package/datetimePicker/accordion/Year.js +91 -135
- package/datetimePicker/hooks/index.js +3 -7
- package/datetimePicker/hooks/useChangeNumber.js +14 -27
- package/datetimePicker/hooks/useDecrease.js +19 -35
- package/datetimePicker/hooks/useIncrease.js +19 -35
- package/datetimePicker/index.js +7 -15
- package/datetimePicker/provider/constant.js +2 -3
- package/datetimePicker/subComponent/Accordion.js +108 -158
- package/datetimePicker/subComponent/CustomTimeInput.js +18 -48
- package/datetimePicker/subComponent/DateTimePickerContext.js +2 -5
- package/datetimePicker/utils/GMTDate.js +3 -7
- package/datetimePicker/utils/pad.js +2 -6
- package/datetimePicker/utils/toUTC0.js +3 -6
- package/descriptionList/DescriptionDetail.js +5 -10
- package/descriptionList/DescriptionList.js +5 -10
- package/descriptionList/DescriptionTerm.js +2 -9
- package/descriptionList/index.js +3 -7
- package/divider/Divider.js +9 -12
- package/divider/index.js +1 -3
- package/dropdown/Dropdown.js +28 -65
- package/dropdown/DropdownButtonOption.js +2 -9
- package/dropdown/DropdownContent.js +33 -64
- package/dropdown/DropdownDivOption.js +2 -9
- package/dropdown/DropdownItem.js +10 -16
- package/dropdown/DropdownLinkOption.js +2 -9
- package/dropdown/DropdownToggle.js +18 -38
- package/dropdown/index.js +6 -17
- package/dropdown/subComponent/DropdownContext.js +2 -5
- package/dropzone/FileDropzone.js +148 -302
- package/dropzone/ImageDropzone.js +96 -171
- package/dropzone/index.js +2 -5
- package/dropzone/subComponent/Message.js +7 -14
- package/figure/IconFigure.js +9 -16
- package/figure/ImageFigure.js +11 -17
- package/figure/index.js +2 -5
- package/file/HiddenFileInput.js +5 -14
- package/file/index.js +1 -3
- package/form/Checkbox.js +34 -43
- package/form/FormItem.js +2 -9
- package/form/Input.js +13 -15
- package/form/Label.js +10 -13
- package/form/MutedText.js +5 -10
- package/form/RadioButton.js +20 -32
- package/form/Searchbox.js +21 -65
- package/form/Slider.js +14 -0
- package/form/SwitchButton.js +34 -39
- package/form/Textarea.js +2 -11
- package/form/index.js +9 -19
- package/grid/Column.js +17 -17
- package/grid/Grid.js +13 -14
- package/grid/index.js +2 -5
- package/heading/Heading1.js +5 -10
- package/heading/Heading2.js +9 -12
- package/heading/Heading3.js +21 -18
- package/heading/index.js +3 -7
- package/helmet/Helmet.js +6 -9
- package/helmet/index.js +2 -5
- package/iconbox/ApplicationIconBox.js +25 -31
- package/iconbox/IconBox.js +11 -24
- package/iconbox/IconBoxV2.js +14 -26
- package/iconbox/index.js +3 -7
- package/iconbox/subComponent/IconBoxFigure.js +25 -20
- package/iconbox/subComponent/IconBoxImage.js +15 -18
- package/image/ImageFluid.js +2 -10
- package/image/UploadImage.js +65 -113
- package/image/index.js +2 -5
- package/index.js +44 -130
- package/jsoneditor/JsonEditor.js +10 -32
- package/jsoneditor/index.js +1 -3
- package/keyframe/Pulse.js +2 -7
- package/keyframe/Spin.js +2 -7
- package/link/LinkSpan.js +22 -35
- package/link/index.js +1 -3
- package/map/GoogleMap.js +122 -175
- package/map/GoogleReverseGeolocation.js +79 -186
- package/map/LeafletMap.js +78 -132
- package/map/LeafletReverseGeolocation.js +49 -121
- package/map/index.js +4 -9
- package/map/subComponent/BasicLeafletMap.js +8 -14
- package/map/subComponent/GoogleMapContainer.js +5 -10
- package/map/subComponent/GoogleMapPopup.js +66 -123
- package/map/subComponent/GoogleMapWrapper.js +13 -32
- package/map/subComponent/GoogleMarkerSpiderfier.js +14 -24
- package/map/subComponent/LeafletDrawControl.js +47 -84
- package/map/subComponent/LeafletMapContainer.js +5 -10
- package/map/subComponent/MapSearchBoxControl.js +24 -70
- package/modal/StateModal.js +41 -100
- package/modal/TitleModal.js +89 -190
- package/modal/index.js +2 -5
- package/package.json +1 -1
- package/paginate/Paginate.js +40 -54
- package/paginate/index.js +1 -3
- package/popover/Popover.js +39 -87
- package/popover/index.js +1 -3
- package/qrcode/QRCode.js +10 -23
- package/qrcode/QRCodeContainter.js +8 -16
- package/qrcode/index.js +2 -5
- package/ribbon/Ribbon.js +4 -15
- package/ribbon/index.js +1 -3
- package/section/Section.js +57 -39
- package/section/SectionBody.js +15 -22
- package/section/SectionHeader.js +27 -27
- package/section/SectionToolbar.js +2 -9
- package/section/SectionToolbarItem.js +2 -9
- package/section/index.js +5 -11
- package/select/InputSelect.js +103 -215
- package/select/Select.js +204 -362
- package/select/index.js +2 -5
- package/select/subComponent/ListBox.js +9 -12
- package/select/subComponent/Option.js +8 -16
- package/select/subComponent/OptionGroup.js +2 -9
- package/select/subComponent/Options.js +5 -11
- package/select/subComponent/SearchBox.js +9 -29
- package/select/subComponent/SelectedMultiple.js +8 -16
- package/select/subComponent/SelectedSingle.js +2 -9
- package/styles/GlobalStyle.js +169 -91
- package/styles/config/breakpoint.style.js +2 -3
- package/styles/config/header.style.js +2 -3
- package/styles/config/sidebar.style.js +2 -3
- package/styles/index.js +2 -5
- package/styles/mixin/backgroundColor.js +17 -14
- package/styles/mixin/borderColor.js +17 -14
- package/styles/mixin/color.js +17 -14
- package/styles/mixin/colorOnBackground.js +17 -14
- package/styles/mixin/inputPlaceholder.js +3 -9
- package/styles/mixin/media.js +3 -11
- package/styles/mixin/rounded.js +13 -12
- package/styles/mixin/scrollbar.js +7 -13
- package/styles/theme/dark.theme.js +20 -20
- package/styles/theme/light.theme.js +20 -20
- package/styles/theme/white.theme.js +20 -20
- package/styles/themes.js +2 -8
- package/table/GridTable.js +105 -143
- package/table/ImageBox.js +8 -18
- package/table/PermissionTable.js +25 -25
- package/table/Table.js +137 -153
- package/table/__mock__/columns.js +2 -3
- package/table/__mock__/data.js +2 -3
- package/table/hooks/index.js +2 -5
- package/table/hooks/useCalculateDataRange.js +9 -36
- package/table/hooks/useGenerateSort.js +6 -17
- package/table/index.js +4 -9
- package/table/subComponent/BaseTableHeadCell.js +15 -21
- package/table/subComponent/GridTableFooter.js +5 -10
- package/table/subComponent/GridTableHeadCell.js +5 -10
- package/table/subComponent/Resizer.js +17 -44
- package/table/subComponent/TableFooter.js +5 -10
- package/table/subComponent/TableFooterInfo.js +2 -9
- package/table/subComponent/TableFooterPager.js +5 -12
- package/table/subComponent/TableHeadCell.js +2 -9
- package/table/subComponent/TableSort.js +13 -19
- package/tagify/TagifyStyle.js +2 -9
- package/tagify/Tags.js +15 -37
- package/tagify/index.js +2 -5
- package/text/Paragraph.js +25 -20
- package/text/index.js +1 -3
- package/timeline/Timeline.js +28 -37
- package/timeline/index.js +1 -3
- package/toast/CustomToastContainer.js +2 -9
- package/toast/MessageContainer.js +9 -18
- package/toast/index.js +3 -8
- package/toast/show.js +18 -28
- package/tooltip/Tooltip.js +48 -97
- package/tooltip/index.js +1 -3
- package/wizard/Wizard.js +63 -133
- package/wizard/index.js +1 -3
package/popover/Popover.js
CHANGED
|
@@ -1,127 +1,79 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
6
|
exports.default = void 0;
|
|
9
|
-
|
|
10
7
|
var _react = require("react");
|
|
11
|
-
|
|
12
8
|
var _reactDom = _interopRequireWildcard(require("react-dom"));
|
|
13
|
-
|
|
14
9
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
15
|
-
|
|
16
10
|
var _reactOutsideClickHandler = _interopRequireDefault(require("react-outside-click-handler"));
|
|
17
|
-
|
|
18
11
|
var _hooks = require("@cashub/hooks");
|
|
19
|
-
|
|
20
12
|
var _utils = require("@cashub/utils");
|
|
21
|
-
|
|
22
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
|
-
|
|
24
14
|
var _templateObject, _templateObject2;
|
|
25
|
-
|
|
26
|
-
var _excluded = ["container", "id"];
|
|
27
|
-
|
|
28
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
29
|
-
|
|
30
|
-
function
|
|
31
|
-
|
|
32
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
33
|
-
|
|
16
|
+
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); }
|
|
17
|
+
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 && Object.prototype.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; }
|
|
34
18
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
45
|
-
|
|
46
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
47
|
-
|
|
48
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
49
|
-
|
|
50
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
51
|
-
|
|
52
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
53
|
-
|
|
54
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
55
|
-
|
|
56
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
57
|
-
|
|
58
|
-
var Popover = function Popover(_ref) {
|
|
59
|
-
var container = _ref.container,
|
|
60
|
-
id = _ref.id,
|
|
61
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
62
|
-
|
|
63
|
-
var rootElement = (0, _utils.appendElementTo)('PopoverContainer', 'div', container);
|
|
64
|
-
|
|
65
|
-
var handleClose = function handleClose() {
|
|
19
|
+
const Popover = _ref => {
|
|
20
|
+
let {
|
|
21
|
+
container,
|
|
22
|
+
id,
|
|
23
|
+
...props
|
|
24
|
+
} = _ref;
|
|
25
|
+
const rootElement = (0, _utils.appendElementTo)('PopoverContainer', 'div', container);
|
|
26
|
+
const handleClose = () => {
|
|
66
27
|
// unmount component and clear event handler and state before remove container
|
|
67
28
|
(0, _reactDom.unmountComponentAtNode)(rootElement);
|
|
68
29
|
rootElement.remove();
|
|
69
30
|
};
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
31
|
+
const result = document.getElementById("popover".concat(id));
|
|
32
|
+
// found previous element mean want to close popover now, so remove it
|
|
73
33
|
if (result) {
|
|
74
34
|
handleClose();
|
|
75
35
|
return;
|
|
76
36
|
}
|
|
77
|
-
|
|
78
|
-
|
|
37
|
+
_reactDom.default.render( /*#__PURE__*/(0, _jsxRuntime.jsx)(Box, {
|
|
38
|
+
...props,
|
|
79
39
|
id: "popover".concat(id),
|
|
80
40
|
handleClose: handleClose
|
|
81
|
-
})
|
|
41
|
+
}), rootElement);
|
|
82
42
|
};
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
boundary
|
|
98
|
-
})
|
|
99
|
-
styles = _useCustomPopper.styles,
|
|
100
|
-
attributes = _useCustomPopper.attributes,
|
|
101
|
-
state = _useCustomPopper.state;
|
|
102
|
-
|
|
43
|
+
const Box = _ref2 => {
|
|
44
|
+
let {
|
|
45
|
+
target,
|
|
46
|
+
id,
|
|
47
|
+
handleClose,
|
|
48
|
+
content,
|
|
49
|
+
boundary
|
|
50
|
+
} = _ref2;
|
|
51
|
+
const [popoverElement, setTooltipElement] = (0, _react.useState)(null);
|
|
52
|
+
const {
|
|
53
|
+
styles,
|
|
54
|
+
attributes,
|
|
55
|
+
state
|
|
56
|
+
} = (0, _hooks.useCustomPopper)(target, popoverElement, {
|
|
57
|
+
boundary
|
|
58
|
+
});
|
|
103
59
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactOutsideClickHandler.default, {
|
|
104
|
-
onOutsideClick:
|
|
60
|
+
onOutsideClick: event => {
|
|
105
61
|
if ("popover".concat(event.target.id) !== id) {
|
|
106
62
|
handleClose();
|
|
107
63
|
}
|
|
108
64
|
},
|
|
109
65
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Wrapper, {
|
|
110
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(PopoverBox,
|
|
66
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(PopoverBox, {
|
|
111
67
|
id: id,
|
|
112
68
|
ref: setTooltipElement,
|
|
113
|
-
style: styles.popper
|
|
114
|
-
|
|
69
|
+
style: styles.popper,
|
|
70
|
+
...attributes.popper,
|
|
115
71
|
placement: state && state.placement,
|
|
116
72
|
children: content
|
|
117
|
-
})
|
|
73
|
+
})
|
|
118
74
|
})
|
|
119
75
|
});
|
|
120
76
|
};
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
var PopoverBox = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n border: 1px solid var(--border-color);\n color: var(--font-on-background);\n background: var(--color-background2);\n box-shadow: var(--box-shadow);\n border-radius: calc(var(--border-radius) / 2);\n padding: var(--spacing-xs);\n z-index: 80;\n font-size: var(--font-body1);\n font-weight: var(--font-normal);\n max-width: 50vw;\n word-break: break-all;\n"])));
|
|
125
|
-
|
|
126
|
-
var _default = Popover;
|
|
127
|
-
exports.default = _default;
|
|
77
|
+
const Wrapper = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n"])));
|
|
78
|
+
const PopoverBox = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n border: 1px solid var(--border-color);\n color: var(--font-on-background);\n background: var(--color-background2);\n box-shadow: var(--box-shadow);\n border-radius: calc(var(--border-radius) / 2);\n padding: var(--spacing-xs);\n z-index: 80;\n font-size: var(--font-body1);\n font-weight: var(--font-normal);\n max-width: 50vw;\n word-break: break-all;\n"])));
|
|
79
|
+
var _default = exports.default = Popover;
|
package/popover/index.js
CHANGED
|
@@ -5,11 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
Object.defineProperty(exports, "Popover", {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: function
|
|
8
|
+
get: function () {
|
|
9
9
|
return _Popover.default;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
|
|
13
12
|
var _Popover = _interopRequireDefault(require("./Popover"));
|
|
14
|
-
|
|
15
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
package/qrcode/QRCode.js
CHANGED
|
@@ -4,25 +4,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
|
|
10
8
|
var _qrcode = _interopRequireDefault(require("qrcode.react"));
|
|
11
|
-
|
|
12
9
|
var _cashubLogoOnly = _interopRequireDefault(require("../assets/images/cashub-logo-only.png"));
|
|
13
|
-
|
|
14
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
|
|
16
11
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
17
|
-
|
|
18
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
-
|
|
20
13
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
14
|
+
const QRCodeBox = _ref => {
|
|
15
|
+
let {
|
|
16
|
+
content,
|
|
17
|
+
options = {}
|
|
18
|
+
} = _ref;
|
|
26
19
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(Wrapper, {
|
|
27
20
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(Container, {
|
|
28
21
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_qrcode.default, {
|
|
@@ -44,14 +37,8 @@ var QRCodeBox = function QRCodeBox(_ref) {
|
|
|
44
37
|
})]
|
|
45
38
|
});
|
|
46
39
|
};
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
var Text = _styledComponents.default.p(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-top: var(--spacing-s);\n font-size: var(--font-h3);\n color: #000;\n"])));
|
|
53
|
-
|
|
54
|
-
var Message = _styledComponents.default.p(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin-top: var(--spacing);\n font-size: var(--font-h2);\n"])));
|
|
55
|
-
|
|
56
|
-
var _default = QRCodeBox;
|
|
57
|
-
exports.default = _default;
|
|
40
|
+
const Wrapper = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n color: var(--font-on-background);\n text-align: center;\n font-weight: var(--font-bold);\n"])));
|
|
41
|
+
const Container = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: inline-block;\n padding: var(--spacing);\n background: #fff;\n border-radius: var(--border-radius);\n"])));
|
|
42
|
+
const Text = _styledComponents.default.p(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-top: var(--spacing-s);\n font-size: var(--font-h3);\n color: #000;\n"])));
|
|
43
|
+
const Message = _styledComponents.default.p(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin-top: var(--spacing);\n font-size: var(--font-h2);\n"])));
|
|
44
|
+
var _default = exports.default = QRCodeBox;
|
|
@@ -4,20 +4,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
|
|
10
8
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
|
|
12
9
|
var _templateObject, _templateObject2;
|
|
13
|
-
|
|
14
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
16
11
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
const QRCodeContainter = _ref => {
|
|
13
|
+
let {
|
|
14
|
+
src,
|
|
15
|
+
alt
|
|
16
|
+
} = _ref;
|
|
21
17
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Figure, {
|
|
22
18
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Image, {
|
|
23
19
|
src: src,
|
|
@@ -25,10 +21,6 @@ var QRCodeContainter = function QRCodeContainter(_ref) {
|
|
|
25
21
|
})
|
|
26
22
|
});
|
|
27
23
|
};
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
var Image = _styledComponents.default.img(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n height: 100%;\n object-fit: contain;\n border-radius: var(--border-radius);\n"])));
|
|
32
|
-
|
|
33
|
-
var _default = QRCodeContainter;
|
|
34
|
-
exports.default = _default;
|
|
24
|
+
const Figure = _styledComponents.default.figure(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n height: 240px;\n padding: var(--spacing-s);\n text-align: center;\n border: var(--border-width) solid var(--border-color);\n border-radius: var(--border-radius);\n"])));
|
|
25
|
+
const Image = _styledComponents.default.img(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n height: 100%;\n object-fit: contain;\n border-radius: var(--border-radius);\n"])));
|
|
26
|
+
var _default = exports.default = QRCodeContainter;
|
package/qrcode/index.js
CHANGED
|
@@ -5,19 +5,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
Object.defineProperty(exports, "QRCode", {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: function
|
|
8
|
+
get: function () {
|
|
9
9
|
return _QRCode.default;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "QRCodeContainter", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function
|
|
14
|
+
get: function () {
|
|
15
15
|
return _QRCodeContainter.default;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
|
|
19
18
|
var _QRCode = _interopRequireDefault(require("./QRCode"));
|
|
20
|
-
|
|
21
19
|
var _QRCodeContainter = _interopRequireDefault(require("./QRCodeContainter"));
|
|
22
|
-
|
|
23
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
package/ribbon/Ribbon.js
CHANGED
|
@@ -4,25 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
|
|
10
8
|
var _backgroundColor = _interopRequireDefault(require("../styles/mixin/backgroundColor"));
|
|
11
|
-
|
|
12
9
|
var _colorOnBackground = _interopRequireDefault(require("../styles/mixin/colorOnBackground"));
|
|
13
|
-
|
|
14
10
|
var _templateObject, _templateObject2;
|
|
15
|
-
|
|
16
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
|
|
18
12
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
var RibbonContent = _styledComponents.default.span(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: absolute;\n text-transform: uppercase;\n text-align: center;\n display: block;\n width: 200px;\n transform: rotate(-45deg);\n top: 25px;\n right: -25px;\n padding: 5px 0;\n\n &::before,\n &::after {\n display: block;\n content: '';\n border: 1px solid rgba(255, 255, 255, 0.4);\n }\n\n ", "\n ", "\n"])), _backgroundColor.default, _colorOnBackground.default);
|
|
23
|
-
|
|
24
|
-
var _default = Object.assign(Ribbon, {
|
|
13
|
+
const Ribbon = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 120px;\n height: 120px;\n position: absolute;\n overflow: hidden;\n top: -3px;\n left: -3px;\n"])));
|
|
14
|
+
const RibbonContent = _styledComponents.default.span(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: absolute;\n text-transform: uppercase;\n text-align: center;\n display: block;\n width: 200px;\n transform: rotate(-45deg);\n top: 25px;\n right: -25px;\n padding: 5px 0;\n\n &::before,\n &::after {\n display: block;\n content: '';\n border: 1px solid rgba(255, 255, 255, 0.4);\n }\n\n ", "\n ", "\n"])), _backgroundColor.default, _colorOnBackground.default);
|
|
15
|
+
var _default = exports.default = Object.assign(Ribbon, {
|
|
25
16
|
Content: RibbonContent
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
exports.default = _default;
|
|
17
|
+
});
|
package/ribbon/index.js
CHANGED
|
@@ -5,11 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
Object.defineProperty(exports, "Ribbon", {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: function
|
|
8
|
+
get: function () {
|
|
9
9
|
return _Ribbon.default;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
|
|
13
12
|
var _Ribbon = _interopRequireDefault(require("./Ribbon"));
|
|
14
|
-
|
|
15
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
package/section/Section.js
CHANGED
|
@@ -4,64 +4,82 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
|
|
10
8
|
var _bgChartTriangle = _interopRequireDefault(require("../assets/images/bg-chart-triangle.png"));
|
|
11
|
-
|
|
12
9
|
var _bgChartCircle = _interopRequireDefault(require("../assets/images/bg-chart-circle.png"));
|
|
13
|
-
|
|
14
10
|
var _map = _interopRequireDefault(require("../assets/images/map.png"));
|
|
15
|
-
|
|
16
11
|
var _templateObject;
|
|
17
|
-
|
|
18
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
-
|
|
20
13
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
const Section = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: var(--color-background1);\n border-radius: var(--border-radius);\n color: var(--font-on-background);\n padding: var(--spacing);\n margin-bottom: var(--spacing);\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n \n ", "\n"])), _ref => {
|
|
15
|
+
let {
|
|
16
|
+
backgroundReverse
|
|
17
|
+
} = _ref;
|
|
24
18
|
return backgroundReverse && 'background: var(--color-background2);';
|
|
25
|
-
},
|
|
26
|
-
|
|
19
|
+
}, _ref2 => {
|
|
20
|
+
let {
|
|
21
|
+
paddingS
|
|
22
|
+
} = _ref2;
|
|
27
23
|
return paddingS && 'padding: var(--spacing-s);';
|
|
28
|
-
},
|
|
29
|
-
|
|
24
|
+
}, _ref3 => {
|
|
25
|
+
let {
|
|
26
|
+
paddingXS
|
|
27
|
+
} = _ref3;
|
|
30
28
|
return paddingXS && 'padding: var(--spacing-xs);';
|
|
31
|
-
},
|
|
32
|
-
|
|
29
|
+
}, _ref4 => {
|
|
30
|
+
let {
|
|
31
|
+
noPadding
|
|
32
|
+
} = _ref4;
|
|
33
33
|
return noPadding && 'padding: 0;';
|
|
34
|
-
},
|
|
35
|
-
|
|
34
|
+
}, _ref5 => {
|
|
35
|
+
let {
|
|
36
|
+
noPaddingX
|
|
37
|
+
} = _ref5;
|
|
36
38
|
return noPaddingX && 'padding-left: 0; padding-right: 0;';
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
+
}, _ref6 => {
|
|
40
|
+
let {
|
|
41
|
+
noPaddingTop
|
|
42
|
+
} = _ref6;
|
|
39
43
|
return noPaddingTop && 'padding-top: 0;';
|
|
40
|
-
},
|
|
41
|
-
|
|
44
|
+
}, _ref7 => {
|
|
45
|
+
let {
|
|
46
|
+
noPaddingBottom
|
|
47
|
+
} = _ref7;
|
|
42
48
|
return noPaddingBottom && 'padding-bottom: 0;';
|
|
43
|
-
},
|
|
44
|
-
|
|
49
|
+
}, _ref8 => {
|
|
50
|
+
let {
|
|
51
|
+
marginBottomS
|
|
52
|
+
} = _ref8;
|
|
45
53
|
return marginBottomS && 'margin-bottom: var(--spacing-s);';
|
|
46
|
-
},
|
|
47
|
-
|
|
54
|
+
}, _ref9 => {
|
|
55
|
+
let {
|
|
56
|
+
noMarginBottom
|
|
57
|
+
} = _ref9;
|
|
48
58
|
return noMarginBottom && 'margin-bottom: 0;';
|
|
49
|
-
},
|
|
50
|
-
|
|
59
|
+
}, _ref10 => {
|
|
60
|
+
let {
|
|
61
|
+
fullHeight
|
|
62
|
+
} = _ref10;
|
|
51
63
|
return fullHeight && 'height: calc(100% - var(--spacing));';
|
|
52
|
-
},
|
|
53
|
-
|
|
64
|
+
}, _ref11 => {
|
|
65
|
+
let {
|
|
66
|
+
backgroundMarker
|
|
67
|
+
} = _ref11;
|
|
54
68
|
return backgroundMarker && "\n background: var(--color-background2);\n background-image: url(".concat(_bgChartCircle.default, "), url(").concat(_bgChartTriangle.default, ");\n background-repeat: no-repeat;\n background-position: left top, right bottom;\n background-size: 337px 312px, 166px 225px;\n ");
|
|
55
|
-
},
|
|
56
|
-
|
|
69
|
+
}, _ref12 => {
|
|
70
|
+
let {
|
|
71
|
+
backgroundMap
|
|
72
|
+
} = _ref12;
|
|
57
73
|
return backgroundMap && "\n background: var(--color-background2);\n background-image: url(".concat(_map.default, ");\n background-repeat: no-repeat;\n background-size: cover;\n ");
|
|
58
|
-
},
|
|
59
|
-
|
|
74
|
+
}, _ref13 => {
|
|
75
|
+
let {
|
|
76
|
+
border
|
|
77
|
+
} = _ref13;
|
|
60
78
|
return border && 'border: var(--border-width) solid var(--border-color);';
|
|
61
|
-
},
|
|
62
|
-
|
|
79
|
+
}, _ref14 => {
|
|
80
|
+
let {
|
|
81
|
+
checkboxGroup
|
|
82
|
+
} = _ref14;
|
|
63
83
|
return checkboxGroup && "\n background: transparent;\n width: 50%;\n margin-left: auto;\n margin-right: auto;\n ";
|
|
64
84
|
});
|
|
65
|
-
|
|
66
|
-
var _default = Section;
|
|
67
|
-
exports.default = _default;
|
|
85
|
+
var _default = exports.default = Section;
|
package/section/SectionBody.js
CHANGED
|
@@ -1,38 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
6
|
exports.default = void 0;
|
|
9
|
-
|
|
10
7
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
11
|
-
|
|
12
8
|
var _scrollbar = _interopRequireDefault(require("../styles/mixin/scrollbar"));
|
|
13
|
-
|
|
14
9
|
var _media = _interopRequireDefault(require("../styles/mixin/media"));
|
|
15
|
-
|
|
16
10
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
17
|
-
|
|
18
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
-
|
|
20
|
-
function
|
|
21
|
-
|
|
22
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
|
-
|
|
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); }
|
|
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 && Object.prototype.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; }
|
|
24
14
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
15
|
+
const SectionBody = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n // fix: overflow element(relate to z-index problem)\n // position: relative;\n background: transparent;\n padding: var(--spacing) 0 0 0;\n\n ", "\n\n ", "\n\n ", "\n"])), _ref => {
|
|
16
|
+
let {
|
|
17
|
+
noPadding
|
|
18
|
+
} = _ref;
|
|
28
19
|
return noPadding && 'padding: 0;';
|
|
29
|
-
},
|
|
30
|
-
|
|
20
|
+
}, _ref2 => {
|
|
21
|
+
let {
|
|
22
|
+
maxHeight
|
|
23
|
+
} = _ref2;
|
|
31
24
|
return maxHeight && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n max-height: ", "px;\n overflow-y: auto;\n overflow-x: hidden;\n ", "\n "])), maxHeight, _scrollbar.default);
|
|
32
|
-
},
|
|
33
|
-
|
|
25
|
+
}, _ref3 => {
|
|
26
|
+
let {
|
|
27
|
+
maxHeightLaptop
|
|
28
|
+
} = _ref3;
|
|
34
29
|
return maxHeightLaptop && (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n ", "\n "])), _media.default.laptop(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n max-height: ", "px;\n overflow-y: auto;\n overflow-x: hidden;\n ", "\n "])), maxHeightLaptop, _scrollbar.default));
|
|
35
30
|
});
|
|
36
|
-
|
|
37
|
-
var _default = SectionBody;
|
|
38
|
-
exports.default = _default;
|
|
31
|
+
var _default = exports.default = SectionBody;
|
package/section/SectionHeader.js
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
6
|
exports.default = void 0;
|
|
9
|
-
|
|
10
7
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
11
|
-
|
|
12
8
|
var _header = _interopRequireDefault(require("../styles/config/header.style"));
|
|
13
|
-
|
|
14
9
|
var _templateObject, _templateObject2;
|
|
15
|
-
|
|
16
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
|
|
18
|
-
function
|
|
19
|
-
|
|
20
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
|
-
|
|
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); }
|
|
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 && Object.prototype.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; }
|
|
22
13
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
14
|
+
const SectionHeader = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: transparent;\n padding: 0;\n margin-bottom: calc(var(--spacing-s) * -1);\n\n > * {\n padding-bottom: var(--spacing-s);\n }\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), _ref => {
|
|
15
|
+
let {
|
|
16
|
+
inline
|
|
17
|
+
} = _ref;
|
|
26
18
|
return inline && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n "])));
|
|
27
|
-
},
|
|
28
|
-
|
|
19
|
+
}, _ref2 => {
|
|
20
|
+
let {
|
|
21
|
+
flexStart
|
|
22
|
+
} = _ref2;
|
|
29
23
|
return flexStart && 'justify-content: flex-start;';
|
|
30
|
-
},
|
|
31
|
-
|
|
24
|
+
}, _ref3 => {
|
|
25
|
+
let {
|
|
26
|
+
border
|
|
27
|
+
} = _ref3;
|
|
32
28
|
return border && 'border-bottom: var(--border-width) solid var(--border-color);';
|
|
33
|
-
},
|
|
34
|
-
|
|
29
|
+
}, _ref4 => {
|
|
30
|
+
let {
|
|
31
|
+
backgroundFill
|
|
32
|
+
} = _ref4;
|
|
35
33
|
return backgroundFill && 'background: var(--color-background1);';
|
|
36
|
-
},
|
|
37
|
-
|
|
34
|
+
}, _ref5 => {
|
|
35
|
+
let {
|
|
36
|
+
backgroundReverse
|
|
37
|
+
} = _ref5;
|
|
38
38
|
return backgroundReverse && 'background: var(--color-background2);';
|
|
39
|
-
},
|
|
40
|
-
|
|
39
|
+
}, _ref6 => {
|
|
40
|
+
let {
|
|
41
|
+
sticky
|
|
42
|
+
} = _ref6;
|
|
41
43
|
return sticky && "position: sticky;\n z-index:20;\n top: ".concat(_header.default.height, ";\n ");
|
|
42
44
|
});
|
|
43
|
-
|
|
44
|
-
var _default = SectionHeader;
|
|
45
|
-
exports.default = _default;
|
|
45
|
+
var _default = exports.default = SectionHeader;
|
|
@@ -4,16 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
|
|
10
8
|
var _templateObject;
|
|
11
|
-
|
|
12
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
14
10
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
15
|
-
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
var _default = SectionToolbar;
|
|
19
|
-
exports.default = _default;
|
|
11
|
+
const SectionToolbar = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n > *:not(:first-child) {\n margin-left: var(--spacing-s);\n }\n"])));
|
|
12
|
+
var _default = exports.default = SectionToolbar;
|