@tet/tet-components 1.3.107-staging → 1.3.108-staging
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.
- package/dist/cjs/tet-address-offers-filters-products_3.cjs.entry.js +4 -4
- package/dist/collection/components/advanced/cards/tet-compare-card/tet-compare-card.css +17 -7
- package/dist/collection/components/advanced/cards/tet-compare-card/tet-compare-card.js +3 -3
- package/dist/components/{p-78f36947.js → p-215ddf03.js} +1 -1
- package/dist/components/{p-9810ed43.js → p-6651bfbc.js} +4 -4
- package/dist/components/{p-99d7a3eb.js → p-bd08528f.js} +1 -1
- package/dist/components/tet-address-offers-view.js +2 -2
- package/dist/components/tet-address-offers.js +1 -1
- package/dist/components/tet-compare-card.js +1 -1
- package/dist/components/tet-compare-cards-tab.js +2 -2
- package/dist/components/tet-compare-cards.js +1 -1
- package/dist/esm/tet-address-offers-filters-products_3.entry.js +4 -4
- package/dist/tet-components/p-cbf18453.entry.js +1 -0
- package/dist/tet-components/tet-components.esm.js +1 -1
- package/dist/types/components/advanced/cards/tet-compare-card/tet-compare-card.d.ts +2 -0
- package/package.json +1 -1
- package/dist/tet-components/p-598c1300.entry.js +0 -1
|
@@ -7684,13 +7684,14 @@
|
|
|
7684
7684
|
|
|
7685
7685
|
.tet-electricity {
|
|
7686
7686
|
--compare-card-background-color: transparent;
|
|
7687
|
-
background: radial-gradient(
|
|
7687
|
+
background: radial-gradient(116.09% 141.42% at 0% 0%, var(--tc-gradient-yellow-lin1, rgb(254, 251, 246)) 0%, var(--tc-gradient-yellow-lin2, rgb(251, 240, 216)) 100%);
|
|
7688
7688
|
}
|
|
7689
7689
|
.tet-electricity.color-icons {
|
|
7690
|
-
--compare-card-bullet-point-icon-color: var(--tc-
|
|
7690
|
+
--compare-card-bullet-point-icon-color: var(--tc-text-primary);
|
|
7691
7691
|
}
|
|
7692
|
-
.tet-electricity.card.best-choice {
|
|
7693
|
-
|
|
7692
|
+
.tet-electricity.card .best-choice-title {
|
|
7693
|
+
background: var(--tc-yellow-40);
|
|
7694
|
+
color: var(--tc-text-primary);
|
|
7694
7695
|
}
|
|
7695
7696
|
|
|
7696
7697
|
.tet-internet {
|
|
@@ -8048,17 +8049,17 @@
|
|
|
8048
8049
|
}
|
|
8049
8050
|
.best-choice-title.left, .best-choice-title.right {
|
|
8050
8051
|
background: rgb(121, 232, 145);
|
|
8051
|
-
top:
|
|
8052
|
+
top: 0;
|
|
8052
8053
|
border-radius: 0 1.5rem 0 1rem;
|
|
8053
8054
|
color: rgb(43, 82, 51);
|
|
8054
8055
|
font-family: var(--font-family-content);
|
|
8055
8056
|
}
|
|
8056
8057
|
.best-choice-title.left {
|
|
8057
|
-
left:
|
|
8058
|
+
left: 0;
|
|
8058
8059
|
border-radius: 1.5rem 0 1rem 0;
|
|
8059
8060
|
}
|
|
8060
8061
|
.best-choice-title.right {
|
|
8061
|
-
right:
|
|
8062
|
+
right: 0;
|
|
8062
8063
|
border-radius: 0 1.5rem 0 1rem;
|
|
8063
8064
|
}
|
|
8064
8065
|
.best-choice-title.active {
|
|
@@ -8159,11 +8160,20 @@
|
|
|
8159
8160
|
.title-wrapper .sub-title .info-item .icon {
|
|
8160
8161
|
cursor: pointer;
|
|
8161
8162
|
}
|
|
8163
|
+
.title-wrapper .info-title {
|
|
8164
|
+
font: 400 1rem/1.5rem Inter, Gilroy, Arial, sans-serif;
|
|
8165
|
+
color: var(--compare-card-title-text-color);
|
|
8166
|
+
margin-bottom: 1rem;
|
|
8167
|
+
}
|
|
8162
8168
|
|
|
8163
8169
|
.bullet-points-wrapper {
|
|
8164
8170
|
margin-bottom: 0.75rem;
|
|
8165
8171
|
line-height: 1.5rem;
|
|
8166
8172
|
}
|
|
8173
|
+
.bullet-points-wrapper.bottom {
|
|
8174
|
+
margin-top: 2rem;
|
|
8175
|
+
margin-bottom: 0;
|
|
8176
|
+
}
|
|
8167
8177
|
.bullet-points-wrapper .bullet-point {
|
|
8168
8178
|
font: 400 1rem/1.5rem Inter, Gilroy, Arial, sans-serif;
|
|
8169
8179
|
color: var(--compare-card-bullet-point-text-color);
|
|
@@ -234,7 +234,7 @@ export class TetCompareCard {
|
|
|
234
234
|
* @returns rendered card body.
|
|
235
235
|
*/
|
|
236
236
|
renderCard() {
|
|
237
|
-
var _a, _b, _c, _d;
|
|
237
|
+
var _a, _b, _c, _d, _e, _f;
|
|
238
238
|
return (h("div", { onClick: this.clickCallback, onKeyDown: () => { }, class: {
|
|
239
239
|
'card': true,
|
|
240
240
|
[`${this.currentCardType}`]: true,
|
|
@@ -259,14 +259,14 @@ export class TetCompareCard {
|
|
|
259
259
|
'no-divider': this.priceShownVertically
|
|
260
260
|
}, part: "compare-card-title-wrapper" }, h("div", { class: {
|
|
261
261
|
'title-wrapper-inner': true
|
|
262
|
-
} }, this.options.heroTitle ? h("h3", { class: "hero-title" }, this.options.heroTitle) : '', this.options.mainTitle ? h("h3", { class: "main-title" }, this.options.mainTitle) : '', this.showSubTitle && this.options.subTitle ? (h("div", { class: "sub-title" }, this.options.subTitle, this.renderTooltip('infoItem'))) : ('')))) : (''), h("div", { class: "content-wrapper js-resize-content" }, h("div", { class: "custom-content-wrapper" }, h("slot", { name: "custom-slot" })), this.showBulletPoints ? (h("div", { class: "bullet-points-wrapper" }, (_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.bulletPoints) === null || _b === void 0 ? void 0 : _b.map((bulletpoint) => (h("div", { class: "bullet-point" }, h("tet-icon", { class: "icon", name: "check-circle" }), h("div", { innerHTML: bulletpoint })))))) : (''), h("div", { class: "upsell-block" }, h("slot", { name: "upsell-block-slot" }))), this.options.netflixProductDescription ? (h("div", { class: "netflix-product-description" }, this.options.netflixProductDescription)) : (''), h("div", { class: "divided-information-wrapper js-resize-divide-slot" }, h("slot", { name: "divided-information-slot" }))), h("div", { class: "compare-card-half-40" }, h("div", { class: "price js-resize-price" }, this.options.price && !isNaN(parseFloat(this.options.price)) ? (h("div", { class: {
|
|
262
|
+
} }, this.options.heroTitle ? h("h3", { class: "hero-title" }, this.options.heroTitle) : '', this.options.mainTitle ? h("h3", { class: "main-title" }, this.options.mainTitle) : '', this.showSubTitle && this.options.subTitle ? (h("div", { class: "sub-title" }, this.options.subTitle, this.renderTooltip('infoItem'))) : (''), this.options.infoTitle ? h("div", { class: "info-title" }, this.options.infoTitle) : ''))) : (''), h("div", { class: "content-wrapper js-resize-content" }, h("div", { class: "custom-content-wrapper" }, h("slot", { name: "custom-slot" })), this.showBulletPoints && !this.options.bulletPointPositionBottom ? (h("div", { class: "bullet-points-wrapper" }, (_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.bulletPoints) === null || _b === void 0 ? void 0 : _b.map((bulletpoint) => (h("div", { class: "bullet-point" }, h("tet-icon", { class: "icon", name: "check-circle" }), h("div", { innerHTML: bulletpoint })))))) : (''), h("div", { class: "upsell-block" }, h("slot", { name: "upsell-block-slot" }))), this.options.netflixProductDescription ? (h("div", { class: "netflix-product-description" }, this.options.netflixProductDescription)) : (''), h("div", { class: "divided-information-wrapper js-resize-divide-slot" }, h("slot", { name: "divided-information-slot" }))), h("div", { class: "compare-card-half-40" }, h("div", { class: "price js-resize-price" }, this.options.price && !isNaN(parseFloat(this.options.price)) ? (h("div", { class: {
|
|
263
263
|
'price-wrapper': true,
|
|
264
264
|
'price-wrap': this.options.priceWrap,
|
|
265
265
|
'price-flex-column': this.priceShownVertically
|
|
266
266
|
} }, h("div", { class: "price-container" }, this.options.pricePrefix && h("div", { class: "price-prefix", innerHTML: this.options.pricePrefix }), h("div", { class: "new-price translation-none" }, parseFloat(this.options.price.replace(',', '.')).toFixed(2).replace('.', ',')), h("div", { class: "currency" }, h("span", null, this.options.currency), this.renderTooltip('priceInfo'))), this.options.oldPrice ? (h("div", { class: "old-price-container" }, h("div", { class: "old-price translation-none" }, parseFloat(this.options.oldPrice.replace(',', '.')).toFixed(2).replace('.', ',')), h("div", { class: "old-currency" }, this.options.currency))) : (''), this.options.priceBadge ? h("div", { class: "price-badge" }, this.options.priceBadge) : '')) : (''), this.showHelper ? (h("div", { class: "helper" }, this.options.term ? h("div", { class: "term" }, this.options.term) : '', this.options.termText ? h("div", { class: "term-text", innerHTML: this.options.termText }) : '', h("span", { innerHTML: this.options.helper }))) : (''), this.isNetflixCard && this.options.selectOptions !== undefined ? (h("div", { class: "select" }, h("tet-dropdown", { id: "dropdown", class: "cards-dropdown", theme: this.darkMode ? 'dark' : 'light', "button-label": "", "label-logo": this.options.selectOptions[0].labelLogo, "label-right": this.options.selectOptions[0].labelRight, "label-right-color": this.options.selectOptions[0].labelRightColor, "close-on-selection": true, options: this.options.selectOptions, "flex-layout": true }))) : ('')), h("div", { class: "button-wrapper" }, this.renderButton(), h("div", { class: "description-wrapper js-resize-divide-slot" }, h("slot", { name: "description-slot" })), this.options.secondaryLink && this.options.secondaryLinkText && (h("div", { class: {
|
|
267
267
|
'secondary-link': true,
|
|
268
268
|
[`${this.secondaryLinkPosition}`]: true
|
|
269
|
-
} }, this.options.secondaryLinkOpenBlank ? (h("a", { target: "_blank", href: this.options.secondaryLink }, this.options.secondaryLinkText)) : (h("a", { href: this.options.secondaryLink }, this.options.secondaryLinkText)))))), this.cardScript ? h("link", { href: this.cardScript, rel: "stylesheet", type: "text/css" }) : '', h("div", { class: "data-hidden" }, h("div", { "data-attribute": "hero-title" }, this.options.heroTitle ? this.options.heroTitle : ''), h("div", { "data-attribute": "main-title" }, this.options.mainTitle ? this.options.mainTitle : ''), h("div", { "data-attribute": "sub-title" }, this.options.subTitle ? this.options.subTitle : ''), h("div", { "data-attribute": "price" }, this.options.price ? this.formatPrice(this.options.price) : ''), h("div", { "data-attribute": "old-price" }, this.options.oldPrice ? this.formatPrice(this.options.oldPrice) : ''), h("div", { "data-attribute": "term" }, this.options.term ? this.options.term : ''), h("div", { "data-attribute": "term-text" }, this.options.termText ? this.options.termText : ''), h("div", { "data-attribute": "helper" }, this.options.helper ? this.options.helper : ''), h("div", { "data-attribute": "description" }, h("slot", { name: "description-slot" })), h("div", { "data-attribute": "custom-slot" }, h("slot", { name: "custom-slot" })), this.showBulletPoints ? (h("div", { "data-attribute": "bullet-points" }, (
|
|
269
|
+
} }, this.options.secondaryLinkOpenBlank ? (h("a", { target: "_blank", href: this.options.secondaryLink }, this.options.secondaryLinkText)) : (h("a", { href: this.options.secondaryLink }, this.options.secondaryLinkText))))), this.showBulletPoints && this.options.bulletPointPositionBottom ? (h("div", { class: "bullet-points-wrapper bottom" }, (_d = (_c = this.options) === null || _c === void 0 ? void 0 : _c.bulletPoints) === null || _d === void 0 ? void 0 : _d.map((bulletpoint) => (h("div", { class: "bullet-point" }, h("tet-icon", { class: "icon", name: "check-circle" }), h("div", { innerHTML: bulletpoint })))))) : ('')), this.cardScript ? h("link", { href: this.cardScript, rel: "stylesheet", type: "text/css" }) : '', h("div", { class: "data-hidden" }, h("div", { "data-attribute": "hero-title" }, this.options.heroTitle ? this.options.heroTitle : ''), h("div", { "data-attribute": "main-title" }, this.options.mainTitle ? this.options.mainTitle : ''), h("div", { "data-attribute": "sub-title" }, this.options.subTitle ? this.options.subTitle : ''), h("div", { "data-attribute": "price" }, this.options.price ? this.formatPrice(this.options.price) : ''), h("div", { "data-attribute": "old-price" }, this.options.oldPrice ? this.formatPrice(this.options.oldPrice) : ''), h("div", { "data-attribute": "term" }, this.options.term ? this.options.term : ''), h("div", { "data-attribute": "term-text" }, this.options.termText ? this.options.termText : ''), h("div", { "data-attribute": "helper" }, this.options.helper ? this.options.helper : ''), h("div", { "data-attribute": "description" }, h("slot", { name: "description-slot" })), h("div", { "data-attribute": "custom-slot" }, h("slot", { name: "custom-slot" })), this.showBulletPoints ? (h("div", { "data-attribute": "bullet-points" }, (_f = (_e = this.options) === null || _e === void 0 ? void 0 : _e.bulletPoints) === null || _f === void 0 ? void 0 : _f.map((bulletpoint) => (h("div", null, bulletpoint))))) : (''), h("div", { "data-attribute": "divided-information" }, h("slot", { name: "divided-information-slot" })), this.options.pricePrefix ?
|
|
270
270
|
h("div", { "data-attribute": "price-prefix" }, this.options.pricePrefix)
|
|
271
271
|
: '', this.options.priceInfo ?
|
|
272
272
|
h("div", { "data-attribute": "price-info" }, this.options.priceInfo)
|
|
@@ -3,7 +3,7 @@ import { e as endpoints, A as ApiRequest } from './p-813a10ca.js';
|
|
|
3
3
|
import { g as generateFormUrl } from './p-6e631dc7.js';
|
|
4
4
|
import { d as defineCustomElement$7 } from './p-affe13a1.js';
|
|
5
5
|
import { d as defineCustomElement$6 } from './p-5af39094.js';
|
|
6
|
-
import { d as defineCustomElement$5 } from './p-
|
|
6
|
+
import { d as defineCustomElement$5 } from './p-6651bfbc.js';
|
|
7
7
|
import { d as defineCustomElement$4 } from './p-f12bd355.js';
|
|
8
8
|
import { d as defineCustomElement$3 } from './p-d7ee107e.js';
|
|
9
9
|
import { d as defineCustomElement$2 } from './p-41bb5fa4.js';
|