tek-wallet 0.0.233 → 0.0.235
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,10 @@
|
|
|
1
|
-
import { TextFieldProps } from "@mui/material";
|
|
2
|
-
interface InputProps {
|
|
3
|
-
className?: string;
|
|
1
|
+
import { TextFieldProps, BoxProps, SxProps } from "@mui/material";
|
|
2
|
+
interface InputProps extends BoxProps {
|
|
4
3
|
inputRest?: TextFieldProps;
|
|
5
|
-
inputStyles?: React.CSSProperties;
|
|
6
4
|
leftPart?: React.ReactNode;
|
|
7
5
|
rightPart?: React.ReactNode;
|
|
6
|
+
inputSx?: SxProps;
|
|
8
7
|
}
|
|
9
8
|
export type InputRef = HTMLInputElement;
|
|
10
|
-
declare const Input: import("react").ForwardRefExoticComponent<InputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
9
|
+
declare const Input: import("react").ForwardRefExoticComponent<Omit<InputProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
11
10
|
export default Input;
|
|
@@ -26,12 +26,22 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
26
26
|
var material_1 = require("@mui/material");
|
|
27
27
|
var react_1 = require("react");
|
|
28
28
|
var Input = (0, react_1.forwardRef)(function (props, inputRef) {
|
|
29
|
-
var inputRest = props.inputRest,
|
|
29
|
+
var inputRest = props.inputRest, leftPart = props.leftPart, rightPart = props.rightPart, sx = props.sx, inputSx = props.inputSx, rest = __rest(props, ["inputRest", "leftPart", "rightPart", "sx", "inputSx"]);
|
|
30
30
|
var theme = (0, material_1.useTheme)();
|
|
31
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ ref: inputRef, sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g12, borderRadius: theme.mixins.theBorderRadius.r12, px: theme.mixins.customPadding.p16, backgroundColor: "background.white16", border: "1px solid ".concat(theme.palette.border.white24), backdropFilter: "blur(10px)" }) }, rest, { children: [leftPart, (0, jsx_runtime_1.jsx)(material_1.TextField, __assign({}, inputRest, { variant: "outlined", sx: __assign({ backgroundColor: "transparent", border: "none", outline: "none",
|
|
31
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ ref: inputRef, sx: __assign(__assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g12, borderRadius: theme.mixins.theBorderRadius.r12, px: theme.mixins.customPadding.p16, backgroundColor: "background.white16", border: "1px solid ".concat(theme.palette.border.white24), backdropFilter: "blur(10px)" }), sx) }, rest, { children: [leftPart, (0, jsx_runtime_1.jsx)(material_1.TextField, __assign({}, inputRest, { variant: "outlined", sx: __assign({ backgroundColor: "transparent", border: "none", outline: "none", flex: 1, height: "fit-content", minHeight: "unset", "& .MuiInputBase-input": {
|
|
32
|
+
border: "none",
|
|
33
|
+
outline: "none",
|
|
34
|
+
color: theme.palette.text.white,
|
|
35
|
+
fontSize: theme.typography.fontSize16,
|
|
36
|
+
lineHeight: theme.typography.leading140,
|
|
37
|
+
fontWeight: theme.typography.fontWeight400,
|
|
38
|
+
height: "fit-content",
|
|
39
|
+
minHeight: "unset",
|
|
40
|
+
}, "& .MuiInputBase-input::placeholder": {
|
|
32
41
|
color: theme.palette.text.white64,
|
|
33
42
|
fontSize: theme.typography.fontSize14,
|
|
34
|
-
|
|
43
|
+
p: theme.mixins.customPadding.p12,
|
|
44
|
+
} }, inputSx) })), rightPart] })));
|
|
35
45
|
});
|
|
36
46
|
Input.displayName = "Input";
|
|
37
47
|
exports.default = Input;
|
package/dist/theme/mui/theme.js
CHANGED
|
@@ -226,6 +226,12 @@ var theme = (0, styles_1.createTheme)({
|
|
|
226
226
|
smallButton: {
|
|
227
227
|
fontSize: typography.fontSize11,
|
|
228
228
|
padding: "".concat(customPadding.p8, " ").concat(customPadding.p4),
|
|
229
|
+
height: "fit-content",
|
|
230
|
+
minHeight: "unset",
|
|
231
|
+
minWidth: "unset",
|
|
232
|
+
width: "fit-content",
|
|
233
|
+
borderRadius: theBorderRadius.full,
|
|
234
|
+
lineHeight: typography.leading100,
|
|
229
235
|
},
|
|
230
236
|
},
|
|
231
237
|
});
|