@tenancy.nz/feature-ui 1.7.4 → 1.7.6
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.
|
@@ -7,7 +7,7 @@ var React = require('react');
|
|
|
7
7
|
var Stack = require('@mui/material/Stack');
|
|
8
8
|
var ui = require('@tenancy.nz/ui');
|
|
9
9
|
|
|
10
|
-
var _excluded = ["width", "minWidth", "maxWidth", "height", "border", "label", "amount", "text", "sx"];
|
|
10
|
+
var _excluded = ["width", "minWidth", "maxWidth", "height", "border", "label", "amount", "text", "invert", "sx"];
|
|
11
11
|
function AnalyticsBox(_ref) {
|
|
12
12
|
var width = _ref.width,
|
|
13
13
|
minWidth = _ref.minWidth,
|
|
@@ -17,6 +17,8 @@ function AnalyticsBox(_ref) {
|
|
|
17
17
|
label = _ref.label,
|
|
18
18
|
amount = _ref.amount,
|
|
19
19
|
text = _ref.text,
|
|
20
|
+
_ref$invert = _ref.invert,
|
|
21
|
+
invert = _ref$invert === void 0 ? false : _ref$invert,
|
|
20
22
|
_ref$sx = _ref.sx,
|
|
21
23
|
sx = _ref$sx === void 0 ? {} : _ref$sx,
|
|
22
24
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
@@ -36,18 +38,20 @@ function AnalyticsBox(_ref) {
|
|
|
36
38
|
}), sx)
|
|
37
39
|
}), /* @__PURE__ */React.createElement(Stack, {
|
|
38
40
|
color: "text.primary"
|
|
41
|
+
}, /* @__PURE__ */React.createElement(Stack, {
|
|
42
|
+
gap: 2,
|
|
43
|
+
direction: invert ? "column-reverse" : "column"
|
|
39
44
|
}, /* @__PURE__ */React.createElement(ui.Heading, {
|
|
40
45
|
align: "center",
|
|
41
46
|
weight: "700",
|
|
42
47
|
as: "h3",
|
|
43
|
-
color: "primary"
|
|
44
|
-
gutterBottom: true
|
|
48
|
+
color: "primary"
|
|
45
49
|
}, amount), /* @__PURE__ */React.createElement(ui.Text, {
|
|
46
50
|
align: "center",
|
|
47
51
|
weight: "500",
|
|
48
52
|
variant: "body2",
|
|
49
53
|
color: "primary"
|
|
50
|
-
}, label), text && /* @__PURE__ */React.createElement(ui.Text, {
|
|
54
|
+
}, label)), text && /* @__PURE__ */React.createElement(ui.Text, {
|
|
51
55
|
align: "center",
|
|
52
56
|
weight: "400",
|
|
53
57
|
color: "primary",
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import Stack from '@mui/material/Stack';
|
|
4
4
|
import { Paper, Heading, Text } from '@tenancy.nz/ui';
|
|
5
5
|
|
|
6
|
-
var _excluded = ["width", "minWidth", "maxWidth", "height", "border", "label", "amount", "text", "sx"];
|
|
6
|
+
var _excluded = ["width", "minWidth", "maxWidth", "height", "border", "label", "amount", "text", "invert", "sx"];
|
|
7
7
|
function AnalyticsBox(_ref) {
|
|
8
8
|
var width = _ref.width,
|
|
9
9
|
minWidth = _ref.minWidth,
|
|
@@ -13,6 +13,8 @@ function AnalyticsBox(_ref) {
|
|
|
13
13
|
label = _ref.label,
|
|
14
14
|
amount = _ref.amount,
|
|
15
15
|
text = _ref.text,
|
|
16
|
+
_ref$invert = _ref.invert,
|
|
17
|
+
invert = _ref$invert === void 0 ? false : _ref$invert,
|
|
16
18
|
_ref$sx = _ref.sx,
|
|
17
19
|
sx = _ref$sx === void 0 ? {} : _ref$sx,
|
|
18
20
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -32,18 +34,20 @@ function AnalyticsBox(_ref) {
|
|
|
32
34
|
}), sx)
|
|
33
35
|
}), /* @__PURE__ */React.createElement(Stack, {
|
|
34
36
|
color: "text.primary"
|
|
37
|
+
}, /* @__PURE__ */React.createElement(Stack, {
|
|
38
|
+
gap: 2,
|
|
39
|
+
direction: invert ? "column-reverse" : "column"
|
|
35
40
|
}, /* @__PURE__ */React.createElement(Heading, {
|
|
36
41
|
align: "center",
|
|
37
42
|
weight: "700",
|
|
38
43
|
as: "h3",
|
|
39
|
-
color: "primary"
|
|
40
|
-
gutterBottom: true
|
|
44
|
+
color: "primary"
|
|
41
45
|
}, amount), /* @__PURE__ */React.createElement(Text, {
|
|
42
46
|
align: "center",
|
|
43
47
|
weight: "500",
|
|
44
48
|
variant: "body2",
|
|
45
49
|
color: "primary"
|
|
46
|
-
}, label), text && /* @__PURE__ */React.createElement(Text, {
|
|
50
|
+
}, label)), text && /* @__PURE__ */React.createElement(Text, {
|
|
47
51
|
align: "center",
|
|
48
52
|
weight: "400",
|
|
49
53
|
color: "primary",
|
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.7.
|
|
4
|
+
"version": "1.7.6",
|
|
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.7.
|
|
23
|
+
"@tenancy.nz/ui": "1.7.6"
|
|
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.7.
|
|
30
|
+
"@tenancy.nz/ui": "1.7.6"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"react-uid": "^2.4.0"
|