@etsoo/materialui 1.6.29 → 1.6.30

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.
@@ -65,7 +65,7 @@ function NumberSpinner({ id: idProp, label, error, size = "medium", ...other })
65
65
  color: "text.primary"
66
66
  }
67
67
  }
68
- }, children: props.children })), children: [(0, jsx_runtime_1.jsxs)(number_field_1.NumberField.ScrubArea, { render: (0, jsx_runtime_1.jsx)(Box_1.default, { component: "span", sx: { userSelect: "none", width: "max-content" } }), children: [(0, jsx_runtime_1.jsx)(FormLabel_1.default, { htmlFor: id, sx: {
68
+ }, children: props.children })), children: [(0, jsx_runtime_1.jsxs)(number_field_1.NumberField.ScrubArea, { render: (0, jsx_runtime_1.jsx)(Box_1.default, { component: "span", sx: { userSelect: "none", width: "max-content" } }), children: [label != null && ((0, jsx_runtime_1.jsx)(FormLabel_1.default, { htmlFor: id, sx: {
69
69
  display: "inline-block",
70
70
  cursor: "ew-resize",
71
71
  fontSize: "0.875rem",
@@ -73,7 +73,7 @@ function NumberSpinner({ id: idProp, label, error, size = "medium", ...other })
73
73
  fontWeight: 500,
74
74
  lineHeight: 1.5,
75
75
  mb: 0.5
76
- }, children: label }), (0, jsx_runtime_1.jsx)(number_field_1.NumberField.ScrubAreaCursor, { children: (0, jsx_runtime_1.jsx)(OpenInFull_1.default, { fontSize: "small", sx: { transform: "translateY(12.5%) rotate(45deg)" } }) })] }), (0, jsx_runtime_1.jsxs)(Box_1.default, { sx: { display: "flex" }, children: [(0, jsx_runtime_1.jsx)(number_field_1.NumberField.Decrement, { render: (0, jsx_runtime_1.jsx)(Button_1.default, { variant: "outlined", "aria-label": "Decrease", size: size, sx: {
76
+ }, children: label })), (0, jsx_runtime_1.jsx)(number_field_1.NumberField.ScrubAreaCursor, { children: (0, jsx_runtime_1.jsx)(OpenInFull_1.default, { fontSize: "small", sx: { transform: "translateY(12.5%) rotate(45deg)" } }) })] }), (0, jsx_runtime_1.jsxs)(Box_1.default, { sx: { display: "flex" }, children: [(0, jsx_runtime_1.jsx)(number_field_1.NumberField.Decrement, { render: (0, jsx_runtime_1.jsx)(Button_1.default, { variant: "outlined", "aria-label": "Decrease", size: size, sx: {
77
77
  borderTopRightRadius: 0,
78
78
  borderBottomRightRadius: 0,
79
79
  borderRight: "0px",
@@ -26,7 +26,7 @@ export function NumberSpinner({ id: idProp, label, error, size = "medium", ...ot
26
26
  color: "text.primary"
27
27
  }
28
28
  }
29
- }, children: props.children })), children: [_jsxs(BaseNumberField.ScrubArea, { render: _jsx(Box, { component: "span", sx: { userSelect: "none", width: "max-content" } }), children: [_jsx(FormLabel, { htmlFor: id, sx: {
29
+ }, children: props.children })), children: [_jsxs(BaseNumberField.ScrubArea, { render: _jsx(Box, { component: "span", sx: { userSelect: "none", width: "max-content" } }), children: [label != null && (_jsx(FormLabel, { htmlFor: id, sx: {
30
30
  display: "inline-block",
31
31
  cursor: "ew-resize",
32
32
  fontSize: "0.875rem",
@@ -34,7 +34,7 @@ export function NumberSpinner({ id: idProp, label, error, size = "medium", ...ot
34
34
  fontWeight: 500,
35
35
  lineHeight: 1.5,
36
36
  mb: 0.5
37
- }, children: label }), _jsx(BaseNumberField.ScrubAreaCursor, { children: _jsx(OpenInFullIcon, { fontSize: "small", sx: { transform: "translateY(12.5%) rotate(45deg)" } }) })] }), _jsxs(Box, { sx: { display: "flex" }, children: [_jsx(BaseNumberField.Decrement, { render: _jsx(Button, { variant: "outlined", "aria-label": "Decrease", size: size, sx: {
37
+ }, children: label })), _jsx(BaseNumberField.ScrubAreaCursor, { children: _jsx(OpenInFullIcon, { fontSize: "small", sx: { transform: "translateY(12.5%) rotate(45deg)" } }) })] }), _jsxs(Box, { sx: { display: "flex" }, children: [_jsx(BaseNumberField.Decrement, { render: _jsx(Button, { variant: "outlined", "aria-label": "Decrease", size: size, sx: {
38
38
  borderTopRightRadius: 0,
39
39
  borderBottomRightRadius: 0,
40
40
  borderRight: "0px",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/materialui",
3
- "version": "1.6.29",
3
+ "version": "1.6.30",
4
4
  "description": "TypeScript Material-UI Implementation",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -61,20 +61,22 @@ export function NumberSpinner({
61
61
  />
62
62
  }
63
63
  >
64
- <FormLabel
65
- htmlFor={id}
66
- sx={{
67
- display: "inline-block",
68
- cursor: "ew-resize",
69
- fontSize: "0.875rem",
70
- color: "text.primary",
71
- fontWeight: 500,
72
- lineHeight: 1.5,
73
- mb: 0.5
74
- }}
75
- >
76
- {label}
77
- </FormLabel>
64
+ {label != null && (
65
+ <FormLabel
66
+ htmlFor={id}
67
+ sx={{
68
+ display: "inline-block",
69
+ cursor: "ew-resize",
70
+ fontSize: "0.875rem",
71
+ color: "text.primary",
72
+ fontWeight: 500,
73
+ lineHeight: 1.5,
74
+ mb: 0.5
75
+ }}
76
+ >
77
+ {label}
78
+ </FormLabel>
79
+ )}
78
80
  <BaseNumberField.ScrubAreaCursor>
79
81
  <OpenInFullIcon
80
82
  fontSize="small"