@zohodesk/components 1.0.0-temp-242 → 1.0.0-temp-244

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 (44) hide show
  1. package/README.md +0 -4
  2. package/es/AvatarTeam/AvatarTeam.module.css +189 -189
  3. package/es/Buttongroup/Buttongroup.module.css +104 -104
  4. package/es/DropBox/css/DropBox.module.css +58 -58
  5. package/es/DropDown/DropDownHeading.module.css +53 -53
  6. package/es/DropDown/DropDownItem.module.css +94 -94
  7. package/es/Label/Label.module.css +57 -57
  8. package/es/PopOver/PopOver.module.css +8 -8
  9. package/es/Popup/Popup.js +1045 -21
  10. package/es/Popup/PositionMapping.js +72 -0
  11. package/es/Popup/Registry.js +36 -0
  12. package/es/Popup/intersectionObserver.js +49 -0
  13. package/es/Popup/viewPort.js +373 -0
  14. package/es/Ribbon/Ribbon.module.css +499 -499
  15. package/es/Switch/Switch.module.css +127 -127
  16. package/es/Tag/Tag.module.css +253 -253
  17. package/es/TextBox/TextBox.module.css +196 -196
  18. package/es/TextBoxIcon/TextBoxIcon.module.css +79 -79
  19. package/es/Tooltip/Tooltip.js +2 -2
  20. package/es/common/customscroll.module.css +141 -141
  21. package/es/utils/Common.js +1 -1
  22. package/es/v1/Popup/Popup.js +1 -1
  23. package/lib/AvatarTeam/AvatarTeam.module.css +189 -189
  24. package/lib/Buttongroup/Buttongroup.module.css +104 -104
  25. package/lib/DropBox/css/DropBox.module.css +58 -58
  26. package/lib/DropDown/DropDownHeading.module.css +53 -53
  27. package/lib/DropDown/DropDownItem.module.css +94 -94
  28. package/lib/Label/Label.module.css +57 -57
  29. package/lib/PopOver/PopOver.module.css +8 -8
  30. package/lib/Popup/Popup.js +1152 -25
  31. package/lib/Popup/PositionMapping.js +81 -0
  32. package/lib/Popup/Registry.js +46 -0
  33. package/lib/Popup/intersectionObserver.js +72 -0
  34. package/lib/Popup/viewPort.js +367 -0
  35. package/lib/Ribbon/Ribbon.module.css +499 -499
  36. package/lib/Switch/Switch.module.css +127 -127
  37. package/lib/Tag/Tag.module.css +253 -253
  38. package/lib/TextBox/TextBox.module.css +196 -196
  39. package/lib/TextBoxIcon/TextBoxIcon.module.css +79 -79
  40. package/lib/Tooltip/Tooltip.js +2 -2
  41. package/lib/common/customscroll.module.css +141 -141
  42. package/lib/utils/Common.js +1 -1
  43. package/lib/v1/Popup/Popup.js +1 -1
  44. package/package.json +4 -4
@@ -1,197 +1,197 @@
1
- .varClass {
2
- /* textbox default variables */
3
- --textbox_text_color: var(--zdt_textbox_default_text);
4
- --textbox_bg_color: var(--zdt_textbox_default_bg);
5
- --textbox_border_width: 0;
6
- --textbox_border_style: solid;
7
- --textbox_border_color: var(--zdt_textbox_default_border);
8
- --textbox_font_size: var(--zd_font_size14);
9
- --textbox_width: 100%;
10
- --textbox_height: var(--zd_size35);
11
- --textbox_border_radius: none;
12
- --textbox_font_family: var(--zd_regular);
13
- /* Variable:Ignore */
14
- --textbox_letter_spacing: 0.1px;
15
- --textbox_padding: 0;
16
- --textbox_cursor: text;
17
- --textbox_line_height: 2.5;
18
-
19
- /* textbox placeholder default variable */
20
- --textbox_placeholder_text_color: var(--zdt_textbox_placeholder_text);
21
- }
22
-
23
- .basic {
24
- composes: varClass;
25
- -webkit-appearance: none;
26
- -moz-appearance: none;
27
- appearance: none;
28
- letter-spacing: var(--textbox_letter_spacing);
29
- /* css:theme-validation:ignore */
30
- border: var(--textbox_border_width);
31
- cursor: var(--textbox_cursor);
32
- }
33
-
34
- .basic::placeholder {
35
- color: var(--textbox_placeholder_text_color);
36
- }
37
-
38
- .basic::-webkit-placeholder {
39
- color: var(--textbox_placeholder_text_color);
40
- }
41
-
42
- .basic::-moz-placeholder {
43
- color: var(--textbox_placeholder_text_color);
44
- }
45
-
46
- .basic::-ms-placeholder {
47
- color: var(--textbox_placeholder_text_color);
48
- }
49
-
50
- /* css:lineheight-validation:ignore */
51
- .container {
52
- composes: basic;
53
- transition: border var(--zd_transition2) linear 0s;
54
- -moz-transition: border var(--zd_transition2) linear 0s;
55
- width: var(--textbox_width);
56
- color: var(--textbox_text_color);
57
- font-size: var(--textbox_font_size);
58
- height: var(--textbox_height);
59
- line-height: var(--textbox_line_height);
60
- background-color: var(--textbox_bg_color);
61
- -webkit-transition: border var(--zd_transition2) linear 0s;
62
- padding: var(--textbox_padding);
63
- border-radius: var(--textbox_border_radius);
64
- border-width: var(--textbox_border_width);
65
- border-style: var(--textbox_border_style);
66
- border-color: var(--textbox_border_color);
67
- }
68
-
69
- .basic:disabled,
70
- .container:disabled,
71
- .container:disabled:hover {
72
- --textbox_cursor: not-allowed;
73
- --textbox_text_color: var(--zdt_textbox_disabled_text);
74
- }
75
-
76
- .container:disabled,
77
- .container:disabled:hover {
78
- --textbox_bg_color: none;
79
- }
80
-
81
- .container::placeholder {
82
- color: var(--textbox_placeholder_text_color);
83
- }
84
-
85
- .container::-webkit-placeholder {
86
- color: var(--textbox_placeholder_text_color);
87
- }
88
-
89
- .container::-moz-placeholder {
90
- color: var(--textbox_placeholder_text_color);
91
- }
92
-
93
- .container::-ms-placeholder {
94
- color: var(--textbox_placeholder_text_color);
95
- }
96
-
97
- .pointer {
98
- --textbox_cursor: pointer;
99
- }
100
-
101
- /* Need Border */
102
- .border, .effect:hover, .effect:focus {
103
- border-width: var(--textbox_border_width);
104
- border-style: var(--textbox_border_style);
105
- }
106
-
107
- .effect:hover, .effect:focus {
108
- border-color: var(--textbox_border_color);
109
- }
110
-
111
- .border {
112
- --textbox_border_width: 0 0 1px 0;
113
- }
114
-
115
- .borderColor_transparent, .borderColor_default {
116
- border-color: var(--textbox_border_color);
117
- }
118
-
119
- .borderColor_transparent {
120
- --textbox_border_color: var(--zdt_textbox_transparent_border);
121
- }
122
-
123
- .borderColor_default {
124
- --textbox_border_color: var(--zdt_textbox_default_border);
125
- }
126
-
127
- .effect:hover {
128
- --textbox_border_color: var(--zdt_textbox_effect_hover_border);
129
- }
130
-
131
- .effect:focus,
132
- .focus,
133
- .focus:hover {
134
- --textbox_border_color: var(--zdt_textbox_effect_focus_border);
135
- }
136
-
137
- /* Size */
138
- .xmedium,
139
- .medium {
140
- --textbox_font_size: var(--zd_font_size14);
141
- }
142
-
143
- .xmedium {
144
- --textbox_height: var(--zd_size28);
145
- --textbox_line_height: 2;
146
- }
147
-
148
- .medium {
149
- --textbox_height: var(--zd_size35);
150
- --textbox_line_height: 2.5;
151
- }
152
-
153
- .small {
154
- --textbox_font_size: var(--zd_font_size12);
155
- --textbox_height: var(--zd_size28);
156
- --textbox_line_height: 2.3334;
157
- }
158
-
159
- .xsmall {
160
- --textbox_font_size: var(--zd_font_size13);
161
- --textbox_height: var(--zd_size25);
162
- --textbox_line_height: 1.9231;
163
- }
164
-
165
- .default,
166
- .primary,
167
- .secondary,
168
- .light {
169
- font-family: var(--textbox_font_family);
170
- }
171
-
172
- .primary {
173
- --textbox_text_color: var(--zdt_textbox_default_text);
174
- --textbox_font_family: var(--zd_semibold);
175
- composes: ftsmooth from '../common/common.module.css';
176
- }
177
-
178
- .secondary {
179
- --textbox_text_color: var(--zdt_textbox_secondary_text);
180
- --textbox_font_family: var(--zd_light);
181
- }
182
-
183
- .light {
184
- --textbox_text_color: var(--zdt_textbox_light_text);
185
- }
186
-
187
- .readonly,
188
- .readonly:hover,
189
- .readonly:focus {
190
- --textbox_cursor: not-allowed;
191
- --textbox_text_color: var(--zdt_textbox_default_text);
192
- --textbox_bg_color: none;
193
- }
194
-
195
- .inputDotted {
196
- composes: dotted from '../common/common.module.css'
1
+ .varClass {
2
+ /* textbox default variables */
3
+ --textbox_text_color: var(--zdt_textbox_default_text);
4
+ --textbox_bg_color: var(--zdt_textbox_default_bg);
5
+ --textbox_border_width: 0;
6
+ --textbox_border_style: solid;
7
+ --textbox_border_color: var(--zdt_textbox_default_border);
8
+ --textbox_font_size: var(--zd_font_size14);
9
+ --textbox_width: 100%;
10
+ --textbox_height: var(--zd_size35);
11
+ --textbox_border_radius: none;
12
+ --textbox_font_family: var(--zd_regular);
13
+ /* Variable:Ignore */
14
+ --textbox_letter_spacing: 0.1px;
15
+ --textbox_padding: 0;
16
+ --textbox_cursor: text;
17
+ --textbox_line_height: 2.5;
18
+
19
+ /* textbox placeholder default variable */
20
+ --textbox_placeholder_text_color: var(--zdt_textbox_placeholder_text);
21
+ }
22
+
23
+ .basic {
24
+ composes: varClass;
25
+ -webkit-appearance: none;
26
+ -moz-appearance: none;
27
+ appearance: none;
28
+ letter-spacing: var(--textbox_letter_spacing);
29
+ /* css:theme-validation:ignore */
30
+ border: var(--textbox_border_width);
31
+ cursor: var(--textbox_cursor);
32
+ }
33
+
34
+ .basic::placeholder {
35
+ color: var(--textbox_placeholder_text_color);
36
+ }
37
+
38
+ .basic::-webkit-placeholder {
39
+ color: var(--textbox_placeholder_text_color);
40
+ }
41
+
42
+ .basic::-moz-placeholder {
43
+ color: var(--textbox_placeholder_text_color);
44
+ }
45
+
46
+ .basic::-ms-placeholder {
47
+ color: var(--textbox_placeholder_text_color);
48
+ }
49
+
50
+ /* css:lineheight-validation:ignore */
51
+ .container {
52
+ composes: basic;
53
+ transition: border var(--zd_transition2) linear 0s;
54
+ -moz-transition: border var(--zd_transition2) linear 0s;
55
+ width: var(--textbox_width);
56
+ color: var(--textbox_text_color);
57
+ font-size: var(--textbox_font_size);
58
+ height: var(--textbox_height);
59
+ line-height: var(--textbox_line_height);
60
+ background-color: var(--textbox_bg_color);
61
+ -webkit-transition: border var(--zd_transition2) linear 0s;
62
+ padding: var(--textbox_padding);
63
+ border-radius: var(--textbox_border_radius);
64
+ border-width: var(--textbox_border_width);
65
+ border-style: var(--textbox_border_style);
66
+ border-color: var(--textbox_border_color);
67
+ }
68
+
69
+ .basic:disabled,
70
+ .container:disabled,
71
+ .container:disabled:hover {
72
+ --textbox_cursor: not-allowed;
73
+ --textbox_text_color: var(--zdt_textbox_disabled_text);
74
+ }
75
+
76
+ .container:disabled,
77
+ .container:disabled:hover {
78
+ --textbox_bg_color: none;
79
+ }
80
+
81
+ .container::placeholder {
82
+ color: var(--textbox_placeholder_text_color);
83
+ }
84
+
85
+ .container::-webkit-placeholder {
86
+ color: var(--textbox_placeholder_text_color);
87
+ }
88
+
89
+ .container::-moz-placeholder {
90
+ color: var(--textbox_placeholder_text_color);
91
+ }
92
+
93
+ .container::-ms-placeholder {
94
+ color: var(--textbox_placeholder_text_color);
95
+ }
96
+
97
+ .pointer {
98
+ --textbox_cursor: pointer;
99
+ }
100
+
101
+ /* Need Border */
102
+ .border, .effect:hover, .effect:focus {
103
+ border-width: var(--textbox_border_width);
104
+ border-style: var(--textbox_border_style);
105
+ }
106
+
107
+ .effect:hover, .effect:focus {
108
+ border-color: var(--textbox_border_color);
109
+ }
110
+
111
+ .border {
112
+ --textbox_border_width: 0 0 1px 0;
113
+ }
114
+
115
+ .borderColor_transparent, .borderColor_default {
116
+ border-color: var(--textbox_border_color);
117
+ }
118
+
119
+ .borderColor_transparent {
120
+ --textbox_border_color: var(--zdt_textbox_transparent_border);
121
+ }
122
+
123
+ .borderColor_default {
124
+ --textbox_border_color: var(--zdt_textbox_default_border);
125
+ }
126
+
127
+ .effect:hover {
128
+ --textbox_border_color: var(--zdt_textbox_effect_hover_border);
129
+ }
130
+
131
+ .effect:focus,
132
+ .focus,
133
+ .focus:hover {
134
+ --textbox_border_color: var(--zdt_textbox_effect_focus_border);
135
+ }
136
+
137
+ /* Size */
138
+ .xmedium,
139
+ .medium {
140
+ --textbox_font_size: var(--zd_font_size14);
141
+ }
142
+
143
+ .xmedium {
144
+ --textbox_height: var(--zd_size28);
145
+ --textbox_line_height: 2;
146
+ }
147
+
148
+ .medium {
149
+ --textbox_height: var(--zd_size35);
150
+ --textbox_line_height: 2.5;
151
+ }
152
+
153
+ .small {
154
+ --textbox_font_size: var(--zd_font_size12);
155
+ --textbox_height: var(--zd_size28);
156
+ --textbox_line_height: 2.3334;
157
+ }
158
+
159
+ .xsmall {
160
+ --textbox_font_size: var(--zd_font_size13);
161
+ --textbox_height: var(--zd_size25);
162
+ --textbox_line_height: 1.9231;
163
+ }
164
+
165
+ .default,
166
+ .primary,
167
+ .secondary,
168
+ .light {
169
+ font-family: var(--textbox_font_family);
170
+ }
171
+
172
+ .primary {
173
+ --textbox_text_color: var(--zdt_textbox_default_text);
174
+ --textbox_font_family: var(--zd_semibold);
175
+ composes: ftsmooth from '../common/common.module.css';
176
+ }
177
+
178
+ .secondary {
179
+ --textbox_text_color: var(--zdt_textbox_secondary_text);
180
+ --textbox_font_family: var(--zd_light);
181
+ }
182
+
183
+ .light {
184
+ --textbox_text_color: var(--zdt_textbox_light_text);
185
+ }
186
+
187
+ .readonly,
188
+ .readonly:hover,
189
+ .readonly:focus {
190
+ --textbox_cursor: not-allowed;
191
+ --textbox_text_color: var(--zdt_textbox_default_text);
192
+ --textbox_bg_color: none;
193
+ }
194
+
195
+ .inputDotted {
196
+ composes: dotted from '../common/common.module.css'
197
197
  }
@@ -1,79 +1,79 @@
1
- .varClass {
2
- /* textboxicon default variables */
3
- --textboxicon_line_height: var(--zd_size1);
4
- --textboxicon_line_color: var(--zdt_textboxicon_default_line_bg);
5
-
6
- /* textboxicon icon default variables */
7
- --textboxicon_icon_margin: 0 var(--zd_size5);
8
- --textboxicon_icon_cursor: pointer;
9
- --textboxicon_icon_color: var(--zdt_textboxicon_default_icon);
10
- }
11
- .container {
12
- composes: varClass;
13
- position: relative;
14
- }
15
- .disabled,.readonly {
16
- --textboxicon_icon_cursor: not-allowed;
17
- }
18
- .disabled, .readonly {
19
- cursor: not-allowed;
20
- }
21
- .icon {
22
- composes: offSelection from '../common/common.module.css';
23
- margin: var(--textboxicon_icon_margin);
24
- cursor: var(--textboxicon_icon_cursor);
25
- }
26
- .iconContainer {
27
- color: var(--textboxicon_icon_color);
28
- }
29
- .effect:hover .iconContainer,
30
- .effect:focus-within .iconContainer {
31
- --textboxicon_icon_color: var(--zdt_textboxicon_hover_icon);
32
- }
33
- .rotated {
34
- transform: rotateX(180deg);
35
- }
36
- .line {
37
- position: absolute;
38
- bottom: 0 ;
39
- /* Variable:Ignore */
40
- min-height: 1px;
41
- transition: var(--zd_transition2);
42
- height: var(--textboxicon_line_height);
43
- transform: perspective(1px);
44
- }
45
- [dir=ltr] .line {
46
- left: 0 ;
47
- right: 0 ;
48
- }
49
- [dir=rtl] .line {
50
- right: 0 ;
51
- left: 0 ;
52
- }
53
- .line, .borderColor_default {
54
- background-color: var(--textboxicon_line_color);
55
- }
56
- .borderColor_transparent {
57
- --textboxicon_line_color: var(--zdt_textboxicon_transparent_line_bg);
58
- }
59
- .effect:hover .line {
60
- --textboxicon_line_color: var(--zdt_textboxicon_hover_line_bg);
61
- }
62
- .effectFocused .line,
63
- .effectFocused:hover .line {
64
- --textboxicon_line_color: var(--zdt_textboxicon_focus_line_bg);
65
- }
66
- .borderColor_error,
67
- .effect:hover .borderColor_error {
68
- --textboxicon_line_color: var(--zdt_textboxicon_error_line_bg);
69
- }
70
- .iconOnHoverStyle .icon,
71
- .iconOnHoverReadonly .icon,
72
- .iconOnHoverReadonly:hover .icon {
73
- opacity: 0;
74
- visibility: hidden;
75
- }
76
- .iconOnHoverStyle:hover .icon {
77
- opacity: 1;
78
- visibility: visible;
79
- }
1
+ .varClass {
2
+ /* textboxicon default variables */
3
+ --textboxicon_line_height: var(--zd_size1);
4
+ --textboxicon_line_color: var(--zdt_textboxicon_default_line_bg);
5
+
6
+ /* textboxicon icon default variables */
7
+ --textboxicon_icon_margin: 0 var(--zd_size5);
8
+ --textboxicon_icon_cursor: pointer;
9
+ --textboxicon_icon_color: var(--zdt_textboxicon_default_icon);
10
+ }
11
+ .container {
12
+ composes: varClass;
13
+ position: relative;
14
+ }
15
+ .disabled,.readonly {
16
+ --textboxicon_icon_cursor: not-allowed;
17
+ }
18
+ .disabled, .readonly {
19
+ cursor: not-allowed;
20
+ }
21
+ .icon {
22
+ composes: offSelection from '../common/common.module.css';
23
+ margin: var(--textboxicon_icon_margin);
24
+ cursor: var(--textboxicon_icon_cursor);
25
+ }
26
+ .iconContainer {
27
+ color: var(--textboxicon_icon_color);
28
+ }
29
+ .effect:hover .iconContainer,
30
+ .effect:focus-within .iconContainer {
31
+ --textboxicon_icon_color: var(--zdt_textboxicon_hover_icon);
32
+ }
33
+ .rotated {
34
+ transform: rotateX(180deg);
35
+ }
36
+ .line {
37
+ position: absolute;
38
+ bottom: 0 ;
39
+ /* Variable:Ignore */
40
+ min-height: 1px;
41
+ transition: var(--zd_transition2);
42
+ height: var(--textboxicon_line_height);
43
+ transform: perspective(1px);
44
+ }
45
+ [dir=ltr] .line {
46
+ left: 0 ;
47
+ right: 0 ;
48
+ }
49
+ [dir=rtl] .line {
50
+ right: 0 ;
51
+ left: 0 ;
52
+ }
53
+ .line, .borderColor_default {
54
+ background-color: var(--textboxicon_line_color);
55
+ }
56
+ .borderColor_transparent {
57
+ --textboxicon_line_color: var(--zdt_textboxicon_transparent_line_bg);
58
+ }
59
+ .effect:hover .line {
60
+ --textboxicon_line_color: var(--zdt_textboxicon_hover_line_bg);
61
+ }
62
+ .effectFocused .line,
63
+ .effectFocused:hover .line {
64
+ --textboxicon_line_color: var(--zdt_textboxicon_focus_line_bg);
65
+ }
66
+ .borderColor_error,
67
+ .effect:hover .borderColor_error {
68
+ --textboxicon_line_color: var(--zdt_textboxicon_error_line_bg);
69
+ }
70
+ .iconOnHoverStyle .icon,
71
+ .iconOnHoverReadonly .icon,
72
+ .iconOnHoverReadonly:hover .icon {
73
+ opacity: 0;
74
+ visibility: hidden;
75
+ }
76
+ .iconOnHoverStyle:hover .icon {
77
+ opacity: 1;
78
+ visibility: visible;
79
+ }
@@ -195,10 +195,10 @@ var Tooltip = /*#__PURE__*/function (_React$Component) {
195
195
 
196
196
  var containerElement = this.tooltipContainerEl;
197
197
  var element = e.target;
198
- var titleDiv = element.hasAttribute('data-title') || element.hasAttribute('title') ? element : element.closest('[data-title]') || element.closest('[title]');
198
+ var titleDiv = element.hasAttribute('data-title') || element.hasAttribute('title') || element.hasAttribute('data-dottedTitle') ? element : element.closest('[data-title]') || element.closest('[title]') || element.closest('[data-dottedTitle]');
199
199
 
200
200
  if (titleDiv) {
201
- var title = titleDiv.getAttribute('data-title') || titleDiv.getAttribute('title');
201
+ var title = titleDiv.getAttribute('data-title') || titleDiv.getAttribute('title') || titleDiv.getAttribute('data-dottedTitle');
202
202
  /* if data-title-position is left or right change right and left in rtl case */
203
203
 
204
204
  var isPosition = titleDiv.getAttribute('data-title-position');