@nethru/ui 2.0.7 → 2.0.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.
@@ -8,6 +8,7 @@ const ColumnedSection = /*#__PURE__*/forwardRef(({
8
8
  contents = [],
9
9
  spacing = 5,
10
10
  breakpoints,
11
+ showBox = true,
11
12
  ...props
12
13
  }, ref) => {
13
14
  const arrangedBreakpoints = useMemo(() => {
@@ -35,7 +36,7 @@ const ColumnedSection = /*#__PURE__*/forwardRef(({
35
36
  item: true,
36
37
  ...arrangedBreakpoints,
37
38
  children: [labels[index], /*#__PURE__*/_jsx(Box, {
38
- className: "MuiGrid-box",
39
+ className: showBox ? 'MuiGrid-box' : undefined,
39
40
  children: content
40
41
  })]
41
42
  }, index))
@@ -0,0 +1,14 @@
1
+ import React, { forwardRef } from "react";
2
+ import { Typography } from "@mui/material";
3
+ import { jsx as _jsx } from "react/jsx-runtime";
4
+ const FormContent = /*#__PURE__*/forwardRef(({
5
+ children,
6
+ ...props
7
+ }, ref) => {
8
+ return /*#__PURE__*/_jsx(Typography, {
9
+ ref: ref,
10
+ variant: "bodyXlMedium",
11
+ children: children
12
+ });
13
+ });
14
+ export default FormContent;
@@ -0,0 +1,22 @@
1
+ import React, { forwardRef } from "react";
2
+ import { IconButton, Tooltip } from "@mui/material";
3
+ import InfoOutlinedIcon from "@mui/icons-material/InfoOutlined";
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ const HelpTooltipIcon = /*#__PURE__*/forwardRef(({
6
+ tooltip,
7
+ onClick,
8
+ ...props
9
+ }, ref) => {
10
+ return /*#__PURE__*/_jsx(Tooltip, {
11
+ ref: ref,
12
+ title: tooltip,
13
+ children: /*#__PURE__*/_jsx(IconButton, {
14
+ size: "small",
15
+ onClick: onClick,
16
+ children: /*#__PURE__*/_jsx(InfoOutlinedIcon, {
17
+ fontSize: "inherit"
18
+ })
19
+ })
20
+ });
21
+ });
22
+ export default HelpTooltipIcon;
@@ -0,0 +1,30 @@
1
+ import React, { forwardRef } from "react";
2
+ import { Box, Stack } from "@mui/material";
3
+ import { jsx as _jsx } from "react/jsx-runtime";
4
+ import { jsxs as _jsxs } from "react/jsx-runtime";
5
+ const LabelContentFormList = /*#__PURE__*/forwardRef(({
6
+ hgap = 3,
7
+ vgap = 6,
8
+ labelWidth = 130,
9
+ children,
10
+ ...props
11
+ }, ref) => {
12
+ return /*#__PURE__*/_jsx(Stack, {
13
+ ref: ref,
14
+ gap: vgap,
15
+ ...props,
16
+ children: children.map((form, index) => /*#__PURE__*/_jsxs(Stack, {
17
+ direction: "row",
18
+ alignItems: "center",
19
+ gap: hgap,
20
+ children: [/*#__PURE__*/_jsx(Box, {
21
+ sx: {
22
+ width: labelWidth,
23
+ wordBreak: 'break-all'
24
+ },
25
+ children: form[0]
26
+ }), form[1]]
27
+ }, index))
28
+ });
29
+ });
30
+ export default LabelContentFormList;
@@ -0,0 +1,14 @@
1
+ import React, { forwardRef } from "react";
2
+ import { Typography } from "@mui/material";
3
+ import { jsx as _jsx } from "react/jsx-runtime";
4
+ const SectionLabel = /*#__PURE__*/forwardRef(({
5
+ children,
6
+ ...props
7
+ }, ref) => {
8
+ return /*#__PURE__*/_jsx(Typography, {
9
+ ref: ref,
10
+ variant: "bodyLgSemibold",
11
+ children: children
12
+ });
13
+ });
14
+ export default SectionLabel;
@@ -54,7 +54,8 @@ export default function Editor({
54
54
  borderRight: `1px solid ${grey[300]}`
55
55
  },
56
56
  '.cm-content': {
57
- ...typography.code
57
+ ...typography.code,
58
+ backgroundColor: '#fff'
58
59
  },
59
60
  '.cm-content.cm-lineWrapping': {
60
61
  wordBreak: 'break-all'
package/base/index.js CHANGED
@@ -18,15 +18,19 @@ export { default as DataGrid } from "./datagrid/DataGrid";
18
18
  export { default as Dialog } from "./dialog/Dialog";
19
19
  export { default as DropdownButton } from "./DropdownButton";
20
20
  export { default as Editor } from "./editor/Editor";
21
+ export { default as FormContent } from "./FormContent";
21
22
  export { default as Frame } from "./frame/Frame";
23
+ export { default as HelpTooltipIcon } from "./HelpTooltipIcon";
24
+ export { default as LabelContentFormList } from "./LabelContentFormList";
22
25
  export { default as MainHeader } from "./MainHeader";
23
26
  export { default as MenuItem } from "./MenuItem";
24
27
  export { default as PropertyTable } from "./PropertyTable";
25
28
  export { default as Radio } from "./Radio";
26
29
  export { default as SearchableSelect } from "./SearchableSelect";
27
30
  export { default as SearchTextField } from "./SearchTextField";
28
- export { default as Sidebar } from "./frame/sidebar/Sidebar";
31
+ export { default as SectionLabel } from "./SectionLabel";
29
32
  export { default as Select } from "./Select";
33
+ export { default as Sidebar } from "./frame/sidebar/Sidebar";
30
34
  export { default as Slider } from "./Slider";
31
35
  export { default as Snackbar } from "./Snackbar";
32
36
  export { default as Switch } from "./Switch";
@@ -17,6 +17,8 @@ import * as select from "./mui/select";
17
17
  import * as autocomplete from "./mui/autocomplete";
18
18
  import * as textField from "./mui/textField";
19
19
  import * as formControl from "./mui/formControl";
20
+ import * as formControlLabel from "./mui/formControlLabel";
21
+ import * as formLabel from "./mui/formLabel";
20
22
  import * as outlinedInput from "./mui/outlinedInput";
21
23
  import * as formHelperText from "./mui/formHelperText";
22
24
  import * as inputLabel from "./mui/inputLabel";
@@ -24,7 +26,6 @@ import * as popover from "./mui/popover";
24
26
  import * as paper from "./mui/paper";
25
27
  import * as list from "./mui/list";
26
28
  import * as menuItem from "./mui/menuItem";
27
- import * as formControlLabel from "./mui/formControlLabel";
28
29
  import * as chip from "./mui/chip";
29
30
  import * as slider from "./mui/slider";
30
31
  import * as tabs from "./mui/tabs";
@@ -68,6 +69,7 @@ export default function createTheme() {
68
69
  MuiTextField: textField.styles,
69
70
  MuiFormControl: formControl.styles,
70
71
  MuiFormControlLabel: formControlLabel.styles,
72
+ MuiFormLabel: formLabel.styles,
71
73
  MuiInputLabel: inputLabel.styles,
72
74
  MuiOutlinedInput: outlinedInput.styles,
73
75
  MuiFormHelperText: formHelperText.styles,
@@ -0,0 +1,12 @@
1
+ import typography from "../typography";
2
+ export const styles = {
3
+ styleOverrides: {
4
+ root: {
5
+ fontFamily: typography.fontFamily,
6
+ ...typography.bodyMdMedium,
7
+ '&.MuiFormLabel-colorPrimary': {
8
+ ...typography.bodyMdMedium
9
+ }
10
+ }
11
+ }
12
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nethru/ui",
3
- "version": "2.0.7",
3
+ "version": "2.0.9",
4
4
  "main": "base/index.js",
5
5
  "files": [
6
6
  "/base"