@zohodesk/components 1.0.0-temp-40 → 1.0.0-temp-41
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/README.md +33 -20
- package/es/AppContainer/AppContainer.js +3 -6
- package/es/Appearance/dark/themes/blue/blueDarkCTATheme.module.css +33 -33
- package/es/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +41 -47
- package/es/Appearance/dark/themes/green/greenDarkCTATheme.module.css +32 -32
- package/es/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +40 -46
- package/es/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css +32 -32
- package/es/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +40 -46
- package/es/Appearance/dark/themes/red/redDarkCTATheme.module.css +32 -32
- package/es/Appearance/dark/themes/red/redDarkComponentTheme.module.css +40 -46
- package/es/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css +32 -32
- package/es/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +40 -46
- package/es/Appearance/default/mode/defaultMode.module.css +1 -1
- package/es/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +33 -33
- package/es/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +41 -47
- package/es/Appearance/default/themes/green/greenDefaultCTATheme.module.css +32 -32
- package/es/Appearance/default/themes/green/greenDefaultComponentTheme.module.css +40 -46
- package/es/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +32 -32
- package/es/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css +40 -46
- package/es/Appearance/default/themes/red/redDefaultCTATheme.module.css +32 -32
- package/es/Appearance/default/themes/red/redDefaultComponentTheme.module.css +40 -46
- package/es/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +32 -32
- package/es/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css +40 -46
- package/es/Avatar/Avatar.js +1 -2
- package/es/Avatar/__tests__/Avatar.spec.js +1 -0
- package/es/AvatarTeam/__tests__/AvatarTeam.spec.js +1 -0
- package/es/Button/__tests__/Button.spec.js +1 -0
- package/es/Buttongroup/__test__/Buttongroup.spec.js +1 -0
- package/es/DateTime/DateTime.js +3 -6
- package/es/DateTime/DateWidget.js +2 -5
- package/es/DateTime/DateWidget.module.css +0 -4
- package/es/DateTime/YearView.js +5 -6
- package/es/DateTime/common.js +2 -9
- package/es/DateTime/dateFormatUtils/dateFormat.js +57 -76
- package/es/DateTime/dateFormatUtils/index.js +7 -12
- package/es/DateTime/dateFormatUtils/timeChange.js +3 -4
- package/es/DateTime/dateFormatUtils/yearChange.js +3 -4
- package/es/DateTime/validator.js +1 -0
- package/es/Label/__tests__/Label.spec.js +2 -0
- package/es/Layout/utils.js +1 -2
- package/es/ListItem/ListItem.js +2 -0
- package/es/ListItem/ListItemWithIcon.js +2 -0
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +10 -15
- package/es/MultiSelect/AdvancedMultiSelect.js +7 -6
- package/es/MultiSelect/AdvancedMultiSelect.module.css +8 -8
- package/es/MultiSelect/MultiSelect.js +10 -15
- package/es/MultiSelect/MultiSelect.module.css +8 -13
- package/es/MultiSelect/MultiSelectWithAvatar.js +6 -3
- package/es/MultiSelect/SelectedOptions.js +3 -2
- package/es/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +1 -2
- package/es/Popup/Popup.js +8 -14
- package/es/Popup/viewPort.js +9 -14
- package/es/Provider/Config.js +2 -1
- package/es/Provider/IdProvider.js +4 -5
- package/es/Provider/LibraryContext.js +5 -6
- package/es/Provider/NumberGenerator/NumberGenerator.js +15 -17
- package/es/Provider/ZindexProvider.js +4 -5
- package/es/Radio/Radio.js +1 -2
- package/es/Radio/Radio.module.css +2 -2
- package/es/Responsive/CustomResponsive.js +8 -11
- package/es/Responsive/ResizeComponent.js +1 -3
- package/es/Responsive/Responsive.js +9 -12
- package/es/Responsive/docs/Responsive__Custom.docs.js +44 -49
- package/es/Responsive/docs/Responsive__default.docs.js +74 -77
- package/es/Responsive/sizeObservers.js +1 -5
- package/es/Ribbon/__tests__/Ribbon.spec.js +1 -0
- package/es/RippleEffect/RippleEffect.js +7 -4
- package/es/RippleEffect/RippleEffect.module.css +3 -0
- package/es/Select/GroupSelect.js +1 -2
- package/es/Select/Select.js +1 -2
- package/es/Select/Select.module.css +1 -1
- package/es/Select/SelectWithAvatar.js +7 -4
- package/es/Select/docs/Select__default.docs.js +1 -2
- package/es/Stencils/__tests__/Stencils.spec.js +1 -0
- package/es/Tab/Tab.js +26 -27
- package/es/Tab/TabContent.js +14 -17
- package/es/Tab/TabContentWrapper.js +14 -17
- package/es/Tab/TabWrapper.js +14 -15
- package/es/Tab/Tabs.js +15 -4
- package/es/Tab/docs/Tab__default.docs.js +1 -0
- package/es/Tag/Tag.js +10 -4
- package/es/Tag/Tag.module.css +14 -11
- package/es/Tag/docs/Tag__default.docs.js +70 -0
- package/es/TextBox/__tests__/TextBox.spec.js +1 -0
- package/es/TextBoxIcon/TextBoxIcon.js +1 -1
- package/es/TextBoxIcon/TextBoxIcon.module.css +5 -2
- package/es/TextBoxIcon/__tests__/TextBoxIcon.spec.js +1 -0
- package/es/Textarea/__tests__/Textarea.spec.js +1 -0
- package/es/Tooltip/Tooltip.js +1 -0
- package/es/a11y/FocusScope/FocusScope.js +4 -10
- package/es/beta/FocusRing/FocusRing.js +1 -4
- package/es/utils/Common.js +11 -31
- package/es/utils/datetime/common.js +3 -6
- package/es/utils/dropDownUtils.js +5 -6
- package/es/utils/getInitial.js +1 -3
- package/lib/AppContainer/AppContainer.js +4 -6
- package/lib/Appearance/dark/themes/blue/blueDarkCTATheme.module.css +33 -33
- package/lib/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +41 -47
- package/lib/Appearance/dark/themes/green/greenDarkCTATheme.module.css +32 -32
- package/lib/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +40 -46
- package/lib/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css +32 -32
- package/lib/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +40 -46
- package/lib/Appearance/dark/themes/red/redDarkCTATheme.module.css +32 -32
- package/lib/Appearance/dark/themes/red/redDarkComponentTheme.module.css +40 -46
- package/lib/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css +32 -32
- package/lib/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +40 -46
- package/lib/Appearance/default/mode/defaultMode.module.css +1 -1
- package/lib/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +33 -33
- package/lib/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +41 -47
- package/lib/Appearance/default/themes/green/greenDefaultCTATheme.module.css +32 -32
- package/lib/Appearance/default/themes/green/greenDefaultComponentTheme.module.css +40 -46
- package/lib/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +32 -32
- package/lib/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css +40 -46
- package/lib/Appearance/default/themes/red/redDefaultCTATheme.module.css +32 -32
- package/lib/Appearance/default/themes/red/redDefaultComponentTheme.module.css +40 -46
- package/lib/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +32 -32
- package/lib/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css +40 -46
- package/lib/Card/Card.js +1 -1
- package/lib/Card/index.js +6 -6
- package/lib/DateTime/CalendarView.js +1 -1
- package/lib/DateTime/DateWidget.module.css +0 -4
- package/lib/DateTime/constants.js +1 -1
- package/lib/DateTime/dateFormatUtils/dateFormat.js +2 -2
- package/lib/DateTime/dateFormatUtils/index.js +13 -13
- package/lib/DateTime/objectUtils.js +1 -1
- package/lib/DropDown/DropDown.js +1 -1
- package/lib/Layout/Box.js +1 -1
- package/lib/Layout/Container.js +1 -1
- package/lib/Layout/index.js +4 -4
- package/lib/Layout/utils.js +2 -2
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +7 -4
- package/lib/MultiSelect/AdvancedMultiSelect.js +6 -3
- package/lib/MultiSelect/AdvancedMultiSelect.module.css +8 -8
- package/lib/MultiSelect/MultiSelect.js +7 -4
- package/lib/MultiSelect/MultiSelect.module.css +8 -13
- package/lib/MultiSelect/MultiSelectWithAvatar.js +6 -3
- package/lib/MultiSelect/SelectedOptions.js +3 -2
- package/lib/PopOver/PopOver.js +1 -1
- package/lib/Provider/Config.js +2 -1
- package/lib/Provider/IdProvider.js +3 -3
- package/lib/Provider/NumberGenerator/NumberGenerator.js +1 -1
- package/lib/Provider/ZindexProvider.js +1 -1
- package/lib/Radio/Radio.js +1 -3
- package/lib/Radio/Radio.module.css +2 -2
- package/lib/Responsive/CustomResponsive.js +1 -1
- package/lib/Responsive/Responsive.js +2 -3
- package/lib/Responsive/sizeObservers.js +2 -3
- package/lib/Responsive/utils/index.js +2 -3
- package/lib/RippleEffect/RippleEffect.js +7 -4
- package/lib/RippleEffect/RippleEffect.module.css +3 -0
- package/lib/Select/Select.module.css +1 -1
- package/lib/Select/SelectWithAvatar.js +7 -4
- package/lib/Tab/Tabs.js +13 -2
- package/lib/Tab/index.js +10 -10
- package/lib/Tag/Tag.js +10 -4
- package/lib/Tag/Tag.module.css +14 -11
- package/lib/Tag/docs/Tag__default.docs.js +70 -0
- package/lib/TextBoxIcon/TextBoxIcon.js +1 -1
- package/lib/TextBoxIcon/TextBoxIcon.module.css +5 -2
- package/lib/a11y/FocusScope/FocusScope.js +1 -1
- package/lib/index.js +308 -308
- package/lib/utils/Common.js +16 -20
- package/lib/utils/datetime/common.js +9 -9
- package/lib/utils/dropDownUtils.js +1 -1
- package/package.json +7 -3
- package/preprocess/componentThemeColors.js +119 -0
- package/preprocess/ctaThemeColors.js +95 -0
- package/preprocess/index.js +2 -0
- package/preprocess/json/componentVariableJson.js +259 -0
- package/preprocess/json/ctaVariableJson.js +337 -0
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
[data-mode='default'][data-theme='yellow'] {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
2
|
+
--zdt_cta_primary_text: #b68c07;
|
|
3
|
+
--zdt_cta_primary_hover_text: #826800;
|
|
4
|
+
--zdt_cta_primary_bg: #e8b923;
|
|
5
|
+
--zdt_cta_primary_hover_bg: #b59100;
|
|
6
|
+
--zdt_cta_primary_border: #e8b923;
|
|
7
|
+
--zdt_cta_primary_hover_border: #b59100;
|
|
8
|
+
--zdt_cta_primary_box_shadow: rgba(232, 185, 35, 0.2);
|
|
9
|
+
--zdt_cta_primary_hover_box_shadow: rgba(181, 145, 0, 0.25);
|
|
10
|
+
--zdt_cta_primary_light_bg: #fdf8e9;
|
|
11
|
+
--zdt_cta_primary_light_hover_bg: #f8eabd;
|
|
12
|
+
--zdt_cta_primary_light_border: #f8eabd;
|
|
13
|
+
--zdt_cta_secondary_bg: #e8b923;
|
|
14
|
+
--zdt_cta_secondary_text: var(--dot_text_black);
|
|
15
|
+
--zdt_cta_secondary_border: rgba(255, 255, 255, 0.2);
|
|
16
|
+
--zdt_cta_secondary_light_border: #f6e3a7;
|
|
17
|
+
--zdt_cta_alpha_text: #b68c07;
|
|
18
|
+
--zdt_cta_alpha_hover_text: #826800;
|
|
19
|
+
--zdt_cta_alpha_border: #b68c07;
|
|
20
|
+
--zdt_cta_alpha_hover_border: #826800;
|
|
21
|
+
--zdt_cta_alpha_bg: #f8eabd;
|
|
22
|
+
--zdt_cta_beta_border: #b68c07;
|
|
23
|
+
--zdt_cta_grey_10_bg: #f8f8f6;
|
|
24
|
+
--zdt_cta_grey_10_border: #f8f8f6;
|
|
25
|
+
--zdt_cta_grey_15_bg: #edede3;
|
|
26
|
+
--zdt_cta_grey_15_border: #edede3;
|
|
27
|
+
--zdt_cta_grey_20_bg: #efefec;
|
|
28
|
+
--zdt_cta_grey_35_bg: #e0dbcc;
|
|
29
|
+
--zdt_cta_grey_35_text: #e0dbcc;
|
|
30
|
+
--zdt_cta_grey_35_border: #e0dbcc;
|
|
31
|
+
--zdt_cta_grey_40_bg: #ccc2a4;
|
|
32
|
+
--zdt_cta_grey_40_text: #ccc2a4;
|
|
33
|
+
--zdt_cta_grey_40_border: #ccc2a4
|
|
34
34
|
}
|
|
@@ -1,48 +1,42 @@
|
|
|
1
1
|
[data-mode='default'][data-theme='yellow'] {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
/* textbox */
|
|
44
|
-
--zdt_textbox_light_text: var(--dot_text_white);
|
|
45
|
-
|
|
46
|
-
/* dropdown */
|
|
47
|
-
--zdt_dropdown_darkheading_text: var(--dot_text_white);
|
|
2
|
+
/* stencil */
|
|
3
|
+
--zdt_stencil_dark_bg: rgba(255, 255, 255, 0.07);
|
|
4
|
+
--zdt_stencil_dark_gradient_bg: linear-gradient(left, rgba(255, 255, 255, 0.07) 0, rgba(255, 255, 255, 0.03) 33.33%, rgba(255, 255, 255, 0.03) 66.66%, rgba(255, 255, 255, 0.07) 100%);
|
|
5
|
+
|
|
6
|
+
/* dropbox */
|
|
7
|
+
--zdt_dropbox_dark_bg: #313323;
|
|
8
|
+
|
|
9
|
+
/* listitem */
|
|
10
|
+
--zdt_listitem_dark_bg: #313323;
|
|
11
|
+
--zdt_listitem_dark_text: #d0d0d4;
|
|
12
|
+
--zdt_listitem_dark_effect_bg: rgba(255, 255, 255, 0.12);
|
|
13
|
+
--zdt_listitem_dark_active_bg: #494c34;
|
|
14
|
+
--zdt_listitem_dark_tickicon: #e8b923;
|
|
15
|
+
|
|
16
|
+
/* tag */
|
|
17
|
+
--zdt_tag_dark_text: #d0d0d4;
|
|
18
|
+
--zdt_tag_dark_bg: rgba(255, 255, 255, 0.07);
|
|
19
|
+
--zdt_tag_dark_hover_text: #d0d0d4;
|
|
20
|
+
--zdt_tag_dark_hover_bg: #503348;
|
|
21
|
+
--zdt_tag_dark_close_bg: #864654;
|
|
22
|
+
--zdt_tag_dark_close_text: #de3535;
|
|
23
|
+
|
|
24
|
+
/* multiselect */
|
|
25
|
+
--zdt_multiselect_dark_border: rgba(255, 255, 255, 0.2);
|
|
26
|
+
--zdt_multiselect_darkmsg_bg: rgba(255, 255, 255, 0.02);
|
|
27
|
+
--zdt_multiselect_darkmsg_text: #d0d0d4;
|
|
28
|
+
--zdt_multiselect_darkdelete_hover_text: var(--dot_text_white);
|
|
29
|
+
|
|
30
|
+
/* avatar */
|
|
31
|
+
--zdt_avatar_white_border: rgba(255, 255, 255, 0.2);
|
|
32
|
+
--zdt_avatar_white_text: var(--dot_text_white);
|
|
33
|
+
|
|
34
|
+
/* label */
|
|
35
|
+
--zdt_label_dark_text: #d0d0d4;
|
|
36
|
+
|
|
37
|
+
/* textbox */
|
|
38
|
+
--zdt_textbox_light_text: var(--dot_text_white);
|
|
39
|
+
|
|
40
|
+
/* dropdown */
|
|
41
|
+
--zdt_dropdown_darkheading_text: var(--dot_text_white);
|
|
48
42
|
}
|
package/lib/Card/Card.js
CHANGED
|
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports["default"] = exports.
|
|
8
|
+
exports.CardFooter = exports["default"] = exports.CardContent = exports.CardHeader = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
package/lib/Card/index.js
CHANGED
|
@@ -11,22 +11,22 @@ Object.defineProperty(exports, "Card", {
|
|
|
11
11
|
return _Card["default"];
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
|
-
Object.defineProperty(exports, "
|
|
14
|
+
Object.defineProperty(exports, "CardHeader", {
|
|
15
15
|
enumerable: true,
|
|
16
16
|
get: function get() {
|
|
17
|
-
return _Card.
|
|
17
|
+
return _Card.CardHeader;
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
|
-
Object.defineProperty(exports, "
|
|
20
|
+
Object.defineProperty(exports, "CardContent", {
|
|
21
21
|
enumerable: true,
|
|
22
22
|
get: function get() {
|
|
23
|
-
return _Card.
|
|
23
|
+
return _Card.CardContent;
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
|
-
Object.defineProperty(exports, "
|
|
26
|
+
Object.defineProperty(exports, "CardFooter", {
|
|
27
27
|
enumerable: true,
|
|
28
28
|
get: function get() {
|
|
29
|
-
return _Card.
|
|
29
|
+
return _Card.CardFooter;
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
|
|
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports["default"] =
|
|
8
|
+
exports.Span = exports["default"] = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.i18nMonths = exports.i18nShortMonths = exports.ampmTextDefault = exports.dayNamesShortDefault = exports.dayNamesDefault = exports.monthNamesShortDefault = exports.monthNamesDefault = exports.flags = exports.INVALID_DATE = exports.INCONSTANT = exports.patternSplitStr = exports.patternChangeStr = exports.supportedPatterns = exports.defaultFormat = void 0;
|
|
7
7
|
var defaultFormat = 'dd-MM-yyyy';
|
|
8
8
|
exports.defaultFormat = defaultFormat;
|
|
9
9
|
var supportedPatterns = ['.', '/', '-', ' ']; // RESTRICTED PATTERNS - ['@']
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.getDateDetails = getDateDetails;
|
|
7
6
|
exports.getDateFormatDetails = getDateFormatDetails;
|
|
8
|
-
exports.getDateFormatSelection = getDateFormatSelection;
|
|
9
7
|
exports.getDateTimeString = getDateTimeString;
|
|
8
|
+
exports.getDateDetails = getDateDetails;
|
|
10
9
|
exports.getIsValidDate = getIsValidDate;
|
|
11
10
|
exports.getSelectedDate = getSelectedDate;
|
|
11
|
+
exports.getDateFormatSelection = getDateFormatSelection;
|
|
12
12
|
|
|
13
13
|
var _datetimejs = _interopRequireDefault(require("@zohodesk/datetimejs"));
|
|
14
14
|
|
|
@@ -3,25 +3,25 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.addZero = addZero;
|
|
7
|
-
exports.arrayIsNotEqual = arrayIsNotEqual;
|
|
8
|
-
exports.convertTwoDigitToYear = convertTwoDigitToYear;
|
|
9
6
|
exports.convertYearToTwoDigit = convertYearToTwoDigit;
|
|
10
|
-
exports.
|
|
7
|
+
exports.addZero = addZero;
|
|
11
8
|
exports.getDayEnd = getDayEnd;
|
|
12
|
-
exports.
|
|
13
|
-
exports.getIsCurrentYear = getIsCurrentYear;
|
|
9
|
+
exports.getIsNumberTyped = getIsNumberTyped;
|
|
14
10
|
exports.getIsDeleteTyped = getIsDeleteTyped;
|
|
15
|
-
exports.getIsEmptyHour = getIsEmptyHour;
|
|
16
|
-
exports.getIsEmptyYear = getIsEmptyYear;
|
|
17
11
|
exports.getIsNewValueType = getIsNewValueType;
|
|
18
|
-
exports.
|
|
19
|
-
exports.getIsNumberTyped = getIsNumberTyped;
|
|
20
|
-
exports.getIsSupportedKey = getIsSupportedKey;
|
|
21
|
-
exports.getMinuteDetails = getMinuteDetails;
|
|
12
|
+
exports.getDayDetails = getDayDetails;
|
|
22
13
|
exports.getMonthDetails = getMonthDetails;
|
|
23
|
-
exports.getNoonDetails = getNoonDetails;
|
|
24
14
|
exports.getYearDetails = getYearDetails;
|
|
15
|
+
exports.convertTwoDigitToYear = convertTwoDigitToYear;
|
|
16
|
+
exports.getHourDetails = getHourDetails;
|
|
17
|
+
exports.getMinuteDetails = getMinuteDetails;
|
|
18
|
+
exports.getIsNoonValueTyped = getIsNoonValueTyped;
|
|
19
|
+
exports.getNoonDetails = getNoonDetails;
|
|
20
|
+
exports.getIsSupportedKey = getIsSupportedKey;
|
|
21
|
+
exports.arrayIsNotEqual = arrayIsNotEqual;
|
|
22
|
+
exports.getIsEmptyHour = getIsEmptyHour;
|
|
23
|
+
exports.getIsEmptyYear = getIsEmptyYear;
|
|
24
|
+
exports.getIsCurrentYear = getIsCurrentYear;
|
|
25
25
|
exports.removeYearPattern = removeYearPattern;
|
|
26
26
|
|
|
27
27
|
var _datetimejs = _interopRequireDefault(require("@zohodesk/datetimejs"));
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.equals = exports.omit = exports.extract = exports.clone = void 0;
|
|
7
7
|
|
|
8
8
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
9
9
|
|
package/lib/DropDown/DropDown.js
CHANGED
|
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports
|
|
8
|
+
exports.DropDownItemContainer = exports.DropDownContainer = exports.DropDownTarget = exports["default"] = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
package/lib/Layout/Box.js
CHANGED
package/lib/Layout/Container.js
CHANGED
package/lib/Layout/index.js
CHANGED
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "
|
|
6
|
+
Object.defineProperty(exports, "Container", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function get() {
|
|
9
|
-
return
|
|
9
|
+
return _Container["default"];
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
Object.defineProperty(exports, "
|
|
12
|
+
Object.defineProperty(exports, "Box", {
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function get() {
|
|
15
|
-
return
|
|
15
|
+
return _Box["default"];
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
exports.Layout = void 0;
|
package/lib/Layout/utils.js
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.ViewportSizeType = exports.ColumnSizeType = void 0;
|
|
7
|
-
exports.createProps = createProps;
|
|
8
6
|
exports.getClass = getClass;
|
|
7
|
+
exports.createProps = createProps;
|
|
9
8
|
exports.isInteger = isInteger;
|
|
10
9
|
exports.setProps = setProps;
|
|
10
|
+
exports.ViewportSizeType = exports.ColumnSizeType = void 0;
|
|
11
11
|
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
13
|
|
|
@@ -945,7 +945,8 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
945
945
|
i18nKeys = _this$props8.i18nKeys,
|
|
946
946
|
a11y = _this$props8.a11y,
|
|
947
947
|
isSearchClearOnSelect = _this$props8.isSearchClearOnSelect,
|
|
948
|
-
palette = _this$props8.palette
|
|
948
|
+
palette = _this$props8.palette,
|
|
949
|
+
needEffect = _this$props8.needEffect;
|
|
949
950
|
var _i18nKeys = i18nKeys,
|
|
950
951
|
_i18nKeys$clearText = _i18nKeys.clearText,
|
|
951
952
|
clearText = _i18nKeys$clearText === void 0 ? 'Clear all' : _i18nKeys$clearText;
|
|
@@ -973,7 +974,7 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
973
974
|
var setAriaId = this.getNextAriaId();
|
|
974
975
|
var ariaErrorId = this.getNextAriaId();
|
|
975
976
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
976
|
-
className: "".concat(_MultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _MultiSelectModule["default"].disabled : ''),
|
|
977
|
+
className: "".concat(_MultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _MultiSelectModule["default"].disabled : '', " ").concat(needEffect && !(isDisabled || isReadOnly) ? _MultiSelectModule["default"].effect : ''),
|
|
977
978
|
"data-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
|
|
978
979
|
"data-title": isDisabled ? title : '',
|
|
979
980
|
onClick: this.handleInputFocus
|
|
@@ -1150,7 +1151,8 @@ AdvancedGroupMultiSelect.defaultProps = {
|
|
|
1150
1151
|
isPadding: false,
|
|
1151
1152
|
i18nKeys: {},
|
|
1152
1153
|
a11y: {},
|
|
1153
|
-
isSearchClearOnSelect: true
|
|
1154
|
+
isSearchClearOnSelect: true,
|
|
1155
|
+
needEffect: _propTypes["default"].bool
|
|
1154
1156
|
};
|
|
1155
1157
|
AdvancedGroupMultiSelect.propTypes = {
|
|
1156
1158
|
animationStyle: _propTypes["default"].string,
|
|
@@ -1200,7 +1202,8 @@ AdvancedGroupMultiSelect.propTypes = {
|
|
|
1200
1202
|
variant: _propTypes["default"].string,
|
|
1201
1203
|
htmlId: _propTypes["default"].string,
|
|
1202
1204
|
isSearchClearOnSelect: _propTypes["default"].bool,
|
|
1203
|
-
palette: _propTypes["default"].oneOf(['default', 'dark'])
|
|
1205
|
+
palette: _propTypes["default"].oneOf(['default', 'dark']),
|
|
1206
|
+
needEffect: true
|
|
1204
1207
|
};
|
|
1205
1208
|
|
|
1206
1209
|
if (false) {
|
|
@@ -411,7 +411,8 @@ var AdvancedMultiSelectComponent = /*#__PURE__*/function (_MultiSelectComponent)
|
|
|
411
411
|
borderColor = _this$props5.borderColor,
|
|
412
412
|
isBoxPaddingNeed = _this$props5.isBoxPaddingNeed,
|
|
413
413
|
getFooter = _this$props5.getFooter,
|
|
414
|
-
customProps = _this$props5.customProps
|
|
414
|
+
customProps = _this$props5.customProps,
|
|
415
|
+
needEffect = _this$props5.needEffect;
|
|
415
416
|
var _customProps$Suggesti = customProps.SuggestionsProps,
|
|
416
417
|
SuggestionsProps = _customProps$Suggesti === void 0 ? {} : _customProps$Suggesti,
|
|
417
418
|
_customProps$DropBoxP = customProps.DropBoxProps,
|
|
@@ -441,7 +442,7 @@ var AdvancedMultiSelectComponent = /*#__PURE__*/function (_MultiSelectComponent)
|
|
|
441
442
|
var setAriaId = this.getNextAriaId();
|
|
442
443
|
var ariaErrorId = this.getNextAriaId();
|
|
443
444
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
444
|
-
className: "".concat(_AdvancedMultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _AdvancedMultiSelectModule["default"].disabled : '', " ").concat(borderColor === 'transparent' ? _AdvancedMultiSelectModule["default"].transparentContainer : ''),
|
|
445
|
+
className: "".concat(_AdvancedMultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _AdvancedMultiSelectModule["default"].disabled : '', " ").concat(borderColor === 'transparent' ? _AdvancedMultiSelectModule["default"].transparentContainer : '', " ").concat(needEffect && !(isDisabled || isReadOnly) ? _AdvancedMultiSelectModule["default"].effect : ''),
|
|
445
446
|
"data-id": dataIdMultiSelectComp,
|
|
446
447
|
"data-title": isDisabled ? title : '',
|
|
447
448
|
onClick: this.handleInputFocus
|
|
@@ -588,6 +589,7 @@ AdvancedMultiSelectComponent.propTypes = {
|
|
|
588
589
|
//For grouping multiSelect
|
|
589
590
|
getPublicMethods: _propTypes["default"].func,
|
|
590
591
|
optionType: _propTypes["default"].oneOf(['default', 'avatar', 'icon']),
|
|
592
|
+
needEffect: _propTypes["default"].bool,
|
|
591
593
|
animationStyle: _propTypes["default"].string,
|
|
592
594
|
defaultDropBoxPosition: _propTypes["default"].oneOf(['bottom', 'top', 'left', 'right']),
|
|
593
595
|
dropBoxSize: _propTypes["default"].oneOf(['small', 'medium', 'large']),
|
|
@@ -662,7 +664,8 @@ AdvancedMultiSelectComponent.defaultProps = {
|
|
|
662
664
|
borderColor: 'default',
|
|
663
665
|
isBoxPaddingNeed: true,
|
|
664
666
|
isSearchClearOnSelect: true,
|
|
665
|
-
customProps: {}
|
|
667
|
+
customProps: {},
|
|
668
|
+
needEffect: true
|
|
666
669
|
};
|
|
667
670
|
AdvancedMultiSelectComponent.displayName = 'AdvancedMultiSelect';
|
|
668
671
|
var AdvancedMultiSelect = (0, _Popup["default"])(AdvancedMultiSelectComponent);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
.wrapper {
|
|
2
2
|
position: relative;
|
|
3
3
|
}
|
|
4
|
-
.disabled {
|
|
5
|
-
|
|
4
|
+
.disabled, .readOnly {
|
|
5
|
+
cursor: not-allowed;
|
|
6
6
|
}
|
|
7
7
|
.container {
|
|
8
8
|
max-height: var(--zd_size120);
|
|
@@ -16,28 +16,28 @@
|
|
|
16
16
|
.borderColor_transparent {
|
|
17
17
|
border-bottom-color: var(--zdt_advancedmultiselect_transparent_border);
|
|
18
18
|
}
|
|
19
|
-
.borderColor_transparent:hover {
|
|
19
|
+
.effect .borderColor_transparent:hover {
|
|
20
20
|
border-bottom-color: var(--zdt_advancedmultiselect_transparent_hover_border);
|
|
21
21
|
}
|
|
22
|
-
.borderColor_transparent.active {
|
|
22
|
+
.effect .borderColor_transparent.active {
|
|
23
23
|
border-bottom-color: var(--zdt_advancedmultiselect_transparent_active_border);
|
|
24
24
|
}
|
|
25
25
|
.borderColor_default {
|
|
26
26
|
border-bottom-color: var(--zdt_advancedmultiselect_default_border);
|
|
27
27
|
}
|
|
28
|
-
.borderColor_default:hover {
|
|
28
|
+
.effect .borderColor_default:hover {
|
|
29
29
|
border-bottom-color: var(--zdt_advancedmultiselect_default_hover_border);
|
|
30
30
|
}
|
|
31
|
-
.borderColor_default.active {
|
|
31
|
+
.effect .borderColor_default.active {
|
|
32
32
|
border-bottom-color: var(--zdt_advancedmultiselect_default_active_border);
|
|
33
33
|
}
|
|
34
34
|
.borderColor_dark {
|
|
35
35
|
border-bottom-color: var(--zdt_advancedmultiselect_dark_border);
|
|
36
36
|
}
|
|
37
|
-
.borderColor_dark:hover {
|
|
37
|
+
.effect .borderColor_dark:hover {
|
|
38
38
|
border-bottom-color: var(--zdt_advancedmultiselect_dark_hover_border);
|
|
39
39
|
}
|
|
40
|
-
.borderColor_dark.active {
|
|
40
|
+
.effect .borderColor_dark.active {
|
|
41
41
|
border-bottom-color: var(--zdt_advancedmultiselect_dark_active_border);
|
|
42
42
|
}
|
|
43
43
|
[dir=ltr] .container.medium {
|
|
@@ -936,7 +936,8 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
936
936
|
a11y = _this$props13.a11y,
|
|
937
937
|
children = _this$props13.children,
|
|
938
938
|
customChildrenClass = _this$props13.customChildrenClass,
|
|
939
|
-
getFooter = _this$props13.getFooter
|
|
939
|
+
getFooter = _this$props13.getFooter,
|
|
940
|
+
needEffect = _this$props13.needEffect;
|
|
940
941
|
var _i18nKeys = i18nKeys,
|
|
941
942
|
_i18nKeys$clearText = _i18nKeys.clearText,
|
|
942
943
|
clearText = _i18nKeys$clearText === void 0 ? 'Clear all' : _i18nKeys$clearText,
|
|
@@ -962,7 +963,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
962
963
|
var ariaErrorId = this.getNextAriaId();
|
|
963
964
|
var isShowClearIcon = !isReadOnly && !isDisabled && !disableAction && selectedOptions.length > 1;
|
|
964
965
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
965
|
-
className: "".concat(_MultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _MultiSelectModule["default"].disabled : '', " ").concat(isReadOnly ? _MultiSelectModule["default"].readOnly : '', " ").concat(disableAction ? (0, _CssProvider["default"])('isBlock') : '', " ").concat(borderColor === 'transparent' ? _MultiSelectModule["default"].transparentContainer : ''),
|
|
966
|
+
className: "".concat(_MultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _MultiSelectModule["default"].disabled : '', " ").concat(isReadOnly ? _MultiSelectModule["default"].readOnly : '', " ").concat(disableAction ? (0, _CssProvider["default"])('isBlock') : '', " ").concat(borderColor === 'transparent' ? _MultiSelectModule["default"].transparentContainer : '', " ").concat(needEffect && !(isDisabled || isReadOnly) ? _MultiSelectModule["default"].effect : ''),
|
|
966
967
|
"data-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
|
|
967
968
|
"data-title": isDisabled ? title : '',
|
|
968
969
|
onClick: this.handleInputFocus
|
|
@@ -1169,7 +1170,8 @@ MultiSelectComponent.propTypes = {
|
|
|
1169
1170
|
children: _propTypes["default"].node,
|
|
1170
1171
|
customChildrenClass: _propTypes["default"].string,
|
|
1171
1172
|
disabledOptions: _propTypes["default"].arrayOf(_propTypes["default"].string),
|
|
1172
|
-
getFooter: _propTypes["default"].func
|
|
1173
|
+
getFooter: _propTypes["default"].func,
|
|
1174
|
+
needEffect: _propTypes["default"].bool
|
|
1173
1175
|
};
|
|
1174
1176
|
MultiSelectComponent.defaultProps = {
|
|
1175
1177
|
animationStyle: 'bounce',
|
|
@@ -1199,7 +1201,8 @@ MultiSelectComponent.defaultProps = {
|
|
|
1199
1201
|
a11y: {},
|
|
1200
1202
|
textBoxClass: '',
|
|
1201
1203
|
palette: 'default',
|
|
1202
|
-
isSearchClearOnSelect: true
|
|
1204
|
+
isSearchClearOnSelect: true,
|
|
1205
|
+
needEffect: true
|
|
1203
1206
|
};
|
|
1204
1207
|
|
|
1205
1208
|
if (false) {
|
|
@@ -2,14 +2,9 @@
|
|
|
2
2
|
position: relative;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
.disabled {
|
|
6
|
-
|
|
5
|
+
.disabled, .readOnly {
|
|
6
|
+
cursor: not-allowed;
|
|
7
7
|
}
|
|
8
|
-
|
|
9
|
-
.readOnly {
|
|
10
|
-
composes: readonly from '../common/common.module.css';
|
|
11
|
-
}
|
|
12
|
-
|
|
13
8
|
.container {
|
|
14
9
|
max-height: var(--zd_size120);
|
|
15
10
|
composes: oflowy from '../common/common.module.css';
|
|
@@ -22,28 +17,28 @@
|
|
|
22
17
|
.borderColor_transparent {
|
|
23
18
|
border-bottom-color: var(--zdt_multiselect_transparent_border);
|
|
24
19
|
}
|
|
25
|
-
.borderColor_transparent:hover {
|
|
20
|
+
.effect .borderColor_transparent:hover {
|
|
26
21
|
border-bottom-color: var(--zdt_multiselect_transparent_hover_border);
|
|
27
22
|
}
|
|
28
|
-
.borderColor_transparent.active {
|
|
23
|
+
.effect .borderColor_transparent.active {
|
|
29
24
|
border-bottom-color: var(--zdt_multiselect_transparent_active_border);
|
|
30
25
|
}
|
|
31
26
|
.borderColor_default {
|
|
32
27
|
border-bottom-color: var(--zdt_multiselect_default_border);
|
|
33
28
|
}
|
|
34
|
-
.borderColor_default:hover {
|
|
29
|
+
.effect .borderColor_default:hover {
|
|
35
30
|
border-bottom-color: var(--zdt_multiselect_default_hover_border);
|
|
36
31
|
}
|
|
37
|
-
.borderColor_default.active {
|
|
32
|
+
.effect .borderColor_default.active {
|
|
38
33
|
border-bottom-color: var(--zdt_multiselect_default_active_border);
|
|
39
34
|
}
|
|
40
35
|
.borderColor_dark {
|
|
41
36
|
border-bottom-color: var(--zdt_multiselect_dark_border);
|
|
42
37
|
}
|
|
43
|
-
.borderColor_dark:hover {
|
|
38
|
+
.effect .borderColor_dark:hover {
|
|
44
39
|
border-bottom-color: var(--zdt_multiselect_dark_hover_border);
|
|
45
40
|
}
|
|
46
|
-
.borderColor_dark.active {
|
|
41
|
+
.effect .borderColor_dark.active {
|
|
47
42
|
border-bottom-color: var(--zdt_multiselect_dark_active_border);
|
|
48
43
|
}
|
|
49
44
|
|
|
@@ -140,7 +140,8 @@ var MultiSelectWithAvatarComponent = /*#__PURE__*/function (_MultiSelectComponen
|
|
|
140
140
|
a11y = _this$props.a11y,
|
|
141
141
|
children = _this$props.children,
|
|
142
142
|
customChildrenClass = _this$props.customChildrenClass,
|
|
143
|
-
isBoxPaddingNeed = _this$props.isBoxPaddingNeed
|
|
143
|
+
isBoxPaddingNeed = _this$props.isBoxPaddingNeed,
|
|
144
|
+
needEffect = _this$props.needEffect;
|
|
144
145
|
var _i18nKeys = i18nKeys,
|
|
145
146
|
_i18nKeys$clearText = _i18nKeys.clearText,
|
|
146
147
|
clearText = _i18nKeys$clearText === void 0 ? 'Clear all' : _i18nKeys$clearText;
|
|
@@ -165,7 +166,7 @@ var MultiSelectWithAvatarComponent = /*#__PURE__*/function (_MultiSelectComponen
|
|
|
165
166
|
var popUpState = !isReadOnly && !isDisabled && !disableAction && isPopupOpen;
|
|
166
167
|
var isShowClearIcon = !isReadOnly && !isDisabled && !disableAction && selectedOptions.length > 1;
|
|
167
168
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
168
|
-
className: " ".concat(_MultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _MultiSelectModule["default"].disabled : '', " ").concat(isReadOnly ? _MultiSelectModule["default"].readOnly : '', " ").concat(disableAction ? (0, _CssProvider["default"])('isBlock') : '', " ").concat(borderColor === 'transparent' ? _MultiSelectModule["default"].transparentContainer : ''),
|
|
169
|
+
className: " ".concat(_MultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _MultiSelectModule["default"].disabled : '', " ").concat(isReadOnly ? _MultiSelectModule["default"].readOnly : '', " ").concat(disableAction ? (0, _CssProvider["default"])('isBlock') : '', " ").concat(borderColor === 'transparent' ? _MultiSelectModule["default"].transparentContainer : '', " ").concat(needEffect && !(isDisabled || isReadOnly) ? _MultiSelectModule["default"].effect : ''),
|
|
169
170
|
"data-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
|
|
170
171
|
"data-title": isDisabled ? title : '',
|
|
171
172
|
onClick: this.handleInputFocus
|
|
@@ -339,6 +340,7 @@ MultiSelectWithAvatarComponent.propTypes = {
|
|
|
339
340
|
palette: _propTypes["default"].oneOf(['default', 'dark']),
|
|
340
341
|
htmlId: _propTypes["default"].string,
|
|
341
342
|
isBoxPaddingNeed: _propTypes["default"].bool,
|
|
343
|
+
needEffect: _propTypes["default"].bool,
|
|
342
344
|
|
|
343
345
|
/**** Popup props ****/
|
|
344
346
|
isPopupOpen: _propTypes["default"].bool,
|
|
@@ -388,7 +390,8 @@ MultiSelectWithAvatarComponent.defaultProps = {
|
|
|
388
390
|
a11y: {},
|
|
389
391
|
palette: 'default',
|
|
390
392
|
isBoxPaddingNeed: true,
|
|
391
|
-
isSearchClearOnSelect: true
|
|
393
|
+
isSearchClearOnSelect: true,
|
|
394
|
+
needEffect: true
|
|
392
395
|
};
|
|
393
396
|
MultiSelectWithAvatarComponent.displayName = 'MultiSelectWithAvatar';
|
|
394
397
|
var MultiSelectWithAvatar = (0, _Popup["default"])(MultiSelectWithAvatarComponent);
|
|
@@ -76,13 +76,14 @@ var SelectedOptions = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
76
76
|
isDisabled = option.isDisabled;
|
|
77
77
|
var commonProps = {
|
|
78
78
|
disabled: isDisabled,
|
|
79
|
-
onRemove: isDisabled ? null : onRemove,
|
|
79
|
+
onRemove: isDisabled || isReadOnly ? null : onRemove,
|
|
80
80
|
text: value,
|
|
81
81
|
palette: isDarkPalette,
|
|
82
82
|
onSelectTag: isReadOnly ? null : onSelect,
|
|
83
83
|
getRef: getRef,
|
|
84
84
|
initial: value,
|
|
85
|
-
id: id
|
|
85
|
+
id: id,
|
|
86
|
+
isReadOnly: isReadOnly
|
|
86
87
|
};
|
|
87
88
|
|
|
88
89
|
if (optionType === 'avatar') {
|
package/lib/PopOver/PopOver.js
CHANGED
|
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports
|
|
8
|
+
exports.PopOverContainer = exports.PopOverTarget = exports["default"] = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|