@ptcwebops/ptcw-design 6.3.61-beta → 6.3.63-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 (37) hide show
  1. package/dist/cjs/embedded-form.cjs.entry.js +1 -1
  2. package/dist/cjs/ptc-countdown.cjs.entry.js +7 -10
  3. package/dist/cjs/ptc-form-checkbox_4.cjs.entry.js +13 -7
  4. package/dist/cjs/ptc-img.cjs.entry.js +2 -2
  5. package/dist/cjs/ptc-pricing-packaging-table.cjs.entry.js +1 -1
  6. package/dist/cjs/ptc-text-copy-with-background.cjs.entry.js +8 -2
  7. package/dist/collection/components/organism-bundles/form/embedded-form/embedded-form.js +1 -1
  8. package/dist/collection/components/ptc-countdown/ptc-countdown.js +7 -10
  9. package/dist/collection/components/ptc-img/ptc-img.js +2 -2
  10. package/dist/collection/components/ptc-pricing-packaging-table/ptc-pricing-packaging-table.css +2 -2
  11. package/dist/collection/components/ptc-select/ptc-select.js +8 -4
  12. package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.js +8 -2
  13. package/dist/collection/components/ptc-textfield/ptc-textfield.css +38 -0
  14. package/dist/collection/components/ptc-textfield/ptc-textfield.js +9 -4
  15. package/dist/custom-elements/index.js +32 -23
  16. package/dist/esm/embedded-form.entry.js +1 -1
  17. package/dist/esm/ptc-countdown.entry.js +7 -10
  18. package/dist/esm/ptc-form-checkbox_4.entry.js +13 -7
  19. package/dist/esm/ptc-img.entry.js +2 -2
  20. package/dist/esm/ptc-pricing-packaging-table.entry.js +1 -1
  21. package/dist/esm/ptc-text-copy-with-background.entry.js +8 -2
  22. package/dist/ptcw-design/p-0d859481.entry.js +1 -0
  23. package/dist/ptcw-design/{p-4ca956c1.entry.js → p-201a96ca.entry.js} +1 -1
  24. package/dist/ptcw-design/p-7588b226.entry.js +1 -0
  25. package/dist/ptcw-design/p-ce285530.entry.js +68 -0
  26. package/dist/ptcw-design/{p-fd87fcd5.entry.js → p-ef5b5890.entry.js} +1 -1
  27. package/dist/ptcw-design/{p-bab5bb88.entry.js → p-f5d8a3b1.entry.js} +1 -1
  28. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  29. package/dist/types/components/ptc-countdown/ptc-countdown.d.ts +0 -1
  30. package/dist/types/components/ptc-select/ptc-select.d.ts +1 -0
  31. package/dist/types/components/ptc-textfield/ptc-textfield.d.ts +2 -2
  32. package/dist/types/components.d.ts +2 -2
  33. package/package.json +1 -1
  34. package/readme.md +1 -1
  35. package/dist/ptcw-design/p-1efb0486.entry.js +0 -68
  36. package/dist/ptcw-design/p-e8c275a1.entry.js +0 -1
  37. package/dist/ptcw-design/p-ff4d3794.entry.js +0 -1
@@ -1 +0,0 @@
1
- import{r as t,h as a,H as i,g as e}from"./p-ac75c7ad.js";const o=class{constructor(a){t(this,a),this.type="text-copy-with-background",this.backgroundImage=void 0,this.ImageAltText=void 0,this.topSlitBackgroundColor=void 0,this.slitPosition="top-right",this.isBackgroundBlur=!1,this.overlay=!0,this.disableLightLinks=!1,this.styles=void 0}componentDidLoad(){var t;"hero-footer-cta"===this.hostEle.getAttribute("type")&&(null===(t=this.hostEle.parentElement)||void 0===t||t.classList.add("text-copy-footer-cta"))}render(){const t=this.getCssClassMap(),e=this.getSlitFillColor();return a(i,{class:t},this.styles&&a("style",null,this.styles),a("svg",{xmlns:"http://www.w3.org/2000/svg",class:"tcb-top-slit",width:"320.963",height:"28.179",viewBox:"0 0 320.963 28.179",style:{fill:e}},a("path",{id:"Path_8770",d:"M737.02 463.856v27.8H416.057v.378h102.38l47.607-28.179z",class:"tcb-top-slit-cls-1","data-name":"Path 8770",transform:"translate(-416.057 -463.856)"})),this.backgroundImage?a("div",{class:""},a("img",{class:"copy-bg-image",alt:this.ImageAltText,src:this.backgroundImage}),this.isBackgroundBlur&&a("img",{class:"copy-bg-image bg-img-filter",alt:this.ImageAltText,src:this.backgroundImage})):null,this.overlay&&a("div",{class:"copy-bg-overlay-layer"}),a("div",{class:"content-wrap"},"case-studies"==this.type&&a("div",{class:"ptc-container"},a("div",{class:"card-wrap"},a("div",{class:"card-animated-border"}),a("div",{class:"card-content"},a("div",{class:"card-layout"},a("slot",{name:"card-content"}))))),a("slot",null)))}getSlitFillColor(){let t="#fff";if("auto"==this.topSlitBackgroundColor){let a=getComputedStyle(document.body);a&&a.backgroundColor&&(t=a.backgroundColor)}else t=this.topSlitBackgroundColor;return t}getCssClassMap(){return{[this.type]:!0,[this.slitPosition]:!0,"light-links":this.overlay&&!this.disableLightLinks,"bg-image-absent":!this.backgroundImage&&"text-copy-with-background"==this.type}}get hostEle(){return e(this)}};o.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%;padding:var(--ptc-layout-spacing-05) var(--ptc-layout-spacing-01);color:var(--color-white)}@media only screen and (min-width: 768px){:host{padding:var(--ptc-layout-spacing-05) var(--ptc-layout-spacing-03)}}@media only screen and (min-width: 992px){:host{padding:var(--ptc-layout-spacing-06) 0}}@media only screen and (min-width: 1200px){:host{padding:var(--ptc-layout-spacing-06) var(--ptc-layout-spacing-03)}}:host .content-wrap{position:relative}:host .tcb-top-slit{fill:#f3f3f3;transform:scale(1.5, -1);position:absolute;top:-1px;right:80px;z-index:99;display:none}@media only screen and (min-width: 992px){:host .tcb-top-slit{display:block}}:host .bg-img-filter{-webkit-filter:url(#blur);filter:url(#blur);-webkit-mask:-webkit-gradient(linear, left top, right top, color-stop(30%, var(--color-black)), to(rgba(0, 0, 0, 0)));-webkit-mask:linear-gradient(90deg, var(--color-black) 30%, rgba(0, 0, 0, 0));-webkit-filter:blur(7px)}:host .copy-bg-image{top:0;left:0;height:100%;width:100%;position:absolute;-o-object-fit:cover;object-fit:cover}@media only screen and (min-width: 992px){:host .copy-bg-image{display:block}}:host .copy-bg-overlay-layer{position:absolute;top:0;left:0;height:100%;width:100%;background:var(--color-black);opacity:0.6}:host(.hero-footer-cta){padding:var(--ptc-layout-spacing-05) 0}@media only screen and (min-width: 768px){:host(.hero-footer-cta){padding:calc(var(--ptc-layout-spacing-06) + var(--ptc-layout-spacing-01)) 0}}:host(.hero-footer-cta) .copy-bg-overlay-layer{opacity:0.6}:host(.tab-cta-with-background){min-height:300px;padding:var(--ptc-layout-spacing-02)}:host(.tab-cta-with-background) .copy-bg-image{top:0;left:0;height:100%;width:100%;position:absolute;-o-object-fit:cover;object-fit:cover;display:none;border-radius:4px}@media only screen and (min-width: 992px){:host(.tab-cta-with-background){min-height:400px}:host(.tab-cta-with-background) .copy-bg-image{display:block}}@media only screen and (min-width: 992px){:host(.tab-cta-with-background){display:flex;align-items:center;padding:var(--ptc-element-spacing-09)}}:host(.tab-cta-with-background) .copy-bg-overlay-layer{background:initial;opacity:1;background-image:linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, 0.9) 63%, rgba(176, 188, 194, 0) 95%)}@media only screen and (min-width: 992px){:host(.tab-cta-with-background) .copy-bg-overlay-layer{background-image:linear-gradient(90deg, rgba(255, 255, 255, 0.95) 43%, rgba(176, 188, 194, 0) 95%)}}:host(.bottom-right) .tcb-top-slit{top:auto;bottom:-1px;transform:scale(1.5, 1)}:host(.bottom-left) .tcb-top-slit{top:auto;bottom:-1px;transform:scale(1.5, 1) scaleX(-1);left:80px;right:auto}:host(.top-left) .tcb-top-slit{top:-1px;bottom:auto;transform:scale(1.5, 1) rotate(180deg);left:80px;right:auto}:host(.case-studies){min-height:25rem;height:auto;margin-bottom:10rem;display:flex;align-items:center}@media only screen and (min-width: 768px){:host(.case-studies){min-height:33.75rem;height:auto;margin-bottom:0;padding-top:var(--ptc-layout-spacing-06)}}:host(.case-studies) .card-wrap{position:relative;border:1px solid transparent;width:100%;height:100%;max-width:540px;bottom:-13rem}@media only screen and (min-width: 768px){:host(.case-studies) .card-wrap{bottom:auto}}:host(.case-studies) .card-wrap::after{position:absolute;width:0;height:1px;content:"";background:#fff;top:0px;left:0px;animation:widthAnimate 0.2s linear 0.2s 1 forwards}:host(.case-studies) .card-wrap::before{position:absolute;width:1px;height:0;content:"";background:#fff;top:0px;right:0px;animation:heightAnimate 0.2s linear 0.4s 1 forwards}:host(.case-studies) .card-wrap .card-animated-border{border:1px solid transparent;position:absolute;left:-1px;right:0;bottom:0px;top:-1px;width:100%;height:100%;box-shadow:var(--ptc-shadow-x-small)}:host(.case-studies) .card-wrap .card-animated-border::after{position:absolute;width:0;height:1px;content:"";background:#fff;bottom:0px;right:0px;animation:widthAnimate 0.2s linear 0.6s 1 forwards}:host(.case-studies) .card-wrap .card-animated-border::before{position:absolute;width:1px;height:0;content:"";background:#fff;bottom:0px;left:0px;animation:heightAnimate 0.2s linear 0.8s 1 forwards}:host(.case-studies) .card-wrap .card-content{opacity:0;animation:fadeIn 0.5s ease-in 0.9s 1 forwards;background-color:transparent;width:100%;height:100%}:host(.case-studies) .card-wrap .card-content .card-layout{padding:var(--ptc-layout-spacing-04);background-color:#fff}@keyframes widthAnimate{0%{width:0}100%{width:100%}}@keyframes heightAnimate{0%{height:0}100%{height:100%}}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}:host(.case-studies) .content-wrap{width:100%}:host(.case-studies) .ptc-container{padding-right:24px;padding-left:24px;margin-right:auto;margin-left:auto}@media only screen and (min-width: 1200px){:host(.case-studies) .ptc-container{padding-left:0;padding-right:0;max-width:1136px}}@media only screen and (min-width: 1440px){:host(.case-studies) .ptc-container{padding-left:0;padding-right:0;max-width:1200px}}:host(.bg-image-absent){padding:0rem}';export{o as ptc_text_copy_with_background}
@@ -1 +0,0 @@
1
- import{r as t,h as i,H as e,g as s}from"./p-ac75c7ad.js";import{R as a}from"./p-711bcdad.js";const n=class{constructor(i){t(this,i),this.sizeXs="510x340",this.sizeSm="1240x496",this.sizeMd="1366x500",this.sizeLg="1920x1080",this.imgUrl=void 0,this.imageType="smart-bg",this.borderRadius="",this.loadMode="lazy-bg",this.styles=void 0,this.enableLazyLoad=!1,this.delay=2e3,this.bgSrcLazy=void 0,this.bgSrcMedium=void 0,this.bgSrcHigh=void 0,this.isInViewport=!1,this.isImageUpgraded=!1}WindowResize(){this.setResponsiveBg()}render(){const t=this.getCssClassMap();return i(e,null,this.styles&&i("style",null,this.styles),this.enableLazyLoad&&this.imgUrl?i("div",{class:t},i("div",{class:"low-quality",style:{backgroundImage:`url(${this.bgSrcLazy})`,opacity:"1",transition:"opacity 0.5s ease-in-out"}}),i("div",{class:"medium-quality",style:{backgroundImage:`url(${this.bgSrcMedium})`,opacity:"0",transition:"opacity 0.5s ease-in-out"}}),i("div",{class:"high-quality",style:{backgroundImage:`url(${this.bgSrcHigh})`,opacity:"0",transition:"opacity 0.5s ease-in-out"}}),"smart-bg"==this.imageType?i("slot",null):null):i("div",{class:t,"data-xs":this.bgSrcLazy||this.imgUrl,"data-sm":this.bgSrcLazy||this.imgUrl,"data-md":this.bgSrcLazy||this.imgUrl,"data-lg":this.bgSrcLazy||this.imgUrl,style:{backgroundImage:`url(${this.bgSrcLazy||this.imgUrl})`}},"smart-bg"==this.imageType?i("slot",null):null))}componentWillLoad(){this.enableLazyLoad&&(this.isInViewport=!1),this.enableLazyLoad&&this.imgUrl?(this.bgSrcLazy=this.getImageUrl("lq"),this.bgSrcMedium=this.getImageUrl("mq"),this.bgSrcHigh=this.getImageUrl("hq")):(console.warn("Image URL is undefined or invalid."),this.bgSrcLazy="",this.bgSrcMedium="",this.bgSrcHigh="")}componentDidLoad(){if(this.addIntersectionObserver(),this.setResponsiveBg(),this.enableLazyLoad&&this.imgUrl){const t=this;setTimeout((()=>{t.upgradeImageQuality()}),t.delay)}}componentWillUpdate(){this.addIntersectionObserver(),this.setResponsiveBg()}upgradeImageQuality(){this.isInViewport&&!this.isImageUpgraded&&(console.log("Low-quality image is visible."),this.isImageUpgraded=!0,setTimeout((()=>{const t=this.el.querySelector(".medium-quality");t&&(t.style.opacity="1",console.log("Medium-quality image is now visible.")),setTimeout((()=>{const i=this.el.querySelector(".high-quality");i&&(i.style.opacity="1",console.log("High-quality image is now visible.")),t&&(t.style.opacity="0",console.log("Medium-quality image is hidden."))}),this.delay)}),this.delay/2))}setResponsiveBg(){let t,i,e=(this.el||document).querySelectorAll(a.selector),s=this.getCurrentBreakPoints();for(var n=0,o=e.length;n<o;n++)t=e[n],i=t.getAttribute("data-"+s),null!==i?t.style.backgroundImage="url('"+i+"')":"object"==typeof console&&console.warn("Data attribute: data-"+s+" not found on element:\n\n"+t.outerHTML+"\n\n\n")}addIntersectionObserver(){if(this.imgUrl&&"IntersectionObserver"in window){let t=(this.el||document).querySelectorAll(".lazy-bg"),i=new IntersectionObserver((t=>{t.forEach((t=>{if(t.isIntersecting){const e=t.target;e.classList.remove("lazy-bg"),i.unobserve(e),this.isInViewport=!0,this.upgradeImageQuality()}}))}));t.forEach((t=>{i.observe(t)}))}}getImageUrl(t){return this.imgUrl&&this.imgUrl.includes("?")?`${this.imgUrl}&t=ptcjumbdesk${t}`:`${this.imgUrl}?t=ptcjumbdesk${t}`}getCssClassMap(){return{[this.imageType]:!0,"ptc-img":!0,[this.borderRadius]:!0,[this.loadMode]:!0}}getCurrentBreakPoints(){let t,i=window.document,e=i.createElement("div");i.body.appendChild(e);for(let s=a.envs.length-1;s>=0;s--)if(t=a.envs[s],e.className="hidden-"+t,null===e.offsetParent)return i.body.removeChild(e),t;return i.body.removeChild(e),this.getFallbackBreakpoint()}getFallbackBreakpoint(){return window.matchMedia("(min-width: 992px)").matches?"lg":window.matchMedia("(min-width: 768px)").matches?"md":window.matchMedia("(min-width: 576px)").matches?"sm":"xs"}get el(){return s(this)}};n.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}}.smart-bg{width:100%;height:100%;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}.smart-img{position:absolute;display:block;width:100%;height:100%;top:0;left:0;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}.radius-standard{border-radius:var(--ptc-border-radius-standard)}.radius-standard-top{border-top-left-radius:var(--ptc-border-radius-standard);border-top-right-radius:var(--ptc-border-radius-standard)}.radius-large{border-radius:var(--ptc-border-radius-large)}.radius-large-top{border-top-left-radius:var(--ptc-border-radius-large);border-top-right-radius:var(--ptc-border-radius-large)}.lazy-bg{background-image:none !important;background-color:var(--color-gray-03)}@media only screen and (min-width: 768px){.hidden-xs{display:none !important}}@media (min-width: 768px) and (max-width: 991px){.hidden-sm{display:none !important}}@media (min-width: 992px) and (max-width: 1199px){.hidden-md{display:none !important}}@media only screen and (min-width: 768px){.hidden-lg{display:none !important}}.lazy-bg{background-image:none !important;background-color:var(--color-gray-03)}.ptc-img{position:relative;width:100%;height:100%;background-size:cover;background-repeat:no-repeat;background-position:center center}img{width:100%;height:auto;display:block}.low-quality,.medium-quality,.high-quality{position:absolute;width:100%;height:100%;top:0;left:0;background-size:cover;background-repeat:no-repeat;background-position:center center;transition:opacity 0.5s ease-in-out}.low-quality{z-index:1}.medium-quality{z-index:2;opacity:0}.high-quality{z-index:3;opacity:0}";export{n as ptc_img}