=> {
return ISDCodeOptions.map((item: ISDCodeProps) => {
return {
@@ -80,11 +87,11 @@ export default function ISDCodeDropdown(props: ISDCodeDropdownProps) {
className="t--input-country-code-change"
disabled={props.disabled}
>
-
+
{selectedCountry.value && countryToFlag(selectedCountry.value)}
-
-
+
{selectedCountry.id && selectedCountry.id}
+
);
if (props.disabled) {
@@ -93,12 +100,12 @@ export default function ISDCodeDropdown(props: ISDCodeDropdownProps) {
return (
(
.currency-type-filter,
.country-type-filter {
width: fit-content;
- height: 32px;
+ height: 36px;
position: absolute;
display: inline-block;
left: 0;
@@ -94,8 +90,12 @@ const InputComponentWrapper = styled((props) => (
fill: ${(props) => props.theme.colors.icon?.hover};
}
}
+ &:hover {
+ border: 1px solid ${Colors.GREY_5} !important;
+ }
}
.${Classes.INPUT} {
+ min-height: 36px;
${(props) =>
props.inputType === InputTypes.CURRENCY &&
props.allowCurrencyChange &&
@@ -107,11 +107,13 @@ const InputComponentWrapper = styled((props) => (
`
padding-left: 35px;`};
${(props) =>
- props.inputType === InputTypes.PHONE_NUMBER && `padding-left: 85px;`};
+ props.inputType === InputTypes.PHONE_NUMBER &&
+ `padding-left: 85px;
+ `};
box-shadow: none;
border: 1px solid;
border-color: ${({ hasError }) =>
- hasError ? IntentColors.danger : Colors.GEYSER_LIGHT};
+ hasError ? `${Colors.DANGER_SOLID} !important;` : `${Colors.GREY_3};`}
border-radius: 0;
height: ${(props) => (props.multiline === "true" ? "100%" : "inherit")};
width: 100%;
@@ -120,22 +122,56 @@ const InputComponentWrapper = styled((props) => (
`
border-top-right-radius: 0px;
border-bottom-right-radius: 0px;
- border-right-width: 0px;
+ ${props.hasError ? "" : "border-right-width: 0px;"}
+ `}
+ ${(props) =>
+ props.inputType === "PASSWORD" &&
+ `
+ & + .bp3-input-action {
+ height: 36px;
+ width: 36px;
+ cursor: pointer;
+ padding: 1px;
+ .password-input {
+ color: ${Colors.GREY_6};
+ justify-content: center;
+ height: 100%;
+ svg {
+ width: 20px;
+ height: 20px;
+ }
+ &:hover {
+ background-color: ${Colors.GREY_2};
+ color: ${Colors.GREY_10};
+ }
+ }
+ }
`}
transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
&:active {
border-color: ${({ hasError }) =>
- hasError ? IntentColors.danger : Colors.HIT_GRAY};
+ hasError ? Colors.DANGER_SOLID : Colors.HIT_GRAY};
+ }
+ &:hover {
+ border-left: 1px solid ${Colors.GREY_5};
+ border-right: 1px solid ${Colors.GREY_5};
+ border-color: ${Colors.GREY_5};
}
&:focus {
border-color: ${({ hasError }) =>
- hasError ? IntentColors.danger : Colors.MYSTIC};
+ hasError ? Colors.DANGER_SOLID : Colors.MYSTIC};
&:focus {
- border: ${(props) => getBorderCSSShorthand(props.theme.borders[2])};
- border-color: #80bdff;
outline: 0;
- box-shadow: 0 0 0 0.1rem rgba(0, 123, 255, 0.25);
+ border: 1px solid ${Colors.GREEN_1};
+ box-shadow: 0px 0px 0px 2px ${Colors.GREEN_2} !important;
+ }
+ }
+ &:disabled {
+ background-color: ${Colors.GREY_1};
+ border: 1.2px solid ${Colors.GREY_3};
+ & + .bp3-input-action {
+ pointer-events: none;
}
}
}
@@ -146,6 +182,12 @@ const InputComponentWrapper = styled((props) => (
background-color: transparent;
color: #5c7080;
}
+ &.${Classes.DISABLED} + .bp3-button-group.bp3-vertical {
+ pointer-events: none;
+ button {
+ background: ${Colors.GREY_1};
+ }
+ }
}
.${Classes.CONTROL_GROUP} {
justify-content: flex-start;
@@ -178,17 +220,46 @@ const StyledNumericInput = styled(NumericInput)`
&:first-child:not(input) {
position: static;
background: ${(props) =>
- props.disabled ? Colors.INPUT_DISABLED : "#fff"};
- color: ${(props) =>
- props.disabled ? Colors.INPUT_TEXT_DISABLED : "#000"};
- border: 1px solid #e7e7e7;
+ props.disabled ? Colors.GREY_1 : Colors.WHITE};
+ border: 1.2px solid ${Colors.GREY_3};
border-right: 0;
}
input:not(:first-child) {
padding-left: 5px;
- border-left: 0;
+ border-left: 1px solid transparent;
z-index: 16;
line-height: 16px;
+
+ &:hover:not(:focus) {
+ border-left: 1px solid ${Colors.GREY_5};
+ }
+ }
+ }
+ }
+ &&&& .bp3-button-group.bp3-vertical {
+ border: 1.2px solid ${Colors.GREY_3};
+ border-left: none;
+ button {
+ background: ${Colors.WHITE};
+ box-shadow: none;
+ min-width: 24px;
+ width: 24px;
+ border-radius: 0;
+ &:hover {
+ background: ${Colors.GREY_2};
+ span {
+ color: ${Colors.GREY_10};
+ }
+ }
+ &:focus {
+ border: 1px solid ${Colors.GREEN_1};
+ box-shadow: 0px 0px 0px 2px ${Colors.GREEN_2};
+ }
+ span {
+ color: ${Colors.GREY_6};
+ svg {
+ width: 14px;
+ }
}
}
}
@@ -437,8 +508,9 @@ class InputComponent extends React.Component<
placeholder={this.props.placeholder}
rightElement={
this.props.inputType === "PASSWORD" ? (
-