@ptcwebops/ptcw-design 0.9.0 → 0.9.1

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 (295) 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/lottie-player.cjs.entry.js +354 -354
  6. package/dist/cjs/max-width-container.cjs.entry.js +29 -29
  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 +50 -50
  11. package/dist/cjs/ptc-background-video.cjs.entry.js +16 -16
  12. package/dist/cjs/ptc-breadcrumb.cjs.entry.js +12 -12
  13. package/dist/cjs/ptc-button.cjs.entry.js +35 -35
  14. package/dist/cjs/ptc-card-bottom.cjs.entry.js +35 -35
  15. package/dist/cjs/ptc-card-content.cjs.entry.js +50 -49
  16. package/dist/cjs/ptc-card-wrapper.cjs.entry.js +72 -68
  17. package/dist/cjs/ptc-card_6.cjs.entry.js +441 -441
  18. package/dist/cjs/ptc-checkbox.cjs.entry.js +33 -33
  19. package/dist/cjs/ptc-collapse-list.cjs.entry.js +346 -346
  20. package/dist/cjs/ptc-container.cjs.entry.js +32 -32
  21. package/dist/cjs/ptc-dropdown.cjs.entry.js +64 -64
  22. package/dist/cjs/ptc-dynamic-card.cjs.entry.js +46 -46
  23. package/dist/cjs/ptc-ellipsis-dropdown.cjs.entry.js +38 -38
  24. package/dist/cjs/ptc-filter-tag.cjs.entry.js +57 -57
  25. package/dist/cjs/ptc-hero-footer-cta.cjs.entry.js +11 -11
  26. package/dist/cjs/ptc-hero.cjs.entry.js +18 -18
  27. package/dist/cjs/ptc-icon-list.cjs.entry.js +21 -21
  28. package/dist/cjs/ptc-icon-minimize.cjs.entry.js +36 -36
  29. package/dist/cjs/ptc-link.cjs.entry.js +28 -28
  30. package/dist/cjs/ptc-list.cjs.entry.js +49 -49
  31. package/dist/cjs/ptc-lottie.cjs.entry.js +10 -10
  32. package/dist/cjs/ptc-media-card.cjs.entry.js +24 -24
  33. package/dist/cjs/ptc-minimized-footer.cjs.entry.js +8 -8
  34. package/dist/cjs/ptc-minimized-header.cjs.entry.js +11 -11
  35. package/dist/cjs/ptc-mobile-select.cjs.entry.js +53 -53
  36. package/dist/cjs/ptc-modal.cjs.entry.js +143 -143
  37. package/dist/cjs/ptc-overlay.cjs.entry.js +23 -23
  38. package/dist/cjs/ptc-pagenation.cjs.entry.js +105 -105
  39. package/dist/cjs/ptc-previous-url.cjs.entry.js +10 -10
  40. package/dist/cjs/ptc-pricing-block.cjs.entry.js +20 -20
  41. package/dist/cjs/ptc-pricing-options-component.cjs.entry.js +22 -22
  42. package/dist/cjs/ptc-quote.cjs.entry.js +23 -23
  43. package/dist/cjs/ptc-readmore_2.cjs.entry.js +109 -109
  44. package/dist/cjs/ptc-responsive-wrapper.cjs.entry.js +54 -54
  45. package/dist/cjs/ptc-search-field.cjs.entry.js +35 -18
  46. package/dist/cjs/ptc-shopping-cart.cjs.entry.js +50 -50
  47. package/dist/cjs/ptc-social-share.cjs.entry.js +59 -59
  48. package/dist/cjs/ptc-span.cjs.entry.js +18 -18
  49. package/dist/cjs/ptc-sticky-icons.cjs.entry.js +32 -32
  50. package/dist/cjs/ptc-svg-btn.cjs.entry.js +73 -73
  51. package/dist/cjs/ptc-tab-list.cjs.entry.js +125 -125
  52. package/dist/cjs/ptc-tab.cjs.entry.js +20 -20
  53. package/dist/cjs/ptc-tabs.cjs.entry.js +47 -47
  54. package/dist/cjs/ptc-text-copy-with-background.cjs.entry.js +27 -27
  55. package/dist/cjs/ptc-title.cjs.entry.js +67 -67
  56. package/dist/cjs/ptc-two-column-media.cjs.entry.js +15 -15
  57. package/dist/cjs/tab-content.cjs.entry.js +27 -27
  58. package/dist/cjs/tab-header.cjs.entry.js +45 -45
  59. package/dist/cjs/{utils-9eb22041.js → utils-416c94fe.js} +90 -90
  60. package/dist/collection/components/dropdown-item/dropdown-item.js +61 -61
  61. package/dist/collection/components/icon-asset/icon-asset.css +4 -4
  62. package/dist/collection/components/icon-asset/icon-asset.js +199 -199
  63. package/dist/collection/components/icon-asset/media/brands.svg +1381 -1381
  64. package/dist/collection/components/icon-asset/media/designer.svg +387 -387
  65. package/dist/collection/components/icon-asset/media/regular.svg +463 -463
  66. package/dist/collection/components/icon-asset/media/solid.svg +3013 -3013
  67. package/dist/collection/components/icon-asset/media/svg-with-js.min.css +4 -4
  68. package/dist/collection/components/list-item/list-item.js +107 -107
  69. package/dist/collection/components/max-width-container/max-width-container.css +7 -7
  70. package/dist/collection/components/max-width-container/max-width-container.js +80 -80
  71. package/dist/collection/components/my-component/my-component.css +3 -3
  72. package/dist/collection/components/my-component/my-component.js +82 -82
  73. package/dist/collection/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.js +287 -287
  74. package/dist/collection/components/ptc-accordion/ptc-accordion.js +78 -78
  75. package/dist/collection/components/ptc-announcement/ptc-announcement.js +238 -238
  76. package/dist/collection/components/ptc-background-video/ptc-background-video.js +102 -102
  77. package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.js +22 -22
  78. package/dist/collection/components/ptc-button/ptc-button.js +283 -283
  79. package/dist/collection/components/ptc-card/ptc-card.js +344 -344
  80. package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.js +116 -116
  81. package/dist/collection/components/ptc-card-content/ptc-card-content.js +187 -186
  82. package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.js +197 -193
  83. package/dist/collection/components/ptc-checkbox/ptc-checkbox.js +118 -118
  84. package/dist/collection/components/ptc-collapse-list/ptc-collapse-list.js +586 -586
  85. package/dist/collection/components/ptc-container/ptc-container.js +120 -120
  86. package/dist/collection/components/ptc-date/ptc-date.js +190 -190
  87. package/dist/collection/components/ptc-dropdown/ptc-dropdown.js +162 -162
  88. package/dist/collection/components/ptc-dynamic-card/media/nav-active-dotslick.svg +15 -15
  89. package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.js +182 -182
  90. package/dist/collection/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.js +122 -122
  91. package/dist/collection/components/ptc-filter-tag/ptc-filter-tag.js +113 -113
  92. package/dist/collection/components/ptc-hero/ptc-hero.js +86 -86
  93. package/dist/collection/components/ptc-hero-footer-cta/ptc-hero-footer-cta.js +78 -78
  94. package/dist/collection/components/ptc-icon-list/ptc-icon-list.js +127 -127
  95. package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.js +87 -87
  96. package/dist/collection/components/ptc-img/ptc-img.js +293 -293
  97. package/dist/collection/components/ptc-link/ptc-link.js +203 -203
  98. package/dist/collection/components/ptc-list/ptc-list.js +99 -99
  99. package/dist/collection/components/ptc-lottie/ptc-lottie.css +5 -5
  100. package/dist/collection/components/ptc-lottie/ptc-lottie.js +62 -62
  101. package/dist/collection/components/ptc-media-card/ptc-media-card.js +216 -216
  102. package/dist/collection/components/ptc-minimized-footer/ptc-minimized-footer.js +18 -18
  103. package/dist/collection/components/ptc-minimized-header/ptc-minimized-header.js +81 -81
  104. package/dist/collection/components/ptc-mobile-select/ptc-mobile-select.js +190 -190
  105. package/dist/collection/components/ptc-modal/ptc-modal.js +347 -347
  106. package/dist/collection/components/ptc-overlay/ptc-overlay.js +131 -131
  107. package/dist/collection/components/ptc-pagenation/ptc-pagenation.js +322 -322
  108. package/dist/collection/components/ptc-para/ptc-para.js +224 -224
  109. package/dist/collection/components/ptc-picture/ptc-picture.js +450 -450
  110. package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +60 -60
  111. package/dist/collection/components/ptc-pricing-block/ptc-pricing-block.js +70 -70
  112. package/dist/collection/components/ptc-pricing-options-component/ptc-pricing-options-component.js +39 -39
  113. package/dist/collection/components/ptc-quote/ptc-quote.js +144 -144
  114. package/dist/collection/components/ptc-readmore/ptc-readmore.js +277 -277
  115. package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.css +3 -3
  116. package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.js +65 -65
  117. package/dist/collection/components/ptc-search-field/ptc-search-field.js +116 -107
  118. package/dist/collection/components/ptc-shopping-cart/ptc-shopping-cart.js +97 -97
  119. package/dist/collection/components/ptc-social-share/ptc-social-share.js +239 -239
  120. package/dist/collection/components/ptc-spacer/ptc-spacer.css +332 -332
  121. package/dist/collection/components/ptc-spacer/ptc-spacer.js +97 -97
  122. package/dist/collection/components/ptc-span/ptc-span.js +87 -87
  123. package/dist/collection/components/ptc-sticky-icons/ptc-sticky-icons.js +51 -51
  124. package/dist/collection/components/ptc-svg-btn/ptc-svg-btn.js +72 -72
  125. package/dist/collection/components/ptc-tab-list/ptc-tab-list.js +177 -177
  126. package/dist/collection/components/ptc-tabs/ptc-tab.js +121 -121
  127. package/dist/collection/components/ptc-tabs/ptc-tabs.js +104 -104
  128. package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.js +166 -166
  129. package/dist/collection/components/ptc-title/ptc-title.js +310 -310
  130. package/dist/collection/components/ptc-tooltip/ptc-tooltip.js +228 -228
  131. package/dist/collection/components/ptc-two-column-media/ptc-two-column-media.js +48 -48
  132. package/dist/collection/components/tab-content/tab-content.js +84 -84
  133. package/dist/collection/components/tab-header/tab-header.js +136 -136
  134. package/dist/collection/index.js +1 -1
  135. package/dist/collection/media/svg-imgs/Back-arrow.svg +11 -11
  136. package/dist/collection/media/svg-imgs/close.svg +10 -10
  137. package/dist/collection/media/svg-imgs/ptc-shopping-cart-black.svg +3 -3
  138. package/dist/collection/media/svg-imgs/ptc-shopping-cart-white.svg +3 -3
  139. package/dist/collection/media/svg-imgs/slider-arrow-left.svg +18 -18
  140. package/dist/collection/media/svg-imgs/slider-arrow-right.svg +18 -18
  141. package/dist/collection/media/svg-imgs/union.svg +3 -3
  142. package/dist/collection/utils/component.js +3 -3
  143. package/dist/collection/utils/interfaces.js +11 -11
  144. package/dist/collection/utils/utils.js +92 -92
  145. package/dist/custom-elements/index.js +3541 -3519
  146. package/dist/esm/dropdown-item.entry.js +10 -10
  147. package/dist/esm/icon-asset.entry.js +42 -42
  148. package/dist/esm/list-item.entry.js +19 -19
  149. package/dist/esm/lottie-player.entry.js +354 -354
  150. package/dist/esm/max-width-container.entry.js +29 -29
  151. package/dist/esm/my-component.entry.js +15 -15
  152. package/dist/esm/polyfills/core-js.js +0 -0
  153. package/dist/esm/polyfills/dom.js +0 -0
  154. package/dist/esm/polyfills/es5-html-element.js +0 -0
  155. package/dist/esm/polyfills/index.js +0 -0
  156. package/dist/esm/polyfills/system.js +0 -0
  157. package/dist/esm/ptc-accordion-item.entry.js +83 -83
  158. package/dist/esm/ptc-accordion.entry.js +35 -35
  159. package/dist/esm/ptc-announcement.entry.js +50 -50
  160. package/dist/esm/ptc-background-video.entry.js +16 -16
  161. package/dist/esm/ptc-breadcrumb.entry.js +12 -12
  162. package/dist/esm/ptc-button.entry.js +35 -35
  163. package/dist/esm/ptc-card-bottom.entry.js +35 -35
  164. package/dist/esm/ptc-card-content.entry.js +50 -49
  165. package/dist/esm/ptc-card-wrapper.entry.js +72 -68
  166. package/dist/esm/ptc-card_6.entry.js +441 -441
  167. package/dist/esm/ptc-checkbox.entry.js +33 -33
  168. package/dist/esm/ptc-collapse-list.entry.js +346 -346
  169. package/dist/esm/ptc-container.entry.js +32 -32
  170. package/dist/esm/ptc-dropdown.entry.js +64 -64
  171. package/dist/esm/ptc-dynamic-card.entry.js +46 -46
  172. package/dist/esm/ptc-ellipsis-dropdown.entry.js +38 -38
  173. package/dist/esm/ptc-filter-tag.entry.js +57 -57
  174. package/dist/esm/ptc-hero-footer-cta.entry.js +11 -11
  175. package/dist/esm/ptc-hero.entry.js +18 -18
  176. package/dist/esm/ptc-icon-list.entry.js +21 -21
  177. package/dist/esm/ptc-icon-minimize.entry.js +36 -36
  178. package/dist/esm/ptc-link.entry.js +28 -28
  179. package/dist/esm/ptc-list.entry.js +49 -49
  180. package/dist/esm/ptc-lottie.entry.js +10 -10
  181. package/dist/esm/ptc-media-card.entry.js +24 -24
  182. package/dist/esm/ptc-minimized-footer.entry.js +8 -8
  183. package/dist/esm/ptc-minimized-header.entry.js +11 -11
  184. package/dist/esm/ptc-mobile-select.entry.js +53 -53
  185. package/dist/esm/ptc-modal.entry.js +143 -143
  186. package/dist/esm/ptc-overlay.entry.js +23 -23
  187. package/dist/esm/ptc-pagenation.entry.js +105 -105
  188. package/dist/esm/ptc-previous-url.entry.js +10 -10
  189. package/dist/esm/ptc-pricing-block.entry.js +20 -20
  190. package/dist/esm/ptc-pricing-options-component.entry.js +22 -22
  191. package/dist/esm/ptc-quote.entry.js +23 -23
  192. package/dist/esm/ptc-readmore_2.entry.js +109 -109
  193. package/dist/esm/ptc-responsive-wrapper.entry.js +54 -54
  194. package/dist/esm/ptc-search-field.entry.js +36 -19
  195. package/dist/esm/ptc-shopping-cart.entry.js +50 -50
  196. package/dist/esm/ptc-social-share.entry.js +59 -59
  197. package/dist/esm/ptc-span.entry.js +18 -18
  198. package/dist/esm/ptc-sticky-icons.entry.js +32 -32
  199. package/dist/esm/ptc-svg-btn.entry.js +73 -73
  200. package/dist/esm/ptc-tab-list.entry.js +125 -125
  201. package/dist/esm/ptc-tab.entry.js +20 -20
  202. package/dist/esm/ptc-tabs.entry.js +47 -47
  203. package/dist/esm/ptc-text-copy-with-background.entry.js +27 -27
  204. package/dist/esm/ptc-title.entry.js +67 -67
  205. package/dist/esm/ptc-two-column-media.entry.js +15 -15
  206. package/dist/esm/tab-content.entry.js +27 -27
  207. package/dist/esm/tab-header.entry.js +45 -45
  208. package/dist/esm/{utils-38decc43.js → utils-f937097d.js} +90 -90
  209. package/dist/ptcw-design/media/brands.svg +1381 -1381
  210. package/dist/ptcw-design/media/designer.svg +387 -387
  211. package/dist/ptcw-design/media/nav-active-dotslick.svg +15 -15
  212. package/dist/ptcw-design/media/regular.svg +463 -463
  213. package/dist/ptcw-design/media/solid.svg +3013 -3013
  214. package/dist/ptcw-design/media/svg-with-js.min.css +4 -4
  215. package/dist/ptcw-design/p-20cc9c39.entry.js +1 -0
  216. package/dist/ptcw-design/{p-8bcb2fab.entry.js → p-32b81dde.entry.js} +1 -1
  217. package/dist/ptcw-design/{p-b48a3e6f.entry.js → p-45c0076d.entry.js} +1 -1
  218. package/dist/ptcw-design/p-5f20876d.entry.js +1 -0
  219. package/dist/ptcw-design/{p-fa17a02e.entry.js → p-8d210676.entry.js} +1 -1
  220. package/dist/ptcw-design/p-9962aa65.entry.js +1 -0
  221. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  222. package/dist/types/components/dropdown-item/dropdown-item.d.ts +5 -5
  223. package/dist/types/components/icon-asset/icon-asset.d.ts +40 -40
  224. package/dist/types/components/list-item/list-item.d.ts +8 -8
  225. package/dist/types/components/max-width-container/max-width-container.d.ts +9 -9
  226. package/dist/types/components/my-component/my-component.d.ts +16 -16
  227. package/dist/types/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.d.ts +59 -59
  228. package/dist/types/components/ptc-accordion/ptc-accordion.d.ts +13 -13
  229. package/dist/types/components/ptc-announcement/ptc-announcement.d.ts +51 -51
  230. package/dist/types/components/ptc-background-video/ptc-background-video.d.ts +26 -26
  231. package/dist/types/components/ptc-breadcrumb/ptc-breadcrumb.d.ts +4 -4
  232. package/dist/types/components/ptc-button/ptc-button.d.ts +60 -60
  233. package/dist/types/components/ptc-card/ptc-card.d.ts +67 -67
  234. package/dist/types/components/ptc-card-bottom/ptc-card-bottom.d.ts +15 -15
  235. package/dist/types/components/ptc-card-content/ptc-card-content.d.ts +18 -18
  236. package/dist/types/components/ptc-card-wrapper/ptc-card-wrapper.d.ts +23 -23
  237. package/dist/types/components/ptc-checkbox/ptc-checkbox.d.ts +11 -11
  238. package/dist/types/components/ptc-collapse-list/ptc-collapse-list.d.ts +56 -56
  239. package/dist/types/components/ptc-container/ptc-container.d.ts +12 -12
  240. package/dist/types/components/ptc-date/ptc-date.d.ts +41 -41
  241. package/dist/types/components/ptc-dropdown/ptc-dropdown.d.ts +19 -19
  242. package/dist/types/components/ptc-dynamic-card/ptc-dynamic-card.d.ts +24 -24
  243. package/dist/types/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.d.ts +12 -12
  244. package/dist/types/components/ptc-filter-tag/ptc-filter-tag.d.ts +17 -17
  245. package/dist/types/components/ptc-hero/ptc-hero.d.ts +16 -16
  246. package/dist/types/components/ptc-hero-footer-cta/ptc-hero-footer-cta.d.ts +6 -6
  247. package/dist/types/components/ptc-icon-list/ptc-icon-list.d.ts +21 -21
  248. package/dist/types/components/ptc-icon-minimize/ptc-icon-minimize.d.ts +9 -9
  249. package/dist/types/components/ptc-img/ptc-img.d.ts +51 -51
  250. package/dist/types/components/ptc-link/ptc-link.d.ts +40 -40
  251. package/dist/types/components/ptc-list/ptc-list.d.ts +8 -8
  252. package/dist/types/components/ptc-lottie/ptc-lottie.d.ts +12 -12
  253. package/dist/types/components/ptc-media-card/ptc-media-card.d.ts +45 -45
  254. package/dist/types/components/ptc-minimized-footer/ptc-minimized-footer.d.ts +3 -3
  255. package/dist/types/components/ptc-minimized-header/ptc-minimized-header.d.ts +6 -6
  256. package/dist/types/components/ptc-mobile-select/ptc-mobile-select.d.ts +36 -36
  257. package/dist/types/components/ptc-modal/ptc-modal.d.ts +59 -59
  258. package/dist/types/components/ptc-overlay/ptc-overlay.d.ts +21 -21
  259. package/dist/types/components/ptc-pagenation/ptc-pagenation.d.ts +27 -27
  260. package/dist/types/components/ptc-para/ptc-para.d.ts +43 -43
  261. package/dist/types/components/ptc-picture/ptc-picture.d.ts +93 -93
  262. package/dist/types/components/ptc-previous-url/ptc-previous-url.d.ts +5 -5
  263. package/dist/types/components/ptc-pricing-block/ptc-pricing-block.d.ts +7 -7
  264. package/dist/types/components/ptc-pricing-options-component/ptc-pricing-options-component.d.ts +6 -6
  265. package/dist/types/components/ptc-quote/ptc-quote.d.ts +29 -29
  266. package/dist/types/components/ptc-readmore/ptc-readmore.d.ts +56 -56
  267. package/dist/types/components/ptc-responsive-wrapper/ptc-responsive-wrapper.d.ts +8 -8
  268. package/dist/types/components/ptc-search-field/ptc-search-field.d.ts +12 -10
  269. package/dist/types/components/ptc-shopping-cart/ptc-shopping-cart.d.ts +6 -6
  270. package/dist/types/components/ptc-social-share/ptc-social-share.d.ts +33 -33
  271. package/dist/types/components/ptc-spacer/ptc-spacer.d.ts +16 -16
  272. package/dist/types/components/ptc-span/ptc-span.d.ts +16 -16
  273. package/dist/types/components/ptc-sticky-icons/ptc-sticky-icons.d.ts +7 -7
  274. package/dist/types/components/ptc-svg-btn/ptc-svg-btn.d.ts +12 -12
  275. package/dist/types/components/ptc-tab-list/ptc-tab-list.d.ts +19 -19
  276. package/dist/types/components/ptc-tabs/ptc-tab.d.ts +9 -9
  277. package/dist/types/components/ptc-tabs/ptc-tabs.d.ts +10 -10
  278. package/dist/types/components/ptc-text-copy-with-background/ptc-text-copy-with-background.d.ts +33 -33
  279. package/dist/types/components/ptc-title/ptc-title.d.ts +54 -54
  280. package/dist/types/components/ptc-tooltip/ptc-tooltip.d.ts +42 -42
  281. package/dist/types/components/ptc-two-column-media/ptc-two-column-media.d.ts +9 -9
  282. package/dist/types/components/tab-content/tab-content.d.ts +12 -12
  283. package/dist/types/components/tab-header/tab-header.d.ts +14 -14
  284. package/dist/types/components.d.ts +112 -112
  285. package/dist/types/global.d.ts +1072 -1072
  286. package/dist/types/index.d.ts +1 -1
  287. package/dist/types/utils/component.d.ts +1 -1
  288. package/dist/types/utils/interfaces.d.ts +31 -31
  289. package/dist/types/utils/utils.d.ts +5 -5
  290. package/package.json +61 -61
  291. package/readme.md +18 -18
  292. package/dist/ptcw-design/p-573574f7.entry.js +0 -1
  293. package/dist/ptcw-design/p-a7f07147.entry.js +0 -1
  294. package/dist/ptcw-design/p-c2275f57.entry.js +0 -1
  295. /package/dist/ptcw-design/{p-36665caa.js → p-ea875d9e.js} +0 -0
@@ -1,193 +1,197 @@
1
- import { Host, h } from '@stencil/core';
2
- export class PtcCardPlm {
3
- constructor() {
4
- this.cardType = undefined;
5
- this.cardLink = undefined;
6
- this.linkTitle = undefined;
7
- this.linkTarget = '_self';
8
- }
9
- /** Internal Screen Size State */
10
- // @State() mql: MediaQueryList;
11
- handleResize() {
12
- this.checkScreenSize();
13
- }
14
- hoverEventHandler() {
15
- if (this.el.classList.contains('extra-tall')) {
16
- this.hoverEvent.emit();
17
- this.el.classList.add('extraT-overlay');
18
- }
19
- if (this.el.classList.contains('color-outlined')) {
20
- this.hoverEvent.emit();
21
- const cardOverlay = this.el.querySelector('ptc-overlay');
22
- cardOverlay.setOverlay('black-5');
23
- }
24
- }
25
- leaveEventHandler() {
26
- if (this.el.classList.contains('extra-tall')) {
27
- this.hoverEvent.emit();
28
- this.el.classList.remove('extraT-overlay');
29
- }
30
- if (this.el.classList.contains('color-outlined')) {
31
- this.hoverEvent.emit();
32
- const cardOverlay = this.el.querySelector('ptc-overlay');
33
- cardOverlay.setOverlay('black-4');
34
- }
35
- }
36
- componentDidLoad() {
37
- this.checkScreenSize();
38
- }
39
- render() {
40
- const classMap = this.getCssClassMap();
41
- const Tag = !!this.cardLink ? 'a' : 'div';
42
- return (h(Host, { class: classMap, onMouseEnter: this.hoverEventHandler.bind(this), onMouseLeave: this.leaveEventHandler.bind(this) }, h(Tag, Object.assign({}, (!!this.cardLink ? { href: this.cardLink } : {}), (!!this.linkTarget && !!this.cardLink ? { target: this.linkTarget } : {}), (!!this.cardLink ? { title: this.linkTitle ? this.linkTitle : this.cardLink } : {})), h("slot", null))));
43
- }
44
- getCssClassMap() {
45
- return {
46
- [this.cardType]: this.cardType ? true : false,
47
- };
48
- }
49
- getBtmContentHeight() {
50
- const bottomContent = this.el.querySelector('ptc-card-bottom');
51
- return bottomContent.offsetHeight;
52
- }
53
- checkScreenSize() {
54
- if (window.innerWidth < 768) {
55
- if (this.cardType === 'extra-tall') {
56
- const cardContent = this.el.querySelector('ptc-card-content');
57
- cardContent.setHeight(this.getBtmContentHeight());
58
- }
59
- }
60
- else {
61
- const cardContent = this.el.querySelector('ptc-card-content');
62
- cardContent.removeInlineHeight();
63
- }
64
- }
65
- static get is() { return "ptc-card-wrapper"; }
66
- static get encapsulation() { return "shadow"; }
67
- static get originalStyleUrls() {
68
- return {
69
- "$": ["ptc-card-wrapper.scss"]
70
- };
71
- }
72
- static get styleUrls() {
73
- return {
74
- "$": ["ptc-card-wrapper.css"]
75
- };
76
- }
77
- static get properties() {
78
- return {
79
- "cardType": {
80
- "type": "string",
81
- "mutable": false,
82
- "complexType": {
83
- "original": "'card-video' | 'card-tall' | 'card-wide' | 'speed-bump' | 'card-playlist' | 'card-video-intro' | 'card-2up' | 'extra-tall' | 'color-outlined'",
84
- "resolved": "\"card-2up\" | \"card-playlist\" | \"card-tall\" | \"card-video\" | \"card-video-intro\" | \"card-wide\" | \"color-outlined\" | \"extra-tall\" | \"speed-bump\"",
85
- "references": {}
86
- },
87
- "required": false,
88
- "optional": false,
89
- "docs": {
90
- "tags": [],
91
- "text": "Card Type"
92
- },
93
- "attribute": "card-type",
94
- "reflect": false
95
- },
96
- "cardLink": {
97
- "type": "string",
98
- "mutable": false,
99
- "complexType": {
100
- "original": "string",
101
- "resolved": "string",
102
- "references": {}
103
- },
104
- "required": false,
105
- "optional": false,
106
- "docs": {
107
- "tags": [],
108
- "text": "Card link"
109
- },
110
- "attribute": "card-link",
111
- "reflect": false
112
- },
113
- "linkTitle": {
114
- "type": "string",
115
- "mutable": false,
116
- "complexType": {
117
- "original": "string",
118
- "resolved": "string",
119
- "references": {}
120
- },
121
- "required": false,
122
- "optional": true,
123
- "docs": {
124
- "tags": [],
125
- "text": "link Title"
126
- },
127
- "attribute": "link-title",
128
- "reflect": false
129
- },
130
- "linkTarget": {
131
- "type": "string",
132
- "mutable": false,
133
- "complexType": {
134
- "original": "string",
135
- "resolved": "string",
136
- "references": {}
137
- },
138
- "required": false,
139
- "optional": true,
140
- "docs": {
141
- "tags": [],
142
- "text": "link Target"
143
- },
144
- "attribute": "link-target",
145
- "reflect": false,
146
- "defaultValue": "'_self'"
147
- }
148
- };
149
- }
150
- static get events() {
151
- return [{
152
- "method": "hoverEvent",
153
- "name": "hoverEvent",
154
- "bubbles": true,
155
- "cancelable": true,
156
- "composed": true,
157
- "docs": {
158
- "tags": [],
159
- "text": ""
160
- },
161
- "complexType": {
162
- "original": "void",
163
- "resolved": "void",
164
- "references": {}
165
- }
166
- }, {
167
- "method": "leaveEvent",
168
- "name": "leaveEvent",
169
- "bubbles": true,
170
- "cancelable": true,
171
- "composed": true,
172
- "docs": {
173
- "tags": [],
174
- "text": ""
175
- },
176
- "complexType": {
177
- "original": "void",
178
- "resolved": "void",
179
- "references": {}
180
- }
181
- }];
182
- }
183
- static get elementRef() { return "el"; }
184
- static get listeners() {
185
- return [{
186
- "name": "resize",
187
- "method": "handleResize",
188
- "target": "window",
189
- "capture": false,
190
- "passive": true
191
- }];
192
- }
193
- }
1
+ import { Host, h } from '@stencil/core';
2
+ export class PtcCardPlm {
3
+ constructor() {
4
+ this.cardType = undefined;
5
+ this.cardLink = undefined;
6
+ this.linkTitle = undefined;
7
+ this.linkTarget = '_self';
8
+ }
9
+ /** Internal Screen Size State */
10
+ // @State() mql: MediaQueryList;
11
+ handleResize() {
12
+ this.checkScreenSize();
13
+ }
14
+ hoverEventHandler() {
15
+ if (this.el.classList.contains('extra-tall')) {
16
+ this.hoverEvent.emit();
17
+ this.el.classList.add('extraT-overlay');
18
+ }
19
+ if (this.el.classList.contains('color-outlined')) {
20
+ this.hoverEvent.emit();
21
+ const cardOverlay = this.el.querySelector('ptc-overlay');
22
+ cardOverlay.setOverlay('black-5');
23
+ }
24
+ }
25
+ leaveEventHandler() {
26
+ if (this.el.classList.contains('extra-tall')) {
27
+ this.hoverEvent.emit();
28
+ this.el.classList.remove('extraT-overlay');
29
+ }
30
+ if (this.el.classList.contains('color-outlined')) {
31
+ this.hoverEvent.emit();
32
+ const cardOverlay = this.el.querySelector('ptc-overlay');
33
+ cardOverlay.setOverlay('black-4');
34
+ }
35
+ }
36
+ componentDidLoad() {
37
+ this.checkScreenSize();
38
+ }
39
+ render() {
40
+ const classMap = this.getCssClassMap();
41
+ const Tag = !!this.cardLink ? 'a' : 'div';
42
+ return (h(Host, { class: classMap, onMouseEnter: this.hoverEventHandler.bind(this), onMouseLeave: this.leaveEventHandler.bind(this) }, h(Tag, Object.assign({}, (!!this.cardLink ? { href: this.cardLink } : {}), (!!this.linkTarget && !!this.cardLink ? { target: this.linkTarget } : {}), (!!this.cardLink ? { title: this.linkTitle ? this.linkTitle : this.cardLink } : {})), h("slot", null))));
43
+ }
44
+ getCssClassMap() {
45
+ return {
46
+ [this.cardType]: this.cardType ? true : false,
47
+ };
48
+ }
49
+ getBtmContentHeight() {
50
+ const bottomContent = this.el.querySelector('ptc-card-bottom');
51
+ return bottomContent.offsetHeight;
52
+ }
53
+ checkScreenSize() {
54
+ if (window.innerWidth < 768) {
55
+ if (this.cardType === 'extra-tall') {
56
+ const cardContent = this.el.querySelector('ptc-card-content');
57
+ if (cardContent) {
58
+ cardContent.setHeight(this.getBtmContentHeight());
59
+ }
60
+ }
61
+ }
62
+ else {
63
+ const cardContent = this.el.querySelector('ptc-card-content');
64
+ if (cardContent) {
65
+ cardContent.removeInlineHeight();
66
+ }
67
+ }
68
+ }
69
+ static get is() { return "ptc-card-wrapper"; }
70
+ static get encapsulation() { return "shadow"; }
71
+ static get originalStyleUrls() {
72
+ return {
73
+ "$": ["ptc-card-wrapper.scss"]
74
+ };
75
+ }
76
+ static get styleUrls() {
77
+ return {
78
+ "$": ["ptc-card-wrapper.css"]
79
+ };
80
+ }
81
+ static get properties() {
82
+ return {
83
+ "cardType": {
84
+ "type": "string",
85
+ "mutable": false,
86
+ "complexType": {
87
+ "original": "'card-video' | 'card-tall' | 'card-wide' | 'speed-bump' | 'card-playlist' | 'card-video-intro' | 'card-2up' | 'extra-tall' | 'color-outlined'",
88
+ "resolved": "\"card-2up\" | \"card-playlist\" | \"card-tall\" | \"card-video\" | \"card-video-intro\" | \"card-wide\" | \"color-outlined\" | \"extra-tall\" | \"speed-bump\"",
89
+ "references": {}
90
+ },
91
+ "required": false,
92
+ "optional": false,
93
+ "docs": {
94
+ "tags": [],
95
+ "text": "Card Type"
96
+ },
97
+ "attribute": "card-type",
98
+ "reflect": false
99
+ },
100
+ "cardLink": {
101
+ "type": "string",
102
+ "mutable": false,
103
+ "complexType": {
104
+ "original": "string",
105
+ "resolved": "string",
106
+ "references": {}
107
+ },
108
+ "required": false,
109
+ "optional": false,
110
+ "docs": {
111
+ "tags": [],
112
+ "text": "Card link"
113
+ },
114
+ "attribute": "card-link",
115
+ "reflect": false
116
+ },
117
+ "linkTitle": {
118
+ "type": "string",
119
+ "mutable": false,
120
+ "complexType": {
121
+ "original": "string",
122
+ "resolved": "string",
123
+ "references": {}
124
+ },
125
+ "required": false,
126
+ "optional": true,
127
+ "docs": {
128
+ "tags": [],
129
+ "text": "link Title"
130
+ },
131
+ "attribute": "link-title",
132
+ "reflect": false
133
+ },
134
+ "linkTarget": {
135
+ "type": "string",
136
+ "mutable": false,
137
+ "complexType": {
138
+ "original": "string",
139
+ "resolved": "string",
140
+ "references": {}
141
+ },
142
+ "required": false,
143
+ "optional": true,
144
+ "docs": {
145
+ "tags": [],
146
+ "text": "link Target"
147
+ },
148
+ "attribute": "link-target",
149
+ "reflect": false,
150
+ "defaultValue": "'_self'"
151
+ }
152
+ };
153
+ }
154
+ static get events() {
155
+ return [{
156
+ "method": "hoverEvent",
157
+ "name": "hoverEvent",
158
+ "bubbles": true,
159
+ "cancelable": true,
160
+ "composed": true,
161
+ "docs": {
162
+ "tags": [],
163
+ "text": ""
164
+ },
165
+ "complexType": {
166
+ "original": "void",
167
+ "resolved": "void",
168
+ "references": {}
169
+ }
170
+ }, {
171
+ "method": "leaveEvent",
172
+ "name": "leaveEvent",
173
+ "bubbles": true,
174
+ "cancelable": true,
175
+ "composed": true,
176
+ "docs": {
177
+ "tags": [],
178
+ "text": ""
179
+ },
180
+ "complexType": {
181
+ "original": "void",
182
+ "resolved": "void",
183
+ "references": {}
184
+ }
185
+ }];
186
+ }
187
+ static get elementRef() { return "el"; }
188
+ static get listeners() {
189
+ return [{
190
+ "name": "resize",
191
+ "method": "handleResize",
192
+ "target": "window",
193
+ "capture": false,
194
+ "passive": true
195
+ }];
196
+ }
197
+ }
@@ -1,118 +1,118 @@
1
- import { h, Host } from '@stencil/core';
2
- export class PtcCheckbox {
3
- constructor() {
4
- this.handleClick = (e) => {
5
- let input = this.host.shadowRoot.querySelector('input');
6
- if (this.checked == 'unchecked') {
7
- this.checked = 'checked';
8
- }
9
- else {
10
- this.checked = 'unchecked';
11
- }
12
- let parameter = {
13
- event: e,
14
- sender: input,
15
- value: this.value,
16
- checked: this.checked
17
- };
18
- this.checkedChanged.emit(parameter);
19
- };
20
- this.checked = 'unchecked';
21
- this.value = undefined;
22
- this.inputName = undefined;
23
- }
24
- componentDidLoad() {
25
- let input = this.host.shadowRoot.querySelector('input');
26
- input.checked = this.checked == 'checked';
27
- }
28
- render() {
29
- return (h(Host, null, h("label", { class: "ptc-checkbox" }, h("slot", null), h("input", { type: "checkbox", checked: this.checked == "checked", name: this.inputName, value: this.value, onChange: (e) => this.handleClick(e) }), h("span", { class: "check" }, h("span", { class: "mark" }, h("icon-asset", { type: "ptc", color: "white", size: "xx-small", name: "checkmark" }))))));
30
- }
31
- static get is() { return "ptc-checkbox"; }
32
- static get encapsulation() { return "shadow"; }
33
- static get originalStyleUrls() {
34
- return {
35
- "$": ["ptc-checkbox.scss"]
36
- };
37
- }
38
- static get styleUrls() {
39
- return {
40
- "$": ["ptc-checkbox.css"]
41
- };
42
- }
43
- static get properties() {
44
- return {
45
- "checked": {
46
- "type": "string",
47
- "mutable": true,
48
- "complexType": {
49
- "original": "'checked' | 'unchecked'",
50
- "resolved": "\"checked\" | \"unchecked\"",
51
- "references": {}
52
- },
53
- "required": false,
54
- "optional": false,
55
- "docs": {
56
- "tags": [],
57
- "text": ""
58
- },
59
- "attribute": "checked",
60
- "reflect": false,
61
- "defaultValue": "'unchecked'"
62
- },
63
- "value": {
64
- "type": "string",
65
- "mutable": true,
66
- "complexType": {
67
- "original": "string",
68
- "resolved": "string",
69
- "references": {}
70
- },
71
- "required": false,
72
- "optional": false,
73
- "docs": {
74
- "tags": [],
75
- "text": ""
76
- },
77
- "attribute": "value",
78
- "reflect": false
79
- },
80
- "inputName": {
81
- "type": "string",
82
- "mutable": false,
83
- "complexType": {
84
- "original": "string",
85
- "resolved": "string",
86
- "references": {}
87
- },
88
- "required": false,
89
- "optional": false,
90
- "docs": {
91
- "tags": [],
92
- "text": ""
93
- },
94
- "attribute": "input-name",
95
- "reflect": false
96
- }
97
- };
98
- }
99
- static get events() {
100
- return [{
101
- "method": "checkedChanged",
102
- "name": "checkedChanged",
103
- "bubbles": true,
104
- "cancelable": true,
105
- "composed": true,
106
- "docs": {
107
- "tags": [],
108
- "text": ""
109
- },
110
- "complexType": {
111
- "original": "any",
112
- "resolved": "any",
113
- "references": {}
114
- }
115
- }];
116
- }
117
- static get elementRef() { return "host"; }
118
- }
1
+ import { h, Host } from '@stencil/core';
2
+ export class PtcCheckbox {
3
+ constructor() {
4
+ this.handleClick = (e) => {
5
+ let input = this.host.shadowRoot.querySelector('input');
6
+ if (this.checked == 'unchecked') {
7
+ this.checked = 'checked';
8
+ }
9
+ else {
10
+ this.checked = 'unchecked';
11
+ }
12
+ let parameter = {
13
+ event: e,
14
+ sender: input,
15
+ value: this.value,
16
+ checked: this.checked
17
+ };
18
+ this.checkedChanged.emit(parameter);
19
+ };
20
+ this.checked = 'unchecked';
21
+ this.value = undefined;
22
+ this.inputName = undefined;
23
+ }
24
+ componentDidLoad() {
25
+ let input = this.host.shadowRoot.querySelector('input');
26
+ input.checked = this.checked == 'checked';
27
+ }
28
+ render() {
29
+ return (h(Host, null, h("label", { class: "ptc-checkbox" }, h("slot", null), h("input", { type: "checkbox", checked: this.checked == "checked", name: this.inputName, value: this.value, onChange: (e) => this.handleClick(e) }), h("span", { class: "check" }, h("span", { class: "mark" }, h("icon-asset", { type: "ptc", color: "white", size: "xx-small", name: "checkmark" }))))));
30
+ }
31
+ static get is() { return "ptc-checkbox"; }
32
+ static get encapsulation() { return "shadow"; }
33
+ static get originalStyleUrls() {
34
+ return {
35
+ "$": ["ptc-checkbox.scss"]
36
+ };
37
+ }
38
+ static get styleUrls() {
39
+ return {
40
+ "$": ["ptc-checkbox.css"]
41
+ };
42
+ }
43
+ static get properties() {
44
+ return {
45
+ "checked": {
46
+ "type": "string",
47
+ "mutable": true,
48
+ "complexType": {
49
+ "original": "'checked' | 'unchecked'",
50
+ "resolved": "\"checked\" | \"unchecked\"",
51
+ "references": {}
52
+ },
53
+ "required": false,
54
+ "optional": false,
55
+ "docs": {
56
+ "tags": [],
57
+ "text": ""
58
+ },
59
+ "attribute": "checked",
60
+ "reflect": false,
61
+ "defaultValue": "'unchecked'"
62
+ },
63
+ "value": {
64
+ "type": "string",
65
+ "mutable": true,
66
+ "complexType": {
67
+ "original": "string",
68
+ "resolved": "string",
69
+ "references": {}
70
+ },
71
+ "required": false,
72
+ "optional": false,
73
+ "docs": {
74
+ "tags": [],
75
+ "text": ""
76
+ },
77
+ "attribute": "value",
78
+ "reflect": false
79
+ },
80
+ "inputName": {
81
+ "type": "string",
82
+ "mutable": false,
83
+ "complexType": {
84
+ "original": "string",
85
+ "resolved": "string",
86
+ "references": {}
87
+ },
88
+ "required": false,
89
+ "optional": false,
90
+ "docs": {
91
+ "tags": [],
92
+ "text": ""
93
+ },
94
+ "attribute": "input-name",
95
+ "reflect": false
96
+ }
97
+ };
98
+ }
99
+ static get events() {
100
+ return [{
101
+ "method": "checkedChanged",
102
+ "name": "checkedChanged",
103
+ "bubbles": true,
104
+ "cancelable": true,
105
+ "composed": true,
106
+ "docs": {
107
+ "tags": [],
108
+ "text": ""
109
+ },
110
+ "complexType": {
111
+ "original": "any",
112
+ "resolved": "any",
113
+ "references": {}
114
+ }
115
+ }];
116
+ }
117
+ static get elementRef() { return "host"; }
118
+ }