@kompasid/lit-web-components 0.1.0 → 0.3.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 (43) hide show
  1. package/.github/workflows/npm-publish.yml +6 -6
  2. package/README.md +44 -13
  3. package/assets/kompas-icon.svg +362 -0
  4. package/demo/index.html +2 -0
  5. package/dist/assets/font-awesome.d.ts +2 -2
  6. package/dist/src/components/kompas-footer/KompasFooter.d.ts +1 -1
  7. package/dist/src/components/kompas-footer/KompasFooter.js +1 -1
  8. package/dist/src/components/kompas-footer/KompasFooter.js.map +1 -1
  9. package/dist/src/components/kompas-metered-paywall/KompasMeteredPaywall.d.ts +1 -1
  10. package/dist/src/components/kompas-metered-paywall/KompasMeteredPaywall.js +1 -1
  11. package/dist/src/components/kompas-metered-paywall/KompasMeteredPaywall.js.map +1 -1
  12. package/dist/src/components/kompas-paywall/KompasPaywall.d.ts +1 -1
  13. package/dist/src/components/kompas-paywall/KompasPaywall.js.map +1 -1
  14. package/dist/src/components/kompas-paywall-banner-registration/KompasPaywallBannerRegistration.d.ts +2 -1
  15. package/dist/src/components/kompas-paywall-banner-registration/KompasPaywallBannerRegistration.js +9 -2
  16. package/dist/src/components/kompas-paywall-banner-registration/KompasPaywallBannerRegistration.js.map +1 -1
  17. package/dist/src/components/kompas-paywall-body/KompasPaywallBody.d.ts +1 -1
  18. package/dist/src/components/kompas-paywall-body/KompasPaywallBody.js +17 -11
  19. package/dist/src/components/kompas-paywall-body/KompasPaywallBody.js.map +1 -1
  20. package/dist/src/components/kompas-paywall-information-header/KompasPaywallInformationHeader.d.ts +1 -1
  21. package/dist/src/components/kompas-paywall-information-header/KompasPaywallInformationHeader.js.map +1 -1
  22. package/dist/src/components/kompas-paywall-video/KompasPaywallVideo.d.ts +2 -4
  23. package/dist/src/components/kompas-paywall-video/KompasPaywallVideo.js +7 -12
  24. package/dist/src/components/kompas-paywall-video/KompasPaywallVideo.js.map +1 -1
  25. package/dist/tailwind/tailwind.js +1343 -1368
  26. package/dist/tailwind/tailwind.js.map +1 -1
  27. package/dist/tsconfig.tsbuildinfo +1 -1
  28. package/package.json +3 -3
  29. package/pull_request_template.md +9 -0
  30. package/src/components/kompas-footer/KompasFooter.ts +1 -1
  31. package/src/components/kompas-metered-paywall/KompasMeteredPaywall.ts +1 -1
  32. package/src/components/kompas-metered-paywall/readme.md +19 -25
  33. package/src/components/kompas-paywall/readme.md +0 -111
  34. package/src/components/kompas-paywall-banner-registration/KompasPaywallBannerRegistration.ts +10 -2
  35. package/src/components/kompas-paywall-banner-registration/readme.md +0 -5
  36. package/src/components/kompas-paywall-body/KompasPaywallBody.ts +18 -10
  37. package/src/components/kompas-paywall-body/readme.md +0 -5
  38. package/src/components/kompas-paywall-information-header/readme.md +0 -5
  39. package/src/components/kompas-paywall-video/KompasPaywallVideo.ts +7 -6
  40. package/src/components/kompas-paywall-video/readme.md +17 -21
  41. package/tailwind/tailwind.css +0 -9
  42. package/tailwind/tailwind.ts +1344 -1368
  43. package/tsconfig.json +1 -0
@@ -4,23 +4,23 @@
4
4
  name: Node.js Package
5
5
 
6
6
  on:
7
- push:
8
- branches:
9
- - master
7
+ release:
8
+ types: [published]
10
9
 
11
10
  jobs:
12
11
  build:
13
- runs-on: ubuntu-latest
12
+ runs-on: [self-hosted]
14
13
  steps:
15
14
  - uses: actions/checkout@v3
16
15
  - uses: actions/setup-node@v3
17
16
  with:
18
17
  node-version: 18
18
+ - run: yarn install --ignore-optional
19
19
  - run: yarn install --frozen-lockfile
20
20
 
21
21
  publish-npm:
22
22
  needs: build
23
- runs-on: ubuntu-latest
23
+ runs-on: [self-hosted]
24
24
  steps:
25
25
  - uses: actions/checkout@v3
26
26
  - uses: actions/setup-node@v3
@@ -29,7 +29,7 @@ jobs:
29
29
  registry-url: https://registry.npmjs.org/
30
30
  scope: '@kompasid'
31
31
  - run: yarn install --frozen-lockfile
32
- - run: tsc && npm run analyze -- --exclude dist
32
+ - run: npx tsc && npm run analyze -- --exclude dist
33
33
  - run: npm publish --access=public
34
34
  env:
35
35
  NODE_AUTH_TOKEN: ${{secrets.npm_token}}
package/README.md CHANGED
@@ -1,21 +1,33 @@
1
- # \<lit-web-component>
1
+ # Kompas Lit Web Components
2
2
 
3
- This web component follows the [open-wc](https://github.com/open-wc/open-wc) recommendation.
3
+ Kompas Lit Web Components is frontend reusable component for Harian Kompas project.
4
4
 
5
5
  ## Installation
6
+ To start building a new web component using Lit, clone this repo to a new directory:
6
7
 
7
8
  ```bash
8
- npm i lit-web-component
9
+ git clone https://github.com/pt-kompas-media-nusantara/lit-web-component.git
10
+ cd lit-web-component
11
+ ```
12
+
13
+ Then run yarn install to install Kompas Lit Web Component.
14
+
15
+ ```bash
16
+ yarn install
9
17
  ```
10
18
 
11
19
  ## Usage
12
20
 
13
- ```html
14
- <script type="module">
15
- import 'lit-web-component/lit-web-component.js';
16
- </script>
21
+ Run:
22
+
23
+ ```bash
24
+ yarn start
25
+ ```
26
+
27
+ To develop component and run twlit concurrently, run:
17
28
 
18
- <lit-web-component></lit-web-component>
29
+ ```bash
30
+ yarn dev
19
31
  ```
20
32
 
21
33
  ## Linting and formatting
@@ -23,13 +35,13 @@ npm i lit-web-component
23
35
  To scan the project for linting and formatting errors, run
24
36
 
25
37
  ```bash
26
- npm run lint
38
+ yarn lint
27
39
  ```
28
40
 
29
41
  To automatically fix linting and formatting errors, run
30
42
 
31
43
  ```bash
32
- npm run format
44
+ yarn format
33
45
  ```
34
46
 
35
47
  ## Testing with Web Test Runner
@@ -37,13 +49,13 @@ npm run format
37
49
  To execute a single test run:
38
50
 
39
51
  ```bash
40
- npm run test
52
+ yarn test
41
53
  ```
42
54
 
43
55
  To run the tests in interactive watch mode run:
44
56
 
45
57
  ```bash
46
- npm run test:watch
58
+ yarn test:watch
47
59
  ```
48
60
 
49
61
 
@@ -56,7 +68,26 @@ If you customize the configuration a lot, you can consider moving them to indivi
56
68
  ## Local Demo with `web-dev-server`
57
69
 
58
70
  ```bash
59
- npm start
71
+ yarn start
60
72
  ```
61
73
 
62
74
  To run a local development server that serves the basic demo located in `demo/index.html`
75
+
76
+ ## How to develop
77
+
78
+ * Create component that want to build on /src/components
79
+ * Use .ts format (We use TypeScript for functionality)
80
+ * Import TWStyles for the component you want to develop
81
+ * Declare every components, states and props (if exist) and run yarn dev to load tailwind automatically
82
+ * We use twlit for styling component that is based on Tailwind CSS, check out [twlit](https://www.npmjs.com/package/twlit).
83
+
84
+ ## Contributing
85
+
86
+ Pull requests are welcome. For major changes, please open an issue first
87
+ to discuss what you would like to change.
88
+
89
+ Please make sure to update tests as appropriate.
90
+
91
+ ## License
92
+
93
+ [MIT](https://choosealicense.com/licenses/mit/)
@@ -0,0 +1,362 @@
1
+ <svg width="150" height="150" viewBox="0 0 150 150" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g clip-path="url(#clip0_2152_12363)">
3
+ <path d="M128.092 21.9079L75.0989 0L22.1055 21.9079L0.098877 75L22.1055 127.993L75.0989 150L128.092 127.993L150.099 75L128.092 21.9079Z" fill="#DDB831"/>
4
+ <g opacity="0.81">
5
+ <mask id="mask0_2152_12363" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="151" height="150">
6
+ <path d="M150.099 0H0.098877V150H150.099V0Z" fill="white"/>
7
+ </mask>
8
+ <g mask="url(#mask0_2152_12363)">
9
+ <g opacity="0.44">
10
+ <mask id="mask1_2152_12363" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="75" y="75" width="54" height="75">
11
+ <path d="M128.092 75H75.0989V150H128.092V75Z" fill="white"/>
12
+ </mask>
13
+ <g mask="url(#mask1_2152_12363)">
14
+ <mask id="mask2_2152_12363" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="75" y="75" width="54" height="75">
15
+ <path d="M75.0989 75V150L128.092 127.993L75.0989 75Z" fill="white"/>
16
+ </mask>
17
+ <g mask="url(#mask2_2152_12363)">
18
+ <path d="M42.6318 131.25L88.3226 52.0066L160.658 93.75L114.869 172.895L42.6318 131.25Z" fill="url(#paint0_linear_2152_12363)"/>
19
+ </g>
20
+ </g>
21
+ </g>
22
+ </g>
23
+ <mask id="mask3_2152_12363" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="151" height="150">
24
+ <path d="M150.099 0H0.098877V150H150.099V0Z" fill="white"/>
25
+ </mask>
26
+ <g mask="url(#mask3_2152_12363)">
27
+ <g opacity="0.44">
28
+ <mask id="mask4_2152_12363" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="75" y="21" width="76" height="54">
29
+ <path d="M150.099 21.9079H75.0989V74.9013H150.099V21.9079Z" fill="white"/>
30
+ </mask>
31
+ <g mask="url(#mask4_2152_12363)">
32
+ <mask id="mask5_2152_12363" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="75" y="21" width="76" height="54">
33
+ <path d="M75.0989 75L128.092 21.9079L150.099 75H75.0989Z" fill="white"/>
34
+ </mask>
35
+ <g mask="url(#mask5_2152_12363)">
36
+ <path d="M77.3687 87.829L66.02 23.4869L147.829 9.07898L159.178 73.3224L77.3687 87.829Z" fill="url(#paint1_linear_2152_12363)"/>
37
+ </g>
38
+ </g>
39
+ </g>
40
+ </g>
41
+ <mask id="mask6_2152_12363" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="151" height="150">
42
+ <path d="M150.099 0H0.098877V150H150.099V0Z" fill="white"/>
43
+ </mask>
44
+ <g mask="url(#mask6_2152_12363)">
45
+ <g opacity="0.44">
46
+ <mask id="mask7_2152_12363" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="22" y="0" width="54" height="75">
47
+ <path d="M75.0989 0H22.1055V75H75.0989V0Z" fill="white"/>
48
+ </mask>
49
+ <g mask="url(#mask7_2152_12363)">
50
+ <mask id="mask8_2152_12363" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="22" y="0" width="54" height="75">
51
+ <path d="M75.0989 75L22.1055 21.9079L75.0989 0V75Z" fill="white"/>
52
+ </mask>
53
+ <g mask="url(#mask8_2152_12363)">
54
+ <path d="M75.0989 0H22.1055V75H75.0989V0Z" fill="url(#paint2_linear_2152_12363)"/>
55
+ </g>
56
+ </g>
57
+ </g>
58
+ </g>
59
+ <mask id="mask9_2152_12363" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="151" height="150">
60
+ <path d="M150.099 0H0.098877V150H150.099V0Z" fill="white"/>
61
+ </mask>
62
+ <g mask="url(#mask9_2152_12363)">
63
+ <g opacity="0.44">
64
+ <mask id="mask10_2152_12363" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="75" width="76" height="53">
65
+ <path d="M75.0989 75H0.098877V127.993H75.0989V75Z" fill="white"/>
66
+ </mask>
67
+ <g mask="url(#mask10_2152_12363)">
68
+ <mask id="mask11_2152_12363" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="75" width="76" height="53">
69
+ <path d="M75.0989 75H0.098877L22.1055 127.993L75.0989 75Z" fill="white"/>
70
+ </mask>
71
+ <g mask="url(#mask11_2152_12363)">
72
+ <path d="M75.0989 75H0.098877V127.993H75.0989V75Z" fill="url(#paint3_linear_2152_12363)"/>
73
+ </g>
74
+ </g>
75
+ </g>
76
+ </g>
77
+ <mask id="mask12_2152_12363" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="151" height="150">
78
+ <path d="M150.099 0H0.098877V150H150.099V0Z" fill="white"/>
79
+ </mask>
80
+ <g mask="url(#mask12_2152_12363)">
81
+ <g opacity="0.44">
82
+ <mask id="mask13_2152_12363" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="75" y="75" width="54" height="75">
83
+ <path d="M128.092 75H75.0989V150H128.092V75Z" fill="white"/>
84
+ </mask>
85
+ <g mask="url(#mask13_2152_12363)">
86
+ <mask id="mask14_2152_12363" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="75" y="75" width="54" height="75">
87
+ <path d="M75.0989 75V150L128.092 127.993L75.0989 75Z" fill="white"/>
88
+ </mask>
89
+ <g mask="url(#mask14_2152_12363)">
90
+ <path d="M42.6318 131.25L88.3226 52.0066L160.658 93.75L114.869 172.895L42.6318 131.25Z" fill="url(#paint4_linear_2152_12363)"/>
91
+ </g>
92
+ </g>
93
+ </g>
94
+ </g>
95
+ <mask id="mask15_2152_12363" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="151" height="150">
96
+ <path d="M150.099 0H0.098877V150H150.099V0Z" fill="white"/>
97
+ </mask>
98
+ <g mask="url(#mask15_2152_12363)">
99
+ <g opacity="0.44">
100
+ <mask id="mask16_2152_12363" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="75" y="21" width="76" height="54">
101
+ <path d="M150.099 21.9079H75.0989V74.9013H150.099V21.9079Z" fill="white"/>
102
+ </mask>
103
+ <g mask="url(#mask16_2152_12363)">
104
+ <mask id="mask17_2152_12363" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="75" y="21" width="76" height="54">
105
+ <path d="M75.0989 75L128.092 21.9079L150.099 75H75.0989Z" fill="white"/>
106
+ </mask>
107
+ <g mask="url(#mask17_2152_12363)">
108
+ <path d="M77.3687 87.829L66.02 23.4869L147.829 9.07898L159.178 73.3224L77.3687 87.829Z" fill="url(#paint5_linear_2152_12363)"/>
109
+ </g>
110
+ </g>
111
+ </g>
112
+ </g>
113
+ <mask id="mask18_2152_12363" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="151" height="150">
114
+ <path d="M150.099 0H0.098877V150H150.099V0Z" fill="white"/>
115
+ </mask>
116
+ <g mask="url(#mask18_2152_12363)">
117
+ <g opacity="0.44">
118
+ <mask id="mask19_2152_12363" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="22" y="0" width="54" height="75">
119
+ <path d="M75.0989 0H22.1055V75H75.0989V0Z" fill="white"/>
120
+ </mask>
121
+ <g mask="url(#mask19_2152_12363)">
122
+ <mask id="mask20_2152_12363" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="22" y="0" width="54" height="75">
123
+ <path d="M75.0989 75L22.1055 21.9079L75.0989 0V75Z" fill="white"/>
124
+ </mask>
125
+ <g mask="url(#mask20_2152_12363)">
126
+ <path d="M75.0989 0H22.1055V75H75.0989V0Z" fill="url(#paint6_linear_2152_12363)"/>
127
+ </g>
128
+ </g>
129
+ </g>
130
+ </g>
131
+ <mask id="mask21_2152_12363" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="151" height="150">
132
+ <path d="M150.099 0H0.098877V150H150.099V0Z" fill="white"/>
133
+ </mask>
134
+ <g mask="url(#mask21_2152_12363)">
135
+ <g opacity="0.44">
136
+ <mask id="mask22_2152_12363" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="75" width="76" height="53">
137
+ <path d="M75.0989 75H0.098877V127.993H75.0989V75Z" fill="white"/>
138
+ </mask>
139
+ <g mask="url(#mask22_2152_12363)">
140
+ <mask id="mask23_2152_12363" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="75" width="76" height="53">
141
+ <path d="M75.0989 75H0.098877L22.1055 127.993L75.0989 75Z" fill="white"/>
142
+ </mask>
143
+ <g mask="url(#mask23_2152_12363)">
144
+ <path d="M75.0989 75H0.098877V127.993H75.0989V75Z" fill="url(#paint7_linear_2152_12363)"/>
145
+ </g>
146
+ </g>
147
+ </g>
148
+ </g>
149
+ <mask id="mask24_2152_12363" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="151" height="150">
150
+ <path d="M150.099 0H0.098877V150H150.099V0Z" fill="white"/>
151
+ </mask>
152
+ <g mask="url(#mask24_2152_12363)">
153
+ <g opacity="0.44">
154
+ <mask id="mask25_2152_12363" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="75" y="75" width="76" height="53">
155
+ <path d="M150.099 75H75.0989V127.993H150.099V75Z" fill="white"/>
156
+ </mask>
157
+ <g mask="url(#mask25_2152_12363)">
158
+ <mask id="mask26_2152_12363" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="75" y="75" width="76" height="53">
159
+ <path d="M75.0989 75L128.092 127.993L150.099 75H75.0989Z" fill="white"/>
160
+ </mask>
161
+ <g mask="url(#mask26_2152_12363)">
162
+ <path d="M80.1318 146.743L61.8752 78.5526L145.066 56.25L163.323 124.441L80.1318 146.743Z" fill="url(#paint8_linear_2152_12363)"/>
163
+ </g>
164
+ </g>
165
+ </g>
166
+ </g>
167
+ <mask id="mask27_2152_12363" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="151" height="150">
168
+ <path d="M150.099 0H0.098877V150H150.099V0Z" fill="white"/>
169
+ </mask>
170
+ <g mask="url(#mask27_2152_12363)">
171
+ <g opacity="0.44">
172
+ <mask id="mask28_2152_12363" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="75" y="0" width="54" height="75">
173
+ <path d="M128.092 0H75.0989V75H128.092V0Z" fill="white"/>
174
+ </mask>
175
+ <g mask="url(#mask28_2152_12363)">
176
+ <mask id="mask29_2152_12363" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="75" y="0" width="54" height="75">
177
+ <path d="M75.0989 75V0L128.092 21.9079L75.0989 75Z" fill="white"/>
178
+ </mask>
179
+ <g mask="url(#mask29_2152_12363)">
180
+ <path d="M110.724 99.8684L39.8687 50.329L92.566 -24.9671L163.421 24.6711L110.724 99.8684Z" fill="url(#paint9_linear_2152_12363)"/>
181
+ </g>
182
+ </g>
183
+ </g>
184
+ </g>
185
+ <mask id="mask30_2152_12363" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="151" height="150">
186
+ <path d="M150.099 0H0.098877V150H150.099V0Z" fill="white"/>
187
+ </mask>
188
+ <g mask="url(#mask30_2152_12363)">
189
+ <g opacity="0.44">
190
+ <mask id="mask31_2152_12363" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="21" width="76" height="54">
191
+ <path d="M75.0989 21.9079H0.098877V74.9013H75.0989V21.9079Z" fill="white"/>
192
+ </mask>
193
+ <g mask="url(#mask31_2152_12363)">
194
+ <mask id="mask32_2152_12363" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="21" width="76" height="54">
195
+ <path d="M75.0989 75H0.098877L22.1055 21.9079L75.0989 75Z" fill="white"/>
196
+ </mask>
197
+ <g mask="url(#mask32_2152_12363)">
198
+ <path d="M-26.4473 48.4539L37.5988 -15.5921L101.645 48.4539L37.5988 112.5L-26.4473 48.4539Z" fill="url(#paint10_linear_2152_12363)"/>
199
+ </g>
200
+ </g>
201
+ </g>
202
+ </g>
203
+ <mask id="mask33_2152_12363" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="151" height="150">
204
+ <path d="M150.099 0H0.098877V150H150.099V0Z" fill="white"/>
205
+ </mask>
206
+ <g mask="url(#mask33_2152_12363)">
207
+ <g opacity="0.44">
208
+ <mask id="mask34_2152_12363" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="22" y="75" width="54" height="75">
209
+ <path d="M75.0989 75H22.1055V150H75.0989V75Z" fill="white"/>
210
+ </mask>
211
+ <g mask="url(#mask34_2152_12363)">
212
+ <mask id="mask35_2152_12363" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="22" y="75" width="54" height="75">
213
+ <path d="M75.0989 75L22.1055 127.993L75.0989 150V75Z" fill="white"/>
214
+ </mask>
215
+ <g mask="url(#mask35_2152_12363)">
216
+ <path d="M-15.3945 112.5L48.5528 48.4539L112.599 112.5L48.5528 176.447L-15.3945 112.5Z" fill="url(#paint11_linear_2152_12363)"/>
217
+ </g>
218
+ </g>
219
+ </g>
220
+ </g>
221
+ </g>
222
+ <path d="M77.4672 68.3882L105.197 42.829H113.98V40.0658H89.8027V42.829H100.461L66.908 73.6184L87.533 107.664H77.8619V110.23H111.513V107.664H102.237L77.7632 68.3882H77.4672Z" fill="#005993"/>
223
+ <path d="M71.9407 42.829H81.9078V40.0658H50.0328V42.829H58.717L46.0855 107.664H36.217V110.23H68.1907V107.664H59.4078L71.842 42.829H71.9407Z" fill="#005993"/>
224
+ </g>
225
+ <defs>
226
+ <linearGradient id="paint0_linear_2152_12363" x1="78.7527" y1="152.075" x2="111.23" y2="95.8225" gradientUnits="userSpaceOnUse">
227
+ <stop stop-color="white"/>
228
+ <stop offset="0.1217" stop-color="#F8E8C8"/>
229
+ <stop offset="0.2454" stop-color="#F3D89E"/>
230
+ <stop offset="0.3716" stop-color="#F0CB7B"/>
231
+ <stop offset="0.4975" stop-color="#ECC15D"/>
232
+ <stop offset="0.6234" stop-color="#EABA43"/>
233
+ <stop offset="0.749" stop-color="#E8B430"/>
234
+ <stop offset="0.8745" stop-color="#E7B125"/>
235
+ <stop offset="1" stop-color="#E7B022"/>
236
+ </linearGradient>
237
+ <linearGradient id="paint1_linear_2152_12363" x1="118.275" y1="80.5737" x2="108.543" y2="25.3807" gradientUnits="userSpaceOnUse">
238
+ <stop stop-color="white"/>
239
+ <stop offset="0.1217" stop-color="#F8E8C8"/>
240
+ <stop offset="0.2454" stop-color="#F3D89E"/>
241
+ <stop offset="0.3716" stop-color="#F0CB7B"/>
242
+ <stop offset="0.4975" stop-color="#ECC15D"/>
243
+ <stop offset="0.6234" stop-color="#EABA43"/>
244
+ <stop offset="0.749" stop-color="#E8B430"/>
245
+ <stop offset="0.8745" stop-color="#E7B125"/>
246
+ <stop offset="1" stop-color="#E7B022"/>
247
+ </linearGradient>
248
+ <linearGradient id="paint2_linear_2152_12363" x1="22.0688" y1="37.4651" x2="75.1043" y2="37.4651" gradientUnits="userSpaceOnUse">
249
+ <stop stop-color="white"/>
250
+ <stop offset="0.1217" stop-color="#F8E8C8"/>
251
+ <stop offset="0.2454" stop-color="#F3D89E"/>
252
+ <stop offset="0.3716" stop-color="#F0CB7B"/>
253
+ <stop offset="0.4975" stop-color="#ECC15D"/>
254
+ <stop offset="0.6234" stop-color="#EABA43"/>
255
+ <stop offset="0.749" stop-color="#E8B430"/>
256
+ <stop offset="0.8745" stop-color="#E7B125"/>
257
+ <stop offset="1" stop-color="#E7B022"/>
258
+ </linearGradient>
259
+ <linearGradient id="paint3_linear_2152_12363" x1="0.100966" y1="101.488" x2="75.1044" y2="101.488" gradientUnits="userSpaceOnUse">
260
+ <stop stop-color="white"/>
261
+ <stop offset="0.1217" stop-color="#F8E8C8"/>
262
+ <stop offset="0.2454" stop-color="#F3D89E"/>
263
+ <stop offset="0.3716" stop-color="#F0CB7B"/>
264
+ <stop offset="0.4975" stop-color="#ECC15D"/>
265
+ <stop offset="0.6234" stop-color="#EABA43"/>
266
+ <stop offset="0.749" stop-color="#E8B430"/>
267
+ <stop offset="0.8745" stop-color="#E7B125"/>
268
+ <stop offset="1" stop-color="#E7B022"/>
269
+ </linearGradient>
270
+ <linearGradient id="paint4_linear_2152_12363" x1="78.7527" y1="152.075" x2="111.23" y2="95.8225" gradientUnits="userSpaceOnUse">
271
+ <stop stop-color="white"/>
272
+ <stop offset="0.1217" stop-color="#F8E8C8"/>
273
+ <stop offset="0.2454" stop-color="#F3D89E"/>
274
+ <stop offset="0.3716" stop-color="#F0CB7B"/>
275
+ <stop offset="0.4975" stop-color="#ECC15D"/>
276
+ <stop offset="0.6234" stop-color="#EABA43"/>
277
+ <stop offset="0.749" stop-color="#E8B430"/>
278
+ <stop offset="0.8745" stop-color="#E7B125"/>
279
+ <stop offset="1" stop-color="#E7B022"/>
280
+ </linearGradient>
281
+ <linearGradient id="paint5_linear_2152_12363" x1="118.275" y1="80.5737" x2="108.543" y2="25.3807" gradientUnits="userSpaceOnUse">
282
+ <stop stop-color="white"/>
283
+ <stop offset="0.1217" stop-color="#F8E8C8"/>
284
+ <stop offset="0.2454" stop-color="#F3D89E"/>
285
+ <stop offset="0.3716" stop-color="#F0CB7B"/>
286
+ <stop offset="0.4975" stop-color="#ECC15D"/>
287
+ <stop offset="0.6234" stop-color="#EABA43"/>
288
+ <stop offset="0.749" stop-color="#E8B430"/>
289
+ <stop offset="0.8745" stop-color="#E7B125"/>
290
+ <stop offset="1" stop-color="#E7B022"/>
291
+ </linearGradient>
292
+ <linearGradient id="paint6_linear_2152_12363" x1="22.0688" y1="37.4651" x2="75.1043" y2="37.4651" gradientUnits="userSpaceOnUse">
293
+ <stop stop-color="white"/>
294
+ <stop offset="0.1217" stop-color="#F8E8C8"/>
295
+ <stop offset="0.2454" stop-color="#F3D89E"/>
296
+ <stop offset="0.3716" stop-color="#F0CB7B"/>
297
+ <stop offset="0.4975" stop-color="#ECC15D"/>
298
+ <stop offset="0.6234" stop-color="#EABA43"/>
299
+ <stop offset="0.749" stop-color="#E8B430"/>
300
+ <stop offset="0.8745" stop-color="#E7B125"/>
301
+ <stop offset="1" stop-color="#E7B022"/>
302
+ </linearGradient>
303
+ <linearGradient id="paint7_linear_2152_12363" x1="0.100966" y1="101.488" x2="75.1044" y2="101.488" gradientUnits="userSpaceOnUse">
304
+ <stop stop-color="white"/>
305
+ <stop offset="0.1217" stop-color="#F8E8C8"/>
306
+ <stop offset="0.2454" stop-color="#F3D89E"/>
307
+ <stop offset="0.3716" stop-color="#F0CB7B"/>
308
+ <stop offset="0.4975" stop-color="#ECC15D"/>
309
+ <stop offset="0.6234" stop-color="#EABA43"/>
310
+ <stop offset="0.749" stop-color="#E8B430"/>
311
+ <stop offset="0.8745" stop-color="#E7B125"/>
312
+ <stop offset="1" stop-color="#E7B022"/>
313
+ </linearGradient>
314
+ <linearGradient id="paint8_linear_2152_12363" x1="120.28" y1="130.107" x2="103.468" y2="67.365" gradientUnits="userSpaceOnUse">
315
+ <stop stop-color="white"/>
316
+ <stop offset="0.1217" stop-color="#F8E8C8"/>
317
+ <stop offset="0.2454" stop-color="#F3D89E"/>
318
+ <stop offset="0.3716" stop-color="#F0CB7B"/>
319
+ <stop offset="0.4975" stop-color="#ECC15D"/>
320
+ <stop offset="0.6234" stop-color="#EABA43"/>
321
+ <stop offset="0.749" stop-color="#E8B430"/>
322
+ <stop offset="0.8745" stop-color="#E7B125"/>
323
+ <stop offset="1" stop-color="#E7B022"/>
324
+ </linearGradient>
325
+ <linearGradient id="paint9_linear_2152_12363" x1="112.122" y1="44.8077" x2="66.2127" y2="12.6619" gradientUnits="userSpaceOnUse">
326
+ <stop stop-color="white"/>
327
+ <stop offset="0.1217" stop-color="#F8E8C8"/>
328
+ <stop offset="0.2454" stop-color="#F3D89E"/>
329
+ <stop offset="0.3716" stop-color="#F0CB7B"/>
330
+ <stop offset="0.4975" stop-color="#ECC15D"/>
331
+ <stop offset="0.6234" stop-color="#EABA43"/>
332
+ <stop offset="0.749" stop-color="#E8B430"/>
333
+ <stop offset="0.8745" stop-color="#E7B125"/>
334
+ <stop offset="1" stop-color="#E7B022"/>
335
+ </linearGradient>
336
+ <linearGradient id="paint10_linear_2152_12363" x1="5.58536" y1="80.4502" x2="43.087" y2="42.9485" gradientUnits="userSpaceOnUse">
337
+ <stop stop-color="white"/>
338
+ <stop offset="0.1217" stop-color="#F8E8C8"/>
339
+ <stop offset="0.2454" stop-color="#F3D89E"/>
340
+ <stop offset="0.3716" stop-color="#F0CB7B"/>
341
+ <stop offset="0.4975" stop-color="#ECC15D"/>
342
+ <stop offset="0.6234" stop-color="#EABA43"/>
343
+ <stop offset="0.749" stop-color="#E8B430"/>
344
+ <stop offset="0.8745" stop-color="#E7B125"/>
345
+ <stop offset="1" stop-color="#E7B022"/>
346
+ </linearGradient>
347
+ <linearGradient id="paint11_linear_2152_12363" x1="27.5671" y1="133.493" x2="80.6026" y2="80.458" gradientUnits="userSpaceOnUse">
348
+ <stop stop-color="white"/>
349
+ <stop offset="0.1217" stop-color="#F8E8C8"/>
350
+ <stop offset="0.2454" stop-color="#F3D89E"/>
351
+ <stop offset="0.3716" stop-color="#F0CB7B"/>
352
+ <stop offset="0.4975" stop-color="#ECC15D"/>
353
+ <stop offset="0.6234" stop-color="#EABA43"/>
354
+ <stop offset="0.749" stop-color="#E8B430"/>
355
+ <stop offset="0.8745" stop-color="#E7B125"/>
356
+ <stop offset="1" stop-color="#E7B022"/>
357
+ </linearGradient>
358
+ <clipPath id="clip0_2152_12363">
359
+ <rect width="150" height="150" fill="white"/>
360
+ </clipPath>
361
+ </defs>
362
+ </svg>
package/demo/index.html CHANGED
@@ -3,6 +3,8 @@
3
3
  <head>
4
4
  <meta charset="utf-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <title>Kompas.id Web Components</title>
7
+ <link rel="icon" type="image/x-icon" href="/assets/kompas-icon.svg">
6
8
  <style>
7
9
  body {
8
10
  background: #fafafa;
@@ -1,2 +1,2 @@
1
- export declare const faArrowLeft: import("lit-html").TemplateResult<1>;
2
- export declare const faCheck: import("lit-html").TemplateResult<1>;
1
+ export declare const faArrowLeft: import("lit").TemplateResult<1>;
2
+ export declare const faCheck: import("lit").TemplateResult<1>;
@@ -9,5 +9,5 @@ export declare class KompasFooter extends LitElement {
9
9
  private initializeFooter;
10
10
  fetchFooter(): Promise<void>;
11
11
  getYear(): number;
12
- render(): import("lit-html").TemplateResult<1>;
12
+ render(): import("lit").TemplateResult<1>;
13
13
  }
@@ -168,7 +168,7 @@ let KompasFooter = class KompasFooter extends LitElement {
168
168
  class="font-bold text-sm w-full cursor-pointer"
169
169
  href="${contact.action}"
170
170
  >
171
- <span class="text-gray-500"> ${contact.text} </span>
171
+ <span class="text-grey-50"> ${contact.text} </span>
172
172
  </a>
173
173
  </div>
174
174
  </div>`)}
@@ -1 +1 @@
1
- {"version":3,"file":"KompasFooter.js","sourceRoot":"","sources":["../../../../src/components/kompas-footer/KompasFooter.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAA;AAExD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAA;AAG9D,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,UAA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OAAO,EAAE;;;oBAGvB,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,GAAG,CAClD,SAAS,CAAC,EAAE,CAAC,IAAI,CAAA;;8BAEP,SAAS,CAAC,GAAG;;;0BAGjB,SAAS,CAAC,IAAI;;;yBAGf,CACN;;;oBAGC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,GAAG,CACnD,SAAS,CAAC,EAAE,CAAC,IAAI,CAAA;6DACwB,SAAS,CAAC,GAAG;;4BAE9C,SAAS,CAAC,IAAI;;;;qBAIrB,CACF;;;;;;OAMZ,CAAA;SACF;QACD,OAAO,IAAI,CAAA,EAAE,CAAA;IACf,CAAC;;AAhUM,mBAAM,GAAG;IACd,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA+CF;IACD,QAAQ;CACT,AAlDY,CAkDZ;AAE2B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CAA6B;AAE3B;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;4CAAe;AAvDhC,YAAY;IADxB,aAAa,CAAC,eAAe,CAAC;GAClB,YAAY,CAkUxB","sourcesContent":["import { html, css, LitElement } from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\nimport { unsafeSVG } from 'lit/directives/unsafe-svg.js'\nimport { TWStyles } from '../../../tailwind/tailwind.js'\nimport { Footer } from './types.js'\nimport { getFontAwesomeIcon } from '../../utils/fontawesome-setup.js'\n\n@customElement('kompas-footer')\nexport class KompasFooter extends LitElement {\n static styles = [\n css`\n :host {\n font-family: 'PT Sans', sans-serif;\n }\n\n .bg-instagram {\n background-image: linear-gradient(90deg, #ffc107, #f44336, #9c27b0);\n }\n\n .bg-sosmed-facebook {\n background-color: #3d5b9b;\n }\n\n .bg-sosmed-twitter {\n background-color: #2daae4;\n }\n\n .bg-sosmed-youtube {\n background-color: #f44336;\n }\n\n .text-brand-1 {\n color: #00559a;\n }\n\n .text-grey-50 {\n color: #666;\n color: rgb(102 102 102/1);\n }\n\n .text-grey-60 {\n color: #333;\n color: rgb(51 51 51/1);\n }\n\n .border-grey-30 {\n --tw-border-opacity: 1;\n border-color: rgb(221 221 221 / var(--tw-border-opacity));\n }\n\n .hover-bg-blue-10:hover {\n background-color: #e1f0ff;\n }\n\n .hover-border-blue-20:hover {\n border-color: #93c8fd;\n }\n `,\n TWStyles,\n ]\n\n @property({ type: Object }) footer: Footer | null = null\n\n @property({ type: Boolean }) isDark = false\n\n connectedCallback() {\n super.connectedCallback()\n\n this.addStylesheetToHead()\n this.initializeFooter()\n }\n\n private addStylesheetToHead() {\n const link = document.createElement('link')\n link.rel = 'stylesheet'\n link.href =\n 'https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap'\n document.head.appendChild(link)\n }\n\n private initializeFooter() {\n if (this.footer === undefined || this.footer === null) {\n this.fetchFooter()\n }\n }\n\n async fetchFooter() {\n const response = await fetch(\n 'https://d3w4qaq4xm1ncv.cloudfront.net/assets/json/footer/ApiFooterDefault.json'\n )\n const jsonResponse = await response.json()\n this.footer = jsonResponse\n }\n\n getYear() {\n return new Date().getFullYear()\n }\n\n render() {\n if (this.footer) {\n const { isDark } = this\n const bgClass = isDark ? 'bg-[#2C2C2C]' : 'bg-transparent'\n const primaryTextColor = isDark ? 'text-[#FFFFFF]' : ''\n const secondaryTextColor = isDark ? 'text-[#FFFFFF]' : 'text-grey-60'\n const itemTextColor = isDark ? 'text-[#FFFFFF]' : 'text-[#00559a]'\n\n return html`\n <div\n class=\"border-t border-grey-30 mx-auto w-full md:px-20 px-4 ${bgClass} ${primaryTextColor}\"\n >\n <div class=\"max-w-7xl mx-auto\">\n <div class=\"md:px-0 pb-6 lg:pb-0 mx-auto w-full\">\n <div\n class=\"grid grid-cols-4 lg:grid-cols-12 gap-6 lg:gap-8 lg:justify-between pt-10 pb-8 lg:py-10\"\n >\n ${Object.values(this.footer.brands.itemsLeft).map(\n brand => html`\n <a\n class=\"col-span-4 lg:col-span-2 flex gap-4 cursor-pointer\"\n title=\"Kompas.id\"\n href=\"${brand.permalink}\"\n >\n <img\n src=\"https://d3w4qaq4xm1ncv.cloudfront.net/assets/img/logos/kompas-logo-footer.svg\"\n height=\"${brand.image.height}\"\n width=\"${brand.image.width}\"\n alt=\"${brand.image.alt}\"\n class=\"w-auto h-10 lg:mx-auto\"\n />\n </a>\n `\n )}\n <div\n class=\"col-span-4 lg:col-start-10 lg:col-span-3 gap-4 flex lg:justify-end mx-auto w-full\"\n >\n <a\n class=\"cursor-pointer\"\n href=\"${this.footer.brands.itemsRight[0].permalink}\"\n target=\"_blank\"\n >\n <img\n src=\"https://d3w4qaq4xm1ncv.cloudfront.net/halaman-unduh/image/ios-badge.png\"\n class=\"h-10 w-[120px]\"\n alt=\"Logo iOS\"\n /></a>\n <a\n class=\"cursor-pointer\"\n href=\"${this.footer.brands.itemsRight[1].permalink}\"\n target=\"_blank\"\n >\n <img\n src=\"https://d3w4qaq4xm1ncv.cloudfront.net/halaman-unduh/image/google-play-badge.png\"\n class=\"h-10 w-[138px]\"\n alt=\"Logo Android\"\n /></a>\n </div>\n </div>\n </div>\n <div class=\"grid grid-cols-4 lg:grid-cols-12 gap-8 pb-2\">\n <div\n class=\"col-span-4 lg:col-span-3 flex flex-row lg:flex-col gap-8 lg:gap-0\"\n >\n ${Object.values(this.footer.address.items).map(\n address => html` <div class=\"lg:pb-6\">\n <div\n class=\"font-bold leading-none pb-3 text-sm ${itemTextColor}\"\n >\n ${address.title}\n </div>\n <div class=\"leading-normal pb-3 text-sm ${secondaryTextColor}\">\n ${address.text}\n </div>\n <div class=\"flex flex-row\">\n <div\n class=\"font-bold leading-none pb-3 pr-2 text-sm ${itemTextColor} hidden lg:block\"\n >\n Tlp.\n </div>\n <div\n class=\"grid lg:gap-x-6 lg:grid-cols-2 md:grid-cols-1 grid-cols-1\"\n >\n ${Object.values(address.phones).map(\n num => html`\n <div\n class=\"leading-normal pb-2 text-sm ${secondaryTextColor}\"\n >\n ${num.number}\n </div>\n `\n )}\n </div>\n </div>\n </div>`\n )}\n </div>\n <div class=\"col-span-4 lg:col-span-5 gap-4\">\n <div class=\"grid grid-cols-2 sm:grid-cols-4 gap-6 shrink-0\">\n ${Object.values(this.footer.products.items).map(\n product => html`\n <div>\n <div\n class=\"font-bold leading-none pb-4 text-sm ${itemTextColor}\"\n >\n ${product.title}\n </div>\n ${Object.values(product.sites).map(\n prod => html`\n <a\n class=\"leading-normal text-sm ${secondaryTextColor}\"\n href=\"${prod.permalink}\"\n >\n <div class=\"flex flex-col pb-4 cursor-pointer\">\n ${prod.text}\n </div>\n </a>\n `\n )}\n </div>\n `\n )}\n </div>\n </div>\n <div class=\"col-span-2 flex flex-col\">\n <div\n class=\"font-bold leading-none pb-4 text-sm ${itemTextColor}\"\n >\n ${this.footer.contacts.title}\n </div>\n ${Object.values(this.footer.contacts.items).map(\n contact => html` <div class=\"flex flex-row pb-4\">\n <div\n class=\"flex items-center mr-3 text-base ${itemTextColor}\"\n >\n ${unsafeSVG(\n getFontAwesomeIcon(contact.icon[0], contact.icon[1])\n )}\n </div>\n <div class=\"flex flex-col\">\n <div class=\"pb-1 text-sm w-full ${secondaryTextColor}\">\n ${contact.label}\n </div>\n <a\n class=\"font-bold text-sm w-full cursor-pointer\"\n href=\"${contact.action}\"\n >\n <span class=\"text-gray-500\"> ${contact.text} </span>\n </a>\n </div>\n </div>`\n )}\n </div>\n <div class=\"col-span-2 flex flex-col\">\n <div\n class=\"font-bold leading-none pb-4 text-sm ${itemTextColor}\"\n >\n ${this.footer.sosmed.title}\n </div>\n ${Object.values(this.footer.sosmed.items).map(\n sosmed => html`\n <a\n class=\"border border-grey-30 hover-border-blue-20 hover-bg-blue-10 p-2 mb-2 flex flex-row md:self-end rounded w-full cursor-pointer\"\n href=\"${sosmed.url}\"\n >\n <div\n class=\"h-5 flex justify-center items-center rounded text-white w-5 ${sosmed.color}\"\n >\n <div class=\"h-3 text-xs\">\n ${unsafeSVG(\n getFontAwesomeIcon(\n sosmed.icon[0],\n sosmed.icon[1],\n 12,\n 12\n )\n )}\n </div>\n </div>\n <div class=\"leading-normal pl-2 text-sm ${secondaryTextColor}\">\n ${sosmed.name}\n </div>\n </a>\n `\n )}\n </div>\n </div>\n </div>\n </div>\n <div class=\"flex flex-col pb-32 pt-6 px-4 text-xs bg-black\">\n <div class=\"flex flex-col lg:flex-row max-w-7xl mx-auto w-full\">\n <div class=\"flex flex-wrap mb-2 lg:mb-0 w-full\">\n <div\n class=\"flex flex-col lg:flex-row flex-grow lg:justify-between\"\n >\n <div class=\"flex flex-wrap\">\n <div class=\"flex text-white\">\n &copy; ${this.getYear()} PT Kompas Media Nusantara\n <span class=\"mx-2 text-grey-50\">&centerdot;</span>\n </div>\n ${Object.values(this.footer.universal.itemsLeft).map(\n universal => html` <a\n class=\"flex justify-center items-center\"\n href=\"${universal.url}\"\n >\n <div class=\"pb-2 lg:pb-0 text-white cursor-pointer\">\n ${universal.name}\n <span class=\"mx-2 text-grey-50\">&centerdot;</span>\n </div>\n </a>`\n )}\n </div>\n <div class=\"flex flex-wrap shrink-0\">\n ${Object.values(this.footer.universal.itemsRight).map(\n universal => html`\n <a class=\"flex cursor-pointer\" href=\"${universal.url}\">\n <div class=\"text-white flex items-center\">\n ${universal.name}\n <span class=\"mx-2 text-grey-50\">&centerdot;</span>\n </div>\n </a>\n `\n )}\n </div>\n </div>\n </div>\n </div>\n </div>\n `\n }\n return html``\n }\n}\n"]}
1
+ {"version":3,"file":"KompasFooter.js","sourceRoot":"","sources":["../../../../src/components/kompas-footer/KompasFooter.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,QAAQ,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BAG7E,SAAS,CACT,kBAAkB,CAChB,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EACd,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EACd,EAAE,EACF,EAAE,CACH,CACF;;;gEAGqC,kBAAkB;0BACxD,MAAM,CAAC,IAAI;;;mBAGlB,CACF;;;;;;;;;;;;;6BAaY,IAAI,CAAC,OAAO,EAAE;;;oBAGvB,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,GAAG,CAClD,SAAS,CAAC,EAAE,CAAC,IAAI,CAAA;;8BAEP,SAAS,CAAC,GAAG;;;0BAGjB,SAAS,CAAC,IAAI;;;yBAGf,CACN;;;oBAGC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,GAAG,CACnD,SAAS,CAAC,EAAE,CAAC,IAAI,CAAA;6DACwB,SAAS,CAAC,GAAG;;4BAE9C,SAAS,CAAC,IAAI;;;;qBAIrB,CACF;;;;;;OAMZ,CAAA;SACF;QACD,OAAO,IAAI,CAAA,EAAE,CAAA;IACf,CAAC;;AAhUM,mBAAM,GAAG;IACd,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA+CF;IACD,QAAQ;CACT,CAAA;AAE2B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CAA6B;AAE3B;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;4CAAe;AAvDhC,YAAY;IADxB,aAAa,CAAC,eAAe,CAAC;GAClB,YAAY,CAkUxB;SAlUY,YAAY","sourcesContent":["import { html, css, LitElement } from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\nimport { unsafeSVG } from 'lit/directives/unsafe-svg.js'\nimport { TWStyles } from '../../../tailwind/tailwind.js'\nimport { Footer } from './types.js'\nimport { getFontAwesomeIcon } from '../../utils/fontawesome-setup.js'\n\n@customElement('kompas-footer')\nexport class KompasFooter extends LitElement {\n static styles = [\n css`\n :host {\n font-family: 'PT Sans', sans-serif;\n }\n\n .bg-instagram {\n background-image: linear-gradient(90deg, #ffc107, #f44336, #9c27b0);\n }\n\n .bg-sosmed-facebook {\n background-color: #3d5b9b;\n }\n\n .bg-sosmed-twitter {\n background-color: #2daae4;\n }\n\n .bg-sosmed-youtube {\n background-color: #f44336;\n }\n\n .text-brand-1 {\n color: #00559a;\n }\n\n .text-grey-50 {\n color: #666;\n color: rgb(102 102 102/1);\n }\n\n .text-grey-60 {\n color: #333;\n color: rgb(51 51 51/1);\n }\n\n .border-grey-30 {\n --tw-border-opacity: 1;\n border-color: rgb(221 221 221 / var(--tw-border-opacity));\n }\n\n .hover-bg-blue-10:hover {\n background-color: #e1f0ff;\n }\n\n .hover-border-blue-20:hover {\n border-color: #93c8fd;\n }\n `,\n TWStyles,\n ]\n\n @property({ type: Object }) footer: Footer | null = null\n\n @property({ type: Boolean }) isDark = false\n\n connectedCallback() {\n super.connectedCallback()\n\n this.addStylesheetToHead()\n this.initializeFooter()\n }\n\n private addStylesheetToHead() {\n const link = document.createElement('link')\n link.rel = 'stylesheet'\n link.href =\n 'https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap'\n document.head.appendChild(link)\n }\n\n private initializeFooter() {\n if (this.footer === undefined || this.footer === null) {\n this.fetchFooter()\n }\n }\n\n async fetchFooter() {\n const response = await fetch(\n 'https://d3w4qaq4xm1ncv.cloudfront.net/assets/json/footer/ApiFooterDefault.json'\n )\n const jsonResponse = await response.json()\n this.footer = jsonResponse\n }\n\n getYear() {\n return new Date().getFullYear()\n }\n\n render() {\n if (this.footer) {\n const { isDark } = this\n const bgClass = isDark ? 'bg-[#2C2C2C]' : 'bg-transparent'\n const primaryTextColor = isDark ? 'text-[#FFFFFF]' : ''\n const secondaryTextColor = isDark ? 'text-[#FFFFFF]' : 'text-grey-60'\n const itemTextColor = isDark ? 'text-[#FFFFFF]' : 'text-[#00559a]'\n\n return html`\n <div\n class=\"border-t border-grey-30 mx-auto w-full md:px-20 px-4 ${bgClass} ${primaryTextColor}\"\n >\n <div class=\"max-w-7xl mx-auto\">\n <div class=\"md:px-0 pb-6 lg:pb-0 mx-auto w-full\">\n <div\n class=\"grid grid-cols-4 lg:grid-cols-12 gap-6 lg:gap-8 lg:justify-between pt-10 pb-8 lg:py-10\"\n >\n ${Object.values(this.footer.brands.itemsLeft).map(\n brand => html`\n <a\n class=\"col-span-4 lg:col-span-2 flex gap-4 cursor-pointer\"\n title=\"Kompas.id\"\n href=\"${brand.permalink}\"\n >\n <img\n src=\"https://d3w4qaq4xm1ncv.cloudfront.net/assets/img/logos/kompas-logo-footer.svg\"\n height=\"${brand.image.height}\"\n width=\"${brand.image.width}\"\n alt=\"${brand.image.alt}\"\n class=\"w-auto h-10 lg:mx-auto\"\n />\n </a>\n `\n )}\n <div\n class=\"col-span-4 lg:col-start-10 lg:col-span-3 gap-4 flex lg:justify-end mx-auto w-full\"\n >\n <a\n class=\"cursor-pointer\"\n href=\"${this.footer.brands.itemsRight[0].permalink}\"\n target=\"_blank\"\n >\n <img\n src=\"https://d3w4qaq4xm1ncv.cloudfront.net/halaman-unduh/image/ios-badge.png\"\n class=\"h-10 w-[120px]\"\n alt=\"Logo iOS\"\n /></a>\n <a\n class=\"cursor-pointer\"\n href=\"${this.footer.brands.itemsRight[1].permalink}\"\n target=\"_blank\"\n >\n <img\n src=\"https://d3w4qaq4xm1ncv.cloudfront.net/halaman-unduh/image/google-play-badge.png\"\n class=\"h-10 w-[138px]\"\n alt=\"Logo Android\"\n /></a>\n </div>\n </div>\n </div>\n <div class=\"grid grid-cols-4 lg:grid-cols-12 gap-8 pb-2\">\n <div\n class=\"col-span-4 lg:col-span-3 flex flex-row lg:flex-col gap-8 lg:gap-0\"\n >\n ${Object.values(this.footer.address.items).map(\n address => html` <div class=\"lg:pb-6\">\n <div\n class=\"font-bold leading-none pb-3 text-sm ${itemTextColor}\"\n >\n ${address.title}\n </div>\n <div class=\"leading-normal pb-3 text-sm ${secondaryTextColor}\">\n ${address.text}\n </div>\n <div class=\"flex flex-row\">\n <div\n class=\"font-bold leading-none pb-3 pr-2 text-sm ${itemTextColor} hidden lg:block\"\n >\n Tlp.\n </div>\n <div\n class=\"grid lg:gap-x-6 lg:grid-cols-2 md:grid-cols-1 grid-cols-1\"\n >\n ${Object.values(address.phones).map(\n num => html`\n <div\n class=\"leading-normal pb-2 text-sm ${secondaryTextColor}\"\n >\n ${num.number}\n </div>\n `\n )}\n </div>\n </div>\n </div>`\n )}\n </div>\n <div class=\"col-span-4 lg:col-span-5 gap-4\">\n <div class=\"grid grid-cols-2 sm:grid-cols-4 gap-6 shrink-0\">\n ${Object.values(this.footer.products.items).map(\n product => html`\n <div>\n <div\n class=\"font-bold leading-none pb-4 text-sm ${itemTextColor}\"\n >\n ${product.title}\n </div>\n ${Object.values(product.sites).map(\n prod => html`\n <a\n class=\"leading-normal text-sm ${secondaryTextColor}\"\n href=\"${prod.permalink}\"\n >\n <div class=\"flex flex-col pb-4 cursor-pointer\">\n ${prod.text}\n </div>\n </a>\n `\n )}\n </div>\n `\n )}\n </div>\n </div>\n <div class=\"col-span-2 flex flex-col\">\n <div\n class=\"font-bold leading-none pb-4 text-sm ${itemTextColor}\"\n >\n ${this.footer.contacts.title}\n </div>\n ${Object.values(this.footer.contacts.items).map(\n contact => html` <div class=\"flex flex-row pb-4\">\n <div\n class=\"flex items-center mr-3 text-base ${itemTextColor}\"\n >\n ${unsafeSVG(\n getFontAwesomeIcon(contact.icon[0], contact.icon[1])\n )}\n </div>\n <div class=\"flex flex-col\">\n <div class=\"pb-1 text-sm w-full ${secondaryTextColor}\">\n ${contact.label}\n </div>\n <a\n class=\"font-bold text-sm w-full cursor-pointer\"\n href=\"${contact.action}\"\n >\n <span class=\"text-grey-50\"> ${contact.text} </span>\n </a>\n </div>\n </div>`\n )}\n </div>\n <div class=\"col-span-2 flex flex-col\">\n <div\n class=\"font-bold leading-none pb-4 text-sm ${itemTextColor}\"\n >\n ${this.footer.sosmed.title}\n </div>\n ${Object.values(this.footer.sosmed.items).map(\n sosmed => html`\n <a\n class=\"border border-grey-30 hover-border-blue-20 hover-bg-blue-10 p-2 mb-2 flex flex-row md:self-end rounded w-full cursor-pointer\"\n href=\"${sosmed.url}\"\n >\n <div\n class=\"h-5 flex justify-center items-center rounded text-white w-5 ${sosmed.color}\"\n >\n <div class=\"h-3 text-xs\">\n ${unsafeSVG(\n getFontAwesomeIcon(\n sosmed.icon[0],\n sosmed.icon[1],\n 12,\n 12\n )\n )}\n </div>\n </div>\n <div class=\"leading-normal pl-2 text-sm ${secondaryTextColor}\">\n ${sosmed.name}\n </div>\n </a>\n `\n )}\n </div>\n </div>\n </div>\n </div>\n <div class=\"flex flex-col pb-32 pt-6 px-4 text-xs bg-black\">\n <div class=\"flex flex-col lg:flex-row max-w-7xl mx-auto w-full\">\n <div class=\"flex flex-wrap mb-2 lg:mb-0 w-full\">\n <div\n class=\"flex flex-col lg:flex-row flex-grow lg:justify-between\"\n >\n <div class=\"flex flex-wrap\">\n <div class=\"flex text-white\">\n &copy; ${this.getYear()} PT Kompas Media Nusantara\n <span class=\"mx-2 text-grey-50\">&centerdot;</span>\n </div>\n ${Object.values(this.footer.universal.itemsLeft).map(\n universal => html` <a\n class=\"flex justify-center items-center\"\n href=\"${universal.url}\"\n >\n <div class=\"pb-2 lg:pb-0 text-white cursor-pointer\">\n ${universal.name}\n <span class=\"mx-2 text-grey-50\">&centerdot;</span>\n </div>\n </a>`\n )}\n </div>\n <div class=\"flex flex-wrap shrink-0\">\n ${Object.values(this.footer.universal.itemsRight).map(\n universal => html`\n <a class=\"flex cursor-pointer\" href=\"${universal.url}\">\n <div class=\"text-white flex items-center\">\n ${universal.name}\n <span class=\"mx-2 text-grey-50\">&centerdot;</span>\n </div>\n </a>\n `\n )}\n </div>\n </div>\n </div>\n </div>\n </div>\n `\n }\n return html``\n }\n}\n"]}
@@ -46,5 +46,5 @@ export declare class KompasMeteredPaywall extends LitElement {
46
46
  private redirectToBerlangganan;
47
47
  private dataLayeronLanggananButton;
48
48
  private dataLayeronMeteredPaywall;
49
- render(): import("lit-html").TemplateResult<1>;
49
+ render(): import("lit").TemplateResult<1>;
50
50
  }
@@ -5,7 +5,7 @@ import { TWStyles } from '../../../tailwind/tailwind.js';
5
5
  let KompasMeteredPaywall = class KompasMeteredPaywall extends LitElement {
6
6
  constructor() {
7
7
  super(...arguments);
8
- this.maxQuota = 5;
8
+ this.maxQuota = 3;
9
9
  this.subscriptionUrl = 'https://www.kompas.id/berlangganan';
10
10
  /**
11
11
  * Props