@ptcwebops/ptcw-design 6.3.21 → 6.3.22-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (244) hide show
  1. package/dist/cjs/{component-35540bfb.js → component-4dd13907.js} +2643 -832
  2. package/dist/cjs/featured-list.cjs.entry.js +1 -1
  3. package/dist/cjs/innovator-toggle-container.cjs.entry.js +1 -1
  4. package/dist/cjs/jumbotron-sub-menu.cjs.entry.js +1 -1
  5. package/dist/cjs/list-item.cjs.entry.js +1 -1
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/modal-form-example.cjs.entry.js +94 -0
  8. package/dist/cjs/ptc-back-to-top.cjs.entry.js +1 -16
  9. package/dist/cjs/ptc-bio-card.cjs.entry.js +5 -20
  10. package/dist/cjs/ptc-card_2.cjs.entry.js +5 -10
  11. package/dist/cjs/ptc-case-studies-slider.cjs.entry.js +6 -2
  12. package/dist/cjs/ptc-close-icon_2.cjs.entry.js +17 -32
  13. package/dist/cjs/ptc-data-lookup.cjs.entry.js +1 -2
  14. package/dist/cjs/ptc-dynamic-card.cjs.entry.js +1 -1
  15. package/dist/cjs/ptc-enhanced-product-listing-card.cjs.entry.js +1 -1
  16. package/dist/cjs/ptc-featured-list.cjs.entry.js +1 -1
  17. package/dist/cjs/ptc-filter-level-theater.cjs.entry.js +1 -1
  18. package/dist/cjs/{ptc-form-checkbox_2.cjs.entry.js → ptc-form-checkbox_4.cjs.entry.js} +787 -5
  19. package/dist/cjs/ptc-icon-list.cjs.entry.js +1 -1
  20. package/dist/cjs/ptc-info-tile.cjs.entry.js +1 -2
  21. package/dist/cjs/ptc-jumbotron.cjs.entry.js +1 -1
  22. package/dist/cjs/ptc-nav-skip-to-content.cjs.entry.js +3 -28
  23. package/dist/cjs/ptc-para.cjs.entry.js +1 -1
  24. package/dist/cjs/ptc-podcast-card.cjs.entry.js +1 -1
  25. package/dist/cjs/ptc-previous-url.cjs.entry.js +10 -2
  26. package/dist/cjs/ptc-pricing-packaging-table.cjs.entry.js +11 -9
  27. package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +1 -1
  28. package/dist/cjs/ptc-product-card.cjs.entry.js +2 -2
  29. package/dist/cjs/ptc-product-category.cjs.entry.js +1 -1
  30. package/dist/cjs/ptc-product-dropdown.cjs.entry.js +2 -2
  31. package/dist/cjs/ptc-product-highlight-card.cjs.entry.js +1 -1
  32. package/dist/cjs/ptc-product-list.cjs.entry.js +1 -7
  33. package/dist/cjs/ptc-product-sidebar.cjs.entry.js +6 -38
  34. package/dist/cjs/ptc-readmore-char.cjs.entry.js +1 -1
  35. package/dist/cjs/ptc-readmore-v3.cjs.entry.js +1 -1
  36. package/dist/cjs/ptc-related-card-rail.cjs.entry.js +32 -90
  37. package/dist/cjs/ptc-tooltip-v2.cjs.entry.js +1 -1
  38. package/dist/cjs/ptc-value-led-speed-bump.cjs.entry.js +1 -1
  39. package/dist/cjs/ptc-white-paper.cjs.entry.js +10 -6
  40. package/dist/cjs/ptcw-design.cjs.js +1 -1
  41. package/dist/cjs/tab-header.cjs.entry.js +1 -1
  42. package/dist/collection/collection-manifest.json +1 -0
  43. package/dist/collection/components/icon-asset/media/designer-v6.0.6.svg +30 -2
  44. package/dist/collection/components/innovator-toggle-container/innovator-toggle-container.css +6 -6
  45. package/dist/collection/components/jumbotron-sub-menu/jumbotron-sub-menu.css +0 -1
  46. package/dist/collection/components/list-item/list-item.css +0 -4
  47. package/dist/collection/components/organism-bundles/bundle-featured-list/featured-list.css +3 -3
  48. package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.css +26 -0
  49. package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.js +99 -0
  50. package/dist/collection/components/ptc-back-to-top/ptc-back-to-top.css +0 -4
  51. package/dist/collection/components/ptc-back-to-top/ptc-back-to-top.js +0 -15
  52. package/dist/collection/components/ptc-bio-card/ptc-bio-card.css +6 -10
  53. package/dist/collection/components/ptc-bio-card/ptc-bio-card.js +4 -19
  54. package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.css +6 -6
  55. package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.js +5 -1
  56. package/dist/collection/components/ptc-container/ptc-container.js +2 -2
  57. package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.css +1 -1
  58. package/dist/collection/components/ptc-enhanced-product-listing-card/ptc-enhanced-product-listing-card.css +0 -16
  59. package/dist/collection/components/ptc-featured-list/ptc-featured-list.css +6 -6
  60. package/dist/collection/components/ptc-filter-level-theater/ptc-filter-level-theater.css +6 -6
  61. package/dist/collection/components/ptc-icon-list/ptc-icon-list.css +0 -3
  62. package/dist/collection/components/ptc-info-tile/ptc-info-tile.js +1 -20
  63. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +6 -6
  64. package/dist/collection/components/ptc-modal/ptc-modal.css +4 -0
  65. package/dist/collection/components/ptc-modal/ptc-modal.js +18 -50
  66. package/dist/collection/components/ptc-nav-skip-to-content/ptc-nav-skip-to-content.css +0 -7
  67. package/dist/collection/components/ptc-nav-skip-to-content/ptc-nav-skip-to-content.js +2 -78
  68. package/dist/collection/components/ptc-para/ptc-para.css +3 -0
  69. package/dist/collection/components/ptc-para/ptc-para.js +2 -2
  70. package/dist/collection/components/ptc-podcast-card/ptc-podcast-card.css +6 -6
  71. package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.css +0 -419
  72. package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.js +4 -9
  73. package/dist/collection/components/ptc-previous-url/ptc-previous-url.css +16 -0
  74. package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +27 -1
  75. package/dist/collection/components/ptc-pricing-packaging-table/ptc-pricing-packaging-table.js +11 -9
  76. package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.js +1 -1
  77. package/dist/collection/components/ptc-product-card/ptc-product-card.css +6 -10
  78. package/dist/collection/components/ptc-product-card/ptc-product-card.js +1 -1
  79. package/dist/collection/components/ptc-product-category/ptc-product-category.css +6 -6
  80. package/dist/collection/components/ptc-product-dropdown/ptc-product-dropdown.css +0 -8
  81. package/dist/collection/components/ptc-product-dropdown/ptc-product-dropdown.js +1 -1
  82. package/dist/collection/components/ptc-product-highlight-card/ptc-product-highlight-card.css +6 -6
  83. package/dist/collection/components/ptc-product-list/ptc-product-list.js +1 -7
  84. package/dist/collection/components/ptc-product-sidebar/ptc-product-sidebar.css +0 -12
  85. package/dist/collection/components/ptc-product-sidebar/ptc-product-sidebar.js +5 -37
  86. package/dist/collection/components/ptc-readmore-char/ptc-readmore-char.css +6 -6
  87. package/dist/collection/components/ptc-readmore-v3/ptc-readmore-v3.css +6 -6
  88. package/dist/collection/components/ptc-related-card-rail/ptc-related-card-rail.css +2 -1
  89. package/dist/collection/components/ptc-related-card-rail/ptc-related-card-rail.js +33 -113
  90. package/dist/collection/components/ptc-textfield/ptc-textfield.js +19 -19
  91. package/dist/collection/components/ptc-tooltip-v2/ptc-tooltip-v2.css +6 -6
  92. package/dist/collection/components/ptc-value-led-speed-bump/ptc-value-led-speed-bump.css +6 -6
  93. package/dist/collection/components/ptc-white-paper/ptc-white-paper.css +6 -6
  94. package/dist/collection/components/ptc-white-paper/ptc-white-paper.js +9 -5
  95. package/dist/collection/components/tab-header/tab-header.js +1 -1
  96. package/dist/collection/stories/Card.stories.js +148 -3
  97. package/dist/collection/stories/Link.stories.js +13 -25
  98. package/dist/collection/stories/Paragraph.stories.js +10 -18
  99. package/dist/collection/stories/Select.stories.js +8 -5
  100. package/dist/collection/stories/Textfield.stories.js +28 -71
  101. package/dist/collection/stories/Title.stories.js +16 -28
  102. package/dist/collection/stories/organisms/eSupport/CaseTracker/preview.stories.js +45 -0
  103. package/dist/collection/stories/organisms/eSupport/SupportArticle/preview.stories.js +47 -0
  104. package/dist/collection/stories/organisms/eSupport/SupportPage/preview.stories.js +157 -0
  105. package/dist/custom-elements/index.d.ts +6 -0
  106. package/dist/custom-elements/index.js +230 -293
  107. package/dist/esm/{component-8c53e377.js → component-9c921cc6.js} +2592 -793
  108. package/dist/esm/featured-list.entry.js +1 -1
  109. package/dist/esm/innovator-toggle-container.entry.js +1 -1
  110. package/dist/esm/jumbotron-sub-menu.entry.js +1 -1
  111. package/dist/esm/list-item.entry.js +1 -1
  112. package/dist/esm/loader.js +1 -1
  113. package/dist/esm/modal-form-example.entry.js +90 -0
  114. package/dist/esm/ptc-back-to-top.entry.js +1 -16
  115. package/dist/esm/ptc-bio-card.entry.js +5 -20
  116. package/dist/esm/ptc-card_2.entry.js +5 -10
  117. package/dist/esm/ptc-case-studies-slider.entry.js +6 -2
  118. package/dist/esm/ptc-close-icon_2.entry.js +17 -32
  119. package/dist/esm/ptc-data-lookup.entry.js +1 -2
  120. package/dist/esm/ptc-dynamic-card.entry.js +1 -1
  121. package/dist/esm/ptc-enhanced-product-listing-card.entry.js +1 -1
  122. package/dist/esm/ptc-featured-list.entry.js +1 -1
  123. package/dist/esm/ptc-filter-level-theater.entry.js +1 -1
  124. package/dist/esm/{ptc-form-checkbox_2.entry.js → ptc-form-checkbox_4.entry.js} +784 -4
  125. package/dist/esm/ptc-icon-list.entry.js +1 -1
  126. package/dist/esm/ptc-info-tile.entry.js +1 -2
  127. package/dist/esm/ptc-jumbotron.entry.js +1 -1
  128. package/dist/esm/ptc-nav-skip-to-content.entry.js +3 -28
  129. package/dist/esm/ptc-para.entry.js +1 -1
  130. package/dist/esm/ptc-podcast-card.entry.js +1 -1
  131. package/dist/esm/ptc-previous-url.entry.js +10 -2
  132. package/dist/esm/ptc-pricing-packaging-table.entry.js +11 -9
  133. package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
  134. package/dist/esm/ptc-product-card.entry.js +2 -2
  135. package/dist/esm/ptc-product-category.entry.js +1 -1
  136. package/dist/esm/ptc-product-dropdown.entry.js +2 -2
  137. package/dist/esm/ptc-product-highlight-card.entry.js +1 -1
  138. package/dist/esm/ptc-product-list.entry.js +1 -7
  139. package/dist/esm/ptc-product-sidebar.entry.js +6 -38
  140. package/dist/esm/ptc-readmore-char.entry.js +1 -1
  141. package/dist/esm/ptc-readmore-v3.entry.js +1 -1
  142. package/dist/esm/ptc-related-card-rail.entry.js +32 -90
  143. package/dist/esm/ptc-tooltip-v2.entry.js +1 -1
  144. package/dist/esm/ptc-value-led-speed-bump.entry.js +1 -1
  145. package/dist/esm/ptc-white-paper.entry.js +10 -6
  146. package/dist/esm/ptcw-design.js +1 -1
  147. package/dist/esm/tab-header.entry.js +1 -1
  148. package/dist/ptcw-design/media/designer-v6.0.6.svg +30 -2
  149. package/dist/ptcw-design/{p-752bba1c.entry.js → p-0529caaa.entry.js} +1 -1
  150. package/dist/ptcw-design/p-072a76d3.entry.js +1 -0
  151. package/dist/ptcw-design/{p-a791c53a.entry.js → p-0b515839.entry.js} +1 -1
  152. package/dist/ptcw-design/p-0d223232.entry.js +1 -0
  153. package/dist/ptcw-design/p-0de4cd11.entry.js +1 -0
  154. package/dist/ptcw-design/p-21aa746d.entry.js +1 -0
  155. package/dist/ptcw-design/{p-24776ca2.entry.js → p-2cc7e2a8.entry.js} +1 -1
  156. package/dist/ptcw-design/p-32f64f48.entry.js +1 -0
  157. package/dist/ptcw-design/p-3dac861d.entry.js +1 -0
  158. package/dist/ptcw-design/{p-d089dc37.entry.js → p-3dd0ded9.entry.js} +1 -1
  159. package/dist/ptcw-design/{p-4d8f6f46.entry.js → p-445329ed.entry.js} +1 -1
  160. package/dist/ptcw-design/{p-68ed2afe.entry.js → p-48c5eab8.entry.js} +1 -1
  161. package/dist/ptcw-design/p-4b192f5e.entry.js +1 -0
  162. package/dist/ptcw-design/p-4f93c631.entry.js +1 -0
  163. package/dist/ptcw-design/p-5311c6e1.entry.js +1 -0
  164. package/dist/ptcw-design/p-58e91cb8.entry.js +1 -0
  165. package/dist/ptcw-design/p-5db7f70b.entry.js +1 -0
  166. package/dist/ptcw-design/p-67c248ec.entry.js +1 -0
  167. package/dist/ptcw-design/p-71fbb799.entry.js +1 -0
  168. package/dist/ptcw-design/p-75390f63.entry.js +1 -0
  169. package/dist/ptcw-design/{p-e3b1af2b.entry.js → p-7793babb.entry.js} +1 -1
  170. package/dist/ptcw-design/p-799afee5.entry.js +1 -0
  171. package/dist/ptcw-design/p-8038bf31.entry.js +1 -0
  172. package/dist/ptcw-design/p-9501995f.entry.js +1 -0
  173. package/dist/ptcw-design/p-97b9f41b.entry.js +1 -0
  174. package/dist/ptcw-design/p-99ee8a0e.entry.js +1 -0
  175. package/dist/ptcw-design/p-9d612f1f.entry.js +1 -0
  176. package/dist/ptcw-design/p-a89b986a.entry.js +68 -0
  177. package/dist/ptcw-design/p-b50f71dd.entry.js +1 -0
  178. package/dist/ptcw-design/{p-757954b2.entry.js → p-b570e9a5.entry.js} +1 -1
  179. package/dist/ptcw-design/p-baff4d44.entry.js +1 -0
  180. package/dist/ptcw-design/p-bcab66bf.js +336 -0
  181. package/dist/ptcw-design/p-c788f16f.entry.js +1 -0
  182. package/dist/ptcw-design/{p-18ac526f.entry.js → p-d73cc053.entry.js} +1 -1
  183. package/dist/ptcw-design/p-de960790.entry.js +1 -0
  184. package/dist/ptcw-design/p-e6a272d9.entry.js +1 -0
  185. package/dist/ptcw-design/p-f1734520.entry.js +1 -0
  186. package/dist/ptcw-design/{p-0ddf2a09.entry.js → p-f867ebe6.entry.js} +1 -1
  187. package/dist/ptcw-design/p-fe40421e.entry.js +1 -0
  188. package/dist/ptcw-design/ptcw-design.css +2 -2
  189. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  190. package/dist/types/components/organism-bundles/form/modal-from-example/modal-form-example.d.ts +25 -0
  191. package/dist/types/components/ptc-bio-card/ptc-bio-card.d.ts +1 -1
  192. package/dist/types/components/ptc-container/ptc-container.d.ts +1 -1
  193. package/dist/types/components/ptc-info-tile/ptc-info-tile.d.ts +0 -1
  194. package/dist/types/components/ptc-mobile-select/mobile-select/dist/mobile-select.d.ts +209 -0
  195. package/dist/types/components/ptc-modal/ptc-modal.d.ts +2 -2
  196. package/dist/types/components/ptc-nav-skip-to-content/ptc-nav-skip-to-content.d.ts +0 -6
  197. package/dist/types/components/ptc-para/ptc-para.d.ts +1 -1
  198. package/dist/types/components/ptc-previous-url/ptc-previous-url.d.ts +2 -0
  199. package/dist/types/components/ptc-product-list/ptc-product-list.d.ts +1 -1
  200. package/dist/types/components/ptc-product-sidebar/ptc-product-sidebar.d.ts +3 -6
  201. package/dist/types/components/ptc-related-card-rail/ptc-related-card-rail.d.ts +5 -12
  202. package/dist/types/components/ptc-textfield/ptc-textfield.d.ts +0 -54
  203. package/dist/types/components.d.ts +21 -126
  204. package/dist/types/utils/eloqua.d.ts +9 -0
  205. package/package.json +2 -6
  206. package/readme.md +5 -1
  207. package/dist/cjs/component-1b8ad4d2.js +0 -1819
  208. package/dist/cjs/ptc-multi-select_2.cjs.entry.js +0 -670
  209. package/dist/cjs/validation-messages-33a4f26b.js +0 -126
  210. package/dist/collection/stories/Jumbotron.stories.js +0 -763
  211. package/dist/esm/component-9beac35b.js +0 -1802
  212. package/dist/esm/ptc-multi-select_2.entry.js +0 -665
  213. package/dist/esm/validation-messages-adbb6518.js +0 -124
  214. package/dist/ptcw-design/p-00e21489.entry.js +0 -1
  215. package/dist/ptcw-design/p-05c29cc2.entry.js +0 -1
  216. package/dist/ptcw-design/p-13e338a5.entry.js +0 -1
  217. package/dist/ptcw-design/p-1454ba84.entry.js +0 -1
  218. package/dist/ptcw-design/p-18a5a338.js +0 -1
  219. package/dist/ptcw-design/p-352e87c0.entry.js +0 -1
  220. package/dist/ptcw-design/p-38e5e590.entry.js +0 -1
  221. package/dist/ptcw-design/p-4737a0f6.entry.js +0 -1
  222. package/dist/ptcw-design/p-4ca956c1.entry.js +0 -1
  223. package/dist/ptcw-design/p-593b8eff.entry.js +0 -1
  224. package/dist/ptcw-design/p-73a853fc.entry.js +0 -1
  225. package/dist/ptcw-design/p-75431fa1.entry.js +0 -1
  226. package/dist/ptcw-design/p-98426799.js +0 -203
  227. package/dist/ptcw-design/p-98844b50.js +0 -134
  228. package/dist/ptcw-design/p-a2c7df64.entry.js +0 -1
  229. package/dist/ptcw-design/p-a58698ca.entry.js +0 -1
  230. package/dist/ptcw-design/p-acdd9a1d.entry.js +0 -1
  231. package/dist/ptcw-design/p-ad821a01.entry.js +0 -1
  232. package/dist/ptcw-design/p-b6255525.entry.js +0 -1
  233. package/dist/ptcw-design/p-b7fa9f2c.entry.js +0 -1
  234. package/dist/ptcw-design/p-b963ec8c.entry.js +0 -68
  235. package/dist/ptcw-design/p-bb9a879f.entry.js +0 -1
  236. package/dist/ptcw-design/p-bf84ecc0.entry.js +0 -1
  237. package/dist/ptcw-design/p-c82eaf9d.entry.js +0 -1
  238. package/dist/ptcw-design/p-cad4b517.entry.js +0 -1
  239. package/dist/ptcw-design/p-d6845e91.entry.js +0 -1
  240. package/dist/ptcw-design/p-db1dcce0.entry.js +0 -1
  241. package/dist/ptcw-design/p-ddb898c7.entry.js +0 -1
  242. package/dist/ptcw-design/p-e6619d63.entry.js +0 -1
  243. package/dist/ptcw-design/p-f9256e3d.entry.js +0 -1
  244. package/dist/ptcw-design/p-fbd9c8fc.entry.js +0 -1
@@ -1,763 +0,0 @@
1
- import { html } from 'lit';
2
-
3
- export default {
4
- title: 'Molecules/ptc-jumbotron',
5
- tags: ['autodocs'],
6
- // argTypes: {
7
- // bgSrc: {
8
- // control: 'text',
9
- // description: 'Set this value when the jubmotron type is dark or light',
10
- // defaultValue: { summary: '' },
11
- // },
12
- // bgVideoPosterSrc: {
13
- // control: 'text',
14
- // description: 'Set this value when you need a poster for the background video',
15
- // defaultValue: { summary: '' },
16
- // },
17
- // bgVideoSrc: {
18
- // control: 'text',
19
- // description: 'Set this value when the jumbotron type is dark-video or light-video',
20
- // defaultValue: { summary: '' },
21
- // },
22
- // blogAuthorImage: {
23
- // control: 'text',
24
- // description: 'Set this value when you need a blog author',
25
- // defaultValue: { summary: "''" },
26
- // },
27
- // blogAuthorImageAlt: {
28
- // control: 'text',
29
- // description: 'Set this value when you need a blog author',
30
- // defaultValue: { summary: "''" },
31
- // },
32
- // blogAuthorName: {
33
- // control: 'text',
34
- // description: 'Set this value when you need a blog author',
35
- // defaultValue: { summary: "''" },
36
- // },
37
- // blogAuthorQueryHref: {
38
- // control: 'text',
39
- // description: 'Set this value when you need a blog author',
40
- // defaultValue: { summary: "''" },
41
- // },
42
- // blogAuthorQueryTarget: {
43
- // control: 'text',
44
- // description: 'Set this value when you need a blog author',
45
- // defaultValue: { summary: "''" },
46
- // },
47
- // buttonLocation: {
48
- // control: 'text',
49
- // description: 'Set the location of the play/pause button when the the background video is applied. Available values: top-left, top-right, bottom-left, bottom-right, allbp-bottom-right',
50
- // defaultValue: { summary: 'undefined' },
51
- // },
52
- // buttonTabIndex: { control: 'number', description: 'Set button tab index for tab navigation, default value is 0', defaultValue: { summary: '0' } },
53
- // defer: {
54
- // control: 'boolean',
55
- // description: 'delay loading of video to improve perfomance',
56
- // defaultValue: { summary: 'undefined' },
57
- // },
58
- // gifSrc: {
59
- // control: 'text',
60
- // description: 'set this value when you need a gif on the right side',
61
- // defaultValue: { summary: 'undefined' },
62
- // },
63
- // hasCountdown: {
64
- // control: 'boolean',
65
- // description: 'To add a countdown, trun this attribute on and add <ptc-countdown> after cta buttons',
66
- // defaultValue: { summary: 'false' },
67
- // },
68
- // hasCtaSlot: {
69
- // control: 'boolean',
70
- // description: 'Checking if the cta slot is empty',
71
- // defaultValue: { summary: 'undefined' },
72
- // },
73
- // hasPopupVideo: {
74
- // control: 'boolean',
75
- // description: 'Set this value to true when you need a pop up video on the right side, add ptc-svg-btn & ptc-modal for the play button and video',
76
- // defaultValue: { summary: 'false' },
77
- // },
78
- // isHomepage: {
79
- // control: 'boolean',
80
- // description: 'Is it on a homepage?',
81
- // defaultValue: { summary: 'false' },
82
- // },
83
- // isIframe: {
84
- // control: 'boolean',
85
- // description: '',
86
- // defaultValue: { summary: 'false' },
87
- // },
88
- // isTransitioning: {
89
- // control: 'boolean',
90
- // description: '',
91
- // defaultValue: { summary: 'undefined' },
92
- // },
93
- // jumbotronType: {
94
- // control: 'text',
95
- // description: 'jumbotron types. light, dark, light-video, dark-video, png, text, blog, gif',
96
- // defaultValue: { summary: 'light' },
97
- // },
98
- // logo: {
99
- // control: 'text',
100
- // description: 'Optional - set a logo by adding an URL to this property',
101
- // },
102
- // pauseButtonTitle: {
103
- // control: 'text',
104
- // description: 'paly button text when bg-video-src has a value',
105
- // defaultValue: { summary: 'undefined' },
106
- // },
107
- // playButtonTitle: {
108
- // control: 'text',
109
- // description: 'paly button text when bg-video-src has a value',
110
- // defaultValue: { summary: 'undefined' },
111
- // },
112
- // pngImgStyles: {
113
- // control: 'text',
114
- // description: '',
115
- // defaultValue: { summary: "''" },
116
- // },
117
- // pngSrc: {
118
- // control: 'text',
119
- // description: '',
120
- // defaultValue: { summary: 'undefined' },
121
- // },
122
- // styles: {
123
- // control: 'text',
124
- // description: '(optional) Injected CSS styles',
125
- // defaultValue: { summary: 'undefined' },
126
- // },
127
- // subTitle: {
128
- // control: 'text',
129
- // description: 'Set the sub title',
130
- // defaultValue: {
131
- // summary: 'Lorem Ipsum Dolor Sit Amet Consectetur Adipiscing Lorem Ipsum Dolor Sit Amet Consectetur Adipisci Lorem Ipsum Dolor Sit Amet',
132
- // },
133
- // },
134
- // },
135
- };
136
-
137
- //Light jumbotron story
138
- const LightJumbotronTemplate = args => {
139
- return html`<ptc-para>Set the breadcrumb, main title, cta buttons through correct slot names, please click "show code" for details.</ptc-para>
140
- <ptc-jumbotron
141
- jumbotron-type=${args.jumbotronType}
142
- has-countdown=${args.hasCountdown}
143
- sub-title=${args.subTitle}
144
- bg-src=${args.bgSrc}
145
- logo=${args.logo}
146
- bg-video-src=${args.bgVideoSrc}
147
- play-button-title=${args.playButtonTitle}
148
- pause-button-title=${args.pauseButtonTitle}
149
- >
150
- has-popup-video=${args.hasPopupVideo} >
151
- <ptc-breadcrumb slot="breadcrumb" color="primary-gray">
152
- <list-item list-type="breadcrumb" link-href="https://www.ptc.com/contact-us" color="primary-gray"> PLM Video Hub </list-item>
153
- <list-item list-type="breadcrumb" color="primary-gray"> Current Page </list-item>
154
- </ptc-breadcrumb>
155
- <ptc-title
156
- slot="main-title"
157
- type="h1"
158
- upperline="no-upperline"
159
- title-size="xxxx-large"
160
- title-height="densest"
161
- title-weight="w-8"
162
- title-margin="margin-flush"
163
- text-align="left"
164
- title-color="gray"
165
- >
166
- Sed ut perspiciatis unde omnis iste natus
167
- </ptc-title>
168
- <ptc-button slot="j-cta" type="link" color="ptc-primary" link-href="https://www.ptc.com" target="_blank"> CTA 1 </ptc-button>
169
- <ptc-button slot="j-cta" type="link" color="ptc-secondary" link-href="https://www.ptc.com" target="_blank"> CTA 2 </ptc-button>
170
- </ptc-jumbotron>`;
171
- };
172
- export const Light = LightJumbotronTemplate.bind({});
173
- Light.args = {
174
- bgSrc:
175
- 'https://images.unsplash.com/photo-1675285972028-45dc2add07be?crop=entropy&cs=tinysrgb&fm=jpg&ixid=MnwzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2Nzc3ODk2NTE&ixlib=rb-4.0.3&q=80',
176
- jumbotronType: 'light',
177
- hasCountdown: 'false',
178
- logo: 'https://ptc-p-001.sitecorecontenthub.cloud/api/public/content/4699dab90e6f476b8a70902b58d7d3db?h=827&w=1550&la=en',
179
- styles: 'undefined',
180
- subTitle: 'totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo',
181
- };
182
- Light.argTypes = {
183
- bgSrc: {
184
- control: 'text',
185
- description: 'Set this value when the jubmotron type is dark or light',
186
- defaultValue: { summary: '' },
187
- },
188
- hasCountdown: {
189
- control: 'boolean',
190
- description: 'To add a countdown, trun this attribute on and add <ptc-countdown> after cta buttons',
191
- defaultValue: { summary: 'false' },
192
- },
193
- jumbotronType: {
194
- control: 'text',
195
- description: 'jumbotron types. light, dark, light-video, dark-video, png, text, blog, gif',
196
- defaultValue: { summary: 'light' },
197
- },
198
- logo: {
199
- control: 'text',
200
- description: 'Optional - set a logo by adding an URL to this property',
201
- },
202
- styles: {
203
- control: 'text',
204
- description: '(optional) Injected CSS styles',
205
- defaultValue: { summary: 'undefined' },
206
- },
207
- subTitle: {
208
- control: 'text',
209
- description: 'Set the sub title',
210
- defaultValue: {
211
- summary: 'Lorem Ipsum Dolor Sit Amet Consectetur Adipiscing Lorem Ipsum Dolor Sit Amet Consectetur Adipisci Lorem Ipsum Dolor Sit Amet',
212
- },
213
- },
214
- };
215
-
216
- //Dark jumbotron story
217
- const DarkJumbotronTemplate = args => {
218
- return html`<ptc-para>Set the breadcrumb, main title, cta buttons through correct slot names, please click "show code" for details.</ptc-para>
219
- <ptc-jumbotron jumbotron-type=${args.jumbotronType} has-countdown=${args.hasCountdown} sub-title=${args.subTitle} bg-src=${args.bgSrc} logo=${args.logo}>
220
- <ptc-breadcrumb slot="breadcrumb" color="white">
221
- <list-item list-type="breadcrumb" link-href="https://www.ptc.com/contact-us" color="primary-gray"> PLM Video Hub </list-item>
222
- <list-item list-type="breadcrumb" color="primary-gray"> Current Page </list-item>
223
- </ptc-breadcrumb>
224
- <ptc-title
225
- slot="main-title"
226
- type="h1"
227
- upperline="no-upperline"
228
- title-size="xxxx-large"
229
- title-height="densest"
230
- title-weight="w-8"
231
- title-margin="margin-flush"
232
- text-align="left"
233
- title-color="gray-1"
234
- >Sed ut perspiciatis unde omnis iste natus
235
- </ptc-title>
236
- <ptc-button slot="j-cta" type="link" color="ptc-primary" link-href="https://www.ptc.com" target="_blank"> CTA 1 </ptc-button>
237
- <ptc-button slot="j-cta" type="link" color="ptc-secondary" link-href="https://www.ptc.com" target="_blank"> CTA 2 </ptc-button>
238
- </ptc-jumbotron>`;
239
- };
240
- export const Dark = DarkJumbotronTemplate.bind({});
241
- Dark.args = {
242
- bgSrc:
243
- 'https://images.unsplash.com/photo-1675285972028-45dc2add07be?crop=entropy&cs=tinysrgb&fm=jpg&ixid=MnwzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2Nzc3ODk2NTE&ixlib=rb-4.0.3&q=80',
244
- hasCountdown: 'false',
245
- jumbotronType: 'dark',
246
- logo: '',
247
- styles: 'undefined',
248
- subTitle: 'totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo',
249
- };
250
- Dark.argTypes = {
251
- bgSrc: {
252
- control: 'text',
253
- description: 'Set this value when the jubmotron type is dark or light',
254
- defaultValue: { summary: '' },
255
- },
256
- hasCountdown: {
257
- control: 'boolean',
258
- description: 'To add a countdown, trun this attribute on and add <ptc-countdown> after cta buttons',
259
- defaultValue: { summary: 'false' },
260
- },
261
- jumbotronType: {
262
- control: 'text',
263
- description: 'jumbotron types. light, dark, light-video, dark-video, png, text, blog, gif',
264
- defaultValue: { summary: 'light' },
265
- },
266
- logo: {
267
- control: 'text',
268
- description: 'Optional - set a logo by adding an URL to this property',
269
- },
270
- styles: {
271
- control: 'text',
272
- description: '(optional) Injected CSS styles',
273
- defaultValue: { summary: 'undefined' },
274
- },
275
- subTitle: {
276
- control: 'text',
277
- description: 'Set the sub title',
278
- defaultValue: {
279
- summary: 'Lorem Ipsum Dolor Sit Amet Consectetur Adipiscing Lorem Ipsum Dolor Sit Amet Consectetur Adipisci Lorem Ipsum Dolor Sit Amet',
280
- },
281
- },
282
- };
283
-
284
- //Text jumbotron story
285
- const TextJumbotronTemplate = args => {
286
- return html` <ptc-jumbotron jumbotron-type=${args.jumbotronType} sub-title=${args.subTitle}>
287
- <ptc-breadcrumb slot="breadcrumb" color="primary-gray" position="center" styles=":host{margin-top: var(--ptc-element-spacing-06)!important;align-items: baseline;}">
288
- <list-item list-type="breadcrumb" link-href="https://www.ptc.com/contact-us" color="primary-gray" styles=":host(.breadcrumb) li{text-transform: uppercase;}">
289
- PLM TEst
290
- </list-item>
291
- <list-item list-type="breadcrumb" color="primary-gray" styles=":host(.breadcrumb) li{ text-transform: uppercase;}"> Connecting Engineering and Manufacturing PPC </list-item>
292
- </ptc-breadcrumb>
293
- <ptc-title
294
- slot="main-title"
295
- type="h1"
296
- upperline="no-upperline"
297
- title-size="xxxx-large"
298
- title-height="densest"
299
- title-weight="w-8"
300
- title-margin="margin-flush"
301
- text-align="center"
302
- title-color="gray"
303
- >
304
- <!-- test align = center for text -->
305
- Sed ut perspiciatis unde omnis iste natus totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et
306
- </ptc-title>
307
- <ptc-button slot="j-cta" type="link" color="ptc-primary" link-href="https://www.ptc.com" target="_blank"> CTA 1 </ptc-button>
308
- <ptc-button slot="j-cta" type="link" color="ptc-secondary" link-href="https://www.ptc.com" target="_blank"> CTA 2 </ptc-button>
309
- </ptc-jumbotron>`;
310
- };
311
- export const Text = TextJumbotronTemplate.bind({});
312
- Text.args = {
313
- jumbotronType: 'text',
314
- styles: 'undefined',
315
- subTitle: 'totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo',
316
- };
317
- Text.argTypes = {
318
- subTitle: {
319
- control: 'text',
320
- description: 'Set the sub title',
321
- defaultValue: {
322
- summary: 'Lorem Ipsum Dolor Sit Amet Consectetur Adipiscing Lorem Ipsum Dolor Sit Amet Consectetur Adipisci Lorem Ipsum Dolor Sit Amet',
323
- },
324
- },
325
- jumbotronType: {
326
- control: 'text',
327
- description: 'jumbotron types. light, dark, light-video, dark-video, png, text, blog, gif',
328
- defaultValue: { summary: 'light' },
329
- },
330
- styles: {
331
- control: 'text',
332
- description: '(optional) Injected CSS styles',
333
- defaultValue: { summary: 'undefined' },
334
- },
335
- };
336
-
337
- // Dark Video jumbotron story
338
- const VideoJumbotronTemplate = args => {
339
- return html` <ptc-jumbotron
340
- jumbotron-type=${args.jumbotronType}
341
- sub-title=${args.subTitle}
342
- bg-video-src=${args.bgVideoSrc}
343
- play-button-title=${args.playButtonTitle}
344
- pause-button-title=${args.pauseButtonTitle}
345
- >
346
- <ptc-breadcrumb slot="breadcrumb" color="white" is-dark-mode>
347
- <list-item list-type="breadcrumb" link-href="https://www.ptc.com/contact-us" color="light-gray"> PLM Video Hub </list-item>
348
- <list-item list-type="breadcrumb" color="light-gray"> Current Page </list-item>
349
- </ptc-breadcrumb>
350
- <ptc-title
351
- slot="main-title"
352
- type="h1"
353
- upperline="no-upperline"
354
- title-size="xxxx-large"
355
- title-height="densest"
356
- title-weight="w-8"
357
- title-margin="margin-flush"
358
- text-align="left"
359
- title-color="gray-1"
360
- >Sed ut perspiciatis unde omnis iste natus
361
- </ptc-title>
362
- <ptc-button slot="j-cta" type="link" color="ptc-secondary" link-href="https://www.ptc.com" target="_blank" dark-focus-state> CTA 1 </ptc-button>
363
- <ptc-button slot="j-cta" type="link" color="ptc-secondary" link-href="https://www.ptc.com" target="_blank" dark-focus-state> CTA 2 </ptc-button>
364
- </ptc-jumbotron>`;
365
- };
366
- export const DarkVideo = VideoJumbotronTemplate.bind({});
367
- DarkVideo.args = {
368
- bgVideoPosterSrc: 'undefined',
369
- bgVideoSrc: 'https://www.ptc.com/-/media/Videos/wind-turbine.mp4',
370
- buttonLocation: 'undefined',
371
- buttonTabIndex: '0',
372
- jumbotronType: 'dark-video',
373
- pauseButtonTitle: 'pause text',
374
- playButtonTitle: 'play text',
375
- styles: 'undefined',
376
- subTitle: 'totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo',
377
- };
378
- DarkVideo.argTypes = {
379
- argTypes: {
380
- bgVideoPosterSrc: {
381
- control: 'text',
382
- description: 'Set this value when you need a poster for the background video',
383
- defaultValue: { summary: '' },
384
- },
385
- bgVideoSrc: {
386
- control: 'text',
387
- description: 'Set this value when the jumbotron type is dark-video or light-video',
388
- defaultValue: { summary: '' },
389
- },
390
- buttonLocation: {
391
- control: 'text',
392
- description:
393
- 'Set the location of the play/pause button when the the background video is applied. Available values: top-left, top-right, bottom-left, bottom-right, allbp-bottom-right',
394
- defaultValue: { summary: 'undefined' },
395
- },
396
- buttonTabIndex: { control: 'number', description: 'Set button tab index for tab navigation, default value is 0', defaultValue: { summary: '0' } },
397
-
398
- jumbotronType: {
399
- control: 'text',
400
- description: 'jumbotron types. light, dark, light-video, dark-video, png, text, blog, gif',
401
- defaultValue: { summary: 'light' },
402
- },
403
- pauseButtonTitle: {
404
- control: 'text',
405
- description: 'paly button text when bg-video-src has a value',
406
- defaultValue: { summary: 'undefined' },
407
- },
408
- playButtonTitle: {
409
- control: 'text',
410
- description: 'paly button text when bg-video-src has a value',
411
- defaultValue: { summary: 'undefined' },
412
- },
413
- styles: {
414
- control: 'text',
415
- description: '(optional) Injected CSS styles',
416
- defaultValue: { summary: 'undefined' },
417
- },
418
- subTitle: {
419
- control: 'text',
420
- description: 'Set the sub title',
421
- defaultValue: {
422
- summary: 'Lorem Ipsum Dolor Sit Amet Consectetur Adipiscing Lorem Ipsum Dolor Sit Amet Consectetur Adipisci Lorem Ipsum Dolor Sit Amet',
423
- },
424
- },
425
- },
426
- };
427
-
428
- // Light Video jumbotron story
429
- const LVideoJumbotronTemplate = args => {
430
- return html` <ptc-jumbotron
431
- jumbotron-type=${args.jumbotronType}
432
- sub-title=${args.subTitle}
433
- bg-video-src=${args.bgVideoSrc}
434
- play-button-title=${args.playButtonTitle}
435
- pause-button-title=${args.pauseButtonTitle}
436
- >
437
- <ptc-breadcrumb slot="breadcrumb" color="primary-gray" is-dark-mode>
438
- <list-item list-type="breadcrumb" link-href="https://www.ptc.com/contact-us" color="primary-gray"> PLM Video Hub </list-item>
439
- <list-item list-type="breadcrumb" color="primary-gray"> Current Page </list-item>
440
- </ptc-breadcrumb>
441
- <ptc-title
442
- slot="main-title"
443
- type="h1"
444
- upperline="no-upperline"
445
- title-size="xxxx-large"
446
- title-height="densest"
447
- title-weight="w-8"
448
- title-margin="margin-flush"
449
- text-align="left"
450
- title-color="gray"
451
- >Sed ut perspiciatis unde omnis iste natus
452
- </ptc-title>
453
- <ptc-button slot="j-cta" type="link" color="ptc-secondary" link-href="https://www.ptc.com" target="_blank" dark-focus-state> CTA 1 </ptc-button>
454
- <ptc-button slot="j-cta" type="link" color="ptc-secondary" link-href="https://www.ptc.com" target="_blank" dark-focus-state> CTA 2 </ptc-button>
455
- </ptc-jumbotron>`;
456
- };
457
- export const LightVideo = LVideoJumbotronTemplate.bind({});
458
- LightVideo.args = {
459
- bgVideoPosterSrc: 'undefined',
460
- bgVideoSrc: 'https://www.ptc.com/-/media/Videos/wind-turbine.mp4',
461
- buttonLocation: 'undefined',
462
- buttonTabIndex: '0',
463
- jumbotronType: 'light-video',
464
- pauseButtonTitle: 'pause text',
465
- playButtonTitle: 'play text',
466
- styles: 'undefined',
467
- subTitle: 'totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo',
468
- };
469
- LightVideo.argTypes = {
470
- argTypes: {
471
- bgVideoPosterSrc: {
472
- control: 'text',
473
- description: 'Set this value when you need a poster for the background video',
474
- defaultValue: { summary: '' },
475
- },
476
- bgVideoSrc: {
477
- control: 'text',
478
- description: 'Set this value when the jumbotron type is dark-video or light-video',
479
- defaultValue: { summary: '' },
480
- },
481
- buttonLocation: {
482
- control: 'text',
483
- description:
484
- 'Set the location of the play/pause button when the the background video is applied. Available values: top-left, top-right, bottom-left, bottom-right, allbp-bottom-right',
485
- defaultValue: { summary: 'undefined' },
486
- },
487
- buttonTabIndex: { control: 'number', description: 'Set button tab index for tab navigation, default value is 0', defaultValue: { summary: '0' } },
488
-
489
- jumbotronType: {
490
- control: 'text',
491
- description: 'jumbotron types. light, dark, light-video, dark-video, png, text, blog, gif',
492
- defaultValue: { summary: 'light' },
493
- },
494
- pauseButtonTitle: {
495
- control: 'text',
496
- description: 'paly button text when bg-video-src has a value',
497
- defaultValue: { summary: 'undefined' },
498
- },
499
- playButtonTitle: {
500
- control: 'text',
501
- description: 'paly button text when bg-video-src has a value',
502
- defaultValue: { summary: 'undefined' },
503
- },
504
- styles: {
505
- control: 'text',
506
- description: '(optional) Injected CSS styles',
507
- defaultValue: { summary: 'undefined' },
508
- },
509
- subTitle: {
510
- control: 'text',
511
- description: 'Set the sub title',
512
- defaultValue: {
513
- summary: 'Lorem Ipsum Dolor Sit Amet Consectetur Adipiscing Lorem Ipsum Dolor Sit Amet Consectetur Adipisci Lorem Ipsum Dolor Sit Amet',
514
- },
515
- },
516
- },
517
- };
518
-
519
- // Blog jumbotron story
520
- const BlogJumbotronTemplate = args => {
521
- return html`
522
- <ptc-jumbotron jumbotron-type=${args.jumbotronType}
523
- sub-title=""
524
- png-src=${args.pngSrc}
525
- has-popup-video="false"
526
- blog-author-image=${args.blogAuthorImage}
527
- blog-author-image-alt=${args.blogAuthorImageAlt}
528
- blog-author-name=${args.blogAuthorName}
529
- blog-author-query-href=${args.blogAuthorQueryHref}
530
- blog-author-query-target=${args.blogAuthorQueryTarget}
531
-
532
- <ptc-breadcrumb slot="breadcrumb" color="primary-gray" remove-top-margin="true">
533
- <list-item list-type="breadcrumb" link-href="https://www-dev.ptc.com/blogs" color="primary-gray">Blogs</list-item>
534
- <list-item list-type="breadcrumb" color="primary-gray">The Key to Using AI to Enhance IoT Security</list-item>
535
- </ptc-breadcrumb>
536
- <ptc-title
537
- slot="main-title"
538
- type="h1"
539
- upperline="no-upperline"
540
- title-size="xxxx-large"
541
- title-height="densest"
542
- title-weight="w-8"
543
- title-margin="margin-flush"
544
- text-align="left"
545
- title-color="gray"
546
- >
547
- The Key to Using AI to Enhance IoT Security
548
- </ptc-title>
549
- <span slot="blog-date">April 4, 2024</span>
550
- <ptc-button slot="j-cta" type="link" color="ptc-quaternary" link-href="https://www.ptc.com" target="_blank">
551
- Request Free Trial
552
- </ptc-button>
553
- <ptc-button slot="j-cta" type="link" color="ptc-tertiary" link-href="https://www.ptc.com" target="_blank">
554
- Speaking of Service Podcast
555
- </ptc-button>
556
- </ptc-jumbotron>`;
557
- };
558
- export const BlogVideo = BlogJumbotronTemplate.bind({});
559
- BlogVideo.args = {
560
- pngSrc: 'https://ptc-p-001.sitecorecontenthub.cloud/api/public/content/5fbb90c52ab7431c89df5eea5ef9fe25?v=6e1b1318',
561
- buttonLocation: 'undefined',
562
- buttonTabIndex: '0',
563
- jumbotronType: 'blog',
564
- blogAuthorImage: 'https://www.ptc.com/-/media/Images/blog/Authors/MaleDefaultImage.jpg',
565
- blogAuthorImageAlt: 'blog-author-image',
566
- blogAuthorName: 'Simone Biles',
567
- blogAuthorQueryHref: 'https://www.ptc.com/blogs',
568
- blogAuthorQueryTarget: '_blank',
569
- styles: 'undefined',
570
- };
571
- BlogVideo.argTypes = {
572
- argTypes: {
573
- pngSrc: {
574
- control: 'text',
575
- description: '',
576
- defaultValue: { summary: 'undefined' },
577
- },
578
- blogAuthorImage: {
579
- control: 'text',
580
- description: 'Set this value when you need a blog author',
581
- defaultValue: { summary: "''" },
582
- },
583
- blogAuthorImageAlt: {
584
- control: 'text',
585
- description: 'Set this value when you need a blog author',
586
- defaultValue: { summary: "''" },
587
- },
588
- blogAuthorName: {
589
- control: 'text',
590
- description: 'Set this value when you need a blog author',
591
- defaultValue: { summary: "''" },
592
- },
593
- blogAuthorQueryHref: {
594
- control: 'text',
595
- description: 'Set this value when you need a blog author',
596
- defaultValue: { summary: "''" },
597
- },
598
- blogAuthorQueryTarget: {
599
- control: 'text',
600
- description: 'Set this value when you need a blog author',
601
- defaultValue: { summary: "''" },
602
- },
603
- buttonLocation: {
604
- control: 'text',
605
- description:
606
- 'Set the location of the play/pause button when the the background video is applied. Available values: top-left, top-right, bottom-left, bottom-right, allbp-bottom-right',
607
- defaultValue: { summary: 'undefined' },
608
- },
609
- buttonTabIndex: { control: 'number', description: 'Set button tab index for tab navigation, default value is 0', defaultValue: { summary: '0' } },
610
-
611
- jumbotronType: {
612
- control: 'text',
613
- description: 'jumbotron types. light, dark, light-video, dark-video, png, text, blog, gif',
614
- defaultValue: { summary: 'light' },
615
- },
616
- styles: {
617
- control: 'text',
618
- description: '(optional) Injected CSS styles',
619
- defaultValue: { summary: 'undefined' },
620
- },
621
- },
622
- };
623
-
624
- // Popup Video jumbotron story
625
- const PopupJumbotronTemplate = args => {
626
- return html`
627
- <style>
628
- ptc-svg-btn {
629
- position: absolute;
630
- left: 50%;
631
- top: 0%;
632
- transform: translate(-50%, -200%);
633
- }
634
-
635
- @media screen and (min-width: 480px) {
636
- ptc-svg-btn {
637
- transform: translate(-50%, -260%);
638
- }
639
- }
640
-
641
- @media screen and (min-width: 550px) {
642
- ptc-svg-btn {
643
- transform: translate(-50%, -235%);
644
- }
645
- }
646
-
647
- @media screen and (min-width: 768px) {
648
- ptc-svg-btn {
649
- transform: translate(-50%, -306%);
650
- }
651
- }
652
-
653
- @media screen and (min-width: 992px) {
654
- ptc-svg-btn {
655
- top: 50%;
656
- left: 75%;
657
- transform: translate(-50%, -50%);
658
- }
659
- }
660
- </style>
661
- <ptc-jumbotron
662
- jumbotron-type=${args.jumbotronType}
663
- sub-title=${args.subTitle}
664
- bg-src=${args.bgSrc}
665
- has-popup-video=${args.hasPopupVideo}
666
- >
667
- <ptc-breadcrumb slot="breadcrumb" color="white" is-dark-mode>
668
- <list-item list-type="breadcrumb" link-href="https://www.ptc.com/contact-us" color="light-gray">
669
- PLM Video Hub
670
- </list-item>
671
- <list-item list-type="breadcrumb" color="light-gray">
672
- Current Page
673
- </list-item>
674
- </ptc-breadcrumb>
675
- <ptc-title slot="main-title" type="h1" upperline="no-upperline" title-size="xxxx-large" title-height="densest"
676
- title-weight="w-8" title-margin="margin-flush" text-align="left" title-color="gray-1"
677
- ellipsis-line-cutoff="3">
678
- <ptc-tooltip text-lines="3" description="Sed ut perspiciatis unde omnis iste natus"
679
- position="right"></ptc-tooltip>
680
- </ptc-title>
681
- <ptc-button slot="j-cta" type="link" color="ptc-primary" link-href="https://www.ptc.com" dark-focus-state target="_blank">
682
- CTA 1
683
- </ptc-button>
684
- <ptc-button slot="j-cta" type="link" color="ptc-secondary" link-href="https://www.ptc.com" dark-focus-state target="_blank">
685
- CTA 2
686
- </ptc-button>
687
- <ptc-svg-btn id="j-modal-btn" slot="video" svg-name="play" display="block" z-index="2"></ptc-svg-btn>
688
- <ptc-modal id="popup-modal" slot="video" show="false" size="xl" fixed styles=".overlay{backdrop-filter: blur(10px);}" close-on-blur="true">
689
- <div class="is-grid has-col-6 has-col-12-xs has-col-gap-lg has-row-gap-md has-m has-p has-col-gap-lg">
690
- <div class="is-col-6 is-col-12-xs grid-order-1-md">
691
- <div style="position: relative;">
692
- <div style="padding-top: 56.25%;">
693
- <video-js id="bcPlayer" data-account="1532789042001" data-player="dNyUv9zZ6"
694
- data-embed="default" data-video-id="6307196876112" controls="" data-application-id=""
695
- class="vjs-fill" style="top:0; position:absolute;">
696
- </video-js>
697
- </div>
698
- <script src="//players.brightcove.net/1532789042001/dNyUv9zZ6_default/index.min.js">
699
- </script>
700
- </div>
701
- </div>
702
- </div>
703
- </ptc-modal>
704
- </ptc-jumbotron>
705
- <!-- for popup video -->
706
- <script>
707
- let videoBtn = document.querySelector('#j-modal-btn');
708
- let modal = document.querySelector('#popup-modal');
709
-
710
- if (videoBtn && modal) {
711
- videoBtn.addEventListener('click', function () {
712
- modal.show = true;
713
- });
714
- videojs.getPlayer('bcPlayer').ready(function () {
715
- var bcPlayer = this;
716
- modal.addEventListener('closed', function () {
717
- bcPlayer.pause();
718
- });
719
- });
720
- }
721
- </script>`;
722
- };
723
- export const PopupVideo = PopupJumbotronTemplate.bind({});
724
- PopupVideo.args = {
725
- bgSrc: 'https://images.unsplash.com/photo-1675285972028-45dc2add07be?crop=entropy&cs=tinysrgb&fm=jpg&ixid=MnwzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2Nzc3ODk2NTE&ixlib=rb-4.0.3&q=80',
726
- buttonTabIndex: '0',
727
- jumbotronType: 'dark',
728
- hasPopupVideo: true,
729
- styles: 'undefined',
730
- subTitle: 'totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo',
731
- };
732
- PopupVideo.argTypes = {
733
- argTypes: {
734
- bgSrc: {
735
- control: 'text',
736
- description: 'Set this value when the jubmotron type is dark or light',
737
- defaultValue: { summary: '' },
738
- },
739
- buttonTabIndex: { control: 'number', description: 'Set button tab index for tab navigation, default value is 0', defaultValue: { summary: '0' } },
740
- jumbotronType: {
741
- control: 'text',
742
- description: 'jumbotron types. light, dark, light-video, dark-video, png, text, blog, gif',
743
- defaultValue: { summary: 'light' },
744
- },
745
- hasPopupVideo: {
746
- control: 'boolean',
747
- description: 'Set this value to true when you need a pop up video on the right side, add ptc-svg-btn & ptc-modal for the play button and video',
748
- defaultValue: { summary: 'false' },
749
- },
750
- subTitle: {
751
- control: 'text',
752
- description: 'Set the sub title',
753
- defaultValue: {
754
- summary: 'Lorem Ipsum Dolor Sit Amet Consectetur Adipiscing Lorem Ipsum Dolor Sit Amet Consectetur Adipisci Lorem Ipsum Dolor Sit Amet',
755
- },
756
- },
757
- styles: {
758
- control: 'text',
759
- description: '(optional) Injected CSS styles',
760
- defaultValue: { summary: 'undefined' },
761
- },
762
- },
763
- };