@livetiles/reach-plugin-types 0.5.0-preview.471 → 0.5.0-preview.472

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 +27 -2
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -5626,13 +5626,37 @@ declare module "libs/reach/ui/common/src/reach-2/ModalBottomSheet" {
5626
5626
  }
5627
5627
  export const ModalBottomSheet: import("react").ForwardRefExoticComponent<ModalBottomSheetProps & import("react").RefAttributes<HTMLIonModalElement>>;
5628
5628
  }
5629
+ declare module "libs/reach/ui/common/src/reach-2/RadixDialog" {
5630
+ import { FC, MouseEvent } from 'react';
5631
+ export enum DialogType {
5632
+ normal = 0,
5633
+ close = 1
5634
+ }
5635
+ export interface RadixDialogProps {
5636
+ triggerButton: HTMLButtonElement | JSX.Element;
5637
+ isOpen?: boolean;
5638
+ title?: string | JSX.Element;
5639
+ type?: DialogType;
5640
+ isBlocking?: boolean;
5641
+ hideCancelButton?: boolean;
5642
+ onDismiss?: (event?: MouseEvent<HTMLButtonElement>) => any;
5643
+ onSave?: (event?: MouseEvent<HTMLButtonElement>) => any;
5644
+ disableSave?: boolean;
5645
+ saveButtonLabel?: string;
5646
+ canceButtonLabel?: string;
5647
+ minWidth?: number;
5648
+ maxWidth?: number;
5649
+ }
5650
+ export const RadixDialog: FC<RadixDialogProps>;
5651
+ }
5629
5652
  declare module "libs/reach/ui/common/src/reach-2/Modal" {
5630
- import { IDialogProps } from 'office-ui-fabric-react';
5631
5653
  import { FC } from 'react';
5632
5654
  import { ModalBottomSheetProps } from "libs/reach/ui/common/src/reach-2/ModalBottomSheet";
5633
- interface ModalProps extends IDialogProps, Omit<ModalBottomSheetProps, 'children'> {
5655
+ import { RadixDialogProps } from "libs/reach/ui/common/src/reach-2/RadixDialog";
5656
+ interface ModalProps extends RadixDialogProps, Omit<ModalBottomSheetProps, 'children'> {
5634
5657
  onDismiss: () => void;
5635
5658
  ref?: any;
5659
+ triggerButton: HTMLButtonElement | JSX.Element;
5636
5660
  }
5637
5661
  export const Modal: FC<ModalProps>;
5638
5662
  }
@@ -5650,6 +5674,7 @@ declare module "libs/reach/ui/common/src/reach-2/index" {
5650
5674
  export * from "libs/reach/ui/common/src/reach-2/Modal";
5651
5675
  export * from "libs/reach/ui/common/src/reach-2/utils";
5652
5676
  export * from "libs/reach/ui/common/src/reach-2/ModalBottomSheetWithStackedChildren";
5677
+ export * from "libs/reach/ui/common/src/reach-2/RadixDialog";
5653
5678
  }
5654
5679
  declare module "libs/reach/ui/common/src/index" {
5655
5680
  export * from "libs/reach/ui/common/src/Dialog";
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.471",
7
+ "version": "0.5.0-preview.472",
8
8
  "dependencies": {}
9
9
  }