@tenancy.nz/feature-ui 1.5.2 → 1.5.3

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.
@@ -36,7 +36,8 @@ function ChartLegend(_ref) {
36
36
  variant: "inherit"
37
37
  }, count)), typeof label !== "string" ? label : /* @__PURE__ */React.createElement(ui.Text, {
38
38
  weight: "500",
39
- variant: "inherit"
39
+ variant: "inherit",
40
+ color: "primary"
40
41
  }, label));
41
42
  }
42
43
 
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
6
  var doughnutChart = require('./doughnut-chart.cjs');
7
+ var partnerLogo = require('./partner-logo.cjs');
7
8
  var general = require('../utils/helpers/general.cjs');
8
9
 
9
10
  function AnalyticsDoughnutChart(_ref) {
@@ -30,22 +31,42 @@ function AnalyticsDoughnutChart(_ref) {
30
31
  color: "#000000",
31
32
  count: general.parseChartCount(allhouseCount),
32
33
  slug: "allhouse",
33
- title: "Allhouse"
34
+ title: "Allhouse",
35
+ logo: /* @__PURE__ */React.createElement(partnerLogo.default, {
36
+ name: "allhouse",
37
+ width: "59px",
38
+ height: "14px"
39
+ })
34
40
  }, {
35
41
  color: "#FF8500",
36
42
  count: general.parseChartCount(oneRoofCount),
37
43
  slug: "oneroof",
38
- title: "OneRoof"
44
+ title: "OneRoof",
45
+ logo: /* @__PURE__ */React.createElement(partnerLogo.default, {
46
+ name: "oneroof",
47
+ width: "66px",
48
+ height: "12px"
49
+ })
39
50
  }, {
40
51
  color: "#0098FF",
41
52
  count: general.parseChartCount(realEstateCount),
42
53
  slug: "realestate",
43
- title: "realestate.co.nz"
54
+ title: "realestate.co.nz",
55
+ logo: /* @__PURE__ */React.createElement(partnerLogo.default, {
56
+ name: "realestate",
57
+ width: "92px",
58
+ height: "14px"
59
+ })
44
60
  }, {
45
61
  color: "#4854D3",
46
62
  count: general.parseChartCount(tradeMeCount),
47
63
  slug: "trademe",
48
- title: "Trade Me"
64
+ title: "Trade Me",
65
+ logo: /* @__PURE__ */React.createElement(partnerLogo.default, {
66
+ name: "trademe",
67
+ width: "90px",
68
+ height: "12px"
69
+ })
49
70
  }, {
50
71
  color: "#D9D9D9",
51
72
  count: general.parseChartCount(manualCount),
@@ -115,12 +115,13 @@ function DoughnutChart(_ref) {
115
115
  }, data.map(function (item) {
116
116
  var color = item.color,
117
117
  count = item.count,
118
- title = item.title;
118
+ title = item.title,
119
+ logo = item.logo;
119
120
  return /* @__PURE__ */React.createElement(ChartLegend.default, {
120
121
  key: reactUid.uid(item),
121
122
  color: color,
122
123
  count: parseInt(String(count), 10),
123
- label: title
124
+ label: logo || title
124
125
  });
125
126
  }))));
126
127
  }
@@ -0,0 +1,106 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var React = require('react');
6
+ var ui = require('@tenancy.nz/ui');
7
+
8
+ var map = {
9
+ allhouse: /* @__PURE__ */React.createElement("svg", {
10
+ xmlns: "http://www.w3.org/2000/svg",
11
+ viewBox: "0 0 309.413 72.72"
12
+ }, /* @__PURE__ */React.createElement("path", {
13
+ fill: "#000222",
14
+ d: "M128.567 18.21a1.55 1.55 0 0 1 .334-1.021 1.26 1.26 0 0 1 1.028-.4h4.182a1.28 1.28 0 0 1 .9.4 1.36 1.36 0 0 1 .418 1.021v36.254a1.37 1.37 0 0 1-.394 1.068 1.53 1.53 0 0 1-1.063.356h-3.991a1.41 1.41 0 0 1-1.088-.356 1.55 1.55 0 0 1-.322-1.068ZM141.037 18.21a1.55 1.55 0 0 1 .334-1.021 1.26 1.26 0 0 1 1.028-.4h4.182a1.28 1.28 0 0 1 .9.4 1.36 1.36 0 0 1 .418 1.021v36.254a1.37 1.37 0 0 1-.394 1.068 1.53 1.53 0 0 1-1.063.356h-3.992a1.41 1.41 0 0 1-1.088-.356 1.55 1.55 0 0 1-.322-1.068ZM160.945 28.167a9.5 9.5 0 0 1 1.362-1.4 8.3 8.3 0 0 1 1.756-1.116 9.8 9.8 0 0 1 2.258-.736 14.3 14.3 0 0 1 2.868-.26 10.6 10.6 0 0 1 4.779 1.033 10.2 10.2 0 0 1 3.49 2.8 12.4 12.4 0 0 1 2.139 4.143 17 17 0 0 1 .728 5.033v16.515a1.8 1.8 0 0 1-.406 1.282 1.54 1.54 0 0 1-1.17.428h-3.632a1.72 1.72 0 0 1-1.279-.357 1.9 1.9 0 0 1-.323-1.258V37.66a7 7 0 0 0-.442-2.446 6.5 6.5 0 0 0-1.267-2.1 6.3 6.3 0 0 0-2-1.472 6 6 0 0 0-2.6-.557 6.2 6.2 0 0 0-2.2.415 6.5 6.5 0 0 0-2 1.2 6.3 6.3 0 0 0-1.469 1.923 5.9 5.9 0 0 0-.6 2.588v16.184a9 9 0 0 1-.048.9 2.7 2.7 0 0 1-.2.807 1.4 1.4 0 0 1-.442.57 1.2 1.2 0 0 1-.741.214h-3.943a1.59 1.59 0 0 1-1.159-.368c-.247-.245-.37-.6-.37-1.739V17.503c0 .272.127-.069.382-.339a1.48 1.48 0 0 1 1.123-.4h3.95a1.46 1.46 0 0 1 1 .416 1.3 1.3 0 0 1 .454.984ZM185.129 40.313a15.45 15.45 0 0 1 4.608-11.052 15.8 15.8 0 0 1 3.175-2.422 16 16 0 0 1 3.737-1.567 15.8 15.8 0 0 1 8.322 0 15.73 15.73 0 0 1 6.9 3.989 15.47 15.47 0 0 1 4.609 11.052 15.3 15.3 0 0 1-2.149 7.871 16 16 0 0 1-2.46 3.146 15.6 15.6 0 0 1-6.9 4 15.8 15.8 0 0 1-8.322 0 16 16 0 0 1-3.737-1.567 15.5 15.5 0 0 1-3.175-2.433 16 16 0 0 1-2.459-3.146 15.3 15.3 0 0 1-2.149-7.871m6.739 0a9.7 9.7 0 0 0 .669 3.6 9.1 9.1 0 0 0 1.864 2.956 8.9 8.9 0 0 0 2.832 1.994 8.6 8.6 0 0 0 3.573.736 8.3 8.3 0 0 0 3.5-.736 8.7 8.7 0 0 0 2.784-1.994 9.1 9.1 0 0 0 1.828-2.956 10.14 10.14 0 0 0 0-7.182 9.5 9.5 0 0 0-1.828-3 8.9 8.9 0 0 0-2.784-2.066 8 8 0 0 0-3.5-.772 8.3 8.3 0 0 0-3.573.772 9.1 9.1 0 0 0-2.832 2.066 9.5 9.5 0 0 0-1.864 3 9.8 9.8 0 0 0-.669 3.585M240.769 52.375a9.5 9.5 0 0 1-1.362 1.4 8.3 8.3 0 0 1-1.756 1.116 9.8 9.8 0 0 1-2.259.737 14.3 14.3 0 0 1-2.868.26 10.6 10.6 0 0 1-4.779-1.033 10.2 10.2 0 0 1-3.49-2.8 12.4 12.4 0 0 1-2.139-4.143 17 17 0 0 1-.724-5.034V26.353a1.8 1.8 0 0 1 .406-1.281 1.54 1.54 0 0 1 1.17-.428h3.632a1.72 1.72 0 0 1 1.279.357 1.9 1.9 0 0 1 .323 1.258v16.619a7 7 0 0 0 .442 2.446 6.5 6.5 0 0 0 1.267 2.1 6.3 6.3 0 0 0 2 1.472 6 6 0 0 0 2.6.557 6.2 6.2 0 0 0 2.2-.415 6.5 6.5 0 0 0 2-1.2 6.3 6.3 0 0 0 1.469-1.923 5.9 5.9 0 0 0 .6-2.588V27.138a9 9 0 0 1 .048-.9 2.7 2.7 0 0 1 .2-.808 1.4 1.4 0 0 1 .442-.569 1.2 1.2 0 0 1 .741-.214h3.943a1.59 1.59 0 0 1 1.159.368 1.42 1.42 0 0 1 .37 1.056v28.386a1.43 1.43 0 0 1-.382 1.021 1.48 1.48 0 0 1-1.123.4h-3.943a1.46 1.46 0 0 1-1-.416 1.3 1.3 0 0 1-.454-.985ZM258.102 46.866a5.1 5.1 0 0 0 1.267 1.354 8.7 8.7 0 0 0 1.566.938 7.8 7.8 0 0 0 1.529.534 5.5 5.5 0 0 0 1.16.167 10.4 10.4 0 0 0 1.576-.143 6.5 6.5 0 0 0 1.709-.51 4.1 4.1 0 0 0 1.362-1 2.32 2.32 0 0 0 .561-1.6 2.52 2.52 0 0 0-.442-1.544 3.46 3.46 0 0 0-1.195-.986 8.6 8.6 0 0 0-1.721-.653q-.968-.261-2.043-.57a20.2 20.2 0 0 1-4.277-1.6 11 11 0 0 1-2.9-2.149 7.7 7.7 0 0 1-1.661-2.659 9.2 9.2 0 0 1-.526-3.158 7.87 7.87 0 0 1 2.915-6.244 10 10 0 0 1 3.334-1.769 14 14 0 0 1 4.313-.629 13.6 13.6 0 0 1 2.987.3 9.8 9.8 0 0 1 2.438.891 10.3 10.3 0 0 1 2.115 1.5 23 23 0 0 1 2.02 2.112 1.3 1.3 0 0 1 .358.831 1.06 1.06 0 0 1-.478.807q-.358.285-.848.713t-.968.831a10 10 0 0 1-.908.688 1.4 1.4 0 0 1-.716.285 1.37 1.37 0 0 1-1.028-.617 11 11 0 0 0-1.052-1.081 5.5 5.5 0 0 0-1.1-.759 5.3 5.3 0 0 0-1.242-.451 6.5 6.5 0 0 0-1.457-.155 5.2 5.2 0 0 0-1.351.19 4.6 4.6 0 0 0-1.29.57 3.7 3.7 0 0 0-.979.914 1.97 1.97 0 0 0-.395 1.2 1.84 1.84 0 0 0 .489 1.294 4.5 4.5 0 0 0 1.24.926 9 9 0 0 0 1.634.653q.882.262 1.647.475a31 31 0 0 1 4.032 1.425 12.3 12.3 0 0 1 3.161 1.958 8.25 8.25 0 0 1 2.06 2.693 8.4 8.4 0 0 1 .74 3.644 8.45 8.45 0 0 1-3.322 6.909 11.3 11.3 0 0 1-3.7 1.852 16.1 16.1 0 0 1-4.644.641 15 15 0 0 1-3.058-.321 13 13 0 0 1-2.975-1 11.4 11.4 0 0 1-2.625-1.725 9.4 9.4 0 0 1-2.019-2.505 2.1 2.1 0 0 1-.359-1.068.92.92 0 0 1 .156-.534 2.1 2.1 0 0 1 .418-.439l2.677-2.042a1.3 1.3 0 0 1 .646-.214.9.9 0 0 1 .6.226 5 5 0 0 1 .574.6M304.897 52.066a17.1 17.1 0 0 1-4.6 2.8 14.4 14.4 0 0 1-5.484 1.021 15.7 15.7 0 0 1-6.118-1.211 15.97 15.97 0 0 1-8.519-8.274 14.7 14.7 0 0 1-1.279-6.113 15.85 15.85 0 0 1 2.02-7.776 15.4 15.4 0 0 1 2.353-3.158 15 15 0 0 1 3.094-2.457 15.1 15.1 0 0 1 3.7-1.579 15.6 15.6 0 0 1 4.218-.558 14.9 14.9 0 0 1 3.584.439 15.8 15.8 0 0 1 6.333 3.205 14.3 14.3 0 0 1 2.438 2.6 14 14 0 0 1 2.1 4.3 18.3 18.3 0 0 1 .669 5.1 9 9 0 0 1-.06 1.152 1.4 1.4 0 0 1-.3.748 1.38 1.38 0 0 1-.717.415 5.3 5.3 0 0 1-1.338.131h-21.2a8 8 0 0 0 1.183 3.027 9.1 9.1 0 0 0 2.067 2.232 8.7 8.7 0 0 0 2.6 1.377 9 9 0 0 0 2.82.463 9.8 9.8 0 0 0 2.067-.213 11 11 0 0 0 1.852-.57 10.4 10.4 0 0 0 1.589-.819 9.5 9.5 0 0 0 1.279-.961.02.02 0 0 1 .024-.024 3.3 3.3 0 0 1 .549-.415 1.07 1.07 0 0 1 .55-.155 1.1 1.1 0 0 1 .49.143 1.7 1.7 0 0 1 .538.475q.645.784 1.1 1.306t.741.879a3.7 3.7 0 0 1 .418.617 1.16 1.16 0 0 1 .131.522 1.78 1.78 0 0 1-.907 1.329m-10.61-21.415a7.7 7.7 0 0 0-2.748.511 9.2 9.2 0 0 0-2.449 1.389 9.6 9.6 0 0 0-1.935 2.065 8.4 8.4 0 0 0-1.206 2.565h16.918a9.1 9.1 0 0 0-1.16-2.648 8.5 8.5 0 0 0-1.875-2.065 8.3 8.3 0 0 0-2.51-1.342 9.4 9.4 0 0 0-3.034-.475"
15
+ }), /* @__PURE__ */React.createElement("path", {
16
+ fill: "#000320",
17
+ d: "M86.902 54.913a9 9 0 0 1 .305-.975q.172-.447.3-.817l14.299-35.354a1.6 1.6 0 0 1 .437-.646 1.32 1.32 0 0 1 .969-.356h4.269a1.17 1.17 0 0 1 .915.316 3.4 3.4 0 0 1 .411.553l.875 2.055 14 34.806a2 2 0 0 0 .04.277 1.7 1.7 0 0 1 .04.329q0 .79-1.166.79h-5.224a1.5 1.5 0 0 1-.9-.237 1.74 1.74 0 0 1-.531-.738l-.477-1.212q-.5-1.264-1.008-2.53t-.981-2.556H97.112q-.691 1.845-1.339 3.465t-1.1 2.832a1.37 1.37 0 0 1-1.379.974h-5.3a1.55 1.55 0 0 1-.809-.185.6.6 0 0 1-.3-.553.8.8 0 0 1 .026-.237M105.369 26.8q-1.433 3.637-2.851 7.536t-2.851 7.509h11.3Z"
18
+ }), /* @__PURE__ */React.createElement("path", {
19
+ fill: "#000222",
20
+ d: "M73.193 36.36A36.6 36.6 0 1 1 36.6 0a36.48 36.48 0 0 1 36.6 36.36"
21
+ }), /* @__PURE__ */React.createElement("g", {
22
+ "data-name": "Group 117"
23
+ }, /* @__PURE__ */React.createElement("path", {
24
+ fill: "#fff",
25
+ d: "M56.123 23.521v19.556a.745.745 0 0 1-.742.742H39.926a.74.74 0 0 1-.742-.738v-5.236H28.919v16.3a.74.74 0 0 1-.742.737h-1.665a.74.74 0 0 1-.742-.737V16.677a.745.745 0 0 1 .742-.742h1.665a.745.745 0 0 1 .742.742v.35h12.724a.74.74 0 0 1 .742.737v5h12.972a.76.76 0 0 1 .761.756m-3.144 14.325H42.381v2.84h10.593Zm0-3.133v-2.84H42.381l-.005 2.84Zm0-5.974v-2.84H42.385v2.84Zm-13.738-8.583h-3.579V34.71h3.582Zm-6.736 0h-3.581V34.71h3.582Z",
26
+ "data-name": "Group 116"
27
+ }))),
28
+ oneroof: /* @__PURE__ */React.createElement("svg", {
29
+ xmlns: "http://www.w3.org/2000/svg",
30
+ fill: "none",
31
+ viewBox: "0 0 66 12"
32
+ }, /* @__PURE__ */React.createElement("path", {
33
+ fill: "#ff8500",
34
+ d: "M11.784 8.286h-1.53V6.114L6.6 2.83 2.946 6.114v2.172h-1.53V5.429L6.6.743l5.184 4.686zm-10.368 1h10.368v1.543H1.416z"
35
+ }), /* @__PURE__ */React.createElement("path", {
36
+ fill: "#252931",
37
+ d: "M18.384 8.914c1.303 0 2.747-.885 2.747-2.885s-1.416-2.915-2.747-2.915c-1.332 0-2.748.915-2.748 2.915s1.445 2.885 2.748 2.885m0-7.885c2.662 0 4.929 1.971 4.929 5S21.046 11 18.383 11c-2.69 0-4.956-1.971-4.956-5 .028-3 2.294-4.971 4.957-4.971m7.79 9.8h-2.04V4.114h1.983v.772c.368-.629 1.19-.943 1.87-.943 1.67 0 2.435 1.2 2.435 2.686v4.228h-2.04V6.971c0-.657-.34-1.171-1.076-1.171-.68 0-1.104.514-1.104 1.171zm9.574-4.172c-.029-.514-.369-1.143-1.332-1.143a1.29 1.29 0 0 0-1.331 1.143zm1.84 2.229c-.31 1.171-1.387 2.143-3.058 2.143-1.842 0-3.456-1.315-3.456-3.572 0-2.171 1.586-3.543 3.314-3.543 2.068 0 3.343 1.286 3.343 3.457 0 .286-.029.6-.029.629h-4.645c.028.743.736 1.286 1.501 1.286.736 0 1.161-.343 1.331-.886zm4.335-3.457c.878 0 1.331-.486 1.331-1.172 0-.714-.481-1.171-1.331-1.171h-1.247v2.343zm-.51 1.828h-.737v3.572h-2.124V1.257h3.767c1.87 0 3.088 1.286 3.088 3 0 1.286-.708 2.286-1.87 2.714l1.927 3.886H43.14c-.029-.028-1.728-3.6-1.728-3.6"
38
+ }), /* @__PURE__ */React.createElement("path", {
39
+ fill: "#252931",
40
+ d: "M50.42 7.457c0-1.143-.736-1.657-1.5-1.657-.766 0-1.502.543-1.502 1.657s.736 1.686 1.501 1.686 1.502-.543 1.502-1.686m2.04 0c0 2.086-1.53 3.572-3.54 3.572-1.983 0-3.541-1.486-3.541-3.572s1.558-3.543 3.54-3.543c1.983 0 3.541 1.457 3.541 3.543m5.524 0c0-1.143-.737-1.657-1.502-1.657-.764 0-1.5.543-1.5 1.657s.736 1.686 1.5 1.686c.794 0 1.502-.543 1.502-1.686m2.04 0c0 2.086-1.53 3.572-3.542 3.572-1.982 0-3.54-1.486-3.54-3.572s1.558-3.543 3.54-3.543c2.012 0 3.541 1.457 3.541 3.543m3.342-1.628v5h-2.04v-5h-1.048V4.086h1.048v-.572c0-1.543.935-2.6 2.55-2.6.424 0 .793.057.963.143v1.686a2.4 2.4 0 0 0-.595-.057c-.368 0-.878.171-.878.914v.514h1.444v1.743z"
41
+ })),
42
+ realestate: /* @__PURE__ */React.createElement("svg", {
43
+ xmlns: "http://www.w3.org/2000/svg",
44
+ fill: "none",
45
+ viewBox: "0 0 207 32"
46
+ }, /* @__PURE__ */React.createElement("path", {
47
+ fill: "#0098ff",
48
+ d: "M162.473 22.46c-.949 0-1.727-.767-1.727-1.704s.778-1.703 1.727-1.703c.969 0 1.727.767 1.727 1.703 0 .937-.758 1.704-1.727 1.704M169.749 22.51c-2.556 0-4.575-1.873-4.575-4.443 0-2.571 2.019-4.444 4.575-4.444 1.797 0 3.349.987 4.092 2.452l-2.054 1.09c-.346-.783-1.089-1.362-2.038-1.362-1.245 0-2.194.955-2.194 2.264 0 1.312.949 2.264 2.194 2.264.949 0 1.692-.58 2.038-1.363l2.054 1.09c-.743 1.466-2.295 2.452-4.092 2.452M179.325 22.51c-2.502 0-4.54-1.957-4.54-4.443 0-2.487 2.038-4.444 4.54-4.444 2.505 0 4.54 1.957 4.54 4.444s-2.038 4.443-4.54 4.443m0-2.18c1.245 0 2.14-.954 2.14-2.263 0-1.312-.898-2.264-2.14-2.264s-2.159.955-2.159 2.264.915 2.264 2.159 2.264M186.446 22.46c-.949 0-1.727-.767-1.727-1.704s.778-1.703 1.727-1.703a1.71 1.71 0 0 1 1.727 1.703 1.71 1.71 0 0 1-1.727 1.704M189.875 13.808h2.365v.97c.448-.682 1.346-1.158 2.47-1.158 2.089 0 3.334 1.5 3.334 3.71v4.989h-2.365v-4.597c0-1.227-.537-1.976-1.521-1.976-1.089 0-1.918.783-1.918 2.418v4.155h-2.365zM199.717 20.5l4.041-4.581h-3.987v-2.11h7.045v1.837l-4.023 4.563h4.162v2.11h-7.235v-1.82z"
49
+ }), /* @__PURE__ */React.createElement("path", {
50
+ fill: "#020fa6",
51
+ d: "M39.559 22.263V9.637h3.292v2.533s.114-.372.336-.764c.229-.404.569-.83.75-.999a3.43 3.43 0 0 1 2.311-.923 4.2 4.2 0 0 1 1.105.134l.06.016q.248.072.464.169c.235.11.536.263.854.51l-1.353 2.59s-.092-.028-.11-.031a5 5 0 0 0-.766-.17 4.3 4.3 0 0 0-.673-.05c-1.616 0-2.743 1.137-2.943 2.972q-.034.307-.035.614v6.028h-3.292zM55.488 22.545c-4 0-6.795-2.712-6.795-6.598 0-3.76 2.899-6.598 6.74-6.598 3.134 0 6.296 1.92 6.296 6.21 0 .285 0 .604-.038 1.067h-9.83l.02.163c.203 1.685 1.663 2.818 3.632 2.818 1.435 0 2.699-.582 3.416-1.565l2.432 1.788c-1.264 1.728-3.394 2.715-5.873 2.715m-.156-10.566c-1.295 0-2.94.62-3.315 2.365l-.038.178h6.496l-.035-.175c-.298-1.44-1.517-2.368-3.108-2.368M69.32 22.545c-3.312 0-6.007-2.96-6.007-6.598s2.695-6.598 6.006-6.598c1.718 0 3.07.836 3.651 1.67l.273.387V9.634h3.293V22.26h-3.293v-1.772l-.273.389c-.58.832-1.933 1.668-3.65 1.668m.758-10.256c-2 0-3.451 1.541-3.451 3.66s1.45 3.661 3.451 3.661c2 0 3.451-1.54 3.451-3.66s-1.45-3.66-3.45-3.66M82.613 3.456H79.32V22.26h3.293zM91.667 22.545c-4 0-6.794-2.712-6.794-6.598 0-3.76 2.899-6.598 6.74-6.598 3.134 0 6.296 1.92 6.296 6.21 0 .285 0 .604-.038 1.067h-9.83l.02.163c.203 1.685 1.663 2.818 3.632 2.818 1.435 0 2.698-.582 3.416-1.565l2.432 1.788c-1.267 1.728-3.397 2.715-5.874 2.715m-.159-10.566c-1.295 0-2.94.62-3.314 2.365l-.038.178h6.496l-.035-.175c-.299-1.44-1.518-2.368-3.109-2.368M104.607 22.545c-2.301 0-4.14-.818-5.197-2.308l2.232-1.873c.616.896 1.711 1.425 2.969 1.425.965 0 1.59-.423 1.59-1.077 0-.667-.454-1.002-1.863-1.381l-.975-.235c-2.277-.585-3.553-2.039-3.502-3.986.048-2.214 2.013-3.758 4.775-3.758 1.867 0 3.362.69 4.33 1.998l-2.133 1.707c-.613-.705-1.387-1.078-2.248-1.078-.724 0-1.457.351-1.457 1.024 0 .608.444 1.009 1.394 1.253l1.225.36c2.556.673 3.692 1.863 3.692 3.864-.003 2.355-2.035 4.064-4.832 4.064M117.53 22.416c-2.346 0-4.854-1.19-4.854-4.53v-5.443h-2.051V9.637h2.051V6.096h3.292v3.541h3.693v2.806h-3.693v4.747c0 1.64.711 2.342 2.375 2.342.495 0 .93-.056 1.318-.175v2.812c-.581.169-1.261.247-2.131.247M127.032 22.545c-3.311 0-6.007-2.96-6.007-6.598s2.696-6.598 6.007-6.598c1.718 0 3.07.836 3.651 1.67l.273.387V9.634h3.293V22.26h-3.293v-1.772l-.273.389c-.578.832-1.933 1.668-3.651 1.668m.762-10.256c-2 0-3.451 1.541-3.451 3.66s1.451 3.661 3.451 3.661 3.451-1.54 3.451-3.66-1.454-3.66-3.451-3.66M143.177 22.416c-2.346 0-4.855-1.19-4.855-4.53v-5.443h-2.051V9.637h2.051V6.096h3.293v3.541h3.692v2.806h-3.692v4.747c0 1.64.711 2.342 2.375 2.342.495 0 .93-.056 1.317-.175v2.812c-.578.169-1.26.247-2.13.247M153.517 22.545c-4 0-6.794-2.712-6.794-6.598 0-3.76 2.898-6.598 6.74-6.598 3.133 0 6.296 1.92 6.296 6.21 0 .285 0 .604-.039 1.067h-9.829l.019.163c.203 1.685 1.664 2.818 3.632 2.818 1.435 0 2.699-.582 3.416-1.565l2.432 1.788c-1.266 1.728-3.397 2.715-5.873 2.715m-.159-10.566c-1.295 0-2.94.62-3.314 2.365l-.039.178h6.496l-.035-.175c-.298-1.44-1.517-2.368-3.108-2.368M24.646 16.595a8 8 0 0 0 .067-1.02c0-4.995-3.82-8.762-8.886-8.762-5.064 0-8.884 3.767-8.884 8.761q.001.513.064 1.021zM15.826 9.9c2.734 0 4.852 1.607 5.525 3.999H10.299c.676-2.39 2.794-3.999 5.528-3.999M21.707 18.893a6.17 6.17 0 0 1-5.413 3.172 6.18 6.18 0 0 1-5.41-3.172H7.48c1.239 3.633 4.718 6.26 8.814 6.26 3.264 0 6.248-1.666 7.934-4.387z"
52
+ }), /* @__PURE__ */React.createElement("path", {
53
+ fill: "#0098ff",
54
+ d: "M12.204.356v3.087h16.303v19.033c0 3.328-2.746 6.037-6.12 6.037H3.088V18.89H-.04V31.6h22.43c5.102 0 9.252-4.092 9.252-9.125V.357z"
55
+ }), /* @__PURE__ */React.createElement("path", {
56
+ fill: "#020fa6",
57
+ d: "M9.362.356q-.651.001-1.28.088C5.796.807 3.75 2.113 2.983 3.976q-.015.033-.025.065v-3.3H-.039v15.85h3.13V9.626c0-3.41 2.813-6.185 6.27-6.185h.521V.353h-.52z"
58
+ })),
59
+ trademe: /* @__PURE__ */React.createElement("svg", {
60
+ xmlns: "http://www.w3.org/2000/svg",
61
+ fill: "none",
62
+ viewBox: "0 0 90 12"
63
+ }, /* @__PURE__ */React.createElement("path", {
64
+ fill: "#4854d3",
65
+ d: "M5.081 9.31c-.349.174-.836.31-1.223.31-.7 0-1.108-.33-1.108-1.143v-2.69h2.468V3.816h-2.45v-2.3H.106v7.234c0 2.05 1.244 3.115 3.324 3.115.933 0 1.633-.252 2.275-.561L5.083 9.31zm13.394-5.493v.619c-.642-.541-1.476-.85-2.526-.85-2.156 0-3.964 1.683-3.964 4.139s1.808 4.139 3.964 4.139c1.05 0 1.886-.31 2.526-.85v.618h2.586V3.817zm-1.984 5.938c-1.127 0-1.964-.812-1.964-2.03s.817-2.031 1.964-2.031c1.05 0 2.002.833 2.002 2.03-.02 1.219-.953 2.031-2.002 2.031M28.251.141v4.121c-.641-.56-1.476-.87-2.525-.87-2.157 0-3.964 1.72-3.964 4.237 0 2.516 1.807 4.237 3.964 4.237 1.05 0 1.886-.31 2.526-.87v.638h2.586V.141zM26.25 9.697c-1.128 0-1.965-.832-1.965-2.07s.817-2.07 1.965-2.07c1.049 0 2.002.85 2.002 2.07s-.953 2.07-2.002 2.07m13.664-1.972c-.058-2.554-1.866-4.14-4.14-4.14-2.276 0-4.238 1.684-4.238 4.14s1.924 4.139 4.237 4.139c1.75 0 3.168-.735 3.888-2.245l-2.293-.463c-.427.6-1.049.715-1.575.715-.854 0-1.516-.581-1.73-1.51h5.853V7.86zm-5.832-.89c.233-.794.971-1.239 1.691-1.239s1.38.387 1.613 1.238zm-22.099-3.25h-.078c-1.36 0-2.255.697-2.877 1.684V3.7H6.384v8.165h2.662V9.312c0-2.109.99-3.037 2.839-3.057l.096-2.67z"
66
+ }), /* @__PURE__ */React.createElement("path", {
67
+ fill: "#f9af2c",
68
+ d: "M51.403 3.59c-1.303 0-2.294.54-2.956 1.353-.564-.87-1.555-1.354-2.72-1.354-1.07 0-1.886.368-2.468.967V3.82h-2.644v8.009h2.644V7.922c0-1.336.642-2.03 1.593-2.03.797 0 1.418.58 1.418 1.49v4.468h2.645V7.922c0-1.336.642-2.03 1.633-2.03.778 0 1.4.58 1.4 1.49v4.468h2.644V6.82c0-1.935-1.418-3.23-3.188-3.23zm12.264 4.139c-.059-2.554-1.866-4.14-4.141-4.14s-4.238 1.684-4.238 4.14 1.924 4.139 4.238 4.139c1.75 0 3.168-.735 3.888-2.245L61.12 9.16c-.428.6-1.05.715-1.575.715-.855 0-1.517-.581-1.73-1.51h5.85v-.638zm-5.83-.891c.232-.793.97-1.238 1.69-1.238s1.361.387 1.614 1.238z"
69
+ }), /* @__PURE__ */React.createElement("path", {
70
+ fill: "#4854d3",
71
+ d: "M81.211 9.59a7.3 7.3 0 0 0-2.286.005l-.04.006a7.3 7.3 0 0 0-2.202.74c-1.225.553-.374 1.941.587 1.394 1.133-.652 2.358-1.054 3.74-.986.903.066.942-1.058.201-1.16M66.357 11.612a7.2 7.2 0 0 0 1.25-1.906l.016-.036c.314-.71.511-1.466.584-2.239.208-1.323-1.426-1.375-1.492-.276-.073 1.299-.405 2.54-1.222 3.654-.55.715.372 1.364.864.805"
72
+ }), /* @__PURE__ */React.createElement("path", {
73
+ fill: "#f9af2c",
74
+ d: "m89.534 4.525-.022-.006-.324-.073a25 25 0 0 0-1.437-.278q-.31-.05-.648-.098a13 13 0 0 0-.7-.08q-.359-.035-.728-.062a14 14 0 0 0-.728-.034q-.364-.007-.707-.009h-.052c.103.34.13.697.081 1.047h.024c.216-.012.44-.028.667-.033q.343-.009.691-.01.35 0 .693.017.344.016.672.037.328.022.629.055c.2.022.388.041.566.065.349.043.639.088.842.12l.323.052h.008a.37.37 0 0 0 .422-.28.364.364 0 0 0-.264-.432"
75
+ }), /* @__PURE__ */React.createElement("path", {
76
+ fill: "#4854d3",
77
+ d: "M84.188 3.886c-.236-.773-.858-1.417-1.76-1.7-3.452-1.082-8.06-1.243-11.05.08-1.241.552-2.272 1.577-2.678 2.98a4.6 4.6 0 0 0 .111 2.898 4.6 4.6 0 0 0 1.83 2.257 4.645 4.645 0 0 0 5.517-.377c1.475-1.268 2.657-2.653 5.71-2.922 1.226-.11 2.017-.753 2.323-1.806q.053-.179.08-.362a2.4 2.4 0 0 0-.08-1.047"
78
+ }), /* @__PURE__ */React.createElement("path", {
79
+ fill: "#fff",
80
+ d: "M83.204 4.993a1.39 1.39 0 0 1-1.186.994 1.4 1.4 0 0 1-1.376-.71 1.38 1.38 0 0 1 .132-1.537 1.395 1.395 0 0 1 1.477-.467c.356.102.656.341.834.663.179.323.222.703.119 1.057"
81
+ }), /* @__PURE__ */React.createElement("path", {
82
+ fill: "#333",
83
+ d: "M82.682 4.077a.72.72 0 0 0-1.188.43.71.71 0 0 0 .51.79.72.72 0 0 0 .857-.397.7.7 0 0 0 .03-.5.33.33 0 0 1-.407.305.33.33 0 0 1-.252-.263.33.33 0 0 1 .144-.335.33.33 0 0 1 .306-.03"
84
+ }))
85
+ };
86
+ function PartnerLogo(_ref) {
87
+ var name = _ref.name,
88
+ height = _ref.height,
89
+ width = _ref.width;
90
+ return /* @__PURE__ */React.createElement(ui.Box, {
91
+ width: width,
92
+ height: height,
93
+ display: "inline-flex",
94
+ sx: {
95
+ "> svg": {
96
+ width: "inherit",
97
+ height: "inherit",
98
+ fontSize: "inherit",
99
+ maxWidth: "100%",
100
+ maxHeight: "100%"
101
+ }
102
+ }
103
+ }, map[name]);
104
+ }
105
+
106
+ exports.default = PartnerLogo;
@@ -11,6 +11,7 @@ var BookingTableRowSkeleton = require('./components/BookingTableRowSkeleton.cjs'
11
11
  var CheckedIcon = require('./components/CheckedIcon.cjs');
12
12
  var doughnutChart = require('./components/doughnut-chart.cjs');
13
13
  var analyticsDoughnutChart = require('./components/analytics-doughnut-chart.cjs');
14
+ var partnerLogo = require('./components/partner-logo.cjs');
14
15
  var GridList = require('./components/GridList.cjs');
15
16
  var Hidden = require('./components/Hidden.cjs');
16
17
  var IconLabel = require('./components/IconLabel.cjs');
@@ -30,6 +31,7 @@ exports.BookingTableRowSkeleton = BookingTableRowSkeleton.default;
30
31
  exports.CheckedIcon = CheckedIcon.default;
31
32
  exports.DoughnutChart = doughnutChart.default;
32
33
  exports.AnalyticsDoughnutChart = analyticsDoughnutChart.default;
34
+ exports.PartnerLogo = partnerLogo.default;
33
35
  exports.GridList = GridList.default;
34
36
  exports.Hidden = Hidden.default;
35
37
  exports.IconLabel = IconLabel.default;
@@ -32,7 +32,8 @@ function ChartLegend(_ref) {
32
32
  variant: "inherit"
33
33
  }, count)), typeof label !== "string" ? label : /* @__PURE__ */React.createElement(Text, {
34
34
  weight: "500",
35
- variant: "inherit"
35
+ variant: "inherit",
36
+ color: "primary"
36
37
  }, label));
37
38
  }
38
39
 
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import DoughnutChart from './doughnut-chart.js';
3
+ import PartnerLogo from './partner-logo.js';
3
4
  import { parseChartCount } from '../utils/helpers/general.js';
4
5
 
5
6
  function AnalyticsDoughnutChart(_ref) {
@@ -26,22 +27,42 @@ function AnalyticsDoughnutChart(_ref) {
26
27
  color: "#000000",
27
28
  count: parseChartCount(allhouseCount),
28
29
  slug: "allhouse",
29
- title: "Allhouse"
30
+ title: "Allhouse",
31
+ logo: /* @__PURE__ */React.createElement(PartnerLogo, {
32
+ name: "allhouse",
33
+ width: "59px",
34
+ height: "14px"
35
+ })
30
36
  }, {
31
37
  color: "#FF8500",
32
38
  count: parseChartCount(oneRoofCount),
33
39
  slug: "oneroof",
34
- title: "OneRoof"
40
+ title: "OneRoof",
41
+ logo: /* @__PURE__ */React.createElement(PartnerLogo, {
42
+ name: "oneroof",
43
+ width: "66px",
44
+ height: "12px"
45
+ })
35
46
  }, {
36
47
  color: "#0098FF",
37
48
  count: parseChartCount(realEstateCount),
38
49
  slug: "realestate",
39
- title: "realestate.co.nz"
50
+ title: "realestate.co.nz",
51
+ logo: /* @__PURE__ */React.createElement(PartnerLogo, {
52
+ name: "realestate",
53
+ width: "92px",
54
+ height: "14px"
55
+ })
40
56
  }, {
41
57
  color: "#4854D3",
42
58
  count: parseChartCount(tradeMeCount),
43
59
  slug: "trademe",
44
- title: "Trade Me"
60
+ title: "Trade Me",
61
+ logo: /* @__PURE__ */React.createElement(PartnerLogo, {
62
+ name: "trademe",
63
+ width: "90px",
64
+ height: "12px"
65
+ })
45
66
  }, {
46
67
  color: "#D9D9D9",
47
68
  count: parseChartCount(manualCount),
@@ -111,12 +111,13 @@ function DoughnutChart(_ref) {
111
111
  }, data.map(function (item) {
112
112
  var color = item.color,
113
113
  count = item.count,
114
- title = item.title;
114
+ title = item.title,
115
+ logo = item.logo;
115
116
  return /* @__PURE__ */React.createElement(ChartLegend, {
116
117
  key: uid(item),
117
118
  color: color,
118
119
  count: parseInt(String(count), 10),
119
- label: title
120
+ label: logo || title
120
121
  });
121
122
  }))));
122
123
  }
@@ -0,0 +1,102 @@
1
+ import React from 'react';
2
+ import { Box } from '@tenancy.nz/ui';
3
+
4
+ var map = {
5
+ allhouse: /* @__PURE__ */React.createElement("svg", {
6
+ xmlns: "http://www.w3.org/2000/svg",
7
+ viewBox: "0 0 309.413 72.72"
8
+ }, /* @__PURE__ */React.createElement("path", {
9
+ fill: "#000222",
10
+ d: "M128.567 18.21a1.55 1.55 0 0 1 .334-1.021 1.26 1.26 0 0 1 1.028-.4h4.182a1.28 1.28 0 0 1 .9.4 1.36 1.36 0 0 1 .418 1.021v36.254a1.37 1.37 0 0 1-.394 1.068 1.53 1.53 0 0 1-1.063.356h-3.991a1.41 1.41 0 0 1-1.088-.356 1.55 1.55 0 0 1-.322-1.068ZM141.037 18.21a1.55 1.55 0 0 1 .334-1.021 1.26 1.26 0 0 1 1.028-.4h4.182a1.28 1.28 0 0 1 .9.4 1.36 1.36 0 0 1 .418 1.021v36.254a1.37 1.37 0 0 1-.394 1.068 1.53 1.53 0 0 1-1.063.356h-3.992a1.41 1.41 0 0 1-1.088-.356 1.55 1.55 0 0 1-.322-1.068ZM160.945 28.167a9.5 9.5 0 0 1 1.362-1.4 8.3 8.3 0 0 1 1.756-1.116 9.8 9.8 0 0 1 2.258-.736 14.3 14.3 0 0 1 2.868-.26 10.6 10.6 0 0 1 4.779 1.033 10.2 10.2 0 0 1 3.49 2.8 12.4 12.4 0 0 1 2.139 4.143 17 17 0 0 1 .728 5.033v16.515a1.8 1.8 0 0 1-.406 1.282 1.54 1.54 0 0 1-1.17.428h-3.632a1.72 1.72 0 0 1-1.279-.357 1.9 1.9 0 0 1-.323-1.258V37.66a7 7 0 0 0-.442-2.446 6.5 6.5 0 0 0-1.267-2.1 6.3 6.3 0 0 0-2-1.472 6 6 0 0 0-2.6-.557 6.2 6.2 0 0 0-2.2.415 6.5 6.5 0 0 0-2 1.2 6.3 6.3 0 0 0-1.469 1.923 5.9 5.9 0 0 0-.6 2.588v16.184a9 9 0 0 1-.048.9 2.7 2.7 0 0 1-.2.807 1.4 1.4 0 0 1-.442.57 1.2 1.2 0 0 1-.741.214h-3.943a1.59 1.59 0 0 1-1.159-.368c-.247-.245-.37-.6-.37-1.739V17.503c0 .272.127-.069.382-.339a1.48 1.48 0 0 1 1.123-.4h3.95a1.46 1.46 0 0 1 1 .416 1.3 1.3 0 0 1 .454.984ZM185.129 40.313a15.45 15.45 0 0 1 4.608-11.052 15.8 15.8 0 0 1 3.175-2.422 16 16 0 0 1 3.737-1.567 15.8 15.8 0 0 1 8.322 0 15.73 15.73 0 0 1 6.9 3.989 15.47 15.47 0 0 1 4.609 11.052 15.3 15.3 0 0 1-2.149 7.871 16 16 0 0 1-2.46 3.146 15.6 15.6 0 0 1-6.9 4 15.8 15.8 0 0 1-8.322 0 16 16 0 0 1-3.737-1.567 15.5 15.5 0 0 1-3.175-2.433 16 16 0 0 1-2.459-3.146 15.3 15.3 0 0 1-2.149-7.871m6.739 0a9.7 9.7 0 0 0 .669 3.6 9.1 9.1 0 0 0 1.864 2.956 8.9 8.9 0 0 0 2.832 1.994 8.6 8.6 0 0 0 3.573.736 8.3 8.3 0 0 0 3.5-.736 8.7 8.7 0 0 0 2.784-1.994 9.1 9.1 0 0 0 1.828-2.956 10.14 10.14 0 0 0 0-7.182 9.5 9.5 0 0 0-1.828-3 8.9 8.9 0 0 0-2.784-2.066 8 8 0 0 0-3.5-.772 8.3 8.3 0 0 0-3.573.772 9.1 9.1 0 0 0-2.832 2.066 9.5 9.5 0 0 0-1.864 3 9.8 9.8 0 0 0-.669 3.585M240.769 52.375a9.5 9.5 0 0 1-1.362 1.4 8.3 8.3 0 0 1-1.756 1.116 9.8 9.8 0 0 1-2.259.737 14.3 14.3 0 0 1-2.868.26 10.6 10.6 0 0 1-4.779-1.033 10.2 10.2 0 0 1-3.49-2.8 12.4 12.4 0 0 1-2.139-4.143 17 17 0 0 1-.724-5.034V26.353a1.8 1.8 0 0 1 .406-1.281 1.54 1.54 0 0 1 1.17-.428h3.632a1.72 1.72 0 0 1 1.279.357 1.9 1.9 0 0 1 .323 1.258v16.619a7 7 0 0 0 .442 2.446 6.5 6.5 0 0 0 1.267 2.1 6.3 6.3 0 0 0 2 1.472 6 6 0 0 0 2.6.557 6.2 6.2 0 0 0 2.2-.415 6.5 6.5 0 0 0 2-1.2 6.3 6.3 0 0 0 1.469-1.923 5.9 5.9 0 0 0 .6-2.588V27.138a9 9 0 0 1 .048-.9 2.7 2.7 0 0 1 .2-.808 1.4 1.4 0 0 1 .442-.569 1.2 1.2 0 0 1 .741-.214h3.943a1.59 1.59 0 0 1 1.159.368 1.42 1.42 0 0 1 .37 1.056v28.386a1.43 1.43 0 0 1-.382 1.021 1.48 1.48 0 0 1-1.123.4h-3.943a1.46 1.46 0 0 1-1-.416 1.3 1.3 0 0 1-.454-.985ZM258.102 46.866a5.1 5.1 0 0 0 1.267 1.354 8.7 8.7 0 0 0 1.566.938 7.8 7.8 0 0 0 1.529.534 5.5 5.5 0 0 0 1.16.167 10.4 10.4 0 0 0 1.576-.143 6.5 6.5 0 0 0 1.709-.51 4.1 4.1 0 0 0 1.362-1 2.32 2.32 0 0 0 .561-1.6 2.52 2.52 0 0 0-.442-1.544 3.46 3.46 0 0 0-1.195-.986 8.6 8.6 0 0 0-1.721-.653q-.968-.261-2.043-.57a20.2 20.2 0 0 1-4.277-1.6 11 11 0 0 1-2.9-2.149 7.7 7.7 0 0 1-1.661-2.659 9.2 9.2 0 0 1-.526-3.158 7.87 7.87 0 0 1 2.915-6.244 10 10 0 0 1 3.334-1.769 14 14 0 0 1 4.313-.629 13.6 13.6 0 0 1 2.987.3 9.8 9.8 0 0 1 2.438.891 10.3 10.3 0 0 1 2.115 1.5 23 23 0 0 1 2.02 2.112 1.3 1.3 0 0 1 .358.831 1.06 1.06 0 0 1-.478.807q-.358.285-.848.713t-.968.831a10 10 0 0 1-.908.688 1.4 1.4 0 0 1-.716.285 1.37 1.37 0 0 1-1.028-.617 11 11 0 0 0-1.052-1.081 5.5 5.5 0 0 0-1.1-.759 5.3 5.3 0 0 0-1.242-.451 6.5 6.5 0 0 0-1.457-.155 5.2 5.2 0 0 0-1.351.19 4.6 4.6 0 0 0-1.29.57 3.7 3.7 0 0 0-.979.914 1.97 1.97 0 0 0-.395 1.2 1.84 1.84 0 0 0 .489 1.294 4.5 4.5 0 0 0 1.24.926 9 9 0 0 0 1.634.653q.882.262 1.647.475a31 31 0 0 1 4.032 1.425 12.3 12.3 0 0 1 3.161 1.958 8.25 8.25 0 0 1 2.06 2.693 8.4 8.4 0 0 1 .74 3.644 8.45 8.45 0 0 1-3.322 6.909 11.3 11.3 0 0 1-3.7 1.852 16.1 16.1 0 0 1-4.644.641 15 15 0 0 1-3.058-.321 13 13 0 0 1-2.975-1 11.4 11.4 0 0 1-2.625-1.725 9.4 9.4 0 0 1-2.019-2.505 2.1 2.1 0 0 1-.359-1.068.92.92 0 0 1 .156-.534 2.1 2.1 0 0 1 .418-.439l2.677-2.042a1.3 1.3 0 0 1 .646-.214.9.9 0 0 1 .6.226 5 5 0 0 1 .574.6M304.897 52.066a17.1 17.1 0 0 1-4.6 2.8 14.4 14.4 0 0 1-5.484 1.021 15.7 15.7 0 0 1-6.118-1.211 15.97 15.97 0 0 1-8.519-8.274 14.7 14.7 0 0 1-1.279-6.113 15.85 15.85 0 0 1 2.02-7.776 15.4 15.4 0 0 1 2.353-3.158 15 15 0 0 1 3.094-2.457 15.1 15.1 0 0 1 3.7-1.579 15.6 15.6 0 0 1 4.218-.558 14.9 14.9 0 0 1 3.584.439 15.8 15.8 0 0 1 6.333 3.205 14.3 14.3 0 0 1 2.438 2.6 14 14 0 0 1 2.1 4.3 18.3 18.3 0 0 1 .669 5.1 9 9 0 0 1-.06 1.152 1.4 1.4 0 0 1-.3.748 1.38 1.38 0 0 1-.717.415 5.3 5.3 0 0 1-1.338.131h-21.2a8 8 0 0 0 1.183 3.027 9.1 9.1 0 0 0 2.067 2.232 8.7 8.7 0 0 0 2.6 1.377 9 9 0 0 0 2.82.463 9.8 9.8 0 0 0 2.067-.213 11 11 0 0 0 1.852-.57 10.4 10.4 0 0 0 1.589-.819 9.5 9.5 0 0 0 1.279-.961.02.02 0 0 1 .024-.024 3.3 3.3 0 0 1 .549-.415 1.07 1.07 0 0 1 .55-.155 1.1 1.1 0 0 1 .49.143 1.7 1.7 0 0 1 .538.475q.645.784 1.1 1.306t.741.879a3.7 3.7 0 0 1 .418.617 1.16 1.16 0 0 1 .131.522 1.78 1.78 0 0 1-.907 1.329m-10.61-21.415a7.7 7.7 0 0 0-2.748.511 9.2 9.2 0 0 0-2.449 1.389 9.6 9.6 0 0 0-1.935 2.065 8.4 8.4 0 0 0-1.206 2.565h16.918a9.1 9.1 0 0 0-1.16-2.648 8.5 8.5 0 0 0-1.875-2.065 8.3 8.3 0 0 0-2.51-1.342 9.4 9.4 0 0 0-3.034-.475"
11
+ }), /* @__PURE__ */React.createElement("path", {
12
+ fill: "#000320",
13
+ d: "M86.902 54.913a9 9 0 0 1 .305-.975q.172-.447.3-.817l14.299-35.354a1.6 1.6 0 0 1 .437-.646 1.32 1.32 0 0 1 .969-.356h4.269a1.17 1.17 0 0 1 .915.316 3.4 3.4 0 0 1 .411.553l.875 2.055 14 34.806a2 2 0 0 0 .04.277 1.7 1.7 0 0 1 .04.329q0 .79-1.166.79h-5.224a1.5 1.5 0 0 1-.9-.237 1.74 1.74 0 0 1-.531-.738l-.477-1.212q-.5-1.264-1.008-2.53t-.981-2.556H97.112q-.691 1.845-1.339 3.465t-1.1 2.832a1.37 1.37 0 0 1-1.379.974h-5.3a1.55 1.55 0 0 1-.809-.185.6.6 0 0 1-.3-.553.8.8 0 0 1 .026-.237M105.369 26.8q-1.433 3.637-2.851 7.536t-2.851 7.509h11.3Z"
14
+ }), /* @__PURE__ */React.createElement("path", {
15
+ fill: "#000222",
16
+ d: "M73.193 36.36A36.6 36.6 0 1 1 36.6 0a36.48 36.48 0 0 1 36.6 36.36"
17
+ }), /* @__PURE__ */React.createElement("g", {
18
+ "data-name": "Group 117"
19
+ }, /* @__PURE__ */React.createElement("path", {
20
+ fill: "#fff",
21
+ d: "M56.123 23.521v19.556a.745.745 0 0 1-.742.742H39.926a.74.74 0 0 1-.742-.738v-5.236H28.919v16.3a.74.74 0 0 1-.742.737h-1.665a.74.74 0 0 1-.742-.737V16.677a.745.745 0 0 1 .742-.742h1.665a.745.745 0 0 1 .742.742v.35h12.724a.74.74 0 0 1 .742.737v5h12.972a.76.76 0 0 1 .761.756m-3.144 14.325H42.381v2.84h10.593Zm0-3.133v-2.84H42.381l-.005 2.84Zm0-5.974v-2.84H42.385v2.84Zm-13.738-8.583h-3.579V34.71h3.582Zm-6.736 0h-3.581V34.71h3.582Z",
22
+ "data-name": "Group 116"
23
+ }))),
24
+ oneroof: /* @__PURE__ */React.createElement("svg", {
25
+ xmlns: "http://www.w3.org/2000/svg",
26
+ fill: "none",
27
+ viewBox: "0 0 66 12"
28
+ }, /* @__PURE__ */React.createElement("path", {
29
+ fill: "#ff8500",
30
+ d: "M11.784 8.286h-1.53V6.114L6.6 2.83 2.946 6.114v2.172h-1.53V5.429L6.6.743l5.184 4.686zm-10.368 1h10.368v1.543H1.416z"
31
+ }), /* @__PURE__ */React.createElement("path", {
32
+ fill: "#252931",
33
+ d: "M18.384 8.914c1.303 0 2.747-.885 2.747-2.885s-1.416-2.915-2.747-2.915c-1.332 0-2.748.915-2.748 2.915s1.445 2.885 2.748 2.885m0-7.885c2.662 0 4.929 1.971 4.929 5S21.046 11 18.383 11c-2.69 0-4.956-1.971-4.956-5 .028-3 2.294-4.971 4.957-4.971m7.79 9.8h-2.04V4.114h1.983v.772c.368-.629 1.19-.943 1.87-.943 1.67 0 2.435 1.2 2.435 2.686v4.228h-2.04V6.971c0-.657-.34-1.171-1.076-1.171-.68 0-1.104.514-1.104 1.171zm9.574-4.172c-.029-.514-.369-1.143-1.332-1.143a1.29 1.29 0 0 0-1.331 1.143zm1.84 2.229c-.31 1.171-1.387 2.143-3.058 2.143-1.842 0-3.456-1.315-3.456-3.572 0-2.171 1.586-3.543 3.314-3.543 2.068 0 3.343 1.286 3.343 3.457 0 .286-.029.6-.029.629h-4.645c.028.743.736 1.286 1.501 1.286.736 0 1.161-.343 1.331-.886zm4.335-3.457c.878 0 1.331-.486 1.331-1.172 0-.714-.481-1.171-1.331-1.171h-1.247v2.343zm-.51 1.828h-.737v3.572h-2.124V1.257h3.767c1.87 0 3.088 1.286 3.088 3 0 1.286-.708 2.286-1.87 2.714l1.927 3.886H43.14c-.029-.028-1.728-3.6-1.728-3.6"
34
+ }), /* @__PURE__ */React.createElement("path", {
35
+ fill: "#252931",
36
+ d: "M50.42 7.457c0-1.143-.736-1.657-1.5-1.657-.766 0-1.502.543-1.502 1.657s.736 1.686 1.501 1.686 1.502-.543 1.502-1.686m2.04 0c0 2.086-1.53 3.572-3.54 3.572-1.983 0-3.541-1.486-3.541-3.572s1.558-3.543 3.54-3.543c1.983 0 3.541 1.457 3.541 3.543m5.524 0c0-1.143-.737-1.657-1.502-1.657-.764 0-1.5.543-1.5 1.657s.736 1.686 1.5 1.686c.794 0 1.502-.543 1.502-1.686m2.04 0c0 2.086-1.53 3.572-3.542 3.572-1.982 0-3.54-1.486-3.54-3.572s1.558-3.543 3.54-3.543c2.012 0 3.541 1.457 3.541 3.543m3.342-1.628v5h-2.04v-5h-1.048V4.086h1.048v-.572c0-1.543.935-2.6 2.55-2.6.424 0 .793.057.963.143v1.686a2.4 2.4 0 0 0-.595-.057c-.368 0-.878.171-.878.914v.514h1.444v1.743z"
37
+ })),
38
+ realestate: /* @__PURE__ */React.createElement("svg", {
39
+ xmlns: "http://www.w3.org/2000/svg",
40
+ fill: "none",
41
+ viewBox: "0 0 207 32"
42
+ }, /* @__PURE__ */React.createElement("path", {
43
+ fill: "#0098ff",
44
+ d: "M162.473 22.46c-.949 0-1.727-.767-1.727-1.704s.778-1.703 1.727-1.703c.969 0 1.727.767 1.727 1.703 0 .937-.758 1.704-1.727 1.704M169.749 22.51c-2.556 0-4.575-1.873-4.575-4.443 0-2.571 2.019-4.444 4.575-4.444 1.797 0 3.349.987 4.092 2.452l-2.054 1.09c-.346-.783-1.089-1.362-2.038-1.362-1.245 0-2.194.955-2.194 2.264 0 1.312.949 2.264 2.194 2.264.949 0 1.692-.58 2.038-1.363l2.054 1.09c-.743 1.466-2.295 2.452-4.092 2.452M179.325 22.51c-2.502 0-4.54-1.957-4.54-4.443 0-2.487 2.038-4.444 4.54-4.444 2.505 0 4.54 1.957 4.54 4.444s-2.038 4.443-4.54 4.443m0-2.18c1.245 0 2.14-.954 2.14-2.263 0-1.312-.898-2.264-2.14-2.264s-2.159.955-2.159 2.264.915 2.264 2.159 2.264M186.446 22.46c-.949 0-1.727-.767-1.727-1.704s.778-1.703 1.727-1.703a1.71 1.71 0 0 1 1.727 1.703 1.71 1.71 0 0 1-1.727 1.704M189.875 13.808h2.365v.97c.448-.682 1.346-1.158 2.47-1.158 2.089 0 3.334 1.5 3.334 3.71v4.989h-2.365v-4.597c0-1.227-.537-1.976-1.521-1.976-1.089 0-1.918.783-1.918 2.418v4.155h-2.365zM199.717 20.5l4.041-4.581h-3.987v-2.11h7.045v1.837l-4.023 4.563h4.162v2.11h-7.235v-1.82z"
45
+ }), /* @__PURE__ */React.createElement("path", {
46
+ fill: "#020fa6",
47
+ d: "M39.559 22.263V9.637h3.292v2.533s.114-.372.336-.764c.229-.404.569-.83.75-.999a3.43 3.43 0 0 1 2.311-.923 4.2 4.2 0 0 1 1.105.134l.06.016q.248.072.464.169c.235.11.536.263.854.51l-1.353 2.59s-.092-.028-.11-.031a5 5 0 0 0-.766-.17 4.3 4.3 0 0 0-.673-.05c-1.616 0-2.743 1.137-2.943 2.972q-.034.307-.035.614v6.028h-3.292zM55.488 22.545c-4 0-6.795-2.712-6.795-6.598 0-3.76 2.899-6.598 6.74-6.598 3.134 0 6.296 1.92 6.296 6.21 0 .285 0 .604-.038 1.067h-9.83l.02.163c.203 1.685 1.663 2.818 3.632 2.818 1.435 0 2.699-.582 3.416-1.565l2.432 1.788c-1.264 1.728-3.394 2.715-5.873 2.715m-.156-10.566c-1.295 0-2.94.62-3.315 2.365l-.038.178h6.496l-.035-.175c-.298-1.44-1.517-2.368-3.108-2.368M69.32 22.545c-3.312 0-6.007-2.96-6.007-6.598s2.695-6.598 6.006-6.598c1.718 0 3.07.836 3.651 1.67l.273.387V9.634h3.293V22.26h-3.293v-1.772l-.273.389c-.58.832-1.933 1.668-3.65 1.668m.758-10.256c-2 0-3.451 1.541-3.451 3.66s1.45 3.661 3.451 3.661c2 0 3.451-1.54 3.451-3.66s-1.45-3.66-3.45-3.66M82.613 3.456H79.32V22.26h3.293zM91.667 22.545c-4 0-6.794-2.712-6.794-6.598 0-3.76 2.899-6.598 6.74-6.598 3.134 0 6.296 1.92 6.296 6.21 0 .285 0 .604-.038 1.067h-9.83l.02.163c.203 1.685 1.663 2.818 3.632 2.818 1.435 0 2.698-.582 3.416-1.565l2.432 1.788c-1.267 1.728-3.397 2.715-5.874 2.715m-.159-10.566c-1.295 0-2.94.62-3.314 2.365l-.038.178h6.496l-.035-.175c-.299-1.44-1.518-2.368-3.109-2.368M104.607 22.545c-2.301 0-4.14-.818-5.197-2.308l2.232-1.873c.616.896 1.711 1.425 2.969 1.425.965 0 1.59-.423 1.59-1.077 0-.667-.454-1.002-1.863-1.381l-.975-.235c-2.277-.585-3.553-2.039-3.502-3.986.048-2.214 2.013-3.758 4.775-3.758 1.867 0 3.362.69 4.33 1.998l-2.133 1.707c-.613-.705-1.387-1.078-2.248-1.078-.724 0-1.457.351-1.457 1.024 0 .608.444 1.009 1.394 1.253l1.225.36c2.556.673 3.692 1.863 3.692 3.864-.003 2.355-2.035 4.064-4.832 4.064M117.53 22.416c-2.346 0-4.854-1.19-4.854-4.53v-5.443h-2.051V9.637h2.051V6.096h3.292v3.541h3.693v2.806h-3.693v4.747c0 1.64.711 2.342 2.375 2.342.495 0 .93-.056 1.318-.175v2.812c-.581.169-1.261.247-2.131.247M127.032 22.545c-3.311 0-6.007-2.96-6.007-6.598s2.696-6.598 6.007-6.598c1.718 0 3.07.836 3.651 1.67l.273.387V9.634h3.293V22.26h-3.293v-1.772l-.273.389c-.578.832-1.933 1.668-3.651 1.668m.762-10.256c-2 0-3.451 1.541-3.451 3.66s1.451 3.661 3.451 3.661 3.451-1.54 3.451-3.66-1.454-3.66-3.451-3.66M143.177 22.416c-2.346 0-4.855-1.19-4.855-4.53v-5.443h-2.051V9.637h2.051V6.096h3.293v3.541h3.692v2.806h-3.692v4.747c0 1.64.711 2.342 2.375 2.342.495 0 .93-.056 1.317-.175v2.812c-.578.169-1.26.247-2.13.247M153.517 22.545c-4 0-6.794-2.712-6.794-6.598 0-3.76 2.898-6.598 6.74-6.598 3.133 0 6.296 1.92 6.296 6.21 0 .285 0 .604-.039 1.067h-9.829l.019.163c.203 1.685 1.664 2.818 3.632 2.818 1.435 0 2.699-.582 3.416-1.565l2.432 1.788c-1.266 1.728-3.397 2.715-5.873 2.715m-.159-10.566c-1.295 0-2.94.62-3.314 2.365l-.039.178h6.496l-.035-.175c-.298-1.44-1.517-2.368-3.108-2.368M24.646 16.595a8 8 0 0 0 .067-1.02c0-4.995-3.82-8.762-8.886-8.762-5.064 0-8.884 3.767-8.884 8.761q.001.513.064 1.021zM15.826 9.9c2.734 0 4.852 1.607 5.525 3.999H10.299c.676-2.39 2.794-3.999 5.528-3.999M21.707 18.893a6.17 6.17 0 0 1-5.413 3.172 6.18 6.18 0 0 1-5.41-3.172H7.48c1.239 3.633 4.718 6.26 8.814 6.26 3.264 0 6.248-1.666 7.934-4.387z"
48
+ }), /* @__PURE__ */React.createElement("path", {
49
+ fill: "#0098ff",
50
+ d: "M12.204.356v3.087h16.303v19.033c0 3.328-2.746 6.037-6.12 6.037H3.088V18.89H-.04V31.6h22.43c5.102 0 9.252-4.092 9.252-9.125V.357z"
51
+ }), /* @__PURE__ */React.createElement("path", {
52
+ fill: "#020fa6",
53
+ d: "M9.362.356q-.651.001-1.28.088C5.796.807 3.75 2.113 2.983 3.976q-.015.033-.025.065v-3.3H-.039v15.85h3.13V9.626c0-3.41 2.813-6.185 6.27-6.185h.521V.353h-.52z"
54
+ })),
55
+ trademe: /* @__PURE__ */React.createElement("svg", {
56
+ xmlns: "http://www.w3.org/2000/svg",
57
+ fill: "none",
58
+ viewBox: "0 0 90 12"
59
+ }, /* @__PURE__ */React.createElement("path", {
60
+ fill: "#4854d3",
61
+ d: "M5.081 9.31c-.349.174-.836.31-1.223.31-.7 0-1.108-.33-1.108-1.143v-2.69h2.468V3.816h-2.45v-2.3H.106v7.234c0 2.05 1.244 3.115 3.324 3.115.933 0 1.633-.252 2.275-.561L5.083 9.31zm13.394-5.493v.619c-.642-.541-1.476-.85-2.526-.85-2.156 0-3.964 1.683-3.964 4.139s1.808 4.139 3.964 4.139c1.05 0 1.886-.31 2.526-.85v.618h2.586V3.817zm-1.984 5.938c-1.127 0-1.964-.812-1.964-2.03s.817-2.031 1.964-2.031c1.05 0 2.002.833 2.002 2.03-.02 1.219-.953 2.031-2.002 2.031M28.251.141v4.121c-.641-.56-1.476-.87-2.525-.87-2.157 0-3.964 1.72-3.964 4.237 0 2.516 1.807 4.237 3.964 4.237 1.05 0 1.886-.31 2.526-.87v.638h2.586V.141zM26.25 9.697c-1.128 0-1.965-.832-1.965-2.07s.817-2.07 1.965-2.07c1.049 0 2.002.85 2.002 2.07s-.953 2.07-2.002 2.07m13.664-1.972c-.058-2.554-1.866-4.14-4.14-4.14-2.276 0-4.238 1.684-4.238 4.14s1.924 4.139 4.237 4.139c1.75 0 3.168-.735 3.888-2.245l-2.293-.463c-.427.6-1.049.715-1.575.715-.854 0-1.516-.581-1.73-1.51h5.853V7.86zm-5.832-.89c.233-.794.971-1.239 1.691-1.239s1.38.387 1.613 1.238zm-22.099-3.25h-.078c-1.36 0-2.255.697-2.877 1.684V3.7H6.384v8.165h2.662V9.312c0-2.109.99-3.037 2.839-3.057l.096-2.67z"
62
+ }), /* @__PURE__ */React.createElement("path", {
63
+ fill: "#f9af2c",
64
+ d: "M51.403 3.59c-1.303 0-2.294.54-2.956 1.353-.564-.87-1.555-1.354-2.72-1.354-1.07 0-1.886.368-2.468.967V3.82h-2.644v8.009h2.644V7.922c0-1.336.642-2.03 1.593-2.03.797 0 1.418.58 1.418 1.49v4.468h2.645V7.922c0-1.336.642-2.03 1.633-2.03.778 0 1.4.58 1.4 1.49v4.468h2.644V6.82c0-1.935-1.418-3.23-3.188-3.23zm12.264 4.139c-.059-2.554-1.866-4.14-4.141-4.14s-4.238 1.684-4.238 4.14 1.924 4.139 4.238 4.139c1.75 0 3.168-.735 3.888-2.245L61.12 9.16c-.428.6-1.05.715-1.575.715-.855 0-1.517-.581-1.73-1.51h5.85v-.638zm-5.83-.891c.232-.793.97-1.238 1.69-1.238s1.361.387 1.614 1.238z"
65
+ }), /* @__PURE__ */React.createElement("path", {
66
+ fill: "#4854d3",
67
+ d: "M81.211 9.59a7.3 7.3 0 0 0-2.286.005l-.04.006a7.3 7.3 0 0 0-2.202.74c-1.225.553-.374 1.941.587 1.394 1.133-.652 2.358-1.054 3.74-.986.903.066.942-1.058.201-1.16M66.357 11.612a7.2 7.2 0 0 0 1.25-1.906l.016-.036c.314-.71.511-1.466.584-2.239.208-1.323-1.426-1.375-1.492-.276-.073 1.299-.405 2.54-1.222 3.654-.55.715.372 1.364.864.805"
68
+ }), /* @__PURE__ */React.createElement("path", {
69
+ fill: "#f9af2c",
70
+ d: "m89.534 4.525-.022-.006-.324-.073a25 25 0 0 0-1.437-.278q-.31-.05-.648-.098a13 13 0 0 0-.7-.08q-.359-.035-.728-.062a14 14 0 0 0-.728-.034q-.364-.007-.707-.009h-.052c.103.34.13.697.081 1.047h.024c.216-.012.44-.028.667-.033q.343-.009.691-.01.35 0 .693.017.344.016.672.037.328.022.629.055c.2.022.388.041.566.065.349.043.639.088.842.12l.323.052h.008a.37.37 0 0 0 .422-.28.364.364 0 0 0-.264-.432"
71
+ }), /* @__PURE__ */React.createElement("path", {
72
+ fill: "#4854d3",
73
+ d: "M84.188 3.886c-.236-.773-.858-1.417-1.76-1.7-3.452-1.082-8.06-1.243-11.05.08-1.241.552-2.272 1.577-2.678 2.98a4.6 4.6 0 0 0 .111 2.898 4.6 4.6 0 0 0 1.83 2.257 4.645 4.645 0 0 0 5.517-.377c1.475-1.268 2.657-2.653 5.71-2.922 1.226-.11 2.017-.753 2.323-1.806q.053-.179.08-.362a2.4 2.4 0 0 0-.08-1.047"
74
+ }), /* @__PURE__ */React.createElement("path", {
75
+ fill: "#fff",
76
+ d: "M83.204 4.993a1.39 1.39 0 0 1-1.186.994 1.4 1.4 0 0 1-1.376-.71 1.38 1.38 0 0 1 .132-1.537 1.395 1.395 0 0 1 1.477-.467c.356.102.656.341.834.663.179.323.222.703.119 1.057"
77
+ }), /* @__PURE__ */React.createElement("path", {
78
+ fill: "#333",
79
+ d: "M82.682 4.077a.72.72 0 0 0-1.188.43.71.71 0 0 0 .51.79.72.72 0 0 0 .857-.397.7.7 0 0 0 .03-.5.33.33 0 0 1-.407.305.33.33 0 0 1-.252-.263.33.33 0 0 1 .144-.335.33.33 0 0 1 .306-.03"
80
+ }))
81
+ };
82
+ function PartnerLogo(_ref) {
83
+ var name = _ref.name,
84
+ height = _ref.height,
85
+ width = _ref.width;
86
+ return /* @__PURE__ */React.createElement(Box, {
87
+ width: width,
88
+ height: height,
89
+ display: "inline-flex",
90
+ sx: {
91
+ "> svg": {
92
+ width: "inherit",
93
+ height: "inherit",
94
+ fontSize: "inherit",
95
+ maxWidth: "100%",
96
+ maxHeight: "100%"
97
+ }
98
+ }
99
+ }, map[name]);
100
+ }
101
+
102
+ export { PartnerLogo as default };
package/dist/esm/index.js CHANGED
@@ -9,6 +9,7 @@ export { default as BookingTableRowSkeleton } from './components/BookingTableRow
9
9
  export { default as CheckedIcon } from './components/CheckedIcon.js';
10
10
  export { default as DoughnutChart } from './components/doughnut-chart.js';
11
11
  export { default as AnalyticsDoughnutChart } from './components/analytics-doughnut-chart.js';
12
+ export { default as PartnerLogo } from './components/partner-logo.js';
12
13
  export { default as GridList } from './components/GridList.js';
13
14
  export { default as Hidden } from './components/Hidden.js';
14
15
  export { default as IconLabel } from './components/IconLabel.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.5.2",
4
+ "version": "1.5.3",
5
5
  "author": "TPS <https://www.tenancy.co.nz>",
6
6
  "type": "module",
7
7
  "main": "dist/cjs/index.cjs",
@@ -20,14 +20,14 @@
20
20
  "primereact": "3.1.3",
21
21
  "react": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
22
22
  "react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
23
- "@tenancy.nz/ui": "1.5.2"
23
+ "@tenancy.nz/ui": "1.5.3"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@emotion/react": "^11.14.0",
27
27
  "@emotion/styled": "^11.14.1",
28
28
  "@mui/icons-material": "^7.2.0",
29
29
  "@mui/material": "^7.3.1",
30
- "@tenancy.nz/ui": "1.5.2"
30
+ "@tenancy.nz/ui": "1.5.3"
31
31
  },
32
32
  "dependencies": {
33
33
  "react-uid": "^2.4.0"