@ptcwebops/ptcw-design 5.0.7 → 5.0.9

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 (66) hide show
  1. package/dist/cjs/homepage-clickable-tab.cjs.entry.js +2 -2
  2. package/dist/cjs/homepage-jumbotron.cjs.entry.js +2 -2
  3. package/dist/cjs/jumbotron-sub-menu.cjs.entry.js +1 -1
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/ptc-background-video.cjs.entry.js +1 -1
  6. package/dist/cjs/ptc-button.cjs.entry.js +1 -1
  7. package/dist/cjs/ptc-homepage-video-background.cjs.entry.js +1 -1
  8. package/dist/cjs/ptc-icon-card.cjs.entry.js +3 -2
  9. package/dist/cjs/ptc-info-tile.cjs.entry.js +1 -1
  10. package/dist/cjs/ptc-jumbotron.cjs.entry.js +1 -1
  11. package/dist/cjs/ptc-media-card.cjs.entry.js +3 -2
  12. package/dist/cjs/ptc-social-icons-footer.cjs.entry.js +1 -1
  13. package/dist/cjs/ptcw-design.cjs.js +1 -1
  14. package/dist/collection/components/homepage-clickable-tab/homepage-clickable-tab.css +14 -16
  15. package/dist/collection/components/homepage-clickable-tab/homepage-clickable-tab.js +1 -1
  16. package/dist/collection/components/jumbotron-sub-menu/jumbotron-sub-menu.css +2 -1
  17. package/dist/collection/components/organism-bundles/homepage-jumbotron/homepage-jumbotron.css +1 -0
  18. package/dist/collection/components/organism-bundles/homepage-jumbotron/homepage-jumbotron.js +2 -2
  19. package/dist/collection/components/ptc-background-video/ptc-background-video.js +1 -1
  20. package/dist/collection/components/ptc-button/ptc-button.css +4 -0
  21. package/dist/collection/components/ptc-homepage-video-background/ptc-homepage-video-background.css +4 -0
  22. package/dist/collection/components/ptc-icon-card/ptc-icon-card.css +3 -0
  23. package/dist/collection/components/ptc-icon-card/ptc-icon-card.js +19 -1
  24. package/dist/collection/components/ptc-info-tile/ptc-info-tile.css +4 -1
  25. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.js +1 -1
  26. package/dist/collection/components/ptc-media-card/ptc-media-card.css +3 -0
  27. package/dist/collection/components/ptc-media-card/ptc-media-card.js +19 -1
  28. package/dist/collection/components/ptc-social-icons-footer/ptc-social-icons-footer.js +1 -1
  29. package/dist/custom-elements/index.js +19 -17
  30. package/dist/esm/homepage-clickable-tab.entry.js +2 -2
  31. package/dist/esm/homepage-jumbotron.entry.js +2 -2
  32. package/dist/esm/jumbotron-sub-menu.entry.js +1 -1
  33. package/dist/esm/loader.js +1 -1
  34. package/dist/esm/ptc-background-video.entry.js +1 -1
  35. package/dist/esm/ptc-button.entry.js +1 -1
  36. package/dist/esm/ptc-homepage-video-background.entry.js +1 -1
  37. package/dist/esm/ptc-icon-card.entry.js +3 -2
  38. package/dist/esm/ptc-info-tile.entry.js +1 -1
  39. package/dist/esm/ptc-jumbotron.entry.js +1 -1
  40. package/dist/esm/ptc-media-card.entry.js +3 -2
  41. package/dist/esm/ptc-social-icons-footer.entry.js +1 -1
  42. package/dist/esm/ptcw-design.js +1 -1
  43. package/dist/ptcw-design/{p-04435c90.entry.js → p-002660d2.entry.js} +1 -1
  44. package/dist/ptcw-design/{p-a980b95c.entry.js → p-5b90e743.entry.js} +1 -1
  45. package/dist/ptcw-design/{p-66278b8f.entry.js → p-690f8f51.entry.js} +1 -1
  46. package/dist/ptcw-design/p-7521e61d.entry.js +1 -0
  47. package/dist/ptcw-design/p-8c2ef359.entry.js +1 -0
  48. package/dist/ptcw-design/p-a11cc4ef.entry.js +1 -0
  49. package/dist/ptcw-design/p-b0316b10.entry.js +1 -0
  50. package/dist/ptcw-design/p-d21f5850.entry.js +1 -0
  51. package/dist/ptcw-design/p-d9517457.entry.js +1 -0
  52. package/dist/ptcw-design/{p-4f0ebaa3.entry.js → p-f338be91.entry.js} +1 -1
  53. package/dist/ptcw-design/p-f65792ee.entry.js +1 -0
  54. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  55. package/dist/types/components/ptc-icon-card/ptc-icon-card.d.ts +1 -0
  56. package/dist/types/components/ptc-media-card/ptc-media-card.d.ts +4 -0
  57. package/dist/types/components.d.ts +10 -0
  58. package/package.json +1 -1
  59. package/readme.md +1 -1
  60. package/dist/ptcw-design/p-875146cd.entry.js +0 -1
  61. package/dist/ptcw-design/p-93916048.entry.js +0 -1
  62. package/dist/ptcw-design/p-9d25dba7.entry.js +0 -1
  63. package/dist/ptcw-design/p-b256aab2.entry.js +0 -1
  64. package/dist/ptcw-design/p-bc73f9e9.entry.js +0 -1
  65. package/dist/ptcw-design/p-d0e8fc5b.entry.js +0 -1
  66. package/dist/ptcw-design/p-fc7e1b55.entry.js +0 -1
@@ -1 +0,0 @@
1
- import{r as t,h as i,H as e}from"./p-ac75c7ad.js";import{b as a}from"./p-0d81fcbd.js";const s=class{constructor(i){t(this,i),this.videoEle=void 0,this.cardType="media-card",this.cardHref=void 0,this.target="_self",this.rel=void 0,this.activeBackgroundImage=void 0,this.hoverBackgroundImage=void 0,this.heading=void 0,this.headingTransform="none",this.category=void 0,this.ariaLabel=void 0,this.iconImage=void 0,this.isHovered=!1}WatchStateHandler(t){this.videoEle&&(t?this.videoEle.play():this.videoEle.pause())}getCardText(){if("media-card"===this.cardType)return[i("div",{class:"card-wrap"},i("div",{class:"car-content"},i("p",null,this.category," "),i("h3",null,this.heading)))]}componentDidLoad(){this.ariaLabel=this.getLastStringAfterSlash(this.cardHref)}getLastStringAfterSlash(t){const i=t.split("/");return i[i.length-1]}render(){const t=this.cardHref?"a":"div",s=!(!this.hoverBackgroundImage||".mp4"!==a(this.hoverBackgroundImage)&&!this.hoverBackgroundImage.includes(".mp4")),o=this.getCssClassMap();return i(e,{class:o,onmouseenter:()=>this.isHovered=!0,onmouseleave:()=>this.isHovered=!1,style:"case-study-icon"!=this.cardType?this.isHovered&&this.hoverBackgroundImage?{backgroundImage:`url(${this.hoverBackgroundImage})`}:{backgroundImage:`url(${this.activeBackgroundImage})`}:{}},i("slot",{name:"seo-content"}),"case-study-icon"!=this.cardType?i(t,{class:"anchor-wrap",target:this.target,href:this.cardHref,rel:this.rel,"aria-label":this.cardHref?"Read more about "+this.ariaLabel:void 0},s&&i("video",{muted:!0,loop:!0,playsinline:!0,poster:this.activeBackgroundImage,ref:t=>this.videoEle=t,style:this.isHovered?{display:"block"}:{display:"none"}},i("source",{src:this.hoverBackgroundImage,type:"video/mp4"},"Your browser does not support the video tag.")),"media-card"===this.cardType&&i("ptc-overlay",{"filter-color":"black-2"}),"media-card"===this.cardType&&this.getCardText()):null,"case-study-icon"===this.cardType?i("a",{class:"case-study-img-anchor",target:this.target,href:this.cardHref,rel:this.rel,"aria-label":this.cardHref?"Read more about "+this.ariaLabel:void 0},i("img",{class:"case-study-bg-img",src:this.activeBackgroundImage}),i("div",{class:"after"}),i("img",{class:"case-study-icon-img",src:this.iconImage})):null)}getCssClassMap(){return{[this.cardType]:!0}}static get watchers(){return{isHovered:["WatchStateHandler"]}}};s.style="h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:block;position:relative;width:100%;background-size:cover;background-position:50%;background-repeat:no-repeat}:host .anchor-wrap{height:100%;width:100%;display:block;text-decoration:none;position:relative}:host video{object-fit:cover;height:100%;width:100%;z-index:0;position:absolute;left:0;right:0;top:0;bottom:0;display:none}:host(.media-card) ::slotted([slot=seo-content]){display:none}:host(.media-card) .card-wrap{display:flex;height:100%;width:100%;position:relative;z-index:1;min-height:329px;align-items:end}:host(.media-card) .card-wrap .car-content{padding:20px 30px 30px 30px}:host(.media-card) .card-wrap .car-content p,:host(.media-card) .card-wrap .car-content h3{color:#fff}:host(.media-card) .card-wrap .car-content h3{position:relative;margin-bottom:0;font-size:var(--ptc-font-size-medium);text-shadow:1px 3px 30px #000;line-height:var(--ptc-line-height-densest);display:inline}@media only screen and (min-width: 768px){:host(.media-card) .card-wrap .car-content h3{font-size:var(--ptc-font-size-large)}}:host(.media-card) .card-wrap .car-content h3::before{content:\"\";width:100%;height:3px;background-image:url(\"data:image/svg+xml,%3Csvg width='60' height='1' viewBox='0 0 60 1' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='30' height='1' fill='%2333A13C'/%3E%3C/svg%3E\");background-repeat:repeat;position:absolute;background-size:initial;top:-10px}:host(.media-card) .card-wrap .car-content p{text-shadow:1px 3px 30px var(--color-black);font-weight:var(--ptc-font-weight-semibold);display:block;font-size:var(--ptc-font-size-x-small)}:host(.bureau-card){height:100%;position:relative}:host(.case-study-icon){width:296px}:host(.case-study-icon) ::slotted([slot=seo-content]){display:none}:host(.case-study-icon) .case-study-img-anchor{position:relative;width:296px;height:396px;display:flex;justify-content:center;align-items:center;transition:var(--ptc-transition-medium) var(--ptc-ease-inout);-webkit-transition:var(--ptc-transition-medium) var(--ptc-ease-inout);-o-transition:var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.case-study-icon) .case-study-img-anchor .case-study-bg-img{display:flex;width:296px;height:396px;flex-direction:column;justify-content:center;align-items:center;border-radius:4px;object-fit:cover;position:absolute;z-index:1;box-shadow:var(--ptc-shadow-large)}:host(.case-study-icon) .case-study-img-anchor .after{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:4px;z-index:2;background:rgba(0, 0, 0, 0.5);transition:var(--ptc-transition-medium) var(--ptc-ease-inout);-webkit-transition:var(--ptc-transition-medium) var(--ptc-ease-inout);-o-transition:var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.case-study-icon) .case-study-img-anchor .case-study-icon-img{position:absolute;z-index:3;width:92px;height:42px;border-radius:4px;background:#FFF;padding:24px;box-shadow:0px 1px 4px 0px rgba(0, 0, 0, 0.24);transition:var(--ptc-transition-medium) var(--ptc-ease-inout);-webkit-transition:var(--ptc-transition-medium) var(--ptc-ease-inout);-o-transition:var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.case-study-icon) .case-study-img-anchor:hover .after{display:block;background:rgba(0, 0, 0, 0.07)}:host(.case-study-icon) .case-study-img-anchor:hover .case-study-icon-img{width:96px;height:46px}:host(.case-study-icon) .case-study-img-anchor:active,:host(.case-study-icon) .case-study-img-anchor:focus{transition:none !important;-webkit-transition:none !important;-o-transition:none !important}:host(.case-study-icon) .case-study-img-anchor:active .after,:host(.case-study-icon) .case-study-img-anchor:focus .after{display:block;background:rgba(0, 0, 0, 0.2);transition:none !important;-webkit-transition:none !important;-o-transition:none !important}:host(.case-study-icon) .case-study-img-anchor:active .case-study-icon-img,:host(.case-study-icon) .case-study-img-anchor:focus .case-study-icon-img{transition:none !important;-webkit-transition:none !important;-o-transition:none !important}@media (min-width: 768px){:host(.case-study-icon){width:373px}:host(.case-study-icon) .case-study-img-anchor{width:373px;height:500px}:host(.case-study-icon) .case-study-img-anchor .case-study-bg-img{width:373px;height:500px}}";export{s as ptc_media_card}