@ptcwebops/ptcw-design 1.5.8 → 1.6.0

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 (97) hide show
  1. package/dist/cjs/{icon-asset_16.cjs.entry.js → bundle-jumbotron-example_14.cjs.entry.js} +401 -407
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/ptc-back-to-top.cjs.entry.js +46 -0
  4. package/dist/cjs/ptc-card.cjs.entry.js +1 -1
  5. package/dist/cjs/ptc-link.cjs.entry.js +1 -1
  6. package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +1 -1
  7. package/dist/cjs/ptc-product-card.cjs.entry.js +33 -0
  8. package/dist/cjs/ptc-product-category.cjs.entry.js +21 -0
  9. package/dist/cjs/ptc-product-dropdown.cjs.entry.js +80 -0
  10. package/dist/cjs/ptc-product-highlight-card.cjs.entry.js +23 -0
  11. package/dist/cjs/ptc-product-list.cjs.entry.js +128 -0
  12. package/dist/cjs/ptc-product-sidebar.cjs.entry.js +130 -0
  13. package/dist/cjs/{ptc-social-share.cjs.entry.js → ptc-progress-bar_2.cjs.entry.js} +26 -5
  14. package/dist/cjs/ptc-slit-card.cjs.entry.js +36 -0
  15. package/dist/cjs/ptc-span.cjs.entry.js +3 -1
  16. package/dist/cjs/ptc-sticky-title.cjs.entry.js +34 -0
  17. package/dist/cjs/ptcw-design.cjs.js +1 -1
  18. package/dist/collection/collection-manifest.json +3 -0
  19. package/dist/collection/components/icon-asset/media/designer.svg +36 -0
  20. package/dist/collection/components/ptc-card/ptc-card.css +4 -4
  21. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +48 -0
  22. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.js +1 -1
  23. package/dist/collection/components/ptc-link/ptc-link.css +23 -1
  24. package/dist/collection/components/ptc-link/ptc-link.js +2 -2
  25. package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.css +48 -0
  26. package/dist/collection/components/ptc-progress-bar/ptc-progress-bar.css +13 -0
  27. package/dist/collection/components/ptc-progress-bar/ptc-progress-bar.js +42 -0
  28. package/dist/collection/components/ptc-slit-card/ptc-slit-card.css +64 -0
  29. package/dist/collection/components/ptc-slit-card/ptc-slit-card.js +181 -0
  30. package/dist/collection/components/ptc-social-share/ptc-social-share.js +7 -7
  31. package/dist/collection/components/ptc-span/ptc-span.css +34 -0
  32. package/dist/collection/components/ptc-span/ptc-span.js +22 -2
  33. package/dist/collection/components/ptc-sticky-title/media/logo.png +0 -0
  34. package/dist/collection/components/ptc-sticky-title/ptc-sticky-title.css +115 -0
  35. package/dist/collection/components/ptc-sticky-title/ptc-sticky-title.js +89 -0
  36. package/dist/custom-elements/index.d.ts +18 -0
  37. package/dist/custom-elements/index.js +103 -13
  38. package/dist/esm/{icon-asset_16.entry.js → bundle-jumbotron-example_14.entry.js} +396 -400
  39. package/dist/esm/loader.js +1 -1
  40. package/dist/esm/ptc-back-to-top.entry.js +42 -0
  41. package/dist/esm/ptc-card.entry.js +1 -1
  42. package/dist/esm/ptc-link.entry.js +1 -1
  43. package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
  44. package/dist/esm/ptc-product-card.entry.js +29 -0
  45. package/dist/esm/ptc-product-category.entry.js +17 -0
  46. package/dist/esm/ptc-product-dropdown.entry.js +76 -0
  47. package/dist/esm/ptc-product-highlight-card.entry.js +19 -0
  48. package/dist/esm/ptc-product-list.entry.js +124 -0
  49. package/dist/esm/ptc-product-sidebar.entry.js +126 -0
  50. package/dist/esm/{ptc-social-share.entry.js → ptc-progress-bar_2.entry.js} +26 -6
  51. package/dist/esm/ptc-slit-card.entry.js +32 -0
  52. package/dist/esm/ptc-span.entry.js +3 -1
  53. package/dist/esm/ptc-sticky-title.entry.js +30 -0
  54. package/dist/esm/ptcw-design.js +1 -1
  55. package/dist/ptcw-design/media/designer.svg +36 -0
  56. package/dist/ptcw-design/media/logo.png +0 -0
  57. package/dist/ptcw-design/{p-9703a463.entry.js → p-046b0224.entry.js} +1 -1
  58. package/dist/ptcw-design/p-19ec063d.entry.js +1 -0
  59. package/dist/ptcw-design/{p-078e0f3d.entry.js → p-2404b2db.entry.js} +1 -1
  60. package/dist/ptcw-design/p-43e72cf0.entry.js +1 -0
  61. package/dist/ptcw-design/p-49dc9b68.entry.js +1 -0
  62. package/dist/ptcw-design/p-65513c45.entry.js +1 -0
  63. package/dist/ptcw-design/p-798c2328.entry.js +1 -0
  64. package/dist/ptcw-design/p-8148b960.entry.js +1 -0
  65. package/dist/ptcw-design/p-ac5dfbd0.entry.js +1 -0
  66. package/dist/ptcw-design/p-af3a4142.entry.js +1 -0
  67. package/dist/ptcw-design/p-c26920ef.entry.js +1 -0
  68. package/dist/ptcw-design/{p-325b2d5c.entry.js → p-c2c85e61.entry.js} +1 -1
  69. package/dist/ptcw-design/p-cd44eedb.entry.js +1 -0
  70. package/dist/ptcw-design/p-e341cb46.entry.js +1 -0
  71. package/dist/ptcw-design/p-ff1585a9.entry.js +1 -0
  72. package/dist/ptcw-design/ptcw-design.css +1 -1
  73. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  74. package/dist/types/components/ptc-link/ptc-link.d.ts +1 -1
  75. package/dist/types/components/ptc-progress-bar/ptc-progress-bar.d.ts +5 -0
  76. package/dist/types/components/ptc-slit-card/ptc-slit-card.d.ts +36 -0
  77. package/dist/types/components/ptc-social-share/ptc-social-share.d.ts +1 -1
  78. package/dist/types/components/ptc-span/ptc-span.d.ts +5 -1
  79. package/dist/types/components/ptc-sticky-title/ptc-sticky-title.d.ts +8 -0
  80. package/dist/types/components.d.ts +127 -6
  81. package/package.json +1 -1
  82. package/readme.md +1 -1
  83. package/dist/cjs/bundle-jumbotron-example.cjs.entry.js +0 -50
  84. package/dist/cjs/interfaces-574e6df7.js +0 -15
  85. package/dist/cjs/max-width-container_3.cjs.entry.js +0 -237
  86. package/dist/cjs/ptc-jumbotron.cjs.entry.js +0 -135
  87. package/dist/esm/bundle-jumbotron-example.entry.js +0 -46
  88. package/dist/esm/interfaces-7c0243be.js +0 -12
  89. package/dist/esm/max-width-container_3.entry.js +0 -231
  90. package/dist/esm/ptc-jumbotron.entry.js +0 -131
  91. package/dist/ptcw-design/p-0f8784e9.entry.js +0 -1
  92. package/dist/ptcw-design/p-609d4967.entry.js +0 -1
  93. package/dist/ptcw-design/p-6e8222ce.entry.js +0 -1
  94. package/dist/ptcw-design/p-73ea7065.entry.js +0 -1
  95. package/dist/ptcw-design/p-7db9319d.entry.js +0 -1
  96. package/dist/ptcw-design/p-e8c46d2e.entry.js +0 -1
  97. package/dist/ptcw-design/p-ee1183b2.js +0 -1
@@ -395,4 +395,40 @@
395
395
  <path id="rect28" d="M 0,0 H 4 V 18 H 0 Z" />
396
396
  <path id="rect30" d="m 10,0 h 4 v 18 h -4 z" />
397
397
  </symbol>
398
+ <symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="twitter-blogs-icon">
399
+ <g id="Layer_2">
400
+ <g id="Layer_1-2">
401
+ <circle cx="12" cy="12" r="12" style="fill:#050606"></circle>
402
+ <path style="fill:#fff;" d="M10.07,17H9.4a1.13,1.13,0,0,0-.26,0,5.31,5.31,0,0,1-1.37-.23,6.56,6.56,0,0,1-1.48-.6,2.5,2.5,0,0,1-.39-.23.05.05,0,0,1,0-.07s0,0,.07,0l.51,0h.33c.23,0,.46,0,.68-.09a5,5,0,0,0,1.07-.35,4.76,4.76,0,0,0,.88-.5l.07-.05v0l-.34,0a2.63,2.63,0,0,1-1.3-.7,2.56,2.56,0,0,1-.6-.95c0-.11,0-.13.09-.11a2.63,2.63,0,0,0,.84,0h.07a2.67,2.67,0,0,1-.59-.23,2.56,2.56,0,0,1-.59-.45,2.53,2.53,0,0,1-.71-1.44,1.69,1.69,0,0,1,0-.33c0-.08,0-.1.1-.06a2.72,2.72,0,0,0,.62.23l.3,0h0a2.65,2.65,0,0,1-1-1.46,2.75,2.75,0,0,1-.05-.86,2.49,2.49,0,0,1,.29-1l0,0s0,0,.07,0a.86.86,0,0,1,.13.14A7.15,7.15,0,0,0,11,10c.24,0,.48.07.73.09.09,0,.11,0,.1-.1a2.22,2.22,0,0,1,0-.63A2.33,2.33,0,0,1,12,8.47a2.58,2.58,0,0,1,.56-.79A2.54,2.54,0,0,1,13.82,7c.12,0,.25,0,.38,0a5.62,5.62,0,0,1,.58,0,2,2,0,0,1,.61.17,2.48,2.48,0,0,1,.76.51.16.16,0,0,0,.16,0,5,5,0,0,0,.92-.3l.47-.23s.07-.06.11,0,0,.07,0,.11a2.78,2.78,0,0,1-.51.84,3.07,3.07,0,0,1-.38.34.33.33,0,0,1-.1.06l.11,0A5.12,5.12,0,0,0,18,8.21l.09,0s0,0,0,0a.13.13,0,0,1,0,.08,4.9,4.9,0,0,1-.77.87L17,9.46a.16.16,0,0,0-.07.14,1.55,1.55,0,0,1,0,.22,8.24,8.24,0,0,1-.07,1,7.48,7.48,0,0,1-.59,2,7.33,7.33,0,0,1-1.06,1.7,6.88,6.88,0,0,1-2,1.65,6.52,6.52,0,0,1-1.72.66,5.62,5.62,0,0,1-.82.14,4.87,4.87,0,0,1-.54,0Z"></path>
403
+ </g>
404
+ </g>
405
+ </symbol>
406
+ <symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="linkedin-blogs-icon">
407
+ <g id="Layer_2">
408
+ <g id="Layer_1-2">
409
+ <circle cx="12" cy="12" r="12" style="fill:#050606"></circle>
410
+ <path style="fill:#fff;" d="M12.35,10.41l.14-.18a2.21,2.21,0,0,1,.92-.62,3.23,3.23,0,0,1,2.21,0,1.74,1.74,0,0,1,1.16,1.18,3.81,3.81,0,0,1,.2,1.1c0,.4,0,.81,0,1.21v2.8c0,.13,0,.13-.13.13H15.15C15,16,15,16,15,15.89v-3.2a2.2,2.2,0,0,0-.21-1,1,1,0,0,0-1.12-.59,1.33,1.33,0,0,0-.88.42,1.72,1.72,0,0,0-.34.77,4,4,0,0,0,0,.6v2.95c0,.13,0,.13-.14.13H10.59c-.07,0-.1,0-.1-.1V9.59c0-.07,0-.1.1-.1h1.65c.07,0,.1,0,.09.09v.73A.2.2,0,0,0,12.35,10.41Z"></path>
411
+ <path style="fill:#fff;" d="M7.24,12.74V9.61c0-.12,0-.12.13-.12H9.09c.11,0,.11,0,.11.11v6.29c0,.11,0,.11-.11.11H7.36c-.12,0-.12,0-.12-.12Z"></path>
412
+ <path style="fill:#fff;" d="M7,7.22A1.21,1.21,0,0,1,8.22,6,1.23,1.23,0,0,1,9.45,7.22,1.25,1.25,0,0,1,8.22,8.45,1.23,1.23,0,0,1,7,7.22Z"></path>
413
+ </g>
414
+ </g>
415
+ </symbol>
416
+ <symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="mail-blogs-icon">
417
+ <defs></defs>
418
+ <g id="Layer_2">
419
+ <g id="Layer_1-2">
420
+ <circle cx="12" cy="12" r="12" style="fill:#050606"></circle>
421
+ <polygon points="5.77 7.5 12.06 12.55 18.11 7.5 5.77 7.5" style="fill:#fff;"></polygon>
422
+ <polygon points="5.54 8.57 5.54 16.5 18.46 16.4 18.46 8.44 12.05 13.75 5.54 8.57" style="fill:#fff;"></polygon>
423
+ </g>
424
+ </g>
425
+ </symbol>
426
+ <symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="facebook-blogs-icon">
427
+ <g id="Layer_2">
428
+ <g id="Layer_1-2">
429
+ <circle style="fill:#050606" cx="12" cy="12" r="12"></circle>
430
+ <path style="fill:#fff;" d="M8.78,10.58v2.17H10.7V18h2.35V12.75h1.73l.34-2.17H13.05V9s.1-.54.33-.7A1.35,1.35,0,0,1,14.1,8h1.12V6.15A11.64,11.64,0,0,0,13.17,6a2.56,2.56,0,0,0-2,1.08c-.69.85-.48,3.48-.48,3.48Z"></path>
431
+ </g>
432
+ </g>
433
+ </symbol>
398
434
  </svg>
@@ -1133,7 +1133,7 @@
1133
1133
  :host(.related-card) .card-border {
1134
1134
  background: var(--color-white);
1135
1135
  box-shadow: var(--ptc-shadow-small);
1136
- border-radius: 3px;
1136
+ border-radius: var(--ptc-border-radius-standard);
1137
1137
  width: 100%;
1138
1138
  height: auto;
1139
1139
  display: flex;
@@ -1159,9 +1159,9 @@
1159
1159
  position: absolute;
1160
1160
  top: 0;
1161
1161
  left: 0;
1162
- margin-top: 24px;
1162
+ margin-top: var(--ptc-element-spacing-06);
1163
1163
  background-color: var(--color-white);
1164
- padding: 4px 24px;
1164
+ padding: var(--ptc-element-spacing-01) var(--ptc-element-spacing-05);
1165
1165
  font-family: var(--ptc-font-latin);
1166
1166
  font-style: var(--ptc-font-style-normal);
1167
1167
  font-weight: var(--ptc-font-weight-bold);
@@ -1244,7 +1244,7 @@
1244
1244
  }
1245
1245
  :host(.related-card) .card-body {
1246
1246
  box-sizing: border-box;
1247
- padding: 14px var(--ptc-element-spacing-06) var(--ptc-element-spacing-07) var(--ptc-element-spacing-06);
1247
+ padding: var(--ptc-element-spacing-04) var(--ptc-element-spacing-06) var(--ptc-element-spacing-07) var(--ptc-element-spacing-06);
1248
1248
  }
1249
1249
  :host(.related-card) .card-body .card-date-text {
1250
1250
  display: flex;
@@ -426,6 +426,46 @@
426
426
  margin-bottom: var(--ptc-element-spacing-06) !important;
427
427
  }
428
428
 
429
+ .u-margin-xxxl {
430
+ margin: var(--ptc-element-spacing-07) !important;
431
+ }
432
+
433
+ .u-marginTop-xxxl {
434
+ margin-top: var(--ptc-element-spacing-07) !important;
435
+ }
436
+
437
+ .u-marginLeft-xxxl {
438
+ margin-left: var(--ptc-element-spacing-07) !important;
439
+ }
440
+
441
+ .u-marginRight-xxxl {
442
+ margin-right: var(--ptc-element-spacing-07) !important;
443
+ }
444
+
445
+ .u-marginBottom-xxxl {
446
+ margin-bottom: var(--ptc-element-spacing-07) !important;
447
+ }
448
+
449
+ .u-margin-4xl {
450
+ margin: var(--ptc-element-spacing-08) !important;
451
+ }
452
+
453
+ .u-marginTop-4xl {
454
+ margin-top: var(--ptc-element-spacing-08) !important;
455
+ }
456
+
457
+ .u-marginLeft-4xl {
458
+ margin-left: var(--ptc-element-spacing-08) !important;
459
+ }
460
+
461
+ .u-marginRight-4xl {
462
+ margin-right: var(--ptc-element-spacing-08) !important;
463
+ }
464
+
465
+ .u-marginBottom-4xl {
466
+ margin-bottom: var(--ptc-element-spacing-08) !important;
467
+ }
468
+
429
469
  .u-textAlign-ctr {
430
470
  text-align: center !important;
431
471
  }
@@ -759,6 +799,10 @@
759
799
  align-items: flex-end;
760
800
  }
761
801
 
802
+ .flex-align-items-center {
803
+ align-items: center;
804
+ }
805
+
762
806
  .u-flex-nowrap {
763
807
  flex-wrap: nowrap;
764
808
  }
@@ -791,6 +835,10 @@
791
835
  justify-self: stretch;
792
836
  }
793
837
 
838
+ .u-flex-justify-center {
839
+ justify-content: center;
840
+ }
841
+
794
842
  .embed-responsive {
795
843
  position: relative;
796
844
  display: block;
@@ -61,7 +61,7 @@ export class PtcJumbotron {
61
61
  default:
62
62
  mediaElement = h("ptc-img", { "img-url": this.bgSrc, styles: ".smart-bg{background-position:right !important;}" });
63
63
  }
64
- return (h(Host, { class: classMap }, h("div", { class: "parent" }, 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 content-layout" }, h("max-width-container", { "max-width": "578", breakpoint: 992, "content-align": this.jumbotronType === 'text' ? 'center' : this.textAlign, styles: ":host{z-index: 9999}" }, h("slot", { name: "breadcrumb" }), h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), h("slot", { name: "main-title" }), h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), h("ptc-para", { "font-size": this.jumbotronType === 'text' && this.isMobile ? 'x-small' : 'small', "font-weight": this.jumbotronType === 'text' && this.isMobile ? 'w-7' : 'w-4', "para-margin": "margin-bottom-6", "para-color": "white", "para-line-h": "line-height-p", "para-align": this.jumbotronType === 'text' ? 'center' : 'left' }, h("ptc-tooltip", { "text-lines": "8", description: this.subTitle, position: "right", styles: `.ellipsis-by-line-boxing{color: ${this.contentColor};}` })), h("div", { class: `u-flex u-flex-wrap gap-adjustment${this.jumbotronType === 'text' ? ' text-adjustment' : ''}` }, h("slot", { name: "j-cta" }))), this.hasPopupVideo ? h("slot", { name: "video" }) : null, this.jumbotronType === 'png' ? (h("div", { class: "desktop-media-image" }, h("ptc-picture", { "is-full-width": true, src: this.pngSrc }))) : null, this.jumbotronType === 'gif' ? (h("div", { class: "desktop-media-image desk-gif-adjustment" }, h("img", { src: this.gifSrc }))) : null)))));
64
+ return (h(Host, { class: classMap }, h("div", { class: "parent" }, 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 content-layout" }, h("max-width-container", { "max-width": "578", breakpoint: 992, "content-align": this.jumbotronType === 'text' ? 'center' : this.textAlign, styles: ":host{z-index: 999}" }, h("slot", { name: "breadcrumb" }), h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), h("slot", { name: "main-title" }), h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), h("ptc-para", { "font-size": this.jumbotronType === 'text' && this.isMobile ? 'x-small' : 'small', "font-weight": this.jumbotronType === 'text' && this.isMobile ? 'w-7' : 'w-4', "para-margin": "margin-bottom-6", "para-color": "white", "para-line-h": "line-height-p", "para-align": this.jumbotronType === 'text' ? 'center' : 'left' }, h("ptc-tooltip", { "text-lines": "8", description: this.subTitle, position: "right", styles: `.ellipsis-by-line-boxing{color: ${this.contentColor};}` })), h("div", { class: `u-flex u-flex-wrap gap-adjustment${this.jumbotronType === 'text' ? ' text-adjustment' : ''}` }, h("slot", { name: "j-cta" }))), this.hasPopupVideo ? h("slot", { name: "video" }) : null, this.jumbotronType === 'png' ? (h("div", { class: "desktop-media-image" }, h("ptc-picture", { "is-full-width": true, src: this.pngSrc }))) : null, this.jumbotronType === 'gif' ? (h("div", { class: "desktop-media-image desk-gif-adjustment" }, h("img", { src: this.gifSrc }))) : null)))));
65
65
  }
66
66
  getCssClassMap() {
67
67
  return {
@@ -99,7 +99,13 @@
99
99
  font-size: var(--ptc-font-size-medium);
100
100
  }
101
101
 
102
- .nav-title:focus, .nav-title-link:focus, .nav-card-link:focus, .primary-nav-link:focus, .secondary-nav-link:focus, .footer-nav-link:focus, .copyright-link:focus {
102
+ .nav-title:focus,
103
+ .nav-title-link:focus,
104
+ .nav-card-link:focus,
105
+ .primary-nav-link:focus,
106
+ .secondary-nav-link:focus,
107
+ .footer-nav-link:focus,
108
+ .copyright-link:focus {
103
109
  outline: 3px solid var(--color-blue-07);
104
110
  outline-offset: 2px;
105
111
  }
@@ -278,6 +284,22 @@
278
284
  z-index: 2;
279
285
  }
280
286
 
287
+ .standard-link, .blog-link {
288
+ font-weight: 800;
289
+ line-height: 1;
290
+ display: flex;
291
+ align-items: center;
292
+ color: var(--color-gray-10);
293
+ text-decoration: underline;
294
+ text-decoration-thickness: 2px;
295
+ text-decoration-color: var(--color-green-06);
296
+ text-underline-offset: 5px;
297
+ transition: text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout);
298
+ }
299
+ .standard-link:hover, .blog-link:hover {
300
+ color: var(--color-green-06);
301
+ }
302
+
281
303
  .w-thin {
282
304
  font-weight: var(--ptc-font-weight-thin);
283
305
  }
@@ -138,8 +138,8 @@ export class PtcLink {
138
138
  "type": "string",
139
139
  "mutable": false,
140
140
  "complexType": {
141
- "original": "'simple' | 'underline' | 'nav-title'| 'primary-nav-link' | 'nav-title-link' | 'nav-card-link' | 'secondary-nav-link' | 'footer-nav-link' | 'copyright-link' | 'product-link' | 'd-green-underline' | 'd-white-underline' | 'global'",
142
- "resolved": "\"copyright-link\" | \"d-green-underline\" | \"d-white-underline\" | \"footer-nav-link\" | \"global\" | \"nav-card-link\" | \"nav-title\" | \"nav-title-link\" | \"primary-nav-link\" | \"product-link\" | \"secondary-nav-link\" | \"simple\" | \"underline\"",
141
+ "original": "'simple' | 'underline' | 'nav-title'| 'primary-nav-link' | 'nav-title-link' | 'nav-card-link' | 'secondary-nav-link' | 'footer-nav-link' | 'copyright-link' | 'product-link' | 'd-green-underline' | 'd-white-underline' | 'global' | 'standard-link'",
142
+ "resolved": "\"copyright-link\" | \"d-green-underline\" | \"d-white-underline\" | \"footer-nav-link\" | \"global\" | \"nav-card-link\" | \"nav-title\" | \"nav-title-link\" | \"primary-nav-link\" | \"product-link\" | \"secondary-nav-link\" | \"simple\" | \"standard-link\" | \"underline\"",
143
143
  "references": {}
144
144
  },
145
145
  "required": false,
@@ -371,6 +371,46 @@
371
371
  margin-bottom: var(--ptc-element-spacing-06) !important;
372
372
  }
373
373
 
374
+ .u-margin-xxxl {
375
+ margin: var(--ptc-element-spacing-07) !important;
376
+ }
377
+
378
+ .u-marginTop-xxxl {
379
+ margin-top: var(--ptc-element-spacing-07) !important;
380
+ }
381
+
382
+ .u-marginLeft-xxxl {
383
+ margin-left: var(--ptc-element-spacing-07) !important;
384
+ }
385
+
386
+ .u-marginRight-xxxl {
387
+ margin-right: var(--ptc-element-spacing-07) !important;
388
+ }
389
+
390
+ .u-marginBottom-xxxl {
391
+ margin-bottom: var(--ptc-element-spacing-07) !important;
392
+ }
393
+
394
+ .u-margin-4xl {
395
+ margin: var(--ptc-element-spacing-08) !important;
396
+ }
397
+
398
+ .u-marginTop-4xl {
399
+ margin-top: var(--ptc-element-spacing-08) !important;
400
+ }
401
+
402
+ .u-marginLeft-4xl {
403
+ margin-left: var(--ptc-element-spacing-08) !important;
404
+ }
405
+
406
+ .u-marginRight-4xl {
407
+ margin-right: var(--ptc-element-spacing-08) !important;
408
+ }
409
+
410
+ .u-marginBottom-4xl {
411
+ margin-bottom: var(--ptc-element-spacing-08) !important;
412
+ }
413
+
374
414
  .u-textAlign-ctr {
375
415
  text-align: center !important;
376
416
  }
@@ -704,6 +744,10 @@
704
744
  align-items: flex-end;
705
745
  }
706
746
 
747
+ .flex-align-items-center {
748
+ align-items: center;
749
+ }
750
+
707
751
  .u-flex-nowrap {
708
752
  flex-wrap: nowrap;
709
753
  }
@@ -736,6 +780,10 @@
736
780
  justify-self: stretch;
737
781
  }
738
782
 
783
+ .u-flex-justify-center {
784
+ justify-content: center;
785
+ }
786
+
739
787
  .embed-responsive {
740
788
  position: relative;
741
789
  display: block;
@@ -0,0 +1,13 @@
1
+ :host {
2
+ display: block;
3
+ }
4
+ :host .progress-bar-container {
5
+ height: 5px;
6
+ background-color: linear-gradient(272deg, #3b4550, #1a1a1a);
7
+ width: 100%;
8
+ }
9
+ :host .progress-bar {
10
+ height: 100%;
11
+ background-image: linear-gradient(270deg, #4795cd, #33a13c);
12
+ transition: width 0.3s ease-in-out;
13
+ }
@@ -0,0 +1,42 @@
1
+ import { Host, h } from '@stencil/core';
2
+ export class PtcProgressBar {
3
+ constructor() {
4
+ this.scrollPercentage = 0;
5
+ }
6
+ handleScroll() {
7
+ const scrollTop = document.documentElement.scrollTop;
8
+ const scrollHeight = document.documentElement.scrollHeight - document.documentElement.clientHeight;
9
+ console.log('scrollTop: ' + scrollTop + '; scorllHeight: ' + scrollHeight);
10
+ const percentage = (scrollTop / scrollHeight) * 100;
11
+ this.scrollPercentage = percentage;
12
+ }
13
+ render() {
14
+ return (h(Host, null, h("div", { class: "progress-bar-container" }, h("div", { class: "progress-bar", style: { width: `${this.scrollPercentage}%` } }))));
15
+ }
16
+ static get is() { return "ptc-progress-bar"; }
17
+ static get encapsulation() { return "shadow"; }
18
+ static get originalStyleUrls() {
19
+ return {
20
+ "$": ["ptc-progress-bar.scss"]
21
+ };
22
+ }
23
+ static get styleUrls() {
24
+ return {
25
+ "$": ["ptc-progress-bar.css"]
26
+ };
27
+ }
28
+ static get states() {
29
+ return {
30
+ "scrollPercentage": {}
31
+ };
32
+ }
33
+ static get listeners() {
34
+ return [{
35
+ "name": "scroll",
36
+ "method": "handleScroll",
37
+ "target": "window",
38
+ "capture": false,
39
+ "passive": true
40
+ }];
41
+ }
42
+ }
@@ -0,0 +1,64 @@
1
+ :host {
2
+ display: block;
3
+ }
4
+
5
+ :host(.sim-card) {
6
+ display: block;
7
+ }
8
+ :host(.sim-card) .card-link {
9
+ display: flex;
10
+ flex-direction: column;
11
+ outline: none;
12
+ text-decoration: none;
13
+ }
14
+ :host(.sim-card) .card-link .card-heading {
15
+ display: block;
16
+ background-color: #3b4550;
17
+ clip-path: polygon(0% 0%, calc(100% - 35px) 0%, 100% 45%, 100% 100%, 0% 100%);
18
+ }
19
+ :host(.sim-card) .card-link .card-heading h3 {
20
+ color: #fff;
21
+ font-family: Rajdhani, sans-serif;
22
+ font-size: 13px;
23
+ font-weight: 900;
24
+ line-height: 2.17;
25
+ margin: 15px 0px 15px 15px;
26
+ position: relative;
27
+ display: inline-block;
28
+ }
29
+ :host(.sim-card) .card-link .card-heading h3::before {
30
+ display: block;
31
+ position: absolute;
32
+ content: "";
33
+ width: 30px;
34
+ border-bottom: 2px solid var(--color-green-14);
35
+ bottom: 1px;
36
+ transition: width var(--ptc-transition-medium) var(--ptc-ease-inout);
37
+ }
38
+ :host(.sim-card) .card-link .card-body {
39
+ background: #fff;
40
+ box-shadow: 0 3px 25px 0 rgba(0, 0, 0, 0.16);
41
+ padding: 20px 15px;
42
+ border-bottom-left-radius: 4px;
43
+ border-bottom-right-radius: 4px;
44
+ }
45
+ :host(.sim-card) .card-link:hover {
46
+ outline: none;
47
+ text-decoration: none;
48
+ }
49
+ :host(.sim-card) .card-link:hover .card-heading {
50
+ display: block;
51
+ }
52
+ :host(.sim-card) .card-link:hover .card-heading h3::before {
53
+ width: 100%;
54
+ }
55
+ :host(.sim-card) .card-link:hover .card-body {
56
+ box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.3);
57
+ }
58
+ :host(.sim-card) .card-link:hover ::slotted([slot=slot-after-heading]) {
59
+ margin-left: var(--ptc-element-spacing-04);
60
+ }
61
+ :host(.sim-card) ::slotted([slot=slot-after-heading]) {
62
+ margin-left: var(--ptc-element-spacing-01);
63
+ transition: margin-left var(--ptc-transition-medium) var(--ptc-ease-inout);
64
+ }
@@ -0,0 +1,181 @@
1
+ import { Host, h } from '@stencil/core';
2
+ export class PtcSlitCard {
3
+ constructor() {
4
+ this.cardType = 'sim-card';
5
+ this.cardHref = undefined;
6
+ this.target = '_self';
7
+ this.rel = undefined;
8
+ this.heading = undefined;
9
+ this.content = undefined;
10
+ this.styles = undefined;
11
+ this.cardImage = undefined;
12
+ }
13
+ render() {
14
+ const Tag = !!this.cardHref ? 'a' : 'div';
15
+ return (h(Host, Object.assign({}, (!!this.cardType ? { class: this.cardType } : {})), h(Tag, Object.assign({}, (!!this.cardHref ? { href: this.cardHref } : {}), (!!this.target && !!this.cardHref ? { target: this.target } : {}), (!!this.rel && !!this.cardHref ? { rel: this.rel } : {}), (!!this.cardImage ? { dataImage: this.cardImage } : {}), { class: "card-link" }), h("slot", { name: "slot-before-heading" }), !!this.heading
16
+ ? [
17
+ h("div", { class: "card-heading" }, h("h3", { class: "ptc-h3" }, this.heading), h("slot", { name: "slot-after-heading" }))
18
+ ]
19
+ : null, !!this.content
20
+ ? [
21
+ h("div", { class: "card-body" }, h("ptc-para", { "font-size": "xxx-small", "font-weight": "w-6", "para-margin": "margin-flush", "para-style": "main", "para-line-h": "line-height-dense" }, this.content))
22
+ ]
23
+ : null)));
24
+ }
25
+ static get is() { return "ptc-slit-card"; }
26
+ static get encapsulation() { return "shadow"; }
27
+ static get originalStyleUrls() {
28
+ return {
29
+ "$": ["ptc-slit-card.scss"]
30
+ };
31
+ }
32
+ static get styleUrls() {
33
+ return {
34
+ "$": ["ptc-slit-card.css"]
35
+ };
36
+ }
37
+ static get properties() {
38
+ return {
39
+ "cardType": {
40
+ "type": "string",
41
+ "mutable": false,
42
+ "complexType": {
43
+ "original": "string",
44
+ "resolved": "string",
45
+ "references": {}
46
+ },
47
+ "required": false,
48
+ "optional": false,
49
+ "docs": {
50
+ "tags": [],
51
+ "text": "Card Type\r\nSpecify Card Type, default to sim card"
52
+ },
53
+ "attribute": "card-type",
54
+ "reflect": false,
55
+ "defaultValue": "'sim-card'"
56
+ },
57
+ "cardHref": {
58
+ "type": "string",
59
+ "mutable": false,
60
+ "complexType": {
61
+ "original": "string",
62
+ "resolved": "string",
63
+ "references": {}
64
+ },
65
+ "required": false,
66
+ "optional": true,
67
+ "docs": {
68
+ "tags": [],
69
+ "text": "Card Link URL (Optional)"
70
+ },
71
+ "attribute": "card-href",
72
+ "reflect": false,
73
+ "defaultValue": "undefined"
74
+ },
75
+ "target": {
76
+ "type": "string",
77
+ "mutable": false,
78
+ "complexType": {
79
+ "original": "string",
80
+ "resolved": "string",
81
+ "references": {}
82
+ },
83
+ "required": false,
84
+ "optional": true,
85
+ "docs": {
86
+ "tags": [],
87
+ "text": "(optional) Link card target"
88
+ },
89
+ "attribute": "target",
90
+ "reflect": false,
91
+ "defaultValue": "'_self'"
92
+ },
93
+ "rel": {
94
+ "type": "string",
95
+ "mutable": false,
96
+ "complexType": {
97
+ "original": "string",
98
+ "resolved": "string",
99
+ "references": {}
100
+ },
101
+ "required": false,
102
+ "optional": true,
103
+ "docs": {
104
+ "tags": [],
105
+ "text": "(optional) Link card rel"
106
+ },
107
+ "attribute": "rel",
108
+ "reflect": false,
109
+ "defaultValue": "undefined"
110
+ },
111
+ "heading": {
112
+ "type": "string",
113
+ "mutable": false,
114
+ "complexType": {
115
+ "original": "string",
116
+ "resolved": "string",
117
+ "references": {}
118
+ },
119
+ "required": false,
120
+ "optional": true,
121
+ "docs": {
122
+ "tags": [],
123
+ "text": "Card heading"
124
+ },
125
+ "attribute": "heading",
126
+ "reflect": false
127
+ },
128
+ "content": {
129
+ "type": "string",
130
+ "mutable": false,
131
+ "complexType": {
132
+ "original": "string",
133
+ "resolved": "string",
134
+ "references": {}
135
+ },
136
+ "required": false,
137
+ "optional": true,
138
+ "docs": {
139
+ "tags": [],
140
+ "text": "Card heading"
141
+ },
142
+ "attribute": "content",
143
+ "reflect": false
144
+ },
145
+ "styles": {
146
+ "type": "string",
147
+ "mutable": false,
148
+ "complexType": {
149
+ "original": "string",
150
+ "resolved": "string",
151
+ "references": {}
152
+ },
153
+ "required": false,
154
+ "optional": true,
155
+ "docs": {
156
+ "tags": [],
157
+ "text": "(optional) Injected CSS styles"
158
+ },
159
+ "attribute": "styles",
160
+ "reflect": false
161
+ },
162
+ "cardImage": {
163
+ "type": "string",
164
+ "mutable": false,
165
+ "complexType": {
166
+ "original": "string",
167
+ "resolved": "string",
168
+ "references": {}
169
+ },
170
+ "required": false,
171
+ "optional": true,
172
+ "docs": {
173
+ "tags": [],
174
+ "text": "(optional) Injected CSS styles"
175
+ },
176
+ "attribute": "card-image",
177
+ "reflect": false
178
+ }
179
+ };
180
+ }
181
+ }
@@ -14,7 +14,7 @@ export class PtcSocialShare {
14
14
  }
15
15
  render() {
16
16
  const classMap = this.getCssClassMap();
17
- return (h(Host, { class: classMap }, h("div", { onClick: () => this.share(), onMouseEnter: () => this.hoverToggle(), onMouseLeave: () => this.hoverToggle() }, this.shareType == 'mail' ? h("icon-asset", Object.assign({ type: "ptc", size: "large", name: "plm-mail" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'linkedin' ? h("icon-asset", Object.assign({ type: "ptc", size: "large", name: "plm-linkedin" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'twitter' ? h("icon-asset", Object.assign({ type: "ptc", size: "large", name: "plm-twitter" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'facebook' ? h("icon-asset", Object.assign({ type: "ptc", size: "large", name: "plm-fb" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'share-api' ? h("icon-asset", Object.assign({ type: "solid", size: "large", name: "share-square" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null)));
17
+ return (h(Host, { class: classMap }, h("div", { onClick: () => this.share(), onMouseEnter: () => this.hoverToggle(), onMouseLeave: () => this.hoverToggle() }, this.shareType == 'mail' ? h("icon-asset", Object.assign({ type: "ptc", size: "large", name: "plm-mail" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'linkedin' ? h("icon-asset", Object.assign({ type: "ptc", size: "large", name: "plm-linkedin" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'twitter' ? h("icon-asset", Object.assign({ type: "ptc", size: "large", name: "plm-twitter" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'facebook' ? h("icon-asset", Object.assign({ type: "ptc", size: "large", name: "plm-fb" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'blog-mail' ? h("icon-asset", Object.assign({ type: "ptc", size: "large", name: "mail-blogs-icon" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'blog-linkedin' ? h("icon-asset", Object.assign({ type: "ptc", size: "large", name: "linkedin-blogs-icon" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'blog-twitter' ? h("icon-asset", Object.assign({ type: "ptc", size: "large", name: "twitter-blogs-icon" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'blog-facebook' ? h("icon-asset", Object.assign({ type: "ptc", size: "large", name: "facebook-blogs-icon" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'share-api' ? h("icon-asset", Object.assign({ type: "solid", size: "large", name: "share-square" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null)));
18
18
  }
19
19
  getCssClassMap() {
20
20
  return {
@@ -26,16 +26,16 @@ export class PtcSocialShare {
26
26
  this.isHover = !this.isHover;
27
27
  }
28
28
  share() {
29
- if (this.shareType == 'twitter') {
29
+ if (this.shareType == 'twitter' || this.shareType == "blog-twitter") {
30
30
  window.open(`https://twitter.com/share?text=${this.text}&url=${this.url}`);
31
31
  }
32
- if (this.shareType == 'facebook') {
32
+ if (this.shareType == 'facebook' || this.shareType == "blog-facebook") {
33
33
  window.open(`https://www.facebook.com/sharer/sharer.php?u=${this.url}`);
34
34
  }
35
- if (this.shareType == 'linkedin') {
35
+ if (this.shareType == 'linkedin' || this.shareType == "blog-linkedin") {
36
36
  window.open(`https://www.linkedin.com/shareArticle?mini=true&url=${this.url}&title=${this.shareTitle}&summary=${this.text}&source=${this.source}`);
37
37
  }
38
- if (this.shareType == 'mail') {
38
+ if (this.shareType == 'mail' || this.shareType == "blog-mail") {
39
39
  window.open(`mailto:${this.recipient}?subject=${this.text}&body=${this.url}`);
40
40
  }
41
41
  if (this.shareType == 'share-api') {
@@ -91,8 +91,8 @@ export class PtcSocialShare {
91
91
  "type": "string",
92
92
  "mutable": false,
93
93
  "complexType": {
94
- "original": "'mail' | 'twitter' | 'linkedin' | 'facebook' | 'share-api'",
95
- "resolved": "\"facebook\" | \"linkedin\" | \"mail\" | \"share-api\" | \"twitter\"",
94
+ "original": "'mail' | 'twitter' | 'linkedin' | 'facebook' | 'share-api' | 'blog-mail' | 'blog-twitter' | 'blog-linkedin' | 'blog-facebook'",
95
+ "resolved": "\"blog-facebook\" | \"blog-linkedin\" | \"blog-mail\" | \"blog-twitter\" | \"facebook\" | \"linkedin\" | \"mail\" | \"share-api\" | \"twitter\"",
96
96
  "references": {}
97
97
  },
98
98
  "required": false,
@@ -47,6 +47,12 @@
47
47
  color: var(--color-white);
48
48
  }
49
49
 
50
+ :host(.blog-tag) span {
51
+ font-size: var(--ptc-font-size-small);
52
+ line-height: var(--ptc-line-height-densest);
53
+ color: var(--color-gray-10);
54
+ }
55
+
50
56
  :host(.inline) span {
51
57
  display: inline;
52
58
  }
@@ -65,4 +71,32 @@
65
71
 
66
72
  :host(.primary-grey) span {
67
73
  color: var(--color-gray-10);
74
+ }
75
+
76
+ :host(.w-3) span {
77
+ font-weight: var(--ptc-font-weight-thin);
78
+ }
79
+
80
+ :host(.w-4) span {
81
+ font-weight: var(--ptc-font-weight-regular);
82
+ }
83
+
84
+ :host(.w-5) span {
85
+ font-weight: var(--ptc-font-weight-medium);
86
+ }
87
+
88
+ :host(.w-6) span {
89
+ font-weight: var(--ptc-font-weight-semibold);
90
+ }
91
+
92
+ :host(.w-7) span {
93
+ font-weight: var(--ptc-font-weight-bold);
94
+ }
95
+
96
+ :host(.w-8) span {
97
+ font-weight: var(--ptc-font-weight-extrabold);
98
+ }
99
+
100
+ :host(.w-9) span {
101
+ font-weight: var(--ptc-font-weight-black);
68
102
  }