@ptcwebops/ptcw-design 0.8.2 → 0.8.3

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 (274) hide show
  1. package/LICENSE +21 -21
  2. package/dist/cjs/dropdown-item.cjs.entry.js +10 -10
  3. package/dist/cjs/icon-asset.cjs.entry.js +42 -42
  4. package/dist/cjs/list-item.cjs.entry.js +19 -19
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/lottie-player.cjs.entry.js +354 -354
  7. package/dist/cjs/my-component.cjs.entry.js +15 -15
  8. package/dist/cjs/ptc-accordion-item.cjs.entry.js +83 -83
  9. package/dist/cjs/ptc-accordion.cjs.entry.js +35 -35
  10. package/dist/cjs/ptc-announcement.cjs.entry.js +51 -51
  11. package/dist/cjs/ptc-breadcrumb.cjs.entry.js +12 -12
  12. package/dist/cjs/ptc-button.cjs.entry.js +34 -34
  13. package/dist/cjs/ptc-card-bottom.cjs.entry.js +35 -35
  14. package/dist/cjs/ptc-card-content.cjs.entry.js +39 -39
  15. package/dist/cjs/ptc-card-wrapper.cjs.entry.js +35 -35
  16. package/dist/cjs/ptc-card_6.cjs.entry.js +454 -439
  17. package/dist/cjs/ptc-checkbox.cjs.entry.js +33 -33
  18. package/dist/cjs/ptc-collapse-list.cjs.entry.js +346 -346
  19. package/dist/cjs/ptc-container.cjs.entry.js +32 -32
  20. package/dist/cjs/ptc-dropdown.cjs.entry.js +65 -65
  21. package/dist/cjs/ptc-dynamic-card.cjs.entry.js +47 -47
  22. package/dist/cjs/ptc-ellipsis-dropdown.cjs.entry.js +38 -38
  23. package/dist/cjs/ptc-filter-tag.cjs.entry.js +58 -58
  24. package/dist/cjs/ptc-hero-footer-cta.cjs.entry.js +11 -11
  25. package/dist/cjs/ptc-hero.cjs.entry.js +18 -18
  26. package/dist/cjs/ptc-icon-list.cjs.entry.js +21 -21
  27. package/dist/cjs/ptc-icon-minimize.cjs.entry.js +36 -36
  28. package/dist/cjs/ptc-link.cjs.entry.js +28 -28
  29. package/dist/cjs/ptc-list.cjs.entry.js +50 -50
  30. package/dist/cjs/ptc-lottie.cjs.entry.js +10 -10
  31. package/dist/cjs/ptc-minimized-footer.cjs.entry.js +8 -8
  32. package/dist/cjs/ptc-minimized-header.cjs.entry.js +11 -11
  33. package/dist/cjs/ptc-mobile-select.cjs.entry.js +53 -53
  34. package/dist/cjs/ptc-modal.cjs.entry.js +143 -143
  35. package/dist/cjs/ptc-overlay.cjs.entry.js +20 -20
  36. package/dist/cjs/ptc-pagenation.cjs.entry.js +105 -105
  37. package/dist/cjs/ptc-previous-url.cjs.entry.js +10 -10
  38. package/dist/cjs/ptc-pricing-block.cjs.entry.js +16 -16
  39. package/dist/cjs/ptc-quote.cjs.entry.js +23 -23
  40. package/dist/cjs/ptc-readmore_2.cjs.entry.js +59 -59
  41. package/dist/cjs/ptc-responsive-wrapper.cjs.entry.js +54 -54
  42. package/dist/cjs/ptc-shopping-cart.cjs.entry.js +50 -50
  43. package/dist/cjs/ptc-social-share.cjs.entry.js +59 -59
  44. package/dist/cjs/ptc-span.cjs.entry.js +18 -18
  45. package/dist/cjs/ptc-sticky-icons.cjs.entry.js +32 -32
  46. package/dist/cjs/ptc-svg-btn.cjs.entry.js +73 -73
  47. package/dist/cjs/ptc-tab-list.cjs.entry.js +124 -124
  48. package/dist/cjs/ptc-text-copy-with-background.cjs.entry.js +20 -20
  49. package/dist/cjs/ptc-title.cjs.entry.js +66 -66
  50. package/dist/cjs/ptc-two-column-media.cjs.entry.js +15 -15
  51. package/dist/cjs/ptcw-design.cjs.js +1 -1
  52. package/dist/cjs/tab-content.cjs.entry.js +27 -27
  53. package/dist/cjs/tab-header.cjs.entry.js +45 -45
  54. package/dist/cjs/{utils-5245e89c.js → utils-2ac2a528.js} +79 -79
  55. package/dist/collection/components/dropdown-item/dropdown-item.js +61 -61
  56. package/dist/collection/components/icon-asset/icon-asset.css +4 -4
  57. package/dist/collection/components/icon-asset/icon-asset.js +199 -199
  58. package/dist/collection/components/icon-asset/media/brands.svg +1381 -1381
  59. package/dist/collection/components/icon-asset/media/designer.svg +379 -379
  60. package/dist/collection/components/icon-asset/media/regular.svg +463 -463
  61. package/dist/collection/components/icon-asset/media/solid.svg +3013 -3013
  62. package/dist/collection/components/icon-asset/media/svg-with-js.min.css +4 -4
  63. package/dist/collection/components/list-item/list-item.js +107 -107
  64. package/dist/collection/components/my-component/my-component.css +3 -3
  65. package/dist/collection/components/my-component/my-component.js +82 -82
  66. package/dist/collection/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.js +287 -287
  67. package/dist/collection/components/ptc-accordion/ptc-accordion.js +78 -78
  68. package/dist/collection/components/ptc-announcement/ptc-announcement.js +239 -239
  69. package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.js +22 -22
  70. package/dist/collection/components/ptc-button/ptc-button.js +264 -264
  71. package/dist/collection/components/ptc-card/ptc-card.css +14 -3
  72. package/dist/collection/components/ptc-card/ptc-card.js +344 -312
  73. package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.js +116 -116
  74. package/dist/collection/components/ptc-card-content/ptc-card-content.js +137 -137
  75. package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.js +151 -151
  76. package/dist/collection/components/ptc-checkbox/ptc-checkbox.js +118 -118
  77. package/dist/collection/components/ptc-collapse-list/ptc-collapse-list.js +586 -586
  78. package/dist/collection/components/ptc-container/ptc-container.js +120 -120
  79. package/dist/collection/components/ptc-date/ptc-date.js +190 -190
  80. package/dist/collection/components/ptc-dropdown/ptc-dropdown.css +1 -0
  81. package/dist/collection/components/ptc-dropdown/ptc-dropdown.js +162 -162
  82. package/dist/collection/components/ptc-dynamic-card/media/nav-active-dotslick.svg +15 -15
  83. package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.js +183 -183
  84. package/dist/collection/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.js +122 -122
  85. package/dist/collection/components/ptc-filter-tag/ptc-filter-tag.css +1 -0
  86. package/dist/collection/components/ptc-filter-tag/ptc-filter-tag.js +113 -113
  87. package/dist/collection/components/ptc-hero/ptc-hero.js +86 -86
  88. package/dist/collection/components/ptc-hero-footer-cta/ptc-hero-footer-cta.js +78 -78
  89. package/dist/collection/components/ptc-icon-list/ptc-icon-list.js +127 -127
  90. package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.js +87 -87
  91. package/dist/collection/components/ptc-img/ptc-img.js +296 -296
  92. package/dist/collection/components/ptc-link/ptc-link.js +203 -203
  93. package/dist/collection/components/ptc-list/ptc-list.js +100 -100
  94. package/dist/collection/components/ptc-lottie/ptc-lottie.css +5 -5
  95. package/dist/collection/components/ptc-lottie/ptc-lottie.js +62 -62
  96. package/dist/collection/components/ptc-minimized-footer/ptc-minimized-footer.js +18 -18
  97. package/dist/collection/components/ptc-minimized-header/ptc-minimized-header.js +81 -81
  98. package/dist/collection/components/ptc-mobile-select/ptc-mobile-select.js +190 -190
  99. package/dist/collection/components/ptc-modal/ptc-modal.js +347 -347
  100. package/dist/collection/components/ptc-overlay/ptc-overlay.js +105 -105
  101. package/dist/collection/components/ptc-pagenation/ptc-pagenation.js +322 -322
  102. package/dist/collection/components/ptc-para/ptc-para.js +232 -232
  103. package/dist/collection/components/ptc-picture/ptc-picture.js +452 -452
  104. package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +60 -60
  105. package/dist/collection/components/ptc-pricing-block/ptc-pricing-block.js +49 -49
  106. package/dist/collection/components/ptc-quote/ptc-quote.js +144 -144
  107. package/dist/collection/components/ptc-readmore/ptc-readmore.js +129 -129
  108. package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.css +3 -3
  109. package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.js +65 -65
  110. package/dist/collection/components/ptc-shopping-cart/ptc-shopping-cart.js +97 -97
  111. package/dist/collection/components/ptc-social-share/ptc-social-share.js +239 -239
  112. package/dist/collection/components/ptc-spacer/ptc-spacer.css +322 -322
  113. package/dist/collection/components/ptc-spacer/ptc-spacer.js +96 -96
  114. package/dist/collection/components/ptc-span/ptc-span.js +87 -87
  115. package/dist/collection/components/ptc-sticky-icons/ptc-sticky-icons.js +51 -51
  116. package/dist/collection/components/ptc-svg-btn/ptc-svg-btn.js +72 -72
  117. package/dist/collection/components/ptc-tab-list/ptc-tab-list.js +155 -155
  118. package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.js +123 -123
  119. package/dist/collection/components/ptc-title/ptc-title.css +1 -0
  120. package/dist/collection/components/ptc-title/ptc-title.js +291 -291
  121. package/dist/collection/components/ptc-tooltip/ptc-tooltip.js +153 -153
  122. package/dist/collection/components/ptc-two-column-media/ptc-two-column-media.js +48 -48
  123. package/dist/collection/components/tab-content/tab-content.js +84 -84
  124. package/dist/collection/components/tab-header/tab-header.js +136 -136
  125. package/dist/collection/index.js +1 -1
  126. package/dist/collection/media/svg-imgs/Back-arrow.svg +11 -11
  127. package/dist/collection/media/svg-imgs/close.svg +10 -10
  128. package/dist/collection/media/svg-imgs/ptc-shopping-cart-black.svg +3 -3
  129. package/dist/collection/media/svg-imgs/ptc-shopping-cart-white.svg +3 -3
  130. package/dist/collection/media/svg-imgs/slider-arrow-left.svg +18 -18
  131. package/dist/collection/media/svg-imgs/slider-arrow-right.svg +18 -18
  132. package/dist/collection/media/svg-imgs/union.svg +3 -3
  133. package/dist/collection/utils/component.js +3 -3
  134. package/dist/collection/utils/interfaces.js +11 -11
  135. package/dist/collection/utils/utils.js +81 -81
  136. package/dist/custom-elements/index.js +3227 -3212
  137. package/dist/esm/dropdown-item.entry.js +10 -10
  138. package/dist/esm/icon-asset.entry.js +42 -42
  139. package/dist/esm/list-item.entry.js +19 -19
  140. package/dist/esm/loader.js +1 -1
  141. package/dist/esm/lottie-player.entry.js +354 -354
  142. package/dist/esm/my-component.entry.js +15 -15
  143. package/dist/esm/polyfills/core-js.js +0 -0
  144. package/dist/esm/polyfills/dom.js +0 -0
  145. package/dist/esm/polyfills/es5-html-element.js +0 -0
  146. package/dist/esm/polyfills/index.js +0 -0
  147. package/dist/esm/polyfills/system.js +0 -0
  148. package/dist/esm/ptc-accordion-item.entry.js +83 -83
  149. package/dist/esm/ptc-accordion.entry.js +35 -35
  150. package/dist/esm/ptc-announcement.entry.js +51 -51
  151. package/dist/esm/ptc-breadcrumb.entry.js +12 -12
  152. package/dist/esm/ptc-button.entry.js +34 -34
  153. package/dist/esm/ptc-card-bottom.entry.js +35 -35
  154. package/dist/esm/ptc-card-content.entry.js +39 -39
  155. package/dist/esm/ptc-card-wrapper.entry.js +35 -35
  156. package/dist/esm/ptc-card_6.entry.js +454 -439
  157. package/dist/esm/ptc-checkbox.entry.js +33 -33
  158. package/dist/esm/ptc-collapse-list.entry.js +346 -346
  159. package/dist/esm/ptc-container.entry.js +32 -32
  160. package/dist/esm/ptc-dropdown.entry.js +65 -65
  161. package/dist/esm/ptc-dynamic-card.entry.js +47 -47
  162. package/dist/esm/ptc-ellipsis-dropdown.entry.js +38 -38
  163. package/dist/esm/ptc-filter-tag.entry.js +58 -58
  164. package/dist/esm/ptc-hero-footer-cta.entry.js +11 -11
  165. package/dist/esm/ptc-hero.entry.js +18 -18
  166. package/dist/esm/ptc-icon-list.entry.js +21 -21
  167. package/dist/esm/ptc-icon-minimize.entry.js +36 -36
  168. package/dist/esm/ptc-link.entry.js +28 -28
  169. package/dist/esm/ptc-list.entry.js +50 -50
  170. package/dist/esm/ptc-lottie.entry.js +10 -10
  171. package/dist/esm/ptc-minimized-footer.entry.js +8 -8
  172. package/dist/esm/ptc-minimized-header.entry.js +11 -11
  173. package/dist/esm/ptc-mobile-select.entry.js +53 -53
  174. package/dist/esm/ptc-modal.entry.js +143 -143
  175. package/dist/esm/ptc-overlay.entry.js +20 -20
  176. package/dist/esm/ptc-pagenation.entry.js +105 -105
  177. package/dist/esm/ptc-previous-url.entry.js +10 -10
  178. package/dist/esm/ptc-pricing-block.entry.js +16 -16
  179. package/dist/esm/ptc-quote.entry.js +23 -23
  180. package/dist/esm/ptc-readmore_2.entry.js +59 -59
  181. package/dist/esm/ptc-responsive-wrapper.entry.js +54 -54
  182. package/dist/esm/ptc-shopping-cart.entry.js +50 -50
  183. package/dist/esm/ptc-social-share.entry.js +59 -59
  184. package/dist/esm/ptc-span.entry.js +18 -18
  185. package/dist/esm/ptc-sticky-icons.entry.js +32 -32
  186. package/dist/esm/ptc-svg-btn.entry.js +73 -73
  187. package/dist/esm/ptc-tab-list.entry.js +124 -124
  188. package/dist/esm/ptc-text-copy-with-background.entry.js +20 -20
  189. package/dist/esm/ptc-title.entry.js +66 -66
  190. package/dist/esm/ptc-two-column-media.entry.js +15 -15
  191. package/dist/esm/ptcw-design.js +1 -1
  192. package/dist/esm/tab-content.entry.js +27 -27
  193. package/dist/esm/tab-header.entry.js +45 -45
  194. package/dist/esm/{utils-646cc62f.js → utils-2dbb41dc.js} +79 -79
  195. package/dist/ptcw-design/media/brands.svg +1381 -1381
  196. package/dist/ptcw-design/media/designer.svg +379 -379
  197. package/dist/ptcw-design/media/nav-active-dotslick.svg +15 -15
  198. package/dist/ptcw-design/media/regular.svg +463 -463
  199. package/dist/ptcw-design/media/solid.svg +3013 -3013
  200. package/dist/ptcw-design/media/svg-with-js.min.css +4 -4
  201. package/dist/ptcw-design/{p-79c9547c.entry.js → p-1aa4d596.entry.js} +1 -1
  202. package/dist/ptcw-design/p-1c589f8f.entry.js +1 -0
  203. package/dist/ptcw-design/{p-482a8bc9.entry.js → p-5005c698.entry.js} +1 -1
  204. package/dist/ptcw-design/{p-b420e81a.entry.js → p-b5366d41.entry.js} +1 -1
  205. package/dist/ptcw-design/{p-f9694131.entry.js → p-e38a57ce.entry.js} +1 -1
  206. package/dist/ptcw-design/p-e75dc9f4.entry.js +1 -0
  207. package/dist/ptcw-design/ptcw-design.css +1 -1
  208. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  209. package/dist/types/components/dropdown-item/dropdown-item.d.ts +5 -5
  210. package/dist/types/components/icon-asset/icon-asset.d.ts +40 -40
  211. package/dist/types/components/list-item/list-item.d.ts +8 -8
  212. package/dist/types/components/my-component/my-component.d.ts +16 -16
  213. package/dist/types/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.d.ts +59 -59
  214. package/dist/types/components/ptc-accordion/ptc-accordion.d.ts +13 -13
  215. package/dist/types/components/ptc-announcement/ptc-announcement.d.ts +51 -51
  216. package/dist/types/components/ptc-breadcrumb/ptc-breadcrumb.d.ts +4 -4
  217. package/dist/types/components/ptc-button/ptc-button.d.ts +56 -56
  218. package/dist/types/components/ptc-card/ptc-card.d.ts +67 -62
  219. package/dist/types/components/ptc-card-bottom/ptc-card-bottom.d.ts +15 -15
  220. package/dist/types/components/ptc-card-content/ptc-card-content.d.ts +16 -16
  221. package/dist/types/components/ptc-card-wrapper/ptc-card-wrapper.d.ts +18 -18
  222. package/dist/types/components/ptc-checkbox/ptc-checkbox.d.ts +11 -11
  223. package/dist/types/components/ptc-collapse-list/ptc-collapse-list.d.ts +56 -56
  224. package/dist/types/components/ptc-container/ptc-container.d.ts +12 -12
  225. package/dist/types/components/ptc-date/ptc-date.d.ts +41 -41
  226. package/dist/types/components/ptc-dropdown/ptc-dropdown.d.ts +19 -19
  227. package/dist/types/components/ptc-dynamic-card/ptc-dynamic-card.d.ts +24 -24
  228. package/dist/types/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.d.ts +12 -12
  229. package/dist/types/components/ptc-filter-tag/ptc-filter-tag.d.ts +17 -17
  230. package/dist/types/components/ptc-hero/ptc-hero.d.ts +16 -16
  231. package/dist/types/components/ptc-hero-footer-cta/ptc-hero-footer-cta.d.ts +6 -6
  232. package/dist/types/components/ptc-icon-list/ptc-icon-list.d.ts +21 -21
  233. package/dist/types/components/ptc-icon-minimize/ptc-icon-minimize.d.ts +9 -9
  234. package/dist/types/components/ptc-img/ptc-img.d.ts +51 -51
  235. package/dist/types/components/ptc-link/ptc-link.d.ts +40 -40
  236. package/dist/types/components/ptc-list/ptc-list.d.ts +8 -8
  237. package/dist/types/components/ptc-lottie/ptc-lottie.d.ts +12 -12
  238. package/dist/types/components/ptc-minimized-footer/ptc-minimized-footer.d.ts +3 -3
  239. package/dist/types/components/ptc-minimized-header/ptc-minimized-header.d.ts +6 -6
  240. package/dist/types/components/ptc-mobile-select/ptc-mobile-select.d.ts +36 -36
  241. package/dist/types/components/ptc-modal/ptc-modal.d.ts +59 -59
  242. package/dist/types/components/ptc-overlay/ptc-overlay.d.ts +20 -20
  243. package/dist/types/components/ptc-pagenation/ptc-pagenation.d.ts +27 -27
  244. package/dist/types/components/ptc-para/ptc-para.d.ts +43 -43
  245. package/dist/types/components/ptc-picture/ptc-picture.d.ts +93 -93
  246. package/dist/types/components/ptc-previous-url/ptc-previous-url.d.ts +5 -5
  247. package/dist/types/components/ptc-pricing-block/ptc-pricing-block.d.ts +5 -5
  248. package/dist/types/components/ptc-quote/ptc-quote.d.ts +29 -29
  249. package/dist/types/components/ptc-readmore/ptc-readmore.d.ts +27 -27
  250. package/dist/types/components/ptc-responsive-wrapper/ptc-responsive-wrapper.d.ts +8 -8
  251. package/dist/types/components/ptc-shopping-cart/ptc-shopping-cart.d.ts +6 -6
  252. package/dist/types/components/ptc-social-share/ptc-social-share.d.ts +33 -33
  253. package/dist/types/components/ptc-spacer/ptc-spacer.d.ts +16 -16
  254. package/dist/types/components/ptc-span/ptc-span.d.ts +16 -16
  255. package/dist/types/components/ptc-sticky-icons/ptc-sticky-icons.d.ts +7 -7
  256. package/dist/types/components/ptc-svg-btn/ptc-svg-btn.d.ts +12 -12
  257. package/dist/types/components/ptc-tab-list/ptc-tab-list.d.ts +15 -15
  258. package/dist/types/components/ptc-text-copy-with-background/ptc-text-copy-with-background.d.ts +25 -25
  259. package/dist/types/components/ptc-title/ptc-title.d.ts +50 -50
  260. package/dist/types/components/ptc-tooltip/ptc-tooltip.d.ts +34 -34
  261. package/dist/types/components/ptc-two-column-media/ptc-two-column-media.d.ts +9 -9
  262. package/dist/types/components/tab-content/tab-content.d.ts +12 -12
  263. package/dist/types/components/tab-header/tab-header.d.ts +14 -14
  264. package/dist/types/components.d.ts +86 -78
  265. package/dist/types/global.d.ts +1072 -1072
  266. package/dist/types/index.d.ts +1 -1
  267. package/dist/types/utils/component.d.ts +1 -1
  268. package/dist/types/utils/interfaces.d.ts +31 -31
  269. package/dist/types/utils/utils.d.ts +4 -4
  270. package/package.json +61 -61
  271. package/readme.md +10 -10
  272. package/dist/ptcw-design/p-26fc6151.entry.js +0 -1
  273. package/dist/ptcw-design/p-2f7adf9a.entry.js +0 -1
  274. /package/dist/ptcw-design/{p-e121ff2a.js → p-5e98555a.js} +0 -0
@@ -8,29 +8,29 @@ const QuotationMark = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48.1
8
8
 
9
9
  const ptcQuoteCss = ":host{display:flex;width:100%;position:relative;overflow:hidden;flex-direction:column;flex-wrap:nowrap;align-items:center;justify-content:flex-start}:host(.image-quote) .quote-media{position:relative;flex-basis:auto}:host(.image-quote) .quote-media img{width:100%}:host(.image-quote) .quote-media .our-leadership{width:89%;padding:var(--ptc-element-spacing-04) var(--ptc-element-spacing-04) var(--ptc-element-spacing-02) var(--ptc-element-spacing-04);top:0px;margin:0px auto;display:flex;position:relative;box-shadow:var(--ptc-shadow-large);background-color:var(--color-white);transform:translateY(-50%)}:host(.image-quote) .quote-media .our-leadership p{font-size:var(--ptc-font-size-x-small);font-weight:var(--ptc-font-weight-black);color:var(--color-gray-10);line-height:var(--ptc-line-height-p);letter-spacing:var(--ptc-letter-spacing-loose);margin-block-end:0;margin-block-start:0}:host(.image-quote) .quote-media .our-leadership .line{height:2px;width:82%;position:absolute;top:20%}:host(.image-quote) .quote-media .our-leadership .line .green-line{width:30%;height:2px;background-color:var(--color-green-05);display:inline-block;position:absolute}:host(.image-quote) .quote-media .our-leadership .line .grey-line{width:70%;height:1px;background-color:var(--color-gray-03);display:inline-block;position:absolute;left:30%}:host(.image-quote) .quote-content{flex-basis:auto;display:flex;flex-flow:column nowrap}:host(.image-quote) .quote-content .quotemarks{flex-basis:7%;width:15%;margin-bottom:var(--ptc-element-spacing-03);max-width:2.5rem}:host(.image-quote) .quote-content blockquote{flex-basis:93%;margin-block-start:calc(-1 * var(--ptc-element-spacing-04));margin-inline-start:0;margin-inline-end:0}:host(.image-quote) .quote-content blockquote p{font-weight:var(--ptc-font-weight-medium);font-size:var(--ptc-font-size-x-small);line-height:var(--ptc-line-height-p);font-style:var(--ptc-font-style-italic);color:var(--color-gray-10);letter-spacing:var(--ptc-letter-spacing-loose);margin:var(--ptc-element-spacing-04) 0}:host(.image-quote) .quote-content .quote-name{display:block;margin-bottom:var(--ptc-element-spacing-07);font-size:var(--ptc-font-size-x-small);font-weight:var(--ptc-font-weight-medium)}@media only screen and (min-width: 768px){:host(.image-quote) .quote-media .our-leadership{width:65%;padding:var(--ptc-element-spacing-06) var(--ptc-element-spacing-06) var(--ptc-element-spacing-03) var(--ptc-element-spacing-06);transform:translateY(-25%)}:host(.image-quote) .quote-media .our-leadership p{font-size:var(--ptc-font-size-large)}:host(.image-quote) .quote-content .quotemarks{width:10%}:host(.image-quote) .quote-content blockquote p{font-size:var(--ptc-font-size-medium);letter-spacing:var(--ptc-letter-spacing-normal)}:host(.image-quote) .quote-content .quote-name{font-size:var(--ptc-font-size-medium);letter-spacing:var(--ptc-letter-spacing-normal)}}@media only screen and (min-width: 992px){:host(.image-quote) .quote-content{margin-right:5%;margin-left:5%}:host(.image-quote) .quote-content blockquote p{font-size:var(--ptc-font-size-large)}:host(.image-quote) .quote-content .quote-name{font-size:var(--ptc-font-size-large)}}@media only screen and (min-width: 1200px){:host(.image-quote){flex-direction:row}:host(.image-quote) .quote-media{flex-basis:40%;padding:unset;margin:var(--ptc-layout-spacing-05) 0px 0px calc(var(--ptc-layout-spacing-06) * 2);padding-right:var(--ptc-element-spacing-08)}:host(.image-quote) .quote-media .our-leadership{width:78%;transform:translateY(-50%)}:host(.image-quote) .quote-media .our-leadership .line{top:18%}:host(.image-quote) .quote-content{flex-basis:58%;flex-flow:row nowrap;margin-left:unset;margin-right:unset}:host(.image-quote) .quote-content .quotemarks{flex-basis:8%;margin-right:var(--ptc-element-spacing-03)}}:host(.plain-quote) blockquote{margin:0 auto;padding:0 0 var(--ptc-element-spacing-04) var(--ptc-element-spacing-04);border-left:5px solid var(--color-green-05)}:host(.plain-quote) blockquote p{font-weight:var(--ptc-font-weight-regular);font-size:var(--ptc-font-size-medium);line-height:var(--ptc-line-height-p);font-style:var(--ptc-font-style-italic);color:var(--color-gray-10);margin:var(--ptc-element-spacing-04) 0}:host(.plain-quote) .quote-content{flex-basis:auto}:host(.plain-quote) .quote-content .quote-name{display:block;margin-bottom:var(--ptc-element-spacing-07);font-size:var(--ptc-font-size-x-small)}";
10
10
 
11
- const PtcQuote = class {
12
- constructor(hostRef) {
13
- index.registerInstance(this, hostRef);
14
- this.quoteType = "image-quote";
15
- this.quoteName = 'John Smith';
16
- this.ctaText = undefined;
17
- this.ctaUrl = undefined;
18
- this.imgSrc = undefined;
19
- this.imgTitle = undefined;
20
- }
21
- getImageTitle() {
22
- return (index.h("div", { class: "our-leadership" }, index.h("div", { class: "line" }, index.h("div", { class: "green-line" }), index.h("div", { class: "grey-line" })), index.h("p", null, this.imgTitle)));
23
- }
24
- render() {
25
- const classMap = this.getCssClassMap();
26
- return (index.h(index.Host, { class: classMap }, this.imgSrc ? (index.h("div", { class: "quote-media" }, this.imgSrc ? index.h("img", { src: this.imgSrc, alt: this.imgTitle ? this.imgTitle : 'quote Image' }) : null, this.imgTitle ? this.getImageTitle() : null)) : null, index.h("div", { class: "quote-content" }, this.quoteType == 'image-quote' ? index.h("div", { class: 'quotemarks', innerHTML: QuotationMark }) : null, index.h("blockquote", null, index.h("p", null, index.h("slot", null)), index.h("span", { class: "quote-name" }, this.quoteName ? this.quoteName : null), this.ctaText && this.ctaUrl ? (index.h("ptc-button", { type: "link", color: "ptc-secondary", "link-href": this.ctaUrl }, this.ctaText)) : null))));
27
- }
28
- getCssClassMap() {
29
- return {
30
- [this.quoteType]: true
31
- };
32
- }
33
- };
11
+ const PtcQuote = class {
12
+ constructor(hostRef) {
13
+ index.registerInstance(this, hostRef);
14
+ this.quoteType = "image-quote";
15
+ this.quoteName = 'John Smith';
16
+ this.ctaText = undefined;
17
+ this.ctaUrl = undefined;
18
+ this.imgSrc = undefined;
19
+ this.imgTitle = undefined;
20
+ }
21
+ getImageTitle() {
22
+ return (index.h("div", { class: "our-leadership" }, index.h("div", { class: "line" }, index.h("div", { class: "green-line" }), index.h("div", { class: "grey-line" })), index.h("p", null, this.imgTitle)));
23
+ }
24
+ render() {
25
+ const classMap = this.getCssClassMap();
26
+ return (index.h(index.Host, { class: classMap }, this.imgSrc ? (index.h("div", { class: "quote-media" }, this.imgSrc ? index.h("img", { src: this.imgSrc, alt: this.imgTitle ? this.imgTitle : 'quote Image' }) : null, this.imgTitle ? this.getImageTitle() : null)) : null, index.h("div", { class: "quote-content" }, this.quoteType == 'image-quote' ? index.h("div", { class: 'quotemarks', innerHTML: QuotationMark }) : null, index.h("blockquote", null, index.h("p", null, index.h("slot", null)), index.h("span", { class: "quote-name" }, this.quoteName ? this.quoteName : null), this.ctaText && this.ctaUrl ? (index.h("ptc-button", { type: "link", color: "ptc-secondary", "link-href": this.ctaUrl }, this.ctaText)) : null))));
27
+ }
28
+ getCssClassMap() {
29
+ return {
30
+ [this.quoteType]: true
31
+ };
32
+ }
33
+ };
34
34
  PtcQuote.style = ptcQuoteCss;
35
35
 
36
36
  exports.ptc_quote = PtcQuote;
@@ -6,69 +6,69 @@ const index = require('./index-8745a0a3.js');
6
6
 
7
7
  const ptcReadmoreCss = ":host{display:block}.box input{opacity:0;position:absolute;pointer-events:none}.box .read-more-text{display:-webkit-box;-webkit-box-orient:vertical;margin:0;overflow:hidden}.box .line1{-webkit-line-clamp:1}.box .line2{-webkit-line-clamp:2}.box .line3{-webkit-line-clamp:3}.box .line4{-webkit-line-clamp:4}.box .line5{-webkit-line-clamp:5}.box input~label{display:block;position:relative;cursor:pointer;right:0;margin-top:var(--ptc-element-spacing-02);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-x-small);line-height:var(--ptc-line-height-densest);text-decoration-line:underline;color:var(--color-blue-07);text-align:right;transform:translateX(-36px)}.box .z-auto{z-index:auto}.box .z-1{z-index:1}.box .z-2{z-index:2}.box .z-3{z-index:3}.box .z-999{z-index:999}.box input:checked+.read-more-text{-webkit-line-clamp:unset}.box input:checked~label,.box .read-more-text:not(.truncated)~label{display:none}";
8
8
 
9
- const PtcReadmore = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.moreText = 'read more';
13
- this.display = 'inline';
14
- this.visibleLines = 'line2';
15
- this.zIndex = 'z-auto';
16
- }
17
- addBtnTruncated() {
18
- const appRoot = this.el.shadowRoot;
19
- const ps = appRoot.querySelectorAll('.read-more-text');
20
- ps.forEach(p => {
21
- p.classList[p.scrollHeight > p.clientHeight ? 'add' : 'remove']('truncated');
22
- });
23
- }
24
- componentDidLoad() {
25
- this.addBtnTruncated();
26
- }
27
- render() {
28
- const classMap = this.getCssClassMap();
29
- return (index.h(index.Host, { class: this.display }, index.h("div", { class: classMap }, index.h("input", { type: "checkbox", id: "expanded" }), index.h("p", { class: `read-more-text ${this.visibleLines}` }, index.h("slot", null)), index.h("label", { htmlFor: "expanded", role: "button", class: this.zIndex }, this.moreText))));
30
- }
31
- getCssClassMap() {
32
- return {
33
- ['box']: true,
34
- };
35
- }
36
- get el() { return index.getElement(this); }
37
- };
9
+ const PtcReadmore = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this.moreText = 'read more';
13
+ this.display = 'inline';
14
+ this.visibleLines = 'line2';
15
+ this.zIndex = 'z-auto';
16
+ }
17
+ addBtnTruncated() {
18
+ const appRoot = this.el.shadowRoot;
19
+ const ps = appRoot.querySelectorAll('.read-more-text');
20
+ ps.forEach(p => {
21
+ p.classList[p.scrollHeight > p.clientHeight ? 'add' : 'remove']('truncated');
22
+ });
23
+ }
24
+ componentDidLoad() {
25
+ this.addBtnTruncated();
26
+ }
27
+ render() {
28
+ const classMap = this.getCssClassMap();
29
+ return (index.h(index.Host, { class: this.display }, index.h("div", { class: classMap }, index.h("input", { type: "checkbox", id: "expanded" }), index.h("p", { class: `read-more-text ${this.visibleLines}` }, index.h("slot", null)), index.h("label", { htmlFor: "expanded", role: "button", class: this.zIndex }, this.moreText))));
30
+ }
31
+ getCssClassMap() {
32
+ return {
33
+ ['box']: true,
34
+ };
35
+ }
36
+ get el() { return index.getElement(this); }
37
+ };
38
38
  PtcReadmore.style = ptcReadmoreCss;
39
39
 
40
40
  const ptcTooltipCss = ":host{position:relative}:host(.inline){display:inline}:host(.block){display:block}.text-ellipsis{position:relative;display:inline}.text-ellipsis:not(.truncated){z-index:auto !important}.z-auto{z-index:auto}.z-1{z-index:1}.z-2{z-index:2}.z-3{z-index:3}.z-999{z-index:999}.tooltip{position:absolute;padding:8px;color:var(--color-white);font-size:var(--ptc-font-size-xxx-small);font-weight:var(--ptc-font-weight-semibold);background:var(--color-gray-09);box-shadow:0px 2px 4px rgba(0, 0, 0, 0.3);border:none;border-radius:2px;width:273px;height:auto;visibility:hidden}.tooltip.bottom{bottom:-12px;transform:translateY(100%)}.tooltip.bottom::after{top:1px;left:50%;transform:translate(-50%, -100%);border:8px solid transparent;border-bottom:8px solid var(--color-gray-09)}.tooltip.left{bottom:-12px;transform:translate(-80%, 100%)}.tooltip.left::after{top:1px;right:8px;transform:translateY(-100%);border:8px solid transparent;border-bottom:8px solid var(--color-gray-09)}.tooltip.right{bottom:-12px;transform:translateY(100%);right:0px}.tooltip.right::after{top:1px;left:8px;transform:translateY(-100%);border:8px solid transparent;border-bottom:8px solid var(--color-gray-09)}.tooltip.top{top:-8px;transform:translateY(-100%)}.tooltip.top::after{left:50%;bottom:1px;transform:translate(-50%, 100%);border:8px solid transparent;border-top:8px solid var(--color-gray-09)}.truncated{cursor:help}.truncated:hover+.tooltip{visibility:visible;z-index:9999}.tooltip::after{content:\"\";position:absolute}";
41
41
 
42
- const PtcTooltip = class {
43
- constructor(hostRef) {
44
- index.registerInstance(this, hostRef);
45
- this.textDisplay = 'inline';
46
- this.maxLength = 45;
47
- this.description = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. ';
48
- this.zIndex = 'z-auto';
49
- this.position = 'bottom';
50
- this.styles = undefined;
51
- }
52
- render() {
53
- const classMap = this.getCssClassMap();
54
- let truncatedText = this.description.substring(0, this.maxLength);
55
- if (this.description.length > this.maxLength) {
56
- const lastSpace = truncatedText.lastIndexOf(' ');
57
- truncatedText = truncatedText.substring(0, lastSpace);
58
- truncatedText += '... ';
59
- }
60
- return (index.h(index.Host, { class: this.textDisplay }, this.styles && index.h("style", null, this.styles), index.h("div", { class: classMap }, truncatedText), index.h("div", { class: `tooltip ${this.position}` }, this.description)));
61
- }
62
- getCssClassMap() {
63
- return {
64
- // [this.textLines]: true,
65
- ['text-ellipsis']: true,
66
- [this.zIndex]: this.description.length > this.maxLength ? true : false,
67
- ['truncated']: this.description.length > this.maxLength ? true : false
68
- };
69
- }
70
- get el() { return index.getElement(this); }
71
- };
42
+ const PtcTooltip = class {
43
+ constructor(hostRef) {
44
+ index.registerInstance(this, hostRef);
45
+ this.textDisplay = 'inline';
46
+ this.maxLength = 45;
47
+ this.description = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. ';
48
+ this.zIndex = 'z-auto';
49
+ this.position = 'bottom';
50
+ this.styles = undefined;
51
+ }
52
+ render() {
53
+ const classMap = this.getCssClassMap();
54
+ let truncatedText = this.description.substring(0, this.maxLength);
55
+ if (this.description.length > this.maxLength) {
56
+ const lastSpace = truncatedText.lastIndexOf(' ');
57
+ truncatedText = truncatedText.substring(0, lastSpace);
58
+ truncatedText += '... ';
59
+ }
60
+ return (index.h(index.Host, { class: this.textDisplay }, this.styles && index.h("style", null, this.styles), index.h("div", { class: classMap }, truncatedText), index.h("div", { class: `tooltip ${this.position}` }, this.description)));
61
+ }
62
+ getCssClassMap() {
63
+ return {
64
+ // [this.textLines]: true,
65
+ ['text-ellipsis']: true,
66
+ [this.zIndex]: this.description.length > this.maxLength ? true : false,
67
+ ['truncated']: this.description.length > this.maxLength ? true : false
68
+ };
69
+ }
70
+ get el() { return index.getElement(this); }
71
+ };
72
72
  PtcTooltip.style = ptcTooltipCss;
73
73
 
74
74
  exports.ptc_readmore = PtcReadmore;
@@ -6,60 +6,60 @@ const index = require('./index-8745a0a3.js');
6
6
 
7
7
  const ptcResponsiveWrapperCss = ":host{display:block}";
8
8
 
9
- const PtcResponsiveWrapper = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- }
13
- componentDidLoad() {
14
- this.ro = new ResizeObserver(entries => {
15
- for (const entry of entries) {
16
- this.applySizeClasses(entry.contentRect.width);
17
- }
18
- });
19
- this.ro.observe(this.element);
20
- }
21
- disconnectedCallback() {
22
- this.ro.disconnect();
23
- }
24
- applySizeClasses(size) {
25
- let xsmall = false;
26
- let small = false;
27
- let medium = false;
28
- let large = false;
29
- let xlarge = false;
30
- let xxlarge = false;
31
- let large2k = false;
32
- let large4k = false;
33
- if (size >= 2600)
34
- large4k = true;
35
- else if (size >= 1980)
36
- large2k = true;
37
- else if (size >= 1600)
38
- xxlarge = true;
39
- else if (size >= 1440)
40
- xlarge = true;
41
- else if (size >= 1200)
42
- large = true;
43
- else if (size >= 992)
44
- medium = true;
45
- else if (size >= 768)
46
- small = true;
47
- else
48
- xsmall = true;
49
- this.element.classList.toggle("xsmall", xsmall);
50
- this.element.classList.toggle("small", small);
51
- this.element.classList.toggle("medium", medium);
52
- this.element.classList.toggle("large", large);
53
- this.element.classList.toggle("xlarge", xlarge);
54
- this.element.classList.toggle("xxlarge", xxlarge);
55
- this.element.classList.toggle("large2k", large2k);
56
- this.element.classList.toggle("large4k", large4k);
57
- }
58
- render() {
59
- return (index.h("div", null, index.h("slot", null)));
60
- }
61
- get element() { return index.getElement(this); }
62
- };
9
+ const PtcResponsiveWrapper = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ }
13
+ componentDidLoad() {
14
+ this.ro = new ResizeObserver(entries => {
15
+ for (const entry of entries) {
16
+ this.applySizeClasses(entry.contentRect.width);
17
+ }
18
+ });
19
+ this.ro.observe(this.element);
20
+ }
21
+ disconnectedCallback() {
22
+ this.ro.disconnect();
23
+ }
24
+ applySizeClasses(size) {
25
+ let xsmall = false;
26
+ let small = false;
27
+ let medium = false;
28
+ let large = false;
29
+ let xlarge = false;
30
+ let xxlarge = false;
31
+ let large2k = false;
32
+ let large4k = false;
33
+ if (size >= 2600)
34
+ large4k = true;
35
+ else if (size >= 1980)
36
+ large2k = true;
37
+ else if (size >= 1600)
38
+ xxlarge = true;
39
+ else if (size >= 1440)
40
+ xlarge = true;
41
+ else if (size >= 1200)
42
+ large = true;
43
+ else if (size >= 992)
44
+ medium = true;
45
+ else if (size >= 768)
46
+ small = true;
47
+ else
48
+ xsmall = true;
49
+ this.element.classList.toggle("xsmall", xsmall);
50
+ this.element.classList.toggle("small", small);
51
+ this.element.classList.toggle("medium", medium);
52
+ this.element.classList.toggle("large", large);
53
+ this.element.classList.toggle("xlarge", xlarge);
54
+ this.element.classList.toggle("xxlarge", xxlarge);
55
+ this.element.classList.toggle("large2k", large2k);
56
+ this.element.classList.toggle("large4k", large4k);
57
+ }
58
+ render() {
59
+ return (index.h("div", null, index.h("slot", null)));
60
+ }
61
+ get element() { return index.getElement(this); }
62
+ };
63
63
  PtcResponsiveWrapper.style = ptcResponsiveWrapperCss;
64
64
 
65
65
  exports.ptc_responsive_wrapper = PtcResponsiveWrapper;
@@ -4,62 +4,62 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-8745a0a3.js');
6
6
 
7
- const ShoppingCartBlack = `<svg width="26" height="24" viewBox="0 0 26 24" fill="none" xmlns="http://www.w3.org/2000/svg">
8
- <path fill-rule="evenodd" clip-rule="evenodd" d="M22.0047 16.9625H7.80762L6.89267 18.9387H22.1419V20.4358H21.288C21.5163 20.7841 21.6448 21.1863 21.66 21.6002C21.6753 22.0141 21.5767 22.4243 21.3747 22.7879C21.1726 23.1514 20.8746 23.4548 20.5118 23.6662C20.1491 23.8776 19.735 23.9892 19.3132 23.9892C18.8914 23.9892 18.4773 23.8776 18.1146 23.6662C17.7518 23.4548 17.4538 23.1514 17.2517 22.7879C17.0497 22.4243 16.9511 22.0141 16.9663 21.6002C16.9816 21.1863 17.1101 20.7841 17.3384 20.4358H9.27155C9.47218 20.7382 9.59773 21.0825 9.63811 21.4412C9.67848 21.7998 9.63255 22.1627 9.50401 22.5008C9.37547 22.8388 9.16791 23.1425 8.89803 23.3875C8.62815 23.6324 8.30348 23.8117 7.95014 23.911C7.5968 24.0103 7.22465 24.0268 6.86364 23.9591C6.50263 23.8915 6.16283 23.7416 5.87158 23.5215C5.58033 23.3014 5.34576 23.0173 5.18674 22.692C5.02772 22.3667 4.94869 22.0093 4.95601 21.6485C4.96201 21.221 5.08301 20.8027 5.30675 20.4358H4.33079L6.49619 14.9713H18.6041V13.7137H6.23695L2.33314 2.08101L0 1.25759V0L3.20235 1.10788L4.43754 4.49139H26L22.0047 16.9625ZM6.64528 22.5946C6.83586 22.7196 7.05993 22.7863 7.28915 22.7863C7.59652 22.7863 7.8913 22.6665 8.10865 22.4531C8.32599 22.2397 8.44809 21.9503 8.44809 21.6485C8.44809 21.4235 8.38012 21.2035 8.25278 21.0164C8.12543 20.8293 7.94443 20.6834 7.73266 20.5973C7.52089 20.5112 7.28786 20.4887 7.06305 20.5326C6.83824 20.5765 6.63173 20.6848 6.46965 20.844C6.30757 21.0031 6.19719 21.2058 6.15247 21.4265C6.10776 21.6473 6.13071 21.876 6.21843 22.0839C6.30614 22.2919 6.45469 22.4696 6.64528 22.5946ZM18.6769 22.5946C18.8675 22.7196 19.0916 22.7863 19.3208 22.7863C19.6282 22.7863 19.923 22.6665 20.1403 22.4531C20.3577 22.2397 20.4798 21.9503 20.4798 21.6485C20.4798 21.4235 20.4118 21.2035 20.2845 21.0164C20.1571 20.8293 19.9761 20.6834 19.7643 20.5973C19.5526 20.5112 19.3195 20.4887 19.0947 20.5326C18.8699 20.5765 18.6634 20.6848 18.5013 20.844C18.3392 21.0031 18.2289 21.2058 18.1841 21.4265C18.1394 21.6473 18.1624 21.876 18.2501 22.0839C18.3378 22.2919 18.4864 22.4696 18.6769 22.5946ZM19.3206 21.1395C19.2138 21.1365 19.1086 21.1651 19.0185 21.2215C18.9284 21.278 18.8577 21.3596 18.8154 21.456C18.7731 21.5523 18.7613 21.6589 18.7814 21.7619C18.8015 21.8649 18.8526 21.9596 18.9282 22.0338C19.0037 22.108 19.1002 22.1582 19.2051 22.1779C19.3101 22.1977 19.4186 22.186 19.5167 22.1445C19.6149 22.103 19.698 22.0336 19.7555 21.9451C19.813 21.8567 19.8421 21.7534 19.8391 21.6485C19.8391 21.5135 19.7845 21.384 19.6872 21.2886C19.59 21.1931 19.4581 21.1395 19.3206 21.1395ZM7.28896 21.1395C7.18276 21.1395 7.07899 21.1707 6.99092 21.2289C6.90285 21.2872 6.83449 21.3699 6.79458 21.4665C6.75467 21.5632 6.74503 21.6693 6.76689 21.7713C6.78875 21.8734 6.84111 21.9667 6.91729 22.0393C6.99347 22.112 7.08999 22.1607 7.1945 22.1791C7.29902 22.1976 7.40678 22.1851 7.504 22.1431C7.60122 22.1012 7.68348 22.0317 7.74025 21.9436C7.79702 21.8555 7.82572 21.7527 7.82269 21.6485C7.81872 21.5121 7.76074 21.3827 7.66107 21.2876C7.56141 21.1926 7.42791 21.1394 7.28896 21.1395Z" fill="#20262A"/>
9
- </svg>
7
+ const ShoppingCartBlack = `<svg width="26" height="24" viewBox="0 0 26 24" fill="none" xmlns="http://www.w3.org/2000/svg">
8
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M22.0047 16.9625H7.80762L6.89267 18.9387H22.1419V20.4358H21.288C21.5163 20.7841 21.6448 21.1863 21.66 21.6002C21.6753 22.0141 21.5767 22.4243 21.3747 22.7879C21.1726 23.1514 20.8746 23.4548 20.5118 23.6662C20.1491 23.8776 19.735 23.9892 19.3132 23.9892C18.8914 23.9892 18.4773 23.8776 18.1146 23.6662C17.7518 23.4548 17.4538 23.1514 17.2517 22.7879C17.0497 22.4243 16.9511 22.0141 16.9663 21.6002C16.9816 21.1863 17.1101 20.7841 17.3384 20.4358H9.27155C9.47218 20.7382 9.59773 21.0825 9.63811 21.4412C9.67848 21.7998 9.63255 22.1627 9.50401 22.5008C9.37547 22.8388 9.16791 23.1425 8.89803 23.3875C8.62815 23.6324 8.30348 23.8117 7.95014 23.911C7.5968 24.0103 7.22465 24.0268 6.86364 23.9591C6.50263 23.8915 6.16283 23.7416 5.87158 23.5215C5.58033 23.3014 5.34576 23.0173 5.18674 22.692C5.02772 22.3667 4.94869 22.0093 4.95601 21.6485C4.96201 21.221 5.08301 20.8027 5.30675 20.4358H4.33079L6.49619 14.9713H18.6041V13.7137H6.23695L2.33314 2.08101L0 1.25759V0L3.20235 1.10788L4.43754 4.49139H26L22.0047 16.9625ZM6.64528 22.5946C6.83586 22.7196 7.05993 22.7863 7.28915 22.7863C7.59652 22.7863 7.8913 22.6665 8.10865 22.4531C8.32599 22.2397 8.44809 21.9503 8.44809 21.6485C8.44809 21.4235 8.38012 21.2035 8.25278 21.0164C8.12543 20.8293 7.94443 20.6834 7.73266 20.5973C7.52089 20.5112 7.28786 20.4887 7.06305 20.5326C6.83824 20.5765 6.63173 20.6848 6.46965 20.844C6.30757 21.0031 6.19719 21.2058 6.15247 21.4265C6.10776 21.6473 6.13071 21.876 6.21843 22.0839C6.30614 22.2919 6.45469 22.4696 6.64528 22.5946ZM18.6769 22.5946C18.8675 22.7196 19.0916 22.7863 19.3208 22.7863C19.6282 22.7863 19.923 22.6665 20.1403 22.4531C20.3577 22.2397 20.4798 21.9503 20.4798 21.6485C20.4798 21.4235 20.4118 21.2035 20.2845 21.0164C20.1571 20.8293 19.9761 20.6834 19.7643 20.5973C19.5526 20.5112 19.3195 20.4887 19.0947 20.5326C18.8699 20.5765 18.6634 20.6848 18.5013 20.844C18.3392 21.0031 18.2289 21.2058 18.1841 21.4265C18.1394 21.6473 18.1624 21.876 18.2501 22.0839C18.3378 22.2919 18.4864 22.4696 18.6769 22.5946ZM19.3206 21.1395C19.2138 21.1365 19.1086 21.1651 19.0185 21.2215C18.9284 21.278 18.8577 21.3596 18.8154 21.456C18.7731 21.5523 18.7613 21.6589 18.7814 21.7619C18.8015 21.8649 18.8526 21.9596 18.9282 22.0338C19.0037 22.108 19.1002 22.1582 19.2051 22.1779C19.3101 22.1977 19.4186 22.186 19.5167 22.1445C19.6149 22.103 19.698 22.0336 19.7555 21.9451C19.813 21.8567 19.8421 21.7534 19.8391 21.6485C19.8391 21.5135 19.7845 21.384 19.6872 21.2886C19.59 21.1931 19.4581 21.1395 19.3206 21.1395ZM7.28896 21.1395C7.18276 21.1395 7.07899 21.1707 6.99092 21.2289C6.90285 21.2872 6.83449 21.3699 6.79458 21.4665C6.75467 21.5632 6.74503 21.6693 6.76689 21.7713C6.78875 21.8734 6.84111 21.9667 6.91729 22.0393C6.99347 22.112 7.08999 22.1607 7.1945 22.1791C7.29902 22.1976 7.40678 22.1851 7.504 22.1431C7.60122 22.1012 7.68348 22.0317 7.74025 21.9436C7.79702 21.8555 7.82572 21.7527 7.82269 21.6485C7.81872 21.5121 7.76074 21.3827 7.66107 21.2876C7.56141 21.1926 7.42791 21.1394 7.28896 21.1395Z" fill="#20262A"/>
9
+ </svg>
10
10
  `;
11
11
 
12
- const ShoppingCartWhite = `<svg width="26" height="24" viewBox="0 0 26 24" fill="none" xmlns="http://www.w3.org/2000/svg">
13
- <path fill-rule="evenodd" clip-rule="evenodd" d="M22.0047 16.9625H7.80762L6.89267 18.9387H22.1419V20.4358H21.288C21.5163 20.7841 21.6448 21.1863 21.66 21.6002C21.6753 22.0141 21.5767 22.4243 21.3747 22.7879C21.1726 23.1514 20.8746 23.4548 20.5118 23.6662C20.1491 23.8776 19.735 23.9892 19.3132 23.9892C18.8914 23.9892 18.4773 23.8776 18.1146 23.6662C17.7518 23.4548 17.4538 23.1514 17.2517 22.7879C17.0497 22.4243 16.9511 22.0141 16.9663 21.6002C16.9816 21.1863 17.1101 20.7841 17.3384 20.4358H9.27155C9.47218 20.7382 9.59773 21.0825 9.63811 21.4412C9.67848 21.7998 9.63255 22.1627 9.50401 22.5008C9.37547 22.8388 9.16791 23.1425 8.89803 23.3875C8.62815 23.6324 8.30348 23.8117 7.95014 23.911C7.5968 24.0103 7.22465 24.0268 6.86364 23.9591C6.50263 23.8915 6.16283 23.7416 5.87158 23.5215C5.58033 23.3014 5.34576 23.0173 5.18674 22.692C5.02772 22.3667 4.94869 22.0093 4.95601 21.6485C4.96201 21.221 5.08301 20.8027 5.30675 20.4358H4.33079L6.49619 14.9713H18.6041V13.7137H6.23695L2.33314 2.08101L0 1.25759V0L3.20235 1.10788L4.43754 4.49139H26L22.0047 16.9625ZM6.64528 22.5946C6.83586 22.7196 7.05993 22.7863 7.28915 22.7863C7.59652 22.7863 7.8913 22.6665 8.10865 22.4531C8.32599 22.2397 8.44809 21.9503 8.44809 21.6485C8.44809 21.4235 8.38012 21.2035 8.25278 21.0164C8.12543 20.8293 7.94443 20.6834 7.73266 20.5973C7.52089 20.5112 7.28786 20.4887 7.06305 20.5326C6.83824 20.5765 6.63173 20.6848 6.46965 20.844C6.30757 21.0031 6.19719 21.2058 6.15247 21.4265C6.10776 21.6473 6.13071 21.876 6.21843 22.0839C6.30614 22.2919 6.45469 22.4696 6.64528 22.5946ZM18.6769 22.5946C18.8675 22.7196 19.0916 22.7863 19.3208 22.7863C19.6282 22.7863 19.923 22.6665 20.1403 22.4531C20.3577 22.2397 20.4798 21.9503 20.4798 21.6485C20.4798 21.4235 20.4118 21.2035 20.2845 21.0164C20.1571 20.8293 19.9761 20.6834 19.7643 20.5973C19.5526 20.5112 19.3195 20.4887 19.0947 20.5326C18.8699 20.5765 18.6634 20.6848 18.5013 20.844C18.3392 21.0031 18.2289 21.2058 18.1841 21.4265C18.1394 21.6473 18.1624 21.876 18.2501 22.0839C18.3378 22.2919 18.4864 22.4696 18.6769 22.5946ZM19.3206 21.1395C19.2138 21.1365 19.1086 21.1651 19.0185 21.2215C18.9284 21.278 18.8577 21.3596 18.8154 21.456C18.7731 21.5523 18.7613 21.6589 18.7814 21.7619C18.8015 21.8649 18.8526 21.9596 18.9282 22.0338C19.0037 22.108 19.1002 22.1582 19.2051 22.1779C19.3101 22.1977 19.4186 22.186 19.5167 22.1445C19.6149 22.103 19.698 22.0336 19.7555 21.9451C19.813 21.8567 19.8421 21.7534 19.8391 21.6485C19.8391 21.5135 19.7845 21.384 19.6872 21.2886C19.59 21.1931 19.4581 21.1395 19.3206 21.1395ZM7.28896 21.1395C7.18276 21.1395 7.07899 21.1707 6.99092 21.2289C6.90285 21.2872 6.83449 21.3699 6.79458 21.4665C6.75467 21.5632 6.74503 21.6693 6.76689 21.7713C6.78875 21.8734 6.84111 21.9667 6.91729 22.0393C6.99347 22.112 7.08999 22.1607 7.1945 22.1791C7.29902 22.1976 7.40678 22.1851 7.504 22.1431C7.60122 22.1012 7.68348 22.0317 7.74025 21.9436C7.79702 21.8555 7.82572 21.7527 7.82269 21.6485C7.81872 21.5121 7.76074 21.3827 7.66107 21.2876C7.56141 21.1926 7.42791 21.1394 7.28896 21.1395Z" fill="white"/>
14
- </svg>
12
+ const ShoppingCartWhite = `<svg width="26" height="24" viewBox="0 0 26 24" fill="none" xmlns="http://www.w3.org/2000/svg">
13
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M22.0047 16.9625H7.80762L6.89267 18.9387H22.1419V20.4358H21.288C21.5163 20.7841 21.6448 21.1863 21.66 21.6002C21.6753 22.0141 21.5767 22.4243 21.3747 22.7879C21.1726 23.1514 20.8746 23.4548 20.5118 23.6662C20.1491 23.8776 19.735 23.9892 19.3132 23.9892C18.8914 23.9892 18.4773 23.8776 18.1146 23.6662C17.7518 23.4548 17.4538 23.1514 17.2517 22.7879C17.0497 22.4243 16.9511 22.0141 16.9663 21.6002C16.9816 21.1863 17.1101 20.7841 17.3384 20.4358H9.27155C9.47218 20.7382 9.59773 21.0825 9.63811 21.4412C9.67848 21.7998 9.63255 22.1627 9.50401 22.5008C9.37547 22.8388 9.16791 23.1425 8.89803 23.3875C8.62815 23.6324 8.30348 23.8117 7.95014 23.911C7.5968 24.0103 7.22465 24.0268 6.86364 23.9591C6.50263 23.8915 6.16283 23.7416 5.87158 23.5215C5.58033 23.3014 5.34576 23.0173 5.18674 22.692C5.02772 22.3667 4.94869 22.0093 4.95601 21.6485C4.96201 21.221 5.08301 20.8027 5.30675 20.4358H4.33079L6.49619 14.9713H18.6041V13.7137H6.23695L2.33314 2.08101L0 1.25759V0L3.20235 1.10788L4.43754 4.49139H26L22.0047 16.9625ZM6.64528 22.5946C6.83586 22.7196 7.05993 22.7863 7.28915 22.7863C7.59652 22.7863 7.8913 22.6665 8.10865 22.4531C8.32599 22.2397 8.44809 21.9503 8.44809 21.6485C8.44809 21.4235 8.38012 21.2035 8.25278 21.0164C8.12543 20.8293 7.94443 20.6834 7.73266 20.5973C7.52089 20.5112 7.28786 20.4887 7.06305 20.5326C6.83824 20.5765 6.63173 20.6848 6.46965 20.844C6.30757 21.0031 6.19719 21.2058 6.15247 21.4265C6.10776 21.6473 6.13071 21.876 6.21843 22.0839C6.30614 22.2919 6.45469 22.4696 6.64528 22.5946ZM18.6769 22.5946C18.8675 22.7196 19.0916 22.7863 19.3208 22.7863C19.6282 22.7863 19.923 22.6665 20.1403 22.4531C20.3577 22.2397 20.4798 21.9503 20.4798 21.6485C20.4798 21.4235 20.4118 21.2035 20.2845 21.0164C20.1571 20.8293 19.9761 20.6834 19.7643 20.5973C19.5526 20.5112 19.3195 20.4887 19.0947 20.5326C18.8699 20.5765 18.6634 20.6848 18.5013 20.844C18.3392 21.0031 18.2289 21.2058 18.1841 21.4265C18.1394 21.6473 18.1624 21.876 18.2501 22.0839C18.3378 22.2919 18.4864 22.4696 18.6769 22.5946ZM19.3206 21.1395C19.2138 21.1365 19.1086 21.1651 19.0185 21.2215C18.9284 21.278 18.8577 21.3596 18.8154 21.456C18.7731 21.5523 18.7613 21.6589 18.7814 21.7619C18.8015 21.8649 18.8526 21.9596 18.9282 22.0338C19.0037 22.108 19.1002 22.1582 19.2051 22.1779C19.3101 22.1977 19.4186 22.186 19.5167 22.1445C19.6149 22.103 19.698 22.0336 19.7555 21.9451C19.813 21.8567 19.8421 21.7534 19.8391 21.6485C19.8391 21.5135 19.7845 21.384 19.6872 21.2886C19.59 21.1931 19.4581 21.1395 19.3206 21.1395ZM7.28896 21.1395C7.18276 21.1395 7.07899 21.1707 6.99092 21.2289C6.90285 21.2872 6.83449 21.3699 6.79458 21.4665C6.75467 21.5632 6.74503 21.6693 6.76689 21.7713C6.78875 21.8734 6.84111 21.9667 6.91729 22.0393C6.99347 22.112 7.08999 22.1607 7.1945 22.1791C7.29902 22.1976 7.40678 22.1851 7.504 22.1431C7.60122 22.1012 7.68348 22.0317 7.74025 21.9436C7.79702 21.8555 7.82572 21.7527 7.82269 21.6485C7.81872 21.5121 7.76074 21.3827 7.66107 21.2876C7.56141 21.1926 7.42791 21.1394 7.28896 21.1395Z" fill="white"/>
14
+ </svg>
15
15
  `;
16
16
 
17
17
  const ptcShoppingCartCss = ":host{height:20px}:host .cart{border-radius:4px;display:inline-block;padding:0.45rem;max-height:28px}:host .cart .cart__count{position:relative;background:#D33E3E;height:20px;width:20px;text-align:center;border-radius:50%;color:white;left:18px;bottom:38px;vertical-align:middle;display:flex;justify-content:center;align-items:center;text-align:center;font-family:Raleway;font-size:14px;font-weight:600;line-height:21px;letter-spacing:0em}:host .cart.black-background{background:rgba(0, 0, 0, 0.54)}:host .cart.clear-background{background:rgba(0, 0, 0, 0)}";
18
18
 
19
- const PtcShoppingCart = class {
20
- constructor(hostRef) {
21
- index.registerInstance(this, hostRef);
22
- this.cartCount = undefined;
23
- this.color = 'white';
24
- }
25
- render() {
26
- const classMap = this.getCssClassMap();
27
- const svg = this.color == 'black' ? ShoppingCartBlack : ShoppingCartWhite;
28
- const svgClass = this.color == 'black' ? "cart clear-background" : "cart black-background";
29
- return (index.h(index.Host, { class: classMap }, this.cartCount ? (index.h("div", { class: svgClass, innerHTML: svg }, index.h("div", { class: "cart__count" }, this.cartCount))) : (index.h("div", { class: svgClass, innerHTML: svg }))));
30
- /*
31
- if(this.color == 'black'){
32
- return (
33
- <Host class={classMap}>
34
- {this.cartCount ? (
35
- <div class="cart" innerHTML={ShoppingCartBlack}>
36
- <div class="cart__count">{this.cartCount}</div>
37
- </div>
38
- ) : (
39
- <div innerHTML={ShoppingCartBlack}></div>)
40
- }
41
- </Host>
42
- );
43
- } else if(this.color == 'white'){
44
- return(
45
- <Host class={classMap}>
46
- {this.cartCount ? (
47
- <div class="cart black-background" innerHTML={ShoppingCartWhite}>
48
- <div class="cart__count">{this.cartCount}</div>
49
- </div>
50
- ) : (
51
- <div innerHTML={ShoppingCartWhite} class="black-background"></div>)
52
- }
53
- </Host>
54
- );
55
- }*/
56
- }
57
- getCssClassMap() {
58
- return {
59
- ['ptc-shopping-cart']: true,
60
- };
61
- }
62
- };
19
+ const PtcShoppingCart = class {
20
+ constructor(hostRef) {
21
+ index.registerInstance(this, hostRef);
22
+ this.cartCount = undefined;
23
+ this.color = 'white';
24
+ }
25
+ render() {
26
+ const classMap = this.getCssClassMap();
27
+ const svg = this.color == 'black' ? ShoppingCartBlack : ShoppingCartWhite;
28
+ const svgClass = this.color == 'black' ? "cart clear-background" : "cart black-background";
29
+ return (index.h(index.Host, { class: classMap }, this.cartCount ? (index.h("div", { class: svgClass, innerHTML: svg }, index.h("div", { class: "cart__count" }, this.cartCount))) : (index.h("div", { class: svgClass, innerHTML: svg }))));
30
+ /*
31
+ if(this.color == 'black'){
32
+ return (
33
+ <Host class={classMap}>
34
+ {this.cartCount ? (
35
+ <div class="cart" innerHTML={ShoppingCartBlack}>
36
+ <div class="cart__count">{this.cartCount}</div>
37
+ </div>
38
+ ) : (
39
+ <div innerHTML={ShoppingCartBlack}></div>)
40
+ }
41
+ </Host>
42
+ );
43
+ } else if(this.color == 'white'){
44
+ return(
45
+ <Host class={classMap}>
46
+ {this.cartCount ? (
47
+ <div class="cart black-background" innerHTML={ShoppingCartWhite}>
48
+ <div class="cart__count">{this.cartCount}</div>
49
+ </div>
50
+ ) : (
51
+ <div innerHTML={ShoppingCartWhite} class="black-background"></div>)
52
+ }
53
+ </Host>
54
+ );
55
+ }*/
56
+ }
57
+ getCssClassMap() {
58
+ return {
59
+ ['ptc-shopping-cart']: true,
60
+ };
61
+ }
62
+ };
63
63
  PtcShoppingCart.style = ptcShoppingCartCss;
64
64
 
65
65
  exports.ptc_shopping_cart = PtcShoppingCart;
@@ -6,65 +6,65 @@ const index = require('./index-8745a0a3.js');
6
6
 
7
7
  const ptcSocialShareCss = ":host(.inline-block){display:inline-block}:host(.block){display:block}:host(.inline){display:inline}:host(.flex){display:flex}:host(.ptc-social-share){cursor:pointer}@media only screen and (min-width: 1200px){:host(.ptc-social-m-left){margin-left:var(--ptc-element-spacing-04)}}";
8
8
 
9
- const PtcSocialShare = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.display = 'inline-block';
13
- this.shareType = 'twitter';
14
- this.shareTitle = undefined;
15
- this.text = undefined;
16
- this.url = undefined;
17
- this.source = '';
18
- this.recipient = '';
19
- this.iconColor = 'white';
20
- this.iconHoverColor = 'gray';
21
- this.isHover = false;
22
- }
23
- render() {
24
- const classMap = this.getCssClassMap();
25
- return (index.h(index.Host, { class: classMap }, index.h("div", { onClick: () => this.share(), onMouseEnter: () => this.hoverToggle(), onMouseLeave: () => this.hoverToggle() }, this.shareType == 'mail' ? index.h("icon-asset", Object.assign({ type: "ptc", size: "large", name: "plm-mail" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'linkedin' ? index.h("icon-asset", Object.assign({ type: "ptc", size: "large", name: "plm-linkedin" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'twitter' ? index.h("icon-asset", Object.assign({ type: "ptc", size: "large", name: "plm-twitter" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'facebook' ? index.h("icon-asset", Object.assign({ type: "ptc", size: "large", name: "plm-fb" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'share-api' ? index.h("icon-asset", Object.assign({ type: "solid", size: "large", name: "share-square" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null)));
26
- }
27
- getCssClassMap() {
28
- return {
29
- ['ptc-social-share']: true,
30
- [this.display]: true,
31
- };
32
- }
33
- hoverToggle() {
34
- this.isHover = !this.isHover;
35
- }
36
- share() {
37
- if (this.shareType == 'twitter') {
38
- window.open(`https://twitter.com/share?text=${this.text}&url=${this.url}`);
39
- }
40
- if (this.shareType == 'facebook') {
41
- window.open(`https://www.facebook.com/sharer/sharer.php?u=${this.url}`);
42
- }
43
- if (this.shareType == 'linkedin') {
44
- window.open(`https://www.linkedin.com/shareArticle?mini=true&url=${this.url}&title=${this.shareTitle}&summary=${this.text}&source=${this.source}`);
45
- }
46
- if (this.shareType == 'mail') {
47
- window.open(`mailto:${this.recipient}?subject=${this.text}&body=${this.url}`);
48
- }
49
- if (this.shareType == 'share-api') {
50
- if (navigator.share) {
51
- navigator
52
- .share({
53
- title: this.shareTitle,
54
- text: this.text,
55
- url: this.url,
56
- })
57
- .then(() => console.log('Successful share'))
58
- .catch(error => console.log('Error sharing', error));
59
- }
60
- else {
61
- // fallback to sharing to twitter
62
- window.open(`http://twitter.com/share?text=${this.text}&url=${this.url}`);
63
- }
64
- }
65
- }
66
- get el() { return index.getElement(this); }
67
- };
9
+ const PtcSocialShare = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this.display = 'inline-block';
13
+ this.shareType = 'twitter';
14
+ this.shareTitle = undefined;
15
+ this.text = undefined;
16
+ this.url = undefined;
17
+ this.source = '';
18
+ this.recipient = '';
19
+ this.iconColor = 'white';
20
+ this.iconHoverColor = 'gray';
21
+ this.isHover = false;
22
+ }
23
+ render() {
24
+ const classMap = this.getCssClassMap();
25
+ return (index.h(index.Host, { class: classMap }, index.h("div", { onClick: () => this.share(), onMouseEnter: () => this.hoverToggle(), onMouseLeave: () => this.hoverToggle() }, this.shareType == 'mail' ? index.h("icon-asset", Object.assign({ type: "ptc", size: "large", name: "plm-mail" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'linkedin' ? index.h("icon-asset", Object.assign({ type: "ptc", size: "large", name: "plm-linkedin" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'twitter' ? index.h("icon-asset", Object.assign({ type: "ptc", size: "large", name: "plm-twitter" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'facebook' ? index.h("icon-asset", Object.assign({ type: "ptc", size: "large", name: "plm-fb" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'share-api' ? index.h("icon-asset", Object.assign({ type: "solid", size: "large", name: "share-square" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null)));
26
+ }
27
+ getCssClassMap() {
28
+ return {
29
+ ['ptc-social-share']: true,
30
+ [this.display]: true,
31
+ };
32
+ }
33
+ hoverToggle() {
34
+ this.isHover = !this.isHover;
35
+ }
36
+ share() {
37
+ if (this.shareType == 'twitter') {
38
+ window.open(`https://twitter.com/share?text=${this.text}&url=${this.url}`);
39
+ }
40
+ if (this.shareType == 'facebook') {
41
+ window.open(`https://www.facebook.com/sharer/sharer.php?u=${this.url}`);
42
+ }
43
+ if (this.shareType == 'linkedin') {
44
+ window.open(`https://www.linkedin.com/shareArticle?mini=true&url=${this.url}&title=${this.shareTitle}&summary=${this.text}&source=${this.source}`);
45
+ }
46
+ if (this.shareType == 'mail') {
47
+ window.open(`mailto:${this.recipient}?subject=${this.text}&body=${this.url}`);
48
+ }
49
+ if (this.shareType == 'share-api') {
50
+ if (navigator.share) {
51
+ navigator
52
+ .share({
53
+ title: this.shareTitle,
54
+ text: this.text,
55
+ url: this.url,
56
+ })
57
+ .then(() => console.log('Successful share'))
58
+ .catch(error => console.log('Error sharing', error));
59
+ }
60
+ else {
61
+ // fallback to sharing to twitter
62
+ window.open(`http://twitter.com/share?text=${this.text}&url=${this.url}`);
63
+ }
64
+ }
65
+ }
66
+ get el() { return index.getElement(this); }
67
+ };
68
68
  PtcSocialShare.style = ptcSocialShareCss;
69
69
 
70
70
  exports.ptc_social_share = PtcSocialShare;
@@ -6,24 +6,24 @@ const index = require('./index-8745a0a3.js');
6
6
 
7
7
  const ptcSpanCss = ":host{z-index:1}:host span{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;}:host(.link-style) span{color:var(--color-gray-10);font-weight:var(--ptc-font-weight-black);position:relative;line-height:var(--ptc-line-height-normal)}:host(.nav-style) span{display:block;color:var(--color-gray-03);font-weight:var(--ptc-font-weight-medium);line-height:var(--ptc-line-height-dense);text-transform:capitalize;padding-left:var(--ptc-element-spacing-06);font-size:var(--ptc-font-size-small);padding-bottom:var(--ptc-element-spacing-03)}:host(.tag-style) span{font-size:var(--ptc-font-size-x-small);line-height:var(--ptc-line-height-dense);font-weight:var(--ptc-font-weight-regular);color:var(--color-gray-10)}:host(.plm-hub-style) span{font-size:var(--ptc-font-size-x-small);line-height:var(--ptc-line-height-densest);font-weight:var(--ptc-font-weight-medium);color:var(--color-white)}:host(.inline) span{display:inline}:host(.block) span{display:block}:host(.inline-block) span{display:inline-block}:host(.white) span{color:var(--color-white)}:host(.primary-grey) span{color:var(--color-gray-10)}";
8
8
 
9
- const PtcSpan = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.spanStyle = 'tag-style';
13
- this.display = 'inline';
14
- this.styles = undefined;
15
- }
16
- render() {
17
- const classMap = this.getCssClassMap();
18
- return (index.h(index.Host, { class: classMap }, this.styles && index.h("style", null, this.styles), index.h("span", { part: "part-ptc-span" }, index.h("slot", null))));
19
- }
20
- getCssClassMap() {
21
- return {
22
- [this.spanStyle]: true,
23
- [this.display]: true,
24
- };
25
- }
26
- };
9
+ const PtcSpan = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this.spanStyle = 'tag-style';
13
+ this.display = 'inline';
14
+ this.styles = undefined;
15
+ }
16
+ render() {
17
+ const classMap = this.getCssClassMap();
18
+ return (index.h(index.Host, { class: classMap }, this.styles && index.h("style", null, this.styles), index.h("span", { part: "part-ptc-span" }, index.h("slot", null))));
19
+ }
20
+ getCssClassMap() {
21
+ return {
22
+ [this.spanStyle]: true,
23
+ [this.display]: true,
24
+ };
25
+ }
26
+ };
27
27
  PtcSpan.style = ptcSpanCss;
28
28
 
29
29
  exports.ptc_span = PtcSpan;