@kompasid/lit-web-components 0.9.43 → 0.9.45
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/src/components/kompasid-paywall-body/KompasPaywallBody.js +14 -12
- package/dist/src/components/kompasid-paywall-body/KompasPaywallBody.js.map +1 -1
- package/dist/tailwind/tailwind.js +10 -6
- package/dist/tailwind/tailwind.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/components/kompasid-paywall-body/KompasPaywallBody.ts +14 -12
- package/tailwind/tailwind.css +10 -6
- package/tailwind/tailwind.ts +10 -6
|
@@ -667,7 +667,7 @@ export class KompasIdPaywallBody extends LitElement {
|
|
|
667
667
|
buttonContent = nothing
|
|
668
668
|
}
|
|
669
669
|
|
|
670
|
-
const headerClass = `text-base flex justify-center self-center md:block md:text-xl ${buttonTextColorClass} text-center font-lora font-bold tracking-
|
|
670
|
+
const headerClass = `text-base flex justify-center self-center md:block md:text-xl ${buttonTextColorClass} text-center font-lora font-bold tracking-normal max-w-xs sm:max-w-lg md:w-full md:max-w-[492px] ${
|
|
671
671
|
type === 'audio' && 'sm:px-16 md:px-20'
|
|
672
672
|
}`
|
|
673
673
|
|
|
@@ -684,7 +684,7 @@ export class KompasIdPaywallBody extends LitElement {
|
|
|
684
684
|
? html` <p
|
|
685
685
|
class="text-sm md:text-base ${this.isDark
|
|
686
686
|
? 'text-white'
|
|
687
|
-
: 'text-grey-600'} font-sans mt-2 md:mt-4
|
|
687
|
+
: 'text-grey-600'} font-sans mt-2 md:mt-4 max-w-[492px] text-center"
|
|
688
688
|
>
|
|
689
689
|
${excerpt}
|
|
690
690
|
</p>`
|
|
@@ -705,7 +705,7 @@ export class KompasIdPaywallBody extends LitElement {
|
|
|
705
705
|
>
|
|
706
706
|
<div>
|
|
707
707
|
<div
|
|
708
|
-
class="font-bold font-sans ${buttonTextColorClass} w-full text-left"
|
|
708
|
+
class="text-sm md:text-base font-bold font-sans ${buttonTextColorClass} w-full text-left leading-tight md:leading-5"
|
|
709
709
|
>
|
|
710
710
|
Keuntungan Eksklusif yang Anda Dapatkan:
|
|
711
711
|
</div>
|
|
@@ -857,7 +857,7 @@ export class KompasIdPaywallBody extends LitElement {
|
|
|
857
857
|
|
|
858
858
|
const containerClass = `px-4 flex flex-wrap items-center justify-between rounded-lg md:mx-0 w-full max-w-xs md:max-w-sm md:w-3/5 min-h-[68px]
|
|
859
859
|
${isDark ? ' bg-grey-600' : ' bg-white'}
|
|
860
|
-
${isHighlight ? 'border border-yellow-400 mt-2' : ''} relative`
|
|
860
|
+
${isHighlight ? 'border-2 border-yellow-400 mt-2' : ''} relative`
|
|
861
861
|
const textColorClass = isDark ? 'text-dark-7' : 'text-grey-600'
|
|
862
862
|
|
|
863
863
|
let buttonBgColorClass = ''
|
|
@@ -886,10 +886,10 @@ export class KompasIdPaywallBody extends LitElement {
|
|
|
886
886
|
<div class="${containerClass}">
|
|
887
887
|
<div class="flex flex-col gap-1">
|
|
888
888
|
<div class="flex items-baseline">
|
|
889
|
-
<h5 class="text-base font-bold text-orange-400">
|
|
889
|
+
<h5 class="text-base font-bold text-orange-400 leading-none">
|
|
890
890
|
${formatRupiah(product.price)}
|
|
891
891
|
</h5>
|
|
892
|
-
<h6 class="text-xs font-bold pl-1 ${textColorClass}">
|
|
892
|
+
<h6 class="text-xs font-bold pl-1 ${textColorClass} leading-none">
|
|
893
893
|
/ ${product.periode}
|
|
894
894
|
</h6>
|
|
895
895
|
</div>
|
|
@@ -902,7 +902,7 @@ export class KompasIdPaywallBody extends LitElement {
|
|
|
902
902
|
<span
|
|
903
903
|
class="${isDark
|
|
904
904
|
? 'text-white'
|
|
905
|
-
: 'text-grey-400'} line-through"
|
|
905
|
+
: 'text-grey-400'} line-through leading-none"
|
|
906
906
|
>${formatRupiah(product.priceSlice)}</span
|
|
907
907
|
>
|
|
908
908
|
</div>
|
|
@@ -913,7 +913,9 @@ export class KompasIdPaywallBody extends LitElement {
|
|
|
913
913
|
<div
|
|
914
914
|
class="flex font-bold items-center text-xs font-sans bg-red-100 rounded p-1"
|
|
915
915
|
>
|
|
916
|
-
<span class="text-red-500"
|
|
916
|
+
<span class="text-red-500 leading-none"
|
|
917
|
+
>${product.saveLabel}</span
|
|
918
|
+
>
|
|
917
919
|
</div>
|
|
918
920
|
`
|
|
919
921
|
: nothing}
|
|
@@ -938,7 +940,7 @@ export class KompasIdPaywallBody extends LitElement {
|
|
|
938
940
|
? html`
|
|
939
941
|
<div class="absolute -top-2 left-4">
|
|
940
942
|
<div
|
|
941
|
-
class="rounded bg-yellow-300 px-2 h-4 items-center text-xs"
|
|
943
|
+
class="rounded bg-yellow-300 px-2 h-4 items-center text-xs leading-none flex"
|
|
942
944
|
>
|
|
943
945
|
<b class="text-grey-600">Harga Terbaik</b>
|
|
944
946
|
</div>
|
|
@@ -1048,18 +1050,18 @@ export class KompasIdPaywallBody extends LitElement {
|
|
|
1048
1050
|
class="flex md:flex-col gap-1 items-center md:items-start md:w-1/2 md:justify-center"
|
|
1049
1051
|
>
|
|
1050
1052
|
<div class="flex items-center gap-1 shrink-0">
|
|
1051
|
-
<h5 class="text-base font-bold text-orange-400">
|
|
1053
|
+
<h5 class="text-base font-bold text-orange-400 leading-none">
|
|
1052
1054
|
${this.packages.swgContent.introductory.price}
|
|
1053
1055
|
</h5>
|
|
1054
1056
|
${this.packages.swgContent.introductory.duration
|
|
1055
1057
|
? html`
|
|
1056
|
-
<h6 class="text-xs font-bold ${textColorClass}">
|
|
1058
|
+
<h6 class="text-xs font-bold ${textColorClass} leading-none">
|
|
1057
1059
|
${this.packages.swgContent.introductory.duration}
|
|
1058
1060
|
</h6>
|
|
1059
1061
|
`
|
|
1060
1062
|
: nothing}
|
|
1061
1063
|
</div>
|
|
1062
|
-
<p class="text-xs flex ${textColorClass}">
|
|
1064
|
+
<p class="text-xs flex ${textColorClass} leading-none">
|
|
1063
1065
|
${this.packages.swgContent.introductory.description}
|
|
1064
1066
|
</p>
|
|
1065
1067
|
</div>`
|
package/tailwind/tailwind.css
CHANGED
|
@@ -1113,6 +1113,10 @@ video {
|
|
|
1113
1113
|
max-width: 460px;
|
|
1114
1114
|
}
|
|
1115
1115
|
|
|
1116
|
+
.max-w-\[492px\] {
|
|
1117
|
+
max-width: 492px;
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1116
1120
|
.max-w-screen-md {
|
|
1117
1121
|
max-width: 768px;
|
|
1118
1122
|
}
|
|
@@ -1975,6 +1979,10 @@ video {
|
|
|
1975
1979
|
line-height: 1.25;
|
|
1976
1980
|
}
|
|
1977
1981
|
|
|
1982
|
+
.tracking-normal {
|
|
1983
|
+
letter-spacing: 0em;
|
|
1984
|
+
}
|
|
1985
|
+
|
|
1978
1986
|
.tracking-wide {
|
|
1979
1987
|
letter-spacing: 0.025em;
|
|
1980
1988
|
}
|
|
@@ -2366,10 +2374,6 @@ video {
|
|
|
2366
2374
|
max-width: 737px;
|
|
2367
2375
|
}
|
|
2368
2376
|
|
|
2369
|
-
.md\:max-w-full {
|
|
2370
|
-
max-width: 100%;
|
|
2371
|
-
}
|
|
2372
|
-
|
|
2373
2377
|
.md\:max-w-sm {
|
|
2374
2378
|
max-width: 24rem;
|
|
2375
2379
|
}
|
|
@@ -2575,8 +2579,8 @@ video {
|
|
|
2575
2579
|
line-height: 1.5rem;
|
|
2576
2580
|
}
|
|
2577
2581
|
|
|
2578
|
-
.md\:
|
|
2579
|
-
|
|
2582
|
+
.md\:leading-5 {
|
|
2583
|
+
line-height: 1.25rem;
|
|
2580
2584
|
}
|
|
2581
2585
|
}
|
|
2582
2586
|
|
package/tailwind/tailwind.ts
CHANGED
|
@@ -1120,6 +1120,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
1120
1120
|
max-width: 460px;
|
|
1121
1121
|
}
|
|
1122
1122
|
|
|
1123
|
+
.max-w-\\[492px\\] {
|
|
1124
|
+
max-width: 492px;
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1123
1127
|
.max-w-screen-md {
|
|
1124
1128
|
max-width: 768px;
|
|
1125
1129
|
}
|
|
@@ -1986,6 +1990,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
1986
1990
|
line-height: 1.25;
|
|
1987
1991
|
}
|
|
1988
1992
|
|
|
1993
|
+
.tracking-normal {
|
|
1994
|
+
letter-spacing: 0em;
|
|
1995
|
+
}
|
|
1996
|
+
|
|
1989
1997
|
.tracking-wide {
|
|
1990
1998
|
letter-spacing: 0.025em;
|
|
1991
1999
|
}
|
|
@@ -2389,10 +2397,6 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
2389
2397
|
max-width: 737px;
|
|
2390
2398
|
}
|
|
2391
2399
|
|
|
2392
|
-
.md\\:max-w-full {
|
|
2393
|
-
max-width: 100%;
|
|
2394
|
-
}
|
|
2395
|
-
|
|
2396
2400
|
.md\\:max-w-sm {
|
|
2397
2401
|
max-width: 24rem;
|
|
2398
2402
|
}
|
|
@@ -2598,8 +2602,8 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
2598
2602
|
line-height: 1.5rem;
|
|
2599
2603
|
}
|
|
2600
2604
|
|
|
2601
|
-
.md\\:
|
|
2602
|
-
|
|
2605
|
+
.md\\:leading-5 {
|
|
2606
|
+
line-height: 1.25rem;
|
|
2603
2607
|
}
|
|
2604
2608
|
}
|
|
2605
2609
|
|