@objectifthunes/whiteboard 0.2.3 → 0.2.5
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/index.d.ts +24 -0
- package/dist/index.js +450 -386
- package/dist/whiteboard.css +185 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes } from 'react';
|
|
2
2
|
import { Component } from 'react';
|
|
3
|
+
import { ComponentProps } from 'react';
|
|
3
4
|
import { ComponentType } from 'react';
|
|
4
5
|
import { ElementType } from 'react';
|
|
5
6
|
import { ForwardRefExoticComponent } from 'react';
|
|
@@ -35,6 +36,8 @@ declare interface AssetTitleProps extends TypographyProps {
|
|
|
35
36
|
clamp?: boolean;
|
|
36
37
|
}
|
|
37
38
|
|
|
39
|
+
export declare function AvatarBadge({ className, ...props }: HTMLAttributes<HTMLSpanElement>): JSX_2.Element;
|
|
40
|
+
|
|
38
41
|
export declare function AvatarSkeleton(props: HTMLAttributes<HTMLDivElement>): JSX_2.Element;
|
|
39
42
|
|
|
40
43
|
/** Get a position just below a tracked panel */
|
|
@@ -73,6 +76,12 @@ declare type ButtonVariant = 'primary' | 'secondary' | 'danger';
|
|
|
73
76
|
|
|
74
77
|
export declare function CanvasSkeleton(props: HTMLAttributes<HTMLDivElement>): JSX_2.Element;
|
|
75
78
|
|
|
79
|
+
export declare function CanvasStage({ children, hint, className, ...props }: CanvasStageProps): JSX_2.Element;
|
|
80
|
+
|
|
81
|
+
declare interface CanvasStageProps extends HTMLAttributes<HTMLDivElement> {
|
|
82
|
+
hint?: string;
|
|
83
|
+
}
|
|
84
|
+
|
|
76
85
|
export declare function Chip({ className, ...props }: ChipProps): JSX_2.Element;
|
|
77
86
|
|
|
78
87
|
declare type ChipProps = HTMLAttributes<HTMLSpanElement>;
|
|
@@ -278,6 +287,12 @@ export declare function MutedText({ as, size, className, ...props }: TypographyP
|
|
|
278
287
|
|
|
279
288
|
declare type MutedTextSize = 'xs' | 'sm' | 'md';
|
|
280
289
|
|
|
290
|
+
export declare function OverlayIconButton({ className, placement, onPointerDown, onWheel, onContextMenu, ...props }: OverlayIconButtonProps): JSX_2.Element;
|
|
291
|
+
|
|
292
|
+
declare interface OverlayIconButtonProps extends Omit<ComponentProps<typeof Button>, 'variant' | 'iconOnly'> {
|
|
293
|
+
placement?: Placement;
|
|
294
|
+
}
|
|
295
|
+
|
|
281
296
|
export declare function PageCard({ children, className, ...props }: HTMLAttributes<HTMLDivElement>): JSX_2.Element;
|
|
282
297
|
|
|
283
298
|
export declare function PageShell({ children, className, ...props }: HTMLAttributes<HTMLElement>): JSX_2.Element;
|
|
@@ -368,6 +383,8 @@ declare interface PillProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
368
383
|
|
|
369
384
|
declare type PillTone = 'default' | 'success' | 'warning' | 'danger';
|
|
370
385
|
|
|
386
|
+
declare type Placement = 'top-right' | 'bottom-left' | 'bottom-right';
|
|
387
|
+
|
|
371
388
|
declare type PositionMap<T extends WidthMap> = {
|
|
372
389
|
[K in keyof T]: {
|
|
373
390
|
x: number;
|
|
@@ -557,6 +574,13 @@ declare interface UseWhiteboardLayoutOptions<T extends WidthMap> {
|
|
|
557
574
|
|
|
558
575
|
export declare const useWhiteboardStore: UseBoundStore<StoreApi<WhiteboardStore>>;
|
|
559
576
|
|
|
577
|
+
export declare function VerticalToolbar({ children, bottom, position, className, ...props }: VerticalToolbarProps): JSX_2.Element;
|
|
578
|
+
|
|
579
|
+
declare interface VerticalToolbarProps extends HTMLAttributes<HTMLElement> {
|
|
580
|
+
position?: 'left' | 'right' | 'static';
|
|
581
|
+
bottom?: ReactNode;
|
|
582
|
+
}
|
|
583
|
+
|
|
560
584
|
export declare const WHITEBOARD_GRID = 20;
|
|
561
585
|
|
|
562
586
|
export declare function WhiteboardShell({ children, showMinimap, minimapLoading, extraActions }: Props): JSX_2.Element;
|