@livetiles/reach-plugin-types 0.5.0-preview.487 → 0.5.0-preview.488

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.
Files changed (2) hide show
  1. package/lib/index.d.ts +31 -17
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -4016,10 +4016,10 @@ declare module "libs/reach/ui/common/src/common/TextLink" {
4016
4016
  onClick?: (e: MouseEvent) => unknown;
4017
4017
  }>;
4018
4018
  }
4019
- declare module "libs/reach/ui/common/src/Dialog" {
4019
+ declare module "libs/reach/ui/common/src/LegacyDialog" {
4020
4020
  import { FC } from 'react';
4021
4021
  import { IDialogProps } from 'office-ui-fabric-react';
4022
- export const Dialog: FC<IDialogProps>;
4022
+ export const LegacyDialog: FC<IDialogProps>;
4023
4023
  }
4024
4024
  declare module "libs/reach/ui/common/src/EditorSettingsDialog" {
4025
4025
  import { FC } from 'react';
@@ -4569,10 +4569,10 @@ declare module "libs/reach/ui/common/src/common/empty-states/index" {
4569
4569
  export { ReactComponent as NoGroupContent } from './no_group_content.svg';
4570
4570
  export { ReactComponent as NoPageContent } from './no_page_content.svg';
4571
4571
  }
4572
- declare module "libs/reach/ui/common/src/common/Panel" {
4572
+ declare module "libs/reach/ui/common/src/common/LegacyPanel" {
4573
4573
  import { FC } from 'react';
4574
4574
  import { IPanelProps } from 'office-ui-fabric-react';
4575
- export const Panel: FC<IPanelProps>;
4575
+ export const LegacyPanel: FC<IPanelProps>;
4576
4576
  }
4577
4577
  declare module "libs/reach/ui/common/src/common/full-screen-viewer/FullScreenImageViewer" {
4578
4578
  import { FC } from 'react';
@@ -5496,7 +5496,7 @@ declare module "libs/reach/ui/common/src/common/index" {
5496
5496
  export * from "libs/reach/ui/common/src/common/MobileFullHeightDialog";
5497
5497
  export * from "libs/reach/ui/common/src/common/Modified";
5498
5498
  export * from "libs/reach/ui/common/src/common/empty-states/index";
5499
- export * from "libs/reach/ui/common/src/common/Panel";
5499
+ export * from "libs/reach/ui/common/src/common/LegacyPanel";
5500
5500
  export * from "libs/reach/ui/common/src/common/PhotoGrid";
5501
5501
  export * from "libs/reach/ui/common/src/common/PhotoViewer";
5502
5502
  export * from "libs/reach/ui/common/src/common/Prompt";
@@ -5712,34 +5712,42 @@ declare module "libs/reach/ui/common/src/reach-2/ModalBottomSheet" {
5712
5712
  }
5713
5713
  export const ModalBottomSheet: import("react").ForwardRefExoticComponent<ModalBottomSheetProps & import("react").RefAttributes<HTMLIonModalElement>>;
5714
5714
  }
5715
- declare module "libs/reach/ui/common/src/reach-2/RadixDialog" {
5715
+ declare module "libs/reach/ui/common/src/reach-2/BaseDialog" {
5716
5716
  import { FC, MouseEvent } from 'react';
5717
5717
  export enum DialogType {
5718
5718
  normal = 0,
5719
5719
  close = 1
5720
5720
  }
5721
- export interface RadixDialogProps {
5721
+ export interface BaseDialogProps {
5722
5722
  triggerButton: HTMLButtonElement | JSX.Element;
5723
5723
  isOpen?: boolean;
5724
5724
  title?: string | JSX.Element;
5725
5725
  type?: DialogType;
5726
5726
  isBlocking?: boolean;
5727
+ onDismiss?: (event?: MouseEvent<HTMLButtonElement>) => void;
5728
+ className?: string;
5729
+ }
5730
+ export const BaseDialog: FC<BaseDialogProps>;
5731
+ }
5732
+ declare module "libs/reach/ui/common/src/reach-2/Dialog" {
5733
+ import { FC, MouseEvent } from 'react';
5734
+ import { BaseDialogProps } from "libs/reach/ui/common/src/reach-2/BaseDialog";
5735
+ export interface DialogProps extends BaseDialogProps {
5736
+ minwidth?: number;
5737
+ maxwidth?: number;
5727
5738
  hideCancelButton?: boolean;
5728
- onDismiss?: (event?: MouseEvent<HTMLButtonElement>) => any;
5729
- onSave?: (event?: MouseEvent<HTMLButtonElement>) => any;
5739
+ onSave?: (event?: MouseEvent<HTMLButtonElement>) => void;
5730
5740
  disableSave?: boolean;
5731
5741
  saveButtonLabel?: string;
5732
- canceButtonLabel?: string;
5733
- minWidth?: number;
5734
- maxWidth?: number;
5742
+ cancelButtonLabel?: string;
5735
5743
  }
5736
- export const RadixDialog: FC<RadixDialogProps>;
5744
+ export const Dialog: FC<DialogProps>;
5737
5745
  }
5738
5746
  declare module "libs/reach/ui/common/src/reach-2/Modal" {
5739
5747
  import { FC } from 'react';
5740
5748
  import { ModalBottomSheetProps } from "libs/reach/ui/common/src/reach-2/ModalBottomSheet";
5741
- import { RadixDialogProps } from "libs/reach/ui/common/src/reach-2/RadixDialog";
5742
- interface ModalProps extends RadixDialogProps, Omit<ModalBottomSheetProps, 'children'> {
5749
+ import { DialogProps } from "libs/reach/ui/common/src/reach-2/Dialog";
5750
+ interface ModalProps extends DialogProps, Omit<ModalBottomSheetProps, 'children'> {
5743
5751
  onDismiss: () => void;
5744
5752
  ref?: any;
5745
5753
  triggerButton: HTMLButtonElement | JSX.Element;
@@ -5753,6 +5761,11 @@ declare module "libs/reach/ui/common/src/reach-2/utils" {
5753
5761
  breakpoints: number[];
5754
5762
  };
5755
5763
  }
5764
+ declare module "libs/reach/ui/common/src/reach-2/Panel" {
5765
+ import { FC } from 'react';
5766
+ import { BaseDialogProps } from "libs/reach/ui/common/src/reach-2/BaseDialog";
5767
+ export const Panel: FC<BaseDialogProps>;
5768
+ }
5756
5769
  declare module "libs/reach/ui/common/src/reach-2/index" {
5757
5770
  export * from "libs/reach/ui/common/src/reach-2/Icon";
5758
5771
  export * from "libs/reach/ui/common/src/reach-2/icons/index";
@@ -5760,10 +5773,11 @@ declare module "libs/reach/ui/common/src/reach-2/index" {
5760
5773
  export * from "libs/reach/ui/common/src/reach-2/Modal";
5761
5774
  export * from "libs/reach/ui/common/src/reach-2/utils";
5762
5775
  export * from "libs/reach/ui/common/src/reach-2/ModalBottomSheetWithStackedChildren";
5763
- export * from "libs/reach/ui/common/src/reach-2/RadixDialog";
5776
+ export * from "libs/reach/ui/common/src/reach-2/Dialog";
5777
+ export * from "libs/reach/ui/common/src/reach-2/Panel";
5764
5778
  }
5765
5779
  declare module "libs/reach/ui/common/src/index" {
5766
- export * from "libs/reach/ui/common/src/Dialog";
5780
+ export * from "libs/reach/ui/common/src/LegacyDialog";
5767
5781
  export * from "libs/reach/ui/common/src/content-keyword-utils";
5768
5782
  export * from "libs/reach/ui/common/src/EditorHighlight";
5769
5783
  export * from "libs/reach/ui/common/src/EditorSettingsDialog";
package/package.json CHANGED
@@ -4,6 +4,6 @@
4
4
  "main": "",
5
5
  "types": "./index.d.ts",
6
6
  "license": "ISC",
7
- "version": "0.5.0-preview.487",
7
+ "version": "0.5.0-preview.488",
8
8
  "dependencies": {}
9
9
  }