@ptcwebops/ptcw-design 6.3.36 → 6.3.37
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/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ptc-button.cjs.entry.js +89 -0
- package/dist/cjs/ptc-case-studies-slider.cjs.entry.js +1 -1
- package/dist/cjs/ptc-para.cjs.entry.js +127 -0
- package/dist/cjs/ptc-picture.cjs.entry.js +162 -0
- package/dist/cjs/ptc-spacer.cjs.entry.js +38 -0
- package/dist/cjs/ptc-title.cjs.entry.js +152 -0
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.css +0 -1
- package/dist/collection/stories/Breadcrumb2.stories.js +61 -61
- package/dist/collection/stories/BrightcovVideo.stories.js +20 -20
- package/dist/collection/stories/Checkbox.stories.js +20 -20
- package/dist/collection/stories/CheckboxGroup.stories.js +26 -26
- package/dist/collection/stories/DataLookup.stories.js +20 -20
- package/dist/collection/stories/Hero.stories.js +34 -34
- package/dist/collection/stories/HeroFooterCTA.stories.js +20 -20
- package/dist/collection/stories/SearchField.stories.js +20 -20
- package/dist/collection/stories/Select.stories.js +26 -26
- package/dist/collection/stories/SocialShare.stories.js +82 -82
- package/dist/collection/stories/SvgBtn.stories.js +35 -35
- package/dist/collection/stories/TextCopyWithBackground.stories.js +99 -99
- package/dist/collection/stories/TheaterVideo.stories.js +20 -20
- package/dist/collection/stories/backgroundVideo.stories.js +114 -114
- package/dist/collection/stories/ptcLink2.stories.js +141 -141
- package/dist/custom-elements/index.js +1 -1
- package/dist/esm/blog-detail-content_2.entry.js +1 -1
- package/dist/esm/blog-detail-layout.entry.js +1 -1
- package/dist/esm/blogs-search-section.entry.js +1 -1
- package/dist/esm/homepage-jumbotron.entry.js +1 -1
- package/dist/esm/homepage-toggled-content.entry.js +1 -1
- package/dist/esm/{interfaces-7c0243be.js → interfaces-4caedd26.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/most-popular-news.entry.js +1 -1
- package/dist/esm/my-component.entry.js +1 -1
- package/dist/esm/ptc-accordion-item.entry.js +1 -1
- package/dist/esm/ptc-background-video.entry.js +1 -1
- package/dist/esm/ptc-button.entry.js +85 -0
- package/dist/esm/ptc-case-studies-slider.entry.js +1 -1
- package/dist/esm/ptc-collapse-list.entry.js +1 -1
- package/dist/esm/ptc-form-checkbox_2.entry.js +1 -1
- package/dist/esm/ptc-homepage-image-feature.entry.js +1 -1
- package/dist/esm/ptc-homepage-video-background.entry.js +1 -1
- package/dist/esm/ptc-icon-card.entry.js +1 -1
- package/dist/esm/ptc-img.entry.js +1 -1
- package/dist/esm/ptc-link.entry.js +1 -1
- package/dist/esm/ptc-media-card.entry.js +1 -1
- package/dist/esm/ptc-multi-select_2.entry.js +1 -1
- package/dist/esm/ptc-para.entry.js +123 -0
- package/dist/esm/ptc-picture.entry.js +158 -0
- package/dist/esm/ptc-pricing-packaging-table.entry.js +1 -1
- package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
- package/dist/esm/ptc-social-icons-footer.entry.js +1 -1
- package/dist/esm/ptc-spacer.entry.js +34 -0
- package/dist/esm/ptc-title.entry.js +148 -0
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/esm/{utils-7c68b88a.js → utils-2f12c081.js} +1 -1
- package/dist/ptcw-design/p-0c69ea52.entry.js +1 -0
- package/dist/ptcw-design/{p-dffcfa42.entry.js → p-14b7693f.entry.js} +1 -1
- package/dist/ptcw-design/{p-30bfb2f9.entry.js → p-1eb40265.entry.js} +1 -1
- package/dist/ptcw-design/p-24776ca2.entry.js +1 -0
- package/dist/ptcw-design/{p-673cfd2e.entry.js → p-257267e3.entry.js} +1 -1
- package/dist/ptcw-design/{p-1c99b808.entry.js → p-260e573b.entry.js} +1 -1
- package/dist/ptcw-design/{p-4056c365.entry.js → p-297a14cb.entry.js} +1 -1
- package/dist/ptcw-design/{p-eaa0597a.entry.js → p-38e5e590.entry.js} +1 -1
- package/dist/ptcw-design/{p-5ca42138.entry.js → p-3ed4a7ed.entry.js} +1 -1
- package/dist/ptcw-design/{p-16d47ac5.entry.js → p-45b1f3fc.entry.js} +1 -1
- package/dist/ptcw-design/{p-81e65926.entry.js → p-4702c233.entry.js} +1 -1
- package/dist/ptcw-design/{p-55e344bc.entry.js → p-52e17d34.entry.js} +1 -1
- package/dist/ptcw-design/p-539639ff.entry.js +1 -0
- package/dist/ptcw-design/{p-e6619d63.entry.js → p-614341d6.entry.js} +1 -1
- package/dist/ptcw-design/{p-ee1183b2.js → p-711bcdad.js} +1 -1
- package/dist/ptcw-design/{p-e813ea2b.entry.js → p-76dab076.entry.js} +1 -1
- package/dist/ptcw-design/{p-f377006c.entry.js → p-7e8daa35.entry.js} +1 -1
- package/dist/ptcw-design/{p-826c17e8.js → p-80122e26.js} +1 -1
- package/dist/ptcw-design/{p-a5ad0eff.entry.js → p-8c121480.entry.js} +1 -1
- package/dist/ptcw-design/{p-5bd8b4be.entry.js → p-8cea8943.entry.js} +1 -1
- package/dist/ptcw-design/{p-757e3edb.entry.js → p-8e42a22d.entry.js} +1 -1
- package/dist/ptcw-design/{p-0252726c.entry.js → p-901c31b3.entry.js} +1 -1
- package/dist/ptcw-design/{p-2ba1ef9d.entry.js → p-9dbcfcee.entry.js} +1 -1
- package/dist/ptcw-design/{p-24a6eefa.entry.js → p-a5fc048f.entry.js} +1 -1
- package/dist/ptcw-design/p-a8872ce3.entry.js +1 -0
- package/dist/ptcw-design/{p-50770cc0.entry.js → p-b647f7a1.entry.js} +1 -1
- package/dist/ptcw-design/{p-bcc6712c.entry.js → p-c5f9bafe.entry.js} +1 -1
- package/dist/ptcw-design/{p-80588c84.entry.js → p-d51438de.entry.js} +1 -1
- package/dist/ptcw-design/p-e4eb925f.entry.js +1 -0
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/cjs/ptc-button_5.cjs.entry.js +0 -542
- package/dist/esm/ptc-button_5.entry.js +0 -534
- package/dist/ptcw-design/p-829855f5.entry.js +0 -1
|
@@ -1,100 +1,100 @@
|
|
|
1
|
-
import { html } from 'lit';
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: 'New/ptc-text-copy-with-background',
|
|
5
|
-
tags: [ 'autodocs' ],
|
|
6
|
-
argTypes: {
|
|
7
|
-
type: {
|
|
8
|
-
description: ' Type Specify Type, default is text-copy-with-background',
|
|
9
|
-
defaultValue: { summary: 'text-copy-with-background' },
|
|
10
|
-
control: 'select',
|
|
11
|
-
options: [
|
|
12
|
-
'text-copy-with-background',
|
|
13
|
-
'hero-footer-cta',
|
|
14
|
-
'tab-cta-with-background',
|
|
15
|
-
'case-studies'
|
|
16
|
-
]
|
|
17
|
-
},
|
|
18
|
-
backgroundImage: {
|
|
19
|
-
description: ' Background image',
|
|
20
|
-
defaultValue: { summary: '' },
|
|
21
|
-
control: 'text'
|
|
22
|
-
},
|
|
23
|
-
ImageAltText: {
|
|
24
|
-
description: ' (optional) Image alt text',
|
|
25
|
-
defaultValue: { summary: '' },
|
|
26
|
-
control: 'text'
|
|
27
|
-
},
|
|
28
|
-
topSlitBackgroundColor: {
|
|
29
|
-
description: ' (optional) topSlitBackgroundColor: It will be color value which should match the background of the body. Entering in "auto" will grab the background color of the body on page load.',
|
|
30
|
-
defaultValue: { summary: '' },
|
|
31
|
-
control: 'text'
|
|
32
|
-
},
|
|
33
|
-
slitPosition: {
|
|
34
|
-
description: ' (optional) topSlitPosition: It will decide the position of .',
|
|
35
|
-
defaultValue: { summary: 'top-right' },
|
|
36
|
-
control: 'select',
|
|
37
|
-
options: [ 'top-left', 'top-right', 'bottom-left', 'bottom-right' ]
|
|
38
|
-
},
|
|
39
|
-
isBackgroundBlur: {
|
|
40
|
-
description: ' (optional) isBackgroundBlur: If true,it will add background blur image effect',
|
|
41
|
-
defaultValue: { summary: 'false' },
|
|
42
|
-
control: 'boolean'
|
|
43
|
-
},
|
|
44
|
-
overlay: {
|
|
45
|
-
description: ' (optional) overlay: If true,it will add black overlay with 0.55 opacity',
|
|
46
|
-
defaultValue: { summary: 'true' },
|
|
47
|
-
control: 'boolean'
|
|
48
|
-
},
|
|
49
|
-
disableLightLinks: {
|
|
50
|
-
description: ' (optional) disableLightLinks: If true, it will not add class for links to be lighter for ADA compliance',
|
|
51
|
-
defaultValue: { summary: 'false' },
|
|
52
|
-
control: 'boolean'
|
|
53
|
-
},
|
|
54
|
-
styles: {
|
|
55
|
-
description: ' (optional) Injected CSS Styles',
|
|
56
|
-
defaultValue: { summary: '' },
|
|
57
|
-
control: 'text'
|
|
58
|
-
},
|
|
59
|
-
default: {
|
|
60
|
-
description: 'Default slot content',
|
|
61
|
-
control: 'text',
|
|
62
|
-
table: { category: 'slots' }
|
|
63
|
-
},
|
|
64
|
-
'card-content': {
|
|
65
|
-
description: 'Slot: card-content',
|
|
66
|
-
control: 'text',
|
|
67
|
-
table: { category: 'slots' }
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
const Template = (args) => {
|
|
72
|
-
return html`<ptc-text-copy-with-background
|
|
73
|
-
type=${args.type}
|
|
74
|
-
backgroundImage=${args.backgroundImage}
|
|
75
|
-
ImageAltText=${args.ImageAltText}
|
|
76
|
-
topSlitBackgroundColor=${args.topSlitBackgroundColor}
|
|
77
|
-
slitPosition=${args.slitPosition}
|
|
78
|
-
isBackgroundBlur=${args.isBackgroundBlur}
|
|
79
|
-
overlay=${args.overlay}
|
|
80
|
-
disableLightLinks=${args.disableLightLinks}
|
|
81
|
-
styles=${args.styles}
|
|
82
|
-
>
|
|
83
|
-
${args.default}
|
|
84
|
-
<span slot="card-content">${args.card-content}</span>
|
|
85
|
-
</ptc-text-copy-with-background>`;
|
|
86
|
-
};
|
|
87
|
-
export const Example = Template.bind({});
|
|
88
|
-
Example.args = {
|
|
89
|
-
type: 'text-copy-with-background',
|
|
90
|
-
backgroundImage: '',
|
|
91
|
-
ImageAltText: '',
|
|
92
|
-
topSlitBackgroundColor: '',
|
|
93
|
-
slitPosition: 'top-right',
|
|
94
|
-
isBackgroundBlur: 'false',
|
|
95
|
-
overlay: 'true',
|
|
96
|
-
disableLightLinks: 'false',
|
|
97
|
-
styles: '',
|
|
98
|
-
default: 'Lorem ipsum text',
|
|
99
|
-
'card-content': 'Lorem for card-content'
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'New/ptc-text-copy-with-background',
|
|
5
|
+
tags: [ 'autodocs' ],
|
|
6
|
+
argTypes: {
|
|
7
|
+
type: {
|
|
8
|
+
description: ' Type Specify Type, default is text-copy-with-background',
|
|
9
|
+
defaultValue: { summary: 'text-copy-with-background' },
|
|
10
|
+
control: 'select',
|
|
11
|
+
options: [
|
|
12
|
+
'text-copy-with-background',
|
|
13
|
+
'hero-footer-cta',
|
|
14
|
+
'tab-cta-with-background',
|
|
15
|
+
'case-studies'
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
backgroundImage: {
|
|
19
|
+
description: ' Background image',
|
|
20
|
+
defaultValue: { summary: '' },
|
|
21
|
+
control: 'text'
|
|
22
|
+
},
|
|
23
|
+
ImageAltText: {
|
|
24
|
+
description: ' (optional) Image alt text',
|
|
25
|
+
defaultValue: { summary: '' },
|
|
26
|
+
control: 'text'
|
|
27
|
+
},
|
|
28
|
+
topSlitBackgroundColor: {
|
|
29
|
+
description: ' (optional) topSlitBackgroundColor: It will be color value which should match the background of the body. Entering in "auto" will grab the background color of the body on page load.',
|
|
30
|
+
defaultValue: { summary: '' },
|
|
31
|
+
control: 'text'
|
|
32
|
+
},
|
|
33
|
+
slitPosition: {
|
|
34
|
+
description: ' (optional) topSlitPosition: It will decide the position of .',
|
|
35
|
+
defaultValue: { summary: 'top-right' },
|
|
36
|
+
control: 'select',
|
|
37
|
+
options: [ 'top-left', 'top-right', 'bottom-left', 'bottom-right' ]
|
|
38
|
+
},
|
|
39
|
+
isBackgroundBlur: {
|
|
40
|
+
description: ' (optional) isBackgroundBlur: If true,it will add background blur image effect',
|
|
41
|
+
defaultValue: { summary: 'false' },
|
|
42
|
+
control: 'boolean'
|
|
43
|
+
},
|
|
44
|
+
overlay: {
|
|
45
|
+
description: ' (optional) overlay: If true,it will add black overlay with 0.55 opacity',
|
|
46
|
+
defaultValue: { summary: 'true' },
|
|
47
|
+
control: 'boolean'
|
|
48
|
+
},
|
|
49
|
+
disableLightLinks: {
|
|
50
|
+
description: ' (optional) disableLightLinks: If true, it will not add class for links to be lighter for ADA compliance',
|
|
51
|
+
defaultValue: { summary: 'false' },
|
|
52
|
+
control: 'boolean'
|
|
53
|
+
},
|
|
54
|
+
styles: {
|
|
55
|
+
description: ' (optional) Injected CSS Styles',
|
|
56
|
+
defaultValue: { summary: '' },
|
|
57
|
+
control: 'text'
|
|
58
|
+
},
|
|
59
|
+
default: {
|
|
60
|
+
description: 'Default slot content',
|
|
61
|
+
control: 'text',
|
|
62
|
+
table: { category: 'slots' }
|
|
63
|
+
},
|
|
64
|
+
'card-content': {
|
|
65
|
+
description: 'Slot: card-content',
|
|
66
|
+
control: 'text',
|
|
67
|
+
table: { category: 'slots' }
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
const Template = (args) => {
|
|
72
|
+
return html`<ptc-text-copy-with-background
|
|
73
|
+
type=${args.type}
|
|
74
|
+
backgroundImage=${args.backgroundImage}
|
|
75
|
+
ImageAltText=${args.ImageAltText}
|
|
76
|
+
topSlitBackgroundColor=${args.topSlitBackgroundColor}
|
|
77
|
+
slitPosition=${args.slitPosition}
|
|
78
|
+
isBackgroundBlur=${args.isBackgroundBlur}
|
|
79
|
+
overlay=${args.overlay}
|
|
80
|
+
disableLightLinks=${args.disableLightLinks}
|
|
81
|
+
styles=${args.styles}
|
|
82
|
+
>
|
|
83
|
+
${args.default}
|
|
84
|
+
<span slot="card-content">${args.card-content}</span>
|
|
85
|
+
</ptc-text-copy-with-background>`;
|
|
86
|
+
};
|
|
87
|
+
export const Example = Template.bind({});
|
|
88
|
+
Example.args = {
|
|
89
|
+
type: 'text-copy-with-background',
|
|
90
|
+
backgroundImage: '',
|
|
91
|
+
ImageAltText: '',
|
|
92
|
+
topSlitBackgroundColor: '',
|
|
93
|
+
slitPosition: 'top-right',
|
|
94
|
+
isBackgroundBlur: 'false',
|
|
95
|
+
overlay: 'true',
|
|
96
|
+
disableLightLinks: 'false',
|
|
97
|
+
styles: '',
|
|
98
|
+
default: 'Lorem ipsum text',
|
|
99
|
+
'card-content': 'Lorem for card-content'
|
|
100
100
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { html } from 'lit';
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: 'New/ptc-theater-video',
|
|
5
|
-
tags: [ 'autodocs' ],
|
|
6
|
-
argTypes: {
|
|
7
|
-
default: {
|
|
8
|
-
description: 'Default slot content',
|
|
9
|
-
control: 'text',
|
|
10
|
-
table: { category: 'slots' }
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
const Template = (args) => {
|
|
15
|
-
return html`<ptc-theater-video
|
|
16
|
-
>
|
|
17
|
-
${args.default}
|
|
18
|
-
</ptc-theater-video>`;
|
|
19
|
-
};
|
|
20
|
-
export const Example = Template.bind({});
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'New/ptc-theater-video',
|
|
5
|
+
tags: [ 'autodocs' ],
|
|
6
|
+
argTypes: {
|
|
7
|
+
default: {
|
|
8
|
+
description: 'Default slot content',
|
|
9
|
+
control: 'text',
|
|
10
|
+
table: { category: 'slots' }
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
const Template = (args) => {
|
|
15
|
+
return html`<ptc-theater-video
|
|
16
|
+
>
|
|
17
|
+
${args.default}
|
|
18
|
+
</ptc-theater-video>`;
|
|
19
|
+
};
|
|
20
|
+
export const Example = Template.bind({});
|
|
21
21
|
Example.args = { default: 'Lorem ipsum text' };
|
|
@@ -1,115 +1,115 @@
|
|
|
1
|
-
import { html } from 'lit';
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: 'New/ptc-background-video',
|
|
5
|
-
tags: [ 'autodocs' ],
|
|
6
|
-
argTypes: {
|
|
7
|
-
videoSrc: {
|
|
8
|
-
description: ' Video url',
|
|
9
|
-
defaultValue: { summary: '' },
|
|
10
|
-
control: 'text'
|
|
11
|
-
},
|
|
12
|
-
posterSrc: {
|
|
13
|
-
description: ' Poster url(Placeholder image till the video get the loaded)',
|
|
14
|
-
defaultValue: { summary: '' },
|
|
15
|
-
control: 'text'
|
|
16
|
-
},
|
|
17
|
-
overlay: {
|
|
18
|
-
description: ' Overlay(Optional, By default is true)',
|
|
19
|
-
defaultValue: { summary: 'true' },
|
|
20
|
-
control: 'boolean'
|
|
21
|
-
},
|
|
22
|
-
overlayType: {
|
|
23
|
-
description: ' Overlay Type standard is gray gradient. dark is dark gradient',
|
|
24
|
-
defaultValue: { summary: 'standard' },
|
|
25
|
-
control: 'select',
|
|
26
|
-
options: [ 'standard', 'dark' ]
|
|
27
|
-
},
|
|
28
|
-
playButtonTitle: {
|
|
29
|
-
description: ' Play Button Title',
|
|
30
|
-
defaultValue: { summary: '' },
|
|
31
|
-
control: 'text'
|
|
32
|
-
},
|
|
33
|
-
pauseButtonTitle: {
|
|
34
|
-
description: ' Pause Button Title',
|
|
35
|
-
defaultValue: { summary: '' },
|
|
36
|
-
control: 'text'
|
|
37
|
-
},
|
|
38
|
-
buttonLocation: {
|
|
39
|
-
description: ' Pause Button Location',
|
|
40
|
-
defaultValue: { summary: 'bottom-right' },
|
|
41
|
-
control: 'select',
|
|
42
|
-
options: [
|
|
43
|
-
'top-left',
|
|
44
|
-
'top-right',
|
|
45
|
-
'bottom-left',
|
|
46
|
-
'bottom-right',
|
|
47
|
-
'allbp-bottom-right'
|
|
48
|
-
]
|
|
49
|
-
},
|
|
50
|
-
buttonTabIndex: {
|
|
51
|
-
description: ' Play/Pause Index',
|
|
52
|
-
defaultValue: { summary: '0' }
|
|
53
|
-
},
|
|
54
|
-
trackerId: {
|
|
55
|
-
description: ' Play and Pause Video / @State() paused: boolean; / tracker Id',
|
|
56
|
-
defaultValue: { summary: '' },
|
|
57
|
-
control: 'text'
|
|
58
|
-
},
|
|
59
|
-
defer: {
|
|
60
|
-
description: ' delay loading of video to improve perfomance',
|
|
61
|
-
defaultValue: { summary: '' },
|
|
62
|
-
control: 'boolean'
|
|
63
|
-
},
|
|
64
|
-
type: {
|
|
65
|
-
description: ' Video implementation type: default: Content need to add in tag Ex: <ptc-background-video>Content </ptc-background-video> legacy: Add the blank tag in any other setcon having relative parent. Ex: <div class="section" style="position: relative;"> <ptc-background-video></ptc-background-video> Content </div>',
|
|
66
|
-
defaultValue: { summary: 'default' },
|
|
67
|
-
control: 'select',
|
|
68
|
-
options: [ 'default', 'legacy' ]
|
|
69
|
-
},
|
|
70
|
-
isIframe: {
|
|
71
|
-
description: ' Is it a iframe?',
|
|
72
|
-
defaultValue: { summary: 'false' },
|
|
73
|
-
control: 'boolean'
|
|
74
|
-
},
|
|
75
|
-
default: {
|
|
76
|
-
description: 'Default slot content',
|
|
77
|
-
control: 'text',
|
|
78
|
-
table: { category: 'slots' }
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
const Template = (args) => {
|
|
83
|
-
return html`<ptc-background-video
|
|
84
|
-
videoSrc=${args.videoSrc}
|
|
85
|
-
posterSrc=${args.posterSrc}
|
|
86
|
-
overlay=${args.overlay}
|
|
87
|
-
overlayType=${args.overlayType}
|
|
88
|
-
playButtonTitle=${args.playButtonTitle}
|
|
89
|
-
pauseButtonTitle=${args.pauseButtonTitle}
|
|
90
|
-
buttonLocation=${args.buttonLocation}
|
|
91
|
-
buttonTabIndex=${args.buttonTabIndex}
|
|
92
|
-
trackerId=${args.trackerId}
|
|
93
|
-
defer=${args.defer}
|
|
94
|
-
type=${args.type}
|
|
95
|
-
isIframe=${args.isIframe}
|
|
96
|
-
>
|
|
97
|
-
${args.default}
|
|
98
|
-
</ptc-background-video>`;
|
|
99
|
-
};
|
|
100
|
-
export const Example = Template.bind({});
|
|
101
|
-
Example.args = {
|
|
102
|
-
videoSrc: '',
|
|
103
|
-
posterSrc: '',
|
|
104
|
-
overlay: 'true',
|
|
105
|
-
overlayType: 'standard',
|
|
106
|
-
playButtonTitle: '',
|
|
107
|
-
pauseButtonTitle: '',
|
|
108
|
-
buttonLocation: 'bottom-right',
|
|
109
|
-
buttonTabIndex: '0',
|
|
110
|
-
trackerId: '',
|
|
111
|
-
defer: '',
|
|
112
|
-
type: 'default',
|
|
113
|
-
isIframe: 'false',
|
|
114
|
-
default: 'Lorem ipsum text'
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'New/ptc-background-video',
|
|
5
|
+
tags: [ 'autodocs' ],
|
|
6
|
+
argTypes: {
|
|
7
|
+
videoSrc: {
|
|
8
|
+
description: ' Video url',
|
|
9
|
+
defaultValue: { summary: '' },
|
|
10
|
+
control: 'text'
|
|
11
|
+
},
|
|
12
|
+
posterSrc: {
|
|
13
|
+
description: ' Poster url(Placeholder image till the video get the loaded)',
|
|
14
|
+
defaultValue: { summary: '' },
|
|
15
|
+
control: 'text'
|
|
16
|
+
},
|
|
17
|
+
overlay: {
|
|
18
|
+
description: ' Overlay(Optional, By default is true)',
|
|
19
|
+
defaultValue: { summary: 'true' },
|
|
20
|
+
control: 'boolean'
|
|
21
|
+
},
|
|
22
|
+
overlayType: {
|
|
23
|
+
description: ' Overlay Type standard is gray gradient. dark is dark gradient',
|
|
24
|
+
defaultValue: { summary: 'standard' },
|
|
25
|
+
control: 'select',
|
|
26
|
+
options: [ 'standard', 'dark' ]
|
|
27
|
+
},
|
|
28
|
+
playButtonTitle: {
|
|
29
|
+
description: ' Play Button Title',
|
|
30
|
+
defaultValue: { summary: '' },
|
|
31
|
+
control: 'text'
|
|
32
|
+
},
|
|
33
|
+
pauseButtonTitle: {
|
|
34
|
+
description: ' Pause Button Title',
|
|
35
|
+
defaultValue: { summary: '' },
|
|
36
|
+
control: 'text'
|
|
37
|
+
},
|
|
38
|
+
buttonLocation: {
|
|
39
|
+
description: ' Pause Button Location',
|
|
40
|
+
defaultValue: { summary: 'bottom-right' },
|
|
41
|
+
control: 'select',
|
|
42
|
+
options: [
|
|
43
|
+
'top-left',
|
|
44
|
+
'top-right',
|
|
45
|
+
'bottom-left',
|
|
46
|
+
'bottom-right',
|
|
47
|
+
'allbp-bottom-right'
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
buttonTabIndex: {
|
|
51
|
+
description: ' Play/Pause Index',
|
|
52
|
+
defaultValue: { summary: '0' }
|
|
53
|
+
},
|
|
54
|
+
trackerId: {
|
|
55
|
+
description: ' Play and Pause Video / @State() paused: boolean; / tracker Id',
|
|
56
|
+
defaultValue: { summary: '' },
|
|
57
|
+
control: 'text'
|
|
58
|
+
},
|
|
59
|
+
defer: {
|
|
60
|
+
description: ' delay loading of video to improve perfomance',
|
|
61
|
+
defaultValue: { summary: '' },
|
|
62
|
+
control: 'boolean'
|
|
63
|
+
},
|
|
64
|
+
type: {
|
|
65
|
+
description: ' Video implementation type: default: Content need to add in tag Ex: <ptc-background-video>Content </ptc-background-video> legacy: Add the blank tag in any other setcon having relative parent. Ex: <div class="section" style="position: relative;"> <ptc-background-video></ptc-background-video> Content </div>',
|
|
66
|
+
defaultValue: { summary: 'default' },
|
|
67
|
+
control: 'select',
|
|
68
|
+
options: [ 'default', 'legacy' ]
|
|
69
|
+
},
|
|
70
|
+
isIframe: {
|
|
71
|
+
description: ' Is it a iframe?',
|
|
72
|
+
defaultValue: { summary: 'false' },
|
|
73
|
+
control: 'boolean'
|
|
74
|
+
},
|
|
75
|
+
default: {
|
|
76
|
+
description: 'Default slot content',
|
|
77
|
+
control: 'text',
|
|
78
|
+
table: { category: 'slots' }
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
const Template = (args) => {
|
|
83
|
+
return html`<ptc-background-video
|
|
84
|
+
videoSrc=${args.videoSrc}
|
|
85
|
+
posterSrc=${args.posterSrc}
|
|
86
|
+
overlay=${args.overlay}
|
|
87
|
+
overlayType=${args.overlayType}
|
|
88
|
+
playButtonTitle=${args.playButtonTitle}
|
|
89
|
+
pauseButtonTitle=${args.pauseButtonTitle}
|
|
90
|
+
buttonLocation=${args.buttonLocation}
|
|
91
|
+
buttonTabIndex=${args.buttonTabIndex}
|
|
92
|
+
trackerId=${args.trackerId}
|
|
93
|
+
defer=${args.defer}
|
|
94
|
+
type=${args.type}
|
|
95
|
+
isIframe=${args.isIframe}
|
|
96
|
+
>
|
|
97
|
+
${args.default}
|
|
98
|
+
</ptc-background-video>`;
|
|
99
|
+
};
|
|
100
|
+
export const Example = Template.bind({});
|
|
101
|
+
Example.args = {
|
|
102
|
+
videoSrc: '',
|
|
103
|
+
posterSrc: '',
|
|
104
|
+
overlay: 'true',
|
|
105
|
+
overlayType: 'standard',
|
|
106
|
+
playButtonTitle: '',
|
|
107
|
+
pauseButtonTitle: '',
|
|
108
|
+
buttonLocation: 'bottom-right',
|
|
109
|
+
buttonTabIndex: '0',
|
|
110
|
+
trackerId: '',
|
|
111
|
+
defer: '',
|
|
112
|
+
type: 'default',
|
|
113
|
+
isIframe: 'false',
|
|
114
|
+
default: 'Lorem ipsum text'
|
|
115
115
|
};
|