@kompasid/lit-web-components 0.9.2 → 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 +46 -24
- package/dist/src/components/kompasid-menu-side-bar/KompasMenuSideBar.js.map +1 -1
- package/dist/tailwind/tailwind.js +46 -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 +48 -29
- package/src/components/kompasid-menu-side-bar/readme.md +27 -0
- package/tailwind/tailwind.css +46 -0
- package/tailwind/tailwind.ts +46 -0
|
@@ -45,6 +45,7 @@ interface DataSideBarLink {
|
|
|
45
45
|
export declare class KompasMenuSideBar extends LitElement {
|
|
46
46
|
static styles: import("lit").CSSResult[];
|
|
47
47
|
dataExternal: DataExternalLink[];
|
|
48
|
+
isDark: boolean;
|
|
48
49
|
connectedCallback(): Promise<void>;
|
|
49
50
|
handleFetchError(error: unknown): void;
|
|
50
51
|
dataSidebar: DataSideBarLink;
|
|
@@ -11,6 +11,7 @@ let KompasMenuSideBar = class KompasMenuSideBar extends LitElement {
|
|
|
11
11
|
constructor() {
|
|
12
12
|
super(...arguments);
|
|
13
13
|
this.dataExternal = [];
|
|
14
|
+
this.isDark = false;
|
|
14
15
|
this.dataSidebar = {
|
|
15
16
|
feature: [],
|
|
16
17
|
category: [],
|
|
@@ -22,7 +23,6 @@ let KompasMenuSideBar = class KompasMenuSideBar extends LitElement {
|
|
|
22
23
|
this.showNavBar = !this.showNavBar;
|
|
23
24
|
};
|
|
24
25
|
}
|
|
25
|
-
// @property({ type: Array }) dataSidebar: DataSideBarLink[] = []
|
|
26
26
|
async connectedCallback() {
|
|
27
27
|
super.connectedCallback();
|
|
28
28
|
try {
|
|
@@ -162,10 +162,12 @@ let KompasMenuSideBar = class KompasMenuSideBar extends LitElement {
|
|
|
162
162
|
chips.push(html `
|
|
163
163
|
<div class="flex">
|
|
164
164
|
<div
|
|
165
|
-
class="py-
|
|
166
|
-
style="position:
|
|
165
|
+
class="py-0.5 px-1.5 rounded-full"
|
|
166
|
+
style="position: relative; display: inline-flex; background-color:#D71920;"
|
|
167
167
|
>
|
|
168
|
-
<span class="font-
|
|
168
|
+
<span class="font-bold font-sans text-xs text-white capitalize"
|
|
169
|
+
>Baru</span
|
|
170
|
+
>
|
|
169
171
|
</div>
|
|
170
172
|
</div>
|
|
171
173
|
`);
|
|
@@ -193,13 +195,21 @@ let KompasMenuSideBar = class KompasMenuSideBar extends LitElement {
|
|
|
193
195
|
class="w-fit flex items-center justify-center cursor-pointer relative"
|
|
194
196
|
@click=${this.toggleNavSidebar}
|
|
195
197
|
>
|
|
196
|
-
<div
|
|
198
|
+
<div
|
|
199
|
+
class="h-4 inline-flex ${this.isDark
|
|
200
|
+
? 'text-[#FFFFFF]'
|
|
201
|
+
: 'text-brand-1'}"
|
|
202
|
+
>
|
|
197
203
|
${unsafeSVG(getFontAwesomeIcon('fas', 'bars'))}
|
|
198
204
|
</div>
|
|
199
205
|
<span
|
|
200
|
-
class="font-sans hidden sm:inline ml-2 tracking-wide
|
|
201
|
-
|
|
206
|
+
class="font-sans hidden sm:inline ml-2 tracking-wide font-bold ${this
|
|
207
|
+
.isDark
|
|
208
|
+
? 'text-[#FFFFFF]'
|
|
209
|
+
: 'text-brand-1'}"
|
|
202
210
|
>
|
|
211
|
+
Menu
|
|
212
|
+
</span>
|
|
203
213
|
</div>
|
|
204
214
|
<!-- Side Menu -->
|
|
205
215
|
<nav
|
|
@@ -214,7 +224,7 @@ let KompasMenuSideBar = class KompasMenuSideBar extends LitElement {
|
|
|
214
224
|
style="width: 312px;"
|
|
215
225
|
>
|
|
216
226
|
<div
|
|
217
|
-
class="bg-[#
|
|
227
|
+
class="bg-[#FFFFFF] flex flex-col items-center justify-center mb-6 w-full"
|
|
218
228
|
>
|
|
219
229
|
<div
|
|
220
230
|
ref="logo-kompas"
|
|
@@ -229,7 +239,7 @@ let KompasMenuSideBar = class KompasMenuSideBar extends LitElement {
|
|
|
229
239
|
/>
|
|
230
240
|
</a>
|
|
231
241
|
<span
|
|
232
|
-
class="bg-[#
|
|
242
|
+
class="bg-[#E1F0FF] text-brand-1 cursor-pointer flex h-10 items-center justify-center rounded text-base w-10 p-4"
|
|
233
243
|
@click=${this.toggleNavSidebar}
|
|
234
244
|
>
|
|
235
245
|
${unsafeSVG(getFontAwesomeIcon('fa', 'times'))}
|
|
@@ -237,23 +247,31 @@ let KompasMenuSideBar = class KompasMenuSideBar extends LitElement {
|
|
|
237
247
|
</div>
|
|
238
248
|
<div class="flex flex-wrap px-4 w-full">
|
|
239
249
|
${this.dataExternal.map(item => html `
|
|
240
|
-
<a href="${item.url}" class="
|
|
241
|
-
<div
|
|
242
|
-
|
|
243
|
-
|
|
250
|
+
<a href="${item.url}" class="flex w-1/2 no-underline">
|
|
251
|
+
<div
|
|
252
|
+
class="cursor-pointer flex items-center pb-4 w-[312px]"
|
|
253
|
+
>
|
|
254
|
+
${item.icon &&
|
|
244
255
|
Array.isArray(item.icon) &&
|
|
245
256
|
item.icon.length >= 2
|
|
246
|
-
?
|
|
257
|
+
? html `
|
|
258
|
+
<div class="flex mr-2 text-brand-1">
|
|
259
|
+
${unsafeSVG(getFontAwesomeIcon(item.icon[0], item.icon[1]))}
|
|
260
|
+
</div>
|
|
261
|
+
`
|
|
247
262
|
: ''}
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
${item.name} ${item.isNew ? this.renderChips() : ''}
|
|
263
|
+
<span class="font-sans relative text-xs text-[#666666]">
|
|
264
|
+
${item.name}
|
|
251
265
|
</span>
|
|
266
|
+
<div class="ml-1">
|
|
267
|
+
${item.isNew ? this.renderChips() : ''}
|
|
268
|
+
</div>
|
|
252
269
|
</div>
|
|
253
270
|
</a>
|
|
254
271
|
`)}
|
|
255
272
|
</div>
|
|
256
273
|
</div>
|
|
274
|
+
<div class="border-b border-[#DDD] m-6 "></div>
|
|
257
275
|
<!-- feature -->
|
|
258
276
|
<div class="flex">
|
|
259
277
|
<div class="flex justify-between flex-col">
|
|
@@ -269,7 +287,8 @@ let KompasMenuSideBar = class KompasMenuSideBar extends LitElement {
|
|
|
269
287
|
>
|
|
270
288
|
<div class="flex items-center space-x-3">
|
|
271
289
|
<span
|
|
272
|
-
class="text-xl text-brand-1
|
|
290
|
+
class="text-xl text-brand-1 h-8 flex items-center
|
|
291
|
+
${item.icon === null ? 'w-6' : 'max-w-max w-8'}"
|
|
273
292
|
>
|
|
274
293
|
${item.icon &&
|
|
275
294
|
Array.isArray(item.icon) &&
|
|
@@ -292,7 +311,7 @@ let KompasMenuSideBar = class KompasMenuSideBar extends LitElement {
|
|
|
292
311
|
${this.hasChildren(item)
|
|
293
312
|
? html `
|
|
294
313
|
<span
|
|
295
|
-
class="text-xs bg-[#e1f0ff] flex justify-center items-center rounded my-1 p-4 w-10 h-10 cursor-pointer"
|
|
314
|
+
class="text-xs text-brand-1 bg-[#e1f0ff] flex justify-center items-center rounded my-1 p-4 w-10 h-10 cursor-pointer"
|
|
296
315
|
@click=${(e) => {
|
|
297
316
|
e.stopPropagation(); // Prevents click from bubbling to parent
|
|
298
317
|
this.toggleChildren(item);
|
|
@@ -312,7 +331,7 @@ let KompasMenuSideBar = class KompasMenuSideBar extends LitElement {
|
|
|
312
331
|
<div class="pl-14 pt-1 pb-2 space-y-1">
|
|
313
332
|
${item.children.map(child => html `
|
|
314
333
|
<div
|
|
315
|
-
class="flex items-center text-sm text-
|
|
334
|
+
class="flex items-center text-sm text-[#333] px-4 cursor-pointer transition-all"
|
|
316
335
|
@click=${() => this.rubricClicked(child)}
|
|
317
336
|
>
|
|
318
337
|
<div
|
|
@@ -343,7 +362,7 @@ let KompasMenuSideBar = class KompasMenuSideBar extends LitElement {
|
|
|
343
362
|
<div class="w-full font-sans">
|
|
344
363
|
<!-- Parent item -->
|
|
345
364
|
<div
|
|
346
|
-
class="flex items-center justify-between text-sm font-medium
|
|
365
|
+
class="flex items-center justify-between text-sm font-medium px-4 transition-all cursor-pointer"
|
|
347
366
|
@click=${(e) => this.rubricClicked(item, e)}
|
|
348
367
|
>
|
|
349
368
|
<div
|
|
@@ -351,7 +370,7 @@ let KompasMenuSideBar = class KompasMenuSideBar extends LitElement {
|
|
|
351
370
|
>
|
|
352
371
|
<div class="flex items-center space-x-3">
|
|
353
372
|
<span
|
|
354
|
-
class="text-xl text-brand-1 w-8 h-8 flex items-center"
|
|
373
|
+
class="text-xl text-brand-1 max-w-max w-8 h-8 flex items-center"
|
|
355
374
|
>
|
|
356
375
|
${item.icon &&
|
|
357
376
|
Array.isArray(item.icon) &&
|
|
@@ -378,7 +397,7 @@ let KompasMenuSideBar = class KompasMenuSideBar extends LitElement {
|
|
|
378
397
|
${this.hasChildren(item)
|
|
379
398
|
? html `
|
|
380
399
|
<span
|
|
381
|
-
class="text-xs bg-[#e1f0ff] flex justify-center items-center rounded my-1 p-4 w-10 h-10 cursor-pointer"
|
|
400
|
+
class="text-xs bg-[#e1f0ff] flex justify-center items-center rounded my-1 p-4 w-10 h-10 cursor-pointer font-bold text-brand-1"
|
|
382
401
|
@click=${(e) => {
|
|
383
402
|
e.stopPropagation(); // Prevents click from bubbling to parent
|
|
384
403
|
this.toggleChildren(item);
|
|
@@ -398,7 +417,7 @@ let KompasMenuSideBar = class KompasMenuSideBar extends LitElement {
|
|
|
398
417
|
<div class="pt-1 pb-2 space-y-1">
|
|
399
418
|
${item.children.map(child => html `
|
|
400
419
|
<div
|
|
401
|
-
class="flex items-center text-sm text-
|
|
420
|
+
class="flex items-center text-sm text-[#333] px-4 cursor-pointer transition-all"
|
|
402
421
|
@click=${() => this.rubricClicked(child)}
|
|
403
422
|
>
|
|
404
423
|
<div
|
|
@@ -466,6 +485,9 @@ KompasMenuSideBar.styles = [
|
|
|
466
485
|
__decorate([
|
|
467
486
|
property({ type: Array })
|
|
468
487
|
], KompasMenuSideBar.prototype, "dataExternal", void 0);
|
|
488
|
+
__decorate([
|
|
489
|
+
property({ type: Boolean })
|
|
490
|
+
], KompasMenuSideBar.prototype, "isDark", void 0);
|
|
469
491
|
__decorate([
|
|
470
492
|
state()
|
|
471
493
|
], KompasMenuSideBar.prototype, "expandedSlug", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KompasMenuSideBar.js","sourceRoot":"","sources":["../../../../src/components/kompasid-menu-side-bar/KompasMenuSideBar.ts"],"names":[],"mappings":";AAAA,0DAA0D;AAC1D,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAA;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAA;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAgDnD,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,UAAU;IAA1C;;QAuCsB,iBAAY,GAAuB,EAAE,CAAA;QAiBhE,gBAAW,GAAoB;YAC7B,OAAO,EAAE,EAAE;YACX,QAAQ,EAAE,EAAE;SACb,CAAA;QAoJO,iBAAY,GAAkB,IAAI,CAAA;QAMlC,eAAU,GAAY,KAAK,CAAA;QAEnC,qBAAgB,GAAG,CAAC,CAAQ,EAAE,EAAE;YAC9B,CAAC,CAAC,eAAe,EAAE,CAAA,CAAC,mBAAmB;YACvC,IAAI,CAAC,UAAU,GAAG,CAAC,IAAI,CAAC,UAAU,CAAA;QACpC,CAAC,CAAA;IAoRH,CAAC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AC,CAAC,GAAG,CACpB;gBACC,CAAC,CAAC,IAAI,CAAA;;iDAEK;gBACX,CAAC,CAAC,EAAE;;;+BAGX,CACF;;yBAEJ;YACH,CAAC,CAAC,EAAE;;iBAET,CACF;;;;;KAKV,CAAA;IACH,CAAC;;AA5eM,wBAAM,GAAG;IACd,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAkCF;IACD,QAAQ;CACT,CAAA;AAC0B;IAA1B,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;uDAAsC;AAwKhE;IADC,KAAK,EAAE;uDACkC;AAM1C;IADC,KAAK,EAAE;qDAC2B;AArNxB,iBAAiB;IAD7B,aAAa,CAAC,wBAAwB,CAAC;GAC3B,iBAAiB,CA8e7B;SA9eY,iBAAiB","sourcesContent":["/* eslint-disable lit-a11y/click-events-have-key-events */\nimport { html, css, LitElement } from 'lit'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport { unsafeSVG } from 'lit/directives/unsafe-svg.js'\nimport { TWStyles } from '../../../tailwind/tailwind.js'\nimport { getFontAwesomeIcon } from '../../utils/fontawesome-setup.js'\nimport { decodeSpecialChars } from '../../utils/decodeSpecialChars.js'\nimport { timedContent } from '../../utils/timedContent.js'\n\ninterface DataExternalLink {\n external?: boolean\n gtmClass?: string\n icon: object | null\n iconify: string | null\n isNew: boolean\n name: string\n url: string\n}\n\ninterface dataType {\n href: string\n external?: boolean\n icon: object | null\n iconify: string | null\n name: string\n slug: string\n redDot: [\n {\n start: string\n end: string\n }\n ]\n children: [\n {\n href: string\n external: boolean\n icon: string\n iconify: string | null\n name: string\n slug: string\n redDot: [\n {\n start: string\n end: string\n }\n ]\n }\n ]\n}\ninterface DataSideBarLink {\n feature: dataType[]\n category: dataType[]\n}\n\n@customElement('kompasid-menu-side-bar')\nexport class KompasMenuSideBar extends LitElement {\n static styles = [\n css`\n .slide-side-enter-active,\n .slide-side-leave-active {\n transition: all 0.3s ease-out;\n }\n .slide-side-enter,\n .slide-side-leave-to {\n transform: translateX(-100%);\n }\n /* end: transisi buat sidebar */\n .nuxt-link-exact-active {\n @apply text-brand-1;\n }\n .menu-menu-sidebar {\n z-index: 99999;\n }\n /* Force scrollbar to always show (for debugging) */\n .menu-menu-sidebar::-webkit-scrollbar {\n width: 4px;\n }\n\n .menu-menu-sidebar::-webkit-scrollbar-track {\n background: white;\n }\n\n .menu-menu-sidebar::-webkit-scrollbar-thumb {\n background-color: #00557d; /* Replace with your brand color */\n border-radius: 8px;\n }\n\n .menu-menu-sidebar::-webkit-scrollbar-button,\n .menu-menu-sidebar::-webkit-scrollbar-corner {\n background-color: white;\n }\n `,\n TWStyles,\n ]\n @property({ type: Array }) dataExternal: DataExternalLink[] = []\n // @property({ type: Array }) dataSidebar: DataSideBarLink[] = []\n\n async connectedCallback() {\n super.connectedCallback()\n try {\n await this.fetchExternal()\n } catch (error) {\n this.handleFetchError(error)\n }\n }\n handleFetchError(error: unknown) {\n const errorMessage =\n error instanceof Error ? error.message : 'Kesalahan tidak diketahui'\n alert(`Terjadi kesalahan: ${errorMessage}`)\n }\n\n dataSidebar: DataSideBarLink = {\n feature: [],\n category: [],\n }\n async fetchExternal() {\n // External\n const endpointExternal = `https://cdn-www.kompas.id/assets/json/ApiMenuExternalLink.json`\n const response = await fetch(endpointExternal, {\n headers: {\n 'Content-Type': 'application/json',\n },\n })\n const resultExternal = await response.json()\n // eslint-disable-next-line no-undef\n if (!resultExternal || !Array.isArray(resultExternal)) {\n console.error(\n 'Error: resultExternal.result is undefined or not an array',\n resultExternal\n )\n this.dataExternal = [] // Ensure dataExternal is an empty array instead of undefined\n } else {\n this.dataExternal = resultExternal.map(\n (externalLink: Partial<DataExternalLink>) => ({\n external: externalLink.external ?? false,\n gtmClass: externalLink.gtmClass ?? '',\n icon: externalLink.icon ?? null,\n iconify: externalLink.iconify ?? null,\n isNew: externalLink.isNew ?? false,\n name: externalLink.name ?? '',\n url: externalLink.url ?? '',\n })\n )\n }\n // Sidebar\n const endpointSidebar = `https://cdn-www.kompas.id/assets/json/ApiMenuSideV2.json`\n const responseSidebar = await fetch(endpointSidebar, {\n headers: {\n 'Content-Type': 'application/json',\n },\n })\n const resultSidebar = await responseSidebar.json()\n // Validate the structure of the response\n if (!resultSidebar || typeof resultSidebar !== 'object') {\n console.error('Invalid response format:', resultSidebar)\n return\n }\n\n // Convert object to an array\n const sidebarArray = Object.values(resultSidebar)\n const [featureArray, categoryArray] = sidebarArray as [any[], any[]]\n const features: dataType[] =\n featureArray?.map((item: any) => ({\n href: item?.href ?? '',\n external: item?.external ?? false,\n icon: item?.icon ?? null,\n iconify: item?.iconify ?? null,\n name: item?.name ?? '',\n slug: item?.slug ?? '',\n redDot: [\n {\n start: item?.redDot?.start ?? '',\n end: item?.redDot?.end ?? '',\n },\n ],\n children: Array.isArray(item?.children)\n ? item.children.map((child: any) => ({\n href: child?.href ?? '',\n external: child?.external ?? false,\n icon: child?.icon ?? '',\n iconify: child?.iconify ?? '',\n name: child?.name ?? '',\n slug: child?.slug ?? '',\n redDot: [\n {\n start: child?.redDot?.start ?? '',\n end: child?.redDot?.end ?? '',\n },\n ],\n }))\n : [],\n })) ?? []\n\n // Map category data\n const categories: dataType[] =\n categoryArray?.map((item: any) => ({\n href: item?.href ?? '',\n external: item?.external ?? false,\n icon: item?.icon ?? null,\n iconify: item?.iconify ?? null,\n name: item?.name ?? '',\n slug: item?.slug ?? '',\n redDot: [\n {\n start: item?.redDot?.start ?? '',\n end: item?.redDot?.end ?? '',\n },\n ],\n children: Array.isArray(item?.children)\n ? item.children.map((child: any) => ({\n href: child?.href ?? '',\n external: child?.external ?? false,\n icon: child?.icon ?? '',\n iconify: child?.iconify ?? '',\n name: child?.name ?? '',\n slug: child?.slug ?? '',\n redDot: [\n {\n start: child?.redDot?.start ?? '',\n end: child?.redDot?.end ?? '',\n },\n ],\n }))\n : [],\n })) ?? []\n this.dataSidebar = { feature: features, category: categories }\n this.requestUpdate()\n }\n\n renderChips() {\n const chips = []\n chips.push(\n html`\n <div class=\"flex\">\n <div\n class=\"py-1 px-2 rounded text-xs\"\n style=\"position: absolute; top: -22px; right: -24px; display: inline-flex; background-color:#D71920;\"\n >\n <span class=\"font-normal text-white capitalize\">Baru</span>\n </div>\n </div>\n `\n )\n return chips\n }\n\n hasChildren(item: any): boolean {\n return Array.isArray(item?.children) && item.children.length > 0\n }\n\n rubricClicked(item: { name: string; href?: string }, event?: Event): void {\n if (event) {\n event.stopPropagation() // Prevent parent click event\n }\n if (item.href) {\n window.location.href = item.href\n }\n\n // add data layer here\n }\n\n @state()\n private expandedSlug: string | null = null\n private toggleChildren(item: any) {\n this.expandedSlug = this.expandedSlug === item.slug ? null : item.slug\n }\n\n @state()\n private showNavBar: boolean = false\n\n toggleNavSidebar = (e: Event) => {\n e.stopPropagation() // prevent bubbling\n this.showNavBar = !this.showNavBar\n }\n\n render() {\n return html`\n <!-- Button Menu -->\n <div\n class=\"w-fit flex items-center justify-center cursor-pointer relative\"\n @click=${this.toggleNavSidebar}\n >\n <div class=\"h-4 inline-flex text-brand-1\">\n ${unsafeSVG(getFontAwesomeIcon('fas', 'bars'))}\n </div>\n <span\n class=\"font-sans hidden sm:inline ml-2 tracking-wide text-brand-1 font-bold\"\n >Menu</span\n >\n </div>\n <!-- Side Menu -->\n <nav\n @click=${this.toggleNavSidebar}\n class=${this.showNavBar\n ? 'fixed left-0 top-0 w-screen z-[100]'\n : 'hidden'}\n >\n <div\n ref=\"toggle-nav-sidebar\"\n class=\"bg-white h-screen menu-menu-sidebar overflow-y-auto pb-20 pt-0 shadow-lg\"\n style=\"width: 312px;\"\n >\n <div\n class=\"bg-[#e1f0ff] flex flex-col items-center justify-center mb-6 w-full\"\n >\n <div\n ref=\"logo-kompas\"\n class=\"flex items-center justify-between px-4 py-6 w-full\"\n >\n <a href=\"/\" class=\"flex h-9 w-9\">\n <img\n src=\"https://cdn-www.kompas.id/assets/img/icons/kompas-icon-gold.svg\"\n alt=\"Kompas.id\"\n scale=\"0\"\n class=\"block w-full\"\n />\n </a>\n <span\n class=\"bg-[#93c8fd] cursor-pointer flex h-10 items-center justify-center rounded text-base w-10 p-4\"\n @click=${this.toggleNavSidebar}\n >\n ${unsafeSVG(getFontAwesomeIcon('fa', 'times'))}\n </span>\n </div>\n <div class=\"flex flex-wrap px-4 w-full\">\n ${this.dataExternal.map(\n item => html`\n <a href=\"${item.url}\" class=\"block w-1/2 no-underline\">\n <div class=\"cursor-pointer flex items-center pb-6 w-full\">\n <div class=\"flex mr-2\">\n ${item.icon &&\n Array.isArray(item.icon) &&\n item.icon.length >= 2\n ? unsafeSVG(\n getFontAwesomeIcon(item.icon[0], item.icon[1])\n )\n : ''}\n </div>\n <span class=\"font-sans relative text-sm text-brand-1\">\n ${item.name} ${item.isNew ? this.renderChips() : ''}\n </span>\n </div>\n </a>\n `\n )}\n </div>\n </div>\n <!-- feature -->\n <div class=\"flex\">\n <div class=\"flex justify-between flex-col\">\n ${this.dataSidebar.feature.map(\n item => html`\n <div class=\"w-full font-sans\">\n <!-- Parent item -->\n <div\n class=\"flex items-center justify-between px-4 text-sm font-medium text-gray-700 transition-all cursor-pointer\"\n @click=${(e: Event) => this.rubricClicked(item, e)}\n >\n <div\n class=\"w-[216px] hover:bg-[#f3f4f6] rounded h-12 flex items-center\"\n >\n <div class=\"flex items-center space-x-3\">\n <span\n class=\"text-xl text-brand-1 w-8 h-8 flex items-center\"\n >\n ${item.icon &&\n Array.isArray(item.icon) &&\n item.icon.length >= 2\n ? unsafeSVG(\n getFontAwesomeIcon(item.icon[0], item.icon[1])\n )\n : ''}\n </span>\n <span class=\"font-bold relative text-[#333] w-full\"\n >${decodeSpecialChars(item.name)}</span\n >\n ${timedContent(\n item.redDot[0].start,\n item.redDot[0].end\n )\n ? html`<span\n class=\"bg-orange-600 h-2 relative rounded-full w-2 -top-[12px]\"\n ></span>`\n : ''}\n </div>\n </div>\n\n <!-- Toggle chevron -->\n ${this.hasChildren(item)\n ? html`\n <span\n class=\"text-xs bg-[#e1f0ff] flex justify-center items-center rounded my-1 p-4 w-10 h-10 cursor-pointer\"\n @click=${(e: Event) => {\n e.stopPropagation() // Prevents click from bubbling to parent\n this.toggleChildren(item)\n }}\n >\n ${this.expandedSlug === item.slug\n ? unsafeSVG(\n getFontAwesomeIcon('fas', 'chevron-up')\n )\n : unsafeSVG(\n getFontAwesomeIcon('fas', 'chevron-down')\n )}\n </span>\n `\n : null}\n </div>\n\n <!-- Children items -->\n ${this.hasChildren(item) && this.expandedSlug === item.slug\n ? html`\n <div class=\"pl-14 pt-1 pb-2 space-y-1\">\n ${item.children.map(\n child => html`\n <div\n class=\"flex items-center text-sm text-gray-600 px-4 cursor-pointer transition-all\"\n @click=${() => this.rubricClicked(child)}\n >\n <div\n class=\"w-[216px] hover:bg-[#f3f4f6] rounded h-12 flex items-center pl-11\"\n >\n ${decodeSpecialChars(child.name)}\n ${timedContent(\n child.redDot[0].start,\n child.redDot[0].end\n )\n ? html`<span\n class=\"bg-orange-600 h-2 relative rounded-full w-2 -top-[12px]\"\n ></span>`\n : ''}\n <div></div>\n </div>\n </div>\n `\n )}\n </div>\n `\n : ''}\n </div>\n `\n )}\n </div>\n </div>\n <div class=\"border-b border-[#DDD] m-6 \"></div>\n <!-- category -->\n <div class=\"flex\">\n <div class=\"w-full flex justify-between flex-col\">\n ${this.dataSidebar.category.map(\n item => html`\n <div class=\"w-full font-sans\">\n <!-- Parent item -->\n <div\n class=\"flex items-center justify-between text-sm font-medium text-gray-700 px-4 transition-all cursor-pointer\"\n @click=${(e: Event) => this.rubricClicked(item, e)}\n >\n <div\n class=\"w-[216px] hover:bg-[#f3f4f6] rounded h-12 flex items-center\"\n >\n <div class=\"flex items-center space-x-3\">\n <span\n class=\"text-xl text-brand-1 w-8 h-8 flex items-center\"\n >\n ${item.icon &&\n Array.isArray(item.icon) &&\n item.icon.length >= 2\n ? unsafeSVG(\n getFontAwesomeIcon(item.icon[0], item.icon[1])\n )\n : ''}\n </span>\n <span\n class=\"font-bold ${item.name === 'Beranda'\n ? 'text-[#00559a]'\n : 'text-[#333] w-full'}\"\n >${decodeSpecialChars(item.name)}</span\n >\n\n ${timedContent(\n item.redDot[0].start,\n item.redDot[0].end\n )\n ? html`<span\n class=\"bg-orange-600 h-2 relative rounded-full w-2 -top-[12px]\"\n ></span>`\n : ''}\n </div>\n </div>\n\n <!-- Toggle chevron -->\n ${this.hasChildren(item)\n ? html`\n <span\n class=\"text-xs bg-[#e1f0ff] flex justify-center items-center rounded my-1 p-4 w-10 h-10 cursor-pointer\"\n @click=${(e: Event) => {\n e.stopPropagation() // Prevents click from bubbling to parent\n this.toggleChildren(item)\n }}\n >\n ${this.expandedSlug === item.slug\n ? unsafeSVG(\n getFontAwesomeIcon('fas', 'chevron-up')\n )\n : unsafeSVG(\n getFontAwesomeIcon('fas', 'chevron-down')\n )}\n </span>\n `\n : null}\n </div>\n\n <!-- Children items -->\n ${this.hasChildren(item) && this.expandedSlug === item.slug\n ? html`\n <div class=\"pt-1 pb-2 space-y-1\">\n ${item.children.map(\n child => html`\n <div\n class=\"flex items-center text-sm text-gray-600 px-4 cursor-pointer transition-all\"\n @click=${() => this.rubricClicked(child)}\n >\n <div\n class=\"w-[216px] hover:bg-[#f3f4f6] rounded h-12 flex items-center pl-11\"\n >\n ${decodeSpecialChars(child.name)}\n ${timedContent(\n child.redDot[0].start,\n child.redDot[0].end\n )\n ? html`<span\n class=\"bg-orange-600 h-2 relative rounded-full w-2 -top-[12px]\"\n ></span>`\n : ''}\n </div>\n </div>\n `\n )}\n </div>\n `\n : ''}\n </div>\n `\n )}\n </div>\n </div>\n </div>\n </nav>\n `\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"KompasMenuSideBar.js","sourceRoot":"","sources":["../../../../src/components/kompasid-menu-side-bar/KompasMenuSideBar.ts"],"names":[],"mappings":";AAAA,0DAA0D;AAC1D,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAC3C,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A/fM,wBAAM,GAAG;IACd,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAkCF;IACD,QAAQ;CACT,CAAA;AAC0B;IAA1B,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;uDAAsC;AACnC;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;iDAAe;AAyK3C;IADC,KAAK,EAAE;uDACkC;AAM1C;IADC,KAAK,EAAE;qDAC2B;AAvNxB,iBAAiB;IAD7B,aAAa,CAAC,wBAAwB,CAAC;GAC3B,iBAAiB,CAigB7B;SAjgBY,iBAAiB","sourcesContent":["/* eslint-disable lit-a11y/click-events-have-key-events */\nimport { html, css, LitElement } from 'lit'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport { unsafeSVG } from 'lit/directives/unsafe-svg.js'\nimport { TWStyles } from '../../../tailwind/tailwind.js'\nimport { getFontAwesomeIcon } from '../../utils/fontawesome-setup.js'\nimport { decodeSpecialChars } from '../../utils/decodeSpecialChars.js'\nimport { timedContent } from '../../utils/timedContent.js'\n\ninterface DataExternalLink {\n external?: boolean\n gtmClass?: string\n icon: object | null\n iconify: string | null\n isNew: boolean\n name: string\n url: string\n}\n\ninterface dataType {\n href: string\n external?: boolean\n icon: object | null\n iconify: string | null\n name: string\n slug: string\n redDot: [\n {\n start: string\n end: string\n }\n ]\n children: [\n {\n href: string\n external: boolean\n icon: string\n iconify: string | null\n name: string\n slug: string\n redDot: [\n {\n start: string\n end: string\n }\n ]\n }\n ]\n}\ninterface DataSideBarLink {\n feature: dataType[]\n category: dataType[]\n}\n\n@customElement('kompasid-menu-side-bar')\nexport class KompasMenuSideBar extends LitElement {\n static styles = [\n css`\n .slide-side-enter-active,\n .slide-side-leave-active {\n transition: all 0.3s ease-out;\n }\n .slide-side-enter,\n .slide-side-leave-to {\n transform: translateX(-100%);\n }\n /* end: transisi buat sidebar */\n .nuxt-link-exact-active {\n @apply text-brand-1;\n }\n .menu-menu-sidebar {\n z-index: 99999;\n }\n /* Force scrollbar to always show (for debugging) */\n .menu-menu-sidebar::-webkit-scrollbar {\n width: 4px;\n }\n\n .menu-menu-sidebar::-webkit-scrollbar-track {\n background: white;\n }\n\n .menu-menu-sidebar::-webkit-scrollbar-thumb {\n background-color: #00557d; /* Replace with your brand color */\n border-radius: 8px;\n }\n\n .menu-menu-sidebar::-webkit-scrollbar-button,\n .menu-menu-sidebar::-webkit-scrollbar-corner {\n background-color: white;\n }\n `,\n TWStyles,\n ]\n @property({ type: Array }) dataExternal: DataExternalLink[] = []\n @property({ type: Boolean }) isDark = false\n\n async connectedCallback() {\n super.connectedCallback()\n try {\n await this.fetchExternal()\n } catch (error) {\n this.handleFetchError(error)\n }\n }\n handleFetchError(error: unknown) {\n const errorMessage =\n error instanceof Error ? error.message : 'Kesalahan tidak diketahui'\n alert(`Terjadi kesalahan: ${errorMessage}`)\n }\n\n dataSidebar: DataSideBarLink = {\n feature: [],\n category: [],\n }\n async fetchExternal() {\n // External\n const endpointExternal = `https://cdn-www.kompas.id/assets/json/ApiMenuExternalLink.json`\n const response = await fetch(endpointExternal, {\n headers: {\n 'Content-Type': 'application/json',\n },\n })\n const resultExternal = await response.json()\n // eslint-disable-next-line no-undef\n if (!resultExternal || !Array.isArray(resultExternal)) {\n console.error(\n 'Error: resultExternal.result is undefined or not an array',\n resultExternal\n )\n this.dataExternal = [] // Ensure dataExternal is an empty array instead of undefined\n } else {\n this.dataExternal = resultExternal.map(\n (externalLink: Partial<DataExternalLink>) => ({\n external: externalLink.external ?? false,\n gtmClass: externalLink.gtmClass ?? '',\n icon: externalLink.icon ?? null,\n iconify: externalLink.iconify ?? null,\n isNew: externalLink.isNew ?? false,\n name: externalLink.name ?? '',\n url: externalLink.url ?? '',\n })\n )\n }\n // Sidebar\n const endpointSidebar = `https://cdn-www.kompas.id/assets/json/ApiMenuSideV2.json`\n const responseSidebar = await fetch(endpointSidebar, {\n headers: {\n 'Content-Type': 'application/json',\n },\n })\n const resultSidebar = await responseSidebar.json()\n // Validate the structure of the response\n if (!resultSidebar || typeof resultSidebar !== 'object') {\n console.error('Invalid response format:', resultSidebar)\n return\n }\n\n // Convert object to an array\n const sidebarArray = Object.values(resultSidebar)\n const [featureArray, categoryArray] = sidebarArray as [any[], any[]]\n const features: dataType[] =\n featureArray?.map((item: any) => ({\n href: item?.href ?? '',\n external: item?.external ?? false,\n icon: item?.icon ?? null,\n iconify: item?.iconify ?? null,\n name: item?.name ?? '',\n slug: item?.slug ?? '',\n redDot: [\n {\n start: item?.redDot?.start ?? '',\n end: item?.redDot?.end ?? '',\n },\n ],\n children: Array.isArray(item?.children)\n ? item.children.map((child: any) => ({\n href: child?.href ?? '',\n external: child?.external ?? false,\n icon: child?.icon ?? '',\n iconify: child?.iconify ?? '',\n name: child?.name ?? '',\n slug: child?.slug ?? '',\n redDot: [\n {\n start: child?.redDot?.start ?? '',\n end: child?.redDot?.end ?? '',\n },\n ],\n }))\n : [],\n })) ?? []\n\n // Map category data\n const categories: dataType[] =\n categoryArray?.map((item: any) => ({\n href: item?.href ?? '',\n external: item?.external ?? false,\n icon: item?.icon ?? null,\n iconify: item?.iconify ?? null,\n name: item?.name ?? '',\n slug: item?.slug ?? '',\n redDot: [\n {\n start: item?.redDot?.start ?? '',\n end: item?.redDot?.end ?? '',\n },\n ],\n children: Array.isArray(item?.children)\n ? item.children.map((child: any) => ({\n href: child?.href ?? '',\n external: child?.external ?? false,\n icon: child?.icon ?? '',\n iconify: child?.iconify ?? '',\n name: child?.name ?? '',\n slug: child?.slug ?? '',\n redDot: [\n {\n start: child?.redDot?.start ?? '',\n end: child?.redDot?.end ?? '',\n },\n ],\n }))\n : [],\n })) ?? []\n this.dataSidebar = { feature: features, category: categories }\n this.requestUpdate()\n }\n\n renderChips() {\n const chips = []\n chips.push(\n html`\n <div class=\"flex\">\n <div\n class=\"py-0.5 px-1.5 rounded-full\"\n style=\"position: relative; display: inline-flex; background-color:#D71920;\"\n >\n <span class=\"font-bold font-sans text-xs text-white capitalize\"\n >Baru</span\n >\n </div>\n </div>\n `\n )\n return chips\n }\n\n hasChildren(item: any): boolean {\n return Array.isArray(item?.children) && item.children.length > 0\n }\n\n rubricClicked(item: { name: string; href?: string }, event?: Event): void {\n if (event) {\n event.stopPropagation() // Prevent parent click event\n }\n if (item.href) {\n window.location.href = item.href\n }\n\n // add data layer here\n }\n\n @state()\n private expandedSlug: string | null = null\n private toggleChildren(item: any) {\n this.expandedSlug = this.expandedSlug === item.slug ? null : item.slug\n }\n\n @state()\n private showNavBar: boolean = false\n\n toggleNavSidebar = (e: Event) => {\n e.stopPropagation() // prevent bubbling\n this.showNavBar = !this.showNavBar\n }\n\n render() {\n return html`\n <!-- Button Menu -->\n <div\n class=\"w-fit flex items-center justify-center cursor-pointer relative\"\n @click=${this.toggleNavSidebar}\n >\n <div\n class=\"h-4 inline-flex ${this.isDark\n ? 'text-[#FFFFFF]'\n : 'text-brand-1'}\"\n >\n ${unsafeSVG(getFontAwesomeIcon('fas', 'bars'))}\n </div>\n <span\n class=\"font-sans hidden sm:inline ml-2 tracking-wide font-bold ${this\n .isDark\n ? 'text-[#FFFFFF]'\n : 'text-brand-1'}\"\n >\n Menu\n </span>\n </div>\n <!-- Side Menu -->\n <nav\n @click=${this.toggleNavSidebar}\n class=${this.showNavBar\n ? 'fixed left-0 top-0 w-screen z-[100]'\n : 'hidden'}\n >\n <div\n ref=\"toggle-nav-sidebar\"\n class=\"bg-white h-screen menu-menu-sidebar overflow-y-auto pb-20 pt-0 shadow-lg\"\n style=\"width: 312px;\"\n >\n <div\n class=\"bg-[#FFFFFF] flex flex-col items-center justify-center mb-6 w-full\"\n >\n <div\n ref=\"logo-kompas\"\n class=\"flex items-center justify-between px-4 py-6 w-full\"\n >\n <a href=\"/\" class=\"flex h-9 w-9\">\n <img\n src=\"https://cdn-www.kompas.id/assets/img/icons/kompas-icon-gold.svg\"\n alt=\"Kompas.id\"\n scale=\"0\"\n class=\"block w-full\"\n />\n </a>\n <span\n class=\"bg-[#E1F0FF] text-brand-1 cursor-pointer flex h-10 items-center justify-center rounded text-base w-10 p-4\"\n @click=${this.toggleNavSidebar}\n >\n ${unsafeSVG(getFontAwesomeIcon('fa', 'times'))}\n </span>\n </div>\n <div class=\"flex flex-wrap px-4 w-full\">\n ${this.dataExternal.map(\n item => html`\n <a href=\"${item.url}\" class=\"flex w-1/2 no-underline\">\n <div\n class=\"cursor-pointer flex items-center pb-4 w-[312px]\"\n >\n ${item.icon &&\n Array.isArray(item.icon) &&\n item.icon.length >= 2\n ? html`\n <div class=\"flex mr-2 text-brand-1\">\n ${unsafeSVG(\n getFontAwesomeIcon(item.icon[0], item.icon[1])\n )}\n </div>\n `\n : ''}\n <span class=\"font-sans relative text-xs text-[#666666]\">\n ${item.name}\n </span>\n <div class=\"ml-1\">\n ${item.isNew ? this.renderChips() : ''}\n </div>\n </div>\n </a>\n `\n )}\n </div>\n </div>\n <div class=\"border-b border-[#DDD] m-6 \"></div>\n <!-- feature -->\n <div class=\"flex\">\n <div class=\"flex justify-between flex-col\">\n ${this.dataSidebar.feature.map(\n item => html`\n <div class=\"w-full font-sans\">\n <!-- Parent item -->\n <div\n class=\"flex items-center justify-between px-4 text-sm font-medium text-gray-700 transition-all cursor-pointer\"\n @click=${(e: Event) => this.rubricClicked(item, e)}\n >\n <div\n class=\"w-[216px] hover:bg-[#f3f4f6] rounded h-12 flex items-center\"\n >\n <div class=\"flex items-center space-x-3\">\n <span\n class=\"text-xl text-brand-1 h-8 flex items-center \n ${item.icon === null ? 'w-6' : 'max-w-max w-8'}\"\n >\n ${item.icon &&\n Array.isArray(item.icon) &&\n item.icon.length >= 2\n ? unsafeSVG(\n getFontAwesomeIcon(item.icon[0], item.icon[1])\n )\n : ''}\n </span>\n <span class=\"font-bold relative text-[#333] w-full\"\n >${decodeSpecialChars(item.name)}</span\n >\n ${timedContent(\n item.redDot[0].start,\n item.redDot[0].end\n )\n ? html`<span\n class=\"bg-orange-600 h-2 relative rounded-full w-2 -top-[12px]\"\n ></span>`\n : ''}\n </div>\n </div>\n\n <!-- Toggle chevron -->\n ${this.hasChildren(item)\n ? html`\n <span\n class=\"text-xs text-brand-1 bg-[#e1f0ff] flex justify-center items-center rounded my-1 p-4 w-10 h-10 cursor-pointer\"\n @click=${(e: Event) => {\n e.stopPropagation() // Prevents click from bubbling to parent\n this.toggleChildren(item)\n }}\n >\n ${this.expandedSlug === item.slug\n ? unsafeSVG(\n getFontAwesomeIcon('fas', 'chevron-up')\n )\n : unsafeSVG(\n getFontAwesomeIcon('fas', 'chevron-down')\n )}\n </span>\n `\n : null}\n </div>\n\n <!-- Children items -->\n ${this.hasChildren(item) && this.expandedSlug === item.slug\n ? html`\n <div class=\"pl-14 pt-1 pb-2 space-y-1\">\n ${item.children.map(\n child => html`\n <div\n class=\"flex items-center text-sm text-[#333] px-4 cursor-pointer transition-all\"\n @click=${() => this.rubricClicked(child)}\n >\n <div\n class=\"w-[216px] hover:bg-[#f3f4f6] rounded h-12 flex items-center pl-11\"\n >\n ${decodeSpecialChars(child.name)}\n ${timedContent(\n child.redDot[0].start,\n child.redDot[0].end\n )\n ? html`<span\n class=\"bg-orange-600 h-2 relative rounded-full w-2 -top-[12px]\"\n ></span>`\n : ''}\n <div></div>\n </div>\n </div>\n `\n )}\n </div>\n `\n : ''}\n </div>\n `\n )}\n </div>\n </div>\n <div class=\"border-b border-[#DDD] m-6 \"></div>\n <!-- category -->\n <div class=\"flex\">\n <div class=\"w-full flex justify-between flex-col\">\n ${this.dataSidebar.category.map(\n item => html`\n <div class=\"w-full font-sans\">\n <!-- Parent item -->\n <div\n class=\"flex items-center justify-between text-sm font-medium px-4 transition-all cursor-pointer\"\n @click=${(e: Event) => this.rubricClicked(item, e)}\n >\n <div\n class=\"w-[216px] hover:bg-[#f3f4f6] rounded h-12 flex items-center\"\n >\n <div class=\"flex items-center space-x-3\">\n <span\n class=\"text-xl text-brand-1 max-w-max w-8 h-8 flex items-center\"\n >\n ${item.icon &&\n Array.isArray(item.icon) &&\n item.icon.length >= 2\n ? unsafeSVG(\n getFontAwesomeIcon(item.icon[0], item.icon[1])\n )\n : ''}\n </span>\n <span\n class=\"font-bold ${item.name === 'Beranda'\n ? 'text-[#00559a]'\n : 'text-[#333] w-full'}\"\n >${decodeSpecialChars(item.name)}</span\n >\n\n ${timedContent(\n item.redDot[0].start,\n item.redDot[0].end\n )\n ? html`<span\n class=\"bg-orange-600 h-2 relative rounded-full w-2 -top-[12px]\"\n ></span>`\n : ''}\n </div>\n </div>\n\n <!-- Toggle chevron -->\n ${this.hasChildren(item)\n ? html`\n <span\n class=\"text-xs bg-[#e1f0ff] flex justify-center items-center rounded my-1 p-4 w-10 h-10 cursor-pointer font-bold text-brand-1\"\n @click=${(e: Event) => {\n e.stopPropagation() // Prevents click from bubbling to parent\n this.toggleChildren(item)\n }}\n >\n ${this.expandedSlug === item.slug\n ? unsafeSVG(\n getFontAwesomeIcon('fas', 'chevron-up')\n )\n : unsafeSVG(\n getFontAwesomeIcon('fas', 'chevron-down')\n )}\n </span>\n `\n : null}\n </div>\n\n <!-- Children items -->\n ${this.hasChildren(item) && this.expandedSlug === item.slug\n ? html`\n <div class=\"pt-1 pb-2 space-y-1\">\n ${item.children.map(\n child => html`\n <div\n class=\"flex items-center text-sm text-[#333] px-4 cursor-pointer transition-all\"\n @click=${() => this.rubricClicked(child)}\n >\n <div\n class=\"w-[216px] hover:bg-[#f3f4f6] rounded h-12 flex items-center pl-11\"\n >\n ${decodeSpecialChars(child.name)}\n ${timedContent(\n child.redDot[0].start,\n child.redDot[0].end\n )\n ? html`<span\n class=\"bg-orange-600 h-2 relative rounded-full w-2 -top-[12px]\"\n ></span>`\n : ''}\n </div>\n </div>\n `\n )}\n </div>\n `\n : ''}\n </div>\n `\n )}\n </div>\n </div>\n </div>\n </nav>\n `\n }\n}\n"]}
|
|
@@ -807,6 +807,14 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
807
807
|
margin-top: 2rem;
|
|
808
808
|
}
|
|
809
809
|
|
|
810
|
+
.ml-\\[6px\\] {
|
|
811
|
+
margin-left: 6px;
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
.ml-1\\.5 {
|
|
815
|
+
margin-left: 0.375rem;
|
|
816
|
+
}
|
|
817
|
+
|
|
810
818
|
.block {
|
|
811
819
|
display: block;
|
|
812
820
|
}
|
|
@@ -1037,10 +1045,23 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
1037
1045
|
width: 100vw;
|
|
1038
1046
|
}
|
|
1039
1047
|
|
|
1048
|
+
.w-\\[312px\\] {
|
|
1049
|
+
width: 312px;
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
.w-2\\.5 {
|
|
1053
|
+
width: 0.625rem;
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1040
1056
|
.max-w-7xl {
|
|
1041
1057
|
max-width: 80rem;
|
|
1042
1058
|
}
|
|
1043
1059
|
|
|
1060
|
+
.max-w-max {
|
|
1061
|
+
max-width: -moz-max-content;
|
|
1062
|
+
max-width: max-content;
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1044
1065
|
.max-w-screen-md {
|
|
1045
1066
|
max-width: 768px;
|
|
1046
1067
|
}
|
|
@@ -1411,6 +1432,11 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
1411
1432
|
background-color: rgb(147 200 253 / var(--tw-bg-opacity));
|
|
1412
1433
|
}
|
|
1413
1434
|
|
|
1435
|
+
.bg-\\[\\#FFFFFF\\] {
|
|
1436
|
+
--tw-bg-opacity: 1;
|
|
1437
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1414
1440
|
.bg-\\[\\#e1f0ff\\] {
|
|
1415
1441
|
--tw-bg-opacity: 1;
|
|
1416
1442
|
background-color: rgb(225 240 255 / var(--tw-bg-opacity));
|
|
@@ -1521,6 +1547,11 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
1521
1547
|
background-color: rgb(255 220 63 / var(--tw-bg-opacity));
|
|
1522
1548
|
}
|
|
1523
1549
|
|
|
1550
|
+
.bg-\\[\\#E1F0FF\\] {
|
|
1551
|
+
--tw-bg-opacity: 1;
|
|
1552
|
+
background-color: rgb(225 240 255 / var(--tw-bg-opacity));
|
|
1553
|
+
}
|
|
1554
|
+
|
|
1524
1555
|
.bg-opacity-75 {
|
|
1525
1556
|
--tw-bg-opacity: 0.75;
|
|
1526
1557
|
}
|
|
@@ -1648,6 +1679,16 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
1648
1679
|
padding-bottom: 5.6px;
|
|
1649
1680
|
}
|
|
1650
1681
|
|
|
1682
|
+
.px-1 {
|
|
1683
|
+
padding-left: 0.25rem;
|
|
1684
|
+
padding-right: 0.25rem;
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1687
|
+
.px-1\\.5 {
|
|
1688
|
+
padding-left: 0.375rem;
|
|
1689
|
+
padding-right: 0.375rem;
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1651
1692
|
.pb-1 {
|
|
1652
1693
|
padding-bottom: 0.25rem;
|
|
1653
1694
|
}
|
|
@@ -2002,6 +2043,11 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
2002
2043
|
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
2003
2044
|
}
|
|
2004
2045
|
|
|
2046
|
+
.text-\\[\\#666666\\] {
|
|
2047
|
+
--tw-text-opacity: 1;
|
|
2048
|
+
color: rgb(102 102 102 / var(--tw-text-opacity));
|
|
2049
|
+
}
|
|
2050
|
+
|
|
2005
2051
|
.underline {
|
|
2006
2052
|
text-decoration-line: underline;
|
|
2007
2053
|
}
|