@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/README.md
CHANGED
|
@@ -32,6 +32,12 @@ In this Package, we Provide Some Basic Components to Build Web App
|
|
|
32
32
|
- TextBoxIcon
|
|
33
33
|
- Tooltip
|
|
34
34
|
|
|
35
|
+
# 1.2.21
|
|
36
|
+
|
|
37
|
+
- **v1/Tabs** - converted to functional component
|
|
38
|
+
- **TextBox** - Tooltip Issue fixed
|
|
39
|
+
- **Tooltip** - Input Element Based Tooltip Fix Related Fix Added
|
|
40
|
+
|
|
35
41
|
# 1.2.20
|
|
36
42
|
|
|
37
43
|
- **Avatar, ListContainer, Suggestions, Select, Switch** - Accessibility issue fixes.
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
.grid {
|
|
36
36
|
width: var(--zd_size28) ;
|
|
37
37
|
height: var(--zd_size28) ;
|
|
38
|
-
line-height:
|
|
38
|
+
line-height: 1.3846;
|
|
39
39
|
/* css:theme-validation:ignore */
|
|
40
40
|
text-align: center;
|
|
41
41
|
padding: var(--zd_size4) 0 ;
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
|
|
73
73
|
.thMonYear {
|
|
74
74
|
font-size: var(--zd_font_size13) ;
|
|
75
|
-
line-height:
|
|
75
|
+
line-height: 1.8462;
|
|
76
76
|
color: var(--zdt_datetime_datestr_text);
|
|
77
77
|
composes: semibold;
|
|
78
78
|
display: initial
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
--label_text_color: var(--zdt_label_default_text);
|
|
5
5
|
--label_font_family: var(--zd_regular);
|
|
6
6
|
--label_cursor: default;
|
|
7
|
-
--label_line_height:
|
|
7
|
+
--label_line_height: 1.286;
|
|
8
8
|
}
|
|
9
|
+
/* css:lineheight-validation:ignore */
|
|
9
10
|
.label {
|
|
10
11
|
composes: varClass;
|
|
11
12
|
vertical-align: middle;
|
|
@@ -18,15 +19,19 @@
|
|
|
18
19
|
}
|
|
19
20
|
.xsmall {
|
|
20
21
|
--label_font_size: var(--zd_font_size12);
|
|
22
|
+
--label_line_height:1.5;
|
|
21
23
|
}
|
|
22
24
|
.small {
|
|
23
25
|
--label_font_size: var(--zd_font_size13);
|
|
26
|
+
--label_line_height:1.385;
|
|
24
27
|
}
|
|
25
28
|
.medium {
|
|
26
29
|
--label_font_size: var(--zd_font_size14);
|
|
30
|
+
--label_line_height:1.286;
|
|
27
31
|
}
|
|
28
32
|
.large {
|
|
29
33
|
--label_font_size: var(--zd_font_size26);
|
|
34
|
+
--label_line_height:0.6923;
|
|
30
35
|
composes: semibold from '../common/common.module.css';
|
|
31
36
|
}
|
|
32
37
|
.pointer {
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
--ribbon_tag_before_border_width: 1px 0 0 1px ;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
/* css:lineheight-validation:ignore */
|
|
35
36
|
.basic {
|
|
36
37
|
composes: varClass;
|
|
37
38
|
position: relative;
|
|
@@ -215,7 +216,6 @@
|
|
|
215
216
|
composes: dotted from '../common/common.module.css';
|
|
216
217
|
display: block;
|
|
217
218
|
--ribbon_text_color: var(--zdt_ribbon_white_text);
|
|
218
|
-
--ribbon_line_height: 20px;
|
|
219
219
|
--ribbon_text_transform: uppercase;
|
|
220
220
|
}
|
|
221
221
|
|
|
@@ -227,6 +227,22 @@
|
|
|
227
227
|
--ribbon_padding: var(--zd_size4) var(--zd_size24) var(--zd_size4) var(--zd_size6);
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
+
.flag.small {
|
|
231
|
+
--ribbon_line_height: 2.2223;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.flag.medium {
|
|
235
|
+
--ribbon_line_height: 1.8182;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.flag.large {
|
|
239
|
+
--ribbon_line_height: 1.5385;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.flag.xlarge {
|
|
243
|
+
--ribbon_line_height: 1.4286;
|
|
244
|
+
}
|
|
245
|
+
|
|
230
246
|
.flag::after {
|
|
231
247
|
position: absolute;
|
|
232
248
|
/* Variable:Ignore */
|
|
@@ -262,10 +278,25 @@
|
|
|
262
278
|
--ribbon_text_color: var(--zdt_ribbon_white_text);
|
|
263
279
|
--ribbon_text_transform: uppercase;
|
|
264
280
|
--ribbon_padding: var(--zd_size6) var(--zd_size10);
|
|
265
|
-
--ribbon_line_height: 20px;
|
|
266
281
|
text-align: center;
|
|
267
282
|
}
|
|
268
283
|
|
|
284
|
+
.ribbon.small {
|
|
285
|
+
--ribbon_line_height: 2.2223;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.ribbon.medium {
|
|
289
|
+
--ribbon_line_height: 1.8182;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.ribbon.large {
|
|
293
|
+
--ribbon_line_height: 1.5385;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.ribbon.xlarge {
|
|
297
|
+
--ribbon_line_height: 1.4286;
|
|
298
|
+
}
|
|
299
|
+
|
|
269
300
|
.ribbon::after,
|
|
270
301
|
.ribbon::before {
|
|
271
302
|
position: absolute;
|
|
@@ -373,7 +404,6 @@
|
|
|
373
404
|
.sticker {
|
|
374
405
|
display: block;
|
|
375
406
|
height: var(--zd_size18) ;
|
|
376
|
-
line-height: var(--zd_size11);
|
|
377
407
|
--ribbon_text_color: var(--zdt_ribbon_white_text);
|
|
378
408
|
--ribbon_text_transform: uppercase;
|
|
379
409
|
text-align: center;
|
|
@@ -383,6 +413,22 @@
|
|
|
383
413
|
padding: var(--zd_size3) var(--zd_size10) ;
|
|
384
414
|
}
|
|
385
415
|
|
|
416
|
+
.sticker.small {
|
|
417
|
+
line-height: 1.2223;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.sticker.medium {
|
|
421
|
+
line-height: 1;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.sticker.large {
|
|
425
|
+
line-height: 0.8462;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
.sticker.xlarge {
|
|
429
|
+
line-height: 0.7858;
|
|
430
|
+
}
|
|
431
|
+
|
|
386
432
|
.after,
|
|
387
433
|
.before {
|
|
388
434
|
position: absolute;
|
package/es/Select/Select.js
CHANGED
|
@@ -800,8 +800,12 @@ export class SelectComponent extends Component {
|
|
|
800
800
|
htmlId: htmlId,
|
|
801
801
|
isFocus: isPopupReady,
|
|
802
802
|
autoComplete: autoComplete,
|
|
803
|
+
isScrollPrevent: true,
|
|
803
804
|
customProps: {
|
|
804
|
-
TextBoxProps:
|
|
805
|
+
TextBoxProps: {
|
|
806
|
+
'data-title': title || selected,
|
|
807
|
+
...TextBoxProps
|
|
808
|
+
}
|
|
805
809
|
}
|
|
806
810
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
807
811
|
alignBox: "row",
|
|
@@ -849,7 +853,11 @@ export class SelectComponent extends Component {
|
|
|
849
853
|
htmlId: htmlId,
|
|
850
854
|
autoComplete: autoComplete,
|
|
851
855
|
isFocus: isPopupReady,
|
|
852
|
-
|
|
856
|
+
isScrollPrevent: true,
|
|
857
|
+
customProps: {
|
|
858
|
+
'data-title': title || selected,
|
|
859
|
+
...TextBoxProps
|
|
860
|
+
}
|
|
853
861
|
})), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
854
862
|
query: this.responsiveFunc,
|
|
855
863
|
responsiveId: "Helmet"
|
|
@@ -1,65 +1,84 @@
|
|
|
1
1
|
.input {
|
|
2
2
|
cursor: pointer;
|
|
3
3
|
}
|
|
4
|
+
|
|
4
5
|
.small {
|
|
5
6
|
max-height: var(--zd_size200) ;
|
|
6
7
|
}
|
|
8
|
+
|
|
7
9
|
.medium {
|
|
8
10
|
max-height: var(--zd_size350) ;
|
|
9
11
|
}
|
|
12
|
+
|
|
10
13
|
.large {
|
|
11
14
|
max-height: var(--zd_size400) ;
|
|
12
15
|
}
|
|
16
|
+
|
|
13
17
|
.emptyState {
|
|
14
18
|
font-size: var(--zd_font_size14) ;
|
|
15
19
|
color: var(--zdt_select_emptystate_text);
|
|
16
20
|
composes: semibold from '../common/common.module.css';
|
|
17
21
|
}
|
|
22
|
+
|
|
18
23
|
.box_small .emptyState {
|
|
19
24
|
padding: var(--zd_size12) var(--zd_size6) ;
|
|
20
25
|
}
|
|
26
|
+
|
|
21
27
|
.box_medium .emptyState {
|
|
22
28
|
padding: var(--zd_size12) var(--zd_size15) ;
|
|
23
29
|
}
|
|
30
|
+
|
|
24
31
|
.hide {
|
|
25
32
|
composes: vishidden from '../common/common.module.css';
|
|
26
33
|
}
|
|
34
|
+
|
|
27
35
|
.container {
|
|
28
36
|
position: relative;
|
|
29
37
|
}
|
|
38
|
+
/* css:lineheight-validation:ignore */
|
|
30
39
|
.arrowIcon {
|
|
31
40
|
height: var(--zd_size8) ;
|
|
32
41
|
line-height: var(--zd_size8);
|
|
33
42
|
}
|
|
43
|
+
|
|
34
44
|
.small.search {
|
|
35
45
|
padding: 0 var(--zd_size5) ;
|
|
36
46
|
}
|
|
47
|
+
|
|
37
48
|
.medium.search {
|
|
38
49
|
padding: var(--zd_size3) var(--zd_size20) 0 ;
|
|
39
50
|
}
|
|
51
|
+
|
|
40
52
|
.title {
|
|
41
53
|
margin-bottom: var(--zd_size6) ;
|
|
42
54
|
}
|
|
55
|
+
|
|
43
56
|
.groupTitle {
|
|
44
57
|
margin: var(--zd_size6) 0 ;
|
|
45
58
|
}
|
|
59
|
+
|
|
46
60
|
.listItemContainer {
|
|
47
61
|
padding: var(--zd_size10) 0 ;
|
|
48
62
|
}
|
|
63
|
+
|
|
49
64
|
.responsivelistItemContainer {
|
|
50
65
|
padding: var(--zd_size10) 0 0 ;
|
|
51
66
|
}
|
|
67
|
+
|
|
52
68
|
.readonly {
|
|
53
69
|
--textboxicon_icon_cursor: not-allowed;
|
|
54
70
|
}
|
|
71
|
+
|
|
55
72
|
.transparentContainer .arrowIcon {
|
|
56
73
|
opacity: 0;
|
|
57
74
|
visibility: hidden;
|
|
58
75
|
}
|
|
76
|
+
|
|
59
77
|
.transparentContainer:hover .arrowIcon {
|
|
60
78
|
opacity: 1;
|
|
61
79
|
visibility: visible;
|
|
62
80
|
}
|
|
81
|
+
|
|
63
82
|
.disable {
|
|
64
83
|
color: var(--zdt_select_disable_text);
|
|
65
84
|
}
|
|
@@ -78,9 +97,11 @@
|
|
|
78
97
|
[dir=rtl] .leftIcon {
|
|
79
98
|
right: 0 ;
|
|
80
99
|
}
|
|
100
|
+
|
|
81
101
|
[dir=ltr] .iconSelect {
|
|
82
102
|
padding-left: var(--zd_size30) ;
|
|
83
103
|
}
|
|
104
|
+
|
|
84
105
|
[dir=rtl] .iconSelect {
|
|
85
106
|
padding-right: var(--zd_size30) ;
|
|
86
107
|
}
|
|
@@ -88,22 +109,27 @@
|
|
|
88
109
|
.dropBoxList {
|
|
89
110
|
padding: var(--zd_size10) 0 ;
|
|
90
111
|
}
|
|
91
|
-
|
|
112
|
+
|
|
113
|
+
.responsivedropBoxList {
|
|
92
114
|
padding: var(--zd_size10) 0 0 0 ;
|
|
93
115
|
}
|
|
116
|
+
|
|
94
117
|
.rotate {
|
|
95
118
|
transform: rotateX(180deg);
|
|
96
119
|
}
|
|
120
|
+
|
|
97
121
|
.iconOnHoverStyle .arrowIcon,
|
|
98
122
|
.iconOnHoverReadonly .arrowIcon,
|
|
99
123
|
.iconOnHoverReadonly:hover .arrowIcon {
|
|
100
124
|
opacity: 0;
|
|
101
125
|
visibility: hidden;
|
|
102
126
|
}
|
|
127
|
+
|
|
103
128
|
.iconOnHoverStyle:hover .arrowIcon {
|
|
104
129
|
opacity: 1;
|
|
105
130
|
visibility: visible;
|
|
106
131
|
}
|
|
132
|
+
|
|
107
133
|
.loader {
|
|
108
134
|
padding: var(--zd_size10) ;
|
|
109
135
|
}
|
package/es/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/es/TextBox/TextBox.js
CHANGED
|
@@ -14,6 +14,7 @@ export default class TextBox extends React.PureComponent {
|
|
|
14
14
|
this.setFocus = this.setFocus.bind(this);
|
|
15
15
|
this.handleFocus = this.handleFocus.bind(this);
|
|
16
16
|
this.handleBlur = this.handleBlur.bind(this);
|
|
17
|
+
this.handlePreventTextBoxScroll = this.handlePreventTextBoxScroll.bind(this);
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
handleFocus() {
|
|
@@ -64,6 +65,10 @@ export default class TextBox extends React.PureComponent {
|
|
|
64
65
|
onChange && !isReadOnly && onChange(value, e);
|
|
65
66
|
}
|
|
66
67
|
|
|
68
|
+
handlePreventTextBoxScroll() {
|
|
69
|
+
this.inputEle.scrollLeft = 0;
|
|
70
|
+
}
|
|
71
|
+
|
|
67
72
|
render() {
|
|
68
73
|
let {
|
|
69
74
|
type,
|
|
@@ -94,6 +99,7 @@ export default class TextBox extends React.PureComponent {
|
|
|
94
99
|
a11y,
|
|
95
100
|
customClass,
|
|
96
101
|
isFocus,
|
|
102
|
+
isScrollPrevent,
|
|
97
103
|
customProps,
|
|
98
104
|
dataSelectorId
|
|
99
105
|
} = this.props;
|
|
@@ -148,7 +154,7 @@ export default class TextBox extends React.PureComponent {
|
|
|
148
154
|
"aria-activedescendant": ariaActivedescendant,
|
|
149
155
|
"aria-readonly": ariaReadonly,
|
|
150
156
|
"aria-multiselectable": ariaMultiselectable,
|
|
151
|
-
className: `${isReadOnly && needReadOnlyStyle ? style.readonly : ''} ${isClickable ? style.pointer : ''} ${classList} ${style[`borderColor_${borderColor}`]} ${customClass ? customClass : ''}`,
|
|
157
|
+
className: `${isReadOnly && needReadOnlyStyle ? style.readonly : ''} ${isClickable ? style.pointer : ''} ${classList} ${style[`borderColor_${borderColor}`]} ${isScrollPrevent ? style.inputDotted : ''} ${customClass ? customClass : ''}`,
|
|
152
158
|
"data-id": `${dataId}`,
|
|
153
159
|
"data-test-id": `${dataId}`,
|
|
154
160
|
"data-selector-id": dataSelectorId,
|
|
@@ -165,6 +171,7 @@ export default class TextBox extends React.PureComponent {
|
|
|
165
171
|
ref: this.inputRef,
|
|
166
172
|
type: type,
|
|
167
173
|
value: value,
|
|
174
|
+
onScroll: isScrollPrevent ? this.handlePreventTextBoxScroll : '',
|
|
168
175
|
onKeyPress: onKeyPress,
|
|
169
176
|
onMouseDown: onMouseDown
|
|
170
177
|
}, 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
|
+
}
|
|
@@ -101,6 +101,7 @@ export default class TextBoxIcon extends React.Component {
|
|
|
101
101
|
iconOnHover,
|
|
102
102
|
isFocus,
|
|
103
103
|
onClearMouseDown,
|
|
104
|
+
isScrollPrevent,
|
|
104
105
|
customProps
|
|
105
106
|
} = this.props;
|
|
106
107
|
const {
|
|
@@ -151,6 +152,7 @@ export default class TextBoxIcon extends React.Component {
|
|
|
151
152
|
onKeyPress: onKeyPress,
|
|
152
153
|
onMouseDown: onMouseDown,
|
|
153
154
|
needBorder: false,
|
|
155
|
+
isScrollPrevent: isScrollPrevent,
|
|
154
156
|
customClass: customTextBox,
|
|
155
157
|
customProps: TextBoxProps
|
|
156
158
|
}))), /*#__PURE__*/React.createElement(Box, {
|
|
@@ -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/es/Tooltip/Tooltip.js
CHANGED
|
@@ -154,8 +154,10 @@ export default class Tooltip extends React.Component {
|
|
|
154
154
|
if (title !== '' && title) {
|
|
155
155
|
titleDiv.setAttribute('data-title', title);
|
|
156
156
|
titleDiv.removeAttribute('title');
|
|
157
|
+
let isInputElementType = element.type === 'text';
|
|
158
|
+
let elementText = isInputElementType ? element.value : element.innerText;
|
|
157
159
|
|
|
158
|
-
if (element.nodeName !== 'I' &&
|
|
160
|
+
if (element.nodeName !== 'I' && elementText && elementText.trim() !== '') {
|
|
159
161
|
let isContentDotted = '';
|
|
160
162
|
|
|
161
163
|
if (element.scrollWidth !== 0) {
|
|
@@ -173,7 +175,7 @@ export default class Tooltip extends React.Component {
|
|
|
173
175
|
isContentDotted = offWidth < scrollWidth;
|
|
174
176
|
}
|
|
175
177
|
|
|
176
|
-
let originText =
|
|
178
|
+
let originText = elementText.replace(/\s/g, '').toLowerCase();
|
|
177
179
|
let tooltipText = title.replace(/\s/g, '').toLowerCase();
|
|
178
180
|
let isDefaultTooltip = element.hasAttribute('data-istitle') || element.hasAttribute('istitle') ? element.getAttribute('data-istitle') || element.getAttribute('istitle') : 'false';
|
|
179
181
|
isDefaultTooltip = isDefaultTooltip === 'true';
|