@livetiles/reach-plugin-types 0.5.0-preview.446 → 0.5.0-preview.448
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 +26 -14
- 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";
|
|
@@ -10559,7 +10575,7 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/news/News
|
|
|
10559
10575
|
}
|
|
10560
10576
|
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/ImageAndTextResponsiveCard" {
|
|
10561
10577
|
import { ItemResourceTypes, PublishableItem } from "libs/reach/util/common/src/index";
|
|
10562
|
-
import { ReactNode
|
|
10578
|
+
import { ReactNode } from 'react';
|
|
10563
10579
|
import { CardType } from "libs/reach/feature/content/src/reach-2/common/snippets/common/ImageAndTextPublishableItemCard";
|
|
10564
10580
|
export type ImageAndTextCardProps<TItem extends PublishableItem> = {
|
|
10565
10581
|
item: TItem;
|
|
@@ -10570,11 +10586,10 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/Im
|
|
|
10570
10586
|
type?: CardType;
|
|
10571
10587
|
height?: number;
|
|
10572
10588
|
width?: number;
|
|
10589
|
+
onResize?: (newWidth: number) => void;
|
|
10573
10590
|
};
|
|
10574
|
-
const
|
|
10575
|
-
|
|
10576
|
-
}) => JSX.Element;
|
|
10577
|
-
export default _default;
|
|
10591
|
+
const ImageAndTextResponsiveCard: <TItem extends PublishableItem>({ item, itemResourceType, baseRoute, additionalMetadata, contextMenu, height, width, onResize, }: ImageAndTextCardProps<TItem>) => JSX.Element;
|
|
10592
|
+
export default ImageAndTextResponsiveCard;
|
|
10578
10593
|
}
|
|
10579
10594
|
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/ImageAndTextMediumCard" {
|
|
10580
10595
|
import { ItemResourceTypes, PublishableItem } from "libs/reach/util/common/src/index";
|
|
@@ -10589,12 +10604,9 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/Im
|
|
|
10589
10604
|
}
|
|
10590
10605
|
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/ImageAndTextPublishableItemCard" {
|
|
10591
10606
|
import { PublishableItem } from "libs/reach/util/common/src/index";
|
|
10592
|
-
import { Ref } from 'react';
|
|
10593
10607
|
import { ImageAndTextCardProps } from "libs/reach/feature/content/src/reach-2/common/snippets/common/ImageAndTextResponsiveCard";
|
|
10594
|
-
const
|
|
10595
|
-
|
|
10596
|
-
}) => JSX.Element;
|
|
10597
|
-
export default _default_1;
|
|
10608
|
+
const ImageAndTextPublishableItemCard: <TItem extends PublishableItem>({ item, itemResourceType, baseRoute, additionalMetadata, type, contextMenu, height, onResize, }: ImageAndTextCardProps<TItem>) => JSX.Element;
|
|
10609
|
+
export default ImageAndTextPublishableItemCard;
|
|
10598
10610
|
export enum CardType {
|
|
10599
10611
|
XxSmall = "xxsmall",
|
|
10600
10612
|
XSmall = "xsmall",
|