@ptcwebops/ptcw-design 0.2.8 → 0.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/dist/cjs/icon-asset_16.cjs.entry.js +812 -0
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/{ptc-announcement_2.cjs.entry.js → ptc-announcement.cjs.entry.js} +0 -25
  4. package/dist/cjs/ptc-list.cjs.entry.js +2 -3
  5. package/dist/cjs/ptc-svg-btn.cjs.entry.js +31 -0
  6. package/dist/cjs/ptcw-design.cjs.js +1 -1
  7. package/dist/collection/collection-manifest.json +5 -0
  8. package/dist/collection/components/icon-asset/media/designer.svg +33 -0
  9. package/dist/collection/components/list-item/list-item.css +39 -1
  10. package/dist/collection/components/list-item/list-item.js +26 -5
  11. package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.css +19 -0
  12. package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.js +21 -0
  13. package/dist/collection/components/ptc-button/ptc-button.css +12 -1
  14. package/dist/collection/components/ptc-button/ptc-button.js +29 -7
  15. package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.css +12 -0
  16. package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.js +41 -0
  17. package/dist/collection/components/ptc-card-content/ptc-card-content.css +61 -0
  18. package/dist/collection/components/ptc-card-content/ptc-card-content.js +81 -0
  19. package/dist/collection/components/ptc-card-plm/ptc-card-plm.css +19 -0
  20. package/dist/collection/components/ptc-card-plm/ptc-card-plm.js +97 -0
  21. package/dist/collection/components/ptc-hero/ptc-hero.css +13 -0
  22. package/dist/collection/components/ptc-hero/ptc-hero.js +43 -0
  23. package/dist/collection/components/ptc-img/ptc-img.js +6 -1
  24. package/dist/collection/components/ptc-link/ptc-link.css +25 -3
  25. package/dist/collection/components/ptc-link/ptc-link.js +3 -2
  26. package/dist/collection/components/ptc-list/ptc-list.css +8 -4
  27. package/dist/collection/components/ptc-list/ptc-list.js +5 -8
  28. package/dist/collection/components/ptc-overlay/ptc-overlay.css +81 -0
  29. package/dist/collection/components/ptc-overlay/ptc-overlay.js +88 -3
  30. package/dist/collection/components/ptc-para/ptc-para.css +59 -0
  31. package/dist/collection/components/ptc-para/ptc-para.js +53 -7
  32. package/dist/collection/components/ptc-picture/ptc-picture.css +28 -1
  33. package/dist/collection/components/ptc-picture/ptc-picture.js +27 -9
  34. package/dist/collection/components/ptc-spacer/ptc-spacer.css +11 -0
  35. package/dist/collection/components/ptc-spacer/ptc-spacer.js +2 -2
  36. package/dist/collection/components/ptc-span/ptc-span.css +26 -1
  37. package/dist/collection/components/ptc-span/ptc-span.js +6 -3
  38. package/dist/collection/components/ptc-title/ptc-title.css +108 -11
  39. package/dist/collection/components/ptc-title/ptc-title.js +62 -4
  40. package/dist/custom-elements/index.d.ts +30 -0
  41. package/dist/custom-elements/index.js +199 -35
  42. package/dist/esm/icon-asset_16.entry.js +793 -0
  43. package/dist/esm/{index-eb8ce23d.js → index-6ce5b664.js} +1 -1
  44. package/dist/esm/loader.js +2 -2
  45. package/dist/esm/lottie-player.entry.js +1 -1
  46. package/dist/esm/my-component.entry.js +1 -1
  47. package/dist/esm/{ptc-announcement_2.entry.js → ptc-announcement.entry.js} +2 -26
  48. package/dist/esm/ptc-avatar.entry.js +1 -1
  49. package/dist/esm/ptc-card.entry.js +1 -1
  50. package/dist/esm/ptc-countdown.entry.js +1 -1
  51. package/dist/esm/ptc-date.entry.js +1 -1
  52. package/dist/esm/ptc-footer.entry.js +1 -1
  53. package/dist/esm/ptc-form.entry.js +1 -1
  54. package/dist/esm/ptc-input.entry.js +1 -1
  55. package/dist/esm/ptc-list.entry.js +3 -4
  56. package/dist/esm/ptc-lottie.entry.js +1 -1
  57. package/dist/esm/ptc-nav-item.entry.js +1 -1
  58. package/dist/esm/ptc-nav.entry.js +1 -1
  59. package/dist/esm/ptc-select.entry.js +1 -1
  60. package/dist/esm/ptc-svg-btn.entry.js +27 -0
  61. package/dist/esm/ptcw-design.js +2 -2
  62. package/dist/ptcw-design/media/designer.svg +33 -0
  63. package/dist/ptcw-design/{p-63b55aba.entry.js → p-281824f5.entry.js} +1 -1
  64. package/dist/ptcw-design/p-31b2af1d.entry.js +1 -0
  65. package/dist/ptcw-design/{p-f94c4594.entry.js → p-3437fbce.entry.js} +1 -1
  66. package/dist/ptcw-design/{p-e8650244.entry.js → p-542939d4.entry.js} +1 -1
  67. package/dist/ptcw-design/{p-ef6acb81.entry.js → p-5c78913c.entry.js} +1 -1
  68. package/dist/ptcw-design/{p-3f42afb6.entry.js → p-5eb74dc3.entry.js} +1 -1
  69. package/dist/ptcw-design/p-609dec21.entry.js +1 -0
  70. package/dist/ptcw-design/{p-1b3b0193.entry.js → p-6ff80c95.entry.js} +1 -1
  71. package/dist/ptcw-design/p-8bbb4277.entry.js +1 -0
  72. package/dist/ptcw-design/p-9a35c9e2.entry.js +1 -0
  73. package/dist/ptcw-design/{p-22fd400f.entry.js → p-aafe51df.entry.js} +1 -1
  74. package/dist/ptcw-design/{p-75dc7328.entry.js → p-ac57feca.entry.js} +1 -1
  75. package/dist/ptcw-design/{p-2ca3c085.js → p-b1afaef3.js} +1 -1
  76. package/dist/ptcw-design/p-b85eda19.entry.js +1 -0
  77. package/dist/ptcw-design/p-bac826ad.entry.js +1 -0
  78. package/dist/ptcw-design/{p-e4b96b46.entry.js → p-da7ee0ba.entry.js} +1 -1
  79. package/dist/ptcw-design/{p-32ef3a79.entry.js → p-e2492128.entry.js} +1 -1
  80. package/dist/ptcw-design/p-e266fc0b.entry.js +1 -0
  81. package/dist/ptcw-design/ptcw-design.css +2 -2
  82. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  83. package/dist/types/components/list-item/list-item.d.ts +2 -1
  84. package/dist/types/components/ptc-breadcrumb/ptc-breadcrumb.d.ts +4 -0
  85. package/dist/types/components/ptc-button/ptc-button.d.ts +7 -3
  86. package/dist/types/components/ptc-card-bottom/ptc-card-bottom.d.ts +5 -0
  87. package/dist/types/components/ptc-card-content/ptc-card-content.d.ts +11 -0
  88. package/dist/types/components/ptc-card-plm/ptc-card-plm.d.ts +8 -0
  89. package/dist/types/components/ptc-hero/ptc-hero.d.ts +5 -0
  90. package/dist/types/components/ptc-img/ptc-img.d.ts +3 -0
  91. package/dist/types/components/ptc-link/ptc-link.d.ts +1 -1
  92. package/dist/types/components/ptc-list/ptc-list.d.ts +1 -1
  93. package/dist/types/components/ptc-overlay/ptc-overlay.d.ts +17 -0
  94. package/dist/types/components/ptc-para/ptc-para.d.ts +11 -3
  95. package/dist/types/components/ptc-picture/ptc-picture.d.ts +5 -1
  96. package/dist/types/components/ptc-spacer/ptc-spacer.d.ts +1 -1
  97. package/dist/types/components/ptc-span/ptc-span.d.ts +4 -1
  98. package/dist/types/components/ptc-title/ptc-title.d.ts +14 -2
  99. package/dist/types/components.d.ts +229 -28
  100. package/package.json +1 -1
  101. package/readme.md +1 -1
  102. package/dist/cjs/icon-asset.cjs.entry.js +0 -64
  103. package/dist/cjs/interfaces-0ecd8027.js +0 -15
  104. package/dist/cjs/list-item.cjs.entry.js +0 -27
  105. package/dist/cjs/ptc-button.cjs.entry.js +0 -72
  106. package/dist/cjs/ptc-img.cjs.entry.js +0 -155
  107. package/dist/cjs/ptc-link.cjs.entry.js +0 -53
  108. package/dist/cjs/ptc-overlay.cjs.entry.js +0 -19
  109. package/dist/cjs/ptc-para.cjs.entry.js +0 -40
  110. package/dist/cjs/ptc-picture.cjs.entry.js +0 -159
  111. package/dist/cjs/ptc-spacer.cjs.entry.js +0 -46
  112. package/dist/cjs/ptc-span.cjs.entry.js +0 -31
  113. package/dist/cjs/ptc-title.cjs.entry.js +0 -49
  114. package/dist/esm/icon-asset.entry.js +0 -60
  115. package/dist/esm/interfaces-3cb94654.js +0 -12
  116. package/dist/esm/list-item.entry.js +0 -23
  117. package/dist/esm/ptc-button.entry.js +0 -68
  118. package/dist/esm/ptc-img.entry.js +0 -151
  119. package/dist/esm/ptc-link.entry.js +0 -49
  120. package/dist/esm/ptc-overlay.entry.js +0 -15
  121. package/dist/esm/ptc-para.entry.js +0 -36
  122. package/dist/esm/ptc-picture.entry.js +0 -155
  123. package/dist/esm/ptc-spacer.entry.js +0 -42
  124. package/dist/esm/ptc-span.entry.js +0 -27
  125. package/dist/esm/ptc-title.entry.js +0 -45
  126. package/dist/ptcw-design/p-01f4bf71.entry.js +0 -1
  127. package/dist/ptcw-design/p-08827128.entry.js +0 -1
  128. package/dist/ptcw-design/p-1bf9750d.entry.js +0 -1
  129. package/dist/ptcw-design/p-23d07898.entry.js +0 -1
  130. package/dist/ptcw-design/p-240733ce.js +0 -1
  131. package/dist/ptcw-design/p-29c54eb0.entry.js +0 -1
  132. package/dist/ptcw-design/p-2b59ce7a.entry.js +0 -1
  133. package/dist/ptcw-design/p-389a5670.entry.js +0 -1
  134. package/dist/ptcw-design/p-51443fbb.entry.js +0 -1
  135. package/dist/ptcw-design/p-54794e45.entry.js +0 -1
  136. package/dist/ptcw-design/p-5ae43421.entry.js +0 -1
  137. package/dist/ptcw-design/p-6b5c0d9d.entry.js +0 -1
  138. package/dist/ptcw-design/p-7076b32f.entry.js +0 -1
  139. package/dist/ptcw-design/p-a86452af.entry.js +0 -1
  140. package/dist/ptcw-design/p-d3f9852f.entry.js +0 -1
  141. package/dist/ptcw-design/p-d80b24c9.entry.js +0 -1
  142. package/dist/ptcw-design/p-fd29d9dd.entry.js +0 -1
@@ -0,0 +1,61 @@
1
+ :host {
2
+ display: block;
3
+ }
4
+
5
+ :host(.speed-bump) {
6
+ border: 1px solid #6a6a6a;
7
+ border-radius: 12px;
8
+ padding: var(--ptc-element-spacing-06) var(--ptc-element-spacing-06);
9
+ text-align: center;
10
+ }
11
+
12
+ @media screen and (min-width: 768px) {
13
+ :host(.speed-bump) {
14
+ text-align: left;
15
+ }
16
+ }
17
+ :host(.card-tall) .ptc-card-content-wrapper,
18
+ :host(.card-video) .ptc-card-content-wrapper,
19
+ :host(.card-wide) .ptc-card-content-wrapper {
20
+ border-radius: var(--ptc-border-radius-x-large);
21
+ position: relative;
22
+ }
23
+ :host(.card-tall) .ptc-card-content-wrapper::before,
24
+ :host(.card-video) .ptc-card-content-wrapper::before,
25
+ :host(.card-wide) .ptc-card-content-wrapper::before {
26
+ content: "";
27
+ position: absolute;
28
+ width: 100%;
29
+ height: 97.5%;
30
+ border-radius: var(--ptc-border-radius-x-large);
31
+ top: 0;
32
+ left: 0;
33
+ background: transparent;
34
+ z-index: 1;
35
+ box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.12);
36
+ transition: background var(--ptc-transition-medium) var(--ptc-acceletated-ease);
37
+ }
38
+ :host(.card-tall) .ptc-card-content-wrapper::after,
39
+ :host(.card-video) .ptc-card-content-wrapper::after,
40
+ :host(.card-wide) .ptc-card-content-wrapper::after {
41
+ content: url("data:image/svg+xml,%3Csvg width='54' height='56' viewBox='0 0 54 56' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg filter='url(%23filter0_d_126_10476)'%3E%3Cpath d='M42 20L12 36V4L42 20Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='filter0_d_126_10476' x='0' y='0' width='54' height='56' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset dy='8'/%3E%3CfeGaussianBlur stdDeviation='6'/%3E%3CfeComposite in2='hardAlpha' operator='out'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/%3E%3CfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_126_10476'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_126_10476' result='shape'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E%0A");
42
+ position: absolute;
43
+ opacity: 0;
44
+ top: 50%;
45
+ left: 50%;
46
+ transform: translate(-50%, -50%);
47
+ z-index: 2;
48
+ transition: opacity var(--ptc-transition-medium) var(--ptc-acceletated-ease);
49
+ }
50
+
51
+ :host(.mouse-hover) .ptc-card-content-wrapper::before {
52
+ background: rgba(0, 0, 0, 0.6);
53
+ }
54
+ :host(.mouse-hover) .ptc-card-content-wrapper::after {
55
+ opacity: 1;
56
+ }
57
+
58
+ :host(.card-tall) .ptc-card-content-wrapper::before,
59
+ :host(.card-wide) .ptc-card-content-wrapper::before {
60
+ height: 100%;
61
+ }
@@ -0,0 +1,81 @@
1
+ import { Component, Host, h, Prop, Event, Element } from '@stencil/core';
2
+ export class PtcCardContent {
3
+ hoverEventHandler() {
4
+ this.hoverEvent.emit();
5
+ this.el.classList.add('mouse-hover');
6
+ }
7
+ leaveEventHandler() {
8
+ this.hoverEvent.emit();
9
+ this.el.classList.remove('mouse-hover');
10
+ }
11
+ render() {
12
+ const classMap = this.getCssClassMap();
13
+ return (h(Host, { class: classMap, onMouseEnter: this.hoverEventHandler.bind(this), onMouseLeave: this.leaveEventHandler.bind(this) },
14
+ h("div", { class: "ptc-card-content-wrapper" },
15
+ h("slot", null))));
16
+ }
17
+ getCssClassMap() {
18
+ return {
19
+ [this.cardType]: !!this.cardType ? true : false,
20
+ };
21
+ }
22
+ static get is() { return "ptc-card-content"; }
23
+ static get encapsulation() { return "shadow"; }
24
+ static get originalStyleUrls() { return {
25
+ "$": ["ptc-card-content.scss"]
26
+ }; }
27
+ static get styleUrls() { return {
28
+ "$": ["ptc-card-content.css"]
29
+ }; }
30
+ static get properties() { return {
31
+ "cardType": {
32
+ "type": "string",
33
+ "mutable": false,
34
+ "complexType": {
35
+ "original": "'card-video' | 'card-tall' | 'card-2up' | 'card-wide' | 'speed-bump'",
36
+ "resolved": "\"card-2up\" | \"card-tall\" | \"card-video\" | \"card-wide\" | \"speed-bump\"",
37
+ "references": {}
38
+ },
39
+ "required": false,
40
+ "optional": false,
41
+ "docs": {
42
+ "tags": [],
43
+ "text": ""
44
+ },
45
+ "attribute": "card-type",
46
+ "reflect": false
47
+ }
48
+ }; }
49
+ static get events() { return [{
50
+ "method": "hoverEvent",
51
+ "name": "hoverEvent",
52
+ "bubbles": true,
53
+ "cancelable": true,
54
+ "composed": true,
55
+ "docs": {
56
+ "tags": [],
57
+ "text": ""
58
+ },
59
+ "complexType": {
60
+ "original": "void",
61
+ "resolved": "void",
62
+ "references": {}
63
+ }
64
+ }, {
65
+ "method": "leaveEvent",
66
+ "name": "leaveEvent",
67
+ "bubbles": true,
68
+ "cancelable": true,
69
+ "composed": true,
70
+ "docs": {
71
+ "tags": [],
72
+ "text": ""
73
+ },
74
+ "complexType": {
75
+ "original": "void",
76
+ "resolved": "void",
77
+ "references": {}
78
+ }
79
+ }]; }
80
+ static get elementRef() { return "el"; }
81
+ }
@@ -0,0 +1,19 @@
1
+ :host {
2
+ display: block;
3
+ }
4
+
5
+ :host(.card-tall),
6
+ :host(.card-wide),
7
+ :host(.card-video) {
8
+ position: relative;
9
+ }
10
+ :host(.card-tall) a,
11
+ :host(.card-wide) a,
12
+ :host(.card-video) a {
13
+ text-decoration: none;
14
+ }
15
+ :host(.card-tall) a:hover,
16
+ :host(.card-wide) a:hover,
17
+ :host(.card-video) a:hover {
18
+ text-decoration: none;
19
+ }
@@ -0,0 +1,97 @@
1
+ import { Component, Host, h, Prop } from '@stencil/core';
2
+ export class PtcCardPlm {
3
+ constructor() {
4
+ this.linkTarget = '_self';
5
+ }
6
+ render() {
7
+ const classMap = this.getCssClassMap();
8
+ const Tag = !!this.cardLink ? 'a' : 'div';
9
+ return (h(Host, { class: classMap },
10
+ h(Tag, Object.assign({}, (!!this.cardLink ? { href: this.cardLink } : {}), (!!this.linkTarget && !!this.cardLink ? { target: this.linkTarget } : {}), (!!this.cardLink ? { title: this.linkTitle ? this.linkTitle : this.cardLink } : {})),
11
+ h("slot", null))));
12
+ }
13
+ getCssClassMap() {
14
+ return {
15
+ [this.cardType]: this.cardType ? true : false
16
+ };
17
+ }
18
+ static get is() { return "ptc-card-plm"; }
19
+ static get encapsulation() { return "shadow"; }
20
+ static get originalStyleUrls() { return {
21
+ "$": ["ptc-card-plm.scss"]
22
+ }; }
23
+ static get styleUrls() { return {
24
+ "$": ["ptc-card-plm.css"]
25
+ }; }
26
+ static get properties() { return {
27
+ "cardType": {
28
+ "type": "string",
29
+ "mutable": false,
30
+ "complexType": {
31
+ "original": "'card-video'| 'card-tall' | 'card-wide' | 'speed-bump'",
32
+ "resolved": "\"card-tall\" | \"card-video\" | \"card-wide\" | \"speed-bump\"",
33
+ "references": {}
34
+ },
35
+ "required": false,
36
+ "optional": false,
37
+ "docs": {
38
+ "tags": [],
39
+ "text": ""
40
+ },
41
+ "attribute": "card-type",
42
+ "reflect": false
43
+ },
44
+ "cardLink": {
45
+ "type": "string",
46
+ "mutable": false,
47
+ "complexType": {
48
+ "original": "string",
49
+ "resolved": "string",
50
+ "references": {}
51
+ },
52
+ "required": false,
53
+ "optional": false,
54
+ "docs": {
55
+ "tags": [],
56
+ "text": ""
57
+ },
58
+ "attribute": "card-link",
59
+ "reflect": false
60
+ },
61
+ "linkTitle": {
62
+ "type": "string",
63
+ "mutable": false,
64
+ "complexType": {
65
+ "original": "string",
66
+ "resolved": "string",
67
+ "references": {}
68
+ },
69
+ "required": false,
70
+ "optional": false,
71
+ "docs": {
72
+ "tags": [],
73
+ "text": ""
74
+ },
75
+ "attribute": "link-title",
76
+ "reflect": false
77
+ },
78
+ "linkTarget": {
79
+ "type": "string",
80
+ "mutable": false,
81
+ "complexType": {
82
+ "original": "string",
83
+ "resolved": "string",
84
+ "references": {}
85
+ },
86
+ "required": false,
87
+ "optional": false,
88
+ "docs": {
89
+ "tags": [],
90
+ "text": ""
91
+ },
92
+ "attribute": "link-target",
93
+ "reflect": false,
94
+ "defaultValue": "'_self'"
95
+ }
96
+ }; }
97
+ }
@@ -0,0 +1,13 @@
1
+ :host {
2
+ display: block;
3
+ position: relative;
4
+ }
5
+
6
+ :host(.jumbotron) .ptc-hero-wrapper,
7
+ :host(.footer-cta) .ptc-hero-wrapper {
8
+ position: relative;
9
+ }
10
+
11
+ :host(.footer-cta) .ptc-hero-wrapper div > * {
12
+ text-align: center;
13
+ }
@@ -0,0 +1,43 @@
1
+ import { Component, Host, h, Prop } from '@stencil/core';
2
+ export class PtcHero {
3
+ render() {
4
+ const classMap = this.getCssClassMap();
5
+ return (h(Host, { class: classMap },
6
+ h("div", { class: "ptc-hero-wrapper" },
7
+ h("ptc-img", { "image-type": "smart-bg", "img-url": "http://s7d1.scene7.com/is/image/ptcinc/cs-boeing-planes-runway", "size-xs": "600x450", "size-sm": "1108x658", "size-md": "1920x1080", "size-lg": "2700x1500" },
8
+ this.heroType == 'jumbotron' ? ([h("ptc-overlay", { "filter-color": "black-1-xs" }), h("ptc-overlay", { "filter-color": "black-2-xs" })]) : this.heroType == 'footer-cta' ? (h("ptc-overlay", { "filter-color": "black-3" })) : null,
9
+ h("slot", null)))));
10
+ }
11
+ getCssClassMap() {
12
+ return {
13
+ [this.heroType]: this.heroType ? true : false,
14
+ };
15
+ }
16
+ static get is() { return "ptc-hero"; }
17
+ static get encapsulation() { return "shadow"; }
18
+ static get originalStyleUrls() { return {
19
+ "$": ["ptc-hero.scss"]
20
+ }; }
21
+ static get styleUrls() { return {
22
+ "$": ["ptc-hero.css"]
23
+ }; }
24
+ static get properties() { return {
25
+ "heroType": {
26
+ "type": "string",
27
+ "mutable": false,
28
+ "complexType": {
29
+ "original": "'jumbotron' | 'footer-cta'",
30
+ "resolved": "\"footer-cta\" | \"jumbotron\"",
31
+ "references": {}
32
+ },
33
+ "required": false,
34
+ "optional": false,
35
+ "docs": {
36
+ "tags": [],
37
+ "text": ""
38
+ },
39
+ "attribute": "hero-type",
40
+ "reflect": false
41
+ }
42
+ }; }
43
+ }
@@ -35,13 +35,17 @@ export class PtcImg {
35
35
  */
36
36
  this.loadMode = 'lazy-bg';
37
37
  }
38
+ /**
39
+ * Image Z Index
40
+ */
41
+ // @Prop() imageZIndex: 'z-index-auto' | 'z-index-n-2' | 'z-index-n-1' | 'z-index-p-1' | 'z-index-p-2' = 'z-index-auto';
38
42
  WindowResize() {
39
43
  this.setResponsiveBg();
40
44
  }
41
45
  render() {
42
46
  const classMap = this.getCssClassMap();
43
47
  return (h(Host, null,
44
- h("div", { class: classMap, "data-xs": `${this.imgUrl}:${this.sizeXs}`, "data-sm": `${this.imgUrl}:${this.sizeSm}`, "data-md": `${this.imgUrl}:${this.sizeMd}`, "data-lg": `${this.imgUrl}:${this.sizeLg}` })));
48
+ h("div", { class: classMap, "data-xs": `${this.imgUrl}:${this.sizeXs}`, "data-sm": `${this.imgUrl}:${this.sizeSm}`, "data-md": `${this.imgUrl}:${this.sizeMd}`, "data-lg": `${this.imgUrl}:${this.sizeLg}` }, this.imageType == 'smart-bg' ? h("slot", null) : null)));
45
49
  }
46
50
  componentDidLoad() {
47
51
  this.addIntersectionObserver();
@@ -107,6 +111,7 @@ export class PtcImg {
107
111
  'ptc-img': true,
108
112
  [this.borderRadius]: true,
109
113
  [this.loadMode]: true,
114
+ // [this.imageZIndex] : true
110
115
  };
111
116
  }
112
117
  getCurrentBreakPoints() {
@@ -14,7 +14,6 @@
14
14
  font-weight: var(--ptc-font-weight-black);
15
15
  position: relative;
16
16
  line-height: var(--ptc-line-height-normal);
17
- margin-bottom: var(--ptc-element-spacing-01);
18
17
  outline: none;
19
18
  text-decoration: none;
20
19
  }
@@ -65,14 +64,22 @@
65
64
  font-size: var(--ptc-font-size-large);
66
65
  }
67
66
 
68
- icon-asset {
67
+ .ptc-link.arrow icon-asset {
69
68
  position: absolute;
70
69
  right: -25px;
71
70
  transition: transform var(--ptc-transition-fast) var(--ptc-standard-ease);
72
71
  }
73
- icon-asset svg {
72
+ .ptc-link.arrow icon-asset svg {
74
73
  fill: var(--color-primary-green) !important;
75
74
  }
75
+ .ptc-link.arrow-plm icon-asset {
76
+ position: absolute;
77
+ right: -6.75px;
78
+ transform: translate(100%, 8%);
79
+ }
80
+ .ptc-link.arrow-plm svg {
81
+ fill: #3DAB49 !important;
82
+ }
76
83
 
77
84
  .ptc-link:hover.arrow icon-asset {
78
85
  transform: translateX(var(--ptc-element-spacing-04));
@@ -194,4 +201,19 @@ icon-asset svg {
194
201
  font-weight: var(--ptc-font-weight-normal);
195
202
  line-height: 2;
196
203
  display: inline-block;
204
+ }
205
+
206
+ .arrow-plm {
207
+ color: var(--color-white);
208
+ font-weight: var(--ptc-font-weight-extrabold);
209
+ font-size: var(--ptc-font-size-medium);
210
+ line-height: var(--ptc-line-height-19);
211
+ text-decoration: underline;
212
+ text-decoration-thickness: 1px;
213
+ text-decoration-color: transparent;
214
+ text-underline-offset: 2px;
215
+ transition: text-decoration-color var(--ptc-transition-medium) var(--ptc-acceletated-ease);
216
+ }
217
+ .arrow-plm:hover {
218
+ text-decoration-color: #3DAB49;
197
219
  }
@@ -31,6 +31,7 @@ export class PtcLink {
31
31
  return (h(Host, null,
32
32
  h("a", { class: classMap, href: this.href, target: this.external ? '_blank' : this.target, title: this.linkTitle },
33
33
  this.theme == 'arrow' ? h("icon-asset", { type: "solid", size: "small", name: "arrow-right" }) : '',
34
+ this.theme == 'arrow-plm' ? h("icon-asset", { type: "ptc", size: "x-small", name: "button-arrow-right" }) : '',
34
35
  h("slot", null))));
35
36
  }
36
37
  getCssClassMap() {
@@ -143,8 +144,8 @@ export class PtcLink {
143
144
  "type": "string",
144
145
  "mutable": false,
145
146
  "complexType": {
146
- "original": "'simple' | 'arrow' | 'nav-title'| 'primary-nav-link' | 'nav-title-link' | 'secondary-nav-link' | 'footer-nav-link' | 'copyright-link'",
147
- "resolved": "\"arrow\" | \"copyright-link\" | \"footer-nav-link\" | \"nav-title\" | \"nav-title-link\" | \"primary-nav-link\" | \"secondary-nav-link\" | \"simple\"",
147
+ "original": "'simple' | 'arrow' | 'nav-title'| 'primary-nav-link' | 'nav-title-link' | 'secondary-nav-link' | 'footer-nav-link' | 'copyright-link' | 'arrow-plm'",
148
+ "resolved": "\"arrow\" | \"arrow-plm\" | \"copyright-link\" | \"footer-nav-link\" | \"nav-title\" | \"nav-title-link\" | \"primary-nav-link\" | \"secondary-nav-link\" | \"simple\"",
148
149
  "references": {}
149
150
  },
150
151
  "required": false,
@@ -1,13 +1,17 @@
1
- ptc-list .link-primary li {
1
+ :host {
2
+ display: block;
3
+ }
4
+
5
+ :host(.list-primary) li {
2
6
  font-size: var(--ptc-font-size-medium);
3
7
  line-height: var(--ptc-line-height-normal);
4
8
  letter-spacing: var(--ptc-letter-spacing-normal);
5
9
  list-style: none;
6
10
  }
7
- ptc-list .link-primary li:not(:last-child) {
11
+ :host(.list-primary) li:not(:last-child) {
8
12
  margin-bottom: 0.625rem;
9
13
  }
10
- ptc-list .link-primary li a {
14
+ :host(.list-primary) li a {
11
15
  color: var(--color-white);
12
16
  outline: none;
13
17
  text-decoration: none;
@@ -18,7 +22,7 @@ ptc-list .link-primary li a {
18
22
  text-transform: uppercase;
19
23
  letter-spacing: var(--ptc-letter-spacing-normal);
20
24
  }
21
- ptc-list .link-primary li a:hover {
25
+ :host(.list-primary) li a:hover {
22
26
  color: var(--color-white);
23
27
  border-bottom: 1.5px solid var(--color-primary-green);
24
28
  }
@@ -1,8 +1,5 @@
1
1
  import { Component, Host, h, Prop } from '@stencil/core';
2
2
  export class PtcList {
3
- constructor() {
4
- this.listType = 'para-list';
5
- }
6
3
  render() {
7
4
  const classMap = this.getCssClassMap();
8
5
  const listItems = this.listItems;
@@ -18,10 +15,11 @@ export class PtcList {
18
15
  }
19
16
  getCssClassMap() {
20
17
  return {
21
- [this.listType]: true,
18
+ [this.listType]: this.listItems ? true : false,
22
19
  };
23
20
  }
24
21
  static get is() { return "ptc-list"; }
22
+ static get encapsulation() { return "scoped"; }
25
23
  static get originalStyleUrls() { return {
26
24
  "$": ["ptc-list.scss"]
27
25
  }; }
@@ -33,8 +31,8 @@ export class PtcList {
33
31
  "type": "string",
34
32
  "mutable": false,
35
33
  "complexType": {
36
- "original": "'link-primary' | 'link-sub' | 'icon' | 'para-list'",
37
- "resolved": "\"icon\" | \"link-primary\" | \"link-sub\" | \"para-list\"",
34
+ "original": "'list-primary'",
35
+ "resolved": "\"list-primary\"",
38
36
  "references": {}
39
37
  },
40
38
  "required": false,
@@ -44,8 +42,7 @@ export class PtcList {
44
42
  "text": ""
45
43
  },
46
44
  "attribute": "list-type",
47
- "reflect": false,
48
- "defaultValue": "'para-list'"
45
+ "reflect": false
49
46
  },
50
47
  "listItems": {
51
48
  "type": "unknown",
@@ -1,3 +1,84 @@
1
1
  :host {
2
2
  display: block;
3
+ position: absolute;
4
+ top: 0;
5
+ left: 0;
6
+ width: 100%;
7
+ height: 100%;
8
+ }
9
+
10
+ :host(.blue) {
11
+ background: linear-gradient(180deg, rgba(25, 123, 192, 0.2) 0%, #197BC0 100%);
12
+ }
13
+
14
+ :host(.red) {
15
+ background: linear-gradient(180deg, rgba(209, 44, 58, 0.2) 0%, #D12C3A 100%);
16
+ }
17
+
18
+ :host(.orange) {
19
+ background: linear-gradient(180deg, rgba(195, 119, 41, 0.2) 0%, #C37729 100%);
20
+ }
21
+
22
+ :host(.green) {
23
+ background: linear-gradient(180deg, rgba(0, 137, 11, 0.2) 0%, #00890B 100%);
24
+ }
25
+
26
+ :host(.black-1-sm) {
27
+ background: linear-gradient(270deg, rgba(32, 38, 42, 0) 33.33%, #20262A 100%);
28
+ }
29
+
30
+ :host(.black-2-sm) {
31
+ background: linear-gradient(180deg, rgba(32, 38, 42, 0) 0%, #20262A 100%);
32
+ }
33
+
34
+ :host(.black-1-xs) {
35
+ background: linear-gradient(270deg, rgba(32, 38, 42, 0.32) 33.33%, #20262A 100%);
36
+ }
37
+
38
+ :host(.black-2-xs) {
39
+ background: linear-gradient(180deg, rgba(32, 38, 42, 0) 0%, #20262A 100%);
40
+ }
41
+
42
+ :host(.black-3) {
43
+ background: linear-gradient(180deg, #20262A 0%, rgba(32, 38, 42, 0.55) 100%);
44
+ }
45
+
46
+ :host(.slate-grey) {
47
+ background: linear-gradient(180deg, rgba(97, 116, 128, 0.2) 0%, #617480 100%);
48
+ }
49
+
50
+ :host(.radius-sm) {
51
+ border-radius: var(--ptc-border-radius-small);
52
+ }
53
+
54
+ :host(.radius-md) {
55
+ border-radius: var(--ptc-border-radius-medium);
56
+ }
57
+
58
+ :host(.radius-lg) {
59
+ border-radius: var(--ptc-border-radius-large);
60
+ }
61
+
62
+ :host(.radius-x-lg) {
63
+ border-radius: var(--ptc-border-radius-x-large);
64
+ }
65
+
66
+ :host(.z-index-auto) {
67
+ z-index: auto;
68
+ }
69
+
70
+ :host(.z-index-n-1) {
71
+ z-index: -1;
72
+ }
73
+
74
+ :host(.z-index-n-2) {
75
+ z-index: -2;
76
+ }
77
+
78
+ :host(.z-index-p-1) {
79
+ z-index: 1;
80
+ }
81
+
82
+ :host(.z-index-p-2) {
83
+ z-index: 2;
3
84
  }
@@ -1,14 +1,99 @@
1
- import { Component, Host, h } from '@stencil/core';
1
+ import { Component, Host, h, Prop } from '@stencil/core';
2
2
  export class PtcOverlay {
3
+ constructor() {
4
+ /**
5
+ * Overlay z-index
6
+ */
7
+ this.overlayZIndex = 'z-index-auto';
8
+ }
3
9
  render() {
4
- return (h(Host, null,
5
- h("slot", null)));
10
+ const classMap = this.getCssClassMap();
11
+ return h(Host, { class: classMap });
12
+ }
13
+ getCssClassMap() {
14
+ return {
15
+ [this.filterColor]: !!this.filterColor ? true : false,
16
+ [this.borderRadius]: !!this.borderRadius ? true : false,
17
+ [this.overlayZIndex]: true
18
+ };
6
19
  }
7
20
  static get is() { return "ptc-overlay"; }
21
+ static get encapsulation() { return "shadow"; }
8
22
  static get originalStyleUrls() { return {
9
23
  "$": ["ptc-overlay.scss"]
10
24
  }; }
11
25
  static get styleUrls() { return {
12
26
  "$": ["ptc-overlay.css"]
13
27
  }; }
28
+ static get properties() { return {
29
+ "filterColor": {
30
+ "type": "string",
31
+ "mutable": false,
32
+ "complexType": {
33
+ "original": "'blue' | 'red' | 'orange' | 'green' | 'black-1-xs' | 'black-2-xs' | 'black-1-sm' | 'black-2-sm' | 'black-3' | 'slate-grey'",
34
+ "resolved": "\"black-1-sm\" | \"black-1-xs\" | \"black-2-sm\" | \"black-2-xs\" | \"black-3\" | \"blue\" | \"green\" | \"orange\" | \"red\" | \"slate-grey\"",
35
+ "references": {}
36
+ },
37
+ "required": false,
38
+ "optional": false,
39
+ "docs": {
40
+ "tags": [],
41
+ "text": "Filter Color"
42
+ },
43
+ "attribute": "filter-color",
44
+ "reflect": false
45
+ },
46
+ "borderRadius": {
47
+ "type": "string",
48
+ "mutable": false,
49
+ "complexType": {
50
+ "original": "'radius-sm' | 'radius-md' | 'radius-lg' | 'radius-x-lg'",
51
+ "resolved": "\"radius-lg\" | \"radius-md\" | \"radius-sm\" | \"radius-x-lg\"",
52
+ "references": {}
53
+ },
54
+ "required": false,
55
+ "optional": false,
56
+ "docs": {
57
+ "tags": [],
58
+ "text": "Overlay border shape"
59
+ },
60
+ "attribute": "border-radius",
61
+ "reflect": false
62
+ },
63
+ "overlayZIndex": {
64
+ "type": "string",
65
+ "mutable": false,
66
+ "complexType": {
67
+ "original": "'z-index-auto' | 'z-index-n-2' | 'z-index-n-1' | 'z-index-p-1' | 'z-index-p-2'",
68
+ "resolved": "\"z-index-auto\" | \"z-index-n-1\" | \"z-index-n-2\" | \"z-index-p-1\" | \"z-index-p-2\"",
69
+ "references": {}
70
+ },
71
+ "required": false,
72
+ "optional": false,
73
+ "docs": {
74
+ "tags": [],
75
+ "text": "Overlay z-index"
76
+ },
77
+ "attribute": "overlay-z-index",
78
+ "reflect": false,
79
+ "defaultValue": "'z-index-auto'"
80
+ },
81
+ "styles": {
82
+ "type": "string",
83
+ "mutable": false,
84
+ "complexType": {
85
+ "original": "string",
86
+ "resolved": "string",
87
+ "references": {}
88
+ },
89
+ "required": false,
90
+ "optional": true,
91
+ "docs": {
92
+ "tags": [],
93
+ "text": "Injected Styles"
94
+ },
95
+ "attribute": "styles",
96
+ "reflect": false
97
+ }
98
+ }; }
14
99
  }