@zohodesk/components 1.0.0-temp-191 → 1.0.0-temp-193
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/.cli/propValidation_report.html +1 -1
- package/README.md +4 -0
- package/assets/Appearance/dark/mode/Component_DarkMode.module.css +29 -2
- package/assets/Appearance/light/mode/Component_LightMode.module.css +29 -2
- package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +29 -2
- package/es/AppContainer/AppContainer.js +9 -10
- package/es/AppContainer/AppContainer.module.css +2 -2
- package/es/Avatar/Avatar.js +5 -4
- package/es/Avatar/Avatar.module.css +44 -26
- package/es/AvatarTeam/AvatarTeam.js +7 -7
- package/es/AvatarTeam/AvatarTeam.module.css +62 -74
- package/es/Button/Button.js +6 -5
- package/es/Button/css/Button.module.css +156 -100
- package/es/Buttongroup/Buttongroup.module.css +50 -17
- package/es/CheckBox/CheckBox.js +8 -8
- package/es/CheckBox/CheckBox.module.css +35 -60
- package/es/DateTime/DateTime.js +8 -2
- package/es/DateTime/DateTime.module.css +85 -57
- package/es/DateTime/DateWidget.js +14 -3
- package/es/DateTime/DateWidget.module.css +11 -7
- package/es/DateTime/Time.js +30 -13
- package/es/DateTime/YearView.module.css +34 -21
- package/es/DateTime/props/defaultProps.js +4 -2
- package/es/DateTime/props/propTypes.js +6 -3
- package/es/DropBox/DropBox.js +11 -10
- package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +100 -81
- package/es/DropBox/css/DropBox.module.css +23 -6
- package/es/DropDown/DropDown.js +1 -2
- package/es/DropDown/DropDown.module.css +2 -2
- package/es/DropDown/DropDownHeading.module.css +15 -15
- package/es/DropDown/DropDownItem.module.css +40 -22
- package/es/DropDown/DropDownSearch.module.css +3 -3
- package/es/DropDown/DropDownSeparator.module.css +2 -2
- package/es/Heading/Heading.module.css +2 -2
- package/es/Label/Label.module.css +11 -23
- package/es/Label/LabelColors.module.css +1 -7
- package/es/Layout/Layout.module.css +15 -15
- package/es/ListItem/ListContainer.js +5 -6
- package/es/ListItem/ListItem.js +5 -4
- package/es/ListItem/ListItem.module.css +80 -98
- package/es/ListItem/ListItemWithAvatar.js +5 -4
- package/es/ListItem/ListItemWithCheckBox.js +5 -4
- package/es/ListItem/ListItemWithIcon.js +5 -4
- package/es/ListItem/ListItemWithRadio.js +5 -4
- package/es/Modal/Modal.js +5 -4
- package/es/MultiSelect/AdvancedMultiSelect.js +9 -8
- package/es/MultiSelect/MobileHeader/MobileHeader.module.css +16 -19
- package/es/MultiSelect/MultiSelect.module.css +55 -69
- package/es/MultiSelect/MultiSelectWithAvatar.js +5 -4
- package/es/MultiSelect/SelectedOptions.js +8 -6
- package/es/MultiSelect/SelectedOptions.module.css +11 -5
- package/es/MultiSelect/Suggestions.js +8 -6
- package/es/MultiSelect/props/defaultProps.js +4 -2
- package/es/PopOver/PopOver.module.css +2 -2
- package/es/Popup/Popup.js +4 -3
- package/es/Radio/Radio.js +8 -8
- package/es/Radio/Radio.module.css +22 -37
- package/es/ResponsiveDropBox/ResponsiveDropBox.js +4 -2
- package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
- package/es/Ribbon/Ribbon.module.css +143 -64
- package/es/RippleEffect/RippleEffect.module.css +9 -27
- package/es/Select/Select.js +5 -4
- package/es/Select/Select.module.css +33 -22
- package/es/Stencils/Stencils.module.css +32 -14
- package/es/Switch/Switch.js +8 -8
- package/es/Switch/Switch.module.css +30 -35
- package/es/Tab/Tab.js +5 -4
- package/es/Tab/Tab.module.css +28 -39
- package/es/Tab/TabContentWrapper.js +5 -4
- package/es/Tab/TabWrapper.js +4 -2
- package/es/Tab/Tabs.js +16 -16
- package/es/Tab/Tabs.module.css +51 -29
- package/es/Tag/Tag.module.css +60 -91
- package/es/TextBox/TextBox.js +5 -5
- package/es/TextBox/TextBox.module.css +19 -23
- package/es/TextBoxIcon/TextBoxIcon.js +4 -2
- package/es/TextBoxIcon/TextBoxIcon.module.css +15 -8
- package/es/Textarea/Textarea.js +6 -4
- package/es/Textarea/Textarea.module.css +30 -60
- package/es/Tooltip/Tooltip.module.css +12 -13
- package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -4
- package/es/common/animation.module.css +227 -29
- package/es/common/avatarsizes.module.css +16 -16
- package/es/common/basicReset.module.css +5 -15
- package/es/common/common.module.css +82 -36
- package/es/common/customscroll.module.css +33 -12
- package/es/common/transition.module.css +50 -10
- package/es/deprecated/PortalLayer/PortalLayer.js +6 -8
- package/es/semantic/Button/semanticButton.module.css +3 -3
- package/es/v1/AppContainer/AppContainer.js +9 -10
- package/es/v1/Avatar/Avatar.js +5 -4
- package/es/v1/AvatarTeam/AvatarTeam.js +7 -7
- package/es/v1/Button/Button.js +6 -5
- package/es/v1/CheckBox/CheckBox.js +8 -8
- package/es/v1/DropBox/DropBox.js +11 -10
- package/es/v1/DropDown/DropDown.js +1 -2
- package/es/v1/ListItem/ListContainer.js +5 -6
- package/es/v1/ListItem/ListItem.js +5 -4
- package/es/v1/ListItem/ListItemWithAvatar.js +5 -4
- package/es/v1/ListItem/ListItemWithCheckBox.js +5 -4
- package/es/v1/ListItem/ListItemWithIcon.js +5 -4
- package/es/v1/ListItem/ListItemWithRadio.js +5 -4
- package/es/v1/Modal/Modal.js +5 -4
- package/es/v1/MultiSelect/AdvancedMultiSelect.js +9 -8
- package/es/v1/MultiSelect/MultiSelectWithAvatar.js +5 -4
- package/es/v1/MultiSelect/SelectedOptions.js +8 -6
- package/es/v1/MultiSelect/Suggestions.js +8 -6
- package/es/v1/MultiSelect/props/defaultProps.js +4 -2
- package/es/v1/Popup/Popup.js +4 -3
- package/es/v1/Radio/Radio.js +8 -8
- package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +4 -2
- package/es/v1/Select/Select.js +5 -4
- package/es/v1/Switch/Switch.js +8 -8
- package/es/v1/Tab/Tab.js +5 -4
- package/es/v1/Tab/TabContentWrapper.js +5 -4
- package/es/v1/Tab/TabWrapper.js +4 -2
- package/es/v1/Tab/Tabs.js +16 -16
- package/es/v1/Tab/v1Tab.module.css +28 -39
- package/es/v1/Tab/v1Tabs.module.css +51 -29
- package/es/v1/TextBox/TextBox.js +5 -5
- package/es/v1/TextBoxIcon/TextBoxIcon.js +4 -2
- package/es/v1/Textarea/Textarea.js +6 -4
- package/es/v1/Typography/css/Typography.module.css +39 -33
- package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -4
- package/lib/AppContainer/AppContainer.module.css +2 -2
- package/lib/Avatar/Avatar.module.css +44 -26
- package/lib/AvatarTeam/AvatarTeam.module.css +62 -74
- package/lib/Button/css/Button.module.css +156 -100
- package/lib/Buttongroup/Buttongroup.module.css +50 -17
- package/lib/CheckBox/CheckBox.module.css +35 -60
- package/lib/DateTime/DateTime.js +13 -2
- package/lib/DateTime/DateTime.module.css +85 -57
- package/lib/DateTime/DateWidget.js +19 -3
- package/lib/DateTime/DateWidget.module.css +11 -7
- package/lib/DateTime/Time.js +35 -13
- package/lib/DateTime/YearView.module.css +34 -21
- package/lib/DateTime/props/defaultProps.js +4 -2
- package/lib/DateTime/props/propTypes.js +6 -3
- package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +100 -81
- package/lib/DropBox/css/DropBox.module.css +23 -6
- package/lib/DropDown/DropDown.module.css +2 -2
- package/lib/DropDown/DropDownHeading.module.css +15 -15
- package/lib/DropDown/DropDownItem.module.css +40 -22
- package/lib/DropDown/DropDownSearch.module.css +3 -3
- package/lib/DropDown/DropDownSeparator.module.css +2 -2
- package/lib/Heading/Heading.module.css +2 -2
- package/lib/Label/Label.module.css +11 -23
- package/lib/Label/LabelColors.module.css +1 -7
- package/lib/Layout/Layout.module.css +15 -15
- package/lib/ListItem/ListItem.module.css +80 -98
- package/lib/MultiSelect/MobileHeader/MobileHeader.module.css +16 -19
- package/lib/MultiSelect/MultiSelect.module.css +55 -69
- package/lib/MultiSelect/SelectedOptions.module.css +11 -5
- package/lib/MultiSelect/props/defaultProps.js +4 -2
- package/lib/PopOver/PopOver.module.css +2 -2
- package/lib/Radio/Radio.module.css +22 -37
- package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
- package/lib/Ribbon/Ribbon.module.css +143 -64
- package/lib/RippleEffect/RippleEffect.module.css +9 -27
- package/lib/Select/Select.module.css +33 -22
- package/lib/Stencils/Stencils.module.css +32 -14
- package/lib/Switch/Switch.module.css +30 -35
- package/lib/Tab/Tab.module.css +28 -39
- package/lib/Tab/Tabs.module.css +51 -29
- package/lib/Tag/Tag.module.css +60 -91
- package/lib/TextBox/TextBox.module.css +19 -23
- package/lib/TextBoxIcon/TextBoxIcon.module.css +15 -8
- package/lib/Textarea/Textarea.module.css +30 -60
- package/lib/Tooltip/Tooltip.module.css +12 -13
- package/lib/common/animation.module.css +227 -29
- package/lib/common/avatarsizes.module.css +16 -16
- package/lib/common/basicReset.module.css +5 -15
- package/lib/common/common.module.css +82 -36
- package/lib/common/customscroll.module.css +33 -12
- package/lib/common/transition.module.css +50 -10
- package/lib/semantic/Button/semanticButton.module.css +3 -3
- package/lib/v1/MultiSelect/props/defaultProps.js +4 -2
- package/lib/v1/Tab/v1Tab.module.css +28 -39
- package/lib/v1/Tab/v1Tabs.module.css +51 -29
- package/lib/v1/Typography/css/Typography.module.css +39 -33
- package/package.json +3 -3
- package/result.json +1 -0
package/es/Textarea/Textarea.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import { defaultProps } from './props/defaultProps';
|
|
3
5
|
import { propTypes } from './props/propTypes';
|
|
@@ -85,12 +87,12 @@ export default class Textarea extends React.Component {
|
|
|
85
87
|
}
|
|
86
88
|
|
|
87
89
|
let classList = needAppearance ? `${style.container} ${style[size]} ${style[variant]} ${needBorder ? style.needBorder : style.noBorder} ${resize ? style[resizes[resize]] : style[resizes.none]} ${animated ? `${style[`${size}animated`]}` : ''} ${isDisabled && !needEffect || isReadOnly && !needEffect ? '' : style.effect}` : `${style.basic}`;
|
|
88
|
-
return /*#__PURE__*/React.createElement("textarea", {
|
|
90
|
+
return /*#__PURE__*/React.createElement("textarea", _extends({
|
|
89
91
|
"aria-label": ariaLabel,
|
|
90
92
|
"aria-labelledby": ariaLabelledby,
|
|
91
93
|
className: `${customClass} ${isReadOnly && needReadOnlyStyle ? style.readonly : ''} ${classList} ${style[`borderColor_${borderColor}`]}`,
|
|
92
|
-
placeholder: placeHolder
|
|
93
|
-
|
|
94
|
+
placeholder: placeHolder
|
|
95
|
+
}, options, {
|
|
94
96
|
"data-id": dataId,
|
|
95
97
|
"data-test-id": dataId,
|
|
96
98
|
maxLength: maxLength,
|
|
@@ -102,7 +104,7 @@ export default class Textarea extends React.Component {
|
|
|
102
104
|
value: text,
|
|
103
105
|
id: htmlId,
|
|
104
106
|
"data-selector-id": dataSelectorId
|
|
105
|
-
});
|
|
107
|
+
}));
|
|
106
108
|
}
|
|
107
109
|
|
|
108
110
|
}
|
|
@@ -4,15 +4,14 @@
|
|
|
4
4
|
--textarea_border_color: none;
|
|
5
5
|
--textarea_cursor: text;
|
|
6
6
|
--textarea_text_color: var(--zdt_textarea_default_text);
|
|
7
|
-
--textarea_font_size:
|
|
7
|
+
--textarea_font_size: var(--zd_font_size14);
|
|
8
8
|
--textarea_line_height: 1.5712;
|
|
9
|
-
--textarea_padding:
|
|
10
|
-
--textarea_height:
|
|
9
|
+
--textarea_padding: var(--zd_size2) 0;
|
|
10
|
+
--textarea_height: var(--zd_size30);
|
|
11
11
|
|
|
12
12
|
/* textarea placeholder default variable */
|
|
13
13
|
--textarea_placeholder_text_color: var(--zdt_textarea_placeholder_text);
|
|
14
14
|
}
|
|
15
|
-
|
|
16
15
|
.basic {
|
|
17
16
|
composes: varClass;
|
|
18
17
|
-webkit-appearance: none;
|
|
@@ -20,151 +19,122 @@
|
|
|
20
19
|
appearance: none;
|
|
21
20
|
outline: 0;
|
|
22
21
|
letter-spacing: 0.1px;
|
|
23
|
-
cursor: var(--textarea_cursor);
|
|
24
22
|
color: var(--textarea_text_color);
|
|
23
|
+
cursor: var(--textarea_cursor);
|
|
25
24
|
}
|
|
26
|
-
|
|
27
|
-
.basic,
|
|
28
|
-
.noBorder {
|
|
25
|
+
.basic, .noBorder {
|
|
29
26
|
border-width: var(--textarea_border_width);
|
|
30
27
|
}
|
|
31
|
-
|
|
32
28
|
.basic::placeholder {
|
|
33
29
|
color: var(--textarea_placeholder_text_color);
|
|
34
30
|
}
|
|
35
|
-
|
|
36
31
|
.basic::-webkit-placeholder {
|
|
37
32
|
color: var(--textarea_placeholder_text_color);
|
|
38
33
|
}
|
|
39
|
-
|
|
40
34
|
.basic::-moz-placeholder {
|
|
41
35
|
color: var(--textarea_placeholder_text_color);
|
|
42
36
|
}
|
|
43
|
-
|
|
44
37
|
.basic::-ms-placeholder {
|
|
45
38
|
color: var(--textarea_placeholder_text_color);
|
|
46
39
|
}
|
|
47
|
-
|
|
48
40
|
.basic:disabled {
|
|
49
41
|
--textarea_cursor: not-allowed;
|
|
50
42
|
--textarea_text_color: var(--zdt_textarea_default_text);
|
|
51
43
|
}
|
|
52
|
-
|
|
53
44
|
.readonly {
|
|
54
45
|
--textarea_cursor: not-allowed;
|
|
55
46
|
}
|
|
56
|
-
|
|
57
47
|
.resizeX {
|
|
58
48
|
composes: resizeX from '../common/common.module.css';
|
|
59
49
|
}
|
|
60
|
-
|
|
61
50
|
.resizeY {
|
|
62
51
|
composes: resizeY from '../common/common.module.css';
|
|
63
52
|
}
|
|
64
|
-
|
|
65
53
|
.noresize {
|
|
66
54
|
composes: resizenone from '../common/common.module.css';
|
|
67
55
|
}
|
|
68
|
-
|
|
69
56
|
.resizeboth {
|
|
70
57
|
composes: resizeboth from '../common/common.module.css';
|
|
71
58
|
}
|
|
72
|
-
|
|
73
59
|
/* css:lineheight-validation:ignore */
|
|
74
60
|
.container {
|
|
75
61
|
composes: basic;
|
|
76
62
|
transition: border var(--zd_transition2) linear 0s,
|
|
77
63
|
height var(--zd_transition2) linear 0s;
|
|
78
|
-
-webkit-transition: border var(--zd_transition2) linear 0s,
|
|
79
|
-
height var(--zd_transition2) linear 0s;
|
|
80
64
|
-moz-transition: border var(--zd_transition2) linear 0s,
|
|
81
65
|
height var(--zd_transition2) linear 0s;
|
|
82
|
-
width: 100
|
|
83
|
-
max-width: 100
|
|
84
|
-
min-width:
|
|
85
|
-
border-style: solid;
|
|
66
|
+
width: 100% ;
|
|
67
|
+
max-width: 100% ;
|
|
68
|
+
min-width: var(--zd_size100) ;
|
|
86
69
|
font-size: var(--textarea_font_size);
|
|
87
70
|
line-height: var(--textarea_line_height);
|
|
71
|
+
height: var(--textarea_height);
|
|
72
|
+
-webkit-transition: border var(--zd_transition2) linear 0s,
|
|
73
|
+
height var(--zd_transition2) linear 0s;
|
|
74
|
+
border-style: solid;
|
|
88
75
|
background-color: var(--zdt_textarea_default_bg);
|
|
89
76
|
border-color: var(--textarea_border_color);
|
|
90
77
|
padding: var(--textarea_padding);
|
|
91
|
-
height: var(--textarea_height);
|
|
92
78
|
}
|
|
93
|
-
|
|
94
79
|
.needBorder {
|
|
95
80
|
--textarea_border_width: 0 0 1px 0;
|
|
96
81
|
}
|
|
97
|
-
|
|
98
82
|
.borderColor_transparent {
|
|
99
83
|
--textarea_border_color: var(--zdt_textarea_transparent_border);
|
|
100
84
|
}
|
|
101
|
-
|
|
102
85
|
.borderColor_default {
|
|
103
86
|
--textarea_border_color: var(--zdt_textarea_default_border);
|
|
104
87
|
}
|
|
105
|
-
|
|
106
88
|
.effect:hover {
|
|
107
89
|
--textarea_border_color: var(--zdt_textarea_hover_border);
|
|
108
90
|
}
|
|
109
|
-
|
|
110
91
|
.effect:focus {
|
|
111
92
|
--textarea_border_color: var(--zdt_textarea_focus_border);
|
|
112
93
|
}
|
|
113
|
-
|
|
114
94
|
.xsmall,
|
|
115
95
|
.xmedium {
|
|
116
96
|
vertical-align: middle;
|
|
117
97
|
}
|
|
118
|
-
|
|
119
98
|
.xsmall {
|
|
120
|
-
--textarea_font_size:
|
|
121
|
-
--textarea_padding:
|
|
122
|
-
--textarea_height:
|
|
99
|
+
--textarea_font_size: var(--zd_font_size14);
|
|
100
|
+
--textarea_padding: var(--zd_size4) 0 var(--zd_size2);
|
|
101
|
+
--textarea_height: var(--zd_size28);
|
|
123
102
|
--textarea_line_height: 1.3572;
|
|
124
103
|
}
|
|
125
|
-
|
|
126
104
|
.xmedium {
|
|
127
|
-
--textarea_font_size:
|
|
128
|
-
--textarea_padding:
|
|
129
|
-
--textarea_height:
|
|
105
|
+
--textarea_font_size: var(--zd_font_size13);
|
|
106
|
+
--textarea_padding: var(--zd_size4) 0 var(--zd_size2);
|
|
107
|
+
--textarea_height: var(--zd_size25);
|
|
130
108
|
--textarea_line_height: 1.3077;
|
|
131
109
|
}
|
|
132
|
-
|
|
133
110
|
.small {
|
|
134
|
-
--textarea_height:
|
|
135
|
-
--textarea_padding:
|
|
111
|
+
--textarea_height: var(--zd_size30);
|
|
112
|
+
--textarea_padding: var(--zd_size2) 0;
|
|
136
113
|
}
|
|
137
|
-
|
|
138
114
|
.smallanimated:focus,
|
|
139
115
|
.xsmallanimated:focus,
|
|
140
116
|
.xmediumanimated:focus {
|
|
141
|
-
--textarea_height:
|
|
117
|
+
--textarea_height: var(--zd_size70);
|
|
142
118
|
}
|
|
143
|
-
|
|
144
119
|
.medium {
|
|
145
|
-
--textarea_height:
|
|
146
|
-
--textarea_padding:
|
|
120
|
+
--textarea_height: var(--zd_size88);
|
|
121
|
+
--textarea_padding: var(--zd_size2);
|
|
147
122
|
}
|
|
148
|
-
|
|
149
123
|
.large {
|
|
150
|
-
--textarea_height:
|
|
151
|
-
--textarea_padding:
|
|
124
|
+
--textarea_height: var(--zd_size45);
|
|
125
|
+
--textarea_padding: var(--zd_size2);
|
|
152
126
|
}
|
|
153
|
-
|
|
154
127
|
.largeanimated:focus {
|
|
155
|
-
--textarea_height:
|
|
128
|
+
--textarea_height: var(--zd_size220);
|
|
156
129
|
}
|
|
157
|
-
|
|
158
130
|
.xlarge {
|
|
159
|
-
--textarea_height:
|
|
131
|
+
--textarea_height: var(--zd_size184);
|
|
160
132
|
}
|
|
161
|
-
|
|
162
133
|
.default {
|
|
163
134
|
font-family: var(--zd_regular);
|
|
164
|
-
--textarea_text_color: var(--
|
|
135
|
+
--textarea_text_color: var(--zdt_textarea_black_text);
|
|
165
136
|
}
|
|
166
|
-
|
|
167
137
|
.primary {
|
|
168
138
|
composes: semibold from '../common/common.module.css';
|
|
169
|
-
--textarea_text_color: var(--
|
|
170
|
-
}
|
|
139
|
+
--textarea_text_color: var(--zdt_textarea_black_text);
|
|
140
|
+
}
|
|
@@ -2,26 +2,29 @@
|
|
|
2
2
|
position: fixed;
|
|
3
3
|
z-index: 9999999;
|
|
4
4
|
/*Hook for editor alert*/
|
|
5
|
-
animation: tooltip-grow var(--zd_transition7) cubic-bezier(0.175, 0.885, 0.32, 1.15);
|
|
6
5
|
pointer-events: none;
|
|
7
6
|
box-shadow: 0 4px 12px 0 var(--zdt_tooltip_default_box_shadow);
|
|
8
7
|
border-radius: var(--zd_size4);
|
|
8
|
+
}[dir=ltr] .tooltiptext {
|
|
9
|
+
animation: tooltip-grow var(--zd_transition7) cubic-bezier(0.175, 0.885, 0.32, 1.15);
|
|
10
|
+
}[dir=rtl] .tooltiptext {
|
|
11
|
+
animation: tooltip-grow var(--zd_transition7) cubic-bezier(0.175, 0.885, 0.32, 1.15);
|
|
9
12
|
}
|
|
10
13
|
|
|
11
14
|
.tooltipcont {
|
|
12
|
-
background-color: var(--zdt_tooltip_default_bg);
|
|
13
15
|
color: var(--zdt_tooltip_default_text);
|
|
14
|
-
|
|
15
|
-
font-size: 13px;
|
|
16
|
+
font-size: var(--zd_font_size13) ;
|
|
16
17
|
font-family: var(--zd_semibold);
|
|
17
18
|
word-break: break-word;
|
|
19
|
+
max-width: var(--zd_size420) ;
|
|
20
|
+
line-height: 1.5385;
|
|
21
|
+
min-height: var(--zd_size24) ;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
background-color: var(--zdt_tooltip_default_bg);
|
|
24
|
+
padding: 0 var(--zd_size10) ;
|
|
18
25
|
border-style: solid;
|
|
19
26
|
border-color: transparent;
|
|
20
27
|
border-radius: var(--zd_size4);
|
|
21
|
-
max-width: 420px;
|
|
22
|
-
line-height: 1.5385;
|
|
23
|
-
min-height: 24px;
|
|
24
|
-
overflow: hidden;
|
|
25
28
|
}
|
|
26
29
|
|
|
27
30
|
.tooltipWrapCont {
|
|
@@ -31,12 +34,10 @@
|
|
|
31
34
|
.tooltipNormalCont {
|
|
32
35
|
white-space: normal;
|
|
33
36
|
}
|
|
34
|
-
|
|
35
|
-
/*rtl:begin:ignore*/
|
|
36
37
|
.tooltiparrow {
|
|
37
38
|
content: '';
|
|
38
39
|
position: absolute;
|
|
39
|
-
top: 0;
|
|
40
|
+
top: 0 ;
|
|
40
41
|
border-top-left-radius: 3px;
|
|
41
42
|
}
|
|
42
43
|
|
|
@@ -99,8 +100,6 @@
|
|
|
99
100
|
.arrowRight {
|
|
100
101
|
transform: rotate(135deg) translateY(50%);
|
|
101
102
|
}
|
|
102
|
-
|
|
103
|
-
/*rtl:end:ignore*/
|
|
104
103
|
@keyframes tooltip-grow {
|
|
105
104
|
from {
|
|
106
105
|
opacity: 0;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import { defaultProps } from './props/defaultProps';
|
|
3
5
|
import { propTypes } from './props/propTypes';
|
|
@@ -84,15 +86,14 @@ export default class VelocityAnimationGroup extends React.Component {
|
|
|
84
86
|
delay: exitDelay ? exitDelay : 0,
|
|
85
87
|
display: 'none'
|
|
86
88
|
};
|
|
87
|
-
return /*#__PURE__*/React.createElement(VelocityTransitionGroup, {
|
|
89
|
+
return /*#__PURE__*/React.createElement(VelocityTransitionGroup, _extends({
|
|
88
90
|
enter: enterAnimation,
|
|
89
91
|
leave: exitAnimation,
|
|
90
92
|
component: component && component,
|
|
91
93
|
runOnMount: runOnMount,
|
|
92
94
|
enterHideStyle: enterHideStyle,
|
|
93
|
-
enterShowStyle: enterShowStyle
|
|
94
|
-
|
|
95
|
-
}, isActive ? children : null);
|
|
95
|
+
enterShowStyle: enterShowStyle
|
|
96
|
+
}, childProps), isActive ? children : null);
|
|
96
97
|
}
|
|
97
98
|
|
|
98
99
|
}
|