@ptcwebops/ptcw-design 3.0.2 → 3.0.3

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 (111) hide show
  1. package/dist/cjs/embedded-form.cjs.entry.js +108 -0
  2. package/dist/cjs/footer-form.cjs.entry.js +1 -1
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/max-width-container.cjs.entry.js +54 -0
  5. package/dist/cjs/ptc-button.cjs.entry.js +52 -0
  6. package/dist/cjs/ptc-data-lookup.cjs.entry.js +496 -0
  7. package/dist/cjs/{embedded-form_9.cjs.entry.js → ptc-form-checkbox_3.cjs.entry.js} +12 -804
  8. package/dist/cjs/ptc-form.cjs.entry.js +1 -1
  9. package/dist/cjs/ptc-modal-quiz.cjs.entry.js +1 -1
  10. package/dist/cjs/ptc-pricing-packaging-table.cjs.entry.js +7 -5
  11. package/dist/cjs/ptc-quote.cjs.entry.js +3 -2
  12. package/dist/cjs/ptc-spacer.cjs.entry.js +38 -0
  13. package/dist/cjs/ptc-title.cjs.entry.js +78 -0
  14. package/dist/cjs/ptc-value-led-card.cjs.entry.js +21 -0
  15. package/dist/cjs/ptc-value-led-content-highlight.cjs.entry.js +19 -0
  16. package/dist/cjs/ptc-value-led-content.cjs.entry.js +19 -0
  17. package/dist/cjs/ptc-value-led-intro.cjs.entry.js +20 -0
  18. package/dist/cjs/ptc-value-led-layout.cjs.entry.js +2 -2
  19. package/dist/cjs/ptc-value-led-speed-bump.cjs.entry.js +32 -0
  20. package/dist/cjs/ptcw-design.cjs.js +1 -1
  21. package/dist/collection/collection-manifest.json +5 -1
  22. package/dist/collection/components/organism-bundles/form/embedded-form/embedded-form.js +1 -1
  23. package/dist/collection/components/organism-bundles/form/footer-form/footer-form.js +1 -1
  24. package/dist/collection/components/organism-bundles/form/ptc-form/ptc-form.js +1 -1
  25. package/dist/collection/components/ptc-button/ptc-button.css +42 -0
  26. package/dist/collection/components/ptc-button/ptc-button.js +20 -1
  27. package/dist/collection/components/ptc-modal-quiz/ptc-modal-quiz.css +6 -1
  28. package/dist/collection/components/ptc-pricing-packaging-table/ptc-pricing-packaging-table.js +7 -5
  29. package/dist/collection/components/ptc-quote/ptc-quote.css +28 -0
  30. package/dist/collection/components/ptc-quote/ptc-quote.js +4 -3
  31. package/dist/collection/components/ptc-select/ptc-select.js +4 -4
  32. package/dist/collection/components/ptc-textfield/ptc-textfield.js +12 -16
  33. package/dist/collection/components/ptc-value-led-card/ptc-value-led-card.css +36 -0
  34. package/dist/collection/components/ptc-value-led-card/ptc-value-led-card.js +60 -0
  35. package/dist/collection/components/ptc-value-led-content/ptc-value-led-content.css +12 -0
  36. package/dist/collection/components/ptc-value-led-content/ptc-value-led-content.js +18 -0
  37. package/dist/collection/components/ptc-value-led-content-highlight/ptc-value-led-content-highlight.css +31 -0
  38. package/dist/collection/components/ptc-value-led-content-highlight/ptc-value-led-content-highlight.js +18 -0
  39. package/dist/collection/components/ptc-value-led-intro/ptc-value-led-intro.css +16 -0
  40. package/dist/collection/components/ptc-value-led-intro/ptc-value-led-intro.js +42 -0
  41. package/dist/collection/components/ptc-value-led-layout/ptc-value-led-layout.css +22 -3
  42. package/dist/collection/components/ptc-value-led-layout/ptc-value-led-layout.js +1 -1
  43. package/dist/collection/components/ptc-value-led-speed-bump/ptc-value-led-speed-bump.css +63 -0
  44. package/dist/collection/components/ptc-value-led-speed-bump/ptc-value-led-speed-bump.js +97 -0
  45. package/dist/custom-elements/index.d.ts +30 -6
  46. package/dist/custom-elements/index.js +131 -568
  47. package/dist/esm/embedded-form.entry.js +104 -0
  48. package/dist/esm/footer-form.entry.js +1 -1
  49. package/dist/esm/loader.js +1 -1
  50. package/dist/esm/max-width-container.entry.js +50 -0
  51. package/dist/esm/ptc-button.entry.js +48 -0
  52. package/dist/esm/ptc-data-lookup.entry.js +492 -0
  53. package/dist/esm/{embedded-form_9.entry.js → ptc-form-checkbox_3.entry.js} +14 -800
  54. package/dist/esm/ptc-form.entry.js +1 -1
  55. package/dist/esm/ptc-modal-quiz.entry.js +1 -1
  56. package/dist/esm/ptc-pricing-packaging-table.entry.js +7 -5
  57. package/dist/esm/ptc-quote.entry.js +3 -2
  58. package/dist/esm/ptc-spacer.entry.js +34 -0
  59. package/dist/esm/ptc-title.entry.js +74 -0
  60. package/dist/esm/ptc-value-led-card.entry.js +17 -0
  61. package/dist/esm/ptc-value-led-content-highlight.entry.js +15 -0
  62. package/dist/esm/ptc-value-led-content.entry.js +15 -0
  63. package/dist/esm/ptc-value-led-intro.entry.js +16 -0
  64. package/dist/esm/ptc-value-led-layout.entry.js +2 -2
  65. package/dist/esm/ptc-value-led-speed-bump.entry.js +28 -0
  66. package/dist/esm/ptcw-design.js +1 -1
  67. package/dist/ptcw-design/p-036234e7.entry.js +1 -0
  68. package/dist/ptcw-design/{p-ed2cc9da.entry.js → p-08ed517e.entry.js} +1 -1
  69. package/dist/ptcw-design/p-137ddeeb.entry.js +1 -0
  70. package/dist/ptcw-design/p-18dfffd3.entry.js +359 -0
  71. package/dist/ptcw-design/p-236073e1.entry.js +1 -0
  72. package/dist/ptcw-design/p-2e4af711.entry.js +1 -0
  73. package/dist/ptcw-design/p-33c054ff.entry.js +1 -0
  74. package/dist/ptcw-design/{p-f00b4b73.entry.js → p-3ca391ab.entry.js} +1 -1
  75. package/dist/ptcw-design/p-3faffecb.entry.js +1 -0
  76. package/dist/ptcw-design/p-49f06645.entry.js +1 -0
  77. package/dist/ptcw-design/p-641bd525.entry.js +1 -0
  78. package/dist/ptcw-design/p-752f779c.entry.js +1 -0
  79. package/dist/ptcw-design/p-7aa6b7e5.entry.js +1 -0
  80. package/dist/ptcw-design/p-7c079ff8.entry.js +1 -0
  81. package/dist/ptcw-design/p-92bbd407.entry.js +1 -0
  82. package/dist/ptcw-design/p-9a36f7a3.entry.js +1 -0
  83. package/dist/ptcw-design/p-d2c400e2.entry.js +1 -0
  84. package/dist/ptcw-design/p-f1c77113.entry.js +1 -0
  85. package/dist/ptcw-design/ptcw-design.css +2 -2
  86. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  87. package/dist/types/components/ptc-button/ptc-button.d.ts +4 -0
  88. package/dist/types/components/ptc-pricing-packaging-table/ptc-pricing-packaging-table.d.ts +2 -0
  89. package/dist/types/components/ptc-quote/ptc-quote.d.ts +1 -1
  90. package/dist/types/components/ptc-select/ptc-select.d.ts +1 -1
  91. package/dist/types/components/ptc-textfield/ptc-textfield.d.ts +1 -1
  92. package/dist/types/components/ptc-value-led-card/ptc-value-led-card.d.ts +5 -0
  93. package/dist/types/components/ptc-value-led-content/ptc-value-led-content.d.ts +3 -0
  94. package/dist/types/components/ptc-value-led-content-highlight/ptc-value-led-content-highlight.d.ts +3 -0
  95. package/dist/types/components/ptc-value-led-intro/ptc-value-led-intro.d.ts +4 -0
  96. package/dist/types/components/ptc-value-led-speed-bump/ptc-value-led-speed-bump.d.ts +10 -0
  97. package/dist/types/components.d.ts +91 -75
  98. package/package.json +1 -1
  99. package/readme.md +1 -1
  100. package/dist/cjs/ptc-pricing-table.cjs.entry.js +0 -536
  101. package/dist/collection/components/ptc-pricing-table/ptc-pricing-table.css +0 -278
  102. package/dist/collection/components/ptc-pricing-table/ptc-pricing-table.js +0 -680
  103. package/dist/esm/ptc-pricing-table.entry.js +0 -532
  104. package/dist/ptcw-design/p-220f86c0.entry.js +0 -1
  105. package/dist/ptcw-design/p-4a865061.entry.js +0 -1
  106. package/dist/ptcw-design/p-b0b4ebd6.entry.js +0 -359
  107. package/dist/ptcw-design/p-c20538ec.entry.js +0 -1
  108. package/dist/ptcw-design/p-f2621425.entry.js +0 -1
  109. package/dist/ptcw-design/p-f29c71fe.entry.js +0 -1
  110. package/dist/types/components/ptc-pricing-table/ptc-pricing-table.d.ts +0 -110
  111. package/dist/types/utils/eloqua.d.ts +0 -8
@@ -11,7 +11,7 @@ export class PtcTextfield {
11
11
  this.labelText = 'Email';
12
12
  this.helpertext = 'Please enter a value';
13
13
  this.disabled = false;
14
- this.name = 'email';
14
+ this.fieldName = 'email';
15
15
  this.ptcDataEloquaName = undefined;
16
16
  this.ptcDataTargetEloquaName = undefined;
17
17
  this.inputValue = '';
@@ -51,7 +51,7 @@ export class PtcTextfield {
51
51
  // debugger;
52
52
  // console.error('An error found here!', error.message);
53
53
  // }
54
- if (this.fieldId === 'contact-phone' && this.name === 'phone') {
54
+ if (this.fieldId === 'contact-phone' && this.fieldName === 'phone') {
55
55
  this.iti = intlTelInput(this.customInput, {
56
56
  separateDialCode: true,
57
57
  initialCountry: 'auto',
@@ -67,7 +67,7 @@ export class PtcTextfield {
67
67
  }
68
68
  }
69
69
  getPhoneValidation() {
70
- if (this.fieldId === 'contact-phone' && this.name === 'phone') {
70
+ if (this.fieldId === 'contact-phone' && this.fieldName === 'phone') {
71
71
  if (this.iti.isValidNumber()) {
72
72
  if (this.mdcTextfield.classList.contains('mdc-text-field--invalid')) {
73
73
  this.mdcTextfield.classList.remove('mdc-text-field--invalid');
@@ -75,7 +75,6 @@ export class PtcTextfield {
75
75
  if (this.el.classList.contains('invalid-field')) {
76
76
  this.el.classList.remove('invalid-field');
77
77
  }
78
- // console.log("text field class list: " + this.mdcTextfield.className)
79
78
  }
80
79
  else if (!this.iti.isValidNumber()) {
81
80
  if (!this.mdcTextfield.classList.contains('mdc-text-field--invalid')) {
@@ -84,10 +83,7 @@ export class PtcTextfield {
84
83
  if (!this.el.classList.contains('invalid-field')) {
85
84
  this.el.classList.add('invalid-field');
86
85
  }
87
- // console.log("text field class list: " + this.mdcTextfield.className);
88
- // console.log("this class list: " + this.el.className)
89
86
  }
90
- // console.log('hello!');
91
87
  }
92
88
  }
93
89
  setErrorBackground() {
@@ -104,7 +100,7 @@ export class PtcTextfield {
104
100
  }
105
101
  getInputClassName() {
106
102
  let className = 'mdc-text-field__input';
107
- if (this.type === 'tel' && this.name === 'phone') {
103
+ if (this.type === 'tel' && this.fieldName === 'phone') {
108
104
  className = `${className} intl-tel-input`;
109
105
  }
110
106
  else if (this.type === 'text' && this.ptcMaxLength) {
@@ -117,13 +113,13 @@ export class PtcTextfield {
117
113
  // if (this.type === 'email' && this.name === 'email') {
118
114
  // validationPattern = '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,}';
119
115
  // }
120
- if (this.name === 'firstname' || this.name === 'lastname') {
116
+ if (this.fieldName === 'firstname' || this.fieldName === 'lastname') {
121
117
  validationPattern = '[A-Za-z ]+';
122
118
  }
123
119
  return validationPattern;
124
120
  }
125
121
  setHelperText() {
126
- if (this.type === 'email' && this.name === 'email') {
122
+ if (this.type === 'email' && this.fieldName === 'email') {
127
123
  if (this.customInput.validity.valueMissing) {
128
124
  this.helpertext = 'Email is required.';
129
125
  }
@@ -131,7 +127,7 @@ export class PtcTextfield {
131
127
  this.helpertext = 'Please enter a valid email.';
132
128
  }
133
129
  }
134
- else if (this.name === 'firstname') {
130
+ else if (this.fieldName === 'firstname') {
135
131
  if (this.customInput.validity.valueMissing) {
136
132
  this.helpertext = 'Please enter your first name.';
137
133
  }
@@ -139,7 +135,7 @@ export class PtcTextfield {
139
135
  this.helpertext = 'Please check your first name';
140
136
  }
141
137
  }
142
- else if (this.name === 'lastname') {
138
+ else if (this.fieldName === 'lastname') {
143
139
  if (this.customInput.validity.valueMissing) {
144
140
  this.helpertext = 'Please enter your last name.';
145
141
  }
@@ -167,9 +163,9 @@ export class PtcTextfield {
167
163
  this.mdcTextfield = mdcTextfield;
168
164
  } }, h("span", { class: "mdc-notched-outline ptc-textfield-outline" }, h("span", { class: "mdc-notched-outline__leading" }), h("span", { class: "mdc-notched-outline__trailing" })), h("input", Object.assign({ ref: customInput => {
169
165
  this.customInput = customInput;
170
- }, id: this.fieldId }, (this.getInputClassName() ? { class: this.getInputClassName() } : null), { type: this.type }, (this.required ? { required: true } : null), (this.ptcMaxLength ? { maxlength: this.ptcMaxLength } : null), { "aria-controls": this.name, "aria-describedby": this.name, "data-eloqua-name": this.ptcDataEloquaName, "data-target-eloqua-name": this.ptcDataTargetEloquaName, value: this.inputValue }, (this.getValidationPattern() ? { pattern: this.getValidationPattern() } : null)))),
166
+ }, id: this.fieldId }, (this.getInputClassName() ? { class: this.getInputClassName() } : null), { type: this.type }, (this.required ? { required: true } : null), (this.ptcMaxLength ? { maxlength: this.ptcMaxLength } : null), { "aria-controls": this.fieldName, "aria-describedby": this.fieldName, "data-eloqua-name": this.ptcDataEloquaName, "data-target-eloqua-name": this.ptcDataTargetEloquaName, value: this.inputValue, name: this.fieldName }, (this.getValidationPattern() ? { pattern: this.getValidationPattern() } : null)))),
171
167
  h("div", { class: `mdc-text-field-helper-line
172
- ${!!this.ptcMaxLength ? 'field-with-counter' : ''}` }, h("div", { class: "mdc-text-field-helper-text mdc-text-field-helper-text--validation-msg", id: this.name }, h("svg", { class: "input-error-svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { "clip-path": "url(#clip0_12_1424)" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.3156 0L16 4.68444V11.3156L11.3156 16H4.68444L0 11.3156V4.68444L4.68444 0H11.3156ZM8 10.4C7.36 10.4 6.84444 10.9156 6.84444 11.5556C6.84444 12.1956 7.36 12.7111 8 12.7111C8.64 12.7111 9.15556 12.1956 9.15556 11.5556C9.15556 10.9156 8.64 10.4 8 10.4ZM8.88889 3.55556H7.11111V8.88889H8.88889V3.55556Z", fill: "#AF3231" })), h("defs", null, h("clipPath", { id: "clip0_12_1424" }, h("rect", { width: "16", height: "16", fill: "white" })))), this.helpertext), this.ptcMaxLength ? (h("div", { class: "mdc-text-field-character-counter" }, this.inputValue.length, " / ", this.ptcMaxLength)) : null),
168
+ ${!!this.ptcMaxLength ? 'field-with-counter' : ''}` }, h("div", { class: "mdc-text-field-helper-text mdc-text-field-helper-text--validation-msg", id: this.fieldName }, h("svg", { class: "input-error-svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { "clip-path": "url(#clip0_12_1424)" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.3156 0L16 4.68444V11.3156L11.3156 16H4.68444L0 11.3156V4.68444L4.68444 0H11.3156ZM8 10.4C7.36 10.4 6.84444 10.9156 6.84444 11.5556C6.84444 12.1956 7.36 12.7111 8 12.7111C8.64 12.7111 9.15556 12.1956 9.15556 11.5556C9.15556 10.9156 8.64 10.4 8 10.4ZM8.88889 3.55556H7.11111V8.88889H8.88889V3.55556Z", fill: "#AF3231" })), h("defs", null, h("clipPath", { id: "clip0_12_1424" }, h("rect", { width: "16", height: "16", fill: "white" })))), this.helpertext), this.ptcMaxLength ? (h("div", { class: "mdc-text-field-character-counter" }, this.inputValue.length, " / ", this.ptcMaxLength)) : null),
173
169
  ]) : (h("input", { type: "hidden", "data-eloqua-name": this.ptcDataEloquaName, value: this.inputValue }))));
174
170
  }
175
171
  static get is() { return "ptc-textfield"; }
@@ -309,7 +305,7 @@ export class PtcTextfield {
309
305
  "reflect": false,
310
306
  "defaultValue": "false"
311
307
  },
312
- "name": {
308
+ "fieldName": {
313
309
  "type": "string",
314
310
  "mutable": false,
315
311
  "complexType": {
@@ -323,7 +319,7 @@ export class PtcTextfield {
323
319
  "tags": [],
324
320
  "text": ""
325
321
  },
326
- "attribute": "name",
322
+ "attribute": "field-name",
327
323
  "reflect": false,
328
324
  "defaultValue": "'email'"
329
325
  },
@@ -0,0 +1,36 @@
1
+ :host {
2
+ display: block;
3
+ padding: 32px;
4
+ border-radius: var(--ptc-border-radius-standard);
5
+ border: 1px solid var(--color-gray-02);
6
+ margin-bottom: 16px;
7
+ }
8
+ @media only screen and (min-width: 768px) {
9
+ :host {
10
+ display: inline-flex;
11
+ align-items: flex-start;
12
+ gap: 24px;
13
+ }
14
+ }
15
+ :host ptc-picture {
16
+ max-width: 200px;
17
+ min-width: 150px;
18
+ margin-bottom: 24px;
19
+ }
20
+ @media only screen and (min-width: 480px) {
21
+ :host ptc-picture {
22
+ min-width: 200px;
23
+ }
24
+ }
25
+ @media only screen and (min-width: 768px) {
26
+ :host ptc-picture {
27
+ margin-bottom: 0;
28
+ }
29
+ }
30
+ :host .card-content .tag {
31
+ display: block;
32
+ margin-bottom: 8px;
33
+ font-size: 14px;
34
+ font-weight: 600;
35
+ line-height: 1.5;
36
+ }
@@ -0,0 +1,60 @@
1
+ import { Host, h } from '@stencil/core';
2
+ export class PtcValueLedCard {
3
+ constructor() {
4
+ this.cardTitle = undefined;
5
+ this.cardImage = undefined;
6
+ }
7
+ render() {
8
+ return (h(Host, null, h("ptc-picture", { alt: "image", "border-radius": "radius-standard", "display-image": "block", "image-position": "relative", "is-full-height": "true", "is-full-width": "true", "object-fit": "cover", src: this.cardImage, styles: "" }), h("div", { class: "card-content" }, h("span", { class: 'tag' }, "Up Next"), h("ptc-title", { type: "h3", "title-size": "large", "title-color": "gray", upperline: "no-upperline", "title-display": "inline-block", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-7" }, this.cardTitle), h("ptc-spacer", { size: "x-small" }), h("slot", null))));
9
+ }
10
+ static get is() { return "ptc-value-led-card"; }
11
+ static get encapsulation() { return "shadow"; }
12
+ static get originalStyleUrls() {
13
+ return {
14
+ "$": ["ptc-value-led-card.scss"]
15
+ };
16
+ }
17
+ static get styleUrls() {
18
+ return {
19
+ "$": ["ptc-value-led-card.css"]
20
+ };
21
+ }
22
+ static get properties() {
23
+ return {
24
+ "cardTitle": {
25
+ "type": "string",
26
+ "mutable": false,
27
+ "complexType": {
28
+ "original": "string",
29
+ "resolved": "string",
30
+ "references": {}
31
+ },
32
+ "required": false,
33
+ "optional": true,
34
+ "docs": {
35
+ "tags": [],
36
+ "text": ""
37
+ },
38
+ "attribute": "card-title",
39
+ "reflect": false
40
+ },
41
+ "cardImage": {
42
+ "type": "string",
43
+ "mutable": false,
44
+ "complexType": {
45
+ "original": "string",
46
+ "resolved": "string",
47
+ "references": {}
48
+ },
49
+ "required": false,
50
+ "optional": true,
51
+ "docs": {
52
+ "tags": [],
53
+ "text": ""
54
+ },
55
+ "attribute": "card-image",
56
+ "reflect": false
57
+ }
58
+ };
59
+ }
60
+ }
@@ -0,0 +1,12 @@
1
+ :host {
2
+ display: block;
3
+ padding-bottom: 48px;
4
+ }
5
+ :host .vl-content-title {
6
+ margin-bottom: 24px;
7
+ }
8
+ @media only screen and (min-width: 768px) {
9
+ :host .vl-content-title {
10
+ margin-bottom: 32px;
11
+ }
12
+ }
@@ -0,0 +1,18 @@
1
+ import { Host, h } from '@stencil/core';
2
+ export class PtcValueLedContent {
3
+ render() {
4
+ return (h(Host, null, h("div", { class: "vl-content-title" }, h("ptc-title", { type: "h2", upperline: "no-upperline", "title-height": "densest", "title-margin": "margin-flush" }, h("slot", { name: "vl-content-title" }))), h("slot", null)));
5
+ }
6
+ static get is() { return "ptc-value-led-content"; }
7
+ static get encapsulation() { return "shadow"; }
8
+ static get originalStyleUrls() {
9
+ return {
10
+ "$": ["ptc-value-led-content.scss"]
11
+ };
12
+ }
13
+ static get styleUrls() {
14
+ return {
15
+ "$": ["ptc-value-led-content.css"]
16
+ };
17
+ }
18
+ }
@@ -0,0 +1,31 @@
1
+ :host {
2
+ display: block;
3
+ border-left: 7px solid var(--color-green-07);
4
+ padding-left: 32px;
5
+ margin: 0 0 48px 0;
6
+ }
7
+ @media only screen and (min-width: 480px) {
8
+ :host {
9
+ margin: 0 0 48px 40px;
10
+ }
11
+ }
12
+ @media only screen and (min-width: 992px) {
13
+ :host {
14
+ margin: 8px 0 48px 48px;
15
+ }
16
+ }
17
+ :host::slotted(p) {
18
+ color: var(--color-gray-10);
19
+ font-size: 18px;
20
+ font-weight: 600;
21
+ line-height: 1.5;
22
+ }
23
+ :host::slotted(ul li) {
24
+ color: var(--color-gray-10);
25
+ font-size: 18px;
26
+ font-weight: 600;
27
+ line-height: 1.5;
28
+ }
29
+ :host::slotted(ul) {
30
+ padding-left: 12px;
31
+ }
@@ -0,0 +1,18 @@
1
+ import { Host, h } from '@stencil/core';
2
+ export class PtcValueLedContentHighlight {
3
+ render() {
4
+ return (h(Host, null, h("slot", null)));
5
+ }
6
+ static get is() { return "ptc-value-led-content-highlight"; }
7
+ static get encapsulation() { return "scoped"; }
8
+ static get originalStyleUrls() {
9
+ return {
10
+ "$": ["ptc-value-led-content-highlight.scss"]
11
+ };
12
+ }
13
+ static get styleUrls() {
14
+ return {
15
+ "$": ["ptc-value-led-content-highlight.css"]
16
+ };
17
+ }
18
+ }
@@ -0,0 +1,16 @@
1
+ :host {
2
+ display: block;
3
+ padding-bottom: 48px;
4
+ padding-top: 32px;
5
+ }
6
+ @media only screen and (min-width: 768px) {
7
+ :host {
8
+ padding-top: 0;
9
+ }
10
+ }
11
+ :host .content-tag {
12
+ font-size: var(--ptc-font-size-xx-small);
13
+ line-height: var(--ptc-line-height-p);
14
+ font-weight: var(--ptc-font-weight-semibold);
15
+ margin-bottom: var(--ptc-element-spacing-01);
16
+ }
@@ -0,0 +1,42 @@
1
+ import { Host, h } from '@stencil/core';
2
+ export class PtcValueLedIntro {
3
+ constructor() {
4
+ this.contentTag = undefined;
5
+ }
6
+ render() {
7
+ return (h(Host, null, h("div", { class: 'content-tag' }, this.contentTag), h("slot", null)));
8
+ }
9
+ static get is() { return "ptc-value-led-intro"; }
10
+ static get encapsulation() { return "shadow"; }
11
+ static get originalStyleUrls() {
12
+ return {
13
+ "$": ["ptc-value-led-intro.scss"]
14
+ };
15
+ }
16
+ static get styleUrls() {
17
+ return {
18
+ "$": ["ptc-value-led-intro.css"]
19
+ };
20
+ }
21
+ static get properties() {
22
+ return {
23
+ "contentTag": {
24
+ "type": "string",
25
+ "mutable": false,
26
+ "complexType": {
27
+ "original": "string",
28
+ "resolved": "string",
29
+ "references": {}
30
+ },
31
+ "required": false,
32
+ "optional": false,
33
+ "docs": {
34
+ "tags": [],
35
+ "text": ""
36
+ },
37
+ "attribute": "content-tag",
38
+ "reflect": false
39
+ }
40
+ };
41
+ }
42
+ }
@@ -134,6 +134,14 @@
134
134
  color: var(--color-gray-10);
135
135
  position: relative;
136
136
  }
137
+ :host .vl-layout-wrap .vl-list-wrap ul li a span {
138
+ display: -webkit-box;
139
+ -webkit-line-clamp: 2;
140
+ -webkit-box-orient: vertical;
141
+ overflow: hidden;
142
+ text-overflow: ellipsis;
143
+ overflow-wrap: break-word;
144
+ }
137
145
  :host .vl-layout-wrap .vl-list-wrap ul li a::before {
138
146
  content: "";
139
147
  display: block;
@@ -174,10 +182,15 @@
174
182
  }
175
183
  :host .vl-layout-wrap .vl-content-wrap {
176
184
  width: 100%;
177
- padding: 0 32px 32px 32px;
185
+ padding: 0 20px 20px 20px;
178
186
  background-color: #fff;
179
187
  border-radius: var(--ptc-border-radius-standard);
180
188
  }
189
+ @media only screen and (min-width: 480px) {
190
+ :host .vl-layout-wrap .vl-content-wrap {
191
+ padding: 0 32px 32px 32px;
192
+ }
193
+ }
181
194
  @media only screen and (min-width: 992px) {
182
195
  :host .vl-layout-wrap .vl-content-wrap {
183
196
  width: 78%;
@@ -203,7 +216,13 @@
203
216
  box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.24);
204
217
  padding: 24px 48px 24px 24px;
205
218
  border: none;
206
- width: calc(100% + 64px);
207
- margin-left: -32px;
219
+ width: calc(100% + 40px);
220
+ margin-left: -20px;
208
221
  background-position: calc(100% - 24px) 50%;
222
+ }
223
+ @media only screen and (min-width: 480px) {
224
+ :host .vl-layout-wrap .vl-content-wrap .mobile-select {
225
+ width: calc(100% + 64px);
226
+ margin-left: -32px;
227
+ }
209
228
  }
@@ -97,7 +97,7 @@ export class PtcValueLedLayout {
97
97
  }
98
98
  }
99
99
  render() {
100
- return (h(Host, null, h("div", { class: 'top-image', style: { backgroundImage: `url(${this.topBackgroundImage})` } }), h("div", { class: 'ptc-container' }, h("div", { class: "pdf-slot-wrapper" }, h("slot", { name: 'pdf-slot' })), h("div", { class: "vl-layout-wrap" }, (this.sidebarData.length > 0 && !this.isMobile) && (h("div", { class: 'vl-sidebar' }, h("div", { class: 'vl-list-wrap' }, h("ul", null, this.sidebarData.map((item) => (h("li", null, h("a", { href: "#" + item.ref }, item.title)))))))), h("div", { class: 'vl-content-wrap' }, this.isMobile &&
100
+ return (h(Host, null, h("div", { class: 'top-image', style: { backgroundImage: `url(${this.topBackgroundImage})` } }), h("div", { class: 'ptc-container' }, h("div", { class: "pdf-slot-wrapper" }, h("slot", { name: 'pdf-slot' })), h("div", { class: "vl-layout-wrap" }, (this.sidebarData.length > 0 && !this.isMobile) && (h("div", { class: 'vl-sidebar' }, h("div", { class: 'vl-list-wrap' }, h("ul", null, this.sidebarData.map((item) => (h("li", null, h("a", { href: "#" + item.ref }, h("span", null, item.title))))))))), h("div", { class: 'vl-content-wrap' }, this.isMobile &&
101
101
  h("select", { class: 'mobile-select', onChange: (event) => this.handleSelectChange(event) }, this.sidebarData.map((item) => (h("option", { value: item.title }, " ", item.title)))), h("div", { class: 'vl-content-slot-wrap' }, h("slot", null)))))));
102
102
  }
103
103
  static get is() { return "ptc-value-led-layout"; }
@@ -0,0 +1,63 @@
1
+ :host {
2
+ display: block;
3
+ margin-bottom: 48px;
4
+ }
5
+ :host .sb-card {
6
+ display: block;
7
+ border-radius: 4px;
8
+ background: var(--color-white);
9
+ box-shadow: var(--ptc-shadow-x-small);
10
+ text-decoration: none;
11
+ }
12
+ @media only screen and (min-width: 480px) {
13
+ :host .sb-card {
14
+ display: flex;
15
+ }
16
+ }
17
+ :host .sb-card .img-wrap {
18
+ width: 100%;
19
+ max-height: 120px;
20
+ overflow: hidden;
21
+ }
22
+ @media only screen and (min-width: 480px) {
23
+ :host .sb-card .img-wrap {
24
+ max-width: 120px;
25
+ max-height: initial;
26
+ }
27
+ }
28
+ :host .sb-card .img-wrap ptc-picture {
29
+ height: 100%;
30
+ }
31
+ :host .sb-card .card-content-wrap {
32
+ display: flex;
33
+ justify-content: space-between;
34
+ align-items: center;
35
+ width: 100%;
36
+ padding: 16px 16px 16px 16px;
37
+ box-sizing: border-box;
38
+ }
39
+ @media only screen and (min-width: 768px) {
40
+ :host .sb-card .card-content-wrap .card-content {
41
+ padding-right: 24px;
42
+ }
43
+ }
44
+ :host .sb-card .card-content-wrap h4, :host .sb-card .card-content-wrap p {
45
+ color: var(--color-gray-10);
46
+ font-size: var(--ptc-font-size-xx-small);
47
+ font-weight: var(--ptc-font-weight-bold);
48
+ line-height: var(--ptc-line-height-p);
49
+ margin: 0 0 4px 0;
50
+ text-decoration: none;
51
+ }
52
+ :host .sb-card .card-content-wrap p {
53
+ margin: 0;
54
+ font-weight: var(--ptc-font-weight-semibold);
55
+ }
56
+ :host .sb-card .card-content-wrap .cta-slot {
57
+ display: none;
58
+ }
59
+ @media only screen and (min-width: 768px) {
60
+ :host .sb-card .card-content-wrap .cta-slot {
61
+ display: block;
62
+ }
63
+ }
@@ -0,0 +1,97 @@
1
+ import { Host, h } from '@stencil/core';
2
+ export class PtcValueLedSpeedBump {
3
+ constructor() {
4
+ this.cardTitle = undefined;
5
+ this.cardImage = undefined;
6
+ this.isMobile = undefined;
7
+ }
8
+ handleResize() {
9
+ this.isMobile = window.innerWidth < 768;
10
+ }
11
+ componentWillLoad() {
12
+ this.isMobile = window.innerWidth < 768;
13
+ this.ctaLink = document.querySelector('ptc-value-led-speed-bump ptc-button').getAttribute('link-href');
14
+ this.ctaTarget = document.querySelector('ptc-value-led-speed-bump ptc-button').getAttribute('target');
15
+ }
16
+ render() {
17
+ const Tag = !!this.isMobile ? 'a' : 'div';
18
+ return (h(Host, null, h(Tag, { class: "sb-card", href: this.ctaLink, target: this.ctaTarget }, this.cardImage &&
19
+ h("div", { class: 'img-wrap' }, h("ptc-picture", { alt: "image", "border-radius": "radius-standard", "display-image": "block", "image-position": "relative", "is-full-height": "true", "is-full-width": "true", "object-fit": "cover", src: this.cardImage, styles: "" })), h("div", { class: 'card-content-wrap' }, h("div", { class: 'card-content' }, h("h4", null, this.cardTitle), h("p", null, h("slot", null))), h("div", { class: 'cta-slot' }, h("slot", { name: 'cta-slot' }))))));
20
+ }
21
+ static get is() { return "ptc-value-led-speed-bump"; }
22
+ static get encapsulation() { return "shadow"; }
23
+ static get originalStyleUrls() {
24
+ return {
25
+ "$": ["ptc-value-led-speed-bump.scss"]
26
+ };
27
+ }
28
+ static get styleUrls() {
29
+ return {
30
+ "$": ["ptc-value-led-speed-bump.css"]
31
+ };
32
+ }
33
+ static get properties() {
34
+ return {
35
+ "cardTitle": {
36
+ "type": "string",
37
+ "mutable": false,
38
+ "complexType": {
39
+ "original": "string",
40
+ "resolved": "string",
41
+ "references": {}
42
+ },
43
+ "required": false,
44
+ "optional": true,
45
+ "docs": {
46
+ "tags": [],
47
+ "text": ""
48
+ },
49
+ "attribute": "card-title",
50
+ "reflect": false
51
+ },
52
+ "cardImage": {
53
+ "type": "string",
54
+ "mutable": false,
55
+ "complexType": {
56
+ "original": "string",
57
+ "resolved": "string",
58
+ "references": {}
59
+ },
60
+ "required": false,
61
+ "optional": true,
62
+ "docs": {
63
+ "tags": [],
64
+ "text": ""
65
+ },
66
+ "attribute": "card-image",
67
+ "reflect": false
68
+ },
69
+ "isMobile": {
70
+ "type": "boolean",
71
+ "mutable": false,
72
+ "complexType": {
73
+ "original": "boolean",
74
+ "resolved": "boolean",
75
+ "references": {}
76
+ },
77
+ "required": false,
78
+ "optional": false,
79
+ "docs": {
80
+ "tags": [],
81
+ "text": ""
82
+ },
83
+ "attribute": "is-mobile",
84
+ "reflect": false
85
+ }
86
+ };
87
+ }
88
+ static get listeners() {
89
+ return [{
90
+ "name": "resize",
91
+ "method": "handleResize",
92
+ "target": "window",
93
+ "capture": false,
94
+ "passive": true
95
+ }];
96
+ }
97
+ }
@@ -458,12 +458,6 @@ export const PtcPricingPackagingTable: {
458
458
  new (): PtcPricingPackagingTable;
459
459
  };
460
460
 
461
- interface PtcPricingTable extends Components.PtcPricingTable, HTMLElement {}
462
- export const PtcPricingTable: {
463
- prototype: PtcPricingTable;
464
- new (): PtcPricingTable;
465
- };
466
-
467
461
  interface PtcPricingTabs extends Components.PtcPricingTabs, HTMLElement {}
468
462
  export const PtcPricingTabs: {
469
463
  prototype: PtcPricingTabs;
@@ -698,12 +692,42 @@ export const PtcTwoColumnMedia: {
698
692
  new (): PtcTwoColumnMedia;
699
693
  };
700
694
 
695
+ interface PtcValueLedCard extends Components.PtcValueLedCard, HTMLElement {}
696
+ export const PtcValueLedCard: {
697
+ prototype: PtcValueLedCard;
698
+ new (): PtcValueLedCard;
699
+ };
700
+
701
+ interface PtcValueLedContent extends Components.PtcValueLedContent, HTMLElement {}
702
+ export const PtcValueLedContent: {
703
+ prototype: PtcValueLedContent;
704
+ new (): PtcValueLedContent;
705
+ };
706
+
707
+ interface PtcValueLedContentHighlight extends Components.PtcValueLedContentHighlight, HTMLElement {}
708
+ export const PtcValueLedContentHighlight: {
709
+ prototype: PtcValueLedContentHighlight;
710
+ new (): PtcValueLedContentHighlight;
711
+ };
712
+
713
+ interface PtcValueLedIntro extends Components.PtcValueLedIntro, HTMLElement {}
714
+ export const PtcValueLedIntro: {
715
+ prototype: PtcValueLedIntro;
716
+ new (): PtcValueLedIntro;
717
+ };
718
+
701
719
  interface PtcValueLedLayout extends Components.PtcValueLedLayout, HTMLElement {}
702
720
  export const PtcValueLedLayout: {
703
721
  prototype: PtcValueLedLayout;
704
722
  new (): PtcValueLedLayout;
705
723
  };
706
724
 
725
+ interface PtcValueLedSpeedBump extends Components.PtcValueLedSpeedBump, HTMLElement {}
726
+ export const PtcValueLedSpeedBump: {
727
+ prototype: PtcValueLedSpeedBump;
728
+ new (): PtcValueLedSpeedBump;
729
+ };
730
+
707
731
  interface PtcValuePropCard extends Components.PtcValuePropCard, HTMLElement {}
708
732
  export const PtcValuePropCard: {
709
733
  prototype: PtcValuePropCard;