@zohodesk/components 1.0.0-temp-202.1 → 1.0.0-temp-203

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 (176) hide show
  1. package/.cli/PropUnificationExcludeFilesArray.js +230 -230
  2. package/.cli/PropValidationExcludeFilesArray.js +1 -1
  3. package/.cli/propValidation_report.html +1 -1
  4. package/css_error.log +1 -1
  5. package/es/AppContainer/AppContainer.module.css +18 -18
  6. package/es/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +591 -591
  7. package/es/AvatarTeam/AvatarTeam.js +7 -7
  8. package/es/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +705 -705
  9. package/es/Button/Button.js +4 -4
  10. package/es/Buttongroup/Buttongroup.js +1 -1
  11. package/es/Buttongroup/__tests__/__snapshots__/Buttongroup.spec.js.snap +191 -191
  12. package/es/Card/Card.js +4 -4
  13. package/es/Card/Card.module.css +20 -20
  14. package/es/DateTime/DateWidget.module.css +38 -38
  15. package/es/DropBox/DropBoxPositionMapping.json +144 -144
  16. package/es/DropDown/DropDown.module.css +5 -5
  17. package/es/DropDown/DropDownSearch.js +5 -2
  18. package/es/DropDown/DropDownSearch.module.css +14 -14
  19. package/es/DropDown/DropDownSeparator.module.css +7 -7
  20. package/es/DropDown/__tests__/__snapshots__/DropDownSearch.spec.js.snap +2 -0
  21. package/es/DropDown/props/defaultProps.js +2 -1
  22. package/es/DropDown/props/propTypes.js +2 -1
  23. package/es/Heading/Heading.module.css +4 -4
  24. package/es/Label/Label.js +2 -2
  25. package/es/Label/__tests__/__snapshots__/Label.spec.js.snap +312 -312
  26. package/es/Layout/Layout.module.css +335 -335
  27. package/es/ListItem/ListItemWithCheckBox.js +2 -1
  28. package/es/ListItem/ListItemWithRadio.js +2 -1
  29. package/es/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +2 -2
  30. package/es/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +2 -2
  31. package/es/MultiSelect/AdvancedGroupMultiSelect.js +6 -3
  32. package/es/MultiSelect/AdvancedMultiSelect.js +6 -2
  33. package/es/MultiSelect/MultiSelect.js +2 -1
  34. package/es/MultiSelect/MultiSelectWithAvatar.js +2 -1
  35. package/es/MultiSelect/SelectedOptions.js +8 -4
  36. package/es/MultiSelect/SelectedOptions.module.css +15 -15
  37. package/es/MultiSelect/__tests__/__snapshots__/AdvancedMultiSelect.spec.js.snap +2 -2
  38. package/es/MultiSelect/__tests__/__snapshots__/SelectedOptions.spec.js.snap +6 -6
  39. package/es/MultiSelect/props/defaultProps.js +2 -1
  40. package/es/MultiSelect/props/propTypes.js +2 -1
  41. package/es/Popup/PositionMapping.json +73 -73
  42. package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -6
  43. package/es/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +374 -374
  44. package/es/RippleEffect/RippleEffect.module.css +92 -92
  45. package/es/Select/Select.module.css +134 -134
  46. package/es/Select/SelectWithAvatar.js +5 -2
  47. package/es/Select/SelectWithIcon.js +2 -1
  48. package/es/Select/__tests__/__snapshots__/SelectWithAvatar.spec.js.snap +2 -2
  49. package/es/Stencils/Stencils.module.css +96 -96
  50. package/es/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +89 -89
  51. package/es/Switch/__tests__/__snapshots__/Switch.spec.js.snap +831 -831
  52. package/es/Tab/TabContent.module.css +4 -4
  53. package/es/Tab/Tabs.js +21 -19
  54. package/es/Tag/Tag.js +8 -8
  55. package/es/Tooltip/Tooltip.js +4 -57
  56. package/es/Tooltip/Tooltip.module.css +140 -140
  57. package/es/common/a11y.module.css +3 -3
  58. package/es/common/animation.module.css +624 -624
  59. package/es/common/avatarsizes.module.css +48 -48
  60. package/es/common/basic.module.css +33 -33
  61. package/es/common/basicReset.module.css +40 -40
  62. package/es/common/boxShadow.module.css +33 -33
  63. package/es/common/common.module.css +524 -524
  64. package/es/common/reset.module.css +13 -13
  65. package/es/common/transition.module.css +146 -146
  66. package/es/semantic/Button/semanticButton.module.css +9 -9
  67. package/es/v1/Avatar/Avatar.js +5 -5
  68. package/es/v1/AvatarTeam/AvatarTeam.js +4 -4
  69. package/es/v1/Button/Button.js +4 -4
  70. package/es/v1/DropDown/DropDownSearch.js +5 -2
  71. package/es/v1/DropDown/props/defaultProps.js +2 -1
  72. package/es/v1/DropDown/props/propTypes.js +2 -1
  73. package/es/v1/ListItem/ListItemWithCheckBox.js +2 -1
  74. package/es/v1/ListItem/ListItemWithRadio.js +2 -1
  75. package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +6 -3
  76. package/es/v1/MultiSelect/AdvancedMultiSelect.js +6 -2
  77. package/es/v1/MultiSelect/MultiSelect.js +2 -1
  78. package/es/v1/MultiSelect/MultiSelectWithAvatar.js +2 -1
  79. package/es/v1/MultiSelect/SelectedOptions.js +8 -4
  80. package/es/v1/MultiSelect/props/defaultProps.js +2 -1
  81. package/es/v1/MultiSelect/props/propTypes.js +2 -1
  82. package/es/v1/Select/SelectWithAvatar.js +5 -2
  83. package/es/v1/Select/SelectWithIcon.js +2 -1
  84. package/es/v1/Tab/Tabs.js +4 -2
  85. package/es/v1/Tab/v1TabContent.module.css +4 -4
  86. package/es/v1/Tag/Tag.js +8 -8
  87. package/es/v1/Typography/css/Typography.module.css +380 -380
  88. package/install.md +10 -10
  89. package/lib/AppContainer/AppContainer.module.css +18 -18
  90. package/lib/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +591 -591
  91. package/lib/AvatarTeam/AvatarTeam.js +7 -7
  92. package/lib/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +705 -705
  93. package/lib/Button/Button.js +4 -4
  94. package/lib/Buttongroup/Buttongroup.js +1 -1
  95. package/lib/Buttongroup/__tests__/__snapshots__/Buttongroup.spec.js.snap +191 -191
  96. package/lib/Card/Card.js +4 -4
  97. package/lib/Card/Card.module.css +20 -20
  98. package/lib/DateTime/DateWidget.module.css +38 -38
  99. package/lib/DropBox/DropBoxPositionMapping.json +144 -144
  100. package/lib/DropDown/DropDown.module.css +5 -5
  101. package/lib/DropDown/DropDownSearch.js +5 -2
  102. package/lib/DropDown/DropDownSearch.module.css +14 -14
  103. package/lib/DropDown/DropDownSeparator.module.css +7 -7
  104. package/lib/DropDown/__tests__/__snapshots__/DropDownSearch.spec.js.snap +2 -0
  105. package/lib/DropDown/props/defaultProps.js +2 -1
  106. package/lib/DropDown/props/propTypes.js +1 -1
  107. package/lib/Heading/Heading.module.css +4 -4
  108. package/lib/Label/__tests__/__snapshots__/Label.spec.js.snap +312 -312
  109. package/lib/Layout/Layout.module.css +335 -335
  110. package/lib/ListItem/ListItemWithCheckBox.js +2 -1
  111. package/lib/ListItem/ListItemWithRadio.js +2 -1
  112. package/lib/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +2 -2
  113. package/lib/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +2 -2
  114. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +6 -3
  115. package/lib/MultiSelect/AdvancedMultiSelect.js +8 -4
  116. package/lib/MultiSelect/MultiSelect.js +2 -1
  117. package/lib/MultiSelect/MultiSelectWithAvatar.js +2 -1
  118. package/lib/MultiSelect/SelectedOptions.js +8 -4
  119. package/lib/MultiSelect/SelectedOptions.module.css +15 -15
  120. package/lib/MultiSelect/__tests__/__snapshots__/AdvancedMultiSelect.spec.js.snap +2 -2
  121. package/lib/MultiSelect/__tests__/__snapshots__/SelectedOptions.spec.js.snap +6 -6
  122. package/lib/MultiSelect/props/defaultProps.js +2 -1
  123. package/lib/MultiSelect/props/propTypes.js +2 -1
  124. package/lib/Popup/PositionMapping.json +73 -73
  125. package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -6
  126. package/lib/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +374 -374
  127. package/lib/RippleEffect/RippleEffect.module.css +92 -92
  128. package/lib/Select/Select.module.css +134 -134
  129. package/lib/Select/SelectWithAvatar.js +5 -2
  130. package/lib/Select/SelectWithIcon.js +2 -1
  131. package/lib/Select/__tests__/__snapshots__/SelectWithAvatar.spec.js.snap +2 -2
  132. package/lib/Stencils/Stencils.module.css +96 -96
  133. package/lib/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +89 -89
  134. package/lib/Switch/__tests__/__snapshots__/Switch.spec.js.snap +831 -831
  135. package/lib/Tab/TabContent.module.css +4 -4
  136. package/lib/Tab/Tabs.js +15 -13
  137. package/lib/Tag/Tag.js +8 -8
  138. package/lib/Tooltip/Tooltip.js +28 -89
  139. package/lib/Tooltip/Tooltip.module.css +140 -140
  140. package/lib/common/a11y.module.css +3 -3
  141. package/lib/common/animation.module.css +624 -624
  142. package/lib/common/avatarsizes.module.css +48 -48
  143. package/lib/common/basic.module.css +33 -33
  144. package/lib/common/basicReset.module.css +40 -40
  145. package/lib/common/boxShadow.module.css +33 -33
  146. package/lib/common/common.module.css +524 -524
  147. package/lib/common/reset.module.css +13 -13
  148. package/lib/common/transition.module.css +146 -146
  149. package/lib/semantic/Button/semanticButton.module.css +9 -9
  150. package/lib/v1/Avatar/Avatar.js +5 -5
  151. package/lib/v1/AvatarTeam/AvatarTeam.js +4 -4
  152. package/lib/v1/Button/Button.js +4 -4
  153. package/lib/v1/DropDown/DropDownSearch.js +5 -2
  154. package/lib/v1/DropDown/props/defaultProps.js +2 -1
  155. package/lib/v1/DropDown/props/propTypes.js +1 -1
  156. package/lib/v1/ListItem/ListItemWithCheckBox.js +2 -1
  157. package/lib/v1/ListItem/ListItemWithRadio.js +2 -1
  158. package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +6 -3
  159. package/lib/v1/MultiSelect/AdvancedMultiSelect.js +8 -4
  160. package/lib/v1/MultiSelect/MultiSelect.js +2 -1
  161. package/lib/v1/MultiSelect/MultiSelectWithAvatar.js +2 -1
  162. package/lib/v1/MultiSelect/SelectedOptions.js +8 -4
  163. package/lib/v1/MultiSelect/props/defaultProps.js +2 -1
  164. package/lib/v1/MultiSelect/props/propTypes.js +2 -1
  165. package/lib/v1/Select/SelectWithAvatar.js +5 -2
  166. package/lib/v1/Select/SelectWithIcon.js +2 -1
  167. package/lib/v1/Tab/Tabs.js +4 -2
  168. package/lib/v1/Tab/v1TabContent.module.css +4 -4
  169. package/lib/v1/Tag/Tag.js +8 -8
  170. package/lib/v1/Typography/css/Typography.module.css +380 -380
  171. package/package.json +4 -4
  172. package/postPublish.js +8 -8
  173. package/prePublish.js +70 -70
  174. package/propValidationArg.json +11 -11
  175. package/react-cli.config.js +23 -23
  176. package/result.json +1 -1
@@ -1,13 +1,13 @@
1
- *,
2
- :after,
3
- :before {
4
- outline: 0;
5
- box-sizing: border-box;
6
- -webkit-box-sizing: border-box;
7
- -moz-box-sizing: border-box;
8
- -ms-box-sizing: border-box;
9
- }
10
- html {
11
- /* Variable:Ignore */
12
- font-size: 16px;
13
- }
1
+ *,
2
+ :after,
3
+ :before {
4
+ outline: 0;
5
+ box-sizing: border-box;
6
+ -webkit-box-sizing: border-box;
7
+ -moz-box-sizing: border-box;
8
+ -ms-box-sizing: border-box;
9
+ }
10
+ html {
11
+ /* Variable:Ignore */
12
+ font-size: 16px;
13
+ }
@@ -1,146 +1,146 @@
1
- .zoomInEnter,
2
- .zoomInLeave.zoomInLeaveActive {
3
- opacity: 0;
4
- }.zoomInEnter, .zoomInLeave.zoomInLeaveActive {
5
- transform: perspective(1px) scale(1.5) translateZ(0);
6
- transition-duration: var(--zd_transition3);
7
- transition-property: all;
8
- }
9
- .zoomInEnter.zoomInEnterActive,
10
- .zoomInLeave {
11
- opacity: 1;
12
- }
13
- .zoomInEnter.zoomInEnterActive, .zoomInLeave {
14
- transform: perspective(1px) scale(1) translateZ(0);
15
- transition-duration: var(--zd_transition3);
16
- transition-property: all;
17
- }
18
-
19
- .scaleInEnter,
20
- .scaleInLeave.scaleInLeaveActive {
21
- opacity: 0;
22
- }
23
-
24
- .scaleInEnter, .scaleInLeave.scaleInLeaveActive {
25
- transform: scale(0);
26
- transition-duration: var(--zd_transition3);
27
- transition-property: all;
28
- }
29
- .scaleInEnter.scaleInEnterActive,
30
- .scaleInLeave {
31
- opacity: 1;
32
- }
33
- .scaleInEnter.scaleInEnterActive, .scaleInLeave {
34
- transform: scale(1);
35
- transition-duration: var(--zd_transition3);
36
- transition-property: all;
37
- }
38
-
39
- .fadeInEnter,
40
- .fadeInLeave.fadeInLeaveActive {
41
- opacity: 0;
42
- }
43
-
44
- .fadeInEnter, .fadeInLeave.fadeInLeaveActive {
45
- transition-duration: var(--zd_transition3);
46
- transition-property: all;
47
- }
48
-
49
- .fadeInEnter.fadeInEnterActive,
50
- .fadeInLeave {
51
- opacity: 1;
52
- }
53
-
54
- .fadeInEnter.fadeInEnterActive, .fadeInLeave {
55
- transition-duration: var(--zd_transition3);
56
- transition-property: all;
57
- }
58
-
59
- .slideLeftEnter,
60
- .slideLeftLeave.slideLeftLeaveActive {
61
- opacity: 0;
62
- }
63
-
64
- .slideLeftEnter, .slideLeftLeave.slideLeftLeaveActive {
65
- transition-duration: var(--zd_transition3);
66
- transition-property: all;
67
- }
68
-
69
- [dir=ltr] .slideLeftEnter, [dir=ltr] .slideLeftLeave.slideLeftLeaveActive {
70
- transform: translateX(110%);
71
- }
72
-
73
- [dir=rtl] .slideLeftEnter, [dir=rtl] .slideLeftLeave.slideLeftLeaveActive {
74
- transform: translateX(-110%);
75
- }
76
-
77
- .slideLeftEnter.slideLeftEnterActive,
78
- .slideLeftLeave {
79
- opacity: 1;
80
- }
81
-
82
- .slideLeftEnter.slideLeftEnterActive, .slideLeftLeave {
83
- transform: translateX(0%);
84
- transition-duration: var(--zd_transition3);
85
- transition-property: all;
86
- }
87
-
88
- .slideDownEnter,
89
- .slideDownLeave.slideDownLeaveActive {
90
- opacity: 0;
91
- }
92
-
93
- .slideDownEnter, .slideDownLeave.slideDownLeaveActive {
94
- transform: translateY(-100%);
95
- transition-duration: var(--zd_transition3);
96
- transition-property: all;
97
- }
98
-
99
- .slideDownEnter.slideDownEnterActive,
100
- .slideDownLeave {
101
- opacity: 1;
102
- }
103
-
104
- .slideDownEnter.slideDownEnterActive, .slideDownLeave {
105
- transform: translateY(0%);
106
- transition-duration: var(--zd_transition3);
107
- transition-property: all;
108
- }
109
-
110
- .skewInEnter,
111
- .skewInLeave.skewInLeaveActive {
112
- opacity: 0;
113
- }
114
-
115
- .skewInEnter, .skewInLeave.skewInLeaveActive {
116
- transition-duration: var(--zd_transition3);
117
- transition-property: all;
118
- }
119
-
120
- [dir=ltr] .skewInEnter, [dir=ltr] .skewInLeave.skewInLeaveActive {
121
- transform: translate(100%, 100%) skew(72deg) scale(0) perspective(221px);
122
- }
123
-
124
- [dir=rtl] .skewInEnter, [dir=rtl] .skewInLeave.skewInLeaveActive {
125
- transform: translate(-100%, 100%) skew(-72deg) scale(0) perspective(221px);
126
- }
127
-
128
- .skewInEnter.skewInEnterActive,
129
- .skewInLeave {
130
- opacity: 1;
131
- }
132
-
133
- .skewInEnter.skewInEnterActive, .skewInLeave {
134
- transform: translate(0, 0) skew(0deg) scale(1) perspective(221px);
135
- transition-duration: var(--zd_transition3);
136
- transition-property: all;
137
- }
138
-
139
- .defaultEnter,
140
- .defaultLeave.defaultLeaveActive {
141
- display: none;
142
- }
143
- .defaultEnter.defaultEnterActive,
144
- .defaultLeave {
145
- display: block;
146
- }
1
+ .zoomInEnter,
2
+ .zoomInLeave.zoomInLeaveActive {
3
+ opacity: 0;
4
+ }.zoomInEnter, .zoomInLeave.zoomInLeaveActive {
5
+ transform: perspective(1px) scale(1.5) translateZ(0);
6
+ transition-duration: var(--zd_transition3);
7
+ transition-property: all;
8
+ }
9
+ .zoomInEnter.zoomInEnterActive,
10
+ .zoomInLeave {
11
+ opacity: 1;
12
+ }
13
+ .zoomInEnter.zoomInEnterActive, .zoomInLeave {
14
+ transform: perspective(1px) scale(1) translateZ(0);
15
+ transition-duration: var(--zd_transition3);
16
+ transition-property: all;
17
+ }
18
+
19
+ .scaleInEnter,
20
+ .scaleInLeave.scaleInLeaveActive {
21
+ opacity: 0;
22
+ }
23
+
24
+ .scaleInEnter, .scaleInLeave.scaleInLeaveActive {
25
+ transform: scale(0);
26
+ transition-duration: var(--zd_transition3);
27
+ transition-property: all;
28
+ }
29
+ .scaleInEnter.scaleInEnterActive,
30
+ .scaleInLeave {
31
+ opacity: 1;
32
+ }
33
+ .scaleInEnter.scaleInEnterActive, .scaleInLeave {
34
+ transform: scale(1);
35
+ transition-duration: var(--zd_transition3);
36
+ transition-property: all;
37
+ }
38
+
39
+ .fadeInEnter,
40
+ .fadeInLeave.fadeInLeaveActive {
41
+ opacity: 0;
42
+ }
43
+
44
+ .fadeInEnter, .fadeInLeave.fadeInLeaveActive {
45
+ transition-duration: var(--zd_transition3);
46
+ transition-property: all;
47
+ }
48
+
49
+ .fadeInEnter.fadeInEnterActive,
50
+ .fadeInLeave {
51
+ opacity: 1;
52
+ }
53
+
54
+ .fadeInEnter.fadeInEnterActive, .fadeInLeave {
55
+ transition-duration: var(--zd_transition3);
56
+ transition-property: all;
57
+ }
58
+
59
+ .slideLeftEnter,
60
+ .slideLeftLeave.slideLeftLeaveActive {
61
+ opacity: 0;
62
+ }
63
+
64
+ .slideLeftEnter, .slideLeftLeave.slideLeftLeaveActive {
65
+ transition-duration: var(--zd_transition3);
66
+ transition-property: all;
67
+ }
68
+
69
+ [dir=ltr] .slideLeftEnter, [dir=ltr] .slideLeftLeave.slideLeftLeaveActive {
70
+ transform: translateX(110%);
71
+ }
72
+
73
+ [dir=rtl] .slideLeftEnter, [dir=rtl] .slideLeftLeave.slideLeftLeaveActive {
74
+ transform: translateX(-110%);
75
+ }
76
+
77
+ .slideLeftEnter.slideLeftEnterActive,
78
+ .slideLeftLeave {
79
+ opacity: 1;
80
+ }
81
+
82
+ .slideLeftEnter.slideLeftEnterActive, .slideLeftLeave {
83
+ transform: translateX(0%);
84
+ transition-duration: var(--zd_transition3);
85
+ transition-property: all;
86
+ }
87
+
88
+ .slideDownEnter,
89
+ .slideDownLeave.slideDownLeaveActive {
90
+ opacity: 0;
91
+ }
92
+
93
+ .slideDownEnter, .slideDownLeave.slideDownLeaveActive {
94
+ transform: translateY(-100%);
95
+ transition-duration: var(--zd_transition3);
96
+ transition-property: all;
97
+ }
98
+
99
+ .slideDownEnter.slideDownEnterActive,
100
+ .slideDownLeave {
101
+ opacity: 1;
102
+ }
103
+
104
+ .slideDownEnter.slideDownEnterActive, .slideDownLeave {
105
+ transform: translateY(0%);
106
+ transition-duration: var(--zd_transition3);
107
+ transition-property: all;
108
+ }
109
+
110
+ .skewInEnter,
111
+ .skewInLeave.skewInLeaveActive {
112
+ opacity: 0;
113
+ }
114
+
115
+ .skewInEnter, .skewInLeave.skewInLeaveActive {
116
+ transition-duration: var(--zd_transition3);
117
+ transition-property: all;
118
+ }
119
+
120
+ [dir=ltr] .skewInEnter, [dir=ltr] .skewInLeave.skewInLeaveActive {
121
+ transform: translate(100%, 100%) skew(72deg) scale(0) perspective(221px);
122
+ }
123
+
124
+ [dir=rtl] .skewInEnter, [dir=rtl] .skewInLeave.skewInLeaveActive {
125
+ transform: translate(-100%, 100%) skew(-72deg) scale(0) perspective(221px);
126
+ }
127
+
128
+ .skewInEnter.skewInEnterActive,
129
+ .skewInLeave {
130
+ opacity: 1;
131
+ }
132
+
133
+ .skewInEnter.skewInEnterActive, .skewInLeave {
134
+ transform: translate(0, 0) skew(0deg) scale(1) perspective(221px);
135
+ transition-duration: var(--zd_transition3);
136
+ transition-property: all;
137
+ }
138
+
139
+ .defaultEnter,
140
+ .defaultLeave.defaultLeaveActive {
141
+ display: none;
142
+ }
143
+ .defaultEnter.defaultEnterActive,
144
+ .defaultLeave {
145
+ display: block;
146
+ }
@@ -1,9 +1,9 @@
1
- .buttonReset {
2
- outline: 0;
3
- font: inherit;
4
- color: inherit;
5
- border: inherit;
6
- background-color: inherit;
7
- padding: 0 ;
8
- text-align: inherit;
9
- }
1
+ .buttonReset {
2
+ outline: 0;
3
+ font: inherit;
4
+ color: inherit;
5
+ border: inherit;
6
+ background-color: inherit;
7
+ padding: 0 ;
8
+ text-align: inherit;
9
+ }
@@ -5,11 +5,11 @@ import { propTypes } from './props/propTypes';
5
5
  import { getInitial } from '../../utils/getInitial';
6
6
  import AvatarSize from '../../Provider/AvatarSize';
7
7
  import style from '../../Avatar/Avatar.module.css';
8
- /*
9
- 1. need to change name into firstName lastName
10
- 2. pattern support via context as well as props
11
- 3. prop high priority to arrange firstName lastName
12
- 4. team pass name as lastName and pass pattern via prop
8
+ /*
9
+ 1. need to change name into firstName lastName
10
+ 2. pattern support via context as well as props
11
+ 3. prop high priority to arrange firstName lastName
12
+ 4. team pass name as lastName and pass pattern via prop
13
13
  */
14
14
 
15
15
  function Avatar(props) {
@@ -3,10 +3,10 @@ import { defaultProps } from './props/defaultProps';
3
3
  import { propTypes } from './props/propTypes';
4
4
  import Avatar from '../Avatar/Avatar';
5
5
  import style from '../../AvatarTeam/AvatarTeam.module.css';
6
- /* once avatar support firstname lastname and pattern
7
- pass lastName as team name and pattern ["FIRST_NAME","LAST_NAME"] as props
8
-
9
- Not going to export to external then can kept inside supportapp
6
+ /* once avatar support firstname lastname and pattern
7
+ pass lastName as team name and pattern ["FIRST_NAME","LAST_NAME"] as props
8
+
9
+ Not going to export to external then can kept inside supportapp
10
10
  */
11
11
 
12
12
  export default function AvatarTeam(props) {
@@ -4,10 +4,10 @@ import { propTypes } from './props/propTypes';
4
4
  import cssJSLogic from '../../Button/css/cssJSLogic';
5
5
  import { mergeStyle } from '@zohodesk/utils';
6
6
  import style from '../../Button/css/Button.module.css';
7
- /*
8
- Button text and children props?
9
- use children for both cases
10
- toLowerCase check needed?
7
+ /*
8
+ Button text and children props?
9
+ use children for both cases
10
+ toLowerCase check needed?
11
11
  */
12
12
 
13
13
  export default function Button(props) {
@@ -16,7 +16,8 @@ export default function DropDownSearch(props) {
16
16
  textBoxSize,
17
17
  placeHolder,
18
18
  customClass,
19
- getRef
19
+ getRef,
20
+ dataId
20
21
  } = props;
21
22
  let {
22
23
  searchClass = '',
@@ -36,7 +37,9 @@ export default function DropDownSearch(props) {
36
37
  }
37
38
 
38
39
  return /*#__PURE__*/React.createElement("div", {
39
- className: `${style.search} ${style[`${size}Search`]} ${searchClass}`
40
+ className: `${style.search} ${style[`${size}Search`]} ${searchClass}`,
41
+ "data-id": dataId,
42
+ "data-test-id": dataId
40
43
  }, /*#__PURE__*/React.createElement(TextBox, {
41
44
  id: id,
42
45
  inputRef: getReference,
@@ -16,5 +16,6 @@ export const DropDownItem_defaultProps = {
16
16
  export const DropDownSearch_defaultProps = {
17
17
  size: 'medium',
18
18
  textBoxSize: 'medium',
19
- customClass: {}
19
+ customClass: {},
20
+ dataId: 'DropDownSearch'
20
21
  };
@@ -58,7 +58,8 @@ export const DropDownSearch_propTypes = {
58
58
  customClass: PropTypes.shape({
59
59
  searchClass: PropTypes.string,
60
60
  customTextBox: PropTypes.string
61
- })
61
+ }),
62
+ dataId: PropTypes.string
62
63
  };
63
64
  export const DropDownSeparator_propTypes = {
64
65
  customClass: PropTypes.string
@@ -75,7 +75,8 @@ const ListItemWithCheckBox = props => {
75
75
  customProps: ListItemProps,
76
76
  ...ContainerProps
77
77
  }, /*#__PURE__*/React.createElement(Box, {
78
- className: style.iconBox
78
+ className: style.iconBox,
79
+ dataId: `${dataId ? dataId : value}_checkBox`
79
80
  }, /*#__PURE__*/React.createElement(CheckBox, {
80
81
  checked: checked,
81
82
  a11y: {
@@ -75,7 +75,8 @@ const ListItemWithRadio = props => {
75
75
  customProps: ListItemProps,
76
76
  ...ContainerProps
77
77
  }, /*#__PURE__*/React.createElement(Box, {
78
- className: style.iconBox
78
+ className: style.iconBox,
79
+ dataId: `${dataId}_radio`
79
80
  }, /*#__PURE__*/React.createElement(Radio, {
80
81
  checked: checked,
81
82
  id: id,
@@ -925,7 +925,8 @@ class AdvancedGroupMultiSelect extends React.Component {
925
925
  getRef: this.selectedOptionRef,
926
926
  onRemove: this.handleRemoveOption,
927
927
  onSelect: this.handleClickSelectedOption,
928
- isGroupSelect: true
928
+ isGroupSelect: true,
929
+ dataId: `${dataId}_selectedOptions`
929
930
  }), /*#__PURE__*/React.createElement(Box, {
930
931
  flexible: true,
931
932
  className: style.wrapper,
@@ -999,7 +1000,8 @@ class AdvancedGroupMultiSelect extends React.Component {
999
1000
  role: 'listbox',
1000
1001
  ariaMultiselectable: true
1001
1002
  },
1002
- alignBox: "row"
1003
+ alignBox: "row",
1004
+ dataId: `${dataId}_dropbox`
1003
1005
  }, /*#__PURE__*/React.createElement(Box, {
1004
1006
  flexible: true
1005
1007
  }, /*#__PURE__*/React.createElement(Card, {
@@ -1043,7 +1045,8 @@ class AdvancedGroupMultiSelect extends React.Component {
1043
1045
  listItemSize: listItemSize,
1044
1046
  a11y: {
1045
1047
  role: 'option'
1046
- }
1048
+ },
1049
+ dataId: `${dataId}_Options`
1047
1050
  }));
1048
1051
  }) : /*#__PURE__*/React.createElement(EmptyState, {
1049
1052
  options: revampedGroups,
@@ -429,7 +429,8 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
429
429
  isReadOnly: isReadOnly,
430
430
  getRef: this.selectedOptionRef,
431
431
  onRemove: this.handleRemoveOption,
432
- onSelect: this.handleClickSelectedOption
432
+ onSelect: this.handleClickSelectedOption,
433
+ dataId: `${dataIdMultiSelectComp}_selectedOptions`
433
434
  }), moreCount > 0 ? /*#__PURE__*/React.createElement(Box, {
434
435
  className: style.more,
435
436
  onClick: this.handleMoreClick,
@@ -438,7 +439,8 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
438
439
  flexible: true,
439
440
  className: style.wrapper,
440
441
  adjust: true,
441
- shrink: true
442
+ shrink: true,
443
+ dataId: `${dataIdMultiSelectComp}_textBox`
442
444
  }, /*#__PURE__*/React.createElement("span", {
443
445
  className: ` ${style.custmSpan} ${textBoxSize === 'xmedium' ? style.custmSpanXmedium : style.custmSpanMedium} ${isShowClearIcon ? style.clearIconSpace : ''}
444
446
  `
@@ -505,6 +507,7 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
505
507
  role: 'listbox',
506
508
  ariaMultiselectable: true
507
509
  },
510
+ dataId: `${dataIdMultiSelectComp}_dropbox`,
508
511
  ...DropBoxProps,
509
512
  alignBox: "row",
510
513
  isResponsivePadding: getFooter ? false : true
@@ -537,6 +540,7 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
537
540
  a11y: {
538
541
  role: 'option'
539
542
  },
543
+ dataId: `${dataIdMultiSelectComp}_Options`,
540
544
  ...SuggestionsProps
541
545
  }) : /*#__PURE__*/React.createElement(EmptyState, {
542
546
  isLoading: isFetchingOptions,
@@ -901,7 +901,8 @@ export class MultiSelectComponent extends React.Component {
901
901
  onRemove: this.handleRemoveOption,
902
902
  onSelect: this.handleClickSelectedOption,
903
903
  size: size,
904
- palette: palette
904
+ palette: palette,
905
+ dataId: `${dataId}_selectedOptions`
905
906
  }), /*#__PURE__*/React.createElement(Box, {
906
907
  flexible: true,
907
908
  className: style.wrapper,
@@ -134,7 +134,8 @@ class MultiSelectWithAvatarComponent extends MultiSelectComponent {
134
134
  role: 'listbox'
135
135
  },
136
136
  isResponsivePadding: true,
137
- alignBox: "row"
137
+ alignBox: "row",
138
+ dataId: `${dataId}_dropbox`
138
139
  }, /*#__PURE__*/React.createElement(Box, {
139
140
  flexible: true
140
141
  }, /*#__PURE__*/React.createElement(Card, {
@@ -21,7 +21,8 @@ export default class SelectedOptions extends React.PureComponent {
21
21
  onRemove,
22
22
  onSelect,
23
23
  size,
24
- palette
24
+ palette,
25
+ dataId
25
26
  } = this.props;
26
27
  const isDarkPalette = palette === 'dark' ? 'dark' : 'danger';
27
28
  return /*#__PURE__*/React.createElement(React.Fragment, null, selectedOptions.map(option => {
@@ -49,7 +50,8 @@ export default class SelectedOptions extends React.PureComponent {
49
50
  if (optionType === 'avatar') {
50
51
  return /*#__PURE__*/React.createElement(Box, {
51
52
  className: `${style.tag} ${style[size]}`,
52
- key: `${id}photoTag`
53
+ key: `${id}photoTag`,
54
+ dataId: dataId
53
55
  }, /*#__PURE__*/React.createElement(Tag, { ...commonProps,
54
56
  active: highLightedSelectOptions.indexOf(id) >= 0,
55
57
  hasAvatar: true,
@@ -58,7 +60,8 @@ export default class SelectedOptions extends React.PureComponent {
58
60
  } else if (optionType === 'icon') {
59
61
  return /*#__PURE__*/React.createElement(Box, {
60
62
  className: `${style.tag} ${style[size]}`,
61
- key: `${id}iconTag`
63
+ key: `${id}iconTag`,
64
+ dataId: dataId
62
65
  }, /*#__PURE__*/React.createElement(Tag, { ...commonProps,
63
66
  active: highLightedSelectOptions.indexOf(id) >= 0,
64
67
  iconName: icon,
@@ -68,7 +71,8 @@ export default class SelectedOptions extends React.PureComponent {
68
71
 
69
72
  return /*#__PURE__*/React.createElement(Box, {
70
73
  className: `${style.tag} ${style[size]}`,
71
- key: `${id}tag`
74
+ key: `${id}tag`,
75
+ dataId: dataId
72
76
  }, /*#__PURE__*/React.createElement(Tag, { ...commonProps,
73
77
  active: highLightedSelectOptions.indexOf(id) >= 0
74
78
  }));
@@ -149,7 +149,8 @@ export const MultiSelectWithAvatar_defaultProps = {
149
149
  needResponsive: true
150
150
  };
151
151
  export const SelectedOptions_defaultProps = {
152
- size: 'medium'
152
+ size: 'medium',
153
+ dataId: 'selectedOptions'
153
154
  };
154
155
  export const Suggestions_defaultProps = {
155
156
  a11y: {}
@@ -139,7 +139,8 @@ export const SelectedOptions_propTypes = {
139
139
  optionType: PropTypes.string
140
140
  })),
141
141
  size: PropTypes.oneOf(['medium', 'xmedium']),
142
- palette: PropTypes.string
142
+ palette: PropTypes.string,
143
+ dataId: PropTypes.string
143
144
  };
144
145
  export const Suggestions_propTypes = {
145
146
  a11y: PropTypes.shape({
@@ -209,7 +209,8 @@ class SelectWithAvatarComponent extends SelectComponent {
209
209
  size: tagSize
210
210
  })) : null, /*#__PURE__*/React.createElement(Box, {
211
211
  flexible: true,
212
- className: style.textBox
212
+ className: style.textBox,
213
+ dataId: `${dataId}_textBox`
213
214
  }, /*#__PURE__*/React.createElement(Textbox, {
214
215
  a11y: {
215
216
  ariaActivedescendant: selectedId,
@@ -257,7 +258,8 @@ class SelectWithAvatarComponent extends SelectComponent {
257
258
  needResponsive: needResponsive,
258
259
  isPadding: false,
259
260
  isResponsivePadding: true,
260
- alignBox: "row"
261
+ alignBox: "row",
262
+ dataId: `${dataId}_dropbox`
261
263
  }, isLoading ? /*#__PURE__*/React.createElement(Container, {
262
264
  align: "both",
263
265
  className: style.loader
@@ -295,6 +297,7 @@ class SelectWithAvatarComponent extends SelectComponent {
295
297
  role: 'heading'
296
298
  }
297
299
  })) : null, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, {
300
+ dataId: `${dataId}_Options`,
298
301
  activeId: selectedId,
299
302
  suggestions: suggestions,
300
303
  getRef: this.suggestionItemRef,
@@ -472,7 +472,8 @@ class SelectWithIcon extends Component {
472
472
  }))) : null, /*#__PURE__*/React.createElement(CardContent, {
473
473
  customClass: `${tabletMode ? style.responsivedropBoxList : style.dropBoxList} ${!tabletMode && dropBoxSize ? style[dropBoxSize] : ''}`,
474
474
  shrink: true,
475
- eleRef: this.scrollContentRef
475
+ eleRef: this.scrollContentRef,
476
+ dataId: `${dataId}_Options`
476
477
  }, options.length ? /*#__PURE__*/React.createElement(React.Fragment, null, options.map((options, i) => {
477
478
  let {
478
479
  iconName,
package/es/v1/Tab/Tabs.js CHANGED
@@ -443,13 +443,15 @@ const Tabs = props => {
443
443
  ...DropBoxProps,
444
444
  isResponsivePadding: true,
445
445
  needFocusScope: true,
446
- onClose: togglePopupLocal
446
+ onClose: togglePopupLocal,
447
+ dataId: `${dataId}_dropbox`
447
448
  }, getCustomDropBoxHeaderPlaceHolder && getCustomDropBoxHeaderPlaceHolder(props), /*#__PURE__*/React.createElement(Box, {
448
449
  flexible: true,
449
450
  shrink: true,
450
451
  scroll: "vertical",
451
452
  className: `${tabletMode ? '' : tabsStyle.menuBox} ${moreBoxClass}`,
452
- onScroll: onScrollLocal
453
+ onScroll: onScrollLocal,
454
+ dataId: `${dataId}_Tabs`
453
455
  }, React.Children.map(moreTabs, child => {
454
456
  if (!child) {
455
457
  return null;
@@ -1,4 +1,4 @@
1
- /* $Id$ */
2
- .container {
3
- position: relative;
4
- }
1
+ /* $Id$ */
2
+ .container {
3
+ position: relative;
4
+ }