@livetiles/reach-plugin-types 0.5.0-preview.519 → 0.5.0-preview.521
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 +73 -90
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -5695,32 +5695,39 @@ declare module "libs/reach/ui/common/src/reach-2/icons/Icons" {
|
|
|
5695
5695
|
declare module "libs/reach/ui/common/src/reach-2/icons/index" {
|
|
5696
5696
|
export * from "libs/reach/ui/common/src/reach-2/icons/Icons";
|
|
5697
5697
|
}
|
|
5698
|
-
declare module "libs/reach/ui/common/src/reach-2/
|
|
5699
|
-
|
|
5700
|
-
export
|
|
5701
|
-
addNewLayer: (children: (closeCurrentLayer: () => void) => ReactNode, onDismiss: (() => void) | undefined, initialBreakpoint: number) => void;
|
|
5702
|
-
closeCurrentLayer: () => void;
|
|
5703
|
-
closeAllLayers: () => void;
|
|
5704
|
-
}
|
|
5705
|
-
export const StackedChildrenContext: import("react").Context<ModalBottomSheetWithStackedChildrenProps>;
|
|
5706
|
-
export const ModalBottomSheetWithStackedChildren: FC<{
|
|
5707
|
-
className?: string;
|
|
5708
|
-
}>;
|
|
5709
|
-
}
|
|
5710
|
-
declare module "libs/reach/ui/common/src/reach-2/ModalBottomSheet" {
|
|
5711
|
-
import { ReactNode } from 'react';
|
|
5712
|
-
export interface ModalBottomSheetProps {
|
|
5713
|
-
isOpen?: boolean;
|
|
5714
|
-
onDismiss?: () => void;
|
|
5698
|
+
declare module "libs/reach/ui/common/src/reach-2/utils" {
|
|
5699
|
+
export function getNormalizedPercentageBasedOnDeviceHeight(heightToConvert: number, safeArea?: number, fullyExpandThreshold?: number): number;
|
|
5700
|
+
export function useNormalizedBreakpointValuesBasedOnDeviceHeight(heightToConvert: number, safeArea?: number, fullyExpandThreshold?: number): {
|
|
5715
5701
|
initialBreakpoint: number;
|
|
5716
|
-
breakpoints
|
|
5717
|
-
|
|
5718
|
-
|
|
5702
|
+
breakpoints: number[];
|
|
5703
|
+
};
|
|
5704
|
+
}
|
|
5705
|
+
declare module "libs/reach/ui/common/src/reach-2/buttons/BaseButton" {
|
|
5706
|
+
import { MouseEventHandler } from 'react';
|
|
5707
|
+
export type BaseButtonSizeType = 'Default' | 'Small';
|
|
5708
|
+
export interface BaseButtonProps {
|
|
5709
|
+
size?: BaseButtonSizeType;
|
|
5710
|
+
label?: string;
|
|
5711
|
+
icon?: JSX.Element;
|
|
5712
|
+
disabled?: boolean;
|
|
5713
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
5719
5714
|
className?: string;
|
|
5720
5715
|
}
|
|
5721
|
-
export const
|
|
5716
|
+
export const BaseButton: import("react").ForwardRefExoticComponent<BaseButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
5722
5717
|
}
|
|
5723
|
-
declare module "libs/reach/ui/common/src/reach-2/
|
|
5718
|
+
declare module "libs/reach/ui/common/src/reach-2/buttons/Buttons" {
|
|
5719
|
+
import { FC } from 'react';
|
|
5720
|
+
import { BaseButtonProps } from "libs/reach/ui/common/src/reach-2/buttons/BaseButton";
|
|
5721
|
+
export const OutlinedButton: FC<BaseButtonProps>;
|
|
5722
|
+
export const PrimaryButton: FC<BaseButtonProps>;
|
|
5723
|
+
export const SecondaryButton: FC<BaseButtonProps>;
|
|
5724
|
+
export const TertiaryButton: FC<BaseButtonProps>;
|
|
5725
|
+
export const TextButton: FC<BaseButtonProps>;
|
|
5726
|
+
}
|
|
5727
|
+
declare module "libs/reach/ui/common/src/reach-2/buttons/index" {
|
|
5728
|
+
export * from "libs/reach/ui/common/src/reach-2/buttons/Buttons";
|
|
5729
|
+
}
|
|
5730
|
+
declare module "libs/reach/ui/common/src/reach-2/surfaces/BaseDialog" {
|
|
5724
5731
|
import { FC, MouseEvent } from 'react';
|
|
5725
5732
|
export enum DialogType {
|
|
5726
5733
|
normal = 0,
|
|
@@ -5737,9 +5744,9 @@ declare module "libs/reach/ui/common/src/reach-2/BaseDialog" {
|
|
|
5737
5744
|
}
|
|
5738
5745
|
export const BaseDialog: FC<BaseDialogProps>;
|
|
5739
5746
|
}
|
|
5740
|
-
declare module "libs/reach/ui/common/src/reach-2/Dialog" {
|
|
5747
|
+
declare module "libs/reach/ui/common/src/reach-2/surfaces/Dialog" {
|
|
5741
5748
|
import { FC, MouseEvent } from 'react';
|
|
5742
|
-
import { BaseDialogProps } from "libs/reach/ui/common/src/reach-2/BaseDialog";
|
|
5749
|
+
import { BaseDialogProps } from "libs/reach/ui/common/src/reach-2/surfaces/BaseDialog";
|
|
5743
5750
|
export interface DialogProps extends BaseDialogProps {
|
|
5744
5751
|
minwidth?: number;
|
|
5745
5752
|
maxwidth?: number;
|
|
@@ -5751,89 +5758,65 @@ declare module "libs/reach/ui/common/src/reach-2/Dialog" {
|
|
|
5751
5758
|
}
|
|
5752
5759
|
export const Dialog: FC<DialogProps>;
|
|
5753
5760
|
}
|
|
5754
|
-
declare module "libs/reach/ui/common/src/reach-2/
|
|
5761
|
+
declare module "libs/reach/ui/common/src/reach-2/surfaces/MobileInlineModal" {
|
|
5755
5762
|
import { FC } from 'react';
|
|
5756
|
-
import {
|
|
5757
|
-
import { DialogProps } from "libs/reach/ui/common/src/reach-2/Dialog";
|
|
5758
|
-
interface ModalProps extends DialogProps, Omit<ModalBottomSheetProps, 'children'> {
|
|
5759
|
-
onDismiss: () => void;
|
|
5760
|
-
ref?: any;
|
|
5761
|
-
triggerButton: HTMLButtonElement | JSX.Element;
|
|
5762
|
-
}
|
|
5763
|
-
export const Modal: FC<ModalProps>;
|
|
5764
|
-
}
|
|
5765
|
-
declare module "libs/reach/ui/common/src/reach-2/utils" {
|
|
5766
|
-
export function getNormalizedPercentageBasedOnDeviceHeight(heightToConvert: number, safeArea?: number, fullyExpandThreshold?: number): number;
|
|
5767
|
-
export function useNormalizedBreakpointValuesBasedOnDeviceHeight(heightToConvert: number, safeArea?: number, fullyExpandThreshold?: number): {
|
|
5768
|
-
initialBreakpoint: number;
|
|
5769
|
-
breakpoints: number[];
|
|
5770
|
-
};
|
|
5771
|
-
}
|
|
5772
|
-
declare module "libs/reach/ui/common/src/reach-2/MobileInlineModal" {
|
|
5773
|
-
import { FC } from 'react';
|
|
5774
|
-
import { BaseDialogProps } from "libs/reach/ui/common/src/reach-2/BaseDialog";
|
|
5763
|
+
import { BaseDialogProps } from "libs/reach/ui/common/src/reach-2/surfaces/BaseDialog";
|
|
5775
5764
|
export const MobileInlineModal: FC<BaseDialogProps>;
|
|
5776
5765
|
}
|
|
5777
|
-
declare module "libs/reach/ui/common/src/reach-2/Panel" {
|
|
5766
|
+
declare module "libs/reach/ui/common/src/reach-2/surfaces/Panel" {
|
|
5778
5767
|
import { FC } from 'react';
|
|
5779
|
-
import { BaseDialogProps } from "libs/reach/ui/common/src/reach-2/BaseDialog";
|
|
5768
|
+
import { BaseDialogProps } from "libs/reach/ui/common/src/reach-2/surfaces/BaseDialog";
|
|
5780
5769
|
export const Panel: FC<BaseDialogProps>;
|
|
5781
5770
|
}
|
|
5782
|
-
declare module "libs/reach/ui/common/src/reach-2/
|
|
5783
|
-
import {
|
|
5784
|
-
export
|
|
5785
|
-
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
icon?: JSX.Element;
|
|
5789
|
-
disabled?: boolean;
|
|
5790
|
-
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
5791
|
-
className?: string;
|
|
5771
|
+
declare module "libs/reach/ui/common/src/reach-2/surfaces/ModalBottomSheetWithStackedChildren" {
|
|
5772
|
+
import { FC, ReactNode } from 'react';
|
|
5773
|
+
export interface ModalBottomSheetWithStackedChildrenProps {
|
|
5774
|
+
addNewLayer: (children: (closeCurrentLayer: () => void) => ReactNode, onDismiss: (() => void) | undefined, initialBreakpoint: number) => void;
|
|
5775
|
+
closeCurrentLayer: () => void;
|
|
5776
|
+
closeAllLayers: () => void;
|
|
5792
5777
|
}
|
|
5793
|
-
export const
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
import { BaseButtonProps } from "libs/reach/ui/common/src/reach-2/buttons/BaseButton";
|
|
5798
|
-
export const PrimaryButton: FC<BaseButtonProps>;
|
|
5799
|
-
}
|
|
5800
|
-
declare module "libs/reach/ui/common/src/reach-2/buttons/SecondaryButton" {
|
|
5801
|
-
import { FC } from 'react';
|
|
5802
|
-
import { BaseButtonProps } from "libs/reach/ui/common/src/reach-2/buttons/BaseButton";
|
|
5803
|
-
export const SecondaryButton: FC<BaseButtonProps>;
|
|
5804
|
-
}
|
|
5805
|
-
declare module "libs/reach/ui/common/src/reach-2/buttons/TertiaryButton" {
|
|
5806
|
-
import { FC } from 'react';
|
|
5807
|
-
import { BaseButtonProps } from "libs/reach/ui/common/src/reach-2/buttons/BaseButton";
|
|
5808
|
-
export const TertiaryButton: FC<BaseButtonProps>;
|
|
5778
|
+
export const StackedChildrenContext: import("react").Context<ModalBottomSheetWithStackedChildrenProps>;
|
|
5779
|
+
export const ModalBottomSheetWithStackedChildren: FC<{
|
|
5780
|
+
className?: string;
|
|
5781
|
+
}>;
|
|
5809
5782
|
}
|
|
5810
|
-
declare module "libs/reach/ui/common/src/reach-2/
|
|
5811
|
-
import {
|
|
5812
|
-
|
|
5813
|
-
|
|
5783
|
+
declare module "libs/reach/ui/common/src/reach-2/surfaces/ModalBottomSheet" {
|
|
5784
|
+
import { ReactNode } from 'react';
|
|
5785
|
+
export interface ModalBottomSheetProps {
|
|
5786
|
+
isOpen?: boolean;
|
|
5787
|
+
onDismiss?: () => void;
|
|
5788
|
+
initialBreakpoint: number;
|
|
5789
|
+
breakpoints?: number[];
|
|
5790
|
+
neverStackChildren?: boolean;
|
|
5791
|
+
children?: (closeCurrentLayer: () => void) => ReactNode;
|
|
5792
|
+
className?: string;
|
|
5793
|
+
}
|
|
5794
|
+
export const ModalBottomSheet: import("react").ForwardRefExoticComponent<ModalBottomSheetProps & import("react").RefAttributes<HTMLIonModalElement>>;
|
|
5814
5795
|
}
|
|
5815
|
-
declare module "libs/reach/ui/common/src/reach-2/
|
|
5796
|
+
declare module "libs/reach/ui/common/src/reach-2/surfaces/Modal" {
|
|
5816
5797
|
import { FC } from 'react';
|
|
5817
|
-
import {
|
|
5818
|
-
|
|
5798
|
+
import { ModalBottomSheetProps } from "libs/reach/ui/common/src/reach-2/surfaces/ModalBottomSheet";
|
|
5799
|
+
import { DialogProps } from "libs/reach/ui/common/src/reach-2/surfaces/Dialog";
|
|
5800
|
+
interface ModalProps extends DialogProps, Omit<ModalBottomSheetProps, 'children'> {
|
|
5801
|
+
onDismiss: () => void;
|
|
5802
|
+
ref?: any;
|
|
5803
|
+
triggerButton: HTMLButtonElement | JSX.Element;
|
|
5804
|
+
}
|
|
5805
|
+
export const Modal: FC<ModalProps>;
|
|
5819
5806
|
}
|
|
5820
|
-
declare module "libs/reach/ui/common/src/reach-2/
|
|
5821
|
-
export * from "libs/reach/ui/common/src/reach-2/
|
|
5822
|
-
export * from "libs/reach/ui/common/src/reach-2/
|
|
5823
|
-
export * from "libs/reach/ui/common/src/reach-2/
|
|
5824
|
-
export * from "libs/reach/ui/common/src/reach-2/
|
|
5825
|
-
export * from "libs/reach/ui/common/src/reach-2/
|
|
5807
|
+
declare module "libs/reach/ui/common/src/reach-2/surfaces/index" {
|
|
5808
|
+
export * from "libs/reach/ui/common/src/reach-2/surfaces/Dialog";
|
|
5809
|
+
export * from "libs/reach/ui/common/src/reach-2/surfaces/Panel";
|
|
5810
|
+
export * from "libs/reach/ui/common/src/reach-2/surfaces/ModalBottomSheetWithStackedChildren";
|
|
5811
|
+
export * from "libs/reach/ui/common/src/reach-2/surfaces/ModalBottomSheet";
|
|
5812
|
+
export * from "libs/reach/ui/common/src/reach-2/surfaces/Modal";
|
|
5826
5813
|
}
|
|
5827
5814
|
declare module "libs/reach/ui/common/src/reach-2/index" {
|
|
5828
5815
|
export * from "libs/reach/ui/common/src/reach-2/Icon";
|
|
5829
5816
|
export * from "libs/reach/ui/common/src/reach-2/icons/index";
|
|
5830
|
-
export * from "libs/reach/ui/common/src/reach-2/ModalBottomSheet";
|
|
5831
|
-
export * from "libs/reach/ui/common/src/reach-2/Modal";
|
|
5832
5817
|
export * from "libs/reach/ui/common/src/reach-2/utils";
|
|
5833
|
-
export * from "libs/reach/ui/common/src/reach-2/ModalBottomSheetWithStackedChildren";
|
|
5834
|
-
export * from "libs/reach/ui/common/src/reach-2/Dialog";
|
|
5835
|
-
export * from "libs/reach/ui/common/src/reach-2/Panel";
|
|
5836
5818
|
export * from "libs/reach/ui/common/src/reach-2/buttons/index";
|
|
5819
|
+
export * from "libs/reach/ui/common/src/reach-2/surfaces/index";
|
|
5837
5820
|
}
|
|
5838
5821
|
declare module "libs/reach/ui/common/src/index" {
|
|
5839
5822
|
export * from "libs/reach/ui/common/src/LegacyDialog";
|