@tenancy.nz/feature-ui 1.1.7 → 1.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{esm/_rollupPluginBabelHelpers-BXw3UT-B.js → cjs/_virtual/_rollupPluginBabelHelpers.cjs} +15 -1
- package/dist/cjs/{AgentDetailsCard.cjs → components/AgentDetailsCard.cjs} +0 -1
- package/dist/cjs/{AnalyticsBox.cjs → components/AnalyticsBox.cjs} +3 -3
- package/dist/cjs/{AnalyticsSection.cjs → components/AnalyticsSection.cjs} +0 -2
- package/dist/cjs/{BookingChart.cjs → components/BookingChart.cjs} +5 -7
- package/dist/cjs/components/BookingChart.styled.cjs +48 -0
- package/dist/cjs/{BookingTable.cjs → components/BookingTable.cjs} +0 -7
- package/dist/cjs/{BookingTableRow.cjs → components/BookingTableRow.cjs} +1 -5
- package/dist/cjs/components/BookingTableRow.styled.cjs +20 -0
- package/dist/cjs/{BookingTableRowHeader.cjs → components/BookingTableRowHeader.cjs} +1 -4
- package/dist/cjs/{BookingTableRowSkeleton.cjs → components/BookingTableRowSkeleton.cjs} +0 -3
- package/dist/cjs/{CheckedIcon.cjs → components/CheckedIcon.cjs} +5 -1
- package/dist/cjs/{GridList.cjs → components/GridList.cjs} +3 -3
- package/dist/cjs/{Hidden.cjs → components/Hidden.cjs} +0 -2
- package/dist/cjs/{IconLabel.cjs → components/IconLabel.cjs} +3 -3
- package/dist/cjs/{NotesCard.cjs → components/NotesCard.cjs} +3 -3
- package/dist/cjs/{PropertyCard.cjs → components/PropertyCard.cjs} +3 -5
- package/dist/cjs/components/PropertyCard.styled.cjs +23 -0
- package/dist/cjs/index.cjs +15 -27
- package/dist/{cjs/_rollupPluginBabelHelpers-BlfsmA2H.js → esm/_virtual/_rollupPluginBabelHelpers.js} +1 -6
- package/dist/esm/{AgentDetailsCard.js → components/AgentDetailsCard.js} +0 -1
- package/dist/esm/{AnalyticsBox.js → components/AnalyticsBox.js} +1 -1
- package/dist/esm/{AnalyticsSection.js → components/AnalyticsSection.js} +0 -2
- package/dist/esm/{BookingChart.js → components/BookingChart.js} +1 -3
- package/dist/esm/{BookingChart.styled.js → components/BookingChart.styled.js} +1 -1
- package/dist/esm/{BookingTable.js → components/BookingTable.js} +0 -7
- package/dist/esm/{BookingTableRow.js → components/BookingTableRow.js} +1 -5
- package/dist/esm/{BookingTableRow.styled.js → components/BookingTableRow.styled.js} +1 -1
- package/dist/esm/{BookingTableRowHeader.js → components/BookingTableRowHeader.js} +1 -4
- package/dist/esm/{BookingTableRowSkeleton.js → components/BookingTableRowSkeleton.js} +0 -3
- package/dist/esm/{CheckedIcon.js → components/CheckedIcon.js} +5 -1
- package/dist/esm/{GridList.js → components/GridList.js} +1 -1
- package/dist/esm/{Hidden.js → components/Hidden.js} +0 -2
- package/dist/esm/{IconLabel.js → components/IconLabel.js} +1 -1
- package/dist/esm/{NotesCard.js → components/NotesCard.js} +1 -1
- package/dist/esm/{PropertyCard.js → components/PropertyCard.js} +1 -3
- package/dist/esm/{PropertyCard.styled.js → components/PropertyCard.styled.js} +1 -1
- package/dist/esm/index.js +15 -27
- package/package.json +5 -5
- package/dist/cjs/BookingChart.styled.cjs +0 -48
- package/dist/cjs/BookingTableRow.styled.cjs +0 -20
- package/dist/cjs/PropertyCard.styled.cjs +0 -23
- /package/dist/cjs/{EnquiriesDoughnutChart.cjs → components/EnquiriesDoughnutChart.cjs} +0 -0
- /package/dist/cjs/{bookingTable2.cjs → utils/helpers/bookingTable.cjs} +0 -0
- /package/dist/esm/{EnquiriesDoughnutChart.js → components/EnquiriesDoughnutChart.js} +0 -0
- /package/dist/esm/{bookingTable2.js → utils/helpers/bookingTable.js} +0 -0
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
1
3
|
function _arrayLikeToArray(r, a) {
|
|
2
4
|
(null == a || a > r.length) && (a = r.length);
|
|
3
5
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
@@ -117,4 +119,16 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
117
119
|
}
|
|
118
120
|
}
|
|
119
121
|
|
|
120
|
-
|
|
122
|
+
exports.arrayLikeToArray = _arrayLikeToArray;
|
|
123
|
+
exports.arrayWithHoles = _arrayWithHoles;
|
|
124
|
+
exports.defineProperty = _defineProperty;
|
|
125
|
+
exports.iterableToArrayLimit = _iterableToArrayLimit;
|
|
126
|
+
exports.nonIterableRest = _nonIterableRest;
|
|
127
|
+
exports.objectSpread2 = _objectSpread2;
|
|
128
|
+
exports.objectWithoutProperties = _objectWithoutProperties;
|
|
129
|
+
exports.objectWithoutPropertiesLoose = _objectWithoutPropertiesLoose;
|
|
130
|
+
exports.slicedToArray = _slicedToArray;
|
|
131
|
+
exports.taggedTemplateLiteral = _taggedTemplateLiteral;
|
|
132
|
+
exports.toPrimitive = _toPrimitive;
|
|
133
|
+
exports.toPropertyKey = _toPropertyKey;
|
|
134
|
+
exports.unsupportedIterableToArray = _unsupportedIterableToArray;
|
|
@@ -6,7 +6,6 @@ var React = require('react');
|
|
|
6
6
|
var ui = require('@tenancy.nz/ui');
|
|
7
7
|
var icons = require('@tenancy.nz/icons');
|
|
8
8
|
var IconLabel = require('./IconLabel.cjs');
|
|
9
|
-
require('./_rollupPluginBabelHelpers-BlfsmA2H.js');
|
|
10
9
|
|
|
11
10
|
function AgentDetailsCard(_ref) {
|
|
12
11
|
var _ref$email = _ref.email,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var _rollupPluginBabelHelpers = require('
|
|
5
|
+
var _rollupPluginBabelHelpers = require('../_virtual/_rollupPluginBabelHelpers.cjs');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var ui = require('@tenancy.nz/ui');
|
|
8
8
|
|
|
@@ -16,8 +16,8 @@ function AnalyticsBox(_ref) {
|
|
|
16
16
|
label = _ref.label,
|
|
17
17
|
amount = _ref.amount,
|
|
18
18
|
text = _ref.text,
|
|
19
|
-
rest = _rollupPluginBabelHelpers.
|
|
20
|
-
return /* @__PURE__ */React.createElement(ui.Paper, _rollupPluginBabelHelpers.
|
|
19
|
+
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
20
|
+
return /* @__PURE__ */React.createElement(ui.Paper, _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, rest), {}, {
|
|
21
21
|
sx: {
|
|
22
22
|
maxWidth: maxWidth,
|
|
23
23
|
width: width,
|
|
@@ -6,8 +6,6 @@ var React = require('react');
|
|
|
6
6
|
var ui = require('@tenancy.nz/ui');
|
|
7
7
|
var AnalyticsBox = require('./AnalyticsBox.cjs');
|
|
8
8
|
var EnquiriesDoughnutChart = require('./EnquiriesDoughnutChart.cjs');
|
|
9
|
-
require('./_rollupPluginBabelHelpers-BlfsmA2H.js');
|
|
10
|
-
require('primereact/chart');
|
|
11
9
|
|
|
12
10
|
function AnalyticsSection(_ref) {
|
|
13
11
|
var viewingsCount = _ref.viewingsCount,
|
|
@@ -2,13 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var _rollupPluginBabelHelpers = require('
|
|
5
|
+
var _rollupPluginBabelHelpers = require('../_virtual/_rollupPluginBabelHelpers.cjs');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var ui = require('@tenancy.nz/ui');
|
|
8
8
|
var chart = require('primereact/chart');
|
|
9
9
|
var BookingChart_styled = require('./BookingChart.styled.cjs');
|
|
10
|
-
require('@emotion/react');
|
|
11
|
-
require('@emotion/styled');
|
|
12
10
|
|
|
13
11
|
var defaultOptions = {
|
|
14
12
|
scaleFontColor: "black",
|
|
@@ -77,10 +75,10 @@ function BookingChart(_ref) {
|
|
|
77
75
|
backgroundColor = _ref2.backgroundColor;
|
|
78
76
|
return [label, backgroundColor];
|
|
79
77
|
}).filter(function (_ref3, i, items) {
|
|
80
|
-
var _ref4 = _rollupPluginBabelHelpers.
|
|
78
|
+
var _ref4 = _rollupPluginBabelHelpers.slicedToArray(_ref3, 1),
|
|
81
79
|
label = _ref4[0];
|
|
82
80
|
return items.findIndex(function (_ref5) {
|
|
83
|
-
var _ref6 = _rollupPluginBabelHelpers.
|
|
81
|
+
var _ref6 = _rollupPluginBabelHelpers.slicedToArray(_ref5, 1),
|
|
84
82
|
l = _ref6[0];
|
|
85
83
|
return l === label;
|
|
86
84
|
}) === i;
|
|
@@ -92,7 +90,7 @@ function BookingChart(_ref) {
|
|
|
92
90
|
gap: "16px",
|
|
93
91
|
width: "100%"
|
|
94
92
|
}, legends.length > 0 && /* @__PURE__ */React.createElement(BookingChart_styled.StyledBookingChartStack, null, legends.map(function (_ref7) {
|
|
95
|
-
var _ref8 = _rollupPluginBabelHelpers.
|
|
93
|
+
var _ref8 = _rollupPluginBabelHelpers.slicedToArray(_ref7, 2),
|
|
96
94
|
label = _ref8[0],
|
|
97
95
|
backgroundColor = _ref8[1];
|
|
98
96
|
return /* @__PURE__ */React.createElement(BookingChart_styled.StyledBookingChartLegend, {
|
|
@@ -111,7 +109,7 @@ function BookingChart(_ref) {
|
|
|
111
109
|
labels: labels,
|
|
112
110
|
datasets: data
|
|
113
111
|
},
|
|
114
|
-
options: _rollupPluginBabelHelpers.
|
|
112
|
+
options: _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, defaultOptions), options)
|
|
115
113
|
})), onModeChange && /* @__PURE__ */React.createElement(BookingChart_styled.StyledBookingChartStack, null, /* @__PURE__ */React.createElement(BookingChart_styled.StyledBookingChartButton, {
|
|
116
114
|
onClick: onModeChange,
|
|
117
115
|
active: mode === "day",
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var _rollupPluginBabelHelpers = require('../_virtual/_rollupPluginBabelHelpers.cjs');
|
|
4
|
+
var react = require('@emotion/react');
|
|
5
|
+
var styled = require('@emotion/styled');
|
|
6
|
+
|
|
7
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
|
8
|
+
var StyledBookingChartStack = styled.div(_templateObject || (_templateObject = _rollupPluginBabelHelpers.taggedTemplateLiteral(["\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n padding: 0;\n margin: 0;\n list-style: none;\n font-size: 12px;\n justify-content: center;\n color: #000;\n width: 100%;\n"])));
|
|
9
|
+
var StyledBookingChartLegend = styled("span", {
|
|
10
|
+
shouldForwardProp: function shouldForwardProp(prop) {
|
|
11
|
+
return !["color"].includes(prop);
|
|
12
|
+
}
|
|
13
|
+
})(_templateObject2 || (_templateObject2 = _rollupPluginBabelHelpers.taggedTemplateLiteral(["\n font-weight: 500;\n display: flex;\n align-items: center;\n gap: 6px;\n\n &::before {\n content: '';\n display: inline-flex;\n width: 32px;\n height: 18px;\n background-color: ", ";\n border-radius: 4px;\n }\n"])), function (props) {
|
|
14
|
+
return props.color;
|
|
15
|
+
});
|
|
16
|
+
var StyledBookingChartButton = styled("button", {
|
|
17
|
+
shouldForwardProp: function shouldForwardProp(prop) {
|
|
18
|
+
return !["color"].includes(prop);
|
|
19
|
+
}
|
|
20
|
+
})(_templateObject3 || (_templateObject3 = _rollupPluginBabelHelpers.taggedTemplateLiteral(["\n && {\n font-weight: 500;\n display: flex;\n align-items: center;\n padding: 6px 10px;\n font-size: 14px;\n border-radius: 4px;\n font-family: inherit;\n color: ", ";\n border: 1px solid ", ";\n box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1);\n background-color: ", ";\n cursor: pointer;\n\n &:hover {\n background-color: ", ";\n }\n }\n"])), function (_ref) {
|
|
21
|
+
var theme = _ref.theme;
|
|
22
|
+
return theme.palette.primary.main;
|
|
23
|
+
}, function (_ref2) {
|
|
24
|
+
var theme = _ref2.theme;
|
|
25
|
+
return theme.palette.primary.main;
|
|
26
|
+
}, function (_ref3) {
|
|
27
|
+
var active = _ref3.active,
|
|
28
|
+
theme = _ref3.theme;
|
|
29
|
+
return active ? "#CEF3ED" : theme.palette.background.paper;
|
|
30
|
+
}, function (_ref4) {
|
|
31
|
+
var active = _ref4.active,
|
|
32
|
+
theme = _ref4.theme;
|
|
33
|
+
return !active ? theme.palette.grey[100] : null;
|
|
34
|
+
});
|
|
35
|
+
var StyledPropertyDetailsBox = styled.div(_templateObject4 || (_templateObject4 = _rollupPluginBabelHelpers.taggedTemplateLiteral(["\n display: flex;\n width: 100%;\n align-items: flex-start;\n padding: 16px 24px 16px 20px;\n flex-direction: column;\n\n ", "\n\n @media print {\n flex-direction: row;\n align-items: center;\n }\n"])), function (_ref5) {
|
|
36
|
+
var theme = _ref5.theme;
|
|
37
|
+
return react.css(_templateObject5 || (_templateObject5 = _rollupPluginBabelHelpers.taggedTemplateLiteral(["\n ", " {\n flex-direction: row;\n align-items: center;\n }\n "])), theme.breakpoints.up("sm"));
|
|
38
|
+
});
|
|
39
|
+
var StyledPropertyAmenitiesBox = styled.div(_templateObject6 || (_templateObject6 = _rollupPluginBabelHelpers.taggedTemplateLiteral(["\n padding-right: 25px;\n display: flex;\n flex-direction: column;\n margin-top: 5px;\n\n gap: 18px;\n min-width: 170px;\n height: 100%;\n justify-content: space-between;\n\n ", "\n\n @media print {\n align-items: flex-end;\n }\n"])), function (_ref6) {
|
|
40
|
+
var theme = _ref6.theme;
|
|
41
|
+
return "\n @media (min-width: ".concat(theme.breakpoints.values.md, "px) {\n align-items: flex-end;\n }\n ");
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
exports.StyledBookingChartButton = StyledBookingChartButton;
|
|
45
|
+
exports.StyledBookingChartLegend = StyledBookingChartLegend;
|
|
46
|
+
exports.StyledBookingChartStack = StyledBookingChartStack;
|
|
47
|
+
exports.StyledPropertyAmenitiesBox = StyledPropertyAmenitiesBox;
|
|
48
|
+
exports.StyledPropertyDetailsBox = StyledPropertyDetailsBox;
|
|
@@ -8,13 +8,6 @@ var ui = require('@tenancy.nz/ui');
|
|
|
8
8
|
var BookingTableRowHeader = require('./BookingTableRowHeader.cjs');
|
|
9
9
|
var BookingTableRow = require('./BookingTableRow.cjs');
|
|
10
10
|
var BookingTableRowSkeleton = require('./BookingTableRowSkeleton.cjs');
|
|
11
|
-
require('./BookingTableRow.styled.cjs');
|
|
12
|
-
require('./_rollupPluginBabelHelpers-BlfsmA2H.js');
|
|
13
|
-
require('@emotion/react');
|
|
14
|
-
require('@emotion/styled');
|
|
15
|
-
require('./bookingTable2.cjs');
|
|
16
|
-
require('./CheckedIcon.cjs');
|
|
17
|
-
require('@tenancy.nz/icons');
|
|
18
11
|
|
|
19
12
|
function BookingTable(_ref) {
|
|
20
13
|
var data = _ref.data,
|
|
@@ -6,11 +6,7 @@ var React = require('react');
|
|
|
6
6
|
var ui = require('@tenancy.nz/ui');
|
|
7
7
|
var CheckedIcon = require('./CheckedIcon.cjs');
|
|
8
8
|
var BookingTableRow_styled = require('./BookingTableRow.styled.cjs');
|
|
9
|
-
var bookingTable = require('
|
|
10
|
-
require('@tenancy.nz/icons');
|
|
11
|
-
require('./_rollupPluginBabelHelpers-BlfsmA2H.js');
|
|
12
|
-
require('@emotion/react');
|
|
13
|
-
require('@emotion/styled');
|
|
9
|
+
var bookingTable = require('../utils/helpers/bookingTable.cjs');
|
|
14
10
|
|
|
15
11
|
var tagMap = function tagMap(status) {
|
|
16
12
|
if (status === "confirmed") {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var _rollupPluginBabelHelpers = require('../_virtual/_rollupPluginBabelHelpers.cjs');
|
|
4
|
+
var react = require('@emotion/react');
|
|
5
|
+
var styled = require('@emotion/styled');
|
|
6
|
+
|
|
7
|
+
var _templateObject, _templateObject2;
|
|
8
|
+
var StyledBookingTableRowCell = styled("div", {
|
|
9
|
+
shouldForwardProp: function shouldForwardProp(prop) {
|
|
10
|
+
return prop !== "align";
|
|
11
|
+
}
|
|
12
|
+
})(_templateObject || (_templateObject = _rollupPluginBabelHelpers.taggedTemplateLiteral(["\n ", "\n"])), function (_ref) {
|
|
13
|
+
var _ref$align = _ref.align,
|
|
14
|
+
align = _ref$align === void 0 ? "left" : _ref$align,
|
|
15
|
+
header = _ref.header,
|
|
16
|
+
theme = _ref.theme;
|
|
17
|
+
return react.css(_templateObject2 || (_templateObject2 = _rollupPluginBabelHelpers.taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n justify-content: ", ";\n padding: 6px 12px;\n font-size: ", ";\n color: #717680;\n height: 100%;\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", " {\n padding: 12px 24px;\n }\n\n @media print {\n padding: 12px 24px;\n }\n "])), header ? "center" : "flex-start", header ? "12px" : "14px", !header && "\n border-top: 1px solid #e9eaeb;\n ", align === "left" && "\n align-items: flex-start;\n ", align === "center" && "\n align-items: center;\n text-align: center;\n ", align === "right" && "\n align-items: flex-end;\n ", theme.breakpoints.up("md"));
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
exports.StyledBookingTableRowCell = StyledBookingTableRowCell;
|
|
@@ -5,10 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var ui = require('@tenancy.nz/ui');
|
|
7
7
|
var BookingTableRow_styled = require('./BookingTableRow.styled.cjs');
|
|
8
|
-
var bookingTable = require('
|
|
9
|
-
require('./_rollupPluginBabelHelpers-BlfsmA2H.js');
|
|
10
|
-
require('@emotion/react');
|
|
11
|
-
require('@emotion/styled');
|
|
8
|
+
var bookingTable = require('../utils/helpers/bookingTable.cjs');
|
|
12
9
|
|
|
13
10
|
function BookingTableRowHeader(_ref) {
|
|
14
11
|
var _ref$columns = _ref.columns,
|
|
@@ -5,9 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var ui = require('@tenancy.nz/ui');
|
|
7
7
|
var BookingTableRow_styled = require('./BookingTableRow.styled.cjs');
|
|
8
|
-
require('./_rollupPluginBabelHelpers-BlfsmA2H.js');
|
|
9
|
-
require('@emotion/react');
|
|
10
|
-
require('@emotion/styled');
|
|
11
8
|
|
|
12
9
|
function BookingTableRowSkeleton() {
|
|
13
10
|
return /* @__PURE__ */React.createElement(ui.Grid, {
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var icons = require('@tenancy.nz/icons');
|
|
7
|
+
var ui = require('@tenancy.nz/ui');
|
|
7
8
|
|
|
8
9
|
function CheckedIcon(_ref) {
|
|
9
10
|
var value = _ref.value;
|
|
@@ -19,7 +20,10 @@ function CheckedIcon(_ref) {
|
|
|
19
20
|
size: "20px"
|
|
20
21
|
});
|
|
21
22
|
}
|
|
22
|
-
return
|
|
23
|
+
return /* @__PURE__ */React.createElement(ui.Text, {
|
|
24
|
+
as: "span",
|
|
25
|
+
color: "textDisabled"
|
|
26
|
+
}, "\u2013");
|
|
23
27
|
}
|
|
24
28
|
|
|
25
29
|
exports.default = CheckedIcon;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var _rollupPluginBabelHelpers = require('
|
|
5
|
+
var _rollupPluginBabelHelpers = require('../_virtual/_rollupPluginBabelHelpers.cjs');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var ui = require('@tenancy.nz/ui');
|
|
8
8
|
var Hidden = require('./Hidden.cjs');
|
|
@@ -26,7 +26,7 @@ function GridList(_ref) {
|
|
|
26
26
|
onChangeResultsPerPage = _ref.onChangeResultsPerPage,
|
|
27
27
|
perPage = _ref.perPage,
|
|
28
28
|
scrollTopOnChangePage = _ref.scrollTopOnChangePage,
|
|
29
|
-
rest = _rollupPluginBabelHelpers.
|
|
29
|
+
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
30
30
|
var gridContainerRef = React.useRef(null);
|
|
31
31
|
var childLen = React.Children.count(children);
|
|
32
32
|
var isChildren = childLen > 0;
|
|
@@ -47,7 +47,7 @@ function GridList(_ref) {
|
|
|
47
47
|
style: {
|
|
48
48
|
width: "100%"
|
|
49
49
|
}
|
|
50
|
-
}, /* @__PURE__ */React.createElement(ui.Grid, _rollupPluginBabelHelpers.
|
|
50
|
+
}, /* @__PURE__ */React.createElement(ui.Grid, _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({
|
|
51
51
|
container: true
|
|
52
52
|
}, rest), {}, {
|
|
53
53
|
spacing: spacing
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var _rollupPluginBabelHelpers = require('
|
|
5
|
+
var _rollupPluginBabelHelpers = require('../_virtual/_rollupPluginBabelHelpers.cjs');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var ui = require('@tenancy.nz/ui');
|
|
8
8
|
|
|
@@ -15,8 +15,8 @@ function IconLabel(_ref) {
|
|
|
15
15
|
startIcon = _ref$startIcon === void 0 ? void 0 : _ref$startIcon,
|
|
16
16
|
_ref$onClick = _ref.onClick,
|
|
17
17
|
onClick = _ref$onClick === void 0 ? void 0 : _ref$onClick,
|
|
18
|
-
rest = _rollupPluginBabelHelpers.
|
|
19
|
-
var iconLabel = /* @__PURE__ */React.createElement(ui.Box, _rollupPluginBabelHelpers.
|
|
18
|
+
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
19
|
+
var iconLabel = /* @__PURE__ */React.createElement(ui.Box, _rollupPluginBabelHelpers.objectSpread2({
|
|
20
20
|
align: "center",
|
|
21
21
|
display: "inline-flex"
|
|
22
22
|
}, rest), startIcon && /* @__PURE__ */React.createElement(ui.Box, {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var _rollupPluginBabelHelpers = require('
|
|
5
|
+
var _rollupPluginBabelHelpers = require('../_virtual/_rollupPluginBabelHelpers.cjs');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var ui = require('@tenancy.nz/ui');
|
|
8
8
|
|
|
@@ -32,8 +32,8 @@ function NotesCard(_ref) {
|
|
|
32
32
|
tag = _ref$tag === void 0 ? void 0 : _ref$tag,
|
|
33
33
|
_ref$text = _ref.text,
|
|
34
34
|
text = _ref$text === void 0 ? void 0 : _ref$text,
|
|
35
|
-
rest = _rollupPluginBabelHelpers.
|
|
36
|
-
return /* @__PURE__ */React.createElement(ui.Paper, _rollupPluginBabelHelpers.
|
|
35
|
+
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
36
|
+
return /* @__PURE__ */React.createElement(ui.Paper, _rollupPluginBabelHelpers.objectSpread2({
|
|
37
37
|
inset: "medium",
|
|
38
38
|
sx: {
|
|
39
39
|
minHeight: "100%"
|
|
@@ -2,14 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var _rollupPluginBabelHelpers = require('
|
|
5
|
+
var _rollupPluginBabelHelpers = require('../_virtual/_rollupPluginBabelHelpers.cjs');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var ui = require('@tenancy.nz/ui');
|
|
8
8
|
var icons = require('@tenancy.nz/icons');
|
|
9
9
|
var IconLabel = require('./IconLabel.cjs');
|
|
10
10
|
var PropertyCard_styled = require('./PropertyCard.styled.cjs');
|
|
11
|
-
require('@emotion/react');
|
|
12
|
-
require('@emotion/styled');
|
|
13
11
|
|
|
14
12
|
var _excluded = ["address", "compact", "enquiriesCount", "imgSrc", "noOfBedrooms", "noOfBathrooms", "noOfCarparks", "rent", "viewingsCount"];
|
|
15
13
|
function PropertyCard(_ref) {
|
|
@@ -30,8 +28,8 @@ function PropertyCard(_ref) {
|
|
|
30
28
|
rent = _ref$rent === void 0 ? void 0 : _ref$rent,
|
|
31
29
|
_ref$viewingsCount = _ref.viewingsCount,
|
|
32
30
|
viewingsCount = _ref$viewingsCount === void 0 ? void 0 : _ref$viewingsCount,
|
|
33
|
-
rest = _rollupPluginBabelHelpers.
|
|
34
|
-
return /* @__PURE__ */React.createElement(ui.Paper, _rollupPluginBabelHelpers.
|
|
31
|
+
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
32
|
+
return /* @__PURE__ */React.createElement(ui.Paper, _rollupPluginBabelHelpers.objectSpread2({
|
|
35
33
|
overflow: false,
|
|
36
34
|
sx: {
|
|
37
35
|
display: "flex",
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var _rollupPluginBabelHelpers = require('../_virtual/_rollupPluginBabelHelpers.cjs');
|
|
4
|
+
var react = require('@emotion/react');
|
|
5
|
+
var styled = require('@emotion/styled');
|
|
6
|
+
|
|
7
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
8
|
+
var StyledPropertyImage = styled.figure(_templateObject || (_templateObject = _rollupPluginBabelHelpers.taggedTemplateLiteral(["\n padding: 0;\n margin: 0;\n width: 120px;\n height: 95px;\n flex: 0 0 95px;\n overflow: hidden;\n\n ", "\n"])), function (_ref) {
|
|
9
|
+
var theme = _ref.theme;
|
|
10
|
+
return react.css(_templateObject2 || (_templateObject2 = _rollupPluginBabelHelpers.taggedTemplateLiteral(["\n ", " {\n display: none;\n }\n\n ", " {\n width: 150px;\n height: 135px;\n flex: 0 0 150px;\n }\n\n @media print {\n width: 150px;\n height: 135px;\n flex: 0 0 150px;\n display: block;\n }\n "])), theme.breakpoints.down("sm"), theme.breakpoints.up("sm"));
|
|
11
|
+
});
|
|
12
|
+
var StyledPropertyDetailsBox = styled.div(_templateObject3 || (_templateObject3 = _rollupPluginBabelHelpers.taggedTemplateLiteral(["\n display: flex;\n width: 100%;\n align-items: flex-start;\n padding: 16px 24px 16px 20px;\n flex-direction: column;\n\n ", "\n\n @media print {\n flex-direction: row;\n align-items: center;\n }\n"])), function (_ref2) {
|
|
13
|
+
var theme = _ref2.theme;
|
|
14
|
+
return react.css(_templateObject4 || (_templateObject4 = _rollupPluginBabelHelpers.taggedTemplateLiteral(["\n ", " {\n flex-direction: row;\n align-items: center;\n }\n "])), theme.breakpoints.up("sm"));
|
|
15
|
+
});
|
|
16
|
+
var StyledPropertyAmenitiesBox = styled.div(_templateObject5 || (_templateObject5 = _rollupPluginBabelHelpers.taggedTemplateLiteral(["\n padding-right: 25px;\n display: flex;\n flex-direction: column;\n margin-top: 5px;\n\n gap: 18px;\n min-width: 170px;\n height: 100%;\n justify-content: space-between;\n\n ", "\n @media print {\n align-items: flex-end;\n }\n"])), function (_ref3) {
|
|
17
|
+
var theme = _ref3.theme;
|
|
18
|
+
return "\n @media (min-width: ".concat(theme.breakpoints.values.md, "px) {\n align-items: flex-end;\n }\n ");
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
exports.StyledPropertyAmenitiesBox = StyledPropertyAmenitiesBox;
|
|
22
|
+
exports.StyledPropertyDetailsBox = StyledPropertyDetailsBox;
|
|
23
|
+
exports.StyledPropertyImage = StyledPropertyImage;
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,32 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var AgentDetailsCard = require('./AgentDetailsCard.cjs');
|
|
4
|
-
var AnalyticsBox = require('./AnalyticsBox.cjs');
|
|
5
|
-
var AnalyticsSection = require('./AnalyticsSection.cjs');
|
|
6
|
-
var BookingChart = require('./BookingChart.cjs');
|
|
7
|
-
var BookingTable = require('./BookingTable.cjs');
|
|
8
|
-
var BookingTableRow = require('./BookingTableRow.cjs');
|
|
9
|
-
var BookingTableRowHeader = require('./BookingTableRowHeader.cjs');
|
|
10
|
-
var BookingTableRowSkeleton = require('./BookingTableRowSkeleton.cjs');
|
|
11
|
-
var CheckedIcon = require('./CheckedIcon.cjs');
|
|
12
|
-
var EnquiriesDoughnutChart = require('./EnquiriesDoughnutChart.cjs');
|
|
13
|
-
var GridList = require('./GridList.cjs');
|
|
14
|
-
var Hidden = require('./Hidden.cjs');
|
|
15
|
-
var IconLabel = require('./IconLabel.cjs');
|
|
16
|
-
var NotesCard = require('./NotesCard.cjs');
|
|
17
|
-
var PropertyCard = require('./PropertyCard.cjs');
|
|
18
|
-
require('react');
|
|
19
|
-
require('@tenancy.nz/ui');
|
|
20
|
-
require('@tenancy.nz/icons');
|
|
21
|
-
require('./_rollupPluginBabelHelpers-BlfsmA2H.js');
|
|
22
|
-
require('primereact/chart');
|
|
23
|
-
require('./BookingChart.styled.cjs');
|
|
24
|
-
require('@emotion/react');
|
|
25
|
-
require('@emotion/styled');
|
|
26
|
-
require('react-uid');
|
|
27
|
-
require('./BookingTableRow.styled.cjs');
|
|
28
|
-
require('./bookingTable2.cjs');
|
|
29
|
-
require('./PropertyCard.styled.cjs');
|
|
3
|
+
var AgentDetailsCard = require('./components/AgentDetailsCard.cjs');
|
|
4
|
+
var AnalyticsBox = require('./components/AnalyticsBox.cjs');
|
|
5
|
+
var AnalyticsSection = require('./components/AnalyticsSection.cjs');
|
|
6
|
+
var BookingChart = require('./components/BookingChart.cjs');
|
|
7
|
+
var BookingTable = require('./components/BookingTable.cjs');
|
|
8
|
+
var BookingTableRow = require('./components/BookingTableRow.cjs');
|
|
9
|
+
var BookingTableRowHeader = require('./components/BookingTableRowHeader.cjs');
|
|
10
|
+
var BookingTableRowSkeleton = require('./components/BookingTableRowSkeleton.cjs');
|
|
11
|
+
var CheckedIcon = require('./components/CheckedIcon.cjs');
|
|
12
|
+
var EnquiriesDoughnutChart = require('./components/EnquiriesDoughnutChart.cjs');
|
|
13
|
+
var GridList = require('./components/GridList.cjs');
|
|
14
|
+
var Hidden = require('./components/Hidden.cjs');
|
|
15
|
+
var IconLabel = require('./components/IconLabel.cjs');
|
|
16
|
+
var NotesCard = require('./components/NotesCard.cjs');
|
|
17
|
+
var PropertyCard = require('./components/PropertyCard.cjs');
|
|
30
18
|
|
|
31
19
|
|
|
32
20
|
|
package/dist/{cjs/_rollupPluginBabelHelpers-BlfsmA2H.js → esm/_virtual/_rollupPluginBabelHelpers.js}
RENAMED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
1
|
function _arrayLikeToArray(r, a) {
|
|
4
2
|
(null == a || a > r.length) && (a = r.length);
|
|
5
3
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
@@ -119,7 +117,4 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
119
117
|
}
|
|
120
118
|
}
|
|
121
119
|
|
|
122
|
-
|
|
123
|
-
exports._objectWithoutProperties = _objectWithoutProperties;
|
|
124
|
-
exports._slicedToArray = _slicedToArray;
|
|
125
|
-
exports._taggedTemplateLiteral = _taggedTemplateLiteral;
|
|
120
|
+
export { _arrayLikeToArray as arrayLikeToArray, _arrayWithHoles as arrayWithHoles, _defineProperty as defineProperty, _iterableToArrayLimit as iterableToArrayLimit, _nonIterableRest as nonIterableRest, _objectSpread2 as objectSpread2, _objectWithoutProperties as objectWithoutProperties, _objectWithoutPropertiesLoose as objectWithoutPropertiesLoose, _slicedToArray as slicedToArray, _taggedTemplateLiteral as taggedTemplateLiteral, _toPrimitive as toPrimitive, _toPropertyKey as toPropertyKey, _unsupportedIterableToArray as unsupportedIterableToArray };
|
|
@@ -2,7 +2,6 @@ import React from 'react';
|
|
|
2
2
|
import { Box, Skeleton, Heading, Text } from '@tenancy.nz/ui';
|
|
3
3
|
import { UserIcon, PhoneIcon, EnvelopeIcon } from '@tenancy.nz/icons';
|
|
4
4
|
import IconLabel from './IconLabel.js';
|
|
5
|
-
import './_rollupPluginBabelHelpers-BXw3UT-B.js';
|
|
6
5
|
|
|
7
6
|
function AgentDetailsCard(_ref) {
|
|
8
7
|
var _ref$email = _ref.email,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Paper, Box, Heading, Text } from '@tenancy.nz/ui';
|
|
4
4
|
|
|
@@ -2,8 +2,6 @@ import React from 'react';
|
|
|
2
2
|
import { useMediaQuery, Box, Paper, Text } from '@tenancy.nz/ui';
|
|
3
3
|
import AnalyticsBox from './AnalyticsBox.js';
|
|
4
4
|
import EnquiriesDoughnutChart from './EnquiriesDoughnutChart.js';
|
|
5
|
-
import './_rollupPluginBabelHelpers-BXw3UT-B.js';
|
|
6
|
-
import 'primereact/chart';
|
|
7
5
|
|
|
8
6
|
function AnalyticsSection(_ref) {
|
|
9
7
|
var viewingsCount = _ref.viewingsCount,
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import {
|
|
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
4
|
import { Chart } from 'primereact/chart';
|
|
5
5
|
import { StyledBookingChartStack, StyledBookingChartLegend, StyledBookingChartButton } from './BookingChart.styled.js';
|
|
6
|
-
import '@emotion/react';
|
|
7
|
-
import '@emotion/styled';
|
|
8
6
|
|
|
9
7
|
var defaultOptions = {
|
|
10
8
|
scaleFontColor: "black",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { taggedTemplateLiteral as _taggedTemplateLiteral } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
4
|
|
|
@@ -4,13 +4,6 @@ import { Box, Paper, Heading } from '@tenancy.nz/ui';
|
|
|
4
4
|
import BookingTableRowHeader from './BookingTableRowHeader.js';
|
|
5
5
|
import BookingTableRow from './BookingTableRow.js';
|
|
6
6
|
import BookingTableRowSkeleton from './BookingTableRowSkeleton.js';
|
|
7
|
-
import './BookingTableRow.styled.js';
|
|
8
|
-
import './_rollupPluginBabelHelpers-BXw3UT-B.js';
|
|
9
|
-
import '@emotion/react';
|
|
10
|
-
import '@emotion/styled';
|
|
11
|
-
import './bookingTable2.js';
|
|
12
|
-
import './CheckedIcon.js';
|
|
13
|
-
import '@tenancy.nz/icons';
|
|
14
7
|
|
|
15
8
|
function BookingTable(_ref) {
|
|
16
9
|
var data = _ref.data,
|
|
@@ -2,11 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { Grid, Text, Tag } from '@tenancy.nz/ui';
|
|
3
3
|
import CheckedIcon from './CheckedIcon.js';
|
|
4
4
|
import { StyledBookingTableRowCell } from './BookingTableRow.styled.js';
|
|
5
|
-
import { showBookingTableColumns } from '
|
|
6
|
-
import '@tenancy.nz/icons';
|
|
7
|
-
import './_rollupPluginBabelHelpers-BXw3UT-B.js';
|
|
8
|
-
import '@emotion/react';
|
|
9
|
-
import '@emotion/styled';
|
|
5
|
+
import { showBookingTableColumns } from '../utils/helpers/bookingTable.js';
|
|
10
6
|
|
|
11
7
|
var tagMap = function tagMap(status) {
|
|
12
8
|
if (status === "confirmed") {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { taggedTemplateLiteral as _taggedTemplateLiteral } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
4
|
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Grid } from '@tenancy.nz/ui';
|
|
3
3
|
import { StyledBookingTableRowCell } from './BookingTableRow.styled.js';
|
|
4
|
-
import { showBookingTableColumns } from '
|
|
5
|
-
import './_rollupPluginBabelHelpers-BXw3UT-B.js';
|
|
6
|
-
import '@emotion/react';
|
|
7
|
-
import '@emotion/styled';
|
|
4
|
+
import { showBookingTableColumns } from '../utils/helpers/bookingTable.js';
|
|
8
5
|
|
|
9
6
|
function BookingTableRowHeader(_ref) {
|
|
10
7
|
var _ref$columns = _ref.columns,
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Grid, Skeleton } from '@tenancy.nz/ui';
|
|
3
3
|
import { StyledBookingTableRowCell } from './BookingTableRow.styled.js';
|
|
4
|
-
import './_rollupPluginBabelHelpers-BXw3UT-B.js';
|
|
5
|
-
import '@emotion/react';
|
|
6
|
-
import '@emotion/styled';
|
|
7
4
|
|
|
8
5
|
function BookingTableRowSkeleton() {
|
|
9
6
|
return /* @__PURE__ */React.createElement(Grid, {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CircleCheckIcon, CircleTimesIcon } from '@tenancy.nz/icons';
|
|
3
|
+
import { Text } from '@tenancy.nz/ui';
|
|
3
4
|
|
|
4
5
|
function CheckedIcon(_ref) {
|
|
5
6
|
var value = _ref.value;
|
|
@@ -15,7 +16,10 @@ function CheckedIcon(_ref) {
|
|
|
15
16
|
size: "20px"
|
|
16
17
|
});
|
|
17
18
|
}
|
|
18
|
-
return
|
|
19
|
+
return /* @__PURE__ */React.createElement(Text, {
|
|
20
|
+
as: "span",
|
|
21
|
+
color: "textDisabled"
|
|
22
|
+
}, "\u2013");
|
|
19
23
|
}
|
|
20
24
|
|
|
21
25
|
export { CheckedIcon as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Grid, Box, Pagination, Select } from '@tenancy.nz/ui';
|
|
4
4
|
import Hidden from './Hidden.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Box } from '@tenancy.nz/ui';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Paper, Box, Skeleton, Text, Tag } from '@tenancy.nz/ui';
|
|
4
4
|
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Paper, Media, Box, Heading, Text } from '@tenancy.nz/ui';
|
|
4
4
|
import { Icon } from '@tenancy.nz/icons';
|
|
5
5
|
import IconLabel from './IconLabel.js';
|
|
6
6
|
import { StyledPropertyImage, StyledPropertyDetailsBox, StyledPropertyAmenitiesBox } from './PropertyCard.styled.js';
|
|
7
|
-
import '@emotion/react';
|
|
8
|
-
import '@emotion/styled';
|
|
9
7
|
|
|
10
8
|
var _excluded = ["address", "compact", "enquiriesCount", "imgSrc", "noOfBedrooms", "noOfBathrooms", "noOfCarparks", "rent", "viewingsCount"];
|
|
11
9
|
function PropertyCard(_ref) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { taggedTemplateLiteral as _taggedTemplateLiteral } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
4
|
|
package/dist/esm/index.js
CHANGED
|
@@ -1,27 +1,15 @@
|
|
|
1
|
-
export { default as AgentDetailsCard } from './AgentDetailsCard.js';
|
|
2
|
-
export { default as AnalyticsBox } from './AnalyticsBox.js';
|
|
3
|
-
export { default as AnalyticsSection } from './AnalyticsSection.js';
|
|
4
|
-
export { default as BookingChart } from './BookingChart.js';
|
|
5
|
-
export { default as BookingTable } from './BookingTable.js';
|
|
6
|
-
export { default as BookingTableRow } from './BookingTableRow.js';
|
|
7
|
-
export { default as BookingTableRowHeader } from './BookingTableRowHeader.js';
|
|
8
|
-
export { default as BookingTableRowSkeleton } from './BookingTableRowSkeleton.js';
|
|
9
|
-
export { default as CheckedIcon } from './CheckedIcon.js';
|
|
10
|
-
export { default as EnquiriesDoughnutChart } from './EnquiriesDoughnutChart.js';
|
|
11
|
-
export { default as GridList } from './GridList.js';
|
|
12
|
-
export { default as Hidden } from './Hidden.js';
|
|
13
|
-
export { default as IconLabel } from './IconLabel.js';
|
|
14
|
-
export { default as NotesCard } from './NotesCard.js';
|
|
15
|
-
export { default as PropertyCard } from './PropertyCard.js';
|
|
16
|
-
import 'react';
|
|
17
|
-
import '@tenancy.nz/ui';
|
|
18
|
-
import '@tenancy.nz/icons';
|
|
19
|
-
import './_rollupPluginBabelHelpers-BXw3UT-B.js';
|
|
20
|
-
import 'primereact/chart';
|
|
21
|
-
import './BookingChart.styled.js';
|
|
22
|
-
import '@emotion/react';
|
|
23
|
-
import '@emotion/styled';
|
|
24
|
-
import 'react-uid';
|
|
25
|
-
import './BookingTableRow.styled.js';
|
|
26
|
-
import './bookingTable2.js';
|
|
27
|
-
import './PropertyCard.styled.js';
|
|
1
|
+
export { default as AgentDetailsCard } from './components/AgentDetailsCard.js';
|
|
2
|
+
export { default as AnalyticsBox } from './components/AnalyticsBox.js';
|
|
3
|
+
export { default as AnalyticsSection } from './components/AnalyticsSection.js';
|
|
4
|
+
export { default as BookingChart } from './components/BookingChart.js';
|
|
5
|
+
export { default as BookingTable } from './components/BookingTable.js';
|
|
6
|
+
export { default as BookingTableRow } from './components/BookingTableRow.js';
|
|
7
|
+
export { default as BookingTableRowHeader } from './components/BookingTableRowHeader.js';
|
|
8
|
+
export { default as BookingTableRowSkeleton } from './components/BookingTableRowSkeleton.js';
|
|
9
|
+
export { default as CheckedIcon } from './components/CheckedIcon.js';
|
|
10
|
+
export { default as EnquiriesDoughnutChart } from './components/EnquiriesDoughnutChart.js';
|
|
11
|
+
export { default as GridList } from './components/GridList.js';
|
|
12
|
+
export { default as Hidden } from './components/Hidden.js';
|
|
13
|
+
export { default as IconLabel } from './components/IconLabel.js';
|
|
14
|
+
export { default as NotesCard } from './components/NotesCard.js';
|
|
15
|
+
export { default as PropertyCard } from './components/PropertyCard.js';
|
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.
|
|
4
|
+
"version": "1.1.9",
|
|
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.
|
|
22
|
-
"@tenancy.nz/ui": "1.1.
|
|
21
|
+
"@tenancy.nz/icons": "1.1.9",
|
|
22
|
+
"@tenancy.nz/ui": "1.1.9"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@tenancy.nz/icons": "1.1.
|
|
26
|
-
"@tenancy.nz/ui": "1.1.
|
|
25
|
+
"@tenancy.nz/icons": "1.1.9",
|
|
26
|
+
"@tenancy.nz/ui": "1.1.9"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"react-uid": "^2.4.0"
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-BlfsmA2H.js');
|
|
4
|
-
var react = require('@emotion/react');
|
|
5
|
-
var styled = require('@emotion/styled');
|
|
6
|
-
|
|
7
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
|
8
|
-
var StyledBookingChartStack = styled.div(_templateObject || (_templateObject = _rollupPluginBabelHelpers._taggedTemplateLiteral(["\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n padding: 0;\n margin: 0;\n list-style: none;\n font-size: 12px;\n justify-content: center;\n color: #000;\n width: 100%;\n"])));
|
|
9
|
-
var StyledBookingChartLegend = styled("span", {
|
|
10
|
-
shouldForwardProp: function shouldForwardProp(prop) {
|
|
11
|
-
return !["color"].includes(prop);
|
|
12
|
-
}
|
|
13
|
-
})(_templateObject2 || (_templateObject2 = _rollupPluginBabelHelpers._taggedTemplateLiteral(["\n font-weight: 500;\n display: flex;\n align-items: center;\n gap: 6px;\n\n &::before {\n content: '';\n display: inline-flex;\n width: 32px;\n height: 18px;\n background-color: ", ";\n border-radius: 4px;\n }\n"])), function (props) {
|
|
14
|
-
return props.color;
|
|
15
|
-
});
|
|
16
|
-
var StyledBookingChartButton = styled("button", {
|
|
17
|
-
shouldForwardProp: function shouldForwardProp(prop) {
|
|
18
|
-
return !["color"].includes(prop);
|
|
19
|
-
}
|
|
20
|
-
})(_templateObject3 || (_templateObject3 = _rollupPluginBabelHelpers._taggedTemplateLiteral(["\n && {\n font-weight: 500;\n display: flex;\n align-items: center;\n padding: 6px 10px;\n font-size: 14px;\n border-radius: 4px;\n font-family: inherit;\n color: ", ";\n border: 1px solid ", ";\n box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1);\n background-color: ", ";\n cursor: pointer;\n\n &:hover {\n background-color: ", ";\n }\n }\n"])), function (_ref) {
|
|
21
|
-
var theme = _ref.theme;
|
|
22
|
-
return theme.palette.primary.main;
|
|
23
|
-
}, function (_ref2) {
|
|
24
|
-
var theme = _ref2.theme;
|
|
25
|
-
return theme.palette.primary.main;
|
|
26
|
-
}, function (_ref3) {
|
|
27
|
-
var active = _ref3.active,
|
|
28
|
-
theme = _ref3.theme;
|
|
29
|
-
return active ? "#CEF3ED" : theme.palette.background.paper;
|
|
30
|
-
}, function (_ref4) {
|
|
31
|
-
var active = _ref4.active,
|
|
32
|
-
theme = _ref4.theme;
|
|
33
|
-
return !active ? theme.palette.grey[100] : null;
|
|
34
|
-
});
|
|
35
|
-
var StyledPropertyDetailsBox = styled.div(_templateObject4 || (_templateObject4 = _rollupPluginBabelHelpers._taggedTemplateLiteral(["\n display: flex;\n width: 100%;\n align-items: flex-start;\n padding: 16px 24px 16px 20px;\n flex-direction: column;\n\n ", "\n\n @media print {\n flex-direction: row;\n align-items: center;\n }\n"])), function (_ref5) {
|
|
36
|
-
var theme = _ref5.theme;
|
|
37
|
-
return react.css(_templateObject5 || (_templateObject5 = _rollupPluginBabelHelpers._taggedTemplateLiteral(["\n ", " {\n flex-direction: row;\n align-items: center;\n }\n "])), theme.breakpoints.up("sm"));
|
|
38
|
-
});
|
|
39
|
-
var StyledPropertyAmenitiesBox = styled.div(_templateObject6 || (_templateObject6 = _rollupPluginBabelHelpers._taggedTemplateLiteral(["\n padding-right: 25px;\n display: flex;\n flex-direction: column;\n margin-top: 5px;\n\n gap: 18px;\n min-width: 170px;\n height: 100%;\n justify-content: space-between;\n\n ", "\n\n @media print {\n align-items: flex-end;\n }\n"])), function (_ref6) {
|
|
40
|
-
var theme = _ref6.theme;
|
|
41
|
-
return "\n @media (min-width: ".concat(theme.breakpoints.values.md, "px) {\n align-items: flex-end;\n }\n ");
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
exports.StyledBookingChartButton = StyledBookingChartButton;
|
|
45
|
-
exports.StyledBookingChartLegend = StyledBookingChartLegend;
|
|
46
|
-
exports.StyledBookingChartStack = StyledBookingChartStack;
|
|
47
|
-
exports.StyledPropertyAmenitiesBox = StyledPropertyAmenitiesBox;
|
|
48
|
-
exports.StyledPropertyDetailsBox = StyledPropertyDetailsBox;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-BlfsmA2H.js');
|
|
4
|
-
var react = require('@emotion/react');
|
|
5
|
-
var styled = require('@emotion/styled');
|
|
6
|
-
|
|
7
|
-
var _templateObject, _templateObject2;
|
|
8
|
-
var StyledBookingTableRowCell = styled("div", {
|
|
9
|
-
shouldForwardProp: function shouldForwardProp(prop) {
|
|
10
|
-
return prop !== "align";
|
|
11
|
-
}
|
|
12
|
-
})(_templateObject || (_templateObject = _rollupPluginBabelHelpers._taggedTemplateLiteral(["\n ", "\n"])), function (_ref) {
|
|
13
|
-
var _ref$align = _ref.align,
|
|
14
|
-
align = _ref$align === void 0 ? "left" : _ref$align,
|
|
15
|
-
header = _ref.header,
|
|
16
|
-
theme = _ref.theme;
|
|
17
|
-
return react.css(_templateObject2 || (_templateObject2 = _rollupPluginBabelHelpers._taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n justify-content: ", ";\n padding: 6px 12px;\n font-size: ", ";\n color: #717680;\n height: 100%;\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", " {\n padding: 12px 24px;\n }\n\n @media print {\n padding: 12px 24px;\n }\n "])), header ? "center" : "flex-start", header ? "12px" : "14px", !header && "\n border-top: 1px solid #e9eaeb;\n ", align === "left" && "\n align-items: flex-start;\n ", align === "center" && "\n align-items: center;\n text-align: center;\n ", align === "right" && "\n align-items: flex-end;\n ", theme.breakpoints.up("md"));
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
exports.StyledBookingTableRowCell = StyledBookingTableRowCell;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-BlfsmA2H.js');
|
|
4
|
-
var react = require('@emotion/react');
|
|
5
|
-
var styled = require('@emotion/styled');
|
|
6
|
-
|
|
7
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
8
|
-
var StyledPropertyImage = styled.figure(_templateObject || (_templateObject = _rollupPluginBabelHelpers._taggedTemplateLiteral(["\n padding: 0;\n margin: 0;\n width: 120px;\n height: 95px;\n flex: 0 0 95px;\n overflow: hidden;\n\n ", "\n"])), function (_ref) {
|
|
9
|
-
var theme = _ref.theme;
|
|
10
|
-
return react.css(_templateObject2 || (_templateObject2 = _rollupPluginBabelHelpers._taggedTemplateLiteral(["\n ", " {\n display: none;\n }\n\n ", " {\n width: 150px;\n height: 135px;\n flex: 0 0 150px;\n }\n\n @media print {\n width: 150px;\n height: 135px;\n flex: 0 0 150px;\n display: block;\n }\n "])), theme.breakpoints.down("sm"), theme.breakpoints.up("sm"));
|
|
11
|
-
});
|
|
12
|
-
var StyledPropertyDetailsBox = styled.div(_templateObject3 || (_templateObject3 = _rollupPluginBabelHelpers._taggedTemplateLiteral(["\n display: flex;\n width: 100%;\n align-items: flex-start;\n padding: 16px 24px 16px 20px;\n flex-direction: column;\n\n ", "\n\n @media print {\n flex-direction: row;\n align-items: center;\n }\n"])), function (_ref2) {
|
|
13
|
-
var theme = _ref2.theme;
|
|
14
|
-
return react.css(_templateObject4 || (_templateObject4 = _rollupPluginBabelHelpers._taggedTemplateLiteral(["\n ", " {\n flex-direction: row;\n align-items: center;\n }\n "])), theme.breakpoints.up("sm"));
|
|
15
|
-
});
|
|
16
|
-
var StyledPropertyAmenitiesBox = styled.div(_templateObject5 || (_templateObject5 = _rollupPluginBabelHelpers._taggedTemplateLiteral(["\n padding-right: 25px;\n display: flex;\n flex-direction: column;\n margin-top: 5px;\n\n gap: 18px;\n min-width: 170px;\n height: 100%;\n justify-content: space-between;\n\n ", "\n @media print {\n align-items: flex-end;\n }\n"])), function (_ref3) {
|
|
17
|
-
var theme = _ref3.theme;
|
|
18
|
-
return "\n @media (min-width: ".concat(theme.breakpoints.values.md, "px) {\n align-items: flex-end;\n }\n ");
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
exports.StyledPropertyAmenitiesBox = StyledPropertyAmenitiesBox;
|
|
22
|
-
exports.StyledPropertyDetailsBox = StyledPropertyDetailsBox;
|
|
23
|
-
exports.StyledPropertyImage = StyledPropertyImage;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|