@tenancy.nz/tenant-ui 1.6.0 → 1.6.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.
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _rollupPluginBabelHelpers = require('../_virtual/_rollupPluginBabelHelpers.cjs');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var Stack = require('@mui/material/Stack');
|
|
8
|
+
var ui = require('@tenancy.nz/ui');
|
|
9
|
+
|
|
10
|
+
function PropertyCardSkeleton(_ref) {
|
|
11
|
+
var _ref$fullHeight = _ref.fullHeight,
|
|
12
|
+
fullHeight = _ref$fullHeight === void 0 ? true : _ref$fullHeight;
|
|
13
|
+
return /* @__PURE__ */React.createElement(Stack, {
|
|
14
|
+
sx: _rollupPluginBabelHelpers.objectSpread2({}, fullHeight && {
|
|
15
|
+
height: "100%"
|
|
16
|
+
})
|
|
17
|
+
}, /* @__PURE__ */React.createElement(ui.Paper, {
|
|
18
|
+
overflow: false,
|
|
19
|
+
sx: _rollupPluginBabelHelpers.objectSpread2({}, fullHeight && {
|
|
20
|
+
height: "100%",
|
|
21
|
+
display: "flex",
|
|
22
|
+
flexDirection: "column"
|
|
23
|
+
})
|
|
24
|
+
}, /* @__PURE__ */React.createElement(ui.Skeleton, {
|
|
25
|
+
width: "100%",
|
|
26
|
+
height: "200px",
|
|
27
|
+
variant: "rectangular"
|
|
28
|
+
}), /* @__PURE__ */React.createElement(Stack, {
|
|
29
|
+
p: 4,
|
|
30
|
+
position: "relative",
|
|
31
|
+
gap: 2,
|
|
32
|
+
flex: 1
|
|
33
|
+
}, /* @__PURE__ */React.createElement(Stack, {
|
|
34
|
+
flexDirection: "row",
|
|
35
|
+
gap: 2,
|
|
36
|
+
alignItems: "center"
|
|
37
|
+
}, /* @__PURE__ */React.createElement(Stack, {
|
|
38
|
+
gap: 1,
|
|
39
|
+
width: "100%"
|
|
40
|
+
}, /* @__PURE__ */React.createElement(ui.Skeleton, {
|
|
41
|
+
variant: "text",
|
|
42
|
+
width: "60%",
|
|
43
|
+
height: 24
|
|
44
|
+
}), /* @__PURE__ */React.createElement(ui.Skeleton, {
|
|
45
|
+
variant: "text",
|
|
46
|
+
width: "50%",
|
|
47
|
+
height: 16
|
|
48
|
+
}))), /* @__PURE__ */React.createElement(Stack, {
|
|
49
|
+
mt: "auto",
|
|
50
|
+
pt: 4
|
|
51
|
+
}, /* @__PURE__ */React.createElement(ui.Skeleton, {
|
|
52
|
+
width: "100%",
|
|
53
|
+
variant: "text",
|
|
54
|
+
height: 40
|
|
55
|
+
})))));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
exports.default = PropertyCardSkeleton;
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -4,6 +4,7 @@ var agencyLogo = require('./components/agency-logo.cjs');
|
|
|
4
4
|
var iconLabel = require('./components/icon-label.cjs');
|
|
5
5
|
var propertyAttributes = require('./components/property-attributes.cjs');
|
|
6
6
|
var propertyCard = require('./components/property-card.cjs');
|
|
7
|
+
var propertyCardSkeleton = require('./components/property-card-skeleton.cjs');
|
|
7
8
|
var rentIconLabel = require('./components/rent-icon-label.cjs');
|
|
8
9
|
|
|
9
10
|
|
|
@@ -12,4 +13,5 @@ exports.AgencyLogo = agencyLogo.default;
|
|
|
12
13
|
exports.IconLabel = iconLabel.default;
|
|
13
14
|
exports.PropertyAttributes = propertyAttributes.default;
|
|
14
15
|
exports.PropertyCard = propertyCard.default;
|
|
16
|
+
exports.PropertyCardSkeleton = propertyCardSkeleton.default;
|
|
15
17
|
exports.RentIconLabel = rentIconLabel.default;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Stack from '@mui/material/Stack';
|
|
4
|
+
import { Paper, Skeleton } from '@tenancy.nz/ui';
|
|
5
|
+
|
|
6
|
+
function PropertyCardSkeleton(_ref) {
|
|
7
|
+
var _ref$fullHeight = _ref.fullHeight,
|
|
8
|
+
fullHeight = _ref$fullHeight === void 0 ? true : _ref$fullHeight;
|
|
9
|
+
return /* @__PURE__ */React.createElement(Stack, {
|
|
10
|
+
sx: _objectSpread2({}, fullHeight && {
|
|
11
|
+
height: "100%"
|
|
12
|
+
})
|
|
13
|
+
}, /* @__PURE__ */React.createElement(Paper, {
|
|
14
|
+
overflow: false,
|
|
15
|
+
sx: _objectSpread2({}, fullHeight && {
|
|
16
|
+
height: "100%",
|
|
17
|
+
display: "flex",
|
|
18
|
+
flexDirection: "column"
|
|
19
|
+
})
|
|
20
|
+
}, /* @__PURE__ */React.createElement(Skeleton, {
|
|
21
|
+
width: "100%",
|
|
22
|
+
height: "200px",
|
|
23
|
+
variant: "rectangular"
|
|
24
|
+
}), /* @__PURE__ */React.createElement(Stack, {
|
|
25
|
+
p: 4,
|
|
26
|
+
position: "relative",
|
|
27
|
+
gap: 2,
|
|
28
|
+
flex: 1
|
|
29
|
+
}, /* @__PURE__ */React.createElement(Stack, {
|
|
30
|
+
flexDirection: "row",
|
|
31
|
+
gap: 2,
|
|
32
|
+
alignItems: "center"
|
|
33
|
+
}, /* @__PURE__ */React.createElement(Stack, {
|
|
34
|
+
gap: 1,
|
|
35
|
+
width: "100%"
|
|
36
|
+
}, /* @__PURE__ */React.createElement(Skeleton, {
|
|
37
|
+
variant: "text",
|
|
38
|
+
width: "60%",
|
|
39
|
+
height: 24
|
|
40
|
+
}), /* @__PURE__ */React.createElement(Skeleton, {
|
|
41
|
+
variant: "text",
|
|
42
|
+
width: "50%",
|
|
43
|
+
height: 16
|
|
44
|
+
}))), /* @__PURE__ */React.createElement(Stack, {
|
|
45
|
+
mt: "auto",
|
|
46
|
+
pt: 4
|
|
47
|
+
}, /* @__PURE__ */React.createElement(Skeleton, {
|
|
48
|
+
width: "100%",
|
|
49
|
+
variant: "text",
|
|
50
|
+
height: 40
|
|
51
|
+
})))));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export { PropertyCardSkeleton as default };
|
package/dist/esm/index.js
CHANGED
|
@@ -2,4 +2,5 @@ export { default as AgencyLogo } from './components/agency-logo.js';
|
|
|
2
2
|
export { default as IconLabel } from './components/icon-label.js';
|
|
3
3
|
export { default as PropertyAttributes } from './components/property-attributes.js';
|
|
4
4
|
export { default as PropertyCard } from './components/property-card.js';
|
|
5
|
+
export { default as PropertyCardSkeleton } from './components/property-card-skeleton.js';
|
|
5
6
|
export { default as RentIconLabel } from './components/rent-icon-label.js';
|
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.6.
|
|
4
|
+
"version": "1.6.1",
|
|
5
5
|
"author": "TPS <https://www.tenancy.co.nz>",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/cjs/index.cjs",
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
"@mui/material": "^7.3.1",
|
|
18
18
|
"react": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
19
19
|
"react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
20
|
-
"@tenancy.nz/ui": "1.6.
|
|
20
|
+
"@tenancy.nz/ui": "1.6.1"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@emotion/react": "^11.14.0",
|
|
24
24
|
"@emotion/styled": "^11.14.1",
|
|
25
25
|
"@mui/icons-material": "^7.2.0",
|
|
26
26
|
"@mui/material": "^7.3.1",
|
|
27
|
-
"@tenancy.nz/ui": "1.6.
|
|
27
|
+
"@tenancy.nz/ui": "1.6.1"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"react-uid": "^2.4.0"
|