@objectifthunes/whiteboard 0.2.5 → 0.2.7

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 CHANGED
@@ -142,7 +142,7 @@ export declare function computeWhiteboardRectFocus(rect: PanelRect, viewportSize
142
142
  };
143
143
  };
144
144
 
145
- export declare function ConfirmDialog({ open, title, message, onConfirm, onCancel, confirmLabel, loading, error, }: Props_5): ReactPortal | null;
145
+ export declare function ConfirmDialog({ open, title, message, onConfirm, onCancel, confirmLabel, loadingLabel, loading, error, }: Props_5): ReactPortal | null;
146
146
 
147
147
  /**
148
148
  * A 2-column grid for coordinate inputs.
@@ -330,7 +330,7 @@ export declare type PanelRect = {
330
330
 
331
331
  export declare function PanelSection({ heading, description, actions, className, children, ...props }: PanelSectionProps): JSX_2.Element;
332
332
 
333
- declare interface PanelSectionProps extends HTMLAttributes<HTMLDivElement> {
333
+ declare interface PanelSectionProps extends HTMLAttributes<HTMLElement> {
334
334
  heading?: ReactNode;
335
335
  description?: ReactNode;
336
336
  actions?: ReactNode;
@@ -436,6 +436,8 @@ declare interface Props_5 {
436
436
  onConfirm: () => void;
437
437
  onCancel: () => void;
438
438
  confirmLabel?: string;
439
+ /** Label shown on the confirm button while `loading` is true. Defaults to `${confirmLabel}…`. */
440
+ loadingLabel?: string;
439
441
  loading?: boolean;
440
442
  error?: string | null;
441
443
  }