@ptcwebops/ptcw-design 0.9.2 → 0.9.5

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 (60) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/ptc-card-content.cjs.entry.js +1 -1
  3. package/dist/cjs/ptc-link.cjs.entry.js +4 -2
  4. package/dist/cjs/ptc-nav-card.cjs.entry.js +49 -0
  5. package/dist/cjs/ptc-pricing-block.cjs.entry.js +2 -2
  6. package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +77 -0
  7. package/dist/cjs/ptc-readmore.cjs.entry.js +66 -0
  8. package/dist/cjs/ptc-tooltip.cjs.entry.js +71 -0
  9. package/dist/cjs/ptcw-design.cjs.js +1 -1
  10. package/dist/collection/collection-manifest.json +2 -1
  11. package/dist/collection/components/ptc-card-content/ptc-card-content.css +27 -0
  12. package/dist/collection/components/ptc-card-content/ptc-card-content.js +2 -2
  13. package/dist/collection/components/ptc-link/ptc-link.css +55 -1
  14. package/dist/collection/components/ptc-link/ptc-link.js +22 -3
  15. package/dist/collection/components/ptc-nav-card/ptc-nav-card.css +139 -0
  16. package/dist/collection/components/ptc-nav-card/ptc-nav-card.js +208 -0
  17. package/dist/collection/components/ptc-pricing-block/ptc-pricing-block.js +5 -5
  18. package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.css +775 -0
  19. package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.js +148 -0
  20. package/dist/collection/components/ptc-readmore/ptc-readmore.js +3 -0
  21. package/dist/collection/components/ptc-tooltip/ptc-tooltip.js +5 -3
  22. package/dist/custom-elements/index.d.ts +10 -4
  23. package/dist/custom-elements/index.js +123 -26
  24. package/dist/esm/loader.js +1 -1
  25. package/dist/esm/ptc-card-content.entry.js +1 -1
  26. package/dist/esm/ptc-link.entry.js +4 -2
  27. package/dist/esm/ptc-nav-card.entry.js +45 -0
  28. package/dist/esm/ptc-pricing-block.entry.js +2 -2
  29. package/dist/esm/ptc-pricing-tabs.entry.js +73 -0
  30. package/dist/esm/ptc-readmore.entry.js +62 -0
  31. package/dist/esm/ptc-tooltip.entry.js +67 -0
  32. package/dist/esm/ptcw-design.js +1 -1
  33. package/dist/ptcw-design/p-65aa6afd.entry.js +1 -0
  34. package/dist/ptcw-design/p-67e6b826.entry.js +1 -0
  35. package/dist/ptcw-design/p-87a59784.entry.js +1 -0
  36. package/dist/ptcw-design/p-b9f12c38.entry.js +1 -0
  37. package/dist/ptcw-design/p-c15fae86.entry.js +1 -0
  38. package/dist/ptcw-design/{p-9962aa65.entry.js → p-c460476d.entry.js} +1 -1
  39. package/dist/ptcw-design/p-fe812eaf.entry.js +1 -0
  40. package/dist/ptcw-design/ptcw-design.css +1 -1
  41. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  42. package/dist/types/components/ptc-card-content/ptc-card-content.d.ts +1 -1
  43. package/dist/types/components/ptc-link/ptc-link.d.ts +5 -1
  44. package/dist/types/components/ptc-nav-card/ptc-nav-card.d.ts +42 -0
  45. package/dist/types/components/ptc-pricing-block/ptc-pricing-block.d.ts +1 -1
  46. package/dist/types/components/ptc-pricing-tabs/ptc-pricing-tabs.d.ts +31 -0
  47. package/dist/types/components.d.ts +121 -15
  48. package/package.json +1 -1
  49. package/readme.md +1 -1
  50. package/dist/cjs/ptc-pricing-options-component.cjs.entry.js +0 -33
  51. package/dist/cjs/ptc-readmore_2.cjs.entry.js +0 -125
  52. package/dist/collection/components/ptc-pricing-options-component/ptc-pricing-options-component.css +0 -56
  53. package/dist/collection/components/ptc-pricing-options-component/ptc-pricing-options-component.js +0 -39
  54. package/dist/esm/ptc-pricing-options-component.entry.js +0 -29
  55. package/dist/esm/ptc-readmore_2.entry.js +0 -120
  56. package/dist/ptcw-design/p-071b6a69.entry.js +0 -1
  57. package/dist/ptcw-design/p-30007bf3.entry.js +0 -1
  58. package/dist/ptcw-design/p-52092387.entry.js +0 -1
  59. package/dist/ptcw-design/p-6b71e273.entry.js +0 -1
  60. package/dist/types/components/ptc-pricing-options-component/ptc-pricing-options-component.d.ts +0 -6
@@ -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\r\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,