@ptcwebops/ptcw-design 4.9.5 → 4.9.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 (67) hide show
  1. package/dist/cjs/blog-detail-content_2.cjs.entry.js +259 -0
  2. package/dist/cjs/blog-detail-layout.cjs.entry.js +58 -0
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/ptc-inline-cta.cjs.entry.js +50 -7
  5. package/dist/cjs/ptc-jumbotron.cjs.entry.js +5 -1
  6. package/dist/cjs/ptc-nav-skip-to-content.cjs.entry.js +33 -0
  7. package/dist/cjs/ptc-news.cjs.entry.js +2 -4
  8. package/dist/cjs/ptc-social-icons-footer.cjs.entry.js +2 -18
  9. package/dist/cjs/ptc-social-icons.cjs.entry.js +32 -0
  10. package/dist/cjs/ptcw-design.cjs.js +1 -1
  11. package/dist/cjs/x-d5052f9b.js +22 -0
  12. package/dist/collection/collection-manifest.json +4 -0
  13. package/dist/collection/components/organism-bundles/blog-detail-content/blog-detail-content.css +245 -0
  14. package/dist/collection/components/organism-bundles/blog-detail-content/blog-detail-content.js +231 -0
  15. package/dist/collection/components/organism-bundles/blog-detail-layout/blog-detail-layout.css +102 -0
  16. package/dist/collection/components/organism-bundles/blog-detail-layout/blog-detail-layout.js +58 -0
  17. package/dist/collection/components/ptc-inline-cta/ptc-inline-cta.css +3 -0
  18. package/dist/collection/components/ptc-inline-cta/ptc-inline-cta.js +85 -6
  19. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.js +41 -1
  20. package/dist/collection/components/ptc-nav-skip-to-content/ptc-nav-skip-to-content.css +82 -0
  21. package/dist/collection/components/ptc-nav-skip-to-content/ptc-nav-skip-to-content.js +74 -0
  22. package/dist/collection/components/ptc-news/ptc-news.css +0 -17
  23. package/dist/collection/components/ptc-news/ptc-news.js +1 -37
  24. package/dist/collection/components/ptc-social-icons/ptc-social-icons.css +73 -0
  25. package/dist/collection/components/ptc-social-icons/ptc-social-icons.js +121 -0
  26. package/dist/collection/media/svg-imgs/email.svg +4 -0
  27. package/dist/custom-elements/index.d.ts +24 -0
  28. package/dist/custom-elements/index.js +373 -21
  29. package/dist/esm/blog-detail-content_2.entry.js +254 -0
  30. package/dist/esm/blog-detail-layout.entry.js +54 -0
  31. package/dist/esm/loader.js +1 -1
  32. package/dist/esm/ptc-inline-cta.entry.js +50 -7
  33. package/dist/esm/ptc-jumbotron.entry.js +5 -1
  34. package/dist/esm/ptc-nav-skip-to-content.entry.js +29 -0
  35. package/dist/esm/ptc-news.entry.js +2 -4
  36. package/dist/esm/ptc-social-icons-footer.entry.js +1 -17
  37. package/dist/esm/ptc-social-icons.entry.js +28 -0
  38. package/dist/esm/ptcw-design.js +1 -1
  39. package/dist/esm/x-cd64dee4.js +18 -0
  40. package/dist/ptcw-design/p-06f60377.entry.js +1 -0
  41. package/dist/ptcw-design/p-1ba52dfd.entry.js +1 -0
  42. package/dist/ptcw-design/p-1f92340d.entry.js +1 -0
  43. package/dist/ptcw-design/p-7f2c5da5.js +1 -0
  44. package/dist/ptcw-design/p-8e2e303d.entry.js +1 -0
  45. package/dist/ptcw-design/p-8e6059b8.entry.js +1 -0
  46. package/dist/ptcw-design/p-a11dbfda.entry.js +1 -0
  47. package/dist/ptcw-design/p-d7275289.entry.js +1 -0
  48. package/dist/ptcw-design/p-d9a6757d.entry.js +1 -0
  49. package/dist/ptcw-design/ptcw-design.css +1 -1
  50. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  51. package/dist/types/components/organism-bundles/blog-detail-content/blog-detail-content.d.ts +29 -0
  52. package/dist/types/components/organism-bundles/blog-detail-layout/blog-detail-layout.d.ts +7 -0
  53. package/dist/types/components/ptc-inline-cta/ptc-inline-cta.d.ts +6 -0
  54. package/dist/types/components/ptc-jumbotron/ptc-jumbotron.d.ts +2 -0
  55. package/dist/types/components/ptc-nav-skip-to-content/ptc-nav-skip-to-content.d.ts +9 -0
  56. package/dist/types/components/ptc-news/ptc-news.d.ts +0 -8
  57. package/dist/types/components/ptc-social-icons/ptc-social-icons.d.ts +10 -0
  58. package/dist/types/components.d.ts +82 -16
  59. package/package.json +1 -1
  60. package/readme.md +1 -1
  61. package/dist/cjs/ptc-readmore-v2.cjs.entry.js +0 -67
  62. package/dist/esm/ptc-readmore-v2.entry.js +0 -63
  63. package/dist/ptcw-design/p-01c3f36a.entry.js +0 -1
  64. package/dist/ptcw-design/p-231e7963.entry.js +0 -1
  65. package/dist/ptcw-design/p-4405504c.entry.js +0 -1
  66. package/dist/ptcw-design/p-654f7a35.entry.js +0 -1
  67. package/dist/ptcw-design/p-745b19f4.entry.js +0 -1
@@ -6,11 +6,13 @@ export class PtcJumbotron {
6
6
  this.mainTitle = 'Lorem Ipsum Dolor Sit Amet Consectetur';
7
7
  this.subTitle = 'Lorem Ipsum Dolor Sit Amet Consectetur Adipiscing Lorem Ipsum Dolor Sit Amet Consectetur Adipisci Lorem Ipsum Dolor Sit Amet';
8
8
  this.pngSrc = undefined;
9
+ this.pngImgStyles = "";
9
10
  this.gifSrc = undefined;
10
11
  this.bgVideoSrc = undefined;
11
12
  this.bgSrc = undefined;
12
13
  this.isIframe = false;
13
14
  this.isHomepage = false;
15
+ this.isBlogDetail = false;
14
16
  this.playButtonTitle = undefined;
15
17
  this.pauseButtonTitle = undefined;
16
18
  this.buttonLocation = undefined;
@@ -56,7 +58,7 @@ export class PtcJumbotron {
56
58
  default:
57
59
  mediaElement = h("ptc-img", { "img-url": this.bgSrc, styles: ".smart-bg{background-position:right !important;}" });
58
60
  }
59
- return (h(Host, { class: classMap }, this.styles && h("style", null, this.styles), h("div", { class: { 'parent': true, 'light-links': this.jumbotronType === 'dark' || this.jumbotronType === 'dark-video', 'hp-adjustments': this.isHomepage, 'transitioning': this.isTransitioning } }, h("div", { class: `div1 image-container ${this.jumbotronType === 'text' ? 'hidden' : ''}` }, mediaElement), h("div", { class: "div2 content-container" }, h("div", { class: "bg-overlay", style: { background: this.contentBackground } }), h("div", { class: { "ptc-container": true, "content-layout": true, 'hp-container': this.isHomepage } }, h("max-width-container", { "max-width-p": "60", breakpoint: 992, "content-align": this.jumbotronType === 'text' ? 'center' : this.textAlign, styles: ":host{z-index: 999}" }, h("slot", { name: "breadcrumb" }), h("span", { class: "main-content-items" }, h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), h("slot", { name: "main-title" }), h("slot", { name: "hp-sub-title" }), (this.jumbotronType !== 'text' || (this.jumbotronType === 'text' && this.subTitle)) && (!this.isHomepage) && (h("div", null, h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }))), !this.isHomepage && (h("ptc-para", { styles: `p{color: ${this.contentColor}!important;}`, "font-size": this.jumbotronType === 'text' && this.isMobile ? 'x-small' : 'small', "font-weight": "w-4", "para-margin": `${this.jumbotronType === 'text' ? 'margin-flush' : 'margin-bottom-6'}`, "para-color": "white", "para-line-h": "line-height-p", "para-align": this.jumbotronType === 'text' ? 'center' : 'left', "seo-compatibility-mode": true }, h("p", { innerHTML: this.subTitle }))), this.hasCtaSlot && (h("div", { class: `u-flex u-flex-wrap gap-adjustment${this.jumbotronType === 'text' ? ' text-adjustment' : ''}` }, h("slot", { name: "j-cta" }))))), this.hasPopupVideo && this.jumbotronType !== 'png' ? h("slot", { name: "video" }) : null, this.jumbotronType === 'png' ? (h("div", { class: "desktop-media-image" }, h("div", { class: "media-image-wrapper" }, h("ptc-picture", { "is-full-width": true, src: this.pngSrc }), this.hasPopupVideo ? h("slot", { name: "video" }) : null))) : null, this.jumbotronType === 'gif' ? (h("div", { class: "desktop-media-image desk-gif-adjustment" }, h("img", { src: this.gifSrc }))) : null)))));
61
+ return (h(Host, { class: classMap }, this.styles && h("style", null, this.styles), h("div", { class: { 'parent': true, 'light-links': this.jumbotronType === 'dark' || this.jumbotronType === 'dark-video', 'hp-adjustments': this.isHomepage, 'transitioning': this.isTransitioning } }, h("div", { class: `div1 image-container ${this.jumbotronType === 'text' ? 'hidden' : ''}` }, mediaElement), h("div", { class: "div2 content-container" }, h("div", { class: "bg-overlay", style: { background: this.contentBackground } }), h("div", { class: { "ptc-container": true, "content-layout": true, 'hp-container': this.isHomepage } }, h("max-width-container", { "max-width-p": "60", breakpoint: 992, "content-align": this.jumbotronType === 'text' ? 'center' : this.textAlign, styles: ":host{z-index: 999}" }, h("slot", { name: "breadcrumb" }), h("span", { class: "main-content-items" }, h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), h("slot", { name: "main-title" }), h("slot", { name: "hp-sub-title" }), (this.jumbotronType !== 'text' || (this.jumbotronType === 'text' && this.subTitle)) && (!this.isHomepage) && (h("div", null, h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }))), !this.isHomepage && (h("ptc-para", { styles: `p{color: ${this.contentColor}!important;}`, "font-size": this.jumbotronType === 'text' && this.isMobile ? 'x-small' : 'small', "font-weight": "w-4", "para-margin": `${this.jumbotronType === 'text' ? 'margin-flush' : 'margin-bottom-6'}`, "para-color": "white", "para-line-h": "line-height-p", "para-align": this.jumbotronType === 'text' ? 'center' : 'left', "seo-compatibility-mode": true }, h("p", { innerHTML: this.subTitle }), this.jumbotronType === 'png' && this.isBlogDetail && h("div", null, h("ptc-spacer", { breakpoint: 'x-small', size: 'medium' }), h("ptc-spacer", { breakpoint: 'small', size: 'small' }), h("slot", { name: "blog-author" })))), this.hasCtaSlot && (h("div", { class: `u-flex u-flex-wrap gap-adjustment${this.jumbotronType === 'text' ? ' text-adjustment' : ''}` }, h("slot", { name: "j-cta" }))))), this.hasPopupVideo && this.jumbotronType !== 'png' ? h("slot", { name: "video" }) : null, this.jumbotronType === 'png' ? (h("div", { class: "desktop-media-image" }, h("div", { class: "media-image-wrapper" }, h("ptc-picture", { "is-full-width": true, src: this.pngSrc, styles: `img {${this.pngImgStyles}}` }), this.hasPopupVideo ? h("slot", { name: "video" }) : null))) : null, this.jumbotronType === 'gif' ? (h("div", { class: "desktop-media-image desk-gif-adjustment" }, h("img", { src: this.gifSrc }))) : null)))));
60
62
  }
61
63
  getCssClassMap() {
62
64
  return {
@@ -75,6 +77,7 @@ export class PtcJumbotron {
75
77
  switch (this.jumbotronType) {
76
78
  case 'light':
77
79
  case 'light-video':
80
+ case 'png':
78
81
  this.contentBackground = 'var(--color-white)';
79
82
  this.contentColor = 'var(--color-gray-10)';
80
83
  break;
@@ -93,6 +96,7 @@ export class PtcJumbotron {
93
96
  switch (this.jumbotronType) {
94
97
  case 'light':
95
98
  case 'light-video':
99
+ case 'png':
96
100
  this.contentBackground = 'linear-gradient(90.19deg, rgba(255, 255, 255, 0.9) 62.55%, rgba(228, 231, 233, 0) 99.86%)';
97
101
  this.contentColor = 'var(--color-gray-10)';
98
102
  break;
@@ -215,6 +219,24 @@ export class PtcJumbotron {
215
219
  "attribute": "png-src",
216
220
  "reflect": false
217
221
  },
222
+ "pngImgStyles": {
223
+ "type": "string",
224
+ "mutable": false,
225
+ "complexType": {
226
+ "original": "string",
227
+ "resolved": "string",
228
+ "references": {}
229
+ },
230
+ "required": false,
231
+ "optional": true,
232
+ "docs": {
233
+ "tags": [],
234
+ "text": ""
235
+ },
236
+ "attribute": "png-img-styles",
237
+ "reflect": false,
238
+ "defaultValue": "\"\""
239
+ },
218
240
  "gifSrc": {
219
241
  "type": "string",
220
242
  "mutable": false,
@@ -302,6 +324,24 @@ export class PtcJumbotron {
302
324
  "reflect": false,
303
325
  "defaultValue": "false"
304
326
  },
327
+ "isBlogDetail": {
328
+ "type": "boolean",
329
+ "mutable": false,
330
+ "complexType": {
331
+ "original": "boolean",
332
+ "resolved": "boolean",
333
+ "references": {}
334
+ },
335
+ "required": false,
336
+ "optional": true,
337
+ "docs": {
338
+ "tags": [],
339
+ "text": ""
340
+ },
341
+ "attribute": "is-blog-detail",
342
+ "reflect": false,
343
+ "defaultValue": "false"
344
+ },
305
345
  "playButtonTitle": {
306
346
  "type": "string",
307
347
  "mutable": false,
@@ -0,0 +1,82 @@
1
+ h1,
2
+ h2,
3
+ h3,
4
+ h4,
5
+ h5,
6
+ h6,
7
+ p,
8
+ ul,
9
+ li,
10
+ ptc-subnav,
11
+ ptc-tab-list,
12
+ ptc-link, ptc-square-card,
13
+ .hyphenate-text, ptc-footer {
14
+ word-break: break-word;
15
+ hyphens: manual;
16
+ -webkit-hyphens: manual;
17
+ -moz-hyphens: manual;
18
+ -ms-hyphens: manual;
19
+ }
20
+ @supports (hyphenate-limit-chars: 12 3 3) {
21
+ h1,
22
+ h2,
23
+ h3,
24
+ h4,
25
+ h5,
26
+ h6,
27
+ p,
28
+ ul,
29
+ li,
30
+ ptc-subnav,
31
+ ptc-tab-list,
32
+ ptc-link, ptc-square-card,
33
+ .hyphenate-text, ptc-footer {
34
+ hyphens: auto;
35
+ -webkit-hyphenate-limit-before: 3;
36
+ /* For Safari */
37
+ -webkit-hyphenate-limit-after: 3;
38
+ /* For Safari */
39
+ hyphenate-limit-chars: 12 3 3;
40
+ hyphenate-limit-lines: 2;
41
+ hyphenate-limit-last: always;
42
+ hyphenate-limit-zone: 6%;
43
+ -webkit-hyphens: auto;
44
+ -webkit-hyphenate-limit-before: 3;
45
+ -webkit-hyphenate-limit-after: 3;
46
+ -webkit-hyphenate-limit-chars: 12 3 3;
47
+ -webkit-hyphenate-limit-lines: 2;
48
+ -moz-hyphens: auto;
49
+ -moz-hyphenate-limit-chars: 12 3 3;
50
+ -moz-hyphenate-limit-lines: 2;
51
+ -ms-hyphens: auto;
52
+ -ms-hyphenate-limit-chars: 12 3 3;
53
+ -ms-hyphenate-limit-lines: 2;
54
+ }
55
+ }
56
+
57
+ :host {
58
+ display: block;
59
+ }
60
+ :host .skip-link {
61
+ position: fixed;
62
+ top: -200px;
63
+ }
64
+ :host .skip-link:focus {
65
+ top: 0;
66
+ display: block;
67
+ padding: 8px 12px;
68
+ text-align: center;
69
+ margin: 8px;
70
+ border-radius: var(--ptc-border-radius-standard);
71
+ outline: 5px solid #003DD6;
72
+ background: #FFF;
73
+ z-index: 99999;
74
+ box-shadow: var(--ptc-shadow-medium);
75
+ text-decoration: none;
76
+ color: var(--color-gray-10);
77
+ font-family: var(--ptc-font-latin);
78
+ font-size: var(--ptc-font-size-x-small);
79
+ font-style: normal;
80
+ font-weight: var(--ptc-font-weight-bold);
81
+ line-height: var(--ptc-line-height-p);
82
+ }
@@ -0,0 +1,74 @@
1
+ import { Host, h } from '@stencil/core';
2
+ export class PtcNavSkipToContent {
3
+ constructor() {
4
+ this.hideOnScroll = () => {
5
+ var _a, _b;
6
+ let skipLink = (_b = (_a = this.hostEle) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('a.skip-link');
7
+ skipLink === null || skipLink === void 0 ? void 0 : skipLink.blur();
8
+ };
9
+ this.componentWillLoad = () => {
10
+ window.addEventListener('scroll', this.hideOnScroll);
11
+ };
12
+ this.disconnectedCallback = () => {
13
+ window.removeEventListener('scroll', this.hideOnScroll);
14
+ };
15
+ this.buttonText = "Skip To Main Content";
16
+ this.sectionId = "";
17
+ }
18
+ render() {
19
+ return (h(Host, null, h("slot", null), h("a", { tabindex: 0, class: "skip-link", href: `#${this.sectionId}` }, this.buttonText)));
20
+ }
21
+ static get is() { return "ptc-nav-skip-to-content"; }
22
+ static get encapsulation() { return "shadow"; }
23
+ static get originalStyleUrls() {
24
+ return {
25
+ "$": ["ptc-nav-skip-to-content.scss"]
26
+ };
27
+ }
28
+ static get styleUrls() {
29
+ return {
30
+ "$": ["ptc-nav-skip-to-content.css"]
31
+ };
32
+ }
33
+ static get properties() {
34
+ return {
35
+ "buttonText": {
36
+ "type": "string",
37
+ "mutable": false,
38
+ "complexType": {
39
+ "original": "string",
40
+ "resolved": "string",
41
+ "references": {}
42
+ },
43
+ "required": false,
44
+ "optional": false,
45
+ "docs": {
46
+ "tags": [],
47
+ "text": ""
48
+ },
49
+ "attribute": "button-text",
50
+ "reflect": false,
51
+ "defaultValue": "\"Skip To Main Content\""
52
+ },
53
+ "sectionId": {
54
+ "type": "string",
55
+ "mutable": false,
56
+ "complexType": {
57
+ "original": "string",
58
+ "resolved": "string",
59
+ "references": {}
60
+ },
61
+ "required": false,
62
+ "optional": false,
63
+ "docs": {
64
+ "tags": [],
65
+ "text": ""
66
+ },
67
+ "attribute": "section-id",
68
+ "reflect": false,
69
+ "defaultValue": "\"\""
70
+ }
71
+ };
72
+ }
73
+ static get elementRef() { return "hostEle"; }
74
+ }
@@ -68,28 +68,11 @@ ptc-link, ptc-square-card,
68
68
  line-height: var(--ptc-line-height-densest);
69
69
  display: inline-block;
70
70
  }
71
- :host .news-secondary-title {
72
- margin: 0 0 20px 0;
73
- font-size: var(--ptc-font-size-medium);
74
- color: var(--color-gray-10);
75
- }
76
- @media only screen and (min-width: 768px) {
77
- :host .news-secondary-title {
78
- font-size: var(--ptc-font-size-large);
79
- }
80
- }
81
71
  :host .news-date {
82
72
  margin-bottom: 20px;
83
73
  display: inline-block;
84
74
  font-size: var(--ptc-font-size-small);
85
75
  }
86
- :host .news-summary {
87
- font-size: var(--ptc-font-size-medium);
88
- color: var(--color-gray-10);
89
- font-weight: var(--ptc-font-weight-medium);
90
- line-height: var(--ptc-line-height-normal);
91
- margin: 0 0 20px 0;
92
- }
93
76
  :host .news-content {
94
77
  padding-top: var(--ptc-element-spacing-08);
95
78
  }
@@ -2,15 +2,13 @@ import { Host, h } from '@stencil/core';
2
2
  export class PtcNews {
3
3
  constructor() {
4
4
  this.newsTag = undefined;
5
- this.newsSecondaryTitle = undefined;
6
5
  this.newsDate = undefined;
7
- this.newsSummary = undefined;
8
6
  this.newsImage = undefined;
9
7
  this.newsImageAlt = undefined;
10
8
  this.newsDownloadUrl = undefined;
11
9
  }
12
10
  render() {
13
- return (h(Host, null, h("div", { class: "news-container" }, this.newsTag && h("span", { class: "news-tag" }, this.newsTag), h("slot", { name: "news-title" }), this.newsSecondaryTitle && h("h2", { class: "news-secondary-title", innerHTML: this.newsSecondaryTitle }), this.newsDate && h("span", { class: "news-date" }, this.newsDate), this.newsSummary && h("h2", { class: "news-summary", innerHTML: this.newsSummary }), this.getArticleImage(), h("div", { class: "news-content" }, h("slot", { name: "share-icons" }), h("slot", null)))));
11
+ return (h(Host, null, h("div", { class: "news-container" }, this.newsTag && h("span", { class: "news-tag" }, this.newsTag), h("slot", { name: "news-title" }), h("slot", { name: "news-secondary-title" }), this.newsDate && h("span", { class: "news-date" }, this.newsDate), h("slot", { name: "news-summary" }), this.getArticleImage(), h("div", { class: "news-content" }, h("slot", { name: "share-icons" }), h("slot", null)))));
14
12
  }
15
13
  getArticleImage() {
16
14
  if (this.newsImage && this.newsDownloadUrl) {
@@ -51,23 +49,6 @@ export class PtcNews {
51
49
  "attribute": "news-tag",
52
50
  "reflect": false
53
51
  },
54
- "newsSecondaryTitle": {
55
- "type": "string",
56
- "mutable": false,
57
- "complexType": {
58
- "original": "string",
59
- "resolved": "string",
60
- "references": {}
61
- },
62
- "required": false,
63
- "optional": true,
64
- "docs": {
65
- "tags": [],
66
- "text": "News Secondary Title"
67
- },
68
- "attribute": "news-secondary-title",
69
- "reflect": false
70
- },
71
52
  "newsDate": {
72
53
  "type": "string",
73
54
  "mutable": false,
@@ -85,23 +66,6 @@ export class PtcNews {
85
66
  "attribute": "news-date",
86
67
  "reflect": false
87
68
  },
88
- "newsSummary": {
89
- "type": "string",
90
- "mutable": false,
91
- "complexType": {
92
- "original": "string",
93
- "resolved": "string",
94
- "references": {}
95
- },
96
- "required": false,
97
- "optional": true,
98
- "docs": {
99
- "tags": [],
100
- "text": "News summary"
101
- },
102
- "attribute": "news-summary",
103
- "reflect": false
104
- },
105
69
  "newsImage": {
106
70
  "type": "string",
107
71
  "mutable": false,
@@ -0,0 +1,73 @@
1
+ h1,
2
+ h2,
3
+ h3,
4
+ h4,
5
+ h5,
6
+ h6,
7
+ p,
8
+ ul,
9
+ li,
10
+ ptc-subnav,
11
+ ptc-tab-list,
12
+ ptc-link, ptc-square-card,
13
+ .hyphenate-text, ptc-footer {
14
+ word-break: break-word;
15
+ hyphens: manual;
16
+ -webkit-hyphens: manual;
17
+ -moz-hyphens: manual;
18
+ -ms-hyphens: manual;
19
+ }
20
+ @supports (hyphenate-limit-chars: 12 3 3) {
21
+ h1,
22
+ h2,
23
+ h3,
24
+ h4,
25
+ h5,
26
+ h6,
27
+ p,
28
+ ul,
29
+ li,
30
+ ptc-subnav,
31
+ ptc-tab-list,
32
+ ptc-link, ptc-square-card,
33
+ .hyphenate-text, ptc-footer {
34
+ hyphens: auto;
35
+ -webkit-hyphenate-limit-before: 3;
36
+ /* For Safari */
37
+ -webkit-hyphenate-limit-after: 3;
38
+ /* For Safari */
39
+ hyphenate-limit-chars: 12 3 3;
40
+ hyphenate-limit-lines: 2;
41
+ hyphenate-limit-last: always;
42
+ hyphenate-limit-zone: 6%;
43
+ -webkit-hyphens: auto;
44
+ -webkit-hyphenate-limit-before: 3;
45
+ -webkit-hyphenate-limit-after: 3;
46
+ -webkit-hyphenate-limit-chars: 12 3 3;
47
+ -webkit-hyphenate-limit-lines: 2;
48
+ -moz-hyphens: auto;
49
+ -moz-hyphenate-limit-chars: 12 3 3;
50
+ -moz-hyphenate-limit-lines: 2;
51
+ -ms-hyphens: auto;
52
+ -ms-hyphenate-limit-chars: 12 3 3;
53
+ -ms-hyphenate-limit-lines: 2;
54
+ }
55
+ }
56
+
57
+ :host {
58
+ display: block;
59
+ height: max-content;
60
+ }
61
+ :host div {
62
+ display: flex;
63
+ gap: 16px;
64
+ }
65
+ :host div a {
66
+ width: 36px;
67
+ height: 36px;
68
+ display: flex;
69
+ justify-content: center;
70
+ align-items: center;
71
+ border-radius: 4px;
72
+ background-color: var(--color-gray-10);
73
+ }
@@ -0,0 +1,121 @@
1
+ import { Host, h } from '@stencil/core';
2
+ import facebookSVG from '../../media/svg-imgs/facebook.svg';
3
+ import linkedinSVG from '../../media/svg-imgs/linkedin.svg';
4
+ import xSVG from '../../media/svg-imgs/x.svg';
5
+ import emailSVG from '../../media/svg-imgs/email.svg';
6
+ export class PtcSocialIcons {
7
+ constructor() {
8
+ this.componentWillLoad = () => { };
9
+ this.facebookUrl = undefined;
10
+ this.linkedinUrl = undefined;
11
+ this.xUrl = undefined;
12
+ this.emailTo = undefined;
13
+ this.target = '_blank';
14
+ }
15
+ render() {
16
+ return (h(Host, null, h("slot", null), h("div", null, this.facebookUrl && h("a", { href: this.facebookUrl, title: 'Facebook', innerHTML: facebookSVG, target: this.target }), this.linkedinUrl && h("a", { href: this.linkedinUrl, title: 'LinkedIn', innerHTML: linkedinSVG, target: this.target }), this.xUrl && h("a", { href: this.xUrl, title: 'X', innerHTML: xSVG, target: this.target }), this.emailTo && h("a", { href: `mailto:${this.emailTo}`, title: 'Email', innerHTML: emailSVG, target: this.target }))));
17
+ }
18
+ static get is() { return "ptc-social-icons"; }
19
+ static get encapsulation() { return "shadow"; }
20
+ static get originalStyleUrls() {
21
+ return {
22
+ "$": ["ptc-social-icons.scss"]
23
+ };
24
+ }
25
+ static get styleUrls() {
26
+ return {
27
+ "$": ["ptc-social-icons.css"]
28
+ };
29
+ }
30
+ static get properties() {
31
+ return {
32
+ "facebookUrl": {
33
+ "type": "string",
34
+ "mutable": false,
35
+ "complexType": {
36
+ "original": "string",
37
+ "resolved": "string",
38
+ "references": {}
39
+ },
40
+ "required": false,
41
+ "optional": false,
42
+ "docs": {
43
+ "tags": [],
44
+ "text": ""
45
+ },
46
+ "attribute": "facebook-url",
47
+ "reflect": false
48
+ },
49
+ "linkedinUrl": {
50
+ "type": "string",
51
+ "mutable": false,
52
+ "complexType": {
53
+ "original": "string",
54
+ "resolved": "string",
55
+ "references": {}
56
+ },
57
+ "required": false,
58
+ "optional": false,
59
+ "docs": {
60
+ "tags": [],
61
+ "text": ""
62
+ },
63
+ "attribute": "linkedin-url",
64
+ "reflect": false
65
+ },
66
+ "xUrl": {
67
+ "type": "string",
68
+ "mutable": false,
69
+ "complexType": {
70
+ "original": "string",
71
+ "resolved": "string",
72
+ "references": {}
73
+ },
74
+ "required": false,
75
+ "optional": false,
76
+ "docs": {
77
+ "tags": [],
78
+ "text": ""
79
+ },
80
+ "attribute": "x-url",
81
+ "reflect": false
82
+ },
83
+ "emailTo": {
84
+ "type": "string",
85
+ "mutable": false,
86
+ "complexType": {
87
+ "original": "string",
88
+ "resolved": "string",
89
+ "references": {}
90
+ },
91
+ "required": false,
92
+ "optional": false,
93
+ "docs": {
94
+ "tags": [],
95
+ "text": ""
96
+ },
97
+ "attribute": "email-to",
98
+ "reflect": false
99
+ },
100
+ "target": {
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": ""
113
+ },
114
+ "attribute": "target",
115
+ "reflect": false,
116
+ "defaultValue": "'_blank'"
117
+ }
118
+ };
119
+ }
120
+ static get elementRef() { return "hostEle"; }
121
+ }
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="18" height="12" viewBox="0 0 18 12" fill="none">
2
+ <path d="M0.299866 0L9.07001 6.74679L17.4921 0H0.299866Z" fill="white"/>
3
+ <path d="M-0.00482178 1.4265V12L17.967 11.8667V1.25317L9.05766 8.34663L-0.00482178 1.4265Z" fill="white"/>
4
+ </svg>
@@ -14,6 +14,18 @@ export const AuthorListingExample: {
14
14
  new (): AuthorListingExample;
15
15
  };
16
16
 
17
+ interface BlogDetailContent extends Components.BlogDetailContent, HTMLElement {}
18
+ export const BlogDetailContent: {
19
+ prototype: BlogDetailContent;
20
+ new (): BlogDetailContent;
21
+ };
22
+
23
+ interface BlogDetailLayout extends Components.BlogDetailLayout, HTMLElement {}
24
+ export const BlogDetailLayout: {
25
+ prototype: BlogDetailLayout;
26
+ new (): BlogDetailLayout;
27
+ };
28
+
17
29
  interface BlogsSearchSection extends Components.BlogsSearchSection, HTMLElement {}
18
30
  export const BlogsSearchSection: {
19
31
  prototype: BlogsSearchSection;
@@ -506,6 +518,12 @@ export const PtcNavPills: {
506
518
  new (): PtcNavPills;
507
519
  };
508
520
 
521
+ interface PtcNavSkipToContent extends Components.PtcNavSkipToContent, HTMLElement {}
522
+ export const PtcNavSkipToContent: {
523
+ prototype: PtcNavSkipToContent;
524
+ new (): PtcNavSkipToContent;
525
+ };
526
+
509
527
  interface PtcNavSlider extends Components.PtcNavSlider, HTMLElement {}
510
528
  export const PtcNavSlider: {
511
529
  prototype: PtcNavSlider;
@@ -746,6 +764,12 @@ export const PtcSlitCard: {
746
764
  new (): PtcSlitCard;
747
765
  };
748
766
 
767
+ interface PtcSocialIcons extends Components.PtcSocialIcons, HTMLElement {}
768
+ export const PtcSocialIcons: {
769
+ prototype: PtcSocialIcons;
770
+ new (): PtcSocialIcons;
771
+ };
772
+
749
773
  interface PtcSocialIconsFooter extends Components.PtcSocialIconsFooter, HTMLElement {}
750
774
  export const PtcSocialIconsFooter: {
751
775
  prototype: PtcSocialIconsFooter;