@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
@@ -534,6 +534,10 @@ video {
534
534
  --tw-backdrop-sepia: ;
535
535
  }
536
536
 
537
+ .collapse {
538
+ visibility: collapse;
539
+ }
540
+
537
541
  .static {
538
542
  position: static;
539
543
  }
@@ -582,6 +586,10 @@ video {
582
586
  z-index: 0;
583
587
  }
584
588
 
589
+ .z-10 {
590
+ z-index: 10;
591
+ }
592
+
585
593
  .z-20 {
586
594
  z-index: 20;
587
595
  }
@@ -624,6 +632,10 @@ video {
624
632
  margin-bottom: 1.5rem;
625
633
  }
626
634
 
635
+ .-ml-2 {
636
+ margin-left: -0.5rem;
637
+ }
638
+
627
639
  .-mt-24 {
628
640
  margin-top: -6rem;
629
641
  }
@@ -652,6 +664,10 @@ video {
652
664
  margin-left: 0.125rem;
653
665
  }
654
666
 
667
+ .ml-1 {
668
+ margin-left: 0.25rem;
669
+ }
670
+
655
671
  .ml-8 {
656
672
  margin-left: 2rem;
657
673
  }
@@ -700,6 +716,10 @@ video {
700
716
  margin-top: 2rem;
701
717
  }
702
718
 
719
+ .block {
720
+ display: block;
721
+ }
722
+
703
723
  .flex {
704
724
  display: flex;
705
725
  }
@@ -736,6 +756,22 @@ video {
736
756
  height: 2rem;
737
757
  }
738
758
 
759
+ .h-9 {
760
+ height: 2.25rem;
761
+ }
762
+
763
+ .h-\[159px\] {
764
+ height: 159px;
765
+ }
766
+
767
+ .h-\[223px\] {
768
+ height: 223px;
769
+ }
770
+
771
+ .h-\[277px\] {
772
+ height: 277px;
773
+ }
774
+
739
775
  .h-auto {
740
776
  height: auto;
741
777
  }
@@ -776,10 +812,18 @@ video {
776
812
  width: 1.25rem;
777
813
  }
778
814
 
815
+ .w-60 {
816
+ width: 15rem;
817
+ }
818
+
779
819
  .w-8 {
780
820
  width: 2rem;
781
821
  }
782
822
 
823
+ .w-9 {
824
+ width: 2.25rem;
825
+ }
826
+
783
827
  .w-\[120px\] {
784
828
  width: 120px;
785
829
  }
@@ -788,10 +832,18 @@ video {
788
832
  width: 138px;
789
833
  }
790
834
 
835
+ .w-\[250px\] {
836
+ width: 250px;
837
+ }
838
+
791
839
  .w-\[296px\] {
792
840
  width: 296px;
793
841
  }
794
842
 
843
+ .w-\[328px\] {
844
+ width: 328px;
845
+ }
846
+
795
847
  .w-auto {
796
848
  width: auto;
797
849
  }
@@ -800,6 +852,10 @@ video {
800
852
  width: 100%;
801
853
  }
802
854
 
855
+ .w-\[280px\] {
856
+ width: 280px;
857
+ }
858
+
803
859
  .max-w-7xl {
804
860
  max-width: 80rem;
805
861
  }
@@ -885,6 +941,10 @@ video {
885
941
  place-items: center;
886
942
  }
887
943
 
944
+ .items-start {
945
+ align-items: flex-start;
946
+ }
947
+
888
948
  .items-center {
889
949
  align-items: center;
890
950
  }
@@ -921,26 +981,52 @@ video {
921
981
  row-gap: 1rem;
922
982
  }
923
983
 
984
+ .space-x-3 > :not([hidden]) ~ :not([hidden]) {
985
+ --tw-space-x-reverse: 0;
986
+ margin-right: calc(0.75rem * var(--tw-space-x-reverse));
987
+ margin-left: calc(0.75rem * calc(1 - var(--tw-space-x-reverse)));
988
+ }
989
+
924
990
  .space-x-4 > :not([hidden]) ~ :not([hidden]) {
925
991
  --tw-space-x-reverse: 0;
926
992
  margin-right: calc(1rem * var(--tw-space-x-reverse));
927
993
  margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
928
994
  }
929
995
 
996
+ .space-y-1 > :not([hidden]) ~ :not([hidden]) {
997
+ --tw-space-y-reverse: 0;
998
+ margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
999
+ margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
1000
+ }
1001
+
930
1002
  .space-y-2 > :not([hidden]) ~ :not([hidden]) {
931
1003
  --tw-space-y-reverse: 0;
932
1004
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
933
1005
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
934
1006
  }
935
1007
 
1008
+ .space-y-4 > :not([hidden]) ~ :not([hidden]) {
1009
+ --tw-space-y-reverse: 0;
1010
+ margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
1011
+ margin-bottom: calc(1rem * var(--tw-space-y-reverse));
1012
+ }
1013
+
936
1014
  .self-center {
937
1015
  align-self: center;
938
1016
  }
939
1017
 
1018
+ .whitespace-nowrap {
1019
+ white-space: nowrap;
1020
+ }
1021
+
940
1022
  .rounded {
941
1023
  border-radius: 0.25rem;
942
1024
  }
943
1025
 
1026
+ .rounded-\[10px\] {
1027
+ border-radius: 10px;
1028
+ }
1029
+
944
1030
  .rounded-lg {
945
1031
  border-radius: 0.5rem;
946
1032
  }
@@ -983,6 +1069,11 @@ video {
983
1069
  border-color: rgb(147 200 253 / var(--tw-border-opacity));
984
1070
  }
985
1071
 
1072
+ .border-blue-600 {
1073
+ --tw-border-opacity: 1;
1074
+ border-color: rgb(3 86 168 / var(--tw-border-opacity));
1075
+ }
1076
+
986
1077
  .border-dark-6 {
987
1078
  --tw-border-opacity: 1;
988
1079
  border-color: rgb(46 46 46 / var(--tw-border-opacity));
@@ -1038,6 +1129,11 @@ video {
1038
1129
  background-color: rgb(225 240 255 / var(--tw-bg-opacity));
1039
1130
  }
1040
1131
 
1132
+ .bg-blue-200 {
1133
+ --tw-bg-opacity: 1;
1134
+ background-color: rgb(147 200 253 / var(--tw-bg-opacity));
1135
+ }
1136
+
1041
1137
  .bg-blue-600 {
1042
1138
  --tw-bg-opacity: 1;
1043
1139
  background-color: rgb(3 86 168 / var(--tw-bg-opacity));
@@ -1149,6 +1245,11 @@ video {
1149
1245
  padding-right: 2rem;
1150
1246
  }
1151
1247
 
1248
+ .px-\[10px\] {
1249
+ padding-left: 10px;
1250
+ padding-right: 10px;
1251
+ }
1252
+
1152
1253
  .py-0 {
1153
1254
  padding-top: 0px;
1154
1255
  padding-bottom: 0px;
@@ -1251,15 +1352,28 @@ video {
1251
1352
  text-align: center;
1252
1353
  }
1253
1354
 
1355
+ .text-start {
1356
+ text-align: start;
1357
+ }
1358
+
1254
1359
  .font-serif {
1255
1360
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
1256
1361
  }
1257
1362
 
1363
+ .text-\[11px\] {
1364
+ font-size: 11px;
1365
+ }
1366
+
1258
1367
  .text-base {
1259
1368
  font-size: 1rem;
1260
1369
  line-height: 1.5rem;
1261
1370
  }
1262
1371
 
1372
+ .text-lg {
1373
+ font-size: 1.125rem;
1374
+ line-height: 1.75rem;
1375
+ }
1376
+
1263
1377
  .text-sm {
1264
1378
  font-size: 0.875rem;
1265
1379
  line-height: 1.25rem;
@@ -1274,6 +1388,10 @@ video {
1274
1388
  font-weight: 700;
1275
1389
  }
1276
1390
 
1391
+ .font-medium {
1392
+ font-weight: 500;
1393
+ }
1394
+
1277
1395
  .font-normal {
1278
1396
  font-weight: 400;
1279
1397
  }
@@ -1290,6 +1408,10 @@ video {
1290
1408
  line-height: 22px;
1291
1409
  }
1292
1410
 
1411
+ .leading-\[30px\] {
1412
+ line-height: 30px;
1413
+ }
1414
+
1293
1415
  .leading-none {
1294
1416
  line-height: 1;
1295
1417
  }
@@ -1322,6 +1444,11 @@ video {
1322
1444
  color: rgb(90 171 252 / var(--tw-text-opacity));
1323
1445
  }
1324
1446
 
1447
+ .text-blue-500 {
1448
+ --tw-text-opacity: 1;
1449
+ color: rgb(4 104 203 / var(--tw-text-opacity));
1450
+ }
1451
+
1325
1452
  .text-blue-600 {
1326
1453
  --tw-text-opacity: 1;
1327
1454
  color: rgb(3 86 168 / var(--tw-text-opacity));
@@ -1392,6 +1519,11 @@ video {
1392
1519
  color: rgb(255 255 255 / var(--tw-text-opacity));
1393
1520
  }
1394
1521
 
1522
+ .text-green-100 {
1523
+ --tw-text-opacity: 1;
1524
+ color: rgb(238 252 210 / var(--tw-text-opacity));
1525
+ }
1526
+
1395
1527
  .underline {
1396
1528
  text-decoration-line: underline;
1397
1529
  }
@@ -1459,6 +1591,14 @@ video {
1459
1591
  height: 3rem;
1460
1592
  }
1461
1593
 
1594
+ .md\:h-\[210px\] {
1595
+ height: 210px;
1596
+ }
1597
+
1598
+ .md\:h-\[240px\] {
1599
+ height: 240px;
1600
+ }
1601
+
1462
1602
  .md\:w-3\/5 {
1463
1603
  width: 60%;
1464
1604
  }
@@ -1471,10 +1611,26 @@ video {
1471
1611
  width: 13rem;
1472
1612
  }
1473
1613
 
1614
+ .md\:w-\[350px\] {
1615
+ width: 350px;
1616
+ }
1617
+
1618
+ .md\:w-\[370px\] {
1619
+ width: 370px;
1620
+ }
1621
+
1622
+ .md\:w-\[374px\] {
1623
+ width: 374px;
1624
+ }
1625
+
1474
1626
  .md\:w-\[400px\] {
1475
1627
  width: 400px;
1476
1628
  }
1477
1629
 
1630
+ .md\:w-\[580px\] {
1631
+ width: 580px;
1632
+ }
1633
+
1478
1634
  .md\:w-full {
1479
1635
  width: 100%;
1480
1636
  }
@@ -1491,6 +1647,22 @@ video {
1491
1647
  flex-direction: row;
1492
1648
  }
1493
1649
 
1650
+ .md\:justify-start {
1651
+ justify-content: flex-start;
1652
+ }
1653
+
1654
+ .md\:space-x-5 > :not([hidden]) ~ :not([hidden]) {
1655
+ --tw-space-x-reverse: 0;
1656
+ margin-right: calc(1.25rem * var(--tw-space-x-reverse));
1657
+ margin-left: calc(1.25rem * calc(1 - var(--tw-space-x-reverse)));
1658
+ }
1659
+
1660
+ .md\:space-y-0 > :not([hidden]) ~ :not([hidden]) {
1661
+ --tw-space-y-reverse: 0;
1662
+ margin-top: calc(0px * calc(1 - var(--tw-space-y-reverse)));
1663
+ margin-bottom: calc(0px * var(--tw-space-y-reverse));
1664
+ }
1665
+
1494
1666
  .md\:space-y-4 > :not([hidden]) ~ :not([hidden]) {
1495
1667
  --tw-space-y-reverse: 0;
1496
1668
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
@@ -1501,20 +1673,38 @@ video {
1501
1673
  align-self: flex-end;
1502
1674
  }
1503
1675
 
1676
+ .md\:rounded {
1677
+ border-radius: 0.25rem;
1678
+ }
1679
+
1504
1680
  .md\:rounded-lg {
1505
1681
  border-radius: 0.5rem;
1506
1682
  }
1507
1683
 
1684
+ .md\:p-5 {
1685
+ padding: 1.25rem;
1686
+ }
1687
+
1508
1688
  .md\:px-0 {
1509
1689
  padding-left: 0px;
1510
1690
  padding-right: 0px;
1511
1691
  }
1512
1692
 
1693
+ .md\:px-12 {
1694
+ padding-left: 3rem;
1695
+ padding-right: 3rem;
1696
+ }
1697
+
1513
1698
  .md\:px-20 {
1514
1699
  padding-left: 5rem;
1515
1700
  padding-right: 5rem;
1516
1701
  }
1517
1702
 
1703
+ .md\:px-5 {
1704
+ padding-left: 1.25rem;
1705
+ padding-right: 1.25rem;
1706
+ }
1707
+
1518
1708
  .md\:px-6 {
1519
1709
  padding-left: 1.5rem;
1520
1710
  padding-right: 1.5rem;
@@ -1529,6 +1719,10 @@ video {
1529
1719
  padding-bottom: 1rem;
1530
1720
  }
1531
1721
 
1722
+ .md\:pt-3 {
1723
+ padding-top: 0.75rem;
1724
+ }
1725
+
1532
1726
  .md\:pt-8 {
1533
1727
  padding-top: 2rem;
1534
1728
  }
@@ -1592,10 +1786,18 @@ video {
1592
1786
  margin-bottom: 0px;
1593
1787
  }
1594
1788
 
1789
+ .lg\:mt-0 {
1790
+ margin-top: 0px;
1791
+ }
1792
+
1595
1793
  .lg\:mt-2 {
1596
1794
  margin-top: 0.5rem;
1597
1795
  }
1598
1796
 
1797
+ .lg\:mt-3 {
1798
+ margin-top: 0.75rem;
1799
+ }
1800
+
1599
1801
  .lg\:block {
1600
1802
  display: block;
1601
1803
  }
@@ -1608,6 +1810,10 @@ video {
1608
1810
  display: none;
1609
1811
  }
1610
1812
 
1813
+ .lg\:w-\[410px\] {
1814
+ width: 410px;
1815
+ }
1816
+
1611
1817
  .lg\:grid-cols-12 {
1612
1818
  grid-template-columns: repeat(12, minmax(0, 1fr));
1613
1819
  }
@@ -1624,6 +1830,10 @@ video {
1624
1830
  flex-direction: column;
1625
1831
  }
1626
1832
 
1833
+ .lg\:items-center {
1834
+ align-items: center;
1835
+ }
1836
+
1627
1837
  .lg\:justify-end {
1628
1838
  justify-content: flex-end;
1629
1839
  }
@@ -1650,6 +1860,11 @@ video {
1650
1860
  padding-right: 0px;
1651
1861
  }
1652
1862
 
1863
+ .lg\:px-24 {
1864
+ padding-left: 6rem;
1865
+ padding-right: 6rem;
1866
+ }
1867
+
1653
1868
  .lg\:py-10 {
1654
1869
  padding-top: 2.5rem;
1655
1870
  padding-bottom: 2.5rem;