@tenancy.nz/feature-ui 1.10.8 → 1.10.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.
|
@@ -0,0 +1,26 @@
|
|
|
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 ui = require('@tenancy.nz/ui');
|
|
8
|
+
|
|
9
|
+
var _excluded = ["children", "loading", "variant"];
|
|
10
|
+
function SkeletonContent(_ref) {
|
|
11
|
+
var _ref$children = _ref.children,
|
|
12
|
+
children = _ref$children === void 0 ? null : _ref$children,
|
|
13
|
+
_ref$loading = _ref.loading,
|
|
14
|
+
loading = _ref$loading === void 0 ? false : _ref$loading,
|
|
15
|
+
_ref$variant = _ref.variant,
|
|
16
|
+
variant = _ref$variant === void 0 ? "text" : _ref$variant,
|
|
17
|
+
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
18
|
+
if (loading) {
|
|
19
|
+
return /* @__PURE__ */React.createElement(ui.Skeleton, _rollupPluginBabelHelpers.objectSpread2({
|
|
20
|
+
variant: variant
|
|
21
|
+
}, rest));
|
|
22
|
+
}
|
|
23
|
+
return children;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
exports.default = SkeletonContent;
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -28,6 +28,7 @@ var PersonDetailHeader = require('./components/PersonDetailHeader.cjs');
|
|
|
28
28
|
var PropertyCard = require('./components/PropertyCard.cjs');
|
|
29
29
|
var ScrollTopButton = require('./components/ScrollTopButton.cjs');
|
|
30
30
|
var StatusButton = require('./components/StatusButton.cjs');
|
|
31
|
+
var SkeletonContent = require('./components/SkeletonContent.cjs');
|
|
31
32
|
var TenantAvatarGroup = require('./components/TenantAvatarGroup.cjs');
|
|
32
33
|
|
|
33
34
|
|
|
@@ -60,4 +61,5 @@ exports.PersonDetailHeader = PersonDetailHeader.default;
|
|
|
60
61
|
exports.PropertyCard = PropertyCard.default;
|
|
61
62
|
exports.ScrollTopButton = ScrollTopButton.default;
|
|
62
63
|
exports.StatusButton = StatusButton.default;
|
|
64
|
+
exports.SkeletonContent = SkeletonContent.default;
|
|
63
65
|
exports.TenantAvatarGroup = TenantAvatarGroup.default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Skeleton } from '@tenancy.nz/ui';
|
|
4
|
+
|
|
5
|
+
var _excluded = ["children", "loading", "variant"];
|
|
6
|
+
function SkeletonContent(_ref) {
|
|
7
|
+
var _ref$children = _ref.children,
|
|
8
|
+
children = _ref$children === void 0 ? null : _ref$children,
|
|
9
|
+
_ref$loading = _ref.loading,
|
|
10
|
+
loading = _ref$loading === void 0 ? false : _ref$loading,
|
|
11
|
+
_ref$variant = _ref.variant,
|
|
12
|
+
variant = _ref$variant === void 0 ? "text" : _ref$variant,
|
|
13
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
14
|
+
if (loading) {
|
|
15
|
+
return /* @__PURE__ */React.createElement(Skeleton, _objectSpread2({
|
|
16
|
+
variant: variant
|
|
17
|
+
}, rest));
|
|
18
|
+
}
|
|
19
|
+
return children;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { SkeletonContent as default };
|
package/dist/esm/index.js
CHANGED
|
@@ -26,4 +26,5 @@ export { default as PersonDetailHeader } from './components/PersonDetailHeader.j
|
|
|
26
26
|
export { default as PropertyCard } from './components/PropertyCard.js';
|
|
27
27
|
export { default as ScrollTopButton } from './components/ScrollTopButton.js';
|
|
28
28
|
export { default as StatusButton } from './components/StatusButton.js';
|
|
29
|
+
export { default as SkeletonContent } from './components/SkeletonContent.js';
|
|
29
30
|
export { default as TenantAvatarGroup } from './components/TenantAvatarGroup.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.10.
|
|
4
|
+
"version": "1.10.9",
|
|
5
5
|
"author": "TPS <https://www.tenancy.co.nz>",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/cjs/index.cjs",
|
|
@@ -17,15 +17,15 @@
|
|
|
17
17
|
"classnames": "^2.2.6",
|
|
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/
|
|
21
|
-
"@tenancy.nz/
|
|
20
|
+
"@tenancy.nz/icons": "1.10.9",
|
|
21
|
+
"@tenancy.nz/ui": "1.10.9"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@emotion/react": "^11.14.0",
|
|
25
25
|
"@emotion/styled": "^11.14.1",
|
|
26
26
|
"@mui/material": "^7.3.1",
|
|
27
|
-
"@tenancy.nz/icons": "1.10.
|
|
28
|
-
"@tenancy.nz/ui": "1.10.
|
|
27
|
+
"@tenancy.nz/icons": "1.10.9",
|
|
28
|
+
"@tenancy.nz/ui": "1.10.9"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"react-uid": "^2.4.0"
|