@kompasid/lit-web-components 0.9.25 → 0.9.27
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-menu-side-bar/KompasMenuSideBar.d.ts +3 -0
- package/dist/src/components/kompasid-menu-side-bar/KompasMenuSideBar.js +100 -53
- package/dist/src/components/kompasid-menu-side-bar/KompasMenuSideBar.js.map +1 -1
- package/dist/src/components/kompasid-menu-side-bar/SidebarDataController.d.ts +1 -0
- package/dist/src/components/kompasid-menu-side-bar/SidebarDataController.js +11 -10
- package/dist/src/components/kompasid-menu-side-bar/SidebarDataController.js.map +1 -1
- package/dist/src/components/kompasid-paywall-body/KompasPaywallBody.js +24 -15
- package/dist/src/components/kompasid-paywall-body/KompasPaywallBody.js.map +1 -1
- package/dist/tailwind/tailwind.js +25 -0
- package/dist/tailwind/tailwind.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/components/kompasid-menu-side-bar/KompasMenuSideBar.ts +118 -70
- package/src/components/kompasid-menu-side-bar/SidebarDataController.ts +2 -0
- package/src/components/kompasid-menu-side-bar/readme.md +2 -0
- package/src/components/kompasid-paywall/readme.md +155 -48
- package/src/components/kompasid-paywall-body/KompasPaywallBody.ts +25 -15
- package/tailwind/tailwind.css +25 -0
- package/tailwind/tailwind.ts +25 -0
|
@@ -679,7 +679,7 @@ export class KompasIdPaywallBody extends LitElement {
|
|
|
679
679
|
${unsafeSVG(getFontAwesomeIcon('fas', 'check', 12, 12))}
|
|
680
680
|
</div>
|
|
681
681
|
<h6
|
|
682
|
-
class="text-
|
|
682
|
+
class="text-sm md:text-base ml-0.5 md:ml-1 ${buttonTextColorClass}"
|
|
683
683
|
>
|
|
684
684
|
${item}
|
|
685
685
|
</h6>
|
|
@@ -736,25 +736,35 @@ export class KompasIdPaywallBody extends LitElement {
|
|
|
736
736
|
private regulerRegistrationSection() {
|
|
737
737
|
const textColorClass = this.isDark ? 'text-blue-300' : 'text-blue-600'
|
|
738
738
|
const buttonTextColorClass = this.isDark ? 'text-white' : 'text-grey-600'
|
|
739
|
+
const isPro =
|
|
740
|
+
this.type === 'proMiningArticle' || this.type === 'proMiningOutlook'
|
|
739
741
|
|
|
740
742
|
return html`
|
|
741
|
-
<div
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
743
|
+
<div
|
|
744
|
+
class="flex flex-col items-center justify-center text-sm md:text-base"
|
|
745
|
+
>
|
|
746
|
+
${!isPro
|
|
747
|
+
? html`
|
|
748
|
+
<div>
|
|
749
|
+
<button
|
|
750
|
+
@click=${() => redirectToRegister('hard_paywall')}
|
|
751
|
+
class="font-bold underline ${textColorClass}"
|
|
752
|
+
>
|
|
753
|
+
Daftar
|
|
754
|
+
</button>
|
|
755
|
+
<span class="${buttonTextColorClass}"
|
|
756
|
+
>untuk kuota artikel gratis</span
|
|
757
|
+
>
|
|
758
|
+
</div>
|
|
759
|
+
`
|
|
760
|
+
: nothing}
|
|
753
761
|
<div>
|
|
754
|
-
|
|
762
|
+
${!isPro
|
|
763
|
+
? html` <span class="${buttonTextColorClass}">atau</span>`
|
|
764
|
+
: nothing}
|
|
755
765
|
<button
|
|
756
766
|
@click=${() => redirectToLogin({ loc: 'hard_paywall' })}
|
|
757
|
-
class="
|
|
767
|
+
class="font-bold underline ${textColorClass}"
|
|
758
768
|
>
|
|
759
769
|
Masuk
|
|
760
770
|
</button>
|
package/tailwind/tailwind.css
CHANGED
|
@@ -671,6 +671,11 @@ video {
|
|
|
671
671
|
margin-right: auto;
|
|
672
672
|
}
|
|
673
673
|
|
|
674
|
+
.my-1 {
|
|
675
|
+
margin-top: 0.25rem;
|
|
676
|
+
margin-bottom: 0.25rem;
|
|
677
|
+
}
|
|
678
|
+
|
|
674
679
|
.my-4 {
|
|
675
680
|
margin-top: 1rem;
|
|
676
681
|
margin-bottom: 1rem;
|
|
@@ -850,6 +855,10 @@ video {
|
|
|
850
855
|
height: 4rem;
|
|
851
856
|
}
|
|
852
857
|
|
|
858
|
+
.h-2 {
|
|
859
|
+
height: 0.5rem;
|
|
860
|
+
}
|
|
861
|
+
|
|
853
862
|
.h-20 {
|
|
854
863
|
height: 5rem;
|
|
855
864
|
}
|
|
@@ -943,6 +952,10 @@ video {
|
|
|
943
952
|
width: 4rem;
|
|
944
953
|
}
|
|
945
954
|
|
|
955
|
+
.w-2 {
|
|
956
|
+
width: 0.5rem;
|
|
957
|
+
}
|
|
958
|
+
|
|
946
959
|
.w-2\/3 {
|
|
947
960
|
width: 66.666667%;
|
|
948
961
|
}
|
|
@@ -1417,6 +1430,10 @@ video {
|
|
|
1417
1430
|
border-color: rgb(255 204 0 / var(--tw-border-opacity, 1));
|
|
1418
1431
|
}
|
|
1419
1432
|
|
|
1433
|
+
.bg-\[\#00000066\] {
|
|
1434
|
+
background-color: #00000066;
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1420
1437
|
.bg-\[\#2C2C2C\] {
|
|
1421
1438
|
--tw-bg-opacity: 1;
|
|
1422
1439
|
background-color: rgb(44 44 44 / var(--tw-bg-opacity, 1));
|
|
@@ -1708,6 +1725,10 @@ video {
|
|
|
1708
1725
|
padding-left: 0.25rem;
|
|
1709
1726
|
}
|
|
1710
1727
|
|
|
1728
|
+
.pl-14 {
|
|
1729
|
+
padding-left: 3.5rem;
|
|
1730
|
+
}
|
|
1731
|
+
|
|
1711
1732
|
.pl-2 {
|
|
1712
1733
|
padding-left: 0.5rem;
|
|
1713
1734
|
}
|
|
@@ -1744,6 +1765,10 @@ video {
|
|
|
1744
1765
|
padding-top: 0.125rem;
|
|
1745
1766
|
}
|
|
1746
1767
|
|
|
1768
|
+
.pt-1 {
|
|
1769
|
+
padding-top: 0.25rem;
|
|
1770
|
+
}
|
|
1771
|
+
|
|
1747
1772
|
.pt-10 {
|
|
1748
1773
|
padding-top: 2.5rem;
|
|
1749
1774
|
}
|
package/tailwind/tailwind.ts
CHANGED
|
@@ -678,6 +678,11 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
678
678
|
margin-right: auto;
|
|
679
679
|
}
|
|
680
680
|
|
|
681
|
+
.my-1 {
|
|
682
|
+
margin-top: 0.25rem;
|
|
683
|
+
margin-bottom: 0.25rem;
|
|
684
|
+
}
|
|
685
|
+
|
|
681
686
|
.my-4 {
|
|
682
687
|
margin-top: 1rem;
|
|
683
688
|
margin-bottom: 1rem;
|
|
@@ -857,6 +862,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
857
862
|
height: 4rem;
|
|
858
863
|
}
|
|
859
864
|
|
|
865
|
+
.h-2 {
|
|
866
|
+
height: 0.5rem;
|
|
867
|
+
}
|
|
868
|
+
|
|
860
869
|
.h-20 {
|
|
861
870
|
height: 5rem;
|
|
862
871
|
}
|
|
@@ -950,6 +959,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
950
959
|
width: 4rem;
|
|
951
960
|
}
|
|
952
961
|
|
|
962
|
+
.w-2 {
|
|
963
|
+
width: 0.5rem;
|
|
964
|
+
}
|
|
965
|
+
|
|
953
966
|
.w-2\\/3 {
|
|
954
967
|
width: 66.666667%;
|
|
955
968
|
}
|
|
@@ -1428,6 +1441,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
1428
1441
|
border-color: rgb(255 204 0 / var(--tw-border-opacity, 1));
|
|
1429
1442
|
}
|
|
1430
1443
|
|
|
1444
|
+
.bg-\\[\\#00000066\\] {
|
|
1445
|
+
background-color: #00000066;
|
|
1446
|
+
}
|
|
1447
|
+
|
|
1431
1448
|
.bg-\\[\\#2C2C2C\\] {
|
|
1432
1449
|
--tw-bg-opacity: 1;
|
|
1433
1450
|
background-color: rgb(44 44 44 / var(--tw-bg-opacity, 1));
|
|
@@ -1719,6 +1736,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
1719
1736
|
padding-left: 0.25rem;
|
|
1720
1737
|
}
|
|
1721
1738
|
|
|
1739
|
+
.pl-14 {
|
|
1740
|
+
padding-left: 3.5rem;
|
|
1741
|
+
}
|
|
1742
|
+
|
|
1722
1743
|
.pl-2 {
|
|
1723
1744
|
padding-left: 0.5rem;
|
|
1724
1745
|
}
|
|
@@ -1755,6 +1776,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
1755
1776
|
padding-top: 0.125rem;
|
|
1756
1777
|
}
|
|
1757
1778
|
|
|
1779
|
+
.pt-1 {
|
|
1780
|
+
padding-top: 0.25rem;
|
|
1781
|
+
}
|
|
1782
|
+
|
|
1758
1783
|
.pt-10 {
|
|
1759
1784
|
padding-top: 2.5rem;
|
|
1760
1785
|
}
|