@zohodesk/dot 1.3.0 → 1.3.2

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 (164) hide show
  1. package/.cli/PropLessFiles.html +1 -1
  2. package/.cli/PropValidationExcludeFilesArray.js +1 -1
  3. package/.cli/propValidation_report.html +1 -1
  4. package/README.md +21 -12
  5. package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +163 -553
  6. package/assets/Appearance/dark/themes/blue/blue_DotTheme_DarkTheme.module.css +3 -12
  7. package/assets/Appearance/dark/themes/green/green_DotTheme_DarkTheme.module.css +3 -12
  8. package/assets/Appearance/dark/themes/orange/orange_DotTheme_DarkTheme.module.css +3 -12
  9. package/assets/Appearance/dark/themes/red/red_DotTheme_DarkTheme.module.css +3 -12
  10. package/assets/Appearance/dark/themes/yellow/yellow_DotTheme_DarkTheme.module.css +3 -12
  11. package/assets/Appearance/light/mode/Dot_LightMode.module.css +163 -553
  12. package/assets/Appearance/light/themes/blue/blue_DotTheme_LightTheme.module.css +3 -12
  13. package/assets/Appearance/light/themes/green/green_DotTheme_LightTheme.module.css +3 -12
  14. package/assets/Appearance/light/themes/orange/orange_DotTheme_LightTheme.module.css +3 -12
  15. package/assets/Appearance/light/themes/red/red_DotTheme_LightTheme.module.css +3 -12
  16. package/assets/Appearance/light/themes/yellow/yellow_DotTheme_LightTheme.module.css +3 -12
  17. package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +163 -553
  18. package/assets/Appearance/pureDark/themes/blue/blue_DotTheme_PureDarkTheme.module.css +3 -12
  19. package/assets/Appearance/pureDark/themes/green/green_DotTheme_PureDarkTheme.module.css +3 -12
  20. package/assets/Appearance/pureDark/themes/orange/orange_DotTheme_PureDarkTheme.module.css +3 -12
  21. package/assets/Appearance/pureDark/themes/red/red_DotTheme_PureDarkTheme.module.css +3 -12
  22. package/assets/Appearance/pureDark/themes/yellow/yellow_DotTheme_PureDarkTheme.module.css +3 -12
  23. package/coverage/ExternalLink/ExternalLink.js.html +1 -1
  24. package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
  25. package/coverage/ExternalLink/index.html +1 -1
  26. package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
  27. package/coverage/ExternalLink/props/index.html +1 -1
  28. package/coverage/ExternalLink/props/propTypes.js.html +1 -1
  29. package/coverage/IconButton/IconButton.js.html +466 -0
  30. package/coverage/IconButton/IconButton.module.css.html +151 -0
  31. package/coverage/IconButton/index.html +131 -0
  32. package/coverage/IconButton/props/defaultProps.js.html +136 -0
  33. package/coverage/IconButton/props/index.html +131 -0
  34. package/coverage/IconButton/props/propTypes.js.html +187 -0
  35. package/coverage/Image/Image.js.html +1 -1
  36. package/coverage/Image/Image.module.css.html +1 -1
  37. package/coverage/Image/index.html +1 -1
  38. package/coverage/Image/props/defaultProps.js.html +1 -1
  39. package/coverage/Image/props/index.html +1 -1
  40. package/coverage/Image/props/propTypes.js.html +1 -1
  41. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
  42. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
  43. package/coverage/avatar/AvatarWithTeam/index.html +1 -1
  44. package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
  45. package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
  46. package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
  47. package/coverage/coverage-final.json +4 -0
  48. package/coverage/coverage-summary.json +5 -1
  49. package/coverage/index.html +40 -10
  50. package/es/IconButton/__tests__/IconButton.spec.js +148 -0
  51. package/es/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +316 -0
  52. package/es/form/fields/FieldContainer/props/propTypes.js +1 -1
  53. package/es/v1/ActionButton/ActionButton.js +2 -2
  54. package/es/v1/AlphabeticList/AlphabeticList.js +6 -2
  55. package/es/v1/Attachment/Attachment.js +78 -75
  56. package/es/v1/AttachmentViewer/AttachmentImage.js +44 -63
  57. package/es/v1/Image/Image.js +26 -33
  58. package/es/v1/Loader/Loader.js +12 -18
  59. package/es/v1/Message/Message.js +16 -42
  60. package/es/v1/PlusIcon/PlusIcon.js +25 -37
  61. package/es/v1/Separator/Separator.js +40 -47
  62. package/es/v1/Upload/Upload.js +59 -66
  63. package/es/v1/alert/AlertHeader/AlertHeader.js +5 -4
  64. package/es/v1/alert/AlertHeader/props/defaultProps.js +12 -0
  65. package/es/v1/alert/AlertHeader/props/propTypes.js +20 -0
  66. package/es/v1/alert/AlertLookup/AlertLookup.js +6 -4
  67. package/es/v1/alert/AlertLookup/props/defaultProps.js +13 -0
  68. package/es/v1/alert/AlertLookup/props/propTypes.js +36 -0
  69. package/es/v1/avatar/AvatarClose/AvatarClose.js +32 -43
  70. package/es/v1/avatar/AvatarCollision/AvatarCollision.js +41 -52
  71. package/es/v1/avatar/AvatarIcon/AvatarIcon.js +38 -43
  72. package/es/v1/avatar/AvatarStatus/AvatarStatus.js +52 -63
  73. package/es/v1/avatar/AvatarThread/AvatarThread.js +62 -69
  74. package/es/v1/avatar/AvatarUser/AvatarUser.js +93 -100
  75. package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +81 -88
  76. package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +6 -6
  77. package/es/v1/form/fields/CurrencyField/CurrencyField.js +6 -6
  78. package/es/v1/form/fields/DateField/DateField.js +6 -6
  79. package/es/v1/form/fields/FieldContainer/FieldContainer.js +6 -6
  80. package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +6 -6
  81. package/es/v1/form/fields/PhoneField/PhoneField.js +6 -6
  82. package/es/v1/form/fields/RadioField/RadioField.js +89 -97
  83. package/es/v1/form/fields/SelectField/SelectField.js +139 -154
  84. package/es/v1/layout/SetupDetailLayout/SetupDetailLayout.js +154 -197
  85. package/es/v1/layout/SubtabLayout/SubtabLayout.js +108 -124
  86. package/es/v1/list/SecondaryText/AccountName.js +61 -69
  87. package/es/v1/list/SecondaryText/ContactName.js +66 -74
  88. package/es/v1/list/SecondaryText/DepartmentText.js +15 -27
  89. package/es/v1/list/SecondaryText/Email.js +32 -40
  90. package/es/v1/list/SecondaryText/HappinessRating.js +17 -25
  91. package/es/v1/list/SecondaryText/PhoneNumber.js +36 -44
  92. package/es/v1/list/SecondaryText/PriorityText.js +16 -28
  93. package/es/v1/list/SecondaryText/SecondaryText.js +21 -33
  94. package/es/v1/list/SecondaryText/StatusText.js +17 -29
  95. package/es/v1/list/SecondaryText/TicketId.js +33 -45
  96. package/es/v1/list/SecondaryText/Website.js +22 -30
  97. package/es/v1/list/SecondryPanel/SecondryPanel.js +66 -83
  98. package/es/v1/list/SentimentStatus/SentimentStatus.js +18 -29
  99. package/es/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
  100. package/es/v1/list/status/StatusListItem/StatusListItem.js +75 -100
  101. package/es/v1/lookup/EmptyPage/EmptyPage.js +15 -26
  102. package/es/v1/lookup/Section/Section.js +14 -20
  103. package/es/v1/svg/PlusIcon.js +20 -27
  104. package/es/v1/svg/SnippetIcon.js +22 -29
  105. package/es/v1/svg/TemplateIcon.js +23 -30
  106. package/lib/IconButton/__tests__/IconButton.spec.js +156 -0
  107. package/lib/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +316 -0
  108. package/lib/form/fields/FieldContainer/props/propTypes.js +1 -1
  109. package/lib/v1/ActionButton/ActionButton.js +2 -2
  110. package/lib/v1/AlphabeticList/AlphabeticList.js +7 -3
  111. package/lib/v1/Attachment/Attachment.js +77 -112
  112. package/lib/v1/AttachmentViewer/AttachmentImage.js +61 -96
  113. package/lib/v1/Image/Image.js +26 -71
  114. package/lib/v1/Loader/Loader.js +12 -55
  115. package/lib/v1/Message/Message.js +23 -80
  116. package/lib/v1/PlusIcon/PlusIcon.js +25 -71
  117. package/lib/v1/Separator/Separator.js +44 -85
  118. package/lib/v1/Upload/Upload.js +58 -103
  119. package/lib/v1/alert/AlertHeader/AlertHeader.js +5 -4
  120. package/lib/v1/alert/AlertHeader/props/defaultProps.js +19 -0
  121. package/lib/v1/alert/AlertHeader/props/propTypes.js +31 -0
  122. package/lib/v1/alert/AlertLookup/AlertLookup.js +6 -4
  123. package/lib/v1/alert/AlertLookup/props/defaultProps.js +20 -0
  124. package/lib/v1/alert/AlertLookup/props/propTypes.js +47 -0
  125. package/lib/v1/avatar/AvatarClose/AvatarClose.js +32 -77
  126. package/lib/v1/avatar/AvatarCollision/AvatarCollision.js +41 -86
  127. package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +37 -80
  128. package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +52 -97
  129. package/lib/v1/avatar/AvatarThread/AvatarThread.js +61 -106
  130. package/lib/v1/avatar/AvatarUser/AvatarUser.js +95 -140
  131. package/lib/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +85 -130
  132. package/lib/v1/form/fields/CheckBoxField/CheckBoxField.js +6 -6
  133. package/lib/v1/form/fields/CurrencyField/CurrencyField.js +6 -6
  134. package/lib/v1/form/fields/DateField/DateField.js +6 -6
  135. package/lib/v1/form/fields/FieldContainer/FieldContainer.js +6 -6
  136. package/lib/v1/form/fields/MultiSelectField/MultiSelectField.js +6 -6
  137. package/lib/v1/form/fields/PhoneField/PhoneField.js +6 -6
  138. package/lib/v1/form/fields/RadioField/RadioField.js +91 -137
  139. package/lib/v1/form/fields/SelectField/SelectField.js +149 -200
  140. package/lib/v1/layout/SetupDetailLayout/SetupDetailLayout.js +160 -253
  141. package/lib/v1/layout/SubtabLayout/SubtabLayout.js +107 -206
  142. package/lib/v1/list/SecondaryText/AccountName.js +63 -113
  143. package/lib/v1/list/SecondaryText/ContactName.js +67 -117
  144. package/lib/v1/list/SecondaryText/DepartmentText.js +16 -66
  145. package/lib/v1/list/SecondaryText/Email.js +32 -82
  146. package/lib/v1/list/SecondaryText/HappinessRating.js +21 -68
  147. package/lib/v1/list/SecondaryText/PhoneNumber.js +36 -86
  148. package/lib/v1/list/SecondaryText/PriorityText.js +16 -66
  149. package/lib/v1/list/SecondaryText/SecondaryText.js +19 -69
  150. package/lib/v1/list/SecondaryText/StatusText.js +17 -67
  151. package/lib/v1/list/SecondaryText/TicketId.js +33 -83
  152. package/lib/v1/list/SecondaryText/Website.js +29 -72
  153. package/lib/v1/list/SecondryPanel/SecondryPanel.js +69 -168
  154. package/lib/v1/list/SentimentStatus/SentimentStatus.js +19 -64
  155. package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
  156. package/lib/v1/list/status/StatusListItem/StatusListItem.js +81 -137
  157. package/lib/v1/lookup/EmptyPage/EmptyPage.js +43 -93
  158. package/lib/v1/lookup/Section/Section.js +14 -58
  159. package/lib/v1/svg/PlusIcon.js +20 -65
  160. package/lib/v1/svg/SnippetIcon.js +22 -67
  161. package/lib/v1/svg/TemplateIcon.js +23 -68
  162. package/package.json +12 -12
  163. package/result.json +1 -1
  164. package/unittest/index.html +1 -1
@@ -0,0 +1,316 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`IconButton Checking the "Children" 1`] = `
4
+ <DocumentFragment>
5
+ <button
6
+ aria-pressed="false"
7
+ class="buttonReset wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
8
+ data-id="iconContainer"
9
+ data-ishtml="false"
10
+ data-selector-id="iconButton"
11
+ data-test-id="iconContainer"
12
+ >
13
+ <span>
14
+ Element 1
15
+ </span>
16
+ <span>
17
+ Element 2
18
+ </span>
19
+ <span>
20
+ Element 3
21
+ </span>
22
+ </button>
23
+ </DocumentFragment>
24
+ `;
25
+
26
+ exports[`IconButton eleRef prop is a function 1`] = `
27
+ <DocumentFragment>
28
+ <button
29
+ aria-pressed="false"
30
+ class="buttonReset wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
31
+ data-id="iconContainer"
32
+ data-ishtml="false"
33
+ data-selector-id="iconButton"
34
+ data-test-id="iconContainer"
35
+ />
36
+ </DocumentFragment>
37
+ `;
38
+
39
+ exports[`IconButton rendering ally 1`] = `
40
+ <DocumentFragment>
41
+ <button
42
+ aria-controls="ariaControls"
43
+ aria-expanded="true"
44
+ aria-haspopup="true"
45
+ aria-label="ariaLabel"
46
+ aria-labelledby="ariaLabelledby"
47
+ aria-pressed="false"
48
+ class="buttonReset wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
49
+ data-id="iconContainer"
50
+ data-ishtml="false"
51
+ data-selector-id="iconButton"
52
+ data-test-id="iconContainer"
53
+ />
54
+ </DocumentFragment>
55
+ `;
56
+
57
+ exports[`IconButton rendering ally 2`] = `
58
+ <DocumentFragment>
59
+ <button
60
+ aria-expanded="false"
61
+ aria-haspopup="false"
62
+ aria-pressed="false"
63
+ class="buttonReset wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
64
+ data-id="iconContainer"
65
+ data-ishtml="false"
66
+ data-selector-id="iconButton"
67
+ data-test-id="iconContainer"
68
+ />
69
+ </DocumentFragment>
70
+ `;
71
+
72
+ exports[`IconButton rendering in ClassName 1`] = `
73
+ <DocumentFragment>
74
+ <button
75
+ aria-pressed="false"
76
+ class="buttonReset wrapper IconButtonClass undefined effect default border defaultHover hoverEffect inflex coldir both"
77
+ data-id="iconContainer"
78
+ data-ishtml="false"
79
+ data-selector-id="iconButton"
80
+ data-test-id="iconContainer"
81
+ />
82
+ </DocumentFragment>
83
+ `;
84
+
85
+ exports[`IconButton rendering in Icon 1`] = `
86
+ <DocumentFragment>
87
+ <button
88
+ aria-pressed="false"
89
+ class="buttonReset wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
90
+ data-id="iconContainer"
91
+ data-ishtml="false"
92
+ data-selector-id="iconButton"
93
+ data-test-id="iconContainer"
94
+ >
95
+ <i
96
+ aria-hidden="true"
97
+ class="zd_font_icons basic icon-infoStroke fbold iconClass "
98
+ data-id="fontIcon"
99
+ data-selector-id="fontIcon"
100
+ data-test-id="fontIcon"
101
+ style="--zd-iconfont-size: var(--zd_font_size13);"
102
+ />
103
+ </button>
104
+ </DocumentFragment>
105
+ `;
106
+
107
+ exports[`IconButton rendering in dataIsHtml is True 1`] = `
108
+ <DocumentFragment>
109
+ <button
110
+ aria-pressed="false"
111
+ class="buttonReset wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
112
+ data-id="iconContainer"
113
+ data-ishtml="true"
114
+ data-selector-id="iconButton"
115
+ data-test-id="iconContainer"
116
+ />
117
+ </DocumentFragment>
118
+ `;
119
+
120
+ exports[`IconButton rendering in isDisabled is True 1`] = `
121
+ <DocumentFragment>
122
+ <button
123
+ aria-pressed="false"
124
+ class="buttonReset wrapper undefined effect default border defaultHover disabled inflex coldir both"
125
+ data-id="iconContainer"
126
+ data-ishtml="false"
127
+ data-selector-id="iconButton"
128
+ data-test-id="iconContainer"
129
+ disabled=""
130
+ />
131
+ </DocumentFragment>
132
+ `;
133
+
134
+ exports[`IconButton rendering in title 1`] = `
135
+ <DocumentFragment>
136
+ <button
137
+ aria-pressed="false"
138
+ class="buttonReset wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
139
+ data-id="iconContainer"
140
+ data-ishtml="false"
141
+ data-selector-id="iconButton"
142
+ data-test-id="iconContainer"
143
+ data-title="IconTitle"
144
+ />
145
+ </DocumentFragment>
146
+ `;
147
+
148
+ exports[`IconButton rendering isNeedEffect is False 1`] = `
149
+ <DocumentFragment>
150
+ <button
151
+ aria-pressed="false"
152
+ class="buttonReset wrapper undefined inflex coldir both"
153
+ data-id="iconContainer"
154
+ data-ishtml="false"
155
+ data-selector-id="iconButton"
156
+ data-test-id="iconContainer"
157
+ />
158
+ </DocumentFragment>
159
+ `;
160
+
161
+ exports[`IconButton rendering needButtonTag 1`] = `
162
+ <DocumentFragment>
163
+ <div
164
+ aria-pressed="false"
165
+ class="false wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
166
+ data-id="iconContainer"
167
+ data-ishtml="false"
168
+ data-selector-id="iconButton"
169
+ data-test-id="iconContainer"
170
+ />
171
+ </DocumentFragment>
172
+ `;
173
+
174
+ exports[`IconButton rendering the defult props 1`] = `
175
+ <DocumentFragment>
176
+ <button
177
+ aria-pressed="false"
178
+ class="buttonReset wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
179
+ data-id="iconContainer"
180
+ data-ishtml="false"
181
+ data-selector-id="iconButton"
182
+ data-test-id="iconContainer"
183
+ />
184
+ </DocumentFragment>
185
+ `;
186
+
187
+ exports[`IconButton rendering the hovertypes- bg 1`] = `
188
+ <DocumentFragment>
189
+ <button
190
+ aria-pressed="false"
191
+ class="buttonReset wrapper undefined effect default border bgHover hoverEffect inflex coldir both"
192
+ data-id="iconContainer"
193
+ data-ishtml="false"
194
+ data-selector-id="iconButton"
195
+ data-test-id="iconContainer"
196
+ />
197
+ </DocumentFragment>
198
+ `;
199
+
200
+ exports[`IconButton rendering the hovertypes- border 1`] = `
201
+ <DocumentFragment>
202
+ <button
203
+ aria-pressed="false"
204
+ class="buttonReset wrapper undefined effect default border borderHover hoverEffect inflex coldir both"
205
+ data-id="iconContainer"
206
+ data-ishtml="false"
207
+ data-selector-id="iconButton"
208
+ data-test-id="iconContainer"
209
+ />
210
+ </DocumentFragment>
211
+ `;
212
+
213
+ exports[`IconButton rendering the hovertypes- default 1`] = `
214
+ <DocumentFragment>
215
+ <button
216
+ aria-pressed="false"
217
+ class="buttonReset wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
218
+ data-id="iconContainer"
219
+ data-ishtml="false"
220
+ data-selector-id="iconButton"
221
+ data-test-id="iconContainer"
222
+ />
223
+ </DocumentFragment>
224
+ `;
225
+
226
+ exports[`IconButton rendering the isActive true with palette of- default 1`] = `
227
+ <DocumentFragment>
228
+ <button
229
+ aria-pressed="false"
230
+ class="buttonReset wrapper undefined effect default border defaultHover active hoverEffect inflex coldir both"
231
+ data-id="iconContainer"
232
+ data-ishtml="false"
233
+ data-selector-id="iconButton"
234
+ data-test-id="iconContainer"
235
+ />
236
+ </DocumentFragment>
237
+ `;
238
+
239
+ exports[`IconButton rendering the isActive true with palette of- primary 1`] = `
240
+ <DocumentFragment>
241
+ <button
242
+ aria-pressed="false"
243
+ class="buttonReset wrapper primary_active effect primary border defaultHover active hoverEffect inflex coldir both"
244
+ data-id="iconContainer"
245
+ data-ishtml="false"
246
+ data-selector-id="iconButton"
247
+ data-test-id="iconContainer"
248
+ />
249
+ </DocumentFragment>
250
+ `;
251
+
252
+ exports[`IconButton rendering the isActive true with palette of- primaryFilled 1`] = `
253
+ <DocumentFragment>
254
+ <button
255
+ aria-pressed="false"
256
+ class="buttonReset wrapper primaryFilled_active effect primaryFilled border defaultHover active hoverEffect inflex coldir both"
257
+ data-id="iconContainer"
258
+ data-ishtml="false"
259
+ data-selector-id="iconButton"
260
+ data-test-id="iconContainer"
261
+ />
262
+ </DocumentFragment>
263
+ `;
264
+
265
+ exports[`IconButton rendering the palette of- default 1`] = `
266
+ <DocumentFragment>
267
+ <button
268
+ aria-pressed="false"
269
+ class="buttonReset wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
270
+ data-id="iconContainer"
271
+ data-ishtml="false"
272
+ data-selector-id="iconButton"
273
+ data-test-id="iconContainer"
274
+ />
275
+ </DocumentFragment>
276
+ `;
277
+
278
+ exports[`IconButton rendering the palette of- primary 1`] = `
279
+ <DocumentFragment>
280
+ <button
281
+ aria-pressed="false"
282
+ class="buttonReset wrapper primary effect primary border defaultHover hoverEffect inflex coldir both"
283
+ data-id="iconContainer"
284
+ data-ishtml="false"
285
+ data-selector-id="iconButton"
286
+ data-test-id="iconContainer"
287
+ />
288
+ </DocumentFragment>
289
+ `;
290
+
291
+ exports[`IconButton rendering the palette of- primaryFilled 1`] = `
292
+ <DocumentFragment>
293
+ <button
294
+ aria-pressed="false"
295
+ class="buttonReset wrapper primaryFilled effect primaryFilled border defaultHover hoverEffect inflex coldir both"
296
+ data-id="iconContainer"
297
+ data-ishtml="false"
298
+ data-selector-id="iconButton"
299
+ data-test-id="iconContainer"
300
+ />
301
+ </DocumentFragment>
302
+ `;
303
+
304
+ exports[`IconButton rendering tourId 1`] = `
305
+ <DocumentFragment>
306
+ <button
307
+ aria-pressed="false"
308
+ class="buttonReset wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
309
+ data-id="iconContainer"
310
+ data-ishtml="false"
311
+ data-selector-id="iconButton"
312
+ data-test-id="iconContainer"
313
+ data-tour="tourId"
314
+ />
315
+ </DocumentFragment>
316
+ `;
@@ -15,7 +15,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
15
15
 
16
16
  var propTypes = (_propTypes = {
17
17
  children: _propTypes2["default"].node,
18
- alignContainer: _propTypes2["default"].oneOf('vertical', 'baseline'),
18
+ alignContainer: _propTypes2["default"].oneOf(['vertical', 'baseline']),
19
19
  renderProps: _propTypes2["default"].shape({
20
20
  start: _propTypes2["default"].func,
21
21
  middle: _propTypes2["default"].func,
@@ -149,8 +149,8 @@ function ActionButton(props) {
149
149
  ActionButton.defaultProps = _defaultProps.defaultProps;
150
150
  ActionButton.propTypes = _propTypes.propTypes;
151
151
  var ActionButtonComponent = (0, _Popup["default"])(ActionButton);
152
- ActionButtonComponent.defaultProps = ActionButton.defaultProps;
153
- ActionButtonComponent.propTypes = ActionButton.propTypes; // ActionButton.docs = {
152
+ ActionButtonComponent.defaultProps = _defaultProps.defaultProps;
153
+ ActionButtonComponent.propTypes = _propTypes.propTypes; // ActionButton.docs = {
154
154
  // componentGroup: 'Atom'
155
155
  // };
156
156
 
@@ -80,6 +80,12 @@ function AlphabeticList(props) {
80
80
 
81
81
  AlphabeticList.propTypes = _propTypes.AlphabeticList_propTypes;
82
82
  AlphabeticList.defaultProps = _defaultProps.AlphabeticList_defaultProps;
83
+ var MemoizedAlphabeticList = /*#__PURE__*/(0, _react.memo)(AlphabeticList);
84
+ MemoizedAlphabeticList.propTypes = _propTypes.AlphabeticList_propTypes;
85
+ MemoizedAlphabeticList.defaultProps = _defaultProps.AlphabeticList_defaultProps;
86
+ MemoizedAlphabeticList.displayName = 'AlphabeticList';
87
+ var _default = MemoizedAlphabeticList;
88
+ exports["default"] = _default;
83
89
 
84
90
  function AlphabeticListItem(props) {
85
91
  var isActive = props.isActive,
@@ -104,6 +110,4 @@ function AlphabeticListItem(props) {
104
110
  }
105
111
 
106
112
  AlphabeticListItem.propTypes = _propTypes.AlphabeticListItem_propTypes;
107
- AlphabeticListItem.defaultProps = _defaultProps.AlphabeticListItem_defaultProps;
108
- var _default = AlphabeticList;
109
- exports["default"] = _default;
113
+ AlphabeticListItem.defaultProps = _defaultProps.AlphabeticListItem_defaultProps;
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
@@ -23,118 +21,85 @@ var _AttachmentModule = _interopRequireDefault(require("../../Attachment/Attachm
23
21
 
24
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
23
 
26
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
27
-
28
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
29
-
30
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
31
-
32
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
33
-
34
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
35
-
36
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
37
-
38
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
39
-
40
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
41
-
42
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
24
+ /**** Libraries ****/
25
+
26
+ /**** CSS ****/
27
+ var Attachment = function Attachment(props) {
28
+ var onClick = props.onClick,
29
+ dataId = props.dataId,
30
+ size = props.size,
31
+ iconName = props.iconName,
32
+ fileName = props.fileName,
33
+ fileSize = props.fileSize,
34
+ downloadLink = props.downloadLink,
35
+ palette = props.palette,
36
+ tooltip = props.tooltip,
37
+ fileInfo = props.fileInfo,
38
+ i18nKeys = props.i18nKeys,
39
+ dataSelectorId = props.dataSelectorId;
40
+ var _i18nKeys$downloadTit = i18nKeys.downloadTitle,
41
+ downloadTitle = _i18nKeys$downloadTit === void 0 ? 'Download' : _i18nKeys$downloadTit;
42
+ return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
43
+ isInline: true,
44
+ className: "".concat(_AttachmentModule["default"].attachment, " ").concat(onClick ? _AttachmentModule["default"].attachmentHover : '', " ").concat(_AttachmentModule["default"]["palette_".concat(palette)], " ").concat(_AttachmentModule["default"][size]),
45
+ onClick: onClick,
46
+ dataId: dataId,
47
+ "data-title": tooltip,
48
+ alignBox: "row",
49
+ isCover: false,
50
+ dataSelectorId: dataSelectorId,
51
+ tabIndex: "0"
52
+ }, iconName ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
53
+ className: _AttachmentModule["default"].attachleft
54
+ }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
55
+ align: "both"
56
+ }, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
57
+ name: iconName,
58
+ iconClass: _AttachmentModule["default"].attachIcon
59
+ }))) : null, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
60
+ flexible: true,
61
+ className: _AttachmentModule["default"].attachright
62
+ }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
63
+ align: "horizontal"
64
+ }, fileName ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
65
+ className: _AttachmentModule["default"].atatchName,
66
+ "data-title": fileName
67
+ }, fileName) : null, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
68
+ className: _AttachmentModule["default"].footer
69
+ }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
70
+ alignBox: "row",
71
+ align: "baseline",
72
+ isCover: false
73
+ }, fileSize ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
74
+ className: _AttachmentModule["default"].attachSize,
75
+ adjust: true,
76
+ shrink: true,
77
+ "data-title": fileSize
78
+ }, fileSize) : null, fileInfo ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
79
+ className: _AttachmentModule["default"].dot
80
+ }), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
81
+ className: _AttachmentModule["default"].attachSize,
82
+ adjust: true,
83
+ shrink: true,
84
+ "data-title": fileInfo
85
+ }, fileInfo)) : null)))), downloadLink ? /*#__PURE__*/_react["default"].createElement(_Link["default"], {
86
+ target: "_self",
87
+ href: downloadLink,
88
+ className: _AttachmentModule["default"].attachDownload,
89
+ title: downloadTitle,
90
+ hasReload: true
91
+ }, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
92
+ name: "ZD-downloadNew",
93
+ iconClass: _AttachmentModule["default"].downIcon
94
+ })) : null);
95
+ };
43
96
 
44
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
45
-
46
- var Attachment = /*#__PURE__*/function (_React$Component) {
47
- _inherits(Attachment, _React$Component);
48
-
49
- var _super = _createSuper(Attachment);
50
-
51
- function Attachment() {
52
- _classCallCheck(this, Attachment);
53
-
54
- return _super.apply(this, arguments);
55
- }
56
-
57
- _createClass(Attachment, [{
58
- key: "render",
59
- value: function render() {
60
- var _this$props = this.props,
61
- onClick = _this$props.onClick,
62
- dataId = _this$props.dataId,
63
- size = _this$props.size,
64
- iconName = _this$props.iconName,
65
- fileName = _this$props.fileName,
66
- fileSize = _this$props.fileSize,
67
- downloadLink = _this$props.downloadLink,
68
- palette = _this$props.palette,
69
- tooltip = _this$props.tooltip,
70
- fileInfo = _this$props.fileInfo,
71
- i18nKeys = _this$props.i18nKeys,
72
- dataSelectorId = _this$props.dataSelectorId;
73
- var _i18nKeys$downloadTit = i18nKeys.downloadTitle,
74
- downloadTitle = _i18nKeys$downloadTit === void 0 ? 'Download' : _i18nKeys$downloadTit;
75
- return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
76
- isInline: true,
77
- className: "".concat(_AttachmentModule["default"].attachment, " ").concat(onClick ? _AttachmentModule["default"].attachmentHover : '', " ").concat(_AttachmentModule["default"]["palette_".concat(palette)], " ").concat(_AttachmentModule["default"][size]),
78
- onClick: onClick,
79
- dataId: dataId,
80
- "data-title": tooltip,
81
- alignBox: "row",
82
- isCover: false,
83
- dataSelectorId: dataSelectorId,
84
- tabIndex: "0"
85
- }, iconName ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
86
- className: _AttachmentModule["default"].attachleft
87
- }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
88
- align: "both"
89
- }, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
90
- name: iconName,
91
- iconClass: _AttachmentModule["default"].attachIcon
92
- }))) : null, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
93
- flexible: true,
94
- className: _AttachmentModule["default"].attachright
95
- }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
96
- align: "horizontal"
97
- }, fileName ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
98
- className: _AttachmentModule["default"].atatchName,
99
- "data-title": fileName
100
- }, fileName) : null, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
101
- className: _AttachmentModule["default"].footer
102
- }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
103
- alignBox: "row",
104
- align: "baseline",
105
- isCover: false
106
- }, fileSize ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
107
- className: _AttachmentModule["default"].attachSize,
108
- adjust: true,
109
- shrink: true,
110
- "data-title": fileSize
111
- }, fileSize) : null, fileInfo ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
112
- className: _AttachmentModule["default"].dot
113
- }), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
114
- className: _AttachmentModule["default"].attachSize,
115
- adjust: true,
116
- shrink: true,
117
- "data-title": fileInfo
118
- }, fileInfo)) : null)))), downloadLink ? /*#__PURE__*/_react["default"].createElement(_Link["default"], {
119
- target: "_self",
120
- href: downloadLink,
121
- className: _AttachmentModule["default"].attachDownload,
122
- title: downloadTitle,
123
- hasReload: true
124
- }, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
125
- name: "ZD-downloadNew",
126
- iconClass: _AttachmentModule["default"].downIcon
127
- })) : null);
128
- }
129
- }]);
130
-
131
- return Attachment;
132
- }(_react["default"].Component);
133
-
134
- exports["default"] = Attachment;
135
97
  Attachment.propTypes = _propTypes.propTypes;
136
- Attachment.defaultProps = _defaultProps.defaultProps; // if (__DOCS__) {
98
+ Attachment.defaultProps = _defaultProps.defaultProps;
99
+ var _default = Attachment; // if (__DOCS__) {
137
100
  // Attachment.docs = {
138
101
  // componentGroup: 'Attachment'
139
102
  // };
140
- // }
103
+ // }
104
+
105
+ exports["default"] = _default;