Merge branch 'master' of https://github.com/ONLYOFFICE/AppServer
This commit is contained in:
commit
b3e65be930
@ -274,6 +274,7 @@ class SectionBodyContent extends React.Component {
|
||||
name="group-name"
|
||||
scale={true}
|
||||
isAutoFocussed={true}
|
||||
isBold={true}
|
||||
tabIndex={1}
|
||||
value={groupName}
|
||||
onChange={this.onGroupChange}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "asc-web-common",
|
||||
"version": "1.0.30",
|
||||
"version": "1.0.32",
|
||||
"description": "Ascensio System SIA common components and solutions library",
|
||||
"license": "AGPL-3.0",
|
||||
"files": [
|
||||
|
@ -36,7 +36,7 @@ const dropdownStyles = css`
|
||||
grid-row-gap: 16px;
|
||||
|
||||
grid-template-columns: 1fr;
|
||||
grid-template-rows: 30px 0.98fr;
|
||||
grid-template-rows: 30px 1fr;
|
||||
grid-template-areas: "header-groups" "body-groups";
|
||||
|
||||
.header-groups {
|
||||
@ -87,7 +87,6 @@ const StyledSelector = styled(Container)`
|
||||
display: grid;
|
||||
/* background-color: red; */
|
||||
padding: 16px 16px 0 16px;
|
||||
grid-row-gap: 16px;
|
||||
|
||||
grid-template-columns: 1fr;
|
||||
grid-template-rows: ${props =>
|
||||
@ -100,7 +99,7 @@ const StyledSelector = styled(Container)`
|
||||
props.groups && props.groups.length > 0
|
||||
? "70px"
|
||||
: "30px"
|
||||
: "30px"} 0.98fr;
|
||||
: "30px"} 1fr;
|
||||
grid-template-areas: "header-options" "body-options";
|
||||
|
||||
.header-options {
|
||||
@ -154,6 +153,7 @@ const StyledSelector = styled(Container)`
|
||||
|
||||
.row-block {
|
||||
padding-left: 8px;
|
||||
margin-top: 8px;
|
||||
|
||||
.option-info {
|
||||
position: absolute;
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "asc-web-components",
|
||||
"version": "1.0.284",
|
||||
"version": "1.0.285",
|
||||
"description": "Ascensio System SIA component library",
|
||||
"license": "AGPL-3.0",
|
||||
"main": "dist/asc-web-components.js",
|
||||
|
@ -7,7 +7,7 @@ import isEqual from "lodash/isEqual";
|
||||
|
||||
/* eslint-disable no-unused-vars */
|
||||
/* eslint-disable react/prop-types */
|
||||
const Input = ({ isAutoFocussed, isDisabled, isReadOnly, hasError, hasWarning, scale, withBorder, keepCharPositions, ...props }) =>
|
||||
const Input = ({ isAutoFocussed, isDisabled, isReadOnly, hasError, hasWarning, scale, withBorder, keepCharPositions, fontWeight, isBold, ...props }) =>
|
||||
(props.mask != null) ? <MaskedInput keepCharPositions {...props}/> : <input {...props}/>;
|
||||
/* eslint-enable react/prop-types */
|
||||
/* eslint-enable no-unused-vars */
|
||||
@ -45,6 +45,11 @@ const StyledInput = styled(Input).attrs((props) => ({
|
||||
(props.size === 'big' && '16px') ||
|
||||
(props.size === 'huge' && '18px')
|
||||
};
|
||||
|
||||
font-weight: ${props => props.fontWeight
|
||||
? props.fontWeight
|
||||
: props.isBold ? 600 : 'normal'};
|
||||
|
||||
flex: 1 1 0%;
|
||||
outline: none;
|
||||
overflow: hidden;
|
||||
@ -116,7 +121,10 @@ TextInput.propTypes = {
|
||||
autoComplete: PropTypes.string,
|
||||
|
||||
className: PropTypes.string,
|
||||
style: PropTypes.oneOfType([PropTypes.object, PropTypes.array])
|
||||
style: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
|
||||
|
||||
fontWeight: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
||||
isBold: PropTypes.bool,
|
||||
}
|
||||
|
||||
TextInput.defaultProps = {
|
||||
@ -130,7 +138,8 @@ TextInput.defaultProps = {
|
||||
hasWarning: false,
|
||||
autoComplete: 'off',
|
||||
withBorder: true,
|
||||
keepCharPositions: false
|
||||
keepCharPositions: false,
|
||||
isBold: false
|
||||
}
|
||||
|
||||
export default TextInput
|
||||
|
Loading…
Reference in New Issue
Block a user