@nethru/ui 1.0.44 → 1.0.45

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.
@@ -1,11 +1,12 @@
1
+ import { Stack, Typography } from "@mui/material";
1
2
  import MuiAccordionSummary from "@mui/material/AccordionSummary";
2
3
  import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
3
- import { Typography } from "@mui/material";
4
4
  import { jsx as _jsx } from "react/jsx-runtime";
5
- import { Fragment as _Fragment } from "react/jsx-runtime";
6
5
  import { jsxs as _jsxs } from "react/jsx-runtime";
6
+ import { Fragment as _Fragment } from "react/jsx-runtime";
7
7
  export default function AccordionSummary({
8
8
  title,
9
+ desc,
9
10
  children,
10
11
  ...props
11
12
  }) {
@@ -13,8 +14,17 @@ export default function AccordionSummary({
13
14
  children: [title && /*#__PURE__*/_jsx(MuiAccordionSummary, {
14
15
  expandIcon: /*#__PURE__*/_jsx(ExpandMoreIcon, {}),
15
16
  ...props,
16
- children: /*#__PURE__*/_jsx(Typography, {
17
- children: title
17
+ children: /*#__PURE__*/_jsxs(Stack, {
18
+ direction: "row",
19
+ alignItems: "flex-end",
20
+ gap: 1,
21
+ children: [/*#__PURE__*/_jsx(Typography, {
22
+ children: title
23
+ }), desc && /*#__PURE__*/_jsx(Typography, {
24
+ variant: "caption",
25
+ color: "#aaa",
26
+ children: desc
27
+ })]
18
28
  })
19
29
  }), !title && /*#__PURE__*/_jsx(MuiAccordionSummary, {
20
30
  expandIcon: /*#__PURE__*/_jsx(ExpandMoreIcon, {}),
package/dist/TextField.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import MuiTextField from "@mui/material/TextField";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { Fragment as _Fragment } from "react/jsx-runtime";
4
- export default function TextField2({
4
+ export default function TextField({
5
5
  width,
6
6
  fontSize,
7
7
  textAlign,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nethru/ui",
3
- "version": "1.0.44",
3
+ "version": "1.0.45",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "/dist"