@tenancy.nz/reports 1.0.2 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,27 +7,26 @@ var React = require('react');
7
7
  var reactUid = require('react-uid');
8
8
  var ui = require('@tenancy.nz/ui');
9
9
  var featureUi = require('@tenancy.nz/feature-ui');
10
+ var ReportHeader = require('./ReportHeader.cjs');
11
+ var ReportFooter = require('./ReportFooter.cjs');
10
12
 
11
13
  function OwnerBookingReport(_ref) {
12
- var _ref$agent = _ref.agent,
13
- agent = _ref$agent === void 0 ? {} : _ref$agent,
14
- _ref$bookings = _ref.bookings,
15
- bookings = _ref$bookings === void 0 ? [] : _ref$bookings,
16
- _ref$chart = _ref.chart,
17
- chart = _ref$chart === void 0 ? {} : _ref$chart,
18
- _ref$footer = _ref.footer,
19
- footer = _ref$footer === void 0 ? void 0 : _ref$footer,
20
- _ref$header = _ref.header,
21
- header = _ref$header === void 0 ? void 0 : _ref$header,
22
- _ref$loading = _ref.loading,
23
- loading = _ref$loading === void 0 ? false : _ref$loading,
24
- notes = _ref.notes,
25
- _ref$property = _ref.property,
26
- property = _ref$property === void 0 ? {} : _ref$property,
27
- stats = _ref.stats;
14
+ var _ref$eventData = _ref.eventData,
15
+ _ref$eventData$agent = _ref$eventData.agent,
16
+ agent = _ref$eventData$agent === void 0 ? {} : _ref$eventData$agent,
17
+ _ref$eventData$bookin = _ref$eventData.bookings,
18
+ bookings = _ref$eventData$bookin === void 0 ? [] : _ref$eventData$bookin,
19
+ _ref$eventData$chart = _ref$eventData.chart,
20
+ chart = _ref$eventData$chart === void 0 ? {} : _ref$eventData$chart,
21
+ _ref$eventData$loadin = _ref$eventData.loading,
22
+ loading = _ref$eventData$loadin === void 0 ? false : _ref$eventData$loadin,
23
+ notes = _ref$eventData.notes,
24
+ _ref$eventData$proper = _ref$eventData.property,
25
+ property = _ref$eventData$proper === void 0 ? {} : _ref$eventData$proper,
26
+ stats = _ref$eventData.stats;
28
27
  return /* @__PURE__ */React.createElement(ui.Box, {
29
28
  width: "100%"
30
- }, header, /* @__PURE__ */React.createElement(ui.Grid, {
29
+ }, /* @__PURE__ */React.createElement(ui.Grid, {
31
30
  container: true,
32
31
  spacing: 6
33
32
  }, /* @__PURE__ */React.createElement(ui.Grid, {
@@ -188,7 +187,9 @@ function OwnerBookingReport(_ref) {
188
187
  outlined: true
189
188
  }));
190
189
  })));
191
- }), footer);
190
+ }));
192
191
  }
192
+ OwnerBookingReport.Header = ReportHeader.default;
193
+ OwnerBookingReport.Footer = ReportFooter.default;
193
194
 
194
195
  exports.default = OwnerBookingReport;
@@ -3,27 +3,26 @@ import React from 'react';
3
3
  import { uid } from 'react-uid';
4
4
  import { Box, Grid, Paper, Heading, Text } from '@tenancy.nz/ui';
5
5
  import { PropertyCard, AgentDetailsCard, AnalyticsBox, BookingChart, BookingTable, NotesCard } from '@tenancy.nz/feature-ui';
6
+ import ReportHeader from './ReportHeader.js';
7
+ import ReportFooter from './ReportFooter.js';
6
8
 
7
9
  function OwnerBookingReport(_ref) {
8
- var _ref$agent = _ref.agent,
9
- agent = _ref$agent === void 0 ? {} : _ref$agent,
10
- _ref$bookings = _ref.bookings,
11
- bookings = _ref$bookings === void 0 ? [] : _ref$bookings,
12
- _ref$chart = _ref.chart,
13
- chart = _ref$chart === void 0 ? {} : _ref$chart,
14
- _ref$footer = _ref.footer,
15
- footer = _ref$footer === void 0 ? void 0 : _ref$footer,
16
- _ref$header = _ref.header,
17
- header = _ref$header === void 0 ? void 0 : _ref$header,
18
- _ref$loading = _ref.loading,
19
- loading = _ref$loading === void 0 ? false : _ref$loading,
20
- notes = _ref.notes,
21
- _ref$property = _ref.property,
22
- property = _ref$property === void 0 ? {} : _ref$property,
23
- stats = _ref.stats;
10
+ var _ref$eventData = _ref.eventData,
11
+ _ref$eventData$agent = _ref$eventData.agent,
12
+ agent = _ref$eventData$agent === void 0 ? {} : _ref$eventData$agent,
13
+ _ref$eventData$bookin = _ref$eventData.bookings,
14
+ bookings = _ref$eventData$bookin === void 0 ? [] : _ref$eventData$bookin,
15
+ _ref$eventData$chart = _ref$eventData.chart,
16
+ chart = _ref$eventData$chart === void 0 ? {} : _ref$eventData$chart,
17
+ _ref$eventData$loadin = _ref$eventData.loading,
18
+ loading = _ref$eventData$loadin === void 0 ? false : _ref$eventData$loadin,
19
+ notes = _ref$eventData.notes,
20
+ _ref$eventData$proper = _ref$eventData.property,
21
+ property = _ref$eventData$proper === void 0 ? {} : _ref$eventData$proper,
22
+ stats = _ref$eventData.stats;
24
23
  return /* @__PURE__ */React.createElement(Box, {
25
24
  width: "100%"
26
- }, header, /* @__PURE__ */React.createElement(Grid, {
25
+ }, /* @__PURE__ */React.createElement(Grid, {
27
26
  container: true,
28
27
  spacing: 6
29
28
  }, /* @__PURE__ */React.createElement(Grid, {
@@ -184,7 +183,9 @@ function OwnerBookingReport(_ref) {
184
183
  outlined: true
185
184
  }));
186
185
  })));
187
- }), footer);
186
+ }));
188
187
  }
188
+ OwnerBookingReport.Header = ReportHeader;
189
+ OwnerBookingReport.Footer = ReportFooter;
189
190
 
190
191
  export { OwnerBookingReport as default };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tenancy.nz/reports",
3
3
  "description": "React UI reporting components.",
4
- "version": "1.0.2",
4
+ "version": "1.0.7",
5
5
  "author": "TPS <https://www.tenancy.co.nz>",
6
6
  "license": "ISC",
7
7
  "type": "module",
@@ -14,14 +14,14 @@
14
14
  "peerDependencies": {
15
15
  "react": ">= 16.0.0 <= 18.3.1",
16
16
  "react-dom": ">= 16.0.0 <= 18.3.1",
17
- "@tenancy.nz/feature-ui": "1.0.2",
18
- "@tenancy.nz/ui": "1.0.5"
17
+ "@tenancy.nz/ui": "1.0.7",
18
+ "@tenancy.nz/feature-ui": "1.0.7"
19
19
  },
20
20
  "devDependencies": {
21
21
  "react": "^19.1.0",
22
22
  "react-dom": "^19.1.0",
23
- "@tenancy.nz/ui": "1.0.5",
24
- "@tenancy.nz/feature-ui": "1.0.2"
23
+ "@tenancy.nz/feature-ui": "1.0.7",
24
+ "@tenancy.nz/ui": "1.0.7"
25
25
  },
26
26
  "dependencies": {
27
27
  "react-uid": "^2.4.0"