@zohodesk/components 1.0.0-temp-183 → 1.0.0-temp-185
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/.DS_Store +0 -0
- package/.cli/PropLessFiles.html +1 -1
- package/.cli/propValidation_report.html +1 -1
- package/.cli/stringContains.js +1 -0
- package/README.md +6 -0
- package/assets/Appearance/dark/themes/blue/blue_CTA_DarkModifyCategory.module.css +15 -0
- package/assets/Appearance/dark/themes/blue/blue_CTA_DarkTheme.module.css +1 -0
- package/assets/Appearance/dark/themes/green/green_CTA_DarkModifyCategory.module.css +15 -0
- package/assets/Appearance/dark/themes/green/green_CTA_DarkTheme.module.css +1 -0
- package/assets/Appearance/dark/themes/orange/orange_CTA_DarkModifyCategory.module.css +15 -0
- package/assets/Appearance/dark/themes/orange/orange_CTA_DarkTheme.module.css +1 -0
- package/assets/Appearance/dark/themes/red/red_CTA_DarkModifyCategory.module.css +15 -0
- package/assets/Appearance/dark/themes/red/red_CTA_DarkTheme.module.css +1 -0
- package/assets/Appearance/dark/themes/yellow/yellow_CTA_DarkModifyCategory.module.css +15 -0
- package/assets/Appearance/dark/themes/yellow/yellow_CTA_DarkTheme.module.css +1 -0
- package/assets/Appearance/light/themes/blue/blue_CTA_LightModifyCategory.module.css +15 -0
- package/assets/Appearance/light/themes/blue/blue_CTA_LightTheme.module.css +1 -0
- package/assets/Appearance/light/themes/green/green_CTA_LightModifyCategory.module.css +15 -0
- package/assets/Appearance/light/themes/green/green_CTA_LightTheme.module.css +1 -0
- package/assets/Appearance/light/themes/orange/orange_CTA_LightModifyCategory.module.css +15 -0
- package/assets/Appearance/light/themes/orange/orange_CTA_LightTheme.module.css +1 -0
- package/assets/Appearance/light/themes/red/red_CTA_LightModifyCategory.module.css +15 -0
- package/assets/Appearance/light/themes/red/red_CTA_LightTheme.module.css +1 -0
- package/assets/Appearance/light/themes/yellow/yellow_CTA_LightModifyCategory.module.css +15 -0
- package/assets/Appearance/light/themes/yellow/yellow_CTA_LightTheme.module.css +1 -0
- package/assets/Appearance/pureDark/themes/blue/blue_CTA_PureDarkModifyCategory.module.css +15 -0
- package/assets/Appearance/pureDark/themes/blue/blue_CTA_PureDarkTheme.module.css +1 -0
- package/assets/Appearance/pureDark/themes/green/green_CTA_PureDarkModifyCategory.module.css +15 -0
- package/assets/Appearance/pureDark/themes/green/green_CTA_PureDarkTheme.module.css +1 -0
- package/assets/Appearance/pureDark/themes/orange/orange_CTA_PureDarkModifyCategory.module.css +15 -0
- package/assets/Appearance/pureDark/themes/orange/orange_CTA_PureDarkTheme.module.css +1 -0
- package/assets/Appearance/pureDark/themes/red/red_CTA_PureDarkModifyCategory.module.css +15 -0
- package/assets/Appearance/pureDark/themes/red/red_CTA_PureDarkTheme.module.css +1 -0
- package/assets/Appearance/pureDark/themes/yellow/yellow_CTA_PureDarkModifyCategory.module.css +15 -0
- package/assets/Appearance/pureDark/themes/yellow/yellow_CTA_PureDarkTheme.module.css +1 -0
- package/es/AvatarTeam/AvatarTeam.module.css +2 -0
- package/es/CheckBox/CheckBox.module.css +35 -6
- package/es/DropBox/DropBoxElement/DropBoxElement.js +2 -1
- package/es/Select/Select.js +10 -2
- package/es/Select/Select.module.css +26 -1
- package/es/Tab/TabContentWrapper.js +8 -4
- package/es/Tab/props/defaultProps.js +2 -1
- package/es/Tab/props/propTypes.js +3 -1
- package/es/Tag/Tag.module.css +75 -17
- package/es/TextBox/TextBox.js +7 -1
- package/es/TextBox/TextBox.module.css +41 -2
- 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 +31 -2
- package/es/Tooltip/Tooltip.js +4 -2
- package/es/Tooltip/Tooltip.module.css +0 -4
- package/es/common/customscroll.module.css +0 -10
- package/es/v1/Select/Select.js +10 -2
- package/es/v1/Tab/Tab.js +1 -3
- package/es/v1/Tab/TabContent.js +1 -1
- package/es/v1/Tab/Tabs.js +175 -262
- 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 +7 -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/AvatarTeam/AvatarTeam.module.css +2 -0
- package/lib/CheckBox/CheckBox.module.css +35 -6
- package/lib/DropBox/DropBoxElement/DropBoxElement.js +2 -1
- package/lib/Select/Select.js +11 -2
- package/lib/Select/Select.module.css +26 -1
- package/lib/Tab/TabContentWrapper.js +8 -4
- package/lib/Tab/props/defaultProps.js +2 -1
- package/lib/Tab/props/propTypes.js +3 -1
- package/lib/Tag/Tag.module.css +75 -17
- package/lib/TextBox/TextBox.js +9 -1
- package/lib/TextBox/TextBox.module.css +41 -2
- 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 +31 -2
- package/lib/Tooltip/Tooltip.js +4 -2
- package/lib/Tooltip/Tooltip.module.css +0 -4
- package/lib/common/customscroll.module.css +0 -10
- package/lib/v1/Select/Select.js +11 -2
- package/lib/v1/Tab/Tab.js +6 -6
- package/lib/v1/Tab/TabContent.js +2 -2
- package/lib/v1/Tab/Tabs.js +434 -530
- 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 +8 -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 +10 -9
- package/propValidationArg.json +2 -2
- package/result.json +1 -1
- /package/.cli/{AppearanceThemeValidationExcludeFiles.js → ThemeValidationExcludeFiles.js} +0 -0
|
@@ -13,12 +13,13 @@
|
|
|
13
13
|
/* Variable:Ignore */
|
|
14
14
|
--textbox_letter_spacing: 0.1px;
|
|
15
15
|
--textbox_padding: 0;
|
|
16
|
-
--textbox_cursor:
|
|
16
|
+
--textbox_cursor: text;
|
|
17
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
|
+
|
|
48
54
|
/* css:lineheight-validation:ignore */
|
|
49
55
|
.container {
|
|
50
56
|
composes: basic;
|
|
@@ -66,110 +72,139 @@
|
|
|
66
72
|
border-style: var(--textbox_border_style);
|
|
67
73
|
border-color: var(--textbox_border_color);
|
|
68
74
|
}
|
|
75
|
+
|
|
69
76
|
.basic:disabled,
|
|
70
77
|
.container:disabled,
|
|
71
78
|
.container:disabled:hover {
|
|
72
79
|
--textbox_cursor: not-allowed;
|
|
73
80
|
--textbox_text_color: var(--zdt_textbox_disabled_text);
|
|
74
81
|
}
|
|
82
|
+
|
|
75
83
|
.container:disabled,
|
|
76
84
|
.container:disabled:hover {
|
|
77
85
|
--textbox_bg_color: none;
|
|
78
86
|
}
|
|
87
|
+
|
|
79
88
|
.container::placeholder {
|
|
80
89
|
/* css:theme-validation:ignore */
|
|
81
90
|
color: var(--textbox_placeholder_text_color);
|
|
82
91
|
}
|
|
92
|
+
|
|
83
93
|
.container::-webkit-placeholder {
|
|
84
94
|
/* css:theme-validation:ignore */
|
|
85
95
|
color: var(--textbox_placeholder_text_color);
|
|
86
96
|
}
|
|
97
|
+
|
|
87
98
|
.container::-moz-placeholder {
|
|
88
99
|
/* css:theme-validation:ignore */
|
|
89
100
|
color: var(--textbox_placeholder_text_color);
|
|
90
101
|
}
|
|
102
|
+
|
|
91
103
|
.container::-ms-placeholder {
|
|
92
104
|
/* css:theme-validation:ignore */
|
|
93
105
|
color: var(--textbox_placeholder_text_color);
|
|
94
106
|
}
|
|
107
|
+
|
|
95
108
|
.pointer {
|
|
96
109
|
--textbox_cursor: pointer;
|
|
97
110
|
}
|
|
111
|
+
|
|
98
112
|
/* Need Border */
|
|
99
113
|
.border, .effect:hover, .effect:focus {
|
|
100
114
|
border-width: var(--textbox_border_width);
|
|
101
115
|
border-style: var(--textbox_border_style);
|
|
102
116
|
}
|
|
117
|
+
|
|
103
118
|
.effect:hover,
|
|
104
119
|
.effect:focus {
|
|
105
120
|
/* css:theme-validation:ignore */
|
|
106
121
|
}
|
|
122
|
+
|
|
107
123
|
.effect:hover, .effect:focus {
|
|
108
124
|
border-color: var(--textbox_border_color);
|
|
109
125
|
}
|
|
126
|
+
|
|
110
127
|
.border {
|
|
111
128
|
--textbox_border_width: 0 0 1px 0;
|
|
112
129
|
}
|
|
130
|
+
|
|
113
131
|
.borderColor_transparent,
|
|
114
132
|
.borderColor_default {
|
|
115
133
|
/* css:theme-validation:ignore */
|
|
116
134
|
}
|
|
135
|
+
|
|
117
136
|
.borderColor_transparent, .borderColor_default {
|
|
118
137
|
border-color: var(--textbox_border_color);
|
|
119
138
|
}
|
|
139
|
+
|
|
120
140
|
.borderColor_transparent {
|
|
121
141
|
--textbox_border_color: var(--zdt_textbox_transparent_border);
|
|
122
142
|
}
|
|
143
|
+
|
|
123
144
|
.borderColor_default {
|
|
124
145
|
--textbox_border_color: var(--zdt_textbox_default_border);
|
|
125
146
|
}
|
|
147
|
+
|
|
126
148
|
.effect:hover {
|
|
127
149
|
--textbox_border_color: var(--zdt_textbox_effect_hover_border);
|
|
128
150
|
}
|
|
129
|
-
|
|
151
|
+
|
|
152
|
+
.effect:focus,
|
|
153
|
+
.focus,
|
|
154
|
+
.focus:hover {
|
|
130
155
|
--textbox_border_color: var(--zdt_textbox_effect_focus_border);
|
|
131
156
|
}
|
|
157
|
+
|
|
132
158
|
/* Size */
|
|
133
159
|
.xmedium,
|
|
134
160
|
.medium {
|
|
135
161
|
--textbox_font_size: 14px;
|
|
136
162
|
}
|
|
163
|
+
|
|
137
164
|
.xmedium {
|
|
138
165
|
--textbox_height: 28px;
|
|
139
166
|
--textbox_line_height: 2;
|
|
140
167
|
}
|
|
168
|
+
|
|
141
169
|
.medium {
|
|
142
170
|
--textbox_height: 35px;
|
|
143
171
|
--textbox_line_height: 2.5;
|
|
144
172
|
}
|
|
173
|
+
|
|
145
174
|
.small {
|
|
146
175
|
--textbox_font_size: 12px;
|
|
147
176
|
--textbox_height: 28px;
|
|
148
177
|
--textbox_line_height: 2.3334;
|
|
149
178
|
}
|
|
179
|
+
|
|
150
180
|
.xsmall {
|
|
151
181
|
--textbox_font_size: 13px;
|
|
152
182
|
--textbox_height: 25px;
|
|
153
183
|
--textbox_line_height: 1.9231;
|
|
154
184
|
}
|
|
185
|
+
|
|
155
186
|
.default,
|
|
156
187
|
.primary,
|
|
157
188
|
.secondary,
|
|
158
189
|
.light {
|
|
159
190
|
font-family: var(--textbox_font_family);
|
|
160
191
|
}
|
|
192
|
+
|
|
161
193
|
.primary {
|
|
162
194
|
--textbox_text_color: var(--zdt_textbox_default_text);
|
|
163
195
|
--textbox_font_family: var(--zd_semibold);
|
|
164
196
|
composes: ftsmooth from '../common/common.module.css';
|
|
165
197
|
}
|
|
198
|
+
|
|
166
199
|
.secondary {
|
|
167
200
|
--textbox_text_color: var(--zdt_textbox_secondary_text);
|
|
168
201
|
--textbox_font_family: var(--zd_light);
|
|
169
202
|
}
|
|
203
|
+
|
|
170
204
|
.light {
|
|
171
205
|
--textbox_text_color: var(--zdt_textbox_light_text);
|
|
172
206
|
}
|
|
207
|
+
|
|
173
208
|
.readonly,
|
|
174
209
|
.readonly:hover,
|
|
175
210
|
.readonly:focus {
|
|
@@ -177,3 +212,7 @@
|
|
|
177
212
|
--textbox_text_color: var(--zdt_textbox_default_text);
|
|
178
213
|
--textbox_bg_color: none;
|
|
179
214
|
}
|
|
215
|
+
|
|
216
|
+
.inputDotted {
|
|
217
|
+
composes: dotted from '../common/common.module.css'
|
|
218
|
+
}
|
|
@@ -94,6 +94,7 @@ export default class TextBoxIcon extends React.Component {
|
|
|
94
94
|
iconOnHover,
|
|
95
95
|
isFocus,
|
|
96
96
|
onClearMouseDown,
|
|
97
|
+
isScrollPrevent,
|
|
97
98
|
customProps
|
|
98
99
|
} = this.props;
|
|
99
100
|
const {
|
|
@@ -144,6 +145,7 @@ export default class TextBoxIcon extends React.Component {
|
|
|
144
145
|
onKeyPress: onKeyPress,
|
|
145
146
|
onMouseDown: onMouseDown,
|
|
146
147
|
needBorder: false,
|
|
148
|
+
isScrollPrevent: isScrollPrevent,
|
|
147
149
|
customClass: customTextBox,
|
|
148
150
|
customProps: TextBoxProps
|
|
149
151
|
}))), /*#__PURE__*/React.createElement(Box, {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* textarea default variables */
|
|
3
3
|
--textarea_border_width: 0;
|
|
4
4
|
--textarea_border_color: none;
|
|
5
|
-
--textarea_cursor:
|
|
5
|
+
--textarea_cursor: text;
|
|
6
6
|
--textarea_text_color: var(--zdt_textarea_default_text);
|
|
7
7
|
--textarea_font_size: 14px;
|
|
8
8
|
--textarea_line_height: 1.5712;
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
/* textarea placeholder default variable */
|
|
13
13
|
--textarea_placeholder_text_color: var(--zdt_textarea_placeholder_text);
|
|
14
14
|
}
|
|
15
|
+
|
|
15
16
|
.basic {
|
|
16
17
|
composes: varClass;
|
|
17
18
|
-webkit-appearance: none;
|
|
@@ -23,44 +24,56 @@
|
|
|
23
24
|
color: var(--textarea_text_color);
|
|
24
25
|
cursor: var(--textarea_cursor);
|
|
25
26
|
}
|
|
27
|
+
|
|
26
28
|
.basic, .noBorder {
|
|
27
29
|
border-width: var(--textarea_border_width);
|
|
28
30
|
}
|
|
31
|
+
|
|
29
32
|
.basic::placeholder {
|
|
30
33
|
/* css:theme-validation:ignore */
|
|
31
34
|
color: var(--textarea_placeholder_text_color);
|
|
32
35
|
}
|
|
36
|
+
|
|
33
37
|
.basic::-webkit-placeholder {
|
|
34
38
|
/* css:theme-validation:ignore */
|
|
35
39
|
color: var(--textarea_placeholder_text_color);
|
|
36
40
|
}
|
|
41
|
+
|
|
37
42
|
.basic::-moz-placeholder {
|
|
38
43
|
/* css:theme-validation:ignore */
|
|
39
44
|
color: var(--textarea_placeholder_text_color);
|
|
40
45
|
}
|
|
46
|
+
|
|
41
47
|
.basic::-ms-placeholder {
|
|
42
48
|
/* css:theme-validation:ignore */
|
|
43
49
|
color: var(--textarea_placeholder_text_color);
|
|
44
50
|
}
|
|
51
|
+
|
|
45
52
|
.basic:disabled {
|
|
46
53
|
--textarea_cursor: not-allowed;
|
|
47
54
|
--textarea_text_color: var(--zdt_textarea_default_text);
|
|
48
55
|
}
|
|
56
|
+
|
|
49
57
|
.readonly {
|
|
50
58
|
--textarea_cursor: not-allowed;
|
|
51
59
|
}
|
|
60
|
+
|
|
52
61
|
.resizeX {
|
|
53
62
|
composes: resizeX from '../common/common.module.css';
|
|
54
63
|
}
|
|
64
|
+
|
|
55
65
|
.resizeY {
|
|
56
66
|
composes: resizeY from '../common/common.module.css';
|
|
57
67
|
}
|
|
68
|
+
|
|
58
69
|
.noresize {
|
|
59
70
|
composes: resizenone from '../common/common.module.css';
|
|
60
71
|
}
|
|
72
|
+
|
|
61
73
|
.resizeboth {
|
|
62
74
|
composes: resizeboth from '../common/common.module.css';
|
|
63
75
|
}
|
|
76
|
+
|
|
64
77
|
/* css:lineheight-validation:ignore */
|
|
65
78
|
.container {
|
|
66
79
|
composes: basic;
|
|
@@ -82,65 +95,81 @@
|
|
|
82
95
|
border-color: var(--textarea_border_color);
|
|
83
96
|
padding: var(--textarea_padding);
|
|
84
97
|
}
|
|
98
|
+
|
|
85
99
|
.needBorder {
|
|
86
100
|
--textarea_border_width: 0 0 1px 0;
|
|
87
101
|
}
|
|
102
|
+
|
|
88
103
|
.borderColor_transparent {
|
|
89
104
|
--textarea_border_color: var(--zdt_textarea_transparent_border);
|
|
90
105
|
}
|
|
106
|
+
|
|
91
107
|
.borderColor_default {
|
|
92
108
|
--textarea_border_color: var(--zdt_textarea_default_border);
|
|
93
109
|
}
|
|
110
|
+
|
|
94
111
|
.effect:hover {
|
|
95
112
|
--textarea_border_color: var(--zdt_textarea_hover_border);
|
|
96
113
|
}
|
|
114
|
+
|
|
97
115
|
.effect:focus {
|
|
98
116
|
--textarea_border_color: var(--zdt_textarea_focus_border);
|
|
99
117
|
}
|
|
118
|
+
|
|
100
119
|
.xsmall,
|
|
101
120
|
.xmedium {
|
|
102
121
|
vertical-align: middle;
|
|
103
122
|
}
|
|
123
|
+
|
|
104
124
|
.xsmall {
|
|
105
125
|
--textarea_font_size: 14px;
|
|
106
126
|
--textarea_padding: 4px 0 2px;
|
|
107
127
|
--textarea_height: 28px;
|
|
108
128
|
--textarea_line_height: 1.3572;
|
|
109
129
|
}
|
|
130
|
+
|
|
110
131
|
.xmedium {
|
|
111
132
|
--textarea_font_size: 13px;
|
|
112
133
|
--textarea_padding: 4px 0 2px;
|
|
113
134
|
--textarea_height: 25px;
|
|
114
135
|
--textarea_line_height: 1.3077;
|
|
115
136
|
}
|
|
137
|
+
|
|
116
138
|
.small {
|
|
117
139
|
--textarea_height: 30px;
|
|
118
140
|
--textarea_padding: 2px 0;
|
|
119
141
|
}
|
|
142
|
+
|
|
120
143
|
.smallanimated:focus,
|
|
121
144
|
.xsmallanimated:focus,
|
|
122
145
|
.xmediumanimated:focus {
|
|
123
146
|
--textarea_height: 70px;
|
|
124
147
|
}
|
|
148
|
+
|
|
125
149
|
.medium {
|
|
126
150
|
--textarea_height: 88px;
|
|
127
151
|
--textarea_padding: 2px;
|
|
128
152
|
}
|
|
153
|
+
|
|
129
154
|
.large {
|
|
130
155
|
--textarea_height: 45px;
|
|
131
156
|
--textarea_padding: 2px;
|
|
132
157
|
}
|
|
158
|
+
|
|
133
159
|
.largeanimated:focus {
|
|
134
160
|
--textarea_height: 220px;
|
|
135
161
|
}
|
|
162
|
+
|
|
136
163
|
.xlarge {
|
|
137
164
|
--textarea_height: 184px;
|
|
138
165
|
}
|
|
166
|
+
|
|
139
167
|
.default {
|
|
140
168
|
font-family: var(--zd_regular);
|
|
141
169
|
--textarea_text_color: var(--zdt_textarea_black_text);
|
|
142
170
|
}
|
|
171
|
+
|
|
143
172
|
.primary {
|
|
144
173
|
composes: semibold from '../common/common.module.css';
|
|
145
174
|
--textarea_text_color: var(--zdt_textarea_black_text);
|
|
146
|
-
}
|
|
175
|
+
}
|
package/es/Tooltip/Tooltip.js
CHANGED
|
@@ -136,7 +136,9 @@ export default class Tooltip extends React.Component {
|
|
|
136
136
|
if (title !== '' && title) {
|
|
137
137
|
titleDiv.setAttribute('data-title', title);
|
|
138
138
|
titleDiv.removeAttribute('title');
|
|
139
|
-
|
|
139
|
+
let isInputElementType = element.type === 'text';
|
|
140
|
+
let elementText = isInputElementType ? element.value : element.innerText;
|
|
141
|
+
if (element.nodeName !== 'I' && elementText && elementText.trim() !== '') {
|
|
140
142
|
let isContentDotted = '';
|
|
141
143
|
if (element.scrollWidth !== 0) {
|
|
142
144
|
isContentDotted = element.offsetWidth < element.scrollWidth;
|
|
@@ -151,7 +153,7 @@ export default class Tooltip extends React.Component {
|
|
|
151
153
|
const scrollWidth = selectn('parentElement.scrollWidth', element) || 0;
|
|
152
154
|
isContentDotted = offWidth < scrollWidth;
|
|
153
155
|
}
|
|
154
|
-
let originText =
|
|
156
|
+
let originText = elementText.replace(/\s/g, '').toLowerCase();
|
|
155
157
|
let tooltipText = title.replace(/\s/g, '').toLowerCase();
|
|
156
158
|
let isDefaultTooltip = element.hasAttribute('data-istitle') || element.hasAttribute('istitle') ? element.getAttribute('data-istitle') || element.getAttribute('istitle') : 'false';
|
|
157
159
|
isDefaultTooltip = isDefaultTooltip === 'true';
|
|
@@ -49,9 +49,7 @@
|
|
|
49
49
|
height: 11px;
|
|
50
50
|
border-top: solid 6px var(--zdt_tooltip_default_bg);
|
|
51
51
|
border-left: solid 6px var(--zdt_tooltip_default_bg);
|
|
52
|
-
/* css:theme-validation:ignore */
|
|
53
52
|
border-right: solid 6px transparent;
|
|
54
|
-
/* css:theme-validation:ignore */
|
|
55
53
|
border-bottom: solid 6px transparent;
|
|
56
54
|
box-shadow: 0 4px 12px 0 var(--zdt_tooltip_default_box_shadow);
|
|
57
55
|
z-index: -1;
|
|
@@ -71,9 +69,7 @@
|
|
|
71
69
|
height: 11px;
|
|
72
70
|
border-top: solid 6px var(--zdt_tooltip_default_bg);
|
|
73
71
|
border-left: solid 6px var(--zdt_tooltip_default_bg);
|
|
74
|
-
/* css:theme-validation:ignore */
|
|
75
72
|
border-right: solid 6px transparent;
|
|
76
|
-
/* css:theme-validation:ignore */
|
|
77
73
|
border-bottom: solid 6px transparent;
|
|
78
74
|
box-shadow: 0 4px 12px 0 var(--zdt_tooltip_default_box_shadow);
|
|
79
75
|
z-index: -1;
|
|
@@ -51,11 +51,6 @@
|
|
|
51
51
|
width: 0;
|
|
52
52
|
height: 0;
|
|
53
53
|
}
|
|
54
|
-
.scroll::-webkit-scrollbar-track:vertical,
|
|
55
|
-
.scroll ::-webkit-scrollbar-track:vertical {
|
|
56
|
-
/* css:theme-validation:ignore */
|
|
57
|
-
/* css:theme-validation:ignore */
|
|
58
|
-
}
|
|
59
54
|
[dir=ltr] .scroll::-webkit-scrollbar-track:vertical, [dir=ltr] .scroll ::-webkit-scrollbar-track:vertical {
|
|
60
55
|
border-left: 1px solid transparent;
|
|
61
56
|
border-right: 1px solid transparent;
|
|
@@ -71,11 +66,6 @@
|
|
|
71
66
|
.scroll::-webkit-scrollbar-track:vertical:hover, .scroll ::-webkit-scrollbar-track:vertical:hover {
|
|
72
67
|
border-color: var(--zd-scroll-border);
|
|
73
68
|
}
|
|
74
|
-
.scroll::-webkit-scrollbar-track:horizontal,
|
|
75
|
-
.scroll ::-webkit-scrollbar-track:horizontal {
|
|
76
|
-
/* css:theme-validation:ignore */
|
|
77
|
-
/* css:theme-validation:ignore */
|
|
78
|
-
}
|
|
79
69
|
.scroll::-webkit-scrollbar-track:horizontal, .scroll ::-webkit-scrollbar-track:horizontal {
|
|
80
70
|
border-top: 1px solid transparent;
|
|
81
71
|
border-bottom: 1px solid transparent;
|
package/es/v1/Select/Select.js
CHANGED
|
@@ -757,8 +757,12 @@ export class SelectComponent extends Component {
|
|
|
757
757
|
htmlId: htmlId,
|
|
758
758
|
isFocus: isPopupReady,
|
|
759
759
|
autoComplete: autoComplete,
|
|
760
|
+
isScrollPrevent: true,
|
|
760
761
|
customProps: {
|
|
761
|
-
TextBoxProps:
|
|
762
|
+
TextBoxProps: {
|
|
763
|
+
'data-title': title || selected,
|
|
764
|
+
...TextBoxProps
|
|
765
|
+
}
|
|
762
766
|
}
|
|
763
767
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
764
768
|
alignBox: "row",
|
|
@@ -806,7 +810,11 @@ export class SelectComponent extends Component {
|
|
|
806
810
|
htmlId: htmlId,
|
|
807
811
|
autoComplete: autoComplete,
|
|
808
812
|
isFocus: isPopupReady,
|
|
809
|
-
|
|
813
|
+
isScrollPrevent: true,
|
|
814
|
+
customProps: {
|
|
815
|
+
'data-title': title || selected,
|
|
816
|
+
...TextBoxProps
|
|
817
|
+
}
|
|
810
818
|
})), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
811
819
|
query: this.responsiveFunc,
|
|
812
820
|
responsiveId: "Helmet"
|
package/es/v1/Tab/Tab.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
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
|
-
/* eslint-disable react/forbid-component-props */
|
|
3
|
-
|
|
4
2
|
import React, { useMemo, useCallback } from 'react';
|
|
5
3
|
import { Tab_defaultProps } from './props/defaultProps';
|
|
6
4
|
import { Tab_propTypes } from './props/propTypes';
|
|
7
5
|
import { Box, Container } from '../Layout';
|
|
8
6
|
import { cs } from '../../utils/Common';
|
|
9
|
-
import styles from '
|
|
7
|
+
import styles from './v1Tab.module.css';
|
|
10
8
|
const tabTypes = {
|
|
11
9
|
alpha: {
|
|
12
10
|
active: 'alphaActive',
|
package/es/v1/Tab/TabContent.js
CHANGED
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { TabContent_defaultProps } from './props/defaultProps';
|
|
3
3
|
import { TabContent_propTypes } from './props/propTypes';
|
|
4
4
|
import { Container } from '../Layout';
|
|
5
|
-
import style from '
|
|
5
|
+
import style from './v1TabContent.module.css';
|
|
6
6
|
/* eslint-disable react/forbid-component-props */
|
|
7
7
|
|
|
8
8
|
const TabContent = _ref => {
|