@ptcwebops/ptcw-design 4.7.4 → 4.7.6

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 (82) hide show
  1. package/dist/cjs/dropdown-item.cjs.entry.js +1 -1
  2. package/dist/cjs/featured-list.cjs.entry.js +1 -1
  3. package/dist/cjs/icon-asset_8.cjs.entry.js +1 -1
  4. package/dist/cjs/list-item.cjs.entry.js +1 -1
  5. package/dist/cjs/ptc-announcement.cjs.entry.js +1 -1
  6. package/dist/cjs/ptc-back-to-top.cjs.entry.js +2 -2
  7. package/dist/cjs/ptc-close-icon_2.cjs.entry.js +1 -1
  8. package/dist/cjs/ptc-featured-list.cjs.entry.js +1 -1
  9. package/dist/cjs/ptc-filter-level-theater.cjs.entry.js +1 -1
  10. package/dist/cjs/ptc-filter-tag_2.cjs.entry.js +2 -2
  11. package/dist/cjs/ptc-footer.cjs.entry.js +1 -1
  12. package/dist/cjs/ptc-jumbotron.cjs.entry.js +1 -1
  13. package/dist/cjs/ptc-link.cjs.entry.js +1 -1
  14. package/dist/cjs/ptc-quantity-counter.cjs.entry.js +1 -1
  15. package/dist/cjs/ptc-search-field.cjs.entry.js +1 -1
  16. package/dist/cjs/ptc-social-icons-footer.cjs.entry.js +1 -1
  17. package/dist/cjs/ptc-white-paper.cjs.entry.js +1 -1
  18. package/dist/collection/components/dropdown-item/dropdown-item.css +3 -0
  19. package/dist/collection/components/list-item/list-item.css +6 -1
  20. package/dist/collection/components/organism-bundles/bundle-featured-list/featured-list.css +4 -0
  21. package/dist/collection/components/ptc-announcement/ptc-announcement.css +1 -0
  22. package/dist/collection/components/ptc-back-to-top/ptc-back-to-top.css +3 -1
  23. package/dist/collection/components/ptc-back-to-top/ptc-back-to-top.js +1 -1
  24. package/dist/collection/components/ptc-button/ptc-button.css +5 -0
  25. package/dist/collection/components/ptc-close-icon/ptc-close-icon.css +1 -0
  26. package/dist/collection/components/ptc-featured-list/ptc-featured-list.css +4 -0
  27. package/dist/collection/components/ptc-filter-level-theater/ptc-filter-level-theater.css +23 -5
  28. package/dist/collection/components/ptc-filter-tag/ptc-filter-tag.css +1 -0
  29. package/dist/collection/components/ptc-footer/ptc-footer-v2.css +11 -7
  30. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +4 -0
  31. package/dist/collection/components/ptc-link/ptc-link.css +1 -0
  32. package/dist/collection/components/ptc-pagenation/ptc-pagenation.css +4 -0
  33. package/dist/collection/components/ptc-quantity-counter/ptc-quantity-counter.css +1 -0
  34. package/dist/collection/components/ptc-search-field/ptc-search-field.css +1 -0
  35. package/dist/collection/components/ptc-social-icons-footer/ptc-social-icons-footer.css +7 -9
  36. package/dist/collection/components/ptc-white-paper/ptc-white-paper.css +4 -0
  37. package/dist/collection/stories/TextCopyWithBackground.stories.js +11 -7
  38. package/dist/custom-elements/index.js +19 -19
  39. package/dist/esm/dropdown-item.entry.js +1 -1
  40. package/dist/esm/featured-list.entry.js +1 -1
  41. package/dist/esm/icon-asset_8.entry.js +1 -1
  42. package/dist/esm/list-item.entry.js +1 -1
  43. package/dist/esm/ptc-announcement.entry.js +1 -1
  44. package/dist/esm/ptc-back-to-top.entry.js +2 -2
  45. package/dist/esm/ptc-close-icon_2.entry.js +1 -1
  46. package/dist/esm/ptc-featured-list.entry.js +1 -1
  47. package/dist/esm/ptc-filter-level-theater.entry.js +1 -1
  48. package/dist/esm/ptc-filter-tag_2.entry.js +2 -2
  49. package/dist/esm/ptc-footer.entry.js +1 -1
  50. package/dist/esm/ptc-jumbotron.entry.js +1 -1
  51. package/dist/esm/ptc-link.entry.js +1 -1
  52. package/dist/esm/ptc-quantity-counter.entry.js +1 -1
  53. package/dist/esm/ptc-search-field.entry.js +1 -1
  54. package/dist/esm/ptc-social-icons-footer.entry.js +1 -1
  55. package/dist/esm/ptc-white-paper.entry.js +1 -1
  56. package/dist/ptcw-design/{p-67cbd56c.entry.js → p-028e5681.entry.js} +1 -1
  57. package/dist/ptcw-design/p-107dd637.entry.js +1 -0
  58. package/dist/ptcw-design/{p-08f97cb8.entry.js → p-1102d3af.entry.js} +1 -1
  59. package/dist/ptcw-design/p-424ae19b.entry.js +1 -0
  60. package/dist/ptcw-design/p-4defd5d1.entry.js +1 -0
  61. package/dist/ptcw-design/p-59df5cb3.entry.js +1 -0
  62. package/dist/ptcw-design/{p-4ee95521.entry.js → p-6a53523b.entry.js} +1 -1
  63. package/dist/ptcw-design/p-7e19be10.entry.js +1 -0
  64. package/dist/ptcw-design/{p-b104db40.entry.js → p-80c56c81.entry.js} +1 -1
  65. package/dist/ptcw-design/{p-3d341d68.entry.js → p-887c44ae.entry.js} +1 -1
  66. package/dist/ptcw-design/{p-25d30988.entry.js → p-af5f2499.entry.js} +1 -1
  67. package/dist/ptcw-design/{p-936d475f.entry.js → p-c36e02fb.entry.js} +1 -1
  68. package/dist/ptcw-design/{p-100c7e73.entry.js → p-d4d4aa05.entry.js} +1 -1
  69. package/dist/ptcw-design/p-d71c6e09.entry.js +1 -0
  70. package/dist/ptcw-design/{p-619b0bf7.entry.js → p-dad4a0da.entry.js} +1 -1
  71. package/dist/ptcw-design/{p-738fa39b.entry.js → p-e7ede17d.entry.js} +1 -1
  72. package/dist/ptcw-design/{p-c418918b.entry.js → p-ef85dbef.entry.js} +1 -1
  73. package/dist/ptcw-design/ptcw-design.css +2 -2
  74. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  75. package/package.json +1 -1
  76. package/readme.md +1 -1
  77. package/dist/ptcw-design/p-058b48da.entry.js +0 -1
  78. package/dist/ptcw-design/p-102cfdc3.entry.js +0 -1
  79. package/dist/ptcw-design/p-2f77e37a.entry.js +0 -1
  80. package/dist/ptcw-design/p-81e07694.entry.js +0 -1
  81. package/dist/ptcw-design/p-cb00b505.entry.js +0 -1
  82. package/dist/ptcw-design/p-d7b6d68a.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as t,c as e,h as r,H as a,a as i}from"./p-944c5be8.js";const s=class{constructor(r){t(this,r),this.valueChanged=e(this,"valueChanged",7),this.clicked=e(this,"clicked",7),this.textValue=void 0,this.placeholderLabel=void 0,this.darkTheme=void 0,this.isNews=void 0,this.elevation="small",this.enableClear=!1,this.styles=void 0}textChangedHandler(t){this.valueChanged.emit({sender:this,event:t,searchTerm:this.getSearchValue()})}buttonClickHandler(t){this.clicked.emit({sender:this,event:t,searchTerm:this.getSearchValue()})}keyDownHandler(t){"Enter"==t.key&&this.clicked.emit({sender:this,event:t,searchTerm:this.getSearchValue()}),this.getSearchValue()}keyUpHandler(){this.darkTheme||(this.enableClear=!(""==this.getSearchValue()))}getSearchValue(){let t="",e=this.el.shadowRoot.querySelector("input");return e&&(t=e.value),t}async clearSearchValue(){this.textValue="";let t=this.el.shadowRoot.querySelector("input");t&&(t.value="",this.enableClear=!1)}render(){const t=this.getCssClassMap(),e=this.darkTheme?"white":"black";return r(a,{class:t},this.styles&&r("style",null,this.styles),r("div",{class:"search-div"},r("div",{class:"input-wrap"},r("input",{type:"text",value:this.textValue,placeholder:this.placeholderLabel,onKeyDown:t=>{this.keyDownHandler(t)},onKeyUp:()=>{this.keyUpHandler()},onChange:t=>{this.textChangedHandler(t)}}),this.enableClear&&r("div",{class:"icon-wrapper"},r("icon-asset",{class:"cls",type:"ptc",color:e,name:"times",size:"xxx-small",onClick:t=>{this.clearSearchValue(),this.buttonClickHandler(t)}}))),r("button",{type:"button",color:"blackgrey",class:"search-btn",onClick:t=>{this.buttonClickHandler(t)}},r("icon-asset",{type:"ptc",size:"medium",name:"new-search",color:"white"}))))}getCssClassMap(){return{dark:!!this.darkTheme,[this.elevation]:!0,"enable-clear":this.enableClear,news:!!this.isNews}}get el(){return i(this)}};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 .search-div{position:relative;display:flex;align-items:stretch;height:51px;border-radius:var(--ptc-border-radius-standard)}:host .search-div .input-wrap{position:relative;width:100%;box-sizing:border-box;display:flex}:host .search-div .input-wrap input{height:100%}:host .search-div input{background-color:var(--color-white);height:-webkit-fill-available;border:0 solid var(--color-gray-12);border-radius:var(--ptc-border-radius-standard) 0 0 var(--ptc-border-radius-standard);flex-grow:2;padding-left:var(--ptc-element-spacing-04);line-height:var(--ptc-line-height-loose);padding-right:54px;width:100%;box-sizing:border-box;margin-right:0px}:host .search-div input:focus-visible{border-radius:var(--ptc-border-radius-standard) 0 0 var(--ptc-border-radius-standard);outline:none}:host .search-div input::placeholder{font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);font-weight:var(--ptc-font-weight-regular);font-size:var(--ptc-font-size-small);position:relative;top:1px;color:var(--color-gray-10)}:host .search-div .search-btn{cursor:pointer;height:51px;min-width:51px;border-radius:0 var(--ptc-border-radius-standard) var(--ptc-border-radius-standard) 0;background-color:var(--color-gray-12);border:0 solid var(--color-gray-12);transition:background-color var(--ptc-ease-inout) var(--ptc-transition-medium);margin:0}:host .search-div .search-btn:active{background-color:var(--color-black)}:host .search-div .search-btn:hover{background-color:var(--color-gray-10)}:host .search-div .search-btn:focus{outline:3px solid var(--color-blue-07);outline-offset:2px}:host(.dark){z-index:999;position:relative;margin-top:20px}:host(.dark) .search-div{height:43px;width:208px}@media (max-width: 480px){:host(.dark) .search-div{width:100%}}@media only screen and (min-width: 992px){:host(.dark) .search-div{width:246px}}:host(.dark) .search-div input{background-color:var(--color-gray-12);border:1px solid var(--color-gray-08);color:var(--color-white);padding-left:unset;text-indent:var(--ptc-element-spacing-04);padding-right:2px}:host(.dark) .search-div input::placeholder{color:var(--color-white);font-size:var(--ptc-font-size-x-small)}:host(.dark) .search-div .search-btn{height:43px;width:43px;background-color:var(--color-gray-10);border:1px solid var(--color-gray-08);border-left:0}:host(.dark) .search-div .search-btn:hover{background-color:var(--color-gray-08)}:host(.news){z-index:999;position:relative;margin-top:20px}:host(.news) .search-div{height:43px}@media (max-width: 480px){:host(.news) .search-div{width:100%}}@media only screen and (min-width: 992px){:host(.news) .search-div{width:246px}}:host(.news) .search-div .search-btn{height:43px}:host(.x-small) .search-div{box-shadow:var(--ptc-shadow-x-small)}:host(.small) .search-div{box-shadow:var(--ptc-shadow-small)}:host(.medium) .search-div{box-shadow:var(--ptc-shadow-medium)}:host(.large) .search-div{box-shadow:var(--ptc-shadow-large)}:host(.x-large) .search-div{box-shadow:var(--ptc-shadow-x-large)}@media (max-width: 480px){input{width:75%}}.icon-wrapper{padding:16px 20px 0;background-color:transparent;position:absolute;right:0;top:-2px;height:100%;box-sizing:border-box}.icon-wrapper .cls{cursor:pointer;display:block}:host(.dark) .icon-wrapper{padding:12px 20px 0;background-color:var(--color-gray-12);border:1px solid var(--color-gray-08);border-left-width:0;position:initial;right:auto;top:auto}:host(.dark):host(.enable-clear) input{border-right-width:0}@media only screen and (min-width: 992px){.cls{display:none}}";export{s as ptc_search_field}
1
+ import{r as t,c as e,h as r,H as a,a as i}from"./p-944c5be8.js";const s=class{constructor(r){t(this,r),this.valueChanged=e(this,"valueChanged",7),this.clicked=e(this,"clicked",7),this.textValue=void 0,this.placeholderLabel=void 0,this.darkTheme=void 0,this.isNews=void 0,this.elevation="small",this.enableClear=!1,this.styles=void 0}textChangedHandler(t){this.valueChanged.emit({sender:this,event:t,searchTerm:this.getSearchValue()})}buttonClickHandler(t){this.clicked.emit({sender:this,event:t,searchTerm:this.getSearchValue()})}keyDownHandler(t){"Enter"==t.key&&this.clicked.emit({sender:this,event:t,searchTerm:this.getSearchValue()}),this.getSearchValue()}keyUpHandler(){this.darkTheme||(this.enableClear=!(""==this.getSearchValue()))}getSearchValue(){let t="",e=this.el.shadowRoot.querySelector("input");return e&&(t=e.value),t}async clearSearchValue(){this.textValue="";let t=this.el.shadowRoot.querySelector("input");t&&(t.value="",this.enableClear=!1)}render(){const t=this.getCssClassMap(),e=this.darkTheme?"white":"black";return r(a,{class:t},this.styles&&r("style",null,this.styles),r("div",{class:"search-div"},r("div",{class:"input-wrap"},r("input",{type:"text",value:this.textValue,placeholder:this.placeholderLabel,onKeyDown:t=>{this.keyDownHandler(t)},onKeyUp:()=>{this.keyUpHandler()},onChange:t=>{this.textChangedHandler(t)}}),this.enableClear&&r("div",{class:"icon-wrapper"},r("icon-asset",{class:"cls",type:"ptc",color:e,name:"times",size:"xxx-small",onClick:t=>{this.clearSearchValue(),this.buttonClickHandler(t)}}))),r("button",{type:"button",color:"blackgrey",class:"search-btn",onClick:t=>{this.buttonClickHandler(t)}},r("icon-asset",{type:"ptc",size:"medium",name:"new-search",color:"white"}))))}getCssClassMap(){return{dark:!!this.darkTheme,[this.elevation]:!0,"enable-clear":this.enableClear,news:!!this.isNews}}get el(){return i(this)}};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 .search-div{position:relative;display:flex;align-items:stretch;height:51px;border-radius:var(--ptc-border-radius-standard)}:host .search-div .input-wrap{position:relative;width:100%;box-sizing:border-box;display:flex}:host .search-div .input-wrap input{height:100%}:host .search-div input{background-color:var(--color-white);height:-webkit-fill-available;border:0 solid var(--color-gray-12);border-radius:var(--ptc-border-radius-standard) 0 0 var(--ptc-border-radius-standard);flex-grow:2;padding-left:var(--ptc-element-spacing-04);line-height:var(--ptc-line-height-loose);padding-right:54px;width:100%;box-sizing:border-box;margin-right:0px}:host .search-div input:focus-visible{border-radius:var(--ptc-border-radius-standard) 0 0 var(--ptc-border-radius-standard);outline:none}:host .search-div input::placeholder{font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);font-weight:var(--ptc-font-weight-regular);font-size:var(--ptc-font-size-small);position:relative;top:1px;color:var(--color-gray-10)}:host .search-div .search-btn{cursor:pointer;height:51px;min-width:51px;border-radius:0 var(--ptc-border-radius-standard) var(--ptc-border-radius-standard) 0;background-color:var(--color-gray-12);border:0 solid var(--color-gray-12);transition:background-color var(--ptc-ease-inout) var(--ptc-transition-medium);margin:0}:host .search-div .search-btn:active{transition:none;background-color:var(--color-black)}:host .search-div .search-btn:hover{background-color:var(--color-gray-10)}:host .search-div .search-btn:focus{outline:3px solid var(--color-blue-07);outline-offset:2px}:host(.dark){z-index:999;position:relative;margin-top:20px}:host(.dark) .search-div{height:43px;width:208px}@media (max-width: 480px){:host(.dark) .search-div{width:100%}}@media only screen and (min-width: 992px){:host(.dark) .search-div{width:246px}}:host(.dark) .search-div input{background-color:var(--color-gray-12);border:1px solid var(--color-gray-08);color:var(--color-white);padding-left:unset;text-indent:var(--ptc-element-spacing-04);padding-right:2px}:host(.dark) .search-div input::placeholder{color:var(--color-white);font-size:var(--ptc-font-size-x-small)}:host(.dark) .search-div .search-btn{height:43px;width:43px;background-color:var(--color-gray-10);border:1px solid var(--color-gray-08);border-left:0}:host(.dark) .search-div .search-btn:hover{background-color:var(--color-gray-08)}:host(.news){z-index:999;position:relative;margin-top:20px}:host(.news) .search-div{height:43px}@media (max-width: 480px){:host(.news) .search-div{width:100%}}@media only screen and (min-width: 992px){:host(.news) .search-div{width:246px}}:host(.news) .search-div .search-btn{height:43px}:host(.x-small) .search-div{box-shadow:var(--ptc-shadow-x-small)}:host(.small) .search-div{box-shadow:var(--ptc-shadow-small)}:host(.medium) .search-div{box-shadow:var(--ptc-shadow-medium)}:host(.large) .search-div{box-shadow:var(--ptc-shadow-large)}:host(.x-large) .search-div{box-shadow:var(--ptc-shadow-x-large)}@media (max-width: 480px){input{width:75%}}.icon-wrapper{padding:16px 20px 0;background-color:transparent;position:absolute;right:0;top:-2px;height:100%;box-sizing:border-box}.icon-wrapper .cls{cursor:pointer;display:block}:host(.dark) .icon-wrapper{padding:12px 20px 0;background-color:var(--color-gray-12);border:1px solid var(--color-gray-08);border-left-width:0;position:initial;right:auto;top:auto}:host(.dark):host(.enable-clear) input{border-right-width:0}@media only screen and (min-width: 992px){.cls{display:none}}";export{s as ptc_search_field}
@@ -1 +1 @@
1
- import{r as t,c as e,h as i,H as n}from"./p-944c5be8.js";const h=class{constructor(i){t(this,i),this.addToCartClicked=e(this,"addToCartClicked",7),this.handleDecrement=()=>{this.count>1&&(this.count-=1)},this.handleIncrement=()=>{this.count<999&&(this.count+=1)},this.handleInputChange=t=>{const e=parseInt(t.target.value);!isNaN(e)&&e>0&&(this.count=e)},this.selectText=()=>{this.itemCountInput&&(this.itemCountInput.focus(),this.itemCountInput.select())},this.addToCart=()=>{var t;this.addToCartClicked.emit({sender:this,itemCount:null===(t=this.itemCountInput)||void 0===t?void 0:t.value}),this.addToCartCta&&(this.addToCartCta.classList.add("added"),this.addToCartCta.innerHTML=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="12" viewBox="0 0 16 12" fill="none">\n <path d="M1.71436 4.92857L6.28578 9.5L14.2858 1.5" stroke="white" stroke-width="3" stroke-linecap="round"/>\n</svg>${this.addedLabel}`),setTimeout((()=>{this.addToCartCta&&(this.addToCartCta.classList.remove("added"),this.addToCartCta.innerHTML=this.addToCartLabel)}),3e3)},this.count=1,this.addToCartLabel="Add to Cart",this.addedLabel="Added"}render(){return i(n,null,i("div",{class:"quantity-counter"},i("button",{class:"decrement",onClick:this.handleDecrement},i("span",null,i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"8",viewBox:"0 0 8 8",fill:"none"},i("path",{d:"M0 3.15039V4.85039H8V3.15039H0Z",fill:"#20262A"})))),i("input",{type:"number",onInput:this.handleInputChange,onClick:this.selectText,min:"1",max:"999",value:this.count,ref:t=>this.itemCountInput=t}),i("button",{class:"increment",onClick:this.handleIncrement},i("span",null,i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"8",viewBox:"0 0 8 8",fill:"none"},i("g",{"clip-path":"url(#clip0_2974_659)"},i("path",{d:"M7.95006 3.14981H4.85005V0.0498047H3.15005V3.14981H0.0500488V4.84981H3.15005V7.9498H4.85005V4.84981H7.95006V3.14981Z",fill:"#20262A"})),i("defs",null,i("clipPath",{id:"clip0_2974_659"},i("rect",{width:"8",height:"8",fill:"white"}))))))),i("ptc-button",{type:"button",color:"ptc-quaternary",onClick:this.addToCart,ref:t=>this.addToCartCta=t,styles:".ptc-quaternary{width: 100%; border-radius: 0px 0px 4px 4px ;}"},this.addToCartLabel))}};h.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:inline-block}:host .ptc-quaternary{width:100%}:host .quant-wrap{display:flex;flex-direction:column;width:100%}:host .quantity-counter{display:flex;align-items:flex-end;width:100%;box-sizing:border-box;justify-content:space-between}:host .quantity-counter button{width:44px;height:44px;border:none;display:flex;align-items:flex-end;justify-content:center;background-color:transparent;cursor:pointer;font-size:var(--ptc-font-size-x-small);user-select:none;padding:0}:host .quantity-counter button span{border:1px solid var(--color-gray-03);border-bottom:none;display:block;width:44px;height:32px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;border-radius:4px 0 0px 0px}:host .quantity-counter button.increment span{border-radius:0px 4px 0px 0px}:host .quantity-counter button:hover span{background-color:var(--color-gray-02)}:host .quantity-counter button:active span{background-color:var(--color-gray-03)}:host .quantity-counter input{width:100%;height:32px;text-align:center;border:1px solid var(--color-gray-03);border-left:none;border-right:none;border-bottom:none;font-size:16px;text-align:center;font-weight:700;box-sizing:border-box;-moz-appearance:textfield}:host .quantity-counter input::-webkit-outer-spin-button,:host .quantity-counter input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}:host ptc-button svg{margin-right:8px}:host ptc-button.added{pointer-events:none}";export{h as ptc_quantity_counter}
1
+ import{r as t,c as e,h as i,H as n}from"./p-944c5be8.js";const h=class{constructor(i){t(this,i),this.addToCartClicked=e(this,"addToCartClicked",7),this.handleDecrement=()=>{this.count>1&&(this.count-=1)},this.handleIncrement=()=>{this.count<999&&(this.count+=1)},this.handleInputChange=t=>{const e=parseInt(t.target.value);!isNaN(e)&&e>0&&(this.count=e)},this.selectText=()=>{this.itemCountInput&&(this.itemCountInput.focus(),this.itemCountInput.select())},this.addToCart=()=>{var t;this.addToCartClicked.emit({sender:this,itemCount:null===(t=this.itemCountInput)||void 0===t?void 0:t.value}),this.addToCartCta&&(this.addToCartCta.classList.add("added"),this.addToCartCta.innerHTML=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="12" viewBox="0 0 16 12" fill="none">\n <path d="M1.71436 4.92857L6.28578 9.5L14.2858 1.5" stroke="white" stroke-width="3" stroke-linecap="round"/>\n</svg>${this.addedLabel}`),setTimeout((()=>{this.addToCartCta&&(this.addToCartCta.classList.remove("added"),this.addToCartCta.innerHTML=this.addToCartLabel)}),3e3)},this.count=1,this.addToCartLabel="Add to Cart",this.addedLabel="Added"}render(){return i(n,null,i("div",{class:"quantity-counter"},i("button",{class:"decrement",onClick:this.handleDecrement},i("span",null,i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"8",viewBox:"0 0 8 8",fill:"none"},i("path",{d:"M0 3.15039V4.85039H8V3.15039H0Z",fill:"#20262A"})))),i("input",{type:"number",onInput:this.handleInputChange,onClick:this.selectText,min:"1",max:"999",value:this.count,ref:t=>this.itemCountInput=t}),i("button",{class:"increment",onClick:this.handleIncrement},i("span",null,i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"8",viewBox:"0 0 8 8",fill:"none"},i("g",{"clip-path":"url(#clip0_2974_659)"},i("path",{d:"M7.95006 3.14981H4.85005V0.0498047H3.15005V3.14981H0.0500488V4.84981H3.15005V7.9498H4.85005V4.84981H7.95006V3.14981Z",fill:"#20262A"})),i("defs",null,i("clipPath",{id:"clip0_2974_659"},i("rect",{width:"8",height:"8",fill:"white"}))))))),i("ptc-button",{type:"button",color:"ptc-quaternary",onClick:this.addToCart,ref:t=>this.addToCartCta=t,styles:".ptc-quaternary{width: 100%; border-radius: 0px 0px 4px 4px ;}"},this.addToCartLabel))}};h.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:inline-block}:host .ptc-quaternary{width:100%}:host .quant-wrap{display:flex;flex-direction:column;width:100%}:host .quantity-counter{display:flex;align-items:flex-end;width:100%;box-sizing:border-box;justify-content:space-between}:host .quantity-counter button{width:44px;height:44px;border:none;display:flex;align-items:flex-end;justify-content:center;background-color:transparent;cursor:pointer;font-size:var(--ptc-font-size-x-small);user-select:none;padding:0}:host .quantity-counter button span{border:1px solid var(--color-gray-03);border-bottom:none;display:block;width:44px;height:32px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;border-radius:4px 0 0px 0px}:host .quantity-counter button.increment span{border-radius:0px 4px 0px 0px}:host .quantity-counter button:hover span{background-color:var(--color-gray-02)}:host .quantity-counter button:active span{transition:none;background-color:var(--color-gray-03)}:host .quantity-counter input{width:100%;height:32px;text-align:center;border:1px solid var(--color-gray-03);border-left:none;border-right:none;border-bottom:none;font-size:16px;text-align:center;font-weight:700;box-sizing:border-box;-moz-appearance:textfield}:host .quantity-counter input::-webkit-outer-spin-button,:host .quantity-counter input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}:host ptc-button svg{margin-right:8px}:host ptc-button.added{pointer-events:none}";export{h as ptc_quantity_counter}