@tenancy.nz/feature-ui 1.1.9 → 1.2.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.
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var _rollupPluginBabelHelpers = require('../_virtual/_rollupPluginBabelHelpers.cjs');
6
6
  var React = require('react');
7
7
  var ui = require('@tenancy.nz/ui');
8
- var chart = require('primereact/chart');
8
+ var chart_js = require('primereact/chart.js');
9
9
  var BookingChart_styled = require('./BookingChart.styled.cjs');
10
10
 
11
11
  var defaultOptions = {
@@ -103,7 +103,7 @@ function BookingChart(_ref) {
103
103
  width: "100%",
104
104
  overflow: "hidden"
105
105
  }
106
- }, /* @__PURE__ */React.createElement(chart.Chart, {
106
+ }, /* @__PURE__ */React.createElement(chart_js.Chart, {
107
107
  type: "bar",
108
108
  data: {
109
109
  labels: labels,
@@ -55,7 +55,7 @@ function BookingTableRow(_ref) {
55
55
  item: true,
56
56
  xs: 3,
57
57
  md: 3
58
- }, /* @__PURE__ */React.createElement(BookingTableRow_styled.StyledBookingTableRowCell, null, bookingTable.showBookingTableColumns(columns, ["firstName", "lastName"]) ? "".concat(firstName, " ").concat(lastName) : null)), /* @__PURE__ */React.createElement(ui.Grid, {
58
+ }, /* @__PURE__ */React.createElement(BookingTableRow_styled.StyledBookingTableRowCell, null, firstName || lastName ? "".concat(bookingTable.showBookingTableColumns(columns, "firstName") ? " ".concat(firstName) : "").concat(bookingTable.showBookingTableColumns(columns, "lastName") ? " ".concat(lastName) : "") : null)), /* @__PURE__ */React.createElement(ui.Grid, {
59
59
  item: true,
60
60
  xs: 6,
61
61
  md: 7
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
6
  var ui = require('@tenancy.nz/ui');
7
- var chart = require('primereact/chart');
7
+ var chart_js = require('primereact/chart.js');
8
8
 
9
9
  function EnquiriesDoughnutChart(_ref) {
10
10
  var _ref$tradeMeEnquiries = _ref.tradeMeEnquiriesCount,
@@ -37,7 +37,7 @@ function EnquiriesDoughnutChart(_ref) {
37
37
  }, "Number of enquiries"), /* @__PURE__ */React.createElement(ui.Box, {
38
38
  width: "100%",
39
39
  overflow: "hidden"
40
- }, /* @__PURE__ */React.createElement(chart.Chart, {
40
+ }, /* @__PURE__ */React.createElement(chart_js.Chart, {
41
41
  type: "doughnut",
42
42
  data: {
43
43
  labels: ["TradeMe", "BookMe", "Manual"],
@@ -1,7 +1,7 @@
1
1
  import { slicedToArray as _slicedToArray, objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';
2
2
  import React, { useMemo } from 'react';
3
3
  import { Box } from '@tenancy.nz/ui';
4
- import { Chart } from 'primereact/chart';
4
+ import { Chart } from 'primereact/chart.js';
5
5
  import { StyledBookingChartStack, StyledBookingChartLegend, StyledBookingChartButton } from './BookingChart.styled.js';
6
6
 
7
7
  var defaultOptions = {
@@ -51,7 +51,7 @@ function BookingTableRow(_ref) {
51
51
  item: true,
52
52
  xs: 3,
53
53
  md: 3
54
- }, /* @__PURE__ */React.createElement(StyledBookingTableRowCell, null, showBookingTableColumns(columns, ["firstName", "lastName"]) ? "".concat(firstName, " ").concat(lastName) : null)), /* @__PURE__ */React.createElement(Grid, {
54
+ }, /* @__PURE__ */React.createElement(StyledBookingTableRowCell, null, firstName || lastName ? "".concat(showBookingTableColumns(columns, "firstName") ? " ".concat(firstName) : "").concat(showBookingTableColumns(columns, "lastName") ? " ".concat(lastName) : "") : null)), /* @__PURE__ */React.createElement(Grid, {
55
55
  item: true,
56
56
  xs: 6,
57
57
  md: 7
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Box, Text } from '@tenancy.nz/ui';
3
- import { Chart } from 'primereact/chart';
3
+ import { Chart } from 'primereact/chart.js';
4
4
 
5
5
  function EnquiriesDoughnutChart(_ref) {
6
6
  var _ref$tradeMeEnquiries = _ref.tradeMeEnquiriesCount,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tenancy.nz/feature-ui",
3
3
  "description": "React UI feature components.",
4
- "version": "1.1.9",
4
+ "version": "1.2.1",
5
5
  "author": "TPS <https://www.tenancy.co.nz>",
6
6
  "type": "module",
7
7
  "main": "dist/cjs/index.cjs",
@@ -18,12 +18,12 @@
18
18
  "primereact": "3.1.3",
19
19
  "react": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
20
20
  "react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
21
- "@tenancy.nz/icons": "1.1.9",
22
- "@tenancy.nz/ui": "1.1.9"
21
+ "@tenancy.nz/icons": "1.2.1",
22
+ "@tenancy.nz/ui": "1.2.1"
23
23
  },
24
24
  "devDependencies": {
25
- "@tenancy.nz/icons": "1.1.9",
26
- "@tenancy.nz/ui": "1.1.9"
25
+ "@tenancy.nz/icons": "1.2.1",
26
+ "@tenancy.nz/ui": "1.2.1"
27
27
  },
28
28
  "dependencies": {
29
29
  "react-uid": "^2.4.0"