@overmap-ai/blocks 0.0.1-alpha.32 → 0.0.1-alpha.35
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/Badge/Badge.d.ts +6 -0
- package/dist/Badge/index.d.ts +2 -0
- package/dist/Badge/typings.d.ts +10 -0
- package/dist/blocks.js +222 -210
- package/dist/blocks.js.map +1 -1
- package/dist/blocks.umd.cjs +2 -2
- package/dist/blocks.umd.cjs.map +1 -1
- package/dist/index.d.ts +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { BadgeProps } from "./typings.ts";
|
|
3
|
+
/** The Badge Component is a user interface element that provides visual feedback, typically displaying a small amount
|
|
4
|
+
* of information. It is commonly used to indicate counts, statuses, or labels in a concise and visually appealing
|
|
5
|
+
* manner. This Badge components wraps the Badge component from Radix-ui found here https://www.radix-ui.com/themes/docs/components/badge */
|
|
6
|
+
export declare const Badge: FC<BadgeProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
import { Badge as RadixBadge, MarginProps } from "@radix-ui/themes";
|
|
3
|
+
import { Severity } from "../typings.ts";
|
|
4
|
+
export interface BadgeProps extends Omit<ComponentProps<typeof RadixBadge>, "radius" | keyof MarginProps> {
|
|
5
|
+
/** The severity of the Badge, supports all global severities. Note that specifying a severity will overwrite any
|
|
6
|
+
* color passed into the Badge component. */
|
|
7
|
+
severity?: Severity;
|
|
8
|
+
/** When true, forces the badge to have full rounding */
|
|
9
|
+
rounded?: boolean;
|
|
10
|
+
}
|