@kompasid/lit-web-components 0.9.50 → 0.9.51

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.
@@ -27,15 +27,12 @@ export class KompasPaywallModalRegister extends LitElement {
27
27
  height: 100%;
28
28
  background-color: rgba(0, 0, 0, 0.5);
29
29
  display: flex;
30
- justify-content: center;
31
- align-items: center;
32
30
  z-index: 1000;
33
31
  }
34
32
 
35
33
  .modal-content {
36
34
  background-color: #222222;
37
35
  border-radius: 12px;
38
- overflow: hidden;
39
36
  position: relative;
40
37
  }
41
38
 
@@ -293,7 +290,7 @@ export class KompasPaywallModalRegister extends LitElement {
293
290
  name="nameUser"
294
291
  type="text"
295
292
  placeholder=""
296
- class="p-2 bg-grey-500 rounded border border-grey-400"
293
+ class="p-2 bg-grey-600 rounded border border-grey-500"
297
294
  .value="${this.formData.nameUser}"
298
295
  @input="${this.handleInput}"
299
296
  @blur="${this.handleBlur}"
@@ -326,7 +323,7 @@ export class KompasPaywallModalRegister extends LitElement {
326
323
  name="email"
327
324
  type="email"
328
325
  placeholder=""
329
- class="p-2 bg-grey-500 rounded border border-grey-400"
326
+ class="p-2 bg-grey-600 rounded border border-grey-500"
330
327
  .value="${this.formData.email}"
331
328
  @input="${this.handleInput}"
332
329
  @blur="${this.handleBlur}"
@@ -359,7 +356,7 @@ export class KompasPaywallModalRegister extends LitElement {
359
356
  name="nomor"
360
357
  type="tel"
361
358
  placeholder=""
362
- class="p-2 bg-grey-500 rounded border border-grey-400"
359
+ class="p-2 bg-grey-600 rounded border border-grey-500"
363
360
  .value="${this.formData.nomor}"
364
361
  @input="${this.handleInput}"
365
362
  @blur="${this.handleBlur}"
@@ -391,7 +388,7 @@ export class KompasPaywallModalRegister extends LitElement {
391
388
  name="nameCompany"
392
389
  type="text"
393
390
  placeholder=""
394
- class="p-2 bg-grey-500 rounded border border-grey-400"
391
+ class="p-2 bg-grey-600 rounded border border-grey-500"
395
392
  .value="${this.formData.nameCompany}"
396
393
  @input="${this.handleInput}"
397
394
  @blur="${this.handleBlur}"
@@ -427,7 +424,7 @@ export class KompasPaywallModalRegister extends LitElement {
427
424
  render() {
428
425
  return this.showModalRegister
429
426
  ? html`<div
430
- class="px-4 font-sans flex flex-wrap items-center justify-between rounded-lg md:mx-0 w-full min-h-[68px] bg-white relative"
427
+ class="p-4 gap-2 font-sans flex flex-wrap items-center justify-between rounded-lg md:mx-0 w-full min-h-[68px] bg-white relative"
431
428
  >
432
429
  <div class="flex flex-col gap-1">
433
430
  <span class="text-xs leading-tight text-grey-500">
@@ -445,7 +442,7 @@ export class KompasPaywallModalRegister extends LitElement {
445
442
  ? 'bg-green-500 text-white'
446
443
  : 'bg-white border border-green-500 text-green-500'} flex items-center"
447
444
  >
448
- <h6 class="text-xs md:text-sm font-bold py-2 px-4">
445
+ <h6 class="text-sm font-bold py-2 px-4">
449
446
  ${this.dataModalRegister.card.textButton}
450
447
  </h6>
451
448
  </button>
@@ -459,14 +456,14 @@ export class KompasPaywallModalRegister extends LitElement {
459
456
  @keydown=${() => this.closeModal()}
460
457
  >
461
458
  <div
462
- class="modal-content max-w-7xl w-full flex flex-col lg:flex-row max-h-full overflow-auto"
459
+ class="modal-content max-w-7xl w-full flex flex-col lg:flex-row max-h-full overflow-auto lg:overflow-hidden"
463
460
  @click="${(e: { stopPropagation: () => any }) =>
464
461
  e.stopPropagation()}"
465
462
  @keydown=${(e: { stopPropagation: () => any }) =>
466
463
  e.stopPropagation()}
467
464
  >
468
465
  <button class="close-button" @click="${this.closeModal}">
469
- ${unsafeSVG(getFontAwesomeIcon('fa', 'times', 20, 20))}
466
+ ${unsafeSVG(getFontAwesomeIcon('fa', 'times', 32, 32))}
470
467
  </button>
471
468
  <div
472
469
  class="bg-grey-600 lg:max-w-[515px] w-full p-4 md:p-16 justify-between items-center flex flex-col relative"
@@ -553,22 +550,22 @@ export class KompasPaywallModalRegister extends LitElement {
553
550
  Butuh bantuan? Hubungi
554
551
  <button
555
552
  @click=${this.customerServiceClicked}
556
- class="font-bold underline"
553
+ class="font-bold underline text-white"
557
554
  >
558
555
  ${this.dataModalRegister.modal.registerPopUp.hotline
559
556
  .text}
560
557
  </button>
561
558
  </div>
562
559
  </div>
563
- <div class="w-full h-full">
560
+ <div class="w-full h-full lg:overflow-auto">
564
561
  ${this.templateForm()}
565
562
  <div
566
- class="block lg:hidden text-grey-300 py-5 bg-grey-600 w-full text-center"
563
+ class="block lg:hidden text-grey-300 py-5 bg-grey-600 w-full text-center text-xs"
567
564
  >
568
565
  Butuh bantuan? Hubungi
569
566
  <button
570
567
  @click=${this.customerServiceClicked}
571
- class="font-bold underline"
568
+ class="font-bold underline text-white"
572
569
  >
573
570
  ${this.dataModalRegister.modal.registerPopUp.hotline
574
571
  .text}
@@ -75,7 +75,7 @@ export class KompasWidgetRecirculationsDefault extends LitElement {
75
75
  }
76
76
 
77
77
  async relatedArticles() {
78
- const kompasApiAi = 'https://ai.kompas.id/api/v1'
78
+ const kompasApiAi = 'https://api.kompas.id/icm/api/v1'
79
79
 
80
80
  // Constructing parameters
81
81
  const params = new URLSearchParams()
@@ -86,7 +86,7 @@ export class KompasWidgetRecirculationsDefault extends LitElement {
86
86
  params.append('slugs', this.slugs)
87
87
 
88
88
  // Constructing the URL with parameters
89
- const endpoint = `${kompasApiAi}/recommendation?${params.toString()}`
89
+ const endpoint = `${kompasApiAi}/recommendations?${params.toString()}`
90
90
 
91
91
  const response = await fetch(endpoint, {
92
92
  headers: {
@@ -997,6 +997,19 @@ video {
997
997
  max-height: 100%;
998
998
  }
999
999
 
1000
+ .max-h-screen {
1001
+ max-height: 100vh;
1002
+ }
1003
+
1004
+ .max-h-\[90vh\] {
1005
+ max-height: 90vh;
1006
+ }
1007
+
1008
+ .max-h-max {
1009
+ max-height: -moz-max-content;
1010
+ max-height: max-content;
1011
+ }
1012
+
1000
1013
  .min-h-\[68px\] {
1001
1014
  min-height: 68px;
1002
1015
  }
@@ -2435,11 +2448,6 @@ video {
2435
2448
  max-height: 220px;
2436
2449
  }
2437
2450
 
2438
- .md\:max-h-fit {
2439
- max-height: -moz-fit-content;
2440
- max-height: fit-content;
2441
- }
2442
-
2443
2451
  .md\:min-h-\[244px\] {
2444
2452
  min-height: 244px;
2445
2453
  }
@@ -2821,15 +2829,15 @@ video {
2821
2829
  height: 2rem;
2822
2830
  }
2823
2831
 
2824
- .lg\:max-h-none {
2825
- max-height: none;
2826
- }
2827
-
2828
2832
  .lg\:max-h-fit {
2829
2833
  max-height: -moz-fit-content;
2830
2834
  max-height: fit-content;
2831
2835
  }
2832
2836
 
2837
+ .lg\:max-h-none {
2838
+ max-height: none;
2839
+ }
2840
+
2833
2841
  .lg\:min-h-\[220px\] {
2834
2842
  min-height: 220px;
2835
2843
  }
@@ -2911,6 +2919,14 @@ video {
2911
2919
  column-gap: 1.5rem;
2912
2920
  }
2913
2921
 
2922
+ .lg\:overflow-auto {
2923
+ overflow: auto;
2924
+ }
2925
+
2926
+ .lg\:overflow-hidden {
2927
+ overflow: hidden;
2928
+ }
2929
+
2914
2930
  .lg\:px-0 {
2915
2931
  padding-left: 0px;
2916
2932
  padding-right: 0px;
@@ -1004,6 +1004,19 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
1004
1004
  max-height: 100%;
1005
1005
  }
1006
1006
 
1007
+ .max-h-screen {
1008
+ max-height: 100vh;
1009
+ }
1010
+
1011
+ .max-h-\\[90vh\\] {
1012
+ max-height: 90vh;
1013
+ }
1014
+
1015
+ .max-h-max {
1016
+ max-height: -moz-max-content;
1017
+ max-height: max-content;
1018
+ }
1019
+
1007
1020
  .min-h-\\[68px\\] {
1008
1021
  min-height: 68px;
1009
1022
  }
@@ -2458,11 +2471,6 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
2458
2471
  max-height: 220px;
2459
2472
  }
2460
2473
 
2461
- .md\\:max-h-fit {
2462
- max-height: -moz-fit-content;
2463
- max-height: fit-content;
2464
- }
2465
-
2466
2474
  .md\\:min-h-\\[244px\\] {
2467
2475
  min-height: 244px;
2468
2476
  }
@@ -2844,15 +2852,15 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
2844
2852
  height: 2rem;
2845
2853
  }
2846
2854
 
2847
- .lg\\:max-h-none {
2848
- max-height: none;
2849
- }
2850
-
2851
2855
  .lg\\:max-h-fit {
2852
2856
  max-height: -moz-fit-content;
2853
2857
  max-height: fit-content;
2854
2858
  }
2855
2859
 
2860
+ .lg\\:max-h-none {
2861
+ max-height: none;
2862
+ }
2863
+
2856
2864
  .lg\\:min-h-\\[220px\\] {
2857
2865
  min-height: 220px;
2858
2866
  }
@@ -2934,6 +2942,14 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
2934
2942
  column-gap: 1.5rem;
2935
2943
  }
2936
2944
 
2945
+ .lg\\:overflow-auto {
2946
+ overflow: auto;
2947
+ }
2948
+
2949
+ .lg\\:overflow-hidden {
2950
+ overflow: hidden;
2951
+ }
2952
+
2937
2953
  .lg\\:px-0 {
2938
2954
  padding-left: 0px;
2939
2955
  padding-right: 0px;