@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
@@ -3,33 +3,28 @@ import { createFocusTrap } from 'focus-trap';
3
3
  export class PtcModal {
4
4
  constructor() {
5
5
  this.setReturnFocus = () => {
6
- var _a, _b;
7
- if (!this.lastFocusElement)
8
- return;
9
- // Try focusing the last focused element directly
10
- if (this.lastFocusElement.tabIndex === 0) {
6
+ if (this.lastFocusElement instanceof HTMLElement) {
11
7
  this.lastFocusElement.focus();
12
- return;
13
8
  }
14
- // If it's inside a shadow DOM, try finding a focusable child
15
- const shadowRoot = this.lastFocusElement.shadowRoot;
16
- if (shadowRoot) {
17
- const focusableElementList = shadowRoot.querySelectorAll('button, [tabindex]:not([tabindex="-1"])');
18
- if (focusableElementList) {
19
- let focusableElement = focusableElementList[focusableElementList.length - 1];
20
- focusableElement.focus();
21
- return;
9
+ };
10
+ this.trackLastFocusedElement = (event) => {
11
+ if (event.key === "Enter") {
12
+ let activeElement = document.activeElement;
13
+ // Traverse shadow DOM to get the innermost focused element
14
+ while (activeElement === null || activeElement === void 0 ? void 0 : activeElement.shadowRoot) {
15
+ activeElement = activeElement.shadowRoot.activeElement;
16
+ }
17
+ if (activeElement instanceof HTMLElement) {
18
+ this.lastFocusElement = activeElement;
22
19
  }
23
- }
24
- // As a fallback, try to find a focusable child within the element
25
- const fallbackElement = (_b = (_a = this.lastFocusElement).querySelector) === null || _b === void 0 ? void 0 : _b.call(_a, 'button, [tabindex]:not([tabindex="-1"])');
26
- if (fallbackElement instanceof HTMLElement) {
27
- fallbackElement.focus();
28
20
  }
29
21
  };
30
22
  this.handleKeyPress = (event) => {
31
23
  if (event.key === 'Enter' || event.key === ' ' || event.key === 'Tab') {
32
24
  this.openedByKeyboard = true;
25
+ if (event.key === 'Enter') {
26
+ this.trackLastFocusedElement(event);
27
+ }
33
28
  }
34
29
  };
35
30
  this.handleMouseDown = () => {
@@ -57,12 +52,11 @@ export class PtcModal {
57
52
  this.headerOnlyText2 = undefined;
58
53
  this.bottomCloseBtn = undefined;
59
54
  this.openedByKeyboard = false;
60
- this.focusBackElement = undefined;
61
55
  this.bodyOverflowSetting = undefined;
62
56
  }
63
57
  onShowChange(newValue) {
64
58
  if (newValue) {
65
- this.lastFocusElement = document.activeElement;
59
+ // this.lastFocusElement = document.activeElement as HTMLElement;
66
60
  this.fireOnOpened(this);
67
61
  }
68
62
  else {
@@ -157,7 +151,7 @@ export class PtcModal {
157
151
  }
158
152
  componentDidLoad() {
159
153
  if (this.show) {
160
- this.lastFocusElement = document.activeElement;
154
+ // this.lastFocusElement = document.activeElement as HTMLElement;
161
155
  this.fireOnOpened(this);
162
156
  }
163
157
  if (this.showHeaderFooter) {
@@ -213,15 +207,6 @@ export class PtcModal {
213
207
  }
214
208
  close() {
215
209
  this.show = false;
216
- setTimeout(() => {
217
- var _a, _b;
218
- if (this.focusBackElement) {
219
- (_a = this.focusBackElement) === null || _a === void 0 ? void 0 : _a.focus();
220
- if (this.focusBackElement.tagName === "PTC-BUTTON") {
221
- (_b = this.focusBackElement.shadowRoot.querySelector('button')) === null || _b === void 0 ? void 0 : _b.focus();
222
- }
223
- }
224
- }, 100);
225
210
  }
226
211
  render() {
227
212
  let content;
@@ -342,8 +327,8 @@ export class PtcModal {
342
327
  "type": "string",
343
328
  "mutable": true,
344
329
  "complexType": {
345
- "original": "'sm' | 'md' | 'lg' | 'xl' | 'max' | 'sm-modal'",
346
- "resolved": "\"lg\" | \"max\" | \"md\" | \"sm\" | \"sm-modal\" | \"xl\"",
330
+ "original": "'sm' | 'md' | 'lg' | 'xl' | 'fit-content' | 'max' | 'sm-modal'",
331
+ "resolved": "\"fit-content\" | \"lg\" | \"max\" | \"md\" | \"sm\" | \"sm-modal\" | \"xl\"",
347
332
  "references": {}
348
333
  },
349
334
  "required": false,
@@ -673,23 +658,6 @@ export class PtcModal {
673
658
  },
674
659
  "attribute": "bottom-close-btn",
675
660
  "reflect": false
676
- },
677
- "focusBackElement": {
678
- "type": "any",
679
- "mutable": true,
680
- "complexType": {
681
- "original": "any",
682
- "resolved": "any",
683
- "references": {}
684
- },
685
- "required": false,
686
- "optional": false,
687
- "docs": {
688
- "tags": [],
689
- "text": ""
690
- },
691
- "attribute": "focus-back-element",
692
- "reflect": false
693
661
  }
694
662
  };
695
663
  }
@@ -79,11 +79,4 @@ ptc-link, ptc-square-card,
79
79
  font-style: normal;
80
80
  font-weight: var(--ptc-font-weight-bold);
81
81
  line-height: var(--ptc-line-height-p);
82
- }
83
-
84
- :host(.appended) {
85
- position: relative;
86
- }
87
- :host(.appended) .skip-link:focus {
88
- position: absolute;
89
82
  }
@@ -1,49 +1,24 @@
1
1
  import { Host, h } from '@stencil/core';
2
2
  export class PtcNavSkipToContent {
3
3
  constructor() {
4
- this.escalated = false;
5
4
  this.hideOnScroll = () => {
6
5
  var _a, _b;
7
6
  let skipLink = (_b = (_a = this.hostEle) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('a.skip-link');
8
7
  skipLink === null || skipLink === void 0 ? void 0 : skipLink.blur();
9
8
  };
10
9
  this.escalateOnDom = () => {
11
- if (this.appendSelector) {
12
- const elem = document.querySelector(this.appendSelector);
13
- const host = this.hostEle;
14
- if (elem) {
15
- elem.insertAdjacentElement('afterbegin', this.hostEle);
16
- host.classList.add('appended');
17
- this.escalated = true;
18
- }
19
- }
20
- if (!this.escalated) {
21
- const body = document.querySelector('body');
22
- body.insertAdjacentElement('afterbegin', this.hostEle);
23
- }
24
- };
25
- this.offsetCta = () => {
26
- const link = this.hostEle.shadowRoot.querySelector('.skip-link');
27
- link.style.left = `${this.xOffset}px`;
28
- link.style.top = `${this.yOffset}px`;
10
+ const body = document.querySelector('body');
11
+ body.insertAdjacentElement('afterbegin', this.hostEle);
29
12
  };
30
13
  this.componentWillLoad = () => {
31
14
  this.escalateOnDom();
32
15
  window.addEventListener('scroll', this.hideOnScroll);
33
16
  };
34
- this.componentDidLoad = () => {
35
- if (this.appendSelector) {
36
- this.offsetCta();
37
- }
38
- };
39
17
  this.disconnectedCallback = () => {
40
18
  window.removeEventListener('scroll', this.hideOnScroll);
41
19
  };
42
20
  this.buttonText = "Skip To Main Content";
43
21
  this.sectionId = "";
44
- this.appendSelector = undefined;
45
- this.xOffset = undefined;
46
- this.yOffset = undefined;
47
22
  }
48
23
  scrollToSection(e) {
49
24
  e.preventDefault();
@@ -104,57 +79,6 @@ export class PtcNavSkipToContent {
104
79
  "attribute": "section-id",
105
80
  "reflect": false,
106
81
  "defaultValue": "\"\""
107
- },
108
- "appendSelector": {
109
- "type": "string",
110
- "mutable": false,
111
- "complexType": {
112
- "original": "string",
113
- "resolved": "string",
114
- "references": {}
115
- },
116
- "required": false,
117
- "optional": false,
118
- "docs": {
119
- "tags": [],
120
- "text": ""
121
- },
122
- "attribute": "append-selector",
123
- "reflect": false
124
- },
125
- "xOffset": {
126
- "type": "number",
127
- "mutable": false,
128
- "complexType": {
129
- "original": "number",
130
- "resolved": "number",
131
- "references": {}
132
- },
133
- "required": false,
134
- "optional": false,
135
- "docs": {
136
- "tags": [],
137
- "text": ""
138
- },
139
- "attribute": "x-offset",
140
- "reflect": false
141
- },
142
- "yOffset": {
143
- "type": "number",
144
- "mutable": false,
145
- "complexType": {
146
- "original": "number",
147
- "resolved": "number",
148
- "references": {}
149
- },
150
- "required": false,
151
- "optional": false,
152
- "docs": {
153
- "tags": [],
154
- "text": ""
155
- },
156
- "attribute": "y-offset",
157
- "reflect": false
158
82
  }
159
83
  };
160
84
  }
@@ -104,6 +104,9 @@ p.main {
104
104
  p.primary-grey {
105
105
  color: var(--color-gray-10);
106
106
  }
107
+ p.primary-green {
108
+ color: var(--color-green-06);
109
+ }
107
110
  p.gray-darker {
108
111
  color: var(--color-gray-11);
109
112
  }
@@ -185,8 +185,8 @@ export class PtcPara {
185
185
  "type": "string",
186
186
  "mutable": false,
187
187
  "complexType": {
188
- "original": "'primary-grey' | 'white' | 'gray-darker'",
189
- "resolved": "\"gray-darker\" | \"primary-grey\" | \"white\"",
188
+ "original": "'primary-grey' | 'primary-green' | 'white' | 'gray-darker'",
189
+ "resolved": "\"gray-darker\" | \"primary-green\" | \"primary-grey\" | \"white\"",
190
190
  "references": {}
191
191
  },
192
192
  "required": false,
@@ -5602,26 +5602,26 @@ a:focus-visible {
5602
5602
  border-radius: var(--ptc-border-radius-standard);
5603
5603
  }
5604
5604
 
5605
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a), .light-links a.light-link, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a), .background-grey-10 a.light-link, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a), .background-plm-grey a.light-link {
5605
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a), .light-links a.light-link, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a), .background-grey-10 a.light-link, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a), .background-plm-grey a.light-link {
5606
5606
  color: var(--color-blue-04);
5607
5607
  margin: -2px;
5608
5608
  border: 2px solid transparent;
5609
5609
  }
5610
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited, .light-links a.light-link:visited, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited, .background-grey-10 a.light-link:visited, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited, .background-plm-grey a.light-link:visited {
5610
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited, .light-links a.light-link:visited, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited, .background-grey-10 a.light-link:visited, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited, .background-plm-grey a.light-link:visited {
5611
5611
  color: var(--color-blue-06);
5612
5612
  }
5613
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):active, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:active, .light-links a.light-link:active, .light-links a.light-link:visited:active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:active, .background-grey-10 a.light-link:active, .background-grey-10 a.light-link:visited:active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:active, .background-plm-grey a.light-link:active, .background-plm-grey a.light-link:visited:active {
5613
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):active, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited:active, .light-links a.light-link:active, .light-links a.light-link:visited:active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited:active, .background-grey-10 a.light-link:active, .background-grey-10 a.light-link:visited:active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited:active, .background-plm-grey a.light-link:active, .background-plm-grey a.light-link:visited:active {
5614
5614
  transition: none;
5615
5615
  color: var(--color-blue-07);
5616
5616
  }
5617
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):hover, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:hover, .light-links a.light-link:hover, .light-links a.light-link:visited:hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:hover, .background-grey-10 a.light-link:hover, .background-grey-10 a.light-link:visited:hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:hover, .background-plm-grey a.light-link:hover, .background-plm-grey a.light-link:visited:hover {
5617
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):hover, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited:hover, .light-links a.light-link:hover, .light-links a.light-link:visited:hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited:hover, .background-grey-10 a.light-link:hover, .background-grey-10 a.light-link:visited:hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited:hover, .background-plm-grey a.light-link:hover, .background-plm-grey a.light-link:visited:hover {
5618
5618
  color: var(--color-blue-05);
5619
5619
  }
5620
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a).disabled, .light-links a.light-link.disabled, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a).disabled, .background-grey-10 a.light-link.disabled, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a).disabled, .background-plm-grey a.light-link.disabled {
5620
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a).disabled, .light-links a.light-link.disabled, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a).disabled, .background-grey-10 a.light-link.disabled, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a).disabled, .background-plm-grey a.light-link.disabled {
5621
5621
  color: var(--color-gray-04) !important;
5622
5622
  cursor: not-allowed;
5623
5623
  }
5624
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):focus-visible, .light-links a.light-link:focus-visible, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):focus-visible, .background-grey-10 a.light-link:focus-visible, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):focus-visible, .background-plm-grey a.light-link:focus-visible {
5624
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):focus-visible, .light-links a.light-link:focus-visible, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):focus-visible, .background-grey-10 a.light-link:focus-visible, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):focus-visible, .background-plm-grey a.light-link:focus-visible {
5625
5625
  border-radius: var(--ptc-border-radius-standard);
5626
5626
  border: 2px solid white;
5627
5627
  outline: 5px solid var(--keyboard-nav-outline);