@tenancy.nz/feature-ui 1.0.7 → 1.0.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/cjs/{components/AgentDetailsCard.cjs → AgentDetailsCard.cjs} +1 -1
- package/dist/cjs/{components/AnalyticsBox.cjs → AnalyticsBox.cjs} +3 -4
- package/dist/cjs/{components/AnalyticsSection.cjs → AnalyticsSection.cjs} +2 -1
- package/dist/cjs/{components/BookingChart.cjs → BookingChart.cjs} +7 -6
- package/dist/cjs/BookingChart.styled.cjs +45 -0
- package/dist/cjs/{components/BookingTable.cjs → BookingTable.cjs} +6 -1
- package/dist/cjs/{components/BookingTableRow.cjs → BookingTableRow.cjs} +4 -1
- package/dist/cjs/BookingTableRow.styled.cjs +20 -0
- package/dist/cjs/{components/BookingTableRowHeader.cjs → BookingTableRowHeader.cjs} +3 -1
- package/dist/cjs/{components/BookingTableRowSkeleton.cjs → BookingTableRowSkeleton.cjs} +3 -1
- package/dist/cjs/{components/CheckedIcon.cjs → CheckedIcon.cjs} +0 -1
- package/dist/cjs/{components/EnquiriesDoughnutChart.cjs → EnquiriesDoughnutChart.cjs} +0 -1
- package/dist/cjs/{components/GridList.cjs → GridList.cjs} +3 -4
- package/dist/cjs/{components/Hidden.cjs → Hidden.cjs} +0 -1
- package/dist/cjs/{components/IconLabel.cjs → IconLabel.cjs} +3 -4
- package/dist/cjs/{components/NotesCard.cjs → NotesCard.cjs} +3 -4
- package/dist/cjs/{components/PropertyCard.cjs → PropertyCard.cjs} +5 -4
- package/dist/cjs/PropertyCard.styled.cjs +23 -0
- package/dist/{esm/_virtual/_rollupPluginBabelHelpers.js → cjs/_rollupPluginBabelHelpers-BlfsmA2H.js} +6 -1
- package/dist/cjs/index.cjs +26 -16
- package/dist/esm/{components/AgentDetailsCard.js → AgentDetailsCard.js} +1 -1
- package/dist/esm/{components/AnalyticsBox.js → AnalyticsBox.js} +1 -2
- package/dist/esm/{components/AnalyticsSection.js → AnalyticsSection.js} +2 -1
- package/dist/esm/{components/BookingChart.js → BookingChart.js} +3 -2
- package/dist/esm/{components/BookingChart.styled.js → BookingChart.styled.js} +1 -2
- package/dist/esm/{components/BookingTable.js → BookingTable.js} +6 -1
- package/dist/esm/{components/BookingTableRow.js → BookingTableRow.js} +4 -1
- package/dist/esm/{components/BookingTableRow.styled.js → BookingTableRow.styled.js} +1 -2
- package/dist/esm/{components/BookingTableRowHeader.js → BookingTableRowHeader.js} +3 -1
- package/dist/esm/{components/BookingTableRowSkeleton.js → BookingTableRowSkeleton.js} +3 -1
- package/dist/esm/{components/CheckedIcon.js → CheckedIcon.js} +0 -1
- package/dist/esm/{components/EnquiriesDoughnutChart.js → EnquiriesDoughnutChart.js} +0 -1
- package/dist/esm/{components/GridList.js → GridList.js} +1 -2
- package/dist/esm/{components/Hidden.js → Hidden.js} +0 -1
- package/dist/esm/{components/IconLabel.js → IconLabel.js} +1 -2
- package/dist/esm/{components/NotesCard.js → NotesCard.js} +1 -2
- package/dist/esm/{components/PropertyCard.js → PropertyCard.js} +3 -2
- package/dist/esm/{components/PropertyCard.styled.js → PropertyCard.styled.js} +1 -2
- package/dist/{cjs/_virtual/_rollupPluginBabelHelpers.cjs → esm/_rollupPluginBabelHelpers-BXw3UT-B.js} +1 -15
- package/dist/esm/index.js +26 -16
- package/package.json +7 -9
- package/dist/cjs/components/BookingChart.styled.cjs +0 -46
- package/dist/cjs/components/BookingTableRow.styled.cjs +0 -21
- package/dist/cjs/components/PropertyCard.styled.cjs +0 -24
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
'use strict';
|
|
3
2
|
|
|
4
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -7,6 +6,7 @@ var React = require('react');
|
|
|
7
6
|
var ui = require('@tenancy.nz/ui');
|
|
8
7
|
var icons = require('@tenancy.nz/icons');
|
|
9
8
|
var IconLabel = require('./IconLabel.cjs');
|
|
9
|
+
require('./_rollupPluginBabelHelpers-BlfsmA2H.js');
|
|
10
10
|
|
|
11
11
|
function AgentDetailsCard(_ref) {
|
|
12
12
|
var _ref$email = _ref.email,
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
'use strict';
|
|
3
2
|
|
|
4
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
4
|
|
|
6
|
-
var _rollupPluginBabelHelpers = require('
|
|
5
|
+
var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-BlfsmA2H.js');
|
|
7
6
|
var React = require('react');
|
|
8
7
|
var ui = require('@tenancy.nz/ui');
|
|
9
8
|
|
|
@@ -17,8 +16,8 @@ function AnalyticsBox(_ref) {
|
|
|
17
16
|
label = _ref.label,
|
|
18
17
|
amount = _ref.amount,
|
|
19
18
|
text = _ref.text,
|
|
20
|
-
rest = _rollupPluginBabelHelpers.
|
|
21
|
-
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), {}, {
|
|
22
21
|
sx: {
|
|
23
22
|
maxWidth: maxWidth,
|
|
24
23
|
width: width,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
'use strict';
|
|
3
2
|
|
|
4
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -7,6 +6,8 @@ var React = require('react');
|
|
|
7
6
|
var ui = require('@tenancy.nz/ui');
|
|
8
7
|
var AnalyticsBox = require('./AnalyticsBox.cjs');
|
|
9
8
|
var EnquiriesDoughnutChart = require('./EnquiriesDoughnutChart.cjs');
|
|
9
|
+
require('./_rollupPluginBabelHelpers-BlfsmA2H.js');
|
|
10
|
+
require('primereact/chart');
|
|
10
11
|
|
|
11
12
|
function AnalyticsSection(_ref) {
|
|
12
13
|
var viewingsCount = _ref.viewingsCount,
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
'use strict';
|
|
3
2
|
|
|
4
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
4
|
|
|
6
|
-
var _rollupPluginBabelHelpers = require('
|
|
5
|
+
var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-BlfsmA2H.js');
|
|
7
6
|
var React = require('react');
|
|
8
7
|
var ui = require('@tenancy.nz/ui');
|
|
9
8
|
var chart = require('primereact/chart');
|
|
10
9
|
var BookingChart_styled = require('./BookingChart.styled.cjs');
|
|
10
|
+
require('@emotion/react');
|
|
11
|
+
require('@emotion/styled');
|
|
11
12
|
|
|
12
13
|
var defaultOptions = {
|
|
13
14
|
scaleFontColor: "black",
|
|
@@ -76,10 +77,10 @@ function BookingChart(_ref) {
|
|
|
76
77
|
backgroundColor = _ref2.backgroundColor;
|
|
77
78
|
return [label, backgroundColor];
|
|
78
79
|
}).filter(function (_ref3, i, items) {
|
|
79
|
-
var _ref4 = _rollupPluginBabelHelpers.
|
|
80
|
+
var _ref4 = _rollupPluginBabelHelpers._slicedToArray(_ref3, 1),
|
|
80
81
|
label = _ref4[0];
|
|
81
82
|
return items.findIndex(function (_ref5) {
|
|
82
|
-
var _ref6 = _rollupPluginBabelHelpers.
|
|
83
|
+
var _ref6 = _rollupPluginBabelHelpers._slicedToArray(_ref5, 1),
|
|
83
84
|
l = _ref6[0];
|
|
84
85
|
return l === label;
|
|
85
86
|
}) === i;
|
|
@@ -91,7 +92,7 @@ function BookingChart(_ref) {
|
|
|
91
92
|
gap: "16px",
|
|
92
93
|
width: "100%"
|
|
93
94
|
}, legends.length > 0 && /* @__PURE__ */React.createElement(BookingChart_styled.StyledBookingChartStack, null, legends.map(function (_ref7) {
|
|
94
|
-
var _ref8 = _rollupPluginBabelHelpers.
|
|
95
|
+
var _ref8 = _rollupPluginBabelHelpers._slicedToArray(_ref7, 2),
|
|
95
96
|
label = _ref8[0],
|
|
96
97
|
backgroundColor = _ref8[1];
|
|
97
98
|
return /* @__PURE__ */React.createElement(BookingChart_styled.StyledBookingChartLegend, {
|
|
@@ -107,7 +108,7 @@ function BookingChart(_ref) {
|
|
|
107
108
|
labels: labels,
|
|
108
109
|
datasets: data
|
|
109
110
|
},
|
|
110
|
-
options: _rollupPluginBabelHelpers.
|
|
111
|
+
options: _rollupPluginBabelHelpers._objectSpread2(_rollupPluginBabelHelpers._objectSpread2({}, defaultOptions), options)
|
|
111
112
|
})), onModeChange && /* @__PURE__ */React.createElement(BookingChart_styled.StyledBookingChartStack, null, /* @__PURE__ */React.createElement(BookingChart_styled.StyledBookingChartButton, {
|
|
112
113
|
onClick: onModeChange,
|
|
113
114
|
active: mode === "day",
|
|
@@ -0,0 +1,45 @@
|
|
|
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 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 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"])), function (_ref) {
|
|
21
|
+
var theme = _ref.theme;
|
|
22
|
+
return theme.palette.primary.main;
|
|
23
|
+
}, function (_ref2) {
|
|
24
|
+
var active = _ref2.active,
|
|
25
|
+
theme = _ref2.theme;
|
|
26
|
+
return active ? "#CEF3ED" : theme.palette.background.paper;
|
|
27
|
+
}, function (_ref3) {
|
|
28
|
+
var active = _ref3.active,
|
|
29
|
+
theme = _ref3.theme;
|
|
30
|
+
return !active ? theme.palette.grey[100] : null;
|
|
31
|
+
});
|
|
32
|
+
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 (_ref4) {
|
|
33
|
+
var theme = _ref4.theme;
|
|
34
|
+
return react.css(_templateObject5 || (_templateObject5 = _rollupPluginBabelHelpers._taggedTemplateLiteral(["\n ", " {\n flex-direction: row;\n align-items: center;\n }\n "])), theme.breakpoints.up("sm"));
|
|
35
|
+
});
|
|
36
|
+
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 (_ref5) {
|
|
37
|
+
var theme = _ref5.theme;
|
|
38
|
+
return "\n @media (min-width: ".concat(theme.breakpoints.values.md, "px) {\n align-items: flex-end;\n }\n ");
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
exports.StyledBookingChartButton = StyledBookingChartButton;
|
|
42
|
+
exports.StyledBookingChartLegend = StyledBookingChartLegend;
|
|
43
|
+
exports.StyledBookingChartStack = StyledBookingChartStack;
|
|
44
|
+
exports.StyledPropertyAmenitiesBox = StyledPropertyAmenitiesBox;
|
|
45
|
+
exports.StyledPropertyDetailsBox = StyledPropertyDetailsBox;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
'use strict';
|
|
3
2
|
|
|
4
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -9,6 +8,12 @@ var ui = require('@tenancy.nz/ui');
|
|
|
9
8
|
var BookingTableRowHeader = require('./BookingTableRowHeader.cjs');
|
|
10
9
|
var BookingTableRow = require('./BookingTableRow.cjs');
|
|
11
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('./CheckedIcon.cjs');
|
|
16
|
+
require('@tenancy.nz/icons');
|
|
12
17
|
|
|
13
18
|
function BookingTable(_ref) {
|
|
14
19
|
var data = _ref.data,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
'use strict';
|
|
3
2
|
|
|
4
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -7,6 +6,10 @@ var React = require('react');
|
|
|
7
6
|
var ui = require('@tenancy.nz/ui');
|
|
8
7
|
var CheckedIcon = require('./CheckedIcon.cjs');
|
|
9
8
|
var BookingTableRow_styled = require('./BookingTableRow.styled.cjs');
|
|
9
|
+
require('@tenancy.nz/icons');
|
|
10
|
+
require('./_rollupPluginBabelHelpers-BlfsmA2H.js');
|
|
11
|
+
require('@emotion/react');
|
|
12
|
+
require('@emotion/styled');
|
|
10
13
|
|
|
11
14
|
var tagMap = function tagMap(status) {
|
|
12
15
|
if (status === "confirmed") {
|
|
@@ -0,0 +1,20 @@
|
|
|
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 padding: 12px 24px;\n }\n\n @media print {\n padding: 12px 24px;\n }\n "])), header ? "center" : "flex-start", header ? "12px" : "14px", 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,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
'use strict';
|
|
3
2
|
|
|
4
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -6,6 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
6
5
|
var React = require('react');
|
|
7
6
|
var ui = require('@tenancy.nz/ui');
|
|
8
7
|
var BookingTableRow_styled = require('./BookingTableRow.styled.cjs');
|
|
8
|
+
require('./_rollupPluginBabelHelpers-BlfsmA2H.js');
|
|
9
|
+
require('@emotion/react');
|
|
10
|
+
require('@emotion/styled');
|
|
9
11
|
|
|
10
12
|
function BookingTableRowHeader() {
|
|
11
13
|
return /* @__PURE__ */React.createElement(ui.Grid, {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
'use strict';
|
|
3
2
|
|
|
4
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -6,6 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
6
5
|
var React = require('react');
|
|
7
6
|
var ui = require('@tenancy.nz/ui');
|
|
8
7
|
var BookingTableRow_styled = require('./BookingTableRow.styled.cjs');
|
|
8
|
+
require('./_rollupPluginBabelHelpers-BlfsmA2H.js');
|
|
9
|
+
require('@emotion/react');
|
|
10
|
+
require('@emotion/styled');
|
|
9
11
|
|
|
10
12
|
function BookingTableRowSkeleton() {
|
|
11
13
|
return /* @__PURE__ */React.createElement(ui.Grid, {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
'use strict';
|
|
3
2
|
|
|
4
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
4
|
|
|
6
|
-
var _rollupPluginBabelHelpers = require('
|
|
5
|
+
var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-BlfsmA2H.js');
|
|
7
6
|
var React = require('react');
|
|
8
7
|
var ui = require('@tenancy.nz/ui');
|
|
9
8
|
var Hidden = require('./Hidden.cjs');
|
|
@@ -27,7 +26,7 @@ function GridList(_ref) {
|
|
|
27
26
|
onChangeResultsPerPage = _ref.onChangeResultsPerPage,
|
|
28
27
|
perPage = _ref.perPage,
|
|
29
28
|
scrollTopOnChangePage = _ref.scrollTopOnChangePage,
|
|
30
|
-
rest = _rollupPluginBabelHelpers.
|
|
29
|
+
rest = _rollupPluginBabelHelpers._objectWithoutProperties(_ref, _excluded);
|
|
31
30
|
var gridContainerRef = React.useRef(null);
|
|
32
31
|
var childLen = React.Children.count(children);
|
|
33
32
|
var isChildren = childLen > 0;
|
|
@@ -48,7 +47,7 @@ function GridList(_ref) {
|
|
|
48
47
|
style: {
|
|
49
48
|
width: "100%"
|
|
50
49
|
}
|
|
51
|
-
}, /* @__PURE__ */React.createElement(ui.Grid, _rollupPluginBabelHelpers.
|
|
50
|
+
}, /* @__PURE__ */React.createElement(ui.Grid, _rollupPluginBabelHelpers._objectSpread2(_rollupPluginBabelHelpers._objectSpread2({
|
|
52
51
|
container: true
|
|
53
52
|
}, rest), {}, {
|
|
54
53
|
spacing: spacing
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
'use strict';
|
|
3
2
|
|
|
4
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
4
|
|
|
6
|
-
var _rollupPluginBabelHelpers = require('
|
|
5
|
+
var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-BlfsmA2H.js');
|
|
7
6
|
var React = require('react');
|
|
8
7
|
var ui = require('@tenancy.nz/ui');
|
|
9
8
|
|
|
@@ -16,8 +15,8 @@ function IconLabel(_ref) {
|
|
|
16
15
|
startIcon = _ref$startIcon === void 0 ? void 0 : _ref$startIcon,
|
|
17
16
|
_ref$onClick = _ref.onClick,
|
|
18
17
|
onClick = _ref$onClick === void 0 ? void 0 : _ref$onClick,
|
|
19
|
-
rest = _rollupPluginBabelHelpers.
|
|
20
|
-
var iconLabel = /* @__PURE__ */React.createElement(ui.Box, _rollupPluginBabelHelpers.
|
|
18
|
+
rest = _rollupPluginBabelHelpers._objectWithoutProperties(_ref, _excluded);
|
|
19
|
+
var iconLabel = /* @__PURE__ */React.createElement(ui.Box, _rollupPluginBabelHelpers._objectSpread2({
|
|
21
20
|
align: "center",
|
|
22
21
|
display: "inline-flex"
|
|
23
22
|
}, rest), startIcon && /* @__PURE__ */React.createElement(ui.Box, {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
'use strict';
|
|
3
2
|
|
|
4
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
4
|
|
|
6
|
-
var _rollupPluginBabelHelpers = require('
|
|
5
|
+
var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-BlfsmA2H.js');
|
|
7
6
|
var React = require('react');
|
|
8
7
|
var ui = require('@tenancy.nz/ui');
|
|
9
8
|
|
|
@@ -33,8 +32,8 @@ function NotesCard(_ref) {
|
|
|
33
32
|
tag = _ref$tag === void 0 ? void 0 : _ref$tag,
|
|
34
33
|
_ref$text = _ref.text,
|
|
35
34
|
text = _ref$text === void 0 ? void 0 : _ref$text,
|
|
36
|
-
rest = _rollupPluginBabelHelpers.
|
|
37
|
-
return /* @__PURE__ */React.createElement(ui.Paper, _rollupPluginBabelHelpers.
|
|
35
|
+
rest = _rollupPluginBabelHelpers._objectWithoutProperties(_ref, _excluded);
|
|
36
|
+
return /* @__PURE__ */React.createElement(ui.Paper, _rollupPluginBabelHelpers._objectSpread2({
|
|
38
37
|
inset: "medium",
|
|
39
38
|
sx: {
|
|
40
39
|
minHeight: "100%"
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
'use strict';
|
|
3
2
|
|
|
4
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
4
|
|
|
6
|
-
var _rollupPluginBabelHelpers = require('
|
|
5
|
+
var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-BlfsmA2H.js');
|
|
7
6
|
var React = require('react');
|
|
8
7
|
var ui = require('@tenancy.nz/ui');
|
|
9
8
|
var icons = require('@tenancy.nz/icons');
|
|
10
9
|
var IconLabel = require('./IconLabel.cjs');
|
|
11
10
|
var PropertyCard_styled = require('./PropertyCard.styled.cjs');
|
|
11
|
+
require('@emotion/react');
|
|
12
|
+
require('@emotion/styled');
|
|
12
13
|
|
|
13
14
|
var _excluded = ["address", "compact", "enquiriesCount", "imgSrc", "noOfBedrooms", "noOfBathrooms", "noOfCarparks", "rent", "viewingsCount"];
|
|
14
15
|
function PropertyCard(_ref) {
|
|
@@ -29,8 +30,8 @@ function PropertyCard(_ref) {
|
|
|
29
30
|
rent = _ref$rent === void 0 ? void 0 : _ref$rent,
|
|
30
31
|
_ref$viewingsCount = _ref.viewingsCount,
|
|
31
32
|
viewingsCount = _ref$viewingsCount === void 0 ? void 0 : _ref$viewingsCount,
|
|
32
|
-
rest = _rollupPluginBabelHelpers.
|
|
33
|
-
return /* @__PURE__ */React.createElement(ui.Paper, _rollupPluginBabelHelpers.
|
|
33
|
+
rest = _rollupPluginBabelHelpers._objectWithoutProperties(_ref, _excluded);
|
|
34
|
+
return /* @__PURE__ */React.createElement(ui.Paper, _rollupPluginBabelHelpers._objectSpread2({
|
|
34
35
|
overflow: false,
|
|
35
36
|
sx: {
|
|
36
37
|
display: "flex",
|
|
@@ -0,0 +1,23 @@
|
|
|
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;
|
package/dist/{esm/_virtual/_rollupPluginBabelHelpers.js → cjs/_rollupPluginBabelHelpers-BlfsmA2H.js}
RENAMED
|
@@ -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,7 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
117
119
|
}
|
|
118
120
|
}
|
|
119
121
|
|
|
120
|
-
|
|
122
|
+
exports._objectSpread2 = _objectSpread2;
|
|
123
|
+
exports._objectWithoutProperties = _objectWithoutProperties;
|
|
124
|
+
exports._slicedToArray = _slicedToArray;
|
|
125
|
+
exports._taggedTemplateLiteral = _taggedTemplateLiteral;
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,21 +1,31 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
'use strict';
|
|
3
2
|
|
|
4
|
-
var AgentDetailsCard = require('./
|
|
5
|
-
var AnalyticsBox = require('./
|
|
6
|
-
var AnalyticsSection = require('./
|
|
7
|
-
var BookingChart = require('./
|
|
8
|
-
var BookingTable = require('./
|
|
9
|
-
var BookingTableRow = require('./
|
|
10
|
-
var BookingTableRowHeader = require('./
|
|
11
|
-
var BookingTableRowSkeleton = require('./
|
|
12
|
-
var CheckedIcon = require('./
|
|
13
|
-
var EnquiriesDoughnutChart = require('./
|
|
14
|
-
var GridList = require('./
|
|
15
|
-
var Hidden = require('./
|
|
16
|
-
var IconLabel = require('./
|
|
17
|
-
var NotesCard = require('./
|
|
18
|
-
var PropertyCard = require('./
|
|
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('./PropertyCard.styled.cjs');
|
|
19
29
|
|
|
20
30
|
|
|
21
31
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import { Box, Skeleton, Heading, Text } from '@tenancy.nz/ui';
|
|
4
3
|
import { UserIcon, PhoneIcon, EnvelopeIcon } from '@tenancy.nz/icons';
|
|
5
4
|
import IconLabel from './IconLabel.js';
|
|
5
|
+
import './_rollupPluginBabelHelpers-BXw3UT-B.js';
|
|
6
6
|
|
|
7
7
|
function AgentDetailsCard(_ref) {
|
|
8
8
|
var _ref$email = _ref.email,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
1
|
+
import { _ as _objectWithoutProperties, a as _objectSpread2 } from './_rollupPluginBabelHelpers-BXw3UT-B.js';
|
|
3
2
|
import React from 'react';
|
|
4
3
|
import { Paper, Box, Heading, Text } from '@tenancy.nz/ui';
|
|
5
4
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import { useMediaQuery, Box, Paper, Text } from '@tenancy.nz/ui';
|
|
4
3
|
import AnalyticsBox from './AnalyticsBox.js';
|
|
5
4
|
import EnquiriesDoughnutChart from './EnquiriesDoughnutChart.js';
|
|
5
|
+
import './_rollupPluginBabelHelpers-BXw3UT-B.js';
|
|
6
|
+
import 'primereact/chart';
|
|
6
7
|
|
|
7
8
|
function AnalyticsSection(_ref) {
|
|
8
9
|
var viewingsCount = _ref.viewingsCount,
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
import { slicedToArray as _slicedToArray, objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
1
|
+
import { c as _slicedToArray, a as _objectSpread2 } from './_rollupPluginBabelHelpers-BXw3UT-B.js';
|
|
3
2
|
import React, { useMemo } from 'react';
|
|
4
3
|
import { Box } from '@tenancy.nz/ui';
|
|
5
4
|
import { Chart } from 'primereact/chart';
|
|
6
5
|
import { StyledBookingChartStack, StyledBookingChartLegend, StyledBookingChartButton } from './BookingChart.styled.js';
|
|
6
|
+
import '@emotion/react';
|
|
7
|
+
import '@emotion/styled';
|
|
7
8
|
|
|
8
9
|
var defaultOptions = {
|
|
9
10
|
scaleFontColor: "black",
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { taggedTemplateLiteral as _taggedTemplateLiteral } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
1
|
+
import { b as _taggedTemplateLiteral } from './_rollupPluginBabelHelpers-BXw3UT-B.js';
|
|
3
2
|
import { css } from '@emotion/react';
|
|
4
3
|
import styled from '@emotion/styled';
|
|
5
4
|
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import { uid } from 'react-uid';
|
|
4
3
|
import { Box, Paper, Heading } from '@tenancy.nz/ui';
|
|
5
4
|
import BookingTableRowHeader from './BookingTableRowHeader.js';
|
|
6
5
|
import BookingTableRow from './BookingTableRow.js';
|
|
7
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 './CheckedIcon.js';
|
|
12
|
+
import '@tenancy.nz/icons';
|
|
8
13
|
|
|
9
14
|
function BookingTable(_ref) {
|
|
10
15
|
var data = _ref.data,
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import { Grid, Text, Tag } from '@tenancy.nz/ui';
|
|
4
3
|
import CheckedIcon from './CheckedIcon.js';
|
|
5
4
|
import { StyledBookingTableRowCell } from './BookingTableRow.styled.js';
|
|
5
|
+
import '@tenancy.nz/icons';
|
|
6
|
+
import './_rollupPluginBabelHelpers-BXw3UT-B.js';
|
|
7
|
+
import '@emotion/react';
|
|
8
|
+
import '@emotion/styled';
|
|
6
9
|
|
|
7
10
|
var tagMap = function tagMap(status) {
|
|
8
11
|
if (status === "confirmed") {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { taggedTemplateLiteral as _taggedTemplateLiteral } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
1
|
+
import { b as _taggedTemplateLiteral } from './_rollupPluginBabelHelpers-BXw3UT-B.js';
|
|
3
2
|
import { css } from '@emotion/react';
|
|
4
3
|
import styled from '@emotion/styled';
|
|
5
4
|
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import { Grid } from '@tenancy.nz/ui';
|
|
4
3
|
import { StyledBookingTableRowCell } from './BookingTableRow.styled.js';
|
|
4
|
+
import './_rollupPluginBabelHelpers-BXw3UT-B.js';
|
|
5
|
+
import '@emotion/react';
|
|
6
|
+
import '@emotion/styled';
|
|
5
7
|
|
|
6
8
|
function BookingTableRowHeader() {
|
|
7
9
|
return /* @__PURE__ */React.createElement(Grid, {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import { Grid, Skeleton } from '@tenancy.nz/ui';
|
|
4
3
|
import { StyledBookingTableRowCell } from './BookingTableRow.styled.js';
|
|
4
|
+
import './_rollupPluginBabelHelpers-BXw3UT-B.js';
|
|
5
|
+
import '@emotion/react';
|
|
6
|
+
import '@emotion/styled';
|
|
5
7
|
|
|
6
8
|
function BookingTableRowSkeleton() {
|
|
7
9
|
return /* @__PURE__ */React.createElement(Grid, {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
1
|
+
import { _ as _objectWithoutProperties, a as _objectSpread2 } from './_rollupPluginBabelHelpers-BXw3UT-B.js';
|
|
3
2
|
import React from 'react';
|
|
4
3
|
import { Grid, Box, Pagination, Select } from '@tenancy.nz/ui';
|
|
5
4
|
import Hidden from './Hidden.js';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
1
|
+
import { _ as _objectWithoutProperties, a as _objectSpread2 } from './_rollupPluginBabelHelpers-BXw3UT-B.js';
|
|
3
2
|
import React from 'react';
|
|
4
3
|
import { Box } from '@tenancy.nz/ui';
|
|
5
4
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
1
|
+
import { _ as _objectWithoutProperties, a as _objectSpread2 } from './_rollupPluginBabelHelpers-BXw3UT-B.js';
|
|
3
2
|
import React from 'react';
|
|
4
3
|
import { Paper, Box, Skeleton, Text, Tag } from '@tenancy.nz/ui';
|
|
5
4
|
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
1
|
+
import { _ as _objectWithoutProperties, a as _objectSpread2 } from './_rollupPluginBabelHelpers-BXw3UT-B.js';
|
|
3
2
|
import React from 'react';
|
|
4
3
|
import { Paper, Media, Box, Heading, Text } from '@tenancy.nz/ui';
|
|
5
4
|
import { Icon } from '@tenancy.nz/icons';
|
|
6
5
|
import IconLabel from './IconLabel.js';
|
|
7
6
|
import { StyledPropertyImage, StyledPropertyDetailsBox, StyledPropertyAmenitiesBox } from './PropertyCard.styled.js';
|
|
7
|
+
import '@emotion/react';
|
|
8
|
+
import '@emotion/styled';
|
|
8
9
|
|
|
9
10
|
var _excluded = ["address", "compact", "enquiriesCount", "imgSrc", "noOfBedrooms", "noOfBathrooms", "noOfCarparks", "rent", "viewingsCount"];
|
|
10
11
|
function PropertyCard(_ref) {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { taggedTemplateLiteral as _taggedTemplateLiteral } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
1
|
+
import { b as _taggedTemplateLiteral } from './_rollupPluginBabelHelpers-BXw3UT-B.js';
|
|
3
2
|
import { css } from '@emotion/react';
|
|
4
3
|
import styled from '@emotion/styled';
|
|
5
4
|
|
|
@@ -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,16 +117,4 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
119
117
|
}
|
|
120
118
|
}
|
|
121
119
|
|
|
122
|
-
|
|
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;
|
|
120
|
+
export { _objectWithoutProperties as _, _objectSpread2 as a, _taggedTemplateLiteral as b, _slicedToArray as c };
|
package/dist/esm/index.js
CHANGED
|
@@ -1,16 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
export { default as
|
|
3
|
-
export { default as
|
|
4
|
-
export { default as
|
|
5
|
-
export { default as
|
|
6
|
-
export { default as
|
|
7
|
-
export { default as
|
|
8
|
-
export { default as
|
|
9
|
-
export { default as
|
|
10
|
-
export { default as
|
|
11
|
-
export { default as
|
|
12
|
-
export { default as
|
|
13
|
-
export { default as
|
|
14
|
-
export { default as
|
|
15
|
-
export { default as
|
|
16
|
-
|
|
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 './PropertyCard.styled.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.0.
|
|
4
|
+
"version": "1.0.9",
|
|
5
5
|
"author": "TPS <https://www.tenancy.co.nz>",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/cjs/index.cjs",
|
|
@@ -16,16 +16,14 @@
|
|
|
16
16
|
"chart.js": "2.7.3",
|
|
17
17
|
"classnames": "^2.2.6",
|
|
18
18
|
"primereact": "^3.1.3",
|
|
19
|
-
"react": "
|
|
20
|
-
"react-dom": "
|
|
21
|
-
"@tenancy.nz/icons": "1.0.
|
|
22
|
-
"@tenancy.nz/ui": "1.0.
|
|
19
|
+
"react": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
20
|
+
"react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
21
|
+
"@tenancy.nz/icons": "1.0.9",
|
|
22
|
+
"@tenancy.nz/ui": "1.0.9"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"@tenancy.nz/icons": "1.0.7",
|
|
28
|
-
"@tenancy.nz/ui": "1.0.7"
|
|
25
|
+
"@tenancy.nz/icons": "1.0.9",
|
|
26
|
+
"@tenancy.nz/ui": "1.0.9"
|
|
29
27
|
},
|
|
30
28
|
"dependencies": {
|
|
31
29
|
"react-uid": "^2.4.0"
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
var _rollupPluginBabelHelpers = require('../_virtual/_rollupPluginBabelHelpers.cjs');
|
|
5
|
-
var react = require('@emotion/react');
|
|
6
|
-
var styled = require('@emotion/styled');
|
|
7
|
-
|
|
8
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
|
9
|
-
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"])));
|
|
10
|
-
var StyledBookingChartLegend = styled("span", {
|
|
11
|
-
shouldForwardProp: function shouldForwardProp(prop) {
|
|
12
|
-
return !["color"].includes(prop);
|
|
13
|
-
}
|
|
14
|
-
})(_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) {
|
|
15
|
-
return props.color;
|
|
16
|
-
});
|
|
17
|
-
var StyledBookingChartButton = styled("button", {
|
|
18
|
-
shouldForwardProp: function shouldForwardProp(prop) {
|
|
19
|
-
return !["color"].includes(prop);
|
|
20
|
-
}
|
|
21
|
-
})(_templateObject3 || (_templateObject3 = _rollupPluginBabelHelpers.taggedTemplateLiteral(["\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 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"])), function (_ref) {
|
|
22
|
-
var theme = _ref.theme;
|
|
23
|
-
return theme.palette.primary.main;
|
|
24
|
-
}, function (_ref2) {
|
|
25
|
-
var active = _ref2.active,
|
|
26
|
-
theme = _ref2.theme;
|
|
27
|
-
return active ? "#CEF3ED" : theme.palette.background.paper;
|
|
28
|
-
}, function (_ref3) {
|
|
29
|
-
var active = _ref3.active,
|
|
30
|
-
theme = _ref3.theme;
|
|
31
|
-
return !active ? theme.palette.grey[100] : null;
|
|
32
|
-
});
|
|
33
|
-
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 (_ref4) {
|
|
34
|
-
var theme = _ref4.theme;
|
|
35
|
-
return react.css(_templateObject5 || (_templateObject5 = _rollupPluginBabelHelpers.taggedTemplateLiteral(["\n ", " {\n flex-direction: row;\n align-items: center;\n }\n "])), theme.breakpoints.up("sm"));
|
|
36
|
-
});
|
|
37
|
-
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 (_ref5) {
|
|
38
|
-
var theme = _ref5.theme;
|
|
39
|
-
return "\n @media (min-width: ".concat(theme.breakpoints.values.md, "px) {\n align-items: flex-end;\n }\n ");
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
exports.StyledBookingChartButton = StyledBookingChartButton;
|
|
43
|
-
exports.StyledBookingChartLegend = StyledBookingChartLegend;
|
|
44
|
-
exports.StyledBookingChartStack = StyledBookingChartStack;
|
|
45
|
-
exports.StyledPropertyAmenitiesBox = StyledPropertyAmenitiesBox;
|
|
46
|
-
exports.StyledPropertyDetailsBox = StyledPropertyDetailsBox;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
var _rollupPluginBabelHelpers = require('../_virtual/_rollupPluginBabelHelpers.cjs');
|
|
5
|
-
var react = require('@emotion/react');
|
|
6
|
-
var styled = require('@emotion/styled');
|
|
7
|
-
|
|
8
|
-
var _templateObject, _templateObject2;
|
|
9
|
-
var StyledBookingTableRowCell = styled("div", {
|
|
10
|
-
shouldForwardProp: function shouldForwardProp(prop) {
|
|
11
|
-
return prop !== "align";
|
|
12
|
-
}
|
|
13
|
-
})(_templateObject || (_templateObject = _rollupPluginBabelHelpers.taggedTemplateLiteral(["\n ", "\n"])), function (_ref) {
|
|
14
|
-
var _ref$align = _ref.align,
|
|
15
|
-
align = _ref$align === void 0 ? "left" : _ref$align,
|
|
16
|
-
header = _ref.header,
|
|
17
|
-
theme = _ref.theme;
|
|
18
|
-
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 padding: 12px 24px;\n }\n\n @media print {\n padding: 12px 24px;\n }\n "])), header ? "center" : "flex-start", header ? "12px" : "14px", 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"));
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
exports.StyledBookingTableRowCell = StyledBookingTableRowCell;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
var _rollupPluginBabelHelpers = require('../_virtual/_rollupPluginBabelHelpers.cjs');
|
|
5
|
-
var react = require('@emotion/react');
|
|
6
|
-
var styled = require('@emotion/styled');
|
|
7
|
-
|
|
8
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
9
|
-
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) {
|
|
10
|
-
var theme = _ref.theme;
|
|
11
|
-
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"));
|
|
12
|
-
});
|
|
13
|
-
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) {
|
|
14
|
-
var theme = _ref2.theme;
|
|
15
|
-
return react.css(_templateObject4 || (_templateObject4 = _rollupPluginBabelHelpers.taggedTemplateLiteral(["\n ", " {\n flex-direction: row;\n align-items: center;\n }\n "])), theme.breakpoints.up("sm"));
|
|
16
|
-
});
|
|
17
|
-
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) {
|
|
18
|
-
var theme = _ref3.theme;
|
|
19
|
-
return "\n @media (min-width: ".concat(theme.breakpoints.values.md, "px) {\n align-items: flex-end;\n }\n ");
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
exports.StyledPropertyAmenitiesBox = StyledPropertyAmenitiesBox;
|
|
23
|
-
exports.StyledPropertyDetailsBox = StyledPropertyDetailsBox;
|
|
24
|
-
exports.StyledPropertyImage = StyledPropertyImage;
|