@zohodesk/components 1.0.0-temp-183 → 1.0.0-temp-184

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.
Files changed (98) hide show
  1. package/.cli/propValidation_report.html +1 -1
  2. package/.cli/stringContains.js +1 -0
  3. package/README.md +6 -0
  4. package/assets/Appearance/dark/themes/blue/blue_CTA_DarkModifyCategory.module.css +15 -0
  5. package/assets/Appearance/dark/themes/blue/blue_CTA_DarkTheme.module.css +1 -0
  6. package/assets/Appearance/dark/themes/green/green_CTA_DarkModifyCategory.module.css +15 -0
  7. package/assets/Appearance/dark/themes/green/green_CTA_DarkTheme.module.css +1 -0
  8. package/assets/Appearance/dark/themes/orange/orange_CTA_DarkModifyCategory.module.css +15 -0
  9. package/assets/Appearance/dark/themes/orange/orange_CTA_DarkTheme.module.css +1 -0
  10. package/assets/Appearance/dark/themes/red/red_CTA_DarkModifyCategory.module.css +15 -0
  11. package/assets/Appearance/dark/themes/red/red_CTA_DarkTheme.module.css +1 -0
  12. package/assets/Appearance/dark/themes/yellow/yellow_CTA_DarkModifyCategory.module.css +15 -0
  13. package/assets/Appearance/dark/themes/yellow/yellow_CTA_DarkTheme.module.css +1 -0
  14. package/assets/Appearance/light/themes/blue/blue_CTA_LightModifyCategory.module.css +15 -0
  15. package/assets/Appearance/light/themes/blue/blue_CTA_LightTheme.module.css +1 -0
  16. package/assets/Appearance/light/themes/green/green_CTA_LightModifyCategory.module.css +15 -0
  17. package/assets/Appearance/light/themes/green/green_CTA_LightTheme.module.css +1 -0
  18. package/assets/Appearance/light/themes/orange/orange_CTA_LightModifyCategory.module.css +15 -0
  19. package/assets/Appearance/light/themes/orange/orange_CTA_LightTheme.module.css +1 -0
  20. package/assets/Appearance/light/themes/red/red_CTA_LightModifyCategory.module.css +15 -0
  21. package/assets/Appearance/light/themes/red/red_CTA_LightTheme.module.css +1 -0
  22. package/assets/Appearance/light/themes/yellow/yellow_CTA_LightModifyCategory.module.css +15 -0
  23. package/assets/Appearance/light/themes/yellow/yellow_CTA_LightTheme.module.css +1 -0
  24. package/assets/Appearance/pureDark/themes/blue/blue_CTA_PureDarkModifyCategory.module.css +15 -0
  25. package/assets/Appearance/pureDark/themes/blue/blue_CTA_PureDarkTheme.module.css +1 -0
  26. package/assets/Appearance/pureDark/themes/green/green_CTA_PureDarkModifyCategory.module.css +15 -0
  27. package/assets/Appearance/pureDark/themes/green/green_CTA_PureDarkTheme.module.css +1 -0
  28. package/assets/Appearance/pureDark/themes/orange/orange_CTA_PureDarkModifyCategory.module.css +15 -0
  29. package/assets/Appearance/pureDark/themes/orange/orange_CTA_PureDarkTheme.module.css +1 -0
  30. package/assets/Appearance/pureDark/themes/red/red_CTA_PureDarkModifyCategory.module.css +15 -0
  31. package/assets/Appearance/pureDark/themes/red/red_CTA_PureDarkTheme.module.css +1 -0
  32. package/assets/Appearance/pureDark/themes/yellow/yellow_CTA_PureDarkModifyCategory.module.css +15 -0
  33. package/assets/Appearance/pureDark/themes/yellow/yellow_CTA_PureDarkTheme.module.css +1 -0
  34. package/es/AvatarTeam/AvatarTeam.module.css +2 -0
  35. package/es/DropBox/DropBoxElement/DropBoxElement.js +2 -1
  36. package/es/Select/Select.js +10 -2
  37. package/es/Select/Select.module.css +26 -1
  38. package/es/Tab/TabContentWrapper.js +8 -4
  39. package/es/Tab/props/defaultProps.js +2 -1
  40. package/es/Tab/props/propTypes.js +3 -1
  41. package/es/TextBox/TextBox.js +7 -1
  42. package/es/TextBox/TextBox.module.css +39 -1
  43. package/es/TextBox/props/defaultProps.js +1 -0
  44. package/es/TextBox/props/propTypes.js +1 -0
  45. package/es/TextBoxIcon/TextBoxIcon.js +2 -0
  46. package/es/TextBoxIcon/props/defaultProps.js +1 -0
  47. package/es/TextBoxIcon/props/propTypes.js +1 -0
  48. package/es/Tooltip/Tooltip.js +4 -2
  49. package/es/Tooltip/Tooltip.module.css +0 -4
  50. package/es/common/customscroll.module.css +0 -10
  51. package/es/v1/Select/Select.js +10 -2
  52. package/es/v1/Tab/Tab.js +1 -3
  53. package/es/v1/Tab/TabContent.js +1 -1
  54. package/es/v1/Tab/Tabs.js +175 -262
  55. package/es/v1/Tab/v1Tab.module.css +100 -0
  56. package/es/v1/Tab/v1TabContent.module.css +4 -0
  57. package/es/v1/Tab/v1Tabs.module.css +137 -0
  58. package/es/v1/TextBox/TextBox.js +7 -2
  59. package/es/v1/TextBox/props/defaultProps.js +1 -0
  60. package/es/v1/TextBox/props/propTypes.js +1 -0
  61. package/es/v1/TextBoxIcon/TextBoxIcon.js +3 -1
  62. package/es/v1/TextBoxIcon/props/defaultProps.js +1 -0
  63. package/es/v1/TextBoxIcon/props/propTypes.js +1 -0
  64. package/es/v1/Tooltip/Tooltip.js +4 -2
  65. package/lib/AvatarTeam/AvatarTeam.module.css +2 -0
  66. package/lib/DropBox/DropBoxElement/DropBoxElement.js +2 -1
  67. package/lib/Select/Select.js +11 -2
  68. package/lib/Select/Select.module.css +26 -1
  69. package/lib/Tab/TabContentWrapper.js +8 -4
  70. package/lib/Tab/props/defaultProps.js +2 -1
  71. package/lib/Tab/props/propTypes.js +3 -1
  72. package/lib/TextBox/TextBox.js +9 -1
  73. package/lib/TextBox/TextBox.module.css +39 -1
  74. package/lib/TextBox/props/defaultProps.js +1 -0
  75. package/lib/TextBox/props/propTypes.js +1 -1
  76. package/lib/TextBoxIcon/TextBoxIcon.js +2 -0
  77. package/lib/TextBoxIcon/props/defaultProps.js +1 -0
  78. package/lib/TextBoxIcon/props/propTypes.js +1 -0
  79. package/lib/Tooltip/Tooltip.js +4 -2
  80. package/lib/Tooltip/Tooltip.module.css +0 -4
  81. package/lib/common/customscroll.module.css +0 -10
  82. package/lib/v1/Select/Select.js +11 -2
  83. package/lib/v1/Tab/Tab.js +6 -6
  84. package/lib/v1/Tab/TabContent.js +2 -2
  85. package/lib/v1/Tab/Tabs.js +434 -530
  86. package/lib/v1/Tab/v1Tab.module.css +100 -0
  87. package/lib/v1/Tab/v1TabContent.module.css +4 -0
  88. package/lib/v1/Tab/v1Tabs.module.css +137 -0
  89. package/lib/v1/TextBox/TextBox.js +8 -2
  90. package/lib/v1/TextBox/props/defaultProps.js +1 -0
  91. package/lib/v1/TextBox/props/propTypes.js +1 -1
  92. package/lib/v1/TextBoxIcon/TextBoxIcon.js +3 -1
  93. package/lib/v1/TextBoxIcon/props/defaultProps.js +1 -0
  94. package/lib/v1/TextBoxIcon/props/propTypes.js +1 -0
  95. package/lib/v1/Tooltip/Tooltip.js +4 -2
  96. package/package.json +8 -7
  97. package/result.json +1 -1
  98. /package/.cli/{AppearanceThemeValidationExcludeFiles.js → ThemeValidationExcludeFiles.js} +0 -0
@@ -1,29 +1,37 @@
1
1
  .input {
2
2
  cursor: pointer;
3
3
  }
4
+
4
5
  .small {
5
6
  max-height: 200px;
6
7
  }
8
+
7
9
  .medium {
8
10
  max-height: 350px;
9
11
  }
12
+
10
13
  .large {
11
14
  max-height: 400px;
12
15
  }
16
+
13
17
  .emptyState {
14
18
  font-size: 14px;
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: 12px 6px;
20
25
  }
26
+
21
27
  .box_medium .emptyState {
22
28
  padding: 12px 15px;
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
  }
@@ -32,35 +40,45 @@
32
40
  height: 8px;
33
41
  line-height: var(--zd_size8);
34
42
  }
43
+
35
44
  .small.search {
36
45
  padding: 0 5px;
37
46
  }
47
+
38
48
  .medium.search {
39
49
  padding: 3px 20px 0;
40
50
  }
51
+
41
52
  .title {
42
53
  margin-bottom: 6px;
43
54
  }
55
+
44
56
  .groupTitle {
45
57
  margin: 6px 0;
46
58
  }
59
+
47
60
  .listItemContainer {
48
61
  padding: 10px 0;
49
62
  }
63
+
50
64
  .responsivelistItemContainer {
51
65
  padding: 10px 0 0;
52
66
  }
67
+
53
68
  .readonly {
54
69
  --textboxicon_icon_cursor: not-allowed;
55
70
  }
71
+
56
72
  .transparentContainer .arrowIcon {
57
73
  opacity: 0;
58
74
  visibility: hidden;
59
75
  }
76
+
60
77
  .transparentContainer:hover .arrowIcon {
61
78
  opacity: 1;
62
79
  visibility: visible;
63
80
  }
81
+
64
82
  .disable {
65
83
  color: var(--zdt_select_disable_text);
66
84
  }
@@ -79,9 +97,11 @@
79
97
  [dir=rtl] .leftIcon {
80
98
  right: 0;
81
99
  }
100
+
82
101
  [dir=ltr] .iconSelect {
83
102
  padding-left: 30px;
84
103
  }
104
+
85
105
  [dir=rtl] .iconSelect {
86
106
  padding-right: 30px;
87
107
  }
@@ -89,22 +109,27 @@
89
109
  .dropBoxList {
90
110
  padding: 10px 0;
91
111
  }
92
- .responsivedropBoxList{
112
+
113
+ .responsivedropBoxList {
93
114
  padding: 10px 0 0 0;
94
115
  }
116
+
95
117
  .rotate {
96
118
  transform: rotateX(180deg);
97
119
  }
120
+
98
121
  .iconOnHoverStyle .arrowIcon,
99
122
  .iconOnHoverReadonly .arrowIcon,
100
123
  .iconOnHoverReadonly:hover .arrowIcon {
101
124
  opacity: 0;
102
125
  visibility: hidden;
103
126
  }
127
+
104
128
  .iconOnHoverStyle:hover .arrowIcon {
105
129
  opacity: 1;
106
130
  visibility: visible;
107
131
  }
132
+
108
133
  .loader {
109
134
  padding: 10px;
110
135
  }
@@ -1,3 +1,4 @@
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); }
1
2
  import React from 'react';
2
3
  import { TabContentWrapper_defaultProps } from './props/defaultProps';
3
4
  import { TabContentWrapper_propTypes } from './props/propTypes';
@@ -11,16 +12,19 @@ const TabContentWrapper = _ref => {
11
12
  dataId,
12
13
  selectedTab,
13
14
  onScroll,
14
- dataSelectorId
15
+ dataSelectorId,
16
+ tagName,
17
+ a11y
15
18
  } = _ref;
16
- return /*#__PURE__*/React.createElement(Box, {
19
+ return /*#__PURE__*/React.createElement(Box, _extends({
17
20
  flexible: true,
18
21
  style: style,
19
22
  dataId: dataId,
20
23
  className: className,
21
24
  onScroll: onScroll,
22
- dataSelectorId: dataSelectorId
23
- }, React.Children.map(children, child => /*#__PURE__*/React.isValidElement(child) && child.props.id === selectedTab ? child : null));
25
+ dataSelectorId: dataSelectorId,
26
+ tagName: tagName
27
+ }, a11y), React.Children.map(children, child => /*#__PURE__*/React.isValidElement(child) && child.props.id === selectedTab ? child : null));
24
28
  };
25
29
  TabContentWrapper.defaultProps = TabContentWrapper_defaultProps;
26
30
  TabContentWrapper.propTypes = TabContentWrapper_propTypes;
@@ -9,7 +9,8 @@ export const TabContent_defaultProps = {
9
9
  };
10
10
  export const TabContentWrapper_defaultProps = {
11
11
  children: [],
12
- dataSelectorId: 'tabContentWrapper'
12
+ dataSelectorId: 'tabContentWrapper',
13
+ a11y: {}
13
14
  };
14
15
  export const Tabs_defaultProps = {
15
16
  isAnimate: false,
@@ -40,7 +40,9 @@ export const TabContentWrapper_propTypes = {
40
40
  onScroll: PropTypes.func,
41
41
  selectedTab: PropTypes.string,
42
42
  style: PropTypes.object,
43
- dataSelectorId: PropTypes.string
43
+ dataSelectorId: PropTypes.string,
44
+ a11y: PropTypes.object,
45
+ tagName: PropTypes.string
44
46
  };
45
47
  export const Tabs_propTypes = {
46
48
  align: PropTypes.oneOf(['vertical', 'horizontal']),
@@ -12,6 +12,7 @@ export default class TextBox extends React.PureComponent {
12
12
  this.setFocus = this.setFocus.bind(this);
13
13
  this.handleFocus = this.handleFocus.bind(this);
14
14
  this.handleBlur = this.handleBlur.bind(this);
15
+ this.handlePreventTextBoxScroll = this.handlePreventTextBoxScroll.bind(this);
15
16
  }
16
17
  handleFocus() {
17
18
  let {
@@ -56,6 +57,9 @@ export default class TextBox extends React.PureComponent {
56
57
  } = this.props;
57
58
  onChange && !isReadOnly && onChange(value, e);
58
59
  }
60
+ handlePreventTextBoxScroll() {
61
+ this.inputEle.scrollLeft = 0;
62
+ }
59
63
  render() {
60
64
  let {
61
65
  type,
@@ -86,6 +90,7 @@ export default class TextBox extends React.PureComponent {
86
90
  a11y,
87
91
  customClass,
88
92
  isFocus,
93
+ isScrollPrevent,
89
94
  customProps,
90
95
  dataSelectorId
91
96
  } = this.props;
@@ -135,7 +140,7 @@ export default class TextBox extends React.PureComponent {
135
140
  "aria-activedescendant": ariaActivedescendant,
136
141
  "aria-readonly": ariaReadonly,
137
142
  "aria-multiselectable": ariaMultiselectable,
138
- className: `${isReadOnly && needReadOnlyStyle ? style.readonly : ''} ${isClickable ? style.pointer : ''} ${classList} ${style[`borderColor_${borderColor}`]} ${customClass ? customClass : ''}`,
143
+ className: `${isReadOnly && needReadOnlyStyle ? style.readonly : ''} ${isClickable ? style.pointer : ''} ${classList} ${style[`borderColor_${borderColor}`]} ${isScrollPrevent ? style.inputDotted : ''} ${customClass ? customClass : ''}`,
139
144
  "data-id": `${dataId}`,
140
145
  "data-test-id": `${dataId}`,
141
146
  "data-selector-id": dataSelectorId,
@@ -152,6 +157,7 @@ export default class TextBox extends React.PureComponent {
152
157
  ref: this.inputRef,
153
158
  type: type,
154
159
  value: value,
160
+ onScroll: isScrollPrevent ? this.handlePreventTextBoxScroll : '',
155
161
  onKeyPress: onKeyPress,
156
162
  onMouseDown: onMouseDown
157
163
  }, options, customProps));
@@ -19,6 +19,7 @@
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,18 +30,22 @@
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);
@@ -66,110 +71,139 @@
66
71
  border-style: var(--textbox_border_style);
67
72
  border-color: var(--textbox_border_color);
68
73
  }
74
+
69
75
  .basic:disabled,
70
76
  .container:disabled,
71
77
  .container:disabled:hover {
72
78
  --textbox_cursor: not-allowed;
73
79
  --textbox_text_color: var(--zdt_textbox_disabled_text);
74
80
  }
81
+
75
82
  .container:disabled,
76
83
  .container:disabled:hover {
77
84
  --textbox_bg_color: none;
78
85
  }
86
+
79
87
  .container::placeholder {
80
88
  /* css:theme-validation:ignore */
81
89
  color: var(--textbox_placeholder_text_color);
82
90
  }
91
+
83
92
  .container::-webkit-placeholder {
84
93
  /* css:theme-validation:ignore */
85
94
  color: var(--textbox_placeholder_text_color);
86
95
  }
96
+
87
97
  .container::-moz-placeholder {
88
98
  /* css:theme-validation:ignore */
89
99
  color: var(--textbox_placeholder_text_color);
90
100
  }
101
+
91
102
  .container::-ms-placeholder {
92
103
  /* css:theme-validation:ignore */
93
104
  color: var(--textbox_placeholder_text_color);
94
105
  }
106
+
95
107
  .pointer {
96
108
  --textbox_cursor: pointer;
97
109
  }
110
+
98
111
  /* Need Border */
99
112
  .border, .effect:hover, .effect:focus {
100
113
  border-width: var(--textbox_border_width);
101
114
  border-style: var(--textbox_border_style);
102
115
  }
116
+
103
117
  .effect:hover,
104
118
  .effect:focus {
105
119
  /* css:theme-validation:ignore */
106
120
  }
121
+
107
122
  .effect:hover, .effect:focus {
108
123
  border-color: var(--textbox_border_color);
109
124
  }
125
+
110
126
  .border {
111
127
  --textbox_border_width: 0 0 1px 0;
112
128
  }
129
+
113
130
  .borderColor_transparent,
114
131
  .borderColor_default {
115
132
  /* css:theme-validation:ignore */
116
133
  }
134
+
117
135
  .borderColor_transparent, .borderColor_default {
118
136
  border-color: var(--textbox_border_color);
119
137
  }
138
+
120
139
  .borderColor_transparent {
121
140
  --textbox_border_color: var(--zdt_textbox_transparent_border);
122
141
  }
142
+
123
143
  .borderColor_default {
124
144
  --textbox_border_color: var(--zdt_textbox_default_border);
125
145
  }
146
+
126
147
  .effect:hover {
127
148
  --textbox_border_color: var(--zdt_textbox_effect_hover_border);
128
149
  }
129
- .effect:focus,.focus,.focus:hover {
150
+
151
+ .effect:focus,
152
+ .focus,
153
+ .focus:hover {
130
154
  --textbox_border_color: var(--zdt_textbox_effect_focus_border);
131
155
  }
156
+
132
157
  /* Size */
133
158
  .xmedium,
134
159
  .medium {
135
160
  --textbox_font_size: 14px;
136
161
  }
162
+
137
163
  .xmedium {
138
164
  --textbox_height: 28px;
139
165
  --textbox_line_height: 2;
140
166
  }
167
+
141
168
  .medium {
142
169
  --textbox_height: 35px;
143
170
  --textbox_line_height: 2.5;
144
171
  }
172
+
145
173
  .small {
146
174
  --textbox_font_size: 12px;
147
175
  --textbox_height: 28px;
148
176
  --textbox_line_height: 2.3334;
149
177
  }
178
+
150
179
  .xsmall {
151
180
  --textbox_font_size: 13px;
152
181
  --textbox_height: 25px;
153
182
  --textbox_line_height: 1.9231;
154
183
  }
184
+
155
185
  .default,
156
186
  .primary,
157
187
  .secondary,
158
188
  .light {
159
189
  font-family: var(--textbox_font_family);
160
190
  }
191
+
161
192
  .primary {
162
193
  --textbox_text_color: var(--zdt_textbox_default_text);
163
194
  --textbox_font_family: var(--zd_semibold);
164
195
  composes: ftsmooth from '../common/common.module.css';
165
196
  }
197
+
166
198
  .secondary {
167
199
  --textbox_text_color: var(--zdt_textbox_secondary_text);
168
200
  --textbox_font_family: var(--zd_light);
169
201
  }
202
+
170
203
  .light {
171
204
  --textbox_text_color: var(--zdt_textbox_light_text);
172
205
  }
206
+
173
207
  .readonly,
174
208
  .readonly:hover,
175
209
  .readonly:focus {
@@ -177,3 +211,7 @@
177
211
  --textbox_text_color: var(--zdt_textbox_default_text);
178
212
  --textbox_bg_color: none;
179
213
  }
214
+
215
+ .inputDotted {
216
+ composes: dotted from '../common/common.module.css'
217
+ }
@@ -14,6 +14,7 @@ export const defaultProps = {
14
14
  borderColor: 'default',
15
15
  a11y: {},
16
16
  isFocus: false,
17
+ isScrollPrevent: false,
17
18
  customProps: {},
18
19
  dataSelectorId: 'textBox'
19
20
  };
@@ -49,6 +49,7 @@ export const propTypes = {
49
49
  ariaMultiselectable: PropTypes.bool
50
50
  }),
51
51
  isFocus: PropTypes.bool,
52
+ isScrollPrevent: PropTypes.bool,
52
53
  customProps: PropTypes.object,
53
54
  dataSelectorId: PropTypes.string,
54
55
  autoComplete: PropTypes.bool
@@ -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, {
@@ -17,6 +17,7 @@ export const defaultProps = {
17
17
  customClass: {},
18
18
  iconOnHover: false,
19
19
  isFocus: false,
20
+ isScrollPrevent: false,
20
21
  customProps: {},
21
22
  dataSelectorId: 'textBoxIcon'
22
23
  };
@@ -46,6 +46,7 @@ export const propTypes = {
46
46
  iconOnHover: PropTypes.bool,
47
47
  isFocus: PropTypes.bool,
48
48
  onClearMouseDown: PropTypes.func,
49
+ isScrollPrevent: PropTypes.bool,
49
50
  customProps: PropTypes.shape({
50
51
  TextBoxProps: PropTypes.object
51
52
  })
@@ -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
- if (element.nodeName !== 'I' && element.innerText && element.innerText.trim() !== '') {
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 = element.innerText.replace(/\s/g, '').toLowerCase();
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;
@@ -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: 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
- customProps: TextBoxProps
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 '../../Tab/Tab.module.css';
7
+ import styles from './v1Tab.module.css';
10
8
  const tabTypes = {
11
9
  alpha: {
12
10
  active: 'alphaActive',
@@ -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 '../../Tab/TabContent.module.css';
5
+ import style from './v1TabContent.module.css';
6
6
  /* eslint-disable react/forbid-component-props */
7
7
 
8
8
  const TabContent = _ref => {