@livetiles/reach-plugin-types 0.5.0-preview.1156 → 0.5.0-preview.1158
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 +40 -39
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -6126,12 +6126,13 @@ declare module "libs/reach/ui/common/src/reach-2/avatar/GroupAvatar" {
|
|
|
6126
6126
|
export default GroupAvatar;
|
|
6127
6127
|
}
|
|
6128
6128
|
declare module "libs/reach/ui/common/src/reach-2/avatar/Persona" {
|
|
6129
|
+
import { MouseEvent } from 'react';
|
|
6129
6130
|
import { AvatarSize } from "libs/reach/ui/common/src/reach-2/avatar/Avatar";
|
|
6130
6131
|
interface IProps {
|
|
6131
6132
|
className?: string;
|
|
6132
6133
|
displayName: string;
|
|
6133
6134
|
isHovered?: boolean;
|
|
6134
|
-
onClick?: () => void;
|
|
6135
|
+
onClick?: (e: MouseEvent<HTMLDivElement>) => void;
|
|
6135
6136
|
onMouseLeave?: () => void;
|
|
6136
6137
|
onMouseOver?: () => void;
|
|
6137
6138
|
size?: AvatarSize.sm | AvatarSize.md | AvatarSize.lg;
|
|
@@ -6530,6 +6531,42 @@ declare module "libs/reach/ui/common/src/reach-2/buttons/index" {
|
|
|
6530
6531
|
export { default as ProfileButton } from "libs/reach/ui/common/src/reach-2/buttons/ProfileButton";
|
|
6531
6532
|
export * from "libs/reach/ui/common/src/reach-2/buttons/StandardButton";
|
|
6532
6533
|
}
|
|
6534
|
+
declare module "libs/reach/ui/common/src/reach-2/tags/Tag" {
|
|
6535
|
+
import React, { SVGProps } from 'react';
|
|
6536
|
+
export type TagSize = 'Large' | 'Small';
|
|
6537
|
+
interface TagProps {
|
|
6538
|
+
className?: string;
|
|
6539
|
+
error?: boolean;
|
|
6540
|
+
icon?: SVGProps<SVGElement>;
|
|
6541
|
+
isHighlighted?: boolean;
|
|
6542
|
+
label: string;
|
|
6543
|
+
onClick?: () => void;
|
|
6544
|
+
onClose?: () => void;
|
|
6545
|
+
size?: TagSize;
|
|
6546
|
+
}
|
|
6547
|
+
const Tag: React.FC<TagProps>;
|
|
6548
|
+
export default Tag;
|
|
6549
|
+
}
|
|
6550
|
+
declare module "libs/reach/ui/common/src/reach-2/utils" {
|
|
6551
|
+
import { TagSize } from "libs/reach/ui/common/src/reach-2/tags/Tag";
|
|
6552
|
+
export const getNormalizedPercentageBasedOnDeviceHeight: (heightToConvert: number, safeArea?: number, fullyExpandThreshold?: number) => number;
|
|
6553
|
+
export const useNormalizedBreakpointValuesBasedOnDeviceHeight: (heightToConvert: number, safeArea?: number, fullyExpandThreshold?: number) => {
|
|
6554
|
+
breakpoints: number[];
|
|
6555
|
+
initialBreakpoint: number;
|
|
6556
|
+
};
|
|
6557
|
+
export const getIsMobilePhone: () => boolean;
|
|
6558
|
+
export type TagValue = {
|
|
6559
|
+
id: string;
|
|
6560
|
+
label?: string;
|
|
6561
|
+
name?: string;
|
|
6562
|
+
};
|
|
6563
|
+
export const getMaxTagList: (items: TagValue[], availableWidth: number, options?: {
|
|
6564
|
+
hasError?: (value: TagValue) => boolean;
|
|
6565
|
+
isHighlighted?: boolean;
|
|
6566
|
+
onClose?: (value: TagValue) => void;
|
|
6567
|
+
size?: TagSize;
|
|
6568
|
+
}) => any[];
|
|
6569
|
+
}
|
|
6533
6570
|
declare module "libs/reach/ui/common/src/reach-2/carousel/Carousel" {
|
|
6534
6571
|
import { FC } from 'react';
|
|
6535
6572
|
export interface ICarouselImageProps {
|
|
@@ -6580,22 +6617,6 @@ declare module "libs/reach/ui/common/src/reach-2/inputs/components/Legend" {
|
|
|
6580
6617
|
}>;
|
|
6581
6618
|
export default Legend;
|
|
6582
6619
|
}
|
|
6583
|
-
declare module "libs/reach/ui/common/src/reach-2/tags/Tag" {
|
|
6584
|
-
import React, { SVGProps } from 'react';
|
|
6585
|
-
export type TagSize = 'Large' | 'Small';
|
|
6586
|
-
interface TagProps {
|
|
6587
|
-
className?: string;
|
|
6588
|
-
error?: boolean;
|
|
6589
|
-
icon?: SVGProps<SVGElement>;
|
|
6590
|
-
isHighlighted?: boolean;
|
|
6591
|
-
label: string;
|
|
6592
|
-
onClick?: () => void;
|
|
6593
|
-
onClose?: () => void;
|
|
6594
|
-
size?: TagSize;
|
|
6595
|
-
}
|
|
6596
|
-
const Tag: React.FC<TagProps>;
|
|
6597
|
-
export default Tag;
|
|
6598
|
-
}
|
|
6599
6620
|
declare module "libs/reach/ui/common/src/reach-2/inputs/Input" {
|
|
6600
6621
|
export type InputSize = 'Large' | 'Small';
|
|
6601
6622
|
export interface IInputProps extends Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, 'onChange' | 'ref' | 'size' | 'value'> {
|
|
@@ -6754,8 +6775,8 @@ declare module "libs/reach/ui/common/src/reach-2/surfaces/ConfirmationDialog" {
|
|
|
6754
6775
|
}>;
|
|
6755
6776
|
}
|
|
6756
6777
|
declare module "libs/reach/ui/common/src/reach-2/surfaces/MobileInlineModal" {
|
|
6757
|
-
import { FC, SVGProps } from 'react';
|
|
6758
6778
|
import { AnimationBuilder } from '@ionic/core';
|
|
6779
|
+
import { FC, SVGProps } from 'react';
|
|
6759
6780
|
import { BaseDialogProps } from "libs/reach/ui/common/src/reach-2/surfaces/BaseDialog";
|
|
6760
6781
|
export type MobileInlineModalProps = BaseDialogProps & {
|
|
6761
6782
|
customActionButton?: SVGProps<SVGElement>;
|
|
@@ -6820,26 +6841,6 @@ declare module "libs/reach/ui/common/src/reach-2/surfaces/index" {
|
|
|
6820
6841
|
export * from "libs/reach/ui/common/src/reach-2/surfaces/ModalBottomSheetWithStackedChildren";
|
|
6821
6842
|
export * from "libs/reach/ui/common/src/reach-2/surfaces/Panel";
|
|
6822
6843
|
}
|
|
6823
|
-
declare module "libs/reach/ui/common/src/reach-2/utils" {
|
|
6824
|
-
import { TagSize } from "libs/reach/ui/common/src/reach-2/tags/Tag";
|
|
6825
|
-
export const getNormalizedPercentageBasedOnDeviceHeight: (heightToConvert: number, safeArea?: number, fullyExpandThreshold?: number) => number;
|
|
6826
|
-
export const useNormalizedBreakpointValuesBasedOnDeviceHeight: (heightToConvert: number, safeArea?: number, fullyExpandThreshold?: number) => {
|
|
6827
|
-
breakpoints: number[];
|
|
6828
|
-
initialBreakpoint: number;
|
|
6829
|
-
};
|
|
6830
|
-
export const getIsMobilePhone: () => boolean;
|
|
6831
|
-
export type TagValue = {
|
|
6832
|
-
id: string;
|
|
6833
|
-
label?: string;
|
|
6834
|
-
name?: string;
|
|
6835
|
-
};
|
|
6836
|
-
export const getMaxTagList: (items: TagValue[], availableWidth: number, options?: {
|
|
6837
|
-
hasError?: (value: TagValue) => boolean;
|
|
6838
|
-
isHighlighted?: boolean;
|
|
6839
|
-
onClose?: (value: TagValue) => void;
|
|
6840
|
-
size?: TagSize;
|
|
6841
|
-
}) => any[];
|
|
6842
|
-
}
|
|
6843
6844
|
declare module "libs/reach/ui/common/src/reach-2/select/types" {
|
|
6844
6845
|
import { SVGProps } from 'react';
|
|
6845
6846
|
export type SelectSize = 'Large' | 'Small';
|
|
@@ -12119,7 +12120,7 @@ declare module "libs/reach/feature/content/src/reach-2/common/editor/extensions/
|
|
|
12119
12120
|
};
|
|
12120
12121
|
}
|
|
12121
12122
|
}
|
|
12122
|
-
const MentionExtension: (mentionSearchHandler: (searchText: string) => Promise<Account[]>, setSuggestionsPosition: (newPos: DOMRect | null) => void, suggestionsRef: MutableRefObject<HTMLDivElement>) => import("@tiptap/react").Node<
|
|
12123
|
+
const MentionExtension: (mentionSearchHandler: (searchText: string) => Promise<Account[]>, setSuggestionsPosition: (newPos: DOMRect | null) => void, suggestionsRef: MutableRefObject<HTMLDivElement>) => import("@tiptap/react").Node<any, any>;
|
|
12123
12124
|
export default MentionExtension;
|
|
12124
12125
|
}
|
|
12125
12126
|
declare module "libs/reach/feature/content/src/reach-2/common/editor/extensions/ShortcutExtension" {
|