@kompasid/lit-web-components 0.4.4 → 0.5.0

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 (53) hide show
  1. package/assets/font-awesome.ts +7 -4
  2. package/demo/index.html +147 -118
  3. package/dist/assets/font-awesome.d.ts +1 -1
  4. package/dist/assets/font-awesome.js +7 -4
  5. package/dist/assets/font-awesome.js.map +1 -1
  6. package/dist/src/components/kompasid-freewall/KompasFreewall.d.ts +91 -0
  7. package/dist/src/components/kompasid-freewall/KompasFreewall.js +256 -0
  8. package/dist/src/components/kompasid-freewall/KompasFreewall.js.map +1 -0
  9. package/dist/src/components/kompasid-freewall/types.d.ts +10 -0
  10. package/dist/src/components/kompasid-freewall/types.js +2 -0
  11. package/dist/src/components/kompasid-freewall/types.js.map +1 -0
  12. package/dist/src/components/kompasid-freewall-body/KompasFreewallBody.d.ts +33 -0
  13. package/dist/src/components/kompasid-freewall-body/KompasFreewallBody.js +223 -0
  14. package/dist/src/components/kompasid-freewall-body/KompasFreewallBody.js.map +1 -0
  15. package/dist/src/components/kompasid-freewall-head/KompasFreewallHead.d.ts +37 -0
  16. package/dist/src/components/kompasid-freewall-head/KompasFreewallHead.js +122 -0
  17. package/dist/src/components/kompasid-freewall-head/KompasFreewallHead.js.map +1 -0
  18. package/dist/src/components/kompasid-paywall-body/KompasPaywallBody.d.ts +0 -1
  19. package/dist/src/components/kompasid-paywall-body/KompasPaywallBody.js +3 -8
  20. package/dist/src/components/kompasid-paywall-body/KompasPaywallBody.js.map +1 -1
  21. package/dist/src/components/kompasid-paywall-video/KompasPaywallVideo.d.ts +12 -13
  22. package/dist/src/components/kompasid-paywall-video/KompasPaywallVideo.js +30 -49
  23. package/dist/src/components/kompasid-paywall-video/KompasPaywallVideo.js.map +1 -1
  24. package/dist/src/index.d.ts +1 -0
  25. package/dist/src/index.js +1 -0
  26. package/dist/src/index.js.map +1 -1
  27. package/dist/src/utils/cta.d.ts +6 -0
  28. package/dist/src/utils/cta.js +18 -0
  29. package/dist/src/utils/cta.js.map +1 -0
  30. package/dist/src/utils/generateCopyDuration.d.ts +1 -0
  31. package/dist/src/utils/generateCopyDuration.js +15 -0
  32. package/dist/src/utils/generateCopyDuration.js.map +1 -0
  33. package/dist/src/utils/googleFont.js +1 -0
  34. package/dist/src/utils/googleFont.js.map +1 -1
  35. package/dist/tailwind/tailwind.js +215 -0
  36. package/dist/tailwind/tailwind.js.map +1 -1
  37. package/dist/tsconfig.tsbuildinfo +1 -1
  38. package/package.json +1 -1
  39. package/src/components/kompasid-freewall/KompasFreewall.ts +205 -0
  40. package/src/components/kompasid-freewall/readme.md +31 -0
  41. package/src/components/kompasid-freewall/types.ts +10 -0
  42. package/src/components/kompasid-freewall-body/KompasFreewallBody.ts +219 -0
  43. package/src/components/kompasid-freewall-body/readme.md +13 -0
  44. package/src/components/kompasid-freewall-head/KompasFreewallHead.ts +102 -0
  45. package/src/components/kompasid-freewall-head/readme.md +17 -0
  46. package/src/components/kompasid-paywall-body/KompasPaywallBody.ts +3 -9
  47. package/src/components/kompasid-paywall-video/KompasPaywallVideo.ts +36 -51
  48. package/src/index.ts +1 -0
  49. package/src/utils/cta.ts +25 -0
  50. package/src/utils/generateCopyDuration.ts +14 -0
  51. package/src/utils/googleFont.ts +2 -0
  52. package/tailwind/tailwind.css +215 -0
  53. package/tailwind/tailwind.ts +215 -0
@@ -544,6 +544,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
544
544
  --tw-backdrop-sepia: ;
545
545
  }
546
546
 
547
+ .collapse {
548
+ visibility: collapse;
549
+ }
550
+
547
551
  .static {
548
552
  position: static;
549
553
  }
@@ -592,6 +596,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
592
596
  z-index: 0;
593
597
  }
594
598
 
599
+ .z-10 {
600
+ z-index: 10;
601
+ }
602
+
595
603
  .z-20 {
596
604
  z-index: 20;
597
605
  }
@@ -634,6 +642,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
634
642
  margin-bottom: 1.5rem;
635
643
  }
636
644
 
645
+ .-ml-2 {
646
+ margin-left: -0.5rem;
647
+ }
648
+
637
649
  .-mt-24 {
638
650
  margin-top: -6rem;
639
651
  }
@@ -662,6 +674,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
662
674
  margin-left: 0.125rem;
663
675
  }
664
676
 
677
+ .ml-1 {
678
+ margin-left: 0.25rem;
679
+ }
680
+
665
681
  .ml-8 {
666
682
  margin-left: 2rem;
667
683
  }
@@ -710,6 +726,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
710
726
  margin-top: 2rem;
711
727
  }
712
728
 
729
+ .block {
730
+ display: block;
731
+ }
732
+
713
733
  .flex {
714
734
  display: flex;
715
735
  }
@@ -746,6 +766,22 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
746
766
  height: 2rem;
747
767
  }
748
768
 
769
+ .h-9 {
770
+ height: 2.25rem;
771
+ }
772
+
773
+ .h-\\[159px\\] {
774
+ height: 159px;
775
+ }
776
+
777
+ .h-\\[223px\\] {
778
+ height: 223px;
779
+ }
780
+
781
+ .h-\\[277px\\] {
782
+ height: 277px;
783
+ }
784
+
749
785
  .h-auto {
750
786
  height: auto;
751
787
  }
@@ -786,10 +822,18 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
786
822
  width: 1.25rem;
787
823
  }
788
824
 
825
+ .w-60 {
826
+ width: 15rem;
827
+ }
828
+
789
829
  .w-8 {
790
830
  width: 2rem;
791
831
  }
792
832
 
833
+ .w-9 {
834
+ width: 2.25rem;
835
+ }
836
+
793
837
  .w-\\[120px\\] {
794
838
  width: 120px;
795
839
  }
@@ -798,10 +842,18 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
798
842
  width: 138px;
799
843
  }
800
844
 
845
+ .w-\\[250px\\] {
846
+ width: 250px;
847
+ }
848
+
801
849
  .w-\\[296px\\] {
802
850
  width: 296px;
803
851
  }
804
852
 
853
+ .w-\\[328px\\] {
854
+ width: 328px;
855
+ }
856
+
805
857
  .w-auto {
806
858
  width: auto;
807
859
  }
@@ -810,6 +862,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
810
862
  width: 100%;
811
863
  }
812
864
 
865
+ .w-\\[280px\\] {
866
+ width: 280px;
867
+ }
868
+
813
869
  .max-w-7xl {
814
870
  max-width: 80rem;
815
871
  }
@@ -899,6 +955,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
899
955
  place-items: center;
900
956
  }
901
957
 
958
+ .items-start {
959
+ align-items: flex-start;
960
+ }
961
+
902
962
  .items-center {
903
963
  align-items: center;
904
964
  }
@@ -935,26 +995,52 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
935
995
  row-gap: 1rem;
936
996
  }
937
997
 
998
+ .space-x-3 > :not([hidden]) ~ :not([hidden]) {
999
+ --tw-space-x-reverse: 0;
1000
+ margin-right: calc(0.75rem * var(--tw-space-x-reverse));
1001
+ margin-left: calc(0.75rem * calc(1 - var(--tw-space-x-reverse)));
1002
+ }
1003
+
938
1004
  .space-x-4 > :not([hidden]) ~ :not([hidden]) {
939
1005
  --tw-space-x-reverse: 0;
940
1006
  margin-right: calc(1rem * var(--tw-space-x-reverse));
941
1007
  margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
942
1008
  }
943
1009
 
1010
+ .space-y-1 > :not([hidden]) ~ :not([hidden]) {
1011
+ --tw-space-y-reverse: 0;
1012
+ margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
1013
+ margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
1014
+ }
1015
+
944
1016
  .space-y-2 > :not([hidden]) ~ :not([hidden]) {
945
1017
  --tw-space-y-reverse: 0;
946
1018
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
947
1019
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
948
1020
  }
949
1021
 
1022
+ .space-y-4 > :not([hidden]) ~ :not([hidden]) {
1023
+ --tw-space-y-reverse: 0;
1024
+ margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
1025
+ margin-bottom: calc(1rem * var(--tw-space-y-reverse));
1026
+ }
1027
+
950
1028
  .self-center {
951
1029
  align-self: center;
952
1030
  }
953
1031
 
1032
+ .whitespace-nowrap {
1033
+ white-space: nowrap;
1034
+ }
1035
+
954
1036
  .rounded {
955
1037
  border-radius: 0.25rem;
956
1038
  }
957
1039
 
1040
+ .rounded-\\[10px\\] {
1041
+ border-radius: 10px;
1042
+ }
1043
+
958
1044
  .rounded-lg {
959
1045
  border-radius: 0.5rem;
960
1046
  }
@@ -997,6 +1083,11 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
997
1083
  border-color: rgb(147 200 253 / var(--tw-border-opacity));
998
1084
  }
999
1085
 
1086
+ .border-blue-600 {
1087
+ --tw-border-opacity: 1;
1088
+ border-color: rgb(3 86 168 / var(--tw-border-opacity));
1089
+ }
1090
+
1000
1091
  .border-dark-6 {
1001
1092
  --tw-border-opacity: 1;
1002
1093
  border-color: rgb(46 46 46 / var(--tw-border-opacity));
@@ -1052,6 +1143,11 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
1052
1143
  background-color: rgb(225 240 255 / var(--tw-bg-opacity));
1053
1144
  }
1054
1145
 
1146
+ .bg-blue-200 {
1147
+ --tw-bg-opacity: 1;
1148
+ background-color: rgb(147 200 253 / var(--tw-bg-opacity));
1149
+ }
1150
+
1055
1151
  .bg-blue-600 {
1056
1152
  --tw-bg-opacity: 1;
1057
1153
  background-color: rgb(3 86 168 / var(--tw-bg-opacity));
@@ -1163,6 +1259,11 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
1163
1259
  padding-right: 2rem;
1164
1260
  }
1165
1261
 
1262
+ .px-\\[10px\\] {
1263
+ padding-left: 10px;
1264
+ padding-right: 10px;
1265
+ }
1266
+
1166
1267
  .py-0 {
1167
1268
  padding-top: 0px;
1168
1269
  padding-bottom: 0px;
@@ -1265,15 +1366,28 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
1265
1366
  text-align: center;
1266
1367
  }
1267
1368
 
1369
+ .text-start {
1370
+ text-align: start;
1371
+ }
1372
+
1268
1373
  .font-serif {
1269
1374
  font-family: ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif;
1270
1375
  }
1271
1376
 
1377
+ .text-\\[11px\\] {
1378
+ font-size: 11px;
1379
+ }
1380
+
1272
1381
  .text-base {
1273
1382
  font-size: 1rem;
1274
1383
  line-height: 1.5rem;
1275
1384
  }
1276
1385
 
1386
+ .text-lg {
1387
+ font-size: 1.125rem;
1388
+ line-height: 1.75rem;
1389
+ }
1390
+
1277
1391
  .text-sm {
1278
1392
  font-size: 0.875rem;
1279
1393
  line-height: 1.25rem;
@@ -1288,6 +1402,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
1288
1402
  font-weight: 700;
1289
1403
  }
1290
1404
 
1405
+ .font-medium {
1406
+ font-weight: 500;
1407
+ }
1408
+
1291
1409
  .font-normal {
1292
1410
  font-weight: 400;
1293
1411
  }
@@ -1304,6 +1422,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
1304
1422
  line-height: 22px;
1305
1423
  }
1306
1424
 
1425
+ .leading-\\[30px\\] {
1426
+ line-height: 30px;
1427
+ }
1428
+
1307
1429
  .leading-none {
1308
1430
  line-height: 1;
1309
1431
  }
@@ -1336,6 +1458,11 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
1336
1458
  color: rgb(90 171 252 / var(--tw-text-opacity));
1337
1459
  }
1338
1460
 
1461
+ .text-blue-500 {
1462
+ --tw-text-opacity: 1;
1463
+ color: rgb(4 104 203 / var(--tw-text-opacity));
1464
+ }
1465
+
1339
1466
  .text-blue-600 {
1340
1467
  --tw-text-opacity: 1;
1341
1468
  color: rgb(3 86 168 / var(--tw-text-opacity));
@@ -1406,6 +1533,11 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
1406
1533
  color: rgb(255 255 255 / var(--tw-text-opacity));
1407
1534
  }
1408
1535
 
1536
+ .text-green-100 {
1537
+ --tw-text-opacity: 1;
1538
+ color: rgb(238 252 210 / var(--tw-text-opacity));
1539
+ }
1540
+
1409
1541
  .underline {
1410
1542
  text-decoration-line: underline;
1411
1543
  }
@@ -1474,6 +1606,14 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
1474
1606
  height: 3rem;
1475
1607
  }
1476
1608
 
1609
+ .md\\:h-\\[210px\\] {
1610
+ height: 210px;
1611
+ }
1612
+
1613
+ .md\\:h-\\[240px\\] {
1614
+ height: 240px;
1615
+ }
1616
+
1477
1617
  .md\\:w-3\\/5 {
1478
1618
  width: 60%;
1479
1619
  }
@@ -1486,10 +1626,26 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
1486
1626
  width: 13rem;
1487
1627
  }
1488
1628
 
1629
+ .md\\:w-\\[350px\\] {
1630
+ width: 350px;
1631
+ }
1632
+
1633
+ .md\\:w-\\[370px\\] {
1634
+ width: 370px;
1635
+ }
1636
+
1637
+ .md\\:w-\\[374px\\] {
1638
+ width: 374px;
1639
+ }
1640
+
1489
1641
  .md\\:w-\\[400px\\] {
1490
1642
  width: 400px;
1491
1643
  }
1492
1644
 
1645
+ .md\\:w-\\[580px\\] {
1646
+ width: 580px;
1647
+ }
1648
+
1493
1649
  .md\\:w-full {
1494
1650
  width: 100%;
1495
1651
  }
@@ -1506,6 +1662,22 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
1506
1662
  flex-direction: row;
1507
1663
  }
1508
1664
 
1665
+ .md\\:justify-start {
1666
+ justify-content: flex-start;
1667
+ }
1668
+
1669
+ .md\\:space-x-5 > :not([hidden]) ~ :not([hidden]) {
1670
+ --tw-space-x-reverse: 0;
1671
+ margin-right: calc(1.25rem * var(--tw-space-x-reverse));
1672
+ margin-left: calc(1.25rem * calc(1 - var(--tw-space-x-reverse)));
1673
+ }
1674
+
1675
+ .md\\:space-y-0 > :not([hidden]) ~ :not([hidden]) {
1676
+ --tw-space-y-reverse: 0;
1677
+ margin-top: calc(0px * calc(1 - var(--tw-space-y-reverse)));
1678
+ margin-bottom: calc(0px * var(--tw-space-y-reverse));
1679
+ }
1680
+
1509
1681
  .md\\:space-y-4 > :not([hidden]) ~ :not([hidden]) {
1510
1682
  --tw-space-y-reverse: 0;
1511
1683
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
@@ -1516,20 +1688,38 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
1516
1688
  align-self: flex-end;
1517
1689
  }
1518
1690
 
1691
+ .md\\:rounded {
1692
+ border-radius: 0.25rem;
1693
+ }
1694
+
1519
1695
  .md\\:rounded-lg {
1520
1696
  border-radius: 0.5rem;
1521
1697
  }
1522
1698
 
1699
+ .md\\:p-5 {
1700
+ padding: 1.25rem;
1701
+ }
1702
+
1523
1703
  .md\\:px-0 {
1524
1704
  padding-left: 0px;
1525
1705
  padding-right: 0px;
1526
1706
  }
1527
1707
 
1708
+ .md\\:px-12 {
1709
+ padding-left: 3rem;
1710
+ padding-right: 3rem;
1711
+ }
1712
+
1528
1713
  .md\\:px-20 {
1529
1714
  padding-left: 5rem;
1530
1715
  padding-right: 5rem;
1531
1716
  }
1532
1717
 
1718
+ .md\\:px-5 {
1719
+ padding-left: 1.25rem;
1720
+ padding-right: 1.25rem;
1721
+ }
1722
+
1533
1723
  .md\\:px-6 {
1534
1724
  padding-left: 1.5rem;
1535
1725
  padding-right: 1.5rem;
@@ -1544,6 +1734,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
1544
1734
  padding-bottom: 1rem;
1545
1735
  }
1546
1736
 
1737
+ .md\\:pt-3 {
1738
+ padding-top: 0.75rem;
1739
+ }
1740
+
1547
1741
  .md\\:pt-8 {
1548
1742
  padding-top: 2rem;
1549
1743
  }
@@ -1607,10 +1801,18 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
1607
1801
  margin-bottom: 0px;
1608
1802
  }
1609
1803
 
1804
+ .lg\\:mt-0 {
1805
+ margin-top: 0px;
1806
+ }
1807
+
1610
1808
  .lg\\:mt-2 {
1611
1809
  margin-top: 0.5rem;
1612
1810
  }
1613
1811
 
1812
+ .lg\\:mt-3 {
1813
+ margin-top: 0.75rem;
1814
+ }
1815
+
1614
1816
  .lg\\:block {
1615
1817
  display: block;
1616
1818
  }
@@ -1623,6 +1825,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
1623
1825
  display: none;
1624
1826
  }
1625
1827
 
1828
+ .lg\\:w-\\[410px\\] {
1829
+ width: 410px;
1830
+ }
1831
+
1626
1832
  .lg\\:grid-cols-12 {
1627
1833
  grid-template-columns: repeat(12, minmax(0, 1fr));
1628
1834
  }
@@ -1639,6 +1845,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
1639
1845
  flex-direction: column;
1640
1846
  }
1641
1847
 
1848
+ .lg\\:items-center {
1849
+ align-items: center;
1850
+ }
1851
+
1642
1852
  .lg\\:justify-end {
1643
1853
  justify-content: flex-end;
1644
1854
  }
@@ -1665,6 +1875,11 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
1665
1875
  padding-right: 0px;
1666
1876
  }
1667
1877
 
1878
+ .lg\\:px-24 {
1879
+ padding-left: 6rem;
1880
+ padding-right: 6rem;
1881
+ }
1882
+
1668
1883
  .lg\\:py-10 {
1669
1884
  padding-top: 2.5rem;
1670
1885
  padding-bottom: 2.5rem;