@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
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { render } from '@testing-library/react';
|
|
3
|
+
import VideoLookup from "../VideoLookup";
|
|
4
|
+
describe('VideoLookup', () => {
|
|
5
|
+
test('rendering the defult props', () => {
|
|
6
|
+
const {
|
|
7
|
+
asFragment
|
|
8
|
+
} = render( /*#__PURE__*/React.createElement(VideoLookup, null));
|
|
9
|
+
expect(asFragment()).toMatchSnapshot();
|
|
10
|
+
});
|
|
11
|
+
test('rendering with prop isOpened', () => {
|
|
12
|
+
const {
|
|
13
|
+
asFragment
|
|
14
|
+
} = render( /*#__PURE__*/React.createElement(VideoLookup, {
|
|
15
|
+
isOpened: true
|
|
16
|
+
}));
|
|
17
|
+
expect(asFragment()).toMatchSnapshot();
|
|
18
|
+
});
|
|
19
|
+
test('rendering with link', () => {
|
|
20
|
+
const {
|
|
21
|
+
asFragment
|
|
22
|
+
} = render( /*#__PURE__*/React.createElement(VideoLookup, {
|
|
23
|
+
isOpened: true,
|
|
24
|
+
link: "https://www.w3schools.com/html/mov_bbb.mp4"
|
|
25
|
+
}));
|
|
26
|
+
expect(asFragment()).toMatchSnapshot();
|
|
27
|
+
});
|
|
28
|
+
test('rendering with isEmbeddedLink is true', () => {
|
|
29
|
+
const {
|
|
30
|
+
asFragment
|
|
31
|
+
} = render( /*#__PURE__*/React.createElement(VideoLookup, {
|
|
32
|
+
isOpened: true,
|
|
33
|
+
isEmbeddedLink: true,
|
|
34
|
+
link: "https://www.youtube.com/embed/mNJAvhOGa8M?si=-zIj_2o9dadadE_P"
|
|
35
|
+
}));
|
|
36
|
+
expect(asFragment()).toMatchSnapshot();
|
|
37
|
+
});
|
|
38
|
+
test('rendering with closeText', () => {
|
|
39
|
+
const {
|
|
40
|
+
asFragment
|
|
41
|
+
} = render( /*#__PURE__*/React.createElement(VideoLookup, {
|
|
42
|
+
isOpened: true,
|
|
43
|
+
closeText: "close"
|
|
44
|
+
}));
|
|
45
|
+
expect(asFragment()).toMatchSnapshot();
|
|
46
|
+
});
|
|
47
|
+
test('rendering with customStyle', () => {
|
|
48
|
+
const {
|
|
49
|
+
asFragment
|
|
50
|
+
} = render( /*#__PURE__*/React.createElement(VideoLookup, {
|
|
51
|
+
isOpened: true,
|
|
52
|
+
customStyle: {
|
|
53
|
+
videoContainer: "customVideoContainer"
|
|
54
|
+
}
|
|
55
|
+
}));
|
|
56
|
+
expect(asFragment()).toMatchSnapshot();
|
|
57
|
+
});
|
|
58
|
+
test('rendering with customId', () => {
|
|
59
|
+
const {
|
|
60
|
+
asFragment
|
|
61
|
+
} = render( /*#__PURE__*/React.createElement(VideoLookup, {
|
|
62
|
+
customId: "radar_lookup",
|
|
63
|
+
isOpened: true
|
|
64
|
+
}));
|
|
65
|
+
expect(asFragment()).toMatchSnapshot();
|
|
66
|
+
});
|
|
67
|
+
test('rendering with TestId', () => {
|
|
68
|
+
const {
|
|
69
|
+
asFragment
|
|
70
|
+
} = render( /*#__PURE__*/React.createElement(VideoLookup, {
|
|
71
|
+
testId: "radar_lookup_text",
|
|
72
|
+
isOpened: true
|
|
73
|
+
}));
|
|
74
|
+
expect(asFragment()).toMatchSnapshot();
|
|
75
|
+
});
|
|
76
|
+
test('rendering with videoFormat', () => {
|
|
77
|
+
const {
|
|
78
|
+
asFragment
|
|
79
|
+
} = render( /*#__PURE__*/React.createElement(VideoLookup, {
|
|
80
|
+
videoFormat: "mp4",
|
|
81
|
+
isOpened: true,
|
|
82
|
+
link: "https://www.w3schools.com/html/mov_bbb.mp4"
|
|
83
|
+
}));
|
|
84
|
+
expect(asFragment()).toMatchSnapshot();
|
|
85
|
+
});
|
|
86
|
+
});
|
|
@@ -0,0 +1,434 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`VideoLookup rendering the defult props 1`] = `<DocumentFragment />`;
|
|
4
|
+
|
|
5
|
+
exports[`VideoLookup rendering with TestId 1`] = `
|
|
6
|
+
<DocumentFragment>
|
|
7
|
+
<div
|
|
8
|
+
class="container index5 dark"
|
|
9
|
+
data-drag-parent="true"
|
|
10
|
+
style="z-index: 4;"
|
|
11
|
+
>
|
|
12
|
+
<div
|
|
13
|
+
class="flex cover rowdir both"
|
|
14
|
+
data-id="reactFreezeLayer"
|
|
15
|
+
data-selector-id="container"
|
|
16
|
+
data-test-id="reactFreezeLayer"
|
|
17
|
+
>
|
|
18
|
+
<button
|
|
19
|
+
class="close bold plainsecondary rounded mediumBtn"
|
|
20
|
+
data-id="videoLookup_close_icon"
|
|
21
|
+
data-selector-id="button"
|
|
22
|
+
data-test-id="videoLookup_close_icon"
|
|
23
|
+
type="button"
|
|
24
|
+
>
|
|
25
|
+
<i
|
|
26
|
+
aria-hidden="true"
|
|
27
|
+
class="zd_font_icons basic icon-close2 "
|
|
28
|
+
data-id="fontIcon"
|
|
29
|
+
data-selector-id="fontIcon"
|
|
30
|
+
data-test-id="fontIcon"
|
|
31
|
+
style="--zd-iconfont-size: var(--zd_font_size9);"
|
|
32
|
+
/>
|
|
33
|
+
<div
|
|
34
|
+
class="dotted size14"
|
|
35
|
+
>
|
|
36
|
+
esc
|
|
37
|
+
</div>
|
|
38
|
+
</button>
|
|
39
|
+
<div
|
|
40
|
+
class="videoContainer"
|
|
41
|
+
data-id="videoLookup_container"
|
|
42
|
+
data-test-id="radar_lookup_text_container"
|
|
43
|
+
>
|
|
44
|
+
<video
|
|
45
|
+
autoplay=""
|
|
46
|
+
class="videoPlayer"
|
|
47
|
+
controls=""
|
|
48
|
+
>
|
|
49
|
+
<source
|
|
50
|
+
type="video/mp4"
|
|
51
|
+
/>
|
|
52
|
+
</video>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
</DocumentFragment>
|
|
57
|
+
`;
|
|
58
|
+
|
|
59
|
+
exports[`VideoLookup rendering with closeText 1`] = `
|
|
60
|
+
<DocumentFragment>
|
|
61
|
+
<div
|
|
62
|
+
class="container index5 dark"
|
|
63
|
+
data-drag-parent="true"
|
|
64
|
+
style="z-index: 4;"
|
|
65
|
+
>
|
|
66
|
+
<div
|
|
67
|
+
class="flex cover rowdir both"
|
|
68
|
+
data-id="reactFreezeLayer"
|
|
69
|
+
data-selector-id="container"
|
|
70
|
+
data-test-id="reactFreezeLayer"
|
|
71
|
+
>
|
|
72
|
+
<button
|
|
73
|
+
class="close bold plainsecondary rounded mediumBtn"
|
|
74
|
+
data-id="videoLookup_close_icon"
|
|
75
|
+
data-selector-id="button"
|
|
76
|
+
data-test-id="videoLookup_close_icon"
|
|
77
|
+
type="button"
|
|
78
|
+
>
|
|
79
|
+
<i
|
|
80
|
+
aria-hidden="true"
|
|
81
|
+
class="zd_font_icons basic icon-close2 "
|
|
82
|
+
data-id="fontIcon"
|
|
83
|
+
data-selector-id="fontIcon"
|
|
84
|
+
data-test-id="fontIcon"
|
|
85
|
+
style="--zd-iconfont-size: var(--zd_font_size9);"
|
|
86
|
+
/>
|
|
87
|
+
<div
|
|
88
|
+
class="dotted size14"
|
|
89
|
+
>
|
|
90
|
+
close
|
|
91
|
+
</div>
|
|
92
|
+
</button>
|
|
93
|
+
<div
|
|
94
|
+
class="videoContainer"
|
|
95
|
+
data-id="videoLookup_container"
|
|
96
|
+
data-test-id="videoLookup_container"
|
|
97
|
+
>
|
|
98
|
+
<video
|
|
99
|
+
autoplay=""
|
|
100
|
+
class="videoPlayer"
|
|
101
|
+
controls=""
|
|
102
|
+
>
|
|
103
|
+
<source
|
|
104
|
+
type="video/mp4"
|
|
105
|
+
/>
|
|
106
|
+
</video>
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
</DocumentFragment>
|
|
111
|
+
`;
|
|
112
|
+
|
|
113
|
+
exports[`VideoLookup rendering with customId 1`] = `
|
|
114
|
+
<DocumentFragment>
|
|
115
|
+
<div
|
|
116
|
+
class="container index5 dark"
|
|
117
|
+
data-drag-parent="true"
|
|
118
|
+
style="z-index: 4;"
|
|
119
|
+
>
|
|
120
|
+
<div
|
|
121
|
+
class="flex cover rowdir both"
|
|
122
|
+
data-id="reactFreezeLayer"
|
|
123
|
+
data-selector-id="container"
|
|
124
|
+
data-test-id="reactFreezeLayer"
|
|
125
|
+
>
|
|
126
|
+
<button
|
|
127
|
+
class="close bold plainsecondary rounded mediumBtn"
|
|
128
|
+
data-id="radar_lookup_close_icon"
|
|
129
|
+
data-selector-id="button"
|
|
130
|
+
data-test-id="radar_lookup_close_icon"
|
|
131
|
+
type="button"
|
|
132
|
+
>
|
|
133
|
+
<i
|
|
134
|
+
aria-hidden="true"
|
|
135
|
+
class="zd_font_icons basic icon-close2 "
|
|
136
|
+
data-id="fontIcon"
|
|
137
|
+
data-selector-id="fontIcon"
|
|
138
|
+
data-test-id="fontIcon"
|
|
139
|
+
style="--zd-iconfont-size: var(--zd_font_size9);"
|
|
140
|
+
/>
|
|
141
|
+
<div
|
|
142
|
+
class="dotted size14"
|
|
143
|
+
>
|
|
144
|
+
esc
|
|
145
|
+
</div>
|
|
146
|
+
</button>
|
|
147
|
+
<div
|
|
148
|
+
class="videoContainer"
|
|
149
|
+
data-id="radar_lookup_container"
|
|
150
|
+
data-test-id="videoLookup_container"
|
|
151
|
+
>
|
|
152
|
+
<video
|
|
153
|
+
autoplay=""
|
|
154
|
+
class="videoPlayer"
|
|
155
|
+
controls=""
|
|
156
|
+
>
|
|
157
|
+
<source
|
|
158
|
+
type="video/mp4"
|
|
159
|
+
/>
|
|
160
|
+
</video>
|
|
161
|
+
</div>
|
|
162
|
+
</div>
|
|
163
|
+
</div>
|
|
164
|
+
</DocumentFragment>
|
|
165
|
+
`;
|
|
166
|
+
|
|
167
|
+
exports[`VideoLookup rendering with customStyle 1`] = `
|
|
168
|
+
<DocumentFragment>
|
|
169
|
+
<div
|
|
170
|
+
class="container index5 dark"
|
|
171
|
+
data-drag-parent="true"
|
|
172
|
+
style="z-index: 4;"
|
|
173
|
+
>
|
|
174
|
+
<div
|
|
175
|
+
class="flex cover rowdir both"
|
|
176
|
+
data-id="reactFreezeLayer"
|
|
177
|
+
data-selector-id="container"
|
|
178
|
+
data-test-id="reactFreezeLayer"
|
|
179
|
+
>
|
|
180
|
+
<button
|
|
181
|
+
class="close bold plainsecondary rounded mediumBtn"
|
|
182
|
+
data-id="videoLookup_close_icon"
|
|
183
|
+
data-selector-id="button"
|
|
184
|
+
data-test-id="videoLookup_close_icon"
|
|
185
|
+
type="button"
|
|
186
|
+
>
|
|
187
|
+
<i
|
|
188
|
+
aria-hidden="true"
|
|
189
|
+
class="zd_font_icons basic icon-close2 "
|
|
190
|
+
data-id="fontIcon"
|
|
191
|
+
data-selector-id="fontIcon"
|
|
192
|
+
data-test-id="fontIcon"
|
|
193
|
+
style="--zd-iconfont-size: var(--zd_font_size9);"
|
|
194
|
+
/>
|
|
195
|
+
<div
|
|
196
|
+
class="dotted size14"
|
|
197
|
+
>
|
|
198
|
+
esc
|
|
199
|
+
</div>
|
|
200
|
+
</button>
|
|
201
|
+
<div
|
|
202
|
+
class="videoContainer customVideoContainer"
|
|
203
|
+
data-id="videoLookup_container"
|
|
204
|
+
data-test-id="videoLookup_container"
|
|
205
|
+
>
|
|
206
|
+
<video
|
|
207
|
+
autoplay=""
|
|
208
|
+
class="videoPlayer"
|
|
209
|
+
controls=""
|
|
210
|
+
>
|
|
211
|
+
<source
|
|
212
|
+
type="video/mp4"
|
|
213
|
+
/>
|
|
214
|
+
</video>
|
|
215
|
+
</div>
|
|
216
|
+
</div>
|
|
217
|
+
</div>
|
|
218
|
+
</DocumentFragment>
|
|
219
|
+
`;
|
|
220
|
+
|
|
221
|
+
exports[`VideoLookup rendering with isEmbeddedLink is true 1`] = `
|
|
222
|
+
<DocumentFragment>
|
|
223
|
+
<div
|
|
224
|
+
class="container index5 dark"
|
|
225
|
+
data-drag-parent="true"
|
|
226
|
+
style="z-index: 4;"
|
|
227
|
+
>
|
|
228
|
+
<div
|
|
229
|
+
class="flex cover rowdir both"
|
|
230
|
+
data-id="reactFreezeLayer"
|
|
231
|
+
data-selector-id="container"
|
|
232
|
+
data-test-id="reactFreezeLayer"
|
|
233
|
+
>
|
|
234
|
+
<button
|
|
235
|
+
class="close bold plainsecondary rounded mediumBtn"
|
|
236
|
+
data-id="videoLookup_close_icon"
|
|
237
|
+
data-selector-id="button"
|
|
238
|
+
data-test-id="videoLookup_close_icon"
|
|
239
|
+
type="button"
|
|
240
|
+
>
|
|
241
|
+
<i
|
|
242
|
+
aria-hidden="true"
|
|
243
|
+
class="zd_font_icons basic icon-close2 "
|
|
244
|
+
data-id="fontIcon"
|
|
245
|
+
data-selector-id="fontIcon"
|
|
246
|
+
data-test-id="fontIcon"
|
|
247
|
+
style="--zd-iconfont-size: var(--zd_font_size9);"
|
|
248
|
+
/>
|
|
249
|
+
<div
|
|
250
|
+
class="dotted size14"
|
|
251
|
+
>
|
|
252
|
+
esc
|
|
253
|
+
</div>
|
|
254
|
+
</button>
|
|
255
|
+
<div
|
|
256
|
+
class="videoContainer"
|
|
257
|
+
data-id="videoLookup_container"
|
|
258
|
+
data-test-id="videoLookup_container"
|
|
259
|
+
>
|
|
260
|
+
<iframe
|
|
261
|
+
allow="autoplay"
|
|
262
|
+
allowfullscreen=""
|
|
263
|
+
class="videoIframe"
|
|
264
|
+
src="https://www.youtube.com/embed/mNJAvhOGa8M?si=-zIj_2o9dadadE_P"
|
|
265
|
+
/>
|
|
266
|
+
</div>
|
|
267
|
+
</div>
|
|
268
|
+
</div>
|
|
269
|
+
</DocumentFragment>
|
|
270
|
+
`;
|
|
271
|
+
|
|
272
|
+
exports[`VideoLookup rendering with link 1`] = `
|
|
273
|
+
<DocumentFragment>
|
|
274
|
+
<div
|
|
275
|
+
class="container index5 dark"
|
|
276
|
+
data-drag-parent="true"
|
|
277
|
+
style="z-index: 4;"
|
|
278
|
+
>
|
|
279
|
+
<div
|
|
280
|
+
class="flex cover rowdir both"
|
|
281
|
+
data-id="reactFreezeLayer"
|
|
282
|
+
data-selector-id="container"
|
|
283
|
+
data-test-id="reactFreezeLayer"
|
|
284
|
+
>
|
|
285
|
+
<button
|
|
286
|
+
class="close bold plainsecondary rounded mediumBtn"
|
|
287
|
+
data-id="videoLookup_close_icon"
|
|
288
|
+
data-selector-id="button"
|
|
289
|
+
data-test-id="videoLookup_close_icon"
|
|
290
|
+
type="button"
|
|
291
|
+
>
|
|
292
|
+
<i
|
|
293
|
+
aria-hidden="true"
|
|
294
|
+
class="zd_font_icons basic icon-close2 "
|
|
295
|
+
data-id="fontIcon"
|
|
296
|
+
data-selector-id="fontIcon"
|
|
297
|
+
data-test-id="fontIcon"
|
|
298
|
+
style="--zd-iconfont-size: var(--zd_font_size9);"
|
|
299
|
+
/>
|
|
300
|
+
<div
|
|
301
|
+
class="dotted size14"
|
|
302
|
+
>
|
|
303
|
+
esc
|
|
304
|
+
</div>
|
|
305
|
+
</button>
|
|
306
|
+
<div
|
|
307
|
+
class="videoContainer"
|
|
308
|
+
data-id="videoLookup_container"
|
|
309
|
+
data-test-id="videoLookup_container"
|
|
310
|
+
>
|
|
311
|
+
<video
|
|
312
|
+
autoplay=""
|
|
313
|
+
class="videoPlayer"
|
|
314
|
+
controls=""
|
|
315
|
+
>
|
|
316
|
+
<source
|
|
317
|
+
src="https://www.w3schools.com/html/mov_bbb.mp4"
|
|
318
|
+
type="video/mp4"
|
|
319
|
+
/>
|
|
320
|
+
</video>
|
|
321
|
+
</div>
|
|
322
|
+
</div>
|
|
323
|
+
</div>
|
|
324
|
+
</DocumentFragment>
|
|
325
|
+
`;
|
|
326
|
+
|
|
327
|
+
exports[`VideoLookup rendering with prop isOpened 1`] = `
|
|
328
|
+
<DocumentFragment>
|
|
329
|
+
<div
|
|
330
|
+
class="container index5 dark"
|
|
331
|
+
data-drag-parent="true"
|
|
332
|
+
style="z-index: 4;"
|
|
333
|
+
>
|
|
334
|
+
<div
|
|
335
|
+
class="flex cover rowdir both"
|
|
336
|
+
data-id="reactFreezeLayer"
|
|
337
|
+
data-selector-id="container"
|
|
338
|
+
data-test-id="reactFreezeLayer"
|
|
339
|
+
>
|
|
340
|
+
<button
|
|
341
|
+
class="close bold plainsecondary rounded mediumBtn"
|
|
342
|
+
data-id="videoLookup_close_icon"
|
|
343
|
+
data-selector-id="button"
|
|
344
|
+
data-test-id="videoLookup_close_icon"
|
|
345
|
+
type="button"
|
|
346
|
+
>
|
|
347
|
+
<i
|
|
348
|
+
aria-hidden="true"
|
|
349
|
+
class="zd_font_icons basic icon-close2 "
|
|
350
|
+
data-id="fontIcon"
|
|
351
|
+
data-selector-id="fontIcon"
|
|
352
|
+
data-test-id="fontIcon"
|
|
353
|
+
style="--zd-iconfont-size: var(--zd_font_size9);"
|
|
354
|
+
/>
|
|
355
|
+
<div
|
|
356
|
+
class="dotted size14"
|
|
357
|
+
>
|
|
358
|
+
esc
|
|
359
|
+
</div>
|
|
360
|
+
</button>
|
|
361
|
+
<div
|
|
362
|
+
class="videoContainer"
|
|
363
|
+
data-id="videoLookup_container"
|
|
364
|
+
data-test-id="videoLookup_container"
|
|
365
|
+
>
|
|
366
|
+
<video
|
|
367
|
+
autoplay=""
|
|
368
|
+
class="videoPlayer"
|
|
369
|
+
controls=""
|
|
370
|
+
>
|
|
371
|
+
<source
|
|
372
|
+
type="video/mp4"
|
|
373
|
+
/>
|
|
374
|
+
</video>
|
|
375
|
+
</div>
|
|
376
|
+
</div>
|
|
377
|
+
</div>
|
|
378
|
+
</DocumentFragment>
|
|
379
|
+
`;
|
|
380
|
+
|
|
381
|
+
exports[`VideoLookup rendering with videoFormat 1`] = `
|
|
382
|
+
<DocumentFragment>
|
|
383
|
+
<div
|
|
384
|
+
class="container index5 dark"
|
|
385
|
+
data-drag-parent="true"
|
|
386
|
+
style="z-index: 4;"
|
|
387
|
+
>
|
|
388
|
+
<div
|
|
389
|
+
class="flex cover rowdir both"
|
|
390
|
+
data-id="reactFreezeLayer"
|
|
391
|
+
data-selector-id="container"
|
|
392
|
+
data-test-id="reactFreezeLayer"
|
|
393
|
+
>
|
|
394
|
+
<button
|
|
395
|
+
class="close bold plainsecondary rounded mediumBtn"
|
|
396
|
+
data-id="videoLookup_close_icon"
|
|
397
|
+
data-selector-id="button"
|
|
398
|
+
data-test-id="videoLookup_close_icon"
|
|
399
|
+
type="button"
|
|
400
|
+
>
|
|
401
|
+
<i
|
|
402
|
+
aria-hidden="true"
|
|
403
|
+
class="zd_font_icons basic icon-close2 "
|
|
404
|
+
data-id="fontIcon"
|
|
405
|
+
data-selector-id="fontIcon"
|
|
406
|
+
data-test-id="fontIcon"
|
|
407
|
+
style="--zd-iconfont-size: var(--zd_font_size9);"
|
|
408
|
+
/>
|
|
409
|
+
<div
|
|
410
|
+
class="dotted size14"
|
|
411
|
+
>
|
|
412
|
+
esc
|
|
413
|
+
</div>
|
|
414
|
+
</button>
|
|
415
|
+
<div
|
|
416
|
+
class="videoContainer"
|
|
417
|
+
data-id="videoLookup_container"
|
|
418
|
+
data-test-id="videoLookup_container"
|
|
419
|
+
>
|
|
420
|
+
<video
|
|
421
|
+
autoplay=""
|
|
422
|
+
class="videoPlayer"
|
|
423
|
+
controls=""
|
|
424
|
+
>
|
|
425
|
+
<source
|
|
426
|
+
src="https://www.w3schools.com/html/mov_bbb.mp4"
|
|
427
|
+
type="video/mp4"
|
|
428
|
+
/>
|
|
429
|
+
</video>
|
|
430
|
+
</div>
|
|
431
|
+
</div>
|
|
432
|
+
</div>
|
|
433
|
+
</DocumentFragment>
|
|
434
|
+
`;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
.videoContainer {
|
|
2
|
+
height: var(--zd_size567) ;
|
|
3
|
+
width: var(--zd_size1008) ;
|
|
4
|
+
overflow: hidden;
|
|
5
|
+
}
|
|
6
|
+
.close {
|
|
7
|
+
width: var(--zd_size40) ;
|
|
8
|
+
--button_padding: 6px 0;
|
|
9
|
+
--button_text_color: var(--zdt_videolookup_close);
|
|
10
|
+
position: absolute;
|
|
11
|
+
top: var(--zd_size20) ;
|
|
12
|
+
}
|
|
13
|
+
[dir=ltr] .close {
|
|
14
|
+
right: var(--zd_size20) ;
|
|
15
|
+
}
|
|
16
|
+
[dir=rtl] .close {
|
|
17
|
+
left: var(--zd_size20) ;
|
|
18
|
+
}
|
|
19
|
+
.close:hover {
|
|
20
|
+
--button_bg_color: var(--zdt_videolookup_close_hover_bg);
|
|
21
|
+
--button_text_color: var(--zdt_videolookup_close_hover);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* @media screen and (max-width: 1162px) {
|
|
25
|
+
.videoContainer {
|
|
26
|
+
height: 470px;
|
|
27
|
+
width: 836px;
|
|
28
|
+
}
|
|
29
|
+
} */
|
|
30
|
+
|
|
31
|
+
.videoIframe,
|
|
32
|
+
.videoPlayer {
|
|
33
|
+
width: 100% ;
|
|
34
|
+
height: 100% ;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.videoIframe, .videoPlayer {
|
|
38
|
+
border: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@media screen and (max-width: 1162px) {
|
|
42
|
+
.videoContainer {
|
|
43
|
+
height: var(--zd_size470) ;
|
|
44
|
+
width: var(--zd_size836) ;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@media screen and (max-width: 992px) {
|
|
49
|
+
.videoContainer {
|
|
50
|
+
height: var(--zd_size400) ;
|
|
51
|
+
width: var(--zd_size700) ;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@media screen and (max-width: 768px) {
|
|
56
|
+
.videoContainer {
|
|
57
|
+
height: var(--zd_size320) ;
|
|
58
|
+
width: 100% ;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@media screen and (max-width: 480px) {
|
|
63
|
+
.videoContainer {
|
|
64
|
+
height: var(--zd_size240) ;
|
|
65
|
+
width: 100% ;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
export const propTypes = {
|
|
3
|
+
link: PropTypes.string,
|
|
4
|
+
onClose: PropTypes.func,
|
|
5
|
+
isOpened: PropTypes.bool,
|
|
6
|
+
closeText: PropTypes.string,
|
|
7
|
+
isEmbeddedLink: PropTypes.bool,
|
|
8
|
+
testId: PropTypes.string,
|
|
9
|
+
customId: PropTypes.string,
|
|
10
|
+
videoFormat: PropTypes.string,
|
|
11
|
+
customStyle: PropTypes.object
|
|
12
|
+
};
|
|
@@ -761,7 +761,7 @@ exports[`AlertHeader renders with onClose function and closeTitle 1`] = `
|
|
|
761
761
|
>
|
|
762
762
|
<button
|
|
763
763
|
aria-pressed="false"
|
|
764
|
-
class="buttonReset wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
764
|
+
class="buttonReset large wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
765
765
|
data-id="alertHeader_close"
|
|
766
766
|
data-ishtml="false"
|
|
767
767
|
data-selector-id="iconButton"
|
|
@@ -35,4 +35,10 @@
|
|
|
35
35
|
|
|
36
36
|
/* desktop notification */
|
|
37
37
|
--zd_bs_desktopnotification_container: var(--zd_bs_contrast_outline, 0 4px 20px var(--zdt_desktopnotification_box_shadow));
|
|
38
|
+
|
|
39
|
+
/* onboarding */
|
|
40
|
+
--zd_bs_onboarding_close_icon: var(--zd_bs_contrast_outline, 0px 2px 15px rgba(0, 0, 0, 0.09));
|
|
41
|
+
--zd_bs_onboarding_gradient: var(--zd_bs_contrast_outline, 0px 20px 30px 0px var(--zdt_onboarding_bg_box_shadow));
|
|
42
|
+
--zd_bs_onboarding_primary_button: var(--zd_bs_contrast_outline, 0px 4px 20px 0px var(--zdt_onboarding_primary_button_shadow));
|
|
43
|
+
|
|
38
44
|
}
|
|
@@ -165,8 +165,7 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
165
165
|
const {
|
|
166
166
|
TextBoxIconProps = {},
|
|
167
167
|
TagWrapperProps = {},
|
|
168
|
-
TagProps = {}
|
|
169
|
-
ListItemProps = {}
|
|
168
|
+
TagProps = {}
|
|
170
169
|
} = customProps;
|
|
171
170
|
const isEditable = !isReadOnly;
|
|
172
171
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -301,8 +300,7 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
301
300
|
getRef: this.getSelectedItemRef,
|
|
302
301
|
isDisabled: listDisabled,
|
|
303
302
|
customProps: listItemProps,
|
|
304
|
-
customClass: listItemClass
|
|
305
|
-
...ListItemProps
|
|
303
|
+
customClass: listItemClass
|
|
306
304
|
}, isNew ? /*#__PURE__*/React.createElement(Container, {
|
|
307
305
|
alignBox: "row",
|
|
308
306
|
align: "vertical"
|