Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/witty-ties-cross.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@kopai/ui": minor
---

Improve uiTree schema and remove unncessary components and exports
4 changes: 2 additions & 2 deletions packages/ui/src/components/dashboard/Badge/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { dashboardCatalog } from "../../../lib/catalog.js";
import { observabilityCatalog } from "../../../lib/observability-catalog.js";
import type { CatalogueComponentProps } from "../../../lib/component-catalog.js";

export function Badge({
element,
}: CatalogueComponentProps<typeof dashboardCatalog.components.Badge>) {
}: CatalogueComponentProps<typeof observabilityCatalog.components.Badge>) {
const { text, variant } = element.props;

const colors: Record<string, string> = {
Expand Down
107 changes: 0 additions & 107 deletions packages/ui/src/components/dashboard/Button/Button.stories.tsx

This file was deleted.

63 changes: 0 additions & 63 deletions packages/ui/src/components/dashboard/Button/index.tsx

This file was deleted.

4 changes: 2 additions & 2 deletions packages/ui/src/components/dashboard/Card/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { dashboardCatalog } from "../../../lib/catalog.js";
import { observabilityCatalog } from "../../../lib/observability-catalog.js";
import type { RendererComponentProps } from "../../../lib/renderer.js";

export function Card({
element,
children,
}: RendererComponentProps<typeof dashboardCatalog.components.Card>) {
}: RendererComponentProps<typeof observabilityCatalog.components.Card>) {
const { title, description, padding } = element.props as {
title?: string | null;
description?: string | null;
Expand Down
48 changes: 0 additions & 48 deletions packages/ui/src/components/dashboard/Chart/Chart.stories.tsx

This file was deleted.

74 changes: 0 additions & 74 deletions packages/ui/src/components/dashboard/Chart/index.tsx

This file was deleted.

This file was deleted.

Loading