@overmap-ai/blocks 0.0.1-alpha.41 → 0.0.1-alpha.43

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.
@@ -1,10 +1,8 @@
1
1
  import { ComponentProps } from "react";
2
2
  import { Badge as RadixBadge, MarginProps } from "@radix-ui/themes";
3
3
  import { Severity } from "../typings.ts";
4
- export interface BadgeProps extends Omit<ComponentProps<typeof RadixBadge>, "radius" | keyof MarginProps> {
4
+ export interface BadgeProps extends Omit<ComponentProps<typeof RadixBadge>, keyof MarginProps> {
5
5
  /** The severity of the Badge, supports all global severities. Note that specifying a severity will overwrite any
6
6
  * color passed into the Badge component. */
7
7
  severity?: Severity;
8
- /** When true, forces the badge to have full rounding */
9
- rounded?: boolean;
10
8
  }
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { ButtonProps } from "../Buttons/typings";
3
+ export type ButtonContextType = Pick<ButtonProps, "variant" | "size" | "severity" | "hoverEffects">;
4
+ export declare const ButtonGroupContext: import("react").Context<ButtonContextType>;
5
+ export declare const useButtonGroupContext: () => ButtonContextType;
@@ -1,14 +1,12 @@
1
1
  import { Flex, MarginProps, Responsive } from "@radix-ui/themes";
2
- import { ComponentProps, ReactElement } from "react";
2
+ import { ComponentProps } from "react";
3
3
  import { Severity, Size, Variant } from "../typings.ts";
4
4
  import { ButtonHoverEffect } from "../Buttons";
5
- export interface ButtonGroupProps extends Omit<ComponentProps<typeof Flex>, keyof MarginProps | "size" | "direction" | "children"> {
5
+ export interface ButtonGroupProps extends Omit<ComponentProps<typeof Flex>, keyof MarginProps | "size" | "direction"> {
6
6
  /** The direction in which the Buttons within the ButtonGroup are stacked
7
7
  * @default "row"
8
8
  * */
9
9
  direction?: "column" | "row";
10
- /** An array consisting of Button or IconButton components*/
11
- children: ReactElement[];
12
10
  /** The size of the ButtonGroup, will be applied to all Buttons contained within the ButtonGroup
13
11
  * @default "medium"
14
12
  * */
@@ -3,7 +3,7 @@ import { Button as RadixButton, MarginProps, Responsive } from "@radix-ui/themes
3
3
  import { Severity, Size, Variant } from "../typings.ts";
4
4
  export type RadixButtonProps = React.ComponentProps<typeof RadixButton>;
5
5
  export type ButtonHoverEffect = "spin90Clockwise" | "spin180Clockwise" | "spin360Clockwise";
6
- export interface ButtonProps extends Omit<RadixButtonProps, "size" | "color" | "variant" | "radius" | keyof MarginProps> {
6
+ export interface ButtonProps extends Omit<RadixButtonProps, "size" | "color" | "variant" | keyof MarginProps> {
7
7
  children: RadixButtonProps["children"];
8
8
  /** @default false */
9
9
  fluid?: boolean;
@@ -3,7 +3,7 @@ import { Responsive, TextField as RadixTextField } from "@radix-ui/themes";
3
3
  import { Severity, Size } from "../typings.ts";
4
4
  import { MarginProps } from "@radix-ui/themes";
5
5
  type TextFieldInputProps = React.ComponentProps<typeof RadixTextField.Input>;
6
- export interface InputProps extends Omit<TextFieldInputProps, "size" | "color" | "radius" | keyof MarginProps> {
6
+ export interface InputProps extends Omit<TextFieldInputProps, "size" | "color" | keyof MarginProps> {
7
7
  leftIcon?: React.ReactNode;
8
8
  rightIcon?: React.ReactNode;
9
9
  size?: Responsive<Size>;
@@ -0,0 +1,24 @@
1
+ import { FC, ForwardRefExoticComponent } from "react";
2
+ import { MarginProps, Text as RadixText } from "@radix-ui/themes";
3
+ import { Severity } from "../typings";
4
+ type RadixTextProps = typeof RadixText extends ForwardRefExoticComponent<infer P> ? P : never;
5
+ export type TextProps = Omit<RadixTextProps, keyof MarginProps | "ref" | "asChild" | "color"> & {
6
+ /** If true, the text will not wrap, but instead will truncate with a text overflow ellipsis.
7
+ * @default false
8
+ */
9
+ noWrap?: boolean;
10
+ severity?: Severity;
11
+ /** @default span */
12
+ as: RadixTextProps["as"];
13
+ /** @default 3 */
14
+ size?: RadixTextProps["size"];
15
+ };
16
+ /**
17
+ * A foundational text primitive.
18
+ *
19
+ * Use the `as` prop to render text as a `p`, `label`, `div` or `span`. This prop is purely semantic and does not alter visual appearance.
20
+ *
21
+ * For the complete documentation, refer to https://www.radix-ui.com/themes/docs/components/text.
22
+ */
23
+ export declare const Text: FC<TextProps>;
24
+ export {};
@@ -0,0 +1 @@
1
+ export * from "./Text";