@zohodesk/dot 1.0.0-temp-187.10 → 1.0.0-temp-208.1
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/propValidation_report.html +1 -1
- package/README.md +9 -0
- package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +29 -0
- package/assets/Appearance/dark/themes/blue/blue_DotTheme_DarkTheme.module.css +7 -0
- package/assets/Appearance/dark/themes/green/green_DotTheme_DarkTheme.module.css +7 -0
- package/assets/Appearance/dark/themes/orange/orange_DotTheme_DarkTheme.module.css +7 -0
- package/assets/Appearance/dark/themes/red/red_DotTheme_DarkTheme.module.css +7 -0
- package/assets/Appearance/dark/themes/yellow/yellow_DotTheme_DarkTheme.module.css +7 -0
- package/assets/Appearance/light/mode/Dot_LightMode.module.css +29 -0
- package/assets/Appearance/light/themes/blue/blue_DotTheme_LightTheme.module.css +7 -0
- package/assets/Appearance/light/themes/green/green_DotTheme_LightTheme.module.css +7 -0
- package/assets/Appearance/light/themes/orange/orange_DotTheme_LightTheme.module.css +7 -0
- package/assets/Appearance/light/themes/red/red_DotTheme_LightTheme.module.css +7 -0
- package/assets/Appearance/light/themes/yellow/yellow_DotTheme_LightTheme.module.css +7 -0
- package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +29 -0
- package/assets/Appearance/pureDark/themes/blue/blue_DotTheme_PureDarkTheme.module.css +7 -0
- package/assets/Appearance/pureDark/themes/green/green_DotTheme_PureDarkTheme.module.css +7 -0
- package/assets/Appearance/pureDark/themes/orange/orange_DotTheme_PureDarkTheme.module.css +7 -0
- package/assets/Appearance/pureDark/themes/red/red_DotTheme_PureDarkTheme.module.css +7 -0
- package/assets/Appearance/pureDark/themes/yellow/yellow_DotTheme_PureDarkTheme.module.css +7 -0
- package/es/AttachmentViewer/__tests__/__snapshots__/AttachmentViewer.spec.js.snap +3 -3
- package/es/DotProvider/libraryChunks/appearance/component/Dark_Component.js +2 -0
- package/es/DotProvider/libraryChunks/appearance/component/Light_Component.js +2 -0
- package/es/DotProvider/libraryChunks/appearance/component/PureDark_Component.js +2 -0
- package/es/DotProvider/utils/themeAppearanceAssetsConfig.js +3 -3
- package/es/IconButton/IconButton.js +2 -1
- package/es/IconButton/IconButton.module.css +30 -3
- package/es/IconButton/__tests__/IconButton.spec.js +9 -0
- package/es/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +87 -22
- package/es/IconButton/props/defaultProps.js +1 -0
- package/es/IconButton/props/propTypes.js +1 -0
- package/es/Onboarding/CarouselDots/CarouselDot/CarouselDot.js +34 -0
- package/es/Onboarding/CarouselDots/CarouselDot/__tests__/CarouselDot.spec.js +43 -0
- package/es/Onboarding/CarouselDots/CarouselDot/__tests__/__snapshots__/CarouselDot.spec.js.snap +51 -0
- package/es/Onboarding/CarouselDots/CarouselDot/css/CarouselDot.module.css +83 -0
- package/es/Onboarding/CarouselDots/CarouselDot/props/defaultProps.js +6 -0
- package/es/Onboarding/CarouselDots/CarouselDot/props/propTypes.js +9 -0
- package/es/Onboarding/CarouselDots/CarouselDots.js +43 -0
- package/es/Onboarding/CarouselDots/__tests__/CarouselDots.spec.js +64 -0
- package/es/Onboarding/CarouselDots/__tests__/__snapshots__/CarouselDots.spec.js.snap +94 -0
- package/es/Onboarding/CarouselDots/css/CarouselDots.module.css +6 -0
- package/es/Onboarding/CarouselDots/props/defaultProps.js +7 -0
- package/es/Onboarding/CarouselDots/props/propTypes.js +13 -0
- package/es/Onboarding/Onboarding.js +303 -0
- package/es/Onboarding/__tests__/Onboarding.spec.js +428 -0
- package/es/Onboarding/__tests__/__snapshots__/Onboarding.spec.js.snap +3573 -0
- package/es/Onboarding/css/Onboarding.module.css +460 -0
- package/es/Onboarding/hooks/useOnboarding.js +34 -0
- package/es/Onboarding/hooks/useOnboardingSlider.js +55 -0
- package/es/Onboarding/props/defaultProps.js +13 -0
- package/es/Onboarding/props/propTypes.js +55 -0
- package/es/VideoLookup/VideoLookup.js +81 -0
- package/es/VideoLookup/__tests__/VideoLookup.spec.js +86 -0
- package/es/VideoLookup/__tests__/__snapshots__/VideoLookup.spec.js.snap +434 -0
- package/es/VideoLookup/css/VideoLookup.module.css +67 -0
- package/es/VideoLookup/props/defaultProps.js +8 -0
- package/es/VideoLookup/props/propTypes.js +12 -0
- package/es/alert/AlertHeader/__tests__/__snapshots__/AlertHeader.spec.js.snap +1 -1
- package/es/common/dot_boxShadow.module.css +6 -0
- package/es/form/fields/Fields.module.css +0 -4
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +2 -4
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +116 -116
- package/es/form/fields/TagsMultiSelect/props/propTypes.js +1 -2
- package/es/form/fields/TextEditorField/__tests__/__snapshots__/TextEditorField.spec.js.snap +1 -1
- package/es/form/fields/TextEditorWrapper/__tests__/__snapshots__/TextEditorWrapper.spec.js.snap +1 -1
- package/es/form/fields/TextareaField/__tests__/__snapshots__/TextareaField.spec.js.snap +1 -1
- package/es/index.js +1 -0
- package/es/list/DepartmentDropDown/DepartmentDropDown.js +2 -7
- package/es/list/DepartmentDropDown/props/defaultProps.js +1 -2
- package/es/list/DepartmentDropDown/props/propTypes.js +0 -3
- package/es/list/status/StatusListItem/StatusListItem.module.css +4 -2
- package/es/lookup/header/Close/__tests__/__snapshots__/Close.spec.js.snap +1 -1
- package/es/lookup/header/TicketHeader/__tests__/__snapshots__/TicketHeader.spec.js.snap +1 -1
- package/es/utils/General.js +2 -1
- package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +2 -4
- package/es/v1/form/fields/TagsMultiSelect/props/propTypes.js +1 -2
- package/es/v1/list/DepartmentDropDown/DepartmentDropDown.js +2 -7
- package/es/v1/list/DepartmentDropDown/props/defaultProps.js +1 -2
- package/es/v1/list/DepartmentDropDown/props/propTypes.js +0 -3
- package/lib/AttachmentViewer/__tests__/__snapshots__/AttachmentViewer.spec.js.snap +3 -3
- package/lib/DotProvider/libraryChunks/appearance/component/Dark_Component.js +5 -0
- package/lib/DotProvider/libraryChunks/appearance/component/Light_Component.js +5 -0
- package/lib/DotProvider/libraryChunks/appearance/component/PureDark_Component.js +5 -0
- package/lib/DotProvider/utils/themeAppearanceAssetsConfig.js +3 -3
- package/lib/IconButton/IconButton.js +2 -1
- package/lib/IconButton/IconButton.module.css +30 -3
- package/lib/IconButton/__tests__/IconButton.spec.js +35 -26
- package/lib/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +87 -22
- package/lib/IconButton/props/defaultProps.js +1 -0
- package/lib/IconButton/props/propTypes.js +1 -0
- package/lib/Onboarding/CarouselDots/CarouselDot/CarouselDot.js +44 -0
- package/lib/Onboarding/CarouselDots/CarouselDot/__tests__/CarouselDot.spec.js +50 -0
- package/lib/Onboarding/CarouselDots/CarouselDot/__tests__/__snapshots__/CarouselDot.spec.js.snap +51 -0
- package/lib/Onboarding/CarouselDots/CarouselDot/css/CarouselDot.module.css +83 -0
- package/lib/Onboarding/CarouselDots/CarouselDot/props/defaultProps.js +13 -0
- package/lib/Onboarding/CarouselDots/CarouselDot/props/propTypes.js +20 -0
- package/lib/Onboarding/CarouselDots/CarouselDots.js +66 -0
- package/lib/Onboarding/CarouselDots/__tests__/CarouselDots.spec.js +71 -0
- package/lib/Onboarding/CarouselDots/__tests__/__snapshots__/CarouselDots.spec.js.snap +94 -0
- package/lib/Onboarding/CarouselDots/css/CarouselDots.module.css +6 -0
- package/lib/Onboarding/CarouselDots/props/defaultProps.js +14 -0
- package/lib/Onboarding/CarouselDots/props/propTypes.js +24 -0
- package/lib/Onboarding/Onboarding.js +316 -0
- package/lib/Onboarding/__tests__/Onboarding.spec.js +435 -0
- package/lib/Onboarding/__tests__/__snapshots__/Onboarding.spec.js.snap +3573 -0
- package/lib/Onboarding/css/Onboarding.module.css +460 -0
- package/lib/Onboarding/hooks/useOnboarding.js +59 -0
- package/lib/Onboarding/hooks/useOnboardingSlider.js +85 -0
- package/lib/Onboarding/props/defaultProps.js +20 -0
- package/lib/Onboarding/props/propTypes.js +72 -0
- package/lib/VideoLookup/VideoLookup.js +104 -0
- package/lib/VideoLookup/__tests__/VideoLookup.spec.js +93 -0
- package/lib/VideoLookup/__tests__/__snapshots__/VideoLookup.spec.js.snap +434 -0
- package/lib/VideoLookup/css/VideoLookup.module.css +67 -0
- package/lib/VideoLookup/props/defaultProps.js +15 -0
- package/lib/VideoLookup/props/propTypes.js +23 -0
- package/lib/alert/AlertHeader/__tests__/__snapshots__/AlertHeader.spec.js.snap +1 -1
- package/lib/common/dot_boxShadow.module.css +6 -0
- package/lib/form/fields/Fields.module.css +0 -4
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +3 -5
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +116 -116
- package/lib/form/fields/TagsMultiSelect/props/propTypes.js +1 -2
- package/lib/form/fields/TextEditorField/__tests__/__snapshots__/TextEditorField.spec.js.snap +1 -1
- package/lib/form/fields/TextEditorWrapper/__tests__/__snapshots__/TextEditorWrapper.spec.js.snap +1 -1
- package/lib/form/fields/TextareaField/__tests__/__snapshots__/TextareaField.spec.js.snap +1 -1
- package/lib/index.js +9 -0
- package/lib/list/DepartmentDropDown/DepartmentDropDown.js +3 -8
- package/lib/list/DepartmentDropDown/props/defaultProps.js +1 -2
- package/lib/list/DepartmentDropDown/props/propTypes.js +0 -2
- package/lib/list/status/StatusListItem/StatusListItem.module.css +4 -2
- package/lib/lookup/header/Close/__tests__/__snapshots__/Close.spec.js.snap +1 -1
- package/lib/lookup/header/TicketHeader/__tests__/__snapshots__/TicketHeader.spec.js.snap +1 -1
- package/lib/utils/General.js +5 -1
- package/lib/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +3 -5
- package/lib/v1/form/fields/TagsMultiSelect/props/propTypes.js +1 -2
- package/lib/v1/list/DepartmentDropDown/DepartmentDropDown.js +3 -8
- package/lib/v1/list/DepartmentDropDown/props/defaultProps.js +1 -2
- package/lib/v1/list/DepartmentDropDown/props/propTypes.js +0 -2
- package/package.json +10 -8
- package/result.json +1 -1
- package/unittest/index.html +4 -12
|
@@ -4,7 +4,7 @@ exports[`IconButton Checking the "Children" 1`] = `
|
|
|
4
4
|
<DocumentFragment>
|
|
5
5
|
<button
|
|
6
6
|
aria-pressed="false"
|
|
7
|
-
class="buttonReset wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
7
|
+
class="buttonReset large wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
8
8
|
data-id="iconContainer"
|
|
9
9
|
data-ishtml="false"
|
|
10
10
|
data-selector-id="iconButton"
|
|
@@ -27,7 +27,7 @@ exports[`IconButton eleRef prop is a function 1`] = `
|
|
|
27
27
|
<DocumentFragment>
|
|
28
28
|
<button
|
|
29
29
|
aria-pressed="false"
|
|
30
|
-
class="buttonReset wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
30
|
+
class="buttonReset large wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
31
31
|
data-id="iconContainer"
|
|
32
32
|
data-ishtml="false"
|
|
33
33
|
data-selector-id="iconButton"
|
|
@@ -45,7 +45,7 @@ exports[`IconButton rendering ally 1`] = `
|
|
|
45
45
|
aria-label="ariaLabel"
|
|
46
46
|
aria-labelledby="ariaLabelledby"
|
|
47
47
|
aria-pressed="false"
|
|
48
|
-
class="buttonReset wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
48
|
+
class="buttonReset large wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
49
49
|
data-id="iconContainer"
|
|
50
50
|
data-ishtml="false"
|
|
51
51
|
data-selector-id="iconButton"
|
|
@@ -60,7 +60,7 @@ exports[`IconButton rendering ally 2`] = `
|
|
|
60
60
|
aria-expanded="false"
|
|
61
61
|
aria-haspopup="false"
|
|
62
62
|
aria-pressed="false"
|
|
63
|
-
class="buttonReset wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
63
|
+
class="buttonReset large wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
64
64
|
data-id="iconContainer"
|
|
65
65
|
data-ishtml="false"
|
|
66
66
|
data-selector-id="iconButton"
|
|
@@ -73,7 +73,7 @@ exports[`IconButton rendering in ClassName 1`] = `
|
|
|
73
73
|
<DocumentFragment>
|
|
74
74
|
<button
|
|
75
75
|
aria-pressed="false"
|
|
76
|
-
class="buttonReset wrapper IconButtonClass undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
76
|
+
class="buttonReset large wrapper IconButtonClass undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
77
77
|
data-id="iconContainer"
|
|
78
78
|
data-ishtml="false"
|
|
79
79
|
data-selector-id="iconButton"
|
|
@@ -86,7 +86,7 @@ exports[`IconButton rendering in Icon 1`] = `
|
|
|
86
86
|
<DocumentFragment>
|
|
87
87
|
<button
|
|
88
88
|
aria-pressed="false"
|
|
89
|
-
class="buttonReset wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
89
|
+
class="buttonReset large wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
90
90
|
data-id="iconContainer"
|
|
91
91
|
data-ishtml="false"
|
|
92
92
|
data-selector-id="iconButton"
|
|
@@ -108,7 +108,7 @@ exports[`IconButton rendering in dataIsHtml is True 1`] = `
|
|
|
108
108
|
<DocumentFragment>
|
|
109
109
|
<button
|
|
110
110
|
aria-pressed="false"
|
|
111
|
-
class="buttonReset wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
111
|
+
class="buttonReset large wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
112
112
|
data-id="iconContainer"
|
|
113
113
|
data-ishtml="true"
|
|
114
114
|
data-selector-id="iconButton"
|
|
@@ -121,7 +121,7 @@ exports[`IconButton rendering in isDisabled is True 1`] = `
|
|
|
121
121
|
<DocumentFragment>
|
|
122
122
|
<button
|
|
123
123
|
aria-pressed="false"
|
|
124
|
-
class="buttonReset wrapper undefined effect default border defaultHover disabled inflex coldir both"
|
|
124
|
+
class="buttonReset large wrapper undefined effect default border defaultHover disabled inflex coldir both"
|
|
125
125
|
data-id="iconContainer"
|
|
126
126
|
data-ishtml="false"
|
|
127
127
|
data-selector-id="iconButton"
|
|
@@ -135,7 +135,7 @@ exports[`IconButton rendering in title 1`] = `
|
|
|
135
135
|
<DocumentFragment>
|
|
136
136
|
<button
|
|
137
137
|
aria-pressed="false"
|
|
138
|
-
class="buttonReset wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
138
|
+
class="buttonReset large wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
139
139
|
data-id="iconContainer"
|
|
140
140
|
data-ishtml="false"
|
|
141
141
|
data-selector-id="iconButton"
|
|
@@ -149,7 +149,7 @@ exports[`IconButton rendering isNeedEffect is False 1`] = `
|
|
|
149
149
|
<DocumentFragment>
|
|
150
150
|
<button
|
|
151
151
|
aria-pressed="false"
|
|
152
|
-
class="buttonReset wrapper undefined inflex coldir both"
|
|
152
|
+
class="buttonReset large wrapper undefined inflex coldir both"
|
|
153
153
|
data-id="iconContainer"
|
|
154
154
|
data-ishtml="false"
|
|
155
155
|
data-selector-id="iconButton"
|
|
@@ -162,7 +162,7 @@ exports[`IconButton rendering needButtonTag 1`] = `
|
|
|
162
162
|
<DocumentFragment>
|
|
163
163
|
<div
|
|
164
164
|
aria-pressed="false"
|
|
165
|
-
class="
|
|
165
|
+
class="large wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
166
166
|
data-id="iconContainer"
|
|
167
167
|
data-ishtml="false"
|
|
168
168
|
data-selector-id="iconButton"
|
|
@@ -175,7 +175,7 @@ exports[`IconButton rendering the defult props 1`] = `
|
|
|
175
175
|
<DocumentFragment>
|
|
176
176
|
<button
|
|
177
177
|
aria-pressed="false"
|
|
178
|
-
class="buttonReset wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
178
|
+
class="buttonReset large wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
179
179
|
data-id="iconContainer"
|
|
180
180
|
data-ishtml="false"
|
|
181
181
|
data-selector-id="iconButton"
|
|
@@ -188,7 +188,7 @@ exports[`IconButton rendering the hovertypes- bg 1`] = `
|
|
|
188
188
|
<DocumentFragment>
|
|
189
189
|
<button
|
|
190
190
|
aria-pressed="false"
|
|
191
|
-
class="buttonReset wrapper undefined effect default border bgHover hoverEffect inflex coldir both"
|
|
191
|
+
class="buttonReset large wrapper undefined effect default border bgHover hoverEffect inflex coldir both"
|
|
192
192
|
data-id="iconContainer"
|
|
193
193
|
data-ishtml="false"
|
|
194
194
|
data-selector-id="iconButton"
|
|
@@ -201,7 +201,7 @@ exports[`IconButton rendering the hovertypes- border 1`] = `
|
|
|
201
201
|
<DocumentFragment>
|
|
202
202
|
<button
|
|
203
203
|
aria-pressed="false"
|
|
204
|
-
class="buttonReset wrapper undefined effect default border borderHover hoverEffect inflex coldir both"
|
|
204
|
+
class="buttonReset large wrapper undefined effect default border borderHover hoverEffect inflex coldir both"
|
|
205
205
|
data-id="iconContainer"
|
|
206
206
|
data-ishtml="false"
|
|
207
207
|
data-selector-id="iconButton"
|
|
@@ -214,7 +214,7 @@ exports[`IconButton rendering the hovertypes- default 1`] = `
|
|
|
214
214
|
<DocumentFragment>
|
|
215
215
|
<button
|
|
216
216
|
aria-pressed="false"
|
|
217
|
-
class="buttonReset wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
217
|
+
class="buttonReset large wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
218
218
|
data-id="iconContainer"
|
|
219
219
|
data-ishtml="false"
|
|
220
220
|
data-selector-id="iconButton"
|
|
@@ -227,7 +227,7 @@ exports[`IconButton rendering the isActive true with palette of- default 1`] = `
|
|
|
227
227
|
<DocumentFragment>
|
|
228
228
|
<button
|
|
229
229
|
aria-pressed="false"
|
|
230
|
-
class="buttonReset wrapper undefined effect default border defaultHover active hoverEffect inflex coldir both"
|
|
230
|
+
class="buttonReset large wrapper undefined effect default border defaultHover active hoverEffect inflex coldir both"
|
|
231
231
|
data-id="iconContainer"
|
|
232
232
|
data-ishtml="false"
|
|
233
233
|
data-selector-id="iconButton"
|
|
@@ -240,7 +240,7 @@ exports[`IconButton rendering the isActive true with palette of- primary 1`] = `
|
|
|
240
240
|
<DocumentFragment>
|
|
241
241
|
<button
|
|
242
242
|
aria-pressed="false"
|
|
243
|
-
class="buttonReset wrapper primary_active effect primary border defaultHover active hoverEffect inflex coldir both"
|
|
243
|
+
class="buttonReset large wrapper primary_active effect primary border defaultHover active hoverEffect inflex coldir both"
|
|
244
244
|
data-id="iconContainer"
|
|
245
245
|
data-ishtml="false"
|
|
246
246
|
data-selector-id="iconButton"
|
|
@@ -253,7 +253,7 @@ exports[`IconButton rendering the isActive true with palette of- primaryFilled 1
|
|
|
253
253
|
<DocumentFragment>
|
|
254
254
|
<button
|
|
255
255
|
aria-pressed="false"
|
|
256
|
-
class="buttonReset wrapper primaryFilled_active effect primaryFilled border defaultHover active hoverEffect inflex coldir both"
|
|
256
|
+
class="buttonReset large wrapper primaryFilled_active effect primaryFilled border defaultHover active hoverEffect inflex coldir both"
|
|
257
257
|
data-id="iconContainer"
|
|
258
258
|
data-ishtml="false"
|
|
259
259
|
data-selector-id="iconButton"
|
|
@@ -266,7 +266,7 @@ exports[`IconButton rendering the palette of- default 1`] = `
|
|
|
266
266
|
<DocumentFragment>
|
|
267
267
|
<button
|
|
268
268
|
aria-pressed="false"
|
|
269
|
-
class="buttonReset wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
269
|
+
class="buttonReset large wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
270
270
|
data-id="iconContainer"
|
|
271
271
|
data-ishtml="false"
|
|
272
272
|
data-selector-id="iconButton"
|
|
@@ -279,7 +279,7 @@ exports[`IconButton rendering the palette of- primary 1`] = `
|
|
|
279
279
|
<DocumentFragment>
|
|
280
280
|
<button
|
|
281
281
|
aria-pressed="false"
|
|
282
|
-
class="buttonReset wrapper primary effect primary border defaultHover hoverEffect inflex coldir both"
|
|
282
|
+
class="buttonReset large wrapper primary effect primary border defaultHover hoverEffect inflex coldir both"
|
|
283
283
|
data-id="iconContainer"
|
|
284
284
|
data-ishtml="false"
|
|
285
285
|
data-selector-id="iconButton"
|
|
@@ -292,7 +292,72 @@ exports[`IconButton rendering the palette of- primaryFilled 1`] = `
|
|
|
292
292
|
<DocumentFragment>
|
|
293
293
|
<button
|
|
294
294
|
aria-pressed="false"
|
|
295
|
-
class="buttonReset wrapper primaryFilled effect primaryFilled border defaultHover hoverEffect inflex coldir both"
|
|
295
|
+
class="buttonReset large 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 the size of- large 1`] = `
|
|
305
|
+
<DocumentFragment>
|
|
306
|
+
<button
|
|
307
|
+
aria-pressed="false"
|
|
308
|
+
class="buttonReset large 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
|
+
/>
|
|
314
|
+
</DocumentFragment>
|
|
315
|
+
`;
|
|
316
|
+
|
|
317
|
+
exports[`IconButton rendering the size of- medium 1`] = `
|
|
318
|
+
<DocumentFragment>
|
|
319
|
+
<button
|
|
320
|
+
aria-pressed="false"
|
|
321
|
+
class="buttonReset medium wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
322
|
+
data-id="iconContainer"
|
|
323
|
+
data-ishtml="false"
|
|
324
|
+
data-selector-id="iconButton"
|
|
325
|
+
data-test-id="iconContainer"
|
|
326
|
+
/>
|
|
327
|
+
</DocumentFragment>
|
|
328
|
+
`;
|
|
329
|
+
|
|
330
|
+
exports[`IconButton rendering the size of- small 1`] = `
|
|
331
|
+
<DocumentFragment>
|
|
332
|
+
<button
|
|
333
|
+
aria-pressed="false"
|
|
334
|
+
class="buttonReset small wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
335
|
+
data-id="iconContainer"
|
|
336
|
+
data-ishtml="false"
|
|
337
|
+
data-selector-id="iconButton"
|
|
338
|
+
data-test-id="iconContainer"
|
|
339
|
+
/>
|
|
340
|
+
</DocumentFragment>
|
|
341
|
+
`;
|
|
342
|
+
|
|
343
|
+
exports[`IconButton rendering the size of- xlarge 1`] = `
|
|
344
|
+
<DocumentFragment>
|
|
345
|
+
<button
|
|
346
|
+
aria-pressed="false"
|
|
347
|
+
class="buttonReset xlarge wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
348
|
+
data-id="iconContainer"
|
|
349
|
+
data-ishtml="false"
|
|
350
|
+
data-selector-id="iconButton"
|
|
351
|
+
data-test-id="iconContainer"
|
|
352
|
+
/>
|
|
353
|
+
</DocumentFragment>
|
|
354
|
+
`;
|
|
355
|
+
|
|
356
|
+
exports[`IconButton rendering the size of- xsmall 1`] = `
|
|
357
|
+
<DocumentFragment>
|
|
358
|
+
<button
|
|
359
|
+
aria-pressed="false"
|
|
360
|
+
class="buttonReset xsmall wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
296
361
|
data-id="iconContainer"
|
|
297
362
|
data-ishtml="false"
|
|
298
363
|
data-selector-id="iconButton"
|
|
@@ -305,7 +370,7 @@ exports[`IconButton rendering tourId 1`] = `
|
|
|
305
370
|
<DocumentFragment>
|
|
306
371
|
<button
|
|
307
372
|
aria-pressed="false"
|
|
308
|
-
class="buttonReset wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
373
|
+
class="buttonReset large wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
309
374
|
data-id="iconContainer"
|
|
310
375
|
data-ishtml="false"
|
|
311
376
|
data-selector-id="iconButton"
|
|
@@ -9,6 +9,7 @@ export const propTypes = {
|
|
|
9
9
|
iconClass: PropTypes.string,
|
|
10
10
|
iconName: PropTypes.string,
|
|
11
11
|
iconSize: PropTypes.string,
|
|
12
|
+
size: PropTypes.oneOf(['xsmall', 'small', 'medium', 'large', 'xlarge']),
|
|
12
13
|
isActive: PropTypes.bool,
|
|
13
14
|
isBold: PropTypes.bool,
|
|
14
15
|
isDisabled: PropTypes.bool,
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/* Props */
|
|
3
|
+
|
|
4
|
+
import { propTypes } from "./props/propTypes.js";
|
|
5
|
+
import { defaultProps } from "./props/defaultProps.js";
|
|
6
|
+
/* Style */
|
|
7
|
+
|
|
8
|
+
import style from "./css/CarouselDot.module.css";
|
|
9
|
+
|
|
10
|
+
function CarouselDot(props) {
|
|
11
|
+
const {
|
|
12
|
+
onClick,
|
|
13
|
+
isActive,
|
|
14
|
+
index,
|
|
15
|
+
isAnimationPaused,
|
|
16
|
+
testId,
|
|
17
|
+
customId
|
|
18
|
+
} = props;
|
|
19
|
+
|
|
20
|
+
function handleClick() {
|
|
21
|
+
typeof onClick === "function" && onClick(index);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
25
|
+
className: `${style.bullet} ${isAnimationPaused ? style.animationPaused : ''} ${isActive ? style.bulletActive : style.bulletNormal}`,
|
|
26
|
+
onClick: handleClick,
|
|
27
|
+
"data-id": customId,
|
|
28
|
+
"data-test-id": testId
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
CarouselDot.propTypes = propTypes;
|
|
33
|
+
CarouselDot.defaultProps = defaultProps;
|
|
34
|
+
export default CarouselDot;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { render } from '@testing-library/react';
|
|
3
|
+
import CarouselDot from "../CarouselDot";
|
|
4
|
+
describe('CarouselDot', () => {
|
|
5
|
+
test('rendering the defult props', () => {
|
|
6
|
+
const {
|
|
7
|
+
asFragment
|
|
8
|
+
} = render( /*#__PURE__*/React.createElement(CarouselDot, null));
|
|
9
|
+
expect(asFragment()).toMatchSnapshot();
|
|
10
|
+
});
|
|
11
|
+
test('rendering of isActive', () => {
|
|
12
|
+
const {
|
|
13
|
+
asFragment
|
|
14
|
+
} = render( /*#__PURE__*/React.createElement(CarouselDot, {
|
|
15
|
+
isActive: true
|
|
16
|
+
}));
|
|
17
|
+
expect(asFragment()).toMatchSnapshot();
|
|
18
|
+
});
|
|
19
|
+
test('rendering of isAnimationPaused', () => {
|
|
20
|
+
const {
|
|
21
|
+
asFragment
|
|
22
|
+
} = render( /*#__PURE__*/React.createElement(CarouselDot, {
|
|
23
|
+
isAnimationPaused: true
|
|
24
|
+
}));
|
|
25
|
+
expect(asFragment()).toMatchSnapshot();
|
|
26
|
+
});
|
|
27
|
+
test('rendering with customId', () => {
|
|
28
|
+
const {
|
|
29
|
+
asFragment
|
|
30
|
+
} = render( /*#__PURE__*/React.createElement(CarouselDot, {
|
|
31
|
+
customId: "radar"
|
|
32
|
+
}));
|
|
33
|
+
expect(asFragment()).toMatchSnapshot();
|
|
34
|
+
});
|
|
35
|
+
test('rendering with testId', () => {
|
|
36
|
+
const {
|
|
37
|
+
asFragment
|
|
38
|
+
} = render( /*#__PURE__*/React.createElement(CarouselDot, {
|
|
39
|
+
testId: "radar_test"
|
|
40
|
+
}));
|
|
41
|
+
expect(asFragment()).toMatchSnapshot();
|
|
42
|
+
});
|
|
43
|
+
});
|
package/es/Onboarding/CarouselDots/CarouselDot/__tests__/__snapshots__/CarouselDot.spec.js.snap
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`CarouselDot rendering of isActive 1`] = `
|
|
4
|
+
<DocumentFragment>
|
|
5
|
+
<div
|
|
6
|
+
class="bullet bulletActive"
|
|
7
|
+
data-id="carouselDot"
|
|
8
|
+
data-test-id="carouselDot"
|
|
9
|
+
/>
|
|
10
|
+
</DocumentFragment>
|
|
11
|
+
`;
|
|
12
|
+
|
|
13
|
+
exports[`CarouselDot rendering of isAnimationPaused 1`] = `
|
|
14
|
+
<DocumentFragment>
|
|
15
|
+
<div
|
|
16
|
+
class="bullet animationPaused bulletNormal"
|
|
17
|
+
data-id="carouselDot"
|
|
18
|
+
data-test-id="carouselDot"
|
|
19
|
+
/>
|
|
20
|
+
</DocumentFragment>
|
|
21
|
+
`;
|
|
22
|
+
|
|
23
|
+
exports[`CarouselDot rendering the defult props 1`] = `
|
|
24
|
+
<DocumentFragment>
|
|
25
|
+
<div
|
|
26
|
+
class="bullet bulletNormal"
|
|
27
|
+
data-id="carouselDot"
|
|
28
|
+
data-test-id="carouselDot"
|
|
29
|
+
/>
|
|
30
|
+
</DocumentFragment>
|
|
31
|
+
`;
|
|
32
|
+
|
|
33
|
+
exports[`CarouselDot rendering with customId 1`] = `
|
|
34
|
+
<DocumentFragment>
|
|
35
|
+
<div
|
|
36
|
+
class="bullet bulletNormal"
|
|
37
|
+
data-id="radar"
|
|
38
|
+
data-test-id="carouselDot"
|
|
39
|
+
/>
|
|
40
|
+
</DocumentFragment>
|
|
41
|
+
`;
|
|
42
|
+
|
|
43
|
+
exports[`CarouselDot rendering with testId 1`] = `
|
|
44
|
+
<DocumentFragment>
|
|
45
|
+
<div
|
|
46
|
+
class="bullet bulletNormal"
|
|
47
|
+
data-id="carouselDot"
|
|
48
|
+
data-test-id="radar_test"
|
|
49
|
+
/>
|
|
50
|
+
</DocumentFragment>
|
|
51
|
+
`;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
.bulletNormal{
|
|
2
|
+
composes: pointer from '~@zohodesk/components/lib/common/common.module.css';
|
|
3
|
+
}
|
|
4
|
+
.bulletNormal:hover {
|
|
5
|
+
transform: scale(1.4);
|
|
6
|
+
}
|
|
7
|
+
.bullet {
|
|
8
|
+
/* padding: 4px 3px; */
|
|
9
|
+
position: relative;
|
|
10
|
+
width: var(--zd_size8) ;
|
|
11
|
+
height: var(--zd_size8) ;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
border-radius: 20px;
|
|
14
|
+
}
|
|
15
|
+
.bullet,
|
|
16
|
+
.bullet::after {
|
|
17
|
+
transition: opacity var(--zd_transition2), background-color var(--zd_transition2), width var(--zd_transition6) cubic-bezier(0.165, 0.84, 0.44, 1),transform 0.2s ease-in-out;
|
|
18
|
+
}
|
|
19
|
+
.bullet::before,
|
|
20
|
+
.bullet::after {
|
|
21
|
+
content: '';
|
|
22
|
+
width: inherit ;
|
|
23
|
+
height: inherit ;
|
|
24
|
+
position: absolute;
|
|
25
|
+
top: 50% ;
|
|
26
|
+
}
|
|
27
|
+
.bullet::before, .bullet::after {
|
|
28
|
+
border-radius: inherit;
|
|
29
|
+
transform: translateY(-50%);
|
|
30
|
+
}
|
|
31
|
+
[dir=ltr] .bullet::before, [dir=ltr] .bullet::after {
|
|
32
|
+
left: 0 ;
|
|
33
|
+
}
|
|
34
|
+
[dir=rtl] .bullet::before, [dir=rtl] .bullet::after {
|
|
35
|
+
right: 0 ;
|
|
36
|
+
}
|
|
37
|
+
.bullet::before {
|
|
38
|
+
opacity: .4;
|
|
39
|
+
}
|
|
40
|
+
.bullet::before, .bulletActive::after {
|
|
41
|
+
background-color: var(--zdt_button_primaryfill_bg);
|
|
42
|
+
}
|
|
43
|
+
.bulletActive {
|
|
44
|
+
width: var(--zd_size30) ;
|
|
45
|
+
}
|
|
46
|
+
.bulletActive::before,
|
|
47
|
+
.bulletActive::after {
|
|
48
|
+
width: 100% ;
|
|
49
|
+
}
|
|
50
|
+
.bulletActive::after {
|
|
51
|
+
opacity: 1;
|
|
52
|
+
}
|
|
53
|
+
[dir=ltr] .bulletActive::after {
|
|
54
|
+
left:-100% ;
|
|
55
|
+
animation: progressLoading-ltr 5s linear infinite;
|
|
56
|
+
}
|
|
57
|
+
[dir=rtl] .bulletActive::after {
|
|
58
|
+
right:-100% ;
|
|
59
|
+
animation: progressLoading-rtl 5s linear infinite;
|
|
60
|
+
}
|
|
61
|
+
[dir=ltr] .animationPaused::after {
|
|
62
|
+
animation-play-state: paused;
|
|
63
|
+
}
|
|
64
|
+
[dir=rtl] .animationPaused::after {
|
|
65
|
+
animation-play-state: paused;
|
|
66
|
+
}
|
|
67
|
+
@keyframes progressLoading-ltr {
|
|
68
|
+
0% {
|
|
69
|
+
left: -100% ;
|
|
70
|
+
}
|
|
71
|
+
100% {
|
|
72
|
+
left: 0% ;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
@keyframes progressLoading-rtl {
|
|
76
|
+
0% {
|
|
77
|
+
left: -100% ;
|
|
78
|
+
}
|
|
79
|
+
100% {
|
|
80
|
+
left: 0% ;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React, { memo } from 'react';
|
|
2
|
+
import { Flex } from '@zohodesk/layout';
|
|
3
|
+
import { propTypes } from "./props/propTypes";
|
|
4
|
+
import { defaultProps } from "./props/defaultProps";
|
|
5
|
+
import CarouselDot from "./CarouselDot/CarouselDot";
|
|
6
|
+
import style from "./css/CarouselDots.module.css";
|
|
7
|
+
|
|
8
|
+
const CarouselDots = _ref => {
|
|
9
|
+
let {
|
|
10
|
+
sliderDetails,
|
|
11
|
+
currentSliderIndex,
|
|
12
|
+
isAnimationPaused,
|
|
13
|
+
onClick,
|
|
14
|
+
onMouseEnter,
|
|
15
|
+
onMouseLeave,
|
|
16
|
+
testId,
|
|
17
|
+
customId
|
|
18
|
+
} = _ref;
|
|
19
|
+
return /*#__PURE__*/React.createElement(Flex, {
|
|
20
|
+
$ui_displayMode: "flex",
|
|
21
|
+
$ui_alignItems: "center",
|
|
22
|
+
$ui_className: style.btnCnt,
|
|
23
|
+
$ui_justifyContent: "center",
|
|
24
|
+
$tagAttributes_container: {
|
|
25
|
+
onMouseEnter: onMouseEnter,
|
|
26
|
+
onMouseLeave: onMouseLeave
|
|
27
|
+
},
|
|
28
|
+
customId: customId,
|
|
29
|
+
testId: testId
|
|
30
|
+
}, sliderDetails.map((data, index) => /*#__PURE__*/React.createElement(CarouselDot, {
|
|
31
|
+
key: data.tabName,
|
|
32
|
+
isActive: index === currentSliderIndex,
|
|
33
|
+
isAnimationPaused: isAnimationPaused,
|
|
34
|
+
onClick: onClick,
|
|
35
|
+
index: index,
|
|
36
|
+
customId: customId + '_' + index,
|
|
37
|
+
testId: testId + '_' + index
|
|
38
|
+
})));
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
CarouselDots.propTypes = propTypes;
|
|
42
|
+
CarouselDots.defaultProps = defaultProps;
|
|
43
|
+
export default /*#__PURE__*/memo(CarouselDots);
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { render } from '@testing-library/react';
|
|
3
|
+
import CarouselDots from "../CarouselDots";
|
|
4
|
+
describe('CarouselDots', () => {
|
|
5
|
+
const sliderData = [{
|
|
6
|
+
imageSource: "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ3Mu0NdfXXqvCExZ9YG_j93CKuU4DIdcIlEQ&s",
|
|
7
|
+
tabName: 'commentPin',
|
|
8
|
+
heading: "Onboarding with carousel Slide 1",
|
|
9
|
+
description: "Discover innovative tools and solutions to streamline your processes and boost productivity on Slide 1."
|
|
10
|
+
}, {
|
|
11
|
+
imageSource: "https://crm-masters.com/wp-content/uploads/2023/05/cover-images-1200-%C3%97-630px-39-1-1200x675.jpg",
|
|
12
|
+
tabName: 'visibility',
|
|
13
|
+
heading: "Slide 2",
|
|
14
|
+
description: "Immerse yourself in a visually stunning experience on Slide 2, where innovative ideas and compelling visuals spark curiosity and inspiration."
|
|
15
|
+
}];
|
|
16
|
+
test('rendering the defult props', () => {
|
|
17
|
+
const {
|
|
18
|
+
asFragment
|
|
19
|
+
} = render( /*#__PURE__*/React.createElement(CarouselDots, null));
|
|
20
|
+
expect(asFragment()).toMatchSnapshot();
|
|
21
|
+
});
|
|
22
|
+
test('rendering of slider data', () => {
|
|
23
|
+
const {
|
|
24
|
+
asFragment
|
|
25
|
+
} = render( /*#__PURE__*/React.createElement(CarouselDots, {
|
|
26
|
+
sliderDetails: sliderData
|
|
27
|
+
}));
|
|
28
|
+
expect(asFragment()).toMatchSnapshot();
|
|
29
|
+
});
|
|
30
|
+
test('rendering prop of currentSliderIndex', () => {
|
|
31
|
+
const {
|
|
32
|
+
asFragment
|
|
33
|
+
} = render( /*#__PURE__*/React.createElement(CarouselDots, {
|
|
34
|
+
sliderDetails: sliderData,
|
|
35
|
+
currentSliderIndex: 1
|
|
36
|
+
}));
|
|
37
|
+
expect(asFragment()).toMatchSnapshot();
|
|
38
|
+
});
|
|
39
|
+
test('rendering prop of isAnimationPaused', () => {
|
|
40
|
+
const {
|
|
41
|
+
asFragment
|
|
42
|
+
} = render( /*#__PURE__*/React.createElement(CarouselDots, {
|
|
43
|
+
sliderDetails: sliderData,
|
|
44
|
+
isAnimationPaused: true
|
|
45
|
+
}));
|
|
46
|
+
expect(asFragment()).toMatchSnapshot();
|
|
47
|
+
});
|
|
48
|
+
test('rendering with customId', () => {
|
|
49
|
+
const {
|
|
50
|
+
asFragment
|
|
51
|
+
} = render( /*#__PURE__*/React.createElement(CarouselDots, {
|
|
52
|
+
customId: "radar"
|
|
53
|
+
}));
|
|
54
|
+
expect(asFragment()).toMatchSnapshot();
|
|
55
|
+
});
|
|
56
|
+
test('rendering with testId', () => {
|
|
57
|
+
const {
|
|
58
|
+
asFragment
|
|
59
|
+
} = render( /*#__PURE__*/React.createElement(CarouselDots, {
|
|
60
|
+
testId: "radar_test"
|
|
61
|
+
}));
|
|
62
|
+
expect(asFragment()).toMatchSnapshot();
|
|
63
|
+
});
|
|
64
|
+
});
|