@tenancy.nz/feature-ui 1.0.1 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/cjs/_virtual/_rollupPluginBabelHelpers.cjs +134 -0
  2. package/dist/cjs/components/AgentDetailsCard.cjs +80 -42
  3. package/dist/cjs/components/AnalyticsBox.cjs +46 -46
  4. package/dist/cjs/components/AnalyticsSection.cjs +148 -196
  5. package/dist/cjs/components/BookingChart.cjs +96 -94
  6. package/dist/cjs/components/BookingChart.styled.cjs +32 -86
  7. package/dist/cjs/components/BookingTable.cjs +39 -30
  8. package/dist/cjs/components/BookingTableRow.cjs +90 -46
  9. package/dist/cjs/components/BookingTableRow.styled.cjs +13 -34
  10. package/dist/cjs/components/BookingTableRowHeader.cjs +54 -15
  11. package/dist/cjs/components/BookingTableRowSkeleton.cjs +85 -18
  12. package/dist/cjs/components/CheckedIcon.cjs +11 -5
  13. package/dist/cjs/components/EnquiriesDoughnutChart.cjs +128 -151
  14. package/dist/cjs/components/GridList.cjs +59 -66
  15. package/dist/cjs/components/Hidden.cjs +4 -1
  16. package/dist/cjs/components/IconLabel.cjs +34 -26
  17. package/dist/cjs/components/NotesCard.cjs +48 -20
  18. package/dist/cjs/components/PropertyCard.cjs +130 -122
  19. package/dist/cjs/components/PropertyCard.styled.cjs +14 -66
  20. package/dist/esm/_virtual/_rollupPluginBabelHelpers.js +120 -0
  21. package/dist/esm/components/AgentDetailsCard.js +80 -42
  22. package/dist/esm/components/AnalyticsBox.js +46 -46
  23. package/dist/esm/components/AnalyticsSection.js +148 -196
  24. package/dist/esm/components/BookingChart.js +97 -95
  25. package/dist/esm/components/BookingChart.styled.js +32 -86
  26. package/dist/esm/components/BookingTable.js +39 -30
  27. package/dist/esm/components/BookingTableRow.js +90 -46
  28. package/dist/esm/components/BookingTableRow.styled.js +13 -34
  29. package/dist/esm/components/BookingTableRowHeader.js +54 -15
  30. package/dist/esm/components/BookingTableRowSkeleton.js +85 -18
  31. package/dist/esm/components/CheckedIcon.js +11 -5
  32. package/dist/esm/components/EnquiriesDoughnutChart.js +128 -151
  33. package/dist/esm/components/GridList.js +59 -66
  34. package/dist/esm/components/Hidden.js +4 -1
  35. package/dist/esm/components/IconLabel.js +34 -26
  36. package/dist/esm/components/NotesCard.js +48 -20
  37. package/dist/esm/components/PropertyCard.js +130 -122
  38. package/dist/esm/components/PropertyCard.styled.js +14 -66
  39. package/package.json +5 -5
@@ -1,94 +1,40 @@
1
1
  "use strict";
2
+ import { taggedTemplateLiteral as _taggedTemplateLiteral } from '../_virtual/_rollupPluginBabelHelpers.js';
2
3
  import { css } from '@emotion/react';
3
4
  import styled from '@emotion/styled';
4
5
 
5
- const StyledBookingChartStack = styled.div`
6
- display: flex;
7
- flex-wrap: wrap;
8
- gap: 8px;
9
- padding: 0;
10
- margin: 0;
11
- list-style: none;
12
- font-size: 12px;
13
- justify-content: center;
14
- color: #000;
15
- width: 100%;
16
- `;
17
- const StyledBookingChartLegend = styled("span", {
18
- shouldForwardProp: (prop) => !["color"].includes(prop)
19
- })`
20
- font-weight: 500;
21
- display: flex;
22
- align-items: center;
23
- gap: 6px;
24
-
25
- &::before {
26
- content: '';
27
- display: inline-flex;
28
- width: 32px;
29
- height: 18px;
30
- background-color: ${(props) => props.color};
31
- border-radius: 4px;
32
- }
33
- `;
34
- const StyledBookingChartButton = styled("button", {
35
- shouldForwardProp: (prop) => !["color"].includes(prop)
36
- })`
37
- font-weight: 500;
38
- display: flex;
39
- align-items: center;
40
- padding: 6px 10px;
41
- font-size: 14px;
42
- border-radius: 4px;
43
- font-family: inherit;
44
- border: 1px solid ${({ theme }) => theme.palette.primary.main};
45
- box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1);
46
- background-color: ${({ active, theme }) => active ? "#CEF3ED" : theme.palette.background.paper};
47
- cursor: pointer;
48
-
49
- &:hover {
50
- background-color: ${({ active, theme }) => !active ? theme.palette.grey[100] : null};
6
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
7
+ var StyledBookingChartStack = styled.div(_templateObject || (_templateObject = _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"])));
8
+ var StyledBookingChartLegend = styled("span", {
9
+ shouldForwardProp: function shouldForwardProp(prop) {
10
+ return !["color"].includes(prop);
51
11
  }
52
- `;
53
- const StyledPropertyDetailsBox = styled.div`
54
- display: flex;
55
- width: 100%;
56
- align-items: flex-start;
57
- padding: 16px 24px 16px 20px;
58
- flex-direction: column;
59
-
60
- ${({ theme }) => css`
61
- ${theme.breakpoints.up("sm")} {
62
- flex-direction: row;
63
- align-items: center;
64
- }
65
- `}
66
-
67
- @media print {
68
- flex-direction: row;
69
- align-items: center;
70
- }
71
- `;
72
- const StyledPropertyAmenitiesBox = styled.div`
73
- padding-right: 25px;
74
- display: flex;
75
- flex-direction: column;
76
- margin-top: 5px;
77
-
78
- gap: 18px;
79
- min-width: 170px;
80
- height: 100%;
81
- justify-content: space-between;
82
-
83
- ${({ theme }) => `
84
- @media (min-width: ${theme.breakpoints.values.md}px) {
85
- align-items: flex-end;
86
- }
87
- `}
88
-
89
- @media print {
90
- align-items: flex-end;
12
+ })(_templateObject2 || (_templateObject2 = _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) {
13
+ return props.color;
14
+ });
15
+ var StyledBookingChartButton = styled("button", {
16
+ shouldForwardProp: function shouldForwardProp(prop) {
17
+ return !["color"].includes(prop);
91
18
  }
92
- `;
19
+ })(_templateObject3 || (_templateObject3 = _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) {
20
+ var theme = _ref.theme;
21
+ return theme.palette.primary.main;
22
+ }, function (_ref2) {
23
+ var active = _ref2.active,
24
+ theme = _ref2.theme;
25
+ return active ? "#CEF3ED" : theme.palette.background.paper;
26
+ }, function (_ref3) {
27
+ var active = _ref3.active,
28
+ theme = _ref3.theme;
29
+ return !active ? theme.palette.grey[100] : null;
30
+ });
31
+ var StyledPropertyDetailsBox = styled.div(_templateObject4 || (_templateObject4 = _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) {
32
+ var theme = _ref4.theme;
33
+ return css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n ", " {\n flex-direction: row;\n align-items: center;\n }\n "])), theme.breakpoints.up("sm"));
34
+ });
35
+ var StyledPropertyAmenitiesBox = styled.div(_templateObject6 || (_templateObject6 = _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) {
36
+ var theme = _ref5.theme;
37
+ return "\n @media (min-width: ".concat(theme.breakpoints.values.md, "px) {\n align-items: flex-end;\n }\n ");
38
+ });
93
39
 
94
40
  export { StyledBookingChartButton, StyledBookingChartLegend, StyledBookingChartStack, StyledPropertyAmenitiesBox, StyledPropertyDetailsBox };
@@ -1,40 +1,49 @@
1
1
  "use strict";
2
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
3
- import 'react';
2
+ import React from 'react';
4
3
  import { uid } from 'react-uid';
5
4
  import { Box, Paper, Heading } from '@tenancy.nz/ui';
6
5
  import BookingTableRowHeader from './BookingTableRowHeader.js';
7
6
  import BookingTableRow from './BookingTableRow.js';
8
7
  import BookingTableRowSkeleton from './BookingTableRowSkeleton.js';
9
8
 
10
- function BookingTable({ data, loading = false }) {
11
- return /* @__PURE__ */ jsx(Box, { sx: { overflowX: "auto", scrollBehavior: "smooth" }, children: /* @__PURE__ */ jsx(Box, { sx: { minWidth: "1024px" }, children: /* @__PURE__ */ jsxs(Paper, { outlined: true, overflow: false, children: [
12
- /* @__PURE__ */ jsx(Box, { bgcolor: "grey.50", children: /* @__PURE__ */ jsx(BookingTableRowHeader, {}) }),
13
- /* @__PURE__ */ jsxs(Box, { children: [
14
- !loading && data.map((booking, index) => /* @__PURE__ */ jsx(
15
- BookingTableRow,
16
- {
17
- firstName: booking.firstName,
18
- lastName: booking.lastName,
19
- notes: booking.notes,
20
- tenantNotes: booking.tenantNotes,
21
- status: booking.status,
22
- attended: booking.attended,
23
- suitable: booking.suitable,
24
- applicationSent: booking.applicationSent,
25
- applicationReceived: booking.applicationReceived
26
- },
27
- uid(booking, index)
28
- )),
29
- loading && /* @__PURE__ */ jsxs(Fragment, { children: [
30
- /* @__PURE__ */ jsx(BookingTableRowSkeleton, {}),
31
- /* @__PURE__ */ jsx(BookingTableRowSkeleton, {}),
32
- /* @__PURE__ */ jsx(BookingTableRowSkeleton, {}),
33
- /* @__PURE__ */ jsx(BookingTableRowSkeleton, {})
34
- ] }),
35
- !loading && data.length === 0 && /* @__PURE__ */ jsx(Heading, { as: "h4", align: "center", sx: { margin: "16px 0" }, children: "No bookings" })
36
- ] })
37
- ] }) }) });
9
+ function BookingTable(_ref) {
10
+ var data = _ref.data,
11
+ _ref$loading = _ref.loading,
12
+ loading = _ref$loading === void 0 ? false : _ref$loading;
13
+ return /* @__PURE__ */React.createElement(Box, {
14
+ sx: {
15
+ overflowX: "auto",
16
+ scrollBehavior: "smooth"
17
+ }
18
+ }, /* @__PURE__ */React.createElement(Box, {
19
+ sx: {
20
+ minWidth: "1024px"
21
+ }
22
+ }, /* @__PURE__ */React.createElement(Paper, {
23
+ outlined: true,
24
+ overflow: false
25
+ }, /* @__PURE__ */React.createElement(Box, {
26
+ bgcolor: "grey.50"
27
+ }, /* @__PURE__ */React.createElement(BookingTableRowHeader, null)), /* @__PURE__ */React.createElement(Box, null, !loading && data.map(function (booking, index) {
28
+ return /* @__PURE__ */React.createElement(BookingTableRow, {
29
+ key: uid(booking, index),
30
+ firstName: booking.firstName,
31
+ lastName: booking.lastName,
32
+ notes: booking.notes,
33
+ tenantNotes: booking.tenantNotes,
34
+ status: booking.status,
35
+ attended: booking.attended,
36
+ suitable: booking.suitable,
37
+ applicationSent: booking.applicationSent,
38
+ applicationReceived: booking.applicationReceived
39
+ });
40
+ }), loading && /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement(BookingTableRowSkeleton, null), /* @__PURE__ */React.createElement(BookingTableRowSkeleton, null), /* @__PURE__ */React.createElement(BookingTableRowSkeleton, null), /* @__PURE__ */React.createElement(BookingTableRowSkeleton, null)), !loading && data.length === 0 && /* @__PURE__ */React.createElement(Heading, {
41
+ as: "h4",
42
+ align: "center",
43
+ sx: {
44
+ margin: "16px 0"
45
+ }
46
+ }, "No bookings")))));
38
47
  }
39
48
 
40
49
  export { BookingTable as default };
@@ -1,59 +1,103 @@
1
1
  "use strict";
2
- import { jsxs, jsx } from 'react/jsx-runtime';
3
- import 'react';
2
+ import React from 'react';
4
3
  import { Grid, Text, Tag } from '@tenancy.nz/ui';
5
4
  import CheckedIcon from './CheckedIcon.js';
6
5
  import { StyledBookingTableRowCell } from './BookingTableRow.styled.js';
7
6
 
8
- const tagMap = (status) => {
7
+ var tagMap = function tagMap(status) {
9
8
  if (status === "confirmed") {
10
- return /* @__PURE__ */ jsx(Tag, { color: "success", label: "Confirmed" });
9
+ return /* @__PURE__ */React.createElement(Tag, {
10
+ color: "success",
11
+ label: "Confirmed"
12
+ });
11
13
  }
12
14
  if (status === "cancelled") {
13
- return /* @__PURE__ */ jsx(Tag, { color: "error", label: "Cancelled" });
15
+ return /* @__PURE__ */React.createElement(Tag, {
16
+ color: "error",
17
+ label: "Cancelled"
18
+ });
14
19
  }
15
- return /* @__PURE__ */ jsx(Tag, { color: "info", label: "Registered" });
20
+ return /* @__PURE__ */React.createElement(Tag, {
21
+ color: "info",
22
+ label: "Registered"
23
+ });
16
24
  };
17
- function BookingTableRow({
18
- applicationReceived = false,
19
- applicationSent = false,
20
- attended = false,
21
- firstName,
22
- lastName,
23
- notes = void 0,
24
- status,
25
- suitable = false,
26
- tenantNotes = void 0
27
- }) {
28
- return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 0, children: [
29
- /* @__PURE__ */ jsxs(Grid, { item: true, container: true, xs: 6, children: [
30
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 3, md: 3, children: /* @__PURE__ */ jsxs(StyledBookingTableRowCell, { children: [
31
- firstName,
32
- " ",
33
- lastName
34
- ] }) }),
35
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 6, md: 7, children: /* @__PURE__ */ jsx(StyledBookingTableRowCell, { children: /* @__PURE__ */ jsxs(Text, { as: "div", variant: "body2", children: [
36
- notes && /* @__PURE__ */ jsxs(Text, { variant: "inherit", paragraph: !!tenantNotes, children: [
37
- /* @__PURE__ */ jsx("strong", { children: "Property Manager Note" }),
38
- " ",
39
- /* @__PURE__ */ jsx("br", {}),
40
- notes
41
- ] }),
42
- tenantNotes && /* @__PURE__ */ jsxs(Text, { variant: "inherit", children: [
43
- /* @__PURE__ */ jsx("strong", { children: "Tenant Feedback" }),
44
- /* @__PURE__ */ jsx("br", {}),
45
- tenantNotes
46
- ] })
47
- ] }) }) }),
48
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 3, md: 2, children: /* @__PURE__ */ jsx(StyledBookingTableRowCell, { children: /* @__PURE__ */ jsx("span", { children: tagMap(status) }) }) })
49
- ] }),
50
- /* @__PURE__ */ jsxs(Grid, { item: true, container: true, xs: 6, children: [
51
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 3, children: /* @__PURE__ */ jsx(StyledBookingTableRowCell, { align: "center", children: /* @__PURE__ */ jsx(CheckedIcon, { value: attended }) }) }),
52
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 3, children: /* @__PURE__ */ jsx(StyledBookingTableRowCell, { align: "center", children: /* @__PURE__ */ jsx(CheckedIcon, { value: suitable }) }) }),
53
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 3, children: /* @__PURE__ */ jsx(StyledBookingTableRowCell, { align: "center", children: /* @__PURE__ */ jsx(CheckedIcon, { value: applicationSent }) }) }),
54
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 3, children: /* @__PURE__ */ jsx(StyledBookingTableRowCell, { align: "center", children: /* @__PURE__ */ jsx(CheckedIcon, { value: applicationReceived }) }) })
55
- ] })
56
- ] });
25
+ function BookingTableRow(_ref) {
26
+ var _ref$applicationRecei = _ref.applicationReceived,
27
+ applicationReceived = _ref$applicationRecei === void 0 ? false : _ref$applicationRecei,
28
+ _ref$applicationSent = _ref.applicationSent,
29
+ applicationSent = _ref$applicationSent === void 0 ? false : _ref$applicationSent,
30
+ _ref$attended = _ref.attended,
31
+ attended = _ref$attended === void 0 ? false : _ref$attended,
32
+ firstName = _ref.firstName,
33
+ lastName = _ref.lastName,
34
+ _ref$notes = _ref.notes,
35
+ notes = _ref$notes === void 0 ? void 0 : _ref$notes,
36
+ status = _ref.status,
37
+ _ref$suitable = _ref.suitable,
38
+ suitable = _ref$suitable === void 0 ? false : _ref$suitable,
39
+ _ref$tenantNotes = _ref.tenantNotes,
40
+ tenantNotes = _ref$tenantNotes === void 0 ? void 0 : _ref$tenantNotes;
41
+ return /* @__PURE__ */React.createElement(Grid, {
42
+ container: true,
43
+ spacing: 0
44
+ }, /* @__PURE__ */React.createElement(Grid, {
45
+ item: true,
46
+ container: true,
47
+ xs: 6
48
+ }, /* @__PURE__ */React.createElement(Grid, {
49
+ item: true,
50
+ xs: 3,
51
+ md: 3
52
+ }, /* @__PURE__ */React.createElement(StyledBookingTableRowCell, null, firstName, " ", lastName)), /* @__PURE__ */React.createElement(Grid, {
53
+ item: true,
54
+ xs: 6,
55
+ md: 7
56
+ }, /* @__PURE__ */React.createElement(StyledBookingTableRowCell, null, /* @__PURE__ */React.createElement(Text, {
57
+ as: "div",
58
+ variant: "body2"
59
+ }, notes && /* @__PURE__ */React.createElement(Text, {
60
+ variant: "inherit",
61
+ paragraph: !!tenantNotes
62
+ }, /* @__PURE__ */React.createElement("strong", null, "Property Manager Note"), " ", /* @__PURE__ */React.createElement("br", null), notes), tenantNotes && /* @__PURE__ */React.createElement(Text, {
63
+ variant: "inherit"
64
+ }, /* @__PURE__ */React.createElement("strong", null, "Tenant Feedback"), /* @__PURE__ */React.createElement("br", null), tenantNotes)))), /* @__PURE__ */React.createElement(Grid, {
65
+ item: true,
66
+ xs: 3,
67
+ md: 2
68
+ }, /* @__PURE__ */React.createElement(StyledBookingTableRowCell, null, /* @__PURE__ */React.createElement("span", null, tagMap(status))))), /* @__PURE__ */React.createElement(Grid, {
69
+ item: true,
70
+ container: true,
71
+ xs: 6
72
+ }, /* @__PURE__ */React.createElement(Grid, {
73
+ item: true,
74
+ xs: 3
75
+ }, /* @__PURE__ */React.createElement(StyledBookingTableRowCell, {
76
+ align: "center"
77
+ }, /* @__PURE__ */React.createElement(CheckedIcon, {
78
+ value: attended
79
+ }))), /* @__PURE__ */React.createElement(Grid, {
80
+ item: true,
81
+ xs: 3
82
+ }, /* @__PURE__ */React.createElement(StyledBookingTableRowCell, {
83
+ align: "center"
84
+ }, /* @__PURE__ */React.createElement(CheckedIcon, {
85
+ value: suitable
86
+ }))), /* @__PURE__ */React.createElement(Grid, {
87
+ item: true,
88
+ xs: 3
89
+ }, /* @__PURE__ */React.createElement(StyledBookingTableRowCell, {
90
+ align: "center"
91
+ }, /* @__PURE__ */React.createElement(CheckedIcon, {
92
+ value: applicationSent
93
+ }))), /* @__PURE__ */React.createElement(Grid, {
94
+ item: true,
95
+ xs: 3
96
+ }, /* @__PURE__ */React.createElement(StyledBookingTableRowCell, {
97
+ align: "center"
98
+ }, /* @__PURE__ */React.createElement(CheckedIcon, {
99
+ value: applicationReceived
100
+ })))));
57
101
  }
58
102
 
59
103
  export { BookingTableRow as default };
@@ -1,40 +1,19 @@
1
1
  "use strict";
2
+ import { taggedTemplateLiteral as _taggedTemplateLiteral } from '../_virtual/_rollupPluginBabelHelpers.js';
2
3
  import { css } from '@emotion/react';
3
4
  import styled from '@emotion/styled';
4
5
 
5
- const StyledBookingTableRowCell = styled("div", {
6
- shouldForwardProp: (prop) => prop !== "align"
7
- })`
8
- ${({ align = "left", header, theme }) => css`
9
- display: flex;
10
- flex-direction: column;
11
- justify-content: ${header ? "center" : "flex-start"};
12
- padding: 6px 12px;
13
- font-size: ${header ? "12px" : "14px"};
14
- color: #717680;
15
- height: 100%;
16
-
17
- ${align === "left" && `
18
- align-items: flex-start;
19
- `}
20
-
21
- ${align === "center" && `
22
- align-items: center;
23
- text-align: center;
24
- `}
25
-
26
- ${align === "right" && `
27
- align-items: flex-end;
28
- `}
29
-
30
- ${theme.breakpoints.up("md")} {
31
- padding: 12px 24px;
32
- }
33
-
34
- @media print {
35
- padding: 12px 24px;
36
- }
37
- `}
38
- `;
6
+ var _templateObject, _templateObject2;
7
+ var StyledBookingTableRowCell = styled("div", {
8
+ shouldForwardProp: function shouldForwardProp(prop) {
9
+ return prop !== "align";
10
+ }
11
+ })(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n"])), function (_ref) {
12
+ var _ref$align = _ref.align,
13
+ align = _ref$align === void 0 ? "left" : _ref$align,
14
+ header = _ref.header,
15
+ theme = _ref.theme;
16
+ return css(_templateObject2 || (_templateObject2 = _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"));
17
+ });
39
18
 
40
19
  export { StyledBookingTableRowCell };
@@ -1,23 +1,62 @@
1
1
  "use strict";
2
- import { jsxs, jsx } from 'react/jsx-runtime';
3
- import 'react';
2
+ import React from 'react';
4
3
  import { Grid } from '@tenancy.nz/ui';
5
4
  import { StyledBookingTableRowCell } from './BookingTableRow.styled.js';
6
5
 
7
6
  function BookingTableRowHeader() {
8
- return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 0, children: [
9
- /* @__PURE__ */ jsxs(Grid, { item: true, container: true, xs: 6, children: [
10
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 3, children: /* @__PURE__ */ jsx(StyledBookingTableRowCell, { header: true, children: "Name" }) }),
11
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 6, md: 7, children: /* @__PURE__ */ jsx(StyledBookingTableRowCell, { header: true, children: "Comments" }) }),
12
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 3, md: 2, children: /* @__PURE__ */ jsx(StyledBookingTableRowCell, { header: true, children: "Status" }) })
13
- ] }),
14
- /* @__PURE__ */ jsxs(Grid, { item: true, container: true, xs: 6, children: [
15
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 3, children: /* @__PURE__ */ jsx(StyledBookingTableRowCell, { align: "center", header: true, children: "Attendend" }) }),
16
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 3, children: /* @__PURE__ */ jsx(StyledBookingTableRowCell, { align: "center", header: true, children: "Suitable" }) }),
17
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 3, children: /* @__PURE__ */ jsx(StyledBookingTableRowCell, { align: "center", header: true, children: "Application Sent" }) }),
18
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 3, children: /* @__PURE__ */ jsx(StyledBookingTableRowCell, { align: "center", header: true, children: "Application Received" }) })
19
- ] })
20
- ] });
7
+ return /* @__PURE__ */React.createElement(Grid, {
8
+ container: true,
9
+ spacing: 0
10
+ }, /* @__PURE__ */React.createElement(Grid, {
11
+ item: true,
12
+ container: true,
13
+ xs: 6
14
+ }, /* @__PURE__ */React.createElement(Grid, {
15
+ item: true,
16
+ xs: 3
17
+ }, /* @__PURE__ */React.createElement(StyledBookingTableRowCell, {
18
+ header: true
19
+ }, "Name")), /* @__PURE__ */React.createElement(Grid, {
20
+ item: true,
21
+ xs: 6,
22
+ md: 7
23
+ }, /* @__PURE__ */React.createElement(StyledBookingTableRowCell, {
24
+ header: true
25
+ }, "Comments")), /* @__PURE__ */React.createElement(Grid, {
26
+ item: true,
27
+ xs: 3,
28
+ md: 2
29
+ }, /* @__PURE__ */React.createElement(StyledBookingTableRowCell, {
30
+ header: true
31
+ }, "Status"))), /* @__PURE__ */React.createElement(Grid, {
32
+ item: true,
33
+ container: true,
34
+ xs: 6
35
+ }, /* @__PURE__ */React.createElement(Grid, {
36
+ item: true,
37
+ xs: 3
38
+ }, /* @__PURE__ */React.createElement(StyledBookingTableRowCell, {
39
+ align: "center",
40
+ header: true
41
+ }, "Attendend")), /* @__PURE__ */React.createElement(Grid, {
42
+ item: true,
43
+ xs: 3
44
+ }, /* @__PURE__ */React.createElement(StyledBookingTableRowCell, {
45
+ align: "center",
46
+ header: true
47
+ }, "Suitable")), /* @__PURE__ */React.createElement(Grid, {
48
+ item: true,
49
+ xs: 3
50
+ }, /* @__PURE__ */React.createElement(StyledBookingTableRowCell, {
51
+ align: "center",
52
+ header: true
53
+ }, "Application Sent")), /* @__PURE__ */React.createElement(Grid, {
54
+ item: true,
55
+ xs: 3
56
+ }, /* @__PURE__ */React.createElement(StyledBookingTableRowCell, {
57
+ align: "center",
58
+ header: true
59
+ }, "Application Received"))));
21
60
  }
22
61
 
23
62
  export { BookingTableRowHeader as default };
@@ -1,26 +1,93 @@
1
1
  "use strict";
2
- import { jsxs, jsx } from 'react/jsx-runtime';
3
- import 'react';
2
+ import React from 'react';
4
3
  import { Grid, Skeleton } from '@tenancy.nz/ui';
5
4
  import { StyledBookingTableRowCell } from './BookingTableRow.styled.js';
6
5
 
7
6
  function BookingTableRowSkeleton() {
8
- return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 0, children: [
9
- /* @__PURE__ */ jsxs(Grid, { item: true, container: true, xs: 12, sm: 6, children: [
10
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, sm: 3, children: /* @__PURE__ */ jsx(StyledBookingTableRowCell, { children: /* @__PURE__ */ jsx(Skeleton, { width: "85%", height: "20px", variant: "text" }) }) }),
11
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, sm: 6, md: 7, children: /* @__PURE__ */ jsxs(StyledBookingTableRowCell, { children: [
12
- /* @__PURE__ */ jsx(Skeleton, { width: "95%", height: "20px", variant: "text" }),
13
- /* @__PURE__ */ jsx(Skeleton, { width: "80%", height: "20px", variant: "text" })
14
- ] }) }),
15
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, sm: 3, md: 2, children: /* @__PURE__ */ jsx(StyledBookingTableRowCell, { children: /* @__PURE__ */ jsx(Skeleton, { width: "90px", height: "30px", variant: "text" }) }) })
16
- ] }),
17
- /* @__PURE__ */ jsxs(Grid, { item: true, container: true, xs: 12, sm: 6, children: [
18
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, sm: 3, children: /* @__PURE__ */ jsx(StyledBookingTableRowCell, { align: "center", children: /* @__PURE__ */ jsx(Skeleton, { width: "40px", height: "20px", variant: "text" }) }) }),
19
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, sm: 3, children: /* @__PURE__ */ jsx(StyledBookingTableRowCell, { align: "center", children: /* @__PURE__ */ jsx(Skeleton, { width: "40px", height: "20px", variant: "text" }) }) }),
20
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, sm: 3, children: /* @__PURE__ */ jsx(StyledBookingTableRowCell, { align: "center", children: /* @__PURE__ */ jsx(Skeleton, { width: "40px", height: "20px", variant: "text" }) }) }),
21
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, sm: 3, children: /* @__PURE__ */ jsx(StyledBookingTableRowCell, { align: "center", children: /* @__PURE__ */ jsx(Skeleton, { width: "40px", height: "20px", variant: "text" }) }) })
22
- ] })
23
- ] });
7
+ return /* @__PURE__ */React.createElement(Grid, {
8
+ container: true,
9
+ spacing: 0
10
+ }, /* @__PURE__ */React.createElement(Grid, {
11
+ item: true,
12
+ container: true,
13
+ xs: 12,
14
+ sm: 6
15
+ }, /* @__PURE__ */React.createElement(Grid, {
16
+ item: true,
17
+ xs: 12,
18
+ sm: 3
19
+ }, /* @__PURE__ */React.createElement(StyledBookingTableRowCell, null, /* @__PURE__ */React.createElement(Skeleton, {
20
+ width: "85%",
21
+ height: "20px",
22
+ variant: "text"
23
+ }))), /* @__PURE__ */React.createElement(Grid, {
24
+ item: true,
25
+ xs: 12,
26
+ sm: 6,
27
+ md: 7
28
+ }, /* @__PURE__ */React.createElement(StyledBookingTableRowCell, null, /* @__PURE__ */React.createElement(Skeleton, {
29
+ width: "95%",
30
+ height: "20px",
31
+ variant: "text"
32
+ }), /* @__PURE__ */React.createElement(Skeleton, {
33
+ width: "80%",
34
+ height: "20px",
35
+ variant: "text"
36
+ }))), /* @__PURE__ */React.createElement(Grid, {
37
+ item: true,
38
+ xs: 12,
39
+ sm: 3,
40
+ md: 2
41
+ }, /* @__PURE__ */React.createElement(StyledBookingTableRowCell, null, /* @__PURE__ */React.createElement(Skeleton, {
42
+ width: "90px",
43
+ height: "30px",
44
+ variant: "text"
45
+ })))), /* @__PURE__ */React.createElement(Grid, {
46
+ item: true,
47
+ container: true,
48
+ xs: 12,
49
+ sm: 6
50
+ }, /* @__PURE__ */React.createElement(Grid, {
51
+ item: true,
52
+ xs: 12,
53
+ sm: 3
54
+ }, /* @__PURE__ */React.createElement(StyledBookingTableRowCell, {
55
+ align: "center"
56
+ }, /* @__PURE__ */React.createElement(Skeleton, {
57
+ width: "40px",
58
+ height: "20px",
59
+ variant: "text"
60
+ }))), /* @__PURE__ */React.createElement(Grid, {
61
+ item: true,
62
+ xs: 12,
63
+ sm: 3
64
+ }, /* @__PURE__ */React.createElement(StyledBookingTableRowCell, {
65
+ align: "center"
66
+ }, /* @__PURE__ */React.createElement(Skeleton, {
67
+ width: "40px",
68
+ height: "20px",
69
+ variant: "text"
70
+ }))), /* @__PURE__ */React.createElement(Grid, {
71
+ item: true,
72
+ xs: 12,
73
+ sm: 3
74
+ }, /* @__PURE__ */React.createElement(StyledBookingTableRowCell, {
75
+ align: "center"
76
+ }, /* @__PURE__ */React.createElement(Skeleton, {
77
+ width: "40px",
78
+ height: "20px",
79
+ variant: "text"
80
+ }))), /* @__PURE__ */React.createElement(Grid, {
81
+ item: true,
82
+ xs: 12,
83
+ sm: 3
84
+ }, /* @__PURE__ */React.createElement(StyledBookingTableRowCell, {
85
+ align: "center"
86
+ }, /* @__PURE__ */React.createElement(Skeleton, {
87
+ width: "40px",
88
+ height: "20px",
89
+ variant: "text"
90
+ })))));
24
91
  }
25
92
 
26
93
  export { BookingTableRowSkeleton as default };
@@ -1,13 +1,19 @@
1
1
  "use strict";
2
- import { jsx } from 'react/jsx-runtime';
3
- import 'react';
2
+ import React from 'react';
4
3
  import { CircleCheckIcon, CircleTimesIcon } from '@tenancy.nz/icons';
5
4
 
6
- function CheckedIcon({ value }) {
5
+ function CheckedIcon(_ref) {
6
+ var value = _ref.value;
7
7
  if (value === true) {
8
- return /* @__PURE__ */ jsx(CircleCheckIcon, { color: "success.main", size: "20px" });
8
+ return /* @__PURE__ */React.createElement(CircleCheckIcon, {
9
+ color: "success.main",
10
+ size: "20px"
11
+ });
9
12
  }
10
- return /* @__PURE__ */ jsx(CircleTimesIcon, { color: "error.main", size: "20px" });
13
+ return /* @__PURE__ */React.createElement(CircleTimesIcon, {
14
+ color: "error.main",
15
+ size: "20px"
16
+ });
11
17
  }
12
18
 
13
19
  export { CheckedIcon as default };