@zohodesk/components 1.2.20 → 1.2.21
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/PropLessFiles.html +1 -1
- package/.cli/propValidation_report.html +1 -1
- package/README.md +6 -0
- package/es/DateTime/DateTime.module.css +2 -2
- package/es/DateTime/YearView.module.css +1 -1
- package/es/Label/Label.module.css +6 -1
- package/es/ListItem/ListItem.module.css +1 -1
- package/es/Ribbon/Ribbon.module.css +49 -3
- package/es/Select/Select.js +10 -2
- package/es/Select/Select.module.css +27 -1
- package/es/Tab/Tab.module.css +3 -3
- package/es/TextBox/TextBox.js +8 -1
- package/es/TextBox/TextBox.module.css +45 -6
- package/es/TextBox/props/defaultProps.js +1 -0
- package/es/TextBox/props/propTypes.js +1 -0
- package/es/TextBoxIcon/TextBoxIcon.js +2 -0
- package/es/TextBoxIcon/props/defaultProps.js +1 -0
- package/es/TextBoxIcon/props/propTypes.js +1 -0
- package/es/Textarea/Textarea.module.css +4 -3
- package/es/Tooltip/Tooltip.js +4 -2
- package/es/Tooltip/Tooltip.module.css +1 -1
- package/es/v1/Card/Card.js +1 -1
- package/es/v1/CheckBox/CheckBox.js +1 -1
- package/es/v1/Select/Select.js +10 -2
- package/es/v1/Tab/Tab.js +1 -2
- package/es/v1/Tab/TabContent.js +1 -1
- package/es/v1/Tab/Tabs.js +182 -271
- package/es/v1/Tab/v1Tab.module.css +100 -0
- package/es/v1/Tab/v1TabContent.module.css +4 -0
- package/es/v1/Tab/v1Tabs.module.css +137 -0
- package/es/v1/TextBox/TextBox.js +8 -2
- package/es/v1/TextBox/props/defaultProps.js +1 -0
- package/es/v1/TextBox/props/propTypes.js +1 -0
- package/es/v1/TextBoxIcon/TextBoxIcon.js +3 -1
- package/es/v1/TextBoxIcon/props/defaultProps.js +1 -0
- package/es/v1/TextBoxIcon/props/propTypes.js +1 -0
- package/es/v1/Tooltip/Tooltip.js +4 -2
- package/lib/DateTime/DateTime.module.css +2 -2
- package/lib/DateTime/YearView.module.css +1 -1
- package/lib/Label/Label.module.css +6 -1
- package/lib/ListItem/ListItem.module.css +1 -1
- package/lib/Ribbon/Ribbon.module.css +49 -3
- package/lib/Select/Select.js +14 -2
- package/lib/Select/Select.module.css +27 -1
- package/lib/Tab/Tab.module.css +3 -3
- package/lib/TextBox/TextBox.js +9 -1
- package/lib/TextBox/TextBox.module.css +45 -6
- package/lib/TextBox/props/defaultProps.js +1 -0
- package/lib/TextBox/props/propTypes.js +1 -1
- package/lib/TextBoxIcon/TextBoxIcon.js +2 -0
- package/lib/TextBoxIcon/props/defaultProps.js +1 -0
- package/lib/TextBoxIcon/props/propTypes.js +1 -0
- package/lib/Textarea/Textarea.module.css +4 -3
- package/lib/Tooltip/Tooltip.js +4 -2
- package/lib/Tooltip/Tooltip.module.css +1 -1
- package/lib/v1/Card/Card.js +1 -1
- package/lib/v1/CheckBox/CheckBox.js +1 -1
- package/lib/v1/Select/Select.js +14 -2
- package/lib/v1/Tab/Tab.js +6 -6
- package/lib/v1/Tab/TabContent.js +2 -2
- package/lib/v1/Tab/Tabs.js +478 -567
- package/lib/v1/Tab/v1Tab.module.css +100 -0
- package/lib/v1/Tab/v1TabContent.module.css +4 -0
- package/lib/v1/Tab/v1Tabs.module.css +137 -0
- package/lib/v1/TextBox/TextBox.js +10 -2
- package/lib/v1/TextBox/props/defaultProps.js +1 -0
- package/lib/v1/TextBox/props/propTypes.js +1 -1
- package/lib/v1/TextBoxIcon/TextBoxIcon.js +3 -1
- package/lib/v1/TextBoxIcon/props/defaultProps.js +1 -0
- package/lib/v1/TextBoxIcon/props/propTypes.js +1 -0
- package/lib/v1/Tooltip/Tooltip.js +4 -2
- package/package.json +9 -7
- package/result.json +1 -1
package/lib/Tab/Tab.module.css
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
}
|
|
33
33
|
.alpha {
|
|
34
34
|
font-size: var(--zd_font_size11) ;
|
|
35
|
-
line-height:
|
|
35
|
+
line-height: 3;
|
|
36
36
|
padding: 0 var(--zd_size18) ;
|
|
37
37
|
}
|
|
38
38
|
.tabAlpha {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
}
|
|
56
56
|
.beta {
|
|
57
57
|
font-size: var(--zd_font_size14) ;
|
|
58
|
-
line-height:
|
|
58
|
+
line-height: 4.2857;
|
|
59
59
|
text-transform: capitalize;
|
|
60
60
|
padding: 0 var(--zd_size4) ;
|
|
61
61
|
}
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
}
|
|
79
79
|
.delta {
|
|
80
80
|
font-size: var(--zd_font_size11) ;
|
|
81
|
-
line-height:
|
|
81
|
+
line-height: 3;
|
|
82
82
|
padding: 0 var(--zd_size4) ;
|
|
83
83
|
}
|
|
84
84
|
[dir=ltr] .delta {
|
package/lib/TextBox/TextBox.js
CHANGED
|
@@ -55,6 +55,7 @@ var TextBox = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
55
55
|
_this.setFocus = _this.setFocus.bind(_assertThisInitialized(_this));
|
|
56
56
|
_this.handleFocus = _this.handleFocus.bind(_assertThisInitialized(_this));
|
|
57
57
|
_this.handleBlur = _this.handleBlur.bind(_assertThisInitialized(_this));
|
|
58
|
+
_this.handlePreventTextBoxScroll = _this.handlePreventTextBoxScroll.bind(_assertThisInitialized(_this));
|
|
58
59
|
return _this;
|
|
59
60
|
}
|
|
60
61
|
|
|
@@ -104,6 +105,11 @@ var TextBox = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
104
105
|
isReadOnly = _this$props3.isReadOnly;
|
|
105
106
|
onChange && !isReadOnly && onChange(value, e);
|
|
106
107
|
}
|
|
108
|
+
}, {
|
|
109
|
+
key: "handlePreventTextBoxScroll",
|
|
110
|
+
value: function handlePreventTextBoxScroll() {
|
|
111
|
+
this.inputEle.scrollLeft = 0;
|
|
112
|
+
}
|
|
107
113
|
}, {
|
|
108
114
|
key: "render",
|
|
109
115
|
value: function render() {
|
|
@@ -136,6 +142,7 @@ var TextBox = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
136
142
|
a11y = _this$props4.a11y,
|
|
137
143
|
customClass = _this$props4.customClass,
|
|
138
144
|
isFocus = _this$props4.isFocus,
|
|
145
|
+
isScrollPrevent = _this$props4.isScrollPrevent,
|
|
139
146
|
customProps = _this$props4.customProps,
|
|
140
147
|
dataSelectorId = _this$props4.dataSelectorId;
|
|
141
148
|
var ariaLabel = a11y.ariaLabel,
|
|
@@ -187,7 +194,7 @@ var TextBox = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
187
194
|
"aria-activedescendant": ariaActivedescendant,
|
|
188
195
|
"aria-readonly": ariaReadonly,
|
|
189
196
|
"aria-multiselectable": ariaMultiselectable,
|
|
190
|
-
className: "".concat(isReadOnly && needReadOnlyStyle ? _TextBoxModule["default"].readonly : '', " ").concat(isClickable ? _TextBoxModule["default"].pointer : '', " ").concat(classList, " ").concat(_TextBoxModule["default"]["borderColor_".concat(borderColor)], " ").concat(customClass ? customClass : ''),
|
|
197
|
+
className: "".concat(isReadOnly && needReadOnlyStyle ? _TextBoxModule["default"].readonly : '', " ").concat(isClickable ? _TextBoxModule["default"].pointer : '', " ").concat(classList, " ").concat(_TextBoxModule["default"]["borderColor_".concat(borderColor)], " ").concat(isScrollPrevent ? _TextBoxModule["default"].inputDotted : '', " ").concat(customClass ? customClass : ''),
|
|
191
198
|
"data-id": "".concat(dataId),
|
|
192
199
|
"data-test-id": "".concat(dataId),
|
|
193
200
|
"data-selector-id": dataSelectorId,
|
|
@@ -204,6 +211,7 @@ var TextBox = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
204
211
|
ref: this.inputRef,
|
|
205
212
|
type: type,
|
|
206
213
|
value: value,
|
|
214
|
+
onScroll: isScrollPrevent ? this.handlePreventTextBoxScroll : '',
|
|
207
215
|
onKeyPress: onKeyPress,
|
|
208
216
|
onMouseDown: onMouseDown
|
|
209
217
|
}, options, customProps));
|
|
@@ -14,11 +14,12 @@
|
|
|
14
14
|
--textbox_letter_spacing: 0.1px;
|
|
15
15
|
--textbox_padding: 0;
|
|
16
16
|
--textbox_cursor: auto;
|
|
17
|
-
--textbox_line_height:
|
|
17
|
+
--textbox_line_height: 2.5;
|
|
18
18
|
|
|
19
19
|
/* textbox placeholder default variable */
|
|
20
20
|
--textbox_placeholder_text_color: var(--zdt_textbox_placeholder_text);
|
|
21
21
|
}
|
|
22
|
+
|
|
22
23
|
.basic {
|
|
23
24
|
composes: varClass;
|
|
24
25
|
-webkit-appearance: none;
|
|
@@ -29,22 +30,27 @@
|
|
|
29
30
|
border: var(--textbox_border_width);
|
|
30
31
|
cursor: var(--textbox_cursor);
|
|
31
32
|
}
|
|
33
|
+
|
|
32
34
|
.basic::placeholder {
|
|
33
35
|
/* css:theme-validation:ignore */
|
|
34
36
|
color: var(--textbox_placeholder_text_color);
|
|
35
37
|
}
|
|
38
|
+
|
|
36
39
|
.basic::-webkit-placeholder {
|
|
37
40
|
/* css:theme-validation:ignore */
|
|
38
41
|
color: var(--textbox_placeholder_text_color);
|
|
39
42
|
}
|
|
43
|
+
|
|
40
44
|
.basic::-moz-placeholder {
|
|
41
45
|
/* css:theme-validation:ignore */
|
|
42
46
|
color: var(--textbox_placeholder_text_color);
|
|
43
47
|
}
|
|
48
|
+
|
|
44
49
|
.basic::-ms-placeholder {
|
|
45
50
|
/* css:theme-validation:ignore */
|
|
46
51
|
color: var(--textbox_placeholder_text_color);
|
|
47
52
|
}
|
|
53
|
+
/* css:lineheight-validation:ignore */
|
|
48
54
|
.container {
|
|
49
55
|
composes: basic;
|
|
50
56
|
/* css:theme-validation:ignore */
|
|
@@ -65,110 +71,139 @@
|
|
|
65
71
|
border-style: var(--textbox_border_style);
|
|
66
72
|
border-color: var(--textbox_border_color);
|
|
67
73
|
}
|
|
74
|
+
|
|
68
75
|
.basic:disabled,
|
|
69
76
|
.container:disabled,
|
|
70
77
|
.container:disabled:hover {
|
|
71
78
|
--textbox_cursor: not-allowed;
|
|
72
79
|
--textbox_text_color: var(--zdt_textbox_disabled_text);
|
|
73
80
|
}
|
|
81
|
+
|
|
74
82
|
.container:disabled,
|
|
75
83
|
.container:disabled:hover {
|
|
76
84
|
--textbox_bg_color: none;
|
|
77
85
|
}
|
|
86
|
+
|
|
78
87
|
.container::placeholder {
|
|
79
88
|
/* css:theme-validation:ignore */
|
|
80
89
|
color: var(--textbox_placeholder_text_color);
|
|
81
90
|
}
|
|
91
|
+
|
|
82
92
|
.container::-webkit-placeholder {
|
|
83
93
|
/* css:theme-validation:ignore */
|
|
84
94
|
color: var(--textbox_placeholder_text_color);
|
|
85
95
|
}
|
|
96
|
+
|
|
86
97
|
.container::-moz-placeholder {
|
|
87
98
|
/* css:theme-validation:ignore */
|
|
88
99
|
color: var(--textbox_placeholder_text_color);
|
|
89
100
|
}
|
|
101
|
+
|
|
90
102
|
.container::-ms-placeholder {
|
|
91
103
|
/* css:theme-validation:ignore */
|
|
92
104
|
color: var(--textbox_placeholder_text_color);
|
|
93
105
|
}
|
|
106
|
+
|
|
94
107
|
.pointer {
|
|
95
108
|
--textbox_cursor: pointer;
|
|
96
109
|
}
|
|
110
|
+
|
|
97
111
|
/* Need Border */
|
|
98
112
|
.border, .effect:hover, .effect:focus {
|
|
99
113
|
border-width: var(--textbox_border_width);
|
|
100
114
|
border-style: var(--textbox_border_style);
|
|
101
115
|
}
|
|
116
|
+
|
|
102
117
|
.effect:hover,
|
|
103
118
|
.effect:focus {
|
|
104
119
|
/* css:theme-validation:ignore */
|
|
105
120
|
}
|
|
121
|
+
|
|
106
122
|
.effect:hover, .effect:focus {
|
|
107
123
|
border-color: var(--textbox_border_color);
|
|
108
124
|
}
|
|
125
|
+
|
|
109
126
|
.border {
|
|
110
127
|
--textbox_border_width: 0 0 1px 0;
|
|
111
128
|
}
|
|
129
|
+
|
|
112
130
|
.borderColor_transparent,
|
|
113
131
|
.borderColor_default {
|
|
114
132
|
/* css:theme-validation:ignore */
|
|
115
133
|
}
|
|
134
|
+
|
|
116
135
|
.borderColor_transparent, .borderColor_default {
|
|
117
136
|
border-color: var(--textbox_border_color);
|
|
118
137
|
}
|
|
138
|
+
|
|
119
139
|
.borderColor_transparent {
|
|
120
140
|
--textbox_border_color: var(--zdt_textbox_transparent_border);
|
|
121
141
|
}
|
|
142
|
+
|
|
122
143
|
.borderColor_default {
|
|
123
144
|
--textbox_border_color: var(--zdt_textbox_default_border);
|
|
124
145
|
}
|
|
146
|
+
|
|
125
147
|
.effect:hover {
|
|
126
148
|
--textbox_border_color: var(--zdt_textbox_effect_hover_border);
|
|
127
149
|
}
|
|
128
|
-
|
|
150
|
+
|
|
151
|
+
.effect:focus,
|
|
152
|
+
.focus,
|
|
153
|
+
.focus:hover {
|
|
129
154
|
--textbox_border_color: var(--zdt_textbox_effect_focus_border);
|
|
130
155
|
}
|
|
156
|
+
|
|
131
157
|
/* Size */
|
|
132
158
|
.xmedium,
|
|
133
159
|
.medium {
|
|
134
160
|
--textbox_font_size: var(--zd_font_size14);
|
|
135
161
|
}
|
|
162
|
+
|
|
136
163
|
.xmedium {
|
|
137
164
|
--textbox_height: var(--zd_size28);
|
|
138
|
-
--textbox_line_height:
|
|
165
|
+
--textbox_line_height: 2;
|
|
139
166
|
}
|
|
167
|
+
|
|
140
168
|
.medium {
|
|
141
169
|
--textbox_height: var(--zd_size35);
|
|
142
|
-
--textbox_line_height:
|
|
170
|
+
--textbox_line_height: 2.5;
|
|
143
171
|
}
|
|
172
|
+
|
|
144
173
|
.small {
|
|
145
174
|
--textbox_font_size: var(--zd_font_size12);
|
|
146
175
|
--textbox_height: var(--zd_size28);
|
|
147
|
-
--textbox_line_height:
|
|
176
|
+
--textbox_line_height: 2.3334;
|
|
148
177
|
}
|
|
178
|
+
|
|
149
179
|
.xsmall {
|
|
150
180
|
--textbox_font_size: var(--zd_font_size13);
|
|
151
181
|
--textbox_height: var(--zd_size25);
|
|
152
|
-
--textbox_line_height:
|
|
182
|
+
--textbox_line_height: 1.9231;
|
|
153
183
|
}
|
|
184
|
+
|
|
154
185
|
.default,
|
|
155
186
|
.primary,
|
|
156
187
|
.secondary,
|
|
157
188
|
.light {
|
|
158
189
|
font-family: var(--textbox_font_family);
|
|
159
190
|
}
|
|
191
|
+
|
|
160
192
|
.primary {
|
|
161
193
|
--textbox_text_color: var(--zdt_textbox_default_text);
|
|
162
194
|
--textbox_font_family: var(--zd_semibold);
|
|
163
195
|
composes: ftsmooth from '../common/common.module.css';
|
|
164
196
|
}
|
|
197
|
+
|
|
165
198
|
.secondary {
|
|
166
199
|
--textbox_text_color: var(--zdt_textbox_secondary_text);
|
|
167
200
|
--textbox_font_family: var(--zd_light);
|
|
168
201
|
}
|
|
202
|
+
|
|
169
203
|
.light {
|
|
170
204
|
--textbox_text_color: var(--zdt_textbox_light_text);
|
|
171
205
|
}
|
|
206
|
+
|
|
172
207
|
.readonly,
|
|
173
208
|
.readonly:hover,
|
|
174
209
|
.readonly:focus {
|
|
@@ -176,3 +211,7 @@
|
|
|
176
211
|
--textbox_text_color: var(--zdt_textbox_default_text);
|
|
177
212
|
--textbox_bg_color: none;
|
|
178
213
|
}
|
|
214
|
+
|
|
215
|
+
.inputDotted {
|
|
216
|
+
composes: dotted from '../common/common.module.css'
|
|
217
|
+
}
|
|
@@ -58,5 +58,5 @@ var propTypes = (_propTypes = {
|
|
|
58
58
|
ariaActivedescendant: _propTypes2["default"].string,
|
|
59
59
|
ariaReadonly: _propTypes2["default"].bool,
|
|
60
60
|
ariaMultiselectable: _propTypes2["default"].bool
|
|
61
|
-
})), _defineProperty(_propTypes, "isFocus", _propTypes2["default"].bool), _defineProperty(_propTypes, "customProps", _propTypes2["default"].object), _defineProperty(_propTypes, "dataSelectorId", _propTypes2["default"].string), _defineProperty(_propTypes, "autoComplete", _propTypes2["default"].bool), _propTypes);
|
|
61
|
+
})), _defineProperty(_propTypes, "isFocus", _propTypes2["default"].bool), _defineProperty(_propTypes, "isScrollPrevent", _propTypes2["default"].bool), _defineProperty(_propTypes, "customProps", _propTypes2["default"].object), _defineProperty(_propTypes, "dataSelectorId", _propTypes2["default"].string), _defineProperty(_propTypes, "autoComplete", _propTypes2["default"].bool), _propTypes);
|
|
62
62
|
exports.propTypes = propTypes;
|
|
@@ -147,6 +147,7 @@ var TextBoxIcon = /*#__PURE__*/function (_React$Component) {
|
|
|
147
147
|
iconOnHover = _this$props2.iconOnHover,
|
|
148
148
|
isFocus = _this$props2.isFocus,
|
|
149
149
|
onClearMouseDown = _this$props2.onClearMouseDown,
|
|
150
|
+
isScrollPrevent = _this$props2.isScrollPrevent,
|
|
150
151
|
customProps = _this$props2.customProps;
|
|
151
152
|
var isActive = this.state.isActive;
|
|
152
153
|
var _customClass$customTB = customClass.customTBoxWrap,
|
|
@@ -194,6 +195,7 @@ var TextBoxIcon = /*#__PURE__*/function (_React$Component) {
|
|
|
194
195
|
onKeyPress: onKeyPress,
|
|
195
196
|
onMouseDown: onMouseDown,
|
|
196
197
|
needBorder: false,
|
|
198
|
+
isScrollPrevent: isScrollPrevent,
|
|
197
199
|
customClass: customTextBox,
|
|
198
200
|
customProps: TextBoxProps
|
|
199
201
|
}))), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
@@ -62,6 +62,7 @@ var propTypes = _objectSpread(_objectSpread({}, _propTypes2.propTypes), {}, {
|
|
|
62
62
|
iconOnHover: _propTypes["default"].bool,
|
|
63
63
|
isFocus: _propTypes["default"].bool,
|
|
64
64
|
onClearMouseDown: _propTypes["default"].func,
|
|
65
|
+
isScrollPrevent: _propTypes["default"].bool,
|
|
65
66
|
customProps: _propTypes["default"].shape({
|
|
66
67
|
TextBoxProps: _propTypes["default"].object
|
|
67
68
|
})
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
--textarea_cursor: auto;
|
|
6
6
|
--textarea_text_color: var(--zdt_textarea_default_text);
|
|
7
7
|
--textarea_font_size: var(--zd_font_size14);
|
|
8
|
-
--textarea_line_height:
|
|
8
|
+
--textarea_line_height: 1.5712;
|
|
9
9
|
--textarea_padding: var(--zd_size2) 0;
|
|
10
10
|
--textarea_height: var(--zd_size30);
|
|
11
11
|
|
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
.resizeboth {
|
|
62
62
|
composes: resizeboth from '../common/common.module.css';
|
|
63
63
|
}
|
|
64
|
+
/* css:lineheight-validation:ignore */
|
|
64
65
|
.container {
|
|
65
66
|
composes: basic;
|
|
66
67
|
transition: border var(--zd_transition2) linear 0s,
|
|
@@ -104,13 +105,13 @@
|
|
|
104
105
|
--textarea_font_size: var(--zd_font_size14);
|
|
105
106
|
--textarea_padding: var(--zd_size4) 0 var(--zd_size2);
|
|
106
107
|
--textarea_height: var(--zd_size28);
|
|
107
|
-
--textarea_line_height:
|
|
108
|
+
--textarea_line_height: 1.3572;
|
|
108
109
|
}
|
|
109
110
|
.xmedium {
|
|
110
111
|
--textarea_font_size: var(--zd_font_size13);
|
|
111
112
|
--textarea_padding: var(--zd_size4) 0 var(--zd_size2);
|
|
112
113
|
--textarea_height: var(--zd_size25);
|
|
113
|
-
--textarea_line_height:
|
|
114
|
+
--textarea_line_height: 1.3077;
|
|
114
115
|
}
|
|
115
116
|
.small {
|
|
116
117
|
--textarea_height: var(--zd_size30);
|
package/lib/Tooltip/Tooltip.js
CHANGED
|
@@ -213,8 +213,10 @@ var Tooltip = /*#__PURE__*/function (_React$Component) {
|
|
|
213
213
|
if (title !== '' && title) {
|
|
214
214
|
titleDiv.setAttribute('data-title', title);
|
|
215
215
|
titleDiv.removeAttribute('title');
|
|
216
|
+
var isInputElementType = element.type === 'text';
|
|
217
|
+
var elementText = isInputElementType ? element.value : element.innerText;
|
|
216
218
|
|
|
217
|
-
if (element.nodeName !== 'I' &&
|
|
219
|
+
if (element.nodeName !== 'I' && elementText && elementText.trim() !== '') {
|
|
218
220
|
var isContentDotted = '';
|
|
219
221
|
|
|
220
222
|
if (element.scrollWidth !== 0) {
|
|
@@ -232,7 +234,7 @@ var Tooltip = /*#__PURE__*/function (_React$Component) {
|
|
|
232
234
|
isContentDotted = offWidth < scrollWidth;
|
|
233
235
|
}
|
|
234
236
|
|
|
235
|
-
var originText =
|
|
237
|
+
var originText = elementText.replace(/\s/g, '').toLowerCase();
|
|
236
238
|
var tooltipText = title.replace(/\s/g, '').toLowerCase();
|
|
237
239
|
var isDefaultTooltip = element.hasAttribute('data-istitle') || element.hasAttribute('istitle') ? element.getAttribute('data-istitle') || element.getAttribute('istitle') : 'false';
|
|
238
240
|
isDefaultTooltip = isDefaultTooltip === 'true';
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
font-family: var(--zd_semibold);
|
|
18
18
|
word-break: break-word;
|
|
19
19
|
max-width: var(--zd_size420) ;
|
|
20
|
-
line-height:
|
|
20
|
+
line-height: 1.5385;
|
|
21
21
|
min-height: var(--zd_size24) ;
|
|
22
22
|
overflow: hidden;
|
|
23
23
|
background-color: var(--zdt_tooltip_default_bg);
|
package/lib/v1/Card/Card.js
CHANGED
|
@@ -20,7 +20,7 @@ var _defaultProps = require("./props/defaultProps");
|
|
|
20
20
|
|
|
21
21
|
var _Layout = require("../Layout");
|
|
22
22
|
|
|
23
|
-
var _Config = require("
|
|
23
|
+
var _Config = require("../Provider/Config");
|
|
24
24
|
|
|
25
25
|
var _CardModule = _interopRequireDefault(require("../../Card/Card.module.css"));
|
|
26
26
|
|
|
@@ -15,7 +15,7 @@ var _Label = _interopRequireDefault(require("../Label/Label"));
|
|
|
15
15
|
|
|
16
16
|
var _Layout = require("../Layout");
|
|
17
17
|
|
|
18
|
-
var _CssProvider = _interopRequireDefault(require("
|
|
18
|
+
var _CssProvider = _interopRequireDefault(require("../Provider/CssProvider"));
|
|
19
19
|
|
|
20
20
|
var _CheckBoxModule = _interopRequireDefault(require("../../CheckBox/CheckBox.module.css"));
|
|
21
21
|
|
package/lib/v1/Select/Select.js
CHANGED
|
@@ -53,6 +53,12 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
53
53
|
|
|
54
54
|
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); }
|
|
55
55
|
|
|
56
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
57
|
+
|
|
58
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
59
|
+
|
|
60
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
61
|
+
|
|
56
62
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
57
63
|
|
|
58
64
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
@@ -844,8 +850,11 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
844
850
|
htmlId: htmlId,
|
|
845
851
|
isFocus: isPopupReady,
|
|
846
852
|
autoComplete: autoComplete,
|
|
853
|
+
isScrollPrevent: true,
|
|
847
854
|
customProps: {
|
|
848
|
-
TextBoxProps:
|
|
855
|
+
TextBoxProps: _objectSpread({
|
|
856
|
+
'data-title': title || selected
|
|
857
|
+
}, TextBoxProps)
|
|
849
858
|
}
|
|
850
859
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
851
860
|
alignBox: "row",
|
|
@@ -893,7 +902,10 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
893
902
|
htmlId: htmlId,
|
|
894
903
|
autoComplete: autoComplete,
|
|
895
904
|
isFocus: isPopupReady,
|
|
896
|
-
|
|
905
|
+
isScrollPrevent: true,
|
|
906
|
+
customProps: _objectSpread({
|
|
907
|
+
'data-title': title || selected
|
|
908
|
+
}, TextBoxProps)
|
|
897
909
|
})), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/_react["default"].createElement(_CustomResponsive.ResponsiveReceiver, {
|
|
898
910
|
query: this.responsiveFunc,
|
|
899
911
|
responsiveId: "Helmet"
|
package/lib/v1/Tab/Tab.js
CHANGED
|
@@ -17,7 +17,7 @@ var _Layout = require("../Layout");
|
|
|
17
17
|
|
|
18
18
|
var _Common = require("../../utils/Common");
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _v1TabModule = _interopRequireDefault(require("./v1Tab.module.css"));
|
|
21
21
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
23
|
|
|
@@ -87,10 +87,10 @@ function Tab(_ref) {
|
|
|
87
87
|
var getTab = (0, _react.useCallback)(function (ref) {
|
|
88
88
|
return getTabRef && getTabRef(id, ref, isVirtual);
|
|
89
89
|
}, [id, isVirtual]);
|
|
90
|
-
var activeWithAppearance = (0, _Common.cs)([
|
|
90
|
+
var activeWithAppearance = (0, _Common.cs)([_v1TabModule["default"][styleContent.active], needBorder && !isAnimate && _v1TabModule["default"]["".concat(styleContent.active, "_border")]]);
|
|
91
91
|
var activeClasses = (0, _Common.cs)([needAppearance && activeWithAppearance, activeClass]);
|
|
92
|
-
var inActiveClasses = needAppearance && (0, _Common.cs)([
|
|
93
|
-
var tabClass = (0, _Common.cs)([
|
|
92
|
+
var inActiveClasses = needAppearance && (0, _Common.cs)([_v1TabModule["default"][styleContent.tab], tabTypes[type] && _v1TabModule["default"]["".concat("".concat(type, "Hover"))]]);
|
|
93
|
+
var tabClass = (0, _Common.cs)([_v1TabModule["default"].tab, align === 'vertical' ? _v1TabModule["default"].vertical : _v1TabModule["default"].horizontal, isDisabled && _v1TabModule["default"].disabled, needBorder && !isAnimate && needAppearance && _v1TabModule["default"].border, isActive ? activeClasses : inActiveClasses, className]);
|
|
94
94
|
return /*#__PURE__*/_react["default"].createElement(_Layout.Box, _extends({
|
|
95
95
|
tourId: tourId,
|
|
96
96
|
tagName: isLink ? 'a' : 'div',
|
|
@@ -113,11 +113,11 @@ function Tab(_ref) {
|
|
|
113
113
|
}, customProps), /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
114
114
|
alignBox: "row",
|
|
115
115
|
align: "both",
|
|
116
|
-
className:
|
|
116
|
+
className: _v1TabModule["default"].textContainer
|
|
117
117
|
}, text && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
118
118
|
flexible: true,
|
|
119
119
|
adjust: true,
|
|
120
|
-
className:
|
|
120
|
+
className: _v1TabModule["default"].tabText
|
|
121
121
|
}, text), children ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
122
122
|
shrink: true
|
|
123
123
|
}, children) : null));
|
package/lib/v1/Tab/TabContent.js
CHANGED
|
@@ -13,7 +13,7 @@ var _propTypes = require("./props/propTypes");
|
|
|
13
13
|
|
|
14
14
|
var _Layout = require("../Layout");
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _v1TabContentModule = _interopRequireDefault(require("./v1TabContent.module.css"));
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
19
|
|
|
@@ -25,7 +25,7 @@ var TabContent = function TabContent(_ref) {
|
|
|
25
25
|
id = _ref.id,
|
|
26
26
|
dataSelectorId = _ref.dataSelectorId;
|
|
27
27
|
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
28
|
-
className:
|
|
28
|
+
className: _v1TabContentModule["default"].container,
|
|
29
29
|
scroll: scroll,
|
|
30
30
|
dataId: "".concat(dataId, "_TabContent"),
|
|
31
31
|
isScrollAttribute: true,
|