@eventcatalog/core 2.7.11 → 2.7.12
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/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { ComponentType } from 'react';
|
|
3
|
+
import * as Icons from '@heroicons/react/24/solid';
|
|
4
|
+
import { buildUrl } from '@utils/url-builder-client';
|
|
5
|
+
|
|
6
|
+
interface Props {
|
|
7
|
+
href: string;
|
|
8
|
+
icon: keyof typeof Icons;
|
|
9
|
+
title: string;
|
|
10
|
+
openWindow?: boolean;
|
|
11
|
+
description: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const { href, icon, title, description, openWindow } = Astro.props;
|
|
15
|
+
|
|
16
|
+
const IconComponent: ComponentType<{ className?: string }> | undefined = Icons[icon];
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
<a
|
|
20
|
+
href={buildUrl(href)}
|
|
21
|
+
target={openWindow ? '_blank' : '_self'}
|
|
22
|
+
class="block bg-white border border-gray-200 rounded-lg p-6 transition-all duration-300 ease-in-out hover:shadow-md hover:border-purple-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-purple-500 focus:ring-white"
|
|
23
|
+
>
|
|
24
|
+
<div class="flex flex-col h-full space-y-8">
|
|
25
|
+
{IconComponent && <IconComponent className="w-6 h-6 text-purple-500" />}
|
|
26
|
+
<div>
|
|
27
|
+
<h2 class="text-gray-800 text-lg font-semibold transition-colors duration-300 ease-in-out group-hover:text-gray-300">
|
|
28
|
+
{title}
|
|
29
|
+
</h2>
|
|
30
|
+
<p class="text-gray-600 transition-colors duration-300 ease-in-out group-hover:text-gray-200 m-0 font-light text-sm">
|
|
31
|
+
{description}
|
|
32
|
+
</p>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
</a>
|
|
@@ -4,6 +4,8 @@ import File from '@components/MDX/File';
|
|
|
4
4
|
import Accordion from '@components/MDX/Accordion/Accordion.astro';
|
|
5
5
|
import AccordionGroup from '@components/MDX/Accordion/AccordionGroup.astro';
|
|
6
6
|
import Flow from '@components/MDX/Flow/Flow.astro';
|
|
7
|
+
import Tiles from '@components/MDX/Tiles/Tiles.astro';
|
|
8
|
+
import Tile from '@components/MDX/Tiles/Tile.astro';
|
|
7
9
|
import Admonition from '@components/MDX/Admonition';
|
|
8
10
|
import OpenAPI from '@components/MDX/OpenAPI/OpenAPI.astro';
|
|
9
11
|
import AsyncAPI from '@components/MDX/AsyncAPI/AsyncAPI.astro';
|
|
@@ -19,6 +21,8 @@ const components = (props: any) => {
|
|
|
19
21
|
Flow,
|
|
20
22
|
OpenAPI,
|
|
21
23
|
AsyncAPI,
|
|
24
|
+
Tiles,
|
|
25
|
+
Tile,
|
|
22
26
|
Admonition: (mdxProp: any) => <Admonition {...mdxProp} {...props} />,
|
|
23
27
|
File: (mdxProp: any) => File({ ...props, ...mdxProp }),
|
|
24
28
|
NodeGraph: (mdxProp: any) => NodeGraphPortal({ ...props.data, ...mdxProp }),
|