@overmap-ai/blocks 1.0.44-alpha.0 → 1.0.44-gcs.3

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,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  export interface ILayoutContent {
3
2
  small: boolean;
4
3
  hideLayout: boolean;
5
4
  isOpen: (id: string) => boolean;
6
5
  setOpen: (id: string, open: boolean) => void;
7
6
  }
8
- export declare const LayoutContext: import('react').Context<ILayoutContent>;
7
+ export declare const LayoutContext: import('use-context-selector').Context<ILayoutContent>;
@@ -1 +1,3 @@
1
- export declare const useLayoutContext: () => import('./context').ILayoutContent;
1
+ import { ILayoutContent } from './context';
2
+ export declare const useLayoutContext: () => ILayoutContent;
3
+ export declare function useLayoutContextSelector<Selected>(selector: (ctx: ILayoutContent) => Selected): Selected;
@@ -1,6 +1,12 @@
1
- /// <reference types="react" />
1
+ import { ComponentPropsWithRef } from 'react';
2
+ import { SpinnerVariantProps } from './typings';
3
+ export interface SpinnerProps extends ComponentPropsWithRef<"div">, SpinnerVariantProps {
4
+ }
2
5
  /**
3
6
  * Loading spinner component that indicates ongoing operations.
4
- * Displays a rotating circular indicator with consistent styling.
7
+ * Supports button-aligned size variants and accent color theming.
8
+ *
9
+ * @param [size="md"] {SpinnerSize} - Spinner size
10
+ * @param accentColor {string} - Accent color override
5
11
  */
6
- export declare const Spinner: import('react').MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
12
+ export declare const Spinner: import('react').NamedExoticComponent<SpinnerProps>;
@@ -0,0 +1,3 @@
1
+ export declare const spinnerCva: (props?: ({
2
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
3
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -1 +1,2 @@
1
1
  export * from './Spinner';
2
+ export type * from './typings';
@@ -0,0 +1,9 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import { AccentColorProps } from '../typings';
3
+ import { spinnerCva } from './cva';
4
+ type Variants = VariantProps<typeof spinnerCva>;
5
+ export type SpinnerSize = NonNullable<Variants["size"]>;
6
+ export interface SpinnerVariantProps extends AccentColorProps {
7
+ size?: SpinnerSize;
8
+ }
9
+ export {};