@ptcwebops/ptcw-design 0.8.7 → 0.8.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (322) 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/max-width-container.cjs.entry.js +29 -29
  8. package/dist/cjs/my-component.cjs.entry.js +15 -15
  9. package/dist/cjs/ptc-accordion-item.cjs.entry.js +83 -83
  10. package/dist/cjs/ptc-accordion.cjs.entry.js +35 -35
  11. package/dist/cjs/ptc-announcement.cjs.entry.js +50 -50
  12. package/dist/cjs/ptc-background-video.cjs.entry.js +16 -16
  13. package/dist/cjs/ptc-breadcrumb.cjs.entry.js +12 -12
  14. package/dist/cjs/ptc-button.cjs.entry.js +36 -34
  15. package/dist/cjs/ptc-card-bottom.cjs.entry.js +35 -35
  16. package/dist/cjs/ptc-card-content.cjs.entry.js +49 -49
  17. package/dist/cjs/ptc-card-wrapper.cjs.entry.js +68 -68
  18. package/dist/cjs/ptc-card_6.cjs.entry.js +441 -441
  19. package/dist/cjs/ptc-checkbox.cjs.entry.js +33 -33
  20. package/dist/cjs/ptc-collapse-list.cjs.entry.js +346 -346
  21. package/dist/cjs/ptc-container.cjs.entry.js +32 -32
  22. package/dist/cjs/ptc-dropdown.cjs.entry.js +65 -65
  23. package/dist/cjs/ptc-dynamic-card.cjs.entry.js +46 -46
  24. package/dist/cjs/ptc-ellipsis-dropdown.cjs.entry.js +38 -38
  25. package/dist/cjs/ptc-filter-tag.cjs.entry.js +57 -57
  26. package/dist/cjs/ptc-hero-footer-cta.cjs.entry.js +11 -11
  27. package/dist/cjs/ptc-hero.cjs.entry.js +18 -18
  28. package/dist/cjs/ptc-icon-list.cjs.entry.js +21 -21
  29. package/dist/cjs/ptc-icon-minimize.cjs.entry.js +36 -36
  30. package/dist/cjs/ptc-link.cjs.entry.js +28 -28
  31. package/dist/cjs/ptc-list.cjs.entry.js +49 -49
  32. package/dist/cjs/ptc-lottie.cjs.entry.js +10 -10
  33. package/dist/cjs/ptc-media-card.cjs.entry.js +25 -22
  34. package/dist/cjs/ptc-minimized-footer.cjs.entry.js +8 -8
  35. package/dist/cjs/ptc-minimized-header.cjs.entry.js +11 -11
  36. package/dist/cjs/ptc-mobile-select.cjs.entry.js +53 -53
  37. package/dist/cjs/ptc-modal.cjs.entry.js +143 -143
  38. package/dist/cjs/ptc-overlay.cjs.entry.js +23 -23
  39. package/dist/cjs/ptc-pagenation.cjs.entry.js +105 -105
  40. package/dist/cjs/ptc-previous-url.cjs.entry.js +10 -10
  41. package/dist/cjs/ptc-pricing-block.cjs.entry.js +21 -17
  42. package/dist/cjs/ptc-pricing-options-component.cjs.entry.js +33 -0
  43. package/dist/cjs/ptc-quote.cjs.entry.js +23 -23
  44. package/dist/cjs/ptc-readmore_2.cjs.entry.js +110 -104
  45. package/dist/cjs/ptc-responsive-wrapper.cjs.entry.js +54 -54
  46. package/dist/cjs/ptc-search-field.cjs.entry.js +29 -0
  47. package/dist/cjs/ptc-shopping-cart.cjs.entry.js +50 -50
  48. package/dist/cjs/ptc-social-share.cjs.entry.js +59 -59
  49. package/dist/cjs/ptc-span.cjs.entry.js +18 -18
  50. package/dist/cjs/ptc-sticky-icons.cjs.entry.js +32 -32
  51. package/dist/cjs/ptc-svg-btn.cjs.entry.js +73 -73
  52. package/dist/cjs/ptc-tab-list.cjs.entry.js +126 -125
  53. package/dist/cjs/ptc-tab.cjs.entry.js +31 -0
  54. package/dist/cjs/ptc-tabs.cjs.entry.js +58 -0
  55. package/dist/cjs/ptc-text-copy-with-background.cjs.entry.js +27 -25
  56. package/dist/cjs/ptc-title.cjs.entry.js +67 -67
  57. package/dist/cjs/ptc-two-column-media.cjs.entry.js +15 -15
  58. package/dist/cjs/ptcw-design.cjs.js +1 -1
  59. package/dist/cjs/tab-content.cjs.entry.js +27 -27
  60. package/dist/cjs/tab-header.cjs.entry.js +45 -45
  61. package/dist/cjs/{utils-5245e89c.js → utils-416c94fe.js} +91 -79
  62. package/dist/collection/collection-manifest.json +4 -0
  63. package/dist/collection/components/dropdown-item/dropdown-item.js +61 -61
  64. package/dist/collection/components/icon-asset/icon-asset.css +4 -4
  65. package/dist/collection/components/icon-asset/icon-asset.js +199 -199
  66. package/dist/collection/components/icon-asset/media/brands.svg +1381 -1381
  67. package/dist/collection/components/icon-asset/media/designer.svg +387 -379
  68. package/dist/collection/components/icon-asset/media/regular.svg +463 -463
  69. package/dist/collection/components/icon-asset/media/solid.svg +3013 -3013
  70. package/dist/collection/components/icon-asset/media/svg-with-js.min.css +4 -4
  71. package/dist/collection/components/list-item/list-item.js +107 -107
  72. package/dist/collection/components/max-width-container/max-width-container.css +7 -7
  73. package/dist/collection/components/max-width-container/max-width-container.js +80 -80
  74. package/dist/collection/components/my-component/my-component.css +3 -3
  75. package/dist/collection/components/my-component/my-component.js +82 -82
  76. package/dist/collection/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.js +287 -287
  77. package/dist/collection/components/ptc-accordion/ptc-accordion.js +78 -78
  78. package/dist/collection/components/ptc-announcement/ptc-announcement.js +238 -238
  79. package/dist/collection/components/ptc-background-video/ptc-background-video.js +102 -102
  80. package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.js +22 -22
  81. package/dist/collection/components/ptc-button/ptc-button.css +54 -6
  82. package/dist/collection/components/ptc-button/ptc-button.js +283 -263
  83. package/dist/collection/components/ptc-card/ptc-card.js +344 -344
  84. package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.js +116 -116
  85. package/dist/collection/components/ptc-card-content/ptc-card-content.js +186 -186
  86. package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.js +193 -193
  87. package/dist/collection/components/ptc-checkbox/ptc-checkbox.js +118 -118
  88. package/dist/collection/components/ptc-collapse-list/ptc-collapse-list.js +586 -586
  89. package/dist/collection/components/ptc-container/ptc-container.js +120 -120
  90. package/dist/collection/components/ptc-date/ptc-date.js +190 -190
  91. package/dist/collection/components/ptc-dropdown/ptc-dropdown.css +44 -11
  92. package/dist/collection/components/ptc-dropdown/ptc-dropdown.js +162 -162
  93. package/dist/collection/components/ptc-dynamic-card/media/nav-active-dotslick.svg +15 -15
  94. package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.js +182 -182
  95. package/dist/collection/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.js +122 -122
  96. package/dist/collection/components/ptc-filter-tag/ptc-filter-tag.js +113 -113
  97. package/dist/collection/components/ptc-hero/ptc-hero.js +86 -86
  98. package/dist/collection/components/ptc-hero-footer-cta/ptc-hero-footer-cta.js +78 -78
  99. package/dist/collection/components/ptc-icon-list/ptc-icon-list.js +127 -127
  100. package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.js +87 -87
  101. package/dist/collection/components/ptc-img/ptc-img.js +293 -293
  102. package/dist/collection/components/ptc-link/ptc-link.js +203 -203
  103. package/dist/collection/components/ptc-list/ptc-list.js +99 -99
  104. package/dist/collection/components/ptc-lottie/ptc-lottie.css +5 -5
  105. package/dist/collection/components/ptc-lottie/ptc-lottie.js +62 -62
  106. package/dist/collection/components/ptc-media-card/ptc-media-card.css +17 -3
  107. package/dist/collection/components/ptc-media-card/ptc-media-card.js +216 -213
  108. package/dist/collection/components/ptc-minimized-footer/ptc-minimized-footer.js +18 -18
  109. package/dist/collection/components/ptc-minimized-header/ptc-minimized-header.js +81 -81
  110. package/dist/collection/components/ptc-mobile-select/ptc-mobile-select.js +190 -190
  111. package/dist/collection/components/ptc-modal/ptc-modal.js +347 -347
  112. package/dist/collection/components/ptc-overlay/ptc-overlay.js +131 -131
  113. package/dist/collection/components/ptc-pagenation/ptc-pagenation.js +322 -322
  114. package/dist/collection/components/ptc-para/ptc-para.js +224 -224
  115. package/dist/collection/components/ptc-picture/ptc-picture.js +450 -450
  116. package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +60 -60
  117. package/dist/collection/components/ptc-pricing-block/ptc-pricing-block.css +5 -0
  118. package/dist/collection/components/ptc-pricing-block/ptc-pricing-block.js +70 -49
  119. package/dist/collection/components/ptc-pricing-options-component/ptc-pricing-options-component.css +56 -0
  120. package/dist/collection/components/ptc-pricing-options-component/ptc-pricing-options-component.js +39 -0
  121. package/dist/collection/components/ptc-quote/ptc-quote.js +144 -144
  122. package/dist/collection/components/ptc-readmore/ptc-readmore.js +277 -277
  123. package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.css +3 -3
  124. package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.js +65 -65
  125. package/dist/collection/components/ptc-search-field/ptc-search-field.css +48 -0
  126. package/dist/collection/components/ptc-search-field/ptc-search-field.js +107 -0
  127. package/dist/collection/components/ptc-shopping-cart/ptc-shopping-cart.js +97 -97
  128. package/dist/collection/components/ptc-social-share/ptc-social-share.js +239 -239
  129. package/dist/collection/components/ptc-spacer/ptc-spacer.css +332 -332
  130. package/dist/collection/components/ptc-spacer/ptc-spacer.js +97 -97
  131. package/dist/collection/components/ptc-span/ptc-span.js +87 -87
  132. package/dist/collection/components/ptc-sticky-icons/ptc-sticky-icons.js +51 -51
  133. package/dist/collection/components/ptc-svg-btn/ptc-svg-btn.js +72 -72
  134. package/dist/collection/components/ptc-tab-list/ptc-tab-list.css +7 -0
  135. package/dist/collection/components/ptc-tab-list/ptc-tab-list.js +177 -155
  136. package/dist/collection/components/ptc-tabs/ptc-tab.js +121 -0
  137. package/dist/collection/components/ptc-tabs/ptc-tabs.css +65 -0
  138. package/dist/collection/components/ptc-tabs/ptc-tabs.js +104 -0
  139. package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.js +166 -164
  140. package/dist/collection/components/ptc-title/ptc-title.js +310 -310
  141. package/dist/collection/components/ptc-tooltip/ptc-tooltip.css +27 -0
  142. package/dist/collection/components/ptc-tooltip/ptc-tooltip.js +228 -204
  143. package/dist/collection/components/ptc-two-column-media/ptc-two-column-media.js +48 -48
  144. package/dist/collection/components/tab-content/tab-content.js +84 -84
  145. package/dist/collection/components/tab-header/tab-header.js +136 -136
  146. package/dist/collection/index.js +1 -1
  147. package/dist/collection/media/svg-imgs/Back-arrow.svg +11 -11
  148. package/dist/collection/media/svg-imgs/close.svg +10 -10
  149. package/dist/collection/media/svg-imgs/ptc-shopping-cart-black.svg +3 -3
  150. package/dist/collection/media/svg-imgs/ptc-shopping-cart-white.svg +3 -3
  151. package/dist/collection/media/svg-imgs/slider-arrow-left.svg +18 -18
  152. package/dist/collection/media/svg-imgs/slider-arrow-right.svg +18 -18
  153. package/dist/collection/media/svg-imgs/union.svg +3 -3
  154. package/dist/collection/utils/component.js +3 -3
  155. package/dist/collection/utils/interfaces.js +11 -11
  156. package/dist/collection/utils/utils.js +92 -81
  157. package/dist/custom-elements/index.d.ts +24 -0
  158. package/dist/custom-elements/index.js +3562 -3395
  159. package/dist/esm/dropdown-item.entry.js +10 -10
  160. package/dist/esm/icon-asset.entry.js +42 -42
  161. package/dist/esm/list-item.entry.js +19 -19
  162. package/dist/esm/loader.js +1 -1
  163. package/dist/esm/lottie-player.entry.js +354 -354
  164. package/dist/esm/max-width-container.entry.js +29 -29
  165. package/dist/esm/my-component.entry.js +15 -15
  166. package/dist/esm/polyfills/core-js.js +0 -0
  167. package/dist/esm/polyfills/dom.js +0 -0
  168. package/dist/esm/polyfills/es5-html-element.js +0 -0
  169. package/dist/esm/polyfills/index.js +0 -0
  170. package/dist/esm/polyfills/system.js +0 -0
  171. package/dist/esm/ptc-accordion-item.entry.js +83 -83
  172. package/dist/esm/ptc-accordion.entry.js +35 -35
  173. package/dist/esm/ptc-announcement.entry.js +50 -50
  174. package/dist/esm/ptc-background-video.entry.js +16 -16
  175. package/dist/esm/ptc-breadcrumb.entry.js +12 -12
  176. package/dist/esm/ptc-button.entry.js +36 -34
  177. package/dist/esm/ptc-card-bottom.entry.js +35 -35
  178. package/dist/esm/ptc-card-content.entry.js +49 -49
  179. package/dist/esm/ptc-card-wrapper.entry.js +68 -68
  180. package/dist/esm/ptc-card_6.entry.js +441 -441
  181. package/dist/esm/ptc-checkbox.entry.js +33 -33
  182. package/dist/esm/ptc-collapse-list.entry.js +346 -346
  183. package/dist/esm/ptc-container.entry.js +32 -32
  184. package/dist/esm/ptc-dropdown.entry.js +65 -65
  185. package/dist/esm/ptc-dynamic-card.entry.js +46 -46
  186. package/dist/esm/ptc-ellipsis-dropdown.entry.js +38 -38
  187. package/dist/esm/ptc-filter-tag.entry.js +57 -57
  188. package/dist/esm/ptc-hero-footer-cta.entry.js +11 -11
  189. package/dist/esm/ptc-hero.entry.js +18 -18
  190. package/dist/esm/ptc-icon-list.entry.js +21 -21
  191. package/dist/esm/ptc-icon-minimize.entry.js +36 -36
  192. package/dist/esm/ptc-link.entry.js +28 -28
  193. package/dist/esm/ptc-list.entry.js +49 -49
  194. package/dist/esm/ptc-lottie.entry.js +10 -10
  195. package/dist/esm/ptc-media-card.entry.js +25 -22
  196. package/dist/esm/ptc-minimized-footer.entry.js +8 -8
  197. package/dist/esm/ptc-minimized-header.entry.js +11 -11
  198. package/dist/esm/ptc-mobile-select.entry.js +53 -53
  199. package/dist/esm/ptc-modal.entry.js +143 -143
  200. package/dist/esm/ptc-overlay.entry.js +23 -23
  201. package/dist/esm/ptc-pagenation.entry.js +105 -105
  202. package/dist/esm/ptc-previous-url.entry.js +10 -10
  203. package/dist/esm/ptc-pricing-block.entry.js +21 -17
  204. package/dist/esm/ptc-pricing-options-component.entry.js +29 -0
  205. package/dist/esm/ptc-quote.entry.js +23 -23
  206. package/dist/esm/ptc-readmore_2.entry.js +110 -104
  207. package/dist/esm/ptc-responsive-wrapper.entry.js +54 -54
  208. package/dist/esm/ptc-search-field.entry.js +25 -0
  209. package/dist/esm/ptc-shopping-cart.entry.js +50 -50
  210. package/dist/esm/ptc-social-share.entry.js +59 -59
  211. package/dist/esm/ptc-span.entry.js +18 -18
  212. package/dist/esm/ptc-sticky-icons.entry.js +32 -32
  213. package/dist/esm/ptc-svg-btn.entry.js +73 -73
  214. package/dist/esm/ptc-tab-list.entry.js +126 -125
  215. package/dist/esm/ptc-tab.entry.js +27 -0
  216. package/dist/esm/ptc-tabs.entry.js +54 -0
  217. package/dist/esm/ptc-text-copy-with-background.entry.js +27 -25
  218. package/dist/esm/ptc-title.entry.js +67 -67
  219. package/dist/esm/ptc-two-column-media.entry.js +15 -15
  220. package/dist/esm/ptcw-design.js +1 -1
  221. package/dist/esm/tab-content.entry.js +27 -27
  222. package/dist/esm/tab-header.entry.js +45 -45
  223. package/dist/esm/{utils-646cc62f.js → utils-f937097d.js} +91 -80
  224. package/dist/ptcw-design/media/brands.svg +1381 -1381
  225. package/dist/ptcw-design/media/designer.svg +387 -379
  226. package/dist/ptcw-design/media/nav-active-dotslick.svg +15 -15
  227. package/dist/ptcw-design/media/regular.svg +463 -463
  228. package/dist/ptcw-design/media/solid.svg +3013 -3013
  229. package/dist/ptcw-design/media/svg-with-js.min.css +4 -4
  230. package/dist/ptcw-design/p-01783129.entry.js +1 -0
  231. package/dist/ptcw-design/p-071b6a69.entry.js +1 -0
  232. package/dist/ptcw-design/p-0828fe2e.entry.js +1 -0
  233. package/dist/ptcw-design/{p-c3621686.entry.js → p-32b81dde.entry.js} +1 -1
  234. package/dist/ptcw-design/p-3ca4de06.entry.js +1 -0
  235. package/dist/ptcw-design/p-45c0076d.entry.js +1 -0
  236. package/dist/ptcw-design/p-52092387.entry.js +1 -0
  237. package/dist/ptcw-design/p-573574f7.entry.js +1 -0
  238. package/dist/ptcw-design/p-6b71e273.entry.js +1 -0
  239. package/dist/ptcw-design/p-727ef7a7.entry.js +1 -0
  240. package/dist/ptcw-design/{p-048502c2.entry.js → p-8d210676.entry.js} +1 -1
  241. package/dist/ptcw-design/p-9ae79cae.entry.js +1 -0
  242. package/dist/ptcw-design/p-c8e804a7.entry.js +1 -0
  243. package/dist/ptcw-design/p-ea875d9e.js +1 -0
  244. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  245. package/dist/types/components/dropdown-item/dropdown-item.d.ts +5 -5
  246. package/dist/types/components/icon-asset/icon-asset.d.ts +40 -40
  247. package/dist/types/components/list-item/list-item.d.ts +8 -8
  248. package/dist/types/components/max-width-container/max-width-container.d.ts +9 -9
  249. package/dist/types/components/my-component/my-component.d.ts +16 -16
  250. package/dist/types/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.d.ts +59 -59
  251. package/dist/types/components/ptc-accordion/ptc-accordion.d.ts +13 -13
  252. package/dist/types/components/ptc-announcement/ptc-announcement.d.ts +51 -51
  253. package/dist/types/components/ptc-background-video/ptc-background-video.d.ts +26 -26
  254. package/dist/types/components/ptc-breadcrumb/ptc-breadcrumb.d.ts +4 -4
  255. package/dist/types/components/ptc-button/ptc-button.d.ts +60 -56
  256. package/dist/types/components/ptc-card/ptc-card.d.ts +67 -67
  257. package/dist/types/components/ptc-card-bottom/ptc-card-bottom.d.ts +15 -15
  258. package/dist/types/components/ptc-card-content/ptc-card-content.d.ts +18 -18
  259. package/dist/types/components/ptc-card-wrapper/ptc-card-wrapper.d.ts +23 -23
  260. package/dist/types/components/ptc-checkbox/ptc-checkbox.d.ts +11 -11
  261. package/dist/types/components/ptc-collapse-list/ptc-collapse-list.d.ts +56 -56
  262. package/dist/types/components/ptc-container/ptc-container.d.ts +12 -12
  263. package/dist/types/components/ptc-date/ptc-date.d.ts +41 -41
  264. package/dist/types/components/ptc-dropdown/ptc-dropdown.d.ts +19 -19
  265. package/dist/types/components/ptc-dynamic-card/ptc-dynamic-card.d.ts +24 -24
  266. package/dist/types/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.d.ts +12 -12
  267. package/dist/types/components/ptc-filter-tag/ptc-filter-tag.d.ts +17 -17
  268. package/dist/types/components/ptc-hero/ptc-hero.d.ts +16 -16
  269. package/dist/types/components/ptc-hero-footer-cta/ptc-hero-footer-cta.d.ts +6 -6
  270. package/dist/types/components/ptc-icon-list/ptc-icon-list.d.ts +21 -21
  271. package/dist/types/components/ptc-icon-minimize/ptc-icon-minimize.d.ts +9 -9
  272. package/dist/types/components/ptc-img/ptc-img.d.ts +51 -51
  273. package/dist/types/components/ptc-link/ptc-link.d.ts +40 -40
  274. package/dist/types/components/ptc-list/ptc-list.d.ts +8 -8
  275. package/dist/types/components/ptc-lottie/ptc-lottie.d.ts +12 -12
  276. package/dist/types/components/ptc-media-card/ptc-media-card.d.ts +45 -45
  277. package/dist/types/components/ptc-minimized-footer/ptc-minimized-footer.d.ts +3 -3
  278. package/dist/types/components/ptc-minimized-header/ptc-minimized-header.d.ts +6 -6
  279. package/dist/types/components/ptc-mobile-select/ptc-mobile-select.d.ts +36 -36
  280. package/dist/types/components/ptc-modal/ptc-modal.d.ts +59 -59
  281. package/dist/types/components/ptc-overlay/ptc-overlay.d.ts +21 -21
  282. package/dist/types/components/ptc-pagenation/ptc-pagenation.d.ts +27 -27
  283. package/dist/types/components/ptc-para/ptc-para.d.ts +43 -43
  284. package/dist/types/components/ptc-picture/ptc-picture.d.ts +93 -93
  285. package/dist/types/components/ptc-previous-url/ptc-previous-url.d.ts +5 -5
  286. package/dist/types/components/ptc-pricing-block/ptc-pricing-block.d.ts +7 -5
  287. package/dist/types/components/ptc-pricing-options-component/ptc-pricing-options-component.d.ts +6 -0
  288. package/dist/types/components/ptc-quote/ptc-quote.d.ts +29 -29
  289. package/dist/types/components/ptc-readmore/ptc-readmore.d.ts +56 -56
  290. package/dist/types/components/ptc-responsive-wrapper/ptc-responsive-wrapper.d.ts +8 -8
  291. package/dist/types/components/ptc-search-field/ptc-search-field.d.ts +10 -0
  292. package/dist/types/components/ptc-shopping-cart/ptc-shopping-cart.d.ts +6 -6
  293. package/dist/types/components/ptc-social-share/ptc-social-share.d.ts +33 -33
  294. package/dist/types/components/ptc-spacer/ptc-spacer.d.ts +16 -16
  295. package/dist/types/components/ptc-span/ptc-span.d.ts +16 -16
  296. package/dist/types/components/ptc-sticky-icons/ptc-sticky-icons.d.ts +7 -7
  297. package/dist/types/components/ptc-svg-btn/ptc-svg-btn.d.ts +12 -12
  298. package/dist/types/components/ptc-tab-list/ptc-tab-list.d.ts +19 -15
  299. package/dist/types/components/ptc-tabs/ptc-tab.d.ts +9 -0
  300. package/dist/types/components/ptc-tabs/ptc-tabs.d.ts +10 -0
  301. package/dist/types/components/ptc-text-copy-with-background/ptc-text-copy-with-background.d.ts +33 -33
  302. package/dist/types/components/ptc-title/ptc-title.d.ts +54 -54
  303. package/dist/types/components/ptc-tooltip/ptc-tooltip.d.ts +42 -38
  304. package/dist/types/components/ptc-two-column-media/ptc-two-column-media.d.ts +9 -9
  305. package/dist/types/components/tab-content/tab-content.d.ts +12 -12
  306. package/dist/types/components/tab-header/tab-header.d.ts +14 -14
  307. package/dist/types/components.d.ts +216 -112
  308. package/dist/types/global.d.ts +1072 -1072
  309. package/dist/types/index.d.ts +1 -1
  310. package/dist/types/utils/component.d.ts +1 -1
  311. package/dist/types/utils/interfaces.d.ts +31 -31
  312. package/dist/types/utils/utils.d.ts +5 -4
  313. package/package.json +61 -61
  314. package/readme.md +18 -18
  315. package/dist/ptcw-design/p-1e92301d.entry.js +0 -1
  316. package/dist/ptcw-design/p-31ffd030.entry.js +0 -1
  317. package/dist/ptcw-design/p-450e9eb0.entry.js +0 -1
  318. package/dist/ptcw-design/p-51db2e2e.entry.js +0 -1
  319. package/dist/ptcw-design/p-5dc89a74.entry.js +0 -1
  320. package/dist/ptcw-design/p-67a9ed01.entry.js +0 -1
  321. package/dist/ptcw-design/p-9024a899.entry.js +0 -1
  322. package/dist/ptcw-design/p-e121ff2a.js +0 -1
@@ -0,0 +1,33 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-c27e52b2.js');
6
+
7
+ const ptcPricingOptionsComponentCss = ":host{display:block;margin-top:var(--ptc-element-spacing-03)}:host #tabs p.active{background-color:var(--color-gray-12);color:var(--color-white)}:host .ptc-pricing-block{width:100%;background-color:var(--color-gray-02);border-radius:var(--ptc-border-radius-standard);font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-small);font-weight:var(--ptc-font-weight-medium);line-height:var(--ptc-line-height-dense);display:block;transition:background-color var(--ptc-ease-inout) var(--ptc-transition-medium)}:host .ptc-pricing-block.active{background-color:var(--color-gray-12);color:var(--color-white)}:host .ptc-pricing-block:hover:not(.active){background-color:var(--color-gray-03)}:host .right-text{font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-small);font-weight:var(--ptc-font-weight-extrabold);line-height:var(--ptc-line-height-dense);text-align:right;float:right;margin:15px 20px 15px 15px;display:block}:host .left-text{font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-small);font-weight:var(--ptc-font-weight-medium);line-height:var(--ptc-line-height-dense);text-align:left;margin:15px 15px 15px 20px;display:inline-block}:host div .panel-right{text-align:center;background:#FFFFFF;border:1px solid #E4E7E9;border-radius:4px;padding:32px 50px;min-height:267px;display:flex;align-content:center;align-items:center}";
8
+
9
+ const ptcPricingOptionsComponent = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this.showOptions = undefined;
13
+ }
14
+ onContentChange(content) {
15
+ this.showOptions = content === 'Content 2';
16
+ }
17
+ render() {
18
+ const classMap = this.getCssClassMap();
19
+ let selectedOption = index.h("slot", null);
20
+ if (this.showOptions) {
21
+ selectedOption = (index.h("div", { class: "is-col-6-md is-col-12 panel-right" }, index.h("div", { class: "panel-content" }, index.h("ptc-para", { "font-size": "small", "font-weight": "w-5", "para-margin": "margin-flush", "para-style": "main" }, "1-500 Tags"), index.h("ptc-title", { type: 'h2', "text-align": 'center', upperline: "no-upperline", "title-size": "xxx-large", "title-weight": "w-8", styles: "H2 { margin-top:0 !important}" }, "$2,968/yr"), index.h("ptc-para", { "font-size": "xx-small", "font-weight": "w-6", "para-margin": "margin-2", "para-style": "main", "para-line-h": "line-height-denser" }, "Pay an annual fee to use the software. Support & Maintenance is included."), index.h("ptc-button", { type: "link", color: "ptc-quaternary", "link-href": "https://www.ptc.com", target: "_blank" }, "Add to Cart"))));
22
+ }
23
+ return (index.h(index.Host, null, index.h("div", { class: classMap }, index.h("div", null, selectedOption), index.h("section", { id: "tabs" }, index.h("ptc-pricing-block", { class: !this.showOptions ? 'active' : '', onClick: this.onContentChange.bind(this, 'Content 1') }, index.h("span", { slot: "left-text" }, "1-500 Tags"), index.h("span", { slot: "right-text" }, "$990/yr")), index.h("ptc-pricing-block", { class: !this.showOptions ? 'active' : '', onClick: this.onContentChange.bind(this, 'Content 2') }, index.h("span", { slot: "left-text" }, "501-5000 Tags"), index.h("span", { slot: "right-text" }, "$1,450/yr")), index.h("ptc-pricing-block", { class: !this.showOptions ? 'active' : '', onClick: this.onContentChange.bind(this, 'Content 3') }, index.h("span", { slot: "left-text" }, "5002+ Tags"), index.h("span", { slot: "right-text" }, "$2,968/yr"))))));
24
+ }
25
+ getCssClassMap() {
26
+ return {
27
+ ['ptc-pricing-options-components']: true
28
+ };
29
+ }
30
+ };
31
+ ptcPricingOptionsComponent.style = ptcPricingOptionsComponentCss;
32
+
33
+ exports.ptc_pricing_options_component = ptcPricingOptionsComponent;
@@ -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,113 +6,119 @@ const index = require('./index-c27e52b2.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 .line10{-webkit-line-clamp:10}.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;margin-right:var(--ptc-element-spacing-07)}.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 !important}.box .read-more-text:not(.truncated)~label{display:none}.box .show-less-cta{display:block !important}:host .box.add-icon .read-more-cta-label span{display:inline-block;position:relative;padding-right:var(--ptc-element-spacing-03)}:host .box.add-icon .read-more-cta-label span::after{content:\"\";background-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 10 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2300890B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E\");width:10px;height:7px;background-size:cover;position:absolute;right:-5px;bottom:7px}:host .box.add-icon .read-more-cta-label.show-less-cta span::after{transform:rotate(180deg)}:host .box.blue .read-more-cta-label{color:var(--color-blue-07)}:host .box.gray .read-more-cta-label{color:var(--color-gray-10)}:host .box.green .read-more-cta-label{color:var(--color-green-07)}:host .box.initial .read-more-cta-label{color:initial}:host .box.small .read-more-cta-label{font-size:var(--ptc-font-size-x-small);line-height:var(--ptc-line-height-densest)}:host .box.medium .read-more-cta-label{font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-p)}:host .box.large .read-more-cta-label{font-size:var(--ptc-font-size-large);line-height:var(--ptc-line-height-p)}:host .box.large.add-icon .read-more-cta-label span{padding-right:var(--ptc-element-spacing-04)}:host .box.large.add-icon .read-more-cta-label span::after{width:15px;height:10px}";
8
8
 
9
- const PtcReadmore = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.moreText = 'read more';
13
- this.lessText = undefined;
14
- this.readMorePosition = 'right';
15
- this.display = 'inline';
16
- this.visibleLines = 'line2';
17
- this.visibleLinesCustom = undefined;
18
- this.zIndex = 'z-auto';
19
- this.checked = false;
20
- this.size = 'small';
21
- this.isIcon = false;
22
- this.color = 'blue';
23
- }
24
- addBtnTruncated() {
25
- const appRoot = this.el.shadowRoot;
26
- const ps = appRoot.querySelectorAll('.read-more-text');
27
- ps.forEach(p => {
28
- p.classList[p.scrollHeight > p.clientHeight ? 'add' : 'remove']('truncated');
29
- });
30
- }
31
- componentDidLoad() {
32
- this.addBtnTruncated();
33
- }
34
- // click event handler
35
- handleClick(event) {
36
- this.addBtnTruncated();
37
- // check if the input box is checked
38
- this.checked = event.target.checked;
39
- // Getting cta element
40
- const cta = this.el.shadowRoot.querySelector('.read-more-cta-label');
41
- // Updating the cta text
42
- this.checked
43
- ? cta.innerHTML = `<span> ${this.lessText ? this.lessText : ''} </span>`
44
- : cta.innerHTML = `<span> ${this.moreText ? this.moreText : ''}</span>`;
45
- this.checked ? cta.classList.add('show-less-cta') : cta.classList.remove('show-less-cta');
46
- }
47
- render() {
48
- const classMap = this.getCssClassMap();
49
- return (index.h(index.Host, { class: this.display }, index.h("div", { class: classMap }, index.h("input", { type: "checkbox", id: "expanded", onClick: (e) => this.handleClick(e) }), index.h("p", { class: `read-more-text ${this.visibleLines}`, style: { WebkitLineClamp: `${this.visibleLinesCustom}` } }, index.h("slot", null)), index.h("label", { htmlFor: "expanded", role: "button", class: `${this.zIndex} read-more-cta-label`, style: { textAlign: `${this.readMorePosition}` } }, index.h("span", null, this.moreText)))));
50
- }
51
- getCssClassMap() {
52
- return {
53
- ['box']: true,
54
- [this.color]: true,
55
- [this.size]: true,
56
- ['add-icon']: this.isIcon
57
- };
58
- }
59
- get el() { return index.getElement(this); }
60
- };
9
+ const PtcReadmore = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this.moreText = 'read more';
13
+ this.lessText = undefined;
14
+ this.readMorePosition = 'right';
15
+ this.display = 'inline';
16
+ this.visibleLines = 'line2';
17
+ this.visibleLinesCustom = undefined;
18
+ this.zIndex = 'z-auto';
19
+ this.checked = false;
20
+ this.size = 'small';
21
+ this.isIcon = false;
22
+ this.color = 'blue';
23
+ }
24
+ addBtnTruncated() {
25
+ const appRoot = this.el.shadowRoot;
26
+ const ps = appRoot.querySelectorAll('.read-more-text');
27
+ ps.forEach(p => {
28
+ p.classList[p.scrollHeight > p.clientHeight ? 'add' : 'remove']('truncated');
29
+ });
30
+ }
31
+ componentDidLoad() {
32
+ this.addBtnTruncated();
33
+ }
34
+ // click event handler
35
+ handleClick(event) {
36
+ this.addBtnTruncated();
37
+ // check if the input box is checked
38
+ this.checked = event.target.checked;
39
+ // Getting cta element
40
+ const cta = this.el.shadowRoot.querySelector('.read-more-cta-label');
41
+ // Updating the cta text
42
+ this.checked
43
+ ? cta.innerHTML = `<span> ${this.lessText ? this.lessText : ''} </span>`
44
+ : cta.innerHTML = `<span> ${this.moreText ? this.moreText : ''}</span>`;
45
+ this.checked ? cta.classList.add('show-less-cta') : cta.classList.remove('show-less-cta');
46
+ }
47
+ render() {
48
+ const classMap = this.getCssClassMap();
49
+ return (index.h(index.Host, { class: this.display }, index.h("div", { class: classMap }, index.h("input", { type: "checkbox", id: "expanded", onClick: (e) => this.handleClick(e) }), index.h("p", { class: `read-more-text ${this.visibleLines}`, style: { WebkitLineClamp: `${this.visibleLinesCustom}` } }, index.h("slot", null)), index.h("label", { htmlFor: "expanded", role: "button", class: `${this.zIndex} read-more-cta-label`, style: { textAlign: `${this.readMorePosition}` } }, index.h("span", null, this.moreText)))));
50
+ }
51
+ getCssClassMap() {
52
+ return {
53
+ ['box']: true,
54
+ [this.color]: true,
55
+ [this.size]: true,
56
+ ['add-icon']: this.isIcon
57
+ };
58
+ }
59
+ get el() { return index.getElement(this); }
60
+ };
61
61
  PtcReadmore.style = ptcReadmoreCss;
62
62
 
63
- 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}.ellipsis-by-line-boxing{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word;padding-bottom:0}";
63
+ 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;text-align:left;text-shadow:none}.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)}.tooltip.bottom-right{bottom:-12px;transform:translate(-60%, 100%)}.tooltip.bottom-right::after{top:1px;left:75%;transform:translate(-50%, -100%);border:8px solid transparent;border-bottom:8px solid var(--color-gray-09)}.truncated{cursor:help}.truncated:hover+.tooltip{visibility:visible;z-index:9999}.wrapper-content{display:inline-block;position:relative}.wrapper-content .tooltip{width:auto;min-width:72px;max-width:273px}.wrapper-content slot:hover+.tooltip{visibility:visible;z-index:9999}.tooltip::after{content:\"\";position:absolute}.ellipsis-by-line-boxing{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word;padding-bottom:0}";
64
64
 
65
- const PtcTooltip = class {
66
- constructor(hostRef) {
67
- index.registerInstance(this, hostRef);
68
- this.textDisplay = 'inline';
69
- this.maxLength = 45;
70
- this.textLines = undefined;
71
- this.description = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. ';
72
- this.zIndex = 'z-auto';
73
- this.position = 'bottom';
74
- this.styles = undefined;
75
- }
76
- addTruncatedClass() {
77
- const appRoot = this.el.shadowRoot;
78
- const text = appRoot.querySelectorAll('.ellipsis-by-line-boxing');
79
- text.forEach(t => {
80
- t.classList[t.scrollHeight > t.clientHeight ? 'add' : 'remove']('truncated');
81
- });
82
- }
83
- componentDidLoad() {
84
- this.addTruncatedClass();
85
- }
86
- render() {
87
- const classMap = this.getCssClassMap();
88
- const cutOff = this.getLineCuttoff();
89
- let truncatedText = this.description.substring(0, this.maxLength);
90
- if (this.description.length > this.maxLength) {
91
- const lastSpace = truncatedText.lastIndexOf(' ');
92
- truncatedText = truncatedText.substring(0, lastSpace);
93
- truncatedText += '... ';
94
- }
95
- return (index.h(index.Host, { class: this.textDisplay }, this.styles && index.h("style", null, this.styles), this.textLines > 0 && !!this.textLines ? index.h("div", { class: "ellipsis-by-line-boxing", style: cutOff }, this.description) : index.h("div", { class: classMap }, truncatedText), index.h("div", { class: `tooltip ${this.position}` }, this.description)));
96
- }
97
- getCssClassMap() {
98
- return {
99
- // ['ellipsis-by-line-boxing']: this.textLines && this.textLines > 0,
100
- ['text-ellipsis']: true,
101
- [this.zIndex]: this.description.length > this.maxLength ? true : false,
102
- ['truncated']: this.description.length > this.maxLength && !this.textLines ? true : false,
103
- };
104
- }
105
- getLineCuttoff() {
106
- let result;
107
- if (this.textLines && this.textLines > 0) {
108
- result = {
109
- ['-webkit-line-clamp']: `${this.textLines}`,
110
- };
111
- }
112
- return result;
113
- }
114
- get el() { return index.getElement(this); }
115
- };
65
+ const PtcTooltip = class {
66
+ constructor(hostRef) {
67
+ index.registerInstance(this, hostRef);
68
+ this.textDisplay = 'inline';
69
+ this.maxLength = 45;
70
+ this.textLines = undefined;
71
+ this.description = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. ';
72
+ this.zIndex = 'z-auto';
73
+ this.position = 'bottom';
74
+ this.styles = undefined;
75
+ this.mode = 'text-only';
76
+ }
77
+ addTruncatedClass() {
78
+ const appRoot = this.el.shadowRoot;
79
+ const text = appRoot.querySelectorAll('.ellipsis-by-line-boxing');
80
+ text.forEach(t => {
81
+ t.classList[t.scrollHeight > t.clientHeight ? 'add' : 'remove']('truncated');
82
+ });
83
+ }
84
+ componentDidLoad() {
85
+ this.addTruncatedClass();
86
+ }
87
+ render() {
88
+ if (this.mode == 'wrapper') {
89
+ return (index.h(index.Host, { class: this.textDisplay }, this.styles && index.h("style", null, this.styles), index.h("div", { class: "wrapper-content" }, index.h("slot", null), index.h("div", { class: `tooltip ${this.position}` }, this.description))));
90
+ }
91
+ else {
92
+ const classMap = this.getCssClassMap();
93
+ const cutOff = this.getLineCuttoff();
94
+ let truncatedText = this.description.substring(0, this.maxLength);
95
+ if (this.description.length > this.maxLength) {
96
+ const lastSpace = truncatedText.lastIndexOf(' ');
97
+ truncatedText = truncatedText.substring(0, lastSpace);
98
+ truncatedText += '... ';
99
+ }
100
+ return (index.h(index.Host, { class: this.textDisplay }, this.styles && index.h("style", null, this.styles), this.textLines > 0 && !!this.textLines ? index.h("div", { class: "ellipsis-by-line-boxing", style: cutOff }, this.description) : index.h("div", { class: classMap }, truncatedText), index.h("div", { class: `tooltip ${this.position}` }, this.description)));
101
+ }
102
+ }
103
+ getCssClassMap() {
104
+ return {
105
+ // ['ellipsis-by-line-boxing']: this.textLines && this.textLines > 0,
106
+ ['text-ellipsis']: true,
107
+ [this.zIndex]: this.description.length > this.maxLength ? true : false,
108
+ ['truncated']: this.description.length > this.maxLength && !this.textLines ? true : false,
109
+ };
110
+ }
111
+ getLineCuttoff() {
112
+ let result;
113
+ if (this.textLines && this.textLines > 0) {
114
+ result = {
115
+ ['-webkit-line-clamp']: `${this.textLines}`,
116
+ };
117
+ }
118
+ return result;
119
+ }
120
+ get el() { return index.getElement(this); }
121
+ };
116
122
  PtcTooltip.style = ptcTooltipCss;
117
123
 
118
124
  exports.ptc_readmore = PtcReadmore;
@@ -6,60 +6,60 @@ const index = require('./index-c27e52b2.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;
@@ -0,0 +1,29 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-c27e52b2.js');
6
+
7
+ const ptcSearchFieldCss = ":host .search-div{display:flex;align-items:center;justify-content:space-between;height:51px;box-shadow:var(--ptc-shadow-small);border-radius:var(--ptc-border-radius-standard)}:host .search-div input{height:-webkit-fill-available;border:0px solid var(--color-gray-12);border-radius:var(--ptc-border-radius-standard) 0px 0px var(--ptc-border-radius-standard);flex-grow:2;padding-left:var(--ptc-element-spacing-04);line-height:var(--ptc-line-height-loose)}:host .search-div input:focus-visible{border-radius:var(--ptc-border-radius-standard) 0px 0px 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;width:51px;border-radius:0px var(--ptc-border-radius-standard) var(--ptc-border-radius-standard) 0px;background-color:var(--color-gray-12);border:0px solid var(--color-gray-12);transition:background-color var(--ptc-ease-inout) var(--ptc-transition-medium)}: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}";
8
+
9
+ const PtcSearchField = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this.valueChanged = index.createEvent(this, "valueChanged", 7);
13
+ this.clickEvent = index.createEvent(this, "clickEvent", 7);
14
+ this.textValue = undefined;
15
+ this.placeholderLabel = undefined;
16
+ }
17
+ textChangedHandler(event) {
18
+ this.valueChanged.emit(event);
19
+ }
20
+ buttonClickHandler(event) {
21
+ this.clickEvent.emit(event);
22
+ }
23
+ render() {
24
+ return (index.h("div", { class: "search-div" }, index.h("input", { type: "text", value: this.textValue, placeholder: this.placeholderLabel, onChange: (e) => { this.textChangedHandler(e); } }), index.h("button", { type: "link", color: "blackgrey", class: "search-btn", onClick: (e) => { this.buttonClickHandler(e); } }, index.h("icon-asset", { type: "ptc", size: "medium", name: "new-search", color: "white" }))));
25
+ }
26
+ };
27
+ PtcSearchField.style = ptcSearchFieldCss;
28
+
29
+ exports.ptc_search_field = PtcSearchField;
@@ -4,62 +4,62 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-c27e52b2.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;