@expressms/smartapp-ui 2.2.6 → 2.2.7
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.
- package/build/main/constants/constants.d.ts +0 -4
- package/build/main/constants/constants.js +0 -5
- package/build/main/constants/constants.js.map +1 -1
- package/build/main/helpers/index.d.ts +1 -0
- package/build/main/helpers/index.js +1 -0
- package/build/main/helpers/index.js.map +1 -1
- package/build/main/styles/styles.scss +2 -2
- package/build/main//321/201omponents/ActionModal/ActionModal.d.ts +1 -1
- package/build/main//321/201omponents/ActionModal/ActionModal.js +2 -2
- package/build/main//321/201omponents/ActionModal/ActionModal.js.map +1 -1
- package/build/main//321/201omponents/ActionModal/types.d.ts +1 -0
- package/build/main//321/201omponents/Checkbox/Checkbox.js +3 -0
- package/build/main//321/201omponents/Checkbox/Checkbox.js.map +1 -1
- package/build/main//321/201omponents/Input/Input.d.ts +1 -1
- package/build/main//321/201omponents/Input/Input.js +11 -11
- package/build/main//321/201omponents/Input/Input.js.map +1 -1
- package/build/main//321/201omponents/Input/types.d.ts +1 -1
- package/build/main//321/201omponents/RadioButton/RadioButton.js +3 -0
- package/build/main//321/201omponents/RadioButton/RadioButton.js.map +1 -1
- package/build/main//321/201omponents/Textarea/Textarea.d.ts +1 -1
- package/build/main//321/201omponents/Textarea/Textarea.js +11 -8
- package/build/main//321/201omponents/Textarea/Textarea.js.map +1 -1
- package/build/main//321/201omponents/Textarea/types.d.ts +1 -0
- package/build/main//321/201omponents/Toggle/Toggle.js +3 -0
- package/build/main//321/201omponents/Toggle/Toggle.js.map +1 -1
- package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +2 -2
- package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +1 -1
- package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +1 -1
- package/build/main//321/201omponents/UserDropdown/UserDropdown.js +14 -11
- package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +1 -1
- package/build/main//321/201omponents/UserDropdown/colors.d.ts +1 -1
- package/build/main//321/201omponents/UserDropdown/colors.js +1 -1
- package/build/main//321/201omponents/UserDropdown/colors.js.map +1 -1
- package/build/main//321/201omponents/UserDropdown/helpers.d.ts +1 -0
- package/build/main//321/201omponents/UserDropdown/selectStyles.d.ts +1 -1
- package/build/main//321/201omponents/UserDropdown/selectStyles.js +6 -8
- package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +1 -1
- package/build/main//321/201omponents/UserDropdown/types.d.ts +4 -2
- package/package.json +1 -1
|
@@ -9,24 +9,22 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import { isDarkTheme, isFullScreen, isHalfLayoutType } from '../../helpers';
|
|
13
|
-
import { INPUT_BORDER_TYPE } from '../../constants';
|
|
12
|
+
import { isDarkTheme, isFullScreen, isHalfLayoutType, isPrimaryFillType } from '../../helpers';
|
|
14
13
|
import * as colors from './colors';
|
|
15
14
|
// eslint-disable-next-line import/no-anonymous-default-export
|
|
16
15
|
export default (function (_a) {
|
|
17
|
-
var isChipsVisible = _a.isChipsVisible, isMaxMembersAdded = _a.isMaxMembersAdded, isDisabled = _a.isDisabled, isError = _a.isError, lastRowNumber = _a.lastRowNumber, paddingLeft = _a.paddingLeft,
|
|
16
|
+
var isChipsVisible = _a.isChipsVisible, isMaxMembersAdded = _a.isMaxMembersAdded, isDisabled = _a.isDisabled, isError = _a.isError, lastRowNumber = _a.lastRowNumber, paddingLeft = _a.paddingLeft, fillType = _a.fillType, theme = _a.theme, layoutType = _a.layoutType;
|
|
18
17
|
return ({
|
|
19
18
|
control: function (provided, _a) {
|
|
20
19
|
var menuIsOpen = _a.menuIsOpen;
|
|
21
|
-
var
|
|
22
|
-
var paleBorderColor = isDarkTheme(theme) ? colors.lightBlackColor : colors.lighterGrayColor;
|
|
23
|
-
var grayBorderColor = borderType === INPUT_BORDER_TYPE.intense ? intenseBorderColor : paleBorderColor;
|
|
20
|
+
var grayBorderColor = isDarkTheme(theme) ? colors.lightBlackBackgroundColor : colors.borderColor;
|
|
24
21
|
var borderColor = menuIsOpen ? colors.blueColor : grayBorderColor;
|
|
25
22
|
var hoverGrayBorderColor = isDarkTheme(theme) ? colors.hoverBorderColor : colors.grayColor;
|
|
26
23
|
var hoverBorderColor = menuIsOpen ? colors.blueColor : hoverGrayBorderColor;
|
|
27
|
-
var
|
|
24
|
+
var backgroundDarkTheme = isPrimaryFillType(fillType) ? colors.blackBackgroundColor : colors.lighterBlackBackgroundColor;
|
|
25
|
+
var background = isDarkTheme(theme) ? backgroundDarkTheme : colors.whiteBackgroundColor;
|
|
28
26
|
var disabledBackground = isDarkTheme(theme) ? colors.lightBlackBackgroundColor : colors.lighterGrayColor;
|
|
29
|
-
return __assign(__assign({}, provided), { background: isDisabled ? disabledBackground : background, borderRadius: '8px', borderColor: isError ? colors.redBorderColor : isDisabled ? disabledBackground : borderColor, boxShadow: 'none', cursor: 'pointer', '&:hover': {
|
|
27
|
+
return __assign(__assign({}, provided), { background: isDisabled ? disabledBackground : background, borderRadius: '8px', borderColor: isError ? colors.redBorderColor : isDisabled ? disabledBackground : borderColor, boxShadow: 'none', cursor: 'pointer', transition: 'border-color 250ms ease-in-out, background 250ms ease-in-out', '&:hover': {
|
|
30
28
|
borderColor: isError ? colors.redBorderColor : hoverBorderColor,
|
|
31
29
|
} });
|
|
32
30
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectStyles.js","sourceRoot":"","sources":["../../../../src/сomponents/UserDropdown/selectStyles.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"selectStyles.js","sourceRoot":"","sources":["../../../../src/сomponents/UserDropdown/selectStyles.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,WAA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QAAa,IAAK,OAAA,uBACtB,QAAQ,KACX,UAAU,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,2BAA2B,CAAC,CAAC,CAAC,MAAM,CAAC,oBAAoB,EACjG,OAAO,EAAE,YAAY,EACrB,MAAM,EAAE,SAAS,EAEjB,SAAS,EAAE;gBACT,UAAU,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,uBAAuB;gBAExF,6BAA6B,EAAE;oBAC7B,iBAAiB,EAAE,MAAM,CAAC,WAAW;iBACtC;aACF,IACD,EAbyB,CAazB;KACH,CAAC;AA9ImB,CA8InB,EAAA"}
|
|
@@ -86,6 +86,7 @@ export type TGenerateContactsOptionsToSelect = TGenerateCommonOption & {
|
|
|
86
86
|
};
|
|
87
87
|
export type TGenerateEnteredByUserOption = TGenerateCommonOption & {
|
|
88
88
|
email: string;
|
|
89
|
+
isError?: boolean;
|
|
89
90
|
};
|
|
90
91
|
export type TSelectStyles = {
|
|
91
92
|
isChipsVisible: boolean;
|
|
@@ -94,7 +95,7 @@ export type TSelectStyles = {
|
|
|
94
95
|
isError: boolean;
|
|
95
96
|
lastRowNumber: number;
|
|
96
97
|
paddingLeft: string;
|
|
97
|
-
|
|
98
|
+
fillType: string;
|
|
98
99
|
theme: string;
|
|
99
100
|
layoutType: string;
|
|
100
101
|
};
|
|
@@ -125,6 +126,7 @@ export interface MultiOptionType {
|
|
|
125
126
|
companyPosition?: string | null;
|
|
126
127
|
isMyContacts?: boolean;
|
|
127
128
|
isEnteredByUser?: boolean;
|
|
129
|
+
isError?: boolean;
|
|
128
130
|
}
|
|
129
131
|
export type TMyContactsEntries = {
|
|
130
132
|
name: string | null;
|
|
@@ -167,7 +169,7 @@ export interface IUserDropdownProps extends ICommonProps {
|
|
|
167
169
|
hint?: string;
|
|
168
170
|
noOptionsMessage?: string;
|
|
169
171
|
maxMembersCount?: number;
|
|
170
|
-
|
|
172
|
+
fillType?: 'primary' | 'secondary';
|
|
171
173
|
selectedEntries?: TUser[];
|
|
172
174
|
corporateEntries: TCorporateEntries | null;
|
|
173
175
|
myContactsEntries: TMyContactsEntries[] | null;
|