1641 lines
31 KiB
JavaScript
1641 lines
31 KiB
JavaScript
import globalColors from "../utils/globalColors";
|
|
|
|
const {
|
|
black,
|
|
white,
|
|
whiteSolitude,
|
|
grayLight,
|
|
grayLightMid,
|
|
grayMid,
|
|
graySilver,
|
|
gray,
|
|
grayMain,
|
|
shuttleGrey,
|
|
|
|
blueMain,
|
|
blueHover,
|
|
blueActive,
|
|
blueDisabled,
|
|
blueCharcoal,
|
|
|
|
orangeMain,
|
|
orangeHover,
|
|
orangePressed,
|
|
orangeDisabled,
|
|
|
|
link,
|
|
errorColor,
|
|
warningColor,
|
|
red,
|
|
blueLightMid,
|
|
grayMaxLight,
|
|
cyanBlueDarkShade,
|
|
lightCumulus,
|
|
lightMediumGoldenrod,
|
|
activeSuccess,
|
|
activeError,
|
|
activeInfo,
|
|
activeWarning,
|
|
hoverSuccess,
|
|
hoverError,
|
|
hoverInfo,
|
|
hoverWarning,
|
|
darkBlack,
|
|
silver,
|
|
strongBlue,
|
|
lightGrayishStrongBlue,
|
|
darkRed,
|
|
} = globalColors;
|
|
|
|
const Base = {
|
|
color: black,
|
|
backgroundColor: white,
|
|
fontFamily: "Open Sans, sans-serif, Arial",
|
|
fontSize: "13px",
|
|
|
|
text: {
|
|
color: black,
|
|
disableColor: gray,
|
|
fontWeight: "normal",
|
|
fontWeightBold: "bold",
|
|
},
|
|
|
|
heading: {
|
|
fontSize: {
|
|
xlarge: "27px",
|
|
large: "23px",
|
|
medium: "21px",
|
|
small: "19px",
|
|
xsmall: "15px",
|
|
},
|
|
|
|
fontWeight: 600,
|
|
},
|
|
|
|
button: {
|
|
fontWeight: "600",
|
|
margin: "0",
|
|
display: "inline-block",
|
|
textAlign: "center",
|
|
textDecoration: "none",
|
|
|
|
topVerticalAlign: "text-top",
|
|
middleVerticalAlign: "middle",
|
|
bottomVerticalAlign: "text-bottom",
|
|
|
|
borderRadius: "3px",
|
|
stroke: "none",
|
|
overflow: "hidden",
|
|
textOverflow: "ellipsis",
|
|
whiteSpace: "nowrap",
|
|
outline: "none",
|
|
boxSizing: "border-box",
|
|
|
|
paddingRight: "4px",
|
|
|
|
height: {
|
|
extraSmall: "24px",
|
|
small: "32px",
|
|
normalDesktop: "36px",
|
|
normalTouchscreen: "40px",
|
|
medium: "44px",
|
|
},
|
|
|
|
lineHeight: {
|
|
extraSmall: "15px",
|
|
small: "20px",
|
|
normalDesktop: "16px",
|
|
normalTouchscreen: "16px",
|
|
medium: "22px",
|
|
},
|
|
|
|
fontSize: {
|
|
extraSmall: "12px",
|
|
small: "13px",
|
|
normalDesktop: "14px",
|
|
normalTouchscreen: "14px",
|
|
medium: "16px",
|
|
},
|
|
|
|
padding: {
|
|
extraSmall: "0 12px",
|
|
small: "0 28px",
|
|
normalDesktop: "0 28px",
|
|
normalTouchscreen: "0 28px",
|
|
medium: "0 32px",
|
|
},
|
|
|
|
minWidth: {
|
|
extraSmall: "none",
|
|
small: "100px",
|
|
normalDesktop: "100px",
|
|
normalTouchscreen: "100px",
|
|
medium: "100px",
|
|
},
|
|
|
|
color: {
|
|
base: black,
|
|
primary: white,
|
|
disabled: grayLightMid,
|
|
},
|
|
|
|
backgroundColor: {
|
|
base: white,
|
|
baseHover: white,
|
|
baseActive: grayLightMid,
|
|
baseDisabled: grayLight,
|
|
primary: blueMain,
|
|
primaryHover: blueHover,
|
|
primaryActive: blueActive,
|
|
primaryDisabled: blueDisabled,
|
|
},
|
|
|
|
border: {
|
|
base: `1px solid ${globalColors.grayMid}`,
|
|
baseHover: `1px solid ${globalColors.blueMain}`,
|
|
baseActive: `1px solid ${globalColors.blueMain}`,
|
|
baseDisabled: `1px solid ${globalColors.grayLightMid}`,
|
|
primary: `1px solid ${globalColors.blueMain}`,
|
|
primaryHover: `1px solid ${globalColors.blueHover}`,
|
|
primaryActive: `1px solid ${globalColors.blueActive}`,
|
|
primaryDisabled: `1px solid ${globalColors.blueDisabled}`,
|
|
},
|
|
},
|
|
|
|
helpButton: {
|
|
width: "100%",
|
|
backgroundColor: white,
|
|
maxWidth: "500px",
|
|
margin: "0",
|
|
lineHeight: "56px",
|
|
fontWeight: "700",
|
|
borderBottom: `1px solid ${globalColors.lightGrayishBlue}`,
|
|
padding: "0 16px 16px",
|
|
bodyPadding: "16px 0",
|
|
},
|
|
|
|
mainButtonMobile: {
|
|
dropDown: {
|
|
right: "15%",
|
|
bottom: "15%",
|
|
width: "400px",
|
|
},
|
|
|
|
dropDownItem: {
|
|
padding: "10px",
|
|
},
|
|
},
|
|
|
|
mainButton: {
|
|
backgroundColor: orangeMain,
|
|
disableBackgroundColor: orangeDisabled,
|
|
hoverBackgroundColor: orangeHover,
|
|
clickBackgroundColor: orangePressed,
|
|
|
|
padding: "5px 10px",
|
|
borderRadius: "3px",
|
|
lineHeight: "22px",
|
|
fontSize: "15px",
|
|
fontWeight: 700,
|
|
textColor: "#FFF",
|
|
|
|
cornerRoundsTopRight: "0",
|
|
cornerRoundsBottomRight: "0",
|
|
|
|
svg: {
|
|
margin: "auto",
|
|
height: "100%",
|
|
},
|
|
|
|
secondaryButton: {
|
|
height: "32px",
|
|
padding: "0",
|
|
borderRadius: "3px",
|
|
cornerRoundsTopLeft: "0",
|
|
cornerRoundsBottomLeft: "0",
|
|
},
|
|
|
|
dropDown: {
|
|
top: "100%",
|
|
},
|
|
|
|
arrowDropdown: {
|
|
borderLeft: "4px solid transparent",
|
|
borderRight: "4px solid transparent",
|
|
borderTop: "4px solid white",
|
|
right: "10px",
|
|
top: "50%",
|
|
width: "0",
|
|
height: "0",
|
|
marginTop: " -1px",
|
|
},
|
|
},
|
|
|
|
socialButton: {
|
|
fontWeight: "600",
|
|
textDecoration: "none",
|
|
padding: "0",
|
|
borderRadius: "2px",
|
|
height: "40px",
|
|
textAlign: "left",
|
|
stroke: " none",
|
|
outline: "none",
|
|
width: "100%",
|
|
|
|
background: white,
|
|
disableBackgroundColor: "rgba(0, 0, 0, 0.08)",
|
|
hoverBackground: white,
|
|
activeBackground: grayMaxLight,
|
|
|
|
boxShadow:
|
|
"0px 1px 1px rgba(0, 0, 0, 0.24),0px 0px 1px rgba(0, 0, 0, 0.12)",
|
|
hoverBoxShadow:
|
|
"0px 2px 2px rgba(0, 0, 0, 0.24),0px 0px 2px rgba(0, 0, 0, 0.12)",
|
|
|
|
color: "rgba(0, 0, 0, 0.54)",
|
|
disableColor: "rgba(0, 0, 0, 0.4)",
|
|
|
|
text: {
|
|
width: "100%",
|
|
height: "16px",
|
|
margin: "0 11px",
|
|
fontWeight: "600",
|
|
fontSize: "14px",
|
|
lineHeight: "14px",
|
|
letterSpacing: "0.21875px",
|
|
overflow: "hidden",
|
|
textOverflow: "ellipsis",
|
|
whiteSpace: "nowrap",
|
|
color: "#757575",
|
|
},
|
|
|
|
svg: {
|
|
margin: "11px",
|
|
width: "18px",
|
|
height: "18px",
|
|
minWidth: "18px",
|
|
minHeight: "18px",
|
|
},
|
|
},
|
|
|
|
groupButton: {
|
|
fontSize: "14px",
|
|
lineHeight: "19px",
|
|
color: black,
|
|
disableColor: gray,
|
|
float: "left",
|
|
height: "19px",
|
|
overflow: "hidden",
|
|
padding: "0px",
|
|
|
|
separator: {
|
|
border: `1px solid ${globalColors.grayLightMid}`,
|
|
width: "0px",
|
|
height: "24px",
|
|
margin: "16px 12px 0 12px",
|
|
},
|
|
|
|
checkbox: {
|
|
margin: "16px 0 16px 24px",
|
|
tabletMargin: "auto 0 auto 16px",
|
|
},
|
|
},
|
|
|
|
groupButtonsMenu: {
|
|
top: "0",
|
|
background: white,
|
|
boxShadow: " 0px 10px 18px -8px rgba(0, 0, 0, 0.100306)",
|
|
height: "48px",
|
|
tabletHeight: "56px",
|
|
padding: "0 18px 19px 0",
|
|
width: "100%",
|
|
zIndex: "189",
|
|
marginTop: "1px",
|
|
|
|
closeButton: {
|
|
right: "11px",
|
|
top: "6px",
|
|
tabletTop: "10px",
|
|
width: "20px",
|
|
height: "20px",
|
|
padding: "8px",
|
|
hoverBackgroundColor: cyanBlueDarkShade,
|
|
backgroundColor: grayMid,
|
|
},
|
|
},
|
|
|
|
iconButton: {},
|
|
selectorAddButton: {
|
|
background: grayLight,
|
|
activeBackground: grayLightMid,
|
|
|
|
border: `1px solid ${globalColors.grayLightMid}`,
|
|
boxSizing: "border-box",
|
|
borderRadius: "3px",
|
|
height: " 34px",
|
|
width: "34px",
|
|
padding: "9px",
|
|
color: black,
|
|
},
|
|
|
|
saveCancelButtons: {
|
|
bottom: "0",
|
|
width: "100%",
|
|
left: "0",
|
|
padding: "8px 24px 8px 16px",
|
|
marginRight: "8px",
|
|
|
|
unsavedColor: gray,
|
|
},
|
|
|
|
selectedItem: {
|
|
background: grayLight,
|
|
border: `1px solid ${globalColors.grayLightMid}`,
|
|
borderRadius: "3px",
|
|
|
|
textBox: {
|
|
padding: "0 8px",
|
|
height: "32px",
|
|
alignItems: "center",
|
|
borderRight: `1px solid ${globalColors.grayLightMid}`,
|
|
},
|
|
|
|
closeButton: {
|
|
alignItems: "center",
|
|
padding: "0 8px",
|
|
colorHover: cyanBlueDarkShade,
|
|
backgroundColor: grayLightMid,
|
|
},
|
|
},
|
|
|
|
checkbox: {
|
|
fillColor: white,
|
|
borderColor: grayMid,
|
|
arrowColor: black,
|
|
indeterminateColor: black,
|
|
|
|
disableArrowColor: grayMid,
|
|
disableBorderColor: grayLightMid,
|
|
disableFillColor: grayLight,
|
|
disableIndeterminateColor: gray,
|
|
|
|
hoverBorderColor: gray,
|
|
hoverIndeterminateColor: black,
|
|
},
|
|
|
|
// slider: {
|
|
// sliderBarColorProgress: blueMain,
|
|
// sliderBarColorProgressDisabled: grayMid,
|
|
// sliderBarColor: grayLightMid,
|
|
// sliderBarDisableColor: grayLightMid,
|
|
|
|
// sliderBarBorderActive: `1px solid ${globalColors.grayMid}`,
|
|
// sliderBarBorderDisable: `1px solid ${globalColors.grayMid}`,
|
|
|
|
// thumbFillDisable: grayLightMid,
|
|
// thumbFillActive: grayLightMid,
|
|
|
|
// thumbBorderColorActive: `1px solid ${globalColors.gray}`,
|
|
// thumbBorderColorDisable: `1px solid ${globalColors.grayMid}`,
|
|
|
|
// sliderWidth: "202px",
|
|
|
|
// arrowHover: blueMain,
|
|
// arrowColor: grayMid,
|
|
// },
|
|
|
|
viewSelector: {
|
|
fillColor: white,
|
|
checkedFillColor: gray,
|
|
fillColorDisabled: grayLight,
|
|
disabledFillColor: grayLightMid,
|
|
disabledFillColorInner: grayMid,
|
|
hoverBorderColor: gray,
|
|
borderColor: grayMid,
|
|
},
|
|
|
|
radioButton: {
|
|
textColor: black,
|
|
textDisableColor: gray,
|
|
disableColor: grayLight,
|
|
marginRight: "4px",
|
|
|
|
fillColor: black,
|
|
borderColor: grayMid,
|
|
|
|
disableFillColor: grayMid,
|
|
disableBorderColor: grayLightMid,
|
|
|
|
hoverBorderColor: gray,
|
|
},
|
|
|
|
requestLoader: {
|
|
backgroundColor: white,
|
|
border: `1px solid ${globalColors.veryLightGrey}`,
|
|
overflow: "hidden",
|
|
padding: "5px 10px",
|
|
lineHeight: "16px",
|
|
borderRadius: "5px",
|
|
boxShadow: "0 2px 8px rgba(0, 0, 0, 0.3)",
|
|
|
|
marginRight: "10px",
|
|
top: "10px",
|
|
width: "100%",
|
|
},
|
|
|
|
row: {
|
|
minHeight: "47px",
|
|
width: "100%",
|
|
borderBottom: globalColors.grayLightMid,
|
|
minWidth: "160px",
|
|
overflow: "hidden",
|
|
textOverflow: "ellipsis",
|
|
|
|
element: {
|
|
marginRight: "14px",
|
|
marginLeft: "2px",
|
|
},
|
|
|
|
optionButton: {
|
|
padding: "8px 0px 9px 7px",
|
|
},
|
|
},
|
|
|
|
rowContent: {
|
|
icons: {
|
|
height: "19px",
|
|
},
|
|
|
|
margin: "0 6px",
|
|
fontSize: "12px",
|
|
fontStyle: "normal",
|
|
fontWeight: "600",
|
|
height: "56px",
|
|
maxWidth: " 100%",
|
|
|
|
sideInfo: {
|
|
minWidth: "160px",
|
|
margin: "0 6px",
|
|
overflow: "hidden",
|
|
textOverflow: "ellipsis",
|
|
},
|
|
|
|
mainWrapper: {
|
|
minWidth: "140px",
|
|
marginRight: "8px",
|
|
marginTop: "8px",
|
|
width: "95%",
|
|
},
|
|
},
|
|
|
|
badge: {
|
|
border: "1px solid transparent",
|
|
padding: "1px",
|
|
lineHeight: "0.8",
|
|
overflow: "hidden",
|
|
},
|
|
|
|
scrollbar: {
|
|
backgroundColorVertical: "rgba(208, 213, 218, 1)",
|
|
backgroundColorHorizontal: "rgba(0, 0, 0, 0.1)",
|
|
hoverBackgroundColorVertical: "rgba(163, 169, 174, 1)",
|
|
},
|
|
|
|
modalDialog: {
|
|
width: "auto",
|
|
maxwidth: "560px",
|
|
margin: " 0 auto",
|
|
minHeight: "100%",
|
|
|
|
content: {
|
|
backgroundColor: white,
|
|
modalPadding: "0 12px 12px",
|
|
modalBorderRadius: "6px",
|
|
asidePadding: "0 16px 16px",
|
|
heading: {
|
|
maxWidth: "500px",
|
|
margin: "0",
|
|
modalLineHeight: "40px",
|
|
asideLineHeight: "56px",
|
|
fontWeight: "700",
|
|
asideFontSize: "21px",
|
|
modalFontSize: "18px",
|
|
},
|
|
},
|
|
|
|
header: {
|
|
borderBottom: `1px solid ${globalColors.lightGrayishBlue}`,
|
|
},
|
|
|
|
closeButton: {
|
|
width: "14px",
|
|
height: "14px",
|
|
minWidth: "14px",
|
|
minHeight: "14px",
|
|
|
|
right: "16px",
|
|
top: "13px",
|
|
hoverColor: grayMain,
|
|
},
|
|
},
|
|
|
|
paging: {
|
|
button: {
|
|
marginRight: "8px",
|
|
maxWidth: "110px",
|
|
padding: "6px 8px 10px",
|
|
},
|
|
|
|
page: {
|
|
marginRight: "8px",
|
|
width: "110%",
|
|
},
|
|
|
|
comboBox: {
|
|
marginLeft: "auto",
|
|
marginRight: "0px",
|
|
},
|
|
},
|
|
|
|
input: {
|
|
color: black,
|
|
disableColor: grayMid,
|
|
|
|
backgroundColor: white,
|
|
disableBackgroundColor: grayLight,
|
|
|
|
width: {
|
|
base: "173px",
|
|
middle: "300px",
|
|
big: "350px",
|
|
huge: "500px",
|
|
large: "550px",
|
|
},
|
|
|
|
borderRadius: "3px",
|
|
boxShadow: "none",
|
|
boxSizing: "border-box",
|
|
border: "solid 1px",
|
|
|
|
borderColor: grayMid,
|
|
errorBorderColor: red,
|
|
warningBorderColor: warningColor,
|
|
disabledBorderColor: grayLightMid,
|
|
|
|
hoverBorderColor: gray,
|
|
hoverErrorBorderColor: red,
|
|
hoverWarningBorderColor: warningColor,
|
|
hoverDisabledBorderColor: grayLightMid,
|
|
|
|
focusBorderColor: blueMain,
|
|
focusErrorBorderColor: red,
|
|
focusWarningBorderColor: warningColor,
|
|
focusDisabledBorderColor: grayLightMid,
|
|
},
|
|
|
|
fileInput: {
|
|
width: {
|
|
base: "173px",
|
|
middle: "300px",
|
|
big: "350px",
|
|
huge: "500px",
|
|
large: "550px",
|
|
},
|
|
|
|
paddingRight: {
|
|
base: "37px",
|
|
middle: "48px",
|
|
big: "53px",
|
|
huge: "58px",
|
|
large: "64px",
|
|
},
|
|
|
|
icon: {
|
|
border: "1px solid",
|
|
borderRadius: "0 3px 3px 0",
|
|
|
|
width: {
|
|
base: "30px",
|
|
middle: "36px",
|
|
big: "37px",
|
|
huge: "38px",
|
|
large: "48px",
|
|
},
|
|
|
|
height: {
|
|
base: "30px",
|
|
middle: "36px",
|
|
big: "36px",
|
|
huge: "37px",
|
|
large: "43px",
|
|
},
|
|
},
|
|
},
|
|
|
|
passwordInput: {
|
|
disableColor: grayMid,
|
|
color: gray,
|
|
|
|
hoverColor: gray,
|
|
|
|
lineHeight: "32px",
|
|
|
|
text: {
|
|
lineHeight: "14px",
|
|
marginTop: "-2px",
|
|
},
|
|
|
|
link: {
|
|
marginTop: "-6px",
|
|
|
|
tablet: {
|
|
width: "100%",
|
|
marginLeft: "0px",
|
|
marginTop: "-1px",
|
|
},
|
|
},
|
|
|
|
progress: {
|
|
borderRadius: "2px",
|
|
marginTop: "-2px",
|
|
},
|
|
|
|
newPassword: {
|
|
margin: "0 16px",
|
|
|
|
svg: {
|
|
overflow: "hidden",
|
|
marginBottom: "4px",
|
|
},
|
|
},
|
|
},
|
|
|
|
searchInput: {
|
|
fontSize: "14px",
|
|
fontWeight: "600",
|
|
},
|
|
|
|
textInput: {
|
|
fontWeight: "normal",
|
|
placeholderColor: gray,
|
|
disablePlaceholderColor: grayMid,
|
|
|
|
transition: "all 0.2s ease 0s",
|
|
appearance: "none",
|
|
display: "flex",
|
|
flex: "1 1 0%",
|
|
outline: "none",
|
|
overflow: "hidden",
|
|
opacity: "1",
|
|
|
|
lineHeight: {
|
|
base: "20px",
|
|
middle: "20px",
|
|
big: "20px",
|
|
huge: "21px",
|
|
large: "20px",
|
|
},
|
|
|
|
fontSize: {
|
|
base: "14px",
|
|
middle: "14px",
|
|
big: "16px",
|
|
huge: "18px",
|
|
large: "16px",
|
|
},
|
|
|
|
padding: {
|
|
base: "5px 6px",
|
|
middle: "8px 12px",
|
|
big: "8px 16px",
|
|
huge: "8px 20px",
|
|
large: "11px 15px",
|
|
},
|
|
},
|
|
|
|
inputBlock: {
|
|
height: "100%",
|
|
paddingRight: "8px",
|
|
paddingLeft: "1px",
|
|
|
|
display: "flex",
|
|
alignItems: "center",
|
|
padding: "2px 0px 2px 2px",
|
|
margin: "0",
|
|
|
|
borderColor: blueMain,
|
|
},
|
|
|
|
textArea: {
|
|
width: "100%",
|
|
height: "90%",
|
|
border: "none",
|
|
outline: "none",
|
|
resize: "none",
|
|
overflow: "hidden",
|
|
padding: "5px 8px 2px 8px",
|
|
fontSize: "13px",
|
|
lineHeight: "1.5",
|
|
|
|
disabledColor: grayLight,
|
|
|
|
focusBorderColor: blueMain,
|
|
focusErrorBorderColor: red,
|
|
focusOutline: "none",
|
|
|
|
scrollWidth: "100%",
|
|
scrollHeight: "91px",
|
|
},
|
|
|
|
link: {
|
|
color: black,
|
|
lineHeight: "calc(100% + 6px)",
|
|
opacity: "0.5",
|
|
textDecoration: "none",
|
|
cursor: "pointer",
|
|
display: "inline-block",
|
|
|
|
hover: {
|
|
textDecoration: "underline dashed",
|
|
page: { textDecoration: "underline" },
|
|
},
|
|
},
|
|
|
|
linkWithDropdown: {
|
|
paddingRight: "20px",
|
|
semiTransparentOpacity: "0.5",
|
|
textDecoration: "underline dashed",
|
|
disableColor: gray,
|
|
|
|
svg: {
|
|
opacity: "1",
|
|
semiTransparentOpacity: "0.5",
|
|
},
|
|
|
|
text: { maxWidth: "100%" },
|
|
|
|
span: { maxWidth: "300px" },
|
|
|
|
caret: {
|
|
width: "5px",
|
|
minWidth: "5px",
|
|
height: "4px",
|
|
minHeight: "4px",
|
|
marginLeft: "5px",
|
|
marginTop: "-4px",
|
|
right: "6px",
|
|
top: "0",
|
|
bottom: "0",
|
|
isOpenBottom: "-1px",
|
|
margin: "auto",
|
|
opacity: "0",
|
|
transform: "scale(1, -1)",
|
|
},
|
|
},
|
|
|
|
tooltip: {
|
|
borderRadius: "6px",
|
|
boxShadow: "0px 5px 20px rgba(0, 0, 0, 0.13)",
|
|
opacity: "1",
|
|
padding: "16px",
|
|
pointerEvents: "auto",
|
|
maxWidth: "340px",
|
|
|
|
before: {
|
|
border: "none",
|
|
},
|
|
after: {
|
|
border: "none",
|
|
},
|
|
},
|
|
|
|
tabsContainer: {
|
|
scrollbar: {
|
|
width: "100%",
|
|
height: "50px",
|
|
},
|
|
|
|
label: {
|
|
height: " 32px",
|
|
borderRadius: "16px",
|
|
minWidth: "fit-content",
|
|
marginRight: "8px",
|
|
width: "fit-content",
|
|
|
|
backgroundColor: blueLightMid,
|
|
hoverBackgroundColor: grayLight,
|
|
disableBackgroundColor: grayLightMid,
|
|
|
|
title: {
|
|
margin: "7px 15px 7px 15px",
|
|
overflow: "hidden",
|
|
color: white,
|
|
disableColor: grayMid,
|
|
},
|
|
},
|
|
},
|
|
|
|
fieldContainer: {
|
|
horizontal: {
|
|
margin: "0 0 16px 0",
|
|
|
|
label: {
|
|
lineHeight: "32px",
|
|
margin: "0",
|
|
},
|
|
|
|
body: {
|
|
flexGrow: "1",
|
|
},
|
|
|
|
iconButton: {
|
|
marginTop: "10px",
|
|
marginLeft: "8px",
|
|
},
|
|
},
|
|
|
|
vertical: {
|
|
margin: "0 0 16px 0",
|
|
|
|
label: {
|
|
lineHeight: "13px",
|
|
height: "15px",
|
|
},
|
|
|
|
labelIcon: {
|
|
width: "100%",
|
|
margin: "0 0 8px 0",
|
|
},
|
|
|
|
body: {
|
|
width: "100%",
|
|
},
|
|
|
|
iconButton: {
|
|
margin: "0",
|
|
padding: "0px 8px",
|
|
width: "13px",
|
|
height: "13px",
|
|
},
|
|
},
|
|
},
|
|
|
|
avatar: {
|
|
initialsContainer: {
|
|
color: white,
|
|
left: "50%",
|
|
top: "50%",
|
|
transform: "translate(-50%, -50%)",
|
|
fontWeight: "600",
|
|
|
|
fontSize: {
|
|
min: "12px",
|
|
small: "12px",
|
|
medium: "20px",
|
|
big: "34px",
|
|
max: "72px",
|
|
},
|
|
},
|
|
|
|
roleWrapperContainer: {
|
|
left: {
|
|
min: "-2px",
|
|
small: "-2px",
|
|
medium: "-4px",
|
|
big: "0px",
|
|
max: "0px",
|
|
},
|
|
|
|
bottom: {
|
|
min: "3px",
|
|
small: "3px",
|
|
medium: "6px",
|
|
big: "5px",
|
|
max: "0px",
|
|
},
|
|
|
|
width: {
|
|
medium: "14px",
|
|
max: "24px",
|
|
},
|
|
|
|
height: {
|
|
medium: "14px",
|
|
max: "24px",
|
|
},
|
|
},
|
|
|
|
imageContainer: {
|
|
backgroundImage: blueMain,
|
|
background: grayMid,
|
|
borderRadius: "50%",
|
|
height: "100%",
|
|
|
|
svg: {
|
|
display: "block",
|
|
width: "50%",
|
|
height: "100%",
|
|
margin: "auto",
|
|
},
|
|
},
|
|
|
|
editContainer: {
|
|
right: "0px",
|
|
bottom: "0px",
|
|
backgroundColor: "#265a8f",
|
|
borderRadius: "50%",
|
|
height: "32px",
|
|
width: "32px",
|
|
},
|
|
|
|
image: {
|
|
width: "100%",
|
|
height: "auto",
|
|
borderRadius: "50%",
|
|
},
|
|
|
|
width: {
|
|
min: "32px",
|
|
small: "36px",
|
|
medium: "48px",
|
|
big: "82px",
|
|
max: "160px",
|
|
},
|
|
|
|
height: {
|
|
min: "32px",
|
|
small: "36px",
|
|
medium: "48px",
|
|
big: "82px",
|
|
max: "160px",
|
|
},
|
|
},
|
|
|
|
avatarEditor: {
|
|
minWidth: "208px",
|
|
maxWidth: "300px",
|
|
width: "max-content",
|
|
},
|
|
|
|
avatarEditorBody: {
|
|
maxWidth: "400px",
|
|
|
|
slider: {
|
|
width: "100%",
|
|
margin: "24px 0",
|
|
backgroundColor: "transparent",
|
|
|
|
runnableTrack: {
|
|
background: grayLightMid,
|
|
focusBackground: grayLightMid,
|
|
border: `1.4px solid ${grayLightMid}`,
|
|
borderRadius: "5.6px",
|
|
width: "100%",
|
|
height: "8px",
|
|
},
|
|
|
|
sliderThumb: {
|
|
marginTop: "-9.4px",
|
|
width: "24px",
|
|
height: "24px",
|
|
background: blueMain,
|
|
border: `6px solid ${white}`,
|
|
borderRadius: "30px",
|
|
boxShadow: "0px 5px 20px rgba(4, 15, 27, 0.13)",
|
|
},
|
|
|
|
thumb: {
|
|
width: "24px",
|
|
height: "24px",
|
|
background: blueMain,
|
|
border: `6px solid ${white}`,
|
|
borderRadius: "30px",
|
|
marginTop: "0px",
|
|
boxShadow: "0px 5px 20px rgba(4, 15, 27, 0.13)",
|
|
},
|
|
|
|
rangeTrack: {
|
|
background: grayLightMid,
|
|
border: `1.4px solid ${grayLightMid}`,
|
|
borderRadius: "5.6px",
|
|
width: "100%",
|
|
height: "8px",
|
|
},
|
|
|
|
rangeThumb: {
|
|
width: "14px",
|
|
height: "14px",
|
|
background: blueMain,
|
|
border: `6px solid ${white}`,
|
|
borderRadius: "30px",
|
|
boxShadow: "0px 5px 20px rgba(4, 15, 27, 0.13)",
|
|
},
|
|
|
|
track: {
|
|
background: "transparent",
|
|
borderColor: "transparent",
|
|
borderWidth: "10.2px 0",
|
|
color: "transparent",
|
|
width: "100%",
|
|
height: "8px",
|
|
},
|
|
|
|
fillLower: {
|
|
background: grayLightMid,
|
|
focusBackground: grayLightMid,
|
|
border: `1.4px solid ${grayLightMid}`,
|
|
borderRadius: "11.2px",
|
|
},
|
|
|
|
fillUpper: {
|
|
background: grayLightMid,
|
|
focusBackground: grayLightMid,
|
|
border: `1.4px solid ${grayLightMid}`,
|
|
borderRadius: "11.2px",
|
|
},
|
|
},
|
|
|
|
dropZone: {
|
|
border: `1px dashed ${silver}`,
|
|
},
|
|
|
|
container: {
|
|
miniPreview: {
|
|
width: "160px",
|
|
border: `1px solid ${grayLightMid}`,
|
|
borderRadius: "6px",
|
|
padding: "8px",
|
|
},
|
|
|
|
buttons: {
|
|
height: "32px",
|
|
background: gray,
|
|
|
|
mobileWidth: "40px",
|
|
mobileHeight: "100%",
|
|
mobileBackground: "none",
|
|
},
|
|
|
|
button: {
|
|
background: gray,
|
|
padding: "0 12px",
|
|
height: "40px",
|
|
borderRadius: "6px",
|
|
},
|
|
|
|
zoom: {
|
|
height: "56px",
|
|
|
|
mobileHeight: "24px",
|
|
marginTop: "16px",
|
|
},
|
|
},
|
|
},
|
|
|
|
backdrop: {
|
|
backgroundColor: "rgba(6, 22, 38, 0.1)",
|
|
unsetBackgroundColor: "unset",
|
|
},
|
|
|
|
treeNode: {
|
|
dragging: {
|
|
draggable: {
|
|
background: lightCumulus,
|
|
hoverBackgroundColor: lightMediumGoldenrod,
|
|
borderRadius: "3px",
|
|
},
|
|
|
|
title: {
|
|
width: "85%",
|
|
},
|
|
},
|
|
|
|
draggable: {
|
|
color: cyanBlueDarkShade,
|
|
dragOverBackgroundColor: strongBlue,
|
|
border: `1px ${strongBlue} solid`,
|
|
dragOverColor: white,
|
|
|
|
gapTop: {
|
|
borderTop: `2px blue solid`,
|
|
},
|
|
|
|
gapBottom: {
|
|
borderBottom: `2px blue solid`,
|
|
},
|
|
},
|
|
|
|
contentWrapper: {
|
|
color: darkRed,
|
|
},
|
|
|
|
title: {
|
|
color: cyanBlueDarkShade,
|
|
},
|
|
|
|
selected: {
|
|
background: lightGrayishStrongBlue,
|
|
hoverBackgroundColor: lightGrayishStrongBlue,
|
|
borderRadius: "3px",
|
|
},
|
|
|
|
checkbox: {
|
|
border: `2px solid ${white}`,
|
|
borderTop: 0,
|
|
borderLeft: 0,
|
|
},
|
|
},
|
|
|
|
progressBar: {
|
|
height: "22px",
|
|
backgroundColor: grayLight,
|
|
marginLeft: "-100%",
|
|
|
|
fullText: {
|
|
padding: "0px 6px",
|
|
fontWeight: "600",
|
|
margin: "0",
|
|
},
|
|
|
|
percent: {
|
|
float: "left",
|
|
overflow: "hidden",
|
|
maxHeight: "22px",
|
|
minHeight: "22px",
|
|
transition: "width 0.6s ease",
|
|
background: "linear-gradient(90deg, #20d21f 75%, #b9d21f 100%)",
|
|
},
|
|
|
|
text: {
|
|
minWidth: "200%",
|
|
|
|
progressText: {
|
|
padding: "2px 6px",
|
|
margin: "0",
|
|
minWidth: "100px",
|
|
fontWeight: "600",
|
|
},
|
|
},
|
|
|
|
dropDown: {
|
|
padding: "16px 16px 16px 17px",
|
|
},
|
|
},
|
|
|
|
dropDown: {
|
|
fontWeight: "600",
|
|
fontSize: "13px",
|
|
zIndex: "400",
|
|
background: white,
|
|
borderRadius: "6px",
|
|
boxShadow: "0px 5px 20px rgba(0, 0, 0, 0.13)",
|
|
},
|
|
|
|
dropDownItem: {
|
|
color: black,
|
|
disableColor: gray,
|
|
backgroundColor: white,
|
|
hoverBackgroundColor: grayLight,
|
|
hoverDisabledBackgroundColor: white,
|
|
fontWeight: "600",
|
|
fontSize: "13px",
|
|
width: "100%",
|
|
maxWidth: "500px",
|
|
border: "0px",
|
|
margin: "0px",
|
|
padding: "0px 16px",
|
|
lineHeight: "32px",
|
|
tabletLineHeight: "36px",
|
|
|
|
icon: {
|
|
width: "16px",
|
|
marginRight: "8px",
|
|
lineHeight: "14px",
|
|
|
|
color: black,
|
|
disableColor: gray,
|
|
},
|
|
|
|
separator: {
|
|
padding: "0px 16px",
|
|
borderBottom: `1px solid ${globalColors.grayLightMid}`,
|
|
margin: " 4px 16px 4px",
|
|
lineHeight: "1px",
|
|
height: "1px",
|
|
width: "calc(100% - 32px)",
|
|
},
|
|
},
|
|
|
|
toast: {
|
|
active: {
|
|
success: activeSuccess,
|
|
error: activeError,
|
|
info: activeInfo,
|
|
warning: activeWarning,
|
|
},
|
|
hover: {
|
|
success: hoverSuccess,
|
|
error: hoverError,
|
|
info: hoverInfo,
|
|
warning: hoverWarning,
|
|
},
|
|
|
|
zIndex: "9999",
|
|
position: "fixed",
|
|
padding: "4px",
|
|
width: "320px",
|
|
color: white,
|
|
top: "16px",
|
|
right: "24px",
|
|
marginTop: "0px",
|
|
|
|
closeButton: {
|
|
color: white,
|
|
fontWeight: "700",
|
|
fontSize: "14px",
|
|
background: "transparent",
|
|
padding: "0",
|
|
opacity: "0.7",
|
|
hoverOpacity: "1",
|
|
transition: "0.3s ease",
|
|
},
|
|
|
|
main: {
|
|
marginBottom: "1rem",
|
|
boxShadow: "0px 10px 16px -12px rgba(0, 0, 0, 0.3)",
|
|
maxHeight: "800px",
|
|
overflow: "hidden",
|
|
borderRadius: "6px",
|
|
color: darkBlack,
|
|
margin: "0 0 12px",
|
|
padding: "12px",
|
|
minHeight: "32px",
|
|
width: "100%",
|
|
right: "0",
|
|
transition: "0.3s",
|
|
},
|
|
},
|
|
|
|
toastr: {
|
|
svg: {
|
|
width: "16px",
|
|
minWidth: "16px",
|
|
height: "16px",
|
|
minHeight: "16px",
|
|
color: black,
|
|
},
|
|
|
|
text: {
|
|
lineHeight: " 1.3",
|
|
fontSize: "12px",
|
|
color: black,
|
|
},
|
|
|
|
title: {
|
|
fontWeight: "600",
|
|
margin: "0",
|
|
marginBottom: "5px",
|
|
lineHeight: "16px",
|
|
color: darkBlack,
|
|
fontSize: "12px",
|
|
},
|
|
},
|
|
|
|
loader: {
|
|
color: shuttleGrey,
|
|
size: "40px",
|
|
marginRight: "2px",
|
|
borderRadius: "50%",
|
|
},
|
|
|
|
// dropDownItem: {
|
|
// width: "100%",
|
|
// maxWidth: "240px",
|
|
// border: "none",
|
|
// cursor: "pointer",
|
|
// padding: "0px 16px",
|
|
// lineHeight: "32px",
|
|
// textAlign: "left",
|
|
// background: "none",
|
|
// textDecoration: "none",
|
|
// fontStyle: "normal",
|
|
// fontWeight: "600",
|
|
// fontSize: "13px",
|
|
|
|
// whiteSpace: "nowrap",
|
|
// overflow: "hidden",
|
|
// textOverflow: "ellipsis",
|
|
|
|
// outline: "none",
|
|
// color: black,
|
|
// textTransform: "none",
|
|
|
|
// hoverBackgroundColor: grayLight,
|
|
// noHoverBackgroundColor: white,
|
|
|
|
// header: {
|
|
// color: gray,
|
|
// hoverCursor: "default",
|
|
// hoverBackgroundColor: "white",
|
|
// textTransform: "uppercase",
|
|
// },
|
|
|
|
// disabled: {
|
|
// color: gray,
|
|
// hoverCursor: "default",
|
|
// hoverBackgroundColor: "white",
|
|
// },
|
|
|
|
// separator: {
|
|
// padding: "0px 16px",
|
|
// border: `0.5px solid ${grayLightMid}`,
|
|
// cursor: "default",
|
|
// margin: "6px 16px 6px",
|
|
// lineHeight: "1px",
|
|
// height: "1px",
|
|
// width: "calc(100% - 32px)",
|
|
// },
|
|
|
|
// tablet: { lineHeight: "36px" },
|
|
|
|
comboBox: {
|
|
padding: "6px 0px",
|
|
|
|
width: {
|
|
base: "173px",
|
|
middle: "300px",
|
|
big: "350px",
|
|
huge: "500px",
|
|
},
|
|
|
|
arrow: {
|
|
width: "8px",
|
|
flex: "0 0 8px",
|
|
marginTopWithBorder: "5px",
|
|
marginTop: "12px",
|
|
marginRight: "8px",
|
|
marginLeft: "auto",
|
|
fillColor: gray,
|
|
},
|
|
|
|
button: {
|
|
height: "18px",
|
|
heightWithBorder: "30px",
|
|
paddingLeft: "8px",
|
|
|
|
color: black,
|
|
disabledColor: grayMid,
|
|
background: white,
|
|
backgroundWithBorder: "none",
|
|
|
|
border: `1px solid ${grayMid}`,
|
|
borderRadius: "3px",
|
|
borderColor: blueMain,
|
|
|
|
disabledBorderColor: grayLightMid,
|
|
disabledBackground: grayLight,
|
|
|
|
hoverBorderColor: gray,
|
|
hoverBorderColorOpen: blueMain,
|
|
hoverDisabledBorderColor: grayLightMid,
|
|
},
|
|
|
|
label: {
|
|
marginRightWithBorder: "8px",
|
|
marginRight: "4px",
|
|
|
|
disabledColor: grayMid,
|
|
color: black,
|
|
|
|
maxWidth: "175px",
|
|
|
|
lineHeightWithoutBorder: "16px",
|
|
lineHeightTextDecoration: "underline dashed",
|
|
},
|
|
|
|
childrenButton: {
|
|
marginRight: "8px",
|
|
width: "16px",
|
|
height: "16px",
|
|
|
|
defaultDisabledColor: grayMid,
|
|
defaultColor: gray,
|
|
disabledColor: grayMid,
|
|
color: black,
|
|
},
|
|
},
|
|
|
|
toggleContent: {
|
|
headingHeight: "24px",
|
|
headingLineHeight: "26px",
|
|
hoverBorderBottom: "1px dashed",
|
|
contentPadding: "10px 0px 0px 0px",
|
|
arrowMargin: "4px 8px 4px 0px",
|
|
arrowMarginRight: "9px",
|
|
arrowMarginBottom: "5px",
|
|
transform: "rotate(180deg)",
|
|
iconColor: black,
|
|
|
|
childrenContent: {
|
|
color: black,
|
|
paddingTop: "6px",
|
|
},
|
|
},
|
|
|
|
toggleButton: {
|
|
fillColor: blueMain,
|
|
fillColorOff: gray,
|
|
|
|
disableFillColor: grayLightMid,
|
|
disableFillColorOff: grayLightMid,
|
|
},
|
|
|
|
contextMenuButton: {
|
|
content: {
|
|
width: "100%",
|
|
backgroundColor: " #fff",
|
|
padding: "0 16px 16px",
|
|
},
|
|
|
|
headerContent: {
|
|
maxWidth: "500px",
|
|
margin: "0",
|
|
lineHeight: "56px",
|
|
fontWeight: "700",
|
|
borderBottom: `1px solid ${globalColors.lightGrayishBlue}`,
|
|
},
|
|
|
|
bodyContent: {
|
|
padding: "16px 0",
|
|
},
|
|
},
|
|
|
|
calendar: {
|
|
baseWidth: "265px",
|
|
bigWidth: "289px",
|
|
|
|
baseMaxWidth: "293px",
|
|
bigMaxWidth: "325px",
|
|
|
|
hover: {
|
|
backgroundColor: grayLightMid,
|
|
borderRadius: "16px",
|
|
cursor: "pointer",
|
|
},
|
|
|
|
day: {
|
|
width: "32px",
|
|
height: "32px",
|
|
baseSizeWidth: "270px",
|
|
bigSizeWidth: "294px",
|
|
baseMarginTop: "3px",
|
|
bigMarginTop: "7.5px",
|
|
lineHeight: "33px",
|
|
},
|
|
|
|
weekdays: {
|
|
color: black,
|
|
disabledColor: gray,
|
|
baseWidth: "272px",
|
|
bigWidth: "295px",
|
|
marginBottom: "-5px",
|
|
},
|
|
|
|
month: {
|
|
baseWidth: "267px",
|
|
bigWidth: "295px",
|
|
color: black,
|
|
weekendColor: gray,
|
|
disabledColor: grayLightMid,
|
|
neighboringHoverColor: black,
|
|
neighboringColor: grayLightMid,
|
|
},
|
|
|
|
selectedDay: {
|
|
backgroundColor: orangeMain,
|
|
borderRadius: "16px",
|
|
cursor: "pointer",
|
|
color: white,
|
|
},
|
|
|
|
comboBox: {
|
|
color: black,
|
|
minWidth: "80px",
|
|
height: "32px",
|
|
marginLeft: "8px",
|
|
padding: "0 0 24px 0",
|
|
},
|
|
comboBoxMonth: {
|
|
baseWidth: "172px",
|
|
bigWidth: "205px",
|
|
|
|
baseMaxWidth: "172px",
|
|
bigMaxWidth: "196px",
|
|
},
|
|
},
|
|
|
|
datePicker: {
|
|
width: "115px",
|
|
dropDownPadding: "16px 16px 16px 17px",
|
|
contentPadding: "0 16px 16px",
|
|
bodyPadding: "16px 0",
|
|
backgroundColor: white,
|
|
inputBorder: blueMain,
|
|
iconPadding: "8px 8px 7px 0px",
|
|
|
|
contentMaxWidth: "500px",
|
|
contentLineHeight: "56px",
|
|
contentFontWeight: "700",
|
|
|
|
borderBottom: `1px solid ${globalColors.lightGrayishBlue}`,
|
|
},
|
|
|
|
aside: {
|
|
backgroundColor: white,
|
|
height: "100%",
|
|
overflowX: "hidden",
|
|
overflowY: "auto",
|
|
position: "fixed",
|
|
right: "0",
|
|
top: "0",
|
|
bottom: "16px",
|
|
paddingBottom: "64px",
|
|
transition: "transform 0.3s ease-in-out",
|
|
},
|
|
|
|
dragAndDrop: {
|
|
height: "100%",
|
|
border: `1px solid ${globalColors.darkSilver}`,
|
|
transparentBorder: "1px solid transparent",
|
|
acceptBackground: lightMediumGoldenrod,
|
|
background: lightCumulus,
|
|
},
|
|
|
|
// phoneInput: {
|
|
// width: "304px",
|
|
// height: "44px",
|
|
// itemTextColor: black,
|
|
// itemBackgroundColor: white,
|
|
// itemHoverColor: grayLightMid,
|
|
// scrollBackground: "rgba(0, 0, 0, 0.1)",
|
|
// placeholderColor: gray,
|
|
// },
|
|
|
|
// squareButton: {
|
|
// height: "32px",
|
|
// width: "32px",
|
|
// color: gray,
|
|
// backgroundColor: white,
|
|
// border: `1px solid ${grayMid}`,
|
|
// borderRadius: "3px",
|
|
// outline: "none",
|
|
// hover: {
|
|
// backgroundColor: white,
|
|
// border: `1px solid ${gray}`,
|
|
// },
|
|
// click: {
|
|
// backgroundColor: grayLightMid,
|
|
// border: `1px solid ${gray}`,
|
|
// },
|
|
// disable: {
|
|
// backgroundColor: grayLight,
|
|
// border: `1px solid ${grayLightMid}`,
|
|
// },
|
|
// crossShape: {
|
|
// color: graySilver,
|
|
// disable: {
|
|
// color: gray,
|
|
// },
|
|
// },
|
|
// },
|
|
|
|
// roundButton: {
|
|
// height: "40px",
|
|
// width: "40px",
|
|
// backgroundColor: grayLight,
|
|
// borderRadius: {
|
|
// plus: "112px",
|
|
// minus: "81px",
|
|
// },
|
|
// borderStyle: "none",
|
|
// outline: "none",
|
|
// hover: {
|
|
// backgroundColor: grayLightMid,
|
|
// },
|
|
// click: {
|
|
// backgroundColor: grayMid,
|
|
// },
|
|
// disable: {
|
|
// backgroundColor: grayLight,
|
|
// },
|
|
// plus: {
|
|
// color: grayMid,
|
|
// disable: {
|
|
// color: black,
|
|
// },
|
|
// },
|
|
// },
|
|
};
|
|
|
|
export default Base;
|