@nethru/ui 1.0.0 → 1.0.2
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/FormLabel.js +2 -1
- package/dist/ListItemText.js +10 -3
- package/package.json +1 -1
package/dist/FormLabel.js
CHANGED
|
@@ -8,7 +8,8 @@ export default function FormLabel({
|
|
|
8
8
|
}) {
|
|
9
9
|
const styles = {
|
|
10
10
|
color: value ? 'rgba(0, 0, 0, 0.87)' : 'rgba(0, 0, 0, 0.6)',
|
|
11
|
-
fontSize: value ? 16 : 14
|
|
11
|
+
fontSize: value ? 16 : 14,
|
|
12
|
+
fontWeight: value ? 600 : 400
|
|
12
13
|
};
|
|
13
14
|
return /*#__PURE__*/_jsx(MuiFormLabel, {
|
|
14
15
|
sx: styles,
|
package/dist/ListItemText.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useState } from "react";
|
|
2
|
+
import { Box, Stack, Tooltip, Typography } from "@mui/material";
|
|
2
3
|
import MuiListItemText from "@mui/material/ListItemText";
|
|
3
4
|
import HelpIcon from "@mui/icons-material/Help";
|
|
4
|
-
import { useState } from "react";
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
6
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
7
|
export default function ListItemText({
|
|
@@ -12,11 +12,17 @@ export default function ListItemText({
|
|
|
12
12
|
}) {
|
|
13
13
|
const [hover, setHover] = useState(false);
|
|
14
14
|
return /*#__PURE__*/_jsx(MuiListItemText, {
|
|
15
|
-
primary:
|
|
15
|
+
primary: /*#__PURE__*/_jsx(Typography, {
|
|
16
|
+
fontSize: 17,
|
|
17
|
+
fontWeight: 600,
|
|
18
|
+
children: primary
|
|
19
|
+
}),
|
|
16
20
|
secondary: /*#__PURE__*/_jsxs(Stack, {
|
|
17
21
|
direction: "row",
|
|
18
22
|
spacing: 0.5,
|
|
19
23
|
children: [/*#__PURE__*/_jsx(Box, {
|
|
24
|
+
color: "rgba(0, 0, 0, 0.6)",
|
|
25
|
+
fontSize: 14,
|
|
20
26
|
children: secondary
|
|
21
27
|
}), /*#__PURE__*/_jsx(Tooltip, {
|
|
22
28
|
title: tooltip,
|
|
@@ -28,6 +34,7 @@ export default function ListItemText({
|
|
|
28
34
|
})
|
|
29
35
|
})]
|
|
30
36
|
}),
|
|
37
|
+
disableTypography: true,
|
|
31
38
|
onMouseEnter: _ => setHover(true),
|
|
32
39
|
onMouseLeave: _ => setHover(false),
|
|
33
40
|
...props
|