@ptcwebops/ptcw-design 0.8.4 → 0.8.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/dist/cjs/dropdown-item.cjs.entry.js +1 -1
  2. package/dist/cjs/icon-asset.cjs.entry.js +2 -2
  3. package/dist/cjs/{index-8745a0a3.js → index-c27e52b2.js} +39 -1
  4. package/dist/cjs/list-item.cjs.entry.js +1 -1
  5. package/dist/cjs/loader.cjs.js +4 -3
  6. package/dist/cjs/lottie-player.cjs.entry.js +16369 -13058
  7. package/dist/cjs/max-width-container.cjs.entry.js +40 -0
  8. package/dist/cjs/my-component.cjs.entry.js +1 -1
  9. package/dist/cjs/ptc-accordion-item.cjs.entry.js +1 -1
  10. package/dist/cjs/ptc-accordion.cjs.entry.js +1 -1
  11. package/dist/cjs/ptc-announcement.cjs.entry.js +1 -2
  12. package/dist/cjs/ptc-breadcrumb.cjs.entry.js +1 -1
  13. package/dist/cjs/ptc-button.cjs.entry.js +1 -2
  14. package/dist/cjs/ptc-card-bottom.cjs.entry.js +2 -2
  15. package/dist/cjs/ptc-card-content.cjs.entry.js +12 -2
  16. package/dist/cjs/ptc-card-wrapper.cjs.entry.js +35 -2
  17. package/dist/cjs/ptc-card_6.cjs.entry.js +2 -15
  18. package/dist/cjs/ptc-checkbox.cjs.entry.js +1 -1
  19. package/dist/cjs/ptc-collapse-list.cjs.entry.js +1 -1
  20. package/dist/cjs/ptc-container.cjs.entry.js +1 -1
  21. package/dist/cjs/ptc-dropdown.cjs.entry.js +1 -1
  22. package/dist/cjs/ptc-dynamic-card.cjs.entry.js +1 -2
  23. package/dist/cjs/ptc-ellipsis-dropdown.cjs.entry.js +1 -1
  24. package/dist/cjs/ptc-filter-tag.cjs.entry.js +1 -1
  25. package/dist/cjs/ptc-hero-footer-cta.cjs.entry.js +1 -1
  26. package/dist/cjs/ptc-hero.cjs.entry.js +1 -1
  27. package/dist/cjs/ptc-icon-list.cjs.entry.js +1 -1
  28. package/dist/cjs/ptc-icon-minimize.cjs.entry.js +1 -1
  29. package/dist/cjs/ptc-link.cjs.entry.js +1 -1
  30. package/dist/cjs/ptc-list.cjs.entry.js +1 -2
  31. package/dist/cjs/ptc-lottie.cjs.entry.js +1 -1
  32. package/dist/cjs/ptc-media-card.cjs.entry.js +1 -1
  33. package/dist/cjs/ptc-minimized-footer.cjs.entry.js +1 -1
  34. package/dist/cjs/ptc-minimized-header.cjs.entry.js +1 -1
  35. package/dist/cjs/ptc-mobile-select.cjs.entry.js +422 -717
  36. package/dist/cjs/ptc-modal.cjs.entry.js +1 -1
  37. package/dist/cjs/ptc-overlay.cjs.entry.js +6 -3
  38. package/dist/cjs/ptc-pagenation.cjs.entry.js +1 -1
  39. package/dist/cjs/ptc-previous-url.cjs.entry.js +1 -1
  40. package/dist/cjs/ptc-pricing-block.cjs.entry.js +1 -1
  41. package/dist/cjs/ptc-quote.cjs.entry.js +1 -1
  42. package/dist/cjs/ptc-readmore_2.cjs.entry.js +51 -7
  43. package/dist/cjs/ptc-responsive-wrapper.cjs.entry.js +1 -1
  44. package/dist/cjs/ptc-shopping-cart.cjs.entry.js +1 -1
  45. package/dist/cjs/ptc-social-share.cjs.entry.js +1 -1
  46. package/dist/cjs/ptc-span.cjs.entry.js +1 -1
  47. package/dist/cjs/ptc-sticky-icons.cjs.entry.js +1 -1
  48. package/dist/cjs/ptc-svg-btn.cjs.entry.js +1 -1
  49. package/dist/cjs/ptc-tab-list.cjs.entry.js +1 -1
  50. package/dist/cjs/ptc-text-copy-with-background.cjs.entry.js +9 -4
  51. package/dist/cjs/ptc-title.cjs.entry.js +6 -4
  52. package/dist/cjs/ptc-two-column-media.cjs.entry.js +1 -1
  53. package/dist/cjs/ptcw-design.cjs.js +7 -3
  54. package/dist/cjs/tab-content.cjs.entry.js +1 -1
  55. package/dist/cjs/tab-header.cjs.entry.js +1 -1
  56. package/dist/collection/collection-manifest.json +3 -2
  57. package/dist/collection/components/icon-asset/icon-asset.css +2 -2
  58. package/dist/collection/components/max-width-container/max-width-container.css +7 -0
  59. package/dist/collection/components/max-width-container/max-width-container.js +80 -0
  60. package/dist/collection/components/ptc-announcement/ptc-announcement.js +0 -1
  61. package/dist/collection/components/ptc-button/ptc-button.js +0 -1
  62. package/dist/collection/components/ptc-card/ptc-card.css +1 -1
  63. package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.css +6 -1
  64. package/dist/collection/components/ptc-card-content/ptc-card-content.css +10 -2
  65. package/dist/collection/components/ptc-card-content/ptc-card-content.js +49 -0
  66. package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.js +43 -1
  67. package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.js +0 -1
  68. package/dist/collection/components/ptc-img/ptc-img.js +0 -3
  69. package/dist/collection/components/ptc-list/ptc-list.js +0 -1
  70. package/dist/collection/components/ptc-mobile-select/ptc-mobile-select.css +41 -32
  71. package/dist/collection/components/ptc-overlay/ptc-overlay.css +4 -0
  72. package/dist/collection/components/ptc-overlay/ptc-overlay.js +29 -3
  73. package/dist/collection/components/ptc-para/ptc-para.js +0 -8
  74. package/dist/collection/components/ptc-picture/ptc-picture.js +0 -2
  75. package/dist/collection/components/ptc-readmore/ptc-readmore.css +58 -3
  76. package/dist/collection/components/ptc-readmore/ptc-readmore.js +153 -5
  77. package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.css +153 -2
  78. package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.js +45 -4
  79. package/dist/collection/components/ptc-title/ptc-title.css +15 -9
  80. package/dist/collection/components/ptc-title/ptc-title.js +24 -5
  81. package/dist/collection/components/ptc-tooltip/ptc-tooltip.css +10 -0
  82. package/dist/collection/components/ptc-tooltip/ptc-tooltip.js +54 -3
  83. package/dist/custom-elements/index.d.ts +6 -0
  84. package/dist/custom-elements/index.js +17095 -13974
  85. package/dist/esm/dropdown-item.entry.js +1 -1
  86. package/dist/esm/icon-asset.entry.js +2 -2
  87. package/dist/esm/{index-0c73b51e.js → index-40bc29fc.js} +39 -2
  88. package/dist/esm/list-item.entry.js +1 -1
  89. package/dist/esm/loader.js +4 -3
  90. package/dist/esm/lottie-player.entry.js +16369 -13058
  91. package/dist/esm/max-width-container.entry.js +36 -0
  92. package/dist/esm/my-component.entry.js +1 -1
  93. package/dist/esm/polyfills/css-shim.js +1 -1
  94. package/dist/esm/ptc-accordion-item.entry.js +1 -1
  95. package/dist/esm/ptc-accordion.entry.js +1 -1
  96. package/dist/esm/ptc-announcement.entry.js +1 -2
  97. package/dist/esm/ptc-breadcrumb.entry.js +1 -1
  98. package/dist/esm/ptc-button.entry.js +1 -2
  99. package/dist/esm/ptc-card-bottom.entry.js +2 -2
  100. package/dist/esm/ptc-card-content.entry.js +12 -2
  101. package/dist/esm/ptc-card-wrapper.entry.js +35 -2
  102. package/dist/esm/ptc-card_6.entry.js +2 -15
  103. package/dist/esm/ptc-checkbox.entry.js +1 -1
  104. package/dist/esm/ptc-collapse-list.entry.js +1 -1
  105. package/dist/esm/ptc-container.entry.js +1 -1
  106. package/dist/esm/ptc-dropdown.entry.js +1 -1
  107. package/dist/esm/ptc-dynamic-card.entry.js +1 -2
  108. package/dist/esm/ptc-ellipsis-dropdown.entry.js +1 -1
  109. package/dist/esm/ptc-filter-tag.entry.js +1 -1
  110. package/dist/esm/ptc-hero-footer-cta.entry.js +1 -1
  111. package/dist/esm/ptc-hero.entry.js +1 -1
  112. package/dist/esm/ptc-icon-list.entry.js +1 -1
  113. package/dist/esm/ptc-icon-minimize.entry.js +1 -1
  114. package/dist/esm/ptc-link.entry.js +1 -1
  115. package/dist/esm/ptc-list.entry.js +1 -2
  116. package/dist/esm/ptc-lottie.entry.js +1 -1
  117. package/dist/esm/ptc-media-card.entry.js +1 -1
  118. package/dist/esm/ptc-minimized-footer.entry.js +1 -1
  119. package/dist/esm/ptc-minimized-header.entry.js +1 -1
  120. package/dist/esm/ptc-mobile-select.entry.js +423 -718
  121. package/dist/esm/ptc-modal.entry.js +1 -1
  122. package/dist/esm/ptc-overlay.entry.js +6 -3
  123. package/dist/esm/ptc-pagenation.entry.js +1 -1
  124. package/dist/esm/ptc-previous-url.entry.js +1 -1
  125. package/dist/esm/ptc-pricing-block.entry.js +1 -1
  126. package/dist/esm/ptc-quote.entry.js +1 -1
  127. package/dist/esm/ptc-readmore_2.entry.js +51 -7
  128. package/dist/esm/ptc-responsive-wrapper.entry.js +1 -1
  129. package/dist/esm/ptc-shopping-cart.entry.js +1 -1
  130. package/dist/esm/ptc-social-share.entry.js +1 -1
  131. package/dist/esm/ptc-span.entry.js +1 -1
  132. package/dist/esm/ptc-sticky-icons.entry.js +1 -1
  133. package/dist/esm/ptc-svg-btn.entry.js +1 -1
  134. package/dist/esm/ptc-tab-list.entry.js +1 -1
  135. package/dist/esm/ptc-text-copy-with-background.entry.js +9 -4
  136. package/dist/esm/ptc-title.entry.js +6 -4
  137. package/dist/esm/ptc-two-column-media.entry.js +1 -1
  138. package/dist/esm/ptcw-design.js +4 -3
  139. package/dist/esm/tab-content.entry.js +1 -1
  140. package/dist/esm/tab-header.entry.js +1 -1
  141. package/dist/ptcw-design/{p-1964f1f4.entry.js → p-001a0b9f.entry.js} +1 -1
  142. package/dist/ptcw-design/{p-14d6a40c.entry.js → p-0099616c.entry.js} +1 -1
  143. package/dist/ptcw-design/{p-2bd6743a.entry.js → p-013f5355.entry.js} +1 -1
  144. package/dist/ptcw-design/p-048502c2.entry.js +1 -0
  145. package/dist/ptcw-design/{p-f2cb8bc4.entry.js → p-049964f4.entry.js} +1 -1
  146. package/dist/ptcw-design/{p-c4e20f99.entry.js → p-0f937cff.entry.js} +1 -1
  147. package/dist/ptcw-design/{p-8637cefc.entry.js → p-13b0d8c3.entry.js} +1 -1
  148. package/dist/ptcw-design/{p-e6ce8733.entry.js → p-159d9a80.entry.js} +1 -1
  149. package/dist/ptcw-design/{p-97e00dfa.entry.js → p-1def8f3c.entry.js} +1 -1
  150. package/dist/ptcw-design/{p-29f3c478.entry.js → p-1e92301d.entry.js} +1 -1
  151. package/dist/ptcw-design/p-2ac518f1.entry.js +1 -0
  152. package/dist/ptcw-design/{p-8bb41e7c.entry.js → p-2cc97b88.entry.js} +1 -1
  153. package/dist/ptcw-design/{p-2aeb4687.entry.js → p-2de0f980.entry.js} +1 -1
  154. package/dist/ptcw-design/{p-d56b953e.entry.js → p-2eb5ef88.entry.js} +1 -1
  155. package/dist/ptcw-design/{p-82fc0608.entry.js → p-30007bf3.entry.js} +1 -1
  156. package/dist/ptcw-design/{p-82472007.entry.js → p-31fbba12.entry.js} +1 -1
  157. package/dist/ptcw-design/{p-e75dc9f4.entry.js → p-31ffd030.entry.js} +1 -1
  158. package/dist/ptcw-design/{p-adcc9906.entry.js → p-329cc205.entry.js} +1 -1
  159. package/dist/ptcw-design/{p-4da43d5f.entry.js → p-34db9e46.entry.js} +1 -1
  160. package/dist/ptcw-design/p-446df289.entry.js +1 -0
  161. package/dist/ptcw-design/p-450e9eb0.entry.js +1 -0
  162. package/dist/ptcw-design/p-4fbef630.entry.js +1 -0
  163. package/dist/ptcw-design/{p-6131b9a1.entry.js → p-50c88717.entry.js} +1 -1
  164. package/dist/ptcw-design/{p-5bb7354a.entry.js → p-51db2e2e.entry.js} +1 -1
  165. package/dist/ptcw-design/{p-a749c353.entry.js → p-586d9c9d.entry.js} +1 -1
  166. package/dist/ptcw-design/{p-00c1343b.entry.js → p-5c295f08.entry.js} +1 -1
  167. package/dist/ptcw-design/{p-867c711f.entry.js → p-5dc89a74.entry.js} +1 -1
  168. package/dist/ptcw-design/{p-c3f73953.entry.js → p-62cabff9.entry.js} +1 -1
  169. package/dist/ptcw-design/{p-1b0d15aa.entry.js → p-63fab352.entry.js} +1 -1
  170. package/dist/ptcw-design/{p-6065a1d1.entry.js → p-673121e2.entry.js} +1 -1
  171. package/dist/ptcw-design/p-679be000.entry.js +1 -0
  172. package/dist/ptcw-design/p-67a9ed01.entry.js +1 -0
  173. package/dist/ptcw-design/p-8d48362b.entry.js +1 -0
  174. package/dist/ptcw-design/{p-0aa91ac2.entry.js → p-9024a899.entry.js} +1 -1
  175. package/dist/ptcw-design/p-91512aeb.entry.js +1 -0
  176. package/dist/ptcw-design/{p-3f85b469.entry.js → p-96883fd7.entry.js} +1 -1
  177. package/dist/ptcw-design/p-9fb2ab8c.js +2 -0
  178. package/dist/ptcw-design/p-b4d92914.entry.js +1 -0
  179. package/dist/ptcw-design/p-b721664f.entry.js +1 -0
  180. package/dist/ptcw-design/{p-88e1778e.entry.js → p-bc0181f3.entry.js} +1 -1
  181. package/dist/ptcw-design/p-c2275f57.entry.js +1 -0
  182. package/dist/ptcw-design/{p-a05fe3d0.entry.js → p-c325283e.entry.js} +1 -1
  183. package/dist/ptcw-design/{p-482a8bc9.entry.js → p-c3621686.entry.js} +1 -1
  184. package/dist/ptcw-design/p-c693e1c5.entry.js +1 -0
  185. package/dist/ptcw-design/{p-1aa4d596.entry.js → p-c7247cc9.entry.js} +1 -1
  186. package/dist/ptcw-design/{p-8808ecc8.entry.js → p-ce3627b8.entry.js} +1 -1
  187. package/dist/ptcw-design/{p-e87bc2cd.entry.js → p-d24446b2.entry.js} +1 -1
  188. package/dist/ptcw-design/{p-8bb7da0b.entry.js → p-d625bb90.entry.js} +1 -1
  189. package/dist/ptcw-design/{p-60843852.entry.js → p-dcf0d341.entry.js} +1 -1
  190. package/dist/ptcw-design/{p-c4107b5d.entry.js → p-de6b444f.entry.js} +1 -1
  191. package/dist/ptcw-design/{p-afea5c1f.entry.js → p-e353a8e8.entry.js} +1 -1
  192. package/dist/ptcw-design/{p-36a453d4.entry.js → p-e66a28aa.entry.js} +1 -1
  193. package/dist/ptcw-design/{p-21e27f2b.entry.js → p-fed5edd3.entry.js} +1 -1
  194. package/dist/ptcw-design/ptcw-design.css +1 -1
  195. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  196. package/dist/types/components/max-width-container/max-width-container.d.ts +9 -0
  197. package/dist/types/components/ptc-card-content/ptc-card-content.d.ts +2 -0
  198. package/dist/types/components/ptc-card-wrapper/ptc-card-wrapper.d.ts +5 -0
  199. package/dist/types/components/ptc-overlay/ptc-overlay.d.ts +2 -1
  200. package/dist/types/components/ptc-pagenation/ptc-pagenation.d.ts +1 -1
  201. package/dist/types/components/ptc-readmore/ptc-readmore.d.ts +31 -2
  202. package/dist/types/components/ptc-text-copy-with-background/ptc-text-copy-with-background.d.ts +9 -1
  203. package/dist/types/components/ptc-title/ptc-title.d.ts +7 -3
  204. package/dist/types/components/ptc-tooltip/ptc-tooltip.d.ts +4 -0
  205. package/dist/types/components.d.ts +149 -9
  206. package/dist/types/stencil-public-runtime.d.ts +48 -3
  207. package/dist/types/utils/interfaces.d.ts +2 -2
  208. package/loader/index.d.ts +9 -0
  209. package/package.json +1 -1
  210. package/readme.md +10 -2
  211. package/dist/cjs/_commonjsHelpers-119ffc74.js +0 -17
  212. package/dist/esm/_commonjsHelpers-8b28c6fa.js +0 -15
  213. package/dist/ptcw-design/p-009001dc.js +0 -2
  214. package/dist/ptcw-design/p-0a825561.entry.js +0 -1
  215. package/dist/ptcw-design/p-2ca0340b.entry.js +0 -1
  216. package/dist/ptcw-design/p-2dcea9db.entry.js +0 -1
  217. package/dist/ptcw-design/p-4c1164d8.entry.js +0 -1
  218. package/dist/ptcw-design/p-556dcafb.entry.js +0 -1
  219. package/dist/ptcw-design/p-557e8e2a.entry.js +0 -1
  220. package/dist/ptcw-design/p-67af0abd.entry.js +0 -1
  221. package/dist/ptcw-design/p-ac9c4ba2.entry.js +0 -1
  222. package/dist/ptcw-design/p-b68038b5.js +0 -1
  223. package/dist/ptcw-design/p-c095d100.entry.js +0 -7
  224. package/dist/ptcw-design/p-ca9efc42.entry.js +0 -1
  225. package/dist/ptcw-design/p-cf500bc9.entry.js +0 -1
  226. package/dist/ptcw-design/p-f9694131.entry.js +0 -1
@@ -28,6 +28,9 @@
28
28
  .box .line5 {
29
29
  -webkit-line-clamp: 5;
30
30
  }
31
+ .box .line10 {
32
+ -webkit-line-clamp: 10;
33
+ }
31
34
  .box input ~ label {
32
35
  display: block;
33
36
  position: relative;
@@ -40,7 +43,7 @@
40
43
  text-decoration-line: underline;
41
44
  color: var(--color-blue-07);
42
45
  text-align: right;
43
- transform: translateX(-36px);
46
+ margin-right: var(--ptc-element-spacing-07);
44
47
  }
45
48
  .box .z-auto {
46
49
  z-index: auto;
@@ -58,9 +61,61 @@
58
61
  z-index: 999;
59
62
  }
60
63
  .box input:checked + .read-more-text {
61
- -webkit-line-clamp: unset;
64
+ -webkit-line-clamp: unset !important;
62
65
  }
63
- .box input:checked ~ label,
64
66
  .box .read-more-text:not(.truncated) ~ label {
65
67
  display: none;
68
+ }
69
+ .box .show-less-cta {
70
+ display: block !important;
71
+ }
72
+
73
+ :host .box.add-icon .read-more-cta-label span {
74
+ display: inline-block;
75
+ position: relative;
76
+ padding-right: var(--ptc-element-spacing-03);
77
+ }
78
+ :host .box.add-icon .read-more-cta-label span::after {
79
+ content: "";
80
+ 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");
81
+ width: 10px;
82
+ height: 7px;
83
+ background-size: cover;
84
+ position: absolute;
85
+ right: -5px;
86
+ bottom: 7px;
87
+ }
88
+ :host .box.add-icon .read-more-cta-label.show-less-cta span::after {
89
+ transform: rotate(180deg);
90
+ }
91
+ :host .box.blue .read-more-cta-label {
92
+ color: var(--color-blue-07);
93
+ }
94
+ :host .box.gray .read-more-cta-label {
95
+ color: var(--color-gray-10);
96
+ }
97
+ :host .box.green .read-more-cta-label {
98
+ color: var(--color-green-07);
99
+ }
100
+ :host .box.initial .read-more-cta-label {
101
+ color: initial;
102
+ }
103
+ :host .box.small .read-more-cta-label {
104
+ font-size: var(--ptc-font-size-x-small);
105
+ line-height: var(--ptc-line-height-densest);
106
+ }
107
+ :host .box.medium .read-more-cta-label {
108
+ font-size: var(--ptc-font-size-small);
109
+ line-height: var(--ptc-line-height-p);
110
+ }
111
+ :host .box.large .read-more-cta-label {
112
+ font-size: var(--ptc-font-size-large);
113
+ line-height: var(--ptc-line-height-p);
114
+ }
115
+ :host .box.large.add-icon .read-more-cta-label span {
116
+ padding-right: var(--ptc-element-spacing-04);
117
+ }
118
+ :host .box.large.add-icon .read-more-cta-label span::after {
119
+ width: 15px;
120
+ height: 10px;
66
121
  }
@@ -2,9 +2,16 @@ import { Host, h } from '@stencil/core';
2
2
  export class PtcReadmore {
3
3
  constructor() {
4
4
  this.moreText = 'read more';
5
+ this.lessText = undefined;
6
+ this.readMorePosition = 'right';
5
7
  this.display = 'inline';
6
8
  this.visibleLines = 'line2';
9
+ this.visibleLinesCustom = undefined;
7
10
  this.zIndex = 'z-auto';
11
+ this.checked = false;
12
+ this.size = 'small';
13
+ this.isIcon = false;
14
+ this.color = 'blue';
8
15
  }
9
16
  addBtnTruncated() {
10
17
  const appRoot = this.el.shadowRoot;
@@ -16,13 +23,30 @@ export class PtcReadmore {
16
23
  componentDidLoad() {
17
24
  this.addBtnTruncated();
18
25
  }
26
+ // click event handler
27
+ handleClick(event) {
28
+ ;
29
+ this.addBtnTruncated();
30
+ // check if the input box is checked
31
+ this.checked = event.target.checked;
32
+ // Getting cta element
33
+ const cta = this.el.shadowRoot.querySelector('.read-more-cta-label');
34
+ // Updating the cta text
35
+ this.checked
36
+ ? cta.innerHTML = `<span> ${this.lessText ? this.lessText : ''} </span>`
37
+ : cta.innerHTML = `<span> ${this.moreText ? this.moreText : ''}</span>`;
38
+ this.checked ? cta.classList.add('show-less-cta') : cta.classList.remove('show-less-cta');
39
+ }
19
40
  render() {
20
41
  const classMap = this.getCssClassMap();
21
- return (h(Host, { class: this.display }, h("div", { class: classMap }, h("input", { type: "checkbox", id: "expanded" }), h("p", { class: `read-more-text ${this.visibleLines}` }, h("slot", null)), h("label", { htmlFor: "expanded", role: "button", class: this.zIndex }, this.moreText))));
42
+ return (h(Host, { class: this.display }, h("div", { class: classMap }, h("input", { type: "checkbox", id: "expanded", onClick: (e) => this.handleClick(e) }), h("p", { class: `read-more-text ${this.visibleLines}`, style: { WebkitLineClamp: `${this.visibleLinesCustom}` } }, h("slot", null)), h("label", { htmlFor: "expanded", role: "button", class: `${this.zIndex} read-more-cta-label`, style: { textAlign: `${this.readMorePosition}` } }, h("span", null, this.moreText)))));
22
43
  }
23
44
  getCssClassMap() {
24
45
  return {
25
46
  ['box']: true,
47
+ [this.color]: true,
48
+ [this.size]: true,
49
+ ['add-icon']: this.isIcon
26
50
  };
27
51
  }
28
52
  static get is() { return "ptc-readmore"; }
@@ -41,14 +65,14 @@ export class PtcReadmore {
41
65
  return {
42
66
  "moreText": {
43
67
  "type": "string",
44
- "mutable": false,
68
+ "mutable": true,
45
69
  "complexType": {
46
70
  "original": "string",
47
71
  "resolved": "string",
48
72
  "references": {}
49
73
  },
50
74
  "required": false,
51
- "optional": false,
75
+ "optional": true,
52
76
  "docs": {
53
77
  "tags": [],
54
78
  "text": "customize read more text"
@@ -57,6 +81,41 @@ export class PtcReadmore {
57
81
  "reflect": false,
58
82
  "defaultValue": "'read more'"
59
83
  },
84
+ "lessText": {
85
+ "type": "string",
86
+ "mutable": true,
87
+ "complexType": {
88
+ "original": "string",
89
+ "resolved": "string",
90
+ "references": {}
91
+ },
92
+ "required": false,
93
+ "optional": true,
94
+ "docs": {
95
+ "tags": [],
96
+ "text": "customize less more text"
97
+ },
98
+ "attribute": "less-text",
99
+ "reflect": false
100
+ },
101
+ "readMorePosition": {
102
+ "type": "string",
103
+ "mutable": false,
104
+ "complexType": {
105
+ "original": "string",
106
+ "resolved": "string",
107
+ "references": {}
108
+ },
109
+ "required": false,
110
+ "optional": false,
111
+ "docs": {
112
+ "tags": [],
113
+ "text": "Read more text position: left or right"
114
+ },
115
+ "attribute": "read-more-position",
116
+ "reflect": false,
117
+ "defaultValue": "'right'"
118
+ },
60
119
  "display": {
61
120
  "type": "string",
62
121
  "mutable": false,
@@ -82,8 +141,8 @@ export class PtcReadmore {
82
141
  "type": "string",
83
142
  "mutable": false,
84
143
  "complexType": {
85
- "original": "'line1' | 'line2' | 'line3' | 'line4' | 'line5'",
86
- "resolved": "\"line1\" | \"line2\" | \"line3\" | \"line4\" | \"line5\"",
144
+ "original": "'line1' | 'line2' | 'line3' | 'line4' | 'line5' | 'line10'",
145
+ "resolved": "\"line1\" | \"line10\" | \"line2\" | \"line3\" | \"line4\" | \"line5\"",
87
146
  "references": {}
88
147
  },
89
148
  "required": false,
@@ -96,6 +155,23 @@ export class PtcReadmore {
96
155
  "reflect": false,
97
156
  "defaultValue": "'line2'"
98
157
  },
158
+ "visibleLinesCustom": {
159
+ "type": "number",
160
+ "mutable": false,
161
+ "complexType": {
162
+ "original": "number",
163
+ "resolved": "number",
164
+ "references": {}
165
+ },
166
+ "required": false,
167
+ "optional": false,
168
+ "docs": {
169
+ "tags": [],
170
+ "text": "visible lines custom numebr"
171
+ },
172
+ "attribute": "visible-lines-custom",
173
+ "reflect": false
174
+ },
99
175
  "zIndex": {
100
176
  "type": "string",
101
177
  "mutable": false,
@@ -113,6 +189,78 @@ export class PtcReadmore {
113
189
  "attribute": "z-index",
114
190
  "reflect": false,
115
191
  "defaultValue": "'z-auto'"
192
+ },
193
+ "checked": {
194
+ "type": "boolean",
195
+ "mutable": true,
196
+ "complexType": {
197
+ "original": "boolean",
198
+ "resolved": "boolean",
199
+ "references": {}
200
+ },
201
+ "required": false,
202
+ "optional": false,
203
+ "docs": {
204
+ "tags": [],
205
+ "text": "Input element state"
206
+ },
207
+ "attribute": "checked",
208
+ "reflect": false,
209
+ "defaultValue": "false"
210
+ },
211
+ "size": {
212
+ "type": "string",
213
+ "mutable": false,
214
+ "complexType": {
215
+ "original": "'small' | 'medium' | 'large'",
216
+ "resolved": "\"large\" | \"medium\" | \"small\"",
217
+ "references": {}
218
+ },
219
+ "required": false,
220
+ "optional": false,
221
+ "docs": {
222
+ "tags": [],
223
+ "text": "Size: Font size of the read more text. Options small=16px | medium=18px | large=24px"
224
+ },
225
+ "attribute": "size",
226
+ "reflect": false,
227
+ "defaultValue": "'small'"
228
+ },
229
+ "isIcon": {
230
+ "type": "boolean",
231
+ "mutable": false,
232
+ "complexType": {
233
+ "original": "boolean",
234
+ "resolved": "boolean",
235
+ "references": {}
236
+ },
237
+ "required": false,
238
+ "optional": false,
239
+ "docs": {
240
+ "tags": [],
241
+ "text": "Icon: if true show up/down icon besides text"
242
+ },
243
+ "attribute": "is-icon",
244
+ "reflect": false,
245
+ "defaultValue": "false"
246
+ },
247
+ "color": {
248
+ "type": "string",
249
+ "mutable": false,
250
+ "complexType": {
251
+ "original": "'blue' | 'gray' | 'green' | 'initial'",
252
+ "resolved": "\"blue\" | \"gray\" | \"green\" | \"initial\"",
253
+ "references": {}
254
+ },
255
+ "required": false,
256
+ "optional": false,
257
+ "docs": {
258
+ "tags": [],
259
+ "text": "color: Read more text color. Options: default is blue. 'blue' | 'gray' | 'green' | 'initial'"
260
+ },
261
+ "attribute": "color",
262
+ "reflect": false,
263
+ "defaultValue": "'blue'"
116
264
  }
117
265
  };
118
266
  }
@@ -1,6 +1,7 @@
1
1
  :host {
2
2
  display: block;
3
3
  position: relative;
4
+ width: 100%;
4
5
  padding: var(--ptc-layout-spacing-05) var(--ptc-layout-spacing-01);
5
6
  color: var(--color-white);
6
7
  }
@@ -24,8 +25,6 @@
24
25
  }
25
26
  :host .tcb-top-slit {
26
27
  fill: #f3f3f3;
27
- -webkit-transform: scaleX(-1);
28
- -ms-transform: scaleX(-1);
29
28
  transform: scale(1.5, -1);
30
29
  position: absolute;
31
30
  top: -1px;
@@ -99,4 +98,156 @@
99
98
  :host(.tab-cta-with-background) .copy-bg-overlay-layer {
100
99
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 43%, rgba(176, 188, 194, 0) 95%);
101
100
  }
101
+ }
102
+
103
+ :host(.bottom-right) .tcb-top-slit {
104
+ top: auto;
105
+ bottom: 0;
106
+ transform: scale(1.5, 1.5);
107
+ }
108
+
109
+ :host(.case-studies) {
110
+ min-height: 25rem;
111
+ height: auto;
112
+ margin-bottom: 10rem;
113
+ display: flex;
114
+ align-items: center;
115
+ }
116
+ @media only screen and (min-width: 768px) {
117
+ :host(.case-studies) {
118
+ min-height: 33.75rem;
119
+ height: auto;
120
+ margin-bottom: 0;
121
+ padding-top: var(--ptc-layout-spacing-06);
122
+ }
123
+ }
124
+ :host(.case-studies) .card-wrap {
125
+ position: relative;
126
+ border: 1px solid transparent;
127
+ width: 100%;
128
+ height: 100%;
129
+ max-width: 540px;
130
+ bottom: -13rem;
131
+ }
132
+ @media only screen and (min-width: 768px) {
133
+ :host(.case-studies) .card-wrap {
134
+ bottom: auto;
135
+ }
136
+ }
137
+ :host(.case-studies) .card-wrap::after {
138
+ position: absolute;
139
+ width: 0;
140
+ height: 1px;
141
+ content: "";
142
+ background: #fff;
143
+ top: 0px;
144
+ left: 0px;
145
+ animation: widthAnimate 0.2s linear 0.2s 1 forwards;
146
+ }
147
+ :host(.case-studies) .card-wrap::before {
148
+ position: absolute;
149
+ width: 1px;
150
+ height: 0;
151
+ content: "";
152
+ background: #fff;
153
+ top: 0px;
154
+ right: 0px;
155
+ animation: heightAnimate 0.2s linear 0.4s 1 forwards;
156
+ }
157
+ :host(.case-studies) .card-wrap .card-animated-border {
158
+ border: 1px solid transparent;
159
+ position: absolute;
160
+ left: -1px;
161
+ right: 0;
162
+ bottom: 0px;
163
+ top: -1px;
164
+ width: 100%;
165
+ height: 100%;
166
+ box-shadow: var(--ptc-shadow-x-small);
167
+ }
168
+ :host(.case-studies) .card-wrap .card-animated-border::after {
169
+ position: absolute;
170
+ width: 0;
171
+ height: 1px;
172
+ content: "";
173
+ background: #fff;
174
+ bottom: 0px;
175
+ right: 0px;
176
+ animation: widthAnimate 0.2s linear 0.6s 1 forwards;
177
+ }
178
+ :host(.case-studies) .card-wrap .card-animated-border::before {
179
+ position: absolute;
180
+ width: 1px;
181
+ height: 0;
182
+ content: "";
183
+ background: #fff;
184
+ bottom: 0px;
185
+ left: 0px;
186
+ animation: heightAnimate 0.2s linear 0.8s 1 forwards;
187
+ }
188
+ :host(.case-studies) .card-wrap .card-content {
189
+ opacity: 0;
190
+ animation: fadeIn 0.5s ease-in 0.9s 1 forwards;
191
+ background-color: transparent;
192
+ width: 100%;
193
+ height: 100%;
194
+ }
195
+ :host(.case-studies) .card-wrap .card-content .card-layout {
196
+ padding: var(--ptc-layout-spacing-04);
197
+ background-color: #fff;
198
+ }
199
+ @keyframes widthAnimate {
200
+ 0% {
201
+ width: 0;
202
+ }
203
+ 100% {
204
+ width: 100%;
205
+ }
206
+ }
207
+ @keyframes heightAnimate {
208
+ 0% {
209
+ height: 0;
210
+ }
211
+ 100% {
212
+ height: 100%;
213
+ }
214
+ }
215
+ @keyframes fadeIn {
216
+ 0% {
217
+ opacity: 0;
218
+ }
219
+ 100% {
220
+ opacity: 1;
221
+ }
222
+ }
223
+ :host(.case-studies) .ptc-container-lg {
224
+ padding-right: 15px;
225
+ padding-left: 15px;
226
+ margin-right: auto;
227
+ margin-left: auto;
228
+ }
229
+ @media only screen and (min-width: 480px) {
230
+ :host(.case-studies) .ptc-container-lg {
231
+ padding-left: var(--ptc-layout-spacing-03);
232
+ padding-right: var(--ptc-layout-spacing-03);
233
+ }
234
+ }
235
+ @media only screen and (min-width: 768px) {
236
+ :host(.case-studies) .ptc-container-lg {
237
+ padding-left: var(--ptc-layout-spacing-04);
238
+ padding-right: var(--ptc-layout-spacing-04);
239
+ }
240
+ }
241
+ @media only screen and (min-width: 992px) {
242
+ :host(.case-studies) .ptc-container-lg {
243
+ padding-left: var(--ptc-element-spacing-08);
244
+ padding-right: var(--ptc-element-spacing-08);
245
+ }
246
+ }
247
+ @media only screen and (min-width: 1980px) {
248
+ :host(.case-studies) .ptc-container-lg {
249
+ padding-left: 0;
250
+ padding-right: 0;
251
+ max-width: 1900px;
252
+ }
102
253
  }
@@ -5,16 +5,21 @@ export class PtcTextCopyWithBackground {
5
5
  this.backgroundImage = undefined;
6
6
  this.ImageAltText = undefined;
7
7
  this.topSlitBackgroundColor = undefined;
8
+ this.slitPosition = 'top-right';
8
9
  this.isBackgroundBlur = false;
10
+ this.overlay = true;
9
11
  }
10
12
  render() {
11
13
  const classMap = this.getCssClassMap();
12
14
  return (h(Host, { class: classMap }, h("svg", { xmlns: "http://www.w3.org/2000/svg", class: "tcb-top-slit", width: "320.963", height: "28.179", viewBox: "0 0 320.963 28.179", style: { fill: this.topSlitBackgroundColor } }, h("path", { id: "Path_8770", d: "M737.02 463.856v27.8H416.057v.378h102.38l47.607-28.179z", class: "tcb-top-slit-cls-1", "data-name": "Path 8770", transform: "translate(-416.057 -463.856)" })), h("div", { class: "" }, h("img", { class: "copy-bg-image", alt: this.ImageAltText, src: this.backgroundImage }), this.isBackgroundBlur &&
13
- h("img", { class: "copy-bg-image bg-img-filter", alt: this.ImageAltText, src: this.backgroundImage })), h("div", { class: "copy-bg-overlay-layer" }), h("div", { class: "content-wrap" }, h("slot", null))));
15
+ h("img", { class: "copy-bg-image bg-img-filter", alt: this.ImageAltText, src: this.backgroundImage })), this.overlay &&
16
+ h("div", { class: "copy-bg-overlay-layer" }), h("div", { class: "content-wrap" }, this.type == "case-studies" &&
17
+ h("div", { class: "ptc-container-lg" }, h("div", { class: "card-wrap" }, h("div", { class: "card-animated-border" }), h("div", { class: "card-content" }, h("div", { class: "card-layout" }, h("slot", { name: 'card-content' }))))), h("slot", null))));
14
18
  }
15
19
  getCssClassMap() {
16
20
  return {
17
- [this.type]: true
21
+ [this.type]: true,
22
+ [this.slitPosition]: true
18
23
  };
19
24
  }
20
25
  static get is() { return "ptc-text-copy-with-background"; }
@@ -35,8 +40,8 @@ export class PtcTextCopyWithBackground {
35
40
  "type": "string",
36
41
  "mutable": false,
37
42
  "complexType": {
38
- "original": "'text-copy-with-background' | 'hero-footer-cta' | 'tab-cta-with-background'",
39
- "resolved": "\"hero-footer-cta\" | \"tab-cta-with-background\" | \"text-copy-with-background\"",
43
+ "original": "'text-copy-with-background' | 'hero-footer-cta' | 'tab-cta-with-background' | 'case-studies'",
44
+ "resolved": "\"case-studies\" | \"hero-footer-cta\" | \"tab-cta-with-background\" | \"text-copy-with-background\"",
40
45
  "references": {}
41
46
  },
42
47
  "required": false,
@@ -100,6 +105,24 @@ export class PtcTextCopyWithBackground {
100
105
  "attribute": "top-slit-background-color",
101
106
  "reflect": false
102
107
  },
108
+ "slitPosition": {
109
+ "type": "string",
110
+ "mutable": false,
111
+ "complexType": {
112
+ "original": "'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'",
113
+ "resolved": "\"bottom-left\" | \"bottom-right\" | \"top-left\" | \"top-right\"",
114
+ "references": {}
115
+ },
116
+ "required": false,
117
+ "optional": true,
118
+ "docs": {
119
+ "tags": [],
120
+ "text": "(optional) topSlitPosition: It will decide the position of ."
121
+ },
122
+ "attribute": "slit-position",
123
+ "reflect": false,
124
+ "defaultValue": "'top-right'"
125
+ },
103
126
  "isBackgroundBlur": {
104
127
  "type": "boolean",
105
128
  "mutable": false,
@@ -117,6 +140,24 @@ export class PtcTextCopyWithBackground {
117
140
  "attribute": "is-background-blur",
118
141
  "reflect": false,
119
142
  "defaultValue": "false"
143
+ },
144
+ "overlay": {
145
+ "type": "boolean",
146
+ "mutable": false,
147
+ "complexType": {
148
+ "original": "boolean",
149
+ "resolved": "boolean",
150
+ "references": {}
151
+ },
152
+ "required": false,
153
+ "optional": true,
154
+ "docs": {
155
+ "tags": [],
156
+ "text": "(optional) overlay: If true,it will add black overlay with 0.55 opacity"
157
+ },
158
+ "attribute": "overlay",
159
+ "reflect": false,
160
+ "defaultValue": "true"
120
161
  }
121
162
  };
122
163
  }
@@ -48,6 +48,14 @@ div.dotted h6::before {
48
48
  display: block;
49
49
  border-top: 3px dashed var(--color-green-07);
50
50
  }
51
+ div.solid h1,
52
+ div.solid h2,
53
+ div.solid h3,
54
+ div.solid h4,
55
+ div.solid h5,
56
+ div.solid h6 {
57
+ padding-top: 4px;
58
+ }
51
59
  div.solid h1::before,
52
60
  div.solid h2::before,
53
61
  div.solid h3::before,
@@ -58,7 +66,7 @@ div.solid h6::before {
58
66
  position: absolute;
59
67
  width: 100%;
60
68
  height: 0.7px;
61
- background-color: var(--color-gray-07);
69
+ background-color: var(--color-gray-03);
62
70
  opacity: 0.9;
63
71
  left: 0px;
64
72
  }
@@ -70,10 +78,10 @@ div.solid h5::after,
70
78
  div.solid h6::after {
71
79
  content: "";
72
80
  position: absolute;
73
- width: 20%;
81
+ width: 56px;
74
82
  height: 2px;
75
83
  background-color: var(--color-green-07);
76
- top: -2px;
84
+ top: 2px;
77
85
  left: 0px;
78
86
  }
79
87
  div.is-standard h1,
@@ -262,14 +270,9 @@ div.xxxx-large h1, div.xxxx-large h2, div.xxxx-large h3, div.xxxx-large h4, div.
262
270
  font-size: var(--ptc-font-size-xxxx-large);
263
271
  }
264
272
  }
265
- div.xxxx-large-2 h1, div.xxxx-large-2 h2, div.xxxx-large-2 h3, div.xxxx-large-2 h4, div.xxxx-large-2 h5, div.xxxx-large-2 h6 {
273
+ div.xx-large-allbp h1, div.xx-large-allbp h2, div.xx-large-allbp h3, div.xx-large-allbp h4, div.xx-large-allbp h5, div.xx-large-allbp h6 {
266
274
  font-size: var(--ptc-font-size-xx-large);
267
275
  }
268
- @media only screen and (min-width: 768px) {
269
- div.xxxx-large-2 h1, div.xxxx-large-2 h2, div.xxxx-large-2 h3, div.xxxx-large-2 h4, div.xxxx-large-2 h5, div.xxxx-large-2 h6 {
270
- font-size: var(--ptc-font-size-xxxx-large);
271
- }
272
- }
273
276
  div.xxxx-large-allbp h1, div.xxxx-large-allbp h2, div.xxxx-large-allbp h3, div.xxxx-large-allbp h4, div.xxxx-large-allbp h5, div.xxxx-large-allbp h6 {
274
277
  font-size: var(--ptc-font-size-xxxx-large);
275
278
  }
@@ -311,4 +314,7 @@ div.ellipsis-boxing h1, div.ellipsis-boxing h2, div.ellipsis-boxing h3, div.elli
311
314
  text-overflow: ellipsis;
312
315
  overflow-wrap: break-word;
313
316
  padding-bottom: 0;
317
+ }
318
+ div.block h1, div.block h2, div.block h3, div.block h4, div.block h5, div.block h6 {
319
+ display: block;
314
320
  }
@@ -13,6 +13,7 @@ export class PtcTitle {
13
13
  this.titleHeight = 'paragraph';
14
14
  this.styles = undefined;
15
15
  this.ellipsisLineCutoff = undefined;
16
+ this.titleDisplay = 'inline-block';
16
17
  }
17
18
  render() {
18
19
  const classMap = this.getCssClassMap();
@@ -37,7 +38,6 @@ export class PtcTitle {
37
38
  default:
38
39
  TagType = 'h2';
39
40
  }
40
- ;
41
41
  return (h(Host, null, this.styles && h("style", null, this.styles), h("div", { class: classMap }, h(TagType, { style: cutOff }, h("slot", null)))));
42
42
  }
43
43
  getCssClassMap() {
@@ -51,14 +51,15 @@ export class PtcTitle {
51
51
  [this.titleSize]: !!this.titleSize ? true : false,
52
52
  [this.titleHeight]: !!this.titleHeight ? true : false,
53
53
  [this.titleColor]: !!this.titleColor ? true : false,
54
- ['ellipsis-boxing']: this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0
54
+ ['ellipsis-boxing']: this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0,
55
+ [this.titleDisplay]: !!this.titleDisplay ? true : false,
55
56
  };
56
57
  }
57
58
  getLineCuttoff() {
58
59
  let result;
59
60
  if (this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0) {
60
61
  result = {
61
- ['-webkit-line-clamp']: `${this.ellipsisLineCutoff}`
62
+ ['-webkit-line-clamp']: `${this.ellipsisLineCutoff}`,
62
63
  };
63
64
  }
64
65
  return result;
@@ -221,8 +222,8 @@ export class PtcTitle {
221
222
  "type": "string",
222
223
  "mutable": false,
223
224
  "complexType": {
224
- "original": "'xx-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large' | 'xx-large' | 'xxx-large' | 'xxxx-large' | 'xxxx-large-allbp' | 'xxxx-large-2'",
225
- "resolved": "\"large\" | \"medium\" | \"small\" | \"x-large\" | \"x-small\" | \"xx-large\" | \"xx-small\" | \"xxx-large\" | \"xxxx-large\" | \"xxxx-large-2\" | \"xxxx-large-allbp\"",
225
+ "original": "'xx-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large' | 'xx-large' | 'xxx-large' | 'xxxx-large' | 'xxxx-large-allbp' | 'xx-large-allbp'",
226
+ "resolved": "\"large\" | \"medium\" | \"small\" | \"x-large\" | \"x-small\" | \"xx-large\" | \"xx-large-allbp\" | \"xx-small\" | \"xxx-large\" | \"xxxx-large\" | \"xxxx-large-allbp\"",
226
227
  "references": {}
227
228
  },
228
229
  "required": false,
@@ -285,6 +286,24 @@ export class PtcTitle {
285
286
  },
286
287
  "attribute": "ellipsis-line-cutoff",
287
288
  "reflect": false
289
+ },
290
+ "titleDisplay": {
291
+ "type": "string",
292
+ "mutable": false,
293
+ "complexType": {
294
+ "original": "'block' | 'inline-block'",
295
+ "resolved": "\"block\" | \"inline-block\"",
296
+ "references": {}
297
+ },
298
+ "required": false,
299
+ "optional": false,
300
+ "docs": {
301
+ "tags": [],
302
+ "text": "Title heading display : To show line above heading full width or title width"
303
+ },
304
+ "attribute": "title-display",
305
+ "reflect": false,
306
+ "defaultValue": "'inline-block'"
288
307
  }
289
308
  };
290
309
  }