@kompasid/lit-web-components 0.9.3 → 0.9.4
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 +1 -0
- package/dist/src/components/kompasid-menu-side-bar/KompasMenuSideBar.js +38 -17
- package/dist/src/components/kompasid-menu-side-bar/KompasMenuSideBar.js.map +1 -1
- package/dist/tailwind/tailwind.js +41 -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 +40 -22
- package/src/components/kompasid-menu-side-bar/readme.md +27 -0
- package/tailwind/tailwind.css +41 -0
- package/tailwind/tailwind.ts +41 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# kompasid-menu-side-bar
|
|
2
|
+
|
|
3
|
+
Komponen ini adalah komponen web berbasis LitElement yang digunakan untuk menampilkan Menu Side Bar pada Kompas.id
|
|
4
|
+
|
|
5
|
+
### Contoh Implementasi
|
|
6
|
+
|
|
7
|
+
```javascript
|
|
8
|
+
<kompasid-menu-side-bar></kompasid-menu-side-bar> // if theme = primary/default
|
|
9
|
+
<kompasid-menu-side-bar
|
|
10
|
+
.isDark="true" // if theme = dark/transparent
|
|
11
|
+
></kompasid-menu-side-bar>
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
| Property | Attribute | Description | Tipe | Default | Content |
|
|
18
|
+
| -------------| -------------| ----------------------------------------------- | -------- | ------- | ---------------- |
|
|
19
|
+
| `isDark`| `isDark`| Pilihan Tema untuk tampilan Burger Menu. | `boolean` | `false` | `''` |
|
|
20
|
+
|
|
21
|
+
### Digunakan oleh
|
|
22
|
+
|
|
23
|
+
- [kompasid-menu-side-bar](../kompasid-menu-side-bar)
|
|
24
|
+
|
|
25
|
+
## Kontributor
|
|
26
|
+
|
|
27
|
+
*Dokumentasi ini dibuat oleh tim front-end Kompas.id.*
|
package/tailwind/tailwind.css
CHANGED
|
@@ -798,6 +798,14 @@ video {
|
|
|
798
798
|
margin-top: 2rem;
|
|
799
799
|
}
|
|
800
800
|
|
|
801
|
+
.ml-\[6px\] {
|
|
802
|
+
margin-left: 6px;
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
.ml-1\.5 {
|
|
806
|
+
margin-left: 0.375rem;
|
|
807
|
+
}
|
|
808
|
+
|
|
801
809
|
.block {
|
|
802
810
|
display: block;
|
|
803
811
|
}
|
|
@@ -1028,6 +1036,14 @@ video {
|
|
|
1028
1036
|
width: 100vw;
|
|
1029
1037
|
}
|
|
1030
1038
|
|
|
1039
|
+
.w-\[312px\] {
|
|
1040
|
+
width: 312px;
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
.w-2\.5 {
|
|
1044
|
+
width: 0.625rem;
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1031
1047
|
.max-w-7xl {
|
|
1032
1048
|
max-width: 80rem;
|
|
1033
1049
|
}
|
|
@@ -1403,6 +1419,11 @@ video {
|
|
|
1403
1419
|
background-color: rgb(147 200 253 / var(--tw-bg-opacity));
|
|
1404
1420
|
}
|
|
1405
1421
|
|
|
1422
|
+
.bg-\[\#FFFFFF\] {
|
|
1423
|
+
--tw-bg-opacity: 1;
|
|
1424
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1406
1427
|
.bg-\[\#e1f0ff\] {
|
|
1407
1428
|
--tw-bg-opacity: 1;
|
|
1408
1429
|
background-color: rgb(225 240 255 / var(--tw-bg-opacity));
|
|
@@ -1513,6 +1534,11 @@ video {
|
|
|
1513
1534
|
background-color: rgb(255 220 63 / var(--tw-bg-opacity));
|
|
1514
1535
|
}
|
|
1515
1536
|
|
|
1537
|
+
.bg-\[\#E1F0FF\] {
|
|
1538
|
+
--tw-bg-opacity: 1;
|
|
1539
|
+
background-color: rgb(225 240 255 / var(--tw-bg-opacity));
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1516
1542
|
.bg-opacity-75 {
|
|
1517
1543
|
--tw-bg-opacity: 0.75;
|
|
1518
1544
|
}
|
|
@@ -1640,6 +1666,16 @@ video {
|
|
|
1640
1666
|
padding-bottom: 5.6px;
|
|
1641
1667
|
}
|
|
1642
1668
|
|
|
1669
|
+
.px-1 {
|
|
1670
|
+
padding-left: 0.25rem;
|
|
1671
|
+
padding-right: 0.25rem;
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1674
|
+
.px-1\.5 {
|
|
1675
|
+
padding-left: 0.375rem;
|
|
1676
|
+
padding-right: 0.375rem;
|
|
1677
|
+
}
|
|
1678
|
+
|
|
1643
1679
|
.pb-1 {
|
|
1644
1680
|
padding-bottom: 0.25rem;
|
|
1645
1681
|
}
|
|
@@ -1991,6 +2027,11 @@ video {
|
|
|
1991
2027
|
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
1992
2028
|
}
|
|
1993
2029
|
|
|
2030
|
+
.text-\[\#666666\] {
|
|
2031
|
+
--tw-text-opacity: 1;
|
|
2032
|
+
color: rgb(102 102 102 / var(--tw-text-opacity));
|
|
2033
|
+
}
|
|
2034
|
+
|
|
1994
2035
|
.underline {
|
|
1995
2036
|
text-decoration-line: underline;
|
|
1996
2037
|
}
|
package/tailwind/tailwind.ts
CHANGED
|
@@ -808,6 +808,14 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
808
808
|
margin-top: 2rem;
|
|
809
809
|
}
|
|
810
810
|
|
|
811
|
+
.ml-\\[6px\\] {
|
|
812
|
+
margin-left: 6px;
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
.ml-1\\.5 {
|
|
816
|
+
margin-left: 0.375rem;
|
|
817
|
+
}
|
|
818
|
+
|
|
811
819
|
.block {
|
|
812
820
|
display: block;
|
|
813
821
|
}
|
|
@@ -1038,6 +1046,14 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
1038
1046
|
width: 100vw;
|
|
1039
1047
|
}
|
|
1040
1048
|
|
|
1049
|
+
.w-\\[312px\\] {
|
|
1050
|
+
width: 312px;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
.w-2\\.5 {
|
|
1054
|
+
width: 0.625rem;
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1041
1057
|
.max-w-7xl {
|
|
1042
1058
|
max-width: 80rem;
|
|
1043
1059
|
}
|
|
@@ -1417,6 +1433,11 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
1417
1433
|
background-color: rgb(147 200 253 / var(--tw-bg-opacity));
|
|
1418
1434
|
}
|
|
1419
1435
|
|
|
1436
|
+
.bg-\\[\\#FFFFFF\\] {
|
|
1437
|
+
--tw-bg-opacity: 1;
|
|
1438
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1420
1441
|
.bg-\\[\\#e1f0ff\\] {
|
|
1421
1442
|
--tw-bg-opacity: 1;
|
|
1422
1443
|
background-color: rgb(225 240 255 / var(--tw-bg-opacity));
|
|
@@ -1527,6 +1548,11 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
1527
1548
|
background-color: rgb(255 220 63 / var(--tw-bg-opacity));
|
|
1528
1549
|
}
|
|
1529
1550
|
|
|
1551
|
+
.bg-\\[\\#E1F0FF\\] {
|
|
1552
|
+
--tw-bg-opacity: 1;
|
|
1553
|
+
background-color: rgb(225 240 255 / var(--tw-bg-opacity));
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1530
1556
|
.bg-opacity-75 {
|
|
1531
1557
|
--tw-bg-opacity: 0.75;
|
|
1532
1558
|
}
|
|
@@ -1654,6 +1680,16 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
1654
1680
|
padding-bottom: 5.6px;
|
|
1655
1681
|
}
|
|
1656
1682
|
|
|
1683
|
+
.px-1 {
|
|
1684
|
+
padding-left: 0.25rem;
|
|
1685
|
+
padding-right: 0.25rem;
|
|
1686
|
+
}
|
|
1687
|
+
|
|
1688
|
+
.px-1\\.5 {
|
|
1689
|
+
padding-left: 0.375rem;
|
|
1690
|
+
padding-right: 0.375rem;
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1657
1693
|
.pb-1 {
|
|
1658
1694
|
padding-bottom: 0.25rem;
|
|
1659
1695
|
}
|
|
@@ -2008,6 +2044,11 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
2008
2044
|
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
2009
2045
|
}
|
|
2010
2046
|
|
|
2047
|
+
.text-\\[\\#666666\\] {
|
|
2048
|
+
--tw-text-opacity: 1;
|
|
2049
|
+
color: rgb(102 102 102 / var(--tw-text-opacity));
|
|
2050
|
+
}
|
|
2051
|
+
|
|
2011
2052
|
.underline {
|
|
2012
2053
|
text-decoration-line: underline;
|
|
2013
2054
|
}
|