@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.
Files changed (229) hide show
  1. package/Tab/Tab.js +9 -13
  2. package/Tab/TabList.js +14 -32
  3. package/Tab/TabPanel.js +21 -58
  4. package/Tab/TabTab.js +20 -40
  5. package/Tab/index.js +2 -10
  6. package/Tab/subComponent/TabContext.js +2 -5
  7. package/animate/Collapse.js +26 -53
  8. package/animate/Loader.js +21 -26
  9. package/animate/NumberCounter.js +22 -44
  10. package/animate/PulseRing.js +9 -21
  11. package/animate/Spinner.js +2 -10
  12. package/animate/index.js +5 -11
  13. package/backdrop/BaseBackdrop.js +2 -9
  14. package/backdrop/LoadingBackdrop.js +2 -9
  15. package/backdrop/ModalBackdrop.js +2 -9
  16. package/backdrop/index.js +3 -7
  17. package/badge/Badge.js +2 -11
  18. package/badge/BadgeDot.js +2 -10
  19. package/badge/BadgeFill.js +15 -20
  20. package/badge/BadgeWithText.js +6 -13
  21. package/badge/index.js +4 -9
  22. package/billing/BarChart.js +10 -17
  23. package/billing/Grid.js +11 -15
  24. package/billing/Header2.js +6 -9
  25. package/billing/Header3.js +9 -16
  26. package/billing/Paragraph.js +8 -14
  27. package/billing/ParagraphGroup.js +6 -9
  28. package/billing/ParagraphText.js +7 -12
  29. package/billing/Section.js +13 -23
  30. package/billing/SectionBody.js +5 -8
  31. package/billing/SectionHeader.js +7 -12
  32. package/breadcrumb/Breadcrumb.js +11 -21
  33. package/breadcrumb/index.js +1 -3
  34. package/button/Button.js +41 -38
  35. package/button/ButtonGroup.js +21 -18
  36. package/button/IconButton.js +29 -29
  37. package/button/ScrollToTopButton.js +12 -39
  38. package/button/index.js +4 -9
  39. package/callout/Callout.js +13 -26
  40. package/callout/index.js +1 -3
  41. package/chart/BarChart.js +28 -53
  42. package/chart/DoughnutChart.js +23 -62
  43. package/chart/LineChart.js +33 -55
  44. package/chart/SingleBarChart.js +11 -17
  45. package/chart/index.js +5 -12
  46. package/chart/utils/customTooltip.js +26 -43
  47. package/chart/utils/htmlLegendPlugin.js +24 -30
  48. package/chart/utils/index.js +3 -7
  49. package/chart/utils/padEmptyChartBar.js +24 -22
  50. package/container/FlexContainer.js +9 -12
  51. package/container/index.js +1 -3
  52. package/cropper/Cropper.js +21 -34
  53. package/cropper/CropperModalHandler.js +15 -21
  54. package/cropper/index.js +2 -5
  55. package/cropper/subComponent/CropImageModal.js +23 -58
  56. package/datetimePicker/DatePicker.js +103 -217
  57. package/datetimePicker/DatePickerV2.js +116 -221
  58. package/datetimePicker/DatetimePicker.js +27 -48
  59. package/datetimePicker/DatetimePickerV2.js +115 -231
  60. package/datetimePicker/TimeInput.js +9 -22
  61. package/datetimePicker/TimePicker.js +94 -151
  62. package/datetimePicker/TimePickerStyle.js +2 -9
  63. package/datetimePicker/accordion/Month.js +70 -90
  64. package/datetimePicker/accordion/Year.js +91 -135
  65. package/datetimePicker/hooks/index.js +3 -7
  66. package/datetimePicker/hooks/useChangeNumber.js +14 -27
  67. package/datetimePicker/hooks/useDecrease.js +19 -35
  68. package/datetimePicker/hooks/useIncrease.js +19 -35
  69. package/datetimePicker/index.js +7 -15
  70. package/datetimePicker/provider/constant.js +2 -3
  71. package/datetimePicker/subComponent/Accordion.js +108 -158
  72. package/datetimePicker/subComponent/CustomTimeInput.js +18 -48
  73. package/datetimePicker/subComponent/DateTimePickerContext.js +2 -5
  74. package/datetimePicker/utils/GMTDate.js +3 -7
  75. package/datetimePicker/utils/pad.js +2 -6
  76. package/datetimePicker/utils/toUTC0.js +3 -6
  77. package/descriptionList/DescriptionDetail.js +5 -10
  78. package/descriptionList/DescriptionList.js +5 -10
  79. package/descriptionList/DescriptionTerm.js +2 -9
  80. package/descriptionList/index.js +3 -7
  81. package/divider/Divider.js +9 -12
  82. package/divider/index.js +1 -3
  83. package/dropdown/Dropdown.js +28 -65
  84. package/dropdown/DropdownButtonOption.js +2 -9
  85. package/dropdown/DropdownContent.js +33 -64
  86. package/dropdown/DropdownDivOption.js +2 -9
  87. package/dropdown/DropdownItem.js +10 -16
  88. package/dropdown/DropdownLinkOption.js +2 -9
  89. package/dropdown/DropdownToggle.js +18 -38
  90. package/dropdown/index.js +6 -17
  91. package/dropdown/subComponent/DropdownContext.js +2 -5
  92. package/dropzone/FileDropzone.js +148 -302
  93. package/dropzone/ImageDropzone.js +96 -171
  94. package/dropzone/index.js +2 -5
  95. package/dropzone/subComponent/Message.js +7 -14
  96. package/figure/IconFigure.js +9 -16
  97. package/figure/ImageFigure.js +11 -17
  98. package/figure/index.js +2 -5
  99. package/file/HiddenFileInput.js +5 -14
  100. package/file/index.js +1 -3
  101. package/form/Checkbox.js +34 -43
  102. package/form/FormItem.js +2 -9
  103. package/form/Input.js +13 -15
  104. package/form/Label.js +10 -13
  105. package/form/MutedText.js +5 -10
  106. package/form/RadioButton.js +20 -32
  107. package/form/Searchbox.js +21 -65
  108. package/form/Slider.js +14 -0
  109. package/form/SwitchButton.js +34 -39
  110. package/form/Textarea.js +2 -11
  111. package/form/index.js +9 -19
  112. package/grid/Column.js +17 -17
  113. package/grid/Grid.js +13 -14
  114. package/grid/index.js +2 -5
  115. package/heading/Heading1.js +5 -10
  116. package/heading/Heading2.js +9 -12
  117. package/heading/Heading3.js +21 -18
  118. package/heading/index.js +3 -7
  119. package/helmet/Helmet.js +6 -9
  120. package/helmet/index.js +2 -5
  121. package/iconbox/ApplicationIconBox.js +25 -31
  122. package/iconbox/IconBox.js +11 -24
  123. package/iconbox/IconBoxV2.js +14 -26
  124. package/iconbox/index.js +3 -7
  125. package/iconbox/subComponent/IconBoxFigure.js +25 -20
  126. package/iconbox/subComponent/IconBoxImage.js +15 -18
  127. package/image/ImageFluid.js +2 -10
  128. package/image/UploadImage.js +65 -113
  129. package/image/index.js +2 -5
  130. package/index.js +44 -130
  131. package/jsoneditor/JsonEditor.js +10 -32
  132. package/jsoneditor/index.js +1 -3
  133. package/keyframe/Pulse.js +2 -7
  134. package/keyframe/Spin.js +2 -7
  135. package/link/LinkSpan.js +22 -35
  136. package/link/index.js +1 -3
  137. package/map/GoogleMap.js +122 -175
  138. package/map/GoogleReverseGeolocation.js +79 -186
  139. package/map/LeafletMap.js +78 -132
  140. package/map/LeafletReverseGeolocation.js +49 -121
  141. package/map/index.js +4 -9
  142. package/map/subComponent/BasicLeafletMap.js +8 -14
  143. package/map/subComponent/GoogleMapContainer.js +5 -10
  144. package/map/subComponent/GoogleMapPopup.js +66 -123
  145. package/map/subComponent/GoogleMapWrapper.js +13 -32
  146. package/map/subComponent/GoogleMarkerSpiderfier.js +14 -24
  147. package/map/subComponent/LeafletDrawControl.js +47 -84
  148. package/map/subComponent/LeafletMapContainer.js +5 -10
  149. package/map/subComponent/MapSearchBoxControl.js +24 -70
  150. package/modal/StateModal.js +41 -100
  151. package/modal/TitleModal.js +89 -190
  152. package/modal/index.js +2 -5
  153. package/package.json +1 -1
  154. package/paginate/Paginate.js +40 -54
  155. package/paginate/index.js +1 -3
  156. package/popover/Popover.js +39 -87
  157. package/popover/index.js +1 -3
  158. package/qrcode/QRCode.js +10 -23
  159. package/qrcode/QRCodeContainter.js +8 -16
  160. package/qrcode/index.js +2 -5
  161. package/ribbon/Ribbon.js +4 -15
  162. package/ribbon/index.js +1 -3
  163. package/section/Section.js +57 -39
  164. package/section/SectionBody.js +15 -22
  165. package/section/SectionHeader.js +27 -27
  166. package/section/SectionToolbar.js +2 -9
  167. package/section/SectionToolbarItem.js +2 -9
  168. package/section/index.js +5 -11
  169. package/select/InputSelect.js +103 -215
  170. package/select/Select.js +204 -362
  171. package/select/index.js +2 -5
  172. package/select/subComponent/ListBox.js +9 -12
  173. package/select/subComponent/Option.js +8 -16
  174. package/select/subComponent/OptionGroup.js +2 -9
  175. package/select/subComponent/Options.js +5 -11
  176. package/select/subComponent/SearchBox.js +9 -29
  177. package/select/subComponent/SelectedMultiple.js +8 -16
  178. package/select/subComponent/SelectedSingle.js +2 -9
  179. package/styles/GlobalStyle.js +169 -91
  180. package/styles/config/breakpoint.style.js +2 -3
  181. package/styles/config/header.style.js +2 -3
  182. package/styles/config/sidebar.style.js +2 -3
  183. package/styles/index.js +2 -5
  184. package/styles/mixin/backgroundColor.js +17 -14
  185. package/styles/mixin/borderColor.js +17 -14
  186. package/styles/mixin/color.js +17 -14
  187. package/styles/mixin/colorOnBackground.js +17 -14
  188. package/styles/mixin/inputPlaceholder.js +3 -9
  189. package/styles/mixin/media.js +3 -11
  190. package/styles/mixin/rounded.js +13 -12
  191. package/styles/mixin/scrollbar.js +7 -13
  192. package/styles/theme/dark.theme.js +20 -20
  193. package/styles/theme/light.theme.js +20 -20
  194. package/styles/theme/white.theme.js +20 -20
  195. package/styles/themes.js +2 -8
  196. package/table/GridTable.js +105 -143
  197. package/table/ImageBox.js +8 -18
  198. package/table/PermissionTable.js +25 -25
  199. package/table/Table.js +137 -153
  200. package/table/__mock__/columns.js +2 -3
  201. package/table/__mock__/data.js +2 -3
  202. package/table/hooks/index.js +2 -5
  203. package/table/hooks/useCalculateDataRange.js +9 -36
  204. package/table/hooks/useGenerateSort.js +6 -17
  205. package/table/index.js +4 -9
  206. package/table/subComponent/BaseTableHeadCell.js +15 -21
  207. package/table/subComponent/GridTableFooter.js +5 -10
  208. package/table/subComponent/GridTableHeadCell.js +5 -10
  209. package/table/subComponent/Resizer.js +17 -44
  210. package/table/subComponent/TableFooter.js +5 -10
  211. package/table/subComponent/TableFooterInfo.js +2 -9
  212. package/table/subComponent/TableFooterPager.js +5 -12
  213. package/table/subComponent/TableHeadCell.js +2 -9
  214. package/table/subComponent/TableSort.js +13 -19
  215. package/tagify/TagifyStyle.js +2 -9
  216. package/tagify/Tags.js +15 -37
  217. package/tagify/index.js +2 -5
  218. package/text/Paragraph.js +25 -20
  219. package/text/index.js +1 -3
  220. package/timeline/Timeline.js +28 -37
  221. package/timeline/index.js +1 -3
  222. package/toast/CustomToastContainer.js +2 -9
  223. package/toast/MessageContainer.js +9 -18
  224. package/toast/index.js +3 -8
  225. package/toast/show.js +18 -28
  226. package/tooltip/Tooltip.js +48 -97
  227. package/tooltip/index.js +1 -3
  228. package/wizard/Wizard.js +63 -133
  229. package/wizard/index.js +1 -3
@@ -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 _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
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
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
37
-
38
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
39
-
40
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
41
-
42
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
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
- var result = document.getElementById("popover".concat(id)); // found previous element mean want to close popover now, so remove it
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
- _reactDom.default.render( /*#__PURE__*/(0, _jsxRuntime.jsx)(Box, _objectSpread(_objectSpread({}, props), {}, {
37
+ _reactDom.default.render( /*#__PURE__*/(0, _jsxRuntime.jsx)(Box, {
38
+ ...props,
79
39
  id: "popover".concat(id),
80
40
  handleClose: handleClose
81
- })), rootElement);
41
+ }), rootElement);
82
42
  };
83
-
84
- var Box = function Box(_ref2) {
85
- var target = _ref2.target,
86
- id = _ref2.id,
87
- handleClose = _ref2.handleClose,
88
- content = _ref2.content,
89
- boundary = _ref2.boundary;
90
-
91
- var _useState = (0, _react.useState)(null),
92
- _useState2 = _slicedToArray(_useState, 2),
93
- popoverElement = _useState2[0],
94
- setTooltipElement = _useState2[1];
95
-
96
- var _useCustomPopper = (0, _hooks.useCustomPopper)(target, popoverElement, {
97
- boundary: 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: function onOutsideClick(event) {
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, _objectSpread(_objectSpread({
66
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(PopoverBox, {
111
67
  id: id,
112
68
  ref: setTooltipElement,
113
- style: styles.popper
114
- }, attributes.popper), {}, {
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
- var Wrapper = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n"])));
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 get() {
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
- var QRCodeBox = function QRCodeBox(_ref) {
23
- var content = _ref.content,
24
- _ref$options = _ref.options,
25
- options = _ref$options === void 0 ? {} : _ref$options;
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
- var Wrapper = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n color: var(--font-on-background);\n text-align: center;\n font-weight: var(--font-bold);\n"])));
49
-
50
- var 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"])));
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
- var QRCodeContainter = function QRCodeContainter(_ref) {
19
- var src = _ref.src,
20
- alt = _ref.alt;
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
- var 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"])));
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 get() {
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 get() {
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
- var 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"])));
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 get() {
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 }; }
@@ -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
- var 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"])), function (_ref) {
23
- var backgroundReverse = _ref.backgroundReverse;
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
- }, function (_ref2) {
26
- var paddingS = _ref2.paddingS;
19
+ }, _ref2 => {
20
+ let {
21
+ paddingS
22
+ } = _ref2;
27
23
  return paddingS && 'padding: var(--spacing-s);';
28
- }, function (_ref3) {
29
- var paddingXS = _ref3.paddingXS;
24
+ }, _ref3 => {
25
+ let {
26
+ paddingXS
27
+ } = _ref3;
30
28
  return paddingXS && 'padding: var(--spacing-xs);';
31
- }, function (_ref4) {
32
- var noPadding = _ref4.noPadding;
29
+ }, _ref4 => {
30
+ let {
31
+ noPadding
32
+ } = _ref4;
33
33
  return noPadding && 'padding: 0;';
34
- }, function (_ref5) {
35
- var noPaddingX = _ref5.noPaddingX;
34
+ }, _ref5 => {
35
+ let {
36
+ noPaddingX
37
+ } = _ref5;
36
38
  return noPaddingX && 'padding-left: 0; padding-right: 0;';
37
- }, function (_ref6) {
38
- var noPaddingTop = _ref6.noPaddingTop;
39
+ }, _ref6 => {
40
+ let {
41
+ noPaddingTop
42
+ } = _ref6;
39
43
  return noPaddingTop && 'padding-top: 0;';
40
- }, function (_ref7) {
41
- var noPaddingBottom = _ref7.noPaddingBottom;
44
+ }, _ref7 => {
45
+ let {
46
+ noPaddingBottom
47
+ } = _ref7;
42
48
  return noPaddingBottom && 'padding-bottom: 0;';
43
- }, function (_ref8) {
44
- var marginBottomS = _ref8.marginBottomS;
49
+ }, _ref8 => {
50
+ let {
51
+ marginBottomS
52
+ } = _ref8;
45
53
  return marginBottomS && 'margin-bottom: var(--spacing-s);';
46
- }, function (_ref9) {
47
- var noMarginBottom = _ref9.noMarginBottom;
54
+ }, _ref9 => {
55
+ let {
56
+ noMarginBottom
57
+ } = _ref9;
48
58
  return noMarginBottom && 'margin-bottom: 0;';
49
- }, function (_ref10) {
50
- var fullHeight = _ref10.fullHeight;
59
+ }, _ref10 => {
60
+ let {
61
+ fullHeight
62
+ } = _ref10;
51
63
  return fullHeight && 'height: calc(100% - var(--spacing));';
52
- }, function (_ref11) {
53
- var backgroundMarker = _ref11.backgroundMarker;
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
- }, function (_ref12) {
56
- var backgroundMap = _ref12.backgroundMap;
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
- }, function (_ref13) {
59
- var border = _ref13.border;
74
+ }, _ref13 => {
75
+ let {
76
+ border
77
+ } = _ref13;
60
78
  return border && 'border: var(--border-width) solid var(--border-color);';
61
- }, function (_ref14) {
62
- var checkboxGroup = _ref14.checkboxGroup;
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;
@@ -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 _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
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
- var 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"])), function (_ref) {
27
- var noPadding = _ref.noPadding;
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
- }, function (_ref2) {
30
- var maxHeight = _ref2.maxHeight;
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
- }, function (_ref3) {
33
- var maxHeightLaptop = _ref3.maxHeightLaptop;
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;
@@ -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 _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
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
- var 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"])), function (_ref) {
25
- var inline = _ref.inline;
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
- }, function (_ref2) {
28
- var flexStart = _ref2.flexStart;
19
+ }, _ref2 => {
20
+ let {
21
+ flexStart
22
+ } = _ref2;
29
23
  return flexStart && 'justify-content: flex-start;';
30
- }, function (_ref3) {
31
- var border = _ref3.border;
24
+ }, _ref3 => {
25
+ let {
26
+ border
27
+ } = _ref3;
32
28
  return border && 'border-bottom: var(--border-width) solid var(--border-color);';
33
- }, function (_ref4) {
34
- var backgroundFill = _ref4.backgroundFill;
29
+ }, _ref4 => {
30
+ let {
31
+ backgroundFill
32
+ } = _ref4;
35
33
  return backgroundFill && 'background: var(--color-background1);';
36
- }, function (_ref5) {
37
- var backgroundReverse = _ref5.backgroundReverse;
34
+ }, _ref5 => {
35
+ let {
36
+ backgroundReverse
37
+ } = _ref5;
38
38
  return backgroundReverse && 'background: var(--color-background2);';
39
- }, function (_ref6) {
40
- var sticky = _ref6.sticky;
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 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"])));
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;