@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
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.MONTH = void 0;
7
- var MONTH = [{
7
+ const MONTH = exports.MONTH = [{
8
8
  number: '01',
9
9
  text: 'Jan'
10
10
  }, {
@@ -40,5 +40,4 @@ var MONTH = [{
40
40
  }, {
41
41
  number: '12',
42
42
  text: 'Dec'
43
- }];
44
- exports.MONTH = MONTH;
43
+ }];
@@ -1,57 +1,22 @@
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 _md = require("react-icons/md");
13
-
14
9
  var _io = require("react-icons/io");
15
-
16
10
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
17
-
18
11
  var _utils = require("@cashub/utils");
19
-
20
12
  var _scrollbar = _interopRequireDefault(require("../../styles/mixin/scrollbar"));
21
-
22
13
  var _jsxRuntime = require("react/jsx-runtime");
23
-
24
14
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
25
-
26
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
27
-
28
- 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); }
29
-
30
- 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; }
31
-
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; }
32
18
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
33
-
34
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
35
-
36
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
37
-
38
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
39
-
40
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
41
-
42
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
43
-
44
- 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."); }
45
-
46
- 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); }
47
-
48
- 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; }
49
-
50
- 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; }
51
-
52
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
53
-
54
- var monthArr = [{
19
+ const monthArr = [{
55
20
  number: '01',
56
21
  name: 'Jan'
57
22
  }, {
@@ -88,73 +53,59 @@ var monthArr = [{
88
53
  number: '12',
89
54
  name: 'Dec'
90
55
  }];
91
-
92
- var Accordion = function Accordion(_ref) {
93
- var type = _ref.type,
94
- handleDisplayAccordionContent = _ref.handleDisplayAccordionContent,
95
- handleChangeTitle = _ref.handleChangeTitle,
96
- setCurrentDisplayType = _ref.setCurrentDisplayType,
97
- currentDisplayType = _ref.currentDisplayType,
98
- selectedYear = _ref.selectedYear,
99
- setSelectedYear = _ref.setSelectedYear,
100
- selectedMonth = _ref.selectedMonth,
101
- setSelectedMonth = _ref.setSelectedMonth,
102
- fixedYear = _ref.fixedYear,
103
- minDate = _ref.minDate,
104
- maxDate = _ref.maxDate,
105
- selectedDay = _ref.selectedDay;
106
- var bodyRef = (0, _react.useRef)(null);
107
- var selectedYearRef = (0, _react.useRef)(null);
108
-
109
- var _useState = (0, _react.useState)(false),
110
- _useState2 = _slicedToArray(_useState, 2),
111
- display = _useState2[0],
112
- setDisplay = _useState2[1];
113
-
114
- var _useState3 = (0, _react.useState)([]),
115
- _useState4 = _slicedToArray(_useState3, 2),
116
- yearArr = _useState4[0],
117
- setYearArr = _useState4[1];
118
-
119
- var minYear = minDate ? new Date(minDate).getFullYear() : 1;
120
- var minMonth = minDate ? new Date(minDate).getMonth() : null;
121
- var maxYear = maxDate ? new Date(maxDate).getFullYear() : null;
122
- var maxMonth = maxDate ? new Date(maxDate).getMonth() : null;
123
-
124
- var accordionTitle = function accordionTitle() {
56
+ const Accordion = _ref => {
57
+ let {
58
+ type,
59
+ handleDisplayAccordionContent,
60
+ handleChangeTitle,
61
+ setCurrentDisplayType,
62
+ currentDisplayType,
63
+ selectedYear,
64
+ setSelectedYear,
65
+ selectedMonth,
66
+ setSelectedMonth,
67
+ fixedYear,
68
+ minDate,
69
+ maxDate,
70
+ selectedDay
71
+ } = _ref;
72
+ const bodyRef = (0, _react.useRef)(null);
73
+ const selectedYearRef = (0, _react.useRef)(null);
74
+ const [display, setDisplay] = (0, _react.useState)(false);
75
+ const [yearArr, setYearArr] = (0, _react.useState)([]);
76
+ const minYear = minDate ? new Date(minDate).getFullYear() : 1;
77
+ const minMonth = minDate ? new Date(minDate).getMonth() : null;
78
+ const maxYear = maxDate ? new Date(maxDate).getFullYear() : null;
79
+ const maxMonth = maxDate ? new Date(maxDate).getMonth() : null;
80
+ const accordionTitle = () => {
125
81
  if (type === 'year') {
126
82
  return selectedYear ? selectedYear : new Date().getFullYear();
127
83
  } else if (type === 'month') {
128
84
  var _monthArr;
129
-
130
85
  return (_monthArr = monthArr[selectedMonth ? selectedMonth : new Date().getMonth()]) === null || _monthArr === void 0 ? void 0 : _monthArr.name;
131
86
  }
132
87
  };
133
-
134
- var handleChangeMonth = (0, _react.useCallback)(function (month) {
88
+ const handleChangeMonth = (0, _react.useCallback)(month => {
135
89
  setSelectedMonth(month);
136
90
  setCurrentDisplayType(null);
137
91
  }, [setCurrentDisplayType, setSelectedMonth]);
138
- var handleChangeYear = (0, _react.useCallback)(function (year) {
92
+ const handleChangeYear = (0, _react.useCallback)(year => {
139
93
  setSelectedYear(year);
140
94
  setCurrentDisplayType(null);
141
95
  }, [setCurrentDisplayType, setSelectedYear]);
142
- var handleYearItemDisable = (0, _react.useCallback)(function (year) {
96
+ const handleYearItemDisable = (0, _react.useCallback)(year => {
143
97
  if (minDate !== undefined && maxDate !== undefined) {
144
98
  return !(minYear <= year && year <= maxYear);
145
99
  }
146
-
147
100
  if (minDate) {
148
101
  return minYear > year;
149
102
  } else if (maxDate) {
150
103
  return maxYear < year;
151
104
  }
152
-
153
105
  return false;
154
106
  }, [minYear, maxYear, maxDate, minDate]);
155
- var handleMonthItemDisable = (0, _react.useCallback)(function (month) {
156
- var date = (0, _utils.formatDate)(new Date(selectedYear, month, selectedDay));
157
-
107
+ const handleMonthItemDisable = (0, _react.useCallback)(month => {
108
+ const date = (0, _utils.formatDate)(new Date(selectedYear, month, selectedDay));
158
109
  if (minDate !== undefined && maxDate !== undefined) {
159
110
  return !(minDate <= date && date <= maxDate);
160
111
  } else if (minDate) {
@@ -162,10 +113,9 @@ var Accordion = function Accordion(_ref) {
162
113
  } else if (maxDate) {
163
114
  return !(date <= maxDate);
164
115
  }
165
-
166
116
  return false;
167
117
  }, [maxDate, minDate, selectedYear, selectedDay]);
168
- var handleDisableArrow = (0, _react.useCallback)(function (arrowType) {
118
+ const handleDisableArrow = (0, _react.useCallback)(arrowType => {
169
119
  if (type === 'year') {
170
120
  if (arrowType === 'previous') {
171
121
  return minYear > selectedYear - 1;
@@ -173,12 +123,10 @@ var Accordion = function Accordion(_ref) {
173
123
  if (maxYear) {
174
124
  return maxYear < selectedYear + 1;
175
125
  }
176
-
177
126
  return false;
178
127
  }
179
128
  } else if (type === 'month') {
180
- var date = arrowType === 'previous' ? (0, _utils.formatDate)(new Date(selectedYear, selectedMonth - 1 < 0 ? 11 : selectedMonth - 1, 1)) : (0, _utils.formatDate)(new Date(selectedYear, selectedMonth + 1 > 11 ? 0 : selectedMonth + 1, 1));
181
-
129
+ const date = arrowType === 'previous' ? (0, _utils.formatDate)(new Date(selectedYear, selectedMonth - 1 < 0 ? 11 : selectedMonth - 1, 1)) : (0, _utils.formatDate)(new Date(selectedYear, selectedMonth + 1 > 11 ? 0 : selectedMonth + 1, 1));
182
130
  if (fixedYear) {
183
131
  if (fixedYear && !minDate && !maxDate) {
184
132
  return false;
@@ -186,9 +134,8 @@ var Accordion = function Accordion(_ref) {
186
134
  } else if (!minDate && !maxDate) {
187
135
  return false;
188
136
  } else {
189
- var minDate1st = (0, _utils.formatDate)(new Date(minYear, minMonth, 1));
190
- var maxDate1st = (0, _utils.formatDate)(new Date(maxYear, maxMonth, 1));
191
-
137
+ const minDate1st = (0, _utils.formatDate)(new Date(minYear, minMonth, 1));
138
+ const maxDate1st = (0, _utils.formatDate)(new Date(maxYear, maxMonth, 1));
192
139
  if (minDate && !maxDate) {
193
140
  return !(minDate1st <= date);
194
141
  } else if (maxDate && !minDate) {
@@ -199,76 +146,71 @@ var Accordion = function Accordion(_ref) {
199
146
  }
200
147
  }
201
148
  }, [minDate, selectedYear, selectedMonth, minYear, type, fixedYear, maxDate, maxYear, maxMonth, minMonth]);
202
- var MonthContent = (0, _react.useMemo)(function () {
203
- return monthArr.map(function (month, index) {
204
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(Item, {
205
- selected: selectedMonth === index,
206
- onClick: function onClick() {
207
- handleChangeMonth(index);
208
- },
209
- disabled: handleMonthItemDisable(index),
210
- children: month.name
211
- }, month.number);
212
- });
149
+ const MonthContent = (0, _react.useMemo)(() => {
150
+ return monthArr.map((month, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(Item, {
151
+ selected: selectedMonth === index,
152
+ onClick: () => {
153
+ handleChangeMonth(index);
154
+ },
155
+ disabled: handleMonthItemDisable(index),
156
+ children: month.name
157
+ }, month.number));
213
158
  }, [handleChangeMonth, selectedMonth, handleMonthItemDisable]);
214
- var YearContent = (0, _react.useMemo)(function () {
215
- return yearArr.map(function (year, index) {
216
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(Item, {
217
- ref: selectedYear === year ? selectedYearRef : null,
218
- selected: selectedYear === year,
219
- onClick: function onClick() {
220
- handleChangeYear(year);
221
- },
222
- disabled: handleYearItemDisable(year),
223
- children: year
224
- }, index);
225
- });
159
+ const YearContent = (0, _react.useMemo)(() => {
160
+ return yearArr.map((year, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(Item, {
161
+ ref: selectedYear === year ? selectedYearRef : null,
162
+ selected: selectedYear === year,
163
+ onClick: () => {
164
+ handleChangeYear(year);
165
+ },
166
+ disabled: handleYearItemDisable(year),
167
+ children: year
168
+ }, index));
226
169
  }, [selectedYear, yearArr, handleChangeYear, handleYearItemDisable]);
227
- (0, _react.useEffect)(function () {
170
+ (0, _react.useEffect)(() => {
228
171
  if (!fixedYear) {
229
- var start = selectedYear - 16 ? selectedYear - 16 : 1;
230
- var end = selectedYear + 16;
231
- var yearRange = (0, _utils.generateRange)(start, end);
172
+ const start = selectedYear - 16 ? selectedYear - 16 : 1;
173
+ const end = selectedYear + 16;
174
+ const yearRange = (0, _utils.generateRange)(start, end);
232
175
  setYearArr(yearRange);
233
176
  }
234
177
  }, [fixedYear, selectedYear]);
235
- var scroll = (0, _react.useCallback)(function () {
178
+ const scroll = (0, _react.useCallback)(() => {
236
179
  if (bodyRef !== null && bodyRef !== void 0 && bodyRef.current && selectedYearRef !== null && selectedYearRef !== void 0 && selectedYearRef.current) {
237
- var body = bodyRef.current;
238
-
180
+ const body = bodyRef.current;
239
181
  if (body.scrollTop < 200) {
240
182
  body.removeEventListener('scroll', scroll);
241
- setTimeout(function () {
183
+ setTimeout(() => {
242
184
  body.scrollTo({
243
185
  top: body.scrollTop + 200
244
186
  });
245
187
  }, 400);
246
- setTimeout(function () {
247
- setYearArr(function (previousParams) {
188
+ setTimeout(() => {
189
+ setYearArr(previousParams => {
248
190
  body.addEventListener('scroll', scroll);
249
- var addYearRange = (0, _utils.generateRange)(previousParams[0] - 15, previousParams[0] - 1);
250
- return [].concat(_toConsumableArray(addYearRange), _toConsumableArray(previousParams));
191
+ const addYearRange = (0, _utils.generateRange)(previousParams[0] - 15, previousParams[0] - 1);
192
+ return [...addYearRange, ...previousParams];
251
193
  });
252
194
  }, 400);
253
195
  } else if (body.scrollTop + body.clientHeight >= body.scrollHeight) {
254
196
  body.removeEventListener('scroll', scroll);
255
- setTimeout(function () {
256
- setYearArr(function (previousParams) {
197
+ setTimeout(() => {
198
+ setYearArr(previousParams => {
257
199
  body.addEventListener('scroll', scroll);
258
- var addYearRange = (0, _utils.generateRange)(previousParams[previousParams.length - 1] + 1, previousParams[previousParams.length - 1] + 15);
259
- return [].concat(_toConsumableArray(previousParams), _toConsumableArray(addYearRange));
200
+ const addYearRange = (0, _utils.generateRange)(previousParams[previousParams.length - 1] + 1, previousParams[previousParams.length - 1] + 15);
201
+ return [...previousParams, ...addYearRange];
260
202
  });
261
203
  }, 400);
262
204
  }
263
205
  }
264
206
  }, []);
265
- (0, _react.useEffect)(function () {
207
+ (0, _react.useEffect)(() => {
266
208
  bodyRef.current.addEventListener('scroll', scroll);
267
209
  }, [scroll]);
268
- (0, _react.useEffect)(function () {
210
+ (0, _react.useEffect)(() => {
269
211
  setDisplay(currentDisplayType === type);
270
212
  }, [currentDisplayType, type]);
271
- (0, _react.useEffect)(function () {
213
+ (0, _react.useEffect)(() => {
272
214
  if (display && bodyRef !== null && bodyRef !== void 0 && bodyRef.current && currentDisplayType === 'year' && selectedYearRef !== null && selectedYearRef !== void 0 && selectedYearRef.current) {
273
215
  bodyRef.current.scrollTo({
274
216
  top: selectedYearRef.current.offsetTop - bodyRef.current.offsetTop
@@ -278,7 +220,7 @@ var Accordion = function Accordion(_ref) {
278
220
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
279
221
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(Header, {
280
222
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(IconButton, {
281
- onClick: function onClick() {
223
+ onClick: () => {
282
224
  handleChangeTitle('previous');
283
225
  },
284
226
  disabled: handleDisableArrow('previous'),
@@ -286,7 +228,7 @@ var Accordion = function Accordion(_ref) {
286
228
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
287
229
  children: accordionTitle()
288
230
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(IconButton, {
289
- onClick: function onClick() {
231
+ onClick: () => {
290
232
  handleChangeTitle('next');
291
233
  },
292
234
  disabled: handleDisableArrow('next'),
@@ -306,37 +248,45 @@ var Accordion = function Accordion(_ref) {
306
248
  })]
307
249
  });
308
250
  };
309
-
310
- var IconButton = _styledComponents.default.button(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 36px;\n height: 36px;\n background: var(--color-background1);\n border: none;\n color: var(--font-on-background);\n padding: 0;\n transition: 0.3s;\n\n &:hover {\n color: var(--color-primary);\n }\n\n ", "\n\n ", "\n"])), function (_ref2) {
311
- var disabled = _ref2.disabled;
251
+ const IconButton = _styledComponents.default.button(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 36px;\n height: 36px;\n background: var(--color-background1);\n border: none;\n color: var(--font-on-background);\n padding: 0;\n transition: 0.3s;\n\n &:hover {\n color: var(--color-primary);\n }\n\n ", "\n\n ", "\n"])), _ref2 => {
252
+ let {
253
+ disabled
254
+ } = _ref2;
312
255
  return disabled && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n opacity: 0.5;\n\n &:hover {\n color: var(--font-on-background);\n }\n "])));
313
- }, function (_ref3) {
314
- var right = _ref3.right,
315
- $display = _ref3.$display;
256
+ }, _ref3 => {
257
+ let {
258
+ right,
259
+ $display
260
+ } = _ref3;
316
261
  return right && "\n position: absolute;\n right: 0;\n ".concat($display && (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n transform: rotate(180deg);\n "]))), "\n ");
317
262
  });
318
-
319
- var Header = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n align-content: center;\n position: relative;\n\n > div {\n width: 72px;\n line-height: 36px;\n text-align: center;\n }\n\n &::before {\n content: '';\n border-bottom: var(--border-width) solid var(--border-color);\n position: absolute;\n width: 300px;\n bottom: 0;\n z-index: 1;\n right: -16px;\n }\n"])));
320
-
321
- var Body = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n flex-wrap: wrap;\n height: 0;\n width: 100%;\n display: ", ";\n ", "\n\n transition: 0.3s;\n"])), function (_ref4) {
322
- var $display = _ref4.$display;
263
+ const Header = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n align-content: center;\n position: relative;\n\n > div {\n width: 72px;\n line-height: 36px;\n text-align: center;\n }\n\n &::before {\n content: '';\n border-bottom: var(--border-width) solid var(--border-color);\n position: absolute;\n width: 300px;\n bottom: 0;\n z-index: 1;\n right: -16px;\n }\n"])));
264
+ const Body = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n flex-wrap: wrap;\n height: 0;\n width: 100%;\n display: ", ";\n ", "\n\n transition: 0.3s;\n"])), _ref4 => {
265
+ let {
266
+ $display
267
+ } = _ref4;
323
268
  return $display ? 'flex' : 'none';
324
- }, function (_ref5) {
325
- var type = _ref5.type,
326
- fixedYear = _ref5.fixedYear;
269
+ }, _ref5 => {
270
+ let {
271
+ type,
272
+ fixedYear
273
+ } = _ref5;
327
274
  return type && (0, _styledComponents.css)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n min-height: ", "px};\n transition: .3s;\n \n ", ";\n "])), type === 'year' ? '197' : fixedYear ? '144' : '192', type === 'year' && (0, _styledComponents.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n overflow-y: scroll;\n gap: 12px 0;\n ", "\n "])), _scrollbar.default));
328
275
  });
329
-
330
- var Item = _styledComponents.default.button(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n width: 84px;\n height: 36px;\n line-height: 36px;\n text-align: center;\n border-radius: var(--border-radius-s);\n padding: 0;\n border: none;\n color: var(--font-on-background);\n background: var(--color-background1);\n\n &:hover {\n ", "\n }\n\n ", "\n\n ", "\n"])), function (_ref6) {
331
- var disabled = _ref6.disabled;
276
+ const Item = _styledComponents.default.button(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n width: 84px;\n height: 36px;\n line-height: 36px;\n text-align: center;\n border-radius: var(--border-radius-s);\n padding: 0;\n border: none;\n color: var(--font-on-background);\n background: var(--color-background1);\n\n &:hover {\n ", "\n }\n\n ", "\n\n ", "\n"])), _ref6 => {
277
+ let {
278
+ disabled
279
+ } = _ref6;
332
280
  return !disabled && 'background: var(--color-primary)';
333
- }, function (_ref7) {
334
- var disabled = _ref7.disabled;
281
+ }, _ref7 => {
282
+ let {
283
+ disabled
284
+ } = _ref7;
335
285
  return disabled && 'color: var(--font-on-mute)';
336
- }, function (_ref8) {
337
- var selected = _ref8.selected;
286
+ }, _ref8 => {
287
+ let {
288
+ selected
289
+ } = _ref8;
338
290
  return selected && 'background: var(--color-hover)';
339
291
  });
340
-
341
- var _default = Accordion;
342
- exports.default = _default;
292
+ var _default = exports.default = Accordion;
@@ -4,74 +4,44 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _react = require("react");
9
-
10
8
  var _jsxRuntime = require("react/jsx-runtime");
11
-
12
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
13
-
14
- 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."); }
15
-
16
- 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); }
17
-
18
- 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; }
19
-
20
- 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; }
21
-
22
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
23
-
24
- var CustomTimeInput = function CustomTimeInput(_ref) {
25
- var date = _ref.date,
26
- onCustomChange = _ref.onCustomChange;
27
-
28
- var _useState = (0, _react.useState)(''),
29
- _useState2 = _slicedToArray(_useState, 2),
30
- time = _useState2[0],
31
- setTime = _useState2[1];
32
-
33
- var changeDate = function changeDate() {
34
- var hh = '';
35
- var mm = '';
36
- var ss = '';
37
-
9
+ const CustomTimeInput = _ref => {
10
+ let {
11
+ date,
12
+ onCustomChange
13
+ } = _ref;
14
+ const [time, setTime] = (0, _react.useState)('');
15
+ const changeDate = () => {
16
+ let hh = '';
17
+ let mm = '';
18
+ let ss = '';
38
19
  if (time.indexOf(':') !== -1) {
39
- var _time$split = time.split(':');
40
-
41
- var _time$split2 = _slicedToArray(_time$split, 3);
42
-
43
- hh = _time$split2[0];
44
- mm = _time$split2[1];
45
- ss = _time$split2[2];
20
+ [hh, mm, ss] = time.split(':');
46
21
  } else {
47
22
  hh = time.substring(0, 2);
48
23
  mm = time.substring(2, 4);
49
24
  ss = time.substring(4, 6);
50
25
  }
51
-
52
- var targetDate = date instanceof Date && !isNaN(date) ? date : new Date();
26
+ const targetDate = date instanceof Date && !isNaN(date) ? date : new Date();
53
27
  targetDate.setHours(Number(hh) || 0, Number(mm) || 0, Number(ss) || 0);
54
28
  onCustomChange(targetDate);
55
29
  };
56
-
57
- (0, _react.useEffect)(function () {
58
- var defaultTime = date instanceof Date && !isNaN(date) ? // Getting time from Date beacuse `value` comes here without seconds
30
+ (0, _react.useEffect)(() => {
31
+ const defaultTime = date instanceof Date && !isNaN(date) ?
32
+ // Getting time from Date beacuse `value` comes here without seconds
59
33
  date.toLocaleTimeString('it-IT') : '';
60
34
  setTime(defaultTime);
61
35
  }, [date]);
62
36
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
63
37
  value: time,
64
38
  onBlur: changeDate,
65
- onKeyUp: function onKeyUp(event) {
39
+ onKeyUp: event => {
66
40
  if (event.key === 'Enter') {
67
41
  changeDate();
68
42
  }
69
43
  },
70
- onChange: function onChange(event) {
71
- return setTime(event.target.value);
72
- }
44
+ onChange: event => setTime(event.target.value)
73
45
  });
74
46
  };
75
-
76
- var _default = CustomTimeInput;
77
- exports.default = _default;
47
+ var _default = exports.default = CustomTimeInput;
@@ -4,9 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _react = require("react");
9
-
10
- var DateTimePicker = /*#__PURE__*/(0, _react.createContext)(null);
11
- var _default = DateTimePicker;
12
- exports.default = _default;
8
+ const DateTimePicker = /*#__PURE__*/(0, _react.createContext)(null);
9
+ var _default = exports.default = DateTimePicker;
@@ -4,16 +4,12 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _utils = require("@cashub/utils");
9
-
10
- var GMTDate = function GMTDate(date) {
8
+ const GMTDate = date => {
11
9
  if (!date) return;
12
- var newDate = new Date((0, _utils.datetimeTFormat)(date));
10
+ let newDate = new Date((0, _utils.datetimeTFormat)(date));
13
11
  newDate.setTime(newDate.getTime() + newDate.getTimezoneOffset() * 60 * 1000);
14
12
  newDate = (0, _utils.formatDate)(newDate);
15
13
  return newDate;
16
14
  };
17
-
18
- var _default = GMTDate;
19
- exports.default = _default;
15
+ var _default = exports.default = GMTDate;
@@ -4,14 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
- var pad = function pad(value, length, padString) {
7
+ const pad = (value, length, padString) => {
9
8
  if (!length || !padString) {
10
9
  return value;
11
10
  }
12
-
13
11
  return String(value).padStart(length, padString);
14
12
  };
15
-
16
- var _default = pad;
17
- exports.default = _default;
13
+ var _default = exports.default = pad;
@@ -4,13 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
- var toUTC0 = function toUTC0(date) {
7
+ const toUTC0 = date => {
9
8
  if (!date) return;
10
- var newDate = new Date(date);
9
+ const newDate = new Date(date);
11
10
  newDate.setTime(newDate.getTime() + newDate.getTimezoneOffset() * 60 * 1000);
12
11
  return newDate;
13
12
  };
14
-
15
- var _default = toUTC0;
16
- exports.default = _default;
13
+ var _default = exports.default = toUTC0;
@@ -4,19 +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 _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 DescriptionDetail = _styledComponents.default.dd(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n font-size: var(--font-h3);\n line-height: 1.25;\n font-weight: bold;\n color: var(--font-on-background);\n word-break: break-all;\n white-space: pre-line;\n\n > a {\n color: var(--color-primary);\n }\n\n ", "\n"])), function (_ref) {
17
- var fontNormal = _ref.fontNormal;
11
+ const DescriptionDetail = _styledComponents.default.dd(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n font-size: var(--font-h3);\n line-height: 1.25;\n font-weight: bold;\n color: var(--font-on-background);\n word-break: break-all;\n white-space: pre-line;\n\n > a {\n color: var(--color-primary);\n }\n\n ", "\n"])), _ref => {
12
+ let {
13
+ fontNormal
14
+ } = _ref;
18
15
  return fontNormal && 'font-weight: normal;';
19
16
  });
20
-
21
- var _default = DescriptionDetail;
22
- exports.default = _default;
17
+ var _default = exports.default = DescriptionDetail;
@@ -4,19 +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 _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 DescriptionList = _styledComponents.default.dl(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n flex: 1;\n\n &:not(:last-child) {\n border-right: var(--border-width) solid var(--border-color);\n margin-right: var(--spacing);\n padding-right: var(--spacing);\n }\n\n ", "\n"])), function (_ref) {
17
- var invisible = _ref.invisible;
11
+ const DescriptionList = _styledComponents.default.dl(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n flex: 1;\n\n &:not(:last-child) {\n border-right: var(--border-width) solid var(--border-color);\n margin-right: var(--spacing);\n padding-right: var(--spacing);\n }\n\n ", "\n"])), _ref => {
12
+ let {
13
+ invisible
14
+ } = _ref;
18
15
  return invisible && 'visibility: hidden';
19
16
  });
20
-
21
- var _default = DescriptionList;
22
- exports.default = _default;
17
+ var _default = exports.default = DescriptionList;