@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.
- package/.cli/PropLessFiles.html +1 -1
- package/.cli/PropValidationExcludeFilesArray.js +1 -1
- package/.cli/propValidation_report.html +1 -1
- package/README.md +21 -12
- package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +163 -553
- package/assets/Appearance/dark/themes/blue/blue_DotTheme_DarkTheme.module.css +3 -12
- package/assets/Appearance/dark/themes/green/green_DotTheme_DarkTheme.module.css +3 -12
- package/assets/Appearance/dark/themes/orange/orange_DotTheme_DarkTheme.module.css +3 -12
- package/assets/Appearance/dark/themes/red/red_DotTheme_DarkTheme.module.css +3 -12
- package/assets/Appearance/dark/themes/yellow/yellow_DotTheme_DarkTheme.module.css +3 -12
- package/assets/Appearance/light/mode/Dot_LightMode.module.css +163 -553
- package/assets/Appearance/light/themes/blue/blue_DotTheme_LightTheme.module.css +3 -12
- package/assets/Appearance/light/themes/green/green_DotTheme_LightTheme.module.css +3 -12
- package/assets/Appearance/light/themes/orange/orange_DotTheme_LightTheme.module.css +3 -12
- package/assets/Appearance/light/themes/red/red_DotTheme_LightTheme.module.css +3 -12
- package/assets/Appearance/light/themes/yellow/yellow_DotTheme_LightTheme.module.css +3 -12
- package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +163 -553
- package/assets/Appearance/pureDark/themes/blue/blue_DotTheme_PureDarkTheme.module.css +3 -12
- package/assets/Appearance/pureDark/themes/green/green_DotTheme_PureDarkTheme.module.css +3 -12
- package/assets/Appearance/pureDark/themes/orange/orange_DotTheme_PureDarkTheme.module.css +3 -12
- package/assets/Appearance/pureDark/themes/red/red_DotTheme_PureDarkTheme.module.css +3 -12
- package/assets/Appearance/pureDark/themes/yellow/yellow_DotTheme_PureDarkTheme.module.css +3 -12
- package/coverage/ExternalLink/ExternalLink.js.html +1 -1
- package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
- package/coverage/ExternalLink/index.html +1 -1
- package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
- package/coverage/ExternalLink/props/index.html +1 -1
- package/coverage/ExternalLink/props/propTypes.js.html +1 -1
- package/coverage/IconButton/IconButton.js.html +466 -0
- package/coverage/IconButton/IconButton.module.css.html +151 -0
- package/coverage/IconButton/index.html +131 -0
- package/coverage/IconButton/props/defaultProps.js.html +136 -0
- package/coverage/IconButton/props/index.html +131 -0
- package/coverage/IconButton/props/propTypes.js.html +187 -0
- package/coverage/Image/Image.js.html +1 -1
- package/coverage/Image/Image.module.css.html +1 -1
- package/coverage/Image/index.html +1 -1
- package/coverage/Image/props/defaultProps.js.html +1 -1
- package/coverage/Image/props/index.html +1 -1
- package/coverage/Image/props/propTypes.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
- package/coverage/avatar/AvatarWithTeam/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
- package/coverage/coverage-final.json +4 -0
- package/coverage/coverage-summary.json +5 -1
- package/coverage/index.html +40 -10
- package/es/IconButton/__tests__/IconButton.spec.js +148 -0
- package/es/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +316 -0
- package/es/form/fields/FieldContainer/props/propTypes.js +1 -1
- package/es/v1/ActionButton/ActionButton.js +2 -2
- package/es/v1/AlphabeticList/AlphabeticList.js +6 -2
- package/es/v1/Attachment/Attachment.js +78 -75
- package/es/v1/AttachmentViewer/AttachmentImage.js +44 -63
- package/es/v1/Image/Image.js +26 -33
- package/es/v1/Loader/Loader.js +12 -18
- package/es/v1/Message/Message.js +16 -42
- package/es/v1/PlusIcon/PlusIcon.js +25 -37
- package/es/v1/Separator/Separator.js +40 -47
- package/es/v1/Upload/Upload.js +59 -66
- package/es/v1/alert/AlertHeader/AlertHeader.js +5 -4
- package/es/v1/alert/AlertHeader/props/defaultProps.js +12 -0
- package/es/v1/alert/AlertHeader/props/propTypes.js +20 -0
- package/es/v1/alert/AlertLookup/AlertLookup.js +6 -4
- package/es/v1/alert/AlertLookup/props/defaultProps.js +13 -0
- package/es/v1/alert/AlertLookup/props/propTypes.js +36 -0
- package/es/v1/avatar/AvatarClose/AvatarClose.js +32 -43
- package/es/v1/avatar/AvatarCollision/AvatarCollision.js +41 -52
- package/es/v1/avatar/AvatarIcon/AvatarIcon.js +38 -43
- package/es/v1/avatar/AvatarStatus/AvatarStatus.js +52 -63
- package/es/v1/avatar/AvatarThread/AvatarThread.js +62 -69
- package/es/v1/avatar/AvatarUser/AvatarUser.js +93 -100
- package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +81 -88
- package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +6 -6
- package/es/v1/form/fields/CurrencyField/CurrencyField.js +6 -6
- package/es/v1/form/fields/DateField/DateField.js +6 -6
- package/es/v1/form/fields/FieldContainer/FieldContainer.js +6 -6
- package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +6 -6
- package/es/v1/form/fields/PhoneField/PhoneField.js +6 -6
- package/es/v1/form/fields/RadioField/RadioField.js +89 -97
- package/es/v1/form/fields/SelectField/SelectField.js +139 -154
- package/es/v1/layout/SetupDetailLayout/SetupDetailLayout.js +154 -197
- package/es/v1/layout/SubtabLayout/SubtabLayout.js +108 -124
- package/es/v1/list/SecondaryText/AccountName.js +61 -69
- package/es/v1/list/SecondaryText/ContactName.js +66 -74
- package/es/v1/list/SecondaryText/DepartmentText.js +15 -27
- package/es/v1/list/SecondaryText/Email.js +32 -40
- package/es/v1/list/SecondaryText/HappinessRating.js +17 -25
- package/es/v1/list/SecondaryText/PhoneNumber.js +36 -44
- package/es/v1/list/SecondaryText/PriorityText.js +16 -28
- package/es/v1/list/SecondaryText/SecondaryText.js +21 -33
- package/es/v1/list/SecondaryText/StatusText.js +17 -29
- package/es/v1/list/SecondaryText/TicketId.js +33 -45
- package/es/v1/list/SecondaryText/Website.js +22 -30
- package/es/v1/list/SecondryPanel/SecondryPanel.js +66 -83
- package/es/v1/list/SentimentStatus/SentimentStatus.js +18 -29
- package/es/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
- package/es/v1/list/status/StatusListItem/StatusListItem.js +75 -100
- package/es/v1/lookup/EmptyPage/EmptyPage.js +15 -26
- package/es/v1/lookup/Section/Section.js +14 -20
- package/es/v1/svg/PlusIcon.js +20 -27
- package/es/v1/svg/SnippetIcon.js +22 -29
- package/es/v1/svg/TemplateIcon.js +23 -30
- package/lib/IconButton/__tests__/IconButton.spec.js +156 -0
- package/lib/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +316 -0
- package/lib/form/fields/FieldContainer/props/propTypes.js +1 -1
- package/lib/v1/ActionButton/ActionButton.js +2 -2
- package/lib/v1/AlphabeticList/AlphabeticList.js +7 -3
- package/lib/v1/Attachment/Attachment.js +77 -112
- package/lib/v1/AttachmentViewer/AttachmentImage.js +61 -96
- package/lib/v1/Image/Image.js +26 -71
- package/lib/v1/Loader/Loader.js +12 -55
- package/lib/v1/Message/Message.js +23 -80
- package/lib/v1/PlusIcon/PlusIcon.js +25 -71
- package/lib/v1/Separator/Separator.js +44 -85
- package/lib/v1/Upload/Upload.js +58 -103
- package/lib/v1/alert/AlertHeader/AlertHeader.js +5 -4
- package/lib/v1/alert/AlertHeader/props/defaultProps.js +19 -0
- package/lib/v1/alert/AlertHeader/props/propTypes.js +31 -0
- package/lib/v1/alert/AlertLookup/AlertLookup.js +6 -4
- package/lib/v1/alert/AlertLookup/props/defaultProps.js +20 -0
- package/lib/v1/alert/AlertLookup/props/propTypes.js +47 -0
- package/lib/v1/avatar/AvatarClose/AvatarClose.js +32 -77
- package/lib/v1/avatar/AvatarCollision/AvatarCollision.js +41 -86
- package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +37 -80
- package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +52 -97
- package/lib/v1/avatar/AvatarThread/AvatarThread.js +61 -106
- package/lib/v1/avatar/AvatarUser/AvatarUser.js +95 -140
- package/lib/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +85 -130
- package/lib/v1/form/fields/CheckBoxField/CheckBoxField.js +6 -6
- package/lib/v1/form/fields/CurrencyField/CurrencyField.js +6 -6
- package/lib/v1/form/fields/DateField/DateField.js +6 -6
- package/lib/v1/form/fields/FieldContainer/FieldContainer.js +6 -6
- package/lib/v1/form/fields/MultiSelectField/MultiSelectField.js +6 -6
- package/lib/v1/form/fields/PhoneField/PhoneField.js +6 -6
- package/lib/v1/form/fields/RadioField/RadioField.js +91 -137
- package/lib/v1/form/fields/SelectField/SelectField.js +149 -200
- package/lib/v1/layout/SetupDetailLayout/SetupDetailLayout.js +160 -253
- package/lib/v1/layout/SubtabLayout/SubtabLayout.js +107 -206
- package/lib/v1/list/SecondaryText/AccountName.js +63 -113
- package/lib/v1/list/SecondaryText/ContactName.js +67 -117
- package/lib/v1/list/SecondaryText/DepartmentText.js +16 -66
- package/lib/v1/list/SecondaryText/Email.js +32 -82
- package/lib/v1/list/SecondaryText/HappinessRating.js +21 -68
- package/lib/v1/list/SecondaryText/PhoneNumber.js +36 -86
- package/lib/v1/list/SecondaryText/PriorityText.js +16 -66
- package/lib/v1/list/SecondaryText/SecondaryText.js +19 -69
- package/lib/v1/list/SecondaryText/StatusText.js +17 -67
- package/lib/v1/list/SecondaryText/TicketId.js +33 -83
- package/lib/v1/list/SecondaryText/Website.js +29 -72
- package/lib/v1/list/SecondryPanel/SecondryPanel.js +69 -168
- package/lib/v1/list/SentimentStatus/SentimentStatus.js +19 -64
- package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
- package/lib/v1/list/status/StatusListItem/StatusListItem.js +81 -137
- package/lib/v1/lookup/EmptyPage/EmptyPage.js +43 -93
- package/lib/v1/lookup/Section/Section.js +14 -58
- package/lib/v1/svg/PlusIcon.js +20 -65
- package/lib/v1/svg/SnippetIcon.js +22 -67
- package/lib/v1/svg/TemplateIcon.js +23 -68
- package/package.json +12 -12
- package/result.json +1 -1
- 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 =
|
|
153
|
-
ActionButtonComponent.propTypes =
|
|
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
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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;
|
|
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;
|