@kompasid/lit-web-components 0.4.0 → 0.4.2

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 (34) hide show
  1. package/.github/workflows/npm-publish.yml +2 -2
  2. package/assets/video.jpg +0 -0
  3. package/demo/index.html +28 -27
  4. package/dist/src/components/kompasid-footer/KompasFooter.d.ts +1 -2
  5. package/dist/src/components/kompasid-footer/KompasFooter.js +4 -9
  6. package/dist/src/components/kompasid-footer/KompasFooter.js.map +1 -1
  7. package/dist/src/components/kompasid-paywall/KompasPaywall.js +5 -8
  8. package/dist/src/components/kompasid-paywall/KompasPaywall.js.map +1 -1
  9. package/dist/src/components/kompasid-paywall-body/KompasPaywallBody.d.ts +34 -8
  10. package/dist/src/components/kompasid-paywall-body/KompasPaywallBody.js +359 -262
  11. package/dist/src/components/kompasid-paywall-body/KompasPaywallBody.js.map +1 -1
  12. package/dist/src/components/kompasid-paywall-video/KompasPaywallVideo.d.ts +42 -5
  13. package/dist/src/components/kompasid-paywall-video/KompasPaywallVideo.js +182 -107
  14. package/dist/src/components/kompasid-paywall-video/KompasPaywallVideo.js.map +1 -1
  15. package/dist/src/utils/formatRupiah.d.ts +1 -0
  16. package/dist/src/utils/formatRupiah.js +7 -0
  17. package/dist/src/utils/formatRupiah.js.map +1 -0
  18. package/dist/src/utils/googleFont.d.ts +1 -0
  19. package/dist/src/utils/googleFont.js +17 -0
  20. package/dist/src/utils/googleFont.js.map +1 -0
  21. package/dist/tailwind/tailwind.js +123 -95
  22. package/dist/tailwind/tailwind.js.map +1 -1
  23. package/dist/tsconfig.tsbuildinfo +1 -1
  24. package/package.json +1 -1
  25. package/src/components/kompasid-footer/KompasFooter.ts +4 -11
  26. package/src/components/kompasid-paywall/KompasPaywall.ts +5 -8
  27. package/src/components/kompasid-paywall-body/KompasPaywallBody.ts +332 -210
  28. package/src/components/kompasid-paywall-video/KompasPaywallVideo.ts +178 -90
  29. package/src/components/kompasid-paywall-video/readme.md +1 -0
  30. package/src/utils/formatRupiah.ts +6 -0
  31. package/src/utils/googleFont.ts +19 -0
  32. package/tailwind/tailwind.css +120 -92
  33. package/tailwind/tailwind.ts +123 -95
  34. package/tailwind.config.js +3 -1
@@ -642,6 +642,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
642
642
  margin-top: -1.75rem;
643
643
  }
644
644
 
645
+ .mb-0 {
646
+ margin-bottom: 0px;
647
+ }
648
+
645
649
  .mb-1 {
646
650
  margin-bottom: 0.25rem;
647
651
  }
@@ -650,10 +654,6 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
650
654
  margin-bottom: 0.5rem;
651
655
  }
652
656
 
653
- .mb-4 {
654
- margin-bottom: 1rem;
655
- }
656
-
657
657
  .ml-0 {
658
658
  margin-left: 0px;
659
659
  }
@@ -746,10 +746,6 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
746
746
  height: 2rem;
747
747
  }
748
748
 
749
- .h-9 {
750
- height: 2.25rem;
751
- }
752
-
753
749
  .h-auto {
754
750
  height: auto;
755
751
  }
@@ -758,12 +754,12 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
758
754
  height: 100%;
759
755
  }
760
756
 
761
- .w-1\\/4 {
762
- width: 25%;
757
+ .w-1\\/5 {
758
+ width: 20%;
763
759
  }
764
760
 
765
- .w-16 {
766
- width: 4rem;
761
+ .w-10 {
762
+ width: 2.5rem;
767
763
  }
768
764
 
769
765
  .w-20 {
@@ -778,6 +774,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
778
774
  width: 1rem;
779
775
  }
780
776
 
777
+ .w-4\\/5 {
778
+ width: 80%;
779
+ }
780
+
781
781
  .w-40 {
782
782
  width: 10rem;
783
783
  }
@@ -798,6 +798,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
798
798
  width: 138px;
799
799
  }
800
800
 
801
+ .w-\\[296px\\] {
802
+ width: 296px;
803
+ }
804
+
801
805
  .w-auto {
802
806
  width: auto;
803
807
  }
@@ -806,10 +810,6 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
806
810
  width: 100%;
807
811
  }
808
812
 
809
- .max-w-2xl {
810
- max-width: 42rem;
811
- }
812
-
813
813
  .max-w-7xl {
814
814
  max-width: 80rem;
815
815
  }
@@ -863,10 +863,6 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
863
863
  grid-auto-flow: row;
864
864
  }
865
865
 
866
- .grid-flow-col {
867
- grid-auto-flow: column;
868
- }
869
-
870
866
  .grid-cols-1 {
871
867
  grid-template-columns: repeat(1, minmax(0, 1fr));
872
868
  }
@@ -883,10 +879,6 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
883
879
  grid-template-columns: repeat(5, minmax(0, 1fr));
884
880
  }
885
881
 
886
- .grid-rows-1 {
887
- grid-template-rows: repeat(1, minmax(0, 1fr));
888
- }
889
-
890
882
  .grid-rows-2 {
891
883
  grid-template-rows: repeat(2, minmax(0, 1fr));
892
884
  }
@@ -943,12 +935,6 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
943
935
  row-gap: 1rem;
944
936
  }
945
937
 
946
- .space-x-3 > :not([hidden]) ~ :not([hidden]) {
947
- --tw-space-x-reverse: 0;
948
- margin-right: calc(0.75rem * var(--tw-space-x-reverse));
949
- margin-left: calc(0.75rem * calc(1 - var(--tw-space-x-reverse)));
950
- }
951
-
952
938
  .space-x-4 > :not([hidden]) ~ :not([hidden]) {
953
939
  --tw-space-x-reverse: 0;
954
940
  margin-right: calc(1rem * var(--tw-space-x-reverse));
@@ -977,9 +963,13 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
977
963
  border-radius: 0.375rem;
978
964
  }
979
965
 
980
- .rounded-b {
981
- border-bottom-right-radius: 0.25rem;
982
- border-bottom-left-radius: 0.25rem;
966
+ .rounded-xl {
967
+ border-radius: 0.75rem;
968
+ }
969
+
970
+ .rounded-b-xl {
971
+ border-bottom-right-radius: 0.75rem;
972
+ border-bottom-left-radius: 0.75rem;
983
973
  }
984
974
 
985
975
  .border {
@@ -990,6 +980,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
990
980
  border-width: 2px;
991
981
  }
992
982
 
983
+ .border-b {
984
+ border-bottom-width: 1px;
985
+ }
986
+
993
987
  .border-b-2 {
994
988
  border-bottom-width: 2px;
995
989
  }
@@ -1003,14 +997,14 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
1003
997
  border-color: rgb(147 200 253 / var(--tw-border-opacity));
1004
998
  }
1005
999
 
1006
- .border-dark-2 {
1000
+ .border-dark-6 {
1007
1001
  --tw-border-opacity: 1;
1008
- border-color: rgb(56 56 56 / var(--tw-border-opacity));
1002
+ border-color: rgb(46 46 46 / var(--tw-border-opacity));
1009
1003
  }
1010
1004
 
1011
- .border-dark-6 {
1005
+ .border-dark-8 {
1012
1006
  --tw-border-opacity: 1;
1013
- border-color: rgb(46 46 46 / var(--tw-border-opacity));
1007
+ border-color: rgb(136 136 136 / var(--tw-border-opacity));
1014
1008
  }
1015
1009
 
1016
1010
  .border-green-400 {
@@ -1058,11 +1052,6 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
1058
1052
  background-color: rgb(225 240 255 / var(--tw-bg-opacity));
1059
1053
  }
1060
1054
 
1061
- .bg-blue-300 {
1062
- --tw-bg-opacity: 1;
1063
- background-color: rgb(90 171 252 / var(--tw-bg-opacity));
1064
- }
1065
-
1066
1055
  .bg-blue-600 {
1067
1056
  --tw-bg-opacity: 1;
1068
1057
  background-color: rgb(3 86 168 / var(--tw-bg-opacity));
@@ -1128,18 +1117,8 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
1128
1117
  background-color: rgb(255 220 63 / var(--tw-bg-opacity));
1129
1118
  }
1130
1119
 
1131
- .bg-red-400 {
1132
- --tw-bg-opacity: 1;
1133
- background-color: rgb(243 32 19 / var(--tw-bg-opacity));
1134
- }
1135
-
1136
- .bg-yellow-400 {
1137
- --tw-bg-opacity: 1;
1138
- background-color: rgb(255 204 0 / var(--tw-bg-opacity));
1139
- }
1140
-
1141
- .bg-opacity-50 {
1142
- --tw-bg-opacity: 0.5;
1120
+ .bg-opacity-75 {
1121
+ --tw-bg-opacity: 0.75;
1143
1122
  }
1144
1123
 
1145
1124
  .object-cover {
@@ -1179,6 +1158,11 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
1179
1158
  padding-right: 1.5rem;
1180
1159
  }
1181
1160
 
1161
+ .px-8 {
1162
+ padding-left: 2rem;
1163
+ padding-right: 2rem;
1164
+ }
1165
+
1182
1166
  .py-0 {
1183
1167
  padding-top: 0px;
1184
1168
  padding-bottom: 0px;
@@ -1189,26 +1173,11 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
1189
1173
  padding-bottom: 0.125rem;
1190
1174
  }
1191
1175
 
1192
- .py-1 {
1193
- padding-top: 0.25rem;
1194
- padding-bottom: 0.25rem;
1195
- }
1196
-
1197
- .py-1\\.5 {
1198
- padding-top: 0.375rem;
1199
- padding-bottom: 0.375rem;
1200
- }
1201
-
1202
1176
  .py-2 {
1203
1177
  padding-top: 0.5rem;
1204
1178
  padding-bottom: 0.5rem;
1205
1179
  }
1206
1180
 
1207
- .py-2\\.5 {
1208
- padding-top: 0.625rem;
1209
- padding-bottom: 0.625rem;
1210
- }
1211
-
1212
1181
  .py-3 {
1213
1182
  padding-top: 0.75rem;
1214
1183
  padding-bottom: 0.75rem;
@@ -1219,6 +1188,11 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
1219
1188
  padding-bottom: 1rem;
1220
1189
  }
1221
1190
 
1191
+ .py-5 {
1192
+ padding-top: 1.25rem;
1193
+ padding-bottom: 1.25rem;
1194
+ }
1195
+
1222
1196
  .pb-1 {
1223
1197
  padding-bottom: 0.25rem;
1224
1198
  }
@@ -1291,6 +1265,13 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
1291
1265
  text-align: center;
1292
1266
  }
1293
1267
 
1268
+ .font-sans {
1269
+ font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
1270
+ 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,
1271
+ 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
1272
+ 'Noto Color Emoji';
1273
+ }
1274
+
1294
1275
  .font-serif {
1295
1276
  font-family: ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif;
1296
1277
  }
@@ -1314,12 +1295,20 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
1314
1295
  font-weight: 700;
1315
1296
  }
1316
1297
 
1317
- .leading-4 {
1318
- line-height: 1rem;
1298
+ .font-normal {
1299
+ font-weight: 400;
1319
1300
  }
1320
1301
 
1321
- .leading-6 {
1322
- line-height: 1.5rem;
1302
+ .leading-5 {
1303
+ line-height: 1.25rem;
1304
+ }
1305
+
1306
+ .leading-\\[18px\\] {
1307
+ line-height: 18px;
1308
+ }
1309
+
1310
+ .leading-\\[22px\\] {
1311
+ line-height: 22px;
1323
1312
  }
1324
1313
 
1325
1314
  .leading-none {
@@ -1374,11 +1363,21 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
1374
1363
  color: rgb(46 46 46 / var(--tw-text-opacity));
1375
1364
  }
1376
1365
 
1366
+ .text-dark-7 {
1367
+ --tw-text-opacity: 1;
1368
+ color: rgb(224 224 224 / var(--tw-text-opacity));
1369
+ }
1370
+
1377
1371
  .text-green-300 {
1378
1372
  --tw-text-opacity: 1;
1379
1373
  color: rgb(151 219 83 / var(--tw-text-opacity));
1380
1374
  }
1381
1375
 
1376
+ .text-green-400 {
1377
+ --tw-text-opacity: 1;
1378
+ color: rgb(106 195 34 / var(--tw-text-opacity));
1379
+ }
1380
+
1382
1381
  .text-green-500 {
1383
1382
  --tw-text-opacity: 1;
1384
1383
  color: rgb(80 167 24 / var(--tw-text-opacity));
@@ -1389,6 +1388,11 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
1389
1388
  color: rgb(255 255 255 / var(--tw-text-opacity));
1390
1389
  }
1391
1390
 
1391
+ .text-grey-500 {
1392
+ --tw-text-opacity: 1;
1393
+ color: rgb(102 102 102 / var(--tw-text-opacity));
1394
+ }
1395
+
1392
1396
  .text-grey-600 {
1393
1397
  --tw-text-opacity: 1;
1394
1398
  color: rgb(51 51 51 / var(--tw-text-opacity));
@@ -1415,20 +1419,6 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
1415
1419
  var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
1416
1420
  }
1417
1421
 
1418
- .ring-1 {
1419
- --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0
1420
- var(--tw-ring-offset-width) var(--tw-ring-offset-color);
1421
- --tw-ring-shadow: var(--tw-ring-inset) 0 0 0
1422
- calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
1423
- box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow),
1424
- var(--tw-shadow, 0 0 #0000);
1425
- }
1426
-
1427
- .ring-grey-100 {
1428
- --tw-ring-opacity: 1;
1429
- --tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity));
1430
- }
1431
-
1432
1422
  @media (min-width: 640px) {
1433
1423
  .sm\\:grid-cols-4 {
1434
1424
  grid-template-columns: repeat(4, minmax(0, 1fr));
@@ -1446,6 +1436,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
1446
1436
  margin-bottom: 2rem;
1447
1437
  }
1448
1438
 
1439
+ .md\\:mb-0 {
1440
+ margin-bottom: 0px;
1441
+ }
1442
+
1449
1443
  .md\\:ml-1 {
1450
1444
  margin-left: 0.25rem;
1451
1445
  }
@@ -1470,14 +1464,18 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
1470
1464
  margin-top: 2rem;
1471
1465
  }
1472
1466
 
1473
- .md\\:flex {
1474
- display: flex;
1467
+ .md\\:block {
1468
+ display: block;
1475
1469
  }
1476
1470
 
1477
1471
  .md\\:hidden {
1478
1472
  display: none;
1479
1473
  }
1480
1474
 
1475
+ .md\\:h-12 {
1476
+ height: 3rem;
1477
+ }
1478
+
1481
1479
  .md\\:w-3\\/5 {
1482
1480
  width: 60%;
1483
1481
  }
@@ -1490,8 +1488,12 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
1490
1488
  width: 13rem;
1491
1489
  }
1492
1490
 
1493
- .md\\:max-w-none {
1494
- max-width: none;
1491
+ .md\\:w-\\[400px\\] {
1492
+ width: 400px;
1493
+ }
1494
+
1495
+ .md\\:w-full {
1496
+ width: 100%;
1495
1497
  }
1496
1498
 
1497
1499
  .md\\:max-w-sm {
@@ -1506,16 +1508,20 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
1506
1508
  flex-direction: row;
1507
1509
  }
1508
1510
 
1509
- .md\\:space-x-8 > :not([hidden]) ~ :not([hidden]) {
1510
- --tw-space-x-reverse: 0;
1511
- margin-right: calc(2rem * var(--tw-space-x-reverse));
1512
- margin-left: calc(2rem * calc(1 - var(--tw-space-x-reverse)));
1511
+ .md\\:space-y-4 > :not([hidden]) ~ :not([hidden]) {
1512
+ --tw-space-y-reverse: 0;
1513
+ margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
1514
+ margin-bottom: calc(1rem * var(--tw-space-y-reverse));
1513
1515
  }
1514
1516
 
1515
1517
  .md\\:self-end {
1516
1518
  align-self: flex-end;
1517
1519
  }
1518
1520
 
1521
+ .md\\:rounded-lg {
1522
+ border-radius: 0.5rem;
1523
+ }
1524
+
1519
1525
  .md\\:px-0 {
1520
1526
  padding-left: 0px;
1521
1527
  padding-right: 0px;
@@ -1526,6 +1532,20 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
1526
1532
  padding-right: 5rem;
1527
1533
  }
1528
1534
 
1535
+ .md\\:px-6 {
1536
+ padding-left: 1.5rem;
1537
+ padding-right: 1.5rem;
1538
+ }
1539
+
1540
+ .md\\:py-6 {
1541
+ padding-top: 1.5rem;
1542
+ padding-bottom: 1.5rem;
1543
+ }
1544
+
1545
+ .md\\:pb-4 {
1546
+ padding-bottom: 1rem;
1547
+ }
1548
+
1529
1549
  .md\\:pt-8 {
1530
1550
  padding-top: 2rem;
1531
1551
  }
@@ -1554,6 +1574,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
1554
1574
  line-height: 1.75rem;
1555
1575
  }
1556
1576
 
1577
+ .md\\:leading-6 {
1578
+ line-height: 1.5rem;
1579
+ }
1580
+
1557
1581
  .md\\:tracking-normal {
1558
1582
  letter-spacing: 0em;
1559
1583
  }
@@ -1593,6 +1617,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
1593
1617
  display: block;
1594
1618
  }
1595
1619
 
1620
+ .lg\\:flex {
1621
+ display: flex;
1622
+ }
1623
+
1596
1624
  .lg\\:hidden {
1597
1625
  display: none;
1598
1626
  }
@@ -14,7 +14,9 @@ export default {
14
14
  3: '#252525',
15
15
  4: '#1E1E1E',
16
16
  5: '#121212',
17
- 6: '#2E2E2E'
17
+ 6: '#2E2E2E',
18
+ 7: '#E0E0E0',
19
+ 8: '#888888'
18
20
  },
19
21
  white: '#FFFFFF',
20
22
  black: '#000000',