@ptcwebops/ptcw-design 0.9.1 → 0.9.4

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 (91) hide show
  1. package/dist/cjs/bundle-example.cjs.entry.js +26 -0
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/ptc-accordion-item.cjs.entry.js +1 -1
  4. package/dist/cjs/ptc-card-bottom_3.cjs.entry.js +151 -0
  5. package/dist/cjs/ptc-card-content.cjs.entry.js +1 -1
  6. package/dist/cjs/ptc-card_6.cjs.entry.js +1 -1
  7. package/dist/cjs/ptc-link.cjs.entry.js +4 -2
  8. package/dist/cjs/ptc-nav-card.cjs.entry.js +49 -0
  9. package/dist/cjs/ptc-pricing-block.cjs.entry.js +2 -2
  10. package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +77 -0
  11. package/dist/cjs/{ptc-readmore_2.cjs.entry.js → ptc-readmore.cjs.entry.js} +0 -62
  12. package/dist/cjs/ptc-search-field.cjs.entry.js +9 -2
  13. package/dist/cjs/ptc-tooltip.cjs.entry.js +68 -0
  14. package/dist/cjs/ptcw-design.cjs.js +1 -1
  15. package/dist/collection/collection-manifest.json +4 -1
  16. package/dist/collection/components/bundle-example/bundle-example.css +6 -0
  17. package/dist/collection/components/bundle-example/bundle-example.js +32 -0
  18. package/dist/collection/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.css +2 -5
  19. package/dist/collection/components/ptc-card/ptc-card.css +20 -20
  20. package/dist/collection/components/ptc-card-content/ptc-card-content.css +27 -0
  21. package/dist/collection/components/ptc-card-content/ptc-card-content.js +2 -2
  22. package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.js +7 -7
  23. package/dist/collection/components/ptc-link/ptc-link.css +28 -0
  24. package/dist/collection/components/ptc-link/ptc-link.js +20 -1
  25. package/dist/collection/components/ptc-nav-card/ptc-nav-card.css +108 -0
  26. package/dist/collection/components/ptc-nav-card/ptc-nav-card.js +208 -0
  27. package/dist/collection/components/ptc-pricing-block/ptc-pricing-block.js +5 -5
  28. package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.css +775 -0
  29. package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.js +148 -0
  30. package/dist/collection/components/ptc-search-field/ptc-search-field.css +17 -0
  31. package/dist/collection/components/ptc-search-field/ptc-search-field.js +26 -2
  32. package/dist/collection/components/ptc-skeleton/ptc-skeleton.css +34 -0
  33. package/dist/collection/components/ptc-skeleton/ptc-skeleton.js +146 -0
  34. package/dist/collection/components/ptc-tooltip/ptc-tooltip.js +2 -3
  35. package/dist/custom-elements/index.d.ts +22 -4
  36. package/dist/custom-elements/index.js +192 -40
  37. package/dist/esm/bundle-example.entry.js +22 -0
  38. package/dist/esm/loader.js +1 -1
  39. package/dist/esm/ptc-accordion-item.entry.js +1 -1
  40. package/dist/esm/ptc-card-bottom_3.entry.js +145 -0
  41. package/dist/esm/ptc-card-content.entry.js +1 -1
  42. package/dist/esm/ptc-card_6.entry.js +1 -1
  43. package/dist/esm/ptc-link.entry.js +4 -2
  44. package/dist/esm/ptc-nav-card.entry.js +45 -0
  45. package/dist/esm/ptc-pricing-block.entry.js +2 -2
  46. package/dist/esm/ptc-pricing-tabs.entry.js +73 -0
  47. package/dist/esm/{ptc-readmore_2.entry.js → ptc-readmore.entry.js} +1 -62
  48. package/dist/esm/ptc-search-field.entry.js +10 -3
  49. package/dist/esm/ptc-tooltip.entry.js +64 -0
  50. package/dist/esm/ptcw-design.js +1 -1
  51. package/dist/ptcw-design/p-0d8841a4.entry.js +1 -0
  52. package/dist/ptcw-design/p-13e70d43.entry.js +1 -0
  53. package/dist/ptcw-design/p-166d584d.entry.js +1 -0
  54. package/dist/ptcw-design/p-195dece6.entry.js +1 -0
  55. package/dist/ptcw-design/p-294df3ac.entry.js +1 -0
  56. package/dist/ptcw-design/{p-163fcfc1.entry.js → p-4882c5fc.entry.js} +1 -1
  57. package/dist/ptcw-design/p-631238df.entry.js +1 -0
  58. package/dist/ptcw-design/p-b9f12c38.entry.js +1 -0
  59. package/dist/ptcw-design/{p-049964f4.entry.js → p-bbeb95bd.entry.js} +1 -1
  60. package/dist/ptcw-design/p-c177667e.entry.js +1 -0
  61. package/dist/ptcw-design/{p-9962aa65.entry.js → p-c460476d.entry.js} +1 -1
  62. package/dist/ptcw-design/p-dd1576c8.entry.js +1 -0
  63. package/dist/ptcw-design/ptcw-design.css +1 -1
  64. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  65. package/dist/types/components/bundle-example/bundle-example.d.ts +5 -0
  66. package/dist/types/components/ptc-card-content/ptc-card-content.d.ts +1 -1
  67. package/dist/types/components/ptc-link/ptc-link.d.ts +4 -0
  68. package/dist/types/components/ptc-nav-card/ptc-nav-card.d.ts +42 -0
  69. package/dist/types/components/ptc-pricing-block/ptc-pricing-block.d.ts +1 -1
  70. package/dist/types/components/ptc-pricing-tabs/ptc-pricing-tabs.d.ts +31 -0
  71. package/dist/types/components/ptc-search-field/ptc-search-field.d.ts +3 -1
  72. package/dist/types/components/ptc-skeleton/ptc-skeleton.d.ts +10 -0
  73. package/dist/types/components.d.ts +159 -13
  74. package/package.json +1 -1
  75. package/readme.md +1 -1
  76. package/dist/cjs/ptc-card-bottom.cjs.entry.js +0 -46
  77. package/dist/cjs/ptc-card-wrapper.cjs.entry.js +0 -83
  78. package/dist/cjs/ptc-pricing-options-component.cjs.entry.js +0 -33
  79. package/dist/collection/components/ptc-pricing-options-component/ptc-pricing-options-component.css +0 -56
  80. package/dist/collection/components/ptc-pricing-options-component/ptc-pricing-options-component.js +0 -39
  81. package/dist/esm/ptc-card-bottom.entry.js +0 -42
  82. package/dist/esm/ptc-card-wrapper.entry.js +0 -79
  83. package/dist/esm/ptc-pricing-options-component.entry.js +0 -29
  84. package/dist/ptcw-design/p-071b6a69.entry.js +0 -1
  85. package/dist/ptcw-design/p-20cc9c39.entry.js +0 -1
  86. package/dist/ptcw-design/p-30007bf3.entry.js +0 -1
  87. package/dist/ptcw-design/p-52092387.entry.js +0 -1
  88. package/dist/ptcw-design/p-5f20876d.entry.js +0 -1
  89. package/dist/ptcw-design/p-6b71e273.entry.js +0 -1
  90. package/dist/ptcw-design/p-a5f20c41.entry.js +0 -1
  91. package/dist/types/components/ptc-pricing-options-component/ptc-pricing-options-component.d.ts +0 -6
@@ -113,6 +113,33 @@
113
113
  top: 50%;
114
114
  }
115
115
 
116
+ :host(.thumbnail-video-preview) .ptc-card-content-wrapper {
117
+ cursor: pointer;
118
+ position: relative;
119
+ }
120
+ :host(.thumbnail-video-preview) .ptc-card-content-wrapper::before {
121
+ content: "";
122
+ position: absolute;
123
+ width: 100%;
124
+ height: 100%;
125
+ top: 0;
126
+ left: 0;
127
+ background: transparent;
128
+ z-index: 1;
129
+ box-shadow: var(--ptc-shadow-x-small);
130
+ transition: background var(--ptc-transition-medium) var(--ptc-ease-inout);
131
+ }
132
+ :host(.thumbnail-video-preview) .ptc-card-content-wrapper::after {
133
+ 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");
134
+ position: absolute;
135
+ opacity: 1;
136
+ top: 60%;
137
+ left: 50%;
138
+ transform: translate(-50%, -50%);
139
+ z-index: 2;
140
+ transition: opacity var(--ptc-transition-medium) var(--ptc-ease-inout);
141
+ }
142
+
116
143
  :host(.card-video) .ptc-card-content-wrapper::after {
117
144
  top: 59.5%;
118
145
  }
@@ -62,8 +62,8 @@ export class PtcCardContent {
62
62
  "type": "string",
63
63
  "mutable": false,
64
64
  "complexType": {
65
- "original": "'card-video' | 'card-tall' | 'card-2up' | 'card-wide' | 'speed-bump' | 'card-playlist' | 'card-video-intro' | 'card-dynamic' | 'extra-tall' | 'color-outlined'",
66
- "resolved": "\"card-2up\" | \"card-dynamic\" | \"card-playlist\" | \"card-tall\" | \"card-video\" | \"card-video-intro\" | \"card-wide\" | \"color-outlined\" | \"extra-tall\" | \"speed-bump\"",
65
+ "original": "'card-video' | 'card-tall' | 'card-2up' | 'card-wide' | 'speed-bump' | 'card-playlist' | 'card-video-intro' | 'card-dynamic' | 'extra-tall' | 'color-outlined' | 'thumbnail-video-preview'",
66
+ "resolved": "\"card-2up\" | \"card-dynamic\" | \"card-playlist\" | \"card-tall\" | \"card-video\" | \"card-video-intro\" | \"card-wide\" | \"color-outlined\" | \"extra-tall\" | \"speed-bump\" | \"thumbnail-video-preview\"",
67
67
  "references": {}
68
68
  },
69
69
  "required": false,
@@ -51,18 +51,18 @@ export class PtcCardPlm {
51
51
  return bottomContent.offsetHeight;
52
52
  }
53
53
  checkScreenSize() {
54
- if (window.innerWidth < 768) {
55
- if (this.cardType === 'extra-tall') {
54
+ if (this.cardType === 'extra-tall') {
55
+ if (window.innerWidth < 768) {
56
56
  const cardContent = this.el.querySelector('ptc-card-content');
57
57
  if (cardContent) {
58
58
  cardContent.setHeight(this.getBtmContentHeight());
59
59
  }
60
60
  }
61
- }
62
- else {
63
- const cardContent = this.el.querySelector('ptc-card-content');
64
- if (cardContent) {
65
- cardContent.removeInlineHeight();
61
+ else {
62
+ const cardContent = this.el.querySelector('ptc-card-content');
63
+ if (cardContent) {
64
+ cardContent.removeInlineHeight();
65
+ }
66
66
  }
67
67
  }
68
68
  }
@@ -284,4 +284,32 @@
284
284
  height: 100%;
285
285
  inset: 0;
286
286
  z-index: 2;
287
+ }
288
+
289
+ .w-thin {
290
+ font-weight: var(--ptc-font-weight-thin);
291
+ }
292
+
293
+ .w-regular {
294
+ font-weight: var(--ptc-font-weight-regular);
295
+ }
296
+
297
+ .w-medium {
298
+ font-weight: var(--ptc-font-weight-medium);
299
+ }
300
+
301
+ .w-semibold {
302
+ font-weight: var(--ptc-font-weight-semibold);
303
+ }
304
+
305
+ .w-bold {
306
+ font-weight: var(--ptc-font-weight-bold);
307
+ }
308
+
309
+ .w-extrabold {
310
+ font-weight: var(--ptc-font-weight-extrabold);
311
+ }
312
+
313
+ .w-black {
314
+ font-weight: var(--ptc-font-weight-black);
287
315
  }
@@ -9,6 +9,7 @@ export class PtcLink {
9
9
  this.theme = 'simple';
10
10
  this.uppercase = false;
11
11
  this.fontSize = 'medium';
12
+ this.fontWeight = undefined;
12
13
  this.linkArea = undefined;
13
14
  }
14
15
  render() {
@@ -22,7 +23,8 @@ export class PtcLink {
22
23
  ['uppercase']: this.uppercase,
23
24
  ['disabled']: this.disabled,
24
25
  [this.fontSize]: true,
25
- [this.linkArea]: this.linkArea ? true : false
26
+ [this.linkArea]: this.linkArea ? true : false,
27
+ [this.fontWeight]: true,
26
28
  };
27
29
  }
28
30
  static get is() { return "ptc-link"; }
@@ -181,6 +183,23 @@ export class PtcLink {
181
183
  "reflect": false,
182
184
  "defaultValue": "'medium'"
183
185
  },
186
+ "fontWeight": {
187
+ "type": "string",
188
+ "mutable": false,
189
+ "complexType": {
190
+ "original": "'w-thin' | 'w-regular' | 'w-medium' | 'w-semibold' | 'w-bold' | 'w-extrabold' | 'w-black'",
191
+ "resolved": "\"w-black\" | \"w-bold\" | \"w-extrabold\" | \"w-medium\" | \"w-regular\" | \"w-semibold\" | \"w-thin\"",
192
+ "references": {}
193
+ },
194
+ "required": false,
195
+ "optional": true,
196
+ "docs": {
197
+ "tags": [],
198
+ "text": "Font Weight"
199
+ },
200
+ "attribute": "font-weight",
201
+ "reflect": false
202
+ },
184
203
  "linkArea": {
185
204
  "type": "string",
186
205
  "mutable": false,
@@ -0,0 +1,108 @@
1
+ :host {
2
+ display: flex;
3
+ height: 100%;
4
+ width: 100%;
5
+ position: relative;
6
+ }
7
+ :host .nav-card-wrap {
8
+ padding: 1rem;
9
+ display: flex;
10
+ align-items: center;
11
+ width: 100%;
12
+ border-radius: var(--ptc-border-radius-standard);
13
+ background-color: var(--color-gray-12);
14
+ }
15
+ @media only screen and (min-width: 1200px) {
16
+ :host .nav-card-wrap {
17
+ background-color: var(--color-gray-10);
18
+ }
19
+ :host .nav-card-wrap:hover {
20
+ background-color: var(--color-gray-08);
21
+ }
22
+ }
23
+ :host .nav-card-wrap h4,
24
+ :host .nav-card-wrap p,
25
+ :host .nav-card-wrap a {
26
+ color: var(--color-white);
27
+ margin: 0;
28
+ font-size: 0.75rem;
29
+ text-decoration: none;
30
+ }
31
+ :host .nav-card-wrap .media-card-wrap {
32
+ width: 100%;
33
+ display: flex;
34
+ align-items: center;
35
+ }
36
+ :host .nav-card-wrap .media-card-wrap h4 {
37
+ margin-bottom: 0.25rem;
38
+ font-weight: 800;
39
+ display: flex;
40
+ align-items: center;
41
+ }
42
+ :host .nav-card-wrap .media-card-wrap .card-logo {
43
+ padding-right: 1rem;
44
+ }
45
+ :host .nav-card-wrap .media-card-wrap .card-logo img {
46
+ width: 100%;
47
+ max-width: 1.5rem;
48
+ min-width: 1.5rem;
49
+ }
50
+
51
+ :host(.cta-card) .nav-card-wrap {
52
+ border: 1px solid var(--color-gray-10);
53
+ border-radius: var(--ptc-border-radius-standard);
54
+ background-color: var(--color-gray-09);
55
+ }
56
+ @media only screen and (min-width: 1200px) {
57
+ :host(.cta-card) .nav-card-wrap {
58
+ background-color: transparent;
59
+ }
60
+ }
61
+ :host(.cta-card) .nav-card-wrap:hover {
62
+ background-color: var(--color-gray-08);
63
+ }
64
+ :host(.cta-card) .nav-card-wrap .card-content {
65
+ margin: auto;
66
+ }
67
+ :host(.cta-card) .nav-card-wrap .card-content svg {
68
+ vertical-align: middle;
69
+ margin-left: 0.375rem;
70
+ }
71
+
72
+ :host(.links-card) .nav-card-wrap {
73
+ padding: 1.5rem;
74
+ border-radius: var(--ptc-border-radius-standard);
75
+ background-color: transparent;
76
+ border: 1px solid var(--color-gray-07);
77
+ align-items: flex-start;
78
+ }
79
+ @media only screen and (min-width: 1200px) {
80
+ :host(.links-card) .nav-card-wrap {
81
+ border: 1px solid var(--color-gray-10);
82
+ }
83
+ }
84
+ :host(.links-card) .nav-card-wrap:hover {
85
+ background-color: transparent;
86
+ }
87
+ :host(.links-card) .nav-card-wrap h3 {
88
+ margin: 0 0 0.75rem 0;
89
+ border-bottom: 1.5px solid transparent;
90
+ display: inline-block;
91
+ }
92
+ :host(.links-card) .nav-card-wrap h3 svg {
93
+ margin-left: 0.375rem;
94
+ display: none;
95
+ vertical-align: middle;
96
+ }
97
+ :host(.links-card) .nav-card-wrap h3:hover {
98
+ border-color: var(--color-green-06);
99
+ }
100
+ :host(.links-card) .nav-card-wrap h3:hover svg {
101
+ display: inline-block;
102
+ }
103
+ :host(.links-card) .nav-card-wrap h3 a {
104
+ font-size: var(--ptc-font-size-x-small);
105
+ }
106
+ :host(.links-card) ::slotted(ptc-link) {
107
+ padding: 6px 0;
108
+ }
@@ -0,0 +1,208 @@
1
+ import { Host, h } from '@stencil/core';
2
+ export class PtcNavCard {
3
+ constructor() {
4
+ this.cardType = undefined;
5
+ this.cardHref = undefined;
6
+ this.cardHrefAlt = undefined;
7
+ this.target = '_self';
8
+ this.rel = undefined;
9
+ this.cardLogo = undefined;
10
+ this.heading = undefined;
11
+ this.description = undefined;
12
+ this.windowSize = 'mobile';
13
+ }
14
+ handleResize() {
15
+ if (window.innerWidth < 992) {
16
+ this.windowSize = 'mobile';
17
+ }
18
+ else {
19
+ this.windowSize = 'desktop';
20
+ }
21
+ }
22
+ componentWillLoad() {
23
+ this.handleResize();
24
+ }
25
+ render() {
26
+ return (h(Host, { class: this.cardType }, h("div", { class: "nav-card-wrap" }, this.cardType == 'links-card' ?
27
+ h("div", { class: "links-card-wrap" }, h("h3", null, h("a", { href: "" }, this.heading, h("svg", { width: "12", height: "10", viewBox: "0 0 12 10", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M6.3125 0.3125L6.3125 3.66515L-1.46549e-07 3.66515L-2.63246e-07 6.33487L6.3125 6.33487L6.3125 9.6875L11.25 4.96896L6.3125 0.3125Z", fill: "#3DAB49" })))), h("slot", null))
28
+ :
29
+ h("a", { href: this.cardHref, class: "media-card-wrap" }, this.cardLogo &&
30
+ h("div", { class: "card-logo" }, h("img", { src: this.cardLogo, alt: this.cardHrefAlt })), h("div", { class: "card-content" }, h("h4", null, this.windowSize === 'mobile'
31
+ ? this.heading
32
+ : h("ptc-tooltip", { "text-display": "inline", "text-lines": "2", "z-index": "z-2", description: this.heading, position: "bottom" }, this.heading), this.cardType == "cta-card" &&
33
+ h("svg", { width: "12", height: "10", viewBox: "0 0 12 10", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M6.3125 0.3125L6.3125 3.66515L-1.46549e-07 3.66515L-2.63246e-07 6.33487L6.3125 6.33487L6.3125 9.6875L11.25 4.96896L6.3125 0.3125Z", fill: "#3DAB49" }))), this.description &&
34
+ h("p", null, this.windowSize === 'mobile'
35
+ ? this.description
36
+ : h("ptc-tooltip", { "text-display": "inline", "text-lines": "2", "z-index": "z-2", description: this.description, position: "bottom" }, this.description)))))));
37
+ }
38
+ static get is() { return "ptc-nav-card"; }
39
+ static get encapsulation() { return "shadow"; }
40
+ static get originalStyleUrls() {
41
+ return {
42
+ "$": ["ptc-nav-card.scss"]
43
+ };
44
+ }
45
+ static get styleUrls() {
46
+ return {
47
+ "$": ["ptc-nav-card.css"]
48
+ };
49
+ }
50
+ static get properties() {
51
+ return {
52
+ "cardType": {
53
+ "type": "string",
54
+ "mutable": true,
55
+ "complexType": {
56
+ "original": "'media-card' | 'links-card' | 'cta-card'",
57
+ "resolved": "\"cta-card\" | \"links-card\" | \"media-card\"",
58
+ "references": {}
59
+ },
60
+ "required": false,
61
+ "optional": false,
62
+ "docs": {
63
+ "tags": [],
64
+ "text": "Card Type\nSpecify Card Type"
65
+ },
66
+ "attribute": "card-type",
67
+ "reflect": false
68
+ },
69
+ "cardHref": {
70
+ "type": "string",
71
+ "mutable": true,
72
+ "complexType": {
73
+ "original": "string",
74
+ "resolved": "string",
75
+ "references": {}
76
+ },
77
+ "required": false,
78
+ "optional": true,
79
+ "docs": {
80
+ "tags": [],
81
+ "text": "Card Link URL (Optional)"
82
+ },
83
+ "attribute": "card-href",
84
+ "reflect": false,
85
+ "defaultValue": "undefined"
86
+ },
87
+ "cardHrefAlt": {
88
+ "type": "string",
89
+ "mutable": true,
90
+ "complexType": {
91
+ "original": "string",
92
+ "resolved": "string",
93
+ "references": {}
94
+ },
95
+ "required": false,
96
+ "optional": true,
97
+ "docs": {
98
+ "tags": [],
99
+ "text": "Card Link URL Alt text(Optional)"
100
+ },
101
+ "attribute": "card-href-alt",
102
+ "reflect": false,
103
+ "defaultValue": "undefined"
104
+ },
105
+ "target": {
106
+ "type": "string",
107
+ "mutable": true,
108
+ "complexType": {
109
+ "original": "string",
110
+ "resolved": "string",
111
+ "references": {}
112
+ },
113
+ "required": false,
114
+ "optional": true,
115
+ "docs": {
116
+ "tags": [],
117
+ "text": "(optional) Link card target"
118
+ },
119
+ "attribute": "target",
120
+ "reflect": false,
121
+ "defaultValue": "'_self'"
122
+ },
123
+ "rel": {
124
+ "type": "string",
125
+ "mutable": true,
126
+ "complexType": {
127
+ "original": "string",
128
+ "resolved": "string",
129
+ "references": {}
130
+ },
131
+ "required": false,
132
+ "optional": true,
133
+ "docs": {
134
+ "tags": [],
135
+ "text": "(optional) Link card rel"
136
+ },
137
+ "attribute": "rel",
138
+ "reflect": false,
139
+ "defaultValue": "undefined"
140
+ },
141
+ "cardLogo": {
142
+ "type": "string",
143
+ "mutable": true,
144
+ "complexType": {
145
+ "original": "string",
146
+ "resolved": "string",
147
+ "references": {}
148
+ },
149
+ "required": false,
150
+ "optional": true,
151
+ "docs": {
152
+ "tags": [],
153
+ "text": "If this card has Image"
154
+ },
155
+ "attribute": "card-logo",
156
+ "reflect": false
157
+ },
158
+ "heading": {
159
+ "type": "string",
160
+ "mutable": true,
161
+ "complexType": {
162
+ "original": "string",
163
+ "resolved": "string",
164
+ "references": {}
165
+ },
166
+ "required": false,
167
+ "optional": true,
168
+ "docs": {
169
+ "tags": [],
170
+ "text": "Card heading"
171
+ },
172
+ "attribute": "heading",
173
+ "reflect": false
174
+ },
175
+ "description": {
176
+ "type": "string",
177
+ "mutable": true,
178
+ "complexType": {
179
+ "original": "string",
180
+ "resolved": "string",
181
+ "references": {}
182
+ },
183
+ "required": false,
184
+ "optional": true,
185
+ "docs": {
186
+ "tags": [],
187
+ "text": "Card description"
188
+ },
189
+ "attribute": "description",
190
+ "reflect": false
191
+ }
192
+ };
193
+ }
194
+ static get states() {
195
+ return {
196
+ "windowSize": {}
197
+ };
198
+ }
199
+ static get listeners() {
200
+ return [{
201
+ "name": "resize",
202
+ "method": "handleResize",
203
+ "target": "window",
204
+ "capture": false,
205
+ "passive": true
206
+ }];
207
+ }
208
+ }
@@ -9,12 +9,12 @@ export class PtcPricingBlock {
9
9
  }
10
10
  render() {
11
11
  const classMap = this.getCssClassMap();
12
- return (h(Host, null, h("div", { class: classMap }, h("span", { class: "left-text" }, h("slot", { name: "left-text" })), h("span", { class: "right-text" }, h("slot", { name: "right-text" })))));
12
+ return (h(Host, { class: this.active ? "is-active" : "" }, h("div", { class: classMap }, h("span", { class: "left-text" }, h("slot", { name: "left-text" })), h("span", { class: "right-text" }, h("slot", { name: "right-text" })))));
13
13
  }
14
14
  getCssClassMap() {
15
15
  return {
16
16
  ['ptc-pricing-block']: true,
17
- ['active']: this.active ? true : false
17
+ ['active']: this.active
18
18
  };
19
19
  }
20
20
  static get is() { return "ptc-pricing-block"; }
@@ -32,11 +32,11 @@ export class PtcPricingBlock {
32
32
  static get properties() {
33
33
  return {
34
34
  "active": {
35
- "type": "string",
35
+ "type": "boolean",
36
36
  "mutable": false,
37
37
  "complexType": {
38
- "original": "\"active\"",
39
- "resolved": "\"active\"",
38
+ "original": "boolean",
39
+ "resolved": "boolean",
40
40
  "references": {}
41
41
  },
42
42
  "required": false,