@tenancy.nz/tenant-ui 1.9.0 → 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/icon-label.cjs +2 -2
- package/dist/cjs/components/property-attributes.cjs +6 -1
- package/dist/cjs/components/property-card.cjs +1 -2
- package/dist/cjs/components/rent-icon-label.cjs +2 -1
- package/dist/esm/components/icon-label.js +2 -2
- package/dist/esm/components/property-attributes.js +6 -1
- package/dist/esm/components/property-card.js +1 -2
- package/dist/esm/components/rent-icon-label.js +2 -1
- package/package.json +5 -5
|
@@ -21,12 +21,12 @@ function IconLabel(_ref) {
|
|
|
21
21
|
return /* @__PURE__ */React.createElement(Stack, _rollupPluginBabelHelpers.objectSpread2({
|
|
22
22
|
flexDirection: "row",
|
|
23
23
|
alignItems: "center",
|
|
24
|
-
gap:
|
|
24
|
+
gap: 2,
|
|
25
25
|
fontSize: size
|
|
26
26
|
}, sx), icon, /* @__PURE__ */React.createElement(ui.Text, {
|
|
27
27
|
as: "span",
|
|
28
28
|
variant: "inherit",
|
|
29
|
-
weight: "
|
|
29
|
+
weight: "700"
|
|
30
30
|
}, text));
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -9,6 +9,7 @@ var ui = require('@tenancy.nz/ui');
|
|
|
9
9
|
var BedIcon = require('@tenancy.nz/icons/Bed');
|
|
10
10
|
var BathIcon = require('@tenancy.nz/icons/Bath');
|
|
11
11
|
var CarParkedIcon = require('@tenancy.nz/icons/CarParked');
|
|
12
|
+
var HomeIcon = require('@tenancy.nz/icons/Home');
|
|
12
13
|
var iconLabel = require('./icon-label.cjs');
|
|
13
14
|
|
|
14
15
|
function PropertyAttributes(_ref) {
|
|
@@ -66,7 +67,11 @@ function PropertyAttributes(_ref) {
|
|
|
66
67
|
item: true
|
|
67
68
|
}, /* @__PURE__ */React.createElement(iconLabel.default, _rollupPluginBabelHelpers.objectSpread2({
|
|
68
69
|
color: "tertiary",
|
|
69
|
-
icon:
|
|
70
|
+
icon: /* @__PURE__ */React.createElement(ui.Box, {
|
|
71
|
+
sx: iconBoxStyles
|
|
72
|
+
}, /* @__PURE__ */React.createElement(HomeIcon, {
|
|
73
|
+
size: "inherit"
|
|
74
|
+
})),
|
|
70
75
|
text: type
|
|
71
76
|
}, labelProps))), !!noOfBedrooms && /* @__PURE__ */React.createElement(ui.Grid, {
|
|
72
77
|
item: true
|
|
@@ -117,8 +117,7 @@ function PropertyCard(_ref) {
|
|
|
117
117
|
}, /* @__PURE__ */React.createElement(propertyAttributes.default, {
|
|
118
118
|
noOfBedrooms: bedrooms,
|
|
119
119
|
noOfBathrooms: bathrooms,
|
|
120
|
-
noOfCarparks: parkingSpaces
|
|
121
|
-
iconSize: "20px"
|
|
120
|
+
noOfCarparks: parkingSpaces
|
|
122
121
|
}), rent && /* @__PURE__ */React.createElement(rentIconLabel.default, {
|
|
123
122
|
text: rent,
|
|
124
123
|
sx: {
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _rollupPluginBabelHelpers = require('../_virtual/_rollupPluginBabelHelpers.cjs');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var DollarCircleIcon = require('@tenancy.nz/icons/DollarCircle');
|
|
8
|
+
var ui = require('@tenancy.nz/ui');
|
|
8
9
|
var iconLabel = require('./icon-label.cjs');
|
|
9
10
|
|
|
10
11
|
var _excluded = ["text"];
|
|
@@ -13,7 +14,7 @@ function RentIconLabel(_ref) {
|
|
|
13
14
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
14
15
|
return /* @__PURE__ */React.createElement(iconLabel.default, _rollupPluginBabelHelpers.objectSpread2({
|
|
15
16
|
icon: /* @__PURE__ */React.createElement(DollarCircleIcon, {
|
|
16
|
-
color: "
|
|
17
|
+
color: ui.token("palette.semantic.icons.accentColor")
|
|
17
18
|
}),
|
|
18
19
|
text: text
|
|
19
20
|
}, rest));
|
|
@@ -17,12 +17,12 @@ function IconLabel(_ref) {
|
|
|
17
17
|
return /* @__PURE__ */React.createElement(Stack, _objectSpread2({
|
|
18
18
|
flexDirection: "row",
|
|
19
19
|
alignItems: "center",
|
|
20
|
-
gap:
|
|
20
|
+
gap: 2,
|
|
21
21
|
fontSize: size
|
|
22
22
|
}, sx), icon, /* @__PURE__ */React.createElement(Text, {
|
|
23
23
|
as: "span",
|
|
24
24
|
variant: "inherit",
|
|
25
|
-
weight: "
|
|
25
|
+
weight: "700"
|
|
26
26
|
}, text));
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -5,6 +5,7 @@ import { Heading, Text, Grid, Box } from '@tenancy.nz/ui';
|
|
|
5
5
|
import BedIcon from '@tenancy.nz/icons/Bed';
|
|
6
6
|
import BathIcon from '@tenancy.nz/icons/Bath';
|
|
7
7
|
import CarParkedIcon from '@tenancy.nz/icons/CarParked';
|
|
8
|
+
import HomeIcon from '@tenancy.nz/icons/Home';
|
|
8
9
|
import IconLabel from './icon-label.js';
|
|
9
10
|
|
|
10
11
|
function PropertyAttributes(_ref) {
|
|
@@ -62,7 +63,11 @@ function PropertyAttributes(_ref) {
|
|
|
62
63
|
item: true
|
|
63
64
|
}, /* @__PURE__ */React.createElement(IconLabel, _objectSpread2({
|
|
64
65
|
color: "tertiary",
|
|
65
|
-
icon:
|
|
66
|
+
icon: /* @__PURE__ */React.createElement(Box, {
|
|
67
|
+
sx: iconBoxStyles
|
|
68
|
+
}, /* @__PURE__ */React.createElement(HomeIcon, {
|
|
69
|
+
size: "inherit"
|
|
70
|
+
})),
|
|
66
71
|
text: type
|
|
67
72
|
}, labelProps))), !!noOfBedrooms && /* @__PURE__ */React.createElement(Grid, {
|
|
68
73
|
item: true
|
|
@@ -113,8 +113,7 @@ function PropertyCard(_ref) {
|
|
|
113
113
|
}, /* @__PURE__ */React.createElement(PropertyAttributes, {
|
|
114
114
|
noOfBedrooms: bedrooms,
|
|
115
115
|
noOfBathrooms: bathrooms,
|
|
116
|
-
noOfCarparks: parkingSpaces
|
|
117
|
-
iconSize: "20px"
|
|
116
|
+
noOfCarparks: parkingSpaces
|
|
118
117
|
}), rent && /* @__PURE__ */React.createElement(RentIconLabel, {
|
|
119
118
|
text: rent,
|
|
120
119
|
sx: {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import DollarCircleIcon from '@tenancy.nz/icons/DollarCircle';
|
|
4
|
+
import { token } from '@tenancy.nz/ui';
|
|
4
5
|
import IconLabel from './icon-label.js';
|
|
5
6
|
|
|
6
7
|
var _excluded = ["text"];
|
|
@@ -9,7 +10,7 @@ function RentIconLabel(_ref) {
|
|
|
9
10
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
10
11
|
return /* @__PURE__ */React.createElement(IconLabel, _objectSpread2({
|
|
11
12
|
icon: /* @__PURE__ */React.createElement(DollarCircleIcon, {
|
|
12
|
-
color: "
|
|
13
|
+
color: token("palette.semantic.icons.accentColor")
|
|
13
14
|
}),
|
|
14
15
|
text: text
|
|
15
16
|
}, rest));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tenancy.nz/tenant-ui",
|
|
3
3
|
"description": "React UI tenant components.",
|
|
4
|
-
"version": "1.9.
|
|
4
|
+
"version": "1.9.1",
|
|
5
5
|
"author": "TPS <https://www.tenancy.co.nz>",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/cjs/index.cjs",
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
"@mui/material": "^7.3.1",
|
|
17
17
|
"react": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
18
18
|
"react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
19
|
-
"@tenancy.nz/icons": "1.9.
|
|
20
|
-
"@tenancy.nz/ui": "1.9.
|
|
19
|
+
"@tenancy.nz/icons": "1.9.1",
|
|
20
|
+
"@tenancy.nz/ui": "1.9.1"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@emotion/react": "^11.14.0",
|
|
24
24
|
"@emotion/styled": "^11.14.1",
|
|
25
25
|
"@mui/material": "^7.3.1",
|
|
26
|
-
"@tenancy.nz/icons": "1.9.
|
|
27
|
-
"@tenancy.nz/ui": "1.9.
|
|
26
|
+
"@tenancy.nz/icons": "1.9.1",
|
|
27
|
+
"@tenancy.nz/ui": "1.9.1"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"react-uid": "^2.4.0"
|