@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.
- package/lib/cjs/NumberSpinner.js +2 -2
- package/lib/mjs/NumberSpinner.js +2 -2
- package/package.json +1 -1
- package/src/NumberSpinner.tsx +16 -14
package/lib/cjs/NumberSpinner.js
CHANGED
|
@@ -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",
|
package/lib/mjs/NumberSpinner.js
CHANGED
|
@@ -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
package/src/NumberSpinner.tsx
CHANGED
|
@@ -61,20 +61,22 @@ export function NumberSpinner({
|
|
|
61
61
|
/>
|
|
62
62
|
}
|
|
63
63
|
>
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
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"
|