bw Input variant

pull/707/head
Anton Mushnin 2022-11-16 17:06:32 +03:00
rodzic 7f373bbbfe
commit fc7e97661f
1 zmienionych plików z 26 dodań i 0 usunięć

Wyświetl plik

@ -21,6 +21,31 @@ const flushedVariant = (props) => {
};
};
const bwVariant = () => {
return {
field: {
border: "1px solid white",
borderRadius: "7px",
color: "white",
backgroundColor: "#1A1D22",
errorBorderColor: "#EE8686",
_hover: {
backgroundColor: "#1A1D22",
},
_focus: {
backgroundColor: "#1A1D22",
},
_placeholder: { color: "#CDCDCD" },
_autofill: {
backgroundColor: "#1A1D22",
textFillColor: "white",
boxShadow: "0 0 0px 1000px #1A1D22 inset",
transition: "background-color 5000s ease-in-out 0s",
},
},
};
};
const outlineVariant = (props) => {
const { colorScheme: c, theme } = props;
const bgColor = transparentize(`${c}.50`, 0.8)(theme);
@ -79,6 +104,7 @@ const Input = {
flushed: flushedVariant,
newTag: newTagVariant,
filled: filledVariant,
bw: bwVariant,
},
defaultProps: {