@livetiles/reach-plugin-types 0.5.0-preview.447 → 0.5.0-preview.449
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/lib/index.d.ts +20 -4
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -5541,7 +5541,6 @@ declare module "libs/reach/ui/common/src/reach-2/Icon" {
|
|
|
5541
5541
|
}
|
|
5542
5542
|
export const IconNavLink: FC<IconProps & {
|
|
5543
5543
|
to: string;
|
|
5544
|
-
onClick?: (e: MouseEvent<any>) => void;
|
|
5545
5544
|
}>;
|
|
5546
5545
|
export const IconActionButton: FC<IconProps & {
|
|
5547
5546
|
onClick: (event: MouseEvent<any>) => void;
|
|
@@ -5600,23 +5599,39 @@ declare module "libs/reach/ui/common/src/reach-2/icons/Icons" {
|
|
|
5600
5599
|
declare module "libs/reach/ui/common/src/reach-2/icons/index" {
|
|
5601
5600
|
export * from "libs/reach/ui/common/src/reach-2/icons/Icons";
|
|
5602
5601
|
}
|
|
5602
|
+
declare module "libs/reach/ui/common/src/reach-2/ModalBottomSheetWithStackedChildren" {
|
|
5603
|
+
import { FC, ReactNode } from 'react';
|
|
5604
|
+
export interface ModalBottomSheetWithStackedChildrenProps {
|
|
5605
|
+
addNewLayer: (component: ReactNode, onDismiss: () => void, initialBreakpoint?: number) => void;
|
|
5606
|
+
closeCurrentLayer: () => void;
|
|
5607
|
+
closeAllLayers: () => void;
|
|
5608
|
+
}
|
|
5609
|
+
export const StackedChildrenContext: import("react").Context<ModalBottomSheetWithStackedChildrenProps>;
|
|
5610
|
+
export const ModalBottomSheetWithStackedChildren: FC<{
|
|
5611
|
+
initialBreakpoint?: number;
|
|
5612
|
+
className?: string;
|
|
5613
|
+
}>;
|
|
5614
|
+
}
|
|
5603
5615
|
declare module "libs/reach/ui/common/src/reach-2/ModalBottomSheet" {
|
|
5604
|
-
import {
|
|
5616
|
+
import { ReactNode } from 'react';
|
|
5605
5617
|
export interface ModalBottomSheetProps {
|
|
5606
5618
|
isOpen?: boolean;
|
|
5607
5619
|
onDismiss: () => void;
|
|
5608
5620
|
initialBreakpoint?: number;
|
|
5609
5621
|
breakpoints?: number[];
|
|
5622
|
+
neverStackChildren?: boolean;
|
|
5623
|
+
children?: (closeCurrentLayer: () => void) => ReactNode;
|
|
5610
5624
|
className?: string;
|
|
5611
5625
|
}
|
|
5612
|
-
export const ModalBottomSheet:
|
|
5626
|
+
export const ModalBottomSheet: import("react").ForwardRefExoticComponent<ModalBottomSheetProps & import("react").RefAttributes<HTMLIonModalElement>>;
|
|
5613
5627
|
}
|
|
5614
5628
|
declare module "libs/reach/ui/common/src/reach-2/Modal" {
|
|
5615
5629
|
import { IDialogProps } from 'office-ui-fabric-react';
|
|
5616
5630
|
import { FC } from 'react';
|
|
5617
5631
|
import { ModalBottomSheetProps } from "libs/reach/ui/common/src/reach-2/ModalBottomSheet";
|
|
5618
|
-
interface ModalProps extends IDialogProps, ModalBottomSheetProps {
|
|
5632
|
+
interface ModalProps extends IDialogProps, Omit<ModalBottomSheetProps, 'children'> {
|
|
5619
5633
|
onDismiss: () => void;
|
|
5634
|
+
ref?: any;
|
|
5620
5635
|
}
|
|
5621
5636
|
export const Modal: FC<ModalProps>;
|
|
5622
5637
|
}
|
|
@@ -5625,6 +5640,7 @@ declare module "libs/reach/ui/common/src/reach-2/index" {
|
|
|
5625
5640
|
export * from "libs/reach/ui/common/src/reach-2/icons/index";
|
|
5626
5641
|
export * from "libs/reach/ui/common/src/reach-2/ModalBottomSheet";
|
|
5627
5642
|
export * from "libs/reach/ui/common/src/reach-2/Modal";
|
|
5643
|
+
export * from "libs/reach/ui/common/src/reach-2/ModalBottomSheetWithStackedChildren";
|
|
5628
5644
|
}
|
|
5629
5645
|
declare module "libs/reach/ui/common/src/index" {
|
|
5630
5646
|
export * from "libs/reach/ui/common/src/Dialog";
|